From 49be8a54ed01ef60bc42b02df5b9c6d778a54f9f Mon Sep 17 00:00:00 2001 From: MangelMaxime Date: Thu, 5 Dec 2024 15:38:18 +0000 Subject: [PATCH] deploy: 092b4f7111783ce2631ef464a2c2b3b0ca0a3a98 --- .../{index-UEMPfEXX.js => index-CpzJTAp_.js} | 236 +++++++++--------- index.html | 2 +- 2 files changed, 119 insertions(+), 119 deletions(-) rename assets/{index-UEMPfEXX.js => index-CpzJTAp_.js} (95%) diff --git a/assets/index-UEMPfEXX.js b/assets/index-CpzJTAp_.js similarity index 95% rename from assets/index-UEMPfEXX.js rename to assets/index-CpzJTAp_.js index 373547f..485571b 100644 --- a/assets/index-UEMPfEXX.js +++ b/assets/index-CpzJTAp_.js @@ -1,4 +1,4 @@ -var vPt=Object.defineProperty;var bPt=(p,g,x)=>g in p?vPt(p,g,{enumerable:!0,configurable:!0,writable:!0,value:x}):p[g]=x;var f1=(p,g,x)=>(bPt(p,typeof g!="symbol"?g+"":g,x),x),C0t=(p,g,x)=>{if(!g.has(p))throw TypeError("Cannot "+x)};var ti=(p,g,x)=>(C0t(p,g,"read from private field"),x?x.call(p):g.get(p)),$u=(p,g,x)=>{if(g.has(p))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(p):g.set(p,x)},Bg=(p,g,x,L)=>(C0t(p,g,"write to private field"),L?L.call(p,x):g.set(p,x),x);var D0t=(p,g,x,L)=>({set _(H){Bg(p,g,H,x)},get _(){return ti(p,g,L)}}),is=(p,g,x)=>(C0t(p,g,"access private method"),x);(function(){const g=document.createElement("link").relList;if(g&&g.supports&&g.supports("modulepreload"))return;for(const H of document.querySelectorAll('link[rel="modulepreload"]'))L(H);new MutationObserver(H=>{for(const G of H)if(G.type==="childList")for(const ye of G.addedNodes)ye.tagName==="LINK"&&ye.rel==="modulepreload"&&L(ye)}).observe(document,{childList:!0,subtree:!0});function x(H){const G={};return H.integrity&&(G.integrity=H.integrity),H.referrerPolicy&&(G.referrerPolicy=H.referrerPolicy),H.crossOrigin==="use-credentials"?G.credentials="include":H.crossOrigin==="anonymous"?G.credentials="omit":G.credentials="same-origin",G}function L(H){if(H.ep)return;H.ep=!0;const G=x(H);fetch(H.href,G)}})();var ORe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yxt(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function TPt(p){if(p.__esModule)return p;var g=p.default;if(typeof g=="function"){var x=function L(){return this instanceof L?Reflect.construct(g,arguments,this.constructor):g.apply(this,arguments)};x.prototype=g.prototype}else x={};return Object.defineProperty(x,"__esModule",{value:!0}),Object.keys(p).forEach(function(L){var H=Object.getOwnPropertyDescriptor(p,L);Object.defineProperty(x,L,H.get?H:{enumerable:!0,get:function(){return p[L]}})}),x}var vxt={exports:{}},jb={};/** +var vPt=Object.defineProperty;var bPt=(p,g,x)=>g in p?vPt(p,g,{enumerable:!0,configurable:!0,writable:!0,value:x}):p[g]=x;var f1=(p,g,x)=>(bPt(p,typeof g!="symbol"?g+"":g,x),x),C0t=(p,g,x)=>{if(!g.has(p))throw TypeError("Cannot "+x)};var ti=(p,g,x)=>(C0t(p,g,"read from private field"),x?x.call(p):g.get(p)),$u=(p,g,x)=>{if(g.has(p))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(p):g.set(p,x)},Bg=(p,g,x,L)=>(C0t(p,g,"write to private field"),L?L.call(p,x):g.set(p,x),x);var D0t=(p,g,x,L)=>({set _(H){Bg(p,g,H,x)},get _(){return ti(p,g,L)}}),is=(p,g,x)=>(C0t(p,g,"access private method"),x);(function(){const g=document.createElement("link").relList;if(g&&g.supports&&g.supports("modulepreload"))return;for(const H of document.querySelectorAll('link[rel="modulepreload"]'))L(H);new MutationObserver(H=>{for(const G of H)if(G.type==="childList")for(const ye of G.addedNodes)ye.tagName==="LINK"&&ye.rel==="modulepreload"&&L(ye)}).observe(document,{childList:!0,subtree:!0});function x(H){const G={};return H.integrity&&(G.integrity=H.integrity),H.referrerPolicy&&(G.referrerPolicy=H.referrerPolicy),H.crossOrigin==="use-credentials"?G.credentials="include":H.crossOrigin==="anonymous"?G.credentials="omit":G.credentials="same-origin",G}function L(H){if(H.ep)return;H.ep=!0;const G=x(H);fetch(H.href,G)}})();var ORe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hxt(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function TPt(p){if(p.__esModule)return p;var g=p.default;if(typeof g=="function"){var x=function L(){return this instanceof L?Reflect.construct(g,arguments,this.constructor):g.apply(this,arguments)};x.prototype=g.prototype}else x={};return Object.defineProperty(x,"__esModule",{value:!0}),Object.keys(p).forEach(function(L){var H=Object.getOwnPropertyDescriptor(p,L);Object.defineProperty(x,L,H.get?H:{enumerable:!0,get:function(){return p[L]}})}),x}var yxt={exports:{}},jb={};/** * @license React * react.production.min.js * @@ -6,10 +6,10 @@ var vPt=Object.defineProperty;var bPt=(p,g,x)=>g in p?vPt(p,g,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yVe=Symbol.for("react.element"),SPt=Symbol.for("react.portal"),EPt=Symbol.for("react.fragment"),xPt=Symbol.for("react.strict_mode"),APt=Symbol.for("react.profiler"),CPt=Symbol.for("react.provider"),DPt=Symbol.for("react.context"),IPt=Symbol.for("react.forward_ref"),kPt=Symbol.for("react.suspense"),PPt=Symbol.for("react.memo"),NPt=Symbol.for("react.lazy"),JSt=Symbol.iterator;function wPt(p){return p===null||typeof p!="object"?null:(p=JSt&&p[JSt]||p["@@iterator"],typeof p=="function"?p:null)}var bxt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Txt=Object.assign,Sxt={};function ZRe(p,g,x){this.props=p,this.context=g,this.refs=Sxt,this.updater=x||bxt}ZRe.prototype.isReactComponent={};ZRe.prototype.setState=function(p,g){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,g,"setState")};ZRe.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Ext(){}Ext.prototype=ZRe.prototype;function eTt(p,g,x){this.props=p,this.context=g,this.refs=Sxt,this.updater=x||bxt}var tTt=eTt.prototype=new Ext;tTt.constructor=eTt;Txt(tTt,ZRe.prototype);tTt.isPureReactComponent=!0;var $St=Array.isArray,xxt=Object.prototype.hasOwnProperty,nTt={current:null},Axt={key:!0,ref:!0,__self:!0,__source:!0};function Cxt(p,g,x){var L,H={},G=null,ye=null;if(g!=null)for(L in g.ref!==void 0&&(ye=g.ref),g.key!==void 0&&(G=""+g.key),g)xxt.call(g,L)&&!Axt.hasOwnProperty(L)&&(H[L]=g[L]);var Oe=arguments.length-2;if(Oe===1)H.children=x;else if(1nX(L));return Qot(x)}else return Gje(Cne.id(p))}}}function FRe(p){return VPt(p)}function JPt(p,g,x){if(p==null)return g==null;if(g==null||p.length!==g.length)return!1;for(let L=0;Lp(x)(L);return iTt.set(g,p),g}function Ane(p){return iTt.get(p)??(g=>x=>p(g,x))}function k0t(p){return iTt.get(p)??(g=>x=>L=>p(g,x,L))}const eMe=Symbol("numeric");function wxt(p){return typeof p=="number"||typeof p=="bigint"||(p==null?void 0:p[eMe])}function XPt(p,g){return typeof p=="number"||typeof p=="bigint"?pg?1:0:p.CompareTo(g)}function vbt(p,g){return typeof p=="number"?p*g:typeof p=="bigint"?p*BigInt(g):p[eMe]().multiply(g)}function Pit(p,g){return typeof p=="number"?p.toFixed(g):typeof p=="bigint"?p:p[eMe]().toFixed(g)}function rot(p,g){return typeof p=="number"?p.toPrecision(g):typeof p=="bigint"?p:p[eMe]().toPrecision(g)}function iot(p,g){return typeof p=="number"?p.toExponential(g):typeof p=="bigint"?p:p[eMe]().toExponential(g)}function oot(p){return typeof p=="number"?(Number(p)>>>0).toString(16):typeof p=="bigint"?BigInt.asUintN(64,p).toString(16):p[eMe]().toHex()}function YPt(p){let g=0,x="[";for(const L of p){if(g===0)x+=wE(L);else if(g===100){x+="; ...";break}else x+="; "+wE(L);g++}return x+"]"}function wE(p,g=0){var x;if(p!=null&&typeof p=="object"){if(typeof p.toString=="function")return p.toString();if(Symbol.iterator in p)return YPt(p);{const L=(x=Object.getPrototypeOf(p))==null?void 0:x.constructor;return L===Object&&g<10?"{ "+Object.entries(p).map(([H,G])=>H+" = "+wE(G,g+1)).join(` - `)+" }":(L==null?void 0:L.name)??""}}return String(p)}function QPt(p,g){if(g.length===0)return p;{let x,L=!0;return g.length===1?(x=wE(g[0]),L=x.indexOf(" ")>=0):x=g.map(H=>wE(H)).join(", "),p+(L?" (":" ")+x+(L?")":"")}}class wh{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return QPt(this.name,this.fields)}GetHashCode(){const g=this.fields.map(x=>nX(x));return g.splice(0,0,Gje(this.tag)),Qot(g)}Equals(g){return this===g?!0:not(this,g)&&this.tag===g.tag?kxt(this.fields,g.fields):!1}CompareTo(g){return this===g?0:not(this,g)?this.tag===g.tag?Nxt(this.fields,g.fields):this.tagg+" = "+wE(x)).join(` - `)+" }"}function Lxt(p){const g=Object.values(p).map(x=>nX(x));return Qot(g)}function Oxt(p,g){if(p===g)return!0;if(not(p,g)){const x=Object.keys(p);for(let L=0;Lg,this.setter=L=>{g=L})}}class ZPt{constructor(g){this.message=g}}class Wxt extends ZPt{toJSON(){return Rxt(this)}toString(){return Mxt(this)}GetHashCode(){return Lxt(this)}Equals(g){return Oxt(this,g)}CompareTo(g){return Fxt(this,g)}}const eNt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tNt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],nNt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rNt=["January","February","March","April","May","June","July","August","September","October","November","December"];function I5(p,g,x){let L=0,H=g;for(;H=p.length-1?-1:p.charCodeAt(g+1)}function iNt(p,g){let x=g;const L=p[g];let H="",G=!1;for(;g=0&&bo!==37)L+=2,G+=oTt(ye,String.fromCharCode(bo),x);else throw new Error("Invalid format string");break;case"\\":const Yr=XSt(g,L);if(Yr>=0)L+=2,G+=String.fromCharCode(Yr);else throw new Error("Invalid format string");break;default:L++,G+=Oe;break}}return G}function YSt(p){return p.kind||0}function xRe(p){const g=p<0;p=Math.abs(p);const x=~~(p/36e5),L=p%36e5/6e4;return(g?"-":"+")+cA(x,2)+":"+cA(L,2)}function aot(p,g){const x=p.toISOString();return g==="first"?x.substring(0,x.indexOf("T")):x.substring(x.indexOf("T")+1,x.length-1)}function oNt(p,g){if(g)return p.toISOString();{const x=p.kind==null?!0:p.kind===2;return cA(p.getFullYear(),4)+"-"+cA(p.getMonth()+1,2)+"-"+cA(p.getDate(),2)+"T"+cA(p.getHours(),2)+":"+cA(p.getMinutes(),2)+":"+cA(p.getSeconds(),2)+"."+cA(p.getMilliseconds(),3)+(x?xRe(p.getTimezoneOffset()*-6e4):"")}}function aNt(p,g){const x=p.toISOString();return x.substring(0,x.length-1)+xRe(g)}function sNt(p,g){const x=new Date(p.getTime()+(p.offset??0));if(typeof g!="string")return x.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+xRe(p.offset??0);if(g.length===1)switch(g){case"D":case"d":return aot(x,"first");case"T":case"t":return aot(x,"second");case"O":case"o":return aNt(x,p.offset??0);default:throw new Error("Unrecognized Date print format")}else return oTt(x,g,!0)}function cNt(p,g){const x=p.kind===1;if(typeof g!="string")return x?p.toUTCString():p.toLocaleString();if(g.length===1)switch(g){case"D":case"d":return x?aot(p,"first"):p.toLocaleDateString();case"T":case"t":return x?aot(p,"second"):p.toLocaleTimeString();case"O":case"o":return oNt(p,x);default:throw new Error("Unrecognized Date print format")}else return oTt(p,g,x)}function Bxt(p,g,x){return p.offset!=null?sNt(p,g):cNt(p,g)}function zxt(p,g){const x=new Date(p);return x.kind=(g??0)|0,x}function lNt(p){return p.kind===2?p:zxt(p.getTime(),2)}function rit(p){return p.kind===1?p.getUTCHours():p.getHours()}function iit(p){return p.kind===1?p.getUTCMilliseconds():p.getMilliseconds()}function QSt(p){return p.kind===1?p.getUTCMinutes():p.getMinutes()}function oit(p){return(p.kind===1?p.getUTCMonth():p.getMonth())+1}function ZSt(p){return p.kind===1?p.getUTCSeconds():p.getSeconds()}function eEt(p){return p.kind===1?p.getUTCDay():p.getDay()}function uNt(p,g=0){if(g&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let x="gu";return x+=g&1?"i":"",x+=g&2?"m":"",x+=g&16?"s":"",new RegExp(p,x)}function Zot(p){return p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function fNt(p,g,x=0){return p.lastIndex=x,p.exec(g)}function tEt(p,g,x=0){if(g==null)throw new Error("Input cannot ve null");if(!p.global)throw new Error("Non-global RegExp");p.lastIndex=x;const L=[];let H,G=-1;for(;(H=p.exec(g))!=null;)H.index===G?p.lastIndex++:(G=H.index,L.push(H));return L}function aTt(p,g,x,L,H=0){function G(){let ye=arguments[0];if(L){L--;const Oe=[],ot=arguments.length,At=typeof arguments[ot-1]!="string";let sn=At?ot-3:ot-2;for(let tr=0;tr"$&").replace(/\${([^}]+)}/g,"$<$1>"),L!=null){let ye;const Oe=g.substring(H),ot=tEt(p,Oe),At=tEt.length>L?(ye=ot[L-1],Oe.substring(0,ye.index+ye[0].length)):Oe;return g.substring(0,H)+At.replace(p,x)+g.substring(H+At.length)}else return g.replace(p,x)}const QGe=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ZGe=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,_Nt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gxt(p,g){return XPt(p,g)<0}function bbt(p){return{input:p,cont:pNt(p)}}function K1e(p,g){let x=0,L=0,H="";ZGe.lastIndex=0;let G=ZGe.exec(p);for(;G;){const ye=G.index+(G[1]||"").length;H+=p.substring(L,ye).replace(/%%/g,"%");const[,,Oe,ot,At,sn]=G;L=ZGe.lastIndex,H+=Vxt(g[x++],Oe,ot,At,sn),ZGe.lastIndex=L-1,G=ZGe.exec(p)}return H+=p.substring(L).replace(/%%/g,"%"),H}function jxt(p,g){return typeof g=="string"?p(g):g.cont(p)}function Rne(p){return jxt(g=>g,p)}function dNt(p){return jxt(g=>{throw new Error(g)},p)}function Vxt(p,g,x,L,H){let G="";if(g=g||"",H=H||"",wxt(p))switch(H.toLowerCase()!=="x"&&(Gxt(p,0)?(p=vbt(p,-1),G="-"):g.indexOf(" ")>=0?G=" ":g.indexOf("+")>=0&&(G="+")),L=L==null?null:parseInt(L,10),H){case"f":case"F":L=L??6,p=Pit(p,L);break;case"g":case"G":p=L!=null?rot(p,L):rot(p);break;case"e":case"E":p=L!=null?iot(p,L):iot(p);break;case"x":p=oot(p);break;case"X":p=oot(p).toUpperCase();break;default:p=String(p);break}else p instanceof Date?p=Bxt(p):p=wE(p);if(x=typeof x=="number"?x:parseInt(x,10),isNaN(x))p=G+p;else{const ye=g.indexOf("0")>=0,Oe=g.indexOf("-")>=0,ot=Oe||!ye?" ":"0";ot==="0"?(p=Vje(p,x-G.length,ot,Oe),p=G+p):p=Vje(G+p,x,ot,Oe)}return p}function Uxt(p,g,x,L="",H=-1){return(...G)=>{let ye=L;const Oe=g.slice(),ot=x.slice();for(const At of G){const[,,sn,tr,Nt,Ot]=ot[0];let bo=tr;if(H>=0)bo=H,H=-1;else if(bo==="*"){if(At<0)throw new Error("Non-negative number required");H=At;continue}ye+=Oe[0],ye+=Vxt(At,sn,bo,Nt,Ot),Oe.splice(0,1),ot.splice(0,1)}return ot.length===0?(ye+=Oe[0],p(ye)):Uxt(p,Oe,ot,ye,H)}}function pNt(p){return g=>{QGe.lastIndex=0;const x=[],L=[];let H=0,G=QGe.exec(p);for(;G;){const ye=G.index+(G[1]||"").length;x.push(p.substring(H,ye).replace(/%%/g,"%")),L.push(G),H=QGe.lastIndex,QGe.lastIndex-=1,G=QGe.exec(p)}return x.length===0?g(p.replace(/%%/g,"%")):(x.push(p.substring(H).replace(/%%/g,"%")),Uxt(g,x,L))}}function mNt(p,...g){let x;return typeof p=="object"?(x=String(g[0]),g.shift()):x=p,x.replace(_Nt,(L,H,G,ye,Oe,ot)=>{if(H<0||H>=g.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let At=g[H];if(wxt(At))switch(Oe=Oe==null?null:parseInt(Oe,10),ye){case"f":case"F":Oe=Oe??2,At=Pit(At,Oe);break;case"g":case"G":At=Oe!=null?rot(At,Oe):rot(At);break;case"e":case"E":At=Oe!=null?iot(At,Oe):iot(At);break;case"p":case"P":Oe=Oe??2,At=Pit(vbt(At,100),Oe)+" %";break;case"d":case"D":At=Oe!=null?P0t(String(At),Oe,"0"):String(At);break;case"x":case"X":At=Oe!=null?P0t(oot(At),Oe,"0"):oot(At),ye==="X"&&(At=At.toUpperCase());break;default:if(ot){let sn="";At=ot.replace(/([0#,]+)(\.[0#]+)?/,(tr,Nt,Ot)=>{Gxt(At,0)&&(At=vbt(At,-1),sn="-"),Ot=Ot==null?"":Ot.substring(1),At=Pit(At,Math.max(Ot.length,0));let[bo,Yr]=At.split(".");Yr||(Yr="");const Ns=Nt.replace(/,/g,"").replace(/^#+/,"").length;bo=P0t(bo,Ns,"0");const ui=Ot.replace(/#+$/,"").length;if(ui>Yr.length?Yr=yNt(Yr,ui,"0"):ui0){const Zr=bo.length%3,Zi=Math.floor(bo.length/3);let jr=Zr>0?bo.substr(0,Zr)+(Zi>0?",":""):"";for(let lr=0;lr0?bo+"."+Yr:bo}),At=sn+At}}else At instanceof Date?At=Bxt(At,ot||ye):At=wE(At);return G=parseInt((G||" ").substring(1),10),isNaN(G)||(At=Vje(String(At),Math.abs(G)," ",G<0)),At})}function gNt(p,g){const x=p.lastIndexOf(g);return x>=0&&x===p.length-g.length}function hNt(p,g){if(p<0)throw new Error("String length must be non-negative");const x=new Array(p);for(let L=0;Lg)}function Hxt(p,...g){if(g.length===0)return p.trim();const x="["+Zot(g.join(""))+"]+";return p.replace(new RegExp("^"+x),"").replace(new RegExp(x+"$"),"")}function Nit(p,...g){return g.length===0?p.trimStart():p.replace(new RegExp("^["+Zot(g.join(""))+"]+"),"")}function bNt(p,...g){return g.length===0?p.trimEnd():p.replace(new RegExp("["+Zot(g.join(""))+"]+$"),"")}function ARe(p,g,x){if(g+(x||0)>p.length)throw new Error("Invalid startIndex and/or length");return x!=null?p.substr(g,x):p.substr(g)}class eTe{constructor(g){this.value=g}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return nX(this.value)}Equals(g){return g==null?!1:g8(this.value,g instanceof eTe?g.value:g)}CompareTo(g){return g==null?1:rX(this.value,g instanceof eTe?g.value:g)}}function df(p){if(p==null)throw new Error("Option has no value");return p instanceof eTe?p.value:p}function nEt(p){return p instanceof eTe?p.value:p}function LD(p){return p==null||p instanceof eTe?new eTe(p):p}function TNt(p){return p==null?[]:[df(p)]}function bL(p,g){return p!=null?df(p):g}function rEt(p,g){return p!=null?df(p):g()}function gz(p,g){return g!=null?LD(p(df(g))):void 0}function SNt(p,g){return g!=null?p(df(g)):void 0}const ENt="The index was outside the range of elements in the collection.",Jxt="Collection was empty.";function xNt(p,g){return typeof p=="function"?new p(g):new Array(g)}function ANt(p,g){if(p!=null&&/\S/.test(p)){const x=+p.replace("_","");if(!Number.isNaN(x))return g.contents=x,!0}return!1}function Tbt(p,g){return p>g?p:g}function $xt(p,g,x,L){const H=g|0;return p.fill(L,H,H+x)}function CNt(p,g){const x=xNt(g,1);return Wne(x,0,p),x}function DNt(p,g,x){const L=p;return x.reduce(L,g)}function iEt(p,g,x){if(g==null)return x==null;if(x==null)return!1;{let L=0,H=!0;const G=g.length|0,ye=x.length|0;if(G>ye)return!1;if(G=g.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return g[p]}function Wne(p,g,x){if(g<0||g>=p.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");p[g]=x}function INt(p,g,x){return g.reduceRight((L,H)=>p(H,L),x)}class TL extends ap{constructor(g,x){super(),this.head=g,this.tail=x}toString(){return"["+lA("; ",this)+"]"}Equals(g){const x=this;return x===g?!0:((H,G)=>{e:for(;;){const ye=H,Oe=G,ot=ye.tail,At=Oe.tail;if(ot!=null)if(At!=null){const sn=df(ot),tr=df(At);if(g8(ye.head,Oe.head)){H=sn,G=tr;continue e}else return!1}else return!1;else return At==null}})(x,g)}GetHashCode(){return((L,H,G)=>{e:for(;;){const ye=L,Oe=H,ot=G,At=ot.tail;if(At!=null){const sn=df(At);if(ye>18)return Oe|0;L=ye+1,H=(Oe<<1)+nX(ot.head)+631*ye,G=sn;continue e}else return Oe|0}})(0,0,this)|0}toJSON(){const g=this;return Array.from(g)}CompareTo(g){return((H,G)=>{e:for(;;){const ye=H,Oe=G,ot=ye.tail,At=Oe.tail;if(ot!=null)if(At!=null){const sn=df(ot),tr=df(At),Nt=rX(ye.head,Oe.head)|0;if(Nt===0){H=sn,G=tr;continue e}else return Nt|0}else return 1;else return At!=null?-1:0}})(this,g)|0}GetEnumerator(){return PNt(this)}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ix(this)}}class kNt{constructor(g){this.xs=g,this.it=this.xs,this.current=W5()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const g=this,x=g.it.tail;if(x!=null){const L=df(x);return g.current=g.it.head,g.it=L,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const g=this;g.it=g.xs,g.current=W5()}Dispose(){}}function PNt(p){return new kNt(p)}function MD(){return new TL(W5(),void 0)}function SVe(p,g){return new TL(p,g)}function iX(p){return p.tail==null}function qxt(p){return((x,L)=>{e:for(;;){const H=x,ye=L.tail;if(ye!=null){x=H+1,L=df(ye);continue e}else return H|0}})(0,p)|0}function Bne(p){if(p.tail!=null)return p.head;throw new Error(Jxt+"\\nParameter name: list")}function Vw(p){const g=p.tail;if(g!=null)return df(g);throw new Error(Jxt+"\\nParameter name: list")}function NNt(p,g){return((L,H)=>{e:for(;;){const G=L,ye=H,Oe=ye.tail;if(Oe!=null){if(G===g)return ye.head;L=G+1,H=df(Oe);continue e}else throw new Error(ENt+"\\nParameter name: index")}})(0,p)}function lc(){return MD()}function wD(p,g){return SVe(p,g)}function _l(p){return SVe(p,MD())}function yd(p){return iX(p)}function _z(p){return qxt(p)}function Hp(p){return Bne(p)}function wNt(p){if(!iX(p))return LD(Bne(p))}function Ay(p){return Vw(p)}function Kxt(p){const g=qxt(p)|0,x=$xt(new Array(g),0,g,null);return((H,G)=>{e:for(;;){const ye=H,Oe=G;if(!iX(Oe)){Wne(x,ye,Bne(Oe)),H=ye+1,G=Vw(Oe);continue e}break}})(0,p),x}function HO(p,g,x){let L=g,H=x;for(;!iX(H);)L=p(L,Hp(H)),H=Vw(H);return L}function Uje(p){return HO((g,x)=>SVe(x,g),MD(),p)}function RNt(p,g,x){return INt(p,Kxt(g),x)}function MNt(p,g,x){return((H,G,ye)=>{e:for(;;){const Oe=H,ot=G,At=ye;if(iX(At))return ot;H=Oe+1,G=p(Oe,ot,Bne(At)),ye=Vw(At);continue e}})(0,g,x)}function SL(p,g){HO((x,L)=>{p(L)},void 0,g)}function Mne(p,g){HO((x,L)=>(p(x,L),x+1|0),0,g)}function wC(p,g){let x=g;for(let L=p.length-1;L>=0;L--)x=SVe(Dne(L,p),x);return x}function fu(p){return wC(p,MD())}function tTe(p){let g,x;if(tX(p))return fu(p);if(p instanceof TL)return p;{const L=MD();let H=L;const G=Ix(p);try{for(;G["System.Collections.IEnumerator.MoveNext"]();){const ot=G["System.Collections.Generic.IEnumerator`1.get_Current"]();H=(g=H,x=new TL(ot,void 0),g.tail=x,x)}}finally{d2(G)}const ye=H,Oe=MD();return ye.tail=Oe,Vw(L)}}function nTe(p){const g=MD();let x=g;const L=ye=>{x=HO((Oe,ot)=>{const At=new TL(ot,void 0);return Oe.tail=At,At},x,ye)};if(tX(p))p.forEach(L);else if(p instanceof TL)SL(L,p);else{const ye=Ix(p);try{for(;ye["System.Collections.IEnumerator.MoveNext"]();)L(ye["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{d2(ye)}}const H=x,G=MD();return H.tail=G,Vw(g)}function oU(p,g){return HO((x,L)=>SVe(L,x),g,Uje(p))}function rz(p,g){let x,L;const H=MD();let G=H,ye=g;for(;!iX(ye);){let At=p(Bne(ye));for(;!iX(At);)G=(x=G,L=new TL(Bne(At),void 0),x.tail=L,L),At=Vw(At);ye=Vw(ye)}const Oe=G,ot=MD();return Oe.tail=ot,Vw(H)}function nMe(p,g){const x=MD(),L=MNt((G,ye,Oe)=>{const ot=new TL(p(G,Oe),void 0);return ye.tail=ot,ot},x,g),H=MD();return L.tail=H,Vw(x)}function zf(p,g){const x=MD(),L=HO((G,ye)=>{const Oe=new TL(p(ye),void 0);return G.tail=Oe,Oe},x,g),H=MD();return L.tail=H,Vw(x)}function LNt(p,g){return(L=>{e:for(;;){const H=L;if(iX(H))return;{const G=p(Bne(H));if(G==null){L=Vw(H);continue e}else return G}}})(g)}function Sbt(p,g){return LNt(x=>p(x)?LD(x):void 0,g)}function Xxt(p,g){return((L,H)=>{e:for(;;){const G=L,ye=H;if(iX(ye))return;if(p(Bne(ye)))return G;L=G+1,H=Vw(ye);continue e}})(0,g)}function Ebt(p,g){return NNt(g,p)}function FO(p,g){const x=MD(),L=HO((G,ye)=>{if(p(ye)){const Oe=new TL(ye,void 0);return G.tail=Oe,Oe}else return G},x,g),H=MD();return L.tail=H,Vw(x)}function rMe(p,g){const x=MD(),L=MD(),H=x,G=HO((ot,At)=>{let sn,tr;const Nt=ot[0],Ot=ot[1];return p(At)?[(sn=new TL(At,void 0),Nt.tail=sn,sn),Ot]:[Nt,(tr=new TL(At,void 0),Ot.tail=tr,tr)]},[H,L],g),ye=MD();G[0].tail=ye;const Oe=MD();return G[1].tail=Oe,[Vw(H),Vw(L)]}function EL(p,g){const x=MD(),L=HO((G,ye)=>{const Oe=p(ye);if(Oe==null)return G;{const ot=new TL(df(Oe),void 0);return G.tail=ot,ot}},x,g),H=MD();return L.tail=H,Vw(x)}function ONt(p,g,x){return Xxt(L=>x.Equals(p,L),g)!=null}function y_e(p,g){return HO((x,L)=>x&&p(L),!0,g)}function eat(p,g){return Xxt(p,g)!=null}function FNt(p,g){const x=Kxt(g);return x.sort(p),fu(x)}function Yxt(p,g,x){return FNt((L,H)=>x.Compare(p(L),p(H)),g)}function oEt(p,g){e:for(;;){const x=p,L=g;if(iX(L))return L;if(x(Bne(L))){p=x,g=Vw(L);continue e}else return L}}function WNt(p){return HO((g,x)=>{const L=g[0],H=g[1],G=x;return G[0]==="className"?[wD(wE(G[1]),L),H]:[L,wD(x,H)]},[lc(),lc()],Uje(p))}function RD(p,g){const x=WNt(g);return wD(["className",lA(" ",wD(p,x[0]))],x[1])}var xbt;(function(p){p[p.AllowHexSpecifier=512]="AllowHexSpecifier"})(xbt||(xbt={}));function BNt(p,g){const[,x,L,H]=p;return{sign:x||"",prefix:L||"",digits:H,radix:g}}function aEt(p,g){switch(g){case 8:return p?[0,255]:[-128,127];case 16:return p?[0,65535]:[-32768,32767];case 32:return p?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function zNt(p){switch(p){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function GNt(p,g){if(g&xbt.AllowHexSpecifier)return 16;switch(p){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function jNt(p,g,x){const H=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(p.replace(/_/g,""));if(H!=null){const[,,G,ye]=H;if(x=x||GNt(G,g),!zNt(x).test(ye))return BNt(H,x)}return null}function Qxt(p,g,x,L,H){const G=jNt(p,g,H);if(G!=null){let ye=Number.parseInt(G.sign+G.digits,G.radix);if(!Number.isNaN(ye)){const[Oe,ot]=aEt(!0,L);!x&&G.radix!==10&&ye>=Oe&&ye<=ot&&(ye=ye<<32-L>>32-L);const[At,sn]=aEt(x,L);if(ye>=At&&ye<=sn)return ye}}throw new Error(`The input string ${p} was not in a correct format.`)}function VNt(p,g,x,L,H){try{return H.contents=Qxt(p,g,x,L),!0}catch{return!1}}const uh=fz,Zxt=Object.freeze({left:0,top:0,width:16,height:16}),eAt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),sTt=Object.freeze({...Zxt,...eAt});Object.freeze({...sTt,body:"",hidden:!1});({...Zxt});const tAt=Object.freeze({width:null,height:null}),nAt=Object.freeze({...tAt,...eAt});function UNt(p,g){const x={...p};for(const L in g){const H=g[L],G=typeof H;L in tAt?(H===null||H&&(G==="string"||G==="number"))&&(x[L]=H):G===typeof x[L]&&(x[L]=L==="rotate"?H%4:H)}return x}const HNt=/[\s,]+/;function JNt(p,g){g.split(HNt).forEach(x=>{switch(x.trim()){case"horizontal":p.hFlip=!0;break;case"vertical":p.vFlip=!0;break}})}function $Nt(p,g=0){const x=p.replace(/^-?[0-9.]*/,"");function L(H){for(;H<0;)H+=4;return H%4}if(x===""){const H=parseInt(p);return isNaN(H)?0:L(H)}else if(x!==p){let H=0;switch(x){case"%":H=25;break;case"deg":H=90}if(H){let G=parseFloat(p.slice(0,p.length-x.length));return isNaN(G)?0:(G=G/H,G%1===0?L(G):0)}}return g}const qNt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,KNt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function sEt(p,g,x){if(g===1)return p;if(x=x||100,typeof p=="number")return Math.ceil(p*g*x)/x;if(typeof p!="string")return p;const L=p.split(qNt);if(L===null||!L.length)return p;const H=[];let G=L.shift(),ye=KNt.test(G);for(;;){if(ye){const Oe=parseFloat(G);isNaN(Oe)?H.push(G):H.push(Math.ceil(Oe*g*x)/x)}else H.push(G);if(G=L.shift(),G===void 0)return H.join("");ye=!ye}}const XNt=p=>p==="unset"||p==="undefined"||p==="none";function YNt(p,g){const x={...sTt,...p},L={...nAt,...g},H={left:x.left,top:x.top,width:x.width,height:x.height};let G=x.body;[x,L].forEach(bo=>{const Yr=[],Ns=bo.hFlip,ui=bo.vFlip;let Zr=bo.rotate;Ns?ui?Zr+=2:(Yr.push("translate("+(H.width+H.left).toString()+" "+(0-H.top).toString()+")"),Yr.push("scale(-1 1)"),H.top=H.left=0):ui&&(Yr.push("translate("+(0-H.left).toString()+" "+(H.height+H.top).toString()+")"),Yr.push("scale(1 -1)"),H.top=H.left=0);let Zi;switch(Zr<0&&(Zr-=Math.floor(Zr/4)*4),Zr=Zr%4,Zr){case 1:Zi=H.height/2+H.top,Yr.unshift("rotate(90 "+Zi.toString()+" "+Zi.toString()+")");break;case 2:Yr.unshift("rotate(180 "+(H.width/2+H.left).toString()+" "+(H.height/2+H.top).toString()+")");break;case 3:Zi=H.width/2+H.left,Yr.unshift("rotate(-90 "+Zi.toString()+" "+Zi.toString()+")");break}Zr%2===1&&(H.left!==H.top&&(Zi=H.left,H.left=H.top,H.top=Zi),H.width!==H.height&&(Zi=H.width,H.width=H.height,H.height=Zi)),Yr.length&&(G=''+G+"")});const ye=L.width,Oe=L.height,ot=H.width,At=H.height;let sn,tr;ye===null?(tr=Oe===null?"1em":Oe==="auto"?At:Oe,sn=sEt(tr,ot/At)):(sn=ye==="auto"?ot:ye,tr=Oe===null?sEt(sn,At/ot):Oe==="auto"?At:Oe);const Nt={},Ot=(bo,Yr)=>{XNt(Yr)||(Nt[bo]=Yr.toString())};return Ot("width",sn),Ot("height",tr),Nt.viewBox=H.left.toString()+" "+H.top.toString()+" "+ot.toString()+" "+At.toString(),{attributes:Nt,body:G}}const QNt=/\sid="(\S+)"/g,ZNt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ewt=0;function twt(p,g=ZNt){const x=[];let L;for(;L=QNt.exec(p);)x.push(L[1]);if(!x.length)return p;const H="suffix"+(Math.random()*16777216|Date.now()).toString(16);return x.forEach(G=>{const ye=typeof g=="function"?g(G):g+(ewt++).toString(),Oe=G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");p=p.replace(new RegExp('([#;"])('+Oe+')([")]|\\.[a-z])',"g"),"$1"+ye+H+"$3")}),p=p.replace(new RegExp(H,"g"),""),p}function nwt(p,g){let x=p.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const L in g)x+=" "+L+'="'+g[L]+'"';return'"+p+""}function rwt(p){return p.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function iwt(p){return"data:image/svg+xml,"+rwt(p)}function owt(p){return'url("'+iwt(p)+'")'}let Cje;function awt(){try{Cje=window.trustedTypes.createPolicy("iconify",{createHTML:p=>p})}catch{Cje=null}}function swt(p){return Cje===void 0&&awt(),Cje?Cje.createHTML(p):p}const rAt={...nAt,inline:!1},cwt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lwt={display:"inline-block"},Abt={backgroundColor:"currentColor"},iAt={backgroundColor:"transparent"},cEt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},lEt={WebkitMask:Abt,mask:Abt,background:iAt};for(const p in lEt){const g=lEt[p];for(const x in cEt)g[p+x]=cEt[x]}const uwt={...rAt,inline:!0};function uEt(p){return p+(p.match(/^[-0-9.]+$/)?"px":"")}const fwt=(p,g,x,L)=>{const H=x?uwt:rAt,G=UNt(H,g),ye=g.mode||"svg",Oe={},ot=g.style||{},At={...ye==="svg"?cwt:{},ref:L};for(let ui in g){const Zr=g[ui];if(Zr!==void 0)switch(ui){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":G[ui]=Zr===!0||Zr==="true"||Zr===1;break;case"flip":typeof Zr=="string"&&JNt(G,Zr);break;case"color":Oe.color=Zr;break;case"rotate":typeof Zr=="string"?G[ui]=$Nt(Zr):typeof Zr=="number"&&(G[ui]=Zr);break;case"ariaHidden":case"aria-hidden":Zr!==!0&&Zr!=="true"&&delete At["aria-hidden"];break;default:H[ui]===void 0&&(At[ui]=Zr)}}const sn=YNt(p,G),tr=sn.attributes;if(G.inline&&(Oe.verticalAlign="-0.125em"),ye==="svg"){At.style={...Oe,...ot},Object.assign(At,tr);let ui=0,Zr=g.id;return typeof Zr=="string"&&(Zr=Zr.replace(/-/g,"_")),At.dangerouslySetInnerHTML={__html:swt(twt(sn.body,Zr?()=>Zr+"ID"+ui++:"iconifyReact"))},fz.createElement("svg",At)}const{body:Nt,width:Ot,height:bo}=p,Yr=ye==="mask"||(ye==="bg"?!1:Nt.indexOf("currentColor")!==-1),Ns=nwt(Nt,{...tr,width:Ot+"",height:bo+""});return At.style={...Oe,"--svg":owt(Ns),width:uEt(tr.width),height:uEt(tr.height),...lwt,...Yr?Abt:iAt,...ot},fz.createElement("span",At)},_wt=Object.create(null);function oAt(p,g,x){const L=p.icon,H=typeof L=="string"?_wt[L]:typeof L=="object"?L:null;return H===null||typeof H!="object"||typeof H.body!="string"?p.children?p.children:fz.createElement("span",{}):fwt({...sTt,...H},p,g,x)}const Hje=fz.forwardRef(function(g,x){return oAt(g,!1,x)});fz.forwardRef(function(g,x){return oAt(g,!0,x)});class dwt{constructor(g,x){this.buf=[],jje(g)||this.buf.push(g)}toString(){return lA("",this.buf)}}function pwt(p,g){return new dwt(p,g)}function mwt(){return pwt("",16)}function aAt(p,g){return p.buf.push(g),p}function gwt(p){return p.buf.push(` -`),p}function hwt(p){throw new Error(p)}const ywt="Enumeration already finished.",vwt="Enumeration has not started. Call MoveNext.",sAt="The input sequence has an insufficient number of elements.",bwt="Reset is not supported on this enumerator.";function Twt(){throw new Error(bwt)}function cTt(){throw new Error(vwt)}function Cbt(){throw new Error(ywt)}class Swt{constructor(g){this.f=g}toString(){const g=this;let x=0,L="seq [";const H=Ix(g);try{for(;x<4&&H["System.Collections.IEnumerator.MoveNext"]();)x>0&&(L=L+"; "),L=L+wE(H["System.Collections.Generic.IEnumerator`1.get_Current"]()),x=x+1|0;return x===4&&(L=L+"; ..."),L+"]"}finally{d2(H)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Ewt(p){return new Swt(p)}class xwt{constructor(g,x,L){this.current=g,this.next=x,this.dispose=L}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Twt()}Dispose(){this.dispose()}}function tat(p,g,x){return new xwt(p,g,x)}function Awt(p){let g,x,L=!1,H=!1,G;const ye=()=>{if(H=!0,x!=null){const Oe=df(x);try{d2(Oe)}finally{x=void 0}}if(g!=null){const Oe=df(g);try{d2(Oe)}finally{g=void 0}}};return tat(()=>(L?H&&Cbt():cTt(),G!=null?df(G):Cbt()),()=>{let Oe;if(L||(L=!0),H)return!1;{let ot;for(;ot==null;){const At=g,sn=x;if(At!=null)if(sn!=null){const tr=df(sn);if(tr["System.Collections.IEnumerator.MoveNext"]())G=LD(tr["System.Collections.Generic.IEnumerator`1.get_Current"]()),ot=!0;else try{d2(tr)}finally{x=void 0}}else{const tr=df(At);tr["System.Collections.IEnumerator.MoveNext"]()?x=(Oe=tr["System.Collections.Generic.IEnumerator`1.get_Current"](),Ix(Oe)):(ye(),ot=!1)}else g=Ix(p)}return df(ot)}},()=>{H||ye()})}function Cwt(p,g){return tat(()=>g["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>g["System.Collections.IEnumerator.MoveNext"](),()=>{try{d2(g)}finally{p()}})}function cAt(p,g,x){let L=!1,H,G=LD(p());const ye=()=>{if(G!=null){const ot=df(G);try{x(ot)}finally{G=void 0}}},Oe=()=>{try{ye()}finally{H=void 0}};return tat(()=>(L||cTt(),H!=null?df(H):Cbt()),()=>{if(L||(L=!0),G!=null){const ot=df(G);let At;try{At=g(ot)}catch(sn){throw Oe(),sn}return At!=null?(H=At,!0):(Oe(),!1)}else return!1},ye)}function Dwt(p,g){let x,L=g;return tat(()=>{if(x!=null){const H=df(x)[0];return df(x)[1],H}else return cTt()},()=>(x=p(L),x!=null?(df(x)[0],L=df(x)[1],!0):!1),()=>{})}function Iwt(p,g){g==null&&hwt(p)}function iMe(p){return Ewt(p)}function zne(p){return Iwt("source",p),Ix(p)}function cd(p){return iMe(()=>Ix(p()))}function EVe(p){return iMe(()=>Awt(p))}function kwt(p,g){return iMe(()=>Dwt(p,g))}function Uw(){return cd(()=>new Array(0))}function fg(p){return cd(()=>CNt(p))}function Zd(p){return tX(p)?fu(p):p instanceof TL?p:tTe(p)}function lAt(p,g,x){return iMe(()=>cAt(p,g,x))}function Pwt(p,g,x){return iMe(()=>{let L=-1;return cAt(p,H=>(L=L+1|0,g(L,H)),x)})}function V1(p,g){return EVe([p,g])}function oMe(p,g){return lAt(()=>zne(g),x=>{let L;for(;L==null&&x["System.Collections.IEnumerator.MoveNext"]();)L=p(x["System.Collections.Generic.IEnumerator`1.get_Current"]());return L},x=>{d2(x)})}function Nwt(p,g,x){const L=zne(g);try{const H=zne(x);try{let G=0,ye=L["System.Collections.IEnumerator.MoveNext"](),Oe=H["System.Collections.IEnumerator.MoveNext"]();for(;G===0&&ye&&Oe;)G=p(L["System.Collections.Generic.IEnumerator`1.get_Current"](),H["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,G===0&&(ye=L["System.Collections.IEnumerator.MoveNext"](),Oe=H["System.Collections.IEnumerator.MoveNext"]());return(G!==0?G:ye?1:Oe?-1:0)|0}finally{d2(H)}}finally{d2(L)}}function wwt(p,g,x){const L=zne(g);try{let H=!1;for(;!H&&L["System.Collections.IEnumerator.MoveNext"]();)H=x.Equals(p,L["System.Collections.Generic.IEnumerator`1.get_Current"]());return H}finally{d2(L)}}function uAt(p,g){return oMe(x=>{if(p(x))return LD(x)},g)}function rTe(p,g){const x=zne(g);try{let L=!1;for(;!L&&x["System.Collections.IEnumerator.MoveNext"]();)L=p(x["System.Collections.Generic.IEnumerator`1.get_Current"]());return L}finally{d2(x)}}function fAt(p,g,x){const L=zne(x);try{let H=g;for(;L["System.Collections.IEnumerator.MoveNext"]();)H=p(H,L["System.Collections.Generic.IEnumerator`1.get_Current"]());return H}finally{d2(L)}}function nat(p,g){fAt((x,L)=>{p(L)},void 0,g)}function Rwt(p,g){fAt((x,L)=>(p(x,L),x+1|0),0,g)}function zO(p,g){return lAt(()=>zne(g),x=>x["System.Collections.IEnumerator.MoveNext"]()?LD(p(x["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,x=>{d2(x)})}function Mwt(p,g){return iMe(()=>{const x=zne(g);try{for(let L=1;L<=p;L++)if(!x["System.Collections.IEnumerator.MoveNext"]())throw new Error(sAt+"\\nParameter name: source");return Cwt(()=>{},x)}catch(L){throw d2(x),L}})}function Lwt(p,g){return Pwt(()=>zne(g),(x,L)=>{if(x{d2(x)})}function sot(p,g){return cd(()=>EVe(zO(p,g)))}const z1e={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function N0t(p,g){return p.replace(/[a-z]?[A-Z]/g,x=>x.length===1?x.toLowerCase():x.charAt(0)+g+x.charAt(1).toLowerCase())}function Owt(p,g){switch(g){case z1e.LowerFirst:return p.charAt(0).toLowerCase()+p.slice(1);case z1e.SnakeCase:return N0t(p,"_");case z1e.SnakeCaseAllCaps:return N0t(p,"_").toUpperCase();case z1e.KebabCase:return N0t(p,"-");case z1e.None:default:return p}}function fEt(p,g=z1e.None){const x={},L=g;function H(ye){throw new Error("Cannot infer key and value of "+String(ye))}function G(ye,Oe,ot){ye=Owt(ye,Oe),x[ye]=ot}for(let ye of p){let Oe=z1e.None;if(ye==null&&H(ye),ye instanceof wh){const ot=ye.cases()[ye.tag];ye=ye.fields.length===0?ot:[ot].concat(ye.fields),Oe=L}if(Array.isArray(ye))switch(ye.length){case 0:H(ye);break;case 1:G(ye[0],Oe,!0);break;case 2:const ot=ye[1];G(ye[0],Oe,ot);break;default:G(ye[0],Oe,ye.slice(1))}else typeof ye=="string"?G(ye,Oe,!0):H(ye)}return x}function Fwt(p,g,x){return p.has(g)?(x.contents=p.get(g),!0):!1}function Wwt(p,g){return g.has(p)?!1:(g.add(p),!0)}function _At(p,g,x){if(p.has(g))throw new Error("An item with the same key has already been added. Key: "+g);p.set(g,x)}function rat(p,g){if(p.has(g))return p.get(g);throw new Error(`The given key '${g}' was not present in the dictionary.`)}class Bwt{constructor(g,x){const L=new WRe(W5());this.comparer=x,L.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const H=Ix(g);try{for(;H["System.Collections.IEnumerator.MoveNext"]();){const G=H["System.Collections.Generic.IEnumerator`1.get_Current"]();w0t(L.contents,G)}}finally{d2(H)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const g=this;return Array.from(g)}"System.Collections.IEnumerable.GetEnumerator"(){return Ix(this)}GetEnumerator(){return Ix(EVe(this.hashMap.values()))}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.Generic.ICollection`1.Add2B595"(g){w0t(this,g)}"System.Collections.Generic.ICollection`1.Clear"(){_Et(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(g){return pEt(this,g)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){Rwt((H,G)=>{Wne(g,x+H,G)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return dEt(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(g){return mEt(this,g)}get size(){return dEt(this)|0}add(g){const x=this;return w0t(x,g),x}clear(){_Et(this)}delete(g){return mEt(this,g)}has(g){return pEt(this,g)}keys(){return zO(x=>x,this)}values(){return zO(x=>x,this)}entries(){return zO(x=>[x,x],this)}forEach(g,x){const L=this;nat(H=>{g(H,H,L)},L)}}function lTt(p,g){const x=p.comparer.GetHashCode(g)|0;let L,H=W5();return L=[Fwt(p.hashMap,x,new WRe(()=>H,G=>{H=G})),H],L[0]?[!0,x,L[1].findIndex(G=>p.comparer.Equals(g,G))]:[!1,x,-1]}function _Et(p){p.hashMap.clear()}function dEt(p){let g=0,x=Ix(p.hashMap.values());try{for(;x["System.Collections.IEnumerator.MoveNext"]();){const L=x["System.Collections.Generic.IEnumerator`1.get_Current"]();g=g+L.length|0}}finally{d2(x)}return g|0}function w0t(p,g){const x=lTt(p,g);return x[0]?x[2]>-1?!1:(rat(p.hashMap,x[1]).push(g),!0):(p.hashMap.set(x[1],[g]),!0)}function pEt(p,g){const x=lTt(p,g);let L;switch(x[0]&&x[2]>-1?L=0:L=1,L){case 0:return!0;default:return!1}}function mEt(p,g){const x=lTt(p,g);let L;switch(x[0]&&x[2]>-1?L=0:L=1,L){case 0:return rat(p.hashMap,x[1]).splice(x[2],1),!0;default:return!1}}class dAt{constructor(g){this.k=g}}function N5(p){return new dAt(p)}function Vh(p){return p.k}class XT extends dAt{constructor(g,x,L,H){super(g),this.left=x,this.right=L,this.h=H|0}}function w5(p,g,x,L){return new XT(p,g,x,L)}function bT(p){return p.left}function j1(p){return p.right}function uRe(p){return p.h}function pAt(p,g){e:for(;;){const x=p,L=g;if(x!=null){const H=df(x);if(H instanceof XT){const G=H;p=bT(G),g=pAt(j1(G),L+1);continue e}else return L+1|0}else return L|0}}function zwt(p){return pAt(p,0)}function k5(p,g,x){let L,H,G;const ye=p;if(ye!=null){const sn=df(ye);G=sn instanceof XT?(L=sn,uRe(L)):1}else G=0;let Oe;const ot=x;if(ot!=null){const sn=df(ot);Oe=sn instanceof XT?(H=sn,uRe(H)):1}else Oe=0;const At=(Gtr+2){const Yr=df(x);if(Yr instanceof XT){const Ns=Yr;if(G=bT(Ns),(G!=null?(ye=df(G),ye instanceof XT?(Oe=ye,uRe(Oe)):1):0)>tr+1){const ui=df(bT(Ns));if(ui instanceof XT){const Zr=ui;return k5(k5(p,g,bT(Zr)),Vh(Zr),k5(j1(Zr),Vh(Ns),j1(Ns)))}else throw new Error("internal error: Set.rebalance")}else return k5(k5(p,g,bT(Ns)),Vh(Ns),j1(Ns))}else throw new Error("internal error: Set.rebalance")}else if(tr>Ot+2){const Yr=df(p);if(Yr instanceof XT){const Ns=Yr;if(ot=j1(Ns),(ot!=null?(At=df(ot),At instanceof XT?(sn=At,uRe(sn)):1):0)>Ot+1){const ui=df(j1(Ns));if(ui instanceof XT){const Zr=ui;return k5(k5(bT(Ns),Vh(Ns),bT(Zr)),Vh(Zr),k5(j1(Zr),g,x))}else throw new Error("internal error: Set.rebalance")}else return k5(bT(Ns),Vh(Ns),k5(j1(Ns),g,x))}else throw new Error("internal error: Set.rebalance")}else return k5(p,g,x)}function BRe(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,Vh(L))|0;if(L instanceof XT){const G=L;return H<0?cot(BRe(p,g,bT(G)),Vh(G),j1(G)):H===0?x:cot(bT(G),Vh(G),BRe(p,g,j1(G)))}else{const G=p.Compare(g,Vh(L))|0;return G<0?w5(g,void 0,x,2):G===0?x:w5(g,x,void 0,2)}}else return N5(g)}function mAt(p){if(p!=null){const g=df(p);if(g instanceof XT){const x=g;if(bT(x)==null)return[Vh(x),j1(x)];{const L=mAt(bT(x));return[L[0],k5(L[1],Vh(x),j1(x))]}}else return[Vh(g),void 0]}else throw new Error("internal error: Set.spliceOutSuccessor")}function Dbt(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,Vh(L))|0;if(L instanceof XT){const G=L;if(H<0)return cot(Dbt(p,g,bT(G)),Vh(G),j1(G));if(H===0){if(bT(G)==null)return j1(G);if(j1(G)==null)return bT(G);{const ye=mAt(j1(G));return k5(bT(G),ye[0],ye[1])}}else return cot(bT(G),Vh(G),Dbt(p,g,j1(G)))}else return H===0?void 0:x}else return x}function gAt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,Vh(ye))|0;if(ye instanceof XT){const ot=ye;if(Oe<0){p=L,g=H,x=bT(ot);continue e}else{if(Oe===0)return!0;p=L,g=H,x=j1(ot);continue e}}else return Oe===0}else return!1}}function hAt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof XT){const G=H;hAt(x,bT(G)),x(Vh(G)),p=x,g=j1(G);continue e}else x(Vh(H))}break}}class Gwt extends ap{constructor(g,x){super(),this.stack=g,this.started=x}}function yAt(p){e:for(;;){const g=p;if(yd(g))return lc();{const x=Hp(g),L=Ay(g);if(x!=null){const H=df(x);if(H instanceof XT){const G=H;p=wC([bT(G),N5(Vh(G)),j1(G)],L);continue e}else return g}else{p=L;continue e}}}}function gEt(p){return new Gwt(yAt(_l(p)),!1)}function jwt(){throw new Error("Enumeration not started")}function Vwt(){throw new Error("Enumeration already started")}function hEt(p){if(p.started){const g=p.stack;if(yd(g))return Vwt();if(Hp(g)!=null){const x=df(Hp(g));return Vh(x)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return jwt()}function Uwt(p){if(p.started){const g=p.stack;if(yd(g))return!1;if(Hp(g)!=null){if(df(Hp(g))instanceof XT)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return p.stack=yAt(Ay(g)),!yd(p.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return p.started=!0,!yd(p.stack)}function yEt(p){let g=gEt(p);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return hEt(g)},"System.Collections.IEnumerator.get_Current"(){return hEt(g)},"System.Collections.IEnumerator.MoveNext"(){return Uwt(g)},"System.Collections.IEnumerator.Reset"(){g=gEt(p)},Dispose(){}}}function Hwt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(yd(H))return yd(G)?0:-1;if(yd(G))return 1;if(Hp(G)!=null)if(Hp(H)!=null){const ye=df(Hp(H)),Oe=df(Hp(G));if(ye instanceof XT){const ot=ye;if(bT(ot)==null)if(Oe instanceof XT){const At=Oe;if(bT(At)==null){const sn=L.Compare(Vh(ot),Vh(At))|0;if(sn!==0)return sn|0;p=L,g=wD(j1(ot),Ay(H)),x=wD(j1(At),Ay(G));continue e}else{let sn,tr,Nt,Ot,bo;switch(yd(H)?yd(G)?sn=2:Hp(G)!=null?(sn=1,Ot=Ay(G),bo=df(Hp(G))):sn=2:Hp(H)!=null?(sn=0,tr=Ay(H),Nt=df(Hp(H))):yd(G)?sn=2:Hp(G)!=null?(sn=1,Ot=Ay(G),bo=df(Hp(G))):sn=2,sn){case 0:if(Nt instanceof XT){const Yr=Nt;p=L,g=wC([bT(Yr),w5(Vh(Yr),void 0,j1(Yr),0)],tr),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(Nt))],tr),x=G;continue e}case 1:if(bo instanceof XT){const Yr=bo;p=L,g=H,x=wC([bT(Yr),w5(Vh(Yr),void 0,j1(Yr),0)],Ot);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(bo))],Ot);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const At=L.Compare(Vh(ot),Vh(Oe))|0;if(At!==0)return At|0;p=L,g=wD(j1(ot),Ay(H)),x=wD(void 0,Ay(G));continue e}else{let At,sn,tr,Nt,Ot;switch(yd(H)?yd(G)?At=2:Hp(G)!=null?(At=1,Nt=Ay(G),Ot=df(Hp(G))):At=2:Hp(H)!=null?(At=0,sn=Ay(H),tr=df(Hp(H))):yd(G)?At=2:Hp(G)!=null?(At=1,Nt=Ay(G),Ot=df(Hp(G))):At=2,At){case 0:if(tr instanceof XT){const bo=tr;p=L,g=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],sn),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(tr))],sn),x=G;continue e}case 1:if(Ot instanceof XT){const bo=Ot;p=L,g=H,x=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],Nt);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(Ot))],Nt);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(Oe instanceof XT){const ot=Oe;if(bT(ot)==null){const At=L.Compare(Vh(ye),Vh(ot))|0;if(At!==0)return At|0;p=L,g=wD(void 0,Ay(H)),x=wD(j1(ot),Ay(G));continue e}else{let At,sn,tr,Nt,Ot;switch(yd(H)?yd(G)?At=2:Hp(G)!=null?(At=1,Nt=Ay(G),Ot=df(Hp(G))):At=2:Hp(H)!=null?(At=0,sn=Ay(H),tr=df(Hp(H))):yd(G)?At=2:Hp(G)!=null?(At=1,Nt=Ay(G),Ot=df(Hp(G))):At=2,At){case 0:if(tr instanceof XT){const bo=tr;p=L,g=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],sn),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(tr))],sn),x=G;continue e}case 1:if(Ot instanceof XT){const bo=Ot;p=L,g=H,x=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],Nt);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(Ot))],Nt);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const ot=L.Compare(Vh(ye),Vh(Oe))|0;if(ot!==0)return ot|0;p=L,g=Ay(H),x=Ay(G);continue e}}else{df(Hp(G));let ye,Oe,ot,At,sn;switch(yd(H)?yd(G)?ye=2:Hp(G)!=null?(ye=1,At=Ay(G),sn=df(Hp(G))):ye=2:Hp(H)!=null?(ye=0,Oe=Ay(H),ot=df(Hp(H))):yd(G)?ye=2:Hp(G)!=null?(ye=1,At=Ay(G),sn=df(Hp(G))):ye=2,ye){case 0:if(ot instanceof XT){const tr=ot;p=L,g=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],Oe),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(ot))],Oe),x=G;continue e}case 1:if(sn instanceof XT){const tr=sn;p=L,g=H,x=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],At);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(sn))],At);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(Hp(H)!=null){df(Hp(H));let ye,Oe,ot,At,sn;switch(yd(H)?yd(G)?ye=2:Hp(G)!=null?(ye=1,At=Ay(G),sn=df(Hp(G))):ye=2:Hp(H)!=null?(ye=0,Oe=Ay(H),ot=df(Hp(H))):yd(G)?ye=2:Hp(G)!=null?(ye=1,At=Ay(G),sn=df(Hp(G))):ye=2,ye){case 0:if(ot instanceof XT){const tr=ot;p=L,g=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],Oe),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(ot))],Oe),x=G;continue e}case 1:if(sn instanceof XT){const tr=sn;p=L,g=H,x=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],At);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(sn))],At);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{p=L,g=Ay(H),x=Ay(G);continue e}}}function vEt(p,g,x){return g==null?x==null?0:-1:x==null?1:Hwt(p,_l(g),_l(x))|0}function Jwt(p,g,x){let L=x;hAt(H=>{Wne(g,L,H),L=L+1|0},p)}function $wt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G["System.Collections.IEnumerator.MoveNext"]()){p=L,g=BRe(L,G["System.Collections.Generic.IEnumerator`1.get_Current"](),H),x=G;continue e}else return H}}function qwt(p,g){return DNt((x,L)=>BRe(p,L,x),void 0,g)}function Kwt(p,g){return HO((x,L)=>BRe(p,L,x),void 0,g)}function Xwt(p,g){if(tX(g))return qwt(p,g);if(g instanceof TL)return Kwt(p,g);{const x=Ix(g);try{return $wt(p,void 0,x)}finally{d2(x)}}}class uTt{constructor(g,x){this.comparer=g,this.tree=x}GetHashCode(){return eRt(this)|0}Equals(g){let x;const L=this;return g instanceof uTt&&(x=g,vEt(v_e(L),nz(L),nz(x))===0)}toString(){return"set ["+lA("; ",zO(x=>wE(x),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const g=this;return Array.from(g)}CompareTo(g){const x=this;return vEt(v_e(x),nz(x),nz(g))|0}"System.Collections.Generic.ICollection`1.Add2B595"(g){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(g){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(g){const x=this;return gAt(v_e(x),g,nz(x))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){Jwt(nz(this),g,x)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return R0t(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return R0t(this)|0}GetEnumerator(){return yEt(nz(this))}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return yEt(nz(this))}get size(){return R0t(this)|0}add(g){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(g){throw new Error("Set cannot be mutated")}has(g){return fTt(this,g)}keys(){return zO(x=>x,this)}values(){return zO(x=>x,this)}entries(){return zO(x=>[x,x],this)}forEach(g,x){const L=this;nat(H=>{g(H,H,L)},L)}}function iat(p,g){return new uTt(p,g)}function v_e(p){return p.comparer}function nz(p){return p.tree}function Ywt(p){return iat(p,void 0)}function Qwt(p,g){return iat(v_e(p),BRe(v_e(p),g,nz(p)))}function Zwt(p,g){return iat(v_e(p),Dbt(v_e(p),g,nz(p)))}function R0t(p){return zwt(nz(p))}function fTt(p,g){return gAt(v_e(p),g,nz(p))}function eRt(p){let g=0;const x=Ix(p);try{for(;x["System.Collections.IEnumerator.MoveNext"]();){const L=x["System.Collections.Generic.IEnumerator`1.get_Current"]();g=(g<<1)+nX(L)+631|0}}finally{d2(x)}return Math.abs(g)|0}function lot(p,g){return fTt(g,p)}function _Tt(p,g){return Qwt(g,p)}function vAt(p,g){return Zwt(g,p)}function xVe(p){return Ywt(p)}function bAt(p,g){return iat(g,Xwt(g,p))}function tRt(){return lc()}function TAt(p){return nTe(p)}function SAt(p,g,x){return zf(L=>[wD(p,L[0]),H=>L[1](G=>{H(g(G))})],x)}function dTt(p){return lA("/",p)}function nRt(p,g){const x=new Error("Duplicate SubId");return p(["Duplicate SubId: "+dTt(g),x])}function EAt(p,g,x){try{d2(x)}catch(L){p(["Error stopping subscription: "+dTt(g),L])}}function rRt(p,g,x,L){try{return[x,L(g)]}catch(H){p(["Error starting subscription: "+dTt(x),H]);return}}function iRt(p,g){SL(x=>{EAt(p,x[0],x[1])},g)}function bEt(p,g,x,L,H,G){return SL(ye=>{nRt(p,ye)},x),SL(ye=>{EAt(p,ye[0],ye[1])},L),oU(H,EL(ye=>rRt(p,g,ye[0],ye[1]),G))}function oRt(){return[lc(),xVe({Compare:rX}),lc()]}function aRt(p,g,x,L,H){return lot(p,L)?[wD(p,x),L,H]:[x,_Tt(p,L),wD([p,g],H)]}function sRt(p){return RNt((g,x)=>aRt(g[0],g[1],x[0],x[1],x[2]),p,oRt())}const cRt=lc();function TEt(p,g){const x=bAt(zf(ye=>ye[0],p),{Compare:rX}),L=sRt(g),H=L[1],G=L[0];if(x.Equals(H))return[G,lc(),p,lc()];{const ye=rMe(Oe=>lot(Oe[0],H),p);return[G,ye[1],ye[0],FO(Oe=>!lot(Oe[0],x),L[2])]}}class SEt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Choice1Of2","Choice2Of2"]}}class M0t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function lRt(p,g){console.error(LD(p),g)}function EEt(p,g,x){SL(L=>{try{L(g)}catch(H){p(H)}},x)}function _2(){return lc()}function lz(p,g){return zf(x=>L=>{x(H=>{L(p(H))})},g)}function xAt(p){return nTe(p)}function pTt(p,g,x){return _l(L=>{try{L(x(p(g)))}catch{}})}function mTt(p,g,x,L){return _l(H=>{p(g).then(G=>{H(x(G))}).catch(G=>{H(L(G))})})}function uRt(p,g,x,L){const H=rX(p,x)|0;if(H===0)throw new Error("The step of a range cannot be zero");const G=H>0;return ye=>{const Oe=rX(ye,g)|0;return G&&Oe<=0||!G&&Oe>=0?[ye,L(ye,p)]:void 0}}function fRt(p,g,x,L,H){const G=uRt(g,x,L,H);return cd(()=>kwt(G,p))}function _Rt(p,g,x){return fRt(p,g,x,0,(L,H)=>L+H)}class CRe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Writable","ReadWritable"]}}class dRt{constructor(g){this.state=new CRe(0,[$xt(new Array(Tbt(g,10)),0,Tbt(g,10),null),0])}}function pRt(p){return new dRt(p)}function xEt(p){const g=p.state;if(g.tag===1){const x=g.fields[1]|0,L=g.fields[2]|0,H=g.fields[0],G=(L+1)%H.length|0;return G===x?p.state=new CRe(0,[H,x]):p.state=new CRe(1,[H,x,G]),LD(Dne(L,H))}else return}function mRt(p,g){const x=p.state;if(x.tag===1){const L=x.fields[1]|0,H=x.fields[2]|0,G=x.fields[0];Wne(G,L,g);const ye=(L+1)%G.length|0;ye===H?p.state=new CRe(1,[gRt(p,H,G),G.length,0]):p.state=new CRe(1,[G,ye,H])}else{const L=x.fields[1]|0,H=x.fields[0];Wne(H,L,g);const G=(L+1)%H.length|0;p.state=new CRe(1,[H,G,L])}}function gRt(p,g,x){return Array.from(cd(()=>V1(Mwt(g,x),cd(()=>V1(Lwt(g,x),cd(()=>sot(L=>fg(W5()),_Rt(0,1,x.length))))))))}class gTt extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.init=g,this.update=x,this.subscribe=L,this.view=H,this.setState=G,this.onError=ye,this.termination=Oe}}function hRt(p,g,x){return new gTt(p,g,L=>tRt(),x,wne(L=>{const H=Ane(x)(L);return G=>{H(G)}}),L=>{lRt(L[0],L[1])},[L=>!1,L=>{}])}function yRt(p,g){return new gTt(g.init,g.update,g.subscribe,g.view,p,g.onError,g.termination)}function AEt(p){return Ane(p.view)}function AAt(p,g,x,L,H,G,ye){const Oe=Ane(p)(ye.init),ot=k0t(g)(Ane(ye.update)),At=k0t(x)(Ane(ye.view)),sn=k0t(L)(Ane(ye.setState));return new gTt(Oe,wne(ot),Ane(H)(ye.subscribe),wne(At),wne(sn),ye.onError,G(ye.termination))}function vRt(p,g,x){let L;const H=x.init(g),G=H[0],ye=x.subscribe(G),Oe=x.termination,ot=pRt(10);let At=!1,sn=G,tr=cRt,Nt=!1;const Ot=Ns=>{Nt||(mRt(ot,Ns),At||(At=!0,Yr(),At=!1))},bo=Ane(p)(Ot),Yr=()=>{let Ns,ui=xEt(ot);for(;!Nt&&ui!=null;){const Zr=df(ui);if(Oe[0](Zr))iRt(x.onError,tr),Oe[1](sn),Nt=!0;else{const Zi=x.update(Zr,sn),jr=Zi[0],lr=x.subscribe(jr);x.setState(jr,bo),tr=(Ns=TEt(tr,lr),bEt(x.onError,bo,Ns[0],Ns[1],Ns[2],Ns[3])),EEt(ra=>{x.onError([Rne(bbt("Error handling the message: %A"))(Zr),ra])},bo,Zi[1]),sn=jr,ui=xEt(ot)}}};At=!0,x.setState(G,bo),tr=(L=TEt(tr,ye),bEt(x.onError,bo,L[0],L[1],L[2],L[3])),EEt(Ns=>{x.onError([Rne(bbt("Error intitializing:")),Ns])},bo,H[1]),Yr(),At=!1}function bRt(p,g){vRt(wne(x=>x),p,g)}function TRt(p){bRt(void 0,p)}var CAt={exports:{}},G5={},DAt={exports:{}},IAt={};/** + */var yVe=Symbol.for("react.element"),SPt=Symbol.for("react.portal"),EPt=Symbol.for("react.fragment"),xPt=Symbol.for("react.strict_mode"),APt=Symbol.for("react.profiler"),CPt=Symbol.for("react.provider"),DPt=Symbol.for("react.context"),IPt=Symbol.for("react.forward_ref"),kPt=Symbol.for("react.suspense"),PPt=Symbol.for("react.memo"),NPt=Symbol.for("react.lazy"),USt=Symbol.iterator;function wPt(p){return p===null||typeof p!="object"?null:(p=USt&&p[USt]||p["@@iterator"],typeof p=="function"?p:null)}var vxt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bxt=Object.assign,Txt={};function ZRe(p,g,x){this.props=p,this.context=g,this.refs=Txt,this.updater=x||vxt}ZRe.prototype.isReactComponent={};ZRe.prototype.setState=function(p,g){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,g,"setState")};ZRe.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Sxt(){}Sxt.prototype=ZRe.prototype;function Z1t(p,g,x){this.props=p,this.context=g,this.refs=Txt,this.updater=x||vxt}var eTt=Z1t.prototype=new Sxt;eTt.constructor=Z1t;bxt(eTt,ZRe.prototype);eTt.isPureReactComponent=!0;var HSt=Array.isArray,Ext=Object.prototype.hasOwnProperty,tTt={current:null},xxt={key:!0,ref:!0,__self:!0,__source:!0};function Axt(p,g,x){var L,H={},G=null,ye=null;if(g!=null)for(L in g.ref!==void 0&&(ye=g.ref),g.key!==void 0&&(G=""+g.key),g)Ext.call(g,L)&&!xxt.hasOwnProperty(L)&&(H[L]=g[L]);var Oe=arguments.length-2;if(Oe===1)H.children=x;else if(1nX(L));return Qot(x)}else return Gje(Cne.id(p))}}}function FRe(p){return VPt(p)}function JPt(p,g,x){if(p==null)return g==null;if(g==null||p.length!==g.length)return!1;for(let L=0;Lp(x)(L);return rTt.set(g,p),g}function Ane(p){return rTt.get(p)??(g=>x=>p(g,x))}function k0t(p){return rTt.get(p)??(g=>x=>L=>p(g,x,L))}const eMe=Symbol("numeric");function Nxt(p){return typeof p=="number"||typeof p=="bigint"||(p==null?void 0:p[eMe])}function XPt(p,g){return typeof p=="number"||typeof p=="bigint"?pg?1:0:p.CompareTo(g)}function vbt(p,g){return typeof p=="number"?p*g:typeof p=="bigint"?p*BigInt(g):p[eMe]().multiply(g)}function Pit(p,g){return typeof p=="number"?p.toFixed(g):typeof p=="bigint"?p:p[eMe]().toFixed(g)}function rot(p,g){return typeof p=="number"?p.toPrecision(g):typeof p=="bigint"?p:p[eMe]().toPrecision(g)}function iot(p,g){return typeof p=="number"?p.toExponential(g):typeof p=="bigint"?p:p[eMe]().toExponential(g)}function oot(p){return typeof p=="number"?(Number(p)>>>0).toString(16):typeof p=="bigint"?BigInt.asUintN(64,p).toString(16):p[eMe]().toHex()}function YPt(p){let g=0,x="[";for(const L of p){if(g===0)x+=wE(L);else if(g===100){x+="; ...";break}else x+="; "+wE(L);g++}return x+"]"}function wE(p,g=0){var x;if(p!=null&&typeof p=="object"){if(typeof p.toString=="function")return p.toString();if(Symbol.iterator in p)return YPt(p);{const L=(x=Object.getPrototypeOf(p))==null?void 0:x.constructor;return L===Object&&g<10?"{ "+Object.entries(p).map(([H,G])=>H+" = "+wE(G,g+1)).join(` + `)+" }":(L==null?void 0:L.name)??""}}return String(p)}function QPt(p,g){if(g.length===0)return p;{let x,L=!0;return g.length===1?(x=wE(g[0]),L=x.indexOf(" ")>=0):x=g.map(H=>wE(H)).join(", "),p+(L?" (":" ")+x+(L?")":"")}}class wh{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return QPt(this.name,this.fields)}GetHashCode(){const g=this.fields.map(x=>nX(x));return g.splice(0,0,Gje(this.tag)),Qot(g)}Equals(g){return this===g?!0:not(this,g)&&this.tag===g.tag?Ixt(this.fields,g.fields):!1}CompareTo(g){return this===g?0:not(this,g)?this.tag===g.tag?Pxt(this.fields,g.fields):this.tagg+" = "+wE(x)).join(` + `)+" }"}function Mxt(p){const g=Object.values(p).map(x=>nX(x));return Qot(g)}function Lxt(p,g){if(p===g)return!0;if(not(p,g)){const x=Object.keys(p);for(let L=0;Lg,this.setter=L=>{g=L})}}class ZPt{constructor(g){this.message=g}}class Fxt extends ZPt{toJSON(){return wxt(this)}toString(){return Rxt(this)}GetHashCode(){return Mxt(this)}Equals(g){return Lxt(this,g)}CompareTo(g){return Oxt(this,g)}}const eNt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tNt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],nNt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rNt=["January","February","March","April","May","June","July","August","September","October","November","December"];function I5(p,g,x){let L=0,H=g;for(;H=p.length-1?-1:p.charCodeAt(g+1)}function iNt(p,g){let x=g;const L=p[g];let H="",G=!1;for(;g=0&&bo!==37)L+=2,G+=iTt(ye,String.fromCharCode(bo),x);else throw new Error("Invalid format string");break;case"\\":const Yr=qSt(g,L);if(Yr>=0)L+=2,G+=String.fromCharCode(Yr);else throw new Error("Invalid format string");break;default:L++,G+=Oe;break}}return G}function KSt(p){return p.kind||0}function xRe(p){const g=p<0;p=Math.abs(p);const x=~~(p/36e5),L=p%36e5/6e4;return(g?"-":"+")+cA(x,2)+":"+cA(L,2)}function aot(p,g){const x=p.toISOString();return g==="first"?x.substring(0,x.indexOf("T")):x.substring(x.indexOf("T")+1,x.length-1)}function oNt(p,g){if(g)return p.toISOString();{const x=p.kind==null?!0:p.kind===2;return cA(p.getFullYear(),4)+"-"+cA(p.getMonth()+1,2)+"-"+cA(p.getDate(),2)+"T"+cA(p.getHours(),2)+":"+cA(p.getMinutes(),2)+":"+cA(p.getSeconds(),2)+"."+cA(p.getMilliseconds(),3)+(x?xRe(p.getTimezoneOffset()*-6e4):"")}}function aNt(p,g){const x=p.toISOString();return x.substring(0,x.length-1)+xRe(g)}function sNt(p,g){const x=new Date(p.getTime()+(p.offset??0));if(typeof g!="string")return x.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+xRe(p.offset??0);if(g.length===1)switch(g){case"D":case"d":return aot(x,"first");case"T":case"t":return aot(x,"second");case"O":case"o":return aNt(x,p.offset??0);default:throw new Error("Unrecognized Date print format")}else return iTt(x,g,!0)}function cNt(p,g){const x=p.kind===1;if(typeof g!="string")return x?p.toUTCString():p.toLocaleString();if(g.length===1)switch(g){case"D":case"d":return x?aot(p,"first"):p.toLocaleDateString();case"T":case"t":return x?aot(p,"second"):p.toLocaleTimeString();case"O":case"o":return oNt(p,x);default:throw new Error("Unrecognized Date print format")}else return iTt(p,g,x)}function Wxt(p,g,x){return p.offset!=null?sNt(p,g):cNt(p,g)}function Bxt(p,g){const x=new Date(p);return x.kind=(g??0)|0,x}function lNt(p){return p.kind===2?p:Bxt(p.getTime(),2)}function rit(p){return p.kind===1?p.getUTCHours():p.getHours()}function iit(p){return p.kind===1?p.getUTCMilliseconds():p.getMilliseconds()}function XSt(p){return p.kind===1?p.getUTCMinutes():p.getMinutes()}function oit(p){return(p.kind===1?p.getUTCMonth():p.getMonth())+1}function YSt(p){return p.kind===1?p.getUTCSeconds():p.getSeconds()}function QSt(p){return p.kind===1?p.getUTCDay():p.getDay()}function uNt(p,g=0){if(g&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let x="gu";return x+=g&1?"i":"",x+=g&2?"m":"",x+=g&16?"s":"",new RegExp(p,x)}function Zot(p){return p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function fNt(p,g,x=0){return p.lastIndex=x,p.exec(g)}function ZSt(p,g,x=0){if(g==null)throw new Error("Input cannot ve null");if(!p.global)throw new Error("Non-global RegExp");p.lastIndex=x;const L=[];let H,G=-1;for(;(H=p.exec(g))!=null;)H.index===G?p.lastIndex++:(G=H.index,L.push(H));return L}function oTt(p,g,x,L,H=0){function G(){let ye=arguments[0];if(L){L--;const Oe=[],ot=arguments.length,At=typeof arguments[ot-1]!="string";let sn=At?ot-3:ot-2;for(let tr=0;tr"$&").replace(/\${([^}]+)}/g,"$<$1>"),L!=null){let ye;const Oe=g.substring(H),ot=ZSt(p,Oe),At=ZSt.length>L?(ye=ot[L-1],Oe.substring(0,ye.index+ye[0].length)):Oe;return g.substring(0,H)+At.replace(p,x)+g.substring(H+At.length)}else return g.replace(p,x)}const QGe=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ZGe=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,_Nt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zxt(p,g){return XPt(p,g)<0}function bbt(p){return{input:p,cont:pNt(p)}}function K1e(p,g){let x=0,L=0,H="";ZGe.lastIndex=0;let G=ZGe.exec(p);for(;G;){const ye=G.index+(G[1]||"").length;H+=p.substring(L,ye).replace(/%%/g,"%");const[,,Oe,ot,At,sn]=G;L=ZGe.lastIndex,H+=jxt(g[x++],Oe,ot,At,sn),ZGe.lastIndex=L-1,G=ZGe.exec(p)}return H+=p.substring(L).replace(/%%/g,"%"),H}function Gxt(p,g){return typeof g=="string"?p(g):g.cont(p)}function Rne(p){return Gxt(g=>g,p)}function dNt(p){return Gxt(g=>{throw new Error(g)},p)}function jxt(p,g,x,L,H){let G="";if(g=g||"",H=H||"",Nxt(p))switch(H.toLowerCase()!=="x"&&(zxt(p,0)?(p=vbt(p,-1),G="-"):g.indexOf(" ")>=0?G=" ":g.indexOf("+")>=0&&(G="+")),L=L==null?null:parseInt(L,10),H){case"f":case"F":L=L??6,p=Pit(p,L);break;case"g":case"G":p=L!=null?rot(p,L):rot(p);break;case"e":case"E":p=L!=null?iot(p,L):iot(p);break;case"x":p=oot(p);break;case"X":p=oot(p).toUpperCase();break;default:p=String(p);break}else p instanceof Date?p=Wxt(p):p=wE(p);if(x=typeof x=="number"?x:parseInt(x,10),isNaN(x))p=G+p;else{const ye=g.indexOf("0")>=0,Oe=g.indexOf("-")>=0,ot=Oe||!ye?" ":"0";ot==="0"?(p=Vje(p,x-G.length,ot,Oe),p=G+p):p=Vje(G+p,x,ot,Oe)}return p}function Vxt(p,g,x,L="",H=-1){return(...G)=>{let ye=L;const Oe=g.slice(),ot=x.slice();for(const At of G){const[,,sn,tr,Nt,Ot]=ot[0];let bo=tr;if(H>=0)bo=H,H=-1;else if(bo==="*"){if(At<0)throw new Error("Non-negative number required");H=At;continue}ye+=Oe[0],ye+=jxt(At,sn,bo,Nt,Ot),Oe.splice(0,1),ot.splice(0,1)}return ot.length===0?(ye+=Oe[0],p(ye)):Vxt(p,Oe,ot,ye,H)}}function pNt(p){return g=>{QGe.lastIndex=0;const x=[],L=[];let H=0,G=QGe.exec(p);for(;G;){const ye=G.index+(G[1]||"").length;x.push(p.substring(H,ye).replace(/%%/g,"%")),L.push(G),H=QGe.lastIndex,QGe.lastIndex-=1,G=QGe.exec(p)}return x.length===0?g(p.replace(/%%/g,"%")):(x.push(p.substring(H).replace(/%%/g,"%")),Vxt(g,x,L))}}function mNt(p,...g){let x;return typeof p=="object"?(x=String(g[0]),g.shift()):x=p,x.replace(_Nt,(L,H,G,ye,Oe,ot)=>{if(H<0||H>=g.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let At=g[H];if(Nxt(At))switch(Oe=Oe==null?null:parseInt(Oe,10),ye){case"f":case"F":Oe=Oe??2,At=Pit(At,Oe);break;case"g":case"G":At=Oe!=null?rot(At,Oe):rot(At);break;case"e":case"E":At=Oe!=null?iot(At,Oe):iot(At);break;case"p":case"P":Oe=Oe??2,At=Pit(vbt(At,100),Oe)+" %";break;case"d":case"D":At=Oe!=null?P0t(String(At),Oe,"0"):String(At);break;case"x":case"X":At=Oe!=null?P0t(oot(At),Oe,"0"):oot(At),ye==="X"&&(At=At.toUpperCase());break;default:if(ot){let sn="";At=ot.replace(/([0#,]+)(\.[0#]+)?/,(tr,Nt,Ot)=>{zxt(At,0)&&(At=vbt(At,-1),sn="-"),Ot=Ot==null?"":Ot.substring(1),At=Pit(At,Math.max(Ot.length,0));let[bo,Yr]=At.split(".");Yr||(Yr="");const Ns=Nt.replace(/,/g,"").replace(/^#+/,"").length;bo=P0t(bo,Ns,"0");const ui=Ot.replace(/#+$/,"").length;if(ui>Yr.length?Yr=yNt(Yr,ui,"0"):ui0){const Zr=bo.length%3,Zi=Math.floor(bo.length/3);let jr=Zr>0?bo.substr(0,Zr)+(Zi>0?",":""):"";for(let lr=0;lr0?bo+"."+Yr:bo}),At=sn+At}}else At instanceof Date?At=Wxt(At,ot||ye):At=wE(At);return G=parseInt((G||" ").substring(1),10),isNaN(G)||(At=Vje(String(At),Math.abs(G)," ",G<0)),At})}function gNt(p,g){const x=p.lastIndexOf(g);return x>=0&&x===p.length-g.length}function hNt(p,g){if(p<0)throw new Error("String length must be non-negative");const x=new Array(p);for(let L=0;Lg)}function Uxt(p,...g){if(g.length===0)return p.trim();const x="["+Zot(g.join(""))+"]+";return p.replace(new RegExp("^"+x),"").replace(new RegExp(x+"$"),"")}function Nit(p,...g){return g.length===0?p.trimStart():p.replace(new RegExp("^["+Zot(g.join(""))+"]+"),"")}function bNt(p,...g){return g.length===0?p.trimEnd():p.replace(new RegExp("["+Zot(g.join(""))+"]+$"),"")}function ARe(p,g,x){if(g+(x||0)>p.length)throw new Error("Invalid startIndex and/or length");return x!=null?p.substr(g,x):p.substr(g)}class eTe{constructor(g){this.value=g}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return nX(this.value)}Equals(g){return g==null?!1:g8(this.value,g instanceof eTe?g.value:g)}CompareTo(g){return g==null?1:rX(this.value,g instanceof eTe?g.value:g)}}function df(p){if(p==null)throw new Error("Option has no value");return p instanceof eTe?p.value:p}function eEt(p){return p instanceof eTe?p.value:p}function LD(p){return p==null||p instanceof eTe?new eTe(p):p}function TNt(p){return p==null?[]:[df(p)]}function m8(p,g){return p!=null?df(p):g}function tEt(p,g){return p!=null?df(p):g()}function uU(p,g){return g!=null?LD(p(df(g))):void 0}function SNt(p,g){return g!=null?p(df(g)):void 0}const ENt="The index was outside the range of elements in the collection.",Hxt="Collection was empty.";function xNt(p,g){return typeof p=="function"?new p(g):new Array(g)}function ANt(p,g){if(p!=null&&/\S/.test(p)){const x=+p.replace("_","");if(!Number.isNaN(x))return g.contents=x,!0}return!1}function Tbt(p,g){return p>g?p:g}function Jxt(p,g,x,L){const H=g|0;return p.fill(L,H,H+x)}function CNt(p,g){const x=xNt(g,1);return Wne(x,0,p),x}function DNt(p,g,x){const L=p;return x.reduce(L,g)}function nEt(p,g,x){if(g==null)return x==null;if(x==null)return!1;{let L=0,H=!0;const G=g.length|0,ye=x.length|0;if(G>ye)return!1;if(G=g.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return g[p]}function Wne(p,g,x){if(g<0||g>=p.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");p[g]=x}function INt(p,g,x){return g.reduceRight((L,H)=>p(H,L),x)}class bL extends ap{constructor(g,x){super(),this.head=g,this.tail=x}toString(){return"["+lA("; ",this)+"]"}Equals(g){const x=this;return x===g?!0:((H,G)=>{e:for(;;){const ye=H,Oe=G,ot=ye.tail,At=Oe.tail;if(ot!=null)if(At!=null){const sn=df(ot),tr=df(At);if(g8(ye.head,Oe.head)){H=sn,G=tr;continue e}else return!1}else return!1;else return At==null}})(x,g)}GetHashCode(){return((L,H,G)=>{e:for(;;){const ye=L,Oe=H,ot=G,At=ot.tail;if(At!=null){const sn=df(At);if(ye>18)return Oe|0;L=ye+1,H=(Oe<<1)+nX(ot.head)+631*ye,G=sn;continue e}else return Oe|0}})(0,0,this)|0}toJSON(){const g=this;return Array.from(g)}CompareTo(g){return((H,G)=>{e:for(;;){const ye=H,Oe=G,ot=ye.tail,At=Oe.tail;if(ot!=null)if(At!=null){const sn=df(ot),tr=df(At),Nt=rX(ye.head,Oe.head)|0;if(Nt===0){H=sn,G=tr;continue e}else return Nt|0}else return 1;else return At!=null?-1:0}})(this,g)|0}GetEnumerator(){return PNt(this)}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ix(this)}}class kNt{constructor(g){this.xs=g,this.it=this.xs,this.current=W5()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const g=this,x=g.it.tail;if(x!=null){const L=df(x);return g.current=g.it.head,g.it=L,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const g=this;g.it=g.xs,g.current=W5()}Dispose(){}}function PNt(p){return new kNt(p)}function MD(){return new bL(W5(),void 0)}function SVe(p,g){return new bL(p,g)}function iX(p){return p.tail==null}function $xt(p){return((x,L)=>{e:for(;;){const H=x,ye=L.tail;if(ye!=null){x=H+1,L=df(ye);continue e}else return H|0}})(0,p)|0}function Bne(p){if(p.tail!=null)return p.head;throw new Error(Hxt+"\\nParameter name: list")}function Vw(p){const g=p.tail;if(g!=null)return df(g);throw new Error(Hxt+"\\nParameter name: list")}function NNt(p,g){return((L,H)=>{e:for(;;){const G=L,ye=H,Oe=ye.tail;if(Oe!=null){if(G===g)return ye.head;L=G+1,H=df(Oe);continue e}else throw new Error(ENt+"\\nParameter name: index")}})(0,p)}function lc(){return MD()}function wD(p,g){return SVe(p,g)}function _l(p){return SVe(p,MD())}function yd(p){return iX(p)}function _z(p){return $xt(p)}function Hp(p){return Bne(p)}function wNt(p){if(!iX(p))return LD(Bne(p))}function xy(p){return Vw(p)}function qxt(p){const g=$xt(p)|0,x=Jxt(new Array(g),0,g,null);return((H,G)=>{e:for(;;){const ye=H,Oe=G;if(!iX(Oe)){Wne(x,ye,Bne(Oe)),H=ye+1,G=Vw(Oe);continue e}break}})(0,p),x}function HO(p,g,x){let L=g,H=x;for(;!iX(H);)L=p(L,Hp(H)),H=Vw(H);return L}function Uje(p){return HO((g,x)=>SVe(x,g),MD(),p)}function RNt(p,g,x){return INt(p,qxt(g),x)}function MNt(p,g,x){return((H,G,ye)=>{e:for(;;){const Oe=H,ot=G,At=ye;if(iX(At))return ot;H=Oe+1,G=p(Oe,ot,Bne(At)),ye=Vw(At);continue e}})(0,g,x)}function TL(p,g){HO((x,L)=>{p(L)},void 0,g)}function Mne(p,g){HO((x,L)=>(p(x,L),x+1|0),0,g)}function wC(p,g){let x=g;for(let L=p.length-1;L>=0;L--)x=SVe(Dne(L,p),x);return x}function fu(p){return wC(p,MD())}function tTe(p){let g,x;if(tX(p))return fu(p);if(p instanceof bL)return p;{const L=MD();let H=L;const G=Ix(p);try{for(;G["System.Collections.IEnumerator.MoveNext"]();){const ot=G["System.Collections.Generic.IEnumerator`1.get_Current"]();H=(g=H,x=new bL(ot,void 0),g.tail=x,x)}}finally{d2(G)}const ye=H,Oe=MD();return ye.tail=Oe,Vw(L)}}function nTe(p){const g=MD();let x=g;const L=ye=>{x=HO((Oe,ot)=>{const At=new bL(ot,void 0);return Oe.tail=At,At},x,ye)};if(tX(p))p.forEach(L);else if(p instanceof bL)TL(L,p);else{const ye=Ix(p);try{for(;ye["System.Collections.IEnumerator.MoveNext"]();)L(ye["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{d2(ye)}}const H=x,G=MD();return H.tail=G,Vw(g)}function iU(p,g){return HO((x,L)=>SVe(L,x),g,Uje(p))}function rz(p,g){let x,L;const H=MD();let G=H,ye=g;for(;!iX(ye);){let At=p(Bne(ye));for(;!iX(At);)G=(x=G,L=new bL(Bne(At),void 0),x.tail=L,L),At=Vw(At);ye=Vw(ye)}const Oe=G,ot=MD();return Oe.tail=ot,Vw(H)}function nMe(p,g){const x=MD(),L=MNt((G,ye,Oe)=>{const ot=new bL(p(G,Oe),void 0);return ye.tail=ot,ot},x,g),H=MD();return L.tail=H,Vw(x)}function zf(p,g){const x=MD(),L=HO((G,ye)=>{const Oe=new bL(p(ye),void 0);return G.tail=Oe,Oe},x,g),H=MD();return L.tail=H,Vw(x)}function LNt(p,g){return(L=>{e:for(;;){const H=L;if(iX(H))return;{const G=p(Bne(H));if(G==null){L=Vw(H);continue e}else return G}}})(g)}function rEt(p,g){return LNt(x=>p(x)?LD(x):void 0,g)}function Kxt(p,g){return((L,H)=>{e:for(;;){const G=L,ye=H;if(iX(ye))return;if(p(Bne(ye)))return G;L=G+1,H=Vw(ye);continue e}})(0,g)}function Sbt(p,g){return NNt(g,p)}function FO(p,g){const x=MD(),L=HO((G,ye)=>{if(p(ye)){const Oe=new bL(ye,void 0);return G.tail=Oe,Oe}else return G},x,g),H=MD();return L.tail=H,Vw(x)}function rMe(p,g){const x=MD(),L=MD(),H=x,G=HO((ot,At)=>{let sn,tr;const Nt=ot[0],Ot=ot[1];return p(At)?[(sn=new bL(At,void 0),Nt.tail=sn,sn),Ot]:[Nt,(tr=new bL(At,void 0),Ot.tail=tr,tr)]},[H,L],g),ye=MD();G[0].tail=ye;const Oe=MD();return G[1].tail=Oe,[Vw(H),Vw(L)]}function SL(p,g){const x=MD(),L=HO((G,ye)=>{const Oe=p(ye);if(Oe==null)return G;{const ot=new bL(df(Oe),void 0);return G.tail=ot,ot}},x,g),H=MD();return L.tail=H,Vw(x)}function ONt(p,g,x){return Kxt(L=>x.Equals(p,L),g)!=null}function y_e(p,g){return HO((x,L)=>x&&p(L),!0,g)}function eat(p,g){return Kxt(p,g)!=null}function FNt(p,g){const x=qxt(g);return x.sort(p),fu(x)}function Xxt(p,g,x){return FNt((L,H)=>x.Compare(p(L),p(H)),g)}function iEt(p,g){e:for(;;){const x=p,L=g;if(iX(L))return L;if(x(Bne(L))){p=x,g=Vw(L);continue e}else return L}}function WNt(p){return HO((g,x)=>{const L=g[0],H=g[1],G=x;return G[0]==="className"?[wD(wE(G[1]),L),H]:[L,wD(x,H)]},[lc(),lc()],Uje(p))}function RD(p,g){const x=WNt(g);return wD(["className",lA(" ",wD(p,x[0]))],x[1])}var Ebt;(function(p){p[p.AllowHexSpecifier=512]="AllowHexSpecifier"})(Ebt||(Ebt={}));function BNt(p,g){const[,x,L,H]=p;return{sign:x||"",prefix:L||"",digits:H,radix:g}}function oEt(p,g){switch(g){case 8:return p?[0,255]:[-128,127];case 16:return p?[0,65535]:[-32768,32767];case 32:return p?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function zNt(p){switch(p){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function GNt(p,g){if(g&Ebt.AllowHexSpecifier)return 16;switch(p){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function jNt(p,g,x){const H=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(p.replace(/_/g,""));if(H!=null){const[,,G,ye]=H;if(x=x||GNt(G,g),!zNt(x).test(ye))return BNt(H,x)}return null}function Yxt(p,g,x,L,H){const G=jNt(p,g,H);if(G!=null){let ye=Number.parseInt(G.sign+G.digits,G.radix);if(!Number.isNaN(ye)){const[Oe,ot]=oEt(!0,L);!x&&G.radix!==10&&ye>=Oe&&ye<=ot&&(ye=ye<<32-L>>32-L);const[At,sn]=oEt(x,L);if(ye>=At&&ye<=sn)return ye}}throw new Error(`The input string ${p} was not in a correct format.`)}function VNt(p,g,x,L,H){try{return H.contents=Yxt(p,g,x,L),!0}catch{return!1}}const uh=fz,Qxt=Object.freeze({left:0,top:0,width:16,height:16}),Zxt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),aTt=Object.freeze({...Qxt,...Zxt});Object.freeze({...aTt,body:"",hidden:!1});({...Qxt});const eAt=Object.freeze({width:null,height:null}),tAt=Object.freeze({...eAt,...Zxt});function UNt(p,g){const x={...p};for(const L in g){const H=g[L],G=typeof H;L in eAt?(H===null||H&&(G==="string"||G==="number"))&&(x[L]=H):G===typeof x[L]&&(x[L]=L==="rotate"?H%4:H)}return x}const HNt=/[\s,]+/;function JNt(p,g){g.split(HNt).forEach(x=>{switch(x.trim()){case"horizontal":p.hFlip=!0;break;case"vertical":p.vFlip=!0;break}})}function $Nt(p,g=0){const x=p.replace(/^-?[0-9.]*/,"");function L(H){for(;H<0;)H+=4;return H%4}if(x===""){const H=parseInt(p);return isNaN(H)?0:L(H)}else if(x!==p){let H=0;switch(x){case"%":H=25;break;case"deg":H=90}if(H){let G=parseFloat(p.slice(0,p.length-x.length));return isNaN(G)?0:(G=G/H,G%1===0?L(G):0)}}return g}const qNt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,KNt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function aEt(p,g,x){if(g===1)return p;if(x=x||100,typeof p=="number")return Math.ceil(p*g*x)/x;if(typeof p!="string")return p;const L=p.split(qNt);if(L===null||!L.length)return p;const H=[];let G=L.shift(),ye=KNt.test(G);for(;;){if(ye){const Oe=parseFloat(G);isNaN(Oe)?H.push(G):H.push(Math.ceil(Oe*g*x)/x)}else H.push(G);if(G=L.shift(),G===void 0)return H.join("");ye=!ye}}const XNt=p=>p==="unset"||p==="undefined"||p==="none";function YNt(p,g){const x={...aTt,...p},L={...tAt,...g},H={left:x.left,top:x.top,width:x.width,height:x.height};let G=x.body;[x,L].forEach(bo=>{const Yr=[],Ns=bo.hFlip,ui=bo.vFlip;let Zr=bo.rotate;Ns?ui?Zr+=2:(Yr.push("translate("+(H.width+H.left).toString()+" "+(0-H.top).toString()+")"),Yr.push("scale(-1 1)"),H.top=H.left=0):ui&&(Yr.push("translate("+(0-H.left).toString()+" "+(H.height+H.top).toString()+")"),Yr.push("scale(1 -1)"),H.top=H.left=0);let Zi;switch(Zr<0&&(Zr-=Math.floor(Zr/4)*4),Zr=Zr%4,Zr){case 1:Zi=H.height/2+H.top,Yr.unshift("rotate(90 "+Zi.toString()+" "+Zi.toString()+")");break;case 2:Yr.unshift("rotate(180 "+(H.width/2+H.left).toString()+" "+(H.height/2+H.top).toString()+")");break;case 3:Zi=H.width/2+H.left,Yr.unshift("rotate(-90 "+Zi.toString()+" "+Zi.toString()+")");break}Zr%2===1&&(H.left!==H.top&&(Zi=H.left,H.left=H.top,H.top=Zi),H.width!==H.height&&(Zi=H.width,H.width=H.height,H.height=Zi)),Yr.length&&(G=''+G+"")});const ye=L.width,Oe=L.height,ot=H.width,At=H.height;let sn,tr;ye===null?(tr=Oe===null?"1em":Oe==="auto"?At:Oe,sn=aEt(tr,ot/At)):(sn=ye==="auto"?ot:ye,tr=Oe===null?aEt(sn,At/ot):Oe==="auto"?At:Oe);const Nt={},Ot=(bo,Yr)=>{XNt(Yr)||(Nt[bo]=Yr.toString())};return Ot("width",sn),Ot("height",tr),Nt.viewBox=H.left.toString()+" "+H.top.toString()+" "+ot.toString()+" "+At.toString(),{attributes:Nt,body:G}}const QNt=/\sid="(\S+)"/g,ZNt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ewt=0;function twt(p,g=ZNt){const x=[];let L;for(;L=QNt.exec(p);)x.push(L[1]);if(!x.length)return p;const H="suffix"+(Math.random()*16777216|Date.now()).toString(16);return x.forEach(G=>{const ye=typeof g=="function"?g(G):g+(ewt++).toString(),Oe=G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");p=p.replace(new RegExp('([#;"])('+Oe+')([")]|\\.[a-z])',"g"),"$1"+ye+H+"$3")}),p=p.replace(new RegExp(H,"g"),""),p}function nwt(p,g){let x=p.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const L in g)x+=" "+L+'="'+g[L]+'"';return'"+p+""}function rwt(p){return p.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function iwt(p){return"data:image/svg+xml,"+rwt(p)}function owt(p){return'url("'+iwt(p)+'")'}let Cje;function awt(){try{Cje=window.trustedTypes.createPolicy("iconify",{createHTML:p=>p})}catch{Cje=null}}function swt(p){return Cje===void 0&&awt(),Cje?Cje.createHTML(p):p}const nAt={...tAt,inline:!1},cwt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lwt={display:"inline-block"},xbt={backgroundColor:"currentColor"},rAt={backgroundColor:"transparent"},sEt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},cEt={WebkitMask:xbt,mask:xbt,background:rAt};for(const p in cEt){const g=cEt[p];for(const x in sEt)g[p+x]=sEt[x]}const uwt={...nAt,inline:!0};function lEt(p){return p+(p.match(/^[-0-9.]+$/)?"px":"")}const fwt=(p,g,x,L)=>{const H=x?uwt:nAt,G=UNt(H,g),ye=g.mode||"svg",Oe={},ot=g.style||{},At={...ye==="svg"?cwt:{},ref:L};for(let ui in g){const Zr=g[ui];if(Zr!==void 0)switch(ui){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":G[ui]=Zr===!0||Zr==="true"||Zr===1;break;case"flip":typeof Zr=="string"&&JNt(G,Zr);break;case"color":Oe.color=Zr;break;case"rotate":typeof Zr=="string"?G[ui]=$Nt(Zr):typeof Zr=="number"&&(G[ui]=Zr);break;case"ariaHidden":case"aria-hidden":Zr!==!0&&Zr!=="true"&&delete At["aria-hidden"];break;default:H[ui]===void 0&&(At[ui]=Zr)}}const sn=YNt(p,G),tr=sn.attributes;if(G.inline&&(Oe.verticalAlign="-0.125em"),ye==="svg"){At.style={...Oe,...ot},Object.assign(At,tr);let ui=0,Zr=g.id;return typeof Zr=="string"&&(Zr=Zr.replace(/-/g,"_")),At.dangerouslySetInnerHTML={__html:swt(twt(sn.body,Zr?()=>Zr+"ID"+ui++:"iconifyReact"))},fz.createElement("svg",At)}const{body:Nt,width:Ot,height:bo}=p,Yr=ye==="mask"||(ye==="bg"?!1:Nt.indexOf("currentColor")!==-1),Ns=nwt(Nt,{...tr,width:Ot+"",height:bo+""});return At.style={...Oe,"--svg":owt(Ns),width:lEt(tr.width),height:lEt(tr.height),...lwt,...Yr?xbt:rAt,...ot},fz.createElement("span",At)},_wt=Object.create(null);function iAt(p,g,x){const L=p.icon,H=typeof L=="string"?_wt[L]:typeof L=="object"?L:null;return H===null||typeof H!="object"||typeof H.body!="string"?p.children?p.children:fz.createElement("span",{}):fwt({...aTt,...H},p,g,x)}const Hje=fz.forwardRef(function(g,x){return iAt(g,!1,x)});fz.forwardRef(function(g,x){return iAt(g,!0,x)});class dwt{constructor(g,x){this.buf=[],jje(g)||this.buf.push(g)}toString(){return lA("",this.buf)}}function pwt(p,g){return new dwt(p,g)}function mwt(){return pwt("",16)}function oAt(p,g){return p.buf.push(g),p}function gwt(p){return p.buf.push(` +`),p}function hwt(p){throw new Error(p)}const ywt="Enumeration already finished.",vwt="Enumeration has not started. Call MoveNext.",aAt="The input sequence has an insufficient number of elements.",bwt="Reset is not supported on this enumerator.";function Twt(){throw new Error(bwt)}function sTt(){throw new Error(vwt)}function Abt(){throw new Error(ywt)}class Swt{constructor(g){this.f=g}toString(){const g=this;let x=0,L="seq [";const H=Ix(g);try{for(;x<4&&H["System.Collections.IEnumerator.MoveNext"]();)x>0&&(L=L+"; "),L=L+wE(H["System.Collections.Generic.IEnumerator`1.get_Current"]()),x=x+1|0;return x===4&&(L=L+"; ..."),L+"]"}finally{d2(H)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Ewt(p){return new Swt(p)}class xwt{constructor(g,x,L){this.current=g,this.next=x,this.dispose=L}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Twt()}Dispose(){this.dispose()}}function tat(p,g,x){return new xwt(p,g,x)}function Awt(p){let g,x,L=!1,H=!1,G;const ye=()=>{if(H=!0,x!=null){const Oe=df(x);try{d2(Oe)}finally{x=void 0}}if(g!=null){const Oe=df(g);try{d2(Oe)}finally{g=void 0}}};return tat(()=>(L?H&&Abt():sTt(),G!=null?df(G):Abt()),()=>{let Oe;if(L||(L=!0),H)return!1;{let ot;for(;ot==null;){const At=g,sn=x;if(At!=null)if(sn!=null){const tr=df(sn);if(tr["System.Collections.IEnumerator.MoveNext"]())G=LD(tr["System.Collections.Generic.IEnumerator`1.get_Current"]()),ot=!0;else try{d2(tr)}finally{x=void 0}}else{const tr=df(At);tr["System.Collections.IEnumerator.MoveNext"]()?x=(Oe=tr["System.Collections.Generic.IEnumerator`1.get_Current"](),Ix(Oe)):(ye(),ot=!1)}else g=Ix(p)}return df(ot)}},()=>{H||ye()})}function Cwt(p,g){return tat(()=>g["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>g["System.Collections.IEnumerator.MoveNext"](),()=>{try{d2(g)}finally{p()}})}function sAt(p,g,x){let L=!1,H,G=LD(p());const ye=()=>{if(G!=null){const ot=df(G);try{x(ot)}finally{G=void 0}}},Oe=()=>{try{ye()}finally{H=void 0}};return tat(()=>(L||sTt(),H!=null?df(H):Abt()),()=>{if(L||(L=!0),G!=null){const ot=df(G);let At;try{At=g(ot)}catch(sn){throw Oe(),sn}return At!=null?(H=At,!0):(Oe(),!1)}else return!1},ye)}function Dwt(p,g){let x,L=g;return tat(()=>{if(x!=null){const H=df(x)[0];return df(x)[1],H}else return sTt()},()=>(x=p(L),x!=null?(df(x)[0],L=df(x)[1],!0):!1),()=>{})}function Iwt(p,g){g==null&&hwt(p)}function iMe(p){return Ewt(p)}function zne(p){return Iwt("source",p),Ix(p)}function cd(p){return iMe(()=>Ix(p()))}function EVe(p){return iMe(()=>Awt(p))}function kwt(p,g){return iMe(()=>Dwt(p,g))}function Uw(){return cd(()=>new Array(0))}function fg(p){return cd(()=>CNt(p))}function Zd(p){return tX(p)?fu(p):p instanceof bL?p:tTe(p)}function cAt(p,g,x){return iMe(()=>sAt(p,g,x))}function Pwt(p,g,x){return iMe(()=>{let L=-1;return sAt(p,H=>(L=L+1|0,g(L,H)),x)})}function V1(p,g){return EVe([p,g])}function oMe(p,g){return cAt(()=>zne(g),x=>{let L;for(;L==null&&x["System.Collections.IEnumerator.MoveNext"]();)L=p(x["System.Collections.Generic.IEnumerator`1.get_Current"]());return L},x=>{d2(x)})}function Nwt(p,g,x){const L=zne(g);try{const H=zne(x);try{let G=0,ye=L["System.Collections.IEnumerator.MoveNext"](),Oe=H["System.Collections.IEnumerator.MoveNext"]();for(;G===0&&ye&&Oe;)G=p(L["System.Collections.Generic.IEnumerator`1.get_Current"](),H["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,G===0&&(ye=L["System.Collections.IEnumerator.MoveNext"](),Oe=H["System.Collections.IEnumerator.MoveNext"]());return(G!==0?G:ye?1:Oe?-1:0)|0}finally{d2(H)}}finally{d2(L)}}function wwt(p,g,x){const L=zne(g);try{let H=!1;for(;!H&&L["System.Collections.IEnumerator.MoveNext"]();)H=x.Equals(p,L["System.Collections.Generic.IEnumerator`1.get_Current"]());return H}finally{d2(L)}}function lAt(p,g){return oMe(x=>{if(p(x))return LD(x)},g)}function rTe(p,g){const x=zne(g);try{let L=!1;for(;!L&&x["System.Collections.IEnumerator.MoveNext"]();)L=p(x["System.Collections.Generic.IEnumerator`1.get_Current"]());return L}finally{d2(x)}}function uAt(p,g,x){const L=zne(x);try{let H=g;for(;L["System.Collections.IEnumerator.MoveNext"]();)H=p(H,L["System.Collections.Generic.IEnumerator`1.get_Current"]());return H}finally{d2(L)}}function nat(p,g){uAt((x,L)=>{p(L)},void 0,g)}function Rwt(p,g){uAt((x,L)=>(p(x,L),x+1|0),0,g)}function zO(p,g){return cAt(()=>zne(g),x=>x["System.Collections.IEnumerator.MoveNext"]()?LD(p(x["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,x=>{d2(x)})}function Mwt(p,g){return iMe(()=>{const x=zne(g);try{for(let L=1;L<=p;L++)if(!x["System.Collections.IEnumerator.MoveNext"]())throw new Error(aAt+"\\nParameter name: source");return Cwt(()=>{},x)}catch(L){throw d2(x),L}})}function Lwt(p,g){return Pwt(()=>zne(g),(x,L)=>{if(x{d2(x)})}function sot(p,g){return cd(()=>EVe(zO(p,g)))}const z1e={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function N0t(p,g){return p.replace(/[a-z]?[A-Z]/g,x=>x.length===1?x.toLowerCase():x.charAt(0)+g+x.charAt(1).toLowerCase())}function Owt(p,g){switch(g){case z1e.LowerFirst:return p.charAt(0).toLowerCase()+p.slice(1);case z1e.SnakeCase:return N0t(p,"_");case z1e.SnakeCaseAllCaps:return N0t(p,"_").toUpperCase();case z1e.KebabCase:return N0t(p,"-");case z1e.None:default:return p}}function uEt(p,g=z1e.None){const x={},L=g;function H(ye){throw new Error("Cannot infer key and value of "+String(ye))}function G(ye,Oe,ot){ye=Owt(ye,Oe),x[ye]=ot}for(let ye of p){let Oe=z1e.None;if(ye==null&&H(ye),ye instanceof wh){const ot=ye.cases()[ye.tag];ye=ye.fields.length===0?ot:[ot].concat(ye.fields),Oe=L}if(Array.isArray(ye))switch(ye.length){case 0:H(ye);break;case 1:G(ye[0],Oe,!0);break;case 2:const ot=ye[1];G(ye[0],Oe,ot);break;default:G(ye[0],Oe,ye.slice(1))}else typeof ye=="string"?G(ye,Oe,!0):H(ye)}return x}function Fwt(p,g,x){return p.has(g)?(x.contents=p.get(g),!0):!1}function Wwt(p,g){return g.has(p)?!1:(g.add(p),!0)}function fAt(p,g,x){if(p.has(g))throw new Error("An item with the same key has already been added. Key: "+g);p.set(g,x)}function rat(p,g){if(p.has(g))return p.get(g);throw new Error(`The given key '${g}' was not present in the dictionary.`)}class Bwt{constructor(g,x){const L=new WRe(W5());this.comparer=x,L.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const H=Ix(g);try{for(;H["System.Collections.IEnumerator.MoveNext"]();){const G=H["System.Collections.Generic.IEnumerator`1.get_Current"]();w0t(L.contents,G)}}finally{d2(H)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const g=this;return Array.from(g)}"System.Collections.IEnumerable.GetEnumerator"(){return Ix(this)}GetEnumerator(){return Ix(EVe(this.hashMap.values()))}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.Generic.ICollection`1.Add2B595"(g){w0t(this,g)}"System.Collections.Generic.ICollection`1.Clear"(){fEt(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(g){return dEt(this,g)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){Rwt((H,G)=>{Wne(g,x+H,G)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return _Et(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(g){return pEt(this,g)}get size(){return _Et(this)|0}add(g){const x=this;return w0t(x,g),x}clear(){fEt(this)}delete(g){return pEt(this,g)}has(g){return dEt(this,g)}keys(){return zO(x=>x,this)}values(){return zO(x=>x,this)}entries(){return zO(x=>[x,x],this)}forEach(g,x){const L=this;nat(H=>{g(H,H,L)},L)}}function cTt(p,g){const x=p.comparer.GetHashCode(g)|0;let L,H=W5();return L=[Fwt(p.hashMap,x,new WRe(()=>H,G=>{H=G})),H],L[0]?[!0,x,L[1].findIndex(G=>p.comparer.Equals(g,G))]:[!1,x,-1]}function fEt(p){p.hashMap.clear()}function _Et(p){let g=0,x=Ix(p.hashMap.values());try{for(;x["System.Collections.IEnumerator.MoveNext"]();){const L=x["System.Collections.Generic.IEnumerator`1.get_Current"]();g=g+L.length|0}}finally{d2(x)}return g|0}function w0t(p,g){const x=cTt(p,g);return x[0]?x[2]>-1?!1:(rat(p.hashMap,x[1]).push(g),!0):(p.hashMap.set(x[1],[g]),!0)}function dEt(p,g){const x=cTt(p,g);let L;switch(x[0]&&x[2]>-1?L=0:L=1,L){case 0:return!0;default:return!1}}function pEt(p,g){const x=cTt(p,g);let L;switch(x[0]&&x[2]>-1?L=0:L=1,L){case 0:return rat(p.hashMap,x[1]).splice(x[2],1),!0;default:return!1}}class _At{constructor(g){this.k=g}}function N5(p){return new _At(p)}function Vh(p){return p.k}class XT extends _At{constructor(g,x,L,H){super(g),this.left=x,this.right=L,this.h=H|0}}function w5(p,g,x,L){return new XT(p,g,x,L)}function bT(p){return p.left}function j1(p){return p.right}function uRe(p){return p.h}function dAt(p,g){e:for(;;){const x=p,L=g;if(x!=null){const H=df(x);if(H instanceof XT){const G=H;p=bT(G),g=dAt(j1(G),L+1);continue e}else return L+1|0}else return L|0}}function zwt(p){return dAt(p,0)}function k5(p,g,x){let L,H,G;const ye=p;if(ye!=null){const sn=df(ye);G=sn instanceof XT?(L=sn,uRe(L)):1}else G=0;let Oe;const ot=x;if(ot!=null){const sn=df(ot);Oe=sn instanceof XT?(H=sn,uRe(H)):1}else Oe=0;const At=(Gtr+2){const Yr=df(x);if(Yr instanceof XT){const Ns=Yr;if(G=bT(Ns),(G!=null?(ye=df(G),ye instanceof XT?(Oe=ye,uRe(Oe)):1):0)>tr+1){const ui=df(bT(Ns));if(ui instanceof XT){const Zr=ui;return k5(k5(p,g,bT(Zr)),Vh(Zr),k5(j1(Zr),Vh(Ns),j1(Ns)))}else throw new Error("internal error: Set.rebalance")}else return k5(k5(p,g,bT(Ns)),Vh(Ns),j1(Ns))}else throw new Error("internal error: Set.rebalance")}else if(tr>Ot+2){const Yr=df(p);if(Yr instanceof XT){const Ns=Yr;if(ot=j1(Ns),(ot!=null?(At=df(ot),At instanceof XT?(sn=At,uRe(sn)):1):0)>Ot+1){const ui=df(j1(Ns));if(ui instanceof XT){const Zr=ui;return k5(k5(bT(Ns),Vh(Ns),bT(Zr)),Vh(Zr),k5(j1(Zr),g,x))}else throw new Error("internal error: Set.rebalance")}else return k5(bT(Ns),Vh(Ns),k5(j1(Ns),g,x))}else throw new Error("internal error: Set.rebalance")}else return k5(p,g,x)}function BRe(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,Vh(L))|0;if(L instanceof XT){const G=L;return H<0?cot(BRe(p,g,bT(G)),Vh(G),j1(G)):H===0?x:cot(bT(G),Vh(G),BRe(p,g,j1(G)))}else{const G=p.Compare(g,Vh(L))|0;return G<0?w5(g,void 0,x,2):G===0?x:w5(g,x,void 0,2)}}else return N5(g)}function pAt(p){if(p!=null){const g=df(p);if(g instanceof XT){const x=g;if(bT(x)==null)return[Vh(x),j1(x)];{const L=pAt(bT(x));return[L[0],k5(L[1],Vh(x),j1(x))]}}else return[Vh(g),void 0]}else throw new Error("internal error: Set.spliceOutSuccessor")}function Cbt(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,Vh(L))|0;if(L instanceof XT){const G=L;if(H<0)return cot(Cbt(p,g,bT(G)),Vh(G),j1(G));if(H===0){if(bT(G)==null)return j1(G);if(j1(G)==null)return bT(G);{const ye=pAt(j1(G));return k5(bT(G),ye[0],ye[1])}}else return cot(bT(G),Vh(G),Cbt(p,g,j1(G)))}else return H===0?void 0:x}else return x}function mAt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,Vh(ye))|0;if(ye instanceof XT){const ot=ye;if(Oe<0){p=L,g=H,x=bT(ot);continue e}else{if(Oe===0)return!0;p=L,g=H,x=j1(ot);continue e}}else return Oe===0}else return!1}}function gAt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof XT){const G=H;gAt(x,bT(G)),x(Vh(G)),p=x,g=j1(G);continue e}else x(Vh(H))}break}}class Gwt extends ap{constructor(g,x){super(),this.stack=g,this.started=x}}function hAt(p){e:for(;;){const g=p;if(yd(g))return lc();{const x=Hp(g),L=xy(g);if(x!=null){const H=df(x);if(H instanceof XT){const G=H;p=wC([bT(G),N5(Vh(G)),j1(G)],L);continue e}else return g}else{p=L;continue e}}}}function mEt(p){return new Gwt(hAt(_l(p)),!1)}function jwt(){throw new Error("Enumeration not started")}function Vwt(){throw new Error("Enumeration already started")}function gEt(p){if(p.started){const g=p.stack;if(yd(g))return Vwt();if(Hp(g)!=null){const x=df(Hp(g));return Vh(x)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return jwt()}function Uwt(p){if(p.started){const g=p.stack;if(yd(g))return!1;if(Hp(g)!=null){if(df(Hp(g))instanceof XT)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return p.stack=hAt(xy(g)),!yd(p.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return p.started=!0,!yd(p.stack)}function hEt(p){let g=mEt(p);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return gEt(g)},"System.Collections.IEnumerator.get_Current"(){return gEt(g)},"System.Collections.IEnumerator.MoveNext"(){return Uwt(g)},"System.Collections.IEnumerator.Reset"(){g=mEt(p)},Dispose(){}}}function Hwt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(yd(H))return yd(G)?0:-1;if(yd(G))return 1;if(Hp(G)!=null)if(Hp(H)!=null){const ye=df(Hp(H)),Oe=df(Hp(G));if(ye instanceof XT){const ot=ye;if(bT(ot)==null)if(Oe instanceof XT){const At=Oe;if(bT(At)==null){const sn=L.Compare(Vh(ot),Vh(At))|0;if(sn!==0)return sn|0;p=L,g=wD(j1(ot),xy(H)),x=wD(j1(At),xy(G));continue e}else{let sn,tr,Nt,Ot,bo;switch(yd(H)?yd(G)?sn=2:Hp(G)!=null?(sn=1,Ot=xy(G),bo=df(Hp(G))):sn=2:Hp(H)!=null?(sn=0,tr=xy(H),Nt=df(Hp(H))):yd(G)?sn=2:Hp(G)!=null?(sn=1,Ot=xy(G),bo=df(Hp(G))):sn=2,sn){case 0:if(Nt instanceof XT){const Yr=Nt;p=L,g=wC([bT(Yr),w5(Vh(Yr),void 0,j1(Yr),0)],tr),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(Nt))],tr),x=G;continue e}case 1:if(bo instanceof XT){const Yr=bo;p=L,g=H,x=wC([bT(Yr),w5(Vh(Yr),void 0,j1(Yr),0)],Ot);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(bo))],Ot);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const At=L.Compare(Vh(ot),Vh(Oe))|0;if(At!==0)return At|0;p=L,g=wD(j1(ot),xy(H)),x=wD(void 0,xy(G));continue e}else{let At,sn,tr,Nt,Ot;switch(yd(H)?yd(G)?At=2:Hp(G)!=null?(At=1,Nt=xy(G),Ot=df(Hp(G))):At=2:Hp(H)!=null?(At=0,sn=xy(H),tr=df(Hp(H))):yd(G)?At=2:Hp(G)!=null?(At=1,Nt=xy(G),Ot=df(Hp(G))):At=2,At){case 0:if(tr instanceof XT){const bo=tr;p=L,g=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],sn),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(tr))],sn),x=G;continue e}case 1:if(Ot instanceof XT){const bo=Ot;p=L,g=H,x=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],Nt);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(Ot))],Nt);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(Oe instanceof XT){const ot=Oe;if(bT(ot)==null){const At=L.Compare(Vh(ye),Vh(ot))|0;if(At!==0)return At|0;p=L,g=wD(void 0,xy(H)),x=wD(j1(ot),xy(G));continue e}else{let At,sn,tr,Nt,Ot;switch(yd(H)?yd(G)?At=2:Hp(G)!=null?(At=1,Nt=xy(G),Ot=df(Hp(G))):At=2:Hp(H)!=null?(At=0,sn=xy(H),tr=df(Hp(H))):yd(G)?At=2:Hp(G)!=null?(At=1,Nt=xy(G),Ot=df(Hp(G))):At=2,At){case 0:if(tr instanceof XT){const bo=tr;p=L,g=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],sn),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(tr))],sn),x=G;continue e}case 1:if(Ot instanceof XT){const bo=Ot;p=L,g=H,x=wC([bT(bo),w5(Vh(bo),void 0,j1(bo),0)],Nt);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(Ot))],Nt);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const ot=L.Compare(Vh(ye),Vh(Oe))|0;if(ot!==0)return ot|0;p=L,g=xy(H),x=xy(G);continue e}}else{df(Hp(G));let ye,Oe,ot,At,sn;switch(yd(H)?yd(G)?ye=2:Hp(G)!=null?(ye=1,At=xy(G),sn=df(Hp(G))):ye=2:Hp(H)!=null?(ye=0,Oe=xy(H),ot=df(Hp(H))):yd(G)?ye=2:Hp(G)!=null?(ye=1,At=xy(G),sn=df(Hp(G))):ye=2,ye){case 0:if(ot instanceof XT){const tr=ot;p=L,g=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],Oe),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(ot))],Oe),x=G;continue e}case 1:if(sn instanceof XT){const tr=sn;p=L,g=H,x=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],At);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(sn))],At);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(Hp(H)!=null){df(Hp(H));let ye,Oe,ot,At,sn;switch(yd(H)?yd(G)?ye=2:Hp(G)!=null?(ye=1,At=xy(G),sn=df(Hp(G))):ye=2:Hp(H)!=null?(ye=0,Oe=xy(H),ot=df(Hp(H))):yd(G)?ye=2:Hp(G)!=null?(ye=1,At=xy(G),sn=df(Hp(G))):ye=2,ye){case 0:if(ot instanceof XT){const tr=ot;p=L,g=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],Oe),x=G;continue e}else{p=L,g=wC([void 0,N5(Vh(ot))],Oe),x=G;continue e}case 1:if(sn instanceof XT){const tr=sn;p=L,g=H,x=wC([bT(tr),w5(Vh(tr),void 0,j1(tr),0)],At);continue e}else{p=L,g=H,x=wC([void 0,N5(Vh(sn))],At);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{p=L,g=xy(H),x=xy(G);continue e}}}function yEt(p,g,x){return g==null?x==null?0:-1:x==null?1:Hwt(p,_l(g),_l(x))|0}function Jwt(p,g,x){let L=x;gAt(H=>{Wne(g,L,H),L=L+1|0},p)}function $wt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G["System.Collections.IEnumerator.MoveNext"]()){p=L,g=BRe(L,G["System.Collections.Generic.IEnumerator`1.get_Current"](),H),x=G;continue e}else return H}}function qwt(p,g){return DNt((x,L)=>BRe(p,L,x),void 0,g)}function Kwt(p,g){return HO((x,L)=>BRe(p,L,x),void 0,g)}function Xwt(p,g){if(tX(g))return qwt(p,g);if(g instanceof bL)return Kwt(p,g);{const x=Ix(g);try{return $wt(p,void 0,x)}finally{d2(x)}}}class lTt{constructor(g,x){this.comparer=g,this.tree=x}GetHashCode(){return eRt(this)|0}Equals(g){let x;const L=this;return g instanceof lTt&&(x=g,yEt(v_e(L),nz(L),nz(x))===0)}toString(){return"set ["+lA("; ",zO(x=>wE(x),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const g=this;return Array.from(g)}CompareTo(g){const x=this;return yEt(v_e(x),nz(x),nz(g))|0}"System.Collections.Generic.ICollection`1.Add2B595"(g){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(g){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(g){const x=this;return mAt(v_e(x),g,nz(x))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){Jwt(nz(this),g,x)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return R0t(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return R0t(this)|0}GetEnumerator(){return hEt(nz(this))}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return hEt(nz(this))}get size(){return R0t(this)|0}add(g){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(g){throw new Error("Set cannot be mutated")}has(g){return uTt(this,g)}keys(){return zO(x=>x,this)}values(){return zO(x=>x,this)}entries(){return zO(x=>[x,x],this)}forEach(g,x){const L=this;nat(H=>{g(H,H,L)},L)}}function iat(p,g){return new lTt(p,g)}function v_e(p){return p.comparer}function nz(p){return p.tree}function Ywt(p){return iat(p,void 0)}function Qwt(p,g){return iat(v_e(p),BRe(v_e(p),g,nz(p)))}function Zwt(p,g){return iat(v_e(p),Cbt(v_e(p),g,nz(p)))}function R0t(p){return zwt(nz(p))}function uTt(p,g){return mAt(v_e(p),g,nz(p))}function eRt(p){let g=0;const x=Ix(p);try{for(;x["System.Collections.IEnumerator.MoveNext"]();){const L=x["System.Collections.Generic.IEnumerator`1.get_Current"]();g=(g<<1)+nX(L)+631|0}}finally{d2(x)}return Math.abs(g)|0}function lot(p,g){return uTt(g,p)}function fTt(p,g){return Qwt(g,p)}function yAt(p,g){return Zwt(g,p)}function xVe(p){return Ywt(p)}function vAt(p,g){return iat(g,Xwt(g,p))}function tRt(){return lc()}function bAt(p){return nTe(p)}function TAt(p,g,x){return zf(L=>[wD(p,L[0]),H=>L[1](G=>{H(g(G))})],x)}function _Tt(p){return lA("/",p)}function nRt(p,g){const x=new Error("Duplicate SubId");return p(["Duplicate SubId: "+_Tt(g),x])}function SAt(p,g,x){try{d2(x)}catch(L){p(["Error stopping subscription: "+_Tt(g),L])}}function rRt(p,g,x,L){try{return[x,L(g)]}catch(H){p(["Error starting subscription: "+_Tt(x),H]);return}}function iRt(p,g){TL(x=>{SAt(p,x[0],x[1])},g)}function vEt(p,g,x,L,H,G){return TL(ye=>{nRt(p,ye)},x),TL(ye=>{SAt(p,ye[0],ye[1])},L),iU(H,SL(ye=>rRt(p,g,ye[0],ye[1]),G))}function oRt(){return[lc(),xVe({Compare:rX}),lc()]}function aRt(p,g,x,L,H){return lot(p,L)?[wD(p,x),L,H]:[x,fTt(p,L),wD([p,g],H)]}function sRt(p){return RNt((g,x)=>aRt(g[0],g[1],x[0],x[1],x[2]),p,oRt())}const cRt=lc();function bEt(p,g){const x=vAt(zf(ye=>ye[0],p),{Compare:rX}),L=sRt(g),H=L[1],G=L[0];if(x.Equals(H))return[G,lc(),p,lc()];{const ye=rMe(Oe=>lot(Oe[0],H),p);return[G,ye[1],ye[0],FO(Oe=>!lot(Oe[0],x),L[2])]}}class TEt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Choice1Of2","Choice2Of2"]}}class M0t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function lRt(p,g){console.error(LD(p),g)}function SEt(p,g,x){TL(L=>{try{L(g)}catch(H){p(H)}},x)}function _2(){return lc()}function lz(p,g){return zf(x=>L=>{x(H=>{L(p(H))})},g)}function EAt(p){return nTe(p)}function dTt(p,g,x){return _l(L=>{try{L(x(p(g)))}catch{}})}function pTt(p,g,x,L){return _l(H=>{p(g).then(G=>{H(x(G))}).catch(G=>{H(L(G))})})}function uRt(p,g,x,L){const H=rX(p,x)|0;if(H===0)throw new Error("The step of a range cannot be zero");const G=H>0;return ye=>{const Oe=rX(ye,g)|0;return G&&Oe<=0||!G&&Oe>=0?[ye,L(ye,p)]:void 0}}function fRt(p,g,x,L,H){const G=uRt(g,x,L,H);return cd(()=>kwt(G,p))}function _Rt(p,g,x){return fRt(p,g,x,0,(L,H)=>L+H)}class CRe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Writable","ReadWritable"]}}class dRt{constructor(g){this.state=new CRe(0,[Jxt(new Array(Tbt(g,10)),0,Tbt(g,10),null),0])}}function pRt(p){return new dRt(p)}function EEt(p){const g=p.state;if(g.tag===1){const x=g.fields[1]|0,L=g.fields[2]|0,H=g.fields[0],G=(L+1)%H.length|0;return G===x?p.state=new CRe(0,[H,x]):p.state=new CRe(1,[H,x,G]),LD(Dne(L,H))}else return}function mRt(p,g){const x=p.state;if(x.tag===1){const L=x.fields[1]|0,H=x.fields[2]|0,G=x.fields[0];Wne(G,L,g);const ye=(L+1)%G.length|0;ye===H?p.state=new CRe(1,[gRt(p,H,G),G.length,0]):p.state=new CRe(1,[G,ye,H])}else{const L=x.fields[1]|0,H=x.fields[0];Wne(H,L,g);const G=(L+1)%H.length|0;p.state=new CRe(1,[H,G,L])}}function gRt(p,g,x){return Array.from(cd(()=>V1(Mwt(g,x),cd(()=>V1(Lwt(g,x),cd(()=>sot(L=>fg(W5()),_Rt(0,1,x.length))))))))}class mTt extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.init=g,this.update=x,this.subscribe=L,this.view=H,this.setState=G,this.onError=ye,this.termination=Oe}}function hRt(p,g,x){return new mTt(p,g,L=>tRt(),x,wne(L=>{const H=Ane(x)(L);return G=>{H(G)}}),L=>{lRt(L[0],L[1])},[L=>!1,L=>{}])}function yRt(p,g){return new mTt(g.init,g.update,g.subscribe,g.view,p,g.onError,g.termination)}function xEt(p){return Ane(p.view)}function xAt(p,g,x,L,H,G,ye){const Oe=Ane(p)(ye.init),ot=k0t(g)(Ane(ye.update)),At=k0t(x)(Ane(ye.view)),sn=k0t(L)(Ane(ye.setState));return new mTt(Oe,wne(ot),Ane(H)(ye.subscribe),wne(At),wne(sn),ye.onError,G(ye.termination))}function vRt(p,g,x){let L;const H=x.init(g),G=H[0],ye=x.subscribe(G),Oe=x.termination,ot=pRt(10);let At=!1,sn=G,tr=cRt,Nt=!1;const Ot=Ns=>{Nt||(mRt(ot,Ns),At||(At=!0,Yr(),At=!1))},bo=Ane(p)(Ot),Yr=()=>{let Ns,ui=EEt(ot);for(;!Nt&&ui!=null;){const Zr=df(ui);if(Oe[0](Zr))iRt(x.onError,tr),Oe[1](sn),Nt=!0;else{const Zi=x.update(Zr,sn),jr=Zi[0],lr=x.subscribe(jr);x.setState(jr,bo),tr=(Ns=bEt(tr,lr),vEt(x.onError,bo,Ns[0],Ns[1],Ns[2],Ns[3])),SEt(ra=>{x.onError([Rne(bbt("Error handling the message: %A"))(Zr),ra])},bo,Zi[1]),sn=jr,ui=EEt(ot)}}};At=!0,x.setState(G,bo),tr=(L=bEt(tr,ye),vEt(x.onError,bo,L[0],L[1],L[2],L[3])),SEt(Ns=>{x.onError([Rne(bbt("Error intitializing:")),Ns])},bo,H[1]),Yr(),At=!1}function bRt(p,g){vRt(wne(x=>x),p,g)}function TRt(p){bRt(void 0,p)}var AAt={exports:{}},G5={},CAt={exports:{}},DAt={};/** * @license React * scheduler.production.min.js * @@ -17,7 +17,7 @@ var vPt=Object.defineProperty;var bPt=(p,g,x)=>g in p?vPt(p,g,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(p){function g(p_,Ol){var Gf=p_.length;p_.push(Ol);e:for(;0>>1,Lm=p_[ea];if(0>>1;eaH(fA,Gf))QoH(p2,fA)?(p_[ea]=p2,p_[Qo]=Gf,ea=Qo):(p_[ea]=fA,p_[kx]=Gf,ea=kx);else if(QoH(p2,Gf))p_[ea]=p2,p_[Qo]=Gf,ea=Qo;else break e}}return Ol}function H(p_,Ol){var Gf=p_.sortIndex-Ol.sortIndex;return Gf!==0?Gf:p_.id-Ol.id}if(typeof performance=="object"&&typeof performance.now=="function"){var G=performance;p.unstable_now=function(){return G.now()}}else{var ye=Date,Oe=ye.now();p.unstable_now=function(){return ye.now()-Oe}}var ot=[],At=[],sn=1,tr=null,Nt=3,Ot=!1,bo=!1,Yr=!1,Ns=typeof setTimeout=="function"?setTimeout:null,ui=typeof clearTimeout=="function"?clearTimeout:null,Zr=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Zi(p_){for(var Ol=x(At);Ol!==null;){if(Ol.callback===null)L(At);else if(Ol.startTime<=p_)L(At),Ol.sortIndex=Ol.expirationTime,g(ot,Ol);else break;Ol=x(At)}}function jr(p_){if(Yr=!1,Zi(p_),!bo)if(x(ot)!==null)bo=!0,g_(lr);else{var Ol=x(At);Ol!==null&&Vn(jr,Ol.startTime-p_)}}function lr(p_,Ol){bo=!1,Yr&&(Yr=!1,ui(Ms),Ms=-1),Ot=!0;var Gf=Nt;try{for(Zi(Ol),tr=x(ot);tr!==null&&(!(tr.expirationTime>Ol)||p_&&!sf());){var ea=tr.callback;if(typeof ea=="function"){tr.callback=null,Nt=tr.priorityLevel;var Lm=ea(tr.expirationTime<=Ol);Ol=p.unstable_now(),typeof Lm=="function"?tr.callback=Lm:tr===x(ot)&&L(ot),Zi(Ol)}else L(ot);tr=x(ot)}if(tr!==null)var Ky=!0;else{var kx=x(At);kx!==null&&Vn(jr,kx.startTime-Ol),Ky=!1}return Ky}finally{tr=null,Nt=Gf,Ot=!1}}var ra=!1,Ho=null,Ms=-1,cs=5,ni=-1;function sf(){return!(p.unstable_now()-nip_||125ea?(p_.sortIndex=Gf,g(At,p_),x(ot)===null&&p_===x(At)&&(Yr?(ui(Ms),Ms=-1):Yr=!0,Vn(jr,Gf-ea))):(p_.sortIndex=Lm,g(ot,p_),bo||Ot||(bo=!0,g_(lr))),p_},p.unstable_shouldYield=sf,p.unstable_wrapCallback=function(p_){var Ol=Nt;return function(){var Gf=Nt;Nt=Ol;try{return p_.apply(this,arguments)}finally{Nt=Gf}}}})(IAt);DAt.exports=IAt;var SRt=DAt.exports;/** + */(function(p){function g(p_,Ol){var Gf=p_.length;p_.push(Ol);e:for(;0>>1,Lm=p_[ea];if(0>>1;eaH(fA,Gf))QoH(p2,fA)?(p_[ea]=p2,p_[Qo]=Gf,ea=Qo):(p_[ea]=fA,p_[kx]=Gf,ea=kx);else if(QoH(p2,Gf))p_[ea]=p2,p_[Qo]=Gf,ea=Qo;else break e}}return Ol}function H(p_,Ol){var Gf=p_.sortIndex-Ol.sortIndex;return Gf!==0?Gf:p_.id-Ol.id}if(typeof performance=="object"&&typeof performance.now=="function"){var G=performance;p.unstable_now=function(){return G.now()}}else{var ye=Date,Oe=ye.now();p.unstable_now=function(){return ye.now()-Oe}}var ot=[],At=[],sn=1,tr=null,Nt=3,Ot=!1,bo=!1,Yr=!1,Ns=typeof setTimeout=="function"?setTimeout:null,ui=typeof clearTimeout=="function"?clearTimeout:null,Zr=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Zi(p_){for(var Ol=x(At);Ol!==null;){if(Ol.callback===null)L(At);else if(Ol.startTime<=p_)L(At),Ol.sortIndex=Ol.expirationTime,g(ot,Ol);else break;Ol=x(At)}}function jr(p_){if(Yr=!1,Zi(p_),!bo)if(x(ot)!==null)bo=!0,g_(lr);else{var Ol=x(At);Ol!==null&&Vn(jr,Ol.startTime-p_)}}function lr(p_,Ol){bo=!1,Yr&&(Yr=!1,ui(Ms),Ms=-1),Ot=!0;var Gf=Nt;try{for(Zi(Ol),tr=x(ot);tr!==null&&(!(tr.expirationTime>Ol)||p_&&!sf());){var ea=tr.callback;if(typeof ea=="function"){tr.callback=null,Nt=tr.priorityLevel;var Lm=ea(tr.expirationTime<=Ol);Ol=p.unstable_now(),typeof Lm=="function"?tr.callback=Lm:tr===x(ot)&&L(ot),Zi(Ol)}else L(ot);tr=x(ot)}if(tr!==null)var Ky=!0;else{var kx=x(At);kx!==null&&Vn(jr,kx.startTime-Ol),Ky=!1}return Ky}finally{tr=null,Nt=Gf,Ot=!1}}var ra=!1,Ho=null,Ms=-1,cs=5,ni=-1;function sf(){return!(p.unstable_now()-nip_||125ea?(p_.sortIndex=Gf,g(At,p_),x(ot)===null&&p_===x(At)&&(Yr?(ui(Ms),Ms=-1):Yr=!0,Vn(jr,Gf-ea))):(p_.sortIndex=Lm,g(ot,p_),bo||Ot||(bo=!0,g_(lr))),p_},p.unstable_shouldYield=sf,p.unstable_wrapCallback=function(p_){var Ol=Nt;return function(){var Gf=Nt;Nt=Ol;try{return p_.apply(this,arguments)}finally{Nt=Gf}}}})(DAt);CAt.exports=DAt;var SRt=CAt.exports;/** * @license React * react-dom.production.min.js * @@ -25,14 +25,14 @@ var vPt=Object.defineProperty;var bPt=(p,g,x)=>g in p?vPt(p,g,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kAt=hl,z5=SRt;function r_(p){for(var g="https://reactjs.org/docs/error-decoder.html?invariant="+p,x=1;x"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ibt=Object.prototype.hasOwnProperty,ERt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,CEt={},DEt={};function xRt(p){return Ibt.call(DEt,p)?!0:Ibt.call(CEt,p)?!1:ERt.test(p)?DEt[p]=!0:(CEt[p]=!0,!1)}function ARt(p,g,x,L){if(x!==null&&x.type===0)return!1;switch(typeof g){case"function":case"symbol":return!0;case"boolean":return L?!1:x!==null?!x.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function CRt(p,g,x,L){if(g===null||typeof g>"u"||ARt(p,g,x,L))return!0;if(L)return!1;if(x!==null)switch(x.type){case 3:return!g;case 4:return g===!1;case 5:return isNaN(g);case 6:return isNaN(g)||1>g}return!1}function v8(p,g,x,L,H,G,ye){this.acceptsBooleans=g===2||g===3||g===4,this.attributeName=L,this.attributeNamespace=H,this.mustUseProperty=x,this.propertyName=p,this.type=g,this.sanitizeURL=G,this.removeEmptyString=ye}var CM={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){CM[p]=new v8(p,0,!1,p,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var g=p[0];CM[g]=new v8(g,1,!1,p[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(p){CM[p]=new v8(p,2,!1,p.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){CM[p]=new v8(p,2,!1,p,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){CM[p]=new v8(p,3,!1,p.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(p){CM[p]=new v8(p,3,!0,p,null,!1,!1)});["capture","download"].forEach(function(p){CM[p]=new v8(p,4,!1,p,null,!1,!1)});["cols","rows","size","span"].forEach(function(p){CM[p]=new v8(p,6,!1,p,null,!1,!1)});["rowSpan","start"].forEach(function(p){CM[p]=new v8(p,5,!1,p.toLowerCase(),null,!1,!1)});var hTt=/[\-:]([a-z])/g;function yTt(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var g=p.replace(hTt,yTt);CM[g]=new v8(g,1,!1,p,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var g=p.replace(hTt,yTt);CM[g]=new v8(g,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(p){var g=p.replace(hTt,yTt);CM[g]=new v8(g,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(p){CM[p]=new v8(p,1,!1,p.toLowerCase(),null,!1,!1)});CM.xlinkHref=new v8("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(p){CM[p]=new v8(p,1,!1,p.toLowerCase(),null,!0,!0)});function vTt(p,g,x,L){var H=CM.hasOwnProperty(g)?CM[g]:null;(H!==null?H.type!==0:L||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dbt=Object.prototype.hasOwnProperty,ERt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,AEt={},CEt={};function xRt(p){return Dbt.call(CEt,p)?!0:Dbt.call(AEt,p)?!1:ERt.test(p)?CEt[p]=!0:(AEt[p]=!0,!1)}function ARt(p,g,x,L){if(x!==null&&x.type===0)return!1;switch(typeof g){case"function":case"symbol":return!0;case"boolean":return L?!1:x!==null?!x.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function CRt(p,g,x,L){if(g===null||typeof g>"u"||ARt(p,g,x,L))return!0;if(L)return!1;if(x!==null)switch(x.type){case 3:return!g;case 4:return g===!1;case 5:return isNaN(g);case 6:return isNaN(g)||1>g}return!1}function v8(p,g,x,L,H,G,ye){this.acceptsBooleans=g===2||g===3||g===4,this.attributeName=L,this.attributeNamespace=H,this.mustUseProperty=x,this.propertyName=p,this.type=g,this.sanitizeURL=G,this.removeEmptyString=ye}var CM={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){CM[p]=new v8(p,0,!1,p,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var g=p[0];CM[g]=new v8(g,1,!1,p[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(p){CM[p]=new v8(p,2,!1,p.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){CM[p]=new v8(p,2,!1,p,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){CM[p]=new v8(p,3,!1,p.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(p){CM[p]=new v8(p,3,!0,p,null,!1,!1)});["capture","download"].forEach(function(p){CM[p]=new v8(p,4,!1,p,null,!1,!1)});["cols","rows","size","span"].forEach(function(p){CM[p]=new v8(p,6,!1,p,null,!1,!1)});["rowSpan","start"].forEach(function(p){CM[p]=new v8(p,5,!1,p.toLowerCase(),null,!1,!1)});var gTt=/[\-:]([a-z])/g;function hTt(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var g=p.replace(gTt,hTt);CM[g]=new v8(g,1,!1,p,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var g=p.replace(gTt,hTt);CM[g]=new v8(g,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(p){var g=p.replace(gTt,hTt);CM[g]=new v8(g,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(p){CM[p]=new v8(p,1,!1,p.toLowerCase(),null,!1,!1)});CM.xlinkHref=new v8("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(p){CM[p]=new v8(p,1,!1,p.toLowerCase(),null,!0,!0)});function yTt(p,g,x,L){var H=CM.hasOwnProperty(g)?CM[g]:null;(H!==null?H.type!==0:L||!(2Oe||H[ye]!==G[Oe]){var ot=` -`+H[ye].replace(" at new "," at ");return p.displayName&&ot.includes("")&&(ot=ot.replace("",p.displayName)),ot}while(1<=ye&&0<=Oe);break}}}finally{O0t=!1,Error.prepareStackTrace=x}return(p=p?p.displayName||p.name:"")?fje(p):""}function DRt(p){switch(p.tag){case 5:return fje(p.type);case 16:return fje("Lazy");case 13:return fje("Suspense");case 19:return fje("SuspenseList");case 0:case 2:case 15:return p=F0t(p.type,!1),p;case 11:return p=F0t(p.type.render,!1),p;case 1:return p=F0t(p.type,!0),p;default:return""}}function wbt(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case _Re:return"Fragment";case fRe:return"Portal";case kbt:return"Profiler";case bTt:return"StrictMode";case Pbt:return"Suspense";case Nbt:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case wAt:return(p.displayName||"Context")+".Consumer";case NAt:return(p._context.displayName||"Context")+".Provider";case TTt:var g=p.render;return p=p.displayName,p||(p=g.displayName||g.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case STt:return g=p.displayName||null,g!==null?g:wbt(p.type)||"Memo";case s_e:g=p._payload,p=p._init;try{return wbt(p(g))}catch{}}return null}function IRt(p){var g=p.type;switch(p.tag){case 24:return"Cache";case 9:return(g.displayName||"Context")+".Consumer";case 10:return(g._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=g.render,p=p.displayName||p.name||"",g.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return g;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wbt(g);case 8:return g===bTt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g}return null}function P_e(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function MAt(p){var g=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(g==="checkbox"||g==="radio")}function kRt(p){var g=MAt(p)?"checked":"value",x=Object.getOwnPropertyDescriptor(p.constructor.prototype,g),L=""+p[g];if(!p.hasOwnProperty(g)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var H=x.get,G=x.set;return Object.defineProperty(p,g,{configurable:!0,get:function(){return H.call(this)},set:function(ye){L=""+ye,G.call(this,ye)}}),Object.defineProperty(p,g,{enumerable:x.enumerable}),{getValue:function(){return L},setValue:function(ye){L=""+ye},stopTracking:function(){p._valueTracker=null,delete p[g]}}}}function sit(p){p._valueTracker||(p._valueTracker=kRt(p))}function LAt(p){if(!p)return!1;var g=p._valueTracker;if(!g)return!0;var x=g.getValue(),L="";return p&&(L=MAt(p)?p.checked?"true":"false":p.value),p=L,p!==x?(g.setValue(p),!0):!1}function uot(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Rbt(p,g){var x=g.checked;return FC({},g,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??p._wrapperState.initialChecked})}function kEt(p,g){var x=g.defaultValue==null?"":g.defaultValue,L=g.checked!=null?g.checked:g.defaultChecked;x=P_e(g.value!=null?g.value:x),p._wrapperState={initialChecked:L,initialValue:x,controlled:g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null}}function OAt(p,g){g=g.checked,g!=null&&vTt(p,"checked",g,!1)}function Mbt(p,g){OAt(p,g);var x=P_e(g.value),L=g.type;if(x!=null)L==="number"?(x===0&&p.value===""||p.value!=x)&&(p.value=""+x):p.value!==""+x&&(p.value=""+x);else if(L==="submit"||L==="reset"){p.removeAttribute("value");return}g.hasOwnProperty("value")?Lbt(p,g.type,x):g.hasOwnProperty("defaultValue")&&Lbt(p,g.type,P_e(g.defaultValue)),g.checked==null&&g.defaultChecked!=null&&(p.defaultChecked=!!g.defaultChecked)}function PEt(p,g,x){if(g.hasOwnProperty("value")||g.hasOwnProperty("defaultValue")){var L=g.type;if(!(L!=="submit"&&L!=="reset"||g.value!==void 0&&g.value!==null))return;g=""+p._wrapperState.initialValue,x||g===p.value||(p.value=g),p.defaultValue=g}x=p.name,x!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,x!==""&&(p.name=x)}function Lbt(p,g,x){(g!=="number"||uot(p.ownerDocument)!==p)&&(x==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+x&&(p.defaultValue=""+x))}var _je=Array.isArray;function DRe(p,g,x,L){if(p=p.options,g){g={};for(var H=0;H"+g.valueOf().toString()+"",g=cit.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;g.firstChild;)p.appendChild(g.firstChild)}});function $je(p,g){if(g){var x=p.firstChild;if(x&&x===p.lastChild&&x.nodeType===3){x.nodeValue=g;return}}p.textContent=g}var Dje={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PRt=["Webkit","ms","Moz","O"];Object.keys(Dje).forEach(function(p){PRt.forEach(function(g){g=g+p.charAt(0).toUpperCase()+p.substring(1),Dje[g]=Dje[p]})});function zAt(p,g,x){return g==null||typeof g=="boolean"||g===""?"":x||typeof g!="number"||g===0||Dje.hasOwnProperty(p)&&Dje[p]?(""+g).trim():g+"px"}function GAt(p,g){p=p.style;for(var x in g)if(g.hasOwnProperty(x)){var L=x.indexOf("--")===0,H=zAt(x,g[x],L);x==="float"&&(x="cssFloat"),L?p.setProperty(x,H):p[x]=H}}var NRt=FC({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wbt(p,g){if(g){if(NRt[p]&&(g.children!=null||g.dangerouslySetInnerHTML!=null))throw Error(r_(137,p));if(g.dangerouslySetInnerHTML!=null){if(g.children!=null)throw Error(r_(60));if(typeof g.dangerouslySetInnerHTML!="object"||!("__html"in g.dangerouslySetInnerHTML))throw Error(r_(61))}if(g.style!=null&&typeof g.style!="object")throw Error(r_(62))}}function Bbt(p,g){if(p.indexOf("-")===-1)return typeof g.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zbt=null;function ETt(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Gbt=null,IRe=null,kRe=null;function REt(p){if(p=DVe(p)){if(typeof Gbt!="function")throw Error(r_(280));var g=p.stateNode;g&&(g=lat(g),Gbt(p.stateNode,p.type,g))}}function jAt(p){IRe?kRe?kRe.push(p):kRe=[p]:IRe=p}function VAt(){if(IRe){var p=IRe,g=kRe;if(kRe=IRe=null,REt(p),g)for(p=0;p>>=0,p===0?32:31-(jRt(p)/VRt|0)|0}var lit=64,uit=4194304;function dje(p){switch(p&-p){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return p&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function pot(p,g){var x=p.pendingLanes;if(x===0)return 0;var L=0,H=p.suspendedLanes,G=p.pingedLanes,ye=x&268435455;if(ye!==0){var Oe=ye&~H;Oe!==0?L=dje(Oe):(G&=ye,G!==0&&(L=dje(G)))}else ye=x&~H,ye!==0?L=dje(ye):G!==0&&(L=dje(G));if(L===0)return 0;if(g!==0&&g!==L&&!(g&H)&&(H=L&-L,G=g&-g,H>=G||H===16&&(G&4194240)!==0))return g;if(L&4&&(L|=x&16),g=p.entangledLanes,g!==0)for(p=p.entanglements,g&=L;0x;x++)g.push(p);return g}function AVe(p,g,x){p.pendingLanes|=g,g!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),p=p.eventTimes,g=31-sU(g),p[g]=x}function $Rt(p,g){var x=p.pendingLanes&~g;p.pendingLanes=g,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=g,p.mutableReadLanes&=g,p.entangledLanes&=g,g=p.entanglements;var L=p.eventTimes;for(p=p.expirationTimes;0=kje),jEt=" ",VEt=!1;function lCt(p,g){switch(p){case"keyup":return TMt.indexOf(g.keyCode)!==-1;case"keydown":return g.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uCt(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var dRe=!1;function EMt(p,g){switch(p){case"compositionend":return uCt(g);case"keypress":return g.which!==32?null:(VEt=!0,jEt);case"textInput":return p=g.data,p===jEt&&VEt?null:p;default:return null}}function xMt(p,g){if(dRe)return p==="compositionend"||!NTt&&lCt(p,g)?(p=sCt(),Rit=ITt=p_e=null,dRe=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(g.ctrlKey||g.altKey||g.metaKey)||g.ctrlKey&&g.altKey){if(g.char&&1=g)return{node:x,offset:g-p};p=L}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=$Et(x)}}function pCt(p,g){return p&&g?p===g?!0:p&&p.nodeType===3?!1:g&&g.nodeType===3?pCt(p,g.parentNode):"contains"in p?p.contains(g):p.compareDocumentPosition?!!(p.compareDocumentPosition(g)&16):!1:!1}function mCt(){for(var p=window,g=uot();g instanceof p.HTMLIFrameElement;){try{var x=typeof g.contentWindow.location.href=="string"}catch{x=!1}if(x)p=g.contentWindow;else break;g=uot(p.document)}return g}function wTt(p){var g=p&&p.nodeName&&p.nodeName.toLowerCase();return g&&(g==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||g==="textarea"||p.contentEditable==="true")}function RMt(p){var g=mCt(),x=p.focusedElem,L=p.selectionRange;if(g!==x&&x&&x.ownerDocument&&pCt(x.ownerDocument.documentElement,x)){if(L!==null&&wTt(x)){if(g=L.start,p=L.end,p===void 0&&(p=g),"selectionStart"in x)x.selectionStart=g,x.selectionEnd=Math.min(p,x.value.length);else if(p=(g=x.ownerDocument||document)&&g.defaultView||window,p.getSelection){p=p.getSelection();var H=x.textContent.length,G=Math.min(L.start,H);L=L.end===void 0?G:Math.min(L.end,H),!p.extend&&G>L&&(H=L,L=G,G=H),H=qEt(x,G);var ye=qEt(x,L);H&&ye&&(p.rangeCount!==1||p.anchorNode!==H.node||p.anchorOffset!==H.offset||p.focusNode!==ye.node||p.focusOffset!==ye.offset)&&(g=g.createRange(),g.setStart(H.node,H.offset),p.removeAllRanges(),G>L?(p.addRange(g),p.extend(ye.node,ye.offset)):(g.setEnd(ye.node,ye.offset),p.addRange(g)))}}for(g=[],p=x;p=p.parentNode;)p.nodeType===1&&g.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,pRe=null,$bt=null,Nje=null,qbt=!1;function KEt(p,g,x){var L=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;qbt||pRe==null||pRe!==uot(L)||(L=pRe,"selectionStart"in L&&wTt(L)?L={start:L.selectionStart,end:L.selectionEnd}:(L=(L.ownerDocument&&L.ownerDocument.defaultView||window).getSelection(),L={anchorNode:L.anchorNode,anchorOffset:L.anchorOffset,focusNode:L.focusNode,focusOffset:L.focusOffset}),Nje&&Zje(Nje,L)||(Nje=L,L=hot($bt,"onSelect"),0hRe||(p.current=e1t[hRe],e1t[hRe]=null,hRe--)}function Dx(p,g){hRe++,e1t[hRe]=p.current,p.current=g}var N_e={},xL=R_e(N_e),jO=R_e(!1),iTe=N_e;function GRe(p,g){var x=p.type.contextTypes;if(!x)return N_e;var L=p.stateNode;if(L&&L.__reactInternalMemoizedUnmaskedChildContext===g)return L.__reactInternalMemoizedMaskedChildContext;var H={},G;for(G in x)H[G]=g[G];return L&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=g,p.__reactInternalMemoizedMaskedChildContext=H),H}function VO(p){return p=p.childContextTypes,p!=null}function vot(){uA(jO),uA(xL)}function n2t(p,g,x){if(xL.current!==N_e)throw Error(r_(168));Dx(xL,g),Dx(jO,x)}function xCt(p,g,x){var L=p.stateNode;if(g=g.childContextTypes,typeof L.getChildContext!="function")return x;L=L.getChildContext();for(var H in L)if(!(H in g))throw Error(r_(108,IRt(p)||"Unknown",H));return FC({},x,L)}function bot(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||N_e,iTe=xL.current,Dx(xL,p),Dx(jO,jO.current),!0}function r2t(p,g,x){var L=p.stateNode;if(!L)throw Error(r_(169));x?(p=xCt(p,g,iTe),L.__reactInternalMemoizedMergedChildContext=p,uA(jO),uA(xL),Dx(xL,p)):uA(jO),Dx(jO,x)}var Tne=null,uat=!1,Y0t=!1;function ACt(p){Tne===null?Tne=[p]:Tne.push(p)}function HMt(p){uat=!0,ACt(p)}function M_e(){if(!Y0t&&Tne!==null){Y0t=!0;var p=0,g=RE;try{var x=Tne;for(RE=1;p>=ye,H-=ye,Ine=1<<32-sU(g)+H|x<Ms?(cs=Ho,Ho=null):cs=Ho.sibling;var ni=Nt(ui,Ho,Zi[Ms],jr);if(ni===null){Ho===null&&(Ho=cs);break}p&&Ho&&ni.alternate===null&&g(ui,Ho),Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni,Ho=cs}if(Ms===Zi.length)return x(ui,Ho),QA&&L1e(ui,Ms),lr;if(Ho===null){for(;MsMs?(cs=Ho,Ho=null):cs=Ho.sibling;var sf=Nt(ui,Ho,ni.value,jr);if(sf===null){Ho===null&&(Ho=cs);break}p&&Ho&&sf.alternate===null&&g(ui,Ho),Zr=G(sf,Zr,Ms),ra===null?lr=sf:ra.sibling=sf,ra=sf,Ho=cs}if(ni.done)return x(ui,Ho),QA&&L1e(ui,Ms),lr;if(Ho===null){for(;!ni.done;Ms++,ni=Zi.next())ni=tr(ui,ni.value,jr),ni!==null&&(Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni);return QA&&L1e(ui,Ms),lr}for(Ho=L(ui,Ho);!ni.done;Ms++,ni=Zi.next())ni=Ot(Ho,ui,Ms,ni.value,jr),ni!==null&&(p&&ni.alternate!==null&&Ho.delete(ni.key===null?Ms:ni.key),Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni);return p&&Ho.forEach(function(Hg){return g(ui,Hg)}),QA&&L1e(ui,Ms),lr}function Ns(ui,Zr,Zi,jr){if(typeof Zi=="object"&&Zi!==null&&Zi.type===_Re&&Zi.key===null&&(Zi=Zi.props.children),typeof Zi=="object"&&Zi!==null){switch(Zi.$$typeof){case ait:e:{for(var lr=Zi.key,ra=Zr;ra!==null;){if(ra.key===lr){if(lr=Zi.type,lr===_Re){if(ra.tag===7){x(ui,ra.sibling),Zr=H(ra,Zi.props.children),Zr.return=ui,ui=Zr;break e}}else if(ra.elementType===lr||typeof lr=="object"&&lr!==null&&lr.$$typeof===s_e&&u2t(lr)===ra.type){x(ui,ra.sibling),Zr=H(ra,Zi.props),Zr.ref=oje(ui,ra,Zi),Zr.return=ui,ui=Zr;break e}x(ui,ra);break}else g(ui,ra);ra=ra.sibling}Zi.type===_Re?(Zr=Y1e(Zi.props.children,ui.mode,jr,Zi.key),Zr.return=ui,ui=Zr):(jr=Git(Zi.type,Zi.key,Zi.props,null,ui.mode,jr),jr.ref=oje(ui,Zr,Zi),jr.return=ui,ui=jr)}return ye(ui);case fRe:e:{for(ra=Zi.key;Zr!==null;){if(Zr.key===ra)if(Zr.tag===4&&Zr.stateNode.containerInfo===Zi.containerInfo&&Zr.stateNode.implementation===Zi.implementation){x(ui,Zr.sibling),Zr=H(Zr,Zi.children||[]),Zr.return=ui,ui=Zr;break e}else{x(ui,Zr);break}else g(ui,Zr);Zr=Zr.sibling}Zr=obt(Zi,ui.mode,jr),Zr.return=ui,ui=Zr}return ye(ui);case s_e:return ra=Zi._init,Ns(ui,Zr,ra(Zi._payload),jr)}if(_je(Zi))return bo(ui,Zr,Zi,jr);if(eje(Zi))return Yr(ui,Zr,Zi,jr);hit(ui,Zi)}return typeof Zi=="string"&&Zi!==""||typeof Zi=="number"?(Zi=""+Zi,Zr!==null&&Zr.tag===6?(x(ui,Zr.sibling),Zr=H(Zr,Zi),Zr.return=ui,ui=Zr):(x(ui,Zr),Zr=ibt(Zi,ui.mode,jr),Zr.return=ui,ui=Zr),ye(ui)):x(ui,Zr)}return Ns}var VRe=RCt(!0),MCt=RCt(!1),IVe={},eX=R_e(IVe),rVe=R_e(IVe),iVe=R_e(IVe);function V1e(p){if(p===IVe)throw Error(r_(174));return p}function GTt(p,g){switch(Dx(iVe,g),Dx(rVe,p),Dx(eX,IVe),p=g.nodeType,p){case 9:case 11:g=(g=g.documentElement)?g.namespaceURI:Fbt(null,"");break;default:p=p===8?g.parentNode:g,g=p.namespaceURI||null,p=p.tagName,g=Fbt(g,p)}uA(eX),Dx(eX,g)}function URe(){uA(eX),uA(rVe),uA(iVe)}function LCt(p){V1e(iVe.current);var g=V1e(eX.current),x=Fbt(g,p.type);g!==x&&(Dx(rVe,p),Dx(eX,x))}function jTt(p){rVe.current===p&&(uA(eX),uA(rVe))}var LC=R_e(0);function Cot(p){for(var g=p;g!==null;){if(g.tag===13){var x=g.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return g}else if(g.tag===19&&g.memoizedProps.revealOrder!==void 0){if(g.flags&128)return g}else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===p)break;for(;g.sibling===null;){if(g.return===null||g.return===p)return null;g=g.return}g.sibling.return=g.return,g=g.sibling}return null}var Q0t=[];function VTt(){for(var p=0;px?x:4,p(!0);var L=Z0t.transition;Z0t.transition={};try{p(!1),g()}finally{RE=x,Z0t.transition=L}}function YCt(){return mz().memoizedState}function KMt(p,g,x){var L=C_e(p);if(x={lane:L,action:x,hasEagerState:!1,eagerState:null,next:null},QCt(p))ZCt(g,x);else if(x=kCt(p,g,x,L),x!==null){var H=h8();cU(x,p,L,H),eDt(x,g,L)}}function XMt(p,g,x){var L=C_e(p),H={lane:L,action:x,hasEagerState:!1,eagerState:null,next:null};if(QCt(p))ZCt(g,H);else{var G=p.alternate;if(p.lanes===0&&(G===null||G.lanes===0)&&(G=g.lastRenderedReducer,G!==null))try{var ye=g.lastRenderedState,Oe=G(ye,x);if(H.hasEagerState=!0,H.eagerState=Oe,uU(Oe,ye)){var ot=g.interleaved;ot===null?(H.next=H,BTt(g)):(H.next=ot.next,ot.next=H),g.interleaved=H;return}}catch{}finally{}x=kCt(p,g,H,L),x!==null&&(H=h8(),cU(x,p,L,H),eDt(x,g,L))}}function QCt(p){var g=p.alternate;return p===OC||g!==null&&g===OC}function ZCt(p,g){wje=Dot=!0;var x=p.pending;x===null?g.next=g:(g.next=x.next,x.next=g),p.pending=g}function eDt(p,g,x){if(x&4194240){var L=g.lanes;L&=p.pendingLanes,x|=L,g.lanes=x,ATt(p,x)}}var Iot={readContext:pz,useCallback:dL,useContext:dL,useEffect:dL,useImperativeHandle:dL,useInsertionEffect:dL,useLayoutEffect:dL,useMemo:dL,useReducer:dL,useRef:dL,useState:dL,useDebugValue:dL,useDeferredValue:dL,useTransition:dL,useMutableSource:dL,useSyncExternalStore:dL,useId:dL,unstable_isNewReconciler:!1},YMt={readContext:pz,useCallback:function(p,g){return $K().memoizedState=[p,g===void 0?null:g],p},useContext:pz,useEffect:_2t,useImperativeHandle:function(p,g,x){return x=x!=null?x.concat([p]):null,Fit(4194308,4,JCt.bind(null,g,p),x)},useLayoutEffect:function(p,g){return Fit(4194308,4,p,g)},useInsertionEffect:function(p,g){return Fit(4,2,p,g)},useMemo:function(p,g){var x=$K();return g=g===void 0?null:g,p=p(),x.memoizedState=[p,g],p},useReducer:function(p,g,x){var L=$K();return g=x!==void 0?x(g):g,L.memoizedState=L.baseState=g,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:g},L.queue=p,p=p.dispatch=KMt.bind(null,OC,p),[L.memoizedState,p]},useRef:function(p){var g=$K();return p={current:p},g.memoizedState=p},useState:f2t,useDebugValue:qTt,useDeferredValue:function(p){return $K().memoizedState=p},useTransition:function(){var p=f2t(!1),g=p[0];return p=qMt.bind(null,p[1]),$K().memoizedState=p,[g,p]},useMutableSource:function(){},useSyncExternalStore:function(p,g,x){var L=OC,H=$K();if(QA){if(x===void 0)throw Error(r_(407));x=x()}else{if(x=g(),Hw===null)throw Error(r_(349));aTe&30||WCt(L,g,x)}H.memoizedState=x;var G={value:x,getSnapshot:g};return H.queue=G,_2t(zCt.bind(null,L,G,p),[p]),L.flags|=2048,sVe(9,BCt.bind(null,L,G,x,g),void 0,null),x},useId:function(){var p=$K(),g=Hw.identifierPrefix;if(QA){var x=kne,L=Ine;x=(L&~(1<<32-sU(L)-1)).toString(32)+x,g=":"+g+"R"+x,x=oVe++,0")&&(ot=ot.replace("",p.displayName)),ot}while(1<=ye&&0<=Oe);break}}}finally{O0t=!1,Error.prepareStackTrace=x}return(p=p?p.displayName||p.name:"")?fje(p):""}function DRt(p){switch(p.tag){case 5:return fje(p.type);case 16:return fje("Lazy");case 13:return fje("Suspense");case 19:return fje("SuspenseList");case 0:case 2:case 15:return p=F0t(p.type,!1),p;case 11:return p=F0t(p.type.render,!1),p;case 1:return p=F0t(p.type,!0),p;default:return""}}function Nbt(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case _Re:return"Fragment";case fRe:return"Portal";case Ibt:return"Profiler";case vTt:return"StrictMode";case kbt:return"Suspense";case Pbt:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case NAt:return(p.displayName||"Context")+".Consumer";case PAt:return(p._context.displayName||"Context")+".Provider";case bTt:var g=p.render;return p=p.displayName,p||(p=g.displayName||g.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case TTt:return g=p.displayName||null,g!==null?g:Nbt(p.type)||"Memo";case s_e:g=p._payload,p=p._init;try{return Nbt(p(g))}catch{}}return null}function IRt(p){var g=p.type;switch(p.tag){case 24:return"Cache";case 9:return(g.displayName||"Context")+".Consumer";case 10:return(g._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=g.render,p=p.displayName||p.name||"",g.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return g;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nbt(g);case 8:return g===vTt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g}return null}function P_e(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function RAt(p){var g=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(g==="checkbox"||g==="radio")}function kRt(p){var g=RAt(p)?"checked":"value",x=Object.getOwnPropertyDescriptor(p.constructor.prototype,g),L=""+p[g];if(!p.hasOwnProperty(g)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var H=x.get,G=x.set;return Object.defineProperty(p,g,{configurable:!0,get:function(){return H.call(this)},set:function(ye){L=""+ye,G.call(this,ye)}}),Object.defineProperty(p,g,{enumerable:x.enumerable}),{getValue:function(){return L},setValue:function(ye){L=""+ye},stopTracking:function(){p._valueTracker=null,delete p[g]}}}}function sit(p){p._valueTracker||(p._valueTracker=kRt(p))}function MAt(p){if(!p)return!1;var g=p._valueTracker;if(!g)return!0;var x=g.getValue(),L="";return p&&(L=RAt(p)?p.checked?"true":"false":p.value),p=L,p!==x?(g.setValue(p),!0):!1}function uot(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function wbt(p,g){var x=g.checked;return FC({},g,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??p._wrapperState.initialChecked})}function IEt(p,g){var x=g.defaultValue==null?"":g.defaultValue,L=g.checked!=null?g.checked:g.defaultChecked;x=P_e(g.value!=null?g.value:x),p._wrapperState={initialChecked:L,initialValue:x,controlled:g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null}}function LAt(p,g){g=g.checked,g!=null&&yTt(p,"checked",g,!1)}function Rbt(p,g){LAt(p,g);var x=P_e(g.value),L=g.type;if(x!=null)L==="number"?(x===0&&p.value===""||p.value!=x)&&(p.value=""+x):p.value!==""+x&&(p.value=""+x);else if(L==="submit"||L==="reset"){p.removeAttribute("value");return}g.hasOwnProperty("value")?Mbt(p,g.type,x):g.hasOwnProperty("defaultValue")&&Mbt(p,g.type,P_e(g.defaultValue)),g.checked==null&&g.defaultChecked!=null&&(p.defaultChecked=!!g.defaultChecked)}function kEt(p,g,x){if(g.hasOwnProperty("value")||g.hasOwnProperty("defaultValue")){var L=g.type;if(!(L!=="submit"&&L!=="reset"||g.value!==void 0&&g.value!==null))return;g=""+p._wrapperState.initialValue,x||g===p.value||(p.value=g),p.defaultValue=g}x=p.name,x!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,x!==""&&(p.name=x)}function Mbt(p,g,x){(g!=="number"||uot(p.ownerDocument)!==p)&&(x==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+x&&(p.defaultValue=""+x))}var _je=Array.isArray;function DRe(p,g,x,L){if(p=p.options,g){g={};for(var H=0;H"+g.valueOf().toString()+"",g=cit.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;g.firstChild;)p.appendChild(g.firstChild)}});function $je(p,g){if(g){var x=p.firstChild;if(x&&x===p.lastChild&&x.nodeType===3){x.nodeValue=g;return}}p.textContent=g}var Dje={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PRt=["Webkit","ms","Moz","O"];Object.keys(Dje).forEach(function(p){PRt.forEach(function(g){g=g+p.charAt(0).toUpperCase()+p.substring(1),Dje[g]=Dje[p]})});function BAt(p,g,x){return g==null||typeof g=="boolean"||g===""?"":x||typeof g!="number"||g===0||Dje.hasOwnProperty(p)&&Dje[p]?(""+g).trim():g+"px"}function zAt(p,g){p=p.style;for(var x in g)if(g.hasOwnProperty(x)){var L=x.indexOf("--")===0,H=BAt(x,g[x],L);x==="float"&&(x="cssFloat"),L?p.setProperty(x,H):p[x]=H}}var NRt=FC({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fbt(p,g){if(g){if(NRt[p]&&(g.children!=null||g.dangerouslySetInnerHTML!=null))throw Error(r_(137,p));if(g.dangerouslySetInnerHTML!=null){if(g.children!=null)throw Error(r_(60));if(typeof g.dangerouslySetInnerHTML!="object"||!("__html"in g.dangerouslySetInnerHTML))throw Error(r_(61))}if(g.style!=null&&typeof g.style!="object")throw Error(r_(62))}}function Wbt(p,g){if(p.indexOf("-")===-1)return typeof g.is=="string";switch(p){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bbt=null;function STt(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var zbt=null,IRe=null,kRe=null;function wEt(p){if(p=DVe(p)){if(typeof zbt!="function")throw Error(r_(280));var g=p.stateNode;g&&(g=lat(g),zbt(p.stateNode,p.type,g))}}function GAt(p){IRe?kRe?kRe.push(p):kRe=[p]:IRe=p}function jAt(){if(IRe){var p=IRe,g=kRe;if(kRe=IRe=null,wEt(p),g)for(p=0;p>>=0,p===0?32:31-(jRt(p)/VRt|0)|0}var lit=64,uit=4194304;function dje(p){switch(p&-p){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return p&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function pot(p,g){var x=p.pendingLanes;if(x===0)return 0;var L=0,H=p.suspendedLanes,G=p.pingedLanes,ye=x&268435455;if(ye!==0){var Oe=ye&~H;Oe!==0?L=dje(Oe):(G&=ye,G!==0&&(L=dje(G)))}else ye=x&~H,ye!==0?L=dje(ye):G!==0&&(L=dje(G));if(L===0)return 0;if(g!==0&&g!==L&&!(g&H)&&(H=L&-L,G=g&-g,H>=G||H===16&&(G&4194240)!==0))return g;if(L&4&&(L|=x&16),g=p.entangledLanes,g!==0)for(p=p.entanglements,g&=L;0x;x++)g.push(p);return g}function AVe(p,g,x){p.pendingLanes|=g,g!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),p=p.eventTimes,g=31-aU(g),p[g]=x}function $Rt(p,g){var x=p.pendingLanes&~g;p.pendingLanes=g,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=g,p.mutableReadLanes&=g,p.entangledLanes&=g,g=p.entanglements;var L=p.eventTimes;for(p=p.expirationTimes;0=kje),GEt=" ",jEt=!1;function cCt(p,g){switch(p){case"keyup":return TMt.indexOf(g.keyCode)!==-1;case"keydown":return g.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lCt(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var dRe=!1;function EMt(p,g){switch(p){case"compositionend":return lCt(g);case"keypress":return g.which!==32?null:(jEt=!0,GEt);case"textInput":return p=g.data,p===GEt&&jEt?null:p;default:return null}}function xMt(p,g){if(dRe)return p==="compositionend"||!PTt&&cCt(p,g)?(p=aCt(),Rit=DTt=p_e=null,dRe=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(g.ctrlKey||g.altKey||g.metaKey)||g.ctrlKey&&g.altKey){if(g.char&&1=g)return{node:x,offset:g-p};p=L}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=JEt(x)}}function dCt(p,g){return p&&g?p===g?!0:p&&p.nodeType===3?!1:g&&g.nodeType===3?dCt(p,g.parentNode):"contains"in p?p.contains(g):p.compareDocumentPosition?!!(p.compareDocumentPosition(g)&16):!1:!1}function pCt(){for(var p=window,g=uot();g instanceof p.HTMLIFrameElement;){try{var x=typeof g.contentWindow.location.href=="string"}catch{x=!1}if(x)p=g.contentWindow;else break;g=uot(p.document)}return g}function NTt(p){var g=p&&p.nodeName&&p.nodeName.toLowerCase();return g&&(g==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||g==="textarea"||p.contentEditable==="true")}function RMt(p){var g=pCt(),x=p.focusedElem,L=p.selectionRange;if(g!==x&&x&&x.ownerDocument&&dCt(x.ownerDocument.documentElement,x)){if(L!==null&&NTt(x)){if(g=L.start,p=L.end,p===void 0&&(p=g),"selectionStart"in x)x.selectionStart=g,x.selectionEnd=Math.min(p,x.value.length);else if(p=(g=x.ownerDocument||document)&&g.defaultView||window,p.getSelection){p=p.getSelection();var H=x.textContent.length,G=Math.min(L.start,H);L=L.end===void 0?G:Math.min(L.end,H),!p.extend&&G>L&&(H=L,L=G,G=H),H=$Et(x,G);var ye=$Et(x,L);H&&ye&&(p.rangeCount!==1||p.anchorNode!==H.node||p.anchorOffset!==H.offset||p.focusNode!==ye.node||p.focusOffset!==ye.offset)&&(g=g.createRange(),g.setStart(H.node,H.offset),p.removeAllRanges(),G>L?(p.addRange(g),p.extend(ye.node,ye.offset)):(g.setEnd(ye.node,ye.offset),p.addRange(g)))}}for(g=[],p=x;p=p.parentNode;)p.nodeType===1&&g.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,pRe=null,Jbt=null,Nje=null,$bt=!1;function qEt(p,g,x){var L=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;$bt||pRe==null||pRe!==uot(L)||(L=pRe,"selectionStart"in L&&NTt(L)?L={start:L.selectionStart,end:L.selectionEnd}:(L=(L.ownerDocument&&L.ownerDocument.defaultView||window).getSelection(),L={anchorNode:L.anchorNode,anchorOffset:L.anchorOffset,focusNode:L.focusNode,focusOffset:L.focusOffset}),Nje&&Zje(Nje,L)||(Nje=L,L=hot(Jbt,"onSelect"),0hRe||(p.current=Zbt[hRe],Zbt[hRe]=null,hRe--)}function Dx(p,g){hRe++,Zbt[hRe]=p.current,p.current=g}var N_e={},EL=R_e(N_e),jO=R_e(!1),iTe=N_e;function GRe(p,g){var x=p.type.contextTypes;if(!x)return N_e;var L=p.stateNode;if(L&&L.__reactInternalMemoizedUnmaskedChildContext===g)return L.__reactInternalMemoizedMaskedChildContext;var H={},G;for(G in x)H[G]=g[G];return L&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=g,p.__reactInternalMemoizedMaskedChildContext=H),H}function VO(p){return p=p.childContextTypes,p!=null}function vot(){uA(jO),uA(EL)}function t2t(p,g,x){if(EL.current!==N_e)throw Error(r_(168));Dx(EL,g),Dx(jO,x)}function ECt(p,g,x){var L=p.stateNode;if(g=g.childContextTypes,typeof L.getChildContext!="function")return x;L=L.getChildContext();for(var H in L)if(!(H in g))throw Error(r_(108,IRt(p)||"Unknown",H));return FC({},x,L)}function bot(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||N_e,iTe=EL.current,Dx(EL,p),Dx(jO,jO.current),!0}function n2t(p,g,x){var L=p.stateNode;if(!L)throw Error(r_(169));x?(p=ECt(p,g,iTe),L.__reactInternalMemoizedMergedChildContext=p,uA(jO),uA(EL),Dx(EL,p)):uA(jO),Dx(jO,x)}var Tne=null,uat=!1,Y0t=!1;function xCt(p){Tne===null?Tne=[p]:Tne.push(p)}function HMt(p){uat=!0,xCt(p)}function M_e(){if(!Y0t&&Tne!==null){Y0t=!0;var p=0,g=RE;try{var x=Tne;for(RE=1;p>=ye,H-=ye,Ine=1<<32-aU(g)+H|x<Ms?(cs=Ho,Ho=null):cs=Ho.sibling;var ni=Nt(ui,Ho,Zi[Ms],jr);if(ni===null){Ho===null&&(Ho=cs);break}p&&Ho&&ni.alternate===null&&g(ui,Ho),Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni,Ho=cs}if(Ms===Zi.length)return x(ui,Ho),QA&&L1e(ui,Ms),lr;if(Ho===null){for(;MsMs?(cs=Ho,Ho=null):cs=Ho.sibling;var sf=Nt(ui,Ho,ni.value,jr);if(sf===null){Ho===null&&(Ho=cs);break}p&&Ho&&sf.alternate===null&&g(ui,Ho),Zr=G(sf,Zr,Ms),ra===null?lr=sf:ra.sibling=sf,ra=sf,Ho=cs}if(ni.done)return x(ui,Ho),QA&&L1e(ui,Ms),lr;if(Ho===null){for(;!ni.done;Ms++,ni=Zi.next())ni=tr(ui,ni.value,jr),ni!==null&&(Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni);return QA&&L1e(ui,Ms),lr}for(Ho=L(ui,Ho);!ni.done;Ms++,ni=Zi.next())ni=Ot(Ho,ui,Ms,ni.value,jr),ni!==null&&(p&&ni.alternate!==null&&Ho.delete(ni.key===null?Ms:ni.key),Zr=G(ni,Zr,Ms),ra===null?lr=ni:ra.sibling=ni,ra=ni);return p&&Ho.forEach(function(Hg){return g(ui,Hg)}),QA&&L1e(ui,Ms),lr}function Ns(ui,Zr,Zi,jr){if(typeof Zi=="object"&&Zi!==null&&Zi.type===_Re&&Zi.key===null&&(Zi=Zi.props.children),typeof Zi=="object"&&Zi!==null){switch(Zi.$$typeof){case ait:e:{for(var lr=Zi.key,ra=Zr;ra!==null;){if(ra.key===lr){if(lr=Zi.type,lr===_Re){if(ra.tag===7){x(ui,ra.sibling),Zr=H(ra,Zi.props.children),Zr.return=ui,ui=Zr;break e}}else if(ra.elementType===lr||typeof lr=="object"&&lr!==null&&lr.$$typeof===s_e&&l2t(lr)===ra.type){x(ui,ra.sibling),Zr=H(ra,Zi.props),Zr.ref=oje(ui,ra,Zi),Zr.return=ui,ui=Zr;break e}x(ui,ra);break}else g(ui,ra);ra=ra.sibling}Zi.type===_Re?(Zr=Y1e(Zi.props.children,ui.mode,jr,Zi.key),Zr.return=ui,ui=Zr):(jr=Git(Zi.type,Zi.key,Zi.props,null,ui.mode,jr),jr.ref=oje(ui,Zr,Zi),jr.return=ui,ui=jr)}return ye(ui);case fRe:e:{for(ra=Zi.key;Zr!==null;){if(Zr.key===ra)if(Zr.tag===4&&Zr.stateNode.containerInfo===Zi.containerInfo&&Zr.stateNode.implementation===Zi.implementation){x(ui,Zr.sibling),Zr=H(Zr,Zi.children||[]),Zr.return=ui,ui=Zr;break e}else{x(ui,Zr);break}else g(ui,Zr);Zr=Zr.sibling}Zr=obt(Zi,ui.mode,jr),Zr.return=ui,ui=Zr}return ye(ui);case s_e:return ra=Zi._init,Ns(ui,Zr,ra(Zi._payload),jr)}if(_je(Zi))return bo(ui,Zr,Zi,jr);if(eje(Zi))return Yr(ui,Zr,Zi,jr);hit(ui,Zi)}return typeof Zi=="string"&&Zi!==""||typeof Zi=="number"?(Zi=""+Zi,Zr!==null&&Zr.tag===6?(x(ui,Zr.sibling),Zr=H(Zr,Zi),Zr.return=ui,ui=Zr):(x(ui,Zr),Zr=ibt(Zi,ui.mode,jr),Zr.return=ui,ui=Zr),ye(ui)):x(ui,Zr)}return Ns}var VRe=wCt(!0),RCt=wCt(!1),IVe={},eX=R_e(IVe),rVe=R_e(IVe),iVe=R_e(IVe);function V1e(p){if(p===IVe)throw Error(r_(174));return p}function zTt(p,g){switch(Dx(iVe,g),Dx(rVe,p),Dx(eX,IVe),p=g.nodeType,p){case 9:case 11:g=(g=g.documentElement)?g.namespaceURI:Obt(null,"");break;default:p=p===8?g.parentNode:g,g=p.namespaceURI||null,p=p.tagName,g=Obt(g,p)}uA(eX),Dx(eX,g)}function URe(){uA(eX),uA(rVe),uA(iVe)}function MCt(p){V1e(iVe.current);var g=V1e(eX.current),x=Obt(g,p.type);g!==x&&(Dx(rVe,p),Dx(eX,x))}function GTt(p){rVe.current===p&&(uA(eX),uA(rVe))}var LC=R_e(0);function Cot(p){for(var g=p;g!==null;){if(g.tag===13){var x=g.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return g}else if(g.tag===19&&g.memoizedProps.revealOrder!==void 0){if(g.flags&128)return g}else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===p)break;for(;g.sibling===null;){if(g.return===null||g.return===p)return null;g=g.return}g.sibling.return=g.return,g=g.sibling}return null}var Q0t=[];function jTt(){for(var p=0;px?x:4,p(!0);var L=Z0t.transition;Z0t.transition={};try{p(!1),g()}finally{RE=x,Z0t.transition=L}}function XCt(){return mz().memoizedState}function KMt(p,g,x){var L=C_e(p);if(x={lane:L,action:x,hasEagerState:!1,eagerState:null,next:null},YCt(p))QCt(g,x);else if(x=ICt(p,g,x,L),x!==null){var H=h8();sU(x,p,L,H),ZCt(x,g,L)}}function XMt(p,g,x){var L=C_e(p),H={lane:L,action:x,hasEagerState:!1,eagerState:null,next:null};if(YCt(p))QCt(g,H);else{var G=p.alternate;if(p.lanes===0&&(G===null||G.lanes===0)&&(G=g.lastRenderedReducer,G!==null))try{var ye=g.lastRenderedState,Oe=G(ye,x);if(H.hasEagerState=!0,H.eagerState=Oe,lU(Oe,ye)){var ot=g.interleaved;ot===null?(H.next=H,WTt(g)):(H.next=ot.next,ot.next=H),g.interleaved=H;return}}catch{}finally{}x=ICt(p,g,H,L),x!==null&&(H=h8(),sU(x,p,L,H),ZCt(x,g,L))}}function YCt(p){var g=p.alternate;return p===OC||g!==null&&g===OC}function QCt(p,g){wje=Dot=!0;var x=p.pending;x===null?g.next=g:(g.next=x.next,x.next=g),p.pending=g}function ZCt(p,g,x){if(x&4194240){var L=g.lanes;L&=p.pendingLanes,x|=L,g.lanes=x,xTt(p,x)}}var Iot={readContext:pz,useCallback:dL,useContext:dL,useEffect:dL,useImperativeHandle:dL,useInsertionEffect:dL,useLayoutEffect:dL,useMemo:dL,useReducer:dL,useRef:dL,useState:dL,useDebugValue:dL,useDeferredValue:dL,useTransition:dL,useMutableSource:dL,useSyncExternalStore:dL,useId:dL,unstable_isNewReconciler:!1},YMt={readContext:pz,useCallback:function(p,g){return $K().memoizedState=[p,g===void 0?null:g],p},useContext:pz,useEffect:f2t,useImperativeHandle:function(p,g,x){return x=x!=null?x.concat([p]):null,Fit(4194308,4,HCt.bind(null,g,p),x)},useLayoutEffect:function(p,g){return Fit(4194308,4,p,g)},useInsertionEffect:function(p,g){return Fit(4,2,p,g)},useMemo:function(p,g){var x=$K();return g=g===void 0?null:g,p=p(),x.memoizedState=[p,g],p},useReducer:function(p,g,x){var L=$K();return g=x!==void 0?x(g):g,L.memoizedState=L.baseState=g,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:g},L.queue=p,p=p.dispatch=KMt.bind(null,OC,p),[L.memoizedState,p]},useRef:function(p){var g=$K();return p={current:p},g.memoizedState=p},useState:u2t,useDebugValue:$Tt,useDeferredValue:function(p){return $K().memoizedState=p},useTransition:function(){var p=u2t(!1),g=p[0];return p=qMt.bind(null,p[1]),$K().memoizedState=p,[g,p]},useMutableSource:function(){},useSyncExternalStore:function(p,g,x){var L=OC,H=$K();if(QA){if(x===void 0)throw Error(r_(407));x=x()}else{if(x=g(),Hw===null)throw Error(r_(349));aTe&30||FCt(L,g,x)}H.memoizedState=x;var G={value:x,getSnapshot:g};return H.queue=G,f2t(BCt.bind(null,L,G,p),[p]),L.flags|=2048,sVe(9,WCt.bind(null,L,G,x,g),void 0,null),x},useId:function(){var p=$K(),g=Hw.identifierPrefix;if(QA){var x=kne,L=Ine;x=(L&~(1<<32-aU(L)-1)).toString(32)+x,g=":"+g+"R"+x,x=oVe++,0<\/script>",p=p.removeChild(p.firstChild)):typeof L.is=="string"?p=ye.createElement(x,{is:L.is}):(p=ye.createElement(x),x==="select"&&(ye=p,L.multiple?ye.multiple=!0:L.size&&(ye.size=L.size))):p=ye.createElementNS(p,x),p[YK]=g,p[nVe]=L,lDt(p,g,!1,!1),g.stateNode=p;e:{switch(ye=Bbt(x,L),x){case"dialog":sA("cancel",p),sA("close",p),H=L;break;case"iframe":case"object":case"embed":sA("load",p),H=L;break;case"video":case"audio":for(H=0;HJRe&&(g.flags|=128,L=!0,aje(G,!1),g.lanes=4194304)}else{if(!L)if(p=Cot(ye),p!==null){if(g.flags|=128,L=!0,x=p.updateQueue,x!==null&&(g.updateQueue=x,g.flags|=4),aje(G,!0),G.tail===null&&G.tailMode==="hidden"&&!ye.alternate&&!QA)return pL(g),null}else 2*nk()-G.renderingStartTime>JRe&&x!==1073741824&&(g.flags|=128,L=!0,aje(G,!1),g.lanes=4194304);G.isBackwards?(ye.sibling=g.child,g.child=ye):(x=G.last,x!==null?x.sibling=ye:g.child=ye,G.last=ye)}return G.tail!==null?(g=G.tail,G.rendering=g,G.tail=g.sibling,G.renderingStartTime=nk(),g.sibling=null,x=LC.current,Dx(LC,L?x&1|2:x&1),g):(pL(g),null);case 22:case 23:return eSt(),L=g.memoizedState!==null,p!==null&&p.memoizedState!==null!==L&&(g.flags|=8192),L&&g.mode&1?R5&1073741824&&(pL(g),g.subtreeFlags&6&&(g.flags|=8192)):pL(g),null;case 24:return null;case 25:return null}throw Error(r_(156,g.tag))}function o6t(p,g){switch(MTt(g),g.tag){case 1:return VO(g.type)&&vot(),p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 3:return URe(),uA(jO),uA(xL),VTt(),p=g.flags,p&65536&&!(p&128)?(g.flags=p&-65537|128,g):null;case 5:return jTt(g),null;case 13:if(uA(LC),p=g.memoizedState,p!==null&&p.dehydrated!==null){if(g.alternate===null)throw Error(r_(340));jRe()}return p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 19:return uA(LC),null;case 4:return URe(),null;case 10:return WTt(g.type._context),null;case 22:case 23:return eSt(),null;case 24:return null;default:return null}}var vit=!1,yL=!1,a6t=typeof WeakSet=="function"?WeakSet:Set,Jp=null;function TRe(p,g){var x=p.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(L){kD(p,g,L)}else x.current=null}function _1t(p,g,x){try{x()}catch(L){kD(p,g,L)}}var T2t=!1;function s6t(p,g){if(Kbt=mot,p=mCt(),wTt(p)){if("selectionStart"in p)var x={start:p.selectionStart,end:p.selectionEnd};else e:{x=(x=p.ownerDocument)&&x.defaultView||window;var L=x.getSelection&&x.getSelection();if(L&&L.rangeCount!==0){x=L.anchorNode;var H=L.anchorOffset,G=L.focusNode;L=L.focusOffset;try{x.nodeType,G.nodeType}catch{x=null;break e}var ye=0,Oe=-1,ot=-1,At=0,sn=0,tr=p,Nt=null;t:for(;;){for(var Ot;tr!==x||H!==0&&tr.nodeType!==3||(Oe=ye+H),tr!==G||L!==0&&tr.nodeType!==3||(ot=ye+L),tr.nodeType===3&&(ye+=tr.nodeValue.length),(Ot=tr.firstChild)!==null;)Nt=tr,tr=Ot;for(;;){if(tr===p)break t;if(Nt===x&&++At===H&&(Oe=ye),Nt===G&&++sn===L&&(ot=ye),(Ot=tr.nextSibling)!==null)break;tr=Nt,Nt=tr.parentNode}tr=Ot}x=Oe===-1||ot===-1?null:{start:Oe,end:ot}}else x=null}x=x||{start:0,end:0}}else x=null;for(Xbt={focusedElem:p,selectionRange:x},mot=!1,Jp=g;Jp!==null;)if(g=Jp,p=g.child,(g.subtreeFlags&1028)!==0&&p!==null)p.return=g,Jp=p;else for(;Jp!==null;){g=Jp;try{var bo=g.alternate;if(g.flags&1024)switch(g.tag){case 0:case 11:case 15:break;case 1:if(bo!==null){var Yr=bo.memoizedProps,Ns=bo.memoizedState,ui=g.stateNode,Zr=ui.getSnapshotBeforeUpdate(g.elementType===g.type?Yr:eU(g.type,Yr),Ns);ui.__reactInternalSnapshotBeforeUpdate=Zr}break;case 3:var Zi=g.stateNode.containerInfo;Zi.nodeType===1?Zi.textContent="":Zi.nodeType===9&&Zi.documentElement&&Zi.removeChild(Zi.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r_(163))}}catch(jr){kD(g,g.return,jr)}if(p=g.sibling,p!==null){p.return=g.return,Jp=p;break}Jp=g.return}return bo=T2t,T2t=!1,bo}function Rje(p,g,x){var L=g.updateQueue;if(L=L!==null?L.lastEffect:null,L!==null){var H=L=L.next;do{if((H.tag&p)===p){var G=H.destroy;H.destroy=void 0,G!==void 0&&_1t(g,x,G)}H=H.next}while(H!==L)}}function dat(p,g){if(g=g.updateQueue,g=g!==null?g.lastEffect:null,g!==null){var x=g=g.next;do{if((x.tag&p)===p){var L=x.create;x.destroy=L()}x=x.next}while(x!==g)}}function d1t(p){var g=p.ref;if(g!==null){var x=p.stateNode;switch(p.tag){case 5:p=x;break;default:p=x}typeof g=="function"?g(p):g.current=p}}function _Dt(p){var g=p.alternate;g!==null&&(p.alternate=null,_Dt(g)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(g=p.stateNode,g!==null&&(delete g[YK],delete g[nVe],delete g[Zbt],delete g[VMt],delete g[UMt])),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function dDt(p){return p.tag===5||p.tag===3||p.tag===4}function S2t(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||dDt(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function p1t(p,g,x){var L=p.tag;if(L===5||L===6)p=p.stateNode,g?x.nodeType===8?x.parentNode.insertBefore(p,g):x.insertBefore(p,g):(x.nodeType===8?(g=x.parentNode,g.insertBefore(p,x)):(g=x,g.appendChild(p)),x=x._reactRootContainer,x!=null||g.onclick!==null||(g.onclick=yot));else if(L!==4&&(p=p.child,p!==null))for(p1t(p,g,x),p=p.sibling;p!==null;)p1t(p,g,x),p=p.sibling}function m1t(p,g,x){var L=p.tag;if(L===5||L===6)p=p.stateNode,g?x.insertBefore(p,g):x.appendChild(p);else if(L!==4&&(p=p.child,p!==null))for(m1t(p,g,x),p=p.sibling;p!==null;)m1t(p,g,x),p=p.sibling}var bM=null,nU=!1;function n_e(p,g,x){for(x=x.child;x!==null;)pDt(p,g,x),x=x.sibling}function pDt(p,g,x){if(ZK&&typeof ZK.onCommitFiberUnmount=="function")try{ZK.onCommitFiberUnmount(oat,x)}catch{}switch(x.tag){case 5:yL||TRe(x,g);case 6:var L=bM,H=nU;bM=null,n_e(p,g,x),bM=L,nU=H,bM!==null&&(nU?(p=bM,x=x.stateNode,p.nodeType===8?p.parentNode.removeChild(x):p.removeChild(x)):bM.removeChild(x.stateNode));break;case 18:bM!==null&&(nU?(p=bM,x=x.stateNode,p.nodeType===8?X0t(p.parentNode,x):p.nodeType===1&&X0t(p,x),Yje(p)):X0t(bM,x.stateNode));break;case 4:L=bM,H=nU,bM=x.stateNode.containerInfo,nU=!0,n_e(p,g,x),bM=L,nU=H;break;case 0:case 11:case 14:case 15:if(!yL&&(L=x.updateQueue,L!==null&&(L=L.lastEffect,L!==null))){H=L=L.next;do{var G=H,ye=G.destroy;G=G.tag,ye!==void 0&&(G&2||G&4)&&_1t(x,g,ye),H=H.next}while(H!==L)}n_e(p,g,x);break;case 1:if(!yL&&(TRe(x,g),L=x.stateNode,typeof L.componentWillUnmount=="function"))try{L.props=x.memoizedProps,L.state=x.memoizedState,L.componentWillUnmount()}catch(Oe){kD(x,g,Oe)}n_e(p,g,x);break;case 21:n_e(p,g,x);break;case 22:x.mode&1?(yL=(L=yL)||x.memoizedState!==null,n_e(p,g,x),yL=L):n_e(p,g,x);break;default:n_e(p,g,x)}}function E2t(p){var g=p.updateQueue;if(g!==null){p.updateQueue=null;var x=p.stateNode;x===null&&(x=p.stateNode=new a6t),g.forEach(function(L){var H=g6t.bind(null,p,L);x.has(L)||(x.add(L),L.then(H,H))})}}function QV(p,g){var x=g.deletions;if(x!==null)for(var L=0;LH&&(H=ye),L&=~G}if(L=H,L=nk()-L,L=(120>L?120:480>L?480:1080>L?1080:1920>L?1920:3e3>L?3e3:4320>L?4320:1960*l6t(L/1960))-L,10p?16:p,m_e===null)var L=!1;else{if(p=m_e,m_e=null,Not=0,TT&6)throw Error(r_(331));var H=TT;for(TT|=4,Jp=p.current;Jp!==null;){var G=Jp,ye=G.child;if(Jp.flags&16){var Oe=G.deletions;if(Oe!==null){for(var ot=0;otnk()-QTt?X1e(p,0):YTt|=x),UO(p,g)}function SDt(p,g){g===0&&(p.mode&1?(g=uit,uit<<=1,!(uit&130023424)&&(uit=4194304)):g=1);var x=h8();p=Vne(p,g),p!==null&&(AVe(p,g,x),UO(p,x))}function m6t(p){var g=p.memoizedState,x=0;g!==null&&(x=g.retryLane),SDt(p,x)}function g6t(p,g){var x=0;switch(p.tag){case 13:var L=p.stateNode,H=p.memoizedState;H!==null&&(x=H.retryLane);break;case 19:L=p.stateNode;break;default:throw Error(r_(314))}L!==null&&L.delete(g),SDt(p,x)}var EDt;EDt=function(p,g,x){if(p!==null)if(p.memoizedProps!==g.pendingProps||jO.current)GO=!0;else{if(!(p.lanes&x)&&!(g.flags&128))return GO=!1,r6t(p,g,x);GO=!!(p.flags&131072)}else GO=!1,QA&&g.flags&1048576&&CCt(g,Sot,g.index);switch(g.lanes=0,g.tag){case 2:var L=g.type;Wit(p,g),p=g.pendingProps;var H=GRe(g,xL.current);NRe(g,x),H=HTt(null,g,L,p,H,x);var G=JTt();return g.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(g.tag=1,g.memoizedState=null,g.updateQueue=null,VO(L)?(G=!0,bot(g)):G=!1,g.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,zTt(g),H.updater=fat,g.stateNode=H,H._reactInternals=g,o1t(g,L,p,x),g=c1t(null,g,L,!0,G,x)):(g.tag=0,QA&&G&&RTt(g),p8(null,g,H,x),g=g.child),g;case 16:L=g.elementType;e:{switch(Wit(p,g),p=g.pendingProps,H=L._init,L=H(L._payload),g.type=L,H=g.tag=y6t(L),p=eU(L,p),H){case 0:g=s1t(null,g,L,p,x);break e;case 1:g=y2t(null,g,L,p,x);break e;case 11:g=g2t(null,g,L,p,x);break e;case 14:g=h2t(null,g,L,eU(L.type,p),x);break e}throw Error(r_(306,L,""))}return g;case 0:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:eU(L,H),s1t(p,g,L,H,x);case 1:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:eU(L,H),y2t(p,g,L,H,x);case 3:e:{if(aDt(g),p===null)throw Error(r_(387));L=g.pendingProps,G=g.memoizedState,H=G.element,PCt(p,g),Aot(g,L,null,x);var ye=g.memoizedState;if(L=ye.element,G.isDehydrated)if(G={element:L,isDehydrated:!1,cache:ye.cache,pendingSuspenseBoundaries:ye.pendingSuspenseBoundaries,transitions:ye.transitions},g.updateQueue.baseState=G,g.memoizedState=G,g.flags&256){H=HRe(Error(r_(423)),g),g=v2t(p,g,L,x,H);break e}else if(L!==H){H=HRe(Error(r_(424)),g),g=v2t(p,g,L,x,H);break e}else for(O5=E_e(g.stateNode.containerInfo.firstChild),B5=g,QA=!0,rU=null,x=MCt(g,null,L,x),g.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(jRe(),L===H){g=Une(p,g,x);break e}p8(p,g,L,x)}g=g.child}return g;case 5:return LCt(g),p===null&&n1t(g),L=g.type,H=g.pendingProps,G=p!==null?p.memoizedProps:null,ye=H.children,Ybt(L,H)?ye=null:G!==null&&Ybt(L,G)&&(g.flags|=32),oDt(p,g),p8(p,g,ye,x),g.child;case 6:return p===null&&n1t(g),null;case 13:return sDt(p,g,x);case 4:return GTt(g,g.stateNode.containerInfo),L=g.pendingProps,p===null?g.child=VRe(g,null,L,x):p8(p,g,L,x),g.child;case 11:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:eU(L,H),g2t(p,g,L,H,x);case 7:return p8(p,g,g.pendingProps,x),g.child;case 8:return p8(p,g,g.pendingProps.children,x),g.child;case 12:return p8(p,g,g.pendingProps.children,x),g.child;case 10:e:{if(L=g.type._context,H=g.pendingProps,G=g.memoizedProps,ye=H.value,Dx(Eot,L._currentValue),L._currentValue=ye,G!==null)if(uU(G.value,ye)){if(G.children===H.children&&!jO.current){g=Une(p,g,x);break e}}else for(G=g.child,G!==null&&(G.return=g);G!==null;){var Oe=G.dependencies;if(Oe!==null){ye=G.child;for(var ot=Oe.firstContext;ot!==null;){if(ot.context===L){if(G.tag===1){ot=Lne(-1,x&-x),ot.tag=2;var At=G.updateQueue;if(At!==null){At=At.shared;var sn=At.pending;sn===null?ot.next=ot:(ot.next=sn.next,sn.next=ot),At.pending=ot}}G.lanes|=x,ot=G.alternate,ot!==null&&(ot.lanes|=x),r1t(G.return,x,g),Oe.lanes|=x;break}ot=ot.next}}else if(G.tag===10)ye=G.type===g.type?null:G.child;else if(G.tag===18){if(ye=G.return,ye===null)throw Error(r_(341));ye.lanes|=x,Oe=ye.alternate,Oe!==null&&(Oe.lanes|=x),r1t(ye,x,g),ye=G.sibling}else ye=G.child;if(ye!==null)ye.return=G;else for(ye=G;ye!==null;){if(ye===g){ye=null;break}if(G=ye.sibling,G!==null){G.return=ye.return,ye=G;break}ye=ye.return}G=ye}p8(p,g,H.children,x),g=g.child}return g;case 9:return H=g.type,L=g.pendingProps.children,NRe(g,x),H=pz(H),L=L(H),g.flags|=1,p8(p,g,L,x),g.child;case 14:return L=g.type,H=eU(L,g.pendingProps),H=eU(L.type,H),h2t(p,g,L,H,x);case 15:return rDt(p,g,g.type,g.pendingProps,x);case 17:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:eU(L,H),Wit(p,g),g.tag=1,VO(L)?(p=!0,bot(g)):p=!1,NRe(g,x),wCt(g,L,H),o1t(g,L,H,x),c1t(null,g,L,!0,p,x);case 19:return cDt(p,g,x);case 22:return iDt(p,g,x)}throw Error(r_(156,g.tag))};function xDt(p,g){return XAt(p,g)}function h6t(p,g,x,L){this.tag=p,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=g,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=L,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uz(p,g,x,L){return new h6t(p,g,x,L)}function nSt(p){return p=p.prototype,!(!p||!p.isReactComponent)}function y6t(p){if(typeof p=="function")return nSt(p)?1:0;if(p!=null){if(p=p.$$typeof,p===TTt)return 11;if(p===STt)return 14}return 2}function D_e(p,g){var x=p.alternate;return x===null?(x=uz(p.tag,g,p.key,p.mode),x.elementType=p.elementType,x.type=p.type,x.stateNode=p.stateNode,x.alternate=p,p.alternate=x):(x.pendingProps=g,x.type=p.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=p.flags&14680064,x.childLanes=p.childLanes,x.lanes=p.lanes,x.child=p.child,x.memoizedProps=p.memoizedProps,x.memoizedState=p.memoizedState,x.updateQueue=p.updateQueue,g=p.dependencies,x.dependencies=g===null?null:{lanes:g.lanes,firstContext:g.firstContext},x.sibling=p.sibling,x.index=p.index,x.ref=p.ref,x}function Git(p,g,x,L,H,G){var ye=2;if(L=p,typeof p=="function")nSt(p)&&(ye=1);else if(typeof p=="string")ye=5;else e:switch(p){case _Re:return Y1e(x.children,H,G,g);case bTt:ye=8,H|=8;break;case kbt:return p=uz(12,x,g,H|2),p.elementType=kbt,p.lanes=G,p;case Pbt:return p=uz(13,x,g,H),p.elementType=Pbt,p.lanes=G,p;case Nbt:return p=uz(19,x,g,H),p.elementType=Nbt,p.lanes=G,p;case RAt:return mat(x,H,G,g);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case NAt:ye=10;break e;case wAt:ye=9;break e;case TTt:ye=11;break e;case STt:ye=14;break e;case s_e:ye=16,L=null;break e}throw Error(r_(130,p==null?p:typeof p,""))}return g=uz(ye,x,g,H),g.elementType=p,g.type=L,g.lanes=G,g}function Y1e(p,g,x,L){return p=uz(7,p,L,g),p.lanes=x,p}function mat(p,g,x,L){return p=uz(22,p,L,g),p.elementType=RAt,p.lanes=x,p.stateNode={isHidden:!1},p}function ibt(p,g,x){return p=uz(6,p,null,g),p.lanes=x,p}function obt(p,g,x){return g=uz(4,p.children!==null?p.children:[],p.key,g),g.lanes=x,g.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},g}function v6t(p,g,x,L,H){this.tag=g,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=B0t(0),this.expirationTimes=B0t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=B0t(0),this.identifierPrefix=L,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function rSt(p,g,x,L,H,G,ye,Oe,ot){return p=new v6t(p,g,x,Oe,ot),g===1?(g=1,G===!0&&(g|=8)):g=0,G=uz(3,null,null,g),p.current=G,G.stateNode=p,G.memoizedState={element:L,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},zTt(G),p}function b6t(p,g,x){var L=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IDt)}catch(p){console.error(p)}}IDt(),CAt.exports=G5;var kDt=CAt.exports,PDt,N2t=kDt;PDt=N2t.createRoot,N2t.hydrateRoot;class A6t extends ap{constructor(g,x,L){super(),this.model=g,this.render=x,this.equal=L}}class C6t extends hl.Component{constructor(g){super(g)}shouldComponentUpdate(g,x){const L=this;return!L.props.equal(L.props.model,g.model)}render(){return this.props.render()}}function D6t(p,g,x,L){const H=new A6t(x,()=>g(x,L),p);return hl.createElement(C6t,H)}const I6t=(()=>{try{return Qxt(hl.version.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function k6t(p,g,x){let L,H;return yRt(wne((L=void 0,I6t?(H=PDt(document.getElementById(g)),G=>ye=>{if(L!=null){const Oe=L;window.cancelAnimationFrame(Oe)}L=window.requestAnimationFrame(Oe=>{H.render(p(ot=>At=>ot===At,AEt(x),G,ye))})}):G=>ye=>{if(L!=null){const Oe=L;window.cancelAnimationFrame(Oe)}L=window.requestAnimationFrame(Oe=>{kDt.render(p(ot=>At=>ot===At,AEt(x),G,ye),document.getElementById(g))})})),x)}function P6t(p,g){return k6t((x,L,H,G)=>D6t(wne(x),wne(L),H,G),p,g)}function N6t(p=0,g=0,x=0,L=0,H=0){switch(arguments.length){case 1:return w6t(arguments[0]);case 3:p=0,g=arguments[0],x=arguments[1],L=arguments[2],H=0;break}return p*864e5+g*36e5+x*6e4+L*1e3+H}function w6t(p){return Number(BigInt(p)/10000n)}function Oje(p){return N6t(0,0,p)}function R6t(){let p="";for(let g=0;g++<36;)p+=g*51&52?(g^15?8^Math.random()*(g^20?16:4):4).toString(16):"-";return p}class M6t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["DangerouslySetInnerHTML","OnCut","OnPaste","OnCompositionEnd","OnCompositionStart","OnCopy","OnCompositionUpdate","OnFocus","OnBlur","OnChange","OnInput","OnSubmit","OnReset","OnLoad","OnError","OnKeyDown","OnKeyPress","OnKeyUp","OnAbort","OnCanPlay","OnCanPlayThrough","OnDurationChange","OnEmptied","OnEncrypted","OnEnded","OnLoadedData","OnLoadedMetadata","OnLoadStart","OnPause","OnPlay","OnPlaying","OnProgress","OnRateChange","OnSeeked","OnSeeking","OnStalled","OnSuspend","OnTimeUpdate","OnVolumeChange","OnWaiting","OnClick","OnContextMenu","OnDoubleClick","OnDrag","OnDragEnd","OnDragEnter","OnDragExit","OnDragLeave","OnDragOver","OnDragStart","OnDrop","OnMouseDown","OnMouseEnter","OnMouseLeave","OnMouseMove","OnMouseOut","OnMouseOver","OnMouseUp","OnSelect","OnTouchCancel","OnTouchEnd","OnTouchMove","OnTouchStart","OnScroll","OnWheel","OnAnimationStart","OnAnimationEnd","OnAnimationIteration","OnTransitionEnd","OnPointerDown","OnPointerMove","OnPointerUp","OnPointerCancel","OnPointerEnter","OnPointerLeave","OnPointerOver","OnPointerOut","OnGotPointerCapture","OnLostPointerCapture","Custom"]}}class w2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["DefaultChecked","DefaultValue","Accept","AcceptCharset","AccessKey","Action","AllowFullScreen","AllowTransparency","Alt","aria-atomic","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","Async","AutoComplete","AutoFocus","AutoPlay","Capture","CellPadding","CellSpacing","CharSet","Challenge","Checked","ClassID","ClassName","className","Cols","ColSpan","Content","ContentEditable","ContextMenu","Controls","Coords","CrossOrigin","data-toggle","DateTime","Default","Defer","Dir","Disabled","Download","Draggable","EncType","Form","FormAction","FormEncType","FormMethod","FormNoValidate","FormTarget","FrameBorder","Headers","Height","Hidden","High","Href","HrefLang","HtmlFor","HttpEquiv","Icon","Id","InputMode","Integrity","Is","KeyParams","KeyType","Kind","Label","Lang","List","Loop","Low","Manifest","MarginHeight","MarginWidth","Max","MaxLength","Media","MediaGroup","Method","Min","MinLength","Multiple","Muted","Name","NoValidate","Open","Optimum","Pattern","Placeholder","Poster","Preload","RadioGroup","ReadOnly","Rel","Required","Role","Rows","RowSpan","Sandbox","Scope","Scoped","Scrolling","Seamless","Selected","Shape","Size","Sizes","Span","SpellCheck","Src","SrcDoc","SrcLang","SrcSet","Start","Step","Summary","TabIndex","Target","Title","Type","UseMap","Value","value","Width","Wmode","Wrap","About","Datatype","Inlist","Prefix","Property","Resource","Typeof","Vocab","AutoCapitalize","AutoCorrect","AutoSave","ItemProp","ItemScope","ItemType","ItemID","ItemRef","Results","Security","Unselectable","Custom"]}}class ZI extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Ok","Error"]}}class L6t{constructor(){}}function O6t(){return new L6t}function sSt(p,g){return{then:(x,L)=>{try{return g().then(x,L)}catch(H){if(L==null)return Promise.reject(H);try{const G=L(H);return Promise.resolve(G)}catch(G){return Promise.reject(G)}}},catch:x=>{try{return g().catch(x)}catch(L){try{const H=x(L);return Promise.resolve(H)}catch(H){return Promise.reject(H)}}}}}function cSt(p,g){return g.then(x=>x)}const $Re=O6t();class NDt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Success","Warning","Error","Info"]}}class jit extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["BottomRight","BottomLeft","BottomCenter","TopRight","TopLeft","TopCenter"]}}class bat extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.Message=g,this.Title=x,this.Icon=L,this.Position=H,this.Delay=G,this.DismissOnClick=ye,this.WithCloseButton=Oe}}function F6t(){return new bat("",void 0,void 0,new jit(1,[]),Oje(3),!1,!1)}class W6t extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At){super(),this.Guid=g,this.Message=x,this.Title=L,this.Icon=H,this.Position=G,this.Delay=ye,this.Status=Oe,this.DismissOnClick=ot,this.WithCloseButton=At}}function abt(p){const g=F6t();return new bat(p,g.Title,g.Icon,g.Position,g.Delay,g.DismissOnClick,g.WithCloseButton)}function sbt(p,g){return new bat(g.Message,g.Title,g.Icon,p,g.Delay,g.DismissOnClick,g.WithCloseButton)}function cbt(p,g){return new bat(g.Message,g.Title,g.Icon,g.Position,p,g.DismissOnClick,g.WithCloseButton)}function wDt(p,g,x){const L={detail:new W6t(R6t(),p.Message,p.Title,p.Icon,p.Position,p.Delay,g,p.DismissOnClick,p.WithCloseButton)},H=new CustomEvent("thoth_elmish_toast_notify_event",L);window.dispatchEvent(H)}function B6t(p){return _l(g=>{wDt(p,new NDt(0,[]))})}function R2t(p){return _l(g=>{wDt(p,new NDt(2,[]))})}class qK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Add","Remove","UserMsg","OnError"]}}class OO extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.UserModel=g,this.Toasts_BL=x,this.Toasts_BC=L,this.Toasts_BR=H,this.Toasts_TL=G,this.Toasts_TC=ye,this.Toasts_TR=Oe}}function Zwe(p,g,x,L){const H=[new w2t(65,["toast-wrapper "+p])],G=zf(ye=>{let Oe;const ot=gz(Ns=>g.Title(Ns),ye.Title),At=lA(" ",["toast-container",ye.DismissOnClick?"dismiss-on-click":"",g.StatusToColor(ye.Status)]);let sn;const tr=ye.WithCloseButton?g.CloseButton(Ns=>{L(new qK(1,[ye]))}):void 0;sn=tr??W5();let Nt;const Ot=ye.Icon;if(Ot==null){let Ns;const ui=ot;Ns=ui??W5();const Zr=g.Message(ye.Message);Nt=g.SingleLayout(Ns,Zr)}else{const Ns=df(Ot),ui=g.Icon(Ns);let Zr;const Zi=ot;Zr=Zi??W5();const jr=g.Message(ye.Message);Nt=g.SplittedLayout(ui,Zr,jr)}const bo=Zd(cd(()=>V1(fg(new w2t(64,[At])),cd(()=>ye.DismissOnClick?fg(new M6t(40,[Ns=>{L(new qK(1,[ye]))}])):Uw())))),Yr=[(Oe=g.StatusToColor(ye.Status),g.Toast(fu([sn,Nt]),Oe))];return hl.createElement("div",fEt(bo,1),...Yr)},x);return hl.createElement("div",fEt(H,1),...G)}function z6t(p,g,x){const L=[Zwe("toast-wrapper-bottom-left",p,g.Toasts_BL,x),Zwe("toast-wrapper-bottom-center",p,g.Toasts_BC,x),Zwe("toast-wrapper-bottom-right",p,g.Toasts_BR,x),Zwe("toast-wrapper-top-left",p,g.Toasts_TL,x),Zwe("toast-wrapper-top-center",p,g.Toasts_TC,x),Zwe("toast-wrapper-top-right",p,g.Toasts_TR,x)];return hl.createElement("div",{className:"elmish-toast"},...L)}function G6t(p){const g=p.Delay;if(g==null)throw new Error("No delay attached to notification can't delayed it. `delayedCmd` should not have been called by the program");{const x=g;return cSt($Re,sSt($Re,()=>new Promise(L=>setTimeout(L,~~x)).then(()=>Promise.resolve(p))))}}function j6t(p,g){const x=new WRe(L=>{throw new Error("`onNotificationRef` has not been initialized.\nThis should not happen, please open an issue on Thoth.Elmish.Toast if the problem persist")});return AAt((L,H)=>{let G;const ye=L(H);return G=[ye[0],lz(Oe=>new qK(2,[Oe]),ye[1])],[new OO(G[0],lc(),lc(),lc(),lc(),lc(),lc()),G[1]]},(L,H,G)=>{let ye;switch(H.tag){case 0:{const Oe=H.fields[0],ot=Oe.Delay==null?_2():mTt(G6t,Oe,sn=>new qK(1,[sn]),sn=>new qK(3,[sn])),At=Oe.Position;ye=At.tag===2?[new OO(G.UserModel,G.Toasts_BL,wD(Oe,G.Toasts_BC),G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot]:At.tag===0?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,wD(Oe,G.Toasts_BR),G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot]:At.tag===4?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,wD(Oe,G.Toasts_TL),G.Toasts_TC,G.Toasts_TR),ot]:At.tag===5?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,wD(Oe,G.Toasts_TC),G.Toasts_TR),ot]:At.tag===3?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,wD(Oe,G.Toasts_TR)),ot]:[new OO(G.UserModel,wD(Oe,G.Toasts_BL),G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot];break}case 1:{const Oe=H.fields[0],ot=Oe.Position;ye=ot.tag===2?[new OO(G.UserModel,G.Toasts_BL,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BC),G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===0?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BR),G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===4?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TL),G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===5?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TC),G.Toasts_TR),_2()]:ot.tag===3?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TR)),_2()]:[new OO(G.UserModel,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BL),G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()];break}case 3:{console.error(LD(H.fields[0].message)),ye=[G,_2()];break}default:{const Oe=L(H.fields[0])(G.UserModel);ye=[new OO(Oe[0],G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),lz(ot=>new qK(2,[ot]),Oe[1])]}}return[ye[0],ye[1]]},(L,H,G)=>{const ye=[z6t(p,H,G),L(H.UserModel)(Oe=>{G(new qK(2,[Oe]))})];return hl.createElement(hl.Fragment,{},...ye)},(L,H,G)=>{L(H.UserModel)(ye=>{G(new qK(2,[ye]))})},(L,H)=>TAt(fu([_l([_l("thoth_elmish_toast_notify_event"),G=>(x.contents=ye=>{const Oe=ye;G(new qK(0,[Oe.detail]))},window.addEventListener("thoth_elmish_toast_notify_event",x.contents),{Dispose(){window.removeEventListener("thoth_elmish_toast_notify_event",x.contents)}})]),SAt("ThothElmishToastUser",G=>new qK(2,[G]),L(H.UserModel))])),L=>[H=>H.tag===2?L[0](H.fields[0]):!1,H=>{window.removeEventListener("thoth_elmish_toast_notify_event",x.contents),L[1](H.UserModel)}],g)}class cje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Change","UserMsg"]}}function V6t(p){return _l(g=>{history.pushState(void 0,"",p);const x=new CustomEvent("NavigatedEvent");window.dispatchEvent(x)})}function U6t(p,g,x){const L=new WRe(G=>{throw new Error("`onChangeRef` has not been initialized.\nThis should not happen, please open an issue if the problem persist")}),H=G=>[G[0],lz(ye=>new cje(1,[ye]),G[1])];return AAt((G,ye)=>H(G(p(window.location))),(G,ye,Oe)=>H(ye.tag===1?G(ye.fields[0])(Oe):g(p(ye.fields[0]),Oe)),(G,ye,Oe)=>G(ye)(ot=>{Oe(new cje(1,[ot]))}),(G,ye,Oe)=>{G(ye)(ot=>{Oe(new cje(1,[ot]))})},(G,ye)=>TAt(fu([_l([_l("onLocationChange"),Oe=>{let ot;return L.contents=At=>{let sn;switch(ot!=null&&ot===window.location.href?sn=0:sn=1,sn){case 0:break;case 1:{ot=window.location.href,Oe(new cje(0,[window.location]));break}}},window.addEventListener("popstate",L.contents),window.addEventListener("hashchange",L.contents),window.addEventListener("NavigatedEvent",L.contents),{Dispose(){window.removeEventListener("popstate",L.contents),window.removeEventListener("hashchange",L.contents),window.removeEventListener("NavigatedEvent",L.contents)}}}]),SAt("user",Oe=>new cje(1,[Oe]),G(ye))])),G=>[ye=>ye.tag===1?G[0](ye.fields[0]):!1,ye=>{window.removeEventListener("popstate",L.contents),window.removeEventListener("hashchange",L.contents),window.removeEventListener("NavigatedEvent",L.contents),G[1](ye)}],x)}class RDt{constructor(g,x){this.k=g,this.v=x}}function Mot(p,g){return new RDt(p,g)}function rk(p){return p.k}function jw(p){return p.v}class tk extends RDt{constructor(g,x,L,H,G){super(g,x),this.left=L,this.right=H,this.h=G|0}}function Vit(p,g,x,L,H){return new tk(p,g,x,L,H)}function PD(p){return p.left}function ND(p){return p.right}function U1e(p){return p.h}function MDt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof tk){const G=H;p=MDt(x+1,PD(G)),g=ND(G);continue e}else return x+1|0}else return x|0}}function H6t(p){return MDt(0,p)}function P5(p,g,x,L){let H,G,ye;const Oe=p;if(Oe!=null){const tr=df(Oe);ye=tr instanceof tk?(H=tr,U1e(H)):1}else ye=0;let ot;const At=L;if(At!=null){const tr=df(At);ot=tr instanceof tk?(G=tr,U1e(G)):1}else ot=0;const sn=(yeNt+2){const Ns=df(L);if(Ns instanceof tk){const ui=Ns;if(ye=PD(ui),(ye!=null?(Oe=df(ye),Oe instanceof tk?(ot=Oe,U1e(ot)):1):0)>Nt+1){const Zr=df(PD(ui));if(Zr instanceof tk){const Zi=Zr;return P5(P5(p,g,x,PD(Zi)),rk(Zi),jw(Zi),P5(ND(Zi),rk(ui),jw(ui),ND(ui)))}else throw new Error("internal error: Map.rebalance")}else return P5(P5(p,g,x,PD(ui)),rk(ui),jw(ui),ND(ui))}else throw new Error("internal error: Map.rebalance")}else if(Nt>bo+2){const Ns=df(p);if(Ns instanceof tk){const ui=Ns;if(At=ND(ui),(At!=null?(sn=df(At),sn instanceof tk?(tr=sn,U1e(tr)):1):0)>bo+1){const Zr=df(ND(ui));if(Zr instanceof tk){const Zi=Zr;return P5(P5(PD(ui),rk(ui),jw(ui),PD(Zi)),rk(Zi),jw(Zi),P5(ND(Zi),g,x,L))}else throw new Error("internal error: Map.rebalance")}else return P5(PD(ui),rk(ui),jw(ui),P5(ND(ui),g,x,L))}else throw new Error("internal error: Map.rebalance")}else return P5(p,g,x,L)}function qRe(p,g,x,L){if(L!=null){const H=df(L),G=p.Compare(g,rk(H))|0;if(H instanceof tk){const ye=H;return G<0?Lot(qRe(p,g,x,PD(ye)),rk(ye),jw(ye),ND(ye)):G===0?Vit(g,x,PD(ye),ND(ye),U1e(ye)):Lot(PD(ye),rk(ye),jw(ye),qRe(p,g,x,ND(ye)))}else return G<0?Vit(g,x,void 0,L,2):G===0?Mot(g,x):Vit(g,x,L,void 0,2)}else return Mot(g,x)}function LDt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,rk(ye))|0;if(Oe===0)return LD(jw(ye));if(ye instanceof tk){const ot=ye;p=L,g=H,x=Oe<0?PD(ot):ND(ot);continue e}else return}else return}}function J6t(p,g,x){const L=LDt(p,g,x);if(L==null)throw new Error;return df(L)}function ODt(p){if(p!=null){const g=df(p);if(g instanceof tk){const x=g;if(PD(x)==null)return[rk(x),jw(x),ND(x)];{const L=ODt(PD(x));return[L[0],L[1],P5(L[2],rk(x),jw(x),ND(x))]}}else return[rk(g),jw(g),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function b1t(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,rk(L))|0;if(L instanceof tk){const G=L;if(H<0)return Lot(b1t(p,g,PD(G)),rk(G),jw(G),ND(G));if(H===0){if(PD(G)==null)return ND(G);if(ND(G)==null)return PD(G);{const ye=ODt(ND(G));return P5(PD(G),ye[0],ye[1],ye[2])}}else return Lot(PD(G),rk(G),jw(G),b1t(p,g,ND(G)))}else return H===0?void 0:x}else return void 0}function $6t(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,rk(ye))|0;if(ye instanceof tk){const ot=ye;if(Oe<0){p=L,g=H,x=PD(ot);continue e}else{if(Oe===0)return!0;p=L,g=H,x=ND(ot);continue e}}else return Oe===0}else return!1}}function FDt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof tk){const G=H;FDt(x,PD(G)),x(rk(G),jw(G)),p=x,g=ND(G);continue e}else x(rk(H),jw(H))}break}}function q6t(p,g){FDt(p,g)}function K6t(p,g,x){let L=x;q6t((H,G)=>{Wne(g,L,[H,G]),L=L+1|0},p)}function X6t(p,g){return HO((x,L)=>qRe(p,L[0],L[1],x),void 0,g)}function Y6t(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G["System.Collections.IEnumerator.MoveNext"]()){const ye=G["System.Collections.Generic.IEnumerator`1.get_Current"]();p=L,g=qRe(L,ye[0],ye[1],H),x=G;continue e}else return H}}function Q6t(p,g){let x=void 0;for(let L=0;L<=g.length-1;L++){const H=Dne(L,g);x=qRe(p,H[0],H[1],x)}return x}function Z6t(p,g){if(tX(g))return Q6t(p,g);if(g instanceof TL)return X6t(p,g);{const x=Ix(g);try{return Y6t(p,void 0,x)}finally{d2(x)}}}class eLt extends ap{constructor(g,x){super(),this.stack=g,this.started=x}}function WDt(p){e:for(;;){const g=p;if(yd(g))return lc();{const x=Ay(g),L=Hp(g);if(L!=null){const H=df(L);if(H instanceof tk){const G=H;p=wC([PD(G),Mot(rk(G),jw(G)),ND(G)],x);continue e}else return g}else{p=x;continue e}}}}function M2t(p){return new eLt(WDt(_l(p)),!1)}function tLt(){throw new Error("enumeration not started")}function nLt(){throw new Error("enumeration already finished")}function L2t(p){if(p.started){const g=p.stack;if(yd(g))return nLt();if(Hp(g)!=null){const x=df(Hp(g));if(x instanceof tk)throw new Error("Please report error: Map iterator, unexpected stack for current");return[rk(x),jw(x)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return tLt()}function rLt(p){if(p.started){const g=p.stack;if(yd(g))return!1;if(Hp(g)!=null){if(df(Hp(g))instanceof tk)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return p.stack=WDt(Ay(g)),!yd(p.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return p.started=!0,!yd(p.stack)}function O2t(p){let g=M2t(p);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return L2t(g)},"System.Collections.IEnumerator.get_Current"(){return L2t(g)},"System.Collections.IEnumerator.MoveNext"(){return rLt(g)},"System.Collections.IEnumerator.Reset"(){g=M2t(p)},Dispose(){}}}class Oot{constructor(g,x){this.comparer=g,this.tree=x}GetHashCode(){return cLt(this)|0}Equals(g){const x=this;if(g instanceof Oot){const L=g,H=Ix(x);try{const G=Ix(L);try{const ye=()=>{const Oe=H["System.Collections.IEnumerator.MoveNext"]();if(Oe===G["System.Collections.IEnumerator.MoveNext"]())if(Oe){const ot=H["System.Collections.Generic.IEnumerator`1.get_Current"](),At=G["System.Collections.Generic.IEnumerator`1.get_Current"]();return g8(ot[0],At[0])&&g8(ot[1],At[1])?ye():!1}else return!0;else return!1};return ye()}finally{d2(G)}}finally{d2(H)}}else return!1}toString(){return"map ["+lA("; ",zO(x=>mNt("({0}, {1})",x[0],x[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const g=this;return Array.from(g)}GetEnumerator(){return O2t(this.tree)}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return O2t(this.tree)}CompareTo(g){const x=this;if(g instanceof Oot)return Nwt((H,G)=>{const ye=x.comparer.Compare(H[0],G[0])|0;return(ye!==0?ye:rX(H[1],G[1]))|0},x,g)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(g){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(g){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(g){const x=this;return W2t(x,g[0])&&g8(F2t(x,g[0]),g[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){K6t(this.tree,g,x)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return lbt(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return lbt(this)|0}get size(){return lbt(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(g){throw new Error("Map cannot be mutated")}entries(){return zO(x=>[x[0],x[1]],this)}get(g){return F2t(this,g)}has(g){return W2t(this,g)}keys(){return zO(x=>x[0],this)}set(g,x){throw new Error("Map cannot be mutated")}values(){return zO(x=>x[1],this)}forEach(g,x){const L=this;nat(H=>{g(H[1],H[0],L)},L)}}function Tat(p,g){return new Oot(p,g)}function iLt(p){return Tat(p,void 0)}function oLt(p,g,x){return Tat(p.comparer,qRe(p.comparer,g,x,p.tree))}function F2t(p,g){return J6t(p.comparer,g,p.tree)}function lbt(p){return H6t(p.tree)}function W2t(p,g){return $6t(p.comparer,g,p.tree)}function aLt(p,g){return Tat(p.comparer,b1t(p.comparer,g,p.tree))}function sLt(p,g){return LDt(p.comparer,g,p.tree)}function cLt(p){const g=(H,G)=>(H<<1)+G+631;let x=0;const L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();x=g(x,nX(H[0]))|0,x=g(x,nX(H[1]))|0}}finally{d2(L)}return x|0}function BDt(p,g,x){return oLt(x,p,g)}function lSt(p,g){return sLt(g,p)}function lLt(p,g){return aLt(g,p)}function uLt(p,g){return Tat(g,Z6t(g,p))}function uSt(p){return iLt(p)}function B2t(p,g){let x,L,H;switch(p!=null&&g!=null?(x=0,L=df(p),H=df(g)):x=1,x){case 0:return[L,H];default:return}}function ubt(p,g){try{return LD(p(g))}catch{return}}class Sat extends ap{constructor(g,x,L,H){super(),this.visited=g,this.unvisited=x,this.args=L,this.value=H}}function zDt(p,g,x,L){return new Sat(p,g,x,L)}function fLt(p,g){return new Sat(g.visited,g.unvisited,g.args,p(g.value))}function eRe(p){return g=>{const x=g.unvisited;if(yd(x))return lc();{const L=Hp(x);return L===p?_l(zDt(wD(L,g.visited),Ay(x),g.args,g.value)):lc()}}}function Sit(p,g){return x=>zf(L=>fLt(x.value,L),g(new Sat(x.visited,x.unvisited,x.args,p)))}function _Lt(p,g){return rz(x=>x(g),p)}function dLt(p){return _l(p)}function pLt(p,g){return x=>{const L=x.args;return _l(zDt(x.visited,x.unvisited,L,x.value(g(lSt(p,L)))))}}function mLt(p){e:for(;;){const g=p;if(yd(g))return;{const x=Hp(g),L=x.unvisited;let H;switch(yd(L)?H=0:Hp(L)===""&&yd(Ay(L))?H=1:H=2,H){case 0:return LD(x.value);case 1:return LD(x.value);default:{p=Ay(g);continue e}}}}}function gLt(p){const g=fu(p.split("/"));let x,L,H;switch(yd(g)?(x=1,H=g):Hp(g)===""?(x=0,L=Ay(g)):(x=1,H=g),x){case 0:return L;default:return H}}function hLt(p,g,x){return mLt(p(new Sat(lc(),gLt(g),x,L=>L)))}function yLt(p){let g;const x=p.split("=");let L;switch(!iEt((H,G)=>H===G,x,W5())&&x.length===2?L=0:!iEt((H,G)=>H===G,x,W5())&&x.length===1?(g=Dne(0,x),p.indexOf(g)===0?L=1:L=2):L=2,L){case 0:{const H=Dne(1,x);return B2t(ubt(decodeURIComponent,Dne(0,x)),ubt(decodeURIComponent,H))}case 1:return B2t(ubt(decodeURIComponent,Dne(0,x)),"");default:return}}function vLt(p){if(jje(p))return uSt({Compare:lU});{const g=p.indexOf("?")===0?ARe(p,1):p;return uLt(oMe(x=>x,zO(yLt,g.split("&"))),{Compare:lU})}}function bLt(p,g){let x;const L=g.hash.length>1?ARe(g.hash,1):"",H=L.indexOf("?")|0;return x=H>=0?[ARe(L,0,H),vLt(ARe(L,H+1))]:[L,uSt({Compare:lU})],hLt(p,x[0],x[1])}var fSt={exports:{}};fSt.exports;(function(p){var g=function(){var x=String.fromCharCode,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",G={};function ye(ot,At){if(!G[ot]){G[ot]={};for(var sn=0;sn>>8,sn[tr*2+1]=Ot%256}return sn},decompressFromUint8Array:function(ot){if(ot==null)return Oe.decompress(ot);for(var At=new Array(ot.length/2),sn=0,tr=At.length;sn>1}else{for(Nt=1,tr=0;tr>1}Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),delete bo[ui]}else for(Nt=Ot[ui],tr=0;tr>1;Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),Ot[Ns]=Zi++,ui=String(Yr)}if(ui!==""){if(Object.prototype.hasOwnProperty.call(bo,ui)){if(ui.charCodeAt(0)<256){for(tr=0;tr>1}else{for(Nt=1,tr=0;tr>1}Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),delete bo[ui]}else for(Nt=Ot[ui],tr=0;tr>1;Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++)}for(Nt=2,tr=0;tr>1;for(;;)if(ra=ra<<1,Ho==At-1){lr.push(sn(ra));break}else Ho++;return lr.join("")},decompress:function(ot){return ot==null?"":ot==""?null:Oe._decompress(ot.length,32768,function(At){return ot.charCodeAt(At)})},_decompress:function(ot,At,sn){var tr=[],Nt=4,Ot=4,bo=3,Yr="",Ns=[],ui,Zr,Zi,jr,lr,ra,Ho,Ms={val:sn(0),position:At,index:1};for(ui=0;ui<3;ui+=1)tr[ui]=ui;for(Zi=0,lr=Math.pow(2,2),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;switch(Zi){case 0:for(Zi=0,lr=Math.pow(2,8),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;Ho=x(Zi);break;case 1:for(Zi=0,lr=Math.pow(2,16),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;Ho=x(Zi);break;case 2:return""}for(tr[3]=Ho,Zr=Ho,Ns.push(Ho);;){if(Ms.index>ot)return"";for(Zi=0,lr=Math.pow(2,bo),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;switch(Ho=Zi){case 0:for(Zi=0,lr=Math.pow(2,8),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;tr[Ot++]=x(Zi),Ho=Ot-1,Nt--;break;case 1:for(Zi=0,lr=Math.pow(2,16),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;tr[Ot++]=x(Zi),Ho=Ot-1,Nt--;break;case 2:return Ns.join("")}if(Nt==0&&(Nt=Math.pow(2,bo),bo++),tr[Ho])Yr=tr[Ho];else if(Ho===Ot)Yr=Zr+Zr.charAt(0);else return null;Ns.push(Yr),tr[Ot++]=Zr+Yr.charAt(0),Nt--,Zr=Yr,Nt==0&&(Nt=Math.pow(2,bo),bo++)}}};return Oe}();p!=null?p.exports=g:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return g})})(fSt);var Uit=fSt.exports;class H1e extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["FSharpCode","GlueAST","FSharpAST"]}}function TLt(p){switch(p.tag){case 1:{const g=p.fields[0];return g==null?"glue-ast":"glue-ast?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}case 2:{const g=p.fields[0];return g==null?"fsharp-ast":"fsharp-ast?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}default:{const g=p.fields[0];return g==null?"fsharp-code":"fsharp-code?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}}}class J1e extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["Editors"]}}function SLt(p){return"editors/"+TLt(p.fields[0])}function _St(p){return"#/"+SLt(p)}function fbt(p){return pLt(p,g=>gz(Uit.decompressFromEncodedURIComponent,g))}const ELt=(()=>{let p,g,x,L,H,G,ye,Oe,ot,At,sn,tr;const Nt=fu([Sit(Ot=>new J1e(new H1e(0,[Ot])),(p=(g=eRe("editors"),x=eRe("fsharp-code"),Ot=>rz(x,g(Ot))),L=fbt("typeScriptCode"),Ot=>rz(L,p(Ot)))),Sit(Ot=>new J1e(new H1e(1,[Ot])),(H=(G=eRe("editors"),ye=eRe("glue-ast"),Ot=>rz(ye,G(Ot))),Oe=fbt("typeScriptCode"),Ot=>rz(Oe,H(Ot)))),Sit(Ot=>new J1e(new H1e(2,[Ot])),(ot=(At=eRe("editors"),sn=eRe("fsharp-ast"),Ot=>rz(sn,At(Ot))),tr=fbt("typeScriptCode"),Ot=>rz(tr,ot(Ot)))),Sit(new J1e(new H1e(0,[void 0])),dLt)]);return Ot=>_Lt(Nt,Ot)})();function xLt(p){return["href",_St(p)]}function ALt(p){return V6t(_St(p))}const CLt={"panel-container":"_panel-container_1pp7f_2","right-panel":"_right-panel_1pp7f_14","horizontal-divider":"_horizontal-divider_1pp7f_28"};class Fot extends ap{constructor(g){super(),this.PendingMessages=g}}function DLt(){return new Fot(uSt({Compare:lU}))}class z2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Timeout","OnError"]}}function ILt(p,g,x,L){return[new Fot(BDt(g,bL(gz(H=>1+H,lSt(g,L.PendingMessages)),1),L.PendingMessages)),mTt(()=>cSt($Re,sSt($Re,()=>new Promise(H=>setTimeout(H,~~p)).then(()=>Promise.resolve([g,x])))),void 0,H=>new z2t(0,[H[0],H[1]]),H=>new z2t(1,[H]))]}function kLt(p,g){if(p.tag===0){const x=p.fields[0],L=bL(lSt(x,g.PendingMessages),0)-1|0;return L===0?[new Fot(lLt(x,g.PendingMessages)),_l(H=>{H(p.fields[1])})]:L>0?[new Fot(BDt(x,L,g.PendingMessages)),_2()]:(console.warn(LD("Invalid debouncer state: there was no state information for the supplier id")),[g,_2()])}else return console.error(LD(p.fields[0].message)),[g,_2()]}let G2t=class extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Success","Error"]}};var GDt={},jDt={};function Wot(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var VDt={exports:{}};const PLt={},NLt=Object.freeze(Object.defineProperty({__proto__:null,default:PLt},Symbol.toStringTag,{value:"Module"})),MC=TPt(NLt);(function(p){var g={};/*! ***************************************************************************** +`+G.stack}return{value:p,source:g,stack:H,digest:null}}function nbt(p,g,x){return{value:p,source:null,stack:x??null,digest:g??null}}function o1t(p,g){try{console.error(g.value)}catch(x){setTimeout(function(){throw x})}}var e6t=typeof WeakMap=="function"?WeakMap:Map;function eDt(p,g,x){x=Lne(-1,x),x.tag=3,x.payload={element:null};var L=g.value;return x.callback=function(){Pot||(Pot=!0,m1t=L),o1t(p,g)},x}function tDt(p,g,x){x=Lne(-1,x),x.tag=3;var L=p.type.getDerivedStateFromError;if(typeof L=="function"){var H=g.value;x.payload=function(){return L(H)},x.callback=function(){o1t(p,g)}}var G=p.stateNode;return G!==null&&typeof G.componentDidCatch=="function"&&(x.callback=function(){o1t(p,g),typeof L!="function"&&(A_e===null?A_e=new Set([this]):A_e.add(this));var ye=g.stack;this.componentDidCatch(g.value,{componentStack:ye!==null?ye:""})}),x}function _2t(p,g,x){var L=p.pingCache;if(L===null){L=p.pingCache=new e6t;var H=new Set;L.set(g,H)}else H=L.get(g),H===void 0&&(H=new Set,L.set(g,H));H.has(x)||(H.add(x),p=p6t.bind(null,p,g,x),g.then(p,p))}function d2t(p){do{var g;if((g=p.tag===13)&&(g=p.memoizedState,g=g!==null?g.dehydrated!==null:!0),g)return p;p=p.return}while(p!==null);return null}function p2t(p,g,x,L,H){return p.mode&1?(p.flags|=65536,p.lanes=H,p):(p===g?p.flags|=65536:(p.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(g=Lne(-1,1),g.tag=2,x_e(x,g,1))),x.lanes|=1),p)}var t6t=Jne.ReactCurrentOwner,GO=!1;function d8(p,g,x,L){g.child=p===null?RCt(g,null,x,L):VRe(g,p.child,x,L)}function m2t(p,g,x,L,H){x=x.render;var G=g.ref;return NRe(g,H),L=UTt(p,g,x,L,G,H),x=HTt(),p!==null&&!GO?(g.updateQueue=p.updateQueue,g.flags&=-2053,p.lanes&=~H,Une(p,g,H)):(QA&&x&&wTt(g),g.flags|=1,d8(p,g,L,H),g.child)}function g2t(p,g,x,L,H){if(p===null){var G=x.type;return typeof G=="function"&&!tSt(G)&&G.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(g.tag=15,g.type=G,nDt(p,g,G,L,H)):(p=Git(x.type,null,L,g,g.mode,H),p.ref=g.ref,p.return=g,g.child=p)}if(G=p.child,!(p.lanes&H)){var ye=G.memoizedProps;if(x=x.compare,x=x!==null?x:Zje,x(ye,L)&&p.ref===g.ref)return Une(p,g,H)}return g.flags|=1,p=D_e(G,L),p.ref=g.ref,p.return=g,g.child=p}function nDt(p,g,x,L,H){if(p!==null){var G=p.memoizedProps;if(Zje(G,L)&&p.ref===g.ref)if(GO=!1,g.pendingProps=L=G,(p.lanes&H)!==0)p.flags&131072&&(GO=!0);else return g.lanes=p.lanes,Une(p,g,H)}return a1t(p,g,x,L,H)}function rDt(p,g,x){var L=g.pendingProps,H=L.children,G=p!==null?p.memoizedState:null;if(L.mode==="hidden")if(!(g.mode&1))g.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dx(SRe,R5),R5|=x;else{if(!(x&1073741824))return p=G!==null?G.baseLanes|x:x,g.lanes=g.childLanes=1073741824,g.memoizedState={baseLanes:p,cachePool:null,transitions:null},g.updateQueue=null,Dx(SRe,R5),R5|=p,null;g.memoizedState={baseLanes:0,cachePool:null,transitions:null},L=G!==null?G.baseLanes:x,Dx(SRe,R5),R5|=L}else G!==null?(L=G.baseLanes|x,g.memoizedState=null):L=x,Dx(SRe,R5),R5|=L;return d8(p,g,H,x),g.child}function iDt(p,g){var x=g.ref;(p===null&&x!==null||p!==null&&p.ref!==x)&&(g.flags|=512,g.flags|=2097152)}function a1t(p,g,x,L,H){var G=VO(x)?iTe:EL.current;return G=GRe(g,G),NRe(g,H),x=UTt(p,g,x,L,G,H),L=HTt(),p!==null&&!GO?(g.updateQueue=p.updateQueue,g.flags&=-2053,p.lanes&=~H,Une(p,g,H)):(QA&&L&&wTt(g),g.flags|=1,d8(p,g,x,H),g.child)}function h2t(p,g,x,L,H){if(VO(x)){var G=!0;bot(g)}else G=!1;if(NRe(g,H),g.stateNode===null)Wit(p,g),NCt(g,x,L),i1t(g,x,L,H),L=!0;else if(p===null){var ye=g.stateNode,Oe=g.memoizedProps;ye.props=Oe;var ot=ye.context,At=x.contextType;typeof At=="object"&&At!==null?At=pz(At):(At=VO(x)?iTe:EL.current,At=GRe(g,At));var sn=x.getDerivedStateFromProps,tr=typeof sn=="function"||typeof ye.getSnapshotBeforeUpdate=="function";tr||typeof ye.UNSAFE_componentWillReceiveProps!="function"&&typeof ye.componentWillReceiveProps!="function"||(Oe!==L||ot!==At)&&c2t(g,ye,L,At),c_e=!1;var Nt=g.memoizedState;ye.state=Nt,Aot(g,L,ye,H),ot=g.memoizedState,Oe!==L||Nt!==ot||jO.current||c_e?(typeof sn=="function"&&(r1t(g,x,sn,L),ot=g.memoizedState),(Oe=c_e||s2t(g,x,Oe,L,Nt,ot,At))?(tr||typeof ye.UNSAFE_componentWillMount!="function"&&typeof ye.componentWillMount!="function"||(typeof ye.componentWillMount=="function"&&ye.componentWillMount(),typeof ye.UNSAFE_componentWillMount=="function"&&ye.UNSAFE_componentWillMount()),typeof ye.componentDidMount=="function"&&(g.flags|=4194308)):(typeof ye.componentDidMount=="function"&&(g.flags|=4194308),g.memoizedProps=L,g.memoizedState=ot),ye.props=L,ye.state=ot,ye.context=At,L=Oe):(typeof ye.componentDidMount=="function"&&(g.flags|=4194308),L=!1)}else{ye=g.stateNode,kCt(p,g),Oe=g.memoizedProps,At=g.type===g.elementType?Oe:ZV(g.type,Oe),ye.props=At,tr=g.pendingProps,Nt=ye.context,ot=x.contextType,typeof ot=="object"&&ot!==null?ot=pz(ot):(ot=VO(x)?iTe:EL.current,ot=GRe(g,ot));var Ot=x.getDerivedStateFromProps;(sn=typeof Ot=="function"||typeof ye.getSnapshotBeforeUpdate=="function")||typeof ye.UNSAFE_componentWillReceiveProps!="function"&&typeof ye.componentWillReceiveProps!="function"||(Oe!==tr||Nt!==ot)&&c2t(g,ye,L,ot),c_e=!1,Nt=g.memoizedState,ye.state=Nt,Aot(g,L,ye,H);var bo=g.memoizedState;Oe!==tr||Nt!==bo||jO.current||c_e?(typeof Ot=="function"&&(r1t(g,x,Ot,L),bo=g.memoizedState),(At=c_e||s2t(g,x,At,L,Nt,bo,ot)||!1)?(sn||typeof ye.UNSAFE_componentWillUpdate!="function"&&typeof ye.componentWillUpdate!="function"||(typeof ye.componentWillUpdate=="function"&&ye.componentWillUpdate(L,bo,ot),typeof ye.UNSAFE_componentWillUpdate=="function"&&ye.UNSAFE_componentWillUpdate(L,bo,ot)),typeof ye.componentDidUpdate=="function"&&(g.flags|=4),typeof ye.getSnapshotBeforeUpdate=="function"&&(g.flags|=1024)):(typeof ye.componentDidUpdate!="function"||Oe===p.memoizedProps&&Nt===p.memoizedState||(g.flags|=4),typeof ye.getSnapshotBeforeUpdate!="function"||Oe===p.memoizedProps&&Nt===p.memoizedState||(g.flags|=1024),g.memoizedProps=L,g.memoizedState=bo),ye.props=L,ye.state=bo,ye.context=ot,L=At):(typeof ye.componentDidUpdate!="function"||Oe===p.memoizedProps&&Nt===p.memoizedState||(g.flags|=4),typeof ye.getSnapshotBeforeUpdate!="function"||Oe===p.memoizedProps&&Nt===p.memoizedState||(g.flags|=1024),L=!1)}return s1t(p,g,x,L,G,H)}function s1t(p,g,x,L,H,G){iDt(p,g);var ye=(g.flags&128)!==0;if(!L&&!ye)return H&&n2t(g,x,!1),Une(p,g,G);L=g.stateNode,t6t.current=g;var Oe=ye&&typeof x.getDerivedStateFromError!="function"?null:L.render();return g.flags|=1,p!==null&&ye?(g.child=VRe(g,p.child,null,G),g.child=VRe(g,null,Oe,G)):d8(p,g,Oe,G),g.memoizedState=L.state,H&&n2t(g,x,!0),g.child}function oDt(p){var g=p.stateNode;g.pendingContext?t2t(p,g.pendingContext,g.pendingContext!==g.context):g.context&&t2t(p,g.context,!1),zTt(p,g.containerInfo)}function y2t(p,g,x,L,H){return jRe(),MTt(H),g.flags|=256,d8(p,g,x,L),g.child}var c1t={dehydrated:null,treeContext:null,retryLane:0};function l1t(p){return{baseLanes:p,cachePool:null,transitions:null}}function aDt(p,g,x){var L=g.pendingProps,H=LC.current,G=!1,ye=(g.flags&128)!==0,Oe;if((Oe=ye)||(Oe=p!==null&&p.memoizedState===null?!1:(H&2)!==0),Oe?(G=!0,g.flags&=-129):(p===null||p.memoizedState!==null)&&(H|=1),Dx(LC,H&1),p===null)return t1t(g),p=g.memoizedState,p!==null&&(p=p.dehydrated,p!==null)?(g.mode&1?p.data==="$!"?g.lanes=8:g.lanes=1073741824:g.lanes=1,null):(ye=L.children,p=L.fallback,G?(L=g.mode,G=g.child,ye={mode:"hidden",children:ye},!(L&1)&&G!==null?(G.childLanes=0,G.pendingProps=ye):G=mat(ye,L,0,null),p=Y1e(p,L,x,null),G.return=g,p.return=g,G.sibling=p,g.child=G,g.child.memoizedState=l1t(x),g.memoizedState=c1t,p):qTt(g,ye));if(H=p.memoizedState,H!==null&&(Oe=H.dehydrated,Oe!==null))return n6t(p,g,ye,L,Oe,H,x);if(G){G=L.fallback,ye=g.mode,H=p.child,Oe=H.sibling;var ot={mode:"hidden",children:L.children};return!(ye&1)&&g.child!==H?(L=g.child,L.childLanes=0,L.pendingProps=ot,g.deletions=null):(L=D_e(H,ot),L.subtreeFlags=H.subtreeFlags&14680064),Oe!==null?G=D_e(Oe,G):(G=Y1e(G,ye,x,null),G.flags|=2),G.return=g,L.return=g,L.sibling=G,g.child=L,L=G,G=g.child,ye=p.child.memoizedState,ye=ye===null?l1t(x):{baseLanes:ye.baseLanes|x,cachePool:null,transitions:ye.transitions},G.memoizedState=ye,G.childLanes=p.childLanes&~x,g.memoizedState=c1t,L}return G=p.child,p=G.sibling,L=D_e(G,{mode:"visible",children:L.children}),!(g.mode&1)&&(L.lanes=x),L.return=g,L.sibling=null,p!==null&&(x=g.deletions,x===null?(g.deletions=[p],g.flags|=16):x.push(p)),g.child=L,g.memoizedState=null,L}function qTt(p,g){return g=mat({mode:"visible",children:g},p.mode,0,null),g.return=p,p.child=g}function yit(p,g,x,L){return L!==null&&MTt(L),VRe(g,p.child,null,x),p=qTt(g,g.pendingProps.children),p.flags|=2,g.memoizedState=null,p}function n6t(p,g,x,L,H,G,ye){if(x)return g.flags&256?(g.flags&=-257,L=nbt(Error(r_(422))),yit(p,g,ye,L)):g.memoizedState!==null?(g.child=p.child,g.flags|=128,null):(G=L.fallback,H=g.mode,L=mat({mode:"visible",children:L.children},H,0,null),G=Y1e(G,H,ye,null),G.flags|=2,L.return=g,G.return=g,L.sibling=G,g.child=L,g.mode&1&&VRe(g,p.child,null,ye),g.child.memoizedState=l1t(ye),g.memoizedState=c1t,G);if(!(g.mode&1))return yit(p,g,ye,null);if(H.data==="$!"){if(L=H.nextSibling&&H.nextSibling.dataset,L)var Oe=L.dgst;return L=Oe,G=Error(r_(419)),L=nbt(G,L,void 0),yit(p,g,ye,L)}if(Oe=(ye&p.childLanes)!==0,GO||Oe){if(L=Hw,L!==null){switch(ye&-ye){case 4:H=2;break;case 16:H=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:H=32;break;case 536870912:H=268435456;break;default:H=0}H=H&(L.suspendedLanes|ye)?0:H,H!==0&&H!==G.retryLane&&(G.retryLane=H,Vne(p,H),sU(L,p,H,-1))}return eSt(),L=nbt(Error(r_(421))),yit(p,g,ye,L)}return H.data==="$?"?(g.flags|=128,g.child=p.child,g=m6t.bind(null,p),H._reactRetry=g,null):(p=G.treeContext,O5=E_e(H.nextSibling),B5=g,QA=!0,nU=null,p!==null&&(iz[oz++]=Ine,iz[oz++]=kne,iz[oz++]=oTe,Ine=p.id,kne=p.overflow,oTe=g),g=qTt(g,L.children),g.flags|=4096,g)}function v2t(p,g,x){p.lanes|=g;var L=p.alternate;L!==null&&(L.lanes|=g),n1t(p.return,g,x)}function rbt(p,g,x,L,H){var G=p.memoizedState;G===null?p.memoizedState={isBackwards:g,rendering:null,renderingStartTime:0,last:L,tail:x,tailMode:H}:(G.isBackwards=g,G.rendering=null,G.renderingStartTime=0,G.last=L,G.tail=x,G.tailMode=H)}function sDt(p,g,x){var L=g.pendingProps,H=L.revealOrder,G=L.tail;if(d8(p,g,L.children,x),L=LC.current,L&2)L=L&1|2,g.flags|=128;else{if(p!==null&&p.flags&128)e:for(p=g.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&v2t(p,x,g);else if(p.tag===19)v2t(p,x,g);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===g)break e;for(;p.sibling===null;){if(p.return===null||p.return===g)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}L&=1}if(Dx(LC,L),!(g.mode&1))g.memoizedState=null;else switch(H){case"forwards":for(x=g.child,H=null;x!==null;)p=x.alternate,p!==null&&Cot(p)===null&&(H=x),x=x.sibling;x=H,x===null?(H=g.child,g.child=null):(H=x.sibling,x.sibling=null),rbt(g,!1,H,x,G);break;case"backwards":for(x=null,H=g.child,g.child=null;H!==null;){if(p=H.alternate,p!==null&&Cot(p)===null){g.child=H;break}p=H.sibling,H.sibling=x,x=H,H=p}rbt(g,!0,x,null,G);break;case"together":rbt(g,!1,null,null,void 0);break;default:g.memoizedState=null}return g.child}function Wit(p,g){!(g.mode&1)&&p!==null&&(p.alternate=null,g.alternate=null,g.flags|=2)}function Une(p,g,x){if(p!==null&&(g.dependencies=p.dependencies),sTe|=g.lanes,!(x&g.childLanes))return null;if(p!==null&&g.child!==p.child)throw Error(r_(153));if(g.child!==null){for(p=g.child,x=D_e(p,p.pendingProps),g.child=x,x.return=g;p.sibling!==null;)p=p.sibling,x=x.sibling=D_e(p,p.pendingProps),x.return=g;x.sibling=null}return g.child}function r6t(p,g,x){switch(g.tag){case 3:oDt(g),jRe();break;case 5:MCt(g);break;case 1:VO(g.type)&&bot(g);break;case 4:zTt(g,g.stateNode.containerInfo);break;case 10:var L=g.type._context,H=g.memoizedProps.value;Dx(Eot,L._currentValue),L._currentValue=H;break;case 13:if(L=g.memoizedState,L!==null)return L.dehydrated!==null?(Dx(LC,LC.current&1),g.flags|=128,null):x&g.child.childLanes?aDt(p,g,x):(Dx(LC,LC.current&1),p=Une(p,g,x),p!==null?p.sibling:null);Dx(LC,LC.current&1);break;case 19:if(L=(x&g.childLanes)!==0,p.flags&128){if(L)return sDt(p,g,x);g.flags|=128}if(H=g.memoizedState,H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),Dx(LC,LC.current),L)break;return null;case 22:case 23:return g.lanes=0,rDt(p,g,x)}return Une(p,g,x)}var cDt,u1t,lDt,uDt;cDt=function(p,g){for(var x=g.child;x!==null;){if(x.tag===5||x.tag===6)p.appendChild(x.stateNode);else if(x.tag!==4&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===g)break;for(;x.sibling===null;){if(x.return===null||x.return===g)return;x=x.return}x.sibling.return=x.return,x=x.sibling}};u1t=function(){};lDt=function(p,g,x,L){var H=p.memoizedProps;if(H!==L){p=g.stateNode,V1e(eX.current);var G=null;switch(x){case"input":H=wbt(p,H),L=wbt(p,L),G=[];break;case"select":H=FC({},H,{value:void 0}),L=FC({},L,{value:void 0}),G=[];break;case"textarea":H=Lbt(p,H),L=Lbt(p,L),G=[];break;default:typeof H.onClick!="function"&&typeof L.onClick=="function"&&(p.onclick=yot)}Fbt(x,L);var ye;x=null;for(At in H)if(!L.hasOwnProperty(At)&&H.hasOwnProperty(At)&&H[At]!=null)if(At==="style"){var Oe=H[At];for(ye in Oe)Oe.hasOwnProperty(ye)&&(x||(x={}),x[ye]="")}else At!=="dangerouslySetInnerHTML"&&At!=="children"&&At!=="suppressContentEditableWarning"&&At!=="suppressHydrationWarning"&&At!=="autoFocus"&&(Jje.hasOwnProperty(At)?G||(G=[]):(G=G||[]).push(At,null));for(At in L){var ot=L[At];if(Oe=H!=null?H[At]:void 0,L.hasOwnProperty(At)&&ot!==Oe&&(ot!=null||Oe!=null))if(At==="style")if(Oe){for(ye in Oe)!Oe.hasOwnProperty(ye)||ot&&ot.hasOwnProperty(ye)||(x||(x={}),x[ye]="");for(ye in ot)ot.hasOwnProperty(ye)&&Oe[ye]!==ot[ye]&&(x||(x={}),x[ye]=ot[ye])}else x||(G||(G=[]),G.push(At,x)),x=ot;else At==="dangerouslySetInnerHTML"?(ot=ot?ot.__html:void 0,Oe=Oe?Oe.__html:void 0,ot!=null&&Oe!==ot&&(G=G||[]).push(At,ot)):At==="children"?typeof ot!="string"&&typeof ot!="number"||(G=G||[]).push(At,""+ot):At!=="suppressContentEditableWarning"&&At!=="suppressHydrationWarning"&&(Jje.hasOwnProperty(At)?(ot!=null&&At==="onScroll"&&sA("scroll",p),G||Oe===ot||(G=[])):(G=G||[]).push(At,ot))}x&&(G=G||[]).push("style",x);var At=G;(g.updateQueue=At)&&(g.flags|=4)}};uDt=function(p,g,x,L){x!==L&&(g.flags|=4)};function aje(p,g){if(!QA)switch(p.tailMode){case"hidden":g=p.tail;for(var x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?p.tail=null:x.sibling=null;break;case"collapsed":x=p.tail;for(var L=null;x!==null;)x.alternate!==null&&(L=x),x=x.sibling;L===null?g||p.tail===null?p.tail=null:p.tail.sibling=null:L.sibling=null}}function pL(p){var g=p.alternate!==null&&p.alternate.child===p.child,x=0,L=0;if(g)for(var H=p.child;H!==null;)x|=H.lanes|H.childLanes,L|=H.subtreeFlags&14680064,L|=H.flags&14680064,H.return=p,H=H.sibling;else for(H=p.child;H!==null;)x|=H.lanes|H.childLanes,L|=H.subtreeFlags,L|=H.flags,H.return=p,H=H.sibling;return p.subtreeFlags|=L,p.childLanes=x,g}function i6t(p,g,x){var L=g.pendingProps;switch(RTt(g),g.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pL(g),null;case 1:return VO(g.type)&&vot(),pL(g),null;case 3:return L=g.stateNode,URe(),uA(jO),uA(EL),jTt(),L.pendingContext&&(L.context=L.pendingContext,L.pendingContext=null),(p===null||p.child===null)&&(git(g)?g.flags|=4:p===null||p.memoizedState.isDehydrated&&!(g.flags&256)||(g.flags|=1024,nU!==null&&(y1t(nU),nU=null))),u1t(p,g),pL(g),null;case 5:GTt(g);var H=V1e(iVe.current);if(x=g.type,p!==null&&g.stateNode!=null)lDt(p,g,x,L,H),p.ref!==g.ref&&(g.flags|=512,g.flags|=2097152);else{if(!L){if(g.stateNode===null)throw Error(r_(166));return pL(g),null}if(p=V1e(eX.current),git(g)){L=g.stateNode,x=g.type;var G=g.memoizedProps;switch(L[YK]=g,L[nVe]=G,p=(g.mode&1)!==0,x){case"dialog":sA("cancel",L),sA("close",L);break;case"iframe":case"object":case"embed":sA("load",L);break;case"video":case"audio":for(H=0;H<\/script>",p=p.removeChild(p.firstChild)):typeof L.is=="string"?p=ye.createElement(x,{is:L.is}):(p=ye.createElement(x),x==="select"&&(ye=p,L.multiple?ye.multiple=!0:L.size&&(ye.size=L.size))):p=ye.createElementNS(p,x),p[YK]=g,p[nVe]=L,cDt(p,g,!1,!1),g.stateNode=p;e:{switch(ye=Wbt(x,L),x){case"dialog":sA("cancel",p),sA("close",p),H=L;break;case"iframe":case"object":case"embed":sA("load",p),H=L;break;case"video":case"audio":for(H=0;HJRe&&(g.flags|=128,L=!0,aje(G,!1),g.lanes=4194304)}else{if(!L)if(p=Cot(ye),p!==null){if(g.flags|=128,L=!0,x=p.updateQueue,x!==null&&(g.updateQueue=x,g.flags|=4),aje(G,!0),G.tail===null&&G.tailMode==="hidden"&&!ye.alternate&&!QA)return pL(g),null}else 2*nk()-G.renderingStartTime>JRe&&x!==1073741824&&(g.flags|=128,L=!0,aje(G,!1),g.lanes=4194304);G.isBackwards?(ye.sibling=g.child,g.child=ye):(x=G.last,x!==null?x.sibling=ye:g.child=ye,G.last=ye)}return G.tail!==null?(g=G.tail,G.rendering=g,G.tail=g.sibling,G.renderingStartTime=nk(),g.sibling=null,x=LC.current,Dx(LC,L?x&1|2:x&1),g):(pL(g),null);case 22:case 23:return ZTt(),L=g.memoizedState!==null,p!==null&&p.memoizedState!==null!==L&&(g.flags|=8192),L&&g.mode&1?R5&1073741824&&(pL(g),g.subtreeFlags&6&&(g.flags|=8192)):pL(g),null;case 24:return null;case 25:return null}throw Error(r_(156,g.tag))}function o6t(p,g){switch(RTt(g),g.tag){case 1:return VO(g.type)&&vot(),p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 3:return URe(),uA(jO),uA(EL),jTt(),p=g.flags,p&65536&&!(p&128)?(g.flags=p&-65537|128,g):null;case 5:return GTt(g),null;case 13:if(uA(LC),p=g.memoizedState,p!==null&&p.dehydrated!==null){if(g.alternate===null)throw Error(r_(340));jRe()}return p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 19:return uA(LC),null;case 4:return URe(),null;case 10:return FTt(g.type._context),null;case 22:case 23:return ZTt(),null;case 24:return null;default:return null}}var vit=!1,yL=!1,a6t=typeof WeakSet=="function"?WeakSet:Set,Jp=null;function TRe(p,g){var x=p.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(L){kD(p,g,L)}else x.current=null}function f1t(p,g,x){try{x()}catch(L){kD(p,g,L)}}var b2t=!1;function s6t(p,g){if(qbt=mot,p=pCt(),NTt(p)){if("selectionStart"in p)var x={start:p.selectionStart,end:p.selectionEnd};else e:{x=(x=p.ownerDocument)&&x.defaultView||window;var L=x.getSelection&&x.getSelection();if(L&&L.rangeCount!==0){x=L.anchorNode;var H=L.anchorOffset,G=L.focusNode;L=L.focusOffset;try{x.nodeType,G.nodeType}catch{x=null;break e}var ye=0,Oe=-1,ot=-1,At=0,sn=0,tr=p,Nt=null;t:for(;;){for(var Ot;tr!==x||H!==0&&tr.nodeType!==3||(Oe=ye+H),tr!==G||L!==0&&tr.nodeType!==3||(ot=ye+L),tr.nodeType===3&&(ye+=tr.nodeValue.length),(Ot=tr.firstChild)!==null;)Nt=tr,tr=Ot;for(;;){if(tr===p)break t;if(Nt===x&&++At===H&&(Oe=ye),Nt===G&&++sn===L&&(ot=ye),(Ot=tr.nextSibling)!==null)break;tr=Nt,Nt=tr.parentNode}tr=Ot}x=Oe===-1||ot===-1?null:{start:Oe,end:ot}}else x=null}x=x||{start:0,end:0}}else x=null;for(Kbt={focusedElem:p,selectionRange:x},mot=!1,Jp=g;Jp!==null;)if(g=Jp,p=g.child,(g.subtreeFlags&1028)!==0&&p!==null)p.return=g,Jp=p;else for(;Jp!==null;){g=Jp;try{var bo=g.alternate;if(g.flags&1024)switch(g.tag){case 0:case 11:case 15:break;case 1:if(bo!==null){var Yr=bo.memoizedProps,Ns=bo.memoizedState,ui=g.stateNode,Zr=ui.getSnapshotBeforeUpdate(g.elementType===g.type?Yr:ZV(g.type,Yr),Ns);ui.__reactInternalSnapshotBeforeUpdate=Zr}break;case 3:var Zi=g.stateNode.containerInfo;Zi.nodeType===1?Zi.textContent="":Zi.nodeType===9&&Zi.documentElement&&Zi.removeChild(Zi.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r_(163))}}catch(jr){kD(g,g.return,jr)}if(p=g.sibling,p!==null){p.return=g.return,Jp=p;break}Jp=g.return}return bo=b2t,b2t=!1,bo}function Rje(p,g,x){var L=g.updateQueue;if(L=L!==null?L.lastEffect:null,L!==null){var H=L=L.next;do{if((H.tag&p)===p){var G=H.destroy;H.destroy=void 0,G!==void 0&&f1t(g,x,G)}H=H.next}while(H!==L)}}function dat(p,g){if(g=g.updateQueue,g=g!==null?g.lastEffect:null,g!==null){var x=g=g.next;do{if((x.tag&p)===p){var L=x.create;x.destroy=L()}x=x.next}while(x!==g)}}function _1t(p){var g=p.ref;if(g!==null){var x=p.stateNode;switch(p.tag){case 5:p=x;break;default:p=x}typeof g=="function"?g(p):g.current=p}}function fDt(p){var g=p.alternate;g!==null&&(p.alternate=null,fDt(g)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(g=p.stateNode,g!==null&&(delete g[YK],delete g[nVe],delete g[Qbt],delete g[VMt],delete g[UMt])),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function _Dt(p){return p.tag===5||p.tag===3||p.tag===4}function T2t(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||_Dt(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function d1t(p,g,x){var L=p.tag;if(L===5||L===6)p=p.stateNode,g?x.nodeType===8?x.parentNode.insertBefore(p,g):x.insertBefore(p,g):(x.nodeType===8?(g=x.parentNode,g.insertBefore(p,x)):(g=x,g.appendChild(p)),x=x._reactRootContainer,x!=null||g.onclick!==null||(g.onclick=yot));else if(L!==4&&(p=p.child,p!==null))for(d1t(p,g,x),p=p.sibling;p!==null;)d1t(p,g,x),p=p.sibling}function p1t(p,g,x){var L=p.tag;if(L===5||L===6)p=p.stateNode,g?x.insertBefore(p,g):x.appendChild(p);else if(L!==4&&(p=p.child,p!==null))for(p1t(p,g,x),p=p.sibling;p!==null;)p1t(p,g,x),p=p.sibling}var bM=null,tU=!1;function n_e(p,g,x){for(x=x.child;x!==null;)dDt(p,g,x),x=x.sibling}function dDt(p,g,x){if(ZK&&typeof ZK.onCommitFiberUnmount=="function")try{ZK.onCommitFiberUnmount(oat,x)}catch{}switch(x.tag){case 5:yL||TRe(x,g);case 6:var L=bM,H=tU;bM=null,n_e(p,g,x),bM=L,tU=H,bM!==null&&(tU?(p=bM,x=x.stateNode,p.nodeType===8?p.parentNode.removeChild(x):p.removeChild(x)):bM.removeChild(x.stateNode));break;case 18:bM!==null&&(tU?(p=bM,x=x.stateNode,p.nodeType===8?X0t(p.parentNode,x):p.nodeType===1&&X0t(p,x),Yje(p)):X0t(bM,x.stateNode));break;case 4:L=bM,H=tU,bM=x.stateNode.containerInfo,tU=!0,n_e(p,g,x),bM=L,tU=H;break;case 0:case 11:case 14:case 15:if(!yL&&(L=x.updateQueue,L!==null&&(L=L.lastEffect,L!==null))){H=L=L.next;do{var G=H,ye=G.destroy;G=G.tag,ye!==void 0&&(G&2||G&4)&&f1t(x,g,ye),H=H.next}while(H!==L)}n_e(p,g,x);break;case 1:if(!yL&&(TRe(x,g),L=x.stateNode,typeof L.componentWillUnmount=="function"))try{L.props=x.memoizedProps,L.state=x.memoizedState,L.componentWillUnmount()}catch(Oe){kD(x,g,Oe)}n_e(p,g,x);break;case 21:n_e(p,g,x);break;case 22:x.mode&1?(yL=(L=yL)||x.memoizedState!==null,n_e(p,g,x),yL=L):n_e(p,g,x);break;default:n_e(p,g,x)}}function S2t(p){var g=p.updateQueue;if(g!==null){p.updateQueue=null;var x=p.stateNode;x===null&&(x=p.stateNode=new a6t),g.forEach(function(L){var H=g6t.bind(null,p,L);x.has(L)||(x.add(L),L.then(H,H))})}}function YV(p,g){var x=g.deletions;if(x!==null)for(var L=0;LH&&(H=ye),L&=~G}if(L=H,L=nk()-L,L=(120>L?120:480>L?480:1080>L?1080:1920>L?1920:3e3>L?3e3:4320>L?4320:1960*l6t(L/1960))-L,10p?16:p,m_e===null)var L=!1;else{if(p=m_e,m_e=null,Not=0,TT&6)throw Error(r_(331));var H=TT;for(TT|=4,Jp=p.current;Jp!==null;){var G=Jp,ye=G.child;if(Jp.flags&16){var Oe=G.deletions;if(Oe!==null){for(var ot=0;otnk()-YTt?X1e(p,0):XTt|=x),UO(p,g)}function TDt(p,g){g===0&&(p.mode&1?(g=uit,uit<<=1,!(uit&130023424)&&(uit=4194304)):g=1);var x=h8();p=Vne(p,g),p!==null&&(AVe(p,g,x),UO(p,x))}function m6t(p){var g=p.memoizedState,x=0;g!==null&&(x=g.retryLane),TDt(p,x)}function g6t(p,g){var x=0;switch(p.tag){case 13:var L=p.stateNode,H=p.memoizedState;H!==null&&(x=H.retryLane);break;case 19:L=p.stateNode;break;default:throw Error(r_(314))}L!==null&&L.delete(g),TDt(p,x)}var SDt;SDt=function(p,g,x){if(p!==null)if(p.memoizedProps!==g.pendingProps||jO.current)GO=!0;else{if(!(p.lanes&x)&&!(g.flags&128))return GO=!1,r6t(p,g,x);GO=!!(p.flags&131072)}else GO=!1,QA&&g.flags&1048576&&ACt(g,Sot,g.index);switch(g.lanes=0,g.tag){case 2:var L=g.type;Wit(p,g),p=g.pendingProps;var H=GRe(g,EL.current);NRe(g,x),H=UTt(null,g,L,p,H,x);var G=HTt();return g.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(g.tag=1,g.memoizedState=null,g.updateQueue=null,VO(L)?(G=!0,bot(g)):G=!1,g.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,BTt(g),H.updater=fat,g.stateNode=H,H._reactInternals=g,i1t(g,L,p,x),g=s1t(null,g,L,!0,G,x)):(g.tag=0,QA&&G&&wTt(g),d8(null,g,H,x),g=g.child),g;case 16:L=g.elementType;e:{switch(Wit(p,g),p=g.pendingProps,H=L._init,L=H(L._payload),g.type=L,H=g.tag=y6t(L),p=ZV(L,p),H){case 0:g=a1t(null,g,L,p,x);break e;case 1:g=h2t(null,g,L,p,x);break e;case 11:g=m2t(null,g,L,p,x);break e;case 14:g=g2t(null,g,L,ZV(L.type,p),x);break e}throw Error(r_(306,L,""))}return g;case 0:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:ZV(L,H),a1t(p,g,L,H,x);case 1:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:ZV(L,H),h2t(p,g,L,H,x);case 3:e:{if(oDt(g),p===null)throw Error(r_(387));L=g.pendingProps,G=g.memoizedState,H=G.element,kCt(p,g),Aot(g,L,null,x);var ye=g.memoizedState;if(L=ye.element,G.isDehydrated)if(G={element:L,isDehydrated:!1,cache:ye.cache,pendingSuspenseBoundaries:ye.pendingSuspenseBoundaries,transitions:ye.transitions},g.updateQueue.baseState=G,g.memoizedState=G,g.flags&256){H=HRe(Error(r_(423)),g),g=y2t(p,g,L,x,H);break e}else if(L!==H){H=HRe(Error(r_(424)),g),g=y2t(p,g,L,x,H);break e}else for(O5=E_e(g.stateNode.containerInfo.firstChild),B5=g,QA=!0,nU=null,x=RCt(g,null,L,x),g.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(jRe(),L===H){g=Une(p,g,x);break e}d8(p,g,L,x)}g=g.child}return g;case 5:return MCt(g),p===null&&t1t(g),L=g.type,H=g.pendingProps,G=p!==null?p.memoizedProps:null,ye=H.children,Xbt(L,H)?ye=null:G!==null&&Xbt(L,G)&&(g.flags|=32),iDt(p,g),d8(p,g,ye,x),g.child;case 6:return p===null&&t1t(g),null;case 13:return aDt(p,g,x);case 4:return zTt(g,g.stateNode.containerInfo),L=g.pendingProps,p===null?g.child=VRe(g,null,L,x):d8(p,g,L,x),g.child;case 11:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:ZV(L,H),m2t(p,g,L,H,x);case 7:return d8(p,g,g.pendingProps,x),g.child;case 8:return d8(p,g,g.pendingProps.children,x),g.child;case 12:return d8(p,g,g.pendingProps.children,x),g.child;case 10:e:{if(L=g.type._context,H=g.pendingProps,G=g.memoizedProps,ye=H.value,Dx(Eot,L._currentValue),L._currentValue=ye,G!==null)if(lU(G.value,ye)){if(G.children===H.children&&!jO.current){g=Une(p,g,x);break e}}else for(G=g.child,G!==null&&(G.return=g);G!==null;){var Oe=G.dependencies;if(Oe!==null){ye=G.child;for(var ot=Oe.firstContext;ot!==null;){if(ot.context===L){if(G.tag===1){ot=Lne(-1,x&-x),ot.tag=2;var At=G.updateQueue;if(At!==null){At=At.shared;var sn=At.pending;sn===null?ot.next=ot:(ot.next=sn.next,sn.next=ot),At.pending=ot}}G.lanes|=x,ot=G.alternate,ot!==null&&(ot.lanes|=x),n1t(G.return,x,g),Oe.lanes|=x;break}ot=ot.next}}else if(G.tag===10)ye=G.type===g.type?null:G.child;else if(G.tag===18){if(ye=G.return,ye===null)throw Error(r_(341));ye.lanes|=x,Oe=ye.alternate,Oe!==null&&(Oe.lanes|=x),n1t(ye,x,g),ye=G.sibling}else ye=G.child;if(ye!==null)ye.return=G;else for(ye=G;ye!==null;){if(ye===g){ye=null;break}if(G=ye.sibling,G!==null){G.return=ye.return,ye=G;break}ye=ye.return}G=ye}d8(p,g,H.children,x),g=g.child}return g;case 9:return H=g.type,L=g.pendingProps.children,NRe(g,x),H=pz(H),L=L(H),g.flags|=1,d8(p,g,L,x),g.child;case 14:return L=g.type,H=ZV(L,g.pendingProps),H=ZV(L.type,H),g2t(p,g,L,H,x);case 15:return nDt(p,g,g.type,g.pendingProps,x);case 17:return L=g.type,H=g.pendingProps,H=g.elementType===L?H:ZV(L,H),Wit(p,g),g.tag=1,VO(L)?(p=!0,bot(g)):p=!1,NRe(g,x),NCt(g,L,H),i1t(g,L,H,x),s1t(null,g,L,!0,p,x);case 19:return sDt(p,g,x);case 22:return rDt(p,g,x)}throw Error(r_(156,g.tag))};function EDt(p,g){return KAt(p,g)}function h6t(p,g,x,L){this.tag=p,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=g,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=L,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uz(p,g,x,L){return new h6t(p,g,x,L)}function tSt(p){return p=p.prototype,!(!p||!p.isReactComponent)}function y6t(p){if(typeof p=="function")return tSt(p)?1:0;if(p!=null){if(p=p.$$typeof,p===bTt)return 11;if(p===TTt)return 14}return 2}function D_e(p,g){var x=p.alternate;return x===null?(x=uz(p.tag,g,p.key,p.mode),x.elementType=p.elementType,x.type=p.type,x.stateNode=p.stateNode,x.alternate=p,p.alternate=x):(x.pendingProps=g,x.type=p.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=p.flags&14680064,x.childLanes=p.childLanes,x.lanes=p.lanes,x.child=p.child,x.memoizedProps=p.memoizedProps,x.memoizedState=p.memoizedState,x.updateQueue=p.updateQueue,g=p.dependencies,x.dependencies=g===null?null:{lanes:g.lanes,firstContext:g.firstContext},x.sibling=p.sibling,x.index=p.index,x.ref=p.ref,x}function Git(p,g,x,L,H,G){var ye=2;if(L=p,typeof p=="function")tSt(p)&&(ye=1);else if(typeof p=="string")ye=5;else e:switch(p){case _Re:return Y1e(x.children,H,G,g);case vTt:ye=8,H|=8;break;case Ibt:return p=uz(12,x,g,H|2),p.elementType=Ibt,p.lanes=G,p;case kbt:return p=uz(13,x,g,H),p.elementType=kbt,p.lanes=G,p;case Pbt:return p=uz(19,x,g,H),p.elementType=Pbt,p.lanes=G,p;case wAt:return mat(x,H,G,g);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case PAt:ye=10;break e;case NAt:ye=9;break e;case bTt:ye=11;break e;case TTt:ye=14;break e;case s_e:ye=16,L=null;break e}throw Error(r_(130,p==null?p:typeof p,""))}return g=uz(ye,x,g,H),g.elementType=p,g.type=L,g.lanes=G,g}function Y1e(p,g,x,L){return p=uz(7,p,L,g),p.lanes=x,p}function mat(p,g,x,L){return p=uz(22,p,L,g),p.elementType=wAt,p.lanes=x,p.stateNode={isHidden:!1},p}function ibt(p,g,x){return p=uz(6,p,null,g),p.lanes=x,p}function obt(p,g,x){return g=uz(4,p.children!==null?p.children:[],p.key,g),g.lanes=x,g.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},g}function v6t(p,g,x,L,H){this.tag=g,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=B0t(0),this.expirationTimes=B0t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=B0t(0),this.identifierPrefix=L,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function nSt(p,g,x,L,H,G,ye,Oe,ot){return p=new v6t(p,g,x,Oe,ot),g===1?(g=1,G===!0&&(g|=8)):g=0,G=uz(3,null,null,g),p.current=G,G.stateNode=p,G.memoizedState={element:L,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},BTt(G),p}function b6t(p,g,x){var L=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DDt)}catch(p){console.error(p)}}DDt(),AAt.exports=G5;var IDt=AAt.exports,kDt,P2t=IDt;kDt=P2t.createRoot,P2t.hydrateRoot;class A6t extends ap{constructor(g,x,L){super(),this.model=g,this.render=x,this.equal=L}}class C6t extends hl.Component{constructor(g){super(g)}shouldComponentUpdate(g,x){const L=this;return!L.props.equal(L.props.model,g.model)}render(){return this.props.render()}}function D6t(p,g,x,L){const H=new A6t(x,()=>g(x,L),p);return hl.createElement(C6t,H)}const I6t=(()=>{try{return Yxt(hl.version.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function k6t(p,g,x){let L,H;return yRt(wne((L=void 0,I6t?(H=kDt(document.getElementById(g)),G=>ye=>{if(L!=null){const Oe=L;window.cancelAnimationFrame(Oe)}L=window.requestAnimationFrame(Oe=>{H.render(p(ot=>At=>ot===At,xEt(x),G,ye))})}):G=>ye=>{if(L!=null){const Oe=L;window.cancelAnimationFrame(Oe)}L=window.requestAnimationFrame(Oe=>{IDt.render(p(ot=>At=>ot===At,xEt(x),G,ye),document.getElementById(g))})})),x)}function P6t(p,g){return k6t((x,L,H,G)=>D6t(wne(x),wne(L),H,G),p,g)}function N6t(p=0,g=0,x=0,L=0,H=0){switch(arguments.length){case 1:return w6t(arguments[0]);case 3:p=0,g=arguments[0],x=arguments[1],L=arguments[2],H=0;break}return p*864e5+g*36e5+x*6e4+L*1e3+H}function w6t(p){return Number(BigInt(p)/10000n)}function Oje(p){return N6t(0,0,p)}function R6t(){let p="";for(let g=0;g++<36;)p+=g*51&52?(g^15?8^Math.random()*(g^20?16:4):4).toString(16):"-";return p}class M6t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["DangerouslySetInnerHTML","OnCut","OnPaste","OnCompositionEnd","OnCompositionStart","OnCopy","OnCompositionUpdate","OnFocus","OnBlur","OnChange","OnInput","OnSubmit","OnReset","OnLoad","OnError","OnKeyDown","OnKeyPress","OnKeyUp","OnAbort","OnCanPlay","OnCanPlayThrough","OnDurationChange","OnEmptied","OnEncrypted","OnEnded","OnLoadedData","OnLoadedMetadata","OnLoadStart","OnPause","OnPlay","OnPlaying","OnProgress","OnRateChange","OnSeeked","OnSeeking","OnStalled","OnSuspend","OnTimeUpdate","OnVolumeChange","OnWaiting","OnClick","OnContextMenu","OnDoubleClick","OnDrag","OnDragEnd","OnDragEnter","OnDragExit","OnDragLeave","OnDragOver","OnDragStart","OnDrop","OnMouseDown","OnMouseEnter","OnMouseLeave","OnMouseMove","OnMouseOut","OnMouseOver","OnMouseUp","OnSelect","OnTouchCancel","OnTouchEnd","OnTouchMove","OnTouchStart","OnScroll","OnWheel","OnAnimationStart","OnAnimationEnd","OnAnimationIteration","OnTransitionEnd","OnPointerDown","OnPointerMove","OnPointerUp","OnPointerCancel","OnPointerEnter","OnPointerLeave","OnPointerOver","OnPointerOut","OnGotPointerCapture","OnLostPointerCapture","Custom"]}}class N2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["DefaultChecked","DefaultValue","Accept","AcceptCharset","AccessKey","Action","AllowFullScreen","AllowTransparency","Alt","aria-atomic","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","Async","AutoComplete","AutoFocus","AutoPlay","Capture","CellPadding","CellSpacing","CharSet","Challenge","Checked","ClassID","ClassName","className","Cols","ColSpan","Content","ContentEditable","ContextMenu","Controls","Coords","CrossOrigin","data-toggle","DateTime","Default","Defer","Dir","Disabled","Download","Draggable","EncType","Form","FormAction","FormEncType","FormMethod","FormNoValidate","FormTarget","FrameBorder","Headers","Height","Hidden","High","Href","HrefLang","HtmlFor","HttpEquiv","Icon","Id","InputMode","Integrity","Is","KeyParams","KeyType","Kind","Label","Lang","List","Loop","Low","Manifest","MarginHeight","MarginWidth","Max","MaxLength","Media","MediaGroup","Method","Min","MinLength","Multiple","Muted","Name","NoValidate","Open","Optimum","Pattern","Placeholder","Poster","Preload","RadioGroup","ReadOnly","Rel","Required","Role","Rows","RowSpan","Sandbox","Scope","Scoped","Scrolling","Seamless","Selected","Shape","Size","Sizes","Span","SpellCheck","Src","SrcDoc","SrcLang","SrcSet","Start","Step","Summary","TabIndex","Target","Title","Type","UseMap","Value","value","Width","Wmode","Wrap","About","Datatype","Inlist","Prefix","Property","Resource","Typeof","Vocab","AutoCapitalize","AutoCorrect","AutoSave","ItemProp","ItemScope","ItemType","ItemID","ItemRef","Results","Security","Unselectable","Custom"]}}class ZI extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Ok","Error"]}}class L6t{constructor(){}}function O6t(){return new L6t}function aSt(p,g){return{then:(x,L)=>{try{return g().then(x,L)}catch(H){if(L==null)return Promise.reject(H);try{const G=L(H);return Promise.resolve(G)}catch(G){return Promise.reject(G)}}},catch:x=>{try{return g().catch(x)}catch(L){try{const H=x(L);return Promise.resolve(H)}catch(H){return Promise.reject(H)}}}}}function sSt(p,g){return g.then(x=>x)}const $Re=O6t();class PDt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Success","Warning","Error","Info"]}}class jit extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["BottomRight","BottomLeft","BottomCenter","TopRight","TopLeft","TopCenter"]}}class bat extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.Message=g,this.Title=x,this.Icon=L,this.Position=H,this.Delay=G,this.DismissOnClick=ye,this.WithCloseButton=Oe}}function F6t(){return new bat("",void 0,void 0,new jit(1,[]),Oje(3),!1,!1)}class W6t extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At){super(),this.Guid=g,this.Message=x,this.Title=L,this.Icon=H,this.Position=G,this.Delay=ye,this.Status=Oe,this.DismissOnClick=ot,this.WithCloseButton=At}}function abt(p){const g=F6t();return new bat(p,g.Title,g.Icon,g.Position,g.Delay,g.DismissOnClick,g.WithCloseButton)}function sbt(p,g){return new bat(g.Message,g.Title,g.Icon,p,g.Delay,g.DismissOnClick,g.WithCloseButton)}function cbt(p,g){return new bat(g.Message,g.Title,g.Icon,g.Position,p,g.DismissOnClick,g.WithCloseButton)}function NDt(p,g,x){const L={detail:new W6t(R6t(),p.Message,p.Title,p.Icon,p.Position,p.Delay,g,p.DismissOnClick,p.WithCloseButton)},H=new CustomEvent("thoth_elmish_toast_notify_event",L);window.dispatchEvent(H)}function B6t(p){return _l(g=>{NDt(p,new PDt(0,[]))})}function w2t(p){return _l(g=>{NDt(p,new PDt(2,[]))})}class qK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Add","Remove","UserMsg","OnError"]}}class OO extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.UserModel=g,this.Toasts_BL=x,this.Toasts_BC=L,this.Toasts_BR=H,this.Toasts_TL=G,this.Toasts_TC=ye,this.Toasts_TR=Oe}}function Zwe(p,g,x,L){const H=[new N2t(65,["toast-wrapper "+p])],G=zf(ye=>{let Oe;const ot=uU(Ns=>g.Title(Ns),ye.Title),At=lA(" ",["toast-container",ye.DismissOnClick?"dismiss-on-click":"",g.StatusToColor(ye.Status)]);let sn;const tr=ye.WithCloseButton?g.CloseButton(Ns=>{L(new qK(1,[ye]))}):void 0;sn=tr??W5();let Nt;const Ot=ye.Icon;if(Ot==null){let Ns;const ui=ot;Ns=ui??W5();const Zr=g.Message(ye.Message);Nt=g.SingleLayout(Ns,Zr)}else{const Ns=df(Ot),ui=g.Icon(Ns);let Zr;const Zi=ot;Zr=Zi??W5();const jr=g.Message(ye.Message);Nt=g.SplittedLayout(ui,Zr,jr)}const bo=Zd(cd(()=>V1(fg(new N2t(64,[At])),cd(()=>ye.DismissOnClick?fg(new M6t(40,[Ns=>{L(new qK(1,[ye]))}])):Uw())))),Yr=[(Oe=g.StatusToColor(ye.Status),g.Toast(fu([sn,Nt]),Oe))];return hl.createElement("div",uEt(bo,1),...Yr)},x);return hl.createElement("div",uEt(H,1),...G)}function z6t(p,g,x){const L=[Zwe("toast-wrapper-bottom-left",p,g.Toasts_BL,x),Zwe("toast-wrapper-bottom-center",p,g.Toasts_BC,x),Zwe("toast-wrapper-bottom-right",p,g.Toasts_BR,x),Zwe("toast-wrapper-top-left",p,g.Toasts_TL,x),Zwe("toast-wrapper-top-center",p,g.Toasts_TC,x),Zwe("toast-wrapper-top-right",p,g.Toasts_TR,x)];return hl.createElement("div",{className:"elmish-toast"},...L)}function G6t(p){const g=p.Delay;if(g==null)throw new Error("No delay attached to notification can't delayed it. `delayedCmd` should not have been called by the program");{const x=g;return sSt($Re,aSt($Re,()=>new Promise(L=>setTimeout(L,~~x)).then(()=>Promise.resolve(p))))}}function j6t(p,g){const x=new WRe(L=>{throw new Error("`onNotificationRef` has not been initialized.\nThis should not happen, please open an issue on Thoth.Elmish.Toast if the problem persist")});return xAt((L,H)=>{let G;const ye=L(H);return G=[ye[0],lz(Oe=>new qK(2,[Oe]),ye[1])],[new OO(G[0],lc(),lc(),lc(),lc(),lc(),lc()),G[1]]},(L,H,G)=>{let ye;switch(H.tag){case 0:{const Oe=H.fields[0],ot=Oe.Delay==null?_2():pTt(G6t,Oe,sn=>new qK(1,[sn]),sn=>new qK(3,[sn])),At=Oe.Position;ye=At.tag===2?[new OO(G.UserModel,G.Toasts_BL,wD(Oe,G.Toasts_BC),G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot]:At.tag===0?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,wD(Oe,G.Toasts_BR),G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot]:At.tag===4?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,wD(Oe,G.Toasts_TL),G.Toasts_TC,G.Toasts_TR),ot]:At.tag===5?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,wD(Oe,G.Toasts_TC),G.Toasts_TR),ot]:At.tag===3?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,wD(Oe,G.Toasts_TR)),ot]:[new OO(G.UserModel,wD(Oe,G.Toasts_BL),G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),ot];break}case 1:{const Oe=H.fields[0],ot=Oe.Position;ye=ot.tag===2?[new OO(G.UserModel,G.Toasts_BL,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BC),G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===0?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BR),G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===4?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TL),G.Toasts_TC,G.Toasts_TR),_2()]:ot.tag===5?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TC),G.Toasts_TR),_2()]:ot.tag===3?[new OO(G.UserModel,G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_TR)),_2()]:[new OO(G.UserModel,(At=>FO(sn=>sn.Guid!==Oe.Guid,At))(G.Toasts_BL),G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),_2()];break}case 3:{console.error(LD(H.fields[0].message)),ye=[G,_2()];break}default:{const Oe=L(H.fields[0])(G.UserModel);ye=[new OO(Oe[0],G.Toasts_BL,G.Toasts_BC,G.Toasts_BR,G.Toasts_TL,G.Toasts_TC,G.Toasts_TR),lz(ot=>new qK(2,[ot]),Oe[1])]}}return[ye[0],ye[1]]},(L,H,G)=>{const ye=[z6t(p,H,G),L(H.UserModel)(Oe=>{G(new qK(2,[Oe]))})];return hl.createElement(hl.Fragment,{},...ye)},(L,H,G)=>{L(H.UserModel)(ye=>{G(new qK(2,[ye]))})},(L,H)=>bAt(fu([_l([_l("thoth_elmish_toast_notify_event"),G=>(x.contents=ye=>{const Oe=ye;G(new qK(0,[Oe.detail]))},window.addEventListener("thoth_elmish_toast_notify_event",x.contents),{Dispose(){window.removeEventListener("thoth_elmish_toast_notify_event",x.contents)}})]),TAt("ThothElmishToastUser",G=>new qK(2,[G]),L(H.UserModel))])),L=>[H=>H.tag===2?L[0](H.fields[0]):!1,H=>{window.removeEventListener("thoth_elmish_toast_notify_event",x.contents),L[1](H.UserModel)}],g)}class cje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Change","UserMsg"]}}function V6t(p){return _l(g=>{history.pushState(void 0,"",p);const x=new CustomEvent("NavigatedEvent");window.dispatchEvent(x)})}function U6t(p,g,x){const L=new WRe(G=>{throw new Error("`onChangeRef` has not been initialized.\nThis should not happen, please open an issue if the problem persist")}),H=G=>[G[0],lz(ye=>new cje(1,[ye]),G[1])];return xAt((G,ye)=>H(G(p(window.location))),(G,ye,Oe)=>H(ye.tag===1?G(ye.fields[0])(Oe):g(p(ye.fields[0]),Oe)),(G,ye,Oe)=>G(ye)(ot=>{Oe(new cje(1,[ot]))}),(G,ye,Oe)=>{G(ye)(ot=>{Oe(new cje(1,[ot]))})},(G,ye)=>bAt(fu([_l([_l("onLocationChange"),Oe=>{let ot;return L.contents=At=>{let sn;switch(ot!=null&&ot===window.location.href?sn=0:sn=1,sn){case 0:break;case 1:{ot=window.location.href,Oe(new cje(0,[window.location]));break}}},window.addEventListener("popstate",L.contents),window.addEventListener("hashchange",L.contents),window.addEventListener("NavigatedEvent",L.contents),{Dispose(){window.removeEventListener("popstate",L.contents),window.removeEventListener("hashchange",L.contents),window.removeEventListener("NavigatedEvent",L.contents)}}}]),TAt("user",Oe=>new cje(1,[Oe]),G(ye))])),G=>[ye=>ye.tag===1?G[0](ye.fields[0]):!1,ye=>{window.removeEventListener("popstate",L.contents),window.removeEventListener("hashchange",L.contents),window.removeEventListener("NavigatedEvent",L.contents),G[1](ye)}],x)}class wDt{constructor(g,x){this.k=g,this.v=x}}function Mot(p,g){return new wDt(p,g)}function rk(p){return p.k}function jw(p){return p.v}class tk extends wDt{constructor(g,x,L,H,G){super(g,x),this.left=L,this.right=H,this.h=G|0}}function Vit(p,g,x,L,H){return new tk(p,g,x,L,H)}function PD(p){return p.left}function ND(p){return p.right}function U1e(p){return p.h}function RDt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof tk){const G=H;p=RDt(x+1,PD(G)),g=ND(G);continue e}else return x+1|0}else return x|0}}function H6t(p){return RDt(0,p)}function P5(p,g,x,L){let H,G,ye;const Oe=p;if(Oe!=null){const tr=df(Oe);ye=tr instanceof tk?(H=tr,U1e(H)):1}else ye=0;let ot;const At=L;if(At!=null){const tr=df(At);ot=tr instanceof tk?(G=tr,U1e(G)):1}else ot=0;const sn=(yeNt+2){const Ns=df(L);if(Ns instanceof tk){const ui=Ns;if(ye=PD(ui),(ye!=null?(Oe=df(ye),Oe instanceof tk?(ot=Oe,U1e(ot)):1):0)>Nt+1){const Zr=df(PD(ui));if(Zr instanceof tk){const Zi=Zr;return P5(P5(p,g,x,PD(Zi)),rk(Zi),jw(Zi),P5(ND(Zi),rk(ui),jw(ui),ND(ui)))}else throw new Error("internal error: Map.rebalance")}else return P5(P5(p,g,x,PD(ui)),rk(ui),jw(ui),ND(ui))}else throw new Error("internal error: Map.rebalance")}else if(Nt>bo+2){const Ns=df(p);if(Ns instanceof tk){const ui=Ns;if(At=ND(ui),(At!=null?(sn=df(At),sn instanceof tk?(tr=sn,U1e(tr)):1):0)>bo+1){const Zr=df(ND(ui));if(Zr instanceof tk){const Zi=Zr;return P5(P5(PD(ui),rk(ui),jw(ui),PD(Zi)),rk(Zi),jw(Zi),P5(ND(Zi),g,x,L))}else throw new Error("internal error: Map.rebalance")}else return P5(PD(ui),rk(ui),jw(ui),P5(ND(ui),g,x,L))}else throw new Error("internal error: Map.rebalance")}else return P5(p,g,x,L)}function qRe(p,g,x,L){if(L!=null){const H=df(L),G=p.Compare(g,rk(H))|0;if(H instanceof tk){const ye=H;return G<0?Lot(qRe(p,g,x,PD(ye)),rk(ye),jw(ye),ND(ye)):G===0?Vit(g,x,PD(ye),ND(ye),U1e(ye)):Lot(PD(ye),rk(ye),jw(ye),qRe(p,g,x,ND(ye)))}else return G<0?Vit(g,x,void 0,L,2):G===0?Mot(g,x):Vit(g,x,L,void 0,2)}else return Mot(g,x)}function MDt(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,rk(ye))|0;if(Oe===0)return LD(jw(ye));if(ye instanceof tk){const ot=ye;p=L,g=H,x=Oe<0?PD(ot):ND(ot);continue e}else return}else return}}function J6t(p,g,x){const L=MDt(p,g,x);if(L==null)throw new Error;return df(L)}function LDt(p){if(p!=null){const g=df(p);if(g instanceof tk){const x=g;if(PD(x)==null)return[rk(x),jw(x),ND(x)];{const L=LDt(PD(x));return[L[0],L[1],P5(L[2],rk(x),jw(x),ND(x))]}}else return[rk(g),jw(g),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function v1t(p,g,x){if(x!=null){const L=df(x),H=p.Compare(g,rk(L))|0;if(L instanceof tk){const G=L;if(H<0)return Lot(v1t(p,g,PD(G)),rk(G),jw(G),ND(G));if(H===0){if(PD(G)==null)return ND(G);if(ND(G)==null)return PD(G);{const ye=LDt(ND(G));return P5(PD(G),ye[0],ye[1],ye[2])}}else return Lot(PD(G),rk(G),jw(G),v1t(p,g,ND(G)))}else return H===0?void 0:x}else return void 0}function $6t(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G!=null){const ye=df(G),Oe=L.Compare(H,rk(ye))|0;if(ye instanceof tk){const ot=ye;if(Oe<0){p=L,g=H,x=PD(ot);continue e}else{if(Oe===0)return!0;p=L,g=H,x=ND(ot);continue e}}else return Oe===0}else return!1}}function ODt(p,g){e:for(;;){const x=p,L=g;if(L!=null){const H=df(L);if(H instanceof tk){const G=H;ODt(x,PD(G)),x(rk(G),jw(G)),p=x,g=ND(G);continue e}else x(rk(H),jw(H))}break}}function q6t(p,g){ODt(p,g)}function K6t(p,g,x){let L=x;q6t((H,G)=>{Wne(g,L,[H,G]),L=L+1|0},p)}function X6t(p,g){return HO((x,L)=>qRe(p,L[0],L[1],x),void 0,g)}function Y6t(p,g,x){e:for(;;){const L=p,H=g,G=x;if(G["System.Collections.IEnumerator.MoveNext"]()){const ye=G["System.Collections.Generic.IEnumerator`1.get_Current"]();p=L,g=qRe(L,ye[0],ye[1],H),x=G;continue e}else return H}}function Q6t(p,g){let x=void 0;for(let L=0;L<=g.length-1;L++){const H=Dne(L,g);x=qRe(p,H[0],H[1],x)}return x}function Z6t(p,g){if(tX(g))return Q6t(p,g);if(g instanceof bL)return X6t(p,g);{const x=Ix(g);try{return Y6t(p,void 0,x)}finally{d2(x)}}}class eLt extends ap{constructor(g,x){super(),this.stack=g,this.started=x}}function FDt(p){e:for(;;){const g=p;if(yd(g))return lc();{const x=xy(g),L=Hp(g);if(L!=null){const H=df(L);if(H instanceof tk){const G=H;p=wC([PD(G),Mot(rk(G),jw(G)),ND(G)],x);continue e}else return g}else{p=x;continue e}}}}function R2t(p){return new eLt(FDt(_l(p)),!1)}function tLt(){throw new Error("enumeration not started")}function nLt(){throw new Error("enumeration already finished")}function M2t(p){if(p.started){const g=p.stack;if(yd(g))return nLt();if(Hp(g)!=null){const x=df(Hp(g));if(x instanceof tk)throw new Error("Please report error: Map iterator, unexpected stack for current");return[rk(x),jw(x)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return tLt()}function rLt(p){if(p.started){const g=p.stack;if(yd(g))return!1;if(Hp(g)!=null){if(df(Hp(g))instanceof tk)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return p.stack=FDt(xy(g)),!yd(p.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return p.started=!0,!yd(p.stack)}function L2t(p){let g=R2t(p);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return M2t(g)},"System.Collections.IEnumerator.get_Current"(){return M2t(g)},"System.Collections.IEnumerator.MoveNext"(){return rLt(g)},"System.Collections.IEnumerator.Reset"(){g=R2t(p)},Dispose(){}}}class Oot{constructor(g,x){this.comparer=g,this.tree=x}GetHashCode(){return cLt(this)|0}Equals(g){const x=this;if(g instanceof Oot){const L=g,H=Ix(x);try{const G=Ix(L);try{const ye=()=>{const Oe=H["System.Collections.IEnumerator.MoveNext"]();if(Oe===G["System.Collections.IEnumerator.MoveNext"]())if(Oe){const ot=H["System.Collections.Generic.IEnumerator`1.get_Current"](),At=G["System.Collections.Generic.IEnumerator`1.get_Current"]();return g8(ot[0],At[0])&&g8(ot[1],At[1])?ye():!1}else return!0;else return!1};return ye()}finally{d2(G)}}finally{d2(H)}}else return!1}toString(){return"map ["+lA("; ",zO(x=>mNt("({0}, {1})",x[0],x[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const g=this;return Array.from(g)}GetEnumerator(){return L2t(this.tree)}[Symbol.iterator](){return vVe(Ix(this))}"System.Collections.IEnumerable.GetEnumerator"(){return L2t(this.tree)}CompareTo(g){const x=this;if(g instanceof Oot)return Nwt((H,G)=>{const ye=x.comparer.Compare(H[0],G[0])|0;return(ye!==0?ye:rX(H[1],G[1]))|0},x,g)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(g){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(g){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(g){const x=this;return F2t(x,g[0])&&g8(O2t(x,g[0]),g[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(g,x){K6t(this.tree,g,x)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return lbt(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return lbt(this)|0}get size(){return lbt(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(g){throw new Error("Map cannot be mutated")}entries(){return zO(x=>[x[0],x[1]],this)}get(g){return O2t(this,g)}has(g){return F2t(this,g)}keys(){return zO(x=>x[0],this)}set(g,x){throw new Error("Map cannot be mutated")}values(){return zO(x=>x[1],this)}forEach(g,x){const L=this;nat(H=>{g(H[1],H[0],L)},L)}}function Tat(p,g){return new Oot(p,g)}function iLt(p){return Tat(p,void 0)}function oLt(p,g,x){return Tat(p.comparer,qRe(p.comparer,g,x,p.tree))}function O2t(p,g){return J6t(p.comparer,g,p.tree)}function lbt(p){return H6t(p.tree)}function F2t(p,g){return $6t(p.comparer,g,p.tree)}function aLt(p,g){return Tat(p.comparer,v1t(p.comparer,g,p.tree))}function sLt(p,g){return MDt(p.comparer,g,p.tree)}function cLt(p){const g=(H,G)=>(H<<1)+G+631;let x=0;const L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();x=g(x,nX(H[0]))|0,x=g(x,nX(H[1]))|0}}finally{d2(L)}return x|0}function WDt(p,g,x){return oLt(x,p,g)}function cSt(p,g){return sLt(g,p)}function lLt(p,g){return aLt(g,p)}function uLt(p,g){return Tat(g,Z6t(g,p))}function lSt(p){return iLt(p)}function W2t(p,g){let x,L,H;switch(p!=null&&g!=null?(x=0,L=df(p),H=df(g)):x=1,x){case 0:return[L,H];default:return}}function ubt(p,g){try{return LD(p(g))}catch{return}}class Sat extends ap{constructor(g,x,L,H){super(),this.visited=g,this.unvisited=x,this.args=L,this.value=H}}function BDt(p,g,x,L){return new Sat(p,g,x,L)}function fLt(p,g){return new Sat(g.visited,g.unvisited,g.args,p(g.value))}function eRe(p){return g=>{const x=g.unvisited;if(yd(x))return lc();{const L=Hp(x);return L===p?_l(BDt(wD(L,g.visited),xy(x),g.args,g.value)):lc()}}}function Sit(p,g){return x=>zf(L=>fLt(x.value,L),g(new Sat(x.visited,x.unvisited,x.args,p)))}function _Lt(p,g){return rz(x=>x(g),p)}function dLt(p){return _l(p)}function pLt(p,g){return x=>{const L=x.args;return _l(BDt(x.visited,x.unvisited,L,x.value(g(cSt(p,L)))))}}function mLt(p){e:for(;;){const g=p;if(yd(g))return;{const x=Hp(g),L=x.unvisited;let H;switch(yd(L)?H=0:Hp(L)===""&&yd(xy(L))?H=1:H=2,H){case 0:return LD(x.value);case 1:return LD(x.value);default:{p=xy(g);continue e}}}}}function gLt(p){const g=fu(p.split("/"));let x,L,H;switch(yd(g)?(x=1,H=g):Hp(g)===""?(x=0,L=xy(g)):(x=1,H=g),x){case 0:return L;default:return H}}function hLt(p,g,x){return mLt(p(new Sat(lc(),gLt(g),x,L=>L)))}function yLt(p){let g;const x=p.split("=");let L;switch(!nEt((H,G)=>H===G,x,W5())&&x.length===2?L=0:!nEt((H,G)=>H===G,x,W5())&&x.length===1?(g=Dne(0,x),p.indexOf(g)===0?L=1:L=2):L=2,L){case 0:{const H=Dne(1,x);return W2t(ubt(decodeURIComponent,Dne(0,x)),ubt(decodeURIComponent,H))}case 1:return W2t(ubt(decodeURIComponent,Dne(0,x)),"");default:return}}function vLt(p){if(jje(p))return lSt({Compare:cU});{const g=p.indexOf("?")===0?ARe(p,1):p;return uLt(oMe(x=>x,zO(yLt,g.split("&"))),{Compare:cU})}}function bLt(p,g){let x;const L=g.hash.length>1?ARe(g.hash,1):"",H=L.indexOf("?")|0;return x=H>=0?[ARe(L,0,H),vLt(ARe(L,H+1))]:[L,lSt({Compare:cU})],hLt(p,x[0],x[1])}var uSt={exports:{}};uSt.exports;(function(p){var g=function(){var x=String.fromCharCode,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",G={};function ye(ot,At){if(!G[ot]){G[ot]={};for(var sn=0;sn>>8,sn[tr*2+1]=Ot%256}return sn},decompressFromUint8Array:function(ot){if(ot==null)return Oe.decompress(ot);for(var At=new Array(ot.length/2),sn=0,tr=At.length;sn>1}else{for(Nt=1,tr=0;tr>1}Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),delete bo[ui]}else for(Nt=Ot[ui],tr=0;tr>1;Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),Ot[Ns]=Zi++,ui=String(Yr)}if(ui!==""){if(Object.prototype.hasOwnProperty.call(bo,ui)){if(ui.charCodeAt(0)<256){for(tr=0;tr>1}else{for(Nt=1,tr=0;tr>1}Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++),delete bo[ui]}else for(Nt=Ot[ui],tr=0;tr>1;Zr--,Zr==0&&(Zr=Math.pow(2,jr),jr++)}for(Nt=2,tr=0;tr>1;for(;;)if(ra=ra<<1,Ho==At-1){lr.push(sn(ra));break}else Ho++;return lr.join("")},decompress:function(ot){return ot==null?"":ot==""?null:Oe._decompress(ot.length,32768,function(At){return ot.charCodeAt(At)})},_decompress:function(ot,At,sn){var tr=[],Nt=4,Ot=4,bo=3,Yr="",Ns=[],ui,Zr,Zi,jr,lr,ra,Ho,Ms={val:sn(0),position:At,index:1};for(ui=0;ui<3;ui+=1)tr[ui]=ui;for(Zi=0,lr=Math.pow(2,2),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;switch(Zi){case 0:for(Zi=0,lr=Math.pow(2,8),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;Ho=x(Zi);break;case 1:for(Zi=0,lr=Math.pow(2,16),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;Ho=x(Zi);break;case 2:return""}for(tr[3]=Ho,Zr=Ho,Ns.push(Ho);;){if(Ms.index>ot)return"";for(Zi=0,lr=Math.pow(2,bo),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;switch(Ho=Zi){case 0:for(Zi=0,lr=Math.pow(2,8),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;tr[Ot++]=x(Zi),Ho=Ot-1,Nt--;break;case 1:for(Zi=0,lr=Math.pow(2,16),ra=1;ra!=lr;)jr=Ms.val&Ms.position,Ms.position>>=1,Ms.position==0&&(Ms.position=At,Ms.val=sn(Ms.index++)),Zi|=(jr>0?1:0)*ra,ra<<=1;tr[Ot++]=x(Zi),Ho=Ot-1,Nt--;break;case 2:return Ns.join("")}if(Nt==0&&(Nt=Math.pow(2,bo),bo++),tr[Ho])Yr=tr[Ho];else if(Ho===Ot)Yr=Zr+Zr.charAt(0);else return null;Ns.push(Yr),tr[Ot++]=Zr+Yr.charAt(0),Nt--,Zr=Yr,Nt==0&&(Nt=Math.pow(2,bo),bo++)}}};return Oe}();p!=null?p.exports=g:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return g})})(uSt);var Uit=uSt.exports;class H1e extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["FSharpCode","GlueAST","FSharpAST"]}}function TLt(p){switch(p.tag){case 1:{const g=p.fields[0];return g==null?"glue-ast":"glue-ast?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}case 2:{const g=p.fields[0];return g==null?"fsharp-ast":"fsharp-ast?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}default:{const g=p.fields[0];return g==null?"fsharp-code":"fsharp-code?"+("typeScriptCode="+Uit.compressToEncodedURIComponent(g))}}}class J1e extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["Editors"]}}function SLt(p){return"editors/"+TLt(p.fields[0])}function fSt(p){return"#/"+SLt(p)}function fbt(p){return pLt(p,g=>uU(Uit.decompressFromEncodedURIComponent,g))}const ELt=(()=>{let p,g,x,L,H,G,ye,Oe,ot,At,sn,tr;const Nt=fu([Sit(Ot=>new J1e(new H1e(0,[Ot])),(p=(g=eRe("editors"),x=eRe("fsharp-code"),Ot=>rz(x,g(Ot))),L=fbt("typeScriptCode"),Ot=>rz(L,p(Ot)))),Sit(Ot=>new J1e(new H1e(1,[Ot])),(H=(G=eRe("editors"),ye=eRe("glue-ast"),Ot=>rz(ye,G(Ot))),Oe=fbt("typeScriptCode"),Ot=>rz(Oe,H(Ot)))),Sit(Ot=>new J1e(new H1e(2,[Ot])),(ot=(At=eRe("editors"),sn=eRe("fsharp-ast"),Ot=>rz(sn,At(Ot))),tr=fbt("typeScriptCode"),Ot=>rz(tr,ot(Ot)))),Sit(new J1e(new H1e(0,[void 0])),dLt)]);return Ot=>_Lt(Nt,Ot)})();function xLt(p){return["href",fSt(p)]}function ALt(p){return V6t(fSt(p))}const CLt={"panel-container":"_panel-container_1pp7f_2","right-panel":"_right-panel_1pp7f_14","horizontal-divider":"_horizontal-divider_1pp7f_28"};class Fot extends ap{constructor(g){super(),this.PendingMessages=g}}function DLt(){return new Fot(lSt({Compare:cU}))}class B2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Timeout","OnError"]}}function ILt(p,g,x,L){return[new Fot(WDt(g,m8(uU(H=>1+H,cSt(g,L.PendingMessages)),1),L.PendingMessages)),pTt(()=>sSt($Re,aSt($Re,()=>new Promise(H=>setTimeout(H,~~p)).then(()=>Promise.resolve([g,x])))),void 0,H=>new B2t(0,[H[0],H[1]]),H=>new B2t(1,[H]))]}function kLt(p,g){if(p.tag===0){const x=p.fields[0],L=m8(cSt(x,g.PendingMessages),0)-1|0;return L===0?[new Fot(lLt(x,g.PendingMessages)),_l(H=>{H(p.fields[1])})]:L>0?[new Fot(WDt(x,L,g.PendingMessages)),_2()]:(console.warn(LD("Invalid debouncer state: there was no state information for the supplier id")),[g,_2()])}else return console.error(LD(p.fields[0].message)),[g,_2()]}let z2t=class extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Success","Error"]}};var zDt={},GDt={};function Wot(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jDt={exports:{}};const PLt={},NLt=Object.freeze(Object.defineProperty({__proto__:null,default:PLt},Symbol.toStringTag,{value:"Module"})),MC=TPt(NLt);(function(p){var g={};/*! ***************************************************************************** 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 @@ -45,9 +45,9 @@ Error generating stack: `+G.message+` See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var x=(()=>{var L=Object.defineProperty,H=Object.getOwnPropertyNames,G=(e,n)=>function(){return e&&(n=(0,e[H(e)[0]])(e=0)),n},ye=(e,n)=>function(){return n||(0,e[H(e)[0]])((n={exports:{}}).exports,n),n.exports},Oe=(e,n)=>{for(var i in n)L(e,i,{get:n[i],enumerable:!0})},ot,At,sn,tr=G({"src/compiler/corePublic.ts"(){ot="5.3",At="5.3.2",sn=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(sn||{})}});function Nt(e){return e?e.length:0}function Ot(e,n){if(e)for(let i=0;i=0;i--){const c=n(e[i],i);if(c)return c}}function Yr(e,n){if(e!==void 0)for(let i=0;i=0;c--){const u=e[c];if(n(u,c))return u}}function Ho(e,n,i){if(e===void 0)return-1;for(let c=i??0;c=0;c--)if(n(e[c],c))return c;return-1}function cs(e,n){for(let i=0;ii(c,n[u]))}function Hg(e,n,i){for(let c=i||0;c{const d=n(u,c);if(d!==void 0){const[h,S]=d;h!==void 0&&S!==void 0&&i.set(h,S)}}),i}function Jw(e,n,i){if(e.has(n))return e.get(n);const c=i();return e.set(n,c),c}function m2(e,n){return e.has(n)?!1:(e.add(n),!0)}function*Zf(e){yield e}function fa(e,n,i){let c;if(e){c=[];const u=e.length;let d,h,S=0,E=0;for(;S{const[d,h]=n(u,c);i.set(d,h)}),i}function gt(e,n){if(e)if(n){for(const i of e)if(n(i))return!0}else return e.length>0;return!1}function eu(e,n,i){let c;for(let u=0;ue[h])}function QS(e,n){const i=[];for(const c of e)Dy(i,c,n);return i}function th(e,n,i){return e.length===0?[]:e.length===1?e.slice():i?xS(e,n,i):QS(e,n)}function WC(e,n){if(e.length===0)return Yn;let i=e[0];const c=[i];for(let u=1;u0&&(u&=-2),u&2&&c(d,E)>0&&(u&=-3),d=E}return u}function fv(e,n,i=_1){if(!e||!n)return e===n;if(e.length!==n.length)return!1;for(let c=0;c0&&re.assertGreaterThanOrEqual(i(n[d],n[d-1]),0);t:for(const h=u;uh&&re.assertGreaterThanOrEqual(i(e[u],e[u-1]),0),i(n[d],e[u])){case-1:c.push(n[d]);continue e;case 0:continue e;case 1:continue t}}return c}function ur(e,n){return n===void 0?e:e===void 0?[n]:(e.push(n),e)}function FD(e,n){return e===void 0?n:n===void 0?e:ls(e)?ls(n)?Hi(e,n):ur(e,n):ls(n)?ur(n,e):[e,n]}function hz(e,n){return n<0?e.length+n:n}function Oi(e,n,i,c){if(n===void 0||n.length===0)return e;if(e===void 0)return n.slice(i,c);i=i===void 0?0:hz(n,i),c=c===void 0?n.length:hz(n,c);for(let u=i;ui(e[c],e[u])||pf(c,u))}function fN(e,n){return e.length===0?e:e.slice().sort(n)}function*fU(e){for(let n=e.length-1;n>=0;n--)yield e[n]}function nh(e,n){const i=Cy(e);return L_e(e,i,n),i.map(c=>e[c])}function yz(e,n,i,c){for(;i>1),E=i(e[S],S);switch(c(E,n)){case-1:d=S+1;break;case 0:return S;case 1:h=S-1;break}}return~d}function Em(e,n,i,c,u){if(e&&e.length>0){const d=e.length;if(d>0){let h=c===void 0||c<0?0:c;const S=u===void 0||h+u>d-1?d-1:h+u;let E;for(arguments.length<=2?(E=e[h],h++):E=i;h<=S;)E=n(E,e[h],h),h++;return E}}return i}function ef(e,n){return zy.call(e,n)}function T8(e,n){return zy.call(e,n)?e[n]:void 0}function ET(e){const n=[];for(const i in e)zy.call(e,i)&&n.push(i);return n}function _Te(e){const n=[];do{const i=Object.getOwnPropertyNames(e);for(const c of i)Dy(n,c)}while(e=Object.getPrototypeOf(e));return n}function ik(e){const n=[];for(const i in e)zy.call(e,i)&&n.push(e[i]);return n}function bz(e,n){const i=new Array(e);for(let c=0;c100&&i>n.length>>1){const S=n.length-i;n.copyWithin(0,i),n.length=S,i=0}return h}return{enqueue:u,dequeue:d,isEmpty:c}}function J5(e,n){const i=new Map;let c=0;function*u(){for(const h of i.values())ls(h)?yield*h:yield h}const d={has(h){const S=e(h);if(!i.has(S))return!1;const E=i.get(S);if(!ls(E))return n(E,h);for(const P of E)if(n(P,h))return!0;return!1},add(h){const S=e(h);if(i.has(S)){const E=i.get(S);if(ls(E))ni(E,h,n)||(E.push(h),c++);else{const P=E;n(P,h)||(i.set(S,[P,h]),c++)}}else i.set(S,h),c++;return this},delete(h){const S=e(h);if(!i.has(S))return!1;const E=i.get(S);if(ls(E)){for(let P=0;Pu(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return d}function ls(e){return Array.isArray(e)}function BC(e){return ls(e)?e:[e]}function As(e){return typeof e=="string"}function U1(e){return typeof e=="number"}function to(e,n){return e!==void 0&&n(e)?e:void 0}function uc(e,n){return e!==void 0&&n(e)?e:re.fail(`Invalid cast. The supplied value ${e} did not pass the test '${re.getFunctionName(n)}'.`)}function ku(e){}function bg(){return!1}function xT(){return!0}function eE(){}function Of(e){return e}function x8(e){return e.toLowerCase()}function Q0(e){return gTe.test(e)?e.replace(gTe,x8):e}function Na(){throw new Error("Not implemented")}function Pd(e){let n;return()=>(e&&(n=e(),e=void 0),n)}function p0(e){const n=new Map;return i=>{const c=`${typeof i}:${i}`;let u=n.get(c);return u===void 0&&!n.has(c)&&(u=e(i),n.set(c,u)),u}}function NVe(e){const n=new WeakMap;return i=>{let c=n.get(i);return c===void 0&&!n.has(i)&&(c=e(i),n.set(i,c)),c}}function JO(e,n){return(...i)=>{let c=n.get(i);return c===void 0&&!n.has(i)&&(c=e(...i),n.set(i,c)),c}}function wVe(e,n,i,c,u){if(u){const d=[];for(let h=0;hEm(d,(S,E)=>E(S),h)}else return c?d=>c(i(n(e(d)))):i?d=>i(n(e(d))):n?d=>n(e(d)):e?d=>e(d):d=>d}function _1(e,n){return e===n}function pN(e,n){return e===n||e!==void 0&&n!==void 0&&e.toUpperCase()===n.toUpperCase()}function ZA(e,n){return _1(e,n)}function lMe(e,n){return e===n?0:e===void 0?-1:n===void 0?1:en(i,c)===-1?i:c)}function Kw(e,n){return e===n?0:e===void 0?-1:n===void 0?1:(e=e.toUpperCase(),n=n.toUpperCase(),en?1:0)}function rP(e,n){return e===n?0:e===void 0?-1:n===void 0?1:(e=e.toLowerCase(),n=n.toLowerCase(),en?1:0)}function Fp(e,n){return lMe(e,n)}function Xw(e){return e?Kw:Fp}function dTe(){return $ne}function $5(e){$ne!==e&&($ne=e,eC=void 0)}function q5(e,n){return(eC||(eC=PM($ne)))(e,n)}function mN(e,n,i,c){return e===n?0:e===void 0?-1:n===void 0?1:c(e[i],n[i])}function Z0(e,n){return pf(e?1:0,n?1:0)}function fh(e,n,i){const c=Math.max(2,Math.floor(e.length*.34));let u=Math.floor(e.length*.4)+1,d;for(const h of n){const S=i(h);if(S!==void 0&&Math.abs(S.length-e.length)<=c){if(S===e||S.length<3&&S.toLowerCase()!==e.toLowerCase())continue;const E=$O(e,S,u-.1);if(E===void 0)continue;re.assert(Ei?S-i:1),k=Math.floor(n.length>i+S?i+S:n.length);u[0]=S;let F=S;for(let J=1;Ji)return;const $=c;c=u,u=$}const h=c[n.length];return h>i?void 0:h}function h_(e,n){const i=e.length-n.length;return i>=0&&e.indexOf(n,i)===i}function DM(e,n){return h_(e,n)?e.slice(0,e.length-n.length):e}function K5(e,n){return h_(e,n)?e.slice(0,e.length-n.length):void 0}function Ub(e){let n=e.length;for(let i=n-1;i>0;i--){let c=e.charCodeAt(i);if(c>=48&&c<=57)do--i,c=e.charCodeAt(i);while(i>0&&c>=48&&c<=57);else if(i>4&&(c===110||c===78)){if(--i,c=e.charCodeAt(i),c!==105&&c!==73||(--i,c=e.charCodeAt(i),c!==109&&c!==77))break;--i,c=e.charCodeAt(i)}else break;if(c!==45&&c!==46)break;n=i}return n===e.length?e:e.slice(0,n)}function AL(e,n){for(let i=0;ii===n)}function IM(e,n){for(let i=0;iu&&(u=h.prefix.length,c=d)}return c}function qf(e,n){return e.lastIndexOf(n,0)===0}function xf(e,n){return qf(e,n)?e.substr(n.length):e}function Ez(e,n,i=Of){return qf(i(e),i(n))?e.substring(n.length):void 0}function C8({prefix:e,suffix:n},i){return i.length>=e.length+n.length&&qf(i,e)&&h_(i,n)}function mU(e,n){return i=>e(i)&&n(i)}function bb(...e){return(...n)=>{let i;for(const c of e)if(i=c(...n),i)return i;return i}}function dA(e){return(...n)=>!e(...n)}function gN(e){}function X5(e){return e===void 0?void 0:[e]}function zD(e,n,i,c,u,d){d=d||ku;let h=0,S=0;const E=e.length,P=n.length;let k=!1;for(;h(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(kM||{}),Zn=Array.prototype.at?(e,n)=>e==null?void 0:e.at(n):(e,n)=>{if(e&&(n=hz(e,n),n(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(AT||{}),PM=(()=>{return n;function e(i,c,u){if(i===c)return 0;if(i===void 0)return-1;if(c===void 0)return 1;const d=u(i,c);return d<0?-1:d>0?1:0}function n(i){const c=new Intl.Collator(i,{usage:"sort",sensitivity:"variant"}).compare;return(u,d)=>e(u,d,c)}})()}}),O_e,re,hTe=G({"src/compiler/debug.ts"(){md(),md(),O_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(O_e||{}),(e=>{let n=0;e.currentLogLevel=2,e.isDebugging=!1;function i(zi){return e.currentLogLevel<=zi}e.shouldLog=i;function c(zi,na){e.loggingHost&&i(zi)&&e.loggingHost.log(zi,na)}function u(zi){c(3,zi)}e.log=u,(zi=>{function na(Qu){c(1,Qu)}zi.error=na;function _a(Qu){c(2,Qu)}zi.warn=_a;function us(Qu){c(3,Qu)}zi.log=us;function Au(Qu){c(4,Qu)}zi.trace=Au})(u=e.log||(e.log={}));const d={};function h(){return n}e.getAssertionLevel=h;function S(zi){const na=n;if(n=zi,zi>na)for(const _a of ET(d)){const us=d[_a];us!==void 0&&e[_a]!==us.assertion&&zi>=us.level&&(e[_a]=us,d[_a]=void 0)}}e.setAssertionLevel=S;function E(zi){return n>=zi}e.shouldAssert=E;function P(zi,na){return E(zi)?!0:(d[na]={level:zi,assertion:e[na]},e[na]=ku,!1)}function k(zi,na){debugger;const _a=new Error(zi?`Debug Failure. ${zi}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_a,na||k),_a}e.fail=k;function F(zi,na,_a){return k(`${na||"Unexpected node."}\r + ***************************************************************************** */var x=(()=>{var L=Object.defineProperty,H=Object.getOwnPropertyNames,G=(e,n)=>function(){return e&&(n=(0,e[H(e)[0]])(e=0)),n},ye=(e,n)=>function(){return n||(0,e[H(e)[0]])((n={exports:{}}).exports,n),n.exports},Oe=(e,n)=>{for(var i in n)L(e,i,{get:n[i],enumerable:!0})},ot,At,sn,tr=G({"src/compiler/corePublic.ts"(){ot="5.3",At="5.3.2",sn=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(sn||{})}});function Nt(e){return e?e.length:0}function Ot(e,n){if(e)for(let i=0;i=0;i--){const c=n(e[i],i);if(c)return c}}function Yr(e,n){if(e!==void 0)for(let i=0;i=0;c--){const u=e[c];if(n(u,c))return u}}function Ho(e,n,i){if(e===void 0)return-1;for(let c=i??0;c=0;c--)if(n(e[c],c))return c;return-1}function cs(e,n){for(let i=0;ii(c,n[u]))}function Hg(e,n,i){for(let c=i||0;c{const d=n(u,c);if(d!==void 0){const[h,S]=d;h!==void 0&&S!==void 0&&i.set(h,S)}}),i}function Jw(e,n,i){if(e.has(n))return e.get(n);const c=i();return e.set(n,c),c}function m2(e,n){return e.has(n)?!1:(e.add(n),!0)}function*Zf(e){yield e}function fa(e,n,i){let c;if(e){c=[];const u=e.length;let d,h,S=0,E=0;for(;S{const[d,h]=n(u,c);i.set(d,h)}),i}function gt(e,n){if(e)if(n){for(const i of e)if(n(i))return!0}else return e.length>0;return!1}function eu(e,n,i){let c;for(let u=0;ue[h])}function QS(e,n){const i=[];for(const c of e)Dy(i,c,n);return i}function th(e,n,i){return e.length===0?[]:e.length===1?e.slice():i?xS(e,n,i):QS(e,n)}function WC(e,n){if(e.length===0)return Yn;let i=e[0];const c=[i];for(let u=1;u0&&(u&=-2),u&2&&c(d,E)>0&&(u&=-3),d=E}return u}function fv(e,n,i=_1){if(!e||!n)return e===n;if(e.length!==n.length)return!1;for(let c=0;c0&&re.assertGreaterThanOrEqual(i(n[d],n[d-1]),0);t:for(const h=u;uh&&re.assertGreaterThanOrEqual(i(e[u],e[u-1]),0),i(n[d],e[u])){case-1:c.push(n[d]);continue e;case 0:continue e;case 1:continue t}}return c}function ur(e,n){return n===void 0?e:e===void 0?[n]:(e.push(n),e)}function FD(e,n){return e===void 0?n:n===void 0?e:ls(e)?ls(n)?Hi(e,n):ur(e,n):ls(n)?ur(n,e):[e,n]}function gz(e,n){return n<0?e.length+n:n}function Oi(e,n,i,c){if(n===void 0||n.length===0)return e;if(e===void 0)return n.slice(i,c);i=i===void 0?0:gz(n,i),c=c===void 0?n.length:gz(n,c);for(let u=i;ui(e[c],e[u])||pf(c,u))}function fN(e,n){return e.length===0?e:e.slice().sort(n)}function*fU(e){for(let n=e.length-1;n>=0;n--)yield e[n]}function nh(e,n){const i=Cy(e);return L_e(e,i,n),i.map(c=>e[c])}function hz(e,n,i,c){for(;i>1),E=i(e[S],S);switch(c(E,n)){case-1:d=S+1;break;case 0:return S;case 1:h=S-1;break}}return~d}function Em(e,n,i,c,u){if(e&&e.length>0){const d=e.length;if(d>0){let h=c===void 0||c<0?0:c;const S=u===void 0||h+u>d-1?d-1:h+u;let E;for(arguments.length<=2?(E=e[h],h++):E=i;h<=S;)E=n(E,e[h],h),h++;return E}}return i}function ef(e,n){return zy.call(e,n)}function T8(e,n){return zy.call(e,n)?e[n]:void 0}function ET(e){const n=[];for(const i in e)zy.call(e,i)&&n.push(i);return n}function _Te(e){const n=[];do{const i=Object.getOwnPropertyNames(e);for(const c of i)Dy(n,c)}while(e=Object.getPrototypeOf(e));return n}function ik(e){const n=[];for(const i in e)zy.call(e,i)&&n.push(e[i]);return n}function vz(e,n){const i=new Array(e);for(let c=0;c100&&i>n.length>>1){const S=n.length-i;n.copyWithin(0,i),n.length=S,i=0}return h}return{enqueue:u,dequeue:d,isEmpty:c}}function J5(e,n){const i=new Map;let c=0;function*u(){for(const h of i.values())ls(h)?yield*h:yield h}const d={has(h){const S=e(h);if(!i.has(S))return!1;const E=i.get(S);if(!ls(E))return n(E,h);for(const P of E)if(n(P,h))return!0;return!1},add(h){const S=e(h);if(i.has(S)){const E=i.get(S);if(ls(E))ni(E,h,n)||(E.push(h),c++);else{const P=E;n(P,h)||(i.set(S,[P,h]),c++)}}else i.set(S,h),c++;return this},delete(h){const S=e(h);if(!i.has(S))return!1;const E=i.get(S);if(ls(E)){for(let P=0;Pu(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return d}function ls(e){return Array.isArray(e)}function BC(e){return ls(e)?e:[e]}function As(e){return typeof e=="string"}function U1(e){return typeof e=="number"}function to(e,n){return e!==void 0&&n(e)?e:void 0}function uc(e,n){return e!==void 0&&n(e)?e:re.fail(`Invalid cast. The supplied value ${e} did not pass the test '${re.getFunctionName(n)}'.`)}function ku(e){}function bg(){return!1}function xT(){return!0}function eE(){}function Of(e){return e}function x8(e){return e.toLowerCase()}function Q0(e){return gTe.test(e)?e.replace(gTe,x8):e}function Na(){throw new Error("Not implemented")}function Pd(e){let n;return()=>(e&&(n=e(),e=void 0),n)}function p0(e){const n=new Map;return i=>{const c=`${typeof i}:${i}`;let u=n.get(c);return u===void 0&&!n.has(c)&&(u=e(i),n.set(c,u)),u}}function NVe(e){const n=new WeakMap;return i=>{let c=n.get(i);return c===void 0&&!n.has(i)&&(c=e(i),n.set(i,c)),c}}function JO(e,n){return(...i)=>{let c=n.get(i);return c===void 0&&!n.has(i)&&(c=e(...i),n.set(i,c)),c}}function wVe(e,n,i,c,u){if(u){const d=[];for(let h=0;hEm(d,(S,E)=>E(S),h)}else return c?d=>c(i(n(e(d)))):i?d=>i(n(e(d))):n?d=>n(e(d)):e?d=>e(d):d=>d}function _1(e,n){return e===n}function pN(e,n){return e===n||e!==void 0&&n!==void 0&&e.toUpperCase()===n.toUpperCase()}function ZA(e,n){return _1(e,n)}function lMe(e,n){return e===n?0:e===void 0?-1:n===void 0?1:en(i,c)===-1?i:c)}function Kw(e,n){return e===n?0:e===void 0?-1:n===void 0?1:(e=e.toUpperCase(),n=n.toUpperCase(),en?1:0)}function rP(e,n){return e===n?0:e===void 0?-1:n===void 0?1:(e=e.toLowerCase(),n=n.toLowerCase(),en?1:0)}function Fp(e,n){return lMe(e,n)}function Xw(e){return e?Kw:Fp}function dTe(){return $ne}function $5(e){$ne!==e&&($ne=e,eC=void 0)}function q5(e,n){return(eC||(eC=PM($ne)))(e,n)}function mN(e,n,i,c){return e===n?0:e===void 0?-1:n===void 0?1:c(e[i],n[i])}function Z0(e,n){return pf(e?1:0,n?1:0)}function fh(e,n,i){const c=Math.max(2,Math.floor(e.length*.34));let u=Math.floor(e.length*.4)+1,d;for(const h of n){const S=i(h);if(S!==void 0&&Math.abs(S.length-e.length)<=c){if(S===e||S.length<3&&S.toLowerCase()!==e.toLowerCase())continue;const E=$O(e,S,u-.1);if(E===void 0)continue;re.assert(Ei?S-i:1),k=Math.floor(n.length>i+S?i+S:n.length);u[0]=S;let F=S;for(let J=1;Ji)return;const $=c;c=u,u=$}const h=c[n.length];return h>i?void 0:h}function h_(e,n){const i=e.length-n.length;return i>=0&&e.indexOf(n,i)===i}function DM(e,n){return h_(e,n)?e.slice(0,e.length-n.length):e}function K5(e,n){return h_(e,n)?e.slice(0,e.length-n.length):void 0}function Ub(e){let n=e.length;for(let i=n-1;i>0;i--){let c=e.charCodeAt(i);if(c>=48&&c<=57)do--i,c=e.charCodeAt(i);while(i>0&&c>=48&&c<=57);else if(i>4&&(c===110||c===78)){if(--i,c=e.charCodeAt(i),c!==105&&c!==73||(--i,c=e.charCodeAt(i),c!==109&&c!==77))break;--i,c=e.charCodeAt(i)}else break;if(c!==45&&c!==46)break;n=i}return n===e.length?e:e.slice(0,n)}function xL(e,n){for(let i=0;ii===n)}function IM(e,n){for(let i=0;iu&&(u=h.prefix.length,c=d)}return c}function qf(e,n){return e.lastIndexOf(n,0)===0}function xf(e,n){return qf(e,n)?e.substr(n.length):e}function Sz(e,n,i=Of){return qf(i(e),i(n))?e.substring(n.length):void 0}function C8({prefix:e,suffix:n},i){return i.length>=e.length+n.length&&qf(i,e)&&h_(i,n)}function mU(e,n){return i=>e(i)&&n(i)}function bb(...e){return(...n)=>{let i;for(const c of e)if(i=c(...n),i)return i;return i}}function dA(e){return(...n)=>!e(...n)}function gN(e){}function X5(e){return e===void 0?void 0:[e]}function zD(e,n,i,c,u,d){d=d||ku;let h=0,S=0;const E=e.length,P=n.length;let k=!1;for(;h(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(kM||{}),Zn=Array.prototype.at?(e,n)=>e==null?void 0:e.at(n):(e,n)=>{if(e&&(n=gz(e,n),n(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(AT||{}),PM=(()=>{return n;function e(i,c,u){if(i===c)return 0;if(i===void 0)return-1;if(c===void 0)return 1;const d=u(i,c);return d<0?-1:d>0?1:0}function n(i){const c=new Intl.Collator(i,{usage:"sort",sensitivity:"variant"}).compare;return(u,d)=>e(u,d,c)}})()}}),O_e,re,hTe=G({"src/compiler/debug.ts"(){md(),md(),O_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(O_e||{}),(e=>{let n=0;e.currentLogLevel=2,e.isDebugging=!1;function i(zi){return e.currentLogLevel<=zi}e.shouldLog=i;function c(zi,na){e.loggingHost&&i(zi)&&e.loggingHost.log(zi,na)}function u(zi){c(3,zi)}e.log=u,(zi=>{function na(Qu){c(1,Qu)}zi.error=na;function _a(Qu){c(2,Qu)}zi.warn=_a;function us(Qu){c(3,Qu)}zi.log=us;function Au(Qu){c(4,Qu)}zi.trace=Au})(u=e.log||(e.log={}));const d={};function h(){return n}e.getAssertionLevel=h;function S(zi){const na=n;if(n=zi,zi>na)for(const _a of ET(d)){const us=d[_a];us!==void 0&&e[_a]!==us.assertion&&zi>=us.level&&(e[_a]=us,d[_a]=void 0)}}e.setAssertionLevel=S;function E(zi){return n>=zi}e.shouldAssert=E;function P(zi,na){return E(zi)?!0:(d[na]={level:zi,assertion:e[na]},e[na]=ku,!1)}function k(zi,na){debugger;const _a=new Error(zi?`Debug Failure. ${zi}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_a,na||k),_a}e.fail=k;function F(zi,na,_a){return k(`${na||"Unexpected node."}\r Node ${Qt(zi.kind)} was unexpected.`,_a||F)}e.failBadSyntaxKind=F;function $(zi,na,_a,us){zi||(na=na?`False expression: ${na}`:"False expression.",_a&&(na+=`\r -Verbose Debug Information: `+(typeof _a=="string"?_a:_a())),k(na,us||$))}e.assert=$;function J(zi,na,_a,us,Au){if(zi!==na){const Qu=_a?us?`${_a} ${us}`:_a:"";k(`Expected ${zi} === ${na}. ${Qu}`,Au||J)}}e.assertEqual=J;function X(zi,na,_a,us){zi>=na&&k(`Expected ${zi} < ${na}. ${_a||""}`,us||X)}e.assertLessThan=X;function ie(zi,na,_a){zi>na&&k(`Expected ${zi} <= ${na}`,_a||ie)}e.assertLessThanOrEqual=ie;function ae(zi,na,_a){zi= ${na}`,_a||ae)}e.assertGreaterThanOrEqual=ae;function ve(zi,na,_a){zi==null&&k(na,_a||ve)}e.assertIsDefined=ve;function we(zi,na,_a){return ve(zi,na,_a||we),zi}e.checkDefined=we;function Fe(zi,na,_a){for(const us of zi)ve(us,na,_a||Fe)}e.assertEachIsDefined=Fe;function et(zi,na,_a){return Fe(zi,na,_a||et),zi}e.checkEachDefined=et;function Pe(zi,na="Illegal value:",_a){const us=typeof zi=="object"&&ef(zi,"kind")&&ef(zi,"pos")?"SyntaxKind: "+Qt(zi.kind):JSON.stringify(zi);return k(`${na} ${us}`,_a||Pe)}e.assertNever=Pe;function dt(zi,na,_a,us){P(1,"assertEachNode")&&$(na===void 0||jr(zi,na),_a||"Unexpected node.",()=>`Node array did not pass test '${st(na)}'.`,us||dt)}e.assertEachNode=dt;function Ie(zi,na,_a,us){P(1,"assertNode")&&$(zi!==void 0&&(na===void 0||na(zi)),_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} did not pass test '${st(na)}'.`,us||Ie)}e.assertNode=Ie;function ct(zi,na,_a,us){P(1,"assertNotNode")&&$(zi===void 0||na===void 0||!na(zi),_a||"Unexpected node.",()=>`Node ${Qt(zi.kind)} should not have passed test '${st(na)}'.`,us||ct)}e.assertNotNode=ct;function Ct(zi,na,_a,us){P(1,"assertOptionalNode")&&$(na===void 0||zi===void 0||na(zi),_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} did not pass test '${st(na)}'.`,us||Ct)}e.assertOptionalNode=Ct;function Lt(zi,na,_a,us){P(1,"assertOptionalToken")&&$(na===void 0||zi===void 0||zi.kind===na,_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} was not a '${Qt(na)}' token.`,us||Lt)}e.assertOptionalToken=Lt;function Ze(zi,na,_a){P(1,"assertMissingNode")&&$(zi===void 0,na||"Unexpected node.",()=>`Node ${Qt(zi.kind)} was unexpected'.`,_a||Ze)}e.assertMissingNode=Ze;function Ke(zi){}e.type=Ke;function st(zi){if(typeof zi!="function")return"";if(ef(zi,"name"))return zi.name;{const na=Function.prototype.toString.call(zi),_a=/^function\s+([\w$]+)\s*\(/.exec(na);return _a?_a[1]:""}}e.getFunctionName=st;function It(zi){return`{ name: ${Ic(zi.escapedName)}; flags: ${Wr(zi.flags)}; declarations: ${Vn(zi.declarations,na=>Qt(na.kind))} }`}e.formatSymbol=It;function Yt(zi=0,na,_a){const us=at(na);if(zi===0)return us.length>0&&us[0][0]===0?us[0][1]:"0";if(_a){const Au=[];let Qu=zi;for(const[Cu,yf]of us){if(Cu>zi)break;Cu!==0&&Cu&zi&&(Au.push(yf),Qu&=~Cu)}if(Qu===0)return Au.join("|")}else for(const[Au,Qu]of us)if(Au===zi)return Qu;return zi.toString()}e.formatEnum=Yt;const Et=new Map;function at(zi){const na=Et.get(zi);if(na)return na;const _a=[];for(const Au in zi){const Qu=zi[Au];typeof Qu=="number"&&_a.push([Qu,Au])}const us=nh(_a,(Au,Qu)=>pf(Au[0],Qu[0]));return Et.set(zi,us),us}function Qt(zi){return Yt(zi,NM,!1)}e.formatSyntaxKind=Qt;function nn(zi){return Yt(zi,IU,!1)}e.formatSnippetKind=nn;function Rn(zi){return Yt(zi,EX,!1)}e.formatScriptKind=Rn;function cn(zi){return Yt(zi,tu,!0)}e.formatNodeFlags=cn;function qt(zi){return Yt(zi,kz,!0)}e.formatModifierFlags=qt;function Kt(zi){return Yt(zi,xX,!0)}e.formatTransformFlags=Kt;function wr(zi){return Yt(zi,AX,!0)}e.formatEmitFlags=wr;function Wr(zi){return Yt(zi,yX,!0)}e.formatSymbolFlags=Wr;function jt(zi){return Yt(zi,vX,!0)}e.formatTypeFlags=jt;function En(zi){return Yt(zi,CU,!0)}e.formatSignatureFlags=En;function fr(zi){return Yt(zi,bX,!0)}e.formatObjectFlags=fr;function Tr(zi){return Yt(zi,Pz,!0)}e.formatFlowFlags=Tr;function Vr(zi){return Yt(zi,Xne,!0)}e.formatRelationComparisonResult=Vr;function Pn(zi){return Yt(zi,_E,!0)}e.formatCheckMode=Pn;function Fr(zi){return Yt(zi,y$,!0)}e.formatSignatureCheckMode=Fr;function Ki(zi){return Yt(zi,aj,!0)}e.formatTypeFacts=Ki;let io=!1,no;function os(zi){"__debugFlowFlags"in zi||Object.defineProperties(zi,{__tsDebuggerDisplay:{value(){const na=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",_a=this.flags&-2048;return`${na}${_a?` (${Tr(_a)})`:""}`}},__debugFlowFlags:{get(){return Yt(this.flags,Pz,!0)}},__debugToString:{value(){return Ia(this)}}})}function Mo(zi){io&&(typeof Object.setPrototypeOf=="function"?(no||(no=Object.create(Object.prototype),os(no)),Object.setPrototypeOf(zi,no)):os(zi))}e.attachFlowNodeDebugInfo=Mo;let $i;function ki(zi){"__tsDebuggerDisplay"in zi||Object.defineProperties(zi,{__tsDebuggerDisplay:{value(na){return na=String(na).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${na}`}}})}function gc(zi){io&&(typeof Object.setPrototypeOf=="function"?($i||($i=Object.create(Array.prototype),ki($i)),Object.setPrototypeOf(zi,$i)):ki(zi))}e.attachNodeArrayDebugInfo=gc;function Wl(){if(io)return;const zi=new WeakMap,na=new WeakMap;Object.defineProperties(W0.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const us=this.flags&33554432?"TransientSymbol":"Symbol",Au=this.flags&-33554433;return`${us} '${Il(this)}'${Au?` (${Wr(Au)})`:""}`}},__debugFlags:{get(){return Wr(this.flags)}}}),Object.defineProperties(W0.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const us=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",Au=this.flags&524288?this.objectFlags&-1344:0;return`${us}${this.symbol?` '${Il(this.symbol)}'`:""}${Au?` (${fr(Au)})`:""}`}},__debugFlags:{get(){return jt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?fr(this.objectFlags):""}},__debugTypeToString:{value(){let us=zi.get(this);return us===void 0&&(us=this.checker.typeToString(this),zi.set(this,us)),us}}}),Object.defineProperties(W0.getSignatureConstructor().prototype,{__debugFlags:{get(){return En(this.flags)}},__debugSignatureToString:{value(){var us;return(us=this.checker)==null?void 0:us.signatureToString(this)}}});const _a=[W0.getNodeConstructor(),W0.getIdentifierConstructor(),W0.getTokenConstructor(),W0.getSourceFileConstructor()];for(const us of _a)ef(us.prototype,"__debugKind")||Object.defineProperties(us.prototype,{__tsDebuggerDisplay:{value(){return`${$g(this)?"GeneratedIdentifier":xn(this)?`Identifier '${Kr(this)}'`:Lu(this)?`PrivateIdentifier '${Kr(this)}'`:Sd(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:S1(this)?`NumericLiteral ${this.text}`:OY(this)?`BigIntLiteral ${this.text}n`:Np(this)?"TypeParameterDeclaration":Os(this)?"ParameterDeclaration":Lh(this)?"ConstructorDeclaration":lE(this)?"GetAccessorDeclaration":Xb(this)?"SetAccessorDeclaration":Y7(this)?"CallSignatureDeclaration":x2(this)?"ConstructSignatureDeclaration":Z2(this)?"IndexSignatureDeclaration":mW(this)?"TypePredicateNode":uE(this)?"TypeReferenceNode":e0(this)?"FunctionTypeNode":MG(this)?"ConstructorTypeNode":m6(this)?"TypeQueryNode":rS(this)?"TypeLiteralNode":GY(this)?"ArrayTypeNode":gW(this)?"TupleTypeNode":MJ(this)?"OptionalTypeNode":hW(this)?"RestTypeNode":fI(this)?"UnionTypeNode":xR(this)?"IntersectionTypeNode":Q7(this)?"ConditionalTypeNode":KN(this)?"InferTypeNode":XN(this)?"ParenthesizedTypeNode":yW(this)?"ThisTypeNode":_I(this)?"TypeOperatorNode":Wx(this)?"IndexedAccessTypeNode":LJ(this)?"MappedTypeNode":S3(this)?"LiteralTypeNode":g6(this)?"NamedTupleMember":E1(this)?"ImportTypeNode":Qt(this.kind)}${this.flags?` (${cn(this.flags)})`:""}`}},__debugKind:{get(){return Qt(this.kind)}},__debugNodeFlags:{get(){return cn(this.flags)}},__debugModifierFlags:{get(){return qt(n6(this))}},__debugTransformFlags:{get(){return Kt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return qD(this)}},__debugEmitFlags:{get(){return wr(wd(this))}},__debugGetText:{value(Au){if(Hd(this))return"";let Qu=na.get(this);if(Qu===void 0){const Cu=__(this),yf=Cu&&ts(Cu);Qu=yf?m7(yf,Cu,Au):"",na.set(this,Qu)}return Qu}}});io=!0}e.enableDebugInfo=Wl;function Jc(zi){const na=zi&7;let _a=na===0?"in out":na===3?"[bivariant]":na===2?"in":na===1?"out":na===4?"[independent]":"";return zi&8?_a+=" (unmeasurable)":zi&16&&(_a+=" (unreliable)"),_a}e.formatVariance=Jc;class au{__debugToString(){var na;switch(this.kind){case 3:return((na=this.debugInfo)==null?void 0:na.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Zr(this.sources,this.targets||Vn(this.sources,()=>"any"),(_a,us)=>`${_a.__debugTypeToString()} -> ${typeof us=="string"?us:us.__debugTypeToString()}`).join(", ");case 2:return Zr(this.sources,this.targets,(_a,us)=>`${_a.__debugTypeToString()} -> ${us().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +Verbose Debug Information: `+(typeof _a=="string"?_a:_a())),k(na,us||$))}e.assert=$;function J(zi,na,_a,us,Au){if(zi!==na){const Qu=_a?us?`${_a} ${us}`:_a:"";k(`Expected ${zi} === ${na}. ${Qu}`,Au||J)}}e.assertEqual=J;function X(zi,na,_a,us){zi>=na&&k(`Expected ${zi} < ${na}. ${_a||""}`,us||X)}e.assertLessThan=X;function ie(zi,na,_a){zi>na&&k(`Expected ${zi} <= ${na}`,_a||ie)}e.assertLessThanOrEqual=ie;function ae(zi,na,_a){zi= ${na}`,_a||ae)}e.assertGreaterThanOrEqual=ae;function ve(zi,na,_a){zi==null&&k(na,_a||ve)}e.assertIsDefined=ve;function we(zi,na,_a){return ve(zi,na,_a||we),zi}e.checkDefined=we;function Fe(zi,na,_a){for(const us of zi)ve(us,na,_a||Fe)}e.assertEachIsDefined=Fe;function et(zi,na,_a){return Fe(zi,na,_a||et),zi}e.checkEachDefined=et;function Pe(zi,na="Illegal value:",_a){const us=typeof zi=="object"&&ef(zi,"kind")&&ef(zi,"pos")?"SyntaxKind: "+Qt(zi.kind):JSON.stringify(zi);return k(`${na} ${us}`,_a||Pe)}e.assertNever=Pe;function dt(zi,na,_a,us){P(1,"assertEachNode")&&$(na===void 0||jr(zi,na),_a||"Unexpected node.",()=>`Node array did not pass test '${st(na)}'.`,us||dt)}e.assertEachNode=dt;function Ie(zi,na,_a,us){P(1,"assertNode")&&$(zi!==void 0&&(na===void 0||na(zi)),_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} did not pass test '${st(na)}'.`,us||Ie)}e.assertNode=Ie;function ct(zi,na,_a,us){P(1,"assertNotNode")&&$(zi===void 0||na===void 0||!na(zi),_a||"Unexpected node.",()=>`Node ${Qt(zi.kind)} should not have passed test '${st(na)}'.`,us||ct)}e.assertNotNode=ct;function Ct(zi,na,_a,us){P(1,"assertOptionalNode")&&$(na===void 0||zi===void 0||na(zi),_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} did not pass test '${st(na)}'.`,us||Ct)}e.assertOptionalNode=Ct;function Lt(zi,na,_a,us){P(1,"assertOptionalToken")&&$(na===void 0||zi===void 0||zi.kind===na,_a||"Unexpected node.",()=>`Node ${Qt(zi==null?void 0:zi.kind)} was not a '${Qt(na)}' token.`,us||Lt)}e.assertOptionalToken=Lt;function Ze(zi,na,_a){P(1,"assertMissingNode")&&$(zi===void 0,na||"Unexpected node.",()=>`Node ${Qt(zi.kind)} was unexpected'.`,_a||Ze)}e.assertMissingNode=Ze;function Ke(zi){}e.type=Ke;function st(zi){if(typeof zi!="function")return"";if(ef(zi,"name"))return zi.name;{const na=Function.prototype.toString.call(zi),_a=/^function\s+([\w$]+)\s*\(/.exec(na);return _a?_a[1]:""}}e.getFunctionName=st;function It(zi){return`{ name: ${Ic(zi.escapedName)}; flags: ${Wr(zi.flags)}; declarations: ${Vn(zi.declarations,na=>Qt(na.kind))} }`}e.formatSymbol=It;function Yt(zi=0,na,_a){const us=at(na);if(zi===0)return us.length>0&&us[0][0]===0?us[0][1]:"0";if(_a){const Au=[];let Qu=zi;for(const[Cu,yf]of us){if(Cu>zi)break;Cu!==0&&Cu&zi&&(Au.push(yf),Qu&=~Cu)}if(Qu===0)return Au.join("|")}else for(const[Au,Qu]of us)if(Au===zi)return Qu;return zi.toString()}e.formatEnum=Yt;const Et=new Map;function at(zi){const na=Et.get(zi);if(na)return na;const _a=[];for(const Au in zi){const Qu=zi[Au];typeof Qu=="number"&&_a.push([Qu,Au])}const us=nh(_a,(Au,Qu)=>pf(Au[0],Qu[0]));return Et.set(zi,us),us}function Qt(zi){return Yt(zi,NM,!1)}e.formatSyntaxKind=Qt;function nn(zi){return Yt(zi,IU,!1)}e.formatSnippetKind=nn;function Rn(zi){return Yt(zi,EX,!1)}e.formatScriptKind=Rn;function cn(zi){return Yt(zi,tu,!0)}e.formatNodeFlags=cn;function qt(zi){return Yt(zi,Iz,!0)}e.formatModifierFlags=qt;function Kt(zi){return Yt(zi,xX,!0)}e.formatTransformFlags=Kt;function wr(zi){return Yt(zi,AX,!0)}e.formatEmitFlags=wr;function Wr(zi){return Yt(zi,yX,!0)}e.formatSymbolFlags=Wr;function jt(zi){return Yt(zi,vX,!0)}e.formatTypeFlags=jt;function En(zi){return Yt(zi,CU,!0)}e.formatSignatureFlags=En;function fr(zi){return Yt(zi,bX,!0)}e.formatObjectFlags=fr;function Tr(zi){return Yt(zi,kz,!0)}e.formatFlowFlags=Tr;function Vr(zi){return Yt(zi,Xne,!0)}e.formatRelationComparisonResult=Vr;function Pn(zi){return Yt(zi,_E,!0)}e.formatCheckMode=Pn;function Fr(zi){return Yt(zi,y$,!0)}e.formatSignatureCheckMode=Fr;function Ki(zi){return Yt(zi,oj,!0)}e.formatTypeFacts=Ki;let io=!1,no;function os(zi){"__debugFlowFlags"in zi||Object.defineProperties(zi,{__tsDebuggerDisplay:{value(){const na=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",_a=this.flags&-2048;return`${na}${_a?` (${Tr(_a)})`:""}`}},__debugFlowFlags:{get(){return Yt(this.flags,kz,!0)}},__debugToString:{value(){return Ia(this)}}})}function Mo(zi){io&&(typeof Object.setPrototypeOf=="function"?(no||(no=Object.create(Object.prototype),os(no)),Object.setPrototypeOf(zi,no)):os(zi))}e.attachFlowNodeDebugInfo=Mo;let $i;function ki(zi){"__tsDebuggerDisplay"in zi||Object.defineProperties(zi,{__tsDebuggerDisplay:{value(na){return na=String(na).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${na}`}}})}function gc(zi){io&&(typeof Object.setPrototypeOf=="function"?($i||($i=Object.create(Array.prototype),ki($i)),Object.setPrototypeOf(zi,$i)):ki(zi))}e.attachNodeArrayDebugInfo=gc;function Wl(){if(io)return;const zi=new WeakMap,na=new WeakMap;Object.defineProperties(W0.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const us=this.flags&33554432?"TransientSymbol":"Symbol",Au=this.flags&-33554433;return`${us} '${Il(this)}'${Au?` (${Wr(Au)})`:""}`}},__debugFlags:{get(){return Wr(this.flags)}}}),Object.defineProperties(W0.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const us=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",Au=this.flags&524288?this.objectFlags&-1344:0;return`${us}${this.symbol?` '${Il(this.symbol)}'`:""}${Au?` (${fr(Au)})`:""}`}},__debugFlags:{get(){return jt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?fr(this.objectFlags):""}},__debugTypeToString:{value(){let us=zi.get(this);return us===void 0&&(us=this.checker.typeToString(this),zi.set(this,us)),us}}}),Object.defineProperties(W0.getSignatureConstructor().prototype,{__debugFlags:{get(){return En(this.flags)}},__debugSignatureToString:{value(){var us;return(us=this.checker)==null?void 0:us.signatureToString(this)}}});const _a=[W0.getNodeConstructor(),W0.getIdentifierConstructor(),W0.getTokenConstructor(),W0.getSourceFileConstructor()];for(const us of _a)ef(us.prototype,"__debugKind")||Object.defineProperties(us.prototype,{__tsDebuggerDisplay:{value(){return`${$g(this)?"GeneratedIdentifier":xn(this)?`Identifier '${Kr(this)}'`:Lu(this)?`PrivateIdentifier '${Kr(this)}'`:Sd(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:S1(this)?`NumericLiteral ${this.text}`:OY(this)?`BigIntLiteral ${this.text}n`:Np(this)?"TypeParameterDeclaration":Os(this)?"ParameterDeclaration":Lh(this)?"ConstructorDeclaration":lE(this)?"GetAccessorDeclaration":Xb(this)?"SetAccessorDeclaration":Y7(this)?"CallSignatureDeclaration":x2(this)?"ConstructSignatureDeclaration":Z2(this)?"IndexSignatureDeclaration":mW(this)?"TypePredicateNode":uE(this)?"TypeReferenceNode":e0(this)?"FunctionTypeNode":RG(this)?"ConstructorTypeNode":m6(this)?"TypeQueryNode":rS(this)?"TypeLiteralNode":GY(this)?"ArrayTypeNode":gW(this)?"TupleTypeNode":MJ(this)?"OptionalTypeNode":hW(this)?"RestTypeNode":fI(this)?"UnionTypeNode":xR(this)?"IntersectionTypeNode":Q7(this)?"ConditionalTypeNode":KN(this)?"InferTypeNode":XN(this)?"ParenthesizedTypeNode":yW(this)?"ThisTypeNode":_I(this)?"TypeOperatorNode":Wx(this)?"IndexedAccessTypeNode":LJ(this)?"MappedTypeNode":S3(this)?"LiteralTypeNode":g6(this)?"NamedTupleMember":E1(this)?"ImportTypeNode":Qt(this.kind)}${this.flags?` (${cn(this.flags)})`:""}`}},__debugKind:{get(){return Qt(this.kind)}},__debugNodeFlags:{get(){return cn(this.flags)}},__debugModifierFlags:{get(){return qt(n6(this))}},__debugTransformFlags:{get(){return Kt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return qD(this)}},__debugEmitFlags:{get(){return wr(wd(this))}},__debugGetText:{value(Au){if(Hd(this))return"";let Qu=na.get(this);if(Qu===void 0){const Cu=__(this),yf=Cu&&ts(Cu);Qu=yf?m7(yf,Cu,Au):"",na.set(this,Qu)}return Qu}}});io=!0}e.enableDebugInfo=Wl;function Jc(zi){const na=zi&7;let _a=na===0?"in out":na===3?"[bivariant]":na===2?"in":na===1?"out":na===4?"[independent]":"";return zi&8?_a+=" (unmeasurable)":zi&16&&(_a+=" (unreliable)"),_a}e.formatVariance=Jc;class au{__debugToString(){var na;switch(this.kind){case 3:return((na=this.debugInfo)==null?void 0:na.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Zr(this.sources,this.targets||Vn(this.sources,()=>"any"),(_a,us)=>`${_a.__debugTypeToString()} -> ${typeof us=="string"?us:us.__debugTypeToString()}`).join(", ");case 2:return Zr(this.sources,this.targets,(_a,us)=>`${_a.__debugTypeToString()} -> ${us().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` @@ -55,7 +55,7 @@ m2: ${this.mapper2.__debugToString().split(` `)}`;default:return Pe(this)}}}e.DebugTypeMapper=au;function qn(zi){return e.isDebugging?Object.setPrototypeOf(zi,au.prototype):zi}e.attachDebugPrototypeIfDebug=qn;function za(zi){return console.log(Ia(zi))}e.printControlFlowGraph=za;function Ia(zi){let na=-1;function _a(qe){return qe.id||(qe.id=na,na--),qe.id}let us;(qe=>{qe.lr="─",qe.ud="│",qe.dr="╭",qe.dl="╮",qe.ul="╯",qe.ur="╰",qe.udr="├",qe.udl="┤",qe.dlr="┬",qe.ulr="┴",qe.udlr="╫"})(us||(us={}));let Au;(qe=>{qe[qe.None=0]="None",qe[qe.Up=1]="Up",qe[qe.Down=2]="Down",qe[qe.Left=4]="Left",qe[qe.Right=8]="Right",qe[qe.UpDown=3]="UpDown",qe[qe.LeftRight=12]="LeftRight",qe[qe.UpLeft=5]="UpLeft",qe[qe.UpRight=9]="UpRight",qe[qe.DownLeft=6]="DownLeft",qe[qe.DownRight=10]="DownRight",qe[qe.UpDownLeft=7]="UpDownLeft",qe[qe.UpDownRight=11]="UpDownRight",qe[qe.UpLeftRight=13]="UpLeftRight",qe[qe.DownLeftRight=14]="DownLeftRight",qe[qe.UpDownLeftRight=15]="UpDownLeftRight",qe[qe.NoChildren=16]="NoChildren"})(Au||(Au={}));const Qu=2032,Cu=882,yf=Object.create(null),w_=[],Eu=$r(zi,new Set);for(const qe of w_)qe.text=Ao(qe.flowNode,qe.circular),Br(qe);const He=Ei(Eu),Hn=Ln(He);return Sr(Eu,0),Io();function dr(qe){return!!(qe.flags&128)}function Mr(qe){return!!(qe.flags&12)&&!!qe.antecedents}function Pr(qe){return!!(qe.flags&Qu)}function Bt(qe){return!!(qe.flags&Cu)}function ln(qe){const Mt=[];for(const ge of qe.edges)ge.source===qe&&Mt.push(ge.target);return Mt}function Wn(qe){const Mt=[];for(const ge of qe.edges)ge.target===qe&&Mt.push(ge.source);return Mt}function $r(qe,Mt){const ge=_a(qe);let mn=yf[ge];if(mn&&Mt.has(qe))return mn.circular=!0,mn={id:-1,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},w_.push(mn),mn;if(Mt.add(qe),!mn)if(yf[ge]=mn={id:ge,flowNode:qe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},w_.push(mn),Mr(qe))for(const Jn of qe.antecedents)Ge(mn,Jn,Mt);else Pr(qe)&&Ge(mn,qe.antecedent,Mt);return Mt.delete(qe),mn}function Ge(qe,Mt,ge){const mn=$r(Mt,ge),Jn={source:qe,target:mn};qe.edges.push(Jn),mn.edges.push(Jn)}function Br(qe){if(qe.level!==-1)return qe.level;let Mt=0;for(const ge of Wn(qe))Mt=Math.max(Mt,Br(ge)+1);return qe.level=Mt}function Ei(qe){let Mt=0;for(const ge of ln(qe))Mt=Math.max(Mt,Ei(ge));return Mt+1}function Ln(qe){const Mt=Ce(Array(qe),0);for(const ge of w_)Mt[ge.level]=Math.max(Mt[ge.level],ge.text.length);return Mt}function Sr(qe,Mt){if(qe.lane===-1){qe.lane=Mt,qe.endLane=Mt;const ge=ln(qe);for(let mn=0;mn0&&Mt++;const Jn=ge[mn];Sr(Jn,Mt),Jn.endLane>qe.endLane&&(Mt=Jn.endLane)}qe.endLane=Mt}}function yi(qe){if(qe&2)return"Start";if(qe&4)return"Branch";if(qe&8)return"Loop";if(qe&16)return"Assignment";if(qe&32)return"True";if(qe&64)return"False";if(qe&128)return"SwitchClause";if(qe&256)return"ArrayMutation";if(qe&512)return"Call";if(qe&1024)return"ReduceLabel";if(qe&1)return"Unreachable";throw new Error}function go(qe){const Mt=ts(qe);return m7(Mt,qe,!1)}function Ao(qe,Mt){let ge=yi(qe.flags);if(Mt&&(ge=`${ge}#${_a(qe)}`),Bt(qe))qe.node&&(ge+=` (${go(qe.node)})`);else if(dr(qe)){const mn=[];for(let Jn=qe.clauseStart;JnMath.max(Lr,qi.lane),0)+1,ge=Ce(Array(Mt),""),mn=Hn.map(()=>Array(Mt)),Jn=Hn.map(()=>Ce(Array(Mt),0));for(const Lr of w_){mn[Lr.level][Lr.lane]=Lr;const qi=ln(Lr);for(let Ro=0;Ro0&&(Cc|=1),Ro0&&(Cc|=1),Ro0?Jn[Lr-1][qi]:0,Ro=qi>0?Jn[Lr][qi-1]:0;let Ts=Jn[Lr][qi];Ts||(vo&8&&(Ts|=12),Ro&2&&(Ts|=3),Jn[Lr][qi]=Ts)}for(let Lr=0;Lr0?qe.repeat(Mt):"";let ge="";for(;ge.length=",c.version)),J1(u.major)||i.push(J1(u.minor)?LE("<",u.version.increment("major")):J1(u.patch)?LE("<",u.version.increment("minor")):LE("<=",u.version)),!0):!1}function ce(e,n,i){const c=fMe(n);if(!c)return!1;const{version:u,major:d,minor:h,patch:S}=c;if(J1(d))(e==="<"||e===">")&&i.push(LE("<",ZT.zero));else switch(e){case"~":i.push(LE(">=",u)),i.push(LE("<",u.increment(J1(h)?"major":"minor")));break;case"^":i.push(LE(">=",u)),i.push(LE("<",u.increment(u.major>0||J1(h)?"major":u.minor>0||J1(S)?"minor":"patch")));break;case"<":case">=":i.push(J1(h)||J1(S)?LE(e,u.with({prerelease:"0"})):LE(e,u));break;case"<=":case">":i.push(J1(h)?LE(e==="<="?"<":">=",u.increment("major").with({prerelease:"0"})):J1(S)?LE(e==="<="?"<":">=",u.increment("minor").with({prerelease:"0"})):LE(e,u));break;case"=":case void 0:J1(h)||J1(S)?(i.push(LE(">=",u.with({prerelease:"0"}))),i.push(LE("<",u.increment(J1(h)?"major":"minor").with({prerelease:"0"})))):i.push(LE("=",u));break;default:return!1}return!0}function J1(e){return e==="*"||e==="x"||e==="X"}function LE(e,n){return{operator:e,operand:n}}function cX(e,n){if(n.length===0)return!0;for(const i of n)if(lX(e,i))return!0;return!1}function lX(e,n){for(const i of n)if(!yU(e,i.operator,i.operand))return!1;return!0}function yU(e,n,i){const c=e.compareTo(i);switch(n){case"<":return c<0;case"<=":return c<=0;case">":return c>0;case">=":return c>=0;case"=":return c===0;default:return re.assertNever(n)}}function Cat(e){return Vn(e,vU).join(" || ")||"*"}function vU(e){return Vn(e,tC).join(" ")}function tC(e){return`${e.operator}${e.operand}`}var Px,bU,KO,TU,RVe,Az,XO,ZT,yN,Cz,SU,_Me,ds,Qe,en=G({"src/compiler/semver.ts"(){md(),Px=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,bU=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,KO=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,TU=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,RVe=/^[a-z0-9-]+$/i,Az=/^(0|[1-9]\d*)$/,XO=class nRe{constructor(n,i=0,c=0,u="",d=""){typeof n=="string"&&({major:n,minor:i,patch:c,prerelease:u,build:d}=re.checkDefined(GD(n),"Invalid version")),re.assert(n>=0,"Invalid argument: major"),re.assert(i>=0,"Invalid argument: minor"),re.assert(c>=0,"Invalid argument: patch");const h=u?ls(u)?u:u.split("."):Yn,S=d?ls(d)?d:d.split("."):Yn;re.assert(jr(h,E=>KO.test(E)),"Invalid argument: prerelease"),re.assert(jr(S,E=>RVe.test(E)),"Invalid argument: build"),this.major=n,this.minor=i,this.patch=c,this.prerelease=h,this.build=S}static tryParse(n){const i=GD(n);if(!i)return;const{major:c,minor:u,patch:d,prerelease:h,build:S}=i;return new nRe(c,u,d,h,S)}compareTo(n){return this===n?0:n===void 0?1:pf(this.major,n.major)||pf(this.minor,n.minor)||pf(this.patch,n.patch)||hU(this.prerelease,n.prerelease)}increment(n){switch(n){case"major":return new nRe(this.major+1,0,0);case"minor":return new nRe(this.major,this.minor+1,0);case"patch":return new nRe(this.major,this.minor,this.patch+1);default:return re.assertNever(n)}}with(n){const{major:i=this.major,minor:c=this.minor,patch:u=this.patch,prerelease:d=this.prerelease,build:h=this.build}=n;return new nRe(i,c,u,d,h)}toString(){let n=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(n+=`-${this.prerelease.join(".")}`),gt(this.build)&&(n+=`+${this.build.join(".")}`),n}},XO.zero=new XO(0,0,0,["0"]),ZT=XO,yN=class UDt{constructor(n){this._alternatives=n?re.checkDefined(Zw(n),"Invalid range spec."):Yn}static tryParse(n){const i=Zw(n);if(i){const c=new UDt("");return c._alternatives=i,c}}test(n){return typeof n=="string"&&(n=new ZT(n)),cX(n,this._alternatives)}toString(){return Cat(this._alternatives)}},Cz=/\|\|/g,SU=/\s+/g,_Me=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ds=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Qe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Ar(e,n){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof n=="function"}function eo(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Ar(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Zo(){if(Y5())try{const{performance:e,PerformanceObserver:n}=MC;if(Ar(e,n))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:n}}catch{}}function Rc(){return Af}var Af,d1,H_,eS=G({"src/compiler/performanceCore.ts"(){md(),Af=eo()||Zo(),d1=Af==null?void 0:Af.performance,H_=d1?()=>d1.now():Date.now?Date.now:()=>+new Date}}),dv,Zh,$p=G({"src/compiler/perfLogger.ts"(){try{const e=g.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";dv=Wot(e)}catch{dv=void 0}Zh=dv!=null&&dv.logEvent?dv:void 0}});function uy(e,n,i,c){return e?tE(n,i,c):vTe}function tE(e,n,i){let c=0;return{enter:u,exit:d};function u(){++c===1&&cf(n)}function d(){--c===0?(cf(i),Tb(e,n,i)):c<0&&re.fail("enter/exit count does not match.")}}function cf(e){if(EU){const n=uX.get(e)??0;uX.set(e,n+1),xU.set(e,H_()),Q5==null||Q5.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Tb(e,n,i){if(EU){const c=(i!==void 0?xU.get(i):void 0)??H_(),u=(n!==void 0?xU.get(n):void 0)??pMe,d=kL.get(e)||0;kL.set(e,d+(c-u)),Q5==null||Q5.measure(e,n,i)}}function Dz(e){return uX.get(e)||0}function jD(e){return kL.get(e)||0}function dMe(e){kL.forEach((n,i)=>e(i,n))}function yTe(e){xU.forEach((n,i)=>e(i))}function qne(e){e!==void 0?kL.delete(e):kL.clear(),Q5==null||Q5.clearMeasures(e)}function jf(e){e!==void 0?(uX.delete(e),xU.delete(e)):(uX.clear(),xU.clear()),Q5==null||Q5.clearMarks(e)}function dd(){return EU}function eb(e=w0){var n;return EU||(EU=!0,IL||(IL=Rc()),IL&&(pMe=IL.performance.timeOrigin,(IL.shouldWriteNativeEvents||(n=e==null?void 0:e.cpuProfilingEnabled)!=null&&n.call(e)||e!=null&&e.debugMode)&&(Q5=IL.performance))),!0}function DL(){EU&&(xU.clear(),uX.clear(),kL.clear(),Q5=void 0,EU=!1)}var IL,Q5,vTe,EU,pMe,xU,uX,kL,Z5=G({"src/compiler/performance.ts"(){md(),vTe={enter:ku,exit:ku},EU=!1,pMe=H_(),xU=new Map,uX=new Map,kL=new Map}}),Kne={};Oe(Kne,{clearMarks:()=>jf,clearMeasures:()=>qne,createTimer:()=>tE,createTimerIf:()=>uy,disable:()=>DL,enable:()=>eb,forEachMark:()=>yTe,forEachMeasure:()=>dMe,getCount:()=>Dz,getDuration:()=>jD,isEnabled:()=>dd,mark:()=>cf,measure:()=>Tb,nullTimer:()=>vTe});var iP=G({"src/compiler/_namespaces/ts.performance.ts"(){Z5()}}),ps,PL,Iz,e9,Dat=G({"src/compiler/tracing.ts"(){md(),iP(),(e=>{let n,i=0,c=0,u;const d=[];let h;const S=[];function E(dt,Ie,ct){if(re.assert(!ps,"Tracing already started"),n===void 0)try{n=MC}catch(st){throw new Error(`tracing requires having fs +`;function Nn(Lr,qi){ge[Lr]+=qi}}function ze(qe){switch(qe){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 Ce(qe,Mt){if(qe.fill)qe.fill(Mt);else for(let ge=0;ge0?qe.repeat(Mt):"";let ge="";for(;ge.length=",c.version)),J1(u.major)||i.push(J1(u.minor)?LE("<",u.version.increment("major")):J1(u.patch)?LE("<",u.version.increment("minor")):LE("<=",u.version)),!0):!1}function ce(e,n,i){const c=fMe(n);if(!c)return!1;const{version:u,major:d,minor:h,patch:S}=c;if(J1(d))(e==="<"||e===">")&&i.push(LE("<",ZT.zero));else switch(e){case"~":i.push(LE(">=",u)),i.push(LE("<",u.increment(J1(h)?"major":"minor")));break;case"^":i.push(LE(">=",u)),i.push(LE("<",u.increment(u.major>0||J1(h)?"major":u.minor>0||J1(S)?"minor":"patch")));break;case"<":case">=":i.push(J1(h)||J1(S)?LE(e,u.with({prerelease:"0"})):LE(e,u));break;case"<=":case">":i.push(J1(h)?LE(e==="<="?"<":">=",u.increment("major").with({prerelease:"0"})):J1(S)?LE(e==="<="?"<":">=",u.increment("minor").with({prerelease:"0"})):LE(e,u));break;case"=":case void 0:J1(h)||J1(S)?(i.push(LE(">=",u.with({prerelease:"0"}))),i.push(LE("<",u.increment(J1(h)?"major":"minor").with({prerelease:"0"})))):i.push(LE("=",u));break;default:return!1}return!0}function J1(e){return e==="*"||e==="x"||e==="X"}function LE(e,n){return{operator:e,operand:n}}function cX(e,n){if(n.length===0)return!0;for(const i of n)if(lX(e,i))return!0;return!1}function lX(e,n){for(const i of n)if(!yU(e,i.operator,i.operand))return!1;return!0}function yU(e,n,i){const c=e.compareTo(i);switch(n){case"<":return c<0;case"<=":return c<=0;case">":return c>0;case">=":return c>=0;case"=":return c===0;default:return re.assertNever(n)}}function Cat(e){return Vn(e,vU).join(" || ")||"*"}function vU(e){return Vn(e,tC).join(" ")}function tC(e){return`${e.operator}${e.operand}`}var Px,bU,KO,TU,RVe,xz,XO,ZT,yN,Az,SU,_Me,ds,Qe,en=G({"src/compiler/semver.ts"(){md(),Px=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,bU=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,KO=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,TU=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,RVe=/^[a-z0-9-]+$/i,xz=/^(0|[1-9]\d*)$/,XO=class nRe{constructor(n,i=0,c=0,u="",d=""){typeof n=="string"&&({major:n,minor:i,patch:c,prerelease:u,build:d}=re.checkDefined(GD(n),"Invalid version")),re.assert(n>=0,"Invalid argument: major"),re.assert(i>=0,"Invalid argument: minor"),re.assert(c>=0,"Invalid argument: patch");const h=u?ls(u)?u:u.split("."):Yn,S=d?ls(d)?d:d.split("."):Yn;re.assert(jr(h,E=>KO.test(E)),"Invalid argument: prerelease"),re.assert(jr(S,E=>RVe.test(E)),"Invalid argument: build"),this.major=n,this.minor=i,this.patch=c,this.prerelease=h,this.build=S}static tryParse(n){const i=GD(n);if(!i)return;const{major:c,minor:u,patch:d,prerelease:h,build:S}=i;return new nRe(c,u,d,h,S)}compareTo(n){return this===n?0:n===void 0?1:pf(this.major,n.major)||pf(this.minor,n.minor)||pf(this.patch,n.patch)||hU(this.prerelease,n.prerelease)}increment(n){switch(n){case"major":return new nRe(this.major+1,0,0);case"minor":return new nRe(this.major,this.minor+1,0);case"patch":return new nRe(this.major,this.minor,this.patch+1);default:return re.assertNever(n)}}with(n){const{major:i=this.major,minor:c=this.minor,patch:u=this.patch,prerelease:d=this.prerelease,build:h=this.build}=n;return new nRe(i,c,u,d,h)}toString(){let n=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(n+=`-${this.prerelease.join(".")}`),gt(this.build)&&(n+=`+${this.build.join(".")}`),n}},XO.zero=new XO(0,0,0,["0"]),ZT=XO,yN=class VDt{constructor(n){this._alternatives=n?re.checkDefined(Zw(n),"Invalid range spec."):Yn}static tryParse(n){const i=Zw(n);if(i){const c=new VDt("");return c._alternatives=i,c}}test(n){return typeof n=="string"&&(n=new ZT(n)),cX(n,this._alternatives)}toString(){return Cat(this._alternatives)}},Az=/\|\|/g,SU=/\s+/g,_Me=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ds=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Qe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Ar(e,n){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof n=="function"}function eo(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Ar(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Zo(){if(Y5())try{const{performance:e,PerformanceObserver:n}=MC;if(Ar(e,n))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:n}}catch{}}function Rc(){return Af}var Af,d1,H_,eS=G({"src/compiler/performanceCore.ts"(){md(),Af=eo()||Zo(),d1=Af==null?void 0:Af.performance,H_=d1?()=>d1.now():Date.now?Date.now:()=>+new Date}}),dv,Zh,$p=G({"src/compiler/perfLogger.ts"(){try{const e=g.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";dv=Wot(e)}catch{dv=void 0}Zh=dv!=null&&dv.logEvent?dv:void 0}});function ly(e,n,i,c){return e?tE(n,i,c):vTe}function tE(e,n,i){let c=0;return{enter:u,exit:d};function u(){++c===1&&cf(n)}function d(){--c===0?(cf(i),Tb(e,n,i)):c<0&&re.fail("enter/exit count does not match.")}}function cf(e){if(EU){const n=uX.get(e)??0;uX.set(e,n+1),xU.set(e,H_()),Q5==null||Q5.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Tb(e,n,i){if(EU){const c=(i!==void 0?xU.get(i):void 0)??H_(),u=(n!==void 0?xU.get(n):void 0)??pMe,d=IL.get(e)||0;IL.set(e,d+(c-u)),Q5==null||Q5.measure(e,n,i)}}function Cz(e){return uX.get(e)||0}function jD(e){return IL.get(e)||0}function dMe(e){IL.forEach((n,i)=>e(i,n))}function yTe(e){xU.forEach((n,i)=>e(i))}function qne(e){e!==void 0?IL.delete(e):IL.clear(),Q5==null||Q5.clearMeasures(e)}function jf(e){e!==void 0?(uX.delete(e),xU.delete(e)):(uX.clear(),xU.clear()),Q5==null||Q5.clearMarks(e)}function dd(){return EU}function eb(e=w0){var n;return EU||(EU=!0,DL||(DL=Rc()),DL&&(pMe=DL.performance.timeOrigin,(DL.shouldWriteNativeEvents||(n=e==null?void 0:e.cpuProfilingEnabled)!=null&&n.call(e)||e!=null&&e.debugMode)&&(Q5=DL.performance))),!0}function CL(){EU&&(xU.clear(),uX.clear(),IL.clear(),Q5=void 0,EU=!1)}var DL,Q5,vTe,EU,pMe,xU,uX,IL,Z5=G({"src/compiler/performance.ts"(){md(),vTe={enter:ku,exit:ku},EU=!1,pMe=H_(),xU=new Map,uX=new Map,IL=new Map}}),Kne={};Oe(Kne,{clearMarks:()=>jf,clearMeasures:()=>qne,createTimer:()=>tE,createTimerIf:()=>ly,disable:()=>CL,enable:()=>eb,forEachMark:()=>yTe,forEachMeasure:()=>dMe,getCount:()=>Cz,getDuration:()=>jD,isEnabled:()=>dd,mark:()=>cf,measure:()=>Tb,nullTimer:()=>vTe});var iP=G({"src/compiler/_namespaces/ts.performance.ts"(){Z5()}}),ps,kL,Dz,e9,Dat=G({"src/compiler/tracing.ts"(){md(),iP(),(e=>{let n,i=0,c=0,u;const d=[];let h;const S=[];function E(dt,Ie,ct){if(re.assert(!ps,"Tracing already started"),n===void 0)try{n=MC}catch(st){throw new Error(`tracing requires having fs (original error: ${st.message||st})`)}u=dt,d.length=0,h===void 0&&(h=vl(Ie,"legend.json")),n.existsSync(Ie)||n.mkdirSync(Ie,{recursive:!0});const Ct=u==="build"?`.${process.pid}-${++i}`:u==="server"?`.${process.pid}`:"",Lt=vl(Ie,`trace${Ct}.json`),Ze=vl(Ie,`types${Ct}.json`);S.push({configFilePath:ct,tracePath:Lt,typesPath:Ze}),c=n.openSync(Lt,"w"),ps=e;const Ke={cat:"__metadata",ph:"M",ts:1e3*H_(),pid:1,tid:1};n.writeSync(c,`[ `+[{name:"process_name",args:{name:"tsc"},...Ke},{name:"thread_name",args:{name:"Main"},...Ke},{name:"TracingStartedInBrowser",...Ke,cat:"disabled-by-default-devtools.timeline"}].map(st=>JSON.stringify(st)).join(`, `))}e.startTracing=E;function P(){re.assert(ps,"Tracing is not in progress"),re.assert(!!d.length==(u!=="server")),n.writeSync(c,` @@ -63,13 +63,13 @@ ${ge.join(` `),n.closeSync(c),ps=void 0,d.length?et(d):S[S.length-1].typesPath=void 0}e.stopTracing=P;function k(dt){u!=="server"&&d.push(dt)}e.recordType=k,(dt=>{dt.Parse="parse",dt.Program="program",dt.Bind="bind",dt.Check="check",dt.CheckTypes="checkTypes",dt.Emit="emit",dt.Session="session"})(e.Phase||(e.Phase={}));function F(dt,Ie,ct){we("I",dt,Ie,ct,'"s":"g"')}e.instant=F;const $=[];function J(dt,Ie,ct,Ct=!1){Ct&&we("B",dt,Ie,ct),$.push({phase:dt,name:Ie,args:ct,time:1e3*H_(),separateBeginAndEnd:Ct})}e.push=J;function X(dt){re.assert($.length>0),ve($.length-1,1e3*H_(),dt),$.length--}e.pop=X;function ie(){const dt=1e3*H_();for(let Ie=$.length-1;Ie>=0;Ie--)ve(Ie,dt);$.length=0}e.popAll=ie;const ae=1e3*10;function ve(dt,Ie,ct){const{phase:Ct,name:Lt,args:Ze,time:Ke,separateBeginAndEnd:st}=$[dt];st?(re.assert(!ct,"`results` are not supported for events with `separateBeginAndEnd`"),we("E",Ct,Lt,Ze,void 0,Ie)):ae-Ke%ae<=Ie-Ke&&we("X",Ct,Lt,{...Ze,results:ct},`"dur":${Ie-Ke}`,Ke)}function we(dt,Ie,ct,Ct,Lt,Ze=1e3*H_()){u==="server"&&Ie==="checkTypes"||(cf("beginTracing"),n.writeSync(c,`, {"pid":1,"tid":1,"ph":"${dt}","cat":"${Ie}","ts":${Ze},"name":"${ct}"`),Lt&&n.writeSync(c,`,${Lt}`),Ct&&n.writeSync(c,`,"args":${JSON.stringify(Ct)}`),n.writeSync(c,"}"),cf("endTracing"),Tb("Tracing","beginTracing","endTracing"))}function Fe(dt){const Ie=ts(dt);return Ie?{path:Ie.path,start:ct(xm(Ie,dt.pos)),end:ct(xm(Ie,dt.end))}:void 0;function ct(Ct){return{line:Ct.line+1,character:Ct.character+1}}}function et(dt){var Ie,ct,Ct,Lt,Ze,Ke,st,It,Yt,Et,at,Qt,nn,Rn,cn,qt,Kt,wr,Wr;cf("beginDumpTypes");const jt=S[S.length-1].typesPath,En=n.openSync(jt,"w"),fr=new Map;n.writeSync(En,"[");const Tr=dt.length;for(let Vr=0;Vrza.id),referenceLocation:Fe(qn.node)}}let Mo={};if(Pn.flags&16777216){const qn=Pn;Mo={conditionalCheckType:(Ke=qn.checkType)==null?void 0:Ke.id,conditionalExtendsType:(st=qn.extendsType)==null?void 0:st.id,conditionalTrueType:((It=qn.resolvedTrueType)==null?void 0:It.id)??-1,conditionalFalseType:((Yt=qn.resolvedFalseType)==null?void 0:Yt.id)??-1}}let $i={};if(Pn.flags&33554432){const qn=Pn;$i={substitutionBaseType:(Et=qn.baseType)==null?void 0:Et.id,constraintType:(at=qn.constraint)==null?void 0:at.id}}let ki={};if(Fr&1024){const qn=Pn;ki={reverseMappedSourceType:(Qt=qn.source)==null?void 0:Qt.id,reverseMappedMappedType:(nn=qn.mappedType)==null?void 0:nn.id,reverseMappedConstraintType:(Rn=qn.constraintType)==null?void 0:Rn.id}}let gc={};if(Fr&256){const qn=Pn;gc={evolvingArrayElementType:qn.elementType.id,evolvingArrayFinalType:(cn=qn.finalArrayType)==null?void 0:cn.id}}let Wl;const Jc=Pn.checker.getRecursionIdentity(Pn);Jc&&(Wl=fr.get(Jc),Wl||(Wl=fr.size,fr.set(Jc,Wl)));const au={id:Pn.id,intrinsicName:Pn.intrinsicName,symbolName:(Ki==null?void 0:Ki.escapedName)&&Ic(Ki.escapedName),recursionId:Wl,isTuple:Fr&8?!0:void 0,unionTypes:Pn.flags&1048576?(qt=Pn.types)==null?void 0:qt.map(qn=>qn.id):void 0,intersectionTypes:Pn.flags&2097152?Pn.types.map(qn=>qn.id):void 0,aliasTypeArguments:(Kt=Pn.aliasTypeArguments)==null?void 0:Kt.map(qn=>qn.id),keyofType:Pn.flags&4194304?(wr=Pn.type)==null?void 0:wr.id:void 0,...no,...os,...Mo,...$i,...ki,...gc,destructuringPattern:Fe(Pn.pattern),firstDeclaration:Fe((Wr=Ki==null?void 0:Ki.declarations)==null?void 0:Wr[0]),flags:re.formatTypeFlags(Pn.flags).split("|"),display:io};n.writeSync(En,JSON.stringify(au)),Vr(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(NM||{}),tu=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(tu||{}),kz=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(kz||{}),F_e=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(F_e||{}),Xne=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Xne||{}),W_e=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(W_e||{}),fX=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(fX||{}),Pz=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Pz||{}),_X=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(_X||{}),QO=class{},dX=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(dX||{}),pX=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(pX||{}),mX=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(mX||{}),gX=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(gX||{}),AU=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(AU||{}),Yne=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Yne||{}),Nz=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Nz||{}),hX=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(hX||{}),Qne=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Qne||{}),Zne=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(Zne||{}),ere=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ere||{}),tre=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(tre||{}),nre=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(nre||{}),rre=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(rre||{}),ire=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ire||{}),yX=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(yX||{}),ore=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(ore||{}),are=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(are||{}),sre=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(sre||{}),cre=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(cre||{}),vX=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(vX||{}),bX=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(bX||{}),TX=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(TX||{}),lre=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(lre||{}),ure=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ure||{}),fre=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(fre||{}),_re=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(_re||{}),SX=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(SX||{}),CU=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(CU||{}),dre=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(dre||{}),pre=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(pre||{}),mre=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(mre||{}),gre=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(gre||{}),hre=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(hre||{}),yre=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(yre||{}),wz=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(wz||{}),t9=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(t9||{}),vre=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(vre||{}),bre=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(bre||{}),Tre=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Tre||{}),Sre=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Sre||{}),Rz=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Rz||{}),DU=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(DU||{}),n9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(n9||{}),Ere=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ere||{}),EX=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(EX||{}),xre=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(xre||{}),Are=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Are||{}),Mz=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Mz||{}),Cre=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Cre||{}),Dre=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Dre||{}),xX=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(xX||{}),IU=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(IU||{}),AX=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(AX||{}),Ire=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ire||{}),kre=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(kre||{}),Pre=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(Pre||{}),Nre=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Nre||{}),CX=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(CX||{}),DX=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(DX||{}),IX=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(IX||{}),wre=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(wre||{}),kU={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}},Rre=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Rre||{})}});function Lz(e){let n=5381;for(let i=0;i{Fe.isClosed=!0,A8(n,Fe)}}}function S(ae){const ve=[];return ve.pollingInterval=ae,ve.pollIndex=0,ve.pollScheduled=!1,ve}function E(ae,ve){ve.pollIndex=k(ve,ve.pollingInterval,ve.pollIndex,Wre[ve.pollingInterval]),ve.length?ie(ve.pollingInterval):(re.assert(ve.pollIndex===0),ve.pollScheduled=!1)}function P(ae,ve){k(i,250,0,i.length),E(ae,ve),!ve.pollScheduled&&i.length&&ie(250)}function k(ae,ve,we,Fe){return mMe(e,ae,we,Fe,et);function et(Pe,dt,Ie){Ie?(Pe.unchangedPolls=0,ae!==i&&(ae[dt]=void 0,J(Pe))):Pe.unchangedPolls!==Bre[ve]?Pe.unchangedPolls++:ae===i?(Pe.unchangedPolls=1,ae[dt]=void 0,$(Pe,250)):ve!==2e3&&(Pe.unchangedPolls++,ae[dt]=void 0,$(Pe,ve===250?500:2e3))}}function F(ae){switch(ae){case 250:return c;case 500:return u;case 2e3:return d}}function $(ae,ve){F(ve).push(ae),X(ve)}function J(ae){i.push(ae),X(250)}function X(ae){F(ae).pollScheduled||ie(ae)}function ie(ae){F(ae).pollScheduled=e.setTimeout(ae===250?P:E,ae,ae===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",F(ae))}}function Iat(e,n){const i=zg(),c=new Map,u=H1(n);return d;function d(S,E,P,k){const F=u(S);i.add(F,E);const $=ws(F)||".",J=c.get($)||h(ws(S)||".",$,k);return J.referenceCount++,{close:()=>{J.referenceCount===1?(J.close(),c.delete($)):J.referenceCount--,i.remove(F,E)}}}function h(S,E,P){const k=e(S,1,(F,$,J)=>{if(!As($))return;const X=vf($,S),ie=X&&i.get(u(X));if(ie)for(const ae of ie)ae(X,1,J)},!1,500,P);return k.referenceCount=0,c.set(E,k),k}}function PU(e){const n=[];let i=0,c;return u;function u(S,E){const P={fileName:S,callback:E,mtime:ZO(e,S)};return n.push(P),h(),{close:()=>{P.isClosed=!0,A8(n,P)}}}function d(){c=void 0,i=mMe(e,n,i,Wre[250]),h()}function h(){!n.length||c||(c=e.setTimeout(d,2e3,"pollQueue"))}}function STe(e,n,i,c,u){const h=H1(n)(i),S=e.get(h);return S?S.callbacks.push(c):e.set(h,{watcher:u((E,P,k)=>{var F;return(F=e.get(h))==null?void 0:F.callbacks.slice().forEach($=>$(E,P,k))}),callbacks:[c]}),{close:()=>{const E=e.get(h);E&&(!AL(E.callbacks,c)||E.callbacks.length||(e.delete(h),YE(E)))}}}function kat(e,n){const i=e.mtime.getTime(),c=n.getTime();return i!==c?(e.mtime=n,e.callback(e.fileName,j_e(i,c),n),!0):!1}function j_e(e,n){return e===0?0:n===0?2:1}function Mre(e){return zre(e)}function gMe(e){zre=e}function Pat({watchDirectory:e,useCaseSensitiveFileNames:n,getCurrentDirectory:i,getAccessibleSortedChildDirectories:c,fileSystemEntryExists:u,realpath:d,setTimeout:h,clearTimeout:S}){const E=new Map,P=zg(),k=new Map;let F;const $=Xw(!n),J=H1(n);return(Ie,ct,Ct,Lt)=>Ct?X(Ie,Lt,ct):e(Ie,ct,Ct,Lt);function X(Ie,ct,Ct){const Lt=J(Ie);let Ze=E.get(Lt);Ze?Ze.refCount++:(Ze={watcher:e(Ie,st=>{Pe(st,ct)||(ct!=null&&ct.synchronousWatchDirectory?(ie(Lt,st),et(Ie,Lt,ct)):ae(Ie,Lt,st,ct))},!1,ct),refCount:1,childWatches:Yn},E.set(Lt,Ze),et(Ie,Lt,ct));const Ke=Ct&&{dirName:Ie,callback:Ct};return Ke&&P.add(Lt,Ke),{dirName:Ie,close:()=>{const st=re.checkDefined(E.get(Lt));Ke&&P.remove(Lt,Ke),st.refCount--,!st.refCount&&(E.delete(Lt),YE(st),st.childWatches.forEach(Ib))}}}function ie(Ie,ct,Ct){let Lt,Ze;As(ct)?Lt=ct:Ze=ct,P.forEach((Ke,st)=>{if(!(Ze&&Ze.get(st)===!0)&&(st===Ie||qf(Ie,st)&&Ie[st.length]===qp))if(Ze)if(Ct){const It=Ze.get(st);It?It.push(...Ct):Ze.set(st,Ct.slice())}else Ze.set(st,!0);else Ke.forEach(({callback:It})=>It(Lt))})}function ae(Ie,ct,Ct,Lt){const Ze=E.get(ct);if(Ze&&u(Ie,1)){ve(Ie,ct,Ct,Lt);return}ie(ct,Ct),Fe(Ze)}function ve(Ie,ct,Ct,Lt){const Ze=k.get(ct);Ze?Ze.fileNames.push(Ct):k.set(ct,{dirName:Ie,options:Lt,fileNames:[Ct]}),F&&(S(F),F=void 0),F=h(we,1e3,"timerToUpdateChildWatches")}function we(){F=void 0,Mre(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const Ie=H_(),ct=new Map;for(;!F&&k.size;){const Lt=k.entries().next();re.assert(!Lt.done);const{value:[Ze,{dirName:Ke,options:st,fileNames:It}]}=Lt;k.delete(Ze);const Yt=et(Ke,Ze,st);ie(Ze,ct,Yt?void 0:It)}Mre(`sysLog:: invokingWatchers:: Elapsed:: ${H_()-Ie}ms:: ${k.size}`),P.forEach((Lt,Ze)=>{const Ke=ct.get(Ze);Ke&&Lt.forEach(({callback:st,dirName:It})=>{ls(Ke)?Ke.forEach(st):st(It)})});const Ct=H_()-Ie;Mre(`sysLog:: Elapsed:: ${Ct}ms:: onTimerToUpdateChildWatches:: ${k.size} ${F}`)}function Fe(Ie){if(!Ie)return;const ct=Ie.childWatches;Ie.childWatches=Yn;for(const Ct of ct)Ct.close(),Fe(E.get(J(Ct.dirName)))}function et(Ie,ct,Ct){const Lt=E.get(ct);if(!Lt)return!1;let Ze;const Ke=zD(u(Ie,1)?Qo(c(Ie),Yt=>{const Et=vf(Yt,Ie);return!Pe(Et,Ct)&&$(Et,hf(d(Et)))===0?Et:void 0}):Yn,Lt.childWatches,(Yt,Et)=>$(Yt,Et.dirName),st,Ib,It);return Lt.childWatches=Ze||Yn,Ke;function st(Yt){const Et=X(Yt,Ct);It(Et)}function It(Yt){(Ze||(Ze=[])).push(Yt)}}function Pe(Ie,ct){return gt(NU,Ct=>dt(Ie,Ct))||hMe(Ie,ct,n,i)}function dt(Ie,ct){return Ie.includes(ct)?!0:n?!1:J(Ie).includes(ct)}}function MVe(e){return(n,i,c)=>e(i===1?"change":"rename","",c)}function Nat(e,n,i){return(c,u,d)=>{c==="rename"?(d||(d=i(e)||oP),n(e,d!==oP?0:2,d)):n(e,1,d)}}function hMe(e,n,i,c){return((n==null?void 0:n.excludeDirectories)||(n==null?void 0:n.excludeFiles))&&(Bpe(e,n==null?void 0:n.excludeFiles,i,c())||Bpe(e,n==null?void 0:n.excludeDirectories,i,c()))}function Lre(e,n,i,c,u){return(d,h)=>{if(d==="rename"){const S=h?hf(vl(e,h)):e;(!h||!hMe(S,i,c,u))&&n(S)}}}function ETe({pollingWatchFileWorker:e,getModifiedTime:n,setTimeout:i,clearTimeout:c,fsWatchWorker:u,fileSystemEntryExists:d,useCaseSensitiveFileNames:h,getCurrentDirectory:S,fsSupportsRecursiveFsWatch:E,getAccessibleSortedChildDirectories:P,realpath:k,tscWatchFile:F,useNonPollingWatchers:$,tscWatchDirectory:J,inodeWatching:X,sysLog:ie}){const ae=new Map,ve=new Map,we=new Map;let Fe,et,Pe,dt,Ie=!1;return{watchFile:ct,watchDirectory:st};function ct(nn,Rn,cn,qt){qt=Ze(qt,$);const Kt=re.checkDefined(qt.watchFile);switch(Kt){case 0:return Et(nn,Rn,250,void 0);case 1:return Et(nn,Rn,cn,void 0);case 2:return Ct()(nn,Rn,cn,void 0);case 3:return Lt()(nn,Rn,void 0,void 0);case 4:return at(nn,0,Nat(nn,Rn,n),!1,cn,UQ(qt));case 5:return Pe||(Pe=Iat(at,h)),Pe(nn,Rn,cn,UQ(qt));default:re.assertNever(Kt)}}function Ct(){return Fe||(Fe=G_e({getModifiedTime:n,setTimeout:i}))}function Lt(){return et||(et=PU({getModifiedTime:n,setTimeout:i}))}function Ze(nn,Rn){if(nn&&nn.watchFile!==void 0)return nn;switch(F){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ke(4,1,nn);case"UseFsEventsWithFallbackDynamicPolling":return Ke(4,2,nn);case"UseFsEventsOnParentDirectory":Rn=!0;default:return Rn?Ke(5,1,nn):{watchFile:4}}}function Ke(nn,Rn,cn){const qt=cn==null?void 0:cn.fallbackPolling;return{watchFile:nn,fallbackPolling:qt===void 0?Rn:qt}}function st(nn,Rn,cn,qt){return E?at(nn,1,Lre(nn,Rn,qt,h,S),cn,500,UQ(qt)):(dt||(dt=Pat({useCaseSensitiveFileNames:h,getCurrentDirectory:S,fileSystemEntryExists:d,getAccessibleSortedChildDirectories:P,watchDirectory:It,realpath:k,setTimeout:i,clearTimeout:c})),dt(nn,Rn,cn,qt))}function It(nn,Rn,cn,qt){re.assert(!cn);const Kt=Yt(qt),wr=re.checkDefined(Kt.watchDirectory);switch(wr){case 1:return Et(nn,()=>Rn(nn),500,void 0);case 2:return Ct()(nn,()=>Rn(nn),500,void 0);case 3:return Lt()(nn,()=>Rn(nn),void 0,void 0);case 0:return at(nn,1,Lre(nn,Rn,qt,h,S),cn,500,UQ(Kt));default:re.assertNever(wr)}}function Yt(nn){if(nn&&nn.watchDirectory!==void 0)return nn;switch(J){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Rn=nn==null?void 0:nn.fallbackPolling;return{watchDirectory:0,fallbackPolling:Rn!==void 0?Rn:void 0}}}function Et(nn,Rn,cn,qt){return STe(ae,h,nn,Rn,Kt=>e(nn,Kt,cn,qt))}function at(nn,Rn,cn,qt,Kt,wr){return STe(qt?we:ve,h,nn,cn,Wr=>Qt(nn,Rn,Wr,qt,Kt,wr))}function Qt(nn,Rn,cn,qt,Kt,wr){let Wr,jt;X&&(Wr=nn.substring(nn.lastIndexOf(qp)),jt=Wr.slice(qp.length));let En=d(nn,Rn)?Tr():Fr();return{close:()=>{En&&(En.close(),En=void 0)}};function fr(Ki){En&&(ie(`sysLog:: ${nn}:: Changing watcher to ${Ki===Tr?"Present":"Missing"}FileSystemEntryWatcher`),En.close(),En=Ki())}function Tr(){if(Ie)return ie(`sysLog:: ${nn}:: Defaulting to watchFile`),Pn();try{const Ki=u(nn,qt,X?Vr:cn);return Ki.on("error",()=>{cn("rename",""),fr(Fr)}),Ki}catch(Ki){return Ie||(Ie=Ki.code==="ENOSPC"),ie(`sysLog:: ${nn}:: Changing to watchFile`),Pn()}}function Vr(Ki,io){let no;if(io&&h_(io,"~")&&(no=io,io=io.slice(0,io.length-1)),Ki==="rename"&&(!io||io===jt||h_(io,Wr))){const os=n(nn)||oP;no&&cn(Ki,no,os),cn(Ki,io,os),X?fr(os===oP?Fr:Tr):os===oP&&fr(Fr)}else no&&cn(Ki,no),cn(Ki,io)}function Pn(){return ct(nn,MVe(cn),Kt,wr)}function Fr(){return ct(nn,(Ki,io,no)=>{io===0&&(no||(no=n(nn)||oP),no!==oP&&(cn("rename","",no),fr(Tr)))},Kt,wr)}}}function yMe(e){const n=e.writeFile;e.writeFile=(i,c,u)=>L7(i,c,!!u,(d,h,S)=>n.call(e,d,h,S),d=>e.createDirectory(d),d=>e.directoryExists(d))}function LVe(e){w0=e}var xTe,Ore,oP,Fre,Wre,Bre,NU,zre,aP,w0,V_e=G({"src/compiler/sys.ts"(){md(),xTe=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(xTe||{}),Ore=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ore||{}),oP=new Date(0),Fre={Low:32,Medium:64,High:256},Wre=B_e(Fre),Bre=B_e(Fre),NU=["/node_modules/.","/.git","/.#"],zre=ku,aP=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(aP||{}),w0=(()=>{const e="\uFEFF";function n(){const c=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,u=MC,d=MC,h=MC;let S;try{S=MC}catch{S=void 0}let E,P="./profile.cpuprofile";const k=MC.Buffer,F=process.platform==="linux"||process.platform==="darwin",$=h.platform(),J=Lt(),X=u.realpathSync.native?process.platform==="win32"?Kt:u.realpathSync.native:u.realpathSync,ie=__filename.endsWith("sys.js")?d.join(d.dirname(__dirname),"__fake__.js"):__filename,ae=process.platform==="win32"||process.platform==="darwin",ve=Pd(()=>process.cwd()),{watchFile:we,watchDirectory:Fe}=ETe({pollingWatchFileWorker:Ke,getModifiedTime:Wr,setTimeout,clearTimeout,fsWatchWorker:st,useCaseSensitiveFileNames:J,getCurrentDirectory:ve,fileSystemEntryExists:nn,fsSupportsRecursiveFsWatch:ae,getAccessibleSortedChildDirectories:Tr=>at(Tr).directories,realpath:wr,tscWatchFile:g.TSC_WATCHFILE,useNonPollingWatchers:!!g.TSC_NONPOLLING_WATCHER,tscWatchDirectory:g.TSC_WATCHDIRECTORY,inodeWatching:F,sysLog:Mre}),et={args:process.argv.slice(2),newLine:h.EOL,useCaseSensitiveFileNames:J,write(Tr){process.stdout.write(Tr)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Yt,writeFile:Et,watchFile:we,watchDirectory:Fe,resolvePath:Tr=>d.resolve(Tr),fileExists:Rn,directoryExists:cn,createDirectory(Tr){if(!et.directoryExists(Tr))try{u.mkdirSync(Tr)}catch(Vr){if(Vr.code!=="EEXIST")throw Vr}},getExecutingFilePath(){return ie},getCurrentDirectory:ve,getDirectories:qt,getEnvironmentVariable(Tr){return g[Tr]||""},readDirectory:Qt,getModifiedTime:Wr,setModifiedTime:jt,deleteFile:En,createHash:S?fr:Lz,createSHA256Hash:S?fr:void 0,getMemoryUsage(){return ORe.gc&&ORe.gc(),process.memoryUsage().heapUsed},getFileSize(Tr){try{const Vr=Pe(Tr);if(Vr!=null&&Vr.isFile())return Vr.size}catch{}return 0},exit(Tr){ct(()=>process.exit(Tr))},enableCPUProfiler:dt,disableCPUProfiler:ct,cpuProfilingEnabled:()=>!!E||ni(process.execArgv,"--cpu-prof")||ni(process.execArgv,"--prof"),realpath:wr,debugMode:!!g.NODE_INSPECTOR_IPC||!!g.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,Tr=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Tr))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{MC.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var Tr;const Vr=(Tr=process.stdout)==null?void 0:Tr._handle;Vr&&Vr.setBlocking&&Vr.setBlocking(!0)},bufferFrom:Ct,base64decode:Tr=>Ct(Tr,"base64").toString("utf8"),base64encode:Tr=>Ct(Tr).toString("base64"),require:(Tr,Vr)=>{try{const Pn=x2e(Vr,Tr,et);return{module:Wot(Pn),modulePath:Pn,error:void 0}}catch(Pn){return{module:void 0,modulePath:void 0,error:Pn}}}};return et;function Pe(Tr){return u.statSync(Tr,{throwIfNoEntry:!1})}function dt(Tr,Vr){if(E)return Vr(),!1;const Pn=MC;if(!Pn||!Pn.Session)return Vr(),!1;const Fr=new Pn.Session;return Fr.connect(),Fr.post("Profiler.enable",()=>{Fr.post("Profiler.start",()=>{E=Fr,P=Tr,Vr()})}),!0}function Ie(Tr){let Vr=0;const Pn=new Map,Fr=$1(d.dirname(ie)),Ki=`file://${Pg(Fr)===1?"":"/"}${Fr}`;for(const io of Tr.nodes)if(io.callFrame.url){const no=$1(io.callFrame.url);OE(Ki,no,J)?io.callFrame.url=GC(Ki,no,Ki,H1(J),!0):c.test(no)||(io.callFrame.url=(Pn.has(no)?Pn:Pn.set(no,`external${Vr}.js`)).get(no),Vr++)}return Tr}function ct(Tr){if(E&&E!=="stopping"){const Vr=E;return E.post("Profiler.stop",(Pn,{profile:Fr})=>{var Ki;if(!Pn){try{(Ki=Pe(P))!=null&&Ki.isDirectory()&&(P=d.join(P,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{u.mkdirSync(d.dirname(P),{recursive:!0})}catch{}u.writeFileSync(P,JSON.stringify(Ie(Fr)))}E=void 0,Vr.disconnect(),Tr()}),E="stopping",!0}else return Tr(),!1}function Ct(Tr,Vr){return k.from&&k.from!==Int8Array.from?k.from(Tr,Vr):new k(Tr,Vr)}function Lt(){return $==="win32"||$==="win64"?!1:!Rn(Ze(__filename))}function Ze(Tr){return Tr.replace(/\w/g,Vr=>{const Pn=Vr.toUpperCase();return Vr===Pn?Vr.toLowerCase():Pn})}function Ke(Tr,Vr,Pn){u.watchFile(Tr,{persistent:!0,interval:Pn},Ki);let Fr;return{close:()=>u.unwatchFile(Tr,Ki)};function Ki(io,no){const os=+no.mtime==0||Fr===2;if(+io.mtime==0){if(os)return;Fr=2}else if(os)Fr=0;else{if(+io.mtime==+no.mtime)return;Fr=1}Vr(Tr,Fr,io.mtime)}}function st(Tr,Vr,Pn){return u.watch(Tr,ae?{persistent:!0,recursive:!!Vr}:{persistent:!0},Pn)}function It(Tr,Vr){let Pn;try{Pn=u.readFileSync(Tr)}catch{return}let Fr=Pn.length;if(Fr>=2&&Pn[0]===254&&Pn[1]===255){Fr&=-2;for(let Ki=0;Ki=2&&Pn[0]===255&&Pn[1]===254?Pn.toString("utf16le",2):Fr>=3&&Pn[0]===239&&Pn[1]===187&&Pn[2]===191?Pn.toString("utf8",3):Pn.toString("utf8")}function Yt(Tr,Vr){var Pn,Fr;(Pn=Zh)==null||Pn.logStartReadFile(Tr);const Ki=It(Tr);return(Fr=Zh)==null||Fr.logStopReadFile(),Ki}function Et(Tr,Vr,Pn){var Fr;(Fr=Zh)==null||Fr.logEvent("WriteFile: "+Tr),Pn&&(Vr=e+Vr);let Ki;try{Ki=u.openSync(Tr,"w"),u.writeSync(Ki,Vr,void 0,"utf8")}finally{Ki!==void 0&&u.closeSync(Ki)}}function at(Tr){var Vr;(Vr=Zh)==null||Vr.logEvent("ReadDir: "+(Tr||"."));try{const Pn=u.readdirSync(Tr||".",{withFileTypes:!0}),Fr=[],Ki=[];for(const io of Pn){const no=typeof io=="string"?io:io.name;if(no==="."||no==="..")continue;let os;if(typeof io=="string"||io.isSymbolicLink()){const Mo=vl(Tr,no);try{if(os=Pe(Mo),!os)continue}catch{continue}}else os=io;os.isFile()?Fr.push(no):os.isDirectory()&&Ki.push(no)}return Fr.sort(),Ki.sort(),{files:Fr,directories:Ki}}catch{return Xde}}function Qt(Tr,Vr,Pn,Fr,Ki){return ioe(Tr,Vr,Pn,Fr,J,process.cwd(),Ki,at,wr)}function nn(Tr,Vr){const Pn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Fr=Pe(Tr);if(!Fr)return!1;switch(Vr){case 0:return Fr.isFile();case 1:return Fr.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Pn}}function Rn(Tr){return nn(Tr,0)}function cn(Tr){return nn(Tr,1)}function qt(Tr){return at(Tr).directories.slice()}function Kt(Tr){return Tr.length<260?u.realpathSync.native(Tr):u.realpathSync(Tr)}function wr(Tr){try{return X(Tr)}catch{return Tr}}function Wr(Tr){var Vr;const Pn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Vr=Pe(Tr))==null?void 0:Vr.mtime}catch{return}finally{Error.stackTraceLimit=Pn}}function jt(Tr,Vr){try{u.utimesSync(Tr,Vr,Vr)}catch{return}}function En(Tr){try{return u.unlinkSync(Tr)}catch{return}}function fr(Tr){const Vr=S.createHash("sha256");return Vr.update(Tr),Vr.digest("hex")}}let i;return Y5()&&(i=n()),i&&yMe(i),i})(),w0&&w0.getEnvironmentVariable&&(z_e(w0),re.setAssertionLevel(/^development$/i.test(w0.getEnvironmentVariable("NODE_ENV"))?1:0)),w0&&w0.debugMode&&(re.isDebugging=!0)}});function wU(e){return e===47||e===92}function kX(e){return e7(e)<0}function nE(e){return e7(e)>0}function Gre(e){const n=e7(e);return n>0&&n===e.length}function m0(e){return e7(e)!==0}function V2(e){return/^\.\.?($|[\\/])/.test(e)}function jre(e){return!m0(e)&&!V2(e)}function r9(e){return Jg(e).includes(".")}function mm(e,n){return e.length>n.length&&h_(e,n)}function pv(e,n){for(const i of n)if(mm(e,i))return!0;return!1}function VD(e){return e.length>0&&wU(e.charCodeAt(e.length-1))}function U2(e){return e>=97&&e<=122||e>=65&&e<=90}function vMe(e,n){const i=e.charCodeAt(n);if(i===58)return n+1;if(i===37&&e.charCodeAt(n+1)===51){const c=e.charCodeAt(n+2);if(c===97||c===65)return n+3}return-1}function e7(e){if(!e)return 0;const n=e.charCodeAt(0);if(n===47||n===92){if(e.charCodeAt(1)!==n)return 1;const c=e.indexOf(n===47?qp:r7,2);return c<0?e.length:c+1}if(U2(n)&&e.charCodeAt(1)===58){const c=e.charCodeAt(2);if(c===47||c===92)return 3;if(e.length===2)return 2}const i=e.indexOf(wX);if(i!==-1){const c=i+wX.length,u=e.indexOf(qp,c);if(u!==-1){const d=e.slice(0,i),h=e.slice(c,u);if(d==="file"&&(h===""||h==="localhost")&&U2(e.charCodeAt(u+1))){const S=vMe(e,u+2);if(S!==-1){if(e.charCodeAt(S)===47)return~(S+1);if(S===e.length)return~S}}return~(u+1)}return~e.length}return 0}function Pg(e){const n=e7(e);return n<0?~n:n}function ws(e){e=$1(e);const n=Pg(e);return n===e.length?e:(e=bN(e),e.slice(0,Math.max(n,e.lastIndexOf(qp))))}function Jg(e,n,i){if(e=$1(e),Pg(e)===e.length)return"";e=bN(e);const u=e.slice(Math.max(Pg(e),e.lastIndexOf(qp)+1)),d=n!==void 0&&i!==void 0?t7(u,n,i):void 0;return d?u.slice(0,u.length-d.length):u}function bMe(e,n,i){if(qf(n,".")||(n="."+n),e.length>=n.length&&e.charCodeAt(e.length-n.length)===46){const c=e.slice(e.length-n.length);if(i(c,n))return c}}function wat(e,n,i){if(typeof n=="string")return bMe(e,n,i)||"";for(const c of n){const u=bMe(e,c,i);if(u)return u}return""}function t7(e,n,i){if(n)return wat(bN(e),n,i?pN:ZA);const c=Jg(e),u=c.lastIndexOf(".");return u>=0?c.substring(u):""}function vN(e,n){const i=e.substring(0,n),c=e.substring(n).split(qp);return c.length&&!Yf(c)&&c.pop(),[i,...c]}function qc(e,n=""){return e=vl(n,e),vN(e,Pg(e))}function Iy(e,n){return e.length===0?"":(e[0]&&Su(e[0]))+e.slice(1,n).join(qp)}function $1(e){return e.includes("\\")?e.replace(Fz,qp):e}function i9(e){if(!gt(e))return[];const n=[e[0]];for(let i=1;i1){if(n[n.length-1]!==".."){n.pop();continue}}else if(n[0])continue}n.push(c)}}return n}function vl(e,...n){e&&(e=$1(e));for(let i of n)i&&(i=$1(i),!e||Pg(i)!==0?e=i:e=Su(e)+i);return e}function NL(e,...n){return hf(gt(n)?vl(e,...n):$1(e))}function g0(e,n){return i9(qc(e,n))}function vf(e,n){return Iy(g0(e,n))}function hf(e){if(e=$1(e),!ok.test(e))return e;const n=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==e&&(e=n,!ok.test(e)))return e;const i=Iy(i9(qc(e)));return i&&VD(e)?Su(i):i}function Oz(e){return e.length===0?"":e.slice(1).join(qp)}function tf(e,n){return Oz(g0(e,n))}function gm(e,n,i){const c=nE(e)?hf(e):vf(e,n);return i(c)}function bN(e){return VD(e)?e.substr(0,e.length-1):e}function Su(e){return VD(e)?e:e+qp}function Fd(e){return!m0(e)&&!V2(e)?"./"+e:e}function Vre(e,n,i,c){const u=i!==void 0&&c!==void 0?t7(e,i,c):t7(e);return u?e.slice(0,e.length-u.length)+(qf(n,".")?n:"."+n):e}function U_e(e,n,i){if(e===n)return 0;if(e===void 0)return-1;if(n===void 0)return 1;const c=e.substring(0,Pg(e)),u=n.substring(0,Pg(n)),d=Kw(c,u);if(d!==0)return d;const h=e.substring(c.length),S=n.substring(u.length);if(!ok.test(h)&&!ok.test(S))return i(h,S);const E=i9(qc(e)),P=i9(qc(n)),k=Math.min(E.length,P.length);for(let F=1;F0==Pg(n)>0,"Paths must either both be absolute or both be relative");const d=Ure(e,n,(typeof i=="boolean"?i:!1)?pN:ZA,typeof i=="function"?i:Of);return Iy(d)}function PX(e,n,i){return nE(e)?GC(n,e,n,i,!1):e}function wM(e,n,i){return Fd(sP(ws(e),n,i))}function GC(e,n,i,c,u){const d=Ure(NL(i,e),NL(i,n),ZA,c),h=d[0];if(u&&nE(h)){const S=h.charAt(0)===qp?"file://":"file:///";d[0]=S+h}return Iy(d)}function jC(e,n){for(;;){const i=n(e);if(i!==void 0)return i;const c=ws(e);if(c===e)return;e=c}}function NX(e){return h_(e,"/node_modules")}var qp,r7,wX,Fz,ok,TMe=G({"src/compiler/path.ts"(){md(),qp="/",r7="\\",wX="://",Fz=/\\/g,ok=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function q(e,n,i,c,u,d,h){return{code:e,category:n,key:i,message:c,reportsUnnecessary:u,elidedInCompatabilityPyramid:d,reportsDeprecated:h}}var N,SMe=G({"src/compiler/diagnosticInformationMap.generated.ts"(){bTe(),N={Unterminated_string_literal:q(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:q(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:q(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:q(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:q(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:q(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:q(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:q(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:q(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:q(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:q(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:q(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:q(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:q(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:q(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:q(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:q(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:q(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:q(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:q(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:q(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:q(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:q(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:q(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:q(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:q(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:q(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:q(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:q(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:q(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:q(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:q(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:q(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:q(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:q(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:q(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:q(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:q(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:q(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:q(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:q(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:q(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:q(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:q(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:q(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:q(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:q(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:q(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:q(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:q(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:q(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:q(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:q(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:q(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:q(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:q(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:q(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:q(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:q(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:q(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:q(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:q(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:q(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:q(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:q(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:q(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:q(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:q(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:q(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:q(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:q(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:q(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:q(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:q(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:q(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:q(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:q(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:q(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:q(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:q(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:q(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:q(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:q(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:q(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:q(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:q(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:q(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:q(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:q(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:q(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:q(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:q(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:q(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:q(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:q(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:q(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:q(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:q(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:q(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:q(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:q(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:q(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:q(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:q(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:q(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:q(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:q(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:q(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:q(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:q(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:q(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:q(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:q(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:q(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:q(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:q(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:q(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:q(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:q(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:q(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:q(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:q(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:q(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:q(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:q(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:q(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:q(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:q(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:q(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:q(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:q(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:q(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:q(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:q(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:q(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:q(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:q(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:q(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:q(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:q(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:q(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:q(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:q(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:q(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:q(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:q(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:q(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:q(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:q(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:q(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:q(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:q(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:q(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:q(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:q(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:q(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:q(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:q(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:q(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:q(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:q(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:q(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:q(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:q(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:q(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:q(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:q(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:q(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:q(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:q(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:q(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:q(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:q(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:q(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:q(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:q(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:q(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:q(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:q(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:q(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:q(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:q(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:q(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:q(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:q(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:q(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:q(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:q(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:q(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:q(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:q(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:q(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:q(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:q(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:q(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:q(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:q(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:q(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:q(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:q(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:q(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:q(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:q(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:q(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:q(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:q(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:q(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:q(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:q(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:q(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:q(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:q(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:q(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:q(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:q(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:q(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:q(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:q(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:q(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:q(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:q(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:q(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:q(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:q(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:q(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:q(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:q(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:q(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:q(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:q(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:q(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:q(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:q(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:q(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:q(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:q(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:q(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:q(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:q(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:q(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:q(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:q(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:q(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:q(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:q(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:q(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:q(6024,3,"options_6024","options"),file:q(6025,3,"file_6025","file"),Examples_Colon_0:q(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:q(6027,3,"Options_Colon_6027","Options:"),Version_0:q(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:q(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:q(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:q(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:q(6034,3,"KIND_6034","KIND"),FILE:q(6035,3,"FILE_6035","FILE"),VERSION:q(6036,3,"VERSION_6036","VERSION"),LOCATION:q(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:q(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:q(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:q(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:q(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:q(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:q(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:q(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:q(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:q(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:q(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:q(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:q(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:q(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:q(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:q(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:q(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:q(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:q(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:q(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:q(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:q(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:q(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:q(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:q(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:q(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:q(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:q(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:q(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:q(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:q(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:q(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:q(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:q(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:q(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:q(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:q(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:q(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:q(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:q(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:q(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:q(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:q(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:q(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:q(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:q(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:q(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:q(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:q(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:q(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:q(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:q(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:q(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:q(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:q(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:q(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:q(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:q(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:q(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:q(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:q(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:q(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:q(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:q(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:q(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:q(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:q(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:q(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:q(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:q(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:q(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:q(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:q(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:q(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:q(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:q(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:q(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:q(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:q(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:q(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:q(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:q(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:q(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:q(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:q(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:q(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:q(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:q(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:q(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:q(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:q(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:q(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:q(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:q(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:q(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:q(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:q(6244,3,"Modules_6244","Modules"),File_Management:q(6245,3,"File_Management_6245","File Management"),Emit:q(6246,3,"Emit_6246","Emit"),JavaScript_Support:q(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:q(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:q(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:q(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:q(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:q(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:q(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:q(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:q(6255,3,"Projects_6255","Projects"),Output_Formatting:q(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:q(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:q(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:q(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:q(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:q(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:q(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:q(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:q(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:q(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:q(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:q(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:q(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:q(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:q(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:q(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:q(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:q(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:q(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:q(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:q(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:q(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:q(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:q(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:q(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:q(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:q(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:q(6902,3,"type_Colon_6902","type:"),default_Colon:q(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:q(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:q(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:q(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:q(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:q(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:q(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:q(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:q(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:q(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:q(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:q(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:q(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:q(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:q(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:q(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:q(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:q(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:q(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:q(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:q(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:q(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:q(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:q(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:q(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:q(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:q(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:q(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:q(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:q(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:q(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:q(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:q(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:q(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:q(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:q(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:q(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:q(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:q(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:q(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:q(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:q(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:q(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:q(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:q(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:q(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:q(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:q(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:q(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:q(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:q(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:q(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:q(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:q(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:q(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:q(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:q(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:q(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:q(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:q(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:q(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:q(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:q(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:q(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:q(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:q(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:q(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:q(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:q(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:q(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:q(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:q(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:q(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:q(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:q(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:q(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:q(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:q(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:q(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:q(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:q(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:q(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:q(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:q(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:q(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:q(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:q(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:q(95005,3,"Extract_function_95005","Extract function"),Extract_constant:q(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:q(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:q(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:q(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:q(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:q(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:q(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:q(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:q(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:q(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:q(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:q(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:q(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:q(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:q(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:q(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:q(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:q(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:q(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:q(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:q(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:q(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:q(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:q(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:q(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:q(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:q(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:q(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:q(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:q(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:q(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:q(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:q(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:q(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:q(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:q(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:q(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:q(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:q(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:q(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:q(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:q(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:q(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:q(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:q(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:q(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:q(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:q(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:q(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:q(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:q(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:q(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:q(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:q(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:q(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:q(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:q(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:q(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:q(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:q(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:q(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:q(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:q(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:q(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:q(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:q(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:q(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:q(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:q(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:q(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:q(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:q(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:q(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:q(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:q(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:q(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:q(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:q(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:q(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:q(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:q(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:q(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:q(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:q(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:q(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:q(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:q(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:q(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:q(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:q(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:q(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:q(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:q(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:q(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:q(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:q(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:q(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:q(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:q(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:q(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:q(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:q(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:q(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:q(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:q(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:q(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:q(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:q(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:q(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:q(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:q(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:q(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:q(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:q(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:q(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:q(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:q(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:q(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:q(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:q(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:q(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:q(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:q(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:q(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:q(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:q(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:q(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:q(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:q(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:q(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:q(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:q(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:q(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:q(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:q(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:q(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:q(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:q(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:q(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:q(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:q(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:q(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:q(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:q(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:q(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:q(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:q(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:q(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:q(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:q(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:q(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:q(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:q(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:q(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:q(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:q(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:q(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:q(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:q(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:q(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:q(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:q(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:q(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:q(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:q(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:q(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:q(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:q(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:q(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:q(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:q(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:q(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:q(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:q(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:q(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:q(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:q(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:q(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:q(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:q(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:q(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:q(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:q(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:q(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 CT(e){return e>=80}function RX(e){return e===32||CT(e)}function Hre(e,n){if(e=2?Hre(e,DTe):n===1?Hre(e,Jre):Hre(e,OVe)}function w(e,n){return n>=2?Hre(e,xMe):n===1?Hre(e,EMe):Hre(e,LU)}function Rat(e){const n=[];return e.forEach((i,c)=>{n[i]=c}),n}function Cf(e){return IMe[e]}function D8(e){return LM.get(e)}function RM(e){const n=[];let i=0,c=0;for(;i127&&Sb(u)&&(n.push(c),c=i);break}}return n.push(c),n}function Wz(e,n,i,c){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,i,c):H_e(eR(e),n,i,e.text,c)}function H_e(e,n,i,c,u){(n<0||n>=e.length)&&(u?n=n<0?0:n>=e.length?e.length-1:n:re.fail(`Bad line number. Line: ${n}, lineStarts.length: ${e.length} , line map is correct? ${c!==void 0?sf(e,RM(c)):"unknown"}`));const d=e[n]+i;return u?d>e[n+1]?e[n+1]:typeof c=="string"&&d>c.length?c.length:d:(n=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Sb(e){return e===10||e===13||e===8232||e===8233}function I8(e){return e>=48&&e<=57}function MX(e){return I8(e)||e>=65&&e<=70||e>=97&&e<=102}function Ah(e){return e<=1114111}function UD(e){return e>=48&&e<=55}function HD(e,n){const i=e.charCodeAt(n);switch(i){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 n===0;default:return i>127}}function Ff(e,n,i,c,u){if(ab(n))return n;let d=!1;for(;;){const h=e.charCodeAt(n);switch(h){case 13:e.charCodeAt(n+1)===10&&n++;case 10:if(n++,i)return n;d=!!u;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(c)break;if(e.charCodeAt(n+1)===47){for(n+=2;n127&&cP(h)){n++;continue}break}return n}}function wL(e,n){if(re.assert(n>=0),n===0||Sb(e.charCodeAt(n-1))){const i=e.charCodeAt(n);if(n+$re=0&&i127&&cP(X)){F&&Sb(X)&&(k=!0),i++;continue}break e}}return F&&(J=u(S,E,P,k,d,J)),J}function ep(e,n,i,c){return J_e(!1,e,n,!1,i,c)}function k8(e,n,i,c){return J_e(!1,e,n,!0,i,c)}function MU(e,n,i,c,u){return J_e(!0,e,n,!1,i,c,u)}function $_e(e,n,i,c,u){return J_e(!0,e,n,!0,i,c,u)}function CTe(e,n,i,c,u,d=[]){return d.push({kind:i,pos:e,end:n,hasTrailingNewLine:c}),d}function JD(e,n){return MU(e,n,CTe,void 0,void 0)}function SN(e,n){return $_e(e,n,CTe,void 0,void 0)}function Bz(e){const n=q_e.exec(e);if(n)return n[0]}function lP(e,n){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&K(e,n)}function RL(e,n,i){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(i===1?e===45||e===58:!1)||e>127&&w(e,n)}function H2(e,n,i){let c=Nx(e,0);if(!lP(c,n))return!1;for(let u=tR(c);uk,getStartPos:()=>k,getTokenEnd:()=>E,getTextPos:()=>E,getToken:()=>$,getTokenStart:()=>F,getTokenPos:()=>F,getTokenText:()=>S.substring(F,E),getTokenValue:()=>J,hasUnicodeEscape:()=>(X&1024)!==0,hasExtendedUnicodeEscape:()=>(X&8)!==0,hasPrecedingLineBreak:()=>(X&1)!==0,hasPrecedingJSDocComment:()=>(X&2)!==0,isIdentifier:()=>$===80||$>118,isReservedWord:()=>$>=83&&$<=118,isUnterminated:()=>(X&4)!==0,getCommentDirectives:()=>ie,getNumericLiteralFlags:()=>X&25584,getTokenFlags:()=>X,reScanGreaterToken:jt,reScanAsteriskEqualsToken:En,reScanSlashToken:fr,reScanTemplateToken:Pn,reScanTemplateHeadOrNoSubstitutionTemplate:Fr,scanJsxIdentifier:$i,scanJsxAttributeValue:ki,reScanJsxAttributeValue:gc,reScanJsxToken:Ki,reScanLessThanToken:io,reScanHashToken:no,reScanQuestionToken:os,reScanInvalidIdentifier:wr,scanJsxToken:Mo,scanJsDocToken:Jc,scanJSDocCommentTextToken:Wl,scan:qt,getText:zi,clearCommentDirectives:na,setText:_a,setScriptTarget:Au,setLanguageVariant:Qu,setScriptKind:Cu,setJSDocParsingMode:yf,setOnError:us,resetTokenState:w_,setTextPos:w_,setInJSDocType:Eu,tryScan:Ia,lookAhead:za,scanRange:qn};return re.isDebugging&&Object.defineProperty(Fe,"__debugShowCurrentPositionInText",{get:()=>{const He=Fe.getText();return He.slice(0,Fe.getTokenFullStart())+"║"+He.slice(Fe.getTokenFullStart())}}),Fe;function et(He,Hn=E,dr,Mr){if(u){const Pr=E;E=Hn,u(He,dr||0,Mr),E=Pr}}function Pe(){let He=E,Hn=!1,dr=!1,Mr="";for(;;){const Pr=S.charCodeAt(E);if(Pr===95){X|=512,Hn?(Hn=!1,dr=!0,Mr+=S.substring(He,E)):(X|=16384,et(dr?N.Multiple_consecutive_numeric_separators_are_not_permitted:N.Numeric_separators_are_not_allowed_here,E,1)),E++,He=E;continue}if(I8(Pr)){Hn=!0,dr=!1,E++;continue}break}return S.charCodeAt(E-1)===95&&(X|=16384,et(N.Numeric_separators_are_not_allowed_here,E-1,1)),Mr+S.substring(He,E)}function dt(){let He=E,Hn;if(S.charCodeAt(E)===48)if(E++,S.charCodeAt(E)===95)X|=16896,et(N.Numeric_separators_are_not_allowed_here,E,1),E--,Hn=Pe();else if(!ct())X|=8192,Hn=""+ +J;else if(!J)Hn="0";else{J=""+parseInt(J,8),X|=32;const ln=$===41,Wn=(ln?"-":"")+"0o"+(+J).toString(8);return ln&&He--,et(N.Octal_literals_are_not_allowed_Use_the_syntax_0,He,E-He,Wn),9}else Hn=Pe();let dr,Mr;S.charCodeAt(E)===46&&(E++,dr=Pe());let Pr=E;if(S.charCodeAt(E)===69||S.charCodeAt(E)===101){E++,X|=16,(S.charCodeAt(E)===43||S.charCodeAt(E)===45)&&E++;const ln=E,Wn=Pe();Wn?(Mr=S.substring(Pr,ln)+Wn,Pr=E):et(N.Digit_expected)}let Bt;if(X&512?(Bt=Hn,dr&&(Bt+="."+dr),Mr&&(Bt+=Mr)):Bt=S.substring(He,Pr),X&8192)return et(N.Decimals_with_leading_zeros_are_not_allowed,He,Pr-He),J=""+ +Bt,9;if(dr!==void 0||X&16)return Ie(He,dr===void 0&&!!(X&16)),J=""+ +Bt,9;{J=Bt;const ln=cn();return Ie(He),ln}}function Ie(He,Hn){if(!lP(Nx(S,E),e))return;const dr=E,{length:Mr}=Qt();Mr===1&&S[dr]==="n"?et(Hn?N.A_bigint_literal_cannot_use_exponential_notation:N.A_bigint_literal_must_be_an_integer,He,dr-He+1):(et(N.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,dr,Mr),E=dr)}function ct(){const He=E;let Hn=!0;for(;I8(S.charCodeAt(E));)UD(S.charCodeAt(E))||(Hn=!1),E++;return J=S.substring(He,E),Hn}function Ct(He,Hn){const dr=Ze(He,!1,Hn);return dr?parseInt(dr,16):-1}function Lt(He,Hn){return Ze(He,!0,Hn)}function Ze(He,Hn,dr){let Mr=[],Pr=!1,Bt=!1;for(;Mr.length=65&&ln<=70)ln+=32;else if(!(ln>=48&&ln<=57||ln>=97&&ln<=102))break;Mr.push(ln),E++,Bt=!1}return Mr.length=P){dr+=S.substring(Mr,E),X|=4,et(N.Unterminated_string_literal);break}const Pr=S.charCodeAt(E);if(Pr===Hn){dr+=S.substring(Mr,E),E++;break}if(Pr===92&&!He){dr+=S.substring(Mr,E),dr+=It(!0),Mr=E;continue}if((Pr===10||Pr===13)&&!He){dr+=S.substring(Mr,E),X|=4,et(N.Unterminated_string_literal);break}E++}return dr}function st(He){const Hn=S.charCodeAt(E)===96;E++;let dr=E,Mr="",Pr;for(;;){if(E>=P){Mr+=S.substring(dr,E),X|=4,et(N.Unterminated_template_literal),Pr=Hn?15:18;break}const Bt=S.charCodeAt(E);if(Bt===96){Mr+=S.substring(dr,E),E++,Pr=Hn?15:18;break}if(Bt===36&&E+1(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(NM||{}),tu=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(tu||{}),Iz=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(Iz||{}),F_e=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(F_e||{}),Xne=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Xne||{}),W_e=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(W_e||{}),fX=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(fX||{}),kz=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(kz||{}),_X=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(_X||{}),QO=class{},dX=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(dX||{}),pX=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(pX||{}),mX=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(mX||{}),gX=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(gX||{}),AU=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(AU||{}),Yne=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Yne||{}),Pz=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Pz||{}),hX=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(hX||{}),Qne=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Qne||{}),Zne=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(Zne||{}),ere=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ere||{}),tre=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(tre||{}),nre=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(nre||{}),rre=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(rre||{}),ire=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ire||{}),yX=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(yX||{}),ore=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(ore||{}),are=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(are||{}),sre=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(sre||{}),cre=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(cre||{}),vX=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(vX||{}),bX=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(bX||{}),TX=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(TX||{}),lre=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(lre||{}),ure=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ure||{}),fre=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(fre||{}),_re=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(_re||{}),SX=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(SX||{}),CU=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(CU||{}),dre=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(dre||{}),pre=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(pre||{}),mre=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(mre||{}),gre=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(gre||{}),hre=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(hre||{}),yre=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(yre||{}),Nz=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Nz||{}),t9=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(t9||{}),vre=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(vre||{}),bre=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(bre||{}),Tre=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Tre||{}),Sre=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Sre||{}),wz=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(wz||{}),DU=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(DU||{}),n9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(n9||{}),Ere=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ere||{}),EX=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(EX||{}),xre=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(xre||{}),Are=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Are||{}),Rz=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Rz||{}),Cre=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Cre||{}),Dre=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Dre||{}),xX=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(xX||{}),IU=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(IU||{}),AX=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(AX||{}),Ire=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ire||{}),kre=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(kre||{}),Pre=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(Pre||{}),Nre=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Nre||{}),CX=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(CX||{}),DX=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(DX||{}),IX=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(IX||{}),wre=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(wre||{}),kU={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}},Rre=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Rre||{})}});function Mz(e){let n=5381;for(let i=0;i{Fe.isClosed=!0,A8(n,Fe)}}}function S(ae){const ve=[];return ve.pollingInterval=ae,ve.pollIndex=0,ve.pollScheduled=!1,ve}function E(ae,ve){ve.pollIndex=k(ve,ve.pollingInterval,ve.pollIndex,Wre[ve.pollingInterval]),ve.length?ie(ve.pollingInterval):(re.assert(ve.pollIndex===0),ve.pollScheduled=!1)}function P(ae,ve){k(i,250,0,i.length),E(ae,ve),!ve.pollScheduled&&i.length&&ie(250)}function k(ae,ve,we,Fe){return mMe(e,ae,we,Fe,et);function et(Pe,dt,Ie){Ie?(Pe.unchangedPolls=0,ae!==i&&(ae[dt]=void 0,J(Pe))):Pe.unchangedPolls!==Bre[ve]?Pe.unchangedPolls++:ae===i?(Pe.unchangedPolls=1,ae[dt]=void 0,$(Pe,250)):ve!==2e3&&(Pe.unchangedPolls++,ae[dt]=void 0,$(Pe,ve===250?500:2e3))}}function F(ae){switch(ae){case 250:return c;case 500:return u;case 2e3:return d}}function $(ae,ve){F(ve).push(ae),X(ve)}function J(ae){i.push(ae),X(250)}function X(ae){F(ae).pollScheduled||ie(ae)}function ie(ae){F(ae).pollScheduled=e.setTimeout(ae===250?P:E,ae,ae===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",F(ae))}}function Iat(e,n){const i=zg(),c=new Map,u=H1(n);return d;function d(S,E,P,k){const F=u(S);i.add(F,E);const $=ws(F)||".",J=c.get($)||h(ws(S)||".",$,k);return J.referenceCount++,{close:()=>{J.referenceCount===1?(J.close(),c.delete($)):J.referenceCount--,i.remove(F,E)}}}function h(S,E,P){const k=e(S,1,(F,$,J)=>{if(!As($))return;const X=vf($,S),ie=X&&i.get(u(X));if(ie)for(const ae of ie)ae(X,1,J)},!1,500,P);return k.referenceCount=0,c.set(E,k),k}}function PU(e){const n=[];let i=0,c;return u;function u(S,E){const P={fileName:S,callback:E,mtime:ZO(e,S)};return n.push(P),h(),{close:()=>{P.isClosed=!0,A8(n,P)}}}function d(){c=void 0,i=mMe(e,n,i,Wre[250]),h()}function h(){!n.length||c||(c=e.setTimeout(d,2e3,"pollQueue"))}}function STe(e,n,i,c,u){const h=H1(n)(i),S=e.get(h);return S?S.callbacks.push(c):e.set(h,{watcher:u((E,P,k)=>{var F;return(F=e.get(h))==null?void 0:F.callbacks.slice().forEach($=>$(E,P,k))}),callbacks:[c]}),{close:()=>{const E=e.get(h);E&&(!xL(E.callbacks,c)||E.callbacks.length||(e.delete(h),YE(E)))}}}function kat(e,n){const i=e.mtime.getTime(),c=n.getTime();return i!==c?(e.mtime=n,e.callback(e.fileName,j_e(i,c),n),!0):!1}function j_e(e,n){return e===0?0:n===0?2:1}function Mre(e){return zre(e)}function gMe(e){zre=e}function Pat({watchDirectory:e,useCaseSensitiveFileNames:n,getCurrentDirectory:i,getAccessibleSortedChildDirectories:c,fileSystemEntryExists:u,realpath:d,setTimeout:h,clearTimeout:S}){const E=new Map,P=zg(),k=new Map;let F;const $=Xw(!n),J=H1(n);return(Ie,ct,Ct,Lt)=>Ct?X(Ie,Lt,ct):e(Ie,ct,Ct,Lt);function X(Ie,ct,Ct){const Lt=J(Ie);let Ze=E.get(Lt);Ze?Ze.refCount++:(Ze={watcher:e(Ie,st=>{Pe(st,ct)||(ct!=null&&ct.synchronousWatchDirectory?(ie(Lt,st),et(Ie,Lt,ct)):ae(Ie,Lt,st,ct))},!1,ct),refCount:1,childWatches:Yn},E.set(Lt,Ze),et(Ie,Lt,ct));const Ke=Ct&&{dirName:Ie,callback:Ct};return Ke&&P.add(Lt,Ke),{dirName:Ie,close:()=>{const st=re.checkDefined(E.get(Lt));Ke&&P.remove(Lt,Ke),st.refCount--,!st.refCount&&(E.delete(Lt),YE(st),st.childWatches.forEach(Ib))}}}function ie(Ie,ct,Ct){let Lt,Ze;As(ct)?Lt=ct:Ze=ct,P.forEach((Ke,st)=>{if(!(Ze&&Ze.get(st)===!0)&&(st===Ie||qf(Ie,st)&&Ie[st.length]===qp))if(Ze)if(Ct){const It=Ze.get(st);It?It.push(...Ct):Ze.set(st,Ct.slice())}else Ze.set(st,!0);else Ke.forEach(({callback:It})=>It(Lt))})}function ae(Ie,ct,Ct,Lt){const Ze=E.get(ct);if(Ze&&u(Ie,1)){ve(Ie,ct,Ct,Lt);return}ie(ct,Ct),Fe(Ze)}function ve(Ie,ct,Ct,Lt){const Ze=k.get(ct);Ze?Ze.fileNames.push(Ct):k.set(ct,{dirName:Ie,options:Lt,fileNames:[Ct]}),F&&(S(F),F=void 0),F=h(we,1e3,"timerToUpdateChildWatches")}function we(){F=void 0,Mre(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const Ie=H_(),ct=new Map;for(;!F&&k.size;){const Lt=k.entries().next();re.assert(!Lt.done);const{value:[Ze,{dirName:Ke,options:st,fileNames:It}]}=Lt;k.delete(Ze);const Yt=et(Ke,Ze,st);ie(Ze,ct,Yt?void 0:It)}Mre(`sysLog:: invokingWatchers:: Elapsed:: ${H_()-Ie}ms:: ${k.size}`),P.forEach((Lt,Ze)=>{const Ke=ct.get(Ze);Ke&&Lt.forEach(({callback:st,dirName:It})=>{ls(Ke)?Ke.forEach(st):st(It)})});const Ct=H_()-Ie;Mre(`sysLog:: Elapsed:: ${Ct}ms:: onTimerToUpdateChildWatches:: ${k.size} ${F}`)}function Fe(Ie){if(!Ie)return;const ct=Ie.childWatches;Ie.childWatches=Yn;for(const Ct of ct)Ct.close(),Fe(E.get(J(Ct.dirName)))}function et(Ie,ct,Ct){const Lt=E.get(ct);if(!Lt)return!1;let Ze;const Ke=zD(u(Ie,1)?Qo(c(Ie),Yt=>{const Et=vf(Yt,Ie);return!Pe(Et,Ct)&&$(Et,hf(d(Et)))===0?Et:void 0}):Yn,Lt.childWatches,(Yt,Et)=>$(Yt,Et.dirName),st,Ib,It);return Lt.childWatches=Ze||Yn,Ke;function st(Yt){const Et=X(Yt,Ct);It(Et)}function It(Yt){(Ze||(Ze=[])).push(Yt)}}function Pe(Ie,ct){return gt(NU,Ct=>dt(Ie,Ct))||hMe(Ie,ct,n,i)}function dt(Ie,ct){return Ie.includes(ct)?!0:n?!1:J(Ie).includes(ct)}}function MVe(e){return(n,i,c)=>e(i===1?"change":"rename","",c)}function Nat(e,n,i){return(c,u,d)=>{c==="rename"?(d||(d=i(e)||oP),n(e,d!==oP?0:2,d)):n(e,1,d)}}function hMe(e,n,i,c){return((n==null?void 0:n.excludeDirectories)||(n==null?void 0:n.excludeFiles))&&(Bpe(e,n==null?void 0:n.excludeFiles,i,c())||Bpe(e,n==null?void 0:n.excludeDirectories,i,c()))}function Lre(e,n,i,c,u){return(d,h)=>{if(d==="rename"){const S=h?hf(vl(e,h)):e;(!h||!hMe(S,i,c,u))&&n(S)}}}function ETe({pollingWatchFileWorker:e,getModifiedTime:n,setTimeout:i,clearTimeout:c,fsWatchWorker:u,fileSystemEntryExists:d,useCaseSensitiveFileNames:h,getCurrentDirectory:S,fsSupportsRecursiveFsWatch:E,getAccessibleSortedChildDirectories:P,realpath:k,tscWatchFile:F,useNonPollingWatchers:$,tscWatchDirectory:J,inodeWatching:X,sysLog:ie}){const ae=new Map,ve=new Map,we=new Map;let Fe,et,Pe,dt,Ie=!1;return{watchFile:ct,watchDirectory:st};function ct(nn,Rn,cn,qt){qt=Ze(qt,$);const Kt=re.checkDefined(qt.watchFile);switch(Kt){case 0:return Et(nn,Rn,250,void 0);case 1:return Et(nn,Rn,cn,void 0);case 2:return Ct()(nn,Rn,cn,void 0);case 3:return Lt()(nn,Rn,void 0,void 0);case 4:return at(nn,0,Nat(nn,Rn,n),!1,cn,UQ(qt));case 5:return Pe||(Pe=Iat(at,h)),Pe(nn,Rn,cn,UQ(qt));default:re.assertNever(Kt)}}function Ct(){return Fe||(Fe=G_e({getModifiedTime:n,setTimeout:i}))}function Lt(){return et||(et=PU({getModifiedTime:n,setTimeout:i}))}function Ze(nn,Rn){if(nn&&nn.watchFile!==void 0)return nn;switch(F){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ke(4,1,nn);case"UseFsEventsWithFallbackDynamicPolling":return Ke(4,2,nn);case"UseFsEventsOnParentDirectory":Rn=!0;default:return Rn?Ke(5,1,nn):{watchFile:4}}}function Ke(nn,Rn,cn){const qt=cn==null?void 0:cn.fallbackPolling;return{watchFile:nn,fallbackPolling:qt===void 0?Rn:qt}}function st(nn,Rn,cn,qt){return E?at(nn,1,Lre(nn,Rn,qt,h,S),cn,500,UQ(qt)):(dt||(dt=Pat({useCaseSensitiveFileNames:h,getCurrentDirectory:S,fileSystemEntryExists:d,getAccessibleSortedChildDirectories:P,watchDirectory:It,realpath:k,setTimeout:i,clearTimeout:c})),dt(nn,Rn,cn,qt))}function It(nn,Rn,cn,qt){re.assert(!cn);const Kt=Yt(qt),wr=re.checkDefined(Kt.watchDirectory);switch(wr){case 1:return Et(nn,()=>Rn(nn),500,void 0);case 2:return Ct()(nn,()=>Rn(nn),500,void 0);case 3:return Lt()(nn,()=>Rn(nn),void 0,void 0);case 0:return at(nn,1,Lre(nn,Rn,qt,h,S),cn,500,UQ(Kt));default:re.assertNever(wr)}}function Yt(nn){if(nn&&nn.watchDirectory!==void 0)return nn;switch(J){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Rn=nn==null?void 0:nn.fallbackPolling;return{watchDirectory:0,fallbackPolling:Rn!==void 0?Rn:void 0}}}function Et(nn,Rn,cn,qt){return STe(ae,h,nn,Rn,Kt=>e(nn,Kt,cn,qt))}function at(nn,Rn,cn,qt,Kt,wr){return STe(qt?we:ve,h,nn,cn,Wr=>Qt(nn,Rn,Wr,qt,Kt,wr))}function Qt(nn,Rn,cn,qt,Kt,wr){let Wr,jt;X&&(Wr=nn.substring(nn.lastIndexOf(qp)),jt=Wr.slice(qp.length));let En=d(nn,Rn)?Tr():Fr();return{close:()=>{En&&(En.close(),En=void 0)}};function fr(Ki){En&&(ie(`sysLog:: ${nn}:: Changing watcher to ${Ki===Tr?"Present":"Missing"}FileSystemEntryWatcher`),En.close(),En=Ki())}function Tr(){if(Ie)return ie(`sysLog:: ${nn}:: Defaulting to watchFile`),Pn();try{const Ki=u(nn,qt,X?Vr:cn);return Ki.on("error",()=>{cn("rename",""),fr(Fr)}),Ki}catch(Ki){return Ie||(Ie=Ki.code==="ENOSPC"),ie(`sysLog:: ${nn}:: Changing to watchFile`),Pn()}}function Vr(Ki,io){let no;if(io&&h_(io,"~")&&(no=io,io=io.slice(0,io.length-1)),Ki==="rename"&&(!io||io===jt||h_(io,Wr))){const os=n(nn)||oP;no&&cn(Ki,no,os),cn(Ki,io,os),X?fr(os===oP?Fr:Tr):os===oP&&fr(Fr)}else no&&cn(Ki,no),cn(Ki,io)}function Pn(){return ct(nn,MVe(cn),Kt,wr)}function Fr(){return ct(nn,(Ki,io,no)=>{io===0&&(no||(no=n(nn)||oP),no!==oP&&(cn("rename","",no),fr(Tr)))},Kt,wr)}}}function yMe(e){const n=e.writeFile;e.writeFile=(i,c,u)=>L7(i,c,!!u,(d,h,S)=>n.call(e,d,h,S),d=>e.createDirectory(d),d=>e.directoryExists(d))}function LVe(e){w0=e}var xTe,Ore,oP,Fre,Wre,Bre,NU,zre,aP,w0,V_e=G({"src/compiler/sys.ts"(){md(),xTe=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(xTe||{}),Ore=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ore||{}),oP=new Date(0),Fre={Low:32,Medium:64,High:256},Wre=B_e(Fre),Bre=B_e(Fre),NU=["/node_modules/.","/.git","/.#"],zre=ku,aP=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(aP||{}),w0=(()=>{const e="\uFEFF";function n(){const c=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,u=MC,d=MC,h=MC;let S;try{S=MC}catch{S=void 0}let E,P="./profile.cpuprofile";const k=MC.Buffer,F=process.platform==="linux"||process.platform==="darwin",$=h.platform(),J=Lt(),X=u.realpathSync.native?process.platform==="win32"?Kt:u.realpathSync.native:u.realpathSync,ie=__filename.endsWith("sys.js")?d.join(d.dirname(__dirname),"__fake__.js"):__filename,ae=process.platform==="win32"||process.platform==="darwin",ve=Pd(()=>process.cwd()),{watchFile:we,watchDirectory:Fe}=ETe({pollingWatchFileWorker:Ke,getModifiedTime:Wr,setTimeout,clearTimeout,fsWatchWorker:st,useCaseSensitiveFileNames:J,getCurrentDirectory:ve,fileSystemEntryExists:nn,fsSupportsRecursiveFsWatch:ae,getAccessibleSortedChildDirectories:Tr=>at(Tr).directories,realpath:wr,tscWatchFile:g.TSC_WATCHFILE,useNonPollingWatchers:!!g.TSC_NONPOLLING_WATCHER,tscWatchDirectory:g.TSC_WATCHDIRECTORY,inodeWatching:F,sysLog:Mre}),et={args:process.argv.slice(2),newLine:h.EOL,useCaseSensitiveFileNames:J,write(Tr){process.stdout.write(Tr)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Yt,writeFile:Et,watchFile:we,watchDirectory:Fe,resolvePath:Tr=>d.resolve(Tr),fileExists:Rn,directoryExists:cn,createDirectory(Tr){if(!et.directoryExists(Tr))try{u.mkdirSync(Tr)}catch(Vr){if(Vr.code!=="EEXIST")throw Vr}},getExecutingFilePath(){return ie},getCurrentDirectory:ve,getDirectories:qt,getEnvironmentVariable(Tr){return g[Tr]||""},readDirectory:Qt,getModifiedTime:Wr,setModifiedTime:jt,deleteFile:En,createHash:S?fr:Mz,createSHA256Hash:S?fr:void 0,getMemoryUsage(){return ORe.gc&&ORe.gc(),process.memoryUsage().heapUsed},getFileSize(Tr){try{const Vr=Pe(Tr);if(Vr!=null&&Vr.isFile())return Vr.size}catch{}return 0},exit(Tr){ct(()=>process.exit(Tr))},enableCPUProfiler:dt,disableCPUProfiler:ct,cpuProfilingEnabled:()=>!!E||ni(process.execArgv,"--cpu-prof")||ni(process.execArgv,"--prof"),realpath:wr,debugMode:!!g.NODE_INSPECTOR_IPC||!!g.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,Tr=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Tr))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{MC.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var Tr;const Vr=(Tr=process.stdout)==null?void 0:Tr._handle;Vr&&Vr.setBlocking&&Vr.setBlocking(!0)},bufferFrom:Ct,base64decode:Tr=>Ct(Tr,"base64").toString("utf8"),base64encode:Tr=>Ct(Tr).toString("base64"),require:(Tr,Vr)=>{try{const Pn=x2e(Vr,Tr,et);return{module:Wot(Pn),modulePath:Pn,error:void 0}}catch(Pn){return{module:void 0,modulePath:void 0,error:Pn}}}};return et;function Pe(Tr){return u.statSync(Tr,{throwIfNoEntry:!1})}function dt(Tr,Vr){if(E)return Vr(),!1;const Pn=MC;if(!Pn||!Pn.Session)return Vr(),!1;const Fr=new Pn.Session;return Fr.connect(),Fr.post("Profiler.enable",()=>{Fr.post("Profiler.start",()=>{E=Fr,P=Tr,Vr()})}),!0}function Ie(Tr){let Vr=0;const Pn=new Map,Fr=$1(d.dirname(ie)),Ki=`file://${Pg(Fr)===1?"":"/"}${Fr}`;for(const io of Tr.nodes)if(io.callFrame.url){const no=$1(io.callFrame.url);OE(Ki,no,J)?io.callFrame.url=GC(Ki,no,Ki,H1(J),!0):c.test(no)||(io.callFrame.url=(Pn.has(no)?Pn:Pn.set(no,`external${Vr}.js`)).get(no),Vr++)}return Tr}function ct(Tr){if(E&&E!=="stopping"){const Vr=E;return E.post("Profiler.stop",(Pn,{profile:Fr})=>{var Ki;if(!Pn){try{(Ki=Pe(P))!=null&&Ki.isDirectory()&&(P=d.join(P,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{u.mkdirSync(d.dirname(P),{recursive:!0})}catch{}u.writeFileSync(P,JSON.stringify(Ie(Fr)))}E=void 0,Vr.disconnect(),Tr()}),E="stopping",!0}else return Tr(),!1}function Ct(Tr,Vr){return k.from&&k.from!==Int8Array.from?k.from(Tr,Vr):new k(Tr,Vr)}function Lt(){return $==="win32"||$==="win64"?!1:!Rn(Ze(__filename))}function Ze(Tr){return Tr.replace(/\w/g,Vr=>{const Pn=Vr.toUpperCase();return Vr===Pn?Vr.toLowerCase():Pn})}function Ke(Tr,Vr,Pn){u.watchFile(Tr,{persistent:!0,interval:Pn},Ki);let Fr;return{close:()=>u.unwatchFile(Tr,Ki)};function Ki(io,no){const os=+no.mtime==0||Fr===2;if(+io.mtime==0){if(os)return;Fr=2}else if(os)Fr=0;else{if(+io.mtime==+no.mtime)return;Fr=1}Vr(Tr,Fr,io.mtime)}}function st(Tr,Vr,Pn){return u.watch(Tr,ae?{persistent:!0,recursive:!!Vr}:{persistent:!0},Pn)}function It(Tr,Vr){let Pn;try{Pn=u.readFileSync(Tr)}catch{return}let Fr=Pn.length;if(Fr>=2&&Pn[0]===254&&Pn[1]===255){Fr&=-2;for(let Ki=0;Ki=2&&Pn[0]===255&&Pn[1]===254?Pn.toString("utf16le",2):Fr>=3&&Pn[0]===239&&Pn[1]===187&&Pn[2]===191?Pn.toString("utf8",3):Pn.toString("utf8")}function Yt(Tr,Vr){var Pn,Fr;(Pn=Zh)==null||Pn.logStartReadFile(Tr);const Ki=It(Tr);return(Fr=Zh)==null||Fr.logStopReadFile(),Ki}function Et(Tr,Vr,Pn){var Fr;(Fr=Zh)==null||Fr.logEvent("WriteFile: "+Tr),Pn&&(Vr=e+Vr);let Ki;try{Ki=u.openSync(Tr,"w"),u.writeSync(Ki,Vr,void 0,"utf8")}finally{Ki!==void 0&&u.closeSync(Ki)}}function at(Tr){var Vr;(Vr=Zh)==null||Vr.logEvent("ReadDir: "+(Tr||"."));try{const Pn=u.readdirSync(Tr||".",{withFileTypes:!0}),Fr=[],Ki=[];for(const io of Pn){const no=typeof io=="string"?io:io.name;if(no==="."||no==="..")continue;let os;if(typeof io=="string"||io.isSymbolicLink()){const Mo=vl(Tr,no);try{if(os=Pe(Mo),!os)continue}catch{continue}}else os=io;os.isFile()?Fr.push(no):os.isDirectory()&&Ki.push(no)}return Fr.sort(),Ki.sort(),{files:Fr,directories:Ki}}catch{return Xde}}function Qt(Tr,Vr,Pn,Fr,Ki){return ioe(Tr,Vr,Pn,Fr,J,process.cwd(),Ki,at,wr)}function nn(Tr,Vr){const Pn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Fr=Pe(Tr);if(!Fr)return!1;switch(Vr){case 0:return Fr.isFile();case 1:return Fr.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Pn}}function Rn(Tr){return nn(Tr,0)}function cn(Tr){return nn(Tr,1)}function qt(Tr){return at(Tr).directories.slice()}function Kt(Tr){return Tr.length<260?u.realpathSync.native(Tr):u.realpathSync(Tr)}function wr(Tr){try{return X(Tr)}catch{return Tr}}function Wr(Tr){var Vr;const Pn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Vr=Pe(Tr))==null?void 0:Vr.mtime}catch{return}finally{Error.stackTraceLimit=Pn}}function jt(Tr,Vr){try{u.utimesSync(Tr,Vr,Vr)}catch{return}}function En(Tr){try{return u.unlinkSync(Tr)}catch{return}}function fr(Tr){const Vr=S.createHash("sha256");return Vr.update(Tr),Vr.digest("hex")}}let i;return Y5()&&(i=n()),i&&yMe(i),i})(),w0&&w0.getEnvironmentVariable&&(z_e(w0),re.setAssertionLevel(/^development$/i.test(w0.getEnvironmentVariable("NODE_ENV"))?1:0)),w0&&w0.debugMode&&(re.isDebugging=!0)}});function wU(e){return e===47||e===92}function kX(e){return e7(e)<0}function nE(e){return e7(e)>0}function Gre(e){const n=e7(e);return n>0&&n===e.length}function m0(e){return e7(e)!==0}function V2(e){return/^\.\.?($|[\\/])/.test(e)}function jre(e){return!m0(e)&&!V2(e)}function r9(e){return Jg(e).includes(".")}function mm(e,n){return e.length>n.length&&h_(e,n)}function pv(e,n){for(const i of n)if(mm(e,i))return!0;return!1}function VD(e){return e.length>0&&wU(e.charCodeAt(e.length-1))}function U2(e){return e>=97&&e<=122||e>=65&&e<=90}function vMe(e,n){const i=e.charCodeAt(n);if(i===58)return n+1;if(i===37&&e.charCodeAt(n+1)===51){const c=e.charCodeAt(n+2);if(c===97||c===65)return n+3}return-1}function e7(e){if(!e)return 0;const n=e.charCodeAt(0);if(n===47||n===92){if(e.charCodeAt(1)!==n)return 1;const c=e.indexOf(n===47?qp:r7,2);return c<0?e.length:c+1}if(U2(n)&&e.charCodeAt(1)===58){const c=e.charCodeAt(2);if(c===47||c===92)return 3;if(e.length===2)return 2}const i=e.indexOf(wX);if(i!==-1){const c=i+wX.length,u=e.indexOf(qp,c);if(u!==-1){const d=e.slice(0,i),h=e.slice(c,u);if(d==="file"&&(h===""||h==="localhost")&&U2(e.charCodeAt(u+1))){const S=vMe(e,u+2);if(S!==-1){if(e.charCodeAt(S)===47)return~(S+1);if(S===e.length)return~S}}return~(u+1)}return~e.length}return 0}function Pg(e){const n=e7(e);return n<0?~n:n}function ws(e){e=$1(e);const n=Pg(e);return n===e.length?e:(e=bN(e),e.slice(0,Math.max(n,e.lastIndexOf(qp))))}function Jg(e,n,i){if(e=$1(e),Pg(e)===e.length)return"";e=bN(e);const u=e.slice(Math.max(Pg(e),e.lastIndexOf(qp)+1)),d=n!==void 0&&i!==void 0?t7(u,n,i):void 0;return d?u.slice(0,u.length-d.length):u}function bMe(e,n,i){if(qf(n,".")||(n="."+n),e.length>=n.length&&e.charCodeAt(e.length-n.length)===46){const c=e.slice(e.length-n.length);if(i(c,n))return c}}function wat(e,n,i){if(typeof n=="string")return bMe(e,n,i)||"";for(const c of n){const u=bMe(e,c,i);if(u)return u}return""}function t7(e,n,i){if(n)return wat(bN(e),n,i?pN:ZA);const c=Jg(e),u=c.lastIndexOf(".");return u>=0?c.substring(u):""}function vN(e,n){const i=e.substring(0,n),c=e.substring(n).split(qp);return c.length&&!Yf(c)&&c.pop(),[i,...c]}function qc(e,n=""){return e=vl(n,e),vN(e,Pg(e))}function Iy(e,n){return e.length===0?"":(e[0]&&Su(e[0]))+e.slice(1,n).join(qp)}function $1(e){return e.includes("\\")?e.replace(Oz,qp):e}function i9(e){if(!gt(e))return[];const n=[e[0]];for(let i=1;i1){if(n[n.length-1]!==".."){n.pop();continue}}else if(n[0])continue}n.push(c)}}return n}function vl(e,...n){e&&(e=$1(e));for(let i of n)i&&(i=$1(i),!e||Pg(i)!==0?e=i:e=Su(e)+i);return e}function PL(e,...n){return hf(gt(n)?vl(e,...n):$1(e))}function g0(e,n){return i9(qc(e,n))}function vf(e,n){return Iy(g0(e,n))}function hf(e){if(e=$1(e),!ok.test(e))return e;const n=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==e&&(e=n,!ok.test(e)))return e;const i=Iy(i9(qc(e)));return i&&VD(e)?Su(i):i}function Lz(e){return e.length===0?"":e.slice(1).join(qp)}function tf(e,n){return Lz(g0(e,n))}function gm(e,n,i){const c=nE(e)?hf(e):vf(e,n);return i(c)}function bN(e){return VD(e)?e.substr(0,e.length-1):e}function Su(e){return VD(e)?e:e+qp}function Fd(e){return!m0(e)&&!V2(e)?"./"+e:e}function Vre(e,n,i,c){const u=i!==void 0&&c!==void 0?t7(e,i,c):t7(e);return u?e.slice(0,e.length-u.length)+(qf(n,".")?n:"."+n):e}function U_e(e,n,i){if(e===n)return 0;if(e===void 0)return-1;if(n===void 0)return 1;const c=e.substring(0,Pg(e)),u=n.substring(0,Pg(n)),d=Kw(c,u);if(d!==0)return d;const h=e.substring(c.length),S=n.substring(u.length);if(!ok.test(h)&&!ok.test(S))return i(h,S);const E=i9(qc(e)),P=i9(qc(n)),k=Math.min(E.length,P.length);for(let F=1;F0==Pg(n)>0,"Paths must either both be absolute or both be relative");const d=Ure(e,n,(typeof i=="boolean"?i:!1)?pN:ZA,typeof i=="function"?i:Of);return Iy(d)}function PX(e,n,i){return nE(e)?GC(n,e,n,i,!1):e}function wM(e,n,i){return Fd(sP(ws(e),n,i))}function GC(e,n,i,c,u){const d=Ure(PL(i,e),PL(i,n),ZA,c),h=d[0];if(u&&nE(h)){const S=h.charAt(0)===qp?"file://":"file:///";d[0]=S+h}return Iy(d)}function jC(e,n){for(;;){const i=n(e);if(i!==void 0)return i;const c=ws(e);if(c===e)return;e=c}}function NX(e){return h_(e,"/node_modules")}var qp,r7,wX,Oz,ok,TMe=G({"src/compiler/path.ts"(){md(),qp="/",r7="\\",wX="://",Oz=/\\/g,ok=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function q(e,n,i,c,u,d,h){return{code:e,category:n,key:i,message:c,reportsUnnecessary:u,elidedInCompatabilityPyramid:d,reportsDeprecated:h}}var N,SMe=G({"src/compiler/diagnosticInformationMap.generated.ts"(){bTe(),N={Unterminated_string_literal:q(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:q(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:q(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:q(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:q(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:q(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:q(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:q(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:q(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:q(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:q(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:q(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:q(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:q(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:q(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:q(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:q(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:q(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:q(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:q(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:q(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:q(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:q(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:q(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:q(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:q(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:q(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:q(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:q(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:q(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:q(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:q(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:q(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:q(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:q(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:q(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:q(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:q(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:q(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:q(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:q(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:q(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:q(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:q(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:q(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:q(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:q(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:q(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:q(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:q(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:q(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:q(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:q(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:q(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:q(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:q(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:q(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:q(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:q(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:q(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:q(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:q(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:q(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:q(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:q(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:q(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:q(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:q(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:q(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:q(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:q(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:q(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:q(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:q(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:q(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:q(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:q(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:q(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:q(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:q(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:q(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:q(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:q(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:q(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:q(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:q(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:q(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:q(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:q(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:q(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:q(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:q(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:q(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:q(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:q(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:q(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:q(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:q(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:q(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:q(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:q(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:q(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:q(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:q(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:q(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:q(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:q(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:q(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:q(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:q(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:q(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:q(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:q(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:q(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:q(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:q(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:q(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:q(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:q(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:q(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:q(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:q(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:q(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:q(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:q(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:q(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:q(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:q(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:q(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:q(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:q(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:q(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:q(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:q(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:q(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:q(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:q(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:q(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:q(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:q(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:q(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:q(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:q(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:q(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:q(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:q(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:q(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:q(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:q(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:q(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:q(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:q(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:q(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:q(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:q(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:q(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:q(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:q(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:q(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:q(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:q(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:q(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:q(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:q(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:q(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:q(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:q(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:q(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:q(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:q(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:q(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:q(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:q(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:q(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:q(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:q(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:q(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:q(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:q(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:q(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:q(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:q(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:q(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:q(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:q(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:q(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:q(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:q(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:q(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:q(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:q(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:q(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:q(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:q(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:q(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:q(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:q(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:q(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:q(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:q(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:q(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:q(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:q(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:q(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:q(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:q(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:q(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:q(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:q(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:q(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:q(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:q(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:q(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:q(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:q(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:q(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:q(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:q(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:q(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:q(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:q(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:q(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:q(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:q(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:q(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:q(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:q(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:q(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:q(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:q(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:q(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:q(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:q(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:q(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:q(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:q(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:q(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:q(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:q(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:q(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:q(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:q(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:q(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:q(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:q(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:q(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:q(6024,3,"options_6024","options"),file:q(6025,3,"file_6025","file"),Examples_Colon_0:q(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:q(6027,3,"Options_Colon_6027","Options:"),Version_0:q(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:q(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:q(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:q(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:q(6034,3,"KIND_6034","KIND"),FILE:q(6035,3,"FILE_6035","FILE"),VERSION:q(6036,3,"VERSION_6036","VERSION"),LOCATION:q(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:q(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:q(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:q(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:q(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:q(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:q(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:q(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:q(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:q(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:q(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:q(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:q(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:q(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:q(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:q(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:q(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:q(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:q(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:q(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:q(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:q(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:q(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:q(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:q(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:q(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:q(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:q(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:q(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:q(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:q(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:q(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:q(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:q(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:q(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:q(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:q(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:q(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:q(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:q(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:q(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:q(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:q(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:q(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:q(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:q(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:q(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:q(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:q(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:q(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:q(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:q(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:q(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:q(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:q(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:q(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:q(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:q(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:q(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:q(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:q(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:q(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:q(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:q(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:q(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:q(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:q(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:q(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:q(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:q(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:q(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:q(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:q(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:q(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:q(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:q(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:q(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:q(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:q(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:q(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:q(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:q(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:q(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:q(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:q(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:q(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:q(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:q(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:q(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:q(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:q(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:q(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:q(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:q(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:q(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:q(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:q(6244,3,"Modules_6244","Modules"),File_Management:q(6245,3,"File_Management_6245","File Management"),Emit:q(6246,3,"Emit_6246","Emit"),JavaScript_Support:q(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:q(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:q(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:q(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:q(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:q(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:q(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:q(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:q(6255,3,"Projects_6255","Projects"),Output_Formatting:q(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:q(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:q(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:q(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:q(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:q(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:q(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:q(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:q(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:q(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:q(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:q(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:q(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:q(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:q(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:q(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:q(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:q(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:q(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:q(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:q(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:q(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:q(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:q(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:q(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:q(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:q(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:q(6902,3,"type_Colon_6902","type:"),default_Colon:q(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:q(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:q(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:q(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:q(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:q(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:q(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:q(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:q(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:q(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:q(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:q(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:q(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:q(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:q(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:q(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:q(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:q(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:q(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:q(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:q(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:q(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:q(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:q(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:q(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:q(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:q(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:q(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:q(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:q(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:q(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:q(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:q(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:q(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:q(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:q(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:q(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:q(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:q(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:q(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:q(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:q(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:q(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:q(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:q(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:q(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:q(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:q(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:q(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:q(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:q(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:q(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:q(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:q(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:q(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:q(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:q(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:q(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:q(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:q(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:q(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:q(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:q(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:q(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:q(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:q(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:q(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:q(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:q(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:q(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:q(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:q(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:q(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:q(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:q(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:q(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:q(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:q(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:q(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:q(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:q(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:q(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:q(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:q(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:q(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:q(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:q(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:q(95005,3,"Extract_function_95005","Extract function"),Extract_constant:q(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:q(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:q(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:q(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:q(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:q(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:q(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:q(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:q(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:q(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:q(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:q(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:q(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:q(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:q(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:q(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:q(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:q(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:q(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:q(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:q(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:q(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:q(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:q(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:q(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:q(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:q(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:q(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:q(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:q(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:q(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:q(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:q(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:q(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:q(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:q(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:q(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:q(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:q(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:q(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:q(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:q(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:q(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:q(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:q(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:q(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:q(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:q(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:q(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:q(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:q(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:q(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:q(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:q(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:q(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:q(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:q(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:q(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:q(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:q(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:q(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:q(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:q(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:q(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:q(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:q(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:q(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:q(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:q(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:q(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:q(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:q(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:q(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:q(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:q(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:q(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:q(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:q(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:q(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:q(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:q(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:q(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:q(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:q(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:q(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:q(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:q(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:q(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:q(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:q(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:q(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:q(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:q(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:q(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:q(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:q(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:q(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:q(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:q(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:q(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:q(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:q(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:q(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:q(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:q(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:q(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:q(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:q(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:q(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:q(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:q(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:q(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:q(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:q(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:q(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:q(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:q(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:q(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:q(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:q(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:q(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:q(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:q(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:q(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:q(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:q(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:q(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:q(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:q(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:q(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:q(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:q(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:q(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:q(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:q(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:q(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:q(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:q(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:q(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:q(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:q(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:q(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:q(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:q(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:q(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:q(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:q(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:q(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:q(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:q(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:q(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:q(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:q(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:q(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:q(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:q(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:q(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:q(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:q(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:q(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:q(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:q(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:q(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:q(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:q(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:q(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:q(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:q(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:q(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:q(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:q(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:q(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:q(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:q(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:q(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:q(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(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:q(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:q(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:q(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:q(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:q(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:q(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:q(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:q(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:q(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 CT(e){return e>=80}function RX(e){return e===32||CT(e)}function Hre(e,n){if(e=2?Hre(e,DTe):n===1?Hre(e,Jre):Hre(e,OVe)}function w(e,n){return n>=2?Hre(e,xMe):n===1?Hre(e,EMe):Hre(e,LU)}function Rat(e){const n=[];return e.forEach((i,c)=>{n[i]=c}),n}function Cf(e){return IMe[e]}function D8(e){return LM.get(e)}function RM(e){const n=[];let i=0,c=0;for(;i127&&Sb(u)&&(n.push(c),c=i);break}}return n.push(c),n}function Fz(e,n,i,c){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,i,c):H_e(eR(e),n,i,e.text,c)}function H_e(e,n,i,c,u){(n<0||n>=e.length)&&(u?n=n<0?0:n>=e.length?e.length-1:n:re.fail(`Bad line number. Line: ${n}, lineStarts.length: ${e.length} , line map is correct? ${c!==void 0?sf(e,RM(c)):"unknown"}`));const d=e[n]+i;return u?d>e[n+1]?e[n+1]:typeof c=="string"&&d>c.length?c.length:d:(n=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Sb(e){return e===10||e===13||e===8232||e===8233}function I8(e){return e>=48&&e<=57}function MX(e){return I8(e)||e>=65&&e<=70||e>=97&&e<=102}function Ah(e){return e<=1114111}function UD(e){return e>=48&&e<=55}function HD(e,n){const i=e.charCodeAt(n);switch(i){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 n===0;default:return i>127}}function Ff(e,n,i,c,u){if(ab(n))return n;let d=!1;for(;;){const h=e.charCodeAt(n);switch(h){case 13:e.charCodeAt(n+1)===10&&n++;case 10:if(n++,i)return n;d=!!u;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(c)break;if(e.charCodeAt(n+1)===47){for(n+=2;n127&&cP(h)){n++;continue}break}return n}}function NL(e,n){if(re.assert(n>=0),n===0||Sb(e.charCodeAt(n-1))){const i=e.charCodeAt(n);if(n+$re=0&&i127&&cP(X)){F&&Sb(X)&&(k=!0),i++;continue}break e}}return F&&(J=u(S,E,P,k,d,J)),J}function ep(e,n,i,c){return J_e(!1,e,n,!1,i,c)}function k8(e,n,i,c){return J_e(!1,e,n,!0,i,c)}function MU(e,n,i,c,u){return J_e(!0,e,n,!1,i,c,u)}function $_e(e,n,i,c,u){return J_e(!0,e,n,!0,i,c,u)}function CTe(e,n,i,c,u,d=[]){return d.push({kind:i,pos:e,end:n,hasTrailingNewLine:c}),d}function JD(e,n){return MU(e,n,CTe,void 0,void 0)}function SN(e,n){return $_e(e,n,CTe,void 0,void 0)}function Wz(e){const n=q_e.exec(e);if(n)return n[0]}function lP(e,n){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&K(e,n)}function wL(e,n,i){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(i===1?e===45||e===58:!1)||e>127&&w(e,n)}function H2(e,n,i){let c=Nx(e,0);if(!lP(c,n))return!1;for(let u=tR(c);uk,getStartPos:()=>k,getTokenEnd:()=>E,getTextPos:()=>E,getToken:()=>$,getTokenStart:()=>F,getTokenPos:()=>F,getTokenText:()=>S.substring(F,E),getTokenValue:()=>J,hasUnicodeEscape:()=>(X&1024)!==0,hasExtendedUnicodeEscape:()=>(X&8)!==0,hasPrecedingLineBreak:()=>(X&1)!==0,hasPrecedingJSDocComment:()=>(X&2)!==0,isIdentifier:()=>$===80||$>118,isReservedWord:()=>$>=83&&$<=118,isUnterminated:()=>(X&4)!==0,getCommentDirectives:()=>ie,getNumericLiteralFlags:()=>X&25584,getTokenFlags:()=>X,reScanGreaterToken:jt,reScanAsteriskEqualsToken:En,reScanSlashToken:fr,reScanTemplateToken:Pn,reScanTemplateHeadOrNoSubstitutionTemplate:Fr,scanJsxIdentifier:$i,scanJsxAttributeValue:ki,reScanJsxAttributeValue:gc,reScanJsxToken:Ki,reScanLessThanToken:io,reScanHashToken:no,reScanQuestionToken:os,reScanInvalidIdentifier:wr,scanJsxToken:Mo,scanJsDocToken:Jc,scanJSDocCommentTextToken:Wl,scan:qt,getText:zi,clearCommentDirectives:na,setText:_a,setScriptTarget:Au,setLanguageVariant:Qu,setScriptKind:Cu,setJSDocParsingMode:yf,setOnError:us,resetTokenState:w_,setTextPos:w_,setInJSDocType:Eu,tryScan:Ia,lookAhead:za,scanRange:qn};return re.isDebugging&&Object.defineProperty(Fe,"__debugShowCurrentPositionInText",{get:()=>{const He=Fe.getText();return He.slice(0,Fe.getTokenFullStart())+"║"+He.slice(Fe.getTokenFullStart())}}),Fe;function et(He,Hn=E,dr,Mr){if(u){const Pr=E;E=Hn,u(He,dr||0,Mr),E=Pr}}function Pe(){let He=E,Hn=!1,dr=!1,Mr="";for(;;){const Pr=S.charCodeAt(E);if(Pr===95){X|=512,Hn?(Hn=!1,dr=!0,Mr+=S.substring(He,E)):(X|=16384,et(dr?N.Multiple_consecutive_numeric_separators_are_not_permitted:N.Numeric_separators_are_not_allowed_here,E,1)),E++,He=E;continue}if(I8(Pr)){Hn=!0,dr=!1,E++;continue}break}return S.charCodeAt(E-1)===95&&(X|=16384,et(N.Numeric_separators_are_not_allowed_here,E-1,1)),Mr+S.substring(He,E)}function dt(){let He=E,Hn;if(S.charCodeAt(E)===48)if(E++,S.charCodeAt(E)===95)X|=16896,et(N.Numeric_separators_are_not_allowed_here,E,1),E--,Hn=Pe();else if(!ct())X|=8192,Hn=""+ +J;else if(!J)Hn="0";else{J=""+parseInt(J,8),X|=32;const ln=$===41,Wn=(ln?"-":"")+"0o"+(+J).toString(8);return ln&&He--,et(N.Octal_literals_are_not_allowed_Use_the_syntax_0,He,E-He,Wn),9}else Hn=Pe();let dr,Mr;S.charCodeAt(E)===46&&(E++,dr=Pe());let Pr=E;if(S.charCodeAt(E)===69||S.charCodeAt(E)===101){E++,X|=16,(S.charCodeAt(E)===43||S.charCodeAt(E)===45)&&E++;const ln=E,Wn=Pe();Wn?(Mr=S.substring(Pr,ln)+Wn,Pr=E):et(N.Digit_expected)}let Bt;if(X&512?(Bt=Hn,dr&&(Bt+="."+dr),Mr&&(Bt+=Mr)):Bt=S.substring(He,Pr),X&8192)return et(N.Decimals_with_leading_zeros_are_not_allowed,He,Pr-He),J=""+ +Bt,9;if(dr!==void 0||X&16)return Ie(He,dr===void 0&&!!(X&16)),J=""+ +Bt,9;{J=Bt;const ln=cn();return Ie(He),ln}}function Ie(He,Hn){if(!lP(Nx(S,E),e))return;const dr=E,{length:Mr}=Qt();Mr===1&&S[dr]==="n"?et(Hn?N.A_bigint_literal_cannot_use_exponential_notation:N.A_bigint_literal_must_be_an_integer,He,dr-He+1):(et(N.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,dr,Mr),E=dr)}function ct(){const He=E;let Hn=!0;for(;I8(S.charCodeAt(E));)UD(S.charCodeAt(E))||(Hn=!1),E++;return J=S.substring(He,E),Hn}function Ct(He,Hn){const dr=Ze(He,!1,Hn);return dr?parseInt(dr,16):-1}function Lt(He,Hn){return Ze(He,!0,Hn)}function Ze(He,Hn,dr){let Mr=[],Pr=!1,Bt=!1;for(;Mr.length=65&&ln<=70)ln+=32;else if(!(ln>=48&&ln<=57||ln>=97&&ln<=102))break;Mr.push(ln),E++,Bt=!1}return Mr.length=P){dr+=S.substring(Mr,E),X|=4,et(N.Unterminated_string_literal);break}const Pr=S.charCodeAt(E);if(Pr===Hn){dr+=S.substring(Mr,E),E++;break}if(Pr===92&&!He){dr+=S.substring(Mr,E),dr+=It(!0),Mr=E;continue}if((Pr===10||Pr===13)&&!He){dr+=S.substring(Mr,E),X|=4,et(N.Unterminated_string_literal);break}E++}return dr}function st(He){const Hn=S.charCodeAt(E)===96;E++;let dr=E,Mr="",Pr;for(;;){if(E>=P){Mr+=S.substring(dr,E),X|=4,et(N.Unterminated_template_literal),Pr=Hn?15:18;break}const Bt=S.charCodeAt(E);if(Bt===96){Mr+=S.substring(dr,E),E++,Pr=Hn?15:18;break}if(Bt===36&&E+1=P)return et(N.Unexpected_end_of_text),"";const dr=S.charCodeAt(E);switch(E++,dr){case 48:if(E>=P||!I8(S.charCodeAt(E)))return"\0";case 49:case 50:case 51:E=P?(X|=2048,He&&et(N.Unexpected_end_of_text),S.substring(Hn,E)):S.charCodeAt(E)!==125?(X|=2048,He&&et(N.Unterminated_Unicode_escape_sequence),S.substring(Hn,E)):(E++,X|=8,ak(Pr)):(X|=2048,He&&et(N.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),S.substring(Hn,E))}for(;E1114111&&(et(N.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),dr=!0),E>=P?(et(N.Unexpected_end_of_text),dr=!0):S.charCodeAt(E)===125?E++:(et(N.Unterminated_Unicode_escape_sequence),dr=!0),dr?"":ak(Hn)}function Et(){if(E+5=0&&RL(dr,e)){E+=3,X|=8,He+=Yt(),Hn=E;continue}if(dr=Et(),!(dr>=0&&RL(dr,e)))break;X|=1024,He+=S.substring(Hn,E),He+=ak(dr),E+=6,Hn=E}else break}return He+=S.substring(Hn,E),He}function nn(){const He=J.length;if(He>=2&&He<=12){const Hn=J.charCodeAt(0);if(Hn>=97&&Hn<=122){const dr=MM.get(J);if(dr!==void 0)return $=dr}}return $=80}function Rn(He){let Hn="",dr=!1,Mr=!1;for(;;){const Pr=S.charCodeAt(E);if(Pr===95){X|=512,dr?(dr=!1,Mr=!0):et(Mr?N.Multiple_consecutive_numeric_separators_are_not_permitted:N.Numeric_separators_are_not_allowed_here,E,1),E++;continue}if(dr=!0,!I8(Pr)||Pr-48>=He)break;Hn+=S[E],E++,Mr=!1}return S.charCodeAt(E-1)===95&&et(N.Numeric_separators_are_not_allowed_here,E-1,1),Hn}function cn(){return S.charCodeAt(E)===110?(J+="n",X&384&&(J=l3(J)+"n"),E++,10):(J=""+(X&128?parseInt(J.slice(2),2):X&256?parseInt(J.slice(2),8):+J),9)}function qt(){k=E,X=0;let He=!1;for(;;){if(F=E,E>=P)return $=1;const Hn=Nx(S,E);if(E===0){if(Hn===65533)return et(N.File_appears_to_be_binary),E=P,$=8;if(Hn===35&&ATe(S,E)){if(E=OX(S,E),n)continue;return $=6}}switch(Hn){case 10:case 13:if(X|=1,n){E++;continue}else return Hn===13&&E+1=0&&lP(dr,e))return E+=3,X|=8,J=Yt()+Qt(),$=nn();const Mr=Et();return Mr>=0&&lP(Mr,e)?(E+=6,X|=1024,J=String.fromCharCode(Mr)+Qt(),$=nn()):(et(N.Invalid_character),E++,$=0);case 35:if(E!==0&&S[E+1]==="!")return et(N.can_only_be_used_at_the_start_of_a_file),E++,$=0;const Pr=Nx(S,E+1);if(Pr===92){E++;const Wn=at();if(Wn>=0&&lP(Wn,e))return E+=3,X|=8,J="#"+Yt()+Qt(),$=81;const $r=Et();if($r>=0&&lP($r,e))return E+=6,X|=1024,J="#"+String.fromCharCode($r)+Qt(),$=81;E--}return lP(Pr,e)?(E++,Wr(Pr,e)):(J="#",et(N.Invalid_character,E++,tR(Hn))),$=81;default:const Bt=Wr(Hn,e);if(Bt)return $=Bt;if(q1(Hn)){E+=tR(Hn);continue}else if(Sb(Hn)){X|=1,E+=tR(Hn);continue}const ln=tR(Hn);return et(N.Invalid_character,E,ln),E+=ln,$=0}}}function Kt(){switch(we){case 0:return!0;case 1:return!1}return ve!==3&&ve!==4?!0:we===3?!1:DMe.test(S.slice(k,E))}function wr(){re.assert($===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),E=F=k,X=0;const He=Nx(S,E),Hn=Wr(He,99);return Hn?$=Hn:(E+=tR(He),$)}function Wr(He,Hn){let dr=He;if(lP(dr,Hn)){for(E+=tR(dr);E=P)return $=1;let Hn=S.charCodeAt(E);if(Hn===60)return S.charCodeAt(E+1)===47?(E+=2,$=31):(E++,$=30);if(Hn===123)return E++,$=19;let dr=0;for(;E0)break;cP(Hn)||(dr=E)}E++}return J=S.substring(k,E),dr===-1?13:12}function $i(){if(CT($)){for(;E=P)return $=1;for(let Hn=S.charCodeAt(E);E=0&&q1(S.charCodeAt(E-1))&&!(E+1=P)return $=1;const He=Nx(S,E);switch(E+=tR(He),He){case 9:case 11:case 12:case 32:for(;E=0&&lP(Hn,e))return E+=3,X|=8,J=Yt()+Qt(),$=nn();const dr=Et();return dr>=0&&lP(dr,e)?(E+=6,X|=1024,J=String.fromCharCode(dr)+Qt(),$=nn()):(E++,$=0)}if(lP(He,e)){let Hn=He;for(;E=0),E=He,k=He,F=He,$=0,J=void 0,X=0}function Eu(He){ae+=He?1:-1}}function Nx(e,n){return e.codePointAt(n)}function tR(e){return e>=65536?2:1}function nR(e){if(re.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const n=Math.floor((e-65536)/1024)+55296,i=(e-65536)%1024+56320;return String.fromCharCode(n,i)}function ak(e){return kMe(e)}var rE,MM,LM,OVe,LU,Jre,EMe,DTe,xMe,AMe,CMe,DMe,IMe,$re,q_e,kMe,FVe=G({"src/compiler/scanner.ts"(){md(),rE={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},MM=new Map(Object.entries(rE)),LM=new Map(Object.entries({...rE,"{":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})),OVe=[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],LU=[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],Jre=[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],EMe=[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],DTe=[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],xMe=[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],AMe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,CMe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,DMe=/@(?:see|link)/i,IMe=Rat(LM),$re=7,q_e=/^#!.*/,kMe=String.fromCodePoint?e=>String.fromCodePoint(e):nR}});function Kv(e){return V2(e)||nE(e)}function o7(e){return OD(e,o3)}function $D(e){switch(iu(e)){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 Xy(e){return e.start+e.length}function PMe(e){return e.length===0}function tb(e,n){return n>=e.start&&n=e.pos&&n<=e.end}function qre(e,n){return n.start>=e.start&&Xy(n)<=Xy(e)}function K1(e,n){return ITe(e,n)!==void 0}function ITe(e,n){const i=PTe(e,n);return i&&i.length===0?void 0:i}function kTe(e,n){return FX(e.start,e.length,n.start,n.length)}function zz(e,n,i){return FX(e.start,e.length,n,i)}function FX(e,n,i,c){const u=e+n,d=i+c;return i<=u&&d>=e}function NMe(e,n){return n<=Xy(e)&&n>=e.start}function PTe(e,n){const i=Math.max(e.start,n.start),c=Math.min(Xy(e),Xy(n));return i<=c?Yy(i,c):void 0}function p1(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function Yy(e,n){return p1(e,n-e)}function o9(e){return p1(e.span.start,e.newLength)}function NTe(e){return PMe(e.span)&&e.newLength===0}function WX(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function nb(e){if(e.length===0)return FL;if(e.length===1)return e[0];const n=e[0];let i=n.span.start,c=Xy(n.span),u=i+n.newLength;for(let d=1;d=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ic(e){const n=e;return n.length>=3&&n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===95?n.substr(1):n}function Kr(e){return Ic(e.escapedText)}function uP(e){const n=D8(e.escapedText);return n?to(n,qb):void 0}function Il(e){return e.valueDeclaration&&IT(e.valueDeclaration)?Kr(e.valueDeclaration.name):Ic(e.escapedName)}function ty(e){const n=e.parent.parent;if(n){if(PT(n))return lf(n);switch(n.kind){case 243:if(n.declarationList&&n.declarationList.declarations[0])return lf(n.declarationList.declarations[0]);break;case 244:let i=n.expression;switch(i.kind===226&&i.operatorToken.kind===64&&(i=i.left),i.kind){case 211:return i.name;case 212:const c=i.argumentExpression;if(xn(c))return c}break;case 217:return lf(n.expression);case 256:{if(PT(n.statement)||kr(n.statement))return lf(n.statement);break}}}}function lf(e){const n=i_(e);return n&&xn(n)?n:void 0}function ec(e,n){return!!(mp(e)&&xn(e.name)&&Kr(e.name)===Kr(n)||Xg(e)&>(e.declarationList.declarations,i=>ec(i,n)))}function ML(e){return e.name||ty(e)}function mp(e){return!!e.name}function Kre(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:i}=e;if(i.kind===166)return i.right;break}case 213:case 226:{const i=e;switch(jy(i)){case 1:case 4:case 5:case 3:return lH(i.left);case 7:case 8:case 9:return i.arguments[1];default:return}}case 353:return ML(e);case 347:return ty(e);case 277:{const{expression:i}=e;return xn(i)?i:void 0}case 212:const n=e;if(jL(n))return n.argumentExpression}return e.name}function i_(e){if(e!==void 0)return Kre(e)||(Jm(e)||$m(e)||v0(e)?FU(e):void 0)}function FU(e){if(e.parent){if(tl(e.parent)||sa(e.parent))return e.parent.name;if(Ds(e.parent)&&e===e.parent.right){if(xn(e.parent.left))return e.parent.left;if(Kf(e.parent.left))return lH(e.parent.left)}else if(Kc(e.parent)&&xn(e.parent.name))return e.parent.name}else return}function OM(e){if(X2(e))return gi(e.modifiers,Jh)}function Xv(e){if(ul(e,98303))return gi(e.modifiers,Mf)}function X_e(e,n){if(e.name)if(xn(e.name)){const i=e.name.escapedText;return Yre(e.parent,n).filter(c=>A2(c)&&xn(c.name)&&c.name.escapedText===i)}else{const i=e.parent.parameters.indexOf(e);re.assert(i>-1,"Parameters should always be in their parents' parameter list");const c=Yre(e.parent,n).filter(A2);if(iCA(c)&&c.typeParameters.some(u=>u.name.escapedText===i))}function N8(e){return LL(e,!1)}function MTe(e){return LL(e,!0)}function Gz(e){return!!X1(e,A2)}function LTe(e){return X1(e,xW)}function OTe(e){return WU(e,jJ)}function Q_e(e){return X1(e,_pe)}function RMe(e){return X1(e,FG)}function FTe(e){return X1(e,FG,!0)}function MMe(e){return X1(e,Woe)}function WTe(e){return X1(e,Woe,!0)}function BTe(e){return X1(e,DEe)}function LMe(e){return X1(e,DEe,!0)}function OMe(e){return X1(e,BJ)}function FMe(e){return X1(e,BJ,!0)}function zTe(e){return X1(e,AA,!0)}function GTe(e){return X1(e,dpe)}function jTe(e){return X1(e,dpe,!0)}function VTe(e){return X1(e,jx)}function Xre(e){return X1(e,IEe)}function UTe(e){return X1(e,ppe)}function HTe(e){return X1(e,CA)}function Z_e(e){return X1(e,e4)}function FM(e){const n=X1(e,WG);if(n&&n.typeExpression&&n.typeExpression.type)return n}function iR(e){let n=X1(e,WG);return!n&&Os(e)&&(n=lr(o_(e),i=>!!i.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function GX(e){const n=UTe(e);if(n&&n.typeExpression)return n.typeExpression.type;const i=FM(e);if(i&&i.typeExpression){const c=i.typeExpression.type;if(rS(c)){const u=lr(c.members,Y7);return u&&u.type}if(e0(c)||Ak(c))return c.type}}function Yre(e,n){var i;if(!T2(e))return Yn;let c=(i=e.jsDoc)==null?void 0:i.jsDocCache;if(c===void 0||n){const u=fH(e,n);re.assert(u.length<2||u[0]!==u[1]),c=ea(u,d=>uC(d)?d.tags:d),n||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=c)}return c}function WM(e){return Yre(e,!1)}function w8(e){return Yre(e,!0)}function X1(e,n,i){return lr(Yre(e,i),n)}function WU(e,n){return WM(e).filter(n)}function jX(e,n){return WM(e).filter(i=>i.kind===n)}function EN(e){return typeof e=="string"?e:e==null?void 0:e.map(n=>n.kind===328?n.text:Mat(n)).join("")}function Mat(e){const n=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",i=e.name?iE(e.name):"",c=e.name&&e.text.startsWith("://")?"":" ";return`{@${n} ${i}${c}${e.text}}`}function Hb(e){if(b6(e)){if(aF(e.parent)){const n=_H(e.parent);if(n&&Nt(n.tags))return ea(n.tags,i=>CA(i)?i.typeParameters:void 0)}return Yn}if(b2(e))return re.assert(e.parent.kind===327),ea(e.parent.tags,n=>CA(n)?n.typeParameters:void 0);if(e.typeParameters||zEe(e)&&e.typeParameters)return e.typeParameters;if(Cs(e)){const n=SY(e);if(n.length)return n;const i=iR(e);if(i&&e0(i)&&i.typeParameters)return i.typeParameters}return Yn}function a9(e){return e.constraint?e.constraint:CA(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function xN(e){return e.kind===80||e.kind===81}function jz(e){return e.kind===178||e.kind===177}function ede(e){return Ac(e)&&!!(e.flags&64)}function oR(e){return Hm(e)&&!!(e.flags&64)}function AN(e){return xd(e)&&!!(e.flags&64)}function fy(e){const n=e.kind;return!!(e.flags&64)&&(n===211||n===212||n===213||n===235)}function s9(e){return fy(e)&&!E3(e)&&!!e.questionDotToken}function BU(e){return s9(e.parent)&&e.parent.expression===e}function Vz(e){return!fy(e.parent)||s9(e.parent)||e!==e.parent.expression}function R8(e){return e.kind===226&&e.operatorToken.kind===61}function ky(e){return uE(e)&&xn(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function h2(e){return iv(e,8)}function zU(e){return E3(e)&&!!(e.flags&64)}function M8(e){return e.kind===252||e.kind===251}function Qre(e){return e.kind===280||e.kind===279}function CN(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function pA(e){return CN(e)||e.kind===307||e.kind===311}function Uz(e){return e.kind===355||e.kind===348}function VX(e){return GU(e.kind)}function GU(e){return e>=166}function tde(e){return e>=0&&e<=165}function a7(e){return tde(e.kind)}function BM(e){return ef(e,"pos")&&ef(e,"end")}function UX(e){return 9<=e&&e<=15}function aR(e){return UX(e.kind)}function Zre(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function VC(e){return 15<=e&&e<=18}function L8(e){return VC(e.kind)}function c9(e){const n=e.kind;return n===17||n===18}function fP(e){return qE(e)||gy(e)}function HX(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function zM(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function O8(e){return HX(e)||zM(e)}function JX(e){return e.kind===11||VC(e.kind)}function l9(e){return Sd(e)||xn(e)}function $g(e){var n;return xn(e)&&((n=e.emitNode)==null?void 0:n.autoGenerate)!==void 0}function s7(e){var n;return Lu(e)&&((n=e.emitNode)==null?void 0:n.autoGenerate)!==void 0}function sR(e){const n=e.emitNode.autoGenerate.flags;return!!(n&32)&&!!(n&16)&&!!(n&8)}function IT(e){return(nu(e)||Mv(e))&&Lu(e.name)}function u9(e){return Ac(e)&&Lu(e.name)}function Om(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function cR(e){return!!(F7(e)&31)}function jU(e){return cR(e)||e===126||e===164||e===129}function Mf(e){return Om(e.kind)}function kT(e){const n=e.kind;return n===166||n===80}function qg(e){const n=e.kind;return n===80||n===81||n===11||n===9||n===167}function lR(e){const n=e.kind;return n===80||n===206||n===207}function F_(e){return!!e&&S_(e.kind)}function bd(e){return!!e&&(S_(e.kind)||Ep(e))}function Vd(e){return e&&f9(e.kind)}function _y(e){return e.kind===112||e.kind===97}function f9(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function S_(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return f9(e)}}function _9(e){return Nu(e)||kh(e)||Ou(e)&&F_(e.parent)}function J_(e){const n=e.kind;return n===176||n===172||n===174||n===177||n===178||n===181||n===175||n===240}function Fl(e){return e&&(e.kind===263||e.kind===231)}function GM(e){return e&&(e.kind===177||e.kind===178)}function xb(e){return nu(e)&&e_(e)}function nde(e){return Cs(e)&&eJ(e)?(!mR(e)||!bP(e.expression))&&!U8(e,!0):e.parent&&Fl(e.parent)&&nu(e)&&!e_(e)}function Mv(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Jl(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Am(e){return Mf(e)||Jh(e)}function rb(e){const n=e.kind;return n===180||n===179||n===171||n===173||n===181||n===177||n===178}function c7(e){return rb(e)||J_(e)}function DN(e){const n=e.kind;return n===303||n===304||n===305||n===174||n===177||n===178}function pc(e){return Xie(e.kind)}function l7(e){switch(e.kind){case 184:case 185:return!0}return!1}function $_(e){if(e){const n=e.kind;return n===207||n===206}return!1}function KD(e){const n=e.kind;return n===209||n===210}function Uu(e){const n=e.kind;return n===208||n===232}function $X(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function ld(e){return Kc(e)||Os(e)||d9(e)||p9(e)}function u7(e){return qX(e)||rde(e)}function qX(e){switch(e.kind){case 206:case 210:return!0}return!1}function d9(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function rde(e){switch(e.kind){case 207:case 209:return!0}return!1}function p9(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Zv(e,!0)}function ide(e){const n=e.kind;return n===211||n===166||n===205}function KX(e){const n=e.kind;return n===211||n===166}function eie(e){return uR(e)||EP(e)}function uR(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function sk(e){return e.kind===213||e.kind===214}function Hz(e){const n=e.kind;return n===228||n===15}function ib(e){return IN(h2(e).kind)}function IN(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function m9(e){return FE(h2(e).kind)}function FE(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return IN(e)}}function JTe(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ode(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return aR(e)}}function kr(e){return WVe(h2(e).kind)}function WVe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return FE(e)}}function f7(e){const n=e.kind;return n===216||n===234}function Nr(e){return rD(e)||Roe(e)}function OL(e,n){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return n&&OL(e.statement,n)}return!1}function _7(e){return my(e)||ry(e)}function WMe(e){return gt(e,_7)}function kN(e){return!eH(e)&&!my(e)&&!ul(e,32)&&!dh(e)}function XX(e){return eH(e)||my(e)||ul(e,32)}function Jz(e){return e.kind===249||e.kind===250}function VU(e){return Ou(e)||kr(e)}function UU(e){return Ou(e)}function DS(e){return Kp(e)||kr(e)}function tie(e){const n=e.kind;return n===268||n===267||n===80}function $Te(e){const n=e.kind;return n===268||n===267}function mA(e){const n=e.kind;return n===80||n===267}function ade(e){const n=e.kind;return n===275||n===274}function nie(e){return e.kind===267||e.kind===266}function ck(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 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 XD(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 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 sde(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function YD(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function lk(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function PT(e){return e.kind===168?e.parent&&e.parent.kind!==352||Cs(e):sde(e.kind)}function cde(e){return YD(e.kind)}function HU(e){return lk(e.kind)}function dl(e){const n=e.kind;return lk(n)||YD(n)||BVe(e)}function BVe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!hP(e)}function YX(e){const n=e.kind;return lk(n)||YD(n)||n===241}function uf(e){const n=e.kind;return n===283||n===166||n===80}function QX(e){const n=e.kind;return n===110||n===80||n===211||n===295}function ZX(e){const n=e.kind;return n===284||n===294||n===285||n===12||n===288}function rie(e){const n=e.kind;return n===291||n===293}function JU(e){const n=e.kind;return n===11||n===294}function m1(e){const n=e.kind;return n===286||n===285}function $U(e){const n=e.kind;return n===296||n===297}function $z(e){return e.kind>=316&&e.kind<=357}function Y1(e){return e.kind===327||e.kind===326||e.kind===328||F8(e)||d7(e)||oF(e)||b6(e)}function d7(e){return e.kind>=334&&e.kind<=357}function UC(e){return e.kind===178}function PN(e){return e.kind===177}function NT(e){if(!T2(e))return!1;const{jsDoc:n}=e;return!!n&&n.length>0}function _P(e){return!!e.type}function J2(e){return!!e.initializer}function g1(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function eY(e){return e.kind===291||e.kind===293||DN(e)}function NN(e){return e.kind===183||e.kind===233}function p7(e){let n=dP;for(const i of e){if(!i.length)continue;let c=0;for(;ci.kind===n)}function zd(e){const n=new Map;if(e)for(const i of e)n.set(i.escapedName,i);return n}function Vm(e){return(e.flags&33554432)!==0}function zVe(){var e="";const n=i=>e+=i;return{getText:()=>e,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(i,c)=>n(i),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&cP(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ku,decreaseIndent:ku,clear:()=>e=""}}function Td(e,n){return e.configFilePath!==n.configFilePath||uk(e,n)}function uk(e,n){return g9(e,n,s$)}function zMe(e,n){return g9(e,n,jpe)}function g9(e,n,i){return e!==n&&i.some(c=>!xY(jH(e,c),jH(n,c)))}function qTe(e,n){for(;;){const i=n(e);if(i==="quit")return;if(i!==void 0)return i;if(Nu(e))return;e=e.parent}}function Jb(e,n){const i=e.entries();for(const[c,u]of i){const d=n(u,c);if(d)return d}}function gA(e,n){const i=e.keys();for(const c of i){const u=n(c);if(u)return u}}function oie(e,n){e.forEach((i,c)=>{n.set(c,i)})}function wT(e){const n=tJ.getText();try{return e(tJ),tJ.getText()}finally{tJ.clear(),tJ.writeKeyword(n)}}function WL(e){return e.end-e.pos}function tY(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular}function qU(e,n){return e===n||e.resolvedModule===n.resolvedModule||!!e.resolvedModule&&!!n.resolvedModule&&e.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===n.resolvedModule.extension&&e.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===n.resolvedModule.originalPath&&XU(e.resolvedModule.packageId,n.resolvedModule.packageId)&&e.node10Result===n.node10Result}function KU(e,n,i,c,u){var d;const h=(d=n.getResolvedModule(e,i,c))==null?void 0:d.node10Result,S=h?Es(void 0,N.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,h,h.includes(IP+"@types/")?`@types/${nj(u)}`:u):n.typesPackageExists(u)?Es(void 0,N.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,u,nj(u)):n.packageBundlesTypes(u)?Es(void 0,N.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,u,i):Es(void 0,N.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,nj(u));return S&&(S.repopulateInfo=()=>({moduleReference:i,mode:c,packageName:u===i?void 0:u})),S}function XU(e,n){return e===n||!!e&&!!n&&e.name===n.name&&e.subModuleName===n.subModuleName&&e.version===n.version}function aie({name:e,subModuleName:n}){return n?`${e}/${n}`:e}function jM(e){return`${aie(e)}@${e.version}`}function GMe(e,n){return e===n||e.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function sie(e,n,i,c,u,d){re.assert(e.length===i.length);for(let h=0;h=0),eR(n)[e]}function QU(e){const n=ts(e),i=xm(n,e.pos);return`${n.fileName}(${i.line+1},${i.character+1})`}function cie(e,n){re.assert(e>=0);const i=eR(n),c=e,u=n.text;if(c+1===i.length)return u.length-1;{const d=i[c];let h=i[c+1]-1;for(re.assert(Sb(u.charCodeAt(h)));d<=h&&Sb(u.charCodeAt(h));)h--;return h}}function ns(e,n,i){return!(i&&i(n))&&!e.identifiers.has(n)}function ny(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function y2(e){return!ny(e)}function XTe(e,n){return Np(e)?n===e.expression:Ep(e)?n===e.modifiers:em(e)?n===e.initializer:nu(e)?n===e.questionToken&&xb(e):tl(e)?n===e.modifiers||n===e.questionToken||n===e.exclamationToken||mP(e.modifiers,n,Am):XE(e)?n===e.equalsToken||n===e.modifiers||n===e.questionToken||n===e.exclamationToken||mP(e.modifiers,n,Am):tm(e)?n===e.exclamationToken:Lh(e)?n===e.typeParameters||n===e.type||mP(e.typeParameters,n,Np):lE(e)?n===e.typeParameters||mP(e.typeParameters,n,Np):Xb(e)?n===e.typeParameters||n===e.type||mP(e.typeParameters,n,Np):lC(e)?n===e.modifiers||mP(e.modifiers,n,Am):!1}function mP(e,n,i){return!e||ls(n)||!i(n)?!1:ni(e,n)}function GVe(e,n,i){if(n===void 0||n.length===0)return e;let c=0;for(;c[`${xm(e,h.range.end).line}`,h])),c=new Map;return{getUnusedExpectations:u,markUsed:d};function u(){return oc(i.entries()).filter(([h,S])=>S.type===0&&!c.get(h)).map(([h,S])=>S)}function d(h){return i.has(`${h}`)?(c.set(`${h}`,!0),!0):!1}}function v2(e,n,i){return ny(e)?e.pos:$z(e)||e.kind===12?Ff((n||ts(e)).text,e.pos,!1,!0):i&&NT(e)?v2(e.jsDoc[0],n):e.kind===358&&e._children.length>0?v2(e._children[0],n,i):Ff((n||ts(e)).text,e.pos,!1,!1,S7(e))}function fie(e,n){const i=!ny(e)&&DA(e)?ra(e.modifiers,Jh):void 0;return i?Ff((n||ts(e)).text,i.end):v2(e,n)}function m7(e,n,i=!1){return h9(e.text,n,i)}function Kz(e){return!!Ua(e,SW)}function nY(e){return!!(ry(e)&&e.exportClause&&G0(e.exportClause)&&e.exportClause.name.escapedText==="default")}function h9(e,n,i=!1){if(ny(n))return"";let c=e.substring(i?n.pos:Ff(e,n.pos),n.end);return Kz(n)&&(c=c.split(/\r\n|\n|\r/).map(u=>u.replace(/^\s*\*/,"").trimStart()).join(` -`)),c}function Lv(e,n=!1){return m7(ts(e),e,n)}function Xz(e){return e.pos}function y9(e,n){return ZS(e,n,Xz,pf)}function wd(e){const n=e.emitNode;return n&&n.flags||0}function HC(e){const n=e.emitNode;return n&&n.internalFlags||0}function _ie(e,n,i){if(n&&die(e,i))return m7(n,e);switch(e.kind){case 11:{const c=i&2?M7:i&1||wd(e)&16777216?Q8:SH;return e.singleQuote?"'"+c(e.text,39)+"'":'"'+c(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const c=i&1||wd(e)&16777216?Q8:SH,u=e.rawText??QMe(c(e.text,96));switch(e.kind){case 15:return"`"+u+"`";case 16:return"`"+u+"${";case 17:return"}"+u+"${";case 18:return"}"+u+"`"}break}case 9:case 10:return e.text;case 14:return i&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return re.fail(`Literal kind '${e.kind}' not accounted for.`)}function die(e,n){if(Hd(e)||!e.parent||n&4&&e.isUnterminated)return!1;if(S1(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(n&8)}return!OY(e)}function Yv(e){return As(e)?'"'+SH(e)+'"':""+e}function UMe(e){return Jg(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function v9(e){return(rR(e)&7)!==0||Tp(e)}function Tp(e){const n=vA(e);return n.kind===260&&n.parent.kind===299}function dh(e){return py(e)&&(e.name.kind===11||JC(e))}function rY(e){return py(e)&&e.name.kind===11}function dde(e){return py(e)&&Sd(e.name)}function HMe(e){return py(e)||xn(e)}function ZU(e){return jVe(e.valueDeclaration)}function jVe(e){return!!e&&e.kind===267&&!e.body}function pde(e){return e.kind===312||e.kind===267||bd(e)}function JC(e){return!!(e.flags&2048)}function Ov(e){return dh(e)&&iY(e)}function iY(e){switch(e.parent.kind){case 312:return Bv(e.parent);case 268:return dh(e.parent.parent)&&Nu(e.parent.parent.parent)&&!Bv(e.parent.parent.parent)}return!1}function pie(e){var n;return(n=e.declarations)==null?void 0:n.find(i=>!Ov(i)&&!(py(i)&&JC(i)))}function VVe(e){return e===1||e===100||e===199}function VM(e,n){return Bv(e)||VVe(Zp(n))&&!!e.commonJsModuleIndicator}function QTe(e,n){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:hv(n,"alwaysStrict")||Goe(e.statements)?!0:Bv(e)||F0(n)?Zp(n)>=5?!0:!n.noImplicitUseStrict:!1}function mde(e){return!!(e.flags&33554432)||ul(e,128)}function $C(e,n){switch(e.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!bd(n)}return!1}function BL(e){switch(re.type(e),e.kind){case 345:case 353:case 330:return!0;default:return mie(e)}}function mie(e){switch(re.type(e),e.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 W8(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function JMe(e){return W8(e)||E7(e)}function B8(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function gde(e){return eH(e)||py(e)||E1(e)||Py(e)}function eH(e){return W8(e)||ry(e)}function gie(e){return Ua(e.parent,n=>!!(R2e(n)&1))}function QD(e){return Ua(e.parent,n=>$C(n,n.parent))}function hde(e,n){let i=QD(e);for(;i;)n(i),i=QD(i)}function hm(e){return!e||WL(e)===0?"(Missing)":Lv(e)}function ZTe(e){return e.declaration?hm(e.declaration.parameters[0].name):void 0}function Yz(e){return e.kind===167&&!Ox(e.expression)}function tH(e){var n;switch(e.kind){case 80:case 81:return(n=e.emitNode)!=null&&n.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return ey(e.text);case 167:return Ox(e.expression)?ey(e.expression.text):void 0;case 295:return bR(e);default:return re.assertNever(e)}}function z8(e){return re.checkDefined(tH(e))}function iE(e){switch(e.kind){case 110:return"this";case 81:case 80:return WL(e)===0?Kr(e):Lv(e);case 166:return iE(e.left)+"."+iE(e.right);case 211:return xn(e.name)||Lu(e.name)?iE(e.expression)+"."+iE(e.name):re.assertNever(e.name);case 318:return iE(e.left)+iE(e.right);case 295:return iE(e.namespace)+":"+iE(e.name);default:return re.assertNever(e)}}function Bs(e,n,...i){const c=ts(e);return Ud(c,e,n,...i)}function Qz(e,n,i,...c){const u=Ff(e.text,n.pos);return Pp(e,u,n.end-u,i,...c)}function Ud(e,n,i,...c){const u=zL(e,n);return Pp(e,u.start,u.length,i,...c)}function wN(e,n,i,c){const u=zL(e,n);return g7(e,u.start,u.length,i,c)}function b9(e,n,i,c){const u=Ff(e.text,n.pos);return g7(e,u,n.end-u,i,c)}function nH(e,n,i){re.assertGreaterThanOrEqual(n,0),re.assertGreaterThanOrEqual(i,0),re.assertLessThanOrEqual(n,e.length),re.assertLessThanOrEqual(n+i,e.length)}function g7(e,n,i,c,u){return nH(e.text,n,i),{file:e,start:n,length:i,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:u}}function oE(e,n,i){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function kc(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Zz(e,n,i){return{file:e,start:n.pos,length:n.end-n.pos,code:i.code,category:i.category,messageText:i.message}}function M0(e,n){const i=CS(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);i.scan();const c=i.getTokenStart();return Yy(c,i.getTokenEnd())}function RN(e,n){const i=CS(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);return i.scan(),i.getToken()}function yde(e,n){const i=Ff(e.text,n.pos);if(n.body&&n.body.kind===241){const{line:c}=xm(e,n.body.pos),{line:u}=xm(e,n.body.end);if(c0?n.statements[0].pos:n.end;return Yy(d,h)}case 253:case 229:{const d=Ff(e.text,n.pos);return M0(e,d)}case 238:{const d=Ff(e.text,n.expression.end);return M0(e,d)}case 357:{const d=Ff(e.text,n.tagName.pos);return M0(e,d)}}if(i===void 0)return M0(e,n.pos);re.assert(!uC(i));const c=ny(i),u=c||SR(n)?i.pos:Ff(e.text,i.pos);return c?(re.assert(u===i.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),re.assert(u===i.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(re.assert(u>=i.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),re.assert(u<=i.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Yy(u,i.end)}function aE(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Rx(e){return e.scriptKind===6}function G8(e){return!!(Eb(e)&4096)}function oY(e){return!!(Eb(e)&8&&!DT(e,e.parent))}function nC(e){return(rR(e)&7)===6}function aY(e){return(rR(e)&7)===4}function rH(e){return(rR(e)&7)===2}function UM(e){return(rR(e)&7)===1}function h1(e){return e.kind===213&&e.expression.kind===108}function Py(e){return e.kind===213&&e.expression.kind===102}function gP(e){return x3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function MN(e){return E1(e)&&S3(e.argument)&&Sd(e.argument.literal)}function $2(e){return e.kind===244&&e.expression.kind===11}function T9(e){return!!(wd(e)&2097152)}function h7(e){return T9(e)&&mg(e)}function eSe(e){return xn(e.name)&&!e.initializer}function y7(e){return T9(e)&&Xg(e)&&jr(e.declarationList.declarations,eSe)}function WE(e,n){return e.kind!==12?JD(n.text,e.pos):void 0}function S9(e,n){const i=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Hi(SN(n,e.pos),JD(n,e.pos)):JD(n,e.pos);return gi(i,c=>n.charCodeAt(c.pos+1)===42&&n.charCodeAt(c.pos+2)===42&&n.charCodeAt(c.pos+3)!==47)}function BE(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return Qb(e.parent)&&!Gie(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),re.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:n}=e;if(n.kind===186)return!1;if(n.kind===205)return!n.isTypeOf;if(182<=n.kind&&n.kind<=205)return!0;switch(n.kind){case 233:return Qb(n.parent)&&!Gie(n);case 168:return e===n.constraint;case 352:return e===n.constraint;case 172:case 171:case 169:case 260:return e===n.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===n.type;case 179:case 180:case 181:return e===n.type;case 216:return e===n.type;case 213:case 214:case 215:return ni(n.typeArguments,e)}}}return!1}function qC(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1}function dR(e,n){return i(e);function i(c){switch(c.kind){case 253:return n(c);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 s_(c,i)}}}function hie(e,n){return i(e);function i(c){switch(c.kind){case 229:n(c);const u=c.expression;u&&i(u);return;case 266:case 264:case 267:case 265:return;default:if(F_(c)){if(c.name&&c.name.kind===167){i(c.name.expression);return}}else BE(c)||s_(c,i)}}}function tSe(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Vb(e.typeArguments):void 0}function yie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function E9(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function vde(e){return E9(e)||GM(e)}function rC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function $Me(e){return Cs(e)?el(e.parent)&&Ds(e.parent.parent)&&jy(e.parent.parent)===2||HM(e.parent):!1}function HM(e){return Cs(e)?Ds(e)&&jy(e)===1:!1}function nSe(e){return(Kc(e)?rH(e)&&xn(e.name)&&rC(e):nu(e)?Ny(e)&&ev(e):em(e)&&Ny(e))||HM(e)}function bde(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Tde(e,n){for(;;){if(n&&n(e),e.statement.kind!==256)return e.statement;e=e.statement}}function hP(e){return e&&e.kind===241&&F_(e.parent)}function iC(e){return e&&e.kind===174&&e.parent.kind===210}function x9(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function rSe(e){return e&&e.kind===1}function Sde(e){return e&&e.kind===0}function eG(e,n,i,c){return Ot(e==null?void 0:e.properties,u=>{if(!tl(u))return;const d=tH(u.name);return n===d||c&&c===d?i(u):void 0})}function iSe(e,n,i){return eG(e,n,c=>Ed(c.initializer)?lr(c.initializer.elements,u=>Sd(u)&&u.text===i):void 0)}function tG(e){if(e&&e.statements.length){const n=e.statements[0].expression;return to(n,el)}}function JM(e,n,i){return q2(e,n,c=>Ed(c.initializer)?lr(c.initializer.elements,u=>Sd(u)&&u.text===i):void 0)}function q2(e,n,i){return eG(tG(e),n,i)}function zE(e){return Ua(e.parent,F_)}function oSe(e){return Ua(e.parent,Vd)}function $b(e){return Ua(e.parent,Fl)}function nG(e){return Ua(e.parent,n=>Fl(n)||F_(n)?"quit":Ep(n))}function vie(e){return Ua(e.parent,bd)}function A9(e){const n=Ua(e.parent,i=>Fl(i)?"quit":Jh(i));return n&&Fl(n.parent)?$b(n.parent):$b(n??e)}function RT(e,n,i){for(re.assert(e.kind!==312);;){if(e=e.parent,!e)return re.fail();switch(e.kind){case 167:if(i&&Fl(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&J_(e.parent.parent)?e=e.parent.parent:J_(e.parent)&&(e=e.parent);break;case 219:if(!n)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 e}}}function sY(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function GE(e){xn(e)&&(Ih(e.parent)||mg(e.parent))&&e.parent.name===e&&(e=e.parent);const n=RT(e,!0,!1);return Nu(n)}function aSe(e){const n=RT(e,!1,!1);if(n)switch(n.kind){case 176:case 262:case 218:return n}}function h0(e,n){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!n)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&J_(e.parent.parent)?e=e.parent.parent:J_(e.parent)&&(e=e.parent);break}}}function v7(e){if(e.kind===218||e.kind===219){let n=e,i=e.parent;for(;i.kind===217;)n=i,i=i.parent;if(i.kind===213&&i.expression===n)return i}}function Ede(e){return e.kind===108||MT(e)}function MT(e){const n=e.kind;return(n===211||n===212)&&e.expression.kind===108}function Q1(e){const n=e.kind;return(n===211||n===212)&&e.expression.kind===110}function bie(e){var n;return!!e&&Kc(e)&&((n=e.initializer)==null?void 0:n.kind)===110}function Tie(e){return!!e&&(XE(e)||tl(e))&&Ds(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function cY(e){switch(e.kind){case 183:return e.typeName;case 233:return Tg(e.expression)?e.expression:void 0;case 80:case 166:return e}}function rG(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function GL(e,n,i,c){if(e&&mp(n)&&Lu(n.name))return!1;switch(n.kind){case 263:return!0;case 231:return!e;case 172:return i!==void 0&&(e?Ih(i):Fl(i)&&!Ab(n)&&!il(n));case 177:case 178:case 174:return n.body!==void 0&&i!==void 0&&(e?Ih(i):Fl(i));case 169:return e?i!==void 0&&i.body!==void 0&&(i.kind===176||i.kind===174||i.kind===178)&&BN(i)!==n&&c!==void 0&&c.kind===263:!1}return!1}function lY(e,n,i,c){return X2(n)&&GL(e,n,i,c)}function Z1(e,n,i,c){return lY(e,n,i,c)||b7(e,n,i)}function b7(e,n,i){switch(n.kind){case 263:return gt(n.members,c=>Z1(e,c,n,i));case 231:return!e&>(n.members,c=>Z1(e,c,n,i));case 174:case 178:case 176:return gt(n.parameters,c=>lY(e,c,n,i));default:return!1}}function yP(e,n){if(lY(e,n))return!0;const i=sC(n);return!!i&&b7(e,i,n)}function xde(e,n,i){let c;if(GM(n)){const{firstAccessor:u,secondAccessor:d,setAccessor:h}=oI(i.members,n),S=X2(u)?u:d&&X2(d)?d:void 0;if(!S||n!==S)return!1;c=h==null?void 0:h.parameters}else tm(n)&&(c=n.parameters);if(lY(e,n,i))return!0;if(c){for(const u of c)if(!iI(u)&&lY(e,u,n,i))return!0}return!1}function iH(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return iH(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function T7(e){const{parent:n}=e;return n.kind===286||n.kind===285||n.kind===287?n.tagName===e:!1}function ZD(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Qb(e.parent)&&!xW(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||F8(e.parent)||FJ(e.parent)||ZL(e.parent)||T7(e);case 318:for(;ZL(e.parent);)e=e.parent;return e.parent.kind===186||F8(e.parent)||FJ(e.parent)||ZL(e.parent)||T7(e);case 81:return Ds(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||F8(e.parent)||FJ(e.parent)||ZL(e.parent)||T7(e))return!0;case 9:case 10:case 11:case 15:case 110:return C9(e);default:return!1}}function C9(e){const{parent:n}=e;switch(n.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return n.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return n.expression===e;case 248:const i=n;return i.initializer===e&&i.initializer.kind!==261||i.condition===e||i.incrementor===e;case 249:case 250:const c=n;return c.initializer===e&&c.initializer.kind!==261||c.expression===e;case 216:case 234:return e===n.expression;case 239:return e===n.expression;case 167:return e===n.expression;case 170:case 294:case 293:case 305:return!0;case 233:return n.expression===e&&!BE(n);case 304:return n.objectAssignmentInitializer===e;case 238:return e===n.expression;default:return ZD(n)}}function iG(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function oH(e){return G0(e)&&!!e.parent.moduleSpecifier}function Mx(e){return e.kind===271&&e.moduleReference.kind===283}function oG(e){return re.assert(Mx(e)),e.moduleReference.expression}function Sie(e){return E7(e)&&i3(e.initializer).arguments[0]}function $M(e){return e.kind===271&&e.moduleReference.kind!==283}function Gy(e){return Cs(e)}function Ade(e){return!Cs(e)}function Cs(e){return!!e&&!!(e.flags&524288)}function Eie(e){return!!e&&!!(e.flags&134217728)}function qM(e){return!Rx(e)}function S7(e){return!!e&&!!(e.flags&16777216)}function uY(e){return uE(e)&&xn(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function y1(e,n){if(e.kind!==213)return!1;const{expression:i,arguments:c}=e;if(i.kind!==80||i.escapedText!=="require"||c.length!==1)return!1;const u=c[0];return!n||Cm(u)}function v1(e){return Cde(e,!1)}function E7(e){return Cde(e,!0)}function Rs(e){return sa(e)&&E7(e.parent.parent)}function Cde(e,n){return Kc(e)&&!!e.initializer&&y1(n?i3(e.initializer):e.initializer,!0)}function xie(e){return Xg(e)&&e.declarationList.declarations.length>0&&jr(e.declarationList.declarations,n=>v1(n))}function D9(e){return e===39||e===34}function aH(e,n){return m7(n,e).charCodeAt(0)===34}function eT(e){return Ds(e)||Kf(e)||xn(e)||xd(e)}function sH(e){return Cs(e)&&e.initializer&&Ds(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Tg(e.name)&&j8(e.name,e.initializer.left)?e.initializer.right:e.initializer}function pR(e){const n=sH(e);return n&&KM(n,bP(e.name))}function UVe(e,n){return Ot(e.properties,i=>tl(i)&&xn(i.name)&&i.name.escapedText==="value"&&i.initializer&&KM(i.initializer,n))}function I9(e){if(e&&e.parent&&Ds(e.parent)&&e.parent.operatorToken.kind===64){const n=bP(e.parent.left);return KM(e.parent.right,n)||Dde(e.parent.left,e.parent.right,n)}if(e&&xd(e)&&A7(e)){const n=UVe(e.arguments[2],e.arguments[1].text==="prototype");if(n)return n}}function KM(e,n){if(xd(e)){const i=rg(e.expression);return i.kind===218||i.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||el(e)&&(e.properties.length===0||n))return e}function Dde(e,n,i){const c=Ds(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)&&KM(n.right,i);if(c&&j8(e,n.left))return c}function Aie(e){const n=Kc(e.parent)?e.parent.name:Ds(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return n&&KM(e.right,bP(n))&&Tg(n)&&j8(n,e.left)}function aG(e){if(Ds(e.parent)){const n=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Ds(e.parent.parent)?e.parent.parent:e.parent;if(n.operatorToken.kind===64&&xn(n.left))return n.left}else if(Kc(e.parent))return e.parent.name}function j8(e,n){return Qv(e)&&Qv(n)?K2(e)===K2(n):xN(e)&&fY(n)&&(n.expression.kind===110||xn(n.expression)&&(n.expression.escapedText==="window"||n.expression.escapedText==="self"||n.expression.escapedText==="global"))?j8(e,KC(n)):fY(e)&&fY(n)?eI(e)===eI(n)&&j8(e.expression,n.expression):!1}function k9(e){for(;Zv(e,!0);)e=e.right;return e}function P9(e){return xn(e)&&e.escapedText==="exports"}function x7(e){return xn(e)&&e.escapedText==="module"}function jE(e){return(Ac(e)||V8(e))&&x7(e.expression)&&eI(e)==="exports"}function jy(e){const n=Qy(e);return n===5||Cs(e)?n:0}function A7(e){return Nt(e.arguments)===3&&Ac(e.expression)&&xn(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&Ox(e.arguments[1])&&U8(e.arguments[0],!0)}function fY(e){return Ac(e)||V8(e)}function V8(e){return Hm(e)&&Ox(e.argumentExpression)}function mR(e,n){return Ac(e)&&(!n&&e.expression.kind===110||xn(e.name)&&U8(e.expression,!0))||jL(e,n)}function jL(e,n){return V8(e)&&(!n&&e.expression.kind===110||Tg(e.expression)||mR(e.expression,!0))}function U8(e,n){return Tg(e)||mR(e,n)}function KC(e){return Ac(e)?e.name:e.argumentExpression}function Qy(e){if(xd(e)){if(!A7(e))return 0;const n=e.arguments[0];return P9(n)||jE(n)?8:mR(n)&&eI(n)==="prototype"?9:7}return e.operatorToken.kind!==64||!Kf(e.left)||cH(k9(e))?0:U8(e.left.expression,!0)&&eI(e.left)==="prototype"&&el(_Y(e))?6:XM(e.left)}function cH(e){return Z7(e)&&S1(e.expression)&&e.expression.text==="0"}function lH(e){if(Ac(e))return e.name;const n=rg(e.argumentExpression);return S1(n)||Cm(n)?n:e}function eI(e){const n=lH(e);if(n){if(xn(n))return n.escapedText;if(Cm(n)||S1(n))return ey(n.text)}}function XM(e){if(e.expression.kind===110)return 4;if(jE(e))return 2;if(U8(e.expression,!0)){if(bP(e.expression))return 3;let n=e;for(;!xn(n.expression);)n=n.expression;const i=n.expression;if((i.escapedText==="exports"||i.escapedText==="module"&&eI(n)==="exports")&&mR(e))return 1;if(U8(e,!0)||Hm(e)&&L0(e))return 5}return 0}function _Y(e){for(;Ds(e.right);)e=e.right;return e.right}function VL(e){return Ds(e)&&jy(e)===3}function dY(e){return Cs(e)&&e.parent&&e.parent.kind===244&&(!Hm(e)||V8(e))&&!!FM(e.parent)}function Cie(e,n){const{valueDeclaration:i}=e;(!i||!(n.flags&33554432&&!Cs(n)&&!(i.flags&33554432))&&eT(i)&&!eT(n)||i.kind!==n.kind&&HMe(i))&&(e.valueDeclaration=n)}function qMe(e){if(!e||!e.valueDeclaration)return!1;const n=e.valueDeclaration;return n.kind===262||Kc(n)&&n.initializer&&F_(n.initializer)}function C7(e){var n,i;switch(e.kind){case 260:case 208:return(n=Ua(e.initializer,c=>y1(c,!0)))==null?void 0:n.arguments[0];case 272:case 278:return to(e.moduleSpecifier,Cm);case 271:return to((i=to(e.moduleReference,KE))==null?void 0:i.expression,Cm);case 273:case 280:return to(e.parent.moduleSpecifier,Cm);case 274:case 281:return to(e.parent.parent.moduleSpecifier,Cm);case 276:return to(e.parent.parent.parent.moduleSpecifier,Cm);case 205:return MN(e)?e.argument.literal:void 0;default:re.assertNever(e)}}function XC(e){return N9(e)||re.failBadSyntaxKind(e.parent)}function N9(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Py(e.parent)||y1(e.parent,!1)?e.parent:void 0;case 201:return re.assert(Sd(e)),to(e.parent.parent,E1);default:return}}function w9(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return MN(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return re.assertNever(e)}}function H8(e){switch(e.kind){case 272:return e.importClause&&to(e.importClause.namedBindings,mh);case 271:return e;case 278:return e.exportClause&&to(e.exportClause,G0);default:return re.assertNever(e)}}function R9(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function sG(e,n){if(e.name){const i=n(e);if(i)return i}if(e.namedBindings){const i=mh(e.namedBindings)?n(e.namedBindings):Ot(e.namedBindings.elements,n);if(i)return i}}function M9(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function UL(e){const n=Ak(e)?pp(e.parameters):void 0,i=to(n&&n.name,xn);return!!i&&i.escapedText==="new"}function b2(e){return e.kind===353||e.kind===345||e.kind===347}function L9(e){return b2(e)||z0(e)}function pY(e){return kb(e)&&Ds(e.expression)&&e.expression.operatorToken.kind===64?k9(e.expression):void 0}function uH(e){return kb(e)&&Ds(e.expression)&&jy(e.expression)!==0&&Ds(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function D7(e){switch(e.kind){case 243:const n=I7(e);return n&&n.initializer;case 172:return e.initializer;case 303:return e.initializer}}function I7(e){return Xg(e)?pp(e.declarationList.declarations):void 0}function cG(e){return py(e)&&e.body&&e.body.kind===267?e.body:void 0}function J8(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function T2(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 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 fH(e,n){let i;E9(e)&&J2(e)&&NT(e.initializer)&&(i=Oi(i,HVe(e,yl(e.initializer.jsDoc))));let c=e;for(;c&&c.parent;){if(NT(c)&&(i=Oi(i,HVe(e,yl(c.jsDoc)))),c.kind===169){i=Oi(i,(n?Y_e:o_)(c));break}if(c.kind===168){i=Oi(i,(n?MTe:N8)(c));break}c=Die(c)}return i||Yn}function HVe(e,n){if(uC(n)){const i=gi(n.tags,c=>KMe(e,c));return n.tags===i?[n]:i}return KMe(e,n)?[n]:void 0}function KMe(e,n){return!(WG(n)||e4(n))||!n.parent||!uC(n.parent)||!fE(n.parent.parent)||n.parent.parent===e}function Die(e){const n=e.parent;if(n.kind===303||n.kind===277||n.kind===172||n.kind===244&&e.kind===211||n.kind===253||cG(n)||Zv(e))return n;if(n.parent&&(I7(n.parent)===e||Zv(n)))return n.parent;if(n.parent&&n.parent.parent&&(I7(n.parent.parent)||D7(n.parent.parent)===e||uH(n.parent.parent)))return n.parent.parent}function $8(e){if(e.symbol)return e.symbol;if(!xn(e.name))return;const n=e.name.escapedText,i=LN(e);if(!i)return;const c=lr(i.parameters,u=>u.name.kind===80&&u.name.escapedText===n);return c&&c.symbol}function Iie(e){if(uC(e.parent)&&e.parent.tags){const n=lr(e.parent.tags,b2);if(n)return n}return LN(e)}function LN(e){const n=YM(e);if(n)return em(n)&&n.type&&F_(n.type)?n.type:F_(n)?n:void 0}function YM(e){const n=k7(e);if(n)return uH(n)||pY(n)||D7(n)||I7(n)||cG(n)||n}function k7(e){const n=_H(e);if(!n)return;const i=n.parent;if(i&&i.jsDoc&&n===Yf(i.jsDoc))return i}function _H(e){return Ua(e.parent,uC)}function sSe(e){const n=e.name.escapedText,{typeParameters:i}=e.parent.parent.parent;return i&&lr(i,c=>c.name.escapedText===n)}function cSe(e){return!!e.typeArguments}function mY(e){let n=e.parent;for(;;){switch(n.kind){case 226:const i=n,c=i.operatorToken.kind;return pk(c)&&i.left===e?i:void 0;case 224:case 225:const u=n,d=u.operator;return d===46||d===47?u:void 0;case 249:case 250:const h=n;return h.initializer===e?h:void 0;case 217:case 209:case 230:case 235:e=n;break;case 305:e=n.parent;break;case 304:if(n.name!==e)return;e=n.parent;break;case 303:if(n.name===e)return;e=n.parent;break;default:return}n=e.parent}}function q8(e){const n=mY(e);if(!n)return 0;switch(n.kind){case 226:const i=n.operatorToken.kind;return i===64||CH(i)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function VE(e){return!!mY(e)}function dH(e){const n=rg(e.right);return n.kind===226&&jEe(n.operatorToken.kind)}function P7(e){const n=mY(e);return!!n&&Zv(n,!0)&&dH(n)}function pH(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function lSe(e){return Jm(e)||$m(e)||Mv(e)||mg(e)||Lh(e)}function JVe(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function QM(e){return JVe(e,196)}function IS(e){return JVe(e,217)}function uSe(e){let n;for(;e&&e.kind===196;)n=e,e=e.parent;return[n,e]}function Ide(e){for(;XN(e);)e=e.type;return e}function rg(e,n){return iv(e,n?17:1)}function mH(e){return e.kind!==211&&e.kind!==212?!1:(e=IS(e.parent),e&&e.kind===220)}function Lx(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1}function ON(e){return!Nu(e)&&!$_(e)&&PT(e.parent)&&e.parent.name===e}function lG(e){const n=e.parent;switch(e.kind){case 11:case 15:case 9:if(Qf(n))return n.parent;case 80:if(PT(n))return n.name===e?n:void 0;if(Pu(n)){const i=n.parent;return A2(i)&&i.name===n?i:void 0}else{const i=n.parent;return Ds(i)&&jy(i)!==0&&(i.left.symbol||i.symbol)&&i_(i)===e?i:void 0}case 81:return PT(n)&&n.name===e?n:void 0;default:return}}function _g(e){return Ox(e)&&e.parent.kind===167&&PT(e.parent.parent)}function kde(e){const n=e.parent;switch(n.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return n.name===e;case 166:return n.right===e;case 208:case 276:return n.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function N7(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&K8(e)?!0:Cs(e)&&(Ds(e)&&jy(e)===2&&K8(e)||Ac(e)&&Ds(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&O9(e.parent.right))}function vP(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return vP(e)}}function O9(e){return Tg(e)||v0(e)}function K8(e){const n=Pde(e);return O9(n)}function Pde(e){return my(e)?e.expression:e.right}function XMe(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function YC(e){const n=gR(e);if(n&&Cs(e)){const i=LTe(e);if(i)return i.class}return n}function gR(e){const n=hA(e.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function ZM(e){if(Cs(e))return OTe(e).map(n=>n.class);{const n=hA(e.heritageClauses,119);return n==null?void 0:n.types}}function uG(e){return xp(e)?gH(e)||Yn:Fl(e)&&Hi(X5(YC(e)),ZM(e))||Yn}function gH(e){const n=hA(e.heritageClauses,96);return n?n.types:void 0}function hA(e,n){if(e){for(const i of e)if(i.token===n)return i}}function oC(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}}function qb(e){return 83<=e&&e<=165}function fG(e){return 19<=e&&e<=79}function F9(e){return qb(e)||fG(e)}function _G(e){return 128<=e&&e<=165}function e6(e){return qb(e)&&!_G(e)}function sE(e){return 119<=e&&e<=127}function w7(e){const n=D8(e);return n!==void 0&&e6(n)}function Nde(e){const n=D8(e);return n!==void 0&&qb(n)}function hH(e){const n=uP(e);return!!n&&!_G(n)}function W9(e){return 2<=e&&e<=7}function ob(e){if(!e)return 4;let n=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(n|=1);case 219:ul(e,1024)&&(n|=2);break}return e.body||(n|=4),n}function t6(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ul(e,1024)}return!1}function Ox(e){return Cm(e)||S1(e)}function yH(e){return vk(e)&&(e.operator===40||e.operator===41)&&S1(e.operand)}function tI(e){const n=i_(e);return!!n&&L0(n)}function L0(e){if(!(e.kind===167||e.kind===212))return!1;const n=Hm(e)?rg(e.argumentExpression):e.expression;return!Ox(n)&&!yH(n)}function FN(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return ey(e.text);case 167:const n=e.expression;return Ox(n)?ey(n.text):yH(n)?n.operator===41?Cf(n.operator)+n.operand.text:n.operand.text:void 0;case 295:return bR(e);default:return re.assertNever(e)}}function Qv(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function K2(e){return xN(e)?Kr(e):Fm(e)?g3(e):e.text}function nI(e){return xN(e)?e.escapedText:Fm(e)?bR(e):ey(e.text)}function wde(e){return`__@${$d(e)}@${e.escapedName}`}function WN(e,n){return`__#${$d(e)}@${n}`}function yA(e){return qf(e.escapedName,"__@")}function aC(e){return qf(e.escapedName,"__#")}function gY(e){return e.kind===80&&e.escapedText==="Symbol"}function YMe(e){return xn(e)?Kr(e)==="__proto__":Sd(e)&&e.text==="__proto__"}function R7(e,n){switch(e=iv(e),e.kind){case 231:if(Y2e(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof n=="function"?n(e):!0}function vH(e){switch(e.kind){case 303:return!YMe(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return xn(e.name)&&!!e.initializer;case 169:return xn(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return xn(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return xn(e.left)}break;case 277:return!0}return!1}function UE(e,n){if(!vH(e))return!1;switch(e.kind){case 303:return R7(e.initializer,n);case 304:return R7(e.objectAssignmentInitializer,n);case 260:case 169:case 208:case 172:return R7(e.initializer,n);case 226:return R7(e.right,n);case 277:return R7(e.expression,n)}}function fSe(e){return e.escapedText==="push"||e.escapedText==="unshift"}function X8(e){return vA(e).kind===169}function vA(e){for(;e.kind===208;)e=e.parent.parent;return e}function kie(e){const n=e.kind;return n===176||n===218||n===262||n===219||n===174||n===177||n===178||n===267||n===312}function Hd(e){return ab(e.pos)||ab(e.end)}function _Se(e){return __(e,Nu)||e}function Y8(e){const n=rh(e),i=e.kind===214&&e.arguments!==void 0;return rI(e.kind,n,i)}function rI(e,n,i){switch(e){case 214:return i?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(n){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 dG(e){const n=rh(e),i=e.kind===214&&e.arguments!==void 0;return Pie(e.kind,n,i)}function rh(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function Pie(e,n,i){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(n){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 bH(n)}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 i?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 bH(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function B9(e){return gi(e,n=>{switch(n.kind){case 294:return!!n.expression;case 12:return!n.containsOnlyTriviaWhiteSpaces;default:return!0}})}function HL(){let e=[];const n=[],i=new Map;let c=!1;return{add:d,lookup:u,getGlobalDiagnostics:h,getDiagnostics:S};function u(E){let P;if(E.file?P=i.get(E.file.fileName):P=e,!P)return;const k=ZS(P,E,Of,FH);if(k>=0)return P[k]}function d(E){let P;E.file?(P=i.get(E.file.fileName),P||(P=[],i.set(E.file.fileName,P),d0(n,E.file.fileName,Fp))):(c&&(c=!1,e=e.slice()),P=e),d0(P,E,FH)}function h(){return c=!0,e}function S(E){if(E)return i.get(E)||[];const P=Lm(n,k=>i.get(k));return e.length&&P.unshift(...e),P}}function QMe(e){return e.replace(d6e,"\\${")}function hY(e){return!!((e.templateFlags||0)&2048)}function TH(e){return e&&!!(K7(e)?hY(e):hY(e.head)||gt(e.templateSpans,n=>hY(n.literal)))}function yY(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function vY(e,n,i){if(e.charCodeAt(0)===0){const c=i.charCodeAt(n+e.length);return c>=48&&c<=57?"\\x00":"\\0"}return g6e.get(e)||yY(e.charCodeAt(0))}function Q8(e,n){const i=n===96?m6e:n===39?aEe:p6e;return e.replace(i,vY)}function SH(e,n){return e=Q8(e,n),sEe.test(e)?e.replace(sEe,i=>yY(i.charCodeAt(0))):e}function $Ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Lat(e){return e.charCodeAt(0)===0?"�":h6e.get(e)||$Ve(e.charCodeAt(0))}function M7(e,n){const i=n===39?V7:nJ;return e.replace(i,Lat)}function S2(e){const n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&Oat(e.charCodeAt(0))?e.substring(1,n-1):e}function Oat(e){return e===39||e===34||e===96}function EH(e){const n=e.charCodeAt(0);return n>=97&&n<=122||e.includes("-")}function bY(e){const n=rJ[1];for(let i=rJ.length;i<=e;i++)rJ.push(rJ[i-1]+n);return rJ[e]}function HE(){return rJ[1].length}function Nie(e){var n,i,c,u,d,h=!1;function S(ae){const ve=RM(ae);ve.length>1?(u=u+ve.length-1,d=n.length-ae.length+yl(ve),c=d-n.length===0):c=!1}function E(ae){ae&&ae.length&&(c&&(ae=bY(i)+ae,c=!1),n+=ae,S(ae))}function P(ae){ae&&(h=!1),E(ae)}function k(ae){ae&&(h=!0),E(ae)}function F(){n="",i=0,c=!0,u=0,d=0,h=!1}function $(ae){ae!==void 0&&(n+=ae,S(ae),h=!1)}function J(ae){ae&&ae.length&&P(ae)}function X(ae){(!c||ae)&&(n+=e,u++,d=n.length,c=!0,h=!1)}function ie(){return c?n.length:n.length+e.length}return F(),{write:P,rawWrite:$,writeLiteral:J,writeLine:X,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},getIndent:()=>i,getTextPos:()=>n.length,getLine:()=>u,getColumn:()=>c?i*HE():n.length-d,getText:()=>n,isAtStartOfLine:()=>c,hasTrailingComment:()=>h,hasTrailingWhitespace:()=>!!n.length&&cP(n.charCodeAt(n.length-1)),clear:F,writeKeyword:P,writeOperator:P,writeParameter:P,writeProperty:P,writePunctuation:P,writeSpace:P,writeStringLiteral:P,writeSymbol:(ae,ve)=>P(ae),writeTrailingSemicolon:P,writeComment:k,getTextPosWithWriteLine:ie}}function z9(e){let n=!1;function i(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return{...e,writeTrailingSemicolon(){n=!0},writeLiteral(c){i(),e.writeLiteral(c)},writeStringLiteral(c){i(),e.writeStringLiteral(c)},writeSymbol(c,u){i(),e.writeSymbol(c,u)},writePunctuation(c){i(),e.writePunctuation(c)},writeKeyword(c){i(),e.writeKeyword(c)},writeOperator(c){i(),e.writeOperator(c)},writeParameter(c){i(),e.writeParameter(c)},writeSpace(c){i(),e.writeSpace(c)},writeProperty(c){i(),e.writeProperty(c)},writeComment(c){i(),e.writeComment(c)},writeLine(){i(),e.writeLine()},increaseIndent(){i(),e.increaseIndent()},decreaseIndent(){i(),e.decreaseIndent()}}}function pG(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function QC(e){return H1(pG(e))}function mG(e,n,i){return n.moduleName||xH(e,n.fileName,i&&i.fileName)}function wie(e,n){return e.getCanonicalFileName(vf(n,e.getCurrentDirectory()))}function Rde(e,n,i){const c=n.getExternalModuleFileFromDeclaration(i);if(!c||c.isDeclarationFile)return;const u=w9(i);if(!(u&&Cm(u)&&!V2(u.text)&&!wie(e,c.path).includes(wie(e,Su(e.getCommonSourceDirectory())))))return mG(e,c)}function xH(e,n,i){const c=E=>e.getCanonicalFileName(E),u=gm(i?ws(i):e.getCommonSourceDirectory(),e.getCurrentDirectory(),c),d=vf(n,e.getCurrentDirectory()),h=GC(u,d,u,c,!1),S=wg(h);return i?Fd(S):S}function hR(e,n,i){const c=n.getCompilerOptions();let u;return c.outDir?u=wg(Fie(e,n,c.outDir)):u=wg(e),u+i}function Rie(e,n){return Mie(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),i=>n.getCanonicalFileName(i))}function Mie(e,n,i,c,u){const d=n.declarationDir||n.outDir,h=d?Kg(e,d,i,c,u):e,S=TY(h);return wg(h)+S}function TY(e){return pv(e,[".mjs",".mts"])?".d.mts":pv(e,[".cjs",".cts"])?".d.cts":pv(e,[".json"])?".d.json.ts":".d.ts"}function Mde(e){return pv(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:pv(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:pv(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ng(e){return e.outFile||e.out}function Lie(e,n){var i;if(e.paths)return e.baseUrl??re.checkDefined(e.pathsBasePath||((i=n.getCurrentDirectory)==null?void 0:i.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Oie(e,n,i){const c=e.getCompilerOptions();if(Ng(c)){const u=Zp(c),d=c.emitDeclarationOnly||u===2||u===4;return gi(e.getSourceFiles(),h=>(d||!Bv(h))&&JL(h,e,i))}else{const u=n===void 0?e.getSourceFiles():[n];return gi(u,d=>JL(d,e,i))}}function JL(e,n,i){const c=n.getCompilerOptions();if(c.noEmitForJsFiles&&Gy(e)||e.isDeclarationFile||n.isSourceFileFromExternalLibrary(e))return!1;if(i)return!0;if(n.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Rx(e))return!0;if(n.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ng(c))return!0;if(!c.outDir)return!1;if(c.rootDir||c.composite&&c.configFilePath){const u=vf(zW(c,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),d=Kg(e.fileName,c.outDir,n.getCurrentDirectory(),u,n.getCanonicalFileName);if(Rv(e.fileName,d,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0)return!1}return!0}function Fie(e,n,i){return Kg(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c))}function Kg(e,n,i,c,u){let d=vf(e,i);return d=u(d).indexOf(u(c))===0?d.substring(c.length):d,vl(n,d)}function G9(e,n,i,c,u,d,h){e.writeFile(i,c,u,S=>{n.add(W_(N.Could_not_write_file_0_Colon_1,i,S))},d,h)}function dSe(e,n,i){if(e.length>Pg(e)&&!i(e)){const c=ws(e);dSe(c,n,i),n(e)}}function L7(e,n,i,c,u,d){try{c(e,n,i)}catch{dSe(ws(hf(e)),u,d),c(e,n,i)}}function j9(e,n){const i=eR(e);return TN(i,n)}function Z8(e,n){return TN(e,n)}function sC(e){return lr(e.members,n=>Lh(n)&&y2(n.body))}function AH(e){if(e&&e.parameters.length>0){const n=e.parameters.length===2&&iI(e.parameters[0]);return e.parameters[n?1:0]}}function Lde(e){const n=AH(e);return n&&n.type}function BN(e){if(e.parameters.length&&!b6(e)){const n=e.parameters[0];if(iI(n))return n}}function iI(e){return E2(e.name)}function E2(e){return!!e&&e.kind===80&&$L(e)}function yR(e){return!!Ua(e,n=>n.kind===186?!0:n.kind===80||n.kind===166?!1:"quit")}function V9(e){if(!E2(e))return!1;for(;Pu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function $L(e){return e.escapedText==="this"}function oI(e,n){let i,c,u,d;return tI(n)?(i=n,n.kind===177?u=n:n.kind===178?d=n:re.fail("Accessor has wrong kind")):Ot(e,h=>{if(GM(h)&&pd(h)===pd(n)){const S=FN(h.name),E=FN(n.name);S===E&&(i?c||(c=h):i=h,h.kind===177&&!u&&(u=h),h.kind===178&&!d&&(d=h))}}),{firstAccessor:i,secondAccessor:c,getAccessor:u,setAccessor:d}}function Zy(e){if(!Cs(e)&&mg(e))return;const n=e.type;return n||!Cs(e)?n:Uz(e)?e.typeExpression&&e.typeExpression.type:iR(e)}function O7(e){return e.type}function kS(e){return b6(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Cs(e)?GX(e):void 0)}function SY(e){return ea(WM(e),n=>gG(n)?n.typeParameters:void 0)}function gG(e){return CA(e)&&!(e.parent.kind===327&&(e.parent.tags.some(b2)||e.parent.tags.some(aF)))}function Kb(e){const n=AH(e);return n&&Zy(n)}function pSe(e,n,i,c){bA(e,n,i.pos,c)}function bA(e,n,i,c){c&&c.length&&i!==c[0].pos&&Z8(e,i)!==Z8(e,c[0].pos)&&n.writeLine()}function Wie(e,n,i,c){i!==c&&Z8(e,i)!==Z8(e,c)&&n.writeLine()}function ZMe(e,n,i,c,u,d,h,S){if(c&&c.length>0){u&&i.writeSpace(" ");let E=!1;for(const P of c)E&&(i.writeSpace(" "),E=!1),S(e,n,i,P.pos,P.end,h),P.hasTrailingNewLine?i.writeLine():E=!0;E&&d&&i.writeSpace(" ")}}function mSe(e,n,i,c,u,d,h){let S,E;if(h?u.pos===0&&(S=gi(JD(e,u.pos),P)):S=JD(e,u.pos),S){const k=[];let F;for(const $ of S){if(F){const J=Z8(n,F.end);if(Z8(n,$.pos)>=J+2)break}k.push($),F=$}if(k.length){const $=Z8(n,yl(k).end);Z8(n,Ff(e,u.pos))>=$+2&&(pSe(n,i,u,S),ZMe(e,n,i,k,!1,!0,d,c),E={nodePos:u.pos,detachedCommentEndPos:yl(k).end})}}return E;function P(k){return uie(e,k.pos)}}function hG(e,n,i,c,u,d){if(e.charCodeAt(c+1)===42){const h=Nd(n,c),S=n.length;let E;for(let P=c,k=h.line;P0){let X=J%HE();const ie=bY((J-X)/HE());for(i.rawWrite(ie);X;)i.rawWrite(" "),X--}else i.rawWrite("")}qVe(e,u,i,d,P,F),P=F}}else i.writeComment(e.substring(c,u))}function qVe(e,n,i,c,u,d){const h=Math.min(n,d-1),S=e.substring(u,h).trim();S?(i.writeComment(S),h!==n&&i.writeLine()):i.rawWrite(c)}function e6e(e,n,i){let c=0;for(;n=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Fde(e)|536870912),i||n&&Cs(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=t6e(e)|268435456),tS(e.modifierFlagsCache)):n6e(e.modifierFlagsCache))}function Cb(e){return _k(e,!0)}function Fx(e){return _k(e,!0,!0)}function ZC(e){return _k(e,!1)}function t6e(e){let n=0;return e.parent&&!Os(e)&&(Cs(e)&&(FTe(e)&&(n|=8388608),WTe(e)&&(n|=16777216),LMe(e)&&(n|=33554432),FMe(e)&&(n|=67108864),zTe(e)&&(n|=134217728)),jTe(e)&&(n|=65536)),n}function n6e(e){return e&65535}function tS(e){return e&131071|(e&260046848)>>>23}function KVe(e){return tS(t6e(e))}function n6(e){return Fde(e)|KVe(e)}function Fde(e){let n=DA(e)?aI(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(n|=32),n}function aI(e){let n=0;if(e)for(const i of e)n|=F7(i.kind);return n}function F7(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function dk(e){return e===57||e===56}function U9(e){return dk(e)||e===54}function CH(e){return e===76||e===77||e===78}function Wde(e){return Ds(e)&&CH(e.operatorToken.kind)}function W7(e){return dk(e)||e===61}function DH(e){return Ds(e)&&W7(e.operatorToken.kind)}function pk(e){return e>=64&&e<=79}function IH(e){const n=zN(e);return n&&!n.isImplements?n.class:void 0}function zN(e){if(cC(e)){if(Qb(e.parent)&&Fl(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(xW(e.parent)){const n=YM(e.parent);if(n&&Fl(n))return{class:n,isImplements:!1}}}}function Zv(e,n){return Ds(e)&&(n?e.operatorToken.kind===64:pk(e.operatorToken.kind))&&ib(e.left)}function hSe(e){return Zv(e.parent)&&e.parent.left===e}function wy(e){if(Zv(e,!0)){const n=e.left.kind;return n===210||n===209}return!1}function Gie(e){return IH(e)!==void 0}function Tg(e){return e.kind===80||NS(e)}function PS(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function Uh(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&Uh(e.expression)||e.kind===217&&Uh(e.expression)}function NS(e){return Ac(e)&&xn(e.name)&&Tg(e.expression)}function B7(e){if(Ac(e)){const n=B7(e.expression);if(n!==void 0)return n+"."+iE(e.name)}else if(Hm(e)){const n=B7(e.expression);if(n!==void 0&&qg(e.argumentExpression))return n+"."+FN(e.argumentExpression)}else{if(xn(e))return Ic(e.escapedText);if(Fm(e))return g3(e)}}function bP(e){return mR(e)&&eI(e)==="prototype"}function z7(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function r6(e){return!!e.parent&&(Ac(e.parent)&&e.parent.name===e||Hm(e.parent)&&e.parent.argumentExpression===e)}function kH(e){return Pu(e.parent)&&e.parent.right===e||Ac(e.parent)&&e.parent.name===e||ZL(e.parent)&&e.parent.right===e}function jie(e){return Ds(e)&&e.operatorToken.kind===104}function ySe(e){return jie(e.parent)&&e===e.parent.right}function Vie(e){return e.kind===210&&e.properties.length===0}function vSe(e){return e.kind===209&&e.elements.length===0}function i6(e){if(!(!Fat(e)||!e.declarations)){for(const n of e.declarations)if(n.localSymbol)return n.localSymbol}}function Fat(e){return e&&Nt(e.declarations)>0&&ul(e.declarations[0],2048)}function PH(e){return lr(Aoe,n=>mm(e,n))}function Wat(e){const n=[],i=e.length;for(let c=0;c>6|192),n.push(u&63|128)):u<65536?(n.push(u>>12|224),n.push(u>>6&63|128),n.push(u&63|128)):u<131072?(n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(u&63|128)):re.assert(!1,"Unexpected code point")}return n}function bSe(e){let n="";const i=Wat(e);let c=0;const u=i.length;let d,h,S,E;for(;c>2,h=(i[c]&3)<<4|i[c+1]>>4,S=(i[c+1]&15)<<2|i[c+2]>>6,E=i[c+2]&63,c+1>=u?S=E=64:c+2>=u&&(E=64),n+=nv.charAt(d)+nv.charAt(h)+nv.charAt(S)+nv.charAt(E),c+=3;return n}function Bat(e){let n="",i=0;const c=e.length;for(;i>4&3,k=(h&15)<<4|S>>2&15,F=(S&3)<<6|E&63;k===0&&S!==0?c.push(P):F===0&&E!==0?c.push(P,k):c.push(P,k,F),u+=4}return Bat(c)}function Uie(e,n){const i=As(n)?n:n.readFile(e);if(!i)return;const c=Npe(e,i);return c.error?void 0:c.config}function e3(e,n){return Uie(e,n)||{}}function O0(e,n){return!n.directoryExists||n.directoryExists(e)}function JE(e){switch(e.newLine){case 0:return cEe;case 1:case void 0:return Toe}}function tv(e,n=e){return re.assert(n>=e||n===-1),{pos:e,end:n}}function NH(e,n){return tv(e.pos,n)}function TA(e,n){return tv(n,e.end)}function $E(e){const n=DA(e)?ra(e.modifiers,Jh):void 0;return n&&!ab(n.end)?TA(e,n.end):e}function Db(e){if(nu(e)||tm(e))return TA(e,e.name.pos);const n=DA(e)?Yf(e.modifiers):void 0;return n&&!ab(n.end)?TA(e,n.end):$E(e)}function XVe(e){return e.pos===e.end}function Hie(e,n){return tv(e,e+Cf(n).length)}function mk(e,n){return xSe(e,e,n)}function wH(e,n,i){return mv(t3(e,i,!1),t3(n,i,!1),i)}function ESe(e,n,i){return mv(e.end,n.end,i)}function xSe(e,n,i){return mv(t3(e,i,!1),n.end,i)}function H9(e,n,i){return mv(e.end,t3(n,i,!1),i)}function Jie(e,n,i,c){const u=t3(n,i,c);return i7(i,e.end,u)}function YVe(e,n,i){return i7(i,e.end,n.end)}function ASe(e,n){return!mv(e.pos,e.end,n)}function mv(e,n,i){return i7(i,e,n)===0}function t3(e,n,i){return ab(e.pos)?-1:Ff(n.text,e.pos,!1,i)}function CSe(e,n,i,c){const u=Ff(i.text,e,!1,c),d=zat(u,n,i);return i7(i,d??n,u)}function DSe(e,n,i,c){const u=Ff(i.text,e,!1,c);return i7(i,e,Math.min(n,u))}function zat(e,n=0,i){for(;e-- >n;)if(!cP(i.text.charCodeAt(e)))return e}function $ie(e){const n=__(e);if(n)switch(n.parent.kind){case 266:case 267:return n===n.parent.name}return!1}function n3(e){return gi(e.declarations,J9)}function J9(e){return Kc(e)&&e.initializer!==void 0}function QVe(e){return e.watch&&ef(e,"watch")}function Ib(e){e.close()}function I_(e){return e.flags&33554432?e.links.checkFlags:0}function Vy(e,n=!1){if(e.valueDeclaration){const i=n&&e.declarations&&lr(e.declarations,Xb)||e.flags&32768&&lr(e.declarations,lE)||e.valueDeclaration,c=Eb(i);return e.parent&&e.parent.flags&32?c:c&-8}if(I_(e)&6){const i=e.links.checkFlags,c=i&1024?2:i&256?1:4,u=i&2048?256:0;return c|u}return e.flags&4194304?257:0}function dg(e,n){return e.flags&2097152?n.getAliasedSymbol(e):e}function r3(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function RH(e){return qL(e)===1}function o6(e){return qL(e)!==0}function qL(e){const{parent:n}=e;switch(n==null?void 0:n.kind){case 217:return qL(n);case 225:case 224:const{operator:i}=n;return i===46||i===47?2:0;case 226:const{left:c,operatorToken:u}=n;return c===e&&pk(u.kind)?u.kind===64?1:2:0;case 211:return n.name!==e?0:qL(n);case 303:{const d=qL(n.parent);return e===n.name?Gat(d):d}case 304:return e===n.objectAssignmentInitializer?0:qL(n.parent);case 209:return qL(n);default:return 0}}function Gat(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return re.assertNever(e)}}function qie(e,n){if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(typeof e[i]=="object"){if(!qie(e[i],n[i]))return!1}else if(typeof e[i]!="function"&&e[i]!==n[i])return!1;return!0}function Mh(e,n){e.forEach(n),e.clear()}function wS(e,n,i){const{onDeleteValue:c,onExistingValue:u}=i;e.forEach((d,h)=>{const S=n.get(h);S===void 0?(e.delete(h),c(d,h)):u&&u(d,S,h)})}function a6(e,n,i){wS(e,n,i);const{createNewValue:c}=i;n.forEach((u,d)=>{e.has(d)||e.set(d,c(d,u))})}function ISe(e){if(e.flags&32){const n=RS(e);return!!n&&ul(n,64)}return!1}function RS(e){var n;return(n=e.declarations)==null?void 0:n.find(Fl)}function ji(e){return e.flags&138117121?e.objectFlags:0}function ZVe(e,n){return!!jC(e,i=>n(i)?!0:void 0)}function MH(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lC(e.declarations[0])}function kSe({moduleSpecifier:e}){return Sd(e)?e.text:Lv(e)}function Kie(e){let n;return s_(e,i=>{y2(i)&&(n=i)},i=>{for(let c=i.length-1;c>=0;c--)if(y2(i[c])){n=i[c];break}}),n}function y0(e,n,i=!0){return e.has(n)?!1:(e.set(n,i),!0)}function GN(e){return Fl(e)||xp(e)||rS(e)}function Xie(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Kf(e){return e.kind===211||e.kind===212}function PSe(e){return e.kind===211?e.name:(re.assert(e.kind===212),e.argumentExpression)}function NSe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function LH(e){return e.kind===275||e.kind===279}function i3(e){for(;Kf(e);)e=e.expression;return e}function r6e(e,n){if(Kf(e.parent)&&r6(e))return i(e.parent);function i(c){if(c.kind===211){const u=n(c.name);if(u!==void 0)return u}else if(c.kind===212)if(xn(c.argumentExpression)||Cm(c.argumentExpression)){const u=n(c.argumentExpression);if(u!==void 0)return u}else return;if(Kf(c.expression))return i(c.expression);if(xn(c.expression))return n(c.expression)}}function KL(e,n){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(n)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jat(e,n){this.flags=e,this.escapedName=n,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 Vat(e,n){this.flags=n,(re.isDebugging||ps)&&(this.checker=e)}function Uat(e,n){this.flags=n,re.isDebugging&&(this.checker=e)}function Bde(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Hat(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Jat(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function $at(e,n,i){this.fileName=e,this.text=n,this.skipTrivia=i||(c=>c)}function wSe(e){lEe.push(e),e(W0)}function RSe(e){Object.assign(W0,e),Ot(lEe,n=>n(W0))}function LT(e,n){return e.replace(/{(\d+)}/g,(i,c)=>""+re.checkDefined(n[+c]))}function MSe(e){DY=e}function LSe(e){!DY&&e&&(DY=e())}function fs(e){return DY&&DY[e.key]||e.message}function s6(e,n,i,c,u,...d){i+c>n.length&&(c=n.length-i),nH(n,i,c);let h=fs(u);return gt(d)&&(h=LT(h,d)),{file:void 0,start:i,length:c,messageText:h,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,fileName:e}}function qat(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function i6e(e,n){const i=n.fileName||"",c=n.text.length;re.assertEqual(e.fileName,i),re.assertLessThanOrEqual(e.start,c),re.assertLessThanOrEqual(e.start+e.length,c);const u={file:n,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){u.relatedInformation=[];for(const d of e.relatedInformation)qat(d)&&d.fileName===i?(re.assertLessThanOrEqual(d.start,c),re.assertLessThanOrEqual(d.start+d.length,c),u.relatedInformation.push(i6e(d,n))):u.relatedInformation.push(d)}return u}function jN(e,n){const i=[];for(const c of e)i.push(i6e(c,n));return i}function Pp(e,n,i,c,...u){nH(e.text,n,i);let d=fs(c);return gt(u)&&(d=LT(d,u)),{file:e,start:n,length:i,messageText:d,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}function Yie(e,...n){let i=fs(e);return gt(n)&&(i=LT(i,n)),i}function W_(e,...n){let i=fs(e);return gt(n)&&(i=LT(i,n)),{file:void 0,start:void 0,length:void 0,messageText:i,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function OH(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}}function Es(e,n,...i){let c=fs(n);return gt(i)&&(c=LT(c,i)),{messageText:c,category:n.category,code:n.code,next:e===void 0||Array.isArray(e)?e:[e]}}function OSe(e,n){let i=e;for(;i.next;)i=i.next[0];i.next=[n]}function o6e(e){return e.file?e.file.path:void 0}function o3(e,n){return FH(e,n)||Kat(e,n)||0}function FH(e,n){return Fp(o6e(e),o6e(n))||pf(e.start,n.start)||pf(e.length,n.length)||pf(e.code,n.code)||a6e(e.messageText,n.messageText)||0}function Kat(e,n){return!e.relatedInformation&&!n.relatedInformation?0:e.relatedInformation&&n.relatedInformation?pf(e.relatedInformation.length,n.relatedInformation.length)||Ot(e.relatedInformation,(i,c)=>{const u=n.relatedInformation[c];return o3(i,u)})||0:e.relatedInformation?-1:1}function a6e(e,n){if(typeof e=="string"&&typeof n=="string")return Fp(e,n);if(typeof e=="string")return-1;if(typeof n=="string")return 1;let i=Fp(e.messageText,n.messageText);if(i)return i;if(!e.next&&!n.next)return 0;if(!e.next)return-1;if(!n.next)return 1;const c=Math.min(e.next.length,n.next.length);for(let u=0;un.next.length?1:0}function $9(e){return e===4||e===2||e===1||e===6?1:0}function s6e(e){if(e.transformFlags&2)return m1(e)||Ek(e)?e:s_(e,s6e)}function Xat(e){return e.isDeclarationFile?void 0:s6e(e)}function Yat(e){return(e.impliedNodeFormat===99||pv(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function q9(e){switch(FSe(e)){case 3:return u=>{u.externalModuleIndicator=Uoe(u)||!u.isDeclarationFile||void 0};case 1:return u=>{u.externalModuleIndicator=Uoe(u)};case 2:const n=[Uoe];(e.jsx===4||e.jsx===5)&&n.push(Xat),n.push(Yat);const i=bb(...n);return u=>void(u.externalModuleIndicator=i(u))}}function iu(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function Zp(e){return typeof e.module=="number"?e.module:iu(e)>=2?5:1}function WH(e){return e>=5&&e<=99}function Jd(e){let n=e.moduleResolution;if(n===void 0)switch(Zp(e)){case 1:n=2;break;case 100:n=3;break;case 199:n=99;break;default:n=1;break}return n}function FSe(e){return e.moduleDetection||(Zp(e)===100||Zp(e)===199?3:2)}function BH(e){switch(Zp(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function F0(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function Qie(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function WSe(e){return e.allowUnreachableCode===!1}function BSe(e){return e.allowUnusedLabels===!1}function zH(e){return!!(gv(e)&&e.declarationMap)}function b1(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Zp(e)){case 100:case 199:return!0}}function VN(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:b1(e)||Zp(e)===4||Jd(e)===100}function UN(e){return e>=3&&e<=99||e===100}function GH(e){return!!e.noDtsResolution||Jd(e)!==100}function Zie(e){const n=Jd(e);if(!UN(n))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function eUe(e){const n=Jd(e);if(!UN(n))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function sI(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Jd(e)===100}function gv(e){return!!(e.declaration||e.composite)}function gk(e){return!!(e.preserveConstEnums||F0(e))}function K9(e){return!!(e.incremental||e.composite)}function hv(e,n){return e[n]===void 0?!!e.strict:!!e[n]}function TP(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function X9(e){return e.useDefineForClassFields===void 0?iu(e)>=9:e.useDefineForClassFields}function zSe(e){return e.useDefineForClassFields!==!1&&iu(e)>=9}function GSe(e,n){return g9(n,e,nae)}function jSe(e,n){return g9(n,e,rae)}function VSe(e,n){return g9(n,e,iae)}function jH(e,n){return n.strictFlag?hv(e,n.name):n.allowJsFlag?TP(e):e[n.name]}function VH(e){const n=e.jsx;return n===2||n===4||n===5}function UH(e,n){const i=n==null?void 0:n.pragmas.get("jsximportsource"),c=ls(i)?i[i.length-1]:i;return e.jsx===4||e.jsx===5||e.jsxImportSource||c?(c==null?void 0:c.arguments.factory)||e.jsxImportSource||"react":void 0}function HH(e,n){return e?`${e}/${n.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function eoe(e){let n=!1;for(let i=0;iu,getSymlinkedDirectories:()=>i,getSymlinkedDirectoriesByRealpath:()=>c,setSymlinkedFile:(S,E)=>(u||(u=new Map)).set(S,E),setSymlinkedDirectory:(S,E)=>{let P=gm(S,e,n);_3(P)||(P=Su(P),E!==!1&&!(i!=null&&i.has(P))&&(c||(c=zg())).add(E.realPath,S),(i||(i=new Map)).set(P,E))},setSymlinksFromResolutions(S,E,P){re.assert(!d),d=!0,S(k=>h(this,k.resolvedModule)),E(k=>h(this,k.resolvedTypeReferenceDirective)),P.forEach(k=>h(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>d};function h(S,E){if(!E||!E.originalPath||!E.resolvedFileName)return;const{resolvedFileName:P,originalPath:k}=E;S.setSymlinkedFile(gm(k,e,n),P);const[F,$]=Qat(P,k,e,n)||Yn;F&&$&&S.setSymlinkedDirectory($,{real:Su(F),realPath:Su(gm(F,e,n))})}}function Qat(e,n,i,c){const u=qc(vf(e,i)),d=qc(vf(n,i));let h=!1;for(;u.length>=2&&d.length>=2&&!c6e(u[u.length-2],c)&&!c6e(d[d.length-2],c)&&c(u[u.length-1])===c(d[d.length-1]);)u.pop(),d.pop(),h=!0;return h?[Iy(u),Iy(d)]:void 0}function c6e(e,n){return e!==void 0&&(n(e)==="node_modules"||qf(e,"@"))}function Zat(e){return wU(e.charCodeAt(0))?e.slice(1):void 0}function toe(e,n,i){const c=Ez(e,n,i);return c===void 0?void 0:Zat(c)}function tUe(e){return e.replace(IY,est)}function est(e){return"\\"+e}function a3(e,n,i){const c=JH(e,n,i);return!c||!c.length?void 0:`^(${c.map(h=>`(${h})`).join("|")})${i==="exclude"?"($|/)":"$"}`}function JH(e,n,i){if(!(e===void 0||e.length===0))return ea(e,c=>c&&l6e(c,n,i,fEe[i]))}function noe(e){return!/[.*?]/.test(e)}function roe(e,n,i){const c=e&&l6e(e,n,i,fEe[i]);return c&&`^(${c})${i==="exclude"?"($|/)":"$"}`}function l6e(e,n,i,{singleAsteriskRegexFragment:c,doubleAsteriskRegexFragment:u,replaceWildcardCharacter:d}){let h="",S=!1;const E=g0(e,n),P=yl(E);if(i!=="exclude"&&P==="**")return;E[0]=bN(E[0]),noe(P)&&E.push("**","*");let k=0;for(let F of E){if(F==="**")h+=u;else if(i==="directories"&&(h+="(",k++),S&&(h+=qp),i!=="exclude"){let $="";F.charCodeAt(0)===42?($+="([^./]"+c+")?",F=F.substr(1)):F.charCodeAt(0)===63&&($+="[^./]",F=F.substr(1)),$+=F.replace(IY,d),$!==F&&(h+=Eoe),h+=$}else h+=F.replace(IY,d);S=!0}for(;k>0;)h+=")?",k--;return h}function Gde(e,n){return e==="*"?n:e==="?"?"[^/]":"\\"+e}function Y9(e,n,i,c,u){e=hf(e),u=hf(u);const d=vl(u,e);return{includeFilePatterns:Vn(JH(i,d,"files"),h=>`^${h}$`),includeFilePattern:a3(i,d,"files"),includeDirectoryPattern:a3(i,d,"directories"),excludePattern:a3(n,d,"exclude"),basePaths:tst(e,i,c)}}function Y2(e,n){return new RegExp(e,n?"":"i")}function ioe(e,n,i,c,u,d,h,S,E){e=hf(e),d=hf(d);const P=Y9(e,i,c,u,d),k=P.includeFilePatterns&&P.includeFilePatterns.map(ve=>Y2(ve,u)),F=P.includeDirectoryPattern&&Y2(P.includeDirectoryPattern,u),$=P.excludePattern&&Y2(P.excludePattern,u),J=k?k.map(()=>[]):[[]],X=new Map,ie=H1(u);for(const ve of P.basePaths)ae(ve,vl(d,ve),h);return Gf(J);function ae(ve,we,Fe){const et=ie(E(we));if(X.has(et))return;X.set(et,!0);const{files:Pe,directories:dt}=S(ve);for(const Ie of fN(Pe,Fp)){const ct=vl(ve,Ie),Ct=vl(we,Ie);if(!(n&&!pv(ct,n))&&!($&&$.test(Ct)))if(!k)J[0].push(ct);else{const Lt=Ho(k,Ze=>Ze.test(Ct));Lt!==-1&&J[Lt].push(ct)}}if(!(Fe!==void 0&&(Fe--,Fe===0)))for(const Ie of fN(dt,Fp)){const ct=vl(ve,Ie),Ct=vl(we,Ie);(!F||F.test(Ct))&&(!$||!$.test(Ct))&&ae(ct,Ct,Fe)}}}function tst(e,n,i){const c=[e];if(n){const u=[];for(const d of n){const h=nE(d)?d:hf(vl(e,d));u.push(nst(h))}u.sort(Xw(!i));for(const d of u)jr(c,h=>!OE(h,d,e,!i))&&c.push(d)}return c}function nst(e){const n=Hg(e,uEe);return n<0?r9(e)?bN(ws(e)):e:e.substring(0,e.lastIndexOf(qp,n))}function $H(e,n){return n||EY(e)||3}function EY(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function s3(e,n){const i=e&&TP(e);if(!n||n.length===0)return i?SG:TG;const c=i?SG:TG,u=Gf(c);return[...c,...Qo(n,h=>h.scriptKind===7||i&&rst(h.scriptKind)&&!u.includes(h.extension)?[h.extension]:void 0)]}function Q9(e,n){return!e||!sI(e)?n:n===SG?Coe:n===TG?iJ:[...n,[".json"]]}function rst(e){return e===1||e===2}function eD(e){return gt(h3,n=>mm(e,n))}function vR(e){return gt(xoe,n=>mm(e,n))}function USe({imports:e},n=bb(eD,vR)){return Yr(e,({text:i})=>V2(i)&&!pv(i,xG)?n(i):void 0)||!1}function ooe(e,n,i,c){if(e==="js"||n===99)return MW(i)&&u()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!MW(i))return USe(c)?2:0;return u();function u(){let d=!1;const h=c.imports.length?c.imports.map(S=>S.text):Gy(c)?ist(c).map(S=>S.arguments[0].text):Yn;for(const S of h)if(V2(S)){if(pv(S,xG))continue;if(vR(S))return 3;eD(S)&&(d=!0)}return d?2:0}}function ist(e){let n=0,i;for(const c of e.statements){if(n>3)break;xie(c)?i=Hi(i,c.declarationList.declarations.map(u=>u.initializer)):kb(c)&&y1(c.expression,!0)?i=ur(i,c.expression):n++}return i||Yn}function HSe(e,n,i){if(!e)return!1;const c=s3(n,i);for(const u of Gf(Q9(n,c)))if(mm(e,u))return!0;return!1}function u6e(e){const n=e.match(/\//g);return n?n.length:0}function Z9(e,n){return pf(u6e(e),u6e(n))}function wg(e){for(const n of Kde){const i=JSe(e,n);if(i!==void 0)return i}return e}function JSe(e,n){return mm(e,n)?eW(e,n):void 0}function eW(e,n){return e.substring(0,e.length-n.length)}function SA(e,n){return Vre(e,n,Kde,!1)}function c6(e){const n=e.indexOf("*");return n===-1?e:e.indexOf("*",n+1)!==-1?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function qH(e){return Qo(ET(e),n=>c6(n))}function ab(e){return!(e>=0)}function KH(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||qf(e,".d.")&&h_(e,".ts")}function G7(e){return KH(e)||e===".json"}function SP(e){const n=OT(e);return n!==void 0?n:re.fail(`File ${e} has unknown extension.`)}function nUe(e){return OT(e)!==void 0}function OT(e){return lr(Kde,n=>mm(e,n))}function tW(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs}function aoe(e,n){const i=[];for(const c of e){if(c===n)return n;As(c)||i.push(c)}return CL(i,c=>c,n)}function soe(e,n){const i=e.indexOf(n);return re.assert(i!==-1),e.slice(i)}function ml(e,...n){return n.length&&(e.relatedInformation||(e.relatedInformation=[]),re.assert(e.relatedInformation!==Yn,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...n)),e}function $Se(e,n){re.assert(e.length!==0);let i=n(e[0]),c=i;for(let u=1;uc&&(c=d)}return{min:i,max:c}}function coe(e){return{pos:v2(e),end:e.end}}function loe(e,n){const i=n.pos-1,c=Math.min(e.text.length,Ff(e.text,n.end)+1);return{pos:i,end:c}}function c3(e,n,i){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||i.isSourceOfProjectReferenceRedirect(e.fileName)}function xY(e,n){return e===n||typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&U5(e,n,xY)}function l3(e){let n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:const P=e.length-1;let k=0;for(;e.charCodeAt(k)===48;)k++;return e.slice(k,P)||"0"}const i=2,c=e.length-1,u=(c-i)*n,d=new Uint16Array((u>>>4)+(u&15?1:0));for(let P=c-1,k=0;P>=i;P--,k+=n){const F=k>>>4,$=e.charCodeAt(P),X=($<=57?$-48:10+$-($<=70?65:97))<<(k&15);d[F]|=X;const ie=X>>>16;ie&&(d[F+1]|=ie)}let h="",S=d.length-1,E=!0;for(;E;){let P=0;E=!1;for(let k=S;k>=0;k--){const F=P<<16|d[k],$=F/10|0;d[k]=$,P=F-$*10,$&&!E&&(S=k,E=!0)}h=P+h}return h}function tD({negative:e,base10Value:n}){return(e&&n!=="0"?"-":"")+n}function qSe(e){if(XH(e,!1))return uoe(e)}function uoe(e){const n=e.startsWith("-"),i=l3(`${n?e.slice(1):e}n`);return{negative:n,base10Value:i}}function XH(e,n){if(e==="")return!1;const i=CS(99,!1);let c=!0;i.setOnError(()=>c=!1),i.setText(e+"n");let u=i.scan();const d=u===41;d&&(u=i.scan());const h=i.getTokenFlags();return c&&u===10&&i.getTokenEnd()===e.length+1&&!(h&512)&&(!n||e===tD({negative:d,base10Value:l3(i.getTokenValue())}))}function EA(e){return!!(e.flags&33554432)||iG(e)||sst(e)||ast(e)||!(ZD(e)||ost(e))}function ost(e){return xn(e)&&XE(e.parent)&&e.parent.name===e}function ast(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ul(e.parent,64))return!0;const n=e.parent.parent.kind;return n===264||n===187}function sst(e){if(e.kind!==80)return!1;const n=Ua(e.parent,i=>{switch(i.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(n==null?void 0:n.token)===119||(n==null?void 0:n.parent.kind)===264}function KSe(e){return uE(e)&&xn(e.typeName)}function XSe(e,n=_1){if(e.length<2)return!0;const i=e[0];for(let c=1,u=e.length;ce.includes(n))}function ZSe(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:i}=e;return i.kind===195?void 0:i.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:c}=e;return S6(c)?c.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:n}=e;if(d7(e))return oF(e.parent)?void 0:e.parent.tags;switch(n.kind){case 187:case 264:return rb(e)?n.members:void 0;case 192:case 193:return n.types;case 189:case 209:case 361:case 275:case 279:return n.elements;case 210:case 292:return n.properties;case 213:case 214:return pc(e)?n.typeArguments:n.expression===e?void 0:n.arguments;case 284:case 288:return ZX(e)?n.children:void 0;case 286:case 285:return pc(e)?n.typeArguments:void 0;case 241:case 296:case 297:case 268:return n.statements;case 269:return n.clauses;case 263:case 231:return J_(e)?n.members:void 0;case 266:return pI(e)?n.members:void 0;case 312:return n.statements}}function YH(e){if(!e.typeParameters){if(gt(e.parameters,n=>!Zy(n)))return!0;if(e.kind!==219){const n=pp(e.parameters);if(!(n&&iI(n)))return!0}}return!1}function d3(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function eEe(e){return e.kind===260&&e.parent.kind===299}function _oe(e){const n=e.valueDeclaration&&vA(e.valueDeclaration);return!!n&&(Os(n)||eEe(n))}function EP(e){return e.kind===218||e.kind===219}function nD(e){return e.replace(/\$/gm,()=>"\\$")}function FT(e){return(+e).toString()===e}function QH(e,n,i,c,u){const d=u&&e==="new";return!d&&H2(e,n)?he.createIdentifier(e):!c&&!d&&FT(e)&&+e>=0?he.createNumericLiteral(+e):he.createStringLiteral(e,!!i)}function p3(e){return!!(e.flags&262144&&e.isThisType)}function AY(e){let n=0,i=0,c=0,u=0,d;(P=>{P[P.BeforeNodeModules=0]="BeforeNodeModules",P[P.NodeModules=1]="NodeModules",P[P.Scope=2]="Scope",P[P.PackageContent=3]="PackageContent"})(d||(d={}));let h=0,S=0,E=0;for(;S>=0;)switch(h=S,S=e.indexOf("/",h+1),E){case 0:e.indexOf(IP,h)===h&&(n=h,i=S,E=1);break;case 1:case 2:E===1&&e.charAt(h+1)==="@"?E=2:(c=S,E=3);break;case 3:e.indexOf(IP,h)===h?E=1:E=3;break}return u=h,E>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:c,fileNameIndex:u}:void 0}function rUe(e){var n;return e.kind===348?(n=e.typeExpression)==null?void 0:n.type:e.type}function f6(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function nW(e){return xP(e)||Xg(e)||mg(e)||Ih(e)||xp(e)||f6(e)||py(e)&&!Ov(e)&&!JC(e)}function rW(e){if(!Uz(e))return!1;const{isBracketed:n,typeExpression:i}=e;return n||!!i&&i.type.kind===323}function doe(e,n){if(e.length===0)return!1;const i=e.charCodeAt(0);return i===35?e.length>1&&lP(e.charCodeAt(1),n):lP(i,n)}function tEe(e){var n;return((n=npe(e))==null?void 0:n.kind)===0}function iW(e){return Cs(e)&&(e.type&&e.type.kind===323||o_(e).some(({isBracketed:n,typeExpression:i})=>n||!!i&&i.type.kind===323))}function yG(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||iW(e);case 355:case 348:return rW(e);default:return!1}}function nEe(e){const n=e.kind;return(n===211||n===212)&&E3(e.expression)}function poe(e){return Cs(e)&&fE(e)&&NT(e)&&!!Z_e(e)}function moe(e){return re.checkDefined(ZH(e))}function ZH(e){const n=Z_e(e);return n&&n.typeExpression&&n.typeExpression.type}function m3(e){return xn(e)?e.escapedText:bR(e)}function oW(e){return xn(e)?Kr(e):g3(e)}function rEe(e){const n=e.kind;return n===80||n===295}function bR(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function g3(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function goe(e){return xn(e)?Kr(e):g3(e)}function yv(e){return!!(e.flags&8576)}function vv(e){return e.flags&8192?e.escapedName:e.flags&384?ey(""+e.value):re.fail()}function eJ(e){return!!e&&(Ac(e)||Hm(e)||Ds(e))}function _6(e){return e===void 0?!1:!!W3(e.attributes)}var vG,HN,j7,CY,tJ,hoe,jde,yoe,f6e,_6e,voe,iEe,oEe,boe,Vde,Ude,Hde,d6e,p6e,aEe,m6e,g6e,sEe,nJ,V7,h6e,rJ,nv,cEe,Toe,W0,lEe,DY,IY,uEe,Soe,Eoe,Jde,bG,$de,fEe,TG,xoe,iJ,Aoe,qde,h3,SG,Coe,oJ,EG,xG,_Ee,Kde,Xde,iUe=G({"src/compiler/utilities.ts"(){md(),vG=[],HN="tslib",j7=160,CY=1e6,tJ=zVe(),hoe=Pd(()=>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:Yn})),AsyncIterator:new Map(Object.entries({es2015:Yn})),Atomics:new Map(Object.entries({es2017:Yn})),SharedArrayBuffer:new Map(Object.entries({es2017:Yn})),AsyncIterable:new Map(Object.entries({es2018:Yn})),AsyncIterableIterator:new Map(Object.entries({es2018:Yn})),AsyncGenerator:new Map(Object.entries({es2018:Yn})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Yn})),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:Yn,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:Yn})),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:Yn,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Yn,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),jde=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(jde||{}),yoe=/^(\/\/\/\s*/,f6e=/^(\/\/\/\s*/,_6e=/^(\/\/\/\s*/,voe=/^(\/\/\/\s*/,iEe=/^\/\/\/\s*/,oEe=/^(\/\/\/\s*/,boe=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(boe||{}),Vde=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Vde||{}),Ude=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Ude||{}),Hde=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Hde||{}),d6e=/\$\{/g,p6e=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,aEe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,m6e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,g6e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),sEe=/[^\u0000-\u007F]/g,nJ=/["\u0000-\u001f\u2028\u2029\u0085]/g,V7=/['\u0000-\u001f\u2028\u2029\u0085]/g,h6e=new Map(Object.entries({'"':""","'":"'"})),rJ=[""," "],nv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cEe=`\r +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(E=P?(X|=2048,He&&et(N.Unexpected_end_of_text),S.substring(Hn,E)):S.charCodeAt(E)!==125?(X|=2048,He&&et(N.Unterminated_Unicode_escape_sequence),S.substring(Hn,E)):(E++,X|=8,ak(Pr)):(X|=2048,He&&et(N.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),S.substring(Hn,E))}for(;E1114111&&(et(N.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),dr=!0),E>=P?(et(N.Unexpected_end_of_text),dr=!0):S.charCodeAt(E)===125?E++:(et(N.Unterminated_Unicode_escape_sequence),dr=!0),dr?"":ak(Hn)}function Et(){if(E+5=0&&wL(dr,e)){E+=3,X|=8,He+=Yt(),Hn=E;continue}if(dr=Et(),!(dr>=0&&wL(dr,e)))break;X|=1024,He+=S.substring(Hn,E),He+=ak(dr),E+=6,Hn=E}else break}return He+=S.substring(Hn,E),He}function nn(){const He=J.length;if(He>=2&&He<=12){const Hn=J.charCodeAt(0);if(Hn>=97&&Hn<=122){const dr=MM.get(J);if(dr!==void 0)return $=dr}}return $=80}function Rn(He){let Hn="",dr=!1,Mr=!1;for(;;){const Pr=S.charCodeAt(E);if(Pr===95){X|=512,dr?(dr=!1,Mr=!0):et(Mr?N.Multiple_consecutive_numeric_separators_are_not_permitted:N.Numeric_separators_are_not_allowed_here,E,1),E++;continue}if(dr=!0,!I8(Pr)||Pr-48>=He)break;Hn+=S[E],E++,Mr=!1}return S.charCodeAt(E-1)===95&&et(N.Numeric_separators_are_not_allowed_here,E-1,1),Hn}function cn(){return S.charCodeAt(E)===110?(J+="n",X&384&&(J=l3(J)+"n"),E++,10):(J=""+(X&128?parseInt(J.slice(2),2):X&256?parseInt(J.slice(2),8):+J),9)}function qt(){k=E,X=0;let He=!1;for(;;){if(F=E,E>=P)return $=1;const Hn=Nx(S,E);if(E===0){if(Hn===65533)return et(N.File_appears_to_be_binary),E=P,$=8;if(Hn===35&&ATe(S,E)){if(E=OX(S,E),n)continue;return $=6}}switch(Hn){case 10:case 13:if(X|=1,n){E++;continue}else return Hn===13&&E+1=0&&lP(dr,e))return E+=3,X|=8,J=Yt()+Qt(),$=nn();const Mr=Et();return Mr>=0&&lP(Mr,e)?(E+=6,X|=1024,J=String.fromCharCode(Mr)+Qt(),$=nn()):(et(N.Invalid_character),E++,$=0);case 35:if(E!==0&&S[E+1]==="!")return et(N.can_only_be_used_at_the_start_of_a_file),E++,$=0;const Pr=Nx(S,E+1);if(Pr===92){E++;const Wn=at();if(Wn>=0&&lP(Wn,e))return E+=3,X|=8,J="#"+Yt()+Qt(),$=81;const $r=Et();if($r>=0&&lP($r,e))return E+=6,X|=1024,J="#"+String.fromCharCode($r)+Qt(),$=81;E--}return lP(Pr,e)?(E++,Wr(Pr,e)):(J="#",et(N.Invalid_character,E++,tR(Hn))),$=81;default:const Bt=Wr(Hn,e);if(Bt)return $=Bt;if(q1(Hn)){E+=tR(Hn);continue}else if(Sb(Hn)){X|=1,E+=tR(Hn);continue}const ln=tR(Hn);return et(N.Invalid_character,E,ln),E+=ln,$=0}}}function Kt(){switch(we){case 0:return!0;case 1:return!1}return ve!==3&&ve!==4?!0:we===3?!1:DMe.test(S.slice(k,E))}function wr(){re.assert($===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),E=F=k,X=0;const He=Nx(S,E),Hn=Wr(He,99);return Hn?$=Hn:(E+=tR(He),$)}function Wr(He,Hn){let dr=He;if(lP(dr,Hn)){for(E+=tR(dr);E=P)return $=1;let Hn=S.charCodeAt(E);if(Hn===60)return S.charCodeAt(E+1)===47?(E+=2,$=31):(E++,$=30);if(Hn===123)return E++,$=19;let dr=0;for(;E0)break;cP(Hn)||(dr=E)}E++}return J=S.substring(k,E),dr===-1?13:12}function $i(){if(CT($)){for(;E=P)return $=1;for(let Hn=S.charCodeAt(E);E=0&&q1(S.charCodeAt(E-1))&&!(E+1=P)return $=1;const He=Nx(S,E);switch(E+=tR(He),He){case 9:case 11:case 12:case 32:for(;E=0&&lP(Hn,e))return E+=3,X|=8,J=Yt()+Qt(),$=nn();const dr=Et();return dr>=0&&lP(dr,e)?(E+=6,X|=1024,J=String.fromCharCode(dr)+Qt(),$=nn()):(E++,$=0)}if(lP(He,e)){let Hn=He;for(;E=0),E=He,k=He,F=He,$=0,J=void 0,X=0}function Eu(He){ae+=He?1:-1}}function Nx(e,n){return e.codePointAt(n)}function tR(e){return e>=65536?2:1}function nR(e){if(re.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const n=Math.floor((e-65536)/1024)+55296,i=(e-65536)%1024+56320;return String.fromCharCode(n,i)}function ak(e){return kMe(e)}var rE,MM,LM,OVe,LU,Jre,EMe,DTe,xMe,AMe,CMe,DMe,IMe,$re,q_e,kMe,FVe=G({"src/compiler/scanner.ts"(){md(),rE={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},MM=new Map(Object.entries(rE)),LM=new Map(Object.entries({...rE,"{":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})),OVe=[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],LU=[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],Jre=[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],EMe=[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],DTe=[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],xMe=[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],AMe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,CMe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,DMe=/@(?:see|link)/i,IMe=Rat(LM),$re=7,q_e=/^#!.*/,kMe=String.fromCodePoint?e=>String.fromCodePoint(e):nR}});function Kv(e){return V2(e)||nE(e)}function o7(e){return OD(e,o3)}function $D(e){switch(iu(e)){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 Xy(e){return e.start+e.length}function PMe(e){return e.length===0}function tb(e,n){return n>=e.start&&n=e.pos&&n<=e.end}function qre(e,n){return n.start>=e.start&&Xy(n)<=Xy(e)}function K1(e,n){return ITe(e,n)!==void 0}function ITe(e,n){const i=PTe(e,n);return i&&i.length===0?void 0:i}function kTe(e,n){return FX(e.start,e.length,n.start,n.length)}function Bz(e,n,i){return FX(e.start,e.length,n,i)}function FX(e,n,i,c){const u=e+n,d=i+c;return i<=u&&d>=e}function NMe(e,n){return n<=Xy(e)&&n>=e.start}function PTe(e,n){const i=Math.max(e.start,n.start),c=Math.min(Xy(e),Xy(n));return i<=c?Yy(i,c):void 0}function p1(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function Yy(e,n){return p1(e,n-e)}function o9(e){return p1(e.span.start,e.newLength)}function NTe(e){return PMe(e.span)&&e.newLength===0}function WX(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function nb(e){if(e.length===0)return OL;if(e.length===1)return e[0];const n=e[0];let i=n.span.start,c=Xy(n.span),u=i+n.newLength;for(let d=1;d=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ic(e){const n=e;return n.length>=3&&n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===95?n.substr(1):n}function Kr(e){return Ic(e.escapedText)}function uP(e){const n=D8(e.escapedText);return n?to(n,qb):void 0}function Il(e){return e.valueDeclaration&&IT(e.valueDeclaration)?Kr(e.valueDeclaration.name):Ic(e.escapedName)}function ty(e){const n=e.parent.parent;if(n){if(PT(n))return lf(n);switch(n.kind){case 243:if(n.declarationList&&n.declarationList.declarations[0])return lf(n.declarationList.declarations[0]);break;case 244:let i=n.expression;switch(i.kind===226&&i.operatorToken.kind===64&&(i=i.left),i.kind){case 211:return i.name;case 212:const c=i.argumentExpression;if(xn(c))return c}break;case 217:return lf(n.expression);case 256:{if(PT(n.statement)||kr(n.statement))return lf(n.statement);break}}}}function lf(e){const n=i_(e);return n&&xn(n)?n:void 0}function ec(e,n){return!!(mp(e)&&xn(e.name)&&Kr(e.name)===Kr(n)||Xg(e)&>(e.declarationList.declarations,i=>ec(i,n)))}function RL(e){return e.name||ty(e)}function mp(e){return!!e.name}function Kre(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:i}=e;if(i.kind===166)return i.right;break}case 213:case 226:{const i=e;switch(jy(i)){case 1:case 4:case 5:case 3:return lH(i.left);case 7:case 8:case 9:return i.arguments[1];default:return}}case 353:return RL(e);case 347:return ty(e);case 277:{const{expression:i}=e;return xn(i)?i:void 0}case 212:const n=e;if(GL(n))return n.argumentExpression}return e.name}function i_(e){if(e!==void 0)return Kre(e)||(Jm(e)||$m(e)||v0(e)?FU(e):void 0)}function FU(e){if(e.parent){if(tl(e.parent)||sa(e.parent))return e.parent.name;if(Ds(e.parent)&&e===e.parent.right){if(xn(e.parent.left))return e.parent.left;if(Kf(e.parent.left))return lH(e.parent.left)}else if(Kc(e.parent)&&xn(e.parent.name))return e.parent.name}else return}function OM(e){if(X2(e))return gi(e.modifiers,Jh)}function Xv(e){if(ul(e,98303))return gi(e.modifiers,Mf)}function X_e(e,n){if(e.name)if(xn(e.name)){const i=e.name.escapedText;return Yre(e.parent,n).filter(c=>A2(c)&&xn(c.name)&&c.name.escapedText===i)}else{const i=e.parent.parameters.indexOf(e);re.assert(i>-1,"Parameters should always be in their parents' parameter list");const c=Yre(e.parent,n).filter(A2);if(iCA(c)&&c.typeParameters.some(u=>u.name.escapedText===i))}function N8(e){return ML(e,!1)}function MTe(e){return ML(e,!0)}function zz(e){return!!X1(e,A2)}function LTe(e){return X1(e,xW)}function OTe(e){return WU(e,jJ)}function Q_e(e){return X1(e,_pe)}function RMe(e){return X1(e,OG)}function FTe(e){return X1(e,OG,!0)}function MMe(e){return X1(e,Woe)}function WTe(e){return X1(e,Woe,!0)}function BTe(e){return X1(e,DEe)}function LMe(e){return X1(e,DEe,!0)}function OMe(e){return X1(e,BJ)}function FMe(e){return X1(e,BJ,!0)}function zTe(e){return X1(e,AA,!0)}function GTe(e){return X1(e,dpe)}function jTe(e){return X1(e,dpe,!0)}function VTe(e){return X1(e,jx)}function Xre(e){return X1(e,IEe)}function UTe(e){return X1(e,ppe)}function HTe(e){return X1(e,CA)}function Z_e(e){return X1(e,ZL)}function FM(e){const n=X1(e,FG);if(n&&n.typeExpression&&n.typeExpression.type)return n}function iR(e){let n=X1(e,FG);return!n&&Os(e)&&(n=lr(o_(e),i=>!!i.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function GX(e){const n=UTe(e);if(n&&n.typeExpression)return n.typeExpression.type;const i=FM(e);if(i&&i.typeExpression){const c=i.typeExpression.type;if(rS(c)){const u=lr(c.members,Y7);return u&&u.type}if(e0(c)||Ak(c))return c.type}}function Yre(e,n){var i;if(!T2(e))return Yn;let c=(i=e.jsDoc)==null?void 0:i.jsDocCache;if(c===void 0||n){const u=fH(e,n);re.assert(u.length<2||u[0]!==u[1]),c=ea(u,d=>uC(d)?d.tags:d),n||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=c)}return c}function WM(e){return Yre(e,!1)}function w8(e){return Yre(e,!0)}function X1(e,n,i){return lr(Yre(e,i),n)}function WU(e,n){return WM(e).filter(n)}function jX(e,n){return WM(e).filter(i=>i.kind===n)}function EN(e){return typeof e=="string"?e:e==null?void 0:e.map(n=>n.kind===328?n.text:Mat(n)).join("")}function Mat(e){const n=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",i=e.name?iE(e.name):"",c=e.name&&e.text.startsWith("://")?"":" ";return`{@${n} ${i}${c}${e.text}}`}function Hb(e){if(b6(e)){if(aF(e.parent)){const n=_H(e.parent);if(n&&Nt(n.tags))return ea(n.tags,i=>CA(i)?i.typeParameters:void 0)}return Yn}if(b2(e))return re.assert(e.parent.kind===327),ea(e.parent.tags,n=>CA(n)?n.typeParameters:void 0);if(e.typeParameters||zEe(e)&&e.typeParameters)return e.typeParameters;if(Cs(e)){const n=SY(e);if(n.length)return n;const i=iR(e);if(i&&e0(i)&&i.typeParameters)return i.typeParameters}return Yn}function a9(e){return e.constraint?e.constraint:CA(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function xN(e){return e.kind===80||e.kind===81}function Gz(e){return e.kind===178||e.kind===177}function ede(e){return Ac(e)&&!!(e.flags&64)}function oR(e){return Hm(e)&&!!(e.flags&64)}function AN(e){return xd(e)&&!!(e.flags&64)}function uy(e){const n=e.kind;return!!(e.flags&64)&&(n===211||n===212||n===213||n===235)}function s9(e){return uy(e)&&!E3(e)&&!!e.questionDotToken}function BU(e){return s9(e.parent)&&e.parent.expression===e}function jz(e){return!uy(e.parent)||s9(e.parent)||e!==e.parent.expression}function R8(e){return e.kind===226&&e.operatorToken.kind===61}function ky(e){return uE(e)&&xn(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function h2(e){return iv(e,8)}function zU(e){return E3(e)&&!!(e.flags&64)}function M8(e){return e.kind===252||e.kind===251}function Qre(e){return e.kind===280||e.kind===279}function CN(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function pA(e){return CN(e)||e.kind===307||e.kind===311}function Vz(e){return e.kind===355||e.kind===348}function VX(e){return GU(e.kind)}function GU(e){return e>=166}function tde(e){return e>=0&&e<=165}function a7(e){return tde(e.kind)}function BM(e){return ef(e,"pos")&&ef(e,"end")}function UX(e){return 9<=e&&e<=15}function aR(e){return UX(e.kind)}function Zre(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function VC(e){return 15<=e&&e<=18}function L8(e){return VC(e.kind)}function c9(e){const n=e.kind;return n===17||n===18}function fP(e){return qE(e)||my(e)}function HX(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function zM(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function O8(e){return HX(e)||zM(e)}function JX(e){return e.kind===11||VC(e.kind)}function l9(e){return Sd(e)||xn(e)}function $g(e){var n;return xn(e)&&((n=e.emitNode)==null?void 0:n.autoGenerate)!==void 0}function s7(e){var n;return Lu(e)&&((n=e.emitNode)==null?void 0:n.autoGenerate)!==void 0}function sR(e){const n=e.emitNode.autoGenerate.flags;return!!(n&32)&&!!(n&16)&&!!(n&8)}function IT(e){return(nu(e)||Mv(e))&&Lu(e.name)}function u9(e){return Ac(e)&&Lu(e.name)}function Om(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function cR(e){return!!(F7(e)&31)}function jU(e){return cR(e)||e===126||e===164||e===129}function Mf(e){return Om(e.kind)}function kT(e){const n=e.kind;return n===166||n===80}function qg(e){const n=e.kind;return n===80||n===81||n===11||n===9||n===167}function lR(e){const n=e.kind;return n===80||n===206||n===207}function F_(e){return!!e&&S_(e.kind)}function bd(e){return!!e&&(S_(e.kind)||Ep(e))}function Vd(e){return e&&f9(e.kind)}function fy(e){return e.kind===112||e.kind===97}function f9(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function S_(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return f9(e)}}function _9(e){return Nu(e)||kh(e)||Ou(e)&&F_(e.parent)}function J_(e){const n=e.kind;return n===176||n===172||n===174||n===177||n===178||n===181||n===175||n===240}function Fl(e){return e&&(e.kind===263||e.kind===231)}function GM(e){return e&&(e.kind===177||e.kind===178)}function xb(e){return nu(e)&&e_(e)}function nde(e){return Cs(e)&&eJ(e)?(!mR(e)||!bP(e.expression))&&!U8(e,!0):e.parent&&Fl(e.parent)&&nu(e)&&!e_(e)}function Mv(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Jl(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Am(e){return Mf(e)||Jh(e)}function rb(e){const n=e.kind;return n===180||n===179||n===171||n===173||n===181||n===177||n===178}function c7(e){return rb(e)||J_(e)}function DN(e){const n=e.kind;return n===303||n===304||n===305||n===174||n===177||n===178}function pc(e){return Xie(e.kind)}function l7(e){switch(e.kind){case 184:case 185:return!0}return!1}function $_(e){if(e){const n=e.kind;return n===207||n===206}return!1}function KD(e){const n=e.kind;return n===209||n===210}function Uu(e){const n=e.kind;return n===208||n===232}function $X(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function ld(e){return Kc(e)||Os(e)||d9(e)||p9(e)}function u7(e){return qX(e)||rde(e)}function qX(e){switch(e.kind){case 206:case 210:return!0}return!1}function d9(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function rde(e){switch(e.kind){case 207:case 209:return!0}return!1}function p9(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Zv(e,!0)}function ide(e){const n=e.kind;return n===211||n===166||n===205}function KX(e){const n=e.kind;return n===211||n===166}function eie(e){return uR(e)||EP(e)}function uR(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function sk(e){return e.kind===213||e.kind===214}function Uz(e){const n=e.kind;return n===228||n===15}function ib(e){return IN(h2(e).kind)}function IN(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function m9(e){return FE(h2(e).kind)}function FE(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return IN(e)}}function JTe(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ode(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return aR(e)}}function kr(e){return WVe(h2(e).kind)}function WVe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return FE(e)}}function f7(e){const n=e.kind;return n===216||n===234}function Nr(e){return rD(e)||Roe(e)}function LL(e,n){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return n&&LL(e.statement,n)}return!1}function _7(e){return py(e)||ry(e)}function WMe(e){return gt(e,_7)}function kN(e){return!eH(e)&&!py(e)&&!ul(e,32)&&!dh(e)}function XX(e){return eH(e)||py(e)||ul(e,32)}function Hz(e){return e.kind===249||e.kind===250}function VU(e){return Ou(e)||kr(e)}function UU(e){return Ou(e)}function DS(e){return Kp(e)||kr(e)}function tie(e){const n=e.kind;return n===268||n===267||n===80}function $Te(e){const n=e.kind;return n===268||n===267}function mA(e){const n=e.kind;return n===80||n===267}function ade(e){const n=e.kind;return n===275||n===274}function nie(e){return e.kind===267||e.kind===266}function ck(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 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 XD(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 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 sde(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function YD(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function lk(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function PT(e){return e.kind===168?e.parent&&e.parent.kind!==352||Cs(e):sde(e.kind)}function cde(e){return YD(e.kind)}function HU(e){return lk(e.kind)}function dl(e){const n=e.kind;return lk(n)||YD(n)||BVe(e)}function BVe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!hP(e)}function YX(e){const n=e.kind;return lk(n)||YD(n)||n===241}function uf(e){const n=e.kind;return n===283||n===166||n===80}function QX(e){const n=e.kind;return n===110||n===80||n===211||n===295}function ZX(e){const n=e.kind;return n===284||n===294||n===285||n===12||n===288}function rie(e){const n=e.kind;return n===291||n===293}function JU(e){const n=e.kind;return n===11||n===294}function m1(e){const n=e.kind;return n===286||n===285}function $U(e){const n=e.kind;return n===296||n===297}function Jz(e){return e.kind>=316&&e.kind<=357}function Y1(e){return e.kind===327||e.kind===326||e.kind===328||F8(e)||d7(e)||oF(e)||b6(e)}function d7(e){return e.kind>=334&&e.kind<=357}function UC(e){return e.kind===178}function PN(e){return e.kind===177}function NT(e){if(!T2(e))return!1;const{jsDoc:n}=e;return!!n&&n.length>0}function _P(e){return!!e.type}function J2(e){return!!e.initializer}function g1(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function eY(e){return e.kind===291||e.kind===293||DN(e)}function NN(e){return e.kind===183||e.kind===233}function p7(e){let n=dP;for(const i of e){if(!i.length)continue;let c=0;for(;ci.kind===n)}function zd(e){const n=new Map;if(e)for(const i of e)n.set(i.escapedName,i);return n}function Vm(e){return(e.flags&33554432)!==0}function zVe(){var e="";const n=i=>e+=i;return{getText:()=>e,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(i,c)=>n(i),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&cP(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ku,decreaseIndent:ku,clear:()=>e=""}}function Td(e,n){return e.configFilePath!==n.configFilePath||uk(e,n)}function uk(e,n){return g9(e,n,s$)}function zMe(e,n){return g9(e,n,jpe)}function g9(e,n,i){return e!==n&&i.some(c=>!xY(jH(e,c),jH(n,c)))}function qTe(e,n){for(;;){const i=n(e);if(i==="quit")return;if(i!==void 0)return i;if(Nu(e))return;e=e.parent}}function Jb(e,n){const i=e.entries();for(const[c,u]of i){const d=n(u,c);if(d)return d}}function gA(e,n){const i=e.keys();for(const c of i){const u=n(c);if(u)return u}}function oie(e,n){e.forEach((i,c)=>{n.set(c,i)})}function wT(e){const n=tJ.getText();try{return e(tJ),tJ.getText()}finally{tJ.clear(),tJ.writeKeyword(n)}}function FL(e){return e.end-e.pos}function tY(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular}function qU(e,n){return e===n||e.resolvedModule===n.resolvedModule||!!e.resolvedModule&&!!n.resolvedModule&&e.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===n.resolvedModule.extension&&e.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===n.resolvedModule.originalPath&&XU(e.resolvedModule.packageId,n.resolvedModule.packageId)&&e.node10Result===n.node10Result}function KU(e,n,i,c,u){var d;const h=(d=n.getResolvedModule(e,i,c))==null?void 0:d.node10Result,S=h?Es(void 0,N.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,h,h.includes(IP+"@types/")?`@types/${tj(u)}`:u):n.typesPackageExists(u)?Es(void 0,N.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,u,tj(u)):n.packageBundlesTypes(u)?Es(void 0,N.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,u,i):Es(void 0,N.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,tj(u));return S&&(S.repopulateInfo=()=>({moduleReference:i,mode:c,packageName:u===i?void 0:u})),S}function XU(e,n){return e===n||!!e&&!!n&&e.name===n.name&&e.subModuleName===n.subModuleName&&e.version===n.version}function aie({name:e,subModuleName:n}){return n?`${e}/${n}`:e}function jM(e){return`${aie(e)}@${e.version}`}function GMe(e,n){return e===n||e.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function sie(e,n,i,c,u,d){re.assert(e.length===i.length);for(let h=0;h=0),eR(n)[e]}function QU(e){const n=ts(e),i=xm(n,e.pos);return`${n.fileName}(${i.line+1},${i.character+1})`}function cie(e,n){re.assert(e>=0);const i=eR(n),c=e,u=n.text;if(c+1===i.length)return u.length-1;{const d=i[c];let h=i[c+1]-1;for(re.assert(Sb(u.charCodeAt(h)));d<=h&&Sb(u.charCodeAt(h));)h--;return h}}function ns(e,n,i){return!(i&&i(n))&&!e.identifiers.has(n)}function ny(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function y2(e){return!ny(e)}function XTe(e,n){return Np(e)?n===e.expression:Ep(e)?n===e.modifiers:em(e)?n===e.initializer:nu(e)?n===e.questionToken&&xb(e):tl(e)?n===e.modifiers||n===e.questionToken||n===e.exclamationToken||mP(e.modifiers,n,Am):XE(e)?n===e.equalsToken||n===e.modifiers||n===e.questionToken||n===e.exclamationToken||mP(e.modifiers,n,Am):tm(e)?n===e.exclamationToken:Lh(e)?n===e.typeParameters||n===e.type||mP(e.typeParameters,n,Np):lE(e)?n===e.typeParameters||mP(e.typeParameters,n,Np):Xb(e)?n===e.typeParameters||n===e.type||mP(e.typeParameters,n,Np):lC(e)?n===e.modifiers||mP(e.modifiers,n,Am):!1}function mP(e,n,i){return!e||ls(n)||!i(n)?!1:ni(e,n)}function GVe(e,n,i){if(n===void 0||n.length===0)return e;let c=0;for(;c[`${xm(e,h.range.end).line}`,h])),c=new Map;return{getUnusedExpectations:u,markUsed:d};function u(){return oc(i.entries()).filter(([h,S])=>S.type===0&&!c.get(h)).map(([h,S])=>S)}function d(h){return i.has(`${h}`)?(c.set(`${h}`,!0),!0):!1}}function v2(e,n,i){return ny(e)?e.pos:Jz(e)||e.kind===12?Ff((n||ts(e)).text,e.pos,!1,!0):i&&NT(e)?v2(e.jsDoc[0],n):e.kind===358&&e._children.length>0?v2(e._children[0],n,i):Ff((n||ts(e)).text,e.pos,!1,!1,S7(e))}function fie(e,n){const i=!ny(e)&&DA(e)?ra(e.modifiers,Jh):void 0;return i?Ff((n||ts(e)).text,i.end):v2(e,n)}function m7(e,n,i=!1){return h9(e.text,n,i)}function qz(e){return!!Ua(e,SW)}function nY(e){return!!(ry(e)&&e.exportClause&&G0(e.exportClause)&&e.exportClause.name.escapedText==="default")}function h9(e,n,i=!1){if(ny(n))return"";let c=e.substring(i?n.pos:Ff(e,n.pos),n.end);return qz(n)&&(c=c.split(/\r\n|\n|\r/).map(u=>u.replace(/^\s*\*/,"").trimStart()).join(` +`)),c}function Lv(e,n=!1){return m7(ts(e),e,n)}function Kz(e){return e.pos}function y9(e,n){return ZS(e,n,Kz,pf)}function wd(e){const n=e.emitNode;return n&&n.flags||0}function HC(e){const n=e.emitNode;return n&&n.internalFlags||0}function _ie(e,n,i){if(n&&die(e,i))return m7(n,e);switch(e.kind){case 11:{const c=i&2?M7:i&1||wd(e)&16777216?Q8:SH;return e.singleQuote?"'"+c(e.text,39)+"'":'"'+c(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const c=i&1||wd(e)&16777216?Q8:SH,u=e.rawText??QMe(c(e.text,96));switch(e.kind){case 15:return"`"+u+"`";case 16:return"`"+u+"${";case 17:return"}"+u+"${";case 18:return"}"+u+"`"}break}case 9:case 10:return e.text;case 14:return i&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return re.fail(`Literal kind '${e.kind}' not accounted for.`)}function die(e,n){if(Hd(e)||!e.parent||n&4&&e.isUnterminated)return!1;if(S1(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(n&8)}return!OY(e)}function Yv(e){return As(e)?'"'+SH(e)+'"':""+e}function UMe(e){return Jg(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function v9(e){return(rR(e)&7)!==0||Tp(e)}function Tp(e){const n=vA(e);return n.kind===260&&n.parent.kind===299}function dh(e){return dy(e)&&(e.name.kind===11||JC(e))}function rY(e){return dy(e)&&e.name.kind===11}function dde(e){return dy(e)&&Sd(e.name)}function HMe(e){return dy(e)||xn(e)}function ZU(e){return jVe(e.valueDeclaration)}function jVe(e){return!!e&&e.kind===267&&!e.body}function pde(e){return e.kind===312||e.kind===267||bd(e)}function JC(e){return!!(e.flags&2048)}function Ov(e){return dh(e)&&iY(e)}function iY(e){switch(e.parent.kind){case 312:return Bv(e.parent);case 268:return dh(e.parent.parent)&&Nu(e.parent.parent.parent)&&!Bv(e.parent.parent.parent)}return!1}function pie(e){var n;return(n=e.declarations)==null?void 0:n.find(i=>!Ov(i)&&!(dy(i)&&JC(i)))}function VVe(e){return e===1||e===100||e===199}function VM(e,n){return Bv(e)||VVe(Zp(n))&&!!e.commonJsModuleIndicator}function QTe(e,n){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:hv(n,"alwaysStrict")||Goe(e.statements)?!0:Bv(e)||F0(n)?Zp(n)>=5?!0:!n.noImplicitUseStrict:!1}function mde(e){return!!(e.flags&33554432)||ul(e,128)}function $C(e,n){switch(e.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!bd(n)}return!1}function WL(e){switch(re.type(e),e.kind){case 345:case 353:case 330:return!0;default:return mie(e)}}function mie(e){switch(re.type(e),e.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 W8(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function JMe(e){return W8(e)||E7(e)}function B8(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function gde(e){return eH(e)||dy(e)||E1(e)||Py(e)}function eH(e){return W8(e)||ry(e)}function gie(e){return Ua(e.parent,n=>!!(R2e(n)&1))}function QD(e){return Ua(e.parent,n=>$C(n,n.parent))}function hde(e,n){let i=QD(e);for(;i;)n(i),i=QD(i)}function hm(e){return!e||FL(e)===0?"(Missing)":Lv(e)}function ZTe(e){return e.declaration?hm(e.declaration.parameters[0].name):void 0}function Xz(e){return e.kind===167&&!Ox(e.expression)}function tH(e){var n;switch(e.kind){case 80:case 81:return(n=e.emitNode)!=null&&n.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return ey(e.text);case 167:return Ox(e.expression)?ey(e.expression.text):void 0;case 295:return bR(e);default:return re.assertNever(e)}}function z8(e){return re.checkDefined(tH(e))}function iE(e){switch(e.kind){case 110:return"this";case 81:case 80:return FL(e)===0?Kr(e):Lv(e);case 166:return iE(e.left)+"."+iE(e.right);case 211:return xn(e.name)||Lu(e.name)?iE(e.expression)+"."+iE(e.name):re.assertNever(e.name);case 318:return iE(e.left)+iE(e.right);case 295:return iE(e.namespace)+":"+iE(e.name);default:return re.assertNever(e)}}function Bs(e,n,...i){const c=ts(e);return Ud(c,e,n,...i)}function Yz(e,n,i,...c){const u=Ff(e.text,n.pos);return Pp(e,u,n.end-u,i,...c)}function Ud(e,n,i,...c){const u=BL(e,n);return Pp(e,u.start,u.length,i,...c)}function wN(e,n,i,c){const u=BL(e,n);return g7(e,u.start,u.length,i,c)}function b9(e,n,i,c){const u=Ff(e.text,n.pos);return g7(e,u,n.end-u,i,c)}function nH(e,n,i){re.assertGreaterThanOrEqual(n,0),re.assertGreaterThanOrEqual(i,0),re.assertLessThanOrEqual(n,e.length),re.assertLessThanOrEqual(n+i,e.length)}function g7(e,n,i,c,u){return nH(e.text,n,i),{file:e,start:n,length:i,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:u}}function oE(e,n,i){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function kc(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Qz(e,n,i){return{file:e,start:n.pos,length:n.end-n.pos,code:i.code,category:i.category,messageText:i.message}}function M0(e,n){const i=CS(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);i.scan();const c=i.getTokenStart();return Yy(c,i.getTokenEnd())}function RN(e,n){const i=CS(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);return i.scan(),i.getToken()}function yde(e,n){const i=Ff(e.text,n.pos);if(n.body&&n.body.kind===241){const{line:c}=xm(e,n.body.pos),{line:u}=xm(e,n.body.end);if(c0?n.statements[0].pos:n.end;return Yy(d,h)}case 253:case 229:{const d=Ff(e.text,n.pos);return M0(e,d)}case 238:{const d=Ff(e.text,n.expression.end);return M0(e,d)}case 357:{const d=Ff(e.text,n.tagName.pos);return M0(e,d)}}if(i===void 0)return M0(e,n.pos);re.assert(!uC(i));const c=ny(i),u=c||SR(n)?i.pos:Ff(e.text,i.pos);return c?(re.assert(u===i.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),re.assert(u===i.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(re.assert(u>=i.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),re.assert(u<=i.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Yy(u,i.end)}function aE(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Rx(e){return e.scriptKind===6}function G8(e){return!!(Eb(e)&4096)}function oY(e){return!!(Eb(e)&8&&!DT(e,e.parent))}function nC(e){return(rR(e)&7)===6}function aY(e){return(rR(e)&7)===4}function rH(e){return(rR(e)&7)===2}function UM(e){return(rR(e)&7)===1}function h1(e){return e.kind===213&&e.expression.kind===108}function Py(e){return e.kind===213&&e.expression.kind===102}function gP(e){return x3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function MN(e){return E1(e)&&S3(e.argument)&&Sd(e.argument.literal)}function $2(e){return e.kind===244&&e.expression.kind===11}function T9(e){return!!(wd(e)&2097152)}function h7(e){return T9(e)&&mg(e)}function eSe(e){return xn(e.name)&&!e.initializer}function y7(e){return T9(e)&&Xg(e)&&jr(e.declarationList.declarations,eSe)}function WE(e,n){return e.kind!==12?JD(n.text,e.pos):void 0}function S9(e,n){const i=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Hi(SN(n,e.pos),JD(n,e.pos)):JD(n,e.pos);return gi(i,c=>n.charCodeAt(c.pos+1)===42&&n.charCodeAt(c.pos+2)===42&&n.charCodeAt(c.pos+3)!==47)}function BE(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return Qb(e.parent)&&!Gie(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),re.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:n}=e;if(n.kind===186)return!1;if(n.kind===205)return!n.isTypeOf;if(182<=n.kind&&n.kind<=205)return!0;switch(n.kind){case 233:return Qb(n.parent)&&!Gie(n);case 168:return e===n.constraint;case 352:return e===n.constraint;case 172:case 171:case 169:case 260:return e===n.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===n.type;case 179:case 180:case 181:return e===n.type;case 216:return e===n.type;case 213:case 214:case 215:return ni(n.typeArguments,e)}}}return!1}function qC(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1}function dR(e,n){return i(e);function i(c){switch(c.kind){case 253:return n(c);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 s_(c,i)}}}function hie(e,n){return i(e);function i(c){switch(c.kind){case 229:n(c);const u=c.expression;u&&i(u);return;case 266:case 264:case 267:case 265:return;default:if(F_(c)){if(c.name&&c.name.kind===167){i(c.name.expression);return}}else BE(c)||s_(c,i)}}}function tSe(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Vb(e.typeArguments):void 0}function yie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function E9(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function vde(e){return E9(e)||GM(e)}function rC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function $Me(e){return Cs(e)?el(e.parent)&&Ds(e.parent.parent)&&jy(e.parent.parent)===2||HM(e.parent):!1}function HM(e){return Cs(e)?Ds(e)&&jy(e)===1:!1}function nSe(e){return(Kc(e)?rH(e)&&xn(e.name)&&rC(e):nu(e)?Ny(e)&&ev(e):em(e)&&Ny(e))||HM(e)}function bde(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Tde(e,n){for(;;){if(n&&n(e),e.statement.kind!==256)return e.statement;e=e.statement}}function hP(e){return e&&e.kind===241&&F_(e.parent)}function iC(e){return e&&e.kind===174&&e.parent.kind===210}function x9(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function rSe(e){return e&&e.kind===1}function Sde(e){return e&&e.kind===0}function Zz(e,n,i,c){return Ot(e==null?void 0:e.properties,u=>{if(!tl(u))return;const d=tH(u.name);return n===d||c&&c===d?i(u):void 0})}function iSe(e,n,i){return Zz(e,n,c=>Ed(c.initializer)?lr(c.initializer.elements,u=>Sd(u)&&u.text===i):void 0)}function eG(e){if(e&&e.statements.length){const n=e.statements[0].expression;return to(n,el)}}function JM(e,n,i){return q2(e,n,c=>Ed(c.initializer)?lr(c.initializer.elements,u=>Sd(u)&&u.text===i):void 0)}function q2(e,n,i){return Zz(eG(e),n,i)}function zE(e){return Ua(e.parent,F_)}function oSe(e){return Ua(e.parent,Vd)}function $b(e){return Ua(e.parent,Fl)}function tG(e){return Ua(e.parent,n=>Fl(n)||F_(n)?"quit":Ep(n))}function vie(e){return Ua(e.parent,bd)}function A9(e){const n=Ua(e.parent,i=>Fl(i)?"quit":Jh(i));return n&&Fl(n.parent)?$b(n.parent):$b(n??e)}function RT(e,n,i){for(re.assert(e.kind!==312);;){if(e=e.parent,!e)return re.fail();switch(e.kind){case 167:if(i&&Fl(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&J_(e.parent.parent)?e=e.parent.parent:J_(e.parent)&&(e=e.parent);break;case 219:if(!n)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 e}}}function sY(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function GE(e){xn(e)&&(Ih(e.parent)||mg(e.parent))&&e.parent.name===e&&(e=e.parent);const n=RT(e,!0,!1);return Nu(n)}function aSe(e){const n=RT(e,!1,!1);if(n)switch(n.kind){case 176:case 262:case 218:return n}}function h0(e,n){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!n)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&J_(e.parent.parent)?e=e.parent.parent:J_(e.parent)&&(e=e.parent);break}}}function v7(e){if(e.kind===218||e.kind===219){let n=e,i=e.parent;for(;i.kind===217;)n=i,i=i.parent;if(i.kind===213&&i.expression===n)return i}}function Ede(e){return e.kind===108||MT(e)}function MT(e){const n=e.kind;return(n===211||n===212)&&e.expression.kind===108}function Q1(e){const n=e.kind;return(n===211||n===212)&&e.expression.kind===110}function bie(e){var n;return!!e&&Kc(e)&&((n=e.initializer)==null?void 0:n.kind)===110}function Tie(e){return!!e&&(XE(e)||tl(e))&&Ds(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function cY(e){switch(e.kind){case 183:return e.typeName;case 233:return Tg(e.expression)?e.expression:void 0;case 80:case 166:return e}}function nG(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function zL(e,n,i,c){if(e&&mp(n)&&Lu(n.name))return!1;switch(n.kind){case 263:return!0;case 231:return!e;case 172:return i!==void 0&&(e?Ih(i):Fl(i)&&!Ab(n)&&!il(n));case 177:case 178:case 174:return n.body!==void 0&&i!==void 0&&(e?Ih(i):Fl(i));case 169:return e?i!==void 0&&i.body!==void 0&&(i.kind===176||i.kind===174||i.kind===178)&&BN(i)!==n&&c!==void 0&&c.kind===263:!1}return!1}function lY(e,n,i,c){return X2(n)&&zL(e,n,i,c)}function Z1(e,n,i,c){return lY(e,n,i,c)||b7(e,n,i)}function b7(e,n,i){switch(n.kind){case 263:return gt(n.members,c=>Z1(e,c,n,i));case 231:return!e&>(n.members,c=>Z1(e,c,n,i));case 174:case 178:case 176:return gt(n.parameters,c=>lY(e,c,n,i));default:return!1}}function yP(e,n){if(lY(e,n))return!0;const i=sC(n);return!!i&&b7(e,i,n)}function xde(e,n,i){let c;if(GM(n)){const{firstAccessor:u,secondAccessor:d,setAccessor:h}=oI(i.members,n),S=X2(u)?u:d&&X2(d)?d:void 0;if(!S||n!==S)return!1;c=h==null?void 0:h.parameters}else tm(n)&&(c=n.parameters);if(lY(e,n,i))return!0;if(c){for(const u of c)if(!iI(u)&&lY(e,u,n,i))return!0}return!1}function iH(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return iH(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function T7(e){const{parent:n}=e;return n.kind===286||n.kind===285||n.kind===287?n.tagName===e:!1}function ZD(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Qb(e.parent)&&!xW(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||F8(e.parent)||FJ(e.parent)||QL(e.parent)||T7(e);case 318:for(;QL(e.parent);)e=e.parent;return e.parent.kind===186||F8(e.parent)||FJ(e.parent)||QL(e.parent)||T7(e);case 81:return Ds(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||F8(e.parent)||FJ(e.parent)||QL(e.parent)||T7(e))return!0;case 9:case 10:case 11:case 15:case 110:return C9(e);default:return!1}}function C9(e){const{parent:n}=e;switch(n.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return n.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return n.expression===e;case 248:const i=n;return i.initializer===e&&i.initializer.kind!==261||i.condition===e||i.incrementor===e;case 249:case 250:const c=n;return c.initializer===e&&c.initializer.kind!==261||c.expression===e;case 216:case 234:return e===n.expression;case 239:return e===n.expression;case 167:return e===n.expression;case 170:case 294:case 293:case 305:return!0;case 233:return n.expression===e&&!BE(n);case 304:return n.objectAssignmentInitializer===e;case 238:return e===n.expression;default:return ZD(n)}}function rG(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function oH(e){return G0(e)&&!!e.parent.moduleSpecifier}function Mx(e){return e.kind===271&&e.moduleReference.kind===283}function iG(e){return re.assert(Mx(e)),e.moduleReference.expression}function Sie(e){return E7(e)&&i3(e.initializer).arguments[0]}function $M(e){return e.kind===271&&e.moduleReference.kind!==283}function Gy(e){return Cs(e)}function Ade(e){return!Cs(e)}function Cs(e){return!!e&&!!(e.flags&524288)}function Eie(e){return!!e&&!!(e.flags&134217728)}function qM(e){return!Rx(e)}function S7(e){return!!e&&!!(e.flags&16777216)}function uY(e){return uE(e)&&xn(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function y1(e,n){if(e.kind!==213)return!1;const{expression:i,arguments:c}=e;if(i.kind!==80||i.escapedText!=="require"||c.length!==1)return!1;const u=c[0];return!n||Cm(u)}function v1(e){return Cde(e,!1)}function E7(e){return Cde(e,!0)}function Rs(e){return sa(e)&&E7(e.parent.parent)}function Cde(e,n){return Kc(e)&&!!e.initializer&&y1(n?i3(e.initializer):e.initializer,!0)}function xie(e){return Xg(e)&&e.declarationList.declarations.length>0&&jr(e.declarationList.declarations,n=>v1(n))}function D9(e){return e===39||e===34}function aH(e,n){return m7(n,e).charCodeAt(0)===34}function eT(e){return Ds(e)||Kf(e)||xn(e)||xd(e)}function sH(e){return Cs(e)&&e.initializer&&Ds(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Tg(e.name)&&j8(e.name,e.initializer.left)?e.initializer.right:e.initializer}function pR(e){const n=sH(e);return n&&KM(n,bP(e.name))}function UVe(e,n){return Ot(e.properties,i=>tl(i)&&xn(i.name)&&i.name.escapedText==="value"&&i.initializer&&KM(i.initializer,n))}function I9(e){if(e&&e.parent&&Ds(e.parent)&&e.parent.operatorToken.kind===64){const n=bP(e.parent.left);return KM(e.parent.right,n)||Dde(e.parent.left,e.parent.right,n)}if(e&&xd(e)&&A7(e)){const n=UVe(e.arguments[2],e.arguments[1].text==="prototype");if(n)return n}}function KM(e,n){if(xd(e)){const i=rg(e.expression);return i.kind===218||i.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||el(e)&&(e.properties.length===0||n))return e}function Dde(e,n,i){const c=Ds(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)&&KM(n.right,i);if(c&&j8(e,n.left))return c}function Aie(e){const n=Kc(e.parent)?e.parent.name:Ds(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return n&&KM(e.right,bP(n))&&Tg(n)&&j8(n,e.left)}function oG(e){if(Ds(e.parent)){const n=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Ds(e.parent.parent)?e.parent.parent:e.parent;if(n.operatorToken.kind===64&&xn(n.left))return n.left}else if(Kc(e.parent))return e.parent.name}function j8(e,n){return Qv(e)&&Qv(n)?K2(e)===K2(n):xN(e)&&fY(n)&&(n.expression.kind===110||xn(n.expression)&&(n.expression.escapedText==="window"||n.expression.escapedText==="self"||n.expression.escapedText==="global"))?j8(e,KC(n)):fY(e)&&fY(n)?eI(e)===eI(n)&&j8(e.expression,n.expression):!1}function k9(e){for(;Zv(e,!0);)e=e.right;return e}function P9(e){return xn(e)&&e.escapedText==="exports"}function x7(e){return xn(e)&&e.escapedText==="module"}function jE(e){return(Ac(e)||V8(e))&&x7(e.expression)&&eI(e)==="exports"}function jy(e){const n=Qy(e);return n===5||Cs(e)?n:0}function A7(e){return Nt(e.arguments)===3&&Ac(e.expression)&&xn(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&Ox(e.arguments[1])&&U8(e.arguments[0],!0)}function fY(e){return Ac(e)||V8(e)}function V8(e){return Hm(e)&&Ox(e.argumentExpression)}function mR(e,n){return Ac(e)&&(!n&&e.expression.kind===110||xn(e.name)&&U8(e.expression,!0))||GL(e,n)}function GL(e,n){return V8(e)&&(!n&&e.expression.kind===110||Tg(e.expression)||mR(e.expression,!0))}function U8(e,n){return Tg(e)||mR(e,n)}function KC(e){return Ac(e)?e.name:e.argumentExpression}function Qy(e){if(xd(e)){if(!A7(e))return 0;const n=e.arguments[0];return P9(n)||jE(n)?8:mR(n)&&eI(n)==="prototype"?9:7}return e.operatorToken.kind!==64||!Kf(e.left)||cH(k9(e))?0:U8(e.left.expression,!0)&&eI(e.left)==="prototype"&&el(_Y(e))?6:XM(e.left)}function cH(e){return Z7(e)&&S1(e.expression)&&e.expression.text==="0"}function lH(e){if(Ac(e))return e.name;const n=rg(e.argumentExpression);return S1(n)||Cm(n)?n:e}function eI(e){const n=lH(e);if(n){if(xn(n))return n.escapedText;if(Cm(n)||S1(n))return ey(n.text)}}function XM(e){if(e.expression.kind===110)return 4;if(jE(e))return 2;if(U8(e.expression,!0)){if(bP(e.expression))return 3;let n=e;for(;!xn(n.expression);)n=n.expression;const i=n.expression;if((i.escapedText==="exports"||i.escapedText==="module"&&eI(n)==="exports")&&mR(e))return 1;if(U8(e,!0)||Hm(e)&&L0(e))return 5}return 0}function _Y(e){for(;Ds(e.right);)e=e.right;return e.right}function jL(e){return Ds(e)&&jy(e)===3}function dY(e){return Cs(e)&&e.parent&&e.parent.kind===244&&(!Hm(e)||V8(e))&&!!FM(e.parent)}function Cie(e,n){const{valueDeclaration:i}=e;(!i||!(n.flags&33554432&&!Cs(n)&&!(i.flags&33554432))&&eT(i)&&!eT(n)||i.kind!==n.kind&&HMe(i))&&(e.valueDeclaration=n)}function qMe(e){if(!e||!e.valueDeclaration)return!1;const n=e.valueDeclaration;return n.kind===262||Kc(n)&&n.initializer&&F_(n.initializer)}function C7(e){var n,i;switch(e.kind){case 260:case 208:return(n=Ua(e.initializer,c=>y1(c,!0)))==null?void 0:n.arguments[0];case 272:case 278:return to(e.moduleSpecifier,Cm);case 271:return to((i=to(e.moduleReference,KE))==null?void 0:i.expression,Cm);case 273:case 280:return to(e.parent.moduleSpecifier,Cm);case 274:case 281:return to(e.parent.parent.moduleSpecifier,Cm);case 276:return to(e.parent.parent.parent.moduleSpecifier,Cm);case 205:return MN(e)?e.argument.literal:void 0;default:re.assertNever(e)}}function XC(e){return N9(e)||re.failBadSyntaxKind(e.parent)}function N9(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Py(e.parent)||y1(e.parent,!1)?e.parent:void 0;case 201:return re.assert(Sd(e)),to(e.parent.parent,E1);default:return}}function w9(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return MN(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return re.assertNever(e)}}function H8(e){switch(e.kind){case 272:return e.importClause&&to(e.importClause.namedBindings,mh);case 271:return e;case 278:return e.exportClause&&to(e.exportClause,G0);default:return re.assertNever(e)}}function R9(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function aG(e,n){if(e.name){const i=n(e);if(i)return i}if(e.namedBindings){const i=mh(e.namedBindings)?n(e.namedBindings):Ot(e.namedBindings.elements,n);if(i)return i}}function M9(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function VL(e){const n=Ak(e)?pp(e.parameters):void 0,i=to(n&&n.name,xn);return!!i&&i.escapedText==="new"}function b2(e){return e.kind===353||e.kind===345||e.kind===347}function L9(e){return b2(e)||z0(e)}function pY(e){return kb(e)&&Ds(e.expression)&&e.expression.operatorToken.kind===64?k9(e.expression):void 0}function uH(e){return kb(e)&&Ds(e.expression)&&jy(e.expression)!==0&&Ds(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function D7(e){switch(e.kind){case 243:const n=I7(e);return n&&n.initializer;case 172:return e.initializer;case 303:return e.initializer}}function I7(e){return Xg(e)?pp(e.declarationList.declarations):void 0}function sG(e){return dy(e)&&e.body&&e.body.kind===267?e.body:void 0}function J8(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function T2(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 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 fH(e,n){let i;E9(e)&&J2(e)&&NT(e.initializer)&&(i=Oi(i,HVe(e,yl(e.initializer.jsDoc))));let c=e;for(;c&&c.parent;){if(NT(c)&&(i=Oi(i,HVe(e,yl(c.jsDoc)))),c.kind===169){i=Oi(i,(n?Y_e:o_)(c));break}if(c.kind===168){i=Oi(i,(n?MTe:N8)(c));break}c=Die(c)}return i||Yn}function HVe(e,n){if(uC(n)){const i=gi(n.tags,c=>KMe(e,c));return n.tags===i?[n]:i}return KMe(e,n)?[n]:void 0}function KMe(e,n){return!(FG(n)||ZL(n))||!n.parent||!uC(n.parent)||!fE(n.parent.parent)||n.parent.parent===e}function Die(e){const n=e.parent;if(n.kind===303||n.kind===277||n.kind===172||n.kind===244&&e.kind===211||n.kind===253||sG(n)||Zv(e))return n;if(n.parent&&(I7(n.parent)===e||Zv(n)))return n.parent;if(n.parent&&n.parent.parent&&(I7(n.parent.parent)||D7(n.parent.parent)===e||uH(n.parent.parent)))return n.parent.parent}function $8(e){if(e.symbol)return e.symbol;if(!xn(e.name))return;const n=e.name.escapedText,i=LN(e);if(!i)return;const c=lr(i.parameters,u=>u.name.kind===80&&u.name.escapedText===n);return c&&c.symbol}function Iie(e){if(uC(e.parent)&&e.parent.tags){const n=lr(e.parent.tags,b2);if(n)return n}return LN(e)}function LN(e){const n=YM(e);if(n)return em(n)&&n.type&&F_(n.type)?n.type:F_(n)?n:void 0}function YM(e){const n=k7(e);if(n)return uH(n)||pY(n)||D7(n)||I7(n)||sG(n)||n}function k7(e){const n=_H(e);if(!n)return;const i=n.parent;if(i&&i.jsDoc&&n===Yf(i.jsDoc))return i}function _H(e){return Ua(e.parent,uC)}function sSe(e){const n=e.name.escapedText,{typeParameters:i}=e.parent.parent.parent;return i&&lr(i,c=>c.name.escapedText===n)}function cSe(e){return!!e.typeArguments}function mY(e){let n=e.parent;for(;;){switch(n.kind){case 226:const i=n,c=i.operatorToken.kind;return pk(c)&&i.left===e?i:void 0;case 224:case 225:const u=n,d=u.operator;return d===46||d===47?u:void 0;case 249:case 250:const h=n;return h.initializer===e?h:void 0;case 217:case 209:case 230:case 235:e=n;break;case 305:e=n.parent;break;case 304:if(n.name!==e)return;e=n.parent;break;case 303:if(n.name===e)return;e=n.parent;break;default:return}n=e.parent}}function q8(e){const n=mY(e);if(!n)return 0;switch(n.kind){case 226:const i=n.operatorToken.kind;return i===64||CH(i)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function VE(e){return!!mY(e)}function dH(e){const n=rg(e.right);return n.kind===226&&jEe(n.operatorToken.kind)}function P7(e){const n=mY(e);return!!n&&Zv(n,!0)&&dH(n)}function pH(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function lSe(e){return Jm(e)||$m(e)||Mv(e)||mg(e)||Lh(e)}function JVe(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function QM(e){return JVe(e,196)}function IS(e){return JVe(e,217)}function uSe(e){let n;for(;e&&e.kind===196;)n=e,e=e.parent;return[n,e]}function Ide(e){for(;XN(e);)e=e.type;return e}function rg(e,n){return iv(e,n?17:1)}function mH(e){return e.kind!==211&&e.kind!==212?!1:(e=IS(e.parent),e&&e.kind===220)}function Lx(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1}function ON(e){return!Nu(e)&&!$_(e)&&PT(e.parent)&&e.parent.name===e}function cG(e){const n=e.parent;switch(e.kind){case 11:case 15:case 9:if(Qf(n))return n.parent;case 80:if(PT(n))return n.name===e?n:void 0;if(Pu(n)){const i=n.parent;return A2(i)&&i.name===n?i:void 0}else{const i=n.parent;return Ds(i)&&jy(i)!==0&&(i.left.symbol||i.symbol)&&i_(i)===e?i:void 0}case 81:return PT(n)&&n.name===e?n:void 0;default:return}}function _g(e){return Ox(e)&&e.parent.kind===167&&PT(e.parent.parent)}function kde(e){const n=e.parent;switch(n.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return n.name===e;case 166:return n.right===e;case 208:case 276:return n.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function N7(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&K8(e)?!0:Cs(e)&&(Ds(e)&&jy(e)===2&&K8(e)||Ac(e)&&Ds(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&O9(e.parent.right))}function vP(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return vP(e)}}function O9(e){return Tg(e)||v0(e)}function K8(e){const n=Pde(e);return O9(n)}function Pde(e){return py(e)?e.expression:e.right}function XMe(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function YC(e){const n=gR(e);if(n&&Cs(e)){const i=LTe(e);if(i)return i.class}return n}function gR(e){const n=hA(e.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function ZM(e){if(Cs(e))return OTe(e).map(n=>n.class);{const n=hA(e.heritageClauses,119);return n==null?void 0:n.types}}function lG(e){return xp(e)?gH(e)||Yn:Fl(e)&&Hi(X5(YC(e)),ZM(e))||Yn}function gH(e){const n=hA(e.heritageClauses,96);return n?n.types:void 0}function hA(e,n){if(e){for(const i of e)if(i.token===n)return i}}function oC(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}}function qb(e){return 83<=e&&e<=165}function uG(e){return 19<=e&&e<=79}function F9(e){return qb(e)||uG(e)}function fG(e){return 128<=e&&e<=165}function e6(e){return qb(e)&&!fG(e)}function sE(e){return 119<=e&&e<=127}function w7(e){const n=D8(e);return n!==void 0&&e6(n)}function Nde(e){const n=D8(e);return n!==void 0&&qb(n)}function hH(e){const n=uP(e);return!!n&&!fG(n)}function W9(e){return 2<=e&&e<=7}function ob(e){if(!e)return 4;let n=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(n|=1);case 219:ul(e,1024)&&(n|=2);break}return e.body||(n|=4),n}function t6(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ul(e,1024)}return!1}function Ox(e){return Cm(e)||S1(e)}function yH(e){return vk(e)&&(e.operator===40||e.operator===41)&&S1(e.operand)}function tI(e){const n=i_(e);return!!n&&L0(n)}function L0(e){if(!(e.kind===167||e.kind===212))return!1;const n=Hm(e)?rg(e.argumentExpression):e.expression;return!Ox(n)&&!yH(n)}function FN(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return ey(e.text);case 167:const n=e.expression;return Ox(n)?ey(n.text):yH(n)?n.operator===41?Cf(n.operator)+n.operand.text:n.operand.text:void 0;case 295:return bR(e);default:return re.assertNever(e)}}function Qv(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function K2(e){return xN(e)?Kr(e):Fm(e)?g3(e):e.text}function nI(e){return xN(e)?e.escapedText:Fm(e)?bR(e):ey(e.text)}function wde(e){return`__@${$d(e)}@${e.escapedName}`}function WN(e,n){return`__#${$d(e)}@${n}`}function yA(e){return qf(e.escapedName,"__@")}function aC(e){return qf(e.escapedName,"__#")}function gY(e){return e.kind===80&&e.escapedText==="Symbol"}function YMe(e){return xn(e)?Kr(e)==="__proto__":Sd(e)&&e.text==="__proto__"}function R7(e,n){switch(e=iv(e),e.kind){case 231:if(Y2e(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof n=="function"?n(e):!0}function vH(e){switch(e.kind){case 303:return!YMe(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return xn(e.name)&&!!e.initializer;case 169:return xn(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return xn(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return xn(e.left)}break;case 277:return!0}return!1}function UE(e,n){if(!vH(e))return!1;switch(e.kind){case 303:return R7(e.initializer,n);case 304:return R7(e.objectAssignmentInitializer,n);case 260:case 169:case 208:case 172:return R7(e.initializer,n);case 226:return R7(e.right,n);case 277:return R7(e.expression,n)}}function fSe(e){return e.escapedText==="push"||e.escapedText==="unshift"}function X8(e){return vA(e).kind===169}function vA(e){for(;e.kind===208;)e=e.parent.parent;return e}function kie(e){const n=e.kind;return n===176||n===218||n===262||n===219||n===174||n===177||n===178||n===267||n===312}function Hd(e){return ab(e.pos)||ab(e.end)}function _Se(e){return __(e,Nu)||e}function Y8(e){const n=rh(e),i=e.kind===214&&e.arguments!==void 0;return rI(e.kind,n,i)}function rI(e,n,i){switch(e){case 214:return i?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(n){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 _G(e){const n=rh(e),i=e.kind===214&&e.arguments!==void 0;return Pie(e.kind,n,i)}function rh(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function Pie(e,n,i){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(n){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 bH(n)}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 i?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 bH(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function B9(e){return gi(e,n=>{switch(n.kind){case 294:return!!n.expression;case 12:return!n.containsOnlyTriviaWhiteSpaces;default:return!0}})}function UL(){let e=[];const n=[],i=new Map;let c=!1;return{add:d,lookup:u,getGlobalDiagnostics:h,getDiagnostics:S};function u(E){let P;if(E.file?P=i.get(E.file.fileName):P=e,!P)return;const k=ZS(P,E,Of,FH);if(k>=0)return P[k]}function d(E){let P;E.file?(P=i.get(E.file.fileName),P||(P=[],i.set(E.file.fileName,P),d0(n,E.file.fileName,Fp))):(c&&(c=!1,e=e.slice()),P=e),d0(P,E,FH)}function h(){return c=!0,e}function S(E){if(E)return i.get(E)||[];const P=Lm(n,k=>i.get(k));return e.length&&P.unshift(...e),P}}function QMe(e){return e.replace(d6e,"\\${")}function hY(e){return!!((e.templateFlags||0)&2048)}function TH(e){return e&&!!(K7(e)?hY(e):hY(e.head)||gt(e.templateSpans,n=>hY(n.literal)))}function yY(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function vY(e,n,i){if(e.charCodeAt(0)===0){const c=i.charCodeAt(n+e.length);return c>=48&&c<=57?"\\x00":"\\0"}return g6e.get(e)||yY(e.charCodeAt(0))}function Q8(e,n){const i=n===96?m6e:n===39?aEe:p6e;return e.replace(i,vY)}function SH(e,n){return e=Q8(e,n),sEe.test(e)?e.replace(sEe,i=>yY(i.charCodeAt(0))):e}function $Ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Lat(e){return e.charCodeAt(0)===0?"�":h6e.get(e)||$Ve(e.charCodeAt(0))}function M7(e,n){const i=n===39?V7:nJ;return e.replace(i,Lat)}function S2(e){const n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&Oat(e.charCodeAt(0))?e.substring(1,n-1):e}function Oat(e){return e===39||e===34||e===96}function EH(e){const n=e.charCodeAt(0);return n>=97&&n<=122||e.includes("-")}function bY(e){const n=rJ[1];for(let i=rJ.length;i<=e;i++)rJ.push(rJ[i-1]+n);return rJ[e]}function HE(){return rJ[1].length}function Nie(e){var n,i,c,u,d,h=!1;function S(ae){const ve=RM(ae);ve.length>1?(u=u+ve.length-1,d=n.length-ae.length+yl(ve),c=d-n.length===0):c=!1}function E(ae){ae&&ae.length&&(c&&(ae=bY(i)+ae,c=!1),n+=ae,S(ae))}function P(ae){ae&&(h=!1),E(ae)}function k(ae){ae&&(h=!0),E(ae)}function F(){n="",i=0,c=!0,u=0,d=0,h=!1}function $(ae){ae!==void 0&&(n+=ae,S(ae),h=!1)}function J(ae){ae&&ae.length&&P(ae)}function X(ae){(!c||ae)&&(n+=e,u++,d=n.length,c=!0,h=!1)}function ie(){return c?n.length:n.length+e.length}return F(),{write:P,rawWrite:$,writeLiteral:J,writeLine:X,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},getIndent:()=>i,getTextPos:()=>n.length,getLine:()=>u,getColumn:()=>c?i*HE():n.length-d,getText:()=>n,isAtStartOfLine:()=>c,hasTrailingComment:()=>h,hasTrailingWhitespace:()=>!!n.length&&cP(n.charCodeAt(n.length-1)),clear:F,writeKeyword:P,writeOperator:P,writeParameter:P,writeProperty:P,writePunctuation:P,writeSpace:P,writeStringLiteral:P,writeSymbol:(ae,ve)=>P(ae),writeTrailingSemicolon:P,writeComment:k,getTextPosWithWriteLine:ie}}function z9(e){let n=!1;function i(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return{...e,writeTrailingSemicolon(){n=!0},writeLiteral(c){i(),e.writeLiteral(c)},writeStringLiteral(c){i(),e.writeStringLiteral(c)},writeSymbol(c,u){i(),e.writeSymbol(c,u)},writePunctuation(c){i(),e.writePunctuation(c)},writeKeyword(c){i(),e.writeKeyword(c)},writeOperator(c){i(),e.writeOperator(c)},writeParameter(c){i(),e.writeParameter(c)},writeSpace(c){i(),e.writeSpace(c)},writeProperty(c){i(),e.writeProperty(c)},writeComment(c){i(),e.writeComment(c)},writeLine(){i(),e.writeLine()},increaseIndent(){i(),e.increaseIndent()},decreaseIndent(){i(),e.decreaseIndent()}}}function dG(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function QC(e){return H1(dG(e))}function pG(e,n,i){return n.moduleName||xH(e,n.fileName,i&&i.fileName)}function wie(e,n){return e.getCanonicalFileName(vf(n,e.getCurrentDirectory()))}function Rde(e,n,i){const c=n.getExternalModuleFileFromDeclaration(i);if(!c||c.isDeclarationFile)return;const u=w9(i);if(!(u&&Cm(u)&&!V2(u.text)&&!wie(e,c.path).includes(wie(e,Su(e.getCommonSourceDirectory())))))return pG(e,c)}function xH(e,n,i){const c=E=>e.getCanonicalFileName(E),u=gm(i?ws(i):e.getCommonSourceDirectory(),e.getCurrentDirectory(),c),d=vf(n,e.getCurrentDirectory()),h=GC(u,d,u,c,!1),S=wg(h);return i?Fd(S):S}function hR(e,n,i){const c=n.getCompilerOptions();let u;return c.outDir?u=wg(Fie(e,n,c.outDir)):u=wg(e),u+i}function Rie(e,n){return Mie(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),i=>n.getCanonicalFileName(i))}function Mie(e,n,i,c,u){const d=n.declarationDir||n.outDir,h=d?Kg(e,d,i,c,u):e,S=TY(h);return wg(h)+S}function TY(e){return pv(e,[".mjs",".mts"])?".d.mts":pv(e,[".cjs",".cts"])?".d.cts":pv(e,[".json"])?".d.json.ts":".d.ts"}function Mde(e){return pv(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:pv(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:pv(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ng(e){return e.outFile||e.out}function Lie(e,n){var i;if(e.paths)return e.baseUrl??re.checkDefined(e.pathsBasePath||((i=n.getCurrentDirectory)==null?void 0:i.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Oie(e,n,i){const c=e.getCompilerOptions();if(Ng(c)){const u=Zp(c),d=c.emitDeclarationOnly||u===2||u===4;return gi(e.getSourceFiles(),h=>(d||!Bv(h))&&HL(h,e,i))}else{const u=n===void 0?e.getSourceFiles():[n];return gi(u,d=>HL(d,e,i))}}function HL(e,n,i){const c=n.getCompilerOptions();if(c.noEmitForJsFiles&&Gy(e)||e.isDeclarationFile||n.isSourceFileFromExternalLibrary(e))return!1;if(i)return!0;if(n.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Rx(e))return!0;if(n.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ng(c))return!0;if(!c.outDir)return!1;if(c.rootDir||c.composite&&c.configFilePath){const u=vf(zW(c,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),d=Kg(e.fileName,c.outDir,n.getCurrentDirectory(),u,n.getCanonicalFileName);if(Rv(e.fileName,d,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0)return!1}return!0}function Fie(e,n,i){return Kg(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c))}function Kg(e,n,i,c,u){let d=vf(e,i);return d=u(d).indexOf(u(c))===0?d.substring(c.length):d,vl(n,d)}function G9(e,n,i,c,u,d,h){e.writeFile(i,c,u,S=>{n.add(W_(N.Could_not_write_file_0_Colon_1,i,S))},d,h)}function dSe(e,n,i){if(e.length>Pg(e)&&!i(e)){const c=ws(e);dSe(c,n,i),n(e)}}function L7(e,n,i,c,u,d){try{c(e,n,i)}catch{dSe(ws(hf(e)),u,d),c(e,n,i)}}function j9(e,n){const i=eR(e);return TN(i,n)}function Z8(e,n){return TN(e,n)}function sC(e){return lr(e.members,n=>Lh(n)&&y2(n.body))}function AH(e){if(e&&e.parameters.length>0){const n=e.parameters.length===2&&iI(e.parameters[0]);return e.parameters[n?1:0]}}function Lde(e){const n=AH(e);return n&&n.type}function BN(e){if(e.parameters.length&&!b6(e)){const n=e.parameters[0];if(iI(n))return n}}function iI(e){return E2(e.name)}function E2(e){return!!e&&e.kind===80&&JL(e)}function yR(e){return!!Ua(e,n=>n.kind===186?!0:n.kind===80||n.kind===166?!1:"quit")}function V9(e){if(!E2(e))return!1;for(;Pu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function JL(e){return e.escapedText==="this"}function oI(e,n){let i,c,u,d;return tI(n)?(i=n,n.kind===177?u=n:n.kind===178?d=n:re.fail("Accessor has wrong kind")):Ot(e,h=>{if(GM(h)&&pd(h)===pd(n)){const S=FN(h.name),E=FN(n.name);S===E&&(i?c||(c=h):i=h,h.kind===177&&!u&&(u=h),h.kind===178&&!d&&(d=h))}}),{firstAccessor:i,secondAccessor:c,getAccessor:u,setAccessor:d}}function Zy(e){if(!Cs(e)&&mg(e))return;const n=e.type;return n||!Cs(e)?n:Vz(e)?e.typeExpression&&e.typeExpression.type:iR(e)}function O7(e){return e.type}function kS(e){return b6(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Cs(e)?GX(e):void 0)}function SY(e){return ea(WM(e),n=>mG(n)?n.typeParameters:void 0)}function mG(e){return CA(e)&&!(e.parent.kind===327&&(e.parent.tags.some(b2)||e.parent.tags.some(aF)))}function Kb(e){const n=AH(e);return n&&Zy(n)}function pSe(e,n,i,c){bA(e,n,i.pos,c)}function bA(e,n,i,c){c&&c.length&&i!==c[0].pos&&Z8(e,i)!==Z8(e,c[0].pos)&&n.writeLine()}function Wie(e,n,i,c){i!==c&&Z8(e,i)!==Z8(e,c)&&n.writeLine()}function ZMe(e,n,i,c,u,d,h,S){if(c&&c.length>0){u&&i.writeSpace(" ");let E=!1;for(const P of c)E&&(i.writeSpace(" "),E=!1),S(e,n,i,P.pos,P.end,h),P.hasTrailingNewLine?i.writeLine():E=!0;E&&d&&i.writeSpace(" ")}}function mSe(e,n,i,c,u,d,h){let S,E;if(h?u.pos===0&&(S=gi(JD(e,u.pos),P)):S=JD(e,u.pos),S){const k=[];let F;for(const $ of S){if(F){const J=Z8(n,F.end);if(Z8(n,$.pos)>=J+2)break}k.push($),F=$}if(k.length){const $=Z8(n,yl(k).end);Z8(n,Ff(e,u.pos))>=$+2&&(pSe(n,i,u,S),ZMe(e,n,i,k,!1,!0,d,c),E={nodePos:u.pos,detachedCommentEndPos:yl(k).end})}}return E;function P(k){return uie(e,k.pos)}}function gG(e,n,i,c,u,d){if(e.charCodeAt(c+1)===42){const h=Nd(n,c),S=n.length;let E;for(let P=c,k=h.line;P0){let X=J%HE();const ie=bY((J-X)/HE());for(i.rawWrite(ie);X;)i.rawWrite(" "),X--}else i.rawWrite("")}qVe(e,u,i,d,P,F),P=F}}else i.writeComment(e.substring(c,u))}function qVe(e,n,i,c,u,d){const h=Math.min(n,d-1),S=e.substring(u,h).trim();S?(i.writeComment(S),h!==n&&i.writeLine()):i.rawWrite(c)}function e6e(e,n,i){let c=0;for(;n=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Fde(e)|536870912),i||n&&Cs(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=t6e(e)|268435456),tS(e.modifierFlagsCache)):n6e(e.modifierFlagsCache))}function Cb(e){return _k(e,!0)}function Fx(e){return _k(e,!0,!0)}function ZC(e){return _k(e,!1)}function t6e(e){let n=0;return e.parent&&!Os(e)&&(Cs(e)&&(FTe(e)&&(n|=8388608),WTe(e)&&(n|=16777216),LMe(e)&&(n|=33554432),FMe(e)&&(n|=67108864),zTe(e)&&(n|=134217728)),jTe(e)&&(n|=65536)),n}function n6e(e){return e&65535}function tS(e){return e&131071|(e&260046848)>>>23}function KVe(e){return tS(t6e(e))}function n6(e){return Fde(e)|KVe(e)}function Fde(e){let n=DA(e)?aI(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(n|=32),n}function aI(e){let n=0;if(e)for(const i of e)n|=F7(i.kind);return n}function F7(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function dk(e){return e===57||e===56}function U9(e){return dk(e)||e===54}function CH(e){return e===76||e===77||e===78}function Wde(e){return Ds(e)&&CH(e.operatorToken.kind)}function W7(e){return dk(e)||e===61}function DH(e){return Ds(e)&&W7(e.operatorToken.kind)}function pk(e){return e>=64&&e<=79}function IH(e){const n=zN(e);return n&&!n.isImplements?n.class:void 0}function zN(e){if(cC(e)){if(Qb(e.parent)&&Fl(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(xW(e.parent)){const n=YM(e.parent);if(n&&Fl(n))return{class:n,isImplements:!1}}}}function Zv(e,n){return Ds(e)&&(n?e.operatorToken.kind===64:pk(e.operatorToken.kind))&&ib(e.left)}function hSe(e){return Zv(e.parent)&&e.parent.left===e}function wy(e){if(Zv(e,!0)){const n=e.left.kind;return n===210||n===209}return!1}function Gie(e){return IH(e)!==void 0}function Tg(e){return e.kind===80||NS(e)}function PS(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function Uh(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&Uh(e.expression)||e.kind===217&&Uh(e.expression)}function NS(e){return Ac(e)&&xn(e.name)&&Tg(e.expression)}function B7(e){if(Ac(e)){const n=B7(e.expression);if(n!==void 0)return n+"."+iE(e.name)}else if(Hm(e)){const n=B7(e.expression);if(n!==void 0&&qg(e.argumentExpression))return n+"."+FN(e.argumentExpression)}else{if(xn(e))return Ic(e.escapedText);if(Fm(e))return g3(e)}}function bP(e){return mR(e)&&eI(e)==="prototype"}function z7(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function r6(e){return!!e.parent&&(Ac(e.parent)&&e.parent.name===e||Hm(e.parent)&&e.parent.argumentExpression===e)}function kH(e){return Pu(e.parent)&&e.parent.right===e||Ac(e.parent)&&e.parent.name===e||QL(e.parent)&&e.parent.right===e}function jie(e){return Ds(e)&&e.operatorToken.kind===104}function ySe(e){return jie(e.parent)&&e===e.parent.right}function Vie(e){return e.kind===210&&e.properties.length===0}function vSe(e){return e.kind===209&&e.elements.length===0}function i6(e){if(!(!Fat(e)||!e.declarations)){for(const n of e.declarations)if(n.localSymbol)return n.localSymbol}}function Fat(e){return e&&Nt(e.declarations)>0&&ul(e.declarations[0],2048)}function PH(e){return lr(Aoe,n=>mm(e,n))}function Wat(e){const n=[],i=e.length;for(let c=0;c>6|192),n.push(u&63|128)):u<65536?(n.push(u>>12|224),n.push(u>>6&63|128),n.push(u&63|128)):u<131072?(n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(u&63|128)):re.assert(!1,"Unexpected code point")}return n}function bSe(e){let n="";const i=Wat(e);let c=0;const u=i.length;let d,h,S,E;for(;c>2,h=(i[c]&3)<<4|i[c+1]>>4,S=(i[c+1]&15)<<2|i[c+2]>>6,E=i[c+2]&63,c+1>=u?S=E=64:c+2>=u&&(E=64),n+=nv.charAt(d)+nv.charAt(h)+nv.charAt(S)+nv.charAt(E),c+=3;return n}function Bat(e){let n="",i=0;const c=e.length;for(;i>4&3,k=(h&15)<<4|S>>2&15,F=(S&3)<<6|E&63;k===0&&S!==0?c.push(P):F===0&&E!==0?c.push(P,k):c.push(P,k,F),u+=4}return Bat(c)}function Uie(e,n){const i=As(n)?n:n.readFile(e);if(!i)return;const c=Npe(e,i);return c.error?void 0:c.config}function e3(e,n){return Uie(e,n)||{}}function O0(e,n){return!n.directoryExists||n.directoryExists(e)}function JE(e){switch(e.newLine){case 0:return cEe;case 1:case void 0:return Toe}}function tv(e,n=e){return re.assert(n>=e||n===-1),{pos:e,end:n}}function NH(e,n){return tv(e.pos,n)}function TA(e,n){return tv(n,e.end)}function $E(e){const n=DA(e)?ra(e.modifiers,Jh):void 0;return n&&!ab(n.end)?TA(e,n.end):e}function Db(e){if(nu(e)||tm(e))return TA(e,e.name.pos);const n=DA(e)?Yf(e.modifiers):void 0;return n&&!ab(n.end)?TA(e,n.end):$E(e)}function XVe(e){return e.pos===e.end}function Hie(e,n){return tv(e,e+Cf(n).length)}function mk(e,n){return xSe(e,e,n)}function wH(e,n,i){return mv(t3(e,i,!1),t3(n,i,!1),i)}function ESe(e,n,i){return mv(e.end,n.end,i)}function xSe(e,n,i){return mv(t3(e,i,!1),n.end,i)}function H9(e,n,i){return mv(e.end,t3(n,i,!1),i)}function Jie(e,n,i,c){const u=t3(n,i,c);return i7(i,e.end,u)}function YVe(e,n,i){return i7(i,e.end,n.end)}function ASe(e,n){return!mv(e.pos,e.end,n)}function mv(e,n,i){return i7(i,e,n)===0}function t3(e,n,i){return ab(e.pos)?-1:Ff(n.text,e.pos,!1,i)}function CSe(e,n,i,c){const u=Ff(i.text,e,!1,c),d=zat(u,n,i);return i7(i,d??n,u)}function DSe(e,n,i,c){const u=Ff(i.text,e,!1,c);return i7(i,e,Math.min(n,u))}function zat(e,n=0,i){for(;e-- >n;)if(!cP(i.text.charCodeAt(e)))return e}function $ie(e){const n=__(e);if(n)switch(n.parent.kind){case 266:case 267:return n===n.parent.name}return!1}function n3(e){return gi(e.declarations,J9)}function J9(e){return Kc(e)&&e.initializer!==void 0}function QVe(e){return e.watch&&ef(e,"watch")}function Ib(e){e.close()}function I_(e){return e.flags&33554432?e.links.checkFlags:0}function Vy(e,n=!1){if(e.valueDeclaration){const i=n&&e.declarations&&lr(e.declarations,Xb)||e.flags&32768&&lr(e.declarations,lE)||e.valueDeclaration,c=Eb(i);return e.parent&&e.parent.flags&32?c:c&-8}if(I_(e)&6){const i=e.links.checkFlags,c=i&1024?2:i&256?1:4,u=i&2048?256:0;return c|u}return e.flags&4194304?257:0}function dg(e,n){return e.flags&2097152?n.getAliasedSymbol(e):e}function r3(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function RH(e){return $L(e)===1}function o6(e){return $L(e)!==0}function $L(e){const{parent:n}=e;switch(n==null?void 0:n.kind){case 217:return $L(n);case 225:case 224:const{operator:i}=n;return i===46||i===47?2:0;case 226:const{left:c,operatorToken:u}=n;return c===e&&pk(u.kind)?u.kind===64?1:2:0;case 211:return n.name!==e?0:$L(n);case 303:{const d=$L(n.parent);return e===n.name?Gat(d):d}case 304:return e===n.objectAssignmentInitializer?0:$L(n.parent);case 209:return $L(n);default:return 0}}function Gat(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return re.assertNever(e)}}function qie(e,n){if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(typeof e[i]=="object"){if(!qie(e[i],n[i]))return!1}else if(typeof e[i]!="function"&&e[i]!==n[i])return!1;return!0}function Mh(e,n){e.forEach(n),e.clear()}function wS(e,n,i){const{onDeleteValue:c,onExistingValue:u}=i;e.forEach((d,h)=>{const S=n.get(h);S===void 0?(e.delete(h),c(d,h)):u&&u(d,S,h)})}function a6(e,n,i){wS(e,n,i);const{createNewValue:c}=i;n.forEach((u,d)=>{e.has(d)||e.set(d,c(d,u))})}function ISe(e){if(e.flags&32){const n=RS(e);return!!n&&ul(n,64)}return!1}function RS(e){var n;return(n=e.declarations)==null?void 0:n.find(Fl)}function ji(e){return e.flags&138117121?e.objectFlags:0}function ZVe(e,n){return!!jC(e,i=>n(i)?!0:void 0)}function MH(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lC(e.declarations[0])}function kSe({moduleSpecifier:e}){return Sd(e)?e.text:Lv(e)}function Kie(e){let n;return s_(e,i=>{y2(i)&&(n=i)},i=>{for(let c=i.length-1;c>=0;c--)if(y2(i[c])){n=i[c];break}}),n}function y0(e,n,i=!0){return e.has(n)?!1:(e.set(n,i),!0)}function GN(e){return Fl(e)||xp(e)||rS(e)}function Xie(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function Kf(e){return e.kind===211||e.kind===212}function PSe(e){return e.kind===211?e.name:(re.assert(e.kind===212),e.argumentExpression)}function NSe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function LH(e){return e.kind===275||e.kind===279}function i3(e){for(;Kf(e);)e=e.expression;return e}function r6e(e,n){if(Kf(e.parent)&&r6(e))return i(e.parent);function i(c){if(c.kind===211){const u=n(c.name);if(u!==void 0)return u}else if(c.kind===212)if(xn(c.argumentExpression)||Cm(c.argumentExpression)){const u=n(c.argumentExpression);if(u!==void 0)return u}else return;if(Kf(c.expression))return i(c.expression);if(xn(c.expression))return n(c.expression)}}function qL(e,n){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(n)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jat(e,n){this.flags=e,this.escapedName=n,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 Vat(e,n){this.flags=n,(re.isDebugging||ps)&&(this.checker=e)}function Uat(e,n){this.flags=n,re.isDebugging&&(this.checker=e)}function Bde(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Hat(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Jat(e,n,i){this.pos=n,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function $at(e,n,i){this.fileName=e,this.text=n,this.skipTrivia=i||(c=>c)}function wSe(e){lEe.push(e),e(W0)}function RSe(e){Object.assign(W0,e),Ot(lEe,n=>n(W0))}function LT(e,n){return e.replace(/{(\d+)}/g,(i,c)=>""+re.checkDefined(n[+c]))}function MSe(e){DY=e}function LSe(e){!DY&&e&&(DY=e())}function fs(e){return DY&&DY[e.key]||e.message}function s6(e,n,i,c,u,...d){i+c>n.length&&(c=n.length-i),nH(n,i,c);let h=fs(u);return gt(d)&&(h=LT(h,d)),{file:void 0,start:i,length:c,messageText:h,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,fileName:e}}function qat(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function i6e(e,n){const i=n.fileName||"",c=n.text.length;re.assertEqual(e.fileName,i),re.assertLessThanOrEqual(e.start,c),re.assertLessThanOrEqual(e.start+e.length,c);const u={file:n,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){u.relatedInformation=[];for(const d of e.relatedInformation)qat(d)&&d.fileName===i?(re.assertLessThanOrEqual(d.start,c),re.assertLessThanOrEqual(d.start+d.length,c),u.relatedInformation.push(i6e(d,n))):u.relatedInformation.push(d)}return u}function jN(e,n){const i=[];for(const c of e)i.push(i6e(c,n));return i}function Pp(e,n,i,c,...u){nH(e.text,n,i);let d=fs(c);return gt(u)&&(d=LT(d,u)),{file:e,start:n,length:i,messageText:d,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}function Yie(e,...n){let i=fs(e);return gt(n)&&(i=LT(i,n)),i}function W_(e,...n){let i=fs(e);return gt(n)&&(i=LT(i,n)),{file:void 0,start:void 0,length:void 0,messageText:i,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function OH(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}}function Es(e,n,...i){let c=fs(n);return gt(i)&&(c=LT(c,i)),{messageText:c,category:n.category,code:n.code,next:e===void 0||Array.isArray(e)?e:[e]}}function OSe(e,n){let i=e;for(;i.next;)i=i.next[0];i.next=[n]}function o6e(e){return e.file?e.file.path:void 0}function o3(e,n){return FH(e,n)||Kat(e,n)||0}function FH(e,n){return Fp(o6e(e),o6e(n))||pf(e.start,n.start)||pf(e.length,n.length)||pf(e.code,n.code)||a6e(e.messageText,n.messageText)||0}function Kat(e,n){return!e.relatedInformation&&!n.relatedInformation?0:e.relatedInformation&&n.relatedInformation?pf(e.relatedInformation.length,n.relatedInformation.length)||Ot(e.relatedInformation,(i,c)=>{const u=n.relatedInformation[c];return o3(i,u)})||0:e.relatedInformation?-1:1}function a6e(e,n){if(typeof e=="string"&&typeof n=="string")return Fp(e,n);if(typeof e=="string")return-1;if(typeof n=="string")return 1;let i=Fp(e.messageText,n.messageText);if(i)return i;if(!e.next&&!n.next)return 0;if(!e.next)return-1;if(!n.next)return 1;const c=Math.min(e.next.length,n.next.length);for(let u=0;un.next.length?1:0}function $9(e){return e===4||e===2||e===1||e===6?1:0}function s6e(e){if(e.transformFlags&2)return m1(e)||Ek(e)?e:s_(e,s6e)}function Xat(e){return e.isDeclarationFile?void 0:s6e(e)}function Yat(e){return(e.impliedNodeFormat===99||pv(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function q9(e){switch(FSe(e)){case 3:return u=>{u.externalModuleIndicator=Uoe(u)||!u.isDeclarationFile||void 0};case 1:return u=>{u.externalModuleIndicator=Uoe(u)};case 2:const n=[Uoe];(e.jsx===4||e.jsx===5)&&n.push(Xat),n.push(Yat);const i=bb(...n);return u=>void(u.externalModuleIndicator=i(u))}}function iu(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function Zp(e){return typeof e.module=="number"?e.module:iu(e)>=2?5:1}function WH(e){return e>=5&&e<=99}function Jd(e){let n=e.moduleResolution;if(n===void 0)switch(Zp(e)){case 1:n=2;break;case 100:n=3;break;case 199:n=99;break;default:n=1;break}return n}function FSe(e){return e.moduleDetection||(Zp(e)===100||Zp(e)===199?3:2)}function BH(e){switch(Zp(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function F0(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function Qie(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function WSe(e){return e.allowUnreachableCode===!1}function BSe(e){return e.allowUnusedLabels===!1}function zH(e){return!!(gv(e)&&e.declarationMap)}function b1(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Zp(e)){case 100:case 199:return!0}}function VN(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:b1(e)||Zp(e)===4||Jd(e)===100}function UN(e){return e>=3&&e<=99||e===100}function GH(e){return!!e.noDtsResolution||Jd(e)!==100}function Zie(e){const n=Jd(e);if(!UN(n))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function eUe(e){const n=Jd(e);if(!UN(n))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function sI(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Jd(e)===100}function gv(e){return!!(e.declaration||e.composite)}function gk(e){return!!(e.preserveConstEnums||F0(e))}function K9(e){return!!(e.incremental||e.composite)}function hv(e,n){return e[n]===void 0?!!e.strict:!!e[n]}function TP(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function X9(e){return e.useDefineForClassFields===void 0?iu(e)>=9:e.useDefineForClassFields}function zSe(e){return e.useDefineForClassFields!==!1&&iu(e)>=9}function GSe(e,n){return g9(n,e,nae)}function jSe(e,n){return g9(n,e,rae)}function VSe(e,n){return g9(n,e,iae)}function jH(e,n){return n.strictFlag?hv(e,n.name):n.allowJsFlag?TP(e):e[n.name]}function VH(e){const n=e.jsx;return n===2||n===4||n===5}function UH(e,n){const i=n==null?void 0:n.pragmas.get("jsximportsource"),c=ls(i)?i[i.length-1]:i;return e.jsx===4||e.jsx===5||e.jsxImportSource||c?(c==null?void 0:c.arguments.factory)||e.jsxImportSource||"react":void 0}function HH(e,n){return e?`${e}/${n.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function eoe(e){let n=!1;for(let i=0;iu,getSymlinkedDirectories:()=>i,getSymlinkedDirectoriesByRealpath:()=>c,setSymlinkedFile:(S,E)=>(u||(u=new Map)).set(S,E),setSymlinkedDirectory:(S,E)=>{let P=gm(S,e,n);_3(P)||(P=Su(P),E!==!1&&!(i!=null&&i.has(P))&&(c||(c=zg())).add(E.realPath,S),(i||(i=new Map)).set(P,E))},setSymlinksFromResolutions(S,E,P){re.assert(!d),d=!0,S(k=>h(this,k.resolvedModule)),E(k=>h(this,k.resolvedTypeReferenceDirective)),P.forEach(k=>h(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>d};function h(S,E){if(!E||!E.originalPath||!E.resolvedFileName)return;const{resolvedFileName:P,originalPath:k}=E;S.setSymlinkedFile(gm(k,e,n),P);const[F,$]=Qat(P,k,e,n)||Yn;F&&$&&S.setSymlinkedDirectory($,{real:Su(F),realPath:Su(gm(F,e,n))})}}function Qat(e,n,i,c){const u=qc(vf(e,i)),d=qc(vf(n,i));let h=!1;for(;u.length>=2&&d.length>=2&&!c6e(u[u.length-2],c)&&!c6e(d[d.length-2],c)&&c(u[u.length-1])===c(d[d.length-1]);)u.pop(),d.pop(),h=!0;return h?[Iy(u),Iy(d)]:void 0}function c6e(e,n){return e!==void 0&&(n(e)==="node_modules"||qf(e,"@"))}function Zat(e){return wU(e.charCodeAt(0))?e.slice(1):void 0}function toe(e,n,i){const c=Sz(e,n,i);return c===void 0?void 0:Zat(c)}function tUe(e){return e.replace(IY,est)}function est(e){return"\\"+e}function a3(e,n,i){const c=JH(e,n,i);return!c||!c.length?void 0:`^(${c.map(h=>`(${h})`).join("|")})${i==="exclude"?"($|/)":"$"}`}function JH(e,n,i){if(!(e===void 0||e.length===0))return ea(e,c=>c&&l6e(c,n,i,fEe[i]))}function noe(e){return!/[.*?]/.test(e)}function roe(e,n,i){const c=e&&l6e(e,n,i,fEe[i]);return c&&`^(${c})${i==="exclude"?"($|/)":"$"}`}function l6e(e,n,i,{singleAsteriskRegexFragment:c,doubleAsteriskRegexFragment:u,replaceWildcardCharacter:d}){let h="",S=!1;const E=g0(e,n),P=yl(E);if(i!=="exclude"&&P==="**")return;E[0]=bN(E[0]),noe(P)&&E.push("**","*");let k=0;for(let F of E){if(F==="**")h+=u;else if(i==="directories"&&(h+="(",k++),S&&(h+=qp),i!=="exclude"){let $="";F.charCodeAt(0)===42?($+="([^./]"+c+")?",F=F.substr(1)):F.charCodeAt(0)===63&&($+="[^./]",F=F.substr(1)),$+=F.replace(IY,d),$!==F&&(h+=Eoe),h+=$}else h+=F.replace(IY,d);S=!0}for(;k>0;)h+=")?",k--;return h}function Gde(e,n){return e==="*"?n:e==="?"?"[^/]":"\\"+e}function Y9(e,n,i,c,u){e=hf(e),u=hf(u);const d=vl(u,e);return{includeFilePatterns:Vn(JH(i,d,"files"),h=>`^${h}$`),includeFilePattern:a3(i,d,"files"),includeDirectoryPattern:a3(i,d,"directories"),excludePattern:a3(n,d,"exclude"),basePaths:tst(e,i,c)}}function Y2(e,n){return new RegExp(e,n?"":"i")}function ioe(e,n,i,c,u,d,h,S,E){e=hf(e),d=hf(d);const P=Y9(e,i,c,u,d),k=P.includeFilePatterns&&P.includeFilePatterns.map(ve=>Y2(ve,u)),F=P.includeDirectoryPattern&&Y2(P.includeDirectoryPattern,u),$=P.excludePattern&&Y2(P.excludePattern,u),J=k?k.map(()=>[]):[[]],X=new Map,ie=H1(u);for(const ve of P.basePaths)ae(ve,vl(d,ve),h);return Gf(J);function ae(ve,we,Fe){const et=ie(E(we));if(X.has(et))return;X.set(et,!0);const{files:Pe,directories:dt}=S(ve);for(const Ie of fN(Pe,Fp)){const ct=vl(ve,Ie),Ct=vl(we,Ie);if(!(n&&!pv(ct,n))&&!($&&$.test(Ct)))if(!k)J[0].push(ct);else{const Lt=Ho(k,Ze=>Ze.test(Ct));Lt!==-1&&J[Lt].push(ct)}}if(!(Fe!==void 0&&(Fe--,Fe===0)))for(const Ie of fN(dt,Fp)){const ct=vl(ve,Ie),Ct=vl(we,Ie);(!F||F.test(Ct))&&(!$||!$.test(Ct))&&ae(ct,Ct,Fe)}}}function tst(e,n,i){const c=[e];if(n){const u=[];for(const d of n){const h=nE(d)?d:hf(vl(e,d));u.push(nst(h))}u.sort(Xw(!i));for(const d of u)jr(c,h=>!OE(h,d,e,!i))&&c.push(d)}return c}function nst(e){const n=Hg(e,uEe);return n<0?r9(e)?bN(ws(e)):e:e.substring(0,e.lastIndexOf(qp,n))}function $H(e,n){return n||EY(e)||3}function EY(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function s3(e,n){const i=e&&TP(e);if(!n||n.length===0)return i?TG:bG;const c=i?TG:bG,u=Gf(c);return[...c,...Qo(n,h=>h.scriptKind===7||i&&rst(h.scriptKind)&&!u.includes(h.extension)?[h.extension]:void 0)]}function Q9(e,n){return!e||!sI(e)?n:n===TG?Coe:n===bG?iJ:[...n,[".json"]]}function rst(e){return e===1||e===2}function eD(e){return gt(h3,n=>mm(e,n))}function vR(e){return gt(xoe,n=>mm(e,n))}function USe({imports:e},n=bb(eD,vR)){return Yr(e,({text:i})=>V2(i)&&!pv(i,EG)?n(i):void 0)||!1}function ooe(e,n,i,c){if(e==="js"||n===99)return MW(i)&&u()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!MW(i))return USe(c)?2:0;return u();function u(){let d=!1;const h=c.imports.length?c.imports.map(S=>S.text):Gy(c)?ist(c).map(S=>S.arguments[0].text):Yn;for(const S of h)if(V2(S)){if(pv(S,EG))continue;if(vR(S))return 3;eD(S)&&(d=!0)}return d?2:0}}function ist(e){let n=0,i;for(const c of e.statements){if(n>3)break;xie(c)?i=Hi(i,c.declarationList.declarations.map(u=>u.initializer)):kb(c)&&y1(c.expression,!0)?i=ur(i,c.expression):n++}return i||Yn}function HSe(e,n,i){if(!e)return!1;const c=s3(n,i);for(const u of Gf(Q9(n,c)))if(mm(e,u))return!0;return!1}function u6e(e){const n=e.match(/\//g);return n?n.length:0}function Z9(e,n){return pf(u6e(e),u6e(n))}function wg(e){for(const n of Kde){const i=JSe(e,n);if(i!==void 0)return i}return e}function JSe(e,n){return mm(e,n)?eW(e,n):void 0}function eW(e,n){return e.substring(0,e.length-n.length)}function SA(e,n){return Vre(e,n,Kde,!1)}function c6(e){const n=e.indexOf("*");return n===-1?e:e.indexOf("*",n+1)!==-1?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function qH(e){return Qo(ET(e),n=>c6(n))}function ab(e){return!(e>=0)}function KH(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||qf(e,".d.")&&h_(e,".ts")}function G7(e){return KH(e)||e===".json"}function SP(e){const n=OT(e);return n!==void 0?n:re.fail(`File ${e} has unknown extension.`)}function nUe(e){return OT(e)!==void 0}function OT(e){return lr(Kde,n=>mm(e,n))}function tW(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs}function aoe(e,n){const i=[];for(const c of e){if(c===n)return n;As(c)||i.push(c)}return AL(i,c=>c,n)}function soe(e,n){const i=e.indexOf(n);return re.assert(i!==-1),e.slice(i)}function ml(e,...n){return n.length&&(e.relatedInformation||(e.relatedInformation=[]),re.assert(e.relatedInformation!==Yn,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...n)),e}function $Se(e,n){re.assert(e.length!==0);let i=n(e[0]),c=i;for(let u=1;uc&&(c=d)}return{min:i,max:c}}function coe(e){return{pos:v2(e),end:e.end}}function loe(e,n){const i=n.pos-1,c=Math.min(e.text.length,Ff(e.text,n.end)+1);return{pos:i,end:c}}function c3(e,n,i){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||i.isSourceOfProjectReferenceRedirect(e.fileName)}function xY(e,n){return e===n||typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&U5(e,n,xY)}function l3(e){let n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:const P=e.length-1;let k=0;for(;e.charCodeAt(k)===48;)k++;return e.slice(k,P)||"0"}const i=2,c=e.length-1,u=(c-i)*n,d=new Uint16Array((u>>>4)+(u&15?1:0));for(let P=c-1,k=0;P>=i;P--,k+=n){const F=k>>>4,$=e.charCodeAt(P),X=($<=57?$-48:10+$-($<=70?65:97))<<(k&15);d[F]|=X;const ie=X>>>16;ie&&(d[F+1]|=ie)}let h="",S=d.length-1,E=!0;for(;E;){let P=0;E=!1;for(let k=S;k>=0;k--){const F=P<<16|d[k],$=F/10|0;d[k]=$,P=F-$*10,$&&!E&&(S=k,E=!0)}h=P+h}return h}function tD({negative:e,base10Value:n}){return(e&&n!=="0"?"-":"")+n}function qSe(e){if(XH(e,!1))return uoe(e)}function uoe(e){const n=e.startsWith("-"),i=l3(`${n?e.slice(1):e}n`);return{negative:n,base10Value:i}}function XH(e,n){if(e==="")return!1;const i=CS(99,!1);let c=!0;i.setOnError(()=>c=!1),i.setText(e+"n");let u=i.scan();const d=u===41;d&&(u=i.scan());const h=i.getTokenFlags();return c&&u===10&&i.getTokenEnd()===e.length+1&&!(h&512)&&(!n||e===tD({negative:d,base10Value:l3(i.getTokenValue())}))}function EA(e){return!!(e.flags&33554432)||rG(e)||sst(e)||ast(e)||!(ZD(e)||ost(e))}function ost(e){return xn(e)&&XE(e.parent)&&e.parent.name===e}function ast(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ul(e.parent,64))return!0;const n=e.parent.parent.kind;return n===264||n===187}function sst(e){if(e.kind!==80)return!1;const n=Ua(e.parent,i=>{switch(i.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(n==null?void 0:n.token)===119||(n==null?void 0:n.parent.kind)===264}function KSe(e){return uE(e)&&xn(e.typeName)}function XSe(e,n=_1){if(e.length<2)return!0;const i=e[0];for(let c=1,u=e.length;ce.includes(n))}function ZSe(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:i}=e;return i.kind===195?void 0:i.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:c}=e;return S6(c)?c.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:n}=e;if(d7(e))return oF(e.parent)?void 0:e.parent.tags;switch(n.kind){case 187:case 264:return rb(e)?n.members:void 0;case 192:case 193:return n.types;case 189:case 209:case 361:case 275:case 279:return n.elements;case 210:case 292:return n.properties;case 213:case 214:return pc(e)?n.typeArguments:n.expression===e?void 0:n.arguments;case 284:case 288:return ZX(e)?n.children:void 0;case 286:case 285:return pc(e)?n.typeArguments:void 0;case 241:case 296:case 297:case 268:return n.statements;case 269:return n.clauses;case 263:case 231:return J_(e)?n.members:void 0;case 266:return pI(e)?n.members:void 0;case 312:return n.statements}}function YH(e){if(!e.typeParameters){if(gt(e.parameters,n=>!Zy(n)))return!0;if(e.kind!==219){const n=pp(e.parameters);if(!(n&&iI(n)))return!0}}return!1}function d3(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function eEe(e){return e.kind===260&&e.parent.kind===299}function _oe(e){const n=e.valueDeclaration&&vA(e.valueDeclaration);return!!n&&(Os(n)||eEe(n))}function EP(e){return e.kind===218||e.kind===219}function nD(e){return e.replace(/\$/gm,()=>"\\$")}function FT(e){return(+e).toString()===e}function QH(e,n,i,c,u){const d=u&&e==="new";return!d&&H2(e,n)?he.createIdentifier(e):!c&&!d&&FT(e)&&+e>=0?he.createNumericLiteral(+e):he.createStringLiteral(e,!!i)}function p3(e){return!!(e.flags&262144&&e.isThisType)}function AY(e){let n=0,i=0,c=0,u=0,d;(P=>{P[P.BeforeNodeModules=0]="BeforeNodeModules",P[P.NodeModules=1]="NodeModules",P[P.Scope=2]="Scope",P[P.PackageContent=3]="PackageContent"})(d||(d={}));let h=0,S=0,E=0;for(;S>=0;)switch(h=S,S=e.indexOf("/",h+1),E){case 0:e.indexOf(IP,h)===h&&(n=h,i=S,E=1);break;case 1:case 2:E===1&&e.charAt(h+1)==="@"?E=2:(c=S,E=3);break;case 3:e.indexOf(IP,h)===h?E=1:E=3;break}return u=h,E>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:c,fileNameIndex:u}:void 0}function rUe(e){var n;return e.kind===348?(n=e.typeExpression)==null?void 0:n.type:e.type}function f6(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function nW(e){return xP(e)||Xg(e)||mg(e)||Ih(e)||xp(e)||f6(e)||dy(e)&&!Ov(e)&&!JC(e)}function rW(e){if(!Vz(e))return!1;const{isBracketed:n,typeExpression:i}=e;return n||!!i&&i.type.kind===323}function doe(e,n){if(e.length===0)return!1;const i=e.charCodeAt(0);return i===35?e.length>1&&lP(e.charCodeAt(1),n):lP(i,n)}function tEe(e){var n;return((n=npe(e))==null?void 0:n.kind)===0}function iW(e){return Cs(e)&&(e.type&&e.type.kind===323||o_(e).some(({isBracketed:n,typeExpression:i})=>n||!!i&&i.type.kind===323))}function hG(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||iW(e);case 355:case 348:return rW(e);default:return!1}}function nEe(e){const n=e.kind;return(n===211||n===212)&&E3(e.expression)}function poe(e){return Cs(e)&&fE(e)&&NT(e)&&!!Z_e(e)}function moe(e){return re.checkDefined(ZH(e))}function ZH(e){const n=Z_e(e);return n&&n.typeExpression&&n.typeExpression.type}function m3(e){return xn(e)?e.escapedText:bR(e)}function oW(e){return xn(e)?Kr(e):g3(e)}function rEe(e){const n=e.kind;return n===80||n===295}function bR(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function g3(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function goe(e){return xn(e)?Kr(e):g3(e)}function yv(e){return!!(e.flags&8576)}function vv(e){return e.flags&8192?e.escapedName:e.flags&384?ey(""+e.value):re.fail()}function eJ(e){return!!e&&(Ac(e)||Hm(e)||Ds(e))}function _6(e){return e===void 0?!1:!!W3(e.attributes)}var yG,HN,j7,CY,tJ,hoe,jde,yoe,f6e,_6e,voe,iEe,oEe,boe,Vde,Ude,Hde,d6e,p6e,aEe,m6e,g6e,sEe,nJ,V7,h6e,rJ,nv,cEe,Toe,W0,lEe,DY,IY,uEe,Soe,Eoe,Jde,vG,$de,fEe,bG,xoe,iJ,Aoe,qde,h3,TG,Coe,oJ,SG,EG,_Ee,Kde,Xde,iUe=G({"src/compiler/utilities.ts"(){md(),yG=[],HN="tslib",j7=160,CY=1e6,tJ=zVe(),hoe=Pd(()=>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:Yn})),AsyncIterator:new Map(Object.entries({es2015:Yn})),Atomics:new Map(Object.entries({es2017:Yn})),SharedArrayBuffer:new Map(Object.entries({es2017:Yn})),AsyncIterable:new Map(Object.entries({es2018:Yn})),AsyncIterableIterator:new Map(Object.entries({es2018:Yn})),AsyncGenerator:new Map(Object.entries({es2018:Yn})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Yn})),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:Yn,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:Yn})),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:Yn,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Yn,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),jde=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(jde||{}),yoe=/^(\/\/\/\s*/,f6e=/^(\/\/\/\s*/,_6e=/^(\/\/\/\s*/,voe=/^(\/\/\/\s*/,iEe=/^\/\/\/\s*/,oEe=/^(\/\/\/\s*/,boe=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(boe||{}),Vde=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Vde||{}),Ude=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Ude||{}),Hde=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Hde||{}),d6e=/\$\{/g,p6e=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,aEe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,m6e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,g6e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),sEe=/[^\u0000-\u007F]/g,nJ=/["\u0000-\u001f\u2028\u2029\u0085]/g,V7=/['\u0000-\u001f\u2028\u2029\u0085]/g,h6e=new Map(Object.entries({'"':""","'":"'"})),rJ=[""," "],nv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cEe=`\r `,Toe=` -`,W0={getNodeConstructor:()=>Bde,getTokenConstructor:()=>Hat,getIdentifierConstructor:()=>Jat,getPrivateIdentifierConstructor:()=>Bde,getSourceFileConstructor:()=>Bde,getSymbolConstructor:()=>jat,getTypeConstructor:()=>Vat,getSignatureConstructor:()=>Uat,getSourceMapSourceConstructor:()=>$at},lEe=[],IY=/[^\w\s/]/g,uEe=[42,63],Soe=["node_modules","bower_components","jspm_packages"],Eoe=`(?!(${Soe.join("|")})(/|$))`,Jde={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Eoe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Gde(e,Jde.singleAsteriskRegexFragment)},bG={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Eoe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Gde(e,bG.singleAsteriskRegexFragment)},$de={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Gde(e,$de.singleAsteriskRegexFragment)},fEe={files:Jde,directories:bG,exclude:$de},TG=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],xoe=Gf(TG),iJ=[...TG,[".json"]],Aoe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],qde=[[".js",".jsx"],[".mjs"],[".cjs"]],h3=Gf(qde),SG=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Coe=[...SG,[".json"]],oJ=[".d.ts",".d.cts",".d.mts"],EG=[".ts",".cts",".mts",".tsx"],xG=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],_Ee=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(_Ee||{}),Kde=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Xde={files:Yn,directories:Yn}}});function Yde(){let e,n,i,c,u;return{createBaseSourceFileNode:d,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:S,createBaseTokenNode:E,createBaseNode:P};function d(k){return new(u||(u=W0.getSourceFileConstructor()))(k,-1,-1)}function h(k){return new(i||(i=W0.getIdentifierConstructor()))(k,-1,-1)}function S(k){return new(c||(c=W0.getPrivateIdentifierConstructor()))(k,-1,-1)}function E(k){return new(n||(n=W0.getTokenConstructor()))(k,-1,-1)}function P(k){return new(e||(e=W0.getNodeConstructor()))(k,-1,-1)}}var lst=G({"src/compiler/factory/baseNodeFactory.ts"(){md()}});function dEe(e){let n,i;return{getParenthesizeLeftSideOfBinaryForOperator:c,getParenthesizeRightSideOfBinaryForOperator:u,parenthesizeLeftSideOfBinary:P,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:F,parenthesizeConditionOfConditionalExpression:$,parenthesizeBranchOfConditionalExpression:J,parenthesizeExpressionOfExportDefault:X,parenthesizeExpressionOfNew:ie,parenthesizeLeftSideOfAccess:ae,parenthesizeOperandOfPostfixUnary:ve,parenthesizeOperandOfPrefixUnary:we,parenthesizeExpressionsOfCommaDelimitedList:Fe,parenthesizeExpressionForDisallowedComma:et,parenthesizeExpressionOfExpressionStatement:Pe,parenthesizeConciseBodyOfArrowFunction:dt,parenthesizeCheckTypeOfConditionalType:Ie,parenthesizeExtendsTypeOfConditionalType:ct,parenthesizeConstituentTypesOfUnionType:Lt,parenthesizeConstituentTypeOfUnionType:Ct,parenthesizeConstituentTypesOfIntersectionType:Ke,parenthesizeConstituentTypeOfIntersectionType:Ze,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:It,parenthesizeNonArrayTypeOfPostfixType:Yt,parenthesizeElementTypesOfTupleType:Et,parenthesizeElementTypeOfTupleType:at,parenthesizeTypeOfOptionalType:nn,parenthesizeTypeArguments:qt,parenthesizeLeadingTypeArgument:Rn};function c(Kt){n||(n=new Map);let wr=n.get(Kt);return wr||(wr=Wr=>P(Kt,Wr),n.set(Kt,wr)),wr}function u(Kt){i||(i=new Map);let wr=i.get(Kt);return wr||(wr=Wr=>k(Kt,void 0,Wr),i.set(Kt,wr)),wr}function d(Kt,wr,Wr,jt){const En=Pie(226,Kt),fr=rI(226,Kt),Tr=h2(wr);if(!Wr&&wr.kind===219&&En>3)return!0;const Vr=dG(Tr);switch(pf(Vr,En)){case-1:return!(!Wr&&fr===1&&wr.kind===229);case 1:return!1;case 0:if(Wr)return fr===1;if(Ds(Tr)&&Tr.operatorToken.kind===Kt){if(h(Kt))return!1;if(Kt===40){const Fr=jt?S(jt):0;if(UX(Fr)&&Fr===S(Tr))return!1}}return Y8(Tr)===0}}function h(Kt){return Kt===42||Kt===52||Kt===51||Kt===53||Kt===28}function S(Kt){if(Kt=h2(Kt),UX(Kt.kind))return Kt.kind;if(Kt.kind===226&&Kt.operatorToken.kind===40){if(Kt.cachedLiteralKind!==void 0)return Kt.cachedLiteralKind;const wr=S(Kt.left),Wr=UX(wr)&&wr===S(Kt.right)?wr:0;return Kt.cachedLiteralKind=Wr,Wr}return 0}function E(Kt,wr,Wr,jt){return h2(wr).kind===217?wr:d(Kt,wr,Wr,jt)?e.createParenthesizedExpression(wr):wr}function P(Kt,wr){return E(Kt,wr,!0)}function k(Kt,wr,Wr){return E(Kt,Wr,!1,wr)}function F(Kt){return VJ(Kt)?e.createParenthesizedExpression(Kt):Kt}function $(Kt){const wr=Pie(227,58),Wr=h2(Kt),jt=dG(Wr);return pf(jt,wr)!==1?e.createParenthesizedExpression(Kt):Kt}function J(Kt){const wr=h2(Kt);return VJ(wr)?e.createParenthesizedExpression(Kt):Kt}function X(Kt){const wr=h2(Kt);let Wr=VJ(wr);if(!Wr)switch(KL(wr,!1).kind){case 231:case 218:Wr=!0}return Wr?e.createParenthesizedExpression(Kt):Kt}function ie(Kt){const wr=KL(Kt,!0);switch(wr.kind){case 213:return e.createParenthesizedExpression(Kt);case 214:return wr.arguments?Kt:e.createParenthesizedExpression(Kt)}return ae(Kt)}function ae(Kt,wr){const Wr=h2(Kt);return ib(Wr)&&(Wr.kind!==214||Wr.arguments)&&(wr||!fy(Wr))?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function ve(Kt){return ib(Kt)?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function we(Kt){return m9(Kt)?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function Fe(Kt){const wr=Ol(Kt,et);return Tn(e.createNodeArray(wr,Kt.hasTrailingComma),Kt)}function et(Kt){const wr=h2(Kt),Wr=dG(wr),jt=Pie(226,28);return Wr>jt?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function Pe(Kt){const wr=h2(Kt);if(xd(wr)){const jt=wr.expression,En=h2(jt).kind;if(En===218||En===219){const fr=e.updateCallExpression(wr,Tn(e.createParenthesizedExpression(jt),jt),wr.typeArguments,wr.arguments);return e.restoreOuterExpressions(Kt,fr,8)}}const Wr=KL(wr,!1).kind;return Wr===210||Wr===218?Tn(e.createParenthesizedExpression(Kt),Kt):Kt}function dt(Kt){return!Ou(Kt)&&(VJ(Kt)||KL(Kt,!1).kind===210)?Tn(e.createParenthesizedExpression(Kt),Kt):Kt}function Ie(Kt){switch(Kt.kind){case 184:case 185:case 194:return e.createParenthesizedType(Kt)}return Kt}function ct(Kt){switch(Kt.kind){case 194:return e.createParenthesizedType(Kt)}return Kt}function Ct(Kt){switch(Kt.kind){case 192:case 193:return e.createParenthesizedType(Kt)}return Ie(Kt)}function Lt(Kt){return e.createNodeArray(Ol(Kt,Ct))}function Ze(Kt){switch(Kt.kind){case 192:case 193:return e.createParenthesizedType(Kt)}return Ct(Kt)}function Ke(Kt){return e.createNodeArray(Ol(Kt,Ze))}function st(Kt){switch(Kt.kind){case 193:return e.createParenthesizedType(Kt)}return Ze(Kt)}function It(Kt){switch(Kt.kind){case 198:return e.createParenthesizedType(Kt)}return st(Kt)}function Yt(Kt){switch(Kt.kind){case 195:case 198:case 186:return e.createParenthesizedType(Kt)}return st(Kt)}function Et(Kt){return e.createNodeArray(Ol(Kt,at))}function at(Kt){return Qt(Kt)?e.createParenthesizedType(Kt):Kt}function Qt(Kt){return WJ(Kt)?Kt.postfix:g6(Kt)||e0(Kt)||MG(Kt)||_I(Kt)?Qt(Kt.type):Q7(Kt)?Qt(Kt.falseType):fI(Kt)||xR(Kt)?Qt(yl(Kt.types)):KN(Kt)?!!Kt.typeParameter.constraint&&Qt(Kt.typeParameter.constraint):!1}function nn(Kt){return Qt(Kt)?e.createParenthesizedType(Kt):Yt(Kt)}function Rn(Kt){return l7(Kt)&&Kt.typeParameters?e.createParenthesizedType(Kt):Kt}function cn(Kt,wr){return wr===0?Rn(Kt):Kt}function qt(Kt){if(gt(Kt))return e.createNodeArray(Ol(Kt,cn))}}var Doe,ust=G({"src/compiler/factory/parenthesizerRules.ts"(){md(),Doe={getParenthesizeLeftSideOfBinaryForOperator:e=>Of,getParenthesizeRightSideOfBinaryForOperator:e=>Of,parenthesizeLeftSideOfBinary:(e,n)=>n,parenthesizeRightSideOfBinary:(e,n,i)=>i,parenthesizeExpressionOfComputedPropertyName:Of,parenthesizeConditionOfConditionalExpression:Of,parenthesizeBranchOfConditionalExpression:Of,parenthesizeExpressionOfExportDefault:Of,parenthesizeExpressionOfNew:e=>uc(e,ib),parenthesizeLeftSideOfAccess:e=>uc(e,ib),parenthesizeOperandOfPostfixUnary:e=>uc(e,ib),parenthesizeOperandOfPrefixUnary:e=>uc(e,m9),parenthesizeExpressionsOfCommaDelimitedList:e=>uc(e,BM),parenthesizeExpressionForDisallowedComma:Of,parenthesizeExpressionOfExpressionStatement:Of,parenthesizeConciseBodyOfArrowFunction:Of,parenthesizeCheckTypeOfConditionalType:Of,parenthesizeExtendsTypeOfConditionalType:Of,parenthesizeConstituentTypesOfUnionType:e=>uc(e,BM),parenthesizeConstituentTypeOfUnionType:Of,parenthesizeConstituentTypesOfIntersectionType:e=>uc(e,BM),parenthesizeConstituentTypeOfIntersectionType:Of,parenthesizeOperandOfTypeOperator:Of,parenthesizeOperandOfReadonlyTypeOperator:Of,parenthesizeNonArrayTypeOfPostfixType:Of,parenthesizeElementTypesOfTupleType:e=>uc(e,BM),parenthesizeElementTypeOfTupleType:Of,parenthesizeTypeOfOptionalType:Of,parenthesizeTypeArguments:e=>e&&uc(e,BM),parenthesizeLeadingTypeArgument:Of}}});function y6e(e){return{convertToFunctionBlock:n,convertToFunctionExpression:i,convertToClassExpression:c,convertToArrayAssignmentElement:u,convertToObjectAssignmentElement:d,convertToAssignmentPattern:h,convertToObjectAssignmentPattern:S,convertToArrayAssignmentPattern:E,convertToAssignmentElementTarget:P};function n(k,F){if(Ou(k))return k;const $=e.createReturnStatement(k);Tn($,k);const J=e.createBlock([$],F);return Tn(J,k),J}function i(k){var F;if(!k.body)return re.fail("Cannot convert a FunctionDeclaration without a body");const $=e.createFunctionExpression((F=Xv(k))==null?void 0:F.filter(J=>!_W(J)&&!zY(J)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return Ls($,k),Tn($,k),Ry(k)&&U7($,!0),$}function c(k){var F;const $=e.createClassExpression((F=k.modifiers)==null?void 0:F.filter(J=>!_W(J)&&!zY(J)),k.name,k.typeParameters,k.heritageClauses,k.members);return Ls($,k),Tn($,k),Ry(k)&&U7($,!0),$}function u(k){if(sa(k)){if(k.dotDotDotToken)return re.assertNode(k.name,xn),Ls(Tn(e.createSpreadElement(k.name),k),k);const F=P(k.name);return k.initializer?Ls(Tn(e.createAssignment(F,k.initializer),k),k):F}return uc(k,kr)}function d(k){if(sa(k)){if(k.dotDotDotToken)return re.assertNode(k.name,xn),Ls(Tn(e.createSpreadAssignment(k.name),k),k);if(k.propertyName){const F=P(k.name);return Ls(Tn(e.createPropertyAssignment(k.propertyName,k.initializer?e.createAssignment(F,k.initializer):F),k),k)}return re.assertNode(k.name,xn),Ls(Tn(e.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return uc(k,DN)}function h(k){switch(k.kind){case 207:case 209:return E(k);case 206:case 210:return S(k)}}function S(k){return Ch(k)?Ls(Tn(e.createObjectLiteralExpression(Vn(k.elements,d)),k),k):uc(k,el)}function E(k){return Wd(k)?Ls(Tn(e.createArrayLiteralExpression(Vn(k.elements,u)),k),k):uc(k,Ed)}function P(k){return $_(k)?h(k):uc(k,kr)}}var aJ,fst=G({"src/compiler/factory/nodeConverters.ts"(){md(),aJ={convertToFunctionBlock:Na,convertToFunctionExpression:Na,convertToClassExpression:Na,convertToArrayAssignmentElement:Na,convertToObjectAssignmentElement:Na,convertToAssignmentPattern:Na,convertToObjectAssignmentPattern:Na,convertToArrayAssignmentPattern:Na,convertToAssignmentElementTarget:Na}}});function oUe(e){sJ.push(e)}function AG(e,n){const i=e&8?_st:XL,c=Pd(()=>e&1?Doe:dEe(ve)),u=Pd(()=>e&2?aJ:y6e(ve)),d=p0(j=>(se,De)=>Gt(se,j,De)),h=p0(j=>se=>pr(j,se)),S=p0(j=>se=>Di(se,j)),E=p0(j=>()=>yB(j)),P=p0(j=>se=>Vo(j,se)),k=p0(j=>(se,De)=>gD(j,se,De)),F=p0(j=>(se,De)=>z6(j,se,De)),$=p0(j=>(se,De)=>WA(j,se,De)),J=p0(j=>(se,De)=>Qx(j,se,De)),X=p0(j=>(se,De,Tt)=>V6(j,se,De,Tt)),ie=p0(j=>(se,De,Tt)=>fw(j,se,De,Tt)),ae=p0(j=>(se,De,Tt,wn)=>s0(j,se,De,Tt,wn)),ve={get parenthesizer(){return c()},get converters(){return u()},baseFactory:n,flags:e,createNodeArray:we,createNumericLiteral:dt,createBigIntLiteral:Ie,createStringLiteral:Ct,createStringLiteralFromNode:Lt,createRegularExpressionLiteral:Ze,createLiteralLikeNode:Ke,createIdentifier:Yt,createTempVariable:Et,createLoopVariable:at,createUniqueName:Qt,getGeneratedNameForNode:nn,createPrivateIdentifier:cn,createUniquePrivateName:Kt,getGeneratedPrivateNameForNode:wr,createToken:jt,createSuper:En,createThis:fr,createNull:Tr,createTrue:Vr,createFalse:Pn,createModifier:Fr,createModifiersFromModifierFlags:Ki,createQualifiedName:io,updateQualifiedName:no,createComputedPropertyName:os,updateComputedPropertyName:Mo,createTypeParameterDeclaration:$i,updateTypeParameterDeclaration:ki,createParameterDeclaration:gc,updateParameterDeclaration:Wl,createDecorator:Jc,updateDecorator:au,createPropertySignature:qn,updatePropertySignature:za,createPropertyDeclaration:zi,updatePropertyDeclaration:na,createMethodSignature:_a,updateMethodSignature:us,createMethodDeclaration:Au,updateMethodDeclaration:Qu,createConstructorDeclaration:He,updateConstructorDeclaration:Hn,createGetAccessorDeclaration:Mr,updateGetAccessorDeclaration:Pr,createSetAccessorDeclaration:ln,updateSetAccessorDeclaration:Wn,createCallSignature:Ge,updateCallSignature:Br,createConstructSignature:Ei,updateConstructSignature:Ln,createIndexSignature:Sr,updateIndexSignature:yi,createClassStaticBlockDeclaration:yf,updateClassStaticBlockDeclaration:w_,createTemplateLiteralTypeSpan:go,updateTemplateLiteralTypeSpan:Ao,createKeywordTypeNode:Io,createTypePredicateNode:ze,updateTypePredicateNode:Ce,createTypeReferenceNode:kt,updateTypeReferenceNode:qe,createFunctionTypeNode:Mt,updateFunctionTypeNode:ge,createConstructorTypeNode:Jn,updateConstructorTypeNode:qi,createTypeQueryNode:Ts,updateTypeQueryNode:Cc,createTypeLiteralNode:Pc,updateTypeLiteralNode:hc,createArrayTypeNode:bl,updateArrayTypeNode:Tc,createTupleTypeNode:Tf,updateTupleTypeNode:ma,createNamedTupleMember:Bl,updateNamedTupleMember:G_,createOptionalTypeNode:u_,updateOptionalTypeNode:xa,createRestTypeNode:Ym,updateRestTypeNode:mf,createUnionTypeNode:xg,updateUnionTypeNode:Wy,createIntersectionTypeNode:Og,updateIntersectionTypeNode:pl,createConditionalTypeNode:R_,updateConditionalTypeNode:og,createInferTypeNode:km,updateInferTypeNode:M_,createImportTypeNode:hh,updateImportTypeNode:qo,createParenthesizedType:d_,updateParenthesizedType:Ka,createThisTypeNode:Qi,createTypeOperatorNode:Pm,updateTypeOperatorNode:Ag,createIndexedAccessTypeNode:va,updateIndexedAccessTypeNode:x0,createMappedTypeNode:Nm,updateMappedTypeNode:Md,createLiteralTypeNode:fe,updateLiteralTypeNode:_n,createTemplateLiteralType:oy,updateTemplateLiteralType:bE,createObjectBindingPattern:Xn,updateObjectBindingPattern:_i,createArrayBindingPattern:$o,updateArrayBindingPattern:Sc,createBindingElement:xs,updateBindingElement:Fs,createArrayLiteralExpression:Tl,updateArrayLiteralExpression:fc,createObjectLiteralExpression:Gd,updateObjectLiteralExpression:ag,createPropertyAccessExpression:e&4?(j,se)=>_s(bm(j,se),262144):bm,updatePropertyAccessExpression:ay,createPropertyAccessChain:e&4?(j,se,De)=>_s(yp(j,se,De),262144):yp,updatePropertyAccessChain:Cg,createElementAccessExpression:Xp,updateElementAccessExpression:r1,createElementAccessChain:sg,updateElementAccessChain:Jt,createCallExpression:da,updateCallExpression:Hu,createCallChain:t_,updateCallChain:A_,createNewExpression:gd,updateNewExpression:Dg,createTaggedTemplateExpression:um,updateTaggedTemplateExpression:Ig,createTypeAssertion:P_,updateTypeAssertion:Qm,createParenthesizedExpression:Bh,updateParenthesizedExpression:P1,createFunctionExpression:VT,updateFunctionExpression:Zm,createArrowFunction:fb,updateArrowFunction:FS,createDeleteExpression:dT,updateDeleteExpression:$0,createTypeOfExpression:xv,updateTypeOfExpression:t2,createVoidExpression:q0,updateVoidExpression:N1,createAwaitExpression:i0,updateAwaitExpression:nt,createPrefixUnaryExpression:pr,updatePrefixUnaryExpression:vi,createPostfixUnaryExpression:Di,updatePostfixUnaryExpression:Ee,createBinaryExpression:Gt,updateBinaryExpression:Ii,createConditionalExpression:Ja,updateConditionalExpression:wa,createTemplateExpression:wi,updateTemplateExpression:Vl,createTemplateHead:_b,createTemplateMiddle:f_,createTemplateTail:zh,createNoSubstitutionTemplateLiteral:i1,createTemplateLiteralLikeNode:by,createYieldExpression:n2,updateYieldExpression:Vv,createSpreadElement:su,updateSpreadElement:gC,createClassExpression:eg,updateClassExpression:Uv,createOmittedExpression:Rk,createExpressionWithTypeArguments:Lb,updateExpressionWithTypeArguments:fn,createAsExpression:$n,updateAsExpression:ri,createNonNullExpression:Li,updateNonNullExpression:yo,createSatisfiesExpression:jo,updateSatisfiesExpression:Oo,createNonNullChain:ca,updateNonNullChain:Fc,createMetaProperty:ks,updateMetaProperty:Xs,createTemplateSpan:Vs,updateTemplateSpan:wu,createSemicolonClassElement:Yp,createBlock:Q,updateBlock:ft,createVariableStatement:br,updateVariableStatement:oo,createEmptyStatement:Js,createExpressionStatement:pu,updateExpressionStatement:fl,createIfStatement:ju,updateIfStatement:L_,createDoStatement:Cl,updateDoStatement:o0,createWhileStatement:oa,updateWhileStatement:dD,createForStatement:a0,updateForStatement:Kx,createForInStatement:hC,updateForInStatement:WP,createForOfStatement:BP,updateForOfStatement:LA,createContinueStatement:OA,updateContinueStatement:pD,createBreakStatement:yC,updateBreakStatement:vC,createReturnStatement:zP,updateReturnStatement:Xx,createWithStatement:dx,updateWithStatement:WS,createSwitchStatement:px,updateSwitchStatement:j_,createLabeledStatement:GP,updateLabeledStatement:oO,createThrowStatement:dS,updateThrowStatement:FA,createTryStatement:bC,updateTryStatement:wm,createDebuggerStatement:db,createVariableDeclaration:o1,updateVariableDeclaration:Q_,createVariableDeclarationList:je,updateVariableDeclarationList:Vt,createFunctionDeclaration:zn,updateFunctionDeclaration:zr,createClassDeclaration:xo,updateClassDeclaration:Wc,createInterfaceDeclaration:hu,updateInterfaceDeclaration:_c,createTypeAliasDeclaration:Sl,updateTypeAliasDeclaration:kf,createEnumDeclaration:Rp,updateEnumDeclaration:hn,createModuleDeclaration:v_,updateModuleDeclaration:yh,createModuleBlock:fm,updateModuleBlock:mx,createCaseBlock:BS,updateCaseBlock:N2,createNamespaceExportDeclaration:pS,updateNamespaceExportDeclaration:jP,createImportEqualsDeclaration:gx,updateImportEqualsDeclaration:VP,createImportDeclaration:UP,updateImportDeclaration:Bd,createImportClause:Bm,updateImportClause:Hv,createAssertClause:TE,updateAssertClause:A0,createAssertEntry:w2,updateAssertEntry:R2,createImportTypeAssertionContainer:U,updateImportTypeAssertionContainer:le,createImportAttributes:Ae,updateImportAttributes:rt,createImportAttribute:Dn,updateImportAttribute:Ci,createNamespaceImport:gs,updateNamespaceImport:Tu,createNamespaceExport:tg,updateNamespaceExport:mS,createNamedImports:gg,updateNamedImports:Nh,createImportSpecifier:r2,updateImportSpecifier:II,createExportAssignment:Mk,updateExportAssignment:M2,createExportDeclaration:HR,updateExportDeclaration:kI,createNamedExports:PI,updateNamedExports:HP,createExportSpecifier:mD,updateExportSpecifier:NI,createMissingDeclaration:sw,createExternalModuleReference:cw,updateExternalModuleReference:aO,get createJSDocAllType(){return E(319)},get createJSDocUnknownType(){return E(320)},get createJSDocNonNullableType(){return F(322)},get updateJSDocNonNullableType(){return $(322)},get createJSDocNullableType(){return F(321)},get updateJSDocNullableType(){return $(321)},get createJSDocOptionalType(){return P(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return P(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return P(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:UT,updateJSDocFunctionType:wI,createJSDocTypeLiteral:P4,updateJSDocTypeLiteral:N4,createJSDocTypeExpression:G6,updateJSDocTypeExpression:rs,createJSDocSignature:Ob,updateJSDocSignature:gf,createJSDocTemplateTag:Ni,updateJSDocTemplateTag:Nl,createJSDocTypedefTag:Xd,updateJSDocTypedefTag:b_,createJSDocParameterTag:Gp,updateJSDocParameterTag:w1,createJSDocPropertyTag:zS,updateJSDocPropertyTag:SE,createJSDocCallbackTag:R1,updateJSDocCallbackTag:JP,createJSDocOverloadTag:RI,updateJSDocOverloadTag:Uy,createJSDocAugmentsTag:Lk,updateJSDocAugmentsTag:w4,createJSDocImplementsTag:lw,updateJSDocImplementsTag:cO,createJSDocSeeTag:j6,updateJSDocSeeTag:sO,createJSDocNameReference:Ok,updateJSDocNameReference:vB,createJSDocMemberName:Rm,updateJSDocMemberName:Yx,createJSDocLink:uw,updateJSDocLink:Av,createJSDocLinkCode:C0,updateJSDocLinkCode:gV,createJSDocLinkPlain:pT,updateJSDocLinkPlain:EE,get createJSDocTypeTag(){return ie(351)},get updateJSDocTypeTag(){return ae(351)},get createJSDocReturnTag(){return ie(349)},get updateJSDocReturnTag(){return ae(349)},get createJSDocThisTag(){return ie(350)},get updateJSDocThisTag(){return ae(350)},get createJSDocAuthorTag(){return J(337)},get updateJSDocAuthorTag(){return X(337)},get createJSDocClassTag(){return J(339)},get updateJSDocClassTag(){return X(339)},get createJSDocPublicTag(){return J(340)},get updateJSDocPublicTag(){return X(340)},get createJSDocPrivateTag(){return J(341)},get updateJSDocPrivateTag(){return X(341)},get createJSDocProtectedTag(){return J(342)},get updateJSDocProtectedTag(){return X(342)},get createJSDocReadonlyTag(){return J(343)},get updateJSDocReadonlyTag(){return X(343)},get createJSDocOverrideTag(){return J(344)},get updateJSDocOverrideTag(){return X(344)},get createJSDocDeprecatedTag(){return J(338)},get updateJSDocDeprecatedTag(){return X(338)},get createJSDocThrowsTag(){return ie(356)},get updateJSDocThrowsTag(){return ae(356)},get createJSDocSatisfiesTag(){return ie(357)},get updateJSDocSatisfiesTag(){return ae(357)},createJSDocEnumTag:R4,updateJSDocEnumTag:Kq,createJSDocUnknownTag:U6,updateJSDocUnknownTag:GS,createJSDocText:Qg,updateJSDocText:bB,createJSDocComment:BA,updateJSDocComment:$R,createJsxElement:M1,updateJsxElement:gS,createJsxSelfClosingElement:_w,updateJsxSelfClosingElement:qR,createJsxOpeningElement:i2,updateJsxOpeningElement:hS,createJsxClosingElement:TB,updateJsxClosingElement:M4,createJsxFragment:Zx,createJsxText:H6,updateJsxText:hV,createJsxOpeningFragment:yV,createJsxJsxClosingFragment:JF,updateJsxFragment:lO,createJsxAttribute:SB,updateJsxAttribute:uO,createJsxAttributes:L2,updateJsxAttributes:dw,createJsxSpreadAttribute:EB,updateJsxSpreadAttribute:vV,createJsxExpression:jp,updateJsxExpression:sc,createJsxNamespacedName:hx,updateJsxNamespacedName:xE,createCaseClause:fO,updateCaseClause:bV,createDefaultClause:_O,updateDefaultClause:$F,createHeritageClause:L4,updateHeritageClause:AE,createCatchClause:eA,updateCatchClause:KR,createPropertyAssignment:hD,updatePropertyAssignment:TC,createShorthandPropertyAssignment:mT,updateShorthandPropertyAssignment:Vg,createSpreadAssignment:tA,updateSpreadAssignment:O4,createEnumMember:c0,updateEnumMember:jS,createSourceFile:dO,updateSourceFile:O2,createRedirectedSourceFile:pO,createBundle:o2,updateBundle:pw,createUnparsedSource:Vp,createUnparsedPrologue:ne,createUnparsedPrepend:yt,createUnparsedTextLike:Er,createUnparsedSyntheticReference:Wi,createInputFiles:nc,createSyntheticExpression:Vu,createSyntaxList:ql,createNotEmittedStatement:Pf,createPartiallyEmittedExpression:Z_,updatePartiallyEmittedExpression:CE,createCommaListExpression:ru,updateCommaListExpression:Fk,createSyntheticReferenceExpression:Co,updateSyntheticReferenceExpression:DE,cloneNode:LI,get createComma(){return d(28)},get createAssignment(){return d(64)},get createLogicalOr(){return d(57)},get createLogicalAnd(){return d(56)},get createBitwiseOr(){return d(52)},get createBitwiseXor(){return d(53)},get createBitwiseAnd(){return d(51)},get createStrictEquality(){return d(37)},get createStrictInequality(){return d(38)},get createEquality(){return d(35)},get createInequality(){return d(36)},get createLessThan(){return d(30)},get createLessThanEquals(){return d(33)},get createGreaterThan(){return d(32)},get createGreaterThanEquals(){return d(34)},get createLeftShift(){return d(48)},get createRightShift(){return d(49)},get createUnsignedRightShift(){return d(50)},get createAdd(){return d(40)},get createSubtract(){return d(41)},get createMultiply(){return d(42)},get createDivide(){return d(44)},get createModulo(){return d(45)},get createExponent(){return d(43)},get createPrefixPlus(){return h(40)},get createPrefixMinus(){return h(41)},get createPrefixIncrement(){return h(46)},get createPrefixDecrement(){return h(47)},get createBitwiseNot(){return h(55)},get createLogicalNot(){return h(54)},get createPostfixIncrement(){return S(46)},get createPostfixDecrement(){return S(47)},createImmediatelyInvokedFunctionExpression:$P,createImmediatelyInvokedArrowFunction:XR,createVoidZero:mw,createExportDefault:Yq,createExternalModuleExport:KF,createTypeCheck:O1,createIsNotTypeCheck:W4,createMethodCall:Wk,createGlobalMethodCall:HT,createFunctionBindCall:gw,createFunctionCallCall:Qq,createFunctionApplyCall:OI,createArraySliceCall:F0e,createArrayConcatCall:Bk,createObjectDefinePropertyCall:XF,createObjectGetOwnPropertyDescriptorCall:ute,createReflectGetCall:Xe,createReflectSetCall:$t,createPropertyDescriptor:Fn,createCallBinding:Ml,createAssignmentTargetWrapper:Zu,inlineExpressions:hg,getInternalName:Cd,getLocalName:pb,getExportName:zA,getDeclarationName:qP,getNamespaceMemberName:yx,getExternalModuleOrNamespaceExportName:mb,restoreOuterExpressions:Xc,restoreEnclosingLabel:Fu,createUseStrictPrologue:B4,copyPrologue:KP,copyStandardPrologue:Zq,copyCustomPrologue:YF,ensureUseStrict:EC,liftToBlock:FI,mergeLexicalEnvironment:YR,replaceModifiers:z4,replaceDecoratorsAndModifiers:GA,replacePropertyName:eK};return Ot(sJ,j=>j(ve)),ve;function we(j,se){if(j===void 0||j===Yn)j=[];else if(BM(j)){if(se===void 0||j.hasTrailingComma===se)return j.transformFlags===void 0&&pEe(j),re.attachNodeArrayDebugInfo(j),j;const wn=j.slice();return wn.pos=j.pos,wn.end=j.end,wn.hasTrailingComma=se,wn.transformFlags=j.transformFlags,re.attachNodeArrayDebugInfo(wn),wn}const De=j.length,Tt=De>=1&&De<=4?j.slice():j;return Tt.pos=-1,Tt.end=-1,Tt.hasTrailingComma=!!se,Tt.transformFlags=0,pEe(Tt),re.attachNodeArrayDebugInfo(Tt),Tt}function Fe(j){return n.createBaseNode(j)}function et(j){const se=Fe(j);return se.symbol=void 0,se.localSymbol=void 0,se}function Pe(j,se){return j!==se&&(j.typeArguments=se.typeArguments),i(j,se)}function dt(j,se=0){const De=et(9);return De.text=typeof j=="number"?j+"":j,De.numericLiteralFlags=se,se&384&&(De.transformFlags|=1024),De}function Ie(j){const se=Wr(10);return se.text=typeof j=="string"?j:tD(j)+"n",se.transformFlags|=32,se}function ct(j,se){const De=et(11);return De.text=j,De.singleQuote=se,De}function Ct(j,se,De){const Tt=ct(j,se);return Tt.hasExtendedUnicodeEscape=De,De&&(Tt.transformFlags|=1024),Tt}function Lt(j){const se=ct(K2(j),void 0);return se.textSourceNode=j,se}function Ze(j){const se=Wr(14);return se.text=j,se}function Ke(j,se){switch(j){case 9:return dt(se,0);case 10:return Ie(se);case 11:return Ct(se,void 0);case 12:return H6(se,!1);case 13:return H6(se,!0);case 14:return Ze(se);case 15:return by(j,se,void 0,0)}}function st(j){const se=n.createBaseIdentifierNode(80);return se.escapedText=j,se.jsDoc=void 0,se.flowNode=void 0,se.symbol=void 0,se}function It(j,se,De,Tt){const wn=st(ey(j));return RY(wn,{flags:se,id:hk,prefix:De,suffix:Tt}),hk++,wn}function Yt(j,se,De){se===void 0&&j&&(se=D8(j)),se===80&&(se=void 0);const Tt=st(ey(j));return De&&(Tt.flags|=256),Tt.escapedText==="await"&&(Tt.transformFlags|=67108864),Tt.flags&256&&(Tt.transformFlags|=1024),Tt}function Et(j,se,De,Tt){let wn=1;se&&(wn|=8);const Vi=It("",wn,De,Tt);return j&&j(Vi),Vi}function at(j){let se=2;return j&&(se|=8),It("",se,void 0,void 0)}function Qt(j,se=0,De,Tt){return re.assert(!(se&7),"Argument out of range: flags"),re.assert((se&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),It(j,3|se,De,Tt)}function nn(j,se=0,De,Tt){re.assert(!(se&7),"Argument out of range: flags");const wn=j?xN(j)?D3(!1,De,j,Tt,Kr):`generated@${vm(j)}`:"";(De||Tt)&&(se|=16);const Vi=It(wn,4|se,De,Tt);return Vi.original=j,Vi}function Rn(j){const se=n.createBasePrivateIdentifierNode(81);return se.escapedText=j,se.transformFlags|=16777216,se}function cn(j){return qf(j,"#")||re.fail("First character of private identifier must be #: "+j),Rn(ey(j))}function qt(j,se,De,Tt){const wn=Rn(ey(j));return RY(wn,{flags:se,id:hk,prefix:De,suffix:Tt}),hk++,wn}function Kt(j,se,De){j&&!qf(j,"#")&&re.fail("First character of private identifier must be #: "+j);const Tt=8|(j?3:1);return qt(j??"",Tt,se,De)}function wr(j,se,De){const Tt=xN(j)?D3(!0,se,j,De,Kr):`#generated@${vm(j)}`,Vi=qt(Tt,4|(se||De?16:0),se,De);return Vi.original=j,Vi}function Wr(j){return n.createBaseTokenNode(j)}function jt(j){re.assert(j>=0&&j<=165,"Invalid token"),re.assert(j<=15||j>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),re.assert(j<=9||j>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),re.assert(j!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const se=Wr(j);let De=0;switch(j){case 134:De=384;break;case 160:De=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:De=1;break;case 108:De=134218752,se.flowNode=void 0;break;case 126:De=1024;break;case 129:De=16777216;break;case 110:De=16384,se.flowNode=void 0;break}return De&&(se.transformFlags|=De),se}function En(){return jt(108)}function fr(){return jt(110)}function Tr(){return jt(106)}function Vr(){return jt(112)}function Pn(){return jt(97)}function Fr(j){return jt(j)}function Ki(j){const se=[];return j&32&&se.push(Fr(95)),j&128&&se.push(Fr(138)),j&2048&&se.push(Fr(90)),j&4096&&se.push(Fr(87)),j&1&&se.push(Fr(125)),j&2&&se.push(Fr(123)),j&4&&se.push(Fr(124)),j&64&&se.push(Fr(128)),j&256&&se.push(Fr(126)),j&16&&se.push(Fr(164)),j&8&&se.push(Fr(148)),j&512&&se.push(Fr(129)),j&1024&&se.push(Fr(134)),j&8192&&se.push(Fr(103)),j&16384&&se.push(Fr(147)),se.length?se:void 0}function io(j,se){const De=Fe(166);return De.left=j,De.right=vh(se),De.transformFlags|=qs(De.left)|cp(De.right),De.flowNode=void 0,De}function no(j,se,De){return j.left!==se||j.right!==De?i(io(se,De),j):j}function os(j){const se=Fe(167);return se.expression=c().parenthesizeExpressionOfComputedPropertyName(j),se.transformFlags|=qs(se.expression)|1024|131072,se}function Mo(j,se){return j.expression!==se?i(os(se),j):j}function $i(j,se,De,Tt){const wn=et(168);return wn.modifiers=Up(j),wn.name=vh(se),wn.constraint=De,wn.default=Tt,wn.transformFlags=1,wn.expression=void 0,wn.jsDoc=void 0,wn}function ki(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.constraint!==Tt||j.default!==wn?i($i(se,De,Tt,wn),j):j}function gc(j,se,De,Tt,wn,Vi){const Us=et(169);return Us.modifiers=Up(j),Us.dotDotDotToken=se,Us.name=vh(De),Us.questionToken=Tt,Us.type=wn,Us.initializer=xC(Vi),E2(Us.name)?Us.transformFlags=1:Us.transformFlags=gp(Us.modifiers)|qs(Us.dotDotDotToken)|ms(Us.name)|qs(Us.questionToken)|qs(Us.initializer)|(Us.questionToken??Us.type?1:0)|(Us.dotDotDotToken??Us.initializer?1024:0)|(aI(Us.modifiers)&31?8192:0),Us.jsDoc=void 0,Us}function Wl(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.dotDotDotToken!==De||j.name!==Tt||j.questionToken!==wn||j.type!==Vi||j.initializer!==Us?i(gc(se,De,Tt,wn,Vi,Us),j):j}function Jc(j){const se=Fe(170);return se.expression=c().parenthesizeLeftSideOfAccess(j,!1),se.transformFlags|=qs(se.expression)|1|8192|33554432,se}function au(j,se){return j.expression!==se?i(Jc(se),j):j}function qn(j,se,De,Tt){const wn=et(171);return wn.modifiers=Up(j),wn.name=vh(se),wn.type=Tt,wn.questionToken=De,wn.transformFlags=1,wn.initializer=void 0,wn.jsDoc=void 0,wn}function za(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.questionToken!==Tt||j.type!==wn?Ia(qn(se,De,Tt,wn),j):j}function Ia(j,se){return j!==se&&(j.initializer=se.initializer),i(j,se)}function zi(j,se,De,Tt,wn){const Vi=et(172);Vi.modifiers=Up(j),Vi.name=vh(se),Vi.questionToken=De&&p6(De)?De:void 0,Vi.exclamationToken=De&&RG(De)?De:void 0,Vi.type=Tt,Vi.initializer=xC(wn);const Us=Vi.flags&33554432||aI(Vi.modifiers)&128;return Vi.transformFlags=gp(Vi.modifiers)|ms(Vi.name)|qs(Vi.initializer)|(Us||Vi.questionToken||Vi.exclamationToken||Vi.type?1:0)|(Qf(Vi.name)||aI(Vi.modifiers)&256&&Vi.initializer?8192:0)|16777216,Vi.jsDoc=void 0,Vi}function na(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.questionToken!==(Tt!==void 0&&p6(Tt)?Tt:void 0)||j.exclamationToken!==(Tt!==void 0&&RG(Tt)?Tt:void 0)||j.type!==wn||j.initializer!==Vi?i(zi(se,De,Tt,wn,Vi),j):j}function _a(j,se,De,Tt,wn,Vi){const Us=et(173);return Us.modifiers=Up(j),Us.name=vh(se),Us.questionToken=De,Us.typeParameters=Up(Tt),Us.parameters=Up(wn),Us.type=Vi,Us.transformFlags=1,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.typeArguments=void 0,Us}function us(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.name!==De||j.questionToken!==Tt||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us?Pe(_a(se,De,Tt,wn,Vi,Us),j):j}function Au(j,se,De,Tt,wn,Vi,Us,Hf){const ng=et(174);if(ng.modifiers=Up(j),ng.asteriskToken=se,ng.name=vh(De),ng.questionToken=Tt,ng.exclamationToken=void 0,ng.typeParameters=Up(wn),ng.parameters=we(Vi),ng.type=Us,ng.body=Hf,!ng.body)ng.transformFlags=1;else{const VS=aI(ng.modifiers)&1024,G4=!!ng.asteriskToken,j4=VS&&G4;ng.transformFlags=gp(ng.modifiers)|qs(ng.asteriskToken)|ms(ng.name)|qs(ng.questionToken)|gp(ng.typeParameters)|gp(ng.parameters)|qs(ng.type)|qs(ng.body)&-67108865|(j4?128:VS?256:G4?2048:0)|(ng.questionToken||ng.typeParameters||ng.type?1:0)|1024}return ng.typeArguments=void 0,ng.jsDoc=void 0,ng.locals=void 0,ng.nextContainer=void 0,ng.flowNode=void 0,ng.endFlowNode=void 0,ng.returnFlowNode=void 0,ng}function Qu(j,se,De,Tt,wn,Vi,Us,Hf,ng){return j.modifiers!==se||j.asteriskToken!==De||j.name!==Tt||j.questionToken!==wn||j.typeParameters!==Vi||j.parameters!==Us||j.type!==Hf||j.body!==ng?Cu(Au(se,De,Tt,wn,Vi,Us,Hf,ng),j):j}function Cu(j,se){return j!==se&&(j.exclamationToken=se.exclamationToken),i(j,se)}function yf(j){const se=et(175);return se.body=j,se.transformFlags=qs(j)|16777216,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function w_(j,se){return j.body!==se?Eu(yf(se),j):j}function Eu(j,se){return j!==se&&(j.modifiers=se.modifiers),i(j,se)}function He(j,se,De){const Tt=et(176);return Tt.modifiers=Up(j),Tt.parameters=we(se),Tt.body=De,Tt.transformFlags=gp(Tt.modifiers)|gp(Tt.parameters)|qs(Tt.body)&-67108865|1024,Tt.typeParameters=void 0,Tt.type=void 0,Tt.typeArguments=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.endFlowNode=void 0,Tt.returnFlowNode=void 0,Tt}function Hn(j,se,De,Tt){return j.modifiers!==se||j.parameters!==De||j.body!==Tt?dr(He(se,De,Tt),j):j}function dr(j,se){return j!==se&&(j.typeParameters=se.typeParameters,j.type=se.type),Pe(j,se)}function Mr(j,se,De,Tt,wn){const Vi=et(177);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.parameters=we(De),Vi.type=Tt,Vi.body=wn,Vi.body?Vi.transformFlags=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.parameters)|qs(Vi.type)|qs(Vi.body)&-67108865|(Vi.type?1:0):Vi.transformFlags=1,Vi.typeArguments=void 0,Vi.typeParameters=void 0,Vi.jsDoc=void 0,Vi.locals=void 0,Vi.nextContainer=void 0,Vi.flowNode=void 0,Vi.endFlowNode=void 0,Vi.returnFlowNode=void 0,Vi}function Pr(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.parameters!==Tt||j.type!==wn||j.body!==Vi?Bt(Mr(se,De,Tt,wn,Vi),j):j}function Bt(j,se){return j!==se&&(j.typeParameters=se.typeParameters),Pe(j,se)}function ln(j,se,De,Tt){const wn=et(178);return wn.modifiers=Up(j),wn.name=vh(se),wn.parameters=we(De),wn.body=Tt,wn.body?wn.transformFlags=gp(wn.modifiers)|ms(wn.name)|gp(wn.parameters)|qs(wn.body)&-67108865|(wn.type?1:0):wn.transformFlags=1,wn.typeArguments=void 0,wn.typeParameters=void 0,wn.type=void 0,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn.endFlowNode=void 0,wn.returnFlowNode=void 0,wn}function Wn(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.parameters!==Tt||j.body!==wn?$r(ln(se,De,Tt,wn),j):j}function $r(j,se){return j!==se&&(j.typeParameters=se.typeParameters,j.type=se.type),Pe(j,se)}function Ge(j,se,De){const Tt=et(179);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Br(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?Pe(Ge(se,De,Tt),j):j}function Ei(j,se,De){const Tt=et(180);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Ln(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?Pe(Ei(se,De,Tt),j):j}function Sr(j,se,De){const Tt=et(181);return Tt.modifiers=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function yi(j,se,De,Tt){return j.parameters!==De||j.type!==Tt||j.modifiers!==se?Pe(Sr(se,De,Tt),j):j}function go(j,se){const De=Fe(204);return De.type=j,De.literal=se,De.transformFlags=1,De}function Ao(j,se,De){return j.type!==se||j.literal!==De?i(go(se,De),j):j}function Io(j){return jt(j)}function ze(j,se,De){const Tt=Fe(182);return Tt.assertsModifier=j,Tt.parameterName=vh(se),Tt.type=De,Tt.transformFlags=1,Tt}function Ce(j,se,De,Tt){return j.assertsModifier!==se||j.parameterName!==De||j.type!==Tt?i(ze(se,De,Tt),j):j}function kt(j,se){const De=Fe(183);return De.typeName=vh(j),De.typeArguments=se&&c().parenthesizeTypeArguments(we(se)),De.transformFlags=1,De}function qe(j,se,De){return j.typeName!==se||j.typeArguments!==De?i(kt(se,De),j):j}function Mt(j,se,De){const Tt=et(184);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.modifiers=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function ge(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?mn(Mt(se,De,Tt),j):j}function mn(j,se){return j!==se&&(j.modifiers=se.modifiers),Pe(j,se)}function Jn(...j){return j.length===4?Nn(...j):j.length===3?Lr(...j):re.fail("Incorrect number of arguments specified.")}function Nn(j,se,De,Tt){const wn=et(185);return wn.modifiers=Up(j),wn.typeParameters=Up(se),wn.parameters=Up(De),wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.typeArguments=void 0,wn}function Lr(j,se,De){return Nn(void 0,j,se,De)}function qi(...j){return j.length===5?vo(...j):j.length===4?Ro(...j):re.fail("Incorrect number of arguments specified.")}function vo(j,se,De,Tt,wn){return j.modifiers!==se||j.typeParameters!==De||j.parameters!==Tt||j.type!==wn?Pe(Jn(se,De,Tt,wn),j):j}function Ro(j,se,De,Tt){return vo(j,j.modifiers,se,De,Tt)}function Ts(j,se){const De=Fe(186);return De.exprName=j,De.typeArguments=se&&c().parenthesizeTypeArguments(se),De.transformFlags=1,De}function Cc(j,se,De){return j.exprName!==se||j.typeArguments!==De?i(Ts(se,De),j):j}function Pc(j){const se=et(187);return se.members=we(j),se.transformFlags=1,se}function hc(j,se){return j.members!==se?i(Pc(se),j):j}function bl(j){const se=Fe(188);return se.elementType=c().parenthesizeNonArrayTypeOfPostfixType(j),se.transformFlags=1,se}function Tc(j,se){return j.elementType!==se?i(bl(se),j):j}function Tf(j){const se=Fe(189);return se.elements=we(c().parenthesizeElementTypesOfTupleType(j)),se.transformFlags=1,se}function ma(j,se){return j.elements!==se?i(Tf(se),j):j}function Bl(j,se,De,Tt){const wn=et(202);return wn.dotDotDotToken=j,wn.name=se,wn.questionToken=De,wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn}function G_(j,se,De,Tt,wn){return j.dotDotDotToken!==se||j.name!==De||j.questionToken!==Tt||j.type!==wn?i(Bl(se,De,Tt,wn),j):j}function u_(j){const se=Fe(190);return se.type=c().parenthesizeTypeOfOptionalType(j),se.transformFlags=1,se}function xa(j,se){return j.type!==se?i(u_(se),j):j}function Ym(j){const se=Fe(191);return se.type=j,se.transformFlags=1,se}function mf(j,se){return j.type!==se?i(Ym(se),j):j}function Cp(j,se,De){const Tt=Fe(j);return Tt.types=ve.createNodeArray(De(se)),Tt.transformFlags=1,Tt}function Yg(j,se,De){return j.types!==se?i(Cp(j.kind,se,De),j):j}function xg(j){return Cp(192,j,c().parenthesizeConstituentTypesOfUnionType)}function Wy(j,se){return Yg(j,se,c().parenthesizeConstituentTypesOfUnionType)}function Og(j){return Cp(193,j,c().parenthesizeConstituentTypesOfIntersectionType)}function pl(j,se){return Yg(j,se,c().parenthesizeConstituentTypesOfIntersectionType)}function R_(j,se,De,Tt){const wn=Fe(194);return wn.checkType=c().parenthesizeCheckTypeOfConditionalType(j),wn.extendsType=c().parenthesizeExtendsTypeOfConditionalType(se),wn.trueType=De,wn.falseType=Tt,wn.transformFlags=1,wn.locals=void 0,wn.nextContainer=void 0,wn}function og(j,se,De,Tt,wn){return j.checkType!==se||j.extendsType!==De||j.trueType!==Tt||j.falseType!==wn?i(R_(se,De,Tt,wn),j):j}function km(j){const se=Fe(195);return se.typeParameter=j,se.transformFlags=1,se}function M_(j,se){return j.typeParameter!==se?i(km(se),j):j}function oy(j,se){const De=Fe(203);return De.head=j,De.templateSpans=we(se),De.transformFlags=1,De}function bE(j,se,De){return j.head!==se||j.templateSpans!==De?i(oy(se,De),j):j}function hh(j,se,De,Tt,wn=!1){const Vi=Fe(205);return Vi.argument=j,Vi.attributes=se,Vi.assertions&&Vi.assertions.assertClause&&Vi.attributes&&(Vi.assertions.assertClause=Vi.attributes),Vi.qualifier=De,Vi.typeArguments=Tt&&c().parenthesizeTypeArguments(Tt),Vi.isTypeOf=wn,Vi.transformFlags=1,Vi}function qo(j,se,De,Tt,wn,Vi=j.isTypeOf){return j.argument!==se||j.attributes!==De||j.qualifier!==Tt||j.typeArguments!==wn||j.isTypeOf!==Vi?i(hh(se,De,Tt,wn,Vi),j):j}function d_(j){const se=Fe(196);return se.type=j,se.transformFlags=1,se}function Ka(j,se){return j.type!==se?i(d_(se),j):j}function Qi(){const j=Fe(197);return j.transformFlags=1,j}function Pm(j,se){const De=Fe(198);return De.operator=j,De.type=j===148?c().parenthesizeOperandOfReadonlyTypeOperator(se):c().parenthesizeOperandOfTypeOperator(se),De.transformFlags=1,De}function Ag(j,se){return j.type!==se?i(Pm(j.operator,se),j):j}function va(j,se){const De=Fe(199);return De.objectType=c().parenthesizeNonArrayTypeOfPostfixType(j),De.indexType=se,De.transformFlags=1,De}function x0(j,se,De){return j.objectType!==se||j.indexType!==De?i(va(se,De),j):j}function Nm(j,se,De,Tt,wn,Vi){const Us=et(200);return Us.readonlyToken=j,Us.typeParameter=se,Us.nameType=De,Us.questionToken=Tt,Us.type=wn,Us.members=Vi&&we(Vi),Us.transformFlags=1,Us.locals=void 0,Us.nextContainer=void 0,Us}function Md(j,se,De,Tt,wn,Vi,Us){return j.readonlyToken!==se||j.typeParameter!==De||j.nameType!==Tt||j.questionToken!==wn||j.type!==Vi||j.members!==Us?i(Nm(se,De,Tt,wn,Vi,Us),j):j}function fe(j){const se=Fe(201);return se.literal=j,se.transformFlags=1,se}function _n(j,se){return j.literal!==se?i(fe(se),j):j}function Xn(j){const se=Fe(206);return se.elements=we(j),se.transformFlags|=gp(se.elements)|1024|524288,se.transformFlags&32768&&(se.transformFlags|=65664),se}function _i(j,se){return j.elements!==se?i(Xn(se),j):j}function $o(j){const se=Fe(207);return se.elements=we(j),se.transformFlags|=gp(se.elements)|1024|524288,se}function Sc(j,se){return j.elements!==se?i($o(se),j):j}function xs(j,se,De,Tt){const wn=et(208);return wn.dotDotDotToken=j,wn.propertyName=vh(se),wn.name=vh(De),wn.initializer=xC(Tt),wn.transformFlags|=qs(wn.dotDotDotToken)|ms(wn.propertyName)|ms(wn.name)|qs(wn.initializer)|(wn.dotDotDotToken?32768:0)|1024,wn.flowNode=void 0,wn}function Fs(j,se,De,Tt,wn){return j.propertyName!==De||j.dotDotDotToken!==se||j.name!==Tt||j.initializer!==wn?i(xs(se,De,Tt,wn),j):j}function Tl(j,se){const De=Fe(209),Tt=j&&Yf(j),wn=we(j,Tt&&cb(Tt)?!0:void 0);return De.elements=c().parenthesizeExpressionsOfCommaDelimitedList(wn),De.multiLine=se,De.transformFlags|=gp(De.elements),De}function fc(j,se){return j.elements!==se?i(Tl(se,j.multiLine),j):j}function Gd(j,se){const De=et(210);return De.properties=we(j),De.multiLine=se,De.transformFlags|=gp(De.properties),De.jsDoc=void 0,De}function ag(j,se){return j.properties!==se?i(Gd(se,j.multiLine),j):j}function ah(j,se,De){const Tt=et(211);return Tt.expression=j,Tt.questionDotToken=se,Tt.name=De,Tt.transformFlags=qs(Tt.expression)|qs(Tt.questionDotToken)|(xn(Tt.name)?cp(Tt.name):qs(Tt.name)|536870912),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function bm(j,se){const De=ah(c().parenthesizeLeftSideOfAccess(j,!1),void 0,vh(se));return nT(j)&&(De.transformFlags|=384),De}function ay(j,se,De){return ede(j)?Cg(j,se,j.questionDotToken,uc(De,xn)):j.expression!==se||j.name!==De?i(bm(se,De),j):j}function yp(j,se,De){const Tt=ah(c().parenthesizeLeftSideOfAccess(j,!0),se,vh(De));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function Cg(j,se,De,Tt){return re.assert(!!(j.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),j.expression!==se||j.questionDotToken!==De||j.name!==Tt?i(yp(se,De,Tt),j):j}function wp(j,se,De){const Tt=et(212);return Tt.expression=j,Tt.questionDotToken=se,Tt.argumentExpression=De,Tt.transformFlags|=qs(Tt.expression)|qs(Tt.questionDotToken)|qs(Tt.argumentExpression),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function Xp(j,se){const De=wp(c().parenthesizeLeftSideOfAccess(j,!1),void 0,J6(se));return nT(j)&&(De.transformFlags|=384),De}function r1(j,se,De){return oR(j)?Jt(j,se,j.questionDotToken,De):j.expression!==se||j.argumentExpression!==De?i(Xp(se,De),j):j}function sg(j,se,De){const Tt=wp(c().parenthesizeLeftSideOfAccess(j,!0),se,J6(De));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function Jt(j,se,De,Tt){return re.assert(!!(j.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),j.expression!==se||j.questionDotToken!==De||j.argumentExpression!==Tt?i(sg(se,De,Tt),j):j}function ci(j,se,De,Tt){const wn=et(213);return wn.expression=j,wn.questionDotToken=se,wn.typeArguments=De,wn.arguments=Tt,wn.transformFlags|=qs(wn.expression)|qs(wn.questionDotToken)|gp(wn.typeArguments)|gp(wn.arguments),wn.typeArguments&&(wn.transformFlags|=1),MT(wn.expression)&&(wn.transformFlags|=16384),wn}function da(j,se,De){const Tt=ci(c().parenthesizeLeftSideOfAccess(j,!1),void 0,Up(se),c().parenthesizeExpressionsOfCommaDelimitedList(we(De)));return am(Tt.expression)&&(Tt.transformFlags|=8388608),Tt}function Hu(j,se,De,Tt){return AN(j)?A_(j,se,j.questionDotToken,De,Tt):j.expression!==se||j.typeArguments!==De||j.arguments!==Tt?i(da(se,De,Tt),j):j}function t_(j,se,De,Tt){const wn=ci(c().parenthesizeLeftSideOfAccess(j,!0),se,Up(De),c().parenthesizeExpressionsOfCommaDelimitedList(we(Tt)));return wn.flags|=64,wn.transformFlags|=32,wn}function A_(j,se,De,Tt,wn){return re.assert(!!(j.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),j.expression!==se||j.questionDotToken!==De||j.typeArguments!==Tt||j.arguments!==wn?i(t_(se,De,Tt,wn),j):j}function gd(j,se,De){const Tt=et(214);return Tt.expression=c().parenthesizeExpressionOfNew(j),Tt.typeArguments=Up(se),Tt.arguments=De?c().parenthesizeExpressionsOfCommaDelimitedList(De):void 0,Tt.transformFlags|=qs(Tt.expression)|gp(Tt.typeArguments)|gp(Tt.arguments)|32,Tt.typeArguments&&(Tt.transformFlags|=1),Tt}function Dg(j,se,De,Tt){return j.expression!==se||j.typeArguments!==De||j.arguments!==Tt?i(gd(se,De,Tt),j):j}function um(j,se,De){const Tt=Fe(215);return Tt.tag=c().parenthesizeLeftSideOfAccess(j,!1),Tt.typeArguments=Up(se),Tt.template=De,Tt.transformFlags|=qs(Tt.tag)|gp(Tt.typeArguments)|qs(Tt.template)|1024,Tt.typeArguments&&(Tt.transformFlags|=1),TH(Tt.template)&&(Tt.transformFlags|=128),Tt}function Ig(j,se,De,Tt){return j.tag!==se||j.typeArguments!==De||j.template!==Tt?i(um(se,De,Tt),j):j}function P_(j,se){const De=Fe(216);return De.expression=c().parenthesizeOperandOfPrefixUnary(se),De.type=j,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function Qm(j,se,De){return j.type!==se||j.expression!==De?i(P_(se,De),j):j}function Bh(j){const se=Fe(217);return se.expression=j,se.transformFlags=qs(se.expression),se.jsDoc=void 0,se}function P1(j,se){return j.expression!==se?i(Bh(se),j):j}function VT(j,se,De,Tt,wn,Vi,Us){const Hf=et(218);Hf.modifiers=Up(j),Hf.asteriskToken=se,Hf.name=vh(De),Hf.typeParameters=Up(Tt),Hf.parameters=we(wn),Hf.type=Vi,Hf.body=Us;const ng=aI(Hf.modifiers)&1024,VS=!!Hf.asteriskToken,G4=ng&&VS;return Hf.transformFlags=gp(Hf.modifiers)|qs(Hf.asteriskToken)|ms(Hf.name)|gp(Hf.typeParameters)|gp(Hf.parameters)|qs(Hf.type)|qs(Hf.body)&-67108865|(G4?128:ng?256:VS?2048:0)|(Hf.typeParameters||Hf.type?1:0)|4194304,Hf.typeArguments=void 0,Hf.jsDoc=void 0,Hf.locals=void 0,Hf.nextContainer=void 0,Hf.flowNode=void 0,Hf.endFlowNode=void 0,Hf.returnFlowNode=void 0,Hf}function Zm(j,se,De,Tt,wn,Vi,Us,Hf){return j.name!==Tt||j.modifiers!==se||j.asteriskToken!==De||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us||j.body!==Hf?Pe(VT(se,De,Tt,wn,Vi,Us,Hf),j):j}function fb(j,se,De,Tt,wn,Vi){const Us=et(219);Us.modifiers=Up(j),Us.typeParameters=Up(se),Us.parameters=we(De),Us.type=Tt,Us.equalsGreaterThanToken=wn??jt(39),Us.body=c().parenthesizeConciseBodyOfArrowFunction(Vi);const Hf=aI(Us.modifiers)&1024;return Us.transformFlags=gp(Us.modifiers)|gp(Us.typeParameters)|gp(Us.parameters)|qs(Us.type)|qs(Us.equalsGreaterThanToken)|qs(Us.body)&-67108865|(Us.typeParameters||Us.type?1:0)|(Hf?16640:0)|1024,Us.typeArguments=void 0,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.flowNode=void 0,Us.endFlowNode=void 0,Us.returnFlowNode=void 0,Us}function FS(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.typeParameters!==De||j.parameters!==Tt||j.type!==wn||j.equalsGreaterThanToken!==Vi||j.body!==Us?Pe(fb(se,De,Tt,wn,Vi,Us),j):j}function dT(j){const se=Fe(220);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function $0(j,se){return j.expression!==se?i(dT(se),j):j}function xv(j){const se=Fe(221);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function t2(j,se){return j.expression!==se?i(xv(se),j):j}function q0(j){const se=Fe(222);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function N1(j,se){return j.expression!==se?i(q0(se),j):j}function i0(j){const se=Fe(223);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression)|256|128|2097152,se}function nt(j,se){return j.expression!==se?i(i0(se),j):j}function pr(j,se){const De=Fe(224);return De.operator=j,De.operand=c().parenthesizeOperandOfPrefixUnary(se),De.transformFlags|=qs(De.operand),(j===46||j===47)&&xn(De.operand)&&!$g(De.operand)&&!mI(De.operand)&&(De.transformFlags|=268435456),De}function vi(j,se){return j.operand!==se?i(pr(j.operator,se),j):j}function Di(j,se){const De=Fe(225);return De.operator=se,De.operand=c().parenthesizeOperandOfPostfixUnary(j),De.transformFlags|=qs(De.operand),xn(De.operand)&&!$g(De.operand)&&!mI(De.operand)&&(De.transformFlags|=268435456),De}function Ee(j,se){return j.operand!==se?i(Di(se,j.operator),j):j}function Gt(j,se,De){const Tt=et(226),wn=F2(se),Vi=wn.kind;return Tt.left=c().parenthesizeLeftSideOfBinary(Vi,j),Tt.operatorToken=wn,Tt.right=c().parenthesizeRightSideOfBinary(Vi,Tt.left,De),Tt.transformFlags|=qs(Tt.left)|qs(Tt.operatorToken)|qs(Tt.right),Vi===61?Tt.transformFlags|=32:Vi===64?el(Tt.left)?Tt.transformFlags|=5248|sr(Tt.left):Ed(Tt.left)&&(Tt.transformFlags|=5120|sr(Tt.left)):Vi===43||Vi===68?Tt.transformFlags|=512:CH(Vi)&&(Tt.transformFlags|=16),Vi===103&&Lu(Tt.left)&&(Tt.transformFlags|=536870912),Tt.jsDoc=void 0,Tt}function sr(j){return nx(j)?65536:0}function Ii(j,se,De,Tt){return j.left!==se||j.operatorToken!==De||j.right!==Tt?i(Gt(se,De,Tt),j):j}function Ja(j,se,De,Tt,wn){const Vi=Fe(227);return Vi.condition=c().parenthesizeConditionOfConditionalExpression(j),Vi.questionToken=se??jt(58),Vi.whenTrue=c().parenthesizeBranchOfConditionalExpression(De),Vi.colonToken=Tt??jt(59),Vi.whenFalse=c().parenthesizeBranchOfConditionalExpression(wn),Vi.transformFlags|=qs(Vi.condition)|qs(Vi.questionToken)|qs(Vi.whenTrue)|qs(Vi.colonToken)|qs(Vi.whenFalse),Vi}function wa(j,se,De,Tt,wn,Vi){return j.condition!==se||j.questionToken!==De||j.whenTrue!==Tt||j.colonToken!==wn||j.whenFalse!==Vi?i(Ja(se,De,Tt,wn,Vi),j):j}function wi(j,se){const De=Fe(228);return De.head=j,De.templateSpans=we(se),De.transformFlags|=qs(De.head)|gp(De.templateSpans)|1024,De}function Vl(j,se,De){return j.head!==se||j.templateSpans!==De?i(wi(se,De),j):j}function Uf(j,se,De,Tt=0){re.assert(!(Tt&-7177),"Unsupported template flags.");let wn;if(De!==void 0&&De!==se&&(wn=dst(j,De),typeof wn=="object"))return re.fail("Invalid raw text");if(se===void 0){if(wn===void 0)return re.fail("Arguments 'text' and 'rawText' may not both be undefined.");se=wn}else wn!==void 0&&re.assert(se===wn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return se}function Y_(j){let se=1024;return j&&(se|=128),se}function Fg(j,se,De,Tt){const wn=Wr(j);return wn.text=se,wn.rawText=De,wn.templateFlags=Tt&7176,wn.transformFlags=Y_(wn.templateFlags),wn}function sv(j,se,De,Tt){const wn=et(j);return wn.text=se,wn.rawText=De,wn.templateFlags=Tt&7176,wn.transformFlags=Y_(wn.templateFlags),wn}function by(j,se,De,Tt){return j===15?sv(j,se,De,Tt):Fg(j,se,De,Tt)}function _b(j,se,De){return j=Uf(16,j,se,De),by(16,j,se,De)}function f_(j,se,De){return j=Uf(16,j,se,De),by(17,j,se,De)}function zh(j,se,De){return j=Uf(16,j,se,De),by(18,j,se,De)}function i1(j,se,De){return j=Uf(16,j,se,De),sv(15,j,se,De)}function n2(j,se){re.assert(!j||!!se,"A `YieldExpression` with an asteriskToken must have an expression.");const De=Fe(229);return De.expression=se&&c().parenthesizeExpressionForDisallowedComma(se),De.asteriskToken=j,De.transformFlags|=qs(De.expression)|qs(De.asteriskToken)|1024|128|1048576,De}function Vv(j,se,De){return j.expression!==De||j.asteriskToken!==se?i(n2(se,De),j):j}function su(j){const se=Fe(230);return se.expression=c().parenthesizeExpressionForDisallowedComma(j),se.transformFlags|=qs(se.expression)|1024|32768,se}function gC(j,se){return j.expression!==se?i(su(se),j):j}function eg(j,se,De,Tt,wn){const Vi=et(231);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),Vi.transformFlags|=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.typeParameters)|gp(Vi.heritageClauses)|gp(Vi.members)|(Vi.typeParameters?1:0)|1024,Vi.jsDoc=void 0,Vi}function Uv(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(eg(se,De,Tt,wn,Vi),j):j}function Rk(){return Fe(232)}function Lb(j,se){const De=Fe(233);return De.expression=c().parenthesizeLeftSideOfAccess(j,!1),De.typeArguments=se&&c().parenthesizeTypeArguments(se),De.transformFlags|=qs(De.expression)|gp(De.typeArguments)|1024,De}function fn(j,se,De){return j.expression!==se||j.typeArguments!==De?i(Lb(se,De),j):j}function $n(j,se){const De=Fe(234);return De.expression=j,De.type=se,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function ri(j,se,De){return j.expression!==se||j.type!==De?i($n(se,De),j):j}function Li(j){const se=Fe(235);return se.expression=c().parenthesizeLeftSideOfAccess(j,!1),se.transformFlags|=qs(se.expression)|1,se}function yo(j,se){return zU(j)?Fc(j,se):j.expression!==se?i(Li(se),j):j}function jo(j,se){const De=Fe(238);return De.expression=j,De.type=se,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function Oo(j,se,De){return j.expression!==se||j.type!==De?i(jo(se,De),j):j}function ca(j){const se=Fe(235);return se.flags|=64,se.expression=c().parenthesizeLeftSideOfAccess(j,!0),se.transformFlags|=qs(se.expression)|1,se}function Fc(j,se){return re.assert(!!(j.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),j.expression!==se?i(ca(se),j):j}function ks(j,se){const De=Fe(236);switch(De.keywordToken=j,De.name=se,De.transformFlags|=qs(De.name),j){case 105:De.transformFlags|=1024;break;case 102:De.transformFlags|=32;break;default:return re.assertNever(j)}return De.flowNode=void 0,De}function Xs(j,se){return j.name!==se?i(ks(j.keywordToken,se),j):j}function Vs(j,se){const De=Fe(239);return De.expression=j,De.literal=se,De.transformFlags|=qs(De.expression)|qs(De.literal)|1024,De}function wu(j,se,De){return j.expression!==se||j.literal!==De?i(Vs(se,De),j):j}function Yp(){const j=Fe(240);return j.transformFlags|=1024,j}function Q(j,se){const De=Fe(241);return De.statements=we(j),De.multiLine=se,De.transformFlags|=gp(De.statements),De.jsDoc=void 0,De.locals=void 0,De.nextContainer=void 0,De}function ft(j,se){return j.statements!==se?i(Q(se,j.multiLine),j):j}function br(j,se){const De=Fe(243);return De.modifiers=Up(j),De.declarationList=ls(se)?je(se):se,De.transformFlags|=gp(De.modifiers)|qs(De.declarationList),aI(De.modifiers)&128&&(De.transformFlags=1),De.jsDoc=void 0,De.flowNode=void 0,De}function oo(j,se,De){return j.modifiers!==se||j.declarationList!==De?i(br(se,De),j):j}function Js(){const j=Fe(242);return j.jsDoc=void 0,j}function pu(j){const se=Fe(244);return se.expression=c().parenthesizeExpressionOfExpressionStatement(j),se.transformFlags|=qs(se.expression),se.jsDoc=void 0,se.flowNode=void 0,se}function fl(j,se){return j.expression!==se?i(pu(se),j):j}function ju(j,se,De){const Tt=Fe(245);return Tt.expression=j,Tt.thenStatement=XP(se),Tt.elseStatement=XP(De),Tt.transformFlags|=qs(Tt.expression)|qs(Tt.thenStatement)|qs(Tt.elseStatement),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function L_(j,se,De,Tt){return j.expression!==se||j.thenStatement!==De||j.elseStatement!==Tt?i(ju(se,De,Tt),j):j}function Cl(j,se){const De=Fe(246);return De.statement=XP(j),De.expression=se,De.transformFlags|=qs(De.statement)|qs(De.expression),De.jsDoc=void 0,De.flowNode=void 0,De}function o0(j,se,De){return j.statement!==se||j.expression!==De?i(Cl(se,De),j):j}function oa(j,se){const De=Fe(247);return De.expression=j,De.statement=XP(se),De.transformFlags|=qs(De.expression)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function dD(j,se,De){return j.expression!==se||j.statement!==De?i(oa(se,De),j):j}function a0(j,se,De,Tt){const wn=Fe(248);return wn.initializer=j,wn.condition=se,wn.incrementor=De,wn.statement=XP(Tt),wn.transformFlags|=qs(wn.initializer)|qs(wn.condition)|qs(wn.incrementor)|qs(wn.statement),wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn}function Kx(j,se,De,Tt,wn){return j.initializer!==se||j.condition!==De||j.incrementor!==Tt||j.statement!==wn?i(a0(se,De,Tt,wn),j):j}function hC(j,se,De){const Tt=Fe(249);return Tt.initializer=j,Tt.expression=se,Tt.statement=XP(De),Tt.transformFlags|=qs(Tt.initializer)|qs(Tt.expression)|qs(Tt.statement),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function WP(j,se,De,Tt){return j.initializer!==se||j.expression!==De||j.statement!==Tt?i(hC(se,De,Tt),j):j}function BP(j,se,De,Tt){const wn=Fe(250);return wn.awaitModifier=j,wn.initializer=se,wn.expression=c().parenthesizeExpressionForDisallowedComma(De),wn.statement=XP(Tt),wn.transformFlags|=qs(wn.awaitModifier)|qs(wn.initializer)|qs(wn.expression)|qs(wn.statement)|1024,j&&(wn.transformFlags|=128),wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn}function LA(j,se,De,Tt,wn){return j.awaitModifier!==se||j.initializer!==De||j.expression!==Tt||j.statement!==wn?i(BP(se,De,Tt,wn),j):j}function OA(j){const se=Fe(251);return se.label=vh(j),se.transformFlags|=qs(se.label)|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function pD(j,se){return j.label!==se?i(OA(se),j):j}function yC(j){const se=Fe(252);return se.label=vh(j),se.transformFlags|=qs(se.label)|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function vC(j,se){return j.label!==se?i(yC(se),j):j}function zP(j){const se=Fe(253);return se.expression=j,se.transformFlags|=qs(se.expression)|128|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function Xx(j,se){return j.expression!==se?i(zP(se),j):j}function dx(j,se){const De=Fe(254);return De.expression=j,De.statement=XP(se),De.transformFlags|=qs(De.expression)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function WS(j,se,De){return j.expression!==se||j.statement!==De?i(dx(se,De),j):j}function px(j,se){const De=Fe(255);return De.expression=c().parenthesizeExpressionForDisallowedComma(j),De.caseBlock=se,De.transformFlags|=qs(De.expression)|qs(De.caseBlock),De.jsDoc=void 0,De.flowNode=void 0,De.possiblyExhaustive=!1,De}function j_(j,se,De){return j.expression!==se||j.caseBlock!==De?i(px(se,De),j):j}function GP(j,se){const De=Fe(256);return De.label=vh(j),De.statement=XP(se),De.transformFlags|=qs(De.label)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function oO(j,se,De){return j.label!==se||j.statement!==De?i(GP(se,De),j):j}function dS(j){const se=Fe(257);return se.expression=j,se.transformFlags|=qs(se.expression),se.jsDoc=void 0,se.flowNode=void 0,se}function FA(j,se){return j.expression!==se?i(dS(se),j):j}function bC(j,se,De){const Tt=Fe(258);return Tt.tryBlock=j,Tt.catchClause=se,Tt.finallyBlock=De,Tt.transformFlags|=qs(Tt.tryBlock)|qs(Tt.catchClause)|qs(Tt.finallyBlock),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function wm(j,se,De,Tt){return j.tryBlock!==se||j.catchClause!==De||j.finallyBlock!==Tt?i(bC(se,De,Tt),j):j}function db(){const j=Fe(259);return j.jsDoc=void 0,j.flowNode=void 0,j}function o1(j,se,De,Tt){const wn=et(260);return wn.name=vh(j),wn.exclamationToken=se,wn.type=De,wn.initializer=xC(Tt),wn.transformFlags|=ms(wn.name)|qs(wn.initializer)|(wn.exclamationToken??wn.type?1:0),wn.jsDoc=void 0,wn}function Q_(j,se,De,Tt,wn){return j.name!==se||j.type!==Tt||j.exclamationToken!==De||j.initializer!==wn?i(o1(se,De,Tt,wn),j):j}function je(j,se=0){const De=Fe(261);return De.flags|=se&7,De.declarations=we(j),De.transformFlags|=gp(De.declarations)|4194304,se&7&&(De.transformFlags|=263168),se&4&&(De.transformFlags|=4),De}function Vt(j,se){return j.declarations!==se?i(je(se,j.flags),j):j}function zn(j,se,De,Tt,wn,Vi,Us){const Hf=et(262);if(Hf.modifiers=Up(j),Hf.asteriskToken=se,Hf.name=vh(De),Hf.typeParameters=Up(Tt),Hf.parameters=we(wn),Hf.type=Vi,Hf.body=Us,!Hf.body||aI(Hf.modifiers)&128)Hf.transformFlags=1;else{const ng=aI(Hf.modifiers)&1024,VS=!!Hf.asteriskToken,G4=ng&&VS;Hf.transformFlags=gp(Hf.modifiers)|qs(Hf.asteriskToken)|ms(Hf.name)|gp(Hf.typeParameters)|gp(Hf.parameters)|qs(Hf.type)|qs(Hf.body)&-67108865|(G4?128:ng?256:VS?2048:0)|(Hf.typeParameters||Hf.type?1:0)|4194304}return Hf.typeArguments=void 0,Hf.jsDoc=void 0,Hf.locals=void 0,Hf.nextContainer=void 0,Hf.endFlowNode=void 0,Hf.returnFlowNode=void 0,Hf}function zr(j,se,De,Tt,wn,Vi,Us,Hf){return j.modifiers!==se||j.asteriskToken!==De||j.name!==Tt||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us||j.body!==Hf?xi(zn(se,De,Tt,wn,Vi,Us,Hf),j):j}function xi(j,se){return j!==se&&j.modifiers===se.modifiers&&(j.modifiers=se.modifiers),Pe(j,se)}function xo(j,se,De,Tt,wn){const Vi=et(263);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),aI(Vi.modifiers)&128?Vi.transformFlags=1:(Vi.transformFlags|=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.typeParameters)|gp(Vi.heritageClauses)|gp(Vi.members)|(Vi.typeParameters?1:0)|1024,Vi.transformFlags&8192&&(Vi.transformFlags|=1)),Vi.jsDoc=void 0,Vi}function Wc(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(xo(se,De,Tt,wn,Vi),j):j}function hu(j,se,De,Tt,wn){const Vi=et(264);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),Vi.transformFlags=1,Vi.jsDoc=void 0,Vi}function _c(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(hu(se,De,Tt,wn,Vi),j):j}function Sl(j,se,De,Tt){const wn=et(265);return wn.modifiers=Up(j),wn.name=vh(se),wn.typeParameters=Up(De),wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn}function kf(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.type!==wn?i(Sl(se,De,Tt,wn),j):j}function Rp(j,se,De){const Tt=et(266);return Tt.modifiers=Up(j),Tt.name=vh(se),Tt.members=we(De),Tt.transformFlags|=gp(Tt.modifiers)|qs(Tt.name)|gp(Tt.members)|1,Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function hn(j,se,De,Tt){return j.modifiers!==se||j.name!==De||j.members!==Tt?i(Rp(se,De,Tt),j):j}function v_(j,se,De,Tt=0){const wn=et(267);return wn.modifiers=Up(j),wn.flags|=Tt&2088,wn.name=se,wn.body=De,aI(wn.modifiers)&128?wn.transformFlags=1:wn.transformFlags|=gp(wn.modifiers)|qs(wn.name)|qs(wn.body)|1,wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn}function yh(j,se,De,Tt){return j.modifiers!==se||j.name!==De||j.body!==Tt?i(v_(se,De,Tt,j.flags),j):j}function fm(j){const se=Fe(268);return se.statements=we(j),se.transformFlags|=gp(se.statements),se.jsDoc=void 0,se}function mx(j,se){return j.statements!==se?i(fm(se),j):j}function BS(j){const se=Fe(269);return se.clauses=we(j),se.transformFlags|=gp(se.clauses),se.locals=void 0,se.nextContainer=void 0,se}function N2(j,se){return j.clauses!==se?i(BS(se),j):j}function pS(j){const se=et(270);return se.name=vh(j),se.transformFlags|=cp(se.name)|1,se.modifiers=void 0,se.jsDoc=void 0,se}function jP(j,se){return j.name!==se?tp(pS(se),j):j}function tp(j,se){return j!==se&&(j.modifiers=se.modifiers),i(j,se)}function gx(j,se,De,Tt){const wn=et(271);return wn.modifiers=Up(j),wn.name=vh(De),wn.isTypeOnly=se,wn.moduleReference=Tt,wn.transformFlags|=gp(wn.modifiers)|cp(wn.name)|qs(wn.moduleReference),KE(wn.moduleReference)||(wn.transformFlags|=1),wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn}function VP(j,se,De,Tt,wn){return j.modifiers!==se||j.isTypeOnly!==De||j.name!==Tt||j.moduleReference!==wn?i(gx(se,De,Tt,wn),j):j}function UP(j,se,De,Tt){const wn=Fe(272);return wn.modifiers=Up(j),wn.importClause=se,wn.moduleSpecifier=De,wn.attributes=wn.assertClause=Tt,wn.transformFlags|=qs(wn.importClause)|qs(wn.moduleSpecifier),wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn}function Bd(j,se,De,Tt,wn){return j.modifiers!==se||j.importClause!==De||j.moduleSpecifier!==Tt||j.attributes!==wn?i(UP(se,De,Tt,wn),j):j}function Bm(j,se,De){const Tt=et(273);return Tt.isTypeOnly=j,Tt.name=se,Tt.namedBindings=De,Tt.transformFlags|=qs(Tt.name)|qs(Tt.namedBindings),j&&(Tt.transformFlags|=1),Tt.transformFlags&=-67108865,Tt}function Hv(j,se,De,Tt){return j.isTypeOnly!==se||j.name!==De||j.namedBindings!==Tt?i(Bm(se,De,Tt),j):j}function TE(j,se){const De=Fe(300);return De.elements=we(j),De.multiLine=se,De.token=132,De.transformFlags|=4,De}function A0(j,se,De){return j.elements!==se||j.multiLine!==De?i(TE(se,De),j):j}function w2(j,se){const De=Fe(301);return De.name=j,De.value=se,De.transformFlags|=4,De}function R2(j,se,De){return j.name!==se||j.value!==De?i(w2(se,De),j):j}function U(j,se){const De=Fe(302);return De.assertClause=j,De.multiLine=se,De}function le(j,se,De){return j.assertClause!==se||j.multiLine!==De?i(U(se,De),j):j}function Ae(j,se,De){const Tt=Fe(300);return Tt.token=De??118,Tt.elements=we(j),Tt.multiLine=se,Tt.transformFlags|=4,Tt}function rt(j,se,De){return j.elements!==se||j.multiLine!==De?i(Ae(se,De,j.token),j):j}function Dn(j,se){const De=Fe(301);return De.name=j,De.value=se,De.transformFlags|=4,De}function Ci(j,se,De){return j.name!==se||j.value!==De?i(Dn(se,De),j):j}function gs(j){const se=et(274);return se.name=j,se.transformFlags|=qs(se.name),se.transformFlags&=-67108865,se}function Tu(j,se){return j.name!==se?i(gs(se),j):j}function tg(j){const se=et(280);return se.name=j,se.transformFlags|=qs(se.name)|32,se.transformFlags&=-67108865,se}function mS(j,se){return j.name!==se?i(tg(se),j):j}function gg(j){const se=Fe(275);return se.elements=we(j),se.transformFlags|=gp(se.elements),se.transformFlags&=-67108865,se}function Nh(j,se){return j.elements!==se?i(gg(se),j):j}function r2(j,se,De){const Tt=et(276);return Tt.isTypeOnly=j,Tt.propertyName=se,Tt.name=De,Tt.transformFlags|=qs(Tt.propertyName)|qs(Tt.name),Tt.transformFlags&=-67108865,Tt}function II(j,se,De,Tt){return j.isTypeOnly!==se||j.propertyName!==De||j.name!==Tt?i(r2(se,De,Tt),j):j}function Mk(j,se,De){const Tt=et(277);return Tt.modifiers=Up(j),Tt.isExportEquals=se,Tt.expression=se?c().parenthesizeRightSideOfBinary(64,void 0,De):c().parenthesizeExpressionOfExportDefault(De),Tt.transformFlags|=gp(Tt.modifiers)|qs(Tt.expression),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function M2(j,se,De){return j.modifiers!==se||j.expression!==De?i(Mk(se,j.isExportEquals,De),j):j}function HR(j,se,De,Tt,wn){const Vi=et(278);return Vi.modifiers=Up(j),Vi.isTypeOnly=se,Vi.exportClause=De,Vi.moduleSpecifier=Tt,Vi.attributes=Vi.assertClause=wn,Vi.transformFlags|=gp(Vi.modifiers)|qs(Vi.exportClause)|qs(Vi.moduleSpecifier),Vi.transformFlags&=-67108865,Vi.jsDoc=void 0,Vi}function kI(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.isTypeOnly!==De||j.exportClause!==Tt||j.moduleSpecifier!==wn||j.attributes!==Vi?JR(HR(se,De,Tt,wn,Vi),j):j}function JR(j,se){return j!==se&&j.modifiers===se.modifiers&&(j.modifiers=se.modifiers),i(j,se)}function PI(j){const se=Fe(279);return se.elements=we(j),se.transformFlags|=gp(se.elements),se.transformFlags&=-67108865,se}function HP(j,se){return j.elements!==se?i(PI(se),j):j}function mD(j,se,De){const Tt=Fe(281);return Tt.isTypeOnly=j,Tt.propertyName=vh(se),Tt.name=vh(De),Tt.transformFlags|=qs(Tt.propertyName)|qs(Tt.name),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function NI(j,se,De,Tt){return j.isTypeOnly!==se||j.propertyName!==De||j.name!==Tt?i(mD(se,De,Tt),j):j}function sw(){const j=et(282);return j.jsDoc=void 0,j}function cw(j){const se=Fe(283);return se.expression=j,se.transformFlags|=qs(se.expression),se.transformFlags&=-67108865,se}function aO(j,se){return j.expression!==se?i(cw(se),j):j}function yB(j){return Fe(j)}function z6(j,se,De=!1){const Tt=Vo(j,De?se&&c().parenthesizeNonArrayTypeOfPostfixType(se):se);return Tt.postfix=De,Tt}function Vo(j,se){const De=Fe(j);return De.type=se,De}function WA(j,se,De){return se.type!==De?i(z6(j,De,se.postfix),se):se}function gD(j,se,De){return se.type!==De?i(Vo(j,De),se):se}function UT(j,se){const De=et(324);return De.parameters=Up(j),De.type=se,De.transformFlags=gp(De.parameters)|(De.type?1:0),De.jsDoc=void 0,De.locals=void 0,De.nextContainer=void 0,De.typeArguments=void 0,De}function wI(j,se,De){return j.parameters!==se||j.type!==De?i(UT(se,De),j):j}function P4(j,se=!1){const De=et(329);return De.jsDocPropertyTags=Up(j),De.isArrayType=se,De}function N4(j,se,De){return j.jsDocPropertyTags!==se||j.isArrayType!==De?i(P4(se,De),j):j}function G6(j){const se=Fe(316);return se.type=j,se}function rs(j,se){return j.type!==se?i(G6(se),j):j}function Ob(j,se,De){const Tt=et(330);return Tt.typeParameters=Up(j),Tt.parameters=we(se),Tt.type=De,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function gf(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?i(Ob(se,De,Tt),j):j}function ko(j){const se=CG(j.kind);return j.tagName.escapedText===ey(se)?j.tagName:Yt(se)}function ac(j,se,De){const Tt=Fe(j);return Tt.tagName=se,Tt.comment=De,Tt}function Ys(j,se,De){const Tt=et(j);return Tt.tagName=se,Tt.comment=De,Tt}function Ni(j,se,De,Tt){const wn=ac(352,j??Yt("template"),Tt);return wn.constraint=se,wn.typeParameters=we(De),wn}function Nl(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.constraint!==De||j.typeParameters!==Tt||j.comment!==wn?i(Ni(se,De,Tt,wn),j):j}function Xd(j,se,De,Tt){const wn=Ys(353,j??Yt("typedef"),Tt);return wn.typeExpression=se,wn.fullName=De,wn.name=Tpe(De),wn.locals=void 0,wn.nextContainer=void 0,wn}function b_(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.typeExpression!==De||j.fullName!==Tt||j.comment!==wn?i(Xd(se,De,Tt,wn),j):j}function Gp(j,se,De,Tt,wn,Vi){const Us=Ys(348,j??Yt("param"),Vi);return Us.typeExpression=Tt,Us.name=se,Us.isNameFirst=!!wn,Us.isBracketed=De,Us}function w1(j,se=ko(j),De,Tt,wn,Vi,Us){return j.tagName!==se||j.name!==De||j.isBracketed!==Tt||j.typeExpression!==wn||j.isNameFirst!==Vi||j.comment!==Us?i(Gp(se,De,Tt,wn,Vi,Us),j):j}function zS(j,se,De,Tt,wn,Vi){const Us=Ys(355,j??Yt("prop"),Vi);return Us.typeExpression=Tt,Us.name=se,Us.isNameFirst=!!wn,Us.isBracketed=De,Us}function SE(j,se=ko(j),De,Tt,wn,Vi,Us){return j.tagName!==se||j.name!==De||j.isBracketed!==Tt||j.typeExpression!==wn||j.isNameFirst!==Vi||j.comment!==Us?i(zS(se,De,Tt,wn,Vi,Us),j):j}function R1(j,se,De,Tt){const wn=Ys(345,j??Yt("callback"),Tt);return wn.typeExpression=se,wn.fullName=De,wn.name=Tpe(De),wn.locals=void 0,wn.nextContainer=void 0,wn}function JP(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.typeExpression!==De||j.fullName!==Tt||j.comment!==wn?i(R1(se,De,Tt,wn),j):j}function RI(j,se,De){const Tt=ac(346,j??Yt("overload"),De);return Tt.typeExpression=se,Tt}function Uy(j,se=ko(j),De,Tt){return j.tagName!==se||j.typeExpression!==De||j.comment!==Tt?i(RI(se,De,Tt),j):j}function Lk(j,se,De){const Tt=ac(335,j??Yt("augments"),De);return Tt.class=se,Tt}function w4(j,se=ko(j),De,Tt){return j.tagName!==se||j.class!==De||j.comment!==Tt?i(Lk(se,De,Tt),j):j}function lw(j,se,De){const Tt=ac(336,j??Yt("implements"),De);return Tt.class=se,Tt}function j6(j,se,De){const Tt=ac(354,j??Yt("see"),De);return Tt.name=se,Tt}function sO(j,se,De,Tt){return j.tagName!==se||j.name!==De||j.comment!==Tt?i(j6(se,De,Tt),j):j}function Ok(j){const se=Fe(317);return se.name=j,se}function vB(j,se){return j.name!==se?i(Ok(se),j):j}function Rm(j,se){const De=Fe(318);return De.left=j,De.right=se,De.transformFlags|=qs(De.left)|qs(De.right),De}function Yx(j,se,De){return j.left!==se||j.right!==De?i(Rm(se,De),j):j}function uw(j,se){const De=Fe(331);return De.name=j,De.text=se,De}function Av(j,se,De){return j.name!==se?i(uw(se,De),j):j}function C0(j,se){const De=Fe(332);return De.name=j,De.text=se,De}function gV(j,se,De){return j.name!==se?i(C0(se,De),j):j}function pT(j,se){const De=Fe(333);return De.name=j,De.text=se,De}function EE(j,se,De){return j.name!==se?i(pT(se,De),j):j}function cO(j,se=ko(j),De,Tt){return j.tagName!==se||j.class!==De||j.comment!==Tt?i(lw(se,De,Tt),j):j}function Qx(j,se,De){return ac(j,se??Yt(CG(j)),De)}function V6(j,se,De=ko(se),Tt){return se.tagName!==De||se.comment!==Tt?i(Qx(j,De,Tt),se):se}function fw(j,se,De,Tt){const wn=ac(j,se??Yt(CG(j)),Tt);return wn.typeExpression=De,wn}function s0(j,se,De=ko(se),Tt,wn){return se.tagName!==De||se.typeExpression!==Tt||se.comment!==wn?i(fw(j,De,Tt,wn),se):se}function U6(j,se){return ac(334,j,se)}function GS(j,se,De){return j.tagName!==se||j.comment!==De?i(U6(se,De),j):j}function R4(j,se,De){const Tt=Ys(347,j??Yt(CG(347)),De);return Tt.typeExpression=se,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function Kq(j,se=ko(j),De,Tt){return j.tagName!==se||j.typeExpression!==De||j.comment!==Tt?i(R4(se,De,Tt),j):j}function Qg(j){const se=Fe(328);return se.text=j,se}function bB(j,se){return j.text!==se?i(Qg(se),j):j}function BA(j,se){const De=Fe(327);return De.comment=j,De.tags=Up(se),De}function $R(j,se,De){return j.comment!==se||j.tags!==De?i(BA(se,De),j):j}function M1(j,se,De){const Tt=Fe(284);return Tt.openingElement=j,Tt.children=we(se),Tt.closingElement=De,Tt.transformFlags|=qs(Tt.openingElement)|gp(Tt.children)|qs(Tt.closingElement)|2,Tt}function gS(j,se,De,Tt){return j.openingElement!==se||j.children!==De||j.closingElement!==Tt?i(M1(se,De,Tt),j):j}function _w(j,se,De){const Tt=Fe(285);return Tt.tagName=j,Tt.typeArguments=Up(se),Tt.attributes=De,Tt.transformFlags|=qs(Tt.tagName)|gp(Tt.typeArguments)|qs(Tt.attributes)|2,Tt.typeArguments&&(Tt.transformFlags|=1),Tt}function qR(j,se,De,Tt){return j.tagName!==se||j.typeArguments!==De||j.attributes!==Tt?i(_w(se,De,Tt),j):j}function i2(j,se,De){const Tt=Fe(286);return Tt.tagName=j,Tt.typeArguments=Up(se),Tt.attributes=De,Tt.transformFlags|=qs(Tt.tagName)|gp(Tt.typeArguments)|qs(Tt.attributes)|2,se&&(Tt.transformFlags|=1),Tt}function hS(j,se,De,Tt){return j.tagName!==se||j.typeArguments!==De||j.attributes!==Tt?i(i2(se,De,Tt),j):j}function TB(j){const se=Fe(287);return se.tagName=j,se.transformFlags|=qs(se.tagName)|2,se}function M4(j,se){return j.tagName!==se?i(TB(se),j):j}function Zx(j,se,De){const Tt=Fe(288);return Tt.openingFragment=j,Tt.children=we(se),Tt.closingFragment=De,Tt.transformFlags|=qs(Tt.openingFragment)|gp(Tt.children)|qs(Tt.closingFragment)|2,Tt}function lO(j,se,De,Tt){return j.openingFragment!==se||j.children!==De||j.closingFragment!==Tt?i(Zx(se,De,Tt),j):j}function H6(j,se){const De=Fe(12);return De.text=j,De.containsOnlyTriviaWhiteSpaces=!!se,De.transformFlags|=2,De}function hV(j,se,De){return j.text!==se||j.containsOnlyTriviaWhiteSpaces!==De?i(H6(se,De),j):j}function yV(){const j=Fe(289);return j.transformFlags|=2,j}function JF(){const j=Fe(290);return j.transformFlags|=2,j}function SB(j,se){const De=et(291);return De.name=j,De.initializer=se,De.transformFlags|=qs(De.name)|qs(De.initializer)|2,De}function uO(j,se,De){return j.name!==se||j.initializer!==De?i(SB(se,De),j):j}function L2(j){const se=et(292);return se.properties=we(j),se.transformFlags|=gp(se.properties)|2,se}function dw(j,se){return j.properties!==se?i(L2(se),j):j}function EB(j){const se=Fe(293);return se.expression=j,se.transformFlags|=qs(se.expression)|2,se}function vV(j,se){return j.expression!==se?i(EB(se),j):j}function jp(j,se){const De=Fe(294);return De.dotDotDotToken=j,De.expression=se,De.transformFlags|=qs(De.dotDotDotToken)|qs(De.expression)|2,De}function sc(j,se){return j.expression!==se?i(jp(j.dotDotDotToken,se),j):j}function hx(j,se){const De=Fe(295);return De.namespace=j,De.name=se,De.transformFlags|=qs(De.namespace)|qs(De.name)|2,De}function xE(j,se,De){return j.namespace!==se||j.name!==De?i(hx(se,De),j):j}function fO(j,se){const De=Fe(296);return De.expression=c().parenthesizeExpressionForDisallowedComma(j),De.statements=we(se),De.transformFlags|=qs(De.expression)|gp(De.statements),De.jsDoc=void 0,De}function bV(j,se,De){return j.expression!==se||j.statements!==De?i(fO(se,De),j):j}function _O(j){const se=Fe(297);return se.statements=we(j),se.transformFlags=gp(se.statements),se}function $F(j,se){return j.statements!==se?i(_O(se),j):j}function L4(j,se){const De=Fe(298);switch(De.token=j,De.types=we(se),De.transformFlags|=gp(De.types),j){case 96:De.transformFlags|=1024;break;case 119:De.transformFlags|=1;break;default:return re.assertNever(j)}return De}function AE(j,se){return j.types!==se?i(L4(j.token,se),j):j}function eA(j,se){const De=Fe(299);return De.variableDeclaration=xB(j),De.block=se,De.transformFlags|=qs(De.variableDeclaration)|qs(De.block)|(j?0:64),De.locals=void 0,De.nextContainer=void 0,De}function KR(j,se,De){return j.variableDeclaration!==se||j.block!==De?i(eA(se,De),j):j}function hD(j,se){const De=et(303);return De.name=vh(j),De.initializer=c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=ms(De.name)|qs(De.initializer),De.modifiers=void 0,De.questionToken=void 0,De.exclamationToken=void 0,De.jsDoc=void 0,De}function TC(j,se,De){return j.name!==se||j.initializer!==De?L1(hD(se,De),j):j}function L1(j,se){return j!==se&&(j.modifiers=se.modifiers,j.questionToken=se.questionToken,j.exclamationToken=se.exclamationToken),i(j,se)}function mT(j,se){const De=et(304);return De.name=vh(j),De.objectAssignmentInitializer=se&&c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=cp(De.name)|qs(De.objectAssignmentInitializer)|1024,De.equalsToken=void 0,De.modifiers=void 0,De.questionToken=void 0,De.exclamationToken=void 0,De.jsDoc=void 0,De}function Vg(j,se,De){return j.name!==se||j.objectAssignmentInitializer!==De?SC(mT(se,De),j):j}function SC(j,se){return j!==se&&(j.modifiers=se.modifiers,j.questionToken=se.questionToken,j.exclamationToken=se.exclamationToken,j.equalsToken=se.equalsToken),i(j,se)}function tA(j){const se=et(305);return se.expression=c().parenthesizeExpressionForDisallowedComma(j),se.transformFlags|=qs(se.expression)|128|65536,se.jsDoc=void 0,se}function O4(j,se){return j.expression!==se?i(tA(se),j):j}function c0(j,se){const De=et(306);return De.name=vh(j),De.initializer=se&&c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=qs(De.name)|qs(De.initializer)|1,De.jsDoc=void 0,De}function jS(j,se,De){return j.name!==se||j.initializer!==De?i(c0(se,De),j):j}function dO(j,se,De){const Tt=n.createBaseSourceFileNode(312);return Tt.statements=we(j),Tt.endOfFileToken=se,Tt.flags|=De,Tt.text="",Tt.fileName="",Tt.path="",Tt.resolvedPath="",Tt.originalFileName="",Tt.languageVersion=0,Tt.languageVariant=0,Tt.scriptKind=0,Tt.isDeclarationFile=!1,Tt.hasNoDefaultLib=!1,Tt.transformFlags|=gp(Tt.statements)|qs(Tt.endOfFileToken),Tt.locals=void 0,Tt.nextContainer=void 0,Tt.endFlowNode=void 0,Tt.nodeCount=0,Tt.identifierCount=0,Tt.symbolCount=0,Tt.parseDiagnostics=void 0,Tt.bindDiagnostics=void 0,Tt.bindSuggestionDiagnostics=void 0,Tt.lineMap=void 0,Tt.externalModuleIndicator=void 0,Tt.setExternalModuleIndicator=void 0,Tt.pragmas=void 0,Tt.checkJsDirective=void 0,Tt.referencedFiles=void 0,Tt.typeReferenceDirectives=void 0,Tt.libReferenceDirectives=void 0,Tt.amdDependencies=void 0,Tt.commentDirectives=void 0,Tt.identifiers=void 0,Tt.packageJsonLocations=void 0,Tt.packageJsonScope=void 0,Tt.imports=void 0,Tt.moduleAugmentations=void 0,Tt.ambientModuleNames=void 0,Tt.classifiableNames=void 0,Tt.impliedNodeFormat=void 0,Tt}function pO(j){const se=Object.create(j.redirectTarget);return Object.defineProperties(se,{id:{get(){return this.redirectInfo.redirectTarget.id},set(De){this.redirectInfo.redirectTarget.id=De}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(De){this.redirectInfo.redirectTarget.symbol=De}}}),se.redirectInfo=j,se}function Xq(j){const se=pO(j.redirectInfo);return se.flags|=j.flags&-17,se.fileName=j.fileName,se.path=j.path,se.resolvedPath=j.resolvedPath,se.originalFileName=j.originalFileName,se.packageJsonLocations=j.packageJsonLocations,se.packageJsonScope=j.packageJsonScope,se.emitNode=void 0,se}function Ty(j){const se=n.createBaseSourceFileNode(312);se.flags|=j.flags&-17;for(const De in j)if(!(ef(se,De)||!ef(j,De))){if(De==="emitNode"){se.emitNode=void 0;continue}se[De]=j[De]}return se}function sy(j){const se=j.redirectInfo?Xq(j):Ty(j);return Ls(se,j),se}function K0(j,se,De,Tt,wn,Vi,Us){const Hf=sy(j);return Hf.statements=we(se),Hf.isDeclarationFile=De,Hf.referencedFiles=Tt,Hf.typeReferenceDirectives=wn,Hf.hasNoDefaultLib=Vi,Hf.libReferenceDirectives=Us,Hf.transformFlags=gp(Hf.statements)|qs(Hf.endOfFileToken),Hf}function O2(j,se,De=j.isDeclarationFile,Tt=j.referencedFiles,wn=j.typeReferenceDirectives,Vi=j.hasNoDefaultLib,Us=j.libReferenceDirectives){return j.statements!==se||j.isDeclarationFile!==De||j.referencedFiles!==Tt||j.typeReferenceDirectives!==wn||j.hasNoDefaultLib!==Vi||j.libReferenceDirectives!==Us?i(K0(j,se,De,Tt,wn,Vi,Us),j):j}function o2(j,se=Yn){const De=Fe(313);return De.prepends=se,De.sourceFiles=j,De.syntheticFileReferences=void 0,De.syntheticTypeReferences=void 0,De.syntheticLibReferences=void 0,De.hasNoDefaultLib=void 0,De}function pw(j,se,De=Yn){return j.sourceFiles!==se||j.prepends!==De?i(o2(se,De),j):j}function Vp(j,se,De){const Tt=Fe(314);return Tt.prologues=j,Tt.syntheticReferences=se,Tt.texts=De,Tt.fileName="",Tt.text="",Tt.referencedFiles=Yn,Tt.libReferenceDirectives=Yn,Tt.getLineAndCharacterOfPosition=wn=>xm(Tt,wn),Tt}function F4(j,se){const De=Fe(j);return De.data=se,De}function ne(j){return F4(307,j)}function yt(j,se){const De=F4(308,j);return De.texts=se,De}function Er(j,se){return F4(se?310:309,j)}function Wi(j){const se=Fe(311);return se.data=j.data,se.section=j,se}function nc(){const j=Fe(315);return j.javascriptText="",j.declarationText="",j}function Vu(j,se=!1,De){const Tt=Fe(237);return Tt.type=j,Tt.isSpread=se,Tt.tupleNameSource=De,Tt}function ql(j){const se=Fe(358);return se._children=j,se}function Pf(j){const se=Fe(359);return se.original=j,Tn(se,j),se}function Z_(j,se){const De=Fe(360);return De.expression=j,De.original=se,De.transformFlags|=qs(De.expression)|1,Tn(De,se),De}function CE(j,se){return j.expression!==se?i(Z_(se,j.original),j):j}function a2(j){if(Hd(j)&&!qD(j)&&!j.original&&!j.emitNode&&!j.id){if(E_(j))return j.elements;if(Ds(j)&&WY(j.operatorToken))return[j.left,j.right]}return j}function ru(j){const se=Fe(361);return se.elements=we(kx(j,a2)),se.transformFlags|=gp(se.elements),se}function Fk(j,se){return j.elements!==se?i(ru(se),j):j}function Co(j,se){const De=Fe(362);return De.expression=j,De.thisArg=se,De.transformFlags|=qs(De.expression)|qs(De.thisArg),De}function DE(j,se,De){return j.expression!==se||j.thisArg!==De?i(Co(se,De),j):j}function MI(j){const se=st(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),RY(se,{...j.emitNode.autoGenerate}),se}function mO(j){const se=st(j.escapedText);se.flags|=j.flags&-17,se.jsDoc=j.jsDoc,se.flowNode=j.flowNode,se.symbol=j.symbol,se.transformFlags=j.transformFlags,Ls(se,j);const De=J7(j);return De&&d6(se,De),se}function gO(j){const se=Rn(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),RY(se,{...j.emitNode.autoGenerate}),se}function qF(j){const se=Rn(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),se}function LI(j){if(j===void 0)return j;if(Nu(j))return sy(j);if($g(j))return MI(j);if(xn(j))return mO(j);if(s7(j))return gO(j);if(Lu(j))return qF(j);const se=GU(j.kind)?n.createBaseNode(j.kind):n.createBaseTokenNode(j.kind);se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j);for(const De in j)ef(se,De)||!ef(j,De)||(se[De]=j[De]);return se}function $P(j,se,De){return da(VT(void 0,void 0,void 0,void 0,se?[se]:[],void 0,Q(j,!0)),void 0,De?[De]:[])}function XR(j,se,De){return da(fb(void 0,void 0,se?[se]:[],void 0,void 0,Q(j,!0)),void 0,De?[De]:[])}function mw(){return q0(dt("0"))}function Yq(j){return Mk(void 0,!1,j)}function KF(j){return HR(void 0,!1,PI([mD(!1,void 0,j)]))}function O1(j,se){return se==="null"?ve.createStrictEquality(j,Tr()):se==="undefined"?ve.createStrictEquality(j,mw()):ve.createStrictEquality(xv(j),Ct(se))}function W4(j,se){return se==="null"?ve.createStrictInequality(j,Tr()):se==="undefined"?ve.createStrictInequality(j,mw()):ve.createStrictInequality(xv(j),Ct(se))}function Wk(j,se,De){return AN(j)?t_(yp(j,void 0,se),void 0,void 0,De):da(bm(j,se),void 0,De)}function gw(j,se,De){return Wk(j,"bind",[se,...De])}function Qq(j,se,De){return Wk(j,"call",[se,...De])}function OI(j,se,De){return Wk(j,"apply",[se,De])}function HT(j,se,De){return Wk(Yt(j),se,De)}function F0e(j,se){return Wk(j,"slice",se===void 0?[]:[J6(se)])}function Bk(j,se){return Wk(j,"concat",se)}function XF(j,se,De){return HT("Object","defineProperty",[j,J6(se),De])}function ute(j,se){return HT("Object","getOwnPropertyDescriptor",[j,J6(se)])}function Xe(j,se,De){return HT("Reflect","get",De?[j,se,De]:[j,se])}function $t(j,se,De,Tt){return HT("Reflect","set",Tt?[j,se,De,Tt]:[j,se,De])}function bn(j,se,De){return De?(j.push(hD(se,De)),!0):!1}function Fn(j,se){const De=[];bn(De,"enumerable",J6(j.enumerable)),bn(De,"configurable",J6(j.configurable));let Tt=bn(De,"writable",J6(j.writable));Tt=bn(De,"value",j.value)||Tt;let wn=bn(De,"get",j.get);return wn=bn(De,"set",j.set)||wn,re.assert(!(Tt&&wn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Gd(De,!se)}function Ri(j,se){switch(j.kind){case 217:return P1(j,se);case 216:return Qm(j,j.type,se);case 234:return ri(j,se,j.type);case 238:return Oo(j,se,j.type);case 235:return yo(j,se);case 360:return CE(j,se)}}function Ti(j){return fE(j)&&Hd(j)&&Hd(YL(j))&&Hd(MS(j))&&!gt(y3(j))&&!gt(PY(j))}function Xc(j,se,De=15){return j&&BG(j,De)&&!Ti(j)?Ri(j,Xc(j.expression,se)):se}function Fu(j,se,De){if(!se)return j;const Tt=oO(se,se.label,tF(se.statement)?Fu(j,se.statement):j);return De&&De(se),Tt}function cu(j,se){const De=rg(j);switch(De.kind){case 80:return se;case 110:case 9:case 10:case 11:return!1;case 209:return De.elements.length!==0;case 210:return De.properties.length>0;default:return!0}}function Ml(j,se,De,Tt=!1){const wn=iv(j,15);let Vi,Us;return MT(wn)?(Vi=fr(),Us=wn):nT(wn)?(Vi=fr(),Us=De!==void 0&&De<2?Tn(Yt("_super"),wn):wn):wd(wn)&8192?(Vi=mw(),Us=c().parenthesizeLeftSideOfAccess(wn,!1)):Ac(wn)?cu(wn.expression,Tt)?(Vi=Et(se),Us=bm(Tn(ve.createAssignment(Vi,wn.expression),wn.expression),wn.name),Tn(Us,wn)):(Vi=wn.expression,Us=wn):Hm(wn)?cu(wn.expression,Tt)?(Vi=Et(se),Us=Xp(Tn(ve.createAssignment(Vi,wn.expression),wn.expression),wn.argumentExpression),Tn(Us,wn)):(Vi=wn.expression,Us=wn):(Vi=mw(),Us=c().parenthesizeLeftSideOfAccess(j,!1)),{target:Us,thisArg:Vi}}function Zu(j,se){return bm(Bh(Gd([ln(void 0,"value",[gc(void 0,void 0,j,void 0,void 0,void 0)],Q([pu(se)]))])),"value")}function hg(j){return j.length>10?ru(j):Em(j,ve.createComma)}function T_(j,se,De,Tt=0,wn){const Vi=wn?j&&Kre(j):i_(j);if(Vi&&xn(Vi)&&!$g(Vi)){const Us=kl(Tn(LI(Vi),Vi),Vi.parent);return Tt|=wd(Vi),De||(Tt|=96),se||(Tt|=3072),Tt&&_s(Us,Tt),Us}return nn(j)}function Cd(j,se,De){return T_(j,se,De,98304)}function pb(j,se,De,Tt){return T_(j,se,De,32768,Tt)}function zA(j,se,De){return T_(j,se,De,16384)}function qP(j,se,De){return T_(j,se,De)}function yx(j,se,De,Tt){const wn=bm(j,Hd(se)?se:LI(se));Tn(wn,se);let Vi=0;return Tt||(Vi|=96),De||(Vi|=3072),Vi&&_s(wn,Vi),wn}function mb(j,se,De,Tt){return j&&ul(se,32)?yx(j,T_(se),De,Tt):zA(se,De,Tt)}function KP(j,se,De,Tt){const wn=Zq(j,se,0,De);return YF(j,se,wn,Tt)}function TV(j){return Sd(j.expression)&&j.expression.text==="use strict"}function B4(){return lb(pu(Ct("use strict")))}function Zq(j,se,De=0,Tt){re.assert(se.length===0,"Prologue directives should be at the first statement in the target statements array");let wn=!1;const Vi=j.length;for(;DeHf&&VS.splice(wn,0,...se.slice(Hf,ng)),Hf>Us&&VS.splice(Tt,0,...se.slice(Us,Hf)),Us>Vi&&VS.splice(De,0,...se.slice(Vi,Us)),Vi>0)if(De===0)VS.splice(0,0,...se.slice(0,Vi));else{const G4=new Map;for(let j4=0;j4=0;j4--){const hO=se[j4];G4.has(hO.expression.text)||VS.unshift(hO)}}return BM(j)?Tn(we(VS,j.hasTrailingComma),j):j}function z4(j,se){let De;return typeof se=="number"?De=Ki(se):De=se,Np(j)?ki(j,De,j.name,j.constraint,j.default):Os(j)?Wl(j,De,j.dotDotDotToken,j.name,j.questionToken,j.type,j.initializer):MG(j)?vo(j,De,j.typeParameters,j.parameters,j.type):em(j)?za(j,De,j.name,j.questionToken,j.type):nu(j)?na(j,De,j.name,j.questionToken??j.exclamationToken,j.type,j.initializer):pg(j)?us(j,De,j.name,j.questionToken,j.typeParameters,j.parameters,j.type):tm(j)?Qu(j,De,j.asteriskToken,j.name,j.questionToken,j.typeParameters,j.parameters,j.type,j.body):Lh(j)?Hn(j,De,j.parameters,j.body):lE(j)?Pr(j,De,j.name,j.parameters,j.type,j.body):Xb(j)?Wn(j,De,j.name,j.parameters,j.body):Z2(j)?yi(j,De,j.parameters,j.type):Jm(j)?Zm(j,De,j.asteriskToken,j.name,j.typeParameters,j.parameters,j.type,j.body):$m(j)?FS(j,De,j.typeParameters,j.parameters,j.type,j.equalsGreaterThanToken,j.body):v0(j)?Uv(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):Xg(j)?oo(j,De,j.declarationList):mg(j)?zr(j,De,j.asteriskToken,j.name,j.typeParameters,j.parameters,j.type,j.body):Ih(j)?Wc(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):xp(j)?_c(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):z0(j)?kf(j,De,j.name,j.typeParameters,j.type):xP(j)?hn(j,De,j.name,j.members):py(j)?yh(j,De,j.name,j.body):Yb(j)?VP(j,De,j.isTypeOnly,j.name,j.moduleReference):n0(j)?Bd(j,De,j.importClause,j.moduleSpecifier,j.attributes):my(j)?M2(j,De,j.expression):ry(j)?kI(j,De,j.isTypeOnly,j.exportClause,j.moduleSpecifier,j.attributes):re.assertNever(j)}function GA(j,se){return Os(j)?Wl(j,se,j.dotDotDotToken,j.name,j.questionToken,j.type,j.initializer):nu(j)?na(j,se,j.name,j.questionToken??j.exclamationToken,j.type,j.initializer):tm(j)?Qu(j,se,j.asteriskToken,j.name,j.questionToken,j.typeParameters,j.parameters,j.type,j.body):lE(j)?Pr(j,se,j.name,j.parameters,j.type,j.body):Xb(j)?Wn(j,se,j.name,j.parameters,j.body):v0(j)?Uv(j,se,j.name,j.typeParameters,j.heritageClauses,j.members):Ih(j)?Wc(j,se,j.name,j.typeParameters,j.heritageClauses,j.members):re.assertNever(j)}function eK(j,se){switch(j.kind){case 177:return Pr(j,j.modifiers,se,j.parameters,j.type,j.body);case 178:return Wn(j,j.modifiers,se,j.parameters,j.body);case 174:return Qu(j,j.modifiers,j.asteriskToken,se,j.questionToken,j.typeParameters,j.parameters,j.type,j.body);case 173:return us(j,j.modifiers,se,j.questionToken,j.typeParameters,j.parameters,j.type);case 172:return na(j,j.modifiers,se,j.questionToken??j.exclamationToken,j.type,j.initializer);case 171:return za(j,j.modifiers,se,j.questionToken,j.type);case 303:return TC(j,se,j.initializer)}}function Up(j){return j?we(j):void 0}function vh(j){return typeof j=="string"?Yt(j):j}function J6(j){return typeof j=="string"?Ct(j):typeof j=="number"?dt(j):typeof j=="boolean"?j?Vr():Pn():j}function xC(j){return j&&c().parenthesizeExpressionForDisallowedComma(j)}function F2(j){return typeof j=="number"?jt(j):j}function XP(j){return j&&rD(j)?Tn(Ls(Js(),j),j):j}function xB(j){return typeof j=="string"||j&&!Kc(j)?o1(j,void 0,void 0,void 0):j}}function _st(e,n){return e!==n&&Tn(e,n),e}function XL(e,n){return e!==n&&(Ls(e,n),Tn(e,n)),e}function CG(e){switch(e){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 re.fail(`Unsupported kind: ${re.formatSyntaxKind(e)}`)}}function dst(e,n){switch(TR||(TR=CS(99,!1,0)),e){case 15:TR.setText("`"+n+"`");break;case 16:TR.setText("`"+n+"${");break;case 17:TR.setText("}"+n+"${");break;case 18:TR.setText("}"+n+"`");break}let i=TR.scan();if(i===20&&(i=TR.reScanTemplateToken(!1)),TR.isUnterminated())return TR.setText(void 0),be;let c;switch(i){case 15:case 16:case 17:case 18:c=TR.getTokenValue();break}return c===void 0||TR.scan()!==1?(TR.setText(void 0),be):(TR.setText(void 0),c)}function ms(e){return e&&xn(e)?cp(e):qs(e)}function cp(e){return qs(e)&-67108865}function aUe(e,n){return n|e.transformFlags&134234112}function qs(e){if(!e)return 0;const n=e.transformFlags&~v6e(e.kind);return mp(e)&&qg(e.name)?aUe(e.name,n):n}function gp(e){return e?e.transformFlags:0}function pEe(e){let n=0;for(const i of e)n|=qs(i);e.transformFlags=n}function v6e(e){if(e>=182&&e<=205)return-2;switch(e){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 Qde(e){return e.flags|=16,e}function mEe(e,n,i){let c,u,d,h,S,E,P,k,F,$;As(e)?(d="",h=e,S=e.length,E=n,P=i):(re.assert(n==="js"||n==="dts"),d=(n==="js"?e.javascriptPath:e.declarationPath)||"",E=n==="js"?e.javascriptMapPath:e.declarationMapPath,k=()=>n==="js"?e.javascriptText:e.declarationText,F=()=>n==="js"?e.javascriptMapText:e.declarationMapText,S=()=>k().length,e.buildInfo&&e.buildInfo.bundle&&(re.assert(i===void 0||typeof i=="boolean"),c=i,u=n==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,$=e.oldFileOfCurrentEmit));const J=$?T6e(re.checkDefined(u)):b6e(u,c,S);return J.fileName=d,J.sourceMapPath=E,J.oldFileOfCurrentEmit=$,k&&F?(Object.defineProperty(J,"text",{get:k}),Object.defineProperty(J,"sourceMapText",{get:F})):(re.assert(!$),J.text=h??"",J.sourceMapText=P),J}function b6e(e,n,i){let c,u,d,h,S,E,P,k;for(const $ of e?e.sections:Yn)switch($.kind){case"prologue":c=ur(c,Tn(he.createUnparsedPrologue($.data),$));break;case"emitHelpers":u=ur(u,MY().get($.data));break;case"no-default-lib":k=!0;break;case"reference":d=ur(d,{pos:-1,end:-1,fileName:$.data});break;case"type":h=ur(h,{pos:-1,end:-1,fileName:$.data});break;case"type-import":h=ur(h,{pos:-1,end:-1,fileName:$.data,resolutionMode:99});break;case"type-require":h=ur(h,{pos:-1,end:-1,fileName:$.data,resolutionMode:1});break;case"lib":S=ur(S,{pos:-1,end:-1,fileName:$.data});break;case"prepend":let J;for(const X of $.texts)(!n||X.kind!=="internal")&&(J=ur(J,Tn(he.createUnparsedTextLike(X.data,X.kind==="internal"),X)));E=Oi(E,J),P=ur(P,he.createUnparsedPrepend($.data,J??Yn));break;case"internal":if(n){P||(P=[]);break}case"text":P=ur(P,Tn(he.createUnparsedTextLike($.data,$.kind==="internal"),$));break;default:re.assertNever($)}if(!P){const $=he.createUnparsedTextLike(void 0,!1);f3($,0,typeof i=="function"?i():i),P=[$]}const F=Ck.createUnparsedSource(c??Yn,void 0,P);return u6(c,F),u6(P,F),u6(E,F),F.hasNoDefaultLib=k,F.helpers=u,F.referencedFiles=d||Yn,F.typeReferenceDirectives=h,F.libReferenceDirectives=S||Yn,F}function T6e(e){let n,i;for(const u of e.sections)switch(u.kind){case"internal":case"text":n=ur(n,Tn(he.createUnparsedTextLike(u.data,u.kind==="internal"),u));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":i=ur(i,Tn(he.createUnparsedSyntheticReference(u),u));break;case"prologue":case"emitHelpers":case"prepend":break;default:re.assertNever(u)}const c=he.createUnparsedSource(Yn,i,n??Yn);return u6(i,c),u6(n,c),c.helpers=Vn(e.sources&&e.sources.helpers,u=>MY().get(u)),c}function sUe(e,n,i,c,u,d){return As(e)?gEe(void 0,e,i,c,void 0,n,u,d):tc(e,n,i,c,u,d)}function tc(e,n,i,c,u,d,h,S){const E=Ck.createInputFiles();E.javascriptPath=n,E.javascriptMapPath=i,E.declarationPath=c,E.declarationMapPath=u,E.buildInfoPath=d;const P=new Map,k=X=>{if(X===void 0)return;let ie=P.get(X);return ie===void 0&&(ie=e(X),P.set(X,ie!==void 0?ie:!1)),ie!==!1?ie:void 0},F=X=>{const ie=k(X);return ie!==void 0?ie:`/* Input file ${X} was missing */\r -`};let $;return Object.defineProperties(E,{javascriptText:{get:()=>F(n)},javascriptMapText:{get:()=>k(i)},declarationText:{get:()=>F(re.checkDefined(c))},declarationMapText:{get:()=>k(u)},buildInfo:{get:()=>{if($===void 0&&d)if(h!=null&&h.getBuildInfo)$=h.getBuildInfo(d,S.configFilePath)??!1;else{const X=k(d);$=X!==void 0?Fme(d,X)??!1:!1}return $||void 0}}}),E}function gEe(e,n,i,c,u,d,h,S,E,P,k){const F=Ck.createInputFiles();return F.javascriptPath=e,F.javascriptText=n,F.javascriptMapPath=i,F.javascriptMapText=c,F.declarationPath=u,F.declarationText=d,F.declarationMapPath=h,F.declarationMapText=S,F.buildInfoPath=E,F.buildInfo=P,F.oldFileOfCurrentEmit=k,F}function cUe(e,n,i){return new(hEe||(hEe=W0.getSourceMapSourceConstructor()))(e,n,i)}function Ls(e,n){if(e.original!==n&&(e.original=n,n)){const i=n.emitNode;i&&(e.emitNode=S6e(i,e.emitNode))}return e}function S6e(e,n){const{flags:i,internalFlags:c,leadingComments:u,trailingComments:d,commentRange:h,sourceMapRange:S,tokenSourceMapRanges:E,constantValue:P,helpers:k,startsOnNewLine:F,snippetElement:$,classThis:J,assignedName:X}=e;if(n||(n={}),i&&(n.flags=i),c&&(n.internalFlags=c&-9),u&&(n.leadingComments=Oi(u.slice(),n.leadingComments)),d&&(n.trailingComments=Oi(d.slice(),n.trailingComments)),h&&(n.commentRange=h),S&&(n.sourceMapRange=S),E&&(n.tokenSourceMapRanges=E6e(E,n.tokenSourceMapRanges)),P!==void 0&&(n.constantValue=P),k)for(const ie of k)n.helpers=ST(n.helpers,ie);return F!==void 0&&(n.startsOnNewLine=F),$!==void 0&&(n.snippetElement=$),J&&(n.classThis=J),X&&(n.assignedName=X),n}function E6e(e,n){n||(n=[]);for(const i in e)n[i]=e[i];return n}var hk,Ioe,sJ,TR,be,kY,lUe,he,hEe,Zde=G({"src/compiler/factory/nodeFactory.ts"(){md(),hk=0,Ioe=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(Ioe||{}),sJ=[],be={},kY=Yde(),lUe={createBaseSourceFileNode:e=>Qde(kY.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Qde(kY.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Qde(kY.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Qde(kY.createBaseTokenNode(e)),createBaseNode:e=>Qde(kY.createBaseNode(e))},he=AG(4,lUe)}});function Sa(e){if(e.emitNode)re.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(qD(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const n=ts(__(ts(e)))??re.fail("Could not determine parsed source file.");Sa(n).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function cI(e){var n,i;const c=(i=(n=ts(__(e)))==null?void 0:n.emitNode)==null?void 0:i.annotatedNodes;if(c)for(const u of c)u.emitNode=void 0}function aW(e){const n=Sa(e);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,e}function _s(e,n){return Sa(e).flags=n,e}function cE(e,n){const i=Sa(e);return i.flags=i.flags|n,e}function Sp(e,n){return Sa(e).internalFlags=n,e}function DG(e,n){const i=Sa(e);return i.internalFlags=i.internalFlags|n,e}function YL(e){var n;return((n=e.emitNode)==null?void 0:n.sourceMapRange)??e}function lp(e,n){return Sa(e).sourceMapRange=n,e}function epe(e,n){var i,c;return(c=(i=e.emitNode)==null?void 0:i.tokenSourceMapRanges)==null?void 0:c[n]}function lI(e,n,i){const c=Sa(e),u=c.tokenSourceMapRanges??(c.tokenSourceMapRanges=[]);return u[n]=i,e}function Ry(e){var n;return(n=e.emitNode)==null?void 0:n.startsOnNewLine}function U7(e,n){return Sa(e).startsOnNewLine=n,e}function MS(e){var n;return((n=e.emitNode)==null?void 0:n.commentRange)??e}function dy(e,n){return Sa(e).commentRange=n,e}function y3(e){var n;return(n=e.emitNode)==null?void 0:n.leadingComments}function uI(e,n){return Sa(e).leadingComments=n,e}function sW(e,n,i,c){return uI(e,ur(y3(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:i}))}function PY(e){var n;return(n=e.emitNode)==null?void 0:n.trailingComments}function cW(e,n){return Sa(e).trailingComments=n,e}function koe(e,n,i,c){return cW(e,ur(PY(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:i}))}function lW(e,n){uI(e,y3(n)),cW(e,PY(n));const i=Sa(n);return i.leadingComments=void 0,i.trailingComments=void 0,e}function JN(e){var n;return(n=e.emitNode)==null?void 0:n.constantValue}function x6e(e,n){const i=Sa(e);return i.constantValue=n,e}function v3(e,n){const i=Sa(e);return i.helpers=ur(i.helpers,n),e}function $N(e,n){if(gt(n)){const i=Sa(e);for(const c of n)i.helpers=ST(i.helpers,c)}return e}function yEe(e,n){var i;const c=(i=e.emitNode)==null?void 0:i.helpers;return c?AL(c,n):!1}function NY(e){var n;return(n=e.emitNode)==null?void 0:n.helpers}function tpe(e,n,i){const c=e.emitNode,u=c&&c.helpers;if(!gt(u))return;const d=Sa(n);let h=0;for(let S=0;S0&&(u[S-h]=E)}h>0&&(u.length-=h)}function npe(e){var n;return(n=e.emitNode)==null?void 0:n.snippetElement}function rpe(e,n){const i=Sa(e);return i.snippetElement=n,e}function qN(e){return Sa(e).internalFlags|=4,e}function H7(e,n){const i=Sa(e);return i.typeNode=n,e}function wY(e){var n;return(n=e.emitNode)==null?void 0:n.typeNode}function d6(e,n){return Sa(e).identifierTypeArguments=n,e}function J7(e){var n;return(n=e.emitNode)==null?void 0:n.identifierTypeArguments}function RY(e,n){return Sa(e).autoGenerate=n,e}function uUe(e){var n;return(n=e.emitNode)==null?void 0:n.autoGenerate}function vEe(e,n){return Sa(e).generatedImportReference=n,e}function bEe(e){var n;return(n=e.emitNode)==null?void 0:n.generatedImportReference}var A6e=G({"src/compiler/factory/emitNode.ts"(){md()}});function ipe(e){const n=e.factory,i=Pd(()=>Sp(n.createTrue(),8)),c=Pd(()=>Sp(n.createFalse(),8));return{getUnscopedHelperName:u,createDecorateHelper:d,createMetadataHelper:h,createParamHelper:S,createESDecorateHelper:ie,createRunInitializersHelper:ae,createAssignHelper:ve,createAwaitHelper:we,createAsyncGeneratorHelper:Fe,createAsyncDelegatorHelper:et,createAsyncValuesHelper:Pe,createRestHelper:dt,createAwaiterHelper:Ie,createExtendsHelper:ct,createTemplateObjectHelper:Ct,createSpreadArrayHelper:Lt,createPropKeyHelper:Ze,createSetFunctionNameHelper:Ke,createValuesHelper:st,createReadHelper:It,createGeneratorHelper:Yt,createCreateBindingHelper:Et,createImportStarHelper:at,createImportStarCallbackHelper:Qt,createImportDefaultHelper:nn,createExportStarHelper:Rn,createClassPrivateFieldGetHelper:cn,createClassPrivateFieldSetHelper:qt,createClassPrivateFieldInHelper:Kt,createAddDisposableResourceHelper:wr,createDisposeResourcesHelper:Wr};function u(jt){return _s(n.createIdentifier(jt),8196)}function d(jt,En,fr,Tr){e.requestEmitHelper(lJ);const Vr=[];return Vr.push(n.createArrayLiteralExpression(jt,!0)),Vr.push(En),fr&&(Vr.push(fr),Tr&&Vr.push(Tr)),n.createCallExpression(u("__decorate"),void 0,Vr)}function h(jt,En){return e.requestEmitHelper(uJ),n.createCallExpression(u("__metadata"),void 0,[n.createStringLiteral(jt),En])}function S(jt,En,fr){return e.requestEmitHelper(fJ),Tn(n.createCallExpression(u("__param"),void 0,[n.createNumericLiteral(En+""),jt]),fr)}function E(jt){const En=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),jt.name),n.createPropertyAssignment(n.createIdentifier("metadata"),jt.metadata)];return n.createObjectLiteralExpression(En)}function P(jt){const En=jt.computed?n.createElementAccessExpression(n.createIdentifier("obj"),jt.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),jt.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,En))}function k(jt){const En=jt.computed?n.createElementAccessExpression(n.createIdentifier("obj"),jt.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),jt.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(En,n.createIdentifier("value")))])))}function F(jt){const En=jt.computed?jt.name:xn(jt.name)?n.createStringLiteralFromNode(jt.name):jt.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(En,103,n.createIdentifier("obj"))))}function $(jt,En){const fr=[];return fr.push(F(jt)),En.get&&fr.push(P(jt)),En.set&&fr.push(k(jt)),n.createObjectLiteralExpression(fr)}function J(jt){const En=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(jt.kind)),n.createPropertyAssignment(n.createIdentifier("name"),jt.name.computed?jt.name.name:n.createStringLiteralFromNode(jt.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),jt.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),jt.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),$(jt.name,jt.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),jt.metadata)];return n.createObjectLiteralExpression(En)}function X(jt){return jt.kind==="class"?E(jt):J(jt)}function ie(jt,En,fr,Tr,Vr,Pn){return e.requestEmitHelper(b3),n.createCallExpression(u("__esDecorate"),void 0,[jt??n.createNull(),En??n.createNull(),fr,X(Tr),Vr,Pn])}function ae(jt,En,fr){return e.requestEmitHelper(_J),n.createCallExpression(u("__runInitializers"),void 0,fr?[jt,En,fr]:[jt,En])}function ve(jt){return iu(e.getCompilerOptions())>=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,jt):(e.requestEmitHelper(dJ),n.createCallExpression(u("__assign"),void 0,jt))}function we(jt){return e.requestEmitHelper(T3),n.createCallExpression(u("__await"),void 0,[jt])}function Fe(jt,En){return e.requestEmitHelper(T3),e.requestEmitHelper(pJ),(jt.emitNode||(jt.emitNode={})).flags|=1572864,n.createCallExpression(u("__asyncGenerator"),void 0,[En?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),jt])}function et(jt){return e.requestEmitHelper(T3),e.requestEmitHelper(mJ),n.createCallExpression(u("__asyncDelegator"),void 0,[jt])}function Pe(jt){return e.requestEmitHelper(gJ),n.createCallExpression(u("__asyncValues"),void 0,[jt])}function dt(jt,En,fr,Tr){e.requestEmitHelper(hJ);const Vr=[];let Pn=0;for(let Fr=0;Fr{let c="";for(let u=0;ue.name))}function uW(e,n){return xd(e)&&xn(e.expression)&&(wd(e.expression)&8192)!==0&&e.expression.escapedText===n}var LY,lJ,uJ,fJ,b3,_J,dJ,T3,pJ,mJ,gJ,hJ,yJ,vJ,bJ,TJ,SJ,EJ,$7,xJ,IG,q7,AJ,kG,CJ,DJ,IJ,kJ,Noe,PG,NG,fUe,nS,wG,Wp=G({"src/compiler/factory/emitHelpers.ts"(){md(),LY=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(LY||{}),lJ={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`,W0={getNodeConstructor:()=>Bde,getTokenConstructor:()=>Hat,getIdentifierConstructor:()=>Jat,getPrivateIdentifierConstructor:()=>Bde,getSourceFileConstructor:()=>Bde,getSymbolConstructor:()=>jat,getTypeConstructor:()=>Vat,getSignatureConstructor:()=>Uat,getSourceMapSourceConstructor:()=>$at},lEe=[],IY=/[^\w\s/]/g,uEe=[42,63],Soe=["node_modules","bower_components","jspm_packages"],Eoe=`(?!(${Soe.join("|")})(/|$))`,Jde={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Eoe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Gde(e,Jde.singleAsteriskRegexFragment)},vG={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Eoe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Gde(e,vG.singleAsteriskRegexFragment)},$de={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Gde(e,$de.singleAsteriskRegexFragment)},fEe={files:Jde,directories:vG,exclude:$de},bG=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],xoe=Gf(bG),iJ=[...bG,[".json"]],Aoe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],qde=[[".js",".jsx"],[".mjs"],[".cjs"]],h3=Gf(qde),TG=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Coe=[...TG,[".json"]],oJ=[".d.ts",".d.cts",".d.mts"],SG=[".ts",".cts",".mts",".tsx"],EG=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],_Ee=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(_Ee||{}),Kde=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],Xde={files:Yn,directories:Yn}}});function Yde(){let e,n,i,c,u;return{createBaseSourceFileNode:d,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:S,createBaseTokenNode:E,createBaseNode:P};function d(k){return new(u||(u=W0.getSourceFileConstructor()))(k,-1,-1)}function h(k){return new(i||(i=W0.getIdentifierConstructor()))(k,-1,-1)}function S(k){return new(c||(c=W0.getPrivateIdentifierConstructor()))(k,-1,-1)}function E(k){return new(n||(n=W0.getTokenConstructor()))(k,-1,-1)}function P(k){return new(e||(e=W0.getNodeConstructor()))(k,-1,-1)}}var lst=G({"src/compiler/factory/baseNodeFactory.ts"(){md()}});function dEe(e){let n,i;return{getParenthesizeLeftSideOfBinaryForOperator:c,getParenthesizeRightSideOfBinaryForOperator:u,parenthesizeLeftSideOfBinary:P,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:F,parenthesizeConditionOfConditionalExpression:$,parenthesizeBranchOfConditionalExpression:J,parenthesizeExpressionOfExportDefault:X,parenthesizeExpressionOfNew:ie,parenthesizeLeftSideOfAccess:ae,parenthesizeOperandOfPostfixUnary:ve,parenthesizeOperandOfPrefixUnary:we,parenthesizeExpressionsOfCommaDelimitedList:Fe,parenthesizeExpressionForDisallowedComma:et,parenthesizeExpressionOfExpressionStatement:Pe,parenthesizeConciseBodyOfArrowFunction:dt,parenthesizeCheckTypeOfConditionalType:Ie,parenthesizeExtendsTypeOfConditionalType:ct,parenthesizeConstituentTypesOfUnionType:Lt,parenthesizeConstituentTypeOfUnionType:Ct,parenthesizeConstituentTypesOfIntersectionType:Ke,parenthesizeConstituentTypeOfIntersectionType:Ze,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:It,parenthesizeNonArrayTypeOfPostfixType:Yt,parenthesizeElementTypesOfTupleType:Et,parenthesizeElementTypeOfTupleType:at,parenthesizeTypeOfOptionalType:nn,parenthesizeTypeArguments:qt,parenthesizeLeadingTypeArgument:Rn};function c(Kt){n||(n=new Map);let wr=n.get(Kt);return wr||(wr=Wr=>P(Kt,Wr),n.set(Kt,wr)),wr}function u(Kt){i||(i=new Map);let wr=i.get(Kt);return wr||(wr=Wr=>k(Kt,void 0,Wr),i.set(Kt,wr)),wr}function d(Kt,wr,Wr,jt){const En=Pie(226,Kt),fr=rI(226,Kt),Tr=h2(wr);if(!Wr&&wr.kind===219&&En>3)return!0;const Vr=_G(Tr);switch(pf(Vr,En)){case-1:return!(!Wr&&fr===1&&wr.kind===229);case 1:return!1;case 0:if(Wr)return fr===1;if(Ds(Tr)&&Tr.operatorToken.kind===Kt){if(h(Kt))return!1;if(Kt===40){const Fr=jt?S(jt):0;if(UX(Fr)&&Fr===S(Tr))return!1}}return Y8(Tr)===0}}function h(Kt){return Kt===42||Kt===52||Kt===51||Kt===53||Kt===28}function S(Kt){if(Kt=h2(Kt),UX(Kt.kind))return Kt.kind;if(Kt.kind===226&&Kt.operatorToken.kind===40){if(Kt.cachedLiteralKind!==void 0)return Kt.cachedLiteralKind;const wr=S(Kt.left),Wr=UX(wr)&&wr===S(Kt.right)?wr:0;return Kt.cachedLiteralKind=Wr,Wr}return 0}function E(Kt,wr,Wr,jt){return h2(wr).kind===217?wr:d(Kt,wr,Wr,jt)?e.createParenthesizedExpression(wr):wr}function P(Kt,wr){return E(Kt,wr,!0)}function k(Kt,wr,Wr){return E(Kt,Wr,!1,wr)}function F(Kt){return VJ(Kt)?e.createParenthesizedExpression(Kt):Kt}function $(Kt){const wr=Pie(227,58),Wr=h2(Kt),jt=_G(Wr);return pf(jt,wr)!==1?e.createParenthesizedExpression(Kt):Kt}function J(Kt){const wr=h2(Kt);return VJ(wr)?e.createParenthesizedExpression(Kt):Kt}function X(Kt){const wr=h2(Kt);let Wr=VJ(wr);if(!Wr)switch(qL(wr,!1).kind){case 231:case 218:Wr=!0}return Wr?e.createParenthesizedExpression(Kt):Kt}function ie(Kt){const wr=qL(Kt,!0);switch(wr.kind){case 213:return e.createParenthesizedExpression(Kt);case 214:return wr.arguments?Kt:e.createParenthesizedExpression(Kt)}return ae(Kt)}function ae(Kt,wr){const Wr=h2(Kt);return ib(Wr)&&(Wr.kind!==214||Wr.arguments)&&(wr||!uy(Wr))?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function ve(Kt){return ib(Kt)?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function we(Kt){return m9(Kt)?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function Fe(Kt){const wr=Ol(Kt,et);return Tn(e.createNodeArray(wr,Kt.hasTrailingComma),Kt)}function et(Kt){const wr=h2(Kt),Wr=_G(wr),jt=Pie(226,28);return Wr>jt?Kt:Tn(e.createParenthesizedExpression(Kt),Kt)}function Pe(Kt){const wr=h2(Kt);if(xd(wr)){const jt=wr.expression,En=h2(jt).kind;if(En===218||En===219){const fr=e.updateCallExpression(wr,Tn(e.createParenthesizedExpression(jt),jt),wr.typeArguments,wr.arguments);return e.restoreOuterExpressions(Kt,fr,8)}}const Wr=qL(wr,!1).kind;return Wr===210||Wr===218?Tn(e.createParenthesizedExpression(Kt),Kt):Kt}function dt(Kt){return!Ou(Kt)&&(VJ(Kt)||qL(Kt,!1).kind===210)?Tn(e.createParenthesizedExpression(Kt),Kt):Kt}function Ie(Kt){switch(Kt.kind){case 184:case 185:case 194:return e.createParenthesizedType(Kt)}return Kt}function ct(Kt){switch(Kt.kind){case 194:return e.createParenthesizedType(Kt)}return Kt}function Ct(Kt){switch(Kt.kind){case 192:case 193:return e.createParenthesizedType(Kt)}return Ie(Kt)}function Lt(Kt){return e.createNodeArray(Ol(Kt,Ct))}function Ze(Kt){switch(Kt.kind){case 192:case 193:return e.createParenthesizedType(Kt)}return Ct(Kt)}function Ke(Kt){return e.createNodeArray(Ol(Kt,Ze))}function st(Kt){switch(Kt.kind){case 193:return e.createParenthesizedType(Kt)}return Ze(Kt)}function It(Kt){switch(Kt.kind){case 198:return e.createParenthesizedType(Kt)}return st(Kt)}function Yt(Kt){switch(Kt.kind){case 195:case 198:case 186:return e.createParenthesizedType(Kt)}return st(Kt)}function Et(Kt){return e.createNodeArray(Ol(Kt,at))}function at(Kt){return Qt(Kt)?e.createParenthesizedType(Kt):Kt}function Qt(Kt){return WJ(Kt)?Kt.postfix:g6(Kt)||e0(Kt)||RG(Kt)||_I(Kt)?Qt(Kt.type):Q7(Kt)?Qt(Kt.falseType):fI(Kt)||xR(Kt)?Qt(yl(Kt.types)):KN(Kt)?!!Kt.typeParameter.constraint&&Qt(Kt.typeParameter.constraint):!1}function nn(Kt){return Qt(Kt)?e.createParenthesizedType(Kt):Yt(Kt)}function Rn(Kt){return l7(Kt)&&Kt.typeParameters?e.createParenthesizedType(Kt):Kt}function cn(Kt,wr){return wr===0?Rn(Kt):Kt}function qt(Kt){if(gt(Kt))return e.createNodeArray(Ol(Kt,cn))}}var Doe,ust=G({"src/compiler/factory/parenthesizerRules.ts"(){md(),Doe={getParenthesizeLeftSideOfBinaryForOperator:e=>Of,getParenthesizeRightSideOfBinaryForOperator:e=>Of,parenthesizeLeftSideOfBinary:(e,n)=>n,parenthesizeRightSideOfBinary:(e,n,i)=>i,parenthesizeExpressionOfComputedPropertyName:Of,parenthesizeConditionOfConditionalExpression:Of,parenthesizeBranchOfConditionalExpression:Of,parenthesizeExpressionOfExportDefault:Of,parenthesizeExpressionOfNew:e=>uc(e,ib),parenthesizeLeftSideOfAccess:e=>uc(e,ib),parenthesizeOperandOfPostfixUnary:e=>uc(e,ib),parenthesizeOperandOfPrefixUnary:e=>uc(e,m9),parenthesizeExpressionsOfCommaDelimitedList:e=>uc(e,BM),parenthesizeExpressionForDisallowedComma:Of,parenthesizeExpressionOfExpressionStatement:Of,parenthesizeConciseBodyOfArrowFunction:Of,parenthesizeCheckTypeOfConditionalType:Of,parenthesizeExtendsTypeOfConditionalType:Of,parenthesizeConstituentTypesOfUnionType:e=>uc(e,BM),parenthesizeConstituentTypeOfUnionType:Of,parenthesizeConstituentTypesOfIntersectionType:e=>uc(e,BM),parenthesizeConstituentTypeOfIntersectionType:Of,parenthesizeOperandOfTypeOperator:Of,parenthesizeOperandOfReadonlyTypeOperator:Of,parenthesizeNonArrayTypeOfPostfixType:Of,parenthesizeElementTypesOfTupleType:e=>uc(e,BM),parenthesizeElementTypeOfTupleType:Of,parenthesizeTypeOfOptionalType:Of,parenthesizeTypeArguments:e=>e&&uc(e,BM),parenthesizeLeadingTypeArgument:Of}}});function y6e(e){return{convertToFunctionBlock:n,convertToFunctionExpression:i,convertToClassExpression:c,convertToArrayAssignmentElement:u,convertToObjectAssignmentElement:d,convertToAssignmentPattern:h,convertToObjectAssignmentPattern:S,convertToArrayAssignmentPattern:E,convertToAssignmentElementTarget:P};function n(k,F){if(Ou(k))return k;const $=e.createReturnStatement(k);Tn($,k);const J=e.createBlock([$],F);return Tn(J,k),J}function i(k){var F;if(!k.body)return re.fail("Cannot convert a FunctionDeclaration without a body");const $=e.createFunctionExpression((F=Xv(k))==null?void 0:F.filter(J=>!_W(J)&&!zY(J)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return Ls($,k),Tn($,k),Ry(k)&&U7($,!0),$}function c(k){var F;const $=e.createClassExpression((F=k.modifiers)==null?void 0:F.filter(J=>!_W(J)&&!zY(J)),k.name,k.typeParameters,k.heritageClauses,k.members);return Ls($,k),Tn($,k),Ry(k)&&U7($,!0),$}function u(k){if(sa(k)){if(k.dotDotDotToken)return re.assertNode(k.name,xn),Ls(Tn(e.createSpreadElement(k.name),k),k);const F=P(k.name);return k.initializer?Ls(Tn(e.createAssignment(F,k.initializer),k),k):F}return uc(k,kr)}function d(k){if(sa(k)){if(k.dotDotDotToken)return re.assertNode(k.name,xn),Ls(Tn(e.createSpreadAssignment(k.name),k),k);if(k.propertyName){const F=P(k.name);return Ls(Tn(e.createPropertyAssignment(k.propertyName,k.initializer?e.createAssignment(F,k.initializer):F),k),k)}return re.assertNode(k.name,xn),Ls(Tn(e.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return uc(k,DN)}function h(k){switch(k.kind){case 207:case 209:return E(k);case 206:case 210:return S(k)}}function S(k){return Ch(k)?Ls(Tn(e.createObjectLiteralExpression(Vn(k.elements,d)),k),k):uc(k,el)}function E(k){return Wd(k)?Ls(Tn(e.createArrayLiteralExpression(Vn(k.elements,u)),k),k):uc(k,Ed)}function P(k){return $_(k)?h(k):uc(k,kr)}}var aJ,fst=G({"src/compiler/factory/nodeConverters.ts"(){md(),aJ={convertToFunctionBlock:Na,convertToFunctionExpression:Na,convertToClassExpression:Na,convertToArrayAssignmentElement:Na,convertToObjectAssignmentElement:Na,convertToAssignmentPattern:Na,convertToObjectAssignmentPattern:Na,convertToArrayAssignmentPattern:Na,convertToAssignmentElementTarget:Na}}});function oUe(e){sJ.push(e)}function xG(e,n){const i=e&8?_st:KL,c=Pd(()=>e&1?Doe:dEe(ve)),u=Pd(()=>e&2?aJ:y6e(ve)),d=p0(j=>(se,De)=>Gt(se,j,De)),h=p0(j=>se=>pr(j,se)),S=p0(j=>se=>Di(se,j)),E=p0(j=>()=>yB(j)),P=p0(j=>se=>Vo(j,se)),k=p0(j=>(se,De)=>gD(j,se,De)),F=p0(j=>(se,De)=>z6(j,se,De)),$=p0(j=>(se,De)=>WA(j,se,De)),J=p0(j=>(se,De)=>Qx(j,se,De)),X=p0(j=>(se,De,Tt)=>V6(j,se,De,Tt)),ie=p0(j=>(se,De,Tt)=>fw(j,se,De,Tt)),ae=p0(j=>(se,De,Tt,wn)=>s0(j,se,De,Tt,wn)),ve={get parenthesizer(){return c()},get converters(){return u()},baseFactory:n,flags:e,createNodeArray:we,createNumericLiteral:dt,createBigIntLiteral:Ie,createStringLiteral:Ct,createStringLiteralFromNode:Lt,createRegularExpressionLiteral:Ze,createLiteralLikeNode:Ke,createIdentifier:Yt,createTempVariable:Et,createLoopVariable:at,createUniqueName:Qt,getGeneratedNameForNode:nn,createPrivateIdentifier:cn,createUniquePrivateName:Kt,getGeneratedPrivateNameForNode:wr,createToken:jt,createSuper:En,createThis:fr,createNull:Tr,createTrue:Vr,createFalse:Pn,createModifier:Fr,createModifiersFromModifierFlags:Ki,createQualifiedName:io,updateQualifiedName:no,createComputedPropertyName:os,updateComputedPropertyName:Mo,createTypeParameterDeclaration:$i,updateTypeParameterDeclaration:ki,createParameterDeclaration:gc,updateParameterDeclaration:Wl,createDecorator:Jc,updateDecorator:au,createPropertySignature:qn,updatePropertySignature:za,createPropertyDeclaration:zi,updatePropertyDeclaration:na,createMethodSignature:_a,updateMethodSignature:us,createMethodDeclaration:Au,updateMethodDeclaration:Qu,createConstructorDeclaration:He,updateConstructorDeclaration:Hn,createGetAccessorDeclaration:Mr,updateGetAccessorDeclaration:Pr,createSetAccessorDeclaration:ln,updateSetAccessorDeclaration:Wn,createCallSignature:Ge,updateCallSignature:Br,createConstructSignature:Ei,updateConstructSignature:Ln,createIndexSignature:Sr,updateIndexSignature:yi,createClassStaticBlockDeclaration:yf,updateClassStaticBlockDeclaration:w_,createTemplateLiteralTypeSpan:go,updateTemplateLiteralTypeSpan:Ao,createKeywordTypeNode:Io,createTypePredicateNode:ze,updateTypePredicateNode:Ce,createTypeReferenceNode:kt,updateTypeReferenceNode:qe,createFunctionTypeNode:Mt,updateFunctionTypeNode:ge,createConstructorTypeNode:Jn,updateConstructorTypeNode:qi,createTypeQueryNode:Ts,updateTypeQueryNode:Cc,createTypeLiteralNode:Pc,updateTypeLiteralNode:hc,createArrayTypeNode:bl,updateArrayTypeNode:Tc,createTupleTypeNode:Tf,updateTupleTypeNode:ma,createNamedTupleMember:Bl,updateNamedTupleMember:G_,createOptionalTypeNode:u_,updateOptionalTypeNode:xa,createRestTypeNode:Ym,updateRestTypeNode:mf,createUnionTypeNode:xg,updateUnionTypeNode:Wy,createIntersectionTypeNode:Og,updateIntersectionTypeNode:pl,createConditionalTypeNode:R_,updateConditionalTypeNode:og,createInferTypeNode:km,updateInferTypeNode:M_,createImportTypeNode:hh,updateImportTypeNode:qo,createParenthesizedType:d_,updateParenthesizedType:Ka,createThisTypeNode:Qi,createTypeOperatorNode:Pm,updateTypeOperatorNode:Ag,createIndexedAccessTypeNode:va,updateIndexedAccessTypeNode:x0,createMappedTypeNode:Nm,updateMappedTypeNode:Md,createLiteralTypeNode:fe,updateLiteralTypeNode:_n,createTemplateLiteralType:oy,updateTemplateLiteralType:bE,createObjectBindingPattern:Xn,updateObjectBindingPattern:_i,createArrayBindingPattern:$o,updateArrayBindingPattern:Sc,createBindingElement:xs,updateBindingElement:Fs,createArrayLiteralExpression:Tl,updateArrayLiteralExpression:fc,createObjectLiteralExpression:Gd,updateObjectLiteralExpression:ag,createPropertyAccessExpression:e&4?(j,se)=>_s(bm(j,se),262144):bm,updatePropertyAccessExpression:ay,createPropertyAccessChain:e&4?(j,se,De)=>_s(yp(j,se,De),262144):yp,updatePropertyAccessChain:Cg,createElementAccessExpression:Xp,updateElementAccessExpression:r1,createElementAccessChain:sg,updateElementAccessChain:Jt,createCallExpression:da,updateCallExpression:Hu,createCallChain:t_,updateCallChain:A_,createNewExpression:gd,updateNewExpression:Dg,createTaggedTemplateExpression:um,updateTaggedTemplateExpression:Ig,createTypeAssertion:P_,updateTypeAssertion:Qm,createParenthesizedExpression:Bh,updateParenthesizedExpression:P1,createFunctionExpression:VT,updateFunctionExpression:Zm,createArrowFunction:fb,updateArrowFunction:FS,createDeleteExpression:dT,updateDeleteExpression:$0,createTypeOfExpression:xv,updateTypeOfExpression:t2,createVoidExpression:q0,updateVoidExpression:N1,createAwaitExpression:i0,updateAwaitExpression:nt,createPrefixUnaryExpression:pr,updatePrefixUnaryExpression:vi,createPostfixUnaryExpression:Di,updatePostfixUnaryExpression:Ee,createBinaryExpression:Gt,updateBinaryExpression:Ii,createConditionalExpression:Ja,updateConditionalExpression:wa,createTemplateExpression:wi,updateTemplateExpression:Vl,createTemplateHead:_b,createTemplateMiddle:f_,createTemplateTail:zh,createNoSubstitutionTemplateLiteral:i1,createTemplateLiteralLikeNode:vy,createYieldExpression:n2,updateYieldExpression:Vv,createSpreadElement:su,updateSpreadElement:gC,createClassExpression:eg,updateClassExpression:Uv,createOmittedExpression:Rk,createExpressionWithTypeArguments:Lb,updateExpressionWithTypeArguments:fn,createAsExpression:$n,updateAsExpression:ri,createNonNullExpression:Li,updateNonNullExpression:yo,createSatisfiesExpression:jo,updateSatisfiesExpression:Oo,createNonNullChain:ca,updateNonNullChain:Fc,createMetaProperty:ks,updateMetaProperty:Xs,createTemplateSpan:Vs,updateTemplateSpan:wu,createSemicolonClassElement:Yp,createBlock:Q,updateBlock:ft,createVariableStatement:br,updateVariableStatement:oo,createEmptyStatement:Js,createExpressionStatement:pu,updateExpressionStatement:fl,createIfStatement:ju,updateIfStatement:L_,createDoStatement:Cl,updateDoStatement:o0,createWhileStatement:oa,updateWhileStatement:dD,createForStatement:a0,updateForStatement:Kx,createForInStatement:hC,updateForInStatement:WP,createForOfStatement:BP,updateForOfStatement:LA,createContinueStatement:OA,updateContinueStatement:pD,createBreakStatement:yC,updateBreakStatement:vC,createReturnStatement:zP,updateReturnStatement:Xx,createWithStatement:dx,updateWithStatement:WS,createSwitchStatement:px,updateSwitchStatement:j_,createLabeledStatement:GP,updateLabeledStatement:oO,createThrowStatement:dS,updateThrowStatement:FA,createTryStatement:bC,updateTryStatement:wm,createDebuggerStatement:db,createVariableDeclaration:o1,updateVariableDeclaration:Q_,createVariableDeclarationList:je,updateVariableDeclarationList:Vt,createFunctionDeclaration:zn,updateFunctionDeclaration:zr,createClassDeclaration:xo,updateClassDeclaration:Wc,createInterfaceDeclaration:hu,updateInterfaceDeclaration:_c,createTypeAliasDeclaration:Sl,updateTypeAliasDeclaration:kf,createEnumDeclaration:Rp,updateEnumDeclaration:hn,createModuleDeclaration:v_,updateModuleDeclaration:yh,createModuleBlock:fm,updateModuleBlock:mx,createCaseBlock:BS,updateCaseBlock:N2,createNamespaceExportDeclaration:pS,updateNamespaceExportDeclaration:jP,createImportEqualsDeclaration:gx,updateImportEqualsDeclaration:VP,createImportDeclaration:UP,updateImportDeclaration:Bd,createImportClause:Bm,updateImportClause:Hv,createAssertClause:TE,updateAssertClause:A0,createAssertEntry:w2,updateAssertEntry:R2,createImportTypeAssertionContainer:U,updateImportTypeAssertionContainer:le,createImportAttributes:Ae,updateImportAttributes:rt,createImportAttribute:Dn,updateImportAttribute:Ci,createNamespaceImport:gs,updateNamespaceImport:Tu,createNamespaceExport:tg,updateNamespaceExport:mS,createNamedImports:gg,updateNamedImports:Nh,createImportSpecifier:r2,updateImportSpecifier:II,createExportAssignment:Mk,updateExportAssignment:M2,createExportDeclaration:HR,updateExportDeclaration:kI,createNamedExports:PI,updateNamedExports:HP,createExportSpecifier:mD,updateExportSpecifier:NI,createMissingDeclaration:sw,createExternalModuleReference:cw,updateExternalModuleReference:aO,get createJSDocAllType(){return E(319)},get createJSDocUnknownType(){return E(320)},get createJSDocNonNullableType(){return F(322)},get updateJSDocNonNullableType(){return $(322)},get createJSDocNullableType(){return F(321)},get updateJSDocNullableType(){return $(321)},get createJSDocOptionalType(){return P(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return P(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return P(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:UT,updateJSDocFunctionType:wI,createJSDocTypeLiteral:k4,updateJSDocTypeLiteral:P4,createJSDocTypeExpression:G6,updateJSDocTypeExpression:rs,createJSDocSignature:Ob,updateJSDocSignature:gf,createJSDocTemplateTag:Ni,updateJSDocTemplateTag:Nl,createJSDocTypedefTag:Xd,updateJSDocTypedefTag:b_,createJSDocParameterTag:Gp,updateJSDocParameterTag:w1,createJSDocPropertyTag:zS,updateJSDocPropertyTag:SE,createJSDocCallbackTag:R1,updateJSDocCallbackTag:JP,createJSDocOverloadTag:RI,updateJSDocOverloadTag:Uy,createJSDocAugmentsTag:Lk,updateJSDocAugmentsTag:N4,createJSDocImplementsTag:lw,updateJSDocImplementsTag:cO,createJSDocSeeTag:j6,updateJSDocSeeTag:sO,createJSDocNameReference:Ok,updateJSDocNameReference:vB,createJSDocMemberName:Rm,updateJSDocMemberName:Yx,createJSDocLink:uw,updateJSDocLink:Av,createJSDocLinkCode:C0,updateJSDocLinkCode:mV,createJSDocLinkPlain:pT,updateJSDocLinkPlain:EE,get createJSDocTypeTag(){return ie(351)},get updateJSDocTypeTag(){return ae(351)},get createJSDocReturnTag(){return ie(349)},get updateJSDocReturnTag(){return ae(349)},get createJSDocThisTag(){return ie(350)},get updateJSDocThisTag(){return ae(350)},get createJSDocAuthorTag(){return J(337)},get updateJSDocAuthorTag(){return X(337)},get createJSDocClassTag(){return J(339)},get updateJSDocClassTag(){return X(339)},get createJSDocPublicTag(){return J(340)},get updateJSDocPublicTag(){return X(340)},get createJSDocPrivateTag(){return J(341)},get updateJSDocPrivateTag(){return X(341)},get createJSDocProtectedTag(){return J(342)},get updateJSDocProtectedTag(){return X(342)},get createJSDocReadonlyTag(){return J(343)},get updateJSDocReadonlyTag(){return X(343)},get createJSDocOverrideTag(){return J(344)},get updateJSDocOverrideTag(){return X(344)},get createJSDocDeprecatedTag(){return J(338)},get updateJSDocDeprecatedTag(){return X(338)},get createJSDocThrowsTag(){return ie(356)},get updateJSDocThrowsTag(){return ae(356)},get createJSDocSatisfiesTag(){return ie(357)},get updateJSDocSatisfiesTag(){return ae(357)},createJSDocEnumTag:w4,updateJSDocEnumTag:Kq,createJSDocUnknownTag:U6,updateJSDocUnknownTag:GS,createJSDocText:Qg,updateJSDocText:bB,createJSDocComment:BA,updateJSDocComment:$R,createJsxElement:M1,updateJsxElement:gS,createJsxSelfClosingElement:_w,updateJsxSelfClosingElement:qR,createJsxOpeningElement:i2,updateJsxOpeningElement:hS,createJsxClosingElement:TB,updateJsxClosingElement:R4,createJsxFragment:Zx,createJsxText:H6,updateJsxText:gV,createJsxOpeningFragment:hV,createJsxJsxClosingFragment:JF,updateJsxFragment:lO,createJsxAttribute:SB,updateJsxAttribute:uO,createJsxAttributes:L2,updateJsxAttributes:dw,createJsxSpreadAttribute:EB,updateJsxSpreadAttribute:yV,createJsxExpression:jp,updateJsxExpression:sc,createJsxNamespacedName:hx,updateJsxNamespacedName:xE,createCaseClause:fO,updateCaseClause:vV,createDefaultClause:_O,updateDefaultClause:$F,createHeritageClause:M4,updateHeritageClause:AE,createCatchClause:eA,updateCatchClause:KR,createPropertyAssignment:hD,updatePropertyAssignment:TC,createShorthandPropertyAssignment:mT,updateShorthandPropertyAssignment:Vg,createSpreadAssignment:tA,updateSpreadAssignment:L4,createEnumMember:c0,updateEnumMember:jS,createSourceFile:dO,updateSourceFile:O2,createRedirectedSourceFile:pO,createBundle:o2,updateBundle:pw,createUnparsedSource:Vp,createUnparsedPrologue:ne,createUnparsedPrepend:yt,createUnparsedTextLike:Er,createUnparsedSyntheticReference:Wi,createInputFiles:nc,createSyntheticExpression:Vu,createSyntaxList:ql,createNotEmittedStatement:Pf,createPartiallyEmittedExpression:Z_,updatePartiallyEmittedExpression:CE,createCommaListExpression:ru,updateCommaListExpression:Fk,createSyntheticReferenceExpression:Co,updateSyntheticReferenceExpression:DE,cloneNode:LI,get createComma(){return d(28)},get createAssignment(){return d(64)},get createLogicalOr(){return d(57)},get createLogicalAnd(){return d(56)},get createBitwiseOr(){return d(52)},get createBitwiseXor(){return d(53)},get createBitwiseAnd(){return d(51)},get createStrictEquality(){return d(37)},get createStrictInequality(){return d(38)},get createEquality(){return d(35)},get createInequality(){return d(36)},get createLessThan(){return d(30)},get createLessThanEquals(){return d(33)},get createGreaterThan(){return d(32)},get createGreaterThanEquals(){return d(34)},get createLeftShift(){return d(48)},get createRightShift(){return d(49)},get createUnsignedRightShift(){return d(50)},get createAdd(){return d(40)},get createSubtract(){return d(41)},get createMultiply(){return d(42)},get createDivide(){return d(44)},get createModulo(){return d(45)},get createExponent(){return d(43)},get createPrefixPlus(){return h(40)},get createPrefixMinus(){return h(41)},get createPrefixIncrement(){return h(46)},get createPrefixDecrement(){return h(47)},get createBitwiseNot(){return h(55)},get createLogicalNot(){return h(54)},get createPostfixIncrement(){return S(46)},get createPostfixDecrement(){return S(47)},createImmediatelyInvokedFunctionExpression:$P,createImmediatelyInvokedArrowFunction:XR,createVoidZero:mw,createExportDefault:Yq,createExternalModuleExport:KF,createTypeCheck:O1,createIsNotTypeCheck:F4,createMethodCall:Wk,createGlobalMethodCall:HT,createFunctionBindCall:gw,createFunctionCallCall:Qq,createFunctionApplyCall:OI,createArraySliceCall:F0e,createArrayConcatCall:Bk,createObjectDefinePropertyCall:XF,createObjectGetOwnPropertyDescriptorCall:ute,createReflectGetCall:Xe,createReflectSetCall:$t,createPropertyDescriptor:Fn,createCallBinding:Ml,createAssignmentTargetWrapper:Zu,inlineExpressions:hg,getInternalName:Cd,getLocalName:pb,getExportName:zA,getDeclarationName:qP,getNamespaceMemberName:yx,getExternalModuleOrNamespaceExportName:mb,restoreOuterExpressions:Xc,restoreEnclosingLabel:Fu,createUseStrictPrologue:W4,copyPrologue:KP,copyStandardPrologue:Zq,copyCustomPrologue:YF,ensureUseStrict:EC,liftToBlock:FI,mergeLexicalEnvironment:YR,replaceModifiers:B4,replaceDecoratorsAndModifiers:GA,replacePropertyName:eK};return Ot(sJ,j=>j(ve)),ve;function we(j,se){if(j===void 0||j===Yn)j=[];else if(BM(j)){if(se===void 0||j.hasTrailingComma===se)return j.transformFlags===void 0&&pEe(j),re.attachNodeArrayDebugInfo(j),j;const wn=j.slice();return wn.pos=j.pos,wn.end=j.end,wn.hasTrailingComma=se,wn.transformFlags=j.transformFlags,re.attachNodeArrayDebugInfo(wn),wn}const De=j.length,Tt=De>=1&&De<=4?j.slice():j;return Tt.pos=-1,Tt.end=-1,Tt.hasTrailingComma=!!se,Tt.transformFlags=0,pEe(Tt),re.attachNodeArrayDebugInfo(Tt),Tt}function Fe(j){return n.createBaseNode(j)}function et(j){const se=Fe(j);return se.symbol=void 0,se.localSymbol=void 0,se}function Pe(j,se){return j!==se&&(j.typeArguments=se.typeArguments),i(j,se)}function dt(j,se=0){const De=et(9);return De.text=typeof j=="number"?j+"":j,De.numericLiteralFlags=se,se&384&&(De.transformFlags|=1024),De}function Ie(j){const se=Wr(10);return se.text=typeof j=="string"?j:tD(j)+"n",se.transformFlags|=32,se}function ct(j,se){const De=et(11);return De.text=j,De.singleQuote=se,De}function Ct(j,se,De){const Tt=ct(j,se);return Tt.hasExtendedUnicodeEscape=De,De&&(Tt.transformFlags|=1024),Tt}function Lt(j){const se=ct(K2(j),void 0);return se.textSourceNode=j,se}function Ze(j){const se=Wr(14);return se.text=j,se}function Ke(j,se){switch(j){case 9:return dt(se,0);case 10:return Ie(se);case 11:return Ct(se,void 0);case 12:return H6(se,!1);case 13:return H6(se,!0);case 14:return Ze(se);case 15:return vy(j,se,void 0,0)}}function st(j){const se=n.createBaseIdentifierNode(80);return se.escapedText=j,se.jsDoc=void 0,se.flowNode=void 0,se.symbol=void 0,se}function It(j,se,De,Tt){const wn=st(ey(j));return RY(wn,{flags:se,id:hk,prefix:De,suffix:Tt}),hk++,wn}function Yt(j,se,De){se===void 0&&j&&(se=D8(j)),se===80&&(se=void 0);const Tt=st(ey(j));return De&&(Tt.flags|=256),Tt.escapedText==="await"&&(Tt.transformFlags|=67108864),Tt.flags&256&&(Tt.transformFlags|=1024),Tt}function Et(j,se,De,Tt){let wn=1;se&&(wn|=8);const Vi=It("",wn,De,Tt);return j&&j(Vi),Vi}function at(j){let se=2;return j&&(se|=8),It("",se,void 0,void 0)}function Qt(j,se=0,De,Tt){return re.assert(!(se&7),"Argument out of range: flags"),re.assert((se&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),It(j,3|se,De,Tt)}function nn(j,se=0,De,Tt){re.assert(!(se&7),"Argument out of range: flags");const wn=j?xN(j)?D3(!1,De,j,Tt,Kr):`generated@${vm(j)}`:"";(De||Tt)&&(se|=16);const Vi=It(wn,4|se,De,Tt);return Vi.original=j,Vi}function Rn(j){const se=n.createBasePrivateIdentifierNode(81);return se.escapedText=j,se.transformFlags|=16777216,se}function cn(j){return qf(j,"#")||re.fail("First character of private identifier must be #: "+j),Rn(ey(j))}function qt(j,se,De,Tt){const wn=Rn(ey(j));return RY(wn,{flags:se,id:hk,prefix:De,suffix:Tt}),hk++,wn}function Kt(j,se,De){j&&!qf(j,"#")&&re.fail("First character of private identifier must be #: "+j);const Tt=8|(j?3:1);return qt(j??"",Tt,se,De)}function wr(j,se,De){const Tt=xN(j)?D3(!0,se,j,De,Kr):`#generated@${vm(j)}`,Vi=qt(Tt,4|(se||De?16:0),se,De);return Vi.original=j,Vi}function Wr(j){return n.createBaseTokenNode(j)}function jt(j){re.assert(j>=0&&j<=165,"Invalid token"),re.assert(j<=15||j>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),re.assert(j<=9||j>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),re.assert(j!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const se=Wr(j);let De=0;switch(j){case 134:De=384;break;case 160:De=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:De=1;break;case 108:De=134218752,se.flowNode=void 0;break;case 126:De=1024;break;case 129:De=16777216;break;case 110:De=16384,se.flowNode=void 0;break}return De&&(se.transformFlags|=De),se}function En(){return jt(108)}function fr(){return jt(110)}function Tr(){return jt(106)}function Vr(){return jt(112)}function Pn(){return jt(97)}function Fr(j){return jt(j)}function Ki(j){const se=[];return j&32&&se.push(Fr(95)),j&128&&se.push(Fr(138)),j&2048&&se.push(Fr(90)),j&4096&&se.push(Fr(87)),j&1&&se.push(Fr(125)),j&2&&se.push(Fr(123)),j&4&&se.push(Fr(124)),j&64&&se.push(Fr(128)),j&256&&se.push(Fr(126)),j&16&&se.push(Fr(164)),j&8&&se.push(Fr(148)),j&512&&se.push(Fr(129)),j&1024&&se.push(Fr(134)),j&8192&&se.push(Fr(103)),j&16384&&se.push(Fr(147)),se.length?se:void 0}function io(j,se){const De=Fe(166);return De.left=j,De.right=vh(se),De.transformFlags|=qs(De.left)|cp(De.right),De.flowNode=void 0,De}function no(j,se,De){return j.left!==se||j.right!==De?i(io(se,De),j):j}function os(j){const se=Fe(167);return se.expression=c().parenthesizeExpressionOfComputedPropertyName(j),se.transformFlags|=qs(se.expression)|1024|131072,se}function Mo(j,se){return j.expression!==se?i(os(se),j):j}function $i(j,se,De,Tt){const wn=et(168);return wn.modifiers=Up(j),wn.name=vh(se),wn.constraint=De,wn.default=Tt,wn.transformFlags=1,wn.expression=void 0,wn.jsDoc=void 0,wn}function ki(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.constraint!==Tt||j.default!==wn?i($i(se,De,Tt,wn),j):j}function gc(j,se,De,Tt,wn,Vi){const Us=et(169);return Us.modifiers=Up(j),Us.dotDotDotToken=se,Us.name=vh(De),Us.questionToken=Tt,Us.type=wn,Us.initializer=xC(Vi),E2(Us.name)?Us.transformFlags=1:Us.transformFlags=gp(Us.modifiers)|qs(Us.dotDotDotToken)|ms(Us.name)|qs(Us.questionToken)|qs(Us.initializer)|(Us.questionToken??Us.type?1:0)|(Us.dotDotDotToken??Us.initializer?1024:0)|(aI(Us.modifiers)&31?8192:0),Us.jsDoc=void 0,Us}function Wl(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.dotDotDotToken!==De||j.name!==Tt||j.questionToken!==wn||j.type!==Vi||j.initializer!==Us?i(gc(se,De,Tt,wn,Vi,Us),j):j}function Jc(j){const se=Fe(170);return se.expression=c().parenthesizeLeftSideOfAccess(j,!1),se.transformFlags|=qs(se.expression)|1|8192|33554432,se}function au(j,se){return j.expression!==se?i(Jc(se),j):j}function qn(j,se,De,Tt){const wn=et(171);return wn.modifiers=Up(j),wn.name=vh(se),wn.type=Tt,wn.questionToken=De,wn.transformFlags=1,wn.initializer=void 0,wn.jsDoc=void 0,wn}function za(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.questionToken!==Tt||j.type!==wn?Ia(qn(se,De,Tt,wn),j):j}function Ia(j,se){return j!==se&&(j.initializer=se.initializer),i(j,se)}function zi(j,se,De,Tt,wn){const Vi=et(172);Vi.modifiers=Up(j),Vi.name=vh(se),Vi.questionToken=De&&p6(De)?De:void 0,Vi.exclamationToken=De&&wG(De)?De:void 0,Vi.type=Tt,Vi.initializer=xC(wn);const Us=Vi.flags&33554432||aI(Vi.modifiers)&128;return Vi.transformFlags=gp(Vi.modifiers)|ms(Vi.name)|qs(Vi.initializer)|(Us||Vi.questionToken||Vi.exclamationToken||Vi.type?1:0)|(Qf(Vi.name)||aI(Vi.modifiers)&256&&Vi.initializer?8192:0)|16777216,Vi.jsDoc=void 0,Vi}function na(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.questionToken!==(Tt!==void 0&&p6(Tt)?Tt:void 0)||j.exclamationToken!==(Tt!==void 0&&wG(Tt)?Tt:void 0)||j.type!==wn||j.initializer!==Vi?i(zi(se,De,Tt,wn,Vi),j):j}function _a(j,se,De,Tt,wn,Vi){const Us=et(173);return Us.modifiers=Up(j),Us.name=vh(se),Us.questionToken=De,Us.typeParameters=Up(Tt),Us.parameters=Up(wn),Us.type=Vi,Us.transformFlags=1,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.typeArguments=void 0,Us}function us(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.name!==De||j.questionToken!==Tt||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us?Pe(_a(se,De,Tt,wn,Vi,Us),j):j}function Au(j,se,De,Tt,wn,Vi,Us,Hf){const ng=et(174);if(ng.modifiers=Up(j),ng.asteriskToken=se,ng.name=vh(De),ng.questionToken=Tt,ng.exclamationToken=void 0,ng.typeParameters=Up(wn),ng.parameters=we(Vi),ng.type=Us,ng.body=Hf,!ng.body)ng.transformFlags=1;else{const VS=aI(ng.modifiers)&1024,z4=!!ng.asteriskToken,G4=VS&&z4;ng.transformFlags=gp(ng.modifiers)|qs(ng.asteriskToken)|ms(ng.name)|qs(ng.questionToken)|gp(ng.typeParameters)|gp(ng.parameters)|qs(ng.type)|qs(ng.body)&-67108865|(G4?128:VS?256:z4?2048:0)|(ng.questionToken||ng.typeParameters||ng.type?1:0)|1024}return ng.typeArguments=void 0,ng.jsDoc=void 0,ng.locals=void 0,ng.nextContainer=void 0,ng.flowNode=void 0,ng.endFlowNode=void 0,ng.returnFlowNode=void 0,ng}function Qu(j,se,De,Tt,wn,Vi,Us,Hf,ng){return j.modifiers!==se||j.asteriskToken!==De||j.name!==Tt||j.questionToken!==wn||j.typeParameters!==Vi||j.parameters!==Us||j.type!==Hf||j.body!==ng?Cu(Au(se,De,Tt,wn,Vi,Us,Hf,ng),j):j}function Cu(j,se){return j!==se&&(j.exclamationToken=se.exclamationToken),i(j,se)}function yf(j){const se=et(175);return se.body=j,se.transformFlags=qs(j)|16777216,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function w_(j,se){return j.body!==se?Eu(yf(se),j):j}function Eu(j,se){return j!==se&&(j.modifiers=se.modifiers),i(j,se)}function He(j,se,De){const Tt=et(176);return Tt.modifiers=Up(j),Tt.parameters=we(se),Tt.body=De,Tt.transformFlags=gp(Tt.modifiers)|gp(Tt.parameters)|qs(Tt.body)&-67108865|1024,Tt.typeParameters=void 0,Tt.type=void 0,Tt.typeArguments=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.endFlowNode=void 0,Tt.returnFlowNode=void 0,Tt}function Hn(j,se,De,Tt){return j.modifiers!==se||j.parameters!==De||j.body!==Tt?dr(He(se,De,Tt),j):j}function dr(j,se){return j!==se&&(j.typeParameters=se.typeParameters,j.type=se.type),Pe(j,se)}function Mr(j,se,De,Tt,wn){const Vi=et(177);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.parameters=we(De),Vi.type=Tt,Vi.body=wn,Vi.body?Vi.transformFlags=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.parameters)|qs(Vi.type)|qs(Vi.body)&-67108865|(Vi.type?1:0):Vi.transformFlags=1,Vi.typeArguments=void 0,Vi.typeParameters=void 0,Vi.jsDoc=void 0,Vi.locals=void 0,Vi.nextContainer=void 0,Vi.flowNode=void 0,Vi.endFlowNode=void 0,Vi.returnFlowNode=void 0,Vi}function Pr(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.parameters!==Tt||j.type!==wn||j.body!==Vi?Bt(Mr(se,De,Tt,wn,Vi),j):j}function Bt(j,se){return j!==se&&(j.typeParameters=se.typeParameters),Pe(j,se)}function ln(j,se,De,Tt){const wn=et(178);return wn.modifiers=Up(j),wn.name=vh(se),wn.parameters=we(De),wn.body=Tt,wn.body?wn.transformFlags=gp(wn.modifiers)|ms(wn.name)|gp(wn.parameters)|qs(wn.body)&-67108865|(wn.type?1:0):wn.transformFlags=1,wn.typeArguments=void 0,wn.typeParameters=void 0,wn.type=void 0,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn.endFlowNode=void 0,wn.returnFlowNode=void 0,wn}function Wn(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.parameters!==Tt||j.body!==wn?$r(ln(se,De,Tt,wn),j):j}function $r(j,se){return j!==se&&(j.typeParameters=se.typeParameters,j.type=se.type),Pe(j,se)}function Ge(j,se,De){const Tt=et(179);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Br(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?Pe(Ge(se,De,Tt),j):j}function Ei(j,se,De){const Tt=et(180);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function Ln(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?Pe(Ei(se,De,Tt),j):j}function Sr(j,se,De){const Tt=et(181);return Tt.modifiers=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function yi(j,se,De,Tt){return j.parameters!==De||j.type!==Tt||j.modifiers!==se?Pe(Sr(se,De,Tt),j):j}function go(j,se){const De=Fe(204);return De.type=j,De.literal=se,De.transformFlags=1,De}function Ao(j,se,De){return j.type!==se||j.literal!==De?i(go(se,De),j):j}function Io(j){return jt(j)}function ze(j,se,De){const Tt=Fe(182);return Tt.assertsModifier=j,Tt.parameterName=vh(se),Tt.type=De,Tt.transformFlags=1,Tt}function Ce(j,se,De,Tt){return j.assertsModifier!==se||j.parameterName!==De||j.type!==Tt?i(ze(se,De,Tt),j):j}function kt(j,se){const De=Fe(183);return De.typeName=vh(j),De.typeArguments=se&&c().parenthesizeTypeArguments(we(se)),De.transformFlags=1,De}function qe(j,se,De){return j.typeName!==se||j.typeArguments!==De?i(kt(se,De),j):j}function Mt(j,se,De){const Tt=et(184);return Tt.typeParameters=Up(j),Tt.parameters=Up(se),Tt.type=De,Tt.transformFlags=1,Tt.modifiers=void 0,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.typeArguments=void 0,Tt}function ge(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?mn(Mt(se,De,Tt),j):j}function mn(j,se){return j!==se&&(j.modifiers=se.modifiers),Pe(j,se)}function Jn(...j){return j.length===4?Nn(...j):j.length===3?Lr(...j):re.fail("Incorrect number of arguments specified.")}function Nn(j,se,De,Tt){const wn=et(185);return wn.modifiers=Up(j),wn.typeParameters=Up(se),wn.parameters=Up(De),wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.typeArguments=void 0,wn}function Lr(j,se,De){return Nn(void 0,j,se,De)}function qi(...j){return j.length===5?vo(...j):j.length===4?Ro(...j):re.fail("Incorrect number of arguments specified.")}function vo(j,se,De,Tt,wn){return j.modifiers!==se||j.typeParameters!==De||j.parameters!==Tt||j.type!==wn?Pe(Jn(se,De,Tt,wn),j):j}function Ro(j,se,De,Tt){return vo(j,j.modifiers,se,De,Tt)}function Ts(j,se){const De=Fe(186);return De.exprName=j,De.typeArguments=se&&c().parenthesizeTypeArguments(se),De.transformFlags=1,De}function Cc(j,se,De){return j.exprName!==se||j.typeArguments!==De?i(Ts(se,De),j):j}function Pc(j){const se=et(187);return se.members=we(j),se.transformFlags=1,se}function hc(j,se){return j.members!==se?i(Pc(se),j):j}function bl(j){const se=Fe(188);return se.elementType=c().parenthesizeNonArrayTypeOfPostfixType(j),se.transformFlags=1,se}function Tc(j,se){return j.elementType!==se?i(bl(se),j):j}function Tf(j){const se=Fe(189);return se.elements=we(c().parenthesizeElementTypesOfTupleType(j)),se.transformFlags=1,se}function ma(j,se){return j.elements!==se?i(Tf(se),j):j}function Bl(j,se,De,Tt){const wn=et(202);return wn.dotDotDotToken=j,wn.name=se,wn.questionToken=De,wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn}function G_(j,se,De,Tt,wn){return j.dotDotDotToken!==se||j.name!==De||j.questionToken!==Tt||j.type!==wn?i(Bl(se,De,Tt,wn),j):j}function u_(j){const se=Fe(190);return se.type=c().parenthesizeTypeOfOptionalType(j),se.transformFlags=1,se}function xa(j,se){return j.type!==se?i(u_(se),j):j}function Ym(j){const se=Fe(191);return se.type=j,se.transformFlags=1,se}function mf(j,se){return j.type!==se?i(Ym(se),j):j}function Cp(j,se,De){const Tt=Fe(j);return Tt.types=ve.createNodeArray(De(se)),Tt.transformFlags=1,Tt}function Yg(j,se,De){return j.types!==se?i(Cp(j.kind,se,De),j):j}function xg(j){return Cp(192,j,c().parenthesizeConstituentTypesOfUnionType)}function Wy(j,se){return Yg(j,se,c().parenthesizeConstituentTypesOfUnionType)}function Og(j){return Cp(193,j,c().parenthesizeConstituentTypesOfIntersectionType)}function pl(j,se){return Yg(j,se,c().parenthesizeConstituentTypesOfIntersectionType)}function R_(j,se,De,Tt){const wn=Fe(194);return wn.checkType=c().parenthesizeCheckTypeOfConditionalType(j),wn.extendsType=c().parenthesizeExtendsTypeOfConditionalType(se),wn.trueType=De,wn.falseType=Tt,wn.transformFlags=1,wn.locals=void 0,wn.nextContainer=void 0,wn}function og(j,se,De,Tt,wn){return j.checkType!==se||j.extendsType!==De||j.trueType!==Tt||j.falseType!==wn?i(R_(se,De,Tt,wn),j):j}function km(j){const se=Fe(195);return se.typeParameter=j,se.transformFlags=1,se}function M_(j,se){return j.typeParameter!==se?i(km(se),j):j}function oy(j,se){const De=Fe(203);return De.head=j,De.templateSpans=we(se),De.transformFlags=1,De}function bE(j,se,De){return j.head!==se||j.templateSpans!==De?i(oy(se,De),j):j}function hh(j,se,De,Tt,wn=!1){const Vi=Fe(205);return Vi.argument=j,Vi.attributes=se,Vi.assertions&&Vi.assertions.assertClause&&Vi.attributes&&(Vi.assertions.assertClause=Vi.attributes),Vi.qualifier=De,Vi.typeArguments=Tt&&c().parenthesizeTypeArguments(Tt),Vi.isTypeOf=wn,Vi.transformFlags=1,Vi}function qo(j,se,De,Tt,wn,Vi=j.isTypeOf){return j.argument!==se||j.attributes!==De||j.qualifier!==Tt||j.typeArguments!==wn||j.isTypeOf!==Vi?i(hh(se,De,Tt,wn,Vi),j):j}function d_(j){const se=Fe(196);return se.type=j,se.transformFlags=1,se}function Ka(j,se){return j.type!==se?i(d_(se),j):j}function Qi(){const j=Fe(197);return j.transformFlags=1,j}function Pm(j,se){const De=Fe(198);return De.operator=j,De.type=j===148?c().parenthesizeOperandOfReadonlyTypeOperator(se):c().parenthesizeOperandOfTypeOperator(se),De.transformFlags=1,De}function Ag(j,se){return j.type!==se?i(Pm(j.operator,se),j):j}function va(j,se){const De=Fe(199);return De.objectType=c().parenthesizeNonArrayTypeOfPostfixType(j),De.indexType=se,De.transformFlags=1,De}function x0(j,se,De){return j.objectType!==se||j.indexType!==De?i(va(se,De),j):j}function Nm(j,se,De,Tt,wn,Vi){const Us=et(200);return Us.readonlyToken=j,Us.typeParameter=se,Us.nameType=De,Us.questionToken=Tt,Us.type=wn,Us.members=Vi&&we(Vi),Us.transformFlags=1,Us.locals=void 0,Us.nextContainer=void 0,Us}function Md(j,se,De,Tt,wn,Vi,Us){return j.readonlyToken!==se||j.typeParameter!==De||j.nameType!==Tt||j.questionToken!==wn||j.type!==Vi||j.members!==Us?i(Nm(se,De,Tt,wn,Vi,Us),j):j}function fe(j){const se=Fe(201);return se.literal=j,se.transformFlags=1,se}function _n(j,se){return j.literal!==se?i(fe(se),j):j}function Xn(j){const se=Fe(206);return se.elements=we(j),se.transformFlags|=gp(se.elements)|1024|524288,se.transformFlags&32768&&(se.transformFlags|=65664),se}function _i(j,se){return j.elements!==se?i(Xn(se),j):j}function $o(j){const se=Fe(207);return se.elements=we(j),se.transformFlags|=gp(se.elements)|1024|524288,se}function Sc(j,se){return j.elements!==se?i($o(se),j):j}function xs(j,se,De,Tt){const wn=et(208);return wn.dotDotDotToken=j,wn.propertyName=vh(se),wn.name=vh(De),wn.initializer=xC(Tt),wn.transformFlags|=qs(wn.dotDotDotToken)|ms(wn.propertyName)|ms(wn.name)|qs(wn.initializer)|(wn.dotDotDotToken?32768:0)|1024,wn.flowNode=void 0,wn}function Fs(j,se,De,Tt,wn){return j.propertyName!==De||j.dotDotDotToken!==se||j.name!==Tt||j.initializer!==wn?i(xs(se,De,Tt,wn),j):j}function Tl(j,se){const De=Fe(209),Tt=j&&Yf(j),wn=we(j,Tt&&cb(Tt)?!0:void 0);return De.elements=c().parenthesizeExpressionsOfCommaDelimitedList(wn),De.multiLine=se,De.transformFlags|=gp(De.elements),De}function fc(j,se){return j.elements!==se?i(Tl(se,j.multiLine),j):j}function Gd(j,se){const De=et(210);return De.properties=we(j),De.multiLine=se,De.transformFlags|=gp(De.properties),De.jsDoc=void 0,De}function ag(j,se){return j.properties!==se?i(Gd(se,j.multiLine),j):j}function ah(j,se,De){const Tt=et(211);return Tt.expression=j,Tt.questionDotToken=se,Tt.name=De,Tt.transformFlags=qs(Tt.expression)|qs(Tt.questionDotToken)|(xn(Tt.name)?cp(Tt.name):qs(Tt.name)|536870912),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function bm(j,se){const De=ah(c().parenthesizeLeftSideOfAccess(j,!1),void 0,vh(se));return nT(j)&&(De.transformFlags|=384),De}function ay(j,se,De){return ede(j)?Cg(j,se,j.questionDotToken,uc(De,xn)):j.expression!==se||j.name!==De?i(bm(se,De),j):j}function yp(j,se,De){const Tt=ah(c().parenthesizeLeftSideOfAccess(j,!0),se,vh(De));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function Cg(j,se,De,Tt){return re.assert(!!(j.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),j.expression!==se||j.questionDotToken!==De||j.name!==Tt?i(yp(se,De,Tt),j):j}function wp(j,se,De){const Tt=et(212);return Tt.expression=j,Tt.questionDotToken=se,Tt.argumentExpression=De,Tt.transformFlags|=qs(Tt.expression)|qs(Tt.questionDotToken)|qs(Tt.argumentExpression),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function Xp(j,se){const De=wp(c().parenthesizeLeftSideOfAccess(j,!1),void 0,J6(se));return nT(j)&&(De.transformFlags|=384),De}function r1(j,se,De){return oR(j)?Jt(j,se,j.questionDotToken,De):j.expression!==se||j.argumentExpression!==De?i(Xp(se,De),j):j}function sg(j,se,De){const Tt=wp(c().parenthesizeLeftSideOfAccess(j,!0),se,J6(De));return Tt.flags|=64,Tt.transformFlags|=32,Tt}function Jt(j,se,De,Tt){return re.assert(!!(j.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),j.expression!==se||j.questionDotToken!==De||j.argumentExpression!==Tt?i(sg(se,De,Tt),j):j}function ci(j,se,De,Tt){const wn=et(213);return wn.expression=j,wn.questionDotToken=se,wn.typeArguments=De,wn.arguments=Tt,wn.transformFlags|=qs(wn.expression)|qs(wn.questionDotToken)|gp(wn.typeArguments)|gp(wn.arguments),wn.typeArguments&&(wn.transformFlags|=1),MT(wn.expression)&&(wn.transformFlags|=16384),wn}function da(j,se,De){const Tt=ci(c().parenthesizeLeftSideOfAccess(j,!1),void 0,Up(se),c().parenthesizeExpressionsOfCommaDelimitedList(we(De)));return am(Tt.expression)&&(Tt.transformFlags|=8388608),Tt}function Hu(j,se,De,Tt){return AN(j)?A_(j,se,j.questionDotToken,De,Tt):j.expression!==se||j.typeArguments!==De||j.arguments!==Tt?i(da(se,De,Tt),j):j}function t_(j,se,De,Tt){const wn=ci(c().parenthesizeLeftSideOfAccess(j,!0),se,Up(De),c().parenthesizeExpressionsOfCommaDelimitedList(we(Tt)));return wn.flags|=64,wn.transformFlags|=32,wn}function A_(j,se,De,Tt,wn){return re.assert(!!(j.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),j.expression!==se||j.questionDotToken!==De||j.typeArguments!==Tt||j.arguments!==wn?i(t_(se,De,Tt,wn),j):j}function gd(j,se,De){const Tt=et(214);return Tt.expression=c().parenthesizeExpressionOfNew(j),Tt.typeArguments=Up(se),Tt.arguments=De?c().parenthesizeExpressionsOfCommaDelimitedList(De):void 0,Tt.transformFlags|=qs(Tt.expression)|gp(Tt.typeArguments)|gp(Tt.arguments)|32,Tt.typeArguments&&(Tt.transformFlags|=1),Tt}function Dg(j,se,De,Tt){return j.expression!==se||j.typeArguments!==De||j.arguments!==Tt?i(gd(se,De,Tt),j):j}function um(j,se,De){const Tt=Fe(215);return Tt.tag=c().parenthesizeLeftSideOfAccess(j,!1),Tt.typeArguments=Up(se),Tt.template=De,Tt.transformFlags|=qs(Tt.tag)|gp(Tt.typeArguments)|qs(Tt.template)|1024,Tt.typeArguments&&(Tt.transformFlags|=1),TH(Tt.template)&&(Tt.transformFlags|=128),Tt}function Ig(j,se,De,Tt){return j.tag!==se||j.typeArguments!==De||j.template!==Tt?i(um(se,De,Tt),j):j}function P_(j,se){const De=Fe(216);return De.expression=c().parenthesizeOperandOfPrefixUnary(se),De.type=j,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function Qm(j,se,De){return j.type!==se||j.expression!==De?i(P_(se,De),j):j}function Bh(j){const se=Fe(217);return se.expression=j,se.transformFlags=qs(se.expression),se.jsDoc=void 0,se}function P1(j,se){return j.expression!==se?i(Bh(se),j):j}function VT(j,se,De,Tt,wn,Vi,Us){const Hf=et(218);Hf.modifiers=Up(j),Hf.asteriskToken=se,Hf.name=vh(De),Hf.typeParameters=Up(Tt),Hf.parameters=we(wn),Hf.type=Vi,Hf.body=Us;const ng=aI(Hf.modifiers)&1024,VS=!!Hf.asteriskToken,z4=ng&&VS;return Hf.transformFlags=gp(Hf.modifiers)|qs(Hf.asteriskToken)|ms(Hf.name)|gp(Hf.typeParameters)|gp(Hf.parameters)|qs(Hf.type)|qs(Hf.body)&-67108865|(z4?128:ng?256:VS?2048:0)|(Hf.typeParameters||Hf.type?1:0)|4194304,Hf.typeArguments=void 0,Hf.jsDoc=void 0,Hf.locals=void 0,Hf.nextContainer=void 0,Hf.flowNode=void 0,Hf.endFlowNode=void 0,Hf.returnFlowNode=void 0,Hf}function Zm(j,se,De,Tt,wn,Vi,Us,Hf){return j.name!==Tt||j.modifiers!==se||j.asteriskToken!==De||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us||j.body!==Hf?Pe(VT(se,De,Tt,wn,Vi,Us,Hf),j):j}function fb(j,se,De,Tt,wn,Vi){const Us=et(219);Us.modifiers=Up(j),Us.typeParameters=Up(se),Us.parameters=we(De),Us.type=Tt,Us.equalsGreaterThanToken=wn??jt(39),Us.body=c().parenthesizeConciseBodyOfArrowFunction(Vi);const Hf=aI(Us.modifiers)&1024;return Us.transformFlags=gp(Us.modifiers)|gp(Us.typeParameters)|gp(Us.parameters)|qs(Us.type)|qs(Us.equalsGreaterThanToken)|qs(Us.body)&-67108865|(Us.typeParameters||Us.type?1:0)|(Hf?16640:0)|1024,Us.typeArguments=void 0,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.flowNode=void 0,Us.endFlowNode=void 0,Us.returnFlowNode=void 0,Us}function FS(j,se,De,Tt,wn,Vi,Us){return j.modifiers!==se||j.typeParameters!==De||j.parameters!==Tt||j.type!==wn||j.equalsGreaterThanToken!==Vi||j.body!==Us?Pe(fb(se,De,Tt,wn,Vi,Us),j):j}function dT(j){const se=Fe(220);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function $0(j,se){return j.expression!==se?i(dT(se),j):j}function xv(j){const se=Fe(221);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function t2(j,se){return j.expression!==se?i(xv(se),j):j}function q0(j){const se=Fe(222);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression),se}function N1(j,se){return j.expression!==se?i(q0(se),j):j}function i0(j){const se=Fe(223);return se.expression=c().parenthesizeOperandOfPrefixUnary(j),se.transformFlags|=qs(se.expression)|256|128|2097152,se}function nt(j,se){return j.expression!==se?i(i0(se),j):j}function pr(j,se){const De=Fe(224);return De.operator=j,De.operand=c().parenthesizeOperandOfPrefixUnary(se),De.transformFlags|=qs(De.operand),(j===46||j===47)&&xn(De.operand)&&!$g(De.operand)&&!mI(De.operand)&&(De.transformFlags|=268435456),De}function vi(j,se){return j.operand!==se?i(pr(j.operator,se),j):j}function Di(j,se){const De=Fe(225);return De.operator=se,De.operand=c().parenthesizeOperandOfPostfixUnary(j),De.transformFlags|=qs(De.operand),xn(De.operand)&&!$g(De.operand)&&!mI(De.operand)&&(De.transformFlags|=268435456),De}function Ee(j,se){return j.operand!==se?i(Di(se,j.operator),j):j}function Gt(j,se,De){const Tt=et(226),wn=F2(se),Vi=wn.kind;return Tt.left=c().parenthesizeLeftSideOfBinary(Vi,j),Tt.operatorToken=wn,Tt.right=c().parenthesizeRightSideOfBinary(Vi,Tt.left,De),Tt.transformFlags|=qs(Tt.left)|qs(Tt.operatorToken)|qs(Tt.right),Vi===61?Tt.transformFlags|=32:Vi===64?el(Tt.left)?Tt.transformFlags|=5248|sr(Tt.left):Ed(Tt.left)&&(Tt.transformFlags|=5120|sr(Tt.left)):Vi===43||Vi===68?Tt.transformFlags|=512:CH(Vi)&&(Tt.transformFlags|=16),Vi===103&&Lu(Tt.left)&&(Tt.transformFlags|=536870912),Tt.jsDoc=void 0,Tt}function sr(j){return nx(j)?65536:0}function Ii(j,se,De,Tt){return j.left!==se||j.operatorToken!==De||j.right!==Tt?i(Gt(se,De,Tt),j):j}function Ja(j,se,De,Tt,wn){const Vi=Fe(227);return Vi.condition=c().parenthesizeConditionOfConditionalExpression(j),Vi.questionToken=se??jt(58),Vi.whenTrue=c().parenthesizeBranchOfConditionalExpression(De),Vi.colonToken=Tt??jt(59),Vi.whenFalse=c().parenthesizeBranchOfConditionalExpression(wn),Vi.transformFlags|=qs(Vi.condition)|qs(Vi.questionToken)|qs(Vi.whenTrue)|qs(Vi.colonToken)|qs(Vi.whenFalse),Vi}function wa(j,se,De,Tt,wn,Vi){return j.condition!==se||j.questionToken!==De||j.whenTrue!==Tt||j.colonToken!==wn||j.whenFalse!==Vi?i(Ja(se,De,Tt,wn,Vi),j):j}function wi(j,se){const De=Fe(228);return De.head=j,De.templateSpans=we(se),De.transformFlags|=qs(De.head)|gp(De.templateSpans)|1024,De}function Vl(j,se,De){return j.head!==se||j.templateSpans!==De?i(wi(se,De),j):j}function Uf(j,se,De,Tt=0){re.assert(!(Tt&-7177),"Unsupported template flags.");let wn;if(De!==void 0&&De!==se&&(wn=dst(j,De),typeof wn=="object"))return re.fail("Invalid raw text");if(se===void 0){if(wn===void 0)return re.fail("Arguments 'text' and 'rawText' may not both be undefined.");se=wn}else wn!==void 0&&re.assert(se===wn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return se}function Y_(j){let se=1024;return j&&(se|=128),se}function Fg(j,se,De,Tt){const wn=Wr(j);return wn.text=se,wn.rawText=De,wn.templateFlags=Tt&7176,wn.transformFlags=Y_(wn.templateFlags),wn}function sv(j,se,De,Tt){const wn=et(j);return wn.text=se,wn.rawText=De,wn.templateFlags=Tt&7176,wn.transformFlags=Y_(wn.templateFlags),wn}function vy(j,se,De,Tt){return j===15?sv(j,se,De,Tt):Fg(j,se,De,Tt)}function _b(j,se,De){return j=Uf(16,j,se,De),vy(16,j,se,De)}function f_(j,se,De){return j=Uf(16,j,se,De),vy(17,j,se,De)}function zh(j,se,De){return j=Uf(16,j,se,De),vy(18,j,se,De)}function i1(j,se,De){return j=Uf(16,j,se,De),sv(15,j,se,De)}function n2(j,se){re.assert(!j||!!se,"A `YieldExpression` with an asteriskToken must have an expression.");const De=Fe(229);return De.expression=se&&c().parenthesizeExpressionForDisallowedComma(se),De.asteriskToken=j,De.transformFlags|=qs(De.expression)|qs(De.asteriskToken)|1024|128|1048576,De}function Vv(j,se,De){return j.expression!==De||j.asteriskToken!==se?i(n2(se,De),j):j}function su(j){const se=Fe(230);return se.expression=c().parenthesizeExpressionForDisallowedComma(j),se.transformFlags|=qs(se.expression)|1024|32768,se}function gC(j,se){return j.expression!==se?i(su(se),j):j}function eg(j,se,De,Tt,wn){const Vi=et(231);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),Vi.transformFlags|=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.typeParameters)|gp(Vi.heritageClauses)|gp(Vi.members)|(Vi.typeParameters?1:0)|1024,Vi.jsDoc=void 0,Vi}function Uv(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(eg(se,De,Tt,wn,Vi),j):j}function Rk(){return Fe(232)}function Lb(j,se){const De=Fe(233);return De.expression=c().parenthesizeLeftSideOfAccess(j,!1),De.typeArguments=se&&c().parenthesizeTypeArguments(se),De.transformFlags|=qs(De.expression)|gp(De.typeArguments)|1024,De}function fn(j,se,De){return j.expression!==se||j.typeArguments!==De?i(Lb(se,De),j):j}function $n(j,se){const De=Fe(234);return De.expression=j,De.type=se,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function ri(j,se,De){return j.expression!==se||j.type!==De?i($n(se,De),j):j}function Li(j){const se=Fe(235);return se.expression=c().parenthesizeLeftSideOfAccess(j,!1),se.transformFlags|=qs(se.expression)|1,se}function yo(j,se){return zU(j)?Fc(j,se):j.expression!==se?i(Li(se),j):j}function jo(j,se){const De=Fe(238);return De.expression=j,De.type=se,De.transformFlags|=qs(De.expression)|qs(De.type)|1,De}function Oo(j,se,De){return j.expression!==se||j.type!==De?i(jo(se,De),j):j}function ca(j){const se=Fe(235);return se.flags|=64,se.expression=c().parenthesizeLeftSideOfAccess(j,!0),se.transformFlags|=qs(se.expression)|1,se}function Fc(j,se){return re.assert(!!(j.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),j.expression!==se?i(ca(se),j):j}function ks(j,se){const De=Fe(236);switch(De.keywordToken=j,De.name=se,De.transformFlags|=qs(De.name),j){case 105:De.transformFlags|=1024;break;case 102:De.transformFlags|=32;break;default:return re.assertNever(j)}return De.flowNode=void 0,De}function Xs(j,se){return j.name!==se?i(ks(j.keywordToken,se),j):j}function Vs(j,se){const De=Fe(239);return De.expression=j,De.literal=se,De.transformFlags|=qs(De.expression)|qs(De.literal)|1024,De}function wu(j,se,De){return j.expression!==se||j.literal!==De?i(Vs(se,De),j):j}function Yp(){const j=Fe(240);return j.transformFlags|=1024,j}function Q(j,se){const De=Fe(241);return De.statements=we(j),De.multiLine=se,De.transformFlags|=gp(De.statements),De.jsDoc=void 0,De.locals=void 0,De.nextContainer=void 0,De}function ft(j,se){return j.statements!==se?i(Q(se,j.multiLine),j):j}function br(j,se){const De=Fe(243);return De.modifiers=Up(j),De.declarationList=ls(se)?je(se):se,De.transformFlags|=gp(De.modifiers)|qs(De.declarationList),aI(De.modifiers)&128&&(De.transformFlags=1),De.jsDoc=void 0,De.flowNode=void 0,De}function oo(j,se,De){return j.modifiers!==se||j.declarationList!==De?i(br(se,De),j):j}function Js(){const j=Fe(242);return j.jsDoc=void 0,j}function pu(j){const se=Fe(244);return se.expression=c().parenthesizeExpressionOfExpressionStatement(j),se.transformFlags|=qs(se.expression),se.jsDoc=void 0,se.flowNode=void 0,se}function fl(j,se){return j.expression!==se?i(pu(se),j):j}function ju(j,se,De){const Tt=Fe(245);return Tt.expression=j,Tt.thenStatement=XP(se),Tt.elseStatement=XP(De),Tt.transformFlags|=qs(Tt.expression)|qs(Tt.thenStatement)|qs(Tt.elseStatement),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function L_(j,se,De,Tt){return j.expression!==se||j.thenStatement!==De||j.elseStatement!==Tt?i(ju(se,De,Tt),j):j}function Cl(j,se){const De=Fe(246);return De.statement=XP(j),De.expression=se,De.transformFlags|=qs(De.statement)|qs(De.expression),De.jsDoc=void 0,De.flowNode=void 0,De}function o0(j,se,De){return j.statement!==se||j.expression!==De?i(Cl(se,De),j):j}function oa(j,se){const De=Fe(247);return De.expression=j,De.statement=XP(se),De.transformFlags|=qs(De.expression)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function dD(j,se,De){return j.expression!==se||j.statement!==De?i(oa(se,De),j):j}function a0(j,se,De,Tt){const wn=Fe(248);return wn.initializer=j,wn.condition=se,wn.incrementor=De,wn.statement=XP(Tt),wn.transformFlags|=qs(wn.initializer)|qs(wn.condition)|qs(wn.incrementor)|qs(wn.statement),wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn}function Kx(j,se,De,Tt,wn){return j.initializer!==se||j.condition!==De||j.incrementor!==Tt||j.statement!==wn?i(a0(se,De,Tt,wn),j):j}function hC(j,se,De){const Tt=Fe(249);return Tt.initializer=j,Tt.expression=se,Tt.statement=XP(De),Tt.transformFlags|=qs(Tt.initializer)|qs(Tt.expression)|qs(Tt.statement),Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt.flowNode=void 0,Tt}function WP(j,se,De,Tt){return j.initializer!==se||j.expression!==De||j.statement!==Tt?i(hC(se,De,Tt),j):j}function BP(j,se,De,Tt){const wn=Fe(250);return wn.awaitModifier=j,wn.initializer=se,wn.expression=c().parenthesizeExpressionForDisallowedComma(De),wn.statement=XP(Tt),wn.transformFlags|=qs(wn.awaitModifier)|qs(wn.initializer)|qs(wn.expression)|qs(wn.statement)|1024,j&&(wn.transformFlags|=128),wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn.flowNode=void 0,wn}function LA(j,se,De,Tt,wn){return j.awaitModifier!==se||j.initializer!==De||j.expression!==Tt||j.statement!==wn?i(BP(se,De,Tt,wn),j):j}function OA(j){const se=Fe(251);return se.label=vh(j),se.transformFlags|=qs(se.label)|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function pD(j,se){return j.label!==se?i(OA(se),j):j}function yC(j){const se=Fe(252);return se.label=vh(j),se.transformFlags|=qs(se.label)|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function vC(j,se){return j.label!==se?i(yC(se),j):j}function zP(j){const se=Fe(253);return se.expression=j,se.transformFlags|=qs(se.expression)|128|4194304,se.jsDoc=void 0,se.flowNode=void 0,se}function Xx(j,se){return j.expression!==se?i(zP(se),j):j}function dx(j,se){const De=Fe(254);return De.expression=j,De.statement=XP(se),De.transformFlags|=qs(De.expression)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function WS(j,se,De){return j.expression!==se||j.statement!==De?i(dx(se,De),j):j}function px(j,se){const De=Fe(255);return De.expression=c().parenthesizeExpressionForDisallowedComma(j),De.caseBlock=se,De.transformFlags|=qs(De.expression)|qs(De.caseBlock),De.jsDoc=void 0,De.flowNode=void 0,De.possiblyExhaustive=!1,De}function j_(j,se,De){return j.expression!==se||j.caseBlock!==De?i(px(se,De),j):j}function GP(j,se){const De=Fe(256);return De.label=vh(j),De.statement=XP(se),De.transformFlags|=qs(De.label)|qs(De.statement),De.jsDoc=void 0,De.flowNode=void 0,De}function oO(j,se,De){return j.label!==se||j.statement!==De?i(GP(se,De),j):j}function dS(j){const se=Fe(257);return se.expression=j,se.transformFlags|=qs(se.expression),se.jsDoc=void 0,se.flowNode=void 0,se}function FA(j,se){return j.expression!==se?i(dS(se),j):j}function bC(j,se,De){const Tt=Fe(258);return Tt.tryBlock=j,Tt.catchClause=se,Tt.finallyBlock=De,Tt.transformFlags|=qs(Tt.tryBlock)|qs(Tt.catchClause)|qs(Tt.finallyBlock),Tt.jsDoc=void 0,Tt.flowNode=void 0,Tt}function wm(j,se,De,Tt){return j.tryBlock!==se||j.catchClause!==De||j.finallyBlock!==Tt?i(bC(se,De,Tt),j):j}function db(){const j=Fe(259);return j.jsDoc=void 0,j.flowNode=void 0,j}function o1(j,se,De,Tt){const wn=et(260);return wn.name=vh(j),wn.exclamationToken=se,wn.type=De,wn.initializer=xC(Tt),wn.transformFlags|=ms(wn.name)|qs(wn.initializer)|(wn.exclamationToken??wn.type?1:0),wn.jsDoc=void 0,wn}function Q_(j,se,De,Tt,wn){return j.name!==se||j.type!==Tt||j.exclamationToken!==De||j.initializer!==wn?i(o1(se,De,Tt,wn),j):j}function je(j,se=0){const De=Fe(261);return De.flags|=se&7,De.declarations=we(j),De.transformFlags|=gp(De.declarations)|4194304,se&7&&(De.transformFlags|=263168),se&4&&(De.transformFlags|=4),De}function Vt(j,se){return j.declarations!==se?i(je(se,j.flags),j):j}function zn(j,se,De,Tt,wn,Vi,Us){const Hf=et(262);if(Hf.modifiers=Up(j),Hf.asteriskToken=se,Hf.name=vh(De),Hf.typeParameters=Up(Tt),Hf.parameters=we(wn),Hf.type=Vi,Hf.body=Us,!Hf.body||aI(Hf.modifiers)&128)Hf.transformFlags=1;else{const ng=aI(Hf.modifiers)&1024,VS=!!Hf.asteriskToken,z4=ng&&VS;Hf.transformFlags=gp(Hf.modifiers)|qs(Hf.asteriskToken)|ms(Hf.name)|gp(Hf.typeParameters)|gp(Hf.parameters)|qs(Hf.type)|qs(Hf.body)&-67108865|(z4?128:ng?256:VS?2048:0)|(Hf.typeParameters||Hf.type?1:0)|4194304}return Hf.typeArguments=void 0,Hf.jsDoc=void 0,Hf.locals=void 0,Hf.nextContainer=void 0,Hf.endFlowNode=void 0,Hf.returnFlowNode=void 0,Hf}function zr(j,se,De,Tt,wn,Vi,Us,Hf){return j.modifiers!==se||j.asteriskToken!==De||j.name!==Tt||j.typeParameters!==wn||j.parameters!==Vi||j.type!==Us||j.body!==Hf?xi(zn(se,De,Tt,wn,Vi,Us,Hf),j):j}function xi(j,se){return j!==se&&j.modifiers===se.modifiers&&(j.modifiers=se.modifiers),Pe(j,se)}function xo(j,se,De,Tt,wn){const Vi=et(263);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),aI(Vi.modifiers)&128?Vi.transformFlags=1:(Vi.transformFlags|=gp(Vi.modifiers)|ms(Vi.name)|gp(Vi.typeParameters)|gp(Vi.heritageClauses)|gp(Vi.members)|(Vi.typeParameters?1:0)|1024,Vi.transformFlags&8192&&(Vi.transformFlags|=1)),Vi.jsDoc=void 0,Vi}function Wc(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(xo(se,De,Tt,wn,Vi),j):j}function hu(j,se,De,Tt,wn){const Vi=et(264);return Vi.modifiers=Up(j),Vi.name=vh(se),Vi.typeParameters=Up(De),Vi.heritageClauses=Up(Tt),Vi.members=we(wn),Vi.transformFlags=1,Vi.jsDoc=void 0,Vi}function _c(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.heritageClauses!==wn||j.members!==Vi?i(hu(se,De,Tt,wn,Vi),j):j}function Sl(j,se,De,Tt){const wn=et(265);return wn.modifiers=Up(j),wn.name=vh(se),wn.typeParameters=Up(De),wn.type=Tt,wn.transformFlags=1,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn}function kf(j,se,De,Tt,wn){return j.modifiers!==se||j.name!==De||j.typeParameters!==Tt||j.type!==wn?i(Sl(se,De,Tt,wn),j):j}function Rp(j,se,De){const Tt=et(266);return Tt.modifiers=Up(j),Tt.name=vh(se),Tt.members=we(De),Tt.transformFlags|=gp(Tt.modifiers)|qs(Tt.name)|gp(Tt.members)|1,Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function hn(j,se,De,Tt){return j.modifiers!==se||j.name!==De||j.members!==Tt?i(Rp(se,De,Tt),j):j}function v_(j,se,De,Tt=0){const wn=et(267);return wn.modifiers=Up(j),wn.flags|=Tt&2088,wn.name=se,wn.body=De,aI(wn.modifiers)&128?wn.transformFlags=1:wn.transformFlags|=gp(wn.modifiers)|qs(wn.name)|qs(wn.body)|1,wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn.locals=void 0,wn.nextContainer=void 0,wn}function yh(j,se,De,Tt){return j.modifiers!==se||j.name!==De||j.body!==Tt?i(v_(se,De,Tt,j.flags),j):j}function fm(j){const se=Fe(268);return se.statements=we(j),se.transformFlags|=gp(se.statements),se.jsDoc=void 0,se}function mx(j,se){return j.statements!==se?i(fm(se),j):j}function BS(j){const se=Fe(269);return se.clauses=we(j),se.transformFlags|=gp(se.clauses),se.locals=void 0,se.nextContainer=void 0,se}function N2(j,se){return j.clauses!==se?i(BS(se),j):j}function pS(j){const se=et(270);return se.name=vh(j),se.transformFlags|=cp(se.name)|1,se.modifiers=void 0,se.jsDoc=void 0,se}function jP(j,se){return j.name!==se?tp(pS(se),j):j}function tp(j,se){return j!==se&&(j.modifiers=se.modifiers),i(j,se)}function gx(j,se,De,Tt){const wn=et(271);return wn.modifiers=Up(j),wn.name=vh(De),wn.isTypeOnly=se,wn.moduleReference=Tt,wn.transformFlags|=gp(wn.modifiers)|cp(wn.name)|qs(wn.moduleReference),KE(wn.moduleReference)||(wn.transformFlags|=1),wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn}function VP(j,se,De,Tt,wn){return j.modifiers!==se||j.isTypeOnly!==De||j.name!==Tt||j.moduleReference!==wn?i(gx(se,De,Tt,wn),j):j}function UP(j,se,De,Tt){const wn=Fe(272);return wn.modifiers=Up(j),wn.importClause=se,wn.moduleSpecifier=De,wn.attributes=wn.assertClause=Tt,wn.transformFlags|=qs(wn.importClause)|qs(wn.moduleSpecifier),wn.transformFlags&=-67108865,wn.jsDoc=void 0,wn}function Bd(j,se,De,Tt,wn){return j.modifiers!==se||j.importClause!==De||j.moduleSpecifier!==Tt||j.attributes!==wn?i(UP(se,De,Tt,wn),j):j}function Bm(j,se,De){const Tt=et(273);return Tt.isTypeOnly=j,Tt.name=se,Tt.namedBindings=De,Tt.transformFlags|=qs(Tt.name)|qs(Tt.namedBindings),j&&(Tt.transformFlags|=1),Tt.transformFlags&=-67108865,Tt}function Hv(j,se,De,Tt){return j.isTypeOnly!==se||j.name!==De||j.namedBindings!==Tt?i(Bm(se,De,Tt),j):j}function TE(j,se){const De=Fe(300);return De.elements=we(j),De.multiLine=se,De.token=132,De.transformFlags|=4,De}function A0(j,se,De){return j.elements!==se||j.multiLine!==De?i(TE(se,De),j):j}function w2(j,se){const De=Fe(301);return De.name=j,De.value=se,De.transformFlags|=4,De}function R2(j,se,De){return j.name!==se||j.value!==De?i(w2(se,De),j):j}function U(j,se){const De=Fe(302);return De.assertClause=j,De.multiLine=se,De}function le(j,se,De){return j.assertClause!==se||j.multiLine!==De?i(U(se,De),j):j}function Ae(j,se,De){const Tt=Fe(300);return Tt.token=De??118,Tt.elements=we(j),Tt.multiLine=se,Tt.transformFlags|=4,Tt}function rt(j,se,De){return j.elements!==se||j.multiLine!==De?i(Ae(se,De,j.token),j):j}function Dn(j,se){const De=Fe(301);return De.name=j,De.value=se,De.transformFlags|=4,De}function Ci(j,se,De){return j.name!==se||j.value!==De?i(Dn(se,De),j):j}function gs(j){const se=et(274);return se.name=j,se.transformFlags|=qs(se.name),se.transformFlags&=-67108865,se}function Tu(j,se){return j.name!==se?i(gs(se),j):j}function tg(j){const se=et(280);return se.name=j,se.transformFlags|=qs(se.name)|32,se.transformFlags&=-67108865,se}function mS(j,se){return j.name!==se?i(tg(se),j):j}function gg(j){const se=Fe(275);return se.elements=we(j),se.transformFlags|=gp(se.elements),se.transformFlags&=-67108865,se}function Nh(j,se){return j.elements!==se?i(gg(se),j):j}function r2(j,se,De){const Tt=et(276);return Tt.isTypeOnly=j,Tt.propertyName=se,Tt.name=De,Tt.transformFlags|=qs(Tt.propertyName)|qs(Tt.name),Tt.transformFlags&=-67108865,Tt}function II(j,se,De,Tt){return j.isTypeOnly!==se||j.propertyName!==De||j.name!==Tt?i(r2(se,De,Tt),j):j}function Mk(j,se,De){const Tt=et(277);return Tt.modifiers=Up(j),Tt.isExportEquals=se,Tt.expression=se?c().parenthesizeRightSideOfBinary(64,void 0,De):c().parenthesizeExpressionOfExportDefault(De),Tt.transformFlags|=gp(Tt.modifiers)|qs(Tt.expression),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function M2(j,se,De){return j.modifiers!==se||j.expression!==De?i(Mk(se,j.isExportEquals,De),j):j}function HR(j,se,De,Tt,wn){const Vi=et(278);return Vi.modifiers=Up(j),Vi.isTypeOnly=se,Vi.exportClause=De,Vi.moduleSpecifier=Tt,Vi.attributes=Vi.assertClause=wn,Vi.transformFlags|=gp(Vi.modifiers)|qs(Vi.exportClause)|qs(Vi.moduleSpecifier),Vi.transformFlags&=-67108865,Vi.jsDoc=void 0,Vi}function kI(j,se,De,Tt,wn,Vi){return j.modifiers!==se||j.isTypeOnly!==De||j.exportClause!==Tt||j.moduleSpecifier!==wn||j.attributes!==Vi?JR(HR(se,De,Tt,wn,Vi),j):j}function JR(j,se){return j!==se&&j.modifiers===se.modifiers&&(j.modifiers=se.modifiers),i(j,se)}function PI(j){const se=Fe(279);return se.elements=we(j),se.transformFlags|=gp(se.elements),se.transformFlags&=-67108865,se}function HP(j,se){return j.elements!==se?i(PI(se),j):j}function mD(j,se,De){const Tt=Fe(281);return Tt.isTypeOnly=j,Tt.propertyName=vh(se),Tt.name=vh(De),Tt.transformFlags|=qs(Tt.propertyName)|qs(Tt.name),Tt.transformFlags&=-67108865,Tt.jsDoc=void 0,Tt}function NI(j,se,De,Tt){return j.isTypeOnly!==se||j.propertyName!==De||j.name!==Tt?i(mD(se,De,Tt),j):j}function sw(){const j=et(282);return j.jsDoc=void 0,j}function cw(j){const se=Fe(283);return se.expression=j,se.transformFlags|=qs(se.expression),se.transformFlags&=-67108865,se}function aO(j,se){return j.expression!==se?i(cw(se),j):j}function yB(j){return Fe(j)}function z6(j,se,De=!1){const Tt=Vo(j,De?se&&c().parenthesizeNonArrayTypeOfPostfixType(se):se);return Tt.postfix=De,Tt}function Vo(j,se){const De=Fe(j);return De.type=se,De}function WA(j,se,De){return se.type!==De?i(z6(j,De,se.postfix),se):se}function gD(j,se,De){return se.type!==De?i(Vo(j,De),se):se}function UT(j,se){const De=et(324);return De.parameters=Up(j),De.type=se,De.transformFlags=gp(De.parameters)|(De.type?1:0),De.jsDoc=void 0,De.locals=void 0,De.nextContainer=void 0,De.typeArguments=void 0,De}function wI(j,se,De){return j.parameters!==se||j.type!==De?i(UT(se,De),j):j}function k4(j,se=!1){const De=et(329);return De.jsDocPropertyTags=Up(j),De.isArrayType=se,De}function P4(j,se,De){return j.jsDocPropertyTags!==se||j.isArrayType!==De?i(k4(se,De),j):j}function G6(j){const se=Fe(316);return se.type=j,se}function rs(j,se){return j.type!==se?i(G6(se),j):j}function Ob(j,se,De){const Tt=et(330);return Tt.typeParameters=Up(j),Tt.parameters=we(se),Tt.type=De,Tt.jsDoc=void 0,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function gf(j,se,De,Tt){return j.typeParameters!==se||j.parameters!==De||j.type!==Tt?i(Ob(se,De,Tt),j):j}function ko(j){const se=AG(j.kind);return j.tagName.escapedText===ey(se)?j.tagName:Yt(se)}function ac(j,se,De){const Tt=Fe(j);return Tt.tagName=se,Tt.comment=De,Tt}function Ys(j,se,De){const Tt=et(j);return Tt.tagName=se,Tt.comment=De,Tt}function Ni(j,se,De,Tt){const wn=ac(352,j??Yt("template"),Tt);return wn.constraint=se,wn.typeParameters=we(De),wn}function Nl(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.constraint!==De||j.typeParameters!==Tt||j.comment!==wn?i(Ni(se,De,Tt,wn),j):j}function Xd(j,se,De,Tt){const wn=Ys(353,j??Yt("typedef"),Tt);return wn.typeExpression=se,wn.fullName=De,wn.name=Tpe(De),wn.locals=void 0,wn.nextContainer=void 0,wn}function b_(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.typeExpression!==De||j.fullName!==Tt||j.comment!==wn?i(Xd(se,De,Tt,wn),j):j}function Gp(j,se,De,Tt,wn,Vi){const Us=Ys(348,j??Yt("param"),Vi);return Us.typeExpression=Tt,Us.name=se,Us.isNameFirst=!!wn,Us.isBracketed=De,Us}function w1(j,se=ko(j),De,Tt,wn,Vi,Us){return j.tagName!==se||j.name!==De||j.isBracketed!==Tt||j.typeExpression!==wn||j.isNameFirst!==Vi||j.comment!==Us?i(Gp(se,De,Tt,wn,Vi,Us),j):j}function zS(j,se,De,Tt,wn,Vi){const Us=Ys(355,j??Yt("prop"),Vi);return Us.typeExpression=Tt,Us.name=se,Us.isNameFirst=!!wn,Us.isBracketed=De,Us}function SE(j,se=ko(j),De,Tt,wn,Vi,Us){return j.tagName!==se||j.name!==De||j.isBracketed!==Tt||j.typeExpression!==wn||j.isNameFirst!==Vi||j.comment!==Us?i(zS(se,De,Tt,wn,Vi,Us),j):j}function R1(j,se,De,Tt){const wn=Ys(345,j??Yt("callback"),Tt);return wn.typeExpression=se,wn.fullName=De,wn.name=Tpe(De),wn.locals=void 0,wn.nextContainer=void 0,wn}function JP(j,se=ko(j),De,Tt,wn){return j.tagName!==se||j.typeExpression!==De||j.fullName!==Tt||j.comment!==wn?i(R1(se,De,Tt,wn),j):j}function RI(j,se,De){const Tt=ac(346,j??Yt("overload"),De);return Tt.typeExpression=se,Tt}function Uy(j,se=ko(j),De,Tt){return j.tagName!==se||j.typeExpression!==De||j.comment!==Tt?i(RI(se,De,Tt),j):j}function Lk(j,se,De){const Tt=ac(335,j??Yt("augments"),De);return Tt.class=se,Tt}function N4(j,se=ko(j),De,Tt){return j.tagName!==se||j.class!==De||j.comment!==Tt?i(Lk(se,De,Tt),j):j}function lw(j,se,De){const Tt=ac(336,j??Yt("implements"),De);return Tt.class=se,Tt}function j6(j,se,De){const Tt=ac(354,j??Yt("see"),De);return Tt.name=se,Tt}function sO(j,se,De,Tt){return j.tagName!==se||j.name!==De||j.comment!==Tt?i(j6(se,De,Tt),j):j}function Ok(j){const se=Fe(317);return se.name=j,se}function vB(j,se){return j.name!==se?i(Ok(se),j):j}function Rm(j,se){const De=Fe(318);return De.left=j,De.right=se,De.transformFlags|=qs(De.left)|qs(De.right),De}function Yx(j,se,De){return j.left!==se||j.right!==De?i(Rm(se,De),j):j}function uw(j,se){const De=Fe(331);return De.name=j,De.text=se,De}function Av(j,se,De){return j.name!==se?i(uw(se,De),j):j}function C0(j,se){const De=Fe(332);return De.name=j,De.text=se,De}function mV(j,se,De){return j.name!==se?i(C0(se,De),j):j}function pT(j,se){const De=Fe(333);return De.name=j,De.text=se,De}function EE(j,se,De){return j.name!==se?i(pT(se,De),j):j}function cO(j,se=ko(j),De,Tt){return j.tagName!==se||j.class!==De||j.comment!==Tt?i(lw(se,De,Tt),j):j}function Qx(j,se,De){return ac(j,se??Yt(AG(j)),De)}function V6(j,se,De=ko(se),Tt){return se.tagName!==De||se.comment!==Tt?i(Qx(j,De,Tt),se):se}function fw(j,se,De,Tt){const wn=ac(j,se??Yt(AG(j)),Tt);return wn.typeExpression=De,wn}function s0(j,se,De=ko(se),Tt,wn){return se.tagName!==De||se.typeExpression!==Tt||se.comment!==wn?i(fw(j,De,Tt,wn),se):se}function U6(j,se){return ac(334,j,se)}function GS(j,se,De){return j.tagName!==se||j.comment!==De?i(U6(se,De),j):j}function w4(j,se,De){const Tt=Ys(347,j??Yt(AG(347)),De);return Tt.typeExpression=se,Tt.locals=void 0,Tt.nextContainer=void 0,Tt}function Kq(j,se=ko(j),De,Tt){return j.tagName!==se||j.typeExpression!==De||j.comment!==Tt?i(w4(se,De,Tt),j):j}function Qg(j){const se=Fe(328);return se.text=j,se}function bB(j,se){return j.text!==se?i(Qg(se),j):j}function BA(j,se){const De=Fe(327);return De.comment=j,De.tags=Up(se),De}function $R(j,se,De){return j.comment!==se||j.tags!==De?i(BA(se,De),j):j}function M1(j,se,De){const Tt=Fe(284);return Tt.openingElement=j,Tt.children=we(se),Tt.closingElement=De,Tt.transformFlags|=qs(Tt.openingElement)|gp(Tt.children)|qs(Tt.closingElement)|2,Tt}function gS(j,se,De,Tt){return j.openingElement!==se||j.children!==De||j.closingElement!==Tt?i(M1(se,De,Tt),j):j}function _w(j,se,De){const Tt=Fe(285);return Tt.tagName=j,Tt.typeArguments=Up(se),Tt.attributes=De,Tt.transformFlags|=qs(Tt.tagName)|gp(Tt.typeArguments)|qs(Tt.attributes)|2,Tt.typeArguments&&(Tt.transformFlags|=1),Tt}function qR(j,se,De,Tt){return j.tagName!==se||j.typeArguments!==De||j.attributes!==Tt?i(_w(se,De,Tt),j):j}function i2(j,se,De){const Tt=Fe(286);return Tt.tagName=j,Tt.typeArguments=Up(se),Tt.attributes=De,Tt.transformFlags|=qs(Tt.tagName)|gp(Tt.typeArguments)|qs(Tt.attributes)|2,se&&(Tt.transformFlags|=1),Tt}function hS(j,se,De,Tt){return j.tagName!==se||j.typeArguments!==De||j.attributes!==Tt?i(i2(se,De,Tt),j):j}function TB(j){const se=Fe(287);return se.tagName=j,se.transformFlags|=qs(se.tagName)|2,se}function R4(j,se){return j.tagName!==se?i(TB(se),j):j}function Zx(j,se,De){const Tt=Fe(288);return Tt.openingFragment=j,Tt.children=we(se),Tt.closingFragment=De,Tt.transformFlags|=qs(Tt.openingFragment)|gp(Tt.children)|qs(Tt.closingFragment)|2,Tt}function lO(j,se,De,Tt){return j.openingFragment!==se||j.children!==De||j.closingFragment!==Tt?i(Zx(se,De,Tt),j):j}function H6(j,se){const De=Fe(12);return De.text=j,De.containsOnlyTriviaWhiteSpaces=!!se,De.transformFlags|=2,De}function gV(j,se,De){return j.text!==se||j.containsOnlyTriviaWhiteSpaces!==De?i(H6(se,De),j):j}function hV(){const j=Fe(289);return j.transformFlags|=2,j}function JF(){const j=Fe(290);return j.transformFlags|=2,j}function SB(j,se){const De=et(291);return De.name=j,De.initializer=se,De.transformFlags|=qs(De.name)|qs(De.initializer)|2,De}function uO(j,se,De){return j.name!==se||j.initializer!==De?i(SB(se,De),j):j}function L2(j){const se=et(292);return se.properties=we(j),se.transformFlags|=gp(se.properties)|2,se}function dw(j,se){return j.properties!==se?i(L2(se),j):j}function EB(j){const se=Fe(293);return se.expression=j,se.transformFlags|=qs(se.expression)|2,se}function yV(j,se){return j.expression!==se?i(EB(se),j):j}function jp(j,se){const De=Fe(294);return De.dotDotDotToken=j,De.expression=se,De.transformFlags|=qs(De.dotDotDotToken)|qs(De.expression)|2,De}function sc(j,se){return j.expression!==se?i(jp(j.dotDotDotToken,se),j):j}function hx(j,se){const De=Fe(295);return De.namespace=j,De.name=se,De.transformFlags|=qs(De.namespace)|qs(De.name)|2,De}function xE(j,se,De){return j.namespace!==se||j.name!==De?i(hx(se,De),j):j}function fO(j,se){const De=Fe(296);return De.expression=c().parenthesizeExpressionForDisallowedComma(j),De.statements=we(se),De.transformFlags|=qs(De.expression)|gp(De.statements),De.jsDoc=void 0,De}function vV(j,se,De){return j.expression!==se||j.statements!==De?i(fO(se,De),j):j}function _O(j){const se=Fe(297);return se.statements=we(j),se.transformFlags=gp(se.statements),se}function $F(j,se){return j.statements!==se?i(_O(se),j):j}function M4(j,se){const De=Fe(298);switch(De.token=j,De.types=we(se),De.transformFlags|=gp(De.types),j){case 96:De.transformFlags|=1024;break;case 119:De.transformFlags|=1;break;default:return re.assertNever(j)}return De}function AE(j,se){return j.types!==se?i(M4(j.token,se),j):j}function eA(j,se){const De=Fe(299);return De.variableDeclaration=xB(j),De.block=se,De.transformFlags|=qs(De.variableDeclaration)|qs(De.block)|(j?0:64),De.locals=void 0,De.nextContainer=void 0,De}function KR(j,se,De){return j.variableDeclaration!==se||j.block!==De?i(eA(se,De),j):j}function hD(j,se){const De=et(303);return De.name=vh(j),De.initializer=c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=ms(De.name)|qs(De.initializer),De.modifiers=void 0,De.questionToken=void 0,De.exclamationToken=void 0,De.jsDoc=void 0,De}function TC(j,se,De){return j.name!==se||j.initializer!==De?L1(hD(se,De),j):j}function L1(j,se){return j!==se&&(j.modifiers=se.modifiers,j.questionToken=se.questionToken,j.exclamationToken=se.exclamationToken),i(j,se)}function mT(j,se){const De=et(304);return De.name=vh(j),De.objectAssignmentInitializer=se&&c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=cp(De.name)|qs(De.objectAssignmentInitializer)|1024,De.equalsToken=void 0,De.modifiers=void 0,De.questionToken=void 0,De.exclamationToken=void 0,De.jsDoc=void 0,De}function Vg(j,se,De){return j.name!==se||j.objectAssignmentInitializer!==De?SC(mT(se,De),j):j}function SC(j,se){return j!==se&&(j.modifiers=se.modifiers,j.questionToken=se.questionToken,j.exclamationToken=se.exclamationToken,j.equalsToken=se.equalsToken),i(j,se)}function tA(j){const se=et(305);return se.expression=c().parenthesizeExpressionForDisallowedComma(j),se.transformFlags|=qs(se.expression)|128|65536,se.jsDoc=void 0,se}function L4(j,se){return j.expression!==se?i(tA(se),j):j}function c0(j,se){const De=et(306);return De.name=vh(j),De.initializer=se&&c().parenthesizeExpressionForDisallowedComma(se),De.transformFlags|=qs(De.name)|qs(De.initializer)|1,De.jsDoc=void 0,De}function jS(j,se,De){return j.name!==se||j.initializer!==De?i(c0(se,De),j):j}function dO(j,se,De){const Tt=n.createBaseSourceFileNode(312);return Tt.statements=we(j),Tt.endOfFileToken=se,Tt.flags|=De,Tt.text="",Tt.fileName="",Tt.path="",Tt.resolvedPath="",Tt.originalFileName="",Tt.languageVersion=0,Tt.languageVariant=0,Tt.scriptKind=0,Tt.isDeclarationFile=!1,Tt.hasNoDefaultLib=!1,Tt.transformFlags|=gp(Tt.statements)|qs(Tt.endOfFileToken),Tt.locals=void 0,Tt.nextContainer=void 0,Tt.endFlowNode=void 0,Tt.nodeCount=0,Tt.identifierCount=0,Tt.symbolCount=0,Tt.parseDiagnostics=void 0,Tt.bindDiagnostics=void 0,Tt.bindSuggestionDiagnostics=void 0,Tt.lineMap=void 0,Tt.externalModuleIndicator=void 0,Tt.setExternalModuleIndicator=void 0,Tt.pragmas=void 0,Tt.checkJsDirective=void 0,Tt.referencedFiles=void 0,Tt.typeReferenceDirectives=void 0,Tt.libReferenceDirectives=void 0,Tt.amdDependencies=void 0,Tt.commentDirectives=void 0,Tt.identifiers=void 0,Tt.packageJsonLocations=void 0,Tt.packageJsonScope=void 0,Tt.imports=void 0,Tt.moduleAugmentations=void 0,Tt.ambientModuleNames=void 0,Tt.classifiableNames=void 0,Tt.impliedNodeFormat=void 0,Tt}function pO(j){const se=Object.create(j.redirectTarget);return Object.defineProperties(se,{id:{get(){return this.redirectInfo.redirectTarget.id},set(De){this.redirectInfo.redirectTarget.id=De}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(De){this.redirectInfo.redirectTarget.symbol=De}}}),se.redirectInfo=j,se}function Xq(j){const se=pO(j.redirectInfo);return se.flags|=j.flags&-17,se.fileName=j.fileName,se.path=j.path,se.resolvedPath=j.resolvedPath,se.originalFileName=j.originalFileName,se.packageJsonLocations=j.packageJsonLocations,se.packageJsonScope=j.packageJsonScope,se.emitNode=void 0,se}function by(j){const se=n.createBaseSourceFileNode(312);se.flags|=j.flags&-17;for(const De in j)if(!(ef(se,De)||!ef(j,De))){if(De==="emitNode"){se.emitNode=void 0;continue}se[De]=j[De]}return se}function sy(j){const se=j.redirectInfo?Xq(j):by(j);return Ls(se,j),se}function K0(j,se,De,Tt,wn,Vi,Us){const Hf=sy(j);return Hf.statements=we(se),Hf.isDeclarationFile=De,Hf.referencedFiles=Tt,Hf.typeReferenceDirectives=wn,Hf.hasNoDefaultLib=Vi,Hf.libReferenceDirectives=Us,Hf.transformFlags=gp(Hf.statements)|qs(Hf.endOfFileToken),Hf}function O2(j,se,De=j.isDeclarationFile,Tt=j.referencedFiles,wn=j.typeReferenceDirectives,Vi=j.hasNoDefaultLib,Us=j.libReferenceDirectives){return j.statements!==se||j.isDeclarationFile!==De||j.referencedFiles!==Tt||j.typeReferenceDirectives!==wn||j.hasNoDefaultLib!==Vi||j.libReferenceDirectives!==Us?i(K0(j,se,De,Tt,wn,Vi,Us),j):j}function o2(j,se=Yn){const De=Fe(313);return De.prepends=se,De.sourceFiles=j,De.syntheticFileReferences=void 0,De.syntheticTypeReferences=void 0,De.syntheticLibReferences=void 0,De.hasNoDefaultLib=void 0,De}function pw(j,se,De=Yn){return j.sourceFiles!==se||j.prepends!==De?i(o2(se,De),j):j}function Vp(j,se,De){const Tt=Fe(314);return Tt.prologues=j,Tt.syntheticReferences=se,Tt.texts=De,Tt.fileName="",Tt.text="",Tt.referencedFiles=Yn,Tt.libReferenceDirectives=Yn,Tt.getLineAndCharacterOfPosition=wn=>xm(Tt,wn),Tt}function O4(j,se){const De=Fe(j);return De.data=se,De}function ne(j){return O4(307,j)}function yt(j,se){const De=O4(308,j);return De.texts=se,De}function Er(j,se){return O4(se?310:309,j)}function Wi(j){const se=Fe(311);return se.data=j.data,se.section=j,se}function nc(){const j=Fe(315);return j.javascriptText="",j.declarationText="",j}function Vu(j,se=!1,De){const Tt=Fe(237);return Tt.type=j,Tt.isSpread=se,Tt.tupleNameSource=De,Tt}function ql(j){const se=Fe(358);return se._children=j,se}function Pf(j){const se=Fe(359);return se.original=j,Tn(se,j),se}function Z_(j,se){const De=Fe(360);return De.expression=j,De.original=se,De.transformFlags|=qs(De.expression)|1,Tn(De,se),De}function CE(j,se){return j.expression!==se?i(Z_(se,j.original),j):j}function a2(j){if(Hd(j)&&!qD(j)&&!j.original&&!j.emitNode&&!j.id){if(E_(j))return j.elements;if(Ds(j)&&WY(j.operatorToken))return[j.left,j.right]}return j}function ru(j){const se=Fe(361);return se.elements=we(kx(j,a2)),se.transformFlags|=gp(se.elements),se}function Fk(j,se){return j.elements!==se?i(ru(se),j):j}function Co(j,se){const De=Fe(362);return De.expression=j,De.thisArg=se,De.transformFlags|=qs(De.expression)|qs(De.thisArg),De}function DE(j,se,De){return j.expression!==se||j.thisArg!==De?i(Co(se,De),j):j}function MI(j){const se=st(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),RY(se,{...j.emitNode.autoGenerate}),se}function mO(j){const se=st(j.escapedText);se.flags|=j.flags&-17,se.jsDoc=j.jsDoc,se.flowNode=j.flowNode,se.symbol=j.symbol,se.transformFlags=j.transformFlags,Ls(se,j);const De=J7(j);return De&&d6(se,De),se}function gO(j){const se=Rn(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),RY(se,{...j.emitNode.autoGenerate}),se}function qF(j){const se=Rn(j.escapedText);return se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j),se}function LI(j){if(j===void 0)return j;if(Nu(j))return sy(j);if($g(j))return MI(j);if(xn(j))return mO(j);if(s7(j))return gO(j);if(Lu(j))return qF(j);const se=GU(j.kind)?n.createBaseNode(j.kind):n.createBaseTokenNode(j.kind);se.flags|=j.flags&-17,se.transformFlags=j.transformFlags,Ls(se,j);for(const De in j)ef(se,De)||!ef(j,De)||(se[De]=j[De]);return se}function $P(j,se,De){return da(VT(void 0,void 0,void 0,void 0,se?[se]:[],void 0,Q(j,!0)),void 0,De?[De]:[])}function XR(j,se,De){return da(fb(void 0,void 0,se?[se]:[],void 0,void 0,Q(j,!0)),void 0,De?[De]:[])}function mw(){return q0(dt("0"))}function Yq(j){return Mk(void 0,!1,j)}function KF(j){return HR(void 0,!1,PI([mD(!1,void 0,j)]))}function O1(j,se){return se==="null"?ve.createStrictEquality(j,Tr()):se==="undefined"?ve.createStrictEquality(j,mw()):ve.createStrictEquality(xv(j),Ct(se))}function F4(j,se){return se==="null"?ve.createStrictInequality(j,Tr()):se==="undefined"?ve.createStrictInequality(j,mw()):ve.createStrictInequality(xv(j),Ct(se))}function Wk(j,se,De){return AN(j)?t_(yp(j,void 0,se),void 0,void 0,De):da(bm(j,se),void 0,De)}function gw(j,se,De){return Wk(j,"bind",[se,...De])}function Qq(j,se,De){return Wk(j,"call",[se,...De])}function OI(j,se,De){return Wk(j,"apply",[se,De])}function HT(j,se,De){return Wk(Yt(j),se,De)}function F0e(j,se){return Wk(j,"slice",se===void 0?[]:[J6(se)])}function Bk(j,se){return Wk(j,"concat",se)}function XF(j,se,De){return HT("Object","defineProperty",[j,J6(se),De])}function ute(j,se){return HT("Object","getOwnPropertyDescriptor",[j,J6(se)])}function Xe(j,se,De){return HT("Reflect","get",De?[j,se,De]:[j,se])}function $t(j,se,De,Tt){return HT("Reflect","set",Tt?[j,se,De,Tt]:[j,se,De])}function bn(j,se,De){return De?(j.push(hD(se,De)),!0):!1}function Fn(j,se){const De=[];bn(De,"enumerable",J6(j.enumerable)),bn(De,"configurable",J6(j.configurable));let Tt=bn(De,"writable",J6(j.writable));Tt=bn(De,"value",j.value)||Tt;let wn=bn(De,"get",j.get);return wn=bn(De,"set",j.set)||wn,re.assert(!(Tt&&wn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Gd(De,!se)}function Ri(j,se){switch(j.kind){case 217:return P1(j,se);case 216:return Qm(j,j.type,se);case 234:return ri(j,se,j.type);case 238:return Oo(j,se,j.type);case 235:return yo(j,se);case 360:return CE(j,se)}}function Ti(j){return fE(j)&&Hd(j)&&Hd(XL(j))&&Hd(MS(j))&&!gt(y3(j))&&!gt(PY(j))}function Xc(j,se,De=15){return j&&WG(j,De)&&!Ti(j)?Ri(j,Xc(j.expression,se)):se}function Fu(j,se,De){if(!se)return j;const Tt=oO(se,se.label,tF(se.statement)?Fu(j,se.statement):j);return De&&De(se),Tt}function cu(j,se){const De=rg(j);switch(De.kind){case 80:return se;case 110:case 9:case 10:case 11:return!1;case 209:return De.elements.length!==0;case 210:return De.properties.length>0;default:return!0}}function Ml(j,se,De,Tt=!1){const wn=iv(j,15);let Vi,Us;return MT(wn)?(Vi=fr(),Us=wn):nT(wn)?(Vi=fr(),Us=De!==void 0&&De<2?Tn(Yt("_super"),wn):wn):wd(wn)&8192?(Vi=mw(),Us=c().parenthesizeLeftSideOfAccess(wn,!1)):Ac(wn)?cu(wn.expression,Tt)?(Vi=Et(se),Us=bm(Tn(ve.createAssignment(Vi,wn.expression),wn.expression),wn.name),Tn(Us,wn)):(Vi=wn.expression,Us=wn):Hm(wn)?cu(wn.expression,Tt)?(Vi=Et(se),Us=Xp(Tn(ve.createAssignment(Vi,wn.expression),wn.expression),wn.argumentExpression),Tn(Us,wn)):(Vi=wn.expression,Us=wn):(Vi=mw(),Us=c().parenthesizeLeftSideOfAccess(j,!1)),{target:Us,thisArg:Vi}}function Zu(j,se){return bm(Bh(Gd([ln(void 0,"value",[gc(void 0,void 0,j,void 0,void 0,void 0)],Q([pu(se)]))])),"value")}function hg(j){return j.length>10?ru(j):Em(j,ve.createComma)}function T_(j,se,De,Tt=0,wn){const Vi=wn?j&&Kre(j):i_(j);if(Vi&&xn(Vi)&&!$g(Vi)){const Us=kl(Tn(LI(Vi),Vi),Vi.parent);return Tt|=wd(Vi),De||(Tt|=96),se||(Tt|=3072),Tt&&_s(Us,Tt),Us}return nn(j)}function Cd(j,se,De){return T_(j,se,De,98304)}function pb(j,se,De,Tt){return T_(j,se,De,32768,Tt)}function zA(j,se,De){return T_(j,se,De,16384)}function qP(j,se,De){return T_(j,se,De)}function yx(j,se,De,Tt){const wn=bm(j,Hd(se)?se:LI(se));Tn(wn,se);let Vi=0;return Tt||(Vi|=96),De||(Vi|=3072),Vi&&_s(wn,Vi),wn}function mb(j,se,De,Tt){return j&&ul(se,32)?yx(j,T_(se),De,Tt):zA(se,De,Tt)}function KP(j,se,De,Tt){const wn=Zq(j,se,0,De);return YF(j,se,wn,Tt)}function bV(j){return Sd(j.expression)&&j.expression.text==="use strict"}function W4(){return lb(pu(Ct("use strict")))}function Zq(j,se,De=0,Tt){re.assert(se.length===0,"Prologue directives should be at the first statement in the target statements array");let wn=!1;const Vi=j.length;for(;DeHf&&VS.splice(wn,0,...se.slice(Hf,ng)),Hf>Us&&VS.splice(Tt,0,...se.slice(Us,Hf)),Us>Vi&&VS.splice(De,0,...se.slice(Vi,Us)),Vi>0)if(De===0)VS.splice(0,0,...se.slice(0,Vi));else{const z4=new Map;for(let G4=0;G4=0;G4--){const hO=se[G4];z4.has(hO.expression.text)||VS.unshift(hO)}}return BM(j)?Tn(we(VS,j.hasTrailingComma),j):j}function B4(j,se){let De;return typeof se=="number"?De=Ki(se):De=se,Np(j)?ki(j,De,j.name,j.constraint,j.default):Os(j)?Wl(j,De,j.dotDotDotToken,j.name,j.questionToken,j.type,j.initializer):RG(j)?vo(j,De,j.typeParameters,j.parameters,j.type):em(j)?za(j,De,j.name,j.questionToken,j.type):nu(j)?na(j,De,j.name,j.questionToken??j.exclamationToken,j.type,j.initializer):pg(j)?us(j,De,j.name,j.questionToken,j.typeParameters,j.parameters,j.type):tm(j)?Qu(j,De,j.asteriskToken,j.name,j.questionToken,j.typeParameters,j.parameters,j.type,j.body):Lh(j)?Hn(j,De,j.parameters,j.body):lE(j)?Pr(j,De,j.name,j.parameters,j.type,j.body):Xb(j)?Wn(j,De,j.name,j.parameters,j.body):Z2(j)?yi(j,De,j.parameters,j.type):Jm(j)?Zm(j,De,j.asteriskToken,j.name,j.typeParameters,j.parameters,j.type,j.body):$m(j)?FS(j,De,j.typeParameters,j.parameters,j.type,j.equalsGreaterThanToken,j.body):v0(j)?Uv(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):Xg(j)?oo(j,De,j.declarationList):mg(j)?zr(j,De,j.asteriskToken,j.name,j.typeParameters,j.parameters,j.type,j.body):Ih(j)?Wc(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):xp(j)?_c(j,De,j.name,j.typeParameters,j.heritageClauses,j.members):z0(j)?kf(j,De,j.name,j.typeParameters,j.type):xP(j)?hn(j,De,j.name,j.members):dy(j)?yh(j,De,j.name,j.body):Yb(j)?VP(j,De,j.isTypeOnly,j.name,j.moduleReference):n0(j)?Bd(j,De,j.importClause,j.moduleSpecifier,j.attributes):py(j)?M2(j,De,j.expression):ry(j)?kI(j,De,j.isTypeOnly,j.exportClause,j.moduleSpecifier,j.attributes):re.assertNever(j)}function GA(j,se){return Os(j)?Wl(j,se,j.dotDotDotToken,j.name,j.questionToken,j.type,j.initializer):nu(j)?na(j,se,j.name,j.questionToken??j.exclamationToken,j.type,j.initializer):tm(j)?Qu(j,se,j.asteriskToken,j.name,j.questionToken,j.typeParameters,j.parameters,j.type,j.body):lE(j)?Pr(j,se,j.name,j.parameters,j.type,j.body):Xb(j)?Wn(j,se,j.name,j.parameters,j.body):v0(j)?Uv(j,se,j.name,j.typeParameters,j.heritageClauses,j.members):Ih(j)?Wc(j,se,j.name,j.typeParameters,j.heritageClauses,j.members):re.assertNever(j)}function eK(j,se){switch(j.kind){case 177:return Pr(j,j.modifiers,se,j.parameters,j.type,j.body);case 178:return Wn(j,j.modifiers,se,j.parameters,j.body);case 174:return Qu(j,j.modifiers,j.asteriskToken,se,j.questionToken,j.typeParameters,j.parameters,j.type,j.body);case 173:return us(j,j.modifiers,se,j.questionToken,j.typeParameters,j.parameters,j.type);case 172:return na(j,j.modifiers,se,j.questionToken??j.exclamationToken,j.type,j.initializer);case 171:return za(j,j.modifiers,se,j.questionToken,j.type);case 303:return TC(j,se,j.initializer)}}function Up(j){return j?we(j):void 0}function vh(j){return typeof j=="string"?Yt(j):j}function J6(j){return typeof j=="string"?Ct(j):typeof j=="number"?dt(j):typeof j=="boolean"?j?Vr():Pn():j}function xC(j){return j&&c().parenthesizeExpressionForDisallowedComma(j)}function F2(j){return typeof j=="number"?jt(j):j}function XP(j){return j&&rD(j)?Tn(Ls(Js(),j),j):j}function xB(j){return typeof j=="string"||j&&!Kc(j)?o1(j,void 0,void 0,void 0):j}}function _st(e,n){return e!==n&&Tn(e,n),e}function KL(e,n){return e!==n&&(Ls(e,n),Tn(e,n)),e}function AG(e){switch(e){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 re.fail(`Unsupported kind: ${re.formatSyntaxKind(e)}`)}}function dst(e,n){switch(TR||(TR=CS(99,!1,0)),e){case 15:TR.setText("`"+n+"`");break;case 16:TR.setText("`"+n+"${");break;case 17:TR.setText("}"+n+"${");break;case 18:TR.setText("}"+n+"`");break}let i=TR.scan();if(i===20&&(i=TR.reScanTemplateToken(!1)),TR.isUnterminated())return TR.setText(void 0),be;let c;switch(i){case 15:case 16:case 17:case 18:c=TR.getTokenValue();break}return c===void 0||TR.scan()!==1?(TR.setText(void 0),be):(TR.setText(void 0),c)}function ms(e){return e&&xn(e)?cp(e):qs(e)}function cp(e){return qs(e)&-67108865}function aUe(e,n){return n|e.transformFlags&134234112}function qs(e){if(!e)return 0;const n=e.transformFlags&~v6e(e.kind);return mp(e)&&qg(e.name)?aUe(e.name,n):n}function gp(e){return e?e.transformFlags:0}function pEe(e){let n=0;for(const i of e)n|=qs(i);e.transformFlags=n}function v6e(e){if(e>=182&&e<=205)return-2;switch(e){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 Qde(e){return e.flags|=16,e}function mEe(e,n,i){let c,u,d,h,S,E,P,k,F,$;As(e)?(d="",h=e,S=e.length,E=n,P=i):(re.assert(n==="js"||n==="dts"),d=(n==="js"?e.javascriptPath:e.declarationPath)||"",E=n==="js"?e.javascriptMapPath:e.declarationMapPath,k=()=>n==="js"?e.javascriptText:e.declarationText,F=()=>n==="js"?e.javascriptMapText:e.declarationMapText,S=()=>k().length,e.buildInfo&&e.buildInfo.bundle&&(re.assert(i===void 0||typeof i=="boolean"),c=i,u=n==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,$=e.oldFileOfCurrentEmit));const J=$?T6e(re.checkDefined(u)):b6e(u,c,S);return J.fileName=d,J.sourceMapPath=E,J.oldFileOfCurrentEmit=$,k&&F?(Object.defineProperty(J,"text",{get:k}),Object.defineProperty(J,"sourceMapText",{get:F})):(re.assert(!$),J.text=h??"",J.sourceMapText=P),J}function b6e(e,n,i){let c,u,d,h,S,E,P,k;for(const $ of e?e.sections:Yn)switch($.kind){case"prologue":c=ur(c,Tn(he.createUnparsedPrologue($.data),$));break;case"emitHelpers":u=ur(u,MY().get($.data));break;case"no-default-lib":k=!0;break;case"reference":d=ur(d,{pos:-1,end:-1,fileName:$.data});break;case"type":h=ur(h,{pos:-1,end:-1,fileName:$.data});break;case"type-import":h=ur(h,{pos:-1,end:-1,fileName:$.data,resolutionMode:99});break;case"type-require":h=ur(h,{pos:-1,end:-1,fileName:$.data,resolutionMode:1});break;case"lib":S=ur(S,{pos:-1,end:-1,fileName:$.data});break;case"prepend":let J;for(const X of $.texts)(!n||X.kind!=="internal")&&(J=ur(J,Tn(he.createUnparsedTextLike(X.data,X.kind==="internal"),X)));E=Oi(E,J),P=ur(P,he.createUnparsedPrepend($.data,J??Yn));break;case"internal":if(n){P||(P=[]);break}case"text":P=ur(P,Tn(he.createUnparsedTextLike($.data,$.kind==="internal"),$));break;default:re.assertNever($)}if(!P){const $=he.createUnparsedTextLike(void 0,!1);f3($,0,typeof i=="function"?i():i),P=[$]}const F=Ck.createUnparsedSource(c??Yn,void 0,P);return u6(c,F),u6(P,F),u6(E,F),F.hasNoDefaultLib=k,F.helpers=u,F.referencedFiles=d||Yn,F.typeReferenceDirectives=h,F.libReferenceDirectives=S||Yn,F}function T6e(e){let n,i;for(const u of e.sections)switch(u.kind){case"internal":case"text":n=ur(n,Tn(he.createUnparsedTextLike(u.data,u.kind==="internal"),u));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":i=ur(i,Tn(he.createUnparsedSyntheticReference(u),u));break;case"prologue":case"emitHelpers":case"prepend":break;default:re.assertNever(u)}const c=he.createUnparsedSource(Yn,i,n??Yn);return u6(i,c),u6(n,c),c.helpers=Vn(e.sources&&e.sources.helpers,u=>MY().get(u)),c}function sUe(e,n,i,c,u,d){return As(e)?gEe(void 0,e,i,c,void 0,n,u,d):tc(e,n,i,c,u,d)}function tc(e,n,i,c,u,d,h,S){const E=Ck.createInputFiles();E.javascriptPath=n,E.javascriptMapPath=i,E.declarationPath=c,E.declarationMapPath=u,E.buildInfoPath=d;const P=new Map,k=X=>{if(X===void 0)return;let ie=P.get(X);return ie===void 0&&(ie=e(X),P.set(X,ie!==void 0?ie:!1)),ie!==!1?ie:void 0},F=X=>{const ie=k(X);return ie!==void 0?ie:`/* Input file ${X} was missing */\r +`};let $;return Object.defineProperties(E,{javascriptText:{get:()=>F(n)},javascriptMapText:{get:()=>k(i)},declarationText:{get:()=>F(re.checkDefined(c))},declarationMapText:{get:()=>k(u)},buildInfo:{get:()=>{if($===void 0&&d)if(h!=null&&h.getBuildInfo)$=h.getBuildInfo(d,S.configFilePath)??!1;else{const X=k(d);$=X!==void 0?Fme(d,X)??!1:!1}return $||void 0}}}),E}function gEe(e,n,i,c,u,d,h,S,E,P,k){const F=Ck.createInputFiles();return F.javascriptPath=e,F.javascriptText=n,F.javascriptMapPath=i,F.javascriptMapText=c,F.declarationPath=u,F.declarationText=d,F.declarationMapPath=h,F.declarationMapText=S,F.buildInfoPath=E,F.buildInfo=P,F.oldFileOfCurrentEmit=k,F}function cUe(e,n,i){return new(hEe||(hEe=W0.getSourceMapSourceConstructor()))(e,n,i)}function Ls(e,n){if(e.original!==n&&(e.original=n,n)){const i=n.emitNode;i&&(e.emitNode=S6e(i,e.emitNode))}return e}function S6e(e,n){const{flags:i,internalFlags:c,leadingComments:u,trailingComments:d,commentRange:h,sourceMapRange:S,tokenSourceMapRanges:E,constantValue:P,helpers:k,startsOnNewLine:F,snippetElement:$,classThis:J,assignedName:X}=e;if(n||(n={}),i&&(n.flags=i),c&&(n.internalFlags=c&-9),u&&(n.leadingComments=Oi(u.slice(),n.leadingComments)),d&&(n.trailingComments=Oi(d.slice(),n.trailingComments)),h&&(n.commentRange=h),S&&(n.sourceMapRange=S),E&&(n.tokenSourceMapRanges=E6e(E,n.tokenSourceMapRanges)),P!==void 0&&(n.constantValue=P),k)for(const ie of k)n.helpers=ST(n.helpers,ie);return F!==void 0&&(n.startsOnNewLine=F),$!==void 0&&(n.snippetElement=$),J&&(n.classThis=J),X&&(n.assignedName=X),n}function E6e(e,n){n||(n=[]);for(const i in e)n[i]=e[i];return n}var hk,Ioe,sJ,TR,be,kY,lUe,he,hEe,Zde=G({"src/compiler/factory/nodeFactory.ts"(){md(),hk=0,Ioe=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(Ioe||{}),sJ=[],be={},kY=Yde(),lUe={createBaseSourceFileNode:e=>Qde(kY.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Qde(kY.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Qde(kY.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Qde(kY.createBaseTokenNode(e)),createBaseNode:e=>Qde(kY.createBaseNode(e))},he=xG(4,lUe)}});function Sa(e){if(e.emitNode)re.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(qD(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const n=ts(__(ts(e)))??re.fail("Could not determine parsed source file.");Sa(n).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function cI(e){var n,i;const c=(i=(n=ts(__(e)))==null?void 0:n.emitNode)==null?void 0:i.annotatedNodes;if(c)for(const u of c)u.emitNode=void 0}function aW(e){const n=Sa(e);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,e}function _s(e,n){return Sa(e).flags=n,e}function cE(e,n){const i=Sa(e);return i.flags=i.flags|n,e}function Sp(e,n){return Sa(e).internalFlags=n,e}function CG(e,n){const i=Sa(e);return i.internalFlags=i.internalFlags|n,e}function XL(e){var n;return((n=e.emitNode)==null?void 0:n.sourceMapRange)??e}function lp(e,n){return Sa(e).sourceMapRange=n,e}function epe(e,n){var i,c;return(c=(i=e.emitNode)==null?void 0:i.tokenSourceMapRanges)==null?void 0:c[n]}function lI(e,n,i){const c=Sa(e),u=c.tokenSourceMapRanges??(c.tokenSourceMapRanges=[]);return u[n]=i,e}function Ry(e){var n;return(n=e.emitNode)==null?void 0:n.startsOnNewLine}function U7(e,n){return Sa(e).startsOnNewLine=n,e}function MS(e){var n;return((n=e.emitNode)==null?void 0:n.commentRange)??e}function _y(e,n){return Sa(e).commentRange=n,e}function y3(e){var n;return(n=e.emitNode)==null?void 0:n.leadingComments}function uI(e,n){return Sa(e).leadingComments=n,e}function sW(e,n,i,c){return uI(e,ur(y3(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:i}))}function PY(e){var n;return(n=e.emitNode)==null?void 0:n.trailingComments}function cW(e,n){return Sa(e).trailingComments=n,e}function koe(e,n,i,c){return cW(e,ur(PY(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:c,text:i}))}function lW(e,n){uI(e,y3(n)),cW(e,PY(n));const i=Sa(n);return i.leadingComments=void 0,i.trailingComments=void 0,e}function JN(e){var n;return(n=e.emitNode)==null?void 0:n.constantValue}function x6e(e,n){const i=Sa(e);return i.constantValue=n,e}function v3(e,n){const i=Sa(e);return i.helpers=ur(i.helpers,n),e}function $N(e,n){if(gt(n)){const i=Sa(e);for(const c of n)i.helpers=ST(i.helpers,c)}return e}function yEe(e,n){var i;const c=(i=e.emitNode)==null?void 0:i.helpers;return c?xL(c,n):!1}function NY(e){var n;return(n=e.emitNode)==null?void 0:n.helpers}function tpe(e,n,i){const c=e.emitNode,u=c&&c.helpers;if(!gt(u))return;const d=Sa(n);let h=0;for(let S=0;S0&&(u[S-h]=E)}h>0&&(u.length-=h)}function npe(e){var n;return(n=e.emitNode)==null?void 0:n.snippetElement}function rpe(e,n){const i=Sa(e);return i.snippetElement=n,e}function qN(e){return Sa(e).internalFlags|=4,e}function H7(e,n){const i=Sa(e);return i.typeNode=n,e}function wY(e){var n;return(n=e.emitNode)==null?void 0:n.typeNode}function d6(e,n){return Sa(e).identifierTypeArguments=n,e}function J7(e){var n;return(n=e.emitNode)==null?void 0:n.identifierTypeArguments}function RY(e,n){return Sa(e).autoGenerate=n,e}function uUe(e){var n;return(n=e.emitNode)==null?void 0:n.autoGenerate}function vEe(e,n){return Sa(e).generatedImportReference=n,e}function bEe(e){var n;return(n=e.emitNode)==null?void 0:n.generatedImportReference}var A6e=G({"src/compiler/factory/emitNode.ts"(){md()}});function ipe(e){const n=e.factory,i=Pd(()=>Sp(n.createTrue(),8)),c=Pd(()=>Sp(n.createFalse(),8));return{getUnscopedHelperName:u,createDecorateHelper:d,createMetadataHelper:h,createParamHelper:S,createESDecorateHelper:ie,createRunInitializersHelper:ae,createAssignHelper:ve,createAwaitHelper:we,createAsyncGeneratorHelper:Fe,createAsyncDelegatorHelper:et,createAsyncValuesHelper:Pe,createRestHelper:dt,createAwaiterHelper:Ie,createExtendsHelper:ct,createTemplateObjectHelper:Ct,createSpreadArrayHelper:Lt,createPropKeyHelper:Ze,createSetFunctionNameHelper:Ke,createValuesHelper:st,createReadHelper:It,createGeneratorHelper:Yt,createCreateBindingHelper:Et,createImportStarHelper:at,createImportStarCallbackHelper:Qt,createImportDefaultHelper:nn,createExportStarHelper:Rn,createClassPrivateFieldGetHelper:cn,createClassPrivateFieldSetHelper:qt,createClassPrivateFieldInHelper:Kt,createAddDisposableResourceHelper:wr,createDisposeResourcesHelper:Wr};function u(jt){return _s(n.createIdentifier(jt),8196)}function d(jt,En,fr,Tr){e.requestEmitHelper(lJ);const Vr=[];return Vr.push(n.createArrayLiteralExpression(jt,!0)),Vr.push(En),fr&&(Vr.push(fr),Tr&&Vr.push(Tr)),n.createCallExpression(u("__decorate"),void 0,Vr)}function h(jt,En){return e.requestEmitHelper(uJ),n.createCallExpression(u("__metadata"),void 0,[n.createStringLiteral(jt),En])}function S(jt,En,fr){return e.requestEmitHelper(fJ),Tn(n.createCallExpression(u("__param"),void 0,[n.createNumericLiteral(En+""),jt]),fr)}function E(jt){const En=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),jt.name),n.createPropertyAssignment(n.createIdentifier("metadata"),jt.metadata)];return n.createObjectLiteralExpression(En)}function P(jt){const En=jt.computed?n.createElementAccessExpression(n.createIdentifier("obj"),jt.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),jt.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,En))}function k(jt){const En=jt.computed?n.createElementAccessExpression(n.createIdentifier("obj"),jt.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),jt.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(En,n.createIdentifier("value")))])))}function F(jt){const En=jt.computed?jt.name:xn(jt.name)?n.createStringLiteralFromNode(jt.name):jt.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(En,103,n.createIdentifier("obj"))))}function $(jt,En){const fr=[];return fr.push(F(jt)),En.get&&fr.push(P(jt)),En.set&&fr.push(k(jt)),n.createObjectLiteralExpression(fr)}function J(jt){const En=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(jt.kind)),n.createPropertyAssignment(n.createIdentifier("name"),jt.name.computed?jt.name.name:n.createStringLiteralFromNode(jt.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),jt.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),jt.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),$(jt.name,jt.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),jt.metadata)];return n.createObjectLiteralExpression(En)}function X(jt){return jt.kind==="class"?E(jt):J(jt)}function ie(jt,En,fr,Tr,Vr,Pn){return e.requestEmitHelper(b3),n.createCallExpression(u("__esDecorate"),void 0,[jt??n.createNull(),En??n.createNull(),fr,X(Tr),Vr,Pn])}function ae(jt,En,fr){return e.requestEmitHelper(_J),n.createCallExpression(u("__runInitializers"),void 0,fr?[jt,En,fr]:[jt,En])}function ve(jt){return iu(e.getCompilerOptions())>=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,jt):(e.requestEmitHelper(dJ),n.createCallExpression(u("__assign"),void 0,jt))}function we(jt){return e.requestEmitHelper(T3),n.createCallExpression(u("__await"),void 0,[jt])}function Fe(jt,En){return e.requestEmitHelper(T3),e.requestEmitHelper(pJ),(jt.emitNode||(jt.emitNode={})).flags|=1572864,n.createCallExpression(u("__asyncGenerator"),void 0,[En?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),jt])}function et(jt){return e.requestEmitHelper(T3),e.requestEmitHelper(mJ),n.createCallExpression(u("__asyncDelegator"),void 0,[jt])}function Pe(jt){return e.requestEmitHelper(gJ),n.createCallExpression(u("__asyncValues"),void 0,[jt])}function dt(jt,En,fr,Tr){e.requestEmitHelper(hJ);const Vr=[];let Pn=0;for(let Fr=0;Fr{let c="";for(let u=0;ue.name))}function uW(e,n){return xd(e)&&xn(e.expression)&&(wd(e.expression)&8192)!==0&&e.expression.escapedText===n}var LY,lJ,uJ,fJ,b3,_J,dJ,T3,pJ,mJ,gJ,hJ,yJ,vJ,bJ,TJ,SJ,EJ,$7,xJ,DG,q7,AJ,IG,CJ,DJ,IJ,kJ,Noe,kG,PG,fUe,nS,NG,Wp=G({"src/compiler/factory/emitHelpers.ts"(){md(),LY=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(LY||{}),lJ={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); @@ -234,7 +234,7 @@ ${ge.join(` } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},IG={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + };`},DG={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; @@ -277,7 +277,7 @@ ${ge.join(` Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},kG={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[q7,AJ],priority:2,text:` + });`},IG={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[q7,AJ],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -305,7 +305,7 @@ ${ge.join(` 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); - };`},PG={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + };`},kG={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."); @@ -325,7 +325,7 @@ ${ge.join(` env.stack.push({ async: true }); } return value; - };`},NG={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + };`},PG={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { @@ -351,72 +351,72 @@ ${ge.join(` var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},nS={name:"typescript:async-super",scoped:!0,text:Poe` - const ${"_superIndex"} = name => super[name];`},wG={name:"typescript:advanced-async-super",scoped:!0,text:Poe` + const ${"_superIndex"} = name => super[name];`},NG={name:"typescript:advanced-async-super",scoped:!0,text:Poe` 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 S1(e){return e.kind===9}function OY(e){return e.kind===10}function Sd(e){return e.kind===11}function SR(e){return e.kind===12}function ope(e){return e.kind===14}function K7(e){return e.kind===15}function X7(e){return e.kind===16}function TEe(e){return e.kind===17}function woe(e){return e.kind===18}function FY(e){return e.kind===26}function WY(e){return e.kind===28}function PJ(e){return e.kind===40}function ER(e){return e.kind===41}function BY(e){return e.kind===42}function RG(e){return e.kind===54}function p6(e){return e.kind===58}function An(e){return e.kind===59}function Gu(e){return e.kind===29}function fW(e){return e.kind===39}function xn(e){return e.kind===80}function Lu(e){return e.kind===81}function _W(e){return e.kind===95}function zY(e){return e.kind===90}function NJ(e){return e.kind===134}function dW(e){return e.kind===131}function ape(e){return e.kind===135}function SEe(e){return e.kind===148}function pW(e){return e.kind===126}function wJ(e){return e.kind===128}function RJ(e){return e.kind===164}function EEe(e){return e.kind===129}function nT(e){return e.kind===108}function am(e){return e.kind===102}function Hh(e){return e.kind===84}function Pu(e){return e.kind===166}function Qf(e){return e.kind===167}function Np(e){return e.kind===168}function Os(e){return e.kind===169}function Jh(e){return e.kind===170}function em(e){return e.kind===171}function nu(e){return e.kind===172}function pg(e){return e.kind===173}function tm(e){return e.kind===174}function Ep(e){return e.kind===175}function Lh(e){return e.kind===176}function lE(e){return e.kind===177}function Xb(e){return e.kind===178}function Y7(e){return e.kind===179}function x2(e){return e.kind===180}function Z2(e){return e.kind===181}function mW(e){return e.kind===182}function uE(e){return e.kind===183}function e0(e){return e.kind===184}function MG(e){return e.kind===185}function m6(e){return e.kind===186}function rS(e){return e.kind===187}function GY(e){return e.kind===188}function gW(e){return e.kind===189}function g6(e){return e.kind===202}function MJ(e){return e.kind===190}function hW(e){return e.kind===191}function fI(e){return e.kind===192}function xR(e){return e.kind===193}function Q7(e){return e.kind===194}function KN(e){return e.kind===195}function XN(e){return e.kind===196}function yW(e){return e.kind===197}function _I(e){return e.kind===198}function Wx(e){return e.kind===199}function LJ(e){return e.kind===200}function S3(e){return e.kind===201}function E1(e){return e.kind===205}function vW(e){return e.kind===204}function ym(e){return e.kind===203}function Ch(e){return e.kind===206}function Wd(e){return e.kind===207}function sa(e){return e.kind===208}function Ed(e){return e.kind===209}function el(e){return e.kind===210}function Ac(e){return e.kind===211}function Hm(e){return e.kind===212}function xd(e){return e.kind===213}function sb(e){return e.kind===214}function Dm(e){return e.kind===215}function ph(e){return e.kind===216}function fE(e){return e.kind===217}function Jm(e){return e.kind===218}function $m(e){return e.kind===219}function h6(e){return e.kind===220}function yk(e){return e.kind===221}function Z7(e){return e.kind===222}function ys(e){return e.kind===223}function vk(e){return e.kind===224}function jY(e){return e.kind===225}function Ds(e){return e.kind===226}function ex(e){return e.kind===227}function B0(e){return e.kind===228}function t0(e){return e.kind===229}function WT(e){return e.kind===230}function v0(e){return e.kind===231}function cb(e){return e.kind===232}function cC(e){return e.kind===233}function eF(e){return e.kind===234}function C6e(e){return e.kind===238}function E3(e){return e.kind===235}function x3(e){return e.kind===236}function VY(e){return e.kind===237}function Roe(e){return e.kind===360}function E_(e){return e.kind===361}function Dh(e){return e.kind===239}function spe(e){return e.kind===240}function Ou(e){return e.kind===241}function Xg(e){return e.kind===243}function xEe(e){return e.kind===242}function kb(e){return e.kind===244}function bk(e){return e.kind===245}function cpe(e){return e.kind===246}function Moe(e){return e.kind===247}function bW(e){return e.kind===248}function lpe(e){return e.kind===249}function Bx(e){return e.kind===250}function D6e(e){return e.kind===251}function Loe(e){return e.kind===252}function iS(e){return e.kind===253}function upe(e){return e.kind===254}function AR(e){return e.kind===255}function tF(e){return e.kind===256}function ff(e){return e.kind===257}function My(e){return e.kind===258}function b0(e){return e.kind===259}function Kc(e){return e.kind===260}function Kp(e){return e.kind===261}function mg(e){return e.kind===262}function Ih(e){return e.kind===263}function xp(e){return e.kind===264}function z0(e){return e.kind===265}function xP(e){return e.kind===266}function py(e){return e.kind===267}function kh(e){return e.kind===268}function Fv(e){return e.kind===269}function lC(e){return e.kind===270}function Yb(e){return e.kind===271}function n0(e){return e.kind===272}function Tk(e){return e.kind===273}function QL(e){return e.kind===302}function AP(e){return e.kind===300}function y6(e){return e.kind===301}function oS(e){return e.kind===300}function Ly(e){return e.kind===301}function mh(e){return e.kind===274}function G0(e){return e.kind===280}function Oy(e){return e.kind===275}function qE(e){return e.kind===276}function my(e){return e.kind===277}function ry(e){return e.kind===278}function j0(e){return e.kind===279}function gy(e){return e.kind===281}function TW(e){return e.kind===282}function rD(e){return e.kind===359}function Sk(e){return e.kind===362}function KE(e){return e.kind===283}function zx(e){return e.kind===284}function nF(e){return e.kind===285}function Pb(e){return e.kind===286}function iD(e){return e.kind===287}function Ek(e){return e.kind===288}function v6(e){return e.kind===289}function dI(e){return e.kind===290}function tx(e){return e.kind===291}function CR(e){return e.kind===292}function rT(e){return e.kind===293}function CP(e){return e.kind===294}function Fm(e){return e.kind===295}function BT(e){return e.kind===296}function xk(e){return e.kind===297}function Qb(e){return e.kind===298}function A3(e){return e.kind===299}function tl(e){return e.kind===303}function XE(e){return e.kind===304}function xA(e){return e.kind===305}function pI(e){return e.kind===306}function OJ(e){return e.kind===308}function Nu(e){return e.kind===312}function fpe(e){return e.kind===313}function rF(e){return e.kind===314}function SW(e){return e.kind===316}function FJ(e){return e.kind===317}function ZL(e){return e.kind===318}function LG(e){return e.kind===331}function Ooe(e){return e.kind===332}function AEe(e){return e.kind===333}function OG(e){return e.kind===319}function Foe(e){return e.kind===320}function WJ(e){return e.kind===321}function Gx(e){return e.kind===322}function EW(e){return e.kind===323}function Ak(e){return e.kind===324}function iF(e){return e.kind===325}function _Ue(e){return e.kind===326}function uC(e){return e.kind===327}function oF(e){return e.kind===329}function b6(e){return e.kind===330}function xW(e){return e.kind===335}function CEe(e){return e.kind===337}function _pe(e){return e.kind===339}function UY(e){return e.kind===345}function FG(e){return e.kind===340}function Woe(e){return e.kind===341}function DEe(e){return e.kind===342}function BJ(e){return e.kind===343}function AA(e){return e.kind===344}function aF(e){return e.kind===346}function dpe(e){return e.kind===338}function HY(e){return e.kind===354}function jx(e){return e.kind===347}function A2(e){return e.kind===348}function ppe(e){return e.kind===349}function IEe(e){return e.kind===350}function WG(e){return e.kind===351}function CA(e){return e.kind===352}function zJ(e){return e.kind===353}function GJ(e){return e.kind===334}function I6e(e){return e.kind===355}function jJ(e){return e.kind===336}function e4(e){return e.kind===357}function kEe(e){return e.kind===356}function AW(e){return e.kind===358}var k6e=G({"src/compiler/factory/nodeTests.ts"(){md()}});function Boe(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function sF(e,n,i,c){if(Qf(i))return Tn(e.createElementAccessExpression(n,i.expression),c);{const u=Tn(xN(i)?e.createPropertyAccessExpression(n,i):e.createElementAccessExpression(n,i),i);return cE(u,128),u}}function PEe(e,n){const i=Ck.createIdentifier(e||"React");return kl(i,__(n)),i}function mpe(e,n,i){if(Pu(n)){const c=mpe(e,n.left,i),u=e.createIdentifier(Kr(n.right));return u.escapedText=n.right.escapedText,e.createPropertyAccessExpression(c,u)}else return PEe(Kr(n),i)}function NEe(e,n,i,c){return n?mpe(e,n,c):e.createPropertyAccessExpression(PEe(i,c),"createElement")}function gpe(e,n,i,c){return n?mpe(e,n,c):e.createPropertyAccessExpression(PEe(i,c),"Fragment")}function hpe(e,n,i,c,u,d){const h=[i];if(c&&h.push(c),u&&u.length>0)if(c||h.push(e.createNull()),u.length>1)for(const S of u)lb(S),h.push(S);else h.push(u[0]);return Tn(e.createCallExpression(n,void 0,h),d)}function P6e(e,n,i,c,u,d,h){const E=[gpe(e,i,c,d),e.createNull()];if(u&&u.length>0)if(u.length>1)for(const P of u)lb(P),E.push(P);else E.push(u[0]);return Tn(e.createCallExpression(NEe(e,n,c,d),void 0,E),h)}function wEe(e,n,i){if(Kp(n)){const c=Dl(n.declarations),u=e.updateVariableDeclaration(c,c.name,void 0,void 0,i);return Tn(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[u])),n)}else{const c=Tn(e.createAssignment(n,i),n);return Tn(e.createExpressionStatement(c),n)}}function dUe(e,n,i){return Ou(n)?e.updateBlock(n,Tn(e.createNodeArray([i,...n.statements]),n.statements)):e.createBlock(e.createNodeArray([n,i]),!0)}function zoe(e,n){if(Pu(n)){const i=zoe(e,n.left),c=kl(Tn(e.cloneNode(n.right),n.right),n.right.parent);return Tn(e.createPropertyAccessExpression(i,c),n)}else return kl(Tn(e.cloneNode(n),n),n.parent)}function ype(e,n){return xn(n)?e.createStringLiteralFromNode(n):Qf(n)?kl(Tn(e.cloneNode(n.expression),n.expression),n.expression.parent):kl(Tn(e.cloneNode(n),n),n.parent)}function REe(e,n,i,c,u){const{firstAccessor:d,getAccessor:h,setAccessor:S}=oI(n,i);if(i===d)return Tn(e.createObjectDefinePropertyCall(c,ype(e,i.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:h&&Tn(Ls(e.createFunctionExpression(Xv(h),void 0,void 0,void 0,h.parameters,void 0,h.body),h),h),set:S&&Tn(Ls(e.createFunctionExpression(Xv(S),void 0,void 0,void 0,S.parameters,void 0,S.body),S),S)},!u)),d)}function N6e(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),n.initializer),n),n)}function T6(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),e.cloneNode(n.name)),n),n)}function MEe(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),Ls(Tn(e.createFunctionExpression(Xv(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}function LEe(e,n,i,c){switch(i.name&&Lu(i.name)&&re.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 177:case 178:return REe(e,n.properties,i,c,!!n.multiLine);case 303:return N6e(e,i,c);case 304:return T6(e,i,c);case 174:return MEe(e,i,c)}}function JY(e,n,i,c,u){const d=n.operator;re.assert(d===46||d===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const h=e.createTempVariable(c);i=e.createAssignment(h,i),Tn(i,n.operand);let S=vk(n)?e.createPrefixUnaryExpression(d,h):e.createPostfixUnaryExpression(h,d);return Tn(S,n),u&&(S=e.createAssignment(u,S),Tn(S,n)),i=e.createComma(i,S),Tn(i,n),jY(n)&&(i=e.createComma(i,h),Tn(i,n)),i}function vpe(e){return(wd(e)&65536)!==0}function mI(e){return(wd(e)&32768)!==0}function CW(e){return(wd(e)&16384)!==0}function $Y(e){return Sd(e.expression)&&e.expression.text==="use strict"}function qY(e){for(const n of e)if($2(n)){if($Y(n))return n}else break}function Goe(e){const n=pp(e);return n!==void 0&&$2(n)&&$Y(n)}function rv(e){return e.kind===226&&e.operatorToken.kind===28}function VJ(e){return rv(e)||E_(e)}function KY(e){return fE(e)&&Cs(e)&&!!FM(e)}function x1(e){const n=iR(e);return re.assertIsDefined(n),n}function BG(e,n=15){switch(e.kind){case 217:return n&16&&KY(e)?!1:(n&1)!==0;case 216:case 234:case 233:case 238:return(n&2)!==0;case 235:return(n&4)!==0;case 360:return(n&8)!==0}return!1}function iv(e,n=15){for(;BG(e,n);)e=e.expression;return e}function bpe(e,n=15){let i=e.parent;for(;BG(i,n);)i=i.parent,re.assert(i);return i}function w6e(e){return iv(e,6)}function lb(e){return U7(e,!0)}function t4(e){const n=Gg(e,Nu),i=n&&n.emitNode;return i&&i.externalHelpersModuleName}function R6e(e){const n=Gg(e,Nu),i=n&&n.emitNode;return!!i&&(!!i.externalHelpersModuleName||!!i.externalHelpers)}function UJ(e,n,i,c,u,d,h){if(c.importHelpers&&VM(i,c)){let S;const E=Zp(c);if(E>=5&&E<=99||i.impliedNodeFormat===99){const P=NY(i);if(P){const k=[];for(const F of P)if(!F.scoped){const $=F.importName;$&&Dy(k,$)}if(gt(k)){k.sort(Fp),S=e.createNamedImports(Vn(k,J=>ns(i,J)?e.createImportSpecifier(!1,void 0,e.createIdentifier(J)):e.createImportSpecifier(!1,e.createIdentifier(J),n.getUnscopedHelperName(J))));const F=Gg(i,Nu),$=Sa(F);$.externalHelpers=!0}}}else{const P=M6e(e,i,c,u,d||h);P&&(S=e.createNamespaceImport(P))}if(S){const P=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,S),e.createStringLiteral(HN),void 0);return DG(P,2),P}}}function M6e(e,n,i,c,u){if(i.importHelpers&&VM(n,i)){const d=t4(n);if(d)return d;const h=Zp(i);let S=(c||b1(i)&&u)&&h!==4&&(h<5||n.impliedNodeFormat===1);if(!S){const E=NY(n);if(E){for(const P of E)if(!P.scoped){S=!0;break}}}if(S){const E=Gg(n,Nu),P=Sa(E);return P.externalHelpersModuleName||(P.externalHelpersModuleName=e.createUniqueName(HN))}}}function C3(e,n,i){const c=H8(n);if(c&&!R9(n)&&!nY(n)){const u=c.name;return $g(u)?u:e.createIdentifier(m7(i,u)||Kr(u))}if(n.kind===272&&n.importClause||n.kind===278&&n.moduleSpecifier)return e.getGeneratedNameForNode(n)}function oD(e,n,i,c,u,d){const h=w9(n);if(h&&Sd(h))return FEe(n,c,e,u,d)||OEe(e,h,i)||e.cloneNode(h)}function OEe(e,n,i){const c=i.renamedDependencies&&i.renamedDependencies.get(n.text);return c?e.createStringLiteral(c):void 0}function HJ(e,n,i,c){if(n){if(n.moduleName)return e.createStringLiteral(n.moduleName);if(!n.isDeclarationFile&&Ng(c))return e.createStringLiteral(xH(i,n.fileName))}}function FEe(e,n,i,c,u){return HJ(i,c.getExternalModuleFileFromDeclaration(e),n,u)}function XY(e){if($X(e))return e.initializer;if(tl(e)){const n=e.initializer;return Zv(n,!0)?n.right:void 0}if(XE(e))return e.objectAssignmentInitializer;if(Zv(e,!0))return e.right;if(WT(e))return XY(e.expression)}function gI(e){if($X(e))return e.name;if(DN(e)){switch(e.kind){case 303:return gI(e.initializer);case 304:return e.name;case 305:return gI(e.expression)}return}return Zv(e,!0)?gI(e.left):WT(e)?gI(e.expression):e}function YY(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function WEe(e){const n=joe(e);return re.assert(!!n||xA(e),"Invalid property name for binding element."),n}function joe(e){switch(e.kind){case 208:if(e.propertyName){const i=e.propertyName;return Lu(i)?re.failBadSyntaxKind(i):Qf(i)&&BEe(i.expression)?i.expression:i}break;case 303:if(e.name){const i=e.name;return Lu(i)?re.failBadSyntaxKind(i):Qf(i)&&BEe(i.expression)?i.expression:i}break;case 305:return e.name&&Lu(e.name)?re.failBadSyntaxKind(e.name):e.name}const n=gI(e);if(n&&qg(n))return n}function BEe(e){const n=e.kind;return n===11||n===9}function zG(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Tpe(e){if(e){let n=e;for(;;){if(xn(n)||!n.body)return xn(n)?n:n.name;n=n.body}}}function L6e(e){const n=e.kind;return n===176||n===178}function zEe(e){const n=e.kind;return n===176||n===177||n===178}function Spe(e){const n=e.kind;return n===303||n===304||n===262||n===176||n===181||n===175||n===282||n===243||n===264||n===265||n===266||n===267||n===271||n===272||n===270||n===278||n===277}function GEe(e){const n=e.kind;return n===175||n===303||n===304||n===282||n===270}function O6e(e){return p6(e)||RG(e)}function F6e(e){return xn(e)||yW(e)}function W6e(e){return SEe(e)||PJ(e)||ER(e)}function B6e(e){return p6(e)||PJ(e)||ER(e)}function z6e(e){return xn(e)||Sd(e)}function pUe(e){const n=e.kind;return n===106||n===112||n===97||aR(e)||vk(e)}function pst(e){return e===43}function mst(e){return e===42||e===44||e===45}function gst(e){return pst(e)||mst(e)}function hst(e){return e===40||e===41}function yst(e){return hst(e)||gst(e)}function vst(e){return e===48||e===49||e===50}function jEe(e){return vst(e)||yst(e)}function bst(e){return e===30||e===33||e===32||e===34||e===104||e===103}function Tst(e){return bst(e)||jEe(e)}function Sst(e){return e===35||e===37||e===36||e===38}function Est(e){return Sst(e)||Tst(e)}function xst(e){return e===51||e===52||e===53}function mUe(e){return xst(e)||Est(e)}function VEe(e){return e===56||e===57}function gUe(e){return VEe(e)||mUe(e)}function Epe(e){return e===61||gUe(e)||pk(e)}function Ast(e){return Epe(e)||e===28}function UEe(e){return Ast(e.kind)}function GG(e,n,i,c,u,d){const h=new bUe(e,n,i,c,u,d);return S;function S(E,P){const k={value:void 0},F=[I3.enter],$=[E],J=[void 0];let X=0;for(;F[X]!==I3.done;)X=F[X](h,X,F,$,J,k,P);return re.assertEqual(X,0),k.value}}function JJ(e){return e===95||e===90}function Voe(e){const n=e.kind;return JJ(n)}function hUe(e){const n=e.kind;return Om(n)&&!JJ(n)}function n4(e,n){if(n!==void 0)return n.length===0?n:Tn(e.createNodeArray([],n.hasTrailingComma),n)}function $J(e){var n;const i=e.emitNode.autoGenerate;if(i.flags&4){const c=i.id;let u=e,d=u.original;for(;d;){u=d;const h=(n=u.emitNode)==null?void 0:n.autoGenerate;if(xN(u)&&(h===void 0||h.flags&4&&h.id!==c))break;d=u.original}return u}return e}function jG(e,n){return typeof e=="object"?D3(!1,e.prefix,e.node,e.suffix,n):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function yUe(e,n){return typeof e=="string"?e:HEe(e,re.checkDefined(n))}function HEe(e,n){return s7(e)?n(e).slice(1):$g(e)?n(e):Lu(e)?e.escapedText.slice(1):Kr(e)}function D3(e,n,i,c,u){return n=jG(n,u),c=jG(c,u),i=yUe(i,u),`${e?"#":""}${n}${i}${c}`}function qJ(e,n,i,c){return e.updatePropertyDeclaration(n,i,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,c)}function JEe(e,n,i,c,u=e.createThis()){return e.createGetAccessorDeclaration(i,c,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function QY(e,n,i,c,u=e.createThis()){return e.createSetAccessorDeclaration(i,c,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function KJ(e){let n=e.expression;for(;;){if(n=iv(n),E_(n)){n=yl(n.elements);continue}if(rv(n)){n=n.right;continue}if(Zv(n,!0)&&$g(n.left))return n;break}}function vUe(e){return fE(e)&&Hd(e)&&!e.emitNode}function xpe(e,n){if(vUe(e))xpe(e.expression,n);else if(rv(e))xpe(e.left,n),xpe(e.right,n);else if(E_(e))for(const i of e.elements)xpe(i,n);else n.push(e)}function vr(e){const n=[];return xpe(e,n),n}function nx(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const n of zG(e)){const i=gI(n);if(i&&KD(i)&&(i.transformFlags&65536||i.transformFlags&128&&nx(i)))return!0}return!1}var I3,bUe,Xi=G({"src/compiler/factory/utilities.ts"(){md(),(e=>{function n(k,F,$,J,X,ie,ae){const ve=F>0?X[F-1]:void 0;return re.assertEqual($[F],n),X[F]=k.onEnter(J[F],ve,ae),$[F]=S(k,n),F}e.enter=n;function i(k,F,$,J,X,ie,ae){re.assertEqual($[F],i),re.assertIsDefined(k.onLeft),$[F]=S(k,i);const ve=k.onLeft(J[F].left,X[F],J[F]);return ve?(P(F,J,ve),E(F,$,J,X,ve)):F}e.left=i;function c(k,F,$,J,X,ie,ae){return re.assertEqual($[F],c),re.assertIsDefined(k.onOperator),$[F]=S(k,c),k.onOperator(J[F].operatorToken,X[F],J[F]),F}e.operator=c;function u(k,F,$,J,X,ie,ae){re.assertEqual($[F],u),re.assertIsDefined(k.onRight),$[F]=S(k,u);const ve=k.onRight(J[F].right,X[F],J[F]);return ve?(P(F,J,ve),E(F,$,J,X,ve)):F}e.right=u;function d(k,F,$,J,X,ie,ae){re.assertEqual($[F],d),$[F]=S(k,d);const ve=k.onExit(J[F],X[F]);if(F>0){if(F--,k.foldState){const we=$[F]===d?"right":"left";X[F]=k.foldState(X[F],ve,we)}}else ie.value=ve;return F}e.exit=d;function h(k,F,$,J,X,ie,ae){return re.assertEqual($[F],h),F}e.done=h;function S(k,F){switch(F){case n:if(k.onLeft)return i;case i:if(k.onOperator)return c;case c:if(k.onRight)return u;case u:return d;case d:return h;case h:return h;default:re.fail("Invalid state")}}e.nextState=S;function E(k,F,$,J,X){return k++,F[k]=n,$[k]=X,J[k]=void 0,k}function P(k,F,$){if(re.shouldAssert(2))for(;k>=0;)re.assert(F[k]!==$,"Circular traversal detected."),k--}})(I3||(I3={})),bUe=class{constructor(e,n,i,c,u,d){this.onEnter=e,this.onLeft=n,this.onOperator=i,this.onRight=c,this.onExit=u,this.foldState=d}}}});function Tn(e,n){return n?T1(e,n.pos,n.end):e}function DA(e){const n=e.kind;return n===168||n===169||n===171||n===172||n===173||n===174||n===176||n===177||n===178||n===181||n===185||n===218||n===219||n===231||n===243||n===262||n===263||n===264||n===265||n===266||n===267||n===271||n===272||n===277||n===278}function S6(e){const n=e.kind;return n===169||n===172||n===174||n===177||n===178||n===231||n===263}var Cst=G({"src/compiler/factory/utilitiesPublic.ts"(){md()}});function Yi(e,n){return n&&e(n)}function Bu(e,n,i){if(i){if(n)return n(i);for(const c of i){const u=e(c);if(u)return u}}}function $Ee(e,n){return e.charCodeAt(n+1)===42&&e.charCodeAt(n+2)===42&&e.charCodeAt(n+3)!==47}function Uoe(e){return Ot(e.statements,TUe)||SUe(e)}function TUe(e){return DA(e)&&EUe(e,95)||Yb(e)&&KE(e.moduleReference)||n0(e)||my(e)||ry(e)?e:void 0}function SUe(e){return e.flags&8388608?G6e(e):void 0}function G6e(e){return xUe(e)?e:s_(e,G6e)}function EUe(e,n){return gt(e.modifiers,i=>i.kind===n)}function xUe(e){return x3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function j6e(e,n,i){return Bu(n,i,e.typeParameters)||Bu(n,i,e.parameters)||Yi(n,e.type)}function V6e(e,n,i){return Bu(n,i,e.types)}function U6e(e,n,i){return Yi(n,e.type)}function H6e(e,n,i){return Bu(n,i,e.elements)}function J6e(e,n,i){return Yi(n,e.expression)||Yi(n,e.questionDotToken)||Bu(n,i,e.typeArguments)||Bu(n,i,e.arguments)}function $6e(e,n,i){return Bu(n,i,e.statements)}function XJ(e,n,i){return Yi(n,e.label)}function q6e(e,n,i){return Bu(n,i,e.modifiers)||Yi(n,e.name)||Bu(n,i,e.typeParameters)||Bu(n,i,e.heritageClauses)||Bu(n,i,e.members)}function YJ(e,n,i){return Bu(n,i,e.elements)}function qEe(e,n,i){return Yi(n,e.propertyName)||Yi(n,e.name)}function VG(e,n,i){return Yi(n,e.tagName)||Bu(n,i,e.typeArguments)||Yi(n,e.attributes)}function ZY(e,n,i){return Yi(n,e.type)}function B_(e,n,i){return Yi(n,e.tagName)||(e.isNameFirst?Yi(n,e.name)||Yi(n,e.typeExpression):Yi(n,e.typeExpression)||Yi(n,e.name))||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function k3(e,n,i){return Yi(n,e.tagName)||Yi(n,e.typeExpression)||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function KEe(e,n,i){return Yi(n,e.name)}function UG(e,n,i){return Yi(n,e.tagName)||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function Ape(e,n,i){return Yi(n,e.expression)}function s_(e,n,i){if(e===void 0||e.kind<=165)return;const c=Y6e[e.kind];return c===void 0?void 0:c(e,n,i)}function cF(e,n,i){const c=Wv(e),u=[];for(;u.length=0;--S)c.push(d[S]),u.push(h)}else{const S=n(d,h);if(S){if(S==="skip")continue;return S}if(d.kind>=166)for(const E of Wv(d))c.push(E),u.push(d)}}}function Wv(e){const n=[];return s_(e,i,i),n;function i(c){n.unshift(c)}}function XEe(e){e.externalModuleIndicator=Uoe(e)}function eQ(e,n,i,c=!1,u){var d,h,S,E;(d=ps)==null||d.push(ps.Phase.Parse,"createSourceFile",{path:e},!0),cf("beforeParse");let P;(h=Zh)==null||h.logStartParseSourceFile(e);const{languageVersion:k,setExternalModuleIndicator:F,impliedNodeFormat:$,jsDocParsingMode:J}=typeof i=="object"?i:{languageVersion:i};if(k===100)P=P3.parseSourceFile(e,n,k,void 0,c,6,ku,J);else{const X=$===void 0?F:ie=>(ie.impliedNodeFormat=$,(F||XEe)(ie));P=P3.parseSourceFile(e,n,k,void 0,c,u,X,J)}return(S=Zh)==null||S.logStopParseSourceFile(),cf("afterParse"),Tb("Parse","beforeParse","afterParse"),(E=ps)==null||E.pop(),P}function HG(e,n){return P3.parseIsolatedEntityName(e,n)}function iT(e,n){return P3.parseJsonText(e,n)}function Bv(e){return e.externalModuleIndicator!==void 0}function Hoe(e,n,i,c=!1){const u=nQ.updateSourceFile(e,n,i,c);return u.flags|=e.flags&12582912,u}function Cpe(e,n,i){const c=P3.JSDocParser.parseIsolatedJSDocComment(e,n,i);return c&&c.jsDoc&&P3.fixupParentReferences(c.jsDoc),c}function AUe(e,n,i){return P3.JSDocParser.parseJSDocTypeExpressionForTests(e,n,i)}function Zb(e){return pv(e,oJ)||mm(e,".ts")&&Jg(e).includes(".d.")}function CUe(e,n,i,c){if(e){if(e==="import")return 99;if(e==="require")return 1;c(n,i-n,N.resolution_mode_should_be_either_require_or_import)}}function YEe(e,n){const i=[];for(const c of JD(n,0)||Yn){const u=n.substring(c.pos,c.end);IUe(i,c,u)}e.pragmas=new Map;for(const c of i){if(e.pragmas.has(c.name)){const u=e.pragmas.get(c.name);u instanceof Array?u.push(c.args):e.pragmas.set(c.name,[u,c.args]);continue}e.pragmas.set(c.name,c.args)}}function E6(e,n){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((i,c)=>{switch(c){case"reference":{const u=e.referencedFiles,d=e.typeReferenceDirectives,h=e.libReferenceDirectives;Ot(BC(i),S=>{const{types:E,lib:P,path:k,["resolution-mode"]:F}=S.arguments;if(S.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(E){const $=CUe(F,E.pos,E.end,n);d.push({pos:E.pos,end:E.end,fileName:E.value,...$?{resolutionMode:$}:{}})}else P?h.push({pos:P.pos,end:P.end,fileName:P.value}):k?u.push({pos:k.pos,end:k.end,fileName:k.value}):n(S.range.pos,S.range.end-S.range.pos,N.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vn(BC(i),u=>({name:u.arguments.name,path:u.arguments.path}));break}case"amd-module":{if(i instanceof Array)for(const u of i)e.moduleName&&n(u.range.pos,u.range.end-u.range.pos,N.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=u.arguments.name;else e.moduleName=i.arguments.name;break}case"ts-nocheck":case"ts-check":{Ot(BC(i),u=>{(!e.checkJsDirective||u.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:c==="ts-check",end:u.range.end,pos:u.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:re.fail("Unhandled pragma kind")}})}function DUe(e){if(DW.has(e))return DW.get(e);const n=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return DW.set(e,n),n}function IUe(e,n,i){const c=n.kind===2&&Q6e.exec(i);if(c){const d=c[1].toLowerCase(),h=kU[d];if(!h||!(h.kind&1))return;if(h.args){const S={};for(const E of h.args){const k=DUe(E.name).exec(i);if(!k&&!E.optional)return;if(k){const F=k[2]||k[3];if(E.captureSpan){const $=n.pos+k.index+k[1].length+1;S[E.name]={value:F,pos:$,end:$+F.length}}else S[E.name]=F}}e.push({name:d,args:{arguments:S,range:n}})}else e.push({name:d,args:{arguments:{},range:n}});return}const u=n.kind===2&&Z6e.exec(i);if(u)return K6e(e,n,2,u);if(n.kind===3){const d=/@(\S+)(\s+.*)?$/gim;let h;for(;h=d.exec(i);)K6e(e,n,4,h)}}function K6e(e,n,i,c){if(!c)return;const u=c[1].toLowerCase(),d=kU[u];if(!d||!(d.kind&i))return;const h=c[2],S=kUe(d,h);S!=="fail"&&e.push({name:u,args:{arguments:S,range:n}})}function kUe(e,n){if(!n)return{};if(!e.args)return{};const i=n.trim().split(/\s+/),c={};for(let u=0;unew(Dpe||(Dpe=W0.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(X6e||(X6e=W0.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(i4||(i4=W0.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(DP||(DP=W0.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(QEe||(QEe=W0.getNodeConstructor()))(e,-1,-1)},Ck=AG(1,tQ),Y6e={166:function(n,i,c){return Yi(i,n.left)||Yi(i,n.right)},168:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.constraint)||Yi(i,n.default)||Yi(i,n.expression)},304:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.equalsToken)||Yi(i,n.objectAssignmentInitializer)},305:function(n,i,c){return Yi(i,n.expression)},169:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.dotDotDotToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)||Yi(i,n.initializer)},172:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.type)||Yi(i,n.initializer)},171:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)||Yi(i,n.initializer)},303:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.initializer)},260:function(n,i,c){return Yi(i,n.name)||Yi(i,n.exclamationToken)||Yi(i,n.type)||Yi(i,n.initializer)},208:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.propertyName)||Yi(i,n.name)||Yi(i,n.initializer)},181:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},185:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},184:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},179:j6e,180:j6e,174:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},173:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},176:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},177:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},178:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},262:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},218:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},219:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.equalsGreaterThanToken)||Yi(i,n.body)},175:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.body)},183:function(n,i,c){return Yi(i,n.typeName)||Bu(i,c,n.typeArguments)},182:function(n,i,c){return Yi(i,n.assertsModifier)||Yi(i,n.parameterName)||Yi(i,n.type)},186:function(n,i,c){return Yi(i,n.exprName)||Bu(i,c,n.typeArguments)},187:function(n,i,c){return Bu(i,c,n.members)},188:function(n,i,c){return Yi(i,n.elementType)},189:function(n,i,c){return Bu(i,c,n.elements)},192:V6e,193:V6e,194:function(n,i,c){return Yi(i,n.checkType)||Yi(i,n.extendsType)||Yi(i,n.trueType)||Yi(i,n.falseType)},195:function(n,i,c){return Yi(i,n.typeParameter)},205:function(n,i,c){return Yi(i,n.argument)||Yi(i,n.attributes)||Yi(i,n.qualifier)||Bu(i,c,n.typeArguments)},302:function(n,i,c){return Yi(i,n.assertClause)},196:U6e,198:U6e,199:function(n,i,c){return Yi(i,n.objectType)||Yi(i,n.indexType)},200:function(n,i,c){return Yi(i,n.readonlyToken)||Yi(i,n.typeParameter)||Yi(i,n.nameType)||Yi(i,n.questionToken)||Yi(i,n.type)||Bu(i,c,n.members)},201:function(n,i,c){return Yi(i,n.literal)},202:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)},206:H6e,207:H6e,209:function(n,i,c){return Bu(i,c,n.elements)},210:function(n,i,c){return Bu(i,c,n.properties)},211:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.questionDotToken)||Yi(i,n.name)},212:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.questionDotToken)||Yi(i,n.argumentExpression)},213:J6e,214:J6e,215:function(n,i,c){return Yi(i,n.tag)||Yi(i,n.questionDotToken)||Bu(i,c,n.typeArguments)||Yi(i,n.template)},216:function(n,i,c){return Yi(i,n.type)||Yi(i,n.expression)},217:function(n,i,c){return Yi(i,n.expression)},220:function(n,i,c){return Yi(i,n.expression)},221:function(n,i,c){return Yi(i,n.expression)},222:function(n,i,c){return Yi(i,n.expression)},224:function(n,i,c){return Yi(i,n.operand)},229:function(n,i,c){return Yi(i,n.asteriskToken)||Yi(i,n.expression)},223:function(n,i,c){return Yi(i,n.expression)},225:function(n,i,c){return Yi(i,n.operand)},226:function(n,i,c){return Yi(i,n.left)||Yi(i,n.operatorToken)||Yi(i,n.right)},234:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.type)},235:function(n,i,c){return Yi(i,n.expression)},238:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.type)},236:function(n,i,c){return Yi(i,n.name)},227:function(n,i,c){return Yi(i,n.condition)||Yi(i,n.questionToken)||Yi(i,n.whenTrue)||Yi(i,n.colonToken)||Yi(i,n.whenFalse)},230:function(n,i,c){return Yi(i,n.expression)},241:$6e,268:$6e,312:function(n,i,c){return Bu(i,c,n.statements)||Yi(i,n.endOfFileToken)},243:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.declarationList)},261:function(n,i,c){return Bu(i,c,n.declarations)},244:function(n,i,c){return Yi(i,n.expression)},245:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.thenStatement)||Yi(i,n.elseStatement)},246:function(n,i,c){return Yi(i,n.statement)||Yi(i,n.expression)},247:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.statement)},248:function(n,i,c){return Yi(i,n.initializer)||Yi(i,n.condition)||Yi(i,n.incrementor)||Yi(i,n.statement)},249:function(n,i,c){return Yi(i,n.initializer)||Yi(i,n.expression)||Yi(i,n.statement)},250:function(n,i,c){return Yi(i,n.awaitModifier)||Yi(i,n.initializer)||Yi(i,n.expression)||Yi(i,n.statement)},251:XJ,252:XJ,253:function(n,i,c){return Yi(i,n.expression)},254:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.statement)},255:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.caseBlock)},269:function(n,i,c){return Bu(i,c,n.clauses)},296:function(n,i,c){return Yi(i,n.expression)||Bu(i,c,n.statements)},297:function(n,i,c){return Bu(i,c,n.statements)},256:function(n,i,c){return Yi(i,n.label)||Yi(i,n.statement)},257:function(n,i,c){return Yi(i,n.expression)},258:function(n,i,c){return Yi(i,n.tryBlock)||Yi(i,n.catchClause)||Yi(i,n.finallyBlock)},299:function(n,i,c){return Yi(i,n.variableDeclaration)||Yi(i,n.block)},170:function(n,i,c){return Yi(i,n.expression)},263:q6e,231:q6e,264:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.heritageClauses)||Bu(i,c,n.members)},265:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Yi(i,n.type)},266:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.members)},306:function(n,i,c){return Yi(i,n.name)||Yi(i,n.initializer)},267:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.body)},271:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.moduleReference)},272:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.importClause)||Yi(i,n.moduleSpecifier)||Yi(i,n.attributes)},273:function(n,i,c){return Yi(i,n.name)||Yi(i,n.namedBindings)},300:function(n,i,c){return Bu(i,c,n.elements)},301:function(n,i,c){return Yi(i,n.name)||Yi(i,n.value)},270:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)},274:function(n,i,c){return Yi(i,n.name)},280:function(n,i,c){return Yi(i,n.name)},275:YJ,279:YJ,278:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.exportClause)||Yi(i,n.moduleSpecifier)||Yi(i,n.attributes)},276:qEe,281:qEe,277:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.expression)},228:function(n,i,c){return Yi(i,n.head)||Bu(i,c,n.templateSpans)},239:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.literal)},203:function(n,i,c){return Yi(i,n.head)||Bu(i,c,n.templateSpans)},204:function(n,i,c){return Yi(i,n.type)||Yi(i,n.literal)},167:function(n,i,c){return Yi(i,n.expression)},298:function(n,i,c){return Bu(i,c,n.types)},233:function(n,i,c){return Yi(i,n.expression)||Bu(i,c,n.typeArguments)},283:function(n,i,c){return Yi(i,n.expression)},282:function(n,i,c){return Bu(i,c,n.modifiers)},361:function(n,i,c){return Bu(i,c,n.elements)},284:function(n,i,c){return Yi(i,n.openingElement)||Bu(i,c,n.children)||Yi(i,n.closingElement)},288:function(n,i,c){return Yi(i,n.openingFragment)||Bu(i,c,n.children)||Yi(i,n.closingFragment)},285:VG,286:VG,292:function(n,i,c){return Bu(i,c,n.properties)},291:function(n,i,c){return Yi(i,n.name)||Yi(i,n.initializer)},293:function(n,i,c){return Yi(i,n.expression)},294:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.expression)},287:function(n,i,c){return Yi(i,n.tagName)},295:function(n,i,c){return Yi(i,n.namespace)||Yi(i,n.name)},190:ZY,191:ZY,316:ZY,322:ZY,321:ZY,323:ZY,325:ZY,324:function(n,i,c){return Bu(i,c,n.parameters)||Yi(i,n.type)},327:function(n,i,c){return(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))||Bu(i,c,n.tags)},354:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.name)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},317:function(n,i,c){return Yi(i,n.name)},318:function(n,i,c){return Yi(i,n.left)||Yi(i,n.right)},348:B_,355:B_,337:function(n,i,c){return Yi(i,n.tagName)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},336:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.class)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},335:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.class)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},352:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.constraint)||Bu(i,c,n.typeParameters)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},353:function(n,i,c){return Yi(i,n.tagName)||(n.typeExpression&&n.typeExpression.kind===316?Yi(i,n.typeExpression)||Yi(i,n.fullName)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment)):Yi(i,n.fullName)||Yi(i,n.typeExpression)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment)))},345:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.fullName)||Yi(i,n.typeExpression)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},349:k3,351:k3,350:k3,347:k3,357:k3,356:k3,346:k3,330:function(n,i,c){return Ot(n.typeParameters,i)||Ot(n.parameters,i)||Yi(i,n.type)},331:KEe,332:KEe,333:KEe,329:function(n,i,c){return Ot(n.jsDocPropertyTags,i)},334:UG,339:UG,340:UG,341:UG,342:UG,343:UG,338:UG,344:UG,360:Ape},(e=>{var n=CS(99,!0),i=40960,c,u,d,h,S;function E(Xe){return Pn++,Xe}var P={createBaseSourceFileNode:Xe=>E(new S(Xe,0,0)),createBaseIdentifierNode:Xe=>E(new d(Xe,0,0)),createBasePrivateIdentifierNode:Xe=>E(new h(Xe,0,0)),createBaseTokenNode:Xe=>E(new u(Xe,0,0)),createBaseNode:Xe=>E(new c(Xe,0,0))},k=AG(11,P),{createNodeArray:F,createNumericLiteral:$,createStringLiteral:J,createLiteralLikeNode:X,createIdentifier:ie,createPrivateIdentifier:ae,createToken:ve,createArrayLiteralExpression:we,createObjectLiteralExpression:Fe,createPropertyAccessExpression:et,createPropertyAccessChain:Pe,createElementAccessExpression:dt,createElementAccessChain:Ie,createCallExpression:ct,createCallChain:Ct,createNewExpression:Lt,createParenthesizedExpression:Ze,createBlock:Ke,createVariableStatement:st,createExpressionStatement:It,createIfStatement:Yt,createWhileStatement:Et,createForStatement:at,createForOfStatement:Qt,createVariableDeclaration:nn,createVariableDeclarationList:Rn}=k,cn,qt,Kt,wr,Wr,jt,En,fr,Tr,Vr,Pn,Fr,Ki,io,no,os,Mo=!0,$i=!1;function ki(Xe,$t,bn,Fn,Ri=!1,Ti,Xc,Fu=0){var cu;if(Ti=$H(Xe,Ti),Ti===6){const Zu=Wl(Xe,$t,bn,Fn,Ri);return Xoe(Zu,(cu=Zu.statements[0])==null?void 0:cu.expression,Zu.parseDiagnostics,!1,void 0),Zu.referencedFiles=Yn,Zu.typeReferenceDirectives=Yn,Zu.libReferenceDirectives=Yn,Zu.amdDependencies=Yn,Zu.hasNoDefaultLib=!1,Zu.pragmas=ME,Zu}Jc(Xe,$t,bn,Fn,Ti,Fu);const Ml=qn(bn,Ri,Ti,Xc||XEe,Fu);return au(),Ml}e.parseSourceFile=ki;function gc(Xe,$t){Jc("",Xe,$t,void 0,1,0),Nn();const bn=nt(!0),Fn=ge()===1&&!En.length;return au(),Fn?bn:void 0}e.parseIsolatedEntityName=gc;function Wl(Xe,$t,bn=2,Fn,Ri=!1){Jc(Xe,$t,bn,Fn,6,0),qt=os,Nn();const Ti=qe();let Xc,Fu;if(ge()===1)Xc=Ka([],Ti,Ti),Fu=oy();else{let Zu;for(;ge()!==1;){let Cd;switch(ge()){case 23:Cd=R1();break;case 112:case 97:case 106:Cd=oy();break;case 41:ma(()=>Nn()===9&&Nn()!==59)?Cd=Dn():Cd=RI();break;case 9:case 11:if(ma(()=>Nn()!==59)){Cd=wi();break}default:Cd=RI();break}Zu&&ls(Zu)?Zu.push(Cd):Zu?Zu=[Zu,Cd]:(Zu=Cd,ge()!==1&&Ao(N.Unexpected_token))}const hg=ls(Zu)?Qi(we(Zu),Ti):re.checkDefined(Zu),T_=It(hg);Qi(T_,Ti),Xc=Ka([T_],Ti),Fu=km(1,N.Unexpected_token)}const cu=_a(Xe,2,6,!1,Xc,Fu,qt,ku);Ri&&na(cu),cu.nodeCount=Pn,cu.identifierCount=Ki,cu.identifiers=Fr,cu.parseDiagnostics=jN(En,cu),fr&&(cu.jsDocDiagnostics=jN(fr,cu));const Ml=cu;return au(),Ml}e.parseJsonText=Wl;function Jc(Xe,$t,bn,Fn,Ri,Ti){switch(c=W0.getNodeConstructor(),u=W0.getTokenConstructor(),d=W0.getIdentifierConstructor(),h=W0.getPrivateIdentifierConstructor(),S=W0.getSourceFileConstructor(),cn=hf(Xe),Kt=$t,wr=bn,Tr=Fn,Wr=Ri,jt=$9(Ri),En=[],io=0,Fr=new Map,Ki=0,Pn=0,qt=0,Mo=!0,Wr){case 1:case 2:os=524288;break;case 6:os=134742016;break;default:os=0;break}$i=!1,n.setText(Kt),n.setOnError(kt),n.setScriptTarget(wr),n.setLanguageVariant(jt),n.setScriptKind(Wr),n.setJSDocParsingMode(Ti)}function au(){n.clearCommentDirectives(),n.setText(""),n.setOnError(void 0),n.setScriptKind(0),n.setJSDocParsingMode(0),Kt=void 0,wr=void 0,Tr=void 0,Wr=void 0,jt=void 0,qt=0,En=void 0,fr=void 0,io=0,Fr=void 0,no=void 0,Mo=!0}function qn(Xe,$t,bn,Fn,Ri){const Ti=Zb(cn);Ti&&(os|=33554432),qt=os,Nn();const Xc=A_(0,Zx);re.assert(ge()===1);const Fu=Mt(),cu=Ia(oy(),Fu),Ml=_a(cn,Xe,bn,Ti,Xc,cu,qt,Fn);return YEe(Ml,Kt),E6(Ml,Zu),Ml.commentDirectives=n.getCommentDirectives(),Ml.nodeCount=Pn,Ml.identifierCount=Ki,Ml.identifiers=Fr,Ml.parseDiagnostics=jN(En,Ml),Ml.jsDocParsingMode=Ri,fr&&(Ml.jsDocDiagnostics=jN(fr,Ml)),$t&&na(Ml),Ml;function Zu(hg,T_,Cd){En.push(s6(cn,Kt,hg,T_,Cd))}}let za=!1;function Ia(Xe,$t){if(!$t)return Xe;re.assert(!Xe.jsDoc);const bn=Qo(S9(Xe,Kt),Fn=>ute.parseJSDocComment(Xe,Fn.pos,Fn.end-Fn.pos));return bn.length&&(Xe.jsDoc=bn),za&&(za=!1,Xe.flags|=536870912),Xe}function zi(Xe){const $t=Tr,bn=nQ.createSyntaxCursor(Xe);Tr={currentNode:Zu};const Fn=[],Ri=En;En=[];let Ti=0,Xc=cu(Xe.statements,0);for(;Xc!==-1;){const hg=Xe.statements[Ti],T_=Xe.statements[Xc];Oi(Fn,Xe.statements,Ti,Xc),Ti=Ml(Xe.statements,Xc);const Cd=Ho(Ri,zA=>zA.start>=hg.pos),pb=Cd>=0?Ho(Ri,zA=>zA.start>=T_.pos,Cd):-1;Cd>=0&&Oi(En,Ri,Cd,pb>=0?pb:void 0),Tf(()=>{const zA=os;for(os|=65536,n.resetTokenState(T_.pos),Nn();ge()!==1;){const qP=n.getTokenFullStart(),yx=gd(0,Zx);if(Fn.push(yx),qP===n.getTokenFullStart()&&Nn(),Ti>=0){const mb=Xe.statements[Ti];if(yx.end===mb.pos)break;yx.end>mb.pos&&(Ti=Ml(Xe.statements,Ti+1))}}os=zA},2),Xc=Ti>=0?cu(Xe.statements,Ti):-1}if(Ti>=0){const hg=Xe.statements[Ti];Oi(Fn,Xe.statements,Ti);const T_=Ho(Ri,Cd=>Cd.start>=hg.pos);T_>=0&&Oi(En,Ri,T_)}return Tr=$t,k.updateSourceFile(Xe,Tn(F(Fn),Xe.statements));function Fu(hg){return!(hg.flags&65536)&&!!(hg.transformFlags&67108864)}function cu(hg,T_){for(let Cd=T_;Cd118}function u_(){return ge()===80?!0:ge()===127&&Ei()||ge()===135&&go()?!1:ge()>118}function xa(Xe,$t,bn=!0){return ge()===Xe?(bn&&Nn(),!0):($t?Ao($t):Ao(N._0_expected,Cf(Xe)),!1)}const Ym=Object.keys(rE).filter(Xe=>Xe.length>2);function mf(Xe){if(Dm(Xe)){ze(Ff(Kt,Xe.template.pos),Xe.template.end,N.Module_declaration_names_may_only_use_or_quoted_strings);return}const $t=xn(Xe)?Kr(Xe):void 0;if(!$t||!H2($t,wr)){Ao(N._0_expected,Cf(27));return}const bn=Ff(Kt,Xe.pos);switch($t){case"const":case"let":case"var":ze(bn,Xe.end,N.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Cp(N.Interface_name_cannot_be_0,N.Interface_must_be_given_a_name,19);return;case"is":ze(bn,n.getTokenStart(),N.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Cp(N.Namespace_name_cannot_be_0,N.Namespace_must_be_given_a_name,19);return;case"type":Cp(N.Type_alias_name_cannot_be_0,N.Type_alias_must_be_given_a_name,64);return}const Fn=fh($t,Ym,Ri=>Ri)??Yg($t);if(Fn){ze(bn,Xe.end,N.Unknown_keyword_or_identifier_Did_you_mean_0,Fn);return}ge()!==0&&ze(bn,Xe.end,N.Unexpected_keyword_or_identifier)}function Cp(Xe,$t,bn){ge()===bn?Ao($t):Ao(Xe,n.getTokenValue())}function Yg(Xe){for(const $t of Ym)if(Xe.length>$t.length+2&&qf(Xe,$t))return`${$t} ${Xe.slice($t.length)}`}function xg(Xe,$t,bn){if(ge()===60&&!n.hasPrecedingLineBreak()){Ao(N.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(ge()===21){Ao(N.Cannot_start_a_function_call_in_a_type_annotation),Nn();return}if($t&&!hh()){bn?Ao(N._0_expected,Cf(27)):Ao(N.Expected_for_property_initializer);return}if(!qo()){if(bn){Ao(N._0_expected,Cf(27));return}mf(Xe)}}function Wy(Xe){return ge()===Xe?(Lr(),!0):(re.assert(F9(Xe)),Ao(N._0_expected,Cf(Xe)),!1)}function Og(Xe,$t,bn,Fn){if(ge()===$t){Nn();return}const Ri=Ao(N._0_expected,Cf($t));bn&&Ri&&ml(Ri,s6(cn,Kt,Fn,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Cf(Xe),Cf($t)))}function pl(Xe){return ge()===Xe?(Nn(),!0):!1}function R_(Xe){if(ge()===Xe)return oy()}function og(Xe){if(ge()===Xe)return bE()}function km(Xe,$t,bn){return R_(Xe)||Pm(Xe,!1,$t||N._0_expected,bn||Cf(Xe))}function M_(Xe){const $t=og(Xe);return $t||(re.assert(F9(Xe)),Pm(Xe,!1,N._0_expected,Cf(Xe)))}function oy(){const Xe=qe(),$t=ge();return Nn(),Qi(ve($t),Xe)}function bE(){const Xe=qe(),$t=ge();return Lr(),Qi(ve($t),Xe)}function hh(){return ge()===27?!0:ge()===20||ge()===1||n.hasPrecedingLineBreak()}function qo(){return hh()?(ge()===27&&Nn(),!0):!1}function d_(){return qo()||xa(27)}function Ka(Xe,$t,bn,Fn){const Ri=F(Xe,Fn);return T1(Ri,$t,bn??n.getTokenFullStart()),Ri}function Qi(Xe,$t,bn){return T1(Xe,$t,bn??n.getTokenFullStart()),os&&(Xe.flags|=os),$i&&($i=!1,Xe.flags|=262144),Xe}function Pm(Xe,$t,bn,...Fn){$t?Io(n.getTokenFullStart(),0,bn,...Fn):bn&&Ao(bn,...Fn);const Ri=qe(),Ti=Xe===80?ie("",void 0):VC(Xe)?k.createTemplateLiteralLikeNode(Xe,"","",void 0):Xe===9?$("",void 0):Xe===11?J("",void 0):Xe===282?k.createMissingDeclaration():ve(Xe);return Qi(Ti,Ri)}function Ag(Xe){let $t=Fr.get(Xe);return $t===void 0&&Fr.set(Xe,$t=Xe),$t}function va(Xe,$t,bn){if(Xe){Ki++;const Fu=qe(),cu=ge(),Ml=Ag(n.getTokenValue()),Zu=n.hasExtendedUnicodeEscape();return mn(),Qi(ie(Ml,cu,Zu),Fu)}if(ge()===81)return Ao(bn||N.Private_identifiers_are_not_allowed_outside_class_bodies),va(!0);if(ge()===0&&n.tryScan(()=>n.reScanInvalidIdentifier()===80))return va(!0);Ki++;const Fn=ge()===1,Ri=n.isReservedWord(),Ti=n.getTokenText(),Xc=Ri?N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:N.Identifier_expected;return Pm(80,Fn,$t||Xc,Ti)}function x0(Xe){return va(G_(),void 0,Xe)}function Nm(Xe,$t){return va(u_(),Xe,$t)}function Md(Xe){return va(CT(ge()),Xe)}function fe(){return(n.hasUnicodeEscape()||n.hasExtendedUnicodeEscape())&&Ao(N.Unicode_escape_sequence_cannot_appear_here),va(CT(ge()))}function _n(){return CT(ge())||ge()===11||ge()===9}function Xn(){return CT(ge())||ge()===11}function _i(Xe){if(ge()===11||ge()===9){const $t=wi();return $t.text=Ag($t.text),$t}return Xe&&ge()===23?Sc():ge()===81?xs():Md()}function $o(){return _i(!0)}function Sc(){const Xe=qe();xa(23);const $t=He(v_);return xa(24),Qi(k.createComputedPropertyName($t),Xe)}function xs(){const Xe=qe(),$t=ae(Ag(n.getTokenValue()));return Nn(),Qi($t,Xe)}function Fs(Xe){return ge()===Xe&&Bl(fc)}function Tl(){return Nn(),n.hasPrecedingLineBreak()?!1:bm()}function fc(){switch(ge()){case 87:return Nn()===94;case 95:return Nn(),ge()===90?ma(ay):ge()===156?ma(ag):Gd();case 90:return ay();case 126:case 139:case 153:return Nn(),bm();default:return Tl()}}function Gd(){return ge()===60||ge()!==42&&ge()!==130&&ge()!==19&&bm()}function ag(){return Nn(),Gd()}function ah(){return Om(ge())&&Bl(fc)}function bm(){return ge()===23||ge()===19||ge()===42||ge()===26||_n()}function ay(){return Nn(),ge()===86||ge()===100||ge()===120||ge()===60||ge()===128&&ma(Kq)||ge()===134&&ma(Qg)}function yp(Xe,$t){if(Dg(Xe))return!0;switch(Xe){case 0:case 1:case 3:return!(ge()===27&&$t)&&M1();case 2:return ge()===84||ge()===90;case 4:return ma(oo);case 5:return ma(L1)||ge()===27&&!$t;case 6:return ge()===23||_n();case 12:switch(ge()){case 23:case 42:case 26:case 25:return!0;default:return _n()}case 18:return _n();case 9:return ge()===23||ge()===26||_n();case 24:return Xn();case 7:return ge()===19?ma(Cg):$t?u_()&&!sg():kf()&&!sg();case 8:return jp();case 10:return ge()===28||ge()===26||jp();case 19:return ge()===103||ge()===87||u_();case 15:switch(ge()){case 28:case 25:return!0}case 11:return ge()===26||Rp();case 16:return $n(!1);case 17:return $n(!0);case 20:case 21:return ge()===28||px();case 22:return ne();case 23:return ge()===161&&ma(JF)?!1:CT(ge());case 13:return CT(ge())||ge()===19;case 14:return!0;case 25:return!0;case 26:return re.fail("ParsingContext.Count used as a context");default:re.assertNever(Xe,"Non-exhaustive case in 'isListElement'.")}}function Cg(){if(re.assert(ge()===19),Nn()===20){const Xe=Nn();return Xe===28||Xe===19||Xe===96||Xe===119}return!0}function wp(){return Nn(),u_()}function Xp(){return Nn(),CT(ge())}function r1(){return Nn(),RX(ge())}function sg(){return ge()===119||ge()===96?ma(Jt):!1}function Jt(){return Nn(),Rp()}function ci(){return Nn(),px()}function da(Xe){if(ge()===1)return!0;switch(Xe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return ge()===20;case 3:return ge()===20||ge()===84||ge()===90;case 7:return ge()===19||ge()===96||ge()===119;case 8:return Hu();case 19:return ge()===32||ge()===21||ge()===19||ge()===96||ge()===119;case 11:return ge()===22||ge()===27;case 15:case 21:case 10:return ge()===24;case 17:case 16:case 18:return ge()===22||ge()===24;case 20:return ge()!==28;case 22:return ge()===19||ge()===20;case 13:return ge()===32||ge()===44;case 14:return ge()===30&&ma(Co);default:return!1}}function Hu(){return!!(hh()||w2(ge())||ge()===39)}function t_(){re.assert(io,"Missing parsing context");for(let Xe=0;Xe<26;Xe++)if(io&1<=0)}function t2(Xe){return Xe===6?N.An_enum_member_name_must_be_followed_by_a_or:void 0}function q0(){const Xe=Ka([],qe());return Xe.isMissingList=!0,Xe}function N1(Xe){return!!Xe.isMissingList}function i0(Xe,$t,bn,Fn){if(xa(bn)){const Ri=xv(Xe,$t);return xa(Fn),Ri}return q0()}function nt(Xe,$t){const bn=qe();let Fn=Xe?Md($t):Nm($t);for(;pl(25)&&ge()!==30;)Fn=Qi(k.createQualifiedName(Fn,vi(Xe,!1,!0)),bn);return Fn}function pr(Xe,$t){return Qi(k.createQualifiedName(Xe,$t),Xe.pos)}function vi(Xe,$t,bn){if(n.hasPrecedingLineBreak()&&CT(ge())&&ma(R4))return Pm(80,!0,N.Identifier_expected);if(ge()===81){const Fn=xs();return $t?Fn:Pm(80,!0,N.Identifier_expected)}return Xe?bn?Md():fe():Nm()}function Di(Xe){const $t=qe(),bn=[];let Fn;do Fn=wa(Xe),bn.push(Fn);while(Fn.literal.kind===17);return Ka(bn,$t)}function Ee(Xe){const $t=qe();return Qi(k.createTemplateExpression(Vl(Xe),Di(Xe)),$t)}function Gt(){const Xe=qe();return Qi(k.createTemplateLiteralType(Vl(!1),sr()),Xe)}function sr(){const Xe=qe(),$t=[];let bn;do bn=Ii(),$t.push(bn);while(bn.literal.kind===17);return Ka($t,Xe)}function Ii(){const Xe=qe();return Qi(k.createTemplateLiteralTypeSpan(_c(),Ja(!1)),Xe)}function Ja(Xe){return ge()===20?(Ts(Xe),Uf()):km(18,N._0_expected,Cf(20))}function wa(Xe){const $t=qe();return Qi(k.createTemplateSpan(He(v_),Ja(Xe)),$t)}function wi(){return Fg(ge())}function Vl(Xe){!Xe&&n.getTokenFlags()&26656&&Ts(!1);const $t=Fg(ge());return re.assert($t.kind===16,"Template head has wrong token kind"),$t}function Uf(){const Xe=Fg(ge());return re.assert(Xe.kind===17||Xe.kind===18,"Template fragment has wrong token kind"),Xe}function Y_(Xe){const $t=Xe===15||Xe===18,bn=n.getTokenText();return bn.substring(1,bn.length-(n.isUnterminated()?0:$t?1:2))}function Fg(Xe){const $t=qe(),bn=VC(Xe)?k.createTemplateLiteralLikeNode(Xe,n.getTokenValue(),Y_(Xe),n.getTokenFlags()&7176):Xe===9?$(n.getTokenValue(),n.getNumericLiteralFlags()):Xe===11?J(n.getTokenValue(),void 0,n.hasExtendedUnicodeEscape()):UX(Xe)?X(Xe,n.getTokenValue()):re.fail();return n.hasExtendedUnicodeEscape()&&(bn.hasExtendedUnicodeEscape=!0),n.isUnterminated()&&(bn.isUnterminated=!0),Nn(),Qi(bn,$t)}function sv(){return nt(!0,N.Type_expected)}function by(){if(!n.hasPrecedingLineBreak()&&Cc()===30)return i0(20,_c,30,32)}function _b(){const Xe=qe();return Qi(k.createTypeReferenceNode(sv(),by()),Xe)}function f_(Xe){switch(Xe.kind){case 183:return ny(Xe.typeName);case 184:case 185:{const{parameters:$t,type:bn}=Xe;return N1($t)||f_(bn)}case 196:return f_(Xe.type);default:return!1}}function zh(Xe){return Nn(),Qi(k.createTypePredicateNode(void 0,Xe,_c()),Xe.pos)}function i1(){const Xe=qe();return Nn(),Qi(k.createThisTypeNode(),Xe)}function n2(){const Xe=qe();return Nn(),Qi(k.createJSDocAllType(),Xe)}function Vv(){const Xe=qe();return Nn(),Qi(k.createJSDocNonNullableType(WS(),!1),Xe)}function su(){const Xe=qe();return Nn(),ge()===28||ge()===20||ge()===22||ge()===32||ge()===64||ge()===52?Qi(k.createJSDocUnknownType(),Xe):Qi(k.createJSDocNullableType(_c(),!1),Xe)}function gC(){const Xe=qe(),$t=Mt();if(ma(ru)){Nn();const bn=Xs(36),Fn=ca(59,!1);return Ia(Qi(k.createJSDocFunctionType(bn,Fn),Xe),$t)}return Qi(k.createTypeReferenceNode(Md(),void 0),Xe)}function eg(){const Xe=qe();let $t;return(ge()===110||ge()===105)&&($t=Md(),xa(59)),Qi(k.createParameterDeclaration(void 0,void 0,$t,void 0,Uv(),void 0),Xe)}function Uv(){n.setInJSDocType(!0);const Xe=qe();if(pl(144)){const Fn=k.createJSDocNamepathType(void 0);e:for(;;)switch(ge()){case 20:case 1:case 28:case 5:break e;default:Lr()}return n.setInJSDocType(!1),Qi(Fn,Xe)}const $t=pl(26);let bn=xo();return n.setInJSDocType(!1),$t&&(bn=Qi(k.createJSDocVariadicType(bn),Xe)),ge()===64?(Nn(),Qi(k.createJSDocOptionalType(bn),Xe)):bn}function Rk(){const Xe=qe();xa(114);const $t=nt(!0),bn=n.hasPrecedingLineBreak()?void 0:F4();return Qi(k.createTypeQueryNode($t,bn),Xe)}function Lb(){const Xe=qe(),$t=c0(!1,!0),bn=Nm();let Fn,Ri;pl(96)&&(px()||!Rp()?Fn=_c():Ri=gg());const Ti=pl(64)?_c():void 0,Xc=k.createTypeParameterDeclaration($t,bn,Fn,Ti);return Xc.expression=Ri,Qi(Xc,Xe)}function fn(){if(ge()===30)return i0(19,Lb,30,32)}function $n(Xe){return ge()===26||jp()||Om(ge())||ge()===60||px(!Xe)}function ri(Xe){const $t=sc(N.Private_identifiers_cannot_be_used_as_parameters);return WL($t)===0&&!gt(Xe)&&Om(ge())&&Nn(),$t}function Li(){return G_()||ge()===23||ge()===19}function yo(Xe){return Oo(Xe)}function jo(Xe){return Oo(Xe,!1)}function Oo(Xe,$t=!0){const bn=qe(),Fn=Mt(),Ri=Xe?ln(()=>c0(!0)):Wn(()=>c0(!0));if(ge()===110){const cu=k.createParameterDeclaration(Ri,void 0,va(!0),void 0,Sl(),void 0),Ml=pp(Ri);return Ml&&Ce(Ml,N.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ia(Qi(cu,bn),Fn)}const Ti=Mo;Mo=!1;const Xc=R_(26);if(!$t&&!Li())return;const Fu=Ia(Qi(k.createParameterDeclaration(Ri,Xc,ri(Ri),R_(58),Sl(),yh()),bn),Fn);return Mo=Ti,Fu}function ca(Xe,$t){if(Fc(Xe,$t))return dr(xo)}function Fc(Xe,$t){return Xe===39?(xa(Xe),!0):pl(59)?!0:$t&&ge()===39?(Ao(N._0_expected,Cf(59)),Nn(),!0):!1}function ks(Xe,$t){const bn=Ei(),Fn=go();Qu(!!(Xe&1)),yf(!!(Xe&2));const Ri=Xe&32?xv(17,eg):xv(16,()=>$t?yo(Fn):jo(Fn));return Qu(bn),yf(Fn),Ri}function Xs(Xe){if(!xa(21))return q0();const $t=ks(Xe,!0);return xa(22),$t}function Vs(){pl(28)||d_()}function wu(Xe){const $t=qe(),bn=Mt();Xe===180&&xa(105);const Fn=fn(),Ri=Xs(4),Ti=ca(59,!0);Vs();const Xc=Xe===179?k.createCallSignature(Fn,Ri,Ti):k.createConstructSignature(Fn,Ri,Ti);return Ia(Qi(Xc,$t),bn)}function Yp(){return ge()===23&&ma(Q)}function Q(){if(Nn(),ge()===26||ge()===24)return!0;if(Om(ge())){if(Nn(),u_())return!0}else if(u_())Nn();else return!1;return ge()===59||ge()===28?!0:ge()!==58?!1:(Nn(),ge()===59||ge()===28||ge()===24)}function ft(Xe,$t,bn){const Fn=i0(16,()=>yo(!1),23,24),Ri=Sl();Vs();const Ti=k.createIndexSignature(bn,Fn,Ri);return Ia(Qi(Ti,Xe),$t)}function br(Xe,$t,bn){const Fn=$o(),Ri=R_(58);let Ti;if(ge()===21||ge()===30){const Xc=fn(),Fu=Xs(4),cu=ca(59,!0);Ti=k.createMethodSignature(bn,Fn,Ri,Xc,Fu,cu)}else{const Xc=Sl();Ti=k.createPropertySignature(bn,Fn,Ri,Xc),ge()===64&&(Ti.initializer=yh())}return Vs(),Ia(Qi(Ti,Xe),$t)}function oo(){if(ge()===21||ge()===30||ge()===139||ge()===153)return!0;let Xe=!1;for(;Om(ge());)Xe=!0,Nn();return ge()===23?!0:(_n()&&(Xe=!0,Nn()),Xe?ge()===21||ge()===30||ge()===58||ge()===59||ge()===28||hh():!1)}function Js(){if(ge()===21||ge()===30)return wu(179);if(ge()===105&&ma(pu))return wu(180);const Xe=qe(),$t=Mt(),bn=c0(!1);return Fs(139)?TC(Xe,$t,bn,177,4):Fs(153)?TC(Xe,$t,bn,178,4):Yp()?ft(Xe,$t,bn):br(Xe,$t,bn)}function pu(){return Nn(),ge()===21||ge()===30}function fl(){return Nn()===25}function ju(){switch(Nn()){case 21:case 30:case 25:return!0}return!1}function L_(){const Xe=qe();return Qi(k.createTypeLiteralNode(Cl()),Xe)}function Cl(){let Xe;return xa(19)?(Xe=A_(4,Js),xa(20)):Xe=q0(),Xe}function o0(){return Nn(),ge()===40||ge()===41?Nn()===148:(ge()===148&&Nn(),ge()===23&&wp()&&Nn()===103)}function oa(){const Xe=qe(),$t=Md();xa(103);const bn=_c();return Qi(k.createTypeParameterDeclaration(void 0,$t,bn,void 0),Xe)}function dD(){const Xe=qe();xa(19);let $t;(ge()===148||ge()===40||ge()===41)&&($t=oy(),$t.kind!==148&&xa(148)),xa(23);const bn=oa(),Fn=pl(130)?_c():void 0;xa(24);let Ri;(ge()===58||ge()===40||ge()===41)&&(Ri=oy(),Ri.kind!==58&&xa(58));const Ti=Sl();d_();const Xc=A_(4,Js);return xa(20),Qi(k.createMappedTypeNode($t,bn,Fn,Ri,Ti,Xc),Xe)}function a0(){const Xe=qe();if(pl(26))return Qi(k.createRestTypeNode(_c()),Xe);const $t=_c();if(WJ($t)&&$t.pos===$t.type.pos){const bn=k.createOptionalTypeNode($t.type);return Tn(bn,$t),bn.flags=$t.flags,bn}return $t}function Kx(){return Nn()===59||ge()===58&&Nn()===59}function hC(){return ge()===26?CT(Nn())&&Kx():CT(ge())&&Kx()}function WP(){if(ma(hC)){const Xe=qe(),$t=Mt(),bn=R_(26),Fn=Md(),Ri=R_(58);xa(59);const Ti=a0(),Xc=k.createNamedTupleMember(bn,Fn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}return a0()}function BP(){const Xe=qe();return Qi(k.createTupleTypeNode(i0(21,WP,23,24)),Xe)}function LA(){const Xe=qe();xa(21);const $t=_c();return xa(22),Qi(k.createParenthesizedType($t),Xe)}function OA(){let Xe;if(ge()===128){const $t=qe();Nn();const bn=Qi(ve(128),$t);Xe=Ka([bn],$t)}return Xe}function pD(){const Xe=qe(),$t=Mt(),bn=OA(),Fn=pl(105);re.assert(!bn||Fn,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Ri=fn(),Ti=Xs(4),Xc=ca(39,!1),Fu=Fn?k.createConstructorTypeNode(bn,Ri,Ti,Xc):k.createFunctionTypeNode(Ri,Ti,Xc);return Ia(Qi(Fu,Xe),$t)}function yC(){const Xe=oy();return ge()===25?void 0:Xe}function vC(Xe){const $t=qe();Xe&&Nn();let bn=ge()===112||ge()===97||ge()===106?oy():Fg(ge());return Xe&&(bn=Qi(k.createPrefixUnaryExpression(41,bn),$t)),Qi(k.createLiteralTypeNode(bn),$t)}function zP(){return Nn(),ge()===102}function Xx(){qt|=4194304;const Xe=qe(),$t=pl(114);xa(102),xa(21);const bn=_c();let Fn;if(pl(28)){const Xc=n.getTokenStart();xa(19);const Fu=ge();if(Fu===118||Fu===132?Nn():Ao(N._0_expected,Cf(118)),xa(59),Fn=gO(Fu,!0),!xa(20)){const cu=Yf(En);cu&&cu.code===N._0_expected.code&&ml(cu,s6(cn,Kt,Xc,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xa(22);const Ri=pl(25)?sv():void 0,Ti=by();return Qi(k.createImportTypeNode(bn,Fn,Ri,Ti,$t),Xe)}function dx(){return Nn(),ge()===9||ge()===10}function WS(){switch(ge()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Bl(yC)||_b();case 67:n.reScanAsteriskEqualsToken();case 42:return n2();case 61:n.reScanQuestionToken();case 58:return su();case 100:return gC();case 54:return Vv();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return vC();case 41:return ma(dx)?vC(!0):_b();case 116:return oy();case 110:{const Xe=i1();return ge()===142&&!n.hasPrecedingLineBreak()?zh(Xe):Xe}case 114:return ma(zP)?Xx():Rk();case 19:return ma(o0)?dD():L_();case 23:return BP();case 21:return LA();case 102:return Xx();case 131:return ma(R4)?hu():_b();case 16:return Gt();default:return _b()}}function px(Xe){switch(ge()){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!Xe;case 41:return!Xe&&ma(dx);case 21:return!Xe&&ma(j_);default:return u_()}}function j_(){return Nn(),ge()===22||$n(!1)||px()}function GP(){const Xe=qe();let $t=WS();for(;!n.hasPrecedingLineBreak();)switch(ge()){case 54:Nn(),$t=Qi(k.createJSDocNonNullableType($t,!0),Xe);break;case 58:if(ma(ci))return $t;Nn(),$t=Qi(k.createJSDocNullableType($t,!0),Xe);break;case 23:if(xa(23),px()){const bn=_c();xa(24),$t=Qi(k.createIndexedAccessTypeNode($t,bn),Xe)}else xa(24),$t=Qi(k.createArrayTypeNode($t),Xe);break;default:return $t}return $t}function oO(Xe){const $t=qe();return xa(Xe),Qi(k.createTypeOperatorNode(Xe,wm()),$t)}function dS(){if(pl(96)){const Xe=Mr(_c);if(Sr()||ge()!==58)return Xe}}function FA(){const Xe=qe(),$t=Nm(),bn=Bl(dS),Fn=k.createTypeParameterDeclaration(void 0,$t,bn);return Qi(Fn,Xe)}function bC(){const Xe=qe();return xa(140),Qi(k.createInferTypeNode(FA()),Xe)}function wm(){const Xe=ge();switch(Xe){case 143:case 158:case 148:return oO(Xe);case 140:return bC()}return dr(GP)}function db(Xe){if(zn()){const $t=pD();let bn;return e0($t)?bn=Xe?N.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:N.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:bn=Xe?N.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:N.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Ce($t,bn),$t}}function o1(Xe,$t,bn){const Fn=qe(),Ri=Xe===52,Ti=pl(Xe);let Xc=Ti&&db(Ri)||$t();if(ge()===Xe||Ti){const Fu=[Xc];for(;pl(Xe);)Fu.push(db(Ri)||$t());Xc=Qi(bn(Ka(Fu,Fn)),Fn)}return Xc}function Q_(){return o1(51,wm,k.createIntersectionTypeNode)}function je(){return o1(52,Q_,k.createUnionTypeNode)}function Vt(){return Nn(),ge()===105}function zn(){return ge()===30||ge()===21&&ma(xi)?!0:ge()===105||ge()===128&&ma(Vt)}function zr(){if(Om(ge())&&c0(!1),u_()||ge()===110)return Nn(),!0;if(ge()===23||ge()===19){const Xe=En.length;return sc(),Xe===En.length}return!1}function xi(){return Nn(),!!(ge()===22||ge()===26||zr()&&(ge()===59||ge()===28||ge()===58||ge()===64||ge()===22&&(Nn(),ge()===39)))}function xo(){const Xe=qe(),$t=u_()&&Bl(Wc),bn=_c();return $t?Qi(k.createTypePredicateNode(void 0,$t,bn),Xe):bn}function Wc(){const Xe=Nm();if(ge()===142&&!n.hasPrecedingLineBreak())return Nn(),Xe}function hu(){const Xe=qe(),$t=km(131),bn=ge()===110?i1():Nm(),Fn=pl(142)?_c():void 0;return Qi(k.createTypePredicateNode($t,bn,Fn),Xe)}function _c(){if(os&81920)return w_(81920,_c);if(zn())return pD();const Xe=qe(),$t=je();if(!Sr()&&!n.hasPrecedingLineBreak()&&pl(96)){const bn=Mr(_c);xa(58);const Fn=dr(_c);xa(59);const Ri=dr(_c);return Qi(k.createConditionalTypeNode($t,bn,Fn,Ri),Xe)}return $t}function Sl(){return pl(59)?_c():void 0}function kf(){switch(ge()){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 ma(ju);default:return u_()}}function Rp(){if(kf())return!0;switch(ge()){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 U()?!0:u_()}}function hn(){return ge()!==19&&ge()!==100&&ge()!==86&&ge()!==60&&Rp()}function v_(){const Xe=yi();Xe&&Cu(!1);const $t=qe();let bn=fm(!0),Fn;for(;Fn=R_(28);)bn=Ae(bn,Fn,fm(!0),$t);return Xe&&Cu(!0),bn}function yh(){return pl(64)?fm(!0):void 0}function fm(Xe){if(mx())return N2();const $t=jP(Xe)||UP(Xe);if($t)return $t;const bn=qe(),Fn=Mt(),Ri=A0(0);return Ri.kind===80&&ge()===39?pS(bn,Ri,Xe,Fn,void 0):ib(Ri)&&pk(vo())?Ae(Ri,oy(),fm(Xe),bn):TE(Ri,bn,Xe)}function mx(){return ge()===127?Ei()?!0:ma(bB):!1}function BS(){return Nn(),!n.hasPrecedingLineBreak()&&u_()}function N2(){const Xe=qe();return Nn(),!n.hasPrecedingLineBreak()&&(ge()===42||Rp())?Qi(k.createYieldExpression(R_(42),fm(!0)),Xe):Qi(k.createYieldExpression(void 0,void 0),Xe)}function pS(Xe,$t,bn,Fn,Ri){re.assert(ge()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Ti=k.createParameterDeclaration(void 0,void 0,$t,void 0,void 0,void 0);Qi(Ti,$t.pos);const Xc=Ka([Ti],Ti.pos,Ti.end),Fu=km(39),cu=Hv(!!Ri,bn),Ml=k.createArrowFunction(Ri,void 0,Xc,void 0,Fu,cu);return Ia(Qi(Ml,Xe),Fn)}function jP(Xe){const $t=tp();if($t!==0)return $t===1?Bm(!0,!0):Bl(()=>VP(Xe))}function tp(){return ge()===21||ge()===30||ge()===134?ma(gx):ge()===39?1:0}function gx(){if(ge()===134&&(Nn(),n.hasPrecedingLineBreak()||ge()!==21&&ge()!==30))return 0;const Xe=ge(),$t=Nn();if(Xe===21){if($t===22)switch(Nn()){case 39:case 59:case 19:return 1;default:return 0}if($t===23||$t===19)return 2;if($t===26)return 1;if(Om($t)&&$t!==134&&ma(wp))return Nn()===130?0:1;if(!u_()&&$t!==110)return 0;switch(Nn()){case 59:return 1;case 58:return Nn(),ge()===59||ge()===28||ge()===64||ge()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return re.assert(Xe===30),!u_()&&ge()!==87?0:jt===1?ma(()=>{pl(87);const Fn=Nn();if(Fn===96)switch(Nn()){case 64:case 32:case 44:return!1;default:return!0}else if(Fn===28||Fn===64)return!0;return!1})?1:0:2}function VP(Xe){const $t=n.getTokenStart();if(no!=null&&no.has($t))return;const bn=Bm(!1,Xe);return bn||(no||(no=new Set)).add($t),bn}function UP(Xe){if(ge()===134&&ma(Bd)===1){const $t=qe(),bn=Mt(),Fn=jS(),Ri=A0(0);return pS($t,Ri,Xe,bn,Fn)}}function Bd(){if(ge()===134){if(Nn(),n.hasPrecedingLineBreak()||ge()===39)return 0;const Xe=A0(0);if(!n.hasPrecedingLineBreak()&&Xe.kind===80&&ge()===39)return 1}return 0}function Bm(Xe,$t){const bn=qe(),Fn=Mt(),Ri=jS(),Ti=gt(Ri,NJ)?2:0,Xc=fn();let Fu;if(xa(21)){if(Xe)Fu=ks(Ti,Xe);else{const qP=ks(Ti,Xe);if(!qP)return;Fu=qP}if(!xa(22)&&!Xe)return}else{if(!Xe)return;Fu=q0()}const cu=ge()===59,Ml=ca(59,!1);if(Ml&&!Xe&&f_(Ml))return;let Zu=Ml;for(;(Zu==null?void 0:Zu.kind)===196;)Zu=Zu.type;const hg=Zu&&Ak(Zu);if(!Xe&&ge()!==39&&(hg||ge()!==19))return;const T_=ge(),Cd=km(39),pb=T_===39||T_===19?Hv(gt(Ri,NJ),$t):Nm();if(!$t&&cu&&ge()!==59)return;const zA=k.createArrowFunction(Ri,Xc,Fu,Ml,Cd,pb);return Ia(Qi(zA,bn),Fn)}function Hv(Xe,$t){if(ge()===19)return j6(Xe?2:0);if(ge()!==27&&ge()!==100&&ge()!==86&&M1()&&!hn())return j6(16|(Xe?2:0));const bn=Mo;Mo=!1;const Fn=Xe?ln(()=>fm($t)):Wn(()=>fm($t));return Mo=bn,Fn}function TE(Xe,$t,bn){const Fn=R_(58);if(!Fn)return Xe;let Ri;return Qi(k.createConditionalExpression(Xe,Fn,w_(i,()=>fm(!1)),Ri=km(59),y2(Ri)?fm(bn):Pm(80,!1,N._0_expected,Cf(59))),$t)}function A0(Xe){const $t=qe(),bn=gg();return R2(Xe,bn,$t)}function w2(Xe){return Xe===103||Xe===165}function R2(Xe,$t,bn){for(;;){vo();const Fn=bH(ge());if(!(ge()===43?Fn>=Xe:Fn>Xe)||ge()===103&&Ln())break;if(ge()===130||ge()===152){if(n.hasPrecedingLineBreak())break;{const Ti=ge();Nn(),$t=Ti===152?le($t,_c()):rt($t,_c())}}else $t=Ae($t,oy(),A0(Fn),bn)}return $t}function U(){return Ln()&&ge()===103?!1:bH(ge())>0}function le(Xe,$t){return Qi(k.createSatisfiesExpression(Xe,$t),Xe.pos)}function Ae(Xe,$t,bn,Fn){return Qi(k.createBinaryExpression(Xe,$t,bn),Fn)}function rt(Xe,$t){return Qi(k.createAsExpression(Xe,$t),Xe.pos)}function Dn(){const Xe=qe();return Qi(k.createPrefixUnaryExpression(ge(),Jn(Nh)),Xe)}function Ci(){const Xe=qe();return Qi(k.createDeleteExpression(Jn(Nh)),Xe)}function gs(){const Xe=qe();return Qi(k.createTypeOfExpression(Jn(Nh)),Xe)}function Tu(){const Xe=qe();return Qi(k.createVoidExpression(Jn(Nh)),Xe)}function tg(){return ge()===135?go()?!0:ma(bB):!1}function mS(){const Xe=qe();return Qi(k.createAwaitExpression(Jn(Nh)),Xe)}function gg(){if(r2()){const bn=qe(),Fn=II();return ge()===43?R2(bH(ge()),Fn,bn):Fn}const Xe=ge(),$t=Nh();if(ge()===43){const bn=Ff(Kt,$t.pos),{end:Fn}=$t;$t.kind===216?ze(bn,Fn,N.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(re.assert(F9(Xe)),ze(bn,Fn,N.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,Cf(Xe)))}return $t}function Nh(){switch(ge()){case 40:case 41:case 55:case 54:return Dn();case 91:return Ci();case 114:return gs();case 116:return Tu();case 30:return jt===1?kI(!0,void 0,void 0,!0):wI();case 135:if(tg())return mS();default:return II()}}function r2(){switch(ge()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(jt!==1)return!1;default:return!0}}function II(){if(ge()===46||ge()===47){const $t=qe();return Qi(k.createPrefixUnaryExpression(ge(),Jn(Mk)),$t)}else if(jt===1&&ge()===30&&ma(r1))return kI(!0);const Xe=Mk();if(re.assert(ib(Xe)),(ge()===46||ge()===47)&&!n.hasPrecedingLineBreak()){const $t=ge();return Nn(),Qi(k.createPostfixUnaryExpression(Xe,$t),Xe.pos)}return Xe}function Mk(){const Xe=qe();let $t;return ge()===102?ma(pu)?(qt|=4194304,$t=oy()):ma(fl)?(Nn(),Nn(),$t=Qi(k.createMetaProperty(102,Md()),Xe),qt|=8388608):$t=M2():$t=ge()===108?HR():M2(),Ys(Xe,$t)}function M2(){const Xe=qe(),$t=b_();return gf(Xe,$t,!0)}function HR(){const Xe=qe();let $t=oy();if(ge()===30){const bn=qe(),Fn=Bl(Nl);Fn!==void 0&&(ze(bn,qe(),N.super_may_not_use_type_arguments),ko()||($t=k.createExpressionWithTypeArguments($t,Fn)))}return ge()===21||ge()===25||ge()===23?$t:(km(25,N.super_must_be_followed_by_an_argument_list_or_member_access),Qi(et($t,vi(!0,!0,!0)),Xe))}function kI(Xe,$t,bn,Fn=!1){const Ri=qe(),Ti=NI(Xe);let Xc;if(Ti.kind===286){let Fu=HP(Ti),cu;const Ml=Fu[Fu.length-1];if((Ml==null?void 0:Ml.kind)===284&&!r4(Ml.openingElement.tagName,Ml.closingElement.tagName)&&r4(Ti.tagName,Ml.closingElement.tagName)){const Zu=Ml.children.end,hg=Qi(k.createJsxElement(Ml.openingElement,Ml.children,Qi(k.createJsxClosingElement(Qi(ie(""),Zu,Zu)),Zu,Zu)),Ml.openingElement.pos,Zu);Fu=Ka([...Fu.slice(0,Fu.length-1),hg],Fu.pos,Zu),cu=Ml.closingElement}else cu=gD(Ti,Xe),r4(Ti.tagName,cu.tagName)||(bn&&Pb(bn)&&r4(cu.tagName,bn.tagName)?Ce(Ti.tagName,N.JSX_element_0_has_no_corresponding_closing_tag,h9(Kt,Ti.tagName)):Ce(cu.tagName,N.Expected_corresponding_JSX_closing_tag_for_0,h9(Kt,Ti.tagName)));Xc=Qi(k.createJsxElement(Ti,Fu,cu),Ri)}else Ti.kind===289?Xc=Qi(k.createJsxFragment(Ti,HP(Ti),UT(Xe)),Ri):(re.assert(Ti.kind===285),Xc=Ti);if(!Fn&&Xe&&ge()===30){const Fu=typeof $t>"u"?Xc.pos:$t,cu=Bl(()=>kI(!0,Fu));if(cu){const Ml=Pm(28,!1);return f3(Ml,cu.pos,0),ze(Ff(Kt,Fu),cu.end,N.JSX_expressions_must_have_one_parent_element),Qi(k.createBinaryExpression(Xc,Ml,cu),Ri)}}return Xc}function JR(){const Xe=qe(),$t=k.createJsxText(n.getTokenValue(),Vr===13);return Vr=n.scanJsxToken(),Qi($t,Xe)}function PI(Xe,$t){switch($t){case 1:if(v6(Xe))Ce(Xe,N.JSX_fragment_has_no_corresponding_closing_tag);else{const bn=Xe.tagName,Fn=Math.min(Ff(Kt,bn.pos),bn.end);ze(Fn,bn.end,N.JSX_element_0_has_no_corresponding_closing_tag,h9(Kt,Xe.tagName))}return;case 31:case 7:return;case 12:case 13:return JR();case 19:return aO(!1);case 30:return kI(!1,void 0,Xe);default:return re.assertNever($t)}}function HP(Xe){const $t=[],bn=qe(),Fn=io;for(io|=16384;;){const Ri=PI(Xe,Vr=n.reScanJsxToken());if(!Ri||($t.push(Ri),Pb(Xe)&&(Ri==null?void 0:Ri.kind)===284&&!r4(Ri.openingElement.tagName,Ri.closingElement.tagName)&&r4(Xe.tagName,Ri.closingElement.tagName)))break}return io=Fn,Ka($t,bn)}function mD(){const Xe=qe();return Qi(k.createJsxAttributes(A_(13,yB)),Xe)}function NI(Xe){const $t=qe();if(xa(30),ge()===32)return bl(),Qi(k.createJsxOpeningFragment(),$t);const bn=sw(),Fn=os&524288?void 0:F4(),Ri=mD();let Ti;return ge()===32?(bl(),Ti=k.createJsxOpeningElement(bn,Fn,Ri)):(xa(44),xa(32,void 0,!1)&&(Xe?Nn():bl()),Ti=k.createJsxSelfClosingElement(bn,Fn,Ri)),Qi(Ti,$t)}function sw(){const Xe=qe(),$t=cw();if(Fm($t))return $t;let bn=$t;for(;pl(25);)bn=Qi(et(bn,vi(!0,!1,!1)),Xe);return bn}function cw(){const Xe=qe();hc();const $t=ge()===110,bn=fe();return pl(59)?(hc(),Qi(k.createJsxNamespacedName(bn,fe()),Xe)):$t?Qi(k.createToken(110),Xe):bn}function aO(Xe){const $t=qe();if(!xa(19))return;let bn,Fn;return ge()!==20&&(Xe||(bn=R_(26)),Fn=v_()),Xe?xa(20):xa(20,void 0,!1)&&bl(),Qi(k.createJsxExpression(bn,Fn),$t)}function yB(){if(ge()===19)return WA();const Xe=qe();return Qi(k.createJsxAttribute(Vo(),z6()),Xe)}function z6(){if(ge()===64){if(Tc()===11)return wi();if(ge()===19)return aO(!0);if(ge()===30)return kI(!0);Ao(N.or_JSX_element_expected)}}function Vo(){const Xe=qe();hc();const $t=fe();return pl(59)?(hc(),Qi(k.createJsxNamespacedName($t,fe()),Xe)):$t}function WA(){const Xe=qe();xa(19),xa(26);const $t=v_();return xa(20),Qi(k.createJsxSpreadAttribute($t),Xe)}function gD(Xe,$t){const bn=qe();xa(31);const Fn=sw();return xa(32,void 0,!1)&&($t||!r4(Xe.tagName,Fn)?Nn():bl()),Qi(k.createJsxClosingElement(Fn),bn)}function UT(Xe){const $t=qe();return xa(31),xa(32,N.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Xe?Nn():bl()),Qi(k.createJsxJsxClosingFragment(),$t)}function wI(){re.assert(jt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const Xe=qe();xa(30);const $t=_c();xa(32);const bn=Nh();return Qi(k.createTypeAssertion($t,bn),Xe)}function P4(){return Nn(),CT(ge())||ge()===23||ko()}function N4(){return ge()===29&&ma(P4)}function G6(Xe){if(Xe.flags&64)return!0;if(E3(Xe)){let $t=Xe.expression;for(;E3($t)&&!($t.flags&64);)$t=$t.expression;if($t.flags&64){for(;E3(Xe);)Xe.flags|=64,Xe=Xe.expression;return!0}}return!1}function rs(Xe,$t,bn){const Fn=vi(!0,!0,!0),Ri=bn||G6($t),Ti=Ri?Pe($t,bn,Fn):et($t,Fn);if(Ri&&Lu(Ti.name)&&Ce(Ti.name,N.An_optional_chain_cannot_contain_private_identifiers),cC($t)&&$t.typeArguments){const Xc=$t.typeArguments.pos-1,Fu=Ff(Kt,$t.typeArguments.end)+1;ze(Xc,Fu,N.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Qi(Ti,Xe)}function Ob(Xe,$t,bn){let Fn;if(ge()===24)Fn=Pm(80,!0,N.An_element_access_expression_should_take_an_argument);else{const Ti=He(v_);Ox(Ti)&&(Ti.text=Ag(Ti.text)),Fn=Ti}xa(24);const Ri=bn||G6($t)?Ie($t,bn,Fn):dt($t,Fn);return Qi(Ri,Xe)}function gf(Xe,$t,bn){for(;;){let Fn,Ri=!1;if(bn&&N4()?(Fn=km(29),Ri=CT(ge())):Ri=pl(25),Ri){$t=rs(Xe,$t,Fn);continue}if((Fn||!yi())&&pl(23)){$t=Ob(Xe,$t,Fn);continue}if(ko()){$t=!Fn&&$t.kind===233?ac(Xe,$t.expression,Fn,$t.typeArguments):ac(Xe,$t,Fn,void 0);continue}if(!Fn){if(ge()===54&&!n.hasPrecedingLineBreak()){Nn(),$t=Qi(k.createNonNullExpression($t),Xe);continue}const Ti=Bl(Nl);if(Ti){$t=Qi(k.createExpressionWithTypeArguments($t,Ti),Xe);continue}}return $t}}function ko(){return ge()===15||ge()===16}function ac(Xe,$t,bn,Fn){const Ri=k.createTaggedTemplateExpression($t,Fn,ge()===15?(Ts(!0),wi()):Ee(!0));return(bn||$t.flags&64)&&(Ri.flags|=64),Ri.questionDotToken=bn,Qi(Ri,Xe)}function Ys(Xe,$t){for(;;){$t=gf(Xe,$t,!0);let bn;const Fn=R_(29);if(Fn&&(bn=Bl(Nl),ko())){$t=ac(Xe,$t,Fn,bn);continue}if(bn||ge()===21){!Fn&&$t.kind===233&&(bn=$t.typeArguments,$t=$t.expression);const Ri=Ni(),Ti=Fn||G6($t)?Ct($t,Fn,bn,Ri):ct($t,bn,Ri);$t=Qi(Ti,Xe);continue}if(Fn){const Ri=Pm(80,!1,N.Identifier_expected);$t=Qi(Pe($t,Fn,Ri),Xe)}break}return $t}function Ni(){xa(21);const Xe=xv(11,SE);return xa(22),Xe}function Nl(){if(os&524288||Cc()!==30)return;Nn();const Xe=xv(20,_c);if(vo()===32)return Nn(),Xe&&Xd()?Xe:void 0}function Xd(){switch(ge()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return n.hasPrecedingLineBreak()||U()||!Rp()}function b_(){switch(ge()){case 15:n.getTokenFlags()&26656&&Ts(!1);case 9:case 10:case 11:return wi();case 110:case 108:case 106:case 112:case 97:return oy();case 21:return Gp();case 23:return R1();case 19:return RI();case 134:if(!ma(Qg))break;return Uy();case 60:return pO();case 86:return Xq();case 100:return Uy();case 105:return w4();case 44:case 69:if(Ro()===14)return wi();break;case 16:return Ee(!1);case 81:return xs()}return Nm(N.Expression_expected)}function Gp(){const Xe=qe(),$t=Mt();xa(21);const bn=He(v_);return xa(22),Ia(Qi(Ze(bn),Xe),$t)}function w1(){const Xe=qe();xa(26);const $t=fm(!0);return Qi(k.createSpreadElement($t),Xe)}function zS(){return ge()===26?w1():ge()===28?Qi(k.createOmittedExpression(),qe()):fm(!0)}function SE(){return w_(i,zS)}function R1(){const Xe=qe(),$t=n.getTokenStart(),bn=xa(23),Fn=n.hasPrecedingLineBreak(),Ri=xv(15,zS);return Og(23,24,bn,$t),Qi(we(Ri,Fn),Xe)}function JP(){const Xe=qe(),$t=Mt();if(R_(26)){const Zu=fm(!0);return Ia(Qi(k.createSpreadAssignment(Zu),Xe),$t)}const bn=c0(!0);if(Fs(139))return TC(Xe,$t,bn,177,0);if(Fs(153))return TC(Xe,$t,bn,178,0);const Fn=R_(42),Ri=u_(),Ti=$o(),Xc=R_(58),Fu=R_(54);if(Fn||ge()===21||ge()===30)return eA(Xe,$t,bn,Fn,Ti,Xc,Fu);let cu;if(Ri&&ge()!==59){const Zu=R_(64),hg=Zu?He(()=>fm(!0)):void 0;cu=k.createShorthandPropertyAssignment(Ti,hg),cu.equalsToken=Zu}else{xa(59);const Zu=He(()=>fm(!0));cu=k.createPropertyAssignment(Ti,Zu)}return cu.modifiers=bn,cu.questionToken=Xc,cu.exclamationToken=Fu,Ia(Qi(cu,Xe),$t)}function RI(){const Xe=qe(),$t=n.getTokenStart(),bn=xa(19),Fn=n.hasPrecedingLineBreak(),Ri=xv(12,JP,!0);return Og(19,20,bn,$t),Qi(Fe(Ri,Fn),Xe)}function Uy(){const Xe=yi();Cu(!1);const $t=qe(),bn=Mt(),Fn=c0(!1);xa(100);const Ri=R_(42),Ti=Ri?1:0,Xc=gt(Fn,NJ)?2:0,Fu=Ti&&Xc?$r(Lk):Ti?Pr(Lk):Xc?ln(Lk):Lk(),cu=fn(),Ml=Xs(Ti|Xc),Zu=ca(59,!1),hg=j6(Ti|Xc);Cu(Xe);const T_=k.createFunctionExpression(Fn,Ri,Fu,cu,Ml,Zu,hg);return Ia(Qi(T_,$t),bn)}function Lk(){return G_()?x0():void 0}function w4(){const Xe=qe();if(xa(105),pl(25)){const Ti=Md();return Qi(k.createMetaProperty(105,Ti),Xe)}const $t=qe();let bn=gf($t,b_(),!1),Fn;bn.kind===233&&(Fn=bn.typeArguments,bn=bn.expression),ge()===29&&Ao(N.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,h9(Kt,bn));const Ri=ge()===21?Ni():void 0;return Qi(Lt(bn,Fn,Ri),Xe)}function lw(Xe,$t){const bn=qe(),Fn=Mt(),Ri=n.getTokenStart(),Ti=xa(19,$t);if(Ti||Xe){const Xc=n.hasPrecedingLineBreak(),Fu=A_(1,Zx);Og(19,20,Ti,Ri);const cu=Ia(Qi(Ke(Fu,Xc),bn),Fn);return ge()===64&&(Ao(N.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),Nn()),cu}else{const Xc=q0();return Ia(Qi(Ke(Xc,void 0),bn),Fn)}}function j6(Xe,$t){const bn=Ei();Qu(!!(Xe&1));const Fn=go();yf(!!(Xe&2));const Ri=Mo;Mo=!1;const Ti=yi();Ti&&Cu(!1);const Xc=lw(!!(Xe&16),$t);return Ti&&Cu(!0),Mo=Ri,Qu(bn),yf(Fn),Xc}function sO(){const Xe=qe(),$t=Mt();return xa(27),Ia(Qi(k.createEmptyStatement(),Xe),$t)}function Ok(){const Xe=qe(),$t=Mt();xa(101);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Zx(),Xc=pl(93)?Zx():void 0;return Ia(Qi(Yt(Ri,Ti,Xc),Xe),$t)}function vB(){const Xe=qe(),$t=Mt();xa(92);const bn=Zx();xa(117);const Fn=n.getTokenStart(),Ri=xa(21),Ti=He(v_);return Og(21,22,Ri,Fn),pl(27),Ia(Qi(k.createDoStatement(bn,Ti),Xe),$t)}function Rm(){const Xe=qe(),$t=Mt();xa(117);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Zx();return Ia(Qi(Et(Ri,Ti),Xe),$t)}function Yx(){const Xe=qe(),$t=Mt();xa(99);const bn=R_(135);xa(21);let Fn;ge()!==27&&(ge()===115||ge()===121||ge()===87||ge()===160&&ma(qR)||ge()===135&&ma(TB)?Fn=fO(!0):Fn=Hn(v_));let Ri;if(bn?xa(165):pl(165)){const Ti=He(()=>fm(!0));xa(22),Ri=Qt(bn,Fn,Ti,Zx())}else if(pl(103)){const Ti=He(v_);xa(22),Ri=k.createForInStatement(Fn,Ti,Zx())}else{xa(27);const Ti=ge()!==27&&ge()!==22?He(v_):void 0;xa(27);const Xc=ge()!==22?He(v_):void 0;xa(22),Ri=at(Fn,Ti,Xc,Zx())}return Ia(Qi(Ri,Xe),$t)}function uw(Xe){const $t=qe(),bn=Mt();xa(Xe===252?83:88);const Fn=hh()?void 0:Nm();d_();const Ri=Xe===252?k.createBreakStatement(Fn):k.createContinueStatement(Fn);return Ia(Qi(Ri,$t),bn)}function Av(){const Xe=qe(),$t=Mt();xa(107);const bn=hh()?void 0:He(v_);return d_(),Ia(Qi(k.createReturnStatement(bn),Xe),$t)}function C0(){const Xe=qe(),$t=Mt();xa(118);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Eu(67108864,Zx);return Ia(Qi(k.createWithStatement(Ri,Ti),Xe),$t)}function gV(){const Xe=qe(),$t=Mt();xa(84);const bn=He(v_);xa(59);const Fn=A_(3,Zx);return Ia(Qi(k.createCaseClause(bn,Fn),Xe),$t)}function pT(){const Xe=qe();xa(90),xa(59);const $t=A_(3,Zx);return Qi(k.createDefaultClause($t),Xe)}function EE(){return ge()===84?gV():pT()}function cO(){const Xe=qe();xa(19);const $t=A_(2,EE);return xa(20),Qi(k.createCaseBlock($t),Xe)}function Qx(){const Xe=qe(),$t=Mt();xa(109),xa(21);const bn=He(v_);xa(22);const Fn=cO();return Ia(Qi(k.createSwitchStatement(bn,Fn),Xe),$t)}function V6(){const Xe=qe(),$t=Mt();xa(111);let bn=n.hasPrecedingLineBreak()?void 0:He(v_);return bn===void 0&&(Ki++,bn=Qi(ie(""),qe())),qo()||mf(bn),Ia(Qi(k.createThrowStatement(bn),Xe),$t)}function fw(){const Xe=qe(),$t=Mt();xa(113);const bn=lw(!1),Fn=ge()===85?s0():void 0;let Ri;return(!Fn||ge()===98)&&(xa(98,N.catch_or_finally_expected),Ri=lw(!1)),Ia(Qi(k.createTryStatement(bn,Fn,Ri),Xe),$t)}function s0(){const Xe=qe();xa(85);let $t;pl(21)?($t=xE(),xa(22)):$t=void 0;const bn=lw(!1);return Qi(k.createCatchClause($t,bn),Xe)}function U6(){const Xe=qe(),$t=Mt();return xa(89),d_(),Ia(Qi(k.createDebuggerStatement(),Xe),$t)}function GS(){const Xe=qe();let $t=Mt(),bn;const Fn=ge()===21,Ri=He(v_);return xn(Ri)&&pl(59)?bn=k.createLabeledStatement(Ri,Zx()):(qo()||mf(Ri),bn=It(Ri),Fn&&($t=!1)),Ia(Qi(bn,Xe),$t)}function R4(){return Nn(),CT(ge())&&!n.hasPrecedingLineBreak()}function Kq(){return Nn(),ge()===86&&!n.hasPrecedingLineBreak()}function Qg(){return Nn(),ge()===100&&!n.hasPrecedingLineBreak()}function bB(){return Nn(),(CT(ge())||ge()===9||ge()===10||ge()===11)&&!n.hasPrecedingLineBreak()}function BA(){for(;;)switch(ge()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return hS();case 135:return M4();case 120:case 156:return BS();case 144:case 145:return SB();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const Xe=ge();if(Nn(),n.hasPrecedingLineBreak())return!1;if(Xe===138&&ge()===156)return!0;continue;case 162:return Nn(),ge()===19||ge()===80||ge()===95;case 102:return Nn(),ge()===11||ge()===42||ge()===19||CT(ge());case 95:let $t=Nn();if($t===156&&($t=ma(Nn)),$t===64||$t===42||$t===19||$t===90||$t===130||$t===60)return!0;continue;case 126:Nn();continue;default:return!1}}function $R(){return ma(BA)}function M1(){switch(ge()){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 $R()||ma(ju);case 87:case 95:return $R();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 $R()||!ma(R4);default:return Rp()}}function gS(){return Nn(),G_()||ge()===19||ge()===23}function _w(){return ma(gS)}function qR(){return i2(!0)}function i2(Xe){return Nn(),Xe&&ge()===165?!1:(G_()||ge()===19)&&!n.hasPrecedingLineBreak()}function hS(){return ma(i2)}function TB(Xe){return Nn()===160?i2(Xe):!1}function M4(){return ma(TB)}function Zx(){switch(ge()){case 27:return sO();case 19:return lw(!1);case 115:return _O(qe(),Mt(),void 0);case 121:if(_w())return _O(qe(),Mt(),void 0);break;case 135:if(M4())return _O(qe(),Mt(),void 0);break;case 160:if(hS())return _O(qe(),Mt(),void 0);break;case 100:return $F(qe(),Mt(),void 0);case 86:return Ty(qe(),Mt(),void 0);case 101:return Ok();case 92:return vB();case 117:return Rm();case 99:return Yx();case 88:return uw(251);case 83:return uw(252);case 107:return Av();case 118:return C0();case 109:return Qx();case 111:return V6();case 113:case 85:case 98:return fw();case 89:return U6();case 60:return H6();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($R())return H6();break}return GS()}function lO(Xe){return Xe.kind===138}function H6(){const Xe=qe(),$t=Mt(),bn=c0(!0);if(gt(bn,lO)){const Ri=hV(Xe);if(Ri)return Ri;for(const Ti of bn)Ti.flags|=33554432;return Eu(33554432,()=>yV(Xe,$t,bn))}else return yV(Xe,$t,bn)}function hV(Xe){return Eu(33554432,()=>{const $t=Dg(io,Xe);if($t)return um($t)})}function yV(Xe,$t,bn){switch(ge()){case 115:case 121:case 87:case 160:case 135:return _O(Xe,$t,bn);case 100:return $F(Xe,$t,bn);case 86:return Ty(Xe,$t,bn);case 120:return Er(Xe,$t,bn);case 156:return Wi(Xe,$t,bn);case 94:return Vu(Xe,$t,bn);case 162:case 144:case 145:return CE(Xe,$t,bn);case 102:return MI(Xe,$t,bn);case 95:switch(Nn(),ge()){case 90:case 64:return F0e(Xe,$t,bn);case 130:return DE(Xe,$t,bn);default:return HT(Xe,$t,bn)}default:if(bn){const Fn=Pm(282,!0,N.Declaration_expected);return u3(Fn,Xe),Fn.modifiers=bn,Fn}return}}function JF(){return Nn()===11}function SB(){return Nn(),!n.hasPrecedingLineBreak()&&(u_()||ge()===11)}function uO(Xe,$t){if(ge()!==19){if(Xe&4){Vs();return}if(hh()){d_();return}}return j6(Xe,$t)}function L2(){const Xe=qe();if(ge()===28)return Qi(k.createOmittedExpression(),Xe);const $t=R_(26),bn=sc(),Fn=yh();return Qi(k.createBindingElement($t,void 0,bn,Fn),Xe)}function dw(){const Xe=qe(),$t=R_(26),bn=G_();let Fn=$o(),Ri;bn&&ge()!==59?(Ri=Fn,Fn=void 0):(xa(59),Ri=sc());const Ti=yh();return Qi(k.createBindingElement($t,Fn,Ri,Ti),Xe)}function EB(){const Xe=qe();xa(19);const $t=He(()=>xv(9,dw));return xa(20),Qi(k.createObjectBindingPattern($t),Xe)}function vV(){const Xe=qe();xa(23);const $t=He(()=>xv(10,L2));return xa(24),Qi(k.createArrayBindingPattern($t),Xe)}function jp(){return ge()===19||ge()===23||ge()===81||G_()}function sc(Xe){return ge()===23?vV():ge()===19?EB():x0(Xe)}function hx(){return xE(!0)}function xE(Xe){const $t=qe(),bn=Mt(),Fn=sc(N.Private_identifiers_are_not_allowed_in_variable_declarations);let Ri;Xe&&Fn.kind===80&&ge()===54&&!n.hasPrecedingLineBreak()&&(Ri=oy());const Ti=Sl(),Xc=w2(ge())?void 0:yh(),Fu=nn(Fn,Ri,Ti,Xc);return Ia(Qi(Fu,$t),bn)}function fO(Xe){const $t=qe();let bn=0;switch(ge()){case 115:break;case 121:bn|=1;break;case 87:bn|=2;break;case 160:bn|=4;break;case 135:re.assert(M4()),bn|=6,Nn();break;default:re.fail()}Nn();let Fn;if(ge()===165&&ma(bV))Fn=q0();else{const Ri=Ln();Au(Xe),Fn=xv(8,Xe?xE:hx),Au(Ri)}return Qi(Rn(Fn,bn),$t)}function bV(){return wp()&&Nn()===22}function _O(Xe,$t,bn){const Fn=fO(!1);d_();const Ri=st(bn,Fn);return Ia(Qi(Ri,Xe),$t)}function $F(Xe,$t,bn){const Fn=go(),Ri=aI(bn);xa(100);const Ti=R_(42),Xc=Ri&2048?Lk():x0(),Fu=Ti?1:0,cu=Ri&1024?2:0,Ml=fn();Ri&32&&yf(!0);const Zu=Xs(Fu|cu),hg=ca(59,!1),T_=uO(Fu|cu,N.or_expected);yf(Fn);const Cd=k.createFunctionDeclaration(bn,Ti,Xc,Ml,Zu,hg,T_);return Ia(Qi(Cd,Xe),$t)}function L4(){if(ge()===137)return xa(137);if(ge()===11&&ma(Nn)===21)return Bl(()=>{const Xe=wi();return Xe.text==="constructor"?Xe:void 0})}function AE(Xe,$t,bn){return Bl(()=>{if(L4()){const Fn=fn(),Ri=Xs(0),Ti=ca(59,!1),Xc=uO(0,N.or_expected),Fu=k.createConstructorDeclaration(bn,Ri,Xc);return Fu.typeParameters=Fn,Fu.type=Ti,Ia(Qi(Fu,Xe),$t)}})}function eA(Xe,$t,bn,Fn,Ri,Ti,Xc,Fu){const cu=Fn?1:0,Ml=gt(bn,NJ)?2:0,Zu=fn(),hg=Xs(cu|Ml),T_=ca(59,!1),Cd=uO(cu|Ml,Fu),pb=k.createMethodDeclaration(bn,Fn,Ri,Ti,Zu,hg,T_,Cd);return pb.exclamationToken=Xc,Ia(Qi(pb,Xe),$t)}function KR(Xe,$t,bn,Fn,Ri){const Ti=!Ri&&!n.hasPrecedingLineBreak()?R_(54):void 0,Xc=Sl(),Fu=w_(90112,yh);xg(Fn,Xc,Fu);const cu=k.createPropertyDeclaration(bn,Fn,Ri||Ti,Xc,Fu);return Ia(Qi(cu,Xe),$t)}function hD(Xe,$t,bn){const Fn=R_(42),Ri=$o(),Ti=R_(58);return Fn||ge()===21||ge()===30?eA(Xe,$t,bn,Fn,Ri,Ti,void 0,N.or_expected):KR(Xe,$t,bn,Ri,Ti)}function TC(Xe,$t,bn,Fn,Ri){const Ti=$o(),Xc=fn(),Fu=Xs(0),cu=ca(59,!1),Ml=uO(Ri),Zu=Fn===177?k.createGetAccessorDeclaration(bn,Ti,Fu,cu,Ml):k.createSetAccessorDeclaration(bn,Ti,Fu,Ml);return Zu.typeParameters=Xc,Xb(Zu)&&(Zu.type=cu),Ia(Qi(Zu,Xe),$t)}function L1(){let Xe;if(ge()===60)return!0;for(;Om(ge());){if(Xe=ge(),jU(Xe))return!0;Nn()}if(ge()===42||(_n()&&(Xe=ge(),Nn()),ge()===23))return!0;if(Xe!==void 0){if(!qb(Xe)||Xe===153||Xe===139)return!0;switch(ge()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return hh()}}return!1}function mT(Xe,$t,bn){km(126);const Fn=Vg(),Ri=Ia(Qi(k.createClassStaticBlockDeclaration(Fn),Xe),$t);return Ri.modifiers=bn,Ri}function Vg(){const Xe=Ei(),$t=go();Qu(!1),yf(!0);const bn=lw(!1);return Qu(Xe),yf($t),bn}function SC(){if(go()&&ge()===135){const Xe=qe(),$t=Nm(N.Expression_expected);Nn();const bn=gf(Xe,$t,!0);return Ys(Xe,bn)}return Mk()}function tA(){const Xe=qe();if(!pl(60))return;const $t=Bt(SC);return Qi(k.createDecorator($t),Xe)}function O4(Xe,$t,bn){const Fn=qe(),Ri=ge();if(ge()===87&&$t){if(!Bl(Tl))return}else{if(bn&&ge()===126&&ma(Fk))return;if(Xe&&ge()===126)return;if(!ah())return}return Qi(ve(Ri),Fn)}function c0(Xe,$t,bn){const Fn=qe();let Ri,Ti,Xc,Fu=!1,cu=!1,Ml=!1;if(Xe&&ge()===60)for(;Ti=tA();)Ri=ur(Ri,Ti);for(;Xc=O4(Fu,$t,bn);)Xc.kind===126&&(Fu=!0),Ri=ur(Ri,Xc),cu=!0;if(cu&&Xe&&ge()===60)for(;Ti=tA();)Ri=ur(Ri,Ti),Ml=!0;if(Ml)for(;Xc=O4(Fu,$t,bn);)Xc.kind===126&&(Fu=!0),Ri=ur(Ri,Xc);return Ri&&Ka(Ri,Fn)}function jS(){let Xe;if(ge()===134){const $t=qe();Nn();const bn=Qi(ve(134),$t);Xe=Ka([bn],$t)}return Xe}function dO(){const Xe=qe(),$t=Mt();if(ge()===27)return Nn(),Ia(Qi(k.createSemicolonClassElement(),Xe),$t);const bn=c0(!0,!0,!0);if(ge()===126&&ma(Fk))return mT(Xe,$t,bn);if(Fs(139))return TC(Xe,$t,bn,177,0);if(Fs(153))return TC(Xe,$t,bn,178,0);if(ge()===137||ge()===11){const Fn=AE(Xe,$t,bn);if(Fn)return Fn}if(Yp())return ft(Xe,$t,bn);if(CT(ge())||ge()===11||ge()===9||ge()===42||ge()===23)if(gt(bn,lO)){for(const Ri of bn)Ri.flags|=33554432;return Eu(33554432,()=>hD(Xe,$t,bn))}else return hD(Xe,$t,bn);if(bn){const Fn=Pm(80,!0,N.Declaration_expected);return KR(Xe,$t,bn,Fn,void 0)}return re.fail("Should not have attempted to parse class member declaration.")}function pO(){const Xe=qe(),$t=Mt(),bn=c0(!0);if(ge()===86)return sy(Xe,$t,bn,231);const Fn=Pm(282,!0,N.Expression_expected);return u3(Fn,Xe),Fn.modifiers=bn,Fn}function Xq(){return sy(qe(),Mt(),void 0,231)}function Ty(Xe,$t,bn){return sy(Xe,$t,bn,263)}function sy(Xe,$t,bn,Fn){const Ri=go();xa(86);const Ti=K0(),Xc=fn();gt(bn,_W)&&yf(!0);const Fu=o2();let cu;xa(19)?(cu=yt(),xa(20)):cu=q0(),yf(Ri);const Ml=Fn===263?k.createClassDeclaration(bn,Ti,Xc,Fu,cu):k.createClassExpression(bn,Ti,Xc,Fu,cu);return Ia(Qi(Ml,Xe),$t)}function K0(){return G_()&&!O2()?va(G_()):void 0}function O2(){return ge()===119&&ma(Xp)}function o2(){if(ne())return A_(22,pw)}function pw(){const Xe=qe(),$t=ge();re.assert($t===96||$t===119),Nn();const bn=xv(7,Vp);return Qi(k.createHeritageClause($t,bn),Xe)}function Vp(){const Xe=qe(),$t=Mk();if($t.kind===233)return $t;const bn=F4();return Qi(k.createExpressionWithTypeArguments($t,bn),Xe)}function F4(){return ge()===30?i0(20,_c,30,32):void 0}function ne(){return ge()===96||ge()===119}function yt(){return A_(5,dO)}function Er(Xe,$t,bn){xa(120);const Fn=Nm(),Ri=fn(),Ti=o2(),Xc=Cl(),Fu=k.createInterfaceDeclaration(bn,Fn,Ri,Ti,Xc);return Ia(Qi(Fu,Xe),$t)}function Wi(Xe,$t,bn){xa(156),n.hasPrecedingLineBreak()&&Ao(N.Line_break_not_permitted_here);const Fn=Nm(),Ri=fn();xa(64);const Ti=ge()===141&&Bl(yC)||_c();d_();const Xc=k.createTypeAliasDeclaration(bn,Fn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}function nc(){const Xe=qe(),$t=Mt(),bn=$o(),Fn=He(yh);return Ia(Qi(k.createEnumMember(bn,Fn),Xe),$t)}function Vu(Xe,$t,bn){xa(94);const Fn=Nm();let Ri;xa(19)?(Ri=Ge(()=>xv(6,nc)),xa(20)):Ri=q0();const Ti=k.createEnumDeclaration(bn,Fn,Ri);return Ia(Qi(Ti,Xe),$t)}function ql(){const Xe=qe();let $t;return xa(19)?($t=A_(1,Zx),xa(20)):$t=q0(),Qi(k.createModuleBlock($t),Xe)}function Pf(Xe,$t,bn,Fn){const Ri=Fn&32,Ti=Fn&8?Md():Nm(),Xc=pl(25)?Pf(qe(),!1,void 0,8|Ri):ql(),Fu=k.createModuleDeclaration(bn,Ti,Xc,Fn);return Ia(Qi(Fu,Xe),$t)}function Z_(Xe,$t,bn){let Fn=0,Ri;ge()===162?(Ri=Nm(),Fn|=2048):(Ri=wi(),Ri.text=Ag(Ri.text));let Ti;ge()===19?Ti=ql():d_();const Xc=k.createModuleDeclaration(bn,Ri,Ti,Fn);return Ia(Qi(Xc,Xe),$t)}function CE(Xe,$t,bn){let Fn=0;if(ge()===162)return Z_(Xe,$t,bn);if(pl(145))Fn|=32;else if(xa(144),ge()===11)return Z_(Xe,$t,bn);return Pf(Xe,$t,bn,Fn)}function a2(){return ge()===149&&ma(ru)}function ru(){return Nn()===21}function Fk(){return Nn()===19}function Co(){return Nn()===44}function DE(Xe,$t,bn){xa(130),xa(145);const Fn=Nm();d_();const Ri=k.createNamespaceExportDeclaration(Fn);return Ri.modifiers=bn,Ia(Qi(Ri,Xe),$t)}function MI(Xe,$t,bn){xa(102);const Fn=n.getTokenFullStart();let Ri;u_()&&(Ri=Nm());let Ti=!1;if(ge()!==161&&(Ri==null?void 0:Ri.escapedText)==="type"&&(u_()||qF())&&(Ti=!0,Ri=u_()?Nm():void 0),Ri&&!LI())return $P(Xe,$t,bn,Ri,Ti);let Xc;(Ri||ge()===42||ge()===19)&&(Xc=XR(Ri,Fn,Ti),xa(161));const Fu=KF(),cu=ge();let Ml;(cu===118||cu===132)&&!n.hasPrecedingLineBreak()&&(Ml=gO(cu)),d_();const Zu=k.createImportDeclaration(bn,Xc,Fu,Ml);return Ia(Qi(Zu,Xe),$t)}function mO(){const Xe=qe(),$t=CT(ge())?Md():Fg(11);xa(59);const bn=fm(!0);return Qi(k.createImportAttribute($t,bn),Xe)}function gO(Xe,$t){const bn=qe();$t||xa(Xe);const Fn=n.getTokenStart();if(xa(19)){const Ri=n.hasPrecedingLineBreak(),Ti=xv(24,mO,!0);if(!xa(20)){const Xc=Yf(En);Xc&&Xc.code===N._0_expected.code&&ml(Xc,s6(cn,Kt,Fn,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Qi(k.createImportAttributes(Ti,Ri,Xe),bn)}else{const Ri=Ka([],qe(),void 0,!1);return Qi(k.createImportAttributes(Ri,!1,Xe),bn)}}function qF(){return ge()===42||ge()===19}function LI(){return ge()===28||ge()===161}function $P(Xe,$t,bn,Fn,Ri){xa(64);const Ti=mw();d_();const Xc=k.createImportEqualsDeclaration(bn,Ri,Fn,Ti);return Ia(Qi(Xc,Xe),$t)}function XR(Xe,$t,bn){let Fn;return(!Xe||pl(28))&&(Fn=ge()===42?O1():W4(275)),Qi(k.createImportClause(bn,Xe,Fn),$t)}function mw(){return a2()?Yq():nt(!1)}function Yq(){const Xe=qe();xa(149),xa(21);const $t=KF();return xa(22),Qi(k.createExternalModuleReference($t),Xe)}function KF(){if(ge()===11){const Xe=wi();return Xe.text=Ag(Xe.text),Xe}else return v_()}function O1(){const Xe=qe();xa(42),xa(130);const $t=Nm();return Qi(k.createNamespaceImport($t),Xe)}function W4(Xe){const $t=qe(),bn=Xe===275?k.createNamedImports(i0(23,gw,19,20)):k.createNamedExports(i0(23,Wk,19,20));return Qi(bn,$t)}function Wk(){const Xe=Mt();return Ia(Qq(281),Xe)}function gw(){return Qq(276)}function Qq(Xe){const $t=qe();let bn=qb(ge())&&!u_(),Fn=n.getTokenStart(),Ri=n.getTokenEnd(),Ti=!1,Xc,Fu=!0,cu=Md();if(cu.escapedText==="type")if(ge()===130){const hg=Md();if(ge()===130){const T_=Md();CT(ge())?(Ti=!0,Xc=hg,cu=Zu(),Fu=!1):(Xc=cu,cu=T_,Fu=!1)}else CT(ge())?(Xc=cu,Fu=!1,cu=Zu()):(Ti=!0,cu=hg)}else CT(ge())&&(Ti=!0,cu=Zu());Fu&&ge()===130&&(Xc=cu,xa(130),cu=Zu()),Xe===276&&bn&&ze(Fn,Ri,N.Identifier_expected);const Ml=Xe===276?k.createImportSpecifier(Ti,Xc,cu):k.createExportSpecifier(Ti,Xc,cu);return Qi(Ml,$t);function Zu(){return bn=qb(ge())&&!u_(),Fn=n.getTokenStart(),Ri=n.getTokenEnd(),Md()}}function OI(Xe){return Qi(k.createNamespaceExport(Md()),Xe)}function HT(Xe,$t,bn){const Fn=go();yf(!0);let Ri,Ti,Xc;const Fu=pl(156),cu=qe();pl(42)?(pl(130)&&(Ri=OI(cu)),xa(161),Ti=KF()):(Ri=W4(279),(ge()===161||ge()===11&&!n.hasPrecedingLineBreak())&&(xa(161),Ti=KF()));const Ml=ge();Ti&&(Ml===118||Ml===132)&&!n.hasPrecedingLineBreak()&&(Xc=gO(Ml)),d_(),yf(Fn);const Zu=k.createExportDeclaration(bn,Fu,Ri,Ti,Xc);return Ia(Qi(Zu,Xe),$t)}function F0e(Xe,$t,bn){const Fn=go();yf(!0);let Ri;pl(64)?Ri=!0:xa(90);const Ti=fm(!0);d_(),yf(Fn);const Xc=k.createExportAssignment(bn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}let Bk;(Xe=>{Xe[Xe.SourceElements=0]="SourceElements",Xe[Xe.BlockStatements=1]="BlockStatements",Xe[Xe.SwitchClauses=2]="SwitchClauses",Xe[Xe.SwitchClauseStatements=3]="SwitchClauseStatements",Xe[Xe.TypeMembers=4]="TypeMembers",Xe[Xe.ClassMembers=5]="ClassMembers",Xe[Xe.EnumMembers=6]="EnumMembers",Xe[Xe.HeritageClauseElement=7]="HeritageClauseElement",Xe[Xe.VariableDeclarations=8]="VariableDeclarations",Xe[Xe.ObjectBindingElements=9]="ObjectBindingElements",Xe[Xe.ArrayBindingElements=10]="ArrayBindingElements",Xe[Xe.ArgumentExpressions=11]="ArgumentExpressions",Xe[Xe.ObjectLiteralMembers=12]="ObjectLiteralMembers",Xe[Xe.JsxAttributes=13]="JsxAttributes",Xe[Xe.JsxChildren=14]="JsxChildren",Xe[Xe.ArrayLiteralMembers=15]="ArrayLiteralMembers",Xe[Xe.Parameters=16]="Parameters",Xe[Xe.JSDocParameters=17]="JSDocParameters",Xe[Xe.RestProperties=18]="RestProperties",Xe[Xe.TypeParameters=19]="TypeParameters",Xe[Xe.TypeArguments=20]="TypeArguments",Xe[Xe.TupleElementTypes=21]="TupleElementTypes",Xe[Xe.HeritageClauses=22]="HeritageClauses",Xe[Xe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Xe[Xe.ImportAttributes=24]="ImportAttributes",Xe[Xe.JSDocComment=25]="JSDocComment",Xe[Xe.Count=26]="Count"})(Bk||(Bk={}));let XF;(Xe=>{Xe[Xe.False=0]="False",Xe[Xe.True=1]="True",Xe[Xe.Unknown=2]="Unknown"})(XF||(XF={}));let ute;(Xe=>{function $t(Ml,Zu,hg){Jc("file.js",Ml,99,void 0,1,0),n.setText(Ml,Zu,hg),Vr=n.scan();const T_=bn(),Cd=_a("file.js",99,1,!1,[],ve(1),0,ku),pb=jN(En,Cd);return fr&&(Cd.jsDocDiagnostics=jN(fr,Cd)),au(),T_?{jsDocTypeExpression:T_,diagnostics:pb}:void 0}Xe.parseJSDocTypeExpressionForTests=$t;function bn(Ml){const Zu=qe(),hg=(Ml?pl:xa)(19),T_=Eu(16777216,Uv);(!Ml||hg)&&Wy(20);const Cd=k.createJSDocTypeExpression(T_);return na(Cd),Qi(Cd,Zu)}Xe.parseJSDocTypeExpression=bn;function Fn(){const Ml=qe(),Zu=pl(19),hg=qe();let T_=nt(!1);for(;ge()===81;)Pc(),Lr(),T_=Qi(k.createJSDocMemberName(T_,Nm()),hg);Zu&&Wy(20);const Cd=k.createJSDocNameReference(T_);return na(Cd),Qi(Cd,Ml)}Xe.parseJSDocNameReference=Fn;function Ri(Ml,Zu,hg){Jc("",Ml,99,void 0,1,0);const T_=Eu(16777216,()=>cu(Zu,hg)),pb=jN(En,{languageVariant:0,text:Ml});return au(),T_?{jsDoc:T_,diagnostics:pb}:void 0}Xe.parseIsolatedJSDocComment=Ri;function Ti(Ml,Zu,hg){const T_=Vr,Cd=En.length,pb=$i,zA=Eu(16777216,()=>cu(Zu,hg));return kl(zA,Ml),os&524288&&(fr||(fr=[]),fr.push(...En)),Vr=T_,En.length=Cd,$i=pb,zA}Xe.parseJSDocComment=Ti;let Xc;(Ml=>{Ml[Ml.BeginningOfLine=0]="BeginningOfLine",Ml[Ml.SawAsterisk=1]="SawAsterisk",Ml[Ml.SavingComments=2]="SavingComments",Ml[Ml.SavingBackticks=3]="SavingBackticks"})(Xc||(Xc={}));let Fu;(Ml=>{Ml[Ml.Property=1]="Property",Ml[Ml.Parameter=2]="Parameter",Ml[Ml.CallbackParameter=4]="CallbackParameter"})(Fu||(Fu={}));function cu(Ml=0,Zu){const hg=Kt,T_=Zu===void 0?hg.length:Ml+Zu;if(Zu=T_-Ml,re.assert(Ml>=0),re.assert(Ml<=T_),re.assert(T_<=hg.length),!$Ee(hg,Ml))return;let Cd,pb,zA,qP,yx,mb=[];const KP=[],TV=io;io|=1<<25;const B4=n.scanRange(Ml+3,Zu-5,Zq);return io=TV,B4;function Zq(){let Fo=1,cl,Mc=Ml-(hg.lastIndexOf(` -`,Ml)+1)+4;function Du(kg){cl||(cl=Mc),mb.push(kg),Mc+=kg.length}for(Lr();yO(5););yO(4)&&(Fo=0,Mc=0);e:for(;;){switch(ge()){case 60:EC(mb),yx||(yx=qe()),F2(z4(Mc)),Fo=0,cl=void 0;break;case 4:mb.push(n.getTokenText()),Fo=0,Mc=0;break;case 42:const kg=n.getTokenText();Fo===1?(Fo=2,Du(kg)):(re.assert(Fo===0),Fo=1,Mc+=kg.length);break;case 5:re.assert(Fo!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const cv=n.getTokenText();cl!==void 0&&Mc+cv.length>cl&&mb.push(cv.slice(cl-Mc)),Mc+=cv.length;break;case 1:break e;case 82:Fo=2,Du(n.getTokenValue());break;case 19:Fo=2;const VA=n.getTokenFullStart(),vD=n.getTokenEnd()-1,l0=Up(vD);if(l0){qP||YF(mb),KP.push(Qi(k.createJSDocText(mb.join("")),qP??Ml,VA)),KP.push(l0),mb=[],qP=n.getTokenEnd();break}default:Fo=2,Du(n.getTokenText());break}Fo===2?qi(!1):Lr()}const Ru=mb.join("").trimEnd();KP.length&&Ru.length&&KP.push(Qi(k.createJSDocText(Ru),qP??Ml,yx)),KP.length&&Cd&&re.assertIsDefined(yx,"having parsed tags implies that the end of the comment span should be set");const _m=Cd&&Ka(Cd,pb,zA);return Qi(k.createJSDocComment(KP.length?Ka(KP,Ml,yx):Ru.length?Ru:void 0,_m),Ml,T_)}function YF(Fo){for(;Fo.length&&(Fo[0]===` -`||Fo[0]==="\r");)Fo.shift()}function EC(Fo){for(;Fo.length;){const cl=Fo[Fo.length-1].trimEnd();if(cl==="")Fo.pop();else if(cl.lengthcv&&(Du.push(yw.slice(cv-Fo)),kg=2),Fo+=yw.length;break;case 19:kg=2;const nK=n.getTokenFullStart(),xV=n.getTokenEnd()-1,ZF=Up(xV);ZF?(Ru.push(Qi(k.createJSDocText(Du.join("")),_m??Mc,nK)),Ru.push(ZF),Du=[],_m=n.getTokenEnd()):VA(n.getTokenText());break;case 62:kg===3?kg=2:kg=3,VA(n.getTokenText());break;case 82:kg!==3&&(kg=2),VA(n.getTokenValue());break;case 42:if(kg===0){kg=1,Fo+=1;break}default:kg!==3&&(kg=2),VA(n.getTokenText());break}kg===2||kg===3?vD=qi(kg===3):vD=Lr()}YF(Du);const l0=Du.join("").trimEnd();if(Ru.length)return l0.length&&Ru.push(Qi(k.createJSDocText(l0),_m??Mc)),Ka(Ru,Mc,n.getTokenEnd());if(l0.length)return l0}function Up(Fo){const cl=Bl(vh);if(!cl)return;Lr(),Cv();const Mc=qe();let Du=CT(ge())?nt(!0):void 0;if(Du)for(;ge()===81;)Pc(),Lr(),Du=Qi(k.createJSDocMemberName(Du,Nm()),Mc);const Ru=[];for(;ge()!==20&&ge()!==4&&ge()!==1;)Ru.push(n.getTokenText()),Lr();const _m=cl==="link"?k.createJSDocLink:cl==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Qi(_m(Du,Ru.join("")),Fo,n.getTokenEnd())}function vh(){if(YR(),ge()===19&&Lr()===60&&CT(Lr())){const Fo=n.getTokenValue();if(J6(Fo))return Fo}}function J6(Fo){return Fo==="link"||Fo==="linkcode"||Fo==="linkplain"}function xC(Fo,cl,Mc,Du){return Qi(k.createJSDocUnknownTag(cl,GA(Fo,qe(),Mc,Du)),Fo)}function F2(Fo){Fo&&(Cd?Cd.push(Fo):(Cd=[Fo],pb=Fo.pos),zA=Fo.end)}function XP(){return YR(),ge()===19?bn():void 0}function xB(){const Fo=yO(23);Fo&&Cv();const cl=yO(62),Mc=EV();return cl&&M_(62),Fo&&(Cv(),R_(64)&&v_(),xa(24)),{name:Mc,isBracketed:Fo}}function j(Fo){switch(Fo.kind){case 151:return!0;case 188:return j(Fo.elementType);default:return uE(Fo)&&xn(Fo.typeName)&&Fo.typeName.escapedText==="Object"&&!Fo.typeArguments}}function se(Fo,cl,Mc,Du){let Ru=XP(),_m=!Ru;YR();const{name:kg,isBracketed:cv}=xB(),VA=YR();_m&&!ma(vh)&&(Ru=XP());const vD=GA(Fo,qe(),Du,VA),l0=De(Ru,kg,Mc,Du);l0&&(Ru=l0,_m=!0);const yw=Mc===1?k.createJSDocPropertyTag(cl,kg,cv,Ru,_m,vD):k.createJSDocParameterTag(cl,kg,cv,Ru,_m,vD);return Qi(yw,Fo)}function De(Fo,cl,Mc,Du){if(Fo&&j(Fo.type)){const Ru=qe();let _m,kg;for(;_m=Bl(()=>La(Mc,Du,cl));)_m.kind===348||_m.kind===355?kg=ur(kg,_m):_m.kind===352&&Ce(_m.tagName,N.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(kg){const cv=Qi(k.createJSDocTypeLiteral(kg,Fo.type.kind===188),Ru);return Qi(k.createJSDocTypeExpression(cv),Ru)}}}function Tt(Fo,cl,Mc,Du){gt(Cd,ppe)&&ze(cl.pos,n.getTokenStart(),N._0_tag_already_specified,Ic(cl.escapedText));const Ru=XP();return Qi(k.createJSDocReturnTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function wn(Fo,cl,Mc,Du){gt(Cd,WG)&&ze(cl.pos,n.getTokenStart(),N._0_tag_already_specified,Ic(cl.escapedText));const Ru=bn(!0),_m=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocTypeTag(cl,Ru,_m),Fo)}function Vi(Fo,cl,Mc,Du){const _m=ge()===23||ma(()=>Lr()===60&&CT(Lr())&&J6(n.getTokenValue()))?void 0:Fn(),kg=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocSeeTag(cl,_m,kg),Fo)}function Us(Fo,cl,Mc,Du){const Ru=XP(),_m=GA(Fo,qe(),Mc,Du);return Qi(k.createJSDocThrowsTag(cl,Ru,_m),Fo)}function Hf(Fo,cl,Mc,Du){const Ru=qe(),_m=ng();let kg=n.getTokenFullStart();const cv=GA(Fo,kg,Mc,Du);cv||(kg=n.getTokenFullStart());const VA=typeof cv!="string"?Ka(Hi([Qi(_m,Ru,kg)],cv),Ru):_m.text+cv;return Qi(k.createJSDocAuthorTag(cl,VA),Fo)}function ng(){const Fo=[];let cl=!1,Mc=n.getToken();for(;Mc!==1&&Mc!==4;){if(Mc===30)cl=!0;else{if(Mc===60&&!cl)break;if(Mc===32&&cl){Fo.push(n.getTokenText()),n.resetTokenState(n.getTokenEnd());break}}Fo.push(n.getTokenText()),Mc=Lr()}return k.createJSDocText(Fo.join(""))}function VS(Fo,cl,Mc,Du){const Ru=hO();return Qi(k.createJSDocImplementsTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function G4(Fo,cl,Mc,Du){const Ru=hO();return Qi(k.createJSDocAugmentsTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function j4(Fo,cl,Mc,Du){const Ru=bn(!1),_m=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocSatisfiesTag(cl,Ru,_m),Fo)}function hO(){const Fo=pl(19),cl=qe(),Mc=lPe();n.setInJSDocType(!0);const Du=F4();n.setInJSDocType(!1);const Ru=k.createExpressionWithTypeArguments(Mc,Du),_m=Qi(Ru,cl);return Fo&&xa(20),_m}function lPe(){const Fo=qe();let cl=Tm();for(;pl(25);){const Mc=Tm();cl=Qi(et(cl,Mc),Fo)}return cl}function WI(Fo,cl,Mc,Du,Ru){return Qi(cl(Mc,GA(Fo,qe(),Du,Ru)),Fo)}function tK(Fo,cl,Mc,Du){const Ru=bn(!0);return Cv(),Qi(k.createJSDocThisTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function W0e(Fo,cl,Mc,Du){const Ru=bn(!0);return Cv(),Qi(k.createJSDocEnumTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function yD(Fo,cl,Mc,Du){let Ru=XP();YR();const _m=Due();Cv();let kg=eK(Mc),cv;if(!Ru||j(Ru.type)){let vD,l0,yw,nK=!1;for(;(vD=Bl(()=>QF(Mc)))&&vD.kind!==352;)if(nK=!0,vD.kind===351)if(l0){const xV=Ao(N.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);xV&&ml(xV,s6(cn,Kt,0,0,N.The_tag_was_first_specified_here));break}else l0=vD;else yw=ur(yw,vD);if(nK){const xV=Ru&&Ru.type.kind===188,ZF=k.createJSDocTypeLiteral(yw,xV);Ru=l0&&l0.typeExpression&&!j(l0.typeExpression.type)?l0.typeExpression:Qi(ZF,Fo),cv=Ru.end}}cv=cv||kg!==void 0?qe():(_m??Ru??cl).end,kg||(kg=GA(Fo,cv,Mc,Du));const VA=k.createJSDocTypedefTag(cl,Ru,_m,kg);return Qi(VA,Fo,cv)}function Due(Fo){const cl=n.getTokenStart();if(!CT(ge()))return;const Mc=Tm();if(pl(25)){const Du=Due(!0),Ru=k.createModuleDeclaration(void 0,Mc,Du,Fo?8:void 0);return Qi(Ru,cl)}return Fo&&(Mc.flags|=4096),Mc}function B0e(Fo){const cl=qe();let Mc,Du;for(;Mc=Bl(()=>La(4,Fo));){if(Mc.kind===352){Ce(Mc.tagName,N.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Du=ur(Du,Mc)}return Ka(Du||[],cl)}function fte(Fo,cl){const Mc=B0e(cl),Du=Bl(()=>{if(yO(60)){const Ru=z4(cl);if(Ru&&Ru.kind===349)return Ru}});return Qi(k.createJSDocSignature(void 0,Mc,Du),Fo)}function AB(Fo,cl,Mc,Du){const Ru=Due();Cv();let _m=eK(Mc);const kg=fte(Fo,Mc);_m||(_m=GA(Fo,qe(),Mc,Du));const cv=_m!==void 0?qe():kg.end;return Qi(k.createJSDocCallbackTag(cl,kg,Ru,_m),Fo,cv)}function z0e(Fo,cl,Mc,Du){Cv();let Ru=eK(Mc);const _m=fte(Fo,Mc);Ru||(Ru=GA(Fo,qe(),Mc,Du));const kg=Ru!==void 0?qe():_m.end;return Qi(k.createJSDocOverloadTag(cl,_m,Ru),Fo,kg)}function SV(Fo,cl){for(;!xn(Fo)||!xn(cl);)if(!xn(Fo)&&!xn(cl)&&Fo.right.escapedText===cl.right.escapedText)Fo=Fo.left,cl=cl.left;else return!1;return Fo.escapedText===cl.escapedText}function QF(Fo){return La(1,Fo)}function La(Fo,cl,Mc){let Du=!0,Ru=!1;for(;;)switch(Lr()){case 60:if(Du){const _m=AC(Fo,cl);return _m&&(_m.kind===348||_m.kind===355)&&Mc&&(xn(_m.name)||!SV(Mc,_m.name.left))?!1:_m}Ru=!1;break;case 4:Du=!0,Ru=!1;break;case 42:Ru&&(Du=!1),Ru=!0;break;case 80:Du=!1;break;case 1:return!1}}function AC(Fo,cl){re.assert(ge()===60);const Mc=n.getTokenFullStart();Lr();const Du=Tm(),Ru=YR();let _m;switch(Du.escapedText){case"type":return Fo===1&&wn(Mc,Du);case"prop":case"property":_m=1;break;case"arg":case"argument":case"param":_m=6;break;case"template":return jA(Mc,Du,cl,Ru);default:return!1}return Fo&_m?se(Mc,Du,Fo,cl):!1}function hw(){const Fo=qe(),cl=yO(23);cl&&Cv();const Mc=Tm(N.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Du;if(cl&&(Cv(),xa(64),Du=Eu(16777216,Uv),xa(24)),!ny(Mc))return Qi(k.createTypeParameterDeclaration(void 0,Mc,void 0,Du),Fo)}function QR(){const Fo=qe(),cl=[];do{Cv();const Mc=hw();Mc!==void 0&&cl.push(Mc),YR()}while(yO(28));return Ka(cl,Fo)}function jA(Fo,cl,Mc,Du){const Ru=ge()===19?bn():void 0,_m=QR();return Qi(k.createJSDocTemplateTag(cl,Ru,_m,GA(Fo,qe(),Mc,Du)),Fo)}function yO(Fo){return ge()===Fo?(Lr(),!0):!1}function EV(){let Fo=Tm();for(pl(23)&&xa(24);pl(25);){const cl=Tm();pl(23)&&xa(24),Fo=pr(Fo,cl)}return Fo}function Tm(Fo){if(!CT(ge()))return Pm(80,!Fo,Fo||N.Identifier_expected);Ki++;const cl=n.getTokenStart(),Mc=n.getTokenEnd(),Du=ge(),Ru=Ag(n.getTokenValue()),_m=Qi(ie(Ru,Du),cl,Mc);return Lr(),_m}}})(ute=e.JSDocParser||(e.JSDocParser={}))})(P3||(P3={})),(e=>{function n(J,X,ie,ae){if(ae=ae||re.shouldAssert(2),k(J,X,ie,ae),NTe(ie))return J;if(J.statements.length===0)return P3.parseSourceFile(J.fileName,X,J.languageVersion,void 0,!0,J.scriptKind,J.setExternalModuleIndicator,J.jsDocParsingMode);const ve=J;re.assert(!ve.hasBeenIncrementallyParsed),ve.hasBeenIncrementallyParsed=!0,P3.fixupParentReferences(ve);const we=J.text,Fe=F(J),et=E(J,ie);k(J,X,et,ae),re.assert(et.span.start<=ie.span.start),re.assert(Xy(et.span)===Xy(ie.span)),re.assert(Xy(o9(et))===Xy(o9(ie)));const Pe=o9(et).length-et.span.length;S(ve,et.span.start,Xy(et.span),Xy(o9(et)),Pe,we,X,ae);const dt=P3.parseSourceFile(J.fileName,X,J.languageVersion,Fe,!0,J.scriptKind,J.setExternalModuleIndicator,J.jsDocParsingMode);return dt.commentDirectives=i(J.commentDirectives,dt.commentDirectives,et.span.start,Xy(et.span),Pe,we,X,ae),dt.impliedNodeFormat=J.impliedNodeFormat,dt}e.updateSourceFile=n;function i(J,X,ie,ae,ve,we,Fe,et){if(!J)return X;let Pe,dt=!1;for(const ct of J){const{range:Ct,type:Lt}=ct;if(Ct.endae){Ie();const Ze={range:{pos:Ct.pos+ve,end:Ct.end+ve},type:Lt};Pe=ur(Pe,Ze),et&&re.assert(we.substring(Ct.pos,Ct.end)===Fe.substring(Ze.range.pos,Ze.range.end))}}return Ie(),Pe;function Ie(){dt||(dt=!0,Pe?X&&Pe.push(...X):Pe=X)}}function c(J,X,ie,ae,ve,we){X?et(J):Fe(J);return;function Fe(Pe){let dt="";if(we&&u(Pe)&&(dt=ae.substring(Pe.pos,Pe.end)),Pe._children&&(Pe._children=void 0),T1(Pe,Pe.pos+ie,Pe.end+ie),we&&u(Pe)&&re.assert(dt===ve.substring(Pe.pos,Pe.end)),s_(Pe,Fe,et),NT(Pe))for(const Ie of Pe.jsDoc)Fe(Ie);h(Pe,we)}function et(Pe){Pe._children=void 0,T1(Pe,Pe.pos+ie,Pe.end+ie);for(const dt of Pe)Fe(dt)}}function u(J){switch(J.kind){case 11:case 9:case 80:return!0}return!1}function d(J,X,ie,ae,ve){re.assert(J.end>=X,"Adjusting an element that was entirely before the change range"),re.assert(J.pos<=ie,"Adjusting an element that was entirely after the change range"),re.assert(J.pos<=J.end);const we=Math.min(J.pos,ae),Fe=J.end>=ie?J.end+ve:Math.min(J.end,ae);re.assert(we<=Fe),J.parent&&(re.assertGreaterThanOrEqual(we,J.parent.pos),re.assertLessThanOrEqual(Fe,J.parent.end)),T1(J,we,Fe)}function h(J,X){if(X){let ie=J.pos;const ae=ve=>{re.assert(ve.pos>=ie),ie=ve.end};if(NT(J))for(const ve of J.jsDoc)ae(ve);s_(J,ae),re.assert(ie<=J.end)}}function S(J,X,ie,ae,ve,we,Fe,et){Pe(J);return;function Pe(Ie){if(re.assert(Ie.pos<=Ie.end),Ie.pos>ie){c(Ie,!1,ve,we,Fe,et);return}const ct=Ie.end;if(ct>=X){if(Ie.intersectsChange=!0,Ie._children=void 0,d(Ie,X,ie,ae,ve),s_(Ie,Pe,dt),NT(Ie))for(const Ct of Ie.jsDoc)Pe(Ct);h(Ie,et);return}re.assert(ctie){c(Ie,!0,ve,we,Fe,et);return}const ct=Ie.end;if(ct>=X){Ie.intersectsChange=!0,Ie._children=void 0,d(Ie,X,ie,ae,ve);for(const Ct of Ie)Pe(Ct);return}re.assert(ct0&&Fe<=1;Fe++){const et=P(J,ae);re.assert(et.pos<=ae);const Pe=et.pos;ae=Math.max(0,Pe-1)}const ve=Yy(ae,Xy(X.span)),we=X.newLength+(X.span.start-ae);return WX(ve,we)}function P(J,X){let ie=J,ae;if(s_(J,we),ae){const Fe=ve(ae);Fe.pos>ie.pos&&(ie=Fe)}return ie;function ve(Fe){for(;;){const et=Kie(Fe);if(et)Fe=et;else return Fe}}function we(Fe){if(!ny(Fe))if(Fe.pos<=X){if(Fe.pos>=ie.pos&&(ie=Fe),XX),!0}}function k(J,X,ie,ae){const ve=J.text;if(ie&&(re.assert(ve.length-ie.span.length+ie.newLength===X.length),ae||re.shouldAssert(3))){const we=ve.substr(0,ie.span.start),Fe=X.substr(0,ie.span.start);re.assert(we===Fe);const et=ve.substring(Xy(ie.span),ve.length),Pe=X.substring(Xy(o9(ie)),X.length);re.assert(et===Pe)}}function F(J){let X=J.statements,ie=0;re.assert(ie=dt.pos&&Fe=dt.pos&&Fe{J[J.Value=-1]="Value"})($||($={}))})(nQ||(nQ={})),DW=new Map,Q6e=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Z6e=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function Joe(e){const n=new Map,i=new Map;return Ot(e,c=>{n.set(c.name.toLowerCase(),c),c.shortName&&i.set(c.shortName,c.name)}),{optionsNameMap:n,shortOptionNames:i}}function JG(){return mLe||(mLe=Joe(hI))}function Ipe(e){return e2e(e,W_)}function e2e(e,n){const i=oc(e.type.keys()),c=(e.deprecatedKeys?i.filter(u=>!e.deprecatedKeys.has(u)):i).map(u=>`'${u}'`).join(", ");return n(N.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,c)}function $oe(e,n,i){return Fpe(e,(n??"").trim(),i)}function eLe(e,n="",i){if(n=n.trim(),qf(n,"-"))return;if(e.type==="listOrElement"&&!n.includes(","))return IW(e,n,i);if(n==="")return[];const c=n.split(",");switch(e.element.type){case"number":return Qo(c,u=>IW(e.element,parseInt(u),i));case"string":return Qo(c,u=>IW(e.element,u||"",i));case"boolean":case"object":return re.fail(`List of ${e.element.type} is not yet supported.`);default:return Qo(c,u=>$oe(e.element,u,i))}}function t2e(e){return e.name}function kpe(e,n,i,c,u){var d;if((d=n.alternateMode)!=null&&d.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return a4(u,c,n.alternateMode.diagnostic,e);const h=fh(e,n.optionDeclarations,t2e);return h?a4(u,c,n.unknownDidYouMeanDiagnostic,i||e,h.name):a4(u,c,n.unknownOptionDiagnostic,i||e)}function Ppe(e,n,i){const c={};let u;const d=[],h=[];return S(n),{options:c,watchOptions:u,fileNames:d,errors:h};function S(P){let k=0;for(;kw0.readFile(J)));if(!As(k)){h.push(k);return}const F=[];let $=0;for(;;){for(;$=k.length)break;const J=$;if(k.charCodeAt(J)===34){for($++;$32;)$++;F.push(k.substring(J,$))}}S(F)}}function PUe(e,n,i,c,u,d){if(c.isTSConfigOnly){const h=e[n];h==="null"?(u[c.name]=void 0,n++):c.type==="boolean"?h==="false"?(u[c.name]=IW(c,!1,d),n++):(h==="true"&&n++,d.push(W_(N.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,c.name))):(d.push(W_(N.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,c.name)),h&&!qf(h,"-")&&n++)}else if(!e[n]&&c.type!=="boolean"&&d.push(W_(i.optionTypeMismatchDiagnostic,c.name,o2e(c))),e[n]!=="null")switch(c.type){case"number":u[c.name]=IW(c,parseInt(e[n]),d),n++;break;case"boolean":const h=e[n];u[c.name]=IW(c,h!=="false",d),(h==="false"||h==="true")&&n++;break;case"string":u[c.name]=IW(c,e[n]||"",d),n++;break;case"list":const S=eLe(c,e[n],d);u[c.name]=S||[],S&&n++;break;case"listOrElement":re.fail("listOrElement not supported here");break;default:u[c.name]=$oe(c,e[n],d),n++;break}else u[c.name]=void 0,n++;return n}function NUe(e,n){return Ppe(dQ,e,n)}function QJ(e,n){return rQ(JG,e,n)}function rQ(e,n,i=!1){n=n.toLowerCase();const{optionsNameMap:c,shortOptionNames:u}=e();if(i){const d=u.get(n);d!==void 0&&(n=d)}return c.get(n)}function n2e(){return oae||(oae=Joe(YG))}function tLe(e){const{options:n,watchOptions:i,fileNames:c,errors:u}=Ppe(yLe,e),d=n;return c.length===0&&c.push("."),d.clean&&d.force&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","force")),d.clean&&d.verbose&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","verbose")),d.clean&&d.watch&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","watch")),d.watch&&d.dry&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:d,watchOptions:i,projects:c,errors:u}}function qoe(e,...n){return uc(W_(e,...n).messageText,As)}function $G(e,n,i,c,u,d){const h=ZJ(e,P=>i.readFile(P));if(!As(h)){i.onUnRecoverableConfigFileDiagnostic(h);return}const S=iT(e,h),E=i.getCurrentDirectory();return S.path=gm(e,E,H1(i.useCaseSensitiveFileNames)),S.resolvedPath=S.path,S.originalFileName=S.fileName,Zoe(S,i,vf(ws(e),E),n,vf(e,E),void 0,d,c,u)}function iQ(e,n){const i=ZJ(e,n);return As(i)?Npe(e,i):{config:{},error:i}}function Npe(e,n){const i=iT(e,n);return{config:RUe(i,i.parseDiagnostics,void 0),error:i.parseDiagnostics.length?i.parseDiagnostics[0]:void 0}}function r2e(e,n){const i=ZJ(e,n);return As(i)?iT(e,i):{fileName:e,parseDiagnostics:[i]}}function ZJ(e,n){let i;try{i=n(e)}catch(c){return W_(N.Cannot_read_file_0_Colon_1,e,c.message)}return i===void 0?W_(N.Cannot_read_file_0,e):i}function i2e(e){return QT(e,t2e)}function nLe(){return pQ||(pQ=Joe(fC))}function rLe(){return p2e||(p2e=i2e(hI))}function Koe(){return m2e||(m2e=i2e(fC))}function wpe(){return g2e||(g2e=i2e(fQ))}function wUe(){return Vf===void 0&&(Vf={name:void 0,type:"object",elementOptions:i2e([h2e,y2e,vLe,QG,{name:"references",type:"list",element:{name:"references",type:"object"},category:N.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:N.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:N.File_Management,defaultValueDescription:N.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:N.File_Management,defaultValueDescription:N.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},XG])}),Vf}function RUe(e,n,i){var c;const u=(c=e.statements[0])==null?void 0:c.expression;if(u&&u.kind!==210){if(n.push(Ud(e,u,N.The_root_value_of_a_0_file_must_be_an_object,Jg(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ed(u)){const d=lr(u.elements,el);if(d)return Xoe(e,d,n,!0,i)}return{}}return Xoe(e,u,n,!0,i)}function Rpe(e,n){var i;return Xoe(e,(i=e.statements[0])==null?void 0:i.expression,n,!0,void 0)}function Xoe(e,n,i,c,u){if(!n)return c?{}:void 0;return S(n,u==null?void 0:u.rootOptions);function d(P,k){var F;const $=c?{}:void 0;for(const J of P.properties){if(J.kind!==303){i.push(Ud(e,J,N.Property_assignment_expected));continue}J.questionToken&&i.push(Ud(e,J.questionToken,N.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),E(J.name)||i.push(Ud(e,J.name,N.String_literal_with_double_quotes_expected));const X=Yz(J.name)?void 0:z8(J.name),ie=X&&Ic(X),ae=ie?(F=k==null?void 0:k.elementOptions)==null?void 0:F.get(ie):void 0,ve=S(J.initializer,ae);typeof ie<"u"&&(c&&($[ie]=ve),u==null||u.onPropertySet(ie,ve,J,k,ae))}return $}function h(P,k){if(!c){P.forEach(F=>S(F,k));return}return gi(P.map(F=>S(F,k)),F=>F!==void 0)}function S(P,k){switch(P.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return E(P)||i.push(Ud(e,P,N.String_literal_with_double_quotes_expected)),P.text;case 9:return Number(P.text);case 224:if(P.operator!==41||P.operand.kind!==9)break;return-Number(P.operand.text);case 210:return d(P,k);case 209:return h(P.elements,k&&k.element)}k?i.push(Ud(e,P,N.Compiler_option_0_requires_a_value_of_type_1,k.name,o2e(k))):i.push(Ud(e,P,N.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function E(P){return Sd(P)&&aH(P,e)}}function o2e(e){return e.type==="listOrElement"?`${o2e(e.element)} or Array`:e.type==="list"?"Array":As(e.type)?e.type:"string"}function iLe(e,n){if(e){if(oQ(n))return!e.disallowNullOrUndefined;if(e.type==="list")return ls(n);if(e.type==="listOrElement")return ls(n)||iLe(e.element,n);const i=As(e.type)?e.type:"string";return typeof n===i}return!1}function a2e(e,n,i){var c,u,d;const h=H1(i.useCaseSensitiveFileNames),S=Vn(gi(e.fileNames,(u=(c=e.options.configFile)==null?void 0:c.configFileSpecs)!=null&&u.validatedIncludeSpecs?MUe(n,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,i):xT),F=>wM(vf(n,i.getCurrentDirectory()),vf(F,i.getCurrentDirectory()),h)),E=s2e(e.options,{configFilePath:vf(n,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),P=e.watchOptions&&oLe(e.watchOptions);return{compilerOptions:{...Yoe(E),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:P&&Yoe(P),references:Vn(e.projectReferences,F=>({...F,path:F.originalPath?F.originalPath:"",originalPath:void 0})),files:Nt(S)?S:void 0,...(d=e.options.configFile)!=null&&d.configFileSpecs?{include:Dst(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function Yoe(e){return{...oc(e.entries()).reduce((n,i)=>({...n,[i[0]]:i[1]}),{})}}function Dst(e){if(Nt(e)){if(Nt(e)!==1)return e;if(e[0]!==Dk)return e}}function MUe(e,n,i,c){if(!n)return xT;const u=Y9(e,i,n,c.useCaseSensitiveFileNames,c.getCurrentDirectory()),d=u.excludePattern&&Y2(u.excludePattern,c.useCaseSensitiveFileNames),h=u.includeFilePattern&&Y2(u.includeFilePattern,c.useCaseSensitiveFileNames);return h?d?S=>!(h.test(S)&&!d.test(S)):S=>!h.test(S):d?S=>d.test(S):xT}function LUe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return LUe(e.element);default:return e.type}}function Mpe(e,n){return Jb(n,(i,c)=>{if(i===e)return c})}function s2e(e,n){return OUe(e,JG(),n)}function oLe(e){return OUe(e,nLe())}function OUe(e,{optionsNameMap:n},i){const c=new Map,u=i&&H1(i.useCaseSensitiveFileNames);for(const d in e)if(ef(e,d)){if(n.has(d)&&(n.get(d).category===N.Command_line_Options||n.get(d).category===N.Output_Formatting))continue;const h=e[d],S=n.get(d.toLowerCase());if(S){re.assert(S.type!=="listOrElement");const E=LUe(S);E?S.type==="list"?c.set(d,h.map(P=>Mpe(P,E))):c.set(d,Mpe(h,E)):i&&S.isFilePath?c.set(d,wM(i.configFilePath,vf(h,ws(i.configFilePath)),u)):c.set(d,h)}}return c}function FUe(e,n){const i=Qoe(e);return u();function c(d){return Array(d+1).join(" ")}function u(){const d=[],h=c(2);return lQ.forEach(S=>{if(!i.has(S.name))return;const E=i.get(S.name),P=aQ(S);E!==P?d.push(`${h}${S.name}: ${E}`):ef(_Q,S.name)&&d.push(`${h}${S.name}: ${P}`)}),d.join(n)+n}}function Qoe(e){const n=dN(e,_Q);return s2e(n)}function c2e(e,n,i){const c=Qoe(e);return h();function u(S){return Array(S+1).join(" ")}function d({category:S,name:E,isCommandLineOnly:P}){const k=[N.Command_line_Options,N.Editor_Support,N.Compiler_Diagnostics,N.Backwards_Compatibility,N.Watch_and_Build_Modes,N.Output_Formatting];return!P&&S!==void 0&&(!k.includes(S)||c.has(E))}function h(){const S=new Map;S.set(N.Projects,[]),S.set(N.Language_and_Environment,[]),S.set(N.Modules,[]),S.set(N.JavaScript_Support,[]),S.set(N.Emit,[]),S.set(N.Interop_Constraints,[]),S.set(N.Type_Checking,[]),S.set(N.Completeness,[]);for(const J of hI)if(d(J)){let X=S.get(J.category);X||S.set(J.category,X=[]),X.push(J)}let E=0,P=0;const k=[];S.forEach((J,X)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${fs(X)} */`});for(const ie of J){let ae;c.has(ie.name)?ae=`"${ie.name}": ${JSON.stringify(c.get(ie.name))}${(P+=1)===c.size?"":","}`:ae=`// "${ie.name}": ${JSON.stringify(aQ(ie))},`,k.push({value:ae,description:`/* ${ie.description&&fs(ie.description)||ie.name} */`}),E=Math.max(ae.length,E)}});const F=u(2),$=[];$.push("{"),$.push(`${F}"compilerOptions": {`),$.push(`${F}${F}/* ${fs(N.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),$.push("");for(const J of k){const{value:X,description:ie=""}=J;$.push(X&&`${F}${F}${X}${ie&&u(E-X.length+2)+ie}`)}if(n.length){$.push(`${F}},`),$.push(`${F}"files": [`);for(let J=0;Jtypeof Et=="object","object"),Ct=et(Pe("files"));if(Ct){const Et=ct==="no-prop"||ls(ct)&&ct.length===0,at=ef($,"extends");if(Ct.length===0&&Et&&!at)if(n){const Qt=h||"tsconfig.json",nn=N.The_files_list_in_config_file_0_is_empty,Rn=q2(n,"files",qt=>qt.initializer),cn=a4(n,Rn,nn,Qt);k.push(cn)}else Ie(N.The_files_list_in_config_file_0_is_empty,h||"tsconfig.json")}let Lt=et(Pe("include"));const Ze=Pe("exclude");let Ke=!1,st=et(Ze);if(Ze==="no-prop"&&$.compilerOptions){const Et=$.compilerOptions.outDir,at=$.compilerOptions.declarationDir;(Et||at)&&(st=[Et,at].filter(Qt=>!!Qt))}Ct===void 0&&Lt===void 0&&(Lt=[Dk],Ke=!0);let It,Yt;return Lt&&(It=KUe(Lt,k,!0,n,"include")),st&&(Yt=KUe(st,k,!1,n,"exclude")),{filesSpecs:Ct,includeSpecs:Lt,excludeSpecs:st,validatedFilesSpec:gi(Ct,As),validatedIncludeSpecs:It,validatedExcludeSpecs:Yt,pathPatterns:void 0,isDefaultIncludeSpec:Ke}}function we(ct){const Ct=t$(ie,ct,J,i,E);return BUe(Ct,e$($),S)&&k.push(sLe(ie,h)),Ct}function Fe(ct){let Ct;const Lt=dt("references",Ze=>typeof Ze=="object","object");if(ls(Lt))for(const Ze of Lt)typeof Ze.path!="string"?Ie(N.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Ct||(Ct=[])).push({path:vf(Ze.path,ct),originalPath:Ze.path,prepend:Ze.prepend,circular:Ze.circular});return Ct}function et(ct){return ls(ct)?ct:void 0}function Pe(ct){return dt(ct,As,"string")}function dt(ct,Ct,Lt){if(ef($,ct)&&!oQ($[ct]))if(ls($[ct])){const Ze=$[ct];return!n&&!jr(Ze,Ct)&&k.push(W_(N.Compiler_option_0_requires_a_value_of_type_1,ct,Lt)),Ze}else return Ie(N.Compiler_option_0_requires_a_value_of_type_1,ct,"Array"),"not-array";return"no-prop"}function Ie(ct,...Ct){n||k.push(W_(ct,...Ct))}}function Ist(e){return e.code===N.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function sLe({includeSpecs:e,excludeSpecs:n},i){return W_(N.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,i||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(n||[]))}function BUe(e,n,i){return e.length===0&&n&&(!i||i.length===0)}function e$(e){return!ef(e,"files")&&!ef(e,"references")}function Ope(e,n,i,c,u){const d=c.length;return BUe(e,u)?c.push(sLe(i,n)):vd(c,h=>!Ist(h)),d!==c.length}function zUe(e){return!!e.options}function GUe(e,n,i,c,u,d,h,S){var E;c=$1(c);const P=vf(u||"",c);if(d.includes(P))return h.push(W_(N.Circularity_detected_while_resolving_configuration_Colon_0,[...d,P].join(" -> "))),{raw:e||Rpe(n,h)};const k=e?kst(e,i,c,u,h):Pst(n,i,c,u,h);if((E=k.options)!=null&&E.paths&&(k.options.pathsBasePath=c),k.extendedConfigPath){d=d.concat([P]);const $={options:{}};As(k.extendedConfigPath)?F($,k.extendedConfigPath):k.extendedConfigPath.forEach(J=>F($,J)),!k.raw.include&&$.include&&(k.raw.include=$.include),!k.raw.exclude&&$.exclude&&(k.raw.exclude=$.exclude),!k.raw.files&&$.files&&(k.raw.files=$.files),k.raw.compileOnSave===void 0&&$.compileOnSave&&(k.raw.compileOnSave=$.compileOnSave),n&&$.extendedSourceFiles&&(n.extendedSourceFiles=oc($.extendedSourceFiles.keys())),k.options=AS($.options,k.options),k.watchOptions=k.watchOptions&&$.watchOptions?AS($.watchOptions,k.watchOptions):k.watchOptions||$.watchOptions}return k;function F($,J){const X=VUe(n,J,i,d,h,S,$);if(X&&zUe(X)){const ie=X.raw;let ae;const ve=we=>{ie[we]&&($[we]=Vn(ie[we],Fe=>nE(Fe)?Fe:vl(ae||(ae=PX(ws(J),c,H1(i.useCaseSensitiveFileNames))),Fe)))};ve("include"),ve("exclude"),ve("files"),ie.compileOnSave!==void 0&&($.compileOnSave=ie.compileOnSave),AS($.options,X.options),$.watchOptions=$.watchOptions&&X.watchOptions?AS({},$.watchOptions,X.watchOptions):$.watchOptions||X.watchOptions}}}function kst(e,n,i,c,u){ef(e,"excludes")&&u.push(W_(N.Unknown_option_excludes_Did_you_mean_exclude));const d=o4(e.compilerOptions,i,u,c),h=HUe(e.typeAcquisition,i,u,c),S=KG(e.watchOptions,i,u);e.compileOnSave=u2e(e,i,u);const E=e.extends||e.extends===""?jUe(e.extends,n,i,c,u):void 0;return{raw:e,options:d,watchOptions:S,typeAcquisition:h,extendedConfigPath:E}}function jUe(e,n,i,c,u,d,h,S){let E;const P=c?eae(c,i):i;if(As(e))E=cLe(e,n,P,u,h,S);else if(ls(e)){E=[];for(let k=0;kwe.name===J)&&(P=ur(P,ie.name))))}}function cLe(e,n,i,c,u,d){if(e=$1(e),nE(e)||qf(e,"./")||qf(e,"../")){let S=vf(e,i);if(!n.fileExists(S)&&!h_(S,".json")&&(S=`${S}.json`,!n.fileExists(S))){c.push(a4(d,u,N.File_0_not_found,e));return}return S}const h=NW(e,vl(i,"tsconfig.json"),n);if(h.resolvedModule)return h.resolvedModule.resolvedFileName;e===""?c.push(a4(d,u,N.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):c.push(a4(d,u,N.File_0_not_found,e))}function VUe(e,n,i,c,u,d,h){const S=i.useCaseSensitiveFileNames?n:Q0(n);let E,P,k;if(d&&(E=d.get(S))?{extendedResult:P,extendedConfig:k}=E:(P=r2e(n,F=>i.readFile(F)),P.parseDiagnostics.length||(k=GUe(void 0,P,i,ws(n),Jg(n),c,u,d)),d&&d.set(S,{extendedResult:P,extendedConfig:k})),e&&((h.extendedSourceFiles??(h.extendedSourceFiles=new Set)).add(P.fileName),P.extendedSourceFiles))for(const F of P.extendedSourceFiles)h.extendedSourceFiles.add(F);if(P.parseDiagnostics.length){u.push(...P.parseDiagnostics);return}return k}function u2e(e,n,i){if(!ef(e,XG.name))return!1;const c=x6(XG,e.compileOnSave,n,i);return typeof c=="boolean"&&c}function lLe(e,n,i){const c=[];return{options:o4(e,n,c,i),errors:c}}function UUe(e,n,i){const c=[];return{options:HUe(e,n,c,i),errors:c}}function f2e(e){return e&&Jg(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function o4(e,n,i,c){const u=f2e(c);return _2e(rLe(),e,n,u,dQ,i),c&&(u.configFilePath=$1(c)),u}function lF(e){return{enable:!!e&&Jg(e)==="jsconfig.json",include:[],exclude:[]}}function HUe(e,n,i,c){const u=lF(c);return _2e(wpe(),e,n,u,d2e,i),u}function KG(e,n,i){return _2e(Koe(),e,n,void 0,mQ,i)}function _2e(e,n,i,c,u,d){if(n){for(const h in n){const S=e.get(h);S?(c||(c={}))[S.name]=x6(S,n[h],i,d):d.push(kpe(h,u))}return c}}function a4(e,n,i,...c){return e&&n?Ud(e,n,i,...c):W_(i,...c)}function x6(e,n,i,c,u,d,h){if(e.isCommandLineOnly){c.push(a4(h,u==null?void 0:u.name,N.Option_0_can_only_be_specified_on_command_line,e.name));return}if(iLe(e,n)){const S=e.type;if(S==="list"&&ls(n))return uLe(e,n,i,c,u,d,h);if(S==="listOrElement")return ls(n)?uLe(e,n,i,c,u,d,h):x6(e.element,n,i,c,u,d,h);if(!As(e.type))return Fpe(e,n,c,d,h);const E=IW(e,n,c,d,h);return oQ(E)?E:JUe(e,i,E)}else c.push(a4(h,d,N.Compiler_option_0_requires_a_value_of_type_1,e.name,o2e(e)))}function JUe(e,n,i){return e.isFilePath&&(i=vf(i,n),i===""&&(i=".")),i}function IW(e,n,i,c,u){var d;if(oQ(n))return;const h=(d=e.extraValidation)==null?void 0:d.call(e,n);if(!h)return n;i.push(a4(u,c,...h))}function Fpe(e,n,i,c,u){if(oQ(n))return;const d=n.toLowerCase(),h=e.type.get(d);if(h!==void 0)return IW(e,h,i,c,u);i.push(e2e(e,(S,...E)=>a4(u,c,S,...E)))}function uLe(e,n,i,c,u,d,h){return gi(Vn(n,(S,E)=>x6(e.element,S,i,c,u,d==null?void 0:d.elements[E],h)),S=>e.listPreserveFalsyValues?!0:!!S)}function t$(e,n,i,c,u=Yn){n=hf(n);const d=H1(c.useCaseSensitiveFileNames),h=new Map,S=new Map,E=new Map,{validatedFilesSpec:P,validatedIncludeSpecs:k,validatedExcludeSpecs:F}=e,$=s3(i,u),J=Q9(i,$);if(P)for(const ve of P){const we=vf(ve,n);h.set(d(we),we)}let X;if(k&&k.length>0)for(const ve of c.readDirectory(n,Gf(J),F,k,void 0)){if(mm(ve,".json")){if(!X){const et=k.filter(dt=>h_(dt,".json")),Pe=Vn(JH(et,n,"files"),dt=>`^${dt}$`);X=Pe?Pe.map(dt=>Y2(dt,c.useCaseSensitiveFileNames)):Yn}if(Ho(X,et=>et.test(ve))!==-1){const et=d(ve);!h.has(et)&&!E.has(et)&&E.set(et,ve)}continue}if(zpe(ve,h,S,$,d))continue;pLe(ve,S,$,d);const we=d(ve);!h.has(we)&&!S.has(we)&&S.set(we,ve)}const ie=oc(h.values()),ae=oc(S.values());return ie.concat(ae,oc(E.values()))}function Wpe(e,n,i,c,u){const{validatedFilesSpec:d,validatedIncludeSpecs:h,validatedExcludeSpecs:S}=n;if(!Nt(h)||!Nt(S))return!1;i=hf(i);const E=H1(c);if(d){for(const P of d)if(E(vf(P,i))===e)return!1}return qUe(e,S,c,u,i)}function $Ue(e){const n=qf(e,"**/")?0:e.indexOf("/**/");return n===-1?!1:(h_(e,"/..")?e.length:e.lastIndexOf("/../"))>n}function Bpe(e,n,i,c){return qUe(e,gi(n,u=>!$Ue(u)),i,c)}function qUe(e,n,i,c,u){const d=a3(n,vl(hf(c),u),"exclude"),h=d&&Y2(d,i);return h?h.test(e)?!0:!r9(e)&&h.test(Su(e)):!1}function KUe(e,n,i,c,u){return e.filter(h=>{if(!As(h))return!1;const S=fLe(h,i);return S!==void 0&&n.push(d(...S)),S===void 0});function d(h,S){const E=JM(c,u,S);return a4(c,E,h,S)}}function fLe(e,n){if(re.assert(typeof e=="string"),n&&kW.test(e))return[N.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if($Ue(e))return[N.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function _Le({validatedIncludeSpecs:e,validatedExcludeSpecs:n},i,c){const u=a3(n,i,"exclude"),d=u&&new RegExp(u,c?"":"i"),h={};if(e!==void 0){const S=[];for(const E of e){const P=hf(vl(i,E));if(d&&d.test(P))continue;const k=dLe(P,c);if(k){const{key:F,flags:$}=k,J=h[F];(J===void 0||J<$)&&(h[F]=$,$===1&&S.push(F))}}for(const E in h)if(ef(h,E))for(const P of S)E!==P&&OE(P,E,i,!c)&&delete h[E]}return h}function dLe(e,n){const i=Upe.exec(e);if(i){const c=e.indexOf("?"),u=e.indexOf("*"),d=e.lastIndexOf(qp);return{key:n?i[0]:Q0(i[0]),flags:c!==-1&&cpv(e,h)?h:void 0);if(!d)return!1;for(const h of d){if(mm(e,h)&&(h!==".ts"||!mm(e,".d.ts")))return!1;const S=u(SA(e,h));if(n.has(S)||i.has(S)){if(h===".d.ts"&&(mm(e,".js")||mm(e,".jsx")))continue;return!0}}return!1}function pLe(e,n,i,c){const u=Ot(i,d=>pv(e,d)?d:void 0);if(u)for(let d=u.length-1;d>=0;d--){const h=u[d];if(mm(e,h))return;const S=c(SA(e,h));n.delete(S)}}function n$(e){const n={};for(const i in e)if(ef(e,i)){const c=QJ(i);c!==void 0&&(n[i]=Gpe(e[i],c))}return n}function Gpe(e,n){if(e===void 0)return e;switch(n.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ls(e))return Gpe(e,n.element);case"list":const i=n.element;return ls(e)?Qo(e,c=>Gpe(c,i)):"";default:return Jb(n.type,(c,u)=>{if(c===e)return u})}}function aQ(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const n=e.defaultValueDescription;return e.isFilePath?`./${n&&typeof n=="string"?n:""}`:"";case"list":return[];case"listOrElement":return aQ(e.element);case"object":return{};default:const i=V5(e.type.keys());return i!==void 0?i:re.fail("Expected 'option.type' to have entries.")}}var XG,sQ,uF,cQ,r$,i$,fC,o$,a$,tae,lQ,hI,nae,rae,iae,s$,c$,jpe,Vpe,uQ,YG,fQ,mLe,gLe,_Q,dQ,oae,hLe,yLe,d2e,pQ,mQ,p2e,m2e,g2e,QG,h2e,y2e,vLe,Vf,Dk,kW,Upe,XUe=G({"src/compiler/commandLineParser.ts"(){md(),XG={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sQ=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),uF=new Map(p_(sQ.entries(),([e,n])=>[""+n,e])),cQ=[["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"]],r$=cQ.map(e=>e[0]),i$=new Map(cQ),fC=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:N.Watch_and_Build_Modes,description:N.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:N.Watch_and_Build_Modes,description:N.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:N.Watch_and_Build_Modes,description:N.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:N.Watch_and_Build_Modes,description:N.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:fLe},category:N.Watch_and_Build_Modes,description:N.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:fLe},category:N.Watch_and_Build_Modes,description:N.Remove_a_list_of_files_from_the_watch_mode_s_processing}],o$=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:N.Command_line_Options,description:N.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:N.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:N.Command_line_Options,description:N.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:N.Output_Formatting,description:N.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:N.Output_Formatting,description:N.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:N.Compiler_Diagnostics,description:N.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:N.Compiler_Diagnostics,description:N.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:N.Compiler_Diagnostics,description:N.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:N.FILE_OR_DIRECTORY,category:N.Compiler_Diagnostics,description:N.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:N.DIRECTORY,category:N.Compiler_Diagnostics,description:N.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:N.Projects,description:N.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:N.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,transpileOptionValue:void 0,description:N.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:N.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:N.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,description:N.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,defaultValueDescription:!1,description:N.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:N.Emit,description:N.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Watch_and_Build_Modes,description:N.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:N.Command_line_Options,isCommandLineOnly:!0,description:N.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:N.Platform_specific}],a$={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:N.VERSION,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},tae={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:N.KIND,showInSimplifiedHelpView:!0,category:N.Modules,description:N.Specify_what_module_code_is_generated,defaultValueDescription:void 0},lQ=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:N.Command_line_Options,paramType:N.FILE_OR_DIRECTORY,description:N.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:N.Command_line_Options,description:N.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,isCommandLineOnly:!0,description:N.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:N.Command_line_Options,isCommandLineOnly:!0,description:N.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},a$,tae,{name:"lib",type:"list",element:{name:"lib",type:i$,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.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:N.JavaScript_Support,description:N.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:N.JavaScript_Support,description:N.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:sQ,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:N.KIND,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.FILE,showInSimplifiedHelpView:!0,category:N.Emit,description:N.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:N.DIRECTORY,showInSimplifiedHelpView:!0,category:N.Emit,description:N.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.LOCATION,category:N.Modules,description:N.Specify_the_root_folder_within_your_source_files,defaultValueDescription:N.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:N.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:N.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:N.FILE,category:N.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:N.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,defaultValueDescription:!1,description:N.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:N.Emit,description:N.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.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:N.Emit,description:N.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:N.Interop_Constraints,description:N.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:N.Interop_Constraints,description:N.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:N.Type_Checking,description:N.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:N.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:N.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:N.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Ensure_use_strict_is_always_emitted,defaultValueDescription:N.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.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:N.Type_Checking,description:N.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.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:N.Type_Checking,description:N.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:N.STRATEGY,category:N.Modules,description:N.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:N.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:N.Modules,description:N.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:N.Modules,description:N.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:N.Modules,description:N.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:N.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:N.Modules,description:N.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:N.Modules,description:N.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:N.Interop_Constraints,description:N.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:N.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Interop_Constraints,description:N.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:N.Interop_Constraints,description:N.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:N.Modules,description:N.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:N.Modules,description:N.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Modules,description:N.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:N.Modules,description:N.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:N.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:N.Modules,description:N.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:N.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:N.Modules,description:N.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:N.LOCATION,category:N.Emit,description:N.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:N.LOCATION,category:N.Emit,description:N.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:N.Language_and_Environment,description:N.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:N.Language_and_Environment,description:N.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:N.Language_and_Environment,description:N.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:N.Modules,description:N.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:N.Modules,description:N.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:N.Backwards_Compatibility,paramType:N.FILE,transpileOptionValue:void 0,description:N.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:N.Completeness,description:N.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:N.Backwards_Compatibility,description:N.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:N.Emit,description:N.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:N.NEWLINE,category:N.Emit,description:N.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Output_Formatting,description:N.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:N.Language_and_Environment,affectsProgramStructure:!0,description:N.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:N.Modules,description:N.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:N.Emit,description:N.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:N.Editor_Support,description:N.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:N.Projects,description:N.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:N.Projects,description:N.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:N.Projects,description:N.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,transpileOptionValue:void 0,description:N.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.DIRECTORY,category:N.Emit,transpileOptionValue:void 0,description:N.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:N.Completeness,description:N.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:N.Interop_Constraints,description:N.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:N.JavaScript_Support,description:N.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:N.Backwards_Compatibility,description:N.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:N.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:N.Backwards_Compatibility,description:N.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:N.Specify_a_list_of_language_service_plugins_to_include,category:N.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:N.Control_what_method_is_used_to_detect_module_format_JS_files,category:N.Language_and_Environment,defaultValueDescription:N.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}],hI=[...o$,...lQ],nae=hI.filter(e=>!!e.affectsSemanticDiagnostics),rae=hI.filter(e=>!!e.affectsEmit),iae=hI.filter(e=>!!e.affectsDeclarationPath),s$=hI.filter(e=>!!e.affectsModuleResolution),c$=hI.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),jpe=hI.filter(e=>!!e.affectsProgramStructure),Vpe=hI.filter(e=>ef(e,"transpileOptionValue")),uQ=[{name:"verbose",shortName:"v",category:N.Command_line_Options,description:N.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:N.Command_line_Options,description:N.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:N.Command_line_Options,description:N.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:N.Command_line_Options,description:N.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],YG=[...o$,...uQ],fQ=[{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}],gLe={diagnostic:N.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:n2e},_Q={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},dQ={alternateMode:gLe,getOptionsNameMap:JG,optionDeclarations:hI,unknownOptionDiagnostic:N.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:N.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Compiler_option_0_expects_an_argument},hLe={diagnostic:N.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:JG},yLe={alternateMode:hLe,getOptionsNameMap:n2e,optionDeclarations:YG,unknownOptionDiagnostic:N.Unknown_build_option_0,unknownDidYouMeanDiagnostic:N.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Build_option_0_requires_a_value_of_type_1},d2e={optionDeclarations:fQ,unknownOptionDiagnostic:N.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:N.Unknown_type_acquisition_option_0_Did_you_mean_1},mQ={getOptionsNameMap:nLe,optionDeclarations:fC,unknownOptionDiagnostic:N.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:N.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Watch_option_0_requires_a_value_of_type_1},QG={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:N.File_Management,disallowNullOrUndefined:!0},h2e={name:"compilerOptions",type:"object",elementOptions:rLe(),extraKeyDiagnostics:dQ},y2e={name:"watchOptions",type:"object",elementOptions:Koe(),extraKeyDiagnostics:mQ},vLe={name:"typeAcquisition",type:"object",elementOptions:wpe(),extraKeyDiagnostics:d2e},Dk="**/*",kW=/(^|\/)\*\*\/?$/,Upe=/^[^*?]*(?=\/[^/]*[*?])/}});function Df(e,n,...i){e.trace(Yie(n,...i))}function DR(e,n){return!!e.traceResolution&&n.trace!==void 0}function fF(e,n){let i;if(n&&e){const c=e.contents.packageJsonContent;typeof c.name=="string"&&typeof c.version=="string"&&(i={name:c.name,subModuleName:n.path.slice(e.packageDirectory.length+qp.length),version:c.version})}return n&&{path:n.path,extension:n.ext,packageId:i,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function Hpe(e){return fF(void 0,e)}function bLe(e){if(e)return re.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function PW(e){const n=[];return e&1&&n.push("TypeScript"),e&2&&n.push("JavaScript"),e&4&&n.push("Declaration"),e&8&&n.push("JSON"),n.join(", ")}function gQ(e){const n=[];return e&1&&n.push(...EG),e&2&&n.push(...h3),e&4&&n.push(...oJ),e&8&&n.push(".json"),n}function v2e(e){if(e)return re.assert(KH(e.extension)),{fileName:e.path,packageId:e.packageId}}function Jpe(e,n,i,c,u,d,h,S,E){if(!h.resultFromCache&&!h.compilerOptions.preserveSymlinks&&n&&i&&!n.originalPath&&!Kv(e)){const{resolvedFileName:P,originalPath:k}=qpe(n.path,h.host,h.traceEnabled);k&&(n={...n,path:P,originalPath:k})}return YUe(n,i,c,u,d,h.resultFromCache,S,E)}function YUe(e,n,i,c,u,d,h,S){return d?h!=null&&h.isReadonly?{...d,failedLookupLocations:TLe(d.failedLookupLocations,i),affectingLocations:TLe(d.affectingLocations,c),resolutionDiagnostics:TLe(d.resolutionDiagnostics,u)}:(d.failedLookupLocations=l$(d.failedLookupLocations,i),d.affectingLocations=l$(d.affectingLocations,c),d.resolutionDiagnostics=l$(d.resolutionDiagnostics,u),d):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:hQ(i),affectingLocations:hQ(c),resolutionDiagnostics:hQ(u),node10Result:S}}function hQ(e){return e.length?e:void 0}function l$(e,n){return n!=null&&n.length?e!=null&&e.length?(e.push(...n),e):n:e}function TLe(e,n){return e!=null&&e.length?n.length?[...e,...n]:e.slice():hQ(n)}function QUe(e,n,i,c){if(!ef(e,n)){c.traceEnabled&&Df(c.host,N.package_json_does_not_have_a_0_field,n);return}const u=e[n];if(typeof u!==i||u===null){c.traceEnabled&&Df(c.host,N.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,u===null?"null":typeof u);return}return u}function yQ(e,n,i,c){const u=QUe(e,n,"string",c);if(u===void 0)return;if(!u){c.traceEnabled&&Df(c.host,N.package_json_had_a_falsy_0_field,n);return}const d=hf(vl(i,u));return c.traceEnabled&&Df(c.host,N.package_json_has_0_field_1_that_references_2,n,u,d),d}function $pe(e,n,i){return yQ(e,"typings",n,i)||yQ(e,"types",n,i)}function Nst(e,n,i){return yQ(e,"tsconfig",n,i)}function wst(e,n,i){return yQ(e,"main",n,i)}function ZUe(e,n){const i=QUe(e,"typesVersions","object",n);if(i!==void 0)return n.traceEnabled&&Df(n.host,N.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}function eHe(e,n){const i=ZUe(e,n);if(i===void 0)return;if(n.traceEnabled)for(const h in i)ef(i,h)&&!yN.tryParse(h)&&Df(n.host,N.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,h);const c=vQ(i);if(!c){n.traceEnabled&&Df(n.host,N.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ot);return}const{version:u,paths:d}=c;if(typeof d!="object"){n.traceEnabled&&Df(n.host,N.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${u}']`,"object",typeof d);return}return c}function vQ(e){NLe||(NLe=new ZT(At));for(const n in e){if(!ef(e,n))continue;const i=yN.tryParse(n);if(i!==void 0&&i.test(NLe))return{version:n,paths:e[n]}}}function ZG(e,n){if(e.typeRoots)return e.typeRoots;let i;if(e.configFilePath?i=ws(e.configFilePath):n.getCurrentDirectory&&(i=n.getCurrentDirectory()),i!==void 0)return u$(i)}function u$(e){let n;return jC(hf(e),i=>{const c=vl(i,kR);(n??(n=[])).push(c)}),n}function Rst(e,n,i){const c=typeof i.useCaseSensitiveFileNames=="function"?i.useCaseSensitiveFileNames():i.useCaseSensitiveFileNames;return Rv(e,n,!c)===0}function qpe(e,n,i){const c=ALe(e,n,i),u=Rst(e,c,n);return{resolvedFileName:u?e:c,originalPath:u?void 0:e}}function b2e(e,n,i){const c=h_(e,"/node_modules/@types")||h_(e,"/node_modules/@types/")?PLe(n,i):n;return vl(e,c)}function Kpe(e,n,i,c,u,d,h){re.assert(typeof e=="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 S=DR(i,c);u&&(i=u.commandLine.options);const E=n?ws(n):void 0;let P=E?d==null?void 0:d.getFromDirectoryCache(e,h,E,u):void 0;if(!P&&E&&!Kv(e)&&(P=d==null?void 0:d.getFromNonRelativeNameCache(e,h,E,u)),P)return S&&(Df(c,N.Resolving_type_reference_directive_0_containing_file_1,e,n),u&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),Df(c,N.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,E),Pe(P)),P;const k=ZG(i,c);S&&(n===void 0?k===void 0?Df(c,N.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Df(c,N.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,k):k===void 0?Df(c,N.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,n):Df(c,N.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,n,k),u&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));const F=[],$=[];let J=Xpe(i);h!==void 0&&(J|=30);const X=Jd(i);h===99&&3<=X&&X<=99&&(J|=32);const ie=J&8?_F(i,h):[],ae=[],ve={compilerOptions:i,host:c,traceEnabled:S,failedLookupLocations:F,affectingLocations:$,packageJsonInfoCache:d,features:J,conditions:ie,requestContainingDirectory:E,reportDiagnostic:ct=>void ae.push(ct),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let we=dt(),Fe=!0;we||(we=Ie(),Fe=!1);let et;if(we){const{fileName:ct,packageId:Ct}=we;let Lt=ct,Ze;i.preserveSymlinks||({resolvedFileName:Lt,originalPath:Ze}=qpe(ct,c,S)),et={primary:Fe,resolvedFileName:Lt,originalPath:Ze,packageId:Ct,isExternalLibraryImport:RW(ct)}}return P={resolvedTypeReferenceDirective:et,failedLookupLocations:hQ(F),affectingLocations:hQ($),resolutionDiagnostics:hQ(ae)},E&&d&&!d.isReadonly&&(d.getOrCreateCacheForDirectory(E,u).set(e,h,P),Kv(e)||d.getOrCreateCacheForNonRelativeName(e,h,u).set(E,P)),S&&Pe(P),P;function Pe(ct){var Ct;(Ct=ct.resolvedTypeReferenceDirective)!=null&&Ct.resolvedFileName?ct.resolvedTypeReferenceDirective.packageId?Df(c,N.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ct.resolvedTypeReferenceDirective.resolvedFileName,jM(ct.resolvedTypeReferenceDirective.packageId),ct.resolvedTypeReferenceDirective.primary):Df(c,N.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ct.resolvedTypeReferenceDirective.resolvedFileName,ct.resolvedTypeReferenceDirective.primary):Df(c,N.Type_reference_directive_0_was_not_resolved,e)}function dt(){if(k&&k.length)return S&&Df(c,N.Resolving_with_primary_search_path_0,k.join(", ")),Yr(k,ct=>{const Ct=b2e(ct,e,ve),Lt=O0(ct,c);if(!Lt&&S&&Df(c,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,ct),i.typeRoots){const Ze=tj(4,Ct,!Lt,ve);if(Ze){const Ke=d$(Ze.path),st=Ke?A6(Ke,!1,ve):void 0;return v2e(fF(st,Ze))}}return v2e(SQ(4,Ct,!Lt,ve))});S&&Df(c,N.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Ie(){const ct=n&&ws(n);if(ct!==void 0){let Ct;if(!i.typeRoots||!h_(n,hj))if(S&&Df(c,N.Looking_up_in_node_modules_folder_initial_location_0,ct),Kv(e)){const{path:Lt}=xLe(ct,e);Ct=dF(4,Lt,!1,ve,!0)}else{const Lt=k2e(4,e,ct,ve,void 0,void 0);Ct=Lt&&Lt.value}else S&&Df(c,N.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return v2e(Ct)}else S&&Df(c,N.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Xpe(e){let n=0;switch(Jd(e)){case 3:n=30;break;case 99:n=30;break;case 100:n=30;break}return e.resolvePackageJsonExports?n|=8:e.resolvePackageJsonExports===!1&&(n&=-9),e.resolvePackageJsonImports?n|=2:e.resolvePackageJsonImports===!1&&(n&=-3),n}function _F(e,n){const i=Jd(e);if(n===void 0){if(i===100)n=99;else if(i===2)return[]}const c=n===99?["import"]:["require"];return e.noDtsResolution||c.push("types"),i!==100&&c.push("node"),Hi(c,e.customConditions)}function Ype(e,n,i,c,u){const d=lae(u==null?void 0:u.getPackageJsonInfoCache(),c,i);return jC(n,h=>{if(Jg(h)!=="node_modules"){const S=vl(h,"node_modules"),E=vl(S,e);return A6(E,!1,d)}})}function Qpe(e,n){if(e.types)return e.types;const i=[];if(n.directoryExists&&n.getDirectories){const c=ZG(e,n);if(c){for(const u of c)if(n.directoryExists(u))for(const d of n.getDirectories(u)){const h=hf(d),S=vl(u,h,"package.json");if(!(n.fileExists(S)&&e3(S,n).typings===null)){const P=Jg(h);P.charCodeAt(0)!==46&&i.push(P)}}}}return i}function f$(e){var n;if(e===null||typeof e!="object")return""+e;if(ls(e))return`[${(n=e.map(c=>f$(c)))==null?void 0:n.join(",")}]`;let i="{";for(const c in e)ef(e,c)&&(i+=`${c}: ${f$(e[c])}`);return i+"}"}function N3(e,n){return n.map(i=>f$(jH(e,i))).join("|")+`|${e.pathsBasePath}`}function aae(e,n){const i=new Map,c=new Map;let u=new Map;return e&&i.set(e,u),{getMapOfCacheRedirects:d,getOrCreateMapOfCacheRedirects:h,update:S,clear:P,getOwnMap:()=>u};function d(F){return F?E(F.commandLine.options,!1):u}function h(F){return F?E(F.commandLine.options,!0):u}function S(F){e!==F&&(e?u=E(F,!0):i.set(F,u),e=F)}function E(F,$){let J=i.get(F);if(J)return J;const X=k(F);if(J=c.get(X),!J){if(e){const ie=k(e);ie===X?J=u:c.has(ie)||c.set(ie,u)}$&&(J??(J=new Map)),J&&c.set(X,J)}return J&&i.set(F,J),J}function P(){const F=e&&n.get(e);u.clear(),i.clear(),n.clear(),c.clear(),e&&(F&&n.set(e,F),i.set(e,u))}function k(F){let $=n.get(F);return $||n.set(F,$=N3(F,s$)),$}}function Mst(e,n){let i;return{getPackageJsonInfo:c,setPackageJsonInfo:u,clear:d,entries:h,getInternalMap:S};function c(E){return i==null?void 0:i.get(gm(E,e,n))}function u(E,P){(i||(i=new Map)).set(gm(E,e,n),P)}function d(){i=void 0}function h(){const E=i==null?void 0:i.entries();return E?oc(E):[]}function S(){return i}}function tHe(e,n,i,c){const u=e.getOrCreateMapOfCacheRedirects(n);let d=u.get(i);return d||(d=c(),u.set(i,d)),d}function Lst(e,n,i,c){const u=aae(i,c);return{getFromDirectoryCache:E,getOrCreateCacheForDirectory:S,clear:d,update:h,directoryToModuleNameMap:u};function d(){u.clear()}function h(P){u.update(P)}function S(P,k){const F=gm(P,e,n);return tHe(u,k,F,()=>IR())}function E(P,k,F,$){var J,X;const ie=gm(F,e,n);return(X=(J=u.getMapOfCacheRedirects($))==null?void 0:J.get(ie))==null?void 0:X.get(P,k)}}function _$(e,n){return n===void 0?e:`${n}|${e}`}function IR(){const e=new Map,n=new Map,i={get(u,d){return e.get(c(u,d))},set(u,d,h){return e.set(c(u,d),h),i},delete(u,d){return e.delete(c(u,d)),i},has(u,d){return e.has(c(u,d))},forEach(u){return e.forEach((d,h)=>{const[S,E]=n.get(h);return u(d,S,E)})},size(){return e.size}};return i;function c(u,d){const h=_$(u,d);return n.set(h,[u,d]),h}}function T2e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function SLe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function S2e(e,n,i,c,u){const d=aae(i,u);return{getFromNonRelativeNameCache:E,getOrCreateCacheForNonRelativeName:P,clear:h,update:S};function h(){d.clear()}function S(F){d.update(F)}function E(F,$,J,X){var ie,ae;return re.assert(!Kv(F)),(ae=(ie=d.getMapOfCacheRedirects(X))==null?void 0:ie.get(_$(F,$)))==null?void 0:ae.get(J)}function P(F,$,J){return re.assert(!Kv(F)),tHe(d,J,_$(F,$),k)}function k(){const F=new Map;return{get:$,set:J};function $(ie){return F.get(gm(ie,e,n))}function J(ie,ae){const ve=gm(ie,e,n);if(F.has(ve))return;F.set(ve,ae);const we=c(ae),Fe=we&&X(ve,we);let et=ve;for(;et!==Fe;){const Pe=ws(et);if(Pe===et||F.has(Pe))break;F.set(Pe,ae),et=Pe}}function X(ie,ae){const ve=gm(ws(ae),e,n);let we=0;const Fe=Math.min(ie.length,ve.length);for(;wec,clearAllExceptPackageJsonInfoCache:P,optionsToRedirectsKey:d};function E(){P(),c.clear()}function P(){h.clear(),S.clear()}function k(F){h.update(F),S.update(F)}}function s4(e,n,i,c,u){const d=nHe(e,n,i,c,T2e,u);return d.getOrCreateCacheForModuleName=(h,S,E)=>d.getOrCreateCacheForNonRelativeName(h,S,E),d}function sae(e,n,i,c,u){return nHe(e,n,i,c,SLe,u)}function E2e(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Zpe(e,n,i,c,u){return ej(e,n,E2e(i),c,u)}function rHe(e,n,i,c){const u=ws(n);return i.getFromDirectoryCache(e,c,u,void 0)}function ej(e,n,i,c,u,d,h){var S,E,P;const k=DR(i,c);d&&(i=d.commandLine.options),k&&(Df(c,N.Resolving_module_0_from_1,e,n),d&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,d.sourceFile.fileName));const F=ws(n);let $=u==null?void 0:u.getFromDirectoryCache(e,h,F,d);if($)k&&Df(c,N.Resolution_for_module_0_was_found_in_cache_from_location_1,e,F);else{let J=i.moduleResolution;if(J===void 0){switch(Zp(i)){case 1:J=2;break;case 100:J=3;break;case 199:J=99;break;default:J=1;break}k&&Df(c,N.Module_resolution_kind_is_not_specified_using_0,t9[J])}else k&&Df(c,N.Explicitly_specified_module_resolution_kind_Colon_0,t9[J]);switch((S=Zh)==null||S.logStartResolveModule(e),J){case 3:$=aHe(e,n,i,c,u,d,h);break;case 99:$=sHe(e,n,i,c,u,d,h);break;case 2:$=cae(e,n,i,c,u,d,h?_F(i,h):void 0);break;case 1:$=C6(e,n,i,c,u,d);break;case 100:$=ELe(e,n,i,c,u,d,h?_F(i,h):void 0);break;default:return re.fail(`Unexpected moduleResolution: ${J}`)}$&&$.resolvedModule&&((E=Zh)==null||E.logInfoEvent(`Module "${e}" resolved to "${$.resolvedModule.resolvedFileName}"`)),(P=Zh)==null||P.logStopResolveModule($&&$.resolvedModule?""+$.resolvedModule.resolvedFileName:"null"),u&&!u.isReadonly&&(u.getOrCreateCacheForDirectory(F,d).set(e,h,$),Kv(e)||u.getOrCreateCacheForNonRelativeName(e,h,d).set(F,$))}return k&&($.resolvedModule?$.resolvedModule.packageId?Df(c,N.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,$.resolvedModule.resolvedFileName,jM($.resolvedModule.packageId)):Df(c,N.Module_name_0_was_successfully_resolved_to_1,e,$.resolvedModule.resolvedFileName):Df(c,N.Module_name_0_was_not_resolved,e)),$}function iHe(e,n,i,c,u){const d=Ost(e,n,c,u);return d?d.value:Kv(n)?oHe(e,n,i,c,u):Fst(e,n,c,u)}function Ost(e,n,i,c){var u;const{baseUrl:d,paths:h,configFile:S}=c.compilerOptions;if(h&&!V2(n)){c.traceEnabled&&(d&&Df(c.host,N.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,d,n),Df(c.host,N.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));const E=Lie(c.compilerOptions,c.host),P=S!=null&&S.configFileSpecs?(u=S.configFileSpecs).pathPatterns||(u.pathPatterns=qH(h)):void 0;return dae(e,n,E,h,P,i,!1,c)}}function oHe(e,n,i,c,u){if(!u.compilerOptions.rootDirs)return;u.traceEnabled&&Df(u.host,N.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);const d=hf(vl(i,n));let h,S;for(const E of u.compilerOptions.rootDirs){let P=hf(E);h_(P,qp)||(P+=qp);const k=qf(d,P)&&(S===void 0||S.lengthvoid we.push(Ie),isConfigLookup:S,candidateIsFromPackageJsonField:!1};X&&UN(ve)&&Df(u,N.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Fe.conditions.map(Ie=>`'${Ie}'`).join(", "));let et;if(ve===2){const Ie=h&5,ct=h&-6;et=Ie&&dt(Ie,Fe)||ct&&dt(ct,Fe)||void 0}else et=dt(h,Fe);let Pe;if((k=et==null?void 0:et.value)!=null&&k.isExternalLibraryImport&&!S&&h&5&&e&8&&!Kv(n)&&!uae(5,et.value.resolved.extension)&&(P!=null&&P.includes("import"))){ix(Fe,N.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const Ie={...Fe,features:Fe.features&-9,reportDiagnostic:ku},ct=dt(h&5,Ie);(F=ct==null?void 0:ct.value)!=null&&F.isExternalLibraryImport&&(Pe=ct.value.resolved.path)}return Jpe(n,($=et==null?void 0:et.value)==null?void 0:$.resolved,(J=et==null?void 0:et.value)==null?void 0:J.isExternalLibraryImport,ie,ae,we,Fe,d,Pe);function dt(Ie,ct){const Lt=iHe(Ie,n,i,(Ze,Ke,st,It)=>dF(Ze,Ke,st,It,!0),ct);if(Lt)return C2({resolved:Lt,isExternalLibraryImport:RW(Lt.path)});if(Kv(n)){const{path:Ze,parts:Ke}=xLe(i,n),st=dF(Ie,Ze,!1,ct,!0);return st&&C2({resolved:st,isExternalLibraryImport:ni(Ke,"node_modules")})}else{let Ze;if(e&2&&qf(n,"#")&&(Ze=_He(Ie,n,i,ct,d,E)),!Ze&&e&4&&(Ze=fHe(Ie,n,i,ct,d,E)),!Ze){if(n.includes(":")){X&&Df(u,N.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,PW(Ie));return}X&&Df(u,N.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,PW(Ie)),Ze=k2e(Ie,n,i,ct,d,E)}return Ie&4&&(Ze??(Ze=nme(n,ct))),Ze&&{value:Ze.value&&{resolved:Ze.value,isExternalLibraryImport:!0}}}}}function xLe(e,n){const i=vl(e,n),c=qc(i),u=Yf(c);return{path:u==="."||u===".."?Su(hf(i)):hf(i),parts:c}}function ALe(e,n,i){if(!n.realpath)return e;const c=hf(n.realpath(e));return i&&Df(n,N.Resolving_real_path_for_0_result_1,e,c),c}function dF(e,n,i,c,u){if(c.traceEnabled&&Df(c.host,N.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,PW(e)),!VD(n)){if(!i){const h=ws(n);O0(h,c.host)||(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),i=!0)}const d=tj(e,n,i,c);if(d){const h=u?d$(d.path):void 0,S=h?A6(h,!1,c):void 0;return fF(S,d)}}if(i||O0(n,c.host)||(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),i=!0),!(c.features&32))return SQ(e,n,i,c,u)}function RW(e){return e.includes(IP)}function d$(e,n){const i=hf(e),c=i.lastIndexOf(IP);if(c===-1)return;const u=c+IP.length;let d=CLe(i,u,n);return i.charCodeAt(u)===64&&(d=CLe(i,d,n)),i.slice(0,d)}function CLe(e,n,i){const c=e.indexOf(qp,n+1);return c===-1?i?e.length:n:c}function TQ(e,n,i,c){return Hpe(tj(e,n,i,c))}function tj(e,n,i,c){const u=A2e(e,n,i,c);if(u)return u;if(!(c.features&32)){const d=lHe(n,e,"",i,c);if(d)return d}}function A2e(e,n,i,c){if(!Jg(n).includes("."))return;let d=wg(n);d===n&&(d=n.substring(0,n.lastIndexOf(".")));const h=n.substring(d.length);return c.traceEnabled&&Df(c.host,N.File_name_0_has_a_1_extension_stripping_it,n,h),lHe(d,e,h,i,c)}function DLe(e,n,i,c){return e&1&&pv(n,EG)||e&4&&pv(n,oJ)?p$(n,i,c)!==void 0?{path:n,ext:PH(n),resolvedUsingTsExtension:void 0}:void 0:c.isConfigLookup&&e===8&&mm(n,".json")?p$(n,i,c)!==void 0?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0:A2e(e,n,i,c)}function lHe(e,n,i,c,u){if(!c){const h=ws(e);h&&(c=!O0(h,u.host))}switch(i){case".mjs":case".mts":case".d.mts":return n&1&&d(".mts",i===".mts"||i===".d.mts")||n&4&&d(".d.mts",i===".mts"||i===".d.mts")||n&2&&d(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return n&1&&d(".cts",i===".cts"||i===".d.cts")||n&4&&d(".d.cts",i===".cts"||i===".d.cts")||n&2&&d(".cjs")||void 0;case".json":return n&4&&d(".d.json.ts")||n&8&&d(".json")||void 0;case".tsx":case".jsx":return n&1&&(d(".tsx",i===".tsx")||d(".ts",i===".tsx"))||n&4&&d(".d.ts",i===".tsx")||n&2&&(d(".jsx")||d(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return n&1&&(d(".ts",i===".ts"||i===".d.ts")||d(".tsx",i===".ts"||i===".d.ts"))||n&4&&d(".d.ts",i===".ts"||i===".d.ts")||n&2&&(d(".js")||d(".jsx"))||u.isConfigLookup&&d(".json")||void 0;default:return n&4&&!Zb(e+i)&&d(`.d${i}.ts`)||void 0}function d(h,S){const E=p$(e+h,c,u);return E===void 0?void 0:{path:E,ext:h,resolvedUsingTsExtension:!u.candidateIsFromPackageJsonField&&S}}}function p$(e,n,i){var c;if(!((c=i.compilerOptions.moduleSuffixes)!=null&&c.length))return eme(e,n,i);const u=OT(e)??"",d=u?eW(e,u):e;return Ot(i.compilerOptions.moduleSuffixes,h=>eme(d+h+u,n,i))}function eme(e,n,i){var c;if(!n){if(i.host.fileExists(e))return i.traceEnabled&&Df(i.host,N.File_0_exists_use_it_as_a_name_resolution_result,e),e;i.traceEnabled&&Df(i.host,N.File_0_does_not_exist,e)}(c=i.failedLookupLocations)==null||c.push(e)}function SQ(e,n,i,c,u=!0){const d=u?A6(n,i,c):void 0,h=d&&d.contents.packageJsonContent,S=d&&EQ(d,c);return fF(d,D2e(e,n,i,c,h,S))}function c4(e,n,i,c,u){if(!u&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let d;const h=5|(u?2:0),S=Xpe(n),E=lae(c==null?void 0:c.getPackageJsonInfoCache(),i,n);E.conditions=_F(n),E.requestContainingDirectory=e.packageDirectory;const P=D2e(h,e.packageDirectory,!1,E,e.contents.packageJsonContent,EQ(e,E));if(d=ur(d,P==null?void 0:P.path),S&8&&e.contents.packageJsonContent.exports){const k=th([_F(n,99),_F(n,1)],fv);for(const F of k){const $={...E,failedLookupLocations:[],conditions:F,host:i},J=C2e(e,e.contents.packageJsonContent.exports,$,h);if(J)for(const X of J)d=ST(d,X.path)}}return e.contents.resolvedEntrypoints=d||!1}function C2e(e,n,i,c){let u;if(ls(n))for(const h of n)d(h);else if(typeof n=="object"&&n!==null&&xQ(n))for(const h in n)d(n[h]);else d(n);return u;function d(h){var S,E;if(typeof h=="string"&&qf(h,"./"))if(h.includes("*")&&i.host.readDirectory){if(h.indexOf("*")!==h.lastIndexOf("*"))return!1;i.host.readDirectory(e.packageDirectory,gQ(c),void 0,[Zb(h)?h.replace("*","**/*"):Vre(h.replace("*","**/*"),TY(h))]).forEach(P=>{u=ST(u,{path:P,ext:t7(P),resolvedUsingTsExtension:void 0})})}else{const P=qc(h).slice(2);if(P.includes("..")||P.includes(".")||P.includes("node_modules"))return!1;const k=vl(e.packageDirectory,h),F=vf(k,(E=(S=i.host).getCurrentDirectory)==null?void 0:E.call(S)),$=DLe(c,F,!1,i);if($)return u=ST(u,$,(J,X)=>J.path===X.path),!0}else if(Array.isArray(h)){for(const P of h)if(d(P))return!0}else if(typeof h=="object"&&h!==null)return Ot(ET(h),P=>{if(P==="default"||ni(i.conditions,P)||AQ(i.conditions,P))return d(h[P]),!0})}}function lae(e,n,i){return{host:n,compilerOptions:i,traceEnabled:DR(i,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Yn,requestContainingDirectory:void 0,reportDiagnostic:ku,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function m$(e,n){const i=qc(e);for(i.pop();i.length>0;){const c=A6(Iy(i),!1,n);if(c)return c;i.pop()}}function EQ(e,n){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=eHe(e.contents.packageJsonContent,n)||!1),e.contents.versionPaths||void 0}function A6(e,n,i){var c,u,d,h,S,E;const{host:P,traceEnabled:k}=i,F=vl(e,"package.json");if(n){(c=i.failedLookupLocations)==null||c.push(F);return}const $=(u=i.packageJsonInfoCache)==null?void 0:u.getPackageJsonInfo(F);if($!==void 0){if(typeof $!="boolean")return k&&Df(P,N.File_0_exists_according_to_earlier_cached_lookups,F),(d=i.affectingLocations)==null||d.push(F),$.packageDirectory===e?$:{packageDirectory:e,contents:$.contents};$&&k&&Df(P,N.File_0_does_not_exist_according_to_earlier_cached_lookups,F),(h=i.failedLookupLocations)==null||h.push(F);return}const J=O0(e,P);if(J&&P.fileExists(F)){const X=e3(F,P);k&&Df(P,N.Found_package_json_at_0,F);const ie={packageDirectory:e,contents:{packageJsonContent:X,versionPaths:void 0,resolvedEntrypoints:void 0}};return i.packageJsonInfoCache&&!i.packageJsonInfoCache.isReadonly&&i.packageJsonInfoCache.setPackageJsonInfo(F,ie),(S=i.affectingLocations)==null||S.push(F),ie}else J&&k&&Df(P,N.File_0_does_not_exist,F),i.packageJsonInfoCache&&!i.packageJsonInfoCache.isReadonly&&i.packageJsonInfoCache.setPackageJsonInfo(F,J),(E=i.failedLookupLocations)==null||E.push(F)}function D2e(e,n,i,c,u,d){let h;u&&(c.isConfigLookup?h=Nst(u,n,c):h=e&4&&$pe(u,n,c)||e&7&&wst(u,n,c)||void 0);const S=($,J,X,ie)=>{const ae=p$(J,X,ie);if(ae){const Pe=Wst($,ae);if(Pe)return Hpe(Pe);ie.traceEnabled&&Df(ie.host,N.File_0_has_an_unsupported_extension_so_skipping_it,ae)}const ve=$===4?5:$,we=ie.features,Fe=ie.candidateIsFromPackageJsonField;ie.candidateIsFromPackageJsonField=!0,(u==null?void 0:u.type)!=="module"&&(ie.features&=-33);const et=dF(ve,J,X,ie,!1);return ie.features=we,ie.candidateIsFromPackageJsonField=Fe,et},E=h?!O0(ws(h),c.host):void 0,P=i||!O0(n,c.host),k=vl(n,c.isConfigLookup?"tsconfig":"index");if(d&&(!h||OE(n,h))){const $=sP(n,h||k,!1);c.traceEnabled&&Df(c.host,N.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.version,At,$);const J=dae(e,$,n,d.paths,void 0,S,E||P,c);if(J)return bLe(J.value)}const F=h&&bLe(S(e,h,E,c));if(F)return F;if(!(c.features&32))return tj(e,k,P,c)}function Wst(e,n,i){const c=OT(n);return c!==void 0&&uae(e,c)?{path:n,ext:c,resolvedUsingTsExtension:i}:void 0}function uae(e,n){return e&2&&(n===".js"||n===".jsx"||n===".mjs"||n===".cjs")||e&1&&(n===".ts"||n===".tsx"||n===".mts"||n===".cts")||e&4&&(n===".d.ts"||n===".d.mts"||n===".d.cts")||e&8&&n===".json"||!1}function fae(e){let n=e.indexOf(qp);return e[0]==="@"&&(n=e.indexOf(qp,n+1)),n===-1?{packageName:e,rest:""}:{packageName:e.slice(0,n),rest:e.slice(n+1)}}function xQ(e){return jr(ET(e),n=>qf(n,"."))}function uHe(e){return!gt(ET(e),n=>qf(n,"."))}function fHe(e,n,i,c,u,d){var h,S;const E=vf(vl(i,"dummy"),(S=(h=c.host).getCurrentDirectory)==null?void 0:S.call(h)),P=m$(E,c);if(!P||!P.contents.packageJsonContent.exports||typeof P.contents.packageJsonContent.name!="string")return;const k=qc(n),F=qc(P.contents.packageJsonContent.name);if(!jr(F,(ae,ve)=>k[ve]===ae))return;const $=k.slice(F.length),J=Nt($)?`.${qp}${$.join(qp)}`:".";if(TP(c.compilerOptions)&&!RW(i))return g$(P,e,J,c,u,d);const X=e&5,ie=e&-6;return g$(P,X,J,c,u,d)||g$(P,ie,J,c,u,d)}function g$(e,n,i,c,u,d){if(e.contents.packageJsonContent.exports){if(i==="."){let h;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&uHe(e.contents.packageJsonContent.exports)?h=e.contents.packageJsonContent.exports:ef(e.contents.packageJsonContent.exports,".")&&(h=e.contents.packageJsonContent.exports["."]),h)return kLe(n,c,u,d,i,e,!1)(h,"",!1,".")}else if(xQ(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return c.traceEnabled&&Df(c.host,N.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,e.packageDirectory),C2(void 0);const h=ILe(n,c,u,d,i,e.contents.packageJsonContent.exports,e,!1);if(h)return h}return c.traceEnabled&&Df(c.host,N.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,e.packageDirectory),C2(void 0)}}function _He(e,n,i,c,u,d){var h,S;if(n==="#"||qf(n,"#/"))return c.traceEnabled&&Df(c.host,N.Invalid_import_specifier_0_has_no_possible_resolutions,n),C2(void 0);const E=vf(vl(i,"dummy"),(S=(h=c.host).getCurrentDirectory)==null?void 0:S.call(h)),P=m$(E,c);if(!P)return c.traceEnabled&&Df(c.host,N.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,E),C2(void 0);if(!P.contents.packageJsonContent.imports)return c.traceEnabled&&Df(c.host,N.package_json_scope_0_has_no_imports_defined,P.packageDirectory),C2(void 0);const k=ILe(e,c,u,d,n,P.contents.packageJsonContent.imports,P,!0);return k||(c.traceEnabled&&Df(c.host,N.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,P.packageDirectory),C2(void 0))}function I2e(e,n){const i=e.indexOf("*"),c=n.indexOf("*"),u=i===-1?e.length:i+1,d=c===-1?n.length:c+1;return u>d?-1:d>u||i===-1?1:c===-1||e.length>n.length?-1:n.length>e.length?1:0}function ILe(e,n,i,c,u,d,h,S){const E=kLe(e,n,i,c,u,h,S);if(!h_(u,qp)&&!u.includes("*")&&ef(d,u)){const F=d[u];return E(F,"",!1,u)}const P=fN(gi(ET(d),F=>F.includes("*")||h_(F,"/")),I2e);for(const F of P)if(n.features&16&&k(F,u)){const $=d[F],J=F.indexOf("*"),X=u.substring(F.substring(0,J).length,u.length-(F.length-1-J));return E($,X,!0,F)}else if(h_(F,"*")&&qf(u,F.substring(0,F.length-1))){const $=d[F],J=u.substring(F.length-1);return E($,J,!0,F)}else if(qf(u,F)){const $=d[F],J=u.substring(F.length);return E($,J,!1,F)}function k(F,$){if(h_(F,"*"))return!1;const J=F.indexOf("*");return J===-1?!1:qf($,F.substring(0,J))&&h_($,F.substring(J+1))}}function kLe(e,n,i,c,u,d,h){return S;function S(E,P,k,F){if(typeof E=="string"){if(!k&&P.length>0&&!h_(E,"/"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);if(!qf(E,"./")){if(h&&!qf(E,"../")&&!qf(E,"/")&&!nE(E)){const Pe=k?E.replace(/\*/g,P):E+P;ix(n,N.Using_0_subpath_1_with_target_2,"imports",F,Pe),ix(n,N.Resolving_module_0_from_1,Pe,d.packageDirectory+"/");const dt=wW(n.features,Pe,d.packageDirectory+"/",n.compilerOptions,n.host,i,e,!1,c,n.conditions);return C2(dt.resolvedModule?{path:dt.resolvedModule.resolvedFileName,extension:dt.resolvedModule.extension,packageId:dt.resolvedModule.packageId,originalPath:dt.resolvedModule.originalPath,resolvedUsingTsExtension:dt.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0)}const ae=(V2(E)?qc(E).slice(1):qc(E)).slice(1);if(ae.includes("..")||ae.includes(".")||ae.includes("node_modules"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);const ve=vl(d.packageDirectory,E),we=qc(P);if(we.includes("..")||we.includes(".")||we.includes("node_modules"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);n.traceEnabled&&Df(n.host,N.Using_0_subpath_1_with_target_2,h?"imports":"exports",F,k?E.replace(/\*/g,P):E+P);const Fe=$(k?ve.replace(/\*/g,P):ve+P),et=X(Fe,P,vl(d.packageDirectory,"package.json"),h);return et||C2(fF(d,DLe(e,Fe,!1,n)))}else if(typeof E=="object"&&E!==null)if(Array.isArray(E)){if(!Nt(E))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);for(const ie of E){const ae=S(ie,P,k,F);if(ae)return ae}}else{ix(n,N.Entering_conditional_exports);for(const ie of ET(E))if(ie==="default"||n.conditions.includes(ie)||AQ(n.conditions,ie)){ix(n,N.Matched_0_condition_1,h?"imports":"exports",ie);const ae=E[ie],ve=S(ae,P,k,F);if(ve)return ix(n,N.Resolved_under_condition_0,ie),ix(n,N.Exiting_conditional_exports),ve;ix(n,N.Failed_to_resolve_under_condition_0,ie)}else ix(n,N.Saw_non_matching_condition_0,ie);ix(n,N.Exiting_conditional_exports);return}else if(E===null)return n.traceEnabled&&Df(n.host,N.package_json_scope_0_explicitly_maps_specifier_1_to_null,d.packageDirectory,u),C2(void 0);return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);function $(ie){var ae,ve;return ie===void 0?ie:vf(ie,(ve=(ae=n.host).getCurrentDirectory)==null?void 0:ve.call(ae))}function J(ie,ae){return Su(vl(ie,ae))}function X(ie,ae,ve,we){var Fe,et,Pe,dt;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!ie.includes("/node_modules/")&&(!n.compilerOptions.configFile||OE(d.packageDirectory,$(n.compilerOptions.configFile.fileName),!IQ(n)))){const ct=QC({useCaseSensitiveFileNames:()=>IQ(n)}),Ct=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){const Lt=$(zW(n.compilerOptions,()=>[],((et=(Fe=n.host).getCurrentDirectory)==null?void 0:et.call(Fe))||"",ct));Ct.push(Lt)}else if(n.requestContainingDirectory){const Lt=$(vl(n.requestContainingDirectory,"index.ts")),Ze=$(zW(n.compilerOptions,()=>[Lt,$(ve)],((dt=(Pe=n.host).getCurrentDirectory)==null?void 0:dt.call(Pe))||"",ct));Ct.push(Ze);let Ke=Su(Ze);for(;Ke&&Ke.length>1;){const st=qc(Ke);st.pop();const It=Iy(st);Ct.unshift(It),Ke=Su(It)}}Ct.length>1&&n.reportDiagnostic(W_(we?N.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,ae===""?".":ae,ve));for(const Lt of Ct){const Ze=Ie(Lt);for(const Ke of Ze)if(OE(Ke,ie,!IQ(n))){const st=ie.slice(Ke.length+1),It=vl(Lt,st),Yt=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Et of Yt)if(mm(It,Et)){const at=Mde(It);for(const Qt of at){if(!uae(e,Qt))continue;const nn=Vre(It,Qt,Et,!IQ(n));if(n.host.fileExists(nn))return C2(fF(d,DLe(e,nn,!1,n)))}}}}}return;function Ie(ct){var Ct,Lt;const Ze=n.compilerOptions.configFile?((Lt=(Ct=n.host).getCurrentDirectory)==null?void 0:Lt.call(Ct))||"":ct,Ke=[];return n.compilerOptions.declarationDir&&Ke.push($(J(Ze,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&Ke.push($(J(Ze,n.compilerOptions.outDir))),Ke}}}}function AQ(e,n){if(!e.includes("types")||!qf(n,"types@"))return!1;const i=yN.tryParse(n.substring(6));return i?i.test(At):!1}function k2e(e,n,i,c,u,d){return tme(e,n,i,c,!1,u,d)}function dHe(e,n,i){return tme(4,e,n,i,!0,void 0,void 0)}function tme(e,n,i,c,u,d,h){const S=c.features===0?void 0:c.features&32?99:1,E=e&5,P=e&-6;if(E){ix(c,N.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,PW(E));const F=k(E);if(F)return F}if(P&&!u)return ix(c,N.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,PW(P)),k(P);function k(F){return jC($1(i),$=>{if(Jg($)!=="node_modules"){const J=rx(d,n,S,$,h,c);return J||C2(CQ(F,n,$,c,u,d,h))}})}}function CQ(e,n,i,c,u,d,h){const S=vl(i,"node_modules"),E=O0(S,c.host);if(!E&&c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,S),!u){const P=_ae(e,n,S,E,c,d,h);if(P)return P}if(e&4){const P=vl(S,"@types");let k=E;return E&&!O0(P,c.host)&&(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,P),k=!1),_ae(4,PLe(n,c),P,k,c,d,h)}}function _ae(e,n,i,c,u,d,h){var S,E;const P=hf(vl(i,n)),{packageName:k,rest:F}=fae(n),$=vl(i,k);let J,X=A6(P,!c,u);if(F!==""&&X&&(!(u.features&8)||!ef(((S=J=A6($,!c,u))==null?void 0:S.contents.packageJsonContent)??Yn,"exports"))){const ve=tj(e,P,!c,u);if(ve)return Hpe(ve);const we=D2e(e,P,!c,u,X.contents.packageJsonContent,EQ(X,u));return fF(X,we)}const ie=(ve,we,Fe,et)=>{let Pe=(F||!(et.features&32))&&tj(ve,we,Fe,et)||D2e(ve,we,Fe,et,X&&X.contents.packageJsonContent,X&&EQ(X,et));return!Pe&&X&&(X.contents.packageJsonContent.exports===void 0||X.contents.packageJsonContent.exports===null)&&et.features&32&&(Pe=tj(ve,vl(we,"index.js"),Fe,et)),fF(X,Pe)};if(F!==""&&(X=J??A6($,!c,u)),X&&X.contents.packageJsonContent.exports&&u.features&8)return(E=g$(X,e,vl(".",F),u,d,h))==null?void 0:E.value;const ae=F!==""&&X?EQ(X,u):void 0;if(ae){u.traceEnabled&&Df(u.host,N.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ae.version,At,F);const ve=c&&O0($,u.host),we=dae(e,F,$,ae.paths,void 0,ie,!ve,u);if(we)return we.value}return ie(e,P,!c,u)}function dae(e,n,i,c,u,d,h,S){u||(u=qH(c));const E=aoe(u,n);if(E){const P=As(E)?void 0:pTe(E,n),k=As(E)?E:_v(E);return S.traceEnabled&&Df(S.host,N.Module_name_0_matched_pattern_1,n,k),{value:Ot(c[k],$=>{const J=P?$.replace("*",P):$,X=hf(vl(i,J));S.traceEnabled&&Df(S.host,N.Trying_substitution_0_candidate_module_location_Colon_1,$,J);const ie=OT($);if(ie!==void 0){const ae=p$(X,h,S);if(ae!==void 0)return Hpe({path:ae,ext:ie,resolvedUsingTsExtension:void 0})}return d(e,X,h||!O0(ws(X),S.host),S)})}}}function PLe(e,n){const i=nj(e);return n.traceEnabled&&i!==e&&Df(n.host,N.Scoped_package_detected_looking_in_0,i),i}function pae(e){return`@types/${nj(e)}`}function nj(e){if(qf(e,"@")){const n=e.replace(qp,N2e);if(n!==e)return n.slice(1)}return e}function l4(e){const n=xf(e,"@types/");return n!==e?DQ(n):e}function DQ(e){return e.includes(N2e)?"@"+e.replace(N2e,qp):e}function rx(e,n,i,c,u,d){const h=e&&e.getFromNonRelativeNameCache(n,i,c,u);if(h)return d.traceEnabled&&Df(d.host,N.Resolution_for_module_0_was_found_in_cache_from_location_1,n,c),d.resultFromCache=h,{value:h.resolvedModule&&{path:h.resolvedModule.resolvedFileName,originalPath:h.resolvedModule.originalPath||!0,extension:h.resolvedModule.extension,packageId:h.resolvedModule.packageId,resolvedUsingTsExtension:h.resolvedModule.resolvedUsingTsExtension}}}function C6(e,n,i,c,u,d){const h=DR(i,c),S=[],E=[],P=ws(n),k=[],F={compilerOptions:i,host:c,traceEnabled:h,failedLookupLocations:S,affectingLocations:E,packageJsonInfoCache:u,features:0,conditions:[],requestContainingDirectory:P,reportDiagnostic:X=>void k.push(X),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},$=J(5)||J(2|(i.resolveJsonModule?8:0));return Jpe(e,$&&$.value,($==null?void 0:$.value)&&RW($.value.path),S,E,k,F,u);function J(X){const ie=iHe(X,e,P,TQ,F);if(ie)return{value:ie};if(Kv(e)){const ae=hf(vl(P,e));return C2(TQ(X,ae,!1,F))}else{const ae=jC(P,ve=>{const we=rx(u,e,void 0,ve,d,F);if(we)return we;const Fe=hf(vl(ve,e));return C2(TQ(X,Fe,!1,F))});if(ae)return ae;if(X&5){let ve=dHe(e,P,F);return X&4&&(ve??(ve=nme(e,F))),ve}}}}function nme(e,n){if(n.compilerOptions.typeRoots)for(const i of n.compilerOptions.typeRoots){const c=b2e(i,e,n),u=O0(i,n.host);!u&&n.traceEnabled&&Df(n.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,i);const d=tj(4,c,!u,n);if(d){const S=d$(d.path),E=S?A6(S,!1,n):void 0;return C2(fF(E,d))}const h=SQ(4,c,!u,n);if(h)return C2(h)}}function MW(e,n){return!!e.allowImportingTsExtensions||n&&Zb(n)}function P2e(e,n,i,c,u,d){const h=DR(i,c);h&&Df(c,N.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,e,u);const S=[],E=[],P=[],k={compilerOptions:i,host:c,traceEnabled:h,failedLookupLocations:S,affectingLocations:E,packageJsonInfoCache:d,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:$=>void P.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},F=CQ(4,e,u,k,!1,void 0,void 0);return YUe(F,!0,S,E,P,k.resultFromCache,void 0)}function C2(e){return e!==void 0?{value:e}:void 0}function ix(e,n,...i){e.traceEnabled&&Df(e.host,n,...i)}function IQ(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var NLe,kR,mae,IP,N2e,rj=G({"src/compiler/moduleNameResolver.ts"(){md(),kR=vl("node_modules","@types"),mae=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(mae||{}),IP="/node_modules/",N2e="__"}});function YN(e,n){return e.body&&!e.body.parent&&(kl(e.body,e),Q2(e.body,!1)),e.body?wLe(e.body,n):1}function wLe(e,n=new Map){const i=vm(e);if(n.has(i))return n.get(i)||0;n.set(i,void 0);const c=Bst(e,n);return n.set(i,c),c}function Bst(e,n){switch(e.kind){case 264:case 265:return 0;case 266:if(G8(e))return 2;break;case 272:case 271:if(!ul(e,32))return 0;break;case 278:const i=e;if(!i.moduleSpecifier&&i.exportClause&&i.exportClause.kind===279){let c=0;for(const u of i.exportClause.elements){const d=pHe(u,n);if(d>c&&(c=d),c===1)return c}return c}break;case 268:{let c=0;return s_(e,u=>{const d=wLe(u,n);switch(d){case 0:return;case 2:c=2;return;case 1:return c=1,!0;default:re.assertNever(d)}}),c}case 267:return YN(e,n);case 80:if(e.flags&4096)return 0}return 1}function pHe(e,n){const i=e.propertyName||e.name;let c=e.parent;for(;c;){if(Ou(c)||kh(c)||Nu(c)){const u=c.statements;let d;for(const h of u)if(ec(h,i)){h.parent||(kl(h,c),Q2(h,!1));const S=wLe(h,n);if((d===void 0||S>d)&&(d=S),d===1)return d;h.kind===271&&(d=1)}if(d!==void 0)return d}c=c.parent}return 1}function ij(e){return re.attachFlowNodeDebugInfo(e),e}function w3(e,n){var i,c;cf("beforeBind"),(i=Zh)==null||i.logStartBindFile(""+e.fileName),mHe(e,n),(c=Zh)==null||c.logStopBindFile(),cf("afterBind"),Tb("Bind","beforeBind","afterBind")}function RLe(){var e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt=!1,Ie=0,ct,Ct,Lt={flags:1},Ze={flags:1},Ke=ze();return It;function st(Ee,Gt,...sr){return Ud(ts(Ee)||e,Ee,Gt,...sr)}function It(Ee,Gt){var sr,Ii;e=Ee,n=Gt,i=iu(n),Pe=Yt(e,Gt),Ct=new Set,Ie=0,ct=W0.getSymbolConstructor(),re.attachFlowNodeDebugInfo(Lt),re.attachFlowNodeDebugInfo(Ze),e.locals||((sr=ps)==null||sr.push(ps.Phase.Bind,"bindSourceFile",{path:e.path},!0),Xn(e),(Ii=ps)==null||Ii.pop(),e.symbolCount=Ie,e.classifiableNames=Ct,Og()),e=void 0,n=void 0,i=void 0,c=void 0,u=void 0,d=void 0,h=void 0,S=void 0,E=void 0,P=!1,k=void 0,F=void 0,$=void 0,J=void 0,X=void 0,ie=void 0,ae=void 0,we=void 0,Fe=!1,dt=!1,et=0}function Yt(Ee,Gt){return hv(Gt,"alwaysStrict")&&!Ee.isDeclarationFile?!0:!!Ee.externalModuleIndicator}function Et(Ee,Gt){return Ie++,new ct(Ee,Gt)}function at(Ee,Gt,sr){Ee.flags|=sr,Gt.symbol=Ee,Ee.declarations=ST(Ee.declarations,Gt),sr&1955&&!Ee.exports&&(Ee.exports=zd()),sr&6240&&!Ee.members&&(Ee.members=zd()),Ee.constEnumOnlyModule&&Ee.flags&304&&(Ee.constEnumOnlyModule=!1),sr&111551&&Cie(Ee,Gt)}function Qt(Ee){if(Ee.kind===277)return Ee.isExportEquals?"export=":"default";const Gt=i_(Ee);if(Gt){if(dh(Ee)){const sr=K2(Gt);return JC(Ee)?"__global":`"${sr}"`}if(Gt.kind===167){const sr=Gt.expression;if(Ox(sr))return ey(sr.text);if(yH(sr))return Cf(sr.operator)+sr.operand.text;re.fail("Only computed properties with literal names have declaration names")}if(Lu(Gt)){const sr=$b(Ee);if(!sr)return;const Ii=sr.symbol;return WN(Ii,Gt.escapedText)}return Fm(Gt)?bR(Gt):Qv(Gt)?nI(Gt):void 0}switch(Ee.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(jy(Ee)===2)return"export=";re.fail("Unknown binary declaration kind");break;case 324:return UL(Ee)?"__new":"__call";case 169:return re.assert(Ee.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${re.formatSyntaxKind(Ee.parent.kind)}, expected JSDocFunctionType`),"arg"+Ee.parent.parameters.indexOf(Ee)}}function nn(Ee){return mp(Ee)?hm(Ee.name):Ic(re.checkDefined(Qt(Ee)))}function Rn(Ee,Gt,sr,Ii,Ja,wa,wi){re.assert(wi||!tI(sr));const Vl=ul(sr,2048)||gy(sr)&&sr.name.escapedText==="default",Uf=wi?"__computed":Vl&&Gt?"default":Qt(sr);let Y_;if(Uf===void 0)Y_=Et(0,"__missing");else if(Y_=Ee.get(Uf),Ii&2885600&&Ct.add(Uf),!Y_)Ee.set(Uf,Y_=Et(0,Uf)),wa&&(Y_.isReplaceableByMethod=!0);else{if(wa&&!Y_.isReplaceableByMethod)return Y_;if(Y_.flags&Ja){if(Y_.isReplaceableByMethod)Ee.set(Uf,Y_=Et(0,Uf));else if(!(Ii&3&&Y_.flags&67108864)){mp(sr)&&kl(sr.name,sr);let Fg=Y_.flags&2?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0,sv=!0;(Y_.flags&384||Ii&384)&&(Fg=N.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,sv=!1);let by=!1;Nt(Y_.declarations)&&(Vl||Y_.declarations&&Y_.declarations.length&&sr.kind===277&&!sr.isExportEquals)&&(Fg=N.A_module_cannot_have_multiple_default_exports,sv=!1,by=!0);const _b=[];z0(sr)&&ny(sr.type)&&ul(sr,32)&&Y_.flags&2887656&&_b.push(st(sr,N.Did_you_mean_0,`export type { ${Ic(sr.name.escapedText)} }`));const f_=i_(sr)||sr;Ot(Y_.declarations,(i1,n2)=>{const Vv=i_(i1)||i1,su=sv?st(Vv,Fg,nn(i1)):st(Vv,Fg);e.bindDiagnostics.push(by?ml(su,st(f_,n2===0?N.Another_export_default_is_here:N.and_here)):su),by&&_b.push(st(Vv,N.The_first_export_default_is_here))});const zh=sv?st(f_,Fg,nn(sr)):st(f_,Fg);e.bindDiagnostics.push(ml(zh,..._b)),Y_=Et(0,Uf)}}}return at(Y_,sr,Ii),Y_.parent?re.assert(Y_.parent===Gt,"Existing symbol parent should match new one"):Y_.parent=Gt,Y_}function cn(Ee,Gt,sr){const Ii=!!(Eb(Ee)&32)||qt(Ee);if(Gt&2097152)return Ee.kind===281||Ee.kind===271&&Ii?Rn(u.symbol.exports,u.symbol,Ee,Gt,sr):(re.assertNode(u,XD),Rn(u.locals,void 0,Ee,Gt,sr));if(b2(Ee)&&re.assert(Cs(Ee)),!dh(Ee)&&(Ii||u.flags&128)){if(!XD(u)||!u.locals||ul(Ee,2048)&&!Qt(Ee))return Rn(u.symbol.exports,u.symbol,Ee,Gt,sr);const Ja=Gt&111551?1048576:0,wa=Rn(u.locals,void 0,Ee,Ja,sr);return wa.exportSymbol=Rn(u.symbol.exports,u.symbol,Ee,Gt,sr),Ee.localSymbol=wa,wa}else return re.assertNode(u,XD),Rn(u.locals,void 0,Ee,Gt,sr)}function qt(Ee){if(Ee.parent&&py(Ee)&&(Ee=Ee.parent),!b2(Ee))return!1;if(!jx(Ee)&&Ee.fullName)return!0;const Gt=i_(Ee);return Gt?!!(NS(Gt.parent)&&Qm(Gt.parent)||PT(Gt.parent)&&Eb(Gt.parent)&32):!1}function Kt(Ee,Gt){const sr=u,Ii=d,Ja=h;if(Gt&1?(Ee.kind!==219&&(d=u),u=h=Ee,Gt&32&&(u.locals=zd(),bl(u))):Gt&2&&(h=Ee,Gt&32&&(h.locals=void 0)),Gt&4){const wa=k,wi=F,Vl=$,Uf=J,Y_=ae,Fg=we,sv=Fe,by=Gt&16&&!ul(Ee,1024)&&!Ee.asteriskToken&&!!v7(Ee)||Ee.kind===175;by||(k=ij({flags:2}),Gt&144&&(k.node=Ee)),J=by||Ee.kind===176||Cs(Ee)&&(Ee.kind===262||Ee.kind===218)?no():void 0,ae=void 0,F=void 0,$=void 0,we=void 0,Fe=!1,En(Ee),Ee.flags&=-5633,!(k.flags&1)&&Gt&8&&y2(Ee.body)&&(Ee.flags|=512,Fe&&(Ee.flags|=1024),Ee.endFlowNode=k),Ee.kind===312&&(Ee.flags|=et,Ee.endFlowNode=k),J&&(ki(J,k),k=qn(J),(Ee.kind===176||Ee.kind===175||Cs(Ee)&&(Ee.kind===262||Ee.kind===218))&&(Ee.returnFlowNode=k)),by||(k=wa),F=wi,$=Vl,J=Uf,ae=Y_,we=Fg,Fe=sv}else Gt&64?(P=!1,En(Ee),re.assertNotNode(Ee,xn),Ee.flags=P?Ee.flags|256:Ee.flags&-257):En(Ee);u=sr,d=Ii,h=Ja}function wr(Ee){Wr(Ee,Gt=>Gt.kind===262?Xn(Gt):void 0),Wr(Ee,Gt=>Gt.kind!==262?Xn(Gt):void 0)}function Wr(Ee,Gt=Xn){Ee!==void 0&&Ot(Ee,Gt)}function jt(Ee){s_(Ee,Xn,Wr)}function En(Ee){const Gt=dt;if(dt=!1,Di(Ee)){jt(Ee),_i(Ee),dt=Gt;return}switch(Ee.kind>=243&&Ee.kind<=259&&!n.allowUnreachableCode&&(Ee.flowNode=k),Ee.kind){case 247:Cu(Ee);break;case 246:yf(Ee);break;case 248:w_(Ee);break;case 249:case 250:Eu(Ee);break;case 245:He(Ee);break;case 253:case 257:Hn(Ee);break;case 252:case 251:Pr(Ee);break;case 258:Bt(Ee);break;case 255:ln(Ee);break;case 269:Wn(Ee);break;case 296:$r(Ee);break;case 244:Ge(Ee);break;case 256:Ei(Ee);break;case 224:go(Ee);break;case 225:Ao(Ee);break;case 226:if(wy(Ee)){dt=Gt,Io(Ee);return}Ke(Ee);break;case 220:Ce(Ee);break;case 227:kt(Ee);break;case 260:Mt(Ee);break;case 211:case 212:Pc(Ee);break;case 213:hc(Ee);break;case 235:Cc(Ee);break;case 353:case 345:case 347:Nn(Ee);break;case 312:{wr(Ee.statements),Xn(Ee.endOfFileToken);break}case 241:case 268:wr(Ee.statements);break;case 208:ge(Ee);break;case 169:mn(Ee);break;case 210:case 209:case 303:case 230:dt=Gt;default:jt(Ee);break}_i(Ee),dt=Gt}function fr(Ee){switch(Ee.kind){case 80:case 81:case 110:case 211:case 212:return Vr(Ee);case 213:return Pn(Ee);case 217:case 235:return fr(Ee.expression);case 226:return Ki(Ee);case 224:return Ee.operator===54&&fr(Ee.operand);case 221:return fr(Ee.expression)}return!1}function Tr(Ee){return Uh(Ee)||(Ac(Ee)||E3(Ee)||fE(Ee))&&Tr(Ee.expression)||Ds(Ee)&&Ee.operatorToken.kind===28&&Tr(Ee.right)||Hm(Ee)&&(Ox(Ee.argumentExpression)||Tg(Ee.argumentExpression))&&Tr(Ee.expression)||Zv(Ee)&&Tr(Ee.left)}function Vr(Ee){return Tr(Ee)||fy(Ee)&&Vr(Ee.expression)}function Pn(Ee){if(Ee.arguments){for(const Gt of Ee.arguments)if(Vr(Gt))return!0}return!!(Ee.expression.kind===211&&Vr(Ee.expression.expression))}function Fr(Ee,Gt){return yk(Ee)&&io(Ee.expression)&&Cm(Gt)}function Ki(Ee){switch(Ee.operatorToken.kind){case 64:case 76:case 77:case 78:return Vr(Ee.left);case 35:case 36:case 37:case 38:return io(Ee.left)||io(Ee.right)||Fr(Ee.right,Ee.left)||Fr(Ee.left,Ee.right)||_y(Ee.right)&&fr(Ee.left)||_y(Ee.left)&&fr(Ee.right);case 104:return io(Ee.left);case 103:return fr(Ee.right);case 28:return fr(Ee.right)}return!1}function io(Ee){switch(Ee.kind){case 217:return io(Ee.expression);case 226:switch(Ee.operatorToken.kind){case 64:return io(Ee.left);case 28:return io(Ee.right)}}return Vr(Ee)}function no(){return ij({flags:4,antecedents:void 0})}function os(){return ij({flags:8,antecedents:void 0})}function Mo(Ee,Gt,sr){return ij({flags:1024,target:Ee,antecedents:Gt,antecedent:sr})}function $i(Ee){Ee.flags|=Ee.flags&2048?4096:2048}function ki(Ee,Gt){!(Gt.flags&1)&&!ni(Ee.antecedents,Gt)&&((Ee.antecedents||(Ee.antecedents=[])).push(Gt),$i(Gt))}function gc(Ee,Gt,sr){return Gt.flags&1?Gt:sr?(sr.kind===112&&Ee&64||sr.kind===97&&Ee&32)&&!BU(sr)&&!R8(sr.parent)?Lt:fr(sr)?($i(Gt),ij({flags:Ee,antecedent:Gt,node:sr})):Gt:Ee&32?Gt:Lt}function Wl(Ee,Gt,sr,Ii){return $i(Ee),ij({flags:128,antecedent:Ee,switchStatement:Gt,clauseStart:sr,clauseEnd:Ii})}function Jc(Ee,Gt,sr){$i(Gt);const Ii=ij({flags:Ee,antecedent:Gt,node:sr});return ae&&ki(ae,Ii),Ii}function au(Ee,Gt){return $i(Ee),ij({flags:512,antecedent:Ee,node:Gt})}function qn(Ee){const Gt=Ee.antecedents;return Gt?Gt.length===1?Gt[0]:Ee:Lt}function za(Ee){const Gt=Ee.parent;switch(Gt.kind){case 245:case 247:case 246:return Gt.expression===Ee;case 248:case 227:return Gt.condition===Ee}return!1}function Ia(Ee){for(;;)if(Ee.kind===217)Ee=Ee.expression;else if(Ee.kind===224&&Ee.operator===54)Ee=Ee.operand;else return DH(Ee)}function zi(Ee){return Wde(rg(Ee))}function na(Ee){for(;fE(Ee.parent)||vk(Ee.parent)&&Ee.parent.operator===54;)Ee=Ee.parent;return!za(Ee)&&!Ia(Ee.parent)&&!(fy(Ee.parent)&&Ee.parent.expression===Ee)}function _a(Ee,Gt,sr,Ii){const Ja=X,wa=ie;X=sr,ie=Ii,Ee(Gt),X=Ja,ie=wa}function us(Ee,Gt,sr){_a(Xn,Ee,Gt,sr),(!Ee||!zi(Ee)&&!Ia(Ee)&&!(fy(Ee)&&Vz(Ee)))&&(ki(Gt,gc(32,k,Ee)),ki(sr,gc(64,k,Ee)))}function Au(Ee,Gt,sr){const Ii=F,Ja=$;F=Gt,$=sr,Xn(Ee),F=Ii,$=Ja}function Qu(Ee,Gt){let sr=we;for(;sr&&Ee.parent.kind===256;)sr.continueTarget=Gt,sr=sr.next,Ee=Ee.parent;return Gt}function Cu(Ee){const Gt=Qu(Ee,os()),sr=no(),Ii=no();ki(Gt,k),k=Gt,us(Ee.expression,sr,Ii),k=qn(sr),Au(Ee.statement,Ii,Gt),ki(Gt,k),k=qn(Ii)}function yf(Ee){const Gt=os(),sr=Qu(Ee,no()),Ii=no();ki(Gt,k),k=Gt,Au(Ee.statement,Ii,sr),ki(sr,k),k=qn(sr),us(Ee.expression,Gt,Ii),k=qn(Ii)}function w_(Ee){const Gt=Qu(Ee,os()),sr=no(),Ii=no();Xn(Ee.initializer),ki(Gt,k),k=Gt,us(Ee.condition,sr,Ii),k=qn(sr),Au(Ee.statement,Ii,Gt),Xn(Ee.incrementor),ki(Gt,k),k=qn(Ii)}function Eu(Ee){const Gt=Qu(Ee,os()),sr=no();Xn(Ee.expression),ki(Gt,k),k=Gt,Ee.kind===250&&Xn(Ee.awaitModifier),ki(sr,k),Xn(Ee.initializer),Ee.initializer.kind!==261&&Sr(Ee.initializer),Au(Ee.statement,sr,Gt),ki(Gt,k),k=qn(sr)}function He(Ee){const Gt=no(),sr=no(),Ii=no();us(Ee.expression,Gt,sr),k=qn(Gt),Xn(Ee.thenStatement),ki(Ii,k),k=qn(sr),Xn(Ee.elseStatement),ki(Ii,k),k=qn(Ii)}function Hn(Ee){Xn(Ee.expression),Ee.kind===253&&(Fe=!0,J&&ki(J,k)),k=Lt}function dr(Ee){for(let Gt=we;Gt;Gt=Gt.next)if(Gt.name===Ee)return Gt}function Mr(Ee,Gt,sr){const Ii=Ee.kind===252?Gt:sr;Ii&&(ki(Ii,k),k=Lt)}function Pr(Ee){if(Xn(Ee.label),Ee.label){const Gt=dr(Ee.label.escapedText);Gt&&(Gt.referenced=!0,Mr(Ee,Gt.breakTarget,Gt.continueTarget))}else Mr(Ee,F,$)}function Bt(Ee){const Gt=J,sr=ae,Ii=no(),Ja=no();let wa=no();if(Ee.finallyBlock&&(J=Ja),ki(wa,k),ae=wa,Xn(Ee.tryBlock),ki(Ii,k),Ee.catchClause&&(k=qn(wa),wa=no(),ki(wa,k),ae=wa,Xn(Ee.catchClause),ki(Ii,k)),J=Gt,ae=sr,Ee.finallyBlock){const wi=no();wi.antecedents=Hi(Hi(Ii.antecedents,wa.antecedents),Ja.antecedents),k=wi,Xn(Ee.finallyBlock),k.flags&1?k=Lt:(J&&Ja.antecedents&&ki(J,Mo(wi,Ja.antecedents,k)),ae&&wa.antecedents&&ki(ae,Mo(wi,wa.antecedents,k)),k=Ii.antecedents?Mo(wi,Ii.antecedents,k):Lt)}else k=qn(Ii)}function ln(Ee){const Gt=no();Xn(Ee.expression);const sr=F,Ii=ve;F=Gt,ve=k,Xn(Ee.caseBlock),ki(Gt,k);const Ja=Ot(Ee.caseBlock.clauses,wa=>wa.kind===297);Ee.possiblyExhaustive=!Ja&&!Gt.antecedents,Ja||ki(Gt,Wl(ve,Ee,0,0)),F=sr,ve=Ii,k=qn(Gt)}function Wn(Ee){const Gt=Ee.clauses,sr=Ee.parent.expression.kind===112||fr(Ee.parent.expression);let Ii=Lt;for(let Ja=0;Jary(sr)||my(sr))}function G_(Ee){Ee.flags&33554432&&!Bl(Ee)?Ee.flags|=128:Ee.flags&=-129}function u_(Ee){if(G_(Ee),dh(Ee))if(ul(Ee,32)&&Nm(Ee,N.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),iY(Ee))xa(Ee);else{let Gt;if(Ee.name.kind===11){const{text:Ii}=Ee.name;Gt=c6(Ii),Gt===void 0&&Nm(Ee.name,N.Pattern_0_can_have_at_most_one_Asterisk_character,Ii)}const sr=Tc(Ee,512,110735);e.patternAmbientModules=ur(e.patternAmbientModules,Gt&&!As(Gt)?{pattern:Gt,symbol:sr}:void 0)}else{const Gt=xa(Ee);if(Gt!==0){const{symbol:sr}=Ee;sr.constEnumOnlyModule=!(sr.flags&304)&&Gt===2&&sr.constEnumOnlyModule!==!1}}}function xa(Ee){const Gt=YN(Ee),sr=Gt!==0;return Tc(Ee,sr?512:1024,sr?110735:0),Gt}function Ym(Ee){const Gt=Et(131072,Qt(Ee));at(Gt,Ee,131072);const sr=Et(2048,"__type");at(sr,Ee,2048),sr.members=zd(),sr.members.set(Gt.escapedName,Gt)}function mf(Ee){return xg(Ee,4096,"__object")}function Cp(Ee){return xg(Ee,4096,"__jsxAttributes")}function Yg(Ee,Gt,sr){return Tc(Ee,Gt,sr)}function xg(Ee,Gt,sr){const Ii=Et(Gt,sr);return Gt&106508&&(Ii.parent=u.symbol),at(Ii,Ee,Gt),Ii}function Wy(Ee,Gt,sr){switch(h.kind){case 267:cn(Ee,Gt,sr);break;case 312:if(aE(u)){cn(Ee,Gt,sr);break}default:re.assertNode(h,XD),h.locals||(h.locals=zd(),bl(h)),Rn(h.locals,void 0,Ee,Gt,sr)}}function Og(){if(!E)return;const Ee=u,Gt=S,sr=h,Ii=c,Ja=k;for(const wa of E){const wi=wa.parent.parent;u=gie(wi)||e,h=QD(wi)||e,k=ij({flags:2}),c=wa,Xn(wa.typeExpression);const Vl=i_(wa);if((jx(wa)||!wa.fullName)&&Vl&&NS(Vl.parent)){const Uf=Qm(Vl.parent);if(Uf){Ig(e.symbol,Vl.parent,Uf,!!Ua(Vl,Fg=>Ac(Fg)&&Fg.name.escapedText==="prototype"),!1);const Y_=u;switch(XM(Vl.parent)){case 1:case 2:aE(e)?u=e:u=void 0;break;case 4:u=Vl.parent.expression;break;case 3:u=Vl.parent.expression.name;break;case 5:u=R3(e,Vl.parent.expression)?e:Ac(Vl.parent.expression)?Vl.parent.expression.name:Vl.parent.expression;break;case 0:return re.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&cn(wa,524288,788968),u=Y_}}else jx(wa)||!wa.fullName||wa.fullName.kind===80?(c=wa.parent,Wy(wa,524288,788968)):Xn(wa.fullName)}u=Ee,S=Gt,h=sr,c=Ii,k=Ja}function pl(Ee){if(!e.parseDiagnostics.length&&!(Ee.flags&33554432)&&!(Ee.flags&16777216)&&!kde(Ee)){const Gt=uP(Ee);if(Gt===void 0)return;Pe&&Gt>=119&&Gt<=127?e.bindDiagnostics.push(st(Ee,R_(Ee),hm(Ee))):Gt===135?Bv(e)&&GE(Ee)?e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,hm(Ee))):Ee.flags&65536&&e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,hm(Ee))):Gt===127&&Ee.flags&16384&&e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,hm(Ee)))}}function R_(Ee){return $b(Ee)?N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:N.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function og(Ee){Ee.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(st(Ee,N.constructor_is_a_reserved_word,hm(Ee))))}function km(Ee){Pe&&ib(Ee.left)&&pk(Ee.operatorToken.kind)&&hh(Ee,Ee.left)}function M_(Ee){Pe&&Ee.variableDeclaration&&hh(Ee,Ee.variableDeclaration.name)}function oy(Ee){if(Pe&&Ee.expression.kind===80){const Gt=zL(e,Ee.expression);e.bindDiagnostics.push(Pp(e,Gt.start,Gt.length,N.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function bE(Ee){return xn(Ee)&&(Ee.escapedText==="eval"||Ee.escapedText==="arguments")}function hh(Ee,Gt){if(Gt&&Gt.kind===80){const sr=Gt;if(bE(sr)){const Ii=zL(e,Gt);e.bindDiagnostics.push(Pp(e,Ii.start,Ii.length,qo(Ee),Kr(sr)))}}}function qo(Ee){return $b(Ee)?N.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?N.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:N.Invalid_use_of_0_in_strict_mode}function d_(Ee){Pe&&hh(Ee,Ee.name)}function Ka(Ee){return $b(Ee)?N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Qi(Ee){if(i<2&&h.kind!==312&&h.kind!==267&&!bd(h)){const Gt=zL(e,Ee);e.bindDiagnostics.push(Pp(e,Gt.start,Gt.length,Ka(Ee)))}}function Pm(Ee){Pe&&hh(Ee,Ee.operand)}function Ag(Ee){Pe&&(Ee.operator===46||Ee.operator===47)&&hh(Ee,Ee.operand)}function va(Ee){Pe&&Nm(Ee,N.with_statements_are_not_allowed_in_strict_mode)}function x0(Ee){Pe&&iu(n)>=2&&(cde(Ee.statement)||Xg(Ee.statement))&&Nm(Ee.label,N.A_label_is_not_allowed_here)}function Nm(Ee,Gt,...sr){const Ii=M0(e,Ee.pos);e.bindDiagnostics.push(Pp(e,Ii.start,Ii.length,Gt,...sr))}function Md(Ee,Gt,sr){fe(Ee,Gt,Gt,sr)}function fe(Ee,Gt,sr,Ii){_n(Ee,{pos:v2(Gt,e),end:sr.end},Ii)}function _n(Ee,Gt,sr){const Ii=Pp(e,Gt.pos,Gt.end-Gt.pos,sr);Ee?e.bindDiagnostics.push(Ii):e.bindSuggestionDiagnostics=ur(e.bindSuggestionDiagnostics,{...Ii,category:2})}function Xn(Ee){if(!Ee)return;kl(Ee,c),ps&&(Ee.tracingPath=e.path);const Gt=Pe;if(xs(Ee),Ee.kind>165){const sr=c;c=Ee;const Ii=R2e(Ee);Ii===0?En(Ee):Kt(Ee,Ii),c=sr}else{const sr=c;Ee.kind===1&&(c=Ee),_i(Ee),c=sr}Pe=Gt}function _i(Ee){if(NT(Ee))if(Cs(Ee))for(const Gt of Ee.jsDoc)Xn(Gt);else for(const Gt of Ee.jsDoc)kl(Gt,Ee),Q2(Gt,!1)}function $o(Ee){if(!Pe)for(const Gt of Ee){if(!$2(Gt))return;if(Sc(Gt)){Pe=!0;return}}}function Sc(Ee){const Gt=m7(e,Ee.expression);return Gt==='"use strict"'||Gt==="'use strict'"}function xs(Ee){switch(Ee.kind){case 80:if(Ee.flags&4096){let wi=Ee.parent;for(;wi&&!b2(wi);)wi=wi.parent;Wy(wi,524288,788968);break}case 110:return k&&(kr(Ee)||c.kind===304)&&(Ee.flowNode=k),pl(Ee);case 166:k&&iG(Ee)&&(Ee.flowNode=k);break;case 236:case 108:Ee.flowNode=k;break;case 81:return og(Ee);case 211:case 212:const Gt=Ee;k&&Tr(Gt)&&(Gt.flowNode=k),dY(Gt)&&da(Gt),Cs(Gt)&&e.commonJsModuleIndicator&&jE(Gt)&&!gae(h,"module")&&Rn(e.locals,void 0,Gt.expression,134217729,111550);break;case 226:switch(jy(Ee)){case 1:wp(Ee);break;case 2:Xp(Ee);break;case 3:A_(Ee.left,Ee);break;case 6:Hu(Ee);break;case 4:sg(Ee);break;case 5:const wi=Ee.left.expression;if(Cs(Ee)&&xn(wi)){const Vl=gae(h,wi.escapedText);if(bie(Vl==null?void 0:Vl.valueDeclaration)){sg(Ee);break}}Dg(Ee);break;case 0:break;default:re.fail("Unknown binary expression special property assignment kind")}return km(Ee);case 299:return M_(Ee);case 220:return oy(Ee);case 225:return Pm(Ee);case 224:return Ag(Ee);case 254:return va(Ee);case 256:return x0(Ee);case 197:P=!0;return;case 182:break;case 168:return pr(Ee);case 169:return t2(Ee);case 260:return xv(Ee);case 208:return Ee.flowNode=k,xv(Ee);case 172:case 171:return Fs(Ee);case 303:case 304:return i0(Ee,4,0);case 306:return i0(Ee,8,900095);case 179:case 180:case 181:return Tc(Ee,131072,0);case 174:case 173:return i0(Ee,8192|(Ee.questionToken?16777216:0),iC(Ee)?0:103359);case 262:return q0(Ee);case 176:return Tc(Ee,16384,0);case 177:return i0(Ee,32768,46015);case 178:return i0(Ee,65536,78783);case 184:case 324:case 330:case 185:return Ym(Ee);case 187:case 329:case 200:return Tl(Ee);case 339:return Lr(Ee);case 210:return mf(Ee);case 218:case 219:return N1(Ee);case 213:switch(jy(Ee)){case 7:return gd(Ee);case 8:return Cg(Ee);case 9:return t_(Ee);case 0:break;default:return re.fail("Unknown call expression assignment declaration kind")}Cs(Ee)&&FS(Ee);break;case 231:case 263:return Pe=!0,dT(Ee);case 264:return Wy(Ee,64,788872);case 265:return Wy(Ee,524288,788968);case 266:return $0(Ee);case 267:return u_(Ee);case 292:return Cp(Ee);case 291:return Yg(Ee,4,0);case 271:case 274:case 276:case 281:return Tc(Ee,2097152,2097152);case 270:return ah(Ee);case 273:return ay(Ee);case 278:return bm(Ee);case 277:return ag(Ee);case 312:return $o(Ee.statements),fc();case 241:if(!bd(Ee.parent))return;case 268:return $o(Ee.statements);case 348:if(Ee.parent.kind===330)return t2(Ee);if(Ee.parent.kind!==329)break;case 355:const Ja=Ee,wa=Ja.isBracketed||Ja.typeExpression&&Ja.typeExpression.type.kind===323?16777220:4;return Tc(Ja,wa,0);case 353:case 345:case 347:return(E||(E=[])).push(Ee);case 346:return Xn(Ee.typeExpression)}}function Fs(Ee){const Gt=xb(Ee),sr=Gt?98304:4,Ii=Gt?13247:0;return i0(Ee,sr|(Ee.questionToken?16777216:0),Ii)}function Tl(Ee){return xg(Ee,2048,"__type")}function fc(){if(G_(e),Bv(e))Gd();else if(Rx(e)){Gd();const Ee=e.symbol;Rn(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=Ee}}function Gd(){xg(e,512,`"${wg(e.fileName)}"`)}function ag(Ee){if(!u.symbol||!u.symbol.exports)xg(Ee,111551,Qt(Ee));else{const Gt=K8(Ee)?2097152:4,sr=Rn(u.symbol.exports,u.symbol,Ee,Gt,67108863);Ee.isExportEquals&&Cie(sr,Ee)}}function ah(Ee){gt(Ee.modifiers)&&e.bindDiagnostics.push(st(Ee,N.Modifiers_cannot_appear_here));const Gt=Nu(Ee.parent)?Bv(Ee.parent)?Ee.parent.isDeclarationFile?void 0:N.Global_module_exports_may_only_appear_in_declaration_files:N.Global_module_exports_may_only_appear_in_module_files:N.Global_module_exports_may_only_appear_at_top_level;Gt?e.bindDiagnostics.push(st(Ee,Gt)):(e.symbol.globalExports=e.symbol.globalExports||zd(),Rn(e.symbol.globalExports,e.symbol,Ee,2097152,2097152))}function bm(Ee){!u.symbol||!u.symbol.exports?xg(Ee,8388608,Qt(Ee)):Ee.exportClause?G0(Ee.exportClause)&&(kl(Ee.exportClause,Ee),Rn(u.symbol.exports,u.symbol,Ee.exportClause,2097152,2097152)):Rn(u.symbol.exports,u.symbol,Ee,8388608,0)}function ay(Ee){Ee.name&&Tc(Ee,2097152,2097152)}function yp(Ee){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=Ee,e.externalModuleIndicator||Gd()),!0)}function Cg(Ee){if(!yp(Ee))return;const Gt=fb(Ee.arguments[0],void 0,(sr,Ii)=>(Ii&&at(Ii,sr,67110400),Ii));Gt&&Rn(Gt.exports,Gt,Ee,1048580,0)}function wp(Ee){if(!yp(Ee))return;const Gt=fb(Ee.left.expression,void 0,(sr,Ii)=>(Ii&&at(Ii,sr,67110400),Ii));if(Gt){const Ii=O9(Ee.right)&&(P9(Ee.left.expression)||jE(Ee.left.expression))?2097152:1048580;kl(Ee.left,Ee),Rn(Gt.exports,Gt,Ee.left,Ii,0)}}function Xp(Ee){if(!yp(Ee))return;const Gt=k9(Ee.right);if(Vie(Gt)||u===e&&R3(e,Gt))return;if(el(Gt)&&jr(Gt.properties,XE)){Ot(Gt.properties,r1);return}const sr=K8(Ee)?2097152:1049092,Ii=Rn(e.symbol.exports,e.symbol,Ee,sr|67108864,0);Cie(Ii,Ee)}function r1(Ee){Rn(e.symbol.exports,e.symbol,Ee,69206016,0)}function sg(Ee){if(re.assert(Cs(Ee)),Ds(Ee)&&Ac(Ee.left)&&Lu(Ee.left.name)||Ac(Ee)&&Lu(Ee.name))return;const sr=RT(Ee,!1,!1);switch(sr.kind){case 262:case 218:let Ii=sr.symbol;if(Ds(sr.parent)&&sr.parent.operatorToken.kind===64){const wi=sr.parent.left;mR(wi)&&bP(wi.expression)&&(Ii=Zm(wi.expression.expression,d))}Ii&&Ii.valueDeclaration&&(Ii.members=Ii.members||zd(),tI(Ee)?Jt(Ee,Ii,Ii.members):Rn(Ii.members,Ii,Ee,67108868,0),at(Ii,Ii.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const Ja=sr.parent,wa=pd(sr)?Ja.symbol.exports:Ja.symbol.members;tI(Ee)?Jt(Ee,Ja.symbol,wa):Rn(wa,Ja.symbol,Ee,67108868,0,!0);break;case 312:if(tI(Ee))break;sr.commonJsModuleIndicator?Rn(sr.symbol.exports,sr.symbol,Ee,1048580,0):Tc(Ee,1,111550);break;case 267:break;default:re.failBadSyntaxKind(sr)}}function Jt(Ee,Gt,sr){Rn(sr,Gt,Ee,4,0,!0,!0),ci(Ee,Gt)}function ci(Ee,Gt){Gt&&(Gt.assignmentDeclarationMembers||(Gt.assignmentDeclarationMembers=new Map)).set(vm(Ee),Ee)}function da(Ee){Ee.expression.kind===110?sg(Ee):mR(Ee)&&Ee.parent.parent.kind===312&&(bP(Ee.expression)?A_(Ee,Ee.parent):um(Ee))}function Hu(Ee){kl(Ee.left,Ee),kl(Ee.right,Ee),Bh(Ee.left.expression,Ee.left,!1,!0)}function t_(Ee){const Gt=Zm(Ee.arguments[0].expression);Gt&&Gt.valueDeclaration&&at(Gt,Gt.valueDeclaration,32),P_(Ee,Gt,!0)}function A_(Ee,Gt){const sr=Ee.expression,Ii=sr.expression;kl(Ii,sr),kl(sr,Ee),kl(Ee,Gt),Bh(Ii,Ee,!0,!0)}function gd(Ee){let Gt=Zm(Ee.arguments[0]);const sr=Ee.parent.parent.kind===312;Gt=Ig(Gt,Ee.arguments[0],sr,!1,!1),P_(Ee,Gt,!1)}function Dg(Ee){var Gt;const sr=Zm(Ee.left.expression,u)||Zm(Ee.left.expression,h);if(!Cs(Ee)&&!qMe(sr))return;const Ii=i3(Ee.left);if(!(xn(Ii)&&((Gt=gae(u,Ii.escapedText))==null?void 0:Gt.flags)&2097152))if(kl(Ee.left,Ee),kl(Ee.right,Ee),xn(Ee.left.expression)&&u===e&&R3(e,Ee.left.expression))wp(Ee);else if(tI(Ee)){xg(Ee,67108868,"__computed");const Ja=Ig(sr,Ee.left.expression,Qm(Ee.left),!1,!1);ci(Ee,Ja)}else um(uc(Ee.left,U8))}function um(Ee){re.assert(!xn(Ee)),kl(Ee.expression,Ee),Bh(Ee.expression,Ee,!1,!1)}function Ig(Ee,Gt,sr,Ii,Ja){return(Ee==null?void 0:Ee.flags)&2097152||(sr&&!Ii&&(Ee=fb(Gt,Ee,(Vl,Uf,Y_)=>{if(Uf)return at(Uf,Vl,67110400),Uf;{const Fg=Y_?Y_.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=zd());return Rn(Fg,Y_,Vl,67110400,110735)}})),Ja&&Ee&&Ee.valueDeclaration&&at(Ee,Ee.valueDeclaration,32)),Ee}function P_(Ee,Gt,sr){if(!Gt||!P1(Gt))return;const Ii=sr?Gt.members||(Gt.members=zd()):Gt.exports||(Gt.exports=zd());let Ja=0,wa=0;Vd(I9(Ee))?(Ja=8192,wa=103359):xd(Ee)&&A7(Ee)&&(gt(Ee.arguments[2].properties,wi=>{const Vl=i_(wi);return!!Vl&&xn(Vl)&&Kr(Vl)==="set"})&&(Ja|=65540,wa|=78783),gt(Ee.arguments[2].properties,wi=>{const Vl=i_(wi);return!!Vl&&xn(Vl)&&Kr(Vl)==="get"})&&(Ja|=32772,wa|=46015)),Ja===0&&(Ja=4,wa=0),Rn(Ii,Gt,Ee,Ja|67108864,wa&-67108865)}function Qm(Ee){return Ds(Ee.parent)?VT(Ee.parent).parent.kind===312:Ee.parent.parent.kind===312}function Bh(Ee,Gt,sr,Ii){let Ja=Zm(Ee,u)||Zm(Ee,h);const wa=Qm(Gt);Ja=Ig(Ja,Gt.expression,wa,sr,Ii),P_(Gt,Ja,sr)}function P1(Ee){if(Ee.flags&1072)return!0;const Gt=Ee.valueDeclaration;if(Gt&&xd(Gt))return!!I9(Gt);let sr=Gt?Kc(Gt)?Gt.initializer:Ds(Gt)?Gt.right:Ac(Gt)&&Ds(Gt.parent)?Gt.parent.right:void 0:void 0;if(sr=sr&&k9(sr),sr){const Ii=bP(Kc(Gt)?Gt.name:Ds(Gt)?Gt.left:Gt);return!!KM(Ds(sr)&&(sr.operatorToken.kind===57||sr.operatorToken.kind===61)?sr.right:sr,Ii)}return!1}function VT(Ee){for(;Ds(Ee.parent);)Ee=Ee.parent;return Ee.parent}function Zm(Ee,Gt=u){if(xn(Ee))return gae(Gt,Ee.escapedText);{const sr=Zm(Ee.expression);return sr&&sr.exports&&sr.exports.get(eI(Ee))}}function fb(Ee,Gt,sr){if(R3(e,Ee))return e.symbol;if(xn(Ee))return sr(Ee,Zm(Ee),Gt);{const Ii=fb(Ee.expression,Gt,sr),Ja=KC(Ee);return Lu(Ja)&&re.fail("unexpected PrivateIdentifier"),sr(Ja,Ii&&Ii.exports&&Ii.exports.get(eI(Ee)),Ii)}}function FS(Ee){!e.commonJsModuleIndicator&&y1(Ee,!1)&&yp(Ee)}function dT(Ee){if(Ee.kind===263)Wy(Ee,32,899503);else{const Ja=Ee.name?Ee.name.escapedText:"__class";xg(Ee,32,Ja),Ee.name&&Ct.add(Ee.name.escapedText)}const{symbol:Gt}=Ee,sr=Et(4194308,"prototype"),Ii=Gt.exports.get(sr.escapedName);Ii&&(Ee.name&&kl(Ee.name,Ee),e.bindDiagnostics.push(st(Ii.declarations[0],N.Duplicate_identifier_0,Il(sr)))),Gt.exports.set(sr.escapedName,sr),sr.parent=Gt}function $0(Ee){return G8(Ee)?Wy(Ee,128,899967):Wy(Ee,256,899327)}function xv(Ee){if(Pe&&hh(Ee,Ee.name),!$_(Ee.name)){const Gt=Ee.kind===260?Ee:Ee.parent.parent;Cs(Ee)&&GH(n)&&E7(Gt)&&!FM(Ee)&&!(Eb(Ee)&32)?Tc(Ee,2097152,2097152):v9(Ee)?Wy(Ee,2,111551):X8(Ee)?Tc(Ee,1,111551):Tc(Ee,1,111550)}}function t2(Ee){if(!(Ee.kind===348&&u.kind!==330)&&(Pe&&!(Ee.flags&33554432)&&hh(Ee,Ee.name),$_(Ee.name)?xg(Ee,1,"__"+Ee.parent.parameters.indexOf(Ee)):Tc(Ee,1,111551),DT(Ee,Ee.parent))){const Gt=Ee.parent.parent;Rn(Gt.symbol.members,Gt.symbol,Ee,4|(Ee.questionToken?16777216:0),0)}}function q0(Ee){!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),d_(Ee),Pe?(Qi(Ee),Wy(Ee,16,110991)):Tc(Ee,16,110991)}function N1(Ee){!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),k&&(Ee.flowNode=k),d_(Ee);const Gt=Ee.name?Ee.name.escapedText:"__function";return xg(Ee,16,Gt)}function i0(Ee,Gt,sr){return!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),k&&x9(Ee)&&(Ee.flowNode=k),tI(Ee)?xg(Ee,Gt,"__computed"):Tc(Ee,Gt,sr)}function nt(Ee){const Gt=Ua(Ee,sr=>sr.parent&&Q7(sr.parent)&&sr.parent.extendsType===sr);return Gt&&Gt.parent}function pr(Ee){if(CA(Ee.parent)){const Gt=Iie(Ee.parent);Gt?(re.assertNode(Gt,XD),Gt.locals??(Gt.locals=zd()),Rn(Gt.locals,void 0,Ee,262144,526824)):Tc(Ee,262144,526824)}else if(Ee.parent.kind===195){const Gt=nt(Ee.parent);Gt?(re.assertNode(Gt,XD),Gt.locals??(Gt.locals=zd()),Rn(Gt.locals,void 0,Ee,262144,526824)):xg(Ee,262144,Qt(Ee))}else Tc(Ee,262144,526824)}function vi(Ee){const Gt=YN(Ee);return Gt===1||Gt===2&&gk(n)}function Di(Ee){if(!(k.flags&1))return!1;if(k===Lt&&(HU(Ee)&&Ee.kind!==242||Ee.kind===263||Ee.kind===267&&vi(Ee))&&(k=Ze,!n.allowUnreachableCode)){const sr=WSe(n)&&!(Ee.flags&33554432)&&(!Xg(Ee)||!!(rR(Ee.declarationList)&7)||Ee.declarationList.declarations.some(Ii=>!!Ii.initializer));rme(Ee,(Ii,Ja)=>fe(sr,Ii,Ja,N.Unreachable_code_detected))}return!0}}function rme(e,n){if(dl(e)&&w2e(e)&&Ou(e.parent)){const{statements:i}=e.parent,c=soe(i,e);eu(c,w2e,(u,d)=>n(c[u],c[d-1]))}else n(e,e)}function w2e(e){return!mg(e)&&!MLe(e)&&!xP(e)&&!(Xg(e)&&!(rR(e)&7)&&e.declarationList.declarations.some(n=>!n.initializer))}function MLe(e){switch(e.kind){case 264:case 265:return!0;case 267:return YN(e)!==1;case 266:return ul(e,4096);default:return!1}}function R3(e,n){let i=0;const c=$w();for(c.enqueue(n);!c.isEmpty()&&i<100;){if(i++,n=c.dequeue(),P9(n)||jE(n))return!0;if(xn(n)){const u=gae(e,n.escapedText);if(u&&u.valueDeclaration&&Kc(u.valueDeclaration)&&u.valueDeclaration.initializer){const d=u.valueDeclaration.initializer;c.enqueue(d),Zv(d,!0)&&(c.enqueue(d.left),c.enqueue(d.right))}}}return!1}function R2e(e){switch(e.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(x9(e))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 e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return F_(e.parent)||Ep(e.parent)?0:34}return 0}function gae(e,n){var i,c,u,d;const h=(c=(i=to(e,XD))==null?void 0:i.locals)==null?void 0:c.get(n);if(h)return h.exportSymbol??h;if(Nu(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(n))return e.jsGlobalAugmentations.get(n);if(ck(e))return(d=(u=e.symbol)==null?void 0:u.exports)==null?void 0:d.get(n)}var M2e,kQ,mHe,ime=G({"src/compiler/binder.ts"(){md(),iP(),M2e=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(M2e||{}),kQ=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(kQ||{}),mHe=RLe()}});function LLe(e,n,i,c,u,d,h,S,E,P){return k;function k(F=()=>!0){const $=[],J=[];return{walkType:Ct=>{try{return X(Ct),{visitedTypes:ik($),visitedSymbols:ik(J)}}finally{g_($),g_(J)}},walkSymbol:Ct=>{try{return ct(Ct),{visitedTypes:ik($),visitedSymbols:ik(J)}}finally{g_($),g_(J)}}};function X(Ct){if(!(!Ct||$[Ct.id]||($[Ct.id]=Ct,ct(Ct.symbol)))){if(Ct.flags&524288){const Ze=Ct,Ke=Ze.objectFlags;Ke&4&&ie(Ct),Ke&32&&et(Ct),Ke&3&&dt(Ct),Ke&24&&Ie(Ze)}Ct.flags&262144&&ae(Ct),Ct.flags&3145728&&ve(Ct),Ct.flags&4194304&&we(Ct),Ct.flags&8388608&&Fe(Ct)}}function ie(Ct){X(Ct.target),Ot(P(Ct),X)}function ae(Ct){X(S(Ct))}function ve(Ct){Ot(Ct.types,X)}function we(Ct){X(Ct.type)}function Fe(Ct){X(Ct.objectType),X(Ct.indexType),X(Ct.constraint)}function et(Ct){X(Ct.typeParameter),X(Ct.constraintType),X(Ct.templateType),X(Ct.modifiersType)}function Pe(Ct){const Lt=n(Ct);Lt&&X(Lt.type),Ot(Ct.typeParameters,X);for(const Ze of Ct.parameters)ct(Ze);X(e(Ct)),X(i(Ct))}function dt(Ct){Ie(Ct),Ot(Ct.typeParameters,X),Ot(c(Ct),X),X(Ct.thisType)}function Ie(Ct){const Lt=u(Ct);for(const Ze of Lt.indexInfos)X(Ze.keyType),X(Ze.type);for(const Ze of Lt.callSignatures)Pe(Ze);for(const Ze of Lt.constructSignatures)Pe(Ze);for(const Ze of Lt.properties)ct(Ze)}function ct(Ct){if(!Ct)return!1;const Lt=$d(Ct);if(J[Lt])return!1;if(J[Lt]=Ct,!F(Ct))return!0;const Ze=d(Ct);return X(Ze),Ct.exports&&Ct.exports.forEach(ct),Ot(Ct.declarations,Ke=>{if(Ke.type&&Ke.type.kind===186){const st=Ke.type,It=h(E(st.exprName));ct(It)}}),!1}}}var gHe=G({"src/compiler/symbolWalker.ts"(){md()}});function L2e({importModuleSpecifierPreference:e,importModuleSpecifierEnding:n},i,c,u){const d=h();return{relativePreference:u!==void 0?Kv(u)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:S=>{if((S??c.impliedNodeFormat)===99)return MW(i,c.fileName)?[3,2]:[2];if(Jd(i)===1)return d===2?[2,1]:[1,2];const E=MW(i,c.fileName);switch(d){case 2:return E?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return E?[1,0,3,2]:[1,0,2];case 0:return E?[0,1,3,2]:[0,1,2];default:re.assertNever(d)}}};function h(){if(u!==void 0){if(eD(u))return 2;if(h_(u,"/index"))return 1}return ooe(n,c.impliedNodeFormat,i,c)}}function hHe(e,n,i,c,u,d,h={}){const S=vHe(e,n,i,c,u,L2e({},e,n,d),{},h);if(S!==d)return S}function hae(e,n,i,c,u,d={}){return vHe(e,n,i,c,u,L2e({},e,n),{},d)}function yHe(e,n,i,c,u,d={}){const h=O2e(n.path,c),S=SHe(n.path,i,c,u,d);return Yr(S,E=>ame(E,h,n,c,e,u,!0,d.overrideImportMode))}function vHe(e,n,i,c,u,d,h,S={}){const E=O2e(i,u),P=SHe(i,c,u,h,S);return Yr(P,k=>ame(k,E,n,u,e,h,void 0,S.overrideImportMode))||BLe(c,E,e,u,S.overrideImportMode||n.impliedNodeFormat,d)}function OLe(e,n,i,c,u={}){return FLe(e,n,i,c,u)[0]}function FLe(e,n,i,c,u={}){var d;const h=YU(e);if(!h)return Yn;const S=(d=i.getModuleSpecifierCache)==null?void 0:d.call(i),E=S==null?void 0:S.get(n.path,h.path,c,u);return[E==null?void 0:E.moduleSpecifiers,h,E==null?void 0:E.modulePaths,S]}function yae(e,n,i,c,u,d,h={}){return WLe(e,n,i,c,u,d,h,!1).moduleSpecifiers}function WLe(e,n,i,c,u,d,h={},S){let E=!1;const P=zst(e,n);if(P)return{moduleSpecifiers:[P],computedWithoutCache:E};let[k,F,$,J]=FLe(e,c,u,d,h);if(k)return{moduleSpecifiers:k,computedWithoutCache:E};if(!F)return{moduleSpecifiers:Yn,computedWithoutCache:E};E=!0,$||($=F2e(c.path,F.originalFileName,u));const X=bHe($,i,c,u,d,h,S);return J==null||J.set(c.path,F.path,d,h,$,X),{moduleSpecifiers:X,computedWithoutCache:E}}function bHe(e,n,i,c,u,d={},h){const S=O2e(i.path,c),E=L2e(u,n,i),P=Ot(e,ie=>Ot(c.getFileIncludeReasons().get(gm(ie.path,c.getCurrentDirectory(),S.getCanonicalFileName)),ae=>{if(ae.kind!==3||ae.file!==i.path||i.impliedNodeFormat&&i.impliedNodeFormat!==Kae(i,ae.index))return;const ve=ZQ(i,ae.index).text;return E.relativePreference!==1||!V2(ve)?ve:void 0}));if(P)return[P];const k=gt(e,ie=>ie.isInNodeModules);let F,$,J,X;for(const ie of e){const ae=ie.isInNodeModules?ame(ie,S,i,c,n,u,void 0,d.overrideImportMode):void 0;if(F=ur(F,ae),ae&&ie.isRedirect)return F;if(!ae){const ve=BLe(ie.path,S,n,c,d.overrideImportMode||i.impliedNodeFormat,E,ie.isRedirect);if(!ve)continue;ie.isRedirect?J=ur(J,ve):jre(ve)?$=ur($,ve):(h||!k||ie.isInNodeModules)&&(X=ur(X,ve))}}return $!=null&&$.length?$:J!=null&&J.length?J:F!=null&&F.length?F:re.checkDefined(X)}function O2e(e,n){const i=H1(n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():!0),c=ws(e);return{getCanonicalFileName:i,importingSourceFileName:e,sourceDirectory:c}}function BLe(e,n,i,c,u,{getAllowedEndingsInPreferredOrder:d,relativePreference:h},S){const{baseUrl:E,paths:P,rootDirs:k}=i;if(S&&!P)return;const{sourceDirectory:F,getCanonicalFileName:$}=n,J=d(u),X=k&&EHe(k,e,F,$,J,i)||PQ(Fd(sP(F,e,$)),J,i);if(!E&&!P||h===0)return S?void 0:X;const ie=vf(Lie(i,c)||E,c.getCurrentDirectory()),ae=xHe(e,ie,$);if(!ae)return S?void 0:X;const ve=P&&GLe(ae,P,J,c,i);if(S)return ve;const we=ve===void 0&&E!==void 0?PQ(ae,J,i):ve;if(!we)return X;if(h===1&&!V2(we))return we;if(h===3&&!V2(we)){const Fe=i.configFilePath?gm(ws(i.configFilePath),c.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(c.getCurrentDirectory()),et=gm(e,Fe,$),Pe=qf(F,Fe),dt=qf(et,Fe);if(Pe&&!dt||!Pe&&dt)return we;const Ie=zLe(c,ws(et));return zLe(c,F)!==Ie?we:X}return Im(we)||vae(X)e.fileExists(vl(i,"package.json"))?!0:void 0)}function ome(e,n,i,c,u){var d;const h=QC(i),S=i.getCurrentDirectory(),E=i.isSourceOfProjectReferenceRedirect(n)?i.getProjectReferenceRedirect(n):void 0,P=gm(n,S,h),k=i.redirectTargetsMap.get(P)||Yn,$=[...E?[E]:Yn,n,...k].map(ve=>vf(ve,S));let J=!jr($,_3);if(!c){const ve=Ot($,we=>!(J&&_3(we))&&u(we,E===we));if(ve)return ve}const X=(d=i.getSymlinkCache)==null?void 0:d.call(i).getSymlinkedDirectoriesByRealpath(),ie=vf(n,S);return X&&jC(ws(ie),ve=>{const we=X.get(Su(gm(ve,S,h)));if(we)return RU(e,ve,h)?!1:Ot($,Fe=>{if(!RU(Fe,ve,h))return;const et=sP(ve,Fe,h);for(const Pe of we){const dt=NL(Pe,et),Ie=u(dt,Fe===E);if(J=!0,Ie)return Ie}})})||(c?Ot($,ve=>J&&_3(ve)?void 0:u(ve,ve===E)):void 0)}function SHe(e,n,i,c,u={}){var d;const h=gm(n,i.getCurrentDirectory(),QC(i)),S=(d=i.getModuleSpecifierCache)==null?void 0:d.call(i);if(S){const P=S.get(e,h,c,u);if(P!=null&&P.modulePaths)return P.modulePaths}const E=F2e(e,n,i);return S&&S.setModulePaths(e,h,c,u,E),E}function F2e(e,n,i){const c=QC(i),u=new Map;ome(e,n,i,!0,(h,S)=>{const E=RW(h);u.set(h,{path:c(h),isRedirect:S,isInNodeModules:E})});const d=[];for(let h=ws(e);u.size!==0;){const S=Su(h);let E;u.forEach(({path:k,isRedirect:F,isInNodeModules:$},J)=>{qf(k,S)&&((E||(E=[])).push({path:J,isRedirect:F,isInNodeModules:$}),u.delete(J))}),E&&(E.length>1&&E.sort(THe),d.push(...E));const P=ws(h);if(P===h)break;h=P}if(u.size){const h=oc(u.values());h.length>1&&h.sort(THe),d.push(...h)}return d}function zst(e,n){var i;const c=(i=e.declarations)==null?void 0:i.find(h=>dde(h)&&(!Ov(h)||!Kv(K2(h.name))));if(c)return c.name.text;const d=Qo(e.declarations,h=>{var S,E,P,k;if(!py(h))return;const F=ie(h);if(!((S=F==null?void 0:F.parent)!=null&&S.parent&&kh(F.parent)&&dh(F.parent.parent)&&Nu(F.parent.parent.parent)))return;const $=(k=(P=(E=F.parent.parent.symbol.exports)==null?void 0:E.get("export="))==null?void 0:P.valueDeclaration)==null?void 0:k.expression;if(!$)return;const J=n.getSymbolAtLocation($);if(!J)return;if(((J==null?void 0:J.flags)&2097152?n.getAliasedSymbol(J):J)===h.symbol)return F.parent.parent;function ie(ae){for(;ae.flags&8;)ae=ae.parent;return ae}})[0];if(d)return d.name.text}function GLe(e,n,i,c,u){for(const h in n)for(const S of n[h]){const E=hf(S),P=E.indexOf("*"),k=i.map(F=>({ending:F,value:PQ(e,[F],u)}));if(OT(E)&&k.push({ending:void 0,value:e}),P!==-1){const F=E.substring(0,P),$=E.substring(P+1);for(const{ending:J,value:X}of k)if(X.length>=F.length+$.length&&qf(X,F)&&h_(X,$)&&d({ending:J,value:X})){const ie=X.substring(F.length,X.length-$.length);if(!V2(ie))return h.replace("*",ie)}}else if(gt(k,F=>F.ending!==0&&E===F.value)||gt(k,F=>F.ending===0&&E===F.value&&d(F)))return h}function d({ending:h,value:S}){return h!==0||S===PQ(e,[h],u,c)}}function oj(e,n,i,c,u,d,h=0){if(typeof u=="string"){const S=vf(vl(i,u),void 0),E=vR(n)?wg(n)+bae(n,e):void 0;switch(h){case 0:if(Rv(n,S)===0||E&&Rv(E,S)===0)return{moduleFileToTry:c};break;case 1:if(OE(S,n)){const $=sP(S,n,!1);return{moduleFileToTry:vf(vl(vl(c,u),$),void 0)}}break;case 2:const P=S.indexOf("*"),k=S.slice(0,P),F=S.slice(P+1);if(qf(n,k)&&h_(n,F)){const $=n.slice(k.length,n.length-F.length);return{moduleFileToTry:c.replace("*",$)}}if(E&&qf(E,k)&&h_(E,F)){const $=E.slice(k.length,E.length-F.length);return{moduleFileToTry:c.replace("*",$)}}break}}else{if(Array.isArray(u))return Ot(u,S=>oj(e,n,i,c,S,d));if(typeof u=="object"&&u!==null){if(xQ(u))return Ot(ET(u),S=>{const E=vf(vl(c,S),void 0),P=h_(S,"/")?1:S.includes("*")?2:0;return oj(e,n,i,E,u[S],d,P)});for(const S of ET(u))if(S==="default"||d.includes(S)||AQ(d,S)){const E=u[S],P=oj(e,n,i,c,E,d,h);if(P)return P}}}}function EHe(e,n,i,c,u,d){const h=jLe(n,e,c);if(h===void 0)return;const S=jLe(i,e,c),E=ea(S,k=>Vn(h,F=>Fd(sP(k,F,c)))),P=qw(E,Z9);if(P)return PQ(P,u,d)}function ame({path:e,isRedirect:n},{getCanonicalFileName:i,sourceDirectory:c},u,d,h,S,E,P){if(!d.fileExists||!d.readFile)return;const k=AY(e);if(!k)return;const $=L2e(S,h,u).getAllowedEndingsInPreferredOrder();let J=e,X=!1;if(!E){let et=k.packageRootIndex,Pe;for(;;){const{moduleFileToTry:dt,packageRootPath:Ie,blockedByExports:ct,verbatimFromExports:Ct}=Fe(et);if(Jd(h)!==1){if(ct)return;if(Ct)return dt}if(Ie){J=Ie,X=!0;break}if(Pe||(Pe=dt),et=e.indexOf(qp,et+1),et===-1){J=PQ(Pe,$,h,d);break}}}if(n&&!X)return;const ie=d.getGlobalTypingsCacheLocation&&d.getGlobalTypingsCacheLocation(),ae=i(J.substring(0,k.topLevelNodeModulesIndex));if(!(qf(c,ae)||ie&&qf(i(ie),ae)))return;const ve=J.substring(k.topLevelPackageNameIndex+1),we=l4(ve);return Jd(h)===1&&we===ve?void 0:we;function Fe(et){var Pe,dt;const Ie=e.substring(0,et),ct=vl(Ie,"package.json");let Ct=e,Lt=!1;const Ze=(dt=(Pe=d.getPackageJsonInfoCache)==null?void 0:Pe.call(d))==null?void 0:dt.getPackageJsonInfo(ct);if(typeof Ze=="object"||Ze===void 0&&d.fileExists(ct)){const Ke=(Ze==null?void 0:Ze.contents.packageJsonContent)||JSON.parse(d.readFile(ct)),st=P||u.impliedNodeFormat;if(Zie(h)){const Et=Ie.substring(k.topLevelPackageNameIndex+1),at=l4(Et),Qt=_F(h,st),nn=Ke.exports?oj(h,e,Ie,at,Ke.exports,Qt):void 0;if(nn)return{...vR(nn.moduleFileToTry)?{moduleFileToTry:wg(nn.moduleFileToTry)+bae(nn.moduleFileToTry,h)}:nn,verbatimFromExports:!0};if(Ke.exports)return{moduleFileToTry:e,blockedByExports:!0}}const It=Ke.typesVersions?vQ(Ke.typesVersions):void 0;if(It){const Et=e.slice(Ie.length+1),at=GLe(Et,It.paths,$,d,h);at===void 0?Lt=!0:Ct=vl(Ie,at)}const Yt=Ke.typings||Ke.types||Ke.main||"index.js";if(As(Yt)&&!(Lt&&aoe(qH(It.paths),Yt))){const Et=gm(Yt,Ie,i),at=i(Ct);if(wg(Et)===wg(at))return{packageRootPath:Ie,moduleFileToTry:Ct};if(Ke.type!=="module"&&!pv(at,xG)&&qf(at,Et)&&ws(at)===bN(Et)&&wg(Jg(at))==="index")return{packageRootPath:Ie,moduleFileToTry:Ct}}}else{const Ke=i(Ct.substring(k.packageRootIndex+1));if(Ke==="index.d.ts"||Ke==="index.js"||Ke==="index.ts"||Ke==="index.tsx")return{moduleFileToTry:Ct,packageRootPath:Ie}}return{moduleFileToTry:Ct}}}function W2e(e,n){if(!e.fileExists)return;const i=Gf(s3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const c of i){const u=n+c;if(e.fileExists(u))return u}}function jLe(e,n,i){return Qo(n,c=>{const u=xHe(e,c,i);return u!==void 0&&Im(u)?void 0:u})}function PQ(e,n,i,c){if(pv(e,[".json",".mjs",".cjs"]))return e;const u=wg(e);if(e===u)return e;const d=n.indexOf(2),h=n.indexOf(3);if(pv(e,[".mts",".cts"])&&h!==-1&&hP===0||P===1);return E!==-1&&Evae,forEachFileNameOfModule:()=>ome,getModuleSpecifier:()=>hae,getModuleSpecifiers:()=>yae,getModuleSpecifiersWithCacheInfo:()=>WLe,getNodeModulesPackageName:()=>yHe,tryGetJSExtensionForFile:()=>bae,tryGetModuleSpecifiersFromCache:()=>OLe,tryGetRealFileNameForNonJsDeclarationFileName:()=>VLe,updateModuleSpecifier:()=>hHe});var B2e=G({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Bp()}});function Gst(){this.flags=0}function vm(e){return e.id||(e.id=Aae,Aae++),e.id}function $d(e){return e.id||(e.id=xae,xae++),e.id}function sme(e,n){const i=YN(e);return i===1||n&&i===2}function oT(e){var n=[],i=o=>{n.push(o)},c,u=new Set,d,h,S=W0.getSymbolConstructor(),E=W0.getTypeConstructor(),P=W0.getSignatureConstructor(),k=0,F=0,$=0,J=0,X=0,ie=0,ae,ve,we=!1,Fe=zd(),et=[1],Pe=e.getCompilerOptions(),dt=iu(Pe),Ie=Zp(Pe),ct=!!Pe.experimentalDecorators,Ct=X9(Pe),Lt=zSe(Pe),Ze=VN(Pe),Ke=hv(Pe,"strictNullChecks"),st=hv(Pe,"strictFunctionTypes"),It=hv(Pe,"strictBindCallApply"),Yt=hv(Pe,"strictPropertyInitialization"),Et=hv(Pe,"noImplicitAny"),at=hv(Pe,"noImplicitThis"),Qt=hv(Pe,"useUnknownInCatchVariables"),nn=!!Pe.keyofStringsOnly,Rn=nn?1:0,cn=Pe.suppressExcessPropertyErrors?0:8192,qt=Pe.exactOptionalPropertyTypes,Kt=$yt(),wr=bkt(),Wr=LI(),jt=zd(),En=tp(4,"undefined");En.declarations=[];var fr=tp(1536,"globalThis",8);fr.exports=jt,fr.declarations=[],jt.set(fr.escapedName,fr);var Tr=tp(4,"arguments"),Vr=tp(4,"require"),Pn=Pe.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Fr=!Pe.verbatimModuleSyntax||!!Pe.importsNotUsedAsValues,Ki,io,no=0,os,Mo=0;const $i={getNodeCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.nodeCount,0),getIdentifierCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.identifierCount,0),getSymbolCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.symbolCount,F),getTypeCount:()=>k,getInstantiationCount:()=>$,getRelationCacheSizes:()=>({assignable:db.size,identity:Q_.size,subtype:bC.size,strictSubtype:wm.size}),isUndefinedSymbol:o=>o===En,isArgumentsSymbol:o=>o===Tr,isUnknownSymbol:o=>o===Pr,getMergedSymbol:jp,getDiagnostics:Bo,getGlobalDiagnostics:td,getRecursionIdentity:Dbe,getUnmatchedProperties:qBe,getTypeOfSymbolAtLocation:(o,f)=>{const v=__(f);return v?Tht(o,v):Sr},getTypeOfSymbol:La,getSymbolsOfParameterPropertyDeclaration:(o,f)=>{const v=__(o,Os);return v===void 0?re.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(re.assert(DT(v,v.parent)),gs(v,ey(f)))},getDeclaredTypeOfSymbol:sh,getPropertiesOfType:zm,getPropertyOfType:(o,f)=>Yd(o,ey(f)),getPrivateIdentifierPropertyOfType:(o,f,v)=>{const A=__(v);if(!A)return;const R=ey(f),B=rwe(R,A);return B?owe(o,B):void 0},getTypeOfPropertyOfType:(o,f)=>Xe(o,ey(f)),getIndexInfoOfType:(o,f)=>Tw(o,f===0?Nn:Lr),getIndexInfosOfType:JT,getIndexInfosOfIndexSymbol:Y0e,getSignaturesOfType:ed,getIndexTypeOfType:(o,f)=>vO(o,f===0?Nn:Lr),getIndexType:o=>CC(o),getBaseTypes:l0,getBaseTypeOfLiteralType:pM,getWidenedType:z2,getTypeFromTypeNode:o=>{const f=__(o,pc);return f?Xl(f):Sr},getParameterType:XI,getParameterIdentifierInfoAtPosition:l8,getPromisedTypeOfPromise:$fe,getAwaitedType:o=>XB(o),getReturnTypeOfSignature:np,isNullableType:n1e,getNullableType:dNe,getNonNullableType:Dw,getNonOptionalType:mNe,getTypeArguments:ch,typeToTypeNode:Wr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Wr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Wr.signatureToSignatureDeclaration,symbolToEntityName:Wr.symbolToEntityName,symbolToExpression:Wr.symbolToExpression,symbolToNode:Wr.symbolToNode,symbolToTypeParameterDeclarations:Wr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Wr.symbolToParameterDeclaration,typeParameterToDeclaration:Wr.typeParameterToDeclaration,getSymbolsInScope:(o,f)=>{const v=__(o);return v?Jo(v,f):[]},getSymbolAtLocation:o=>{const f=__(o);return f?ss(f,!0):void 0},getIndexInfosAtLocation:o=>{const f=__(o);return f?ll(f):void 0},getShorthandAssignmentValueSymbol:o=>{const f=__(o);return f?of(f):void 0},getExportSpecifierLocalTargetSymbol:o=>{const f=__(o,gy);return f?C_(f):void 0},getExportSymbolOfSymbol(o){return jp(o.exportSymbol||o)},getTypeAtLocation:o=>{const f=__(o);return f?nd(f):Sr},getTypeOfAssignmentPattern:o=>{const f=__(o,KD);return f&&kd(f)||Sr},getPropertySymbolOfDestructuringAssignment:o=>{const f=__(o,xn);return f?lu(f):void 0},signatureToString:(o,f,v,A)=>Fk(o,__(f),v,A),typeToString:(o,f,v)=>Co(o,__(f),v),symbolToString:(o,f,v,A)=>ru(o,__(f),v,A),typePredicateToString:(o,f,v)=>$P(o,__(f),v),writeSignature:(o,f,v,A,R)=>Fk(o,__(f),v,A,R),writeType:(o,f,v,A)=>Co(o,__(f),v,A),writeSymbol:(o,f,v,A,R)=>ru(o,__(f),v,A,R),writeTypePredicate:(o,f,v,A)=>$P(o,__(f),v,A),getAugmentedPropertiesOfType:im,getRootSymbols:YI,getSymbolOfExpando:vwe,getContextualType:(o,f)=>{const v=__(o,kr);if(v)return f&4?Wl(v,()=>NE(v,f)):NE(v,f)},getContextualTypeForObjectLiteralElement:o=>{const f=__(o,DN);return f?$be(f,void 0):void 0},getContextualTypeForArgumentAtIndex:(o,f)=>{const v=__(o,uR);return v&&Jbe(v,f)},getContextualTypeForJsxAttribute:o=>{const f=__(o,rie);return f&&hfe(f,void 0)},isContextSensitive:Sx,getTypeOfPropertyOfContextualType:oN,getFullyQualifiedName:GS,getResolvedSignature:(o,f,v)=>Jc(o,f,v,0),getCandidateSignaturesForStringLiteralCompletions:ki,getResolvedSignatureForSignatureHelp:(o,f,v)=>gc(o,()=>Jc(o,f,v,16)),getExpandedParameters:zZe,hasEffectiveRestParameter:$k,containsArgumentsReference:EPe,getConstantValue:o=>{const f=__(o,qy);return f?ww(f):void 0},isValidPropertyAccess:(o,f)=>{const v=__(o,ide);return!!v&&Snt(v,ey(f))},isValidPropertyAccessForCompletions:(o,f,v)=>{const A=__(o,Ac);return!!A&&GV(A,f,v)},getSignatureFromDeclaration:o=>{const f=__(o,F_);return f?gb(f):void 0},isImplementationOfOverload:o=>{const f=__(o,F_);return f?ip(f):void 0},getImmediateAliasedSymbol:kze,getAliasedSymbol:C0,getEmitResolver:_c,getExportsOfModule:H6,getExportsAndPropertiesOfModule:hV,forEachExportAndPropertyOfModule:yV,getSymbolWalker:LLe(oet,Wb,np,l0,Gh,La,xD,gT,PS,ch),getAmbientModules:lPt,getJsxIntrinsicTagNamesAt:fnt,isOptionalParameter:o=>{const f=__(o,Os);return f?H4(f):!1},tryGetMemberInModuleExports:(o,f)=>JF(ey(o),f),tryGetMemberInModuleExportsAndProperties:(o,f)=>SB(ey(o),f),tryFindAmbientModule:o=>aK(o,!0),tryFindAmbientModuleWithoutAugmentations:o=>aK(o,!1),getApparentType:yS,getUnionType:dc,isTypeAssignableTo:Id,createAnonymousType:sy,createSignature:vw,createSymbol:tp,createIndexInfo:bx,getAnyType:()=>Ge,getStringType:()=>Nn,getStringLiteralType:vS,getNumberType:()=>Lr,getNumberLiteralType:HA,getBigIntType:()=>qi,createPromiseType:m1e,createArrayType:hT,getElementTypeOfArrayType:LV,getBooleanType:()=>Pc,getFalseType:o=>o?vo:Ro,getTrueType:o=>o?Ts:Cc,getVoidType:()=>bl,getUndefinedType:()=>Ce,getNullType:()=>mn,getESSymbolType:()=>hc,getNeverType:()=>Tc,getOptionalType:()=>ge,getPromiseType:()=>yte(!1),getPromiseLikeType:()=>met(!1),getAsyncIterableType:()=>{const o=tbe(!1);if(o!==Ka)return o},isSymbolAccessible:nc,isArrayType:kE,isTupleType:Dp,isArrayLikeType:rL,isEmptyAnonymousObjectType:VI,isTypeInvalidDueToUnionDiscriminant:rgt,getExactOptionalProperties:dM,getAllPossiblePropertiesOfTypes:igt,getSuggestedSymbolForNonexistentProperty:JB,getSuggestionForNonexistentProperty:awe,getSuggestedSymbolForNonexistentJSXAttribute:Iv,getSuggestedSymbolForNonexistentSymbol:(o,f,v)=>DK(o,ey(f),v),getSuggestionForNonexistentSymbol:(o,f,v)=>syt(o,ey(f),v),getSuggestedSymbolForNonexistentModule:Ife,getSuggestionForNonexistentExport:swe,getSuggestedSymbolForNonexistentClassMember:Tnt,getBaseConstraintOfType:US,getDefaultFromTypeParameter:o=>o&&o.flags&262144?Dd(o):void 0,resolveName(o,f,v,A){return gg(f,ey(o),v,void 0,void 0,!1,A)},getJsxNamespace:o=>Ic(xo(o)),getJsxFragmentFactory:o=>{const f=y0t(o);return f&&Ic(PS(f).escapedText)},getAccessibleSymbolChain:pw,getTypePredicateOfSignature:Wb,resolveExternalModuleName:o=>{const f=__(o,kr);return f&&gS(f,f,!0)},resolveExternalModuleSymbol:hS,tryGetThisTypeAt:(o,f,v)=>{const A=__(o);return A&&VNe(A,f,v)},getTypeArgumentConstraint:o=>{const f=__(o,pc);return f&&pvt(f)},getSuggestionDiagnostics:(o,f)=>{const v=__(o,Nu)||re.fail("Could not determine parsed source file.");if(c3(v,Pe,e))return Yn;let A;try{return c=f,rf(v),re.assert(!!(rt(v).flags&1)),A=Oi(A,GP.getDiagnostics(v.fileName)),A1e(No(v),(R,B,Y)=>{!qz(R)&&!Pi(B,!!(R.flags&33554432))&&(A||(A=[])).push({...Y,category:2})}),A||Yn}finally{c=void 0}},runWithCancellationToken:(o,f)=>{try{return c=o,f($i)}finally{c=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Fo,isDeclarationVisible:gw,isPropertyAccessible:Jze,getTypeOnlyAliasDeclaration:Qx,getMemberOverrideModifierStatus:m0t,isTypeParameterPossiblyReferenced:xte,typeHasCallOrConstructSignatures:k0};function ki(o,f){const v=new Set,A=[];Wl(f,()=>Jc(o,A,void 0,0));for(const R of A)v.add(R);A.length=0,gc(f,()=>Jc(o,A,void 0,0));for(const R of A)v.add(R);return oc(v)}function gc(o,f){if(o=Ua(o,eie),o){const v=[],A=[];for(;o;){const B=rt(o);if(v.push([B,B.resolvedSignature]),B.resolvedSignature=void 0,EP(o)){const Y=Ae(sc(o)),pe=Y.type;A.push([Y,pe]),Y.type=void 0}o=Ua(o.parent,eie)}const R=f();for(const[B,Y]of v)B.resolvedSignature=Y;for(const[B,Y]of A)B.type=Y;return R}return f()}function Wl(o,f){const v=Ua(o,uR);if(v){let R=o;do rt(R).skipDirectInference=!0,R=R.parent;while(R&&R!==v)}we=!0;const A=gc(o,f);if(we=!1,v){let R=o;do rt(R).skipDirectInference=void 0,R=R.parent;while(R&&R!==v)}return A}function Jc(o,f,v,A){const R=__(o,uR);Ki=v;const B=R?y5(R,f,A):void 0;return Ki=void 0,B}var au=new Map,qn=new Map,za=new Map,Ia=new Map,zi=new Map,na=new Map,_a=new Map,us=new Map,Au=new Map,Qu=new Map,Cu=new Map,yf=new Map,w_=new Map,Eu=new Map,He=new Map,Hn=[],dr=new Map,Mr=new Set,Pr=tp(4,"unknown"),Bt=tp(0,"__resolving__"),ln=new Map,Wn=new Map,$r=new Set,Ge=Vg(1,"any"),Br=Vg(1,"any",262144,"auto"),Ei=Vg(1,"any",void 0,"wildcard"),Ln=Vg(1,"any",void 0,"blocked string"),Sr=Vg(1,"error"),yi=Vg(1,"unresolved"),go=Vg(1,"any",65536,"non-inferrable"),Ao=Vg(1,"intrinsic"),Io=Vg(2,"unknown"),ze=Vg(2,"unknown",void 0,"non-null"),Ce=Vg(32768,"undefined"),kt=Ke?Ce:Vg(32768,"undefined",65536,"widening"),qe=Vg(32768,"undefined",void 0,"missing"),Mt=qt?qe:Ce,ge=Vg(32768,"undefined",void 0,"optional"),mn=Vg(65536,"null"),Jn=Ke?mn:Vg(65536,"null",65536,"widening"),Nn=Vg(4,"string"),Lr=Vg(8,"number"),qi=Vg(64,"bigint"),vo=Vg(512,"false",void 0,"fresh"),Ro=Vg(512,"false"),Ts=Vg(512,"true",void 0,"fresh"),Cc=Vg(512,"true");Ts.regularType=Cc,Ts.freshType=Ts,Cc.regularType=Cc,Cc.freshType=Ts,vo.regularType=Ro,vo.freshType=vo,Ro.regularType=Ro,Ro.freshType=vo;var Pc=dc([Ro,Cc]),hc=Vg(4096,"symbol"),bl=Vg(16384,"void"),Tc=Vg(131072,"never"),Tf=Vg(131072,"never",262144,"silent"),ma=Vg(131072,"never",void 0,"implicit"),Bl=Vg(131072,"never",void 0,"unreachable"),G_=Vg(67108864,"object"),u_=dc([Nn,Lr]),xa=dc([Nn,Lr,hc]),Ym=nn?Nn:xa,mf=dc([Lr,qi]),Cp=dc([Nn,Lr,Pc,qi,mn,Ce]),Yg=MB(["",""],[Lr]),xg=mbe(o=>o.flags&262144?Rgt(o):o,()=>"(restrictive mapper)"),Wy=mbe(o=>o.flags&262144?Ei:o,()=>"(permissive mapper)"),Og=Vg(131072,"never",void 0,"unique literal"),pl=mbe(o=>o.flags&262144?Og:o,()=>"(unique literal mapper)"),R_,og=mbe(o=>(R_&&(o===x0||o===Nm||o===Md)&&R_(!0),o),()=>"(unmeasurable reporter)"),km=mbe(o=>(R_&&(o===x0||o===Nm||o===Md)&&R_(!1),o),()=>"(unreliable reporter)"),M_=sy(void 0,Fe,Yn,Yn,Yn),oy=sy(void 0,Fe,Yn,Yn,Yn);oy.objectFlags|=2048;var bE=tp(2048,"__type");bE.members=zd();var hh=sy(bE,Fe,Yn,Yn,Yn),qo=sy(void 0,Fe,Yn,Yn,Yn),d_=Ke?dc([Ce,mn,qo]):Io,Ka=sy(void 0,Fe,Yn,Yn,Yn);Ka.instantiations=new Map;var Qi=sy(void 0,Fe,Yn,Yn,Yn);Qi.objectFlags|=262144;var Pm=sy(void 0,Fe,Yn,Yn,Yn),Ag=sy(void 0,Fe,Yn,Yn,Yn),va=sy(void 0,Fe,Yn,Yn,Yn),x0=c0(),Nm=c0();Nm.constraint=x0;var Md=c0(),fe=c0(),_n=c0();_n.constraint=fe;var Xn=nM(1,"<>",0,Ge),_i=vw(void 0,void 0,void 0,Yn,Ge,void 0,0,0),$o=vw(void 0,void 0,void 0,Yn,Sr,void 0,0,0),Sc=vw(void 0,void 0,void 0,Yn,Ge,void 0,0,0),xs=vw(void 0,void 0,void 0,Yn,Tf,void 0,0,0),Fs=bx(Lr,Nn,!0),Tl=new Map,fc={get yieldType(){return re.fail("Not supported")},get returnType(){return re.fail("Not supported")},get nextType(){return re.fail("Not supported")}},Gd=uL(Ge,Ge,Ge),ag=uL(Ge,Ge,Io),ah=uL(Tc,Ge,Ce),bm={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:zWe,getGlobalIterableType:tbe,getGlobalIterableIteratorType:GWe,getGlobalGeneratorType:Nf,resolveIterationType:(o,f)=>XB(o,f,N.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:N.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:N.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:N.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ay={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:ggt,getGlobalIterableType:NPe,getGlobalIterableIteratorType:hgt,getGlobalGeneratorType:wPe,resolveIterationType:(o,f)=>o,mustHaveANextMethodDiagnostic:N.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:N.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:N.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},yp,Cg=new Map,wp=[],Xp,r1,sg,Jt,ci,da,Hu,t_,A_,gd,Dg,um,Ig,P_,Qm,Bh,P1,VT,Zm,fb,FS,dT,$0,xv,t2,q0,N1,i0,nt,pr,vi,Di,Ee,Gt,sr,Ii,Ja,wa,wi,Vl,Uf,Y_,Fg,sv,by,_b,f_,zh,i1,n2,Vv,su,gC,eg,Uv,Rk,Lb=new Map,fn=0,$n=0,ri=0,Li=!1,yo=0,jo,Oo,ca,Fc=[],ks=[],Xs=[],Vs=0,wu=[],Yp=[],Q=0,ft=vS(""),br=HA(0),oo=sM({negative:!1,base10Value:"0"}),Js=[],pu=[],fl=[],ju=0,L_=!1,Cl=0,o0=10,oa=[],dD=[],a0=[],Kx=[],hC=[],WP=[],BP=[],LA=[],OA=[],pD=[],yC=[],vC=[],zP=[],Xx=[],dx=[],WS=[],px=[],j_=HL(),GP=HL(),oO=O4(),dS,FA,bC=new Map,wm=new Map,db=new Map,o1=new Map,Q_=new Map,je=new Map,Vt=zd();Vt.set(En.escapedName,En);var zn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Pe.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Tkt(),$i;function zr(o){return o?He.get(o):void 0}function xi(o,f){return o&&He.set(o,f),f}function xo(o){if(o){const f=ts(o);if(f)if(v6(o)){if(f.localJsxFragmentNamespace)return f.localJsxFragmentNamespace;const v=f.pragmas.get("jsxfrag");if(v){const R=ls(v)?v[0]:v;if(f.localJsxFragmentFactory=HG(R.arguments.factory,dt),Bn(f.localJsxFragmentFactory,hu,kT),f.localJsxFragmentFactory)return f.localJsxFragmentNamespace=PS(f.localJsxFragmentFactory).escapedText}const A=y0t(o);if(A)return f.localJsxFragmentFactory=A,f.localJsxFragmentNamespace=PS(A).escapedText}else{const v=Wc(f);if(v)return f.localJsxNamespace=v}}return dS||(dS="React",Pe.jsxFactory?(FA=HG(Pe.jsxFactory,dt),Bn(FA,hu),FA&&(dS=PS(FA).escapedText)):Pe.reactNamespace&&(dS=ey(Pe.reactNamespace))),FA||(FA=he.createQualifiedName(he.createIdentifier(Ic(dS)),"createElement")),dS}function Wc(o){if(o.localJsxNamespace)return o.localJsxNamespace;const f=o.pragmas.get("jsx");if(f){const v=ls(f)?f[0]:f;if(o.localJsxFactory=HG(v.arguments.factory,dt),Bn(o.localJsxFactory,hu,kT),o.localJsxFactory)return o.localJsxNamespace=PS(o.localJsxFactory).escapedText}}function hu(o){return T1(o,-1,-1),Xo(o,hu,sx)}function _c(o,f){return Bo(o,f),wr}function Sl(o,f,...v){const A=o?Bs(o,f,...v):W_(f,...v),R=j_.lookup(A);return R||(j_.add(A),A)}function kf(o,f,v,...A){const R=hn(f,v,...A);return R.skippedOn=o,R}function Rp(o,f,...v){return o?Bs(o,f,...v):W_(f,...v)}function hn(o,f,...v){const A=Rp(o,f,...v);return j_.add(A),A}function v_(o,f){o?j_.add(f):GP.add({...f,category:2})}function yh(o,f,v,...A){if(f.pos<0||f.end<0){if(!o)return;const R=ts(f);v_(o,"message"in v?Pp(R,0,0,v,...A):oE(R,v));return}v_(o,"message"in v?Bs(f,v,...A):wN(ts(f),f,v))}function fm(o,f,v,...A){const R=hn(o,v,...A);if(f){const B=Bs(o,N.Did_you_forget_to_use_await);ml(R,B)}return R}function mx(o,f){const v=Array.isArray(o)?Ot(o,GTe):GTe(o);return v&&ml(f,Bs(v,N.The_declaration_was_marked_as_deprecated_here)),GP.add(f),f}function BS(o){const f=xE(o);return f&&Nt(o.declarations)>1?f.flags&64?gt(o.declarations,N2):jr(o.declarations,N2):!!o.valueDeclaration&&N2(o.valueDeclaration)||Nt(o.declarations)&&jr(o.declarations,N2)}function N2(o){return!!(XV(o)&536870912)}function pS(o,f,v){const A=Bs(o,N._0_is_deprecated,v);return mx(f,A)}function jP(o,f,v,A){const R=v?Bs(o,N.The_signature_0_of_1_is_deprecated,A,v):Bs(o,N._0_is_deprecated,A);return mx(f,R)}function tp(o,f,v){F++;const A=new S(o|33554432,f);return A.links=new Fa,A.links.checkFlags=v||0,A}function gx(o,f){const v=tp(1,o);return v.links.type=f,v}function VP(o,f){const v=tp(4,o);return v.links.type=f,v}function UP(o){let f=0;return o&2&&(f|=111551),o&1&&(f|=111550),o&4&&(f|=0),o&8&&(f|=900095),o&16&&(f|=110991),o&32&&(f|=899503),o&64&&(f|=788872),o&256&&(f|=899327),o&128&&(f|=899967),o&512&&(f|=110735),o&8192&&(f|=103359),o&32768&&(f|=46015),o&65536&&(f|=78783),o&262144&&(f|=526824),o&524288&&(f|=788968),o&2097152&&(f|=2097152),f}function Bd(o,f){f.mergeId||(f.mergeId=Cae,Cae++),oa[f.mergeId]=o}function Bm(o){const f=tp(o.flags,o.escapedName);return f.declarations=o.declarations?o.declarations.slice():[],f.parent=o.parent,o.valueDeclaration&&(f.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(f.constEnumOnlyModule=!0),o.members&&(f.members=new Map(o.members)),o.exports&&(f.exports=new Map(o.exports)),Bd(f,o),f}function Hv(o,f,v=!1){if(!(o.flags&UP(f.flags))||(f.flags|o.flags)&67108864){if(f===o)return o;if(!(o.flags&33554432)){const R=Av(o);if(R===Pr)return f;o=Bm(R)}f.flags&512&&o.flags&512&&o.constEnumOnlyModule&&!f.constEnumOnlyModule&&(o.constEnumOnlyModule=!1),o.flags|=f.flags,f.valueDeclaration&&Cie(o,f.valueDeclaration),Oi(o.declarations,f.declarations),f.members&&(o.members||(o.members=zd()),R2(o.members,f.members,v)),f.exports&&(o.exports||(o.exports=zd()),R2(o.exports,f.exports,v)),v||Bd(o,f)}else if(o.flags&1024)o!==fr&&hn(f.declarations&&i_(f.declarations[0]),N.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ru(o));else{const R=!!(o.flags&384||f.flags&384),B=!!(o.flags&2||f.flags&2),Y=R?N.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:B?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0,pe=f.declarations&&ts(f.declarations[0]),Te=o.declarations&&ts(o.declarations[0]),Ue=pP(pe,Pe.checkJs),St=pP(Te,Pe.checkJs),Rt=ru(f);if(pe&&Te&&yp&&!R&&pe!==Te){const rn=Rv(pe.path,Te.path)===-1?pe:Te,Sn=rn===pe?Te:pe,xr=Jw(yp,`${rn.path}|${Sn.path}`,()=>({firstFile:rn,secondFile:Sn,conflictingSymbols:new Map})),Ai=Jw(xr.conflictingSymbols,Rt,()=>({isBlockScoped:B,firstFileLocations:[],secondFileLocations:[]}));Ue||A(Ai.firstFileLocations,f),St||A(Ai.secondFileLocations,o)}else Ue||TE(f,Y,Rt,o),St||TE(o,Y,Rt,f)}return o;function A(R,B){if(B.declarations)for(const Y of B.declarations)Dy(R,Y)}}function TE(o,f,v,A){Ot(o.declarations,R=>{A0(R,f,v,A.declarations)})}function A0(o,f,v,A){const R=(KM(o,!1)?aG(o):i_(o))||o,B=Sl(R,f,v);for(const Y of A||Yn){const pe=(KM(Y,!1)?aG(Y):i_(Y))||Y;if(pe===R)continue;B.relatedInformation=B.relatedInformation||[];const Te=Bs(pe,N._0_was_also_declared_here,v),Ue=Bs(pe,N.and_here);Nt(B.relatedInformation)>=5||gt(B.relatedInformation,St=>o3(St,Ue)===0||o3(St,Te)===0)||ml(B,Nt(B.relatedInformation)?Ue:Te)}}function w2(o,f){if(!(o!=null&&o.size))return f;if(!(f!=null&&f.size))return o;const v=zd();return R2(v,o),R2(v,f),v}function R2(o,f,v=!1){f.forEach((A,R)=>{const B=o.get(R);o.set(R,B?Hv(B,A,v):jp(A))})}function U(o){var f,v,A;const R=o.parent;if(((f=R.symbol.declarations)==null?void 0:f[0])!==R){re.assert(R.symbol.declarations.length>1);return}if(JC(R))R2(jt,R.symbol.exports);else{const B=o.parent.parent.flags&33554432?void 0:N.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let Y=_w(o,o,B,!0);if(!Y)return;if(Y=hS(Y),Y.flags&1920)if(gt(r1,pe=>Y===pe.symbol)){const pe=Hv(R.symbol,Y,!0);sg||(sg=new Map),sg.set(o.text,pe)}else{if((v=Y.exports)!=null&&v.get("__export")&&((A=R.symbol.exports)!=null&&A.size)){const pe=bWe(Y,"resolvedExports");for(const[Te,Ue]of oc(R.symbol.exports.entries()))pe.has(Te)&&!Y.exports.has(Te)&&Hv(pe.get(Te),Ue)}Hv(Y,R.symbol)}else hn(o,N.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,o.text)}}function le(o,f,v){f.forEach((R,B)=>{const Y=o.get(B);Y?Ot(Y.declarations,A(Ic(B),v)):o.set(B,R)});function A(R,B){return Y=>j_.add(Bs(Y,B,R))}}function Ae(o){if(o.flags&33554432)return o.links;const f=$d(o);return dD[f]??(dD[f]=new Fa)}function rt(o){const f=vm(o);return a0[f]||(a0[f]=new Gst)}function Dn(o){return o.kind===312&&!aE(o)}function Ci(o,f,v){if(v){const A=jp(o.get(f));if(A&&(re.assert((I_(A)&1)===0,"Should never get an instantiated symbol here."),A.flags&v||A.flags&2097152&&pT(A)&v))return A}}function gs(o,f){const v=o.parent,A=o.parent.parent,R=Ci(v.locals,f,111551),B=Ci(V4(A.symbol),f,111551);return R&&B?[R,B]:re.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Tu(o,f){const v=ts(o),A=ts(f),R=QD(o);if(v!==A){if(Ie&&(v.externalModuleIndicator||A.externalModuleIndicator)||!Ng(Pe)||yR(f)||o.flags&33554432||Y(f,o))return!0;const Te=e.getSourceFiles();return Te.indexOf(v)<=Te.indexOf(A)}if(f.flags&16777216||yR(f)||rze(f))return!0;if(o.pos<=f.pos&&!(nu(o)&&Q1(f.parent)&&!o.initializer&&!o.exclamationToken)){if(o.kind===208){const Te=oC(f,208);return Te?Ua(Te,sa)!==Ua(o,sa)||o.posQf(Te)&&Te.parent.parent===o);if(nu(o))return!pe(o,f,!1);if(DT(o,o.parent))return!(Lt&&$b(o)===$b(f)&&Y(f,o))}return!0}if(f.parent.kind===281||f.parent.kind===277&&f.parent.isExportEquals||f.kind===277&&f.isExportEquals)return!0;if(Y(f,o))return Lt&&$b(o)&&(nu(o)||DT(o,o.parent))?!pe(o,f,!0):!0;return!1;function B(Te,Ue){switch(Te.parent.parent.kind){case 243:case 248:case 250:if(WA(Ue,Te,R))return!0;break}const St=Te.parent.parent;return Jz(St)&&WA(Ue,St.expression,R)}function Y(Te,Ue){return!!Ua(Te,St=>{if(St===R)return"quit";if(F_(St))return!0;if(Ep(St))return Ue.posTe.end?!1:Ua(Ue,rn=>{if(rn===Te)return"quit";switch(rn.kind){case 219:return!0;case 172:return St&&(nu(Te)&&rn.parent===Te.parent||DT(Te,Te.parent)&&rn.parent===Te.parent.parent)?"quit":!0;case 241:switch(rn.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function tg(o,f,v){const A=iu(Pe),R=f;if(Os(v)&&R.body&&o.valueDeclaration&&o.valueDeclaration.pos>=R.body.pos&&o.valueDeclaration.end<=R.body.end&&A>=2){const pe=rt(R);return pe.declarationRequiresScopeChange===void 0&&(pe.declarationRequiresScopeChange=Ot(R.parameters,B)||!1),!pe.declarationRequiresScopeChange}return!1;function B(pe){return Y(pe.name)||!!pe.initializer&&Y(pe.initializer)}function Y(pe){switch(pe.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return Y(pe.name);case 172:return ev(pe)?!Lt:Y(pe.name);default:return R8(pe)||fy(pe)?A<7:sa(pe)&&pe.dotDotDotToken&&Ch(pe.parent)?A<4:pc(pe)?!1:s_(pe,Y)||!1}}}function mS(o){return f7(o)&&ky(o.type)||WG(o)&&ky(o.typeExpression)}function gg(o,f,v,A,R,B,Y=!1,pe=!0){return Nh(o,f,v,A,R,B,Y,pe,Ci)}function Nh(o,f,v,A,R,B,Y,pe,Te){var Ue,St,Rt;const rn=o;let Sn,xr,Ai,So,la,Zs=!1;const ba=o;let mo,Ya=!1;e:for(;o;){if(f==="const"&&mS(o))return;if(nie(o)&&xr&&o.name===xr&&(xr=o,o=o.parent),XD(o)&&o.locals&&!Dn(o)&&(Sn=Te(o.locals,f,v))){let Va=!0;if(F_(o)&&xr&&xr!==o.body?(v&Sn.flags&788968&&xr.kind!==327&&(Va=Sn.flags&262144?xr===o.type||xr.kind===169||xr.kind===348||xr.kind===349||xr.kind===168:!1),v&Sn.flags&3&&(tg(Sn,o,xr)?Va=!1:Sn.flags&1&&(Va=xr.kind===169||xr===o.type&&!!Ua(Sn.valueDeclaration,Os)))):o.kind===194&&(Va=xr===o.trueType),Va)break e;Sn=void 0}switch(Zs=Zs||II(o,xr),o.kind){case 312:if(!aE(o))break;Ya=!0;case 267:const Va=((Ue=sc(o))==null?void 0:Ue.exports)||Fe;if(o.kind===312||py(o)&&o.flags&33554432&&!JC(o)){if(Sn=Va.get("default")){const V_=i6(Sn);if(V_&&Sn.flags&v&&V_.escapedName===f)break e;Sn=void 0}const cc=Va.get(f);if(cc&&cc.flags===2097152&&(Rh(cc,281)||Rh(cc,280)))break}if(f!=="default"&&(Sn=Te(Va,f,v&2623475)))if(Nu(o)&&o.commonJsModuleIndicator&&!((St=Sn.declarations)!=null&&St.some(b2)))Sn=void 0;else break e;break;case 266:if(Sn=Te(((Rt=sc(o))==null?void 0:Rt.exports)||Fe,f,v&8)){A&&F0(Pe)&&!(o.flags&33554432)&&ts(o)!==ts(Sn.valueDeclaration)&&hn(ba,N.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ic(f),Pn,`${Ic(hx(o).escapedName)}.${Ic(f)}`);break e}break;case 172:if(!pd(o)){const cc=hD(o.parent);cc&&cc.locals&&Te(cc.locals,f,v&111551)&&(re.assertNode(o,nu),So=o)}break;case 263:case 231:case 264:if(Sn=Te(sc(o).members||Fe,f,v&788968)){if(!HR(Sn,o)){Sn=void 0;break}if(xr&&pd(xr)){A&&hn(ba,N.Static_members_cannot_reference_class_type_parameters);return}break e}if(v0(o)&&v&32){const cc=o.name;if(cc&&f===cc.escapedText){Sn=o.symbol;break e}}break;case 233:if(xr===o.expression&&o.parent.token===96){const cc=o.parent.parent;if(Fl(cc)&&(Sn=Te(sc(cc).members,f,v&788968))){A&&hn(ba,N.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(mo=o.parent.parent,(Fl(mo)||mo.kind===264)&&(Sn=Te(sc(mo).members,f,v&788968))){A&&hn(ba,N.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(iu(Pe)>=2)break;case 174:case 176:case 177:case 178:case 262:if(v&3&&f==="arguments"){Sn=Tr;break e}break;case 218:if(v&3&&f==="arguments"){Sn=Tr;break e}if(v&16){const cc=o.name;if(cc&&f===cc.escapedText){Sn=o.symbol;break e}}break;case 170:o.parent&&o.parent.kind===169&&(o=o.parent),o.parent&&(J_(o.parent)||o.parent.kind===263)&&(o=o.parent);break;case 353:case 345:case 347:const Da=_H(o);Da&&(o=Da.parent);break;case 169:xr&&(xr===o.initializer||xr===o.name&&$_(xr))&&(la||(la=o));break;case 208:xr&&(xr===o.initializer||xr===o.name&&$_(xr))&&X8(o)&&!la&&(la=o);break;case 195:if(v&262144){const cc=o.typeParameter.name;if(cc&&f===cc.escapedText){Sn=o.typeParameter.symbol;break e}}break;case 281:xr&&xr===o.propertyName&&o.parent.parent.moduleSpecifier&&(o=o.parent.parent.parent);break}Mk(o)&&(Ai=o),xr=o,o=CA(o)?Iie(o)||o.parent:(A2(o)||ppe(o))&&LN(o)||o.parent}if(B&&Sn&&(!Ai||Sn!==Ai.symbol)&&(Sn.isReferenced|=v),!Sn){if(xr&&(re.assertNode(xr,Nu),xr.commonJsModuleIndicator&&f==="exports"&&v&xr.symbol.flags))return xr.symbol;Y||(Sn=Te(jt,f,v))}if(!Sn&&rn&&Cs(rn)&&rn.parent&&y1(rn.parent,!1))return Vr;function Ra(){return So&&!Lt?(hn(ba,ba&&So.type&&P8(So.type,ba.pos)?N.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,hm(So.name),M2(R)),!0):!1}if(Sn){if(A&&Ra())return}else{A&&i(()=>{if(!ba||ba.parent.kind!==331&&!kI(ba,f,R)&&!Ra()&&!JR(ba)&&!HP(ba,f,v)&&!sw(ba,f)&&!z6(ba,f,v)&&!cw(ba,f,v)&&!mD(ba,f,v)){let Va,Da;if(R&&(Da=oyt(R),Da&&hn(ba,A,M2(R),Da)),!Da&&pe&&Cl{if(ba&&(v&2||(v&32||v&384)&&(v&111551)===111551)){const Va=eA(Sn);(Va.flags&2||Va.flags&32||Va.flags&384)&&Vo(Va,ba)}if(Sn&&Ya&&(v&111551)===111551&&!(rn.flags&16777216)){const Va=jp(Sn);Nt(Va.declarations)&&jr(Va.declarations,Da=>lC(Da)||Nu(Da)&&!!Da.symbol.globalExports)&&yh(!Pe.allowUmdGlobalAccess,ba,N._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ic(f))}if(Sn&&la&&!Zs&&(v&111551)===111551){const Va=jp(Pue(Sn)),Da=vA(la);Va===sc(la)?hn(ba,N.Parameter_0_cannot_reference_itself,hm(la.name)):Va.valueDeclaration&&Va.valueDeclaration.pos>la.pos&&Da.parent.locals&&Te(Da.parent.locals,Va.escapedName,v)===Va&&hn(ba,N.Parameter_0_cannot_reference_identifier_1_declared_after_it,hm(la.name),hm(ba))}if(Sn&&ba&&v&111551&&Sn.flags&2097152&&!(Sn.flags&111551)&&!EA(ba)){const Va=Qx(Sn,111551);if(Va){const Da=Va.kind===281||Va.kind===278||Va.kind===280?N._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:N._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,cc=Ic(f);r2(hn(ba,Da,cc),Va,cc)}}}),Sn}function r2(o,f,v){return f?ml(o,Bs(f,f.kind===281||f.kind===278||f.kind===280?N._0_was_exported_here:N._0_was_imported_here,v)):o}function II(o,f){return o.kind!==219&&o.kind!==218?m6(o)||(Vd(o)||o.kind===172&&!pd(o))&&(!f||f!==o.name):f&&f===o.name?!1:o.asteriskToken||ul(o,1024)?!0:!v7(o)}function Mk(o){switch(o.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function M2(o){return As(o)?Ic(o):hm(o)}function HR(o,f){if(o.declarations){for(const v of o.declarations)if(v.kind===168&&(CA(v.parent)?k7(v.parent):v.parent)===f)return!(CA(v.parent)&&lr(v.parent.parent.tags,b2))}return!1}function kI(o,f,v){if(!xn(o)||o.escapedText!==f||Ll(o)||yR(o))return!1;const A=RT(o,!1,!1);let R=A;for(;R;){if(Fl(R.parent)){const B=sc(R.parent);if(!B)break;const Y=La(B);if(Yd(Y,f))return hn(o,N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,M2(v),ru(B)),!0;if(R===A&&!pd(R)){const pe=sh(B).thisType;if(Yd(pe,f))return hn(o,N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,M2(v)),!0}}R=R.parent}return!1}function JR(o){const f=PI(o);return f&&Qg(f,64,!0)?(hn(o,N.Cannot_extend_an_interface_0_Did_you_mean_implements,Lv(f)),!0):!1}function PI(o){switch(o.kind){case 80:case 211:return o.parent?PI(o.parent):void 0;case 233:if(Tg(o.expression))return o.expression;default:return}}function HP(o,f,v){const A=1920|(Cs(o)?111551:0);if(v===A){const R=Av(gg(o,f,788968&~A,void 0,void 0,!1)),B=o.parent;if(R){if(Pu(B)){re.assert(B.left===o,"Should only be resolving left side of qualified name as a namespace");const Y=B.right.escapedText;if(Yd(sh(R),Y))return hn(B,N.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ic(f),Ic(Y)),!0}return hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ic(f)),!0}}return!1}function mD(o,f,v){if(v&788584){const A=Av(gg(o,f,111127,void 0,void 0,!1));if(A&&!(A.flags&1920))return hn(o,N._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ic(f)),!0}return!1}function NI(o){return o==="any"||o==="string"||o==="number"||o==="boolean"||o==="never"||o==="unknown"}function sw(o,f){return NI(f)&&o.parent.kind===281?(hn(o,N.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,f),!0):!1}function cw(o,f,v){if(v&111551){if(NI(f)){const B=o.parent.parent;if(B&&B.parent&&Qb(B)){const Y=B.token,pe=B.parent.kind;pe===264&&Y===96?hn(o,N.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ic(f)):pe===263&&Y===96?hn(o,N.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ic(f)):pe===263&&Y===119&&hn(o,N.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ic(f))}else hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ic(f));return!0}const A=Av(gg(o,f,788544,void 0,void 0,!1)),R=A&&pT(A);if(A&&R!==void 0&&!(R&111551)){const B=Ic(f);return yB(f)?hn(o,N._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,B):aO(o,A)?hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,B,B==="K"?"P":"K"):hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,B),!0}}return!1}function aO(o,f){const v=Ua(o.parent,A=>Qf(A)||em(A)?!1:rS(A)||"quit");if(v&&v.members.length===1){const A=sh(f);return!!(A.flags&1048576)&&Gfe(A,384,!0)}return!1}function yB(o){switch(o){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function z6(o,f,v){if(v&111127){if(Av(gg(o,f,1024,void 0,void 0,!1)))return hn(o,N.Cannot_use_namespace_0_as_a_value,Ic(f)),!0}else if(v&788544&&Av(gg(o,f,1536,void 0,void 0,!1)))return hn(o,N.Cannot_use_namespace_0_as_a_type,Ic(f)),!0;return!1}function Vo(o,f){var v;if(re.assert(!!(o.flags&2||o.flags&32||o.flags&384)),o.flags&67108881&&o.flags&32)return;const A=(v=o.declarations)==null?void 0:v.find(R=>v9(R)||Fl(R)||R.kind===266);if(A===void 0)return re.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(A.flags&33554432)&&!Tu(A,f)){let R;const B=hm(i_(A));o.flags&2?R=hn(f,N.Block_scoped_variable_0_used_before_its_declaration,B):o.flags&32?R=hn(f,N.Class_0_used_before_its_declaration,B):o.flags&256&&(R=hn(f,N.Enum_0_used_before_its_declaration,B)),R&&ml(R,Bs(A,N._0_is_declared_here,B))}}function WA(o,f,v){return!!f&&!!Ua(o,A=>A===f||(A===v||F_(A)&&(!v7(A)||ob(A)&3)?"quit":!1))}function gD(o){switch(o.kind){case 271:return o;case 273:return o.parent;case 274:return o.parent.parent;case 276:return o.parent.parent.parent;default:return}}function UT(o){return o.declarations&&ra(o.declarations,wI)}function wI(o){return o.kind===271||o.kind===270||o.kind===273&&!!o.name||o.kind===274||o.kind===280||o.kind===276||o.kind===281||o.kind===277&&K8(o)||Ds(o)&&jy(o)===2&&K8(o)||Kf(o)&&Ds(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64&&P4(o.parent.right)||o.kind===304||o.kind===303&&P4(o.initializer)||o.kind===260&&E7(o)||o.kind===208&&E7(o.parent.parent)}function P4(o){return O9(o)||Jm(o)&&Ax(o)}function N4(o,f){const v=lw(o);if(v){const R=i3(v.expression).arguments[0];return xn(v.name)?Av(Yd(s2(R),v.name.escapedText)):void 0}if(Kc(o)||o.moduleReference.kind===283){const R=gS(o,Sie(o)||oG(o)),B=hS(R);return EE(o,R,B,!1),B}const A=U6(o.moduleReference,f);return G6(o,A),A}function G6(o,f){if(EE(o,void 0,f,!1)&&!o.isTypeOnly){const v=Qx(sc(o)),A=v.kind===281||v.kind===278,R=A?N.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,B=A?N._0_was_exported_here:N._0_was_imported_here,Y=v.kind===278?"*":Ic(v.name.escapedText);ml(hn(o.moduleReference,R),Bs(v,B,Y))}}function rs(o,f,v,A){const R=o.exports.get("export="),B=R?Yd(La(R),f,!0):o.exports.get(f),Y=Av(B,A);return EE(v,B,Y,!1),Y}function Ob(o){return my(o)&&!o.isExportEquals||ul(o,2048)||gy(o)||G0(o)}function gf(o){return Cm(o)?PA(ts(o),o):void 0}function ko(o,f){return o===99&&f===1}function ac(o){return gf(o)===99&&h_(o.text,".json")}function Ys(o,f,v,A){const R=o&&gf(A);if(o&&R!==void 0){const B=ko(R,o.impliedNodeFormat);if(R===99||B)return B}if(!Ze)return!1;if(!o||o.isDeclarationFile){const B=rs(f,"default",void 0,!0);return!(B&>(B.declarations,Ob)||rs(f,ey("__esModule"),void 0,v))}return Gy(o)?typeof o.externalModuleIndicator!="object"&&!rs(f,ey("__esModule"),void 0,v):lO(f)}function Ni(o,f){const v=gS(o,o.parent.moduleSpecifier);if(v)return Nl(v,o,f)}function Nl(o,f,v){var A;let R;ZU(o)?R=o:R=rs(o,"default",f,v);const B=(A=o.declarations)==null?void 0:A.find(Nu),Y=Xd(f);if(!Y)return R;const pe=ac(Y),Te=Ys(B,o,v,Y);if(!R&&!Te&&!pe)if(lO(o)&&!Ze){const Ue=Ie>=5?"allowSyntheticDefaultImports":"esModuleInterop",Rt=o.exports.get("export=").valueDeclaration,rn=hn(f.name,N.Module_0_can_only_be_default_imported_using_the_1_flag,ru(o),Ue);Rt&&ml(rn,Bs(Rt,N.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Ue))}else Tk(f)?b_(o,f):RI(o,o,f,fP(f)&&f.propertyName||f.name);else if(Te||pe){const Ue=hS(o,v)||Av(o,v);return EE(f,o,Ue,!1),Ue}return EE(f,R,void 0,!1),R}function Xd(o){switch(o.kind){case 273:return o.parent.moduleSpecifier;case 271:return KE(o.moduleReference)?o.moduleReference.expression:void 0;case 274:return o.parent.parent.moduleSpecifier;case 276:return o.parent.parent.parent.moduleSpecifier;case 281:return o.parent.parent.moduleSpecifier;default:return re.assertNever(o)}}function b_(o,f){var v,A,R;if((v=o.exports)!=null&&v.has(f.symbol.escapedName))hn(f.name,N.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ru(o),ru(f.symbol));else{const B=hn(f.name,N.Module_0_has_no_default_export,ru(o)),Y=(A=o.exports)==null?void 0:A.get("__export");if(Y){const pe=(R=Y.declarations)==null?void 0:R.find(Te=>{var Ue,St;return!!(ry(Te)&&Te.moduleSpecifier&&((St=(Ue=gS(Te,Te.moduleSpecifier))==null?void 0:Ue.exports)!=null&&St.has("default")))});pe&&ml(B,Bs(pe,N.export_Asterisk_does_not_re_export_a_default))}}}function Gp(o,f){const v=o.parent.parent.moduleSpecifier,A=gS(o,v),R=M4(A,v,f,!1);return EE(o,A,R,!1),R}function w1(o,f){const v=o.parent.moduleSpecifier,A=v&&gS(o,v),R=v&&M4(A,v,f,!1);return EE(o,A,R,!1),R}function zS(o,f){if(o===Pr&&f===Pr)return Pr;if(o.flags&790504)return o;const v=tp(o.flags|f.flags,o.escapedName);return re.assert(o.declarations||f.declarations),v.declarations=th(Hi(o.declarations,f.declarations),_1),v.parent=o.parent||f.parent,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),f.members&&(v.members=new Map(f.members)),o.exports&&(v.exports=new Map(o.exports)),v}function SE(o,f,v,A){var R;if(o.flags&1536){const B=L2(o).get(f.escapedText),Y=Av(B,A),pe=(R=Ae(o).typeOnlyExportStarMap)==null?void 0:R.get(f.escapedText);return EE(v,B,Y,!1,pe,f.escapedText),Y}}function R1(o,f){if(o.flags&3){const v=o.valueDeclaration.type;if(v)return Av(Yd(Xl(v),f))}}function JP(o,f,v=!1){var A;const R=Sie(o)||o.moduleSpecifier,B=gS(o,R),Y=!Ac(f)&&f.propertyName||f.name;if(!xn(Y))return;const pe=Y.escapedText==="default"&&Ze,Te=M4(B,R,!1,pe);if(Te&&Y.escapedText){if(ZU(B))return B;let Ue;B&&B.exports&&B.exports.get("export=")?Ue=Yd(La(Te),Y.escapedText,!0):Ue=R1(Te,Y.escapedText),Ue=Av(Ue,v);let St=SE(Te,Y,f,v);if(St===void 0&&Y.escapedText==="default"){const rn=(A=B.declarations)==null?void 0:A.find(Nu);(ac(R)||Ys(rn,B,v,R))&&(St=hS(B,v)||Av(B,v))}const Rt=St&&Ue&&St!==Ue?zS(Ue,St):St||Ue;return Rt||RI(B,Te,o,Y),Rt}}function RI(o,f,v,A){var R;const B=GS(o,v),Y=hm(A),pe=Ife(A,f);if(pe!==void 0){const Te=ru(pe),Ue=hn(A,N._0_has_no_exported_member_named_1_Did_you_mean_2,B,Y,Te);pe.valueDeclaration&&ml(Ue,Bs(pe.valueDeclaration,N._0_is_declared_here,Te))}else(R=o.exports)!=null&&R.has("default")?hn(A,N.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,B,Y):Uy(v,A,Y,o,B)}function Uy(o,f,v,A,R){var B,Y;const pe=(Y=(B=to(A.valueDeclaration,XD))==null?void 0:B.locals)==null?void 0:Y.get(f.escapedText),Te=A.exports;if(pe){const Ue=Te==null?void 0:Te.get("export=");if(Ue)AE(Ue,pe)?Lk(o,f,v,R):hn(f,N.Module_0_has_no_exported_member_1,R,v);else{const St=Te?lr(q0e(Te),rn=>!!AE(rn,pe)):void 0,Rt=St?hn(f,N.Module_0_declares_1_locally_but_it_is_exported_as_2,R,v,ru(St)):hn(f,N.Module_0_declares_1_locally_but_it_is_not_exported,R,v);pe.declarations&&ml(Rt,...Vn(pe.declarations,(rn,Sn)=>Bs(rn,Sn===0?N._0_is_declared_here:N.and_here,v)))}}else hn(f,N.Module_0_has_no_exported_member_1,R,v)}function Lk(o,f,v,A){if(Ie>=5){const R=b1(Pe)?N._0_can_only_be_imported_by_using_a_default_import:N._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v)}else if(Cs(o)){const R=b1(Pe)?N._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:N._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v)}else{const R=b1(Pe)?N._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:N._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v,v,A)}}function w4(o,f){if(qE(o)&&Kr(o.propertyName||o.name)==="default"){const Y=Xd(o),pe=Y&&gS(o,Y);if(pe)return Nl(pe,o,f)}const v=sa(o)?vA(o):o.parent.parent.parent,A=lw(v),R=JP(v,A||o,f),B=o.propertyName||o.name;return A&&R&&xn(B)?Av(Yd(La(R),B.escapedText),f):(EE(o,void 0,R,!1),R)}function lw(o){if(Kc(o)&&o.initializer&&Ac(o.initializer))return o.initializer}function j6(o,f){if(ck(o.parent)){const v=hS(o.parent.symbol,f);return EE(o,void 0,v,!1),v}}function sO(o,f,v){if(Kr(o.propertyName||o.name)==="default"){const R=Xd(o),B=R&&gS(o,R);if(B)return Nl(B,o,!!v)}const A=o.parent.parent.moduleSpecifier?JP(o.parent.parent,o,v):Qg(o.propertyName||o.name,f,!1,v);return EE(o,void 0,A,!1),A}function Ok(o,f){const v=my(o)?o.expression:o.right,A=vB(v,f);return EE(o,void 0,A,!1),A}function vB(o,f){if(v0(o))return kv(o).symbol;if(!kT(o)&&!Tg(o))return;const v=Qg(o,901119,!0,f);return v||(kv(o),rt(o).resolvedSymbol)}function Rm(o,f){if(Ds(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64)return vB(o.parent.right,f)}function Yx(o,f=!1){switch(o.kind){case 271:case 260:return N4(o,f);case 273:return Ni(o,f);case 274:return Gp(o,f);case 280:return w1(o,f);case 276:case 208:return w4(o,f);case 281:return sO(o,901119,f);case 277:case 226:return Ok(o,f);case 270:return j6(o,f);case 304:return Qg(o.name,901119,!0,f);case 303:return vB(o.initializer,f);case 212:case 211:return Rm(o,f);default:return re.fail()}}function uw(o,f=901119){return o?(o.flags&(2097152|f))===2097152||!!(o.flags&2097152&&o.flags&67108864):!1}function Av(o,f){return!f&&uw(o)?C0(o):o}function C0(o){re.assert((o.flags&2097152)!==0,"Should only get Alias here.");const f=Ae(o);if(f.aliasTarget)f.aliasTarget===Bt&&(f.aliasTarget=Pr);else{f.aliasTarget=Bt;const v=UT(o);if(!v)return re.fail();const A=Yx(v);f.aliasTarget===Bt?f.aliasTarget=A||Pr:hn(v,N.Circular_definition_of_import_alias_0,ru(o))}return f.aliasTarget}function gV(o){if(Ae(o).aliasTarget!==Bt)return C0(o)}function pT(o,f,v){const A=f&&Qx(o),R=A&&ry(A),B=A&&(R?gS(A.moduleSpecifier,A.moduleSpecifier,!0):C0(A.symbol)),Y=R&&B?dw(B):void 0;let pe=v?0:o.flags,Te;for(;o.flags&2097152;){const Ue=eA(C0(o));if(!R&&Ue===B||(Y==null?void 0:Y.get(Ue.escapedName))===Ue)break;if(Ue===Pr)return 67108863;if(Ue===o||Te!=null&&Te.has(Ue))break;Ue.flags&2097152&&(Te?Te.add(Ue):Te=new Set([o,Ue])),pe|=Ue.flags,o=Ue}return pe}function EE(o,f,v,A,R,B){if(!o||Ac(o))return!1;const Y=sc(o);if(O8(o)){const Te=Ae(Y);return Te.typeOnlyDeclaration=o,!0}if(R){const Te=Ae(Y);return Te.typeOnlyDeclaration=R,Y.escapedName!==B&&(Te.typeOnlyExportStarName=B),!0}const pe=Ae(Y);return cO(pe,f,A)||cO(pe,v,A)}function cO(o,f,v){var A;if(f&&(o.typeOnlyDeclaration===void 0||v&&o.typeOnlyDeclaration===!1)){const R=((A=f.exports)==null?void 0:A.get("export="))??f,B=R.declarations&&lr(R.declarations,O8);o.typeOnlyDeclaration=B??Ae(R).typeOnlyDeclaration??!1}return!!o.typeOnlyDeclaration}function Qx(o,f){if(!(o.flags&2097152))return;const v=Ae(o);if(f===void 0)return v.typeOnlyDeclaration||void 0;if(v.typeOnlyDeclaration){const A=v.typeOnlyDeclaration.kind===278?Av(dw(v.typeOnlyDeclaration.symbol.parent).get(v.typeOnlyExportStarName||o.escapedName)):C0(v.typeOnlyDeclaration.symbol);return pT(A)&f?v.typeOnlyDeclaration:void 0}}function V6(o){if(!Fr)return;const f=sc(o),v=C0(f);v&&(v===Pr||pT(f,!0)&111551&&!ud(v))&&fw(f)}function fw(o){re.assert(Fr);const f=Ae(o);if(!f.referenced){f.referenced=!0;const v=UT(o);if(!v)return re.fail();$M(v)&&pT(Av(o))&111551&&kv(v.moduleReference)}}function s0(o){const f=Ae(o);f.constEnumReferenced||(f.constEnumReferenced=!0)}function U6(o,f){return o.kind===80&&z7(o)&&(o=o.parent),o.kind===80||o.parent.kind===166?Qg(o,1920,!1,f):(re.assert(o.parent.kind===271),Qg(o,901119,!1,f))}function GS(o,f){return o.parent?GS(o.parent,f)+"."+ru(o):ru(o,f,void 0,36)}function R4(o){for(;Pu(o.parent);)o=o.parent;return o}function Kq(o){let f=PS(o),v=gg(f,f.escapedText,111551,void 0,f,!0);if(v){for(;Pu(f.parent);){const A=La(v);if(v=Yd(A,f.parent.right.escapedText),!v)return;f=f.parent}return v}}function Qg(o,f,v,A,R){if(ny(o))return;const B=1920|(Cs(o)?f&111551:0);let Y;if(o.kind===80){const pe=f===B||Hd(o)?N.Cannot_find_namespace_0:xtt(PS(o)),Te=Cs(o)&&!Hd(o)?bB(o,f):void 0;if(Y=jp(gg(R||o,o.escapedText,f,v||Te?void 0:pe,o,!0,!1)),!Y)return jp(Te)}else if(o.kind===166||o.kind===211){const pe=o.kind===166?o.left:o.expression,Te=o.kind===166?o.right:o.name;let Ue=Qg(pe,B,v,!1,R);if(!Ue||ny(Te))return;if(Ue===Pr)return Ue;if(Ue.valueDeclaration&&Cs(Ue.valueDeclaration)&&Jd(Pe)!==100&&Kc(Ue.valueDeclaration)&&Ue.valueDeclaration.initializer&&eGe(Ue.valueDeclaration.initializer)){const St=Ue.valueDeclaration.initializer.arguments[0],Rt=gS(St,St);if(Rt){const rn=hS(Rt);rn&&(Ue=rn)}}if(Y=jp(Ci(L2(Ue),Te.escapedText,f)),!Y&&Ue.flags&2097152&&(Y=jp(Ci(L2(C0(Ue)),Te.escapedText,f))),!Y){if(!v){const St=GS(Ue),Rt=hm(Te),rn=Ife(Te,Ue);if(rn){hn(Te,N._0_has_no_exported_member_named_1_Did_you_mean_2,St,Rt,ru(rn));return}const Sn=Pu(o)&&R4(o);if(Jt&&f&788968&&Sn&&!yk(Sn.parent)&&Kq(Sn)){hn(Sn,N._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,iE(Sn));return}if(f&1920&&Pu(o.parent)){const Ai=jp(Ci(L2(Ue),Te.escapedText,788968));if(Ai){hn(o.parent.right,N.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,ru(Ai),Ic(o.parent.right.escapedText));return}}hn(Te,N.Namespace_0_has_no_exported_member_1,St,Rt)}return}}else re.assertNever(o,"Unknown entity name kind.");return re.assert((I_(Y)&1)===0,"Should never get an instantiated symbol here."),!Hd(o)&&kT(o)&&(Y.flags&2097152||o.parent.kind===277)&&EE(vP(o),Y,void 0,!0),Y.flags&f||A?Y:C0(Y)}function bB(o,f){if(Q6(o.parent)){const v=BA(o.parent);if(v)return gg(v,o.escapedText,f,void 0,o,!0)}}function BA(o){if(Ua(o,R=>$z(R)||R.flags&16777216?b2(R):"quit"))return;const v=k7(o);if(v&&kb(v)&&VL(v.expression)){const R=sc(v.expression.left);if(R)return $R(R)}if(v&&Jm(v)&&VL(v.parent)&&kb(v.parent.parent)){const R=sc(v.parent.left);if(R)return $R(R)}if(v&&(iC(v)||tl(v))&&Ds(v.parent.parent)&&jy(v.parent.parent)===6){const R=sc(v.parent.parent.left);if(R)return $R(R)}const A=YM(o);if(A&&F_(A)){const R=sc(A);return R&&R.valueDeclaration}}function $R(o){const f=o.parent.valueDeclaration;return f?(eT(f)?I9(f):g1(f)?pR(f):void 0)||f:void 0}function M1(o){const f=o.valueDeclaration;if(!f||!Cs(f)||o.flags&524288||KM(f,!1))return;const v=Kc(f)?pR(f):I9(f);if(v){const A=hx(v);if(A)return ywe(A,o)}}function gS(o,f,v){const R=Jd(Pe)===1?N.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N.Cannot_find_module_0_or_its_corresponding_type_declarations;return _w(o,f,v?void 0:R)}function _w(o,f,v,A=!1){return Cm(f)?qR(o,f.text,v,f,A):void 0}function qR(o,f,v,A,R=!1){var B,Y,pe,Te,Ue,St,Rt,rn,Sn,xr;if(qf(f,"@types/")){const Da=N.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,cc=xf(f,"@types/");hn(A,Da,cc,f)}const Ai=aK(f,!0);if(Ai)return Ai;const So=ts(o),la=Cm(o)?o:((B=Ua(o,Py))==null?void 0:B.arguments[0])||((Y=Ua(o,n0))==null?void 0:Y.moduleSpecifier)||((pe=Ua(o,Mx))==null?void 0:pe.moduleReference.expression)||((Te=Ua(o,ry))==null?void 0:Te.moduleSpecifier)||((Ue=py(o)?o:o.parent&&py(o.parent)&&o.parent.name===o?o.parent:void 0)==null?void 0:Ue.name)||((St=MN(o)?o:void 0)==null?void 0:St.argument.literal),Zs=la&&Cm(la)?PA(So,la):So.impliedNodeFormat,ba=Jd(Pe),mo=(Rt=e.getResolvedModule(So,f,Zs))==null?void 0:Rt.resolvedModule,Ya=mo&&QQ(Pe,mo,So),Ra=mo&&(!Ya||Ya===N.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(mo.resolvedFileName);if(Ra){if(Ya&&hn(A,Ya,f,mo.resolvedFileName),mo.resolvedUsingTsExtension&&Zb(f)){const Da=((rn=Ua(o,n0))==null?void 0:rn.importClause)||Ua(o,bb(Yb,ry));(Da&&!Da.isTypeOnly||Ua(o,Py))&&hn(A,N.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Va(re.checkDefined(PH(f))))}else if(mo.resolvedUsingTsExtension&&!MW(Pe,So.fileName)){const Da=((Sn=Ua(o,n0))==null?void 0:Sn.importClause)||Ua(o,bb(Yb,ry));if(!(Da!=null&&Da.isTypeOnly||Ua(o,E1))){const cc=re.checkDefined(PH(f));hn(A,N.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,cc)}}if(Ra.symbol){if(mo.isExternalLibraryImport&&!G7(mo.extension)&&i2(!1,A,So,Zs,mo,f),ba===3||ba===99){const Da=So.impliedNodeFormat===1&&!Ua(o,Py)||!!Ua(o,Yb),cc=Ua(o,V_=>E1(V_)||ry(V_)||n0(V_));if(Da&&Ra.impliedNodeFormat===99&&!_6(cc))if(Ua(o,Yb))hn(A,N.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,f);else{let V_;const fd=OT(So.fileName);if(fd===".ts"||fd===".js"||fd===".tsx"||fd===".jsx"){const ad=So.packageJsonScope,Xf=fd===".ts"?".mts":fd===".js"?".mjs":void 0;ad&&!ad.contents.packageJsonContent.type?Xf?V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Xf,vl(ad.packageDirectory,"package.json")):V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,vl(ad.packageDirectory,"package.json")):Xf?V_=Es(void 0,N.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,Xf):V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}j_.add(wN(ts(A),A,Es(V_,N.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,f)))}}return jp(Ra.symbol)}v&&hn(A,N.File_0_is_not_a_module,Ra.fileName);return}if(r1){const Da=CL(r1,cc=>cc.pattern,f);if(Da){const cc=sg&&sg.get(f);return jp(cc||Da.symbol)}}if(mo&&!G7(mo.extension)&&Ya===void 0||Ya===N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(R){const Da=N.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;hn(A,Da,f,mo.resolvedFileName)}else i2(Et&&!!v,A,So,Zs,mo,f);return}if(v){if(mo){const Da=e.getProjectReferenceRedirect(mo.resolvedFileName);if(Da){hn(A,N.Output_file_0_has_not_been_built_from_source_file_1,Da,mo.resolvedFileName);return}}if(Ya)hn(A,Ya,f,mo.resolvedFileName);else{const Da=V2(f)&&!r9(f),cc=ba===3||ba===99;if(!sI(Pe)&&mm(f,".json")&&ba!==1&&BH(Pe))hn(A,N.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,f);else if(Zs===99&&cc&&Da){const V_=vf(f,ws(So.path)),fd=(xr=zn.find(([ad,Xf])=>e.fileExists(V_+ad)))==null?void 0:xr[1];fd?hn(A,N.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,f+fd):hn(A,N.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 hn(A,v,f)}}return;function Va(Da){const cc=eW(f,Da);if(WH(Ie)||Zs===99){const V_=Zb(f)&&MW(Pe);return cc+(Da===".mts"||Da===".d.mts"?V_?".mts":".mjs":Da===".cts"||Da===".d.mts"?V_?".cts":".cjs":V_?".ts":".js")}return cc}}function i2(o,f,v,A,{packageId:R,resolvedFileName:B},Y){let pe;!Kv(Y)&&R&&(pe=KU(v,e,Y,A,R.name)),yh(o,f,Es(pe,N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,Y,B))}function hS(o,f){if(o!=null&&o.exports){const v=Av(o.exports.get("export="),f),A=TB(jp(v),jp(o));return jp(A)||o}}function TB(o,f){if(!o||o===Pr||o===f||f.exports.size===1||o.flags&2097152)return o;const v=Ae(o);if(v.cjsExportMerged)return v.cjsExportMerged;const A=o.flags&33554432?o:Bm(o);return A.flags=A.flags|512,A.exports===void 0&&(A.exports=zd()),f.exports.forEach((R,B)=>{B!=="export="&&A.exports.set(B,A.exports.has(B)?Hv(A.exports.get(B),R):R)}),A===o&&(Ae(A).resolvedExports=void 0,Ae(A).resolvedMembers=void 0),Ae(A).cjsExportMerged=A,v.cjsExportMerged=A}function M4(o,f,v,A){var R;const B=hS(o,v);if(!v&&B){if(!A&&!(B.flags&1539)&&!Rh(B,312)){const pe=Ie>=5?"allowSyntheticDefaultImports":"esModuleInterop";return hn(f,N.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,pe),B}const Y=f.parent;if(n0(Y)&&H8(Y)||Py(Y)){const pe=Py(Y)?Y.arguments[0]:Y.moduleSpecifier,Te=La(B),Ue=Zze(Te,B,o,pe);if(Ue)return Zx(B,Ue,Y);const St=(R=o==null?void 0:o.declarations)==null?void 0:R.find(Nu),Rt=St&&ko(gf(pe),St.impliedNodeFormat);if(b1(Pe)||Rt){let rn=$0e(Te,0);if((!rn||!rn.length)&&(rn=$0e(Te,1)),rn&&rn.length||Yd(Te,"default",!0)||Rt){const Sn=Te.flags&3670016?Bnt(Te,B,o,pe):Twe(B,B.parent);return Zx(B,Sn,Y)}}}}return B}function Zx(o,f,v){const A=tp(o.flags,o.escapedName);A.declarations=o.declarations?o.declarations.slice():[],A.parent=o.parent,A.links.target=o,A.links.originatingImport=v,o.valueDeclaration&&(A.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(A.constEnumOnlyModule=!0),o.members&&(A.members=new Map(o.members)),o.exports&&(A.exports=new Map(o.exports));const R=Gh(f);return A.links.type=sy(A,R.members,Yn,Yn,R.indexInfos),A}function lO(o){return o.exports.get("export=")!==void 0}function H6(o){return q0e(dw(o))}function hV(o){const f=H6(o),v=hS(o);if(v!==o){const A=La(v);uO(A)&&Oi(f,zm(A))}return f}function yV(o,f){dw(o).forEach((R,B)=>{jS(B)||f(R,B)});const A=hS(o);if(A!==o){const R=La(A);uO(R)&&ngt(R,(B,Y)=>{f(B,Y)})}}function JF(o,f){const v=dw(f);if(v)return v.get(o)}function SB(o,f){const v=JF(o,f);if(v)return v;const A=hS(f);if(A===f)return;const R=La(A);return uO(R)?Yd(R,o):void 0}function uO(o){return!(o.flags&402784252||ji(o)&1||kE(o)||Dp(o))}function L2(o){return o.flags&6256?bWe(o,"resolvedExports"):o.flags&1536?dw(o):o.exports||Fe}function dw(o){const f=Ae(o);if(!f.resolvedExports){const{exports:v,typeOnlyExportStarMap:A}=vV(o);f.resolvedExports=v,f.typeOnlyExportStarMap=A}return f.resolvedExports}function EB(o,f,v,A){f&&f.forEach((R,B)=>{if(B==="default")return;const Y=o.get(B);if(!Y)o.set(B,R),v&&A&&v.set(B,{specifierText:Lv(A.moduleSpecifier)});else if(v&&A&&Y&&Av(Y)!==Av(R)){const pe=v.get(B);pe.exportsWithDuplicate?pe.exportsWithDuplicate.push(A):pe.exportsWithDuplicate=[A]}})}function vV(o){const f=[];let v;const A=new Set;o=hS(o);const R=B(o)||Fe;return v&&A.forEach(Y=>v.delete(Y)),{exports:R,typeOnlyExportStarMap:v};function B(Y,pe,Te){if(!Te&&(Y!=null&&Y.exports)&&Y.exports.forEach((Rt,rn)=>A.add(rn)),!(Y&&Y.exports&&Dy(f,Y)))return;const Ue=new Map(Y.exports),St=Y.exports.get("__export");if(St){const Rt=zd(),rn=new Map;if(St.declarations)for(const Sn of St.declarations){const xr=gS(Sn,Sn.moduleSpecifier),Ai=B(xr,Sn,Te||Sn.isTypeOnly);EB(Rt,Ai,rn,Sn)}rn.forEach(({exportsWithDuplicate:Sn},xr)=>{if(!(xr==="export="||!(Sn&&Sn.length)||Ue.has(xr)))for(const Ai of Sn)j_.add(Bs(Ai,N.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,rn.get(xr).specifierText,Ic(xr)))}),EB(Ue,Rt)}return pe!=null&&pe.isTypeOnly&&(v??(v=new Map),Ue.forEach((Rt,rn)=>v.set(rn,pe))),Ue}}function jp(o){let f;return o&&o.mergeId&&(f=oa[o.mergeId])?f:o}function sc(o){return jp(o.symbol&&Pue(o.symbol))}function hx(o){return ck(o)?sc(o):void 0}function xE(o){return jp(o.parent&&Pue(o.parent))}function fO(o,f){const v=ts(f),A=vm(v),R=Ae(o);let B;if(R.extendedContainersByFile&&(B=R.extendedContainersByFile.get(A)))return B;if(v&&v.imports){for(const pe of v.imports){if(Hd(pe))continue;const Te=gS(f,pe,!0);!Te||!L4(Te,o)||(B=ur(B,Te))}if(Nt(B))return(R.extendedContainersByFile||(R.extendedContainersByFile=new Map)).set(A,B),B}if(R.extendedContainers)return R.extendedContainers;const Y=e.getSourceFiles();for(const pe of Y){if(!Bv(pe))continue;const Te=sc(pe);L4(Te,o)&&(B=ur(B,Te))}return R.extendedContainers=B||Yn}function bV(o,f,v){const A=xE(o);if(A&&!(o.flags&262144)){const Y=Qo(A.declarations,B),pe=f&&fO(o,f),Te=_O(A,v);if(f&&A.flags&o2(v)&&pw(A,f,1920,!1))return ur(Hi(Hi([A],Y),pe),Te);const Ue=!(A.flags&o2(v))&&A.flags&788968&&sh(A).flags&524288&&v===111551?O2(f,Rt=>Jb(Rt,rn=>{if(rn.flags&o2(v)&&La(rn)===sh(A))return rn})):void 0;let St=Ue?[Ue,...Y,A]:[...Y,A];return St=ur(St,Te),St=Oi(St,pe),St}const R=Qo(o.declarations,Y=>{if(!dh(Y)&&Y.parent){if(Z_(Y.parent))return sc(Y.parent);if(kh(Y.parent)&&Y.parent.parent&&hS(sc(Y.parent.parent))===o)return sc(Y.parent.parent)}if(v0(Y)&&Ds(Y.parent)&&Y.parent.operatorToken.kind===64&&Kf(Y.parent.left)&&Tg(Y.parent.left.expression))return jE(Y.parent.left)||P9(Y.parent.left.expression)?sc(ts(Y)):(kv(Y.parent.left.expression),rt(Y.parent.left.expression).resolvedSymbol)});if(!Nt(R))return;return Qo(R,Y=>L4(Y,o)?Y:void 0);function B(Y){return A&&$F(Y,A)}}function _O(o,f){const v=!!Nt(o.declarations)&&Dl(o.declarations);if(f&111551&&v&&v.parent&&Kc(v.parent)&&(el(v)&&v===v.parent.initializer||rS(v)&&v===v.parent.type))return sc(v.parent)}function $F(o,f){const v=ql(o),A=v&&v.exports&&v.exports.get("export=");return A&&AE(A,f)?v:void 0}function L4(o,f){if(o===xE(f))return f;const v=o.exports&&o.exports.get("export=");if(v&&AE(v,f))return o;const A=L2(o),R=A.get(f.escapedName);return R&&AE(R,f)?R:Jb(A,B=>{if(AE(B,f))return B})}function AE(o,f){if(jp(Av(jp(o)))===jp(Av(jp(f))))return o}function eA(o){return jp(o&&(o.flags&1048576)!==0&&o.exportSymbol||o)}function KR(o,f){return!!(o.flags&111551||o.flags&2097152&&pT(o,!f)&111551)}function hD(o){const f=o.members;for(const v of f)if(v.kind===176&&y2(v.body))return v}function TC(o){var f;const v=new E($i,o);return k++,v.id=k,(f=ps)==null||f.recordType(v),v}function L1(o,f){const v=TC(o);return v.symbol=f,v}function mT(o){return new E($i,o)}function Vg(o,f,v=0,A){SC(f,A);const R=TC(o);return R.intrinsicName=f,R.debugIntrinsicName=A,R.objectFlags=v|524288|2097152|33554432|16777216,R}function SC(o,f){const v=`${o},${f??""}`;$r.has(v)&&re.fail(`Duplicate intrinsic type name ${o}${f?` (${f})`:""}; you may need to pass a name to createIntrinsicType.`),$r.add(v)}function tA(o,f){const v=L1(524288,f);return v.objectFlags=o,v.members=void 0,v.properties=void 0,v.callSignatures=void 0,v.constructSignatures=void 0,v.indexInfos=void 0,v}function O4(){return dc(oc(Dae.keys(),vS))}function c0(o){return L1(262144,o)}function jS(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)!==95&&o.charCodeAt(2)!==64&&o.charCodeAt(2)!==35}function dO(o){let f;return o.forEach((v,A)=>{pO(v,A)&&(f||(f=[])).push(v)}),f||Yn}function pO(o,f){return!jS(f)&&KR(o)}function Xq(o){const f=dO(o),v=bO(o);return v?Hi(f,[v]):f}function Ty(o,f,v,A,R){const B=o;return B.members=f,B.properties=Yn,B.callSignatures=v,B.constructSignatures=A,B.indexInfos=R,f!==Fe&&(B.properties=dO(f)),B}function sy(o,f,v,A,R){return Ty(tA(16,o),f,v,A,R)}function K0(o){if(o.constructSignatures.length===0)return o;if(o.objectTypeWithoutAbstractConstructSignatures)return o.objectTypeWithoutAbstractConstructSignatures;const f=gi(o.constructSignatures,A=>!(A.flags&4));if(o.constructSignatures===f)return o;const v=sy(o.symbol,o.members,o.callSignatures,gt(f)?f:Yn,o.indexInfos);return o.objectTypeWithoutAbstractConstructSignatures=v,v.objectTypeWithoutAbstractConstructSignatures=v,v}function O2(o,f){let v;for(let A=o;A;A=A.parent){if(XD(A)&&A.locals&&!Dn(A)&&(v=f(A.locals,void 0,!0,A)))return v;switch(A.kind){case 312:if(!aE(A))break;case 267:const R=sc(A);if(v=f((R==null?void 0:R.exports)||Fe,void 0,!0,A))return v;break;case 263:case 231:case 264:let B;if((sc(A).members||Fe).forEach((Y,pe)=>{Y.flags&788968&&(B||(B=zd())).set(pe,Y)}),B&&(v=f(B,void 0,!1,A)))return v;break}}return f(jt,void 0,!0)}function o2(o){return o===111551?111551:1920}function pw(o,f,v,A,R=new Map){if(!(o&&!F4(o)))return;const B=Ae(o),Y=B.accessibleChainCache||(B.accessibleChainCache=new Map),pe=O2(f,(la,Zs,ba,mo)=>mo),Te=`${A?0:1}|${pe&&vm(pe)}|${v}`;if(Y.has(Te))return Y.get(Te);const Ue=$d(o);let St=R.get(Ue);St||R.set(Ue,St=[]);const Rt=O2(f,rn);return Y.set(Te,Rt),Rt;function rn(la,Zs,ba){if(!Dy(St,la))return;const mo=Ai(la,Zs,ba);return St.pop(),mo}function Sn(la,Zs){return!Vp(la,f,Zs)||!!pw(la.parent,f,o2(Zs),A,R)}function xr(la,Zs,ba){return(o===(Zs||la)||jp(o)===jp(Zs||la))&&!gt(la.declarations,Z_)&&(ba||Sn(jp(la),v))}function Ai(la,Zs,ba){return xr(la.get(o.escapedName),void 0,Zs)?[o]:Jb(la,Ya=>{if(Ya.flags&2097152&&Ya.escapedName!=="export="&&Ya.escapedName!=="default"&&!(MH(Ya)&&f&&Bv(ts(f)))&&(!A||gt(Ya.declarations,Mx))&&(!ba||!gt(Ya.declarations,oH))&&(Zs||!Rh(Ya,281))){const Ra=C0(Ya),Va=So(Ya,Ra,Zs);if(Va)return Va}if(Ya.escapedName===o.escapedName&&Ya.exportSymbol&&xr(jp(Ya.exportSymbol),void 0,Zs))return[o]})||(la===jt?So(fr,fr,Zs):void 0)}function So(la,Zs,ba){if(xr(la,Zs,ba))return[la];const mo=L2(Zs),Ya=mo&&rn(mo,!0);if(Ya&&Sn(la,o2(v)))return[la].concat(Ya)}}function Vp(o,f,v){let A=!1;return O2(f,R=>{let B=jp(R.get(o.escapedName));if(!B)return!1;if(B===o)return!0;const Y=B.flags&2097152&&!Rh(B,281);return B=Y?C0(B):B,(Y?pT(B):B.flags)&v?(A=!0,!0):!1}),A}function F4(o){if(o.declarations&&o.declarations.length){for(const f of o.declarations)switch(f.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(o,f){return Vu(o,f,788968,!1,!0).accessibility===0}function yt(o,f){return Vu(o,f,111551,!1,!0).accessibility===0}function Er(o,f,v){return Vu(o,f,v,!1,!1).accessibility===0}function Wi(o,f,v,A,R,B){if(!Nt(o))return;let Y,pe=!1;for(const Te of o){const Ue=pw(Te,f,A,!1);if(Ue){Y=Te;const rn=CE(Ue[0],R);if(rn)return rn}if(B&>(Te.declarations,Z_)){if(R){pe=!0;continue}return{accessibility:0}}const St=bV(Te,f,A),Rt=Wi(St,f,v,v===Te?o2(A):A,R,B);if(Rt)return Rt}if(pe)return{accessibility:0};if(Y)return{accessibility:1,errorSymbolName:ru(v,f,A),errorModuleName:Y!==v?ru(Y,f,1920):void 0}}function nc(o,f,v,A){return Vu(o,f,v,A,!0)}function Vu(o,f,v,A,R){if(o&&f){const B=Wi([o],f,o,v,A,R);if(B)return B;const Y=Ot(o.declarations,ql);if(Y){const pe=ql(f);if(Y!==pe)return{accessibility:2,errorSymbolName:ru(o,f,v),errorModuleName:ru(Y),errorNode:Cs(f)?f:void 0}}return{accessibility:1,errorSymbolName:ru(o,f,v)}}return{accessibility:0}}function ql(o){const f=Ua(o,Pf);return f&&sc(f)}function Pf(o){return dh(o)||o.kind===312&&aE(o)}function Z_(o){return rY(o)||o.kind===312&&aE(o)}function CE(o,f){let v;if(!jr(gi(o.declarations,B=>B.kind!==80),A))return;return{accessibility:0,aliasesToMakeVisible:v};function A(B){var Y,pe;if(!gw(B)){const Te=gD(B);if(Te&&!ul(Te,32)&&gw(Te.parent))return R(B,Te);if(Kc(B)&&Xg(B.parent.parent)&&!ul(B.parent.parent,32)&&gw(B.parent.parent.parent))return R(B,B.parent.parent);if(B8(B)&&!ul(B,32)&&gw(B.parent))return R(B,B);if(sa(B)){if(o.flags&2097152&&Cs(B)&&((Y=B.parent)!=null&&Y.parent)&&Kc(B.parent.parent)&&((pe=B.parent.parent.parent)!=null&&pe.parent)&&Xg(B.parent.parent.parent.parent)&&!ul(B.parent.parent.parent.parent,32)&&B.parent.parent.parent.parent.parent&&gw(B.parent.parent.parent.parent.parent))return R(B,B.parent.parent.parent.parent);if(o.flags&2){const Ue=Ua(B,Xg);return ul(Ue,32)?!0:gw(Ue.parent)?R(B,Ue):!1}}return!1}return!0}function R(B,Y){return f&&(rt(B).isVisible=!0,v=ST(v,Y)),!0}}function a2(o,f){let v;o.parent.kind===186||o.parent.kind===233&&!BE(o.parent)||o.parent.kind===167?v=1160127:o.kind===166||o.kind===211||o.parent.kind===271?v=1920:v=788968;const A=PS(o),R=gg(f,A.escapedText,v,void 0,void 0,!1);return R&&R.flags&262144&&v&788968?{accessibility:0}:!R&&E2(A)&&nc(sc(RT(A,!1,!1)),A,v,!1).accessibility===0?{accessibility:0}:R&&CE(R,!0)||{accessibility:1,errorSymbolName:Lv(A),errorNode:A}}function ru(o,f,v,A=4,R){let B=70221824;A&2&&(B|=128),A&1&&(B|=512),A&8&&(B|=16384),A&32&&(B|=134217728),A&16&&(B|=1073741824);const Y=A&4?Wr.symbolToNode:Wr.symbolToEntityName;return R?pe(R).getText():wT(pe);function pe(Te){const Ue=Y(o,v,f,B),St=(f==null?void 0:f.kind)===312?zme():d4(),Rt=f&&ts(f);return St.writeNode(4,Ue,Rt,Te),Te}}function Fk(o,f,v=0,A,R){return R?B(R).getText():wT(B);function B(Y){let pe;v&262144?pe=A===1?185:184:pe=A===1?180:179;const Te=Wr.signatureToSignatureDeclaration(o,pe,f,gO(v)|70221824|512),Ue=C$(),St=f&&ts(f);return Ue.writeNode(4,Te,St,z9(Y)),Y}}function Co(o,f,v=1064960,A=Nie("")){const R=Pe.noErrorTruncation||v&1,B=Wr.typeToTypeNode(o,f,gO(v)|70221824|(R?1:0));if(B===void 0)return re.fail("should always get typenode");const Y=o!==yi?d4():Bme(),pe=f&&ts(f);Y.writeNode(4,B,pe,A);const Te=A.getText(),Ue=R?CY*2:j7*2;return Ue&&Te&&Te.length>=Ue?Te.substr(0,Ue-3)+"...":Te}function DE(o,f){let v=mO(o.symbol)?Co(o,o.symbol.valueDeclaration):Co(o),A=mO(f.symbol)?Co(f,f.symbol.valueDeclaration):Co(f);return v===A&&(v=MI(o),A=MI(f)),[v,A]}function MI(o){return Co(o,void 0,64)}function mO(o){return o&&!!o.valueDeclaration&&kr(o.valueDeclaration)&&!Sx(o.valueDeclaration)}function gO(o=0){return o&848330091}function qF(o){return!!o.symbol&&!!(o.symbol.flags&32)&&(o===F1(o.symbol)||!!(o.flags&524288)&&!!(ji(o)&16777216))}function LI(){return{typeToTypeNode:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>A(mr,Ql)),indexInfoToIndexSignatureDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>St(mr,Ql,void 0)),signatureToSignatureDeclaration:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>Rt(mr,Ht,Kl)),symbolToEntityName:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>Xf(mr,Kl,Ht,!1)),symbolToExpression:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>KS(mr,Kl,Ht)),symbolToTypeParameterDeclarations:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>Ya(mr,Ql)),symbolToParameterDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>So(mr,Ql)),typeParameterToDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>xr(mr,Ql)),symbolTableToDeclarationStatements:(mr,Ht,Ws,Uc,Ql)=>f(Ht,Ws,Uc,Kl=>XA(mr,Kl,Ql)),symbolToNode:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>o(mr,Kl,Ht))};function o(mr,Ht,Ws){if(Ht.flags&1073741824){if(mr.valueDeclaration){const Ql=i_(mr.valueDeclaration);if(Ql&&Qf(Ql))return Ql}const Uc=Ae(mr).nameType;if(Uc&&Uc.flags&9216)return Ht.enclosingDeclaration=Uc.symbol.valueDeclaration,he.createComputedPropertyName(KS(Uc.symbol,Ht,Ws))}return KS(mr,Ht,Ws)}function f(mr,Ht,Ws,Uc){re.assert(mr===void 0||(mr.flags&16)===0);const Ql=Ws!=null&&Ws.trackSymbol?Ws.moduleResolverHost:Ht&134217728?HLe(e):void 0,Kl={enclosingDeclaration:mr,flags:Ht||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Kl.tracker=new lme(Kl,Ws,Ql);const Iu=Uc(Kl);return Kl.truncating&&Kl.flags&1&&Kl.tracker.reportTruncationError(),Kl.encounteredError?void 0:Iu}function v(mr){return mr.truncating?mr.truncating:mr.truncating=mr.approximateLength>(mr.flags&1?CY:j7)}function A(mr,Ht){const Ws=Ht.flags,Uc=R(mr,Ht);return Ht.flags=Ws,Uc}function R(mr,Ht){var Ws,Uc;c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();const Ql=Ht.flags&8388608;if(Ht.flags&=-8388609,!mr){if(!(Ht.flags&262144)){Ht.encounteredError=!0;return}return Ht.approximateLength+=3,he.createKeywordTypeNode(133)}if(Ht.flags&536870912||(mr=zI(mr)),mr.flags&1)return mr.aliasSymbol?he.createTypeReferenceNode(cc(mr.aliasSymbol),Te(mr.aliasTypeArguments,Ht)):mr===yi?sW(he.createKeywordTypeNode(133),3,"unresolved"):(Ht.approximateLength+=3,he.createKeywordTypeNode(mr===Ao?141:133));if(mr.flags&2)return he.createKeywordTypeNode(159);if(mr.flags&4)return Ht.approximateLength+=6,he.createKeywordTypeNode(154);if(mr.flags&8)return Ht.approximateLength+=6,he.createKeywordTypeNode(150);if(mr.flags&64)return Ht.approximateLength+=6,he.createKeywordTypeNode(163);if(mr.flags&16&&!mr.aliasSymbol)return Ht.approximateLength+=7,he.createKeywordTypeNode(136);if(mr.flags&1056){if(mr.symbol.flags&8){const ga=xE(mr.symbol),Rl=V_(ga,Ht,788968);if(sh(ga)===mr)return Rl;const af=Il(mr.symbol);return H2(af,0)?Ju(Rl,he.createTypeReferenceNode(af,void 0)):E1(Rl)?(Rl.isTypeOf=!0,he.createIndexedAccessTypeNode(Rl,he.createLiteralTypeNode(he.createStringLiteral(af)))):uE(Rl)?he.createIndexedAccessTypeNode(he.createTypeQueryNode(Rl.typeName),he.createLiteralTypeNode(he.createStringLiteral(af))):re.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return V_(mr.symbol,Ht,788968)}if(mr.flags&128)return Ht.approximateLength+=mr.value.length+2,he.createLiteralTypeNode(_s(he.createStringLiteral(mr.value,!!(Ht.flags&268435456)),16777216));if(mr.flags&256){const ga=mr.value;return Ht.approximateLength+=(""+ga).length,he.createLiteralTypeNode(ga<0?he.createPrefixUnaryExpression(41,he.createNumericLiteral(-ga)):he.createNumericLiteral(ga))}if(mr.flags&2048)return Ht.approximateLength+=tD(mr.value).length+1,he.createLiteralTypeNode(he.createBigIntLiteral(mr.value));if(mr.flags&512)return Ht.approximateLength+=mr.intrinsicName.length,he.createLiteralTypeNode(mr.intrinsicName==="true"?he.createTrue():he.createFalse());if(mr.flags&8192){if(!(Ht.flags&1048576)){if(yt(mr.symbol,Ht.enclosingDeclaration))return Ht.approximateLength+=6,V_(mr.symbol,Ht,111551);Ht.tracker.reportInaccessibleUniqueSymbolError&&Ht.tracker.reportInaccessibleUniqueSymbolError()}return Ht.approximateLength+=13,he.createTypeOperatorNode(158,he.createKeywordTypeNode(155))}if(mr.flags&16384)return Ht.approximateLength+=4,he.createKeywordTypeNode(116);if(mr.flags&32768)return Ht.approximateLength+=9,he.createKeywordTypeNode(157);if(mr.flags&65536)return Ht.approximateLength+=4,he.createLiteralTypeNode(he.createNull());if(mr.flags&131072)return Ht.approximateLength+=5,he.createKeywordTypeNode(146);if(mr.flags&4096)return Ht.approximateLength+=6,he.createKeywordTypeNode(155);if(mr.flags&67108864)return Ht.approximateLength+=6,he.createKeywordTypeNode(151);if(p3(mr))return Ht.flags&4194304&&(!Ht.encounteredError&&!(Ht.flags&32768)&&(Ht.encounteredError=!0),(Uc=(Ws=Ht.tracker).reportInaccessibleThisError)==null||Uc.call(Ws)),Ht.approximateLength+=4,he.createThisTypeNode();if(!Ql&&mr.aliasSymbol&&(Ht.flags&16384||ne(mr.aliasSymbol,Ht.enclosingDeclaration))){const ga=Te(mr.aliasTypeArguments,Ht);return jS(mr.aliasSymbol.escapedName)&&!(mr.aliasSymbol.flags&32)?he.createTypeReferenceNode(he.createIdentifier(""),ga):Nt(ga)===1&&mr.aliasSymbol===t_.symbol?he.createArrayTypeNode(ga[0]):V_(mr.aliasSymbol,Ht,788968,ga)}const Kl=ji(mr);if(Kl&4)return re.assert(!!(mr.flags&524288)),mr.node?Bi(mr,Ta):Ta(mr);if(mr.flags&262144||Kl&3){if(mr.flags&262144&&ni(Ht.inferTypeParameters,mr)){Ht.approximateLength+=Il(mr.symbol).length+6;let Rl;const af=gT(mr);if(af){const a_=Q0e(mr,!0);a_&&Xh(af,a_)||(Ht.approximateLength+=9,Rl=af&&A(af,Ht))}return he.createInferTypeNode(Sn(mr,Ht,Rl))}if(Ht.flags&4&&mr.flags&262144&&!ne(mr.symbol,Ht.enclosingDeclaration)){const Rl=ad(mr,Ht);return Ht.approximateLength+=Kr(Rl).length,he.createTypeReferenceNode(he.createIdentifier(Kr(Rl)),void 0)}if(mr.symbol)return V_(mr.symbol,Ht,788968);const ga=(mr===fe||mr===_n)&&ve&&ve.symbol?(mr===_n?"sub-":"super-")+Il(ve.symbol):"?";return he.createTypeReferenceNode(he.createIdentifier(ga),void 0)}if(mr.flags&1048576&&mr.origin&&(mr=mr.origin),mr.flags&3145728){const ga=mr.flags&1048576?XR(mr.types):mr.types;if(Nt(ga)===1)return A(ga[0],Ht);const Rl=Te(ga,Ht,!0);if(Rl&&Rl.length>0)return mr.flags&1048576?he.createUnionTypeNode(Rl):he.createIntersectionTypeNode(Rl);!Ht.encounteredError&&!(Ht.flags&262144)&&(Ht.encounteredError=!0);return}if(Kl&48)return re.assert(!!(mr.flags&524288)),Eo(mr);if(mr.flags&4194304){const ga=mr.type;Ht.approximateLength+=6;const Rl=A(ga,Ht);return he.createTypeOperatorNode(143,Rl)}if(mr.flags&134217728){const ga=mr.texts,Rl=mr.types,af=he.createTemplateHead(ga[0]),a_=he.createNodeArray(Vn(Rl,(Op,Gb)=>he.createTemplateLiteralTypeSpan(A(Op,Ht),(GbIu(ga));if(mr.flags&33554432)return A(mr.baseType,Ht);return re.fail("Should be unreachable.");function Iu(ga){const Rl=A(ga.checkType,Ht);if(Ht.approximateLength+=15,Ht.flags&4&&ga.root.isDistributive&&!(ga.checkType.flags&262144)){const Ey=c0(tp(262144,"T")),Yh=ad(Ey,Ht),TS=he.createTypeReferenceNode(Yh);Ht.approximateLength+=37;const xy=u5(ga.root.checkType,Ey,ga.mapper),ar=Ht.inferTypeParameters;Ht.inferTypeParameters=ga.root.inferTypeParameters;const Gr=A(zu(ga.root.extendsType,xy),Ht);Ht.inferTypeParameters=ar;const uo=rl(zu(Xl(ga.root.node.trueType),xy)),qa=rl(zu(Xl(ga.root.node.falseType),xy));return he.createConditionalTypeNode(Rl,he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(TS.typeName))),he.createConditionalTypeNode(he.createTypeReferenceNode(he.cloneNode(Yh)),A(ga.checkType,Ht),he.createConditionalTypeNode(TS,Gr,uo,qa),he.createKeywordTypeNode(146)),he.createKeywordTypeNode(146))}const af=Ht.inferTypeParameters;Ht.inferTypeParameters=ga.root.inferTypeParameters;const a_=A(ga.extendsType,Ht);Ht.inferTypeParameters=af;const Op=rl(SO(ga)),Gb=rl(oM(ga));return he.createConditionalTypeNode(Rl,a_,Op,Gb)}function rl(ga){var Rl,af,a_;return ga.flags&1048576?(Rl=Ht.visitedTypes)!=null&&Rl.has(By(ga))?(Ht.flags&131072||(Ht.encounteredError=!0,(a_=(af=Ht.tracker)==null?void 0:af.reportCyclicStructureError)==null||a_.call(af)),B(Ht)):Bi(ga,Op=>A(Op,Ht)):A(ga,Ht)}function Dc(ga){return!!KPe(ga)}function yr(ga){return!!ga.target&&Dc(ga.target)&&!Dc(ga)}function pi(ga){var Rl;re.assert(!!(ga.flags&524288));const af=ga.declaration.readonlyToken?he.createToken(ga.declaration.readonlyToken.kind):void 0,a_=ga.declaration.questionToken?he.createToken(ga.declaration.questionToken.kind):void 0;let Op,Gb;const Ey=!rK(ga)&&!(eM(ga).flags&2)&&Ht.flags&4&&!($v(ga).flags&262144&&((Rl=gT($v(ga)))==null?void 0:Rl.flags)&4194304);if(rK(ga)){if(yr(ga)&&Ht.flags&4){const uo=c0(tp(262144,"T")),qa=ad(uo,Ht);Gb=he.createTypeReferenceNode(qa)}Op=he.createTypeOperatorNode(143,Gb||A(eM(ga),Ht))}else if(Ey){const uo=c0(tp(262144,"T")),qa=ad(uo,Ht);Gb=he.createTypeReferenceNode(qa),Op=Gb}else Op=A($v(ga),Ht);const Yh=Sn(BI(ga),Ht,Op),TS=ga.declaration.nameType?A(bw(ga),Ht):void 0,xy=A(r8(ZR(ga),!!(zk(ga)&4)),Ht),ar=he.createMappedTypeNode(af,Yh,TS,a_,xy,void 0);Ht.approximateLength+=10;const Gr=_s(ar,1);if(yr(ga)&&Ht.flags&4){const uo=zu(gT(Xl(ga.declaration.typeParameter.constraint.type))||Io,ga.mapper);return he.createConditionalTypeNode(A(eM(ga),Ht),he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(Gb.typeName),uo.flags&2?void 0:A(uo,Ht))),Gr,he.createKeywordTypeNode(146))}else if(Ey)return he.createConditionalTypeNode(A($v(ga),Ht),he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(Gb.typeName),he.createTypeOperatorNode(143,A(eM(ga),Ht)))),Gr,he.createKeywordTypeNode(146));return Gr}function Eo(ga){var Rl,af;const a_=ga.id,Op=ga.symbol;if(Op){const Ey=qF(ga)?788968:111551;if(Ax(Op.valueDeclaration))return V_(Op,Ht,Ey);if(Op.flags&32&&!WI(Op)&&!(Op.valueDeclaration&&Fl(Op.valueDeclaration)&&Ht.flags&2048&&(!Ih(Op.valueDeclaration)||nc(Op,Ht.enclosingDeclaration,Ey,!1).accessibility!==0))||Op.flags&896||Gb())return V_(Op,Ht,Ey);if((Rl=Ht.visitedTypes)!=null&&Rl.has(a_)){const Yh=Yq(ga);return Yh?V_(Yh,Ht,788968):B(Ht)}else return Bi(ga,wo)}else{if(!!(ji(ga)&8388608)){const Yh=ga;if(m6(Yh.node)){const TS=jh(Ht,Yh.node);if(TS)return TS}return(af=Ht.visitedTypes)!=null&&af.has(a_)?B(Ht):Bi(ga,wo)}return wo(ga)}function Gb(){var Ey;const Yh=!!(Op.flags&8192)&>(Op.declarations,xy=>pd(xy)),TS=!!(Op.flags&16)&&(Op.parent||Ot(Op.declarations,xy=>xy.parent.kind===312||xy.parent.kind===268));if(Yh||TS)return(!!(Ht.flags&4096)||((Ey=Ht.visitedTypes)==null?void 0:Ey.has(a_)))&&(!(Ht.flags&8)||yt(Op,Ht.enclosingDeclaration))}}function Bi(ga,Rl){var af,a_,Op;const Gb=ga.id,Ey=ji(ga)&16&&ga.symbol&&ga.symbol.flags&32,Yh=ji(ga)&4&&ga.node?"N"+vm(ga.node):ga.flags&16777216?"N"+vm(ga.root.node):ga.symbol?(Ey?"+":"")+$d(ga.symbol):void 0;Ht.visitedTypes||(Ht.visitedTypes=new Set),Yh&&!Ht.symbolDepth&&(Ht.symbolDepth=new Map);const TS=Ht.enclosingDeclaration&&rt(Ht.enclosingDeclaration),xy=`${By(ga)}|${Ht.flags}`;TS&&(TS.serializedTypes||(TS.serializedTypes=new Map));const ar=(af=TS==null?void 0:TS.serializedTypes)==null?void 0:af.get(xy);if(ar)return(a_=ar.trackedSymbols)==null||a_.forEach(([vu,D_,Qd])=>Ht.tracker.trackSymbol(vu,D_,Qd)),ar.truncating&&(Ht.truncating=!0),Ht.approximateLength+=ar.addedLength,ic(ar.node);let Gr;if(Yh){if(Gr=Ht.symbolDepth.get(Yh)||0,Gr>10)return B(Ht);Ht.symbolDepth.set(Yh,Gr+1)}Ht.visitedTypes.add(Gb);const uo=Ht.trackedSymbols;Ht.trackedSymbols=void 0;const qa=Ht.approximateLength,yc=Rl(ga),Yo=Ht.approximateLength-qa;return!Ht.reportedDiagnostic&&!Ht.encounteredError&&((Op=TS==null?void 0:TS.serializedTypes)==null||Op.set(xy,{node:yc,truncating:Ht.truncating,addedLength:Yo,trackedSymbols:Ht.trackedSymbols})),Ht.visitedTypes.delete(Gb),Yh&&Ht.symbolDepth.set(Yh,Gr),Ht.trackedSymbols=uo,yc;function ic(vu){return!Hd(vu)&&__(vu)===vu?vu:Tn(he.cloneNode(Xo(vu,ic,sx,Zl)),vu)}function Zl(vu,D_,Qd,op,uu){return vu&&vu.length===0?Tn(he.createNodeArray(void 0,vu.hasTrailingComma),vu):Wa(vu,D_,Qd,op,uu)}}function wo(ga){if(Fb(ga)||ga.containsError)return pi(ga);const Rl=Gh(ga);if(!Rl.properties.length&&!Rl.indexInfos.length){if(!Rl.callSignatures.length&&!Rl.constructSignatures.length)return Ht.approximateLength+=2,_s(he.createTypeLiteralNode(void 0),1);if(Rl.callSignatures.length===1&&!Rl.constructSignatures.length){const Ey=Rl.callSignatures[0];return Rt(Ey,184,Ht)}if(Rl.constructSignatures.length===1&&!Rl.callSignatures.length){const Ey=Rl.constructSignatures[0];return Rt(Ey,185,Ht)}}const af=gi(Rl.constructSignatures,Ey=>!!(Ey.flags&4));if(gt(af)){const Ey=Vn(af,o5);return Rl.callSignatures.length+(Rl.constructSignatures.length-af.length)+Rl.indexInfos.length+(Ht.flags&2048?dp(Rl.properties,TS=>!(TS.flags&4194304)):Nt(Rl.properties))&&Ey.push(K0(Rl)),A(vp(Ey),Ht)}const a_=Ht.flags;Ht.flags|=4194304;const Op=_d(Rl);Ht.flags=a_;const Gb=he.createTypeLiteralNode(Op);return Ht.approximateLength+=2,_s(Gb,Ht.flags&1024?0:1),Gb}function Ta(ga){let Rl=ch(ga);if(ga.target===t_||ga.target===A_){if(Ht.flags&2){const Op=A(Rl[0],Ht);return he.createTypeReferenceNode(ga.target===t_?"Array":"ReadonlyArray",[Op])}const af=A(Rl[0],Ht),a_=he.createArrayTypeNode(af);return ga.target===t_?a_:he.createTypeOperatorNode(148,a_)}else if(ga.target.objectFlags&8){if(Rl=Ol(Rl,(af,a_)=>r8(af,!!(ga.target.elementFlags[a_]&2))),Rl.length>0){const af=Y6(ga),a_=Te(Rl.slice(0,af),Ht);if(a_){const{labeledElementDeclarations:Op}=ga.target;for(let Ey=0;Ey0){const TS=(ga.target.typeParameters||Yn).length;Gb=Te(Rl.slice(a_,TS),Ht)}const Ey=Ht.flags;Ht.flags|=16;const Yh=V_(ga.symbol,Ht,788968,Gb);return Ht.flags=Ey,Op?Ju(Op,Yh):Yh}}}function Ju(ga,Rl){if(E1(ga)){let af=ga.typeArguments,a_=ga.qualifier;a_&&(xn(a_)?af!==J7(a_)&&(a_=d6(he.cloneNode(a_),af)):af!==J7(a_.right)&&(a_=he.updateQualifiedName(a_,a_.left,d6(he.cloneNode(a_.right),af)))),af=Rl.typeArguments;const Op=Lc(Rl);for(const Gb of Op)a_=a_?he.createQualifiedName(a_,Gb):Gb;return he.updateImportTypeNode(ga,ga.argument,ga.attributes,a_,af,ga.isTypeOf)}else{let af=ga.typeArguments,a_=ga.typeName;xn(a_)?af!==J7(a_)&&(a_=d6(he.cloneNode(a_),af)):af!==J7(a_.right)&&(a_=he.updateQualifiedName(a_,a_.left,d6(he.cloneNode(a_.right),af))),af=Rl.typeArguments;const Op=Lc(Rl);for(const Gb of Op)a_=he.createQualifiedName(a_,Gb);return he.updateTypeReferenceNode(ga,a_,af)}}function Lc(ga){let Rl=ga.typeName;const af=[];for(;!xn(Rl);)af.unshift(Rl.right),Rl=Rl.left;return af.unshift(Rl),af}function _d(ga){if(v(Ht))return[he.createPropertySignature(void 0,"...",void 0,void 0)];const Rl=[];for(const Op of ga.callSignatures)Rl.push(Rt(Op,179,Ht));for(const Op of ga.constructSignatures)Op.flags&4||Rl.push(Rt(Op,180,Ht));for(const Op of ga.indexInfos)Rl.push(St(Op,Ht,ga.objectFlags&1024?B(Ht):void 0));const af=ga.properties;if(!af)return Rl;let a_=0;for(const Op of af){if(a_++,Ht.flags&2048){if(Op.flags&4194304)continue;Vy(Op)&6&&Ht.tracker.reportPrivateInBaseOfClassExpression&&Ht.tracker.reportPrivateInBaseOfClassExpression(Ic(Op.escapedName))}if(v(Ht)&&a_+2!(Ta.flags&32768)),0);for(const Ta of wo){const Ju=Rt(Ta,173,Ht,{name:rl,questionToken:Dc});Ws.push(Bi(Ju))}if(wo.length||!Dc)return}let yr;Y(mr,Ht)?yr=B(Ht):(Ql&&(Ht.reverseMappedStack||(Ht.reverseMappedStack=[]),Ht.reverseMappedStack.push(mr)),yr=Kl?vb(Ht,Kl,mr,Iu):he.createKeywordTypeNode(133),Ql&&Ht.reverseMappedStack.pop());const pi=z1(mr)?[he.createToken(148)]:void 0;pi&&(Ht.approximateLength+=9);const Eo=he.createPropertySignature(pi,rl,Dc,yr);Ws.push(Bi(Eo));function Bi(wo){var Ta;const Ju=(Ta=mr.declarations)==null?void 0:Ta.find(Lc=>Lc.kind===355);if(Ju){const Lc=EN(Ju.comment);Lc&&uI(wo,[{kind:3,text:`* + })(name => super[name], (name, value) => super[name] = value);`}}});function S1(e){return e.kind===9}function OY(e){return e.kind===10}function Sd(e){return e.kind===11}function SR(e){return e.kind===12}function ope(e){return e.kind===14}function K7(e){return e.kind===15}function X7(e){return e.kind===16}function TEe(e){return e.kind===17}function woe(e){return e.kind===18}function FY(e){return e.kind===26}function WY(e){return e.kind===28}function PJ(e){return e.kind===40}function ER(e){return e.kind===41}function BY(e){return e.kind===42}function wG(e){return e.kind===54}function p6(e){return e.kind===58}function An(e){return e.kind===59}function Gu(e){return e.kind===29}function fW(e){return e.kind===39}function xn(e){return e.kind===80}function Lu(e){return e.kind===81}function _W(e){return e.kind===95}function zY(e){return e.kind===90}function NJ(e){return e.kind===134}function dW(e){return e.kind===131}function ape(e){return e.kind===135}function SEe(e){return e.kind===148}function pW(e){return e.kind===126}function wJ(e){return e.kind===128}function RJ(e){return e.kind===164}function EEe(e){return e.kind===129}function nT(e){return e.kind===108}function am(e){return e.kind===102}function Hh(e){return e.kind===84}function Pu(e){return e.kind===166}function Qf(e){return e.kind===167}function Np(e){return e.kind===168}function Os(e){return e.kind===169}function Jh(e){return e.kind===170}function em(e){return e.kind===171}function nu(e){return e.kind===172}function pg(e){return e.kind===173}function tm(e){return e.kind===174}function Ep(e){return e.kind===175}function Lh(e){return e.kind===176}function lE(e){return e.kind===177}function Xb(e){return e.kind===178}function Y7(e){return e.kind===179}function x2(e){return e.kind===180}function Z2(e){return e.kind===181}function mW(e){return e.kind===182}function uE(e){return e.kind===183}function e0(e){return e.kind===184}function RG(e){return e.kind===185}function m6(e){return e.kind===186}function rS(e){return e.kind===187}function GY(e){return e.kind===188}function gW(e){return e.kind===189}function g6(e){return e.kind===202}function MJ(e){return e.kind===190}function hW(e){return e.kind===191}function fI(e){return e.kind===192}function xR(e){return e.kind===193}function Q7(e){return e.kind===194}function KN(e){return e.kind===195}function XN(e){return e.kind===196}function yW(e){return e.kind===197}function _I(e){return e.kind===198}function Wx(e){return e.kind===199}function LJ(e){return e.kind===200}function S3(e){return e.kind===201}function E1(e){return e.kind===205}function vW(e){return e.kind===204}function ym(e){return e.kind===203}function Ch(e){return e.kind===206}function Wd(e){return e.kind===207}function sa(e){return e.kind===208}function Ed(e){return e.kind===209}function el(e){return e.kind===210}function Ac(e){return e.kind===211}function Hm(e){return e.kind===212}function xd(e){return e.kind===213}function sb(e){return e.kind===214}function Dm(e){return e.kind===215}function ph(e){return e.kind===216}function fE(e){return e.kind===217}function Jm(e){return e.kind===218}function $m(e){return e.kind===219}function h6(e){return e.kind===220}function yk(e){return e.kind===221}function Z7(e){return e.kind===222}function ys(e){return e.kind===223}function vk(e){return e.kind===224}function jY(e){return e.kind===225}function Ds(e){return e.kind===226}function ex(e){return e.kind===227}function B0(e){return e.kind===228}function t0(e){return e.kind===229}function WT(e){return e.kind===230}function v0(e){return e.kind===231}function cb(e){return e.kind===232}function cC(e){return e.kind===233}function eF(e){return e.kind===234}function C6e(e){return e.kind===238}function E3(e){return e.kind===235}function x3(e){return e.kind===236}function VY(e){return e.kind===237}function Roe(e){return e.kind===360}function E_(e){return e.kind===361}function Dh(e){return e.kind===239}function spe(e){return e.kind===240}function Ou(e){return e.kind===241}function Xg(e){return e.kind===243}function xEe(e){return e.kind===242}function kb(e){return e.kind===244}function bk(e){return e.kind===245}function cpe(e){return e.kind===246}function Moe(e){return e.kind===247}function bW(e){return e.kind===248}function lpe(e){return e.kind===249}function Bx(e){return e.kind===250}function D6e(e){return e.kind===251}function Loe(e){return e.kind===252}function iS(e){return e.kind===253}function upe(e){return e.kind===254}function AR(e){return e.kind===255}function tF(e){return e.kind===256}function ff(e){return e.kind===257}function My(e){return e.kind===258}function b0(e){return e.kind===259}function Kc(e){return e.kind===260}function Kp(e){return e.kind===261}function mg(e){return e.kind===262}function Ih(e){return e.kind===263}function xp(e){return e.kind===264}function z0(e){return e.kind===265}function xP(e){return e.kind===266}function dy(e){return e.kind===267}function kh(e){return e.kind===268}function Fv(e){return e.kind===269}function lC(e){return e.kind===270}function Yb(e){return e.kind===271}function n0(e){return e.kind===272}function Tk(e){return e.kind===273}function YL(e){return e.kind===302}function AP(e){return e.kind===300}function y6(e){return e.kind===301}function oS(e){return e.kind===300}function Ly(e){return e.kind===301}function mh(e){return e.kind===274}function G0(e){return e.kind===280}function Oy(e){return e.kind===275}function qE(e){return e.kind===276}function py(e){return e.kind===277}function ry(e){return e.kind===278}function j0(e){return e.kind===279}function my(e){return e.kind===281}function TW(e){return e.kind===282}function rD(e){return e.kind===359}function Sk(e){return e.kind===362}function KE(e){return e.kind===283}function zx(e){return e.kind===284}function nF(e){return e.kind===285}function Pb(e){return e.kind===286}function iD(e){return e.kind===287}function Ek(e){return e.kind===288}function v6(e){return e.kind===289}function dI(e){return e.kind===290}function tx(e){return e.kind===291}function CR(e){return e.kind===292}function rT(e){return e.kind===293}function CP(e){return e.kind===294}function Fm(e){return e.kind===295}function BT(e){return e.kind===296}function xk(e){return e.kind===297}function Qb(e){return e.kind===298}function A3(e){return e.kind===299}function tl(e){return e.kind===303}function XE(e){return e.kind===304}function xA(e){return e.kind===305}function pI(e){return e.kind===306}function OJ(e){return e.kind===308}function Nu(e){return e.kind===312}function fpe(e){return e.kind===313}function rF(e){return e.kind===314}function SW(e){return e.kind===316}function FJ(e){return e.kind===317}function QL(e){return e.kind===318}function MG(e){return e.kind===331}function Ooe(e){return e.kind===332}function AEe(e){return e.kind===333}function LG(e){return e.kind===319}function Foe(e){return e.kind===320}function WJ(e){return e.kind===321}function Gx(e){return e.kind===322}function EW(e){return e.kind===323}function Ak(e){return e.kind===324}function iF(e){return e.kind===325}function _Ue(e){return e.kind===326}function uC(e){return e.kind===327}function oF(e){return e.kind===329}function b6(e){return e.kind===330}function xW(e){return e.kind===335}function CEe(e){return e.kind===337}function _pe(e){return e.kind===339}function UY(e){return e.kind===345}function OG(e){return e.kind===340}function Woe(e){return e.kind===341}function DEe(e){return e.kind===342}function BJ(e){return e.kind===343}function AA(e){return e.kind===344}function aF(e){return e.kind===346}function dpe(e){return e.kind===338}function HY(e){return e.kind===354}function jx(e){return e.kind===347}function A2(e){return e.kind===348}function ppe(e){return e.kind===349}function IEe(e){return e.kind===350}function FG(e){return e.kind===351}function CA(e){return e.kind===352}function zJ(e){return e.kind===353}function GJ(e){return e.kind===334}function I6e(e){return e.kind===355}function jJ(e){return e.kind===336}function ZL(e){return e.kind===357}function kEe(e){return e.kind===356}function AW(e){return e.kind===358}var k6e=G({"src/compiler/factory/nodeTests.ts"(){md()}});function Boe(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function sF(e,n,i,c){if(Qf(i))return Tn(e.createElementAccessExpression(n,i.expression),c);{const u=Tn(xN(i)?e.createPropertyAccessExpression(n,i):e.createElementAccessExpression(n,i),i);return cE(u,128),u}}function PEe(e,n){const i=Ck.createIdentifier(e||"React");return kl(i,__(n)),i}function mpe(e,n,i){if(Pu(n)){const c=mpe(e,n.left,i),u=e.createIdentifier(Kr(n.right));return u.escapedText=n.right.escapedText,e.createPropertyAccessExpression(c,u)}else return PEe(Kr(n),i)}function NEe(e,n,i,c){return n?mpe(e,n,c):e.createPropertyAccessExpression(PEe(i,c),"createElement")}function gpe(e,n,i,c){return n?mpe(e,n,c):e.createPropertyAccessExpression(PEe(i,c),"Fragment")}function hpe(e,n,i,c,u,d){const h=[i];if(c&&h.push(c),u&&u.length>0)if(c||h.push(e.createNull()),u.length>1)for(const S of u)lb(S),h.push(S);else h.push(u[0]);return Tn(e.createCallExpression(n,void 0,h),d)}function P6e(e,n,i,c,u,d,h){const E=[gpe(e,i,c,d),e.createNull()];if(u&&u.length>0)if(u.length>1)for(const P of u)lb(P),E.push(P);else E.push(u[0]);return Tn(e.createCallExpression(NEe(e,n,c,d),void 0,E),h)}function wEe(e,n,i){if(Kp(n)){const c=Dl(n.declarations),u=e.updateVariableDeclaration(c,c.name,void 0,void 0,i);return Tn(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[u])),n)}else{const c=Tn(e.createAssignment(n,i),n);return Tn(e.createExpressionStatement(c),n)}}function dUe(e,n,i){return Ou(n)?e.updateBlock(n,Tn(e.createNodeArray([i,...n.statements]),n.statements)):e.createBlock(e.createNodeArray([n,i]),!0)}function zoe(e,n){if(Pu(n)){const i=zoe(e,n.left),c=kl(Tn(e.cloneNode(n.right),n.right),n.right.parent);return Tn(e.createPropertyAccessExpression(i,c),n)}else return kl(Tn(e.cloneNode(n),n),n.parent)}function ype(e,n){return xn(n)?e.createStringLiteralFromNode(n):Qf(n)?kl(Tn(e.cloneNode(n.expression),n.expression),n.expression.parent):kl(Tn(e.cloneNode(n),n),n.parent)}function REe(e,n,i,c,u){const{firstAccessor:d,getAccessor:h,setAccessor:S}=oI(n,i);if(i===d)return Tn(e.createObjectDefinePropertyCall(c,ype(e,i.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:h&&Tn(Ls(e.createFunctionExpression(Xv(h),void 0,void 0,void 0,h.parameters,void 0,h.body),h),h),set:S&&Tn(Ls(e.createFunctionExpression(Xv(S),void 0,void 0,void 0,S.parameters,void 0,S.body),S),S)},!u)),d)}function N6e(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),n.initializer),n),n)}function T6(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),e.cloneNode(n.name)),n),n)}function MEe(e,n,i){return Ls(Tn(e.createAssignment(sF(e,i,n.name,n.name),Ls(Tn(e.createFunctionExpression(Xv(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}function LEe(e,n,i,c){switch(i.name&&Lu(i.name)&&re.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 177:case 178:return REe(e,n.properties,i,c,!!n.multiLine);case 303:return N6e(e,i,c);case 304:return T6(e,i,c);case 174:return MEe(e,i,c)}}function JY(e,n,i,c,u){const d=n.operator;re.assert(d===46||d===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const h=e.createTempVariable(c);i=e.createAssignment(h,i),Tn(i,n.operand);let S=vk(n)?e.createPrefixUnaryExpression(d,h):e.createPostfixUnaryExpression(h,d);return Tn(S,n),u&&(S=e.createAssignment(u,S),Tn(S,n)),i=e.createComma(i,S),Tn(i,n),jY(n)&&(i=e.createComma(i,h),Tn(i,n)),i}function vpe(e){return(wd(e)&65536)!==0}function mI(e){return(wd(e)&32768)!==0}function CW(e){return(wd(e)&16384)!==0}function $Y(e){return Sd(e.expression)&&e.expression.text==="use strict"}function qY(e){for(const n of e)if($2(n)){if($Y(n))return n}else break}function Goe(e){const n=pp(e);return n!==void 0&&$2(n)&&$Y(n)}function rv(e){return e.kind===226&&e.operatorToken.kind===28}function VJ(e){return rv(e)||E_(e)}function KY(e){return fE(e)&&Cs(e)&&!!FM(e)}function x1(e){const n=iR(e);return re.assertIsDefined(n),n}function WG(e,n=15){switch(e.kind){case 217:return n&16&&KY(e)?!1:(n&1)!==0;case 216:case 234:case 233:case 238:return(n&2)!==0;case 235:return(n&4)!==0;case 360:return(n&8)!==0}return!1}function iv(e,n=15){for(;WG(e,n);)e=e.expression;return e}function bpe(e,n=15){let i=e.parent;for(;WG(i,n);)i=i.parent,re.assert(i);return i}function w6e(e){return iv(e,6)}function lb(e){return U7(e,!0)}function e4(e){const n=Gg(e,Nu),i=n&&n.emitNode;return i&&i.externalHelpersModuleName}function R6e(e){const n=Gg(e,Nu),i=n&&n.emitNode;return!!i&&(!!i.externalHelpersModuleName||!!i.externalHelpers)}function UJ(e,n,i,c,u,d,h){if(c.importHelpers&&VM(i,c)){let S;const E=Zp(c);if(E>=5&&E<=99||i.impliedNodeFormat===99){const P=NY(i);if(P){const k=[];for(const F of P)if(!F.scoped){const $=F.importName;$&&Dy(k,$)}if(gt(k)){k.sort(Fp),S=e.createNamedImports(Vn(k,J=>ns(i,J)?e.createImportSpecifier(!1,void 0,e.createIdentifier(J)):e.createImportSpecifier(!1,e.createIdentifier(J),n.getUnscopedHelperName(J))));const F=Gg(i,Nu),$=Sa(F);$.externalHelpers=!0}}}else{const P=M6e(e,i,c,u,d||h);P&&(S=e.createNamespaceImport(P))}if(S){const P=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,S),e.createStringLiteral(HN),void 0);return CG(P,2),P}}}function M6e(e,n,i,c,u){if(i.importHelpers&&VM(n,i)){const d=e4(n);if(d)return d;const h=Zp(i);let S=(c||b1(i)&&u)&&h!==4&&(h<5||n.impliedNodeFormat===1);if(!S){const E=NY(n);if(E){for(const P of E)if(!P.scoped){S=!0;break}}}if(S){const E=Gg(n,Nu),P=Sa(E);return P.externalHelpersModuleName||(P.externalHelpersModuleName=e.createUniqueName(HN))}}}function C3(e,n,i){const c=H8(n);if(c&&!R9(n)&&!nY(n)){const u=c.name;return $g(u)?u:e.createIdentifier(m7(i,u)||Kr(u))}if(n.kind===272&&n.importClause||n.kind===278&&n.moduleSpecifier)return e.getGeneratedNameForNode(n)}function oD(e,n,i,c,u,d){const h=w9(n);if(h&&Sd(h))return FEe(n,c,e,u,d)||OEe(e,h,i)||e.cloneNode(h)}function OEe(e,n,i){const c=i.renamedDependencies&&i.renamedDependencies.get(n.text);return c?e.createStringLiteral(c):void 0}function HJ(e,n,i,c){if(n){if(n.moduleName)return e.createStringLiteral(n.moduleName);if(!n.isDeclarationFile&&Ng(c))return e.createStringLiteral(xH(i,n.fileName))}}function FEe(e,n,i,c,u){return HJ(i,c.getExternalModuleFileFromDeclaration(e),n,u)}function XY(e){if($X(e))return e.initializer;if(tl(e)){const n=e.initializer;return Zv(n,!0)?n.right:void 0}if(XE(e))return e.objectAssignmentInitializer;if(Zv(e,!0))return e.right;if(WT(e))return XY(e.expression)}function gI(e){if($X(e))return e.name;if(DN(e)){switch(e.kind){case 303:return gI(e.initializer);case 304:return e.name;case 305:return gI(e.expression)}return}return Zv(e,!0)?gI(e.left):WT(e)?gI(e.expression):e}function YY(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function WEe(e){const n=joe(e);return re.assert(!!n||xA(e),"Invalid property name for binding element."),n}function joe(e){switch(e.kind){case 208:if(e.propertyName){const i=e.propertyName;return Lu(i)?re.failBadSyntaxKind(i):Qf(i)&&BEe(i.expression)?i.expression:i}break;case 303:if(e.name){const i=e.name;return Lu(i)?re.failBadSyntaxKind(i):Qf(i)&&BEe(i.expression)?i.expression:i}break;case 305:return e.name&&Lu(e.name)?re.failBadSyntaxKind(e.name):e.name}const n=gI(e);if(n&&qg(n))return n}function BEe(e){const n=e.kind;return n===11||n===9}function BG(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Tpe(e){if(e){let n=e;for(;;){if(xn(n)||!n.body)return xn(n)?n:n.name;n=n.body}}}function L6e(e){const n=e.kind;return n===176||n===178}function zEe(e){const n=e.kind;return n===176||n===177||n===178}function Spe(e){const n=e.kind;return n===303||n===304||n===262||n===176||n===181||n===175||n===282||n===243||n===264||n===265||n===266||n===267||n===271||n===272||n===270||n===278||n===277}function GEe(e){const n=e.kind;return n===175||n===303||n===304||n===282||n===270}function O6e(e){return p6(e)||wG(e)}function F6e(e){return xn(e)||yW(e)}function W6e(e){return SEe(e)||PJ(e)||ER(e)}function B6e(e){return p6(e)||PJ(e)||ER(e)}function z6e(e){return xn(e)||Sd(e)}function pUe(e){const n=e.kind;return n===106||n===112||n===97||aR(e)||vk(e)}function pst(e){return e===43}function mst(e){return e===42||e===44||e===45}function gst(e){return pst(e)||mst(e)}function hst(e){return e===40||e===41}function yst(e){return hst(e)||gst(e)}function vst(e){return e===48||e===49||e===50}function jEe(e){return vst(e)||yst(e)}function bst(e){return e===30||e===33||e===32||e===34||e===104||e===103}function Tst(e){return bst(e)||jEe(e)}function Sst(e){return e===35||e===37||e===36||e===38}function Est(e){return Sst(e)||Tst(e)}function xst(e){return e===51||e===52||e===53}function mUe(e){return xst(e)||Est(e)}function VEe(e){return e===56||e===57}function gUe(e){return VEe(e)||mUe(e)}function Epe(e){return e===61||gUe(e)||pk(e)}function Ast(e){return Epe(e)||e===28}function UEe(e){return Ast(e.kind)}function zG(e,n,i,c,u,d){const h=new bUe(e,n,i,c,u,d);return S;function S(E,P){const k={value:void 0},F=[I3.enter],$=[E],J=[void 0];let X=0;for(;F[X]!==I3.done;)X=F[X](h,X,F,$,J,k,P);return re.assertEqual(X,0),k.value}}function JJ(e){return e===95||e===90}function Voe(e){const n=e.kind;return JJ(n)}function hUe(e){const n=e.kind;return Om(n)&&!JJ(n)}function t4(e,n){if(n!==void 0)return n.length===0?n:Tn(e.createNodeArray([],n.hasTrailingComma),n)}function $J(e){var n;const i=e.emitNode.autoGenerate;if(i.flags&4){const c=i.id;let u=e,d=u.original;for(;d;){u=d;const h=(n=u.emitNode)==null?void 0:n.autoGenerate;if(xN(u)&&(h===void 0||h.flags&4&&h.id!==c))break;d=u.original}return u}return e}function GG(e,n){return typeof e=="object"?D3(!1,e.prefix,e.node,e.suffix,n):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function yUe(e,n){return typeof e=="string"?e:HEe(e,re.checkDefined(n))}function HEe(e,n){return s7(e)?n(e).slice(1):$g(e)?n(e):Lu(e)?e.escapedText.slice(1):Kr(e)}function D3(e,n,i,c,u){return n=GG(n,u),c=GG(c,u),i=yUe(i,u),`${e?"#":""}${n}${i}${c}`}function qJ(e,n,i,c){return e.updatePropertyDeclaration(n,i,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,c)}function JEe(e,n,i,c,u=e.createThis()){return e.createGetAccessorDeclaration(i,c,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function QY(e,n,i,c,u=e.createThis()){return e.createSetAccessorDeclaration(i,c,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function KJ(e){let n=e.expression;for(;;){if(n=iv(n),E_(n)){n=yl(n.elements);continue}if(rv(n)){n=n.right;continue}if(Zv(n,!0)&&$g(n.left))return n;break}}function vUe(e){return fE(e)&&Hd(e)&&!e.emitNode}function xpe(e,n){if(vUe(e))xpe(e.expression,n);else if(rv(e))xpe(e.left,n),xpe(e.right,n);else if(E_(e))for(const i of e.elements)xpe(i,n);else n.push(e)}function vr(e){const n=[];return xpe(e,n),n}function nx(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const n of BG(e)){const i=gI(n);if(i&&KD(i)&&(i.transformFlags&65536||i.transformFlags&128&&nx(i)))return!0}return!1}var I3,bUe,Xi=G({"src/compiler/factory/utilities.ts"(){md(),(e=>{function n(k,F,$,J,X,ie,ae){const ve=F>0?X[F-1]:void 0;return re.assertEqual($[F],n),X[F]=k.onEnter(J[F],ve,ae),$[F]=S(k,n),F}e.enter=n;function i(k,F,$,J,X,ie,ae){re.assertEqual($[F],i),re.assertIsDefined(k.onLeft),$[F]=S(k,i);const ve=k.onLeft(J[F].left,X[F],J[F]);return ve?(P(F,J,ve),E(F,$,J,X,ve)):F}e.left=i;function c(k,F,$,J,X,ie,ae){return re.assertEqual($[F],c),re.assertIsDefined(k.onOperator),$[F]=S(k,c),k.onOperator(J[F].operatorToken,X[F],J[F]),F}e.operator=c;function u(k,F,$,J,X,ie,ae){re.assertEqual($[F],u),re.assertIsDefined(k.onRight),$[F]=S(k,u);const ve=k.onRight(J[F].right,X[F],J[F]);return ve?(P(F,J,ve),E(F,$,J,X,ve)):F}e.right=u;function d(k,F,$,J,X,ie,ae){re.assertEqual($[F],d),$[F]=S(k,d);const ve=k.onExit(J[F],X[F]);if(F>0){if(F--,k.foldState){const we=$[F]===d?"right":"left";X[F]=k.foldState(X[F],ve,we)}}else ie.value=ve;return F}e.exit=d;function h(k,F,$,J,X,ie,ae){return re.assertEqual($[F],h),F}e.done=h;function S(k,F){switch(F){case n:if(k.onLeft)return i;case i:if(k.onOperator)return c;case c:if(k.onRight)return u;case u:return d;case d:return h;case h:return h;default:re.fail("Invalid state")}}e.nextState=S;function E(k,F,$,J,X){return k++,F[k]=n,$[k]=X,J[k]=void 0,k}function P(k,F,$){if(re.shouldAssert(2))for(;k>=0;)re.assert(F[k]!==$,"Circular traversal detected."),k--}})(I3||(I3={})),bUe=class{constructor(e,n,i,c,u,d){this.onEnter=e,this.onLeft=n,this.onOperator=i,this.onRight=c,this.onExit=u,this.foldState=d}}}});function Tn(e,n){return n?T1(e,n.pos,n.end):e}function DA(e){const n=e.kind;return n===168||n===169||n===171||n===172||n===173||n===174||n===176||n===177||n===178||n===181||n===185||n===218||n===219||n===231||n===243||n===262||n===263||n===264||n===265||n===266||n===267||n===271||n===272||n===277||n===278}function S6(e){const n=e.kind;return n===169||n===172||n===174||n===177||n===178||n===231||n===263}var Cst=G({"src/compiler/factory/utilitiesPublic.ts"(){md()}});function Yi(e,n){return n&&e(n)}function Bu(e,n,i){if(i){if(n)return n(i);for(const c of i){const u=e(c);if(u)return u}}}function $Ee(e,n){return e.charCodeAt(n+1)===42&&e.charCodeAt(n+2)===42&&e.charCodeAt(n+3)!==47}function Uoe(e){return Ot(e.statements,TUe)||SUe(e)}function TUe(e){return DA(e)&&EUe(e,95)||Yb(e)&&KE(e.moduleReference)||n0(e)||py(e)||ry(e)?e:void 0}function SUe(e){return e.flags&8388608?G6e(e):void 0}function G6e(e){return xUe(e)?e:s_(e,G6e)}function EUe(e,n){return gt(e.modifiers,i=>i.kind===n)}function xUe(e){return x3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function j6e(e,n,i){return Bu(n,i,e.typeParameters)||Bu(n,i,e.parameters)||Yi(n,e.type)}function V6e(e,n,i){return Bu(n,i,e.types)}function U6e(e,n,i){return Yi(n,e.type)}function H6e(e,n,i){return Bu(n,i,e.elements)}function J6e(e,n,i){return Yi(n,e.expression)||Yi(n,e.questionDotToken)||Bu(n,i,e.typeArguments)||Bu(n,i,e.arguments)}function $6e(e,n,i){return Bu(n,i,e.statements)}function XJ(e,n,i){return Yi(n,e.label)}function q6e(e,n,i){return Bu(n,i,e.modifiers)||Yi(n,e.name)||Bu(n,i,e.typeParameters)||Bu(n,i,e.heritageClauses)||Bu(n,i,e.members)}function YJ(e,n,i){return Bu(n,i,e.elements)}function qEe(e,n,i){return Yi(n,e.propertyName)||Yi(n,e.name)}function jG(e,n,i){return Yi(n,e.tagName)||Bu(n,i,e.typeArguments)||Yi(n,e.attributes)}function ZY(e,n,i){return Yi(n,e.type)}function B_(e,n,i){return Yi(n,e.tagName)||(e.isNameFirst?Yi(n,e.name)||Yi(n,e.typeExpression):Yi(n,e.typeExpression)||Yi(n,e.name))||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function k3(e,n,i){return Yi(n,e.tagName)||Yi(n,e.typeExpression)||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function KEe(e,n,i){return Yi(n,e.name)}function VG(e,n,i){return Yi(n,e.tagName)||(typeof e.comment=="string"?void 0:Bu(n,i,e.comment))}function Ape(e,n,i){return Yi(n,e.expression)}function s_(e,n,i){if(e===void 0||e.kind<=165)return;const c=Y6e[e.kind];return c===void 0?void 0:c(e,n,i)}function cF(e,n,i){const c=Wv(e),u=[];for(;u.length=0;--S)c.push(d[S]),u.push(h)}else{const S=n(d,h);if(S){if(S==="skip")continue;return S}if(d.kind>=166)for(const E of Wv(d))c.push(E),u.push(d)}}}function Wv(e){const n=[];return s_(e,i,i),n;function i(c){n.unshift(c)}}function XEe(e){e.externalModuleIndicator=Uoe(e)}function eQ(e,n,i,c=!1,u){var d,h,S,E;(d=ps)==null||d.push(ps.Phase.Parse,"createSourceFile",{path:e},!0),cf("beforeParse");let P;(h=Zh)==null||h.logStartParseSourceFile(e);const{languageVersion:k,setExternalModuleIndicator:F,impliedNodeFormat:$,jsDocParsingMode:J}=typeof i=="object"?i:{languageVersion:i};if(k===100)P=P3.parseSourceFile(e,n,k,void 0,c,6,ku,J);else{const X=$===void 0?F:ie=>(ie.impliedNodeFormat=$,(F||XEe)(ie));P=P3.parseSourceFile(e,n,k,void 0,c,u,X,J)}return(S=Zh)==null||S.logStopParseSourceFile(),cf("afterParse"),Tb("Parse","beforeParse","afterParse"),(E=ps)==null||E.pop(),P}function UG(e,n){return P3.parseIsolatedEntityName(e,n)}function iT(e,n){return P3.parseJsonText(e,n)}function Bv(e){return e.externalModuleIndicator!==void 0}function Hoe(e,n,i,c=!1){const u=nQ.updateSourceFile(e,n,i,c);return u.flags|=e.flags&12582912,u}function Cpe(e,n,i){const c=P3.JSDocParser.parseIsolatedJSDocComment(e,n,i);return c&&c.jsDoc&&P3.fixupParentReferences(c.jsDoc),c}function AUe(e,n,i){return P3.JSDocParser.parseJSDocTypeExpressionForTests(e,n,i)}function Zb(e){return pv(e,oJ)||mm(e,".ts")&&Jg(e).includes(".d.")}function CUe(e,n,i,c){if(e){if(e==="import")return 99;if(e==="require")return 1;c(n,i-n,N.resolution_mode_should_be_either_require_or_import)}}function YEe(e,n){const i=[];for(const c of JD(n,0)||Yn){const u=n.substring(c.pos,c.end);IUe(i,c,u)}e.pragmas=new Map;for(const c of i){if(e.pragmas.has(c.name)){const u=e.pragmas.get(c.name);u instanceof Array?u.push(c.args):e.pragmas.set(c.name,[u,c.args]);continue}e.pragmas.set(c.name,c.args)}}function E6(e,n){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((i,c)=>{switch(c){case"reference":{const u=e.referencedFiles,d=e.typeReferenceDirectives,h=e.libReferenceDirectives;Ot(BC(i),S=>{const{types:E,lib:P,path:k,["resolution-mode"]:F}=S.arguments;if(S.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(E){const $=CUe(F,E.pos,E.end,n);d.push({pos:E.pos,end:E.end,fileName:E.value,...$?{resolutionMode:$}:{}})}else P?h.push({pos:P.pos,end:P.end,fileName:P.value}):k?u.push({pos:k.pos,end:k.end,fileName:k.value}):n(S.range.pos,S.range.end-S.range.pos,N.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vn(BC(i),u=>({name:u.arguments.name,path:u.arguments.path}));break}case"amd-module":{if(i instanceof Array)for(const u of i)e.moduleName&&n(u.range.pos,u.range.end-u.range.pos,N.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=u.arguments.name;else e.moduleName=i.arguments.name;break}case"ts-nocheck":case"ts-check":{Ot(BC(i),u=>{(!e.checkJsDirective||u.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:c==="ts-check",end:u.range.end,pos:u.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:re.fail("Unhandled pragma kind")}})}function DUe(e){if(DW.has(e))return DW.get(e);const n=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return DW.set(e,n),n}function IUe(e,n,i){const c=n.kind===2&&Q6e.exec(i);if(c){const d=c[1].toLowerCase(),h=kU[d];if(!h||!(h.kind&1))return;if(h.args){const S={};for(const E of h.args){const k=DUe(E.name).exec(i);if(!k&&!E.optional)return;if(k){const F=k[2]||k[3];if(E.captureSpan){const $=n.pos+k.index+k[1].length+1;S[E.name]={value:F,pos:$,end:$+F.length}}else S[E.name]=F}}e.push({name:d,args:{arguments:S,range:n}})}else e.push({name:d,args:{arguments:{},range:n}});return}const u=n.kind===2&&Z6e.exec(i);if(u)return K6e(e,n,2,u);if(n.kind===3){const d=/@(\S+)(\s+.*)?$/gim;let h;for(;h=d.exec(i);)K6e(e,n,4,h)}}function K6e(e,n,i,c){if(!c)return;const u=c[1].toLowerCase(),d=kU[u];if(!d||!(d.kind&i))return;const h=c[2],S=kUe(d,h);S!=="fail"&&e.push({name:u,args:{arguments:S,range:n}})}function kUe(e,n){if(!n)return{};if(!e.args)return{};const i=n.trim().split(/\s+/),c={};for(let u=0;unew(Dpe||(Dpe=W0.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(X6e||(X6e=W0.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(r4||(r4=W0.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(DP||(DP=W0.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(QEe||(QEe=W0.getNodeConstructor()))(e,-1,-1)},Ck=xG(1,tQ),Y6e={166:function(n,i,c){return Yi(i,n.left)||Yi(i,n.right)},168:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.constraint)||Yi(i,n.default)||Yi(i,n.expression)},304:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.equalsToken)||Yi(i,n.objectAssignmentInitializer)},305:function(n,i,c){return Yi(i,n.expression)},169:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.dotDotDotToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)||Yi(i,n.initializer)},172:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.type)||Yi(i,n.initializer)},171:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)||Yi(i,n.initializer)},303:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Yi(i,n.initializer)},260:function(n,i,c){return Yi(i,n.name)||Yi(i,n.exclamationToken)||Yi(i,n.type)||Yi(i,n.initializer)},208:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.propertyName)||Yi(i,n.name)||Yi(i,n.initializer)},181:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},185:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},184:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},179:j6e,180:j6e,174:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.exclamationToken)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},173:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.questionToken)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)},176:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},177:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},178:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},262:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},218:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.asteriskToken)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.body)},219:function(n,i,c){return Bu(i,c,n.modifiers)||Bu(i,c,n.typeParameters)||Bu(i,c,n.parameters)||Yi(i,n.type)||Yi(i,n.equalsGreaterThanToken)||Yi(i,n.body)},175:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.body)},183:function(n,i,c){return Yi(i,n.typeName)||Bu(i,c,n.typeArguments)},182:function(n,i,c){return Yi(i,n.assertsModifier)||Yi(i,n.parameterName)||Yi(i,n.type)},186:function(n,i,c){return Yi(i,n.exprName)||Bu(i,c,n.typeArguments)},187:function(n,i,c){return Bu(i,c,n.members)},188:function(n,i,c){return Yi(i,n.elementType)},189:function(n,i,c){return Bu(i,c,n.elements)},192:V6e,193:V6e,194:function(n,i,c){return Yi(i,n.checkType)||Yi(i,n.extendsType)||Yi(i,n.trueType)||Yi(i,n.falseType)},195:function(n,i,c){return Yi(i,n.typeParameter)},205:function(n,i,c){return Yi(i,n.argument)||Yi(i,n.attributes)||Yi(i,n.qualifier)||Bu(i,c,n.typeArguments)},302:function(n,i,c){return Yi(i,n.assertClause)},196:U6e,198:U6e,199:function(n,i,c){return Yi(i,n.objectType)||Yi(i,n.indexType)},200:function(n,i,c){return Yi(i,n.readonlyToken)||Yi(i,n.typeParameter)||Yi(i,n.nameType)||Yi(i,n.questionToken)||Yi(i,n.type)||Bu(i,c,n.members)},201:function(n,i,c){return Yi(i,n.literal)},202:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.name)||Yi(i,n.questionToken)||Yi(i,n.type)},206:H6e,207:H6e,209:function(n,i,c){return Bu(i,c,n.elements)},210:function(n,i,c){return Bu(i,c,n.properties)},211:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.questionDotToken)||Yi(i,n.name)},212:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.questionDotToken)||Yi(i,n.argumentExpression)},213:J6e,214:J6e,215:function(n,i,c){return Yi(i,n.tag)||Yi(i,n.questionDotToken)||Bu(i,c,n.typeArguments)||Yi(i,n.template)},216:function(n,i,c){return Yi(i,n.type)||Yi(i,n.expression)},217:function(n,i,c){return Yi(i,n.expression)},220:function(n,i,c){return Yi(i,n.expression)},221:function(n,i,c){return Yi(i,n.expression)},222:function(n,i,c){return Yi(i,n.expression)},224:function(n,i,c){return Yi(i,n.operand)},229:function(n,i,c){return Yi(i,n.asteriskToken)||Yi(i,n.expression)},223:function(n,i,c){return Yi(i,n.expression)},225:function(n,i,c){return Yi(i,n.operand)},226:function(n,i,c){return Yi(i,n.left)||Yi(i,n.operatorToken)||Yi(i,n.right)},234:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.type)},235:function(n,i,c){return Yi(i,n.expression)},238:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.type)},236:function(n,i,c){return Yi(i,n.name)},227:function(n,i,c){return Yi(i,n.condition)||Yi(i,n.questionToken)||Yi(i,n.whenTrue)||Yi(i,n.colonToken)||Yi(i,n.whenFalse)},230:function(n,i,c){return Yi(i,n.expression)},241:$6e,268:$6e,312:function(n,i,c){return Bu(i,c,n.statements)||Yi(i,n.endOfFileToken)},243:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.declarationList)},261:function(n,i,c){return Bu(i,c,n.declarations)},244:function(n,i,c){return Yi(i,n.expression)},245:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.thenStatement)||Yi(i,n.elseStatement)},246:function(n,i,c){return Yi(i,n.statement)||Yi(i,n.expression)},247:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.statement)},248:function(n,i,c){return Yi(i,n.initializer)||Yi(i,n.condition)||Yi(i,n.incrementor)||Yi(i,n.statement)},249:function(n,i,c){return Yi(i,n.initializer)||Yi(i,n.expression)||Yi(i,n.statement)},250:function(n,i,c){return Yi(i,n.awaitModifier)||Yi(i,n.initializer)||Yi(i,n.expression)||Yi(i,n.statement)},251:XJ,252:XJ,253:function(n,i,c){return Yi(i,n.expression)},254:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.statement)},255:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.caseBlock)},269:function(n,i,c){return Bu(i,c,n.clauses)},296:function(n,i,c){return Yi(i,n.expression)||Bu(i,c,n.statements)},297:function(n,i,c){return Bu(i,c,n.statements)},256:function(n,i,c){return Yi(i,n.label)||Yi(i,n.statement)},257:function(n,i,c){return Yi(i,n.expression)},258:function(n,i,c){return Yi(i,n.tryBlock)||Yi(i,n.catchClause)||Yi(i,n.finallyBlock)},299:function(n,i,c){return Yi(i,n.variableDeclaration)||Yi(i,n.block)},170:function(n,i,c){return Yi(i,n.expression)},263:q6e,231:q6e,264:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Bu(i,c,n.heritageClauses)||Bu(i,c,n.members)},265:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.typeParameters)||Yi(i,n.type)},266:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Bu(i,c,n.members)},306:function(n,i,c){return Yi(i,n.name)||Yi(i,n.initializer)},267:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.body)},271:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)||Yi(i,n.moduleReference)},272:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.importClause)||Yi(i,n.moduleSpecifier)||Yi(i,n.attributes)},273:function(n,i,c){return Yi(i,n.name)||Yi(i,n.namedBindings)},300:function(n,i,c){return Bu(i,c,n.elements)},301:function(n,i,c){return Yi(i,n.name)||Yi(i,n.value)},270:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.name)},274:function(n,i,c){return Yi(i,n.name)},280:function(n,i,c){return Yi(i,n.name)},275:YJ,279:YJ,278:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.exportClause)||Yi(i,n.moduleSpecifier)||Yi(i,n.attributes)},276:qEe,281:qEe,277:function(n,i,c){return Bu(i,c,n.modifiers)||Yi(i,n.expression)},228:function(n,i,c){return Yi(i,n.head)||Bu(i,c,n.templateSpans)},239:function(n,i,c){return Yi(i,n.expression)||Yi(i,n.literal)},203:function(n,i,c){return Yi(i,n.head)||Bu(i,c,n.templateSpans)},204:function(n,i,c){return Yi(i,n.type)||Yi(i,n.literal)},167:function(n,i,c){return Yi(i,n.expression)},298:function(n,i,c){return Bu(i,c,n.types)},233:function(n,i,c){return Yi(i,n.expression)||Bu(i,c,n.typeArguments)},283:function(n,i,c){return Yi(i,n.expression)},282:function(n,i,c){return Bu(i,c,n.modifiers)},361:function(n,i,c){return Bu(i,c,n.elements)},284:function(n,i,c){return Yi(i,n.openingElement)||Bu(i,c,n.children)||Yi(i,n.closingElement)},288:function(n,i,c){return Yi(i,n.openingFragment)||Bu(i,c,n.children)||Yi(i,n.closingFragment)},285:jG,286:jG,292:function(n,i,c){return Bu(i,c,n.properties)},291:function(n,i,c){return Yi(i,n.name)||Yi(i,n.initializer)},293:function(n,i,c){return Yi(i,n.expression)},294:function(n,i,c){return Yi(i,n.dotDotDotToken)||Yi(i,n.expression)},287:function(n,i,c){return Yi(i,n.tagName)},295:function(n,i,c){return Yi(i,n.namespace)||Yi(i,n.name)},190:ZY,191:ZY,316:ZY,322:ZY,321:ZY,323:ZY,325:ZY,324:function(n,i,c){return Bu(i,c,n.parameters)||Yi(i,n.type)},327:function(n,i,c){return(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))||Bu(i,c,n.tags)},354:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.name)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},317:function(n,i,c){return Yi(i,n.name)},318:function(n,i,c){return Yi(i,n.left)||Yi(i,n.right)},348:B_,355:B_,337:function(n,i,c){return Yi(i,n.tagName)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},336:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.class)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},335:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.class)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},352:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.constraint)||Bu(i,c,n.typeParameters)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},353:function(n,i,c){return Yi(i,n.tagName)||(n.typeExpression&&n.typeExpression.kind===316?Yi(i,n.typeExpression)||Yi(i,n.fullName)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment)):Yi(i,n.fullName)||Yi(i,n.typeExpression)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment)))},345:function(n,i,c){return Yi(i,n.tagName)||Yi(i,n.fullName)||Yi(i,n.typeExpression)||(typeof n.comment=="string"?void 0:Bu(i,c,n.comment))},349:k3,351:k3,350:k3,347:k3,357:k3,356:k3,346:k3,330:function(n,i,c){return Ot(n.typeParameters,i)||Ot(n.parameters,i)||Yi(i,n.type)},331:KEe,332:KEe,333:KEe,329:function(n,i,c){return Ot(n.jsDocPropertyTags,i)},334:VG,339:VG,340:VG,341:VG,342:VG,343:VG,338:VG,344:VG,360:Ape},(e=>{var n=CS(99,!0),i=40960,c,u,d,h,S;function E(Xe){return Pn++,Xe}var P={createBaseSourceFileNode:Xe=>E(new S(Xe,0,0)),createBaseIdentifierNode:Xe=>E(new d(Xe,0,0)),createBasePrivateIdentifierNode:Xe=>E(new h(Xe,0,0)),createBaseTokenNode:Xe=>E(new u(Xe,0,0)),createBaseNode:Xe=>E(new c(Xe,0,0))},k=xG(11,P),{createNodeArray:F,createNumericLiteral:$,createStringLiteral:J,createLiteralLikeNode:X,createIdentifier:ie,createPrivateIdentifier:ae,createToken:ve,createArrayLiteralExpression:we,createObjectLiteralExpression:Fe,createPropertyAccessExpression:et,createPropertyAccessChain:Pe,createElementAccessExpression:dt,createElementAccessChain:Ie,createCallExpression:ct,createCallChain:Ct,createNewExpression:Lt,createParenthesizedExpression:Ze,createBlock:Ke,createVariableStatement:st,createExpressionStatement:It,createIfStatement:Yt,createWhileStatement:Et,createForStatement:at,createForOfStatement:Qt,createVariableDeclaration:nn,createVariableDeclarationList:Rn}=k,cn,qt,Kt,wr,Wr,jt,En,fr,Tr,Vr,Pn,Fr,Ki,io,no,os,Mo=!0,$i=!1;function ki(Xe,$t,bn,Fn,Ri=!1,Ti,Xc,Fu=0){var cu;if(Ti=$H(Xe,Ti),Ti===6){const Zu=Wl(Xe,$t,bn,Fn,Ri);return Xoe(Zu,(cu=Zu.statements[0])==null?void 0:cu.expression,Zu.parseDiagnostics,!1,void 0),Zu.referencedFiles=Yn,Zu.typeReferenceDirectives=Yn,Zu.libReferenceDirectives=Yn,Zu.amdDependencies=Yn,Zu.hasNoDefaultLib=!1,Zu.pragmas=ME,Zu}Jc(Xe,$t,bn,Fn,Ti,Fu);const Ml=qn(bn,Ri,Ti,Xc||XEe,Fu);return au(),Ml}e.parseSourceFile=ki;function gc(Xe,$t){Jc("",Xe,$t,void 0,1,0),Nn();const bn=nt(!0),Fn=ge()===1&&!En.length;return au(),Fn?bn:void 0}e.parseIsolatedEntityName=gc;function Wl(Xe,$t,bn=2,Fn,Ri=!1){Jc(Xe,$t,bn,Fn,6,0),qt=os,Nn();const Ti=qe();let Xc,Fu;if(ge()===1)Xc=Ka([],Ti,Ti),Fu=oy();else{let Zu;for(;ge()!==1;){let Cd;switch(ge()){case 23:Cd=R1();break;case 112:case 97:case 106:Cd=oy();break;case 41:ma(()=>Nn()===9&&Nn()!==59)?Cd=Dn():Cd=RI();break;case 9:case 11:if(ma(()=>Nn()!==59)){Cd=wi();break}default:Cd=RI();break}Zu&&ls(Zu)?Zu.push(Cd):Zu?Zu=[Zu,Cd]:(Zu=Cd,ge()!==1&&Ao(N.Unexpected_token))}const hg=ls(Zu)?Qi(we(Zu),Ti):re.checkDefined(Zu),T_=It(hg);Qi(T_,Ti),Xc=Ka([T_],Ti),Fu=km(1,N.Unexpected_token)}const cu=_a(Xe,2,6,!1,Xc,Fu,qt,ku);Ri&&na(cu),cu.nodeCount=Pn,cu.identifierCount=Ki,cu.identifiers=Fr,cu.parseDiagnostics=jN(En,cu),fr&&(cu.jsDocDiagnostics=jN(fr,cu));const Ml=cu;return au(),Ml}e.parseJsonText=Wl;function Jc(Xe,$t,bn,Fn,Ri,Ti){switch(c=W0.getNodeConstructor(),u=W0.getTokenConstructor(),d=W0.getIdentifierConstructor(),h=W0.getPrivateIdentifierConstructor(),S=W0.getSourceFileConstructor(),cn=hf(Xe),Kt=$t,wr=bn,Tr=Fn,Wr=Ri,jt=$9(Ri),En=[],io=0,Fr=new Map,Ki=0,Pn=0,qt=0,Mo=!0,Wr){case 1:case 2:os=524288;break;case 6:os=134742016;break;default:os=0;break}$i=!1,n.setText(Kt),n.setOnError(kt),n.setScriptTarget(wr),n.setLanguageVariant(jt),n.setScriptKind(Wr),n.setJSDocParsingMode(Ti)}function au(){n.clearCommentDirectives(),n.setText(""),n.setOnError(void 0),n.setScriptKind(0),n.setJSDocParsingMode(0),Kt=void 0,wr=void 0,Tr=void 0,Wr=void 0,jt=void 0,qt=0,En=void 0,fr=void 0,io=0,Fr=void 0,no=void 0,Mo=!0}function qn(Xe,$t,bn,Fn,Ri){const Ti=Zb(cn);Ti&&(os|=33554432),qt=os,Nn();const Xc=A_(0,Zx);re.assert(ge()===1);const Fu=Mt(),cu=Ia(oy(),Fu),Ml=_a(cn,Xe,bn,Ti,Xc,cu,qt,Fn);return YEe(Ml,Kt),E6(Ml,Zu),Ml.commentDirectives=n.getCommentDirectives(),Ml.nodeCount=Pn,Ml.identifierCount=Ki,Ml.identifiers=Fr,Ml.parseDiagnostics=jN(En,Ml),Ml.jsDocParsingMode=Ri,fr&&(Ml.jsDocDiagnostics=jN(fr,Ml)),$t&&na(Ml),Ml;function Zu(hg,T_,Cd){En.push(s6(cn,Kt,hg,T_,Cd))}}let za=!1;function Ia(Xe,$t){if(!$t)return Xe;re.assert(!Xe.jsDoc);const bn=Qo(S9(Xe,Kt),Fn=>ute.parseJSDocComment(Xe,Fn.pos,Fn.end-Fn.pos));return bn.length&&(Xe.jsDoc=bn),za&&(za=!1,Xe.flags|=536870912),Xe}function zi(Xe){const $t=Tr,bn=nQ.createSyntaxCursor(Xe);Tr={currentNode:Zu};const Fn=[],Ri=En;En=[];let Ti=0,Xc=cu(Xe.statements,0);for(;Xc!==-1;){const hg=Xe.statements[Ti],T_=Xe.statements[Xc];Oi(Fn,Xe.statements,Ti,Xc),Ti=Ml(Xe.statements,Xc);const Cd=Ho(Ri,zA=>zA.start>=hg.pos),pb=Cd>=0?Ho(Ri,zA=>zA.start>=T_.pos,Cd):-1;Cd>=0&&Oi(En,Ri,Cd,pb>=0?pb:void 0),Tf(()=>{const zA=os;for(os|=65536,n.resetTokenState(T_.pos),Nn();ge()!==1;){const qP=n.getTokenFullStart(),yx=gd(0,Zx);if(Fn.push(yx),qP===n.getTokenFullStart()&&Nn(),Ti>=0){const mb=Xe.statements[Ti];if(yx.end===mb.pos)break;yx.end>mb.pos&&(Ti=Ml(Xe.statements,Ti+1))}}os=zA},2),Xc=Ti>=0?cu(Xe.statements,Ti):-1}if(Ti>=0){const hg=Xe.statements[Ti];Oi(Fn,Xe.statements,Ti);const T_=Ho(Ri,Cd=>Cd.start>=hg.pos);T_>=0&&Oi(En,Ri,T_)}return Tr=$t,k.updateSourceFile(Xe,Tn(F(Fn),Xe.statements));function Fu(hg){return!(hg.flags&65536)&&!!(hg.transformFlags&67108864)}function cu(hg,T_){for(let Cd=T_;Cd118}function u_(){return ge()===80?!0:ge()===127&&Ei()||ge()===135&&go()?!1:ge()>118}function xa(Xe,$t,bn=!0){return ge()===Xe?(bn&&Nn(),!0):($t?Ao($t):Ao(N._0_expected,Cf(Xe)),!1)}const Ym=Object.keys(rE).filter(Xe=>Xe.length>2);function mf(Xe){if(Dm(Xe)){ze(Ff(Kt,Xe.template.pos),Xe.template.end,N.Module_declaration_names_may_only_use_or_quoted_strings);return}const $t=xn(Xe)?Kr(Xe):void 0;if(!$t||!H2($t,wr)){Ao(N._0_expected,Cf(27));return}const bn=Ff(Kt,Xe.pos);switch($t){case"const":case"let":case"var":ze(bn,Xe.end,N.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Cp(N.Interface_name_cannot_be_0,N.Interface_must_be_given_a_name,19);return;case"is":ze(bn,n.getTokenStart(),N.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Cp(N.Namespace_name_cannot_be_0,N.Namespace_must_be_given_a_name,19);return;case"type":Cp(N.Type_alias_name_cannot_be_0,N.Type_alias_must_be_given_a_name,64);return}const Fn=fh($t,Ym,Ri=>Ri)??Yg($t);if(Fn){ze(bn,Xe.end,N.Unknown_keyword_or_identifier_Did_you_mean_0,Fn);return}ge()!==0&&ze(bn,Xe.end,N.Unexpected_keyword_or_identifier)}function Cp(Xe,$t,bn){ge()===bn?Ao($t):Ao(Xe,n.getTokenValue())}function Yg(Xe){for(const $t of Ym)if(Xe.length>$t.length+2&&qf(Xe,$t))return`${$t} ${Xe.slice($t.length)}`}function xg(Xe,$t,bn){if(ge()===60&&!n.hasPrecedingLineBreak()){Ao(N.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(ge()===21){Ao(N.Cannot_start_a_function_call_in_a_type_annotation),Nn();return}if($t&&!hh()){bn?Ao(N._0_expected,Cf(27)):Ao(N.Expected_for_property_initializer);return}if(!qo()){if(bn){Ao(N._0_expected,Cf(27));return}mf(Xe)}}function Wy(Xe){return ge()===Xe?(Lr(),!0):(re.assert(F9(Xe)),Ao(N._0_expected,Cf(Xe)),!1)}function Og(Xe,$t,bn,Fn){if(ge()===$t){Nn();return}const Ri=Ao(N._0_expected,Cf($t));bn&&Ri&&ml(Ri,s6(cn,Kt,Fn,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Cf(Xe),Cf($t)))}function pl(Xe){return ge()===Xe?(Nn(),!0):!1}function R_(Xe){if(ge()===Xe)return oy()}function og(Xe){if(ge()===Xe)return bE()}function km(Xe,$t,bn){return R_(Xe)||Pm(Xe,!1,$t||N._0_expected,bn||Cf(Xe))}function M_(Xe){const $t=og(Xe);return $t||(re.assert(F9(Xe)),Pm(Xe,!1,N._0_expected,Cf(Xe)))}function oy(){const Xe=qe(),$t=ge();return Nn(),Qi(ve($t),Xe)}function bE(){const Xe=qe(),$t=ge();return Lr(),Qi(ve($t),Xe)}function hh(){return ge()===27?!0:ge()===20||ge()===1||n.hasPrecedingLineBreak()}function qo(){return hh()?(ge()===27&&Nn(),!0):!1}function d_(){return qo()||xa(27)}function Ka(Xe,$t,bn,Fn){const Ri=F(Xe,Fn);return T1(Ri,$t,bn??n.getTokenFullStart()),Ri}function Qi(Xe,$t,bn){return T1(Xe,$t,bn??n.getTokenFullStart()),os&&(Xe.flags|=os),$i&&($i=!1,Xe.flags|=262144),Xe}function Pm(Xe,$t,bn,...Fn){$t?Io(n.getTokenFullStart(),0,bn,...Fn):bn&&Ao(bn,...Fn);const Ri=qe(),Ti=Xe===80?ie("",void 0):VC(Xe)?k.createTemplateLiteralLikeNode(Xe,"","",void 0):Xe===9?$("",void 0):Xe===11?J("",void 0):Xe===282?k.createMissingDeclaration():ve(Xe);return Qi(Ti,Ri)}function Ag(Xe){let $t=Fr.get(Xe);return $t===void 0&&Fr.set(Xe,$t=Xe),$t}function va(Xe,$t,bn){if(Xe){Ki++;const Fu=qe(),cu=ge(),Ml=Ag(n.getTokenValue()),Zu=n.hasExtendedUnicodeEscape();return mn(),Qi(ie(Ml,cu,Zu),Fu)}if(ge()===81)return Ao(bn||N.Private_identifiers_are_not_allowed_outside_class_bodies),va(!0);if(ge()===0&&n.tryScan(()=>n.reScanInvalidIdentifier()===80))return va(!0);Ki++;const Fn=ge()===1,Ri=n.isReservedWord(),Ti=n.getTokenText(),Xc=Ri?N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:N.Identifier_expected;return Pm(80,Fn,$t||Xc,Ti)}function x0(Xe){return va(G_(),void 0,Xe)}function Nm(Xe,$t){return va(u_(),Xe,$t)}function Md(Xe){return va(CT(ge()),Xe)}function fe(){return(n.hasUnicodeEscape()||n.hasExtendedUnicodeEscape())&&Ao(N.Unicode_escape_sequence_cannot_appear_here),va(CT(ge()))}function _n(){return CT(ge())||ge()===11||ge()===9}function Xn(){return CT(ge())||ge()===11}function _i(Xe){if(ge()===11||ge()===9){const $t=wi();return $t.text=Ag($t.text),$t}return Xe&&ge()===23?Sc():ge()===81?xs():Md()}function $o(){return _i(!0)}function Sc(){const Xe=qe();xa(23);const $t=He(v_);return xa(24),Qi(k.createComputedPropertyName($t),Xe)}function xs(){const Xe=qe(),$t=ae(Ag(n.getTokenValue()));return Nn(),Qi($t,Xe)}function Fs(Xe){return ge()===Xe&&Bl(fc)}function Tl(){return Nn(),n.hasPrecedingLineBreak()?!1:bm()}function fc(){switch(ge()){case 87:return Nn()===94;case 95:return Nn(),ge()===90?ma(ay):ge()===156?ma(ag):Gd();case 90:return ay();case 126:case 139:case 153:return Nn(),bm();default:return Tl()}}function Gd(){return ge()===60||ge()!==42&&ge()!==130&&ge()!==19&&bm()}function ag(){return Nn(),Gd()}function ah(){return Om(ge())&&Bl(fc)}function bm(){return ge()===23||ge()===19||ge()===42||ge()===26||_n()}function ay(){return Nn(),ge()===86||ge()===100||ge()===120||ge()===60||ge()===128&&ma(Kq)||ge()===134&&ma(Qg)}function yp(Xe,$t){if(Dg(Xe))return!0;switch(Xe){case 0:case 1:case 3:return!(ge()===27&&$t)&&M1();case 2:return ge()===84||ge()===90;case 4:return ma(oo);case 5:return ma(L1)||ge()===27&&!$t;case 6:return ge()===23||_n();case 12:switch(ge()){case 23:case 42:case 26:case 25:return!0;default:return _n()}case 18:return _n();case 9:return ge()===23||ge()===26||_n();case 24:return Xn();case 7:return ge()===19?ma(Cg):$t?u_()&&!sg():kf()&&!sg();case 8:return jp();case 10:return ge()===28||ge()===26||jp();case 19:return ge()===103||ge()===87||u_();case 15:switch(ge()){case 28:case 25:return!0}case 11:return ge()===26||Rp();case 16:return $n(!1);case 17:return $n(!0);case 20:case 21:return ge()===28||px();case 22:return ne();case 23:return ge()===161&&ma(JF)?!1:CT(ge());case 13:return CT(ge())||ge()===19;case 14:return!0;case 25:return!0;case 26:return re.fail("ParsingContext.Count used as a context");default:re.assertNever(Xe,"Non-exhaustive case in 'isListElement'.")}}function Cg(){if(re.assert(ge()===19),Nn()===20){const Xe=Nn();return Xe===28||Xe===19||Xe===96||Xe===119}return!0}function wp(){return Nn(),u_()}function Xp(){return Nn(),CT(ge())}function r1(){return Nn(),RX(ge())}function sg(){return ge()===119||ge()===96?ma(Jt):!1}function Jt(){return Nn(),Rp()}function ci(){return Nn(),px()}function da(Xe){if(ge()===1)return!0;switch(Xe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return ge()===20;case 3:return ge()===20||ge()===84||ge()===90;case 7:return ge()===19||ge()===96||ge()===119;case 8:return Hu();case 19:return ge()===32||ge()===21||ge()===19||ge()===96||ge()===119;case 11:return ge()===22||ge()===27;case 15:case 21:case 10:return ge()===24;case 17:case 16:case 18:return ge()===22||ge()===24;case 20:return ge()!==28;case 22:return ge()===19||ge()===20;case 13:return ge()===32||ge()===44;case 14:return ge()===30&&ma(Co);default:return!1}}function Hu(){return!!(hh()||w2(ge())||ge()===39)}function t_(){re.assert(io,"Missing parsing context");for(let Xe=0;Xe<26;Xe++)if(io&1<=0)}function t2(Xe){return Xe===6?N.An_enum_member_name_must_be_followed_by_a_or:void 0}function q0(){const Xe=Ka([],qe());return Xe.isMissingList=!0,Xe}function N1(Xe){return!!Xe.isMissingList}function i0(Xe,$t,bn,Fn){if(xa(bn)){const Ri=xv(Xe,$t);return xa(Fn),Ri}return q0()}function nt(Xe,$t){const bn=qe();let Fn=Xe?Md($t):Nm($t);for(;pl(25)&&ge()!==30;)Fn=Qi(k.createQualifiedName(Fn,vi(Xe,!1,!0)),bn);return Fn}function pr(Xe,$t){return Qi(k.createQualifiedName(Xe,$t),Xe.pos)}function vi(Xe,$t,bn){if(n.hasPrecedingLineBreak()&&CT(ge())&&ma(w4))return Pm(80,!0,N.Identifier_expected);if(ge()===81){const Fn=xs();return $t?Fn:Pm(80,!0,N.Identifier_expected)}return Xe?bn?Md():fe():Nm()}function Di(Xe){const $t=qe(),bn=[];let Fn;do Fn=wa(Xe),bn.push(Fn);while(Fn.literal.kind===17);return Ka(bn,$t)}function Ee(Xe){const $t=qe();return Qi(k.createTemplateExpression(Vl(Xe),Di(Xe)),$t)}function Gt(){const Xe=qe();return Qi(k.createTemplateLiteralType(Vl(!1),sr()),Xe)}function sr(){const Xe=qe(),$t=[];let bn;do bn=Ii(),$t.push(bn);while(bn.literal.kind===17);return Ka($t,Xe)}function Ii(){const Xe=qe();return Qi(k.createTemplateLiteralTypeSpan(_c(),Ja(!1)),Xe)}function Ja(Xe){return ge()===20?(Ts(Xe),Uf()):km(18,N._0_expected,Cf(20))}function wa(Xe){const $t=qe();return Qi(k.createTemplateSpan(He(v_),Ja(Xe)),$t)}function wi(){return Fg(ge())}function Vl(Xe){!Xe&&n.getTokenFlags()&26656&&Ts(!1);const $t=Fg(ge());return re.assert($t.kind===16,"Template head has wrong token kind"),$t}function Uf(){const Xe=Fg(ge());return re.assert(Xe.kind===17||Xe.kind===18,"Template fragment has wrong token kind"),Xe}function Y_(Xe){const $t=Xe===15||Xe===18,bn=n.getTokenText();return bn.substring(1,bn.length-(n.isUnterminated()?0:$t?1:2))}function Fg(Xe){const $t=qe(),bn=VC(Xe)?k.createTemplateLiteralLikeNode(Xe,n.getTokenValue(),Y_(Xe),n.getTokenFlags()&7176):Xe===9?$(n.getTokenValue(),n.getNumericLiteralFlags()):Xe===11?J(n.getTokenValue(),void 0,n.hasExtendedUnicodeEscape()):UX(Xe)?X(Xe,n.getTokenValue()):re.fail();return n.hasExtendedUnicodeEscape()&&(bn.hasExtendedUnicodeEscape=!0),n.isUnterminated()&&(bn.isUnterminated=!0),Nn(),Qi(bn,$t)}function sv(){return nt(!0,N.Type_expected)}function vy(){if(!n.hasPrecedingLineBreak()&&Cc()===30)return i0(20,_c,30,32)}function _b(){const Xe=qe();return Qi(k.createTypeReferenceNode(sv(),vy()),Xe)}function f_(Xe){switch(Xe.kind){case 183:return ny(Xe.typeName);case 184:case 185:{const{parameters:$t,type:bn}=Xe;return N1($t)||f_(bn)}case 196:return f_(Xe.type);default:return!1}}function zh(Xe){return Nn(),Qi(k.createTypePredicateNode(void 0,Xe,_c()),Xe.pos)}function i1(){const Xe=qe();return Nn(),Qi(k.createThisTypeNode(),Xe)}function n2(){const Xe=qe();return Nn(),Qi(k.createJSDocAllType(),Xe)}function Vv(){const Xe=qe();return Nn(),Qi(k.createJSDocNonNullableType(WS(),!1),Xe)}function su(){const Xe=qe();return Nn(),ge()===28||ge()===20||ge()===22||ge()===32||ge()===64||ge()===52?Qi(k.createJSDocUnknownType(),Xe):Qi(k.createJSDocNullableType(_c(),!1),Xe)}function gC(){const Xe=qe(),$t=Mt();if(ma(ru)){Nn();const bn=Xs(36),Fn=ca(59,!1);return Ia(Qi(k.createJSDocFunctionType(bn,Fn),Xe),$t)}return Qi(k.createTypeReferenceNode(Md(),void 0),Xe)}function eg(){const Xe=qe();let $t;return(ge()===110||ge()===105)&&($t=Md(),xa(59)),Qi(k.createParameterDeclaration(void 0,void 0,$t,void 0,Uv(),void 0),Xe)}function Uv(){n.setInJSDocType(!0);const Xe=qe();if(pl(144)){const Fn=k.createJSDocNamepathType(void 0);e:for(;;)switch(ge()){case 20:case 1:case 28:case 5:break e;default:Lr()}return n.setInJSDocType(!1),Qi(Fn,Xe)}const $t=pl(26);let bn=xo();return n.setInJSDocType(!1),$t&&(bn=Qi(k.createJSDocVariadicType(bn),Xe)),ge()===64?(Nn(),Qi(k.createJSDocOptionalType(bn),Xe)):bn}function Rk(){const Xe=qe();xa(114);const $t=nt(!0),bn=n.hasPrecedingLineBreak()?void 0:O4();return Qi(k.createTypeQueryNode($t,bn),Xe)}function Lb(){const Xe=qe(),$t=c0(!1,!0),bn=Nm();let Fn,Ri;pl(96)&&(px()||!Rp()?Fn=_c():Ri=gg());const Ti=pl(64)?_c():void 0,Xc=k.createTypeParameterDeclaration($t,bn,Fn,Ti);return Xc.expression=Ri,Qi(Xc,Xe)}function fn(){if(ge()===30)return i0(19,Lb,30,32)}function $n(Xe){return ge()===26||jp()||Om(ge())||ge()===60||px(!Xe)}function ri(Xe){const $t=sc(N.Private_identifiers_cannot_be_used_as_parameters);return FL($t)===0&&!gt(Xe)&&Om(ge())&&Nn(),$t}function Li(){return G_()||ge()===23||ge()===19}function yo(Xe){return Oo(Xe)}function jo(Xe){return Oo(Xe,!1)}function Oo(Xe,$t=!0){const bn=qe(),Fn=Mt(),Ri=Xe?ln(()=>c0(!0)):Wn(()=>c0(!0));if(ge()===110){const cu=k.createParameterDeclaration(Ri,void 0,va(!0),void 0,Sl(),void 0),Ml=pp(Ri);return Ml&&Ce(Ml,N.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ia(Qi(cu,bn),Fn)}const Ti=Mo;Mo=!1;const Xc=R_(26);if(!$t&&!Li())return;const Fu=Ia(Qi(k.createParameterDeclaration(Ri,Xc,ri(Ri),R_(58),Sl(),yh()),bn),Fn);return Mo=Ti,Fu}function ca(Xe,$t){if(Fc(Xe,$t))return dr(xo)}function Fc(Xe,$t){return Xe===39?(xa(Xe),!0):pl(59)?!0:$t&&ge()===39?(Ao(N._0_expected,Cf(59)),Nn(),!0):!1}function ks(Xe,$t){const bn=Ei(),Fn=go();Qu(!!(Xe&1)),yf(!!(Xe&2));const Ri=Xe&32?xv(17,eg):xv(16,()=>$t?yo(Fn):jo(Fn));return Qu(bn),yf(Fn),Ri}function Xs(Xe){if(!xa(21))return q0();const $t=ks(Xe,!0);return xa(22),$t}function Vs(){pl(28)||d_()}function wu(Xe){const $t=qe(),bn=Mt();Xe===180&&xa(105);const Fn=fn(),Ri=Xs(4),Ti=ca(59,!0);Vs();const Xc=Xe===179?k.createCallSignature(Fn,Ri,Ti):k.createConstructSignature(Fn,Ri,Ti);return Ia(Qi(Xc,$t),bn)}function Yp(){return ge()===23&&ma(Q)}function Q(){if(Nn(),ge()===26||ge()===24)return!0;if(Om(ge())){if(Nn(),u_())return!0}else if(u_())Nn();else return!1;return ge()===59||ge()===28?!0:ge()!==58?!1:(Nn(),ge()===59||ge()===28||ge()===24)}function ft(Xe,$t,bn){const Fn=i0(16,()=>yo(!1),23,24),Ri=Sl();Vs();const Ti=k.createIndexSignature(bn,Fn,Ri);return Ia(Qi(Ti,Xe),$t)}function br(Xe,$t,bn){const Fn=$o(),Ri=R_(58);let Ti;if(ge()===21||ge()===30){const Xc=fn(),Fu=Xs(4),cu=ca(59,!0);Ti=k.createMethodSignature(bn,Fn,Ri,Xc,Fu,cu)}else{const Xc=Sl();Ti=k.createPropertySignature(bn,Fn,Ri,Xc),ge()===64&&(Ti.initializer=yh())}return Vs(),Ia(Qi(Ti,Xe),$t)}function oo(){if(ge()===21||ge()===30||ge()===139||ge()===153)return!0;let Xe=!1;for(;Om(ge());)Xe=!0,Nn();return ge()===23?!0:(_n()&&(Xe=!0,Nn()),Xe?ge()===21||ge()===30||ge()===58||ge()===59||ge()===28||hh():!1)}function Js(){if(ge()===21||ge()===30)return wu(179);if(ge()===105&&ma(pu))return wu(180);const Xe=qe(),$t=Mt(),bn=c0(!1);return Fs(139)?TC(Xe,$t,bn,177,4):Fs(153)?TC(Xe,$t,bn,178,4):Yp()?ft(Xe,$t,bn):br(Xe,$t,bn)}function pu(){return Nn(),ge()===21||ge()===30}function fl(){return Nn()===25}function ju(){switch(Nn()){case 21:case 30:case 25:return!0}return!1}function L_(){const Xe=qe();return Qi(k.createTypeLiteralNode(Cl()),Xe)}function Cl(){let Xe;return xa(19)?(Xe=A_(4,Js),xa(20)):Xe=q0(),Xe}function o0(){return Nn(),ge()===40||ge()===41?Nn()===148:(ge()===148&&Nn(),ge()===23&&wp()&&Nn()===103)}function oa(){const Xe=qe(),$t=Md();xa(103);const bn=_c();return Qi(k.createTypeParameterDeclaration(void 0,$t,bn,void 0),Xe)}function dD(){const Xe=qe();xa(19);let $t;(ge()===148||ge()===40||ge()===41)&&($t=oy(),$t.kind!==148&&xa(148)),xa(23);const bn=oa(),Fn=pl(130)?_c():void 0;xa(24);let Ri;(ge()===58||ge()===40||ge()===41)&&(Ri=oy(),Ri.kind!==58&&xa(58));const Ti=Sl();d_();const Xc=A_(4,Js);return xa(20),Qi(k.createMappedTypeNode($t,bn,Fn,Ri,Ti,Xc),Xe)}function a0(){const Xe=qe();if(pl(26))return Qi(k.createRestTypeNode(_c()),Xe);const $t=_c();if(WJ($t)&&$t.pos===$t.type.pos){const bn=k.createOptionalTypeNode($t.type);return Tn(bn,$t),bn.flags=$t.flags,bn}return $t}function Kx(){return Nn()===59||ge()===58&&Nn()===59}function hC(){return ge()===26?CT(Nn())&&Kx():CT(ge())&&Kx()}function WP(){if(ma(hC)){const Xe=qe(),$t=Mt(),bn=R_(26),Fn=Md(),Ri=R_(58);xa(59);const Ti=a0(),Xc=k.createNamedTupleMember(bn,Fn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}return a0()}function BP(){const Xe=qe();return Qi(k.createTupleTypeNode(i0(21,WP,23,24)),Xe)}function LA(){const Xe=qe();xa(21);const $t=_c();return xa(22),Qi(k.createParenthesizedType($t),Xe)}function OA(){let Xe;if(ge()===128){const $t=qe();Nn();const bn=Qi(ve(128),$t);Xe=Ka([bn],$t)}return Xe}function pD(){const Xe=qe(),$t=Mt(),bn=OA(),Fn=pl(105);re.assert(!bn||Fn,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Ri=fn(),Ti=Xs(4),Xc=ca(39,!1),Fu=Fn?k.createConstructorTypeNode(bn,Ri,Ti,Xc):k.createFunctionTypeNode(Ri,Ti,Xc);return Ia(Qi(Fu,Xe),$t)}function yC(){const Xe=oy();return ge()===25?void 0:Xe}function vC(Xe){const $t=qe();Xe&&Nn();let bn=ge()===112||ge()===97||ge()===106?oy():Fg(ge());return Xe&&(bn=Qi(k.createPrefixUnaryExpression(41,bn),$t)),Qi(k.createLiteralTypeNode(bn),$t)}function zP(){return Nn(),ge()===102}function Xx(){qt|=4194304;const Xe=qe(),$t=pl(114);xa(102),xa(21);const bn=_c();let Fn;if(pl(28)){const Xc=n.getTokenStart();xa(19);const Fu=ge();if(Fu===118||Fu===132?Nn():Ao(N._0_expected,Cf(118)),xa(59),Fn=gO(Fu,!0),!xa(20)){const cu=Yf(En);cu&&cu.code===N._0_expected.code&&ml(cu,s6(cn,Kt,Xc,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xa(22);const Ri=pl(25)?sv():void 0,Ti=vy();return Qi(k.createImportTypeNode(bn,Fn,Ri,Ti,$t),Xe)}function dx(){return Nn(),ge()===9||ge()===10}function WS(){switch(ge()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Bl(yC)||_b();case 67:n.reScanAsteriskEqualsToken();case 42:return n2();case 61:n.reScanQuestionToken();case 58:return su();case 100:return gC();case 54:return Vv();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return vC();case 41:return ma(dx)?vC(!0):_b();case 116:return oy();case 110:{const Xe=i1();return ge()===142&&!n.hasPrecedingLineBreak()?zh(Xe):Xe}case 114:return ma(zP)?Xx():Rk();case 19:return ma(o0)?dD():L_();case 23:return BP();case 21:return LA();case 102:return Xx();case 131:return ma(w4)?hu():_b();case 16:return Gt();default:return _b()}}function px(Xe){switch(ge()){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!Xe;case 41:return!Xe&&ma(dx);case 21:return!Xe&&ma(j_);default:return u_()}}function j_(){return Nn(),ge()===22||$n(!1)||px()}function GP(){const Xe=qe();let $t=WS();for(;!n.hasPrecedingLineBreak();)switch(ge()){case 54:Nn(),$t=Qi(k.createJSDocNonNullableType($t,!0),Xe);break;case 58:if(ma(ci))return $t;Nn(),$t=Qi(k.createJSDocNullableType($t,!0),Xe);break;case 23:if(xa(23),px()){const bn=_c();xa(24),$t=Qi(k.createIndexedAccessTypeNode($t,bn),Xe)}else xa(24),$t=Qi(k.createArrayTypeNode($t),Xe);break;default:return $t}return $t}function oO(Xe){const $t=qe();return xa(Xe),Qi(k.createTypeOperatorNode(Xe,wm()),$t)}function dS(){if(pl(96)){const Xe=Mr(_c);if(Sr()||ge()!==58)return Xe}}function FA(){const Xe=qe(),$t=Nm(),bn=Bl(dS),Fn=k.createTypeParameterDeclaration(void 0,$t,bn);return Qi(Fn,Xe)}function bC(){const Xe=qe();return xa(140),Qi(k.createInferTypeNode(FA()),Xe)}function wm(){const Xe=ge();switch(Xe){case 143:case 158:case 148:return oO(Xe);case 140:return bC()}return dr(GP)}function db(Xe){if(zn()){const $t=pD();let bn;return e0($t)?bn=Xe?N.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:N.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:bn=Xe?N.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:N.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Ce($t,bn),$t}}function o1(Xe,$t,bn){const Fn=qe(),Ri=Xe===52,Ti=pl(Xe);let Xc=Ti&&db(Ri)||$t();if(ge()===Xe||Ti){const Fu=[Xc];for(;pl(Xe);)Fu.push(db(Ri)||$t());Xc=Qi(bn(Ka(Fu,Fn)),Fn)}return Xc}function Q_(){return o1(51,wm,k.createIntersectionTypeNode)}function je(){return o1(52,Q_,k.createUnionTypeNode)}function Vt(){return Nn(),ge()===105}function zn(){return ge()===30||ge()===21&&ma(xi)?!0:ge()===105||ge()===128&&ma(Vt)}function zr(){if(Om(ge())&&c0(!1),u_()||ge()===110)return Nn(),!0;if(ge()===23||ge()===19){const Xe=En.length;return sc(),Xe===En.length}return!1}function xi(){return Nn(),!!(ge()===22||ge()===26||zr()&&(ge()===59||ge()===28||ge()===58||ge()===64||ge()===22&&(Nn(),ge()===39)))}function xo(){const Xe=qe(),$t=u_()&&Bl(Wc),bn=_c();return $t?Qi(k.createTypePredicateNode(void 0,$t,bn),Xe):bn}function Wc(){const Xe=Nm();if(ge()===142&&!n.hasPrecedingLineBreak())return Nn(),Xe}function hu(){const Xe=qe(),$t=km(131),bn=ge()===110?i1():Nm(),Fn=pl(142)?_c():void 0;return Qi(k.createTypePredicateNode($t,bn,Fn),Xe)}function _c(){if(os&81920)return w_(81920,_c);if(zn())return pD();const Xe=qe(),$t=je();if(!Sr()&&!n.hasPrecedingLineBreak()&&pl(96)){const bn=Mr(_c);xa(58);const Fn=dr(_c);xa(59);const Ri=dr(_c);return Qi(k.createConditionalTypeNode($t,bn,Fn,Ri),Xe)}return $t}function Sl(){return pl(59)?_c():void 0}function kf(){switch(ge()){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 ma(ju);default:return u_()}}function Rp(){if(kf())return!0;switch(ge()){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 U()?!0:u_()}}function hn(){return ge()!==19&&ge()!==100&&ge()!==86&&ge()!==60&&Rp()}function v_(){const Xe=yi();Xe&&Cu(!1);const $t=qe();let bn=fm(!0),Fn;for(;Fn=R_(28);)bn=Ae(bn,Fn,fm(!0),$t);return Xe&&Cu(!0),bn}function yh(){return pl(64)?fm(!0):void 0}function fm(Xe){if(mx())return N2();const $t=jP(Xe)||UP(Xe);if($t)return $t;const bn=qe(),Fn=Mt(),Ri=A0(0);return Ri.kind===80&&ge()===39?pS(bn,Ri,Xe,Fn,void 0):ib(Ri)&&pk(vo())?Ae(Ri,oy(),fm(Xe),bn):TE(Ri,bn,Xe)}function mx(){return ge()===127?Ei()?!0:ma(bB):!1}function BS(){return Nn(),!n.hasPrecedingLineBreak()&&u_()}function N2(){const Xe=qe();return Nn(),!n.hasPrecedingLineBreak()&&(ge()===42||Rp())?Qi(k.createYieldExpression(R_(42),fm(!0)),Xe):Qi(k.createYieldExpression(void 0,void 0),Xe)}function pS(Xe,$t,bn,Fn,Ri){re.assert(ge()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Ti=k.createParameterDeclaration(void 0,void 0,$t,void 0,void 0,void 0);Qi(Ti,$t.pos);const Xc=Ka([Ti],Ti.pos,Ti.end),Fu=km(39),cu=Hv(!!Ri,bn),Ml=k.createArrowFunction(Ri,void 0,Xc,void 0,Fu,cu);return Ia(Qi(Ml,Xe),Fn)}function jP(Xe){const $t=tp();if($t!==0)return $t===1?Bm(!0,!0):Bl(()=>VP(Xe))}function tp(){return ge()===21||ge()===30||ge()===134?ma(gx):ge()===39?1:0}function gx(){if(ge()===134&&(Nn(),n.hasPrecedingLineBreak()||ge()!==21&&ge()!==30))return 0;const Xe=ge(),$t=Nn();if(Xe===21){if($t===22)switch(Nn()){case 39:case 59:case 19:return 1;default:return 0}if($t===23||$t===19)return 2;if($t===26)return 1;if(Om($t)&&$t!==134&&ma(wp))return Nn()===130?0:1;if(!u_()&&$t!==110)return 0;switch(Nn()){case 59:return 1;case 58:return Nn(),ge()===59||ge()===28||ge()===64||ge()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return re.assert(Xe===30),!u_()&&ge()!==87?0:jt===1?ma(()=>{pl(87);const Fn=Nn();if(Fn===96)switch(Nn()){case 64:case 32:case 44:return!1;default:return!0}else if(Fn===28||Fn===64)return!0;return!1})?1:0:2}function VP(Xe){const $t=n.getTokenStart();if(no!=null&&no.has($t))return;const bn=Bm(!1,Xe);return bn||(no||(no=new Set)).add($t),bn}function UP(Xe){if(ge()===134&&ma(Bd)===1){const $t=qe(),bn=Mt(),Fn=jS(),Ri=A0(0);return pS($t,Ri,Xe,bn,Fn)}}function Bd(){if(ge()===134){if(Nn(),n.hasPrecedingLineBreak()||ge()===39)return 0;const Xe=A0(0);if(!n.hasPrecedingLineBreak()&&Xe.kind===80&&ge()===39)return 1}return 0}function Bm(Xe,$t){const bn=qe(),Fn=Mt(),Ri=jS(),Ti=gt(Ri,NJ)?2:0,Xc=fn();let Fu;if(xa(21)){if(Xe)Fu=ks(Ti,Xe);else{const qP=ks(Ti,Xe);if(!qP)return;Fu=qP}if(!xa(22)&&!Xe)return}else{if(!Xe)return;Fu=q0()}const cu=ge()===59,Ml=ca(59,!1);if(Ml&&!Xe&&f_(Ml))return;let Zu=Ml;for(;(Zu==null?void 0:Zu.kind)===196;)Zu=Zu.type;const hg=Zu&&Ak(Zu);if(!Xe&&ge()!==39&&(hg||ge()!==19))return;const T_=ge(),Cd=km(39),pb=T_===39||T_===19?Hv(gt(Ri,NJ),$t):Nm();if(!$t&&cu&&ge()!==59)return;const zA=k.createArrowFunction(Ri,Xc,Fu,Ml,Cd,pb);return Ia(Qi(zA,bn),Fn)}function Hv(Xe,$t){if(ge()===19)return j6(Xe?2:0);if(ge()!==27&&ge()!==100&&ge()!==86&&M1()&&!hn())return j6(16|(Xe?2:0));const bn=Mo;Mo=!1;const Fn=Xe?ln(()=>fm($t)):Wn(()=>fm($t));return Mo=bn,Fn}function TE(Xe,$t,bn){const Fn=R_(58);if(!Fn)return Xe;let Ri;return Qi(k.createConditionalExpression(Xe,Fn,w_(i,()=>fm(!1)),Ri=km(59),y2(Ri)?fm(bn):Pm(80,!1,N._0_expected,Cf(59))),$t)}function A0(Xe){const $t=qe(),bn=gg();return R2(Xe,bn,$t)}function w2(Xe){return Xe===103||Xe===165}function R2(Xe,$t,bn){for(;;){vo();const Fn=bH(ge());if(!(ge()===43?Fn>=Xe:Fn>Xe)||ge()===103&&Ln())break;if(ge()===130||ge()===152){if(n.hasPrecedingLineBreak())break;{const Ti=ge();Nn(),$t=Ti===152?le($t,_c()):rt($t,_c())}}else $t=Ae($t,oy(),A0(Fn),bn)}return $t}function U(){return Ln()&&ge()===103?!1:bH(ge())>0}function le(Xe,$t){return Qi(k.createSatisfiesExpression(Xe,$t),Xe.pos)}function Ae(Xe,$t,bn,Fn){return Qi(k.createBinaryExpression(Xe,$t,bn),Fn)}function rt(Xe,$t){return Qi(k.createAsExpression(Xe,$t),Xe.pos)}function Dn(){const Xe=qe();return Qi(k.createPrefixUnaryExpression(ge(),Jn(Nh)),Xe)}function Ci(){const Xe=qe();return Qi(k.createDeleteExpression(Jn(Nh)),Xe)}function gs(){const Xe=qe();return Qi(k.createTypeOfExpression(Jn(Nh)),Xe)}function Tu(){const Xe=qe();return Qi(k.createVoidExpression(Jn(Nh)),Xe)}function tg(){return ge()===135?go()?!0:ma(bB):!1}function mS(){const Xe=qe();return Qi(k.createAwaitExpression(Jn(Nh)),Xe)}function gg(){if(r2()){const bn=qe(),Fn=II();return ge()===43?R2(bH(ge()),Fn,bn):Fn}const Xe=ge(),$t=Nh();if(ge()===43){const bn=Ff(Kt,$t.pos),{end:Fn}=$t;$t.kind===216?ze(bn,Fn,N.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(re.assert(F9(Xe)),ze(bn,Fn,N.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,Cf(Xe)))}return $t}function Nh(){switch(ge()){case 40:case 41:case 55:case 54:return Dn();case 91:return Ci();case 114:return gs();case 116:return Tu();case 30:return jt===1?kI(!0,void 0,void 0,!0):wI();case 135:if(tg())return mS();default:return II()}}function r2(){switch(ge()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(jt!==1)return!1;default:return!0}}function II(){if(ge()===46||ge()===47){const $t=qe();return Qi(k.createPrefixUnaryExpression(ge(),Jn(Mk)),$t)}else if(jt===1&&ge()===30&&ma(r1))return kI(!0);const Xe=Mk();if(re.assert(ib(Xe)),(ge()===46||ge()===47)&&!n.hasPrecedingLineBreak()){const $t=ge();return Nn(),Qi(k.createPostfixUnaryExpression(Xe,$t),Xe.pos)}return Xe}function Mk(){const Xe=qe();let $t;return ge()===102?ma(pu)?(qt|=4194304,$t=oy()):ma(fl)?(Nn(),Nn(),$t=Qi(k.createMetaProperty(102,Md()),Xe),qt|=8388608):$t=M2():$t=ge()===108?HR():M2(),Ys(Xe,$t)}function M2(){const Xe=qe(),$t=b_();return gf(Xe,$t,!0)}function HR(){const Xe=qe();let $t=oy();if(ge()===30){const bn=qe(),Fn=Bl(Nl);Fn!==void 0&&(ze(bn,qe(),N.super_may_not_use_type_arguments),ko()||($t=k.createExpressionWithTypeArguments($t,Fn)))}return ge()===21||ge()===25||ge()===23?$t:(km(25,N.super_must_be_followed_by_an_argument_list_or_member_access),Qi(et($t,vi(!0,!0,!0)),Xe))}function kI(Xe,$t,bn,Fn=!1){const Ri=qe(),Ti=NI(Xe);let Xc;if(Ti.kind===286){let Fu=HP(Ti),cu;const Ml=Fu[Fu.length-1];if((Ml==null?void 0:Ml.kind)===284&&!n4(Ml.openingElement.tagName,Ml.closingElement.tagName)&&n4(Ti.tagName,Ml.closingElement.tagName)){const Zu=Ml.children.end,hg=Qi(k.createJsxElement(Ml.openingElement,Ml.children,Qi(k.createJsxClosingElement(Qi(ie(""),Zu,Zu)),Zu,Zu)),Ml.openingElement.pos,Zu);Fu=Ka([...Fu.slice(0,Fu.length-1),hg],Fu.pos,Zu),cu=Ml.closingElement}else cu=gD(Ti,Xe),n4(Ti.tagName,cu.tagName)||(bn&&Pb(bn)&&n4(cu.tagName,bn.tagName)?Ce(Ti.tagName,N.JSX_element_0_has_no_corresponding_closing_tag,h9(Kt,Ti.tagName)):Ce(cu.tagName,N.Expected_corresponding_JSX_closing_tag_for_0,h9(Kt,Ti.tagName)));Xc=Qi(k.createJsxElement(Ti,Fu,cu),Ri)}else Ti.kind===289?Xc=Qi(k.createJsxFragment(Ti,HP(Ti),UT(Xe)),Ri):(re.assert(Ti.kind===285),Xc=Ti);if(!Fn&&Xe&&ge()===30){const Fu=typeof $t>"u"?Xc.pos:$t,cu=Bl(()=>kI(!0,Fu));if(cu){const Ml=Pm(28,!1);return f3(Ml,cu.pos,0),ze(Ff(Kt,Fu),cu.end,N.JSX_expressions_must_have_one_parent_element),Qi(k.createBinaryExpression(Xc,Ml,cu),Ri)}}return Xc}function JR(){const Xe=qe(),$t=k.createJsxText(n.getTokenValue(),Vr===13);return Vr=n.scanJsxToken(),Qi($t,Xe)}function PI(Xe,$t){switch($t){case 1:if(v6(Xe))Ce(Xe,N.JSX_fragment_has_no_corresponding_closing_tag);else{const bn=Xe.tagName,Fn=Math.min(Ff(Kt,bn.pos),bn.end);ze(Fn,bn.end,N.JSX_element_0_has_no_corresponding_closing_tag,h9(Kt,Xe.tagName))}return;case 31:case 7:return;case 12:case 13:return JR();case 19:return aO(!1);case 30:return kI(!1,void 0,Xe);default:return re.assertNever($t)}}function HP(Xe){const $t=[],bn=qe(),Fn=io;for(io|=16384;;){const Ri=PI(Xe,Vr=n.reScanJsxToken());if(!Ri||($t.push(Ri),Pb(Xe)&&(Ri==null?void 0:Ri.kind)===284&&!n4(Ri.openingElement.tagName,Ri.closingElement.tagName)&&n4(Xe.tagName,Ri.closingElement.tagName)))break}return io=Fn,Ka($t,bn)}function mD(){const Xe=qe();return Qi(k.createJsxAttributes(A_(13,yB)),Xe)}function NI(Xe){const $t=qe();if(xa(30),ge()===32)return bl(),Qi(k.createJsxOpeningFragment(),$t);const bn=sw(),Fn=os&524288?void 0:O4(),Ri=mD();let Ti;return ge()===32?(bl(),Ti=k.createJsxOpeningElement(bn,Fn,Ri)):(xa(44),xa(32,void 0,!1)&&(Xe?Nn():bl()),Ti=k.createJsxSelfClosingElement(bn,Fn,Ri)),Qi(Ti,$t)}function sw(){const Xe=qe(),$t=cw();if(Fm($t))return $t;let bn=$t;for(;pl(25);)bn=Qi(et(bn,vi(!0,!1,!1)),Xe);return bn}function cw(){const Xe=qe();hc();const $t=ge()===110,bn=fe();return pl(59)?(hc(),Qi(k.createJsxNamespacedName(bn,fe()),Xe)):$t?Qi(k.createToken(110),Xe):bn}function aO(Xe){const $t=qe();if(!xa(19))return;let bn,Fn;return ge()!==20&&(Xe||(bn=R_(26)),Fn=v_()),Xe?xa(20):xa(20,void 0,!1)&&bl(),Qi(k.createJsxExpression(bn,Fn),$t)}function yB(){if(ge()===19)return WA();const Xe=qe();return Qi(k.createJsxAttribute(Vo(),z6()),Xe)}function z6(){if(ge()===64){if(Tc()===11)return wi();if(ge()===19)return aO(!0);if(ge()===30)return kI(!0);Ao(N.or_JSX_element_expected)}}function Vo(){const Xe=qe();hc();const $t=fe();return pl(59)?(hc(),Qi(k.createJsxNamespacedName($t,fe()),Xe)):$t}function WA(){const Xe=qe();xa(19),xa(26);const $t=v_();return xa(20),Qi(k.createJsxSpreadAttribute($t),Xe)}function gD(Xe,$t){const bn=qe();xa(31);const Fn=sw();return xa(32,void 0,!1)&&($t||!n4(Xe.tagName,Fn)?Nn():bl()),Qi(k.createJsxClosingElement(Fn),bn)}function UT(Xe){const $t=qe();return xa(31),xa(32,N.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Xe?Nn():bl()),Qi(k.createJsxJsxClosingFragment(),$t)}function wI(){re.assert(jt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const Xe=qe();xa(30);const $t=_c();xa(32);const bn=Nh();return Qi(k.createTypeAssertion($t,bn),Xe)}function k4(){return Nn(),CT(ge())||ge()===23||ko()}function P4(){return ge()===29&&ma(k4)}function G6(Xe){if(Xe.flags&64)return!0;if(E3(Xe)){let $t=Xe.expression;for(;E3($t)&&!($t.flags&64);)$t=$t.expression;if($t.flags&64){for(;E3(Xe);)Xe.flags|=64,Xe=Xe.expression;return!0}}return!1}function rs(Xe,$t,bn){const Fn=vi(!0,!0,!0),Ri=bn||G6($t),Ti=Ri?Pe($t,bn,Fn):et($t,Fn);if(Ri&&Lu(Ti.name)&&Ce(Ti.name,N.An_optional_chain_cannot_contain_private_identifiers),cC($t)&&$t.typeArguments){const Xc=$t.typeArguments.pos-1,Fu=Ff(Kt,$t.typeArguments.end)+1;ze(Xc,Fu,N.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Qi(Ti,Xe)}function Ob(Xe,$t,bn){let Fn;if(ge()===24)Fn=Pm(80,!0,N.An_element_access_expression_should_take_an_argument);else{const Ti=He(v_);Ox(Ti)&&(Ti.text=Ag(Ti.text)),Fn=Ti}xa(24);const Ri=bn||G6($t)?Ie($t,bn,Fn):dt($t,Fn);return Qi(Ri,Xe)}function gf(Xe,$t,bn){for(;;){let Fn,Ri=!1;if(bn&&P4()?(Fn=km(29),Ri=CT(ge())):Ri=pl(25),Ri){$t=rs(Xe,$t,Fn);continue}if((Fn||!yi())&&pl(23)){$t=Ob(Xe,$t,Fn);continue}if(ko()){$t=!Fn&&$t.kind===233?ac(Xe,$t.expression,Fn,$t.typeArguments):ac(Xe,$t,Fn,void 0);continue}if(!Fn){if(ge()===54&&!n.hasPrecedingLineBreak()){Nn(),$t=Qi(k.createNonNullExpression($t),Xe);continue}const Ti=Bl(Nl);if(Ti){$t=Qi(k.createExpressionWithTypeArguments($t,Ti),Xe);continue}}return $t}}function ko(){return ge()===15||ge()===16}function ac(Xe,$t,bn,Fn){const Ri=k.createTaggedTemplateExpression($t,Fn,ge()===15?(Ts(!0),wi()):Ee(!0));return(bn||$t.flags&64)&&(Ri.flags|=64),Ri.questionDotToken=bn,Qi(Ri,Xe)}function Ys(Xe,$t){for(;;){$t=gf(Xe,$t,!0);let bn;const Fn=R_(29);if(Fn&&(bn=Bl(Nl),ko())){$t=ac(Xe,$t,Fn,bn);continue}if(bn||ge()===21){!Fn&&$t.kind===233&&(bn=$t.typeArguments,$t=$t.expression);const Ri=Ni(),Ti=Fn||G6($t)?Ct($t,Fn,bn,Ri):ct($t,bn,Ri);$t=Qi(Ti,Xe);continue}if(Fn){const Ri=Pm(80,!1,N.Identifier_expected);$t=Qi(Pe($t,Fn,Ri),Xe)}break}return $t}function Ni(){xa(21);const Xe=xv(11,SE);return xa(22),Xe}function Nl(){if(os&524288||Cc()!==30)return;Nn();const Xe=xv(20,_c);if(vo()===32)return Nn(),Xe&&Xd()?Xe:void 0}function Xd(){switch(ge()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return n.hasPrecedingLineBreak()||U()||!Rp()}function b_(){switch(ge()){case 15:n.getTokenFlags()&26656&&Ts(!1);case 9:case 10:case 11:return wi();case 110:case 108:case 106:case 112:case 97:return oy();case 21:return Gp();case 23:return R1();case 19:return RI();case 134:if(!ma(Qg))break;return Uy();case 60:return pO();case 86:return Xq();case 100:return Uy();case 105:return N4();case 44:case 69:if(Ro()===14)return wi();break;case 16:return Ee(!1);case 81:return xs()}return Nm(N.Expression_expected)}function Gp(){const Xe=qe(),$t=Mt();xa(21);const bn=He(v_);return xa(22),Ia(Qi(Ze(bn),Xe),$t)}function w1(){const Xe=qe();xa(26);const $t=fm(!0);return Qi(k.createSpreadElement($t),Xe)}function zS(){return ge()===26?w1():ge()===28?Qi(k.createOmittedExpression(),qe()):fm(!0)}function SE(){return w_(i,zS)}function R1(){const Xe=qe(),$t=n.getTokenStart(),bn=xa(23),Fn=n.hasPrecedingLineBreak(),Ri=xv(15,zS);return Og(23,24,bn,$t),Qi(we(Ri,Fn),Xe)}function JP(){const Xe=qe(),$t=Mt();if(R_(26)){const Zu=fm(!0);return Ia(Qi(k.createSpreadAssignment(Zu),Xe),$t)}const bn=c0(!0);if(Fs(139))return TC(Xe,$t,bn,177,0);if(Fs(153))return TC(Xe,$t,bn,178,0);const Fn=R_(42),Ri=u_(),Ti=$o(),Xc=R_(58),Fu=R_(54);if(Fn||ge()===21||ge()===30)return eA(Xe,$t,bn,Fn,Ti,Xc,Fu);let cu;if(Ri&&ge()!==59){const Zu=R_(64),hg=Zu?He(()=>fm(!0)):void 0;cu=k.createShorthandPropertyAssignment(Ti,hg),cu.equalsToken=Zu}else{xa(59);const Zu=He(()=>fm(!0));cu=k.createPropertyAssignment(Ti,Zu)}return cu.modifiers=bn,cu.questionToken=Xc,cu.exclamationToken=Fu,Ia(Qi(cu,Xe),$t)}function RI(){const Xe=qe(),$t=n.getTokenStart(),bn=xa(19),Fn=n.hasPrecedingLineBreak(),Ri=xv(12,JP,!0);return Og(19,20,bn,$t),Qi(Fe(Ri,Fn),Xe)}function Uy(){const Xe=yi();Cu(!1);const $t=qe(),bn=Mt(),Fn=c0(!1);xa(100);const Ri=R_(42),Ti=Ri?1:0,Xc=gt(Fn,NJ)?2:0,Fu=Ti&&Xc?$r(Lk):Ti?Pr(Lk):Xc?ln(Lk):Lk(),cu=fn(),Ml=Xs(Ti|Xc),Zu=ca(59,!1),hg=j6(Ti|Xc);Cu(Xe);const T_=k.createFunctionExpression(Fn,Ri,Fu,cu,Ml,Zu,hg);return Ia(Qi(T_,$t),bn)}function Lk(){return G_()?x0():void 0}function N4(){const Xe=qe();if(xa(105),pl(25)){const Ti=Md();return Qi(k.createMetaProperty(105,Ti),Xe)}const $t=qe();let bn=gf($t,b_(),!1),Fn;bn.kind===233&&(Fn=bn.typeArguments,bn=bn.expression),ge()===29&&Ao(N.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,h9(Kt,bn));const Ri=ge()===21?Ni():void 0;return Qi(Lt(bn,Fn,Ri),Xe)}function lw(Xe,$t){const bn=qe(),Fn=Mt(),Ri=n.getTokenStart(),Ti=xa(19,$t);if(Ti||Xe){const Xc=n.hasPrecedingLineBreak(),Fu=A_(1,Zx);Og(19,20,Ti,Ri);const cu=Ia(Qi(Ke(Fu,Xc),bn),Fn);return ge()===64&&(Ao(N.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),Nn()),cu}else{const Xc=q0();return Ia(Qi(Ke(Xc,void 0),bn),Fn)}}function j6(Xe,$t){const bn=Ei();Qu(!!(Xe&1));const Fn=go();yf(!!(Xe&2));const Ri=Mo;Mo=!1;const Ti=yi();Ti&&Cu(!1);const Xc=lw(!!(Xe&16),$t);return Ti&&Cu(!0),Mo=Ri,Qu(bn),yf(Fn),Xc}function sO(){const Xe=qe(),$t=Mt();return xa(27),Ia(Qi(k.createEmptyStatement(),Xe),$t)}function Ok(){const Xe=qe(),$t=Mt();xa(101);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Zx(),Xc=pl(93)?Zx():void 0;return Ia(Qi(Yt(Ri,Ti,Xc),Xe),$t)}function vB(){const Xe=qe(),$t=Mt();xa(92);const bn=Zx();xa(117);const Fn=n.getTokenStart(),Ri=xa(21),Ti=He(v_);return Og(21,22,Ri,Fn),pl(27),Ia(Qi(k.createDoStatement(bn,Ti),Xe),$t)}function Rm(){const Xe=qe(),$t=Mt();xa(117);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Zx();return Ia(Qi(Et(Ri,Ti),Xe),$t)}function Yx(){const Xe=qe(),$t=Mt();xa(99);const bn=R_(135);xa(21);let Fn;ge()!==27&&(ge()===115||ge()===121||ge()===87||ge()===160&&ma(qR)||ge()===135&&ma(TB)?Fn=fO(!0):Fn=Hn(v_));let Ri;if(bn?xa(165):pl(165)){const Ti=He(()=>fm(!0));xa(22),Ri=Qt(bn,Fn,Ti,Zx())}else if(pl(103)){const Ti=He(v_);xa(22),Ri=k.createForInStatement(Fn,Ti,Zx())}else{xa(27);const Ti=ge()!==27&&ge()!==22?He(v_):void 0;xa(27);const Xc=ge()!==22?He(v_):void 0;xa(22),Ri=at(Fn,Ti,Xc,Zx())}return Ia(Qi(Ri,Xe),$t)}function uw(Xe){const $t=qe(),bn=Mt();xa(Xe===252?83:88);const Fn=hh()?void 0:Nm();d_();const Ri=Xe===252?k.createBreakStatement(Fn):k.createContinueStatement(Fn);return Ia(Qi(Ri,$t),bn)}function Av(){const Xe=qe(),$t=Mt();xa(107);const bn=hh()?void 0:He(v_);return d_(),Ia(Qi(k.createReturnStatement(bn),Xe),$t)}function C0(){const Xe=qe(),$t=Mt();xa(118);const bn=n.getTokenStart(),Fn=xa(21),Ri=He(v_);Og(21,22,Fn,bn);const Ti=Eu(67108864,Zx);return Ia(Qi(k.createWithStatement(Ri,Ti),Xe),$t)}function mV(){const Xe=qe(),$t=Mt();xa(84);const bn=He(v_);xa(59);const Fn=A_(3,Zx);return Ia(Qi(k.createCaseClause(bn,Fn),Xe),$t)}function pT(){const Xe=qe();xa(90),xa(59);const $t=A_(3,Zx);return Qi(k.createDefaultClause($t),Xe)}function EE(){return ge()===84?mV():pT()}function cO(){const Xe=qe();xa(19);const $t=A_(2,EE);return xa(20),Qi(k.createCaseBlock($t),Xe)}function Qx(){const Xe=qe(),$t=Mt();xa(109),xa(21);const bn=He(v_);xa(22);const Fn=cO();return Ia(Qi(k.createSwitchStatement(bn,Fn),Xe),$t)}function V6(){const Xe=qe(),$t=Mt();xa(111);let bn=n.hasPrecedingLineBreak()?void 0:He(v_);return bn===void 0&&(Ki++,bn=Qi(ie(""),qe())),qo()||mf(bn),Ia(Qi(k.createThrowStatement(bn),Xe),$t)}function fw(){const Xe=qe(),$t=Mt();xa(113);const bn=lw(!1),Fn=ge()===85?s0():void 0;let Ri;return(!Fn||ge()===98)&&(xa(98,N.catch_or_finally_expected),Ri=lw(!1)),Ia(Qi(k.createTryStatement(bn,Fn,Ri),Xe),$t)}function s0(){const Xe=qe();xa(85);let $t;pl(21)?($t=xE(),xa(22)):$t=void 0;const bn=lw(!1);return Qi(k.createCatchClause($t,bn),Xe)}function U6(){const Xe=qe(),$t=Mt();return xa(89),d_(),Ia(Qi(k.createDebuggerStatement(),Xe),$t)}function GS(){const Xe=qe();let $t=Mt(),bn;const Fn=ge()===21,Ri=He(v_);return xn(Ri)&&pl(59)?bn=k.createLabeledStatement(Ri,Zx()):(qo()||mf(Ri),bn=It(Ri),Fn&&($t=!1)),Ia(Qi(bn,Xe),$t)}function w4(){return Nn(),CT(ge())&&!n.hasPrecedingLineBreak()}function Kq(){return Nn(),ge()===86&&!n.hasPrecedingLineBreak()}function Qg(){return Nn(),ge()===100&&!n.hasPrecedingLineBreak()}function bB(){return Nn(),(CT(ge())||ge()===9||ge()===10||ge()===11)&&!n.hasPrecedingLineBreak()}function BA(){for(;;)switch(ge()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return hS();case 135:return R4();case 120:case 156:return BS();case 144:case 145:return SB();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const Xe=ge();if(Nn(),n.hasPrecedingLineBreak())return!1;if(Xe===138&&ge()===156)return!0;continue;case 162:return Nn(),ge()===19||ge()===80||ge()===95;case 102:return Nn(),ge()===11||ge()===42||ge()===19||CT(ge());case 95:let $t=Nn();if($t===156&&($t=ma(Nn)),$t===64||$t===42||$t===19||$t===90||$t===130||$t===60)return!0;continue;case 126:Nn();continue;default:return!1}}function $R(){return ma(BA)}function M1(){switch(ge()){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 $R()||ma(ju);case 87:case 95:return $R();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 $R()||!ma(w4);default:return Rp()}}function gS(){return Nn(),G_()||ge()===19||ge()===23}function _w(){return ma(gS)}function qR(){return i2(!0)}function i2(Xe){return Nn(),Xe&&ge()===165?!1:(G_()||ge()===19)&&!n.hasPrecedingLineBreak()}function hS(){return ma(i2)}function TB(Xe){return Nn()===160?i2(Xe):!1}function R4(){return ma(TB)}function Zx(){switch(ge()){case 27:return sO();case 19:return lw(!1);case 115:return _O(qe(),Mt(),void 0);case 121:if(_w())return _O(qe(),Mt(),void 0);break;case 135:if(R4())return _O(qe(),Mt(),void 0);break;case 160:if(hS())return _O(qe(),Mt(),void 0);break;case 100:return $F(qe(),Mt(),void 0);case 86:return by(qe(),Mt(),void 0);case 101:return Ok();case 92:return vB();case 117:return Rm();case 99:return Yx();case 88:return uw(251);case 83:return uw(252);case 107:return Av();case 118:return C0();case 109:return Qx();case 111:return V6();case 113:case 85:case 98:return fw();case 89:return U6();case 60:return H6();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($R())return H6();break}return GS()}function lO(Xe){return Xe.kind===138}function H6(){const Xe=qe(),$t=Mt(),bn=c0(!0);if(gt(bn,lO)){const Ri=gV(Xe);if(Ri)return Ri;for(const Ti of bn)Ti.flags|=33554432;return Eu(33554432,()=>hV(Xe,$t,bn))}else return hV(Xe,$t,bn)}function gV(Xe){return Eu(33554432,()=>{const $t=Dg(io,Xe);if($t)return um($t)})}function hV(Xe,$t,bn){switch(ge()){case 115:case 121:case 87:case 160:case 135:return _O(Xe,$t,bn);case 100:return $F(Xe,$t,bn);case 86:return by(Xe,$t,bn);case 120:return Er(Xe,$t,bn);case 156:return Wi(Xe,$t,bn);case 94:return Vu(Xe,$t,bn);case 162:case 144:case 145:return CE(Xe,$t,bn);case 102:return MI(Xe,$t,bn);case 95:switch(Nn(),ge()){case 90:case 64:return F0e(Xe,$t,bn);case 130:return DE(Xe,$t,bn);default:return HT(Xe,$t,bn)}default:if(bn){const Fn=Pm(282,!0,N.Declaration_expected);return u3(Fn,Xe),Fn.modifiers=bn,Fn}return}}function JF(){return Nn()===11}function SB(){return Nn(),!n.hasPrecedingLineBreak()&&(u_()||ge()===11)}function uO(Xe,$t){if(ge()!==19){if(Xe&4){Vs();return}if(hh()){d_();return}}return j6(Xe,$t)}function L2(){const Xe=qe();if(ge()===28)return Qi(k.createOmittedExpression(),Xe);const $t=R_(26),bn=sc(),Fn=yh();return Qi(k.createBindingElement($t,void 0,bn,Fn),Xe)}function dw(){const Xe=qe(),$t=R_(26),bn=G_();let Fn=$o(),Ri;bn&&ge()!==59?(Ri=Fn,Fn=void 0):(xa(59),Ri=sc());const Ti=yh();return Qi(k.createBindingElement($t,Fn,Ri,Ti),Xe)}function EB(){const Xe=qe();xa(19);const $t=He(()=>xv(9,dw));return xa(20),Qi(k.createObjectBindingPattern($t),Xe)}function yV(){const Xe=qe();xa(23);const $t=He(()=>xv(10,L2));return xa(24),Qi(k.createArrayBindingPattern($t),Xe)}function jp(){return ge()===19||ge()===23||ge()===81||G_()}function sc(Xe){return ge()===23?yV():ge()===19?EB():x0(Xe)}function hx(){return xE(!0)}function xE(Xe){const $t=qe(),bn=Mt(),Fn=sc(N.Private_identifiers_are_not_allowed_in_variable_declarations);let Ri;Xe&&Fn.kind===80&&ge()===54&&!n.hasPrecedingLineBreak()&&(Ri=oy());const Ti=Sl(),Xc=w2(ge())?void 0:yh(),Fu=nn(Fn,Ri,Ti,Xc);return Ia(Qi(Fu,$t),bn)}function fO(Xe){const $t=qe();let bn=0;switch(ge()){case 115:break;case 121:bn|=1;break;case 87:bn|=2;break;case 160:bn|=4;break;case 135:re.assert(R4()),bn|=6,Nn();break;default:re.fail()}Nn();let Fn;if(ge()===165&&ma(vV))Fn=q0();else{const Ri=Ln();Au(Xe),Fn=xv(8,Xe?xE:hx),Au(Ri)}return Qi(Rn(Fn,bn),$t)}function vV(){return wp()&&Nn()===22}function _O(Xe,$t,bn){const Fn=fO(!1);d_();const Ri=st(bn,Fn);return Ia(Qi(Ri,Xe),$t)}function $F(Xe,$t,bn){const Fn=go(),Ri=aI(bn);xa(100);const Ti=R_(42),Xc=Ri&2048?Lk():x0(),Fu=Ti?1:0,cu=Ri&1024?2:0,Ml=fn();Ri&32&&yf(!0);const Zu=Xs(Fu|cu),hg=ca(59,!1),T_=uO(Fu|cu,N.or_expected);yf(Fn);const Cd=k.createFunctionDeclaration(bn,Ti,Xc,Ml,Zu,hg,T_);return Ia(Qi(Cd,Xe),$t)}function M4(){if(ge()===137)return xa(137);if(ge()===11&&ma(Nn)===21)return Bl(()=>{const Xe=wi();return Xe.text==="constructor"?Xe:void 0})}function AE(Xe,$t,bn){return Bl(()=>{if(M4()){const Fn=fn(),Ri=Xs(0),Ti=ca(59,!1),Xc=uO(0,N.or_expected),Fu=k.createConstructorDeclaration(bn,Ri,Xc);return Fu.typeParameters=Fn,Fu.type=Ti,Ia(Qi(Fu,Xe),$t)}})}function eA(Xe,$t,bn,Fn,Ri,Ti,Xc,Fu){const cu=Fn?1:0,Ml=gt(bn,NJ)?2:0,Zu=fn(),hg=Xs(cu|Ml),T_=ca(59,!1),Cd=uO(cu|Ml,Fu),pb=k.createMethodDeclaration(bn,Fn,Ri,Ti,Zu,hg,T_,Cd);return pb.exclamationToken=Xc,Ia(Qi(pb,Xe),$t)}function KR(Xe,$t,bn,Fn,Ri){const Ti=!Ri&&!n.hasPrecedingLineBreak()?R_(54):void 0,Xc=Sl(),Fu=w_(90112,yh);xg(Fn,Xc,Fu);const cu=k.createPropertyDeclaration(bn,Fn,Ri||Ti,Xc,Fu);return Ia(Qi(cu,Xe),$t)}function hD(Xe,$t,bn){const Fn=R_(42),Ri=$o(),Ti=R_(58);return Fn||ge()===21||ge()===30?eA(Xe,$t,bn,Fn,Ri,Ti,void 0,N.or_expected):KR(Xe,$t,bn,Ri,Ti)}function TC(Xe,$t,bn,Fn,Ri){const Ti=$o(),Xc=fn(),Fu=Xs(0),cu=ca(59,!1),Ml=uO(Ri),Zu=Fn===177?k.createGetAccessorDeclaration(bn,Ti,Fu,cu,Ml):k.createSetAccessorDeclaration(bn,Ti,Fu,Ml);return Zu.typeParameters=Xc,Xb(Zu)&&(Zu.type=cu),Ia(Qi(Zu,Xe),$t)}function L1(){let Xe;if(ge()===60)return!0;for(;Om(ge());){if(Xe=ge(),jU(Xe))return!0;Nn()}if(ge()===42||(_n()&&(Xe=ge(),Nn()),ge()===23))return!0;if(Xe!==void 0){if(!qb(Xe)||Xe===153||Xe===139)return!0;switch(ge()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return hh()}}return!1}function mT(Xe,$t,bn){km(126);const Fn=Vg(),Ri=Ia(Qi(k.createClassStaticBlockDeclaration(Fn),Xe),$t);return Ri.modifiers=bn,Ri}function Vg(){const Xe=Ei(),$t=go();Qu(!1),yf(!0);const bn=lw(!1);return Qu(Xe),yf($t),bn}function SC(){if(go()&&ge()===135){const Xe=qe(),$t=Nm(N.Expression_expected);Nn();const bn=gf(Xe,$t,!0);return Ys(Xe,bn)}return Mk()}function tA(){const Xe=qe();if(!pl(60))return;const $t=Bt(SC);return Qi(k.createDecorator($t),Xe)}function L4(Xe,$t,bn){const Fn=qe(),Ri=ge();if(ge()===87&&$t){if(!Bl(Tl))return}else{if(bn&&ge()===126&&ma(Fk))return;if(Xe&&ge()===126)return;if(!ah())return}return Qi(ve(Ri),Fn)}function c0(Xe,$t,bn){const Fn=qe();let Ri,Ti,Xc,Fu=!1,cu=!1,Ml=!1;if(Xe&&ge()===60)for(;Ti=tA();)Ri=ur(Ri,Ti);for(;Xc=L4(Fu,$t,bn);)Xc.kind===126&&(Fu=!0),Ri=ur(Ri,Xc),cu=!0;if(cu&&Xe&&ge()===60)for(;Ti=tA();)Ri=ur(Ri,Ti),Ml=!0;if(Ml)for(;Xc=L4(Fu,$t,bn);)Xc.kind===126&&(Fu=!0),Ri=ur(Ri,Xc);return Ri&&Ka(Ri,Fn)}function jS(){let Xe;if(ge()===134){const $t=qe();Nn();const bn=Qi(ve(134),$t);Xe=Ka([bn],$t)}return Xe}function dO(){const Xe=qe(),$t=Mt();if(ge()===27)return Nn(),Ia(Qi(k.createSemicolonClassElement(),Xe),$t);const bn=c0(!0,!0,!0);if(ge()===126&&ma(Fk))return mT(Xe,$t,bn);if(Fs(139))return TC(Xe,$t,bn,177,0);if(Fs(153))return TC(Xe,$t,bn,178,0);if(ge()===137||ge()===11){const Fn=AE(Xe,$t,bn);if(Fn)return Fn}if(Yp())return ft(Xe,$t,bn);if(CT(ge())||ge()===11||ge()===9||ge()===42||ge()===23)if(gt(bn,lO)){for(const Ri of bn)Ri.flags|=33554432;return Eu(33554432,()=>hD(Xe,$t,bn))}else return hD(Xe,$t,bn);if(bn){const Fn=Pm(80,!0,N.Declaration_expected);return KR(Xe,$t,bn,Fn,void 0)}return re.fail("Should not have attempted to parse class member declaration.")}function pO(){const Xe=qe(),$t=Mt(),bn=c0(!0);if(ge()===86)return sy(Xe,$t,bn,231);const Fn=Pm(282,!0,N.Expression_expected);return u3(Fn,Xe),Fn.modifiers=bn,Fn}function Xq(){return sy(qe(),Mt(),void 0,231)}function by(Xe,$t,bn){return sy(Xe,$t,bn,263)}function sy(Xe,$t,bn,Fn){const Ri=go();xa(86);const Ti=K0(),Xc=fn();gt(bn,_W)&&yf(!0);const Fu=o2();let cu;xa(19)?(cu=yt(),xa(20)):cu=q0(),yf(Ri);const Ml=Fn===263?k.createClassDeclaration(bn,Ti,Xc,Fu,cu):k.createClassExpression(bn,Ti,Xc,Fu,cu);return Ia(Qi(Ml,Xe),$t)}function K0(){return G_()&&!O2()?va(G_()):void 0}function O2(){return ge()===119&&ma(Xp)}function o2(){if(ne())return A_(22,pw)}function pw(){const Xe=qe(),$t=ge();re.assert($t===96||$t===119),Nn();const bn=xv(7,Vp);return Qi(k.createHeritageClause($t,bn),Xe)}function Vp(){const Xe=qe(),$t=Mk();if($t.kind===233)return $t;const bn=O4();return Qi(k.createExpressionWithTypeArguments($t,bn),Xe)}function O4(){return ge()===30?i0(20,_c,30,32):void 0}function ne(){return ge()===96||ge()===119}function yt(){return A_(5,dO)}function Er(Xe,$t,bn){xa(120);const Fn=Nm(),Ri=fn(),Ti=o2(),Xc=Cl(),Fu=k.createInterfaceDeclaration(bn,Fn,Ri,Ti,Xc);return Ia(Qi(Fu,Xe),$t)}function Wi(Xe,$t,bn){xa(156),n.hasPrecedingLineBreak()&&Ao(N.Line_break_not_permitted_here);const Fn=Nm(),Ri=fn();xa(64);const Ti=ge()===141&&Bl(yC)||_c();d_();const Xc=k.createTypeAliasDeclaration(bn,Fn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}function nc(){const Xe=qe(),$t=Mt(),bn=$o(),Fn=He(yh);return Ia(Qi(k.createEnumMember(bn,Fn),Xe),$t)}function Vu(Xe,$t,bn){xa(94);const Fn=Nm();let Ri;xa(19)?(Ri=Ge(()=>xv(6,nc)),xa(20)):Ri=q0();const Ti=k.createEnumDeclaration(bn,Fn,Ri);return Ia(Qi(Ti,Xe),$t)}function ql(){const Xe=qe();let $t;return xa(19)?($t=A_(1,Zx),xa(20)):$t=q0(),Qi(k.createModuleBlock($t),Xe)}function Pf(Xe,$t,bn,Fn){const Ri=Fn&32,Ti=Fn&8?Md():Nm(),Xc=pl(25)?Pf(qe(),!1,void 0,8|Ri):ql(),Fu=k.createModuleDeclaration(bn,Ti,Xc,Fn);return Ia(Qi(Fu,Xe),$t)}function Z_(Xe,$t,bn){let Fn=0,Ri;ge()===162?(Ri=Nm(),Fn|=2048):(Ri=wi(),Ri.text=Ag(Ri.text));let Ti;ge()===19?Ti=ql():d_();const Xc=k.createModuleDeclaration(bn,Ri,Ti,Fn);return Ia(Qi(Xc,Xe),$t)}function CE(Xe,$t,bn){let Fn=0;if(ge()===162)return Z_(Xe,$t,bn);if(pl(145))Fn|=32;else if(xa(144),ge()===11)return Z_(Xe,$t,bn);return Pf(Xe,$t,bn,Fn)}function a2(){return ge()===149&&ma(ru)}function ru(){return Nn()===21}function Fk(){return Nn()===19}function Co(){return Nn()===44}function DE(Xe,$t,bn){xa(130),xa(145);const Fn=Nm();d_();const Ri=k.createNamespaceExportDeclaration(Fn);return Ri.modifiers=bn,Ia(Qi(Ri,Xe),$t)}function MI(Xe,$t,bn){xa(102);const Fn=n.getTokenFullStart();let Ri;u_()&&(Ri=Nm());let Ti=!1;if(ge()!==161&&(Ri==null?void 0:Ri.escapedText)==="type"&&(u_()||qF())&&(Ti=!0,Ri=u_()?Nm():void 0),Ri&&!LI())return $P(Xe,$t,bn,Ri,Ti);let Xc;(Ri||ge()===42||ge()===19)&&(Xc=XR(Ri,Fn,Ti),xa(161));const Fu=KF(),cu=ge();let Ml;(cu===118||cu===132)&&!n.hasPrecedingLineBreak()&&(Ml=gO(cu)),d_();const Zu=k.createImportDeclaration(bn,Xc,Fu,Ml);return Ia(Qi(Zu,Xe),$t)}function mO(){const Xe=qe(),$t=CT(ge())?Md():Fg(11);xa(59);const bn=fm(!0);return Qi(k.createImportAttribute($t,bn),Xe)}function gO(Xe,$t){const bn=qe();$t||xa(Xe);const Fn=n.getTokenStart();if(xa(19)){const Ri=n.hasPrecedingLineBreak(),Ti=xv(24,mO,!0);if(!xa(20)){const Xc=Yf(En);Xc&&Xc.code===N._0_expected.code&&ml(Xc,s6(cn,Kt,Fn,1,N.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Qi(k.createImportAttributes(Ti,Ri,Xe),bn)}else{const Ri=Ka([],qe(),void 0,!1);return Qi(k.createImportAttributes(Ri,!1,Xe),bn)}}function qF(){return ge()===42||ge()===19}function LI(){return ge()===28||ge()===161}function $P(Xe,$t,bn,Fn,Ri){xa(64);const Ti=mw();d_();const Xc=k.createImportEqualsDeclaration(bn,Ri,Fn,Ti);return Ia(Qi(Xc,Xe),$t)}function XR(Xe,$t,bn){let Fn;return(!Xe||pl(28))&&(Fn=ge()===42?O1():F4(275)),Qi(k.createImportClause(bn,Xe,Fn),$t)}function mw(){return a2()?Yq():nt(!1)}function Yq(){const Xe=qe();xa(149),xa(21);const $t=KF();return xa(22),Qi(k.createExternalModuleReference($t),Xe)}function KF(){if(ge()===11){const Xe=wi();return Xe.text=Ag(Xe.text),Xe}else return v_()}function O1(){const Xe=qe();xa(42),xa(130);const $t=Nm();return Qi(k.createNamespaceImport($t),Xe)}function F4(Xe){const $t=qe(),bn=Xe===275?k.createNamedImports(i0(23,gw,19,20)):k.createNamedExports(i0(23,Wk,19,20));return Qi(bn,$t)}function Wk(){const Xe=Mt();return Ia(Qq(281),Xe)}function gw(){return Qq(276)}function Qq(Xe){const $t=qe();let bn=qb(ge())&&!u_(),Fn=n.getTokenStart(),Ri=n.getTokenEnd(),Ti=!1,Xc,Fu=!0,cu=Md();if(cu.escapedText==="type")if(ge()===130){const hg=Md();if(ge()===130){const T_=Md();CT(ge())?(Ti=!0,Xc=hg,cu=Zu(),Fu=!1):(Xc=cu,cu=T_,Fu=!1)}else CT(ge())?(Xc=cu,Fu=!1,cu=Zu()):(Ti=!0,cu=hg)}else CT(ge())&&(Ti=!0,cu=Zu());Fu&&ge()===130&&(Xc=cu,xa(130),cu=Zu()),Xe===276&&bn&&ze(Fn,Ri,N.Identifier_expected);const Ml=Xe===276?k.createImportSpecifier(Ti,Xc,cu):k.createExportSpecifier(Ti,Xc,cu);return Qi(Ml,$t);function Zu(){return bn=qb(ge())&&!u_(),Fn=n.getTokenStart(),Ri=n.getTokenEnd(),Md()}}function OI(Xe){return Qi(k.createNamespaceExport(Md()),Xe)}function HT(Xe,$t,bn){const Fn=go();yf(!0);let Ri,Ti,Xc;const Fu=pl(156),cu=qe();pl(42)?(pl(130)&&(Ri=OI(cu)),xa(161),Ti=KF()):(Ri=F4(279),(ge()===161||ge()===11&&!n.hasPrecedingLineBreak())&&(xa(161),Ti=KF()));const Ml=ge();Ti&&(Ml===118||Ml===132)&&!n.hasPrecedingLineBreak()&&(Xc=gO(Ml)),d_(),yf(Fn);const Zu=k.createExportDeclaration(bn,Fu,Ri,Ti,Xc);return Ia(Qi(Zu,Xe),$t)}function F0e(Xe,$t,bn){const Fn=go();yf(!0);let Ri;pl(64)?Ri=!0:xa(90);const Ti=fm(!0);d_(),yf(Fn);const Xc=k.createExportAssignment(bn,Ri,Ti);return Ia(Qi(Xc,Xe),$t)}let Bk;(Xe=>{Xe[Xe.SourceElements=0]="SourceElements",Xe[Xe.BlockStatements=1]="BlockStatements",Xe[Xe.SwitchClauses=2]="SwitchClauses",Xe[Xe.SwitchClauseStatements=3]="SwitchClauseStatements",Xe[Xe.TypeMembers=4]="TypeMembers",Xe[Xe.ClassMembers=5]="ClassMembers",Xe[Xe.EnumMembers=6]="EnumMembers",Xe[Xe.HeritageClauseElement=7]="HeritageClauseElement",Xe[Xe.VariableDeclarations=8]="VariableDeclarations",Xe[Xe.ObjectBindingElements=9]="ObjectBindingElements",Xe[Xe.ArrayBindingElements=10]="ArrayBindingElements",Xe[Xe.ArgumentExpressions=11]="ArgumentExpressions",Xe[Xe.ObjectLiteralMembers=12]="ObjectLiteralMembers",Xe[Xe.JsxAttributes=13]="JsxAttributes",Xe[Xe.JsxChildren=14]="JsxChildren",Xe[Xe.ArrayLiteralMembers=15]="ArrayLiteralMembers",Xe[Xe.Parameters=16]="Parameters",Xe[Xe.JSDocParameters=17]="JSDocParameters",Xe[Xe.RestProperties=18]="RestProperties",Xe[Xe.TypeParameters=19]="TypeParameters",Xe[Xe.TypeArguments=20]="TypeArguments",Xe[Xe.TupleElementTypes=21]="TupleElementTypes",Xe[Xe.HeritageClauses=22]="HeritageClauses",Xe[Xe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Xe[Xe.ImportAttributes=24]="ImportAttributes",Xe[Xe.JSDocComment=25]="JSDocComment",Xe[Xe.Count=26]="Count"})(Bk||(Bk={}));let XF;(Xe=>{Xe[Xe.False=0]="False",Xe[Xe.True=1]="True",Xe[Xe.Unknown=2]="Unknown"})(XF||(XF={}));let ute;(Xe=>{function $t(Ml,Zu,hg){Jc("file.js",Ml,99,void 0,1,0),n.setText(Ml,Zu,hg),Vr=n.scan();const T_=bn(),Cd=_a("file.js",99,1,!1,[],ve(1),0,ku),pb=jN(En,Cd);return fr&&(Cd.jsDocDiagnostics=jN(fr,Cd)),au(),T_?{jsDocTypeExpression:T_,diagnostics:pb}:void 0}Xe.parseJSDocTypeExpressionForTests=$t;function bn(Ml){const Zu=qe(),hg=(Ml?pl:xa)(19),T_=Eu(16777216,Uv);(!Ml||hg)&&Wy(20);const Cd=k.createJSDocTypeExpression(T_);return na(Cd),Qi(Cd,Zu)}Xe.parseJSDocTypeExpression=bn;function Fn(){const Ml=qe(),Zu=pl(19),hg=qe();let T_=nt(!1);for(;ge()===81;)Pc(),Lr(),T_=Qi(k.createJSDocMemberName(T_,Nm()),hg);Zu&&Wy(20);const Cd=k.createJSDocNameReference(T_);return na(Cd),Qi(Cd,Ml)}Xe.parseJSDocNameReference=Fn;function Ri(Ml,Zu,hg){Jc("",Ml,99,void 0,1,0);const T_=Eu(16777216,()=>cu(Zu,hg)),pb=jN(En,{languageVariant:0,text:Ml});return au(),T_?{jsDoc:T_,diagnostics:pb}:void 0}Xe.parseIsolatedJSDocComment=Ri;function Ti(Ml,Zu,hg){const T_=Vr,Cd=En.length,pb=$i,zA=Eu(16777216,()=>cu(Zu,hg));return kl(zA,Ml),os&524288&&(fr||(fr=[]),fr.push(...En)),Vr=T_,En.length=Cd,$i=pb,zA}Xe.parseJSDocComment=Ti;let Xc;(Ml=>{Ml[Ml.BeginningOfLine=0]="BeginningOfLine",Ml[Ml.SawAsterisk=1]="SawAsterisk",Ml[Ml.SavingComments=2]="SavingComments",Ml[Ml.SavingBackticks=3]="SavingBackticks"})(Xc||(Xc={}));let Fu;(Ml=>{Ml[Ml.Property=1]="Property",Ml[Ml.Parameter=2]="Parameter",Ml[Ml.CallbackParameter=4]="CallbackParameter"})(Fu||(Fu={}));function cu(Ml=0,Zu){const hg=Kt,T_=Zu===void 0?hg.length:Ml+Zu;if(Zu=T_-Ml,re.assert(Ml>=0),re.assert(Ml<=T_),re.assert(T_<=hg.length),!$Ee(hg,Ml))return;let Cd,pb,zA,qP,yx,mb=[];const KP=[],bV=io;io|=1<<25;const W4=n.scanRange(Ml+3,Zu-5,Zq);return io=bV,W4;function Zq(){let Fo=1,cl,Mc=Ml-(hg.lastIndexOf(` +`,Ml)+1)+4;function Du(kg){cl||(cl=Mc),mb.push(kg),Mc+=kg.length}for(Lr();yO(5););yO(4)&&(Fo=0,Mc=0);e:for(;;){switch(ge()){case 60:EC(mb),yx||(yx=qe()),F2(B4(Mc)),Fo=0,cl=void 0;break;case 4:mb.push(n.getTokenText()),Fo=0,Mc=0;break;case 42:const kg=n.getTokenText();Fo===1?(Fo=2,Du(kg)):(re.assert(Fo===0),Fo=1,Mc+=kg.length);break;case 5:re.assert(Fo!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const cv=n.getTokenText();cl!==void 0&&Mc+cv.length>cl&&mb.push(cv.slice(cl-Mc)),Mc+=cv.length;break;case 1:break e;case 82:Fo=2,Du(n.getTokenValue());break;case 19:Fo=2;const VA=n.getTokenFullStart(),vD=n.getTokenEnd()-1,l0=Up(vD);if(l0){qP||YF(mb),KP.push(Qi(k.createJSDocText(mb.join("")),qP??Ml,VA)),KP.push(l0),mb=[],qP=n.getTokenEnd();break}default:Fo=2,Du(n.getTokenText());break}Fo===2?qi(!1):Lr()}const Ru=mb.join("").trimEnd();KP.length&&Ru.length&&KP.push(Qi(k.createJSDocText(Ru),qP??Ml,yx)),KP.length&&Cd&&re.assertIsDefined(yx,"having parsed tags implies that the end of the comment span should be set");const _m=Cd&&Ka(Cd,pb,zA);return Qi(k.createJSDocComment(KP.length?Ka(KP,Ml,yx):Ru.length?Ru:void 0,_m),Ml,T_)}function YF(Fo){for(;Fo.length&&(Fo[0]===` +`||Fo[0]==="\r");)Fo.shift()}function EC(Fo){for(;Fo.length;){const cl=Fo[Fo.length-1].trimEnd();if(cl==="")Fo.pop();else if(cl.lengthcv&&(Du.push(yw.slice(cv-Fo)),kg=2),Fo+=yw.length;break;case 19:kg=2;const nK=n.getTokenFullStart(),EV=n.getTokenEnd()-1,ZF=Up(EV);ZF?(Ru.push(Qi(k.createJSDocText(Du.join("")),_m??Mc,nK)),Ru.push(ZF),Du=[],_m=n.getTokenEnd()):VA(n.getTokenText());break;case 62:kg===3?kg=2:kg=3,VA(n.getTokenText());break;case 82:kg!==3&&(kg=2),VA(n.getTokenValue());break;case 42:if(kg===0){kg=1,Fo+=1;break}default:kg!==3&&(kg=2),VA(n.getTokenText());break}kg===2||kg===3?vD=qi(kg===3):vD=Lr()}YF(Du);const l0=Du.join("").trimEnd();if(Ru.length)return l0.length&&Ru.push(Qi(k.createJSDocText(l0),_m??Mc)),Ka(Ru,Mc,n.getTokenEnd());if(l0.length)return l0}function Up(Fo){const cl=Bl(vh);if(!cl)return;Lr(),Cv();const Mc=qe();let Du=CT(ge())?nt(!0):void 0;if(Du)for(;ge()===81;)Pc(),Lr(),Du=Qi(k.createJSDocMemberName(Du,Nm()),Mc);const Ru=[];for(;ge()!==20&&ge()!==4&&ge()!==1;)Ru.push(n.getTokenText()),Lr();const _m=cl==="link"?k.createJSDocLink:cl==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Qi(_m(Du,Ru.join("")),Fo,n.getTokenEnd())}function vh(){if(YR(),ge()===19&&Lr()===60&&CT(Lr())){const Fo=n.getTokenValue();if(J6(Fo))return Fo}}function J6(Fo){return Fo==="link"||Fo==="linkcode"||Fo==="linkplain"}function xC(Fo,cl,Mc,Du){return Qi(k.createJSDocUnknownTag(cl,GA(Fo,qe(),Mc,Du)),Fo)}function F2(Fo){Fo&&(Cd?Cd.push(Fo):(Cd=[Fo],pb=Fo.pos),zA=Fo.end)}function XP(){return YR(),ge()===19?bn():void 0}function xB(){const Fo=yO(23);Fo&&Cv();const cl=yO(62),Mc=SV();return cl&&M_(62),Fo&&(Cv(),R_(64)&&v_(),xa(24)),{name:Mc,isBracketed:Fo}}function j(Fo){switch(Fo.kind){case 151:return!0;case 188:return j(Fo.elementType);default:return uE(Fo)&&xn(Fo.typeName)&&Fo.typeName.escapedText==="Object"&&!Fo.typeArguments}}function se(Fo,cl,Mc,Du){let Ru=XP(),_m=!Ru;YR();const{name:kg,isBracketed:cv}=xB(),VA=YR();_m&&!ma(vh)&&(Ru=XP());const vD=GA(Fo,qe(),Du,VA),l0=De(Ru,kg,Mc,Du);l0&&(Ru=l0,_m=!0);const yw=Mc===1?k.createJSDocPropertyTag(cl,kg,cv,Ru,_m,vD):k.createJSDocParameterTag(cl,kg,cv,Ru,_m,vD);return Qi(yw,Fo)}function De(Fo,cl,Mc,Du){if(Fo&&j(Fo.type)){const Ru=qe();let _m,kg;for(;_m=Bl(()=>La(Mc,Du,cl));)_m.kind===348||_m.kind===355?kg=ur(kg,_m):_m.kind===352&&Ce(_m.tagName,N.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(kg){const cv=Qi(k.createJSDocTypeLiteral(kg,Fo.type.kind===188),Ru);return Qi(k.createJSDocTypeExpression(cv),Ru)}}}function Tt(Fo,cl,Mc,Du){gt(Cd,ppe)&&ze(cl.pos,n.getTokenStart(),N._0_tag_already_specified,Ic(cl.escapedText));const Ru=XP();return Qi(k.createJSDocReturnTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function wn(Fo,cl,Mc,Du){gt(Cd,FG)&&ze(cl.pos,n.getTokenStart(),N._0_tag_already_specified,Ic(cl.escapedText));const Ru=bn(!0),_m=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocTypeTag(cl,Ru,_m),Fo)}function Vi(Fo,cl,Mc,Du){const _m=ge()===23||ma(()=>Lr()===60&&CT(Lr())&&J6(n.getTokenValue()))?void 0:Fn(),kg=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocSeeTag(cl,_m,kg),Fo)}function Us(Fo,cl,Mc,Du){const Ru=XP(),_m=GA(Fo,qe(),Mc,Du);return Qi(k.createJSDocThrowsTag(cl,Ru,_m),Fo)}function Hf(Fo,cl,Mc,Du){const Ru=qe(),_m=ng();let kg=n.getTokenFullStart();const cv=GA(Fo,kg,Mc,Du);cv||(kg=n.getTokenFullStart());const VA=typeof cv!="string"?Ka(Hi([Qi(_m,Ru,kg)],cv),Ru):_m.text+cv;return Qi(k.createJSDocAuthorTag(cl,VA),Fo)}function ng(){const Fo=[];let cl=!1,Mc=n.getToken();for(;Mc!==1&&Mc!==4;){if(Mc===30)cl=!0;else{if(Mc===60&&!cl)break;if(Mc===32&&cl){Fo.push(n.getTokenText()),n.resetTokenState(n.getTokenEnd());break}}Fo.push(n.getTokenText()),Mc=Lr()}return k.createJSDocText(Fo.join(""))}function VS(Fo,cl,Mc,Du){const Ru=hO();return Qi(k.createJSDocImplementsTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function z4(Fo,cl,Mc,Du){const Ru=hO();return Qi(k.createJSDocAugmentsTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function G4(Fo,cl,Mc,Du){const Ru=bn(!1),_m=Mc!==void 0&&Du!==void 0?GA(Fo,qe(),Mc,Du):void 0;return Qi(k.createJSDocSatisfiesTag(cl,Ru,_m),Fo)}function hO(){const Fo=pl(19),cl=qe(),Mc=lPe();n.setInJSDocType(!0);const Du=O4();n.setInJSDocType(!1);const Ru=k.createExpressionWithTypeArguments(Mc,Du),_m=Qi(Ru,cl);return Fo&&xa(20),_m}function lPe(){const Fo=qe();let cl=Tm();for(;pl(25);){const Mc=Tm();cl=Qi(et(cl,Mc),Fo)}return cl}function WI(Fo,cl,Mc,Du,Ru){return Qi(cl(Mc,GA(Fo,qe(),Du,Ru)),Fo)}function tK(Fo,cl,Mc,Du){const Ru=bn(!0);return Cv(),Qi(k.createJSDocThisTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function W0e(Fo,cl,Mc,Du){const Ru=bn(!0);return Cv(),Qi(k.createJSDocEnumTag(cl,Ru,GA(Fo,qe(),Mc,Du)),Fo)}function yD(Fo,cl,Mc,Du){let Ru=XP();YR();const _m=Due();Cv();let kg=eK(Mc),cv;if(!Ru||j(Ru.type)){let vD,l0,yw,nK=!1;for(;(vD=Bl(()=>QF(Mc)))&&vD.kind!==352;)if(nK=!0,vD.kind===351)if(l0){const EV=Ao(N.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);EV&&ml(EV,s6(cn,Kt,0,0,N.The_tag_was_first_specified_here));break}else l0=vD;else yw=ur(yw,vD);if(nK){const EV=Ru&&Ru.type.kind===188,ZF=k.createJSDocTypeLiteral(yw,EV);Ru=l0&&l0.typeExpression&&!j(l0.typeExpression.type)?l0.typeExpression:Qi(ZF,Fo),cv=Ru.end}}cv=cv||kg!==void 0?qe():(_m??Ru??cl).end,kg||(kg=GA(Fo,cv,Mc,Du));const VA=k.createJSDocTypedefTag(cl,Ru,_m,kg);return Qi(VA,Fo,cv)}function Due(Fo){const cl=n.getTokenStart();if(!CT(ge()))return;const Mc=Tm();if(pl(25)){const Du=Due(!0),Ru=k.createModuleDeclaration(void 0,Mc,Du,Fo?8:void 0);return Qi(Ru,cl)}return Fo&&(Mc.flags|=4096),Mc}function B0e(Fo){const cl=qe();let Mc,Du;for(;Mc=Bl(()=>La(4,Fo));){if(Mc.kind===352){Ce(Mc.tagName,N.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Du=ur(Du,Mc)}return Ka(Du||[],cl)}function fte(Fo,cl){const Mc=B0e(cl),Du=Bl(()=>{if(yO(60)){const Ru=B4(cl);if(Ru&&Ru.kind===349)return Ru}});return Qi(k.createJSDocSignature(void 0,Mc,Du),Fo)}function AB(Fo,cl,Mc,Du){const Ru=Due();Cv();let _m=eK(Mc);const kg=fte(Fo,Mc);_m||(_m=GA(Fo,qe(),Mc,Du));const cv=_m!==void 0?qe():kg.end;return Qi(k.createJSDocCallbackTag(cl,kg,Ru,_m),Fo,cv)}function z0e(Fo,cl,Mc,Du){Cv();let Ru=eK(Mc);const _m=fte(Fo,Mc);Ru||(Ru=GA(Fo,qe(),Mc,Du));const kg=Ru!==void 0?qe():_m.end;return Qi(k.createJSDocOverloadTag(cl,_m,Ru),Fo,kg)}function TV(Fo,cl){for(;!xn(Fo)||!xn(cl);)if(!xn(Fo)&&!xn(cl)&&Fo.right.escapedText===cl.right.escapedText)Fo=Fo.left,cl=cl.left;else return!1;return Fo.escapedText===cl.escapedText}function QF(Fo){return La(1,Fo)}function La(Fo,cl,Mc){let Du=!0,Ru=!1;for(;;)switch(Lr()){case 60:if(Du){const _m=AC(Fo,cl);return _m&&(_m.kind===348||_m.kind===355)&&Mc&&(xn(_m.name)||!TV(Mc,_m.name.left))?!1:_m}Ru=!1;break;case 4:Du=!0,Ru=!1;break;case 42:Ru&&(Du=!1),Ru=!0;break;case 80:Du=!1;break;case 1:return!1}}function AC(Fo,cl){re.assert(ge()===60);const Mc=n.getTokenFullStart();Lr();const Du=Tm(),Ru=YR();let _m;switch(Du.escapedText){case"type":return Fo===1&&wn(Mc,Du);case"prop":case"property":_m=1;break;case"arg":case"argument":case"param":_m=6;break;case"template":return jA(Mc,Du,cl,Ru);default:return!1}return Fo&_m?se(Mc,Du,Fo,cl):!1}function hw(){const Fo=qe(),cl=yO(23);cl&&Cv();const Mc=Tm(N.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Du;if(cl&&(Cv(),xa(64),Du=Eu(16777216,Uv),xa(24)),!ny(Mc))return Qi(k.createTypeParameterDeclaration(void 0,Mc,void 0,Du),Fo)}function QR(){const Fo=qe(),cl=[];do{Cv();const Mc=hw();Mc!==void 0&&cl.push(Mc),YR()}while(yO(28));return Ka(cl,Fo)}function jA(Fo,cl,Mc,Du){const Ru=ge()===19?bn():void 0,_m=QR();return Qi(k.createJSDocTemplateTag(cl,Ru,_m,GA(Fo,qe(),Mc,Du)),Fo)}function yO(Fo){return ge()===Fo?(Lr(),!0):!1}function SV(){let Fo=Tm();for(pl(23)&&xa(24);pl(25);){const cl=Tm();pl(23)&&xa(24),Fo=pr(Fo,cl)}return Fo}function Tm(Fo){if(!CT(ge()))return Pm(80,!Fo,Fo||N.Identifier_expected);Ki++;const cl=n.getTokenStart(),Mc=n.getTokenEnd(),Du=ge(),Ru=Ag(n.getTokenValue()),_m=Qi(ie(Ru,Du),cl,Mc);return Lr(),_m}}})(ute=e.JSDocParser||(e.JSDocParser={}))})(P3||(P3={})),(e=>{function n(J,X,ie,ae){if(ae=ae||re.shouldAssert(2),k(J,X,ie,ae),NTe(ie))return J;if(J.statements.length===0)return P3.parseSourceFile(J.fileName,X,J.languageVersion,void 0,!0,J.scriptKind,J.setExternalModuleIndicator,J.jsDocParsingMode);const ve=J;re.assert(!ve.hasBeenIncrementallyParsed),ve.hasBeenIncrementallyParsed=!0,P3.fixupParentReferences(ve);const we=J.text,Fe=F(J),et=E(J,ie);k(J,X,et,ae),re.assert(et.span.start<=ie.span.start),re.assert(Xy(et.span)===Xy(ie.span)),re.assert(Xy(o9(et))===Xy(o9(ie)));const Pe=o9(et).length-et.span.length;S(ve,et.span.start,Xy(et.span),Xy(o9(et)),Pe,we,X,ae);const dt=P3.parseSourceFile(J.fileName,X,J.languageVersion,Fe,!0,J.scriptKind,J.setExternalModuleIndicator,J.jsDocParsingMode);return dt.commentDirectives=i(J.commentDirectives,dt.commentDirectives,et.span.start,Xy(et.span),Pe,we,X,ae),dt.impliedNodeFormat=J.impliedNodeFormat,dt}e.updateSourceFile=n;function i(J,X,ie,ae,ve,we,Fe,et){if(!J)return X;let Pe,dt=!1;for(const ct of J){const{range:Ct,type:Lt}=ct;if(Ct.endae){Ie();const Ze={range:{pos:Ct.pos+ve,end:Ct.end+ve},type:Lt};Pe=ur(Pe,Ze),et&&re.assert(we.substring(Ct.pos,Ct.end)===Fe.substring(Ze.range.pos,Ze.range.end))}}return Ie(),Pe;function Ie(){dt||(dt=!0,Pe?X&&Pe.push(...X):Pe=X)}}function c(J,X,ie,ae,ve,we){X?et(J):Fe(J);return;function Fe(Pe){let dt="";if(we&&u(Pe)&&(dt=ae.substring(Pe.pos,Pe.end)),Pe._children&&(Pe._children=void 0),T1(Pe,Pe.pos+ie,Pe.end+ie),we&&u(Pe)&&re.assert(dt===ve.substring(Pe.pos,Pe.end)),s_(Pe,Fe,et),NT(Pe))for(const Ie of Pe.jsDoc)Fe(Ie);h(Pe,we)}function et(Pe){Pe._children=void 0,T1(Pe,Pe.pos+ie,Pe.end+ie);for(const dt of Pe)Fe(dt)}}function u(J){switch(J.kind){case 11:case 9:case 80:return!0}return!1}function d(J,X,ie,ae,ve){re.assert(J.end>=X,"Adjusting an element that was entirely before the change range"),re.assert(J.pos<=ie,"Adjusting an element that was entirely after the change range"),re.assert(J.pos<=J.end);const we=Math.min(J.pos,ae),Fe=J.end>=ie?J.end+ve:Math.min(J.end,ae);re.assert(we<=Fe),J.parent&&(re.assertGreaterThanOrEqual(we,J.parent.pos),re.assertLessThanOrEqual(Fe,J.parent.end)),T1(J,we,Fe)}function h(J,X){if(X){let ie=J.pos;const ae=ve=>{re.assert(ve.pos>=ie),ie=ve.end};if(NT(J))for(const ve of J.jsDoc)ae(ve);s_(J,ae),re.assert(ie<=J.end)}}function S(J,X,ie,ae,ve,we,Fe,et){Pe(J);return;function Pe(Ie){if(re.assert(Ie.pos<=Ie.end),Ie.pos>ie){c(Ie,!1,ve,we,Fe,et);return}const ct=Ie.end;if(ct>=X){if(Ie.intersectsChange=!0,Ie._children=void 0,d(Ie,X,ie,ae,ve),s_(Ie,Pe,dt),NT(Ie))for(const Ct of Ie.jsDoc)Pe(Ct);h(Ie,et);return}re.assert(ctie){c(Ie,!0,ve,we,Fe,et);return}const ct=Ie.end;if(ct>=X){Ie.intersectsChange=!0,Ie._children=void 0,d(Ie,X,ie,ae,ve);for(const Ct of Ie)Pe(Ct);return}re.assert(ct0&&Fe<=1;Fe++){const et=P(J,ae);re.assert(et.pos<=ae);const Pe=et.pos;ae=Math.max(0,Pe-1)}const ve=Yy(ae,Xy(X.span)),we=X.newLength+(X.span.start-ae);return WX(ve,we)}function P(J,X){let ie=J,ae;if(s_(J,we),ae){const Fe=ve(ae);Fe.pos>ie.pos&&(ie=Fe)}return ie;function ve(Fe){for(;;){const et=Kie(Fe);if(et)Fe=et;else return Fe}}function we(Fe){if(!ny(Fe))if(Fe.pos<=X){if(Fe.pos>=ie.pos&&(ie=Fe),XX),!0}}function k(J,X,ie,ae){const ve=J.text;if(ie&&(re.assert(ve.length-ie.span.length+ie.newLength===X.length),ae||re.shouldAssert(3))){const we=ve.substr(0,ie.span.start),Fe=X.substr(0,ie.span.start);re.assert(we===Fe);const et=ve.substring(Xy(ie.span),ve.length),Pe=X.substring(Xy(o9(ie)),X.length);re.assert(et===Pe)}}function F(J){let X=J.statements,ie=0;re.assert(ie=dt.pos&&Fe=dt.pos&&Fe{J[J.Value=-1]="Value"})($||($={}))})(nQ||(nQ={})),DW=new Map,Q6e=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Z6e=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function Joe(e){const n=new Map,i=new Map;return Ot(e,c=>{n.set(c.name.toLowerCase(),c),c.shortName&&i.set(c.shortName,c.name)}),{optionsNameMap:n,shortOptionNames:i}}function HG(){return mLe||(mLe=Joe(hI))}function Ipe(e){return e2e(e,W_)}function e2e(e,n){const i=oc(e.type.keys()),c=(e.deprecatedKeys?i.filter(u=>!e.deprecatedKeys.has(u)):i).map(u=>`'${u}'`).join(", ");return n(N.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,c)}function $oe(e,n,i){return Fpe(e,(n??"").trim(),i)}function eLe(e,n="",i){if(n=n.trim(),qf(n,"-"))return;if(e.type==="listOrElement"&&!n.includes(","))return IW(e,n,i);if(n==="")return[];const c=n.split(",");switch(e.element.type){case"number":return Qo(c,u=>IW(e.element,parseInt(u),i));case"string":return Qo(c,u=>IW(e.element,u||"",i));case"boolean":case"object":return re.fail(`List of ${e.element.type} is not yet supported.`);default:return Qo(c,u=>$oe(e.element,u,i))}}function t2e(e){return e.name}function kpe(e,n,i,c,u){var d;if((d=n.alternateMode)!=null&&d.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return o4(u,c,n.alternateMode.diagnostic,e);const h=fh(e,n.optionDeclarations,t2e);return h?o4(u,c,n.unknownDidYouMeanDiagnostic,i||e,h.name):o4(u,c,n.unknownOptionDiagnostic,i||e)}function Ppe(e,n,i){const c={};let u;const d=[],h=[];return S(n),{options:c,watchOptions:u,fileNames:d,errors:h};function S(P){let k=0;for(;kw0.readFile(J)));if(!As(k)){h.push(k);return}const F=[];let $=0;for(;;){for(;$=k.length)break;const J=$;if(k.charCodeAt(J)===34){for($++;$32;)$++;F.push(k.substring(J,$))}}S(F)}}function PUe(e,n,i,c,u,d){if(c.isTSConfigOnly){const h=e[n];h==="null"?(u[c.name]=void 0,n++):c.type==="boolean"?h==="false"?(u[c.name]=IW(c,!1,d),n++):(h==="true"&&n++,d.push(W_(N.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,c.name))):(d.push(W_(N.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,c.name)),h&&!qf(h,"-")&&n++)}else if(!e[n]&&c.type!=="boolean"&&d.push(W_(i.optionTypeMismatchDiagnostic,c.name,o2e(c))),e[n]!=="null")switch(c.type){case"number":u[c.name]=IW(c,parseInt(e[n]),d),n++;break;case"boolean":const h=e[n];u[c.name]=IW(c,h!=="false",d),(h==="false"||h==="true")&&n++;break;case"string":u[c.name]=IW(c,e[n]||"",d),n++;break;case"list":const S=eLe(c,e[n],d);u[c.name]=S||[],S&&n++;break;case"listOrElement":re.fail("listOrElement not supported here");break;default:u[c.name]=$oe(c,e[n],d),n++;break}else u[c.name]=void 0,n++;return n}function NUe(e,n){return Ppe(dQ,e,n)}function QJ(e,n){return rQ(HG,e,n)}function rQ(e,n,i=!1){n=n.toLowerCase();const{optionsNameMap:c,shortOptionNames:u}=e();if(i){const d=u.get(n);d!==void 0&&(n=d)}return c.get(n)}function n2e(){return oae||(oae=Joe(XG))}function tLe(e){const{options:n,watchOptions:i,fileNames:c,errors:u}=Ppe(yLe,e),d=n;return c.length===0&&c.push("."),d.clean&&d.force&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","force")),d.clean&&d.verbose&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","verbose")),d.clean&&d.watch&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"clean","watch")),d.watch&&d.dry&&u.push(W_(N.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:d,watchOptions:i,projects:c,errors:u}}function qoe(e,...n){return uc(W_(e,...n).messageText,As)}function JG(e,n,i,c,u,d){const h=ZJ(e,P=>i.readFile(P));if(!As(h)){i.onUnRecoverableConfigFileDiagnostic(h);return}const S=iT(e,h),E=i.getCurrentDirectory();return S.path=gm(e,E,H1(i.useCaseSensitiveFileNames)),S.resolvedPath=S.path,S.originalFileName=S.fileName,Zoe(S,i,vf(ws(e),E),n,vf(e,E),void 0,d,c,u)}function iQ(e,n){const i=ZJ(e,n);return As(i)?Npe(e,i):{config:{},error:i}}function Npe(e,n){const i=iT(e,n);return{config:RUe(i,i.parseDiagnostics,void 0),error:i.parseDiagnostics.length?i.parseDiagnostics[0]:void 0}}function r2e(e,n){const i=ZJ(e,n);return As(i)?iT(e,i):{fileName:e,parseDiagnostics:[i]}}function ZJ(e,n){let i;try{i=n(e)}catch(c){return W_(N.Cannot_read_file_0_Colon_1,e,c.message)}return i===void 0?W_(N.Cannot_read_file_0,e):i}function i2e(e){return QT(e,t2e)}function nLe(){return pQ||(pQ=Joe(fC))}function rLe(){return p2e||(p2e=i2e(hI))}function Koe(){return m2e||(m2e=i2e(fC))}function wpe(){return g2e||(g2e=i2e(fQ))}function wUe(){return Vf===void 0&&(Vf={name:void 0,type:"object",elementOptions:i2e([h2e,y2e,vLe,YG,{name:"references",type:"list",element:{name:"references",type:"object"},category:N.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:N.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:N.File_Management,defaultValueDescription:N.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:N.File_Management,defaultValueDescription:N.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},KG])}),Vf}function RUe(e,n,i){var c;const u=(c=e.statements[0])==null?void 0:c.expression;if(u&&u.kind!==210){if(n.push(Ud(e,u,N.The_root_value_of_a_0_file_must_be_an_object,Jg(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ed(u)){const d=lr(u.elements,el);if(d)return Xoe(e,d,n,!0,i)}return{}}return Xoe(e,u,n,!0,i)}function Rpe(e,n){var i;return Xoe(e,(i=e.statements[0])==null?void 0:i.expression,n,!0,void 0)}function Xoe(e,n,i,c,u){if(!n)return c?{}:void 0;return S(n,u==null?void 0:u.rootOptions);function d(P,k){var F;const $=c?{}:void 0;for(const J of P.properties){if(J.kind!==303){i.push(Ud(e,J,N.Property_assignment_expected));continue}J.questionToken&&i.push(Ud(e,J.questionToken,N.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),E(J.name)||i.push(Ud(e,J.name,N.String_literal_with_double_quotes_expected));const X=Xz(J.name)?void 0:z8(J.name),ie=X&&Ic(X),ae=ie?(F=k==null?void 0:k.elementOptions)==null?void 0:F.get(ie):void 0,ve=S(J.initializer,ae);typeof ie<"u"&&(c&&($[ie]=ve),u==null||u.onPropertySet(ie,ve,J,k,ae))}return $}function h(P,k){if(!c){P.forEach(F=>S(F,k));return}return gi(P.map(F=>S(F,k)),F=>F!==void 0)}function S(P,k){switch(P.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return E(P)||i.push(Ud(e,P,N.String_literal_with_double_quotes_expected)),P.text;case 9:return Number(P.text);case 224:if(P.operator!==41||P.operand.kind!==9)break;return-Number(P.operand.text);case 210:return d(P,k);case 209:return h(P.elements,k&&k.element)}k?i.push(Ud(e,P,N.Compiler_option_0_requires_a_value_of_type_1,k.name,o2e(k))):i.push(Ud(e,P,N.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function E(P){return Sd(P)&&aH(P,e)}}function o2e(e){return e.type==="listOrElement"?`${o2e(e.element)} or Array`:e.type==="list"?"Array":As(e.type)?e.type:"string"}function iLe(e,n){if(e){if(oQ(n))return!e.disallowNullOrUndefined;if(e.type==="list")return ls(n);if(e.type==="listOrElement")return ls(n)||iLe(e.element,n);const i=As(e.type)?e.type:"string";return typeof n===i}return!1}function a2e(e,n,i){var c,u,d;const h=H1(i.useCaseSensitiveFileNames),S=Vn(gi(e.fileNames,(u=(c=e.options.configFile)==null?void 0:c.configFileSpecs)!=null&&u.validatedIncludeSpecs?MUe(n,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,i):xT),F=>wM(vf(n,i.getCurrentDirectory()),vf(F,i.getCurrentDirectory()),h)),E=s2e(e.options,{configFilePath:vf(n,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),P=e.watchOptions&&oLe(e.watchOptions);return{compilerOptions:{...Yoe(E),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:P&&Yoe(P),references:Vn(e.projectReferences,F=>({...F,path:F.originalPath?F.originalPath:"",originalPath:void 0})),files:Nt(S)?S:void 0,...(d=e.options.configFile)!=null&&d.configFileSpecs?{include:Dst(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function Yoe(e){return{...oc(e.entries()).reduce((n,i)=>({...n,[i[0]]:i[1]}),{})}}function Dst(e){if(Nt(e)){if(Nt(e)!==1)return e;if(e[0]!==Dk)return e}}function MUe(e,n,i,c){if(!n)return xT;const u=Y9(e,i,n,c.useCaseSensitiveFileNames,c.getCurrentDirectory()),d=u.excludePattern&&Y2(u.excludePattern,c.useCaseSensitiveFileNames),h=u.includeFilePattern&&Y2(u.includeFilePattern,c.useCaseSensitiveFileNames);return h?d?S=>!(h.test(S)&&!d.test(S)):S=>!h.test(S):d?S=>d.test(S):xT}function LUe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return LUe(e.element);default:return e.type}}function Mpe(e,n){return Jb(n,(i,c)=>{if(i===e)return c})}function s2e(e,n){return OUe(e,HG(),n)}function oLe(e){return OUe(e,nLe())}function OUe(e,{optionsNameMap:n},i){const c=new Map,u=i&&H1(i.useCaseSensitiveFileNames);for(const d in e)if(ef(e,d)){if(n.has(d)&&(n.get(d).category===N.Command_line_Options||n.get(d).category===N.Output_Formatting))continue;const h=e[d],S=n.get(d.toLowerCase());if(S){re.assert(S.type!=="listOrElement");const E=LUe(S);E?S.type==="list"?c.set(d,h.map(P=>Mpe(P,E))):c.set(d,Mpe(h,E)):i&&S.isFilePath?c.set(d,wM(i.configFilePath,vf(h,ws(i.configFilePath)),u)):c.set(d,h)}}return c}function FUe(e,n){const i=Qoe(e);return u();function c(d){return Array(d+1).join(" ")}function u(){const d=[],h=c(2);return lQ.forEach(S=>{if(!i.has(S.name))return;const E=i.get(S.name),P=aQ(S);E!==P?d.push(`${h}${S.name}: ${E}`):ef(_Q,S.name)&&d.push(`${h}${S.name}: ${P}`)}),d.join(n)+n}}function Qoe(e){const n=dN(e,_Q);return s2e(n)}function c2e(e,n,i){const c=Qoe(e);return h();function u(S){return Array(S+1).join(" ")}function d({category:S,name:E,isCommandLineOnly:P}){const k=[N.Command_line_Options,N.Editor_Support,N.Compiler_Diagnostics,N.Backwards_Compatibility,N.Watch_and_Build_Modes,N.Output_Formatting];return!P&&S!==void 0&&(!k.includes(S)||c.has(E))}function h(){const S=new Map;S.set(N.Projects,[]),S.set(N.Language_and_Environment,[]),S.set(N.Modules,[]),S.set(N.JavaScript_Support,[]),S.set(N.Emit,[]),S.set(N.Interop_Constraints,[]),S.set(N.Type_Checking,[]),S.set(N.Completeness,[]);for(const J of hI)if(d(J)){let X=S.get(J.category);X||S.set(J.category,X=[]),X.push(J)}let E=0,P=0;const k=[];S.forEach((J,X)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${fs(X)} */`});for(const ie of J){let ae;c.has(ie.name)?ae=`"${ie.name}": ${JSON.stringify(c.get(ie.name))}${(P+=1)===c.size?"":","}`:ae=`// "${ie.name}": ${JSON.stringify(aQ(ie))},`,k.push({value:ae,description:`/* ${ie.description&&fs(ie.description)||ie.name} */`}),E=Math.max(ae.length,E)}});const F=u(2),$=[];$.push("{"),$.push(`${F}"compilerOptions": {`),$.push(`${F}${F}/* ${fs(N.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),$.push("");for(const J of k){const{value:X,description:ie=""}=J;$.push(X&&`${F}${F}${X}${ie&&u(E-X.length+2)+ie}`)}if(n.length){$.push(`${F}},`),$.push(`${F}"files": [`);for(let J=0;Jtypeof Et=="object","object"),Ct=et(Pe("files"));if(Ct){const Et=ct==="no-prop"||ls(ct)&&ct.length===0,at=ef($,"extends");if(Ct.length===0&&Et&&!at)if(n){const Qt=h||"tsconfig.json",nn=N.The_files_list_in_config_file_0_is_empty,Rn=q2(n,"files",qt=>qt.initializer),cn=o4(n,Rn,nn,Qt);k.push(cn)}else Ie(N.The_files_list_in_config_file_0_is_empty,h||"tsconfig.json")}let Lt=et(Pe("include"));const Ze=Pe("exclude");let Ke=!1,st=et(Ze);if(Ze==="no-prop"&&$.compilerOptions){const Et=$.compilerOptions.outDir,at=$.compilerOptions.declarationDir;(Et||at)&&(st=[Et,at].filter(Qt=>!!Qt))}Ct===void 0&&Lt===void 0&&(Lt=[Dk],Ke=!0);let It,Yt;return Lt&&(It=KUe(Lt,k,!0,n,"include")),st&&(Yt=KUe(st,k,!1,n,"exclude")),{filesSpecs:Ct,includeSpecs:Lt,excludeSpecs:st,validatedFilesSpec:gi(Ct,As),validatedIncludeSpecs:It,validatedExcludeSpecs:Yt,pathPatterns:void 0,isDefaultIncludeSpec:Ke}}function we(ct){const Ct=t$(ie,ct,J,i,E);return BUe(Ct,e$($),S)&&k.push(sLe(ie,h)),Ct}function Fe(ct){let Ct;const Lt=dt("references",Ze=>typeof Ze=="object","object");if(ls(Lt))for(const Ze of Lt)typeof Ze.path!="string"?Ie(N.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Ct||(Ct=[])).push({path:vf(Ze.path,ct),originalPath:Ze.path,prepend:Ze.prepend,circular:Ze.circular});return Ct}function et(ct){return ls(ct)?ct:void 0}function Pe(ct){return dt(ct,As,"string")}function dt(ct,Ct,Lt){if(ef($,ct)&&!oQ($[ct]))if(ls($[ct])){const Ze=$[ct];return!n&&!jr(Ze,Ct)&&k.push(W_(N.Compiler_option_0_requires_a_value_of_type_1,ct,Lt)),Ze}else return Ie(N.Compiler_option_0_requires_a_value_of_type_1,ct,"Array"),"not-array";return"no-prop"}function Ie(ct,...Ct){n||k.push(W_(ct,...Ct))}}function Ist(e){return e.code===N.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function sLe({includeSpecs:e,excludeSpecs:n},i){return W_(N.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,i||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(n||[]))}function BUe(e,n,i){return e.length===0&&n&&(!i||i.length===0)}function e$(e){return!ef(e,"files")&&!ef(e,"references")}function Ope(e,n,i,c,u){const d=c.length;return BUe(e,u)?c.push(sLe(i,n)):vd(c,h=>!Ist(h)),d!==c.length}function zUe(e){return!!e.options}function GUe(e,n,i,c,u,d,h,S){var E;c=$1(c);const P=vf(u||"",c);if(d.includes(P))return h.push(W_(N.Circularity_detected_while_resolving_configuration_Colon_0,[...d,P].join(" -> "))),{raw:e||Rpe(n,h)};const k=e?kst(e,i,c,u,h):Pst(n,i,c,u,h);if((E=k.options)!=null&&E.paths&&(k.options.pathsBasePath=c),k.extendedConfigPath){d=d.concat([P]);const $={options:{}};As(k.extendedConfigPath)?F($,k.extendedConfigPath):k.extendedConfigPath.forEach(J=>F($,J)),!k.raw.include&&$.include&&(k.raw.include=$.include),!k.raw.exclude&&$.exclude&&(k.raw.exclude=$.exclude),!k.raw.files&&$.files&&(k.raw.files=$.files),k.raw.compileOnSave===void 0&&$.compileOnSave&&(k.raw.compileOnSave=$.compileOnSave),n&&$.extendedSourceFiles&&(n.extendedSourceFiles=oc($.extendedSourceFiles.keys())),k.options=AS($.options,k.options),k.watchOptions=k.watchOptions&&$.watchOptions?AS($.watchOptions,k.watchOptions):k.watchOptions||$.watchOptions}return k;function F($,J){const X=VUe(n,J,i,d,h,S,$);if(X&&zUe(X)){const ie=X.raw;let ae;const ve=we=>{ie[we]&&($[we]=Vn(ie[we],Fe=>nE(Fe)?Fe:vl(ae||(ae=PX(ws(J),c,H1(i.useCaseSensitiveFileNames))),Fe)))};ve("include"),ve("exclude"),ve("files"),ie.compileOnSave!==void 0&&($.compileOnSave=ie.compileOnSave),AS($.options,X.options),$.watchOptions=$.watchOptions&&X.watchOptions?AS({},$.watchOptions,X.watchOptions):$.watchOptions||X.watchOptions}}}function kst(e,n,i,c,u){ef(e,"excludes")&&u.push(W_(N.Unknown_option_excludes_Did_you_mean_exclude));const d=i4(e.compilerOptions,i,u,c),h=HUe(e.typeAcquisition,i,u,c),S=qG(e.watchOptions,i,u);e.compileOnSave=u2e(e,i,u);const E=e.extends||e.extends===""?jUe(e.extends,n,i,c,u):void 0;return{raw:e,options:d,watchOptions:S,typeAcquisition:h,extendedConfigPath:E}}function jUe(e,n,i,c,u,d,h,S){let E;const P=c?eae(c,i):i;if(As(e))E=cLe(e,n,P,u,h,S);else if(ls(e)){E=[];for(let k=0;kwe.name===J)&&(P=ur(P,ie.name))))}}function cLe(e,n,i,c,u,d){if(e=$1(e),nE(e)||qf(e,"./")||qf(e,"../")){let S=vf(e,i);if(!n.fileExists(S)&&!h_(S,".json")&&(S=`${S}.json`,!n.fileExists(S))){c.push(o4(d,u,N.File_0_not_found,e));return}return S}const h=NW(e,vl(i,"tsconfig.json"),n);if(h.resolvedModule)return h.resolvedModule.resolvedFileName;e===""?c.push(o4(d,u,N.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):c.push(o4(d,u,N.File_0_not_found,e))}function VUe(e,n,i,c,u,d,h){const S=i.useCaseSensitiveFileNames?n:Q0(n);let E,P,k;if(d&&(E=d.get(S))?{extendedResult:P,extendedConfig:k}=E:(P=r2e(n,F=>i.readFile(F)),P.parseDiagnostics.length||(k=GUe(void 0,P,i,ws(n),Jg(n),c,u,d)),d&&d.set(S,{extendedResult:P,extendedConfig:k})),e&&((h.extendedSourceFiles??(h.extendedSourceFiles=new Set)).add(P.fileName),P.extendedSourceFiles))for(const F of P.extendedSourceFiles)h.extendedSourceFiles.add(F);if(P.parseDiagnostics.length){u.push(...P.parseDiagnostics);return}return k}function u2e(e,n,i){if(!ef(e,KG.name))return!1;const c=x6(KG,e.compileOnSave,n,i);return typeof c=="boolean"&&c}function lLe(e,n,i){const c=[];return{options:i4(e,n,c,i),errors:c}}function UUe(e,n,i){const c=[];return{options:HUe(e,n,c,i),errors:c}}function f2e(e){return e&&Jg(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function i4(e,n,i,c){const u=f2e(c);return _2e(rLe(),e,n,u,dQ,i),c&&(u.configFilePath=$1(c)),u}function lF(e){return{enable:!!e&&Jg(e)==="jsconfig.json",include:[],exclude:[]}}function HUe(e,n,i,c){const u=lF(c);return _2e(wpe(),e,n,u,d2e,i),u}function qG(e,n,i){return _2e(Koe(),e,n,void 0,mQ,i)}function _2e(e,n,i,c,u,d){if(n){for(const h in n){const S=e.get(h);S?(c||(c={}))[S.name]=x6(S,n[h],i,d):d.push(kpe(h,u))}return c}}function o4(e,n,i,...c){return e&&n?Ud(e,n,i,...c):W_(i,...c)}function x6(e,n,i,c,u,d,h){if(e.isCommandLineOnly){c.push(o4(h,u==null?void 0:u.name,N.Option_0_can_only_be_specified_on_command_line,e.name));return}if(iLe(e,n)){const S=e.type;if(S==="list"&&ls(n))return uLe(e,n,i,c,u,d,h);if(S==="listOrElement")return ls(n)?uLe(e,n,i,c,u,d,h):x6(e.element,n,i,c,u,d,h);if(!As(e.type))return Fpe(e,n,c,d,h);const E=IW(e,n,c,d,h);return oQ(E)?E:JUe(e,i,E)}else c.push(o4(h,d,N.Compiler_option_0_requires_a_value_of_type_1,e.name,o2e(e)))}function JUe(e,n,i){return e.isFilePath&&(i=vf(i,n),i===""&&(i=".")),i}function IW(e,n,i,c,u){var d;if(oQ(n))return;const h=(d=e.extraValidation)==null?void 0:d.call(e,n);if(!h)return n;i.push(o4(u,c,...h))}function Fpe(e,n,i,c,u){if(oQ(n))return;const d=n.toLowerCase(),h=e.type.get(d);if(h!==void 0)return IW(e,h,i,c,u);i.push(e2e(e,(S,...E)=>o4(u,c,S,...E)))}function uLe(e,n,i,c,u,d,h){return gi(Vn(n,(S,E)=>x6(e.element,S,i,c,u,d==null?void 0:d.elements[E],h)),S=>e.listPreserveFalsyValues?!0:!!S)}function t$(e,n,i,c,u=Yn){n=hf(n);const d=H1(c.useCaseSensitiveFileNames),h=new Map,S=new Map,E=new Map,{validatedFilesSpec:P,validatedIncludeSpecs:k,validatedExcludeSpecs:F}=e,$=s3(i,u),J=Q9(i,$);if(P)for(const ve of P){const we=vf(ve,n);h.set(d(we),we)}let X;if(k&&k.length>0)for(const ve of c.readDirectory(n,Gf(J),F,k,void 0)){if(mm(ve,".json")){if(!X){const et=k.filter(dt=>h_(dt,".json")),Pe=Vn(JH(et,n,"files"),dt=>`^${dt}$`);X=Pe?Pe.map(dt=>Y2(dt,c.useCaseSensitiveFileNames)):Yn}if(Ho(X,et=>et.test(ve))!==-1){const et=d(ve);!h.has(et)&&!E.has(et)&&E.set(et,ve)}continue}if(zpe(ve,h,S,$,d))continue;pLe(ve,S,$,d);const we=d(ve);!h.has(we)&&!S.has(we)&&S.set(we,ve)}const ie=oc(h.values()),ae=oc(S.values());return ie.concat(ae,oc(E.values()))}function Wpe(e,n,i,c,u){const{validatedFilesSpec:d,validatedIncludeSpecs:h,validatedExcludeSpecs:S}=n;if(!Nt(h)||!Nt(S))return!1;i=hf(i);const E=H1(c);if(d){for(const P of d)if(E(vf(P,i))===e)return!1}return qUe(e,S,c,u,i)}function $Ue(e){const n=qf(e,"**/")?0:e.indexOf("/**/");return n===-1?!1:(h_(e,"/..")?e.length:e.lastIndexOf("/../"))>n}function Bpe(e,n,i,c){return qUe(e,gi(n,u=>!$Ue(u)),i,c)}function qUe(e,n,i,c,u){const d=a3(n,vl(hf(c),u),"exclude"),h=d&&Y2(d,i);return h?h.test(e)?!0:!r9(e)&&h.test(Su(e)):!1}function KUe(e,n,i,c,u){return e.filter(h=>{if(!As(h))return!1;const S=fLe(h,i);return S!==void 0&&n.push(d(...S)),S===void 0});function d(h,S){const E=JM(c,u,S);return o4(c,E,h,S)}}function fLe(e,n){if(re.assert(typeof e=="string"),n&&kW.test(e))return[N.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if($Ue(e))return[N.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function _Le({validatedIncludeSpecs:e,validatedExcludeSpecs:n},i,c){const u=a3(n,i,"exclude"),d=u&&new RegExp(u,c?"":"i"),h={};if(e!==void 0){const S=[];for(const E of e){const P=hf(vl(i,E));if(d&&d.test(P))continue;const k=dLe(P,c);if(k){const{key:F,flags:$}=k,J=h[F];(J===void 0||J<$)&&(h[F]=$,$===1&&S.push(F))}}for(const E in h)if(ef(h,E))for(const P of S)E!==P&&OE(P,E,i,!c)&&delete h[E]}return h}function dLe(e,n){const i=Upe.exec(e);if(i){const c=e.indexOf("?"),u=e.indexOf("*"),d=e.lastIndexOf(qp);return{key:n?i[0]:Q0(i[0]),flags:c!==-1&&cpv(e,h)?h:void 0);if(!d)return!1;for(const h of d){if(mm(e,h)&&(h!==".ts"||!mm(e,".d.ts")))return!1;const S=u(SA(e,h));if(n.has(S)||i.has(S)){if(h===".d.ts"&&(mm(e,".js")||mm(e,".jsx")))continue;return!0}}return!1}function pLe(e,n,i,c){const u=Ot(i,d=>pv(e,d)?d:void 0);if(u)for(let d=u.length-1;d>=0;d--){const h=u[d];if(mm(e,h))return;const S=c(SA(e,h));n.delete(S)}}function n$(e){const n={};for(const i in e)if(ef(e,i)){const c=QJ(i);c!==void 0&&(n[i]=Gpe(e[i],c))}return n}function Gpe(e,n){if(e===void 0)return e;switch(n.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ls(e))return Gpe(e,n.element);case"list":const i=n.element;return ls(e)?Qo(e,c=>Gpe(c,i)):"";default:return Jb(n.type,(c,u)=>{if(c===e)return u})}}function aQ(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const n=e.defaultValueDescription;return e.isFilePath?`./${n&&typeof n=="string"?n:""}`:"";case"list":return[];case"listOrElement":return aQ(e.element);case"object":return{};default:const i=V5(e.type.keys());return i!==void 0?i:re.fail("Expected 'option.type' to have entries.")}}var KG,sQ,uF,cQ,r$,i$,fC,o$,a$,tae,lQ,hI,nae,rae,iae,s$,c$,jpe,Vpe,uQ,XG,fQ,mLe,gLe,_Q,dQ,oae,hLe,yLe,d2e,pQ,mQ,p2e,m2e,g2e,YG,h2e,y2e,vLe,Vf,Dk,kW,Upe,XUe=G({"src/compiler/commandLineParser.ts"(){md(),KG={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sQ=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),uF=new Map(p_(sQ.entries(),([e,n])=>[""+n,e])),cQ=[["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"]],r$=cQ.map(e=>e[0]),i$=new Map(cQ),fC=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:N.Watch_and_Build_Modes,description:N.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:N.Watch_and_Build_Modes,description:N.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:N.Watch_and_Build_Modes,description:N.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:N.Watch_and_Build_Modes,description:N.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:fLe},category:N.Watch_and_Build_Modes,description:N.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:fLe},category:N.Watch_and_Build_Modes,description:N.Remove_a_list_of_files_from_the_watch_mode_s_processing}],o$=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:N.Command_line_Options,description:N.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:N.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:N.Command_line_Options,description:N.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:N.Output_Formatting,description:N.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:N.Compiler_Diagnostics,description:N.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:N.Output_Formatting,description:N.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:N.Compiler_Diagnostics,description:N.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:N.Compiler_Diagnostics,description:N.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:N.Compiler_Diagnostics,description:N.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:N.FILE_OR_DIRECTORY,category:N.Compiler_Diagnostics,description:N.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:N.DIRECTORY,category:N.Compiler_Diagnostics,description:N.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:N.Projects,description:N.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:N.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,transpileOptionValue:void 0,description:N.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:N.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:N.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,description:N.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,defaultValueDescription:!1,description:N.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:N.Emit,description:N.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Watch_and_Build_Modes,description:N.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:N.Command_line_Options,isCommandLineOnly:!0,description:N.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:N.Platform_specific}],a$={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:N.VERSION,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},tae={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:N.KIND,showInSimplifiedHelpView:!0,category:N.Modules,description:N.Specify_what_module_code_is_generated,defaultValueDescription:void 0},lQ=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,description:N.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:N.Command_line_Options,paramType:N.FILE_OR_DIRECTORY,description:N.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:N.Command_line_Options,description:N.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:N.Command_line_Options,isCommandLineOnly:!0,description:N.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:N.Command_line_Options,isCommandLineOnly:!0,description:N.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},a$,tae,{name:"lib",type:"list",element:{name:"lib",type:i$,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.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:N.JavaScript_Support,description:N.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:N.JavaScript_Support,description:N.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:sQ,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:N.KIND,showInSimplifiedHelpView:!0,category:N.Language_and_Environment,description:N.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.FILE,showInSimplifiedHelpView:!0,category:N.Emit,description:N.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:N.DIRECTORY,showInSimplifiedHelpView:!0,category:N.Emit,description:N.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.LOCATION,category:N.Modules,description:N.Specify_the_root_folder_within_your_source_files,defaultValueDescription:N.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:N.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:N.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:N.FILE,category:N.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:N.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Emit,defaultValueDescription:!1,description:N.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:N.Emit,description:N.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.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:N.Emit,description:N.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:N.Interop_Constraints,description:N.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:N.Interop_Constraints,description:N.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:N.Type_Checking,description:N.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:N.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:N.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:N.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:N.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:N.Type_Checking,description:N.Ensure_use_strict_is_always_emitted,defaultValueDescription:N.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.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:N.Type_Checking,description:N.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.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:N.Type_Checking,description:N.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:N.STRATEGY,category:N.Modules,description:N.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:N.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:N.Modules,description:N.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:N.Modules,description:N.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:N.Modules,description:N.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:N.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:N.Modules,description:N.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:N.Modules,description:N.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:N.Interop_Constraints,description:N.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:N.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:N.Interop_Constraints,description:N.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:N.Interop_Constraints,description:N.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:N.Modules,description:N.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:N.Modules,description:N.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Modules,description:N.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:N.Modules,description:N.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:N.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:N.Modules,description:N.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:N.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:N.Modules,description:N.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:N.LOCATION,category:N.Emit,description:N.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:N.LOCATION,category:N.Emit,description:N.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:N.Language_and_Environment,description:N.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:N.Language_and_Environment,description:N.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:N.Language_and_Environment,description:N.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:N.Modules,description:N.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:N.Modules,description:N.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:N.Backwards_Compatibility,paramType:N.FILE,transpileOptionValue:void 0,description:N.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:N.Completeness,description:N.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:N.Backwards_Compatibility,description:N.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:N.Emit,description:N.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:N.NEWLINE,category:N.Emit,description:N.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Output_Formatting,description:N.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:N.Language_and_Environment,affectsProgramStructure:!0,description:N.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:N.Modules,description:N.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:N.Emit,description:N.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:N.Editor_Support,description:N.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:N.Projects,description:N.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:N.Projects,description:N.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:N.Projects,description:N.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,transpileOptionValue:void 0,description:N.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:N.DIRECTORY,category:N.Emit,transpileOptionValue:void 0,description:N.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:N.Completeness,description:N.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Type_Checking,description:N.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:N.Backwards_Compatibility,description:N.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:N.Interop_Constraints,description:N.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:N.JavaScript_Support,description:N.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:N.Backwards_Compatibility,description:N.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:N.Language_and_Environment,description:N.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:N.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:N.Emit,description:N.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:N.Backwards_Compatibility,description:N.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:N.Specify_a_list_of_language_service_plugins_to_include,category:N.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:N.Control_what_method_is_used_to_detect_module_format_JS_files,category:N.Language_and_Environment,defaultValueDescription:N.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}],hI=[...o$,...lQ],nae=hI.filter(e=>!!e.affectsSemanticDiagnostics),rae=hI.filter(e=>!!e.affectsEmit),iae=hI.filter(e=>!!e.affectsDeclarationPath),s$=hI.filter(e=>!!e.affectsModuleResolution),c$=hI.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),jpe=hI.filter(e=>!!e.affectsProgramStructure),Vpe=hI.filter(e=>ef(e,"transpileOptionValue")),uQ=[{name:"verbose",shortName:"v",category:N.Command_line_Options,description:N.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:N.Command_line_Options,description:N.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:N.Command_line_Options,description:N.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:N.Command_line_Options,description:N.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],XG=[...o$,...uQ],fQ=[{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}],gLe={diagnostic:N.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:n2e},_Q={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},dQ={alternateMode:gLe,getOptionsNameMap:HG,optionDeclarations:hI,unknownOptionDiagnostic:N.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:N.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Compiler_option_0_expects_an_argument},hLe={diagnostic:N.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:HG},yLe={alternateMode:hLe,getOptionsNameMap:n2e,optionDeclarations:XG,unknownOptionDiagnostic:N.Unknown_build_option_0,unknownDidYouMeanDiagnostic:N.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Build_option_0_requires_a_value_of_type_1},d2e={optionDeclarations:fQ,unknownOptionDiagnostic:N.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:N.Unknown_type_acquisition_option_0_Did_you_mean_1},mQ={getOptionsNameMap:nLe,optionDeclarations:fC,unknownOptionDiagnostic:N.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:N.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:N.Watch_option_0_requires_a_value_of_type_1},YG={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:N.File_Management,disallowNullOrUndefined:!0},h2e={name:"compilerOptions",type:"object",elementOptions:rLe(),extraKeyDiagnostics:dQ},y2e={name:"watchOptions",type:"object",elementOptions:Koe(),extraKeyDiagnostics:mQ},vLe={name:"typeAcquisition",type:"object",elementOptions:wpe(),extraKeyDiagnostics:d2e},Dk="**/*",kW=/(^|\/)\*\*\/?$/,Upe=/^[^*?]*(?=\/[^/]*[*?])/}});function Df(e,n,...i){e.trace(Yie(n,...i))}function DR(e,n){return!!e.traceResolution&&n.trace!==void 0}function fF(e,n){let i;if(n&&e){const c=e.contents.packageJsonContent;typeof c.name=="string"&&typeof c.version=="string"&&(i={name:c.name,subModuleName:n.path.slice(e.packageDirectory.length+qp.length),version:c.version})}return n&&{path:n.path,extension:n.ext,packageId:i,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function Hpe(e){return fF(void 0,e)}function bLe(e){if(e)return re.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function PW(e){const n=[];return e&1&&n.push("TypeScript"),e&2&&n.push("JavaScript"),e&4&&n.push("Declaration"),e&8&&n.push("JSON"),n.join(", ")}function gQ(e){const n=[];return e&1&&n.push(...SG),e&2&&n.push(...h3),e&4&&n.push(...oJ),e&8&&n.push(".json"),n}function v2e(e){if(e)return re.assert(KH(e.extension)),{fileName:e.path,packageId:e.packageId}}function Jpe(e,n,i,c,u,d,h,S,E){if(!h.resultFromCache&&!h.compilerOptions.preserveSymlinks&&n&&i&&!n.originalPath&&!Kv(e)){const{resolvedFileName:P,originalPath:k}=qpe(n.path,h.host,h.traceEnabled);k&&(n={...n,path:P,originalPath:k})}return YUe(n,i,c,u,d,h.resultFromCache,S,E)}function YUe(e,n,i,c,u,d,h,S){return d?h!=null&&h.isReadonly?{...d,failedLookupLocations:TLe(d.failedLookupLocations,i),affectingLocations:TLe(d.affectingLocations,c),resolutionDiagnostics:TLe(d.resolutionDiagnostics,u)}:(d.failedLookupLocations=l$(d.failedLookupLocations,i),d.affectingLocations=l$(d.affectingLocations,c),d.resolutionDiagnostics=l$(d.resolutionDiagnostics,u),d):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:hQ(i),affectingLocations:hQ(c),resolutionDiagnostics:hQ(u),node10Result:S}}function hQ(e){return e.length?e:void 0}function l$(e,n){return n!=null&&n.length?e!=null&&e.length?(e.push(...n),e):n:e}function TLe(e,n){return e!=null&&e.length?n.length?[...e,...n]:e.slice():hQ(n)}function QUe(e,n,i,c){if(!ef(e,n)){c.traceEnabled&&Df(c.host,N.package_json_does_not_have_a_0_field,n);return}const u=e[n];if(typeof u!==i||u===null){c.traceEnabled&&Df(c.host,N.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,u===null?"null":typeof u);return}return u}function yQ(e,n,i,c){const u=QUe(e,n,"string",c);if(u===void 0)return;if(!u){c.traceEnabled&&Df(c.host,N.package_json_had_a_falsy_0_field,n);return}const d=hf(vl(i,u));return c.traceEnabled&&Df(c.host,N.package_json_has_0_field_1_that_references_2,n,u,d),d}function $pe(e,n,i){return yQ(e,"typings",n,i)||yQ(e,"types",n,i)}function Nst(e,n,i){return yQ(e,"tsconfig",n,i)}function wst(e,n,i){return yQ(e,"main",n,i)}function ZUe(e,n){const i=QUe(e,"typesVersions","object",n);if(i!==void 0)return n.traceEnabled&&Df(n.host,N.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}function eHe(e,n){const i=ZUe(e,n);if(i===void 0)return;if(n.traceEnabled)for(const h in i)ef(i,h)&&!yN.tryParse(h)&&Df(n.host,N.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,h);const c=vQ(i);if(!c){n.traceEnabled&&Df(n.host,N.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ot);return}const{version:u,paths:d}=c;if(typeof d!="object"){n.traceEnabled&&Df(n.host,N.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${u}']`,"object",typeof d);return}return c}function vQ(e){NLe||(NLe=new ZT(At));for(const n in e){if(!ef(e,n))continue;const i=yN.tryParse(n);if(i!==void 0&&i.test(NLe))return{version:n,paths:e[n]}}}function QG(e,n){if(e.typeRoots)return e.typeRoots;let i;if(e.configFilePath?i=ws(e.configFilePath):n.getCurrentDirectory&&(i=n.getCurrentDirectory()),i!==void 0)return u$(i)}function u$(e){let n;return jC(hf(e),i=>{const c=vl(i,kR);(n??(n=[])).push(c)}),n}function Rst(e,n,i){const c=typeof i.useCaseSensitiveFileNames=="function"?i.useCaseSensitiveFileNames():i.useCaseSensitiveFileNames;return Rv(e,n,!c)===0}function qpe(e,n,i){const c=ALe(e,n,i),u=Rst(e,c,n);return{resolvedFileName:u?e:c,originalPath:u?void 0:e}}function b2e(e,n,i){const c=h_(e,"/node_modules/@types")||h_(e,"/node_modules/@types/")?PLe(n,i):n;return vl(e,c)}function Kpe(e,n,i,c,u,d,h){re.assert(typeof e=="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 S=DR(i,c);u&&(i=u.commandLine.options);const E=n?ws(n):void 0;let P=E?d==null?void 0:d.getFromDirectoryCache(e,h,E,u):void 0;if(!P&&E&&!Kv(e)&&(P=d==null?void 0:d.getFromNonRelativeNameCache(e,h,E,u)),P)return S&&(Df(c,N.Resolving_type_reference_directive_0_containing_file_1,e,n),u&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),Df(c,N.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,E),Pe(P)),P;const k=QG(i,c);S&&(n===void 0?k===void 0?Df(c,N.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Df(c,N.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,k):k===void 0?Df(c,N.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,n):Df(c,N.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,n,k),u&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));const F=[],$=[];let J=Xpe(i);h!==void 0&&(J|=30);const X=Jd(i);h===99&&3<=X&&X<=99&&(J|=32);const ie=J&8?_F(i,h):[],ae=[],ve={compilerOptions:i,host:c,traceEnabled:S,failedLookupLocations:F,affectingLocations:$,packageJsonInfoCache:d,features:J,conditions:ie,requestContainingDirectory:E,reportDiagnostic:ct=>void ae.push(ct),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let we=dt(),Fe=!0;we||(we=Ie(),Fe=!1);let et;if(we){const{fileName:ct,packageId:Ct}=we;let Lt=ct,Ze;i.preserveSymlinks||({resolvedFileName:Lt,originalPath:Ze}=qpe(ct,c,S)),et={primary:Fe,resolvedFileName:Lt,originalPath:Ze,packageId:Ct,isExternalLibraryImport:RW(ct)}}return P={resolvedTypeReferenceDirective:et,failedLookupLocations:hQ(F),affectingLocations:hQ($),resolutionDiagnostics:hQ(ae)},E&&d&&!d.isReadonly&&(d.getOrCreateCacheForDirectory(E,u).set(e,h,P),Kv(e)||d.getOrCreateCacheForNonRelativeName(e,h,u).set(E,P)),S&&Pe(P),P;function Pe(ct){var Ct;(Ct=ct.resolvedTypeReferenceDirective)!=null&&Ct.resolvedFileName?ct.resolvedTypeReferenceDirective.packageId?Df(c,N.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ct.resolvedTypeReferenceDirective.resolvedFileName,jM(ct.resolvedTypeReferenceDirective.packageId),ct.resolvedTypeReferenceDirective.primary):Df(c,N.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ct.resolvedTypeReferenceDirective.resolvedFileName,ct.resolvedTypeReferenceDirective.primary):Df(c,N.Type_reference_directive_0_was_not_resolved,e)}function dt(){if(k&&k.length)return S&&Df(c,N.Resolving_with_primary_search_path_0,k.join(", ")),Yr(k,ct=>{const Ct=b2e(ct,e,ve),Lt=O0(ct,c);if(!Lt&&S&&Df(c,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,ct),i.typeRoots){const Ze=ej(4,Ct,!Lt,ve);if(Ze){const Ke=d$(Ze.path),st=Ke?A6(Ke,!1,ve):void 0;return v2e(fF(st,Ze))}}return v2e(SQ(4,Ct,!Lt,ve))});S&&Df(c,N.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Ie(){const ct=n&&ws(n);if(ct!==void 0){let Ct;if(!i.typeRoots||!h_(n,gj))if(S&&Df(c,N.Looking_up_in_node_modules_folder_initial_location_0,ct),Kv(e)){const{path:Lt}=xLe(ct,e);Ct=dF(4,Lt,!1,ve,!0)}else{const Lt=k2e(4,e,ct,ve,void 0,void 0);Ct=Lt&&Lt.value}else S&&Df(c,N.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return v2e(Ct)}else S&&Df(c,N.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Xpe(e){let n=0;switch(Jd(e)){case 3:n=30;break;case 99:n=30;break;case 100:n=30;break}return e.resolvePackageJsonExports?n|=8:e.resolvePackageJsonExports===!1&&(n&=-9),e.resolvePackageJsonImports?n|=2:e.resolvePackageJsonImports===!1&&(n&=-3),n}function _F(e,n){const i=Jd(e);if(n===void 0){if(i===100)n=99;else if(i===2)return[]}const c=n===99?["import"]:["require"];return e.noDtsResolution||c.push("types"),i!==100&&c.push("node"),Hi(c,e.customConditions)}function Ype(e,n,i,c,u){const d=lae(u==null?void 0:u.getPackageJsonInfoCache(),c,i);return jC(n,h=>{if(Jg(h)!=="node_modules"){const S=vl(h,"node_modules"),E=vl(S,e);return A6(E,!1,d)}})}function Qpe(e,n){if(e.types)return e.types;const i=[];if(n.directoryExists&&n.getDirectories){const c=QG(e,n);if(c){for(const u of c)if(n.directoryExists(u))for(const d of n.getDirectories(u)){const h=hf(d),S=vl(u,h,"package.json");if(!(n.fileExists(S)&&e3(S,n).typings===null)){const P=Jg(h);P.charCodeAt(0)!==46&&i.push(P)}}}}return i}function f$(e){var n;if(e===null||typeof e!="object")return""+e;if(ls(e))return`[${(n=e.map(c=>f$(c)))==null?void 0:n.join(",")}]`;let i="{";for(const c in e)ef(e,c)&&(i+=`${c}: ${f$(e[c])}`);return i+"}"}function N3(e,n){return n.map(i=>f$(jH(e,i))).join("|")+`|${e.pathsBasePath}`}function aae(e,n){const i=new Map,c=new Map;let u=new Map;return e&&i.set(e,u),{getMapOfCacheRedirects:d,getOrCreateMapOfCacheRedirects:h,update:S,clear:P,getOwnMap:()=>u};function d(F){return F?E(F.commandLine.options,!1):u}function h(F){return F?E(F.commandLine.options,!0):u}function S(F){e!==F&&(e?u=E(F,!0):i.set(F,u),e=F)}function E(F,$){let J=i.get(F);if(J)return J;const X=k(F);if(J=c.get(X),!J){if(e){const ie=k(e);ie===X?J=u:c.has(ie)||c.set(ie,u)}$&&(J??(J=new Map)),J&&c.set(X,J)}return J&&i.set(F,J),J}function P(){const F=e&&n.get(e);u.clear(),i.clear(),n.clear(),c.clear(),e&&(F&&n.set(e,F),i.set(e,u))}function k(F){let $=n.get(F);return $||n.set(F,$=N3(F,s$)),$}}function Mst(e,n){let i;return{getPackageJsonInfo:c,setPackageJsonInfo:u,clear:d,entries:h,getInternalMap:S};function c(E){return i==null?void 0:i.get(gm(E,e,n))}function u(E,P){(i||(i=new Map)).set(gm(E,e,n),P)}function d(){i=void 0}function h(){const E=i==null?void 0:i.entries();return E?oc(E):[]}function S(){return i}}function tHe(e,n,i,c){const u=e.getOrCreateMapOfCacheRedirects(n);let d=u.get(i);return d||(d=c(),u.set(i,d)),d}function Lst(e,n,i,c){const u=aae(i,c);return{getFromDirectoryCache:E,getOrCreateCacheForDirectory:S,clear:d,update:h,directoryToModuleNameMap:u};function d(){u.clear()}function h(P){u.update(P)}function S(P,k){const F=gm(P,e,n);return tHe(u,k,F,()=>IR())}function E(P,k,F,$){var J,X;const ie=gm(F,e,n);return(X=(J=u.getMapOfCacheRedirects($))==null?void 0:J.get(ie))==null?void 0:X.get(P,k)}}function _$(e,n){return n===void 0?e:`${n}|${e}`}function IR(){const e=new Map,n=new Map,i={get(u,d){return e.get(c(u,d))},set(u,d,h){return e.set(c(u,d),h),i},delete(u,d){return e.delete(c(u,d)),i},has(u,d){return e.has(c(u,d))},forEach(u){return e.forEach((d,h)=>{const[S,E]=n.get(h);return u(d,S,E)})},size(){return e.size}};return i;function c(u,d){const h=_$(u,d);return n.set(h,[u,d]),h}}function T2e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function SLe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function S2e(e,n,i,c,u){const d=aae(i,u);return{getFromNonRelativeNameCache:E,getOrCreateCacheForNonRelativeName:P,clear:h,update:S};function h(){d.clear()}function S(F){d.update(F)}function E(F,$,J,X){var ie,ae;return re.assert(!Kv(F)),(ae=(ie=d.getMapOfCacheRedirects(X))==null?void 0:ie.get(_$(F,$)))==null?void 0:ae.get(J)}function P(F,$,J){return re.assert(!Kv(F)),tHe(d,J,_$(F,$),k)}function k(){const F=new Map;return{get:$,set:J};function $(ie){return F.get(gm(ie,e,n))}function J(ie,ae){const ve=gm(ie,e,n);if(F.has(ve))return;F.set(ve,ae);const we=c(ae),Fe=we&&X(ve,we);let et=ve;for(;et!==Fe;){const Pe=ws(et);if(Pe===et||F.has(Pe))break;F.set(Pe,ae),et=Pe}}function X(ie,ae){const ve=gm(ws(ae),e,n);let we=0;const Fe=Math.min(ie.length,ve.length);for(;wec,clearAllExceptPackageJsonInfoCache:P,optionsToRedirectsKey:d};function E(){P(),c.clear()}function P(){h.clear(),S.clear()}function k(F){h.update(F),S.update(F)}}function a4(e,n,i,c,u){const d=nHe(e,n,i,c,T2e,u);return d.getOrCreateCacheForModuleName=(h,S,E)=>d.getOrCreateCacheForNonRelativeName(h,S,E),d}function sae(e,n,i,c,u){return nHe(e,n,i,c,SLe,u)}function E2e(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Zpe(e,n,i,c,u){return ZG(e,n,E2e(i),c,u)}function rHe(e,n,i,c){const u=ws(n);return i.getFromDirectoryCache(e,c,u,void 0)}function ZG(e,n,i,c,u,d,h){var S,E,P;const k=DR(i,c);d&&(i=d.commandLine.options),k&&(Df(c,N.Resolving_module_0_from_1,e,n),d&&Df(c,N.Using_compiler_options_of_project_reference_redirect_0,d.sourceFile.fileName));const F=ws(n);let $=u==null?void 0:u.getFromDirectoryCache(e,h,F,d);if($)k&&Df(c,N.Resolution_for_module_0_was_found_in_cache_from_location_1,e,F);else{let J=i.moduleResolution;if(J===void 0){switch(Zp(i)){case 1:J=2;break;case 100:J=3;break;case 199:J=99;break;default:J=1;break}k&&Df(c,N.Module_resolution_kind_is_not_specified_using_0,t9[J])}else k&&Df(c,N.Explicitly_specified_module_resolution_kind_Colon_0,t9[J]);switch((S=Zh)==null||S.logStartResolveModule(e),J){case 3:$=aHe(e,n,i,c,u,d,h);break;case 99:$=sHe(e,n,i,c,u,d,h);break;case 2:$=cae(e,n,i,c,u,d,h?_F(i,h):void 0);break;case 1:$=C6(e,n,i,c,u,d);break;case 100:$=ELe(e,n,i,c,u,d,h?_F(i,h):void 0);break;default:return re.fail(`Unexpected moduleResolution: ${J}`)}$&&$.resolvedModule&&((E=Zh)==null||E.logInfoEvent(`Module "${e}" resolved to "${$.resolvedModule.resolvedFileName}"`)),(P=Zh)==null||P.logStopResolveModule($&&$.resolvedModule?""+$.resolvedModule.resolvedFileName:"null"),u&&!u.isReadonly&&(u.getOrCreateCacheForDirectory(F,d).set(e,h,$),Kv(e)||u.getOrCreateCacheForNonRelativeName(e,h,d).set(F,$))}return k&&($.resolvedModule?$.resolvedModule.packageId?Df(c,N.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,$.resolvedModule.resolvedFileName,jM($.resolvedModule.packageId)):Df(c,N.Module_name_0_was_successfully_resolved_to_1,e,$.resolvedModule.resolvedFileName):Df(c,N.Module_name_0_was_not_resolved,e)),$}function iHe(e,n,i,c,u){const d=Ost(e,n,c,u);return d?d.value:Kv(n)?oHe(e,n,i,c,u):Fst(e,n,c,u)}function Ost(e,n,i,c){var u;const{baseUrl:d,paths:h,configFile:S}=c.compilerOptions;if(h&&!V2(n)){c.traceEnabled&&(d&&Df(c.host,N.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,d,n),Df(c.host,N.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));const E=Lie(c.compilerOptions,c.host),P=S!=null&&S.configFileSpecs?(u=S.configFileSpecs).pathPatterns||(u.pathPatterns=qH(h)):void 0;return dae(e,n,E,h,P,i,!1,c)}}function oHe(e,n,i,c,u){if(!u.compilerOptions.rootDirs)return;u.traceEnabled&&Df(u.host,N.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);const d=hf(vl(i,n));let h,S;for(const E of u.compilerOptions.rootDirs){let P=hf(E);h_(P,qp)||(P+=qp);const k=qf(d,P)&&(S===void 0||S.lengthvoid we.push(Ie),isConfigLookup:S,candidateIsFromPackageJsonField:!1};X&&UN(ve)&&Df(u,N.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Fe.conditions.map(Ie=>`'${Ie}'`).join(", "));let et;if(ve===2){const Ie=h&5,ct=h&-6;et=Ie&&dt(Ie,Fe)||ct&&dt(ct,Fe)||void 0}else et=dt(h,Fe);let Pe;if((k=et==null?void 0:et.value)!=null&&k.isExternalLibraryImport&&!S&&h&5&&e&8&&!Kv(n)&&!uae(5,et.value.resolved.extension)&&(P!=null&&P.includes("import"))){ix(Fe,N.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const Ie={...Fe,features:Fe.features&-9,reportDiagnostic:ku},ct=dt(h&5,Ie);(F=ct==null?void 0:ct.value)!=null&&F.isExternalLibraryImport&&(Pe=ct.value.resolved.path)}return Jpe(n,($=et==null?void 0:et.value)==null?void 0:$.resolved,(J=et==null?void 0:et.value)==null?void 0:J.isExternalLibraryImport,ie,ae,we,Fe,d,Pe);function dt(Ie,ct){const Lt=iHe(Ie,n,i,(Ze,Ke,st,It)=>dF(Ze,Ke,st,It,!0),ct);if(Lt)return C2({resolved:Lt,isExternalLibraryImport:RW(Lt.path)});if(Kv(n)){const{path:Ze,parts:Ke}=xLe(i,n),st=dF(Ie,Ze,!1,ct,!0);return st&&C2({resolved:st,isExternalLibraryImport:ni(Ke,"node_modules")})}else{let Ze;if(e&2&&qf(n,"#")&&(Ze=_He(Ie,n,i,ct,d,E)),!Ze&&e&4&&(Ze=fHe(Ie,n,i,ct,d,E)),!Ze){if(n.includes(":")){X&&Df(u,N.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,PW(Ie));return}X&&Df(u,N.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,PW(Ie)),Ze=k2e(Ie,n,i,ct,d,E)}return Ie&4&&(Ze??(Ze=nme(n,ct))),Ze&&{value:Ze.value&&{resolved:Ze.value,isExternalLibraryImport:!0}}}}}function xLe(e,n){const i=vl(e,n),c=qc(i),u=Yf(c);return{path:u==="."||u===".."?Su(hf(i)):hf(i),parts:c}}function ALe(e,n,i){if(!n.realpath)return e;const c=hf(n.realpath(e));return i&&Df(n,N.Resolving_real_path_for_0_result_1,e,c),c}function dF(e,n,i,c,u){if(c.traceEnabled&&Df(c.host,N.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,PW(e)),!VD(n)){if(!i){const h=ws(n);O0(h,c.host)||(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),i=!0)}const d=ej(e,n,i,c);if(d){const h=u?d$(d.path):void 0,S=h?A6(h,!1,c):void 0;return fF(S,d)}}if(i||O0(n,c.host)||(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),i=!0),!(c.features&32))return SQ(e,n,i,c,u)}function RW(e){return e.includes(IP)}function d$(e,n){const i=hf(e),c=i.lastIndexOf(IP);if(c===-1)return;const u=c+IP.length;let d=CLe(i,u,n);return i.charCodeAt(u)===64&&(d=CLe(i,d,n)),i.slice(0,d)}function CLe(e,n,i){const c=e.indexOf(qp,n+1);return c===-1?i?e.length:n:c}function TQ(e,n,i,c){return Hpe(ej(e,n,i,c))}function ej(e,n,i,c){const u=A2e(e,n,i,c);if(u)return u;if(!(c.features&32)){const d=lHe(n,e,"",i,c);if(d)return d}}function A2e(e,n,i,c){if(!Jg(n).includes("."))return;let d=wg(n);d===n&&(d=n.substring(0,n.lastIndexOf(".")));const h=n.substring(d.length);return c.traceEnabled&&Df(c.host,N.File_name_0_has_a_1_extension_stripping_it,n,h),lHe(d,e,h,i,c)}function DLe(e,n,i,c){return e&1&&pv(n,SG)||e&4&&pv(n,oJ)?p$(n,i,c)!==void 0?{path:n,ext:PH(n),resolvedUsingTsExtension:void 0}:void 0:c.isConfigLookup&&e===8&&mm(n,".json")?p$(n,i,c)!==void 0?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0:A2e(e,n,i,c)}function lHe(e,n,i,c,u){if(!c){const h=ws(e);h&&(c=!O0(h,u.host))}switch(i){case".mjs":case".mts":case".d.mts":return n&1&&d(".mts",i===".mts"||i===".d.mts")||n&4&&d(".d.mts",i===".mts"||i===".d.mts")||n&2&&d(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return n&1&&d(".cts",i===".cts"||i===".d.cts")||n&4&&d(".d.cts",i===".cts"||i===".d.cts")||n&2&&d(".cjs")||void 0;case".json":return n&4&&d(".d.json.ts")||n&8&&d(".json")||void 0;case".tsx":case".jsx":return n&1&&(d(".tsx",i===".tsx")||d(".ts",i===".tsx"))||n&4&&d(".d.ts",i===".tsx")||n&2&&(d(".jsx")||d(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return n&1&&(d(".ts",i===".ts"||i===".d.ts")||d(".tsx",i===".ts"||i===".d.ts"))||n&4&&d(".d.ts",i===".ts"||i===".d.ts")||n&2&&(d(".js")||d(".jsx"))||u.isConfigLookup&&d(".json")||void 0;default:return n&4&&!Zb(e+i)&&d(`.d${i}.ts`)||void 0}function d(h,S){const E=p$(e+h,c,u);return E===void 0?void 0:{path:E,ext:h,resolvedUsingTsExtension:!u.candidateIsFromPackageJsonField&&S}}}function p$(e,n,i){var c;if(!((c=i.compilerOptions.moduleSuffixes)!=null&&c.length))return eme(e,n,i);const u=OT(e)??"",d=u?eW(e,u):e;return Ot(i.compilerOptions.moduleSuffixes,h=>eme(d+h+u,n,i))}function eme(e,n,i){var c;if(!n){if(i.host.fileExists(e))return i.traceEnabled&&Df(i.host,N.File_0_exists_use_it_as_a_name_resolution_result,e),e;i.traceEnabled&&Df(i.host,N.File_0_does_not_exist,e)}(c=i.failedLookupLocations)==null||c.push(e)}function SQ(e,n,i,c,u=!0){const d=u?A6(n,i,c):void 0,h=d&&d.contents.packageJsonContent,S=d&&EQ(d,c);return fF(d,D2e(e,n,i,c,h,S))}function s4(e,n,i,c,u){if(!u&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let d;const h=5|(u?2:0),S=Xpe(n),E=lae(c==null?void 0:c.getPackageJsonInfoCache(),i,n);E.conditions=_F(n),E.requestContainingDirectory=e.packageDirectory;const P=D2e(h,e.packageDirectory,!1,E,e.contents.packageJsonContent,EQ(e,E));if(d=ur(d,P==null?void 0:P.path),S&8&&e.contents.packageJsonContent.exports){const k=th([_F(n,99),_F(n,1)],fv);for(const F of k){const $={...E,failedLookupLocations:[],conditions:F,host:i},J=C2e(e,e.contents.packageJsonContent.exports,$,h);if(J)for(const X of J)d=ST(d,X.path)}}return e.contents.resolvedEntrypoints=d||!1}function C2e(e,n,i,c){let u;if(ls(n))for(const h of n)d(h);else if(typeof n=="object"&&n!==null&&xQ(n))for(const h in n)d(n[h]);else d(n);return u;function d(h){var S,E;if(typeof h=="string"&&qf(h,"./"))if(h.includes("*")&&i.host.readDirectory){if(h.indexOf("*")!==h.lastIndexOf("*"))return!1;i.host.readDirectory(e.packageDirectory,gQ(c),void 0,[Zb(h)?h.replace("*","**/*"):Vre(h.replace("*","**/*"),TY(h))]).forEach(P=>{u=ST(u,{path:P,ext:t7(P),resolvedUsingTsExtension:void 0})})}else{const P=qc(h).slice(2);if(P.includes("..")||P.includes(".")||P.includes("node_modules"))return!1;const k=vl(e.packageDirectory,h),F=vf(k,(E=(S=i.host).getCurrentDirectory)==null?void 0:E.call(S)),$=DLe(c,F,!1,i);if($)return u=ST(u,$,(J,X)=>J.path===X.path),!0}else if(Array.isArray(h)){for(const P of h)if(d(P))return!0}else if(typeof h=="object"&&h!==null)return Ot(ET(h),P=>{if(P==="default"||ni(i.conditions,P)||AQ(i.conditions,P))return d(h[P]),!0})}}function lae(e,n,i){return{host:n,compilerOptions:i,traceEnabled:DR(i,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Yn,requestContainingDirectory:void 0,reportDiagnostic:ku,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function m$(e,n){const i=qc(e);for(i.pop();i.length>0;){const c=A6(Iy(i),!1,n);if(c)return c;i.pop()}}function EQ(e,n){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=eHe(e.contents.packageJsonContent,n)||!1),e.contents.versionPaths||void 0}function A6(e,n,i){var c,u,d,h,S,E;const{host:P,traceEnabled:k}=i,F=vl(e,"package.json");if(n){(c=i.failedLookupLocations)==null||c.push(F);return}const $=(u=i.packageJsonInfoCache)==null?void 0:u.getPackageJsonInfo(F);if($!==void 0){if(typeof $!="boolean")return k&&Df(P,N.File_0_exists_according_to_earlier_cached_lookups,F),(d=i.affectingLocations)==null||d.push(F),$.packageDirectory===e?$:{packageDirectory:e,contents:$.contents};$&&k&&Df(P,N.File_0_does_not_exist_according_to_earlier_cached_lookups,F),(h=i.failedLookupLocations)==null||h.push(F);return}const J=O0(e,P);if(J&&P.fileExists(F)){const X=e3(F,P);k&&Df(P,N.Found_package_json_at_0,F);const ie={packageDirectory:e,contents:{packageJsonContent:X,versionPaths:void 0,resolvedEntrypoints:void 0}};return i.packageJsonInfoCache&&!i.packageJsonInfoCache.isReadonly&&i.packageJsonInfoCache.setPackageJsonInfo(F,ie),(S=i.affectingLocations)==null||S.push(F),ie}else J&&k&&Df(P,N.File_0_does_not_exist,F),i.packageJsonInfoCache&&!i.packageJsonInfoCache.isReadonly&&i.packageJsonInfoCache.setPackageJsonInfo(F,J),(E=i.failedLookupLocations)==null||E.push(F)}function D2e(e,n,i,c,u,d){let h;u&&(c.isConfigLookup?h=Nst(u,n,c):h=e&4&&$pe(u,n,c)||e&7&&wst(u,n,c)||void 0);const S=($,J,X,ie)=>{const ae=p$(J,X,ie);if(ae){const Pe=Wst($,ae);if(Pe)return Hpe(Pe);ie.traceEnabled&&Df(ie.host,N.File_0_has_an_unsupported_extension_so_skipping_it,ae)}const ve=$===4?5:$,we=ie.features,Fe=ie.candidateIsFromPackageJsonField;ie.candidateIsFromPackageJsonField=!0,(u==null?void 0:u.type)!=="module"&&(ie.features&=-33);const et=dF(ve,J,X,ie,!1);return ie.features=we,ie.candidateIsFromPackageJsonField=Fe,et},E=h?!O0(ws(h),c.host):void 0,P=i||!O0(n,c.host),k=vl(n,c.isConfigLookup?"tsconfig":"index");if(d&&(!h||OE(n,h))){const $=sP(n,h||k,!1);c.traceEnabled&&Df(c.host,N.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.version,At,$);const J=dae(e,$,n,d.paths,void 0,S,E||P,c);if(J)return bLe(J.value)}const F=h&&bLe(S(e,h,E,c));if(F)return F;if(!(c.features&32))return ej(e,k,P,c)}function Wst(e,n,i){const c=OT(n);return c!==void 0&&uae(e,c)?{path:n,ext:c,resolvedUsingTsExtension:i}:void 0}function uae(e,n){return e&2&&(n===".js"||n===".jsx"||n===".mjs"||n===".cjs")||e&1&&(n===".ts"||n===".tsx"||n===".mts"||n===".cts")||e&4&&(n===".d.ts"||n===".d.mts"||n===".d.cts")||e&8&&n===".json"||!1}function fae(e){let n=e.indexOf(qp);return e[0]==="@"&&(n=e.indexOf(qp,n+1)),n===-1?{packageName:e,rest:""}:{packageName:e.slice(0,n),rest:e.slice(n+1)}}function xQ(e){return jr(ET(e),n=>qf(n,"."))}function uHe(e){return!gt(ET(e),n=>qf(n,"."))}function fHe(e,n,i,c,u,d){var h,S;const E=vf(vl(i,"dummy"),(S=(h=c.host).getCurrentDirectory)==null?void 0:S.call(h)),P=m$(E,c);if(!P||!P.contents.packageJsonContent.exports||typeof P.contents.packageJsonContent.name!="string")return;const k=qc(n),F=qc(P.contents.packageJsonContent.name);if(!jr(F,(ae,ve)=>k[ve]===ae))return;const $=k.slice(F.length),J=Nt($)?`.${qp}${$.join(qp)}`:".";if(TP(c.compilerOptions)&&!RW(i))return g$(P,e,J,c,u,d);const X=e&5,ie=e&-6;return g$(P,X,J,c,u,d)||g$(P,ie,J,c,u,d)}function g$(e,n,i,c,u,d){if(e.contents.packageJsonContent.exports){if(i==="."){let h;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&uHe(e.contents.packageJsonContent.exports)?h=e.contents.packageJsonContent.exports:ef(e.contents.packageJsonContent.exports,".")&&(h=e.contents.packageJsonContent.exports["."]),h)return kLe(n,c,u,d,i,e,!1)(h,"",!1,".")}else if(xQ(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return c.traceEnabled&&Df(c.host,N.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,e.packageDirectory),C2(void 0);const h=ILe(n,c,u,d,i,e.contents.packageJsonContent.exports,e,!1);if(h)return h}return c.traceEnabled&&Df(c.host,N.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,e.packageDirectory),C2(void 0)}}function _He(e,n,i,c,u,d){var h,S;if(n==="#"||qf(n,"#/"))return c.traceEnabled&&Df(c.host,N.Invalid_import_specifier_0_has_no_possible_resolutions,n),C2(void 0);const E=vf(vl(i,"dummy"),(S=(h=c.host).getCurrentDirectory)==null?void 0:S.call(h)),P=m$(E,c);if(!P)return c.traceEnabled&&Df(c.host,N.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,E),C2(void 0);if(!P.contents.packageJsonContent.imports)return c.traceEnabled&&Df(c.host,N.package_json_scope_0_has_no_imports_defined,P.packageDirectory),C2(void 0);const k=ILe(e,c,u,d,n,P.contents.packageJsonContent.imports,P,!0);return k||(c.traceEnabled&&Df(c.host,N.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,P.packageDirectory),C2(void 0))}function I2e(e,n){const i=e.indexOf("*"),c=n.indexOf("*"),u=i===-1?e.length:i+1,d=c===-1?n.length:c+1;return u>d?-1:d>u||i===-1?1:c===-1||e.length>n.length?-1:n.length>e.length?1:0}function ILe(e,n,i,c,u,d,h,S){const E=kLe(e,n,i,c,u,h,S);if(!h_(u,qp)&&!u.includes("*")&&ef(d,u)){const F=d[u];return E(F,"",!1,u)}const P=fN(gi(ET(d),F=>F.includes("*")||h_(F,"/")),I2e);for(const F of P)if(n.features&16&&k(F,u)){const $=d[F],J=F.indexOf("*"),X=u.substring(F.substring(0,J).length,u.length-(F.length-1-J));return E($,X,!0,F)}else if(h_(F,"*")&&qf(u,F.substring(0,F.length-1))){const $=d[F],J=u.substring(F.length-1);return E($,J,!0,F)}else if(qf(u,F)){const $=d[F],J=u.substring(F.length);return E($,J,!1,F)}function k(F,$){if(h_(F,"*"))return!1;const J=F.indexOf("*");return J===-1?!1:qf($,F.substring(0,J))&&h_($,F.substring(J+1))}}function kLe(e,n,i,c,u,d,h){return S;function S(E,P,k,F){if(typeof E=="string"){if(!k&&P.length>0&&!h_(E,"/"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);if(!qf(E,"./")){if(h&&!qf(E,"../")&&!qf(E,"/")&&!nE(E)){const Pe=k?E.replace(/\*/g,P):E+P;ix(n,N.Using_0_subpath_1_with_target_2,"imports",F,Pe),ix(n,N.Resolving_module_0_from_1,Pe,d.packageDirectory+"/");const dt=wW(n.features,Pe,d.packageDirectory+"/",n.compilerOptions,n.host,i,e,!1,c,n.conditions);return C2(dt.resolvedModule?{path:dt.resolvedModule.resolvedFileName,extension:dt.resolvedModule.extension,packageId:dt.resolvedModule.packageId,originalPath:dt.resolvedModule.originalPath,resolvedUsingTsExtension:dt.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0)}const ae=(V2(E)?qc(E).slice(1):qc(E)).slice(1);if(ae.includes("..")||ae.includes(".")||ae.includes("node_modules"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);const ve=vl(d.packageDirectory,E),we=qc(P);if(we.includes("..")||we.includes(".")||we.includes("node_modules"))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);n.traceEnabled&&Df(n.host,N.Using_0_subpath_1_with_target_2,h?"imports":"exports",F,k?E.replace(/\*/g,P):E+P);const Fe=$(k?ve.replace(/\*/g,P):ve+P),et=X(Fe,P,vl(d.packageDirectory,"package.json"),h);return et||C2(fF(d,DLe(e,Fe,!1,n)))}else if(typeof E=="object"&&E!==null)if(Array.isArray(E)){if(!Nt(E))return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);for(const ie of E){const ae=S(ie,P,k,F);if(ae)return ae}}else{ix(n,N.Entering_conditional_exports);for(const ie of ET(E))if(ie==="default"||n.conditions.includes(ie)||AQ(n.conditions,ie)){ix(n,N.Matched_0_condition_1,h?"imports":"exports",ie);const ae=E[ie],ve=S(ae,P,k,F);if(ve)return ix(n,N.Resolved_under_condition_0,ie),ix(n,N.Exiting_conditional_exports),ve;ix(n,N.Failed_to_resolve_under_condition_0,ie)}else ix(n,N.Saw_non_matching_condition_0,ie);ix(n,N.Exiting_conditional_exports);return}else if(E===null)return n.traceEnabled&&Df(n.host,N.package_json_scope_0_explicitly_maps_specifier_1_to_null,d.packageDirectory,u),C2(void 0);return n.traceEnabled&&Df(n.host,N.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,d.packageDirectory,u),C2(void 0);function $(ie){var ae,ve;return ie===void 0?ie:vf(ie,(ve=(ae=n.host).getCurrentDirectory)==null?void 0:ve.call(ae))}function J(ie,ae){return Su(vl(ie,ae))}function X(ie,ae,ve,we){var Fe,et,Pe,dt;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!ie.includes("/node_modules/")&&(!n.compilerOptions.configFile||OE(d.packageDirectory,$(n.compilerOptions.configFile.fileName),!IQ(n)))){const ct=QC({useCaseSensitiveFileNames:()=>IQ(n)}),Ct=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){const Lt=$(zW(n.compilerOptions,()=>[],((et=(Fe=n.host).getCurrentDirectory)==null?void 0:et.call(Fe))||"",ct));Ct.push(Lt)}else if(n.requestContainingDirectory){const Lt=$(vl(n.requestContainingDirectory,"index.ts")),Ze=$(zW(n.compilerOptions,()=>[Lt,$(ve)],((dt=(Pe=n.host).getCurrentDirectory)==null?void 0:dt.call(Pe))||"",ct));Ct.push(Ze);let Ke=Su(Ze);for(;Ke&&Ke.length>1;){const st=qc(Ke);st.pop();const It=Iy(st);Ct.unshift(It),Ke=Su(It)}}Ct.length>1&&n.reportDiagnostic(W_(we?N.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,ae===""?".":ae,ve));for(const Lt of Ct){const Ze=Ie(Lt);for(const Ke of Ze)if(OE(Ke,ie,!IQ(n))){const st=ie.slice(Ke.length+1),It=vl(Lt,st),Yt=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Et of Yt)if(mm(It,Et)){const at=Mde(It);for(const Qt of at){if(!uae(e,Qt))continue;const nn=Vre(It,Qt,Et,!IQ(n));if(n.host.fileExists(nn))return C2(fF(d,DLe(e,nn,!1,n)))}}}}}return;function Ie(ct){var Ct,Lt;const Ze=n.compilerOptions.configFile?((Lt=(Ct=n.host).getCurrentDirectory)==null?void 0:Lt.call(Ct))||"":ct,Ke=[];return n.compilerOptions.declarationDir&&Ke.push($(J(Ze,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&Ke.push($(J(Ze,n.compilerOptions.outDir))),Ke}}}}function AQ(e,n){if(!e.includes("types")||!qf(n,"types@"))return!1;const i=yN.tryParse(n.substring(6));return i?i.test(At):!1}function k2e(e,n,i,c,u,d){return tme(e,n,i,c,!1,u,d)}function dHe(e,n,i){return tme(4,e,n,i,!0,void 0,void 0)}function tme(e,n,i,c,u,d,h){const S=c.features===0?void 0:c.features&32?99:1,E=e&5,P=e&-6;if(E){ix(c,N.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,PW(E));const F=k(E);if(F)return F}if(P&&!u)return ix(c,N.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,PW(P)),k(P);function k(F){return jC($1(i),$=>{if(Jg($)!=="node_modules"){const J=rx(d,n,S,$,h,c);return J||C2(CQ(F,n,$,c,u,d,h))}})}}function CQ(e,n,i,c,u,d,h){const S=vl(i,"node_modules"),E=O0(S,c.host);if(!E&&c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,S),!u){const P=_ae(e,n,S,E,c,d,h);if(P)return P}if(e&4){const P=vl(S,"@types");let k=E;return E&&!O0(P,c.host)&&(c.traceEnabled&&Df(c.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,P),k=!1),_ae(4,PLe(n,c),P,k,c,d,h)}}function _ae(e,n,i,c,u,d,h){var S,E;const P=hf(vl(i,n)),{packageName:k,rest:F}=fae(n),$=vl(i,k);let J,X=A6(P,!c,u);if(F!==""&&X&&(!(u.features&8)||!ef(((S=J=A6($,!c,u))==null?void 0:S.contents.packageJsonContent)??Yn,"exports"))){const ve=ej(e,P,!c,u);if(ve)return Hpe(ve);const we=D2e(e,P,!c,u,X.contents.packageJsonContent,EQ(X,u));return fF(X,we)}const ie=(ve,we,Fe,et)=>{let Pe=(F||!(et.features&32))&&ej(ve,we,Fe,et)||D2e(ve,we,Fe,et,X&&X.contents.packageJsonContent,X&&EQ(X,et));return!Pe&&X&&(X.contents.packageJsonContent.exports===void 0||X.contents.packageJsonContent.exports===null)&&et.features&32&&(Pe=ej(ve,vl(we,"index.js"),Fe,et)),fF(X,Pe)};if(F!==""&&(X=J??A6($,!c,u)),X&&X.contents.packageJsonContent.exports&&u.features&8)return(E=g$(X,e,vl(".",F),u,d,h))==null?void 0:E.value;const ae=F!==""&&X?EQ(X,u):void 0;if(ae){u.traceEnabled&&Df(u.host,N.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ae.version,At,F);const ve=c&&O0($,u.host),we=dae(e,F,$,ae.paths,void 0,ie,!ve,u);if(we)return we.value}return ie(e,P,!c,u)}function dae(e,n,i,c,u,d,h,S){u||(u=qH(c));const E=aoe(u,n);if(E){const P=As(E)?void 0:pTe(E,n),k=As(E)?E:_v(E);return S.traceEnabled&&Df(S.host,N.Module_name_0_matched_pattern_1,n,k),{value:Ot(c[k],$=>{const J=P?$.replace("*",P):$,X=hf(vl(i,J));S.traceEnabled&&Df(S.host,N.Trying_substitution_0_candidate_module_location_Colon_1,$,J);const ie=OT($);if(ie!==void 0){const ae=p$(X,h,S);if(ae!==void 0)return Hpe({path:ae,ext:ie,resolvedUsingTsExtension:void 0})}return d(e,X,h||!O0(ws(X),S.host),S)})}}}function PLe(e,n){const i=tj(e);return n.traceEnabled&&i!==e&&Df(n.host,N.Scoped_package_detected_looking_in_0,i),i}function pae(e){return`@types/${tj(e)}`}function tj(e){if(qf(e,"@")){const n=e.replace(qp,N2e);if(n!==e)return n.slice(1)}return e}function c4(e){const n=xf(e,"@types/");return n!==e?DQ(n):e}function DQ(e){return e.includes(N2e)?"@"+e.replace(N2e,qp):e}function rx(e,n,i,c,u,d){const h=e&&e.getFromNonRelativeNameCache(n,i,c,u);if(h)return d.traceEnabled&&Df(d.host,N.Resolution_for_module_0_was_found_in_cache_from_location_1,n,c),d.resultFromCache=h,{value:h.resolvedModule&&{path:h.resolvedModule.resolvedFileName,originalPath:h.resolvedModule.originalPath||!0,extension:h.resolvedModule.extension,packageId:h.resolvedModule.packageId,resolvedUsingTsExtension:h.resolvedModule.resolvedUsingTsExtension}}}function C6(e,n,i,c,u,d){const h=DR(i,c),S=[],E=[],P=ws(n),k=[],F={compilerOptions:i,host:c,traceEnabled:h,failedLookupLocations:S,affectingLocations:E,packageJsonInfoCache:u,features:0,conditions:[],requestContainingDirectory:P,reportDiagnostic:X=>void k.push(X),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},$=J(5)||J(2|(i.resolveJsonModule?8:0));return Jpe(e,$&&$.value,($==null?void 0:$.value)&&RW($.value.path),S,E,k,F,u);function J(X){const ie=iHe(X,e,P,TQ,F);if(ie)return{value:ie};if(Kv(e)){const ae=hf(vl(P,e));return C2(TQ(X,ae,!1,F))}else{const ae=jC(P,ve=>{const we=rx(u,e,void 0,ve,d,F);if(we)return we;const Fe=hf(vl(ve,e));return C2(TQ(X,Fe,!1,F))});if(ae)return ae;if(X&5){let ve=dHe(e,P,F);return X&4&&(ve??(ve=nme(e,F))),ve}}}}function nme(e,n){if(n.compilerOptions.typeRoots)for(const i of n.compilerOptions.typeRoots){const c=b2e(i,e,n),u=O0(i,n.host);!u&&n.traceEnabled&&Df(n.host,N.Directory_0_does_not_exist_skipping_all_lookups_in_it,i);const d=ej(4,c,!u,n);if(d){const S=d$(d.path),E=S?A6(S,!1,n):void 0;return C2(fF(E,d))}const h=SQ(4,c,!u,n);if(h)return C2(h)}}function MW(e,n){return!!e.allowImportingTsExtensions||n&&Zb(n)}function P2e(e,n,i,c,u,d){const h=DR(i,c);h&&Df(c,N.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,e,u);const S=[],E=[],P=[],k={compilerOptions:i,host:c,traceEnabled:h,failedLookupLocations:S,affectingLocations:E,packageJsonInfoCache:d,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:$=>void P.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},F=CQ(4,e,u,k,!1,void 0,void 0);return YUe(F,!0,S,E,P,k.resultFromCache,void 0)}function C2(e){return e!==void 0?{value:e}:void 0}function ix(e,n,...i){e.traceEnabled&&Df(e.host,n,...i)}function IQ(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var NLe,kR,mae,IP,N2e,nj=G({"src/compiler/moduleNameResolver.ts"(){md(),kR=vl("node_modules","@types"),mae=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(mae||{}),IP="/node_modules/",N2e="__"}});function YN(e,n){return e.body&&!e.body.parent&&(kl(e.body,e),Q2(e.body,!1)),e.body?wLe(e.body,n):1}function wLe(e,n=new Map){const i=vm(e);if(n.has(i))return n.get(i)||0;n.set(i,void 0);const c=Bst(e,n);return n.set(i,c),c}function Bst(e,n){switch(e.kind){case 264:case 265:return 0;case 266:if(G8(e))return 2;break;case 272:case 271:if(!ul(e,32))return 0;break;case 278:const i=e;if(!i.moduleSpecifier&&i.exportClause&&i.exportClause.kind===279){let c=0;for(const u of i.exportClause.elements){const d=pHe(u,n);if(d>c&&(c=d),c===1)return c}return c}break;case 268:{let c=0;return s_(e,u=>{const d=wLe(u,n);switch(d){case 0:return;case 2:c=2;return;case 1:return c=1,!0;default:re.assertNever(d)}}),c}case 267:return YN(e,n);case 80:if(e.flags&4096)return 0}return 1}function pHe(e,n){const i=e.propertyName||e.name;let c=e.parent;for(;c;){if(Ou(c)||kh(c)||Nu(c)){const u=c.statements;let d;for(const h of u)if(ec(h,i)){h.parent||(kl(h,c),Q2(h,!1));const S=wLe(h,n);if((d===void 0||S>d)&&(d=S),d===1)return d;h.kind===271&&(d=1)}if(d!==void 0)return d}c=c.parent}return 1}function rj(e){return re.attachFlowNodeDebugInfo(e),e}function w3(e,n){var i,c;cf("beforeBind"),(i=Zh)==null||i.logStartBindFile(""+e.fileName),mHe(e,n),(c=Zh)==null||c.logStopBindFile(),cf("afterBind"),Tb("Bind","beforeBind","afterBind")}function RLe(){var e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt=!1,Ie=0,ct,Ct,Lt={flags:1},Ze={flags:1},Ke=ze();return It;function st(Ee,Gt,...sr){return Ud(ts(Ee)||e,Ee,Gt,...sr)}function It(Ee,Gt){var sr,Ii;e=Ee,n=Gt,i=iu(n),Pe=Yt(e,Gt),Ct=new Set,Ie=0,ct=W0.getSymbolConstructor(),re.attachFlowNodeDebugInfo(Lt),re.attachFlowNodeDebugInfo(Ze),e.locals||((sr=ps)==null||sr.push(ps.Phase.Bind,"bindSourceFile",{path:e.path},!0),Xn(e),(Ii=ps)==null||Ii.pop(),e.symbolCount=Ie,e.classifiableNames=Ct,Og()),e=void 0,n=void 0,i=void 0,c=void 0,u=void 0,d=void 0,h=void 0,S=void 0,E=void 0,P=!1,k=void 0,F=void 0,$=void 0,J=void 0,X=void 0,ie=void 0,ae=void 0,we=void 0,Fe=!1,dt=!1,et=0}function Yt(Ee,Gt){return hv(Gt,"alwaysStrict")&&!Ee.isDeclarationFile?!0:!!Ee.externalModuleIndicator}function Et(Ee,Gt){return Ie++,new ct(Ee,Gt)}function at(Ee,Gt,sr){Ee.flags|=sr,Gt.symbol=Ee,Ee.declarations=ST(Ee.declarations,Gt),sr&1955&&!Ee.exports&&(Ee.exports=zd()),sr&6240&&!Ee.members&&(Ee.members=zd()),Ee.constEnumOnlyModule&&Ee.flags&304&&(Ee.constEnumOnlyModule=!1),sr&111551&&Cie(Ee,Gt)}function Qt(Ee){if(Ee.kind===277)return Ee.isExportEquals?"export=":"default";const Gt=i_(Ee);if(Gt){if(dh(Ee)){const sr=K2(Gt);return JC(Ee)?"__global":`"${sr}"`}if(Gt.kind===167){const sr=Gt.expression;if(Ox(sr))return ey(sr.text);if(yH(sr))return Cf(sr.operator)+sr.operand.text;re.fail("Only computed properties with literal names have declaration names")}if(Lu(Gt)){const sr=$b(Ee);if(!sr)return;const Ii=sr.symbol;return WN(Ii,Gt.escapedText)}return Fm(Gt)?bR(Gt):Qv(Gt)?nI(Gt):void 0}switch(Ee.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(jy(Ee)===2)return"export=";re.fail("Unknown binary declaration kind");break;case 324:return VL(Ee)?"__new":"__call";case 169:return re.assert(Ee.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${re.formatSyntaxKind(Ee.parent.kind)}, expected JSDocFunctionType`),"arg"+Ee.parent.parameters.indexOf(Ee)}}function nn(Ee){return mp(Ee)?hm(Ee.name):Ic(re.checkDefined(Qt(Ee)))}function Rn(Ee,Gt,sr,Ii,Ja,wa,wi){re.assert(wi||!tI(sr));const Vl=ul(sr,2048)||my(sr)&&sr.name.escapedText==="default",Uf=wi?"__computed":Vl&&Gt?"default":Qt(sr);let Y_;if(Uf===void 0)Y_=Et(0,"__missing");else if(Y_=Ee.get(Uf),Ii&2885600&&Ct.add(Uf),!Y_)Ee.set(Uf,Y_=Et(0,Uf)),wa&&(Y_.isReplaceableByMethod=!0);else{if(wa&&!Y_.isReplaceableByMethod)return Y_;if(Y_.flags&Ja){if(Y_.isReplaceableByMethod)Ee.set(Uf,Y_=Et(0,Uf));else if(!(Ii&3&&Y_.flags&67108864)){mp(sr)&&kl(sr.name,sr);let Fg=Y_.flags&2?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0,sv=!0;(Y_.flags&384||Ii&384)&&(Fg=N.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,sv=!1);let vy=!1;Nt(Y_.declarations)&&(Vl||Y_.declarations&&Y_.declarations.length&&sr.kind===277&&!sr.isExportEquals)&&(Fg=N.A_module_cannot_have_multiple_default_exports,sv=!1,vy=!0);const _b=[];z0(sr)&&ny(sr.type)&&ul(sr,32)&&Y_.flags&2887656&&_b.push(st(sr,N.Did_you_mean_0,`export type { ${Ic(sr.name.escapedText)} }`));const f_=i_(sr)||sr;Ot(Y_.declarations,(i1,n2)=>{const Vv=i_(i1)||i1,su=sv?st(Vv,Fg,nn(i1)):st(Vv,Fg);e.bindDiagnostics.push(vy?ml(su,st(f_,n2===0?N.Another_export_default_is_here:N.and_here)):su),vy&&_b.push(st(Vv,N.The_first_export_default_is_here))});const zh=sv?st(f_,Fg,nn(sr)):st(f_,Fg);e.bindDiagnostics.push(ml(zh,..._b)),Y_=Et(0,Uf)}}}return at(Y_,sr,Ii),Y_.parent?re.assert(Y_.parent===Gt,"Existing symbol parent should match new one"):Y_.parent=Gt,Y_}function cn(Ee,Gt,sr){const Ii=!!(Eb(Ee)&32)||qt(Ee);if(Gt&2097152)return Ee.kind===281||Ee.kind===271&&Ii?Rn(u.symbol.exports,u.symbol,Ee,Gt,sr):(re.assertNode(u,XD),Rn(u.locals,void 0,Ee,Gt,sr));if(b2(Ee)&&re.assert(Cs(Ee)),!dh(Ee)&&(Ii||u.flags&128)){if(!XD(u)||!u.locals||ul(Ee,2048)&&!Qt(Ee))return Rn(u.symbol.exports,u.symbol,Ee,Gt,sr);const Ja=Gt&111551?1048576:0,wa=Rn(u.locals,void 0,Ee,Ja,sr);return wa.exportSymbol=Rn(u.symbol.exports,u.symbol,Ee,Gt,sr),Ee.localSymbol=wa,wa}else return re.assertNode(u,XD),Rn(u.locals,void 0,Ee,Gt,sr)}function qt(Ee){if(Ee.parent&&dy(Ee)&&(Ee=Ee.parent),!b2(Ee))return!1;if(!jx(Ee)&&Ee.fullName)return!0;const Gt=i_(Ee);return Gt?!!(NS(Gt.parent)&&Qm(Gt.parent)||PT(Gt.parent)&&Eb(Gt.parent)&32):!1}function Kt(Ee,Gt){const sr=u,Ii=d,Ja=h;if(Gt&1?(Ee.kind!==219&&(d=u),u=h=Ee,Gt&32&&(u.locals=zd(),bl(u))):Gt&2&&(h=Ee,Gt&32&&(h.locals=void 0)),Gt&4){const wa=k,wi=F,Vl=$,Uf=J,Y_=ae,Fg=we,sv=Fe,vy=Gt&16&&!ul(Ee,1024)&&!Ee.asteriskToken&&!!v7(Ee)||Ee.kind===175;vy||(k=rj({flags:2}),Gt&144&&(k.node=Ee)),J=vy||Ee.kind===176||Cs(Ee)&&(Ee.kind===262||Ee.kind===218)?no():void 0,ae=void 0,F=void 0,$=void 0,we=void 0,Fe=!1,En(Ee),Ee.flags&=-5633,!(k.flags&1)&&Gt&8&&y2(Ee.body)&&(Ee.flags|=512,Fe&&(Ee.flags|=1024),Ee.endFlowNode=k),Ee.kind===312&&(Ee.flags|=et,Ee.endFlowNode=k),J&&(ki(J,k),k=qn(J),(Ee.kind===176||Ee.kind===175||Cs(Ee)&&(Ee.kind===262||Ee.kind===218))&&(Ee.returnFlowNode=k)),vy||(k=wa),F=wi,$=Vl,J=Uf,ae=Y_,we=Fg,Fe=sv}else Gt&64?(P=!1,En(Ee),re.assertNotNode(Ee,xn),Ee.flags=P?Ee.flags|256:Ee.flags&-257):En(Ee);u=sr,d=Ii,h=Ja}function wr(Ee){Wr(Ee,Gt=>Gt.kind===262?Xn(Gt):void 0),Wr(Ee,Gt=>Gt.kind!==262?Xn(Gt):void 0)}function Wr(Ee,Gt=Xn){Ee!==void 0&&Ot(Ee,Gt)}function jt(Ee){s_(Ee,Xn,Wr)}function En(Ee){const Gt=dt;if(dt=!1,Di(Ee)){jt(Ee),_i(Ee),dt=Gt;return}switch(Ee.kind>=243&&Ee.kind<=259&&!n.allowUnreachableCode&&(Ee.flowNode=k),Ee.kind){case 247:Cu(Ee);break;case 246:yf(Ee);break;case 248:w_(Ee);break;case 249:case 250:Eu(Ee);break;case 245:He(Ee);break;case 253:case 257:Hn(Ee);break;case 252:case 251:Pr(Ee);break;case 258:Bt(Ee);break;case 255:ln(Ee);break;case 269:Wn(Ee);break;case 296:$r(Ee);break;case 244:Ge(Ee);break;case 256:Ei(Ee);break;case 224:go(Ee);break;case 225:Ao(Ee);break;case 226:if(wy(Ee)){dt=Gt,Io(Ee);return}Ke(Ee);break;case 220:Ce(Ee);break;case 227:kt(Ee);break;case 260:Mt(Ee);break;case 211:case 212:Pc(Ee);break;case 213:hc(Ee);break;case 235:Cc(Ee);break;case 353:case 345:case 347:Nn(Ee);break;case 312:{wr(Ee.statements),Xn(Ee.endOfFileToken);break}case 241:case 268:wr(Ee.statements);break;case 208:ge(Ee);break;case 169:mn(Ee);break;case 210:case 209:case 303:case 230:dt=Gt;default:jt(Ee);break}_i(Ee),dt=Gt}function fr(Ee){switch(Ee.kind){case 80:case 81:case 110:case 211:case 212:return Vr(Ee);case 213:return Pn(Ee);case 217:case 235:return fr(Ee.expression);case 226:return Ki(Ee);case 224:return Ee.operator===54&&fr(Ee.operand);case 221:return fr(Ee.expression)}return!1}function Tr(Ee){return Uh(Ee)||(Ac(Ee)||E3(Ee)||fE(Ee))&&Tr(Ee.expression)||Ds(Ee)&&Ee.operatorToken.kind===28&&Tr(Ee.right)||Hm(Ee)&&(Ox(Ee.argumentExpression)||Tg(Ee.argumentExpression))&&Tr(Ee.expression)||Zv(Ee)&&Tr(Ee.left)}function Vr(Ee){return Tr(Ee)||uy(Ee)&&Vr(Ee.expression)}function Pn(Ee){if(Ee.arguments){for(const Gt of Ee.arguments)if(Vr(Gt))return!0}return!!(Ee.expression.kind===211&&Vr(Ee.expression.expression))}function Fr(Ee,Gt){return yk(Ee)&&io(Ee.expression)&&Cm(Gt)}function Ki(Ee){switch(Ee.operatorToken.kind){case 64:case 76:case 77:case 78:return Vr(Ee.left);case 35:case 36:case 37:case 38:return io(Ee.left)||io(Ee.right)||Fr(Ee.right,Ee.left)||Fr(Ee.left,Ee.right)||fy(Ee.right)&&fr(Ee.left)||fy(Ee.left)&&fr(Ee.right);case 104:return io(Ee.left);case 103:return fr(Ee.right);case 28:return fr(Ee.right)}return!1}function io(Ee){switch(Ee.kind){case 217:return io(Ee.expression);case 226:switch(Ee.operatorToken.kind){case 64:return io(Ee.left);case 28:return io(Ee.right)}}return Vr(Ee)}function no(){return rj({flags:4,antecedents:void 0})}function os(){return rj({flags:8,antecedents:void 0})}function Mo(Ee,Gt,sr){return rj({flags:1024,target:Ee,antecedents:Gt,antecedent:sr})}function $i(Ee){Ee.flags|=Ee.flags&2048?4096:2048}function ki(Ee,Gt){!(Gt.flags&1)&&!ni(Ee.antecedents,Gt)&&((Ee.antecedents||(Ee.antecedents=[])).push(Gt),$i(Gt))}function gc(Ee,Gt,sr){return Gt.flags&1?Gt:sr?(sr.kind===112&&Ee&64||sr.kind===97&&Ee&32)&&!BU(sr)&&!R8(sr.parent)?Lt:fr(sr)?($i(Gt),rj({flags:Ee,antecedent:Gt,node:sr})):Gt:Ee&32?Gt:Lt}function Wl(Ee,Gt,sr,Ii){return $i(Ee),rj({flags:128,antecedent:Ee,switchStatement:Gt,clauseStart:sr,clauseEnd:Ii})}function Jc(Ee,Gt,sr){$i(Gt);const Ii=rj({flags:Ee,antecedent:Gt,node:sr});return ae&&ki(ae,Ii),Ii}function au(Ee,Gt){return $i(Ee),rj({flags:512,antecedent:Ee,node:Gt})}function qn(Ee){const Gt=Ee.antecedents;return Gt?Gt.length===1?Gt[0]:Ee:Lt}function za(Ee){const Gt=Ee.parent;switch(Gt.kind){case 245:case 247:case 246:return Gt.expression===Ee;case 248:case 227:return Gt.condition===Ee}return!1}function Ia(Ee){for(;;)if(Ee.kind===217)Ee=Ee.expression;else if(Ee.kind===224&&Ee.operator===54)Ee=Ee.operand;else return DH(Ee)}function zi(Ee){return Wde(rg(Ee))}function na(Ee){for(;fE(Ee.parent)||vk(Ee.parent)&&Ee.parent.operator===54;)Ee=Ee.parent;return!za(Ee)&&!Ia(Ee.parent)&&!(uy(Ee.parent)&&Ee.parent.expression===Ee)}function _a(Ee,Gt,sr,Ii){const Ja=X,wa=ie;X=sr,ie=Ii,Ee(Gt),X=Ja,ie=wa}function us(Ee,Gt,sr){_a(Xn,Ee,Gt,sr),(!Ee||!zi(Ee)&&!Ia(Ee)&&!(uy(Ee)&&jz(Ee)))&&(ki(Gt,gc(32,k,Ee)),ki(sr,gc(64,k,Ee)))}function Au(Ee,Gt,sr){const Ii=F,Ja=$;F=Gt,$=sr,Xn(Ee),F=Ii,$=Ja}function Qu(Ee,Gt){let sr=we;for(;sr&&Ee.parent.kind===256;)sr.continueTarget=Gt,sr=sr.next,Ee=Ee.parent;return Gt}function Cu(Ee){const Gt=Qu(Ee,os()),sr=no(),Ii=no();ki(Gt,k),k=Gt,us(Ee.expression,sr,Ii),k=qn(sr),Au(Ee.statement,Ii,Gt),ki(Gt,k),k=qn(Ii)}function yf(Ee){const Gt=os(),sr=Qu(Ee,no()),Ii=no();ki(Gt,k),k=Gt,Au(Ee.statement,Ii,sr),ki(sr,k),k=qn(sr),us(Ee.expression,Gt,Ii),k=qn(Ii)}function w_(Ee){const Gt=Qu(Ee,os()),sr=no(),Ii=no();Xn(Ee.initializer),ki(Gt,k),k=Gt,us(Ee.condition,sr,Ii),k=qn(sr),Au(Ee.statement,Ii,Gt),Xn(Ee.incrementor),ki(Gt,k),k=qn(Ii)}function Eu(Ee){const Gt=Qu(Ee,os()),sr=no();Xn(Ee.expression),ki(Gt,k),k=Gt,Ee.kind===250&&Xn(Ee.awaitModifier),ki(sr,k),Xn(Ee.initializer),Ee.initializer.kind!==261&&Sr(Ee.initializer),Au(Ee.statement,sr,Gt),ki(Gt,k),k=qn(sr)}function He(Ee){const Gt=no(),sr=no(),Ii=no();us(Ee.expression,Gt,sr),k=qn(Gt),Xn(Ee.thenStatement),ki(Ii,k),k=qn(sr),Xn(Ee.elseStatement),ki(Ii,k),k=qn(Ii)}function Hn(Ee){Xn(Ee.expression),Ee.kind===253&&(Fe=!0,J&&ki(J,k)),k=Lt}function dr(Ee){for(let Gt=we;Gt;Gt=Gt.next)if(Gt.name===Ee)return Gt}function Mr(Ee,Gt,sr){const Ii=Ee.kind===252?Gt:sr;Ii&&(ki(Ii,k),k=Lt)}function Pr(Ee){if(Xn(Ee.label),Ee.label){const Gt=dr(Ee.label.escapedText);Gt&&(Gt.referenced=!0,Mr(Ee,Gt.breakTarget,Gt.continueTarget))}else Mr(Ee,F,$)}function Bt(Ee){const Gt=J,sr=ae,Ii=no(),Ja=no();let wa=no();if(Ee.finallyBlock&&(J=Ja),ki(wa,k),ae=wa,Xn(Ee.tryBlock),ki(Ii,k),Ee.catchClause&&(k=qn(wa),wa=no(),ki(wa,k),ae=wa,Xn(Ee.catchClause),ki(Ii,k)),J=Gt,ae=sr,Ee.finallyBlock){const wi=no();wi.antecedents=Hi(Hi(Ii.antecedents,wa.antecedents),Ja.antecedents),k=wi,Xn(Ee.finallyBlock),k.flags&1?k=Lt:(J&&Ja.antecedents&&ki(J,Mo(wi,Ja.antecedents,k)),ae&&wa.antecedents&&ki(ae,Mo(wi,wa.antecedents,k)),k=Ii.antecedents?Mo(wi,Ii.antecedents,k):Lt)}else k=qn(Ii)}function ln(Ee){const Gt=no();Xn(Ee.expression);const sr=F,Ii=ve;F=Gt,ve=k,Xn(Ee.caseBlock),ki(Gt,k);const Ja=Ot(Ee.caseBlock.clauses,wa=>wa.kind===297);Ee.possiblyExhaustive=!Ja&&!Gt.antecedents,Ja||ki(Gt,Wl(ve,Ee,0,0)),F=sr,ve=Ii,k=qn(Gt)}function Wn(Ee){const Gt=Ee.clauses,sr=Ee.parent.expression.kind===112||fr(Ee.parent.expression);let Ii=Lt;for(let Ja=0;Jary(sr)||py(sr))}function G_(Ee){Ee.flags&33554432&&!Bl(Ee)?Ee.flags|=128:Ee.flags&=-129}function u_(Ee){if(G_(Ee),dh(Ee))if(ul(Ee,32)&&Nm(Ee,N.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),iY(Ee))xa(Ee);else{let Gt;if(Ee.name.kind===11){const{text:Ii}=Ee.name;Gt=c6(Ii),Gt===void 0&&Nm(Ee.name,N.Pattern_0_can_have_at_most_one_Asterisk_character,Ii)}const sr=Tc(Ee,512,110735);e.patternAmbientModules=ur(e.patternAmbientModules,Gt&&!As(Gt)?{pattern:Gt,symbol:sr}:void 0)}else{const Gt=xa(Ee);if(Gt!==0){const{symbol:sr}=Ee;sr.constEnumOnlyModule=!(sr.flags&304)&&Gt===2&&sr.constEnumOnlyModule!==!1}}}function xa(Ee){const Gt=YN(Ee),sr=Gt!==0;return Tc(Ee,sr?512:1024,sr?110735:0),Gt}function Ym(Ee){const Gt=Et(131072,Qt(Ee));at(Gt,Ee,131072);const sr=Et(2048,"__type");at(sr,Ee,2048),sr.members=zd(),sr.members.set(Gt.escapedName,Gt)}function mf(Ee){return xg(Ee,4096,"__object")}function Cp(Ee){return xg(Ee,4096,"__jsxAttributes")}function Yg(Ee,Gt,sr){return Tc(Ee,Gt,sr)}function xg(Ee,Gt,sr){const Ii=Et(Gt,sr);return Gt&106508&&(Ii.parent=u.symbol),at(Ii,Ee,Gt),Ii}function Wy(Ee,Gt,sr){switch(h.kind){case 267:cn(Ee,Gt,sr);break;case 312:if(aE(u)){cn(Ee,Gt,sr);break}default:re.assertNode(h,XD),h.locals||(h.locals=zd(),bl(h)),Rn(h.locals,void 0,Ee,Gt,sr)}}function Og(){if(!E)return;const Ee=u,Gt=S,sr=h,Ii=c,Ja=k;for(const wa of E){const wi=wa.parent.parent;u=gie(wi)||e,h=QD(wi)||e,k=rj({flags:2}),c=wa,Xn(wa.typeExpression);const Vl=i_(wa);if((jx(wa)||!wa.fullName)&&Vl&&NS(Vl.parent)){const Uf=Qm(Vl.parent);if(Uf){Ig(e.symbol,Vl.parent,Uf,!!Ua(Vl,Fg=>Ac(Fg)&&Fg.name.escapedText==="prototype"),!1);const Y_=u;switch(XM(Vl.parent)){case 1:case 2:aE(e)?u=e:u=void 0;break;case 4:u=Vl.parent.expression;break;case 3:u=Vl.parent.expression.name;break;case 5:u=R3(e,Vl.parent.expression)?e:Ac(Vl.parent.expression)?Vl.parent.expression.name:Vl.parent.expression;break;case 0:return re.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&cn(wa,524288,788968),u=Y_}}else jx(wa)||!wa.fullName||wa.fullName.kind===80?(c=wa.parent,Wy(wa,524288,788968)):Xn(wa.fullName)}u=Ee,S=Gt,h=sr,c=Ii,k=Ja}function pl(Ee){if(!e.parseDiagnostics.length&&!(Ee.flags&33554432)&&!(Ee.flags&16777216)&&!kde(Ee)){const Gt=uP(Ee);if(Gt===void 0)return;Pe&&Gt>=119&&Gt<=127?e.bindDiagnostics.push(st(Ee,R_(Ee),hm(Ee))):Gt===135?Bv(e)&&GE(Ee)?e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,hm(Ee))):Ee.flags&65536&&e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,hm(Ee))):Gt===127&&Ee.flags&16384&&e.bindDiagnostics.push(st(Ee,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,hm(Ee)))}}function R_(Ee){return $b(Ee)?N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:N.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function og(Ee){Ee.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(st(Ee,N.constructor_is_a_reserved_word,hm(Ee))))}function km(Ee){Pe&&ib(Ee.left)&&pk(Ee.operatorToken.kind)&&hh(Ee,Ee.left)}function M_(Ee){Pe&&Ee.variableDeclaration&&hh(Ee,Ee.variableDeclaration.name)}function oy(Ee){if(Pe&&Ee.expression.kind===80){const Gt=BL(e,Ee.expression);e.bindDiagnostics.push(Pp(e,Gt.start,Gt.length,N.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function bE(Ee){return xn(Ee)&&(Ee.escapedText==="eval"||Ee.escapedText==="arguments")}function hh(Ee,Gt){if(Gt&&Gt.kind===80){const sr=Gt;if(bE(sr)){const Ii=BL(e,Gt);e.bindDiagnostics.push(Pp(e,Ii.start,Ii.length,qo(Ee),Kr(sr)))}}}function qo(Ee){return $b(Ee)?N.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?N.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:N.Invalid_use_of_0_in_strict_mode}function d_(Ee){Pe&&hh(Ee,Ee.name)}function Ka(Ee){return $b(Ee)?N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:N.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Qi(Ee){if(i<2&&h.kind!==312&&h.kind!==267&&!bd(h)){const Gt=BL(e,Ee);e.bindDiagnostics.push(Pp(e,Gt.start,Gt.length,Ka(Ee)))}}function Pm(Ee){Pe&&hh(Ee,Ee.operand)}function Ag(Ee){Pe&&(Ee.operator===46||Ee.operator===47)&&hh(Ee,Ee.operand)}function va(Ee){Pe&&Nm(Ee,N.with_statements_are_not_allowed_in_strict_mode)}function x0(Ee){Pe&&iu(n)>=2&&(cde(Ee.statement)||Xg(Ee.statement))&&Nm(Ee.label,N.A_label_is_not_allowed_here)}function Nm(Ee,Gt,...sr){const Ii=M0(e,Ee.pos);e.bindDiagnostics.push(Pp(e,Ii.start,Ii.length,Gt,...sr))}function Md(Ee,Gt,sr){fe(Ee,Gt,Gt,sr)}function fe(Ee,Gt,sr,Ii){_n(Ee,{pos:v2(Gt,e),end:sr.end},Ii)}function _n(Ee,Gt,sr){const Ii=Pp(e,Gt.pos,Gt.end-Gt.pos,sr);Ee?e.bindDiagnostics.push(Ii):e.bindSuggestionDiagnostics=ur(e.bindSuggestionDiagnostics,{...Ii,category:2})}function Xn(Ee){if(!Ee)return;kl(Ee,c),ps&&(Ee.tracingPath=e.path);const Gt=Pe;if(xs(Ee),Ee.kind>165){const sr=c;c=Ee;const Ii=R2e(Ee);Ii===0?En(Ee):Kt(Ee,Ii),c=sr}else{const sr=c;Ee.kind===1&&(c=Ee),_i(Ee),c=sr}Pe=Gt}function _i(Ee){if(NT(Ee))if(Cs(Ee))for(const Gt of Ee.jsDoc)Xn(Gt);else for(const Gt of Ee.jsDoc)kl(Gt,Ee),Q2(Gt,!1)}function $o(Ee){if(!Pe)for(const Gt of Ee){if(!$2(Gt))return;if(Sc(Gt)){Pe=!0;return}}}function Sc(Ee){const Gt=m7(e,Ee.expression);return Gt==='"use strict"'||Gt==="'use strict'"}function xs(Ee){switch(Ee.kind){case 80:if(Ee.flags&4096){let wi=Ee.parent;for(;wi&&!b2(wi);)wi=wi.parent;Wy(wi,524288,788968);break}case 110:return k&&(kr(Ee)||c.kind===304)&&(Ee.flowNode=k),pl(Ee);case 166:k&&rG(Ee)&&(Ee.flowNode=k);break;case 236:case 108:Ee.flowNode=k;break;case 81:return og(Ee);case 211:case 212:const Gt=Ee;k&&Tr(Gt)&&(Gt.flowNode=k),dY(Gt)&&da(Gt),Cs(Gt)&&e.commonJsModuleIndicator&&jE(Gt)&&!gae(h,"module")&&Rn(e.locals,void 0,Gt.expression,134217729,111550);break;case 226:switch(jy(Ee)){case 1:wp(Ee);break;case 2:Xp(Ee);break;case 3:A_(Ee.left,Ee);break;case 6:Hu(Ee);break;case 4:sg(Ee);break;case 5:const wi=Ee.left.expression;if(Cs(Ee)&&xn(wi)){const Vl=gae(h,wi.escapedText);if(bie(Vl==null?void 0:Vl.valueDeclaration)){sg(Ee);break}}Dg(Ee);break;case 0:break;default:re.fail("Unknown binary expression special property assignment kind")}return km(Ee);case 299:return M_(Ee);case 220:return oy(Ee);case 225:return Pm(Ee);case 224:return Ag(Ee);case 254:return va(Ee);case 256:return x0(Ee);case 197:P=!0;return;case 182:break;case 168:return pr(Ee);case 169:return t2(Ee);case 260:return xv(Ee);case 208:return Ee.flowNode=k,xv(Ee);case 172:case 171:return Fs(Ee);case 303:case 304:return i0(Ee,4,0);case 306:return i0(Ee,8,900095);case 179:case 180:case 181:return Tc(Ee,131072,0);case 174:case 173:return i0(Ee,8192|(Ee.questionToken?16777216:0),iC(Ee)?0:103359);case 262:return q0(Ee);case 176:return Tc(Ee,16384,0);case 177:return i0(Ee,32768,46015);case 178:return i0(Ee,65536,78783);case 184:case 324:case 330:case 185:return Ym(Ee);case 187:case 329:case 200:return Tl(Ee);case 339:return Lr(Ee);case 210:return mf(Ee);case 218:case 219:return N1(Ee);case 213:switch(jy(Ee)){case 7:return gd(Ee);case 8:return Cg(Ee);case 9:return t_(Ee);case 0:break;default:return re.fail("Unknown call expression assignment declaration kind")}Cs(Ee)&&FS(Ee);break;case 231:case 263:return Pe=!0,dT(Ee);case 264:return Wy(Ee,64,788872);case 265:return Wy(Ee,524288,788968);case 266:return $0(Ee);case 267:return u_(Ee);case 292:return Cp(Ee);case 291:return Yg(Ee,4,0);case 271:case 274:case 276:case 281:return Tc(Ee,2097152,2097152);case 270:return ah(Ee);case 273:return ay(Ee);case 278:return bm(Ee);case 277:return ag(Ee);case 312:return $o(Ee.statements),fc();case 241:if(!bd(Ee.parent))return;case 268:return $o(Ee.statements);case 348:if(Ee.parent.kind===330)return t2(Ee);if(Ee.parent.kind!==329)break;case 355:const Ja=Ee,wa=Ja.isBracketed||Ja.typeExpression&&Ja.typeExpression.type.kind===323?16777220:4;return Tc(Ja,wa,0);case 353:case 345:case 347:return(E||(E=[])).push(Ee);case 346:return Xn(Ee.typeExpression)}}function Fs(Ee){const Gt=xb(Ee),sr=Gt?98304:4,Ii=Gt?13247:0;return i0(Ee,sr|(Ee.questionToken?16777216:0),Ii)}function Tl(Ee){return xg(Ee,2048,"__type")}function fc(){if(G_(e),Bv(e))Gd();else if(Rx(e)){Gd();const Ee=e.symbol;Rn(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=Ee}}function Gd(){xg(e,512,`"${wg(e.fileName)}"`)}function ag(Ee){if(!u.symbol||!u.symbol.exports)xg(Ee,111551,Qt(Ee));else{const Gt=K8(Ee)?2097152:4,sr=Rn(u.symbol.exports,u.symbol,Ee,Gt,67108863);Ee.isExportEquals&&Cie(sr,Ee)}}function ah(Ee){gt(Ee.modifiers)&&e.bindDiagnostics.push(st(Ee,N.Modifiers_cannot_appear_here));const Gt=Nu(Ee.parent)?Bv(Ee.parent)?Ee.parent.isDeclarationFile?void 0:N.Global_module_exports_may_only_appear_in_declaration_files:N.Global_module_exports_may_only_appear_in_module_files:N.Global_module_exports_may_only_appear_at_top_level;Gt?e.bindDiagnostics.push(st(Ee,Gt)):(e.symbol.globalExports=e.symbol.globalExports||zd(),Rn(e.symbol.globalExports,e.symbol,Ee,2097152,2097152))}function bm(Ee){!u.symbol||!u.symbol.exports?xg(Ee,8388608,Qt(Ee)):Ee.exportClause?G0(Ee.exportClause)&&(kl(Ee.exportClause,Ee),Rn(u.symbol.exports,u.symbol,Ee.exportClause,2097152,2097152)):Rn(u.symbol.exports,u.symbol,Ee,8388608,0)}function ay(Ee){Ee.name&&Tc(Ee,2097152,2097152)}function yp(Ee){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=Ee,e.externalModuleIndicator||Gd()),!0)}function Cg(Ee){if(!yp(Ee))return;const Gt=fb(Ee.arguments[0],void 0,(sr,Ii)=>(Ii&&at(Ii,sr,67110400),Ii));Gt&&Rn(Gt.exports,Gt,Ee,1048580,0)}function wp(Ee){if(!yp(Ee))return;const Gt=fb(Ee.left.expression,void 0,(sr,Ii)=>(Ii&&at(Ii,sr,67110400),Ii));if(Gt){const Ii=O9(Ee.right)&&(P9(Ee.left.expression)||jE(Ee.left.expression))?2097152:1048580;kl(Ee.left,Ee),Rn(Gt.exports,Gt,Ee.left,Ii,0)}}function Xp(Ee){if(!yp(Ee))return;const Gt=k9(Ee.right);if(Vie(Gt)||u===e&&R3(e,Gt))return;if(el(Gt)&&jr(Gt.properties,XE)){Ot(Gt.properties,r1);return}const sr=K8(Ee)?2097152:1049092,Ii=Rn(e.symbol.exports,e.symbol,Ee,sr|67108864,0);Cie(Ii,Ee)}function r1(Ee){Rn(e.symbol.exports,e.symbol,Ee,69206016,0)}function sg(Ee){if(re.assert(Cs(Ee)),Ds(Ee)&&Ac(Ee.left)&&Lu(Ee.left.name)||Ac(Ee)&&Lu(Ee.name))return;const sr=RT(Ee,!1,!1);switch(sr.kind){case 262:case 218:let Ii=sr.symbol;if(Ds(sr.parent)&&sr.parent.operatorToken.kind===64){const wi=sr.parent.left;mR(wi)&&bP(wi.expression)&&(Ii=Zm(wi.expression.expression,d))}Ii&&Ii.valueDeclaration&&(Ii.members=Ii.members||zd(),tI(Ee)?Jt(Ee,Ii,Ii.members):Rn(Ii.members,Ii,Ee,67108868,0),at(Ii,Ii.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const Ja=sr.parent,wa=pd(sr)?Ja.symbol.exports:Ja.symbol.members;tI(Ee)?Jt(Ee,Ja.symbol,wa):Rn(wa,Ja.symbol,Ee,67108868,0,!0);break;case 312:if(tI(Ee))break;sr.commonJsModuleIndicator?Rn(sr.symbol.exports,sr.symbol,Ee,1048580,0):Tc(Ee,1,111550);break;case 267:break;default:re.failBadSyntaxKind(sr)}}function Jt(Ee,Gt,sr){Rn(sr,Gt,Ee,4,0,!0,!0),ci(Ee,Gt)}function ci(Ee,Gt){Gt&&(Gt.assignmentDeclarationMembers||(Gt.assignmentDeclarationMembers=new Map)).set(vm(Ee),Ee)}function da(Ee){Ee.expression.kind===110?sg(Ee):mR(Ee)&&Ee.parent.parent.kind===312&&(bP(Ee.expression)?A_(Ee,Ee.parent):um(Ee))}function Hu(Ee){kl(Ee.left,Ee),kl(Ee.right,Ee),Bh(Ee.left.expression,Ee.left,!1,!0)}function t_(Ee){const Gt=Zm(Ee.arguments[0].expression);Gt&&Gt.valueDeclaration&&at(Gt,Gt.valueDeclaration,32),P_(Ee,Gt,!0)}function A_(Ee,Gt){const sr=Ee.expression,Ii=sr.expression;kl(Ii,sr),kl(sr,Ee),kl(Ee,Gt),Bh(Ii,Ee,!0,!0)}function gd(Ee){let Gt=Zm(Ee.arguments[0]);const sr=Ee.parent.parent.kind===312;Gt=Ig(Gt,Ee.arguments[0],sr,!1,!1),P_(Ee,Gt,!1)}function Dg(Ee){var Gt;const sr=Zm(Ee.left.expression,u)||Zm(Ee.left.expression,h);if(!Cs(Ee)&&!qMe(sr))return;const Ii=i3(Ee.left);if(!(xn(Ii)&&((Gt=gae(u,Ii.escapedText))==null?void 0:Gt.flags)&2097152))if(kl(Ee.left,Ee),kl(Ee.right,Ee),xn(Ee.left.expression)&&u===e&&R3(e,Ee.left.expression))wp(Ee);else if(tI(Ee)){xg(Ee,67108868,"__computed");const Ja=Ig(sr,Ee.left.expression,Qm(Ee.left),!1,!1);ci(Ee,Ja)}else um(uc(Ee.left,U8))}function um(Ee){re.assert(!xn(Ee)),kl(Ee.expression,Ee),Bh(Ee.expression,Ee,!1,!1)}function Ig(Ee,Gt,sr,Ii,Ja){return(Ee==null?void 0:Ee.flags)&2097152||(sr&&!Ii&&(Ee=fb(Gt,Ee,(Vl,Uf,Y_)=>{if(Uf)return at(Uf,Vl,67110400),Uf;{const Fg=Y_?Y_.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=zd());return Rn(Fg,Y_,Vl,67110400,110735)}})),Ja&&Ee&&Ee.valueDeclaration&&at(Ee,Ee.valueDeclaration,32)),Ee}function P_(Ee,Gt,sr){if(!Gt||!P1(Gt))return;const Ii=sr?Gt.members||(Gt.members=zd()):Gt.exports||(Gt.exports=zd());let Ja=0,wa=0;Vd(I9(Ee))?(Ja=8192,wa=103359):xd(Ee)&&A7(Ee)&&(gt(Ee.arguments[2].properties,wi=>{const Vl=i_(wi);return!!Vl&&xn(Vl)&&Kr(Vl)==="set"})&&(Ja|=65540,wa|=78783),gt(Ee.arguments[2].properties,wi=>{const Vl=i_(wi);return!!Vl&&xn(Vl)&&Kr(Vl)==="get"})&&(Ja|=32772,wa|=46015)),Ja===0&&(Ja=4,wa=0),Rn(Ii,Gt,Ee,Ja|67108864,wa&-67108865)}function Qm(Ee){return Ds(Ee.parent)?VT(Ee.parent).parent.kind===312:Ee.parent.parent.kind===312}function Bh(Ee,Gt,sr,Ii){let Ja=Zm(Ee,u)||Zm(Ee,h);const wa=Qm(Gt);Ja=Ig(Ja,Gt.expression,wa,sr,Ii),P_(Gt,Ja,sr)}function P1(Ee){if(Ee.flags&1072)return!0;const Gt=Ee.valueDeclaration;if(Gt&&xd(Gt))return!!I9(Gt);let sr=Gt?Kc(Gt)?Gt.initializer:Ds(Gt)?Gt.right:Ac(Gt)&&Ds(Gt.parent)?Gt.parent.right:void 0:void 0;if(sr=sr&&k9(sr),sr){const Ii=bP(Kc(Gt)?Gt.name:Ds(Gt)?Gt.left:Gt);return!!KM(Ds(sr)&&(sr.operatorToken.kind===57||sr.operatorToken.kind===61)?sr.right:sr,Ii)}return!1}function VT(Ee){for(;Ds(Ee.parent);)Ee=Ee.parent;return Ee.parent}function Zm(Ee,Gt=u){if(xn(Ee))return gae(Gt,Ee.escapedText);{const sr=Zm(Ee.expression);return sr&&sr.exports&&sr.exports.get(eI(Ee))}}function fb(Ee,Gt,sr){if(R3(e,Ee))return e.symbol;if(xn(Ee))return sr(Ee,Zm(Ee),Gt);{const Ii=fb(Ee.expression,Gt,sr),Ja=KC(Ee);return Lu(Ja)&&re.fail("unexpected PrivateIdentifier"),sr(Ja,Ii&&Ii.exports&&Ii.exports.get(eI(Ee)),Ii)}}function FS(Ee){!e.commonJsModuleIndicator&&y1(Ee,!1)&&yp(Ee)}function dT(Ee){if(Ee.kind===263)Wy(Ee,32,899503);else{const Ja=Ee.name?Ee.name.escapedText:"__class";xg(Ee,32,Ja),Ee.name&&Ct.add(Ee.name.escapedText)}const{symbol:Gt}=Ee,sr=Et(4194308,"prototype"),Ii=Gt.exports.get(sr.escapedName);Ii&&(Ee.name&&kl(Ee.name,Ee),e.bindDiagnostics.push(st(Ii.declarations[0],N.Duplicate_identifier_0,Il(sr)))),Gt.exports.set(sr.escapedName,sr),sr.parent=Gt}function $0(Ee){return G8(Ee)?Wy(Ee,128,899967):Wy(Ee,256,899327)}function xv(Ee){if(Pe&&hh(Ee,Ee.name),!$_(Ee.name)){const Gt=Ee.kind===260?Ee:Ee.parent.parent;Cs(Ee)&&GH(n)&&E7(Gt)&&!FM(Ee)&&!(Eb(Ee)&32)?Tc(Ee,2097152,2097152):v9(Ee)?Wy(Ee,2,111551):X8(Ee)?Tc(Ee,1,111551):Tc(Ee,1,111550)}}function t2(Ee){if(!(Ee.kind===348&&u.kind!==330)&&(Pe&&!(Ee.flags&33554432)&&hh(Ee,Ee.name),$_(Ee.name)?xg(Ee,1,"__"+Ee.parent.parameters.indexOf(Ee)):Tc(Ee,1,111551),DT(Ee,Ee.parent))){const Gt=Ee.parent.parent;Rn(Gt.symbol.members,Gt.symbol,Ee,4|(Ee.questionToken?16777216:0),0)}}function q0(Ee){!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),d_(Ee),Pe?(Qi(Ee),Wy(Ee,16,110991)):Tc(Ee,16,110991)}function N1(Ee){!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),k&&(Ee.flowNode=k),d_(Ee);const Gt=Ee.name?Ee.name.escapedText:"__function";return xg(Ee,16,Gt)}function i0(Ee,Gt,sr){return!e.isDeclarationFile&&!(Ee.flags&33554432)&&t6(Ee)&&(et|=4096),k&&x9(Ee)&&(Ee.flowNode=k),tI(Ee)?xg(Ee,Gt,"__computed"):Tc(Ee,Gt,sr)}function nt(Ee){const Gt=Ua(Ee,sr=>sr.parent&&Q7(sr.parent)&&sr.parent.extendsType===sr);return Gt&&Gt.parent}function pr(Ee){if(CA(Ee.parent)){const Gt=Iie(Ee.parent);Gt?(re.assertNode(Gt,XD),Gt.locals??(Gt.locals=zd()),Rn(Gt.locals,void 0,Ee,262144,526824)):Tc(Ee,262144,526824)}else if(Ee.parent.kind===195){const Gt=nt(Ee.parent);Gt?(re.assertNode(Gt,XD),Gt.locals??(Gt.locals=zd()),Rn(Gt.locals,void 0,Ee,262144,526824)):xg(Ee,262144,Qt(Ee))}else Tc(Ee,262144,526824)}function vi(Ee){const Gt=YN(Ee);return Gt===1||Gt===2&&gk(n)}function Di(Ee){if(!(k.flags&1))return!1;if(k===Lt&&(HU(Ee)&&Ee.kind!==242||Ee.kind===263||Ee.kind===267&&vi(Ee))&&(k=Ze,!n.allowUnreachableCode)){const sr=WSe(n)&&!(Ee.flags&33554432)&&(!Xg(Ee)||!!(rR(Ee.declarationList)&7)||Ee.declarationList.declarations.some(Ii=>!!Ii.initializer));rme(Ee,(Ii,Ja)=>fe(sr,Ii,Ja,N.Unreachable_code_detected))}return!0}}function rme(e,n){if(dl(e)&&w2e(e)&&Ou(e.parent)){const{statements:i}=e.parent,c=soe(i,e);eu(c,w2e,(u,d)=>n(c[u],c[d-1]))}else n(e,e)}function w2e(e){return!mg(e)&&!MLe(e)&&!xP(e)&&!(Xg(e)&&!(rR(e)&7)&&e.declarationList.declarations.some(n=>!n.initializer))}function MLe(e){switch(e.kind){case 264:case 265:return!0;case 267:return YN(e)!==1;case 266:return ul(e,4096);default:return!1}}function R3(e,n){let i=0;const c=$w();for(c.enqueue(n);!c.isEmpty()&&i<100;){if(i++,n=c.dequeue(),P9(n)||jE(n))return!0;if(xn(n)){const u=gae(e,n.escapedText);if(u&&u.valueDeclaration&&Kc(u.valueDeclaration)&&u.valueDeclaration.initializer){const d=u.valueDeclaration.initializer;c.enqueue(d),Zv(d,!0)&&(c.enqueue(d.left),c.enqueue(d.right))}}}return!1}function R2e(e){switch(e.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(x9(e))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 e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return F_(e.parent)||Ep(e.parent)?0:34}return 0}function gae(e,n){var i,c,u,d;const h=(c=(i=to(e,XD))==null?void 0:i.locals)==null?void 0:c.get(n);if(h)return h.exportSymbol??h;if(Nu(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(n))return e.jsGlobalAugmentations.get(n);if(ck(e))return(d=(u=e.symbol)==null?void 0:u.exports)==null?void 0:d.get(n)}var M2e,kQ,mHe,ime=G({"src/compiler/binder.ts"(){md(),iP(),M2e=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(M2e||{}),kQ=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(kQ||{}),mHe=RLe()}});function LLe(e,n,i,c,u,d,h,S,E,P){return k;function k(F=()=>!0){const $=[],J=[];return{walkType:Ct=>{try{return X(Ct),{visitedTypes:ik($),visitedSymbols:ik(J)}}finally{g_($),g_(J)}},walkSymbol:Ct=>{try{return ct(Ct),{visitedTypes:ik($),visitedSymbols:ik(J)}}finally{g_($),g_(J)}}};function X(Ct){if(!(!Ct||$[Ct.id]||($[Ct.id]=Ct,ct(Ct.symbol)))){if(Ct.flags&524288){const Ze=Ct,Ke=Ze.objectFlags;Ke&4&&ie(Ct),Ke&32&&et(Ct),Ke&3&&dt(Ct),Ke&24&&Ie(Ze)}Ct.flags&262144&&ae(Ct),Ct.flags&3145728&&ve(Ct),Ct.flags&4194304&&we(Ct),Ct.flags&8388608&&Fe(Ct)}}function ie(Ct){X(Ct.target),Ot(P(Ct),X)}function ae(Ct){X(S(Ct))}function ve(Ct){Ot(Ct.types,X)}function we(Ct){X(Ct.type)}function Fe(Ct){X(Ct.objectType),X(Ct.indexType),X(Ct.constraint)}function et(Ct){X(Ct.typeParameter),X(Ct.constraintType),X(Ct.templateType),X(Ct.modifiersType)}function Pe(Ct){const Lt=n(Ct);Lt&&X(Lt.type),Ot(Ct.typeParameters,X);for(const Ze of Ct.parameters)ct(Ze);X(e(Ct)),X(i(Ct))}function dt(Ct){Ie(Ct),Ot(Ct.typeParameters,X),Ot(c(Ct),X),X(Ct.thisType)}function Ie(Ct){const Lt=u(Ct);for(const Ze of Lt.indexInfos)X(Ze.keyType),X(Ze.type);for(const Ze of Lt.callSignatures)Pe(Ze);for(const Ze of Lt.constructSignatures)Pe(Ze);for(const Ze of Lt.properties)ct(Ze)}function ct(Ct){if(!Ct)return!1;const Lt=$d(Ct);if(J[Lt])return!1;if(J[Lt]=Ct,!F(Ct))return!0;const Ze=d(Ct);return X(Ze),Ct.exports&&Ct.exports.forEach(ct),Ot(Ct.declarations,Ke=>{if(Ke.type&&Ke.type.kind===186){const st=Ke.type,It=h(E(st.exprName));ct(It)}}),!1}}}var gHe=G({"src/compiler/symbolWalker.ts"(){md()}});function L2e({importModuleSpecifierPreference:e,importModuleSpecifierEnding:n},i,c,u){const d=h();return{relativePreference:u!==void 0?Kv(u)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:S=>{if((S??c.impliedNodeFormat)===99)return MW(i,c.fileName)?[3,2]:[2];if(Jd(i)===1)return d===2?[2,1]:[1,2];const E=MW(i,c.fileName);switch(d){case 2:return E?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return E?[1,0,3,2]:[1,0,2];case 0:return E?[0,1,3,2]:[0,1,2];default:re.assertNever(d)}}};function h(){if(u!==void 0){if(eD(u))return 2;if(h_(u,"/index"))return 1}return ooe(n,c.impliedNodeFormat,i,c)}}function hHe(e,n,i,c,u,d,h={}){const S=vHe(e,n,i,c,u,L2e({},e,n,d),{},h);if(S!==d)return S}function hae(e,n,i,c,u,d={}){return vHe(e,n,i,c,u,L2e({},e,n),{},d)}function yHe(e,n,i,c,u,d={}){const h=O2e(n.path,c),S=SHe(n.path,i,c,u,d);return Yr(S,E=>ame(E,h,n,c,e,u,!0,d.overrideImportMode))}function vHe(e,n,i,c,u,d,h,S={}){const E=O2e(i,u),P=SHe(i,c,u,h,S);return Yr(P,k=>ame(k,E,n,u,e,h,void 0,S.overrideImportMode))||BLe(c,E,e,u,S.overrideImportMode||n.impliedNodeFormat,d)}function OLe(e,n,i,c,u={}){return FLe(e,n,i,c,u)[0]}function FLe(e,n,i,c,u={}){var d;const h=YU(e);if(!h)return Yn;const S=(d=i.getModuleSpecifierCache)==null?void 0:d.call(i),E=S==null?void 0:S.get(n.path,h.path,c,u);return[E==null?void 0:E.moduleSpecifiers,h,E==null?void 0:E.modulePaths,S]}function yae(e,n,i,c,u,d,h={}){return WLe(e,n,i,c,u,d,h,!1).moduleSpecifiers}function WLe(e,n,i,c,u,d,h={},S){let E=!1;const P=zst(e,n);if(P)return{moduleSpecifiers:[P],computedWithoutCache:E};let[k,F,$,J]=FLe(e,c,u,d,h);if(k)return{moduleSpecifiers:k,computedWithoutCache:E};if(!F)return{moduleSpecifiers:Yn,computedWithoutCache:E};E=!0,$||($=F2e(c.path,F.originalFileName,u));const X=bHe($,i,c,u,d,h,S);return J==null||J.set(c.path,F.path,d,h,$,X),{moduleSpecifiers:X,computedWithoutCache:E}}function bHe(e,n,i,c,u,d={},h){const S=O2e(i.path,c),E=L2e(u,n,i),P=Ot(e,ie=>Ot(c.getFileIncludeReasons().get(gm(ie.path,c.getCurrentDirectory(),S.getCanonicalFileName)),ae=>{if(ae.kind!==3||ae.file!==i.path||i.impliedNodeFormat&&i.impliedNodeFormat!==Kae(i,ae.index))return;const ve=ZQ(i,ae.index).text;return E.relativePreference!==1||!V2(ve)?ve:void 0}));if(P)return[P];const k=gt(e,ie=>ie.isInNodeModules);let F,$,J,X;for(const ie of e){const ae=ie.isInNodeModules?ame(ie,S,i,c,n,u,void 0,d.overrideImportMode):void 0;if(F=ur(F,ae),ae&&ie.isRedirect)return F;if(!ae){const ve=BLe(ie.path,S,n,c,d.overrideImportMode||i.impliedNodeFormat,E,ie.isRedirect);if(!ve)continue;ie.isRedirect?J=ur(J,ve):jre(ve)?$=ur($,ve):(h||!k||ie.isInNodeModules)&&(X=ur(X,ve))}}return $!=null&&$.length?$:J!=null&&J.length?J:F!=null&&F.length?F:re.checkDefined(X)}function O2e(e,n){const i=H1(n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():!0),c=ws(e);return{getCanonicalFileName:i,importingSourceFileName:e,sourceDirectory:c}}function BLe(e,n,i,c,u,{getAllowedEndingsInPreferredOrder:d,relativePreference:h},S){const{baseUrl:E,paths:P,rootDirs:k}=i;if(S&&!P)return;const{sourceDirectory:F,getCanonicalFileName:$}=n,J=d(u),X=k&&EHe(k,e,F,$,J,i)||PQ(Fd(sP(F,e,$)),J,i);if(!E&&!P||h===0)return S?void 0:X;const ie=vf(Lie(i,c)||E,c.getCurrentDirectory()),ae=xHe(e,ie,$);if(!ae)return S?void 0:X;const ve=P&&GLe(ae,P,J,c,i);if(S)return ve;const we=ve===void 0&&E!==void 0?PQ(ae,J,i):ve;if(!we)return X;if(h===1&&!V2(we))return we;if(h===3&&!V2(we)){const Fe=i.configFilePath?gm(ws(i.configFilePath),c.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(c.getCurrentDirectory()),et=gm(e,Fe,$),Pe=qf(F,Fe),dt=qf(et,Fe);if(Pe&&!dt||!Pe&&dt)return we;const Ie=zLe(c,ws(et));return zLe(c,F)!==Ie?we:X}return Im(we)||vae(X)e.fileExists(vl(i,"package.json"))?!0:void 0)}function ome(e,n,i,c,u){var d;const h=QC(i),S=i.getCurrentDirectory(),E=i.isSourceOfProjectReferenceRedirect(n)?i.getProjectReferenceRedirect(n):void 0,P=gm(n,S,h),k=i.redirectTargetsMap.get(P)||Yn,$=[...E?[E]:Yn,n,...k].map(ve=>vf(ve,S));let J=!jr($,_3);if(!c){const ve=Ot($,we=>!(J&&_3(we))&&u(we,E===we));if(ve)return ve}const X=(d=i.getSymlinkCache)==null?void 0:d.call(i).getSymlinkedDirectoriesByRealpath(),ie=vf(n,S);return X&&jC(ws(ie),ve=>{const we=X.get(Su(gm(ve,S,h)));if(we)return RU(e,ve,h)?!1:Ot($,Fe=>{if(!RU(Fe,ve,h))return;const et=sP(ve,Fe,h);for(const Pe of we){const dt=PL(Pe,et),Ie=u(dt,Fe===E);if(J=!0,Ie)return Ie}})})||(c?Ot($,ve=>J&&_3(ve)?void 0:u(ve,ve===E)):void 0)}function SHe(e,n,i,c,u={}){var d;const h=gm(n,i.getCurrentDirectory(),QC(i)),S=(d=i.getModuleSpecifierCache)==null?void 0:d.call(i);if(S){const P=S.get(e,h,c,u);if(P!=null&&P.modulePaths)return P.modulePaths}const E=F2e(e,n,i);return S&&S.setModulePaths(e,h,c,u,E),E}function F2e(e,n,i){const c=QC(i),u=new Map;ome(e,n,i,!0,(h,S)=>{const E=RW(h);u.set(h,{path:c(h),isRedirect:S,isInNodeModules:E})});const d=[];for(let h=ws(e);u.size!==0;){const S=Su(h);let E;u.forEach(({path:k,isRedirect:F,isInNodeModules:$},J)=>{qf(k,S)&&((E||(E=[])).push({path:J,isRedirect:F,isInNodeModules:$}),u.delete(J))}),E&&(E.length>1&&E.sort(THe),d.push(...E));const P=ws(h);if(P===h)break;h=P}if(u.size){const h=oc(u.values());h.length>1&&h.sort(THe),d.push(...h)}return d}function zst(e,n){var i;const c=(i=e.declarations)==null?void 0:i.find(h=>dde(h)&&(!Ov(h)||!Kv(K2(h.name))));if(c)return c.name.text;const d=Qo(e.declarations,h=>{var S,E,P,k;if(!dy(h))return;const F=ie(h);if(!((S=F==null?void 0:F.parent)!=null&&S.parent&&kh(F.parent)&&dh(F.parent.parent)&&Nu(F.parent.parent.parent)))return;const $=(k=(P=(E=F.parent.parent.symbol.exports)==null?void 0:E.get("export="))==null?void 0:P.valueDeclaration)==null?void 0:k.expression;if(!$)return;const J=n.getSymbolAtLocation($);if(!J)return;if(((J==null?void 0:J.flags)&2097152?n.getAliasedSymbol(J):J)===h.symbol)return F.parent.parent;function ie(ae){for(;ae.flags&8;)ae=ae.parent;return ae}})[0];if(d)return d.name.text}function GLe(e,n,i,c,u){for(const h in n)for(const S of n[h]){const E=hf(S),P=E.indexOf("*"),k=i.map(F=>({ending:F,value:PQ(e,[F],u)}));if(OT(E)&&k.push({ending:void 0,value:e}),P!==-1){const F=E.substring(0,P),$=E.substring(P+1);for(const{ending:J,value:X}of k)if(X.length>=F.length+$.length&&qf(X,F)&&h_(X,$)&&d({ending:J,value:X})){const ie=X.substring(F.length,X.length-$.length);if(!V2(ie))return h.replace("*",ie)}}else if(gt(k,F=>F.ending!==0&&E===F.value)||gt(k,F=>F.ending===0&&E===F.value&&d(F)))return h}function d({ending:h,value:S}){return h!==0||S===PQ(e,[h],u,c)}}function ij(e,n,i,c,u,d,h=0){if(typeof u=="string"){const S=vf(vl(i,u),void 0),E=vR(n)?wg(n)+bae(n,e):void 0;switch(h){case 0:if(Rv(n,S)===0||E&&Rv(E,S)===0)return{moduleFileToTry:c};break;case 1:if(OE(S,n)){const $=sP(S,n,!1);return{moduleFileToTry:vf(vl(vl(c,u),$),void 0)}}break;case 2:const P=S.indexOf("*"),k=S.slice(0,P),F=S.slice(P+1);if(qf(n,k)&&h_(n,F)){const $=n.slice(k.length,n.length-F.length);return{moduleFileToTry:c.replace("*",$)}}if(E&&qf(E,k)&&h_(E,F)){const $=E.slice(k.length,E.length-F.length);return{moduleFileToTry:c.replace("*",$)}}break}}else{if(Array.isArray(u))return Ot(u,S=>ij(e,n,i,c,S,d));if(typeof u=="object"&&u!==null){if(xQ(u))return Ot(ET(u),S=>{const E=vf(vl(c,S),void 0),P=h_(S,"/")?1:S.includes("*")?2:0;return ij(e,n,i,E,u[S],d,P)});for(const S of ET(u))if(S==="default"||d.includes(S)||AQ(d,S)){const E=u[S],P=ij(e,n,i,c,E,d,h);if(P)return P}}}}function EHe(e,n,i,c,u,d){const h=jLe(n,e,c);if(h===void 0)return;const S=jLe(i,e,c),E=ea(S,k=>Vn(h,F=>Fd(sP(k,F,c)))),P=qw(E,Z9);if(P)return PQ(P,u,d)}function ame({path:e,isRedirect:n},{getCanonicalFileName:i,sourceDirectory:c},u,d,h,S,E,P){if(!d.fileExists||!d.readFile)return;const k=AY(e);if(!k)return;const $=L2e(S,h,u).getAllowedEndingsInPreferredOrder();let J=e,X=!1;if(!E){let et=k.packageRootIndex,Pe;for(;;){const{moduleFileToTry:dt,packageRootPath:Ie,blockedByExports:ct,verbatimFromExports:Ct}=Fe(et);if(Jd(h)!==1){if(ct)return;if(Ct)return dt}if(Ie){J=Ie,X=!0;break}if(Pe||(Pe=dt),et=e.indexOf(qp,et+1),et===-1){J=PQ(Pe,$,h,d);break}}}if(n&&!X)return;const ie=d.getGlobalTypingsCacheLocation&&d.getGlobalTypingsCacheLocation(),ae=i(J.substring(0,k.topLevelNodeModulesIndex));if(!(qf(c,ae)||ie&&qf(i(ie),ae)))return;const ve=J.substring(k.topLevelPackageNameIndex+1),we=c4(ve);return Jd(h)===1&&we===ve?void 0:we;function Fe(et){var Pe,dt;const Ie=e.substring(0,et),ct=vl(Ie,"package.json");let Ct=e,Lt=!1;const Ze=(dt=(Pe=d.getPackageJsonInfoCache)==null?void 0:Pe.call(d))==null?void 0:dt.getPackageJsonInfo(ct);if(typeof Ze=="object"||Ze===void 0&&d.fileExists(ct)){const Ke=(Ze==null?void 0:Ze.contents.packageJsonContent)||JSON.parse(d.readFile(ct)),st=P||u.impliedNodeFormat;if(Zie(h)){const Et=Ie.substring(k.topLevelPackageNameIndex+1),at=c4(Et),Qt=_F(h,st),nn=Ke.exports?ij(h,e,Ie,at,Ke.exports,Qt):void 0;if(nn)return{...vR(nn.moduleFileToTry)?{moduleFileToTry:wg(nn.moduleFileToTry)+bae(nn.moduleFileToTry,h)}:nn,verbatimFromExports:!0};if(Ke.exports)return{moduleFileToTry:e,blockedByExports:!0}}const It=Ke.typesVersions?vQ(Ke.typesVersions):void 0;if(It){const Et=e.slice(Ie.length+1),at=GLe(Et,It.paths,$,d,h);at===void 0?Lt=!0:Ct=vl(Ie,at)}const Yt=Ke.typings||Ke.types||Ke.main||"index.js";if(As(Yt)&&!(Lt&&aoe(qH(It.paths),Yt))){const Et=gm(Yt,Ie,i),at=i(Ct);if(wg(Et)===wg(at))return{packageRootPath:Ie,moduleFileToTry:Ct};if(Ke.type!=="module"&&!pv(at,EG)&&qf(at,Et)&&ws(at)===bN(Et)&&wg(Jg(at))==="index")return{packageRootPath:Ie,moduleFileToTry:Ct}}}else{const Ke=i(Ct.substring(k.packageRootIndex+1));if(Ke==="index.d.ts"||Ke==="index.js"||Ke==="index.ts"||Ke==="index.tsx")return{moduleFileToTry:Ct,packageRootPath:Ie}}return{moduleFileToTry:Ct}}}function W2e(e,n){if(!e.fileExists)return;const i=Gf(s3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const c of i){const u=n+c;if(e.fileExists(u))return u}}function jLe(e,n,i){return Qo(n,c=>{const u=xHe(e,c,i);return u!==void 0&&Im(u)?void 0:u})}function PQ(e,n,i,c){if(pv(e,[".json",".mjs",".cjs"]))return e;const u=wg(e);if(e===u)return e;const d=n.indexOf(2),h=n.indexOf(3);if(pv(e,[".mts",".cts"])&&h!==-1&&hP===0||P===1);return E!==-1&&Evae,forEachFileNameOfModule:()=>ome,getModuleSpecifier:()=>hae,getModuleSpecifiers:()=>yae,getModuleSpecifiersWithCacheInfo:()=>WLe,getNodeModulesPackageName:()=>yHe,tryGetJSExtensionForFile:()=>bae,tryGetModuleSpecifiersFromCache:()=>OLe,tryGetRealFileNameForNonJsDeclarationFileName:()=>VLe,updateModuleSpecifier:()=>hHe});var B2e=G({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Bp()}});function Gst(){this.flags=0}function vm(e){return e.id||(e.id=Aae,Aae++),e.id}function $d(e){return e.id||(e.id=xae,xae++),e.id}function sme(e,n){const i=YN(e);return i===1||n&&i===2}function oT(e){var n=[],i=o=>{n.push(o)},c,u=new Set,d,h,S=W0.getSymbolConstructor(),E=W0.getTypeConstructor(),P=W0.getSignatureConstructor(),k=0,F=0,$=0,J=0,X=0,ie=0,ae,ve,we=!1,Fe=zd(),et=[1],Pe=e.getCompilerOptions(),dt=iu(Pe),Ie=Zp(Pe),ct=!!Pe.experimentalDecorators,Ct=X9(Pe),Lt=zSe(Pe),Ze=VN(Pe),Ke=hv(Pe,"strictNullChecks"),st=hv(Pe,"strictFunctionTypes"),It=hv(Pe,"strictBindCallApply"),Yt=hv(Pe,"strictPropertyInitialization"),Et=hv(Pe,"noImplicitAny"),at=hv(Pe,"noImplicitThis"),Qt=hv(Pe,"useUnknownInCatchVariables"),nn=!!Pe.keyofStringsOnly,Rn=nn?1:0,cn=Pe.suppressExcessPropertyErrors?0:8192,qt=Pe.exactOptionalPropertyTypes,Kt=$yt(),wr=bkt(),Wr=LI(),jt=zd(),En=tp(4,"undefined");En.declarations=[];var fr=tp(1536,"globalThis",8);fr.exports=jt,fr.declarations=[],jt.set(fr.escapedName,fr);var Tr=tp(4,"arguments"),Vr=tp(4,"require"),Pn=Pe.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Fr=!Pe.verbatimModuleSyntax||!!Pe.importsNotUsedAsValues,Ki,io,no=0,os,Mo=0;const $i={getNodeCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.nodeCount,0),getIdentifierCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.identifierCount,0),getSymbolCount:()=>Em(e.getSourceFiles(),(o,f)=>o+f.symbolCount,F),getTypeCount:()=>k,getInstantiationCount:()=>$,getRelationCacheSizes:()=>({assignable:db.size,identity:Q_.size,subtype:bC.size,strictSubtype:wm.size}),isUndefinedSymbol:o=>o===En,isArgumentsSymbol:o=>o===Tr,isUnknownSymbol:o=>o===Pr,getMergedSymbol:jp,getDiagnostics:Bo,getGlobalDiagnostics:td,getRecursionIdentity:Dbe,getUnmatchedProperties:qBe,getTypeOfSymbolAtLocation:(o,f)=>{const v=__(f);return v?Tht(o,v):Sr},getTypeOfSymbol:La,getSymbolsOfParameterPropertyDeclaration:(o,f)=>{const v=__(o,Os);return v===void 0?re.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(re.assert(DT(v,v.parent)),gs(v,ey(f)))},getDeclaredTypeOfSymbol:sh,getPropertiesOfType:zm,getPropertyOfType:(o,f)=>Yd(o,ey(f)),getPrivateIdentifierPropertyOfType:(o,f,v)=>{const A=__(v);if(!A)return;const R=ey(f),B=rwe(R,A);return B?owe(o,B):void 0},getTypeOfPropertyOfType:(o,f)=>Xe(o,ey(f)),getIndexInfoOfType:(o,f)=>Tw(o,f===0?Nn:Lr),getIndexInfosOfType:JT,getIndexInfosOfIndexSymbol:Y0e,getSignaturesOfType:ed,getIndexTypeOfType:(o,f)=>vO(o,f===0?Nn:Lr),getIndexType:o=>CC(o),getBaseTypes:l0,getBaseTypeOfLiteralType:pM,getWidenedType:z2,getTypeFromTypeNode:o=>{const f=__(o,pc);return f?Xl(f):Sr},getParameterType:XI,getParameterIdentifierInfoAtPosition:c8,getPromisedTypeOfPromise:$fe,getAwaitedType:o=>XB(o),getReturnTypeOfSignature:np,isNullableType:n1e,getNullableType:dNe,getNonNullableType:Dw,getNonOptionalType:mNe,getTypeArguments:ch,typeToTypeNode:Wr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Wr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Wr.signatureToSignatureDeclaration,symbolToEntityName:Wr.symbolToEntityName,symbolToExpression:Wr.symbolToExpression,symbolToNode:Wr.symbolToNode,symbolToTypeParameterDeclarations:Wr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Wr.symbolToParameterDeclaration,typeParameterToDeclaration:Wr.typeParameterToDeclaration,getSymbolsInScope:(o,f)=>{const v=__(o);return v?Jo(v,f):[]},getSymbolAtLocation:o=>{const f=__(o);return f?ss(f,!0):void 0},getIndexInfosAtLocation:o=>{const f=__(o);return f?ll(f):void 0},getShorthandAssignmentValueSymbol:o=>{const f=__(o);return f?of(f):void 0},getExportSpecifierLocalTargetSymbol:o=>{const f=__(o,my);return f?C_(f):void 0},getExportSymbolOfSymbol(o){return jp(o.exportSymbol||o)},getTypeAtLocation:o=>{const f=__(o);return f?nd(f):Sr},getTypeOfAssignmentPattern:o=>{const f=__(o,KD);return f&&kd(f)||Sr},getPropertySymbolOfDestructuringAssignment:o=>{const f=__(o,xn);return f?lu(f):void 0},signatureToString:(o,f,v,A)=>Fk(o,__(f),v,A),typeToString:(o,f,v)=>Co(o,__(f),v),symbolToString:(o,f,v,A)=>ru(o,__(f),v,A),typePredicateToString:(o,f,v)=>$P(o,__(f),v),writeSignature:(o,f,v,A,R)=>Fk(o,__(f),v,A,R),writeType:(o,f,v,A)=>Co(o,__(f),v,A),writeSymbol:(o,f,v,A,R)=>ru(o,__(f),v,A,R),writeTypePredicate:(o,f,v,A)=>$P(o,__(f),v,A),getAugmentedPropertiesOfType:im,getRootSymbols:YI,getSymbolOfExpando:vwe,getContextualType:(o,f)=>{const v=__(o,kr);if(v)return f&4?Wl(v,()=>NE(v,f)):NE(v,f)},getContextualTypeForObjectLiteralElement:o=>{const f=__(o,DN);return f?$be(f,void 0):void 0},getContextualTypeForArgumentAtIndex:(o,f)=>{const v=__(o,uR);return v&&Jbe(v,f)},getContextualTypeForJsxAttribute:o=>{const f=__(o,rie);return f&&hfe(f,void 0)},isContextSensitive:Sx,getTypeOfPropertyOfContextualType:oN,getFullyQualifiedName:GS,getResolvedSignature:(o,f,v)=>Jc(o,f,v,0),getCandidateSignaturesForStringLiteralCompletions:ki,getResolvedSignatureForSignatureHelp:(o,f,v)=>gc(o,()=>Jc(o,f,v,16)),getExpandedParameters:zZe,hasEffectiveRestParameter:$k,containsArgumentsReference:EPe,getConstantValue:o=>{const f=__(o,qy);return f?ww(f):void 0},isValidPropertyAccess:(o,f)=>{const v=__(o,ide);return!!v&&Snt(v,ey(f))},isValidPropertyAccessForCompletions:(o,f,v)=>{const A=__(o,Ac);return!!A&&zV(A,f,v)},getSignatureFromDeclaration:o=>{const f=__(o,F_);return f?gb(f):void 0},isImplementationOfOverload:o=>{const f=__(o,F_);return f?ip(f):void 0},getImmediateAliasedSymbol:kze,getAliasedSymbol:C0,getEmitResolver:_c,getExportsOfModule:H6,getExportsAndPropertiesOfModule:gV,forEachExportAndPropertyOfModule:hV,getSymbolWalker:LLe(oet,Wb,np,l0,Gh,La,xD,gT,PS,ch),getAmbientModules:lPt,getJsxIntrinsicTagNamesAt:fnt,isOptionalParameter:o=>{const f=__(o,Os);return f?U4(f):!1},tryGetMemberInModuleExports:(o,f)=>JF(ey(o),f),tryGetMemberInModuleExportsAndProperties:(o,f)=>SB(ey(o),f),tryFindAmbientModule:o=>aK(o,!0),tryFindAmbientModuleWithoutAugmentations:o=>aK(o,!1),getApparentType:yS,getUnionType:dc,isTypeAssignableTo:Id,createAnonymousType:sy,createSignature:vw,createSymbol:tp,createIndexInfo:bx,getAnyType:()=>Ge,getStringType:()=>Nn,getStringLiteralType:vS,getNumberType:()=>Lr,getNumberLiteralType:HA,getBigIntType:()=>qi,createPromiseType:m1e,createArrayType:hT,getElementTypeOfArrayType:MV,getBooleanType:()=>Pc,getFalseType:o=>o?vo:Ro,getTrueType:o=>o?Ts:Cc,getVoidType:()=>bl,getUndefinedType:()=>Ce,getNullType:()=>mn,getESSymbolType:()=>hc,getNeverType:()=>Tc,getOptionalType:()=>ge,getPromiseType:()=>yte(!1),getPromiseLikeType:()=>met(!1),getAsyncIterableType:()=>{const o=tbe(!1);if(o!==Ka)return o},isSymbolAccessible:nc,isArrayType:kE,isTupleType:Dp,isArrayLikeType:rL,isEmptyAnonymousObjectType:VI,isTypeInvalidDueToUnionDiscriminant:rgt,getExactOptionalProperties:dM,getAllPossiblePropertiesOfTypes:igt,getSuggestedSymbolForNonexistentProperty:JB,getSuggestionForNonexistentProperty:awe,getSuggestedSymbolForNonexistentJSXAttribute:Iv,getSuggestedSymbolForNonexistentSymbol:(o,f,v)=>DK(o,ey(f),v),getSuggestionForNonexistentSymbol:(o,f,v)=>syt(o,ey(f),v),getSuggestedSymbolForNonexistentModule:Ife,getSuggestionForNonexistentExport:swe,getSuggestedSymbolForNonexistentClassMember:Tnt,getBaseConstraintOfType:US,getDefaultFromTypeParameter:o=>o&&o.flags&262144?Dd(o):void 0,resolveName(o,f,v,A){return gg(f,ey(o),v,void 0,void 0,!1,A)},getJsxNamespace:o=>Ic(xo(o)),getJsxFragmentFactory:o=>{const f=y0t(o);return f&&Ic(PS(f).escapedText)},getAccessibleSymbolChain:pw,getTypePredicateOfSignature:Wb,resolveExternalModuleName:o=>{const f=__(o,kr);return f&&gS(f,f,!0)},resolveExternalModuleSymbol:hS,tryGetThisTypeAt:(o,f,v)=>{const A=__(o);return A&&VNe(A,f,v)},getTypeArgumentConstraint:o=>{const f=__(o,pc);return f&&pvt(f)},getSuggestionDiagnostics:(o,f)=>{const v=__(o,Nu)||re.fail("Could not determine parsed source file.");if(c3(v,Pe,e))return Yn;let A;try{return c=f,rf(v),re.assert(!!(rt(v).flags&1)),A=Oi(A,GP.getDiagnostics(v.fileName)),A1e(No(v),(R,B,Y)=>{!$z(R)&&!Pi(B,!!(R.flags&33554432))&&(A||(A=[])).push({...Y,category:2})}),A||Yn}finally{c=void 0}},runWithCancellationToken:(o,f)=>{try{return c=o,f($i)}finally{c=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Fo,isDeclarationVisible:gw,isPropertyAccessible:Jze,getTypeOnlyAliasDeclaration:Qx,getMemberOverrideModifierStatus:m0t,isTypeParameterPossiblyReferenced:xte,typeHasCallOrConstructSignatures:k0};function ki(o,f){const v=new Set,A=[];Wl(f,()=>Jc(o,A,void 0,0));for(const R of A)v.add(R);A.length=0,gc(f,()=>Jc(o,A,void 0,0));for(const R of A)v.add(R);return oc(v)}function gc(o,f){if(o=Ua(o,eie),o){const v=[],A=[];for(;o;){const B=rt(o);if(v.push([B,B.resolvedSignature]),B.resolvedSignature=void 0,EP(o)){const Y=Ae(sc(o)),pe=Y.type;A.push([Y,pe]),Y.type=void 0}o=Ua(o.parent,eie)}const R=f();for(const[B,Y]of v)B.resolvedSignature=Y;for(const[B,Y]of A)B.type=Y;return R}return f()}function Wl(o,f){const v=Ua(o,uR);if(v){let R=o;do rt(R).skipDirectInference=!0,R=R.parent;while(R&&R!==v)}we=!0;const A=gc(o,f);if(we=!1,v){let R=o;do rt(R).skipDirectInference=void 0,R=R.parent;while(R&&R!==v)}return A}function Jc(o,f,v,A){const R=__(o,uR);Ki=v;const B=R?y5(R,f,A):void 0;return Ki=void 0,B}var au=new Map,qn=new Map,za=new Map,Ia=new Map,zi=new Map,na=new Map,_a=new Map,us=new Map,Au=new Map,Qu=new Map,Cu=new Map,yf=new Map,w_=new Map,Eu=new Map,He=new Map,Hn=[],dr=new Map,Mr=new Set,Pr=tp(4,"unknown"),Bt=tp(0,"__resolving__"),ln=new Map,Wn=new Map,$r=new Set,Ge=Vg(1,"any"),Br=Vg(1,"any",262144,"auto"),Ei=Vg(1,"any",void 0,"wildcard"),Ln=Vg(1,"any",void 0,"blocked string"),Sr=Vg(1,"error"),yi=Vg(1,"unresolved"),go=Vg(1,"any",65536,"non-inferrable"),Ao=Vg(1,"intrinsic"),Io=Vg(2,"unknown"),ze=Vg(2,"unknown",void 0,"non-null"),Ce=Vg(32768,"undefined"),kt=Ke?Ce:Vg(32768,"undefined",65536,"widening"),qe=Vg(32768,"undefined",void 0,"missing"),Mt=qt?qe:Ce,ge=Vg(32768,"undefined",void 0,"optional"),mn=Vg(65536,"null"),Jn=Ke?mn:Vg(65536,"null",65536,"widening"),Nn=Vg(4,"string"),Lr=Vg(8,"number"),qi=Vg(64,"bigint"),vo=Vg(512,"false",void 0,"fresh"),Ro=Vg(512,"false"),Ts=Vg(512,"true",void 0,"fresh"),Cc=Vg(512,"true");Ts.regularType=Cc,Ts.freshType=Ts,Cc.regularType=Cc,Cc.freshType=Ts,vo.regularType=Ro,vo.freshType=vo,Ro.regularType=Ro,Ro.freshType=vo;var Pc=dc([Ro,Cc]),hc=Vg(4096,"symbol"),bl=Vg(16384,"void"),Tc=Vg(131072,"never"),Tf=Vg(131072,"never",262144,"silent"),ma=Vg(131072,"never",void 0,"implicit"),Bl=Vg(131072,"never",void 0,"unreachable"),G_=Vg(67108864,"object"),u_=dc([Nn,Lr]),xa=dc([Nn,Lr,hc]),Ym=nn?Nn:xa,mf=dc([Lr,qi]),Cp=dc([Nn,Lr,Pc,qi,mn,Ce]),Yg=MB(["",""],[Lr]),xg=mbe(o=>o.flags&262144?Rgt(o):o,()=>"(restrictive mapper)"),Wy=mbe(o=>o.flags&262144?Ei:o,()=>"(permissive mapper)"),Og=Vg(131072,"never",void 0,"unique literal"),pl=mbe(o=>o.flags&262144?Og:o,()=>"(unique literal mapper)"),R_,og=mbe(o=>(R_&&(o===x0||o===Nm||o===Md)&&R_(!0),o),()=>"(unmeasurable reporter)"),km=mbe(o=>(R_&&(o===x0||o===Nm||o===Md)&&R_(!1),o),()=>"(unreliable reporter)"),M_=sy(void 0,Fe,Yn,Yn,Yn),oy=sy(void 0,Fe,Yn,Yn,Yn);oy.objectFlags|=2048;var bE=tp(2048,"__type");bE.members=zd();var hh=sy(bE,Fe,Yn,Yn,Yn),qo=sy(void 0,Fe,Yn,Yn,Yn),d_=Ke?dc([Ce,mn,qo]):Io,Ka=sy(void 0,Fe,Yn,Yn,Yn);Ka.instantiations=new Map;var Qi=sy(void 0,Fe,Yn,Yn,Yn);Qi.objectFlags|=262144;var Pm=sy(void 0,Fe,Yn,Yn,Yn),Ag=sy(void 0,Fe,Yn,Yn,Yn),va=sy(void 0,Fe,Yn,Yn,Yn),x0=c0(),Nm=c0();Nm.constraint=x0;var Md=c0(),fe=c0(),_n=c0();_n.constraint=fe;var Xn=nM(1,"<>",0,Ge),_i=vw(void 0,void 0,void 0,Yn,Ge,void 0,0,0),$o=vw(void 0,void 0,void 0,Yn,Sr,void 0,0,0),Sc=vw(void 0,void 0,void 0,Yn,Ge,void 0,0,0),xs=vw(void 0,void 0,void 0,Yn,Tf,void 0,0,0),Fs=bx(Lr,Nn,!0),Tl=new Map,fc={get yieldType(){return re.fail("Not supported")},get returnType(){return re.fail("Not supported")},get nextType(){return re.fail("Not supported")}},Gd=uL(Ge,Ge,Ge),ag=uL(Ge,Ge,Io),ah=uL(Tc,Ge,Ce),bm={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:zWe,getGlobalIterableType:tbe,getGlobalIterableIteratorType:GWe,getGlobalGeneratorType:Nf,resolveIterationType:(o,f)=>XB(o,f,N.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:N.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:N.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:N.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ay={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:ggt,getGlobalIterableType:NPe,getGlobalIterableIteratorType:hgt,getGlobalGeneratorType:wPe,resolveIterationType:(o,f)=>o,mustHaveANextMethodDiagnostic:N.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:N.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:N.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},yp,Cg=new Map,wp=[],Xp,r1,sg,Jt,ci,da,Hu,t_,A_,gd,Dg,um,Ig,P_,Qm,Bh,P1,VT,Zm,fb,FS,dT,$0,xv,t2,q0,N1,i0,nt,pr,vi,Di,Ee,Gt,sr,Ii,Ja,wa,wi,Vl,Uf,Y_,Fg,sv,vy,_b,f_,zh,i1,n2,Vv,su,gC,eg,Uv,Rk,Lb=new Map,fn=0,$n=0,ri=0,Li=!1,yo=0,jo,Oo,ca,Fc=[],ks=[],Xs=[],Vs=0,wu=[],Yp=[],Q=0,ft=vS(""),br=HA(0),oo=sM({negative:!1,base10Value:"0"}),Js=[],pu=[],fl=[],ju=0,L_=!1,Cl=0,o0=10,oa=[],dD=[],a0=[],Kx=[],hC=[],WP=[],BP=[],LA=[],OA=[],pD=[],yC=[],vC=[],zP=[],Xx=[],dx=[],WS=[],px=[],j_=UL(),GP=UL(),oO=L4(),dS,FA,bC=new Map,wm=new Map,db=new Map,o1=new Map,Q_=new Map,je=new Map,Vt=zd();Vt.set(En.escapedName,En);var zn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Pe.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Tkt(),$i;function zr(o){return o?He.get(o):void 0}function xi(o,f){return o&&He.set(o,f),f}function xo(o){if(o){const f=ts(o);if(f)if(v6(o)){if(f.localJsxFragmentNamespace)return f.localJsxFragmentNamespace;const v=f.pragmas.get("jsxfrag");if(v){const R=ls(v)?v[0]:v;if(f.localJsxFragmentFactory=UG(R.arguments.factory,dt),Bn(f.localJsxFragmentFactory,hu,kT),f.localJsxFragmentFactory)return f.localJsxFragmentNamespace=PS(f.localJsxFragmentFactory).escapedText}const A=y0t(o);if(A)return f.localJsxFragmentFactory=A,f.localJsxFragmentNamespace=PS(A).escapedText}else{const v=Wc(f);if(v)return f.localJsxNamespace=v}}return dS||(dS="React",Pe.jsxFactory?(FA=UG(Pe.jsxFactory,dt),Bn(FA,hu),FA&&(dS=PS(FA).escapedText)):Pe.reactNamespace&&(dS=ey(Pe.reactNamespace))),FA||(FA=he.createQualifiedName(he.createIdentifier(Ic(dS)),"createElement")),dS}function Wc(o){if(o.localJsxNamespace)return o.localJsxNamespace;const f=o.pragmas.get("jsx");if(f){const v=ls(f)?f[0]:f;if(o.localJsxFactory=UG(v.arguments.factory,dt),Bn(o.localJsxFactory,hu,kT),o.localJsxFactory)return o.localJsxNamespace=PS(o.localJsxFactory).escapedText}}function hu(o){return T1(o,-1,-1),Xo(o,hu,sx)}function _c(o,f){return Bo(o,f),wr}function Sl(o,f,...v){const A=o?Bs(o,f,...v):W_(f,...v),R=j_.lookup(A);return R||(j_.add(A),A)}function kf(o,f,v,...A){const R=hn(f,v,...A);return R.skippedOn=o,R}function Rp(o,f,...v){return o?Bs(o,f,...v):W_(f,...v)}function hn(o,f,...v){const A=Rp(o,f,...v);return j_.add(A),A}function v_(o,f){o?j_.add(f):GP.add({...f,category:2})}function yh(o,f,v,...A){if(f.pos<0||f.end<0){if(!o)return;const R=ts(f);v_(o,"message"in v?Pp(R,0,0,v,...A):oE(R,v));return}v_(o,"message"in v?Bs(f,v,...A):wN(ts(f),f,v))}function fm(o,f,v,...A){const R=hn(o,v,...A);if(f){const B=Bs(o,N.Did_you_forget_to_use_await);ml(R,B)}return R}function mx(o,f){const v=Array.isArray(o)?Ot(o,GTe):GTe(o);return v&&ml(f,Bs(v,N.The_declaration_was_marked_as_deprecated_here)),GP.add(f),f}function BS(o){const f=xE(o);return f&&Nt(o.declarations)>1?f.flags&64?gt(o.declarations,N2):jr(o.declarations,N2):!!o.valueDeclaration&&N2(o.valueDeclaration)||Nt(o.declarations)&&jr(o.declarations,N2)}function N2(o){return!!(KV(o)&536870912)}function pS(o,f,v){const A=Bs(o,N._0_is_deprecated,v);return mx(f,A)}function jP(o,f,v,A){const R=v?Bs(o,N.The_signature_0_of_1_is_deprecated,A,v):Bs(o,N._0_is_deprecated,A);return mx(f,R)}function tp(o,f,v){F++;const A=new S(o|33554432,f);return A.links=new Fa,A.links.checkFlags=v||0,A}function gx(o,f){const v=tp(1,o);return v.links.type=f,v}function VP(o,f){const v=tp(4,o);return v.links.type=f,v}function UP(o){let f=0;return o&2&&(f|=111551),o&1&&(f|=111550),o&4&&(f|=0),o&8&&(f|=900095),o&16&&(f|=110991),o&32&&(f|=899503),o&64&&(f|=788872),o&256&&(f|=899327),o&128&&(f|=899967),o&512&&(f|=110735),o&8192&&(f|=103359),o&32768&&(f|=46015),o&65536&&(f|=78783),o&262144&&(f|=526824),o&524288&&(f|=788968),o&2097152&&(f|=2097152),f}function Bd(o,f){f.mergeId||(f.mergeId=Cae,Cae++),oa[f.mergeId]=o}function Bm(o){const f=tp(o.flags,o.escapedName);return f.declarations=o.declarations?o.declarations.slice():[],f.parent=o.parent,o.valueDeclaration&&(f.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(f.constEnumOnlyModule=!0),o.members&&(f.members=new Map(o.members)),o.exports&&(f.exports=new Map(o.exports)),Bd(f,o),f}function Hv(o,f,v=!1){if(!(o.flags&UP(f.flags))||(f.flags|o.flags)&67108864){if(f===o)return o;if(!(o.flags&33554432)){const R=Av(o);if(R===Pr)return f;o=Bm(R)}f.flags&512&&o.flags&512&&o.constEnumOnlyModule&&!f.constEnumOnlyModule&&(o.constEnumOnlyModule=!1),o.flags|=f.flags,f.valueDeclaration&&Cie(o,f.valueDeclaration),Oi(o.declarations,f.declarations),f.members&&(o.members||(o.members=zd()),R2(o.members,f.members,v)),f.exports&&(o.exports||(o.exports=zd()),R2(o.exports,f.exports,v)),v||Bd(o,f)}else if(o.flags&1024)o!==fr&&hn(f.declarations&&i_(f.declarations[0]),N.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ru(o));else{const R=!!(o.flags&384||f.flags&384),B=!!(o.flags&2||f.flags&2),Y=R?N.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:B?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0,pe=f.declarations&&ts(f.declarations[0]),Te=o.declarations&&ts(o.declarations[0]),Ue=pP(pe,Pe.checkJs),St=pP(Te,Pe.checkJs),Rt=ru(f);if(pe&&Te&&yp&&!R&&pe!==Te){const rn=Rv(pe.path,Te.path)===-1?pe:Te,Sn=rn===pe?Te:pe,xr=Jw(yp,`${rn.path}|${Sn.path}`,()=>({firstFile:rn,secondFile:Sn,conflictingSymbols:new Map})),Ai=Jw(xr.conflictingSymbols,Rt,()=>({isBlockScoped:B,firstFileLocations:[],secondFileLocations:[]}));Ue||A(Ai.firstFileLocations,f),St||A(Ai.secondFileLocations,o)}else Ue||TE(f,Y,Rt,o),St||TE(o,Y,Rt,f)}return o;function A(R,B){if(B.declarations)for(const Y of B.declarations)Dy(R,Y)}}function TE(o,f,v,A){Ot(o.declarations,R=>{A0(R,f,v,A.declarations)})}function A0(o,f,v,A){const R=(KM(o,!1)?oG(o):i_(o))||o,B=Sl(R,f,v);for(const Y of A||Yn){const pe=(KM(Y,!1)?oG(Y):i_(Y))||Y;if(pe===R)continue;B.relatedInformation=B.relatedInformation||[];const Te=Bs(pe,N._0_was_also_declared_here,v),Ue=Bs(pe,N.and_here);Nt(B.relatedInformation)>=5||gt(B.relatedInformation,St=>o3(St,Ue)===0||o3(St,Te)===0)||ml(B,Nt(B.relatedInformation)?Ue:Te)}}function w2(o,f){if(!(o!=null&&o.size))return f;if(!(f!=null&&f.size))return o;const v=zd();return R2(v,o),R2(v,f),v}function R2(o,f,v=!1){f.forEach((A,R)=>{const B=o.get(R);o.set(R,B?Hv(B,A,v):jp(A))})}function U(o){var f,v,A;const R=o.parent;if(((f=R.symbol.declarations)==null?void 0:f[0])!==R){re.assert(R.symbol.declarations.length>1);return}if(JC(R))R2(jt,R.symbol.exports);else{const B=o.parent.parent.flags&33554432?void 0:N.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let Y=_w(o,o,B,!0);if(!Y)return;if(Y=hS(Y),Y.flags&1920)if(gt(r1,pe=>Y===pe.symbol)){const pe=Hv(R.symbol,Y,!0);sg||(sg=new Map),sg.set(o.text,pe)}else{if((v=Y.exports)!=null&&v.get("__export")&&((A=R.symbol.exports)!=null&&A.size)){const pe=bWe(Y,"resolvedExports");for(const[Te,Ue]of oc(R.symbol.exports.entries()))pe.has(Te)&&!Y.exports.has(Te)&&Hv(pe.get(Te),Ue)}Hv(Y,R.symbol)}else hn(o,N.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,o.text)}}function le(o,f,v){f.forEach((R,B)=>{const Y=o.get(B);Y?Ot(Y.declarations,A(Ic(B),v)):o.set(B,R)});function A(R,B){return Y=>j_.add(Bs(Y,B,R))}}function Ae(o){if(o.flags&33554432)return o.links;const f=$d(o);return dD[f]??(dD[f]=new Fa)}function rt(o){const f=vm(o);return a0[f]||(a0[f]=new Gst)}function Dn(o){return o.kind===312&&!aE(o)}function Ci(o,f,v){if(v){const A=jp(o.get(f));if(A&&(re.assert((I_(A)&1)===0,"Should never get an instantiated symbol here."),A.flags&v||A.flags&2097152&&pT(A)&v))return A}}function gs(o,f){const v=o.parent,A=o.parent.parent,R=Ci(v.locals,f,111551),B=Ci(j4(A.symbol),f,111551);return R&&B?[R,B]:re.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Tu(o,f){const v=ts(o),A=ts(f),R=QD(o);if(v!==A){if(Ie&&(v.externalModuleIndicator||A.externalModuleIndicator)||!Ng(Pe)||yR(f)||o.flags&33554432||Y(f,o))return!0;const Te=e.getSourceFiles();return Te.indexOf(v)<=Te.indexOf(A)}if(f.flags&16777216||yR(f)||rze(f))return!0;if(o.pos<=f.pos&&!(nu(o)&&Q1(f.parent)&&!o.initializer&&!o.exclamationToken)){if(o.kind===208){const Te=oC(f,208);return Te?Ua(Te,sa)!==Ua(o,sa)||o.posQf(Te)&&Te.parent.parent===o);if(nu(o))return!pe(o,f,!1);if(DT(o,o.parent))return!(Lt&&$b(o)===$b(f)&&Y(f,o))}return!0}if(f.parent.kind===281||f.parent.kind===277&&f.parent.isExportEquals||f.kind===277&&f.isExportEquals)return!0;if(Y(f,o))return Lt&&$b(o)&&(nu(o)||DT(o,o.parent))?!pe(o,f,!0):!0;return!1;function B(Te,Ue){switch(Te.parent.parent.kind){case 243:case 248:case 250:if(WA(Ue,Te,R))return!0;break}const St=Te.parent.parent;return Hz(St)&&WA(Ue,St.expression,R)}function Y(Te,Ue){return!!Ua(Te,St=>{if(St===R)return"quit";if(F_(St))return!0;if(Ep(St))return Ue.posTe.end?!1:Ua(Ue,rn=>{if(rn===Te)return"quit";switch(rn.kind){case 219:return!0;case 172:return St&&(nu(Te)&&rn.parent===Te.parent||DT(Te,Te.parent)&&rn.parent===Te.parent.parent)?"quit":!0;case 241:switch(rn.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function tg(o,f,v){const A=iu(Pe),R=f;if(Os(v)&&R.body&&o.valueDeclaration&&o.valueDeclaration.pos>=R.body.pos&&o.valueDeclaration.end<=R.body.end&&A>=2){const pe=rt(R);return pe.declarationRequiresScopeChange===void 0&&(pe.declarationRequiresScopeChange=Ot(R.parameters,B)||!1),!pe.declarationRequiresScopeChange}return!1;function B(pe){return Y(pe.name)||!!pe.initializer&&Y(pe.initializer)}function Y(pe){switch(pe.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return Y(pe.name);case 172:return ev(pe)?!Lt:Y(pe.name);default:return R8(pe)||uy(pe)?A<7:sa(pe)&&pe.dotDotDotToken&&Ch(pe.parent)?A<4:pc(pe)?!1:s_(pe,Y)||!1}}}function mS(o){return f7(o)&&ky(o.type)||FG(o)&&ky(o.typeExpression)}function gg(o,f,v,A,R,B,Y=!1,pe=!0){return Nh(o,f,v,A,R,B,Y,pe,Ci)}function Nh(o,f,v,A,R,B,Y,pe,Te){var Ue,St,Rt;const rn=o;let Sn,xr,Ai,So,la,Zs=!1;const ba=o;let mo,Ya=!1;e:for(;o;){if(f==="const"&&mS(o))return;if(nie(o)&&xr&&o.name===xr&&(xr=o,o=o.parent),XD(o)&&o.locals&&!Dn(o)&&(Sn=Te(o.locals,f,v))){let Va=!0;if(F_(o)&&xr&&xr!==o.body?(v&Sn.flags&788968&&xr.kind!==327&&(Va=Sn.flags&262144?xr===o.type||xr.kind===169||xr.kind===348||xr.kind===349||xr.kind===168:!1),v&Sn.flags&3&&(tg(Sn,o,xr)?Va=!1:Sn.flags&1&&(Va=xr.kind===169||xr===o.type&&!!Ua(Sn.valueDeclaration,Os)))):o.kind===194&&(Va=xr===o.trueType),Va)break e;Sn=void 0}switch(Zs=Zs||II(o,xr),o.kind){case 312:if(!aE(o))break;Ya=!0;case 267:const Va=((Ue=sc(o))==null?void 0:Ue.exports)||Fe;if(o.kind===312||dy(o)&&o.flags&33554432&&!JC(o)){if(Sn=Va.get("default")){const V_=i6(Sn);if(V_&&Sn.flags&v&&V_.escapedName===f)break e;Sn=void 0}const cc=Va.get(f);if(cc&&cc.flags===2097152&&(Rh(cc,281)||Rh(cc,280)))break}if(f!=="default"&&(Sn=Te(Va,f,v&2623475)))if(Nu(o)&&o.commonJsModuleIndicator&&!((St=Sn.declarations)!=null&&St.some(b2)))Sn=void 0;else break e;break;case 266:if(Sn=Te(((Rt=sc(o))==null?void 0:Rt.exports)||Fe,f,v&8)){A&&F0(Pe)&&!(o.flags&33554432)&&ts(o)!==ts(Sn.valueDeclaration)&&hn(ba,N.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ic(f),Pn,`${Ic(hx(o).escapedName)}.${Ic(f)}`);break e}break;case 172:if(!pd(o)){const cc=hD(o.parent);cc&&cc.locals&&Te(cc.locals,f,v&111551)&&(re.assertNode(o,nu),So=o)}break;case 263:case 231:case 264:if(Sn=Te(sc(o).members||Fe,f,v&788968)){if(!HR(Sn,o)){Sn=void 0;break}if(xr&&pd(xr)){A&&hn(ba,N.Static_members_cannot_reference_class_type_parameters);return}break e}if(v0(o)&&v&32){const cc=o.name;if(cc&&f===cc.escapedText){Sn=o.symbol;break e}}break;case 233:if(xr===o.expression&&o.parent.token===96){const cc=o.parent.parent;if(Fl(cc)&&(Sn=Te(sc(cc).members,f,v&788968))){A&&hn(ba,N.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(mo=o.parent.parent,(Fl(mo)||mo.kind===264)&&(Sn=Te(sc(mo).members,f,v&788968))){A&&hn(ba,N.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(iu(Pe)>=2)break;case 174:case 176:case 177:case 178:case 262:if(v&3&&f==="arguments"){Sn=Tr;break e}break;case 218:if(v&3&&f==="arguments"){Sn=Tr;break e}if(v&16){const cc=o.name;if(cc&&f===cc.escapedText){Sn=o.symbol;break e}}break;case 170:o.parent&&o.parent.kind===169&&(o=o.parent),o.parent&&(J_(o.parent)||o.parent.kind===263)&&(o=o.parent);break;case 353:case 345:case 347:const Da=_H(o);Da&&(o=Da.parent);break;case 169:xr&&(xr===o.initializer||xr===o.name&&$_(xr))&&(la||(la=o));break;case 208:xr&&(xr===o.initializer||xr===o.name&&$_(xr))&&X8(o)&&!la&&(la=o);break;case 195:if(v&262144){const cc=o.typeParameter.name;if(cc&&f===cc.escapedText){Sn=o.typeParameter.symbol;break e}}break;case 281:xr&&xr===o.propertyName&&o.parent.parent.moduleSpecifier&&(o=o.parent.parent.parent);break}Mk(o)&&(Ai=o),xr=o,o=CA(o)?Iie(o)||o.parent:(A2(o)||ppe(o))&&LN(o)||o.parent}if(B&&Sn&&(!Ai||Sn!==Ai.symbol)&&(Sn.isReferenced|=v),!Sn){if(xr&&(re.assertNode(xr,Nu),xr.commonJsModuleIndicator&&f==="exports"&&v&xr.symbol.flags))return xr.symbol;Y||(Sn=Te(jt,f,v))}if(!Sn&&rn&&Cs(rn)&&rn.parent&&y1(rn.parent,!1))return Vr;function Ra(){return So&&!Lt?(hn(ba,ba&&So.type&&P8(So.type,ba.pos)?N.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,hm(So.name),M2(R)),!0):!1}if(Sn){if(A&&Ra())return}else{A&&i(()=>{if(!ba||ba.parent.kind!==331&&!kI(ba,f,R)&&!Ra()&&!JR(ba)&&!HP(ba,f,v)&&!sw(ba,f)&&!z6(ba,f,v)&&!cw(ba,f,v)&&!mD(ba,f,v)){let Va,Da;if(R&&(Da=oyt(R),Da&&hn(ba,A,M2(R),Da)),!Da&&pe&&Cl{if(ba&&(v&2||(v&32||v&384)&&(v&111551)===111551)){const Va=eA(Sn);(Va.flags&2||Va.flags&32||Va.flags&384)&&Vo(Va,ba)}if(Sn&&Ya&&(v&111551)===111551&&!(rn.flags&16777216)){const Va=jp(Sn);Nt(Va.declarations)&&jr(Va.declarations,Da=>lC(Da)||Nu(Da)&&!!Da.symbol.globalExports)&&yh(!Pe.allowUmdGlobalAccess,ba,N._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ic(f))}if(Sn&&la&&!Zs&&(v&111551)===111551){const Va=jp(Pue(Sn)),Da=vA(la);Va===sc(la)?hn(ba,N.Parameter_0_cannot_reference_itself,hm(la.name)):Va.valueDeclaration&&Va.valueDeclaration.pos>la.pos&&Da.parent.locals&&Te(Da.parent.locals,Va.escapedName,v)===Va&&hn(ba,N.Parameter_0_cannot_reference_identifier_1_declared_after_it,hm(la.name),hm(ba))}if(Sn&&ba&&v&111551&&Sn.flags&2097152&&!(Sn.flags&111551)&&!EA(ba)){const Va=Qx(Sn,111551);if(Va){const Da=Va.kind===281||Va.kind===278||Va.kind===280?N._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:N._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,cc=Ic(f);r2(hn(ba,Da,cc),Va,cc)}}}),Sn}function r2(o,f,v){return f?ml(o,Bs(f,f.kind===281||f.kind===278||f.kind===280?N._0_was_exported_here:N._0_was_imported_here,v)):o}function II(o,f){return o.kind!==219&&o.kind!==218?m6(o)||(Vd(o)||o.kind===172&&!pd(o))&&(!f||f!==o.name):f&&f===o.name?!1:o.asteriskToken||ul(o,1024)?!0:!v7(o)}function Mk(o){switch(o.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function M2(o){return As(o)?Ic(o):hm(o)}function HR(o,f){if(o.declarations){for(const v of o.declarations)if(v.kind===168&&(CA(v.parent)?k7(v.parent):v.parent)===f)return!(CA(v.parent)&&lr(v.parent.parent.tags,b2))}return!1}function kI(o,f,v){if(!xn(o)||o.escapedText!==f||Ll(o)||yR(o))return!1;const A=RT(o,!1,!1);let R=A;for(;R;){if(Fl(R.parent)){const B=sc(R.parent);if(!B)break;const Y=La(B);if(Yd(Y,f))return hn(o,N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,M2(v),ru(B)),!0;if(R===A&&!pd(R)){const pe=sh(B).thisType;if(Yd(pe,f))return hn(o,N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,M2(v)),!0}}R=R.parent}return!1}function JR(o){const f=PI(o);return f&&Qg(f,64,!0)?(hn(o,N.Cannot_extend_an_interface_0_Did_you_mean_implements,Lv(f)),!0):!1}function PI(o){switch(o.kind){case 80:case 211:return o.parent?PI(o.parent):void 0;case 233:if(Tg(o.expression))return o.expression;default:return}}function HP(o,f,v){const A=1920|(Cs(o)?111551:0);if(v===A){const R=Av(gg(o,f,788968&~A,void 0,void 0,!1)),B=o.parent;if(R){if(Pu(B)){re.assert(B.left===o,"Should only be resolving left side of qualified name as a namespace");const Y=B.right.escapedText;if(Yd(sh(R),Y))return hn(B,N.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ic(f),Ic(Y)),!0}return hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ic(f)),!0}}return!1}function mD(o,f,v){if(v&788584){const A=Av(gg(o,f,111127,void 0,void 0,!1));if(A&&!(A.flags&1920))return hn(o,N._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ic(f)),!0}return!1}function NI(o){return o==="any"||o==="string"||o==="number"||o==="boolean"||o==="never"||o==="unknown"}function sw(o,f){return NI(f)&&o.parent.kind===281?(hn(o,N.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,f),!0):!1}function cw(o,f,v){if(v&111551){if(NI(f)){const B=o.parent.parent;if(B&&B.parent&&Qb(B)){const Y=B.token,pe=B.parent.kind;pe===264&&Y===96?hn(o,N.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ic(f)):pe===263&&Y===96?hn(o,N.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ic(f)):pe===263&&Y===119&&hn(o,N.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ic(f))}else hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ic(f));return!0}const A=Av(gg(o,f,788544,void 0,void 0,!1)),R=A&&pT(A);if(A&&R!==void 0&&!(R&111551)){const B=Ic(f);return yB(f)?hn(o,N._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,B):aO(o,A)?hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,B,B==="K"?"P":"K"):hn(o,N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,B),!0}}return!1}function aO(o,f){const v=Ua(o.parent,A=>Qf(A)||em(A)?!1:rS(A)||"quit");if(v&&v.members.length===1){const A=sh(f);return!!(A.flags&1048576)&&Gfe(A,384,!0)}return!1}function yB(o){switch(o){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function z6(o,f,v){if(v&111127){if(Av(gg(o,f,1024,void 0,void 0,!1)))return hn(o,N.Cannot_use_namespace_0_as_a_value,Ic(f)),!0}else if(v&788544&&Av(gg(o,f,1536,void 0,void 0,!1)))return hn(o,N.Cannot_use_namespace_0_as_a_type,Ic(f)),!0;return!1}function Vo(o,f){var v;if(re.assert(!!(o.flags&2||o.flags&32||o.flags&384)),o.flags&67108881&&o.flags&32)return;const A=(v=o.declarations)==null?void 0:v.find(R=>v9(R)||Fl(R)||R.kind===266);if(A===void 0)return re.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(A.flags&33554432)&&!Tu(A,f)){let R;const B=hm(i_(A));o.flags&2?R=hn(f,N.Block_scoped_variable_0_used_before_its_declaration,B):o.flags&32?R=hn(f,N.Class_0_used_before_its_declaration,B):o.flags&256&&(R=hn(f,N.Enum_0_used_before_its_declaration,B)),R&&ml(R,Bs(A,N._0_is_declared_here,B))}}function WA(o,f,v){return!!f&&!!Ua(o,A=>A===f||(A===v||F_(A)&&(!v7(A)||ob(A)&3)?"quit":!1))}function gD(o){switch(o.kind){case 271:return o;case 273:return o.parent;case 274:return o.parent.parent;case 276:return o.parent.parent.parent;default:return}}function UT(o){return o.declarations&&ra(o.declarations,wI)}function wI(o){return o.kind===271||o.kind===270||o.kind===273&&!!o.name||o.kind===274||o.kind===280||o.kind===276||o.kind===281||o.kind===277&&K8(o)||Ds(o)&&jy(o)===2&&K8(o)||Kf(o)&&Ds(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64&&k4(o.parent.right)||o.kind===304||o.kind===303&&k4(o.initializer)||o.kind===260&&E7(o)||o.kind===208&&E7(o.parent.parent)}function k4(o){return O9(o)||Jm(o)&&Ax(o)}function P4(o,f){const v=lw(o);if(v){const R=i3(v.expression).arguments[0];return xn(v.name)?Av(Yd(s2(R),v.name.escapedText)):void 0}if(Kc(o)||o.moduleReference.kind===283){const R=gS(o,Sie(o)||iG(o)),B=hS(R);return EE(o,R,B,!1),B}const A=U6(o.moduleReference,f);return G6(o,A),A}function G6(o,f){if(EE(o,void 0,f,!1)&&!o.isTypeOnly){const v=Qx(sc(o)),A=v.kind===281||v.kind===278,R=A?N.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,B=A?N._0_was_exported_here:N._0_was_imported_here,Y=v.kind===278?"*":Ic(v.name.escapedText);ml(hn(o.moduleReference,R),Bs(v,B,Y))}}function rs(o,f,v,A){const R=o.exports.get("export="),B=R?Yd(La(R),f,!0):o.exports.get(f),Y=Av(B,A);return EE(v,B,Y,!1),Y}function Ob(o){return py(o)&&!o.isExportEquals||ul(o,2048)||my(o)||G0(o)}function gf(o){return Cm(o)?PA(ts(o),o):void 0}function ko(o,f){return o===99&&f===1}function ac(o){return gf(o)===99&&h_(o.text,".json")}function Ys(o,f,v,A){const R=o&&gf(A);if(o&&R!==void 0){const B=ko(R,o.impliedNodeFormat);if(R===99||B)return B}if(!Ze)return!1;if(!o||o.isDeclarationFile){const B=rs(f,"default",void 0,!0);return!(B&>(B.declarations,Ob)||rs(f,ey("__esModule"),void 0,v))}return Gy(o)?typeof o.externalModuleIndicator!="object"&&!rs(f,ey("__esModule"),void 0,v):lO(f)}function Ni(o,f){const v=gS(o,o.parent.moduleSpecifier);if(v)return Nl(v,o,f)}function Nl(o,f,v){var A;let R;ZU(o)?R=o:R=rs(o,"default",f,v);const B=(A=o.declarations)==null?void 0:A.find(Nu),Y=Xd(f);if(!Y)return R;const pe=ac(Y),Te=Ys(B,o,v,Y);if(!R&&!Te&&!pe)if(lO(o)&&!Ze){const Ue=Ie>=5?"allowSyntheticDefaultImports":"esModuleInterop",Rt=o.exports.get("export=").valueDeclaration,rn=hn(f.name,N.Module_0_can_only_be_default_imported_using_the_1_flag,ru(o),Ue);Rt&&ml(rn,Bs(Rt,N.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Ue))}else Tk(f)?b_(o,f):RI(o,o,f,fP(f)&&f.propertyName||f.name);else if(Te||pe){const Ue=hS(o,v)||Av(o,v);return EE(f,o,Ue,!1),Ue}return EE(f,R,void 0,!1),R}function Xd(o){switch(o.kind){case 273:return o.parent.moduleSpecifier;case 271:return KE(o.moduleReference)?o.moduleReference.expression:void 0;case 274:return o.parent.parent.moduleSpecifier;case 276:return o.parent.parent.parent.moduleSpecifier;case 281:return o.parent.parent.moduleSpecifier;default:return re.assertNever(o)}}function b_(o,f){var v,A,R;if((v=o.exports)!=null&&v.has(f.symbol.escapedName))hn(f.name,N.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ru(o),ru(f.symbol));else{const B=hn(f.name,N.Module_0_has_no_default_export,ru(o)),Y=(A=o.exports)==null?void 0:A.get("__export");if(Y){const pe=(R=Y.declarations)==null?void 0:R.find(Te=>{var Ue,St;return!!(ry(Te)&&Te.moduleSpecifier&&((St=(Ue=gS(Te,Te.moduleSpecifier))==null?void 0:Ue.exports)!=null&&St.has("default")))});pe&&ml(B,Bs(pe,N.export_Asterisk_does_not_re_export_a_default))}}}function Gp(o,f){const v=o.parent.parent.moduleSpecifier,A=gS(o,v),R=R4(A,v,f,!1);return EE(o,A,R,!1),R}function w1(o,f){const v=o.parent.moduleSpecifier,A=v&&gS(o,v),R=v&&R4(A,v,f,!1);return EE(o,A,R,!1),R}function zS(o,f){if(o===Pr&&f===Pr)return Pr;if(o.flags&790504)return o;const v=tp(o.flags|f.flags,o.escapedName);return re.assert(o.declarations||f.declarations),v.declarations=th(Hi(o.declarations,f.declarations),_1),v.parent=o.parent||f.parent,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration),f.members&&(v.members=new Map(f.members)),o.exports&&(v.exports=new Map(o.exports)),v}function SE(o,f,v,A){var R;if(o.flags&1536){const B=L2(o).get(f.escapedText),Y=Av(B,A),pe=(R=Ae(o).typeOnlyExportStarMap)==null?void 0:R.get(f.escapedText);return EE(v,B,Y,!1,pe,f.escapedText),Y}}function R1(o,f){if(o.flags&3){const v=o.valueDeclaration.type;if(v)return Av(Yd(Xl(v),f))}}function JP(o,f,v=!1){var A;const R=Sie(o)||o.moduleSpecifier,B=gS(o,R),Y=!Ac(f)&&f.propertyName||f.name;if(!xn(Y))return;const pe=Y.escapedText==="default"&&Ze,Te=R4(B,R,!1,pe);if(Te&&Y.escapedText){if(ZU(B))return B;let Ue;B&&B.exports&&B.exports.get("export=")?Ue=Yd(La(Te),Y.escapedText,!0):Ue=R1(Te,Y.escapedText),Ue=Av(Ue,v);let St=SE(Te,Y,f,v);if(St===void 0&&Y.escapedText==="default"){const rn=(A=B.declarations)==null?void 0:A.find(Nu);(ac(R)||Ys(rn,B,v,R))&&(St=hS(B,v)||Av(B,v))}const Rt=St&&Ue&&St!==Ue?zS(Ue,St):St||Ue;return Rt||RI(B,Te,o,Y),Rt}}function RI(o,f,v,A){var R;const B=GS(o,v),Y=hm(A),pe=Ife(A,f);if(pe!==void 0){const Te=ru(pe),Ue=hn(A,N._0_has_no_exported_member_named_1_Did_you_mean_2,B,Y,Te);pe.valueDeclaration&&ml(Ue,Bs(pe.valueDeclaration,N._0_is_declared_here,Te))}else(R=o.exports)!=null&&R.has("default")?hn(A,N.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,B,Y):Uy(v,A,Y,o,B)}function Uy(o,f,v,A,R){var B,Y;const pe=(Y=(B=to(A.valueDeclaration,XD))==null?void 0:B.locals)==null?void 0:Y.get(f.escapedText),Te=A.exports;if(pe){const Ue=Te==null?void 0:Te.get("export=");if(Ue)AE(Ue,pe)?Lk(o,f,v,R):hn(f,N.Module_0_has_no_exported_member_1,R,v);else{const St=Te?lr(q0e(Te),rn=>!!AE(rn,pe)):void 0,Rt=St?hn(f,N.Module_0_declares_1_locally_but_it_is_exported_as_2,R,v,ru(St)):hn(f,N.Module_0_declares_1_locally_but_it_is_not_exported,R,v);pe.declarations&&ml(Rt,...Vn(pe.declarations,(rn,Sn)=>Bs(rn,Sn===0?N._0_is_declared_here:N.and_here,v)))}}else hn(f,N.Module_0_has_no_exported_member_1,R,v)}function Lk(o,f,v,A){if(Ie>=5){const R=b1(Pe)?N._0_can_only_be_imported_by_using_a_default_import:N._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v)}else if(Cs(o)){const R=b1(Pe)?N._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:N._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v)}else{const R=b1(Pe)?N._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:N._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;hn(f,R,v,v,A)}}function N4(o,f){if(qE(o)&&Kr(o.propertyName||o.name)==="default"){const Y=Xd(o),pe=Y&&gS(o,Y);if(pe)return Nl(pe,o,f)}const v=sa(o)?vA(o):o.parent.parent.parent,A=lw(v),R=JP(v,A||o,f),B=o.propertyName||o.name;return A&&R&&xn(B)?Av(Yd(La(R),B.escapedText),f):(EE(o,void 0,R,!1),R)}function lw(o){if(Kc(o)&&o.initializer&&Ac(o.initializer))return o.initializer}function j6(o,f){if(ck(o.parent)){const v=hS(o.parent.symbol,f);return EE(o,void 0,v,!1),v}}function sO(o,f,v){if(Kr(o.propertyName||o.name)==="default"){const R=Xd(o),B=R&&gS(o,R);if(B)return Nl(B,o,!!v)}const A=o.parent.parent.moduleSpecifier?JP(o.parent.parent,o,v):Qg(o.propertyName||o.name,f,!1,v);return EE(o,void 0,A,!1),A}function Ok(o,f){const v=py(o)?o.expression:o.right,A=vB(v,f);return EE(o,void 0,A,!1),A}function vB(o,f){if(v0(o))return kv(o).symbol;if(!kT(o)&&!Tg(o))return;const v=Qg(o,901119,!0,f);return v||(kv(o),rt(o).resolvedSymbol)}function Rm(o,f){if(Ds(o.parent)&&o.parent.left===o&&o.parent.operatorToken.kind===64)return vB(o.parent.right,f)}function Yx(o,f=!1){switch(o.kind){case 271:case 260:return P4(o,f);case 273:return Ni(o,f);case 274:return Gp(o,f);case 280:return w1(o,f);case 276:case 208:return N4(o,f);case 281:return sO(o,901119,f);case 277:case 226:return Ok(o,f);case 270:return j6(o,f);case 304:return Qg(o.name,901119,!0,f);case 303:return vB(o.initializer,f);case 212:case 211:return Rm(o,f);default:return re.fail()}}function uw(o,f=901119){return o?(o.flags&(2097152|f))===2097152||!!(o.flags&2097152&&o.flags&67108864):!1}function Av(o,f){return!f&&uw(o)?C0(o):o}function C0(o){re.assert((o.flags&2097152)!==0,"Should only get Alias here.");const f=Ae(o);if(f.aliasTarget)f.aliasTarget===Bt&&(f.aliasTarget=Pr);else{f.aliasTarget=Bt;const v=UT(o);if(!v)return re.fail();const A=Yx(v);f.aliasTarget===Bt?f.aliasTarget=A||Pr:hn(v,N.Circular_definition_of_import_alias_0,ru(o))}return f.aliasTarget}function mV(o){if(Ae(o).aliasTarget!==Bt)return C0(o)}function pT(o,f,v){const A=f&&Qx(o),R=A&&ry(A),B=A&&(R?gS(A.moduleSpecifier,A.moduleSpecifier,!0):C0(A.symbol)),Y=R&&B?dw(B):void 0;let pe=v?0:o.flags,Te;for(;o.flags&2097152;){const Ue=eA(C0(o));if(!R&&Ue===B||(Y==null?void 0:Y.get(Ue.escapedName))===Ue)break;if(Ue===Pr)return 67108863;if(Ue===o||Te!=null&&Te.has(Ue))break;Ue.flags&2097152&&(Te?Te.add(Ue):Te=new Set([o,Ue])),pe|=Ue.flags,o=Ue}return pe}function EE(o,f,v,A,R,B){if(!o||Ac(o))return!1;const Y=sc(o);if(O8(o)){const Te=Ae(Y);return Te.typeOnlyDeclaration=o,!0}if(R){const Te=Ae(Y);return Te.typeOnlyDeclaration=R,Y.escapedName!==B&&(Te.typeOnlyExportStarName=B),!0}const pe=Ae(Y);return cO(pe,f,A)||cO(pe,v,A)}function cO(o,f,v){var A;if(f&&(o.typeOnlyDeclaration===void 0||v&&o.typeOnlyDeclaration===!1)){const R=((A=f.exports)==null?void 0:A.get("export="))??f,B=R.declarations&&lr(R.declarations,O8);o.typeOnlyDeclaration=B??Ae(R).typeOnlyDeclaration??!1}return!!o.typeOnlyDeclaration}function Qx(o,f){if(!(o.flags&2097152))return;const v=Ae(o);if(f===void 0)return v.typeOnlyDeclaration||void 0;if(v.typeOnlyDeclaration){const A=v.typeOnlyDeclaration.kind===278?Av(dw(v.typeOnlyDeclaration.symbol.parent).get(v.typeOnlyExportStarName||o.escapedName)):C0(v.typeOnlyDeclaration.symbol);return pT(A)&f?v.typeOnlyDeclaration:void 0}}function V6(o){if(!Fr)return;const f=sc(o),v=C0(f);v&&(v===Pr||pT(f,!0)&111551&&!ud(v))&&fw(f)}function fw(o){re.assert(Fr);const f=Ae(o);if(!f.referenced){f.referenced=!0;const v=UT(o);if(!v)return re.fail();$M(v)&&pT(Av(o))&111551&&kv(v.moduleReference)}}function s0(o){const f=Ae(o);f.constEnumReferenced||(f.constEnumReferenced=!0)}function U6(o,f){return o.kind===80&&z7(o)&&(o=o.parent),o.kind===80||o.parent.kind===166?Qg(o,1920,!1,f):(re.assert(o.parent.kind===271),Qg(o,901119,!1,f))}function GS(o,f){return o.parent?GS(o.parent,f)+"."+ru(o):ru(o,f,void 0,36)}function w4(o){for(;Pu(o.parent);)o=o.parent;return o}function Kq(o){let f=PS(o),v=gg(f,f.escapedText,111551,void 0,f,!0);if(v){for(;Pu(f.parent);){const A=La(v);if(v=Yd(A,f.parent.right.escapedText),!v)return;f=f.parent}return v}}function Qg(o,f,v,A,R){if(ny(o))return;const B=1920|(Cs(o)?f&111551:0);let Y;if(o.kind===80){const pe=f===B||Hd(o)?N.Cannot_find_namespace_0:xtt(PS(o)),Te=Cs(o)&&!Hd(o)?bB(o,f):void 0;if(Y=jp(gg(R||o,o.escapedText,f,v||Te?void 0:pe,o,!0,!1)),!Y)return jp(Te)}else if(o.kind===166||o.kind===211){const pe=o.kind===166?o.left:o.expression,Te=o.kind===166?o.right:o.name;let Ue=Qg(pe,B,v,!1,R);if(!Ue||ny(Te))return;if(Ue===Pr)return Ue;if(Ue.valueDeclaration&&Cs(Ue.valueDeclaration)&&Jd(Pe)!==100&&Kc(Ue.valueDeclaration)&&Ue.valueDeclaration.initializer&&eGe(Ue.valueDeclaration.initializer)){const St=Ue.valueDeclaration.initializer.arguments[0],Rt=gS(St,St);if(Rt){const rn=hS(Rt);rn&&(Ue=rn)}}if(Y=jp(Ci(L2(Ue),Te.escapedText,f)),!Y&&Ue.flags&2097152&&(Y=jp(Ci(L2(C0(Ue)),Te.escapedText,f))),!Y){if(!v){const St=GS(Ue),Rt=hm(Te),rn=Ife(Te,Ue);if(rn){hn(Te,N._0_has_no_exported_member_named_1_Did_you_mean_2,St,Rt,ru(rn));return}const Sn=Pu(o)&&w4(o);if(Jt&&f&788968&&Sn&&!yk(Sn.parent)&&Kq(Sn)){hn(Sn,N._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,iE(Sn));return}if(f&1920&&Pu(o.parent)){const Ai=jp(Ci(L2(Ue),Te.escapedText,788968));if(Ai){hn(o.parent.right,N.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,ru(Ai),Ic(o.parent.right.escapedText));return}}hn(Te,N.Namespace_0_has_no_exported_member_1,St,Rt)}return}}else re.assertNever(o,"Unknown entity name kind.");return re.assert((I_(Y)&1)===0,"Should never get an instantiated symbol here."),!Hd(o)&&kT(o)&&(Y.flags&2097152||o.parent.kind===277)&&EE(vP(o),Y,void 0,!0),Y.flags&f||A?Y:C0(Y)}function bB(o,f){if(Q6(o.parent)){const v=BA(o.parent);if(v)return gg(v,o.escapedText,f,void 0,o,!0)}}function BA(o){if(Ua(o,R=>Jz(R)||R.flags&16777216?b2(R):"quit"))return;const v=k7(o);if(v&&kb(v)&&jL(v.expression)){const R=sc(v.expression.left);if(R)return $R(R)}if(v&&Jm(v)&&jL(v.parent)&&kb(v.parent.parent)){const R=sc(v.parent.left);if(R)return $R(R)}if(v&&(iC(v)||tl(v))&&Ds(v.parent.parent)&&jy(v.parent.parent)===6){const R=sc(v.parent.parent.left);if(R)return $R(R)}const A=YM(o);if(A&&F_(A)){const R=sc(A);return R&&R.valueDeclaration}}function $R(o){const f=o.parent.valueDeclaration;return f?(eT(f)?I9(f):g1(f)?pR(f):void 0)||f:void 0}function M1(o){const f=o.valueDeclaration;if(!f||!Cs(f)||o.flags&524288||KM(f,!1))return;const v=Kc(f)?pR(f):I9(f);if(v){const A=hx(v);if(A)return ywe(A,o)}}function gS(o,f,v){const R=Jd(Pe)===1?N.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N.Cannot_find_module_0_or_its_corresponding_type_declarations;return _w(o,f,v?void 0:R)}function _w(o,f,v,A=!1){return Cm(f)?qR(o,f.text,v,f,A):void 0}function qR(o,f,v,A,R=!1){var B,Y,pe,Te,Ue,St,Rt,rn,Sn,xr;if(qf(f,"@types/")){const Da=N.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,cc=xf(f,"@types/");hn(A,Da,cc,f)}const Ai=aK(f,!0);if(Ai)return Ai;const So=ts(o),la=Cm(o)?o:((B=Ua(o,Py))==null?void 0:B.arguments[0])||((Y=Ua(o,n0))==null?void 0:Y.moduleSpecifier)||((pe=Ua(o,Mx))==null?void 0:pe.moduleReference.expression)||((Te=Ua(o,ry))==null?void 0:Te.moduleSpecifier)||((Ue=dy(o)?o:o.parent&&dy(o.parent)&&o.parent.name===o?o.parent:void 0)==null?void 0:Ue.name)||((St=MN(o)?o:void 0)==null?void 0:St.argument.literal),Zs=la&&Cm(la)?PA(So,la):So.impliedNodeFormat,ba=Jd(Pe),mo=(Rt=e.getResolvedModule(So,f,Zs))==null?void 0:Rt.resolvedModule,Ya=mo&&QQ(Pe,mo,So),Ra=mo&&(!Ya||Ya===N.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(mo.resolvedFileName);if(Ra){if(Ya&&hn(A,Ya,f,mo.resolvedFileName),mo.resolvedUsingTsExtension&&Zb(f)){const Da=((rn=Ua(o,n0))==null?void 0:rn.importClause)||Ua(o,bb(Yb,ry));(Da&&!Da.isTypeOnly||Ua(o,Py))&&hn(A,N.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Va(re.checkDefined(PH(f))))}else if(mo.resolvedUsingTsExtension&&!MW(Pe,So.fileName)){const Da=((Sn=Ua(o,n0))==null?void 0:Sn.importClause)||Ua(o,bb(Yb,ry));if(!(Da!=null&&Da.isTypeOnly||Ua(o,E1))){const cc=re.checkDefined(PH(f));hn(A,N.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,cc)}}if(Ra.symbol){if(mo.isExternalLibraryImport&&!G7(mo.extension)&&i2(!1,A,So,Zs,mo,f),ba===3||ba===99){const Da=So.impliedNodeFormat===1&&!Ua(o,Py)||!!Ua(o,Yb),cc=Ua(o,V_=>E1(V_)||ry(V_)||n0(V_));if(Da&&Ra.impliedNodeFormat===99&&!_6(cc))if(Ua(o,Yb))hn(A,N.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,f);else{let V_;const fd=OT(So.fileName);if(fd===".ts"||fd===".js"||fd===".tsx"||fd===".jsx"){const ad=So.packageJsonScope,Xf=fd===".ts"?".mts":fd===".js"?".mjs":void 0;ad&&!ad.contents.packageJsonContent.type?Xf?V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Xf,vl(ad.packageDirectory,"package.json")):V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,vl(ad.packageDirectory,"package.json")):Xf?V_=Es(void 0,N.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,Xf):V_=Es(void 0,N.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}j_.add(wN(ts(A),A,Es(V_,N.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,f)))}}return jp(Ra.symbol)}v&&hn(A,N.File_0_is_not_a_module,Ra.fileName);return}if(r1){const Da=AL(r1,cc=>cc.pattern,f);if(Da){const cc=sg&&sg.get(f);return jp(cc||Da.symbol)}}if(mo&&!G7(mo.extension)&&Ya===void 0||Ya===N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(R){const Da=N.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;hn(A,Da,f,mo.resolvedFileName)}else i2(Et&&!!v,A,So,Zs,mo,f);return}if(v){if(mo){const Da=e.getProjectReferenceRedirect(mo.resolvedFileName);if(Da){hn(A,N.Output_file_0_has_not_been_built_from_source_file_1,Da,mo.resolvedFileName);return}}if(Ya)hn(A,Ya,f,mo.resolvedFileName);else{const Da=V2(f)&&!r9(f),cc=ba===3||ba===99;if(!sI(Pe)&&mm(f,".json")&&ba!==1&&BH(Pe))hn(A,N.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,f);else if(Zs===99&&cc&&Da){const V_=vf(f,ws(So.path)),fd=(xr=zn.find(([ad,Xf])=>e.fileExists(V_+ad)))==null?void 0:xr[1];fd?hn(A,N.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,f+fd):hn(A,N.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 hn(A,v,f)}}return;function Va(Da){const cc=eW(f,Da);if(WH(Ie)||Zs===99){const V_=Zb(f)&&MW(Pe);return cc+(Da===".mts"||Da===".d.mts"?V_?".mts":".mjs":Da===".cts"||Da===".d.mts"?V_?".cts":".cjs":V_?".ts":".js")}return cc}}function i2(o,f,v,A,{packageId:R,resolvedFileName:B},Y){let pe;!Kv(Y)&&R&&(pe=KU(v,e,Y,A,R.name)),yh(o,f,Es(pe,N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,Y,B))}function hS(o,f){if(o!=null&&o.exports){const v=Av(o.exports.get("export="),f),A=TB(jp(v),jp(o));return jp(A)||o}}function TB(o,f){if(!o||o===Pr||o===f||f.exports.size===1||o.flags&2097152)return o;const v=Ae(o);if(v.cjsExportMerged)return v.cjsExportMerged;const A=o.flags&33554432?o:Bm(o);return A.flags=A.flags|512,A.exports===void 0&&(A.exports=zd()),f.exports.forEach((R,B)=>{B!=="export="&&A.exports.set(B,A.exports.has(B)?Hv(A.exports.get(B),R):R)}),A===o&&(Ae(A).resolvedExports=void 0,Ae(A).resolvedMembers=void 0),Ae(A).cjsExportMerged=A,v.cjsExportMerged=A}function R4(o,f,v,A){var R;const B=hS(o,v);if(!v&&B){if(!A&&!(B.flags&1539)&&!Rh(B,312)){const pe=Ie>=5?"allowSyntheticDefaultImports":"esModuleInterop";return hn(f,N.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,pe),B}const Y=f.parent;if(n0(Y)&&H8(Y)||Py(Y)){const pe=Py(Y)?Y.arguments[0]:Y.moduleSpecifier,Te=La(B),Ue=Zze(Te,B,o,pe);if(Ue)return Zx(B,Ue,Y);const St=(R=o==null?void 0:o.declarations)==null?void 0:R.find(Nu),Rt=St&&ko(gf(pe),St.impliedNodeFormat);if(b1(Pe)||Rt){let rn=$0e(Te,0);if((!rn||!rn.length)&&(rn=$0e(Te,1)),rn&&rn.length||Yd(Te,"default",!0)||Rt){const Sn=Te.flags&3670016?Bnt(Te,B,o,pe):Twe(B,B.parent);return Zx(B,Sn,Y)}}}}return B}function Zx(o,f,v){const A=tp(o.flags,o.escapedName);A.declarations=o.declarations?o.declarations.slice():[],A.parent=o.parent,A.links.target=o,A.links.originatingImport=v,o.valueDeclaration&&(A.valueDeclaration=o.valueDeclaration),o.constEnumOnlyModule&&(A.constEnumOnlyModule=!0),o.members&&(A.members=new Map(o.members)),o.exports&&(A.exports=new Map(o.exports));const R=Gh(f);return A.links.type=sy(A,R.members,Yn,Yn,R.indexInfos),A}function lO(o){return o.exports.get("export=")!==void 0}function H6(o){return q0e(dw(o))}function gV(o){const f=H6(o),v=hS(o);if(v!==o){const A=La(v);uO(A)&&Oi(f,zm(A))}return f}function hV(o,f){dw(o).forEach((R,B)=>{jS(B)||f(R,B)});const A=hS(o);if(A!==o){const R=La(A);uO(R)&&ngt(R,(B,Y)=>{f(B,Y)})}}function JF(o,f){const v=dw(f);if(v)return v.get(o)}function SB(o,f){const v=JF(o,f);if(v)return v;const A=hS(f);if(A===f)return;const R=La(A);return uO(R)?Yd(R,o):void 0}function uO(o){return!(o.flags&402784252||ji(o)&1||kE(o)||Dp(o))}function L2(o){return o.flags&6256?bWe(o,"resolvedExports"):o.flags&1536?dw(o):o.exports||Fe}function dw(o){const f=Ae(o);if(!f.resolvedExports){const{exports:v,typeOnlyExportStarMap:A}=yV(o);f.resolvedExports=v,f.typeOnlyExportStarMap=A}return f.resolvedExports}function EB(o,f,v,A){f&&f.forEach((R,B)=>{if(B==="default")return;const Y=o.get(B);if(!Y)o.set(B,R),v&&A&&v.set(B,{specifierText:Lv(A.moduleSpecifier)});else if(v&&A&&Y&&Av(Y)!==Av(R)){const pe=v.get(B);pe.exportsWithDuplicate?pe.exportsWithDuplicate.push(A):pe.exportsWithDuplicate=[A]}})}function yV(o){const f=[];let v;const A=new Set;o=hS(o);const R=B(o)||Fe;return v&&A.forEach(Y=>v.delete(Y)),{exports:R,typeOnlyExportStarMap:v};function B(Y,pe,Te){if(!Te&&(Y!=null&&Y.exports)&&Y.exports.forEach((Rt,rn)=>A.add(rn)),!(Y&&Y.exports&&Dy(f,Y)))return;const Ue=new Map(Y.exports),St=Y.exports.get("__export");if(St){const Rt=zd(),rn=new Map;if(St.declarations)for(const Sn of St.declarations){const xr=gS(Sn,Sn.moduleSpecifier),Ai=B(xr,Sn,Te||Sn.isTypeOnly);EB(Rt,Ai,rn,Sn)}rn.forEach(({exportsWithDuplicate:Sn},xr)=>{if(!(xr==="export="||!(Sn&&Sn.length)||Ue.has(xr)))for(const Ai of Sn)j_.add(Bs(Ai,N.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,rn.get(xr).specifierText,Ic(xr)))}),EB(Ue,Rt)}return pe!=null&&pe.isTypeOnly&&(v??(v=new Map),Ue.forEach((Rt,rn)=>v.set(rn,pe))),Ue}}function jp(o){let f;return o&&o.mergeId&&(f=oa[o.mergeId])?f:o}function sc(o){return jp(o.symbol&&Pue(o.symbol))}function hx(o){return ck(o)?sc(o):void 0}function xE(o){return jp(o.parent&&Pue(o.parent))}function fO(o,f){const v=ts(f),A=vm(v),R=Ae(o);let B;if(R.extendedContainersByFile&&(B=R.extendedContainersByFile.get(A)))return B;if(v&&v.imports){for(const pe of v.imports){if(Hd(pe))continue;const Te=gS(f,pe,!0);!Te||!M4(Te,o)||(B=ur(B,Te))}if(Nt(B))return(R.extendedContainersByFile||(R.extendedContainersByFile=new Map)).set(A,B),B}if(R.extendedContainers)return R.extendedContainers;const Y=e.getSourceFiles();for(const pe of Y){if(!Bv(pe))continue;const Te=sc(pe);M4(Te,o)&&(B=ur(B,Te))}return R.extendedContainers=B||Yn}function vV(o,f,v){const A=xE(o);if(A&&!(o.flags&262144)){const Y=Qo(A.declarations,B),pe=f&&fO(o,f),Te=_O(A,v);if(f&&A.flags&o2(v)&&pw(A,f,1920,!1))return ur(Hi(Hi([A],Y),pe),Te);const Ue=!(A.flags&o2(v))&&A.flags&788968&&sh(A).flags&524288&&v===111551?O2(f,Rt=>Jb(Rt,rn=>{if(rn.flags&o2(v)&&La(rn)===sh(A))return rn})):void 0;let St=Ue?[Ue,...Y,A]:[...Y,A];return St=ur(St,Te),St=Oi(St,pe),St}const R=Qo(o.declarations,Y=>{if(!dh(Y)&&Y.parent){if(Z_(Y.parent))return sc(Y.parent);if(kh(Y.parent)&&Y.parent.parent&&hS(sc(Y.parent.parent))===o)return sc(Y.parent.parent)}if(v0(Y)&&Ds(Y.parent)&&Y.parent.operatorToken.kind===64&&Kf(Y.parent.left)&&Tg(Y.parent.left.expression))return jE(Y.parent.left)||P9(Y.parent.left.expression)?sc(ts(Y)):(kv(Y.parent.left.expression),rt(Y.parent.left.expression).resolvedSymbol)});if(!Nt(R))return;return Qo(R,Y=>M4(Y,o)?Y:void 0);function B(Y){return A&&$F(Y,A)}}function _O(o,f){const v=!!Nt(o.declarations)&&Dl(o.declarations);if(f&111551&&v&&v.parent&&Kc(v.parent)&&(el(v)&&v===v.parent.initializer||rS(v)&&v===v.parent.type))return sc(v.parent)}function $F(o,f){const v=ql(o),A=v&&v.exports&&v.exports.get("export=");return A&&AE(A,f)?v:void 0}function M4(o,f){if(o===xE(f))return f;const v=o.exports&&o.exports.get("export=");if(v&&AE(v,f))return o;const A=L2(o),R=A.get(f.escapedName);return R&&AE(R,f)?R:Jb(A,B=>{if(AE(B,f))return B})}function AE(o,f){if(jp(Av(jp(o)))===jp(Av(jp(f))))return o}function eA(o){return jp(o&&(o.flags&1048576)!==0&&o.exportSymbol||o)}function KR(o,f){return!!(o.flags&111551||o.flags&2097152&&pT(o,!f)&111551)}function hD(o){const f=o.members;for(const v of f)if(v.kind===176&&y2(v.body))return v}function TC(o){var f;const v=new E($i,o);return k++,v.id=k,(f=ps)==null||f.recordType(v),v}function L1(o,f){const v=TC(o);return v.symbol=f,v}function mT(o){return new E($i,o)}function Vg(o,f,v=0,A){SC(f,A);const R=TC(o);return R.intrinsicName=f,R.debugIntrinsicName=A,R.objectFlags=v|524288|2097152|33554432|16777216,R}function SC(o,f){const v=`${o},${f??""}`;$r.has(v)&&re.fail(`Duplicate intrinsic type name ${o}${f?` (${f})`:""}; you may need to pass a name to createIntrinsicType.`),$r.add(v)}function tA(o,f){const v=L1(524288,f);return v.objectFlags=o,v.members=void 0,v.properties=void 0,v.callSignatures=void 0,v.constructSignatures=void 0,v.indexInfos=void 0,v}function L4(){return dc(oc(Dae.keys(),vS))}function c0(o){return L1(262144,o)}function jS(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)!==95&&o.charCodeAt(2)!==64&&o.charCodeAt(2)!==35}function dO(o){let f;return o.forEach((v,A)=>{pO(v,A)&&(f||(f=[])).push(v)}),f||Yn}function pO(o,f){return!jS(f)&&KR(o)}function Xq(o){const f=dO(o),v=bO(o);return v?Hi(f,[v]):f}function by(o,f,v,A,R){const B=o;return B.members=f,B.properties=Yn,B.callSignatures=v,B.constructSignatures=A,B.indexInfos=R,f!==Fe&&(B.properties=dO(f)),B}function sy(o,f,v,A,R){return by(tA(16,o),f,v,A,R)}function K0(o){if(o.constructSignatures.length===0)return o;if(o.objectTypeWithoutAbstractConstructSignatures)return o.objectTypeWithoutAbstractConstructSignatures;const f=gi(o.constructSignatures,A=>!(A.flags&4));if(o.constructSignatures===f)return o;const v=sy(o.symbol,o.members,o.callSignatures,gt(f)?f:Yn,o.indexInfos);return o.objectTypeWithoutAbstractConstructSignatures=v,v.objectTypeWithoutAbstractConstructSignatures=v,v}function O2(o,f){let v;for(let A=o;A;A=A.parent){if(XD(A)&&A.locals&&!Dn(A)&&(v=f(A.locals,void 0,!0,A)))return v;switch(A.kind){case 312:if(!aE(A))break;case 267:const R=sc(A);if(v=f((R==null?void 0:R.exports)||Fe,void 0,!0,A))return v;break;case 263:case 231:case 264:let B;if((sc(A).members||Fe).forEach((Y,pe)=>{Y.flags&788968&&(B||(B=zd())).set(pe,Y)}),B&&(v=f(B,void 0,!1,A)))return v;break}}return f(jt,void 0,!0)}function o2(o){return o===111551?111551:1920}function pw(o,f,v,A,R=new Map){if(!(o&&!O4(o)))return;const B=Ae(o),Y=B.accessibleChainCache||(B.accessibleChainCache=new Map),pe=O2(f,(la,Zs,ba,mo)=>mo),Te=`${A?0:1}|${pe&&vm(pe)}|${v}`;if(Y.has(Te))return Y.get(Te);const Ue=$d(o);let St=R.get(Ue);St||R.set(Ue,St=[]);const Rt=O2(f,rn);return Y.set(Te,Rt),Rt;function rn(la,Zs,ba){if(!Dy(St,la))return;const mo=Ai(la,Zs,ba);return St.pop(),mo}function Sn(la,Zs){return!Vp(la,f,Zs)||!!pw(la.parent,f,o2(Zs),A,R)}function xr(la,Zs,ba){return(o===(Zs||la)||jp(o)===jp(Zs||la))&&!gt(la.declarations,Z_)&&(ba||Sn(jp(la),v))}function Ai(la,Zs,ba){return xr(la.get(o.escapedName),void 0,Zs)?[o]:Jb(la,Ya=>{if(Ya.flags&2097152&&Ya.escapedName!=="export="&&Ya.escapedName!=="default"&&!(MH(Ya)&&f&&Bv(ts(f)))&&(!A||gt(Ya.declarations,Mx))&&(!ba||!gt(Ya.declarations,oH))&&(Zs||!Rh(Ya,281))){const Ra=C0(Ya),Va=So(Ya,Ra,Zs);if(Va)return Va}if(Ya.escapedName===o.escapedName&&Ya.exportSymbol&&xr(jp(Ya.exportSymbol),void 0,Zs))return[o]})||(la===jt?So(fr,fr,Zs):void 0)}function So(la,Zs,ba){if(xr(la,Zs,ba))return[la];const mo=L2(Zs),Ya=mo&&rn(mo,!0);if(Ya&&Sn(la,o2(v)))return[la].concat(Ya)}}function Vp(o,f,v){let A=!1;return O2(f,R=>{let B=jp(R.get(o.escapedName));if(!B)return!1;if(B===o)return!0;const Y=B.flags&2097152&&!Rh(B,281);return B=Y?C0(B):B,(Y?pT(B):B.flags)&v?(A=!0,!0):!1}),A}function O4(o){if(o.declarations&&o.declarations.length){for(const f of o.declarations)switch(f.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(o,f){return Vu(o,f,788968,!1,!0).accessibility===0}function yt(o,f){return Vu(o,f,111551,!1,!0).accessibility===0}function Er(o,f,v){return Vu(o,f,v,!1,!1).accessibility===0}function Wi(o,f,v,A,R,B){if(!Nt(o))return;let Y,pe=!1;for(const Te of o){const Ue=pw(Te,f,A,!1);if(Ue){Y=Te;const rn=CE(Ue[0],R);if(rn)return rn}if(B&>(Te.declarations,Z_)){if(R){pe=!0;continue}return{accessibility:0}}const St=vV(Te,f,A),Rt=Wi(St,f,v,v===Te?o2(A):A,R,B);if(Rt)return Rt}if(pe)return{accessibility:0};if(Y)return{accessibility:1,errorSymbolName:ru(v,f,A),errorModuleName:Y!==v?ru(Y,f,1920):void 0}}function nc(o,f,v,A){return Vu(o,f,v,A,!0)}function Vu(o,f,v,A,R){if(o&&f){const B=Wi([o],f,o,v,A,R);if(B)return B;const Y=Ot(o.declarations,ql);if(Y){const pe=ql(f);if(Y!==pe)return{accessibility:2,errorSymbolName:ru(o,f,v),errorModuleName:ru(Y),errorNode:Cs(f)?f:void 0}}return{accessibility:1,errorSymbolName:ru(o,f,v)}}return{accessibility:0}}function ql(o){const f=Ua(o,Pf);return f&&sc(f)}function Pf(o){return dh(o)||o.kind===312&&aE(o)}function Z_(o){return rY(o)||o.kind===312&&aE(o)}function CE(o,f){let v;if(!jr(gi(o.declarations,B=>B.kind!==80),A))return;return{accessibility:0,aliasesToMakeVisible:v};function A(B){var Y,pe;if(!gw(B)){const Te=gD(B);if(Te&&!ul(Te,32)&&gw(Te.parent))return R(B,Te);if(Kc(B)&&Xg(B.parent.parent)&&!ul(B.parent.parent,32)&&gw(B.parent.parent.parent))return R(B,B.parent.parent);if(B8(B)&&!ul(B,32)&&gw(B.parent))return R(B,B);if(sa(B)){if(o.flags&2097152&&Cs(B)&&((Y=B.parent)!=null&&Y.parent)&&Kc(B.parent.parent)&&((pe=B.parent.parent.parent)!=null&&pe.parent)&&Xg(B.parent.parent.parent.parent)&&!ul(B.parent.parent.parent.parent,32)&&B.parent.parent.parent.parent.parent&&gw(B.parent.parent.parent.parent.parent))return R(B,B.parent.parent.parent.parent);if(o.flags&2){const Ue=Ua(B,Xg);return ul(Ue,32)?!0:gw(Ue.parent)?R(B,Ue):!1}}return!1}return!0}function R(B,Y){return f&&(rt(B).isVisible=!0,v=ST(v,Y)),!0}}function a2(o,f){let v;o.parent.kind===186||o.parent.kind===233&&!BE(o.parent)||o.parent.kind===167?v=1160127:o.kind===166||o.kind===211||o.parent.kind===271?v=1920:v=788968;const A=PS(o),R=gg(f,A.escapedText,v,void 0,void 0,!1);return R&&R.flags&262144&&v&788968?{accessibility:0}:!R&&E2(A)&&nc(sc(RT(A,!1,!1)),A,v,!1).accessibility===0?{accessibility:0}:R&&CE(R,!0)||{accessibility:1,errorSymbolName:Lv(A),errorNode:A}}function ru(o,f,v,A=4,R){let B=70221824;A&2&&(B|=128),A&1&&(B|=512),A&8&&(B|=16384),A&32&&(B|=134217728),A&16&&(B|=1073741824);const Y=A&4?Wr.symbolToNode:Wr.symbolToEntityName;return R?pe(R).getText():wT(pe);function pe(Te){const Ue=Y(o,v,f,B),St=(f==null?void 0:f.kind)===312?zme():_4(),Rt=f&&ts(f);return St.writeNode(4,Ue,Rt,Te),Te}}function Fk(o,f,v=0,A,R){return R?B(R).getText():wT(B);function B(Y){let pe;v&262144?pe=A===1?185:184:pe=A===1?180:179;const Te=Wr.signatureToSignatureDeclaration(o,pe,f,gO(v)|70221824|512),Ue=C$(),St=f&&ts(f);return Ue.writeNode(4,Te,St,z9(Y)),Y}}function Co(o,f,v=1064960,A=Nie("")){const R=Pe.noErrorTruncation||v&1,B=Wr.typeToTypeNode(o,f,gO(v)|70221824|(R?1:0));if(B===void 0)return re.fail("should always get typenode");const Y=o!==yi?_4():Bme(),pe=f&&ts(f);Y.writeNode(4,B,pe,A);const Te=A.getText(),Ue=R?CY*2:j7*2;return Ue&&Te&&Te.length>=Ue?Te.substr(0,Ue-3)+"...":Te}function DE(o,f){let v=mO(o.symbol)?Co(o,o.symbol.valueDeclaration):Co(o),A=mO(f.symbol)?Co(f,f.symbol.valueDeclaration):Co(f);return v===A&&(v=MI(o),A=MI(f)),[v,A]}function MI(o){return Co(o,void 0,64)}function mO(o){return o&&!!o.valueDeclaration&&kr(o.valueDeclaration)&&!Sx(o.valueDeclaration)}function gO(o=0){return o&848330091}function qF(o){return!!o.symbol&&!!(o.symbol.flags&32)&&(o===F1(o.symbol)||!!(o.flags&524288)&&!!(ji(o)&16777216))}function LI(){return{typeToTypeNode:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>A(mr,Ql)),indexInfoToIndexSignatureDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>St(mr,Ql,void 0)),signatureToSignatureDeclaration:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>Rt(mr,Ht,Kl)),symbolToEntityName:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>Xf(mr,Kl,Ht,!1)),symbolToExpression:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>KS(mr,Kl,Ht)),symbolToTypeParameterDeclarations:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>Ya(mr,Ql)),symbolToParameterDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>So(mr,Ql)),typeParameterToDeclaration:(mr,Ht,Ws,Uc)=>f(Ht,Ws,Uc,Ql=>xr(mr,Ql)),symbolTableToDeclarationStatements:(mr,Ht,Ws,Uc,Ql)=>f(Ht,Ws,Uc,Kl=>XA(mr,Kl,Ql)),symbolToNode:(mr,Ht,Ws,Uc,Ql)=>f(Ws,Uc,Ql,Kl=>o(mr,Kl,Ht))};function o(mr,Ht,Ws){if(Ht.flags&1073741824){if(mr.valueDeclaration){const Ql=i_(mr.valueDeclaration);if(Ql&&Qf(Ql))return Ql}const Uc=Ae(mr).nameType;if(Uc&&Uc.flags&9216)return Ht.enclosingDeclaration=Uc.symbol.valueDeclaration,he.createComputedPropertyName(KS(Uc.symbol,Ht,Ws))}return KS(mr,Ht,Ws)}function f(mr,Ht,Ws,Uc){re.assert(mr===void 0||(mr.flags&16)===0);const Ql=Ws!=null&&Ws.trackSymbol?Ws.moduleResolverHost:Ht&134217728?HLe(e):void 0,Kl={enclosingDeclaration:mr,flags:Ht||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Kl.tracker=new lme(Kl,Ws,Ql);const Iu=Uc(Kl);return Kl.truncating&&Kl.flags&1&&Kl.tracker.reportTruncationError(),Kl.encounteredError?void 0:Iu}function v(mr){return mr.truncating?mr.truncating:mr.truncating=mr.approximateLength>(mr.flags&1?CY:j7)}function A(mr,Ht){const Ws=Ht.flags,Uc=R(mr,Ht);return Ht.flags=Ws,Uc}function R(mr,Ht){var Ws,Uc;c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();const Ql=Ht.flags&8388608;if(Ht.flags&=-8388609,!mr){if(!(Ht.flags&262144)){Ht.encounteredError=!0;return}return Ht.approximateLength+=3,he.createKeywordTypeNode(133)}if(Ht.flags&536870912||(mr=zI(mr)),mr.flags&1)return mr.aliasSymbol?he.createTypeReferenceNode(cc(mr.aliasSymbol),Te(mr.aliasTypeArguments,Ht)):mr===yi?sW(he.createKeywordTypeNode(133),3,"unresolved"):(Ht.approximateLength+=3,he.createKeywordTypeNode(mr===Ao?141:133));if(mr.flags&2)return he.createKeywordTypeNode(159);if(mr.flags&4)return Ht.approximateLength+=6,he.createKeywordTypeNode(154);if(mr.flags&8)return Ht.approximateLength+=6,he.createKeywordTypeNode(150);if(mr.flags&64)return Ht.approximateLength+=6,he.createKeywordTypeNode(163);if(mr.flags&16&&!mr.aliasSymbol)return Ht.approximateLength+=7,he.createKeywordTypeNode(136);if(mr.flags&1056){if(mr.symbol.flags&8){const ga=xE(mr.symbol),Rl=V_(ga,Ht,788968);if(sh(ga)===mr)return Rl;const af=Il(mr.symbol);return H2(af,0)?Ju(Rl,he.createTypeReferenceNode(af,void 0)):E1(Rl)?(Rl.isTypeOf=!0,he.createIndexedAccessTypeNode(Rl,he.createLiteralTypeNode(he.createStringLiteral(af)))):uE(Rl)?he.createIndexedAccessTypeNode(he.createTypeQueryNode(Rl.typeName),he.createLiteralTypeNode(he.createStringLiteral(af))):re.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return V_(mr.symbol,Ht,788968)}if(mr.flags&128)return Ht.approximateLength+=mr.value.length+2,he.createLiteralTypeNode(_s(he.createStringLiteral(mr.value,!!(Ht.flags&268435456)),16777216));if(mr.flags&256){const ga=mr.value;return Ht.approximateLength+=(""+ga).length,he.createLiteralTypeNode(ga<0?he.createPrefixUnaryExpression(41,he.createNumericLiteral(-ga)):he.createNumericLiteral(ga))}if(mr.flags&2048)return Ht.approximateLength+=tD(mr.value).length+1,he.createLiteralTypeNode(he.createBigIntLiteral(mr.value));if(mr.flags&512)return Ht.approximateLength+=mr.intrinsicName.length,he.createLiteralTypeNode(mr.intrinsicName==="true"?he.createTrue():he.createFalse());if(mr.flags&8192){if(!(Ht.flags&1048576)){if(yt(mr.symbol,Ht.enclosingDeclaration))return Ht.approximateLength+=6,V_(mr.symbol,Ht,111551);Ht.tracker.reportInaccessibleUniqueSymbolError&&Ht.tracker.reportInaccessibleUniqueSymbolError()}return Ht.approximateLength+=13,he.createTypeOperatorNode(158,he.createKeywordTypeNode(155))}if(mr.flags&16384)return Ht.approximateLength+=4,he.createKeywordTypeNode(116);if(mr.flags&32768)return Ht.approximateLength+=9,he.createKeywordTypeNode(157);if(mr.flags&65536)return Ht.approximateLength+=4,he.createLiteralTypeNode(he.createNull());if(mr.flags&131072)return Ht.approximateLength+=5,he.createKeywordTypeNode(146);if(mr.flags&4096)return Ht.approximateLength+=6,he.createKeywordTypeNode(155);if(mr.flags&67108864)return Ht.approximateLength+=6,he.createKeywordTypeNode(151);if(p3(mr))return Ht.flags&4194304&&(!Ht.encounteredError&&!(Ht.flags&32768)&&(Ht.encounteredError=!0),(Uc=(Ws=Ht.tracker).reportInaccessibleThisError)==null||Uc.call(Ws)),Ht.approximateLength+=4,he.createThisTypeNode();if(!Ql&&mr.aliasSymbol&&(Ht.flags&16384||ne(mr.aliasSymbol,Ht.enclosingDeclaration))){const ga=Te(mr.aliasTypeArguments,Ht);return jS(mr.aliasSymbol.escapedName)&&!(mr.aliasSymbol.flags&32)?he.createTypeReferenceNode(he.createIdentifier(""),ga):Nt(ga)===1&&mr.aliasSymbol===t_.symbol?he.createArrayTypeNode(ga[0]):V_(mr.aliasSymbol,Ht,788968,ga)}const Kl=ji(mr);if(Kl&4)return re.assert(!!(mr.flags&524288)),mr.node?Bi(mr,Ta):Ta(mr);if(mr.flags&262144||Kl&3){if(mr.flags&262144&&ni(Ht.inferTypeParameters,mr)){Ht.approximateLength+=Il(mr.symbol).length+6;let Rl;const af=gT(mr);if(af){const a_=Q0e(mr,!0);a_&&Xh(af,a_)||(Ht.approximateLength+=9,Rl=af&&A(af,Ht))}return he.createInferTypeNode(Sn(mr,Ht,Rl))}if(Ht.flags&4&&mr.flags&262144&&!ne(mr.symbol,Ht.enclosingDeclaration)){const Rl=ad(mr,Ht);return Ht.approximateLength+=Kr(Rl).length,he.createTypeReferenceNode(he.createIdentifier(Kr(Rl)),void 0)}if(mr.symbol)return V_(mr.symbol,Ht,788968);const ga=(mr===fe||mr===_n)&&ve&&ve.symbol?(mr===_n?"sub-":"super-")+Il(ve.symbol):"?";return he.createTypeReferenceNode(he.createIdentifier(ga),void 0)}if(mr.flags&1048576&&mr.origin&&(mr=mr.origin),mr.flags&3145728){const ga=mr.flags&1048576?XR(mr.types):mr.types;if(Nt(ga)===1)return A(ga[0],Ht);const Rl=Te(ga,Ht,!0);if(Rl&&Rl.length>0)return mr.flags&1048576?he.createUnionTypeNode(Rl):he.createIntersectionTypeNode(Rl);!Ht.encounteredError&&!(Ht.flags&262144)&&(Ht.encounteredError=!0);return}if(Kl&48)return re.assert(!!(mr.flags&524288)),Eo(mr);if(mr.flags&4194304){const ga=mr.type;Ht.approximateLength+=6;const Rl=A(ga,Ht);return he.createTypeOperatorNode(143,Rl)}if(mr.flags&134217728){const ga=mr.texts,Rl=mr.types,af=he.createTemplateHead(ga[0]),a_=he.createNodeArray(Vn(Rl,(Op,Gb)=>he.createTemplateLiteralTypeSpan(A(Op,Ht),(GbIu(ga));if(mr.flags&33554432)return A(mr.baseType,Ht);return re.fail("Should be unreachable.");function Iu(ga){const Rl=A(ga.checkType,Ht);if(Ht.approximateLength+=15,Ht.flags&4&&ga.root.isDistributive&&!(ga.checkType.flags&262144)){const Sy=c0(tp(262144,"T")),Yh=ad(Sy,Ht),TS=he.createTypeReferenceNode(Yh);Ht.approximateLength+=37;const Ey=u5(ga.root.checkType,Sy,ga.mapper),ar=Ht.inferTypeParameters;Ht.inferTypeParameters=ga.root.inferTypeParameters;const Gr=A(zu(ga.root.extendsType,Ey),Ht);Ht.inferTypeParameters=ar;const uo=rl(zu(Xl(ga.root.node.trueType),Ey)),qa=rl(zu(Xl(ga.root.node.falseType),Ey));return he.createConditionalTypeNode(Rl,he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(TS.typeName))),he.createConditionalTypeNode(he.createTypeReferenceNode(he.cloneNode(Yh)),A(ga.checkType,Ht),he.createConditionalTypeNode(TS,Gr,uo,qa),he.createKeywordTypeNode(146)),he.createKeywordTypeNode(146))}const af=Ht.inferTypeParameters;Ht.inferTypeParameters=ga.root.inferTypeParameters;const a_=A(ga.extendsType,Ht);Ht.inferTypeParameters=af;const Op=rl(SO(ga)),Gb=rl(oM(ga));return he.createConditionalTypeNode(Rl,a_,Op,Gb)}function rl(ga){var Rl,af,a_;return ga.flags&1048576?(Rl=Ht.visitedTypes)!=null&&Rl.has(By(ga))?(Ht.flags&131072||(Ht.encounteredError=!0,(a_=(af=Ht.tracker)==null?void 0:af.reportCyclicStructureError)==null||a_.call(af)),B(Ht)):Bi(ga,Op=>A(Op,Ht)):A(ga,Ht)}function Dc(ga){return!!KPe(ga)}function yr(ga){return!!ga.target&&Dc(ga.target)&&!Dc(ga)}function pi(ga){var Rl;re.assert(!!(ga.flags&524288));const af=ga.declaration.readonlyToken?he.createToken(ga.declaration.readonlyToken.kind):void 0,a_=ga.declaration.questionToken?he.createToken(ga.declaration.questionToken.kind):void 0;let Op,Gb;const Sy=!rK(ga)&&!(eM(ga).flags&2)&&Ht.flags&4&&!($v(ga).flags&262144&&((Rl=gT($v(ga)))==null?void 0:Rl.flags)&4194304);if(rK(ga)){if(yr(ga)&&Ht.flags&4){const uo=c0(tp(262144,"T")),qa=ad(uo,Ht);Gb=he.createTypeReferenceNode(qa)}Op=he.createTypeOperatorNode(143,Gb||A(eM(ga),Ht))}else if(Sy){const uo=c0(tp(262144,"T")),qa=ad(uo,Ht);Gb=he.createTypeReferenceNode(qa),Op=Gb}else Op=A($v(ga),Ht);const Yh=Sn(BI(ga),Ht,Op),TS=ga.declaration.nameType?A(bw(ga),Ht):void 0,Ey=A(n8(ZR(ga),!!(zk(ga)&4)),Ht),ar=he.createMappedTypeNode(af,Yh,TS,a_,Ey,void 0);Ht.approximateLength+=10;const Gr=_s(ar,1);if(yr(ga)&&Ht.flags&4){const uo=zu(gT(Xl(ga.declaration.typeParameter.constraint.type))||Io,ga.mapper);return he.createConditionalTypeNode(A(eM(ga),Ht),he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(Gb.typeName),uo.flags&2?void 0:A(uo,Ht))),Gr,he.createKeywordTypeNode(146))}else if(Sy)return he.createConditionalTypeNode(A($v(ga),Ht),he.createInferTypeNode(he.createTypeParameterDeclaration(void 0,he.cloneNode(Gb.typeName),he.createTypeOperatorNode(143,A(eM(ga),Ht)))),Gr,he.createKeywordTypeNode(146));return Gr}function Eo(ga){var Rl,af;const a_=ga.id,Op=ga.symbol;if(Op){const Sy=qF(ga)?788968:111551;if(Ax(Op.valueDeclaration))return V_(Op,Ht,Sy);if(Op.flags&32&&!WI(Op)&&!(Op.valueDeclaration&&Fl(Op.valueDeclaration)&&Ht.flags&2048&&(!Ih(Op.valueDeclaration)||nc(Op,Ht.enclosingDeclaration,Sy,!1).accessibility!==0))||Op.flags&896||Gb())return V_(Op,Ht,Sy);if((Rl=Ht.visitedTypes)!=null&&Rl.has(a_)){const Yh=Yq(ga);return Yh?V_(Yh,Ht,788968):B(Ht)}else return Bi(ga,wo)}else{if(!!(ji(ga)&8388608)){const Yh=ga;if(m6(Yh.node)){const TS=jh(Ht,Yh.node);if(TS)return TS}return(af=Ht.visitedTypes)!=null&&af.has(a_)?B(Ht):Bi(ga,wo)}return wo(ga)}function Gb(){var Sy;const Yh=!!(Op.flags&8192)&>(Op.declarations,Ey=>pd(Ey)),TS=!!(Op.flags&16)&&(Op.parent||Ot(Op.declarations,Ey=>Ey.parent.kind===312||Ey.parent.kind===268));if(Yh||TS)return(!!(Ht.flags&4096)||((Sy=Ht.visitedTypes)==null?void 0:Sy.has(a_)))&&(!(Ht.flags&8)||yt(Op,Ht.enclosingDeclaration))}}function Bi(ga,Rl){var af,a_,Op;const Gb=ga.id,Sy=ji(ga)&16&&ga.symbol&&ga.symbol.flags&32,Yh=ji(ga)&4&&ga.node?"N"+vm(ga.node):ga.flags&16777216?"N"+vm(ga.root.node):ga.symbol?(Sy?"+":"")+$d(ga.symbol):void 0;Ht.visitedTypes||(Ht.visitedTypes=new Set),Yh&&!Ht.symbolDepth&&(Ht.symbolDepth=new Map);const TS=Ht.enclosingDeclaration&&rt(Ht.enclosingDeclaration),Ey=`${By(ga)}|${Ht.flags}`;TS&&(TS.serializedTypes||(TS.serializedTypes=new Map));const ar=(af=TS==null?void 0:TS.serializedTypes)==null?void 0:af.get(Ey);if(ar)return(a_=ar.trackedSymbols)==null||a_.forEach(([vu,D_,Qd])=>Ht.tracker.trackSymbol(vu,D_,Qd)),ar.truncating&&(Ht.truncating=!0),Ht.approximateLength+=ar.addedLength,ic(ar.node);let Gr;if(Yh){if(Gr=Ht.symbolDepth.get(Yh)||0,Gr>10)return B(Ht);Ht.symbolDepth.set(Yh,Gr+1)}Ht.visitedTypes.add(Gb);const uo=Ht.trackedSymbols;Ht.trackedSymbols=void 0;const qa=Ht.approximateLength,yc=Rl(ga),Yo=Ht.approximateLength-qa;return!Ht.reportedDiagnostic&&!Ht.encounteredError&&((Op=TS==null?void 0:TS.serializedTypes)==null||Op.set(Ey,{node:yc,truncating:Ht.truncating,addedLength:Yo,trackedSymbols:Ht.trackedSymbols})),Ht.visitedTypes.delete(Gb),Yh&&Ht.symbolDepth.set(Yh,Gr),Ht.trackedSymbols=uo,yc;function ic(vu){return!Hd(vu)&&__(vu)===vu?vu:Tn(he.cloneNode(Xo(vu,ic,sx,Zl)),vu)}function Zl(vu,D_,Qd,op,uu){return vu&&vu.length===0?Tn(he.createNodeArray(void 0,vu.hasTrailingComma),vu):Wa(vu,D_,Qd,op,uu)}}function wo(ga){if(Fb(ga)||ga.containsError)return pi(ga);const Rl=Gh(ga);if(!Rl.properties.length&&!Rl.indexInfos.length){if(!Rl.callSignatures.length&&!Rl.constructSignatures.length)return Ht.approximateLength+=2,_s(he.createTypeLiteralNode(void 0),1);if(Rl.callSignatures.length===1&&!Rl.constructSignatures.length){const Sy=Rl.callSignatures[0];return Rt(Sy,184,Ht)}if(Rl.constructSignatures.length===1&&!Rl.callSignatures.length){const Sy=Rl.constructSignatures[0];return Rt(Sy,185,Ht)}}const af=gi(Rl.constructSignatures,Sy=>!!(Sy.flags&4));if(gt(af)){const Sy=Vn(af,o5);return Rl.callSignatures.length+(Rl.constructSignatures.length-af.length)+Rl.indexInfos.length+(Ht.flags&2048?dp(Rl.properties,TS=>!(TS.flags&4194304)):Nt(Rl.properties))&&Sy.push(K0(Rl)),A(vp(Sy),Ht)}const a_=Ht.flags;Ht.flags|=4194304;const Op=_d(Rl);Ht.flags=a_;const Gb=he.createTypeLiteralNode(Op);return Ht.approximateLength+=2,_s(Gb,Ht.flags&1024?0:1),Gb}function Ta(ga){let Rl=ch(ga);if(ga.target===t_||ga.target===A_){if(Ht.flags&2){const Op=A(Rl[0],Ht);return he.createTypeReferenceNode(ga.target===t_?"Array":"ReadonlyArray",[Op])}const af=A(Rl[0],Ht),a_=he.createArrayTypeNode(af);return ga.target===t_?a_:he.createTypeOperatorNode(148,a_)}else if(ga.target.objectFlags&8){if(Rl=Ol(Rl,(af,a_)=>n8(af,!!(ga.target.elementFlags[a_]&2))),Rl.length>0){const af=Y6(ga),a_=Te(Rl.slice(0,af),Ht);if(a_){const{labeledElementDeclarations:Op}=ga.target;for(let Sy=0;Sy0){const TS=(ga.target.typeParameters||Yn).length;Gb=Te(Rl.slice(a_,TS),Ht)}const Sy=Ht.flags;Ht.flags|=16;const Yh=V_(ga.symbol,Ht,788968,Gb);return Ht.flags=Sy,Op?Ju(Op,Yh):Yh}}}function Ju(ga,Rl){if(E1(ga)){let af=ga.typeArguments,a_=ga.qualifier;a_&&(xn(a_)?af!==J7(a_)&&(a_=d6(he.cloneNode(a_),af)):af!==J7(a_.right)&&(a_=he.updateQualifiedName(a_,a_.left,d6(he.cloneNode(a_.right),af)))),af=Rl.typeArguments;const Op=Lc(Rl);for(const Gb of Op)a_=a_?he.createQualifiedName(a_,Gb):Gb;return he.updateImportTypeNode(ga,ga.argument,ga.attributes,a_,af,ga.isTypeOf)}else{let af=ga.typeArguments,a_=ga.typeName;xn(a_)?af!==J7(a_)&&(a_=d6(he.cloneNode(a_),af)):af!==J7(a_.right)&&(a_=he.updateQualifiedName(a_,a_.left,d6(he.cloneNode(a_.right),af))),af=Rl.typeArguments;const Op=Lc(Rl);for(const Gb of Op)a_=he.createQualifiedName(a_,Gb);return he.updateTypeReferenceNode(ga,a_,af)}}function Lc(ga){let Rl=ga.typeName;const af=[];for(;!xn(Rl);)af.unshift(Rl.right),Rl=Rl.left;return af.unshift(Rl),af}function _d(ga){if(v(Ht))return[he.createPropertySignature(void 0,"...",void 0,void 0)];const Rl=[];for(const Op of ga.callSignatures)Rl.push(Rt(Op,179,Ht));for(const Op of ga.constructSignatures)Op.flags&4||Rl.push(Rt(Op,180,Ht));for(const Op of ga.indexInfos)Rl.push(St(Op,Ht,ga.objectFlags&1024?B(Ht):void 0));const af=ga.properties;if(!af)return Rl;let a_=0;for(const Op of af){if(a_++,Ht.flags&2048){if(Op.flags&4194304)continue;Vy(Op)&6&&Ht.tracker.reportPrivateInBaseOfClassExpression&&Ht.tracker.reportPrivateInBaseOfClassExpression(Ic(Op.escapedName))}if(v(Ht)&&a_+2!(Ta.flags&32768)),0);for(const Ta of wo){const Ju=Rt(Ta,173,Ht,{name:rl,questionToken:Dc});Ws.push(Bi(Ju))}if(wo.length||!Dc)return}let yr;Y(mr,Ht)?yr=B(Ht):(Ql&&(Ht.reverseMappedStack||(Ht.reverseMappedStack=[]),Ht.reverseMappedStack.push(mr)),yr=Kl?vb(Ht,Kl,mr,Iu):he.createKeywordTypeNode(133),Ql&&Ht.reverseMappedStack.pop());const pi=z1(mr)?[he.createToken(148)]:void 0;pi&&(Ht.approximateLength+=9);const Eo=he.createPropertySignature(pi,rl,Dc,yr);Ws.push(Bi(Eo));function Bi(wo){var Ta;const Ju=(Ta=mr.declarations)==null?void 0:Ta.find(Lc=>Lc.kind===355);if(Ju){const Lc=EN(Ju.comment);Lc&&uI(wo,[{kind:3,text:`* * `+Lc.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else mr.valueDeclaration&&dy(wo,mr.valueDeclaration);return wo}}function Te(mr,Ht,Ws){if(gt(mr)){if(v(Ht))if(Ws){if(mr.length>2)return[A(mr[0],Ht),he.createTypeReferenceNode(`... ${mr.length-2} more ...`,void 0),A(mr[mr.length-1],Ht)]}else return[he.createTypeReferenceNode("...",void 0)];const Ql=!(Ht.flags&64)?zg():void 0,Kl=[];let Iu=0;for(const rl of mr){if(Iu++,v(Ht)&&Iu+2{if(!XSe(Dc,([yr],[pi])=>Ue(yr,pi)))for(const[yr,pi]of Dc)Kl[pi]=A(yr,Ht)}),Ht.flags=rl}return Kl}}function Ue(mr,Ht){return mr===Ht||!!mr.symbol&&mr.symbol===Ht.symbol||!!mr.aliasSymbol&&mr.aliasSymbol===Ht.aliasSymbol}function St(mr,Ht,Ws){const Uc=ZTe(mr)||"x",Ql=A(mr.keyType,Ht),Kl=he.createParameterDeclaration(void 0,void 0,Uc,void 0,Ql,void 0);return Ws||(Ws=A(mr.type||Ge,Ht)),!mr.type&&!(Ht.flags&2097152)&&(Ht.encounteredError=!0),Ht.approximateLength+=Uc.length+4,he.createIndexSignature(mr.isReadonly?[he.createToken(148)]:void 0,[Kl],Ws)}function Rt(mr,Ht,Ws,Uc){var Ql;const Kl=Ws.flags&256;Kl&&(Ws.flags&=-257),Ws.approximateLength+=3;let Iu,rl;Ws.flags&32&&mr.target&&mr.mapper&&mr.target.typeParameters?rl=mr.target.typeParameters.map(Lc=>A(zu(Lc,mr.mapper),Ws)):Iu=mr.typeParameters&&mr.typeParameters.map(Lc=>xr(Lc,Ws));const Dc=zZe(mr,!0)[0];let yr;if(Ws.enclosingDeclaration&&mr.declaration&&mr.declaration!==Ws.enclosingDeclaration&&!Cs(mr.declaration)&>(Dc)){const Lc=rt(Ws.enclosingDeclaration).fakeScopeForSignatureDeclaration?Ws.enclosingDeclaration:void 0;re.assertOptionalNode(Lc,Ou);const _d=(Lc==null?void 0:Lc.locals)??zd();let ga;for(const Rl of Dc)_d.has(Rl.escapedName)||(ga=ur(ga,Rl.escapedName),_d.set(Rl.escapedName,Rl));if(ga){let Rl=function(){Ot(ga,af=>_d.delete(af))};if(Lc)yr=Rl;else{const af=Ck.createBlock(Yn);rt(af).fakeScopeForSignatureDeclaration=!0,af.locals=_d;const a_=Ws.enclosingDeclaration;kl(af,a_),Ws.enclosingDeclaration=af,yr=()=>{Ws.enclosingDeclaration=a_,Rl()}}}}const pi=(gt(Dc,Lc=>Lc!==Dc[Dc.length-1]&&!!(I_(Lc)&32768))?mr.parameters:Dc).map(Lc=>So(Lc,Ws,Ht===176,Uc==null?void 0:Uc.privateSymbolVisitor,Uc==null?void 0:Uc.bundledImports)),Eo=Ws.flags&33554432?void 0:rn(mr,Ws);Eo&&pi.unshift(Eo);let Bi;const wo=Wb(mr);if(wo){const Lc=wo.kind===2||wo.kind===3?he.createToken(131):void 0,_d=wo.kind===1||wo.kind===3?_s(he.createIdentifier(wo.parameterName),16777216):he.createThisTypeNode(),ga=wo.type&&A(wo.type,Ws);Bi=he.createTypePredicateNode(Lc,_d,ga)}else{const Lc=np(mr);Lc&&!(Kl&&bn(Lc))?Bi=u1(Ws,Lc,mr,Uc==null?void 0:Uc.privateSymbolVisitor,Uc==null?void 0:Uc.bundledImports):Kl||(Bi=he.createKeywordTypeNode(133))}let Ta=Uc==null?void 0:Uc.modifiers;if(Ht===185&&mr.flags&4){const Lc=aI(Ta);Ta=he.createModifiersFromModifierFlags(Lc|64)}const Ju=Ht===179?he.createCallSignature(Iu,pi,Bi):Ht===180?he.createConstructSignature(Iu,pi,Bi):Ht===173?he.createMethodSignature(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),Uc==null?void 0:Uc.questionToken,Iu,pi,Bi):Ht===174?he.createMethodDeclaration(Ta,void 0,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),void 0,Iu,pi,Bi,void 0):Ht===176?he.createConstructorDeclaration(Ta,pi,void 0):Ht===177?he.createGetAccessorDeclaration(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),pi,Bi,void 0):Ht===178?he.createSetAccessorDeclaration(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),pi,void 0):Ht===181?he.createIndexSignature(Ta,pi,Bi):Ht===324?he.createJSDocFunctionType(pi,Bi):Ht===184?he.createFunctionTypeNode(Iu,pi,Bi??he.createTypeReferenceNode(he.createIdentifier(""))):Ht===185?he.createConstructorTypeNode(Ta,Iu,pi,Bi??he.createTypeReferenceNode(he.createIdentifier(""))):Ht===262?he.createFunctionDeclaration(Ta,void 0,Uc!=null&&Uc.name?uc(Uc.name,xn):he.createIdentifier(""),Iu,pi,Bi,void 0):Ht===218?he.createFunctionExpression(Ta,void 0,Uc!=null&&Uc.name?uc(Uc.name,xn):he.createIdentifier(""),Iu,pi,Bi,he.createBlock([])):Ht===219?he.createArrowFunction(Ta,Iu,pi,Bi,void 0,he.createBlock([])):re.assertNever(Ht);if(rl&&(Ju.typeArguments=he.createNodeArray(rl)),((Ql=mr.declaration)==null?void 0:Ql.kind)===330&&mr.declaration.parent.kind===346){const Lc=Lv(mr.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(_d=>_d.replace(/^\s+/," ")).join(` -`);sW(Ju,3,Lc,!0)}return yr==null||yr(),Ju}function rn(mr,Ht){if(mr.thisParameter)return So(mr.thisParameter,Ht);if(mr.declaration&&Cs(mr.declaration)){const Ws=Xre(mr.declaration);if(Ws&&Ws.typeExpression)return he.createParameterDeclaration(void 0,void 0,"this",void 0,A(Xl(Ws.typeExpression),Ht))}}function Sn(mr,Ht,Ws){const Uc=Ht.flags;Ht.flags&=-513;const Ql=he.createModifiersFromModifierFlags(FB(mr)),Kl=ad(mr,Ht),Iu=Dd(mr),rl=Iu&&A(Iu,Ht);return Ht.flags=Uc,he.createTypeParameterDeclaration(Ql,Kl,Ws,rl)}function xr(mr,Ht,Ws=gT(mr)){const Uc=Ws&&A(Ws,Ht);return Sn(mr,Ht,Uc)}function Ai(mr){const Ht=Rh(mr,169);if(Ht)return Ht;if(!Vm(mr))return Rh(mr,348)}function So(mr,Ht,Ws,Uc,Ql){const Kl=Ai(mr);let Iu=La(mr);Kl&&om(Kl)&&(Iu=iL(Iu));const rl=vb(Ht,Iu,mr,Ht.enclosingDeclaration,Uc,Ql),Dc=!(Ht.flags&8192)&&Ws&&Kl&&DA(Kl)?Vn(Xv(Kl),he.cloneNode):void 0,pi=Kl&&sp(Kl)||I_(mr)&32768?he.createToken(26):void 0,Eo=la(mr,Kl,Ht),wo=Kl&&H4(Kl)||I_(mr)&16384?he.createToken(58):void 0,Ta=he.createParameterDeclaration(Dc,pi,Eo,wo,rl,void 0);return Ht.approximateLength+=Il(mr).length+3,Ta}function la(mr,Ht,Ws){return Ht&&Ht.name?Ht.name.kind===80?_s(he.cloneNode(Ht.name),16777216):Ht.name.kind===166?_s(he.cloneNode(Ht.name.right),16777216):Uc(Ht.name):Il(mr);function Uc(Ql){return Kl(Ql);function Kl(Iu){Ws.tracker.canTrackSymbol&&Qf(Iu)&&dPe(Iu)&&Zs(Iu.expression,Ws.enclosingDeclaration,Ws);let rl=Xo(Iu,Kl,sx,void 0,Kl);return sa(rl)&&(rl=he.updateBindingElement(rl,rl.dotDotDotToken,rl.propertyName,rl.name,void 0)),Hd(rl)||(rl=he.cloneNode(rl)),_s(rl,16777217)}}}function Zs(mr,Ht,Ws){if(!Ws.tracker.canTrackSymbol)return;const Uc=PS(mr),Ql=gg(Uc,Uc.escapedText,1160127,void 0,void 0,!0);Ql&&Ws.tracker.trackSymbol(Ql,Ht,111551)}function ba(mr,Ht,Ws,Uc){return Ht.tracker.trackSymbol(mr,Ht.enclosingDeclaration,Ws),mo(mr,Ht,Ws,Uc)}function mo(mr,Ht,Ws,Uc){let Ql;return!(mr.flags&262144)&&(Ht.enclosingDeclaration||Ht.flags&64)&&!(Ht.flags&134217728)?(Ql=re.checkDefined(Iu(mr,Ws,!0)),re.assert(Ql&&Ql.length>0)):Ql=[mr],Ql;function Iu(rl,Dc,yr){let pi=pw(rl,Ht.enclosingDeclaration,Dc,!!(Ht.flags&128)),Eo;if(!pi||Vp(pi[0],Ht.enclosingDeclaration,pi.length===1?Dc:o2(Dc))){const wo=bV(pi?pi[0]:rl,Ht.enclosingDeclaration,Dc);if(Nt(wo)){Eo=wo.map(Lc=>gt(Lc.declarations,Z_)?Da(Lc,Ht):void 0);const Ta=wo.map((Lc,_d)=>_d);Ta.sort(Bi);const Ju=Ta.map(Lc=>wo[Lc]);for(const Lc of Ju){const _d=Iu(Lc,o2(Dc),!1);if(_d){if(Lc.exports&&Lc.exports.get("export=")&&AE(Lc.exports.get("export="),rl)){pi=_d;break}pi=_d.concat(pi||[L4(Lc,rl)||rl]);break}}}}if(pi)return pi;if(yr||!(rl.flags&6144))return!yr&&!Uc&&Ot(rl.declarations,Z_)?void 0:[rl];function Bi(wo,Ta){const Ju=Eo[wo],Lc=Eo[Ta];if(Ju&&Lc){const _d=V2(Lc);return V2(Ju)===_d?vae(Ju)-vae(Lc):_d?-1:1}return 0}}}function Ya(mr,Ht){let Ws;return E5(mr).flags&524384&&(Ws=he.createNodeArray(Vn(Fo(mr),Ql=>xr(Ql,Ht)))),Ws}function Ra(mr,Ht,Ws){var Uc;re.assert(mr&&0<=Ht&&HttL(pi,Dc.links.mapper)),Ws)}else Iu=Ya(Ql,Ws)}return Iu}function Va(mr){return Wx(mr.objectType)?Va(mr.objectType):mr}function Da(mr,Ht,Ws){let Uc=Rh(mr,312);if(!Uc){const yr=Yr(mr.declarations,pi=>$F(pi,mr));yr&&(Uc=Rh(yr,312))}if(Uc&&Uc.moduleName!==void 0)return Uc.moduleName;if(!Uc){if(Ht.tracker.trackReferencedAmbientModule){const yr=gi(mr.declarations,dh);if(Nt(yr))for(const pi of yr)Ht.tracker.trackReferencedAmbientModule(pi,mr)}if(Eae.test(mr.escapedName))return mr.escapedName.substring(1,mr.escapedName.length-1)}if(!Ht.enclosingDeclaration||!Ht.tracker.moduleResolverHost)return Eae.test(mr.escapedName)?mr.escapedName.substring(1,mr.escapedName.length-1):ts(pie(mr)).fileName;const Ql=ts(Gg(Ht.enclosingDeclaration)),Kl=Ws||(Ql==null?void 0:Ql.impliedNodeFormat),Iu=_$(Ql.path,Kl),rl=Ae(mr);let Dc=rl.specifierCache&&rl.specifierCache.get(Iu);if(!Dc){const yr=!!Ng(Pe),{moduleResolverHost:pi}=Ht.tracker,Eo=yr?{...Pe,baseUrl:pi.getCommonSourceDirectory()}:Pe;Dc=Dl(yae(mr,$i,Eo,Ql,pi,{importModuleSpecifierPreference:yr?"non-relative":"project-relative",importModuleSpecifierEnding:yr?"minimal":Kl===99?"js":void 0},{overrideImportMode:Ws})),rl.specifierCache??(rl.specifierCache=new Map),rl.specifierCache.set(Iu,Dc)}return Dc}function cc(mr){const Ht=he.createIdentifier(Ic(mr.escapedName));return mr.parent?he.createQualifiedName(cc(mr.parent),Ht):Ht}function V_(mr,Ht,Ws,Uc){const Ql=ba(mr,Ht,Ws,!(Ht.flags&16384)),Kl=Ws===111551;if(gt(Ql[0].declarations,Z_)){const Dc=Ql.length>1?rl(Ql,Ql.length-1,1):void 0,yr=Uc||Ra(Ql,0,Ht),pi=ts(Gg(Ht.enclosingDeclaration)),Eo=YU(Ql[0]);let Bi,wo;if((Jd(Pe)===3||Jd(Pe)===99)&&(Eo==null?void 0:Eo.impliedNodeFormat)===99&&Eo.impliedNodeFormat!==(pi==null?void 0:pi.impliedNodeFormat)&&(Bi=Da(Ql[0],Ht,99),wo=he.createImportAttributes(he.createNodeArray([he.createImportAttribute(he.createStringLiteral("resolution-mode"),he.createStringLiteral("import"))]))),Bi||(Bi=Da(Ql[0],Ht)),!(Ht.flags&67108864)&&Jd(Pe)!==1&&Bi.includes("/node_modules/")){const Ju=Bi;if(Jd(Pe)===3||Jd(Pe)===99){const Lc=(pi==null?void 0:pi.impliedNodeFormat)===99?1:99;Bi=Da(Ql[0],Ht,Lc),Bi.includes("/node_modules/")?Bi=Ju:wo=he.createImportAttributes(he.createNodeArray([he.createImportAttribute(he.createStringLiteral("resolution-mode"),he.createStringLiteral(Lc===99?"import":"require"))]))}wo||(Ht.encounteredError=!0,Ht.tracker.reportLikelyUnsafeImportRequiredError&&Ht.tracker.reportLikelyUnsafeImportRequiredError(Ju))}const Ta=he.createLiteralTypeNode(he.createStringLiteral(Bi));if(Ht.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ht.tracker.trackExternalModuleSymbolOfImportTypeNode(Ql[0]),Ht.approximateLength+=Bi.length+10,!Dc||kT(Dc)){if(Dc){const Ju=xn(Dc)?Dc:Dc.right;d6(Ju,void 0)}return he.createImportTypeNode(Ta,wo,Dc,yr,Kl)}else{const Ju=Va(Dc),Lc=Ju.objectType.typeName;return he.createIndexedAccessTypeNode(he.createImportTypeNode(Ta,wo,Lc,yr,Kl),Ju.indexType)}}const Iu=rl(Ql,Ql.length-1,0);if(Wx(Iu))return Iu;if(Kl)return he.createTypeQueryNode(Iu);{const Dc=xn(Iu)?Iu:Iu.right,yr=J7(Dc);return d6(Dc,void 0),he.createTypeReferenceNode(Iu,yr)}function rl(Dc,yr,pi){const Eo=yr===Dc.length-1?Uc:Ra(Dc,yr,Ht),Bi=Dc[yr],wo=Dc[yr-1];let Ta;if(yr===0)Ht.flags|=16777216,Ta=Wk(Bi,Ht),Ht.approximateLength+=(Ta?Ta.length:0)+1,Ht.flags^=16777216;else if(wo&&L2(wo)){const Lc=L2(wo);Jb(Lc,(_d,ga)=>{if(AE(_d,Bi)&&!CB(ga)&&ga!=="export=")return Ta=Ic(ga),!0})}if(Ta===void 0){const Lc=Yr(Bi.declarations,i_);if(Lc&&Qf(Lc)&&kT(Lc.expression)){const _d=rl(Dc,yr-1,pi);return kT(_d)?he.createIndexedAccessTypeNode(he.createParenthesizedType(he.createTypeQueryNode(_d)),he.createTypeQueryNode(Lc.expression)):_d}Ta=Wk(Bi,Ht)}if(Ht.approximateLength+=Ta.length+1,!(Ht.flags&16)&&wo&&V4(wo)&&V4(wo).get(Bi.escapedName)&&AE(V4(wo).get(Bi.escapedName),Bi)){const Lc=rl(Dc,yr-1,pi);return Wx(Lc)?he.createIndexedAccessTypeNode(Lc,he.createLiteralTypeNode(he.createStringLiteral(Ta))):he.createIndexedAccessTypeNode(he.createTypeReferenceNode(Lc,Eo),he.createLiteralTypeNode(he.createStringLiteral(Ta)))}const Ju=_s(he.createIdentifier(Ta),16777216);if(Eo&&d6(Ju,he.createNodeArray(Eo)),Ju.symbol=Bi,yr>pi){const Lc=rl(Dc,yr-1,pi);return kT(Lc)?he.createQualifiedName(Lc,Ju):re.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Ju}}function fd(mr,Ht,Ws){const Uc=gg(Ht.enclosingDeclaration,mr,788968,void 0,mr,!1);return Uc?!(Uc.flags&262144&&Uc===Ws.symbol):!1}function ad(mr,Ht){var Ws,Uc;if(Ht.flags&4&&Ht.typeParameterNames){const Kl=Ht.typeParameterNames.get(By(mr));if(Kl)return Kl}let Ql=Xf(mr.symbol,Ht,788968,!0);if(!(Ql.kind&80))return he.createIdentifier("(Missing type parameter)");if(Ht.flags&4){const Kl=Ql.escapedText;let Iu=((Ws=Ht.typeParameterNamesByTextNextNameCount)==null?void 0:Ws.get(Kl))||0,rl=Kl;for(;(Uc=Ht.typeParameterNamesByText)!=null&&Uc.has(rl)||fd(rl,Ht,mr);)Iu++,rl=`${Kl}_${Iu}`;if(rl!==Kl){const Dc=J7(Ql);Ql=he.createIdentifier(rl),d6(Ql,Dc)}(Ht.typeParameterNamesByTextNextNameCount||(Ht.typeParameterNamesByTextNextNameCount=new Map)).set(Kl,Iu),(Ht.typeParameterNames||(Ht.typeParameterNames=new Map)).set(By(mr),Ql),(Ht.typeParameterNamesByText||(Ht.typeParameterNamesByText=new Set)).add(Kl)}return Ql}function Xf(mr,Ht,Ws,Uc){const Ql=ba(mr,Ht,Ws);return Uc&&Ql.length!==1&&!Ht.encounteredError&&!(Ht.flags&65536)&&(Ht.encounteredError=!0),Kl(Ql,Ql.length-1);function Kl(Iu,rl){const Dc=Ra(Iu,rl,Ht),yr=Iu[rl];rl===0&&(Ht.flags|=16777216);const pi=Wk(yr,Ht);rl===0&&(Ht.flags^=16777216);const Eo=_s(he.createIdentifier(pi),16777216);return Dc&&d6(Eo,he.createNodeArray(Dc)),Eo.symbol=yr,rl>0?he.createQualifiedName(Kl(Iu,rl-1),Eo):Eo}}function KS(mr,Ht,Ws){const Uc=ba(mr,Ht,Ws);return Ql(Uc,Uc.length-1);function Ql(Kl,Iu){const rl=Ra(Kl,Iu,Ht),Dc=Kl[Iu];Iu===0&&(Ht.flags|=16777216);let yr=Wk(Dc,Ht);Iu===0&&(Ht.flags^=16777216);let pi=yr.charCodeAt(0);if(D9(pi)&>(Dc.declarations,Z_))return he.createStringLiteral(Da(Dc,Ht));if(Iu===0||doe(yr,dt)){const Eo=_s(he.createIdentifier(yr),16777216);return rl&&d6(Eo,he.createNodeArray(rl)),Eo.symbol=Dc,Iu>0?he.createPropertyAccessExpression(Ql(Kl,Iu-1),Eo):Eo}else{pi===91&&(yr=yr.substring(1,yr.length-1),pi=yr.charCodeAt(0));let Eo;if(D9(pi)&&!(Dc.flags&8)?Eo=he.createStringLiteral(S2(yr).replace(/\\./g,Bi=>Bi.substring(1)),pi===39):""+ +yr===yr&&(Eo=he.createNumericLiteral(+yr)),!Eo){const Bi=_s(he.createIdentifier(yr),16777216);rl&&d6(Bi,he.createNodeArray(rl)),Bi.symbol=Dc,Eo=Bi}return he.createElementAccessExpression(Ql(Kl,Iu-1),Eo)}}}function PC(mr){const Ht=i_(mr);return Ht?Qf(Ht)?!!(Bf(Ht.expression).flags&402653316):Hm(Ht)?!!(Bf(Ht.argumentExpression).flags&402653316):Sd(Ht):!1}function ua(mr){const Ht=i_(mr);return!!(Ht&&Sd(Ht)&&(Ht.singleQuote||!Hd(Ht)&&qf(Lv(Ht,!1),"'")))}function Ss(mr,Ht){const Ws=!!Nt(mr.declarations)&&jr(mr.declarations,PC),Uc=!!Nt(mr.declarations)&&jr(mr.declarations,ua),Ql=!!(mr.flags&8192),Kl=_f(mr,Ht,Uc,Ws,Ql);if(Kl)return Kl;const Iu=Ic(mr.escapedName);return QH(Iu,iu(Pe),Uc,Ws,Ql)}function _f(mr,Ht,Ws,Uc,Ql){const Kl=Ae(mr).nameType;if(Kl){if(Kl.flags&384){const Iu=""+Kl.value;return!H2(Iu,iu(Pe))&&(Uc||!FT(Iu))?he.createStringLiteral(Iu,!!Ws):FT(Iu)&&qf(Iu,"-")?he.createComputedPropertyName(he.createNumericLiteral(+Iu)):QH(Iu,iu(Pe),Ws,Uc,Ql)}if(Kl.flags&8192)return he.createComputedPropertyName(KS(Kl.symbol,Ht,111551))}}function hd(mr){const Ht={...mr};return Ht.typeParameterNames&&(Ht.typeParameterNames=new Map(Ht.typeParameterNames)),Ht.typeParameterNamesByText&&(Ht.typeParameterNamesByText=new Set(Ht.typeParameterNamesByText)),Ht.typeParameterSymbolList&&(Ht.typeParameterSymbolList=new Set(Ht.typeParameterSymbolList)),Ht.tracker=new lme(Ht,Ht.tracker.inner,Ht.tracker.moduleResolverHost),Ht}function Is(mr,Ht){return mr.declarations&&lr(mr.declarations,Ws=>!!Zy(Ws)&&(!Ht||!!Ua(Ws,Uc=>Uc===Ht)))}function pm(mr,Ht){return!(ji(Ht)&4)||!uE(mr)||Nt(mr.typeArguments)>=HS(Ht.target.typeParameters)}function Sh(mr){return rt(mr).fakeScopeForSignatureDeclaration?mr.parent:mr}function vb(mr,Ht,Ws,Uc,Ql,Kl){if(!Fn(Ht)&&Uc){const Dc=Is(Ws,Sh(Uc));if(Dc&&!Vd(Dc)&&!lE(Dc)){const yr=Zy(Dc);if(cg(yr,Dc,Ht)&&pm(yr,Ht)){const pi=jh(mr,yr,Ql,Kl);if(pi)return pi}}}const Iu=mr.flags;Ht.flags&8192&&Ht.symbol===Ws&&(!mr.enclosingDeclaration||gt(Ws.declarations,Dc=>ts(Dc)===ts(mr.enclosingDeclaration)))&&(mr.flags|=1048576);const rl=A(Ht,mr);return mr.flags=Iu,rl}function cg(mr,Ht,Ws){const Uc=Xl(mr);return Uc===Ws?!0:Os(Ht)&&Ht.questionToken?IC(Ws,524288)===Uc:!1}function u1(mr,Ht,Ws,Uc,Ql){if(!Fn(Ht)&&mr.enclosingDeclaration){const Kl=Ws.declaration&&kS(Ws.declaration),Iu=Sh(mr.enclosingDeclaration);if(Ua(Kl,rl=>rl===Iu)&&Kl){const rl=Xl(Kl);if((rl.flags&262144&&rl.isThisType?zu(rl,Ws.mapper):rl)===Ht&&pm(Kl,Ht)){const yr=jh(mr,Kl,Uc,Ql);if(yr)return yr}}}return A(Ht,mr)}function f0(mr,Ht,Ws){let Uc=!1;const Ql=PS(mr);if(Cs(mr)&&(P9(Ql)||jE(Ql.parent)||Pu(Ql.parent)&&x7(Ql.parent.left)&&P9(Ql.parent.right)))return Uc=!0,{introducesError:Uc,node:mr};const Kl=Qg(Ql,67108863,!0,!0);if(Kl&&(nc(Kl,Ht.enclosingDeclaration,67108863,!1).accessibility!==0?Uc=!0:(Ht.tracker.trackSymbol(Kl,Ht.enclosingDeclaration,67108863),Ws==null||Ws(Kl)),xn(mr))){const Iu=sh(Kl),rl=Kl.flags&262144&&!ne(Iu.symbol,Ht.enclosingDeclaration)?ad(Iu,Ht):he.cloneNode(mr);return rl.symbol=Kl,{introducesError:Uc,node:_s(Ls(rl,mr),16777216)}}return{introducesError:Uc,node:mr}}function jh(mr,Ht,Ws,Uc){c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();let Ql=!1;const Kl=ts(Ht),Iu=Bn(Ht,rl,pc);if(Ql)return;return Iu===Ht?Tn(he.cloneNode(Ht),Ht):Iu;function rl(Dc){if(OG(Dc)||Dc.kind===326)return he.createKeywordTypeNode(133);if(Foe(Dc))return he.createKeywordTypeNode(159);if(WJ(Dc))return he.createUnionTypeNode([Bn(Dc.type,rl,pc),he.createLiteralTypeNode(he.createNull())]);if(EW(Dc))return he.createUnionTypeNode([Bn(Dc.type,rl,pc),he.createKeywordTypeNode(157)]);if(Gx(Dc))return Bn(Dc.type,rl);if(iF(Dc))return he.createArrayTypeNode(Bn(Dc.type,rl,pc));if(oF(Dc))return he.createTypeLiteralNode(Vn(Dc.jsDocPropertyTags,Bi=>{const wo=xn(Bi.name)?Bi.name:Bi.name.right,Ta=Xe(Xl(Dc),wo.escapedText),Ju=Ta&&Bi.typeExpression&&Xl(Bi.typeExpression.type)!==Ta?A(Ta,mr):void 0;return he.createPropertySignature(void 0,wo,Bi.isBracketed||Bi.typeExpression&&EW(Bi.typeExpression.type)?he.createToken(58):void 0,Ju||Bi.typeExpression&&Bn(Bi.typeExpression.type,rl,pc)||he.createKeywordTypeNode(133))}));if(uE(Dc)&&xn(Dc.typeName)&&Dc.typeName.escapedText==="")return Ls(he.createKeywordTypeNode(133),Dc);if((cC(Dc)||uE(Dc))&&uY(Dc))return he.createTypeLiteralNode([he.createIndexSignature(void 0,[he.createParameterDeclaration(void 0,void 0,"x",void 0,Bn(Dc.typeArguments[0],rl,pc))],Bn(Dc.typeArguments[1],rl,pc))]);if(Ak(Dc))if(UL(Dc)){let Bi;return he.createConstructorTypeNode(void 0,Wa(Dc.typeParameters,rl,Np),Qo(Dc.parameters,(wo,Ta)=>wo.name&&xn(wo.name)&&wo.name.escapedText==="new"?(Bi=wo.type,void 0):he.createParameterDeclaration(void 0,yr(wo),pi(wo,Ta),wo.questionToken,Bn(wo.type,rl,pc),void 0)),Bn(Bi||Dc.type,rl,pc)||he.createKeywordTypeNode(133))}else return he.createFunctionTypeNode(Wa(Dc.typeParameters,rl,Np),Vn(Dc.parameters,(Bi,wo)=>he.createParameterDeclaration(void 0,yr(Bi),pi(Bi,wo),Bi.questionToken,Bn(Bi.type,rl,pc),void 0)),Bn(Dc.type,rl,pc)||he.createKeywordTypeNode(133));if(uE(Dc)&&S7(Dc)&&(!pm(Dc,Xl(Dc))||Bue(Dc)||Pr===wl(Dc,788968,!0)))return Ls(A(Xl(Dc),mr),Dc);if(MN(Dc)){const Bi=rt(Dc).resolvedSymbol;return S7(Dc)&&Bi&&(!Dc.isTypeOf&&!(Bi.flags&788968)||!(Nt(Dc.typeArguments)>=HS(Fo(Bi))))?Ls(A(Xl(Dc),mr),Dc):he.updateImportTypeNode(Dc,he.updateLiteralTypeNode(Dc.argument,Eo(Dc,Dc.argument.literal)),Dc.attributes,Dc.qualifier,Wa(Dc.typeArguments,rl,pc),Dc.isTypeOf)}if(kT(Dc)||Tg(Dc)){const{introducesError:Bi,node:wo}=f0(Dc,mr,Ws);if(Ql=Ql||Bi,wo!==Dc)return wo}return Kl&&gW(Dc)&&xm(Kl,Dc.pos).line===xm(Kl,Dc.end).line&&_s(Dc,1),Xo(Dc,rl,sx);function yr(Bi){return Bi.dotDotDotToken||(Bi.type&&iF(Bi.type)?he.createToken(26):void 0)}function pi(Bi,wo){return Bi.name&&xn(Bi.name)&&Bi.name.escapedText==="this"?"this":yr(Bi)?"args":`arg${wo}`}function Eo(Bi,wo){if(Uc){if(mr.tracker&&mr.tracker.moduleResolverHost){const Ta=v0t(Bi);if(Ta){const Lc={getCanonicalFileName:H1(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>mr.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>mr.tracker.moduleResolverHost.getCommonSourceDirectory()},_d=mG(Lc,Ta);return he.createStringLiteral(_d)}}}else if(mr.tracker&&mr.tracker.trackExternalModuleSymbolOfImportTypeNode){const Ta=_w(wo,wo,void 0);Ta&&mr.tracker.trackExternalModuleSymbolOfImportTypeNode(Ta)}return wo}}}function XA(mr,Ht,Ws){var Uc;const Ql=G1(he.createPropertyDeclaration,174,!0),Kl=G1((si,$c,Ul,Pl)=>he.createPropertySignature(si,$c,Ul,Pl),173,!1),Iu=Ht.enclosingDeclaration;let rl=[];const Dc=new Set,yr=[],pi=Ht;Ht={...pi,usedSymbolNames:new Set(pi.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Uc=pi.remappedSymbolReferences)==null?void 0:Uc.entries()),tracker:void 0};const Eo={...pi.tracker.inner,trackSymbol:(si,$c,Ul)=>{var Pl,Hl;if((Pl=Ht.remappedSymbolNames)!=null&&Pl.has($d(si)))return!1;if(nc(si,$c,Ul,!1).accessibility===0){const jd=mo(si,Ht,Ul);if(!(si.flags&4)){const U_=jd[0],kp=ts(pi.enclosingDeclaration);gt(U_.declarations,ug=>ts(ug)===kp)&&Yh(U_)}}else if((Hl=pi.tracker.inner)!=null&&Hl.trackSymbol)return pi.tracker.inner.trackSymbol(si,$c,Ul);return!1}};Ht.tracker=new lme(Ht,Eo,pi.tracker.moduleResolverHost),Jb(mr,(si,$c)=>{const Ul=Ic($c);oA(si,Ul)});let Bi=!Ws;const wo=mr.get("export=");return wo&&mr.size>1&&wo.flags&2097152&&(mr=zd(),mr.set("export=",wo)),Op(mr),Rl(rl);function Ta(si){return!!si&&si.kind===80}function Ju(si){return Xg(si)?gi(Vn(si.declarationList.declarations,i_),Ta):gi([i_(si)],Ta)}function Lc(si){const $c=lr(si,my),Ul=Ho(si,py);let Pl=Ul!==-1?si[Ul]:void 0;if(Pl&&$c&&$c.isExportEquals&&xn($c.expression)&&xn(Pl.name)&&Kr(Pl.name)===Kr($c.expression)&&Pl.body&&kh(Pl.body)){const Hl=gi(si,U_=>!!(Cb(U_)&32)),lg=Pl.name;let jd=Pl.body;if(Nt(Hl)&&(Pl=he.updateModuleDeclaration(Pl,Pl.modifiers,Pl.name,jd=he.updateModuleBlock(jd,he.createNodeArray([...Pl.body.statements,he.createExportDeclaration(void 0,!1,he.createNamedExports(Vn(ea(Hl,U_=>Ju(U_)),U_=>he.createExportSpecifier(!1,void 0,U_))),void 0)]))),si=[...si.slice(0,Ul),Pl,...si.slice(Ul+1)]),!lr(si,U_=>U_!==Pl&&ec(U_,lg))){rl=[];const U_=!gt(jd.statements,kp=>ul(kp,32)||my(kp)||ry(kp));Ot(jd.statements,kp=>{xy(kp,U_?32:0)}),si=[...gi(si,kp=>kp!==Pl&&kp!==$c),...rl]}}return si}function _d(si){const $c=gi(si,Pl=>ry(Pl)&&!Pl.moduleSpecifier&&!!Pl.exportClause&&j0(Pl.exportClause));Nt($c)>1&&(si=[...gi(si,Hl=>!ry(Hl)||!!Hl.moduleSpecifier||!Hl.exportClause),he.createExportDeclaration(void 0,!1,he.createNamedExports(ea($c,Hl=>uc(Hl.exportClause,j0).elements)),void 0)]);const Ul=gi(si,Pl=>ry(Pl)&&!!Pl.moduleSpecifier&&!!Pl.exportClause&&j0(Pl.exportClause));if(Nt(Ul)>1){const Pl=BD(Ul,Hl=>Sd(Hl.moduleSpecifier)?">"+Hl.moduleSpecifier.text:">");if(Pl.length!==Ul.length)for(const Hl of Pl)Hl.length>1&&(si=[...gi(si,lg=>!Hl.includes(lg)),he.createExportDeclaration(void 0,!1,he.createNamedExports(ea(Hl,lg=>uc(lg.exportClause,j0).elements)),Hl[0].moduleSpecifier)])}return si}function ga(si){const $c=Ho(si,Ul=>ry(Ul)&&!Ul.moduleSpecifier&&!Ul.attributes&&!!Ul.exportClause&&j0(Ul.exportClause));if($c>=0){const Ul=si[$c],Pl=Qo(Ul.exportClause.elements,Hl=>{if(!Hl.propertyName){const lg=Cy(si),jd=gi(lg,U_=>ec(si[U_],Hl.name));if(Nt(jd)&&jr(jd,U_=>nW(si[U_]))){for(const U_ of jd)si[U_]=af(si[U_]);return}}return Hl});Nt(Pl)?si[$c]=he.updateExportDeclaration(Ul,Ul.modifiers,Ul.isTypeOnly,he.updateNamedExports(Ul.exportClause,Pl),Ul.moduleSpecifier,Ul.attributes):Yw(si,$c)}return si}function Rl(si){return si=Lc(si),si=_d(si),si=ga(si),Iu&&(Nu(Iu)&&aE(Iu)||py(Iu))&&(!gt(si,XX)||!WMe(si)&>(si,kN))&&si.push(Boe(he)),si}function af(si){const $c=(Cb(si)|32)&-129;return he.replaceModifiers(si,$c)}function a_(si){const $c=Cb(si)&-33;return he.replaceModifiers(si,$c)}function Op(si,$c,Ul){$c||yr.push(new Map),si.forEach(Pl=>{Gb(Pl,!1,!!Ul)}),$c||(yr[yr.length-1].forEach(Pl=>{Gb(Pl,!0,!!Ul)}),yr.pop())}function Gb(si,$c,Ul){const Pl=jp(si);if(Dc.has($d(Pl)))return;if(Dc.add($d(Pl)),!$c||Nt(si.declarations)&>(si.declarations,lg=>!!Ua(lg,jd=>jd===Iu))){const lg=Ht;Ht=hd(Ht),Ey(si,$c,Ul),Ht.reportedDiagnostic&&(pi.reportedDiagnostic=Ht.reportedDiagnostic),Ht.trackedSymbols&&(lg.trackedSymbols?re.assert(Ht.trackedSymbols===lg.trackedSymbols):lg.trackedSymbols=Ht.trackedSymbols),Ht=lg}}function Ey(si,$c,Ul,Pl=si.escapedName){var Hl,lg,jd,U_,kp,ug;const xh=Ic(Pl),f2=Pl==="default";if($c&&!(Ht.flags&131072)&&w7(xh)&&!f2){Ht.encounteredError=!0;return}let SS=f2&&!!(si.flags&-113||si.flags&16&&Nt(zm(La(si))))&&!(si.flags&2097152),ES=!SS&&!$c&&w7(xh)&&!f2;(SS||ES)&&($c=!0);const Qh=($c?0:32)|(f2&&!SS?2048:0),qT=si.flags&1536&&si.flags&7&&Pl!=="export=",_L=qT&&Gm(La(si),si);if((si.flags&8208||_L)&&ic(La(si),si,oA(si,xh),Qh),si.flags&524288&&ar(si,xh,Qh),si.flags&98311&&Pl!=="export="&&!(si.flags&4194304)&&!(si.flags&32)&&!(si.flags&8192)&&!_L)if(Ul)Eh(si)&&(ES=!1,SS=!1);else{const KT=La(si),aA=oA(si,xh);if(KT.symbol&&KT.symbol!==si&&KT.symbol.flags&16&>(KT.symbol.declarations,EP)&&((Hl=KT.symbol.members)!=null&&Hl.size||(lg=KT.symbol.exports)!=null&&lg.size))Ht.remappedSymbolReferences||(Ht.remappedSymbolReferences=new Map),Ht.remappedSymbolReferences.set($d(KT.symbol),si),Ey(KT.symbol,$c,Ul,Pl),Ht.remappedSymbolReferences.delete($d(KT.symbol));else if(!(si.flags&16)&&Gm(KT,si))ic(KT,si,aA,Qh);else{const yne=si.flags&2?Gte(si)?2:1:(jd=si.parent)!=null&&jd.valueDeclaration&&Nu((U_=si.parent)==null?void 0:U_.valueDeclaration)?2:void 0,Ow=SS||!(si.flags&4)?aA:ez(aA,si);let C5=si.declarations&&lr(si.declarations,Ywe=>Kc(Ywe));C5&&Kp(C5.parent)&&C5.parent.declarations.length===1&&(C5=C5.parent.parent);const D5=(kp=si.declarations)==null?void 0:kp.find(Ac);if(D5&&Ds(D5.parent)&&xn(D5.parent.right)&&((ug=KT.symbol)!=null&&ug.valueDeclaration)&&Nu(KT.symbol.valueDeclaration)){const Ywe=aA===D5.parent.right.escapedText?void 0:D5.parent.right;xy(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Ywe,aA)])),0),Ht.tracker.trackSymbol(KT.symbol,Ht.enclosingDeclaration,111551)}else{const Ywe=Tn(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Ow,void 0,vb(Ht,KT,si,Iu,Yh,Ws))],yne)),C5);xy(Ywe,Ow!==aA?Qh&-33:Qh),Ow!==aA&&!$c&&(xy(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Ow,aA)])),0),ES=!1,SS=!1)}}}if(si.flags&384&&Yo(si,xh,Qh),si.flags&32&&(si.flags&4&&si.valueDeclaration&&Ds(si.valueDeclaration.parent)&&v0(si.valueDeclaration.parent.right)?sd(si,oA(si,xh),Qh):op(si,oA(si,xh),Qh)),(si.flags&1536&&(!qT||qa(si))||_L)&&yc(si,xh,Qh),si.flags&64&&!(si.flags&32)&&Gr(si,xh,Qh),si.flags&2097152&&sd(si,oA(si,xh),Qh),si.flags&4&&si.escapedName==="export="&&Eh(si),si.flags&8388608&&si.declarations)for(const KT of si.declarations){const aA=gS(KT,KT.moduleSpecifier);aA&&xy(he.createExportDeclaration(void 0,KT.isTypeOnly,void 0,he.createStringLiteral(Da(aA,Ht))),0)}SS?xy(he.createExportAssignment(void 0,!1,he.createIdentifier(oA(si,xh))),0):ES&&xy(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,oA(si,xh),xh)])),0)}function Yh(si){if(gt(si.declarations,X8))return;re.assertIsDefined(yr[yr.length-1]),ez(Ic(si.escapedName),si);const $c=!!(si.flags&2097152)&&!gt(si.declarations,Ul=>!!Ua(Ul,ry)||G0(Ul)||Yb(Ul)&&!KE(Ul.moduleReference));yr[$c?0:yr.length-1].set($d(si),si)}function TS(si){return Nu(si)&&(aE(si)||Rx(si))||dh(si)&&!JC(si)}function xy(si,$c){if(DA(si)){let Ul=0;const Pl=Ht.enclosingDeclaration&&(b2(Ht.enclosingDeclaration)?ts(Ht.enclosingDeclaration):Ht.enclosingDeclaration);$c&32&&Pl&&(TS(Pl)||py(Pl))&&nW(si)&&(Ul|=32),Bi&&!(Ul&32)&&(!Pl||!(Pl.flags&33554432))&&(xP(si)||Xg(si)||mg(si)||Ih(si)||py(si))&&(Ul|=128),$c&2048&&(Ih(si)||xp(si)||mg(si))&&(Ul|=2048),Ul&&(si=he.replaceModifiers(si,Ul|Cb(si)))}rl.push(si)}function ar(si,$c,Ul){var Pl;const Hl=dWe(si),lg=Ae(si).typeParameters,jd=Vn(lg,SS=>xr(SS,Ht)),U_=(Pl=si.declarations)==null?void 0:Pl.find(b2),kp=EN(U_?U_.comment||U_.parent.comment:void 0),ug=Ht.flags;Ht.flags|=8388608;const xh=Ht.enclosingDeclaration;Ht.enclosingDeclaration=U_;const f2=U_&&U_.typeExpression&&SW(U_.typeExpression)&&jh(Ht,U_.typeExpression.type,Yh,Ws)||A(Hl,Ht);xy(uI(he.createTypeAliasDeclaration(void 0,oA(si,$c),jd,f2),kp?[{kind:3,text:`* + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else mr.valueDeclaration&&_y(wo,mr.valueDeclaration);return wo}}function Te(mr,Ht,Ws){if(gt(mr)){if(v(Ht))if(Ws){if(mr.length>2)return[A(mr[0],Ht),he.createTypeReferenceNode(`... ${mr.length-2} more ...`,void 0),A(mr[mr.length-1],Ht)]}else return[he.createTypeReferenceNode("...",void 0)];const Ql=!(Ht.flags&64)?zg():void 0,Kl=[];let Iu=0;for(const rl of mr){if(Iu++,v(Ht)&&Iu+2{if(!XSe(Dc,([yr],[pi])=>Ue(yr,pi)))for(const[yr,pi]of Dc)Kl[pi]=A(yr,Ht)}),Ht.flags=rl}return Kl}}function Ue(mr,Ht){return mr===Ht||!!mr.symbol&&mr.symbol===Ht.symbol||!!mr.aliasSymbol&&mr.aliasSymbol===Ht.aliasSymbol}function St(mr,Ht,Ws){const Uc=ZTe(mr)||"x",Ql=A(mr.keyType,Ht),Kl=he.createParameterDeclaration(void 0,void 0,Uc,void 0,Ql,void 0);return Ws||(Ws=A(mr.type||Ge,Ht)),!mr.type&&!(Ht.flags&2097152)&&(Ht.encounteredError=!0),Ht.approximateLength+=Uc.length+4,he.createIndexSignature(mr.isReadonly?[he.createToken(148)]:void 0,[Kl],Ws)}function Rt(mr,Ht,Ws,Uc){var Ql;const Kl=Ws.flags&256;Kl&&(Ws.flags&=-257),Ws.approximateLength+=3;let Iu,rl;Ws.flags&32&&mr.target&&mr.mapper&&mr.target.typeParameters?rl=mr.target.typeParameters.map(Lc=>A(zu(Lc,mr.mapper),Ws)):Iu=mr.typeParameters&&mr.typeParameters.map(Lc=>xr(Lc,Ws));const Dc=zZe(mr,!0)[0];let yr;if(Ws.enclosingDeclaration&&mr.declaration&&mr.declaration!==Ws.enclosingDeclaration&&!Cs(mr.declaration)&>(Dc)){const Lc=rt(Ws.enclosingDeclaration).fakeScopeForSignatureDeclaration?Ws.enclosingDeclaration:void 0;re.assertOptionalNode(Lc,Ou);const _d=(Lc==null?void 0:Lc.locals)??zd();let ga;for(const Rl of Dc)_d.has(Rl.escapedName)||(ga=ur(ga,Rl.escapedName),_d.set(Rl.escapedName,Rl));if(ga){let Rl=function(){Ot(ga,af=>_d.delete(af))};if(Lc)yr=Rl;else{const af=Ck.createBlock(Yn);rt(af).fakeScopeForSignatureDeclaration=!0,af.locals=_d;const a_=Ws.enclosingDeclaration;kl(af,a_),Ws.enclosingDeclaration=af,yr=()=>{Ws.enclosingDeclaration=a_,Rl()}}}}const pi=(gt(Dc,Lc=>Lc!==Dc[Dc.length-1]&&!!(I_(Lc)&32768))?mr.parameters:Dc).map(Lc=>So(Lc,Ws,Ht===176,Uc==null?void 0:Uc.privateSymbolVisitor,Uc==null?void 0:Uc.bundledImports)),Eo=Ws.flags&33554432?void 0:rn(mr,Ws);Eo&&pi.unshift(Eo);let Bi;const wo=Wb(mr);if(wo){const Lc=wo.kind===2||wo.kind===3?he.createToken(131):void 0,_d=wo.kind===1||wo.kind===3?_s(he.createIdentifier(wo.parameterName),16777216):he.createThisTypeNode(),ga=wo.type&&A(wo.type,Ws);Bi=he.createTypePredicateNode(Lc,_d,ga)}else{const Lc=np(mr);Lc&&!(Kl&&bn(Lc))?Bi=u1(Ws,Lc,mr,Uc==null?void 0:Uc.privateSymbolVisitor,Uc==null?void 0:Uc.bundledImports):Kl||(Bi=he.createKeywordTypeNode(133))}let Ta=Uc==null?void 0:Uc.modifiers;if(Ht===185&&mr.flags&4){const Lc=aI(Ta);Ta=he.createModifiersFromModifierFlags(Lc|64)}const Ju=Ht===179?he.createCallSignature(Iu,pi,Bi):Ht===180?he.createConstructSignature(Iu,pi,Bi):Ht===173?he.createMethodSignature(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),Uc==null?void 0:Uc.questionToken,Iu,pi,Bi):Ht===174?he.createMethodDeclaration(Ta,void 0,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),void 0,Iu,pi,Bi,void 0):Ht===176?he.createConstructorDeclaration(Ta,pi,void 0):Ht===177?he.createGetAccessorDeclaration(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),pi,Bi,void 0):Ht===178?he.createSetAccessorDeclaration(Ta,(Uc==null?void 0:Uc.name)??he.createIdentifier(""),pi,void 0):Ht===181?he.createIndexSignature(Ta,pi,Bi):Ht===324?he.createJSDocFunctionType(pi,Bi):Ht===184?he.createFunctionTypeNode(Iu,pi,Bi??he.createTypeReferenceNode(he.createIdentifier(""))):Ht===185?he.createConstructorTypeNode(Ta,Iu,pi,Bi??he.createTypeReferenceNode(he.createIdentifier(""))):Ht===262?he.createFunctionDeclaration(Ta,void 0,Uc!=null&&Uc.name?uc(Uc.name,xn):he.createIdentifier(""),Iu,pi,Bi,void 0):Ht===218?he.createFunctionExpression(Ta,void 0,Uc!=null&&Uc.name?uc(Uc.name,xn):he.createIdentifier(""),Iu,pi,Bi,he.createBlock([])):Ht===219?he.createArrowFunction(Ta,Iu,pi,Bi,void 0,he.createBlock([])):re.assertNever(Ht);if(rl&&(Ju.typeArguments=he.createNodeArray(rl)),((Ql=mr.declaration)==null?void 0:Ql.kind)===330&&mr.declaration.parent.kind===346){const Lc=Lv(mr.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(_d=>_d.replace(/^\s+/," ")).join(` +`);sW(Ju,3,Lc,!0)}return yr==null||yr(),Ju}function rn(mr,Ht){if(mr.thisParameter)return So(mr.thisParameter,Ht);if(mr.declaration&&Cs(mr.declaration)){const Ws=Xre(mr.declaration);if(Ws&&Ws.typeExpression)return he.createParameterDeclaration(void 0,void 0,"this",void 0,A(Xl(Ws.typeExpression),Ht))}}function Sn(mr,Ht,Ws){const Uc=Ht.flags;Ht.flags&=-513;const Ql=he.createModifiersFromModifierFlags(FB(mr)),Kl=ad(mr,Ht),Iu=Dd(mr),rl=Iu&&A(Iu,Ht);return Ht.flags=Uc,he.createTypeParameterDeclaration(Ql,Kl,Ws,rl)}function xr(mr,Ht,Ws=gT(mr)){const Uc=Ws&&A(Ws,Ht);return Sn(mr,Ht,Uc)}function Ai(mr){const Ht=Rh(mr,169);if(Ht)return Ht;if(!Vm(mr))return Rh(mr,348)}function So(mr,Ht,Ws,Uc,Ql){const Kl=Ai(mr);let Iu=La(mr);Kl&&om(Kl)&&(Iu=iL(Iu));const rl=vb(Ht,Iu,mr,Ht.enclosingDeclaration,Uc,Ql),Dc=!(Ht.flags&8192)&&Ws&&Kl&&DA(Kl)?Vn(Xv(Kl),he.cloneNode):void 0,pi=Kl&&sp(Kl)||I_(mr)&32768?he.createToken(26):void 0,Eo=la(mr,Kl,Ht),wo=Kl&&U4(Kl)||I_(mr)&16384?he.createToken(58):void 0,Ta=he.createParameterDeclaration(Dc,pi,Eo,wo,rl,void 0);return Ht.approximateLength+=Il(mr).length+3,Ta}function la(mr,Ht,Ws){return Ht&&Ht.name?Ht.name.kind===80?_s(he.cloneNode(Ht.name),16777216):Ht.name.kind===166?_s(he.cloneNode(Ht.name.right),16777216):Uc(Ht.name):Il(mr);function Uc(Ql){return Kl(Ql);function Kl(Iu){Ws.tracker.canTrackSymbol&&Qf(Iu)&&dPe(Iu)&&Zs(Iu.expression,Ws.enclosingDeclaration,Ws);let rl=Xo(Iu,Kl,sx,void 0,Kl);return sa(rl)&&(rl=he.updateBindingElement(rl,rl.dotDotDotToken,rl.propertyName,rl.name,void 0)),Hd(rl)||(rl=he.cloneNode(rl)),_s(rl,16777217)}}}function Zs(mr,Ht,Ws){if(!Ws.tracker.canTrackSymbol)return;const Uc=PS(mr),Ql=gg(Uc,Uc.escapedText,1160127,void 0,void 0,!0);Ql&&Ws.tracker.trackSymbol(Ql,Ht,111551)}function ba(mr,Ht,Ws,Uc){return Ht.tracker.trackSymbol(mr,Ht.enclosingDeclaration,Ws),mo(mr,Ht,Ws,Uc)}function mo(mr,Ht,Ws,Uc){let Ql;return!(mr.flags&262144)&&(Ht.enclosingDeclaration||Ht.flags&64)&&!(Ht.flags&134217728)?(Ql=re.checkDefined(Iu(mr,Ws,!0)),re.assert(Ql&&Ql.length>0)):Ql=[mr],Ql;function Iu(rl,Dc,yr){let pi=pw(rl,Ht.enclosingDeclaration,Dc,!!(Ht.flags&128)),Eo;if(!pi||Vp(pi[0],Ht.enclosingDeclaration,pi.length===1?Dc:o2(Dc))){const wo=vV(pi?pi[0]:rl,Ht.enclosingDeclaration,Dc);if(Nt(wo)){Eo=wo.map(Lc=>gt(Lc.declarations,Z_)?Da(Lc,Ht):void 0);const Ta=wo.map((Lc,_d)=>_d);Ta.sort(Bi);const Ju=Ta.map(Lc=>wo[Lc]);for(const Lc of Ju){const _d=Iu(Lc,o2(Dc),!1);if(_d){if(Lc.exports&&Lc.exports.get("export=")&&AE(Lc.exports.get("export="),rl)){pi=_d;break}pi=_d.concat(pi||[M4(Lc,rl)||rl]);break}}}}if(pi)return pi;if(yr||!(rl.flags&6144))return!yr&&!Uc&&Ot(rl.declarations,Z_)?void 0:[rl];function Bi(wo,Ta){const Ju=Eo[wo],Lc=Eo[Ta];if(Ju&&Lc){const _d=V2(Lc);return V2(Ju)===_d?vae(Ju)-vae(Lc):_d?-1:1}return 0}}}function Ya(mr,Ht){let Ws;return E5(mr).flags&524384&&(Ws=he.createNodeArray(Vn(Fo(mr),Ql=>xr(Ql,Ht)))),Ws}function Ra(mr,Ht,Ws){var Uc;re.assert(mr&&0<=Ht&&HttL(pi,Dc.links.mapper)),Ws)}else Iu=Ya(Ql,Ws)}return Iu}function Va(mr){return Wx(mr.objectType)?Va(mr.objectType):mr}function Da(mr,Ht,Ws){let Uc=Rh(mr,312);if(!Uc){const yr=Yr(mr.declarations,pi=>$F(pi,mr));yr&&(Uc=Rh(yr,312))}if(Uc&&Uc.moduleName!==void 0)return Uc.moduleName;if(!Uc){if(Ht.tracker.trackReferencedAmbientModule){const yr=gi(mr.declarations,dh);if(Nt(yr))for(const pi of yr)Ht.tracker.trackReferencedAmbientModule(pi,mr)}if(Eae.test(mr.escapedName))return mr.escapedName.substring(1,mr.escapedName.length-1)}if(!Ht.enclosingDeclaration||!Ht.tracker.moduleResolverHost)return Eae.test(mr.escapedName)?mr.escapedName.substring(1,mr.escapedName.length-1):ts(pie(mr)).fileName;const Ql=ts(Gg(Ht.enclosingDeclaration)),Kl=Ws||(Ql==null?void 0:Ql.impliedNodeFormat),Iu=_$(Ql.path,Kl),rl=Ae(mr);let Dc=rl.specifierCache&&rl.specifierCache.get(Iu);if(!Dc){const yr=!!Ng(Pe),{moduleResolverHost:pi}=Ht.tracker,Eo=yr?{...Pe,baseUrl:pi.getCommonSourceDirectory()}:Pe;Dc=Dl(yae(mr,$i,Eo,Ql,pi,{importModuleSpecifierPreference:yr?"non-relative":"project-relative",importModuleSpecifierEnding:yr?"minimal":Kl===99?"js":void 0},{overrideImportMode:Ws})),rl.specifierCache??(rl.specifierCache=new Map),rl.specifierCache.set(Iu,Dc)}return Dc}function cc(mr){const Ht=he.createIdentifier(Ic(mr.escapedName));return mr.parent?he.createQualifiedName(cc(mr.parent),Ht):Ht}function V_(mr,Ht,Ws,Uc){const Ql=ba(mr,Ht,Ws,!(Ht.flags&16384)),Kl=Ws===111551;if(gt(Ql[0].declarations,Z_)){const Dc=Ql.length>1?rl(Ql,Ql.length-1,1):void 0,yr=Uc||Ra(Ql,0,Ht),pi=ts(Gg(Ht.enclosingDeclaration)),Eo=YU(Ql[0]);let Bi,wo;if((Jd(Pe)===3||Jd(Pe)===99)&&(Eo==null?void 0:Eo.impliedNodeFormat)===99&&Eo.impliedNodeFormat!==(pi==null?void 0:pi.impliedNodeFormat)&&(Bi=Da(Ql[0],Ht,99),wo=he.createImportAttributes(he.createNodeArray([he.createImportAttribute(he.createStringLiteral("resolution-mode"),he.createStringLiteral("import"))]))),Bi||(Bi=Da(Ql[0],Ht)),!(Ht.flags&67108864)&&Jd(Pe)!==1&&Bi.includes("/node_modules/")){const Ju=Bi;if(Jd(Pe)===3||Jd(Pe)===99){const Lc=(pi==null?void 0:pi.impliedNodeFormat)===99?1:99;Bi=Da(Ql[0],Ht,Lc),Bi.includes("/node_modules/")?Bi=Ju:wo=he.createImportAttributes(he.createNodeArray([he.createImportAttribute(he.createStringLiteral("resolution-mode"),he.createStringLiteral(Lc===99?"import":"require"))]))}wo||(Ht.encounteredError=!0,Ht.tracker.reportLikelyUnsafeImportRequiredError&&Ht.tracker.reportLikelyUnsafeImportRequiredError(Ju))}const Ta=he.createLiteralTypeNode(he.createStringLiteral(Bi));if(Ht.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ht.tracker.trackExternalModuleSymbolOfImportTypeNode(Ql[0]),Ht.approximateLength+=Bi.length+10,!Dc||kT(Dc)){if(Dc){const Ju=xn(Dc)?Dc:Dc.right;d6(Ju,void 0)}return he.createImportTypeNode(Ta,wo,Dc,yr,Kl)}else{const Ju=Va(Dc),Lc=Ju.objectType.typeName;return he.createIndexedAccessTypeNode(he.createImportTypeNode(Ta,wo,Lc,yr,Kl),Ju.indexType)}}const Iu=rl(Ql,Ql.length-1,0);if(Wx(Iu))return Iu;if(Kl)return he.createTypeQueryNode(Iu);{const Dc=xn(Iu)?Iu:Iu.right,yr=J7(Dc);return d6(Dc,void 0),he.createTypeReferenceNode(Iu,yr)}function rl(Dc,yr,pi){const Eo=yr===Dc.length-1?Uc:Ra(Dc,yr,Ht),Bi=Dc[yr],wo=Dc[yr-1];let Ta;if(yr===0)Ht.flags|=16777216,Ta=Wk(Bi,Ht),Ht.approximateLength+=(Ta?Ta.length:0)+1,Ht.flags^=16777216;else if(wo&&L2(wo)){const Lc=L2(wo);Jb(Lc,(_d,ga)=>{if(AE(_d,Bi)&&!CB(ga)&&ga!=="export=")return Ta=Ic(ga),!0})}if(Ta===void 0){const Lc=Yr(Bi.declarations,i_);if(Lc&&Qf(Lc)&&kT(Lc.expression)){const _d=rl(Dc,yr-1,pi);return kT(_d)?he.createIndexedAccessTypeNode(he.createParenthesizedType(he.createTypeQueryNode(_d)),he.createTypeQueryNode(Lc.expression)):_d}Ta=Wk(Bi,Ht)}if(Ht.approximateLength+=Ta.length+1,!(Ht.flags&16)&&wo&&j4(wo)&&j4(wo).get(Bi.escapedName)&&AE(j4(wo).get(Bi.escapedName),Bi)){const Lc=rl(Dc,yr-1,pi);return Wx(Lc)?he.createIndexedAccessTypeNode(Lc,he.createLiteralTypeNode(he.createStringLiteral(Ta))):he.createIndexedAccessTypeNode(he.createTypeReferenceNode(Lc,Eo),he.createLiteralTypeNode(he.createStringLiteral(Ta)))}const Ju=_s(he.createIdentifier(Ta),16777216);if(Eo&&d6(Ju,he.createNodeArray(Eo)),Ju.symbol=Bi,yr>pi){const Lc=rl(Dc,yr-1,pi);return kT(Lc)?he.createQualifiedName(Lc,Ju):re.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Ju}}function fd(mr,Ht,Ws){const Uc=gg(Ht.enclosingDeclaration,mr,788968,void 0,mr,!1);return Uc?!(Uc.flags&262144&&Uc===Ws.symbol):!1}function ad(mr,Ht){var Ws,Uc;if(Ht.flags&4&&Ht.typeParameterNames){const Kl=Ht.typeParameterNames.get(By(mr));if(Kl)return Kl}let Ql=Xf(mr.symbol,Ht,788968,!0);if(!(Ql.kind&80))return he.createIdentifier("(Missing type parameter)");if(Ht.flags&4){const Kl=Ql.escapedText;let Iu=((Ws=Ht.typeParameterNamesByTextNextNameCount)==null?void 0:Ws.get(Kl))||0,rl=Kl;for(;(Uc=Ht.typeParameterNamesByText)!=null&&Uc.has(rl)||fd(rl,Ht,mr);)Iu++,rl=`${Kl}_${Iu}`;if(rl!==Kl){const Dc=J7(Ql);Ql=he.createIdentifier(rl),d6(Ql,Dc)}(Ht.typeParameterNamesByTextNextNameCount||(Ht.typeParameterNamesByTextNextNameCount=new Map)).set(Kl,Iu),(Ht.typeParameterNames||(Ht.typeParameterNames=new Map)).set(By(mr),Ql),(Ht.typeParameterNamesByText||(Ht.typeParameterNamesByText=new Set)).add(Kl)}return Ql}function Xf(mr,Ht,Ws,Uc){const Ql=ba(mr,Ht,Ws);return Uc&&Ql.length!==1&&!Ht.encounteredError&&!(Ht.flags&65536)&&(Ht.encounteredError=!0),Kl(Ql,Ql.length-1);function Kl(Iu,rl){const Dc=Ra(Iu,rl,Ht),yr=Iu[rl];rl===0&&(Ht.flags|=16777216);const pi=Wk(yr,Ht);rl===0&&(Ht.flags^=16777216);const Eo=_s(he.createIdentifier(pi),16777216);return Dc&&d6(Eo,he.createNodeArray(Dc)),Eo.symbol=yr,rl>0?he.createQualifiedName(Kl(Iu,rl-1),Eo):Eo}}function KS(mr,Ht,Ws){const Uc=ba(mr,Ht,Ws);return Ql(Uc,Uc.length-1);function Ql(Kl,Iu){const rl=Ra(Kl,Iu,Ht),Dc=Kl[Iu];Iu===0&&(Ht.flags|=16777216);let yr=Wk(Dc,Ht);Iu===0&&(Ht.flags^=16777216);let pi=yr.charCodeAt(0);if(D9(pi)&>(Dc.declarations,Z_))return he.createStringLiteral(Da(Dc,Ht));if(Iu===0||doe(yr,dt)){const Eo=_s(he.createIdentifier(yr),16777216);return rl&&d6(Eo,he.createNodeArray(rl)),Eo.symbol=Dc,Iu>0?he.createPropertyAccessExpression(Ql(Kl,Iu-1),Eo):Eo}else{pi===91&&(yr=yr.substring(1,yr.length-1),pi=yr.charCodeAt(0));let Eo;if(D9(pi)&&!(Dc.flags&8)?Eo=he.createStringLiteral(S2(yr).replace(/\\./g,Bi=>Bi.substring(1)),pi===39):""+ +yr===yr&&(Eo=he.createNumericLiteral(+yr)),!Eo){const Bi=_s(he.createIdentifier(yr),16777216);rl&&d6(Bi,he.createNodeArray(rl)),Bi.symbol=Dc,Eo=Bi}return he.createElementAccessExpression(Ql(Kl,Iu-1),Eo)}}}function PC(mr){const Ht=i_(mr);return Ht?Qf(Ht)?!!(Bf(Ht.expression).flags&402653316):Hm(Ht)?!!(Bf(Ht.argumentExpression).flags&402653316):Sd(Ht):!1}function ua(mr){const Ht=i_(mr);return!!(Ht&&Sd(Ht)&&(Ht.singleQuote||!Hd(Ht)&&qf(Lv(Ht,!1),"'")))}function Ss(mr,Ht){const Ws=!!Nt(mr.declarations)&&jr(mr.declarations,PC),Uc=!!Nt(mr.declarations)&&jr(mr.declarations,ua),Ql=!!(mr.flags&8192),Kl=_f(mr,Ht,Uc,Ws,Ql);if(Kl)return Kl;const Iu=Ic(mr.escapedName);return QH(Iu,iu(Pe),Uc,Ws,Ql)}function _f(mr,Ht,Ws,Uc,Ql){const Kl=Ae(mr).nameType;if(Kl){if(Kl.flags&384){const Iu=""+Kl.value;return!H2(Iu,iu(Pe))&&(Uc||!FT(Iu))?he.createStringLiteral(Iu,!!Ws):FT(Iu)&&qf(Iu,"-")?he.createComputedPropertyName(he.createNumericLiteral(+Iu)):QH(Iu,iu(Pe),Ws,Uc,Ql)}if(Kl.flags&8192)return he.createComputedPropertyName(KS(Kl.symbol,Ht,111551))}}function hd(mr){const Ht={...mr};return Ht.typeParameterNames&&(Ht.typeParameterNames=new Map(Ht.typeParameterNames)),Ht.typeParameterNamesByText&&(Ht.typeParameterNamesByText=new Set(Ht.typeParameterNamesByText)),Ht.typeParameterSymbolList&&(Ht.typeParameterSymbolList=new Set(Ht.typeParameterSymbolList)),Ht.tracker=new lme(Ht,Ht.tracker.inner,Ht.tracker.moduleResolverHost),Ht}function Is(mr,Ht){return mr.declarations&&lr(mr.declarations,Ws=>!!Zy(Ws)&&(!Ht||!!Ua(Ws,Uc=>Uc===Ht)))}function pm(mr,Ht){return!(ji(Ht)&4)||!uE(mr)||Nt(mr.typeArguments)>=HS(Ht.target.typeParameters)}function Sh(mr){return rt(mr).fakeScopeForSignatureDeclaration?mr.parent:mr}function vb(mr,Ht,Ws,Uc,Ql,Kl){if(!Fn(Ht)&&Uc){const Dc=Is(Ws,Sh(Uc));if(Dc&&!Vd(Dc)&&!lE(Dc)){const yr=Zy(Dc);if(cg(yr,Dc,Ht)&&pm(yr,Ht)){const pi=jh(mr,yr,Ql,Kl);if(pi)return pi}}}const Iu=mr.flags;Ht.flags&8192&&Ht.symbol===Ws&&(!mr.enclosingDeclaration||gt(Ws.declarations,Dc=>ts(Dc)===ts(mr.enclosingDeclaration)))&&(mr.flags|=1048576);const rl=A(Ht,mr);return mr.flags=Iu,rl}function cg(mr,Ht,Ws){const Uc=Xl(mr);return Uc===Ws?!0:Os(Ht)&&Ht.questionToken?IC(Ws,524288)===Uc:!1}function u1(mr,Ht,Ws,Uc,Ql){if(!Fn(Ht)&&mr.enclosingDeclaration){const Kl=Ws.declaration&&kS(Ws.declaration),Iu=Sh(mr.enclosingDeclaration);if(Ua(Kl,rl=>rl===Iu)&&Kl){const rl=Xl(Kl);if((rl.flags&262144&&rl.isThisType?zu(rl,Ws.mapper):rl)===Ht&&pm(Kl,Ht)){const yr=jh(mr,Kl,Uc,Ql);if(yr)return yr}}}return A(Ht,mr)}function f0(mr,Ht,Ws){let Uc=!1;const Ql=PS(mr);if(Cs(mr)&&(P9(Ql)||jE(Ql.parent)||Pu(Ql.parent)&&x7(Ql.parent.left)&&P9(Ql.parent.right)))return Uc=!0,{introducesError:Uc,node:mr};const Kl=Qg(Ql,67108863,!0,!0);if(Kl&&(nc(Kl,Ht.enclosingDeclaration,67108863,!1).accessibility!==0?Uc=!0:(Ht.tracker.trackSymbol(Kl,Ht.enclosingDeclaration,67108863),Ws==null||Ws(Kl)),xn(mr))){const Iu=sh(Kl),rl=Kl.flags&262144&&!ne(Iu.symbol,Ht.enclosingDeclaration)?ad(Iu,Ht):he.cloneNode(mr);return rl.symbol=Kl,{introducesError:Uc,node:_s(Ls(rl,mr),16777216)}}return{introducesError:Uc,node:mr}}function jh(mr,Ht,Ws,Uc){c&&c.throwIfCancellationRequested&&c.throwIfCancellationRequested();let Ql=!1;const Kl=ts(Ht),Iu=Bn(Ht,rl,pc);if(Ql)return;return Iu===Ht?Tn(he.cloneNode(Ht),Ht):Iu;function rl(Dc){if(LG(Dc)||Dc.kind===326)return he.createKeywordTypeNode(133);if(Foe(Dc))return he.createKeywordTypeNode(159);if(WJ(Dc))return he.createUnionTypeNode([Bn(Dc.type,rl,pc),he.createLiteralTypeNode(he.createNull())]);if(EW(Dc))return he.createUnionTypeNode([Bn(Dc.type,rl,pc),he.createKeywordTypeNode(157)]);if(Gx(Dc))return Bn(Dc.type,rl);if(iF(Dc))return he.createArrayTypeNode(Bn(Dc.type,rl,pc));if(oF(Dc))return he.createTypeLiteralNode(Vn(Dc.jsDocPropertyTags,Bi=>{const wo=xn(Bi.name)?Bi.name:Bi.name.right,Ta=Xe(Xl(Dc),wo.escapedText),Ju=Ta&&Bi.typeExpression&&Xl(Bi.typeExpression.type)!==Ta?A(Ta,mr):void 0;return he.createPropertySignature(void 0,wo,Bi.isBracketed||Bi.typeExpression&&EW(Bi.typeExpression.type)?he.createToken(58):void 0,Ju||Bi.typeExpression&&Bn(Bi.typeExpression.type,rl,pc)||he.createKeywordTypeNode(133))}));if(uE(Dc)&&xn(Dc.typeName)&&Dc.typeName.escapedText==="")return Ls(he.createKeywordTypeNode(133),Dc);if((cC(Dc)||uE(Dc))&&uY(Dc))return he.createTypeLiteralNode([he.createIndexSignature(void 0,[he.createParameterDeclaration(void 0,void 0,"x",void 0,Bn(Dc.typeArguments[0],rl,pc))],Bn(Dc.typeArguments[1],rl,pc))]);if(Ak(Dc))if(VL(Dc)){let Bi;return he.createConstructorTypeNode(void 0,Wa(Dc.typeParameters,rl,Np),Qo(Dc.parameters,(wo,Ta)=>wo.name&&xn(wo.name)&&wo.name.escapedText==="new"?(Bi=wo.type,void 0):he.createParameterDeclaration(void 0,yr(wo),pi(wo,Ta),wo.questionToken,Bn(wo.type,rl,pc),void 0)),Bn(Bi||Dc.type,rl,pc)||he.createKeywordTypeNode(133))}else return he.createFunctionTypeNode(Wa(Dc.typeParameters,rl,Np),Vn(Dc.parameters,(Bi,wo)=>he.createParameterDeclaration(void 0,yr(Bi),pi(Bi,wo),Bi.questionToken,Bn(Bi.type,rl,pc),void 0)),Bn(Dc.type,rl,pc)||he.createKeywordTypeNode(133));if(uE(Dc)&&S7(Dc)&&(!pm(Dc,Xl(Dc))||Bue(Dc)||Pr===wl(Dc,788968,!0)))return Ls(A(Xl(Dc),mr),Dc);if(MN(Dc)){const Bi=rt(Dc).resolvedSymbol;return S7(Dc)&&Bi&&(!Dc.isTypeOf&&!(Bi.flags&788968)||!(Nt(Dc.typeArguments)>=HS(Fo(Bi))))?Ls(A(Xl(Dc),mr),Dc):he.updateImportTypeNode(Dc,he.updateLiteralTypeNode(Dc.argument,Eo(Dc,Dc.argument.literal)),Dc.attributes,Dc.qualifier,Wa(Dc.typeArguments,rl,pc),Dc.isTypeOf)}if(kT(Dc)||Tg(Dc)){const{introducesError:Bi,node:wo}=f0(Dc,mr,Ws);if(Ql=Ql||Bi,wo!==Dc)return wo}return Kl&&gW(Dc)&&xm(Kl,Dc.pos).line===xm(Kl,Dc.end).line&&_s(Dc,1),Xo(Dc,rl,sx);function yr(Bi){return Bi.dotDotDotToken||(Bi.type&&iF(Bi.type)?he.createToken(26):void 0)}function pi(Bi,wo){return Bi.name&&xn(Bi.name)&&Bi.name.escapedText==="this"?"this":yr(Bi)?"args":`arg${wo}`}function Eo(Bi,wo){if(Uc){if(mr.tracker&&mr.tracker.moduleResolverHost){const Ta=v0t(Bi);if(Ta){const Lc={getCanonicalFileName:H1(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>mr.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>mr.tracker.moduleResolverHost.getCommonSourceDirectory()},_d=pG(Lc,Ta);return he.createStringLiteral(_d)}}}else if(mr.tracker&&mr.tracker.trackExternalModuleSymbolOfImportTypeNode){const Ta=_w(wo,wo,void 0);Ta&&mr.tracker.trackExternalModuleSymbolOfImportTypeNode(Ta)}return wo}}}function XA(mr,Ht,Ws){var Uc;const Ql=G1(he.createPropertyDeclaration,174,!0),Kl=G1((si,$c,Ul,Pl)=>he.createPropertySignature(si,$c,Ul,Pl),173,!1),Iu=Ht.enclosingDeclaration;let rl=[];const Dc=new Set,yr=[],pi=Ht;Ht={...pi,usedSymbolNames:new Set(pi.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Uc=pi.remappedSymbolReferences)==null?void 0:Uc.entries()),tracker:void 0};const Eo={...pi.tracker.inner,trackSymbol:(si,$c,Ul)=>{var Pl,Hl;if((Pl=Ht.remappedSymbolNames)!=null&&Pl.has($d(si)))return!1;if(nc(si,$c,Ul,!1).accessibility===0){const jd=mo(si,Ht,Ul);if(!(si.flags&4)){const U_=jd[0],kp=ts(pi.enclosingDeclaration);gt(U_.declarations,ug=>ts(ug)===kp)&&Yh(U_)}}else if((Hl=pi.tracker.inner)!=null&&Hl.trackSymbol)return pi.tracker.inner.trackSymbol(si,$c,Ul);return!1}};Ht.tracker=new lme(Ht,Eo,pi.tracker.moduleResolverHost),Jb(mr,(si,$c)=>{const Ul=Ic($c);oA(si,Ul)});let Bi=!Ws;const wo=mr.get("export=");return wo&&mr.size>1&&wo.flags&2097152&&(mr=zd(),mr.set("export=",wo)),Op(mr),Rl(rl);function Ta(si){return!!si&&si.kind===80}function Ju(si){return Xg(si)?gi(Vn(si.declarationList.declarations,i_),Ta):gi([i_(si)],Ta)}function Lc(si){const $c=lr(si,py),Ul=Ho(si,dy);let Pl=Ul!==-1?si[Ul]:void 0;if(Pl&&$c&&$c.isExportEquals&&xn($c.expression)&&xn(Pl.name)&&Kr(Pl.name)===Kr($c.expression)&&Pl.body&&kh(Pl.body)){const Hl=gi(si,U_=>!!(Cb(U_)&32)),lg=Pl.name;let jd=Pl.body;if(Nt(Hl)&&(Pl=he.updateModuleDeclaration(Pl,Pl.modifiers,Pl.name,jd=he.updateModuleBlock(jd,he.createNodeArray([...Pl.body.statements,he.createExportDeclaration(void 0,!1,he.createNamedExports(Vn(ea(Hl,U_=>Ju(U_)),U_=>he.createExportSpecifier(!1,void 0,U_))),void 0)]))),si=[...si.slice(0,Ul),Pl,...si.slice(Ul+1)]),!lr(si,U_=>U_!==Pl&&ec(U_,lg))){rl=[];const U_=!gt(jd.statements,kp=>ul(kp,32)||py(kp)||ry(kp));Ot(jd.statements,kp=>{Ey(kp,U_?32:0)}),si=[...gi(si,kp=>kp!==Pl&&kp!==$c),...rl]}}return si}function _d(si){const $c=gi(si,Pl=>ry(Pl)&&!Pl.moduleSpecifier&&!!Pl.exportClause&&j0(Pl.exportClause));Nt($c)>1&&(si=[...gi(si,Hl=>!ry(Hl)||!!Hl.moduleSpecifier||!Hl.exportClause),he.createExportDeclaration(void 0,!1,he.createNamedExports(ea($c,Hl=>uc(Hl.exportClause,j0).elements)),void 0)]);const Ul=gi(si,Pl=>ry(Pl)&&!!Pl.moduleSpecifier&&!!Pl.exportClause&&j0(Pl.exportClause));if(Nt(Ul)>1){const Pl=BD(Ul,Hl=>Sd(Hl.moduleSpecifier)?">"+Hl.moduleSpecifier.text:">");if(Pl.length!==Ul.length)for(const Hl of Pl)Hl.length>1&&(si=[...gi(si,lg=>!Hl.includes(lg)),he.createExportDeclaration(void 0,!1,he.createNamedExports(ea(Hl,lg=>uc(lg.exportClause,j0).elements)),Hl[0].moduleSpecifier)])}return si}function ga(si){const $c=Ho(si,Ul=>ry(Ul)&&!Ul.moduleSpecifier&&!Ul.attributes&&!!Ul.exportClause&&j0(Ul.exportClause));if($c>=0){const Ul=si[$c],Pl=Qo(Ul.exportClause.elements,Hl=>{if(!Hl.propertyName){const lg=Cy(si),jd=gi(lg,U_=>ec(si[U_],Hl.name));if(Nt(jd)&&jr(jd,U_=>nW(si[U_]))){for(const U_ of jd)si[U_]=af(si[U_]);return}}return Hl});Nt(Pl)?si[$c]=he.updateExportDeclaration(Ul,Ul.modifiers,Ul.isTypeOnly,he.updateNamedExports(Ul.exportClause,Pl),Ul.moduleSpecifier,Ul.attributes):Yw(si,$c)}return si}function Rl(si){return si=Lc(si),si=_d(si),si=ga(si),Iu&&(Nu(Iu)&&aE(Iu)||dy(Iu))&&(!gt(si,XX)||!WMe(si)&>(si,kN))&&si.push(Boe(he)),si}function af(si){const $c=(Cb(si)|32)&-129;return he.replaceModifiers(si,$c)}function a_(si){const $c=Cb(si)&-33;return he.replaceModifiers(si,$c)}function Op(si,$c,Ul){$c||yr.push(new Map),si.forEach(Pl=>{Gb(Pl,!1,!!Ul)}),$c||(yr[yr.length-1].forEach(Pl=>{Gb(Pl,!0,!!Ul)}),yr.pop())}function Gb(si,$c,Ul){const Pl=jp(si);if(Dc.has($d(Pl)))return;if(Dc.add($d(Pl)),!$c||Nt(si.declarations)&>(si.declarations,lg=>!!Ua(lg,jd=>jd===Iu))){const lg=Ht;Ht=hd(Ht),Sy(si,$c,Ul),Ht.reportedDiagnostic&&(pi.reportedDiagnostic=Ht.reportedDiagnostic),Ht.trackedSymbols&&(lg.trackedSymbols?re.assert(Ht.trackedSymbols===lg.trackedSymbols):lg.trackedSymbols=Ht.trackedSymbols),Ht=lg}}function Sy(si,$c,Ul,Pl=si.escapedName){var Hl,lg,jd,U_,kp,ug;const xh=Ic(Pl),f2=Pl==="default";if($c&&!(Ht.flags&131072)&&w7(xh)&&!f2){Ht.encounteredError=!0;return}let SS=f2&&!!(si.flags&-113||si.flags&16&&Nt(zm(La(si))))&&!(si.flags&2097152),ES=!SS&&!$c&&w7(xh)&&!f2;(SS||ES)&&($c=!0);const Qh=($c?0:32)|(f2&&!SS?2048:0),qT=si.flags&1536&&si.flags&7&&Pl!=="export=",_L=qT&&Gm(La(si),si);if((si.flags&8208||_L)&&ic(La(si),si,oA(si,xh),Qh),si.flags&524288&&ar(si,xh,Qh),si.flags&98311&&Pl!=="export="&&!(si.flags&4194304)&&!(si.flags&32)&&!(si.flags&8192)&&!_L)if(Ul)Eh(si)&&(ES=!1,SS=!1);else{const KT=La(si),aA=oA(si,xh);if(KT.symbol&&KT.symbol!==si&&KT.symbol.flags&16&>(KT.symbol.declarations,EP)&&((Hl=KT.symbol.members)!=null&&Hl.size||(lg=KT.symbol.exports)!=null&&lg.size))Ht.remappedSymbolReferences||(Ht.remappedSymbolReferences=new Map),Ht.remappedSymbolReferences.set($d(KT.symbol),si),Sy(KT.symbol,$c,Ul,Pl),Ht.remappedSymbolReferences.delete($d(KT.symbol));else if(!(si.flags&16)&&Gm(KT,si))ic(KT,si,aA,Qh);else{const yne=si.flags&2?Gte(si)?2:1:(jd=si.parent)!=null&&jd.valueDeclaration&&Nu((U_=si.parent)==null?void 0:U_.valueDeclaration)?2:void 0,Ow=SS||!(si.flags&4)?aA:ez(aA,si);let C5=si.declarations&&lr(si.declarations,Ywe=>Kc(Ywe));C5&&Kp(C5.parent)&&C5.parent.declarations.length===1&&(C5=C5.parent.parent);const D5=(kp=si.declarations)==null?void 0:kp.find(Ac);if(D5&&Ds(D5.parent)&&xn(D5.parent.right)&&((ug=KT.symbol)!=null&&ug.valueDeclaration)&&Nu(KT.symbol.valueDeclaration)){const Ywe=aA===D5.parent.right.escapedText?void 0:D5.parent.right;Ey(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Ywe,aA)])),0),Ht.tracker.trackSymbol(KT.symbol,Ht.enclosingDeclaration,111551)}else{const Ywe=Tn(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Ow,void 0,vb(Ht,KT,si,Iu,Yh,Ws))],yne)),C5);Ey(Ywe,Ow!==aA?Qh&-33:Qh),Ow!==aA&&!$c&&(Ey(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Ow,aA)])),0),ES=!1,SS=!1)}}}if(si.flags&384&&Yo(si,xh,Qh),si.flags&32&&(si.flags&4&&si.valueDeclaration&&Ds(si.valueDeclaration.parent)&&v0(si.valueDeclaration.parent.right)?sd(si,oA(si,xh),Qh):op(si,oA(si,xh),Qh)),(si.flags&1536&&(!qT||qa(si))||_L)&&yc(si,xh,Qh),si.flags&64&&!(si.flags&32)&&Gr(si,xh,Qh),si.flags&2097152&&sd(si,oA(si,xh),Qh),si.flags&4&&si.escapedName==="export="&&Eh(si),si.flags&8388608&&si.declarations)for(const KT of si.declarations){const aA=gS(KT,KT.moduleSpecifier);aA&&Ey(he.createExportDeclaration(void 0,KT.isTypeOnly,void 0,he.createStringLiteral(Da(aA,Ht))),0)}SS?Ey(he.createExportAssignment(void 0,!1,he.createIdentifier(oA(si,xh))),0):ES&&Ey(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,oA(si,xh),xh)])),0)}function Yh(si){if(gt(si.declarations,X8))return;re.assertIsDefined(yr[yr.length-1]),ez(Ic(si.escapedName),si);const $c=!!(si.flags&2097152)&&!gt(si.declarations,Ul=>!!Ua(Ul,ry)||G0(Ul)||Yb(Ul)&&!KE(Ul.moduleReference));yr[$c?0:yr.length-1].set($d(si),si)}function TS(si){return Nu(si)&&(aE(si)||Rx(si))||dh(si)&&!JC(si)}function Ey(si,$c){if(DA(si)){let Ul=0;const Pl=Ht.enclosingDeclaration&&(b2(Ht.enclosingDeclaration)?ts(Ht.enclosingDeclaration):Ht.enclosingDeclaration);$c&32&&Pl&&(TS(Pl)||dy(Pl))&&nW(si)&&(Ul|=32),Bi&&!(Ul&32)&&(!Pl||!(Pl.flags&33554432))&&(xP(si)||Xg(si)||mg(si)||Ih(si)||dy(si))&&(Ul|=128),$c&2048&&(Ih(si)||xp(si)||mg(si))&&(Ul|=2048),Ul&&(si=he.replaceModifiers(si,Ul|Cb(si)))}rl.push(si)}function ar(si,$c,Ul){var Pl;const Hl=dWe(si),lg=Ae(si).typeParameters,jd=Vn(lg,SS=>xr(SS,Ht)),U_=(Pl=si.declarations)==null?void 0:Pl.find(b2),kp=EN(U_?U_.comment||U_.parent.comment:void 0),ug=Ht.flags;Ht.flags|=8388608;const xh=Ht.enclosingDeclaration;Ht.enclosingDeclaration=U_;const f2=U_&&U_.typeExpression&&SW(U_.typeExpression)&&jh(Ht,U_.typeExpression.type,Yh,Ws)||A(Hl,Ht);Ey(uI(he.createTypeAliasDeclaration(void 0,oA(si,$c),jd,f2),kp?[{kind:3,text:`* * `+kp.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ul),Ht.flags=ug,Ht.enclosingDeclaration=xh}function Gr(si,$c,Ul){const Pl=F1(si),Hl=Fo(si),lg=Vn(Hl,ES=>xr(ES,Ht)),jd=l0(Pl),U_=Nt(jd)?vp(jd):void 0,kp=ea(zm(Pl),ES=>Mw(ES,U_)),ug=Lw(0,Pl,U_,179),xh=Lw(1,Pl,U_,180),f2=YV(Pl,U_),SS=Nt(jd)?[he.createHeritageClause(96,Qo(jd,ES=>hne(ES,111551)))]:void 0;xy(he.createInterfaceDeclaration(void 0,oA(si,$c),lg,SS,[...f2,...xh,...ug,...kp]),Ul)}function uo(si){const $c=L2(si);return $c?gi(oc($c.values()),Ul=>D_(Ul)&&H2(Ul.escapedName,99)):[]}function qa(si){return jr(uo(si),$c=>!(pT(Av($c))&111551))}function yc(si,$c,Ul){const Pl=uo(si),Hl=_N(Pl,U_=>U_.parent&&U_.parent===si?"real":"merged"),lg=Hl.get("real")||Yn,jd=Hl.get("merged")||Yn;if(Nt(lg)){const U_=oA(si,$c);vu(lg,U_,Ul,!!(si.flags&67108880))}if(Nt(jd)){const U_=ts(Ht.enclosingDeclaration),kp=oA(si,$c),ug=he.createModuleBlock([he.createExportDeclaration(void 0,!1,he.createNamedExports(Qo(gi(jd,xh=>xh.escapedName!=="export="),xh=>{var f2,SS;const ES=Ic(xh.escapedName),Qh=oA(xh,ES),qT=xh.declarations&&UT(xh);if(U_&&(qT?U_!==ts(qT):!gt(xh.declarations,aA=>ts(aA)===U_))){(SS=(f2=Ht.tracker)==null?void 0:f2.reportNonlocalAugmentation)==null||SS.call(f2,U_,si,xh);return}const _L=qT&&Yx(qT,!0);Yh(_L||xh);const KT=_L?oA(_L,Ic(_L.escapedName)):Qh;return he.createExportSpecifier(!1,ES===KT?void 0:KT,ES)})))]);xy(he.createModuleDeclaration(void 0,he.createIdentifier(kp),ug,32),0)}}function Yo(si,$c,Ul){xy(he.createEnumDeclaration(he.createModifiersFromModifierFlags(Nwe(si)?4096:0),oA(si,$c),Vn(gi(zm(La(si)),Pl=>!!(Pl.flags&8)),Pl=>{const Hl=Pl.declarations&&Pl.declarations[0]&&pI(Pl.declarations[0])?ww(Pl.declarations[0]):void 0;return he.createEnumMember(Ic(Pl.escapedName),Hl===void 0?void 0:typeof Hl=="string"?he.createStringLiteral(Hl):he.createNumericLiteral(Hl))})),Ul)}function ic(si,$c,Ul,Pl){const Hl=ed(si,0);for(const lg of Hl){const jd=Rt(lg,262,Ht,{name:he.createIdentifier(Ul),privateSymbolVisitor:Yh,bundledImports:Ws});xy(Tn(jd,Zl(lg)),Pl)}if(!($c.flags&1536&&$c.exports&&$c.exports.size)){const lg=gi(zm(si),D_);vu(lg,Ul,Pl,!0)}}function Zl(si){if(si.declaration&&si.declaration.parent){if(Ds(si.declaration.parent)&&jy(si.declaration.parent)===5)return si.declaration.parent;if(Kc(si.declaration.parent)&&si.declaration.parent.parent)return si.declaration.parent.parent}return si.declaration}function vu(si,$c,Ul,Pl){if(Nt(si)){const lg=_N(si,Qh=>!Nt(Qh.declarations)||gt(Qh.declarations,qT=>ts(qT)===ts(Ht.enclosingDeclaration))?"local":"remote").get("local")||Yn;let jd=Ck.createModuleDeclaration(void 0,he.createIdentifier($c),he.createModuleBlock([]),32);kl(jd,Iu),jd.locals=zd(si),jd.symbol=si[0].parent;const U_=rl;rl=[];const kp=Bi;Bi=!1;const ug={...Ht,enclosingDeclaration:jd},xh=Ht;Ht=ug,Op(zd(lg),Pl,!0),Ht=xh,Bi=kp;const f2=rl;rl=U_;const SS=Vn(f2,Qh=>my(Qh)&&!Qh.isExportEquals&&xn(Qh.expression)?he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Qh.expression,he.createIdentifier("default"))])):Qh),ES=jr(SS,Qh=>ul(Qh,32))?Vn(SS,a_):SS;jd=he.updateModuleDeclaration(jd,jd.modifiers,jd.name,he.createModuleBlock(ES)),xy(jd,Ul)}}function D_(si){return!!(si.flags&2887656)||!(si.flags&4194304||si.escapedName==="prototype"||si.valueDeclaration&&pd(si.valueDeclaration)&&Fl(si.valueDeclaration.parent))}function Qd(si){const $c=Qo(si,Ul=>{const Pl=Ht.enclosingDeclaration;Ht.enclosingDeclaration=Ul;let Hl=Ul.expression;if(Tg(Hl)){if(xn(Hl)&&Kr(Hl)==="")return lg(void 0);let jd;if({introducesError:jd,node:Hl}=f0(Hl,Ht,Yh),jd)return lg(void 0)}return lg(he.createExpressionWithTypeArguments(Hl,Vn(Ul.typeArguments,jd=>jh(Ht,jd,Yh,Ws)||A(Xl(jd),Ht))));function lg(jd){return Ht.enclosingDeclaration=Pl,jd}});if($c.length===si.length)return $c}function op(si,$c,Ul){var Pl,Hl;const lg=(Pl=si.declarations)==null?void 0:Pl.find(Fl),jd=Ht.enclosingDeclaration;Ht.enclosingDeclaration=lg||jd;const U_=Fo(si),kp=Vn(U_,Fw=>xr(Fw,Ht)),ug=vx(F1(si)),xh=l0(ug),f2=lg&&ZM(lg),SS=f2&&Qd(f2)||Qo(VA(ug),_8),ES=La(si),Qh=!!((Hl=ES.symbol)!=null&&Hl.valueDeclaration)&&Fl(ES.symbol.valueDeclaration),qT=Qh?cv(ES):Ge,_L=[...Nt(xh)?[he.createHeritageClause(96,Vn(xh,Fw=>t_e(Fw,qT,$c)))]:[],...Nt(SS)?[he.createHeritageClause(119,SS)]:[]],KT=_(ug,xh,zm(ug)),aA=gi(KT,Fw=>{const R1e=Fw.valueDeclaration;return!!R1e&&!(mp(R1e)&&Lu(R1e.name))}),Ow=gt(KT,Fw=>{const R1e=Fw.valueDeclaration;return!!R1e&&mp(R1e)&&Lu(R1e.name)})?[he.createPropertyDeclaration(void 0,he.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Yn,C5=ea(aA,Fw=>Ql(Fw,!1,xh[0])),D5=ea(gi(zm(ES),Fw=>!(Fw.flags&4194304)&&Fw.escapedName!=="prototype"&&!D_(Fw)),Fw=>Ql(Fw,!0,qT)),hPt=!Qh&&!!si.valueDeclaration&&Cs(si.valueDeclaration)&&!gt(ed(ES,1))?[he.createConstructorDeclaration(he.createModifiersFromModifierFlags(2),[],void 0)]:Lw(1,ES,qT,176),yPt=YV(ug,xh[0]);Ht.enclosingDeclaration=jd,xy(Tn(he.createClassDeclaration(void 0,$c,kp,_L,[...yPt,...D5,...hPt,...C5,...Ow]),si.declarations&&gi(si.declarations,Fw=>Ih(Fw)||v0(Fw))[0]),Ul)}function uu(si){return Yr(si,$c=>{if(qE($c)||gy($c))return Kr($c.propertyName||$c.name);if(Ds($c)||my($c)){const Ul=my($c)?$c.expression:$c.right;if(Ac(Ul))return Kr(Ul.name)}if(wI($c)){const Ul=i_($c);if(Ul&&xn(Ul))return Kr(Ul)}})}function sd(si,$c,Ul){var Pl,Hl,lg,jd,U_;const kp=UT(si);if(!kp)return re.fail();const ug=jp(Yx(kp,!0));if(!ug)return;let xh=ZU(ug)&&uu(si.declarations)||Ic(ug.escapedName);xh==="export="&&Ze&&(xh="default");const f2=oA(ug,xh);switch(Yh(ug),kp.kind){case 208:if(((Hl=(Pl=kp.parent)==null?void 0:Pl.parent)==null?void 0:Hl.kind)===260){const Qh=Da(ug.parent||ug,Ht),{propertyName:qT}=kp;xy(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamedImports([he.createImportSpecifier(!1,qT&&xn(qT)?he.createIdentifier(Kr(qT)):void 0,he.createIdentifier($c))])),he.createStringLiteral(Qh),void 0),0);break}re.failBadSyntaxKind(((lg=kp.parent)==null?void 0:lg.parent)||kp,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((U_=(jd=kp.parent)==null?void 0:jd.parent)==null?void 0:U_.kind)===226&&Ip(Ic(si.escapedName),f2);break;case 260:if(Ac(kp.initializer)){const Qh=kp.initializer,qT=he.createUniqueName($c),_L=Da(ug.parent||ug,Ht);xy(he.createImportEqualsDeclaration(void 0,!1,qT,he.createExternalModuleReference(he.createStringLiteral(_L))),0),xy(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier($c),he.createQualifiedName(qT,Qh.name)),Ul);break}case 271:if(ug.escapedName==="export="&>(ug.declarations,Qh=>Nu(Qh)&&Rx(Qh))){Eh(si);break}const SS=!(ug.flags&512)&&!Kc(kp);xy(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier($c),SS?Xf(ug,Ht,67108863,!1):he.createExternalModuleReference(he.createStringLiteral(Da(ug,Ht)))),SS?Ul:0);break;case 270:xy(he.createNamespaceExportDeclaration(Kr(kp.name)),0);break;case 273:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.moduleSpecifier;xy(he.createImportDeclaration(void 0,he.createImportClause(!1,he.createIdentifier($c),void 0),qT,kp.parent.attributes),0);break}case 274:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.parent.moduleSpecifier;xy(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamespaceImport(he.createIdentifier($c))),qT,kp.parent.attributes),0);break}case 280:xy(he.createExportDeclaration(void 0,!1,he.createNamespaceExport(he.createIdentifier($c)),he.createStringLiteral(Da(ug,Ht))),0);break;case 276:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.parent.parent.moduleSpecifier;xy(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamedImports([he.createImportSpecifier(!1,$c!==xh?he.createIdentifier(xh):void 0,he.createIdentifier($c))])),qT,kp.parent.parent.parent.attributes),0);break}case 281:const ES=kp.parent.parent.moduleSpecifier;Ip(Ic(si.escapedName),ES?xh:f2,ES&&Cm(ES)?he.createStringLiteral(ES.text):void 0);break;case 277:Eh(si);break;case 226:case 211:case 212:si.escapedName==="default"||si.escapedName==="export="?Eh(si):Ip($c,f2);break;default:return re.failBadSyntaxKind(kp,"Unhandled alias declaration kind in symbol serializer!")}}function Ip(si,$c,Ul){xy(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,si!==$c?$c:void 0,si)]),Ul),0)}function Eh(si){var $c;if(si.flags&4194304)return!1;const Ul=Ic(si.escapedName),Pl=Ul==="export=",lg=Pl||Ul==="default",jd=si.declarations&&UT(si),U_=jd&&Yx(jd,!0);if(U_&&Nt(U_.declarations)&>(U_.declarations,kp=>ts(kp)===ts(Iu))){const kp=jd&&(my(jd)||Ds(jd)?Pde(jd):XMe(jd)),ug=kp&&Tg(kp)?Go(kp):void 0,xh=ug&&Qg(ug,67108863,!0,!0,Iu);(xh||U_)&&Yh(xh||U_);const f2=Ht.tracker.disableTrackSymbol;if(Ht.tracker.disableTrackSymbol=!0,lg)rl.push(he.createExportAssignment(void 0,Pl,KS(U_,Ht,67108863)));else if(ug===kp&&ug)Ip(Ul,Kr(ug));else if(kp&&v0(kp))Ip(Ul,oA(U_,Il(U_)));else{const SS=ez(Ul,si);xy(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier(SS),Xf(U_,Ht,67108863,!1)),0),Ip(Ul,SS)}return Ht.tracker.disableTrackSymbol=f2,!0}else{const kp=ez(Ul,si),ug=z2(La(jp(si)));if(Gm(ug,si))ic(ug,si,kp,lg?0:32);else{const xh=(($c=Ht.enclosingDeclaration)==null?void 0:$c.kind)===267&&(!(si.flags&98304)||si.flags&65536)?1:2,f2=he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(kp,void 0,vb(Ht,ug,si,Iu,Yh,Ws))],xh));xy(f2,U_&&U_.flags&4&&U_.escapedName==="export="?128:Ul===kp?32:0)}return lg?(rl.push(he.createExportAssignment(void 0,Pl,he.createIdentifier(kp))),!0):Ul!==kp?(Ip(Ul,kp),!0):!1}}function Gm(si,$c){const Ul=ts(Ht.enclosingDeclaration);return ji(si)&48&&!Nt(JT(si))&&!qF(si)&&!!(Nt(gi(zm(si),D_))||Nt(ed(si,0)))&&!Nt(ed(si,1))&&!Is($c,Iu)&&!(si.symbol&>(si.symbol.declarations,Pl=>ts(Pl)!==Ul))&&!gt(zm(si),Pl=>CB(Pl.escapedName))&&!gt(zm(si),Pl=>gt(Pl.declarations,Hl=>ts(Hl)!==Ul))&&jr(zm(si),Pl=>H2(Il(Pl),dt)?Pl.flags&98304?AC(Pl)===QF(Pl):!0:!1)}function G1(si,$c,Ul){return function(Hl,lg,jd){var U_,kp,ug,xh,f2;const SS=Vy(Hl),ES=!!(SS&2);if(lg&&Hl.flags&2887656)return[];if(Hl.flags&4194304||Hl.escapedName==="constructor"||jd&&Yd(jd,Hl.escapedName)&&z1(Yd(jd,Hl.escapedName))===z1(Hl)&&(Hl.flags&16777216)===(Yd(jd,Hl.escapedName).flags&16777216)&&Xh(La(Hl),Xe(jd,Hl.escapedName)))return[];const Qh=SS&-1025|(lg?256:0),qT=Ss(Hl,Ht),_L=(U_=Hl.declarations)==null?void 0:U_.find(bb(nu,GM,Kc,em,Ds,Ac));if(Hl.flags&98304&&Ul){const KT=[];if(Hl.flags&65536){const aA=Hl.declarations&&Ot(Hl.declarations,Ow=>{if(Ow.kind===178)return Ow;if(xd(Ow)&&A7(Ow))return Ot(Ow.arguments[2].properties,C5=>{const D5=i_(C5);if(D5&&xn(D5)&&Kr(D5)==="set")return C5})});re.assert(!!aA);const yne=Vd(aA)?gb(aA).parameters[0]:void 0;KT.push(Tn(he.createSetAccessorDeclaration(he.createModifiersFromModifierFlags(Qh),qT,[he.createParameterDeclaration(void 0,void 0,yne?la(yne,Ai(yne),Ht):"value",void 0,ES?void 0:vb(Ht,La(Hl),Hl,Iu,Yh,Ws))],void 0),((kp=Hl.declarations)==null?void 0:kp.find(UC))||_L))}if(Hl.flags&32768){const aA=SS&2;KT.push(Tn(he.createGetAccessorDeclaration(he.createModifiersFromModifierFlags(Qh),qT,[],aA?void 0:vb(Ht,La(Hl),Hl,Iu,Yh,Ws),void 0),((ug=Hl.declarations)==null?void 0:ug.find(PN))||_L))}return KT}else if(Hl.flags&98311)return Tn(si(he.createModifiersFromModifierFlags((z1(Hl)?8:0)|Qh),qT,Hl.flags&16777216?he.createToken(58):void 0,ES?void 0:vb(Ht,QF(Hl),Hl,Iu,Yh,Ws),void 0),((xh=Hl.declarations)==null?void 0:xh.find(bb(nu,Kc)))||_L);if(Hl.flags&8208){const KT=La(Hl),aA=ed(KT,0);if(Qh&2)return Tn(si(he.createModifiersFromModifierFlags((z1(Hl)?8:0)|Qh),qT,Hl.flags&16777216?he.createToken(58):void 0,void 0,void 0),((f2=Hl.declarations)==null?void 0:f2.find(Vd))||aA[0]&&aA[0].declaration||Hl.declarations&&Hl.declarations[0]);const yne=[];for(const Ow of aA){const C5=Rt(Ow,$c,Ht,{name:qT,questionToken:Hl.flags&16777216?he.createToken(58):void 0,modifiers:Qh?he.createModifiersFromModifierFlags(Qh):void 0}),D5=Ow.declaration&&VL(Ow.declaration.parent)?Ow.declaration.parent:Ow.declaration;yne.push(Tn(C5,D5))}return yne}return re.fail(`Unhandled class member kind! ${Hl.__debugFlags||Hl.flags}`)}}function Mw(si,$c){return Kl(si,!1,$c)}function Lw(si,$c,Ul,Pl){const Hl=ed($c,si);if(si===1){if(!Ul&&jr(Hl,U_=>Nt(U_.parameters)===0))return[];if(Ul){const U_=ed(Ul,1);if(!Nt(U_)&&jr(Hl,kp=>Nt(kp.parameters)===0))return[];if(U_.length===Hl.length){let kp=!1;for(let ug=0;ugA(Hl,Ht)),Pl=KS(si.target.symbol,Ht,788968)):si.symbol&&Er(si.symbol,Iu,$c)&&(Pl=KS(si.symbol,Ht,788968)),Pl)return he.createExpressionWithTypeArguments(Pl,Ul)}function _8(si){const $c=hne(si,788968);if($c)return $c;if(si.symbol)return he.createExpressionWithTypeArguments(KS(si.symbol,Ht,788968),void 0)}function ez(si,$c){var Ul,Pl;const Hl=$c?$d($c):void 0;if(Hl&&Ht.remappedSymbolNames.has(Hl))return Ht.remappedSymbolNames.get(Hl);$c&&(si=YGe($c,si));let lg=0;const jd=si;for(;(Ul=Ht.usedSymbolNames)!=null&&Ul.has(si);)lg++,si=`${jd}_${lg}`;return(Pl=Ht.usedSymbolNames)==null||Pl.add(si),Hl&&Ht.remappedSymbolNames.set(Hl,si),si}function YGe(si,$c){if($c==="default"||$c==="__class"||$c==="__function"){const Ul=Ht.flags;Ht.flags|=16777216;const Pl=Wk(si,Ht);Ht.flags=Ul,$c=Pl.length>0&&D9(Pl.charCodeAt(0))?S2(Pl):Pl}return $c==="default"?$c="_default":$c==="export="&&($c="_exports"),$c=H2($c,dt)&&!w7($c)?$c:"_"+$c.replace(/[^a-zA-Z0-9]/g,"_"),$c}function oA(si,$c){const Ul=$d(si);return Ht.remappedSymbolNames.has(Ul)?Ht.remappedSymbolNames.get(Ul):($c=YGe(si,$c),Ht.remappedSymbolNames.set(Ul,$c),$c)}}}function $P(o,f,v=16384,A){return A?R(A).getText():wT(R);function R(B){const Y=he.createTypePredicateNode(o.kind===2||o.kind===3?he.createToken(131):void 0,o.kind===1||o.kind===3?he.createIdentifier(o.parameterName):he.createThisTypeNode(),o.type&&Wr.typeToTypeNode(o.type,f,gO(v)|70221824|512)),pe=d4(),Te=f&&ts(f);return pe.writeNode(4,Y,Te,B),B}}function XR(o){const f=[];let v=0;for(let A=0;Ai_(Y)?Y:void 0);const B=R&&i_(R);if(R&&B){if(xd(R)&&A7(R))return Il(o);if(Qf(B)&&!(I_(o)&4096)){const Y=Ae(o).nameType;if(Y&&Y.flags&384){const pe=W4(o,f);if(pe!==void 0)return pe}}return hm(B)}if(R||(R=o.declarations[0]),R.parent&&R.parent.kind===260)return hm(R.parent.name);switch(R.kind){case 231:case 218:case 219:return f&&!f.encounteredError&&!(f.flags&131072)&&(f.encounteredError=!0),R.kind===231?"(Anonymous class)":"(Anonymous function)"}}const A=W4(o,f);return A!==void 0?A:Il(o)}function gw(o){if(o){const v=rt(o);return v.isVisible===void 0&&(v.isVisible=!!f()),v.isVisible}return!1;function f(){switch(o.kind){case 345:case 353:case 347:return!!(o.parent&&o.parent.parent&&o.parent.parent.parent&&Nu(o.parent.parent.parent));case 208:return gw(o.parent.parent);case 260:if($_(o.name)&&!o.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Ov(o))return!0;const v=XF(o);return!(eit(o)&32)&&!(o.kind!==271&&v.kind!==312&&v.flags&33554432)?Dn(v):gw(v);case 172:case 171:case 177:case 178:case 174:case 173:if(tT(o,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 gw(o.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 Qq(o,f){let v;o.parent&&o.parent.kind===277?v=gg(o,o.escapedText,2998271,void 0,o,!1):o.parent.kind===281&&(v=sO(o.parent,2998271));let A,R;return v&&(R=new Set,R.add($d(v)),B(v.declarations)),A;function B(Y){Ot(Y,pe=>{const Te=gD(pe)||pe;if(f?rt(pe).isVisible=!0:(A=A||[],Dy(A,Te)),$M(pe)){const Ue=pe.moduleReference,St=PS(Ue),Rt=gg(pe,St.escapedText,901119,void 0,void 0,!1);Rt&&R&&m2(R,$d(Rt))&&B(Rt.declarations)}})}}function OI(o,f){const v=HT(o,f);if(v>=0){const{length:A}=Js;for(let R=v;R=ju;v--){if(F0e(Js[v],fl[v]))return-1;if(Js[v]===o&&fl[v]===f)return v}return-1}function F0e(o,f){switch(f){case 0:return!!Ae(o).type;case 5:return!!rt(o).resolvedEnumType;case 2:return!!Ae(o).declaredType;case 1:return!!o.resolvedBaseConstructorType;case 3:return!!o.resolvedReturnType;case 4:return!!o.immediateBaseConstraint;case 6:return!!o.resolvedTypeArguments;case 7:return!!o.baseTypesResolved;case 8:return!!Ae(o).writeType;case 9:return rt(o).parameterInitializerContainsUndefined!==void 0}return re.assertNever(f)}function Bk(){return Js.pop(),fl.pop(),pu.pop()}function XF(o){return Ua(vA(o),f=>{switch(f.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function ute(o){const f=sh(xE(o));return f.typeParameters?qv(f,Vn(f.typeParameters,v=>Ge)):f}function Xe(o,f){const v=Yd(o,f);return v?La(v):void 0}function $t(o,f){var v;let A;return Xe(o,f)||(A=(v=i5(o,f))==null?void 0:v.type)&&mb(A,!0,!0)}function bn(o){return o&&(o.flags&1)!==0}function Fn(o){return o===Sr||!!(o.flags&1&&o.aliasSymbol)}function Ri(o,f){if(f!==0)return KP(o,!1,f);const v=sc(o);return v&&Ae(v).type||KP(o,!1,f)}function Ti(o,f,v){if(o=lv(o,Te=>!(Te.flags&98304)),o.flags&131072)return M_;if(o.flags&1048576)return Th(o,Te=>Ti(Te,f,v));let A=dc(Vn(f,SD));const R=[],B=[];for(const Te of zm(o)){const Ue=c5(Te,8576);!Id(Ue,A)&&!(Vy(Te)&6)&&_be(Te)?R.push(Te):B.push(Ue)}if(Ew(o)||Tx(A)){if(B.length&&(A=dc([A,...B])),A.flags&131072)return o;const Te=yet();return Te?PB(Te,[o,A]):Sr}const Y=zd();for(const Te of R)Y.set(Te.escapedName,VPe(Te,!1));const pe=sy(v,Y,Yn,Yn,JT(o));return pe.objectFlags|=4194304,pe}function Xc(o){return!!(o.flags&465829888)&&Sy(US(o)||Io,32768)}function Fu(o){const f=Uk(o,Xc)?Th(o,v=>v.flags&465829888?tM(v):v):o;return IC(f,524288)}function cu(o,f){const v=Ml(o);return v?s8(v,f):f}function Ml(o){const f=Zu(o);if(f&&J8(f)&&f.flowNode){const v=hg(o);if(v){const A=Tn(Ck.createStringLiteral(v),o),R=ib(f)?f:Ck.createParenthesizedExpression(f),B=Tn(Ck.createElementAccessExpression(R,A),o);return kl(A,B),kl(B,o),R!==f&&kl(R,B),B.flowNode=f.flowNode,B}}}function Zu(o){const f=o.parent.parent;switch(f.kind){case 208:case 303:return Ml(f);case 209:return Ml(o.parent);case 260:return f.initializer;case 226:return f.right}}function hg(o){const f=o.parent;return o.kind===208&&f.kind===206?T_(o.propertyName||o.name):o.kind===303||o.kind===304?T_(o.name):""+f.elements.indexOf(o)}function T_(o){const f=SD(o);return f.flags&384?""+f.value:void 0}function Cd(o){const f=o.dotDotDotToken?32:0,v=Ri(o.parent.parent,f);return v&&pb(o,v,!1)}function pb(o,f,v){if(bn(f))return f;const A=o.parent;Ke&&o.flags&33554432&&X8(o)?f=Dw(f):Ke&&A.parent.initializer&&!DC(Rtt(A.parent.initializer),65536)&&(f=IC(f,524288));let R;if(A.kind===206)if(o.dotDotDotToken){if(f=zI(f),f.flags&2||!Sfe(f))return hn(o,N.Rest_types_may_only_be_created_from_object_types),Sr;const B=[];for(const Y of A.elements)Y.dotDotDotToken||B.push(Y.propertyName||Y.name);R=Ti(f,B,o.symbol)}else{const B=o.propertyName||o.name,Y=SD(B),pe=u0(f,Y,32,B);R=cu(o,pe)}else{const B=Kk(65|(o.dotDotDotToken?0:128),f,Ce,A),Y=A.elements.indexOf(o);if(o.dotDotDotToken){const pe=Th(f,Te=>Te.flags&58982400?tM(Te):Te);R=Ex(pe,Dp)?Th(pe,Te=>bte(Te,Y)):hT(B)}else if(rL(f)){const pe=HA(Y),Te=32|(v||wO(o)?16:0),Ue=xw(f,pe,Te,o.name)||Sr;R=cu(o,Ue)}else R=B}return o.initializer?Zy(OU(o))?Ke&&!DC(ine(o,0),16777216)?Fu(R):R:vGe(o,dc([Fu(R),ine(o,0)],2)):R}function zA(o){const f=iR(o);if(f)return Xl(f)}function qP(o){const f=rg(o,!0);return f.kind===106||f.kind===80&&xD(f)===En}function yx(o){const f=rg(o,!0);return f.kind===209&&f.elements.length===0}function mb(o,f=!1,v=!0){return Ke&&v?iL(o,f):o}function KP(o,f,v){if(Kc(o)&&o.parent.parent.kind===249){const Y=CC(zze(Bf(o.parent.parent.expression,v)));return Y.flags&4456448?Oet(Y):Nn}if(Kc(o)&&o.parent.parent.kind===250){const Y=o.parent.parent;return I1e(Y)||Ge}if($_(o.parent))return Cd(o);const A=nu(o)&&!e_(o)||em(o)||I6e(o),R=f&&yG(o),B=wn(o);if(Tp(o))return B?bn(B)||B===Io?B:Sr:Qt?Io:Ge;if(B)return mb(B,A,R);if((Et||Cs(o))&&Kc(o)&&!$_(o.name)&&!(eit(o)&32)&&!(o.flags&33554432)){if(!(XV(o)&6)&&(!o.initializer||qP(o.initializer)))return Br;if(o.initializer&&yx(o.initializer))return Bh}if(Os(o)){const Y=o.parent;if(Y.kind===178&&DB(Y)){const Ue=Rh(sc(o.parent),177);if(Ue){const St=gb(Ue),Rt=S0t(Y);return Rt&&o===Rt?(re.assert(!Rt.type),La(St.thisParameter)):np(St)}}const pe=cgt(Y,o);if(pe)return pe;const Te=o.symbol.escapedName==="this"?gze(Y):tnt(o);if(Te)return mb(Te,!1,R)}if(g1(o)&&o.initializer){if(Cs(o)&&!Os(o)){const pe=z4(o,sc(o),pR(o));if(pe)return pe}const Y=vGe(o,ine(o,v));return mb(Y,A,R)}if(nu(o)&&(Et||Cs(o)))if(ev(o)){const Y=gi(o.parent.members,Ep),pe=Y.length?EC(o.symbol,Y):Cb(o)&128?aNe(o.symbol):void 0;return pe&&mb(pe,!0,R)}else{const Y=hD(o.parent),pe=Y?FI(o.symbol,Y):Cb(o)&128?aNe(o.symbol):void 0;return pe&&mb(pe,!0,R)}if(tx(o))return Ts;if($_(o.name))return xB(o.name,!1,!0)}function TV(o){if(o.valueDeclaration&&Ds(o.valueDeclaration)){const f=Ae(o);return f.isConstructorDeclaredProperty===void 0&&(f.isConstructorDeclaredProperty=!1,f.isConstructorDeclaredProperty=!!Zq(o)&&jr(o.declarations,v=>Ds(v)&&KNe(v)&&(v.left.kind!==212||Ox(v.left.argumentExpression))&&!GA(void 0,v,o,v))),f.isConstructorDeclaredProperty}return!1}function B4(o){const f=o.valueDeclaration;return f&&nu(f)&&!Zy(f)&&!f.initializer&&(Et||Cs(f))}function Zq(o){if(o.declarations)for(const f of o.declarations){const v=RT(f,!1,!1);if(v&&(v.kind===176||Ax(v)))return v}}function YF(o){const f=ts(o.declarations[0]),v=Ic(o.escapedName),A=o.declarations.every(B=>Cs(B)&&Kf(B)&&jE(B.expression)),R=A?he.createPropertyAccessExpression(he.createPropertyAccessExpression(he.createIdentifier("module"),he.createIdentifier("exports")),v):he.createPropertyAccessExpression(he.createIdentifier("exports"),v);return A&&kl(R.expression.expression,R.expression),kl(R.expression,R),kl(R,f),R.flowNode=f.endFlowNode,s8(R,Br,Ce)}function EC(o,f){const v=qf(o.escapedName,"__#")?he.createPrivateIdentifier(o.escapedName.split("@")[1]):Ic(o.escapedName);for(const A of f){const R=he.createPropertyAccessExpression(he.createThis(),v);kl(R.expression,R),kl(R,A),R.flowNode=A.returnFlowNode;const B=Cv(R,o);if(Et&&(B===Br||B===Bh)&&hn(o.valueDeclaration,N.Member_0_implicitly_has_an_1_type,ru(o),Co(B)),!Ex(B,n1e))return Jy(B)}}function FI(o,f){const v=qf(o.escapedName,"__#")?he.createPrivateIdentifier(o.escapedName.split("@")[1]):Ic(o.escapedName),A=he.createPropertyAccessExpression(he.createThis(),v);kl(A.expression,A),kl(A,f),A.flowNode=f.returnFlowNode;const R=Cv(A,o);return Et&&(R===Br||R===Bh)&&hn(o.valueDeclaration,N.Member_0_implicitly_has_an_1_type,ru(o),Co(R)),Ex(R,n1e)?void 0:Jy(R)}function Cv(o,f){const v=(f==null?void 0:f.valueDeclaration)&&(!B4(f)||Cb(f.valueDeclaration)&128)&&aNe(f)||Ce;return s8(o,Br,v)}function YR(o,f){const v=I9(o.valueDeclaration);if(v){const pe=Cs(v)?FM(v):void 0;return pe&&pe.typeExpression?Xl(pe.typeExpression):o.valueDeclaration&&z4(o.valueDeclaration,o,v)||d5(kv(v))}let A,R=!1,B=!1;if(TV(o)&&(A=FI(o,Zq(o))),!A){let pe;if(o.declarations){let Te;for(const Ue of o.declarations){const St=Ds(Ue)||xd(Ue)?Ue:Kf(Ue)?Ds(Ue.parent)?Ue.parent:Ue:void 0;if(!St)continue;const Rt=Kf(St)?XM(St):jy(St);(Rt===4||Ds(St)&&KNe(St,Rt))&&(vh(St)?R=!0:B=!0),xd(St)||(Te=GA(Te,St,o,Ue)),Te||(pe||(pe=[])).push(Ds(St)||xd(St)?eK(o,f,St,Rt):Tc)}A=Te}if(!A){if(!Nt(pe))return Sr;let Te=R&&o.declarations?J6(pe,o.declarations):void 0;if(B){const St=aNe(o);St&&((Te||(Te=[])).push(St),R=!0)}const Ue=gt(Te,St=>!!(St.flags&-98305))?Te:pe;A=dc(Ue)}}const Y=z2(mb(A,!1,B&&!R));return o.valueDeclaration&&Cs(o.valueDeclaration)&&lv(Y,pe=>!!(pe.flags&-98305))===Tc?(o8(o.valueDeclaration,Ge),Ge):Y}function z4(o,f,v){var A,R;if(!Cs(o)||!v||!el(v)||v.properties.length)return;const B=zd();for(;Ds(o)||Ac(o);){const Te=hx(o);(A=Te==null?void 0:Te.exports)!=null&&A.size&&R2(B,Te.exports),o=Ds(o)?o.parent:o.parent.parent}const Y=hx(o);(R=Y==null?void 0:Y.exports)!=null&&R.size&&R2(B,Y.exports);const pe=sy(f,B,Yn,Yn,Yn);return pe.objectFlags|=4096,pe}function GA(o,f,v,A){var R;const B=Zy(f.parent);if(B){const Y=z2(Xl(B));if(o)!Fn(o)&&!Fn(Y)&&!Xh(o,Y)&&Prt(void 0,o,A,Y);else return Y}if((R=v.parent)!=null&&R.valueDeclaration){const Y=Zy(v.parent.valueDeclaration);if(Y){const pe=Yd(Xl(Y),v.escapedName);if(pe)return AC(pe)}}return o}function eK(o,f,v,A){if(xd(v)){if(f)return La(f);const Y=kv(v.arguments[2]),pe=Xe(Y,"value");if(pe)return pe;const Te=Xe(Y,"get");if(Te){const St=$B(Te);if(St)return np(St)}const Ue=Xe(Y,"set");if(Ue){const St=$B(Ue);if(St)return aGe(St)}return Ge}if(Up(v.left,v.right))return Ge;const R=A===1&&(Ac(v.left)||Hm(v.left))&&(jE(v.left.expression)||xn(v.left.expression)&&P9(v.left.expression)),B=f?La(f):R?$S(kv(v.right)):d5(kv(v.right));if(B.flags&524288&&A===2&&o.escapedName==="export="){const Y=Gh(B),pe=zd();oie(Y.members,pe);const Te=pe.size;f&&!f.exports&&(f.exports=zd()),(f||o).exports.forEach((St,Rt)=>{var rn;const Sn=pe.get(Rt);if(Sn&&Sn!==St&&!(St.flags&2097152))if(St.flags&111551&&Sn.flags&111551){if(St.valueDeclaration&&Sn.valueDeclaration&&ts(St.valueDeclaration)!==ts(Sn.valueDeclaration)){const Ai=Ic(St.escapedName),So=((rn=to(Sn.valueDeclaration,mp))==null?void 0:rn.name)||Sn.valueDeclaration;ml(hn(St.valueDeclaration,N.Duplicate_identifier_0,Ai),Bs(So,N._0_was_also_declared_here,Ai)),ml(hn(So,N.Duplicate_identifier_0,Ai),Bs(St.valueDeclaration,N._0_was_also_declared_here,Ai))}const xr=tp(St.flags|Sn.flags,Rt);xr.links.type=dc([La(St),La(Sn)]),xr.valueDeclaration=Sn.valueDeclaration,xr.declarations=Hi(Sn.declarations,St.declarations),pe.set(Rt,xr)}else pe.set(Rt,Hv(St,Sn));else pe.set(Rt,St)});const Ue=sy(Te!==pe.size?void 0:Y.symbol,pe,Y.callSignatures,Y.constructSignatures,Y.indexInfos);if(Te===pe.size&&(B.aliasSymbol&&(Ue.aliasSymbol=B.aliasSymbol,Ue.aliasTypeArguments=B.aliasTypeArguments),ji(B)&4)){Ue.aliasSymbol=B.symbol;const St=ch(B);Ue.aliasTypeArguments=Nt(St)?St:void 0}return Ue.objectFlags|=ji(B)&4096,Ue.symbol&&Ue.symbol.flags&32&&B===F1(Ue.symbol)&&(Ue.objectFlags|=16777216),Ue}return kbe(B)?(o8(v,Qm),Qm):B}function Up(o,f){return Ac(o)&&o.expression.kind===110&&cF(f,v=>Dv(o,v))}function vh(o){const f=RT(o,!1,!1);return f.kind===176||f.kind===262||f.kind===218&&!VL(f.parent)}function J6(o,f){return re.assert(o.length===f.length),o.filter((v,A)=>{const R=f[A],B=Ds(R)?R:Ds(R.parent)?R.parent:void 0;return B&&vh(B)})}function xC(o,f,v){if(o.initializer){const A=$_(o.name)?xB(o.name,!0,!1):Io;return mb(vGe(o,ine(o,0,A)))}return $_(o.name)?xB(o.name,f,v):(v&&!Tt(o)&&o8(o,Ge),f?go:Ge)}function F2(o,f,v){const A=zd();let R,B=131200;Ot(o.elements,pe=>{const Te=pe.propertyName||pe.name;if(pe.dotDotDotToken){R=bx(Nn,Ge,!1);return}const Ue=SD(Te);if(!yv(Ue)){B|=512;return}const St=vv(Ue),Rt=4|(pe.initializer?16777216:0),rn=tp(Rt,St);rn.links.type=xC(pe,f,v),rn.links.bindingElement=pe,A.set(rn.escapedName,rn)});const Y=sy(void 0,A,Yn,Yn,R?[R]:Yn);return Y.objectFlags|=B,f&&(Y.pattern=o,Y.objectFlags|=131072),Y}function XP(o,f,v){const A=o.elements,R=Yf(A),B=R&&R.kind===208&&R.dotDotDotToken?R:void 0;if(A.length===0||A.length===1&&B)return dt>=2?vte(Ge):Qm;const Y=Vn(A,St=>cb(St)?Ge:xC(St,f,v)),pe=Ms(A,St=>!(St===B||cb(St)||wO(St)),A.length-1)+1,Te=Vn(A,(St,Rt)=>St===B?4:Rt>=pe?2:1);let Ue=TD(Y,Te);return f&&(Ue=bD(Ue),Ue.pattern=o,Ue.objectFlags|=131072),Ue}function xB(o,f=!1,v=!1){return o.kind===206?F2(o,f,v):XP(o,f,v)}function j(o,f){return De(KP(o,!0,0),o,f)}function se(o){const f=hx(o),v=PPe(!1);return v&&f&&f===v}function De(o,f,v){return o?(o.flags&4096&&se(f.parent)&&(o=_K(f)),v&&lfe(f,o),o.flags&8192&&(sa(f)||!f.type)&&o.symbol!==sc(f)&&(o=hc),z2(o)):(o=Os(f)&&f.dotDotDotToken?Qm:Ge,v&&(Tt(f)||o8(f,o)),o)}function Tt(o){const f=vA(o),v=f.kind===169?f.parent:f;return sne(v)}function wn(o){const f=Zy(o);if(f)return Xl(f)}function Vi(o){let f=o.valueDeclaration;return f?(sa(f)&&(f=OU(f)),Os(f)?efe(f.parent):!1):!1}function Us(o){const f=Ae(o);if(!f.type){const v=Hf(o);return!f.type&&!Vi(o)&&(f.type=v),v}return f.type}function Hf(o){if(o.flags&4194304)return ute(o);if(o===Vr)return Ge;if(o.flags&134217728&&o.valueDeclaration){const A=sc(ts(o.valueDeclaration)),R=tp(A.flags,"exports");R.declarations=A.declarations?A.declarations.slice():[],R.parent=o,R.links.target=A,A.valueDeclaration&&(R.valueDeclaration=A.valueDeclaration),A.members&&(R.members=new Map(A.members)),A.exports&&(R.exports=new Map(A.exports));const B=zd();return B.set("exports",R),sy(o,B,Yn,Yn,Yn)}re.assertIsDefined(o.valueDeclaration);const f=o.valueDeclaration;if(Nu(f)&&Rx(f))return f.statements.length?z2(d5(Bf(f.statements[0].expression))):M_;if(GM(f))return hO(o);if(!OI(o,0))return o.flags&512&&!(o.flags&67108864)?tK(o):AB(o);let v;if(f.kind===277)v=De(wn(f)||kv(f.expression),f);else if(Ds(f)||Cs(f)&&(xd(f)||(Ac(f)||jL(f))&&Ds(f.parent)))v=YR(o);else if(Ac(f)||Hm(f)||xn(f)||Cm(f)||S1(f)||Ih(f)||mg(f)||tm(f)&&!iC(f)||pg(f)||Nu(f)){if(o.flags&9136)return tK(o);v=Ds(f.parent)?YR(o):wn(f)||Ge}else if(tl(f))v=wn(f)||ort(f);else if(tx(f))v=wn(f)||Nze(f);else if(XE(f))v=wn(f)||MK(f.name,0);else if(iC(f))v=wn(f)||bGe(f,0);else if(Os(f)||nu(f)||em(f)||Kc(f)||sa(f)||Uz(f))v=j(f,!0);else if(xP(f))v=tK(o);else if(pI(f))v=yD(o);else return re.fail("Unhandled declaration kind! "+re.formatSyntaxKind(f.kind)+" for "+re.formatSymbol(o));return Bk()?v:o.flags&512&&!(o.flags&67108864)?tK(o):AB(o)}function ng(o){if(o)switch(o.kind){case 177:return kS(o);case 178:return Kb(o);case 172:return re.assert(e_(o)),Zy(o)}}function VS(o){const f=ng(o);return f&&Xl(f)}function G4(o){const f=S0t(o);return f&&f.symbol}function j4(o){return J4(gb(o))}function hO(o){const f=Ae(o);if(!f.type){if(!OI(o,0))return Sr;const v=Rh(o,177),A=Rh(o,178),R=to(Rh(o,172),xb);let B=v&&Cs(v)&&zA(v)||VS(v)||VS(A)||VS(R)||v&&v.body&&Awe(v)||R&&R.initializer&&j(R,!0);B||(A&&!sne(A)?yh(Et,A,N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ru(o)):v&&!sne(v)?yh(Et,v,N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ru(o)):R&&!sne(R)&&yh(Et,R,N.Member_0_implicitly_has_an_1_type,ru(o),"any"),B=Ge),Bk()||(ng(v)?hn(v,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)):ng(A)||ng(R)?hn(A,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)):v&&Et&&hn(v,N._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,ru(o)),B=Ge),f.type=B}return f.type}function lPe(o){const f=Ae(o);if(!f.writeType){if(!OI(o,8))return Sr;const v=Rh(o,178)??to(Rh(o,172),xb);let A=VS(v);Bk()||(ng(v)&&hn(v,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)),A=Ge),f.writeType=A||hO(o)}return f.writeType}function WI(o){const f=cv(F1(o));return f.flags&8650752?f:f.flags&2097152?lr(f.types,v=>!!(v.flags&8650752)):void 0}function tK(o){let f=Ae(o);const v=f;if(!f.type){const A=o.valueDeclaration&&vwe(o.valueDeclaration,!1);if(A){const R=ywe(o,A);R&&(o=R,f=R.links)}v.type=f.type=W0e(o)}return f.type}function W0e(o){const f=o.valueDeclaration;if(o.flags&1536&&ZU(o))return Ge;if(f&&(f.kind===226||Kf(f)&&f.parent.kind===226))return YR(o);if(o.flags&512&&f&&Nu(f)&&f.commonJsModuleIndicator){const A=hS(o);if(A!==o){if(!OI(o,0))return Sr;const R=jp(o.exports.get("export=")),B=YR(R,R===A?void 0:A);return Bk()?B:AB(o)}}const v=tA(16,o);if(o.flags&32){const A=WI(o);return A?vp([v,A]):v}else return Ke&&o.flags&16777216?iL(v,!0):v}function yD(o){const f=Ae(o);return f.type||(f.type=pWe(o))}function Due(o){const f=Ae(o);if(!f.type){if(!OI(o,0))return Sr;const v=C0(o),A=o.declarations&&Yx(UT(o),!0),R=Yr(A==null?void 0:A.declarations,B=>my(B)?wn(B):void 0);if(f.type=A!=null&&A.declarations&&$T(A.declarations)&&o.declarations.length?YF(A):$T(o.declarations)?Br:R||(pT(v)&111551?La(v):Sr),!Bk())return AB(A??o),f.type=Sr}return f.type}function B0e(o){const f=Ae(o);return f.type||(f.type=zu(La(f.target),f.mapper))}function fte(o){const f=Ae(o);return f.writeType||(f.writeType=zu(QF(f.target),f.mapper))}function AB(o){const f=o.valueDeclaration;if(f){if(Zy(f))return hn(o.valueDeclaration,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)),Sr;Et&&(f.kind!==169||f.initializer)&&hn(o.valueDeclaration,N._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ru(o))}else if(o.flags&2097152){const v=UT(o);v&&hn(v,N.Circular_definition_of_import_alias_0,ru(o))}return Ge}function z0e(o){const f=Ae(o);return f.type||(re.assertIsDefined(f.deferralParent),re.assertIsDefined(f.deferralConstituents),f.type=f.deferralParent.flags&1048576?dc(f.deferralConstituents):vp(f.deferralConstituents)),f.type}function SV(o){const f=Ae(o);return!f.writeType&&f.deferralWriteConstituents&&(re.assertIsDefined(f.deferralParent),re.assertIsDefined(f.deferralConstituents),f.writeType=f.deferralParent.flags&1048576?dc(f.deferralWriteConstituents):vp(f.deferralWriteConstituents)),f.writeType}function QF(o){const f=I_(o);return o.flags&4?f&2?f&65536?SV(o)||z0e(o):o.links.writeType||o.links.type:r8(La(o),!!(o.flags&16777216)):o.flags&98304?f&1?fte(o):lPe(o):La(o)}function La(o){const f=I_(o);return f&65536?z0e(o):f&1?B0e(o):f&262144?tgt(o):f&8192?rht(o):o.flags&7?Us(o):o.flags&9136?tK(o):o.flags&8?yD(o):o.flags&98304?hO(o):o.flags&2097152?Due(o):Sr}function AC(o){return r8(La(o),!!(o.flags&16777216))}function hw(o,f){return o!==void 0&&f!==void 0&&(ji(o)&4)!==0&&o.target===f}function QR(o){return ji(o)&4?o.target:o}function jA(o,f){return v(o);function v(A){if(ji(A)&7){const R=QR(A);return R===f||gt(l0(R),v)}else if(A.flags&2097152)return gt(A.types,v);return!1}}function yO(o,f){for(const v of f)o=ST(o,e5(sc(v)));return o}function EV(o,f){for(;;){if(o=o.parent,o&&Ds(o)){const v=jy(o);if(v===6||v===3){const A=sc(o.left);A&&A.parent&&!Ua(A.parent.valueDeclaration,R=>o===R)&&(o=A.parent.valueDeclaration)}}if(!o)return;switch(o.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 A=EV(o,f);if(o.kind===200)return ur(A,e5(sc(o.typeParameter)));if(o.kind===194)return Hi(A,Get(o));const R=yO(A,Hb(o)),B=f&&(o.kind===263||o.kind===231||o.kind===264||Ax(o))&&F1(sc(o)).thisType;return B?ur(R,B):R}case 348:const v=$8(o);v&&(o=v.valueDeclaration);break;case 327:{const A=EV(o,f);return o.tags?yO(A,ea(o.tags,R=>CA(R)?R.typeParameters:void 0)):A}}}}function Tm(o){var f;const v=o.flags&32||o.flags&16?o.valueDeclaration:(f=o.declarations)==null?void 0:f.find(A=>{if(A.kind===264)return!0;if(A.kind!==260)return!1;const R=A.initializer;return!!R&&(R.kind===218||R.kind===219)});return re.assert(!!v,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),EV(v)}function Fo(o){if(!o.declarations)return;let f;for(const v of o.declarations)(v.kind===264||v.kind===263||v.kind===231||Ax(v)||L9(v))&&(f=yO(f,Hb(v)));return f}function cl(o){return Hi(Tm(o),Fo(o))}function Mc(o){const f=ed(o,1);if(f.length===1){const v=f[0];if(!v.typeParameters&&v.parameters.length===1&&A1(v)){const A=d1e(v.parameters[0]);return bn(A)||LV(A)===Ge}}return!1}function Du(o){if(ed(o,1).length>0)return!0;if(o.flags&8650752){const f=US(o);return!!f&&Mc(f)}return!1}function Ru(o){const f=RS(o.symbol);return f&&YC(f)}function _m(o,f,v){const A=Nt(f),R=Cs(v);return gi(ed(o,1),B=>(R||A>=HS(B.typeParameters))&&A<=Nt(B.typeParameters))}function kg(o,f,v){const A=_m(o,f,v),R=Vn(f,Xl);return Ol(A,B=>gt(B.typeParameters)?QP(B,R,Cs(v)):B)}function cv(o){if(!o.resolvedBaseConstructorType){const f=RS(o.symbol),v=f&&YC(f),A=Ru(o);if(!A)return o.resolvedBaseConstructorType=Ce;if(!OI(o,1))return Sr;const R=Bf(A.expression);if(v&&A!==v&&(re.assert(!v.typeArguments),Bf(v.expression)),R.flags&2621440&&Gh(R),!Bk())return hn(o.symbol.valueDeclaration,N._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ru(o.symbol)),o.resolvedBaseConstructorType=Sr;if(!(R.flags&1)&&R!==Jn&&!Du(R)){const B=hn(A.expression,N.Type_0_is_not_a_constructor_function_type,Co(R));if(R.flags&262144){const Y=DV(R);let pe=Io;if(Y){const Te=ed(Y,1);Te[0]&&(pe=np(Te[0]))}R.symbol.declarations&&ml(B,Bs(R.symbol.declarations[0],N.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ru(R.symbol),Co(pe)))}return o.resolvedBaseConstructorType=Sr}o.resolvedBaseConstructorType=R}return o.resolvedBaseConstructorType}function VA(o){let f=Yn;if(o.symbol.declarations)for(const v of o.symbol.declarations){const A=ZM(v);if(A)for(const R of A){const B=Xl(R);Fn(B)||(f===Yn?f=[B]:f.push(B))}}return f}function vD(o,f){hn(o,N.Type_0_recursively_references_itself_as_a_base_type,Co(f,void 0,2))}function l0(o){if(!o.baseTypesResolved){if(OI(o,7)&&(o.objectFlags&8?o.resolvedBaseTypes=[yw(o)]:o.symbol.flags&96?(o.symbol.flags&32&&nK(o),o.symbol.flags&64&&Vmt(o)):re.fail("type must be class or interface"),!Bk()&&o.symbol.declarations))for(const f of o.symbol.declarations)(f.kind===263||f.kind===264)&&vD(f,o);o.baseTypesResolved=!0}return o.resolvedBaseTypes}function yw(o){const f=Ol(o.typeParameters,(v,A)=>o.elementFlags[A]&8?u0(v,Lr):v);return hT(dc(f||Yn),o.readonly)}function nK(o){o.resolvedBaseTypes=vG;const f=yS(cv(o));if(!(f.flags&2621441))return o.resolvedBaseTypes=Yn;const v=Ru(o);let A;const R=f.symbol?sh(f.symbol):void 0;if(f.symbol&&f.symbol.flags&32&&xV(R))A=uet(v,f.symbol);else if(f.flags&1)A=f;else{const Y=kg(f,v.typeArguments,v);if(!Y.length)return hn(v.expression,N.No_base_constructor_has_the_specified_number_of_type_arguments),o.resolvedBaseTypes=Yn;A=np(Y[0])}if(Fn(A))return o.resolvedBaseTypes=Yn;const B=zI(A);if(!ZF(B)){const Y=SPe(void 0,A),pe=Es(Y,N.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Co(B));return j_.add(wN(ts(v.expression),v.expression,pe)),o.resolvedBaseTypes=Yn}return o===B||jA(B,o)?(hn(o.symbol.valueDeclaration,N.Type_0_recursively_references_itself_as_a_base_type,Co(o,void 0,2)),o.resolvedBaseTypes=Yn):(o.resolvedBaseTypes===vG&&(o.members=void 0),o.resolvedBaseTypes=[B])}function xV(o){const f=o.outerTypeParameters;if(f){const v=f.length-1,A=ch(o);return f[v].symbol!==A[v].symbol}return!0}function ZF(o){if(o.flags&262144){const f=US(o);if(f)return ZF(f)}return!!(o.flags&67633153&&!Fb(o)||o.flags&2097152&&jr(o.types,ZF))}function Vmt(o){if(o.resolvedBaseTypes=o.resolvedBaseTypes||Yn,o.symbol.declarations){for(const f of o.symbol.declarations)if(f.kind===264&&gH(f))for(const v of gH(f)){const A=zI(Xl(v));Fn(A)||(ZF(A)?o!==A&&!jA(A,o)?o.resolvedBaseTypes===Yn?o.resolvedBaseTypes=[A]:o.resolvedBaseTypes.push(A):vD(f,o):hn(v,N.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function uPe(o){if(!o.declarations)return!0;for(const f of o.declarations)if(f.kind===264){if(f.flags&256)return!1;const v=gH(f);if(v){for(const A of v)if(Tg(A.expression)){const R=Qg(A.expression,788968,!0);if(!R||!(R.flags&64)||F1(R).thisType)return!1}}}return!0}function F1(o){let f=Ae(o);const v=f;if(!f.declaredType){const A=o.flags&32?1:2,R=ywe(o,o.valueDeclaration&&Ayt(o.valueDeclaration));R&&(o=R,f=R.links);const B=v.declaredType=f.declaredType=tA(A,o),Y=Tm(o),pe=Fo(o);(Y||pe||A===1||!uPe(o))&&(B.objectFlags|=4,B.typeParameters=Hi(Y,pe),B.outerTypeParameters=Y,B.localTypeParameters=pe,B.instantiations=new Map,B.instantiations.set(B2(B.typeParameters),B),B.target=B,B.resolvedTypeArguments=B.typeParameters,B.thisType=c0(o),B.thisType.isThisType=!0,B.thisType.constraint=B)}return f.declaredType}function dWe(o){var f;const v=Ae(o);if(!v.declaredType){if(!OI(o,2))return Sr;const A=re.checkDefined((f=o.declarations)==null?void 0:f.find(L9),"Type alias symbol with no valid declaration found"),R=b2(A)?A.typeExpression:A.type;let B=R?Xl(R):Sr;if(Bk()){const Y=Fo(o);Y&&(v.typeParameters=Y,v.instantiations=new Map,v.instantiations.set(B2(Y),B))}else B=Sr,A.kind===347?hn(A.typeExpression.type,N.Type_alias_0_circularly_references_itself,ru(o)):hn(mp(A)&&A.name||A,N.Type_alias_0_circularly_references_itself,ru(o));v.declaredType=B}return v.declaredType}function fPe(o){return o.flags&1056&&o.symbol.flags&8?sh(xE(o.symbol)):o}function _Pe(o){const f=Ae(o);if(!f.declaredType){const v=[];if(o.declarations){for(const R of o.declarations)if(R.kind===266){for(const B of R.members)if(DB(B)){const Y=sc(B),pe=Wg(B),Te=wV(pe!==void 0?UPe(pe,$d(o),Y):Iue(Y));Ae(Y).declaredType=Te,v.push($S(Te))}}}const A=v.length?dc(v,1,o,void 0):Iue(o);A.flags&1048576&&(A.flags|=1024,A.symbol=o),f.declaredType=A}return f.declaredType}function Iue(o){const f=L1(32,o),v=L1(32,o);return f.regularType=f,f.freshType=v,v.regularType=f,v.freshType=v,f}function pWe(o){const f=Ae(o);if(!f.declaredType){const v=_Pe(xE(o));f.declaredType||(f.declaredType=v)}return f.declaredType}function e5(o){const f=Ae(o);return f.declaredType||(f.declaredType=c0(o))}function mWe(o){const f=Ae(o);return f.declaredType||(f.declaredType=sh(C0(o)))}function sh(o){return G0e(o)||Sr}function G0e(o){if(o.flags&96)return F1(o);if(o.flags&524288)return dWe(o);if(o.flags&262144)return e5(o);if(o.flags&384)return _Pe(o);if(o.flags&8)return pWe(o);if(o.flags&2097152)return mWe(o)}function t5(o){switch(o.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 t5(o.elementType);case 183:return!o.typeArguments||o.typeArguments.every(t5)}return!1}function Jv(o){const f=a9(o);return!f||t5(f)}function MZe(o){const f=Zy(o);return f?t5(f):!J2(o)}function Umt(o){const f=kS(o),v=Hb(o);return(o.kind===176||!!f&&t5(f))&&o.parameters.every(MZe)&&v.every(Jv)}function LZe(o){if(o.declarations&&o.declarations.length===1){const f=o.declarations[0];if(f)switch(f.kind){case 172:case 171:return MZe(f);case 174:case 173:case 176:case 177:case 178:return Umt(f)}}return!1}function gWe(o,f,v){const A=zd();for(const R of o)A.set(R.escapedName,v&&LZe(R)?R:vBe(R,f));return A}function hWe(o,f){for(const v of f){if(yWe(v))continue;const A=o.get(v.escapedName);(!A||A.valueDeclaration&&Ds(A.valueDeclaration)&&!TV(A)&&!nG(A.valueDeclaration))&&(o.set(v.escapedName,v),o.set(v.escapedName,v))}}function yWe(o){return!!o.valueDeclaration&&IT(o.valueDeclaration)&&pd(o.valueDeclaration)}function vWe(o){if(!o.declaredProperties){const f=o.symbol,v=V4(f);o.declaredProperties=dO(v),o.declaredCallSignatures=Yn,o.declaredConstructSignatures=Yn,o.declaredIndexInfos=Yn,o.declaredCallSignatures=K6(v.get("__call")),o.declaredConstructSignatures=K6(v.get("__new")),o.declaredIndexInfos=X0e(f)}return o}function dPe(o){if(!Qf(o)&&!Hm(o))return!1;const f=Qf(o)?o.expression:o.argumentExpression;return Tg(f)&&yv(Qf(o)?Jk(o):kv(f))}function CB(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)===64}function kue(o){const f=i_(o);return!!f&&dPe(f)}function DB(o){return!tI(o)||kue(o)}function Hmt(o){return L0(o)&&!dPe(o)}function pPe(o,f,v){re.assert(!!(I_(o)&4096),"Expected a late-bound symbol."),o.flags|=v,Ae(f.symbol).lateSymbol=o,o.declarations?f.symbol.isReplaceableByMethod||o.declarations.push(f):o.declarations=[f],v&111551&&(!o.valueDeclaration||o.valueDeclaration.kind!==f.kind)&&(o.valueDeclaration=f)}function OZe(o,f,v,A){re.assert(!!A.symbol,"The member is expected to have a symbol.");const R=rt(A);if(!R.resolvedSymbol){R.resolvedSymbol=A.symbol;const B=Ds(A)?A.left:A.name,Y=Hm(B)?kv(B.argumentExpression):Jk(B);if(yv(Y)){const pe=vv(Y),Te=A.symbol.flags;let Ue=v.get(pe);Ue||v.set(pe,Ue=tp(0,pe,4096));const St=f&&f.get(pe);if(!(o.flags&32)&&(Ue.flags&UP(Te)||St)){const Rt=St?Hi(St.declarations,Ue.declarations):Ue.declarations,rn=!(Y.flags&8192)&&Ic(pe)||hm(B);Ot(Rt,Sn=>hn(i_(Sn)||Sn,N.Property_0_was_also_declared_here,rn)),hn(B||A,N.Duplicate_property_0,rn),Ue=tp(0,pe,4096)}return Ue.links.nameType=Y,pPe(Ue,A,Te),Ue.parent?re.assert(Ue.parent===o,"Existing symbol parent should match new one"):Ue.parent=o,R.resolvedSymbol=Ue}}return R.resolvedSymbol}function bWe(o,f){var v,A,R;const B=Ae(o);if(!B[f]){const Y=f==="resolvedExports",pe=Y?o.flags&1536?vV(o).exports:o.exports:o.members;B[f]=pe||Fe;const Te=zd();for(const Rt of o.declarations||Yn){const rn=yie(Rt);if(rn)for(const Sn of rn)Y===ev(Sn)&&kue(Sn)&&OZe(o,pe,Te,Sn)}const Ue=(((v=o.valueDeclaration)==null?void 0:v.kind)===219||((A=o.valueDeclaration)==null?void 0:A.kind)===218)&&((R=hx(o.valueDeclaration.parent))==null?void 0:R.assignmentDeclarationMembers)||o.assignmentDeclarationMembers;if(Ue){const Rt=oc(Ue.values());for(const rn of Rt){const Sn=jy(rn),xr=Sn===3||Ds(rn)&&KNe(rn,Sn)||Sn===9||Sn===6;Y===!xr&&kue(rn)&&OZe(o,pe,Te,rn)}}let St=w2(pe,Te);if(o.flags&33554432&&B.cjsExportMerged&&o.declarations)for(const Rt of o.declarations){const rn=Ae(Rt.symbol)[f];if(!St){St=rn;continue}rn&&rn.forEach((Sn,xr)=>{const Ai=St.get(xr);if(!Ai)St.set(xr,Sn);else{if(Ai===Sn)return;St.set(xr,Hv(Ai,Sn))}})}B[f]=St||Fe}return B[f]}function V4(o){return o.flags&6256?bWe(o,"resolvedMembers"):o.members||Fe}function Pue(o){if(o.flags&106500&&o.escapedName==="__computed"){const f=Ae(o);if(!f.lateSymbol&>(o.declarations,kue)){const v=jp(o.parent);gt(o.declarations,ev)?L2(v):V4(v)}return f.lateSymbol||(f.lateSymbol=o)}return o}function vx(o,f,v){if(ji(o)&4){const A=o.target,R=ch(o);return Nt(A.typeParameters)===Nt(R)?qv(A,Hi(R,[f||A.thisType])):o}else if(o.flags&2097152){const A=Ol(o.types,R=>vx(R,f,v));return A!==o.types?vp(A):o}return v?yS(o):o}function FZe(o,f,v,A){let R,B,Y,pe,Te;yz(v,A,0,v.length)?(B=f.symbol?V4(f.symbol):zd(f.declaredProperties),Y=f.declaredCallSignatures,pe=f.declaredConstructSignatures,Te=f.declaredIndexInfos):(R=X0(v,A),B=gWe(f.declaredProperties,R,v.length===1),Y=JPe(f.declaredCallSignatures,R),pe=JPe(f.declaredConstructSignatures,R),Te=$Pe(f.declaredIndexInfos,R));const Ue=l0(f);if(Ue.length){if(f.symbol&&B===V4(f.symbol)){const Rt=zd();for(const rn of B.values())rn.flags&262144||Rt.set(rn.escapedName,rn);B=Rt}Ty(o,B,Y,pe,Te);const St=Yf(A);for(const Rt of Ue){const rn=St?vx(zu(Rt,R),St):Rt;hWe(B,zm(rn)),Y=Hi(Y,ed(rn,0)),pe=Hi(pe,ed(rn,1));const Sn=rn!==Ge?JT(rn):[bx(Nn,Ge,!1)];Te=Hi(Te,gi(Sn,xr=>!NWe(Te,xr.keyType)))}}Ty(o,B,Y,pe,Te)}function Jmt(o){FZe(o,vWe(o),Yn,Yn)}function $mt(o){const f=vWe(o.target),v=Hi(f.typeParameters,[f.thisType]),A=ch(o),R=A.length===v.length?A:Hi(A,[o]);FZe(o,f,v,R)}function vw(o,f,v,A,R,B,Y,pe){const Te=new P($i,pe);return Te.declaration=o,Te.typeParameters=f,Te.parameters=A,Te.thisParameter=v,Te.resolvedReturnType=R,Te.resolvedTypePredicate=B,Te.minArgumentCount=Y,Te.resolvedMinArgumentCount=void 0,Te.target=void 0,Te.mapper=void 0,Te.compositeSignatures=void 0,Te.compositeKind=void 0,Te}function _te(o){const f=vw(o.declaration,o.typeParameters,o.thisParameter,o.parameters,void 0,void 0,o.minArgumentCount,o.flags&167);return f.target=o.target,f.mapper=o.mapper,f.compositeSignatures=o.compositeSignatures,f.compositeKind=o.compositeKind,f}function WZe(o,f){const v=_te(o);return v.compositeSignatures=f,v.compositeKind=1048576,v.target=void 0,v.mapper=void 0,v}function BZe(o,f){if((o.flags&24)===f)return o;o.optionalCallSignatureCache||(o.optionalCallSignatureCache={});const v=f===8?"inner":"outer";return o.optionalCallSignatureCache[v]||(o.optionalCallSignatureCache[v]=qmt(o,f))}function qmt(o,f){re.assert(f===8||f===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const v=_te(o);return v.flags|=f,v}function zZe(o,f){if(A1(o)){const R=o.parameters.length-1,B=o.parameters[R].escapedName,Y=La(o.parameters[R]);if(Dp(Y))return[v(Y,R,B)];if(!f&&Y.flags&1048576&&jr(Y.types,Dp))return Vn(Y.types,pe=>v(pe,R,B))}return[o.parameters];function v(R,B,Y){const pe=ch(R),Te=A(R,Y),Ue=Vn(pe,(St,Rt)=>{const rn=Te&&Te[Rt]?Te[Rt]:kK(o,B+Rt,R),Sn=R.target.elementFlags[Rt],xr=Sn&12?32768:Sn&2?16384:0,Ai=tp(1,rn,xr);return Ai.links.type=Sn&4?hT(St):St,Ai});return Hi(o.parameters.slice(0,B),Ue)}function A(R,B){const Y=new Map;return Vn(R.target.labeledElementDeclarations,(pe,Te)=>{const Ue=Ewe(pe,Te,B),St=Y.get(Ue);return St===void 0?(Y.set(Ue,1),Ue):(Y.set(Ue,St+1),`${Ue}_${St}`)})}}function TWe(o){const f=cv(o),v=ed(f,1),A=RS(o.symbol),R=!!A&&ul(A,64);if(v.length===0)return[vw(void 0,o.localTypeParameters,void 0,Yn,o,void 0,0,R?4:0)];const B=Ru(o),Y=Cs(B),pe=Gue(B),Te=Nt(pe),Ue=[];for(const St of v){const Rt=HS(St.typeParameters),rn=Nt(St.typeParameters);if(Y||Te>=Rt&&Te<=rn){const Sn=rn?CPe(St,Gk(pe,St.typeParameters,Rt,Y)):_te(St);Sn.typeParameters=o.localTypeParameters,Sn.resolvedReturnType=o,Sn.flags=R?Sn.flags|4:Sn.flags&-5,Ue.push(Sn)}}return Ue}function SWe(o,f,v,A,R){for(const B of o)if(MV(B,f,v,A,R,v?Wgt:fM))return B}function Kmt(o,f,v){if(f.typeParameters){if(v>0)return;for(let R=1;R1&&(v=v===void 0?A:-1);for(const R of o[A])if(!f||!SWe(f,R,!1,!1,!0)){const B=Kmt(o,R,A);if(B){let Y=R;if(B.length>1){let pe=R.thisParameter;const Te=Ot(B,Ue=>Ue.thisParameter);if(Te){const Ue=vp(Qo(B,St=>St.thisParameter&&La(St.thisParameter)));pe=i8(Te,Ue)}Y=WZe(R,B),Y.thisParameter=pe}(f||(f=[])).push(Y)}}}if(!Nt(f)&&v!==-1){const A=o[v!==void 0?v:0];let R=A.slice();for(const B of o)if(B!==A){const Y=B[0];if(re.assert(!!Y,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),R=Y.typeParameters&>(R,pe=>!!pe.typeParameters&&!GZe(Y.typeParameters,pe.typeParameters))?void 0:Vn(R,pe=>Qmt(pe,Y)),!R)break}f=R}return f||Yn}function GZe(o,f){if(Nt(o)!==Nt(f))return!1;if(!o||!f)return!0;const v=X0(f,o);for(let A=0;A=R?o:f,Y=B===o?f:o,pe=B===o?A:R,Te=$k(o)||$k(f),Ue=Te&&!$k(B),St=new Array(pe+(Ue?1:0));for(let Rt=0;Rt=KA(B)&&Rt>=KA(Y),la=Rt>=A?void 0:kK(o,Rt),Zs=Rt>=R?void 0:kK(f,Rt),ba=la===Zs?la:la?Zs?void 0:la:Zs,mo=tp(1|(So&&!Ai?16777216:0),ba||`arg${Rt}`,Ai?32768:So?16384:0);mo.links.type=Ai?hT(xr):xr,St[Rt]=mo}if(Ue){const Rt=tp(1,"args",32768);Rt.links.type=hT(XI(Y,pe)),Y===f&&(Rt.links.type=zu(Rt.links.type,v)),St[pe]=Rt}return St}function Qmt(o,f){const v=o.typeParameters||f.typeParameters;let A;o.typeParameters&&f.typeParameters&&(A=X0(f.typeParameters,o.typeParameters));const R=o.declaration,B=Ymt(o,f,A),Y=Xmt(o.thisParameter,f.thisParameter,A),pe=Math.max(o.minArgumentCount,f.minArgumentCount),Te=vw(R,v,Y,B,void 0,void 0,pe,(o.flags|f.flags)&167);return Te.compositeKind=1048576,Te.compositeSignatures=Hi(o.compositeKind!==2097152&&o.compositeSignatures||[o],[f]),A&&(Te.mapper=o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures?lM(o.mapper,A):A),Te}function jZe(o){const f=JT(o[0]);if(f){const v=[];for(const A of f){const R=A.keyType;jr(o,B=>!!Tw(B,R))&&v.push(bx(R,dc(Vn(o,B=>vO(B,R))),gt(o,B=>Tw(B,R).isReadonly)))}return v}return Yn}function Zmt(o){const f=EWe(Vn(o.types,R=>R===ci?[$o]:ed(R,0))),v=EWe(Vn(o.types,R=>ed(R,1))),A=jZe(o.types);Ty(o,Fe,f,v,A)}function j0e(o,f){return o?f?vp([o,f]):o:f}function VZe(o){const f=dp(o,A=>ed(A,1).length>0),v=Vn(o,Mc);if(f>0&&f===dp(v,A=>A)){const A=v.indexOf(!0);v[A]=!1}return v}function Nue(o,f,v,A){const R=[];for(let B=0;Bpe);for(let pe=0;pe0&&(Ue=Vn(Ue,St=>{const Rt=_te(St);return Rt.resolvedReturnType=Nue(np(St),R,B,pe),Rt})),v=xWe(v,Ue)}f=xWe(f,ed(Te,0)),A=Em(JT(Te),(Ue,St)=>W1(Ue,St,!1),A)}Ty(o,Fe,f||Yn,v||Yn,A||Yn)}function xWe(o,f){for(const v of f)(!o||jr(o,A=>!MV(A,v,!1,!1,!1,fM)))&&(o=ur(o,v));return o}function W1(o,f,v){if(o)for(let A=0;A{var Te;!(pe.flags&418)&&!(pe.flags&512&&((Te=pe.declarations)!=null&&Te.length)&&jr(pe.declarations,dh))&&Y.set(pe.escapedName,pe)}),v=Y}let R;if(Ty(o,v,Yn,Yn,Yn),f.flags&32){const Y=F1(f),pe=cv(Y);pe.flags&11272192?(v=zd(Xq(v)),hWe(v,zm(pe))):pe===Ge&&(R=bx(Nn,Ge,!1))}const B=bO(v);if(B?A=Y0e(B):(R&&(A=ur(A,R)),f.flags&384&&(sh(f).flags&32||gt(o.properties,Y=>!!(La(Y).flags&296)))&&(A=ur(A,Fs))),Ty(o,v,Yn,Yn,A||Yn),f.flags&8208&&(o.callSignatures=K6(f)),f.flags&32){const Y=F1(f);let pe=f.members?K6(f.members.get("__constructor")):Yn;f.flags&16&&(pe=Oi(pe.slice(),Qo(o.callSignatures,Te=>Ax(Te.declaration)?vw(Te.declaration,Te.typeParameters,Te.thisParameter,Te.parameters,Y,void 0,Te.minArgumentCount,Te.flags&167):void 0))),pe.length||(pe=TWe(Y)),o.constructSignatures=pe}}function HZe(o,f,v){return zu(o,X0([f.indexType,f.objectType],[HA(0),TD([v])]))}function egt(o){const f=Tw(o.source,Nn),v=zk(o.mappedType),A=!(v&1),R=v&4?0:16777216,B=f?[bx(Nn,SNe(f.type,o.mappedType,o.constraintType),A&&f.isReadonly)]:Yn,Y=zd();for(const pe of zm(o.source)){const Te=8192|(A&&z1(pe)?8:0),Ue=tp(4|pe.flags&R,pe.escapedName,Te);if(Ue.declarations=pe.declarations,Ue.links.nameType=Ae(pe).nameType,Ue.links.propertyType=La(pe),o.constraintType.type.flags&8388608&&o.constraintType.type.objectType.flags&262144&&o.constraintType.type.indexType.flags&262144){const St=o.constraintType.type.objectType,Rt=HZe(o.mappedType,o.constraintType.type,St);Ue.links.mappedType=Rt,Ue.links.constraintType=CC(St)}else Ue.links.mappedType=o.mappedType,Ue.links.constraintType=o.constraintType;Y.set(pe.escapedName,Ue)}Ty(o,Y,Yn,Yn,B)}function V0e(o){if(o.flags&4194304){const f=yS(o.type);return mM(f)?ibe(f):CC(f)}if(o.flags&16777216){if(o.root.isDistributive){const f=o.checkType,v=V0e(f);if(v!==f)return SBe(o,u5(o.root.checkType,v,o.mapper))}return o}if(o.flags&1048576)return Th(o,V0e,!0);if(o.flags&2097152){const f=o.types;return f.length===2&&f[0].flags&76&&f[1]===hh?o:vp(Ol(o.types,V0e))}return o}function mPe(o){return I_(o)&4096}function gPe(o,f,v,A){for(const R of zm(o))A(c5(R,f));if(o.flags&1)A(Nn);else for(const R of JT(o))(!v||R.keyType.flags&134217732)&&A(R.keyType)}function U4(o){const f=zd();let v;Ty(o,Fe,Yn,Yn,Yn);const A=BI(o),R=$v(o),B=o.target||o,Y=bw(B),pe=!Y||$Ze(B),Te=ZR(B),Ue=yS(eM(o)),St=zk(o),Rt=nn?128:8576;rK(o)?gPe(Ue,Rt,nn,rn):PO(V0e(R),rn),Ty(o,f,Yn,Yn,v||Yn);function rn(xr){const Ai=Y?zu(Y,Zue(o.mapper,A,xr)):xr;PO(Ai,So=>Sn(xr,So))}function Sn(xr,Ai){if(yv(Ai)){const So=vv(Ai),la=f.get(So);if(la)la.links.nameType=dc([la.links.nameType,Ai]),la.links.keyType=dc([la.links.keyType,xr]);else{const Zs=yv(xr)?Yd(Ue,vv(xr)):void 0,ba=!!(St&4||!(St&8)&&Zs&&Zs.flags&16777216),mo=!!(St&1||!(St&2)&&Zs&&z1(Zs)),Ya=Ke&&!ba&&Zs&&Zs.flags&16777216,Ra=Zs?mPe(Zs):0,Va=tp(4|(ba?16777216:0),So,Ra|262144|(mo?8:0)|(Ya?524288:0));Va.links.mappedType=o,Va.links.nameType=Ai,Va.links.keyType=xr,Zs&&(Va.links.syntheticOrigin=Zs,Va.declarations=pe?Zs.declarations:void 0),f.set(So,Va)}}else if(Lue(Ai)||Ai.flags&33){const So=Ai.flags&5?Nn:Ai.flags&40?Lr:Ai,la=zu(Te,Zue(o.mapper,A,xr)),Zs=CV(Ue,Ai),ba=!!(St&1||!(St&2)&&(Zs!=null&&Zs.isReadonly)),mo=bx(So,la,ba);v=W1(v,mo,!0)}}}function tgt(o){if(!o.links.type){const f=o.links.mappedType;if(!OI(o,0))return f.containsError=!0,Sr;const v=ZR(f.target||f),A=Zue(f.mapper,BI(f),o.links.keyType),R=zu(v,A);let B=Ke&&o.flags&16777216&&!Sy(R,49152)?iL(R,!0):o.links.checkFlags&524288?hNe(R):R;Bk()||(hn(ae,N.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ru(o),Co(f)),B=Sr),o.links.type=B}return o.links.type}function BI(o){return o.typeParameter||(o.typeParameter=e5(sc(o.declaration.typeParameter)))}function $v(o){return o.constraintType||(o.constraintType=gT(BI(o))||Sr)}function bw(o){return o.declaration.nameType?o.nameType||(o.nameType=zu(Xl(o.declaration.nameType),o.mapper)):void 0}function ZR(o){return o.templateType||(o.templateType=o.declaration.type?zu(mb(Xl(o.declaration.type),!0,!!(zk(o)&4)),o.mapper):Sr)}function hPe(o){return a9(o.declaration.typeParameter)}function rK(o){const f=hPe(o);return f.kind===198&&f.operator===143}function eM(o){if(!o.modifiersType)if(rK(o))o.modifiersType=zu(Xl(hPe(o).type),o.mapper);else{const f=uBe(o.declaration),v=$v(f),A=v&&v.flags&262144?gT(v):v;o.modifiersType=A&&A.flags&4194304?zu(A.type,o.mapper):Io}return o.modifiersType}function zk(o){const f=o.declaration;return(f.readonlyToken?f.readonlyToken.kind===41?2:1:0)|(f.questionToken?f.questionToken.kind===41?8:4:0)}function JZe(o){const f=zk(o);return f&8?-1:f&4?1:0}function iK(o){const f=JZe(o),v=eM(o);return f||(Fb(v)?JZe(v):0)}function CWe(o){return!!(ji(o)&32&&zk(o)&4)}function Fb(o){if(ji(o)&32){const f=$v(o);if(Tx(f))return!0;const v=bw(o);if(v&&Tx(zu(v,Cw(BI(o),f))))return!0}return!1}function $Ze(o){const f=bw(o);return!!f&&Id(f,BI(o))}function Gh(o){return o.members||(o.flags&524288?o.objectFlags&4?$mt(o):o.objectFlags&3?Jmt(o):o.objectFlags&1024?egt(o):o.objectFlags&16?AWe(o):o.objectFlags&32?U4(o):re.fail("Unhandled object type "+re.formatObjectFlags(o.objectFlags)):o.flags&1048576?Zmt(o):o.flags&2097152?UZe(o):re.fail("Unhandled type "+re.formatTypeFlags(o.flags))),o}function W2(o){return o.flags&524288?Gh(o).properties:Yn}function $6(o,f){if(o.flags&524288){const A=Gh(o).members.get(f);if(A&&KR(A))return A}}function U0e(o){if(!o.resolvedProperties){const f=zd();for(const v of o.types){for(const A of zm(v))if(!f.has(A.escapedName)){const R=kWe(o,A.escapedName);R&&f.set(A.escapedName,R)}if(o.flags&1048576&&JT(v).length===0)break}o.resolvedProperties=dO(f)}return o.resolvedProperties}function zm(o){return o=dte(o),o.flags&3145728?U0e(o):W2(o)}function ngt(o,f){o=dte(o),o.flags&3670016&&Gh(o).members.forEach((v,A)=>{pO(v,A)&&f(v,A)})}function rgt(o,f){return f.properties.some(A=>{const R=A.name&&(Fm(A.name)?vS(oW(A.name)):SD(A.name)),B=R&&yv(R)?vv(R):void 0,Y=B===void 0?void 0:Xe(o,B);return!!Y&&afe(Y)&&!Id(nd(A),Y)})}function igt(o){const f=dc(o);if(!(f.flags&1048576))return im(f);const v=zd();for(const A of o)for(const{escapedName:R}of im(A))if(!v.has(R)){const B=IWe(f,R);B&&v.set(R,B)}return oc(v.values())}function IB(o){return o.flags&262144?gT(o):o.flags&8388608?gl(o):o.flags&16777216?KZe(o):US(o)}function gT(o){return wue(o)?DV(o):void 0}function n5(o,f=0){var v;return f<5&&!!(o&&(o.flags&262144&>((v=o.symbol)==null?void 0:v.declarations,A=>ul(A,4096))||o.flags&3145728&>(o.types,A=>n5(A,f))||o.flags&8388608&&n5(o.objectType,f+1)||o.flags&16777216&&n5(KZe(o),f+1)||o.flags&33554432&&n5(o.baseType,f)||mM(o)&&Ho(Z6(o),(A,R)=>!!(o.target.elementFlags[R]&8)&&n5(A,f))>=0))}function gl(o){return wue(o)?ogt(o):void 0}function yPe(o){const f=tN(o,!1);return f!==o?f:IB(o)}function ogt(o){if(J0e(o)||Fb(o.objectType))return _p(o.objectType,o.indexType);const f=yPe(o.indexType);if(f&&f!==o.indexType){const A=xw(o.objectType,f,o.accessFlags);if(A)return A}const v=yPe(o.objectType);if(v&&v!==o.objectType)return xw(v,o.indexType,o.accessFlags)}function H0e(o){if(!o.resolvedDefaultConstraint){const f=eL(o),v=oM(o);o.resolvedDefaultConstraint=bn(f)?v:bn(v)?f:dc([f,v])}return o.resolvedDefaultConstraint}function vPe(o){if(o.resolvedConstraintOfDistributive!==void 0)return o.resolvedConstraintOfDistributive||void 0;if(o.root.isDistributive&&o.restrictiveInstantiation!==o){const f=tN(o.checkType,!1),v=f===o.checkType?IB(f):f;if(v&&v!==o.checkType){const A=SBe(o,u5(o.root.checkType,v,o.mapper));if(!(A.flags&131072))return o.resolvedConstraintOfDistributive=A,A}}o.resolvedConstraintOfDistributive=!1}function qZe(o){return vPe(o)||H0e(o)}function KZe(o){return wue(o)?qZe(o):void 0}function XZe(o,f){let v,A=!1;for(const R of o)if(R.flags&465829888){let B=IB(R);for(;B&&B.flags&21233664;)B=IB(B);B&&(v=ur(v,B),f&&(v=ur(v,R)))}else(R.flags&469892092||VI(R))&&(A=!0);if(v&&(f||A)){if(A)for(const R of o)(R.flags&469892092||VI(R))&&(v=ur(v,R));return Ebe(vp(v),!1)}}function US(o){if(o.flags&464781312||mM(o)){const f=bPe(o);return f!==Pm&&f!==Ag?f:void 0}return o.flags&4194304?Ym:void 0}function tM(o){return US(o)||o}function wue(o){return bPe(o)!==Ag}function bPe(o){if(o.resolvedBaseConstraint)return o.resolvedBaseConstraint;const f=[];return o.resolvedBaseConstraint=v(o);function v(B){if(!B.immediateBaseConstraint){if(!OI(B,4))return Ag;let Y;const pe=Dbe(B);if((f.length<10||f.length<50&&!ni(f,pe))&&(f.push(pe),Y=R(tN(B,!1)),f.pop()),!Bk()){if(B.flags&262144){const Te=$4(B);if(Te){const Ue=hn(Te,N.Type_parameter_0_has_a_circular_constraint,Co(B));ae&&!Lx(Te,ae)&&!Lx(ae,Te)&&ml(Ue,Bs(ae,N.Circularity_originates_in_type_at_this_location))}}Y=Ag}B.immediateBaseConstraint=Y||Pm}return B.immediateBaseConstraint}function A(B){const Y=v(B);return Y!==Pm&&Y!==Ag?Y:void 0}function R(B){if(B.flags&262144){const Y=DV(B);return B.isThisType||!Y?Y:A(Y)}if(B.flags&3145728){const Y=B.types,pe=[];let Te=!1;for(const Ue of Y){const St=A(Ue);St?(St!==Ue&&(Te=!0),pe.push(St)):Te=!0}return Te?B.flags&1048576&&pe.length===Y.length?dc(pe):B.flags&2097152&&pe.length?vp(pe):void 0:B}if(B.flags&4194304)return Ym;if(B.flags&134217728){const Y=B.types,pe=Qo(Y,A);return pe.length===Y.length?MB(B.texts,pe):Nn}if(B.flags&268435456){const Y=A(B.type);return Y&&Y!==B.type?GI(B.symbol,Y):Nn}if(B.flags&8388608){if(J0e(B))return A(_p(B.objectType,B.indexType));const Y=A(B.objectType),pe=A(B.indexType),Te=Y&&pe&&xw(Y,pe,B.accessFlags);return Te&&A(Te)}if(B.flags&16777216){const Y=qZe(B);return Y&&A(Y)}if(B.flags&33554432)return A(Wue(B));if(mM(B)){const Y=Vn(Z6(B),(pe,Te)=>{const Ue=pe.flags&262144&&B.target.elementFlags[Te]&8&&A(pe)||pe;return Ue!==pe&&Ex(Ue,St=>_5(St)&&!mM(St))?Ue:pe});return TD(Y,B.target.elementFlags,B.target.readonly,B.target.labeledElementDeclarations)}return B}}function agt(o,f){return o.resolvedApparentType||(o.resolvedApparentType=vx(o,f,!0))}function DWe(o){if(o.default)o.default===va&&(o.default=Ag);else if(o.target){const f=DWe(o.target);o.default=f?zu(f,o.mapper):Pm}else{o.default=va;const f=o.symbol&&Ot(o.symbol.declarations,A=>Np(A)&&A.default),v=f?Xl(f):Pm;o.default===va&&(o.default=v)}return o.default}function Dd(o){const f=DWe(o);return f!==Pm&&f!==Ag?f:void 0}function YZe(o){return DWe(o)!==Ag}function Rue(o){return!!(o.symbol&&Ot(o.symbol.declarations,f=>Np(f)&&f.default))}function sgt(o){return o.resolvedApparentType||(o.resolvedApparentType=QZe(o))}function QZe(o){const f=KPe(o);if(f&&!o.declaration.nameType){const v=gT(f);if(v&&Ex(v,_5))return zu(o,u5(f,v,o.mapper))}return o}function J0e(o){let f;return!!(o.flags&8388608&&ji(f=o.objectType)&32&&!Fb(f)&&Tx(o.indexType)&&!(zk(f)&8)&&!f.declaration.nameType)}function yS(o){const f=o.flags&465829888?US(o)||Io:o,v=ji(f);return v&32?sgt(f):v&4&&f!==o?vx(f,o):f.flags&2097152?agt(f,o):f.flags&402653316?gd:f.flags&296?Dg:f.flags&2112?Vue():f.flags&528?um:f.flags&12288?WWe():f.flags&67108864?M_:f.flags&4194304?Ym:f.flags&2&&!Ke?M_:f}function dte(o){return zI(yS(zI(o)))}function IWe(o,f,v){var A,R,B;let Y,pe,Te;const Ue=o.flags&1048576;let St,Rt=4,rn=Ue?0:8,Sn=!1;for(const Va of o.types){const Da=yS(Va);if(!(Fn(Da)||Da.flags&131072)){const cc=Yd(Da,f,v),V_=cc?Vy(cc):0;if(cc){if(cc.flags&106500&&(St??(St=Ue?0:16777216),Ue?St|=cc.flags&16777216:St&=cc.flags),!Y)Y=cc;else if(cc!==Y)if((E5(cc)||cc)===(E5(Y)||Y)&&MBe(Y,cc,(ad,Xf)=>ad===Xf?-1:0)===-1)Sn=!!Y.parent&&!!Nt(Fo(Y.parent));else{pe||(pe=new Map,pe.set($d(Y),Y));const ad=$d(cc);pe.has(ad)||pe.set(ad,cc)}Ue&&z1(cc)?rn|=8:!Ue&&!z1(cc)&&(rn&=-9),rn|=(V_&6?0:256)|(V_&4?512:0)|(V_&2?1024:0)|(V_&256?2048:0),AK(cc)||(Rt=2)}else if(Ue){const fd=!CB(f)&&i5(Da,f);fd?(rn|=32|(fd.isReadonly?8:0),Te=ur(Te,Dp(Da)?gK(Da)||Ce:fd.type)):IO(Da)&&!(ji(Da)&2097152)?(rn|=32,Te=ur(Te,Ce)):rn|=16}}}if(!Y||Ue&&(pe||rn&48)&&rn&1536&&!(pe&&eet(pe.values())))return;if(!pe&&!(rn&16)&&!Te)if(Sn){const Va=(A=to(Y,Vm))==null?void 0:A.links,Da=i8(Y,Va==null?void 0:Va.type);return Da.parent=(B=(R=Y.valueDeclaration)==null?void 0:R.symbol)==null?void 0:B.parent,Da.links.containingType=o,Da.links.mapper=Va==null?void 0:Va.mapper,Da}else return Y;const xr=pe?oc(pe.values()):[Y];let Ai,So,la;const Zs=[];let ba,mo,Ya=!1;for(const Va of xr){mo?Va.valueDeclaration&&Va.valueDeclaration!==mo&&(Ya=!0):mo=Va.valueDeclaration,Ai=Oi(Ai,Va.declarations);const Da=La(Va);So||(So=Da,la=Ae(Va).nameType);const cc=QF(Va);(ba||cc!==Da)&&(ba=ur(ba||Zs.slice(),cc)),Da!==So&&(rn|=64),(afe(Da)||NV(Da))&&(rn|=128),Da.flags&131072&&Da!==Og&&(rn|=131072),Zs.push(Da)}Oi(Zs,Te);const Ra=tp(4|(St??0),f,Rt|rn);return Ra.links.containingType=o,!Ya&&mo&&(Ra.valueDeclaration=mo,mo.symbol.parent&&(Ra.parent=mo.symbol.parent)),Ra.declarations=Ai,Ra.links.nameType=la,Zs.length>2?(Ra.links.checkFlags|=65536,Ra.links.deferralParent=o,Ra.links.deferralConstituents=Zs,Ra.links.deferralWriteConstituents=ba):(Ra.links.type=Ue?dc(Zs):vp(Zs),ba&&(Ra.links.writeType=Ue?dc(ba):vp(ba))),Ra}function ZZe(o,f,v){var A,R;let B=(A=o.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&A.get(f)||!v?(R=o.propertyCache)==null?void 0:R.get(f):void 0;return B||(B=IWe(o,f,v),B&&(v?o.propertyCacheWithoutObjectFunctionPropertyAugment||(o.propertyCacheWithoutObjectFunctionPropertyAugment=zd()):o.propertyCache||(o.propertyCache=zd())).set(f,B)),B}function eet(o){let f;for(const v of o){if(!v.declarations)return;if(!f){f=new Set(v.declarations);continue}if(f.forEach(A=>{ni(v.declarations,A)||f.delete(A)}),f.size===0)return}return f}function kWe(o,f,v){const A=ZZe(o,f,v);return A&&!(I_(A)&16)?A:void 0}function zI(o){return o.flags&1048576&&o.objectFlags&16777216?o.resolvedReducedType||(o.resolvedReducedType=q6(o)):o.flags&2097152?(o.objectFlags&16777216||(o.objectFlags|=16777216|(gt(U0e(o),pte)?33554432:0)),o.objectFlags&33554432?Tc:o):o}function q6(o){const f=Ol(o.types,zI);if(f===o.types)return o;const v=dc(f);return v.flags&1048576&&(v.resolvedReducedType=v),v}function pte(o){return PWe(o)||tet(o)}function PWe(o){return!(o.flags&16777216)&&(I_(o)&131264)===192&&!!(La(o).flags&131072)}function tet(o){return!o.valueDeclaration&&!!(I_(o)&1024)}function TPe(o){return!!(o.flags&1048576&&o.objectFlags&16777216&>(o.types,TPe)||o.flags&2097152&&YP(o))}function YP(o){const f=o.uniqueLiteralFilledInstantiation||(o.uniqueLiteralFilledInstantiation=zu(o,pl));return zI(f)!==f}function SPe(o,f){if(f.flags&2097152&&ji(f)&33554432){const v=lr(U0e(f),PWe);if(v)return Es(o,N.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Co(f,void 0,536870912),ru(v));const A=lr(U0e(f),tet);if(A)return Es(o,N.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Co(f,void 0,536870912),ru(A))}return o}function Yd(o,f,v,A){if(o=dte(o),o.flags&524288){const R=Gh(o),B=R.members.get(f);if(B&&KR(B,A))return B;if(v)return;const Y=R===Qi?ci:R.callSignatures.length?da:R.constructSignatures.length?Hu:void 0;if(Y){const pe=$6(Y,f);if(pe)return pe}return $6(Jt,f)}if(o.flags&3145728)return kWe(o,f,v)}function $0e(o,f){if(o.flags&3670016){const v=Gh(o);return f===0?v.callSignatures:v.constructSignatures}return Yn}function ed(o,f){const v=$0e(dte(o),f);if(f===0&&!Nt(v)&&o.flags&1048576){if(o.arrayFallbackSignatures)return o.arrayFallbackSignatures;let A;if(Ex(o,R=>{var B;return!!((B=R.symbol)!=null&&B.parent)&&kB(R.symbol.parent)&&(A?A===R.symbol.escapedName:(A=R.symbol.escapedName,!0))})){const R=Th(o,Y=>tL((net(Y.symbol.parent)?A_:t_).typeParameters[0],Y.mapper)),B=hT(R,Uk(o,Y=>net(Y.symbol.parent)));return o.arrayFallbackSignatures=ed(Xe(B,A),f)}o.arrayFallbackSignatures=v}return v}function kB(o){return!o||!t_.symbol||!A_.symbol?!1:!!AE(o,t_.symbol)||!!AE(o,A_.symbol)}function net(o){return!o||!A_.symbol?!1:!!AE(o,A_.symbol)}function NWe(o,f){return lr(o,v=>v.keyType===f)}function r5(o,f){let v,A,R;for(const B of o)B.keyType===Nn?v=B:AV(f,B.keyType)&&(A?(R||(R=[A])).push(B):A=B);return R?bx(Io,vp(Vn(R,B=>B.type)),Em(R,(B,Y)=>B&&Y.isReadonly,!0)):A||(v&&AV(f,Nn)?v:void 0)}function AV(o,f){return Id(o,f)||f===Nn&&Id(o,Lr)||f===Lr&&(o===Yg||!!(o.flags&128)&&FT(o.value))}function wWe(o){return o.flags&3670016?Gh(o).indexInfos:Yn}function JT(o){return wWe(dte(o))}function Tw(o,f){return NWe(JT(o),f)}function vO(o,f){var v;return(v=Tw(o,f))==null?void 0:v.type}function oK(o,f){return JT(o).filter(v=>AV(f,v.keyType))}function CV(o,f){return r5(JT(o),f)}function i5(o,f){return CV(o,CB(f)?hc:vS(Ic(f)))}function RWe(o){var f;let v;for(const A of Hb(o))v=ST(v,e5(A.symbol));return v!=null&&v.length?v:mg(o)?(f=gte(o))==null?void 0:f.typeParameters:void 0}function q0e(o){const f=[];return o.forEach((v,A)=>{jS(A)||f.push(v)}),f}function aK(o,f){if(Kv(o))return;const v=Ci(jt,'"'+o+'"',512);return v&&f?jp(v):v}function H4(o){if(M9(o)||rW(o)||iW(o))return!0;if(o.initializer){const v=gb(o.parent),A=o.parent.parameters.indexOf(o);return re.assert(A>=0),A>=KA(v,3)}const f=v7(o.parent);return f?!o.type&&!o.dotDotDotToken&&o.parent.parameters.indexOf(o)>=s1e(f).length:!1}function mte(o){return nu(o)&&!e_(o)&&o.questionToken}function nM(o,f,v,A){return{kind:o,parameterName:f,parameterIndex:v,type:A}}function HS(o){let f=0;if(o)for(let v=0;v=v&&B<=R){const Y=o?o.slice():[];for(let Te=B;Tepe.arguments.length&&!So||iW(xr)||(R=v.length)}if((o.kind===177||o.kind===178)&&DB(o)&&(!Y||!B)){const Sn=o.kind===177?178:177,xr=Rh(sc(o),Sn);xr&&(B=G4(xr))}if(Cs(o)){const Sn=Xre(o);Sn&&Sn.typeExpression&&(B=i8(tp(1,"this"),Xl(Sn.typeExpression)))}const St=b6(o)?YM(o):o,Rt=St&&Lh(St)?F1(jp(St.parent.symbol)):void 0,rn=Rt?Rt.localTypeParameters:RWe(o);(lde(o)||Cs(o)&&ret(o,v))&&(A|=1),(MG(o)&&ul(o,64)||Lh(o)&&ul(o.parent,64))&&(A|=4),f.resolvedSignature=vw(o,rn,B,v,void 0,void 0,R,A)}return f.resolvedSignature}function ret(o,f){if(b6(o)||!EPe(o))return!1;const v=Yf(o.parameters),A=v?o_(v):WM(o).filter(A2),R=Yr(A,Y=>Y.typeExpression&&iF(Y.typeExpression.type)?Y.typeExpression.type:void 0),B=tp(3,"args",32768);return R?B.links.type=hT(Xl(R.type)):(B.links.checkFlags|=65536,B.links.deferralParent=Tc,B.links.deferralConstituents=[Qm],B.links.deferralWriteConstituents=[Qm]),R&&f.pop(),f.push(B),!0}function gte(o){if(!(Cs(o)&&Vd(o)))return;const f=FM(o);return(f==null?void 0:f.typeExpression)&&$B(Xl(f.typeExpression))}function cgt(o,f){const v=gte(o);if(!v)return;const A=o.parameters.indexOf(f);return f.dotDotDotToken?PK(v,A):XI(v,A)}function lgt(o){const f=gte(o);return f&&np(f)}function EPe(o){const f=rt(o);return f.containsArgumentsReference===void 0&&(f.flags&512?f.containsArgumentsReference=!0:f.containsArgumentsReference=v(o.body)),f.containsArgumentsReference;function v(A){if(!A)return!1;switch(A.kind){case 80:return A.escapedText===Tr.escapedName&&N1e(A)===Tr;case 172:case 174:case 177:case 178:return A.name.kind===167&&v(A.name);case 211:case 212:return v(A.expression);case 303:return v(A.initializer);default:return!kie(A)&&!BE(A)&&!!s_(A,v)}}}function K6(o){if(!o||!o.declarations)return Yn;const f=[];for(let v=0;v0&&A.body){const R=o.declarations[v-1];if(A.parent===R.parent&&A.kind===R.kind&&A.pos===R.end)continue}if(Cs(A)&&A.jsDoc){let R=!1;for(const B of A.jsDoc)if(B.tags){for(const Y of B.tags)if(aF(Y)){const pe=Y.typeExpression;pe.type===void 0&&!Lh(A)&&o8(pe,Ge),f.push(gb(pe)),R=!0}}if(R)continue}f.push(!EP(A)&&!iC(A)&>e(A)||gb(A))}}return f}function s2(o){const f=gS(o,o);if(f){const v=hS(f);if(v)return La(v)}return Ge}function J4(o){if(o.thisParameter)return La(o.thisParameter)}function Wb(o){if(!o.resolvedTypePredicate){if(o.target){const f=Wb(o.target);o.resolvedTypePredicate=f?yBe(f,o.mapper):Xn}else if(o.compositeSignatures)o.resolvedTypePredicate=Iet(o.compositeSignatures,o.compositeKind)||Xn;else{const f=o.declaration&&kS(o.declaration);let v;if(!f){const A=gte(o.declaration);A&&o!==A&&(v=Wb(A))}o.resolvedTypePredicate=f&&mW(f)?iet(f,o):v||Xn}re.assert(!!o.resolvedTypePredicate)}return o.resolvedTypePredicate===Xn?void 0:o.resolvedTypePredicate}function iet(o,f){const v=o.parameterName,A=o.type&&Xl(o.type);return v.kind===197?nM(o.assertsModifier?2:0,void 0,void 0,A):nM(o.assertsModifier?3:1,v.escapedText,Ho(f.parameters,R=>R.escapedName===v.escapedText),A)}function xPe(o,f,v){return f!==2097152?dc(o,v):vp(o)}function np(o){if(!o.resolvedReturnType){if(!OI(o,3))return Sr;let f=o.target?zu(np(o.target),o.mapper):o.compositeSignatures?zu(xPe(Vn(o.compositeSignatures,np),o.compositeKind,2),o.mapper):sK(o.declaration)||(ny(o.declaration.body)?Ge:Awe(o.declaration));if(o.flags&8?f=pNe(f):o.flags&16&&(f=iL(f)),!Bk()){if(o.declaration){const v=kS(o.declaration);if(v)hn(v,N.Return_type_annotation_circularly_references_itself);else if(Et){const A=o.declaration,R=i_(A);R?hn(R,N._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,hm(R)):hn(A,N.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)}}f=Ge}o.resolvedReturnType=f}return o.resolvedReturnType}function sK(o){if(o.kind===176)return F1(jp(o.parent.symbol));const f=kS(o);if(b6(o)){const v=_H(o);if(v&&Lh(v.parent)&&!f)return F1(jp(v.parent.parent.symbol))}if(UL(o))return Xl(o.parameters[0].type);if(f)return Xl(f);if(o.kind===177&&DB(o)){const v=Cs(o)&&zA(o);if(v)return v;const A=Rh(sc(o),178),R=VS(A);if(R)return R}return lgt(o)}function K0e(o){return o.compositeSignatures&>(o.compositeSignatures,K0e)||!o.resolvedReturnType&&HT(o,3)>=0}function oet(o){return APe(o)||Ge}function APe(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]),v=Dp(f)?gK(f):f;return v&&vO(v,Lr)}}function QP(o,f,v,A){const R=X6(o,Gk(f,o.typeParameters,HS(o.typeParameters),v));if(A){const B=Dnt(np(R));if(B){const Y=_te(B);Y.typeParameters=A;const pe=_te(R);return pe.resolvedReturnType=o5(Y),pe}}return R}function X6(o,f){const v=o.instantiations||(o.instantiations=new Map),A=B2(f);let R=v.get(A);return R||v.set(A,R=CPe(o,f)),R}function CPe(o,f){return RV(o,aet(o,f),!0)}function aet(o,f){return X0(o.typeParameters,f)}function Mue(o){return o.typeParameters?o.erasedSignatureCache||(o.erasedSignatureCache=ugt(o)):o}function ugt(o){return RV(o,Het(o.typeParameters),!0)}function fgt(o){return o.typeParameters?o.canonicalSignatureCache||(o.canonicalSignatureCache=set(o)):o}function set(o){return QP(o,Vn(o.typeParameters,f=>f.target&&!gT(f.target)?f.target:f),Cs(o.declaration))}function _gt(o){const f=o.typeParameters;if(f){if(o.baseSignatureCache)return o.baseSignatureCache;const v=Het(f),A=X0(f,Vn(f,B=>gT(B)||Io));let R=Vn(f,B=>zu(B,A)||Io);for(let B=0;B{Lue(R)&&!NWe(f,R)&&f.push(bx(R,v.type?Xl(v.type):Ge,tT(v,8),v))})}return f}return Yn}function Lue(o){return!!(o.flags&4108)||NV(o)||!!(o.flags&2097152)&&!uK(o)&>(o.types,Lue)}function $4(o){return Qo(gi(o.symbol&&o.symbol.declarations,Np),a9)[0]}function Q0e(o,f){var v;let A;if((v=o.symbol)!=null&&v.declarations){for(const R of o.symbol.declarations)if(R.parent.kind===195){const[B=R.parent,Y]=uSe(R.parent.parent);if(Y.kind===183&&!f){const pe=Y,Te=IGe(pe);if(Te){const Ue=pe.typeArguments.indexOf(B);if(Ue()=>_vt(pe,Te,xr))),rn=zu(St,Rt);rn!==o&&(A=ur(A,rn))}}}}else if(Y.kind===169&&Y.dotDotDotToken||Y.kind===191||Y.kind===202&&Y.dotDotDotToken)A=ur(A,hT(Io));else if(Y.kind===204)A=ur(A,Nn);else if(Y.kind===168&&Y.parent.kind===200)A=ur(A,Ym);else if(Y.kind===200&&Y.type&&rg(Y.type)===R.parent&&Y.parent.kind===194&&Y.parent.extendsType===Y&&Y.parent.checkType.kind===200&&Y.parent.checkType.type){const pe=Y.parent.checkType,Te=Xl(pe.type);A=ur(A,zu(Te,Cw(e5(sc(pe.typeParameter)),pe.typeParameter.constraint?Xl(pe.typeParameter.constraint):Ym)))}}}return A&&vp(A)}function DV(o){if(!o.constraint)if(o.target){const f=gT(o.target);o.constraint=f?zu(f,o.mapper):Pm}else{const f=$4(o);if(!f)o.constraint=Q0e(o)||Pm;else{let v=Xl(f);v.flags&1&&!Fn(v)&&(v=f.parent.parent.kind===200?Ym:Io),o.constraint=v}}return o.constraint===Pm?void 0:o.constraint}function cet(o){const f=Rh(o.symbol,168),v=CA(f.parent)?Iie(f.parent):f.parent;return v&&hx(v)}function B2(o){let f="";if(o){const v=o.length;let A=0;for(;A1&&(f+=":"+B),A+=B}}return f}function ZP(o,f){return o?`@${$d(o)}`+(f?`:${B2(f)}`:""):""}function B1(o,f){let v=0;for(const A of o)(f===void 0||!(A.flags&f))&&(v|=ji(A));return v&458752}function jk(o,f){return gt(f)&&o===Ka?Io:qv(o,f)}function qv(o,f){const v=B2(f);let A=o.instantiations.get(v);return A||(A=tA(4,o.symbol),o.instantiations.set(v,A),A.objectFlags|=f?B1(f):0,A.target=o,A.resolvedTypeArguments=f),A}function bD(o){const f=L1(o.flags,o.symbol);return f.objectFlags=o.objectFlags,f.target=o.target,f.resolvedTypeArguments=o.resolvedTypeArguments,f}function Oue(o,f,v,A,R){if(!A){A=EO(f);const Y=fK(A);R=v?cM(Y,v):Y}const B=tA(4,o.symbol);return B.target=o,B.node=f,B.mapper=v,B.aliasSymbol=A,B.aliasTypeArguments=R,B}function ch(o){var f,v;if(!o.resolvedTypeArguments){if(!OI(o,6))return((f=o.target.localTypeParameters)==null?void 0:f.map(()=>Sr))||Yn;const A=o.node,R=A?A.kind===183?Hi(o.target.outerTypeParameters,Wwe(A,o.target.localTypeParameters)):A.kind===188?[Xl(A.elementType)]:Vn(A.elements,Xl):Yn;Bk()?o.resolvedTypeArguments=o.mapper?cM(R,o.mapper):R:(o.resolvedTypeArguments=((v=o.target.localTypeParameters)==null?void 0:v.map(()=>Sr))||Yn,hn(o.node||ae,o.target.symbol?N.Type_arguments_for_0_circularly_reference_themselves:N.Tuple_type_arguments_circularly_reference_themselves,o.target.symbol&&ru(o.target.symbol)))}return o.resolvedTypeArguments}function Y6(o){return Nt(o.target.typeParameters)}function uet(o,f){const v=sh(jp(f)),A=v.localTypeParameters;if(A){const R=Nt(o.typeArguments),B=HS(A),Y=Cs(o);if(!(!Et&&Y)&&(RA.length)){const Ue=Y&&cC(o)&&!xW(o.parent),St=B===A.length?Ue?N.Expected_0_type_arguments_provide_these_with_an_extends_tag:N.Generic_type_0_requires_1_type_argument_s:Ue?N.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:N.Generic_type_0_requires_between_1_and_2_type_arguments,Rt=Co(v,void 0,2);if(hn(o,St,Rt,B,A.length),!Y)return Sr}if(o.kind===183&&Tet(o,Nt(o.typeArguments)!==A.length))return Oue(v,o,void 0);const Te=Hi(v.outerTypeParameters,Gk(Gue(o),A,B,Y));return qv(v,Te)}return a5(o,f)?v:Sr}function PB(o,f,v,A){const R=sh(o);if(R===Ao&&nr.has(o.escapedName)&&f&&f.length===1)return GI(o,f[0]);const B=Ae(o),Y=B.typeParameters,pe=B2(f)+ZP(v,A);let Te=B.instantiations.get(pe);return Te||B.instantiations.set(pe,Te=XPe(R,X0(Y,Gk(f,Y,HS(Y),Cs(o.valueDeclaration))),v,A)),Te}function dgt(o,f){if(I_(f)&1048576){const R=Gue(o),B=ZP(f,R);let Y=Wn.get(B);return Y||(Y=Vg(1,"error",void 0,`alias ${B}`),Y.aliasSymbol=f,Y.aliasTypeArguments=R,Wn.set(B,Y)),Y}const v=sh(f),A=Ae(f).typeParameters;if(A){const R=Nt(o.typeArguments),B=HS(A);if(RA.length)return hn(o,B===A.length?N.Generic_type_0_requires_1_type_argument_s:N.Generic_type_0_requires_between_1_and_2_type_arguments,ru(f),B,A.length),Sr;const Y=EO(o);let pe=Y&&(Z0e(f)||!Z0e(Y))?Y:void 0,Te;if(pe)Te=fK(pe);else if(NN(o)){const Ue=wl(o,2097152,!0);if(Ue&&Ue!==Pr){const St=C0(Ue);St&&St.flags&524288&&(pe=St,Te=Gue(o)||(A?[]:void 0))}}return PB(f,Gue(o),pe,Te)}return a5(o,f)?v:Sr}function Z0e(o){var f;const v=(f=o.declarations)==null?void 0:f.find(L9);return!!(v&&zE(v))}function fet(o){switch(o.kind){case 183:return o.typeName;case 233:const f=o.expression;if(Tg(f))return f}}function Fue(o){return o.parent?`${Fue(o.parent)}.${o.escapedName}`:o.escapedName}function DPe(o){const v=(o.kind===166?o.right:o.kind===211?o.name:o).escapedText;if(v){const A=o.kind===166?DPe(o.left):o.kind===211?DPe(o.expression):void 0,R=A?`${Fue(A)}.${v}`:v;let B=ln.get(R);return B||(ln.set(R,B=tp(524288,v,1048576)),B.parent=A,B.links.declaredType=yi),B}return Pr}function wl(o,f,v){const A=fet(o);if(!A)return Pr;const R=Qg(A,f,v);return R&&R!==Pr?R:v?Pr:DPe(A)}function ebe(o,f){if(f===Pr)return Sr;if(f=M1(f)||f,f.flags&96)return uet(o,f);if(f.flags&524288)return dgt(o,f);const v=G0e(f);if(v)return a5(o,f)?$S(v):Sr;if(f.flags&111551&&Q6(o)){const A=IPe(o,f);return A||(wl(o,788968),La(f))}return Sr}function IPe(o,f){const v=rt(o);if(!v.resolvedJSDocType){const A=La(f);let R=A;if(f.valueDeclaration){const B=o.kind===205&&o.qualifier;A.symbol&&A.symbol!==f&&B&&(R=ebe(o,A.symbol))}v.resolvedJSDocType=R}return v.resolvedJSDocType}function Sw(o,f){if(f.flags&3||f===o||o.flags&1)return o;const v=`${By(o)}>${By(f)}`,A=yf.get(v);if(A)return A;const R=TC(33554432);return R.baseType=o,R.constraint=f,yf.set(v,R),R}function Wue(o){return vp([o.constraint,o.baseType])}function LWe(o){return o.kind===189&&o.elements.length===1}function IE(o,f,v){return LWe(f)&&LWe(v)?IE(o,f.elements[0],v.elements[0]):jI(Xl(f))===jI(o)?Xl(v):void 0}function q4(o,f){let v,A=!0;for(;f&&!dl(f)&&f.kind!==327;){const R=f.parent;if(R.kind===169&&(A=!A),(A||o.flags&8650752)&&R.kind===194&&f===R.trueType){const B=IE(o,R.checkType,R.extendsType);B&&(v=ur(v,B))}else if(o.flags&262144&&R.kind===200&&f===R.type){const B=Xl(R);if(BI(B)===jI(o)){const Y=KPe(B);if(Y){const pe=gT(Y);pe&&Ex(pe,_5)&&(v=ur(v,dc([Lr,Yg])))}}}f=R}return v?Sw(o,vp(v)):o}function Q6(o){return!!(o.flags&16777216)&&(o.kind===183||o.kind===205)}function a5(o,f){return o.typeArguments?(hn(o,N.Type_0_is_not_generic,f?ru(f):o.typeName?hm(o.typeName):h$),!1):!0}function Bue(o){if(xn(o.typeName)){const f=o.typeArguments;switch(o.typeName.escapedText){case"String":return a5(o),Nn;case"Number":return a5(o),Lr;case"Boolean":return a5(o),Pc;case"Void":return a5(o),bl;case"Undefined":return a5(o),Ce;case"Null":return a5(o),mn;case"Function":case"function":return a5(o),ci;case"array":return(!f||!f.length)&&!Et?Qm:void 0;case"promise":return(!f||!f.length)&&!Et?m1e(Ge):void 0;case"Object":if(f&&f.length===2){if(uY(o)){const v=Xl(f[0]),A=Xl(f[1]),R=v===Nn||v===Lr?[bx(v,A,!1)]:Yn;return sy(void 0,Fe,Yn,Yn,R)}return Ge}return a5(o),Et?void 0:Ge}}}function OWe(o){const f=Xl(o.type);return Ke?dNe(f,65536):f}function zue(o){const f=rt(o);if(!f.resolvedType){if(ky(o)&&f7(o.parent))return f.resolvedSymbol=Pr,f.resolvedType=kv(o.parent.expression);let v,A;const R=788968;Q6(o)&&(A=Bue(o),A||(v=wl(o,R,!0),v===Pr?v=wl(o,R|111551):wl(o,R),A=ebe(o,v))),A||(v=wl(o,R),A=ebe(o,v)),f.resolvedSymbol=v,f.resolvedType=A}return f.resolvedType}function Gue(o){return Vn(o.typeArguments,Xl)}function _et(o){const f=rt(o);if(!f.resolvedType){const v=znt(o);f.resolvedType=$S(z2(v))}return f.resolvedType}function K4(o,f){function v(R){const B=R.declarations;if(B)for(const Y of B)switch(Y.kind){case 263:case 264:case 266:return Y}}if(!o)return f?Ka:M_;const A=sh(o);return A.flags&524288?Nt(A.typeParameters)!==f?(hn(v(o),N.Global_type_0_must_have_1_type_parameter_s,Il(o),f),f?Ka:M_):A:(hn(v(o),N.Global_type_0_must_be_a_class_or_interface_type,Il(o)),f?Ka:M_)}function FWe(o,f){return hte(o,111551,f?N.Cannot_find_global_value_0:void 0)}function NB(o,f){return hte(o,788968,f?N.Cannot_find_global_type_0:void 0)}function IV(o,f,v){const A=hte(o,788968,v?N.Cannot_find_global_type_0:void 0);if(A&&(sh(A),Nt(Ae(A).typeParameters)!==f)){const R=A.declarations&&lr(A.declarations,z0);hn(R,N.Global_type_0_must_have_1_type_parameter_s,Il(A),f);return}return A}function hte(o,f,v){return gg(void 0,o,f,v,o,!1,!1,!1)}function Hy(o,f,v){const A=NB(o,v);return A||v?K4(A,f):void 0}function pgt(){return dT||(dT=Hy("TypedPropertyDescriptor",1,!0)||Ka)}function cK(){return Ja||(Ja=Hy("TemplateStringsArray",0,!0)||M_)}function kPe(){return wa||(wa=Hy("ImportMeta",0,!0)||M_)}function det(){if(!wi){const o=tp(0,"ImportMetaExpression"),f=kPe(),v=tp(4,"meta",8);v.parent=o,v.links.type=f;const A=zd([v]);o.members=A,wi=sy(o,A,Yn,Yn,Yn)}return wi}function pet(o){return Vl||(Vl=Hy("ImportCallOptions",0,o))||M_}function jue(o){return Zm||(Zm=FWe("Symbol",o))}function PPe(o){return fb||(fb=NB("SymbolConstructor",o))}function WWe(){return FS||(FS=Hy("Symbol",0,!1))||M_}function yte(o){return $0||($0=Hy("Promise",1,o))||Ka}function met(o){return xv||(xv=Hy("PromiseLike",1,o))||Ka}function BWe(o){return t2||(t2=FWe("Promise",o))}function mgt(o){return q0||(q0=Hy("PromiseConstructorLike",0,o))||M_}function tbe(o){return Ee||(Ee=Hy("AsyncIterable",1,o))||Ka}function zWe(o){return Gt||(Gt=Hy("AsyncIterator",3,o))||Ka}function GWe(o){return sr||(sr=Hy("AsyncIterableIterator",1,o))||Ka}function Nf(o){return Ii||(Ii=Hy("AsyncGenerator",3,o))||Ka}function NPe(o){return N1||(N1=Hy("Iterable",1,o))||Ka}function ggt(o){return i0||(i0=Hy("Iterator",3,o))||Ka}function hgt(o){return nt||(nt=Hy("IterableIterator",1,o))||Ka}function wPe(o){return pr||(pr=Hy("Generator",3,o))||Ka}function wB(o){return vi||(vi=Hy("IteratorYieldResult",1,o))||Ka}function ygt(o){return Di||(Di=Hy("IteratorReturnResult",1,o))||Ka}function nA(o){return Uf||(Uf=Hy("Disposable",0,o))||M_}function get(o){return Y_||(Y_=Hy("AsyncDisposable",0,o))||M_}function het(o,f=0){const v=hte(o,788968,void 0);return v&&K4(v,f)}function RPe(){return Fg||(Fg=IV("Extract",2,!0)||Pr),Fg===Pr?void 0:Fg}function yet(){return sv||(sv=IV("Omit",2,!0)||Pr),sv===Pr?void 0:sv}function eN(o){return by||(by=IV("Awaited",1,o)||(o?Pr:void 0)),by===Pr?void 0:by}function Vue(){return _b||(_b=Hy("BigInt",0,!1))||M_}function jWe(o){return i1??(i1=Hy("ClassDecoratorContext",1,o))??Ka}function vgt(o){return n2??(n2=Hy("ClassMethodDecoratorContext",2,o))??Ka}function X4(o){return Vv??(Vv=Hy("ClassGetterDecoratorContext",2,o))??Ka}function vet(o){return su??(su=Hy("ClassSetterDecoratorContext",2,o))??Ka}function Mp(o){return gC??(gC=Hy("ClassAccessorDecoratorContext",2,o))??Ka}function s5(o){return eg??(eg=Hy("ClassAccessorDecoratorTarget",2,o))??Ka}function MPe(o){return Uv??(Uv=Hy("ClassAccessorDecoratorResult",2,o))??Ka}function nbe(o){return Rk??(Rk=Hy("ClassFieldDecoratorContext",2,o))??Ka}function JS(){return f_||(f_=FWe("NaN",!1))}function Y4(){return zh||(zh=IV("Record",2,!0)||Pr),zh===Pr?void 0:zh}function lK(o,f){return o!==Ka?qv(o,f):M_}function VWe(o){return lK(pgt(),[o])}function vte(o){return lK(NPe(!0),[o])}function hT(o,f){return lK(f?A_:t_,[o])}function UWe(o){switch(o.kind){case 190:return 2;case 191:return HWe(o);case 202:return o.questionToken?2:o.dotDotDotToken?HWe(o):1;default:return 1}}function HWe(o){return pbe(o.type)?4:8}function bet(o){const f=bgt(o.parent);if(pbe(o))return f?A_:t_;const A=Vn(o.elements,UWe);return JWe(A,f,Vn(o.elements,rbe))}function rbe(o){return g6(o)||Os(o)?o:void 0}function Tet(o,f){return!!EO(o)||Eet(o)&&(o.kind===188?Q4(o.elementType):o.kind===189?gt(o.elements,Q4):f||gt(o.typeArguments,Q4))}function Eet(o){const f=o.parent;switch(f.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return Eet(f);case 265:return!0}return!1}function Q4(o){switch(o.kind){case 183:return Q6(o)||!!(wl(o,788968).flags&524288);case 186:return!0;case 198:return o.operator!==158&&Q4(o.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Q4(o.type);case 191:return o.type.kind!==188||Q4(o.type.elementType);case 192:case 193:return gt(o.types,Q4);case 199:return Q4(o.objectType)||Q4(o.indexType);case 194:return Q4(o.checkType)||Q4(o.extendsType)||Q4(o.trueType)||Q4(o.falseType)}return!1}function xet(o){const f=rt(o);if(!f.resolvedType){const v=bet(o);if(v===Ka)f.resolvedType=M_;else if(!(o.kind===189&>(o.elements,A=>!!(UWe(A)&8)))&&Tet(o))f.resolvedType=o.kind===189&&o.elements.length===0?v:Oue(v,o,void 0);else{const A=o.kind===188?[Xl(o.elementType)]:Vn(o.elements,Xl);f.resolvedType=$We(v,A)}}return f.resolvedType}function bgt(o){return _I(o)&&o.operator===148}function TD(o,f,v=!1,A=[]){const R=JWe(f||Vn(o,B=>1),v,A);return R===Ka?M_:o.length?$We(R,o):R}function JWe(o,f,v){if(o.length===1&&o[0]&4)return f?A_:t_;const A=Vn(o,B=>B&1?"#":B&2?"?":B&4?".":"*").join()+(f?"R":"")+(gt(v,B=>!!B)?","+Vn(v,B=>B?vm(B):"_").join(","):"");let R=au.get(A);return R||au.set(A,R=Tgt(o,f,v)),R}function Tgt(o,f,v){const A=o.length,R=dp(o,Rt=>!!(Rt&9));let B;const Y=[];let pe=0;if(A){B=new Array(A);for(let Rt=0;Rt!!(o.elementFlags[Ai]&8&&xr.flags&1179648));if(Sn>=0)return sbe(Vn(f,(xr,Ai)=>o.elementFlags[Ai]&8?xr:Io))?Th(f[Sn],xr=>LPe(o,vz(f,Sn,xr))):Sr}const B=[],Y=[],pe=[];let Te=-1,Ue=-1,St=-1;for(let Sn=0;Sn=1e4)return hn(ae,BE(ae)?N.Type_produces_a_tuple_type_that_is_too_large_to_represent:N.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Sr;Ot(So,(la,Zs)=>{var ba;return rn(la,xr.target.elementFlags[Zs],(ba=xr.target.labeledElementDeclarations)==null?void 0:ba[Zs])})}else rn(rL(xr)&&vO(xr,Lr)||Sr,4,(A=o.labeledElementDeclarations)==null?void 0:A[Sn]);else rn(xr,Ai,(R=o.labeledElementDeclarations)==null?void 0:R[Sn])}for(let Sn=0;Sn=0&&UeY[Ue+xr]&8?u0(Sn,Lr):Sn)),B.splice(Ue+1,St-Ue),Y.splice(Ue+1,St-Ue),pe.splice(Ue+1,St-Ue));const Rt=JWe(Y,o.readonly,pe);return Rt===Ka?M_:Y.length?qv(Rt,B):Rt;function rn(Sn,xr,Ai){xr&1&&(Te=Y.length),xr&4&&Ue<0&&(Ue=Y.length),xr&6&&(St=Y.length),B.push(xr&2?mb(Sn,!0):Sn),Y.push(xr),pe.push(Ai)}}function bte(o,f,v=0){const A=o.target,R=Y6(o)-v;return f>A.fixedLength?Kgt(o)||TD(Yn):TD(ch(o).slice(f,R),A.elementFlags.slice(f,R),!1,A.labeledElementDeclarations&&A.labeledElementDeclarations.slice(f,R))}function ibe(o){return dc(ur(bz(o.target.fixedLength,f=>vS(""+f)),CC(o.target.readonly?A_:t_)))}function qWe(o,f){const v=Ho(o.elementFlags,A=>!(A&f));return v>=0?v:o.elementFlags.length}function Uue(o,f){return o.elementFlags.length-Ms(o.elementFlags,v=>!(v&f))-1}function KWe(o){return o.fixedLength+Uue(o,3)}function Z6(o){const f=ch(o),v=Y6(o);return f.length===v?f:f.slice(0,v)}function rM(o){return mb(Xl(o.type),!0)}function By(o){return o.id}function Z4(o,f){return ZS(o,f,By,pf)>=0}function kV(o,f){const v=ZS(o,f,By,pf);return v<0?(o.splice(~v,0,f),!0):!1}function Aet(o,f,v){const A=v.flags;if(!(A&131072))if(f|=A&473694207,A&465829888&&(f|=33554432),v===Ei&&(f|=8388608),!Ke&&A&98304)ji(v)&65536||(f|=4194304);else{const R=o.length,B=R&&v.id>o[R-1].id?~R:ZS(o,v,By,pf);B<0&&o.splice(~B,0,v)}return f}function OPe(o,f,v){let A;for(const R of v)R!==A&&(f=R.flags&1048576?OPe(o,f|(obe(R)?1048576:0),R.types):Aet(o,f,R),A=R);return f}function Hue(o,f){var v;if(o.length<2)return o;const A=B2(o),R=w_.get(A);if(R)return R;const B=f&>(o,Ue=>!!(Ue.flags&524288)&&!Fb(Ue)&&tNe(Gh(Ue))),Y=o.length;let pe=Y,Te=0;for(;pe>0;){pe--;const Ue=o[pe];if(B||Ue.flags&469499904){if(Ue.flags&262144&&tM(Ue).flags&1048576){qS(Ue,dc(Vn(o,rn=>rn===Ue?Tc:rn)),wm)&&Yw(o,pe);continue}const St=Ue.flags&61603840?lr(zm(Ue),rn=>UI(La(rn))):void 0,Rt=St&&$S(La(St));for(const rn of o)if(Ue!==rn){if(Te===1e5&&Te/(Y-pe)*Y>1e6){(v=ps)==null||v.instant(ps.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:o.map(xr=>xr.id)}),hn(ae,N.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Te++,St&&rn.flags&61603840){const Sn=Xe(rn,St.escapedName);if(Sn&&UI(Sn)&&$S(Sn)!==Rt)continue}if(qS(Ue,rn,wm)&&(!(ji(QR(Ue))&1)||!(ji(QR(rn))&1)||nN(Ue,rn))){Yw(o,pe);break}}}}return w_.set(A,o),o}function Vk(o,f,v){let A=o.length;for(;A>0;){A--;const R=o[A],B=R.flags;(B&402653312&&f&4||B&256&&f&8||B&2048&&f&64||B&8192&&f&4096||v&&B&32768&&f&16384||Bb(R)&&Z4(o,R.regularType))&&Yw(o,A)}}function Cet(o){const f=gi(o,v=>!!(v.flags&134217728)&&NV(v)&&v.types.every(A=>!(A.flags&2097152)||!BPe(A.types)));if(f.length){let v=o.length;for(;v>0;){v--;const A=o[v];A.flags&128&>(f,R=>GB(A,R))&&Yw(o,v)}}}function obe(o){return!!(o.flags&1048576&&(o.aliasSymbol||o.origin))}function Det(o,f){for(const v of f)if(v.flags&1048576){const A=v.origin;v.aliasSymbol||A&&!(A.flags&1048576)?Dy(o,v):A&&A.flags&1048576&&Det(o,A.types)}}function XWe(o,f){const v=mT(o);return v.types=f,v}function dc(o,f=1,v,A,R){if(o.length===0)return Tc;if(o.length===1)return o[0];if(o.length===2&&!R&&(o[0].flags&1048576||o[1].flags&1048576)){const B=f===0?"N":f===2?"S":"L",Y=o[0].id=2&&B[0]===Ce&&B[1]===qe&&Yw(B,1),(Y&402664352||Y&16384&&Y&32768)&&Vk(B,Y,!!(f&2)),Y&128&&Y&134217728&&Cet(B),f===2&&(B=Hue(B,!!(Y&524288)),!B))return Sr;if(B.length===0)return Y&65536?Y&4194304?mn:Jn:Y&32768?Y&4194304?Ce:kt:Tc}if(!R&&Y&1048576){const Te=[];Det(Te,o);const Ue=[];for(const Rt of B)gt(Te,rn=>Z4(rn.types,Rt))||Ue.push(Rt);if(!v&&Te.length===1&&Ue.length===0)return Te[0];if(Em(Te,(Rt,rn)=>Rt+rn.types.length,0)+Ue.length===B.length){for(const Rt of Te)kV(Ue,Rt);R=XWe(1048576,Ue)}}const pe=(Y&36323331?0:32768)|(Y&2097152?16777216:0);return YWe(B,pe,v,A,R)}function Iet(o,f){let v;const A=[];for(const B of o){const Y=Wb(B);if(Y){if(Y.kind!==0&&Y.kind!==1||v&&!Jue(v,Y))return;v=Y,A.push(Y.type)}else{const pe=f!==2097152?np(B):void 0;if(pe!==vo&&pe!==Ro)return}}if(!v)return;const R=xPe(A,f);return nM(v.kind,v.parameterName,v.parameterIndex,R)}function Jue(o,f){return o.kind===f.kind&&o.parameterIndex===f.parameterIndex}function YWe(o,f,v,A,R){if(o.length===0)return Tc;if(o.length===1)return o[0];const Y=(R?R.flags&1048576?`|${B2(R.types)}`:R.flags&2097152?`&${B2(R.types)}`:`#${R.type.id}|${B2(o)}`:B2(o))+ZP(v,A);let pe=qn.get(Y);return pe||(pe=TC(1048576),pe.objectFlags=f|B1(o,98304),pe.types=o,pe.origin=R,pe.aliasSymbol=v,pe.aliasTypeArguments=A,o.length===2&&o[0].flags&512&&o[1].flags&512&&(pe.flags|=16,pe.intrinsicName="boolean"),qn.set(Y,pe)),pe}function ket(o){const f=rt(o);if(!f.resolvedType){const v=EO(o);f.resolvedType=dc(Vn(o.types,Xl),1,v,fK(v))}return f.resolvedType}function QWe(o,f,v){const A=v.flags;return A&2097152?ZWe(o,f,v.types):(VI(v)?f&16777216||(f|=16777216,o.set(v.id.toString(),v)):(A&3?v===Ei&&(f|=8388608):(Ke||!(A&98304))&&(v===qe&&(f|=262144,v=Ce),o.has(v.id.toString())||(v.flags&109472&&f&109472&&(f|=67108864),o.set(v.id.toString(),v))),f|=A&473694207),f)}function ZWe(o,f,v){for(const A of v)f=QWe(o,f,$S(A));return f}function Sgt(o,f){let v=o.length;for(;v>0;){v--;const A=o[v];(A.flags&4&&f&402653312||A.flags&8&&f&256||A.flags&64&&f&2048||A.flags&4096&&f&8192||A.flags&16384&&f&32768||VI(A)&&f&470302716)&&Yw(o,v)}}function eBe(o,f){for(const v of o)if(!Z4(v.types,f)){const A=f.flags&128?Nn:f.flags&288?Lr:f.flags&2048?qi:f.flags&8192?hc:void 0;if(!A||!Z4(v.types,A))return!1}return!0}function Pet(o){let f=o.length;const v=gi(o,A=>!!(A.flags&128));for(;f>0;){f--;const A=o[f];if(A.flags&134217728){for(const R of v)if(nL(R,A)){Yw(o,f);break}else if(NV(A))return!0}}return!1}function tBe(o,f){for(let v=0;v!(A.flags&f))}function abe(o){let f;const v=Ho(o,Y=>!!(ji(Y)&32768));if(v<0)return!1;let A=v+1;for(;A!!(Ue.flags&1048576&&Ue.types[0].flags&32768))){const Ue=gt(Y,cfe)?qe:Ce;tBe(Y,32768),Te=dc([vp(Y),Ue],1,f,v)}else if(jr(Y,Ue=>!!(Ue.flags&1048576&&(Ue.types[0].flags&65536||Ue.types[1].flags&65536))))tBe(Y,65536),Te=dc([vp(Y),mn],1,f,v);else{if(!sbe(Y))return Sr;const Ue=Egt(Y),St=gt(Ue,Rt=>!!(Rt.flags&2097152))&&nBe(Ue)>nBe(Y)?XWe(2097152,Y):void 0;Te=dc(Ue,1,f,v,St)}else Te=WPe(Y,f,v);Ia.set(pe,Te)}return Te}function Net(o){return Em(o,(f,v)=>v.flags&1048576?f*v.types.length:v.flags&131072?0:f,1)}function sbe(o){var f;const v=Net(o);return v>=1e5?((f=ps)==null||f.instant(ps.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:o.map(A=>A.id),size:v}),hn(ae,N.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Egt(o){const f=Net(o),v=[];for(let A=0;A=0;pe--)if(o[pe].flags&1048576){const Te=o[pe].types,Ue=Te.length;R[pe]=Te[B%Ue],B=Math.floor(B/Ue)}const Y=vp(R);Y.flags&131072||v.push(Y)}return v}function cbe(o){return!(o.flags&3145728)||o.aliasSymbol?1:o.flags&1048576&&o.origin?cbe(o.origin):nBe(o.types)}function nBe(o){return Em(o,(f,v)=>f+cbe(v),0)}function BPe(o,f=76){if(o.length!==2)return!1;const[v,A]=o;return!!(v.flags&f)&&A===hh||!!(A.flags&f)&&v===hh}function lbe(o){const f=rt(o);if(!f.resolvedType){const v=EO(o),A=Vn(o.types,Xl),R=BPe(A);f.resolvedType=vp(A,v,fK(v),R)}return f.resolvedType}function RB(o,f){const v=TC(4194304);return v.type=o,v.indexFlags=f,v}function zPe(o){const f=mT(4194304);return f.type=o,f}function wet(o,f){return f&1?o.resolvedStringIndexType||(o.resolvedStringIndexType=RB(o,1)):o.resolvedIndexType||(o.resolvedIndexType=RB(o,0))}function xgt(o,f){const v=BI(o),A=$v(o),R=bw(o.target||o);if(!R&&!(f&2))return A;const B=[];if(rK(o)){if(Tx(A))return wet(o,f);{const Te=yS(eM(o));gPe(Te,8576,!!(f&1),pe)}}else PO(V0e(A),pe);Tx(A)&&PO(A,pe);const Y=f&2?lv(dc(B),Te=>!(Te.flags&5)):dc(B);if(Y.flags&1048576&&A.flags&1048576&&B2(Y.types)===B2(A.types))return A;return Y;function pe(Te){const Ue=R?zu(R,Zue(o.mapper,v,Te)):Te;B.push(Ue===Nn?u_:Ue)}}function Ret(o){const f=BI(o);return v(bw(o)||f);function v(A){return A.flags&470810623?!0:A.flags&16777216?A.root.isDistributive&&A.checkType===f:A.flags&137363456?jr(A.types,v):A.flags&8388608?v(A.objectType)&&v(A.indexType):A.flags&33554432?v(A.baseType)&&v(A.constraint):A.flags&268435456?v(A.type):!1}}function SD(o){if(Lu(o))return Tc;if(S1(o))return $S(Bf(o));if(Qf(o))return $S(Jk(o));const f=FN(o);return f!==void 0?vS(Ic(f)):kr(o)?$S(Bf(o)):Tc}function c5(o,f,v){if(v||!(Vy(o)&6)){let A=Ae(Pue(o)).nameType;if(!A){const R=i_(o.valueDeclaration);A=o.escapedName==="default"?vS("default"):R&&SD(R)||(yA(o)?void 0:vS(Il(o)))}if(A&&A.flags&f)return A}return Tc}function Met(o,f){return!!(o.flags&f||o.flags&2097152&>(o.types,v=>Met(v,f)))}function rBe(o,f,v){const A=v&&(ji(o)&7||o.aliasSymbol)?zPe(o):void 0,R=Vn(zm(o),Y=>c5(Y,f)),B=Vn(JT(o),Y=>Y!==Fs&&Met(Y.keyType,f)?Y.keyType===Nn&&f&8?u_:Y.keyType:Tc);return dc(Hi(R,B),1,void 0,void 0,A)}function Let(o,f=0){return!!(o.flags&58982400||mM(o)||Fb(o)&&!Ret(o)||o.flags&1048576&&!(f&4)&&TPe(o)||o.flags&2097152&&Sy(o,465829888)&>(o.types,VI))}function CC(o,f=Rn){return o=zI(o),Let(o,f)?wet(o,f):o.flags&1048576?vp(Vn(o.types,v=>CC(v,f))):o.flags&2097152?dc(Vn(o.types,v=>CC(v,f))):ji(o)&32?xgt(o,f):o===Ei?Ei:o.flags&2?Tc:o.flags&131073?Ym:rBe(o,(f&2?128:402653316)|(f&1?0:12584),f===Rn)}function Oet(o){if(nn)return o;const f=RPe();return f?PB(f,[o,Nn]):Nn}function Agt(o){const f=Oet(CC(o));return f.flags&131072?Nn:f}function Fet(o){const f=rt(o);if(!f.resolvedType)switch(o.operator){case 143:f.resolvedType=CC(Xl(o.type));break;case 158:f.resolvedType=o.type.kind===155?_K(QM(o.parent)):Sr;break;case 148:f.resolvedType=Xl(o.type);break;default:re.assertNever(o.operator)}return f.resolvedType}function Cgt(o){const f=rt(o);return f.resolvedType||(f.resolvedType=MB([o.head.text,...Vn(o.templateSpans,v=>v.literal.text)],Vn(o.templateSpans,v=>Xl(v.type)))),f.resolvedType}function MB(o,f){const v=Ho(f,Ue=>!!(Ue.flags&1179648));if(v>=0)return sbe(f)?Th(f[v],Ue=>MB(o,vz(f,v,Ue))):Sr;if(ni(f,Ei))return Ei;const A=[],R=[];let B=o[0];if(!Te(o,f))return Nn;if(A.length===0)return vS(B);if(R.push(B),jr(R,Ue=>Ue==="")){if(jr(A,Ue=>!!(Ue.flags&4)))return Nn;if(A.length===1&&NV(A[0]))return A[0]}const Y=`${B2(A)}|${Vn(R,Ue=>Ue.length).join(",")}|${R.join("")}`;let pe=Qu.get(Y);return pe||Qu.set(Y,pe=Tte(R,A)),pe;function Te(Ue,St){for(let Rt=0;RtGI(o,v)):f.flags&128?vS(ube(o,f.value)):f.flags&134217728?MB(...iBe(o,f.texts,f.types)):f.flags&268435456&&o===f.symbol?f:f.flags&268435461||Tx(f)?iM(o,f):rA(f)?iM(o,MB(["",""],[f])):f}function ube(o,f){switch(nr.get(o.escapedName)){case 0:return f.toUpperCase();case 1:return f.toLowerCase();case 2:return f.charAt(0).toUpperCase()+f.slice(1);case 3:return f.charAt(0).toLowerCase()+f.slice(1)}return f}function iBe(o,f,v){switch(nr.get(o.escapedName)){case 0:return[f.map(A=>A.toUpperCase()),v.map(A=>GI(o,A))];case 1:return[f.map(A=>A.toLowerCase()),v.map(A=>GI(o,A))];case 2:return[f[0]===""?f:[f[0].charAt(0).toUpperCase()+f[0].slice(1),...f.slice(1)],f[0]===""?[GI(o,v[0]),...v.slice(1)]:v];case 3:return[f[0]===""?f:[f[0].charAt(0).toLowerCase()+f[0].slice(1),...f.slice(1)],f[0]===""?[GI(o,v[0]),...v.slice(1)]:v]}return[f,v]}function iM(o,f){const v=`${$d(o)},${By(f)}`;let A=Cu.get(v);return A||Cu.set(v,A=oBe(o,f)),A}function oBe(o,f){const v=L1(268435456,o);return v.type=f,v}function Wet(o,f,v,A,R){const B=TC(8388608);return B.objectType=o,B.indexType=f,B.accessFlags=v,B.aliasSymbol=A,B.aliasTypeArguments=R,B}function PV(o){if(Et)return!1;if(ji(o)&4096)return!0;if(o.flags&1048576)return jr(o.types,PV);if(o.flags&2097152)return gt(o.types,PV);if(o.flags&465829888){const f=bPe(o);return f!==o&&PV(f)}return!1}function LB(o,f){return yv(o)?vv(o):f&&qg(f)?FN(f):void 0}function $ue(o,f){if(f.flags&8208){const v=Ua(o.parent,A=>!Kf(A))||o.parent;return uR(v)?sk(v)&&xn(o)&&oze(v,o):jr(f.declarations,A=>!F_(A)||N2(A))}return!0}function Bet(o,f,v,A,R,B){const Y=R&&R.kind===212?R:void 0,pe=R&&Lu(R)?void 0:LB(v,R);if(pe!==void 0){if(B&256)return oN(f,pe)||Ge;const Ue=Yd(f,pe);if(Ue){if(B&64&&R&&Ue.declarations&&BS(Ue)&&$ue(R,Ue)){const Rt=(Y==null?void 0:Y.argumentExpression)??(Wx(R)?R.indexType:R);pS(Rt,Ue.declarations,pe)}if(Y){if(Pfe(Ue,Y,Uze(Y.expression,f.symbol)),dGe(Y,Ue,q8(Y))){hn(Y.argumentExpression,N.Cannot_assign_to_0_because_it_is_a_read_only_property,ru(Ue));return}if(B&8&&(rt(R).resolvedSymbol=Ue),gnt(Y,Ue))return Br}const St=B&4?QF(Ue):La(Ue);return Y&&q8(Y)!==1?s8(Y,St):R&&Wx(R)&&cfe(St)?dc([St,Ce]):St}if(Ex(f,Dp)&&FT(pe)){const St=+pe;if(R&&Ex(f,Rt=>!Rt.target.hasRestElement)&&!(B&16)){const Rt=aBe(R);if(Dp(f)){if(St<0)return hn(Rt,N.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ce;hn(Rt,N.Tuple_type_0_of_length_1_has_no_element_at_index_2,Co(f),Y6(f),Ic(pe))}else hn(Rt,N.Property_0_does_not_exist_on_type_1,Ic(pe),Co(f))}if(St>=0)return Te(Tw(f,Lr)),fNe(f,St,B&1?qe:void 0)}}if(!(v.flags&98304)&&zb(v,402665900)){if(f.flags&131073)return f;const Ue=CV(f,v)||Tw(f,Nn);if(Ue){if(B&2&&Ue.keyType!==Lr){Y&&(B&4?hn(Y,N.Type_0_is_generic_and_can_only_be_indexed_for_reading,Co(o)):hn(Y,N.Type_0_cannot_be_used_to_index_type_1,Co(v),Co(o)));return}if(R&&Ue.keyType===Nn&&!zb(v,12)){const St=aBe(R);return hn(St,N.Type_0_cannot_be_used_as_an_index_type,Co(v)),B&1?dc([Ue.type,qe]):Ue.type}return Te(Ue),B&1&&!(f.symbol&&f.symbol.flags&384&&v.symbol&&v.flags&1024&&xE(v.symbol)===f.symbol)?dc([Ue.type,qe]):Ue.type}if(v.flags&131072)return Tc;if(PV(f))return Ge;if(Y&&!Pwe(f)){if(IO(f)){if(Et&&v.flags&384)return j_.add(Bs(Y,N.Property_0_does_not_exist_on_type_1,v.value,Co(f))),Ce;if(v.flags&12){const St=Vn(f.properties,Rt=>La(Rt));return dc(ur(St,Ce))}}if(f.symbol===fr&&pe!==void 0&&fr.exports.has(pe)&&fr.exports.get(pe).flags&418)hn(Y,N.Property_0_does_not_exist_on_type_1,Ic(pe),Co(f));else if(Et&&!Pe.suppressImplicitAnyIndexErrors&&!(B&128))if(pe!==void 0&&Vze(pe,f)){const St=Co(f);hn(Y,N.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,pe,St,St+"["+Lv(Y.argumentExpression)+"]")}else if(vO(f,Lr))hn(Y.argumentExpression,N.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let St;if(pe!==void 0&&(St=awe(pe,f)))St!==void 0&&hn(Y.argumentExpression,N.Property_0_does_not_exist_on_type_1_Did_you_mean_2,pe,Co(f),St);else{const Rt=Jte(f,Y,v);if(Rt!==void 0)hn(Y,N.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Co(f),Rt);else{let rn;if(v.flags&1024)rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,"["+Co(v)+"]",Co(f));else if(v.flags&8192){const Sn=GS(v.symbol,Y);rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,"["+Sn+"]",Co(f))}else v.flags&128||v.flags&256?rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,v.value,Co(f)):v.flags&12&&(rn=Es(void 0,N.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Co(v),Co(f)));rn=Es(rn,N.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Co(A),Co(f)),j_.add(wN(ts(Y),Y,rn))}}}return}}if(PV(f))return Ge;if(R){const Ue=aBe(R);v.flags&384?hn(Ue,N.Property_0_does_not_exist_on_type_1,""+v.value,Co(f)):v.flags&12?hn(Ue,N.Type_0_has_no_matching_index_signature_for_type_1,Co(f),Co(v)):hn(Ue,N.Type_0_cannot_be_used_as_an_index_type,Co(v))}if(bn(v))return v;return;function Te(Ue){Ue&&Ue.isReadonly&&Y&&(VE(Y)||mH(Y))&&hn(Y,N.Index_signature_in_type_0_only_permits_reading,Co(f))}}function aBe(o){return o.kind===212?o.argumentExpression:o.kind===199?o.indexType:o.kind===167?o.expression:o}function rA(o){return o.flags&2097152?!uK(o)&>(o.types,f=>!!(f.flags&101248)||rA(f)):!!(o.flags&77)||NV(o)}function NV(o){return!!(o.flags&134217728)&&jr(o.types,rA)||!!(o.flags&268435456)&&rA(o.type)}function uK(o){return!!que(o)}function Ew(o){return!!(que(o)&4194304)}function Tx(o){return!!(que(o)&8388608)}function que(o){return o.flags&137363456?(o.objectFlags&2097152||(o.objectFlags|=2097152|Em(o.types,(f,v)=>f|que(v),0)),o.objectFlags&12582912):o.flags&33554432?(o.objectFlags&2097152||(o.objectFlags|=2097152|que(o.baseType)|que(o.constraint)),o.objectFlags&12582912):(o.flags&58982400||Fb(o)||mM(o)?4194304:0)|(o.flags&331612160&&!NV(o)?8388608:0)}function tN(o,f){return o.flags&8388608?sBe(o,f):o.flags&16777216?Dgt(o,f):o}function TO(o,f,v){if(o.flags&1048576||o.flags&2097152&&!Let(o)){const A=Vn(o.types,R=>tN(u0(R,f),v));return o.flags&2097152||v?vp(A):dc(A)}}function zet(o,f,v){if(f.flags&1048576){const A=Vn(f.types,R=>tN(u0(o,R),v));return v?vp(A):dc(A)}}function sBe(o,f){const v=f?"simplifiedForWriting":"simplifiedForReading";if(o[v])return o[v]===Ag?o:o[v];o[v]=Ag;const A=tN(o.objectType,f),R=tN(o.indexType,f),B=zet(A,R,f);if(B)return o[v]=B;if(!(R.flags&465829888)){const Y=TO(A,R,f);if(Y)return o[v]=Y}if(mM(A)&&R.flags&296){const Y=Ite(A,R.flags&8?0:A.target.fixedLength,0,f);if(Y)return o[v]=Y}return Fb(A)&&(!bw(A)||$Ze(A))?o[v]=Th(_p(A,o.indexType),Y=>tN(Y,f)):o[v]=o}function Dgt(o,f){const v=o.checkType,A=o.extendsType,R=SO(o),B=oM(o);if(B.flags&131072&&jI(R)===jI(v)){if(v.flags&1||Id(AO(v),AO(A)))return tN(R,f);if(GPe(v,A))return Tc}else if(R.flags&131072&&jI(B)===jI(v)){if(!(v.flags&1)&&Id(AO(v),AO(A)))return Tc;if(v.flags&1||GPe(v,A))return tN(B,f)}return o}function GPe(o,f){return!!(dc([j0e(o,f),Tc]).flags&131072)}function _p(o,f){const v=X0([BI(o)],[f]),A=lM(o.mapper,v);return zu(ZR(o.target||o),A)}function u0(o,f,v=0,A,R,B){return xw(o,f,v,A,R,B)||(A?Sr:Io)}function cBe(o,f){return Ex(o,v=>{if(v.flags&384){const A=vv(v);if(FT(A)){const R=+A;return R>=0&&R0&&!gt(o.elements,f=>MJ(f)||hW(f)||g6(f)&&!!(f.questionToken||f.dotDotDotToken))}function _Be(o,f){return uK(o)||f&&Dp(o)&>(Z6(o),uK)}function dBe(o,f,v,A){let R,B,Y=0;for(;;){if(Y===1e3)return hn(ae,N.Type_instantiation_is_excessively_deep_and_possibly_infinite),Sr;const Te=zu(jI(o.checkType),f),Ue=zu(o.extendsType,f);if(Te===Sr||Ue===Sr)return Sr;if(Te===Ei||Ue===Ei)return Ei;const St=fBe(o.node.checkType)&&fBe(o.node.extendsType)&&Nt(o.node.checkType.elements)===Nt(o.node.extendsType.elements),Rt=_Be(Te,St);let rn;if(o.inferTypeParameters){const xr=Ol(o.inferTypeParameters,Igt),Ai=xr!==o.inferTypeParameters?X0(o.inferTypeParameters,xr):void 0,So=ufe(xr,void 0,0);if(Ai){const Zs=lM(f,Ai);for(let ba=0;batL(Ai,Rt)),Sn=X0(St.outerTypeParameters,rn),xr=St.isDistributive?tL(St.checkType,Sn):void 0;if(!xr||xr===St.checkType||!(xr.flags&1179648))return o=St,f=Sn,v=void 0,A=void 0,St.aliasSymbol&&Y++,!0}}return!1}}function SO(o){return o.resolvedTrueType||(o.resolvedTrueType=zu(Xl(o.root.node.trueType),o.mapper))}function oM(o){return o.resolvedFalseType||(o.resolvedFalseType=zu(Xl(o.root.node.falseType),o.mapper))}function eL(o){return o.resolvedInferredTrueType||(o.resolvedInferredTrueType=o.combinedMapper?zu(Xl(o.root.node.trueType),o.combinedMapper):SO(o))}function Get(o){let f;return o.locals&&o.locals.forEach(v=>{v.flags&262144&&(f=ur(f,sh(v)))}),f}function aM(o){return o.isDistributive&&(xte(o.checkType,o.node.trueType)||xte(o.checkType,o.node.falseType))}function jet(o){const f=rt(o);if(!f.resolvedType){const v=Xl(o.checkType),A=EO(o),R=fK(A),B=EV(o,!0),Y=R?B:gi(B,Te=>xte(Te,o)),pe={node:o,checkType:v,extendsType:Xl(o.extendsType),isDistributive:!!(v.flags&262144),inferTypeParameters:Get(o),outerTypeParameters:Y,instantiations:void 0,aliasSymbol:A,aliasTypeArguments:R};f.resolvedType=dBe(pe,void 0),Y&&(pe.instantiations=new Map,pe.instantiations.set(B2(Y),f.resolvedType))}return f.resolvedType}function jPe(o){const f=rt(o);return f.resolvedType||(f.resolvedType=e5(sc(o.typeParameter))),f.resolvedType}function fbe(o){return xn(o)?[o]:ur(fbe(o.left),o.right)}function Kue(o){var f;const v=rt(o);if(!v.resolvedType){if(!MN(o))return hn(o.argument,N.String_literal_expected),v.resolvedSymbol=Pr,v.resolvedType=Sr;const A=o.isTypeOf?111551:o.flags&16777216?900095:788968,R=gS(o,o.argument.literal);if(!R)return v.resolvedSymbol=Pr,v.resolvedType=Sr;const B=!!((f=R.exports)!=null&&f.get("export=")),Y=hS(R,!1);if(ny(o.qualifier))if(Y.flags&A)v.resolvedType=l5(o,v,Y,A);else{const pe=A===111551?N.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:N.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;hn(o,pe,o.argument.literal.text),v.resolvedSymbol=Pr,v.resolvedType=Sr}else{const pe=fbe(o.qualifier);let Te=Y,Ue;for(;Ue=pe.shift();){const St=pe.length?1920:A,Rt=jp(Av(Te)),rn=o.isTypeOf||Cs(o)&&B?Yd(La(Rt),Ue.escapedText,!1,!0):void 0,xr=(o.isTypeOf?void 0:Ci(L2(Rt),Ue.escapedText,St))??rn;if(!xr)return hn(Ue,N.Namespace_0_has_no_exported_member_1,GS(Te),hm(Ue)),v.resolvedType=Sr;rt(Ue).resolvedSymbol=xr,rt(Ue.parent).resolvedSymbol=xr,Te=xr}v.resolvedType=l5(o,v,Te,A)}}return v.resolvedType}function l5(o,f,v,A){const R=Av(v);return f.resolvedSymbol=R,A===111551?Gnt(La(v),o):ebe(o,R)}function Ste(o){const f=rt(o);if(!f.resolvedType){const v=EO(o);if(V4(o.symbol).size===0&&!v)f.resolvedType=hh;else{let A=tA(16,o.symbol);A.aliasSymbol=v,A.aliasTypeArguments=fK(v),oF(o)&&o.isArrayType&&(A=hT(A)),f.resolvedType=A}}return f.resolvedType}function EO(o){let f=o.parent;for(;XN(f)||SW(f)||_I(f)&&f.operator===148;)f=f.parent;return L9(f)?sc(f):void 0}function fK(o){return o?Fo(o):void 0}function Ete(o){return!!(o.flags&524288)&&!Fb(o)}function xO(o){return _M(o)||!!(o.flags&474058748)}function pBe(o,f){if(!(o.flags&1048576))return o;if(jr(o.types,xO))return lr(o.types,_M)||M_;const v=lr(o.types,B=>!xO(B));if(!v||lr(o.types,B=>B!==v&&!xO(B)))return o;return R(v);function R(B){const Y=zd();for(const Te of zm(B))if(!(Vy(Te)&6)){if(_be(Te)){const Ue=Te.flags&65536&&!(Te.flags&32768),Rt=tp(16777220,Te.escapedName,mPe(Te)|(f?8:0));Rt.links.type=Ue?Ce:mb(La(Te),!0),Rt.declarations=Te.declarations,Rt.links.nameType=Ae(Te).nameType,Rt.links.syntheticOrigin=Te,Y.set(Te.escapedName,Rt)}}const pe=sy(B.symbol,Y,Yn,Yn,JT(B));return pe.objectFlags|=131200,pe}}function Aw(o,f,v,A,R){if(o.flags&1||f.flags&1)return Ge;if(o.flags&2||f.flags&2)return Io;if(o.flags&131072)return f;if(f.flags&131072)return o;if(o=pBe(o,R),o.flags&1048576)return sbe([o,f])?Th(o,Ue=>Aw(Ue,f,v,A,R)):Sr;if(f=pBe(f,R),f.flags&1048576)return sbe([o,f])?Th(f,Ue=>Aw(o,Ue,v,A,R)):Sr;if(f.flags&473960444)return o;if(Ew(o)||Ew(f)){if(_M(o))return f;if(o.flags&2097152){const Ue=o.types,St=Ue[Ue.length-1];if(Ete(St)&&Ete(f))return vp(Hi(Ue.slice(0,Ue.length-1),[Aw(St,f,v,A,R)]))}return vp([o,f])}const B=zd(),Y=new Set,pe=o===M_?JT(f):jZe([o,f]);for(const Ue of zm(f))Vy(Ue)&6?Y.add(Ue.escapedName):_be(Ue)&&B.set(Ue.escapedName,VPe(Ue,R));for(const Ue of zm(o))if(!(Y.has(Ue.escapedName)||!_be(Ue)))if(B.has(Ue.escapedName)){const St=B.get(Ue.escapedName),Rt=La(St);if(St.flags&16777216){const rn=Hi(Ue.declarations,St.declarations),Sn=4|Ue.flags&16777216,xr=tp(Sn,Ue.escapedName),Ai=La(Ue),So=hNe(Ai),la=hNe(Rt);xr.links.type=So===la?Ai:dc([Ai,la],2),xr.links.leftSpread=Ue,xr.links.rightSpread=St,xr.declarations=rn,xr.links.nameType=Ae(Ue).nameType,B.set(Ue.escapedName,xr)}}else B.set(Ue.escapedName,VPe(Ue,R));const Te=sy(v,B,Yn,Yn,Ol(pe,Ue=>kgt(Ue,R)));return Te.objectFlags|=2228352|A,Te}function _be(o){var f;return!gt(o.declarations,IT)&&(!(o.flags&106496)||!((f=o.declarations)!=null&&f.some(v=>Fl(v.parent))))}function VPe(o,f){const v=o.flags&65536&&!(o.flags&32768);if(!v&&f===z1(o))return o;const A=4|o.flags&16777216,R=tp(A,o.escapedName,mPe(o)|(f?8:0));return R.links.type=v?Ce:La(o),R.declarations=o.declarations,R.links.nameType=Ae(o).nameType,R.links.syntheticOrigin=o,R}function kgt(o,f){return o.isReadonly!==f?bx(o.keyType,o.type,f,o.declaration):o}function dbe(o,f,v,A){const R=L1(o,v);return R.value=f,R.regularType=A||R,R}function wV(o){if(o.flags&2976){if(!o.freshType){const f=dbe(o.flags,o.value,o.symbol,o);f.freshType=f,o.freshType=f}return o.freshType}return o}function $S(o){return o.flags&2976?o.regularType:o.flags&1048576?o.regularType||(o.regularType=Th(o,$S)):o}function Bb(o){return!!(o.flags&2976)&&o.freshType===o}function vS(o){let f;return zi.get(o)||(zi.set(o,f=dbe(128,o)),f)}function HA(o){let f;return na.get(o)||(na.set(o,f=dbe(256,o)),f)}function sM(o){let f;const v=tD(o);return _a.get(v)||(_a.set(v,f=dbe(2048,o)),f)}function UPe(o,f,v){let A;const R=`${f}${typeof o=="string"?"@":"#"}${o}`,B=1024|(typeof o=="string"?128:256);return us.get(R)||(us.set(R,A=dbe(B,o,v)),A)}function mBe(o){if(o.literal.kind===106)return mn;const f=rt(o);return f.resolvedType||(f.resolvedType=$S(Bf(o.literal))),f.resolvedType}function gBe(o){const f=L1(8192,o);return f.escapedName=`__@${f.symbol.escapedName}@${$d(f.symbol)}`,f}function _K(o){if(nSe(o)){const f=HM(o)?hx(o.left):hx(o);if(f){const v=Ae(f);return v.uniqueESSymbolType||(v.uniqueESSymbolType=gBe(f))}}return hc}function Pgt(o){const f=RT(o,!1,!1),v=f&&f.parent;if(v&&(Fl(v)||v.kind===264)&&!pd(f)&&(!Lh(f)||Lx(o,f.body)))return F1(sc(v)).thisType;if(v&&el(v)&&Ds(v.parent)&&jy(v.parent)===6)return F1(hx(v.parent.left).parent).thisType;const A=o.flags&16777216?LN(o):void 0;return A&&Jm(A)&&Ds(A.parent)&&jy(A.parent)===3?F1(hx(A.parent.left).parent).thisType:Ax(f)&&Lx(o,f.body)?F1(sc(f)).thisType:(hn(o,N.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Sr)}function Xue(o){const f=rt(o);return f.resolvedType||(f.resolvedType=Pgt(o)),f.resolvedType}function Vet(o){return Xl(pbe(o.type)||o.type)}function pbe(o){switch(o.kind){case 196:return pbe(o.type);case 189:if(o.elements.length===1&&(o=o.elements[0],o.kind===191||o.kind===202&&o.dotDotDotToken))return pbe(o.type);break;case 188:return o.elementType}}function HPe(o){const f=rt(o);return f.resolvedType||(f.resolvedType=o.dotDotDotToken?Vet(o):mb(Xl(o.type),!0,!!o.questionToken))}function Xl(o){return q4(Uet(o),o)}function Uet(o){switch(o.kind){case 133:case 319:case 320:return Ge;case 159:return Io;case 154:return Nn;case 150:return Lr;case 163:return qi;case 136:return Pc;case 155:return hc;case 116:return bl;case 157:return Ce;case 106:return mn;case 146:return Tc;case 151:return o.flags&524288&&!Et?Ge:G_;case 141:return Ao;case 197:case 110:return Xue(o);case 201:return mBe(o);case 183:return zue(o);case 182:return o.assertsModifier?bl:Pc;case 233:return zue(o);case 186:return _et(o);case 188:case 189:return xet(o);case 190:return rM(o);case 192:return ket(o);case 193:return lbe(o);case 321:return OWe(o);case 323:return mb(Xl(o.type));case 202:return HPe(o);case 196:case 322:case 316:return Xl(o.type);case 191:return Vet(o);case 325:return Bc(o);case 184:case 185:case 187:case 329:case 324:case 330:return Ste(o);case 198:return Fet(o);case 199:return lBe(o);case 200:return uBe(o);case 194:return jet(o);case 195:return jPe(o);case 203:return Cgt(o);case 205:return Kue(o);case 80:case 166:case 211:const f=ss(o);return f?sh(f):Sr;default:return Sr}}function Yue(o,f,v){if(o&&o.length)for(let A=0;AA.typeParameter),Vn(v,()=>Io))}function lM(o,f){return o?Que(4,o,f):f}function hBe(o,f){return o?Que(5,o,f):f}function u5(o,f,v){return v?Que(5,Cw(o,f),v):Cw(o,f)}function Zue(o,f,v){return o?Que(5,o,Cw(f,v)):Cw(f,v)}function Rgt(o){return!o.constraint&&!$4(o)||o.constraint===Pm?o:o.restrictiveInstantiation||(o.restrictiveInstantiation=c0(o.symbol),o.restrictiveInstantiation.constraint=Pm,o.restrictiveInstantiation)}function gbe(o){const f=c0(o.symbol);return f.target=o,f}function yBe(o,f){return nM(o.kind,o.parameterName,o.parameterIndex,zu(o.type,f))}function RV(o,f,v){let A;if(o.typeParameters&&!v){A=Vn(o.typeParameters,gbe),f=lM(X0(o.typeParameters,A),f);for(const B of A)B.mapper=f}const R=vw(o.declaration,A,o.thisParameter&&vBe(o.thisParameter,f),Yue(o.parameters,f,vBe),void 0,void 0,o.minArgumentCount,o.flags&167);return R.target=o,R.mapper=f,R}function vBe(o,f){const v=Ae(o);if(v.type&&!Iw(v.type)&&(!(o.flags&65536)||v.writeType&&!Iw(v.writeType)))return o;I_(o)&1&&(o=v.target,f=lM(v.mapper,f));const A=tp(o.flags,o.escapedName,1|I_(o)&53256);return A.declarations=o.declarations,A.parent=o.parent,A.links.target=o,A.links.mapper=f,o.valueDeclaration&&(A.valueDeclaration=o.valueDeclaration),v.nameType&&(A.links.nameType=v.nameType),A}function Jet(o,f,v,A){const R=o.objectFlags&4||o.objectFlags&8388608?o.node:o.symbol.declarations[0],B=rt(R),Y=o.objectFlags&4?B.resolvedType:o.objectFlags&64?o.target:o;let pe=B.outerTypeParameters;if(!pe){let Te=EV(R,!0);if(Ax(R)){const St=RWe(R);Te=Oi(Te,St)}pe=Te||Yn;const Ue=o.objectFlags&8388612?[R]:o.symbol.declarations;pe=(Y.objectFlags&8388612||Y.symbol.flags&8192||Y.symbol.flags&2048)&&!Y.aliasTypeArguments?gi(pe,St=>gt(Ue,Rt=>xte(St,Rt))):pe,B.outerTypeParameters=pe}if(pe.length){const Te=lM(o.mapper,f),Ue=Vn(pe,xr=>tL(xr,Te)),St=v||o.aliasSymbol,Rt=v?A:cM(o.aliasTypeArguments,f),rn=B2(Ue)+ZP(St,Rt);Y.instantiations||(Y.instantiations=new Map,Y.instantiations.set(B2(pe)+ZP(Y.aliasSymbol,Y.aliasTypeArguments),Y));let Sn=Y.instantiations.get(rn);if(!Sn){const xr=X0(pe,Ue);Sn=Y.objectFlags&4?Oue(o.target,o.node,xr,St,Rt):Y.objectFlags&32?bBe(Y,xr,St,Rt):TBe(Y,xr,St,Rt),Y.instantiations.set(rn,Sn);const Ai=ji(Sn);if(Sn.flags&138117121&&!(Ai&524288)){const So=gt(Ue,Iw);ji(Sn)&524288||(Ai&52?Sn.objectFlags|=524288|(So?1048576:0):Sn.objectFlags|=So?0:524288)}}return Sn}return o}function Mgt(o){return!(o.parent.kind===183&&o.parent.typeArguments&&o===o.parent.typeName||o.parent.kind===205&&o.parent.typeArguments&&o===o.parent.qualifier)}function xte(o,f){if(o.symbol&&o.symbol.declarations&&o.symbol.declarations.length===1){const A=o.symbol.declarations[0].parent;for(let R=f;R!==A;R=R.parent)if(!R||R.kind===241||R.kind===194&&s_(R.extendsType,v))return!0;return v(f)}return!0;function v(A){switch(A.kind){case 197:return!!o.isThisType;case 80:return!o.isThisType&&BE(A)&&Mgt(A)&&Uet(A)===o;case 186:const R=A.exprName,B=PS(R);if(!E2(B)){const Y=xD(B),pe=o.symbol.declarations[0],Te=pe.kind===168?pe.parent:o.isThisType?pe:void 0;if(Y.declarations&&Te)return gt(Y.declarations,Ue=>Lx(Ue,Te))||gt(A.typeArguments,v)}return!0;case 174:case 173:return!A.type&&!!A.body||gt(A.typeParameters,v)||gt(A.parameters,v)||!!A.type&&v(A.type)}return!!s_(A,v)}}function KPe(o){const f=$v(o);if(f.flags&4194304){const v=jI(f.type);if(v.flags&262144)return v}}function bBe(o,f,v,A){const R=KPe(o);if(R){const B=zu(R,f);if(R!==B)return Wtt(zI(B),Y=>{if(Y.flags&61603843&&Y!==Ei&&!Fn(Y)){if(!o.declaration.nameType){let pe;if(kE(Y)||Y.flags&1&&HT(R,4)<0&&(pe=gT(R))&&Ex(pe,_5))return $et(Y,o,u5(R,Y,f));if(mM(Y))return Lgt(Y,o,R,f);if(Dp(Y))return uM(Y,o,u5(R,Y,f))}return TBe(o,u5(R,Y,f))}return Y},v,A)}return zu($v(o),f)===Ei?Ei:TBe(o,f,v,A)}function hbe(o,f){return f&1?!0:f&2?!1:o}function Lgt(o,f,v,A){const R=o.target.elementFlags,B=Vn(Z6(o),(pe,Te)=>{const Ue=R[Te]&8?pe:R[Te]&4?hT(pe):TD([pe],[R[Te]]);return Ue===v?f:bBe(f,u5(v,Ue,A))}),Y=hbe(o.target.readonly,zk(f));return TD(B,Vn(B,pe=>8),Y)}function $et(o,f,v){const A=qet(f,Lr,!0,v);return Fn(A)?Sr:hT(A,hbe(zB(o),zk(f)))}function uM(o,f,v){const A=o.target.elementFlags,R=Vn(Z6(o),(Te,Ue)=>qet(f,vS(""+Ue),!!(A[Ue]&2),v)),B=zk(f),Y=B&4?Vn(A,Te=>Te&1?2:Te):B&8?Vn(A,Te=>Te&2?1:Te):A,pe=hbe(o.target.readonly,B);return ni(R,Sr)?Sr:TD(R,Y,pe,o.target.labeledElementDeclarations)}function qet(o,f,v,A){const R=Zue(A,BI(o),f),B=zu(ZR(o.target||o),R),Y=zk(o);return Ke&&Y&4&&!Sy(B,49152)?iL(B,!0):Ke&&Y&8&&v?IC(B,524288):B}function TBe(o,f,v,A){const R=tA(o.objectFlags&-1572865|64,o.symbol);if(o.objectFlags&32){R.declaration=o.declaration;const B=BI(o),Y=gbe(B);R.typeParameter=Y,f=lM(Cw(B,Y),f),Y.mapper=f}return o.objectFlags&8388608&&(R.node=o.node),R.target=o,R.mapper=f,R.aliasSymbol=v||o.aliasSymbol,R.aliasTypeArguments=v?A:cM(o.aliasTypeArguments,f),R.objectFlags|=R.aliasTypeArguments?B1(R.aliasTypeArguments):0,R}function SBe(o,f,v,A){const R=o.root;if(R.outerTypeParameters){const B=Vn(R.outerTypeParameters,Te=>tL(Te,f)),Y=B2(B)+ZP(v,A);let pe=R.instantiations.get(Y);if(!pe){const Te=X0(R.outerTypeParameters,B),Ue=R.checkType,St=R.isDistributive?tL(Ue,Te):void 0;pe=St&&Ue!==St&&St.flags&1179648?Wtt(zI(St),Rt=>dBe(R,u5(Ue,Rt,Te)),v,A):dBe(R,Te,v,A),R.instantiations.set(Y,pe)}return pe}return o}function zu(o,f){return o&&f?XPe(o,f,void 0,void 0):o}function XPe(o,f,v,A){var R;if(!Iw(o))return o;if(X===100||J>=5e6)return(R=ps)==null||R.instant(ps.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:o.id,instantiationDepth:X,instantiationCount:J}),hn(ae,N.Type_instantiation_is_excessively_deep_and_possibly_infinite),Sr;$++,J++,X++;const B=Ogt(o,f,v,A);return X--,B}function Ogt(o,f,v,A){const R=o.flags;if(R&262144)return tL(o,f);if(R&524288){const B=o.objectFlags;if(B&52){if(B&4&&!o.node){const Y=o.resolvedTypeArguments,pe=cM(Y,f);return pe!==Y?$We(o.target,pe):o}return B&1024?Fgt(o,f):Jet(o,f,v,A)}return o}if(R&3145728){const B=o.flags&1048576?o.origin:void 0,Y=B&&B.flags&3145728?B.types:o.types,pe=cM(Y,f);if(pe===Y&&v===o.aliasSymbol)return o;const Te=v||o.aliasSymbol,Ue=v?A:cM(o.aliasTypeArguments,f);return R&2097152||B&&B.flags&2097152?vp(pe,Te,Ue):dc(pe,1,Te,Ue)}if(R&4194304)return CC(zu(o.type,f));if(R&134217728)return MB(o.texts,cM(o.types,f));if(R&268435456)return GI(o.symbol,zu(o.type,f));if(R&8388608){const B=v||o.aliasSymbol,Y=v?A:cM(o.aliasTypeArguments,f);return u0(zu(o.objectType,f),zu(o.indexType,f),o.accessFlags,void 0,B,Y)}if(R&16777216)return SBe(o,lM(o.mapper,f),v,A);if(R&33554432){const B=zu(o.baseType,f),Y=zu(o.constraint,f);return B.flags&8650752&&uK(Y)?Sw(B,Y):Y.flags&3||Id(AO(B),AO(Y))?B:B.flags&8650752?Sw(B,Y):vp([Y,B])}return o}function Fgt(o,f){const v=zu(o.mappedType,f);if(!(ji(v)&32))return o;const A=zu(o.constraintType,f);if(!(A.flags&4194304))return o;const R=DO(zu(o.source,f),v,A);return R||o}function YPe(o){return o.flags&402915327?o:o.permissiveInstantiation||(o.permissiveInstantiation=zu(o,Wy))}function AO(o){return o.flags&402915327?o:(o.restrictiveInstantiation||(o.restrictiveInstantiation=zu(o,xg),o.restrictiveInstantiation.restrictiveInstantiation=o.restrictiveInstantiation),o.restrictiveInstantiation)}function EBe(o,f){return bx(o.keyType,zu(o.type,f),o.isReadonly,o.declaration)}function Sx(o){switch(re.assert(o.kind!==174||iC(o)),o.kind){case 218:case 219:case 174:case 262:return xBe(o);case 210:return gt(o.properties,Sx);case 209:return gt(o.elements,Sx);case 227:return Sx(o.whenTrue)||Sx(o.whenFalse);case 226:return(o.operatorToken.kind===57||o.operatorToken.kind===61)&&(Sx(o.left)||Sx(o.right));case 303:return Sx(o.initializer);case 217:return Sx(o.expression);case 292:return gt(o.properties,Sx)||Pb(o.parent)&>(o.parent.parent.children,Sx);case 291:{const{initializer:f}=o;return!!f&&Sx(f)}case 294:{const{expression:f}=o;return!!f&&Sx(f)}}return!1}function xBe(o){return YH(o)||ED(o)}function ED(o){return o.typeParameters||kS(o)||!o.body?!1:o.body.kind!==241?Sx(o.body):!!dR(o.body,f=>!!f.expression&&Sx(f.expression))}function efe(o){return(EP(o)||iC(o))&&xBe(o)}function ybe(o){if(o.flags&524288){const f=Gh(o);if(f.constructSignatures.length||f.callSignatures.length){const v=tA(16,o.symbol);return v.members=f.members,v.properties=f.properties,v.callSignatures=Yn,v.constructSignatures=Yn,v.indexInfos=Yn,v}}else if(o.flags&2097152)return vp(Vn(o.types,ybe));return o}function Xh(o,f){return qS(o,f,Q_)}function fM(o,f){return qS(o,f,Q_)?-1:0}function QPe(o,f){return qS(o,f,db)?-1:0}function Wgt(o,f){return qS(o,f,bC)?-1:0}function nL(o,f){return qS(o,f,bC)}function ABe(o,f){return qS(o,f,wm)}function Id(o,f){return qS(o,f,db)}function nN(o,f){return o.flags&1048576?jr(o.types,v=>nN(v,f)):f.flags&1048576?gt(f.types,v=>nN(o,v)):o.flags&2097152?gt(o.types,v=>nN(v,f)):o.flags&58982400?nN(US(o)||Io,f):VI(f)?!!(o.flags&67633152):f===Jt?!!(o.flags&67633152)&&!VI(o):f===ci?!!(o.flags&524288)&&wte(o):jA(o,QR(f))||kE(f)&&!zB(f)&&nN(o,A_)}function vbe(o,f){return qS(o,f,o1)}function bbe(o,f){return vbe(o,f)||vbe(f,o)}function a1(o,f,v,A,R,B){return $A(o,f,db,v,A,R,B)}function rN(o,f,v,A,R,B){return ZPe(o,f,db,v,A,R,B,void 0)}function ZPe(o,f,v,A,R,B,Y,pe){return qS(o,f,v)?!0:!A||!Ate(R,o,f,v,B,Y,pe)?$A(o,f,v,A,B,Y,pe):!1}function Ket(o){return!!(o.flags&16777216||o.flags&2097152&>(o.types,Ket))}function Ate(o,f,v,A,R,B,Y){if(!o||Ket(v))return!1;if(!$A(f,v,A,void 0)&&Xet(o,f,v,A,R,B,Y))return!0;switch(o.kind){case 234:if(!mS(o))break;case 294:case 217:return Ate(o.expression,f,v,A,R,B,Y);case 226:switch(o.operatorToken.kind){case 64:case 28:return Ate(o.right,f,v,A,R,B,Y)}break;case 210:return ett(o,f,v,A,B,Y);case 209:return kBe(o,f,v,A,B,Y);case 292:return OB(o,f,v,A,B,Y);case 219:return CBe(o,f,v,A,B,Y)}return!1}function Xet(o,f,v,A,R,B,Y){const pe=ed(f,0),Te=ed(f,1);for(const Ue of[Te,pe])if(gt(Ue,St=>{const Rt=np(St);return!(Rt.flags&131073)&&$A(Rt,v,A,void 0)})){const St=Y||{};a1(f,v,o,R,B,St);const Rt=St.errors[St.errors.length-1];return ml(Rt,Bs(o,Ue===Te?N.Did_you_mean_to_use_new_with_this_expression:N.Did_you_mean_to_call_this_expression)),!0}return!1}function CBe(o,f,v,A,R,B){if(Ou(o.body)||gt(o.parameters,_P))return!1;const Y=$B(f);if(!Y)return!1;const pe=ed(v,0);if(!Nt(pe))return!1;const Te=o.body,Ue=np(Y),St=dc(Vn(pe,np));if(!$A(Ue,St,A,void 0)){const Rt=Te&&Ate(Te,Ue,St,A,void 0,R,B);if(Rt)return Rt;const rn=B||{};if($A(Ue,St,A,Te,void 0,R,rn),rn.errors)return v.symbol&&Nt(v.symbol.declarations)&&ml(rn.errors[rn.errors.length-1],Bs(v.symbol.declarations[0],N.The_expected_type_comes_from_the_return_type_of_this_signature)),!(ob(o)&2)&&!Xe(Ue,"then")&&$A(m1e(Ue),St,A,void 0)&&ml(rn.errors[rn.errors.length-1],Bs(o,N.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Yet(o,f,v){const A=xw(f,v);if(A)return A;if(f.flags&1048576){const R=iA(o,f);if(R)return xw(R,v)}}function Qet(o,f){jte(o,f,!1);const v=MK(o,1);return Vte(),v}function Tbe(o,f,v,A,R,B){let Y=!1;for(const pe of o){const{errorNode:Te,innerExpression:Ue,nameType:St,errorMessage:Rt}=pe;let rn=Yet(f,v,St);if(!rn||rn.flags&8388608)continue;let Sn=xw(f,St);if(!Sn)continue;const xr=LB(St,void 0);if(!$A(Sn,rn,A,void 0)){const Ai=Ue&&Ate(Ue,Sn,rn,A,void 0,R,B);if(Y=!0,!Ai){const So=B||{},la=Ue?Qet(Ue,Sn):Sn;if(qt&&e8(la,rn)){const Zs=Bs(Te,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Co(la),Co(rn));j_.add(Zs),So.errors=[Zs]}else{const Zs=!!(xr&&(Yd(v,xr)||Pr).flags&16777216),ba=!!(xr&&(Yd(f,xr)||Pr).flags&16777216);rn=r8(rn,Zs),Sn=r8(Sn,Zs&&ba),$A(la,rn,A,Te,Rt,R,So)&&la!==Sn&&$A(Sn,rn,A,Te,Rt,R,So)}if(So.errors){const Zs=So.errors[So.errors.length-1],ba=yv(St)?vv(St):void 0,mo=ba!==void 0?Yd(v,ba):void 0;let Ya=!1;if(!mo){const Ra=CV(v,St);Ra&&Ra.declaration&&!ts(Ra.declaration).hasNoDefaultLib&&(Ya=!0,ml(Zs,Bs(Ra.declaration,N.The_expected_type_comes_from_this_index_signature)))}if(!Ya&&(mo&&Nt(mo.declarations)||v.symbol&&Nt(v.symbol.declarations))){const Ra=mo&&Nt(mo.declarations)?mo.declarations[0]:v.symbol.declarations[0];ts(Ra).hasNoDefaultLib||ml(Zs,Bs(Ra,N.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,ba&&!(St.flags&8192)?Ic(ba):Co(St),Co(v)))}}}}}return Y}function DBe(o,f,v,A,R,B){const Y=lv(v,ofe),pe=lv(v,St=>!ofe(St)),Te=pe!==Tc?$we(13,0,pe,void 0):void 0;let Ue=!1;for(let St=o.next();!St.done;St=o.next()){const{errorNode:Rt,innerExpression:rn,nameType:Sn,errorMessage:xr}=St.value;let Ai=Te;const So=Y!==Tc?Yet(f,Y,Sn):void 0;if(So&&!(So.flags&8388608)&&(Ai=Te?dc([Te,So]):So),!Ai)continue;let la=xw(f,Sn);if(!la)continue;const Zs=LB(Sn,void 0);if(!$A(la,Ai,A,void 0)){const ba=rn&&Ate(rn,la,Ai,A,void 0,R,B);if(Ue=!0,!ba){const mo=B||{},Ya=rn?Qet(rn,la):la;if(qt&&e8(Ya,Ai)){const Ra=Bs(Rt,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Co(Ya),Co(Ai));j_.add(Ra),mo.errors=[Ra]}else{const Ra=!!(Zs&&(Yd(Y,Zs)||Pr).flags&16777216),Va=!!(Zs&&(Yd(f,Zs)||Pr).flags&16777216);Ai=r8(Ai,Ra),la=r8(la,Ra&&Va),$A(Ya,Ai,A,Rt,xr,R,mo)&&Ya!==la&&$A(la,Ai,A,Rt,xr,R,mo)}}}}return Ue}function*bS(o){if(Nt(o.properties))for(const f of o.properties)rT(f)||Pze(oW(f.name))||(yield{errorNode:f.name,innerExpression:f.initializer,nameType:vS(oW(f.name))})}function*Bgt(o,f){if(!Nt(o.children))return;let v=0;for(let A=0;A1;let So,la;if(NPe(!1)!==Ka){const ba=vte(Ge);So=lv(Sn,mo=>Id(mo,ba)),la=lv(Sn,mo=>!Id(mo,ba))}else So=lv(Sn,ofe),la=lv(Sn,ba=>!ofe(ba));if(Ai){if(So!==Tc){const ba=TD(QNe(Ue,0)),mo=Bgt(Ue,Te);Y=DBe(mo,ba,So,A,R,B)||Y}else if(!qS(u0(f,rn),Sn,A)){Y=!0;const ba=hn(Ue.openingElement.tagName,N.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Rt,Co(Sn));B&&B.skipLogging&&(B.errors||(B.errors=[])).push(ba)}}else if(la!==Tc){const ba=xr[0],mo=JA(ba,rn,Te);mo&&(Y=Tbe(function*(){yield mo}(),f,v,A,R,B)||Y)}else if(!qS(u0(f,rn),Sn,A)){Y=!0;const ba=hn(Ue.openingElement.tagName,N.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Rt,Co(Sn));B&&B.skipLogging&&(B.errors||(B.errors=[])).push(ba)}}return Y;function Te(){if(!pe){const Ue=Lv(o.parent.tagName),St=Efe(aL(o)),Rt=St===void 0?"children":Ic(St),rn=u0(v,vS(Rt)),Sn=N._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;pe={...Sn,key:"!!ALREADY FORMATTED!!",message:Yie(Sn,Ue,Rt,Co(rn))}}return pe}}function*IBe(o,f){const v=Nt(o.elements);if(v)for(let A=0;ATe:KA(o)>Te))return A&&!(v&8)&&R(N.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,KA(o),Te),0;o.typeParameters&&o.typeParameters!==f.typeParameters&&(f=fgt(f),o=Kte(o,f,void 0,Y));const St=c2(o),Rt=Qte(o),rn=Qte(f);(Rt||rn)&&zu(Rt||rn,pe);const Sn=f.declaration?f.declaration.kind:0,xr=!(v&3)&&st&&Sn!==174&&Sn!==173&&Sn!==176;let Ai=-1;const So=J4(o);if(So&&So!==bl){const ba=J4(f);if(ba){const mo=!xr&&Y(So,ba,!1)||Y(ba,So,A);if(!mo)return A&&R(N.The_this_types_of_each_signature_are_incompatible),0;Ai&=mo}}const la=Rt||rn?Math.min(St,Te):Math.max(St,Te),Zs=Rt||rn?la-1:-1;for(let ba=0;ba=KA(o)&&ba=3&&f[0].flags&32768&&f[1].flags&65536&>(f,VI)?67108864:0)}return!!(o.objectFlags&67108864)}return!1}function dK(o){return!!((o.flags&1048576?o.types[0]:o).flags&32768)}function ntt(o){return o.flags&524288&&!Fb(o)&&zm(o).length===0&&JT(o).length===1&&!!Tw(o,Nn)||o.flags&3145728&&jr(o.types,ntt)||!1}function nNe(o,f,v){const A=o.flags&8?xE(o):o,R=f.flags&8?xE(f):f;if(A===R)return!0;if(A.escapedName!==R.escapedName||!(A.flags&256)||!(R.flags&256))return!1;const B=$d(A)+","+$d(R),Y=je.get(B);if(Y!==void 0&&!(!(Y&4)&&Y&2&&v))return!!(Y&1);const pe=La(R);for(const Te of zm(La(A)))if(Te.flags&8){const Ue=Yd(pe,Te.escapedName);if(!Ue||!(Ue.flags&8))return v?(v(N.Property_0_is_missing_in_type_1,Il(Te),Co(sh(R),void 0,64)),je.set(B,6)):je.set(B,2),!1}return je.set(B,1),!0}function tfe(o,f,v,A){const R=o.flags,B=f.flags;return B&1||R&131072||o===Ei||B&2&&!(v===wm&&R&1)?!0:B&131072?!1:!!(R&402653316&&B&4||R&128&&R&1024&&B&128&&!(B&1024)&&o.value===f.value||R&296&&B&8||R&256&&R&1024&&B&256&&!(B&1024)&&o.value===f.value||R&2112&&B&64||R&528&&B&16||R&12288&&B&4096||R&32&&B&32&&o.symbol.escapedName===f.symbol.escapedName&&nNe(o.symbol,f.symbol,A)||R&1024&&B&1024&&(R&1048576&&B&1048576&&nNe(o.symbol,f.symbol,A)||R&2944&&B&2944&&o.value===f.value&&nNe(o.symbol,f.symbol,A))||R&32768&&(!Ke&&!(B&3145728)||B&49152)||R&65536&&(!Ke&&!(B&3145728)||B&65536)||R&524288&&B&67108864&&!(v===wm&&VI(o)&&!(ji(o)&8192))||(v===db||v===o1)&&(R&1||R&8&&(B&32||B&256&&B&1024)||R&256&&!(R&1024)&&(B&32||B&256&&B&1024&&o.value===f.value)||jgt(f)))}function qS(o,f,v){if(Bb(o)&&(o=o.regularType),Bb(f)&&(f=f.regularType),o===f)return!0;if(v!==Q_){if(v===o1&&!(f.flags&131072)&&tfe(f,o,v)||tfe(o,f,v))return!0}else if(!((o.flags|f.flags)&61865984)){if(o.flags!==f.flags)return!1;if(o.flags&67358815)return!0}if(o.flags&524288&&f.flags&524288){const A=v.get(oNe(o,f,0,v,!1));if(A!==void 0)return!!(A&1)}return o.flags&469499904||f.flags&469499904?$A(o,f,v,void 0):!1}function PBe(o,f){return ji(o)&2048&&Pze(f.escapedName)}function Ebe(o,f){for(;;){const v=Bb(o)?o.regularType:mM(o)?rtt(o,f):ji(o)&4?o.node?qv(o.target,ch(o)):FBe(o)||o:o.flags&3145728?rNe(o,f):o.flags&33554432?f?o.baseType:Wue(o):o.flags&25165824?tN(o,f):o;if(v===o)return v;o=v}}function rNe(o,f){const v=zI(o);if(v!==o)return v;if(o.flags&2097152&>(o.types,VI)){const A=Ol(o.types,R=>Ebe(R,f));if(A!==o.types)return vp(A)}return o}function rtt(o,f){const v=Z6(o),A=Ol(v,R=>R.flags&25165824?tN(R,f):R);return v!==A?LPe(o.target,A):o}function $A(o,f,v,A,R,B,Y){var pe;let Te,Ue,St,Rt,rn,Sn,xr=0,Ai=0,So=0,la=0,Zs=!1,ba=0,mo=0,Ya,Ra,Va=16e6-v.size>>3;re.assert(v!==Q_||!A,"no error reporting in identity checking");const Da=Is(o,f,3,!!A,R);if(Ra&&ad(),Zs){const ar=oNe(o,f,0,v,!1);v.set(ar,6),(pe=ps)==null||pe.instant(ps.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:o.id,targetId:f.id,depth:Ai,targetDepth:So});const Gr=Va<=0?N.Excessive_complexity_comparing_types_0_and_1:N.Excessive_stack_depth_comparing_types_0_and_1,uo=hn(A||ae,Gr,Co(o),Co(f));Y&&(Y.errors||(Y.errors=[])).push(uo)}else if(Te){if(B){const uo=B();uo&&(OSe(uo,Te),Te=uo)}let ar;if(R&&A&&!Da&&o.symbol){const uo=Ae(o.symbol);if(uo.originatingImport&&!Py(uo.originatingImport)&&$A(La(uo.target),f,v,void 0)){const yc=Bs(uo.originatingImport,N.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);ar=ur(ar,yc)}}const Gr=wN(ts(A),A,Te,ar);Ue&&ml(Gr,...Ue),Y&&(Y.errors||(Y.errors=[])).push(Gr),(!Y||!Y.skipLogging)&&j_.add(Gr)}return A&&Y&&Y.skipLogging&&Da===0&&re.assert(!!Y.errors,"missed opportunity to interact with error."),Da!==0;function cc(ar){Te=ar.errorInfo,Ya=ar.lastSkippedInfo,Ra=ar.incompatibleStack,ba=ar.overrideNextErrorInfo,mo=ar.skipParentCounter,Ue=ar.relatedInfo}function V_(){return{errorInfo:Te,lastSkippedInfo:Ya,incompatibleStack:Ra==null?void 0:Ra.slice(),overrideNextErrorInfo:ba,skipParentCounter:mo,relatedInfo:Ue==null?void 0:Ue.slice()}}function fd(ar,...Gr){ba++,Ya=void 0,(Ra||(Ra=[])).push([ar,...Gr])}function ad(){const ar=Ra||[];Ra=void 0;const Gr=Ya;if(Ya=void 0,ar.length===1){Xf(...ar[0]),Gr&&ua(void 0,...Gr);return}let uo="";const qa=[];for(;ar.length;){const[yc,...Yo]=ar.pop();switch(yc.code){case N.Types_of_property_0_are_incompatible.code:{uo.indexOf("new ")===0&&(uo=`(${uo})`);const ic=""+Yo[0];uo.length===0?uo=`${ic}`:H2(ic,iu(Pe))?uo=`${uo}.${ic}`:ic[0]==="["&&ic[ic.length-1]==="]"?uo=`${uo}${ic}`:uo=`${uo}[${ic}]`;break}case N.Call_signature_return_types_0_and_1_are_incompatible.code:case N.Construct_signature_return_types_0_and_1_are_incompatible.code:case N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(uo.length===0){let ic=yc;yc.code===N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ic=N.Call_signature_return_types_0_and_1_are_incompatible:yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ic=N.Construct_signature_return_types_0_and_1_are_incompatible),qa.unshift([ic,Yo[0],Yo[1]])}else{const ic=yc.code===N.Construct_signature_return_types_0_and_1_are_incompatible.code||yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Zl=yc.code===N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";uo=`${ic}${uo}(${Zl})`}break}case N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{qa.unshift([N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Yo[0],Yo[1]]);break}case N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{qa.unshift([N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Yo[0],Yo[1],Yo[2]]);break}default:return re.fail(`Unhandled Diagnostic: ${yc.code}`)}}uo?Xf(uo[uo.length-1]===")"?N.The_types_returned_by_0_are_incompatible_between_these_types:N.The_types_of_0_are_incompatible_between_these_types,uo):qa.shift();for(const[yc,...Yo]of qa){const ic=yc.elidedInCompatabilityPyramid;yc.elidedInCompatabilityPyramid=!1,Xf(yc,...Yo),yc.elidedInCompatabilityPyramid=ic}Gr&&ua(void 0,...Gr)}function Xf(ar,...Gr){re.assert(!!A),Ra&&ad(),!ar.elidedInCompatabilityPyramid&&(mo===0?Te=Es(Te,ar,...Gr):mo--)}function KS(ar,...Gr){Xf(ar,...Gr),mo++}function PC(ar){re.assert(!!Te),Ue?Ue.push(ar):Ue=[ar]}function ua(ar,Gr,uo){Ra&&ad();const[qa,yc]=DE(Gr,uo);let Yo=Gr,ic=qa;if(afe(Gr)&&!pK(uo)&&(Yo=pM(Gr),re.assert(!Id(Yo,uo),"generalized source shouldn't be assignable"),ic=MI(Yo)),(uo.flags&8388608&&!(Gr.flags&8388608)?uo.objectType.flags:uo.flags)&262144&&uo!==fe&&uo!==_n){const vu=US(uo);let D_;vu&&(Id(Yo,vu)||(D_=Id(Gr,vu)))?Xf(N._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,D_?qa:ic,yc,Co(vu)):(Te=void 0,Xf(N._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,yc,ic))}if(ar)ar===N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&qt&&itt(Gr,uo).length&&(ar=N.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(v===o1)ar=N.Type_0_is_not_comparable_to_type_1;else if(qa===yc)ar=N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(qt&&itt(Gr,uo).length)ar=N.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(Gr.flags&128&&uo.flags&1048576){const vu=$te(Gr,uo);if(vu){Xf(N.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ic,yc,Co(vu));return}}ar=N.Type_0_is_not_assignable_to_type_1}Xf(ar,ic,yc)}function Ss(ar,Gr){const uo=mO(ar.symbol)?Co(ar,ar.symbol.valueDeclaration):Co(ar),qa=mO(Gr.symbol)?Co(Gr,Gr.symbol.valueDeclaration):Co(Gr);(gd===ar&&Nn===Gr||Dg===ar&&Lr===Gr||um===ar&&Pc===Gr||WWe()===ar&&hc===Gr)&&Xf(N._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,qa,uo)}function _f(ar,Gr,uo){return Dp(ar)?ar.target.readonly&&ife(Gr)?(uo&&Xf(N.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Co(ar),Co(Gr)),!1):_5(Gr):zB(ar)&&ife(Gr)?(uo&&Xf(N.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Co(ar),Co(Gr)),!1):Dp(Gr)?kE(ar):!0}function hd(ar,Gr,uo){return Is(ar,Gr,3,uo)}function Is(ar,Gr,uo=3,qa=!1,yc,Yo=0){if(ar===Gr)return-1;if(ar.flags&524288&&Gr.flags&402784252)return v===o1&&!(Gr.flags&131072)&&tfe(Gr,ar,v)||tfe(ar,Gr,v,qa?Xf:void 0)?-1:(qa&&pm(ar,Gr,ar,Gr,yc),0);const ic=Ebe(ar,!1);let Zl=Ebe(Gr,!0);if(ic===Zl)return-1;if(v===Q_)return ic.flags!==Zl.flags?0:ic.flags&67358815?-1:(Sh(ic,Zl),Kl(ic,Zl,!1,0,uo));if(ic.flags&262144&&IB(ic)===Zl)return-1;if(ic.flags&470302716&&Zl.flags&1048576){const vu=Zl.types,D_=vu.length===2&&vu[0].flags&98304?vu[1]:vu.length===3&&vu[0].flags&98304&&vu[1].flags&98304?vu[2]:void 0;if(D_&&!(D_.flags&98304)&&(Zl=Ebe(D_,!0),ic===Zl))return-1}if(v===o1&&!(Zl.flags&131072)&&tfe(Zl,ic,v)||tfe(ic,Zl,v,qa?Xf:void 0))return-1;if(ic.flags&469499904||Zl.flags&469499904){if(!(Yo&2)&&IO(ic)&&ji(ic)&8192&&cg(ic,Zl,qa))return qa&&ua(yc,ic,Gr.aliasSymbol?Gr:Zl),0;const D_=(v!==o1||UI(ic))&&!(Yo&2)&&ic.flags&405405692&&ic!==Jt&&Zl.flags&2621440&&D0(Zl)&&(zm(ic).length>0||k0(ic)),Qd=!!(ji(ic)&2048);if(D_&&!iNe(ic,Zl,Qd)){if(qa){const sd=Co(ar.aliasSymbol?ar:ic),Ip=Co(Gr.aliasSymbol?Gr:Zl),Eh=ed(ic,0),Gm=ed(ic,1);Eh.length>0&&Is(np(Eh[0]),Zl,1,!1)||Gm.length>0&&Is(np(Gm[0]),Zl,1,!1)?Xf(N.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,sd,Ip):Xf(N.Type_0_has_no_properties_in_common_with_type_1,sd,Ip)}return 0}Sh(ic,Zl);const uu=ic.flags&1048576&&ic.types.length<4&&!(Zl.flags&1048576)||Zl.flags&1048576&&Zl.types.length<4&&!(ic.flags&469499904)?f0(ic,Zl,qa,Yo):Kl(ic,Zl,qa,Yo,uo);if(uu)return uu}return qa&&pm(ar,Gr,ic,Zl,yc),0}function pm(ar,Gr,uo,qa,yc){var Yo,ic;const Zl=!!FBe(ar),vu=!!FBe(Gr);uo=ar.aliasSymbol||Zl?ar:uo,qa=Gr.aliasSymbol||vu?Gr:qa;let D_=ba>0;if(D_&&ba--,uo.flags&524288&&qa.flags&524288){const Qd=Te;_f(uo,qa,!0),Te!==Qd&&(D_=!!Te)}if(uo.flags&524288&&qa.flags&402784252)Ss(uo,qa);else if(uo.symbol&&uo.flags&524288&&Jt===uo)Xf(N.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ji(uo)&2048&&qa.flags&2097152){const Qd=qa.types,op=h5(dE.IntrinsicAttributes,A),uu=h5(dE.IntrinsicClassAttributes,A);if(!Fn(op)&&!Fn(uu)&&(ni(Qd,op)||ni(Qd,uu)))return}else Te=SPe(Te,Gr);if(!yc&&D_){Ya=[uo,qa];return}if(ua(yc,uo,qa),uo.flags&262144&&((ic=(Yo=uo.symbol)==null?void 0:Yo.declarations)!=null&&ic[0])&&!IB(uo)){const Qd=gbe(uo);if(Qd.constraint=zu(qa,Cw(uo,Qd)),wue(Qd)){const op=Co(qa,uo.symbol.declarations[0]);PC(Bs(uo.symbol.declarations[0],N.This_type_parameter_might_need_an_extends_0_constraint,op))}}}function Sh(ar,Gr){if(ps&&ar.flags&3145728&&Gr.flags&3145728){const uo=ar,qa=Gr;if(uo.objectFlags&qa.objectFlags&32768)return;const yc=uo.types.length,Yo=qa.types.length;yc*Yo>1e6&&ps.instant(ps.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:ar.id,sourceSize:yc,targetId:Gr.id,targetSize:Yo,pos:A==null?void 0:A.pos,end:A==null?void 0:A.end})}}function vb(ar,Gr){return dc(Em(ar,(qa,yc)=>{var Yo;yc=yS(yc);const ic=yc.flags&3145728?kWe(yc,Gr):$6(yc,Gr),Zl=ic&&La(ic)||((Yo=i5(yc,Gr))==null?void 0:Yo.type)||Ce;return ur(qa,Zl)},void 0)||Yn)}function cg(ar,Gr,uo){var qa;if(!t1e(Gr)||!Et&&ji(Gr)&4096)return!1;const yc=!!(ji(ar)&2048);if((v===db||v===o1)&&(Lte(Jt,Gr)||!yc&&_M(Gr)))return!1;let Yo=Gr,ic;Gr.flags&1048576&&(Yo=HSt(ar,Gr,Is)||gPt(Gr),ic=Yo.flags&1048576?Yo.types:[Yo]);for(const Zl of zm(ar))if(u1(Zl,ar.symbol)&&!PBe(ar,Zl)){if(!Afe(Yo,Zl.escapedName,yc)){if(uo){const vu=lv(Yo,t1e);if(!A)return re.fail();if(CR(A)||m1(A)||m1(A.parent)){Zl.valueDeclaration&&tx(Zl.valueDeclaration)&&ts(A)===ts(Zl.valueDeclaration.name)&&(A=Zl.valueDeclaration.name);const D_=ru(Zl),Qd=Iv(D_,vu),op=Qd?ru(Qd):void 0;op?Xf(N.Property_0_does_not_exist_on_type_1_Did_you_mean_2,D_,Co(vu),op):Xf(N.Property_0_does_not_exist_on_type_1,D_,Co(vu))}else{const D_=((qa=ar.symbol)==null?void 0:qa.declarations)&&pp(ar.symbol.declarations);let Qd;if(Zl.valueDeclaration&&Ua(Zl.valueDeclaration,op=>op===D_)&&ts(D_)===ts(A)){const op=Zl.valueDeclaration;re.assertNode(op,DN);const uu=op.name;A=uu,xn(uu)&&(Qd=awe(uu,vu))}Qd!==void 0?KS(N.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ru(Zl),Co(vu),Qd):KS(N.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ru(Zl),Co(vu))}}return!0}if(ic&&!Is(La(Zl),vb(ic,Zl.escapedName),3,uo))return uo&&fd(N.Types_of_property_0_are_incompatible,ru(Zl)),!0}return!1}function u1(ar,Gr){return ar.valueDeclaration&&Gr.valueDeclaration&&ar.valueDeclaration.parent===Gr.valueDeclaration}function f0(ar,Gr,uo,qa){if(ar.flags&1048576){if(Gr.flags&1048576){const yc=ar.origin;if(yc&&yc.flags&2097152&&Gr.aliasSymbol&&ni(yc.types,Gr))return-1;const Yo=Gr.origin;if(Yo&&Yo.flags&1048576&&ar.aliasSymbol&&ni(Yo.types,ar))return-1}return v===o1?Ht(ar,Gr,uo&&!(ar.flags&402784252),qa):Uc(ar,Gr,uo&&!(ar.flags&402784252),qa)}if(Gr.flags&1048576)return XA(hK(ar),Gr,uo&&!(ar.flags&402784252)&&!(Gr.flags&402784252));if(Gr.flags&2097152)return mr(ar,Gr,uo,2);if(v===o1&&Gr.flags&402784252){const yc=Ol(ar.types,Yo=>Yo.flags&465829888?US(Yo)||Io:Yo);if(yc!==ar.types){if(ar=vp(yc),ar.flags&131072)return 0;if(!(ar.flags&2097152))return Is(ar,Gr,1,!1)||Is(Gr,ar,1,!1)}}return Ht(ar,Gr,!1,1)}function jh(ar,Gr){let uo=-1;const qa=ar.types;for(const yc of qa){const Yo=XA(yc,Gr,!1);if(!Yo)return 0;uo&=Yo}return uo}function XA(ar,Gr,uo){const qa=Gr.types;if(Gr.flags&1048576){if(Z4(qa,ar))return-1;if(v!==o1&&ji(Gr)&32768&&!(ar.flags&1024)&&(ar.flags&2688||(v===bC||v===wm)&&ar.flags&256)){const Yo=ar===ar.regularType?ar.freshType:ar.regularType,ic=ar.flags&128?Nn:ar.flags&256?Lr:ar.flags&2048?qi:void 0;return ic&&Z4(qa,ic)||Yo&&Z4(qa,Yo)?-1:0}const yc=Dtt(Gr,ar);if(yc){const Yo=Is(ar,yc,2,!1);if(Yo)return Yo}}for(const yc of qa){const Yo=Is(ar,yc,2,!1);if(Yo)return Yo}if(uo){const yc=iA(ar,Gr,Is);yc&&Is(ar,yc,2,!0)}return 0}function mr(ar,Gr,uo,qa){let yc=-1;const Yo=Gr.types;for(const ic of Yo){const Zl=Is(ar,ic,2,uo,void 0,qa);if(!Zl)return 0;yc&=Zl}return yc}function Ht(ar,Gr,uo,qa){const yc=ar.types;if(ar.flags&1048576&&Z4(yc,Gr))return-1;const Yo=yc.length;for(let ic=0;ic=ic.types.length&&Yo.length%ic.types.length===0){const Qd=Is(vu,ic.types[Zl%ic.types.length],3,!1,void 0,qa);if(Qd){yc&=Qd;continue}}const D_=Is(vu,Gr,1,uo,void 0,qa);if(!D_)return 0;yc&=D_}return yc}function Ql(ar=Yn,Gr=Yn,uo=Yn,qa,yc){if(ar.length!==Gr.length&&v===Q_)return 0;const Yo=ar.length<=Gr.length?ar.length:Gr.length;let ic=-1;for(let Zl=0;Zl(sd|=Gm?16:8,uu(Gm)));let Ip;return la===3?((Yo=ps)==null||Yo.instant(ps.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:ar.id,sourceIdStack:rn.map(Gm=>Gm.id),targetId:Gr.id,targetIdStack:Sn.map(Gm=>Gm.id),depth:Ai,targetDepth:So}),Ip=3):((ic=ps)==null||ic.push(ps.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:ar.id,targetId:Gr.id}),Ip=Iu(ar,Gr,uo,qa),(Zl=ps)==null||Zl.pop()),R_&&(R_=uu),yc&1&&Ai--,yc&2&&So--,la=op,Ip?(Ip===-1||Ai===0&&So===0)&&Eh(Ip===-1||Ip===3):(v.set(vu,(uo?4:0)|2|sd),Va--,Eh(!1)),Ip;function Eh(Gm){for(let G1=Qd;G1Zl!==ar)&&(Yo=Is(ic,Gr,1,!1,void 0,qa))}Yo&&!(qa&2)&&Gr.flags&2097152&&!Ew(Gr)&&ar.flags&2621440?(Yo&=Ta(ar,Gr,uo,void 0,!1,0),Yo&&IO(ar)&&ji(ar)&8192&&(Yo&=Ey(ar,Gr,!1,uo,0))):Yo&&Ete(Gr)&&!_5(Gr)&&ar.flags&2097152&&yS(ar).flags&3670016&&!gt(ar.types,ic=>ic===Gr||!!(ji(ic)&262144))&&(Yo&=Ta(ar,Gr,uo,void 0,!0,qa))}return Yo&&cc(yc),Yo}function rl(ar,Gr,uo,qa,yc){let Yo,ic,Zl=!1,vu=ar.flags;const D_=Gr.flags;if(v===Q_){if(vu&3145728){let uu=jh(ar,Gr);return uu&&(uu&=jh(Gr,ar)),uu}if(vu&4194304)return Is(ar.type,Gr.type,3,!1);if(vu&8388608&&(Yo=Is(ar.objectType,Gr.objectType,3,!1))&&(Yo&=Is(ar.indexType,Gr.indexType,3,!1))||vu&16777216&&ar.root.isDistributive===Gr.root.isDistributive&&(Yo=Is(ar.checkType,Gr.checkType,3,!1))&&(Yo&=Is(ar.extendsType,Gr.extendsType,3,!1))&&(Yo&=Is(SO(ar),SO(Gr),3,!1))&&(Yo&=Is(oM(ar),oM(Gr),3,!1))||vu&33554432&&(Yo=Is(ar.baseType,Gr.baseType,3,!1))&&(Yo&=Is(ar.constraint,Gr.constraint,3,!1)))return Yo;if(!(vu&524288))return 0}else if(vu&3145728||D_&3145728){if(Yo=f0(ar,Gr,uo,qa))return Yo;if(!(vu&465829888||vu&524288&&D_&1048576||vu&2097152&&D_&467402752))return 0}if(vu&17301504&&ar.aliasSymbol&&ar.aliasTypeArguments&&ar.aliasSymbol===Gr.aliasSymbol&&!(xbe(ar)||xbe(Gr))){const uu=bh(ar.aliasSymbol);if(uu===Yn)return 1;const sd=Ae(ar.aliasSymbol).typeParameters,Ip=HS(sd),Eh=Gk(ar.aliasTypeArguments,sd,Ip,Cs(ar.aliasSymbol.valueDeclaration)),Gm=Gk(Gr.aliasTypeArguments,sd,Ip,Cs(ar.aliasSymbol.valueDeclaration)),G1=op(Eh,Gm,uu,qa);if(G1!==void 0)return G1}if(ftt(ar)&&!ar.target.readonly&&(Yo=Is(ch(ar)[0],Gr,1))||ftt(Gr)&&(Gr.target.readonly||ife(US(ar)||ar))&&(Yo=Is(ar,ch(Gr)[0],2)))return Yo;if(D_&262144){if(ji(ar)&32&&!ar.declaration.nameType&&Is(CC(Gr),$v(ar),3)&&!(zk(ar)&4)){const uu=ZR(ar),sd=u0(Gr,BI(ar));if(Yo=Is(uu,sd,3,uo))return Yo}if(v===o1&&vu&262144){let uu=gT(ar);if(uu&&wue(ar))for(;uu&&Uk(uu,sd=>!!(sd.flags&262144));){if(Yo=Is(uu,Gr,1,!1))return Yo;uu=gT(uu)}return 0}}else if(D_&4194304){const uu=Gr.type;if(vu&4194304&&(Yo=Is(uu,ar.type,3,!1)))return Yo;if(Dp(uu)){if(Yo=Is(ar,ibe(uu),2,uo))return Yo}else{const sd=yPe(uu);if(sd){if(Is(ar,CC(sd,Gr.indexFlags|4),2,uo)===-1)return-1}else if(Fb(uu)){const Ip=bw(uu),Eh=$v(uu);let Gm;if(Ip&&rK(uu)){const G1=yS(eM(uu)),Mw=[];gPe(G1,8576,!1,Lw=>void Mw.push(zu(Ip,Zue(uu.mapper,BI(uu),Lw)))),Gm=dc([...Mw,Ip])}else Gm=Ip||Eh;if(Is(ar,Gm,2,uo)===-1)return-1}}}else if(D_&8388608){if(vu&8388608){if((Yo=Is(ar.objectType,Gr.objectType,3,uo))&&(Yo&=Is(ar.indexType,Gr.indexType,3,uo)),Yo)return Yo;uo&&(ic=Te)}if(v===db||v===o1){const uu=Gr.objectType,sd=Gr.indexType,Ip=US(uu)||uu,Eh=US(sd)||sd;if(!Ew(Ip)&&!Tx(Eh)){const Gm=4|(Ip!==uu?2:0),G1=xw(Ip,Eh,Gm);if(G1){if(uo&&ic&&cc(yc),Yo=Is(ar,G1,2,uo,void 0,qa))return Yo;uo&&ic&&Te&&(Te=Qd([ic])<=Qd([Te])?ic:Te)}}}uo&&(ic=void 0)}else if(Fb(Gr)&&v!==Q_){const uu=!!Gr.declaration.nameType,sd=ZR(Gr),Ip=zk(Gr);if(!(Ip&8)){if(!uu&&sd.flags&8388608&&sd.objectType===ar&&sd.indexType===BI(Gr))return-1;if(!Fb(ar)){const Eh=uu?bw(Gr):$v(Gr),Gm=CC(ar,2),G1=Ip&4,Mw=G1?j0e(Eh,Gm):void 0;if(G1?!(Mw.flags&131072):Is(Eh,Gm,3)){const Lw=ZR(Gr),YV=BI(Gr),t_e=Ote(Lw,-98305);if(!uu&&t_e.flags&8388608&&t_e.indexType===YV){if(Yo=Is(ar,t_e.objectType,2,uo))return Yo}else{const hne=uu?Mw||Eh:Mw?vp([Mw,YV]):YV,_8=u0(ar,hne);if(Yo=Is(_8,Lw,3,uo))return Yo}}ic=Te,cc(yc)}}}else if(D_&16777216){if(BB(Gr,Sn,So,10))return 3;const uu=Gr;if(!uu.root.inferTypeParameters&&!aM(uu.root)&&!(ar.flags&16777216&&ar.root===uu.root)){const sd=!Id(YPe(uu.checkType),YPe(uu.extendsType)),Ip=!sd&&Id(AO(uu.checkType),AO(uu.extendsType));if((Yo=sd?-1:Is(ar,SO(uu),2,!1,void 0,qa))&&(Yo&=Ip?-1:Is(ar,oM(uu),2,!1,void 0,qa),Yo))return Yo}}else if(D_&134217728){if(vu&134217728){if(v===o1)return XBe(ar,Gr)?0:-1;zu(ar,og)}if(GB(ar,Gr))return-1}else if(Gr.flags&268435456&&!(ar.flags&268435456)&&yK(ar,Gr))return-1;if(vu&8650752){if(!(vu&8388608&&D_&8388608)){const uu=IB(ar)||Io;if(Yo=Is(uu,Gr,1,!1,void 0,qa))return Yo;if(Yo=Is(vx(uu,ar),Gr,1,uo&&uu!==Io&&!(D_&vu&262144),void 0,qa))return Yo;if(J0e(ar)){const sd=IB(ar.indexType);if(sd&&(Yo=Is(u0(ar.objectType,sd),Gr,1,uo)))return Yo}}}else if(vu&4194304){if(Yo=Is(Ym,Gr,1,uo))return Yo}else if(vu&134217728&&!(D_&524288)){if(!(D_&134217728)){const uu=US(ar);if(uu&&uu!==ar&&(Yo=Is(uu,Gr,1,uo)))return Yo}}else if(vu&268435456)if(D_&268435456){if(ar.symbol!==Gr.symbol)return 0;if(Yo=Is(ar.type,Gr.type,3,uo))return Yo}else{const uu=US(ar);if(uu&&(Yo=Is(uu,Gr,1,uo)))return Yo}else if(vu&16777216){if(BB(ar,rn,Ai,10))return 3;if(D_&16777216){const sd=ar.root.inferTypeParameters;let Ip=ar.extendsType,Eh;if(sd){const Gm=ufe(sd,void 0,0,hd);kw(Gm.inferences,Gr.extendsType,Ip,1536),Ip=zu(Ip,Gm.mapper),Eh=Gm.mapper}if(Xh(Ip,Gr.extendsType)&&(Is(ar.checkType,Gr.checkType,3)||Is(Gr.checkType,ar.checkType,3))&&((Yo=Is(zu(SO(ar),Eh),SO(Gr),3,uo))&&(Yo&=Is(oM(ar),oM(Gr),3,uo)),Yo))return Yo}else{const sd=wue(ar)?vPe(ar):void 0;if(sd&&(Yo=Is(sd,Gr,1,uo)))return Yo}const uu=H0e(ar);if(uu&&(Yo=Is(uu,Gr,1,uo)))return Yo}else{if(v!==bC&&v!==wm&&CWe(Gr)&&_M(ar))return-1;if(Fb(Gr))return Fb(ar)&&(Yo=Dc(ar,Gr,uo))?Yo:0;const uu=!!(vu&402784252);if(v!==Q_)ar=yS(ar),vu=ar.flags;else if(Fb(ar))return 0;if(ji(ar)&4&&ji(Gr)&4&&ar.target===Gr.target&&!Dp(ar)&&!(xbe(ar)||xbe(Gr))){if(kbe(ar))return-1;const sd=wBe(ar.target);if(sd===Yn)return 1;const Ip=op(ch(ar),ch(Gr),sd,qa);if(Ip!==void 0)return Ip}else{if(zB(Gr)?Ex(ar,_5):kE(Gr)&&Ex(ar,sd=>Dp(sd)&&!sd.target.readonly))return v!==Q_?Is(vO(ar,Lr)||Ge,vO(Gr,Lr)||Ge,3,uo):0;if(mM(ar)&&Dp(Gr)&&!mM(Gr)){const sd=tM(ar);if(sd!==ar)return Is(sd,Gr,1,uo)}else if((v===bC||v===wm)&&_M(Gr)&&ji(Gr)&8192&&!_M(ar))return 0}if(vu&2621440&&D_&524288){const sd=uo&&Te===yc.errorInfo&&!uu;if(Yo=Ta(ar,Gr,sd,void 0,!1,qa),Yo&&(Yo&=Lc(ar,Gr,0,sd,qa),Yo&&(Yo&=Lc(ar,Gr,1,sd,qa),Yo&&(Yo&=Ey(ar,Gr,uu,sd,qa)))),Zl&&Yo)Te=ic||Te||yc.errorInfo;else if(Yo)return Yo}if(vu&2621440&&D_&1048576){const sd=Ote(Gr,36175872);if(sd.flags&1048576){const Ip=yr(ar,sd);if(Ip)return Ip}}}return 0;function Qd(uu){return uu?Em(uu,(sd,Ip)=>sd+1+Qd(Ip.next),0):0}function op(uu,sd,Ip,Eh){if(Yo=Ql(uu,sd,Ip,uo,Eh))return Yo;if(gt(Ip,G1=>!!(G1&24))){ic=void 0,cc(yc);return}const Gm=sd&&WB(sd,Ip);if(Zl=!Gm,Ip!==Yn&&!Gm){if(Zl&&!(uo&>(Ip,G1=>(G1&7)===0)))return 0;ic=Te,cc(yc)}}}function Dc(ar,Gr,uo){if(v===o1||(v===Q_?zk(ar)===zk(Gr):iK(ar)<=iK(Gr))){let yc;const Yo=$v(Gr),ic=zu($v(ar),iK(ar)<0?km:og);if(yc=Is(Yo,ic,3,uo)){const Zl=X0([BI(ar)],[BI(Gr)]);if(zu(bw(ar),Zl)===zu(bw(Gr),Zl))return yc&Is(zu(ZR(ar),Zl),ZR(Gr),3,uo)}}return 0}function yr(ar,Gr){var uo;const qa=zm(ar),yc=CNe(qa,Gr);if(!yc)return 0;let Yo=1;for(const op of yc)if(Yo*=ght(AC(op)),Yo>25)return(uo=ps)==null||uo.instant(ps.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:ar.id,targetId:Gr.id,numCombinations:Yo}),0;const ic=new Array(yc.length),Zl=new Set;for(let op=0;opop[Ip],!1,0,Ke||v===o1))continue e}Dy(D_,sd,_1),uu=!0}if(!uu)return 0}let Qd=-1;for(const op of D_)if(Qd&=Ta(ar,op,!1,Zl,!1,0),Qd&&(Qd&=Lc(ar,op,0,!1,0),Qd&&(Qd&=Lc(ar,op,1,!1,0),Qd&&!(Dp(ar)&&Dp(op))&&(Qd&=Ey(ar,op,!1,!1,0)))),!Qd)return Qd;return Qd}function pi(ar,Gr){if(!Gr||ar.length===0)return ar;let uo;for(let qa=0;qa5?Xf(N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Co(ar),Co(Gr),Vn(Yo.slice(0,4),ic=>ru(ic)).join(", "),Yo.length-4):Xf(N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Co(ar),Co(Gr),Vn(Yo,ic=>ru(ic)).join(", ")),yc&&Te&&ba++)}function Ta(ar,Gr,uo,qa,yc,Yo){if(v===Q_)return Ju(ar,Gr,qa);let ic=-1;if(Dp(Gr)){if(_5(ar)){if(!Gr.target.readonly&&(zB(ar)||Dp(ar)&&ar.target.readonly))return 0;const op=Y6(ar),uu=Y6(Gr),sd=Dp(ar)?ar.target.combinedFlags&4:4,Ip=Gr.target.combinedFlags&4,Eh=Dp(ar)?ar.target.minLength:0,Gm=Gr.target.minLength;if(!sd&&op=Lw?uu-1-Math.min(YGe,YV):_8,si=Gr.target.elementFlags[oA];if(si&8&&!(ez&8))return uo&&Xf(N.Source_provides_no_match_for_variadic_element_at_position_0_in_target,oA),0;if(ez&8&&!(si&12))return uo&&Xf(N.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,_8,oA),0;if(si&1&&!(ez&1))return uo&&Xf(N.Source_provides_no_match_for_required_element_at_position_0_in_target,oA),0;if(hne&&((ez&12||si&12)&&(hne=!1),hne&&(qa!=null&&qa.has(""+_8))))continue;const $c=r8(G1[_8],!!(ez&si&2)),Ul=Mw[oA],Pl=ez&8&&si&4?hT(Ul):r8(Ul,!!(si&2)),Hl=Is($c,Pl,3,uo,void 0,Yo);if(!Hl)return uo&&(uu>1||op>1)&&(t_e&&_8>=Lw&&YGe>=YV&&Lw!==op-YV-1?fd(N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Lw,op-YV-1,oA):fd(N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,_8,oA)),0;ic&=Hl}return ic}if(Gr.target.combinedFlags&12)return 0}const Zl=(v===bC||v===wm)&&!IO(ar)&&!kbe(ar)&&!Dp(ar),vu=ENe(ar,Gr,Zl,!1);if(vu)return uo&&_d(ar,Gr)&&wo(ar,Gr,vu,Zl),0;if(IO(Gr)){for(const op of pi(zm(ar),qa))if(!$6(Gr,op.escapedName)&&!(La(op).flags&32768))return uo&&Xf(N.Property_0_does_not_exist_on_type_1,ru(op),Co(Gr)),0}const D_=zm(Gr),Qd=Dp(ar)&&Dp(Gr);for(const op of pi(D_,qa)){const uu=op.escapedName;if(!(op.flags&4194304)&&(!Qd||FT(uu)||uu==="length")&&(!yc||op.flags&16777216)){const sd=Yd(ar,uu);if(sd&&sd!==op){const Ip=Bi(ar,Gr,sd,op,AC,uo,Yo,v===o1);if(!Ip)return 0;ic&=Ip}}}return ic}function Ju(ar,Gr,uo){if(!(ar.flags&524288&&Gr.flags&524288))return 0;const qa=pi(W2(ar),uo),yc=pi(W2(Gr),uo);if(qa.length!==yc.length)return 0;let Yo=-1;for(const ic of qa){const Zl=$6(Gr,ic.escapedName);if(!Zl)return 0;const vu=MBe(ic,Zl,Is);if(!vu)return 0;Yo&=vu}return Yo}function Lc(ar,Gr,uo,qa,yc){var Yo,ic;if(v===Q_)return a_(ar,Gr,uo);if(Gr===Qi||ar===Qi)return-1;const Zl=ar.symbol&&Ax(ar.symbol.valueDeclaration),vu=Gr.symbol&&Ax(Gr.symbol.valueDeclaration),D_=ed(ar,Zl&&uo===1?0:uo),Qd=ed(Gr,vu&&uo===1?0:uo);if(uo===1&&D_.length&&Qd.length){const Eh=!!(D_[0].flags&4),Gm=!!(Qd[0].flags&4);if(Eh&&!Gm)return qa&&Xf(N.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!xy(D_[0],Qd[0],qa))return 0}let op=-1;const uu=uo===1?Rl:ga,sd=ji(ar),Ip=ji(Gr);if(sd&64&&Ip&64&&ar.symbol===Gr.symbol||sd&4&&Ip&4&&ar.target===Gr.target)for(let Eh=0;EhFk(Lw,void 0,262144,uo);return Xf(N.Type_0_is_not_assignable_to_type_1,Mw(Gm),Mw(G1)),Xf(N.Types_of_construct_signatures_are_incompatible),op}}else e:for(const Eh of Qd){const Gm=V_();let G1=qa;for(const Mw of D_){const Lw=af(Mw,Eh,!0,G1,yc,uu(Mw,Eh));if(Lw){op&=Lw,cc(Gm);continue e}G1=!1}return G1&&Xf(N.Type_0_provides_no_match_for_the_signature_1,Co(ar),Fk(Eh,void 0,void 0,uo)),0}return op}function _d(ar,Gr){const uo=$0e(ar,0),qa=$0e(ar,1),yc=W2(ar);return(uo.length||qa.length)&&!yc.length?!!(ed(Gr,0).length&&uo.length||ed(Gr,1).length&&qa.length):!0}function ga(ar,Gr){return ar.parameters.length===0&&Gr.parameters.length===0?(uo,qa)=>fd(N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Co(uo),Co(qa)):(uo,qa)=>fd(N.Call_signature_return_types_0_and_1_are_incompatible,Co(uo),Co(qa))}function Rl(ar,Gr){return ar.parameters.length===0&&Gr.parameters.length===0?(uo,qa)=>fd(N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Co(uo),Co(qa)):(uo,qa)=>fd(N.Construct_signature_return_types_0_and_1_are_incompatible,Co(uo),Co(qa))}function af(ar,Gr,uo,qa,yc,Yo){const ic=v===bC?16:v===wm?24:0;return Sbe(uo?Mue(ar):ar,uo?Mue(Gr):Gr,ic,qa,Xf,Yo,Zl,og);function Zl(vu,D_,Qd){return Is(vu,D_,3,Qd,void 0,yc)}}function a_(ar,Gr,uo){const qa=ed(ar,uo),yc=ed(Gr,uo);if(qa.length!==yc.length)return 0;let Yo=-1;for(let ic=0;icvu.keyType===Nn);let Zl=-1;for(const vu of Yo){const D_=v!==wm&&!uo&&ic&&vu.type.flags&1?-1:Fb(ar)&&ic?Is(ZR(ar),vu.type,3,qa):Yh(ar,vu,qa,yc);if(!D_)return 0;Zl&=D_}return Zl}function Yh(ar,Gr,uo,qa){const yc=CV(ar,Gr.keyType);return yc?Gb(yc,Gr,uo,qa):!(qa&1)&&(v!==wm||ji(ar)&8192)&&Nbe(ar)?Op(ar,Gr,uo,qa):(uo&&Xf(N.Index_signature_for_type_0_is_missing_in_type_1,Co(Gr.keyType),Co(ar)),0)}function TS(ar,Gr){const uo=JT(ar),qa=JT(Gr);if(uo.length!==qa.length)return 0;for(const yc of qa){const Yo=Tw(ar,yc.keyType);if(!(Yo&&Is(Yo.type,yc.type,3)&&Yo.isReadonly===yc.isReadonly))return 0}return-1}function xy(ar,Gr,uo){if(!ar.declaration||!Gr.declaration)return!0;const qa=fk(ar.declaration,6),yc=fk(Gr.declaration,6);return yc===2||yc===4&&qa!==2||yc!==4&&!qa?!0:(uo&&Xf(N.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,mw(qa),mw(yc)),!1)}}function pK(o){if(o.flags&16)return!1;if(o.flags&3145728)return!!Ot(o.types,pK);if(o.flags&465829888){const f=IB(o);if(f&&f!==o)return pK(f)}return UI(o)||!!(o.flags&134217728)||!!(o.flags&268435456)}function itt(o,f){return Dp(o)&&Dp(f)?Yn:zm(f).filter(v=>e8(Xe(o,v.escapedName),La(v)))}function e8(o,f){return!!o&&!!f&&Sy(o,32768)&&!!cfe(f)}function dM(o){return zm(o).filter(f=>cfe(La(f)))}function iA(o,f,v=QPe){return HSt(o,f,v)||_Pt(o,f)||dPt(o,f)||pPt(o,f)||mPt(o,f)}function NBe(o,f,v){const A=o.types,R=A.map(Y=>Y.flags&402784252?0:-1);for(const[Y,pe]of f){let Te=!1;for(let Ue=0;UeR[pe]),0):o;return B.flags&131072?o:B}function D0(o){if(o.flags&524288){const f=Gh(o);return f.callSignatures.length===0&&f.constructSignatures.length===0&&f.indexInfos.length===0&&f.properties.length>0&&jr(f.properties,v=>!!(v.flags&16777216))}return o.flags&2097152?jr(o.types,D0):!1}function iNe(o,f,v){for(const A of zm(o))if(Afe(f,A.escapedName,v))return!0;return!1}function wBe(o){return o===t_||o===A_||o.objectFlags&8?et:RBe(o.symbol,o.typeParameters)}function bh(o){return RBe(o,Ae(o).typeParameters)}function RBe(o,f=Yn){var v,A;const R=Ae(o);if(!R.variances){(v=ps)==null||v.push(ps.Phase.CheckTypes,"getVariancesWorker",{arity:f.length,id:By(sh(o))});const B=L_;L_||(L_=!0,ju=Js.length),R.variances=Yn;const Y=[];for(const pe of f){const Te=FB(pe);let Ue=Te&16384?Te&8192?0:1:Te&8192?2:void 0;if(Ue===void 0){let St=!1,Rt=!1;const rn=R_;R_=Ai=>Ai?Rt=!0:St=!0;const Sn=f5(o,pe,x0),xr=f5(o,pe,Nm);Ue=(Id(xr,Sn)?1:0)|(Id(Sn,xr)?2:0),Ue===3&&Id(f5(o,pe,Md),Sn)&&(Ue=4),R_=rn,(St||Rt)&&(St&&(Ue|=8),Rt&&(Ue|=16))}Y.push(Ue)}B||(L_=!1,ju=0),R.variances=Y,(A=ps)==null||A.pop({variances:Y.map(re.formatVariance)})}return R.variances}function f5(o,f,v){const A=Cw(f,v),R=sh(o);if(Fn(R))return R;const B=o.flags&524288?PB(o,cM(Ae(o).typeParameters,A)):qv(R,cM(R.typeParameters,A));return Mr.add(By(B)),B}function xbe(o){return Mr.has(By(o))}function FB(o){var f;return Em((f=o.symbol)==null?void 0:f.declarations,(v,A)=>v|Cb(A),0)&28672}function WB(o,f){for(let v=0;v!!(f.flags&262144)||nfe(f))}function ott(o,f,v,A){const R=[];let B="";const Y=Te(o,0),pe=Te(f,0);return`${B}${Y},${pe}${v}`;function Te(Ue,St=0){let Rt=""+Ue.target.id;for(const rn of ch(Ue)){if(rn.flags&262144){if(A||mK(rn)){let Sn=R.indexOf(rn);Sn<0&&(Sn=R.length,R.push(rn)),Rt+="="+Sn;continue}B="*"}else if(St<4&&nfe(rn)){Rt+="<"+Te(rn,St+1)+">";continue}Rt+="-"+rn.id}return Rt}}function oNe(o,f,v,A,R){if(A===Q_&&o.id>f.id){const Y=o;o=f,f=Y}const B=v?":"+v:"";return nfe(o)&&nfe(f)?ott(o,f,B,R):`${o.id},${f.id}${B}`}function Abe(o,f){if(I_(o)&6){for(const v of o.links.containingType.types){const A=Yd(v,o.escapedName),R=A&&Abe(A,f);if(R)return R}return}return f(o)}function t8(o){return o.parent&&o.parent.flags&32?sh(xE(o)):void 0}function aNe(o){const f=t8(o),v=f&&l0(f)[0];return v&&Xe(v,o.escapedName)}function Ugt(o,f){return Abe(o,v=>{const A=t8(v);return A?jA(A,f):!1})}function att(o,f){return!Abe(f,v=>Vy(v)&4?!Ugt(o,t8(v)):!1)}function stt(o,f,v){return Abe(f,A=>Vy(A,v)&4?!jA(o,t8(A)):!1)?void 0:o}function BB(o,f,v,A=3){if(v>=A){if((ji(o)&96)===96&&(o=rfe(o)),o.flags&2097152)return gt(o.types,pe=>BB(pe,f,v,A));const R=Dbe(o);let B=0,Y=0;for(let pe=0;pe=Y&&(B++,B>=A))return!0;Y=Te.id}}}return!1}function rfe(o){let f;for(;(ji(o)&96)===96&&(f=eM(o))&&(f.symbol||f.flags&2097152&>(f.types,v=>!!v.symbol));)o=f;return o}function Cbe(o,f){return(ji(o)&96)===96&&(o=rfe(o)),o.flags&2097152?gt(o.types,v=>Cbe(v,f)):Dbe(o)===f}function Dbe(o){if(o.flags&524288&&!xNe(o)){if(ji(o)&4&&o.node)return o.node;if(o.symbol&&!(ji(o)&16&&o.symbol.flags&32))return o.symbol;if(Dp(o))return o.target}if(o.flags&262144)return o.symbol;if(o.flags&8388608){do o=o.objectType;while(o.flags&8388608);return o}return o.flags&16777216?o.root:o}function Hgt(o,f){return MBe(o,f,fM)!==0}function MBe(o,f,v){if(o===f)return-1;const A=Vy(o)&6,R=Vy(f)&6;if(A!==R)return 0;if(A){if(E5(o)!==E5(f))return 0}else if((o.flags&16777216)!==(f.flags&16777216))return 0;return z1(o)!==z1(f)?0:v(La(o),La(f))}function Ibe(o,f,v){const A=c2(o),R=c2(f),B=KA(o),Y=KA(f),pe=$k(o),Te=$k(f);return!!(A===R&&B===Y&&pe===Te||v&&B<=Y)}function MV(o,f,v,A,R,B){if(o===f)return-1;if(!Ibe(o,f,v)||Nt(o.typeParameters)!==Nt(f.typeParameters))return 0;if(f.typeParameters){const Te=X0(o.typeParameters,f.typeParameters);for(let Ue=0;Uef|(v.flags&1048576?LBe(v.types):v.flags),0)}function n8(o){if(o.length===1)return o[0];const f=Ke?Ol(o,A=>lv(A,R=>!(R.flags&98304))):o,v=cNe(f)?dc(f):Em(f,(A,R)=>nL(A,R)?R:A);return f===o?v:dNe(v,LBe(o)&98304)}function Jgt(o){return Em(o,(f,v)=>nL(v,f)?v:f)}function kE(o){return!!(ji(o)&4)&&(o.target===t_||o.target===A_)}function zB(o){return!!(ji(o)&4)&&o.target===A_}function _5(o){return kE(o)||Dp(o)}function ife(o){return kE(o)&&!zB(o)||Dp(o)&&!o.target.readonly}function LV(o){return kE(o)?ch(o)[0]:void 0}function rL(o){return kE(o)||!(o.flags&98304)&&Id(o,P1)}function OBe(o){return ife(o)||!(o.flags&98305)&&Id(o,Qm)}function FBe(o){if(!(ji(o)&4)||!(ji(o.target)&3))return;if(ji(o)&33554432)return ji(o)&67108864?o.cachedEquivalentBaseType:void 0;o.objectFlags|=33554432;const f=o.target;if(ji(f)&1){const R=Ru(f);if(R&&R.expression.kind!==80&&R.expression.kind!==211)return}const v=l0(f);if(v.length!==1||V4(o.symbol).size)return;let A=Nt(f.typeParameters)?zu(v[0],X0(f.typeParameters,ch(o).slice(0,f.typeParameters.length))):v[0];return Nt(ch(o))>Nt(f.typeParameters)&&(A=vx(A,yl(ch(o)))),o.objectFlags|=67108864,o.cachedEquivalentBaseType=A}function WBe(o){return Ke?o===ma:o===kt}function kbe(o){const f=LV(o);return!!f&&WBe(f)}function Dte(o){let f;return Dp(o)||!!Yd(o,"0")||rL(o)&&!!(f=Xe(o,"length"))&&Ex(f,v=>!!(v.flags&256))}function ofe(o){return rL(o)||Dte(o)}function ctt(o,f){const v=Xe(o,""+f);if(v)return v;if(Ex(o,Dp))return fNe(o,f,Pe.noUncheckedIndexedAccess?Ce:void 0)}function lNe(o){return!(o.flags&240544)}function UI(o){return!!(o.flags&109472)}function ltt(o){const f=tM(o);return f.flags&2097152?gt(f.types,UI):UI(f)}function $gt(o){return o.flags&2097152&&lr(o.types,UI)||o}function afe(o){return o.flags&16?!0:o.flags&1048576?o.flags&1024?!0:jr(o.types,UI):UI(o)}function pM(o){return o.flags&1056?fPe(o):o.flags&402653312?Nn:o.flags&256?Lr:o.flags&2048?qi:o.flags&512?Pc:o.flags&1048576?qgt(o):o}function qgt(o){const f=`B${By(o)}`;return zr(f)??xi(f,Th(o,pM))}function Pbe(o){return o.flags&402653312?Nn:o.flags&288?Lr:o.flags&2048?qi:o.flags&512?Pc:o.flags&1048576?Th(o,Pbe):o}function d5(o){return o.flags&1056&&Bb(o)?fPe(o):o.flags&128&&Bb(o)?Nn:o.flags&256&&Bb(o)?Lr:o.flags&2048&&Bb(o)?qi:o.flags&512&&Bb(o)?Pc:o.flags&1048576?Th(o,d5):o}function utt(o){return o.flags&8192?hc:o.flags&1048576?Th(o,utt):o}function BBe(o,f){return Rwe(o,f)||(o=utt(d5(o))),$S(o)}function zBe(o,f,v){if(o&&UI(o)){const A=f?v?$fe(f):f:void 0;o=BBe(o,A)}return o}function uNe(o,f,v,A){if(o&&UI(o)){const R=f?b5(v,f,A):void 0;o=BBe(o,R)}return o}function Dp(o){return!!(ji(o)&4&&o.target.objectFlags&8)}function mM(o){return Dp(o)&&!!(o.target.combinedFlags&8)}function ftt(o){return mM(o)&&o.target.elementFlags.length===1}function gK(o){return Ite(o,o.target.fixedLength)}function fNe(o,f,v){return Th(o,A=>{const R=A,B=gK(R);return B?v&&f>=KWe(R.target)?dc([B,v]):B:Ce})}function Kgt(o){const f=gK(o);return f&&hT(f)}function Ite(o,f,v=0,A=!1,R=!1){const B=Y6(o)-v;if(f(v&12)===(f.target.elementFlags[A]&12))}function GBe({value:o}){return o.base10Value==="0"}function _Ne(o){return lv(o,f=>DC(f,4194304))}function _tt(o){return Th(o,dtt)}function dtt(o){return o.flags&4?ft:o.flags&8?br:o.flags&64?oo:o===Ro||o===vo||o.flags&114691||o.flags&128&&o.value===""||o.flags&256&&o.value===0||o.flags&2048&&GBe(o)?o:Tc}function dNe(o,f){const v=f&~o.flags&98304;return v===0?o:dc(v===32768?[o,Ce]:v===65536?[o,mn]:[o,Ce,mn])}function iL(o,f=!1){re.assert(Ke);const v=f?Mt:Ce;return o===v||o.flags&1048576&&o.types[0]===v?o:dc([o,v])}function ptt(o){return VT||(VT=hte("NonNullable",524288,void 0)||Pr),VT!==Pr?PB(VT,[o]):vp([o,M_])}function Dw(o){return Ke?kO(o,2097152):o}function pNe(o){return Ke?dc([o,ge]):o}function mNe(o){return Ke?Wbe(o,ge):o}function gNe(o,f,v){return v?Vz(f)?iL(o):pNe(o):o}function sfe(o,f){return BU(f)?Dw(o):fy(f)?mNe(o):o}function r8(o,f){return qt&&f?Wbe(o,qe):o}function cfe(o){return o===qe||!!(o.flags&1048576)&&o.types[0]===qe}function hNe(o){return qt?Wbe(o,qe):IC(o,524288)}function jBe(o,f){return(o.flags&524)!==0&&(f.flags&28)!==0}function Nbe(o){const f=ji(o);return o.flags&2097152?jr(o.types,Nbe):!!(o.symbol&&o.symbol.flags&7040&&!(o.symbol.flags&32)&&!k0(o))||!!(f&4194304)||!!(f&1024&&Nbe(o.source))}function i8(o,f){const v=tp(o.flags,o.escapedName,I_(o)&8);v.declarations=o.declarations,v.parent=o.parent,v.links.type=f,v.links.target=o,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration);const A=Ae(o).nameType;return A&&(v.links.nameType=A),v}function mtt(o,f){const v=zd();for(const A of W2(o)){const R=La(A),B=f(R);v.set(A.escapedName,B===R?A:i8(A,B))}return v}function hK(o){if(!(IO(o)&&ji(o)&8192))return o;const f=o.regularType;if(f)return f;const v=o,A=mtt(o,hK),R=sy(v.symbol,A,v.callSignatures,v.constructSignatures,v.indexInfos);return R.flags=v.flags,R.objectFlags|=v.objectFlags&-8193,o.regularType=R,R}function gtt(o,f,v){return{parent:o,propertyName:f,siblings:v,resolvedProperties:void 0}}function htt(o){if(!o.siblings){const f=[];for(const v of htt(o.parent))if(IO(v)){const A=$6(v,o.propertyName);A&&PO(La(A),R=>{f.push(R)})}o.siblings=f}return o.siblings}function Ygt(o){if(!o.resolvedProperties){const f=new Map;for(const v of htt(o))if(IO(v)&&!(ji(v)&2097152))for(const A of zm(v))f.set(A.escapedName,A);o.resolvedProperties=oc(f.values())}return o.resolvedProperties}function Qgt(o,f){if(!(o.flags&4))return o;const v=La(o),A=f&>t(f,o.escapedName,void 0),R=VBe(v,A);return R===v?o:i8(o,R)}function Zgt(o){const f=dr.get(o.escapedName);if(f)return f;const v=i8(o,Mt);return v.flags|=16777216,dr.set(o.escapedName,v),v}function yNe(o,f){const v=zd();for(const R of W2(o))v.set(R.escapedName,Qgt(R,f));if(f)for(const R of Ygt(f))v.has(R.escapedName)||v.set(R.escapedName,Zgt(R));const A=sy(o.symbol,v,Yn,Yn,Ol(JT(o),R=>bx(R.keyType,z2(R.type),R.isReadonly)));return A.objectFlags|=ji(o)&266240,A}function z2(o){return VBe(o,void 0)}function VBe(o,f){if(ji(o)&196608){if(f===void 0&&o.widened)return o.widened;let v;if(o.flags&98305)v=Ge;else if(IO(o))v=yNe(o,f);else if(o.flags&1048576){const A=f||gtt(void 0,void 0,o.types),R=Ol(o.types,B=>B.flags&98304?B:VBe(B,A));v=dc(R,gt(R,_M)?2:1)}else o.flags&2097152?v=vp(Ol(o.types,z2)):_5(o)&&(v=qv(o.target,Ol(ch(o),z2)));return v&&f===void 0&&(o.widened=v),v||o}return o}function oL(o){let f=!1;if(ji(o)&65536){if(o.flags&1048576)if(gt(o.types,_M))f=!0;else for(const v of o.types)oL(v)&&(f=!0);if(_5(o))for(const v of ch(o))oL(v)&&(f=!0);if(IO(o))for(const v of W2(o)){const A=La(v);ji(A)&65536&&(oL(A)||hn(v.valueDeclaration,N.Object_literal_s_property_0_implicitly_has_an_1_type,ru(v),Co(z2(A))),f=!0)}}return f}function o8(o,f,v){const A=Co(z2(f));if(Cs(o)&&!tW(ts(o),Pe))return;let R;switch(o.kind){case 226:case 172:case 171:R=Et?N.Member_0_implicitly_has_an_1_type:N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const B=o;if(xn(B.name)){const Y=uP(B.name);if((Y7(B.parent)||pg(B.parent)||e0(B.parent))&&B.parent.parameters.includes(B)&&(gg(B,B.name.escapedText,788968,void 0,B.name.escapedText,!0)||Y&&Xie(Y))){const pe="arg"+B.parent.parameters.indexOf(B),Te=hm(B.name)+(B.dotDotDotToken?"[]":"");yh(Et,o,N.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,pe,Te);return}}R=o.dotDotDotToken?Et?N.Rest_parameter_0_implicitly_has_an_any_type:N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Et?N.Parameter_0_implicitly_has_an_1_type:N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(R=N.Binding_element_0_implicitly_has_an_1_type,!Et)return;break;case 324:hn(o,N.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,A);return;case 330:Et&&aF(o.parent)&&hn(o.parent.tagName,N.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,A);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Et&&!o.name){v===3?hn(o,N.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,A):hn(o,N.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,A);return}R=Et?v===3?N._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Et&&hn(o,N.Mapped_object_type_implicitly_has_an_any_template_type);return;default:R=Et?N.Variable_0_implicitly_has_an_1_type:N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}yh(Et,o,R,hm(i_(o)),A)}function lfe(o,f,v){i(()=>{Et&&ji(f)&65536&&(!v||!YNe(o))&&(oL(f)||o8(o,f,v))})}function UBe(o,f,v){const A=c2(o),R=c2(f),B=Wfe(o),Y=Wfe(f),pe=Y?R-1:R,Te=B?pe:Math.min(A,pe),Ue=J4(o);if(Ue){const St=J4(f);St&&v(Ue,St)}for(let St=0;Stf.typeParameter),Vn(o.inferences,(f,v)=>()=>(f.isFixed||(CO(o),vNe(o.inferences),f.isFixed=!0),Nte(o,v))))}function Rbe(o){return qPe(Vn(o.inferences,f=>f.typeParameter),Vn(o.inferences,(f,v)=>()=>Nte(o,v)))}function vNe(o){for(const f of o)f.isFixed||(f.inferredType=void 0)}function JBe(o,f,v){(o.intraExpressionInferenceSites??(o.intraExpressionInferenceSites=[])).push({node:f,type:v})}function CO(o){if(o.intraExpressionInferenceSites){for(const{node:f,type:v}of o.intraExpressionInferenceSites){const A=f.kind===174?JI(f,2):NE(f,2);A&&kw(o.inferences,v,A)}o.intraExpressionInferenceSites=void 0}}function ffe(o){return{typeParameter:o,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Mbe(o){return{typeParameter:o.typeParameter,candidates:o.candidates&&o.candidates.slice(),contraCandidates:o.contraCandidates&&o.contraCandidates.slice(),inferredType:o.inferredType,priority:o.priority,topLevel:o.topLevel,isFixed:o.isFixed,impliedArity:o.impliedArity}}function PE(o){const f=gi(o.inferences,LK);return f.length?HBe(Vn(f,Mbe),o.signature,o.flags,o.compareTypes):void 0}function bNe(o){return o&&o.mapper}function Iw(o){const f=ji(o);if(f&524288)return!!(f&1048576);const v=!!(o.flags&465829888||o.flags&524288&&!kte(o)&&(f&4&&(o.node||gt(ch(o),Iw))||f&16&&o.symbol&&o.symbol.flags&14384&&o.symbol.declarations||f&12583968)||o.flags&137363456&&!(o.flags&1024)&&!kte(o)&>(o.types,Iw));return o.flags&138117121&&(o.objectFlags|=524288|(v?1048576:0)),v}function kte(o){if(o.aliasSymbol&&!o.aliasTypeArguments){const f=Rh(o.aliasSymbol,265);return!!(f&&Ua(f.parent,v=>v.kind===312?!0:v.kind===267?!1:"quit"))}return!1}function Pte(o,f,v=0){return!!(o===f||o.flags&3145728&>(o.types,A=>Pte(A,f,v))||v<3&&o.flags&16777216&&(Pte(SO(o),f,v+1)||Pte(oM(o),f,v+1)))}function tht(o,f){const v=Wb(o);return v?!!v.type&&Pte(v.type,f):Pte(np(o),f)}function nht(o){const f=zd();PO(o,A=>{if(!(A.flags&128))return;const R=ey(A.value),B=tp(4,R);B.links.type=Ge,A.symbol&&(B.declarations=A.symbol.declarations,B.valueDeclaration=A.symbol.valueDeclaration),f.set(R,B)});const v=o.flags&4?[bx(Nn,M_,!1)]:Yn;return sy(void 0,f,Yn,Yn,v)}function DO(o,f,v){const A=o.id+","+f.id+","+v.id;if(Cg.has(A))return Cg.get(A);const R=o.id+","+(f.target||f).id;if(ni(wp,R))return;wp.push(R);const B=TNe(o,f,v);return wp.pop(),Cg.set(A,B),B}function $Be(o){return!(ji(o)&262144)||IO(o)&>(zm(o),f=>$Be(La(f)))||Dp(o)&>(Z6(o),$Be)}function TNe(o,f,v){if(!(Tw(o,Nn)||zm(o).length!==0&&$Be(o)))return;if(kE(o))return hT(SNe(ch(o)[0],f,v),zB(o));if(Dp(o)){const R=Vn(Z6(o),Y=>SNe(Y,f,v)),B=zk(f)&4?Ol(o.target.elementFlags,Y=>Y&2?1:Y):o.target.elementFlags;return TD(R,B,o.target.readonly,o.target.labeledElementDeclarations)}const A=tA(1040,void 0);return A.source=o,A.mappedType=f,A.constraintType=v,A}function rht(o){const f=Ae(o);return f.type||(f.type=SNe(o.links.propertyType,o.links.mappedType,o.links.constraintType)),f.type}function SNe(o,f,v){const A=u0(v.type,BI(f)),R=ZR(f),B=ffe(A);return kw([B],o,R),vtt(B)||Io}function*qBe(o,f,v,A){const R=zm(f);for(const B of R)if(!yWe(B)&&(v||!(B.flags&16777216||I_(B)&48))){const Y=Yd(o,B.escapedName);if(!Y)yield B;else if(A){const pe=La(B);if(pe.flags&109472){const Te=La(Y);Te.flags&1||$S(Te)===$S(pe)||(yield B)}}}}function ENe(o,f,v,A){return V5(qBe(o,f,v,A))}function iht(o,f){return!(f.target.combinedFlags&8)&&f.target.minLength>o.target.minLength||!f.target.hasRestElement&&(o.target.hasRestElement||f.target.fixedLengthGI(B,R),o)===o&&yK(o,f)}return!1}function Stt(o,f){if(o===f||f.flags&5)return!0;if(f.flags&2097152)return jr(f.types,v=>v===hh||Stt(o,v));if(o.flags&128){const v=o.value;return!!(f.flags&8&&Ttt(v,!1)||f.flags&64&&XH(v,!1)||f.flags&98816&&v===f.intrinsicName||f.flags&268435456&&yK(vS(v),f)||f.flags&134217728&&GB(o,f))}if(o.flags&134217728){const v=o.texts;return v.length===2&&v[0]===""&&v[1]===""&&Id(o.types[0],f)}return Id(o,f)}function Ett(o,f){return o.flags&128?QBe([o.value],Yn,f):o.flags&134217728?sf(o.texts,f.texts)?Vn(o.types,aht):QBe(o.texts,o.types,f):void 0}function GB(o,f){const v=Ett(o,f);return!!v&&jr(v,(A,R)=>Stt(A,f.types[R]))}function aht(o){return o.flags&402653317?o:MB(["",""],[o])}function QBe(o,f,v){const A=o.length-1,R=o[0],B=o[A],Y=v.texts,pe=Y.length-1,Te=Y[0],Ue=Y[pe];if(A===0&&R.length0){let Zs=rn,ba=Sn;for(;ba=xr(Zs).indexOf(la,ba),!(ba>=0);){if(Zs++,Zs===o.length)return;ba=0}Ai(Zs,ba),Sn+=la.length}else if(Sn!ni(hd,pm)):ua,Is?gi(Ss,pm=>!ni(Is,pm)):Ss]}function Zs(ua,Ss,_f){const hd=ua.length!!Ya(Is));if(!hd||Ss&&hd!==Ss)return;Ss=hd}return Ss}function Va(ua,Ss,_f){let hd=0;if(_f&1048576){let Is;const pm=ua.flags&1048576?ua.types:[ua],Sh=new Array(pm.length);let vb=!1;for(const cg of Ss)if(Ya(cg))Is=cg,hd++;else for(let u1=0;u1Sh[f0]?void 0:u1);if(cg.length){rn(dc(cg),Is);return}}}else for(const Is of Ss)Ya(Is)?hd++:rn(ua,Is);if(_f&2097152?hd===1:hd>0)for(const Is of Ss)Ya(Is)&&Sn(ua,Is,1)}function Da(ua,Ss,_f){if(_f.flags&1048576){let hd=!1;for(const Is of _f.types)hd=Da(ua,Ss,Is)||hd;return hd}if(_f.flags&4194304){const hd=Ya(_f.type);if(hd&&!hd.isFixed&&!btt(ua)){const Is=DO(ua,Ss,_f);Is&&Sn(Is,hd.typeParameter,ji(ua)&262144?16:8)}return!0}if(_f.flags&262144){Sn(CC(ua,ua.pattern?2:0),_f,32);const hd=IB(_f);if(hd&&Da(ua,Ss,hd))return!0;const Is=Vn(zm(ua),La),pm=Vn(JT(ua),Sh=>Sh!==Fs?Sh.type:Tc);return rn(dc(Hi(Is,pm)),ZR(Ss)),!0}return!1}function cc(ua,Ss){if(ua.flags&16777216)rn(ua.checkType,Ss.checkType),rn(ua.extendsType,Ss.extendsType),rn(SO(ua),SO(Ss)),rn(oM(ua),oM(Ss));else{const _f=[SO(Ss),oM(Ss)];Ai(ua,_f,Ss.flags,R?64:0)}}function V_(ua,Ss){const _f=Ett(ua,Ss),hd=Ss.types;if(_f||jr(Ss.texts,Is=>Is.length===0))for(let Is=0;Isjh|XA.flags,0);if(!(f0&4)){const jh=pm.value;f0&296&&!Ttt(jh,!0)&&(f0&=-297),f0&2112&&!XH(jh,!0)&&(f0&=-2113);const XA=Em(u1,(mr,Ht)=>Ht.flags&f0?mr.flags&4?mr:Ht.flags&4?pm:mr.flags&134217728?mr:Ht.flags&134217728&&GB(pm,Ht)?pm:mr.flags&268435456?mr:Ht.flags&268435456&&jh===ube(Ht.symbol,jh)?pm:mr.flags&128?mr:Ht.flags&128&&Ht.value===jh?Ht:mr.flags&8?mr:Ht.flags&8?HA(+jh):mr.flags&32?mr:Ht.flags&32?HA(+jh):mr.flags&256?mr:Ht.flags&256&&Ht.value===+jh?Ht:mr.flags&64?mr:Ht.flags&64?YBe(jh):mr.flags&2048?mr:Ht.flags&2048&&tD(Ht.value)===jh?Ht:mr.flags&16?mr:Ht.flags&16?jh==="true"?Ts:jh==="false"?vo:Pc:mr.flags&512?mr:Ht.flags&512&&Ht.intrinsicName===jh?Ht:mr.flags&32768?mr:Ht.flags&32768&&Ht.intrinsicName===jh?Ht:mr.flags&65536?mr:Ht.flags&65536&&Ht.intrinsicName===jh?Ht:mr:mr,Tc);if(!(XA.flags&131072)){rn(XA,Sh);continue}}}}rn(pm,Sh)}}function fd(ua,Ss){var _f,hd;if(ji(ua)&4&&ji(Ss)&4&&(ua.target===Ss.target||kE(ua)&&kE(Ss))){Zs(ch(ua),ch(Ss),wBe(ua.target));return}if(Fb(ua)&&Fb(Ss)){rn($v(ua),$v(Ss)),rn(ZR(ua),ZR(Ss));const Is=bw(ua),pm=bw(Ss);Is&&pm&&rn(Is,pm)}if(ji(Ss)&32&&!Ss.declaration.nameType){const Is=$v(Ss);if(Da(ua,Ss,Is))return}if(!oht(ua,Ss)){if(_5(ua)){if(Dp(Ss)){const Is=Y6(ua),pm=Y6(Ss),Sh=ch(Ss),vb=Ss.target.elementFlags;if(Dp(ua)&&Xgt(ua,Ss)){for(let f0=0;f00){const pm=ed(Ss,_f),Sh=pm.length;for(let vb=0;vb1){const f=gi(o,xNe);if(f.length){const v=dc(f,2);return Hi(gi(o,A=>!xNe(A)),[v])}}return o}function eze(o){return o.priority&416?vp(o.contraCandidates):Jgt(o.contraCandidates)}function lht(o,f){const v=ZBe(o.candidates),A=Pw(o.typeParameter)||n5(o.typeParameter),R=!A&&o.topLevel&&(o.isFixed||!tht(f,o.typeParameter)),B=A?Ol(v,$S):R?Ol(v,d5):v,Y=o.priority&416?dc(B,2):n8(B);return z2(Y)}function Nte(o,f){const v=o.inferences[f];if(!v.inferredType){let A,R;if(o.signature){const Y=v.candidates?lht(v,o.signature):void 0,pe=v.contraCandidates?eze(v):void 0;if(Y||pe){const Te=Y&&(!pe||!(Y.flags&131072)&>(v.contraCandidates,Ue=>nL(Y,Ue))&&jr(o.inferences,Ue=>Ue!==v&&gT(Ue.typeParameter)!==v.typeParameter||jr(Ue.candidates,St=>nL(St,Y))));A=Te?Y:pe,R=Te?pe:Y}else if(o.flags&1)A=Tf;else{const Te=Dd(v.typeParameter);Te&&(A=zu(Te,hBe(wgt(o,f),o.nonFixingMapper)))}}else A=vtt(v);v.inferredType=A||tze(!!(o.flags&2));const B=gT(v.typeParameter);if(B){const Y=zu(B,o.nonFixingMapper);(!A||!o.compareTypes(A,vx(Y,A)))&&(v.inferredType=R&&o.compareTypes(R,vx(Y,R))?R:Y)}}return v.inferredType}function tze(o){return o?Ge:Io}function nze(o){const f=[];for(let v=0;vxp(f)||z0(f)||rS(f)))}function _fe(o,f,v,A){switch(o.kind){case 80:if(!V9(o)){const Y=xD(o);return Y!==Pr?`${A?vm(A):"-1"}|${By(f)}|${By(v)}|${$d(Y)}`:void 0}case 110:return`0|${A?vm(A):"-1"}|${By(f)}|${By(v)}`;case 235:case 217:return _fe(o.expression,f,v,A);case 166:const R=_fe(o.left,f,v,A);return R&&R+"."+o.right.escapedText;case 211:case 212:const B=p5(o);if(B!==void 0){const Y=_fe(o.expression,f,v,A);return Y&&Y+"."+B}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${vm(o)}#${By(f)}`}}function Dv(o,f){switch(f.kind){case 217:case 235:return Dv(o,f.expression);case 226:return Zv(f)&&Dv(o,f.left)||Ds(f)&&f.operatorToken.kind===28&&Dv(o,f.right)}switch(o.kind){case 236:return f.kind===236&&o.keywordToken===f.keywordToken&&o.name.escapedText===f.name.escapedText;case 80:case 81:return V9(o)?f.kind===110:f.kind===80&&xD(o)===xD(f)||(Kc(f)||sa(f))&&eA(xD(o))===sc(f);case 110:return f.kind===110;case 108:return f.kind===108;case 235:case 217:return Dv(o.expression,f);case 211:case 212:const v=p5(o),A=Kf(f)?p5(f):void 0;return v!==void 0&&A!==void 0&&A===v&&Dv(o.expression,f.expression);case 166:return Kf(f)&&o.right.escapedText===p5(f)&&Dv(o.left,f.expression);case 226:return Ds(o)&&o.operatorToken.kind===28&&Dv(o.right,f)}return!1}function p5(o){if(Ac(o))return o.name.escapedText;if(Hm(o))return ANe(o);if(sa(o)){const f=hg(o);return f?ey(f):void 0}if(Os(o))return""+o.parent.parameters.indexOf(o)}function ize(o){return o.flags&8192?o.escapedName:o.flags&384?ey(""+o.value):void 0}function ANe(o){return Ox(o.argumentExpression)?ey(o.argumentExpression.text):Tg(o.argumentExpression)?Att(o.argumentExpression):void 0}function Att(o){const f=Qg(o,111551,!0);if(!f||!(Gte(f)||f.flags&8))return;const v=f.valueDeclaration;if(v===void 0)return;const A=wn(v);if(A){const R=ize(A);if(R!==void 0)return R}if(g1(v)&&Tu(v,o)){const R=sH(v);if(R)return ize(s1(R));if(pI(v))return z8(v.name)}}function Ctt(o,f){for(;Kf(o);)if(o=o.expression,Dv(o,f))return!0;return!1}function AD(o,f){for(;fy(o);)if(o=o.expression,Dv(o,f))return!0;return!1}function jB(o,f){if(o&&o.flags&1048576){const v=ZZe(o,f);if(v&&I_(v)&2)return v.links.isDiscriminantProperty===void 0&&(v.links.isDiscriminantProperty=(v.links.checkFlags&192)===192&&!uK(La(v))),!!v.links.isDiscriminantProperty}return!1}function CNe(o,f){let v;for(const A of o)if(jB(f,A.escapedName)){if(v){v.push(A);continue}v=[A]}return v}function VB(o,f){const v=new Map;let A=0;for(const R of o)if(R.flags&61603840){const B=Xe(R,f);if(B){if(!afe(B))return;let Y=!1;PO(B,pe=>{const Te=By($S(pe)),Ue=v.get(Te);Ue?Ue!==Io&&(v.set(Te,Io),Y=!0):v.set(Te,R)}),Y||A++}}return A>=10&&A*2>=o.length?v:void 0}function dfe(o){const f=o.types;if(!(f.length<10||ji(o)&32768||dp(f,v=>!!(v.flags&59506688))<10)){if(o.keyPropertyName===void 0){const v=Ot(f,R=>R.flags&59506688?Ot(zm(R),B=>UI(La(B))?B.escapedName:void 0):void 0),A=v&&VB(f,v);o.keyPropertyName=A?v:"",o.constituentMap=A}return o.keyPropertyName.length?o.keyPropertyName:void 0}}function Lbe(o,f){var v;const A=(v=o.constituentMap)==null?void 0:v.get(By($S(f)));return A!==Io?A:void 0}function Dtt(o,f){const v=dfe(o),A=v&&Xe(f,v);return A&&Lbe(o,A)}function uht(o,f){const v=dfe(o),A=v&&lr(f.properties,B=>B.symbol&&B.kind===303&&B.symbol.escapedName===v&&yfe(B.initializer)),R=A&&jfe(A.initializer);return R&&Lbe(o,R)}function pfe(o,f){return Dv(o,f)||Ctt(o,f)}function oze(o,f){if(o.arguments){for(const v of o.arguments)if(pfe(f,v)||AD(v,f))return!0}return!!(o.expression.kind===211&&pfe(f,o.expression.expression))}function DNe(o){return(!o.id||o.id<0)&&(o.id=z2e,z2e++),o.id}function fht(o,f){if(!(o.flags&1048576))return Id(o,f);for(const v of o.types)if(Id(v,f))return!0;return!1}function Itt(o,f){if(o===f)return o;if(f.flags&131072)return f;const v=`A${By(o)},${By(f)}`;return zr(v)??xi(v,ktt(o,f))}function ktt(o,f){const v=lv(o,R=>fht(f,R)),A=f.flags&512&&Bb(f)?Th(v,wV):v;return Id(f,A)?A:o}function wte(o){const f=Gh(o);return!!(f.callSignatures.length||f.constructSignatures.length||f.members.get("bind")&&nL(o,ci))}function vK(o,f){return INe(o,f)&f}function DC(o,f){return vK(o,f)!==0}function INe(o,f){o.flags&467927040&&(o=US(o)||Io);const v=o.flags;if(v&268435460)return Ke?16317953:16776705;if(v&134217856){const A=v&128&&o.value==="";return Ke?A?12123649:7929345:A?12582401:16776705}if(v&40)return Ke?16317698:16776450;if(v&256){const A=o.value===0;return Ke?A?12123394:7929090:A?12582146:16776450}if(v&64)return Ke?16317188:16775940;if(v&2048){const A=GBe(o);return Ke?A?12122884:7928580:A?12581636:16775940}return v&16?Ke?16316168:16774920:v&528?Ke?o===vo||o===Ro?12121864:7927560:o===vo||o===Ro?12580616:16774920:v&524288?f&(Ke?83427327:83886079)?ji(o)&16&&_M(o)?Ke?83427327:83886079:wte(o)?Ke?7880640:16728e3:Ke?7888800:16736160:0:v&16384?9830144:v&32768?26607360:v&65536?42917664:v&12288?Ke?7925520:16772880:v&67108864?Ke?7888800:16736160:v&131072?0:v&1048576?Em(o.types,(A,R)=>A|INe(R,f),0):v&2097152?_ht(o,f):83886079}function _ht(o,f){const v=Sy(o,402784252);let A=0,R=134217727;for(const B of o.types)if(!(v&&B.flags&524288)){const Y=INe(B,f);A|=Y,R&=Y}return A&8256|R&134209471}function IC(o,f){return lv(o,v=>DC(v,f))}function kO(o,f){const v=kNe(IC(Ke&&o.flags&2?d_:o,f));if(Ke)switch(f){case 524288:return Th(v,A=>DC(A,65536)?vp([A,DC(A,131072)&&!Sy(v,65536)?dc([M_,mn]):M_]):A);case 1048576:return Th(v,A=>DC(A,131072)?vp([A,DC(A,65536)&&!Sy(v,32768)?dc([M_,Ce]):M_]):A);case 2097152:case 4194304:return Th(v,A=>DC(A,262144)?ptt(A):A)}return v}function kNe(o){return o===d_?Io:o}function Rte(o,f){return f?dc([Fu(o),s1(f)]):o}function Ptt(o,f){var v;const A=SD(f);if(!yv(A))return Sr;const R=vv(A);return Xe(o,R)||bK((v=i5(o,R))==null?void 0:v.type)||Sr}function PNe(o,f){return Ex(o,Dte)&&ctt(o,f)||bK(Kk(65,o,Ce,void 0))||Sr}function bK(o){return o&&(Pe.noUncheckedIndexedAccess?dc([o,qe]):o)}function NNe(o){return hT(Kk(65,o,Ce,void 0)||Sr)}function Ntt(o){return o.parent.kind===209&&aze(o.parent)||o.parent.kind===303&&aze(o.parent.parent)?Rte(Mte(o),o.right):s1(o.right)}function aze(o){return o.parent.kind===226&&o.parent.left===o||o.parent.kind===250&&o.parent.initializer===o}function dht(o,f){return PNe(Mte(o),o.elements.indexOf(f))}function wtt(o){return NNe(Mte(o.parent))}function TK(o){return Ptt(Mte(o.parent),o.name)}function wNe(o){return Rte(TK(o),o.objectAssignmentInitializer)}function Mte(o){const{parent:f}=o;switch(f.kind){case 249:return Nn;case 250:return I1e(f)||Sr;case 226:return Ntt(f);case 220:return Ce;case 209:return dht(f,o);case 230:return wtt(f);case 303:return TK(f);case 304:return wNe(f)}return Sr}function pht(o){const f=o.parent,v=HI(f.parent),A=f.kind===206?Ptt(v,o.propertyName||o.name):o.dotDotDotToken?NNe(v):PNe(v,f.elements.indexOf(o));return Rte(A,o.initializer)}function Rtt(o){return rt(o).resolvedType||s1(o)}function Mtt(o){return o.initializer?Rtt(o.initializer):o.parent.parent.kind===249?Nn:o.parent.parent.kind===250&&I1e(o.parent.parent)||Sr}function HI(o){return o.kind===260?Mtt(o):pht(o)}function Ltt(o){return o.kind===260&&o.initializer&&yx(o.initializer)||o.kind!==208&&o.parent.kind===226&&yx(o.parent.right)}function a8(o){switch(o.kind){case 217:return a8(o.expression);case 226:switch(o.operatorToken.kind){case 64:case 76:case 77:case 78:return a8(o.left);case 28:return a8(o.right)}}return o}function Ott(o){const{parent:f}=o;return f.kind===217||f.kind===226&&f.operatorToken.kind===64&&f.left===o||f.kind===226&&f.operatorToken.kind===28&&f.right===o?Ott(f):o}function Ftt(o){return o.kind===296?$S(s1(o.expression)):Tc}function Obe(o){const f=rt(o);if(!f.switchTypes){f.switchTypes=[];for(const v of o.caseBlock.clauses)f.switchTypes.push(Ftt(v))}return f.switchTypes}function Fbe(o){if(gt(o.caseBlock.clauses,v=>v.kind===296&&!Cm(v.expression)))return;const f=[];for(const v of o.caseBlock.clauses){const A=v.kind===296?v.expression.text:void 0;f.push(A&&!ni(f,A)?A:void 0)}return f}function mht(o,f){return o.flags&1048576?!Ot(o.types,v=>!ni(f,v)):ni(f,o)}function Lte(o,f){return!!(o===f||o.flags&131072||f.flags&1048576&&RNe(o,f))}function RNe(o,f){if(o.flags&1048576){for(const v of o.types)if(!Z4(f.types,v))return!1;return!0}return o.flags&1056&&fPe(o)===f?!0:Z4(f.types,o)}function PO(o,f){return o.flags&1048576?Ot(o.types,f):f(o)}function Uk(o,f){return o.flags&1048576?gt(o.types,f):f(o)}function Ex(o,f){return o.flags&1048576?jr(o.types,f):f(o)}function sze(o,f){return o.flags&3145728?jr(o.types,f):f(o)}function lv(o,f){if(o.flags&1048576){const v=o.types,A=gi(v,f);if(A===v)return o;const R=o.origin;let B;if(R&&R.flags&1048576){const Y=R.types,pe=gi(Y,Te=>!!(Te.flags&1048576)||f(Te));if(Y.length-pe.length===v.length-A.length){if(pe.length===1)return pe[0];B=XWe(1048576,pe)}}return YWe(A,o.objectFlags&16809984,void 0,void 0,B)}return o.flags&131072||f(o)?o:Tc}function Wbe(o,f){return lv(o,v=>v!==f)}function ght(o){return o.flags&1048576?o.types.length:1}function Th(o,f,v){if(o.flags&131072)return o;if(!(o.flags&1048576))return f(o);const A=o.origin,R=A&&A.flags&1048576?A.types:o.types;let B,Y=!1;for(const pe of R){const Te=pe.flags&1048576?Th(pe,f,v):f(pe);Y||(Y=pe!==Te),Te&&(B?B.push(Te):B=[Te])}return Y?B&&dc(B,v?0:1):o}function Wtt(o,f,v,A){return o.flags&1048576&&v?dc(Vn(o.types,f),1,v,A):Th(o,f)}function Ote(o,f){return lv(o,v=>(v.flags&f)!==0)}function cze(o,f){return Sy(o,134217804)&&Sy(f,402655616)?Th(o,v=>v.flags&4?Ote(f,402653316):NV(v)&&!Sy(f,402653188)?Ote(f,128):v.flags&8?Ote(f,264):v.flags&64?Ote(f,2112):v):o}function SK(o){return o.flags===0}function m5(o){return o.flags===0?o.type:o}function EK(o,f){return f?{flags:0,type:o.flags&131072?Tf:o}:o}function hht(o){const f=tA(256);return f.elementType=o,f}function MNe(o){return Hn[o.id]||(Hn[o.id]=hht(o))}function LNe(o,f){const v=hK(pM(jfe(f)));return Lte(v,o.elementType)?o:MNe(dc([o.elementType,v]))}function Btt(o){return o.flags&131072?Bh:hT(o.flags&1048576?dc(o.types,2):o)}function lze(o){return o.finalArrayType||(o.finalArrayType=Btt(o.elementType))}function Fte(o){return ji(o)&256?lze(o):o}function yht(o){return ji(o)&256?o.elementType:Tc}function ONe(o){let f=!1;for(const v of o)if(!(v.flags&131072)){if(!(ji(v)&256))return!1;f=!0}return f}function ztt(o){const f=Ott(o),v=f.parent,A=Ac(v)&&(v.name.escapedText==="length"||v.parent.kind===213&&xn(v.name)&&fSe(v.name)),R=v.kind===212&&v.expression===f&&v.parent.kind===226&&v.parent.operatorToken.kind===64&&v.parent.left===v&&!VE(v.parent)&&zb(s1(v.argumentExpression),296);return A||R}function vht(o){return(Kc(o)||nu(o)||em(o)||Os(o))&&!!(Zy(o)||Cs(o)&&J2(o)&&o.initializer&&EP(o.initializer)&&kS(o.initializer))}function FNe(o,f){if(o=Av(o),o.flags&8752)return La(o);if(o.flags&7){if(I_(o)&262144){const A=o.links.syntheticOrigin;if(A&&FNe(A))return La(o)}const v=o.valueDeclaration;if(v){if(vht(v))return La(o);if(Kc(v)&&v.parent.parent.kind===250){const A=v.parent.parent,R=OV(A.expression,void 0);if(R){const B=A.awaitModifier?15:13;return Kk(B,R,Ce,void 0)}}f&&ml(f,Bs(v,N._0_needs_an_explicit_type_annotation,ru(o)))}}}function OV(o,f){if(!(o.flags&67108864))switch(o.kind){case 80:const v=eA(xD(o));return FNe(v,f);case 110:return Hbe(o);case 108:return BV(o);case 211:{const A=OV(o.expression,f);if(A){const R=o.name;let B;if(Lu(R)){if(!A.symbol)return;B=Yd(A,WN(A.symbol,R.escapedText))}else B=Yd(A,R.escapedText);return B&&FNe(B,f)}return}case 217:return OV(o.expression,f)}}function FV(o){const f=rt(o);let v=f.effectsSignature;if(v===void 0){let A;if(Ds(o)){const Y=CK(o.right);A=mGe(Y)}else o.parent.kind===244?A=OV(o.expression,void 0):o.expression.kind!==108&&(fy(o)?A=lh(sfe(Bf(o.expression),o.expression),o.expression):A=CK(o.expression));const R=ed(A&&yS(A)||Io,0),B=R.length===1&&!R[0].typeParameters?R[0]:gt(R,uze)?y5(o):void 0;v=f.effectsSignature=B&&uze(B)?B:$o}return v===$o?void 0:v}function uze(o){return!!(Wb(o)||o.declaration&&(sK(o.declaration)||Io).flags&131072)}function bht(o,f){if(o.kind===1||o.kind===3)return f.arguments[o.parameterIndex];const v=rg(f.expression);return Kf(v)?rg(v.expression):void 0}function Gtt(o){const f=Ua(o,_9),v=ts(o),A=M0(v,f.statements.pos);j_.add(Pp(v,A.start,A.length,N.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Wte(o){const f=WNe(o,!1);return jo=o,Oo=f,f}function Bte(o){const f=rg(o,!0);return f.kind===97||f.kind===226&&(f.operatorToken.kind===56&&(Bte(f.left)||Bte(f.right))||f.operatorToken.kind===57&&Bte(f.left)&&Bte(f.right))}function WNe(o,f){for(;;){if(o===jo)return Oo;const v=o.flags;if(v&4096){if(!f){const A=DNe(o),R=pD[A];return R!==void 0?R:pD[A]=WNe(o,!0)}f=!1}if(v&368)o=o.antecedent;else if(v&512){const A=FV(o.node);if(A){const R=Wb(A);if(R&&R.kind===3&&!R.type){const B=o.node.arguments[R.parameterIndex];if(B&&Bte(B))return!1}if(np(A).flags&131072)return!1}o=o.antecedent}else{if(v&4)return gt(o.antecedents,A=>WNe(A,!1));if(v&8){const A=o.antecedents;if(A===void 0||A.length===0)return!1;o=A[0]}else if(v&128){if(o.clauseStart===o.clauseEnd&&qnt(o.switchStatement))return!1;o=o.antecedent}else if(v&1024){jo=void 0;const A=o.target,R=A.antecedents;A.antecedents=o.antecedents;const B=WNe(o.antecedent,!1);return A.antecedents=R,B}else return!(v&1)}}}function BNe(o,f){for(;;){const v=o.flags;if(v&4096){if(!f){const A=DNe(o),R=yC[A];return R!==void 0?R:yC[A]=BNe(o,!0)}f=!1}if(v&496)o=o.antecedent;else if(v&512){if(o.node.expression.kind===108)return!0;o=o.antecedent}else{if(v&4)return jr(o.antecedents,A=>BNe(A,!1));if(v&8)o=o.antecedents[0];else if(v&1024){const A=o.target,R=A.antecedents;A.antecedents=o.antecedents;const B=BNe(o.antecedent,!1);return A.antecedents=R,B}else return!!(v&1)}}}function jtt(o){switch(o.kind){case 110:return!0;case 80:if(!V9(o)){const f=xD(o);return Gte(f)||_oe(f)&&!Bbe(f)}break;case 211:case 212:return jtt(o.expression)&&z1(rt(o).resolvedSymbol||Pr)}return!1}function s8(o,f,v=f,A,R=(B=>(B=to(o,J8))==null?void 0:B.flowNode)()){let B,Y=!1,pe=0;if(Li)return Sr;if(!R)return f;yo++;const Te=ri,Ue=m5(rn(R));ri=Te;const St=ji(Ue)&256&&ztt(o)?Bh:Fte(Ue);if(St===Bl||o.parent&&o.parent.kind===235&&!(St.flags&131072)&&IC(St,2097152).flags&131072)return f;return St===ze?Io:St;function Rt(){return Y?B:(Y=!0,B=_fe(o,f,v,A))}function rn(yr){var pi;if(pe===2e3)return(pi=ps)==null||pi.instant(ps.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:yr.id}),Li=!0,Gtt(o),Sr;pe++;let Eo;for(;;){const Bi=yr.flags;if(Bi&4096){for(let Ta=Te;Ta=0&&Eo.parameterIndex!(Ta.flags&163840)):pi.kind===221&&AD(pi.expression,o)&&(Bi=Sh(Bi,yr.switchStatement,yr.clauseStart,yr.clauseEnd,Ta=>!(Ta.flags&131072||Ta.flags&128&&Ta.value==="undefined"))));const wo=Da(pi,Bi);wo&&(Bi=fd(Bi,wo,yr.switchStatement,yr.clauseStart,yr.clauseEnd))}return EK(Bi,SK(Eo))}function mo(yr){const pi=[];let Eo=!1,Bi=!1,wo;for(const Ta of yr.antecedents){if(!wo&&Ta.flags&128&&Ta.clauseStart===Ta.clauseEnd){wo=Ta;continue}const Ju=rn(Ta),Lc=m5(Ju);if(Lc===f&&f===v)return Lc;Dy(pi,Lc),Lte(Lc,v)||(Eo=!0),SK(Ju)&&(Bi=!0)}if(wo){const Ta=rn(wo),Ju=m5(Ta);if(!(Ju.flags&131072)&&!ni(pi,Ju)&&!qnt(wo.switchStatement)){if(Ju===f&&f===v)return Ju;pi.push(Ju),Lte(Ju,v)||(Eo=!0),SK(Ta)&&(Bi=!0)}}return EK(Ra(pi,Eo?2:1),Bi)}function Ya(yr){const pi=DNe(yr),Eo=Kx[pi]||(Kx[pi]=new Map),Bi=Rt();if(!Bi)return f;const wo=Eo.get(Bi);if(wo)return wo;for(let ga=fn;ga<$n;ga++)if(hC[ga]===yr&&WP[ga]===Bi&&BP[ga].length)return EK(Ra(BP[ga],1),!0);const Ta=[];let Ju=!1,Lc;for(const ga of yr.antecedents){let Rl;if(!Lc)Rl=Lc=rn(ga);else{hC[$n]=yr,WP[$n]=Bi,BP[$n]=Ta,$n++;const a_=ca;ca=void 0,Rl=rn(ga),ca=a_,$n--;const Op=Eo.get(Bi);if(Op)return Op}const af=m5(Rl);if(Dy(Ta,af),Lte(af,v)||(Ju=!0),af===f)break}const _d=Ra(Ta,Ju?2:1);return SK(Lc)?EK(_d,!0):(Eo.set(Bi,_d),_d)}function Ra(yr,pi){if(ONe(yr))return MNe(dc(Vn(yr,yht)));const Eo=kNe(dc(Ol(yr,Fte),pi));return Eo!==f&&Eo.flags&f.flags&1048576&&sf(Eo.types,f.types)?f:Eo}function Va(yr){if($_(o)||EP(o)||iC(o)){if(xn(yr)){const Eo=xD(yr).valueDeclaration;if(Eo&&(sa(Eo)||Os(Eo))&&o===Eo.parent&&!Eo.initializer&&!Eo.dotDotDotToken)return Eo}}else if(Kf(yr)){if(Dv(o,yr.expression))return yr}else if(xn(yr)){const pi=xD(yr);if(Gte(pi)){const Eo=pi.valueDeclaration;if(Kc(Eo)&&!Eo.type&&Eo.initializer&&Kf(Eo.initializer)&&Dv(o,Eo.initializer.expression))return Eo.initializer;if(sa(Eo)&&!Eo.initializer){const Bi=Eo.parent.parent;if(Kc(Bi)&&!Bi.type&&Bi.initializer&&(xn(Bi.initializer)||Kf(Bi.initializer))&&Dv(o,Bi.initializer))return Eo}}}}function Da(yr,pi){if(f.flags&1048576||pi.flags&1048576){const Eo=Va(yr);if(Eo){const Bi=p5(Eo);if(Bi){const wo=f.flags&1048576&&Lte(pi,f)?f:pi;if(jB(wo,Bi))return Eo}}}}function cc(yr,pi,Eo){const Bi=p5(pi);if(Bi===void 0)return yr;const wo=fy(pi),Ta=Ke&&(wo||nEe(pi))&&Sy(yr,98304);let Ju=Xe(Ta?IC(yr,2097152):yr,Bi);if(!Ju)return yr;Ju=Ta&&wo?iL(Ju):Ju;const Lc=Eo(Ju);return lv(yr,_d=>{const ga=$t(_d,Bi)||Io;return!(ga.flags&131072)&&!(Lc.flags&131072)&&bbe(Lc,ga)})}function V_(yr,pi,Eo,Bi,wo){if((Eo===37||Eo===38)&&yr.flags&1048576){const Ta=dfe(yr);if(Ta&&Ta===p5(pi)){const Ju=Lbe(yr,s1(Bi));if(Ju)return Eo===(wo?37:38)?Ju:UI(Xe(Ju,Ta)||Io)?Wbe(yr,Ju):yr}}return cc(yr,pi,Ta=>hd(Ta,Eo,Bi,wo))}function fd(yr,pi,Eo,Bi,wo){if(BiLbe(yr,Lc)||Io));if(Ju!==Io)return Ju}return cc(yr,pi,Ta=>vb(Ta,Eo,Bi,wo))}function ad(yr,pi,Eo){if(Dv(o,pi))return kO(yr,Eo?4194304:8388608);Ke&&Eo&&AD(pi,o)&&(yr=kO(yr,2097152));const Bi=Da(pi,yr);return Bi?cc(yr,Bi,wo=>IC(wo,Eo?4194304:8388608)):yr}function Xf(yr,pi,Eo){const Bi=Yd(yr,pi);return Bi?!!(Bi.flags&16777216||I_(Bi)&48)||Eo:!!i5(yr,pi)||!Eo}function KS(yr,pi,Eo){const Bi=vv(pi);if(Uk(yr,Ta=>Xf(Ta,Bi,!0)))return lv(yr,Ta=>Xf(Ta,Bi,Eo));if(Eo){const Ta=Y4();if(Ta)return vp([yr,PB(Ta,[pi,Io])])}return yr}function PC(yr,pi,Eo,Bi,wo){return wo=wo!==(Eo.kind===112)!=(Bi!==38&&Bi!==36),rl(yr,pi,wo)}function ua(yr,pi,Eo){switch(pi.operatorToken.kind){case 64:case 76:case 77:case 78:return ad(rl(yr,pi.right,Eo),pi.left,Eo);case 35:case 36:case 37:case 38:const Bi=pi.operatorToken.kind,wo=a8(pi.left),Ta=a8(pi.right);if(wo.kind===221&&Cm(Ta))return Is(yr,wo,Bi,Ta,Eo);if(Ta.kind===221&&Cm(wo))return Is(yr,Ta,Bi,wo,Eo);if(Dv(o,wo))return hd(yr,Bi,Ta,Eo);if(Dv(o,Ta))return hd(yr,Bi,wo,Eo);Ke&&(AD(wo,o)?yr=_f(yr,Bi,Ta,Eo):AD(Ta,o)&&(yr=_f(yr,Bi,wo,Eo)));const Ju=Da(wo,yr);if(Ju)return V_(yr,Ju,Bi,Ta,Eo);const Lc=Da(Ta,yr);if(Lc)return V_(yr,Lc,Bi,wo,Eo);if(XA(wo))return mr(yr,Bi,Ta,Eo);if(XA(Ta))return mr(yr,Bi,wo,Eo);if(_y(Ta))return PC(yr,wo,Ta,Bi,Eo);if(_y(wo))return PC(yr,Ta,wo,Bi,Eo);break;case 104:return Ht(yr,pi,Eo);case 103:if(Lu(pi.left))return Ss(yr,pi,Eo);const _d=a8(pi.right);if(cfe(yr)&&Kf(o)&&Dv(o.expression,_d)){const ga=s1(pi.left);if(yv(ga)&&p5(o)===vv(ga))return IC(yr,Eo?524288:65536)}if(Dv(o,_d)){const ga=s1(pi.left);if(yv(ga))return KS(yr,ga,Eo)}break;case 28:return rl(yr,pi.right,Eo);case 56:return Eo?rl(rl(yr,pi.left,!0),pi.right,!0):dc([rl(yr,pi.left,!1),rl(yr,pi.right,!1)]);case 57:return Eo?dc([rl(yr,pi.left,!0),rl(yr,pi.right,!0)]):rl(rl(yr,pi.left,!1),pi.right,!1)}return yr}function Ss(yr,pi,Eo){const Bi=a8(pi.right);if(!Dv(o,Bi))return yr;re.assertNode(pi.left,Lu);const wo=iwe(pi.left);if(wo===void 0)return yr;const Ta=wo.parent,Ju=ev(re.checkDefined(wo.valueDeclaration,"should always have a declaration"))?La(Ta):sh(Ta);return Uc(yr,Ju,Eo,!0)}function _f(yr,pi,Eo,Bi){const wo=pi===35||pi===37,Ta=pi===35||pi===36?98304:32768,Ju=s1(Eo);return wo!==Bi&&Ex(Ju,_d=>!!(_d.flags&Ta))||wo===Bi&&Ex(Ju,_d=>!(_d.flags&(3|Ta)))?kO(yr,2097152):yr}function hd(yr,pi,Eo,Bi){if(yr.flags&1)return yr;(pi===36||pi===38)&&(Bi=!Bi);const wo=s1(Eo),Ta=pi===35||pi===36;if(wo.flags&98304){if(!Ke)return yr;const Ju=Ta?Bi?262144:2097152:wo.flags&65536?Bi?131072:1048576:Bi?65536:524288;return kO(yr,Ju)}if(Bi){if(!Ta&&(yr.flags&2||Uk(yr,VI))){if(wo.flags&469893116||VI(wo))return wo;if(wo.flags&524288)return G_}const Ju=lv(yr,Lc=>bbe(Lc,wo)||Ta&&jBe(Lc,wo));return cze(Ju,wo)}return UI(wo)?lv(yr,Ju=>!(ltt(Ju)&&bbe(Ju,wo))):yr}function Is(yr,pi,Eo,Bi,wo){(Eo===36||Eo===38)&&(wo=!wo);const Ta=a8(pi.expression);if(!Dv(o,Ta)){Ke&&AD(Ta,o)&&wo===(Bi.text!=="undefined")&&(yr=kO(yr,2097152));const Ju=Da(Ta,yr);return Ju?cc(yr,Ju,Lc=>pm(Lc,Bi,wo)):yr}return pm(yr,Bi,wo)}function pm(yr,pi,Eo){return Eo?cg(yr,pi.text):kO(yr,Dae.get(pi.text)||32768)}function Sh(yr,pi,Eo,Bi,wo){return Eo!==Bi&&jr(Obe(pi).slice(Eo,Bi),wo)?IC(yr,2097152):yr}function vb(yr,pi,Eo,Bi){const wo=Obe(pi);if(!wo.length)return yr;const Ta=wo.slice(Eo,Bi),Ju=Eo===Bi||ni(Ta,Tc);if(yr.flags&2&&!Ju){let Rl;for(let af=0;afbbe(Lc,Rl)),Lc);if(!Ju)return _d;const ga=lv(yr,Rl=>!(ltt(Rl)&&ni(wo,$S($gt(Rl)))));return _d.flags&131072?ga:dc([_d,ga])}function cg(yr,pi){switch(pi){case"string":return u1(yr,Nn,1);case"number":return u1(yr,Lr,2);case"bigint":return u1(yr,qi,4);case"boolean":return u1(yr,Pc,8);case"symbol":return u1(yr,hc,16);case"object":return yr.flags&1?yr:dc([u1(yr,G_,32),u1(yr,mn,131072)]);case"function":return yr.flags&1?yr:u1(yr,ci,64);case"undefined":return u1(yr,Ce,65536)}return u1(yr,G_,128)}function u1(yr,pi,Eo){return Th(yr,Bi=>qS(Bi,pi,wm)?DC(Bi,Eo)?Bi:Tc:nL(pi,Bi)?pi:DC(Bi,Eo)?vp([Bi,pi]):Tc)}function f0(yr,pi,Eo,Bi){const wo=Fbe(pi);if(!wo)return yr;const Ta=Ho(pi.caseBlock.clauses,_d=>_d.kind===297);if(Eo===Bi||Ta>=Eo&&TavK(ga,_d)===_d)}const Lc=wo.slice(Eo,Bi);return dc(Vn(Lc,_d=>_d?cg(yr,_d):Tc))}function jh(yr,pi,Eo,Bi){const wo=Ho(pi.caseBlock.clauses,Lc=>Lc.kind===297),Ta=Eo===Bi||wo>=Eo&&woLc.kind===296?rl(yr,Lc.expression,!0):Tc))}function XA(yr){return(Ac(yr)&&Kr(yr.name)==="constructor"||Hm(yr)&&Cm(yr.argumentExpression)&&yr.argumentExpression.text==="constructor")&&Dv(o,yr.expression)}function mr(yr,pi,Eo,Bi){if(Bi?pi!==35&&pi!==37:pi!==36&&pi!==38)return yr;const wo=s1(Eo);if(!Qk(wo)&&!Du(wo))return yr;const Ta=Yd(wo,"prototype");if(!Ta)return yr;const Ju=La(Ta),Lc=bn(Ju)?void 0:Ju;if(!Lc||Lc===Jt||Lc===ci)return yr;if(bn(yr))return Lc;return lv(yr,ga=>_d(ga,Lc));function _d(ga,Rl){return ga.flags&524288&&ji(ga)&1||Rl.flags&524288&&ji(Rl)&1?ga.symbol===Rl.symbol:nL(ga,Rl)}}function Ht(yr,pi,Eo){const Bi=a8(pi.left);if(!Dv(o,Bi))return Eo&&Ke&&AD(Bi,o)?kO(yr,2097152):yr;const wo=pi.right,Ta=s1(wo);if(!nN(Ta,Jt))return yr;const Ju=FV(pi),Lc=Ju&&Wb(Ju);if(Lc&&Lc.kind===1&&Lc.parameterIndex===0)return Uc(yr,Lc.type,Eo,!0);if(!nN(Ta,ci))return yr;const _d=Th(Ta,Ws);return bn(yr)&&(_d===Jt||_d===ci)||!Eo&&!(_d.flags&524288&&!VI(_d))?yr:Uc(yr,_d,Eo,!0)}function Ws(yr){const pi=Xe(yr,"prototype");if(pi&&!bn(pi))return pi;const Eo=ed(yr,1);return Eo.length?dc(Vn(Eo,Bi=>np(Mue(Bi)))):M_}function Uc(yr,pi,Eo,Bi){const wo=yr.flags&1048576?`N${By(yr)},${By(pi)},${(Eo?1:0)|(Bi?2:0)}`:void 0;return zr(wo)??xi(wo,Ql(yr,pi,Eo,Bi))}function Ql(yr,pi,Eo,Bi){if(!Eo){if(Bi)return lv(yr,_d=>!nN(_d,pi));const Lc=Uc(yr,pi,!0,!1);return lv(yr,_d=>!Lte(_d,Lc))}if(yr.flags&3)return pi;const wo=Bi?nN:nL,Ta=yr.flags&1048576?dfe(yr):void 0,Ju=Th(pi,Lc=>{const _d=Ta&&Xe(Lc,Ta),ga=_d&&Lbe(yr,_d),Rl=Th(ga||yr,Bi?af=>nN(af,Lc)?af:nN(Lc,af)?Lc:Tc:af=>ABe(af,Lc)?af:ABe(Lc,af)?Lc:nL(af,Lc)?af:nL(Lc,af)?Lc:Tc);return Rl.flags&131072?Th(yr,af=>Sy(af,465829888)&&wo(Lc,US(af)||Io)?vp([af,Lc]):Tc):Rl});return Ju.flags&131072?nL(pi,yr)?pi:Id(yr,pi)?yr:Id(pi,yr)?pi:vp([yr,pi]):Ju}function Kl(yr,pi,Eo){if(oze(pi,o)){const Bi=Eo||!AN(pi)?FV(pi):void 0,wo=Bi&&Wb(Bi);if(wo&&(wo.kind===0||wo.kind===1))return Iu(yr,wo,pi,Eo)}if(cfe(yr)&&Kf(o)&&Ac(pi.expression)){const Bi=pi.expression;if(Dv(o.expression,a8(Bi.expression))&&xn(Bi.name)&&Bi.name.escapedText==="hasOwnProperty"&&pi.arguments.length===1){const wo=pi.arguments[0];if(Cm(wo)&&p5(o)===ey(wo.text))return IC(yr,Eo?524288:65536)}}return yr}function Iu(yr,pi,Eo,Bi){if(pi.type&&!(bn(yr)&&(pi.type===Jt||pi.type===ci))){const wo=bht(pi,Eo);if(wo){if(Dv(o,wo))return Uc(yr,pi.type,Bi,!1);Ke&&AD(wo,o)&&(Bi&&!DC(pi.type,65536)||!Bi&&Ex(pi.type,n1e))&&(yr=kO(yr,2097152));const Ta=Da(wo,yr);if(Ta)return cc(yr,Ta,Ju=>Uc(Ju,pi.type,Bi,!1))}}return yr}function rl(yr,pi,Eo){if(BU(pi)||Ds(pi.parent)&&(pi.parent.operatorToken.kind===61||pi.parent.operatorToken.kind===78)&&pi.parent.left===pi)return Dc(yr,pi,Eo);switch(pi.kind){case 80:if(!Dv(o,pi)&&ie<5){const Bi=xD(pi);if(Gte(Bi)){const wo=Bi.valueDeclaration;if(wo&&Kc(wo)&&!wo.type&&wo.initializer&&jtt(o)){ie++;const Ta=rl(yr,wo.initializer,Eo);return ie--,Ta}}}case 110:case 108:case 211:case 212:return ad(yr,pi,Eo);case 213:return Kl(yr,pi,Eo);case 217:case 235:return rl(yr,pi.expression,Eo);case 226:return ua(yr,pi,Eo);case 224:if(pi.operator===54)return rl(yr,pi.operand,!Eo);break}return yr}function Dc(yr,pi,Eo){if(Dv(o,pi))return kO(yr,Eo?2097152:262144);const Bi=Da(pi,yr);return Bi?cc(yr,Bi,wo=>IC(wo,Eo?2097152:262144)):yr}}function Tht(o,f){if(o=eA(o),(f.kind===80||f.kind===81)&&(z7(f)&&(f=f.parent),ZD(f)&&(!VE(f)||o6(f)))){const v=mNe(o6(f)&&f.kind===211?Dfe(f,void 0,!0):s1(f));if(eA(rt(f).resolvedSymbol)===o)return v}return ON(f)&&UC(f.parent)&&ng(f.parent)?lPe(f.parent.symbol):r6(f)&&o6(f.parent)?QF(o):AC(o)}function zte(o){return Ua(o.parent,f=>F_(f)&&!v7(f)||f.kind===268||f.kind===312||f.kind===172)}function Bbe(o){if(!o.valueDeclaration)return!1;const f=vA(o.valueDeclaration).parent,v=rt(f);return v.flags&131072||(v.flags|=131072,xK(f)||iN(f)),o.isAssigned||!1}function xK(o){return!!Ua(o.parent,f=>(F_(f)||A3(f))&&!!(rt(f).flags&131072))}function iN(o){if(o.kind===80){if(VE(o)){const f=xD(o);_oe(f)&&(f.isAssigned=!0)}}else s_(o,iN)}function Gte(o){return o.flags&3&&(nwe(o)&6)!==0}function zNe(o){const f=rt(o);if(f.parameterInitializerContainsUndefined===void 0){if(!OI(o,9))return AB(o.symbol),!0;const v=!!DC(ine(o,0),16777216);if(!Bk())return AB(o.symbol),!0;f.parameterInitializerContainsUndefined=v}return f.parameterInitializerContainsUndefined}function GNe(o,f){return Ke&&f.kind===169&&f.initializer&&DC(o,16777216)&&!zNe(f)?IC(o,524288):o}function Vtt(o,f){const v=f.parent;return v.kind===211||v.kind===166||v.kind===213&&v.expression===f||v.kind===212&&v.expression===f&&!(Uk(o,zbe)&&Tx(s1(v.argumentExpression)))}function Utt(o){return o.flags&2097152?gt(o.types,Utt):!!(o.flags&465829888&&tM(o).flags&1146880)}function zbe(o){return o.flags&2097152?gt(o.types,zbe):!!(o.flags&465829888&&!Sy(tM(o),98304))}function fze(o,f){const v=(xn(o)||Ac(o)||Hm(o))&&!((Pb(o.parent)||nF(o.parent))&&o.parent.tagName===o)&&(f&&f&32?NE(o,8):NE(o,void 0));return v&&!uK(v)}function NO(o,f,v){return!(v&&v&2)&&Uk(o,Utt)&&(Vtt(o,f)||fze(f,v))?Th(o,tM):o}function _ze(o){return!!Ua(o,f=>{const v=f.parent;return v===void 0?"quit":my(v)?v.expression===f&&Tg(f):gy(v)?v.name===f||v.propertyName===f:!1})}function WV(o,f){if(Fr&&uw(o,111551)&&!yR(f)){const v=C0(o);pT(o,!0)&1160127&&(F0(Pe)||gk(Pe)&&_ze(f)||!ud(eA(v))?fw(o):s0(o))}}function Htt(o,f){var v;const A=La(o),R=o.valueDeclaration;if(R){if(sa(R)&&!R.initializer&&!R.dotDotDotToken&&R.parent.elements.length>=2){const B=R.parent.parent;if(B.kind===260&&XV(R)&6||B.kind===169){const Y=rt(B);if(!(Y.flags&4194304)){Y.flags|=4194304;const pe=Ri(B,0),Te=pe&&Th(pe,tM);if(Y.flags&=-4194305,Te&&Te.flags&1048576&&!(B.kind===169&&Bbe(o))){const Ue=R.parent,St=s8(Ue,Te,Te,void 0,f.flowNode);return St.flags&131072?Tc:pb(R,St,!0)}}}}if(Os(R)&&!R.type&&!R.initializer&&!R.dotDotDotToken){const B=R.parent;if(B.parameters.length>=2&&efe(B)){const Y=vfe(B);if(Y&&Y.parameters.length===1&&A1(Y)){const pe=dte(zu(La(Y.parameters[0]),(v=g5(B))==null?void 0:v.nonFixingMapper));if(pe.flags&1048576&&Ex(pe,Dp)&&!Bbe(o)){const Te=s8(B,pe,pe,void 0,f.flowNode),Ue=B.parameters.indexOf(R)-(BN(B)?1:0);return u0(Te,HA(Ue))}}}}}return A}function Sht(o,f){if(V9(o))return Ube(o);const v=xD(o);if(v===Pr)return Sr;if(v===Tr){if(ynt(o))return hn(o,N.arguments_cannot_be_referenced_in_property_initializers),Sr;const mo=zE(o);return dt<2&&(mo.kind===219?hn(o,N.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):ul(mo,1024)&&hn(o,N.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),rt(mo).flags|=512,La(v)}dze(o)&&WV(v,o);const A=eA(v),R=hs(A,o);BS(R)&&$ue(o,R)&&R.declarations&&pS(o,R.declarations,o.escapedText);let B=A.valueDeclaration;if(B&&A.flags&32&&Fl(B)&&B.name!==o){let mo=RT(o,!1,!1);for(;mo.kind!==312&&mo.parent!==B;)mo=RT(mo,!1,!1);mo.kind!==312&&(rt(B).flags|=262144,rt(mo).flags|=262144,rt(o).flags|=536870912)}qtt(o,v);let Y=Htt(A,o);const pe=q8(o);if(pe){if(!(A.flags&3)&&!(Cs(o)&&A.flags&512)){const mo=A.flags&384?N.Cannot_assign_to_0_because_it_is_an_enum:A.flags&32?N.Cannot_assign_to_0_because_it_is_a_class:A.flags&1536?N.Cannot_assign_to_0_because_it_is_a_namespace:A.flags&16?N.Cannot_assign_to_0_because_it_is_a_function:A.flags&2097152?N.Cannot_assign_to_0_because_it_is_an_import:N.Cannot_assign_to_0_because_it_is_not_a_variable;return hn(o,mo,ru(v)),Sr}if(z1(A))return A.flags&3?hn(o,N.Cannot_assign_to_0_because_it_is_a_constant,ru(v)):hn(o,N.Cannot_assign_to_0_because_it_is_a_read_only_property,ru(v)),Sr}const Te=A.flags&2097152;if(A.flags&3){if(pe===1)return P7(o)?pM(Y):Y}else if(Te)B=UT(v);else return Y;if(!B)return Y;Y=NO(Y,o,f);const Ue=vA(B).kind===169,St=zte(B);let Rt=zte(o);const rn=Rt!==St,Sn=o.parent&&o.parent.parent&&xA(o.parent)&&aze(o.parent.parent),xr=v.flags&134217728,Ai=Y===Br||Y===Bh,So=Ai&&o.parent.kind===235;for(;Rt!==St&&(Rt.kind===218||Rt.kind===219||x9(Rt))&&(Gte(A)&&Y!==Bh||Ue&&!Bbe(A));)Rt=zte(Rt);const la=Ue||Te||rn||Sn||xr||Jtt(o,B)||Y!==Br&&Y!==Bh&&(!Ke||(Y.flags&16387)!==0||yR(o)||rze(o)||o.parent.kind===281)||o.parent.kind===235||B.kind===260&&B.exclamationToken||B.flags&33554432,Zs=So?Ce:la?Ue?GNe(Y,B):Y:Ai?Ce:iL(Y),ba=So?Dw(s8(o,Y,Zs,Rt)):s8(o,Y,Zs,Rt);if(!ztt(o)&&(Y===Br||Y===Bh)){if(ba===Br||ba===Bh)return Et&&(hn(i_(B),N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ru(v),Co(ba)),hn(o,N.Variable_0_implicitly_has_an_1_type,ru(v),Co(ba))),Jy(ba)}else if(!la&&!dK(Y)&&dK(ba))return hn(o,N.Variable_0_is_used_before_being_assigned,ru(v)),Y;return pe?pM(ba):ba}function Jtt(o,f){if(sa(f)){const v=Ua(o,sa);return v&&vA(v)===vA(f)}}function dze(o){var f;const v=o.parent;if(v){if(Ac(v)&&v.expression===o||gy(v)&&v.isTypeOnly)return!1;const A=(f=v.parent)==null?void 0:f.parent;if(A&&ry(A)&&A.isTypeOnly)return!1}return!0}function $tt(o,f){return!!Ua(o,v=>v===f?"quit":F_(v)||v.parent&&nu(v.parent)&&!ev(v.parent)&&v.parent.initializer===v)}function pze(o,f){return Ua(o,v=>v===f?"quit":v===f.initializer||v===f.condition||v===f.incrementor||v===f.statement)}function Gbe(o){return Ua(o,f=>!f||kie(f)?"quit":OL(f,!1))}function qtt(o,f){if(dt>=2||!(f.flags&34)||!f.valueDeclaration||Nu(f.valueDeclaration)||f.valueDeclaration.parent.kind===299)return;const v=QD(f.valueDeclaration),A=$tt(o,v),R=Gbe(v);if(R){if(A){let B=!0;if(bW(v)){const Y=oC(f.valueDeclaration,261);if(Y&&Y.parent===v){const pe=pze(o.parent,v);if(pe){const Te=rt(pe);Te.flags|=8192;const Ue=Te.capturedBlockScopeBindings||(Te.capturedBlockScopeBindings=[]);Dy(Ue,f),pe===v.initializer&&(B=!1)}}}B&&(rt(R).flags|=4096)}if(bW(v)){const B=oC(f.valueDeclaration,261);B&&B.parent===v&&jbe(o,v)&&(rt(f.valueDeclaration).flags|=65536)}rt(f.valueDeclaration).flags|=32768}A&&(rt(f.valueDeclaration).flags|=16384)}function Eht(o,f){const v=rt(o);return!!v&&ni(v.capturedBlockScopeBindings,sc(f))}function jbe(o,f){let v=o;for(;v.parent.kind===217;)v=v.parent;let A=!1;if(VE(v))A=!0;else if(v.parent.kind===224||v.parent.kind===225){const R=v.parent;A=R.operator===46||R.operator===47}return A?!!Ua(v,R=>R===f?"quit":R===f.statement):!1}function jNe(o,f){if(rt(o).flags|=2,f.kind===172||f.kind===176){const v=f.parent;rt(v).flags|=4}else rt(f).flags|=4}function mfe(o){return h1(o)?o:F_(o)?void 0:s_(o,mfe)}function Vbe(o){const f=sc(o),v=sh(f);return cv(v)===Jn}function Ktt(o,f,v){const A=f.parent;gR(A)&&!Vbe(A)&&J8(o)&&o.flowNode&&!BNe(o.flowNode,!1)&&hn(o,v)}function Xtt(o,f){nu(f)&&ev(f)&&ct&&f.initializer&&P8(f.initializer,o.pos)&&X2(f.parent)&&hn(o,N.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Ube(o){const f=yR(o);let v=RT(o,!0,!0),A=!1,R=!1;for(v.kind===176&&Ktt(o,v,N.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(v.kind===219&&(v=RT(v,!1,!R),A=!0),v.kind===167){v=RT(v,!A,!1),R=!0;continue}break}if(Xtt(o,v),R)hn(o,N.this_cannot_be_referenced_in_a_computed_property_name);else switch(v.kind){case 267:hn(o,N.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:hn(o,N.this_cannot_be_referenced_in_current_location);break;case 176:Qtt(o,v)&&hn(o,N.this_cannot_be_referenced_in_constructor_arguments);break}!f&&A&&dt<2&&jNe(o,v);const B=VNe(o,!0,v);if(at){const Y=La(fr);if(B===Y&&A)hn(o,N.The_containing_arrow_function_captures_the_global_value_of_this);else if(!B){const pe=hn(o,N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Nu(v)){const Te=VNe(v);Te&&Te!==Y&&ml(pe,Bs(v,N.An_outer_value_of_this_is_shadowed_by_this_container))}}}return B||Ge}function VNe(o,f=!0,v=RT(o,!1,!1)){const A=Cs(o);if(F_(v)&&(!HNe(o)||BN(v))){let R=j4(v)||A&&Ytt(v);if(!R){const B=xht(v);if(A&&B){const Y=Bf(B).symbol;Y&&Y.members&&Y.flags&16&&(R=sh(Y).thisType)}else Ax(v)&&(R=sh(jp(v.symbol)).thisType);R||(R=gze(v))}if(R)return s8(o,R)}if(Fl(v.parent)){const R=sc(v.parent),B=pd(v)?La(R):sh(R).thisType;return s8(o,B)}if(Nu(v))if(v.commonJsModuleIndicator){const R=sc(v);return R&&La(R)}else{if(v.externalModuleIndicator)return Ce;if(f)return La(fr)}}function Hbe(o){const f=RT(o,!1,!1);if(F_(f)){const v=gb(f);if(v.thisParameter)return FNe(v.thisParameter)}if(Fl(f.parent)){const v=sc(f.parent);return pd(f)?La(v):sh(v).thisType}}function xht(o){if(o.kind===218&&Ds(o.parent)&&jy(o.parent)===3)return o.parent.left.expression.expression;if(o.kind===174&&o.parent.kind===210&&Ds(o.parent.parent)&&jy(o.parent.parent)===6)return o.parent.parent.left.expression;if(o.kind===218&&o.parent.kind===303&&o.parent.parent.kind===210&&Ds(o.parent.parent.parent)&&jy(o.parent.parent.parent)===6)return o.parent.parent.parent.left.expression;if(o.kind===218&&tl(o.parent)&&xn(o.parent.name)&&(o.parent.name.escapedText==="value"||o.parent.name.escapedText==="get"||o.parent.name.escapedText==="set")&&el(o.parent.parent)&&xd(o.parent.parent.parent)&&o.parent.parent.parent.arguments[2]===o.parent.parent&&jy(o.parent.parent.parent)===9)return o.parent.parent.parent.arguments[0].expression;if(tm(o)&&xn(o.name)&&(o.name.escapedText==="value"||o.name.escapedText==="get"||o.name.escapedText==="set")&&el(o.parent)&&xd(o.parent.parent)&&o.parent.parent.arguments[2]===o.parent&&jy(o.parent.parent)===9)return o.parent.parent.arguments[0].expression}function Ytt(o){const f=Xre(o);if(f&&f.typeExpression)return Xl(f.typeExpression);const v=gte(o);if(v)return J4(v)}function Qtt(o,f){return!!Ua(o,v=>Vd(v)?"quit":v.kind===169&&v.parent===f)}function BV(o){const f=o.parent.kind===213&&o.parent.expression===o,v=h0(o,!0);let A=v,R=!1,B=!1;if(!f){for(;A&&A.kind===219;)ul(A,1024)&&(B=!0),A=h0(A,!0),R=dt<2;A&&ul(A,1024)&&(B=!0)}let Y=0;if(!A||!St(A)){const Rt=Ua(o,rn=>rn===A?"quit":rn.kind===167);return Rt&&Rt.kind===167?hn(o,N.super_cannot_be_referenced_in_a_computed_property_name):f?hn(o,N.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!A||!A.parent||!(Fl(A.parent)||A.parent.kind===210)?hn(o,N.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):hn(o,N.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Sr}if(!f&&v.kind===176&&Ktt(o,A,N.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),pd(A)||f?(Y=32,!f&&dt>=2&&dt<=8&&(nu(A)||Ep(A))&&hde(o.parent,Rt=>{(!Nu(Rt)||aE(Rt))&&(rt(Rt).flags|=2097152)})):Y=16,rt(o).flags|=Y,A.kind===174&&B&&(MT(o.parent)&&VE(o.parent)?rt(A).flags|=256:rt(A).flags|=128),R&&jNe(o.parent,A),A.parent.kind===210)return dt<2?(hn(o,N.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Sr):Ge;const pe=A.parent;if(!gR(pe))return hn(o,N.super_can_only_be_referenced_in_a_derived_class),Sr;if(Vbe(pe))return f?Sr:Jn;const Te=sh(sc(pe)),Ue=Te&&l0(Te)[0];if(!Ue)return Sr;if(A.kind===176&&Qtt(o,A))return hn(o,N.super_cannot_be_referenced_in_constructor_arguments),Sr;return Y===32?cv(Te):vx(Ue,Te.thisType);function St(Rt){return f?Rt.kind===176:Fl(Rt.parent)||Rt.parent.kind===210?pd(Rt)?Rt.kind===174||Rt.kind===173||Rt.kind===177||Rt.kind===178||Rt.kind===172||Rt.kind===175:Rt.kind===174||Rt.kind===173||Rt.kind===177||Rt.kind===178||Rt.kind===172||Rt.kind===171||Rt.kind===176:!1}}function Ztt(o){return(o.kind===174||o.kind===177||o.kind===178)&&o.parent.kind===210?o.parent:o.kind===218&&o.parent.kind===303?o.parent.parent:void 0}function ent(o){return ji(o)&4&&o.target===P_?ch(o)[0]:void 0}function Aht(o){return Th(o,f=>f.flags&2097152?Ot(f.types,ent):ent(f))}function mze(o,f){let v=o,A=f;for(;A;){const R=Aht(A);if(R)return R;if(v.parent.kind!==303)break;v=v.parent.parent,A=c8(v,void 0)}}function gze(o){if(o.kind===219)return;if(efe(o)){const v=vfe(o);if(v){const A=v.thisParameter;if(A)return La(A)}}const f=Cs(o);if(at||f){const v=Ztt(o);if(v){const R=c8(v,void 0),B=mze(v,R);return B?zu(B,bNe(g5(v))):z2(R?Dw(R):kv(v))}const A=IS(o.parent);if(Zv(A)){const R=A.left;if(Kf(R)){const{expression:B}=R;if(f&&xn(B)){const Y=ts(A);if(Y.commonJsModuleIndicator&&xD(B)===Y.symbol)return}return z2(kv(B))}}}}function tnt(o){const f=o.parent;if(!efe(f))return;const v=v7(f);if(v&&v.arguments){const R=s1e(v),B=f.parameters.indexOf(o);if(o.dotDotDotToken)return pwe(R,B,R.length,Ge,void 0,0);const Y=rt(v),pe=Y.resolvedSignature;Y.resolvedSignature=_i;const Te=B0)return xB(v.name,!0,!1)}}function kht(o,f){const v=zE(o);if(v){let A=$Ne(v,f);if(A){const R=ob(v);if(R&1){const B=(R&2)!==0;A.flags&1048576&&(A=lv(A,pe=>!!b5(1,pe,B)));const Y=b5(1,A,(R&2)!==0);if(!Y)return;A=Y}if(R&2){const B=Th(A,gM);return B&&dc([B,g1e(B)])}return A}}}function UNe(o,f){const v=NE(o,f);if(v){const A=gM(v);return A&&dc([A,g1e(A)])}}function Pht(o,f){const v=zE(o);if(v){const A=ob(v);let R=$Ne(v,f);if(R){const B=(A&2)!==0;return!o.asteriskToken&&R.flags&1048576&&(R=lv(R,Y=>!!b5(1,Y,B))),o.asteriskToken?R:b5(0,R,B)}}}function HNe(o){let f=!1;for(;o.parent&&!F_(o.parent);){if(Os(o.parent)&&(f||o.parent.initializer===o))return!0;sa(o.parent)&&o.parent.initializer===o&&(f=!0),o=o.parent}return!1}function JNe(o,f){const v=!!(ob(f)&2),A=$Ne(f,void 0);if(A)return b5(o,A,v)||void 0}function $Ne(o,f){const v=sK(o);if(v)return v;const A=YNe(o);if(A&&!K0e(A)){const B=np(A),Y=ob(o);return Y&1?lv(B,pe=>!!(pe.flags&58998787)||AGe(pe,Y,void 0)):Y&2?lv(B,pe=>!!(pe.flags&58998787)||!!WK(pe)):B}const R=v7(o);if(R)return NE(R,f)}function yze(o,f){const A=s1e(o).indexOf(f);return A===-1?void 0:Jbe(o,A)}function Jbe(o,f){if(Py(o))return f===0?Nn:f===1?pet(!1):Ge;const v=rt(o).resolvedSignature===Sc?Sc:y5(o);if(m1(o)&&f===0)return Xbe(v,o);const A=v.parameters.length-1;return A1(v)&&f>=A?u0(La(v.parameters[A]),HA(f-A),256):XI(v,f)}function nnt(o){const f=cGe(o);return f?o5(f):void 0}function Nht(o,f){if(o.parent.kind===215)return yze(o.parent,f)}function wht(o,f){const v=o.parent,{left:A,operatorToken:R,right:B}=v;switch(R.kind){case 64:case 77:case 76:case 78:return o===B?qNe(v):void 0;case 57:case 61:const Y=NE(v,f);return o===B&&(Y&&Y.pattern||!Y&&!Aie(v))?s1(A):Y;case 56:case 28:return o===B?NE(v,f):void 0;default:return}}function Rht(o){if(ck(o)&&o.symbol)return o.symbol;if(xn(o))return xD(o);if(Ac(o)){const v=s1(o.expression);return Lu(o.name)?f(v,o.name):Yd(v,o.name.escapedText)}if(Hm(o)){const v=kv(o.argumentExpression);if(!yv(v))return;const A=s1(o.expression);return Yd(A,vv(v))}return;function f(v,A){const R=rwe(A.escapedText,A);return R&&owe(v,R)}}function qNe(o){var f,v;const A=jy(o);switch(A){case 0:case 4:const R=Rht(o.left),B=R&&R.valueDeclaration;if(B&&(nu(B)||em(B))){const Te=Zy(B);return Te&&zu(Xl(Te),Ae(R).mapper)||(nu(B)?B.initializer&&s1(o.left):void 0)}return A===0?s1(o.left):rnt(o);case 5:if(KNe(o,A))return rnt(o);if(!ck(o.left)||!o.left.symbol)return s1(o.left);{const Te=o.left.symbol.valueDeclaration;if(!Te)return;const Ue=uc(o.left,Kf),St=Zy(Te);if(St)return Xl(St);if(xn(Ue.expression)){const Rt=Ue.expression,rn=gg(Rt,Rt.escapedText,111551,void 0,Rt.escapedText,!0);if(rn){const Sn=rn.valueDeclaration&&Zy(rn.valueDeclaration);if(Sn){const xr=eI(Ue);if(xr!==void 0)return oN(Xl(Sn),xr)}return}}return Cs(Te)||Te===o.left?void 0:s1(o.left)}case 1:case 6:case 3:case 2:let Y;A!==2&&(Y=ck(o.left)?(f=o.left.symbol)==null?void 0:f.valueDeclaration:void 0),Y||(Y=(v=o.symbol)==null?void 0:v.valueDeclaration);const pe=Y&&Zy(Y);return pe?Xl(pe):void 0;case 7:case 8:case 9:return re.fail("Does not apply");default:return re.assertNever(A)}}function KNe(o,f=jy(o)){if(f===4)return!0;if(!Cs(o)||f!==5||!xn(o.left.expression))return!1;const v=o.left.expression.escapedText,A=gg(o.left,v,111551,void 0,void 0,!0,!0);return bie(A==null?void 0:A.valueDeclaration)}function rnt(o){if(!o.symbol)return s1(o.left);if(o.symbol.valueDeclaration){const R=Zy(o.symbol.valueDeclaration);if(R){const B=Xl(R);if(B)return B}}const f=uc(o.left,Kf);if(!iC(RT(f.expression,!1,!1)))return;const v=Ube(f.expression),A=eI(f);return A!==void 0&&oN(v,A)||void 0}function Mht(o){return!!(I_(o)&262144&&!o.links.type&&HT(o,0)>=0)}function oN(o,f,v){return Th(o,A=>{var R;if(Fb(A)&&!A.declaration.nameType){const B=$v(A),Y=US(B)||B,pe=v||vS(Ic(f));if(Id(pe,Y))return _p(A,pe)}else if(A.flags&3670016){const B=Yd(A,f);if(B)return Mht(B)?void 0:r8(La(B),!!(B&&B.flags&16777216));if(Dp(A)&&FT(f)&&+f>=0){const Y=Ite(A,A.target.fixedLength,0,!1,!0);if(Y)return Y}return(R=r5(wWe(A),v||vS(Ic(f))))==null?void 0:R.type}},!0)}function JI(o,f){if(re.assert(iC(o)),!(o.flags&67108864))return $be(o,f)}function $be(o,f){const v=o.parent,A=tl(o)&&hze(o,f);if(A)return A;const R=c8(v,f);if(R){if(DB(o)){const B=sc(o);return oN(R,B.escapedName,Ae(B).nameType)}if(tI(o)){const B=i_(o);if(B&&Qf(B)){const Y=Bf(B.expression),pe=yv(Y)&&oN(R,vv(Y));if(pe)return pe}}if(o.name){const B=SD(o.name);return Th(R,Y=>{var pe;return(pe=r5(wWe(Y),B))==null?void 0:pe.type},!0)}}}function Lht(o){let f,v;for(let A=0;A{if(Dp(B)){if((A===void 0||fR)?v-f:0,pe=Y>0&&B.target.hasRestElement?Uue(B.target,3):0;return Y>0&&Y<=pe?ch(B)[Y6(B)-Y]:Ite(B,A===void 0?B.target.fixedLength:Math.min(B.target.fixedLength,A),v===void 0||R===void 0?pe:Math.min(pe,v-R),!1,!0)}return(!A||frL(Te)?u0(Te,HA(Y)):Te,!0))}function XNe(o,f){const v=o.parent;return rie(v)?NE(o,f):zx(v)?Fht(v,o,f):void 0}function hfe(o,f){if(tx(o)){const v=c8(o.parent,f);return!v||bn(v)?void 0:oN(v,m3(o.name))}else return NE(o.parent,f)}function yfe(o){switch(o.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 yfe(o.expression);case 294:return!o.expression||yfe(o.expression)}return!1}function Wht(o,f){return uht(f,o)||NBe(f,Hi(Vn(gi(o.properties,v=>v.symbol?v.kind===303?yfe(v.initializer)&&jB(f,v.symbol.escapedName):v.kind===304?jB(f,v.symbol.escapedName):!1:!1),v=>[()=>jfe(v.kind===303?v.initializer:v.name),v.symbol.escapedName]),Vn(gi(zm(f),v=>{var A;return!!(v.flags&16777216)&&!!((A=o==null?void 0:o.symbol)!=null&&A.members)&&!o.symbol.members.has(v.escapedName)&&jB(f,v.escapedName)}),v=>[()=>Ce,v.escapedName])),Id)}function vze(o,f){const v=Efe(aL(o));return NBe(f,Hi(Vn(gi(o.properties,A=>!!A.symbol&&A.kind===291&&jB(f,A.symbol.escapedName)&&(!A.initializer||yfe(A.initializer))),A=>[A.initializer?()=>jfe(A.initializer):()=>Ts,A.symbol.escapedName]),Vn(gi(zm(f),A=>{var R;if(!(A.flags&16777216)||!((R=o==null?void 0:o.symbol)!=null&&R.members))return!1;const B=o.parent.parent;return A.escapedName===v&&zx(B)&&B9(B.children).length?!1:!o.symbol.members.has(A.escapedName)&&jB(f,A.escapedName)}),A=>[()=>Ce,A.escapedName])),Id)}function c8(o,f){const v=iC(o)?JI(o,f):NE(o,f),A=qbe(v,o,f);if(A&&!(f&&f&2&&A.flags&8650752)){const R=Th(A,B=>ji(B)&32?B:yS(B),!0);return R.flags&1048576&&el(o)?Wht(o,R):R.flags&1048576&&CR(o)?vze(o,R):R}}function qbe(o,f,v){if(o&&Sy(o,465829888)){const A=g5(f);if(A&&v&1&>(A.inferences,evt))return Kbe(o,A.nonFixingMapper);if(A!=null&&A.returnMapper){const R=Kbe(o,A.returnMapper);return R.flags&1048576&&Z4(R.types,Ro)&&Z4(R.types,Cc)?lv(R,B=>B!==Ro&&B!==Cc):R}}return o}function Kbe(o,f){return o.flags&465829888?zu(o,f):o.flags&1048576?dc(Vn(o.types,v=>Kbe(v,f)),0):o.flags&2097152?vp(Vn(o.types,v=>Kbe(v,f))):o}function NE(o,f){var v;if(o.flags&67108864)return;const A=bze(o,!f);if(A>=0)return ks[A];const{parent:R}=o;switch(R.kind){case 260:case 169:case 172:case 171:case 208:return Iht(o,f);case 219:case 253:return kht(o,f);case 229:return Pht(R,f);case 223:return UNe(R,f);case 213:case 214:return yze(R,o);case 170:return nnt(R);case 216:case 234:return ky(R.type)?NE(R,f):Xl(R.type);case 226:return wht(o,f);case 303:case 304:return $be(R,f);case 305:return NE(R.parent,f);case 209:{const B=R,Y=c8(B,f),pe=y9(B.elements,o),Te=(v=rt(B)).spreadIndices??(v.spreadIndices=Lht(B.elements));return gfe(Y,pe,B.elements.length,Te.first,Te.last)}case 227:return Oht(o,f);case 239:return re.assert(R.parent.kind===228),Nht(R.parent,o);case 217:{if(Cs(R)){if(poe(R))return Xl(moe(R));const B=FM(R);if(B&&!ky(B.typeExpression.type))return Xl(B.typeExpression.type)}return NE(R,f)}case 235:return NE(R,f);case 238:return Xl(R.type);case 277:return wn(R);case 294:return XNe(R,f);case 291:case 293:return hfe(R,f);case 286:case 285:return ont(R,f)}}function int(o){jte(o,NE(o,void 0),!0)}function jte(o,f,v){Fc[Vs]=o,ks[Vs]=f,Xs[Vs]=v,Vs++}function Vte(){Vs--}function bze(o,f){for(let v=Vs-1;v>=0;v--)if(o===Fc[v]&&(f||!Xs[v]))return v;return-1}function Bht(o,f){wu[Q]=o,Yp[Q]=f,Q++}function zht(){Q--}function g5(o){for(let f=Q-1;f>=0;f--)if(Lx(o,wu[f]))return Yp[f]}function ont(o,f){if(Pb(o)&&f!==4){const v=bze(o.parent,!f);if(v>=0)return ks[v]}return Jbe(o,0)}function Xbe(o,f){return knt(f)!==0?Ght(o,f):Eze(o,f)}function Ght(o,f){let v=Zte(o,Io);v=Sze(f,aL(f),v);const A=h5(dE.IntrinsicAttributes,f);return Fn(A)||(v=j0e(A,v)),v}function Tze(o,f){if(o.compositeSignatures){const A=[];for(const R of o.compositeSignatures){const B=np(R);if(bn(B))return B;const Y=Xe(B,f);if(!Y)return;A.push(Y)}return vp(A)}const v=np(o);return bn(v)?v:Xe(v,f)}function jht(o){if(zV(o.tagName)){const v=Lze(o),A=hwe(o,v);return o5(A)}const f=kv(o.tagName);if(f.flags&128){const v=Mze(f,o);if(!v)return Sr;const A=hwe(o,v);return o5(A)}return f}function Sze(o,f,v){const A=e1e(f);if(A){const R=jht(o),B=twe(A,Cs(o),R,v);if(B)return B}return v}function Eze(o,f){const v=aL(f),A=ewe(v);let R=A===void 0?Zte(o,Io):A===""?np(o):Tze(o,A);if(!R)return A&&Nt(f.attributes.properties)&&hn(f,N.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ic(A)),Io;if(R=Sze(f,v,R),bn(R))return R;{let B=R;const Y=h5(dE.IntrinsicClassAttributes,f);if(!Fn(Y)){const Te=Fo(Y.symbol),Ue=np(o);let St;if(Te){const Rt=Gk([Ue],Te,HS(Te),Cs(f));St=zu(Y,X0(Te,Rt))}else St=Y;B=j0e(St,B)}const pe=h5(dE.IntrinsicAttributes,f);return Fn(pe)||(B=j0e(pe,B)),B}}function Vht(o){return hv(Pe,"noImplicitAny")?Em(o,(f,v)=>f===v||!f?f:GZe(f.typeParameters,v.typeParameters)?Ute(f,v):void 0):void 0}function Ybe(o,f,v){if(!o||!f)return o||f;const A=dc([La(o),zu(La(f),v)]);return i8(o,A)}function xze(o,f,v){const A=c2(o),R=c2(f),B=A>=R?o:f,Y=B===o?f:o,pe=B===o?A:R,Te=$k(o)||$k(f),Ue=Te&&!$k(B),St=new Array(pe+(Ue?1:0));for(let Rt=0;Rt=KA(B)&&Rt>=KA(Y),la=Rt>=A?void 0:kK(o,Rt),Zs=Rt>=R?void 0:kK(f,Rt),ba=la===Zs?la:la?Zs?void 0:la:Zs,mo=tp(1|(So&&!Ai?16777216:0),ba||`arg${Rt}`);mo.links.type=Ai?hT(xr):xr,St[Rt]=mo}if(Ue){const Rt=tp(1,"args");Rt.links.type=hT(XI(Y,pe)),Y===f&&(Rt.links.type=zu(Rt.links.type,v)),St[pe]=Rt}return St}function Ute(o,f){const v=o.typeParameters||f.typeParameters;let A;o.typeParameters&&f.typeParameters&&(A=X0(f.typeParameters,o.typeParameters));const R=o.declaration,B=xze(o,f,A),Y=Ybe(o.thisParameter,f.thisParameter,A),pe=Math.max(o.minArgumentCount,f.minArgumentCount),Te=vw(R,v,Y,B,void 0,void 0,pe,(o.flags|f.flags)&167);return Te.compositeKind=2097152,Te.compositeSignatures=Hi(o.compositeKind===2097152&&o.compositeSignatures||[o],[f]),A&&(Te.mapper=o.compositeKind===2097152&&o.mapper&&o.compositeSignatures?lM(o.mapper,A):A),Te}function Aze(o,f){const v=ed(o,0),A=gi(v,R=>!ant(R,f));return A.length===1?A[0]:Vht(A)}function ant(o,f){let v=0;for(;vY[Sn]&8?xw(rn,Lr)||Ge:rn),2):Ke?ma:kt,Te))}function Hk(o){if(!(ji(o)&4))return o;let f=o.literalType;return f||(f=o.literalType=bD(o),f.objectFlags|=147456),f}function bfe(o){switch(o.kind){case 167:return Tfe(o);case 80:return FT(o.escapedText);case 9:case 11:return FT(o.text);default:return!1}}function Tfe(o){return zb(Jk(o),296)}function Jk(o){const f=rt(o.expression);if(!f.resolvedType){if((rS(o.parent.parent)||Fl(o.parent.parent)||xp(o.parent.parent))&&Ds(o.expression)&&o.expression.operatorToken.kind===103&&o.parent.kind!==177&&o.parent.kind!==178)return f.resolvedType=Sr;if(f.resolvedType=Bf(o.expression),nu(o.parent)&&!ev(o.parent)&&v0(o.parent.parent)){const v=QD(o.parent.parent),A=Gbe(v);A&&(rt(A).flags|=4096,rt(o).flags|=32768,rt(o.parent.parent).flags|=32768)}(f.resolvedType.flags&98304||!zb(f.resolvedType,402665900)&&!Id(f.resolvedType,xa))&&hn(o,N.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return f.resolvedType}function Cze(o){var f;const v=(f=o.declarations)==null?void 0:f[0];return FT(o.escapedName)||v&&mp(v)&&bfe(v.name)}function Dze(o){var f;const v=(f=o.declarations)==null?void 0:f[0];return yA(o)||v&&mp(v)&&Qf(v.name)&&zb(Jk(v.name),4096)}function Ize(o,f,v,A){const R=[];for(let Y=f;Y0&&(pe=Aw(pe,Ya(),o.symbol,Ai,St),Y=[],B=zd(),la=!1,Zs=!1,ba=!1);const cc=zI(Bf(Ra.expression,f&2));if(Sfe(cc)){const V_=pBe(cc,St);if(R&&snt(V_,R,Ra),mo=Y.length,Fn(pe))continue;pe=Aw(pe,V_,o.symbol,Ai,St)}else hn(Ra,N.Spread_types_may_only_be_created_from_object_types),pe=Sr;continue}else re.assert(Ra.kind===177||Ra.kind===178),Rf(Ra);Da&&!(Da.flags&8576)?Id(Da,xa)&&(Id(Da,Lr)?Zs=!0:Id(Da,hc)?ba=!0:la=!0,A&&(So=!0)):B.set(Va.escapedName,Va),Y.push(Va)}if(Vte(),Ue){const Ra=Ua(Te.pattern.parent,Da=>Da.kind===260||Da.kind===226||Da.kind===169);if(Ua(o,Da=>Da===Ra||Da.kind===305).kind!==305)for(const Da of zm(Te))!B.get(Da.escapedName)&&!Yd(pe,Da.escapedName)&&(Da.flags&16777216||hn(Da.valueDeclaration||((v=to(Da,Vm))==null?void 0:v.links.bindingElement),N.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),B.set(Da.escapedName,Da),Y.push(Da))}if(Fn(pe))return Sr;if(pe!==M_)return Y.length>0&&(pe=Aw(pe,Ya(),o.symbol,Ai,St),Y=[],B=zd(),la=!1,Zs=!1),Th(pe,Ra=>Ra===M_?Ya():Ra);return Ya();function Ya(){const Ra=[];la&&Ra.push(Ize(o,mo,Y,Nn)),Zs&&Ra.push(Ize(o,mo,Y,Lr)),ba&&Ra.push(Ize(o,mo,Y,hc));const Va=sy(o.symbol,B,Yn,Yn,Ra);return Va.objectFlags|=Ai|128|131072,xr&&(Va.objectFlags|=4096),So&&(Va.objectFlags|=512),A&&(Va.pattern=o),Va}}function Sfe(o){const f=_Ne(Th(o,tM));return!!(f.flags&126615553||f.flags&3145728&&jr(f.types,Sfe))}function Uht(o){Fze(o)}function Hht(o,f){return Rf(o),xfe(o)||Ge}function Jht(o){Fze(o.openingElement),zV(o.closingElement.tagName)?ZNe(o.closingElement):Bf(o.closingElement.tagName),QNe(o)}function $ht(o,f){return Rf(o),xfe(o)||Ge}function qht(o){Fze(o.openingFragment);const f=ts(o);return VH(Pe)&&(Pe.jsxFactory||f.pragmas.has("jsx"))&&!Pe.jsxFragmentFactory&&!f.pragmas.has("jsxfrag")&&hn(o,Pe.jsxFactory?N.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:N.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),QNe(o),xfe(o)||Ge}function Pze(o){return o.includes("-")}function zV(o){return xn(o)&&EH(o.escapedText)||Fm(o)}function Nze(o,f){return o.initializer?MK(o.initializer,f):Ts}function Kht(o,f=0){const v=o.attributes,A=NE(v,0),R=Ke?zd():void 0;let B=zd(),Y=oy,pe=!1,Te,Ue=!1,St=2048;const Rt=Efe(aL(o));for(const xr of v.properties){const Ai=xr.symbol;if(tx(xr)){const So=Nze(xr,f);St|=ji(So)&458752;const la=tp(4|Ai.flags,Ai.escapedName);if(la.declarations=Ai.declarations,la.parent=Ai.parent,Ai.valueDeclaration&&(la.valueDeclaration=Ai.valueDeclaration),la.links.type=So,la.links.target=Ai,B.set(la.escapedName,la),R==null||R.set(la.escapedName,la),m3(xr.name)===Rt&&(Ue=!0),A){const Zs=Yd(A,Ai.escapedName);Zs&&Zs.declarations&&BS(Zs)&&xn(xr.name)&&pS(xr.name,Zs.declarations,xr.name.escapedText)}if(A&&f&2&&!(f&4)&&Sx(xr)){const Zs=g5(v);re.assert(Zs);const ba=xr.initializer.expression;JBe(Zs,ba,So)}}else{re.assert(xr.kind===293),B.size>0&&(Y=Aw(Y,Sn(),v.symbol,St,!1),B=zd());const So=zI(Bf(xr.expression,f&2));bn(So)&&(pe=!0),Sfe(So)?(Y=Aw(Y,So,v.symbol,St,!1),R&&snt(So,R,xr)):(hn(xr.expression,N.Spread_types_may_only_be_created_from_object_types),Te=Te?vp([Te,So]):So)}}pe||B.size>0&&(Y=Aw(Y,Sn(),v.symbol,St,!1));const rn=o.parent.kind===284?o.parent:void 0;if(rn&&rn.openingElement===o&&B9(rn.children).length>0){const xr=QNe(rn,f);if(!pe&&Rt&&Rt!==""){Ue&&hn(v,N._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ic(Rt));const Ai=c8(o.attributes,void 0),So=Ai&&oN(Ai,Rt),la=tp(4,Rt);la.links.type=xr.length===1?xr[0]:So&&Uk(So,Dte)?TD(xr):hT(dc(xr)),la.valueDeclaration=he.createPropertySignature(void 0,Ic(Rt),void 0,void 0),kl(la.valueDeclaration,v),la.valueDeclaration.symbol=la;const Zs=zd();Zs.set(Rt,la),Y=Aw(Y,sy(v.symbol,Zs,Yn,Yn,Yn),v.symbol,St,!1)}}if(pe)return Ge;if(Te&&Y!==oy)return vp([Te,Y]);return Te||(Y===oy?Sn():Y);function Sn(){St|=cn;const xr=sy(v.symbol,B,Yn,Yn,Yn);return xr.objectFlags|=St|128|131072,xr}}function QNe(o,f){const v=[];for(const A of o.children)if(A.kind===12)A.containsOnlyTriviaWhiteSpaces||v.push(Nn);else{if(A.kind===294&&!A.expression)continue;v.push(MK(A,f))}return v}function snt(o,f,v){for(const A of zm(o))if(!(A.flags&16777216)){const R=f.get(A.escapedName);if(R){const B=hn(R.valueDeclaration,N._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ic(R.escapedName));ml(B,Bs(v,N.This_spread_always_overwrites_this_property))}}}function wze(o,f){return Kht(o.parent,f)}function h5(o,f){const v=aL(f),A=v&&L2(v),R=A&&Ci(A,o,788968);return R?sh(R):Sr}function ZNe(o){const f=rt(o);if(!f.resolvedSymbol){const v=h5(dE.IntrinsicElements,o);if(Fn(v))return Et&&hn(o,N.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ic(dE.IntrinsicElements)),f.resolvedSymbol=Pr;{if(!xn(o.tagName)&&!Fm(o.tagName))return re.fail();const A=Fm(o.tagName)?bR(o.tagName):o.tagName.escapedText,R=Yd(v,A);if(R)return f.jsxFlags|=1,f.resolvedSymbol=R;const B=Qs(v,vS(Ic(A)));return B?(f.jsxFlags|=2,f.resolvedSymbol=B):$t(v,A)?(f.jsxFlags|=2,f.resolvedSymbol=v.symbol):(hn(o,N.Property_0_does_not_exist_on_type_1,goe(o.tagName),"JSX."+dE.IntrinsicElements),f.resolvedSymbol=Pr)}}return f.resolvedSymbol}function Zbe(o){const f=o&&ts(o),v=f&&rt(f);if(v&&v.jsxImplicitImportContainer===!1)return;if(v&&v.jsxImplicitImportContainer)return v.jsxImplicitImportContainer;const A=HH(UH(Pe,f),Pe);if(!A)return;const B=Jd(Pe)===1?N.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N.Cannot_find_module_0_or_its_corresponding_type_declarations,Y=qR(o,A,B,o),pe=Y&&Y!==Pr?jp(Av(Y)):void 0;return v&&(v.jsxImplicitImportContainer=pe||!1),pe}function aL(o){const f=o&&rt(o);if(f&&f.jsxNamespace)return f.jsxNamespace;if(!f||f.jsxNamespace!==!1){let A=Zbe(o);if(!A||A===Pr){const R=xo(o);A=gg(o,R,1920,void 0,R,!1)}if(A){const R=Av(Ci(L2(Av(A)),dE.JSX,1920));if(R&&R!==Pr)return f&&(f.jsxNamespace=R),R}f&&(f.jsxNamespace=!1)}const v=Av(hte(dE.JSX,1920,void 0));if(v!==Pr)return v}function Rze(o,f){const v=f&&Ci(f.exports,o,788968),A=v&&sh(v),R=A&&zm(A);if(R){if(R.length===0)return"";if(R.length===1)return R[0].escapedName;R.length>1&&v.declarations&&hn(v.declarations[0],N.The_global_type_JSX_0_may_not_have_more_than_one_property,Ic(o))}}function e1e(o){return o&&Ci(o.exports,dE.LibraryManagedAttributes,788968)}function Xht(o){return o&&Ci(o.exports,dE.ElementType,788968)}function ewe(o){return Rze(dE.ElementAttributesPropertyNameContainer,o)}function Efe(o){return Rze(dE.ElementChildrenAttributeNameContainer,o)}function cnt(o,f){if(o.flags&4)return[_i];if(o.flags&128){const R=Mze(o,f);return R?[hwe(f,R)]:(hn(f,N.Property_0_does_not_exist_on_type_1,o.value,"JSX."+dE.IntrinsicElements),Yn)}const v=yS(o);let A=ed(v,1);return A.length===0&&(A=ed(v,0)),A.length===0&&v.flags&1048576&&(A=EWe(Vn(v.types,R=>cnt(R,f)))),A}function Mze(o,f){const v=h5(dE.IntrinsicElements,f);if(!Fn(v)){const A=o.value,R=Yd(v,ey(A));if(R)return La(R);const B=vO(v,Nn);return B||void 0}return Ge}function lnt(o,f,v){if(o===1){const R=Oze(v);R&&$A(f,R,db,v.tagName,N.Its_return_type_0_is_not_a_valid_JSX_element,A)}else if(o===0){const R=unt(v);R&&$A(f,R,db,v.tagName,N.Its_instance_type_0_is_not_a_valid_JSX_element,A)}else{const R=Oze(v),B=unt(v);if(!R||!B)return;const Y=dc([R,B]);$A(f,Y,db,v.tagName,N.Its_element_type_0_is_not_a_valid_JSX_element,A)}function A(){const R=Lv(v.tagName);return Es(void 0,N._0_cannot_be_used_as_a_JSX_component,R)}}function Lze(o){var f;re.assert(zV(o.tagName));const v=rt(o);if(!v.resolvedJsxElementAttributesType){const A=ZNe(o);if(v.jsxFlags&1)return v.resolvedJsxElementAttributesType=La(A)||Sr;if(v.jsxFlags&2){const R=Fm(o.tagName)?bR(o.tagName):o.tagName.escapedText;return v.resolvedJsxElementAttributesType=((f=i5(h5(dE.IntrinsicElements,o),R))==null?void 0:f.type)||Sr}else return v.resolvedJsxElementAttributesType=Sr}return v.resolvedJsxElementAttributesType}function unt(o){const f=h5(dE.ElementClass,o);if(!Fn(f))return f}function xfe(o){return h5(dE.Element,o)}function Oze(o){const f=xfe(o);if(f)return dc([f,mn])}function Yht(o){const f=aL(o);if(!f)return;const v=Xht(f);if(!v)return;const A=twe(v,Cs(o));if(!(!A||Fn(A)))return A}function twe(o,f,...v){const A=sh(o);if(o.flags&524288){const R=Ae(o).typeParameters;if(Nt(R)>=v.length){const B=Gk(v,R,v.length,f);return Nt(B)===0?A:PB(o,B)}}if(Nt(A.typeParameters)>=v.length){const R=Gk(v,A.typeParameters,v.length,f);return qv(A,R)}}function fnt(o){const f=h5(dE.IntrinsicElements,o);return f?zm(f):Yn}function Qht(o){(Pe.jsx||0)===0&&hn(o,N.Cannot_use_JSX_unless_the_jsx_flag_is_provided),xfe(o)===void 0&&Et&&hn(o,N.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Fze(o){const f=m1(o);if(f&&Gkt(o),Qht(o),!Zbe(o)){const v=j_&&Pe.jsx===2?N.Cannot_find_name_0:void 0,A=xo(o),R=f?o.tagName:o;let B;if(v6(o)&&A==="null"||(B=gg(R,A,111551,v,A,!0)),B&&(B.isReferenced=67108863,Fr&&B.flags&2097152&&!Qx(B)&&fw(B)),v6(o)){const Y=ts(o),pe=Wc(Y);pe&&gg(R,pe,111551,v,pe,!0)}}if(f){const v=o,A=y5(v);bwe(A,o);const R=Yht(v);if(R!==void 0){const B=v.tagName,Y=zV(B)?vS(goe(B)):Bf(B);$A(Y,R,db,B,N.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const pe=Lv(B);return Es(void 0,N._0_cannot_be_used_as_a_JSX_component,pe)})}else lnt(knt(v),np(A),v)}}function Afe(o,f,v){if(o.flags&524288){if($6(o,f)||i5(o,f)||CB(f)&&Tw(o,Nn)||v&&Pze(f))return!0}else if(o.flags&3145728&&t1e(o)){for(const A of o.types)if(Afe(A,f,v))return!0}return!1}function t1e(o){return!!(o.flags&524288&&!(ji(o)&512)||o.flags&67108864||o.flags&1048576&>(o.types,t1e)||o.flags&2097152&&jr(o.types,t1e))}function KI(o,f){if(Vkt(o),o.expression){const v=Bf(o.expression,f);return o.dotDotDotToken&&v!==Ge&&!kE(v)&&hn(o,N.JSX_spread_child_must_be_an_array_type),v}else return Sr}function nwe(o){return o.valueDeclaration?XV(o.valueDeclaration):0}function AK(o){if(o.flags&8192||I_(o)&4)return!0;if(Cs(o.valueDeclaration)){const f=o.valueDeclaration.parent;return f&&Ds(f)&&jy(f)===3}}function Wze(o,f,v,A,R,B=!0){const Y=B?o.kind===166?o.right:o.kind===205?o:o.kind===208&&o.propertyName?o.propertyName:o.name:void 0;return _nt(o,f,v,A,R,Y)}function _nt(o,f,v,A,R,B){var Y;const pe=Vy(R,v);if(f){if(dt<2&&Bze(R))return B&&hn(B,N.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(pe&64)return B&&hn(B,N.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ru(R),Co(t8(R))),!1;if(!(pe&256)&&((Y=R.declarations)!=null&&Y.some(nde)))return B&&hn(B,N.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ru(R)),!1}if(pe&64&&Bze(R)&&(Q1(o)||Tie(o)||Ch(o.parent)&&bie(o.parent.parent))){const Ue=RS(xE(R));if(Ue&&hb(o))return B&&hn(B,N.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ru(R),K2(Ue.name)),!1}if(!(pe&6))return!0;if(pe&2){const Ue=RS(xE(R));return rm(o,Ue)?!0:(B&&hn(B,N.Property_0_is_private_and_only_accessible_within_class_1,ru(R),Co(t8(R))),!1)}if(f)return!0;let Te=Od(o,Ue=>{const St=sh(sc(Ue));return stt(St,R,v)});return!Te&&(Te=Zht(o),Te=Te&&stt(Te,R,v),pe&256||!Te)?(B&&hn(B,N.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ru(R),Co(t8(R)||A)),!1):pe&256?!0:(A.flags&262144&&(A=A.isThisType?gT(A):US(A)),!A||!jA(A,Te)?(B&&hn(B,N.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ru(R),Co(Te),Co(A)),!1):!0)}function Zht(o){const f=eyt(o);let v=(f==null?void 0:f.type)&&Xl(f.type);if(v&&v.flags&262144&&(v=gT(v)),v&&ji(v)&7)return QR(v)}function eyt(o){const f=RT(o,!1,!1);return f&&F_(f)?BN(f):void 0}function Bze(o){return!!Abe(o,f=>!(f.flags&8192))}function CK(o){return lh(Bf(o),o)}function n1e(o){return DC(o,50331648)}function zze(o){return n1e(o)?Dw(o):o}function Gze(o,f){const v=Tg(o)?iE(o):void 0;if(o.kind===106){hn(o,N.The_value_0_cannot_be_used_here,"null");return}if(v!==void 0&&v.length<100){if(xn(o)&&v==="undefined"){hn(o,N.The_value_0_cannot_be_used_here,"undefined");return}hn(o,f&16777216?f&33554432?N._0_is_possibly_null_or_undefined:N._0_is_possibly_undefined:N._0_is_possibly_null,v)}else hn(o,f&16777216?f&33554432?N.Object_is_possibly_null_or_undefined:N.Object_is_possibly_undefined:N.Object_is_possibly_null)}function r1e(o,f){hn(o,f&16777216?f&33554432?N.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:N.Cannot_invoke_an_object_which_is_possibly_undefined:N.Cannot_invoke_an_object_which_is_possibly_null)}function cy(o,f,v){if(Ke&&o.flags&2){if(Tg(f)){const R=iE(f);if(R.length<100)return hn(f,N._0_is_of_type_unknown,R),Sr}return hn(f,N.Object_is_of_type_unknown),Sr}const A=vK(o,50331648);if(A&50331648){v(f,A);const R=Dw(o);return R.flags&229376?Sr:R}return o}function lh(o,f){return cy(o,f,Gze)}function Cfe(o,f){const v=lh(o,f);if(v.flags&16384){if(Tg(f)){const A=iE(f);if(xn(f)&&A==="undefined")return hn(f,N.The_value_0_cannot_be_used_here,A),v;if(A.length<100)return hn(f,N._0_is_possibly_undefined,A),v}hn(f,N.Object_is_possibly_undefined)}return v}function Dfe(o,f,v){return o.flags&64?jze(o,f):Hte(o,o.expression,CK(o.expression),o.name,f,v)}function jze(o,f){const v=Bf(o.expression),A=sfe(v,o.expression);return gNe(Hte(o,o.expression,lh(A,o.expression),o.name,f),o,A!==v)}function dnt(o,f){const v=iG(o)&&E2(o.left)?lh(Ube(o.left),o.left):CK(o.left);return Hte(o,o.left,v,o.right,f)}function pnt(o){for(;o.parent.kind===217;)o=o.parent;return sk(o.parent)&&o.parent.expression===o}function rwe(o,f){for(let v=A9(f);v;v=$b(v)){const{symbol:A}=v,R=WN(A,o),B=A.members&&A.members.get(R)||A.exports&&A.exports.get(R);if(B)return B}}function tyt(o){if(!$b(o))return Uo(o,N.Private_identifiers_are_not_allowed_outside_class_bodies);if(!lpe(o.parent)){if(!ZD(o))return Uo(o,N.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 f=Ds(o.parent)&&o.parent.operatorToken.kind===103;if(!iwe(o)&&!f)return Uo(o,N.Cannot_find_name_0,Kr(o))}return!1}function mnt(o){tyt(o);const f=iwe(o);return f&&Pfe(f,void 0,!1),Ge}function iwe(o){if(!ZD(o))return;const f=rt(o);return f.resolvedSymbol===void 0&&(f.resolvedSymbol=rwe(o.escapedText,o)),f.resolvedSymbol}function owe(o,f){return Yd(o,f.escapedName)}function HB(o,f,v){let A;const R=zm(o);R&&Ot(R,Y=>{const pe=Y.valueDeclaration;if(pe&&mp(pe)&&Lu(pe.name)&&pe.name.escapedText===f.escapedText)return A=Y,!0});const B=M2(f);if(A){const Y=re.checkDefined(A.valueDeclaration),pe=re.checkDefined($b(Y));if(v!=null&&v.valueDeclaration){const Te=v.valueDeclaration,Ue=$b(Te);if(re.assert(!!Ue),Ua(Ue,St=>pe===St)){const St=hn(f,N.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,B,Co(o));return ml(St,Bs(Te,N.The_shadowing_declaration_of_0_is_defined_here,B),Bs(Y,N.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,B)),!0}}return hn(f,N.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,B,M2(pe.name||h$)),!0}return!1}function gnt(o,f){return(TV(f)||Q1(o)&&B4(f))&&RT(o,!0,!1)===Zq(f)}function Hte(o,f,v,A,R,B){const Y=rt(f).resolvedSymbol,pe=q8(o),Te=yS(pe!==0||pnt(o)?z2(v):v),Ue=bn(Te)||Te===Tf;let St;if(Lu(A)){dt<99&&(pe!==0&&yb(o,1048576),pe!==1&&yb(o,524288));const rn=rwe(A.escapedText,A);if(pe&&rn&&rn.valueDeclaration&&tm(rn.valueDeclaration)&&Uo(A,N.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Kr(A)),Ue){if(rn)return Fn(Te)?Sr:Te;if(A9(A)===void 0)return Uo(A,N.Private_identifiers_are_not_allowed_outside_class_bodies),Ge}if(St=rn&&owe(v,rn),St===void 0){if(HB(v,A,rn))return Sr;const Sn=A9(A);Sn&&pP(ts(Sn),Pe.checkJs)&&Uo(A,N.Private_field_0_must_be_declared_in_an_enclosing_class,Kr(A))}else St.flags&65536&&!(St.flags&32768)&&pe!==1&&hn(o,N.Private_accessor_was_defined_without_a_getter)}else{if(Ue)return xn(f)&&Y&&WV(Y,o),Fn(Te)?Sr:Te;St=Yd(Te,A.escapedText,Pwe(Te),o.kind===166)}xn(f)&&Y&&(F0(Pe)||!(St&&(ud(St)||St.flags&8&&o.parent.kind===306))||gk(Pe)&&_ze(o))&&WV(Y,o);let Rt;if(St){const rn=hs(St,A);if(BS(rn)&&$ue(o,rn)&&rn.declarations&&pS(A,rn.declarations,A.escapedText),nyt(St,o,A),Pfe(St,o,Uze(f,Y)),rt(o).resolvedSymbol=St,Wze(o,f.kind===108,o6(o),Te,St),dGe(o,St,pe))return hn(A,N.Cannot_assign_to_0_because_it_is_a_read_only_property,Kr(A)),Sr;Rt=gnt(o,St)?Br:B||RH(o)?QF(St):La(St)}else{const rn=!Lu(A)&&(pe===0||!Ew(v)||p3(v))?i5(Te,A.escapedText):void 0;if(!(rn&&rn.type)){const Sn=i1e(o,v.symbol,!0);return!Sn&&PV(v)?Ge:v.symbol===fr?(fr.exports.has(A.escapedText)&&fr.exports.get(A.escapedText).flags&418?hn(A,N.Property_0_does_not_exist_on_type_1,Ic(A.escapedText),Co(v)):Et&&hn(A,N.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Co(v)),Ge):(A.escapedText&&!JR(o)&&bnt(A,p3(v)?Te:v,Sn),Sr)}rn.isReadonly&&(VE(o)||mH(o))&&hn(o,N.Index_signature_in_type_0_only_permits_reading,Co(Te)),Rt=Pe.noUncheckedIndexedAccess&&!VE(o)?dc([rn.type,qe]):rn.type,Pe.noPropertyAccessFromIndexSignature&&Ac(o)&&hn(A,N.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ic(A.escapedText)),rn.declaration&&N2(rn.declaration)&&pS(A,[rn.declaration],A.escapedText)}return hnt(o,St,Rt,A,R)}function i1e(o,f,v){var A;const R=ts(o);if(R&&Pe.checkJs===void 0&&R.checkJsDirective===void 0&&(R.scriptKind===1||R.scriptKind===2)){const B=Ot(f==null?void 0:f.declarations,ts),Y=!(f!=null&&f.valueDeclaration)||!Fl(f.valueDeclaration)||((A=f.valueDeclaration.heritageClauses)==null?void 0:A.length)||yP(!1,f.valueDeclaration);return!(R!==B&&B&&Dn(B))&&!(v&&f&&f.flags&32&&Y)&&!(o&&v&&Ac(o)&&o.expression.kind===110&&Y)}return!1}function hnt(o,f,v,A,R){const B=q8(o);if(B===1)return r8(v,!!(f&&f.flags&16777216));if(f&&!(f.flags&98311)&&!(f.flags&8192&&v.flags&1048576)&&!$T(f.declarations))return v;if(v===Br)return Cv(o,f);v=NO(v,o,R);let Y=!1;if(Ke&&Yt&&Kf(o)&&o.expression.kind===110){const Te=f&&f.valueDeclaration;if(Te&&M(Te)&&!pd(Te)){const Ue=zte(o);Ue.kind===176&&Ue.parent===Te.parent&&!(Te.flags&33554432)&&(Y=!0)}}else Ke&&f&&f.valueDeclaration&&Ac(f.valueDeclaration)&&XM(f.valueDeclaration)&&zte(o)===zte(f.valueDeclaration)&&(Y=!0);const pe=s8(o,v,Y?iL(v):v);return Y&&!dK(v)&&dK(pe)?(hn(A,N.Property_0_is_used_before_being_assigned,ru(f)),v):B?pM(pe):pe}function nyt(o,f,v){const{valueDeclaration:A}=o;if(!A||ts(f).isDeclarationFile)return;let R;const B=Kr(v);ynt(f)&&!mte(A)&&!(Kf(f)&&Kf(f.expression))&&!Tu(A,v)&&!(tm(A)&&eit(A)&256)&&(Ct||!vnt(o))?R=hn(v,N.Property_0_is_used_before_its_initialization,B):A.kind===263&&f.parent.kind!==183&&!(A.flags&33554432)&&!Tu(A,v)&&(R=hn(v,N.Class_0_used_before_its_declaration,B)),R&&ml(R,Bs(A,N._0_is_declared_here,B))}function ynt(o){return!!Ua(o,f=>{switch(f.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 Ou(f.parent)&&Ep(f.parent.parent)?!0:"quit";default:return ZD(f)?!1:"quit"}})}function vnt(o){if(!(o.parent.flags&32))return!1;let f=La(o.parent);for(;;){if(f=f.symbol&&ryt(f),!f)return!1;const v=Yd(f,o.escapedName);if(v&&v.valueDeclaration)return!0}}function ryt(o){const f=l0(o);if(f.length!==0)return vp(f)}function bnt(o,f,v){let A,R;if(!Lu(o)&&f.flags&1048576&&!(f.flags&402784252)){for(const Y of f.types)if(!Yd(Y,o.escapedText)&&!i5(Y,o.escapedText)){A=Es(A,N.Property_0_does_not_exist_on_type_1,hm(o),Co(Y));break}}if(Vze(o.escapedText,f)){const Y=hm(o),pe=Co(f);A=Es(A,N.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Y,pe,pe+"."+Y)}else{const Y=$fe(f);if(Y&&Yd(Y,o.escapedText))A=Es(A,N.Property_0_does_not_exist_on_type_1,hm(o),Co(f)),R=Bs(o,N.Did_you_forget_to_use_await);else{const pe=hm(o),Te=Co(f),Ue=ayt(pe,f);if(Ue!==void 0)A=Es(A,N.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,pe,Te,Ue);else{const St=JB(o,f);if(St!==void 0){const Rt=Il(St),rn=v?N.Property_0_may_not_exist_on_type_1_Did_you_mean_2:N.Property_0_does_not_exist_on_type_1_Did_you_mean_2;A=Es(A,rn,pe,Te,Rt),R=St.valueDeclaration&&Bs(St.valueDeclaration,N._0_is_declared_here,Rt)}else{const Rt=iyt(f)?N.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:N.Property_0_does_not_exist_on_type_1;A=Es(SPe(A,f),Rt,pe,Te)}}}}const B=wN(ts(o),o,A);R&&ml(B,R),v_(!v||A.code!==N.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,B)}function iyt(o){return Pe.lib&&!Pe.lib.includes("dom")&&sze(o,f=>f.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ic(f.symbol.escapedName)))&&_M(o)}function Vze(o,f){const v=f.symbol&&Yd(La(f.symbol),o);return v!==void 0&&!!v.valueDeclaration&&pd(v.valueDeclaration)}function oyt(o){const f=M2(o),A=hoe().get(f);return A&&sX(A.keys())}function ayt(o,f){const v=yS(f).symbol;if(!v)return;const A=Il(v),B=hoe().get(A);if(B){for(const[Y,pe]of B)if(ni(pe,o))return Y}}function Tnt(o,f){return kfe(o,zm(f),106500)}function JB(o,f){let v=zm(f);if(typeof o!="string"){const A=o.parent;Ac(A)&&(v=gi(v,R=>GV(A,f,R))),o=Kr(o)}return kfe(o,v,111551)}function Iv(o,f){const v=As(o)?o:Kr(o),A=zm(f);return(v==="for"?lr(A,B=>Il(B)==="htmlFor"):v==="class"?lr(A,B=>Il(B)==="className"):void 0)??kfe(v,A,111551)}function awe(o,f){const v=JB(o,f);return v&&Il(v)}function DK(o,f,v){return re.assert(f!==void 0,"outername should always be defined"),Nh(o,f,v,void 0,f,!1,!1,!0,(R,B,Y)=>{re.assertEqual(f,B,"name should equal outerName");const pe=Ci(R,B,Y);if(pe)return pe;let Te;return R===jt?Te=Qo(["string","number","boolean","object","bigint","symbol"],St=>R.has(St.charAt(0).toUpperCase()+St.slice(1))?tp(524288,St):void 0).concat(oc(R.values())):Te=oc(R.values()),kfe(Ic(B),Te,Y)})}function syt(o,f,v){const A=DK(o,f,v);return A&&Il(A)}function Ife(o,f){return f.exports&&kfe(Kr(o),H6(f),2623475)}function swe(o,f){const v=Ife(o,f);return v&&Il(v)}function Jte(o,f,v){function A(Y){const pe=$6(o,Y);if(pe){const Te=$B(La(pe));return!!Te&&KA(Te)>=1&&Id(v,XI(Te,0))}return!1}const R=VE(f)?"set":"get";if(!A(R))return;let B=B7(f.expression);return B===void 0?B=R:B+="."+R,B}function $te(o,f){const v=f.types.filter(A=>!!(A.flags&128));return fh(o.value,v,A=>A.value)}function kfe(o,f,v){return fh(o,f,A);function A(R){const B=Il(R);if(!qf(B,'"')){if(R.flags&v)return B;if(R.flags&2097152){const Y=gV(R);if(Y&&Y.flags&v)return B}}}}function Pfe(o,f,v){const A=o&&o.flags&106500&&o.valueDeclaration;if(!A)return;const R=tT(A,2),B=o.valueDeclaration&&mp(o.valueDeclaration)&&Lu(o.valueDeclaration.name);if(!(!R&&!B)&&!(f&&RH(f)&&!(o.flags&65536))){if(v){const Y=Ua(f,Vd);if(Y&&Y.symbol===o)return}(I_(o)&1?Ae(o).target:o).isReferenced=67108863}}function Uze(o,f){return o.kind===110||!!f&&Tg(o)&&f===xD(PS(o))}function Snt(o,f){switch(o.kind){case 211:return Hze(o,o.expression.kind===108,f,z2(Bf(o.expression)));case 166:return Hze(o,!1,f,z2(Bf(o.left)));case 205:return Hze(o,!1,f,Xl(o))}}function GV(o,f,v){return Jze(o,o.kind===211&&o.expression.kind===108,!1,f,v)}function Hze(o,f,v,A){if(bn(A))return!0;const R=Yd(A,v);return!!R&&Jze(o,f,!1,A,R)}function Jze(o,f,v,A,R){if(bn(A))return!0;if(R.valueDeclaration&&IT(R.valueDeclaration)){const B=$b(R.valueDeclaration);return!fy(o)&&!!Ua(o,Y=>Y===B)}return _nt(o,f,v,A,R)}function cyt(o){const f=o.initializer;if(f.kind===261){const v=f.declarations[0];if(v&&!$_(v.name))return sc(v)}else if(f.kind===80)return xD(f)}function lyt(o){return JT(o).length===1&&!!Tw(o,Lr)}function $ze(o){const f=rg(o);if(f.kind===80){const v=xD(f);if(v.flags&3){let A=o,R=o.parent;for(;R;){if(R.kind===249&&A===R.statement&&cyt(R)===v&&lyt(s1(R.expression)))return!0;A=R,R=R.parent}}}return!1}function uyt(o,f){return o.flags&64?Ent(o,f):xnt(o,CK(o.expression),f)}function Ent(o,f){const v=Bf(o.expression),A=sfe(v,o.expression);return gNe(xnt(o,lh(A,o.expression),f),o,A!==v)}function xnt(o,f,v){const A=q8(o)!==0||pnt(o)?z2(f):f,R=o.argumentExpression,B=Bf(R);if(Fn(A)||A===Tf)return A;if(Pwe(A)&&!Cm(R))return hn(R,N.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Sr;const Y=$ze(R)?Lr:B,pe=VE(o)?4|(Ew(A)&&!p3(A)?2:0):32,Te=xw(A,Y,pe,o)||Sr;return PGe(hnt(o,rt(o).resolvedSymbol,Te,R,v),o)}function yT(o){return sk(o)||Dm(o)||m1(o)}function RO(o){return yT(o)&&Ot(o.typeArguments,On),o.kind===215?Bf(o.template):m1(o)?Bf(o.attributes):Ds(o)?Bf(o.left):sk(o)&&Ot(o.arguments,f=>{Bf(f)}),_i}function qA(o){return RO(o),$o}function n_(o,f,v){let A,R,B=0,Y,pe=-1,Te;re.assert(!f.length);for(const Ue of o){const St=Ue.declaration&&sc(Ue.declaration),Rt=Ue.declaration&&Ue.declaration.parent;!R||St===R?A&&Rt===A?Y=Y+1:(A=Rt,Y=B):(Y=B=f.length,A=Rt),R=St,Sae(Ue)?(pe++,Te=pe,B++):Te=Y,f.splice(Te,0,v?BZe(Ue,v):Ue)}}function cwe(o){return!!o&&(o.kind===230||o.kind===237&&o.isSpread)}function lwe(o){return Ho(o,cwe)}function Ant(o){return!!(o.flags&16384)}function Cnt(o){return!!(o.flags&49155)}function uwe(o,f,v,A=!1){let R,B=!1,Y=c2(v),pe=KA(v);if(o.kind===215)if(R=f.length,o.template.kind===228){const Te=yl(o.template.templateSpans);B=ny(Te.literal)||!!Te.literal.isUnterminated}else{const Te=o.template;re.assert(Te.kind===15),B=!!Te.isUnterminated}else if(o.kind===170)R=wnt(o,v);else if(o.kind===226)R=1;else if(m1(o)){if(B=o.attributes.end===o.end,B)return!0;R=pe===0?f.length:1,Y=f.length===0?Y:1,pe=Math.min(pe,1)}else if(o.arguments){R=A?f.length+1:f.length,B=o.arguments.end===o.end;const Te=lwe(f);if(Te>=0)return Te>=KA(v)&&($k(v)||TeY)return!1;if(B||R>=pe)return!0;for(let Te=R;Te=A&&f.length<=v}function $B(o){return qte(o,0,!1)}function Dnt(o){return qte(o,0,!1)||qte(o,1,!1)}function qte(o,f,v){if(o.flags&524288){const A=Gh(o);if(v||A.properties.length===0&&A.indexInfos.length===0){if(f===0&&A.callSignatures.length===1&&A.constructSignatures.length===0)return A.callSignatures[0];if(f===1&&A.constructSignatures.length===1&&A.callSignatures.length===0)return A.constructSignatures[0]}}}function Kte(o,f,v,A){const R=ufe(o.typeParameters,o,0,A),B=Wfe(f),Y=v&&(B&&B.flags&262144?v.nonFixingMapper:v.mapper),pe=Y?RV(f,Y):f;return UBe(pe,o,(Te,Ue)=>{kw(R.inferences,Te,Ue)}),v||wbe(f,o,(Te,Ue)=>{kw(R.inferences,Te,Ue,128)}),QP(o,nze(R),Cs(f.declaration))}function fyt(o,f,v,A){const R=Xbe(f,o),B=RK(o.attributes,R,A,v);return kw(A.inferences,B,R),nze(A)}function Int(o){if(!o)return bl;const f=Bf(o);return ySe(o)?f:s9(o.parent)?Dw(f):fy(o.parent)?mNe(f):f}function _we(o,f,v,A,R){if(m1(o))return fyt(o,f,A,R);if(o.kind!==170&&o.kind!==226){const Te=jr(f.typeParameters,St=>!!Dd(St)),Ue=NE(o,Te?8:0);if(Ue){const St=np(f);if(Iw(St)){const Rt=g5(o);if(!(!Te&&NE(o,8)!==Ue)){const Ai=bNe(eht(Rt,1)),So=zu(Ue,Ai),la=$B(So),Zs=la&&la.typeParameters?o5(X6(la,la.typeParameters)):So;kw(R.inferences,Zs,St,128)}const Sn=ufe(f.typeParameters,f,R.flags),xr=zu(Ue,Rt&&Rt.returnMapper);kw(Sn.inferences,xr,St),R.returnMapper=gt(Sn.inferences,LK)?bNe(PE(Sn)):void 0}}}const B=Qte(f),Y=B?Math.min(c2(f)-1,v.length):v.length;if(B&&B.flags&262144){const Te=lr(R.inferences,Ue=>Ue.typeParameter===B);Te&&(Te.impliedArity=Ho(v,cwe,Y)<0?v.length-Y:void 0)}const pe=J4(f);if(pe&&Iw(pe)){const Te=Pnt(o);kw(R.inferences,Int(Te),pe)}for(let Te=0;Te=v-1){const St=o[v-1];if(cwe(St)){const Rt=St.kind===237?St.type:RK(St.expression,A,R,B);return rL(Rt)?dwe(Rt):hT(Kk(33,Rt,Ce,St.kind===230?St.expression:St),Y)}}const pe=[],Te=[],Ue=[];for(let St=f;StEs(void 0,N.Type_0_does_not_satisfy_the_constraint_1):void 0,Rt=A||N.Type_0_does_not_satisfy_the_constraint_1;pe||(pe=X0(B,Y));const rn=Y[Te];if(!a1(rn,vx(zu(Ue,pe),rn),v?f[Te]:void 0,Rt,St))return}}return Y}function knt(o){if(zV(o.tagName))return 2;const f=yS(Bf(o.tagName));return Nt(ed(f,1))?0:Nt(ed(f,0))?1:2}function Kze(o,f,v,A,R,B,Y){const pe=Xbe(f,o),Te=RK(o.attributes,pe,void 0,A),Ue=A&4?hK(Te):Te;return St()&&ZPe(Ue,pe,v,R?o.tagName:void 0,o.attributes,void 0,B,Y);function St(){var Rt;if(Zbe(o))return!0;const rn=(Pb(o)||nF(o))&&!(zV(o.tagName)||Fm(o.tagName))?Bf(o.tagName):void 0;if(!rn)return!0;const Sn=ed(rn,0);if(!Nt(Sn))return!0;const xr=wSt(o);if(!xr)return!0;const Ai=Qg(xr,111551,!0,!1,o);if(!Ai)return!0;const So=La(Ai),la=ed(So,0);if(!Nt(la))return!0;let Zs=!1,ba=0;for(const Ya of la){const Ra=XI(Ya,0),Va=ed(Ra,0);if(Nt(Va))for(const Da of Va){if(Zs=!0,$k(Da))return!0;const cc=c2(Da);cc>ba&&(ba=cc)}}if(!Zs)return!0;let mo=1/0;for(const Ya of Sn){const Ra=KA(Ya);Ra{R.push(B.expression)}),R}if(o.kind===170)return Nnt(o);if(o.kind===226)return[o.left];if(m1(o))return o.attributes.properties.length>0||Pb(o)&&o.parent.children.length>0?[o.attributes]:Yn;const f=o.arguments||Yn,v=lwe(f);if(v>=0){const A=f.slice(0,v);for(let R=v;R{var Ue;const St=Y.target.elementFlags[Te],Rt=a1e(B,St&4?hT(pe):pe,!!(St&12),(Ue=Y.target.labeledElementDeclarations)==null?void 0:Ue[Te]);A.push(Rt)}):A.push(B)}return A}return f}function Nnt(o){const f=o.expression,v=cGe(o);if(v){const A=[];for(const R of v.parameters){const B=La(R);A.push(a1e(f,B))}return A}return re.fail()}function wnt(o,f){return Pe.experimentalDecorators?_yt(o,f):2}function _yt(o,f){switch(o.parent.kind){case 263:case 231:return 1;case 172:return e_(o.parent)?3:2;case 174:case 177:case 178:return dt===0||f.parameters.length<=2?2:3;case 169:return 3;default:return re.fail()}}function c1e(o,f){let v,A;const R=ts(o);if(Ac(o.expression)){const B=zL(R,o.expression.name);v=B.start,A=f?B.length:o.end-v}else{const B=zL(R,o.expression);v=B.start,A=f?B.length:o.end-v}return{start:v,length:A,sourceFile:R}}function Nfe(o,f,...v){if(xd(o)){const{sourceFile:A,start:R,length:B}=c1e(o);return"message"in f?Pp(A,R,B,f,...v):oE(A,f)}else return"message"in f?Bs(o,f,...v):wN(ts(o),o,f)}function dyt(o){if(!xd(o)||!xn(o.expression))return!1;const f=gg(o.expression,o.expression.escapedText,111551,void 0,void 0,!1),v=f==null?void 0:f.valueDeclaration;if(!v||!Os(v)||!EP(v.parent)||!sb(v.parent.parent)||!xn(v.parent.parent.expression))return!1;const A=BWe(!1);return A?ss(v.parent.parent.expression,!0)===A:!1}function mwe(o,f,v,A){var R;const B=lwe(v);if(B>-1)return Bs(v[B],N.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let Y=Number.POSITIVE_INFINITY,pe=Number.NEGATIVE_INFINITY,Te=Number.NEGATIVE_INFINITY,Ue=Number.POSITIVE_INFINITY,St;for(const Ai of f){const So=KA(Ai),la=c2(Ai);SoTe&&(Te=So),v.lengthR?Y=Math.min(Y,Te):Ue1&&(ba=Ra(rn,bC,xr,mo)),ba||(ba=Ra(rn,db,xr,mo)),ba)return ba;if(ba=pyt(o,rn,Sn,!!v,A),rt(o).resolvedSignature=ba,St)if(!B&&Ue&&(B=N.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),So)if(So.length===1||So.length>3){const Va=So[So.length-1];let Da;So.length>3&&(Da=Es(Da,N.The_last_overload_gave_the_following_error),Da=Es(Da,N.No_overload_matches_this_call)),B&&(Da=Es(Da,B));const cc=o1e(o,Sn,Va,db,0,!0,()=>Da);if(cc)for(const V_ of cc)Va.declaration&&So.length>3&&ml(V_,Bs(Va.declaration,N.The_last_overload_is_declared_here)),Ya(Va,V_),j_.add(V_);else re.fail("No error for last overload signature")}else{const Va=[];let Da=0,cc=Number.MAX_VALUE,V_=0,fd=0;for(const ua of So){const _f=o1e(o,Sn,ua,db,0,!0,()=>Es(void 0,N.Overload_0_of_1_2_gave_the_following_error,fd+1,rn.length,Fk(ua)));_f?(_f.length<=cc&&(cc=_f.length,V_=fd),Da=Math.max(Da,_f.length),Va.push(_f)):re.fail("No error for 3 or fewer overload signatures"),fd++}const ad=Da>1?Va[V_]:Gf(Va);re.assert(ad.length>0,"No errors reported for 3 or fewer overload signatures");let Xf=Es(Vn(ad,kc),N.No_overload_matches_this_call);B&&(Xf=Es(Xf,B));const KS=[...ea(ad,ua=>ua.relatedInformation)];let PC;if(jr(ad,ua=>ua.start===ad[0].start&&ua.length===ad[0].length&&ua.file===ad[0].file)){const{file:ua,start:Ss,length:_f}=ad[0];PC={file:ua,start:Ss,length:_f,code:Xf.code,category:Xf.category,messageText:Xf,relatedInformation:KS}}else PC=wN(ts(o),o,Xf,KS);Ya(So[0],PC),j_.add(PC)}else if(la)j_.add(mwe(o,[la],Sn,B));else if(Zs)qze(Zs,o.typeArguments,!0,B);else{const Va=gi(f,Da=>fwe(Da,Rt));Va.length===0?j_.add(Xze(o,f,Rt,B)):j_.add(mwe(o,Va,Sn,B))}return ba;function Ya(Va,Da){var cc,V_;const fd=So,ad=la,Xf=Zs,KS=((V_=(cc=Va.declaration)==null?void 0:cc.symbol)==null?void 0:V_.declarations)||Yn,ua=KS.length>1?lr(KS,Ss=>Vd(Ss)&&y2(Ss.body)):void 0;if(ua){const Ss=gb(ua),_f=!Ss.typeParameters;Ra([Ss],db,_f)&&ml(Da,Bs(ua,N.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}So=fd,la=ad,Zs=Xf}function Ra(Va,Da,cc,V_=!1){if(So=void 0,la=void 0,Zs=void 0,cc){const fd=Va[0];if(gt(Rt)||!uwe(o,Sn,fd,V_))return;if(o1e(o,Sn,fd,Da,0,!1,void 0)){So=[fd];return}return fd}for(let fd=0;fd0),Rf(o),A||f.length===1||f.some(B=>!!B.typeParameters)?hyt(o,f,v,R):myt(f)}function myt(o){const f=Qo(o,Te=>Te.thisParameter);let v;f.length&&(v=Rnt(f,f.map(d1e)));const{min:A,max:R}=$Se(o,gyt),B=[];for(let Te=0;TeA1(St)?TeKB(St,Te))))}const Y=Qo(o,Te=>A1(Te)?yl(Te.parameters):void 0);let pe=128;if(Y.length!==0){const Te=hT(dc(Qo(o,APe),2));B.push(Mnt(Y,Te)),pe|=1}return o.some(Sae)&&(pe|=2),vw(o[0].declaration,void 0,v,B,vp(o.map(np)),void 0,A,pe)}function gyt(o){const f=o.parameters.length;return A1(o)?f-1:f}function Rnt(o,f){return Mnt(o,dc(f,2))}function Mnt(o,f){return i8(Dl(o),f)}function hyt(o,f,v,A){const R=vyt(f,Ki===void 0?v.length:Ki),B=f[R],{typeParameters:Y}=B;if(!Y)return B;const pe=yT(o)?o.typeArguments:void 0,Te=pe?CPe(B,Lnt(pe,Y,Cs(o))):yyt(o,Y,B,v,A);return f[R]=Te,Te}function Lnt(o,f,v){const A=o.map(nd);for(;A.length>f.length;)A.pop();for(;A.length=f)return R;Y>A&&(A=Y,v=R)}return v}function byt(o,f,v){if(o.expression.kind===108){const Te=BV(o.expression);if(bn(Te)){for(const Ue of o.arguments)Bf(Ue);return _i}if(!Fn(Te)){const Ue=YC($b(o));if(Ue){const St=kg(Te,Ue.typeArguments,Ue);return jV(o,St,f,v,0)}}return RO(o)}let A,R=Bf(o.expression);if(AN(o)){const Te=sfe(R,o.expression);A=Te===R?0:Vz(o)?16:8,R=Te}else A=0;if(R=cy(R,o.expression,r1e),R===Tf)return xs;const B=yS(R);if(Fn(B))return qA(o);const Y=ed(B,0),pe=ed(B,1).length;if(l1e(R,B,Y.length,pe))return!Fn(R)&&o.typeArguments&&hn(o,N.Untyped_function_calls_may_not_accept_type_arguments),RO(o);if(!Y.length){if(pe)hn(o,N.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Co(R));else{let Te;if(o.arguments.length===1){const Ue=ts(o).text;Sb(Ue.charCodeAt(Ff(Ue,o.expression.end,!0)-1))&&(Te=Bs(o.expression,N.Are_you_missing_a_semicolon))}Xte(o.expression,B,0,Te)}return qA(o)}return v&8&&!o.typeArguments&&Y.some(Tyt)?(SGe(o,v),Sc):Y.some(Te=>Cs(Te.declaration)&&!!Q_e(Te.declaration))?(hn(o,N.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Co(R)),qA(o)):jV(o,Y,f,v,A)}function Tyt(o){return!!(o.typeParameters&&Qk(np(o)))}function l1e(o,f,v,A){return bn(o)||bn(f)&&!!(o.flags&262144)||!v&&!A&&!(f.flags&1048576)&&!(zI(f).flags&131072)&&Id(o,ci)}function Syt(o,f,v){if(o.arguments&&dt<1){const Y=lwe(o.arguments);Y>=0&&hn(o.arguments[Y],N.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let A=CK(o.expression);if(A===Tf)return xs;if(A=yS(A),Fn(A))return qA(o);if(bn(A))return o.typeArguments&&hn(o,N.Untyped_function_calls_may_not_accept_type_arguments),RO(o);const R=ed(A,1);if(R.length){if(!Eyt(o,R[0]))return qA(o);if(Ont(R,pe=>!!(pe.flags&4)))return hn(o,N.Cannot_create_an_instance_of_an_abstract_class),qA(o);const Y=A.symbol&&RS(A.symbol);return Y&&ul(Y,64)?(hn(o,N.Cannot_create_an_instance_of_an_abstract_class),qA(o)):jV(o,R,f,v,0)}const B=ed(A,0);if(B.length){const Y=jV(o,B,f,v,0);return Et||(Y.declaration&&!Ax(Y.declaration)&&np(Y)!==bl&&hn(o,N.Only_a_void_function_can_be_called_with_the_new_keyword),J4(Y)===bl&&hn(o,N.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Y}return Xte(o.expression,A,1),qA(o)}function Ont(o,f){return ls(o)?gt(o,v=>Ont(v,f)):o.compositeKind===1048576?gt(o.compositeSignatures,f):f(o)}function Yze(o,f){const v=l0(f);if(!Nt(v))return!1;const A=v[0];if(A.flags&2097152){const R=A.types,B=VZe(R);let Y=0;for(const pe of A.types){if(!B[Y]&&ji(pe)&3&&(pe.symbol===o||Yze(o,pe)))return!0;Y++}return!1}return A.symbol===o?!0:Yze(o,A)}function Eyt(o,f){if(!f||!f.declaration)return!0;const v=f.declaration,A=fk(v,6);if(!A||v.kind!==176)return!0;const R=RS(v.parent.symbol),B=sh(v.parent.symbol);if(!rm(o,R)){const Y=$b(o);if(Y&&A&4){const pe=nd(Y);if(Yze(v.parent.symbol,pe))return!0}return A&2&&hn(o,N.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Co(B)),A&4&&hn(o,N.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Co(B)),!1}return!0}function Fnt(o,f,v){let A;const R=v===0,B=XB(f),Y=B&&ed(B,v).length>0;if(f.flags&1048576){const Te=f.types;let Ue=!1;for(const St of Te)if(ed(St,v).length!==0){if(Ue=!0,A)break}else if(A||(A=Es(A,R?N.Type_0_has_no_call_signatures:N.Type_0_has_no_construct_signatures,Co(St)),A=Es(A,R?N.Not_all_constituents_of_type_0_are_callable:N.Not_all_constituents_of_type_0_are_constructable,Co(f))),Ue)break;Ue||(A=Es(void 0,R?N.No_constituent_of_type_0_is_callable:N.No_constituent_of_type_0_is_constructable,Co(f))),A||(A=Es(A,R?N.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Co(f)))}else A=Es(A,R?N.Type_0_has_no_call_signatures:N.Type_0_has_no_construct_signatures,Co(f));let pe=R?N.This_expression_is_not_callable:N.This_expression_is_not_constructable;if(xd(o.parent)&&o.parent.arguments.length===0){const{resolvedSymbol:Te}=rt(o);Te&&Te.flags&32768&&(pe=N.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Es(A,pe),relatedMessage:Y?N.Did_you_forget_to_use_await:void 0}}function Xte(o,f,v,A){const{messageChain:R,relatedMessage:B}=Fnt(o,f,v),Y=wN(ts(o),o,R);if(B&&ml(Y,Bs(o,B)),xd(o.parent)){const{start:pe,length:Te}=c1e(o.parent,!0);Y.start=pe,Y.length=Te}j_.add(Y),u1e(f,v,A?ml(Y,A):Y)}function u1e(o,f,v){if(!o.symbol)return;const A=Ae(o.symbol).originatingImport;if(A&&!Py(A)){const R=ed(La(Ae(o.symbol).target),f);if(!R||!R.length)return;ml(v,Bs(A,N.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 gwe(o,f,v){const A=Bf(o.tag),R=yS(A);if(Fn(R))return qA(o);const B=ed(R,0),Y=ed(R,1).length;if(l1e(A,R,B.length,Y))return RO(o);if(!B.length){if(Ed(o.parent)){const pe=Bs(o.tag,N.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 j_.add(pe),qA(o)}return Xte(o.tag,R,0),qA(o)}return jV(o,B,f,v,0)}function xyt(o){switch(o.parent.kind){case 263:case 231:return N.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return N.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return N.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return N.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return re.fail()}}function wfe(o,f,v){const A=Bf(o.expression),R=yS(A);if(Fn(R))return qA(o);const B=ed(R,0),Y=ed(R,1).length;if(l1e(A,R,B.length,Y))return RO(o);if(Lfe(o,B)&&!fE(o.expression)){const Te=Lv(o.expression,!1);return hn(o,N._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Te),qA(o)}const pe=xyt(o);if(!B.length){const Te=Fnt(o.expression,R,0),Ue=Es(Te.messageChain,pe),St=wN(ts(o.expression),o.expression,Ue);return Te.relatedMessage&&ml(St,Bs(o.expression,Te.relatedMessage)),j_.add(St),u1e(R,0,St),qA(o)}return jV(o,B,f,v,0,pe)}function hwe(o,f){const v=aL(o),A=v&&L2(v),R=A&&Ci(A,dE.Element,788968),B=R&&Wr.symbolToEntityName(R,788968,o),Y=he.createFunctionTypeNode(void 0,[he.createParameterDeclaration(void 0,void 0,"props",void 0,Wr.typeToTypeNode(f,o))],B?he.createTypeReferenceNode(B,void 0):he.createKeywordTypeNode(133)),pe=tp(1,"props");return pe.links.type=f,vw(Y,void 0,void 0,[pe],R?sh(R):Sr,void 0,1,0)}function Rfe(o,f,v){if(zV(o.tagName)){const Y=Lze(o),pe=hwe(o,Y);return rN(RK(o.attributes,Xbe(pe,o),void 0,0),Y,o.tagName,o.attributes),Nt(o.typeArguments)&&(Ot(o.typeArguments,On),j_.add(Qz(ts(o),o.typeArguments,N.Expected_0_type_arguments_but_got_1,0,Nt(o.typeArguments)))),pe}const A=Bf(o.tagName),R=yS(A);if(Fn(R))return qA(o);const B=cnt(A,o);return l1e(A,R,B.length,0)?RO(o):B.length===0?(hn(o.tagName,N.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Lv(o.tagName)),qA(o)):jV(o,B,f,v,0)}function Mfe(o,f,v){const A=Bf(o.right);if(!bn(A)){const R=mGe(A);if(R){const B=yS(R);if(Fn(B))return qA(o);const Y=ed(B,0),pe=ed(B,1);if(l1e(R,B,Y.length,pe.length))return RO(o);if(Y.length)return jV(o,Y,f,v,0)}else if(!(k0(A)||nL(A,ci)))return hn(o.right,N.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),qA(o)}return _i}function Lfe(o,f){return f.length&&jr(f,v=>v.minArgumentCount===0&&!A1(v)&&v.parameters.length1?kv(o.arguments[1]):void 0;for(let B=2;B{const Y=z2(R);vbe(B,Y)||Cte(R,B,v,N.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 Dyt(o){const f=Bf(o.expression),v=sfe(f,o.expression);return gNe(Dw(v),o,v!==f)}function Iyt(o){return o.flags&64?Dyt(o):Dw(Bf(o.expression))}function znt(o){if(LSt(o),Ot(o.typeArguments,On),o.kind===233){const v=IS(o.parent);v.kind===226&&v.operatorToken.kind===104&&Lx(o,v.right)&&hn(o,N.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const f=o.kind===233?Bf(o.expression):E2(o.exprName)?Ube(o.exprName):Bf(o.exprName);return Gnt(f,o)}function Gnt(o,f){const v=f.typeArguments;if(o===Tf||Fn(o)||!gt(v))return o;let A=!1,R;const B=pe(o),Y=A?R:o;return Y&&j_.add(Qz(ts(f),v,N.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Co(Y))),B;function pe(Ue){let St=!1,Rt=!1;const rn=Sn(Ue);return A||(A=Rt),St&&!Rt&&(R??(R=Ue)),rn;function Sn(xr){if(xr.flags&524288){const Ai=Gh(xr),So=Te(Ai.callSignatures),la=Te(Ai.constructSignatures);if(St||(St=Ai.callSignatures.length!==0||Ai.constructSignatures.length!==0),Rt||(Rt=So.length!==0||la.length!==0),So!==Ai.callSignatures||la!==Ai.constructSignatures){const Zs=sy(void 0,Ai.members,So,la,Ai.indexInfos);return Zs.objectFlags|=8388608,Zs.node=f,Zs}}else if(xr.flags&58982400){const Ai=US(xr);if(Ai){const So=Sn(Ai);if(So!==Ai)return So}}else{if(xr.flags&1048576)return Th(xr,pe);if(xr.flags&2097152)return vp(Ol(xr.types,Sn))}return xr}}function Te(Ue){const St=gi(Ue,Rt=>!!Rt.typeParameters&&fwe(Rt,v));return Ol(St,Rt=>{const rn=qze(Rt,v,!0);return rn?QP(Rt,rn,Cs(Rt.declaration)):Rt})}}function kyt(o){return On(o.type),nGe(o.expression,o.type)}function nGe(o,f,v){const A=Bf(o,v),R=Xl(f);if(Fn(R))return R;const B=Ua(f.parent,Y=>Y.kind===238||Y.kind===357);return rN(A,R,B,o,N.Type_0_does_not_satisfy_the_expected_type_1),A}function Pyt(o){return Zkt(o),o.keywordToken===105?rGe(o):o.keywordToken===102?Nyt(o):re.assertNever(o.keywordToken)}function jnt(o){switch(o.keywordToken){case 102:return det();case 105:const f=rGe(o);return Fn(f)?Sr:Gyt(f);default:re.assertNever(o.keywordToken)}}function rGe(o){const f=aSe(o);if(f)if(f.kind===176){const v=sc(f.parent);return La(v)}else{const v=sc(f);return La(v)}else return hn(o,N.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Sr}function Nyt(o){Ie===100||Ie===199?ts(o).impliedNodeFormat!==99&&hn(o,N.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):Ie<6&&Ie!==4&&hn(o,N.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const f=ts(o);return re.assert(!!(f.flags&8388608),"Containing file is missing import meta node flag."),o.name.escapedText==="meta"?kPe():Sr}function d1e(o){const f=o.valueDeclaration;return mb(La(o),!1,!!f&&(J2(f)||yG(f)))}function Ewe(o,f,v="arg"){return o?(re.assert(xn(o.name)),o.name.escapedText):`${v}_${f}`}function kK(o,f,v){const A=o.parameters.length-(A1(o)?1:0);if(f=A-1)return f===A-1?B:hT(u0(B,Lr));const Y=[],pe=[],Te=[];for(let Ue=f;Ue!(Te&1)),pe=Y<0?B.target.fixedLength:Y;pe>0&&(R=o.parameters.length-1+pe)}}if(R===void 0){if(!v&&o.flags&32)return 0;R=o.minArgumentCount}if(A)return R;for(let B=R-1;B>=0;B--){const Y=XI(o,B);if(lv(Y,Ant).flags&131072)break;R=B}o.resolvedMinArgumentCount=R}return o.resolvedMinArgumentCount}function $k(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]);return!Dp(f)||f.target.hasRestElement}return!1}function Wfe(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]);if(!Dp(f))return f;if(f.target.hasRestElement)return bte(f,f.target.fixedLength)}}function Qte(o){const f=Wfe(o);return f&&!kE(f)&&!bn(f)?f:void 0}function aGe(o){return Zte(o,Tc)}function Zte(o,f){return o.parameters.length>0?XI(o,0):f}function sGe(o,f,v){const A=o.parameters.length-(A1(o)?1:0);for(let R=0;R=0);const B=Lh(A.parent)?La(sc(A.parent.parent)):rp(A.parent),Y=Lh(A.parent)?Ce:Ug(A.parent),pe=HA(R),Te=gx("target",B),Ue=gx("propertyKey",Y),St=gx("parameterIndex",pe);v.decoratorSignature=Kfe(void 0,void 0,[Te,Ue,St],bl);break}case 174:case 177:case 178:case 172:{const A=f;if(!Fl(A.parent))break;const R=rp(A),B=gx("target",R),Y=Ug(A),pe=gx("propertyKey",Y),Te=nu(A)?bl:VWe(nd(A));if(dt!==0&&(!nu(f)||e_(f))){const St=VWe(nd(A)),Rt=gx("descriptor",St);v.decoratorSignature=Kfe(void 0,void 0,[B,pe,Rt],dc([Te,bl]))}else v.decoratorSignature=Kfe(void 0,void 0,[B,pe],dc([Te,bl]));break}}return v.decoratorSignature===_i?void 0:v.decoratorSignature}function cGe(o){return ct?Hnt(o):Unt(o)}function m1e(o){const f=yte(!0);return f!==Ka?(o=gM(lne(o))||Io,qv(f,[o])):Io}function g1e(o){const f=met(!0);return f!==Ka?(o=gM(lne(o))||Io,qv(f,[o])):Io}function h1e(o,f){const v=m1e(f);return v===Io?(hn(o,Py(o)?N.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Sr):(BWe(!0)||hn(o,Py(o)?N.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:N.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),v)}function Gyt(o){const f=tp(0,"NewTargetExpression"),v=tp(4,"target",8);v.parent=f,v.links.type=o;const A=zd([v]);return f.members=A,sy(f,A,Yn,Yn,Yn)}function Awe(o,f){if(!o.body)return Sr;const v=ob(o),A=(v&2)!==0,R=(v&1)!==0;let B,Y,pe,Te=bl;if(o.body.kind!==241)B=kv(o.body,f&&f&-9),A&&(B=lne(cne(B,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(R){const Ue=Knt(o,f);Ue?Ue.length>0&&(B=dc(Ue,2)):Te=Tc;const{yieldTypes:St,nextTypes:Rt}=jyt(o,f);Y=gt(St)?dc(St,2):void 0,pe=gt(Rt)?vp(Rt):void 0}else{const Ue=Knt(o,f);if(!Ue)return v&2?h1e(o,Tc):Tc;if(Ue.length===0){const St=$Ne(o,void 0),Rt=St&&(dne(St,v)||bl).flags&32768?Ce:bl;return v&2?h1e(o,Rt):Rt}B=dc(Ue,2)}if(B||Y||pe){if(Y&&lfe(o,Y,3),B&&lfe(o,B,1),pe&&lfe(o,pe,2),B&&UI(B)||Y&&UI(Y)||pe&&UI(pe)){const Ue=YNe(o),St=Ue?Ue===gb(o)?R?void 0:B:qbe(np(Ue),o,void 0):void 0;R?(Y=uNe(Y,St,0,A),B=uNe(B,St,1,A),pe=uNe(pe,St,2,A)):B=zBe(B,St,A)}Y&&(Y=z2(Y)),B&&(B=z2(B)),pe&&(pe=z2(pe))}return R?Cwe(Y||Tc,B||Te,pe||JNe(2,o)||Io,A):A?m1e(B||Te):B||Te}function Cwe(o,f,v,A){const R=A?bm:ay,B=R.getGlobalGeneratorType(!1);if(o=R.resolveIterationType(o,void 0)||Io,f=R.resolveIterationType(f,void 0)||Io,v=R.resolveIterationType(v,void 0)||Io,B===Ka){const Y=R.getGlobalIterableIteratorType(!1),pe=Y!==Ka?Lrt(Y,R):void 0,Te=pe?pe.returnType:Ge,Ue=pe?pe.nextType:Ce;return Id(f,Te)&&Id(Ue,v)?Y!==Ka?lK(Y,[o]):(R.getGlobalIterableIteratorType(!0),M_):(R.getGlobalGeneratorType(!0),M_)}return lK(B,[o,f,v])}function jyt(o,f){const v=[],A=[],R=(ob(o)&2)!==0;return hie(o.body,B=>{const Y=B.expression?Bf(B.expression,f):kt;Dy(v,Jnt(B,Y,Ge,R));let pe;if(B.asteriskToken){const Te=e_e(Y,R?19:17,B.expression);pe=Te&&Te.nextType}else pe=NE(B,void 0);pe&&Dy(A,pe)}),{yieldTypes:v,nextTypes:A}}function Jnt(o,f,v,A){const R=o.expression||o,B=o.asteriskToken?Kk(A?19:17,f,v,R):f;return A?XB(B,R,o.asteriskToken?N.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):B}function $nt(o,f,v){let A=0;for(let R=0;R=f?v[R]:void 0;A|=B!==void 0?Dae.get(B)||32768:0}return A}function qnt(o){const f=rt(o);if(f.isExhaustive===void 0){f.isExhaustive=0;const v=lGe(o);f.isExhaustive===0&&(f.isExhaustive=v)}else f.isExhaustive===0&&(f.isExhaustive=!1);return f.isExhaustive}function lGe(o){if(o.expression.kind===221){const A=Fbe(o);if(!A)return!1;const R=tM(kv(o.expression.expression)),B=$nt(0,0,A);return R.flags&3?(556800&B)===556800:!Uk(R,Y=>vK(Y,B)===B)}const f=kv(o.expression);if(!afe(f))return!1;const v=Obe(o);return!v.length||gt(v,lNe)?!1:mht(Th(f,$S),v)}function NK(o){return o.endFlowNode&&Wte(o.endFlowNode)}function Knt(o,f){const v=ob(o),A=[];let R=NK(o),B=!1;if(dR(o.body,Y=>{let pe=Y.expression;if(pe){if(pe=rg(pe,!0),v&2&&pe.kind===223&&(pe=rg(pe.expression,!0)),pe.kind===213&&pe.expression.kind===80&&kv(pe.expression).symbol===o.symbol){B=!0;return}let Te=kv(pe,f&&f&-9);v&2&&(Te=lne(cne(Te,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Te.flags&131072&&(B=!0),Dy(A,Te)}else R=!0}),!(A.length===0&&!R&&(B||Vyt(o))))return Ke&&A.length&&R&&!(Ax(o)&&A.some(Y=>Y.symbol===o.symbol))&&Dy(A,Ce),A}function Vyt(o){switch(o.kind){case 218:case 219:return!0;case 174:return o.parent.kind===210;default:return!1}}function uGe(o,f){i(v);return;function v(){const A=ob(o),R=f&&dne(f,A);if(R&&(Sy(R,16384)||R.flags&32769)||o.kind===173||ny(o.body)||o.body.kind!==241||!NK(o))return;const B=o.flags&1024,Y=kS(o)||o;if(R&&R.flags&131072)hn(Y,N.A_function_returning_never_cannot_have_a_reachable_end_point);else if(R&&!B)hn(Y,N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(R&&Ke&&!Id(Ce,R))hn(Y,N.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Pe.noImplicitReturns){if(!R){if(!B)return;const pe=np(gb(o));if($Ge(o,pe))return}hn(Y,N.Not_all_code_paths_return_a_value)}}}function zfe(o,f){if(re.assert(o.kind!==174||iC(o)),Rf(o),Jm(o)&&HV(o,o.name),f&&f&4&&Sx(o)){if(!kS(o)&&!YH(o)){const A=vfe(o);if(A&&Iw(np(A))){const R=rt(o);if(R.contextFreeType)return R.contextFreeType;const B=Awe(o,f),Y=vw(void 0,void 0,void 0,Yn,B,void 0,0,64),pe=sy(o.symbol,Fe,[Y],Yn,Yn);return pe.objectFlags|=262144,R.contextFreeType=pe}}return Qi}return!Qrt(o)&&o.kind===218&&b0t(o),cL(o,f),La(sc(o))}function cL(o,f){const v=rt(o);if(!(v.flags&64)){const A=vfe(o);if(!(v.flags&64)){v.flags|=64;const R=pp(ed(La(sc(o)),0));if(!R)return;if(Sx(o))if(A){const B=g5(o);let Y;if(f&&f&2){sGe(R,A,B);const pe=Wfe(A);pe&&pe.flags&262144&&(Y=RV(A,B.nonFixingMapper))}Y||(Y=B?RV(A,B.mapper):A),wyt(R,Y)}else xwe(R);else if(A&&!o.typeParameters&&A.parameters.length>o.parameters.length){const B=g5(o);f&&f&2&&sGe(R,A,B)}if(A&&!sK(o)&&!R.resolvedReturnType){const B=Awe(o,f);R.resolvedReturnType||(R.resolvedReturnType=B)}Vfe(o)}}}function fGe(o){re.assert(o.kind!==174||iC(o));const f=ob(o),v=sK(o);if(uGe(o,v),o.body)if(kS(o)||np(gb(o)),o.body.kind===241)On(o.body);else{const A=Bf(o.body),R=v&&dne(v,f);if(R)if((f&3)===2){const B=cne(A,!1,o.body,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);rN(B,R,o.body,o.body)}else rN(A,R,o.body,o.body)}}function Dwe(o,f,v,A=!1){if(!Id(f,mf)){const R=A&&WK(f);return fm(o,!!R&&Id(R,mf),v),!1}return!0}function _Ge(o){if(!xd(o)||!A7(o))return!1;const f=kv(o.arguments[2]);if(Xe(f,"value")){const R=Yd(f,"writable"),B=R&&La(R);if(!B||B===vo||B===Ro)return!0;if(R&&R.valueDeclaration&&tl(R.valueDeclaration)){const Y=R.valueDeclaration.initializer,pe=Bf(Y);if(pe===vo||pe===Ro)return!0}return!1}return!Yd(f,"set")}function z1(o){return!!(I_(o)&8||o.flags&4&&Vy(o)&8||o.flags&3&&nwe(o)&6||o.flags&98304&&!(o.flags&65536)||o.flags&8||gt(o.declarations,_Ge))}function dGe(o,f,v){var A,R;if(v===0)return!1;if(z1(f)){if(f.flags&4&&Kf(o)&&o.expression.kind===110){const B=zE(o);if(!(B&&(B.kind===176||Ax(B))))return!0;if(f.valueDeclaration){const Y=Ds(f.valueDeclaration),pe=B.parent===f.valueDeclaration.parent,Te=B===f.valueDeclaration.parent,Ue=Y&&((A=f.parent)==null?void 0:A.valueDeclaration)===B.parent,St=Y&&((R=f.parent)==null?void 0:R.valueDeclaration)===B;return!(pe||Te||Ue||St)}}return!0}if(Kf(o)){const B=rg(o.expression);if(B.kind===80){const Y=rt(B).resolvedSymbol;if(Y.flags&2097152){const pe=UT(Y);return!!pe&&pe.kind===274}}}return!1}function VV(o,f,v){const A=iv(o,7);return A.kind!==80&&!Kf(A)?(hn(o,f),!1):A.flags&64?(hn(o,v),!1):!0}function Nw(o){Bf(o.expression);const f=rg(o.expression);if(!Kf(f))return hn(f,N.The_operand_of_a_delete_operator_must_be_a_property_reference),Pc;Ac(f)&&Lu(f.name)&&hn(f,N.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const v=rt(f),A=eA(v.resolvedSymbol);return A&&(z1(A)?hn(f,N.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Iwe(f,A)),Pc}function Iwe(o,f){const v=La(f);Ke&&!(v.flags&131075)&&!(qt?f.flags&16777216:DC(v,16777216))&&hn(o,N.The_operand_of_a_delete_operator_must_be_optional)}function pGe(o){return Bf(o.expression),oO}function Xnt(o){return Rf(o),kt}function kwe(o){let f=!1;const v=vie(o);if(v&&Ep(v)){const A=ys(o)?N.await_expression_cannot_be_used_inside_a_class_static_block:N.await_using_statements_cannot_be_used_inside_a_class_static_block;hn(o,A),f=!0}else if(!(o.flags&65536))if(GE(o)){const A=ts(o);if(!qV(A)){let R;if(!VM(A,Pe)){R??(R=M0(A,o.pos));const B=ys(o)?N.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:N.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,Y=Pp(A,R.start,R.length,B);j_.add(Y),f=!0}switch(Ie){case 100:case 199:if(A.impliedNodeFormat===1){R??(R=M0(A,o.pos)),j_.add(Pp(A,R.start,R.length,N.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),f=!0;break}case 7:case 99:case 4:if(dt>=4)break;default:R??(R=M0(A,o.pos));const B=ys(o)?N.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:N.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;j_.add(Pp(A,R.start,R.length,B)),f=!0;break}}}else{const A=ts(o);if(!qV(A)){const R=M0(A,o.pos),B=ys(o)?N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,Y=Pp(A,R.start,R.length,B);if(v&&v.kind!==176&&!(ob(v)&2)){const pe=Bs(v,N.Did_you_mean_to_mark_this_function_as_async);ml(Y,pe)}j_.add(Y),f=!0}}return ys(o)&&HNe(o)&&(hn(o,N.await_expressions_cannot_be_used_in_a_parameter_initializer),f=!0),f}function Ynt(o){i(()=>kwe(o));const f=Bf(o.expression),v=cne(f,!0,o,N.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return v===f&&!Fn(v)&&!(f.flags&3)&&v_(!1,Bs(o,N.await_has_no_effect_on_the_type_of_this_expression)),v}function Qnt(o){const f=Bf(o.operand);if(f===Tf)return Tf;switch(o.operand.kind){case 9:switch(o.operator){case 41:return wV(HA(-o.operand.text));case 40:return wV(HA(+o.operand.text))}break;case 10:if(o.operator===41)return wV(sM({negative:!0,base10Value:l3(o.operand.text)}))}switch(o.operator){case 40:case 41:case 55:return lh(f,o.operand),rne(f,12288)&&hn(o.operand,N.The_0_operator_cannot_be_applied_to_type_symbol,Cf(o.operator)),o.operator===40?(rne(f,2112)&&hn(o.operand,N.Operator_0_cannot_be_applied_to_type_1,Cf(o.operator),Co(pM(f))),Lr):y1e(f);case 54:Zfe(f,o.operand);const v=vK(f,12582912);return v===4194304?vo:v===8388608?Ts:Pc;case 46:case 47:return Dwe(o.operand,lh(f,o.operand),N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&VV(o.operand,N.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,N.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),y1e(f)}return Sr}function Uyt(o){const f=Bf(o.operand);return f===Tf?Tf:(Dwe(o.operand,lh(f,o.operand),N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&VV(o.operand,N.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,N.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),y1e(f))}function y1e(o){return Sy(o,2112)?zb(o,3)||Sy(o,296)?mf:qi:Lr}function rne(o,f){if(Sy(o,f))return!0;const v=tM(o);return!!v&&Sy(v,f)}function Sy(o,f){if(o.flags&f)return!0;if(o.flags&3145728){const v=o.types;for(const A of v)if(Sy(A,f))return!0}return!1}function zb(o,f,v){return o.flags&f?!0:v&&o.flags&114691?!1:!!(f&296)&&Id(o,Lr)||!!(f&2112)&&Id(o,qi)||!!(f&402653316)&&Id(o,Nn)||!!(f&528)&&Id(o,Pc)||!!(f&16384)&&Id(o,bl)||!!(f&131072)&&Id(o,Tc)||!!(f&65536)&&Id(o,mn)||!!(f&32768)&&Id(o,Ce)||!!(f&4096)&&Id(o,hc)||!!(f&67108864)&&Id(o,G_)}function Gfe(o,f,v){return o.flags&1048576?jr(o.types,A=>Gfe(A,f,v)):zb(o,f,v)}function Pwe(o){return!!(ji(o)&16)&&!!o.symbol&&Nwe(o.symbol)}function Nwe(o){return(o.flags&128)!==0}function mGe(o){const f=zGe("hasInstance"),v=$6(o,f);if(v){const A=La(v);if(A&&ed(A,0).length!==0)return A}}function Hyt(o,f,v,A,R){if(v===Tf||A===Tf)return Tf;!bn(v)&&Gfe(v,402784252)&&hn(o,N.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),re.assert(jie(o.parent));const B=y5(o.parent,void 0,R);if(B===Sc)return Tf;const Y=np(B);return a1(Y,Pc,f,N.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),Pc}function Jyt(o){return Uk(o,f=>f===qo||!!(f.flags&2097152)&&VI(tM(f)))}function gGe(o,f,v,A){if(v===Tf||A===Tf)return Tf;if(Lu(o)){if(dt<99&&yb(o,2097152),!rt(o).resolvedSymbol&&$b(o)){const R=i1e(o,A.symbol,!0);bnt(o,A,R)}}else a1(lh(v,o),xa,o);return a1(lh(A,f),G_,f)&&Jyt(A)&&hn(f,N.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Co(A)),Pc}function Znt(o,f,v){const A=o.properties;if(Ke&&A.length===0)return lh(f,o);for(let R=0;Rbte(Ue,v)):hT(A);return lL(pe,Te,R)}}}}function lL(o,f,v,A){let R;if(o.kind===304){const B=o;B.objectAssignmentInitializer&&(Ke&&!DC(Bf(B.objectAssignmentInitializer),16777216)&&(f=IC(f,524288)),Kyt(B.name,B.equalsToken,B.objectAssignmentInitializer,v)),R=o.name}else R=o;return R.kind===226&&R.operatorToken.kind===64&&(Kt(R,v),R=R.left,Ke&&(f=IC(f,524288))),R.kind===210?Znt(R,f,A):R.kind===209?ert(R,f,v):nrt(R,f,v)}function nrt(o,f,v){const A=Bf(o,v),R=o.parent.kind===305?N.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:N.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,B=o.parent.kind===305?N.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:N.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return VV(o,R,B)&&rN(f,A,o,o),u9(o)&&yb(o.parent,1048576),f}function v1e(o){switch(o=rg(o),o.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 v1e(o.whenTrue)&&v1e(o.whenFalse);case 226:return pk(o.operatorToken.kind)?!1:v1e(o.left)&&v1e(o.right);case 224:case 225:switch(o.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function hGe(o,f){return(f.flags&98304)!==0||vbe(o,f)}function $yt(){const o=GG(f,v,A,R,B,Y);return(rn,Sn)=>{const xr=o(rn,Sn);return re.assertIsDefined(xr),xr};function f(rn,Sn,xr){return Sn?(Sn.stackIndex++,Sn.skip=!1,Ue(Sn,void 0),Rt(Sn,void 0)):Sn={checkMode:xr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Cs(rn)&&I9(rn)?(Sn.skip=!0,Rt(Sn,Bf(rn.right,xr)),Sn):(qyt(rn),rn.operatorToken.kind===64&&(rn.left.kind===210||rn.left.kind===209)&&(Sn.skip=!0,Rt(Sn,lL(rn.left,Bf(rn.right,xr),xr,rn.right.kind===110))),Sn)}function v(rn,Sn,xr){if(!Sn.skip)return pe(Sn,rn)}function A(rn,Sn,xr){if(!Sn.skip){const Ai=St(Sn);re.assertIsDefined(Ai),Ue(Sn,Ai),Rt(Sn,void 0);const So=rn.kind;if(W7(So)){let la=xr.parent;for(;la.kind===217||DH(la);)la=la.parent;(So===56||bk(la))&&v5(xr.left,Ai,bk(la)?la.thenStatement:void 0),Zfe(Ai,xr.left)}}}function R(rn,Sn,xr){if(!Sn.skip)return pe(Sn,rn)}function B(rn,Sn){let xr;if(Sn.skip)xr=St(Sn);else{const Ai=Te(Sn);re.assertIsDefined(Ai);const So=St(Sn);re.assertIsDefined(So),xr=rrt(rn.left,rn.operatorToken,rn.right,Ai,So,Sn.checkMode,rn)}return Sn.skip=!1,Ue(Sn,void 0),Rt(Sn,void 0),Sn.stackIndex--,xr}function Y(rn,Sn,xr){return Rt(rn,Sn),rn}function pe(rn,Sn){if(Ds(Sn))return Sn;Rt(rn,Bf(Sn,rn.checkMode))}function Te(rn){return rn.typeStack[rn.stackIndex]}function Ue(rn,Sn){rn.typeStack[rn.stackIndex]=Sn}function St(rn){return rn.typeStack[rn.stackIndex+1]}function Rt(rn,Sn){rn.typeStack[rn.stackIndex+1]=Sn}}function qyt(o){const{left:f,operatorToken:v,right:A}=o;v.kind===61&&(Ds(f)&&(f.operatorToken.kind===57||f.operatorToken.kind===56)&&Uo(f,N._0_and_1_operations_cannot_be_mixed_without_parentheses,Cf(f.operatorToken.kind),Cf(v.kind)),Ds(A)&&(A.operatorToken.kind===57||A.operatorToken.kind===56)&&Uo(A,N._0_and_1_operations_cannot_be_mixed_without_parentheses,Cf(A.operatorToken.kind),Cf(v.kind)))}function Kyt(o,f,v,A,R){const B=f.kind;if(B===64&&(o.kind===210||o.kind===209))return lL(o,Bf(v,A),A,v.kind===110);let Y;W7(B)?Y=fne(o,A):Y=Bf(o,A);const pe=Bf(v,A);return rrt(o,f,v,Y,pe,A,R)}function rrt(o,f,v,A,R,B,Y){const pe=f.kind;switch(pe){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(A===Tf||R===Tf)return Tf;A=lh(A,o),R=lh(R,v);let mo;if(A.flags&528&&R.flags&528&&(mo=rn(f.kind))!==void 0)return hn(Y||f,N.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Cf(f.kind),Cf(mo)),Lr;{const Va=Dwe(o,A,N.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Da=Dwe(v,R,N.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let cc;if(zb(A,3)&&zb(R,3)||!(Sy(A,2112)||Sy(R,2112)))cc=Lr;else if(Te(A,R)){switch(pe){case 50:case 73:So();break;case 43:case 68:dt<3&&hn(Y,N.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}cc=qi}else So(Te),cc=Sr;return Va&&Da&&Sn(cc),cc}case 40:case 65:if(A===Tf||R===Tf)return Tf;!zb(A,402653316)&&!zb(R,402653316)&&(A=lh(A,o),R=lh(R,v));let Ya;return zb(A,296,!0)&&zb(R,296,!0)?Ya=Lr:zb(A,2112,!0)&&zb(R,2112,!0)?Ya=qi:zb(A,402653316,!0)||zb(R,402653316,!0)?Ya=Nn:(bn(A)||bn(R))&&(Ya=Fn(A)||Fn(R)?Sr:Ge),Ya&&!Rt(pe)?Ya:Ya?(pe===65&&Sn(Ya),Ya):(So((Da,cc)=>zb(Da,402655727)&&zb(cc,402655727)),Ge);case 30:case 32:case 33:case 34:return Rt(pe)&&(A=Pbe(lh(A,o)),R=Pbe(lh(R,v)),Ai((Va,Da)=>{if(bn(Va)||bn(Da))return!0;const cc=Id(Va,mf),V_=Id(Da,mf);return cc&&V_||!cc&&!V_&&bbe(Va,Da)})),Pc;case 35:case 36:case 37:case 38:if(!(B&&B&64)){if((Zre(o)||Zre(v))&&(!Cs(o)||pe===37||pe===38)){const Va=pe===35||pe===37;hn(Y,N.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Va?"false":"true")}Zs(Y,pe,o,v),Ai((Va,Da)=>hGe(Va,Da)||hGe(Da,Va))}return Pc;case 104:return Hyt(o,v,A,R,B);case 103:return gGe(o,v,A,R);case 56:case 77:{const Va=DC(A,4194304)?dc([_tt(Ke?A:pM(R)),R]):A;return pe===77&&Sn(R),Va}case 57:case 76:{const Va=DC(A,8388608)?dc([Dw(_Ne(A)),R],2):A;return pe===76&&Sn(R),Va}case 61:case 78:{const Va=DC(A,262144)?dc([Dw(A),R],2):A;return pe===78&&Sn(R),Va}case 64:const Ra=Ds(o.parent)?jy(o.parent):0;return Ue(Ra,R),xr(Ra)?((!(R.flags&524288)||Ra!==2&&Ra!==6&&!_M(R)&&!wte(R)&&!(ji(R)&1))&&Sn(R),A):(Sn(R),R);case 28:if(!Pe.allowUnreachableCode&&v1e(o)&&!St(o.parent)){const Va=ts(o),Da=Va.text,cc=Ff(Da,o.pos);Va.parseDiagnostics.some(fd=>fd.code!==N.JSX_expressions_must_have_one_parent_element.code?!1:tb(fd,cc))||hn(o,N.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return R;default:return re.fail()}function Te(mo,Ya){return zb(mo,2112)&&zb(Ya,2112)}function Ue(mo,Ya){if(mo===2)for(const Ra of W2(Ya)){const Va=La(Ra);if(Va.symbol&&Va.symbol.flags&32){const Da=Ra.escapedName,cc=gg(Ra.valueDeclaration,Da,788968,void 0,Da,!1);cc!=null&&cc.declarations&&cc.declarations.some(zJ)&&(TE(cc,N.Duplicate_identifier_0,Ic(Da),Ra),TE(Ra,N.Duplicate_identifier_0,Ic(Da),cc))}}}function St(mo){return mo.parent.kind===217&&S1(mo.left)&&mo.left.text==="0"&&(xd(mo.parent.parent)&&mo.parent.parent.expression===mo.parent||mo.parent.parent.kind===215)&&(Kf(mo.right)||xn(mo.right)&&mo.right.escapedText==="eval")}function Rt(mo){const Ya=rne(A,12288)?o:rne(R,12288)?v:void 0;return Ya?(hn(Ya,N.The_0_operator_cannot_be_applied_to_type_symbol,Cf(mo)),!1):!0}function rn(mo){switch(mo){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Sn(mo){pk(pe)&&i(Ya);function Ya(){let Ra=A;if(uj(f.kind)&&o.kind===211&&(Ra=Dfe(o,void 0,!0)),VV(o,N.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Va;if(qt&&Ac(o)&&Sy(mo,32768)){const Da=Xe(s1(o.expression),o.name.escapedText);e8(mo,Da)&&(Va=N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}rN(mo,Ra,o,v,Va)}}}function xr(mo){var Ya;switch(mo){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Ra=hx(o),Va=I9(v);return!!Va&&el(Va)&&!!((Ya=Ra==null?void 0:Ra.exports)!=null&&Ya.size);default:return!1}}function Ai(mo){return mo(A,R)?!1:(So(mo),!0)}function So(mo){let Ya=!1;const Ra=Y||f;if(mo){const fd=gM(A),ad=gM(R);Ya=!(fd===A&&ad===R)&&!!(fd&&ad)&&mo(fd,ad)}let Va=A,Da=R;!Ya&&mo&&([Va,Da]=wwe(A,R,mo));const[cc,V_]=DE(Va,Da);la(Ra,Ya,cc,V_)||fm(Ra,Ya,N.Operator_0_cannot_be_applied_to_types_1_and_2,Cf(f.kind),cc,V_)}function la(mo,Ya,Ra,Va){switch(f.kind){case 37:case 35:case 38:case 36:return fm(mo,Ya,N.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ra,Va);default:return}}function Zs(mo,Ya,Ra,Va){const Da=ba(rg(Ra)),cc=ba(rg(Va));if(Da||cc){const V_=hn(mo,N.This_condition_will_always_return_0,Cf(Ya===37||Ya===35?97:112));if(Da&&cc)return;const fd=Ya===38||Ya===36?Cf(54):"",ad=Da?Va:Ra,Xf=rg(ad);ml(V_,Bs(ad,N.Did_you_mean_0,`${fd}Number.isNaN(${Tg(Xf)?iE(Xf):"..."})`))}}function ba(mo){if(xn(mo)&&mo.escapedText==="NaN"){const Ya=JS();return!!Ya&&Ya===xD(mo)}return!1}}function wwe(o,f,v){let A=o,R=f;const B=pM(o),Y=pM(f);return v(B,Y)||(A=B,R=Y),[A,R]}function irt(o){i(rn);const f=zE(o);if(!f)return Ge;const v=ob(f);if(!(v&1))return Ge;const A=(v&2)!==0;o.asteriskToken&&(A&&dt<99&&yb(o,26624),!A&&dt<2&&Pe.downlevelIteration&&yb(o,256));let R=sK(f);R&&R.flags&1048576&&(R=lv(R,Sn=>AGe(Sn,v,void 0)));const B=R&&JGe(R,A),Y=B&&B.yieldType||Ge,pe=B&&B.nextType||Ge,Te=A?XB(pe)||Ge:pe,Ue=o.expression?Bf(o.expression):kt,St=Jnt(o,Ue,Te,A);if(R&&St&&rN(St,Y,o.expression||o,o.expression),o.asteriskToken)return $we(A?19:17,1,Ue,o.expression)||Ge;if(R)return b5(2,R,A)||Ge;let Rt=JNe(2,f);return Rt||(Rt=Ge,i(()=>{if(Et&&!QSe(o)){const Sn=NE(o,void 0);(!Sn||bn(Sn))&&hn(o,N.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Rt;function rn(){o.flags&16384||vT(o,N.A_yield_expression_is_only_allowed_in_a_generator_body),HNe(o)&&hn(o,N.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Xyt(o,f){const v=fne(o.condition,f);v5(o.condition,v,o.whenTrue);const A=Bf(o.whenTrue,f),R=Bf(o.whenFalse,f);return dc([A,R],2)}function wK(o){const f=o.parent;return fE(f)&&wK(f)||Hm(f)&&f.argumentExpression===o}function Yyt(o){const f=[o.head.text],v=[];for(const R of o.templateSpans){const B=Bf(R.expression);rne(B,12288)&&hn(R.expression,N.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),f.push(R.literal.text),v.push(Id(B,Cp)?B:Nn)}if(one(o)||wK(o)||Uk(NE(o,void 0)||Io,Qyt))return MB(f,v);const A=o.parent.kind!==215&&hr(o);return A?wV(vS(A)):Nn}function Qyt(o){return!!(o.flags&134217856||o.flags&58982400&&Sy(US(o)||Io,402653316))}function b1e(o){return CR(o)&&!nF(o.parent)?o.parent.parent:o}function RK(o,f,v,A){const R=b1e(o);jte(R,f,!1),Bht(R,v);const B=Bf(o,A|1|(v?2:0));v&&v.intraExpressionInferenceSites&&(v.intraExpressionInferenceSites=void 0);const Y=Sy(B,2944)&&Rwe(B,qbe(f,o,void 0))?$S(B):B;return zht(),Vte(),Y}function kv(o,f){if(f)return Bf(o,f);const v=rt(o);if(!v.resolvedType){const A=fn,R=ca;fn=$n,ca=void 0,v.resolvedType=Bf(o,f),ca=R,fn=A}return v.resolvedType}function yGe(o){return o=rg(o,!0),o.kind===216||o.kind===234||KY(o)}function ine(o,f,v){const A=sH(o);if(Cs(o)){const B=ZH(o);if(B)return nGe(A,B,f)}const R=EGe(A)||(v?RK(A,v,void 0,f||0):kv(A,f));return Os(o)&&o.name.kind===207&&Dp(R)&&!R.target.hasRestElement&&Y6(R)Rwe(o,A))}if(f.flags&58982400){const v=US(f)||Io;return Sy(v,4)&&Sy(o,128)||Sy(v,8)&&Sy(o,256)||Sy(v,64)&&Sy(o,2048)||Sy(v,4096)&&Sy(o,8192)||Rwe(o,v)}return!!(f.flags&406847616&&Sy(o,128)||f.flags&256&&Sy(o,256)||f.flags&2048&&Sy(o,2048)||f.flags&512&&Sy(o,512)||f.flags&8192&&Sy(o,8192))}return!1}function one(o){const f=o.parent;return f7(f)&&ky(f.type)||KY(f)&&ky(x1(f))||Swe(o)&&n5(NE(o,0))||(fE(f)||Ed(f)||WT(f))&&one(f)||(tl(f)||XE(f)||Dh(f))&&one(f.parent)}function MK(o,f,v){const A=Bf(o,f,v);return one(o)||$Me(o)?$S(A):yGe(o)?A:BBe(A,qbe(NE(o,void 0),o,void 0))}function ort(o,f){return o.name.kind===167&&Jk(o.name),MK(o.initializer,f)}function bGe(o,f){WSt(o),o.name.kind===167&&Jk(o.name);const v=zfe(o,f);return TGe(o,v,f)}function TGe(o,f,v){if(v&&v&10){const A=qte(f,0,!0),R=qte(f,1,!0),B=A||R;if(B&&B.typeParameters){const Y=c8(o,2);if(Y){const pe=qte(Dw(Y),A?0:1,!1);if(pe&&!pe.typeParameters){if(v&8)return SGe(o,v),Qi;const Te=g5(o),Ue=Te.signature&&np(Te.signature),St=Ue&&Dnt(Ue);if(St&&!St.typeParameters&&!jr(Te.inferences,LK)){const Rt=nvt(Te,B.typeParameters),rn=X6(B,Rt),Sn=Vn(Te.inferences,xr=>ffe(xr.typeParameter));if(UBe(rn,pe,(xr,Ai)=>{kw(Sn,xr,Ai,0,!0)}),gt(Sn,LK)&&(wbe(rn,pe,(xr,Ai)=>{kw(Sn,xr,Ai)}),!OK(Te.inferences,Sn)))return tvt(Te.inferences,Sn),Te.inferredTypeParameters=Hi(Te.inferredTypeParameters,Rt),o5(rn)}return o5(Kte(B,pe,Te))}}}}return f}function SGe(o,f){if(f&2){const v=g5(o);v.flags|=4}}function LK(o){return!!(o.candidates||o.contraCandidates)}function evt(o){return!!(o.candidates||o.contraCandidates||Rue(o.typeParameter))}function OK(o,f){for(let v=0;vv.symbol.escapedName===f)}function rvt(o,f){let v=f.length;for(;v>1&&f.charCodeAt(v-1)>=48&&f.charCodeAt(v-1)<=57;)v--;const A=f.slice(0,v);for(let R=1;;R++){const B=A+R;if(!Mwe(o,B))return B}}function art(o){const f=$B(o);if(f&&!f.typeParameters)return np(f)}function ivt(o){const f=Bf(o.expression),v=sfe(f,o.expression),A=art(f);return A&&gNe(A,o,v!==f)}function s1(o){const f=EGe(o);if(f)return f;if(o.flags&268435456&&ca){const R=ca[vm(o)];if(R)return R}const v=yo,A=Bf(o,64);if(yo!==v){const R=ca||(ca=[]);R[vm(o)]=A,YSe(o,o.flags|268435456)}return A}function EGe(o){let f=rg(o,!0);if(KY(f)){const v=x1(f);if(!ky(v))return Xl(v)}if(f=rg(o),ys(f)){const v=EGe(f.expression);return v?XB(v):void 0}if(xd(f)&&f.expression.kind!==108&&!y1(f,!0)&&!Yte(f))return AN(f)?ivt(f):art(CK(f.expression));if(f7(f)&&!ky(f.type))return Xl(f.type);if(aR(o)||_y(o))return Bf(o)}function jfe(o){const f=rt(o);if(f.contextFreeType)return f.contextFreeType;jte(o,Ge,!1);const v=f.contextFreeType=Bf(o,4);return Vte(),v}function Bf(o,f,v){var A,R;(A=ps)==null||A.push(ps.Phase.Check,"checkExpression",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});const B=ae;ae=o,J=0;const Y=avt(o,f,v),pe=TGe(o,Y,f);return Pwe(pe)&&ovt(o,pe),ae=B,(R=ps)==null||R.pop(),pe}function ovt(o,f){o.parent.kind===211&&o.parent.expression===o||o.parent.kind===212&&o.parent.expression===o||(o.kind===80||o.kind===166)&&yg(o)||o.parent.kind===186&&o.parent.exprName===o||o.parent.kind===281||hn(o,N.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),F0(Pe)&&(re.assert(!!(f.symbol.flags&128)),f.symbol.valueDeclaration.flags&33554432&&!EA(o)&&hn(o,N.Cannot_access_ambient_const_enums_when_0_is_enabled,Pn))}function srt(o,f){if(NT(o)){if(poe(o))return nGe(o.expression,moe(o),f);if(KY(o))return _1e(o,f)}return Bf(o.expression,f)}function avt(o,f,v){const A=o.kind;if(c)switch(A){case 231:case 218:case 219:c.throwIfCancellationRequested()}switch(A){case 80:return Sht(o,f);case 81:return mnt(o);case 110:return Ube(o);case 108:return BV(o);case 106:return Jn;case 15:case 11:return KBe(o)?Ln:wV(vS(o.text));case 9:return x0t(o),wV(HA(+o.text));case 10:return sPt(o),wV(sM({negative:!1,base10Value:l3(o.text)}));case 112:return Ts;case 97:return vo;case 228:return Yyt(o);case 14:return Ig;case 209:return qI(o,f,v);case 210:return Qbe(o,f);case 211:return Dfe(o,f);case 166:return dnt(o,f);case 212:return uyt(o,f);case 213:if(o.expression.kind===102)return Qze(o);case 214:return sL(o,f);case 215:return IK(o);case 217:return srt(o,f);case 231:return _0t(o);case 218:case 219:return zfe(o,f);case 221:return pGe(o);case 216:case 234:return tGe(o,f);case 235:return Iyt(o);case 233:return znt(o);case 238:return kyt(o);case 236:return Pyt(o);case 220:return Nw(o);case 222:return Xnt(o);case 223:return Ynt(o);case 224:return Qnt(o);case 225:return Uyt(o);case 226:return Kt(o,f);case 227:return Xyt(o,f);case 230:return $I(o,f);case 232:return kt;case 229:return irt(o);case 237:return UB(o);case 294:return KI(o,f);case 284:return $ht(o);case 285:return Hht(o);case 288:return qht(o);case 292:return wze(o,f);case 286:re.fail("Shouldn't ever directly check a JsxOpeningElement")}return Sr}function crt(o){fL(o),o.expression&&vT(o.expression,N.Type_expected),On(o.constraint),On(o.default);const f=e5(sc(o));US(f),YZe(f)||hn(o.default,N.Type_parameter_0_has_a_circular_default,Co(f));const v=gT(f),A=Dd(f);v&&A&&a1(A,vx(zu(v,Cw(f,A)),A),o.default,N.Type_0_does_not_satisfy_the_constraint_1),Rf(o),i(()=>pne(o.name,N.Type_parameter_name_cannot_be_0))}function ane(o){var f,v;if(xp(o.parent)||Fl(o.parent)||z0(o.parent)){const A=e5(sc(o)),R=FB(A)&24576;if(R){const B=sc(o.parent);if(z0(o.parent)&&!(ji(sh(B))&48))hn(o,N.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(R===8192||R===16384){(f=ps)==null||f.push(ps.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:By(sh(B)),id:By(A)});const Y=f5(B,A,R===16384?_n:fe),pe=f5(B,A,R===16384?fe:_n),Te=A;ve=A,a1(Y,pe,o,N.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),ve=Te,(v=ps)==null||v.pop()}}}}function xGe(o){fL(o),D1e(o);const f=zE(o);ul(o,31)&&(f.kind===176&&y2(f.body)||hn(o,N.A_parameter_property_is_only_allowed_in_a_constructor_implementation),f.kind===176&&xn(o.name)&&o.name.escapedText==="constructor"&&hn(o.name,N.constructor_cannot_be_used_as_a_parameter_property_name)),!o.initializer&&yG(o)&&$_(o.name)&&f.body&&hn(o,N.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),o.name&&xn(o.name)&&(o.name.escapedText==="this"||o.name.escapedText==="new")&&(f.parameters.indexOf(o)!==0&&hn(o,N.A_0_parameter_must_be_the_first_parameter,o.name.escapedText),(f.kind===176||f.kind===180||f.kind===185)&&hn(o,N.A_constructor_cannot_have_a_this_parameter),f.kind===219&&hn(o,N.An_arrow_function_cannot_have_a_this_parameter),(f.kind===177||f.kind===178)&&hn(o,N.get_and_set_accessors_cannot_declare_this_parameters)),o.dotDotDotToken&&!$_(o.name)&&!Id(zI(La(o.symbol)),P1)&&hn(o,N.A_rest_parameter_must_be_of_an_array_type)}function lrt(o){const f=svt(o);if(!f){hn(o,N.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const v=gb(f),A=Wb(v);if(!A)return;On(o.type);const{parameterName:R}=o;if(A.kind===0||A.kind===2)Xue(R);else if(A.parameterIndex>=0){if(A1(v)&&A.parameterIndex===v.parameters.length-1)hn(R,N.A_type_predicate_cannot_reference_a_rest_parameter);else if(A.type){const B=()=>Es(void 0,N.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);a1(A.type,La(v.parameters[A.parameterIndex]),o.type,void 0,B)}}else if(R){let B=!1;for(const{name:Y}of f.parameters)if($_(Y)&&urt(Y,R,A.parameterName)){B=!0;break}B||hn(o.parameterName,N.Cannot_find_parameter_0,A.parameterName)}}function svt(o){switch(o.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const f=o.parent;if(o===f.type)return f}}function urt(o,f,v){for(const A of o.elements){if(cb(A))continue;const R=A.name;if(R.kind===80&&R.escapedText===v)return hn(f,N.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,v),!0;if((R.kind===207||R.kind===206)&&urt(R,f,v))return!0}}function Vfe(o){o.kind===181?Lkt(o):(o.kind===184||o.kind===262||o.kind===185||o.kind===179||o.kind===176||o.kind===180)&&Qrt(o);const f=ob(o);f&4||((f&3)===3&&dt<99&&yb(o,6144),(f&3)===2&&dt<4&&yb(o,64),f&3&&dt<2&&yb(o,128)),k1e(Hb(o)),u0t(o),Ot(o.parameters,xGe),o.type&&On(o.type),i(v);function v(){Yfe(o);let A=kS(o),R=A;if(Cs(o)){const B=FM(o);if(B&&B.typeExpression&&uE(B.typeExpression.type)){const Y=$B(Xl(B.typeExpression));Y&&Y.declaration&&(A=kS(Y.declaration),R=B.typeExpression.type)}}if(Et&&!A)switch(o.kind){case 180:hn(o,N.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:hn(o,N.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(A&&R){const B=ob(o);if((B&5)===1){const Y=Xl(A);Y===bl?hn(R,N.A_generator_cannot_have_a_void_type_annotation):AGe(Y,B,R)}else(B&3)===2&&E1e(o,A,R)}o.kind!==181&&o.kind!==324&&qk(o)}}function AGe(o,f,v){const A=b5(0,o,(f&2)!==0)||Ge,R=b5(1,o,(f&2)!==0)||A,B=b5(2,o,(f&2)!==0)||Io,Y=Cwe(A,R,B,!!(f&2));return a1(Y,o,v)}function cvt(o){const f=new Map,v=new Map,A=new Map;for(const B of o.members)if(B.kind===176)for(const Y of B.parameters)DT(Y,B)&&!$_(Y.name)&&R(f,Y.name,Y.name.escapedText,3);else{const Y=pd(B),pe=B.name;if(!pe)continue;const Te=Lu(pe),Ue=Te&&Y?16:0,St=Te?A:Y?v:f,Rt=pe&&A0t(pe);if(Rt)switch(B.kind){case 177:R(St,pe,Rt,1|Ue);break;case 178:R(St,pe,Rt,2|Ue);break;case 172:R(St,pe,Rt,3|Ue);break;case 174:R(St,pe,Rt,8|Ue);break}}function R(B,Y,pe,Te){const Ue=B.get(pe);if(Ue)if((Ue&16)!==(Te&16))hn(Y,N.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Lv(Y));else{const St=!!(Ue&8),Rt=!!(Te&8);St||Rt?St!==Rt&&hn(Y,N.Duplicate_identifier_0,Lv(Y)):Ue&Te&-17?hn(Y,N.Duplicate_identifier_0,Lv(Y)):B.set(pe,Ue|Te)}else B.set(pe,Te)}}function lvt(o){for(const f of o.members){const v=f.name;if(pd(f)&&v){const R=A0t(v);switch(R){case"name":case"length":case"caller":case"arguments":if(Ct)break;case"prototype":const B=N.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Y=Wk(sc(o));hn(v,B,R,Y);break}}}}function Lwe(o){const f=new Map;for(const v of o.members)if(v.kind===171){let A;const R=v.name;switch(R.kind){case 11:case 9:A=R.text;break;case 80:A=Kr(R);break;default:continue}f.get(A)?(hn(i_(v.symbol.valueDeclaration),N.Duplicate_identifier_0,A),hn(v.name,N.Duplicate_identifier_0,A)):f.set(A,!0)}}function CGe(o){if(o.kind===264){const v=sc(o);if(v.declarations&&v.declarations.length>0&&v.declarations[0]!==o)return}const f=MWe(sc(o));if(f!=null&&f.declarations){const v=new Map;for(const A of f.declarations)A.parameters.length===1&&A.parameters[0].type&&PO(Xl(A.parameters[0].type),R=>{const B=v.get(By(R));B?B.declarations.push(A):v.set(By(R),{type:R,declarations:[A]})});v.forEach(A=>{if(A.declarations.length>1)for(const R of A.declarations)hn(R,N.Duplicate_index_signature_for_type_0,Co(A.type))})}}function Owe(o){!fL(o)&&!rPt(o)&&Zrt(o.name),D1e(o),Ufe(o),ul(o,64)&&o.kind===172&&o.initializer&&hn(o,N.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,hm(o.name))}function Fwe(o){return Lu(o.name)&&hn(o,N.Private_identifiers_are_not_allowed_outside_class_bodies),Owe(o)}function DGe(o){WSt(o)||Zrt(o.name),tm(o)&&o.asteriskToken&&xn(o.name)&&Kr(o.name)==="constructor"&&hn(o.name,N.Class_constructor_may_not_be_a_generator),x1e(o),ul(o,64)&&o.kind===174&&o.body&&hn(o,N.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,hm(o.name)),Lu(o.name)&&!$b(o)&&hn(o,N.Private_identifiers_are_not_allowed_outside_class_bodies),Ufe(o)}function Ufe(o){if(Lu(o.name)&&dt<99){for(let f=QD(o);f;f=QD(f))rt(f).flags|=1048576;if(v0(o.parent)){const f=Gbe(o.parent);f&&(rt(o.name).flags|=32768,rt(f).flags|=4096)}}}function frt(o){fL(o),s_(o,On)}function uvt(o){Vfe(o),tPt(o)||nPt(o),On(o.body);const f=sc(o),v=Rh(f,o.kind);if(o===v&&zwe(f),ny(o.body))return;i(R);return;function A(B){return IT(B)?!0:B.kind===172&&!pd(B)&&!!B.initializer}function R(){const B=o.parent;if(gR(B)){jNe(o.parent,B);const Y=Vbe(B),pe=mfe(o.body);if(pe){if(Y&&hn(pe,N.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Lt&&(gt(o.parent.members,A)||gt(o.parameters,Ue=>ul(Ue,31))))if(!fvt(pe,o.body))hn(pe,N.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 Ue;for(const St of o.body.statements){if(kb(St)&&h1(iv(St.expression))){Ue=St;break}if(_rt(St))break}Ue===void 0&&hn(o,N.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 Y||hn(o,N.Constructors_for_derived_classes_must_contain_a_super_call)}}}function fvt(o,f){const v=IS(o.parent);return kb(v)&&v.parent===f}function _rt(o){return o.kind===108||o.kind===110?!0:sY(o)?!1:!!s_(o,_rt)}function drt(o){xn(o.name)&&Kr(o.name)==="constructor"&&Fl(o.parent)&&hn(o.name,N.Class_constructor_may_not_be_an_accessor),i(f),On(o.body),Ufe(o);function f(){if(!Qrt(o)&&!Ukt(o)&&Zrt(o.name),BK(o),Vfe(o),o.kind===177&&!(o.flags&33554432)&&y2(o.body)&&o.flags&512&&(o.flags&1024||hn(o.name,N.A_get_accessor_must_return_a_value)),o.name.kind===167&&Jk(o.name),DB(o)){const A=sc(o),R=Rh(A,177),B=Rh(A,178);if(R&&B&&!(P0(R)&1)){rt(R).flags|=1;const Y=Cb(R),pe=Cb(B);(Y&64)!==(pe&64)&&(hn(R.name,N.Accessors_must_both_be_abstract_or_non_abstract),hn(B.name,N.Accessors_must_both_be_abstract_or_non_abstract)),(Y&4&&!(pe&6)||Y&2&&!(pe&2))&&(hn(R.name,N.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),hn(B.name,N.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const v=hO(sc(o));o.kind===177&&uGe(o,v)}}function T1e(o){BK(o)}function _vt(o,f,v){return o.typeArguments&&v{const A=IGe(o);A&&prt(o,A)});const v=rt(o).resolvedSymbol;v&>(v.declarations,A=>f6(A)&&!!(A.flags&536870912))&&pS(f1e(o),v.declarations,v.escapedName)}}function pvt(o){const f=to(o.parent,NN);if(!f)return;const v=IGe(f);if(!v)return;const A=gT(v[f.typeArguments.indexOf(o)]);return A&&zu(A,X0(v,Wwe(f,v)))}function grt(o){_et(o)}function Bwe(o){Ot(o.members,On),i(f);function f(){const v=Ste(o);Po(v,v.symbol),CGe(o),Lwe(o)}}function bp(o){On(o.elementType)}function mvt(o){const f=o.elements;let v=!1,A=!1;for(const R of f){const B=UWe(R);if(B&8){const Y=Xl(R.type);if(!rL(Y)){hn(R,N.A_rest_element_type_must_be_an_array_type);break}(kE(Y)||Dp(Y)&&Y.target.combinedFlags&4)&&(A=!0)}else if(B&4){if(A){Uo(R,N.A_rest_element_cannot_follow_another_rest_element);break}A=!0}else if(B&2){if(A){Uo(R,N.An_optional_element_cannot_follow_a_rest_element);break}v=!0}else if(v){Uo(R,N.A_required_element_cannot_follow_an_optional_element);break}}Ot(o.elements,On),Xl(o)}function hrt(o){Ot(o.types,On),Xl(o)}function PGe(o,f){if(!(o.flags&8388608))return o;const v=o.objectType,A=o.indexType;if(Id(A,CC(v,0)))return f.kind===212&&VE(f)&&ji(v)&32&&zk(v)&1&&hn(f,N.Index_signature_in_type_0_only_permits_reading,Co(v)),o;const R=yS(v);if(Tw(R,Lr)&&zb(A,296))return o;if(Ew(v)){const B=LB(A,f);if(B){const Y=PO(R,pe=>Yd(pe,B));if(Y&&Vy(Y)&6)return hn(f,N.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ic(B)),Sr}}return hn(f,N.Type_0_cannot_be_used_to_index_type_1,Co(A),Co(v)),Sr}function gvt(o){On(o.objectType),On(o.indexType),PGe(lBe(o),o)}function hvt(o){FK(o),On(o.typeParameter),On(o.nameType),On(o.type),o.type||o8(o,Ge);const f=uBe(o),v=bw(f);if(v)a1(v,Ym,o.nameType);else{const A=$v(f);a1(A,Ym,a9(o.typeParameter))}}function FK(o){var f;if((f=o.members)!=null&&f.length)return Uo(o.members[0],N.A_mapped_type_may_not_declare_properties_or_methods)}function yvt(o){Xue(o)}function vvt(o){Jkt(o),On(o.type)}function bvt(o){s_(o,On)}function yrt(o){Ua(o,v=>v.parent&&v.parent.kind===194&&v.parent.extendsType===v)||Uo(o,N.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),On(o.typeParameter);const f=sc(o.typeParameter);if(f.declarations&&f.declarations.length>1){const v=Ae(f);if(!v.typeParametersChecked){v.typeParametersChecked=!0;const A=e5(f),R=ude(f,168);if(!Vrt(R,[A],B=>[B])){const B=ru(f);for(const Y of R)hn(Y.name,N.All_declarations_of_0_must_have_identical_constraints,B)}}}qk(o)}function vrt(o){for(const f of o.templateSpans){On(f.type);const v=Xl(f.type);a1(v,Cp,f.type)}Xl(o)}function Tvt(o){On(o.argument),o.attributes&&W3(o.attributes,Uo),mrt(o)}function brt(o){o.dotDotDotToken&&o.questionToken&&Uo(o,N.A_tuple_member_cannot_be_both_optional_and_rest),o.type.kind===190&&Uo(o.type,N.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),o.type.kind===191&&Uo(o.type,N.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),On(o.type),Xl(o)}function sne(o){return(tT(o,2)||IT(o))&&!!(o.flags&33554432)}function Hfe(o,f){let v=eit(o);if(o.parent.kind!==264&&o.parent.kind!==263&&o.parent.kind!==231&&o.flags&33554432){const A=gie(o);A&&A.flags&128&&!(v&128)&&!(kh(o.parent)&&py(o.parent.parent)&&JC(o.parent.parent))&&(v|=32),v|=128}return v&f}function zwe(o){i(()=>Svt(o))}function Svt(o){function f(mo,Ya){return Ya!==void 0&&Ya.parent===mo[0].parent?Ya:mo[0]}function v(mo,Ya,Ra,Va,Da){if((Va^Da)!==0){const V_=Hfe(f(mo,Ya),Ra);Ot(mo,fd=>{const ad=Hfe(fd,Ra)^V_;ad&32?hn(i_(fd),N.Overload_signatures_must_all_be_exported_or_non_exported):ad&128?hn(i_(fd),N.Overload_signatures_must_all_be_ambient_or_non_ambient):ad&6?hn(i_(fd)||fd,N.Overload_signatures_must_all_be_public_private_or_protected):ad&64&&hn(i_(fd),N.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function A(mo,Ya,Ra,Va){if(Ra!==Va){const Da=M9(f(mo,Ya));Ot(mo,cc=>{M9(cc)!==Da&&hn(i_(cc),N.Overload_signatures_must_all_be_optional_or_required)})}}const R=230;let B=0,Y=R,pe=!1,Te=!0,Ue=!1,St,Rt,rn;const Sn=o.declarations,xr=(o.flags&16384)!==0;function Ai(mo){if(mo.name&&ny(mo.name))return;let Ya=!1;const Ra=s_(mo.parent,Da=>{if(Ya)return Da;Ya=Da===mo});if(Ra&&Ra.pos===mo.end&&Ra.kind===mo.kind){const Da=Ra.name||Ra,cc=Ra.name;if(mo.name&&cc&&(Lu(mo.name)&&Lu(cc)&&mo.name.escapedText===cc.escapedText||Qf(mo.name)&&Qf(cc)&&Xh(Jk(mo.name),Jk(cc))||Qv(mo.name)&&Qv(cc)&&nI(mo.name)===nI(cc))){if((mo.kind===174||mo.kind===173)&&pd(mo)!==pd(Ra)){const fd=pd(mo)?N.Function_overload_must_be_static:N.Function_overload_must_not_be_static;hn(Da,fd)}return}if(y2(Ra.body)){hn(Da,N.Function_implementation_name_must_be_0,hm(mo.name));return}}const Va=mo.name||mo;xr?hn(Va,N.Constructor_implementation_is_missing):ul(mo,64)?hn(Va,N.All_declarations_of_an_abstract_method_must_be_consecutive):hn(Va,N.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let So=!1,la=!1,Zs=!1;const ba=[];if(Sn)for(const mo of Sn){const Ya=mo,Ra=Ya.flags&33554432,Va=Ya.parent&&(Ya.parent.kind===264||Ya.parent.kind===187)||Ra;if(Va&&(rn=void 0),(Ya.kind===263||Ya.kind===231)&&!Ra&&(Zs=!0),Ya.kind===262||Ya.kind===174||Ya.kind===173||Ya.kind===176){ba.push(Ya);const Da=Hfe(Ya,R);B|=Da,Y&=Da,pe=pe||M9(Ya),Te=Te&&M9(Ya);const cc=y2(Ya.body);cc&&St?xr?la=!0:So=!0:(rn==null?void 0:rn.parent)===Ya.parent&&rn.end!==Ya.pos&&Ai(rn),cc?St||(St=Ya):Ue=!0,rn=Ya,Va||(Rt=Ya)}if(Cs(mo)&&F_(mo)&&mo.jsDoc){for(const Da of mo.jsDoc)if(Da.tags)for(const cc of Da.tags)aF(cc)&&(Ue=!0)}}if(la&&Ot(ba,mo=>{hn(mo,N.Multiple_constructor_implementations_are_not_allowed)}),So&&Ot(ba,mo=>{hn(i_(mo)||mo,N.Duplicate_function_implementation)}),Zs&&!xr&&o.flags&16&&Sn){const mo=gi(Sn,Ya=>Ya.kind===263).map(Ya=>Bs(Ya,N.Consider_adding_a_declare_modifier_to_this_class));Ot(Sn,Ya=>{const Ra=Ya.kind===263?N.Class_declaration_cannot_implement_overload_list_for_0:Ya.kind===262?N.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ra&&ml(hn(i_(Ya)||Ya,Ra,Il(o)),...mo)})}if(Rt&&!Rt.body&&!ul(Rt,64)&&!Rt.questionToken&&Ai(Rt),Ue&&(Sn&&(v(Sn,St,R,B,Y),A(Sn,St,pe,Te)),St)){const mo=K6(o),Ya=gb(St);for(const Ra of mo)if(!Ggt(Ya,Ra)){const Va=Ra.declaration&&b6(Ra.declaration)?Ra.declaration.parent.tagName:Ra.declaration;ml(hn(Va,N.This_overload_signature_is_not_compatible_with_its_implementation_signature),Bs(St,N.The_implementation_signature_is_declared_here));break}}}function Jfe(o){i(()=>Evt(o))}function Evt(o){let f=o.localSymbol;if(!f&&(f=sc(o),!f.exportSymbol)||Rh(f,o.kind)!==o)return;let v=0,A=0,R=0;for(const Ue of f.declarations){const St=Te(Ue),Rt=Hfe(Ue,2080);Rt&32?Rt&2048?R|=St:v|=St:A|=St}const B=v|A,Y=v&A,pe=R&B;if(Y||pe)for(const Ue of f.declarations){const St=Te(Ue),Rt=i_(Ue);St&pe?hn(Rt,N.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,hm(Rt)):St&Y&&hn(Rt,N.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,hm(Rt))}function Te(Ue){let St=Ue;switch(St.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return dh(St)||YN(St)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Rt=St,rn=my(Rt)?Rt.expression:Rt.right;if(!Tg(rn))return 1;St=rn;case 271:case 274:case 273:let Sn=0;const xr=C0(sc(St));return Ot(xr.declarations,Ai=>{Sn|=Te(Ai)}),Sn;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return re.failBadSyntaxKind(St)}}}function WK(o,f,v,...A){const R=$fe(o,f);return R&&XB(R,f,v,...A)}function $fe(o,f,v){if(bn(o))return;const A=o;if(A.promisedTypeOfPromise)return A.promisedTypeOfPromise;if(hw(o,yte(!1)))return A.promisedTypeOfPromise=ch(o)[0];if(Gfe(tM(o),402915324))return;const R=Xe(o,"then");if(bn(R))return;const B=R?ed(R,0):Yn;if(B.length===0){f&&hn(f,N.A_promise_must_have_a_then_method);return}let Y,pe;for(const St of B){const Rt=J4(St);Rt&&Rt!==bl&&!qS(o,Rt,bC)?Y=Rt:pe=ur(pe,St)}if(!pe){re.assertIsDefined(Y),v&&(v.value=Y),f&&hn(f,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Co(o),Co(Y));return}const Te=IC(dc(Vn(pe,aGe)),2097152);if(bn(Te))return;const Ue=ed(Te,0);if(Ue.length===0){f&&hn(f,N.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return A.promisedTypeOfPromise=dc(Vn(Ue,aGe),2)}function cne(o,f,v,A,...R){return(f?XB(o,v,A,...R):gM(o,v,A,...R))||Sr}function Trt(o){if(Gfe(tM(o),402915324))return!1;const f=Xe(o,"then");return!!f&&ed(IC(f,2097152),0).length>0}function qfe(o){var f;if(o.flags&16777216){const v=eN(!1);return!!v&&o.aliasSymbol===v&&((f=o.aliasTypeArguments)==null?void 0:f.length)===1}return!1}function lne(o){return o.flags&1048576?Th(o,lne):qfe(o)?o.aliasTypeArguments[0]:o}function S1e(o){if(bn(o)||qfe(o))return!1;if(Ew(o)){const f=US(o);if(f?f.flags&3||_M(f)||Uk(f,Trt):Sy(o,8650752))return!0}return!1}function xvt(o){const f=eN(!0);if(f)return PB(f,[lne(o)])}function Avt(o){if(S1e(o)){const f=xvt(o);if(f)return f}return re.assert(qfe(o)||$fe(o)===void 0,"type provided should not be a non-generic 'promise'-like."),o}function XB(o,f,v,...A){const R=gM(o,f,v,...A);return R&&Avt(R)}function gM(o,f,v,...A){if(bn(o)||qfe(o))return o;const R=o;if(R.awaitedTypeOfType)return R.awaitedTypeOfType;if(o.flags&1048576){if(px.lastIndexOf(o.id)>=0){f&&hn(f,N.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const pe=f?Ue=>gM(Ue,f,v,...A):gM;px.push(o.id);const Te=Th(o,pe);return px.pop(),R.awaitedTypeOfType=Te}if(S1e(o))return R.awaitedTypeOfType=o;const B={value:void 0},Y=$fe(o,void 0,B);if(Y){if(o.id===Y.id||px.lastIndexOf(Y.id)>=0){f&&hn(f,N.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}px.push(o.id);const pe=gM(Y,f,v,...A);return px.pop(),pe?R.awaitedTypeOfType=pe:void 0}if(Trt(o)){if(f){re.assertIsDefined(v);let pe;B.value&&(pe=Es(pe,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Co(o),Co(B.value))),pe=Es(pe,v,...A),j_.add(wN(ts(f),f,pe))}return}return R.awaitedTypeOfType=o}function E1e(o,f,v){const A=Xl(f);if(dt>=2){if(Fn(A))return;const B=yte(!0);if(B!==Ka&&!hw(A,B)){R(N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,f,v,Co(gM(A)||bl));return}}else{if(Gwe(f),Fn(A))return;const B=cY(f);if(B===void 0){R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,Co(A));return}const Y=Qg(B,111551,!0),pe=Y?La(Y):Sr;if(Fn(pe)){B.kind===80&&B.escapedText==="Promise"&&QR(A)===yte(!1)?hn(v,N.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):R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,iE(B));return}const Te=mgt(!0);if(Te===M_){R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,iE(B));return}const Ue=N.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(!a1(pe,Te,v,Ue,()=>f===v?void 0:Es(void 0,N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Rt=B&&PS(B),rn=Ci(o.locals,Rt.escapedText,111551);if(rn){hn(rn.valueDeclaration,N.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(Rt),iE(B));return}}cne(A,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function R(B,Y,pe,Te){if(Y===pe)hn(pe,B,Te);else{const Ue=hn(pe,N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ml(Ue,Bs(Y,B,Te))}}}function CD(o){const f=y5(o);bwe(f,o);const v=np(f);if(v.flags&1)return;const A=cGe(o);if(!(A!=null&&A.resolvedReturnType))return;let R;const B=A.resolvedReturnType;switch(o.parent.kind){case 263:case 231:R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ct){R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:R=N.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return re.failBadSyntaxKind(o.parent)}a1(v,B,o.expression,R)}function Kfe(o,f,v,A,R,B=v.length,Y=0){const pe=he.createFunctionTypeNode(void 0,Yn,he.createKeywordTypeNode(133));return vw(pe,o,f,v,A,R,B,Y)}function NGe(o,f,v,A,R,B,Y){const pe=Kfe(o,f,v,A,R,B,Y);return o5(pe)}function Srt(o){return NGe(void 0,void 0,Yn,o)}function YB(o){const f=gx("value",o);return NGe(void 0,void 0,[f],bl)}function Gwe(o){Ert(o&&cY(o),!1)}function Ert(o,f){if(!o)return;const v=PS(o),A=(o.kind===80?788968:1920)|2097152,R=gg(v,v.escapedText,A,void 0,void 0,!0);if(R&&R.flags&2097152){if(Fr&&KR(R)&&!ud(C0(R))&&!Qx(R))fw(R);else if(f&&F0(Pe)&&Zp(Pe)>=5&&!KR(R)&&!gt(R.declarations,O8)){const B=hn(o,N.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),Y=lr(R.declarations||Yn,wI);Y&&ml(B,Bs(Y,N._0_was_imported_here,Kr(v)))}}}function UV(o){const f=jwe(o);f&&kT(f)&&Ert(f,!0)}function jwe(o){if(o)switch(o.kind){case 193:case 192:return wGe(o.types);case 194:return wGe([o.trueType,o.falseType]);case 196:case 202:return jwe(o.type);case 183:return o.typeName}}function wGe(o){let f;for(let v of o){for(;v.kind===196||v.kind===202;)v=v.type;if(v.kind===146||!Ke&&(v.kind===201&&v.literal.kind===106||v.kind===157))continue;const A=jwe(v);if(!A)return;if(f){if(!xn(f)||!xn(A)||f.escapedText!==A.escapedText)return}else f=A}return f}function Xfe(o){const f=Zy(o);return sp(o)?tSe(f):f}function BK(o){if(!S6(o)||!X2(o)||!o.modifiers||!GL(ct,o,o.parent,o.parent.parent))return;const f=lr(o.modifiers,Jh);if(f){if(ct?(yb(f,8),o.kind===169&&yb(f,32)):dt<99&&(yb(f,8),Ih(o)?o.name?Urt(o)&&yb(f,8388608):yb(f,8388608):v0(o)||(Lu(o.name)&&(tm(o)||GM(o)||xb(o))&&yb(f,8388608),Qf(o.name)&&yb(f,16777216))),Pe.emitDecoratorMetadata)switch(yb(f,16),o.kind){case 263:const v=sC(o);if(v)for(const Y of v.parameters)UV(Xfe(Y));break;case 177:case 178:const A=o.kind===177?178:177,R=Rh(sc(o),A);UV(ng(o)||R&&ng(R));break;case 174:for(const Y of o.parameters)UV(Xfe(Y));UV(kS(o));break;case 172:UV(Zy(o));break;case 169:UV(Xfe(o));const B=o.parent;for(const Y of B.parameters)UV(Xfe(Y));UV(kS(B));break}for(const v of o.modifiers)Jh(v)&&CD(v)}}function xrt(o){i(f);function f(){x1e(o),b0t(o),HV(o,o.name)}}function Cvt(o){o.typeExpression||hn(o.name,N.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),o.name&&pne(o.name,N.Type_alias_name_cannot_be_0),On(o.typeExpression),k1e(Hb(o))}function Dvt(o){On(o.constraint);for(const f of o.typeParameters)On(f)}function Ivt(o){On(o.typeExpression)}function kvt(o){On(o.typeExpression);const f=YM(o);if(f){const v=WU(f,e4);if(Nt(v)>1)for(let A=1;A0),v.length>1&&hn(v[1],N.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const A=Drt(o.class.expression),R=gR(f);if(R){const B=Drt(R.expression);B&&A.escapedText!==B.escapedText&&hn(A,N.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(o.tagName),Kr(A),Kr(B))}}function Crt(o){const f=k7(o);f&&IT(f)&&hn(o,N.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Drt(o){switch(o.kind){case 80:return o;case 211:return o.name;default:return}}function x1e(o){var f;BK(o),Vfe(o);const v=ob(o);if(o.name&&o.name.kind===167&&Jk(o.name),DB(o)){const B=sc(o),Y=o.localSymbol||B,pe=(f=Y.declarations)==null?void 0:f.find(Te=>Te.kind===o.kind&&!(Te.flags&524288));o===pe&&zwe(Y),B.parent&&zwe(B)}const A=o.kind===173?void 0:o.body;if(On(A),uGe(o,sK(o)),i(R),Cs(o)){const B=FM(o);B&&B.typeExpression&&!Aze(Xl(B.typeExpression),o)&&hn(B.typeExpression.type,N.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function R(){kS(o)||(ny(A)&&!sne(o)&&o8(o,Ge),v&1&&y2(A)&&np(gb(o)))}}function qk(o){i(f);function f(){const v=ts(o);let A=Lb.get(v.path);A||(A=[],Lb.set(v.path,A)),A.push(o)}}function A1e(o,f){for(const v of o)switch(v.kind){case 263:case 231:Ovt(v,f),MGe(v,f);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:Vwe(v,f);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:v.body&&Vwe(v,f),MGe(v,f);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:MGe(v,f);break;case 195:Fvt(v,f);break;default:re.assertNever(v,"Node should not have been registered for unused identifiers check")}}function RGe(o,f,v){const A=i_(o)||o,R=f6(o)?N._0_is_declared_but_never_used:N._0_is_declared_but_its_value_is_never_read;v(o,0,Bs(A,R,f))}function une(o){return xn(o)&&Kr(o).charCodeAt(0)===95}function Ovt(o,f){for(const v of o.members)switch(v.kind){case 174:case 172:case 177:case 178:if(v.kind===178&&v.symbol.flags&32768)break;const A=sc(v);!A.isReferenced&&(tT(v,2)||mp(v)&&Lu(v.name))&&!(v.flags&33554432)&&f(v,0,Bs(v.name,N._0_is_declared_but_its_value_is_never_read,ru(A)));break;case 176:for(const R of v.parameters)!R.symbol.isReferenced&&ul(R,2)&&f(R,0,Bs(R.name,N.Property_0_is_declared_but_its_value_is_never_read,Il(R.symbol)));break;case 181:case 240:case 175:break;default:re.fail("Unexpected class member")}}function Fvt(o,f){const{typeParameter:v}=o;QB(v)&&f(o,1,Bs(o,N._0_is_declared_but_its_value_is_never_read,Kr(v.name)))}function MGe(o,f){const v=sc(o).declarations;if(!v||yl(v)!==o)return;const A=Hb(o),R=new Set;for(const B of A){if(!QB(B))continue;const Y=Kr(B.name),{parent:pe}=B;if(pe.kind!==195&&pe.typeParameters.every(QB)){if(m2(R,pe)){const Te=ts(pe),Ue=CA(pe)?coe(pe):loe(Te,pe.typeParameters),Rt=pe.typeParameters.length===1?[N._0_is_declared_but_its_value_is_never_read,Y]:[N.All_type_parameters_are_unused];f(B,1,Pp(Te,Ue.pos,Ue.end-Ue.pos,...Rt))}}else f(B,1,Bs(B,N._0_is_declared_but_its_value_is_never_read,Y))}}function QB(o){return!(jp(o.symbol).isReferenced&262144)&&!une(o.name)}function ZB(o,f,v,A){const R=String(A(f)),B=o.get(R);B?B[1].push(v):o.set(R,[f,[v]])}function LGe(o){return to(vA(o),Os)}function OGe(o){return sa(o)?Ch(o.parent)?!!(o.propertyName&&une(o.name)):une(o.name):dh(o)||(Kc(o)&&Jz(o.parent.parent)||Irt(o))&&une(o.name)}function Vwe(o,f){const v=new Map,A=new Map,R=new Map;o.locals.forEach(B=>{if(!(B.flags&262144?!(B.flags&3&&!(B.isReferenced&3)):B.isReferenced||B.exportSymbol)&&B.declarations){for(const Y of B.declarations)if(!OGe(Y))if(Irt(Y))ZB(v,Bvt(Y),Y,vm);else if(sa(Y)&&Ch(Y.parent)){const pe=yl(Y.parent.elements);(Y===pe||!yl(Y.parent.elements).dotDotDotToken)&&ZB(A,Y.parent,Y,vm)}else if(Kc(Y)){const pe=XV(Y)&7,Te=i_(Y);(pe!==4&&pe!==6||!Te||!une(Te))&&ZB(R,Y.parent,Y,vm)}else{const pe=B.valueDeclaration&&LGe(B.valueDeclaration),Te=B.valueDeclaration&&i_(B.valueDeclaration);pe&&Te?!DT(pe,pe.parent)&&!iI(pe)&&!une(Te)&&(sa(Y)&&Wd(Y.parent)?ZB(A,Y.parent,Y,vm):f(pe,1,Bs(Te,N._0_is_declared_but_its_value_is_never_read,Il(B)))):RGe(Y,Il(B),f)}}}),v.forEach(([B,Y])=>{const pe=B.parent;if((B.name?1:0)+(B.namedBindings?B.namedBindings.kind===274?1:B.namedBindings.elements.length:0)===Y.length)f(pe,0,Y.length===1?Bs(pe,N._0_is_declared_but_its_value_is_never_read,Kr(Dl(Y).name)):Bs(pe,N.All_imports_in_import_declaration_are_unused));else for(const Ue of Y)RGe(Ue,Kr(Ue.name),f)}),A.forEach(([B,Y])=>{const pe=LGe(B.parent)?1:0;if(B.elements.length===Y.length)Y.length===1&&B.parent.kind===260&&B.parent.parent.kind===261?ZB(R,B.parent.parent,B.parent,vm):f(B,pe,Y.length===1?Bs(B,N._0_is_declared_but_its_value_is_never_read,C1e(Dl(Y).name)):Bs(B,N.All_destructured_elements_are_unused));else for(const Te of Y)f(Te,pe,Bs(Te,N._0_is_declared_but_its_value_is_never_read,C1e(Te.name)))}),R.forEach(([B,Y])=>{if(B.declarations.length===Y.length)f(B,0,Y.length===1?Bs(Dl(Y).name,N._0_is_declared_but_its_value_is_never_read,C1e(Dl(Y).name)):Bs(B.parent.kind===243?B.parent:B,N.All_variables_are_unused));else for(const pe of Y)f(pe,0,Bs(pe,N._0_is_declared_but_its_value_is_never_read,C1e(pe.name)))})}function Wvt(){var o;for(const f of WS)if(!((o=sc(f))!=null&&o.isReferenced)){const v=OU(f);re.assert(X8(v),"Only parameter declaration should be checked here");const A=Bs(f.name,N._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,hm(f.name),hm(f.propertyName));v.type||ml(A,Pp(ts(v),v.end,1,N.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,hm(f.propertyName))),j_.add(A)}}function C1e(o){switch(o.kind){case 80:return Kr(o);case 207:case 206:return C1e(uc(Dl(o.elements),sa).name);default:return re.assertNever(o)}}function Irt(o){return o.kind===273||o.kind===276||o.kind===274}function Bvt(o){return o.kind===273?o:o.kind===274?o.parent:o.parent.parent}function Uwe(o){if(o.kind===241&&f8(o),_9(o)){const f=Li;Ot(o.statements,On),Li=f}else Ot(o.statements,On);o.locals&&qk(o)}function Yfe(o){dt>=2||!lde(o)||o.flags&33554432||ny(o.body)||Ot(o.parameters,f=>{f.name&&!$_(f.name)&&f.name.escapedText===Tr.escapedName&&kf("noEmit",f,N.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Qfe(o,f,v){if((f==null?void 0:f.escapedText)!==v||o.kind===172||o.kind===171||o.kind===174||o.kind===173||o.kind===177||o.kind===178||o.kind===303||o.flags&33554432||(Tk(o)||Yb(o)||qE(o))&&O8(o))return!1;const A=vA(o);return!(Os(A)&&ny(A.parent.body))}function zvt(o){Ua(o,f=>P0(f)&4?(o.kind!==80?hn(i_(o),N.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):hn(o,N.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Gvt(o){Ua(o,f=>P0(f)&8?(o.kind!==80?hn(i_(o),N.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):hn(o,N.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function jvt(o,f){if(Ie>=5&&!(Ie>=100&&ts(o).impliedNodeFormat===1)||!f||!Qfe(o,f,"require")&&!Qfe(o,f,"exports")||py(o)&&YN(o)!==1)return;const v=XF(o);v.kind===312&&aE(v)&&kf("noEmit",f,N.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,hm(f),hm(f))}function Vvt(o,f){if(!f||dt>=4||!Qfe(o,f,"Promise")||py(o)&&YN(o)!==1)return;const v=XF(o);v.kind===312&&aE(v)&&v.flags&4096&&kf("noEmit",f,N.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,hm(f),hm(f))}function Uvt(o,f){dt<=8&&(Qfe(o,f,"WeakMap")||Qfe(o,f,"WeakSet"))&&Xx.push(o)}function krt(o){const f=QD(o);P0(f)&1048576&&(re.assert(mp(o)&&xn(o.name)&&typeof o.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),kf("noEmit",o,N.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,o.name.escapedText))}function FGe(o,f){f&&dt>=2&&dt<=8&&Qfe(o,f,"Reflect")&&dx.push(o)}function Hvt(o){let f=!1;if(v0(o)){for(const v of o.members)if(P0(v)&2097152){f=!0;break}}else if(Jm(o))P0(o)&2097152&&(f=!0);else{const v=QD(o);v&&P0(v)&2097152&&(f=!0)}f&&(re.assert(mp(o)&&xn(o.name),"The target of a Reflect collision check should be an identifier"),kf("noEmit",o,N.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,hm(o.name),"Reflect"))}function HV(o,f){f&&(jvt(o,f),Vvt(o,f),Uvt(o,f),FGe(o,f),Fl(o)?(pne(f,N.Class_name_cannot_be_0),o.flags&33554432||l0t(f)):xP(o)&&pne(f,N.Enum_name_cannot_be_0))}function Jvt(o){if(XV(o)&7||X8(o))return;const f=sc(o);if(f.flags&1){if(!xn(o.name))return re.fail();const v=gg(o,o.name.escapedText,3,void 0,void 0,!1);if(v&&v!==f&&v.flags&2&&nwe(v)&7){const A=oC(v.valueDeclaration,261),R=A.parent.kind===243&&A.parent.parent?A.parent.parent:void 0;if(!(R&&(R.kind===241&&F_(R.parent)||R.kind===268||R.kind===267||R.kind===312))){const Y=ru(v);hn(o,N.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,Y,Y)}}}}function Jy(o){return o===Br?Ge:o===Bh?Qm:o}function D1e(o){var f;if(BK(o),sa(o)||On(o.type),!o.name)return;if(o.name.kind===167&&(Jk(o.name),g1(o)&&o.initializer&&kv(o.initializer)),sa(o)){if(o.propertyName&&xn(o.name)&&X8(o)&&ny(zE(o).body)){WS.push(o);return}Ch(o.parent)&&o.dotDotDotToken&&dt<5&&yb(o,4),o.propertyName&&o.propertyName.kind===167&&Jk(o.propertyName);const R=o.parent.parent,B=o.dotDotDotToken?32:0,Y=Ri(R,B),pe=o.propertyName||o.name;if(Y&&!$_(pe)){const Te=SD(pe);if(yv(Te)){const Ue=vv(Te),St=Yd(Y,Ue);St&&(Pfe(St,void 0,!1),Wze(o,!!R.initializer&&R.initializer.kind===108,!1,Y,St))}}}if($_(o.name)&&(o.name.kind===207&&dt<2&&Pe.downlevelIteration&&yb(o,512),Ot(o.name.elements,On)),o.initializer&&X8(o)&&ny(zE(o).body)){hn(o,N.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($_(o.name)){if(rze(o))return;const R=g1(o)&&o.initializer&&o.parent.parent.kind!==249,B=!gt(o.name.elements,dA(cb));if(R||B){const Y=j(o);if(R){const pe=kv(o.initializer);Ke&&B?Cfe(pe,o):rN(pe,j(o),o,o.initializer)}B&&(Wd(o.name)?Kk(65,Y,Ce,o):Ke&&Cfe(Y,o))}return}const v=sc(o);if(v.flags&2097152&&(E7(o)||Rs(o))){Ga(o);return}const A=Jy(La(v));if(o===v.valueDeclaration){const R=g1(o)&&sH(o);if(R&&!(Cs(o)&&el(R)&&(R.properties.length===0||bP(o.name))&&!!((f=v.exports)!=null&&f.size))&&o.parent.parent.kind!==249){const Y=kv(R);rN(Y,A,o,R,void 0);const pe=XV(o)&7;if(pe===6){const Te=get(!0),Ue=nA(!0);if(Te!==M_&&Ue!==M_){const St=dc([Te,Ue,mn,Ce]);a1(Y,St,R,N.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(pe===4){const Te=nA(!0);if(Te!==M_){const Ue=dc([Te,mn,Ce]);a1(Y,Ue,R,N.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}v.declarations&&v.declarations.length>1&>(v.declarations,B=>B!==o&&E9(B)&&!aN(B,o))&&hn(o.name,N.All_declarations_of_0_must_have_identical_modifiers,hm(o.name))}else{const R=Jy(j(o));!Fn(A)&&!Fn(R)&&!Xh(A,R)&&!(v.flags&67108864)&&Prt(v.valueDeclaration,A,o,R),g1(o)&&o.initializer&&rN(kv(o.initializer),R,o,o.initializer,void 0),v.valueDeclaration&&!aN(o,v.valueDeclaration)&&hn(o.name,N.All_declarations_of_0_must_have_identical_modifiers,hm(o.name))}o.kind!==172&&o.kind!==171&&(Jfe(o),(o.kind===260||o.kind===208)&&Jvt(o),HV(o,o.name))}function Prt(o,f,v,A){const R=i_(v),B=v.kind===172||v.kind===171?N.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:N.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Y=hm(R),pe=hn(R,B,Y,Co(f),Co(A));o&&ml(pe,Bs(o,N._0_was_also_declared_here,Y))}function aN(o,f){if(o.kind===169&&f.kind===260||o.kind===260&&f.kind===169)return!0;if(M9(o)!==M9(f))return!1;const v=1358;return fk(o,v)===fk(f,v)}function $vt(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkVariableDeclaration",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath}),Ykt(o),D1e(o),(v=ps)==null||v.pop()}function Hwe(o){return qkt(o),D1e(o)}function Jwe(o){const f=rR(o)&7;(f===4||f===6)&&yb(o,33554432),Ot(o.declarations,On)}function qvt(o){!fL(o)&&!E0t(o.declarationList)&&Qkt(o),Jwe(o.declarationList)}function Kvt(o){f8(o),Bf(o.expression)}function Xvt(o){f8(o);const f=fne(o.expression);v5(o.expression,f,o.thenStatement),On(o.thenStatement),o.thenStatement.kind===242&&hn(o.thenStatement,N.The_body_of_an_if_statement_cannot_be_the_empty_statement),On(o.elseStatement)}function v5(o,f,v){if(!Ke)return;A(o,v);function A(B,Y){for(B=rg(B),R(B,Y);Ds(B)&&(B.operatorToken.kind===57||B.operatorToken.kind===61);)B=rg(B.left),R(B,Y)}function R(B,Y){const pe=DH(B)?rg(B.right):B;if(jE(pe))return;if(DH(pe)){A(pe,Y);return}const Te=pe===B?f:fne(pe),Ue=Ac(pe)&&yGe(pe.expression);if(!DC(Te,4194304)||Ue)return;const St=ed(Te,0),Rt=!!WK(Te);if(St.length===0&&!Rt)return;const rn=xn(pe)?pe:Ac(pe)?pe.name:void 0,Sn=rn&&ss(rn);if(!Sn&&!Rt)return;Sn&&Ds(B.parent)&&Yvt(B.parent,Sn)||Sn&&Y&&Nrt(B,Y,rn,Sn)||(Rt?fm(pe,!0,N.This_condition_will_always_return_true_since_this_0_is_always_defined,MI(Te)):hn(pe,N.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Nrt(o,f,v,A){return!!s_(f,function R(B){if(xn(B)){const Y=ss(B);if(Y&&Y===A){if(xn(o)||xn(v)&&Ds(v.parent))return!0;let pe=v.parent,Te=B.parent;for(;pe&&Te;){if(xn(pe)&&xn(Te)||pe.kind===110&&Te.kind===110)return ss(pe)===ss(Te);if(Ac(pe)&&Ac(Te)){if(ss(pe.name)!==ss(Te.name))return!1;Te=Te.expression,pe=pe.expression}else if(xd(pe)&&xd(Te))Te=Te.expression,pe=pe.expression;else return!1}}}return s_(B,R)})}function Yvt(o,f){for(;Ds(o)&&o.operatorToken.kind===56;){if(s_(o.right,function A(R){if(xn(R)){const B=ss(R);if(B&&B===f)return!0}return s_(R,A)}))return!0;o=o.parent}return!1}function Qvt(o){f8(o),On(o.statement),fne(o.expression)}function Zvt(o){f8(o),fne(o.expression),On(o.statement)}function Zfe(o,f){return o.flags&16384&&hn(f,N.An_expression_of_type_void_cannot_be_tested_for_truthiness),o}function fne(o,f){return Zfe(Bf(o,f),o)}function e0t(o){f8(o)||o.initializer&&o.initializer.kind===261&&E0t(o.initializer),o.initializer&&(o.initializer.kind===261?Jwe(o.initializer):Bf(o.initializer)),o.condition&&fne(o.condition),o.incrementor&&Bf(o.incrementor),On(o.statement),o.locals&&qk(o)}function t0t(o){FSt(o);const f=vie(o);if(o.awaitModifier?f&&Ep(f)?Uo(o.awaitModifier,N.for_await_loops_cannot_be_used_inside_a_class_static_block):(ob(f)&6)===2&&dt<99&&yb(o,16384):Pe.downlevelIteration&&dt<2&&yb(o,256),o.initializer.kind===261)Jwe(o.initializer);else{const v=o.initializer,A=I1e(o);if(v.kind===209||v.kind===210)lL(v,A||Sr);else{const R=Bf(v);VV(v,N.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),A&&rN(A,R,v,o.expression)}}On(o.statement),o.locals&&qk(o)}function n0t(o){FSt(o);const f=zze(Bf(o.expression));if(o.initializer.kind===261){const v=o.initializer.declarations[0];v&&$_(v.name)&&hn(v.name,N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Jwe(o.initializer)}else{const v=o.initializer,A=Bf(v);v.kind===209||v.kind===210?hn(v,N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Id(Agt(f),A)?VV(v,N.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):hn(v,N.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(f===Tc||!zb(f,126091264))&&hn(o.expression,N.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,Co(f)),On(o.statement),o.locals&&qk(o)}function I1e(o){const f=o.awaitModifier?15:13;return Kk(f,CK(o.expression),Ce,o.expression)}function Kk(o,f,v,A){return bn(f)?f:WGe(o,f,v,A,!0)||Ge}function WGe(o,f,v,A,R){const B=(o&2)!==0;if(f===Tc){jGe(A,f,B);return}const Y=dt>=2,pe=!Y&&Pe.downlevelIteration,Te=Pe.noUncheckedIndexedAccess&&!!(o&128);if(Y||pe||B){const xr=e_e(f,o,Y?A:void 0);if(R&&xr){const Ai=o&8?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:o&32?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:o&64?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:o&16?N.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;Ai&&a1(v,xr.nextType,A,Ai)}if(xr||Y)return Te?bK(xr&&xr.yieldType):xr&&xr.yieldType}let Ue=f,St=!1,Rt=!1;if(o&4){if(Ue.flags&1048576){const xr=f.types,Ai=gi(xr,So=>!(So.flags&402653316));Ai!==xr&&(Ue=dc(Ai,2))}else Ue.flags&402653316&&(Ue=Tc);if(Rt=Ue!==f,Rt&&(dt<1&&A&&(hn(A,N.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),St=!0),Ue.flags&131072))return Te?bK(Nn):Nn}if(!rL(Ue)){if(A&&!St){const xr=!!(o&4)&&!Rt,[Ai,So]=Sn(xr,pe);fm(A,So&&!!WK(Ue),Ai,Co(Ue))}return Rt?Te?bK(Nn):Nn:void 0}const rn=vO(Ue,Lr);if(Rt&&rn)return rn.flags&402653316&&!Pe.noUncheckedIndexedAccess?Nn:dc(Te?[rn,Nn,Ce]:[rn,Nn],2);return o&128?bK(rn):rn;function Sn(xr,Ai){var So;return Ai?xr?[N.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[N.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:$we(o,0,f,void 0)?[N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:wrt((So=f.symbol)==null?void 0:So.escapedName)?[N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:xr?[N.Type_0_is_not_an_array_type_or_a_string_type,!0]:[N.Type_0_is_not_an_array_type,!0]}}function wrt(o){switch(o){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 $we(o,f,v,A){if(bn(v))return;const R=e_e(v,o,A);return R&&R[Tae(f)]}function uL(o=Tc,f=Tc,v=Io){if(o.flags&67359327&&f.flags&180227&&v.flags&180227){const A=B2([o,f,v]);let R=Tl.get(A);return R||(R={yieldType:o,returnType:f,nextType:v},Tl.set(A,R)),R}return{yieldType:o,returnType:f,nextType:v}}function Rrt(o){let f,v,A;for(const R of o)if(!(R===void 0||R===fc)){if(R===Gd)return Gd;f=ur(f,R.yieldType),v=ur(v,R.returnType),A=ur(A,R.nextType)}return f||v||A?uL(f&&dc(f),v&&dc(v),A&&vp(A)):fc}function _ne(o,f){return o[f]}function Xk(o,f,v){return o[f]=v}function e_e(o,f,v){var A,R;if(bn(o))return Gd;if(!(o.flags&1048576)){const Ue=v?{errors:void 0}:void 0,St=Mrt(o,f,v,Ue);if(St===fc){if(v){const Rt=jGe(v,o,!!(f&2));Ue!=null&&Ue.errors&&ml(Rt,...Ue.errors)}return}else if((A=Ue==null?void 0:Ue.errors)!=null&&A.length)for(const Rt of Ue.errors)j_.add(Rt);return St}const B=f&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",Y=_ne(o,B);if(Y)return Y===fc?void 0:Y;let pe;for(const Ue of o.types){const St=v?{errors:void 0}:void 0,Rt=Mrt(Ue,f,v,St);if(Rt===fc){if(v){const rn=jGe(v,o,!!(f&2));St!=null&&St.errors&&ml(rn,...St.errors)}Xk(o,B,fc);return}else if((R=St==null?void 0:St.errors)!=null&&R.length)for(const rn of St.errors)j_.add(rn);pe=ur(pe,Rt)}const Te=pe?Rrt(pe):fc;return Xk(o,B,Te),Te===fc?void 0:Te}function qwe(o,f){if(o===fc)return fc;if(o===Gd)return Gd;const{yieldType:v,returnType:A,nextType:R}=o;return f&&eN(!0),uL(XB(v,f)||Ge,XB(A,f)||Ge,R)}function Mrt(o,f,v,A){if(bn(o))return Gd;let R=!1;if(f&2){const B=BGe(o,bm)||Ort(o,bm);if(B)if(B===fc&&v)R=!0;else return f&8?qwe(B,v):B}if(f&1){let B=BGe(o,ay)||Ort(o,ay);if(B)if(B===fc&&v)R=!0;else if(f&2){if(B!==fc)return B=qwe(B,v),R?B:Xk(o,"iterationTypesOfAsyncIterable",B)}else return B}if(f&2){const B=GGe(o,bm,v,A,R);if(B!==fc)return B}if(f&1){let B=GGe(o,ay,v,A,R);if(B!==fc)return f&2?(B=qwe(B,v),R?B:Xk(o,"iterationTypesOfAsyncIterable",B)):B}return fc}function BGe(o,f){return _ne(o,f.iterableCacheKey)}function Lrt(o,f){const v=BGe(o,f)||GGe(o,f,void 0,void 0,!1);return v===fc?ah:v}function Ort(o,f){let v;if(hw(o,v=f.getGlobalIterableType(!1))||hw(o,v=f.getGlobalIterableIteratorType(!1))){const[A]=ch(o),{returnType:R,nextType:B}=Lrt(v,f);return Xk(o,f.iterableCacheKey,uL(f.resolveIterationType(A,void 0)||A,f.resolveIterationType(R,void 0)||R,B))}if(hw(o,f.getGlobalGeneratorType(!1))){const[A,R,B]=ch(o);return Xk(o,f.iterableCacheKey,uL(f.resolveIterationType(A,void 0)||A,f.resolveIterationType(R,void 0)||R,B))}}function zGe(o){const f=jue(!1),v=f&&Xe(La(f),ey(o));return v&&yv(v)?vv(v):`__@${o}`}function GGe(o,f,v,A,R){const B=Yd(o,zGe(f.iteratorSymbolName)),Y=B&&!(B.flags&16777216)?La(B):void 0;if(bn(Y))return R?Gd:Xk(o,f.iterableCacheKey,Gd);const pe=Y?ed(Y,0):void 0;if(!gt(pe))return R?fc:Xk(o,f.iterableCacheKey,fc);const Te=vp(Vn(pe,np)),Ue=Frt(Te,f,v,A,R)??fc;return R?Ue:Xk(o,f.iterableCacheKey,Ue)}function jGe(o,f,v){const A=v?N.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,R=!!WK(f)||!v&&Bx(o.parent)&&o.parent.expression===o&&tbe(!1)!==Ka&&Id(f,tbe(!1));return fm(o,R,A,Co(f))}function VGe(o,f,v,A){return Frt(o,f,v,A,!1)}function Frt(o,f,v,A,R){if(bn(o))return Gd;let B=zK(o,f)||Wrt(o,f);return B===fc&&v&&(B=void 0,R=!0),B??(B=HGe(o,f,v,A,R)),B===fc?void 0:B}function zK(o,f){return _ne(o,f.iteratorCacheKey)}function Wrt(o,f){const v=f.getGlobalIterableIteratorType(!1);if(hw(o,v)){const[A]=ch(o),R=zK(v,f)||HGe(v,f,void 0,void 0,!1),{returnType:B,nextType:Y}=R===fc?ah:R;return Xk(o,f.iteratorCacheKey,uL(A,B,Y))}if(hw(o,f.getGlobalIteratorType(!1))||hw(o,f.getGlobalGeneratorType(!1))){const[A,R,B]=ch(o);return Xk(o,f.iteratorCacheKey,uL(A,R,B))}}function Brt(o,f){const v=Xe(o,"done")||vo;return Id(f===0?vo:Ts,v)}function r0t(o){return Brt(o,0)}function zrt(o){return Brt(o,1)}function i0t(o){if(bn(o))return Gd;const f=_ne(o,"iterationTypesOfIteratorResult");if(f)return f;if(hw(o,wB(!1))){const Y=ch(o)[0];return Xk(o,"iterationTypesOfIteratorResult",uL(Y,void 0,void 0))}if(hw(o,ygt(!1))){const Y=ch(o)[0];return Xk(o,"iterationTypesOfIteratorResult",uL(void 0,Y,void 0))}const v=lv(o,r0t),A=v!==Tc?Xe(v,"value"):void 0,R=lv(o,zrt),B=R!==Tc?Xe(R,"value"):void 0;return!A&&!B?Xk(o,"iterationTypesOfIteratorResult",fc):Xk(o,"iterationTypesOfIteratorResult",uL(A,B||bl,void 0))}function UGe(o,f,v,A,R){var B,Y,pe,Te;const Ue=Yd(o,v);if(!Ue&&v!=="next")return;const St=Ue&&!(v==="next"&&Ue.flags&16777216)?v==="next"?La(Ue):IC(La(Ue),2097152):void 0;if(bn(St))return v==="next"?Gd:ag;const Rt=St?ed(St,0):Yn;if(Rt.length===0){if(A){const mo=v==="next"?f.mustHaveANextMethodDiagnostic:f.mustBeAMethodDiagnostic;R?(R.errors??(R.errors=[]),R.errors.push(Bs(A,mo,v))):hn(A,mo,v)}return v==="next"?fc:void 0}if(St!=null&&St.symbol&&Rt.length===1){const mo=f.getGlobalGeneratorType(!1),Ya=f.getGlobalIteratorType(!1),Ra=((Y=(B=mo.symbol)==null?void 0:B.members)==null?void 0:Y.get(v))===St.symbol,Va=!Ra&&((Te=(pe=Ya.symbol)==null?void 0:pe.members)==null?void 0:Te.get(v))===St.symbol;if(Ra||Va){const Da=Ra?mo:Ya,{mapper:cc}=St;return uL(tL(Da.typeParameters[0],cc),tL(Da.typeParameters[1],cc),v==="next"?tL(Da.typeParameters[2],cc):void 0)}}let rn,Sn;for(const mo of Rt)v!=="throw"&>(mo.parameters)&&(rn=ur(rn,XI(mo,0))),Sn=ur(Sn,np(mo));let xr,Ai;if(v!=="throw"){const mo=rn?dc(rn):Io;if(v==="next")Ai=mo;else if(v==="return"){const Ya=f.resolveIterationType(mo,A)||Ge;xr=ur(xr,Ya)}}let So;const la=Sn?vp(Sn):Tc,Zs=f.resolveIterationType(la,A)||Ge,ba=i0t(Zs);return ba===fc?(A&&(R?(R.errors??(R.errors=[]),R.errors.push(Bs(A,f.mustHaveAValueDiagnostic,v))):hn(A,f.mustHaveAValueDiagnostic,v)),So=Ge,xr=ur(xr,Ge)):(So=ba.yieldType,xr=ur(xr,ba.returnType)),uL(So,dc(xr),Ai)}function HGe(o,f,v,A,R){const B=Rrt([UGe(o,f,"next",v,A),UGe(o,f,"return",v,A),UGe(o,f,"throw",v,A)]);return R?B:Xk(o,f.iteratorCacheKey,B)}function b5(o,f,v){if(bn(f))return;const A=JGe(f,v);return A&&A[Tae(o)]}function JGe(o,f){if(bn(o))return Gd;const v=f?2:1,A=f?bm:ay;return e_e(o,v,void 0)||VGe(o,A,void 0,void 0)}function Grt(o){f8(o)||$kt(o)}function dne(o,f){const v=!!(f&1),A=!!(f&2);if(v){const R=b5(1,o,A);return R?A?gM(lne(R)):R:Sr}return A?gM(o)||Sr:o}function $Ge(o,f){const v=dne(f,ob(o));return!!(v&&(Sy(v,16384)||v.flags&32769))}function o0t(o){if(f8(o))return;const f=vie(o);if(f&&Ep(f)){vT(o,N.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!f){vT(o,N.A_return_statement_can_only_be_used_within_a_function_body);return}const v=gb(f),A=np(v),R=ob(f);if(Ke||o.expression||A.flags&131072){const B=o.expression?kv(o.expression):Ce;if(f.kind===178)o.expression&&hn(o,N.Setters_cannot_return_a_value);else if(f.kind===176)o.expression&&!rN(B,A,o,o.expression)&&hn(o,N.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(sK(f)){const Y=dne(A,R)??A,pe=R&2?cne(B,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):B;Y&&rN(pe,Y,o,o.expression)}}else f.kind!==176&&Pe.noImplicitReturns&&!$Ge(f,A)&&hn(o,N.Not_all_code_paths_return_a_value)}function a0t(o){f8(o)||o.flags&65536&&vT(o,N.with_statements_are_not_allowed_in_an_async_function_block),Bf(o.expression);const f=ts(o);if(!qV(f)){const v=M0(f,o.pos).start,A=o.statement.pos;KV(f,v,A-v,N.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function T5(o){f8(o);let f,v=!1;const A=Bf(o.expression);Ot(o.caseBlock.clauses,R=>{R.kind===297&&!v&&(f===void 0?f=R:(Uo(R,N.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),v=!0)),R.kind===296&&i(B(R)),Ot(R.statements,On),Pe.noFallthroughCasesInSwitch&&R.fallthroughFlowNode&&Wte(R.fallthroughFlowNode)&&hn(R,N.Fallthrough_case_in_switch);function B(Y){return()=>{const pe=Bf(Y.expression);hGe(A,pe)||Cte(pe,A,Y.expression,void 0)}}}),o.caseBlock.locals&&qk(o.caseBlock)}function c1(o){f8(o)||Ua(o.parent,f=>F_(f)?"quit":f.kind===256&&f.label.escapedText===o.label.escapedText?(Uo(o.label,N.Duplicate_label_0,Lv(o.label)),!0):!1),On(o.statement)}function S5(o){f8(o)||xn(o.expression)&&!o.expression.escapedText&&cPt(o,N.Line_break_not_permitted_here),o.expression&&Bf(o.expression)}function s0t(o){f8(o),Uwe(o.tryBlock);const f=o.catchClause;if(f){if(f.variableDeclaration){const v=f.variableDeclaration;D1e(v);const A=Zy(v);if(A){const R=Xl(A);R&&!(R.flags&3)&&vT(A,N.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(v.initializer)vT(v.initializer,N.Catch_clause_variable_cannot_have_an_initializer);else{const R=f.block.locals;R&&gA(f.locals,B=>{const Y=R.get(B);Y!=null&&Y.valueDeclaration&&Y.flags&2&&Uo(Y.valueDeclaration,N.Cannot_redeclare_identifier_0_in_catch_clause,Ic(B))})}}Uwe(f.block)}o.finallyBlock&&Uwe(o.finallyBlock)}function Po(o,f,v){const A=JT(o);if(A.length===0)return;for(const B of W2(o))v&&B.flags&4194304||jrt(o,B,c5(B,8576,!0),AC(B));const R=f.valueDeclaration;if(R&&Fl(R)){for(const B of R.members)if(!pd(B)&&!DB(B)){const Y=sc(B);jrt(o,Y,s1(B.name.expression),AC(Y))}}if(A.length>1)for(const B of A)c0t(o,B)}function jrt(o,f,v,A){const R=f.valueDeclaration,B=i_(R);if(B&&Lu(B))return;const Y=oK(o,v),pe=ji(o)&2?Rh(o.symbol,264):void 0,Te=R&&R.kind===226||B&&B.kind===167?R:void 0,Ue=xE(f)===o.symbol?R:void 0;for(const St of Y){const Rt=St.declaration&&xE(sc(St.declaration))===o.symbol?St.declaration:void 0,rn=Ue||Rt||(pe&&!gt(l0(o),Sn=>!!$6(Sn,f.escapedName)&&!!vO(Sn,St.keyType))?pe:void 0);if(rn&&!Id(A,St.type)){const Sn=Rp(rn,N.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ru(f),Co(A),Co(St.keyType),Co(St.type));Te&&rn!==Te&&ml(Sn,Bs(Te,N._0_is_declared_here,ru(f))),j_.add(Sn)}}}function c0t(o,f){const v=f.declaration,A=oK(o,f.keyType),R=ji(o)&2?Rh(o.symbol,264):void 0,B=v&&xE(sc(v))===o.symbol?v:void 0;for(const Y of A){if(Y===f)continue;const pe=Y.declaration&&xE(sc(Y.declaration))===o.symbol?Y.declaration:void 0,Te=B||pe||(R&&!gt(l0(o),Ue=>!!Tw(Ue,f.keyType)&&!!vO(Ue,Y.keyType))?R:void 0);Te&&!Id(f.type,Y.type)&&hn(Te,N._0_index_type_1_is_not_assignable_to_2_index_type_3,Co(f.keyType),Co(f.type),Co(Y.keyType),Co(Y.type))}}function pne(o,f){switch(o.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":hn(o,f,o.escapedText)}}function l0t(o){dt>=1&&o.escapedText==="Object"&&(Ie<5||ts(o).impliedNodeFormat===1)&&hn(o,N.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Rz[Ie])}function u0t(o){const f=gi(WM(o),A2);if(!Nt(f))return;const v=Cs(o),A=new Set,R=new Set;if(Ot(o.parameters,({name:Y},pe)=>{xn(Y)&&A.add(Y.escapedText),$_(Y)&&R.add(pe)}),EPe(o)){const Y=f.length-1,pe=f[Y];v&&pe&&xn(pe.name)&&pe.typeExpression&&pe.typeExpression.type&&!A.has(pe.name.escapedText)&&!R.has(Y)&&!kE(Xl(pe.typeExpression.type))&&hn(pe.name,N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Kr(pe.name))}else Ot(f,({name:Y,isNameFirst:pe},Te)=>{R.has(Te)||xn(Y)&&A.has(Y.escapedText)||(Pu(Y)?v&&hn(Y,N.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,iE(Y),iE(Y.left)):pe||yh(v,Y,N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(Y)))})}function k1e(o){let f=!1;if(o)for(let A=0;A{A.default?(f=!0,hM(A.default,o,R)):f&&hn(A,N.Required_type_parameters_may_not_follow_optional_type_parameters);for(let B=0;BA)return!1;for(let Te=0;Teev(v)&&IT(v))&&Uo(f,N.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!o.name&&!ul(o,2048)&&vT(o,N.A_class_declaration_without_the_default_modifier_must_have_a_name),Jrt(o),Ot(o.members,On),qk(o)}function Jrt(o){wkt(o),BK(o),HV(o,o.name),k1e(Hb(o)),Jfe(o);const f=sc(o),v=sh(f),A=vx(v),R=La(f);Kwe(f),zwe(f),cvt(o),!!(o.flags&33554432)||lvt(o);const Y=YC(o);if(Y){Ot(Y.typeArguments,On),dt<2&&yb(Y.parent,1);const Ue=gR(o);Ue&&Ue!==Y&&Bf(Ue.expression);const St=l0(v);St.length&&i(()=>{const Rt=St[0],rn=cv(v),Sn=yS(rn);if(Xrt(Sn,Y),On(Y.expression),gt(Y.typeArguments)){Ot(Y.typeArguments,On);for(const Ai of _m(Sn,Y.typeArguments,Y))if(!prt(Y,Ai.typeParameters))break}const xr=vx(Rt,v.thisType);if(a1(A,xr,void 0)?a1(R,ybe(Sn),o.name||o,N.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Krt(o,A,xr,N.Class_0_incorrectly_extends_base_class_1),rn.flags&8650752&&(Mc(R)?ed(rn,1).some(So=>So.flags&4)&&!ul(o,64)&&hn(o.name||o,N.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):hn(o.name||o,N.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Sn.symbol&&Sn.symbol.flags&32)&&!(rn.flags&8650752)){const Ai=kg(Sn,Y.typeArguments,Y);Ot(Ai,So=>!Ax(So.declaration)&&!Xh(np(So),Rt))&&hn(Y.expression,N.Base_constructors_must_all_have_the_same_return_type)}Xwe(v,Rt)})}p0t(o,v,A,R);const pe=ZM(o);if(pe)for(const Ue of pe)(!Tg(Ue.expression)||fy(Ue.expression))&&hn(Ue.expression,N.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),kGe(Ue),i(Te(Ue));i(()=>{Po(v,f),Po(R,f,!0),CGe(o),C(o)});function Te(Ue){return()=>{const St=zI(Xl(Ue));if(!Fn(St))if(ZF(St)){const Rt=St.symbol&&St.symbol.flags&32?N.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:N.Class_0_incorrectly_implements_interface_1,rn=vx(St,v.thisType);a1(A,rn,void 0)||Krt(o,A,rn,Rt)}else hn(Ue,N.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function p0t(o,f,v,A){const B=YC(o)&&l0(f),Y=B!=null&&B.length?vx(Dl(B),f.thisType):void 0,pe=cv(f);for(const Te of o.members)il(Te)||(Lh(Te)&&Ot(Te.parameters,Ue=>{DT(Ue,Te)&&$rt(o,A,pe,Y,f,v,Ue,!0)}),$rt(o,A,pe,Y,f,v,Te,!1))}function $rt(o,f,v,A,R,B,Y,pe,Te=!0){const Ue=Y.name&&ss(Y.name)||ss(Y);return Ue?qrt(o,f,v,A,R,B,zie(Y),Ab(Y),pd(Y),pe,Il(Ue),Te?Y:void 0):0}function qrt(o,f,v,A,R,B,Y,pe,Te,Ue,St,Rt){const rn=Cs(o),Sn=!!(o.flags&33554432);if(A&&(Y||Pe.noImplicitOverride)){const xr=ey(St),Ai=Te?f:B,So=Te?v:A,la=Yd(Ai,xr),Zs=Yd(So,xr),ba=Co(A);if(la&&!Zs&&Y){if(Rt){const mo=Tnt(St,So);mo?hn(Rt,rn?N.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:N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,ba,ru(mo)):hn(Rt,rn?N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,ba)}return 2}else if(la&&(Zs!=null&&Zs.declarations)&&Pe.noImplicitOverride&&!Sn){const mo=gt(Zs.declarations,Ab);if(Y)return 0;if(mo){if(pe&&mo)return Rt&&hn(Rt,N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,ba),1}else{if(Rt){const Ya=Ue?rn?N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:rn?N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;hn(Rt,Ya,ba)}return 1}}}else if(Y){if(Rt){const xr=Co(R);hn(Rt,rn?N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,xr)}return 2}return 0}function Krt(o,f,v,A){let R=!1;for(const B of o.members){if(pd(B))continue;const Y=B.name&&ss(B.name)||ss(B);if(Y){const pe=Yd(f,Y.escapedName),Te=Yd(v,Y.escapedName);if(pe&&Te){const Ue=()=>Es(void 0,N.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ru(Y),Co(f),Co(v));a1(La(pe),La(Te),B.name||B,void 0,Ue)||(R=!0)}}}R||a1(f,v,o.name||o,A)}function Xrt(o,f){const v=ed(o,1);if(v.length){const A=v[0].declaration;if(A&&tT(A,2)){const R=RS(o.symbol);rm(f,R)||hn(f,N.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,GS(o.symbol))}}}function m0t(o,f,v){if(!f.name)return 0;const A=sc(o),R=sh(A),B=vx(R),Y=La(A),Te=YC(o)&&l0(R),Ue=Te!=null&&Te.length?vx(Dl(Te),R.thisType):void 0,St=cv(R),Rt=f.parent?zie(f):ul(f,16);return qrt(o,Y,St,Ue,R,B,Rt,Ab(f),pd(f),!1,Il(v))}function E5(o){return I_(o)&1?o.links.target:o}function x5(o){return gi(o.declarations,f=>f.kind===263||f.kind===264)}function Xwe(o,f){var v,A,R,B;const Y=zm(f);let pe;e:for(const Te of Y){const Ue=E5(Te);if(Ue.flags&4194304)continue;const St=$6(o,Ue.escapedName);if(!St)continue;const Rt=E5(St),rn=Vy(Ue);if(re.assert(!!Rt,"derived should point to something, even if it is the base class' declaration."),Rt===Ue){const Sn=RS(o.symbol);if(rn&64&&(!Sn||!ul(Sn,64))){for(const xr of l0(o)){if(xr===f)continue;const Ai=$6(xr,Ue.escapedName),So=Ai&&E5(Ai);if(So&&So!==Ue)continue e}pe||(pe=hn(Sn,N.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Co(o),Co(f))),Sn.kind===231?ml(pe,Bs(Te.valueDeclaration??(Te.declarations&&Dl(Te.declarations))??Sn,N.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ru(Te),Co(f))):ml(pe,Bs(Te.valueDeclaration??(Te.declarations&&Dl(Te.declarations))??Sn,N.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Co(o),ru(Te),Co(f)))}}else{const Sn=Vy(Rt);if(rn&2||Sn&2)continue;let xr;const Ai=Ue.flags&98308,So=Rt.flags&98308;if(Ai&&So){if((I_(Ue)&6?(v=Ue.declarations)!=null&&v.some(ba=>a(ba,rn)):(A=Ue.declarations)!=null&&A.every(ba=>a(ba,rn)))||I_(Ue)&262144||Rt.valueDeclaration&&Ds(Rt.valueDeclaration))continue;const la=Ai!==4&&So===4;if(la||Ai===4&&So!==4){const ba=la?N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,ba,ru(Ue),Co(f),Co(o))}else if(Ct){const ba=(R=Rt.declarations)==null?void 0:R.find(mo=>mo.kind===172&&!mo.initializer);if(ba&&!(Rt.flags&33554432)&&!(rn&64)&&!(Sn&64)&&!((B=Rt.declarations)!=null&&B.some(mo=>!!(mo.flags&33554432)))){const mo=hD(RS(o.symbol)),Ya=ba.name;if(ba.exclamationToken||!mo||!xn(Ya)||!Ke||!Z(Ya,o,mo)){const Ra=N.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;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,Ra,ru(Ue),Co(f))}}}continue}else if(AK(Ue)){if(AK(Rt)||Rt.flags&4)continue;re.assert(!!(Rt.flags&98304)),xr=N.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Ue.flags&98304?xr=N.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:xr=N.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,xr,Co(f),ru(Ue),Co(o))}}}function a(o,f){return f&64&&(!nu(o)||!o.initializer)||xp(o.parent)}function _(o,f,v){if(!Nt(f))return v;const A=new Map;Ot(v,R=>{A.set(R.escapedName,R)});for(const R of f){const B=zm(vx(R,o.thisType));for(const Y of B){const pe=A.get(Y.escapedName);pe&&Y.parent===pe.parent&&A.delete(Y.escapedName)}}return oc(A.values())}function b(o,f){const v=l0(o);if(v.length<2)return!0;const A=new Map;Ot(vWe(o).declaredProperties,B=>{A.set(B.escapedName,{prop:B,containingType:o})});let R=!0;for(const B of v){const Y=zm(vx(B,o.thisType));for(const pe of Y){const Te=A.get(pe.escapedName);if(!Te)A.set(pe.escapedName,{prop:pe,containingType:B});else if(Te.containingType!==o&&!Hgt(Te.prop,pe)){R=!1;const St=Co(Te.containingType),Rt=Co(B);let rn=Es(void 0,N.Named_property_0_of_types_1_and_2_are_not_identical,ru(pe),St,Rt);rn=Es(rn,N.Interface_0_cannot_simultaneously_extend_types_1_and_2,Co(o),St,Rt),j_.add(wN(ts(f),f,rn))}}}return R}function C(o){if(!Ke||!Yt||o.flags&33554432)return;const f=hD(o);for(const v of o.members)if(!(Cb(v)&128)&&!pd(v)&&M(v)){const A=v.name;if(xn(A)||Lu(A)||Qf(A)){const R=La(sc(v));R.flags&3||dK(R)||(!f||!Z(A,R,f))&&hn(v.name,N.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,hm(A))}}}function M(o){return o.kind===172&&!Ab(o)&&!o.exclamationToken&&!o.initializer}function z(o,f,v,A,R){for(const B of v)if(B.pos>=A&&B.pos<=R){const Y=he.createPropertyAccessExpression(he.createThis(),o);kl(Y.expression,Y),kl(Y,B),Y.flowNode=B.returnFlowNode;const pe=s8(Y,f,iL(f));if(!dK(pe))return!0}return!1}function Z(o,f,v){const A=Qf(o)?he.createElementAccessExpression(he.createThis(),o.expression):he.createPropertyAccessExpression(he.createThis(),o);kl(A.expression,A),kl(A,v),A.flowNode=v.returnFlowNode;const R=s8(A,f,iL(f));return!dK(R)}function me(o){fL(o)||Bkt(o),k1e(o.typeParameters),i(()=>{pne(o.name,N.Interface_name_cannot_be_0),Jfe(o);const f=sc(o);Kwe(f);const v=Rh(f,264);if(o===v){const A=sh(f),R=vx(A);if(b(A,o.name)){for(const B of l0(A))a1(R,vx(B,A.thisType),o.name,N.Interface_0_incorrectly_extends_interface_1);Po(A,f)}}Lwe(o)}),Ot(gH(o),f=>{(!Tg(f.expression)||fy(f.expression))&&hn(f.expression,N.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),kGe(f)}),Ot(o.members,On),i(()=>{CGe(o),qk(o)})}function Se(o){fL(o),pne(o.name,N.Type_alias_name_cannot_be_0),Jfe(o),k1e(o.typeParameters),o.type.kind===141?(!nr.has(o.name.escapedText)||Nt(o.typeParameters)!==1)&&hn(o.type,N.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(On(o.type),qk(o))}function Je(o){const f=rt(o);if(!(f.flags&1024)){f.flags|=1024;let v=0;for(const A of o.members){const R=vt(A,v);rt(A).enumMemberValue=R,v=typeof R=="number"?R+1:void 0}}}function vt(o,f){if(Yz(o.name))hn(o.name,N.Computed_property_names_are_not_allowed_in_enums);else{const v=z8(o.name);FT(v)&&!d3(v)&&hn(o.name,N.An_enum_member_cannot_have_a_numeric_name)}if(o.initializer)return Pt(o);if(!(o.parent.flags&33554432&&!G8(o.parent))){if(f!==void 0)return f;hn(o.name,N.Enum_member_must_have_initializer)}}function Pt(o){const f=G8(o.parent),v=o.initializer,A=dn(v,o);return A!==void 0?f&&typeof A=="number"&&!isFinite(A)&&hn(v,isNaN(A)?N.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:N.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):f?hn(v,N.const_enum_member_initializers_must_be_constant_expressions):o.parent.flags&33554432?hn(v,N.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):a1(Bf(v),Lr,v,N.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),A}function dn(o,f){switch(o.kind){case 224:const v=dn(o.operand,f);if(typeof v=="number")switch(o.operator){case 40:return v;case 41:return-v;case 55:return~v}break;case 226:const A=dn(o.left,f),R=dn(o.right,f);if(typeof A=="number"&&typeof R=="number")switch(o.operatorToken.kind){case 52:return A|R;case 51:return A&R;case 49:return A>>R;case 50:return A>>>R;case 48:return A<Wo(o))}function Wo(o){fL(o),HV(o,o.name),Jfe(o),o.members.forEach(aa),Je(o);const f=sc(o),v=Rh(f,o.kind);if(o===v){if(f.declarations&&f.declarations.length>1){const R=G8(o);Ot(f.declarations,B=>{xP(B)&&G8(B)!==R&&hn(i_(B),N.Enum_declarations_must_all_be_const_or_non_const)})}let A=!1;Ot(f.declarations,R=>{if(R.kind!==266)return!1;const B=R;if(!B.members.length)return!1;const Y=B.members[0];Y.initializer||(A?hn(Y.name,N.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):A=!0)})}}function aa(o){Lu(o.name)&&hn(o,N.An_enum_member_cannot_be_named_with_a_private_identifier),o.initializer&&Bf(o.initializer)}function $s(o){const f=o.declarations;if(f){for(const v of f)if((v.kind===263||v.kind===262&&y2(v.body))&&!(v.flags&33554432))return v}}function Ba(o,f){const v=QD(o),A=QD(f);return Dn(v)?Dn(A):Dn(A)?!1:v===A}function lo(o){o.body&&(On(o.body),JC(o)||qk(o)),i(f);function f(){var v,A;const R=JC(o),B=o.flags&33554432;R&&!B&&hn(o.name,N.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const Y=dh(o),pe=Y?N.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:N.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(kC(o,pe))return;fL(o)||!B&&o.name.kind===11&&Uo(o.name,N.Only_ambient_modules_can_use_quoted_names),xn(o.name)&&HV(o,o.name),Jfe(o);const Te=sc(o);if(Te.flags&512&&!B&&sme(o,gk(Pe))){if(F0(Pe)&&!ts(o).externalModuleIndicator&&hn(o.name,N.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,Pn),((v=Te.declarations)==null?void 0:v.length)>1){const Ue=$s(Te);Ue&&(ts(o)!==ts(Ue)?hn(o.name,N.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):o.posSt.kind===95);Ue&&hn(Ue,N.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(Y)if(Ov(o)){if((R||sc(o).flags&33554432)&&o.body)for(const St of o.body.statements)Xa(St,R)}else Dn(o.parent)?R?hn(o.name,N.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Kv(K2(o.name))&&hn(o.name,N.Ambient_module_declaration_cannot_specify_relative_module_name):R?hn(o.name,N.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):hn(o.name,N.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Xa(o,f){switch(o.kind){case 243:for(const A of o.declarationList.declarations)Xa(A,f);break;case 277:case 278:vT(o,N.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:vT(o,N.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const v=o.name;if($_(v)){for(const A of v.elements)Xa(A,f);break}case 263:case 266:case 262:case 264:case 267:case 265:if(f)return;break}}function Go(o){switch(o.kind){case 80:return o;case 166:do o=o.left;while(o.kind!==80);return o;case 211:do{if(jE(o.expression)&&!Lu(o.name))return o.name;o=o.expression}while(o.kind!==80);return o}}function Pa(o){const f=w9(o);if(!f||ny(f))return!1;if(!Sd(f))return hn(f,N.String_literal_expected),!1;const v=o.parent.kind===268&&dh(o.parent.parent);if(o.parent.kind!==312&&!v)return hn(f,o.kind===278?N.Export_declarations_are_not_permitted_in_a_namespace:N.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(v&&Kv(f.text)&&!KF(o))return hn(o,N.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Yb(o)&&o.attributes){const A=o.attributes.token===118?N.Import_attribute_values_must_be_string_literal_expressions:N.Import_assertion_values_must_be_string_literal_expressions;let R=!1;for(const B of o.attributes.elements)Sd(B.value)||(R=!0,hn(B.value,A));return!R}return!0}function Ga(o){var f,v,A,R;let B=sc(o);const Y=C0(B);if(Y!==Pr){if(B=jp(B.exportSymbol||B),Cs(o)&&!(Y.flags&111551)&&!O8(o)){const Ue=fP(o)?o.propertyName||o.name:mp(o)?o.name:o;if(re.assert(o.kind!==280),o.kind===281){const St=hn(Ue,N.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Rt=(v=(f=ts(o).symbol)==null?void 0:f.exports)==null?void 0:v.get((o.propertyName||o.name).escapedText);if(Rt===Y){const rn=(A=Rt.declarations)==null?void 0:A.find($z);rn&&ml(St,Bs(rn,N._0_is_automatically_exported_here,Ic(Rt.escapedName)))}}else{re.assert(o.kind!==260);const St=Ua(o,bb(n0,Yb)),Rt=(St&&((R=C7(St))==null?void 0:R.text))??"...",rn=Ic(xn(Ue)?Ue.escapedText:B.escapedName);hn(Ue,N._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,rn,`import("${Rt}").${rn}`)}return}const pe=pT(Y),Te=(B.flags&1160127?111551:0)|(B.flags&788968?788968:0)|(B.flags&1920?1920:0);if(pe&Te){const Ue=o.kind===281?N.Export_declaration_conflicts_with_exported_declaration_of_0:N.Import_declaration_conflicts_with_local_declaration_of_0;hn(o,Ue,ru(B))}if(F0(Pe)&&!O8(o)&&!(o.flags&33554432)){const Ue=Qx(B),St=!(pe&111551);if(St||Ue)switch(o.kind){case 273:case 276:case 271:{if(Pe.preserveValueImports||Pe.verbatimModuleSyntax){re.assertIsDefined(o.name,"An ImportClause with a symbol should have a name");const Rt=Pe.verbatimModuleSyntax&&$M(o)?N.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:St?Pe.verbatimModuleSyntax?N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Pe.verbatimModuleSyntax?N._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,rn=Kr(o.kind===276&&o.propertyName||o.name);r2(hn(o,Rt,rn),St?void 0:Ue,rn)}St&&o.kind===271&&tT(o,32)&&hn(o,N.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Pn);break}case 281:if(Pe.verbatimModuleSyntax||ts(Ue)!==ts(o)){const Rt=Kr(o.propertyName||o.name),rn=St?hn(o,N.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Pn):hn(o,N._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Rt,Pn);r2(rn,St?void 0:Ue,Rt);break}}Pe.verbatimModuleSyntax&&o.kind!==271&&!Cs(o)&&(Ie===1||ts(o).impliedNodeFormat===1)&&hn(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(qE(o)){const Ue=hs(B,o);BS(Ue)&&Ue.declarations&&pS(o,Ue.declarations,Ue.escapedName)}}}function hs(o,f){if(!(o.flags&2097152)||BS(o)||!UT(o))return o;const v=C0(o);if(v===Pr)return v;for(;o.flags&2097152;){const A=kze(o);if(A){if(A===v)break;if(A.declarations&&Nt(A.declarations))if(BS(A)){pS(f,A.declarations,A.escapedName);break}else{if(o===v)break;o=A}}else break}return v}function Ld(o){HV(o,o.name),Ga(o),o.kind===276&&Kr(o.propertyName||o.name)==="default"&&b1(Pe)&&Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&yb(o,131072)}function nl(o){var f;const v=o.attributes;if(v){const A=qQ(o),R=W3(v,A?Uo:void 0),B=o.attributes.token===118;if(A&&R)return;if((Ie===199&&o.moduleSpecifier&&gf(o.moduleSpecifier))!==99&&Ie!==99){const pe=B?Ie===199?N.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:Ie===199?N.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return Uo(v,pe)}if(n0(o)?(f=o.importClause)!=null&&f.isTypeOnly:o.isTypeOnly)return Uo(v,B?N.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(R)return Uo(v,N.resolution_mode_can_only_be_set_for_type_only_imports)}}function id(o){if(!kC(o,Cs(o)?N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!fL(o)&&Bie(o)&&vT(o,N.An_import_declaration_cannot_have_modifiers),Pa(o)){const f=o.importClause;f&&!uPt(f)&&(f.name&&Ld(f),f.namedBindings&&(f.namedBindings.kind===274?(Ld(f.namedBindings),Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&b1(Pe)&&yb(o,65536)):gS(o,o.moduleSpecifier)&&Ot(f.namedBindings.elements,Ld)))}nl(o)}}function $y(o){if(!kC(o,Cs(o)?N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(fL(o),$M(o)||Pa(o)))if(Ld(o),ul(o,32)&&V6(o),o.moduleReference.kind!==283){const f=C0(sc(o));if(f!==Pr){const v=pT(f);if(v&111551){const A=PS(o.moduleReference);Qg(A,112575).flags&1920||hn(A,N.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,hm(A))}v&788968&&pne(o.name,N.Import_name_cannot_be_0)}o.isTypeOnly&&Uo(o,N.An_import_alias_cannot_use_import_type)}else Ie>=5&&ts(o).impliedNodeFormat===void 0&&!o.isTypeOnly&&!(o.flags&33554432)&&Uo(o,N.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 l2(o){if(!kC(o,Cs(o)?N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!fL(o)&&gSe(o)&&vT(o,N.An_export_declaration_cannot_have_modifiers),o.moduleSpecifier&&o.exportClause&&j0(o.exportClause)&&Nt(o.exportClause.elements)&&dt===0&&yb(o,4194304),Cx(o),!o.moduleSpecifier||Pa(o))if(o.exportClause&&!G0(o.exportClause)){Ot(o.exportClause.elements,dm);const f=o.parent.kind===268&&dh(o.parent.parent),v=!f&&o.parent.kind===268&&!o.moduleSpecifier&&o.flags&33554432;o.parent.kind!==312&&!f&&!v&&hn(o,N.Export_declarations_are_not_permitted_in_a_namespace)}else{const f=gS(o,o.moduleSpecifier);f&&lO(f)?hn(o.moduleSpecifier,N.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ru(f)):o.exportClause&&Ga(o.exportClause),Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&(o.exportClause?b1(Pe)&&yb(o,65536):yb(o,32768))}nl(o)}}function Cx(o){var f;return o.isTypeOnly&&((f=o.exportClause)==null?void 0:f.kind)===279?USt(o.exportClause):!1}function kC(o,f){const v=o.parent.kind===312||o.parent.kind===268||o.parent.kind===267;return v||vT(o,f),!v}function Gi(o){return sG(o,f=>!!sc(f).isReferenced)}function Ps(o){return sG(o,f=>!!Ae(sc(f)).constEnumReferenced)}function wf(o){return n0(o)&&o.importClause&&!o.importClause.isTypeOnly&&Gi(o.importClause)&&!$f(o.importClause,!0)&&!Ps(o.importClause)}function od(o){return Yb(o)&&KE(o.moduleReference)&&!o.isTypeOnly&&sc(o).isReferenced&&!$f(o,!1)&&!Ae(sc(o)).constEnumReferenced}function Jf(o){if(Fr)for(const f of o.statements)(wf(f)||od(f))&&hn(f,N.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function dm(o){if(Ga(o),gv(Pe)&&Qq(o.propertyName||o.name,!0),o.parent.parent.moduleSpecifier)b1(Pe)&&Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&Kr(o.propertyName||o.name)==="default"&&yb(o,131072);else{const f=o.propertyName||o.name,v=gg(f,f.escapedText,2998271,void 0,void 0,!0);if(v&&(v===En||v===fr||v.declarations&&Dn(XF(v.declarations[0]))))hn(f,N.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(f));else{!o.isTypeOnly&&!o.parent.parent.isTypeOnly&&V6(o);const A=v&&(v.flags&2097152?C0(v):v);(!A||pT(A)&111551)&&kv(o.propertyName||o.name)}}}function Zg(o){const f=o.isExportEquals?N.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:N.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(kC(o,f))return;const v=o.parent.kind===312?o.parent:o.parent.parent;if(v.kind===267&&!dh(v)){o.isExportEquals?hn(o,N.An_export_assignment_cannot_be_used_in_a_namespace):hn(o,N.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!fL(o)&&Bie(o)&&vT(o,N.An_export_assignment_cannot_have_modifiers);const A=Zy(o);A&&a1(kv(o.expression),Xl(A),o.expression);const R=!o.isExportEquals&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&(Ie===1||ts(o).impliedNodeFormat===1);if(o.expression.kind===80){const B=o.expression,Y=eA(Qg(B,67108863,!0,!0,o));Y?(WV(Y,B),pT(Y)&111551?(kv(B),!R&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&Qx(Y,111551)&&hn(B,o.isExportEquals?N.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Kr(B))):!R&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&hn(B,o.isExportEquals?N.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Kr(B))):kv(B),gv(Pe)&&Qq(B,!0)}else kv(o.expression);R&&hn(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),Lp(v),o.flags&33554432&&!Tg(o.expression)&&Uo(o.expression,N.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),o.isExportEquals&&(Ie>=5&&(o.flags&33554432&&ts(o).impliedNodeFormat===99||!(o.flags&33554432)&&ts(o).impliedNodeFormat!==1)?Uo(o,N.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Ie===4&&!(o.flags&33554432)&&Uo(o,N.Export_assignment_is_not_supported_when_module_flag_is_system))}function Pv(o){return Jb(o.exports,(f,v)=>v!=="export=")}function Lp(o){const f=sc(o),v=Ae(f);if(!v.exportsChecked){const A=f.exports.get("export=");if(A&&Pv(f)){const B=UT(A)||A.valueDeclaration;B&&!KF(B)&&!Cs(B)&&hn(B,N.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const R=dw(f);R&&R.forEach(({declarations:B,flags:Y},pe)=>{if(pe==="__export"||Y&1920)return;const Te=dp(B,mU(CHe,dA(xp)));if(!(Y&524288&&Te<=2)&&Te>1&&!$T(B))for(const Ue of B)AHe(Ue)&&j_.add(Bs(Ue,N.Cannot_redeclare_exported_variable_0,Ic(pe)))}),v.exportsChecked=!0}}function $T(o){return o&&o.length>1&&o.every(f=>Cs(f)&&Kf(f)&&(P9(f.expression)||jE(f.expression)))}function On(o){if(o){const f=ae;ae=o,J=0,Xt(o),ae=f}}function Xt(o){T2(o)&&Ot(o.jsDoc,({comment:v,tags:A})=>{bs(v),Ot(A,R=>{bs(R.comment),Cs(o)&&On(R)})});const f=o.kind;if(c)switch(f){case 267:case 263:case 264:case 262:c.throwIfCancellationRequested()}switch(f>=243&&f<=259&&J8(o)&&o.flowNode&&!Wte(o.flowNode)&&yh(Pe.allowUnreachableCode===!1,o,N.Unreachable_code_detected),f){case 168:return crt(o);case 169:return xGe(o);case 172:return Owe(o);case 171:return Fwe(o);case 185:case 184:case 179:case 180:case 181:return Vfe(o);case 174:case 173:return DGe(o);case 175:return frt(o);case 176:return uvt(o);case 177:case 178:return drt(o);case 183:return kGe(o);case 182:return lrt(o);case 186:return grt(o);case 187:return Bwe(o);case 188:return bp(o);case 189:return mvt(o);case 192:case 193:return hrt(o);case 196:case 190:case 191:return On(o.type);case 197:return yvt(o);case 198:return vvt(o);case 194:return bvt(o);case 195:return yrt(o);case 203:return vrt(o);case 205:return Tvt(o);case 202:return brt(o);case 335:return Lvt(o);case 336:return Mvt(o);case 353:case 345:case 347:return Cvt(o);case 352:return Dvt(o);case 351:return Ivt(o);case 331:case 332:case 333:return Pvt(o);case 348:return Nvt(o);case 355:return wvt(o);case 324:Rvt(o);case 322:case 321:case 319:case 320:case 329:as(o),s_(o,On);return;case 325:Ec(o);return;case 316:return On(o.type);case 340:case 342:case 341:return Crt(o);case 357:return kvt(o);case 350:return Art(o);case 199:return gvt(o);case 200:return hvt(o);case 262:return xrt(o);case 241:case 268:return Uwe(o);case 243:return qvt(o);case 244:return Kvt(o);case 245:return Xvt(o);case 246:return Qvt(o);case 247:return Zvt(o);case 248:return e0t(o);case 249:return n0t(o);case 250:return t0t(o);case 251:case 252:return Grt(o);case 253:return o0t(o);case 254:return a0t(o);case 255:return T5(o);case 256:return c1(o);case 257:return S5(o);case 258:return s0t(o);case 260:return $vt(o);case 208:return Hwe(o);case 263:return d0t(o);case 264:return me(o);case 265:return Se(o);case 266:return bi(o);case 267:return lo(o);case 272:return id(o);case 271:return $y(o);case 278:return l2(o);case 277:return Zg(o);case 242:case 259:f8(o);return;case 282:return T1e(o)}}function bs(o){ls(o)&&Ot(o,f=>{F8(f)&&On(f)})}function as(o){if(!Cs(o))if(Gx(o)||WJ(o)){const f=Cf(Gx(o)?54:58),v=o.postfix?N._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,A=o.type,R=Xl(A);Uo(o,v,f,Co(WJ(o)&&!(R===Tc||R===bl)?dc(ur([R,Ce],o.postfix?void 0:mn)):R))}else Uo(o,N.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Ec(o){as(o),On(o.type);const{parent:f}=o;if(Os(f)&&Ak(f.parent)){yl(f.parent.parameters)!==f&&hn(o,N.A_rest_parameter_must_be_last_in_a_parameter_list);return}SW(f)||hn(o,N.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const v=o.parent.parent;if(!A2(v)){hn(o,N.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const A=$8(v);if(!A)return;const R=LN(v);(!R||yl(R.parameters).symbol!==A)&&hn(o,N.A_rest_parameter_must_be_last_in_a_parameter_list)}function Bc(o){const f=Xl(o.type),{parent:v}=o,A=o.parent.parent;if(SW(o.parent)&&A2(A)){const R=LN(A),B=UY(A.parent.parent);if(R||B){const Y=Yf(B?A.parent.parent.typeExpression.parameters:R.parameters),pe=$8(A);if(!Y||pe&&Y.symbol===pe&&sp(Y))return hT(f)}}return Os(v)&&Ak(v.parent)?hT(f):mb(f)}function Rf(o){const f=ts(o),v=rt(f);v.flags&1?re.assert(!v.deferredNodes,"A type-checked file should have no deferred nodes."):(v.deferredNodes||(v.deferredNodes=new Set),v.deferredNodes.add(o))}function Mu(o){const f=rt(o);f.deferredNodes&&f.deferredNodes.forEach(xc),f.deferredNodes=void 0}function xc(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkDeferredNode",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});const A=ae;switch(ae=o,J=0,o.kind){case 213:case 214:case 215:case 170:case 286:RO(o);break;case 218:case 219:case 174:case 173:fGe(o);break;case 177:case 178:drt(o);break;case 231:Hrt(o);break;case 168:ane(o);break;case 285:Uht(o);break;case 284:Jht(o);break;case 216:case 234:case 217:Cyt(o);break;case 222:Bf(o.expression);break;case 226:jie(o)&&RO(o);break}ae=A,(v=ps)==null||v.pop()}function Dr(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkSourceFile",{path:o.path},!0),cf("beforeCheck"),ao(o),cf("afterCheck"),Tb("Check","beforeCheck","afterCheck"),(v=ps)==null||v.pop()}function Pi(o,f){if(f)return!1;switch(o){case 0:return!!Pe.noUnusedLocals;case 1:return!!Pe.noUnusedParameters;default:return re.assertNever(o)}}function No(o){return Lb.get(o.path)||Yn}function ao(o){const f=rt(o);if(!(f.flags&1)){if(c3(o,Pe,e))return;aPt(o),g_(vC),g_(zP),g_(Xx),g_(dx),g_(WS),Ot(o.statements,On),On(o.endOfFileToken),Mu(o),aE(o)&&qk(o),i(()=>{!o.isDeclarationFile&&(Pe.noUnusedLocals||Pe.noUnusedParameters)&&A1e(No(o),(v,A,R)=>{!qz(v)&&Pi(A,!!(v.flags&33554432))&&j_.add(R)}),o.isDeclarationFile||Wvt()}),Pe.importsNotUsedAsValues===2&&!o.isDeclarationFile&&Bv(o)&&Jf(o),aE(o)&&Lp(o),vC.length&&(Ot(vC,zvt),g_(vC)),zP.length&&(Ot(zP,Gvt),g_(zP)),Xx.length&&(Ot(Xx,krt),g_(Xx)),dx.length&&(Ot(dx,Hvt),g_(dx)),f.flags|=1}}function Bo(o,f){try{return c=f,zl(o)}finally{c=void 0}}function ja(){for(const o of n)o();n=[]}function rf(o){ja();const f=i;i=v=>v(),Dr(o),i=f}function zl(o){if(o){ja();const f=j_.getGlobalDiagnostics(),v=f.length;rf(o);const A=j_.getDiagnostics(o.fileName),R=j_.getGlobalDiagnostics();if(R!==f){const B=b8(f,R,o3);return Hi(B,A)}else if(v===0&&R.length>0)return Hi(R,A);return A}return Ot(e.getSourceFiles(),rf),j_.getDiagnostics()}function td(){return ja(),j_.getGlobalDiagnostics()}function Jo(o,f){if(o.flags&67108864)return[];const v=zd();let A=!1;return R(),v.delete("this"),q0e(v);function R(){for(;o;){switch(XD(o)&&o.locals&&!Dn(o)&&Y(o.locals,f),o.kind){case 312:if(!Bv(o))break;case 267:pe(sc(o).exports,f&2623475);break;case 266:Y(sc(o).exports,f&8);break;case 231:o.name&&B(o.symbol,f);case 263:case 264:A||Y(V4(sc(o)),f&788968);break;case 218:o.name&&B(o.symbol,f);break}bde(o)&&B(Tr,f),A=pd(o),o=o.parent}Y(jt,f)}function B(Te,Ue){if(r3(Te)&Ue){const St=Te.escapedName;v.has(St)||v.set(St,Te)}}function Y(Te,Ue){Ue&&Te.forEach(St=>{B(St,Ue)})}function pe(Te,Ue){Ue&&Te.forEach(St=>{!Rh(St,281)&&!Rh(St,280)&&St.escapedName!=="default"&&B(St,Ue)})}}function rc(o){return o.kind===80&&f6(o.parent)&&i_(o.parent)===o}function Ll(o){for(;o.parent.kind===166;)o=o.parent;return o.parent.kind===183}function Sf(o){for(;o.parent.kind===211;)o=o.parent;return o.parent.kind===233}function Od(o,f){let v,A=$b(o);for(;A&&!(v=f(A));)A=$b(A);return v}function hb(o){return!!Ua(o,f=>Lh(f)&&y2(f.body)||nu(f)?!0:Fl(f)||Vd(f)?"quit":!1)}function rm(o,f){return!!Od(o,v=>v===f)}function I0(o){for(;o.parent.kind===166;)o=o.parent;if(o.parent.kind===271)return o.parent.moduleReference===o?o.parent:void 0;if(o.parent.kind===277)return o.parent.expression===o?o.parent:void 0}function yg(o){return I0(o)!==void 0}function or(o){switch(jy(o.parent.parent)){case 1:case 3:return hx(o.parent);case 4:case 2:case 5:return sc(o.parent.parent)}}function Hr(o){let f=o.parent;for(;Pu(f);)o=f,f=f.parent;if(f&&f.kind===205&&f.qualifier===o)return f}function fo(o){if(o.expression.kind===110){const f=RT(o,!1,!1);if(F_(f)){const v=Ztt(f);if(v){const A=c8(v,void 0),R=mze(v,A);return R&&!bn(R)}}}}function Oa(o){if(ON(o))return hx(o.parent);if(Cs(o)&&o.parent.kind===211&&o.parent===o.parent.parent.left&&!Lu(o)&&!ZL(o)&&!fo(o.parent)){const f=or(o);if(f)return f}if(o.parent.kind===277&&Tg(o)){const f=Qg(o,2998271,!0);if(f&&f!==Pr)return f}else if(kT(o)&&yg(o)){const f=oC(o,271);return re.assert(f!==void 0),U6(o,!0)}if(kT(o)){const f=Hr(o);if(f){Xl(f);const v=rt(o).resolvedSymbol;return v===Pr?void 0:v}}for(;kH(o);)o=o.parent;if(Sf(o)){let f=0;o.parent.kind===233?(f=BE(o)?788968:111551,Gie(o.parent)&&(f|=111551)):f=1920,f|=2097152;const v=Tg(o)?Qg(o,f,!0):void 0;if(v)return v}if(o.parent.kind===348)return $8(o.parent);if(o.parent.kind===168&&o.parent.parent.kind===352){re.assert(!Cs(o));const f=sSe(o.parent);return f&&f.symbol}if(ZD(o)){if(ny(o))return;const f=Ua(o,bb(F8,FJ,ZL)),v=f?901119:111551;if(o.kind===80){if(T7(o)&&zV(o)){const R=ZNe(o.parent);return R===Pr?void 0:R}const A=Qg(o,v,!0,!0,LN(o));if(!A&&f){const R=Ua(o,bb(Fl,xp));if(R)return Ko(o,!0,sc(R))}if(A&&f){const R=k7(o);if(R&&pI(R)&&R===A.valueDeclaration)return Qg(o,v,!0,!0,ts(R))||A}return A}else{if(Lu(o))return iwe(o);if(o.kind===211||o.kind===166){const A=rt(o);return A.resolvedSymbol?A.resolvedSymbol:(o.kind===211?(Dfe(o,0),A.resolvedSymbol||(A.resolvedSymbol=Qs(kv(o.expression),SD(o.name)))):dnt(o,0),!A.resolvedSymbol&&f&&Pu(o)?Ko(o):A.resolvedSymbol)}else if(ZL(o))return Ko(o)}}else if(Ll(o)){const f=o.parent.kind===183?788968:1920,v=Qg(o,f,!1,!0);return v&&v!==Pr?v:DPe(o)}if(o.parent.kind===182)return Qg(o,1)}function Qs(o,f){const v=oK(o,f);if(v.length&&o.members){const A=bO(Gh(o).members);if(v===JT(o))return A;if(A){const R=Ae(A),B=Qo(v,pe=>pe.declaration),Y=Vn(B,vm).join(",");if(R.filteredIndexSymbolCache||(R.filteredIndexSymbolCache=new Map),R.filteredIndexSymbolCache.has(Y))return R.filteredIndexSymbolCache.get(Y);{const pe=tp(131072,"__index");return pe.declarations=Qo(v,Te=>Te.declaration),pe.parent=o.aliasSymbol?o.aliasSymbol:o.symbol?o.symbol:ss(pe.declarations[0].parent),R.filteredIndexSymbolCache.set(Y,pe),pe}}}}function Ko(o,f,v){if(kT(o)){let Y=Qg(o,901119,f,!0,LN(o));if(!Y&&xn(o)&&v&&(Y=jp(Ci(L2(v),o.escapedText,901119))),Y)return Y}const A=xn(o)?v:Ko(o.left,f,v),R=xn(o)?o.escapedText:o.right.escapedText;if(A){const B=A.flags&111551&&Yd(La(A),"prototype"),Y=B?La(B):sh(A);return Yd(Y,R)}}function ss(o,f){if(Nu(o))return Bv(o)?jp(o.symbol):void 0;const{parent:v}=o,A=v.parent;if(!(o.flags&67108864)){if(cme(o)){const R=sc(v);return fP(o.parent)&&o.parent.propertyName===o?kze(R):R}else if(_g(o))return sc(v.parent);if(o.kind===80){if(yg(o))return Oa(o);if(v.kind===208&&A.kind===206&&o===v.propertyName){const R=nd(A),B=Yd(R,o.escapedText);if(B)return B}else if(x3(v)&&v.name===o)return v.keywordToken===105&&Kr(o)==="target"?rGe(v).symbol:v.keywordToken===102&&Kr(o)==="meta"?det().members.get("meta"):void 0}switch(o.kind){case 80:case 81:case 211:case 166:if(!V9(o))return Oa(o);case 110:const R=RT(o,!1,!1);if(F_(R)){const pe=gb(R);if(pe.thisParameter)return pe.thisParameter}if(C9(o))return Bf(o).symbol;case 197:return Xue(o).symbol;case 108:return Bf(o).symbol;case 137:const B=o.parent;return B&&B.kind===176?B.parent.symbol:void 0;case 11:case 15:if(Mx(o.parent.parent)&&oG(o.parent.parent)===o||(o.parent.kind===272||o.parent.kind===278)&&o.parent.moduleSpecifier===o||Cs(o)&&Jd(Pe)!==100&&y1(o.parent,!1)||Py(o.parent)||S3(o.parent)&&MN(o.parent.parent)&&o.parent.parent.argument===o.parent)return gS(o,o,f);if(xd(v)&&A7(v)&&v.arguments[1]===o)return sc(v);case 9:const Y=Hm(v)?v.argumentExpression===o?s1(v.expression):void 0:S3(v)&&Wx(A)?Xl(A.objectType):void 0;return Y&&Yd(Y,ey(o.text));case 90:case 100:case 39:case 86:return hx(o.parent);case 205:return MN(o)?ss(o.argument.literal,f):void 0;case 95:return my(o.parent)?re.checkDefined(o.parent.symbol):void 0;case 102:case 105:return x3(o.parent)?jnt(o.parent).symbol:void 0;case 104:if(Ds(o.parent)){const pe=s1(o.parent.right),Te=mGe(pe);return(Te==null?void 0:Te.symbol)??pe.symbol}return;case 236:return Bf(o).symbol;case 295:if(T7(o)&&zV(o)){const pe=ZNe(o.parent);return pe===Pr?void 0:pe}default:return}}}function ll(o){if(xn(o)&&Ac(o.parent)&&o.parent.name===o){const f=SD(o),v=s1(o.parent.expression),A=v.flags&1048576?v.types:[v];return ea(A,R=>gi(JT(R),B=>AV(f,B.keyType)))}}function of(o){if(o&&o.kind===304)return Qg(o.name,2208703)}function C_(o){return gy(o)?o.parent.parent.moduleSpecifier?JP(o.parent.parent,o):Qg(o.propertyName||o.name,2998271):Qg(o,2998271)}function nd(o){if(Nu(o)&&!Bv(o)||o.flags&67108864)return Sr;const f=zN(o),v=f&&F1(sc(f.class));if(BE(o)){const A=Xl(o);return v?vx(A,v.thisType):A}if(ZD(o))return O_(o);if(v&&!f.isImplements){const A=pp(l0(v));return A?vx(A,v.thisType):Sr}if(f6(o)){const A=sc(o);return sh(A)}if(rc(o)){const A=ss(o);return A?sh(A):Sr}if(sa(o))return KP(o,!0,0)||Sr;if(PT(o)){const A=sc(o);return A?La(A):Sr}if(cme(o)){const A=ss(o);return A?La(A):Sr}if($_(o))return KP(o.parent,!0,0)||Sr;if(yg(o)){const A=ss(o);if(A){const R=sh(A);return Fn(R)?La(A):R}}return x3(o.parent)&&o.parent.keywordToken===o.kind?jnt(o.parent):Sr}function kd(o){if(re.assert(o.kind===210||o.kind===209),o.parent.kind===250){const R=I1e(o.parent);return lL(o,R||Sr)}if(o.parent.kind===226){const R=s1(o.parent.right);return lL(o,R||Sr)}if(o.parent.kind===303){const R=uc(o.parent.parent,el),B=kd(R)||Sr,Y=y9(R.properties,o.parent);return MO(R,B,Y)}const f=uc(o.parent,Ed),v=kd(f)||Sr,A=Kk(65,v,Ce,o.parent)||Sr;return trt(f,v,f.elements.indexOf(o),A)}function lu(o){const f=kd(uc(o.parent.parent,KD));return f&&Yd(f,o.escapedText)}function O_(o){return z7(o)&&(o=o.parent),$S(s1(o))}function rp(o){const f=hx(o.parent);return pd(o)?La(f):sh(f)}function Ug(o){const f=o.name;switch(f.kind){case 80:return vS(Kr(f));case 9:case 11:return vS(f.text);case 167:const v=Jk(f);return zb(v,12288)?v:Nn;default:return re.fail("Unsupported property name.")}}function im(o){o=yS(o);const f=zd(zm(o)),v=ed(o,0).length?da:ed(o,1).length?Hu:void 0;return v&&Ot(zm(v),A=>{f.has(A.escapedName)||f.set(A.escapedName,A)}),dO(f)}function k0(o){return ed(o,0).length!==0||ed(o,1).length!==0}function YI(o){const f=Yk(o);return f?ea(f,YI):[o]}function Yk(o){if(I_(o)&6)return Qo(Ae(o).containingType.types,f=>Yd(f,o.escapedName));if(o.flags&33554432){const{links:{leftSpread:f,rightSpread:v,syntheticOrigin:A}}=o;return f?[f,v]:A?[A]:X5(A5(o))}}function A5(o){let f,v=o;for(;v=Ae(v).target;)f=v;return f}function GK(o){if($g(o))return!1;const f=__(o,xn);if(!f)return!1;const v=f.parent;return v?!((Ac(v)||tl(v))&&v.name===f)&&N1e(f)===Tr:!1}function JV(o){let f=gS(o.parent,o);if(!f||ZU(f))return!0;const v=lO(f);f=hS(f);const A=Ae(f);return A.exportsSomeValue===void 0&&(A.exportsSomeValue=v?!!(f.flags&111551):Jb(dw(f),R)),A.exportsSomeValue;function R(B){return B=Av(B),B&&!!(pT(B)&111551)}}function yM(o){return nie(o.parent)&&o===o.parent.name}function LO(o,f){var v;const A=__(o,xn);if(A){let R=N1e(A,yM(A));if(R){if(R.flags&1048576){const Y=jp(R.exportSymbol);if(!f&&Y.flags&944&&!(Y.flags&3))return;R=Y}const B=xE(R);if(B){if(B.flags&512&&((v=B.valueDeclaration)==null?void 0:v.kind)===312){const Y=B.valueDeclaration,pe=ts(A);return Y!==pe?void 0:Y}return Ua(A.parent,Y=>nie(Y)&&sc(Y)===B)}}}}function P1e(o){const f=bEe(o);if(f)return f;const v=__(o,xn);if(v){const A=g0t(v);if(uw(A,111551)&&!Qx(A,111551))return UT(A)}}function G2(o){return o.valueDeclaration&&sa(o.valueDeclaration)&&OU(o.valueDeclaration).parent.kind===299}function ai(o){if(o.flags&418&&o.valueDeclaration&&!Nu(o.valueDeclaration)){const f=Ae(o);if(f.isDeclarationWithCollidingName===void 0){const v=QD(o.valueDeclaration);if(KTe(v)||G2(o)){const A=rt(o.valueDeclaration);if(gg(v.parent,o.escapedName,111551,void 0,void 0,!1))f.isDeclarationWithCollidingName=!0;else if(A.flags&16384){const R=A.flags&32768,B=OL(v,!1),Y=v.kind===241&&OL(v.parent,!1);f.isDeclarationWithCollidingName=!pde(v)&&(!R||!B&&!Y)}else f.isDeclarationWithCollidingName=!1}}return f.isDeclarationWithCollidingName}return!1}function Vc(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v&&ai(v))return v.valueDeclaration}}}function Gl(o){const f=__(o,PT);if(f){const v=sc(f);if(v)return ai(v)}return!1}function jl(o){switch(re.assert(Fr),o.kind){case 271:return Mm(sc(o));case 273:case 274:case 276:case 281:const f=sc(o);return!!f&&Mm(f,!0);case 278:const v=o.exportClause;return!!v&&(G0(v)||gt(v.elements,jl));case 277:return o.expression&&o.expression.kind===80?Mm(sc(o)):!0}return!1}function Yl(o){const f=__(o,Yb);return f===void 0||f.parent.kind!==312||!$M(f)?!1:Mm(sc(f))&&f.moduleReference&&!ny(f.moduleReference)}function Mm(o,f){if(!o)return!1;const v=eA(C0(o));return v===Pr?!f||!Qx(o):!!(pT(o,f,!0)&111551)&&(gk(Pe)||!ud(v))}function ud(o){return Nwe(o)||!!o.constEnumOnlyModule}function $f(o,f){if(re.assert(Fr),wI(o)){const v=sc(o),A=v&&Ae(v);if(A!=null&&A.referenced)return!0;const R=Ae(v).aliasTarget;if(R&&Cb(o)&32&&pT(R)&111551&&(gk(Pe)||!ud(R)))return!0}return f?!!s_(o,v=>$f(v,f)):!1}function ip(o){if(y2(o.body)){if(PN(o)||UC(o))return!1;const f=sc(o),v=K6(f);return v.length>1||v.length===1&&v[0].declaration!==o}return!1}function om(o){return!!Ke&&!H4(o)&&!A2(o)&&!!o.initializer&&!ul(o,31)}function uv(o){return Ke&&H4(o)&&!o.initializer&&ul(o,31)}function l1(o){const f=__(o,mg);if(!f)return!1;const v=sc(f);return!v||!(v.flags&16)?!1:!!Jb(L2(v),A=>A.flags&111551&&eJ(A.valueDeclaration))}function u2(o){const f=__(o,mg);if(!f)return Yn;const v=sc(f);return v&&zm(La(v))||Yn}function P0(o){var f;const v=o.id||0;return v<0||v>=a0.length?0:((f=a0[v])==null?void 0:f.flags)||0}function Wg(o){return Je(o.parent),rt(o).enumMemberValue}function qy(o){switch(o.kind){case 306:case 211:case 212:return!0}return!1}function ww(o){if(o.kind===306)return Wg(o);const f=rt(o).resolvedSymbol;if(f&&f.flags&8){const v=f.valueDeclaration;if(G8(v.parent))return Wg(v)}}function Qk(o){return!!(o.flags&524288)&&ed(o,0).length>0}function Rw(o,f){var v;const A=__(o,kT);if(!A||f&&(f=__(f),!f))return 0;let R=!1;if(Pu(A)){const Ue=Qg(PS(A),111551,!0,!0,f);R=!!((v=Ue==null?void 0:Ue.declarations)!=null&&v.every(O8))}const B=Qg(A,111551,!0,!0,f),Y=B&&B.flags&2097152?C0(B):B;R||(R=!!(B&&Qx(B,111551)));const pe=Qg(A,788968,!0,!1,f);if(Y&&Y===pe){const Ue=BWe(!1);if(Ue&&Y===Ue)return 9;const St=La(Y);if(St&&Du(St))return R?10:1}if(!pe)return R?11:0;const Te=sh(pe);return Fn(Te)?R?11:0:Te.flags&3?11:zb(Te,245760)?2:zb(Te,528)?6:zb(Te,296)?3:zb(Te,2112)?4:zb(Te,402653316)?5:Dp(Te)?7:zb(Te,12288)?8:Qk(Te)?10:kE(Te)?7:11}function $V(o,f,v,A,R){const B=__(o,vde);if(!B)return he.createToken(133);const Y=sc(B);let pe=Y&&!(Y.flags&133120)?d5(La(Y)):Sr;return pe.flags&8192&&pe.symbol===Y&&(v|=1048576),R&&(pe=iL(pe)),Wr.typeToTypeNode(pe,f,v|1024,A)}function u8(o,f,v,A){const R=__(o,F_);if(!R)return he.createToken(133);const B=gb(R);return Wr.typeToTypeNode(np(B),f,v|1024,A)}function qGe(o,f,v,A){const R=__(o,kr);if(!R)return he.createToken(133);const B=z2(O_(R));return Wr.typeToTypeNode(B,f,v|1024,A)}function KGe(o){return jt.has(ey(o))}function N1e(o,f){const v=rt(o).resolvedSymbol;if(v)return v;let A=o;if(f){const R=o.parent;PT(R)&&o===R.name&&(A=XF(R))}return gg(A,o.escapedText,3257279,void 0,void 0,!0)}function g0t(o){const f=rt(o).resolvedSymbol;return f&&f!==Pr?f:gg(o,o.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function h0t(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v)return eA(v).valueDeclaration}}}function Zk(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v)return gi(eA(v).declarations,A=>{switch(A.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 mne(o){return oY(o)||Kc(o)&&tit(o)?Bb(La(sc(o))):!1}function ykt(o,f,v){const A=o.flags&1056?Wr.symbolToExpression(o.symbol,111551,f,void 0,v):o===Ts?he.createTrue():o===vo&&he.createFalse();if(A)return A;const R=o.value;return typeof R=="object"?he.createBigIntLiteral(R):typeof R=="number"?he.createNumericLiteral(R):he.createStringLiteral(R)}function vkt(o,f){const v=La(sc(o));return ykt(v,o,f)}function wSt(o){return o?(xo(o),ts(o).localJsxFactory||FA):FA}function y0t(o){if(o){const f=ts(o);if(f){if(f.localJsxFragmentFactory)return f.localJsxFragmentFactory;const v=f.pragmas.get("jsxfrag"),A=ls(v)?v[0]:v;if(A)return f.localJsxFragmentFactory=HG(A.arguments.factory,dt),f.localJsxFragmentFactory}}if(Pe.jsxFragmentFactory)return HG(Pe.jsxFragmentFactory,dt)}function bkt(){const o=e.getResolvedTypeReferenceDirectives();let f;return o&&(f=new Map,o.forEach(({resolvedTypeReferenceDirective:Te},Ue,St)=>{if(!(Te!=null&&Te.resolvedFileName))return;const Rt=e.getSourceFile(Te.resolvedFileName);Rt&&pe(Rt,Ue,St)})),{getReferencedExportContainer:LO,getReferencedImportDeclaration:P1e,getReferencedDeclarationWithCollidingName:Vc,isDeclarationWithCollidingName:Gl,isValueAliasDeclaration:Te=>{const Ue=__(Te);return Ue&&Fr?jl(Ue):!0},hasGlobalName:KGe,isReferencedAliasDeclaration:(Te,Ue)=>{const St=__(Te);return St&&Fr?$f(St,Ue):!0},getNodeCheckFlags:Te=>{const Ue=__(Te);return Ue?P0(Ue):0},isTopLevelValueImportEqualsWithEntityName:Yl,isDeclarationVisible:gw,isImplementationOfOverload:ip,isRequiredInitializedParameter:om,isOptionalUninitializedParameterProperty:uv,isExpandoFunctionDeclaration:l1,getPropertiesOfContainerFunction:u2,createTypeOfDeclaration:$V,createReturnTypeOfSignatureDeclaration:u8,createTypeOfExpression:qGe,createLiteralConstValue:vkt,isSymbolAccessible:nc,isEntityNameVisible:a2,getConstantValue:Te=>{const Ue=__(Te,qy);return Ue?ww(Ue):void 0},collectLinkedAliases:Qq,getReferencedValueDeclaration:h0t,getReferencedValueDeclarations:Zk,getTypeReferenceSerializationKind:Rw,isOptionalParameter:H4,moduleExportsSomeValue:JV,isArgumentsLocalBinding:GK,getExternalModuleFileFromDeclaration:Te=>{const Ue=__(Te,gde);return Ue&&v0t(Ue)},getTypeReferenceDirectivesForEntityName:R,getTypeReferenceDirectivesForSymbol:B,isLiteralConstDeclaration:mne,isLateBound:Te=>{const Ue=__(Te,PT),St=Ue&&sc(Ue);return!!(St&&I_(St)&4096)},getJsxFactoryEntity:wSt,getJsxFragmentFactoryEntity:y0t,getAllAccessorDeclarations(Te){Te=__(Te,jz);const Ue=Te.kind===178?177:178,St=Rh(sc(Te),Ue),Rt=St&&St.pos_w(Te,Te,void 0),isBindingCapturedByNode:(Te,Ue)=>{const St=__(Te),Rt=__(Ue);return!!St&&!!Rt&&(Kc(Rt)||sa(Rt))&&Eht(St,Rt)},getDeclarationStatementsForSourceFile:(Te,Ue,St,Rt)=>{const rn=__(Te);re.assert(rn&&rn.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Sn=sc(Te);return Sn?Sn.exports?Wr.symbolTableToDeclarationStatements(Sn.exports,Te,Ue,St,Rt):[]:Te.locals?Wr.symbolTableToDeclarationStatements(Te.locals,Te,Ue,St,Rt):[]},isImportRequiredByAugmentation:v,tryFindAmbientModule:Te=>{const Ue=__(Te),St=Ue&&Cm(Ue)?Ue.text:void 0;return St!==void 0?aK(St,!0):void 0}};function v(Te){const Ue=ts(Te);if(!Ue.symbol)return!1;const St=v0t(Te);if(!St||St===Ue)return!1;const Rt=dw(Ue.symbol);for(const rn of oc(Rt.values()))if(rn.mergeId){const Sn=jp(rn);if(Sn.declarations){for(const xr of Sn.declarations)if(ts(xr)===St)return!0}}return!1}function A(Te){return Te.parent&&Te.parent.kind===233&&Te.parent.parent&&Te.parent.parent.kind===298}function R(Te){if(!f)return;let Ue;Te.parent.kind===167?Ue=1160127:(Ue=790504,(Te.kind===80&&yR(Te)||Te.kind===211&&!A(Te))&&(Ue=1160127));const St=Qg(Te,Ue,!0);return St&&St!==Pr?B(St,Ue):void 0}function B(Te,Ue){if(!f||!Y(Te))return;let St;for(const Rt of Te.declarations)if(Rt.symbol&&Rt.symbol.flags&Ue){const rn=ts(Rt),Sn=f.get(rn.path);if(Sn)(St||(St=[])).push(Sn);else return}return St}function Y(Te){if(!Te.declarations)return!1;let Ue=Te;for(;;){const St=xE(Ue);if(St)Ue=St;else break}if(Ue.valueDeclaration&&Ue.valueDeclaration.kind===312&&Ue.flags&512)return!1;for(const St of Te.declarations){const Rt=ts(St);if(f.has(Rt.path))return!0}return!1}function pe(Te,Ue,St){if(!f.has(Te.path)){f.set(Te.path,[Ue,St]);for(const{fileName:Rt}of Te.referencedFiles){const rn=HQ(Rt,Te.fileName),Sn=e.getSourceFile(rn);Sn&&pe(Sn,Ue,St||Te.impliedNodeFormat)}}}}function v0t(o){const f=o.kind===267?to(o.name,Sd):w9(o),v=_w(f,f,void 0);if(v)return Rh(v,312)}function Tkt(){for(const f of e.getSourceFiles())w3(f,Pe);yp=new Map;let o;for(const f of e.getSourceFiles())if(!f.redirectInfo){if(!aE(f)){const v=f.locals.get("globalThis");if(v!=null&&v.declarations)for(const A of v.declarations)j_.add(Bs(A,N.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));R2(jt,f.locals)}f.jsGlobalAugmentations&&R2(jt,f.jsGlobalAugmentations),f.patternAmbientModules&&f.patternAmbientModules.length&&(r1=Hi(r1,f.patternAmbientModules)),f.moduleAugmentations.length&&(o||(o=[])).push(f.moduleAugmentations),f.symbol&&f.symbol.globalExports&&f.symbol.globalExports.forEach((A,R)=>{jt.has(R)||jt.set(R,A)})}if(o)for(const f of o)for(const v of f)JC(v.parent)&&U(v);if(le(jt,Vt,N.Declaration_name_conflicts_with_built_in_global_identifier_0),Ae(En).type=kt,Ae(Tr).type=Hy("IArguments",0,!0),Ae(Pr).type=Sr,Ae(fr).type=tA(16,fr),t_=Hy("Array",1,!0),Jt=Hy("Object",0,!0),ci=Hy("Function",0,!0),da=It&&Hy("CallableFunction",0,!0)||ci,Hu=It&&Hy("NewableFunction",0,!0)||ci,gd=Hy("String",0,!0),Dg=Hy("Number",0,!0),um=Hy("Boolean",0,!0),Ig=Hy("RegExp",0,!0),Qm=hT(Ge),Bh=hT(Br),Bh===M_&&(Bh=sy(void 0,Fe,Yn,Yn,Yn)),A_=het("ReadonlyArray",1)||t_,P1=A_?lK(A_,[Ge]):Qm,P_=het("ThisType",1),o)for(const f of o)for(const v of f)JC(v.parent)||U(v);yp.forEach(({firstFile:f,secondFile:v,conflictingSymbols:A})=>{if(A.size<8)A.forEach(({isBlockScoped:R,firstFileLocations:B,secondFileLocations:Y},pe)=>{const Te=R?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0;for(const Ue of B)A0(Ue,Te,pe,Y);for(const Ue of Y)A0(Ue,Te,pe,B)});else{const R=oc(A.keys()).join(", ");j_.add(ml(Bs(f,N.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,R),Bs(v,N.Conflicts_are_in_this_file))),j_.add(ml(Bs(v,N.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,R),Bs(f,N.Conflicts_are_in_this_file)))}}),yp=void 0}function yb(o,f){if((d&f)!==f&&Pe.importHelpers){const v=ts(o);if(VM(v,Pe)&&!(o.flags&33554432)){const A=Ekt(v,o);if(A!==Pr){const R=f&~d;for(let B=1;B<=33554432;B<<=1)if(R&B)for(const Y of Skt(B)){if(u.has(Y))continue;u.add(Y);const pe=Av(Ci(dw(A),ey(Y),111551));pe?B&524288?gt(K6(pe),Te=>c2(Te)>3)||hn(o,N.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,HN,Y,4):B&1048576?gt(K6(pe),Te=>c2(Te)>4)||hn(o,N.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,HN,Y,5):B&1024&&(gt(K6(pe),Te=>c2(Te)>2)||hn(o,N.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,HN,Y,3)):hn(o,N.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,HN,Y)}}d|=f}}}function Skt(o){switch(o){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ct?["__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 re.fail("Unrecognized helper")}}function Ekt(o,f){return h||(h=qR(o,HN,N.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,f)||Pr),h}function fL(o){const f=Ckt(o)||xkt(o);if(f!==void 0)return f;if(Os(o)&&iI(o))return vT(o,N.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const v=Xg(o)?o.declarationList.flags&7:0;let A,R,B,Y,pe,Te=0,Ue=!1,St=!1;for(const Rt of o.modifiers)if(Jh(Rt)){if(GL(ct,o,o.parent,o.parent.parent)){if(ct&&(o.kind===177||o.kind===178)){const rn=oI(o.parent.members,o);if(X2(rn.firstAccessor)&&o===rn.secondAccessor)return vT(o,N.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return o.kind===174&&!y2(o.body)?vT(o,N.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):vT(o,N.Decorators_are_not_valid_here);if(Te&-34849)return Uo(Rt,N.Decorators_are_not_valid_here);if(St&&Te&98303){re.assertIsDefined(pe);const rn=ts(Rt);return qV(rn)?!1:(ml(hn(Rt,N.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Bs(pe,N.Decorator_used_before_export_here)),!0)}Te|=32768,Te&98303?Te&32&&(Ue=!0):St=!0,pe??(pe=Rt)}else{if(Rt.kind!==148){if(o.kind===171||o.kind===173)return Uo(Rt,N._0_modifier_cannot_appear_on_a_type_member,Cf(Rt.kind));if(o.kind===181&&(Rt.kind!==126||!Fl(o.parent)))return Uo(Rt,N._0_modifier_cannot_appear_on_an_index_signature,Cf(Rt.kind))}if(Rt.kind!==103&&Rt.kind!==147&&Rt.kind!==87&&o.kind===168)return Uo(Rt,N._0_modifier_cannot_appear_on_a_type_parameter,Cf(Rt.kind));switch(Rt.kind){case 87:if(o.kind!==266&&o.kind!==168)return Uo(o,N.A_class_member_cannot_have_the_0_keyword,Cf(87));const rn=o.parent;if(o.kind===168&&!(Vd(rn)||Fl(rn)||e0(rn)||MG(rn)||Y7(rn)||x2(rn)||pg(rn)))return Uo(Rt,N._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Cf(Rt.kind));break;case 164:if(Te&16)return Uo(Rt,N._0_modifier_already_seen,"override");if(Te&128)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","readonly");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","accessor");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","async");Te|=16,Y=Rt;break;case 125:case 124:case 123:const Sn=mw(F7(Rt.kind));if(Te&7)return Uo(Rt,N.Accessibility_modifier_already_seen);if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"override");if(Te&256)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"static");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"accessor");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"readonly");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"async");if(o.parent.kind===268||o.parent.kind===312)return Uo(Rt,N._0_modifier_cannot_appear_on_a_module_or_namespace_element,Sn);if(Te&64)return Rt.kind===123?Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,Sn,"abstract"):Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"abstract");if(IT(o))return Uo(Rt,N.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Te|=F7(Rt.kind);break;case 126:if(Te&256)return Uo(Rt,N._0_modifier_already_seen,"static");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","readonly");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","async");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","accessor");if(o.parent.kind===268||o.parent.kind===312)return Uo(Rt,N._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"static");if(Te&64)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","override");Te|=256,A=Rt;break;case 129:if(Te&512)return Uo(Rt,N._0_modifier_already_seen,"accessor");if(Te&8)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Te&128)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(o.kind!==172)return Uo(Rt,N.accessor_modifier_can_only_appear_on_a_property_declaration);Te|=512;break;case 148:if(Te&8)return Uo(Rt,N._0_modifier_already_seen,"readonly");if(o.kind!==172&&o.kind!==171&&o.kind!==181&&o.kind!==169)return Uo(Rt,N.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Te&512)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Te|=8;break;case 95:if(Pe.verbatimModuleSyntax&&!(o.flags&33554432)&&o.kind!==265&&o.kind!==264&&o.kind!==267&&o.parent.kind===312&&(Ie===1||ts(o).impliedNodeFormat===1))return Uo(Rt,N.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Te&32)return Uo(Rt,N._0_modifier_already_seen,"export");if(Te&128)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","declare");if(Te&64)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","abstract");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","async");if(Fl(o.parent))return Uo(Rt,N._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"export");if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"export");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Te|=32;break;case 90:const xr=o.parent.kind===312?o.parent:o.parent.parent;if(xr.kind===267&&!dh(xr))return Uo(Rt,N.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"default");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Te&32){if(Ue)return Uo(pe,N.Decorators_are_not_valid_here)}else return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","default");Te|=2048;break;case 138:if(Te&128)return Uo(Rt,N._0_modifier_already_seen,"declare");if(Te&1024)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Te&16)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Fl(o.parent)&&!nu(o))return Uo(Rt,N._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"declare");if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(o.parent.flags&33554432&&o.parent.kind===268)return Uo(Rt,N.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(IT(o))return Uo(Rt,N._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Te&512)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Te|=128,R=Rt;break;case 128:if(Te&64)return Uo(Rt,N._0_modifier_already_seen,"abstract");if(o.kind!==263&&o.kind!==185){if(o.kind!==174&&o.kind!==172&&o.kind!==177&&o.kind!==178)return Uo(Rt,N.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(o.parent.kind===263&&ul(o.parent,64))){const la=o.kind===172?N.Abstract_properties_can_only_appear_within_an_abstract_class:N.Abstract_methods_can_only_appear_within_an_abstract_class;return Uo(Rt,la)}if(Te&256)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Te&2)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Te&1024&&B)return Uo(B,N._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"abstract","override");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(mp(o)&&o.name.kind===81)return Uo(Rt,N._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Te|=64;break;case 134:if(Te&1024)return Uo(Rt,N._0_modifier_already_seen,"async");if(Te&128||o.parent.flags&33554432)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"async");if(Te&64)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Te|=1024,B=Rt;break;case 103:case 147:const Ai=Rt.kind===103?8192:16384,So=Rt.kind===103?"in":"out";if(o.kind!==168||!(xp(o.parent)||Fl(o.parent)||z0(o.parent)))return Uo(Rt,N._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,So);if(Te&Ai)return Uo(Rt,N._0_modifier_already_seen,So);if(Ai&8192&&Te&16384)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"in","out");Te|=Ai;break}}return o.kind===176?Te&256?Uo(A,N._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Te&16?Uo(Y,N._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Te&1024?Uo(B,N._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(o.kind===272||o.kind===271)&&Te&128?Uo(R,N.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):o.kind===169&&Te&31&&$_(o.name)?Uo(o,N.A_parameter_property_may_not_be_declared_using_a_binding_pattern):o.kind===169&&Te&31&&o.dotDotDotToken?Uo(o,N.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Te&1024?Ikt(o,B):!1}function xkt(o){if(!o.modifiers)return!1;const f=Akt(o);return f&&vT(f,N.Modifiers_cannot_appear_here)}function Yrt(o,f){const v=lr(o.modifiers,Mf);return v&&v.kind!==f?v:void 0}function Akt(o){switch(o.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 lr(o.modifiers,Mf);default:if(o.parent.kind===268||o.parent.kind===312)return;switch(o.kind){case 262:return Yrt(o,134);case 263:case 185:return Yrt(o,128);case 231:case 264:case 265:return lr(o.modifiers,Mf);case 243:return o.declarationList.flags&4?Yrt(o,135):lr(o.modifiers,Mf);case 266:return Yrt(o,87);default:re.assertNever(o)}}}function Ckt(o){const f=Dkt(o);return f&&vT(f,N.Decorators_are_not_valid_here)}function Dkt(o){return Spe(o)?lr(o.modifiers,Jh):void 0}function Ikt(o,f){switch(o.kind){case 174:case 262:case 218:case 219:return!1}return Uo(f,N._0_modifier_cannot_be_used_here,"async")}function gne(o,f=N.Trailing_comma_not_allowed){return o&&o.hasTrailingComma?KV(o[0],o.end-1,1,f):!1}function RSt(o,f){if(o&&o.length===0){const v=o.pos-1,A=Ff(f.text,o.end)+1;return KV(f,v,A-v,N.Type_parameter_list_cannot_be_empty)}return!1}function kkt(o){let f=!1;const v=o.length;for(let A=0;A!!f.initializer||$_(f.name)||sp(f))}function Nkt(o){if(dt>=3){const f=o.body&&Ou(o.body)&&qY(o.body.statements);if(f){const v=Pkt(o.parameters);if(Nt(v)){Ot(v,R=>{ml(hn(R,N.This_parameter_is_not_allowed_with_use_strict_directive),Bs(f,N.use_strict_directive_used_here))});const A=v.map((R,B)=>B===0?Bs(R,N.Non_simple_parameter_declared_here):Bs(R,N.and_here));return ml(hn(f,N.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...A),!0}}}return!1}function Qrt(o){const f=ts(o);return fL(o)||RSt(o.typeParameters,f)||kkt(o.parameters)||Rkt(o,f)||Vd(o)&&Nkt(o)}function wkt(o){const f=ts(o);return Wkt(o)||RSt(o.typeParameters,f)}function Rkt(o,f){if(!$m(o))return!1;o.typeParameters&&!(Nt(o.typeParameters)>1||o.typeParameters.hasTrailingComma||o.typeParameters[0].constraint)&&f&&pv(f.fileName,[".mts",".cts"])&&Uo(o.typeParameters[0],N.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:v}=o,A=xm(f,v.pos).line,R=xm(f,v.end).line;return A!==R&&Uo(v,N.Line_terminator_not_permitted_before_arrow)}function Mkt(o){const f=o.parameters[0];if(o.parameters.length!==1)return Uo(f?f.name:o,N.An_index_signature_must_have_exactly_one_parameter);if(gne(o.parameters,N.An_index_signature_cannot_have_a_trailing_comma),f.dotDotDotToken)return Uo(f.dotDotDotToken,N.An_index_signature_cannot_have_a_rest_parameter);if(Bie(f))return Uo(f.name,N.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(f.questionToken)return Uo(f.questionToken,N.An_index_signature_parameter_cannot_have_a_question_mark);if(f.initializer)return Uo(f.name,N.An_index_signature_parameter_cannot_have_an_initializer);if(!f.type)return Uo(f.name,N.An_index_signature_parameter_must_have_a_type_annotation);const v=Xl(f.type);return Uk(v,A=>!!(A.flags&8576))||uK(v)?Uo(f.name,N.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Ex(v,Lue)?o.type?!1:Uo(o,N.An_index_signature_must_have_a_type_annotation):Uo(f.name,N.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Lkt(o){return fL(o)||Mkt(o)}function Okt(o,f){if(f&&f.length===0){const v=ts(o),A=f.pos-1,R=Ff(v.text,f.end)+1;return KV(v,A,R-A,N.Type_argument_list_cannot_be_empty)}return!1}function XGe(o,f){return gne(f)||Okt(o,f)}function Fkt(o){return o.questionDotToken||o.flags&64?Uo(o.template,N.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function MSt(o){const f=o.types;if(gne(f))return!0;if(f&&f.length===0){const v=Cf(o.token);return KV(o,f.pos,0,N._0_list_cannot_be_empty,v)}return gt(f,LSt)}function LSt(o){return cC(o)&&am(o.expression)&&o.typeArguments?Uo(o,N.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):XGe(o,o.typeArguments)}function Wkt(o){let f=!1,v=!1;if(!fL(o)&&o.heritageClauses)for(const A of o.heritageClauses){if(A.token===96){if(f)return vT(A,N.extends_clause_already_seen);if(v)return vT(A,N.extends_clause_must_precede_implements_clause);if(A.types.length>1)return vT(A.types[1],N.Classes_can_only_extend_a_single_class);f=!0}else{if(re.assert(A.token===119),v)return vT(A,N.implements_clause_already_seen);v=!0}MSt(A)}}function Bkt(o){let f=!1;if(o.heritageClauses)for(const v of o.heritageClauses){if(v.token===96){if(f)return vT(v,N.extends_clause_already_seen);f=!0}else return re.assert(v.token===119),vT(v,N.Interface_declaration_cannot_have_implements_clause);MSt(v)}return!1}function Zrt(o){if(o.kind!==167)return!1;const f=o;return f.expression.kind===226&&f.expression.operatorToken.kind===28?Uo(f.expression,N.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function b0t(o){if(o.asteriskToken){if(re.assert(o.kind===262||o.kind===218||o.kind===174),o.flags&33554432)return Uo(o.asteriskToken,N.Generators_are_not_allowed_in_an_ambient_context);if(!o.body)return Uo(o.asteriskToken,N.An_overload_signature_cannot_be_declared_as_a_generator)}}function T0t(o,f){return!!o&&Uo(o,f)}function OSt(o,f){return!!o&&Uo(o,f)}function zkt(o,f){const v=new Map;for(const A of o.properties){if(A.kind===305){if(f){const Y=rg(A.expression);if(Ed(Y)||el(Y))return Uo(A.expression,N.A_rest_element_cannot_contain_a_binding_pattern)}continue}const R=A.name;if(R.kind===167&&Zrt(R),A.kind===304&&!f&&A.objectAssignmentInitializer&&Uo(A.equalsToken,N.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),R.kind===81&&Uo(R,N.Private_identifiers_are_not_allowed_outside_class_bodies),DA(A)&&A.modifiers)for(const Y of A.modifiers)Mf(Y)&&(Y.kind!==134||A.kind!==174)&&Uo(Y,N._0_modifier_cannot_be_used_here,Lv(Y));else if(GEe(A)&&A.modifiers)for(const Y of A.modifiers)Mf(Y)&&Uo(Y,N._0_modifier_cannot_be_used_here,Lv(Y));let B;switch(A.kind){case 304:case 303:OSt(A.exclamationToken,N.A_definite_assignment_assertion_is_not_permitted_in_this_context),T0t(A.questionToken,N.An_object_member_cannot_be_declared_optional),R.kind===9&&x0t(R),B=4;break;case 174:B=8;break;case 177:B=1;break;case 178:B=2;break;default:re.assertNever(A,"Unexpected syntax kind:"+A.kind)}if(!f){const Y=A0t(R);if(Y===void 0)continue;const pe=v.get(Y);if(!pe)v.set(Y,B);else if(B&8&&pe&8)Uo(R,N.Duplicate_identifier_0,Lv(R));else if(B&4&&pe&4)Uo(R,N.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Lv(R));else if(B&3&&pe&3)if(pe!==3&&B!==pe)v.set(Y,B|pe);else return Uo(R,N.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Uo(R,N.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Gkt(o){jkt(o.tagName),XGe(o,o.typeArguments);const f=new Map;for(const v of o.attributes.properties){if(v.kind===293)continue;const{name:A,initializer:R}=v,B=m3(A);if(!f.get(B))f.set(B,!0);else return Uo(A,N.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(R&&R.kind===294&&!R.expression)return Uo(R,N.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function jkt(o){if(Ac(o)&&Fm(o.expression))return Uo(o.expression,N.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Fm(o)&&VH(Pe)&&!EH(o.namespace.escapedText))return Uo(o,N.React_components_cannot_include_JSX_namespace_names)}function Vkt(o){if(o.expression&&VJ(o.expression))return Uo(o.expression,N.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function FSt(o){if(f8(o))return!0;if(o.kind===250&&o.awaitModifier&&!(o.flags&65536)){const f=ts(o);if(GE(o)){if(!qV(f))switch(VM(f,Pe)||j_.add(Bs(o.awaitModifier,N.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)),Ie){case 100:case 199:if(f.impliedNodeFormat===1){j_.add(Bs(o.awaitModifier,N.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(dt>=4)break;default:j_.add(Bs(o.awaitModifier,N.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(!qV(f)){const v=Bs(o.awaitModifier,N.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),A=zE(o);if(A&&A.kind!==176){re.assert((ob(A)&2)===0,"Enclosing function should never be an async function.");const R=Bs(A,N.Did_you_mean_to_mark_this_function_as_async);ml(v,R)}return j_.add(v),!0}return!1}if(Bx(o)&&!(o.flags&65536)&&xn(o.initializer)&&o.initializer.escapedText==="async")return Uo(o.initializer,N.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(o.initializer.kind===261){const f=o.initializer;if(!E0t(f)){const v=f.declarations;if(!v.length)return!1;if(v.length>1){const R=o.kind===249?N.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:N.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return vT(f.declarations[1],R)}const A=v[0];if(A.initializer){const R=o.kind===249?N.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:N.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Uo(A.name,R)}if(A.type){const R=o.kind===249?N.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:N.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Uo(A,R)}}}return!1}function Ukt(o){if(!(o.flags&33554432)&&o.parent.kind!==187&&o.parent.kind!==264){if(dt<1)return Uo(o.name,N.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.body===void 0&&!ul(o,64))return KV(o,o.end-1,1,N._0_expected,"{")}if(o.body){if(ul(o,64))return Uo(o,N.An_abstract_accessor_cannot_have_an_implementation);if(o.parent.kind===187||o.parent.kind===264)return Uo(o.body,N.An_implementation_cannot_be_declared_in_ambient_contexts)}if(o.typeParameters)return Uo(o.name,N.An_accessor_cannot_have_type_parameters);if(!Hkt(o))return Uo(o.name,o.kind===177?N.A_get_accessor_cannot_have_parameters:N.A_set_accessor_must_have_exactly_one_parameter);if(o.kind===178){if(o.type)return Uo(o.name,N.A_set_accessor_cannot_have_a_return_type_annotation);const f=re.checkDefined(AH(o),"Return value does not match parameter count assertion.");if(f.dotDotDotToken)return Uo(f.dotDotDotToken,N.A_set_accessor_cannot_have_rest_parameter);if(f.questionToken)return Uo(f.questionToken,N.A_set_accessor_cannot_have_an_optional_parameter);if(f.initializer)return Uo(o.name,N.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Hkt(o){return S0t(o)||o.parameters.length===(o.kind===177?0:1)}function S0t(o){if(o.parameters.length===(o.kind===177?1:2))return BN(o)}function Jkt(o){if(o.operator===158){if(o.type.kind!==155)return Uo(o.type,N._0_expected,Cf(155));let f=QM(o.parent);if(Cs(f)&&SW(f)){const v=k7(f);v&&(f=I7(v)||v)}switch(f.kind){case 260:const v=f;if(v.name.kind!==80)return Uo(o,N.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!rC(v))return Uo(o,N.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(v.parent.flags&2))return Uo(f.name,N.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!pd(f)||!Ny(f))return Uo(f.name,N.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ul(f,8))return Uo(f.name,N.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Uo(o,N.unique_symbol_types_are_not_allowed_here)}}else if(o.operator===148&&o.type.kind!==188&&o.type.kind!==189)return vT(o,N.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Cf(155))}function w1e(o,f){if(Hmt(o))return Uo(o,f)}function WSt(o){if(Qrt(o))return!0;if(o.kind===174){if(o.parent.kind===210){if(o.modifiers&&!(o.modifiers.length===1&&Dl(o.modifiers).kind===134))return vT(o,N.Modifiers_cannot_appear_here);if(T0t(o.questionToken,N.An_object_member_cannot_be_declared_optional))return!0;if(OSt(o.exclamationToken,N.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(o.body===void 0)return KV(o,o.end-1,1,N._0_expected,"{")}if(b0t(o))return!0}if(Fl(o.parent)){if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.flags&33554432)return w1e(o.name,N.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(o.kind===174&&!o.body)return w1e(o.name,N.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(o.parent.kind===264)return w1e(o.name,N.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.parent.kind===187)return w1e(o.name,N.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 $kt(o){let f=o;for(;f;){if(bd(f))return Uo(o,N.Jump_target_cannot_cross_function_boundary);switch(f.kind){case 256:if(o.label&&f.label.escapedText===o.label.escapedText)return o.kind===251&&!OL(f.statement,!0)?Uo(o,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(o.kind===252&&!o.label)return!1;break;default:if(OL(f,!1)&&!o.label)return!1;break}f=f.parent}if(o.label){const v=o.kind===252?N.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Uo(o,v)}else{const v=o.kind===252?N.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:N.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Uo(o,v)}}function qkt(o){if(o.dotDotDotToken){const f=o.parent.elements;if(o!==yl(f))return Uo(o,N.A_rest_element_must_be_last_in_a_destructuring_pattern);if(gne(f,N.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.propertyName)return Uo(o.name,N.A_rest_element_cannot_have_a_property_name)}if(o.dotDotDotToken&&o.initializer)return KV(o,o.initializer.pos-1,1,N.A_rest_element_cannot_have_an_initializer)}function BSt(o){return Ox(o)||o.kind===224&&o.operator===41&&o.operand.kind===9}function Kkt(o){return o.kind===10||o.kind===224&&o.operator===41&&o.operand.kind===10}function Xkt(o){if((Ac(o)||Hm(o)&&BSt(o.argumentExpression))&&Tg(o.expression))return!!(kv(o).flags&1056)}function zSt(o){const f=o.initializer;if(f){const v=!(BSt(f)||Xkt(f)||f.kind===112||f.kind===97||Kkt(f));if((oY(o)||Kc(o)&&tit(o))&&!o.type){if(v)return Uo(f,N.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Uo(f,N.Initializers_are_not_allowed_in_ambient_contexts)}}function Ykt(o){const f=XV(o),v=f&7;if($_(o.name))switch(v){case 6:return Uo(o,N._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Uo(o,N._0_declarations_may_not_have_binding_patterns,"using")}if(o.parent.parent.kind!==249&&o.parent.parent.kind!==250){if(f&33554432)zSt(o);else if(!o.initializer){if($_(o.name)&&!$_(o.parent))return Uo(o,N.A_destructuring_declaration_must_have_an_initializer);switch(v){case 6:return Uo(o,N._0_declarations_must_be_initialized,"await using");case 4:return Uo(o,N._0_declarations_must_be_initialized,"using");case 2:return Uo(o,N._0_declarations_must_be_initialized,"const")}}}if(o.exclamationToken&&(o.parent.parent.kind!==243||!o.type||o.initializer||f&33554432)){const A=o.initializer?N.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?N.A_definite_assignment_assertion_is_not_permitted_in_this_context:N.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Uo(o.exclamationToken,A)}return(Ie<5||ts(o).impliedNodeFormat===1)&&Ie!==4&&!(o.parent.parent.flags&33554432)&&ul(o.parent.parent,32)&&GSt(o.name),!!v&&jSt(o.name)}function GSt(o){if(o.kind===80){if(Kr(o)==="__esModule")return ePt("noEmit",o,N.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const f=o.elements;for(const v of f)if(!cb(v))return GSt(v.name)}return!1}function jSt(o){if(o.kind===80){if(o.escapedText==="let")return Uo(o,N.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const f=o.elements;for(const v of f)cb(v)||jSt(v.name)}return!1}function E0t(o){const f=o.declarations;if(gne(o.declarations))return!0;if(!o.declarations.length)return KV(o,f.pos,f.end-f.pos,N.Variable_declaration_list_cannot_be_empty);const v=o.flags&7;return(v===4||v===6)&&lpe(o.parent)?Uo(o,v===4?N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):v===6?kwe(o):!1}function VSt(o){switch(o.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return VSt(o.parent)}return!0}function Qkt(o){if(!VSt(o.parent)){const f=XV(o.declarationList)&7;if(f){const v=f===1?"let":f===2?"const":f===4?"using":f===6?"await using":re.fail("Unknown BlockScope flag");return Uo(o,N._0_declarations_can_only_be_declared_inside_a_block,v)}}}function Zkt(o){const f=o.name.escapedText;switch(o.keywordToken){case 105:if(f!=="target")return Uo(o.name,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ic(o.name.escapedText),Cf(o.keywordToken),"target");break;case 102:if(f!=="meta")return Uo(o.name,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ic(o.name.escapedText),Cf(o.keywordToken),"meta");break}}function qV(o){return o.parseDiagnostics.length>0}function vT(o,f,...v){const A=ts(o);if(!qV(A)){const R=M0(A,o.pos);return j_.add(Pp(A,R.start,R.length,f,...v)),!0}return!1}function KV(o,f,v,A,...R){const B=ts(o);return qV(B)?!1:(j_.add(Pp(B,f,v,A,...R)),!0)}function ePt(o,f,v,...A){const R=ts(f);return qV(R)?!1:(kf(o,f,v,...A),!0)}function Uo(o,f,...v){const A=ts(o);return qV(A)?!1:(j_.add(Bs(o,f,...v)),!0)}function tPt(o){const f=Cs(o)?SY(o):void 0,v=o.typeParameters||f&&pp(f);if(v){const A=v.pos===v.end?v.pos:Ff(ts(o).text,v.pos);return KV(o,A,v.end-A,N.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nPt(o){const f=o.type||kS(o);if(f)return Uo(f,N.Type_annotation_cannot_appear_on_a_constructor_declaration)}function rPt(o){if(Qf(o.name)&&Ds(o.name.expression)&&o.name.expression.operatorToken.kind===103)return Uo(o.parent.members[0],N.A_mapped_type_may_not_declare_properties_or_methods);if(Fl(o.parent)){if(Sd(o.name)&&o.name.text==="constructor")return Uo(o.name,N.Classes_may_not_have_a_field_named_constructor);if(w1e(o.name,N.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(dt<2&&xb(o))return Uo(o.name,N.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(xb(o)&&T0t(o.questionToken,N.An_accessor_property_cannot_be_declared_optional))return!0}else if(o.parent.kind===264){if(w1e(o.name,N.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(re.assertNode(o,em),o.initializer)return Uo(o.initializer,N.An_interface_property_cannot_have_an_initializer)}else if(rS(o.parent)){if(w1e(o.name,N.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(re.assertNode(o,em),o.initializer)return Uo(o.initializer,N.A_type_literal_property_cannot_have_an_initializer)}if(o.flags&33554432&&zSt(o),nu(o)&&o.exclamationToken&&(!Fl(o.parent)||!o.type||o.initializer||o.flags&33554432||pd(o)||Ab(o))){const f=o.initializer?N.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?N.A_definite_assignment_assertion_is_not_permitted_in_this_context:N.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Uo(o.exclamationToken,f)}}function iPt(o){return o.kind===264||o.kind===265||o.kind===272||o.kind===271||o.kind===278||o.kind===277||o.kind===270||ul(o,2208)?!1:vT(o,N.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function oPt(o){for(const f of o.statements)if((PT(f)||f.kind===243)&&iPt(f))return!0;return!1}function aPt(o){return!!(o.flags&33554432)&&oPt(o)}function f8(o){if(o.flags&33554432){if(!rt(o).hasReportedStatementInAmbientContext&&(F_(o.parent)||GM(o.parent)))return rt(o).hasReportedStatementInAmbientContext=vT(o,N.An_implementation_cannot_be_declared_in_ambient_contexts);if(o.parent.kind===241||o.parent.kind===268||o.parent.kind===312){const v=rt(o.parent);if(!v.hasReportedStatementInAmbientContext)return v.hasReportedStatementInAmbientContext=vT(o,N.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function x0t(o){const f=Lv(o).includes("."),v=o.numericLiteralFlags&16;f||v||+o.text<=9007199254740991||v_(!1,Bs(o,N.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sPt(o){return!!(!(S3(o.parent)||vk(o.parent)&&S3(o.parent.parent))&&dt<7&&Uo(o,N.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function cPt(o,f,...v){const A=ts(o);if(!qV(A)){const R=M0(A,o.pos);return j_.add(Pp(A,Xy(R),0,f,...v)),!0}return!1}function lPt(){return Xp||(Xp=[],jt.forEach((o,f)=>{Eae.test(f)&&Xp.push(o)})),Xp}function uPt(o){var f;return o.isTypeOnly&&o.name&&o.namedBindings?Uo(o,N.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):o.isTypeOnly&&((f=o.namedBindings)==null?void 0:f.kind)===275?USt(o.namedBindings):!1}function USt(o){return!!Ot(o.elements,f=>{if(f.isTypeOnly)return vT(f,f.kind===276?N.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:N.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function fPt(o){if(Pe.verbatimModuleSyntax&&Ie===1)return Uo(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Ie===5)return Uo(o,N.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(o.typeArguments)return Uo(o,N.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const f=o.arguments;if(Ie!==99&&Ie!==199&&Ie!==100&&(gne(f),f.length>1)){const A=f[1];return Uo(A,N.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(f.length===0||f.length>2)return Uo(o,N.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const v=lr(f,WT);return v?Uo(v,N.Argument_of_dynamic_import_cannot_be_spread_element):!1}function _Pt(o,f){const v=ji(o);if(v&20&&f.flags&1048576)return lr(f.types,A=>{if(A.flags&524288){const R=v&ji(A);if(R&4)return o.target===A.target;if(R&16)return!!o.aliasSymbol&&o.aliasSymbol===A.aliasSymbol}return!1})}function dPt(o,f){if(ji(o)&128&&Uk(f,rL))return lr(f.types,v=>!rL(v))}function pPt(o,f){let v=0;if(ed(o,v).length>0||(v=1,ed(o,v).length>0))return lr(f.types,R=>ed(R,v).length>0)}function mPt(o,f){let v;if(!(o.flags&406978556)){let A=0;for(const R of f.types)if(!(R.flags&406978556)){const B=vp([CC(o),CC(R)]);if(B.flags&4194304)return R;if(UI(B)||B.flags&1048576){const Y=B.flags&1048576?dp(B.types,UI):1;Y>=A&&(v=R,A=Y)}}}return v}function gPt(o){if(Sy(o,67108864)){const f=lv(o,v=>!(v.flags&402784252));if(!(f.flags&131072))return f}return o}function HSt(o,f,v){if(f.flags&1048576&&o.flags&2621440){const A=Dtt(f,o);if(A)return A;const R=zm(o);if(R){const B=CNe(R,f);if(B){const Y=NBe(f,Vn(B,pe=>[()=>La(pe),pe.escapedName]),v);if(Y!==f)return Y}}}}function A0t(o){const f=FN(o);return f||(Qf(o)?ize(s1(o.expression)):void 0)}function eit(o){return os===o||(os=o,Mo=Eb(o)),Mo}function XV(o){return io===o||(io=o,no=rR(o)),no}function tit(o){const f=XV(o)&7;return f===2||f===4||f===6}}function ULe(e){return!GM(e)}function AHe(e){return e.kind!==262&&e.kind!==174||!!e.body}function cme(e){switch(e.parent.kind){case 276:case 281:return xn(e);default:return ON(e)}}function Tae(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function A1(e){return!!(e.flags&1)}function Sae(e){return!!(e.flags&2)}function HLe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:wc(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getPackageJsonInfoCache)==null?void 0:n.call(e)},useCaseSensitiveFileNames:wc(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),fileExists:n=>e.fileExists(n),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?n=>e.readFile(n):void 0}}var Eae,h$,xae,Aae,Cae,z2e,aj,Dae,_E,y$,CHe,nr,Fa,dE,lme,G2e=G({"src/compiler/checker.ts"(){md(),B2e(),iP(),Eae=/^".+"$/,h$="(anonymous)",xae=1,Aae=1,Cae=1,z2e=1,aj=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(aj||{}),Dae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),_E=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(_E||{}),y$=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(y$||{}),CHe=mU(AHe,ULe),nr=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),Fa=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(dE||(dE={})),lme=class HDt{constructor(n,i,c){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var u;i instanceof HDt;)i=i.inner;this.inner=i,this.moduleResolverHost=c,this.context=n,this.canTrackSymbol=!!((u=this.inner)!=null&&u.trackSymbol)}trackSymbol(n,i,c){var u,d;if((u=this.inner)!=null&&u.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(n,i,c))return this.onDiagnosticReported(),!0;n.flags&262144||((d=this.context).trackedSymbols??(d.trackedSymbols=[])).push([n,i,c])}return!1}reportInaccessibleThisError(){var n;(n=this.inner)!=null&&n.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(n){var i;(i=this.inner)!=null&&i.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(n))}reportInaccessibleUniqueSymbolError(){var n;(n=this.inner)!=null&&n.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var n;(n=this.inner)!=null&&n.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(n){var i;(i=this.inner)!=null&&i.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(n))}reportTruncationError(){var n;(n=this.inner)!=null&&n.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(n,i){var c;(c=this.inner)!=null&&c.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(n,i))}trackExternalModuleSymbolOfImportTypeNode(n){var i;(i=this.inner)!=null&&i.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(n))}reportNonlocalAugmentation(n,i,c){var u;(u=this.inner)!=null&&u.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(n,i,c))}reportNonSerializableProperty(n){var i;(i=this.inner)!=null&&i.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(n))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Bn(e,n,i,c){if(e===void 0)return e;const u=n(e);let d;if(u!==void 0)return ls(u)?d=(c||IHe)(u):d=u,re.assertNode(d,i),d}function Wa(e,n,i,c,u){if(e===void 0)return e;const d=e.length;(c===void 0||c<0)&&(c=0),(u===void 0||u>d-c)&&(u=d-c);let h,S=-1,E=-1;c>0||ud-c)&&(u=d-c),DHe(e,n,i,c,u)}function DHe(e,n,i,c,u){let d;const h=e.length;(c>0||u=2&&(u=pE(u,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),u}function pE(e,n){let i;for(let c=0;c{const h=cS,addSource:Yt,setSourceContent:Et,addName:at,addMapping:Rn,appendSourceMap:cn,toJSON:jt,toString:()=>JSON.stringify(jt())};function Yt(fr){d();const Tr=GC(c,fr,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Vr=P.get(Tr);return Vr===void 0&&(Vr=E.length,E.push(Tr),S.push(fr),P.set(Tr,Vr)),h(),Vr}function Et(fr,Tr){if(d(),Tr!==null){for(k||(k=[]);k.lengthTr||Ct===Tr&&Lt>Vr)}function Rn(fr,Tr,Vr,Pn,Fr,Ki){re.assert(fr>=dt,"generatedLine cannot backtrack"),re.assert(Tr>=0,"generatedCharacter cannot be negative"),re.assert(Vr===void 0||Vr>=0,"sourceIndex cannot be negative"),re.assert(Pn===void 0||Pn>=0,"sourceLine cannot be negative"),re.assert(Fr===void 0||Fr>=0,"sourceCharacter cannot be negative"),d(),(Qt(fr,Tr)||nn(Vr,Pn,Fr))&&(wr(),dt=fr,Ie=Tr,st=!1,It=!1,Ke=!0),Vr!==void 0&&Pn!==void 0&&Fr!==void 0&&(ct=Vr,Ct=Pn,Lt=Fr,st=!0,Ki!==void 0&&(Ze=Ki,It=!0)),h()}function cn(fr,Tr,Vr,Pn,Fr,Ki){re.assert(fr>=dt,"generatedLine cannot backtrack"),re.assert(Tr>=0,"generatedCharacter cannot be negative"),d();const io=[];let no;const os=dme(Vr.mappings);for(const Mo of os){if(Ki&&(Mo.generatedLine>Ki.line||Mo.generatedLine===Ki.line&&Mo.generatedCharacter>Ki.character))break;if(Fr&&(Mo.generatedLine=1024&&Wr()}function wr(){if(!(!Ke||!qt())){if(d(),ie0&&(X+=String.fromCharCode.apply(void 0,J),J.length=0)}function jt(){return wr(),Wr(),{version:3,file:n,sourceRoot:i,sources:E,names:F,mappings:X,sourcesContent:k}}function En(fr){fr<0?fr=(-fr<<1)+1:fr=fr<<1;do{let Tr=fr&31;fr=fr>>5,fr>0&&(Tr=Tr|32),Kt(Vst(Tr))}while(fr>0)}}function kae(e,n){return{getLineCount:()=>n.length,getLineText:i=>e.substring(n[i],n[i+1])}}function JLe(e){for(let n=e.getLineCount()-1;n>=0;n--){const i=e.getLineText(n),c=pme.exec(i);if(c)return c[1].trimEnd();if(!i.match(Pae))break}}function NHe(e){return typeof e=="string"||e===null}function $Le(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ls(e.sources)&&jr(e.sources,As)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ls(e.sourcesContent)&&jr(e.sourcesContent,NHe))&&(e.names===void 0||e.names===null||ls(e.names)&&jr(e.names,As))}function j2e(e){try{const n=JSON.parse(e);if($Le(n))return n}catch{}}function dme(e){let n=!1,i=0,c=0,u=0,d=0,h=0,S=0,E=0,P;return{get pos(){return i},get error(){return P},get state(){return k(!0,!0)},next(){for(;!n&&i=e.length)return $("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const et=Ust(e.charCodeAt(i));if(et===-1)return $("Invalid character in VLQ"),-1;ve=(et&32)!==0,Fe=Fe|(et&31)<>1,Fe=-Fe):Fe=Fe>>1,Fe}}function qLe(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex}function KLe(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function Vst(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:re.fail(`${e}: not a base64 value`)}function Ust(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function wHe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function XLe(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function YLe(e,n){return re.assert(e.sourceIndex===n.sourceIndex),pf(e.sourcePosition,n.sourcePosition)}function V2e(e,n){return pf(e.generatedPosition,n.generatedPosition)}function U2e(e){return e.sourcePosition}function H2e(e){return e.generatedPosition}function QLe(e,n,i){const c=ws(i),u=n.sourceRoot?vf(n.sourceRoot,c):c,d=vf(n.file,c),h=e.getSourceFileLike(d),S=n.sources.map(we=>vf(we,u)),E=new Map(S.map((we,Fe)=>[e.getCanonicalFileName(we),Fe]));let P,k,F;return{getSourcePosition:ve,getGeneratedPosition:ae};function $(we){const Fe=h!==void 0?Wz(h,we.generatedLine,we.generatedCharacter,!0):-1;let et,Pe;if(KLe(we)){const dt=e.getSourceFileLike(S[we.sourceIndex]);et=n.sources[we.sourceIndex],Pe=dt!==void 0?Wz(dt,we.sourceLine,we.sourceCharacter,!0):-1}return{generatedPosition:Fe,source:et,sourceIndex:we.sourceIndex,sourcePosition:Pe,nameIndex:we.nameIndex}}function J(){if(P===void 0){const we=dme(n.mappings),Fe=oc(we,$);we.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${we.error}`),P=Yn):P=Fe}return P}function X(we){if(F===void 0){const Fe=[];for(const et of J()){if(!wHe(et))continue;let Pe=Fe[et.sourceIndex];Pe||(Fe[et.sourceIndex]=Pe=[]),Pe.push(et)}F=Fe.map(et=>OD(et,YLe,XLe))}return F[we]}function ie(){if(k===void 0){const we=[];for(const Fe of J())we.push(Fe);k=OD(we,V2e,XLe)}return k}function ae(we){const Fe=E.get(e.getCanonicalFileName(we.fileName));if(Fe===void 0)return we;const et=X(Fe);if(!gt(et))return we;let Pe=WD(et,we.pos,U2e,pf);Pe<0&&(Pe=~Pe);const dt=et[Pe];return dt===void 0||dt.sourceIndex!==Fe?we:{fileName:d,pos:dt.generatedPosition}}function ve(we){const Fe=ie();if(!gt(Fe))return we;let et=WD(Fe,we.pos,H2e,pf);et<0&&(et=~et);const Pe=Fe[et];return Pe===void 0||!wHe(Pe)?we:{fileName:S[Pe.sourceIndex],pos:Pe.sourcePosition}}}var e1,pme,Pae,Vx,RHe=G({"src/compiler/sourcemap.ts"(){md(),iP(),e1=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,pme=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Pae=/^\s*(\/\/[@#] .*)?$/,Vx={getSourcePosition:Of,getGeneratedPosition:Of}}});function Nb(e){return e=Gg(e),e?vm(e):0}function ZLe(e){return!e||!Oy(e)?!1:gt(e.elements,J2e)}function J2e(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function _C(e,n){return i;function i(u){return u.kind===312?n(u):c(u)}function c(u){return e.factory.createBundle(Vn(u.sourceFiles,n),u.prepends)}}function sj(e){return!!H8(e)}function D6(e){if(H8(e))return!0;const n=e.importClause&&e.importClause.namedBindings;if(!n||!Oy(n))return!1;let i=0;for(const c of n.elements)J2e(c)&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&R9(e)}function aD(e){return!D6(e)&&(R9(e)||!!e.importClause&&Oy(e.importClause.namedBindings)&&ZLe(e.importClause.namedBindings))}function cj(e,n){const i=e.getEmitResolver(),c=e.getCompilerOptions(),u=[],d=new Rae,h=[],S=new Map;let E,P=!1,k,F=!1,$=!1,J=!1;for(const ae of n.statements)switch(ae.kind){case 272:u.push(ae),!$&&D6(ae)&&($=!0),!J&&aD(ae)&&(J=!0);break;case 271:ae.moduleReference.kind===283&&u.push(ae);break;case 278:if(ae.moduleSpecifier)if(!ae.exportClause)u.push(ae),F=!0;else if(u.push(ae),j0(ae.exportClause))ie(ae);else{const ve=ae.exportClause.name;S.get(Kr(ve))||(lj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve)),$=!0}else ie(ae);break;case 277:ae.isExportEquals&&!k&&(k=ae);break;case 243:if(ul(ae,32))for(const ve of ae.declarationList.declarations)E=wQ(ve,S,E,h);break;case 262:if(ul(ae,32))if(ul(ae,2048))P||(lj(h,Nb(ae),e.factory.getDeclarationName(ae)),P=!0);else{const ve=ae.name;S.get(Kr(ve))||(lj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve))}break;case 263:if(ul(ae,32))if(ul(ae,2048))P||(lj(h,Nb(ae),e.factory.getDeclarationName(ae)),P=!0);else{const ve=ae.name;ve&&!S.get(Kr(ve))&&(lj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve))}break}const X=UJ(e.factory,e.getEmitHelperFactory(),n,c,F,$,J);return X&&u.unshift(X),{externalImports:u,exportSpecifiers:d,exportEquals:k,hasExportStarsToExportValues:F,exportedBindings:h,exportedNames:E,externalHelpersImportDeclaration:X};function ie(ae){for(const ve of uc(ae.exportClause,j0).elements)if(!S.get(Kr(ve.name))){const we=ve.propertyName||ve.name;ae.moduleSpecifier||d.add(we,ve);const Fe=i.getReferencedImportDeclaration(we)||i.getReferencedValueDeclaration(we);Fe&&lj(h,Nb(Fe),ve.name),S.set(Kr(ve.name),!0),E=ur(E,ve.name)}}}function wQ(e,n,i,c){if($_(e.name))for(const u of e.name.elements)cb(u)||(i=wQ(u,n,i,c));else if(!$g(e.name)){const u=Kr(e.name);n.get(u)||(n.set(u,!0),i=ur(i,e.name),mI(e.name)&&lj(c,Nb(e),e.name))}return i}function lj(e,n,i){let c=e[n];return c?c.push(i):e[n]=c=[i],c}function L3(e){return Cm(e)||e.kind===9||qb(e.kind)||xn(e)}function IA(e){return!xn(e)&&L3(e)}function uj(e){return e>=65&&e<=79}function RQ(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function v$(e){if(!kb(e))return;const n=rg(e.expression);return h1(n)?n:void 0}function MHe(e,n,i){for(let c=n;ce4e(c,n,i))}function LHe(e){return $2e(e)||Ep(e)}function MQ(e){return gi(e.members,LHe)}function e4e(e,n,i){return nu(e)&&(!!e.initializer||!n)&&ev(e)===i}function $2e(e){return nu(e)&&ev(e)}function Nae(e){return e.kind===172&&e.initializer!==void 0}function q2e(e){return!pd(e)&&(Mv(e)||xb(e))&&Lu(e.name)}function t4e(e){let n;if(e){const i=e.parameters,c=i.length>0&&iI(i[0]),u=c?1:0,d=c?i.length-1:i.length;for(let h=0;hK2e(i.privateEnv,n))}var fj,Rae,Hst=G({"src/compiler/transformers/utilities.ts"(){md(),fj=class r_e{constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(r_e.toKey(n))}get(n){return this._map.get(r_e.toKey(n))}set(n,i){return this._map.set(r_e.toKey(n),i),this}delete(n){var i;return((i=this._map)==null?void 0:i.delete(r_e.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(s7(n)||$g(n)){const i=n.emitNode.autoGenerate;if((i.flags&7)===4){const c=$J(n),u=xN(c)&&c!==n?r_e.toKey(c):`(generated@${vm(c)})`;return D3(!1,i.prefix,u,i.suffix,r_e.toKey)}else{const c=`(auto@${i.id})`;return D3(!1,i.prefix,c,i.suffix,r_e.toKey)}}return Lu(n)?Kr(n).slice(1):Kr(n)}},Rae=class extends fj{add(e,n){let i=this.get(e);return i?i.push(n):this.set(e,i=[n]),i}remove(e,n){const i=this.get(e);i&&(A8(i,n),i.length||this.delete(e))}}}});function yI(e,n,i,c,u,d){let h=e,S;if(wy(e))for(S=e.right;vSe(e.left)||Vie(e.left);)if(wy(S))h=e=S,S=e.right;else return re.checkDefined(Bn(S,n,kr));let E;const P={context:i,level:c,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:F,createArrayBindingOrAssignmentPattern:$=>i4e(i.factory,$),createObjectBindingOrAssignmentPattern:$=>BHe(i.factory,$),createArrayBindingOrAssignmentElement:o4e,visitor:n};if(S&&(S=Bn(S,n,kr),re.assert(S),xn(S)&&_j(e,S.escapedText)||r4e(e)?S=pj(P,S,!1,h):u?S=pj(P,S,!0,h):Hd(e)&&(h=S)),LQ(P,e,S,h,wy(e)),S&&u){if(!gt(E))return S;E.push(S)}return i.factory.inlineExpressions(E)||i.factory.createOmittedExpression();function k($){E=ur(E,$)}function F($,J,X,ie){re.assertNode($,d?xn:kr);const ae=d?d($,J,X):Tn(i.factory.createAssignment(re.checkDefined(Bn($,n,kr)),J),X);ae.original=ie,k(ae)}}function _j(e,n){const i=gI(e);return u7(i)?Jst(i,n):xn(i)?i.escapedText===n:!1}function Jst(e,n){const i=zG(e);for(const c of i)if(_j(c,n))return!0;return!1}function r4e(e){const n=joe(e);if(n&&Qf(n)&&!aR(n.expression))return!0;const i=gI(e);return!!i&&u7(i)&&FHe(i)}function FHe(e){return!!Ot(zG(e),r4e)}function pF(e,n,i,c,u,d=!1,h){let S;const E=[],P=[],k={context:i,level:c,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression:F,emitBindingOrAssignment:$,createArrayBindingOrAssignmentPattern:J=>Xst(i.factory,J),createObjectBindingOrAssignmentPattern:J=>Yst(i.factory,J),createArrayBindingOrAssignmentElement:J=>Mae(i.factory,J),visitor:n};if(Kc(e)){let J=XY(e);J&&(xn(J)&&_j(e,J.escapedText)||r4e(e))&&(J=pj(k,re.checkDefined(Bn(J,k.visitor,kr)),!1,J),e=i.factory.updateVariableDeclaration(e,e.name,void 0,void 0,J))}if(LQ(k,e,u,e,h),S){const J=i.factory.createTempVariable(void 0);if(d){const X=i.factory.inlineExpressions(S);S=void 0,$(J,X,void 0,void 0)}else{i.hoistVariableDeclaration(J);const X=yl(E);X.pendingExpressions=ur(X.pendingExpressions,i.factory.createAssignment(J,X.value)),Oi(X.pendingExpressions,S),X.value=J}}for(const{pendingExpressions:J,name:X,value:ie,location:ae,original:ve}of E){const we=i.factory.createVariableDeclaration(X,void 0,void 0,J?i.factory.inlineExpressions(ur(J,ie)):ie);we.original=ve,Tn(we,ae),P.push(we)}return P;function F(J){S=ur(S,J)}function $(J,X,ie,ae){re.assertNode(J,lR),S&&(X=i.factory.inlineExpressions(ur(S,X)),S=void 0),E.push({pendingExpressions:S,name:J,value:X,location:ie,original:ae})}}function LQ(e,n,i,c,u){const d=gI(n);if(!u){const h=Bn(XY(n),e.visitor,kr);h?i?(i=qst(e,i,h,c),!IA(h)&&u7(d)&&(i=pj(e,i,!0,c))):i=h:i||(i=e.context.factory.createVoidZero())}qX(d)?dj(e,n,d,i,c):rde(d)?$st(e,n,d,i,c):e.emitBindingOrAssignment(d,i,c,n)}function dj(e,n,i,c,u){const d=zG(i),h=d.length;if(h!==1){const P=!$X(n)||h!==0;c=pj(e,c,P,u)}let S,E;for(let P=0;P=1&&!(k.transformFlags&98304)&&!(gI(k).transformFlags&98304)&&!Qf(F))S=ur(S,Bn(k,e.visitor,ld));else{S&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(S),c,u,i),S=void 0);const $=Kst(e,c,F);Qf(F)&&(E=ur(E,$.argumentExpression)),LQ(e,k,$,k)}}}S&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(S),c,u,i)}function $st(e,n,i,c,u){const d=zG(i),h=d.length;if(e.level<1&&e.downlevelIteration)c=pj(e,Tn(e.context.getEmitHelperFactory().createReadHelper(c,h>0&&YY(d[h-1])?void 0:h),u),!1,u);else if(h!==1&&(e.level<1||h===0)||jr(d,cb)){const P=!$X(n)||h!==0;c=pj(e,c,P,u)}let S,E;for(let P=0;P=1)if(k.transformFlags&65536||e.hasTransformedPriorElement&&!WHe(k)){e.hasTransformedPriorElement=!0;const F=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(F),E=ur(E,[F,k]),S=ur(S,e.createArrayBindingOrAssignmentElement(F))}else S=ur(S,k);else{if(cb(k))continue;if(YY(k)){if(P===h-1){const F=e.context.factory.createArraySliceCall(c,P);LQ(e,k,F,k)}}else{const F=e.context.factory.createElementAccessExpression(c,P);LQ(e,k,F,k)}}}if(S&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(S),c,u,i),E)for(const[P,k]of E)LQ(e,k,P,k)}function WHe(e){const n=gI(e);if(!n||cb(n))return!0;const i=joe(e);if(i&&!Qv(i))return!1;const c=XY(e);return c&&!IA(c)?!1:u7(n)?jr(zG(n),WHe):xn(n)}function qst(e,n,i,c){return n=pj(e,n,!0,c),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,i,void 0,n)}function Kst(e,n,i){const{factory:c}=e.context;if(Qf(i)){const u=pj(e,re.checkDefined(Bn(i.expression,e.visitor,kr)),!1,i);return e.context.factory.createElementAccessExpression(n,u)}else if(Ox(i)){const u=c.cloneNode(i);return e.context.factory.createElementAccessExpression(n,u)}else{const u=e.context.factory.createIdentifier(Kr(i));return e.context.factory.createPropertyAccessExpression(n,u)}}function pj(e,n,i,c){if(xn(n)&&i)return n;{const u=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(u),e.emitExpression(Tn(e.context.factory.createAssignment(u,n),c))):e.emitBindingOrAssignment(u,n,c,void 0),u}}function Xst(e,n){return re.assertEachNode(n,Uu),e.createArrayBindingPattern(n)}function i4e(e,n){return re.assertEachNode(n,p9),e.createArrayLiteralExpression(Vn(n,e.converters.convertToArrayAssignmentElement))}function Yst(e,n){return re.assertEachNode(n,sa),e.createObjectBindingPattern(n)}function BHe(e,n){return re.assertEachNode(n,d9),e.createObjectLiteralExpression(Vn(n,e.converters.convertToObjectAssignmentElement))}function Mae(e,n){return e.createBindingElement(void 0,void 0,n)}function o4e(e){return e}var vme,Qst=G({"src/compiler/transformers/destructuring.ts"(){md(),vme=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(vme||{})}});function T$(e,n,i=e.createThis()){const c=e.createAssignment(n,i),u=e.createExpressionStatement(c),d=e.createBlock([u],!1),h=e.createClassStaticBlockDeclaration(d);return Sa(h).classThis=n,h}function S$(e){var n;if(!Ep(e)||e.body.statements.length!==1)return!1;const i=e.body.statements[0];return kb(i)&&Zv(i.expression,!0)&&xn(i.expression.left)&&((n=e.emitNode)==null?void 0:n.classThis)===i.expression.left&&i.expression.right.kind===110}function bme(e){var n;return!!((n=e.emitNode)!=null&&n.classThis)&>(e.members,S$)}function FW(e,n,i,c){if(bme(n))return n;const u=T$(e,i,c);n.name&&lp(u.body.statements[0],n.name);const d=e.createNodeArray([u,...n.members]);Tn(d,n.members);const h=Ih(n)?e.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,d):e.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,d);return Sa(h).classThis=i,h}var X2e=G({"src/compiler/transformers/classThis.ts"(){md()}});function mj(e,n,i){const c=Gg(iv(i));return(Ih(c)||mg(c))&&!c.name&&ul(c,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(n)}function Tme(e,n,i){const{factory:c}=e;if(i!==void 0)return{assignedName:c.createStringLiteral(i),name:n};if(Qv(n)||Lu(n))return{assignedName:c.createStringLiteralFromNode(n),name:n};if(Qv(n.expression)&&!xn(n.expression))return{assignedName:c.createStringLiteralFromNode(n.expression),name:n};const u=c.getGeneratedNameForNode(n);e.hoistVariableDeclaration(u);const d=e.getEmitHelperFactory().createPropKeyHelper(n.expression),h=c.createAssignment(u,d),S=c.updateComputedPropertyName(n,h);return{assignedName:u,name:S}}function WW(e,n,i=e.factory.createThis()){const{factory:c}=e,u=e.getEmitHelperFactory().createSetFunctionNameHelper(i,n),d=c.createExpressionStatement(u),h=c.createBlock([d],!1),S=c.createClassStaticBlockDeclaration(h);return Sa(S).assignedName=n,S}function gj(e){var n;if(!Ep(e)||e.body.statements.length!==1)return!1;const i=e.body.statements[0];return kb(i)&&uW(i.expression,"___setFunctionName")&&i.expression.arguments.length>=2&&i.expression.arguments[1]===((n=e.emitNode)==null?void 0:n.assignedName)}function Sme(e){var n;return!!((n=e.emitNode)!=null&&n.assignedName)&>(e.members,gj)}function Y2e(e){return!!e.name||Sme(e)}function Eme(e,n,i,c){if(Sme(n))return n;const{factory:u}=e,d=WW(e,i,c);n.name&&lp(d.body.statements[0],n.name);const h=Ho(n.members,S$)+1,S=n.members.slice(0,h),E=n.members.slice(h),P=u.createNodeArray([...S,d,...E]);return Tn(P,n.members),n=Ih(n)?u.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,P):u.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,P),Sa(n).assignedName=i,n}function E$(e,n,i,c){if(c&&Sd(i)&&iH(i))return n;const{factory:u}=e,d=iv(n),h=v0(d)?uc(Eme(e,d,i),v0):e.getEmitHelperFactory().createSetFunctionNameHelper(d,i);return u.restoreOuterExpressions(n,h)}function Zst(e,n,i,c){const{factory:u}=e,{assignedName:d,name:h}=Tme(e,n.name,c),S=E$(e,n.initializer,d,i);return u.updatePropertyAssignment(n,h,S)}function ect(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):mj(u,n.name,n.objectAssignmentInitializer),h=E$(e,n.objectAssignmentInitializer,d,i);return u.updateShorthandPropertyAssignment(n,n.name,h)}function tct(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):mj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,h)}function ax(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):mj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,h)}function nct(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):mj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,h)}function a4e(e,n,i,c){const{factory:u}=e,{assignedName:d,name:h}=Tme(e,n.name,c),S=E$(e,n.initializer,d,i);return u.updatePropertyDeclaration(n,n.modifiers,h,n.questionToken??n.exclamationToken,n.type,S)}function s4e(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):mj(u,n.left,n.right),h=E$(e,n.right,d,i);return u.updateBinaryExpression(n,n.left,n.operatorToken,h)}function c4e(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):u.createStringLiteral(n.isExportEquals?"":"default"),h=E$(e,n.expression,d,i);return u.updateExportAssignment(n,n.modifiers,h)}function mE(e,n,i,c){switch(n.kind){case 303:return Zst(e,n,i,c);case 304:return ect(e,n,i,c);case 260:return tct(e,n,i,c);case 169:return ax(e,n,i,c);case 208:return nct(e,n,i,c);case 172:return a4e(e,n,i,c);case 226:return s4e(e,n,i,c);case 277:return c4e(e,n,i,c)}}var rct=G({"src/compiler/transformers/namedEvaluation.ts"(){md()}});function xme(e,n,i,c,u,d){const h=Bn(n.tag,i,kr);re.assert(h);const S=[void 0],E=[],P=[],k=n.template;if(d===0&&!TH(k))return Xo(n,i,e);const{factory:F}=e;if(K7(k))E.push(Q2e(F,k)),P.push(l4e(F,k,c));else{E.push(Q2e(F,k.head)),P.push(l4e(F,k.head,c));for(const J of k.templateSpans)E.push(Q2e(F,J.literal)),P.push(l4e(F,J.literal,c)),S.push(re.checkDefined(Bn(J.expression,i,kr)))}const $=e.getEmitHelperFactory().createTemplateObjectHelper(F.createArrayLiteralExpression(E),F.createArrayLiteralExpression(P));if(Bv(c)){const J=F.createUniqueName("templateObject");u(J),S[0]=F.createLogicalOr(J,F.createAssignment(J,$))}else S[0]=$;return F.createCallExpression(h,void 0,S)}function Q2e(e,n){return n.templateFlags&26656?e.createVoidZero():e.createStringLiteral(n.text)}function l4e(e,n,i){let c=n.rawText;if(c===void 0){re.assertIsDefined(i,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),c=m7(i,n);const u=n.kind===15||n.kind===18;c=c.substring(1,c.length-(u?1:2))}return c=c.replace(/\r\n?/g,` -`),Tn(e.createStringLiteral(c),n)}var Ame,ict=G({"src/compiler/transformers/taggedTemplate.ts"(){md(),Ame=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Ame||{})}});function u4e(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:d,hoistVariableDeclaration:h}=e,S=e.getEmitResolver(),E=e.getCompilerOptions(),P=iu(E),k=Zp(E),F=!!E.experimentalDecorators,$=E.emitDecoratorMetadata?_4e(e):void 0,J=e.onEmitNode,X=e.onSubstituteNode;e.onEmitNode=bE,e.onSubstituteNode=hh,e.enableSubstitution(211),e.enableSubstitution(212);let ie,ae,ve,we,Fe,et,Pe,dt;return Ie;function Ie(fe){return fe.kind===313?ct(fe):Ct(fe)}function ct(fe){return n.createBundle(fe.sourceFiles.map(Ct),Qo(fe.prepends,_n=>_n.kind===315?mEe(_n,"js"):_n))}function Ct(fe){if(fe.isDeclarationFile)return fe;ie=fe;const _n=Lt(fe,En);return $N(_n,e.readEmitHelpers()),ie=void 0,_n}function Lt(fe,_n){const Xn=we,_i=Fe,$o=et;Ze(fe);const Sc=_n(fe);return we!==Xn&&(Fe=_i),we=Xn,et=$o,Sc}function Ze(fe){switch(fe.kind){case 312:case 269:case 268:case 241:we=fe,Fe=void 0;break;case 263:case 262:if(ul(fe,128))break;fe.name?Mt(fe):re.assert(fe.kind===263||ul(fe,2048));break}}function Ke(fe){return Lt(fe,st)}function st(fe){return fe.transformFlags&1?jt(fe):fe}function It(fe){return Lt(fe,Yt)}function Yt(fe){switch(fe.kind){case 272:case 271:case 277:case 278:return Et(fe);default:return st(fe)}}function Et(fe){if(__(fe)!==fe)return fe.transformFlags&1?Xo(fe,Ke,e):fe;switch(fe.kind){case 272:return vo(fe);case 271:return G_(fe);case 277:return Pc(fe);case 278:return hc(fe);default:re.fail("Unhandled ellided statement")}}function at(fe){return Lt(fe,Qt)}function Qt(fe){if(!(fe.kind===278||fe.kind===272||fe.kind===273||fe.kind===271&&fe.moduleReference.kind===283))return fe.transformFlags&1||ul(fe,32)?jt(fe):fe}function nn(fe){return _n=>Lt(_n,Xn=>Rn(Xn,fe))}function Rn(fe,_n){switch(fe.kind){case 176:return _a(fe);case 172:return na(fe,_n);case 177:return w_(fe,_n);case 178:return Eu(fe,_n);case 174:return Cu(fe,_n);case 175:return Xo(fe,Ke,e);case 240:return fe;case 181:return;default:return re.failBadSyntaxKind(fe)}}function cn(fe){return _n=>Lt(_n,Xn=>qt(Xn,fe))}function qt(fe,_n){switch(fe.kind){case 303:case 304:case 305:return Ke(fe);case 177:return w_(fe,_n);case 178:return Eu(fe,_n);case 174:return Cu(fe,_n);default:return re.failBadSyntaxKind(fe)}}function Kt(fe){return Jh(fe)?void 0:Ke(fe)}function wr(fe){return Mf(fe)?void 0:Ke(fe)}function Wr(fe){if(!Jh(fe)&&!(F7(fe.kind)&28895)&&!(ae&&fe.kind===95))return fe}function jt(fe){if(dl(fe)&&ul(fe,128))return n.createNotEmittedStatement(fe);switch(fe.kind){case 95:case 90:return ae?void 0:fe;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 n.createNotEmittedStatement(fe);case 270:return;case 264:return n.createNotEmittedStatement(fe);case 263:return Fr(fe);case 231:return Ki(fe);case 298:return za(fe);case 233:return Ia(fe);case 210:return fr(fe);case 176:case 172:case 174:case 177:case 178:case 175:return re.fail("Class and object literal elements must be visited with their respective visitors");case 262:return He(fe);case 218:return Hn(fe);case 219:return dr(fe);case 169:return Mr(fe);case 217:return Wn(fe);case 216:case 234:return $r(fe);case 238:return Br(fe);case 213:return Ei(fe);case 214:return Ln(fe);case 215:return Sr(fe);case 235:return Ge(fe);case 266:return Io(fe);case 243:return Pr(fe);case 260:return ln(fe);case 267:return Nn(fe);case 271:return G_(fe);case 285:return yi(fe);case 286:return go(fe);default:return Xo(fe,Ke,e)}}function En(fe){const _n=hv(E,"alwaysStrict")&&!(Bv(fe)&&k>=5)&&!Rx(fe);return n.updateSourceFile(fe,ume(fe.statements,It,e,0,_n))}function fr(fe){return n.updateObjectLiteralExpression(fe,Wa(fe.properties,cn(fe),DN))}function Tr(fe){let _n=0;gt(b$(fe,!0,!0))&&(_n|=1);const Xn=YC(fe);return Xn&&iv(Xn.expression).kind!==106&&(_n|=64),yP(F,fe)&&(_n|=2),b7(F,fe)&&(_n|=4),u_(fe)?_n|=8:mf(fe)?_n|=32:Ym(fe)&&(_n|=16),_n}function Vr(fe){return!!(fe.transformFlags&8192)}function Pn(fe){return X2(fe)||gt(fe.typeParameters)||gt(fe.heritageClauses,Vr)||gt(fe.members,Vr)}function Fr(fe){const _n=Tr(fe),Xn=P<=1&&!!(_n&7);if(!Pn(fe)&&!yP(F,fe)&&!u_(fe))return n.updateClassDeclaration(fe,Wa(fe.modifiers,Wr,Mf),fe.name,void 0,Wa(fe.heritageClauses,Ke,Qb),Wa(fe.members,nn(fe),J_));Xn&&e.startLexicalEnvironment();const _i=Xn||_n&8;let $o=_i?Wa(fe.modifiers,wr,Am):Wa(fe.modifiers,Ke,Am);_n&2&&($o=no($o,fe));const xs=_i&&!fe.name||_n&4||_n&1?fe.name??n.getGeneratedNameForNode(fe):fe.name,Fs=n.updateClassDeclaration(fe,$o,xs,void 0,Wa(fe.heritageClauses,Ke,Qb),io(fe));let Tl=wd(fe);_n&1&&(Tl|=64),_s(Fs,Tl);let fc;if(Xn){const Gd=[Fs],ag=Hie(Ff(ie.text,fe.members.end),20),ah=n.getInternalName(fe),bm=n.createPartiallyEmittedExpression(ah);l6(bm,ag.end),_s(bm,3072);const ay=n.createReturnStatement(bm);u3(ay,ag.pos),_s(ay,3840),Gd.push(ay),Um(Gd,e.endLexicalEnvironment());const yp=n.createImmediatelyInvokedArrowFunction(Gd);Sp(yp,1);const Cg=n.createVariableDeclaration(n.getLocalName(fe,!1,!1),void 0,void 0,yp);Ls(Cg,fe);const wp=n.createVariableStatement(void 0,n.createVariableDeclarationList([Cg],1));Ls(wp,fe),dy(wp,fe),lp(wp,$E(fe)),lb(wp),fc=wp}else fc=Fs;if(_i){if(_n&8)return[fc,Cp(fe)];if(_n&32)return[fc,n.createExportDefault(n.getLocalName(fe,!1,!0))];if(_n&16)return[fc,n.createExternalModuleExport(n.getDeclarationName(fe,!1,!0))]}return fc}function Ki(fe){let _n=Wa(fe.modifiers,wr,Am);return yP(F,fe)&&(_n=no(_n,fe)),n.updateClassExpression(fe,_n,fe.name,void 0,Wa(fe.heritageClauses,Ke,Qb),io(fe))}function io(fe){const _n=Wa(fe.members,nn(fe),J_);let Xn;const _i=sC(fe),$o=_i&&gi(_i.parameters,Sc=>DT(Sc,_i));if($o)for(const Sc of $o){const xs=n.createPropertyDeclaration(void 0,Sc.name,void 0,void 0,void 0);Ls(xs,Sc),Xn=ur(Xn,xs)}return Xn?(Xn=Oi(Xn,_n),Tn(n.createNodeArray(Xn),fe.members)):_n}function no(fe,_n){const Xn=Mo(_n,_n);if(gt(Xn)){const _i=[];Oi(_i,Qw(fe,Voe)),Oi(_i,gi(fe,Jh)),Oi(_i,Xn),Oi(_i,gi(qO(fe,Voe),Mf)),fe=Tn(n.createNodeArray(_i),fe)}return fe}function os(fe,_n,Xn){if(Fl(Xn)&&xde(F,_n,Xn)){const _i=Mo(_n,Xn);if(gt(_i)){const $o=[];Oi($o,gi(fe,Jh)),Oi($o,_i),Oi($o,gi(fe,Mf)),fe=Tn(n.createNodeArray($o),fe)}}return fe}function Mo(fe,_n){if(F)return zHe?ki(fe,_n):$i(fe,_n)}function $i(fe,_n){if($){let Xn;if(gc(fe)){const _i=i().createMetadataHelper("design:type",$.serializeTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe));Xn=ur(Xn,n.createDecorator(_i))}if(Jc(fe)){const _i=i().createMetadataHelper("design:paramtypes",$.serializeParameterTypesOfNode({currentLexicalScope:we,currentNameScope:_n},fe,_n));Xn=ur(Xn,n.createDecorator(_i))}if(Wl(fe)){const _i=i().createMetadataHelper("design:returntype",$.serializeReturnTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe));Xn=ur(Xn,n.createDecorator(_i))}return Xn}}function ki(fe,_n){if($){let Xn;if(gc(fe)){const _i=n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe)));Xn=ur(Xn,_i)}if(Jc(fe)){const _i=n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeParameterTypesOfNode({currentLexicalScope:we,currentNameScope:_n},fe,_n)));Xn=ur(Xn,_i)}if(Wl(fe)){const _i=n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeReturnTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe)));Xn=ur(Xn,_i)}if(Xn){const _i=i().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(Xn,!0));return[n.createDecorator(_i)]}}}function gc(fe){const _n=fe.kind;return _n===174||_n===177||_n===178||_n===172}function Wl(fe){return fe.kind===174}function Jc(fe){switch(fe.kind){case 263:case 231:return sC(fe)!==void 0;case 174:case 177:case 178:return!0}return!1}function au(fe,_n){const Xn=fe.name;return Lu(Xn)?n.createIdentifier(""):Qf(Xn)?_n&&!IA(Xn.expression)?n.getGeneratedNameForNode(Xn):Xn.expression:xn(Xn)?n.createStringLiteral(Kr(Xn)):n.cloneNode(Xn)}function qn(fe){const _n=fe.name;if(Qf(_n)&&(!ev(fe)&&et||X2(fe)&&F)){const Xn=Bn(_n.expression,Ke,kr);re.assert(Xn);const _i=h2(Xn);if(!IA(_i)){const $o=n.getGeneratedNameForNode(_n);return h($o),n.updateComputedPropertyName(_n,n.createAssignment($o,Xn))}}return re.checkDefined(Bn(_n,Ke,qg))}function za(fe){if(fe.token!==119)return Xo(fe,Ke,e)}function Ia(fe){return n.updateExpressionWithTypeArguments(fe,re.checkDefined(Bn(fe.expression,Ke,ib)),void 0)}function zi(fe){return!ny(fe.body)}function na(fe,_n){const Xn=fe.flags&33554432||ul(fe,64);if(Xn&&!(F&&X2(fe)))return;let _i=Fl(_n)?Xn?Wa(fe.modifiers,wr,Am):Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return _i=os(_i,fe,_n),Xn?n.updatePropertyDeclaration(fe,Hi(_i,n.createModifiersFromModifierFlags(128)),re.checkDefined(Bn(fe.name,Ke,qg)),void 0,void 0,void 0):n.updatePropertyDeclaration(fe,_i,qn(fe),void 0,void 0,Bn(fe.initializer,Ke,kr))}function _a(fe){if(zi(fe))return n.updateConstructorDeclaration(fe,void 0,sm(fe.parameters,Ke,e),Au(fe.body,fe))}function us(fe,_n,Xn,_i,$o,Sc){const xs=_i[$o],Fs=_n[xs];if(Oi(fe,Wa(_n,Ke,dl,Xn,xs-Xn)),My(Fs)){const Tl=[];us(Tl,Fs.tryBlock.statements,0,_i,$o+1,Sc);const fc=n.createNodeArray(Tl);Tn(fc,Fs.tryBlock.statements),fe.push(n.updateTryStatement(Fs,n.updateBlock(Fs.tryBlock,Tl),Bn(Fs.catchClause,Ke,A3),Bn(Fs.finallyBlock,Ke,Ou)))}else Oi(fe,Wa(_n,Ke,dl,xs,1)),Oi(fe,Sc);Oi(fe,Wa(_n,Ke,dl,xs+1))}function Au(fe,_n){const Xn=_n&&gi(_n.parameters,Tl=>DT(Tl,_n));if(!gt(Xn))return ox(fe,Ke,e);let _i=[];u();const $o=n.copyPrologue(fe.statements,_i,!1,Ke),Sc=mme(fe.statements,$o),xs=Qo(Xn,Qu);Sc.length?us(_i,fe.statements,$o,Sc,0,xs):(Oi(_i,xs),Oi(_i,Wa(fe.statements,Ke,dl,$o))),_i=n.mergeLexicalEnvironment(_i,d());const Fs=n.createBlock(Tn(n.createNodeArray(_i),fe.statements),!0);return Tn(Fs,fe),Ls(Fs,fe),Fs}function Qu(fe){const _n=fe.name;if(!xn(_n))return;const Xn=kl(Tn(n.cloneNode(_n),_n),_n.parent);_s(Xn,3168);const _i=kl(Tn(n.cloneNode(_n),_n),_n.parent);return _s(_i,3072),lb(aW(Tn(Ls(n.createExpressionStatement(n.createAssignment(Tn(n.createPropertyAccessExpression(n.createThis(),Xn),fe.name),_i)),fe),TA(fe,-1))))}function Cu(fe,_n){if(!(fe.transformFlags&1))return fe;if(!zi(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateMethodDeclaration(fe,Xn,fe.asteriskToken,qn(fe),void 0,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e))}function yf(fe){return!(ny(fe.body)&&ul(fe,64))}function w_(fe,_n){if(!(fe.transformFlags&1))return fe;if(!yf(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateGetAccessorDeclaration(fe,Xn,qn(fe),sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([]))}function Eu(fe,_n){if(!(fe.transformFlags&1))return fe;if(!yf(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateSetAccessorDeclaration(fe,Xn,qn(fe),sm(fe.parameters,Ke,e),ox(fe.body,Ke,e)||n.createBlock([]))}function He(fe){if(!zi(fe))return n.createNotEmittedStatement(fe);const _n=n.updateFunctionDeclaration(fe,Wa(fe.modifiers,Wr,Mf),fe.asteriskToken,fe.name,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([]));if(u_(fe)){const Xn=[_n];return Yg(Xn,fe),Xn}return _n}function Hn(fe){return zi(fe)?n.updateFunctionExpression(fe,Wa(fe.modifiers,Wr,Mf),fe.asteriskToken,fe.name,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([])):n.createOmittedExpression()}function dr(fe){return n.updateArrowFunction(fe,Wa(fe.modifiers,Wr,Mf),void 0,sm(fe.parameters,Ke,e),void 0,fe.equalsGreaterThanToken,ox(fe.body,Ke,e))}function Mr(fe){if(iI(fe))return;const _n=n.updateParameterDeclaration(fe,Wa(fe.modifiers,Xn=>Jh(Xn)?Ke(Xn):void 0,Am),fe.dotDotDotToken,re.checkDefined(Bn(fe.name,Ke,lR)),void 0,void 0,Bn(fe.initializer,Ke,kr));return _n!==fe&&(dy(_n,fe),Tn(_n,Db(fe)),lp(_n,Db(fe)),_s(_n.name,64)),_n}function Pr(fe){if(u_(fe)){const _n=n3(fe.declarationList);return _n.length===0?void 0:Tn(n.createExpressionStatement(n.inlineExpressions(Vn(_n,Bt))),fe)}else return Xo(fe,Ke,e)}function Bt(fe){const _n=fe.name;return $_(_n)?yI(fe,Ke,e,0,!1,Wy):Tn(n.createAssignment(Og(_n),re.checkDefined(Bn(fe.initializer,Ke,kr))),fe)}function ln(fe){const _n=n.updateVariableDeclaration(fe,re.checkDefined(Bn(fe.name,Ke,lR)),void 0,void 0,Bn(fe.initializer,Ke,kr));return fe.type&&H7(_n.name,fe.type),_n}function Wn(fe){const _n=iv(fe.expression,-7);if(f7(_n)){const Xn=Bn(fe.expression,Ke,kr);return re.assert(Xn),n.createPartiallyEmittedExpression(Xn,fe)}return Xo(fe,Ke,e)}function $r(fe){const _n=Bn(fe.expression,Ke,kr);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Ge(fe){const _n=Bn(fe.expression,Ke,ib);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Br(fe){const _n=Bn(fe.expression,Ke,kr);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Ei(fe){return n.updateCallExpression(fe,re.checkDefined(Bn(fe.expression,Ke,kr)),void 0,Wa(fe.arguments,Ke,kr))}function Ln(fe){return n.updateNewExpression(fe,re.checkDefined(Bn(fe.expression,Ke,kr)),void 0,Wa(fe.arguments,Ke,kr))}function Sr(fe){return n.updateTaggedTemplateExpression(fe,re.checkDefined(Bn(fe.tag,Ke,kr)),void 0,re.checkDefined(Bn(fe.template,Ke,Hz)))}function yi(fe){return n.updateJsxSelfClosingElement(fe,re.checkDefined(Bn(fe.tagName,Ke,QX)),void 0,re.checkDefined(Bn(fe.attributes,Ke,CR)))}function go(fe){return n.updateJsxOpeningElement(fe,re.checkDefined(Bn(fe.tagName,Ke,QX)),void 0,re.checkDefined(Bn(fe.attributes,Ke,CR)))}function Ao(fe){return!G8(fe)||gk(E)}function Io(fe){if(!Ao(fe))return n.createNotEmittedStatement(fe);const _n=[];let Xn=4;const _i=Jn(_n,fe);_i&&(k!==4||we!==ie)&&(Xn|=1024);const $o=pl(fe),Sc=R_(fe),xs=u_(fe)?n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0):n.getDeclarationName(fe,!1,!0);let Fs=n.createLogicalOr(xs,n.createAssignment(xs,n.createObjectLiteralExpression()));if(u_(fe)){const fc=n.getLocalName(fe,!1,!0);Fs=n.createAssignment(fc,Fs)}const Tl=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,$o)],void 0,ze(fe,Sc)),void 0,[Fs]));return Ls(Tl,fe),_i&&(uI(Tl,void 0),cW(Tl,void 0)),Tn(Tl,fe),cE(Tl,Xn),_n.push(Tl),_n}function ze(fe,_n){const Xn=ve;ve=_n;const _i=[];c();const $o=Vn(fe.members,Ce);return Um(_i,d()),Oi(_i,$o),ve=Xn,n.createBlock(Tn(n.createNodeArray(_i),fe.members),!0)}function Ce(fe){const _n=au(fe,!1),Xn=kt(fe),_i=n.createAssignment(n.createElementAccessExpression(ve,_n),Xn),$o=Xn.kind===11?_i:n.createAssignment(n.createElementAccessExpression(ve,_i),_n);return Tn(n.createExpressionStatement(Tn($o,fe)),fe)}function kt(fe){const _n=S.getConstantValue(fe);return _n!==void 0?typeof _n=="string"?n.createStringLiteral(_n):n.createNumericLiteral(_n):(og(),fe.initializer?re.checkDefined(Bn(fe.initializer,Ke,kr)):n.createVoidZero())}function qe(fe){const _n=__(fe,py);return _n?sme(_n,gk(E)):!0}function Mt(fe){Fe||(Fe=new Map);const _n=mn(fe);Fe.has(_n)||Fe.set(_n,fe)}function ge(fe){if(Fe){const _n=mn(fe);return Fe.get(_n)===fe}return!0}function mn(fe){return re.assertNode(fe.name,xn),fe.name.escapedText}function Jn(fe,_n){const Xn=n.createVariableDeclaration(n.getLocalName(_n,!1,!0)),_i=we.kind===312?0:1,$o=n.createVariableStatement(Wa(_n.modifiers,Wr,Mf),n.createVariableDeclarationList([Xn],_i));return Ls(Xn,_n),uI(Xn,void 0),cW(Xn,void 0),Ls($o,_n),Mt(_n),ge(_n)?(_n.kind===266?lp($o.declarationList,_n):lp($o,_n),dy($o,_n),cE($o,2048),fe.push($o),!0):!1}function Nn(fe){if(!qe(fe))return n.createNotEmittedStatement(fe);re.assertNode(fe.name,xn,"A TypeScript namespace should have an Identifier name."),km();const _n=[];let Xn=4;const _i=Jn(_n,fe);_i&&(k!==4||we!==ie)&&(Xn|=1024);const $o=pl(fe),Sc=R_(fe),xs=u_(fe)?n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0):n.getDeclarationName(fe,!1,!0);let Fs=n.createLogicalOr(xs,n.createAssignment(xs,n.createObjectLiteralExpression()));if(u_(fe)){const fc=n.getLocalName(fe,!1,!0);Fs=n.createAssignment(fc,Fs)}const Tl=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,$o)],void 0,Lr(fe,Sc)),void 0,[Fs]));return Ls(Tl,fe),_i&&(uI(Tl,void 0),cW(Tl,void 0)),Tn(Tl,fe),cE(Tl,Xn),_n.push(Tl),_n}function Lr(fe,_n){const Xn=ve,_i=ae,$o=Fe;ve=_n,ae=fe,Fe=void 0;const Sc=[];c();let xs,Fs;if(fe.body)if(fe.body.kind===268)Lt(fe.body,fc=>Oi(Sc,Wa(fc.statements,at,dl))),xs=fe.body.statements,Fs=fe.body;else{const fc=Nn(fe.body);fc&&(ls(fc)?Oi(Sc,fc):Sc.push(fc));const Gd=qi(fe).body;xs=TA(Gd.statements,-1)}Um(Sc,d()),ve=Xn,ae=_i,Fe=$o;const Tl=n.createBlock(Tn(n.createNodeArray(Sc),xs),!0);return Tn(Tl,Fs),(!fe.body||fe.body.kind!==268)&&_s(Tl,wd(Tl)|3072),Tl}function qi(fe){if(fe.body.kind===267)return qi(fe.body)||fe.body}function vo(fe){if(!fe.importClause)return fe;if(fe.importClause.isTypeOnly)return;const _n=Bn(fe.importClause,Ro,Tk);return _n||E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2?n.updateImportDeclaration(fe,void 0,_n,fe.moduleSpecifier,fe.attributes):void 0}function Ro(fe){re.assert(!fe.isTypeOnly);const _n=Md(fe)?fe.name:void 0,Xn=Bn(fe.namedBindings,Ts,ade);return _n||Xn?n.updateImportClause(fe,!1,_n,Xn):void 0}function Ts(fe){if(fe.kind===274)return Md(fe)?fe:void 0;{const _n=E.verbatimModuleSyntax||E.preserveValueImports&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Xn=Wa(fe.elements,Cc,qE);return _n||gt(Xn)?n.updateNamedImports(fe,Xn):void 0}}function Cc(fe){return!fe.isTypeOnly&&Md(fe)?fe:void 0}function Pc(fe){return E.verbatimModuleSyntax||S.isValueAliasDeclaration(fe)?Xo(fe,Ke,e):void 0}function hc(fe){if(fe.isTypeOnly)return;if(!fe.exportClause||G0(fe.exportClause))return fe;const _n=E.verbatimModuleSyntax||!!fe.moduleSpecifier&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Xn=Bn(fe.exportClause,_i=>Tf(_i,_n),Qre);return Xn?n.updateExportDeclaration(fe,void 0,fe.isTypeOnly,Xn,fe.moduleSpecifier,fe.attributes):void 0}function bl(fe,_n){const Xn=Wa(fe.elements,ma,gy);return _n||gt(Xn)?n.updateNamedExports(fe,Xn):void 0}function Tc(fe){return n.updateNamespaceExport(fe,re.checkDefined(Bn(fe.name,Ke,xn)))}function Tf(fe,_n){return G0(fe)?Tc(fe):bl(fe,_n)}function ma(fe){return!fe.isTypeOnly&&(E.verbatimModuleSyntax||S.isValueAliasDeclaration(fe))?fe:void 0}function Bl(fe){return Md(fe)||!Bv(ie)&&S.isTopLevelValueImportEqualsWithEntityName(fe)}function G_(fe){if(fe.isTypeOnly)return;if(Mx(fe)){const Xn=Md(fe);return!Xn&&E.importsNotUsedAsValues===1?Ls(Tn(n.createImportDeclaration(void 0,void 0,fe.moduleReference.expression,void 0),fe),fe):Xn?Xo(fe,Ke,e):void 0}if(!Bl(fe))return;const _n=zoe(n,fe.moduleReference);return _s(_n,7168),Ym(fe)||!u_(fe)?Ls(Tn(n.createVariableStatement(Wa(fe.modifiers,Wr,Mf),n.createVariableDeclarationList([Ls(n.createVariableDeclaration(fe.name,void 0,void 0,_n),fe)])),fe),fe):Ls(xg(fe.name,_n,fe),fe)}function u_(fe){return ae!==void 0&&ul(fe,32)}function xa(fe){return ae===void 0&&ul(fe,32)}function Ym(fe){return xa(fe)&&!ul(fe,2048)}function mf(fe){return xa(fe)&&ul(fe,2048)}function Cp(fe){const _n=n.createAssignment(n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0),n.getLocalName(fe));lp(_n,tv(fe.name?fe.name.pos:fe.pos,fe.end));const Xn=n.createExpressionStatement(_n);return lp(Xn,tv(-1,fe.end)),Xn}function Yg(fe,_n){fe.push(Cp(_n))}function xg(fe,_n,Xn){return Tn(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(ve,fe,!1,!0),_n)),Xn)}function Wy(fe,_n,Xn){return Tn(n.createAssignment(Og(fe),_n),Xn)}function Og(fe){return n.getNamespaceMemberName(ve,fe,!1,!0)}function pl(fe){const _n=n.getGeneratedNameForNode(fe);return lp(_n,fe.name),_n}function R_(fe){return n.getGeneratedNameForNode(fe)}function og(){Pe&8||(Pe|=8,e.enableSubstitution(80))}function km(){Pe&2||(Pe|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function M_(fe){return Gg(fe).kind===267}function oy(fe){return Gg(fe).kind===266}function bE(fe,_n,Xn){const _i=dt,$o=ie;Nu(_n)&&(ie=_n),Pe&2&&M_(_n)&&(dt|=2),Pe&8&&oy(_n)&&(dt|=8),J(fe,_n,Xn),dt=_i,ie=$o}function hh(fe,_n){return _n=X(fe,_n),fe===1?d_(_n):XE(_n)?qo(_n):_n}function qo(fe){if(Pe&2){const _n=fe.name,Xn=Qi(_n);if(Xn){if(fe.objectAssignmentInitializer){const _i=n.createAssignment(Xn,fe.objectAssignmentInitializer);return Tn(n.createPropertyAssignment(_n,_i),fe)}return Tn(n.createPropertyAssignment(_n,Xn),fe)}}return fe}function d_(fe){switch(fe.kind){case 80:return Ka(fe);case 211:return Pm(fe);case 212:return Ag(fe)}return fe}function Ka(fe){return Qi(fe)||fe}function Qi(fe){if(Pe&dt&&!$g(fe)&&!mI(fe)){const _n=S.getReferencedExportContainer(fe,!1);if(_n&&_n.kind!==312&&(dt&2&&_n.kind===267||dt&8&&_n.kind===266))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(_n),fe),fe)}}function Pm(fe){return x0(fe)}function Ag(fe){return x0(fe)}function va(fe){return fe.replace(/\*\//g,"*_/")}function x0(fe){const _n=Nm(fe);if(_n!==void 0){x6e(fe,_n);const Xn=typeof _n=="string"?n.createStringLiteral(_n):_n<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(Math.abs(_n))):n.createNumericLiteral(_n);if(!E.removeComments){const _i=Gg(fe,Kf);koe(Xn,3,` ${va(Lv(_i))} `)}return Xn}return fe}function Nm(fe){if(!F0(E))return Ac(fe)||Hm(fe)?S.getConstantValue(fe):void 0}function Md(fe){return E.verbatimModuleSyntax||Cs(fe)||(E.preserveValueImports?S.isValueAliasDeclaration(fe):S.isReferencedAliasDeclaration(fe))}}var zHe,oct=G({"src/compiler/transformers/ts.ts"(){md(),zHe=!1}});function f4e(e){const{factory:n,getEmitHelperFactory:i,hoistVariableDeclaration:c,endLexicalEnvironment:u,startLexicalEnvironment:d,resumeLexicalEnvironment:h,addBlockScopedVariable:S}=e,E=e.getEmitResolver(),P=e.getCompilerOptions(),k=iu(P),F=X9(P),$=!!P.experimentalDecorators,J=!F,X=F&&k<9,ie=J||X,ae=k<9,ve=k<99?-1:F?0:3,we=k<9,Fe=we&&k>=2,et=ie||ae||ve===-1,Pe=e.onSubstituteNode;e.onSubstituteNode=Ag;const dt=e.onEmitNode;e.onEmitNode=Pm;let Ie=!1,ct,Ct,Lt,Ze,Ke;const st=new Map,It=new Set;let Yt,Et,at=!1,Qt=!1;return _C(e,nn);function nn(fe){if(fe.isDeclarationFile||(Ke=void 0,Ie=!!(HC(fe)&32),!et&&!Ie))return fe;const _n=Xo(fe,cn,e);return $N(_n,e.readEmitHelpers()),_n}function Rn(fe){switch(fe.kind){case 129:return _a()?void 0:fe;default:return to(fe,Mf)}}function cn(fe){if(!(fe.transformFlags&16777216)&&!(fe.transformFlags&134234112))return fe;switch(fe.kind){case 129:return re.fail("Use `modifierVisitor` instead.");case 263:return Ao(fe);case 231:return ze(fe);case 175:case 172:return re.fail("Use `classElementVisitor` instead.");case 303:return Pn(fe);case 243:return Fr(fe);case 260:return Ki(fe);case 169:return io(fe);case 208:return no(fe);case 277:return os(fe);case 81:return Tr(fe);case 211:return w_(fe);case 212:return Eu(fe);case 224:case 225:return He(fe,!1);case 226:return $r(fe,!1);case 217:return Br(fe,!1);case 213:return Pr(fe);case 244:return dr(fe);case 215:return Bt(fe);case 248:return Hn(fe);case 110:return qe(fe);case 262:case 218:return Jc(void 0,qt,fe);case 176:case 174:case 177:case 178:return Jc(fe,qt,fe);default:return qt(fe)}}function qt(fe){return Xo(fe,cn,e)}function Kt(fe){switch(fe.kind){case 224:case 225:return He(fe,!0);case 226:return $r(fe,!0);case 361:return Ge(fe,!0);case 217:return Br(fe,!0);default:return cn(fe)}}function wr(fe){switch(fe.kind){case 298:return Xo(fe,wr,e);case 233:return yi(fe);default:return cn(fe)}}function Wr(fe){switch(fe.kind){case 210:case 209:return Qi(fe);default:return cn(fe)}}function jt(fe){switch(fe.kind){case 176:return Jc(fe,ki,fe);case 177:case 178:case 174:return Jc(fe,Wl,fe);case 172:return Jc(fe,us,fe);case 175:return Jc(fe,kt,fe);case 167:return $i(fe);case 240:return fe;default:return Am(fe)?Rn(fe):cn(fe)}}function En(fe){switch(fe.kind){case 167:return $i(fe);default:return cn(fe)}}function fr(fe){switch(fe.kind){case 172:return na(fe);case 177:case 178:return jt(fe);default:re.assertMissingNode(fe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Tr(fe){return!ae||dl(fe.parent)?fe:Ls(n.createIdentifier(""),fe)}function Vr(fe){const _n=R_(fe.left);if(_n){const Xn=Bn(fe.right,cn,kr);return Ls(i().createClassPrivateFieldInHelper(_n.brandCheckIdentifier,Xn),fe)}return Xo(fe,cn,e)}function Pn(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function Fr(fe){const _n=Ze;Ze=[];const Xn=Xo(fe,cn,e),_i=gt(Ze)?[Xn,...Ze]:Xn;return Ze=_n,_i}function Ki(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function io(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function no(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function os(fe){return UE(fe,Wn)&&(fe=mE(e,fe,!0,fe.isExportEquals?"":"default")),Xo(fe,cn,e)}function Mo(fe){return gt(Lt)&&(fE(fe)?(Lt.push(fe.expression),fe=n.updateParenthesizedExpression(fe,n.inlineExpressions(Lt))):(Lt.push(fe),fe=n.inlineExpressions(Lt)),Lt=void 0),fe}function $i(fe){const _n=Bn(fe.expression,cn,kr);return n.updateComputedPropertyName(fe,Mo(_n))}function ki(fe){return Yt?mn(fe,Yt):qt(fe)}function gc(fe){return!!(ae||ev(fe)&&HC(fe)&32)}function Wl(fe){if(re.assert(!X2(fe)),!IT(fe)||!gc(fe))return Xo(fe,jt,e);const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),!_n.isValid)return fe;const Xn=au(fe);Xn&&u_().push(n.createAssignment(Xn,n.createFunctionExpression(gi(fe.modifiers,_i=>Mf(_i)&&!pW(_i)&&!EEe(_i)),fe.asteriskToken,Xn,void 0,sm(fe.parameters,cn,e),void 0,ox(fe.body,cn,e))))}function Jc(fe,_n,Xn){if(fe!==Et){const _i=Et;Et=fe;const $o=_n(Xn);return Et=_i,$o}return _n(Xn)}function au(fe){re.assert(Lu(fe.name));const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),_n.kind==="m")return _n.methodName;if(_n.kind==="a"){if(PN(fe))return _n.getterName;if(UC(fe))return _n.setterName}}function qn(){const fe=Bl(),_n=fe.classThis??fe.classConstructor??(Yt==null?void 0:Yt.name);return re.checkDefined(_n)}function za(fe){const _n=MS(fe),Xn=YL(fe),_i=fe.name;let $o=_i,Sc=_i;if(Qf(_i)&&!IA(_i.expression)){const ah=KJ(_i);if(ah)$o=n.updateComputedPropertyName(_i,Bn(_i.expression,cn,kr)),Sc=n.updateComputedPropertyName(_i,ah.left);else{const bm=n.createTempVariable(c);lp(bm,_i.expression);const ay=Bn(_i.expression,cn,kr),yp=n.createAssignment(bm,ay);lp(yp,_i.expression),$o=n.updateComputedPropertyName(_i,yp),Sc=n.updateComputedPropertyName(_i,bm)}}const xs=Wa(fe.modifiers,Rn,Mf),Fs=qJ(n,fe,xs,fe.initializer);Ls(Fs,fe),_s(Fs,3072),lp(Fs,Xn);const Tl=pd(fe)?qn():n.createThis(),fc=JEe(n,fe,xs,$o,Tl);Ls(fc,fe),dy(fc,_n),lp(fc,Xn);const Gd=n.createModifiersFromModifierFlags(aI(xs)),ag=QY(n,fe,Gd,Sc,Tl);return Ls(ag,fe),_s(ag,3072),lp(ag,Xn),Iae([Fs,fc,ag],fr,J_)}function Ia(fe){if(gc(fe)){const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),!_n.isValid)return fe;if(_n.isStatic&&!ae){const Xn=qi(fe,n.createThis());if(Xn)return n.createClassStaticBlockDeclaration(n.createBlock([Xn],!0))}return}return J&&!pd(fe)&&(Ke!=null&&Ke.data)&&Ke.data.facts&16?n.updatePropertyDeclaration(fe,Wa(fe.modifiers,cn,Am),fe.name,void 0,void 0,void 0):(UE(fe,Wn)&&(fe=mE(e,fe)),n.updatePropertyDeclaration(fe,Wa(fe.modifiers,Rn,Mf),Bn(fe.name,En,qg),void 0,void 0,Bn(fe.initializer,cn,kr)))}function zi(fe){if(ie&&!xb(fe)){const _n=Tc(fe.name,!!fe.initializer||F);if(_n&&u_().push(...vr(_n)),pd(fe)&&!ae){const Xn=qi(fe,n.createThis());if(Xn){const _i=n.createClassStaticBlockDeclaration(n.createBlock([Xn]));return Ls(_i,fe),dy(_i,fe),dy(Xn,{pos:-1,end:-1}),uI(Xn,void 0),cW(Xn,void 0),_i}}return}return n.updatePropertyDeclaration(fe,Wa(fe.modifiers,Rn,Mf),Bn(fe.name,En,qg),void 0,void 0,Bn(fe.initializer,cn,kr))}function na(fe){return re.assert(!X2(fe),"Decorators should already have been transformed and elided."),IT(fe)?Ia(fe):zi(fe)}function _a(){return ve===-1||ve===3&&!!(Ke!=null&&Ke.data)&&!!(Ke.data.facts&16)}function us(fe){return xb(fe)&&(_a()||ev(fe)&&HC(fe)&32)?za(fe):na(fe)}function Au(){return!!Et&&ev(Et)&&GM(Et)&&xb(Gg(Et))}function Qu(fe){if(Au()){const _n=iv(fe);_n.kind===110&&It.add(_n)}}function Cu(fe,_n){return _n=Bn(_n,cn,kr),Qu(_n),yf(fe,_n)}function yf(fe,_n){switch(dy(_n,TA(_n,-1)),fe.kind){case"a":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.getterName);case"m":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.methodName);case"f":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return re.fail("Access helpers should not be created for untransformed private elements");default:re.assertNever(fe,"Unknown private element type")}}function w_(fe){if(Lu(fe.name)){const _n=R_(fe.name);if(_n)return Tn(Ls(Cu(_n,fe.expression),fe),fe)}if(Fe&&Et&&MT(fe)&&xn(fe.name)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=n.createReflectGetCall(Xn,n.createStringLiteralFromNode(fe.name),_n);return Ls($o,fe.expression),Tn($o,fe.expression),$o}}return Xo(fe,cn,e)}function Eu(fe){if(Fe&&Et&&MT(fe)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=n.createReflectGetCall(Xn,Bn(fe.argumentExpression,cn,kr),_n);return Ls($o,fe.expression),Tn($o,fe.expression),$o}}return Xo(fe,cn,e)}function He(fe,_n){if(fe.operator===46||fe.operator===47){const Xn=rg(fe.operand);if(u9(Xn)){let _i;if(_i=R_(Xn.name)){const $o=Bn(Xn.expression,cn,kr);Qu($o);const{readExpression:Sc,initializeExpression:xs}=Mr($o);let Fs=Cu(_i,Sc);const Tl=vk(fe)||_n?void 0:n.createTempVariable(c);return Fs=JY(n,fe,Fs,c,Tl),Fs=Ei(_i,xs||Sc,Fs,64),Ls(Fs,fe),Tn(Fs,fe),Tl&&(Fs=n.createComma(Fs,Tl),Tn(Fs,fe)),Fs}}else if(Fe&&Et&&MT(Xn)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_i,superClassReference:$o,facts:Sc}=Ke.data;if(Sc&1){const xs=bl(Xn);return vk(fe)?n.updatePrefixUnaryExpression(fe,xs):n.updatePostfixUnaryExpression(fe,xs)}if(_i&&$o){let xs,Fs;if(Ac(Xn)?xn(Xn.name)&&(Fs=xs=n.createStringLiteralFromNode(Xn.name)):IA(Xn.argumentExpression)?Fs=xs=Xn.argumentExpression:(Fs=n.createTempVariable(c),xs=n.createAssignment(Fs,Bn(Xn.argumentExpression,cn,kr))),xs&&Fs){let Tl=n.createReflectGetCall($o,Fs,_i);Tn(Tl,Xn);const fc=_n?void 0:n.createTempVariable(c);return Tl=JY(n,fe,Tl,c,fc),Tl=n.createReflectSetCall($o,xs,Tl,_i),Ls(Tl,fe),Tn(Tl,fe),fc&&(Tl=n.createComma(Tl,fc),Tn(Tl,fe)),Tl}}}}return Xo(fe,cn,e)}function Hn(fe){return n.updateForStatement(fe,Bn(fe.initializer,Kt,DS),Bn(fe.condition,cn,kr),Bn(fe.incrementor,Kt,kr),LS(fe.statement,cn,e))}function dr(fe){return n.updateExpressionStatement(fe,Bn(fe.expression,Kt,kr))}function Mr(fe){const _n=Hd(fe)?fe:n.cloneNode(fe);if(fe.kind===110&&It.has(fe)&&It.add(_n),IA(fe))return{readExpression:_n,initializeExpression:void 0};const Xn=n.createTempVariable(c),_i=n.createAssignment(Xn,_n);return{readExpression:Xn,initializeExpression:_i}}function Pr(fe){var _n;if(u9(fe.expression)&&R_(fe.expression.name)){const{thisArg:Xn,target:_i}=n.createCallBinding(fe.expression,c,k);return AN(fe)?n.updateCallChain(fe,n.createPropertyAccessChain(Bn(_i,cn,kr),fe.questionDotToken,"call"),void 0,void 0,[Bn(Xn,cn,kr),...Wa(fe.arguments,cn,kr)]):n.updateCallExpression(fe,n.createPropertyAccessExpression(Bn(_i,cn,kr),"call"),void 0,[Bn(Xn,cn,kr),...Wa(fe.arguments,cn,kr)])}if(Fe&&Et&&MT(fe.expression)&&FQ(Et)&&((_n=Ke==null?void 0:Ke.data)!=null&&_n.classConstructor)){const Xn=n.createFunctionCallCall(Bn(fe.expression,cn,kr),Ke.data.classConstructor,Wa(fe.arguments,cn,kr));return Ls(Xn,fe),Tn(Xn,fe),Xn}return Xo(fe,cn,e)}function Bt(fe){var _n;if(u9(fe.tag)&&R_(fe.tag.name)){const{thisArg:Xn,target:_i}=n.createCallBinding(fe.tag,c,k);return n.updateTaggedTemplateExpression(fe,n.createCallExpression(n.createPropertyAccessExpression(Bn(_i,cn,kr),"bind"),void 0,[Bn(Xn,cn,kr)]),void 0,Bn(fe.template,cn,Hz))}if(Fe&&Et&&MT(fe.tag)&&FQ(Et)&&((_n=Ke==null?void 0:Ke.data)!=null&&_n.classConstructor)){const Xn=n.createFunctionBindCall(Bn(fe.tag,cn,kr),Ke.data.classConstructor,[]);return Ls(Xn,fe),Tn(Xn,fe),n.updateTaggedTemplateExpression(fe,Xn,void 0,Bn(fe.template,cn,Hz))}return Xo(fe,cn,e)}function ln(fe){if(Ke&&st.set(Gg(fe),Ke),ae){if(S$(fe)){const _i=Bn(fe.body.statements[0].expression,cn,kr);return Zv(_i,!0)&&_i.left===_i.right?void 0:_i}if(gj(fe))return Bn(fe.body.statements[0].expression,cn,kr);d();let _n=Jc(fe,_i=>Wa(_i,cn,dl),fe.body.statements);_n=n.mergeLexicalEnvironment(_n,u());const Xn=n.createImmediatelyInvokedArrowFunction(_n);return Ls(rg(Xn.expression),fe),cE(rg(Xn.expression),4),Ls(Xn,fe),Tn(Xn,fe),Xn}}function Wn(fe){if(v0(fe)&&!fe.name){const _n=MQ(fe);return gt(_n,gj)?!1:(ae||!!HC(fe))&>(_n,_i=>Ep(_i)||IT(_i)||ie&&Nae(_i))}return!1}function $r(fe,_n){if(wy(fe)){const Xn=Lt;Lt=void 0,fe=n.updateBinaryExpression(fe,Bn(fe.left,Wr,kr),fe.operatorToken,Bn(fe.right,cn,kr));const _i=gt(Lt)?n.inlineExpressions(uN([...Lt,fe])):fe;return Lt=Xn,_i}if(Zv(fe)){UE(fe,Wn)&&(fe=mE(e,fe),re.assertNode(fe,Zv));const Xn=iv(fe.left,9);if(u9(Xn)){const _i=R_(Xn.name);if(_i)return Tn(Ls(Ei(_i,Xn.expression,fe.right,fe.operatorToken.kind),fe),fe)}else if(Fe&&Et&&MT(fe.left)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_i,superClassReference:$o,facts:Sc}=Ke.data;if(Sc&1)return n.updateBinaryExpression(fe,bl(fe.left),fe.operatorToken,Bn(fe.right,cn,kr));if(_i&&$o){let xs=Hm(fe.left)?Bn(fe.left.argumentExpression,cn,kr):xn(fe.left.name)?n.createStringLiteralFromNode(fe.left.name):void 0;if(xs){let Fs=Bn(fe.right,cn,kr);if(uj(fe.operatorToken.kind)){let fc=xs;IA(xs)||(fc=n.createTempVariable(c),xs=n.createAssignment(fc,xs));const Gd=n.createReflectGetCall($o,fc,_i);Ls(Gd,fe.left),Tn(Gd,fe.left),Fs=n.createBinaryExpression(Gd,RQ(fe.operatorToken.kind),Fs),Tn(Fs,fe)}const Tl=_n?void 0:n.createTempVariable(c);return Tl&&(Fs=n.createAssignment(Tl,Fs),Tn(Tl,fe)),Fs=n.createReflectSetCall($o,xs,Fs,_i),Ls(Fs,fe),Tn(Fs,fe),Tl&&(Fs=n.createComma(Fs,Tl),Tn(Fs,fe)),Fs}}}}return cct(fe)?Vr(fe):Xo(fe,cn,e)}function Ge(fe,_n){const Xn=_n?NQ(fe.elements,Kt):NQ(fe.elements,cn,Kt);return n.updateCommaListExpression(fe,Xn)}function Br(fe,_n){const Xn=_n?Kt:cn,_i=Bn(fe.expression,Xn,kr);return n.updateParenthesizedExpression(fe,_i)}function Ei(fe,_n,Xn,_i){if(_n=Bn(_n,cn,kr),Xn=Bn(Xn,cn,kr),Qu(_n),uj(_i)){const{readExpression:$o,initializeExpression:Sc}=Mr(_n);_n=Sc||$o,Xn=n.createBinaryExpression(yf(fe,$o),RQ(_i),Xn)}switch(dy(_n,TA(_n,-1)),fe.kind){case"a":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,fe.setterName);case"m":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,void 0);case"f":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return re.fail("Access helpers should not be created for untransformed private elements");default:re.assertNever(fe,"Unknown private element type")}}function Ln(fe){return gi(fe.members,q2e)}function Sr(fe){var _n;let Xn=0;const _i=Gg(fe);Ih(_i)&&yP($,_i)&&(Xn|=1),ae&&(bme(fe)||Sme(fe))&&(Xn|=2);let $o=!1,Sc=!1,xs=!1,Fs=!1;for(const fc of fe.members)pd(fc)?((fc.name&&(Lu(fc.name)||xb(fc))&&ae||xb(fc)&&ve===-1&&!fe.name&&!((_n=fe.emitNode)!=null&&_n.classThis))&&(Xn|=2),(nu(fc)||Ep(fc))&&(we&&fc.transformFlags&16384&&(Xn|=8,Xn&1||(Xn|=2)),Fe&&fc.transformFlags&134217728&&(Xn&1||(Xn|=6)))):Ab(Gg(fc))||(xb(fc)?(Fs=!0,xs||(xs=IT(fc))):IT(fc)?(xs=!0,E.getNodeCheckFlags(fc)&262144&&(Xn|=2)):nu(fc)&&($o=!0,Sc||(Sc=!!fc.initializer)));return(X&&$o||J&&Sc||ae&&xs||ae&&Fs&&ve===-1)&&(Xn|=16),Xn}function yi(fe){var _n;if((((_n=Ke==null?void 0:Ke.data)==null?void 0:_n.facts)||0)&4){const _i=n.createTempVariable(c,!0);return Bl().superClassReference=_i,n.updateExpressionWithTypeArguments(fe,n.createAssignment(_i,Bn(fe.expression,cn,kr)),void 0)}return Xo(fe,cn,e)}function go(fe,_n){var Xn;const _i=Yt,$o=Lt,Sc=Ke;Yt=fe,Lt=void 0,Tf();const xs=HC(fe)&32;if(ae||xs){const fc=i_(fe);if(fc&&xn(fc))G_().data.className=fc;else if((Xn=fe.emitNode)!=null&&Xn.assignedName&&Sd(fe.emitNode.assignedName)){if(fe.emitNode.assignedName.textSourceNode&&xn(fe.emitNode.assignedName.textSourceNode))G_().data.className=fe.emitNode.assignedName.textSourceNode;else if(H2(fe.emitNode.assignedName.text,k)){const Gd=n.createIdentifier(fe.emitNode.assignedName.text);G_().data.className=Gd}}}if(ae){const fc=Ln(fe);gt(fc)&&(G_().data.weakSetName=Og("instances",fc[0].name))}const Fs=Sr(fe);Fs&&(Bl().facts=Fs),Fs&8&&Pc();const Tl=_n(fe,Fs);return ma(),re.assert(Ke===Sc),Yt=_i,Lt=$o,Tl}function Ao(fe){return go(fe,Io)}function Io(fe,_n){var Xn,_i;let $o;if(_n&2)if(ae&&((Xn=fe.emitNode)!=null&&Xn.classThis))Bl().classConstructor=fe.emitNode.classThis,$o=n.createAssignment(fe.emitNode.classThis,n.getInternalName(fe));else{const yp=n.createTempVariable(c,!0);Bl().classConstructor=n.cloneNode(yp),$o=n.createAssignment(yp,n.getInternalName(fe))}(_i=fe.emitNode)!=null&&_i.classThis&&(Bl().classThis=fe.emitNode.classThis);const Sc=E.getNodeCheckFlags(fe)&262144,xs=ul(fe,32),Fs=ul(fe,2048);let Tl=Wa(fe.modifiers,Rn,Mf);const fc=Wa(fe.heritageClauses,wr,Qb),{members:Gd,prologue:ag}=Mt(fe),ah=[];if($o&&u_().unshift($o),gt(Lt)&&ah.push(n.createExpressionStatement(n.inlineExpressions(Lt))),J||ae||HC(fe)&32){const yp=MQ(fe);gt(yp)&&Lr(ah,yp,n.getInternalName(fe))}ah.length>0&&xs&&Fs&&(Tl=Wa(Tl,yp=>Voe(yp)?void 0:yp,Mf),ah.push(n.createExportAssignment(void 0,!1,n.getLocalName(fe,!1,!0))));const bm=Bl().classConstructor;Sc&&bm&&(Cc(),Ct[Nb(fe)]=bm);const ay=n.updateClassDeclaration(fe,Tl,fe.name,void 0,fc,Gd);return ah.unshift(ay),ag&&ah.unshift(n.createExpressionStatement(ag)),ah}function ze(fe){return go(fe,Ce)}function Ce(fe,_n){var Xn,_i,$o;const Sc=!!(_n&1),xs=MQ(fe),Fs=E.getNodeCheckFlags(fe),Tl=Fs&262144;let fc;function Gd(){var Xp;if(ae&&((Xp=fe.emitNode)!=null&&Xp.classThis))return Bl().classConstructor=fe.emitNode.classThis;const r1=Fs&32768,sg=n.createTempVariable(r1?S:c,!0);return Bl().classConstructor=n.cloneNode(sg),sg}(Xn=fe.emitNode)!=null&&Xn.classThis&&(Bl().classThis=fe.emitNode.classThis),_n&2&&(fc??(fc=Gd()));const ag=Wa(fe.modifiers,Rn,Mf),ah=Wa(fe.heritageClauses,wr,Qb),{members:bm,prologue:ay}=Mt(fe),yp=n.updateClassExpression(fe,ag,fe.name,void 0,ah,bm),Cg=[];if(ay&&Cg.push(ay),(ae||HC(fe)&32)&>(xs,Xp=>Ep(Xp)||IT(Xp)||ie&&Nae(Xp))||gt(Lt))if(Sc)re.assertIsDefined(Ze,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(Lt)&&Oi(Ze,Vn(Lt,n.createExpressionStatement)),gt(xs)&&Lr(Ze,xs,((_i=fe.emitNode)==null?void 0:_i.classThis)??n.getInternalName(fe)),fc?Cg.push(n.createAssignment(fc,yp)):ae&&(($o=fe.emitNode)!=null&&$o.classThis)?Cg.push(n.createAssignment(fe.emitNode.classThis,yp)):Cg.push(yp);else{if(fc??(fc=Gd()),Tl){Cc();const Xp=n.cloneNode(fc);Xp.emitNode.autoGenerate.flags&=-9,Ct[Nb(fe)]=Xp}Cg.push(n.createAssignment(fc,yp)),Oi(Cg,Lt),Oi(Cg,vo(xs,fc)),Cg.push(n.cloneNode(fc))}else Cg.push(yp);return Cg.length>1&&(cE(yp,131072),Cg.forEach(lb)),n.inlineExpressions(Cg)}function kt(fe){if(!ae)return Xo(fe,cn,e)}function qe(fe){if(we&&Et&&Ep(Et)&&(Ke!=null&&Ke.data)){const{classThis:_n,classConstructor:Xn}=Ke.data;return _n??Xn??fe}return fe}function Mt(fe){const _n=!!(HC(fe)&32);if(ae||Ie){for(const xs of fe.members)if(IT(xs))if(gc(xs))Wy(xs,xs.name,xa);else{const Fs=G_();Ik(Fs,xs.name,{kind:"untransformed"})}if(ae&>(Ln(fe))&&ge(),_a()){for(const xs of fe.members)if(xb(xs)){const Fs=n.getGeneratedPrivateNameForNode(xs.name,void 0,"_accessor_storage");if(ae||_n&&ev(xs))Wy(xs,Fs,Ym);else{const Tl=G_();Ik(Tl,Fs,{kind:"untransformed"})}}}}let Xn=Wa(fe.members,jt,J_),_i;gt(Xn,Lh)||(_i=mn(void 0,fe));let $o,Sc;if(!ae&>(Lt)){let xs=n.createExpressionStatement(n.inlineExpressions(Lt));if(xs.transformFlags&134234112){const Tl=n.createTempVariable(c),fc=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([xs]));$o=n.createAssignment(Tl,fc),xs=n.createExpressionStatement(n.createCallExpression(Tl,void 0,[]))}const Fs=n.createBlock([xs]);Sc=n.createClassStaticBlockDeclaration(Fs),Lt=void 0}if(_i||Sc){let xs;const Fs=lr(Xn,S$),Tl=lr(Xn,gj);xs=ur(xs,Fs),xs=ur(xs,Tl),xs=ur(xs,_i),xs=ur(xs,Sc);const fc=Fs||Tl?gi(Xn,Gd=>Gd!==Fs&&Gd!==Tl):Xn;xs=Oi(xs,fc),Xn=Tn(n.createNodeArray(xs),fe.members)}return{members:Xn,prologue:$o}}function ge(){const{weakSetName:fe}=G_().data;re.assert(fe,"weakSetName should be set in private identifier environment"),u_().push(n.createAssignment(fe,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}function mn(fe,_n){if(fe=Bn(fe,cn,Lh),!(Ke!=null&&Ke.data)||!(Ke.data.facts&16))return fe;const Xn=YC(_n),_i=!!(Xn&&iv(Xn.expression).kind!==106),$o=sm(fe?fe.parameters:void 0,cn,e),Sc=Nn(_n,fe,_i);return Sc?fe?(re.assert($o),n.updateConstructorDeclaration(fe,void 0,$o,Sc)):lb(Ls(Tn(n.createConstructorDeclaration(void 0,$o??[],Sc),fe||_n),fe)):fe}function Jn(fe,_n,Xn,_i,$o,Sc,xs){const Fs=_i[$o],Tl=_n[Fs];if(Oi(fe,Wa(_n,cn,dl,Xn,Fs-Xn)),Xn=Fs+1,My(Tl)){const fc=[];Jn(fc,Tl.tryBlock.statements,0,_i,$o+1,Sc,xs);const Gd=n.createNodeArray(fc);Tn(Gd,Tl.tryBlock.statements),fe.push(n.updateTryStatement(Tl,n.updateBlock(Tl.tryBlock,fc),Bn(Tl.catchClause,cn,A3),Bn(Tl.finallyBlock,cn,Ou)))}else{for(Oi(fe,Wa(_n,cn,dl,Fs,1));Xn<_n.length;){const fc=_n[Xn];if(DT(Gg(fc),xs))Xn++;else break}Oi(fe,Sc)}Oi(fe,Wa(_n,cn,dl,Xn))}function Nn(fe,_n,Xn){const _i=b$(fe,!1,!1);let $o=_i;F||($o=gi($o,bm=>!!bm.initializer||Lu(bm.name)||e_(bm)));const Sc=Ln(fe),xs=gt($o)||gt(Sc);if(!_n&&!xs)return ox(void 0,cn,e);h();const Fs=!_n&&Xn;let Tl=0,fc=[];const Gd=[],ag=n.createThis();if(hc(Gd,Sc,ag),_n){const bm=gi(_i,yp=>DT(Gg(yp),_n)),ay=gi($o,yp=>!DT(Gg(yp),_n));Lr(Gd,bm,ag),Lr(Gd,ay,ag)}else Lr(Gd,$o,ag);if(_n!=null&&_n.body){Tl=n.copyPrologue(_n.body.statements,fc,!1,cn);const bm=mme(_n.body.statements,Tl);if(bm.length)Jn(fc,_n.body.statements,Tl,bm,0,Gd,_n);else{for(;Tl<_n.body.statements.length;){const ay=_n.body.statements[Tl];if(DT(Gg(ay),_n))Tl++;else break}Oi(fc,Gd),Oi(fc,Wa(_n.body.statements,cn,dl,Tl))}}else Fs&&fc.push(n.createExpressionStatement(n.createCallExpression(n.createSuper(),void 0,[n.createSpreadElement(n.createIdentifier("arguments"))]))),Oi(fc,Gd);if(fc=n.mergeLexicalEnvironment(fc,u()),fc.length===0&&!_n)return;const ah=_n!=null&&_n.body&&_n.body.statements.length>=fc.length?_n.body.multiLine??fc.length>0:fc.length>0;return Tn(n.createBlock(Tn(n.createNodeArray(fc),_n?_n.body.statements:fe.members),ah),_n?_n.body:void 0)}function Lr(fe,_n,Xn){for(const _i of _n){if(pd(_i)&&!ae)continue;const $o=qi(_i,Xn);$o&&fe.push($o)}}function qi(fe,_n){const Xn=Ep(fe)?Jc(fe,ln,fe):Ro(fe,_n);if(!Xn)return;const _i=n.createExpressionStatement(Xn);Ls(_i,fe),cE(_i,wd(fe)&3072),dy(_i,fe);const $o=Gg(fe);return Os($o)?(lp(_i,$o),aW(_i)):lp(_i,Db(fe)),uI(Xn,void 0),cW(Xn,void 0),e_($o)&&cE(_i,3072),_i}function vo(fe,_n){const Xn=[];for(const _i of fe){const $o=Ep(_i)?Jc(_i,ln,_i):Jc(_i,()=>Ro(_i,_n),void 0);$o&&(lb($o),Ls($o,_i),cE($o,wd(_i)&3072),lp($o,Db(_i)),dy($o,_i),Xn.push($o))}return Xn}function Ro(fe,_n){var Xn;const _i=Et,$o=Ts(fe,_n);return $o&&ev(fe)&&((Xn=Ke==null?void 0:Ke.data)!=null&&Xn.facts)&&(Ls($o,fe),cE($o,4),lp($o,YL(fe.name)),st.set(Gg(fe),Ke)),Et=_i,$o}function Ts(fe,_n){const Xn=!F;UE(fe,Wn)&&(fe=mE(e,fe));const _i=e_(fe)?n.getGeneratedPrivateNameForNode(fe.name):Qf(fe.name)&&!IA(fe.name.expression)?n.updateComputedPropertyName(fe.name,n.getGeneratedNameForNode(fe.name)):fe.name;if(ev(fe)&&(Et=fe),Lu(_i)&&gc(fe)){const xs=R_(_i);if(xs)return xs.kind==="f"?xs.isStatic?act(n,xs.variableName,Bn(fe.initializer,cn,kr)):OQ(n,_n,Bn(fe.initializer,cn,kr),xs.brandCheckIdentifier):void 0;re.fail("Undeclared private name for property declaration.")}if((Lu(_i)||ev(fe))&&!fe.initializer)return;const $o=Gg(fe);if(ul($o,64))return;let Sc=Bn(fe.initializer,cn,kr);if(DT($o,$o.parent)&&xn(_i)){const xs=n.cloneNode(_i);Sc?(fE(Sc)&&rv(Sc.expression)&&uW(Sc.expression.left,"___runInitializers")&&Z7(Sc.expression.right)&&S1(Sc.expression.right.expression)&&(Sc=Sc.expression.left),Sc=n.inlineExpressions([Sc,xs])):Sc=xs,_s(_i,3168),lp(xs,$o.name),_s(xs,3072)}else Sc??(Sc=n.createVoidZero());if(Xn||Lu(_i)){const xs=sF(n,_n,_i,_i);return cE(xs,1024),n.createAssignment(xs,Sc)}else{const xs=Qf(_i)?_i.expression:xn(_i)?n.createStringLiteral(Ic(_i.escapedText)):_i,Fs=n.createPropertyDescriptor({value:Sc,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(_n,xs,Fs)}}function Cc(){ct&1||(ct|=1,e.enableSubstitution(80),Ct=[])}function Pc(){ct&2||(ct|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function hc(fe,_n,Xn){if(!ae||!gt(_n))return;const{weakSetName:_i}=G_().data;re.assert(_i,"weakSetName should be set in private identifier environment"),fe.push(n.createExpressionStatement(sct(n,Xn,_i)))}function bl(fe){return Ac(fe)?n.updatePropertyAccessExpression(fe,n.createVoidZero(),fe.name):n.updateElementAccessExpression(fe,n.createVoidZero(),Bn(fe.argumentExpression,cn,kr))}function Tc(fe,_n){if(Qf(fe)){const Xn=KJ(fe),_i=Bn(fe.expression,cn,kr),$o=h2(_i),Sc=IA($o);if(!(!!Xn||Zv($o)&&$g($o.left))&&!Sc&&_n){const Fs=n.getGeneratedNameForNode(fe);return E.getNodeCheckFlags(fe)&32768?S(Fs):c(Fs),n.createAssignment(Fs,_i)}return Sc||xn($o)?void 0:_i}}function Tf(){Ke={previous:Ke,data:void 0}}function ma(){Ke=Ke==null?void 0:Ke.previous}function Bl(){return re.assert(Ke),Ke.data??(Ke.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function G_(){return re.assert(Ke),Ke.privateEnv??(Ke.privateEnv=hme({className:void 0,weakSetName:void 0}))}function u_(){return Lt??(Lt=[])}function xa(fe,_n,Xn,_i,$o,Sc,xs){xb(fe)?xg(fe,_n,Xn,_i,$o,Sc):nu(fe)?Ym(fe,_n,Xn,_i,$o,Sc):tm(fe)?mf(fe,_n,Xn,_i,$o,Sc):lE(fe)?Cp(fe,_n,Xn,_i,$o,Sc,xs):Xb(fe)&&Yg(fe,_n,Xn,_i,$o,Sc,xs)}function Ym(fe,_n,Xn,_i,$o,Sc,xs){if($o){const Fs=re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"),Tl=pl(_n);Ik(_i,_n,{kind:"f",isStatic:!0,brandCheckIdentifier:Fs,variableName:Tl,isValid:Sc})}else{const Fs=pl(_n);Ik(_i,_n,{kind:"f",isStatic:!1,brandCheckIdentifier:Fs,isValid:Sc}),u_().push(n.createAssignment(Fs,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function mf(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");Ik(_i,_n,{kind:"m",methodName:Fs,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function Cp(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_get"),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");(xs==null?void 0:xs.kind)==="a"&&xs.isStatic===$o&&!xs.getterName?xs.getterName=Fs:Ik(_i,_n,{kind:"a",getterName:Fs,setterName:void 0,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function Yg(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_set"),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");(xs==null?void 0:xs.kind)==="a"&&xs.isStatic===$o&&!xs.setterName?xs.setterName=Fs:Ik(_i,_n,{kind:"a",getterName:void 0,setterName:Fs,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function xg(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_get"),Tl=pl(_n,"_set"),fc=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");Ik(_i,_n,{kind:"a",getterName:Fs,setterName:Tl,brandCheckIdentifier:fc,isStatic:$o,isValid:Sc})}function Wy(fe,_n,Xn){const _i=Bl(),$o=G_(),Sc=K2e($o,_n),xs=ev(fe),Fs=!GHe(_n)&&Sc===void 0;Xn(fe,_n,_i,$o,xs,Fs,Sc)}function Og(fe,_n,Xn){const{className:_i}=G_().data,$o=_i?{prefix:"_",node:_i,suffix:"_"}:"_",Sc=typeof fe=="object"?n.getGeneratedNameForNode(fe,24,$o,Xn):typeof fe=="string"?n.createUniqueName(fe,16,$o,Xn):n.createTempVariable(void 0,!0,$o,Xn);return E.getNodeCheckFlags(_n)&32768?S(Sc):c(Sc),Sc}function pl(fe,_n){const Xn=tH(fe);return Og((Xn==null?void 0:Xn.substring(1))??fe,fe,_n)}function R_(fe){const _n=yme(Ke,fe);return(_n==null?void 0:_n.kind)==="untransformed"?void 0:_n}function og(fe){const _n=n.getGeneratedNameForNode(fe),Xn=R_(fe.name);if(!Xn)return Xo(fe,cn,e);let _i=fe.expression;return(Q1(fe)||MT(fe)||!L3(fe.expression))&&(_i=n.createTempVariable(c,!0),u_().push(n.createBinaryExpression(_i,64,Bn(fe.expression,cn,kr)))),n.createAssignmentTargetWrapper(_n,Ei(Xn,_i,_n,64))}function km(fe){if(el(fe)||Ed(fe))return Qi(fe);if(u9(fe))return og(fe);if(Fe&&Et&&MT(fe)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=Hm(fe)?Bn(fe.argumentExpression,cn,kr):xn(fe.name)?n.createStringLiteralFromNode(fe.name):void 0;if($o){const Sc=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(Sc,n.createReflectSetCall(Xn,$o,Sc,_n))}}}return Xo(fe,cn,e)}function M_(fe){if(UE(fe,Wn)&&(fe=mE(e,fe)),Zv(fe,!0)){const _n=km(fe.left),Xn=Bn(fe.right,cn,kr);return n.updateBinaryExpression(fe,_n,fe.operatorToken,Xn)}return km(fe)}function oy(fe){if(ib(fe.expression)){const _n=km(fe.expression);return n.updateSpreadElement(fe,_n)}return Xo(fe,cn,e)}function bE(fe){if(p9(fe)){if(WT(fe))return oy(fe);if(!cb(fe))return M_(fe)}return Xo(fe,cn,e)}function hh(fe){const _n=Bn(fe.name,cn,qg);if(Zv(fe.initializer,!0)){const Xn=M_(fe.initializer);return n.updatePropertyAssignment(fe,_n,Xn)}if(ib(fe.initializer)){const Xn=km(fe.initializer);return n.updatePropertyAssignment(fe,_n,Xn)}return Xo(fe,cn,e)}function qo(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function d_(fe){if(ib(fe.expression)){const _n=km(fe.expression);return n.updateSpreadAssignment(fe,_n)}return Xo(fe,cn,e)}function Ka(fe){return re.assertNode(fe,d9),xA(fe)?d_(fe):XE(fe)?qo(fe):tl(fe)?hh(fe):Xo(fe,cn,e)}function Qi(fe){return Ed(fe)?n.updateArrayLiteralExpression(fe,Wa(fe.elements,bE,kr)):n.updateObjectLiteralExpression(fe,Wa(fe.properties,Ka,DN))}function Pm(fe,_n,Xn){const _i=Gg(_n),$o=st.get(_i);if($o){const Sc=Ke,xs=Qt;Ke=$o,Qt=at,at=!Ep(_i)||!(HC(_i)&32),dt(fe,_n,Xn),at=Qt,Qt=xs,Ke=Sc;return}switch(_n.kind){case 218:if($m(_i)||wd(_n)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Sc=Ke,xs=Qt;Ke=void 0,Qt=at,at=!1,dt(fe,_n,Xn),at=Qt,Qt=xs,Ke=Sc;return}case 167:{const Sc=Ke,xs=at;Ke=Ke==null?void 0:Ke.previous,at=Qt,dt(fe,_n,Xn),at=xs,Ke=Sc;return}}dt(fe,_n,Xn)}function Ag(fe,_n){return _n=Pe(fe,_n),fe===1?va(_n):_n}function va(fe){switch(fe.kind){case 80:return Nm(fe);case 110:return x0(fe)}return fe}function x0(fe){if(ct&2&&(Ke!=null&&Ke.data)&&!It.has(fe)){const{facts:_n,classConstructor:Xn,classThis:_i}=Ke.data,$o=at?_i??Xn:Xn;if($o)return Tn(Ls(n.cloneNode($o),fe),fe);if(_n&1&&$)return n.createParenthesizedExpression(n.createVoidZero())}return fe}function Nm(fe){return Md(fe)||fe}function Md(fe){if(ct&1&&E.getNodeCheckFlags(fe)&536870912){const _n=E.getReferencedValueDeclaration(fe);if(_n){const Xn=Ct[_n.id];if(Xn){const _i=n.cloneNode(Xn);return lp(_i,fe),dy(_i,fe),_i}}}}}function act(e,n,i){return e.createAssignment(n,e.createObjectLiteralExpression([e.createPropertyAssignment("value",i||e.createVoidZero())]))}function OQ(e,n,i,c){return e.createCallExpression(e.createPropertyAccessExpression(c,"set"),void 0,[n,i||e.createVoidZero()])}function sct(e,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"add"),void 0,[n])}function GHe(e){return!s7(e)&&e.escapedText==="#constructor"}function cct(e){return Lu(e.left)&&e.operatorToken.kind===103}function jHe(e){return nu(e)&&ev(e)}function FQ(e){return Ep(e)||jHe(e)}var VHe=G({"src/compiler/transformers/classFields.ts"(){md()}});function _4e(e){const{factory:n,hoistVariableDeclaration:i}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),d=iu(u),h=hv(u,"strictNullChecks");let S,E;return{serializeTypeNode:(Lt,Ze)=>P(Lt,ie,Ze),serializeTypeOfNode:(Lt,Ze)=>P(Lt,F,Ze),serializeParameterTypesOfNode:(Lt,Ze,Ke)=>P(Lt,$,Ze,Ke),serializeReturnTypeOfNode:(Lt,Ze)=>P(Lt,X,Ze)};function P(Lt,Ze,Ke,st){const It=S,Yt=E;S=Lt.currentLexicalScope,E=Lt.currentNameScope;const Et=st===void 0?Ze(Ke):Ze(Ke,st);return S=It,E=Yt,Et}function k(Lt){const Ze=c.getAllAccessorDeclarations(Lt);return Ze.setAccessor&&Lde(Ze.setAccessor)||Ze.getAccessor&&kS(Ze.getAccessor)}function F(Lt){switch(Lt.kind){case 172:case 169:return ie(Lt.type);case 178:case 177:return ie(k(Lt));case 263:case 231:case 174:return n.createIdentifier("Function");default:return n.createVoidZero()}}function $(Lt,Ze){const Ke=Fl(Lt)?sC(Lt):F_(Lt)&&y2(Lt.body)?Lt:void 0,st=[];if(Ke){const It=J(Ke,Ze),Yt=It.length;for(let Et=0;EtIt.parent&&Q7(It.parent)&&(It.parent.trueType===It||It.parent.falseType===It)))return n.createIdentifier("Object");const Ke=Pe(Lt.typeName),st=n.createTempVariable(i);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(st,Ke),"function"),void 0,st,void 0,n.createIdentifier("Object"));case 1:return dt(Lt.typeName);case 2:return n.createVoidZero();case 4:return Ct("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return Ct("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return re.assertNever(Ze)}}function et(Lt,Ze){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(Lt),n.createStringLiteral("undefined")),Ze)}function Pe(Lt){if(Lt.kind===80){const st=dt(Lt);return et(st,st)}if(Lt.left.kind===80)return et(dt(Lt.left),dt(Lt));const Ze=Pe(Lt.left),Ke=n.createTempVariable(i);return n.createLogicalAnd(n.createLogicalAnd(Ze.left,n.createStrictInequality(n.createAssignment(Ke,Ze.right),n.createVoidZero())),n.createPropertyAccessExpression(Ke,Lt.right))}function dt(Lt){switch(Lt.kind){case 80:const Ze=kl(Tn(Ck.cloneNode(Lt),Lt),Lt.parent);return Ze.original=void 0,kl(Ze,__(S)),Ze;case 166:return Ie(Lt)}}function Ie(Lt){return n.createPropertyAccessExpression(dt(Lt.left),Lt.right)}function ct(Lt){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(Lt),"function"),void 0,n.createIdentifier(Lt),void 0,n.createIdentifier("Object"))}function Ct(Lt,Ze){return dVoe(_a)||Jh(_a)?void 0:_a,Am),os=Db(Pn),Mo=wr(Pn),$i=h<2?n.getInternalName(Pn,!1,!0):n.getLocalName(Pn,!1,!0),ki=Wa(Pn.heritageClauses,F,Qb);let gc=Wa(Pn.members,F,J_),Wl=[];({members:gc,decorationStatements:Wl}=ae(Pn,gc));const Jc=h>=9&&!!Mo&>(gc,_a=>nu(_a)&&ul(_a,256)||Ep(_a));Jc&&(gc=Tn(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment(Mo,n.createThis()))])),...gc]),gc));const au=n.createClassExpression(no,Fr&&$g(Fr)?void 0:Fr,void 0,ki,gc);Ls(au,Pn),Tn(au,os);const qn=Mo&&!Jc?n.createAssignment(Mo,au):au,za=n.createVariableDeclaration($i,void 0,void 0,qn);Ls(za,Pn);const Ia=n.createVariableDeclarationList([za],1),zi=n.createVariableStatement(void 0,Ia);Ls(zi,Pn),Tn(zi,os),dy(zi,Pn);const na=[zi];if(Oi(na,Wl),Qt(na,Pn),Ki)if(io){const _a=n.createExportDefault($i);na.push(_a)}else{const _a=n.createExternalModuleExport(n.getDeclarationName(Pn));na.push(_a)}return na}function Fe(Pn){return n.updateClassExpression(Pn,Wa(Pn.modifiers,k,Mf),Pn.name,void 0,Wa(Pn.heritageClauses,F,Qb),Wa(Pn.members,F,J_))}function et(Pn){return n.updateConstructorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),Wa(Pn.parameters,F,Os),Bn(Pn.body,F,Ou))}function Pe(Pn,Fr){return Pn!==Fr&&(dy(Pn,Fr),lp(Pn,Db(Fr))),Pn}function dt(Pn){return Pe(n.updateMethodDeclaration(Pn,Wa(Pn.modifiers,k,Mf),Pn.asteriskToken,re.checkDefined(Bn(Pn.name,F,qg)),void 0,void 0,Wa(Pn.parameters,F,Os),void 0,Bn(Pn.body,F,Ou)),Pn)}function Ie(Pn){return Pe(n.updateGetAccessorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),Wa(Pn.parameters,F,Os),void 0,Bn(Pn.body,F,Ou)),Pn)}function ct(Pn){return Pe(n.updateSetAccessorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),Wa(Pn.parameters,F,Os),Bn(Pn.body,F,Ou)),Pn)}function Ct(Pn){if(!(Pn.flags&33554432||ul(Pn,128)))return Pe(n.updatePropertyDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),void 0,void 0,Bn(Pn.initializer,F,kr)),Pn)}function Lt(Pn){const Fr=n.updateParameterDeclaration(Pn,n4(n,Pn.modifiers),Pn.dotDotDotToken,re.checkDefined(Bn(Pn.name,F,lR)),void 0,void 0,Bn(Pn.initializer,F,kr));return Fr!==Pn&&(dy(Fr,Pn),Tn(Fr,Db(Pn)),lp(Fr,Db(Pn)),_s(Fr.name,64)),Fr}function Ze(Pn){return uW(Pn.expression,"___metadata")}function Ke(Pn){if(!Pn)return;const{false:Fr,true:Ki}=H5(Pn.decorators,Ze),io=[];return Oi(io,Vn(Fr,Rn)),Oi(io,ea(Pn.parameters,cn)),Oi(io,Vn(Ki,Rn)),io}function st(Pn,Fr,Ki){Oi(Pn,Vn(Et(Fr,Ki),io=>n.createExpressionStatement(io)))}function It(Pn,Fr,Ki){return Z1(!0,Pn,Ki)&&Fr===pd(Pn)}function Yt(Pn,Fr){return gi(Pn.members,Ki=>It(Ki,Fr,Pn))}function Et(Pn,Fr){const Ki=Yt(Pn,Fr);let io;for(const no of Ki)io=ur(io,at(Pn,no));return io}function at(Pn,Fr){const Ki=wae(Fr,Pn,!0),io=Ke(Ki);if(!io)return;const no=jt(Pn,Fr),os=qt(Fr,!ul(Fr,128)),Mo=h>0?nu(Fr)&&!e_(Fr)?n.createVoidZero():n.createNull():void 0,$i=i().createDecorateHelper(io,no,os,Mo);return _s($i,3072),lp($i,Db(Fr)),$i}function Qt(Pn,Fr){const Ki=nn(Fr);Ki&&Pn.push(Ls(n.createExpressionStatement(Ki),Fr))}function nn(Pn){const Fr=gme(Pn),Ki=Ke(Fr);if(!Ki)return;const io=E&&E[Nb(Pn)],no=h<2?n.getInternalName(Pn,!1,!0):n.getDeclarationName(Pn,!1,!0),os=i().createDecorateHelper(Ki,no),Mo=n.createAssignment(no,io?n.createAssignment(io,os):os);return _s(Mo,3072),lp(Mo,Db(Pn)),Mo}function Rn(Pn){return re.checkDefined(Bn(Pn.expression,F,kr))}function cn(Pn,Fr){let Ki;if(Pn){Ki=[];for(const io of Pn){const no=i().createParamHelper(Rn(io),Fr);Tn(no,io.expression),_s(no,3072),Ki.push(no)}}return Ki}function qt(Pn,Fr){const Ki=Pn.name;return Lu(Ki)?n.createIdentifier(""):Qf(Ki)?Fr&&!IA(Ki.expression)?n.getGeneratedNameForNode(Ki):Ki.expression:xn(Ki)?n.createStringLiteral(Kr(Ki)):n.cloneNode(Ki)}function Kt(){E||(e.enableSubstitution(80),E=[])}function wr(Pn){if(u.getNodeCheckFlags(Pn)&262144){Kt();const Fr=n.createUniqueName(Pn.name&&!$g(Pn.name)?Kr(Pn.name):"default");return E[Nb(Pn)]=Fr,c(Fr),Fr}}function Wr(Pn){return n.createPropertyAccessExpression(n.getDeclarationName(Pn),"prototype")}function jt(Pn,Fr){return pd(Fr)?n.getDeclarationName(Pn):Wr(Pn)}function En(Pn,Fr){return Fr=S(Pn,Fr),Pn===1?fr(Fr):Fr}function fr(Pn){switch(Pn.kind){case 80:return Tr(Pn)}return Pn}function Tr(Pn){return Vr(Pn)??Pn}function Vr(Pn){if(E&&u.getNodeCheckFlags(Pn)&536870912){const Fr=u.getReferencedValueDeclaration(Pn);if(Fr){const Ki=E[Fr.id];if(Ki){const io=n.cloneNode(Ki);return lp(io,Pn),dy(io,Pn),io}}}}}var lct=G({"src/compiler/transformers/legacyDecorators.ts"(){md()}});function Z2e(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=iu(e.getCompilerOptions());let S,E,P,k,F,$;return _C(e,J);function J(Ce){S=void 0,$=!1;const kt=Xo(Ce,ct,e);return $N(kt,e.readEmitHelpers()),$&&(DG(kt,32),$=!1),kt}function X(){switch(E=void 0,P=void 0,k=void 0,S==null?void 0:S.kind){case"class":E=S.classInfo;break;case"class-element":E=S.next.classInfo,P=S.classThis,k=S.classSuper;break;case"name":const Ce=S.next.next.next;(Ce==null?void 0:Ce.kind)==="class-element"&&(E=Ce.next.classInfo,P=Ce.classThis,k=Ce.classSuper);break}}function ie(Ce){S={kind:"class",next:S,classInfo:Ce,savedPendingExpressions:F},F=void 0,X()}function ae(){re.assert((S==null?void 0:S.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${S==null?void 0:S.kind}' instead.`),F=S.savedPendingExpressions,S=S.next,X()}function ve(Ce){var kt,qe;re.assert((S==null?void 0:S.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${S==null?void 0:S.kind}' instead.`),S={kind:"class-element",next:S},(Ep(Ce)||nu(Ce)&&ev(Ce))&&(S.classThis=(kt=S.next.classInfo)==null?void 0:kt.classThis,S.classSuper=(qe=S.next.classInfo)==null?void 0:qe.classSuper),X()}function we(){var Ce;re.assert((S==null?void 0:S.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${S==null?void 0:S.kind}' instead.`),re.assert(((Ce=S.next)==null?void 0:Ce.kind)==="class","Incorrect value for top.next.kind.",()=>{var kt;return`Expected top.next.kind to be 'class' but got '${(kt=S.next)==null?void 0:kt.kind}' instead.`}),S=S.next,X()}function Fe(){re.assert((S==null?void 0:S.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${S==null?void 0:S.kind}' instead.`),S={kind:"name",next:S},X()}function et(){re.assert((S==null?void 0:S.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${S==null?void 0:S.kind}' instead.`),S=S.next,X()}function Pe(){(S==null?void 0:S.kind)==="other"?(re.assert(!F),S.depth++):(S={kind:"other",next:S,depth:0,savedPendingExpressions:F},F=void 0,X())}function dt(){re.assert((S==null?void 0:S.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${S==null?void 0:S.kind}' instead.`),S.depth>0?(re.assert(!F),S.depth--):(F=S.savedPendingExpressions,S=S.next,X())}function Ie(Ce){return!!(Ce.transformFlags&33554432)||!!P&&!!(Ce.transformFlags&16384)||!!P&&!!k&&!!(Ce.transformFlags&134217728)}function ct(Ce){if(!Ie(Ce))return Ce;switch(Ce.kind){case 170:return re.fail("Use `modifierVisitor` instead.");case 263:return nn(Ce);case 231:return Rn(Ce);case 176:case 172:case 175:return re.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return os(Ce);case 226:return Wl(Ce,!1);case 303:return zi(Ce);case 260:return na(Ce);case 208:return _a(Ce);case 277:return dr(Ce);case 110:return Pn(Ce);case 248:return ki(Ce);case 244:return gc(Ce);case 361:return au(Ce,!1);case 217:return Mr(Ce,!1);case 360:return Pr(Ce,!1);case 213:return Fr(Ce);case 215:return Ki(Ce);case 224:case 225:return Jc(Ce,!1);case 211:return io(Ce);case 212:return no(Ce);case 167:return Ia(Ce);case 174:case 178:case 177:case 218:case 262:{Pe();const kt=Xo(Ce,Ct,e);return dt(),kt}default:return Xo(Ce,Ct,e)}}function Ct(Ce){switch(Ce.kind){case 170:return;default:return ct(Ce)}}function Lt(Ce){switch(Ce.kind){case 170:return;default:return Ce}}function Ze(Ce){switch(Ce.kind){case 176:return Kt(Ce);case 174:return jt(Ce);case 177:return En(Ce);case 178:return fr(Ce);case 172:return Vr(Ce);case 175:return Tr(Ce);default:return ct(Ce)}}function Ke(Ce){switch(Ce.kind){case 224:case 225:return Jc(Ce,!0);case 226:return Wl(Ce,!0);case 361:return au(Ce,!0);case 217:return Mr(Ce,!0);default:return ct(Ce)}}function st(Ce){let kt=Ce.name&&xn(Ce.name)&&!$g(Ce.name)?Kr(Ce.name):Ce.name&&Lu(Ce.name)&&!$g(Ce.name)?Kr(Ce.name).slice(1):Ce.name&&Sd(Ce.name)&&H2(Ce.name.text,99)?Ce.name.text:Fl(Ce)?"class":"member";return PN(Ce)&&(kt=`get_${kt}`),UC(Ce)&&(kt=`set_${kt}`),Ce.name&&Lu(Ce.name)&&(kt=`private_${kt}`),pd(Ce)&&(kt=`static_${kt}`),"_"+kt}function It(Ce,kt){return n.createUniqueName(`${st(Ce)}_${kt}`,24)}function Yt(Ce,kt){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ce,void 0,void 0,kt)],1))}function Et(Ce){const kt=n.createUniqueName("_metadata",48);let qe,Mt,ge=!1,mn=!1,Jn=!1;for(const Nn of Ce.members)if(Jl(Nn)&&Z1(!1,Nn,Ce)&&(ev(Nn)?Mt??(Mt=n.createUniqueName("_staticExtraInitializers",48)):qe??(qe=n.createUniqueName("_instanceExtraInitializers",48))),Ep(Nn)?gj(Nn)||(ge=!0):nu(Nn)&&(ev(Nn)?ge||(ge=!!Nn.initializer||X2(Nn)):mn||(mn=!mde(Nn))),(IT(Nn)||xb(Nn))&&ev(Nn)&&(Jn=!0),Mt&&qe&&ge&&mn&&Jn)break;return{class:Ce,metadataReference:kt,instanceExtraInitializersName:qe,staticExtraInitializersName:Mt,hasStaticInitializers:ge,hasNonAmbientInstanceFields:mn,hasStaticPrivateClassElements:Jn}}function at(Ce){c(),!Y2e(Ce)&&yP(!1,Ce)&&(Ce=Eme(e,Ce,n.createStringLiteral("")));const kt=n.getLocalName(Ce,!1,!1,!0),qe=Et(Ce),Mt=[];let ge,mn,Jn,Nn,Lr=!1;const qi=ln(gme(Ce));if(qi){qe.classDecoratorsName=n.createUniqueName("_classDecorators",48),qe.classDescriptorName=n.createUniqueName("_classDescriptor",48),qe.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48);const ma=gt(Ce.members,Bl=>(IT(Bl)||xb(Bl))&&ev(Bl));qe.classThis=n.createUniqueName("_classThis",ma?24:48),Mt.push(Yt(qe.classDecoratorsName,n.createArrayLiteralExpression(qi)),Yt(qe.classDescriptorName),Yt(qe.classExtraInitializersName,n.createArrayLiteralExpression()),Yt(qe.classThis)),qe.hasStaticPrivateClassElements&&(Lr=!0,$=!0)}const vo=hA(Ce.heritageClauses,96),Ro=vo&&pp(vo.types),Ts=Ro&&Bn(Ro.expression,ct,kr);if(Ts){qe.classSuper=n.createUniqueName("_classSuper",48);const ma=iv(Ts),Bl=v0(ma)&&!ma.name||Jm(ma)&&!ma.name||$m(ma)?n.createComma(n.createNumericLiteral(0),Ts):Ts;Mt.push(Yt(qe.classSuper,Bl));const G_=n.updateExpressionWithTypeArguments(Ro,qe.classSuper,void 0),u_=n.updateHeritageClause(vo,[G_]);Nn=n.createNodeArray([u_])}const Cc=qe.classThis??n.createThis();ie(qe),ge=ur(ge,Ao(qe.metadataReference,qe.classSuper));let Pc=Wa(Ce.members,Ze,J_);if(F){let ma;for(let Bl of F){Bl=Bn(Bl,function u_(xa){if(!(xa.transformFlags&16384))return xa;switch(xa.kind){case 110:return ma||(ma=n.createUniqueName("_outerThis",16),Mt.unshift(Yt(ma,n.createThis()))),ma;default:return Xo(xa,u_,e)}},kr);const G_=n.createExpressionStatement(Bl);ge=ur(ge,G_)}F=void 0}if(ae(),qe.instanceExtraInitializersName&&!sC(Ce)){const ma=cn(Ce,qe);if(ma){const Bl=YC(Ce),G_=!!(Bl&&iv(Bl.expression).kind!==106),u_=[];if(G_){const Ym=n.createSpreadElement(n.createIdentifier("arguments")),mf=n.createCallExpression(n.createSuper(),void 0,[Ym]);u_.push(n.createExpressionStatement(mf))}Oi(u_,ma);const xa=n.createBlock(u_,!0);Jn=n.createConstructorDeclaration(void 0,[],xa)}}if(qe.staticExtraInitializersName&&Mt.push(Yt(qe.staticExtraInitializersName,n.createArrayLiteralExpression())),qe.instanceExtraInitializersName&&Mt.push(Yt(qe.instanceExtraInitializersName,n.createArrayLiteralExpression())),qe.memberInfos&&Jb(qe.memberInfos,(ma,Bl)=>{pd(Bl)&&(Mt.push(Yt(ma.memberDecoratorsName)),ma.memberInitializersName&&Mt.push(Yt(ma.memberInitializersName,n.createArrayLiteralExpression())),ma.memberDescriptorName&&Mt.push(Yt(ma.memberDescriptorName)))}),qe.memberInfos&&Jb(qe.memberInfos,(ma,Bl)=>{pd(Bl)||(Mt.push(Yt(ma.memberDecoratorsName)),ma.memberInitializersName&&Mt.push(Yt(ma.memberInitializersName,n.createArrayLiteralExpression())),ma.memberDescriptorName&&Mt.push(Yt(ma.memberDescriptorName)))}),ge=Oi(ge,qe.staticNonFieldDecorationStatements),ge=Oi(ge,qe.nonStaticNonFieldDecorationStatements),ge=Oi(ge,qe.staticFieldDecorationStatements),ge=Oi(ge,qe.nonStaticFieldDecorationStatements),qe.classDescriptorName&&qe.classDecoratorsName&&qe.classExtraInitializersName&&qe.classThis){ge??(ge=[]);const ma=n.createPropertyAssignment("value",Cc),Bl=n.createObjectLiteralExpression([ma]),G_=n.createAssignment(qe.classDescriptorName,Bl),u_=n.createPropertyAccessExpression(Cc,"name"),xa=i().createESDecorateHelper(n.createNull(),G_,qe.classDecoratorsName,{kind:"class",name:u_,metadata:qe.metadataReference},n.createNull(),qe.classExtraInitializersName),Ym=n.createExpressionStatement(xa);lp(Ym,$E(Ce)),ge.push(Ym);const mf=n.createPropertyAccessExpression(qe.classDescriptorName,"value"),Cp=n.createAssignment(qe.classThis,mf),Yg=n.createAssignment(kt,Cp);ge.push(n.createExpressionStatement(Yg))}if(ge.push(Io(Cc,qe.metadataReference)),qe.staticExtraInitializersName){const ma=i().createRunInitializersHelper(Cc,qe.staticExtraInitializersName),Bl=n.createExpressionStatement(ma);lp(Bl,Ce.name??$E(Ce)),ge=ur(ge,Bl)}if(qe.classExtraInitializersName){const ma=i().createRunInitializersHelper(Cc,qe.classExtraInitializersName),Bl=n.createExpressionStatement(ma);lp(Bl,Ce.name??$E(Ce)),mn=ur(mn,Bl)}ge&&mn&&!qe.hasStaticInitializers&&(Oi(ge,mn),mn=void 0);const hc=ge&&n.createClassStaticBlockDeclaration(n.createBlock(ge,!0));hc&&Lr&&Sp(hc,32);const bl=mn&&n.createClassStaticBlockDeclaration(n.createBlock(mn,!0));if(hc||Jn||bl){const ma=[],Bl=Pc.findIndex(gj);hc?(Oi(ma,Pc,0,Bl+1),ma.push(hc),Oi(ma,Pc,Bl+1)):Oi(ma,Pc),Jn&&ma.push(Jn),bl&&ma.push(bl),Pc=Tn(n.createNodeArray(ma),Pc)}const Tc=u();let Tf;if(qi){Tf=n.createClassExpression(void 0,void 0,void 0,Nn,Pc),qe.classThis&&(Tf=FW(n,Tf,qe.classThis));const ma=n.createVariableDeclaration(kt,void 0,void 0,Tf),Bl=n.createVariableDeclarationList([ma]),G_=qe.classThis?n.createAssignment(kt,qe.classThis):kt;Mt.push(n.createVariableStatement(void 0,Bl),n.createReturnStatement(G_))}else Tf=n.createClassExpression(void 0,Ce.name,void 0,Nn,Pc),Mt.push(n.createReturnStatement(Tf));if(Lr){DG(Tf,32);for(const ma of Tf.members)(IT(ma)||xb(ma))&&ev(ma)&&DG(ma,32)}return Ls(Tf,Ce),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(Mt,Tc))}function Qt(Ce){return yP(!1,Ce)||b7(!1,Ce)}function nn(Ce){if(Qt(Ce)){const kt=[],qe=Gg(Ce,Fl)??Ce,Mt=qe.name?n.createStringLiteralFromNode(qe.name):n.createStringLiteral("default"),ge=ul(Ce,32),mn=ul(Ce,2048);if(Ce.name||(Ce=Eme(e,Ce,Mt)),ge&&mn){const Jn=at(Ce);if(Ce.name){const Nn=n.createVariableDeclaration(n.getLocalName(Ce),void 0,void 0,Jn);Ls(Nn,Ce);const Lr=n.createVariableDeclarationList([Nn],1),qi=n.createVariableStatement(void 0,Lr);kt.push(qi);const vo=n.createExportDefault(n.getDeclarationName(Ce));Ls(vo,Ce),dy(vo,MS(Ce)),lp(vo,$E(Ce)),kt.push(vo)}else{const Nn=n.createExportDefault(Jn);Ls(Nn,Ce),dy(Nn,MS(Ce)),lp(Nn,$E(Ce)),kt.push(Nn)}}else{re.assertIsDefined(Ce.name,"A class declaration that is not a default export must have a name.");const Jn=at(Ce),Nn=ge?Cc=>_W(Cc)?void 0:Lt(Cc):Lt,Lr=Wa(Ce.modifiers,Nn,Mf),qi=n.getLocalName(Ce,!1,!0),vo=n.createVariableDeclaration(qi,void 0,void 0,Jn);Ls(vo,Ce);const Ro=n.createVariableDeclarationList([vo],1),Ts=n.createVariableStatement(Lr,Ro);if(Ls(Ts,Ce),dy(Ts,MS(Ce)),kt.push(Ts),ge){const Cc=n.createExternalModuleExport(qi);Ls(Cc,Ce),kt.push(Cc)}}return N0(kt)}else{const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.heritageClauses,ct,Qb);ie(void 0);const Mt=Wa(Ce.members,Ze,J_);return ae(),n.updateClassDeclaration(Ce,kt,Ce.name,void 0,qe,Mt)}}function Rn(Ce){if(Qt(Ce)){const kt=at(Ce);return Ls(kt,Ce),kt}else{const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.heritageClauses,ct,Qb);ie(void 0);const Mt=Wa(Ce.members,Ze,J_);return ae(),n.updateClassExpression(Ce,kt,Ce.name,void 0,qe,Mt)}}function cn(Ce,kt){if(kt.instanceExtraInitializersName&&!kt.hasNonAmbientInstanceFields){const qe=[];return qe.push(n.createExpressionStatement(i().createRunInitializersHelper(n.createThis(),kt.instanceExtraInitializersName))),qe}}function qt(Ce,kt,qe,Mt,ge,mn){const Jn=Mt[ge],Nn=kt[Jn];if(Oi(Ce,Wa(kt,ct,dl,qe,Jn-qe)),My(Nn)){const Lr=[];qt(Lr,Nn.tryBlock.statements,0,Mt,ge+1,mn);const qi=n.createNodeArray(Lr);Tn(qi,Nn.tryBlock.statements),Ce.push(n.updateTryStatement(Nn,n.updateBlock(Nn.tryBlock,Lr),Bn(Nn.catchClause,ct,A3),Bn(Nn.finallyBlock,ct,Ou)))}else Oi(Ce,Wa(kt,ct,dl,Jn,1)),Oi(Ce,mn);Oi(Ce,Wa(kt,ct,dl,Jn+1))}function Kt(Ce){ve(Ce);const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.parameters,ct,Os);let Mt;if(Ce.body&&E){const ge=cn(E.class,E);if(ge){const mn=[],Jn=n.copyPrologue(Ce.body.statements,mn,!1,ct),Nn=mme(Ce.body.statements,Jn);Nn.length>0?qt(mn,Ce.body.statements,Jn,Nn,0,ge):(Oi(mn,ge),Oi(mn,Wa(Ce.body.statements,ct,dl))),Mt=n.createBlock(mn,!0),Ls(Mt,Ce.body),Tn(Mt,Ce.body)}}return Mt??(Mt=Bn(Ce.body,ct,Ou)),we(),n.updateConstructorDeclaration(Ce,kt,qe,Mt)}function wr(Ce,kt){return Ce!==kt&&(dy(Ce,kt),lp(Ce,$E(kt))),Ce}function Wr(Ce,kt,qe){let Mt,ge,mn,Jn,Nn;if(!kt){const vo=Wa(Ce.modifiers,Lt,Mf);return Fe(),ge=za(Ce.name),et(),{modifiers:vo,referencedName:Mt,name:ge,initializersName:mn,descriptorName:Nn,thisArg:Jn}}const Lr=ln(wae(Ce,kt.class,!1)),qi=Wa(Ce.modifiers,Lt,Mf);if(Lr){const vo=It(Ce,"decorators"),Ro=n.createArrayLiteralExpression(Lr),Ts=n.createAssignment(vo,Ro),Cc={memberDecoratorsName:vo};kt.memberInfos??(kt.memberInfos=new Map),kt.memberInfos.set(Ce,Cc),F??(F=[]),F.push(Ts);const Pc=Mv(Ce)||xb(Ce)?pd(Ce)?kt.staticNonFieldDecorationStatements??(kt.staticNonFieldDecorationStatements=[]):kt.nonStaticNonFieldDecorationStatements??(kt.nonStaticNonFieldDecorationStatements=[]):nu(Ce)&&!xb(Ce)?pd(Ce)?kt.staticFieldDecorationStatements??(kt.staticFieldDecorationStatements=[]):kt.nonStaticFieldDecorationStatements??(kt.nonStaticFieldDecorationStatements=[]):re.fail(),hc=lE(Ce)?"getter":Xb(Ce)?"setter":tm(Ce)?"method":xb(Ce)?"accessor":nu(Ce)?"field":re.fail();let bl;if(xn(Ce.name)||Lu(Ce.name))bl={computed:!1,name:Ce.name};else if(Qv(Ce.name))bl={computed:!0,name:n.createStringLiteralFromNode(Ce.name)};else{const ma=Ce.name.expression;Qv(ma)&&!xn(ma)?bl={computed:!0,name:n.createStringLiteralFromNode(ma)}:(Fe(),{referencedName:Mt,name:ge}=qn(Ce.name),bl={computed:!0,name:Mt},et())}const Tc={kind:hc,name:bl,static:pd(Ce),private:Lu(Ce.name),access:{get:nu(Ce)||lE(Ce)||tm(Ce),set:nu(Ce)||Xb(Ce)},metadata:kt.metadataReference},Tf=pd(Ce)?kt.staticExtraInitializersName??(kt.staticExtraInitializersName=n.createUniqueName("_staticExtraInitializers",48)):kt.instanceExtraInitializersName??(kt.instanceExtraInitializersName=n.createUniqueName("_instanceExtraInitializers",48));if(Mv(Ce)){let ma;IT(Ce)&&qe&&(ma=qe(Ce,Wa(qi,u_=>to(u_,NJ),Mf)),Cc.memberDescriptorName=Nn=It(Ce,"descriptor"),ma=n.createAssignment(Nn,ma));const Bl=i().createESDecorateHelper(n.createThis(),ma??n.createNull(),vo,Tc,n.createNull(),Tf),G_=n.createExpressionStatement(Bl);lp(G_,$E(Ce)),Pc.push(G_)}else if(nu(Ce)){mn=Cc.memberInitializersName??(Cc.memberInitializersName=It(Ce,"initializers")),pd(Ce)&&(Jn=kt.classThis);let ma;IT(Ce)&&e_(Ce)&&qe&&(ma=qe(Ce,void 0),Cc.memberDescriptorName=Nn=It(Ce,"descriptor"),ma=n.createAssignment(Nn,ma));const Bl=i().createESDecorateHelper(xb(Ce)?n.createThis():n.createNull(),ma??n.createNull(),vo,Tc,mn,Tf),G_=n.createExpressionStatement(Bl);lp(G_,$E(Ce)),Pc.push(G_)}}return ge===void 0&&(Fe(),ge=za(Ce.name),et()),!gt(qi)&&(tm(Ce)||nu(Ce))&&_s(ge,1024),{modifiers:qi,referencedName:Mt,name:ge,initializersName:mn,descriptorName:Nn,thisArg:Jn}}function jt(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Ge);if(Mt)return we(),wr(Sr(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateMethodDeclaration(Ce,kt,Ce.asteriskToken,qe,void 0,void 0,ge,void 0,mn),Ce)}}function En(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Br);if(Mt)return we(),wr(yi(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateGetAccessorDeclaration(Ce,kt,qe,ge,void 0,mn),Ce)}}function fr(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Ei);if(Mt)return we(),wr(go(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateSetAccessorDeclaration(Ce,kt,qe,ge,mn),Ce)}}function Tr(Ce){ve(Ce);let kt;if(gj(Ce))kt=Xo(Ce,ct,e);else if(S$(Ce)){const qe=P;P=void 0,kt=Xo(Ce,ct,e),P=qe}else E&&(E.hasStaticInitializers=!0),kt=Xo(Ce,ct,e);return we(),kt}function Vr(Ce){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),ve(Ce),re.assert(!mde(Ce),"Not yet implemented.");const{modifiers:kt,name:qe,initializersName:Mt,descriptorName:ge,thisArg:mn}=Wr(Ce,E,e_(Ce)?Ln:void 0);c();let Jn=Bn(Ce.initializer,ct,kr);Mt&&(Jn=i().createRunInitializersHelper(mn??n.createThis(),Mt,Jn??n.createVoidZero())),!pd(Ce)&&(E!=null&&E.instanceExtraInitializersName)&&!(E!=null&&E.hasInjectedInstanceInitializers)&&(E.hasInjectedInstanceInitializers=!0,Jn??(Jn=n.createVoidZero()),Jn=n.createParenthesizedExpression(n.createComma(i().createRunInitializersHelper(n.createThis(),E.instanceExtraInitializersName),Jn))),pd(Ce)&&E&&Jn&&(E.hasStaticInitializers=!0);const Nn=u();if(gt(Nn)&&(Jn=n.createImmediatelyInvokedArrowFunction([...Nn,n.createReturnStatement(Jn)])),we(),e_(Ce)&&ge){const Lr=MS(Ce),qi=YL(Ce),vo=Ce.name;let Ro=vo,Ts=vo;if(Qf(vo)&&!IA(vo.expression)){const Tc=KJ(vo);if(Tc)Ro=n.updateComputedPropertyName(vo,Bn(vo.expression,ct,kr)),Ts=n.updateComputedPropertyName(vo,Tc.left);else{const Tf=n.createTempVariable(d);lp(Tf,vo.expression);const ma=Bn(vo.expression,ct,kr),Bl=n.createAssignment(Tf,ma);lp(Bl,vo.expression),Ro=n.updateComputedPropertyName(vo,Bl),Ts=n.updateComputedPropertyName(vo,Tf)}}const Cc=Wa(kt,Tc=>Tc.kind!==129?Tc:void 0,Mf),Pc=qJ(n,Ce,Cc,Jn);Ls(Pc,Ce),_s(Pc,3072),lp(Pc,qi),lp(Pc.name,Ce.name);const hc=yi(Cc,Ro,ge);Ls(hc,Ce),dy(hc,Lr),lp(hc,qi);const bl=go(Cc,Ts,ge);return Ls(bl,Ce),_s(bl,3072),lp(bl,qi),[Pc,hc,bl]}return wr(n.updatePropertyDeclaration(Ce,kt,qe,void 0,void 0,Jn),Ce)}function Pn(Ce){return P??Ce}function Fr(Ce){if(MT(Ce.expression)&&P){const kt=Bn(Ce.expression,ct,kr),qe=Wa(Ce.arguments,ct,kr),Mt=n.createFunctionCallCall(kt,P,qe);return Ls(Mt,Ce),Tn(Mt,Ce),Mt}return Xo(Ce,ct,e)}function Ki(Ce){if(MT(Ce.tag)&&P){const kt=Bn(Ce.tag,ct,kr),qe=n.createFunctionBindCall(kt,P,[]);Ls(qe,Ce),Tn(qe,Ce);const Mt=Bn(Ce.template,ct,Hz);return n.updateTaggedTemplateExpression(Ce,qe,void 0,Mt)}return Xo(Ce,ct,e)}function io(Ce){if(MT(Ce)&&xn(Ce.name)&&P&&k){const kt=n.createStringLiteralFromNode(Ce.name),qe=n.createReflectGetCall(k,kt,P);return Ls(qe,Ce.expression),Tn(qe,Ce.expression),qe}return Xo(Ce,ct,e)}function no(Ce){if(MT(Ce)&&P&&k){const kt=Bn(Ce.argumentExpression,ct,kr),qe=n.createReflectGetCall(k,kt,P);return Ls(qe,Ce.expression),Tn(qe,Ce.expression),qe}return Xo(Ce,ct,e)}function os(Ce){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer)));const kt=n.updateParameterDeclaration(Ce,void 0,Ce.dotDotDotToken,Bn(Ce.name,ct,lR),void 0,void 0,Bn(Ce.initializer,ct,kr));return kt!==Ce&&(dy(kt,Ce),Tn(kt,Db(Ce)),lp(kt,Db(Ce)),_s(kt.name,64)),kt}function Mo(Ce){return v0(Ce)&&!Ce.name&&Qt(Ce)}function $i(Ce){const kt=iv(Ce);return v0(kt)&&!kt.name&&!yP(!1,kt)}function ki(Ce){return n.updateForStatement(Ce,Bn(Ce.initializer,Ke,DS),Bn(Ce.condition,ct,kr),Bn(Ce.incrementor,Ke,kr),LS(Ce.statement,ct,e))}function gc(Ce){return Xo(Ce,Ke,e)}function Wl(Ce,kt){if(wy(Ce)){const qe=Hn(Ce.left),Mt=Bn(Ce.right,ct,kr);return n.updateBinaryExpression(Ce,qe,Ce.operatorToken,Mt)}if(Zv(Ce)){if(UE(Ce,Mo))return Ce=mE(e,Ce,$i(Ce.right)),Xo(Ce,ct,e);if(MT(Ce.left)&&P&&k){let qe=Hm(Ce.left)?Bn(Ce.left.argumentExpression,ct,kr):xn(Ce.left.name)?n.createStringLiteralFromNode(Ce.left.name):void 0;if(qe){let Mt=Bn(Ce.right,ct,kr);if(uj(Ce.operatorToken.kind)){let mn=qe;IA(qe)||(mn=n.createTempVariable(d),qe=n.createAssignment(mn,qe));const Jn=n.createReflectGetCall(k,mn,P);Ls(Jn,Ce.left),Tn(Jn,Ce.left),Mt=n.createBinaryExpression(Jn,RQ(Ce.operatorToken.kind),Mt),Tn(Mt,Ce)}const ge=kt?void 0:n.createTempVariable(d);return ge&&(Mt=n.createAssignment(ge,Mt),Tn(ge,Ce)),Mt=n.createReflectSetCall(k,qe,Mt,P),Ls(Mt,Ce),Tn(Mt,Ce),ge&&(Mt=n.createComma(Mt,ge),Tn(Mt,Ce)),Mt}}}if(Ce.operatorToken.kind===28){const qe=Bn(Ce.left,Ke,kr),Mt=Bn(Ce.right,kt?Ke:ct,kr);return n.updateBinaryExpression(Ce,qe,Ce.operatorToken,Mt)}return Xo(Ce,ct,e)}function Jc(Ce,kt){if(Ce.operator===46||Ce.operator===47){const qe=rg(Ce.operand);if(MT(qe)&&P&&k){let Mt=Hm(qe)?Bn(qe.argumentExpression,ct,kr):xn(qe.name)?n.createStringLiteralFromNode(qe.name):void 0;if(Mt){let ge=Mt;IA(Mt)||(ge=n.createTempVariable(d),Mt=n.createAssignment(ge,Mt));let mn=n.createReflectGetCall(k,ge,P);Ls(mn,Ce),Tn(mn,Ce);const Jn=kt?void 0:n.createTempVariable(d);return mn=JY(n,Ce,mn,d,Jn),mn=n.createReflectSetCall(k,Mt,mn,P),Ls(mn,Ce),Tn(mn,Ce),Jn&&(mn=n.createComma(mn,Jn),Tn(mn,Ce)),mn}}}return Xo(Ce,ct,e)}function au(Ce,kt){const qe=kt?NQ(Ce.elements,Ke):NQ(Ce.elements,ct,Ke);return n.updateCommaListExpression(Ce,qe)}function qn(Ce){if(Qv(Ce)||Lu(Ce)){const mn=n.createStringLiteralFromNode(Ce),Jn=Bn(Ce,ct,qg);return{referencedName:mn,name:Jn}}if(Qv(Ce.expression)&&!xn(Ce.expression)){const mn=n.createStringLiteralFromNode(Ce.expression),Jn=Bn(Ce,ct,qg);return{referencedName:mn,name:Jn}}const kt=n.getGeneratedNameForNode(Ce);d(kt);const qe=i().createPropKeyHelper(Bn(Ce.expression,ct,kr)),Mt=n.createAssignment(kt,qe),ge=n.updateComputedPropertyName(Ce,Bt(Mt));return{referencedName:kt,name:ge}}function za(Ce){return Qf(Ce)?Ia(Ce):Bn(Ce,ct,qg)}function Ia(Ce){let kt=Bn(Ce.expression,ct,kr);return IA(kt)||(kt=Bt(kt)),n.updateComputedPropertyName(Ce,kt)}function zi(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function na(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function _a(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function us(Ce){if(el(Ce)||Ed(Ce))return Hn(Ce);if(MT(Ce)&&P&&k){const kt=Hm(Ce)?Bn(Ce.argumentExpression,ct,kr):xn(Ce.name)?n.createStringLiteralFromNode(Ce.name):void 0;if(kt){const qe=n.createTempVariable(void 0),Mt=n.createAssignmentTargetWrapper(qe,n.createReflectSetCall(k,kt,qe,P));return Ls(Mt,Ce),Tn(Mt,Ce),Mt}}return Xo(Ce,ct,e)}function Au(Ce){if(Zv(Ce,!0)){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.right)));const kt=us(Ce.left),qe=Bn(Ce.right,ct,kr);return n.updateBinaryExpression(Ce,kt,Ce.operatorToken,qe)}else return us(Ce)}function Qu(Ce){if(ib(Ce.expression)){const kt=us(Ce.expression);return n.updateSpreadElement(Ce,kt)}return Xo(Ce,ct,e)}function Cu(Ce){return re.assertNode(Ce,p9),WT(Ce)?Qu(Ce):cb(Ce)?Xo(Ce,ct,e):Au(Ce)}function yf(Ce){const kt=Bn(Ce.name,ct,qg);if(Zv(Ce.initializer,!0)){const qe=Au(Ce.initializer);return n.updatePropertyAssignment(Ce,kt,qe)}if(ib(Ce.initializer)){const qe=us(Ce.initializer);return n.updatePropertyAssignment(Ce,kt,qe)}return Xo(Ce,ct,e)}function w_(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.objectAssignmentInitializer))),Xo(Ce,ct,e)}function Eu(Ce){if(ib(Ce.expression)){const kt=us(Ce.expression);return n.updateSpreadAssignment(Ce,kt)}return Xo(Ce,ct,e)}function He(Ce){return re.assertNode(Ce,d9),xA(Ce)?Eu(Ce):XE(Ce)?w_(Ce):tl(Ce)?yf(Ce):Xo(Ce,ct,e)}function Hn(Ce){if(Ed(Ce)){const kt=Wa(Ce.elements,Cu,kr);return n.updateArrayLiteralExpression(Ce,kt)}else{const kt=Wa(Ce.properties,He,DN);return n.updateObjectLiteralExpression(Ce,kt)}}function dr(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.expression))),Xo(Ce,ct,e)}function Mr(Ce,kt){const qe=kt?Ke:ct,Mt=Bn(Ce.expression,qe,kr);return n.updateParenthesizedExpression(Ce,Mt)}function Pr(Ce,kt){const qe=kt?Ke:ct,Mt=Bn(Ce.expression,qe,kr);return n.updatePartiallyEmittedExpression(Ce,Mt)}function Bt(Ce){return gt(F)&&(fE(Ce)?(F.push(Ce.expression),Ce=n.updateParenthesizedExpression(Ce,n.inlineExpressions(F))):(F.push(Ce),Ce=n.inlineExpressions(F)),F=void 0),Ce}function ln(Ce){if(!Ce)return;const kt=[];return Oi(kt,Vn(Ce.decorators,Wn)),kt}function Wn(Ce){const kt=Bn(Ce.expression,ct,kr);_s(kt,3072);const qe=iv(kt);if(Kf(qe)){const{target:Mt,thisArg:ge}=n.createCallBinding(kt,d,h,!0);return n.restoreOuterExpressions(kt,n.createFunctionBindCall(Mt,ge,[]))}return kt}function $r(Ce,kt,qe,Mt,ge,mn,Jn){const Nn=n.createFunctionExpression(qe,Mt,void 0,void 0,mn,void 0,Jn??n.createBlock([]));Ls(Nn,Ce),lp(Nn,$E(Ce)),_s(Nn,3072);const Lr=ge==="get"||ge==="set"?ge:void 0,qi=n.createStringLiteralFromNode(kt,void 0),vo=i().createSetFunctionNameHelper(Nn,qi,Lr),Ro=n.createPropertyAssignment(n.createIdentifier(ge),vo);return Ls(Ro,Ce),lp(Ro,$E(Ce)),_s(Ro,3072),Ro}function Ge(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,Ce.asteriskToken,"value",Wa(Ce.parameters,ct,Os),Bn(Ce.body,ct,Ou))])}function Br(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"get",[],Bn(Ce.body,ct,Ou))])}function Ei(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"set",Wa(Ce.parameters,ct,Os),Bn(Ce.body,ct,Ou))])}function Ln(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Ce.name)))])),$r(Ce,Ce.name,kt,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Ce.name)),n.createIdentifier("value")))]))])}function Sr(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createGetAccessorDeclaration(Ce,kt,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(qe,n.createIdentifier("value")))]))}function yi(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createGetAccessorDeclaration(Ce,kt,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(qe,n.createIdentifier("get")),n.createThis(),[]))]))}function go(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createSetAccessorDeclaration(Ce,kt,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(qe,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function Ao(Ce,kt){const qe=n.createVariableDeclaration(Ce,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[kt?ze(kt):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([qe],2))}function Io(Ce,kt){const qe=n.createObjectDefinePropertyCall(Ce,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:kt},!0));return _s(n.createIfStatement(kt,n.createExpressionStatement(qe)),1)}function ze(Ce){return n.createBinaryExpression(n.createElementAccessExpression(Ce,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}var uct=G({"src/compiler/transformers/esDecorators.ts"(){md()}});function exe(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=e.getEmitResolver(),S=e.getCompilerOptions(),E=iu(S);let P,k=0,F,$,J;const X=[];let ie=0;const ae=e.onEmitNode,ve=e.onSubstituteNode;return e.onEmitNode=os,e.onSubstituteNode=Mo,_C(e,we);function we(qn){if(qn.isDeclarationFile)return qn;Fe(1,!1),Fe(2,!QTe(qn,S));const za=Xo(qn,Ct,e);return $N(za,e.readEmitHelpers()),za}function Fe(qn,za){ie=za?ie|qn:ie&~qn}function et(qn){return(ie&qn)!==0}function Pe(){return!et(1)}function dt(){return et(2)}function Ie(qn,za,Ia){const zi=qn&~ie;if(zi){Fe(zi,!0);const na=za(Ia);return Fe(zi,!1),na}return za(Ia)}function ct(qn){return Xo(qn,Ct,e)}function Ct(qn){if(!(qn.transformFlags&256))return qn;switch(qn.kind){case 134:return;case 223:return Et(qn);case 174:return Ie(3,Qt,qn);case 262:return Ie(3,cn,qn);case 218:return Ie(3,qt,qn);case 219:return Ie(1,Kt,qn);case 211:return $&&Ac(qn)&&qn.expression.kind===108&&$.add(qn.name.escapedText),Xo(qn,Ct,e);case 212:return $&&qn.expression.kind===108&&(J=!0),Xo(qn,Ct,e);case 177:return Ie(3,nn,qn);case 178:return Ie(3,Rn,qn);case 176:return Ie(3,at,qn);case 263:case 231:return Ie(3,ct,qn);default:return Xo(qn,Ct,e)}}function Lt(qn){if(pH(qn))switch(qn.kind){case 243:return Ke(qn);case 248:return Yt(qn);case 249:return st(qn);case 250:return It(qn);case 299:return Ze(qn);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Xo(qn,Lt,e);default:return re.assertNever(qn,"Unhandled node.")}return Ct(qn)}function Ze(qn){const za=new Set;wr(qn.variableDeclaration,za);let Ia;if(za.forEach((zi,na)=>{F.has(na)&&(Ia||(Ia=new Set(F)),Ia.delete(na))}),Ia){const zi=F;F=Ia;const na=Xo(qn,Lt,e);return F=zi,na}else return Xo(qn,Lt,e)}function Ke(qn){if(Wr(qn.declarationList)){const za=jt(qn.declarationList,!1);return za?n.createExpressionStatement(za):void 0}return Xo(qn,Ct,e)}function st(qn){return n.updateForInStatement(qn,Wr(qn.initializer)?jt(qn.initializer,!0):re.checkDefined(Bn(qn.initializer,Ct,DS)),re.checkDefined(Bn(qn.expression,Ct,kr)),LS(qn.statement,Lt,e))}function It(qn){return n.updateForOfStatement(qn,Bn(qn.awaitModifier,Ct,ape),Wr(qn.initializer)?jt(qn.initializer,!0):re.checkDefined(Bn(qn.initializer,Ct,DS)),re.checkDefined(Bn(qn.expression,Ct,kr)),LS(qn.statement,Lt,e))}function Yt(qn){const za=qn.initializer;return n.updateForStatement(qn,Wr(za)?jt(za,!1):Bn(qn.initializer,Ct,DS),Bn(qn.condition,Ct,kr),Bn(qn.incrementor,Ct,kr),LS(qn.statement,Lt,e))}function Et(qn){return Pe()?Xo(qn,Ct,e):Ls(Tn(n.createYieldExpression(void 0,Bn(qn.expression,Ct,kr)),qn),qn)}function at(qn){return n.updateConstructorDeclaration(qn,Wa(qn.modifiers,Ct,Mf),sm(qn.parameters,Ct,e),Pn(qn))}function Qt(qn){return n.updateMethodDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.asteriskToken,qn.name,void 0,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):Pn(qn))}function nn(qn){return n.updateGetAccessorDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.name,sm(qn.parameters,Ct,e),void 0,Pn(qn))}function Rn(qn){return n.updateSetAccessorDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.name,sm(qn.parameters,Ct,e),Pn(qn))}function cn(qn){return n.updateFunctionDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.asteriskToken,qn.name,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function qt(qn){return n.updateFunctionExpression(qn,Wa(qn.modifiers,Ct,Mf),qn.asteriskToken,qn.name,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function Kt(qn){return n.updateArrowFunction(qn,Wa(qn.modifiers,Ct,Mf),void 0,sm(qn.parameters,Ct,e),void 0,qn.equalsGreaterThanToken,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function wr({name:qn},za){if(xn(qn))za.add(qn.escapedText);else for(const Ia of qn.elements)cb(Ia)||wr(Ia,za)}function Wr(qn){return!!qn&&Kp(qn)&&!(qn.flags&7)&&qn.declarations.some(Vr)}function jt(qn,za){En(qn);const Ia=n3(qn);return Ia.length===0?za?Bn(n.converters.convertToAssignmentElementTarget(qn.declarations[0].name),Ct,kr):void 0:n.inlineExpressions(Vn(Ia,Tr))}function En(qn){Ot(qn.declarations,fr)}function fr({name:qn}){if(xn(qn))d(qn);else for(const za of qn.elements)cb(za)||fr(za)}function Tr(qn){const za=lp(n.createAssignment(n.converters.convertToAssignmentElementTarget(qn.name),qn.initializer),qn);return re.checkDefined(Bn(za,Ct,kr))}function Vr({name:qn}){if(xn(qn))return F.has(qn.escapedText);for(const za of qn.elements)if(!cb(za)&&Vr(za))return!0;return!1}function Pn(qn){re.assertIsDefined(qn.body);const za=$,Ia=J;$=new Set,J=!1;let zi=ox(qn.body,Ct,e);const na=Gg(qn,Vd);if(E>=2&&h.getNodeCheckFlags(qn)&384&&(ob(na)&3)!==3){if(no(),$.size){const us=Cme(n,h,qn,$);X[vm(us)]=!0;const Au=zi.statements.slice();Um(Au,[us]),zi=n.updateBlock(zi,Au)}J&&(h.getNodeCheckFlags(qn)&256?v3(zi,wG):h.getNodeCheckFlags(qn)&128&&v3(zi,nS))}return $=za,J=Ia,zi}function Fr(qn){c();const Ia=Gg(qn,F_).type,zi=E<2?io(Ia):void 0,na=qn.kind===219,_a=(h.getNodeCheckFlags(qn)&512)!==0,us=F;F=new Set;for(const yf of qn.parameters)wr(yf,F);const Au=$,Qu=J;na||($=new Set,J=!1);let Cu;if(na){const yf=i().createAwaiterHelper(dt(),_a,zi,Ki(qn.body)),w_=u();if(gt(w_)){const Eu=n.converters.convertToFunctionBlock(yf);Cu=n.updateBlock(Eu,Tn(n.createNodeArray(Hi(w_,Eu.statements)),Eu.statements))}else Cu=yf}else{const yf=[],w_=n.copyPrologue(qn.body.statements,yf,!1,Ct);yf.push(n.createReturnStatement(i().createAwaiterHelper(dt(),_a,zi,Ki(qn.body,w_)))),Um(yf,u());const Eu=E>=2&&h.getNodeCheckFlags(qn)&384;if(Eu&&(no(),$.size)){const Hn=Cme(n,h,qn,$);X[vm(Hn)]=!0,Um(yf,[Hn])}const He=n.createBlock(yf,!0);Tn(He,qn.body),Eu&&J&&(h.getNodeCheckFlags(qn)&256?v3(He,wG):h.getNodeCheckFlags(qn)&128&&v3(He,nS)),Cu=He}return F=us,na||($=Au,J=Qu),Cu}function Ki(qn,za){return Ou(qn)?n.updateBlock(qn,Wa(qn.statements,Lt,dl,za)):n.converters.convertToFunctionBlock(re.checkDefined(Bn(qn,Lt,VU)))}function io(qn){const za=qn&&cY(qn);if(za&&kT(za)){const Ia=h.getTypeReferenceSerializationKind(za);if(Ia===1||Ia===0)return za}}function no(){P&1||(P|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function os(qn,za,Ia){if(P&1&&Jc(za)){const zi=h.getNodeCheckFlags(za)&384;if(zi!==k){const na=k;k=zi,ae(qn,za,Ia),k=na;return}}else if(P&&X[vm(za)]){const zi=k;k=0,ae(qn,za,Ia),k=zi;return}ae(qn,za,Ia)}function Mo(qn,za){return za=ve(qn,za),qn===1&&k?$i(za):za}function $i(qn){switch(qn.kind){case 211:return ki(qn);case 212:return gc(qn);case 213:return Wl(qn)}return qn}function ki(qn){return qn.expression.kind===108?Tn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),qn.name),qn):qn}function gc(qn){return qn.expression.kind===108?au(qn.argumentExpression,qn):qn}function Wl(qn){const za=qn.expression;if(MT(za)){const Ia=Ac(za)?ki(za):gc(za);return n.createCallExpression(n.createPropertyAccessExpression(Ia,"call"),void 0,[n.createThis(),...qn.arguments])}return qn}function Jc(qn){const za=qn.kind;return za===263||za===176||za===174||za===177||za===178}function au(qn,za){return k&256?Tn(n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[qn]),"value"),za):Tn(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[qn]),za)}}function Cme(e,n,i,c){const u=(n.getNodeCheckFlags(i)&256)!==0,d=[];return c.forEach((h,S)=>{const E=Ic(S),P=[];P.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,_s(e.createPropertyAccessExpression(_s(e.createSuper(),8),E),8)))),u&&P.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(_s(e.createPropertyAccessExpression(_s(e.createSuper(),8),E),8),e.createIdentifier("v"))))),d.push(e.createPropertyAssignment(E,e.createObjectLiteralExpression(P)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(d,!0)]))],2))}var HHe=G({"src/compiler/transformers/es2017.ts"(){md()}});function d4e(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=e.getEmitResolver(),S=e.getCompilerOptions(),E=iu(S),P=e.onEmitNode;e.onEmitNode=yf;const k=e.onSubstituteNode;e.onSubstituteNode=w_;let F=!1,$,J,X,ie=0,ae=0,ve,we,Fe,et;const Pe=[];return _C(e,Lt);function dt(Bt,ln){return ae!==(ae&~Bt|ln)}function Ie(Bt,ln){const Wn=ae;return ae=(ae&~Bt|ln)&3,Wn}function ct(Bt){ae=Bt}function Ct(Bt){we=ur(we,n.createVariableDeclaration(Bt))}function Lt(Bt){if(Bt.isDeclarationFile)return Bt;ve=Bt;const ln=Wr(Bt);return $N(ln,e.readEmitHelpers()),ve=void 0,we=void 0,ln}function Ze(Bt){return Et(Bt,!1)}function Ke(Bt){return Et(Bt,!0)}function st(Bt){if(Bt.kind!==134)return Bt}function It(Bt,ln,Wn,$r){if(dt(Wn,$r)){const Ge=Ie(Wn,$r),Br=Bt(ln);return ct(Ge),Br}return Bt(ln)}function Yt(Bt){return Xo(Bt,Ze,e)}function Et(Bt,ln){if(!(Bt.transformFlags&128))return Bt;switch(Bt.kind){case 223:return at(Bt);case 229:return Qt(Bt);case 253:return nn(Bt);case 256:return Rn(Bt);case 210:return qt(Bt);case 226:return En(Bt,ln);case 361:return fr(Bt,ln);case 299:return Tr(Bt);case 243:return Vr(Bt);case 260:return Pn(Bt);case 246:case 247:case 249:return It(Yt,Bt,0,2);case 250:return no(Bt,void 0);case 248:return It(Ki,Bt,0,2);case 222:return io(Bt);case 176:return It(au,Bt,2,1);case 174:return It(Ia,Bt,2,1);case 177:return It(qn,Bt,2,1);case 178:return It(za,Bt,2,1);case 262:return It(zi,Bt,2,1);case 218:return It(_a,Bt,2,1);case 219:return It(na,Bt,2,0);case 169:return Wl(Bt);case 244:return Kt(Bt);case 217:return wr(Bt,ln);case 215:return jt(Bt);case 211:return Fe&&Ac(Bt)&&Bt.expression.kind===108&&Fe.add(Bt.name.escapedText),Xo(Bt,Ze,e);case 212:return Fe&&Bt.expression.kind===108&&(et=!0),Xo(Bt,Ze,e);case 263:case 231:return It(Yt,Bt,2,1);default:return Xo(Bt,Ze,e)}}function at(Bt){return J&2&&J&1?Ls(Tn(n.createYieldExpression(void 0,i().createAwaitHelper(Bn(Bt.expression,Ze,kr))),Bt),Bt):Xo(Bt,Ze,e)}function Qt(Bt){if(J&2&&J&1){if(Bt.asteriskToken){const ln=Bn(re.checkDefined(Bt.expression),Ze,kr);return Ls(Tn(n.createYieldExpression(void 0,i().createAwaitHelper(n.updateYieldExpression(Bt,Bt.asteriskToken,Tn(i().createAsyncDelegatorHelper(Tn(i().createAsyncValuesHelper(ln),ln)),ln)))),Bt),Bt)}return Ls(Tn(n.createYieldExpression(void 0,$i(Bt.expression?Bn(Bt.expression,Ze,kr):n.createVoidZero())),Bt),Bt)}return Xo(Bt,Ze,e)}function nn(Bt){return J&2&&J&1?n.updateReturnStatement(Bt,$i(Bt.expression?Bn(Bt.expression,Ze,kr):n.createVoidZero())):Xo(Bt,Ze,e)}function Rn(Bt){if(J&2){const ln=Tde(Bt);return ln.kind===250&&ln.awaitModifier?no(ln,Bt):n.restoreEnclosingLabel(Bn(ln,Ze,dl,n.liftToBlock),Bt)}return Xo(Bt,Ze,e)}function cn(Bt){let ln;const Wn=[];for(const $r of Bt)if($r.kind===305){ln&&(Wn.push(n.createObjectLiteralExpression(ln)),ln=void 0);const Ge=$r.expression;Wn.push(Bn(Ge,Ze,kr))}else ln=ur(ln,$r.kind===303?n.createPropertyAssignment($r.name,Bn($r.initializer,Ze,kr)):Bn($r,Ze,DN));return ln&&Wn.push(n.createObjectLiteralExpression(ln)),Wn}function qt(Bt){if(Bt.transformFlags&65536){const ln=cn(Bt.properties);ln.length&&ln[0].kind!==210&&ln.unshift(n.createObjectLiteralExpression());let Wn=ln[0];if(ln.length>1){for(let $r=1;$r=2&&h.getNodeCheckFlags(Bt)&384;if(Ei){Cu();const Sr=Cme(n,h,Bt,Fe);Pe[vm(Sr)]=!0,Um(ln,[Sr])}ln.push(Br),Um(ln,u());const Ln=n.updateBlock(Bt.body,ln);return Ei&&et&&(h.getNodeCheckFlags(Bt)&256?v3(Ln,wG):h.getNodeCheckFlags(Bt)&128&&v3(Ln,nS)),Fe=$r,et=Ge,Ln}function Au(Bt){c();let ln=0;const Wn=[],$r=Bn(Bt.body,Ze,VU)??n.createBlock([]);Ou($r)&&(ln=n.copyPrologue($r.statements,Wn,!1,Ze)),Oi(Wn,Qu(void 0,Bt));const Ge=u();if(ln>0||gt(Wn)||gt(Ge)){const Br=n.converters.convertToFunctionBlock($r,!0);return Um(Wn,Ge),Oi(Wn,Br.statements.slice(ln)),n.updateBlock(Br,Tn(n.createNodeArray(Wn),Br.statements))}return $r}function Qu(Bt,ln){let Wn=!1;for(const $r of ln.parameters)if(Wn){if($_($r.name)){if($r.name.elements.length>0){const Ge=pF($r,Ze,e,0,n.getGeneratedNameForNode($r));if(gt(Ge)){const Br=n.createVariableDeclarationList(Ge),Ei=n.createVariableStatement(void 0,Br);_s(Ei,2097152),Bt=ur(Bt,Ei)}}else if($r.initializer){const Ge=n.getGeneratedNameForNode($r),Br=Bn($r.initializer,Ze,kr),Ei=n.createAssignment(Ge,Br),Ln=n.createExpressionStatement(Ei);_s(Ln,2097152),Bt=ur(Bt,Ln)}}else if($r.initializer){const Ge=n.cloneNode($r.name);Tn(Ge,$r.name),_s(Ge,96);const Br=Bn($r.initializer,Ze,kr);cE(Br,3168);const Ei=n.createAssignment(Ge,Br);Tn(Ei,$r),_s(Ei,3072);const Ln=n.createBlock([n.createExpressionStatement(Ei)]);Tn(Ln,$r),_s(Ln,3905);const Sr=n.createTypeCheck(n.cloneNode($r.name),"undefined"),yi=n.createIfStatement(Sr,Ln);lb(yi),Tn(yi,$r),_s(yi,2101056),Bt=ur(Bt,yi)}}else if($r.transformFlags&65536){Wn=!0;const Ge=pF($r,Ze,e,1,n.getGeneratedNameForNode($r),!1,!0);if(gt(Ge)){const Br=n.createVariableDeclarationList(Ge),Ei=n.createVariableStatement(void 0,Br);_s(Ei,2097152),Bt=ur(Bt,Ei)}}return Bt}function Cu(){$&1||($|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function yf(Bt,ln,Wn){if($&1&&Mr(ln)){const $r=h.getNodeCheckFlags(ln)&384;if($r!==ie){const Ge=ie;ie=$r,P(Bt,ln,Wn),ie=Ge;return}}else if($&&Pe[vm(ln)]){const $r=ie;ie=0,P(Bt,ln,Wn),ie=$r;return}P(Bt,ln,Wn)}function w_(Bt,ln){return ln=k(Bt,ln),Bt===1&&ie?Eu(ln):ln}function Eu(Bt){switch(Bt.kind){case 211:return He(Bt);case 212:return Hn(Bt);case 213:return dr(Bt)}return Bt}function He(Bt){return Bt.expression.kind===108?Tn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),Bt.name),Bt):Bt}function Hn(Bt){return Bt.expression.kind===108?Pr(Bt.argumentExpression,Bt):Bt}function dr(Bt){const ln=Bt.expression;if(MT(ln)){const Wn=Ac(ln)?He(ln):Hn(ln);return n.createCallExpression(n.createPropertyAccessExpression(Wn,"call"),void 0,[n.createThis(),...Bt.arguments])}return Bt}function Mr(Bt){const ln=Bt.kind;return ln===263||ln===176||ln===174||ln===177||ln===178}function Pr(Bt,ln){return ie&256?Tn(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Bt]),"value"),ln):Tn(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Bt]),ln)}}var JHe=G({"src/compiler/transformers/es2018.ts"(){md()}});function p4e(e){const n=e.factory;return _C(e,i);function i(d){return d.isDeclarationFile?d:Xo(d,c,e)}function c(d){if(!(d.transformFlags&64))return d;switch(d.kind){case 299:return u(d);default:return Xo(d,c,e)}}function u(d){return d.variableDeclaration?Xo(d,c,e):n.updateCatchClause(d,n.createVariableDeclaration(n.createTempVariable(void 0)),Bn(d.block,c,Ou))}}var $He=G({"src/compiler/transformers/es2019.ts"(){md()}});function txe(e){const{factory:n,hoistVariableDeclaration:i}=e;return _C(e,c);function c(X){return X.isDeclarationFile?X:Xo(X,u,e)}function u(X){if(!(X.transformFlags&32))return X;switch(X.kind){case 213:{const ie=E(X,!1);return re.assertNotNode(ie,Sk),ie}case 211:case 212:if(fy(X)){const ie=k(X,!1,!1);return re.assertNotNode(ie,Sk),ie}return Xo(X,u,e);case 226:return X.operatorToken.kind===61?$(X):Xo(X,u,e);case 220:return J(X);default:return Xo(X,u,e)}}function d(X){re.assertNotNode(X,zU);const ie=[X];for(;!X.questionDotToken&&!Dm(X);)X=uc(h2(X.expression),fy),re.assertNotNode(X,zU),ie.unshift(X);return{expression:X.expression,chain:ie}}function h(X,ie,ae){const ve=P(X.expression,ie,ae);return Sk(ve)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(X,ve.expression),ve.thisArg):n.updateParenthesizedExpression(X,ve)}function S(X,ie,ae){if(fy(X))return k(X,ie,ae);let ve=Bn(X.expression,u,kr);re.assertNotNode(ve,Sk);let we;return ie&&(L3(ve)?we=ve:(we=n.createTempVariable(i),ve=n.createAssignment(we,ve))),ve=X.kind===211?n.updatePropertyAccessExpression(X,ve,Bn(X.name,u,xn)):n.updateElementAccessExpression(X,ve,Bn(X.argumentExpression,u,kr)),we?n.createSyntheticReferenceExpression(ve,we):ve}function E(X,ie){if(fy(X))return k(X,ie,!1);if(fE(X.expression)&&fy(rg(X.expression))){const ae=h(X.expression,!0,!1),ve=Wa(X.arguments,u,kr);return Sk(ae)?Tn(n.createFunctionCallCall(ae.expression,ae.thisArg,ve),X):n.updateCallExpression(X,ae,void 0,ve)}return Xo(X,u,e)}function P(X,ie,ae){switch(X.kind){case 217:return h(X,ie,ae);case 211:case 212:return S(X,ie,ae);case 213:return E(X,ie);default:return Bn(X,u,kr)}}function k(X,ie,ae){const{expression:ve,chain:we}=d(X),Fe=P(h2(ve),AN(we[0]),!1);let et=Sk(Fe)?Fe.thisArg:void 0,Pe=Sk(Fe)?Fe.expression:Fe,dt=n.restoreOuterExpressions(ve,Pe,8);L3(Pe)||(Pe=n.createTempVariable(i),dt=n.createAssignment(Pe,dt));let Ie=Pe,ct;for(let Lt=0;LtEt&&Oi(at,Wa(It.statements,F,dl,Et,Qt-Et));break}Qt++}re.assert(Qtae(at,Et))))],Et,Yt===2)}return Xo(It,F,e)}function we(It,Yt,Et,at,Qt){const nn=[];for(let qt=Yt;qtn&&(n=c)}return n}function KHe(e){let n=0;for(const i of e){const c=rxe(i.statements);if(c===2)return 2;c>n&&(n=c)}return n}var _ct=G({"src/compiler/transformers/esnext.ts"(){md()}});function ixe(e){const{factory:n,getEmitHelperFactory:i}=e,c=e.getCompilerOptions();let u,d;return _C(e,F);function h(){if(d.filenameDeclaration)return d.filenameDeclaration.name;const jt=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(u.fileName));return d.filenameDeclaration=jt,d.filenameDeclaration.name}function S(jt){return c.jsx===5?"jsxDEV":jt?"jsxs":"jsx"}function E(jt){const En=S(jt);return k(En)}function P(){return k("Fragment")}function k(jt){var En,fr;const Tr=jt==="createElement"?d.importSpecifier:HH(d.importSpecifier,c),Vr=(fr=(En=d.utilizedImplicitRuntimeImports)==null?void 0:En.get(Tr))==null?void 0:fr.get(jt);if(Vr)return Vr.name;d.utilizedImplicitRuntimeImports||(d.utilizedImplicitRuntimeImports=new Map);let Pn=d.utilizedImplicitRuntimeImports.get(Tr);Pn||(Pn=new Map,d.utilizedImplicitRuntimeImports.set(Tr,Pn));const Fr=n.createUniqueName(`_${jt}`,112),Ki=n.createImportSpecifier(!1,n.createIdentifier(jt),Fr);return vEe(Fr,Ki),Pn.set(jt,Ki),Fr}function F(jt){if(jt.isDeclarationFile)return jt;u=jt,d={},d.importSpecifier=UH(c,jt);let En=Xo(jt,$,e);$N(En,e.readEmitHelpers());let fr=En.statements;if(d.filenameDeclaration&&(fr=_R(fr.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([d.filenameDeclaration],2)))),d.utilizedImplicitRuntimeImports){for(const[Tr,Vr]of oc(d.utilizedImplicitRuntimeImports.entries()))if(Bv(jt)){const Pn=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports(oc(Vr.values()))),n.createStringLiteral(Tr),void 0);Q2(Pn,!1),fr=_R(fr.slice(),Pn)}else if(aE(jt)){const Pn=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(oc(Vr.values(),Fr=>n.createBindingElement(void 0,Fr.propertyName,Fr.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(Tr)]))],2));Q2(Pn,!1),fr=_R(fr.slice(),Pn)}}return fr!==En.statements&&(En=n.updateSourceFile(En,fr)),d=void 0,En}function $(jt){return jt.transformFlags&2?J(jt):jt}function J(jt){switch(jt.kind){case 284:return we(jt,!1);case 285:return Fe(jt,!1);case 288:return et(jt,!1);case 294:return Wr(jt);default:return Xo(jt,$,e)}}function X(jt){switch(jt.kind){case 12:return Qt(jt);case 294:return Wr(jt);case 284:return we(jt,!0);case 285:return Fe(jt,!0);case 288:return et(jt,!0);default:return re.failBadSyntaxKind(jt)}}function ie(jt){return jt.properties.some(En=>tl(En)&&(xn(En.name)&&Kr(En.name)==="__proto__"||Sd(En.name)&&En.name.text==="__proto__"))}function ae(jt){let En=!1;for(const fr of jt.attributes.properties)if(rT(fr)&&(!el(fr.expression)||fr.expression.properties.some(xA)))En=!0;else if(En&&tx(fr)&&xn(fr.name)&&fr.name.escapedText==="key")return!0;return!1}function ve(jt){return d.importSpecifier===void 0||ae(jt)}function we(jt,En){return(ve(jt.openingElement)?Ct:Ie)(jt.openingElement,jt.children,En,jt)}function Fe(jt,En){return(ve(jt)?Ct:Ie)(jt,void 0,En,jt)}function et(jt,En){return(d.importSpecifier===void 0?Ze:Lt)(jt.openingFragment,jt.children,En,jt)}function Pe(jt){const En=dt(jt);return En&&n.createObjectLiteralExpression([En])}function dt(jt){const En=B9(jt);if(Nt(En)===1&&!En[0].dotDotDotToken){const Tr=X(En[0]);return Tr&&n.createPropertyAssignment("children",Tr)}const fr=Qo(jt,X);return Nt(fr)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(fr)):void 0}function Ie(jt,En,fr,Tr){const Vr=Kt(jt),Pn=En&&En.length?dt(En):void 0,Fr=lr(jt.attributes.properties,no=>!!no.name&&xn(no.name)&&no.name.escapedText==="key"),Ki=Fr?gi(jt.attributes.properties,no=>no!==Fr):jt.attributes.properties,io=Nt(Ki)?st(Ki,Pn):n.createObjectLiteralExpression(Pn?[Pn]:Yn);return ct(Vr,io,Fr,En||Yn,fr,Tr)}function ct(jt,En,fr,Tr,Vr,Pn){var Fr;const Ki=B9(Tr),io=Nt(Ki)>1||!!((Fr=Ki[0])!=null&&Fr.dotDotDotToken),no=[jt,En];if(fr&&no.push(at(fr.initializer)),c.jsx===5){const Mo=Gg(u);if(Mo&&Nu(Mo)){fr===void 0&&no.push(n.createVoidZero()),no.push(io?n.createTrue():n.createFalse());const $i=xm(Mo,Pn.pos);no.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",h()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral($i.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral($i.character+1))])),no.push(n.createThis())}}const os=Tn(n.createCallExpression(E(io),void 0,no),Pn);return Vr&&lb(os),os}function Ct(jt,En,fr,Tr){const Vr=Kt(jt),Pn=jt.attributes.properties,Fr=Nt(Pn)?st(Pn):n.createNull(),Ki=d.importSpecifier===void 0?NEe(n,e.getEmitResolver().getJsxFactoryEntity(u),c.reactNamespace,jt):k("createElement"),io=hpe(n,Ki,Vr,Fr,Qo(En,X),Tr);return fr&&lb(io),io}function Lt(jt,En,fr,Tr){let Vr;if(En&&En.length){const Pn=Pe(En);Pn&&(Vr=Pn)}return ct(P(),Vr||n.createObjectLiteralExpression([]),void 0,En,fr,Tr)}function Ze(jt,En,fr,Tr){const Vr=P6e(n,e.getEmitResolver().getJsxFactoryEntity(u),e.getEmitResolver().getJsxFragmentFactoryEntity(u),c.reactNamespace,Qo(En,X),jt,Tr);return fr&&lb(Vr),Vr}function Ke(jt){return el(jt.expression)&&!ie(jt.expression)?Ol(jt.expression.properties,En=>re.checkDefined(Bn(En,$,DN))):n.createSpreadAssignment(re.checkDefined(Bn(jt.expression,$,kr)))}function st(jt,En){const fr=iu(c);return fr&&fr>=5?n.createObjectLiteralExpression(It(jt,En)):Yt(jt,En)}function It(jt,En){const fr=Gf(fa(jt,rT,(Tr,Vr)=>Gf(Vn(Tr,Pn=>Vr?Ke(Pn):Et(Pn)))));return En&&fr.push(En),fr}function Yt(jt,En){const fr=[];let Tr=[];for(const Pn of jt){if(rT(Pn)){if(el(Pn.expression)&&!ie(Pn.expression)){for(const Fr of Pn.expression.properties){if(xA(Fr)){Vr(),fr.push(re.checkDefined(Bn(Fr.expression,$,kr)));continue}Tr.push(re.checkDefined(Bn(Fr,$)))}continue}Vr(),fr.push(re.checkDefined(Bn(Pn.expression,$,kr)));continue}Tr.push(Et(Pn))}return En&&Tr.push(En),Vr(),fr.length&&!el(fr[0])&&fr.unshift(n.createObjectLiteralExpression()),Vb(fr)||i().createAssignHelper(fr);function Vr(){Tr.length&&(fr.push(n.createObjectLiteralExpression(Tr)),Tr=[])}}function Et(jt){const En=wr(jt),fr=at(jt.initializer);return n.createPropertyAssignment(En,fr)}function at(jt){if(jt===void 0)return n.createTrue();if(jt.kind===11){const En=jt.singleQuote!==void 0?jt.singleQuote:!aH(jt,u),fr=n.createStringLiteral(qt(jt.text)||jt.text,En);return Tn(fr,jt)}return jt.kind===294?jt.expression===void 0?n.createTrue():re.checkDefined(Bn(jt.expression,$,kr)):zx(jt)?we(jt,!1):nF(jt)?Fe(jt,!1):Ek(jt)?et(jt,!1):re.failBadSyntaxKind(jt)}function Qt(jt){const En=nn(jt.text);return En===void 0?void 0:n.createStringLiteral(En)}function nn(jt){let En,fr=0,Tr=-1;for(let Vr=0;Vr{if(Pn)return ak(parseInt(Pn,10));if(Fr)return ak(parseInt(Fr,16));{const io=y4e.get(Ki);return io?ak(io):En}})}function qt(jt){const En=cn(jt);return En===jt?void 0:En}function Kt(jt){if(jt.kind===284)return Kt(jt.openingElement);{const En=jt.tagName;return xn(En)&&EH(En.escapedText)?n.createStringLiteral(Kr(En)):Fm(En)?n.createStringLiteral(Kr(En.namespace)+":"+Kr(En.name)):zoe(n,En)}}function wr(jt){const En=jt.name;if(xn(En)){const fr=Kr(En);return/^[A-Za-z_]\w*$/.test(fr)?En:n.createStringLiteral(fr)}return n.createStringLiteral(Kr(En.namespace)+":"+Kr(En.name))}function Wr(jt){const En=Bn(jt.expression,$,kr);return jt.dotDotDotToken?n.createSpreadElement(En):En}}var y4e,dct=G({"src/compiler/transformers/jsx.ts"(){md(),y4e=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 oxe(e){const{factory:n,hoistVariableDeclaration:i}=e;return _C(e,c);function c(E){return E.isDeclarationFile?E:Xo(E,u,e)}function u(E){if(!(E.transformFlags&512))return E;switch(E.kind){case 226:return d(E);default:return Xo(E,u,e)}}function d(E){switch(E.operatorToken.kind){case 68:return h(E);case 43:return S(E);default:return Xo(E,u,e)}}function h(E){let P,k;const F=Bn(E.left,u,kr),$=Bn(E.right,u,kr);if(Hm(F)){const J=n.createTempVariable(i),X=n.createTempVariable(i);P=Tn(n.createElementAccessExpression(Tn(n.createAssignment(J,F.expression),F.expression),Tn(n.createAssignment(X,F.argumentExpression),F.argumentExpression)),F),k=Tn(n.createElementAccessExpression(J,X),F)}else if(Ac(F)){const J=n.createTempVariable(i);P=Tn(n.createPropertyAccessExpression(Tn(n.createAssignment(J,F.expression),F.expression),F.name),F),k=Tn(n.createPropertyAccessExpression(J,F.name),F)}else P=F,k=F;return Tn(n.createAssignment(P,Tn(n.createGlobalMethodCall("Math","pow",[k,$]),E)),E)}function S(E){const P=Bn(E.left,u,kr),k=Bn(E.right,u,kr);return Tn(n.createGlobalMethodCall("Math","pow",[P,k]),E)}}var pct=G({"src/compiler/transformers/es2016.ts"(){md()}});function XHe(e,n){return{kind:e,expression:n}}function axe(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:d,hoistVariableDeclaration:h}=e,S=e.getCompilerOptions(),E=e.getEmitResolver(),P=e.onSubstituteNode,k=e.onEmitNode;e.onEmitNode=P1,e.onSubstituteNode=fb;let F,$,J,X;function ie(nt){X=ur(X,n.createVariableDeclaration(nt))}let ae,ve;return _C(e,we);function we(nt){if(nt.isDeclarationFile)return nt;F=nt,$=nt.text;const pr=st(nt);return $N(pr,e.readEmitHelpers()),F=void 0,$=void 0,X=void 0,J=0,pr}function Fe(nt,pr){const vi=J;return J=(J&~nt|pr)&32767,vi}function et(nt,pr,vi){J=(J&~pr|vi)&-32768|nt}function Pe(nt){return(J&8192)!==0&&nt.kind===253&&!nt.expression}function dt(nt){return nt.transformFlags&4194304&&(iS(nt)||bk(nt)||upe(nt)||AR(nt)||Fv(nt)||BT(nt)||xk(nt)||My(nt)||A3(nt)||tF(nt)||OL(nt,!1)||Ou(nt))}function Ie(nt){return(nt.transformFlags&1024)!==0||ae!==void 0||J&8192&&dt(nt)||OL(nt,!1)&&pl(nt)||(HC(nt)&1)!==0}function ct(nt){return Ie(nt)?Ke(nt,!1):nt}function Ct(nt){return Ie(nt)?Ke(nt,!0):nt}function Lt(nt){if(Ie(nt)){const pr=Gg(nt);if(nu(pr)&&ev(pr)){const vi=Fe(32670,16449),Di=Ke(nt,!1);return et(vi,229376,0),Di}return Ke(nt,!1)}return nt}function Ze(nt){return nt.kind===108?Qm(nt,!0):ct(nt)}function Ke(nt,pr){switch(nt.kind){case 126:return;case 263:return Kt(nt);case 231:return wr(nt);case 169:return Eu(nt);case 262:return Ao(nt);case 219:return yi(nt);case 218:return go(nt);case 260:return Ro(nt);case 80:return cn(nt);case 261:return Nn(nt);case 255:return It(nt);case 269:return Yt(nt);case 241:return Ce(nt,!1);case 252:case 251:return qt(nt);case 256:return Pc(nt);case 246:case 247:return Tc(nt,void 0);case 248:return Tf(nt,void 0);case 249:return Bl(nt,void 0);case 250:return G_(nt,void 0);case 244:return kt(nt);case 210:return Cp(nt);case 299:return Tl(nt);case 304:return ah(nt);case 167:return bm(nt);case 209:return yp(nt);case 213:return Cg(nt);case 214:return r1(nt);case 217:return qe(nt,pr);case 226:return Mt(nt,pr);case 361:return ge(nt,pr);case 15:case 16:case 17:case 18:return A_(nt);case 11:return gd(nt);case 9:return Dg(nt);case 215:return um(nt);case 228:return Ig(nt);case 229:return ay(nt);case 230:return t_(nt);case 108:return Qm(nt,!1);case 110:return nn(nt);case 236:return Bh(nt);case 174:return Gd(nt);case 177:case 178:return ag(nt);case 243:return Jn(nt);case 253:return Qt(nt);case 222:return Rn(nt);default:return Xo(nt,ct,e)}}function st(nt){const pr=Fe(8064,64),vi=[],Di=[];c();const Ee=n.copyPrologue(nt.statements,vi,!1,ct);return Oi(Di,Wa(nt.statements,ct,dl,Ee)),X&&Di.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(X))),n.mergeLexicalEnvironment(vi,d()),ln(vi,nt),et(pr,0,0),n.updateSourceFile(nt,Tn(n.createNodeArray(Hi(vi,Di)),nt.statements))}function It(nt){if(ae!==void 0){const pr=ae.allowedNonLabeledJumps;ae.allowedNonLabeledJumps|=2;const vi=Xo(nt,ct,e);return ae.allowedNonLabeledJumps=pr,vi}return Xo(nt,ct,e)}function Yt(nt){const pr=Fe(7104,0),vi=Xo(nt,ct,e);return et(pr,0,0),vi}function Et(nt){return Ls(n.createReturnStatement(at()),nt)}function at(){return n.createUniqueName("_this",48)}function Qt(nt){return ae?(ae.nonLocalJumps|=8,Pe(nt)&&(nt=Et(nt)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),nt.expression?re.checkDefined(Bn(nt.expression,ct,kr)):n.createVoidZero())]))):Pe(nt)?Et(nt):Xo(nt,ct,e)}function nn(nt){return J|=65536,J&2&&!(J&16384)&&(J|=131072),ae?J&2?(ae.containsLexicalThis=!0,nt):ae.thisName||(ae.thisName=n.createUniqueName("this")):nt}function Rn(nt){return Xo(nt,Ct,e)}function cn(nt){return ae&&E.isArgumentsLocalBinding(nt)?ae.argumentsName||(ae.argumentsName=n.createUniqueName("arguments")):nt.flags&256?Ls(Tn(n.createIdentifier(Ic(nt.escapedText)),nt),nt):nt}function qt(nt){if(ae){const pr=nt.kind===252?2:4;if(!(nt.label&&ae.labels&&ae.labels.get(Kr(nt.label))||!nt.label&&ae.allowedNonLabeledJumps&pr)){let Di;const Ee=nt.label;Ee?nt.kind===252?(Di=`break-${Ee.escapedText}`,_n(ae,!0,Kr(Ee),Di)):(Di=`continue-${Ee.escapedText}`,_n(ae,!1,Kr(Ee),Di)):nt.kind===252?(ae.nonLocalJumps|=2,Di="break"):(ae.nonLocalJumps|=4,Di="continue");let Gt=n.createStringLiteral(Di);if(ae.loopOutParameters.length){const sr=ae.loopOutParameters;let Ii;for(let Ja=0;Jaxn(pr.name)&&!pr.initializer)}function Fr(nt){if(h1(nt))return!0;if(!(nt.transformFlags&134217728))return!1;switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?!!s_(pr.name,Fr):!1}}return!!s_(nt,Fr)}function Ki(nt,pr,vi,Di){const Ee=!!vi&&iv(vi.expression).kind!==106;if(!nt)return Vr(pr,Ee);const Gt=[],sr=[];u();const Ii=n.copyStandardPrologue(nt.body.statements,Gt,0);(Di||Fr(nt.body))&&(J|=8192),Oi(sr,Wa(nt.body.statements,ct,dl,Ii));const Ja=Ee||J&8192;Hn(Gt,nt),Bt(Gt,nt,Di),$r(Gt,nt),Ja?Wn(Gt,nt,yf()):ln(Gt,nt),n.mergeLexicalEnvironment(Gt,d()),Ja&&!Cu(nt.body)&&sr.push(n.createReturnStatement(at()));const wa=n.createBlock(Tn(n.createNodeArray([...Gt,...sr]),nt.body.statements),!0);return Tn(wa,nt.body),Qu(wa,nt.body,Di)}function io(nt){return $g(nt)&&Kr(nt)==="_this"}function no(nt){return $g(nt)&&Kr(nt)==="_super"}function os(nt){return Xg(nt)&&nt.declarationList.declarations.length===1&&Mo(nt.declarationList.declarations[0])}function Mo(nt){return Kc(nt)&&io(nt.name)&&!!nt.initializer}function $i(nt){return Zv(nt,!0)&&io(nt.left)}function ki(nt){return xd(nt)&&Ac(nt.expression)&&no(nt.expression.expression)&&xn(nt.expression.name)&&(Kr(nt.expression.name)==="call"||Kr(nt.expression.name)==="apply")&&nt.arguments.length>=1&&nt.arguments[0].kind===110}function gc(nt){return Ds(nt)&&nt.operatorToken.kind===57&&nt.right.kind===110&&ki(nt.left)}function Wl(nt){return Ds(nt)&&nt.operatorToken.kind===56&&Ds(nt.left)&&nt.left.operatorToken.kind===38&&no(nt.left.left)&&nt.left.right.kind===106&&ki(nt.right)&&Kr(nt.right.expression.name)==="apply"}function Jc(nt){return Ds(nt)&&nt.operatorToken.kind===57&&nt.right.kind===110&&Wl(nt.left)}function au(nt){return $i(nt)&&gc(nt.right)}function qn(nt){return $i(nt)&&Jc(nt.right)}function za(nt){return ki(nt)||gc(nt)||au(nt)||Wl(nt)||Jc(nt)||qn(nt)}function Ia(nt){for(let pr=0;pr0;Di--){const Ee=nt.statements[Di];if(iS(Ee)&&Ee.expression&&io(Ee.expression)){const Gt=nt.statements[Di-1];let sr;if(kb(Gt)&&au(iv(Gt.expression)))sr=Gt.expression;else if(vi&&os(Gt)){const wa=Gt.declarationList.declarations[0];za(iv(wa.initializer))&&(sr=n.createAssignment(at(),wa.initializer))}if(!sr)break;const Ii=n.createReturnStatement(sr);Ls(Ii,Gt),Tn(Ii,Gt);const Ja=n.createNodeArray([...nt.statements.slice(0,Di-1),Ii,...nt.statements.slice(Di+1)]);return Tn(Ja,nt.statements),n.updateBlock(nt,Ja)}}return nt}function na(nt){if(os(nt)){if(nt.declarationList.declarations[0].initializer.kind===110)return}else if($i(nt))return n.createPartiallyEmittedExpression(nt.right,nt);switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return nt;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?n.replacePropertyName(pr,Xo(pr.name,na,sx)):nt}}return Xo(nt,na,sx)}function _a(nt,pr){if(pr.transformFlags&16384||J&65536||J&131072)return nt;for(const vi of pr.statements)if(vi.transformFlags&134217728&&!v$(vi))return nt;return n.updateBlock(nt,Wa(nt.statements,na,dl))}function us(nt){if(ki(nt)&&nt.arguments.length===2&&xn(nt.arguments[1])&&Kr(nt.arguments[1])==="arguments")return n.createLogicalAnd(n.createStrictInequality(P_(),n.createNull()),nt);switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return nt;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?n.replacePropertyName(pr,Xo(pr.name,us,sx)):nt}}return Xo(nt,us,sx)}function Au(nt){return n.updateBlock(nt,Wa(nt.statements,us,dl))}function Qu(nt,pr,vi){const Di=nt;return nt=Ia(nt),nt=zi(nt,pr),nt!==Di&&(nt=_a(nt,pr)),vi&&(nt=Au(nt)),nt}function Cu(nt){if(nt.kind===253)return!0;if(nt.kind===245){const pr=nt;if(pr.elseStatement)return Cu(pr.thenStatement)&&Cu(pr.elseStatement)}else if(nt.kind===241){const pr=Yf(nt.statements);if(pr&&Cu(pr))return!0}return!1}function yf(){return _s(n.createThis(),8)}function w_(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(P_(),n.createNull()),n.createFunctionApplyCall(P_(),yf(),n.createIdentifier("arguments"))),yf())}function Eu(nt){if(!nt.dotDotDotToken)return $_(nt.name)?Ls(Tn(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(nt),void 0,void 0,void 0),nt),nt):nt.initializer?Ls(Tn(n.createParameterDeclaration(void 0,void 0,nt.name,void 0,void 0,void 0),nt),nt):nt}function He(nt){return nt.initializer!==void 0||$_(nt.name)}function Hn(nt,pr){if(!gt(pr.parameters,He))return!1;let vi=!1;for(const Di of pr.parameters){const{name:Ee,initializer:Gt,dotDotDotToken:sr}=Di;sr||($_(Ee)?vi=dr(nt,Di,Ee,Gt)||vi:Gt&&(Mr(nt,Di,Ee,Gt),vi=!0))}return vi}function dr(nt,pr,vi,Di){return vi.elements.length>0?(_R(nt,_s(n.createVariableStatement(void 0,n.createVariableDeclarationList(pF(pr,ct,e,0,n.getGeneratedNameForNode(pr)))),2097152)),!0):Di?(_R(nt,_s(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(pr),re.checkDefined(Bn(Di,ct,kr)))),2097152)),!0):!1}function Mr(nt,pr,vi,Di){Di=re.checkDefined(Bn(Di,ct,kr));const Ee=n.createIfStatement(n.createTypeCheck(n.cloneNode(vi),"undefined"),_s(Tn(n.createBlock([n.createExpressionStatement(_s(Tn(n.createAssignment(_s(kl(Tn(n.cloneNode(vi),vi),vi.parent),96),_s(Di,96|wd(Di)|3072)),pr),3072))]),pr),3905));lb(Ee),Tn(Ee,pr),_s(Ee,2101056),_R(nt,Ee)}function Pr(nt,pr){return!!(nt&&nt.dotDotDotToken&&!pr)}function Bt(nt,pr,vi){const Di=[],Ee=Yf(pr.parameters);if(!Pr(Ee,vi))return!1;const Gt=Ee.name.kind===80?kl(Tn(n.cloneNode(Ee.name),Ee.name),Ee.name.parent):n.createTempVariable(void 0);_s(Gt,96);const sr=Ee.name.kind===80?n.cloneNode(Ee.name):Gt,Ii=pr.parameters.length-1,Ja=n.createLoopVariable();Di.push(_s(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Gt,void 0,void 0,n.createArrayLiteralExpression([]))])),Ee),2097152));const wa=n.createForStatement(Tn(n.createVariableDeclarationList([n.createVariableDeclaration(Ja,void 0,void 0,n.createNumericLiteral(Ii))]),Ee),Tn(n.createLessThan(Ja,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),Ee),Tn(n.createPostfixIncrement(Ja),Ee),n.createBlock([lb(Tn(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(sr,Ii===0?Ja:n.createSubtract(Ja,n.createNumericLiteral(Ii))),n.createElementAccessExpression(n.createIdentifier("arguments"),Ja))),Ee))]));return _s(wa,2097152),lb(wa),Di.push(wa),Ee.name.kind!==80&&Di.push(_s(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList(pF(Ee,ct,e,0,sr))),Ee),2097152)),wx(nt,Di),!0}function ln(nt,pr){return J&131072&&pr.kind!==219?(Wn(nt,pr,n.createThis()),!0):!1}function Wn(nt,pr,vi){Zm();const Di=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(at(),void 0,void 0,vi)]));_s(Di,2100224),lp(Di,pr),_R(nt,Di)}function $r(nt,pr){if(J&32768){let vi;switch(pr.kind){case 219:return nt;case 174:case 177:case 178:vi=n.createVoidZero();break;case 176:vi=n.createPropertyAccessExpression(_s(n.createThis(),8),"constructor");break;case 262:case 218:vi=n.createConditionalExpression(n.createLogicalAnd(_s(n.createThis(),8),n.createBinaryExpression(_s(n.createThis(),8),104,n.getLocalName(pr))),void 0,n.createPropertyAccessExpression(_s(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return re.failBadSyntaxKind(pr)}const Di=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,vi)]));_s(Di,2100224),_R(nt,Di)}return nt}function Ge(nt,pr){for(const vi of pr.members)switch(vi.kind){case 240:nt.push(Br(vi));break;case 174:nt.push(Ei(N1(pr,vi),vi,pr));break;case 177:case 178:const Di=oI(pr.members,vi);vi===Di.firstAccessor&&nt.push(Ln(N1(pr,vi),Di,pr));break;case 176:case 175:break;default:re.failBadSyntaxKind(vi,F&&F.fileName);break}}function Br(nt){return Tn(n.createEmptyStatement(),nt)}function Ei(nt,pr,vi){const Di=MS(pr),Ee=YL(pr),Gt=Io(pr,pr,void 0,vi),sr=Bn(pr.name,ct,qg);re.assert(sr);let Ii;if(!Lu(sr)&&X9(e.getCompilerOptions())){const wa=Qf(sr)?sr.expression:xn(sr)?n.createStringLiteral(Ic(sr.escapedText)):sr;Ii=n.createObjectDefinePropertyCall(nt,wa,n.createPropertyDescriptor({value:Gt,enumerable:!1,writable:!0,configurable:!0}))}else{const wa=sF(n,nt,sr,pr.name);Ii=n.createAssignment(wa,Gt)}_s(Gt,3072),lp(Gt,Ee);const Ja=Tn(n.createExpressionStatement(Ii),pr);return Ls(Ja,pr),dy(Ja,Di),_s(Ja,96),Ja}function Ln(nt,pr,vi){const Di=n.createExpressionStatement(Sr(nt,pr,vi,!1));return _s(Di,3072),lp(Di,YL(pr.firstAccessor)),Di}function Sr(nt,{firstAccessor:pr,getAccessor:vi,setAccessor:Di},Ee,Gt){const sr=kl(Tn(n.cloneNode(nt),nt),nt.parent);_s(sr,3136),lp(sr,pr.name);const Ii=Bn(pr.name,ct,qg);if(re.assert(Ii),Lu(Ii))return re.failBadSyntaxKind(Ii,"Encountered unhandled private identifier while transforming ES2015.");const Ja=ype(n,Ii);_s(Ja,3104),lp(Ja,pr.name);const wa=[];if(vi){const Vl=Io(vi,void 0,void 0,Ee);lp(Vl,YL(vi)),_s(Vl,1024);const Uf=n.createPropertyAssignment("get",Vl);dy(Uf,MS(vi)),wa.push(Uf)}if(Di){const Vl=Io(Di,void 0,void 0,Ee);lp(Vl,YL(Di)),_s(Vl,1024);const Uf=n.createPropertyAssignment("set",Vl);dy(Uf,MS(Di)),wa.push(Uf)}wa.push(n.createPropertyAssignment("enumerable",vi||Di?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));const wi=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[sr,Ja,n.createObjectLiteralExpression(wa,!0)]);return Gt&&lb(wi),wi}function yi(nt){nt.transformFlags&16384&&!(J&16384)&&(J|=131072);const pr=ae;ae=void 0;const vi=Fe(15232,66),Di=n.createFunctionExpression(void 0,void 0,void 0,void 0,sm(nt.parameters,ct,e),void 0,ze(nt));return Tn(Di,nt),Ls(Di,nt),_s(Di,16),et(vi,0,0),ae=pr,Di}function go(nt){const pr=wd(nt)&524288?Fe(32662,69):Fe(32670,65),vi=ae;ae=void 0;const Di=sm(nt.parameters,ct,e),Ee=ze(nt),Gt=J&32768?n.getLocalName(nt):nt.name;return et(pr,229376,0),ae=vi,n.updateFunctionExpression(nt,void 0,nt.asteriskToken,Gt,void 0,Di,void 0,Ee)}function Ao(nt){const pr=ae;ae=void 0;const vi=Fe(32670,65),Di=sm(nt.parameters,ct,e),Ee=ze(nt),Gt=J&32768?n.getLocalName(nt):nt.name;return et(vi,229376,0),ae=pr,n.updateFunctionDeclaration(nt,Wa(nt.modifiers,ct,Mf),nt.asteriskToken,Gt,void 0,Di,void 0,Ee)}function Io(nt,pr,vi,Di){const Ee=ae;ae=void 0;const Gt=Di&&Fl(Di)&&!pd(nt)?Fe(32670,73):Fe(32670,65),sr=sm(nt.parameters,ct,e),Ii=ze(nt);return J&32768&&!vi&&(nt.kind===262||nt.kind===218)&&(vi=n.getGeneratedNameForNode(nt)),et(Gt,229376,0),ae=Ee,Ls(Tn(n.createFunctionExpression(void 0,nt.asteriskToken,vi,void 0,sr,void 0,Ii),pr),nt)}function ze(nt){let pr=!1,vi=!1,Di,Ee;const Gt=[],sr=[],Ii=nt.body;let Ja;if(u(),Ou(Ii)&&(Ja=n.copyStandardPrologue(Ii.statements,Gt,0,!1),Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct,h7),Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct,y7)),pr=Hn(sr,nt)||pr,pr=Bt(sr,nt,!1)||pr,Ou(Ii))Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct),Di=Ii.statements,Oi(sr,Wa(Ii.statements,ct,dl,Ja)),!pr&&Ii.multiLine&&(pr=!0);else{re.assert(nt.kind===219),Di=NH(Ii,-1);const wi=nt.equalsGreaterThanToken;!Hd(wi)&&!Hd(Ii)&&(H9(wi,Ii,F)?vi=!0:pr=!0);const Vl=Bn(Ii,ct,kr),Uf=n.createReturnStatement(Vl);Tn(Uf,Ii),lW(Uf,Ii),_s(Uf,2880),sr.push(Uf),Ee=Ii}if(n.mergeLexicalEnvironment(Gt,d()),$r(Gt,nt),ln(Gt,nt),gt(Gt)&&(pr=!0),sr.unshift(...Gt),Ou(Ii)&&fv(sr,Ii.statements))return Ii;const wa=n.createBlock(Tn(n.createNodeArray(sr),Di),pr);return Tn(wa,nt.body),!pr&&vi&&_s(wa,1),Ee&&lI(wa,20,Ee),Ls(wa,nt.body),wa}function Ce(nt,pr){if(pr)return Xo(nt,ct,e);const vi=J&256?Fe(7104,512):Fe(6976,128),Di=Xo(nt,ct,e);return et(vi,0,0),Di}function kt(nt){return Xo(nt,Ct,e)}function qe(nt,pr){return Xo(nt,pr?Ct:ct,e)}function Mt(nt,pr){return wy(nt)?yI(nt,ct,e,0,!pr):nt.operatorToken.kind===28?n.updateBinaryExpression(nt,re.checkDefined(Bn(nt.left,Ct,kr)),nt.operatorToken,re.checkDefined(Bn(nt.right,pr?Ct:ct,kr))):Xo(nt,ct,e)}function ge(nt,pr){if(pr)return Xo(nt,Ct,e);let vi;for(let Ee=0;EeJa.name)),Ii=Di?n.createYieldExpression(n.createToken(42),_s(sr,8388608)):sr;if(Gt)Ee.push(n.createExpressionStatement(Ii)),Nm(pr.loopOutParameters,1,0,Ee);else{const Ja=n.createUniqueName("state"),wa=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ja,void 0,void 0,Ii)]));if(Ee.push(wa),Nm(pr.loopOutParameters,1,0,Ee),pr.nonLocalJumps&8){let wi;vi?(vi.nonLocalJumps|=8,wi=n.createReturnStatement(Ja)):wi=n.createReturnStatement(n.createPropertyAccessExpression(Ja,"value")),Ee.push(n.createIfStatement(n.createTypeCheck(Ja,"object"),wi))}if(pr.nonLocalJumps&2&&Ee.push(n.createIfStatement(n.createStrictEquality(Ja,n.createStringLiteral("break")),n.createBreakStatement())),pr.labeledNonLocalBreaks||pr.labeledNonLocalContinues){const wi=[];Xn(pr.labeledNonLocalBreaks,!0,Ja,vi,wi),Xn(pr.labeledNonLocalContinues,!1,Ja,vi,wi),Ee.push(n.createSwitchStatement(Ja,n.createCaseBlock(wi)))}}return Ee}function _n(nt,pr,vi,Di){pr?(nt.labeledNonLocalBreaks||(nt.labeledNonLocalBreaks=new Map),nt.labeledNonLocalBreaks.set(vi,Di)):(nt.labeledNonLocalContinues||(nt.labeledNonLocalContinues=new Map),nt.labeledNonLocalContinues.set(vi,Di))}function Xn(nt,pr,vi,Di,Ee){nt&&nt.forEach((Gt,sr)=>{const Ii=[];if(!Di||Di.labels&&Di.labels.get(sr)){const Ja=n.createIdentifier(sr);Ii.push(pr?n.createBreakStatement(Ja):n.createContinueStatement(Ja))}else _n(Di,pr,sr,Gt),Ii.push(n.createReturnStatement(vi));Ee.push(n.createCaseClause(n.createStringLiteral(Gt),Ii))})}function _i(nt,pr,vi,Di,Ee){const Gt=pr.name;if($_(Gt))for(const sr of Gt.elements)cb(sr)||_i(nt,sr,vi,Di,Ee);else{vi.push(n.createParameterDeclaration(void 0,void 0,Gt));const sr=E.getNodeCheckFlags(pr);if(sr&65536||Ee){const Ii=n.createUniqueName("out_"+Kr(Gt));let Ja=0;sr&65536&&(Ja|=1),bW(nt)&&(nt.initializer&&E.isBindingCapturedByNode(nt.initializer,pr)&&(Ja|=2),(nt.condition&&E.isBindingCapturedByNode(nt.condition,pr)||nt.incrementor&&E.isBindingCapturedByNode(nt.incrementor,pr))&&(Ja|=1)),Di.push({flags:Ja,originalName:Gt,outParamName:Ii})}}}function $o(nt,pr,vi,Di){const Ee=pr.properties,Gt=Ee.length;for(let sr=Di;srXg(f_)&&!!Dl(f_.declarationList.declarations).initializer,Di=ae;ae=void 0;const Ee=Wa(pr.statements,Lt,dl);ae=Di;const Gt=gi(Ee,vi),sr=gi(Ee,f_=>!vi(f_)),Ja=uc(Dl(Gt),Xg).declarationList.declarations[0],wa=iv(Ja.initializer);let wi=to(wa,Zv);!wi&&Ds(wa)&&wa.operatorToken.kind===28&&(wi=to(wa.left,Zv));const Vl=uc(wi?iv(wi.right):wa,xd),Uf=uc(iv(Vl.expression),Jm),Y_=Uf.body.statements;let Fg=0,sv=-1;const by=[];if(wi){const f_=to(Y_[Fg],kb);f_&&(by.push(f_),Fg++),by.push(Y_[Fg]),Fg++,by.push(n.createExpressionStatement(n.createAssignment(wi.left,uc(Ja.name,xn))))}for(;!iS(Zn(Y_,sv));)sv--;Oi(by,Y_,Fg,sv),sv<-1&&Oi(by,Y_,sv+1);const _b=to(Zn(Y_,sv),iS);for(const f_ of sr)iS(f_)&&(_b!=null&&_b.expression)&&!xn(_b.expression)?by.push(_b):by.push(f_);return Oi(by,Gt,1),n.restoreOuterExpressions(nt.expression,n.restoreOuterExpressions(Ja.initializer,n.restoreOuterExpressions(wi&&wi.right,n.updateCallExpression(Vl,n.restoreOuterExpressions(Vl.expression,n.updateFunctionExpression(Uf,void 0,void 0,void 0,void 0,Uf.parameters,void 0,n.updateBlock(Uf.body,by))),void 0,Vl.arguments))))}function Xp(nt,pr){if(nt.transformFlags&32768||nt.expression.kind===108||MT(iv(nt.expression))){const{target:vi,thisArg:Di}=n.createCallBinding(nt.expression,h);nt.expression.kind===108&&_s(Di,8);let Ee;if(nt.transformFlags&32768?Ee=n.createFunctionApplyCall(re.checkDefined(Bn(vi,Ze,kr)),nt.expression.kind===108?Di:re.checkDefined(Bn(Di,ct,kr)),sg(nt.arguments,!0,!1,!1)):Ee=Tn(n.createFunctionCallCall(re.checkDefined(Bn(vi,Ze,kr)),nt.expression.kind===108?Di:re.checkDefined(Bn(Di,ct,kr)),Wa(nt.arguments,ct,kr)),nt),nt.expression.kind===108){const Gt=n.createLogicalOr(Ee,yf());Ee=pr?n.createAssignment(at(),Gt):Gt}return Ls(Ee,nt)}return h1(nt)&&(J|=131072),Xo(nt,ct,e)}function r1(nt){if(gt(nt.arguments,WT)){const{target:pr,thisArg:vi}=n.createCallBinding(n.createPropertyAccessExpression(nt.expression,"bind"),h);return n.createNewExpression(n.createFunctionApplyCall(re.checkDefined(Bn(pr,ct,kr)),vi,sg(n.createNodeArray([n.createVoidZero(),...nt.arguments]),!0,!1,!1)),void 0,[])}return Xo(nt,ct,e)}function sg(nt,pr,vi,Di){const Ee=nt.length,Gt=Gf(fa(nt,Jt,(wa,wi,Vl,Uf)=>wi(wa,vi,Di&&Uf===Ee)));if(Gt.length===1){const wa=Gt[0];if(pr&&!S.downlevelIteration||foe(wa.expression)||uW(wa.expression,"___spreadArray"))return wa.expression}const sr=i(),Ii=Gt[0].kind!==0;let Ja=Ii?n.createArrayLiteralExpression():Gt[0].expression;for(let wa=Ii?0:1;wa0&&Di.push(n.createStringLiteral(vi.literal.text)),pr=n.createCallExpression(n.createPropertyAccessExpression(pr,"concat"),void 0,Di)}return Tn(pr,nt)}function P_(){return n.createUniqueName("_super",48)}function Qm(nt,pr){const vi=J&8&&!pr?n.createPropertyAccessExpression(Ls(P_(),nt),"prototype"):P_();return Ls(vi,nt),dy(vi,nt),lp(vi,nt),vi}function Bh(nt){return nt.keywordToken===105&&nt.name.escapedText==="target"?(J|=32768,n.createUniqueName("_newTarget",48)):nt}function P1(nt,pr,vi){if(ve&1&&F_(pr)){const Di=Fe(32670,wd(pr)&16?81:65);k(nt,pr,vi),et(Di,0,0);return}k(nt,pr,vi)}function VT(){ve&2||(ve|=2,e.enableSubstitution(80))}function Zm(){ve&1||(ve|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function fb(nt,pr){return pr=P(nt,pr),nt===1?$0(pr):xn(pr)?FS(pr):pr}function FS(nt){if(ve&2&&!vpe(nt)){const pr=__(nt,xn);if(pr&&dT(pr))return Tn(n.getGeneratedNameForNode(pr),nt)}return nt}function dT(nt){switch(nt.parent.kind){case 208:case 263:case 266:case 260:return nt.parent.name===nt&&E.isDeclarationWithCollidingName(nt.parent)}return!1}function $0(nt){switch(nt.kind){case 80:return xv(nt);case 110:return q0(nt)}return nt}function xv(nt){if(ve&2&&!vpe(nt)){const pr=E.getReferencedDeclarationWithCollidingName(nt);if(pr&&!(Fl(pr)&&t2(pr,nt)))return Tn(n.getGeneratedNameForNode(i_(pr)),nt)}return nt}function t2(nt,pr){let vi=__(pr);if(!vi||vi===nt||vi.end<=nt.pos||vi.pos>=nt.end)return!1;const Di=QD(nt);for(;vi;){if(vi===Di||vi===nt)return!1;if(J_(vi)&&vi.parent===nt)return!0;vi=vi.parent}return!1}function q0(nt){return ve&1&&J&16?Tn(at(),nt):nt}function N1(nt,pr){return pd(pr)?n.getInternalName(nt):n.createPropertyAccessExpression(n.getInternalName(nt),"prototype")}function i0(nt,pr){if(!nt||!pr||gt(nt.parameters))return!1;const vi=pp(nt.body.statements);if(!vi||!Hd(vi)||vi.kind!==244)return!1;const Di=vi.expression;if(!Hd(Di)||Di.kind!==213)return!1;const Ee=Di.expression;if(!Hd(Ee)||Ee.kind!==108)return!1;const Gt=Vb(Di.arguments);if(!Gt||!Hd(Gt)||Gt.kind!==230)return!1;const sr=Gt.expression;return xn(sr)&&sr.escapedText==="arguments"}}var mct=G({"src/compiler/transformers/es2015.ts"(){md()}});function Pme(e){const{factory:n}=e,i=e.getCompilerOptions();let c,u;(i.jsx===1||i.jsx===3)&&(c=e.onEmitNode,e.onEmitNode=S,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),u=[]);const d=e.onSubstituteNode;return e.onSubstituteNode=E,e.enableSubstitution(211),e.enableSubstitution(303),_C(e,h);function h($){return $}function S($,J,X){switch(J.kind){case 286:case 287:case 285:const ie=J.tagName;u[Nb(ie)]=!0;break}c($,J,X)}function E($,J){return J.id&&u&&u[J.id]?d($,J):(J=d($,J),Ac(J)?P(J):tl(J)?k(J):J)}function P($){if(Lu($.name))return $;const J=F($.name);return J?Tn(n.createElementAccessExpression($.expression,J),$):$}function k($){const J=xn($.name)&&F($.name);return J?n.updatePropertyAssignment($,J,$.initializer):$}function F($){const J=uP($);if(J!==void 0&&J>=83&&J<=118)return Tn(n.createStringLiteralFromNode($),$)}}var YHe=G({"src/compiler/transformers/es5.ts"(){md()}});function gct(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function sxe(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistFunctionDeclaration:d,hoistVariableDeclaration:h}=e,S=e.getCompilerOptions(),E=iu(S),P=e.getEmitResolver(),k=e.onSubstituteNode;e.onSubstituteNode=kt;let F,$,J,X,ie,ae,ve,we,Fe,et,Pe=1,dt,Ie,ct,Ct,Lt=0,Ze=0,Ke,st,It,Yt,Et,at,Qt,nn;return _C(e,Rn);function Rn(Jt){if(Jt.isDeclarationFile||!(Jt.transformFlags&2048))return Jt;const ci=Xo(Jt,cn,e);return $N(ci,e.readEmitHelpers()),ci}function cn(Jt){const ci=Jt.transformFlags;return X?qt(Jt):J?Kt(Jt):Vd(Jt)&&Jt.asteriskToken?Wr(Jt):ci&2048?Xo(Jt,cn,e):Jt}function qt(Jt){switch(Jt.kind){case 246:return w_(Jt);case 247:return He(Jt);case 255:return Sr(Jt);case 256:return go(Jt);default:return Kt(Jt)}}function Kt(Jt){switch(Jt.kind){case 262:return jt(Jt);case 218:return En(Jt);case 177:case 178:return fr(Jt);case 243:return Vr(Jt);case 248:return dr(Jt);case 249:return Pr(Jt);case 252:return $r(Jt);case 251:return ln(Jt);case 253:return Br(Jt);default:return Jt.transformFlags&1048576?wr(Jt):Jt.transformFlags&4196352?Xo(Jt,cn,e):Jt}}function wr(Jt){switch(Jt.kind){case 226:return Pn(Jt);case 361:return no(Jt);case 227:return Mo(Jt);case 229:return $i(Jt);case 209:return ki(Jt);case 210:return Wl(Jt);case 212:return Jc(Jt);case 213:return au(Jt);case 214:return qn(Jt);default:return Xo(Jt,cn,e)}}function Wr(Jt){switch(Jt.kind){case 262:return jt(Jt);case 218:return En(Jt);default:return re.failBadSyntaxKind(Jt)}}function jt(Jt){if(Jt.asteriskToken)Jt=Ls(Tn(n.createFunctionDeclaration(Jt.modifiers,void 0,Jt.name,void 0,sm(Jt.parameters,cn,e),void 0,Tr(Jt.body)),Jt),Jt);else{const ci=J,da=X;J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da}if(J){d(Jt);return}else return Jt}function En(Jt){if(Jt.asteriskToken)Jt=Ls(Tn(n.createFunctionExpression(void 0,void 0,Jt.name,void 0,sm(Jt.parameters,cn,e),void 0,Tr(Jt.body)),Jt),Jt);else{const ci=J,da=X;J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da}return Jt}function fr(Jt){const ci=J,da=X;return J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da,Jt}function Tr(Jt){const ci=[],da=J,Hu=X,t_=ie,A_=ae,gd=ve,Dg=we,um=Fe,Ig=et,P_=Pe,Qm=dt,Bh=Ie,P1=ct,VT=Ct;J=!0,X=!1,ie=void 0,ae=void 0,ve=void 0,we=void 0,Fe=void 0,et=void 0,Pe=1,dt=void 0,Ie=void 0,ct=void 0,Ct=n.createTempVariable(void 0),c();const Zm=n.copyPrologue(Jt.statements,ci,!1,cn);za(Jt.statements,Zm);const fb=_n();return Um(ci,u()),ci.push(n.createReturnStatement(fb)),J=da,X=Hu,ie=t_,ae=A_,ve=gd,we=Dg,Fe=um,et=Ig,Pe=P_,dt=Qm,Ie=Bh,ct=P1,Ct=VT,Tn(n.createBlock(ci,Jt.multiLine),Jt)}function Vr(Jt){if(Jt.transformFlags&1048576){Au(Jt.declarationList);return}else{if(wd(Jt)&2097152)return Jt;for(const da of Jt.declarationList.declarations)h(da.name);const ci=n3(Jt.declarationList);return ci.length===0?void 0:lp(n.createExpressionStatement(n.inlineExpressions(Vn(ci,Qu))),Jt)}}function Pn(Jt){const ci=Y8(Jt);switch(ci){case 0:return Ki(Jt);case 1:return Fr(Jt);default:return re.assertNever(ci)}}function Fr(Jt){const{left:ci,right:da}=Jt;if(ze(da)){let Hu;switch(ci.kind){case 211:Hu=n.updatePropertyAccessExpression(ci,ge(re.checkDefined(Bn(ci.expression,cn,ib))),ci.name);break;case 212:Hu=n.updateElementAccessExpression(ci,ge(re.checkDefined(Bn(ci.expression,cn,ib))),ge(re.checkDefined(Bn(ci.argumentExpression,cn,kr))));break;default:Hu=re.checkDefined(Bn(ci,cn,kr));break}const t_=Jt.operatorToken.kind;return uj(t_)?Tn(n.createAssignment(Hu,Tn(n.createBinaryExpression(ge(Hu),RQ(t_),re.checkDefined(Bn(da,cn,kr))),Jt)),Jt):n.updateBinaryExpression(Jt,Hu,Jt.operatorToken,re.checkDefined(Bn(da,cn,kr)))}return Xo(Jt,cn,e)}function Ki(Jt){return ze(Jt.right)?U9(Jt.operatorToken.kind)?os(Jt):Jt.operatorToken.kind===28?io(Jt):n.updateBinaryExpression(Jt,ge(re.checkDefined(Bn(Jt.left,cn,kr))),Jt.operatorToken,re.checkDefined(Bn(Jt.right,cn,kr))):Xo(Jt,cn,e)}function io(Jt){let ci=[];return da(Jt.left),da(Jt.right),n.inlineExpressions(ci);function da(Hu){Ds(Hu)&&Hu.operatorToken.kind===28?(da(Hu.left),da(Hu.right)):(ze(Hu)&&ci.length>0&&(fe(1,[n.createExpressionStatement(n.inlineExpressions(ci))]),ci=[]),ci.push(re.checkDefined(Bn(Hu,cn,kr))))}}function no(Jt){let ci=[];for(const da of Jt.elements)Ds(da)&&da.operatorToken.kind===28?ci.push(io(da)):(ze(da)&&ci.length>0&&(fe(1,[n.createExpressionStatement(n.inlineExpressions(ci))]),ci=[]),ci.push(re.checkDefined(Bn(da,cn,kr))));return n.inlineExpressions(ci)}function os(Jt){const ci=Jn(),da=mn();return d_(da,re.checkDefined(Bn(Jt.left,cn,kr)),Jt.left),Jt.operatorToken.kind===56?Pm(ci,da,Jt.left):Qi(ci,da,Jt.left),d_(da,re.checkDefined(Bn(Jt.right,cn,kr)),Jt.right),Nn(ci),da}function Mo(Jt){if(ze(Jt.whenTrue)||ze(Jt.whenFalse)){const ci=Jn(),da=Jn(),Hu=mn();return Pm(ci,re.checkDefined(Bn(Jt.condition,cn,kr)),Jt.condition),d_(Hu,re.checkDefined(Bn(Jt.whenTrue,cn,kr)),Jt.whenTrue),Ka(da),Nn(ci),d_(Hu,re.checkDefined(Bn(Jt.whenFalse,cn,kr)),Jt.whenFalse),Nn(da),Hu}return Xo(Jt,cn,e)}function $i(Jt){const ci=Jn(),da=Bn(Jt.expression,cn,kr);if(Jt.asteriskToken){const Hu=wd(Jt.expression)&8388608?da:Tn(i().createValuesHelper(da),Jt);Ag(Hu,Jt)}else va(da,Jt);return Nn(ci),bE(Jt)}function ki(Jt){return gc(Jt.elements,void 0,void 0,Jt.multiLine)}function gc(Jt,ci,da,Hu){const t_=Ce(Jt);let A_;if(t_>0){A_=mn();const um=Wa(Jt,cn,kr,0,t_);d_(A_,n.createArrayLiteralExpression(ci?[ci,...um]:um)),ci=void 0}const gd=Em(Jt,Dg,[],t_);return A_?n.createArrayConcatCall(A_,[n.createArrayLiteralExpression(gd,Hu)]):Tn(n.createArrayLiteralExpression(ci?[ci,...gd]:gd,Hu),da);function Dg(um,Ig){if(ze(Ig)&&um.length>0){const P_=A_!==void 0;A_||(A_=mn()),d_(A_,P_?n.createArrayConcatCall(A_,[n.createArrayLiteralExpression(um,Hu)]):n.createArrayLiteralExpression(ci?[ci,...um]:um,Hu)),ci=void 0,um=[]}return um.push(re.checkDefined(Bn(Ig,cn,kr))),um}}function Wl(Jt){const ci=Jt.properties,da=Jt.multiLine,Hu=Ce(ci),t_=mn();d_(t_,n.createObjectLiteralExpression(Wa(ci,cn,DN,0,Hu),da));const A_=Em(ci,gd,[],Hu);return A_.push(da?lb(kl(Tn(n.cloneNode(t_),t_),t_.parent)):t_),n.inlineExpressions(A_);function gd(Dg,um){ze(um)&&Dg.length>0&&(qo(n.createExpressionStatement(n.inlineExpressions(Dg))),Dg=[]);const Ig=LEe(n,Jt,um,t_),P_=Bn(Ig,cn,kr);return P_&&(da&&lb(P_),Dg.push(P_)),Dg}}function Jc(Jt){return ze(Jt.argumentExpression)?n.updateElementAccessExpression(Jt,ge(re.checkDefined(Bn(Jt.expression,cn,ib))),re.checkDefined(Bn(Jt.argumentExpression,cn,kr))):Xo(Jt,cn,e)}function au(Jt){if(!Py(Jt)&&Ot(Jt.arguments,ze)){const{target:ci,thisArg:da}=n.createCallBinding(Jt.expression,h,E,!0);return Ls(Tn(n.createFunctionApplyCall(ge(re.checkDefined(Bn(ci,cn,ib))),da,gc(Jt.arguments)),Jt),Jt)}return Xo(Jt,cn,e)}function qn(Jt){if(Ot(Jt.arguments,ze)){const{target:ci,thisArg:da}=n.createCallBinding(n.createPropertyAccessExpression(Jt.expression,"bind"),h);return Ls(Tn(n.createNewExpression(n.createFunctionApplyCall(ge(re.checkDefined(Bn(ci,cn,kr))),da,gc(Jt.arguments,n.createVoidZero())),void 0,[]),Jt),Jt)}return Xo(Jt,cn,e)}function za(Jt,ci=0){const da=Jt.length;for(let Hu=ci;Hu0)break;t_.push(Qu(gd))}t_.length&&(qo(n.createExpressionStatement(n.inlineExpressions(t_))),Hu+=t_.length,t_=[])}}function Qu(Jt){return lp(n.createAssignment(lp(n.cloneNode(Jt.name),Jt.name),re.checkDefined(Bn(Jt.initializer,cn,kr))),Jt)}function Cu(Jt){if(ze(Jt))if(ze(Jt.thenStatement)||ze(Jt.elseStatement)){const ci=Jn(),da=Jt.elseStatement?Jn():void 0;Pm(Jt.elseStatement?da:ci,re.checkDefined(Bn(Jt.expression,cn,kr)),Jt.expression),Ia(Jt.thenStatement),Jt.elseStatement&&(Ka(ci),Nn(da),Ia(Jt.elseStatement)),Nn(ci)}else qo(Bn(Jt,cn,dl));else qo(Bn(Jt,cn,dl))}function yf(Jt){if(ze(Jt)){const ci=Jn(),da=Jn();ma(ci),Nn(da),Ia(Jt.statement),Nn(ci),Qi(da,re.checkDefined(Bn(Jt.expression,cn,kr))),Bl()}else qo(Bn(Jt,cn,dl))}function w_(Jt){return X?(Tf(),Jt=Xo(Jt,cn,e),Bl(),Jt):Xo(Jt,cn,e)}function Eu(Jt){if(ze(Jt)){const ci=Jn(),da=ma(ci);Nn(ci),Pm(da,re.checkDefined(Bn(Jt.expression,cn,kr))),Ia(Jt.statement),Ka(ci),Bl()}else qo(Bn(Jt,cn,dl))}function He(Jt){return X?(Tf(),Jt=Xo(Jt,cn,e),Bl(),Jt):Xo(Jt,cn,e)}function Hn(Jt){if(ze(Jt)){const ci=Jn(),da=Jn(),Hu=ma(da);if(Jt.initializer){const t_=Jt.initializer;Kp(t_)?Au(t_):qo(Tn(n.createExpressionStatement(re.checkDefined(Bn(t_,cn,kr))),t_))}Nn(ci),Jt.condition&&Pm(Hu,re.checkDefined(Bn(Jt.condition,cn,kr))),Ia(Jt.statement),Nn(da),Jt.incrementor&&qo(Tn(n.createExpressionStatement(re.checkDefined(Bn(Jt.incrementor,cn,kr))),Jt.incrementor)),Ka(ci),Bl()}else qo(Bn(Jt,cn,dl))}function dr(Jt){X&&Tf();const ci=Jt.initializer;if(ci&&Kp(ci)){for(const Hu of ci.declarations)h(Hu.name);const da=n3(ci);Jt=n.updateForStatement(Jt,da.length>0?n.inlineExpressions(Vn(da,Qu)):void 0,Bn(Jt.condition,cn,kr),Bn(Jt.incrementor,cn,kr),LS(Jt.statement,cn,e))}else Jt=Xo(Jt,cn,e);return X&&Bl(),Jt}function Mr(Jt){if(ze(Jt)){const ci=mn(),da=mn(),Hu=mn(),t_=n.createLoopVariable(),A_=Jt.initializer;h(t_),d_(ci,re.checkDefined(Bn(Jt.expression,cn,kr))),d_(da,n.createArrayLiteralExpression()),qo(n.createForInStatement(Hu,ci,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(da,"push"),void 0,[Hu])))),d_(t_,n.createNumericLiteral(0));const gd=Jn(),Dg=Jn(),um=ma(Dg);Nn(gd),Pm(um,n.createLessThan(t_,n.createPropertyAccessExpression(da,"length"))),d_(Hu,n.createElementAccessExpression(da,t_)),Pm(Dg,n.createBinaryExpression(Hu,103,ci));let Ig;if(Kp(A_)){for(const P_ of A_.declarations)h(P_.name);Ig=n.cloneNode(A_.declarations[0].name)}else Ig=re.checkDefined(Bn(A_,cn,kr)),re.assert(ib(Ig));d_(Ig,Hu),Ia(Jt.statement),Nn(Dg),qo(n.createExpressionStatement(n.createPostfixIncrement(t_))),Ka(gd),Bl()}else qo(Bn(Jt,cn,dl))}function Pr(Jt){X&&Tf();const ci=Jt.initializer;if(Kp(ci)){for(const da of ci.declarations)h(da.name);Jt=n.updateForInStatement(Jt,ci.declarations[0].name,re.checkDefined(Bn(Jt.expression,cn,kr)),re.checkDefined(Bn(Jt.statement,cn,dl,n.liftToBlock)))}else Jt=Xo(Jt,cn,e);return X&&Bl(),Jt}function Bt(Jt){const ci=R_(Jt.label?Kr(Jt.label):void 0);ci>0?Ka(ci,Jt):qo(Jt)}function ln(Jt){if(X){const ci=R_(Jt.label&&Kr(Jt.label));if(ci>0)return M_(ci,Jt)}return Xo(Jt,cn,e)}function Wn(Jt){const ci=pl(Jt.label?Kr(Jt.label):void 0);ci>0?Ka(ci,Jt):qo(Jt)}function $r(Jt){if(X){const ci=pl(Jt.label&&Kr(Jt.label));if(ci>0)return M_(ci,Jt)}return Xo(Jt,cn,e)}function Ge(Jt){x0(Bn(Jt.expression,cn,kr),Jt)}function Br(Jt){return oy(Bn(Jt.expression,cn,kr),Jt)}function Ei(Jt){ze(Jt)?(Ts(ge(re.checkDefined(Bn(Jt.expression,cn,kr)))),Ia(Jt.statement),Cc()):qo(Bn(Jt,cn,dl))}function Ln(Jt){if(ze(Jt.caseBlock)){const ci=Jt.caseBlock,da=ci.clauses.length,Hu=u_(),t_=ge(re.checkDefined(Bn(Jt.expression,cn,kr))),A_=[];let gd=-1;for(let Ig=0;Ig0)break;um.push(n.createCaseClause(re.checkDefined(Bn(Qm.expression,cn,kr)),[M_(A_[P_],Qm.expression)]))}else Ig++}um.length&&(qo(n.createSwitchStatement(t_,n.createCaseBlock(um))),Dg+=um.length,um=[]),Ig>0&&(Dg+=Ig,Ig=0)}gd>=0?Ka(A_[gd]):Ka(Hu);for(let Ig=0;Ig=0;da--){const Hu=we[da];if(xg(Hu)){if(Hu.labelText===Jt)return!0}else break}return!1}function pl(Jt){if(we)if(Jt)for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(xg(da)&&da.labelText===Jt)return da.breakLabel;if(Yg(da)&&Og(Jt,ci-1))return da.breakLabel}else for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Yg(da))return da.breakLabel}return 0}function R_(Jt){if(we)if(Jt)for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Wy(da)&&Og(Jt,ci-1))return da.continueLabel}else for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Wy(da))return da.continueLabel}return 0}function og(Jt){if(Jt!==void 0&&Jt>0){et===void 0&&(et=[]);const ci=n.createNumericLiteral(-1);return et[Jt]===void 0?et[Jt]=[ci]:et[Jt].push(ci),ci}return n.createOmittedExpression()}function km(Jt){const ci=n.createNumericLiteral(Jt);return koe(ci,3,gct(Jt)),ci}function M_(Jt,ci){return re.assertLessThan(0,Jt,"Invalid label"),Tn(n.createReturnStatement(n.createArrayLiteralExpression([km(3),og(Jt)])),ci)}function oy(Jt,ci){return Tn(n.createReturnStatement(n.createArrayLiteralExpression(Jt?[km(2),Jt]:[km(2)])),ci)}function bE(Jt){return Tn(n.createCallExpression(n.createPropertyAccessExpression(Ct,"sent"),void 0,[]),Jt)}function hh(){fe(0)}function qo(Jt){Jt?fe(1,[Jt]):hh()}function d_(Jt,ci,da){fe(2,[Jt,ci],da)}function Ka(Jt,ci){fe(3,[Jt],ci)}function Qi(Jt,ci,da){fe(4,[Jt,ci],da)}function Pm(Jt,ci,da){fe(5,[Jt,ci],da)}function Ag(Jt,ci){fe(7,[Jt],ci)}function va(Jt,ci){fe(6,[Jt],ci)}function x0(Jt,ci){fe(8,[Jt],ci)}function Nm(Jt,ci){fe(9,[Jt],ci)}function Md(){fe(10)}function fe(Jt,ci,da){dt===void 0&&(dt=[],Ie=[],ct=[]),Fe===void 0&&Nn(Jn());const Hu=dt.length;dt[Hu]=Jt,Ie[Hu]=ci,ct[Hu]=da}function _n(){Lt=0,Ze=0,Ke=void 0,st=!1,It=!1,Yt=void 0,Et=void 0,at=void 0,Qt=void 0,nn=void 0;const Jt=Xn();return i().createGeneratorHelper(_s(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,Ct)],void 0,n.createBlock(Jt,Jt.length>0)),1048576))}function Xn(){if(dt){for(let Jt=0;Jt=0;ci--){const da=nn[ci];Et=[n.createWithStatement(da.expression,n.createBlock(Et))]}if(Qt){const{startLabel:ci,catchLabel:da,finallyLabel:Hu,endLabel:t_}=Qt;Et.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(Ct,"trys"),"push"),void 0,[n.createArrayLiteralExpression([og(ci),og(da),og(Hu),og(t_)])]))),Qt=void 0}Jt&&Et.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(Ct,"label"),n.createNumericLiteral(Ze+1))))}Yt.push(n.createCaseClause(n.createNumericLiteral(Ze),Et||[])),Et=void 0}function Fs(Jt){if(Fe)for(let ci=0;cii.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(Kr(Nn))),Jn),i.createVoidZero())));ur(Ce,Bn(ae.externalHelpersImportDeclaration,Ke,dl)),Oi(Ce,Wa(ze.statements,Ke,dl,qe)),Ze(Ce,!1),Um(Ce,d());const Mt=i.updateSourceFile(ze,Tn(i.createNodeArray(Ce),ze.statements));return $N(Mt,e.readEmitHelpers()),Mt}function dt(ze){const Ce=i.createIdentifier("define"),kt=HJ(i,ze,P,S),qe=Rx(ze)&&ze,{aliasedModuleNames:Mt,unaliasedModuleNames:ge,importAliasNames:mn}=ct(ze,!0),Jn=i.updateSourceFile(ze,Tn(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(Ce,void 0,[...kt?[kt]:[],i.createArrayLiteralExpression(qe?Yn:[i.createStringLiteral("require"),i.createStringLiteral("exports"),...Mt,...ge]),qe?qe.statements.length?qe.statements[0].expression:i.createObjectLiteralExpression():i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,"exports"),...mn],void 0,Lt(ze))]))]),ze.statements));return $N(Jn,e.readEmitHelpers()),Jn}function Ie(ze){const{aliasedModuleNames:Ce,unaliasedModuleNames:kt,importAliasNames:qe}=ct(ze,!1),Mt=HJ(i,ze,P,S),ge=i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"factory")],void 0,Tn(i.createBlock([i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("module"),"object"),i.createTypeCheck(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),"object")),i.createBlock([i.createVariableStatement(void 0,[i.createVariableDeclaration("v",void 0,void 0,i.createCallExpression(i.createIdentifier("factory"),void 0,[i.createIdentifier("require"),i.createIdentifier("exports")]))]),_s(i.createIfStatement(i.createStrictInequality(i.createIdentifier("v"),i.createIdentifier("undefined")),i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),i.createIdentifier("v")))),1)]),i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("define"),"function"),i.createPropertyAccessExpression(i.createIdentifier("define"),"amd")),i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("define"),void 0,[...Mt?[Mt]:[],i.createArrayLiteralExpression([i.createStringLiteral("require"),i.createStringLiteral("exports"),...Ce,...kt]),i.createIdentifier("factory")]))])))],!0),void 0)),mn=i.updateSourceFile(ze,Tn(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(ge,void 0,[i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,"exports"),...qe],void 0,Lt(ze))]))]),ze.statements));return $N(mn,e.readEmitHelpers()),mn}function ct(ze,Ce){const kt=[],qe=[],Mt=[];for(const ge of ze.amdDependencies)ge.name?(kt.push(i.createStringLiteral(ge.path)),Mt.push(i.createParameterDeclaration(void 0,void 0,ge.name))):qe.push(i.createStringLiteral(ge.path));for(const ge of ae.externalImports){const mn=oD(i,ge,ie,P,E,S),Jn=C3(i,ge,ie);mn&&(Ce&&Jn?(_s(Jn,8),kt.push(mn),Mt.push(i.createParameterDeclaration(void 0,void 0,Jn))):qe.push(mn))}return{aliasedModuleNames:kt,unaliasedModuleNames:qe,importAliasNames:Mt}}function Ct(ze){if(Yb(ze)||ry(ze)||!oD(i,ze,ie,P,E,S))return;const Ce=C3(i,ze,ie),kt=au(ze,Ce);if(kt!==Ce)return i.createExpressionStatement(i.createAssignment(Ce,kt))}function Lt(ze){u();const Ce=[],kt=i.copyPrologue(ze.statements,Ce,!S.noImplicitUseStrict,Ke);et()&&ur(Ce,Bt()),Nt(ae.exportedNames)&&ur(Ce,i.createExpressionStatement(Em(ae.exportedNames,(Mt,ge)=>i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(Kr(ge))),Mt),i.createVoidZero()))),ur(Ce,Bn(ae.externalHelpersImportDeclaration,Ke,dl)),F===2&&Oi(Ce,Qo(ae.externalImports,Ct)),Oi(Ce,Wa(ze.statements,Ke,dl,kt)),Ze(Ce,!0),Um(Ce,d());const qe=i.createBlock(Ce,!0);return we&&v3(qe,QHe),qe}function Ze(ze,Ce){if(ae.exportEquals){const kt=Bn(ae.exportEquals.expression,Yt,kr);if(kt)if(Ce){const qe=i.createReturnStatement(kt);Tn(qe,ae.exportEquals),_s(qe,3840),ze.push(qe)}else{const qe=i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),kt));Tn(qe,ae.exportEquals),_s(qe,3072),ze.push(qe)}}}function Ke(ze){switch(ze.kind){case 272:return qn(ze);case 271:return Ia(ze);case 278:return zi(ze);case 277:return na(ze);default:return st(ze)}}function st(ze){switch(ze.kind){case 243:return Au(ze);case 262:return _a(ze);case 263:return us(ze);case 248:return nn(ze,!0);case 249:return Rn(ze);case 250:return cn(ze);case 246:return qt(ze);case 247:return Kt(ze);case 256:return wr(ze);case 254:return Wr(ze);case 245:return jt(ze);case 255:return En(ze);case 269:return fr(ze);case 296:return Tr(ze);case 297:return Vr(ze);case 258:return Pn(ze);case 299:return Fr(ze);case 241:return Ki(ze);default:return Yt(ze)}}function It(ze,Ce){if(!(ze.transformFlags&276828160))return ze;switch(ze.kind){case 248:return nn(ze,!1);case 244:return io(ze);case 217:return no(ze,Ce);case 360:return os(ze,Ce);case 213:if(Py(ze)&&ie.impliedNodeFormat===void 0)return $i(ze);break;case 226:if(wy(ze))return Qt(ze,Ce);break;case 224:case 225:return Mo(ze,Ce)}return Xo(ze,Yt,e)}function Yt(ze){return It(ze,!1)}function Et(ze){return It(ze,!0)}function at(ze){if(el(ze))for(const Ce of ze.properties)switch(Ce.kind){case 303:if(at(Ce.initializer))return!0;break;case 304:if(at(Ce.name))return!0;break;case 305:if(at(Ce.expression))return!0;break;case 174:case 177:case 178:return!1;default:re.assertNever(Ce,"Unhandled object member kind")}else if(Ed(ze)){for(const Ce of ze.elements)if(WT(Ce)){if(at(Ce.expression))return!0}else if(at(Ce))return!0}else if(xn(ze))return Nt(Io(ze))>(CW(ze)?1:0);return!1}function Qt(ze,Ce){return at(ze.left)?yI(ze,Yt,e,0,!Ce,Qu):Xo(ze,Yt,e)}function nn(ze,Ce){if(Ce&&ze.initializer&&Kp(ze.initializer)&&!(ze.initializer.flags&7)){const kt=He(void 0,ze.initializer,!1);if(kt){const qe=[],Mt=Bn(ze.initializer,Et,Kp),ge=i.createVariableStatement(void 0,Mt);qe.push(ge),Oi(qe,kt);const mn=Bn(ze.condition,Yt,kr),Jn=Bn(ze.incrementor,Et,kr),Nn=LS(ze.statement,Ce?st:Yt,e);return qe.push(i.updateForStatement(ze,void 0,mn,Jn,Nn)),qe}}return i.updateForStatement(ze,Bn(ze.initializer,Et,DS),Bn(ze.condition,Yt,kr),Bn(ze.incrementor,Et,kr),LS(ze.statement,Ce?st:Yt,e))}function Rn(ze){if(Kp(ze.initializer)&&!(ze.initializer.flags&7)){const Ce=He(void 0,ze.initializer,!0);if(gt(Ce)){const kt=Bn(ze.initializer,Et,DS),qe=Bn(ze.expression,Yt,kr),Mt=LS(ze.statement,st,e),ge=Ou(Mt)?i.updateBlock(Mt,[...Ce,...Mt.statements]):i.createBlock([...Ce,Mt],!0);return i.updateForInStatement(ze,kt,qe,ge)}}return i.updateForInStatement(ze,Bn(ze.initializer,Et,DS),Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function cn(ze){if(Kp(ze.initializer)&&!(ze.initializer.flags&7)){const Ce=He(void 0,ze.initializer,!0),kt=Bn(ze.initializer,Et,DS),qe=Bn(ze.expression,Yt,kr);let Mt=LS(ze.statement,st,e);return gt(Ce)&&(Mt=Ou(Mt)?i.updateBlock(Mt,[...Ce,...Mt.statements]):i.createBlock([...Ce,Mt],!0)),i.updateForOfStatement(ze,ze.awaitModifier,kt,qe,Mt)}return i.updateForOfStatement(ze,ze.awaitModifier,Bn(ze.initializer,Et,DS),Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function qt(ze){return i.updateDoStatement(ze,LS(ze.statement,st,e),Bn(ze.expression,Yt,kr))}function Kt(ze){return i.updateWhileStatement(ze,Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function wr(ze){return i.updateLabeledStatement(ze,ze.label,re.checkDefined(Bn(ze.statement,st,dl,i.liftToBlock)))}function Wr(ze){return i.updateWithStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.statement,st,dl,i.liftToBlock)))}function jt(ze){return i.updateIfStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.thenStatement,st,dl,i.liftToBlock)),Bn(ze.elseStatement,st,dl,i.liftToBlock))}function En(ze){return i.updateSwitchStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.caseBlock,st,Fv)))}function fr(ze){return i.updateCaseBlock(ze,Wa(ze.clauses,st,$U))}function Tr(ze){return i.updateCaseClause(ze,Bn(ze.expression,Yt,kr),Wa(ze.statements,st,dl))}function Vr(ze){return Xo(ze,st,e)}function Pn(ze){return Xo(ze,st,e)}function Fr(ze){return i.updateCatchClause(ze,ze.variableDeclaration,re.checkDefined(Bn(ze.block,st,Ou)))}function Ki(ze){return ze=Xo(ze,st,e),ze}function io(ze){return i.updateExpressionStatement(ze,Bn(ze.expression,Et,kr))}function no(ze,Ce){return i.updateParenthesizedExpression(ze,Bn(ze.expression,Ce?Et:Yt,kr))}function os(ze,Ce){return i.updatePartiallyEmittedExpression(ze,Bn(ze.expression,Ce?Et:Yt,kr))}function Mo(ze,Ce){if((ze.operator===46||ze.operator===47)&&xn(ze.operand)&&!$g(ze.operand)&&!mI(ze.operand)&&!$ie(ze.operand)){const kt=Io(ze.operand);if(kt){let qe,Mt=Bn(ze.operand,Yt,kr);vk(ze)?Mt=i.updatePrefixUnaryExpression(ze,Mt):(Mt=i.updatePostfixUnaryExpression(ze,Mt),Ce||(qe=i.createTempVariable(h),Mt=i.createAssignment(qe,Mt),Tn(Mt,ze)),Mt=i.createComma(Mt,i.cloneNode(ze.operand)),Tn(Mt,ze));for(const ge of kt)ve[vm(Mt)]=!0,Mt=Wn(ge,Mt),Tn(Mt,ze);return qe&&(ve[vm(Mt)]=!0,Mt=i.createComma(Mt,qe),Tn(Mt,ze)),Mt}}return Xo(ze,Yt,e)}function $i(ze){if(F===0&&k>=7)return Xo(ze,Yt,e);const Ce=oD(i,ze,ie,P,E,S),kt=Bn(pp(ze.arguments),Yt,kr),qe=Ce&&(!kt||!Sd(kt)||kt.text!==Ce.text)?Ce:kt,Mt=!!(ze.transformFlags&16384);switch(S.module){case 2:return gc(qe,Mt);case 3:return ki(qe??i.createVoidZero(),Mt);case 1:default:return Wl(qe)}}function ki(ze,Ce){if(we=!0,L3(ze)){const kt=$g(ze)?ze:Sd(ze)?i.createStringLiteralFromNode(ze):_s(Tn(i.cloneNode(ze),ze),3072);return i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,Wl(ze),void 0,gc(kt,Ce))}else{const kt=i.createTempVariable(h);return i.createComma(i.createAssignment(kt,ze),i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,Wl(kt,!0),void 0,gc(kt,Ce)))}}function gc(ze,Ce){const kt=i.createUniqueName("resolve"),qe=i.createUniqueName("reject"),Mt=[i.createParameterDeclaration(void 0,void 0,kt),i.createParameterDeclaration(void 0,void 0,qe)],ge=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([ze||i.createOmittedExpression()]),kt,qe]))]);let mn;k>=2?mn=i.createArrowFunction(void 0,void 0,Mt,void 0,void 0,ge):(mn=i.createFunctionExpression(void 0,void 0,void 0,void 0,Mt,void 0,ge),Ce&&_s(mn,16));const Jn=i.createNewExpression(i.createIdentifier("Promise"),void 0,[mn]);return b1(S)?i.createCallExpression(i.createPropertyAccessExpression(Jn,i.createIdentifier("then")),void 0,[c().createImportStarCallbackHelper()]):Jn}function Wl(ze,Ce){const kt=ze&&!IA(ze)&&!Ce,qe=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,kt?k>=2?[i.createTemplateExpression(i.createTemplateHead(""),[i.createTemplateSpan(ze,i.createTemplateTail(""))])]:[i.createCallExpression(i.createPropertyAccessExpression(i.createStringLiteral(""),"concat"),void 0,[ze])]:[]);let Mt=i.createCallExpression(i.createIdentifier("require"),void 0,kt?[i.createIdentifier("s")]:ze?[ze]:[]);b1(S)&&(Mt=c().createImportStarHelper(Mt));const ge=kt?[i.createParameterDeclaration(void 0,void 0,"s")]:[];let mn;return k>=2?mn=i.createArrowFunction(void 0,void 0,ge,void 0,void 0,Mt):mn=i.createFunctionExpression(void 0,void 0,void 0,void 0,ge,void 0,i.createBlock([i.createReturnStatement(Mt)])),i.createCallExpression(i.createPropertyAccessExpression(qe,"then"),void 0,[mn])}function Jc(ze,Ce){return!b1(S)||HC(ze)&2?Ce:sj(ze)?c().createImportStarHelper(Ce):Ce}function au(ze,Ce){return!b1(S)||HC(ze)&2?Ce:D6(ze)?c().createImportStarHelper(Ce):aD(ze)?c().createImportDefaultHelper(Ce):Ce}function qn(ze){let Ce;const kt=H8(ze);if(F!==2)if(ze.importClause){const qe=[];kt&&!R9(ze)?qe.push(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,au(ze,za(ze)))):(qe.push(i.createVariableDeclaration(i.getGeneratedNameForNode(ze),void 0,void 0,au(ze,za(ze)))),kt&&R9(ze)&&qe.push(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,i.getGeneratedNameForNode(ze)))),Ce=ur(Ce,Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList(qe,k>=2?2:0)),ze),ze))}else return Ls(Tn(i.createExpressionStatement(za(ze)),ze),ze);else kt&&R9(ze)&&(Ce=ur(Ce,i.createVariableStatement(void 0,i.createVariableDeclarationList([Ls(Tn(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,i.getGeneratedNameForNode(ze)),ze),ze)],k>=2?2:0))));return Ce=yf(Ce,ze),N0(Ce)}function za(ze){const Ce=oD(i,ze,ie,P,E,S),kt=[];return Ce&&kt.push(Ce),i.createCallExpression(i.createIdentifier("require"),void 0,kt)}function Ia(ze){re.assert(Mx(ze),"import= for internal module references should be handled in an earlier transformer.");let Ce;return F!==2?ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createExpressionStatement(Wn(ze.name,za(ze))),ze),ze)):Ce=ur(Ce,Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(ze.name),void 0,void 0,za(ze))],k>=2?2:0)),ze),ze)):ul(ze,32)&&(Ce=ur(Ce,Ls(Tn(i.createExpressionStatement(Wn(i.getExportName(ze),i.getLocalName(ze))),ze),ze))),Ce=w_(Ce,ze),N0(Ce)}function zi(ze){if(!ze.moduleSpecifier)return;const Ce=i.getGeneratedNameForNode(ze);if(ze.exportClause&&j0(ze.exportClause)){const kt=[];F!==2&&kt.push(Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(Ce,void 0,void 0,za(ze))])),ze),ze));for(const qe of ze.exportClause.elements)if(k===0)kt.push(Ls(Tn(i.createExpressionStatement(c().createCreateBindingHelper(Ce,i.createStringLiteralFromNode(qe.propertyName||qe.name),qe.propertyName?i.createStringLiteralFromNode(qe.name):void 0)),qe),qe));else{const Mt=!!b1(S)&&!(HC(ze)&2)&&Kr(qe.propertyName||qe.name)==="default",ge=i.createPropertyAccessExpression(Mt?c().createImportDefaultHelper(Ce):Ce,qe.propertyName||qe.name);kt.push(Ls(Tn(i.createExpressionStatement(Wn(i.getExportName(qe),ge,void 0,!0)),qe),qe))}return N0(kt)}else if(ze.exportClause){const kt=[];return kt.push(Ls(Tn(i.createExpressionStatement(Wn(i.cloneNode(ze.exportClause.name),Jc(ze,F!==2?za(ze):nY(ze)?Ce:i.createIdentifier(Kr(ze.exportClause.name))))),ze),ze)),N0(kt)}else return Ls(Tn(i.createExpressionStatement(c().createExportStarHelper(F!==2?za(ze):Ce)),ze),ze)}function na(ze){if(!ze.isExportEquals)return ln(i.createIdentifier("default"),Bn(ze.expression,Yt,kr),ze,!0)}function _a(ze){let Ce;return ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createFunctionDeclaration(Wa(ze.modifiers,$r,Mf),ze.asteriskToken,i.getDeclarationName(ze,!0,!0),void 0,Wa(ze.parameters,Yt,Os),void 0,Xo(ze.body,Yt,e)),ze),ze)):Ce=ur(Ce,Xo(ze,Yt,e)),Ce=dr(Ce,ze),N0(Ce)}function us(ze){let Ce;return ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createClassDeclaration(Wa(ze.modifiers,$r,Am),i.getDeclarationName(ze,!0,!0),void 0,Wa(ze.heritageClauses,Yt,Qb),Wa(ze.members,Yt,J_)),ze),ze)):Ce=ur(Ce,Xo(ze,Yt,e)),Ce=dr(Ce,ze),N0(Ce)}function Au(ze){let Ce,kt,qe;if(ul(ze,32)){let Mt,ge=!1;for(const mn of ze.declarationList.declarations)if(xn(mn.name)&&mI(mn.name))if(Mt||(Mt=Wa(ze.modifiers,$r,Mf)),mn.initializer){const Jn=i.updateVariableDeclaration(mn,mn.name,void 0,void 0,Wn(mn.name,Bn(mn.initializer,Yt,kr)));kt=ur(kt,Jn)}else kt=ur(kt,mn);else if(mn.initializer)if(!$_(mn.name)&&($m(mn.initializer)||Jm(mn.initializer)||v0(mn.initializer))){const Jn=i.createAssignment(Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),mn.name),mn.name),i.createIdentifier(K2(mn.name))),Nn=i.createVariableDeclaration(mn.name,mn.exclamationToken,mn.type,Bn(mn.initializer,Yt,kr));kt=ur(kt,Nn),qe=ur(qe,Jn),ge=!0}else qe=ur(qe,Cu(mn));if(kt&&(Ce=ur(Ce,i.updateVariableStatement(ze,Mt,i.updateVariableDeclarationList(ze.declarationList,kt)))),qe){const mn=Ls(Tn(i.createExpressionStatement(i.inlineExpressions(qe)),ze),ze);ge&&aW(mn),Ce=ur(Ce,mn)}}else Ce=ur(Ce,Xo(ze,Yt,e));return Ce=Eu(Ce,ze),N0(Ce)}function Qu(ze,Ce,kt){const qe=Io(ze);if(qe){let Mt=CW(ze)?Ce:i.createAssignment(ze,Ce);for(const ge of qe)_s(Mt,8),Mt=Wn(ge,Mt,kt);return Mt}return i.createAssignment(ze,Ce)}function Cu(ze){return $_(ze.name)?yI(Bn(ze,Yt,J9),Yt,e,0,!1,Qu):i.createAssignment(Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),ze.name),ze.name),ze.initializer?Bn(ze.initializer,Yt,kr):i.createVoidZero())}function yf(ze,Ce){if(ae.exportEquals)return ze;const kt=Ce.importClause;if(!kt)return ze;const qe=new fj;kt.name&&(ze=Mr(ze,qe,kt));const Mt=kt.namedBindings;if(Mt)switch(Mt.kind){case 274:ze=Mr(ze,qe,Mt);break;case 275:for(const ge of Mt.elements)ze=Mr(ze,qe,ge,!0);break}return ze}function w_(ze,Ce){return ae.exportEquals?ze:Mr(ze,new fj,Ce)}function Eu(ze,Ce){return He(ze,Ce.declarationList,!1)}function He(ze,Ce,kt){if(ae.exportEquals)return ze;for(const qe of Ce.declarations)ze=Hn(ze,qe,kt);return ze}function Hn(ze,Ce,kt){if(ae.exportEquals)return ze;if($_(Ce.name))for(const qe of Ce.name.elements)cb(qe)||(ze=Hn(ze,qe,kt));else!$g(Ce.name)&&(!Kc(Ce)||Ce.initializer||kt)&&(ze=Mr(ze,new fj,Ce));return ze}function dr(ze,Ce){if(ae.exportEquals)return ze;const kt=new fj;if(ul(Ce,32)){const qe=ul(Ce,2048)?i.createIdentifier("default"):i.getDeclarationName(Ce);ze=Pr(ze,kt,qe,i.getLocalName(Ce),Ce)}return Ce.name&&(ze=Mr(ze,kt,Ce)),ze}function Mr(ze,Ce,kt,qe){const Mt=i.getDeclarationName(kt),ge=ae.exportSpecifiers.get(Mt);if(ge)for(const mn of ge)ze=Pr(ze,Ce,mn.name,Mt,mn.name,void 0,qe);return ze}function Pr(ze,Ce,kt,qe,Mt,ge,mn){return Ce.has(kt)||(Ce.set(kt,!0),ze=ur(ze,ln(kt,qe,Mt,ge,mn))),ze}function Bt(){let ze;return k===0?ze=i.createExpressionStatement(Wn(i.createIdentifier("__esModule"),i.createTrue())):ze=i.createExpressionStatement(i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteral("__esModule"),i.createObjectLiteralExpression([i.createPropertyAssignment("value",i.createTrue())])])),_s(ze,2097152),ze}function ln(ze,Ce,kt,qe,Mt){const ge=Tn(i.createExpressionStatement(Wn(ze,Ce,void 0,Mt)),kt);return lb(ge),qe||_s(ge,3072),ge}function Wn(ze,Ce,kt,qe){return Tn(qe&&k!==0?i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteralFromNode(ze),i.createObjectLiteralExpression([i.createPropertyAssignment("enumerable",i.createTrue()),i.createPropertyAssignment("get",i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(Ce)])))])]):i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(ze)),Ce),kt)}function $r(ze){switch(ze.kind){case 95:case 90:return}return ze}function Ge(ze,Ce,kt){Ce.kind===312?(ie=Ce,ae=X[Nb(ie)],J(ze,Ce,kt),ie=void 0,ae=void 0):J(ze,Ce,kt)}function Br(ze,Ce){return Ce=$(ze,Ce),Ce.id&&ve[Ce.id]?Ce:ze===1?Ln(Ce):XE(Ce)?Ei(Ce):Ce}function Ei(ze){const Ce=ze.name,kt=go(Ce);if(kt!==Ce){if(ze.objectAssignmentInitializer){const qe=i.createAssignment(kt,ze.objectAssignmentInitializer);return Tn(i.createPropertyAssignment(Ce,qe),ze)}return Tn(i.createPropertyAssignment(Ce,kt),ze)}return ze}function Ln(ze){switch(ze.kind){case 80:return go(ze);case 213:return Sr(ze);case 215:return yi(ze);case 226:return Ao(ze)}return ze}function Sr(ze){if(xn(ze.expression)){const Ce=go(ze.expression);if(ve[vm(Ce)]=!0,!xn(Ce)&&!(wd(ze.expression)&8192))return DG(i.updateCallExpression(ze,Ce,void 0,ze.arguments),16)}return ze}function yi(ze){if(xn(ze.tag)){const Ce=go(ze.tag);if(ve[vm(Ce)]=!0,!xn(Ce)&&!(wd(ze.tag)&8192))return DG(i.updateTaggedTemplateExpression(ze,Ce,void 0,ze.template),16)}return ze}function go(ze){var Ce,kt;if(wd(ze)&8192){const qe=t4(ie);return qe?i.createPropertyAccessExpression(qe,ze):ze}else if(!($g(ze)&&!(ze.emitNode.autoGenerate.flags&64))&&!mI(ze)){const qe=E.getReferencedExportContainer(ze,CW(ze));if(qe&&qe.kind===312)return Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(ze)),ze);const Mt=E.getReferencedImportDeclaration(ze);if(Mt){if(Tk(Mt))return Tn(i.createPropertyAccessExpression(i.getGeneratedNameForNode(Mt.parent),i.createIdentifier("default")),ze);if(qE(Mt)){const ge=Mt.propertyName||Mt.name;return Tn(i.createPropertyAccessExpression(i.getGeneratedNameForNode(((kt=(Ce=Mt.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||Mt),i.cloneNode(ge)),ze)}}}return ze}function Ao(ze){if(pk(ze.operatorToken.kind)&&xn(ze.left)&&(!$g(ze.left)||sR(ze.left))&&!mI(ze.left)){const Ce=Io(ze.left);if(Ce){let kt=ze;for(const qe of Ce)ve[vm(kt)]=!0,kt=Wn(qe,kt,ze);return kt}}return ze}function Io(ze){if($g(ze)){if(sR(ze)){const Ce=ae==null?void 0:ae.exportSpecifiers.get(ze);if(Ce){const kt=[];for(const qe of Ce)kt.push(qe.name);return kt}}}else{const Ce=E.getReferencedImportDeclaration(ze);if(Ce)return ae==null?void 0:ae.exportedBindings[Nb(Ce)];const kt=new Set,qe=E.getReferencedValueDeclarations(ze);if(qe){for(const Mt of qe){const ge=ae==null?void 0:ae.exportedBindings[Nb(Mt)];if(ge)for(const mn of ge)kt.add(mn)}if(kt.size)return oc(kt)}}}}var QHe,ZHe=G({"src/compiler/transformers/module/module.ts"(){md(),QHe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function v4e(e){const{factory:n,startLexicalEnvironment:i,endLexicalEnvironment:c,hoistVariableDeclaration:u}=e,d=e.getCompilerOptions(),h=e.getEmitResolver(),S=e.getEmitHost(),E=e.onSubstituteNode,P=e.onEmitNode;e.onSubstituteNode=Wn,e.onEmitNode=ln,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const k=[],F=[],$=[],J=[];let X,ie,ae,ve,we,Fe,et;return _C(e,Pe);function Pe(ze){if(ze.isDeclarationFile||!(VM(ze,d)||ze.transformFlags&8388608))return ze;const Ce=Nb(ze);X=ze,Fe=ze,ie=k[Ce]=cj(e,ze),ae=n.createUniqueName("exports"),F[Ce]=ae,ve=J[Ce]=n.createUniqueName("context");const kt=dt(ie.externalImports),qe=Ie(ze,kt),Mt=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,ae),n.createParameterDeclaration(void 0,void 0,ve)],void 0,qe),ge=HJ(n,ze,S,d),mn=n.createArrayLiteralExpression(Vn(kt,Nn=>Nn.name)),Jn=_s(n.updateSourceFile(ze,Tn(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,ge?[ge,mn,Mt]:[mn,Mt]))]),ze.statements)),2048);return Ng(d)||tpe(Jn,qe,Nn=>!Nn.scoped),et&&($[Ce]=et,et=void 0),X=void 0,ie=void 0,ae=void 0,ve=void 0,we=void 0,Fe=void 0,Jn}function dt(ze){const Ce=new Map,kt=[];for(const qe of ze){const Mt=oD(n,qe,X,S,h,d);if(Mt){const ge=Mt.text,mn=Ce.get(ge);mn!==void 0?kt[mn].externalImports.push(qe):(Ce.set(ge,kt.length),kt.push({name:Mt,externalImports:[qe]}))}}return kt}function Ie(ze,Ce){const kt=[];i();const qe=hv(d,"alwaysStrict")||!d.noImplicitUseStrict&&Bv(X),Mt=n.copyPrologue(ze.statements,kt,qe,Ze);kt.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(ve,n.createPropertyAccessExpression(ve,"id")))]))),Bn(ie.externalHelpersImportDeclaration,Ze,dl);const ge=Wa(ze.statements,Ze,dl,Mt);Oi(kt,we),Um(kt,c());const mn=ct(kt),Jn=ze.transformFlags&2097152?n.createModifiersFromModifierFlags(1024):void 0,Nn=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",Lt(mn,Ce)),n.createPropertyAssignment("execute",n.createFunctionExpression(Jn,void 0,void 0,void 0,[],void 0,n.createBlock(ge,!0)))],!0);return kt.push(n.createReturnStatement(Nn)),n.createBlock(kt,!0)}function ct(ze){if(!ie.hasExportStarsToExportValues)return;if(!ie.exportedNames&&ie.exportSpecifiers.size===0){let Mt=!1;for(const ge of ie.externalImports)if(ge.kind===278&&ge.exportClause){Mt=!0;break}if(!Mt){const ge=Ct(void 0);return ze.push(ge),ge.name}}const Ce=[];if(ie.exportedNames)for(const Mt of ie.exportedNames)Mt.escapedText!=="default"&&Ce.push(n.createPropertyAssignment(n.createStringLiteralFromNode(Mt),n.createTrue()));const kt=n.createUniqueName("exportedNames");ze.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(kt,void 0,void 0,n.createObjectLiteralExpression(Ce,!0))])));const qe=Ct(kt);return ze.push(qe),qe.name}function Ct(ze){const Ce=n.createUniqueName("exportStar"),kt=n.createIdentifier("m"),qe=n.createIdentifier("n"),Mt=n.createIdentifier("exports");let ge=n.createStrictInequality(qe,n.createStringLiteral("default"));return ze&&(ge=n.createLogicalAnd(ge,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(ze,"hasOwnProperty"),void 0,[qe])))),n.createFunctionDeclaration(void 0,void 0,Ce,void 0,[n.createParameterDeclaration(void 0,void 0,kt)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Mt,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(qe)]),kt,n.createBlock([_s(n.createIfStatement(ge,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(Mt,qe),n.createElementAccessExpression(kt,qe)))),1)])),n.createExpressionStatement(n.createCallExpression(ae,void 0,[Mt]))],!0))}function Lt(ze,Ce){const kt=[];for(const qe of Ce){const Mt=Ot(qe.externalImports,Jn=>C3(n,Jn,X)),ge=Mt?n.getGeneratedNameForNode(Mt):n.createUniqueName(""),mn=[];for(const Jn of qe.externalImports){const Nn=C3(n,Jn,X);switch(Jn.kind){case 272:if(!Jn.importClause)break;case 271:re.assert(Nn!==void 0),mn.push(n.createExpressionStatement(n.createAssignment(Nn,ge))),ul(Jn,32)&&mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createStringLiteral(Kr(Nn)),ge])));break;case 278:if(re.assert(Nn!==void 0),Jn.exportClause)if(j0(Jn.exportClause)){const Lr=[];for(const qi of Jn.exportClause.elements)Lr.push(n.createPropertyAssignment(n.createStringLiteral(Kr(qi.name)),n.createElementAccessExpression(ge,n.createStringLiteral(Kr(qi.propertyName||qi.name)))));mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createObjectLiteralExpression(Lr,!0)])))}else mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createStringLiteral(Kr(Jn.exportClause.name)),ge])));else mn.push(n.createExpressionStatement(n.createCallExpression(ze,void 0,[ge])));break}}kt.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,ge)],void 0,n.createBlock(mn,!0)))}return n.createArrayLiteralExpression(kt,!0)}function Ze(ze){switch(ze.kind){case 272:return Ke(ze);case 271:return It(ze);case 278:return st(ze);case 277:return Yt(ze);default:return io(ze)}}function Ke(ze){let Ce;return ze.importClause&&u(C3(n,ze,X)),N0(Wr(Ce,ze))}function st(ze){re.assertIsDefined(ze)}function It(ze){re.assert(Mx(ze),"import= for internal module references should be handled in an earlier transformer.");let Ce;return u(C3(n,ze,X)),N0(jt(Ce,ze))}function Yt(ze){if(ze.isExportEquals)return;const Ce=Bn(ze.expression,Cu,kr);return Fr(n.createIdentifier("default"),Ce,!0)}function Et(ze){ul(ze,32)?we=ur(we,n.updateFunctionDeclaration(ze,Wa(ze.modifiers,Bt,Am),ze.asteriskToken,n.getDeclarationName(ze,!0,!0),void 0,Wa(ze.parameters,Cu,Os),void 0,Bn(ze.body,Cu,Ou))):we=ur(we,Xo(ze,Cu,e)),we=Tr(we,ze)}function at(ze){let Ce;const kt=n.getLocalName(ze);return u(kt),Ce=ur(Ce,Tn(n.createExpressionStatement(n.createAssignment(kt,Tn(n.createClassExpression(Wa(ze.modifiers,Bt,Am),ze.name,void 0,Wa(ze.heritageClauses,Cu,Qb),Wa(ze.members,Cu,J_)),ze))),ze)),Ce=Tr(Ce,ze),N0(Ce)}function Qt(ze){if(!Rn(ze.declarationList))return Bn(ze,Cu,dl);let Ce;if(aY(ze.declarationList)||nC(ze.declarationList)){const kt=Wa(ze.modifiers,Bt,Am),qe=[];for(const ge of ze.declarationList.declarations)qe.push(n.updateVariableDeclaration(ge,n.getGeneratedNameForNode(ge.name),void 0,void 0,cn(ge,!1)));const Mt=n.updateVariableDeclarationList(ze.declarationList,qe);Ce=ur(Ce,n.updateVariableStatement(ze,kt,Mt))}else{let kt;const qe=ul(ze,32);for(const Mt of ze.declarationList.declarations)Mt.initializer?kt=ur(kt,cn(Mt,qe)):nn(Mt);kt&&(Ce=ur(Ce,Tn(n.createExpressionStatement(n.inlineExpressions(kt)),ze)))}return Ce=En(Ce,ze,!1),N0(Ce)}function nn(ze){if($_(ze.name))for(const Ce of ze.name.elements)cb(Ce)||nn(Ce);else u(n.cloneNode(ze.name))}function Rn(ze){return(wd(ze)&4194304)===0&&(Fe.kind===312||(Gg(ze).flags&7)===0)}function cn(ze,Ce){const kt=Ce?qt:Kt;return $_(ze.name)?yI(ze,Cu,e,0,!1,kt):ze.initializer?kt(ze.name,Bn(ze.initializer,Cu,kr)):ze.name}function qt(ze,Ce,kt){return wr(ze,Ce,kt,!0)}function Kt(ze,Ce,kt){return wr(ze,Ce,kt,!1)}function wr(ze,Ce,kt,qe){return u(n.cloneNode(ze)),qe?Ki(ze,Ao(Tn(n.createAssignment(ze,Ce),kt))):Ao(Tn(n.createAssignment(ze,Ce),kt))}function Wr(ze,Ce){if(ie.exportEquals)return ze;const kt=Ce.importClause;if(!kt)return ze;kt.name&&(ze=Vr(ze,kt));const qe=kt.namedBindings;if(qe)switch(qe.kind){case 274:ze=Vr(ze,qe);break;case 275:for(const Mt of qe.elements)ze=Vr(ze,Mt);break}return ze}function jt(ze,Ce){return ie.exportEquals?ze:Vr(ze,Ce)}function En(ze,Ce,kt){if(ie.exportEquals)return ze;for(const qe of Ce.declarationList.declarations)(qe.initializer||kt)&&(ze=fr(ze,qe,kt));return ze}function fr(ze,Ce,kt){if(ie.exportEquals)return ze;if($_(Ce.name))for(const qe of Ce.name.elements)cb(qe)||(ze=fr(ze,qe,kt));else if(!$g(Ce.name)){let qe;kt&&(ze=Pn(ze,Ce.name,n.getLocalName(Ce)),qe=Kr(Ce.name)),ze=Vr(ze,Ce,qe)}return ze}function Tr(ze,Ce){if(ie.exportEquals)return ze;let kt;if(ul(Ce,32)){const qe=ul(Ce,2048)?n.createStringLiteral("default"):Ce.name;ze=Pn(ze,qe,n.getLocalName(Ce)),kt=K2(qe)}return Ce.name&&(ze=Vr(ze,Ce,kt)),ze}function Vr(ze,Ce,kt){if(ie.exportEquals)return ze;const qe=n.getDeclarationName(Ce),Mt=ie.exportSpecifiers.get(qe);if(Mt)for(const ge of Mt)ge.name.escapedText!==kt&&(ze=Pn(ze,ge.name,qe));return ze}function Pn(ze,Ce,kt,qe){return ze=ur(ze,Fr(Ce,kt,qe)),ze}function Fr(ze,Ce,kt){const qe=n.createExpressionStatement(Ki(ze,Ce));return lb(qe),kt||_s(qe,3072),qe}function Ki(ze,Ce){const kt=xn(ze)?n.createStringLiteralFromNode(ze):ze;return _s(Ce,wd(Ce)|3072),dy(n.createCallExpression(ae,void 0,[kt,Ce]),Ce)}function io(ze){switch(ze.kind){case 243:return Qt(ze);case 262:return Et(ze);case 263:return at(ze);case 248:return no(ze,!0);case 249:return os(ze);case 250:return Mo(ze);case 246:return gc(ze);case 247:return Wl(ze);case 256:return Jc(ze);case 254:return au(ze);case 245:return qn(ze);case 255:return za(ze);case 269:return Ia(ze);case 296:return zi(ze);case 297:return na(ze);case 258:return _a(ze);case 299:return us(ze);case 241:return Au(ze);default:return Cu(ze)}}function no(ze,Ce){const kt=Fe;return Fe=ze,ze=n.updateForStatement(ze,Bn(ze.initializer,Ce?ki:yf,DS),Bn(ze.condition,Cu,kr),Bn(ze.incrementor,yf,kr),LS(ze.statement,Ce?io:Cu,e)),Fe=kt,ze}function os(ze){const Ce=Fe;return Fe=ze,ze=n.updateForInStatement(ze,ki(ze.initializer),Bn(ze.expression,Cu,kr),LS(ze.statement,io,e)),Fe=Ce,ze}function Mo(ze){const Ce=Fe;return Fe=ze,ze=n.updateForOfStatement(ze,ze.awaitModifier,ki(ze.initializer),Bn(ze.expression,Cu,kr),LS(ze.statement,io,e)),Fe=Ce,ze}function $i(ze){return Kp(ze)&&Rn(ze)}function ki(ze){if($i(ze)){let Ce;for(const kt of ze.declarations)Ce=ur(Ce,cn(kt,!1)),kt.initializer||nn(kt);return Ce?n.inlineExpressions(Ce):n.createOmittedExpression()}else return Bn(ze,yf,DS)}function gc(ze){return n.updateDoStatement(ze,LS(ze.statement,io,e),Bn(ze.expression,Cu,kr))}function Wl(ze){return n.updateWhileStatement(ze,Bn(ze.expression,Cu,kr),LS(ze.statement,io,e))}function Jc(ze){return n.updateLabeledStatement(ze,ze.label,re.checkDefined(Bn(ze.statement,io,dl,n.liftToBlock)))}function au(ze){return n.updateWithStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.statement,io,dl,n.liftToBlock)))}function qn(ze){return n.updateIfStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.thenStatement,io,dl,n.liftToBlock)),Bn(ze.elseStatement,io,dl,n.liftToBlock))}function za(ze){return n.updateSwitchStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.caseBlock,io,Fv)))}function Ia(ze){const Ce=Fe;return Fe=ze,ze=n.updateCaseBlock(ze,Wa(ze.clauses,io,$U)),Fe=Ce,ze}function zi(ze){return n.updateCaseClause(ze,Bn(ze.expression,Cu,kr),Wa(ze.statements,io,dl))}function na(ze){return Xo(ze,io,e)}function _a(ze){return Xo(ze,io,e)}function us(ze){const Ce=Fe;return Fe=ze,ze=n.updateCatchClause(ze,ze.variableDeclaration,re.checkDefined(Bn(ze.block,io,Ou))),Fe=Ce,ze}function Au(ze){const Ce=Fe;return Fe=ze,ze=Xo(ze,io,e),Fe=Ce,ze}function Qu(ze,Ce){if(!(ze.transformFlags&276828160))return ze;switch(ze.kind){case 248:return no(ze,!1);case 244:return w_(ze);case 217:return Eu(ze,Ce);case 360:return He(ze,Ce);case 226:if(wy(ze))return dr(ze,Ce);break;case 213:if(Py(ze))return Hn(ze);break;case 224:case 225:return Pr(ze,Ce)}return Xo(ze,Cu,e)}function Cu(ze){return Qu(ze,!1)}function yf(ze){return Qu(ze,!0)}function w_(ze){return n.updateExpressionStatement(ze,Bn(ze.expression,yf,kr))}function Eu(ze,Ce){return n.updateParenthesizedExpression(ze,Bn(ze.expression,Ce?yf:Cu,kr))}function He(ze,Ce){return n.updatePartiallyEmittedExpression(ze,Bn(ze.expression,Ce?yf:Cu,kr))}function Hn(ze){const Ce=oD(n,ze,X,S,h,d),kt=Bn(pp(ze.arguments),Cu,kr),qe=Ce&&(!kt||!Sd(kt)||kt.text!==Ce.text)?Ce:kt;return n.createCallExpression(n.createPropertyAccessExpression(ve,n.createIdentifier("import")),void 0,qe?[qe]:[])}function dr(ze,Ce){return Mr(ze.left)?yI(ze,Cu,e,0,!Ce):Xo(ze,Cu,e)}function Mr(ze){if(Zv(ze,!0))return Mr(ze.left);if(WT(ze))return Mr(ze.expression);if(el(ze))return gt(ze.properties,Mr);if(Ed(ze))return gt(ze.elements,Mr);if(XE(ze))return Mr(ze.name);if(tl(ze))return Mr(ze.initializer);if(xn(ze)){const Ce=h.getReferencedExportContainer(ze);return Ce!==void 0&&Ce.kind===312}else return!1}function Pr(ze,Ce){if((ze.operator===46||ze.operator===47)&&xn(ze.operand)&&!$g(ze.operand)&&!mI(ze.operand)&&!$ie(ze.operand)){const kt=yi(ze.operand);if(kt){let qe,Mt=Bn(ze.operand,Cu,kr);vk(ze)?Mt=n.updatePrefixUnaryExpression(ze,Mt):(Mt=n.updatePostfixUnaryExpression(ze,Mt),Ce||(qe=n.createTempVariable(u),Mt=n.createAssignment(qe,Mt),Tn(Mt,ze)),Mt=n.createComma(Mt,n.cloneNode(ze.operand)),Tn(Mt,ze));for(const ge of kt)Mt=Ki(ge,Ao(Mt));return qe&&(Mt=n.createComma(Mt,qe),Tn(Mt,ze)),Mt}}return Xo(ze,Cu,e)}function Bt(ze){switch(ze.kind){case 95:case 90:return}return ze}function ln(ze,Ce,kt){if(Ce.kind===312){const qe=Nb(Ce);X=Ce,ie=k[qe],ae=F[qe],et=$[qe],ve=J[qe],et&&delete $[qe],P(ze,Ce,kt),X=void 0,ie=void 0,ae=void 0,ve=void 0,et=void 0}else P(ze,Ce,kt)}function Wn(ze,Ce){return Ce=E(ze,Ce),Io(Ce)?Ce:ze===1?Br(Ce):ze===4?$r(Ce):Ce}function $r(ze){switch(ze.kind){case 304:return Ge(ze)}return ze}function Ge(ze){var Ce,kt;const qe=ze.name;if(!$g(qe)&&!mI(qe)){const Mt=h.getReferencedImportDeclaration(qe);if(Mt){if(Tk(Mt))return Tn(n.createPropertyAssignment(n.cloneNode(qe),n.createPropertyAccessExpression(n.getGeneratedNameForNode(Mt.parent),n.createIdentifier("default"))),ze);if(qE(Mt))return Tn(n.createPropertyAssignment(n.cloneNode(qe),n.createPropertyAccessExpression(n.getGeneratedNameForNode(((kt=(Ce=Mt.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||Mt),n.cloneNode(Mt.propertyName||Mt.name))),ze)}}return ze}function Br(ze){switch(ze.kind){case 80:return Ei(ze);case 226:return Ln(ze);case 236:return Sr(ze)}return ze}function Ei(ze){var Ce,kt;if(wd(ze)&8192){const qe=t4(X);return qe?n.createPropertyAccessExpression(qe,ze):ze}if(!$g(ze)&&!mI(ze)){const qe=h.getReferencedImportDeclaration(ze);if(qe){if(Tk(qe))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(qe.parent),n.createIdentifier("default")),ze);if(qE(qe))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((kt=(Ce=qe.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||qe),n.cloneNode(qe.propertyName||qe.name)),ze)}}return ze}function Ln(ze){if(pk(ze.operatorToken.kind)&&xn(ze.left)&&(!$g(ze.left)||sR(ze.left))&&!mI(ze.left)){const Ce=yi(ze.left);if(Ce){let kt=ze;for(const qe of Ce)kt=Ki(qe,Ao(kt));return kt}}return ze}function Sr(ze){return gP(ze)?n.createPropertyAccessExpression(ve,n.createIdentifier("meta")):ze}function yi(ze){let Ce;const kt=go(ze);if(kt){const qe=h.getReferencedExportContainer(ze,!1);qe&&qe.kind===312&&(Ce=ur(Ce,n.getDeclarationName(kt))),Ce=Oi(Ce,ie==null?void 0:ie.exportedBindings[Nb(kt)])}else if($g(ze)&&sR(ze)){const qe=ie==null?void 0:ie.exportSpecifiers.get(ze);if(qe){const Mt=[];for(const ge of qe)Mt.push(ge.name);return Mt}}return Ce}function go(ze){if(!$g(ze)){const Ce=h.getReferencedImportDeclaration(ze);if(Ce)return Ce;const kt=h.getReferencedValueDeclaration(ze);if(kt&&(ie!=null&&ie.exportedBindings[Nb(kt)]))return kt;const qe=h.getReferencedValueDeclarations(ze);if(qe){for(const Mt of qe)if(Mt!==kt&&(ie!=null&&ie.exportedBindings[Nb(Mt)]))return Mt}return kt}}function Ao(ze){return et===void 0&&(et=[]),et[vm(ze)]=!0,ze}function Io(ze){return et&&ze.id&&et[ze.id]}}var cxe=G({"src/compiler/transformers/module/system.ts"(){md()}});function Nme(e){const{factory:n,getEmitHelperFactory:i}=e,c=e.getEmitHost(),u=e.getEmitResolver(),d=e.getCompilerOptions(),h=iu(d),S=e.onEmitNode,E=e.onSubstituteNode;e.onEmitNode=et,e.onSubstituteNode=Pe,e.enableEmitNotification(312),e.enableSubstitution(80);let P,k,F;return _C(e,$);function $(Ie){if(Ie.isDeclarationFile)return Ie;if(Bv(Ie)||F0(d)){k=Ie,F=void 0;let ct=J(Ie);return k=void 0,F&&(ct=n.updateSourceFile(ct,Tn(n.createNodeArray(wx(ct.statements.slice(),F)),ct.statements))),!Bv(Ie)||gt(ct.statements,XX)?ct:n.updateSourceFile(ct,Tn(n.createNodeArray([...ct.statements,Boe(n)]),ct.statements))}return Ie}function J(Ie){const ct=UJ(n,i(),Ie,d);if(ct){const Ct=[],Lt=n.copyPrologue(Ie.statements,Ct);return ur(Ct,ct),Oi(Ct,Wa(Ie.statements,X,dl,Lt)),n.updateSourceFile(Ie,Tn(n.createNodeArray(Ct),Ie.statements))}else return Xo(Ie,X,e)}function X(Ie){switch(Ie.kind){case 271:return Zp(d)>=100?ae(Ie):void 0;case 277:return we(Ie);case 278:return Fe(Ie)}return Ie}function ie(Ie){const ct=oD(n,Ie,re.checkDefined(k),c,u,d),Ct=[];if(ct&&Ct.push(ct),!F){const Ze=n.createUniqueName("_createRequire",48),Ke=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),Ze)])),n.createStringLiteral("module"),void 0),st=n.createUniqueName("__require",48),It=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(st,void 0,void 0,n.createCallExpression(n.cloneNode(Ze),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],h>=2?2:0));F=[Ke,It]}const Lt=F[1].declarationList.declarations[0].name;return re.assertNode(Lt,xn),n.createCallExpression(n.cloneNode(Lt),void 0,Ct)}function ae(Ie){re.assert(Mx(Ie),"import= for internal module references should be handled in an earlier transformer.");let ct;return ct=ur(ct,Ls(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(Ie.name),void 0,void 0,ie(Ie))],h>=2?2:0)),Ie),Ie)),ct=ve(ct,Ie),N0(ct)}function ve(Ie,ct){return ul(ct,32)&&(Ie=ur(Ie,n.createExportDeclaration(void 0,ct.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Kr(ct.name))])))),Ie}function we(Ie){return Ie.isExportEquals?void 0:Ie}function Fe(Ie){if(d.module!==void 0&&d.module>5||!Ie.exportClause||!G0(Ie.exportClause)||!Ie.moduleSpecifier)return Ie;const ct=Ie.exportClause.name,Ct=n.getGeneratedNameForNode(ct),Lt=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(Ct)),Ie.moduleSpecifier,Ie.attributes);Ls(Lt,Ie.exportClause);const Ze=nY(Ie)?n.createExportDefault(Ct):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,Ct,ct)]));return Ls(Ze,Ie),[Lt,Ze]}function et(Ie,ct,Ct){Nu(ct)?((Bv(ct)||F0(d))&&d.importHelpers&&(P=new Map),S(Ie,ct,Ct),P=void 0):S(Ie,ct,Ct)}function Pe(Ie,ct){return ct=E(Ie,ct),P&&xn(ct)&&wd(ct)&8192?dt(ct):ct}function dt(Ie){const ct=Kr(Ie);let Ct=P.get(ct);return Ct||P.set(ct,Ct=n.createUniqueName(ct,48)),Ct}}var f4=G({"src/compiler/transformers/module/esnextAnd2015.ts"(){md()}});function b4e(e){const n=e.onSubstituteNode,i=e.onEmitNode,c=Nme(e),u=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=n,e.onEmitNode=i;const h=Oae(e),S=e.onSubstituteNode,E=e.onEmitNode;e.onSubstituteNode=k,e.onEmitNode=F,e.enableSubstitution(312),e.enableEmitNotification(312);let P;return X;function k(ae,ve){return Nu(ve)?(P=ve,n(ae,ve)):P?P.impliedNodeFormat===99?u(ae,ve):S(ae,ve):n(ae,ve)}function F(ae,ve,we){return Nu(ve)&&(P=ve),P?P.impliedNodeFormat===99?d(ae,ve,we):E(ae,ve,we):i(ae,ve,we)}function $(ae){return ae.impliedNodeFormat===99?c:h}function J(ae){if(ae.isDeclarationFile)return ae;P=ae;const ve=$(ae)(ae);return P=void 0,re.assert(Nu(ve)),ve}function X(ae){return ae.kind===312?J(ae):ie(ae)}function ie(ae){return e.factory.createBundle(Vn(ae.sourceFiles,J),ae.prepends)}}var eJe=G({"src/compiler/transformers/module/node.ts"(){md()}});function Fae(e){return Kc(e)||nu(e)||em(e)||sa(e)||UC(e)||PN(e)||x2(e)||Y7(e)||tm(e)||pg(e)||mg(e)||Os(e)||Np(e)||cC(e)||Yb(e)||z0(e)||Lh(e)||Z2(e)||Ac(e)||Hm(e)||Ds(e)||b2(e)}function wme(e){if(UC(e)||PN(e))return n;return pg(e)||tm(e)?c:QN(e);function n(d){const h=i(d);return h!==void 0?{diagnosticMessage:h,errorNode:e,typeName:e.name}:void 0}function i(d){return pd(e)?d.errorModuleName?d.accessibility===2?N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?d.errorModuleName?d.accessibility===2?N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_property_0_of_exported_class_has_or_is_using_private_name_1:d.errorModuleName?N.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Property_0_of_exported_interface_has_or_is_using_private_name_1}function c(d){const h=u(d);return h!==void 0?{diagnosticMessage:h,errorNode:e,typeName:e.name}:void 0}function u(d){return pd(e)?d.errorModuleName?d.accessibility===2?N.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?d.errorModuleName?d.accessibility===2?N.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_method_0_of_exported_class_has_or_is_using_private_name_1:d.errorModuleName?N.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function QN(e){if(Kc(e)||nu(e)||em(e)||Ac(e)||Hm(e)||Ds(e)||sa(e)||Lh(e))return i;return UC(e)||PN(e)?c:x2(e)||Y7(e)||tm(e)||pg(e)||mg(e)||Z2(e)?u:Os(e)?DT(e,e.parent)&&ul(e.parent,2)?i:d:Np(e)?S:cC(e)?E:Yb(e)?P:z0(e)||b2(e)?k:re.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${re.formatSyntaxKind(e.kind)}`);function n(F){if(e.kind===260||e.kind===208)return F.errorModuleName?F.accessibility===2?N.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:N.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ul(e.parent,2))return pd(e)?F.errorModuleName?F.accessibility===2?N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?F.errorModuleName?F.accessibility===2?N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_property_0_of_exported_class_has_or_is_using_private_name_1:F.errorModuleName?N.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(F){const $=n(F);return $!==void 0?{diagnosticMessage:$,errorNode:e,typeName:e.name}:void 0}function c(F){let $;return e.kind===178?pd(e)?$=F.errorModuleName?N.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:$=F.errorModuleName?N.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:pd(e)?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:$,errorNode:e.name,typeName:e.name}}function u(F){let $;switch(e.kind){case 180:$=F.errorModuleName?N.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:$=F.errorModuleName?N.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:$=F.errorModuleName?N.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:pd(e)?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:$=F.errorModuleName?N.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:$=F.errorModuleName?F.accessibility===2?N.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return re.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:$,errorNode:e.name||e}}function d(F){const $=h(F);return $!==void 0?{diagnosticMessage:$,errorNode:e,typeName:e.name}:void 0}function h(F){switch(e.parent.kind){case 176:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return F.errorModuleName?N.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return F.errorModuleName?N.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return F.errorModuleName?N.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return pd(e.parent)?F.errorModuleName?F.accessibility===2?N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?F.errorModuleName?F.accessibility===2?N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:F.errorModuleName?N.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return re.fail(`Unknown parent for parameter: ${re.formatSyntaxKind(e.parent.kind)}`)}}function S(){let F;switch(e.parent.kind){case 263:F=N.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:F=N.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:F=N.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:F=N.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:F=N.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:pd(e.parent)?F=N.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?F=N.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:F=N.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:F=N.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:F=N.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:F=N.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return re.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:F,errorNode:e,typeName:e.name}}function E(){let F;return Ih(e.parent.parent)?F=Qb(e.parent)&&e.parent.token===119?N.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?N.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:N.extends_clause_of_exported_class_has_or_is_using_private_name_0:F=N.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:F,errorNode:e,typeName:i_(e.parent.parent)}}function P(){return{diagnosticMessage:N.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function k(F){return{diagnosticMessage:F.errorModuleName?N.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:N.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:b2(e)?re.checkDefined(e.typeExpression):e.type,typeName:b2(e)?i_(e):e.name}}}var yct=G({"src/compiler/transformers/declarations/diagnostics.ts"(){md()}});function T4e(e,n,i){const c=e.getCompilerOptions();return x$(n,e,he,c,i?[i]:gi(e.getSourceFiles(),qM),[lxe],!1).diagnostics}function S4e(e,n){return n.text.substring(e.pos,e.end).includes("@internal")}function Wae(e,n){const i=__(e);if(i&&i.kind===169){const u=i.parent.parameters.indexOf(i),d=u>0?i.parent.parameters[u-1]:void 0,h=n.text,S=d?Hi(SN(h,Ff(h,d.end+1,!1,!0)),JD(h,e.pos)):SN(h,Ff(h,e.pos,!1,!0));return S&&S.length&&S4e(yl(S),n)}const c=i&&WE(i,n);return!!Ot(c,u=>S4e(u,n))}function lxe(e){const n=()=>re.fail("Diagnostic emitted without context");let i=n,c=!0,u=!1,d=!1,h=!1,S=!1,E,P,k,F,$,J;const{factory:X}=e,ie=e.getEmitHost(),ae={trackSymbol:Et,reportInaccessibleThisError:cn,reportInaccessibleUniqueSymbolError:nn,reportCyclicStructureError:Rn,reportPrivateInBaseOfClassExpression:at,reportLikelyUnsafeImportRequiredError:qt,reportTruncationError:Kt,moduleResolverHost:ie,trackReferencedAmbientModule:Ke,trackExternalModuleSymbolOfImportTypeNode:Yt,reportNonlocalAugmentation:wr,reportNonSerializableProperty:Wr};let ve,we,Fe,et,Pe,dt;const Ie=e.getEmitResolver(),ct=e.getCompilerOptions(),{noResolve:Ct,stripInternal:Lt}=ct;return En;function Ze(Ge){if(Ge){P=P||new Set;for(const Br of Ge)P.add(Br)}}function Ke(Ge,Br){const Ei=Ie.getTypeReferenceDirectivesForSymbol(Br,67108863);if(Nt(Ei))return Ze(Ei);const Ln=ts(Ge);et.set(Nb(Ln),Ln)}function st(Ge){const Br=C7(Ge),Ei=Br&&Ie.tryFindAmbientModule(Br);if(Ei!=null&&Ei.declarations)for(const Ln of Ei.declarations)dh(Ln)&&ts(Ln)!==Fe&&Ke(Ln,Ei)}function It(Ge){if(Ge.accessibility===0){if(Ge&&Ge.aliasesToMakeVisible)if(!k)k=Ge.aliasesToMakeVisible;else for(const Br of Ge.aliasesToMakeVisible)Dy(k,Br)}else{const Br=i(Ge);if(Br)return Br.typeName?e.addDiagnostic(Bs(Ge.errorNode||Br.errorNode,Br.diagnosticMessage,Lv(Br.typeName),Ge.errorSymbolName,Ge.errorModuleName)):e.addDiagnostic(Bs(Ge.errorNode||Br.errorNode,Br.diagnosticMessage,Ge.errorSymbolName,Ge.errorModuleName)),!0}return!1}function Yt(Ge){u||(J||(J=[])).push(Ge)}function Et(Ge,Br,Ei){if(Ge.flags&262144)return!1;const Ln=It(Ie.isSymbolAccessible(Ge,Br,Ei,!0));return Ze(Ie.getTypeReferenceDirectivesForSymbol(Ge,Ei)),Ln}function at(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Ge))}function Qt(){return ve?hm(ve):we&&i_(we)?hm(i_(we)):we&&my(we)?we.isExportEquals?"export=":"default":"(Missing)"}function nn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Qt(),"unique symbol"))}function Rn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Qt()))}function cn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Qt(),"this"))}function qt(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Qt(),Ge))}function Kt(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function wr(Ge,Br,Ei){var Ln;const Sr=(Ln=Br.declarations)==null?void 0:Ln.find(go=>ts(go)===Ge),yi=gi(Ei.declarations,go=>ts(go)!==Ge);if(Sr&&yi)for(const go of yi)e.addDiagnostic(ml(Bs(go,N.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Bs(Sr,N.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Wr(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ge))}function jt(Ge,Br){const Ei=i;i=Sr=>Sr.errorNode&&Fae(Sr.errorNode)?QN(Sr.errorNode)(Sr):{diagnosticMessage:Sr.errorModuleName?N.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:N.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Sr.errorNode||Ge};const Ln=Ie.getDeclarationStatementsForSourceFile(Ge,BW,ae,Br);return i=Ei,Ln}function En(Ge){if(Ge.kind===312&&Ge.isDeclarationFile)return Ge;if(Ge.kind===313){u=!0,et=new Map,Pe=new Map;let Ce=!1;const kt=X.createBundle(Vn(Ge.sourceFiles,ge=>{if(ge.isDeclarationFile)return;if(Ce=Ce||ge.hasNoDefaultLib,Fe=ge,E=ge,k=void 0,$=!1,F=new Map,i=n,h=!1,S=!1,fr(ge,et),Tr(ge,Pe),aE(ge)||Rx(ge)){d=!1,c=!1;const Jn=Gy(ge)?X.createNodeArray(jt(ge,!0)):Wa(ge.statements,Au,dl);return X.updateSourceFile(ge,[X.createModuleDeclaration([X.createModifier(138)],X.createStringLiteral(mG(e.getEmitHost(),ge)),X.createModuleBlock(Tn(X.createNodeArray(na(Jn)),ge.statements)))],!0,[],[],!1,[])}c=!0;const mn=Gy(ge)?X.createNodeArray(jt(ge)):Wa(ge.statements,Au,dl);return X.updateSourceFile(ge,na(mn),!0,[],[],!1,[])}),Qo(Ge.prepends,ge=>{if(ge.kind===315){const mn=mEe(ge,"dts",Lt);return Ce=Ce||!!mn.hasNoDefaultLib,fr(mn,et),Ze(Vn(mn.typeReferenceDirectives,Jn=>[Jn.fileName,Jn.resolutionMode])),Tr(mn,Pe),mn}return ge}));kt.syntheticFileReferences=[],kt.syntheticTypeReferences=Ao(),kt.syntheticLibReferences=go(),kt.hasNoDefaultLib=Ce;const qe=ws($1(A$(Ge,ie,!0).declarationFilePath)),Mt=ze(kt.syntheticFileReferences,qe);return et.forEach(Mt),kt}c=!0,h=!1,S=!1,E=Ge,Fe=Ge,i=n,u=!1,d=!1,$=!1,k=void 0,F=new Map,P=void 0,et=fr(Fe,new Map),Pe=Tr(Fe,new Map);const Br=[],Ei=ws($1(A$(Ge,ie,!0).declarationFilePath)),Ln=ze(Br,Ei);let Sr;if(Gy(Fe))Sr=X.createNodeArray(jt(Ge)),et.forEach(Ln),dt=gi(Sr,W8);else{const Ce=Wa(Ge.statements,Au,dl);Sr=Tn(X.createNodeArray(na(Ce)),Ge.statements),et.forEach(Ln),dt=gi(Sr,W8),Bv(Ge)&&(!d||h&&!S)&&(Sr=Tn(X.createNodeArray([...Sr,Boe(X)]),Sr))}const yi=X.updateSourceFile(Ge,Sr,!0,Br,Ao(),Ge.hasNoDefaultLib,go());return yi.exportedModulesFromDeclarationEmit=J,yi;function go(){return oc(Pe.keys(),Ce=>({fileName:Ce,pos:-1,end:-1}))}function Ao(){return P?Qo(oc(P.keys()),Io):[]}function Io([Ce,kt]){if(dt){for(const qe of dt)if(Yb(qe)&&KE(qe.moduleReference)){const Mt=qe.moduleReference.expression;if(Cm(Mt)&&Mt.text===Ce)return}else if(n0(qe)&&Sd(qe.moduleSpecifier)&&qe.moduleSpecifier.text===Ce)return}return{fileName:Ce,pos:-1,end:-1,...kt?{resolutionMode:kt}:void 0}}function ze(Ce,kt){return qe=>{let Mt;if(qe.isDeclarationFile)Mt=qe.fileName;else{if(u&&ni(Ge.sourceFiles,qe))return;const ge=A$(qe,ie,!0);Mt=ge.declarationFilePath||ge.jsFilePath||qe.fileName}if(Mt){const ge=hae(ct,Fe,gm(kt,ie.getCurrentDirectory(),ie.getCanonicalFileName),gm(Mt,ie.getCurrentDirectory(),ie.getCanonicalFileName),ie);if(!V2(ge)){Ze([[ge,void 0]]);return}let mn=GC(kt,Mt,ie.getCurrentDirectory(),ie.getCanonicalFileName,!1);if(qf(mn,"./")&&r9(mn)&&(mn=mn.substring(2)),qf(mn,"node_modules/")||RW(mn))return;Ce.push({pos:-1,end:-1,fileName:mn})}}}}function fr(Ge,Br){return Ct||!rF(Ge)&&Gy(Ge)||Ot(Ge.referencedFiles,Ei=>{const Ln=ie.getSourceFileFromReference(Ge,Ei);Ln&&Br.set(Nb(Ln),Ln)}),Br}function Tr(Ge,Br){return Ot(Ge.libReferenceDirectives,Ei=>{ie.getLibFileFromReference(Ei)&&Br.set(Q0(Ei.fileName),!0)}),Br}function Vr(Ge){if(Ge.kind===80)return Ge;return Ge.kind===207?X.updateArrayBindingPattern(Ge,Wa(Ge.elements,Br,Uu)):X.updateObjectBindingPattern(Ge,Wa(Ge.elements,Br,sa));function Br(Ei){return Ei.kind===232?Ei:(Ei.propertyName&&Qf(Ei.propertyName)&&Tg(Ei.propertyName.expression)&&Jc(Ei.propertyName.expression,E),Ei.propertyName&&xn(Ei.propertyName)&&xn(Ei.name)&&!Ei.symbol.isReferenced&&!hH(Ei.propertyName)?X.updateBindingElement(Ei,Ei.dotDotDotToken,void 0,Ei.propertyName,Fr(Ei)?Ei.initializer:void 0):X.updateBindingElement(Ei,Ei.dotDotDotToken,Ei.propertyName,Vr(Ei.name),Fr(Ei)?Ei.initializer:void 0))}}function Pn(Ge,Br,Ei){let Ln;$||(Ln=i,i=QN(Ge));const Sr=X.updateParameterDeclaration(Ge,bct(X,Ge,Br),Ge.dotDotDotToken,Vr(Ge.name),Ie.isOptionalParameter(Ge)?Ge.questionToken||X.createToken(58):void 0,io(Ge,Ei||Ge.type,!0),Ki(Ge));return $||(i=Ln),Sr}function Fr(Ge){return Tct(Ge)&&Ie.isLiteralConstDeclaration(__(Ge))}function Ki(Ge){if(Fr(Ge))return Ie.createLiteralConstValue(__(Ge),ae)}function io(Ge,Br,Ei){if(!Ei&&tT(Ge,2)||Fr(Ge))return;const Ln=Ge.kind===169&&(Ie.isRequiredInitializedParameter(Ge)||Ie.isOptionalUninitializedParameterProperty(Ge));if(Br&&!Ln)return Bn(Br,_a,pc);if(!__(Ge))return Br?Bn(Br,_a,pc):X.createKeywordTypeNode(133);if(Ge.kind===178)return X.createKeywordTypeNode(133);ve=Ge.name;let Sr;if($||(Sr=i,i=QN(Ge)),Ge.kind===260||Ge.kind===208)return yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae));if(Ge.kind===169||Ge.kind===172||Ge.kind===171)return em(Ge)||!Ge.initializer?yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae,Ln)):yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae,Ln)||Ie.createTypeOfExpression(Ge.initializer,E,BW,ae));return yi(Ie.createReturnTypeOfSignatureDeclaration(Ge,E,BW,ae));function yi(go){return ve=void 0,$||(i=Sr),go||X.createKeywordTypeNode(133)}}function no(Ge){switch(Ge=__(Ge),Ge.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!Ie.isDeclarationVisible(Ge);case 260:return!Mo(Ge);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function os(Ge){var Br;if(Ge.body)return!0;const Ei=(Br=Ge.symbol.declarations)==null?void 0:Br.filter(Ln=>mg(Ln)&&!Ln.body);return!Ei||Ei.indexOf(Ge)===Ei.length-1}function Mo(Ge){return cb(Ge)?!1:$_(Ge.name)?gt(Ge.name.elements,Mo):Ie.isDeclarationVisible(Ge)}function $i(Ge,Br,Ei){if(tT(Ge,2))return X.createNodeArray();const Ln=Vn(Br,Sr=>Pn(Sr,Ei));return Ln?X.createNodeArray(Ln,Br.hasTrailingComma):X.createNodeArray()}function ki(Ge,Br){let Ei;if(!Br){const Ln=BN(Ge);Ln&&(Ei=[Pn(Ln)])}if(Xb(Ge)){let Ln;if(!Br){const Sr=AH(Ge);if(Sr){const yi=Wn(Ge,Ie.getAllAccessorDeclarations(Ge));Ln=Pn(Sr,void 0,yi)}}Ln||(Ln=X.createParameterDeclaration(void 0,void 0,"value")),Ei=ur(Ei,Ln)}return X.createNodeArray(Ei||Yn)}function gc(Ge,Br){return tT(Ge,2)?void 0:Wa(Br,_a,Np)}function Wl(Ge){return Nu(Ge)||z0(Ge)||py(Ge)||Ih(Ge)||xp(Ge)||F_(Ge)||Z2(Ge)||LJ(Ge)}function Jc(Ge,Br){const Ei=Ie.isEntityNameVisible(Ge,Br);It(Ei),Ze(Ie.getTypeReferenceDirectivesForEntityName(Ge))}function au(Ge,Br){return NT(Ge)&&NT(Br)&&(Ge.jsDoc=Br.jsDoc),dy(Ge,MS(Br))}function qn(Ge,Br){if(Br){if(d=d||Ge.kind!==267&&Ge.kind!==205,Cm(Br))if(u){const Ei=Rde(e.getEmitHost(),Ie,Ge);if(Ei)return X.createStringLiteral(Ei)}else{const Ei=Ie.getSymbolOfExternalModuleSpecifier(Br);Ei&&(J||(J=[])).push(Ei)}return Br}}function za(Ge){if(Ie.isDeclarationVisible(Ge))if(Ge.moduleReference.kind===283){const Br=oG(Ge);return X.updateImportEqualsDeclaration(Ge,Ge.modifiers,Ge.isTypeOnly,Ge.name,X.updateExternalModuleReference(Ge.moduleReference,qn(Ge,Br)))}else{const Br=i;return i=QN(Ge),Jc(Ge.moduleReference,E),i=Br,Ge}}function Ia(Ge){if(!Ge.importClause)return X.updateImportDeclaration(Ge,Ge.modifiers,Ge.importClause,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));const Br=Ge.importClause&&Ge.importClause.name&&Ie.isDeclarationVisible(Ge.importClause)?Ge.importClause.name:void 0;if(!Ge.importClause.namedBindings)return Br&&X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,void 0),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));if(Ge.importClause.namedBindings.kind===274){const Ln=Ie.isDeclarationVisible(Ge.importClause.namedBindings)?Ge.importClause.namedBindings:void 0;return Br||Ln?X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,Ln),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes)):void 0}const Ei=Qo(Ge.importClause.namedBindings.elements,Ln=>Ie.isDeclarationVisible(Ln)?Ln:void 0);if(Ei&&Ei.length||Br)return X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,Ei&&Ei.length?X.updateNamedImports(Ge.importClause.namedBindings,Ei):void 0),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));if(Ie.isImportRequiredByAugmentation(Ge))return X.updateImportDeclaration(Ge,Ge.modifiers,void 0,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes))}function zi(Ge){const Br=W3(Ge);return Ge&&Br!==void 0?Ge:void 0}function na(Ge){for(;Nt(k);){const Ei=k.shift();if(!B8(Ei))return re.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${re.formatSyntaxKind(Ei.kind)}`);const Ln=c;c=Ei.parent&&Nu(Ei.parent)&&!(Bv(Ei.parent)&&u);const Sr=yf(Ei);c=Ln,F.set(Nb(Ei),Sr)}return Wa(Ge,Br,dl);function Br(Ei){if(B8(Ei)){const Ln=Nb(Ei);if(F.has(Ln)){const Sr=F.get(Ln);return F.delete(Ln),Sr&&((ls(Sr)?gt(Sr,kN):kN(Sr))&&(h=!0),Nu(Ei.parent)&&(ls(Sr)?gt(Sr,XX):XX(Sr))&&(d=!0)),Sr}}return Ei}}function _a(Ge){if(dr(Ge)||PT(Ge)&&(no(Ge)||tI(Ge)&&!Ie.isLateBound(__(Ge)))||F_(Ge)&&Ie.isImplementationOfOverload(Ge)||spe(Ge))return;let Br;Wl(Ge)&&(Br=E,E=Ge);const Ei=i,Ln=Fae(Ge),Sr=$;let yi=(Ge.kind===187||Ge.kind===200)&&Ge.parent.kind!==265;if((tm(Ge)||pg(Ge))&&tT(Ge,2))return Ge.symbol&&Ge.symbol.declarations&&Ge.symbol.declarations[0]!==Ge?void 0:go(X.createPropertyDeclaration(Bt(Ge),Ge.name,void 0,void 0,void 0));if(Ln&&!$&&(i=QN(Ge)),m6(Ge)&&Jc(Ge.exprName,E),yi&&($=!0),Sct(Ge))switch(Ge.kind){case 233:{(kT(Ge.expression)||Tg(Ge.expression))&&Jc(Ge.expression,E);const Ao=Xo(Ge,_a,e);return go(X.updateExpressionWithTypeArguments(Ao,Ao.expression,Ao.typeArguments))}case 183:{Jc(Ge.typeName,E);const Ao=Xo(Ge,_a,e);return go(X.updateTypeReferenceNode(Ao,Ao.typeName,Ao.typeArguments))}case 180:return go(X.updateConstructSignature(Ge,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 176:{const Ao=X.createConstructorDeclaration(Bt(Ge),$i(Ge,Ge.parameters,0),void 0);return go(Ao)}case 174:{if(Lu(Ge.name))return go(void 0);const Ao=X.createMethodDeclaration(Bt(Ge),void 0,Ge.name,Ge.questionToken,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type),void 0);return go(Ao)}case 177:{if(Lu(Ge.name))return go(void 0);const Ao=Wn(Ge,Ie.getAllAccessorDeclarations(Ge));return go(X.updateGetAccessorDeclaration(Ge,Bt(Ge),Ge.name,ki(Ge,tT(Ge,2)),io(Ge,Ao),void 0))}case 178:return Lu(Ge.name)?go(void 0):go(X.updateSetAccessorDeclaration(Ge,Bt(Ge),Ge.name,ki(Ge,tT(Ge,2)),void 0));case 172:return Lu(Ge.name)?go(void 0):go(X.updatePropertyDeclaration(Ge,Bt(Ge),Ge.name,Ge.questionToken,io(Ge,Ge.type),Ki(Ge)));case 171:return Lu(Ge.name)?go(void 0):go(X.updatePropertySignature(Ge,Bt(Ge),Ge.name,Ge.questionToken,io(Ge,Ge.type)));case 173:return Lu(Ge.name)?go(void 0):go(X.updateMethodSignature(Ge,Bt(Ge),Ge.name,Ge.questionToken,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 179:return go(X.updateCallSignature(Ge,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 181:return go(X.updateIndexSignature(Ge,Bt(Ge),$i(Ge,Ge.parameters),Bn(Ge.type,_a,pc)||X.createKeywordTypeNode(133)));case 260:return $_(Ge.name)?Eu(Ge.name):(yi=!0,$=!0,go(X.updateVariableDeclaration(Ge,Ge.name,void 0,io(Ge,Ge.type),Ki(Ge))));case 168:return us(Ge)&&(Ge.default||Ge.constraint)?go(X.updateTypeParameterDeclaration(Ge,Ge.modifiers,Ge.name,void 0,void 0)):go(Xo(Ge,_a,e));case 194:{const Ao=Bn(Ge.checkType,_a,pc),Io=Bn(Ge.extendsType,_a,pc),ze=E;E=Ge.trueType;const Ce=Bn(Ge.trueType,_a,pc);E=ze;const kt=Bn(Ge.falseType,_a,pc);return re.assert(Ao),re.assert(Io),re.assert(Ce),re.assert(kt),go(X.updateConditionalTypeNode(Ge,Ao,Io,Ce,kt))}case 184:return go(X.updateFunctionTypeNode(Ge,Wa(Ge.typeParameters,_a,Np),$i(Ge,Ge.parameters),re.checkDefined(Bn(Ge.type,_a,pc))));case 185:return go(X.updateConstructorTypeNode(Ge,Bt(Ge),Wa(Ge.typeParameters,_a,Np),$i(Ge,Ge.parameters),re.checkDefined(Bn(Ge.type,_a,pc))));case 205:return MN(Ge)?(st(Ge),go(X.updateImportTypeNode(Ge,X.updateLiteralTypeNode(Ge.argument,qn(Ge,Ge.argument.literal)),Ge.attributes,Ge.qualifier,Wa(Ge.typeArguments,_a,pc),Ge.isTypeOf))):go(Ge);default:re.assertNever(Ge,`Attempted to process unhandled node kind: ${re.formatSyntaxKind(Ge.kind)}`)}return gW(Ge)&&xm(Fe,Ge.pos).line===xm(Fe,Ge.end).line&&_s(Ge,1),go(Xo(Ge,_a,e));function go(Ao){return Ao&&Ln&&tI(Ge)&&Hn(Ge),Wl(Ge)&&(E=Br),Ln&&!$&&(i=Ei),yi&&($=Sr),Ao===Ge?Ao:Ao&&Ls(au(Ao,Ge),Ge)}}function us(Ge){return Ge.parent.kind===174&&tT(Ge.parent,2)}function Au(Ge){if(!x4e(Ge)||dr(Ge))return;switch(Ge.kind){case 278:return Nu(Ge.parent)&&(d=!0),S=!0,st(Ge),X.updateExportDeclaration(Ge,Ge.modifiers,Ge.isTypeOnly,Ge.exportClause,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));case 277:{if(Nu(Ge.parent)&&(d=!0),S=!0,Ge.expression.kind===80)return Ge;{const Ei=X.createUniqueName("_default",16);i=()=>({diagnosticMessage:N.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ge}),we=Ge;const Ln=X.createVariableDeclaration(Ei,void 0,Ie.createTypeOfExpression(Ge.expression,Ge,BW,ae),void 0);we=void 0;const Sr=X.createVariableStatement(c?[X.createModifier(138)]:[],X.createVariableDeclarationList([Ln],2));return au(Sr,Ge),aW(Ge),[Sr,X.updateExportAssignment(Ge,Ge.modifiers,Ei)]}}}const Br=yf(Ge);return F.set(Nb(Ge),Br),Ge}function Qu(Ge){if(Yb(Ge)||tT(Ge,2048)||!DA(Ge))return Ge;const Br=X.createModifiersFromModifierFlags(Cb(Ge)&131039);return X.replaceModifiers(Ge,Br)}function Cu(Ge,Br,Ei,Ln){const Sr=X.updateModuleDeclaration(Ge,Br,Ei,Ln);if(dh(Sr)||Sr.flags&32)return Sr;const yi=X.createModuleDeclaration(Sr.modifiers,Sr.name,Sr.body,Sr.flags|32);return Ls(yi,Sr),Tn(yi,Sr),yi}function yf(Ge){if(k)for(;AL(k,Ge););if(dr(Ge))return;switch(Ge.kind){case 271:{const go=za(Ge);return go&&st(Ge),go}case 272:{const go=Ia(Ge);return go&&st(Ge),go}}if(PT(Ge)&&no(Ge)||F_(Ge)&&Ie.isImplementationOfOverload(Ge))return;let Br;Wl(Ge)&&(Br=E,E=Ge);const Ei=Fae(Ge),Ln=i;Ei&&(i=QN(Ge));const Sr=c;switch(Ge.kind){case 265:{c=!1;const go=yi(X.updateTypeAliasDeclaration(Ge,Bt(Ge),Ge.name,Wa(Ge.typeParameters,_a,Np),re.checkDefined(Bn(Ge.type,_a,pc))));return c=Sr,go}case 264:return yi(X.updateInterfaceDeclaration(Ge,Bt(Ge),Ge.name,gc(Ge,Ge.typeParameters),$r(Ge.heritageClauses),Wa(Ge.members,_a,rb)));case 262:{const go=yi(X.updateFunctionDeclaration(Ge,Bt(Ge),void 0,Ge.name,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type),void 0));if(go&&Ie.isExpandoFunctionDeclaration(Ge)&&os(Ge)){const Ao=Ie.getPropertiesOfContainerFunction(Ge),Io=Ck.createModuleDeclaration(void 0,go.name||X.createIdentifier("_default"),X.createModuleBlock([]),32);kl(Io,E),Io.locals=zd(Ao),Io.symbol=Ao[0].parent;const ze=[];let Ce=Qo(Ao,Jn=>{if(!eJ(Jn.valueDeclaration))return;const Nn=Ic(Jn.escapedName);if(!H2(Nn,99))return;i=QN(Jn.valueDeclaration);const Lr=Ie.createTypeOfDeclaration(Jn.valueDeclaration,Io,BW,ae);i=Ln;const qi=w7(Nn),vo=qi?X.getGeneratedNameForNode(Jn.valueDeclaration):X.createIdentifier(Nn);qi&&ze.push([vo,Nn]);const Ro=X.createVariableDeclaration(vo,void 0,Lr,void 0);return X.createVariableStatement(qi?void 0:[X.createToken(95)],X.createVariableDeclarationList([Ro]))});ze.length?Ce.push(X.createExportDeclaration(void 0,!1,X.createNamedExports(Vn(ze,([Jn,Nn])=>X.createExportSpecifier(!1,Jn,Nn))))):Ce=Qo(Ce,Jn=>X.replaceModifiers(Jn,0));const kt=X.createModuleDeclaration(Bt(Ge),Ge.name,X.createModuleBlock(Ce),32);if(!tT(go,2048))return[go,kt];const qe=X.createModifiersFromModifierFlags(Cb(go)&-2081|128),Mt=X.updateFunctionDeclaration(go,qe,void 0,go.name,go.typeParameters,go.parameters,go.type,void 0),ge=X.updateModuleDeclaration(kt,qe,kt.name,kt.body),mn=X.createExportAssignment(void 0,!1,kt.name);return Nu(Ge.parent)&&(d=!0),S=!0,[Mt,ge,mn]}else return go}case 267:{c=!1;const go=Ge.body;if(go&&go.kind===268){const Ao=h,Io=S;S=!1,h=!1;const ze=Wa(go.statements,Au,dl);let Ce=na(ze);Ge.flags&33554432&&(h=!1),!JC(Ge)&&!Pr(Ce)&&!S&&(h?Ce=X.createNodeArray([...Ce,Boe(X)]):Ce=Wa(Ce,Qu,dl));const kt=X.updateModuleBlock(go,Ce);c=Sr,h=Ao,S=Io;const qe=Bt(Ge);return yi(Cu(Ge,qe,Ov(Ge)?qn(Ge,Ge.name):Ge.name,kt))}else{c=Sr;const Ao=Bt(Ge);c=!1,Bn(go,Au);const Io=Nb(go),ze=F.get(Io);return F.delete(Io),yi(Cu(Ge,Ao,Ge.name,ze))}}case 263:{ve=Ge.name,we=Ge;const go=X.createNodeArray(Bt(Ge)),Ao=gc(Ge,Ge.typeParameters),Io=sC(Ge);let ze;if(Io){const mn=i;ze=uN(ea(Io.parameters,Jn=>{if(!ul(Jn,31)||dr(Jn))return;if(i=QN(Jn),Jn.name.kind===80)return au(X.createPropertyDeclaration(Bt(Jn),Jn.name,Jn.questionToken,io(Jn,Jn.type),Ki(Jn)),Jn);return Nn(Jn.name);function Nn(Lr){let qi;for(const vo of Lr.elements)cb(vo)||($_(vo.name)&&(qi=Hi(qi,Nn(vo.name))),qi=qi||[],qi.push(X.createPropertyDeclaration(Bt(Jn),vo.name,void 0,io(vo,void 0),void 0)));return qi}})),i=mn}const kt=gt(Ge.members,mn=>!!mn.name&&Lu(mn.name))?[X.createPropertyDeclaration(void 0,X.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,qe=Hi(Hi(kt,ze),Wa(Ge.members,_a,J_)),Mt=X.createNodeArray(qe),ge=YC(Ge);if(ge&&!Tg(ge.expression)&&ge.expression.kind!==106){const mn=Ge.name?Ic(Ge.name.escapedText):"default",Jn=X.createUniqueName(`${mn}_base`,16);i=()=>({diagnosticMessage:N.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ge,typeName:Ge.name});const Nn=X.createVariableDeclaration(Jn,void 0,Ie.createTypeOfExpression(ge.expression,Ge,BW,ae),void 0),Lr=X.createVariableStatement(c?[X.createModifier(138)]:[],X.createVariableDeclarationList([Nn],2)),qi=X.createNodeArray(Vn(Ge.heritageClauses,vo=>{if(vo.token===96){const Ro=i;i=QN(vo.types[0]);const Ts=X.updateHeritageClause(vo,Vn(vo.types,Cc=>X.updateExpressionWithTypeArguments(Cc,Jn,Wa(Cc.typeArguments,_a,pc))));return i=Ro,Ts}return X.updateHeritageClause(vo,Wa(X.createNodeArray(gi(vo.types,Ro=>Tg(Ro.expression)||Ro.expression.kind===106)),_a,cC))}));return[Lr,yi(X.updateClassDeclaration(Ge,go,Ge.name,Ao,qi,Mt))]}else{const mn=$r(Ge.heritageClauses);return yi(X.updateClassDeclaration(Ge,go,Ge.name,Ao,mn,Mt))}}case 243:return yi(w_(Ge));case 266:return yi(X.updateEnumDeclaration(Ge,X.createNodeArray(Bt(Ge)),Ge.name,X.createNodeArray(Qo(Ge.members,go=>{if(dr(go))return;const Ao=Ie.getConstantValue(go);return au(X.updateEnumMember(go,go.name,Ao!==void 0?typeof Ao=="string"?X.createStringLiteral(Ao):X.createNumericLiteral(Ao):void 0),go)}))))}return re.assertNever(Ge,`Unhandled top-level node in declaration emit: ${re.formatSyntaxKind(Ge.kind)}`);function yi(go){return Wl(Ge)&&(E=Br),Ei&&(i=Ln),Ge.kind===267&&(c=Sr),go===Ge?go:(we=void 0,ve=void 0,go&&Ls(au(go,Ge),Ge))}}function w_(Ge){if(!Ot(Ge.declarationList.declarations,Mo))return;const Br=Wa(Ge.declarationList.declarations,_a,Kc);if(!Nt(Br))return;const Ei=X.createNodeArray(Bt(Ge));let Ln;return aY(Ge.declarationList)||nC(Ge.declarationList)?(Ln=X.createVariableDeclarationList(Br,2),Ls(Ln,Ge.declarationList),Tn(Ln,Ge.declarationList),dy(Ln,Ge.declarationList)):Ln=X.updateVariableDeclarationList(Ge.declarationList,Br),X.updateVariableStatement(Ge,Ei,Ln)}function Eu(Ge){return Gf(Qo(Ge.elements,Br=>He(Br)))}function He(Ge){if(Ge.kind!==232&&Ge.name)return Mo(Ge)?$_(Ge.name)?Eu(Ge.name):X.createVariableDeclaration(Ge.name,void 0,io(Ge,void 0),void 0):void 0}function Hn(Ge){let Br;$||(Br=i,i=wme(Ge)),ve=Ge.name,re.assert(Ie.isLateBound(__(Ge)));const Ln=Ge.name.expression;Jc(Ln,E),$||(i=Br),ve=void 0}function dr(Ge){return!!Lt&&!!Ge&&Wae(Ge,Fe)}function Mr(Ge){return my(Ge)||ry(Ge)}function Pr(Ge){return gt(Ge,Mr)}function Bt(Ge){const Br=Cb(Ge),Ei=ln(Ge);return Br===Ei?Iae(Ge.modifiers,Ln=>to(Ln,Mf),Mf):X.createModifiersFromModifierFlags(Ei)}function ln(Ge){let Br=130030,Ei=c&&!vct(Ge)?128:0;const Ln=Ge.parent.kind===312;return(!Ln||u&&Ln&&Bv(Ge.parent))&&(Br^=128,Ei=0),mF(Ge,Br,Ei)}function Wn(Ge,Br){let Ei=E4e(Ge);return!Ei&&Ge!==Br.firstAccessor&&(Ei=E4e(Br.firstAccessor),i=QN(Br.firstAccessor)),!Ei&&Br.secondAccessor&&Ge!==Br.secondAccessor&&(Ei=E4e(Br.secondAccessor),i=QN(Br.secondAccessor)),Ei}function $r(Ge){return X.createNodeArray(gi(Vn(Ge,Br=>X.updateHeritageClause(Br,Wa(X.createNodeArray(gi(Br.types,Ei=>Tg(Ei.expression)||Br.token===96&&Ei.expression.kind===106)),_a,cC))),Br=>Br.types&&!!Br.types.length))}}function vct(e){return e.kind===264}function bct(e,n,i,c){return e.createModifiersFromModifierFlags(mF(n,i,c))}function mF(e,n=131070,i=0){let c=Cb(e)&n|i;return c&2048&&!(c&32)&&(c^=32),c&2048&&c&128&&(c^=128),c}function E4e(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function Tct(e){switch(e.kind){case 172:case 171:return!tT(e,2);case 169:case 260:return!0}return!1}function x4e(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function Sct(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var BW,Ect=G({"src/compiler/transformers/declarations.ts"(){md(),B2e(),BW=531469}});function tJe(e){switch(e){case 99:case 7:case 6:case 5:return Nme;case 4:return v4e;case 100:case 199:return b4e;default:return Oae}}function Rme(e,n,i){return{scriptTransformers:xct(e,n,i),declarationTransformers:Bae(n)}}function xct(e,n,i){if(i)return Yn;const c=iu(e),u=Zp(e),d=X9(e),h=[];return Oi(h,n&&Vn(n.before,uxe)),h.push(u4e),e.experimentalDecorators&&h.push(Lae),VH(e)&&h.push(ixe),c<99&&h.push(Ime),!e.experimentalDecorators&&(c<99||!d)&&h.push(Z2e),h.push(f4e),c<8&&h.push(Dme),c<7&&h.push(txe),c<6&&h.push(p4e),c<5&&h.push(d4e),c<4&&h.push(exe),c<3&&h.push(oxe),c<2&&(h.push(axe),h.push(sxe)),h.push(tJe(u)),c<1&&h.push(Pme),Oi(h,n&&Vn(n.after,uxe)),h}function Bae(e){const n=[];return n.push(lxe),Oi(n,e&&Vn(e.afterDeclarations,I6)),n}function Mme(e){return n=>fpe(n)?e.transformBundle(n):e.transformSourceFile(n)}function zae(e,n){return i=>{const c=e(i);return typeof c=="function"?n(i,c):Mme(c)}}function uxe(e){return zae(e,_C)}function I6(e){return zae(e,(n,i)=>i)}function WQ(e,n){return n}function BQ(e,n,i){i(e,n)}function x$(e,n,i,c,u,d,h){var S,E;const P=new Array(363);let k,F,$,J=0,X=[],ie=[],ae=[],ve=[],we=0,Fe=!1,et=[],Pe=0,dt,Ie,ct=WQ,Ct=BQ,Lt=0;const Ze=[],Ke={factory:i,getCompilerOptions:()=>c,getEmitResolver:()=>e,getEmitHost:()=>n,getEmitHelperFactory:Pd(()=>ipe(Ke)),startLexicalEnvironment:jt,suspendLexicalEnvironment:En,resumeLexicalEnvironment:fr,endLexicalEnvironment:Tr,setLexicalEnvironmentFlags:Vr,getLexicalEnvironmentFlags:Pn,hoistVariableDeclaration:Kt,hoistFunctionDeclaration:wr,addInitializationStatement:Wr,startBlockScope:Fr,endBlockScope:Ki,addBlockScopedVariable:io,requestEmitHelper:no,readEmitHelpers:os,enableSubstitution:at,enableEmitNotification:Rn,isSubstitutionEnabled:Qt,isEmitNotificationEnabled:cn,get onSubstituteNode(){return ct},set onSubstituteNode($i){re.assert(Lt<1,"Cannot modify transformation hooks after initialization has completed."),re.assert($i!==void 0,"Value must not be 'undefined'"),ct=$i},get onEmitNode(){return Ct},set onEmitNode($i){re.assert(Lt<1,"Cannot modify transformation hooks after initialization has completed."),re.assert($i!==void 0,"Value must not be 'undefined'"),Ct=$i},addDiagnostic($i){Ze.push($i)}};for(const $i of u)cI(ts(__($i)));cf("beforeTransform");const st=d.map($i=>$i(Ke)),It=$i=>{for(const ki of st)$i=ki($i);return $i};Lt=1;const Yt=[];for(const $i of u)(S=ps)==null||S.push(ps.Phase.Emit,"transformNodes",$i.kind===312?{path:$i.path}:{kind:$i.kind,pos:$i.pos,end:$i.end}),Yt.push((h?It:Et)($i)),(E=ps)==null||E.pop();return Lt=2,cf("afterTransform"),Tb("transformTime","beforeTransform","afterTransform"),{transformed:Yt,substituteNode:nn,emitNodeWithNotification:qt,isEmitNotificationEnabled:cn,dispose:Mo,diagnostics:Ze};function Et($i){return $i&&(!Nu($i)||!$i.isDeclarationFile)?It($i):$i}function at($i){re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),P[$i]|=1}function Qt($i){return(P[$i.kind]&1)!==0&&(wd($i)&8)===0}function nn($i,ki){return re.assert(Lt<3,"Cannot substitute a node after the result is disposed."),ki&&Qt(ki)&&ct($i,ki)||ki}function Rn($i){re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),P[$i]|=2}function cn($i){return(P[$i.kind]&2)!==0||(wd($i)&4)!==0}function qt($i,ki,gc){re.assert(Lt<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ki&&(cn(ki)?Ct($i,ki,gc):gc($i,ki))}function Kt($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed.");const ki=_s(i.createVariableDeclaration($i),128);k?k.push(ki):k=[ki],J&1&&(J|=2)}function wr($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),_s($i,2097152),F?F.push($i):F=[$i]}function Wr($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),_s($i,2097152),$?$.push($i):$=[$i]}function jt(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is suspended."),X[we]=k,ie[we]=F,ae[we]=$,ve[we]=J,we++,k=void 0,F=void 0,$=void 0,J=0}function En(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is already suspended."),Fe=!0}function fr(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(Fe,"Lexical environment is not suspended."),Fe=!1}function Tr(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is suspended.");let $i;if(k||F||$){if(F&&($i=[...F]),k){const ki=i.createVariableStatement(void 0,i.createVariableDeclarationList(k));_s(ki,2097152),$i?$i.push(ki):$i=[ki]}$&&($i?$i=[...$i,...$]:$i=[...$])}return we--,k=X[we],F=ie[we],$=ae[we],J=ve[we],we===0&&(X=[],ie=[],ae=[],ve=[]),$i}function Vr($i,ki){J=ki?J|$i:J&~$i}function Pn(){return J}function Fr(){re.assert(Lt>0,"Cannot start a block scope during initialization."),re.assert(Lt<2,"Cannot start a block scope after transformation has completed."),et[Pe]=dt,Pe++,dt=void 0}function Ki(){re.assert(Lt>0,"Cannot end a block scope during initialization."),re.assert(Lt<2,"Cannot end a block scope after transformation has completed.");const $i=gt(dt)?[i.createVariableStatement(void 0,i.createVariableDeclarationList(dt.map(ki=>i.createVariableDeclaration(ki)),1))]:void 0;return Pe--,dt=et[Pe],Pe===0&&(et=[]),$i}function io($i){re.assert(Pe>0,"Cannot add a block scoped variable outside of an iteration body."),(dt||(dt=[])).push($i)}function no($i){if(re.assert(Lt>0,"Cannot modify the transformation context during initialization."),re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),re.assert(!$i.scoped,"Cannot request a scoped emit helper."),$i.dependencies)for(const ki of $i.dependencies)no(ki);Ie=ur(Ie,$i)}function os(){re.assert(Lt>0,"Cannot modify the transformation context during initialization."),re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed.");const $i=Ie;return Ie=void 0,$i}function Mo(){if(Lt<3){for(const $i of u)cI(ts(__($i)));k=void 0,X=void 0,F=void 0,ie=void 0,ct=void 0,Ct=void 0,Ie=void 0,Lt=3}}}var ZN,sx,Gae=G({"src/compiler/transformer.ts"(){md(),iP(),ZN={scriptTransformers:Yn,declarationTransformers:Yn},sx={factory:he,getCompilerOptions:()=>({}),getEmitResolver:Na,getEmitHost:Na,getEmitHelperFactory:Na,startLexicalEnvironment:ku,resumeLexicalEnvironment:ku,suspendLexicalEnvironment:ku,endLexicalEnvironment:eE,setLexicalEnvironmentFlags:ku,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ku,hoistFunctionDeclaration:ku,addInitializationStatement:ku,startBlockScope:ku,endBlockScope:eE,addBlockScopedVariable:ku,requestEmitHelper:ku,readEmitHelpers:Na,enableSubstitution:ku,enableEmitNotification:ku,isSubstitutionEnabled:Na,isEmitNotificationEnabled:Na,onSubstituteNode:WQ,onEmitNode:BQ,addDiagnostic:ku}}});function fxe(e){return mm(e,".tsbuildinfo")}function zQ(e,n,i,c=!1,u,d){const h=ls(i)?i:Oie(e,i,c),S=e.getCompilerOptions();if(Ng(S)){const E=e.getPrependNodes();if(h.length||E.length){const P=he.createBundle(h,E),k=n(A$(P,e,c),P);if(k)return k}}else{if(!u)for(const E of h){const P=n(A$(E,e,c),E);if(P)return P}if(d){const E=PR(S);if(E)return n({buildInfoPath:E},void 0)}}}function PR(e){const n=e.configFilePath;if(!K9(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const i=Ng(e);let c;if(i)c=wg(i);else{if(!n)return;const u=wg(n);c=e.outDir?e.rootDir?NL(e.outDir,sP(e.rootDir,u,!0)):vl(e.outDir,Jg(u)):u}return c+".tsbuildinfo"}function O3(e,n){const i=Ng(e),c=e.emitDeclarationOnly?void 0:i,u=c&&A4e(c,e),d=n||gv(e)?wg(i)+".d.ts":void 0,h=d&&zH(e)?d+".map":void 0,S=PR(e);return{jsFilePath:c,sourceMapFilePath:u,declarationFilePath:d,declarationMapPath:h,buildInfoPath:S}}function A$(e,n,i){const c=n.getCompilerOptions();if(e.kind===313)return O3(c,i);{const u=hR(e.fileName,n,jae(e.fileName,c)),d=Rx(e),h=d&&Rv(e.fileName,u,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0,S=c.emitDeclarationOnly||h?void 0:u,E=!S||Rx(e)?void 0:A4e(S,c),P=i||gv(c)&&!d?Rie(e.fileName,n):void 0,k=P&&zH(c)?P+".map":void 0;return{jsFilePath:S,sourceMapFilePath:E,declarationFilePath:P,declarationMapPath:k,buildInfoPath:void 0}}}function A4e(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function jae(e,n){return mm(e,".json")?".json":n.jsx===1&&pv(e,[".jsx",".tsx"])?".jsx":pv(e,[".mts",".mjs"])?".mjs":pv(e,[".cts",".cjs"])?".cjs":".js"}function C4e(e,n,i,c,u){return c?NL(c,sP(u?u():hF(n,i),e,i)):e}function gF(e,n,i,c){return SA(C4e(e,n,i,n.options.declarationDir||n.options.outDir,c),TY(e))}function GQ(e,n,i,c){if(n.options.emitDeclarationOnly)return;const u=mm(e,".json"),d=SA(C4e(e,n,i,n.options.outDir,c),jae(e,n.options));return!u||Rv(e,d,re.checkDefined(n.options.configFilePath),i)!==0?d:void 0}function Lme(){let e;return{addOutput:n,getOutputs:i};function n(c){c&&(e||(e=[])).push(c)}function i(){return e||Yn}}function nJe(e,n){const{jsFilePath:i,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:d,buildInfoPath:h}=O3(e.options,!1);n(i),n(c),n(u),n(d),n(h)}function _xe(e,n,i,c,u){if(Zb(n))return;const d=GQ(n,e,i,u);if(c(d),!mm(n,".json")&&(d&&e.options.sourceMap&&c(`${d}.map`),gv(e.options))){const h=gF(n,e,i,u);c(h),e.options.declarationMap&&c(`${h}.map`)}}function zW(e,n,i,c,u){let d;return e.rootDir?(d=vf(e.rootDir,i),u==null||u(e.rootDir)):e.composite&&e.configFilePath?(d=ws($1(e.configFilePath)),u==null||u(d)):d=JQ(n(),i,c),d&&d[d.length-1]!==qp&&(d+=qp),d}function hF({options:e,fileNames:n},i){return zW(e,()=>gi(n,c=>!(e.noEmitForJsFiles&&pv(c,h3))&&!Zb(c)),ws($1(re.checkDefined(e.configFilePath))),H1(!i))}function Vae(e,n){const{addOutput:i,getOutputs:c}=Lme();if(Ng(e.options))nJe(e,i);else{const u=Pd(()=>hF(e,n));for(const d of e.fileNames)_xe(e,d,n,i,u);i(PR(e.options))}return c()}function Ome(e,n,i){n=hf(n),re.assert(ni(e.fileNames,n),"Expected fileName to be present in command line");const{addOutput:c,getOutputs:u}=Lme();return Ng(e.options)?nJe(e,c):_xe(e,n,i,c),u()}function dxe(e,n){if(Ng(e.options)){const{jsFilePath:u,declarationFilePath:d}=O3(e.options,!1);return re.checkDefined(u||d,`project ${e.options.configFilePath} expected to have at least one output`)}const i=Pd(()=>hF(e,n));for(const u of e.fileNames){if(Zb(u))continue;const d=GQ(u,e,n,i);if(d)return d;if(!mm(u,".json")&&gv(e.options))return gF(u,e,n,i)}const c=PR(e.options);return c||re.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Uae(e,n,i,{scriptTransformers:c,declarationTransformers:u},d,h,S){var E=n.getCompilerOptions(),P=E.sourceMap||E.inlineSourceMap||zH(E)?[]:void 0,k=E.listEmittedFiles?[]:void 0,F=HL(),$=JE(E),J=Nie($),{enter:X,exit:ie}=tE("printTime","beforePrint","afterPrint"),ae,ve=!1;return X(),zQ(n,we,Oie(n,i,S),S,h,!i),ie(),{emitSkipped:ve,diagnostics:F.getDiagnostics(),emittedFiles:k,sourceMaps:P};function we({jsFilePath:Ke,sourceMapFilePath:st,declarationFilePath:It,declarationMapPath:Yt,buildInfoPath:Et},at){var Qt,nn,Rn,cn,qt,Kt;let wr;Et&&at&&fpe(at)&&(wr=ws(vf(Et,n.getCurrentDirectory())),ae={commonSourceDirectory:Wr(n.getCommonSourceDirectory()),sourceFiles:at.sourceFiles.map(jt=>Wr(vf(jt.fileName,n.getCurrentDirectory())))}),(Qt=ps)==null||Qt.push(ps.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ke}),et(at,Ke,st,Wr),(nn=ps)==null||nn.pop(),(Rn=ps)==null||Rn.push(ps.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:It}),Pe(at,It,Yt,Wr),(cn=ps)==null||cn.pop(),(qt=ps)==null||qt.push(ps.Phase.Emit,"emitBuildInfo",{buildInfoPath:Et}),Fe(ae,Et),(Kt=ps)==null||Kt.pop(),!ve&&k&&(d||(Ke&&k.push(Ke),st&&k.push(st),Et&&k.push(Et)),d!==0&&(It&&k.push(It),Yt&&k.push(Yt)));function Wr(jt){return Fd(sP(wr,jt,n.getCanonicalFileName))}}function Fe(Ke,st){if(!st||i||ve)return;if(n.isEmitBlocked(st)){ve=!0;return}const It=n.getBuildInfo(Ke)||Hae(void 0,Ke);G9(n,F,st,_4(It),!1,void 0,{buildInfo:It})}function et(Ke,st,It,Yt){if(!Ke||d||!st)return;if(n.isEmitBlocked(st)||E.noEmit){ve=!0;return}const Et=x$(e,n,he,E,[Ke],c,!1),at={removeComments:E.removeComments,newLine:E.newLine,noEmitHelpers:E.noEmitHelpers,module:E.module,target:E.target,sourceMap:E.sourceMap,inlineSourceMap:E.inlineSourceMap,inlineSources:E.inlineSources,extendedDiagnostics:E.extendedDiagnostics,writeBundleFileInfo:!!ae,relativeToBuildInfo:Yt},Qt=F3(at,{hasGlobalName:e.hasGlobalName,onEmitNode:Et.emitNodeWithNotification,isEmitNotificationEnabled:Et.isEmitNotificationEnabled,substituteNode:Et.substituteNode});re.assert(Et.transformed.length===1,"Should only see one output from the transform"),Ie(st,It,Et,Qt,E),Et.dispose(),ae&&(ae.js=Qt.bundleFileInfo)}function Pe(Ke,st,It,Yt){if(!Ke||d===0)return;if(!st){(d||E.emitDeclarationOnly)&&(ve=!0);return}const Et=Nu(Ke)?[Ke]:Ke.sourceFiles,at=S?Et:gi(Et,qM),Qt=Ng(E)?[he.createBundle(at,Nu(Ke)?void 0:Ke.prepends)]:at;d&&!gv(E)&&at.forEach(dt);const nn=x$(e,n,he,E,Qt,u,!1);if(Nt(nn.diagnostics))for(const Kt of nn.diagnostics)F.add(Kt);const Rn={removeComments:E.removeComments,newLine:E.newLine,noEmitHelpers:!0,module:E.module,target:E.target,sourceMap:!S&&E.declarationMap,inlineSourceMap:E.inlineSourceMap,extendedDiagnostics:E.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!ae,recordInternalSection:!!ae,relativeToBuildInfo:Yt},cn=F3(Rn,{hasGlobalName:e.hasGlobalName,onEmitNode:nn.emitNodeWithNotification,isEmitNotificationEnabled:nn.isEmitNotificationEnabled,substituteNode:nn.substituteNode}),qt=!!nn.diagnostics&&!!nn.diagnostics.length||!!n.isEmitBlocked(st)||!!E.noEmit;ve=ve||qt,(!qt||S)&&(re.assert(nn.transformed.length===1,"Should only see one output from the decl transform"),Ie(st,It,nn,cn,{sourceMap:Rn.sourceMap,sourceRoot:E.sourceRoot,mapRoot:E.mapRoot,extendedDiagnostics:E.extendedDiagnostics})),nn.dispose(),ae&&(ae.dts=cn.bundleFileInfo)}function dt(Ke){if(my(Ke)){Ke.expression.kind===80&&e.collectLinkedAliases(Ke.expression,!0);return}else if(gy(Ke)){e.collectLinkedAliases(Ke.propertyName||Ke.name,!0);return}s_(Ke,dt)}function Ie(Ke,st,It,Yt,Et){const at=It.transformed[0],Qt=at.kind===313?at:void 0,nn=at.kind===312?at:void 0,Rn=Qt?Qt.sourceFiles:[nn];let cn;ct(Et,at)&&(cn=_me(n,Jg($1(Ke)),Ct(Et),Lt(Et,Ke,nn),Et)),Qt?Yt.writeBundle(Qt,J,cn):Yt.writeFile(nn,J,cn);let qt;if(cn){P&&P.push({inputSourceFileNames:cn.getSources(),sourceMap:cn.toJSON()});const wr=Ze(Et,cn,Ke,st,nn);if(wr&&(J.isAtStartOfLine()||J.rawWrite($),qt=J.getTextPos(),J.writeComment(`//# sourceMappingURL=${wr}`)),st){const Wr=cn.toString();G9(n,F,st,Wr,!1,Rn),Yt.bundleFileInfo&&(Yt.bundleFileInfo.mapHash=TF(Wr,n))}}else J.writeLine();const Kt=J.getText();G9(n,F,Ke,Kt,!!E.emitBOM,Rn,{sourceMapUrlPos:qt,diagnostics:It.diagnostics}),Yt.bundleFileInfo&&(Yt.bundleFileInfo.hash=TF(Kt,n)),J.clear()}function ct(Ke,st){return(Ke.sourceMap||Ke.inlineSourceMap)&&(st.kind!==312||!mm(st.fileName,".json"))}function Ct(Ke){const st=$1(Ke.sourceRoot||"");return st&&Su(st)}function Lt(Ke,st,It){if(Ke.sourceRoot)return n.getCommonSourceDirectory();if(Ke.mapRoot){let Yt=$1(Ke.mapRoot);return It&&(Yt=ws(Fie(It.fileName,n,Yt))),Pg(Yt)===0&&(Yt=vl(n.getCommonSourceDirectory(),Yt)),Yt}return ws(hf(st))}function Ze(Ke,st,It,Yt,Et){if(Ke.inlineSourceMap){const Qt=st.toString();return`data:application/json;base64,${TSe(w0,Qt)}`}const at=Jg($1(re.checkDefined(Yt)));if(Ke.mapRoot){let Qt=$1(Ke.mapRoot);return Et&&(Qt=ws(Fie(Et.fileName,n,Qt))),Pg(Qt)===0?(Qt=vl(n.getCommonSourceDirectory(),Qt),encodeURI(GC(ws(hf(It)),vl(Qt,at),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(vl(Qt,at))}return encodeURI(at)}}function Hae(e,n){return{bundle:n,program:e,version:At}}function _4(e){return JSON.stringify(e)}function Fme(e,n){return Uie(e,n)}function Act(e,n,i){var c;const u=re.checkDefined(e.js),d=((c=u.sources)==null?void 0:c.prologues)&&QT(u.sources.prologues,h=>h.file);return e.sourceFiles.map((h,S)=>{const E=d==null?void 0:d.get(S),P=E==null?void 0:E.directives.map($=>{const J=Tn(he.createStringLiteral($.expression.text),$.expression),X=Tn(he.createExpressionStatement(J),$);return kl(J,X),X}),k=he.createToken(1),F=he.createSourceFile(P??[],k,0);return F.fileName=sP(i.getCurrentDirectory(),vf(h,n),!i.useCaseSensitiveFileNames()),F.text=(E==null?void 0:E.text)??"",f3(F,0,(E==null?void 0:E.text.length)??0),u6(F.statements,F),f3(k,F.end,0),kl(k,F),F})}function D4e(e,n,i,c){var u,d;(u=ps)==null||u.push(ps.Phase.Emit,"emitUsingBuildInfo",{},!0),cf("beforeEmit");const h=Cct(e,n,i,c);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),(d=ps)==null||d.pop(),h}function Cct(e,n,i,c){const{buildInfoPath:u,jsFilePath:d,sourceMapFilePath:h,declarationFilePath:S,declarationMapPath:E}=O3(e.options,!1),P=n.getBuildInfo(u,e.options.configFilePath);if(!P||!P.bundle||!P.bundle.js||S&&!P.bundle.dts)return u;const k=n.readFile(re.checkDefined(d));if(!k||TF(k,n)!==P.bundle.js.hash)return d;const F=h&&n.readFile(h);if(h&&!F||e.options.inlineSourceMap)return h||"inline sourcemap decoding";if(h&&TF(F,n)!==P.bundle.js.mapHash)return h;const $=S&&n.readFile(S);if(S&&!$||S&&TF($,n)!==P.bundle.dts.hash)return S;const J=E&&n.readFile(E);if(E&&!J||e.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&TF(J,n)!==P.bundle.dts.mapHash)return E;const X=ws(vf(u,n.getCurrentDirectory())),ie=gEe(d,k,h,F,S,$,E,J,u,P,!0),ae=[],ve=ise(e.projectReferences,i,dt=>n.readFile(dt),n),we=Act(P.bundle,X,n);let Fe,et;const Pe={getPrependNodes:Pd(()=>[...ve,ie]),getCanonicalFileName:n.getCanonicalFileName,getCommonSourceDirectory:()=>vf(P.bundle.commonSourceDirectory,X),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>n.getCurrentDirectory(),getSourceFile:eE,getSourceFileByPath:eE,getSourceFiles:()=>we,getLibFileFromReference:Na,isSourceFileFromExternalLibrary:bg,getResolvedProjectReferenceToRedirect:eE,getProjectReferenceRedirect:eE,isSourceOfProjectReferenceRedirect:bg,writeFile:(dt,Ie,ct,Ct,Lt,Ze)=>{switch(dt){case d:if(k===Ie)return;break;case h:if(F===Ie)return;break;case u:break;case S:if($===Ie)return;Fe=Ie,et=Ze;break;case E:if(J===Ie)return;break;default:re.fail(`Unexpected path: ${dt}`)}ae.push({name:dt,text:Ie,writeByteOrderMark:ct,data:Ze})},isEmitBlocked:bg,readFile:dt=>n.readFile(dt),fileExists:dt=>n.fileExists(dt),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames(),getBuildInfo:dt=>{const Ie=P.program;Ie&&Fe!==void 0&&e.options.composite&&(Ie.outSignature=TF(Fe,n,et));const{js:ct,dts:Ct,sourceFiles:Lt}=P.bundle;return dt.js.sources=ct.sources,Ct&&(dt.dts.sources=Ct.sources),dt.sourceFiles=Lt,Hae(Ie,dt)},getSourceFileFromReference:eE,redirectTargetsMap:zg(),getFileIncludeReasons:Na,createHash:wc(n,n.createHash)};return Uae(Wme,Pe,void 0,Rme(e.options,c)),ae}function F3(e={},n={}){var{hasGlobalName:i,onEmitNode:c=BQ,isEmitNotificationEnabled:u,substituteNode:d=WQ,onBeforeEmitNode:h,onAfterEmitNode:S,onBeforeEmitNodeArray:E,onAfterEmitNodeArray:P,onBeforeEmitToken:k,onAfterEmitToken:F}=n,$=!!e.extendedDiagnostics,J=!!e.omitBraceSourceMapPositions,X=JE(e),ie=Zp(e),ae=new Map,ve,we,Fe,et,Pe,dt,Ie,ct,Ct,Lt,Ze,Ke,st,It,Yt,Et=e.preserveSourceNewlines,at,Qt,nn,Rn=N4,cn,qt=e.writeBundleFileInfo?{sections:[]}:void 0,Kt=qt?re.checkDefined(e.relativeToBuildInfo):void 0,wr=e.recordInternalSection,Wr=0,jt="text",En=!0,fr,Tr,Vr=-1,Pn,Fr=-1,Ki=-1,io=-1,no=-1,os,Mo,$i=!1,ki=!!e.removeComments,gc,Wl,{enter:Jc,exit:au}=uy($,"commentTime","beforeComment","afterComment"),qn=he.parenthesizer,za={select:ne=>ne===0?qn.parenthesizeLeadingTypeArgument:void 0},Ia=t2();return Br(),{printNode:zi,printList:na,printFile:us,printBundle:_a,writeNode:Qu,writeList:Cu,writeFile:Pr,writeBundle:dr,bundleFileInfo:qt};function zi(ne,yt,Er){switch(ne){case 0:re.assert(Nu(yt),"Expected a SourceFile node.");break;case 2:re.assert(xn(yt),"Expected an Identifier node.");break;case 1:re.assert(kr(yt),"Expected an Expression node.");break}switch(yt.kind){case 312:return us(yt);case 313:return _a(yt);case 314:return Au(yt)}return Qu(ne,yt,Er,Bt()),ln()}function na(ne,yt,Er){return Cu(ne,yt,Er,Bt()),ln()}function _a(ne){return dr(ne,Bt(),void 0),ln()}function us(ne){return Pr(ne,Bt(),void 0),ln()}function Au(ne){return Mr(ne,Bt()),ln()}function Qu(ne,yt,Er,Wi){const nc=Qt;Ge(Wi,void 0),Wn(ne,yt,Er),Br(),Qt=nc}function Cu(ne,yt,Er,Wi){const nc=Qt;Ge(Wi,void 0),Er&&$r(Er),Vo(void 0,yt,ne),Br(),Qt=nc}function yf(){return Qt.getTextPosWithWriteLine?Qt.getTextPosWithWriteLine():Qt.getTextPos()}function w_(ne,yt,Er){const Wi=Yf(qt.sections);Wi&&Wi.kind===Er?Wi.end=yt:qt.sections.push({pos:ne,end:yt,kind:Er})}function Eu(ne){if(wr&&qt&&ve&&(PT(ne)||Xg(ne))&&Wae(ne,ve)&&jt!=="internal"){const yt=jt;return Hn(Qt.getTextPos()),Wr=yf(),jt="internal",yt}}function He(ne){ne&&(Hn(Qt.getTextPos()),Wr=yf(),jt=ne)}function Hn(ne){return Wrre.assert(NSe(Z_))),qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"prepend",data:Kt(nc.fileName),texts:Pf}))}}Wr=yf();for(const nc of ne.sourceFiles)Wn(0,nc,nc);if(qt&&ne.sourceFiles.length){const nc=Qt.getTextPos();if(Hn(nc)){const Vu=tg(ne);Vu&&(qt.sources||(qt.sources={}),qt.sources.prologues=Vu);const ql=qi(ne);ql&&(qt.sources||(qt.sources={}),qt.sources.helpers=ql)}}Br(),Qt=Wi}function Mr(ne,yt){const Er=Qt;Ge(yt,void 0),Wn(4,ne,void 0),Br(),Qt=Er}function Pr(ne,yt,Er){cn=!0;const Wi=Qt;Ge(yt,Er),mS(ne),Tu(ne),Wn(0,ne,ne),Br(),Qt=Wi}function Bt(){return nn||(nn=Nie(X))}function ln(){const ne=nn.getText();return nn.clear(),ne}function Wn(ne,yt,Er){Er&&$r(Er),ze(ne,yt,void 0)}function $r(ne){ve=ne,os=void 0,Mo=void 0,ne&&pw(ne)}function Ge(ne,yt){ne&&e.omitTrailingSemicolon&&(ne=z9(ne)),Qt=ne,fr=yt,En=!Qt||!fr}function Br(){we=[],Fe=[],et=[],Pe=new Set,dt=[],Ie=new Map,ct=[],Ct=0,Lt=[],Ze=0,Ke=[],st=void 0,It=[],Yt=void 0,ve=void 0,os=void 0,Mo=void 0,Ge(void 0,void 0)}function Ei(){return os||(os=eR(re.checkDefined(ve)))}function Ln(ne,yt){if(ne===void 0)return;const Er=Eu(ne);ze(4,ne,yt),He(Er)}function Sr(ne){ne!==void 0&&ze(2,ne,void 0)}function yi(ne,yt){ne!==void 0&&ze(1,ne,yt)}function go(ne){ze(Sd(ne)?6:4,ne)}function Ao(ne){Et&&HC(ne)&4&&(Et=!1)}function Io(ne){Et=ne}function ze(ne,yt,Er){Wl=Er,qe(0,ne,yt)(ne,yt),Wl=void 0}function Ce(ne){return!ki&&!Nu(ne)}function kt(ne){return!En&&!Nu(ne)&&!Eie(ne)&&!rF(ne)&&!OJ(ne)}function qe(ne,yt,Er){switch(ne){case 0:if(c!==BQ&&(!u||u(Er)))return ge;case 1:if(d!==WQ&&(gc=d(yt,Er)||Er)!==Er)return Wl&&(gc=Wl(gc)),Lr;case 2:if(Ce(Er))return yV;case 3:if(kt(Er))return pO;case 4:return mn;default:return re.assertNever(ne)}}function Mt(ne,yt,Er){return qe(ne+1,yt,Er)}function ge(ne,yt){const Er=Mt(0,ne,yt);c(ne,yt,Er)}function mn(ne,yt){if(h==null||h(yt),Et){const Er=Et;Ao(yt),Jn(ne,yt),Io(Er)}else Jn(ne,yt);S==null||S(yt),Wl=void 0}function Jn(ne,yt,Er=!0){if(Er){const Wi=npe(yt);if(Wi)return Tf(ne,yt,Wi)}if(ne===0)return w2(uc(yt,Nu));if(ne===2)return G_(uc(yt,xn));if(ne===6)return Cc(uc(yt,Sd),!0);if(ne===3)return Nn(uc(yt,Np));if(ne===5)return re.assertNode(yt,xEe),Vl(!0);if(ne===4){switch(yt.kind){case 16:case 17:case 18:return Cc(yt,!1);case 80:return G_(yt);case 81:return u_(yt);case 166:return xa(yt);case 167:return mf(yt);case 168:return Cp(yt);case 169:return Yg(yt);case 170:return xg(yt);case 171:return Wy(yt);case 172:return Og(yt);case 173:return pl(yt);case 174:return R_(yt);case 175:return og(yt);case 176:return km(yt);case 177:case 178:return M_(yt);case 179:return oy(yt);case 180:return bE(yt);case 181:return hh(yt);case 182:return Ka(yt);case 183:return Qi(yt);case 184:return Pm(yt);case 185:return Md(yt);case 186:return fe(yt);case 187:return _n(yt);case 188:return Xn(yt);case 189:return $o(yt);case 190:return xs(yt);case 192:return Fs(yt);case 193:return Tl(yt);case 194:return fc(yt);case 195:return Gd(yt);case 196:return ag(yt);case 233:return vi(yt);case 197:return ah();case 198:return bm(yt);case 199:return ay(yt);case 200:return yp(yt);case 201:return Cg(yt);case 202:return Sc(yt);case 203:return wp(yt);case 204:return qo(yt);case 205:return Xp(yt);case 206:return r1(yt);case 207:return sg(yt);case 208:return Jt(yt);case 239:return Ii(yt);case 240:return d_();case 241:return Ja(yt);case 243:return wi(yt);case 242:return Vl(!1);case 244:return Uf(yt);case 245:return Y_(yt);case 246:return sv(yt);case 247:return by(yt);case 248:return _b(yt);case 249:return f_(yt);case 250:return zh(yt);case 251:return n2(yt);case 252:return Vv(yt);case 253:return Lb(yt);case 254:return fn(yt);case 255:return $n(yt);case 256:return ri(yt);case 257:return Li(yt);case 258:return yo(yt);case 259:return jo(yt);case 260:return Oo(yt);case 261:return ca(yt);case 262:return Fc(yt);case 263:return br(yt);case 264:return Js(yt);case 265:return pu(yt);case 266:return fl(yt);case 267:return ju(yt);case 268:return L_(yt);case 269:return Cl(yt);case 270:return yC(yt);case 271:return o0(yt);case 272:return dD(yt);case 273:return a0(yt);case 274:return Kx(yt);case 280:return vC(yt);case 275:return hC(yt);case 276:return WP(yt);case 277:return BP(yt);case 278:return LA(yt);case 279:return zP(yt);case 281:return Xx(yt);case 300:return OA(yt);case 301:return pD(yt);case 282:return;case 283:return px(yt);case 12:return FA(yt);case 286:case 289:return dS(yt);case 287:case 290:return bC(yt);case 291:return db(yt);case 292:return wm(yt);case 293:return o1(yt);case 294:return zn(yt);case 295:return zr(yt);case 296:return xo(yt);case 297:return Wc(yt);case 298:return _c(yt);case 299:return Sl(yt);case 303:return kf(yt);case 304:return Rp(yt);case 305:return hn(yt);case 306:return v_(yt);case 307:return hc(yt);case 314:case 308:return Pc(yt);case 309:case 310:return bl(yt);case 311:return Tc(yt);case 312:return w2(yt);case 313:return re.fail("Bundles should be printed using printBundle");case 315:return re.fail("InputFiles should not be printed");case 316:return A0(yt);case 317:return BS(yt);case 319:return rs("*");case 320:return rs("?");case 321:return va(yt);case 322:return x0(yt);case 323:return Nm(yt);case 324:return Ag(yt);case 191:case 325:return _i(yt);case 326:return;case 327:return yh(yt);case 329:return UP(yt);case 330:return Bd(yt);case 334:case 339:case 344:return VP(yt);case 335:case 336:return N2(yt);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return tp(yt);case 346:return gx(yt);case 348:case 355:return Bm(yt);case 347:case 349:case 350:case 351:case 356:case 357:return fm(yt);case 352:return pS(yt);case 353:return jP(yt);case 354:return mx(yt);case 359:return}if(kr(yt)&&(ne=1,d!==WQ)){const Wi=d(ne,yt)||yt;Wi!==yt&&(yt=Wi,Wl&&(yt=Wl(yt)))}}if(ne===1)switch(yt.kind){case 9:case 10:return Ts(yt);case 11:case 14:case 15:return Cc(yt,!1);case 80:return G_(yt);case 81:return u_(yt);case 209:return ci(yt);case 210:return da(yt);case 211:return Hu(yt);case 212:return A_(yt);case 213:return gd(yt);case 214:return Dg(yt);case 215:return um(yt);case 216:return Ig(yt);case 217:return P_(yt);case 218:return Qm(yt);case 219:return Bh(yt);case 220:return VT(yt);case 221:return Zm(yt);case 222:return fb(yt);case 223:return FS(yt);case 224:return dT(yt);case 225:return xv(yt);case 226:return Ia(yt);case 227:return q0(yt);case 228:return N1(yt);case 229:return i0(yt);case 230:return nt(yt);case 231:return pr(yt);case 232:return;case 234:return Di(yt);case 235:return Ee(yt);case 233:return vi(yt);case 238:return Gt(yt);case 236:return sr(yt);case 237:return re.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return j_(yt);case 285:return GP(yt);case 288:return oO(yt);case 358:return re.fail("SyntaxList should not be printed");case 359:return;case 360:return rt(yt);case 361:return Dn(yt);case 362:return re.fail("SyntheticReferenceExpression should not be printed")}if(qb(yt.kind))return SE(yt,gf);if(tde(yt.kind))return SE(yt,rs);re.fail(`Unhandled SyntaxKind: ${re.formatSyntaxKind(yt.kind)}.`)}function Nn(ne){Ln(ne.name),Ni(),gf("in"),Ni(),Ln(ne.constraint)}function Lr(ne,yt){const Er=Mt(1,ne,yt);re.assertIsDefined(gc),yt=gc,gc=void 0,Er(ne,yt)}function qi(ne){let yt;if(ie===0||e.noEmitHelpers)return;const Er=new Map;for(const Wi of ne.sourceFiles){const nc=t4(Wi)!==void 0,Vu=Ro(Wi);if(Vu)for(const ql of Vu)!ql.scoped&&!nc&&!Er.get(ql.name)&&(Er.set(ql.name,!0),(yt||(yt=[])).push(ql.name))}return yt}function vo(ne){let yt=!1;const Er=ne.kind===313?ne:void 0;if(Er&&ie===0)return;const Wi=Er?Er.prepends.length:0,nc=Er?Er.sourceFiles.length+Wi:1;for(let Vu=0;Vu"),Ni(),Ln(ne.type),EE(ne)}function Ag(ne){gf("function"),sw(ne,ne.parameters),rs(":"),Ln(ne.type)}function va(ne){rs("?"),Ln(ne.type)}function x0(ne){rs("!"),Ln(ne.type)}function Nm(ne){Ln(ne.type),rs("=")}function Md(ne){pT(ne),r2(ne,ne.modifiers),gf("new"),Ni(),NI(ne,ne.typeParameters),sw(ne,ne.parameters),Ni(),rs("=>"),Ni(),Ln(ne.type),EE(ne)}function fe(ne){gf("typeof"),Ni(),Ln(ne.exprName),mD(ne,ne.typeArguments)}function _n(ne){Qx(0,void 0),rs("{");const yt=wd(ne)&1?768:32897;Vo(ne,ne.members,yt|524288),rs("}"),V6()}function Xn(ne){Ln(ne.elementType,qn.parenthesizeNonArrayTypeOfPostfixType),rs("["),rs("]")}function _i(ne){rs("..."),Ln(ne.type)}function $o(ne){su(23,ne.pos,rs,ne);const yt=wd(ne)&1?528:657;Vo(ne,ne.elements,yt|524288,qn.parenthesizeElementTypeOfTupleType),su(24,ne.elements.end,rs,ne)}function Sc(ne){Ln(ne.dotDotDotToken),Ln(ne.name),Ln(ne.questionToken),su(59,ne.name.end,rs,ne),Ni(),Ln(ne.type)}function xs(ne){Ln(ne.type,qn.parenthesizeTypeOfOptionalType),rs("?")}function Fs(ne){Vo(ne,ne.types,516,qn.parenthesizeConstituentTypeOfUnionType)}function Tl(ne){Vo(ne,ne.types,520,qn.parenthesizeConstituentTypeOfIntersectionType)}function fc(ne){Ln(ne.checkType,qn.parenthesizeCheckTypeOfConditionalType),Ni(),gf("extends"),Ni(),Ln(ne.extendsType,qn.parenthesizeExtendsTypeOfConditionalType),Ni(),rs("?"),Ni(),Ln(ne.trueType),Ni(),rs(":"),Ni(),Ln(ne.falseType)}function Gd(ne){gf("infer"),Ni(),Ln(ne.typeParameter)}function ag(ne){rs("("),Ln(ne.type),rs(")")}function ah(){gf("this")}function bm(ne){R1(ne.operator,gf),Ni();const yt=ne.operator===148?qn.parenthesizeOperandOfReadonlyTypeOperator:qn.parenthesizeOperandOfTypeOperator;Ln(ne.type,yt)}function ay(ne){Ln(ne.objectType,qn.parenthesizeNonArrayTypeOfPostfixType),rs("["),Ln(ne.indexType),rs("]")}function yp(ne){const yt=wd(ne);rs("{"),yt&1?Ni():(b_(),Gp()),ne.readonlyToken&&(Ln(ne.readonlyToken),ne.readonlyToken.kind!==148&&gf("readonly"),Ni()),rs("["),ze(3,ne.typeParameter),ne.nameType&&(Ni(),gf("as"),Ni(),Ln(ne.nameType)),rs("]"),ne.questionToken&&(Ln(ne.questionToken),ne.questionToken.kind!==58&&rs("?")),rs(":"),Ni(),Ln(ne.type),Ob(),yt&1?Ni():(b_(),w1()),Vo(ne,ne.members,2),rs("}")}function Cg(ne){yi(ne.literal)}function wp(ne){Ln(ne.head),Vo(ne,ne.templateSpans,262144)}function Xp(ne){if(ne.isTypeOf&&(gf("typeof"),Ni()),gf("import"),rs("("),Ln(ne.argument),ne.attributes){rs(","),Ni(),rs("{"),Ni(),gf(ne.attributes.token===132?"assert":"with"),rs(":"),Ni();const yt=ne.attributes.elements;Vo(ne.attributes,yt,526226),Ni(),rs("}")}rs(")"),ne.qualifier&&(rs("."),Ln(ne.qualifier)),mD(ne,ne.typeArguments)}function r1(ne){rs("{"),Vo(ne,ne.elements,525136),rs("}")}function sg(ne){rs("["),Vo(ne,ne.elements,524880),rs("]")}function Jt(ne){Ln(ne.dotDotDotToken),ne.propertyName&&(Ln(ne.propertyName),rs(":"),Ni()),Ln(ne.name),Mk(ne.initializer,ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function ci(ne){const yt=ne.elements,Er=ne.multiLine?65536:0;WA(ne,yt,8914|Er,qn.parenthesizeExpressionForDisallowedComma)}function da(ne){Qx(0,void 0),Ot(ne.properties,U6);const yt=wd(ne)&131072;yt&&Gp();const Er=ne.multiLine?65536:0,Wi=ve&&ve.languageVersion>=1&&!Rx(ve)?64:0;Vo(ne,ne.properties,526226|Wi|Er),yt&&w1(),V6()}function Hu(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess);const yt=ne.questionDotToken||T1(he.createToken(25),ne.expression.end,ne.name.pos),Er=Yx(ne,ne.expression,yt),Wi=Yx(ne,yt,ne.name);Uy(Er,!1),yt.kind!==29&&t_(ne.expression)&&!Qt.hasTrailingComment()&&!Qt.hasTrailingWhitespace()&&rs("."),ne.questionDotToken?Ln(yt):su(yt.kind,ne.expression.end,rs,ne),Uy(Wi,!1),Ln(ne.name),Lk(Er,Wi)}function t_(ne){if(ne=h2(ne),S1(ne)){const yt=gV(ne,!0,!1);return!(ne.numericLiteralFlags&448)&&!yt.includes(Cf(25))&&!yt.includes("E")&&!yt.includes("e")}else if(Kf(ne)){const yt=JN(ne);return typeof yt=="number"&&isFinite(yt)&&yt>=0&&Math.floor(yt)===yt}}function A_(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),Ln(ne.questionDotToken),su(23,ne.expression.end,rs,ne),yi(ne.argumentExpression),su(24,ne.argumentExpression.end,rs,ne)}function gd(ne){const yt=HC(ne)&16;yt&&(rs("("),wI("0"),rs(","),Ni()),yi(ne.expression,qn.parenthesizeLeftSideOfAccess),yt&&rs(")"),Ln(ne.questionDotToken),mD(ne,ne.typeArguments),WA(ne,ne.arguments,2576,qn.parenthesizeExpressionForDisallowedComma)}function Dg(ne){su(105,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeExpressionOfNew),mD(ne,ne.typeArguments),WA(ne,ne.arguments,18960,qn.parenthesizeExpressionForDisallowedComma)}function um(ne){const yt=HC(ne)&16;yt&&(rs("("),wI("0"),rs(","),Ni()),yi(ne.tag,qn.parenthesizeLeftSideOfAccess),yt&&rs(")"),mD(ne,ne.typeArguments),Ni(),yi(ne.template)}function Ig(ne){rs("<"),Ln(ne.type),rs(">"),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function P_(ne){const yt=su(21,ne.pos,rs,ne),Er=Ok(ne.expression,ne);yi(ne.expression,void 0),vB(ne.expression,ne),Lk(Er),su(22,ne.expression?ne.expression.end:yt,rs,ne)}function Qm(ne){GS(ne.name),ks(ne)}function Bh(ne){r2(ne,ne.modifiers),Xs(ne,P1)}function P1(ne){NI(ne,ne.typeParameters),aO(ne,ne.parameters),II(ne.type),Ni(),Ln(ne.equalsGreaterThanToken)}function VT(ne){su(91,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function Zm(ne){su(114,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function fb(ne){su(116,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function FS(ne){su(135,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function dT(ne){R1(ne.operator,ko),$0(ne)&&Ni(),yi(ne.operand,qn.parenthesizeOperandOfPrefixUnary)}function $0(ne){const yt=ne.operand;return yt.kind===224&&(ne.operator===40&&(yt.operator===40||yt.operator===46)||ne.operator===41&&(yt.operator===41||yt.operator===47))}function xv(ne){yi(ne.operand,qn.parenthesizeOperandOfPostfixUnary),R1(ne.operator,ko)}function t2(){return GG(ne,yt,Er,Wi,nc,void 0);function ne(ql,Pf){if(Pf){Pf.stackIndex++,Pf.preserveSourceNewlinesStack[Pf.stackIndex]=Et,Pf.containerPosStack[Pf.stackIndex]=Ki,Pf.containerEndStack[Pf.stackIndex]=io,Pf.declarationListContainerEndStack[Pf.stackIndex]=no;const Z_=Pf.shouldEmitCommentsStack[Pf.stackIndex]=Ce(ql),CE=Pf.shouldEmitSourceMapsStack[Pf.stackIndex]=kt(ql);h==null||h(ql),Z_&&JF(ql),CE&&Xq(ql),Ao(ql)}else Pf={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Pf}function yt(ql,Pf,Z_){return Vu(ql,Z_,"left")}function Er(ql,Pf,Z_){const CE=ql.kind!==28,a2=Yx(Z_,Z_.left,ql),ru=Yx(Z_,ql,Z_.right);Uy(a2,CE),AE(ql.pos),SE(ql,ql.kind===103?gf:ko),hD(ql.end,!0),Uy(ru,!0)}function Wi(ql,Pf,Z_){return Vu(ql,Z_,"right")}function nc(ql,Pf){const Z_=Yx(ql,ql.left,ql.operatorToken),CE=Yx(ql,ql.operatorToken,ql.right);if(Lk(Z_,CE),Pf.stackIndex>0){const a2=Pf.preserveSourceNewlinesStack[Pf.stackIndex],ru=Pf.containerPosStack[Pf.stackIndex],Fk=Pf.containerEndStack[Pf.stackIndex],Co=Pf.declarationListContainerEndStack[Pf.stackIndex],DE=Pf.shouldEmitCommentsStack[Pf.stackIndex],MI=Pf.shouldEmitSourceMapsStack[Pf.stackIndex];Io(a2),MI&&Ty(ql),DE&&SB(ql,ru,Fk,Co),S==null||S(ql),Pf.stackIndex--}}function Vu(ql,Pf,Z_){const CE=Z_==="left"?qn.getParenthesizeLeftSideOfBinaryForOperator(Pf.operatorToken.kind):qn.getParenthesizeRightSideOfBinaryForOperator(Pf.operatorToken.kind);let a2=qe(0,1,ql);if(a2===Lr&&(re.assertIsDefined(gc),ql=CE(uc(gc,kr)),a2=Mt(1,1,ql),gc=void 0),(a2===yV||a2===pO||a2===mn)&&Ds(ql))return ql;Wl=CE,a2(1,ql)}}function q0(ne){const yt=Yx(ne,ne.condition,ne.questionToken),Er=Yx(ne,ne.questionToken,ne.whenTrue),Wi=Yx(ne,ne.whenTrue,ne.colonToken),nc=Yx(ne,ne.colonToken,ne.whenFalse);yi(ne.condition,qn.parenthesizeConditionOfConditionalExpression),Uy(yt,!0),Ln(ne.questionToken),Uy(Er,!0),yi(ne.whenTrue,qn.parenthesizeBranchOfConditionalExpression),Lk(yt,Er),Uy(Wi,!0),Ln(ne.colonToken),Uy(nc,!0),yi(ne.whenFalse,qn.parenthesizeBranchOfConditionalExpression),Lk(Wi,nc)}function N1(ne){Ln(ne.head),Vo(ne,ne.templateSpans,262144)}function i0(ne){su(127,ne.pos,gf,ne),Ln(ne.asteriskToken),kI(ne.expression&&Uv(ne.expression),Rk)}function nt(ne){su(26,ne.pos,rs,ne),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma)}function pr(ne){GS(ne.name),oo(ne)}function vi(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),mD(ne,ne.typeArguments)}function Di(ne){yi(ne.expression,void 0),ne.type&&(Ni(),gf("as"),Ni(),Ln(ne.type))}function Ee(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),ko("!")}function Gt(ne){yi(ne.expression,void 0),ne.type&&(Ni(),gf("satisfies"),Ni(),Ln(ne.type))}function sr(ne){zS(ne.keywordToken,ne.pos,rs),rs("."),Ln(ne.name)}function Ii(ne){yi(ne.expression),Ln(ne.literal)}function Ja(ne){wa(ne,!ne.multiLine&&uw(ne))}function wa(ne,yt){su(19,ne.pos,rs,ne);const Er=yt||wd(ne)&1?768:129;Vo(ne,ne.statements,Er),su(20,ne.statements.end,rs,ne,!!(Er&1))}function wi(ne){Nh(ne,ne.modifiers,!1),Ln(ne.declarationList),Ob()}function Vl(ne){ne?rs(";"):Ob()}function Uf(ne){yi(ne.expression,qn.parenthesizeExpressionOfExpressionStatement),(!ve||!Rx(ve)||Hd(ne.expression))&&Ob()}function Y_(ne){const yt=su(101,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.thenStatement),ne.elseStatement&&(JP(ne,ne.thenStatement,ne.elseStatement),su(93,ne.thenStatement.end,gf,ne),ne.elseStatement.kind===245?(Ni(),Ln(ne.elseStatement)):PI(ne,ne.elseStatement))}function Fg(ne,yt){const Er=su(117,yt,gf,ne);Ni(),su(21,Er,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne)}function sv(ne){su(92,ne.pos,gf,ne),PI(ne,ne.statement),Ou(ne.statement)&&!Et?Ni():JP(ne,ne.statement,ne.expression),Fg(ne,ne.statement.end),Ob()}function by(ne){Fg(ne,ne.pos),PI(ne,ne.statement)}function _b(ne){const yt=su(99,ne.pos,gf,ne);Ni();let Er=su(21,yt,rs,ne);i1(ne.initializer),Er=su(27,ne.initializer?ne.initializer.end:Er,rs,ne),kI(ne.condition),Er=su(27,ne.condition?ne.condition.end:Er,rs,ne),kI(ne.incrementor),su(22,ne.incrementor?ne.incrementor.end:Er,rs,ne),PI(ne,ne.statement)}function f_(ne){const yt=su(99,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),i1(ne.initializer),Ni(),su(103,ne.initializer.end,gf,ne),Ni(),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function zh(ne){const yt=su(99,ne.pos,gf,ne);Ni(),JR(ne.awaitModifier),su(21,yt,rs,ne),i1(ne.initializer),Ni(),su(165,ne.initializer.end,gf,ne),Ni(),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function i1(ne){ne!==void 0&&(ne.kind===261?Ln(ne):yi(ne))}function n2(ne){su(88,ne.pos,gf,ne),HR(ne.label),Ob()}function Vv(ne){su(83,ne.pos,gf,ne),HR(ne.label),Ob()}function su(ne,yt,Er,Wi,nc){const Vu=__(Wi),ql=Vu&&Vu.kind===Wi.kind,Pf=yt;if(ql&&ve&&(yt=Ff(ve.text,yt)),ql&&Wi.pos!==Pf){const Z_=nc&&ve&&!mv(Pf,yt,ve);Z_&&Gp(),AE(Pf),Z_&&w1()}if(!J&&(ne===19||ne===20)?yt=zS(ne,yt,Er,Wi):yt=R1(ne,Er,yt),ql&&Wi.end!==yt){const Z_=Wi.kind===294;hD(yt,!Z_,Z_)}return yt}function gC(ne){return ne.kind===2||!!ne.hasTrailingNewLine}function eg(ne){return ve?gt(JD(ve.text,ne.pos),gC)||gt(y3(ne),gC)?!0:Roe(ne)?ne.pos!==ne.expression.pos&>(SN(ve.text,ne.expression.pos),gC)?!0:eg(ne.expression):!1:!1}function Uv(ne){if(!ki&&Roe(ne)&&eg(ne)){const yt=__(ne);if(yt&&fE(yt)){const Er=he.createParenthesizedExpression(ne.expression);return Ls(Er,ne),Tn(Er,yt),Er}return he.createParenthesizedExpression(ne)}return ne}function Rk(ne){return Uv(qn.parenthesizeExpressionForDisallowedComma(ne))}function Lb(ne){su(107,ne.pos,gf,ne),kI(ne.expression&&Uv(ne.expression),Uv),Ob()}function fn(ne){const yt=su(118,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function $n(ne){const yt=su(109,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),Ni(),Ln(ne.caseBlock)}function ri(ne){Ln(ne.label),su(59,ne.label.end,rs,ne),Ni(),Ln(ne.statement)}function Li(ne){su(111,ne.pos,gf,ne),kI(Uv(ne.expression),Uv),Ob()}function yo(ne){su(113,ne.pos,gf,ne),Ni(),Ln(ne.tryBlock),ne.catchClause&&(JP(ne,ne.tryBlock,ne.catchClause),Ln(ne.catchClause)),ne.finallyBlock&&(JP(ne,ne.catchClause||ne.tryBlock,ne.finallyBlock),su(98,(ne.catchClause||ne.tryBlock).end,gf,ne),Ni(),Ln(ne.finallyBlock))}function jo(ne){zS(89,ne.pos,gf),Ob()}function Oo(ne){var yt,Er,Wi;Ln(ne.name),Ln(ne.exclamationToken),II(ne.type),Mk(ne.initializer,((yt=ne.type)==null?void 0:yt.end)??((Wi=(Er=ne.name.emitNode)==null?void 0:Er.typeNode)==null?void 0:Wi.end)??ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function ca(ne){if(nC(ne))gf("await"),Ni(),gf("using");else{const yt=UM(ne)?"let":rH(ne)?"const":aY(ne)?"using":"var";gf(yt)}Ni(),Vo(ne,ne.declarations,528)}function Fc(ne){ks(ne)}function ks(ne){Nh(ne,ne.modifiers,!1),gf("function"),Ln(ne.asteriskToken),Ni(),Sr(ne.name),Xs(ne,Vs)}function Xs(ne,yt){const Er=ne.body;if(Er)if(Ou(Er)){const Wi=wd(ne)&131072;Wi&&Gp(),pT(ne),Ot(ne.parameters,s0),s0(ne.body),yt(ne),Yp(Er),EE(ne),Wi&&w1()}else yt(ne),Ni(),yi(Er,qn.parenthesizeConciseBodyOfArrowFunction);else yt(ne),Ob()}function Vs(ne){NI(ne,ne.typeParameters),sw(ne,ne.parameters),II(ne.type)}function wu(ne){if(wd(ne)&1)return!0;if(ne.multiLine||!Hd(ne)&&ve&&!mk(ne,ve)||w4(ne,pp(ne.statements),2)||j6(ne,Yf(ne.statements),2,ne.statements))return!1;let yt;for(const Er of ne.statements){if(lw(yt,Er,2)>0)return!1;yt=Er}return!0}function Yp(ne){h==null||h(ne),Ni(),rs("{"),Gp();const yt=wu(ne)?Q:ft;sc(ne,ne.statements,yt),w1(),zS(20,ne.statements.end,rs,ne),S==null||S(ne)}function Q(ne){ft(ne,!0)}function ft(ne,yt){const Er=Ci(ne.statements),Wi=Qt.getTextPos();vo(ne),Er===0&&Wi===Qt.getTextPos()&&yt?(w1(),Vo(ne,ne.statements,768),Gp()):Vo(ne,ne.statements,1,void 0,Er)}function br(ne){oo(ne)}function oo(ne){Qx(0,void 0),Ot(ne.members,U6),Nh(ne,ne.modifiers,!0),su(86,Db(ne).pos,gf,ne),ne.name&&(Ni(),Sr(ne.name));const yt=wd(ne)&131072;yt&&Gp(),NI(ne,ne.typeParameters),Vo(ne,ne.heritageClauses,0),Ni(),rs("{"),Vo(ne,ne.members,129),rs("}"),yt&&w1(),V6()}function Js(ne){Qx(0,void 0),Nh(ne,ne.modifiers,!1),gf("interface"),Ni(),Ln(ne.name),NI(ne,ne.typeParameters),Vo(ne,ne.heritageClauses,512),Ni(),rs("{"),Vo(ne,ne.members,129),rs("}"),V6()}function pu(ne){Nh(ne,ne.modifiers,!1),gf("type"),Ni(),Ln(ne.name),NI(ne,ne.typeParameters),Ni(),rs("="),Ni(),Ln(ne.type),Ob()}function fl(ne){Nh(ne,ne.modifiers,!1),gf("enum"),Ni(),Ln(ne.name),Ni(),rs("{"),Vo(ne,ne.members,145),rs("}")}function ju(ne){Nh(ne,ne.modifiers,!1),~ne.flags&2048&&(gf(ne.flags&32?"namespace":"module"),Ni()),Ln(ne.name);let yt=ne.body;if(!yt)return Ob();for(;yt&&py(yt);)rs("."),Ln(yt.name),yt=yt.body;Ni(),Ln(yt)}function L_(ne){pT(ne),Ot(ne.statements,s0),wa(ne,uw(ne)),EE(ne)}function Cl(ne){su(19,ne.pos,rs,ne),Vo(ne,ne.clauses,129),su(20,ne.clauses.end,rs,ne,!0)}function o0(ne){Nh(ne,ne.modifiers,!1),su(102,ne.modifiers?ne.modifiers.end:ne.pos,gf,ne),Ni(),ne.isTypeOnly&&(su(156,ne.pos,gf,ne),Ni()),Ln(ne.name),Ni(),su(64,ne.name.end,rs,ne),Ni(),oa(ne.moduleReference),Ob()}function oa(ne){ne.kind===80?yi(ne):Ln(ne)}function dD(ne){Nh(ne,ne.modifiers,!1),su(102,ne.modifiers?ne.modifiers.end:ne.pos,gf,ne),Ni(),ne.importClause&&(Ln(ne.importClause),Ni(),su(161,ne.importClause.end,gf,ne),Ni()),yi(ne.moduleSpecifier),ne.attributes&&HR(ne.attributes),Ob()}function a0(ne){ne.isTypeOnly&&(su(156,ne.pos,gf,ne),Ni()),Ln(ne.name),ne.name&&ne.namedBindings&&(su(28,ne.name.end,rs,ne),Ni()),Ln(ne.namedBindings)}function Kx(ne){const yt=su(42,ne.pos,rs,ne);Ni(),su(130,yt,gf,ne),Ni(),Ln(ne.name)}function hC(ne){dx(ne)}function WP(ne){WS(ne)}function BP(ne){const yt=su(95,ne.pos,gf,ne);Ni(),ne.isExportEquals?su(64,yt,ko,ne):su(90,yt,gf,ne),Ni(),yi(ne.expression,ne.isExportEquals?qn.getParenthesizeRightSideOfBinaryForOperator(64):qn.parenthesizeExpressionOfExportDefault),Ob()}function LA(ne){Nh(ne,ne.modifiers,!1);let yt=su(95,ne.pos,gf,ne);if(Ni(),ne.isTypeOnly&&(yt=su(156,yt,gf,ne),Ni()),ne.exportClause?Ln(ne.exportClause):yt=su(42,yt,rs,ne),ne.moduleSpecifier){Ni();const Er=ne.exportClause?ne.exportClause.end:yt;su(161,Er,gf,ne),Ni(),yi(ne.moduleSpecifier)}ne.attributes&&HR(ne.attributes),Ob()}function OA(ne){su(ne.token,ne.pos,gf,ne),Ni();const yt=ne.elements;Vo(ne,yt,526226)}function pD(ne){Ln(ne.name),rs(":"),Ni();const yt=ne.value;if(!(wd(yt)&1024)){const Er=MS(yt);hD(Er.pos)}Ln(yt)}function yC(ne){let yt=su(95,ne.pos,gf,ne);Ni(),yt=su(130,yt,gf,ne),Ni(),yt=su(145,yt,gf,ne),Ni(),Ln(ne.name),Ob()}function vC(ne){const yt=su(42,ne.pos,rs,ne);Ni(),su(130,yt,gf,ne),Ni(),Ln(ne.name)}function zP(ne){dx(ne)}function Xx(ne){WS(ne)}function dx(ne){rs("{"),Vo(ne,ne.elements,525136),rs("}")}function WS(ne){ne.isTypeOnly&&(gf("type"),Ni()),ne.propertyName&&(Ln(ne.propertyName),Ni(),su(130,ne.propertyName.end,gf,ne),Ni()),Ln(ne.name)}function px(ne){gf("require"),rs("("),yi(ne.expression),rs(")")}function j_(ne){Ln(ne.openingElement),Vo(ne,ne.children,262144),Ln(ne.closingElement)}function GP(ne){rs("<"),xi(ne.tagName),mD(ne,ne.typeArguments),Ni(),Ln(ne.attributes),rs("/>")}function oO(ne){Ln(ne.openingFragment),Vo(ne,ne.children,262144),Ln(ne.closingFragment)}function dS(ne){if(rs("<"),Pb(ne)){const yt=Ok(ne.tagName,ne);xi(ne.tagName),mD(ne,ne.typeArguments),ne.attributes.properties&&ne.attributes.properties.length>0&&Ni(),Ln(ne.attributes),vB(ne.attributes,ne),Lk(yt)}rs(">")}function FA(ne){Qt.writeLiteral(ne.text)}function bC(ne){rs("")}function wm(ne){Vo(ne,ne.properties,262656)}function db(ne){Ln(ne.name),M2("=",rs,ne.initializer,go)}function o1(ne){rs("{..."),yi(ne.expression),rs("}")}function Q_(ne){let yt=!1;return k8((ve==null?void 0:ve.text)||"",ne+1,()=>yt=!0),yt}function je(ne){let yt=!1;return ep((ve==null?void 0:ve.text)||"",ne+1,()=>yt=!0),yt}function Vt(ne){return Q_(ne)||je(ne)}function zn(ne){var yt;if(ne.expression||!ki&&!Hd(ne)&&Vt(ne.pos)){const Er=ve&&!Hd(ne)&&xm(ve,ne.pos).line!==xm(ve,ne.end).line;Er&&Qt.increaseIndent();const Wi=su(19,ne.pos,rs,ne);Ln(ne.dotDotDotToken),yi(ne.expression),su(20,((yt=ne.expression)==null?void 0:yt.end)||Wi,rs,ne),Er&&Qt.decreaseIndent()}}function zr(ne){Sr(ne.namespace),rs(":"),Sr(ne.name)}function xi(ne){ne.kind===80?yi(ne):Ln(ne)}function xo(ne){su(84,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma),hu(ne,ne.statements,ne.expression.end)}function Wc(ne){const yt=su(90,ne.pos,gf,ne);hu(ne,ne.statements,yt)}function hu(ne,yt,Er){const Wi=yt.length===1&&(!ve||Hd(ne)||Hd(yt[0])||wH(ne,yt[0],ve));let nc=163969;Wi?(zS(59,Er,rs,ne),Ni(),nc&=-130):su(59,Er,rs,ne),Vo(ne,yt,nc)}function _c(ne){Ni(),R1(ne.token,gf),Ni(),Vo(ne,ne.types,528)}function Sl(ne){const yt=su(85,ne.pos,gf,ne);Ni(),ne.variableDeclaration&&(su(21,yt,rs,ne),Ln(ne.variableDeclaration),su(22,ne.variableDeclaration.end,rs,ne),Ni()),Ln(ne.block)}function kf(ne){Ln(ne.name),rs(":"),Ni();const yt=ne.initializer;if(!(wd(yt)&1024)){const Er=MS(yt);hD(Er.pos)}yi(yt,qn.parenthesizeExpressionForDisallowedComma)}function Rp(ne){Ln(ne.name),ne.objectAssignmentInitializer&&(Ni(),rs("="),Ni(),yi(ne.objectAssignmentInitializer,qn.parenthesizeExpressionForDisallowedComma))}function hn(ne){ne.expression&&(su(26,ne.pos,rs,ne),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma))}function v_(ne){Ln(ne.name),Mk(ne.initializer,ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function yh(ne){if(Rn("/**"),ne.comment){const yt=EN(ne.comment);if(yt){const Er=yt.split(/\r\n?|\n/g);for(const Wi of Er)b_(),Ni(),rs("*"),Ni(),Rn(Wi)}}ne.tags&&(ne.tags.length===1&&ne.tags[0].kind===351&&!ne.comment?(Ni(),Ln(ne.tags[0])):Vo(ne,ne.tags,33)),Ni(),Rn("*/")}function fm(ne){Hv(ne.tagName),A0(ne.typeExpression),TE(ne.comment)}function mx(ne){Hv(ne.tagName),Ln(ne.name),TE(ne.comment)}function BS(ne){Ni(),rs("{"),Ln(ne.name),rs("}")}function N2(ne){Hv(ne.tagName),Ni(),rs("{"),Ln(ne.class),rs("}"),TE(ne.comment)}function pS(ne){Hv(ne.tagName),A0(ne.constraint),Ni(),Vo(ne,ne.typeParameters,528),TE(ne.comment)}function jP(ne){Hv(ne.tagName),ne.typeExpression&&(ne.typeExpression.kind===316?A0(ne.typeExpression):(Ni(),rs("{"),Rn("Object"),ne.typeExpression.isArrayType&&(rs("["),rs("]")),rs("}"))),ne.fullName&&(Ni(),Ln(ne.fullName)),TE(ne.comment),ne.typeExpression&&ne.typeExpression.kind===329&&UP(ne.typeExpression)}function tp(ne){Hv(ne.tagName),ne.name&&(Ni(),Ln(ne.name)),TE(ne.comment),Bd(ne.typeExpression)}function gx(ne){TE(ne.comment),Bd(ne.typeExpression)}function VP(ne){Hv(ne.tagName),TE(ne.comment)}function UP(ne){Vo(ne,he.createNodeArray(ne.jsDocPropertyTags),33)}function Bd(ne){ne.typeParameters&&Vo(ne,he.createNodeArray(ne.typeParameters),33),ne.parameters&&Vo(ne,he.createNodeArray(ne.parameters),33),ne.type&&(b_(),Ni(),rs("*"),Ni(),Ln(ne.type))}function Bm(ne){Hv(ne.tagName),A0(ne.typeExpression),Ni(),ne.isBracketed&&rs("["),Ln(ne.name),ne.isBracketed&&rs("]"),TE(ne.comment)}function Hv(ne){rs("@"),Ln(ne)}function TE(ne){const yt=EN(ne);yt&&(Ni(),Rn(yt))}function A0(ne){ne&&(Ni(),rs("{"),Ln(ne.type),rs("}"))}function w2(ne){b_();const yt=ne.statements;if(yt.length===0||!$2(yt[0])||Hd(yt[0])){sc(ne,yt,Ae);return}Ae(ne)}function R2(ne){le(!!ne.hasNoDefaultLib,ne.syntheticFileReferences||[],ne.syntheticTypeReferences||[],ne.syntheticLibReferences||[]);for(const yt of ne.prepends)if(rF(yt)&&yt.syntheticReferences)for(const Er of yt.syntheticReferences)Ln(Er),b_()}function U(ne){ne.isDeclarationFile&&le(ne.hasNoDefaultLib,ne.referencedFiles,ne.typeReferenceDirectives,ne.libReferenceDirectives)}function le(ne,yt,Er,Wi){if(ne){const nc=Qt.getTextPos();Ys('/// '),qt&&qt.sections.push({pos:nc,end:Qt.getTextPos(),kind:"no-default-lib"}),b_()}if(ve&&ve.moduleName&&(Ys(`/// `),b_()),ve&&ve.amdDependencies)for(const nc of ve.amdDependencies)nc.name?Ys(`/// `):Ys(`/// `),b_();for(const nc of yt){const Vu=Qt.getTextPos();Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"reference",data:nc.fileName}),b_()}for(const nc of Er){const Vu=Qt.getTextPos(),ql=nc.resolutionMode&&nc.resolutionMode!==(ve==null?void 0:ve.impliedNodeFormat)?`resolution-mode="${nc.resolutionMode===99?"import":"require"}"`:"";Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:nc.resolutionMode?nc.resolutionMode===99?"type-import":"type-require":"type",data:nc.fileName}),b_()}for(const nc of Wi){const Vu=Qt.getTextPos();Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"lib",data:nc.fileName}),b_()}}function Ae(ne){const yt=ne.statements;pT(ne),Ot(ne.statements,s0),vo(ne);const Er=Ho(yt,Wi=>!$2(Wi));U(ne),Vo(ne,yt,1,void 0,Er===-1?yt.length:Er),EE(ne)}function rt(ne){const yt=wd(ne);!(yt&1024)&&ne.pos!==ne.expression.pos&&hD(ne.expression.pos),yi(ne.expression),!(yt&2048)&&ne.end!==ne.expression.end&&AE(ne.expression.end)}function Dn(ne){WA(ne,ne.elements,528,void 0)}function Ci(ne,yt,Er,Wi){let nc=!!yt;for(let Vu=0;Vu=Er.length||ql===0;if(Z_&&Wi&32768){E==null||E(Er),P==null||P(Er);return}Wi&15360&&(rs(Ict(Wi)),Z_&&Er&&hD(Er.pos,!0)),E==null||E(Er),Z_?Wi&1&&!(Et&&(!yt||ve&&mk(yt,ve)))?b_():Wi&256&&!(Wi&524288)&&Ni():UT(ne,yt,Er,Wi,nc,Vu,ql,Er.hasTrailingComma,Er),P==null||P(Er),Wi&15360&&(Z_&&Er&&AE(Er.end),rs(I4e(Wi)))}function UT(ne,yt,Er,Wi,nc,Vu,ql,Pf,Z_){const CE=(Wi&262144)===0;let a2=CE;const ru=w4(yt,Er[Vu],Wi);ru?(b_(ru),a2=!1):Wi&256&&Ni(),Wi&128&&Gp();const Fk=P4e(ne,nc);let Co,DE,MI=!1;for(let $P=0;$P0){if(Wi&131||(Gp(),MI=!0),a2&&Wi&60&&!ab(XR.pos)){const Yq=MS(XR);hD(Yq.pos,!!(Wi&512),!0)}b_(mw),a2=!1}else Co&&Wi&512&&Ni()}if(DE=Eu(XR),a2){const mw=MS(XR);hD(mw.pos)}else a2=CE;at=XR.pos,Fk(XR,ne,nc,$P),MI&&(w1(),MI=!1),Co=XR}const mO=Co?wd(Co):0,gO=ki||!!(mO&2048),qF=Pf&&Wi&64&&Wi&16;qF&&(Co&&!gO?su(28,Co.end,rs,Co):rs(",")),Co&&(yt?yt.end:-1)!==Co.end&&Wi&60&&!gO&&AE(qF&&(Z_!=null&&Z_.end)?Z_.end:Co.end),Wi&128&&w1(),He(DE);const LI=j6(yt,Er[Vu+ql-1],Wi,Z_);LI?b_(LI):Wi&2097408&&Ni()}function wI(ne){Qt.writeLiteral(ne)}function P4(ne){Qt.writeStringLiteral(ne)}function N4(ne){Qt.write(ne)}function G6(ne,yt){Qt.writeSymbol(ne,yt)}function rs(ne){Qt.writePunctuation(ne)}function Ob(){Qt.writeTrailingSemicolon(";")}function gf(ne){Qt.writeKeyword(ne)}function ko(ne){Qt.writeOperator(ne)}function ac(ne){Qt.writeParameter(ne)}function Ys(ne){Qt.writeComment(ne)}function Ni(){Qt.writeSpace(" ")}function Nl(ne){Qt.writeProperty(ne)}function Xd(ne){Qt.nonEscapingWrite?Qt.nonEscapingWrite(ne):Qt.write(ne)}function b_(ne=1){for(let yt=0;yt0)}function Gp(){Qt.increaseIndent()}function w1(){Qt.decreaseIndent()}function zS(ne,yt,Er,Wi){return En?R1(ne,Er,yt):o2(Wi,ne,Er,yt,R1)}function SE(ne,yt){k&&k(ne),yt(Cf(ne.kind)),F&&F(ne)}function R1(ne,yt,Er){const Wi=Cf(ne);return yt(Wi),Er<0?Er:Er+Wi.length}function JP(ne,yt,Er){if(wd(ne)&1)Ni();else if(Et){const Wi=Yx(ne,yt,Er);Wi?b_(Wi):Ni()}else b_()}function RI(ne){const yt=ne.split(/\r\n?|\n/g),Er=p7(yt);for(const Wi of yt){const nc=Er?Wi.slice(Er):Wi;nc.length&&(b_(),Rn(nc))}}function Uy(ne,yt){ne?(Gp(),b_(ne)):yt&&Ni()}function Lk(ne,yt){ne&&w1(),yt&&w1()}function w4(ne,yt,Er){if(Er&2||Et){if(Er&65536)return 1;if(yt===void 0)return!ne||ve&&mk(ne,ve)?0:1;if(yt.pos===at||yt.kind===12)return 0;if(ve&&ne&&!ab(ne.pos)&&!Hd(yt)&&(!yt.parent||Gg(yt.parent)===Gg(ne)))return Et?sO(Wi=>CSe(yt.pos,ne.pos,ve,Wi)):wH(ne,yt,ve)?0:1;if(Rm(yt,Er))return 1}return Er&1?1:0}function lw(ne,yt,Er){if(Er&2||Et){if(ne===void 0||yt===void 0||yt.kind===12)return 0;if(ve&&!Hd(ne)&&!Hd(yt))return Et&&xE(ne,yt)?sO(Wi=>Jie(ne,yt,ve,Wi)):!Et&&hx(ne,yt)?H9(ne,yt,ve)?0:1:Er&65536?1:0;if(Rm(ne,Er)||Rm(yt,Er))return 1}else if(Ry(yt))return 1;return Er&1?1:0}function j6(ne,yt,Er,Wi){if(Er&2||Et){if(Er&65536)return 1;if(yt===void 0)return!ne||ve&&mk(ne,ve)?0:1;if(ve&&ne&&!ab(ne.pos)&&!Hd(yt)&&(!yt.parent||yt.parent===ne)){if(Et){const nc=Wi&&!ab(Wi.end)?Wi.end:yt.end;return sO(Vu=>DSe(nc,ne.end,ve,Vu))}return ESe(ne,yt,ve)?0:1}if(Rm(yt,Er))return 1}return Er&1&&!(Er&131072)?1:0}function sO(ne){re.assert(!!Et);const yt=ne(!0);return yt===0?ne(!1):yt}function Ok(ne,yt){const Er=Et&&w4(yt,ne,0);return Er&&Uy(Er,!1),!!Er}function vB(ne,yt){const Er=Et&&j6(yt,ne,0,void 0);Er&&b_(Er)}function Rm(ne,yt){if(Hd(ne)){const Er=Ry(ne);return Er===void 0?(yt&65536)!==0:Er}return(yt&65536)!==0}function Yx(ne,yt,Er){return wd(ne)&262144?0:(ne=Av(ne),yt=Av(yt),Er=Av(Er),Ry(Er)?1:ve&&!Hd(ne)&&!Hd(yt)&&!Hd(Er)?Et?sO(Wi=>Jie(yt,Er,ve,Wi)):H9(yt,Er,ve)?0:1:0)}function uw(ne){return ne.statements.length===0&&(!ve||H9(ne,ne,ve))}function Av(ne){for(;ne.kind===217&&Hd(ne);)ne=ne.expression;return ne}function C0(ne,yt){if($g(ne)||s7(ne))return R4(ne);if(Sd(ne)&&ne.textSourceNode)return C0(ne.textSourceNode,yt);const Er=ve,Wi=!!Er&&!!ne.parent&&!Hd(ne);if(xN(ne)){if(!Wi||ts(ne)!==Gg(Er))return Kr(ne)}else if(Fm(ne)){if(!Wi||ts(ne)!==Gg(Er))return g3(ne)}else if(re.assertNode(ne,aR),!Wi)return ne.text;return m7(Er,ne,yt)}function gV(ne,yt,Er){if(ne.kind===11&&ne.textSourceNode){const nc=ne.textSourceNode;if(xn(nc)||Lu(nc)||S1(nc)||Fm(nc)){const Vu=S1(nc)?nc.text:C0(nc);return Er?`"${M7(Vu)}"`:yt||wd(ne)&16777216?`"${Q8(Vu)}"`:`"${SH(Vu)}"`}else return gV(nc,yt,Er)}const Wi=(yt?1:0)|(Er?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return _ie(ne,ve,Wi)}function pT(ne){ne&&wd(ne)&1048576||(Lt.push(Ze),Ze=0,dt.push(Ie),Ie=void 0,Ke.push(st))}function EE(ne){ne&&wd(ne)&1048576||(Ze=Lt.pop(),Ie=dt.pop(),st=Ke.pop())}function cO(ne){(!st||st===Yf(Ke))&&(st=new Set),st.add(ne)}function Qx(ne,yt){ct.push(Ct),Ct=ne,It.push(st),Yt=yt}function V6(){Ct=ct.pop(),Yt=It.pop()}function fw(ne){(!Yt||Yt===Yf(It))&&(Yt=new Set),Yt.add(ne)}function s0(ne){if(ne)switch(ne.kind){case 241:Ot(ne.statements,s0);break;case 256:case 254:case 246:case 247:s0(ne.statement);break;case 245:s0(ne.thenStatement),s0(ne.elseStatement);break;case 248:case 250:case 249:s0(ne.initializer),s0(ne.statement);break;case 255:s0(ne.caseBlock);break;case 269:Ot(ne.clauses,s0);break;case 296:case 297:Ot(ne.statements,s0);break;case 258:s0(ne.tryBlock),s0(ne.catchClause),s0(ne.finallyBlock);break;case 299:s0(ne.variableDeclaration),s0(ne.block);break;case 243:s0(ne.declarationList);break;case 261:Ot(ne.declarations,s0);break;case 260:case 169:case 208:case 263:GS(ne.name);break;case 262:GS(ne.name),wd(ne)&1048576&&(Ot(ne.parameters,s0),s0(ne.body));break;case 206:case 207:Ot(ne.elements,s0);break;case 272:s0(ne.importClause);break;case 273:GS(ne.name),s0(ne.namedBindings);break;case 274:GS(ne.name);break;case 280:GS(ne.name);break;case 275:Ot(ne.elements,s0);break;case 276:GS(ne.propertyName||ne.name);break}}function U6(ne){if(ne)switch(ne.kind){case 303:case 304:case 172:case 174:case 177:case 178:GS(ne.name);break}}function GS(ne){ne&&($g(ne)||s7(ne)?R4(ne):$_(ne)&&s0(ne))}function R4(ne){const yt=ne.emitNode.autoGenerate;if((yt.flags&7)===4)return Kq($J(ne),Lu(ne),yt.flags,yt.prefix,yt.suffix);{const Er=yt.id;return et[Er]||(et[Er]=hV(ne))}}function Kq(ne,yt,Er,Wi,nc){const Vu=vm(ne),ql=yt?Fe:we;return ql[Vu]||(ql[Vu]=H6(ne,yt,Er??0,jG(Wi,R4),jG(nc)))}function Qg(ne,yt){return BA(ne)&&!bB(ne,yt)&&!Pe.has(ne)}function bB(ne,yt){return yt?!!(Yt!=null&&Yt.has(ne)):!!(st!=null&&st.has(ne))}function BA(ne,yt){return ve?ns(ve,ne,i):!0}function $R(ne,yt){for(let Er=yt;Er&&Lx(Er,yt);Er=Er.nextContainer)if(XD(Er)&&Er.locals){const Wi=Er.locals.get(ey(ne));if(Wi&&Wi.flags&3257279)return!1}return!0}function M1(ne){switch(ne){case"":return Ze;case"#":return Ct;default:return(Ie==null?void 0:Ie.get(ne))??0}}function gS(ne,yt){switch(ne){case"":Ze=yt;break;case"#":Ct=yt;break;default:Ie??(Ie=new Map),Ie.set(ne,yt);break}}function _w(ne,yt,Er,Wi,nc){Wi.length>0&&Wi.charCodeAt(0)===35&&(Wi=Wi.slice(1));const Vu=D3(Er,Wi,"",nc);let ql=M1(Vu);if(ne&&!(ql&ne)){const Z_=D3(Er,Wi,ne===268435456?"_i":"_n",nc);if(Qg(Z_,Er))return ql|=ne,Er?fw(Z_):yt&&cO(Z_),gS(Vu,ql),Z_}for(;;){const Pf=ql&268435455;if(ql++,Pf!==8&&Pf!==13){const Z_=Pf<26?"_"+String.fromCharCode(97+Pf):"_"+(Pf-26),CE=D3(Er,Wi,Z_,nc);if(Qg(CE,Er))return Er?fw(CE):yt&&cO(CE),gS(Vu,ql),CE}}}function qR(ne,yt=Qg,Er,Wi,nc,Vu,ql){if(ne.length>0&&ne.charCodeAt(0)===35&&(ne=ne.slice(1)),Vu.length>0&&Vu.charCodeAt(0)===35&&(Vu=Vu.slice(1)),Er){const Z_=D3(nc,Vu,ne,ql);if(yt(Z_,nc))return nc?fw(Z_):Wi?cO(Z_):Pe.add(Z_),Z_}ne.charCodeAt(ne.length-1)!==95&&(ne+="_");let Pf=1;for(;;){const Z_=D3(nc,Vu,ne+Pf,ql);if(yt(Z_,nc))return nc?fw(Z_):Wi?cO(Z_):Pe.add(Z_),Z_;Pf++}}function i2(ne){return qR(ne,BA,!0,!1,!1,"","")}function hS(ne){const yt=C0(ne.name);return $R(yt,to(ne,XD))?yt:qR(yt,Qg,!1,!1,!1,"","")}function TB(ne){const yt=w9(ne),Er=Sd(yt)?UMe(yt.text):"module";return qR(Er,Qg,!1,!1,!1,"","")}function M4(){return qR("default",Qg,!1,!1,!1,"","")}function Zx(){return qR("class",Qg,!1,!1,!1,"","")}function lO(ne,yt,Er,Wi){return xn(ne.name)?Kq(ne.name,yt):_w(0,!1,yt,Er,Wi)}function H6(ne,yt,Er,Wi,nc){switch(ne.kind){case 80:case 81:return qR(C0(ne),Qg,!!(Er&16),!!(Er&8),yt,Wi,nc);case 267:case 266:return re.assert(!Wi&&!nc&&!yt),hS(ne);case 272:case 278:return re.assert(!Wi&&!nc&&!yt),TB(ne);case 262:case 263:{re.assert(!Wi&&!nc&&!yt);const Vu=ne.name;return Vu&&!$g(Vu)?H6(Vu,!1,Er,Wi,nc):M4()}case 277:return re.assert(!Wi&&!nc&&!yt),M4();case 231:return re.assert(!Wi&&!nc&&!yt),Zx();case 174:case 177:case 178:return lO(ne,yt,Wi,nc);case 167:return _w(0,!0,yt,Wi,nc);default:return _w(0,!1,yt,Wi,nc)}}function hV(ne){const yt=ne.emitNode.autoGenerate,Er=jG(yt.prefix,R4),Wi=jG(yt.suffix);switch(yt.flags&7){case 1:return _w(0,!!(yt.flags&8),Lu(ne),Er,Wi);case 2:return re.assertNode(ne,xn),_w(268435456,!!(yt.flags&8),!1,Er,Wi);case 3:return qR(Kr(ne),yt.flags&32?BA:Qg,!!(yt.flags&16),!!(yt.flags&8),Lu(ne),Er,Wi)}return re.fail(`Unsupported GeneratedIdentifierKind: ${re.formatEnum(yt.flags&7,W_e,!0)}.`)}function yV(ne,yt){const Er=Mt(2,ne,yt),Wi=Ki,nc=io,Vu=no;JF(yt),Er(ne,yt),SB(yt,Wi,nc,Vu)}function JF(ne){const yt=wd(ne),Er=MS(ne);uO(ne,yt,Er.pos,Er.end),yt&4096&&(ki=!0)}function SB(ne,yt,Er,Wi){const nc=wd(ne),Vu=MS(ne);nc&4096&&(ki=!1),L2(ne,nc,Vu.pos,Vu.end,yt,Er,Wi);const ql=wY(ne);ql&&L2(ne,nc,ql.pos,ql.end,yt,Er,Wi)}function uO(ne,yt,Er,Wi){Jc(),$i=!1;const nc=Er<0||(yt&1024)!==0||ne.kind===12,Vu=Wi<0||(yt&2048)!==0||ne.kind===12;(Er>0||Wi>0)&&Er!==Wi&&(nc||fO(Er,ne.kind!==359),(!nc||Er>=0&&yt&1024)&&(Ki=Er),(!Vu||Wi>=0&&yt&2048)&&(io=Wi,ne.kind===261&&(no=Wi))),Ot(y3(ne),dw),au()}function L2(ne,yt,Er,Wi,nc,Vu,ql){Jc();const Pf=Wi<0||(yt&2048)!==0||ne.kind===12;Ot(PY(ne),EB),(Er>0||Wi>0)&&Er!==Wi&&(Ki=nc,io=Vu,no=ql,!Pf&&ne.kind!==359&&eA(Wi)),au()}function dw(ne){(ne.hasLeadingNewline||ne.kind===2)&&Qt.writeLine(),vV(ne),ne.hasTrailingNewLine||ne.kind===2?Qt.writeLine():Qt.writeSpace(" ")}function EB(ne){Qt.isAtStartOfLine()||Qt.writeSpace(" "),vV(ne),ne.hasTrailingNewLine&&Qt.writeLine()}function vV(ne){const yt=jp(ne),Er=ne.kind===3?RM(yt):void 0;hG(yt,Er,Qt,0,yt.length,X)}function jp(ne){return ne.kind===3?`/*${ne.text}*/`:`//${ne.text}`}function sc(ne,yt,Er){Jc();const{pos:Wi,end:nc}=yt,Vu=wd(ne),ql=Wi<0||(Vu&1024)!==0,Pf=ki||nc<0||(Vu&2048)!==0;ql||O4(yt),au(),Vu&4096&&!ki?(ki=!0,Er(ne),ki=!1):Er(ne),Jc(),Pf||(fO(yt.end,!0),$i&&!Qt.isAtStartOfLine()&&Qt.writeLine()),au()}function hx(ne,yt){return ne=Gg(ne),ne.parent&&ne.parent===Gg(yt).parent}function xE(ne,yt){if(yt.pos-1&&Wi.indexOf(yt)===nc+1}function fO(ne,yt){$i=!1,yt?ne===0&&(ve!=null&&ve.isDeclarationFile)?mT(ne,_O):mT(ne,L4):ne===0&&mT(ne,bV)}function bV(ne,yt,Er,Wi,nc){jS(ne,yt)&&L4(ne,yt,Er,Wi,nc)}function _O(ne,yt,Er,Wi,nc){jS(ne,yt)||L4(ne,yt,Er,Wi,nc)}function $F(ne,yt){return e.onlyPrintJsDocStyle?$Ee(ne,yt)||uie(ne,yt):!0}function L4(ne,yt,Er,Wi,nc){!ve||!$F(ve.text,ne)||($i||(Wie(Ei(),Qt,nc,ne),$i=!0),K0(ne),hG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi?Qt.writeLine():Er===3&&Qt.writeSpace(" "))}function AE(ne){ki||ne===-1||fO(ne,!0)}function eA(ne){Vg(ne,KR)}function KR(ne,yt,Er,Wi){!ve||!$F(ve.text,ne)||(Qt.isAtStartOfLine()||Qt.writeSpace(" "),K0(ne),hG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi&&Qt.writeLine())}function hD(ne,yt,Er){ki||(Jc(),Vg(ne,yt?KR:Er?TC:L1),au())}function TC(ne,yt,Er){ve&&(K0(ne),hG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Er===2&&Qt.writeLine())}function L1(ne,yt,Er,Wi){ve&&(K0(ne),hG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi?Qt.writeLine():Qt.writeSpace(" "))}function mT(ne,yt){ve&&(Ki===-1||ne!==Ki)&&(SC(ne)?tA(yt):ep(ve.text,ne,yt,ne))}function Vg(ne,yt){ve&&(io===-1||ne!==io&&ne!==no)&&k8(ve.text,ne,yt)}function SC(ne){return Mo!==void 0&&yl(Mo).nodePos===ne}function tA(ne){if(!ve)return;const yt=yl(Mo).detachedCommentEndPos;Mo.length-1?Mo.pop():Mo=void 0,ep(ve.text,yt,ne,yt)}function O4(ne){const yt=ve&&mSe(ve.text,Ei(),Qt,c0,ne,X,ki);yt&&(Mo?Mo.push(yt):Mo=[yt])}function c0(ne,yt,Er,Wi,nc,Vu){!ve||!$F(ve.text,Wi)||(K0(Wi),hG(ne,yt,Er,Wi,nc,Vu),K0(nc))}function jS(ne,yt){return!!ve&&_de(ve.text,ne,yt)}function dO(ne){return ne.parsedSourceMap===void 0&&ne.sourceMapText!==void 0&&(ne.parsedSourceMap=j2e(ne.sourceMapText)||!1),ne.parsedSourceMap||void 0}function pO(ne,yt){const Er=Mt(3,ne,yt);Xq(yt),Er(ne,yt),Ty(yt)}function Xq(ne){const yt=wd(ne),Er=YL(ne);if(pA(ne)){re.assertIsDefined(ne.parent,"UnparsedNodes must have parent pointers");const Wi=dO(ne.parent);Wi&&fr&&fr.appendSourceMap(Qt.getLine(),Qt.getColumn(),Wi,ne.parent.sourceMapPath,ne.parent.getLineAndCharacterOfPosition(ne.pos),ne.parent.getLineAndCharacterOfPosition(ne.end))}else{const Wi=Er.source||Tr;ne.kind!==359&&!(yt&32)&&Er.pos>=0&&O2(Er.source||Tr,sy(Wi,Er.pos)),yt&128&&(En=!0)}}function Ty(ne){const yt=wd(ne),Er=YL(ne);pA(ne)||(yt&128&&(En=!1),ne.kind!==359&&!(yt&64)&&Er.end>=0&&O2(Er.source||Tr,Er.end))}function sy(ne,yt){return ne.skipTrivia?ne.skipTrivia(yt):Ff(ne.text,yt)}function K0(ne){if(En||ab(ne)||F4(Tr))return;const{line:yt,character:Er}=xm(Tr,ne);fr.addMapping(Qt.getLine(),Qt.getColumn(),Vr,yt,Er,void 0)}function O2(ne,yt){if(ne!==Tr){const Er=Tr,Wi=Vr;pw(ne),K0(yt),Vp(Er,Wi)}else K0(yt)}function o2(ne,yt,Er,Wi,nc){if(En||ne&&Eie(ne))return nc(yt,Er,Wi);const Vu=ne&&ne.emitNode,ql=Vu&&Vu.flags||0,Pf=Vu&&Vu.tokenSourceMapRanges&&Vu.tokenSourceMapRanges[yt],Z_=Pf&&Pf.source||Tr;return Wi=sy(Z_,Pf?Pf.pos:Wi),!(ql&256)&&Wi>=0&&O2(Z_,Wi),Wi=nc(yt,Er,Wi),Pf&&(Wi=Pf.end),!(ql&512)&&Wi>=0&&O2(Z_,Wi),Wi}function pw(ne){if(!En){if(Tr=ne,ne===Pn){Vr=Fr;return}F4(ne)||(Vr=fr.addSource(ne.fileName),e.inlineSources&&fr.setSourceContent(Vr,ne.text),Pn=ne,Fr=Vr)}}function Vp(ne,yt){Tr=ne,Vr=yt}function F4(ne){return mm(ne.fileName,".json")}}function Dct(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function Ict(e){return jQ[e&15360][0]}function I4e(e){return jQ[e&15360][1]}function pxe(e,n,i,c){n(e)}function k4e(e,n,i,c){n(e,i.select(c))}function GW(e,n,i,c){n(e,i)}function P4e(e,n){return e.length===1?pxe:typeof n=="object"?k4e:GW}var jQ,Wme,Bme,d4,zme,C$,kct=G({"src/compiler/emitter.ts"(){md(),md(),iP(),jQ=Dct(),Wme={hasGlobalName:Na,getReferencedExportContainer:Na,getReferencedImportDeclaration:Na,getReferencedDeclarationWithCollidingName:Na,isDeclarationWithCollidingName:Na,isValueAliasDeclaration:Na,isReferencedAliasDeclaration:Na,isTopLevelValueImportEqualsWithEntityName:Na,getNodeCheckFlags:Na,isDeclarationVisible:Na,isLateBound:e=>!1,collectLinkedAliases:Na,isImplementationOfOverload:Na,isRequiredInitializedParameter:Na,isOptionalUninitializedParameterProperty:Na,isExpandoFunctionDeclaration:Na,getPropertiesOfContainerFunction:Na,createTypeOfDeclaration:Na,createReturnTypeOfSignatureDeclaration:Na,createTypeOfExpression:Na,createLiteralConstValue:Na,isSymbolAccessible:Na,isEntityNameVisible:Na,getConstantValue:Na,getReferencedValueDeclaration:Na,getReferencedValueDeclarations:Na,getTypeReferenceSerializationKind:Na,isOptionalParameter:Na,moduleExportsSomeValue:Na,isArgumentsLocalBinding:Na,getExternalModuleFileFromDeclaration:Na,getTypeReferenceDirectivesForEntityName:Na,getTypeReferenceDirectivesForSymbol:Na,isLiteralConstDeclaration:Na,getJsxFactoryEntity:Na,getJsxFragmentFactoryEntity:Na,getAllAccessorDeclarations:Na,getSymbolOfExternalModuleSpecifier:Na,isBindingCapturedByNode:Na,getDeclarationStatementsForSourceFile:Na,isImportRequiredByAugmentation:Na,tryFindAmbientModule:Na},Bme=Pd(()=>F3({})),d4=Pd(()=>F3({removeComments:!0})),zme=Pd(()=>F3({removeComments:!0,neverAsciiEscape:!0})),C$=Pd(()=>F3({removeComments:!0,omitTrailingSemicolon:!0}))}});function Jae(e,n,i){if(!e.getDirectories||!e.readDirectory)return;const c=new Map,u=H1(i);return{useCaseSensitiveFileNames:i,fileExists:J,readFile:(Ie,ct)=>e.readFile(Ie,ct),directoryExists:e.directoryExists&&X,getDirectories:ae,readDirectory:ve,createDirectory:e.createDirectory&&ie,writeFile:e.writeFile&&$,addOrDeleteFileOrDirectory:Fe,addOrDeleteFile:et,clearCache:dt,realpath:e.realpath&&we};function d(Ie){return gm(Ie,n,u)}function h(Ie){return c.get(Su(Ie))}function S(Ie){const ct=h(ws(Ie));return ct&&(ct.sortedAndCanonicalizedFiles||(ct.sortedAndCanonicalizedFiles=ct.files.map(u).sort(),ct.sortedAndCanonicalizedDirectories=ct.directories.map(u).sort()),ct)}function E(Ie){return Jg(hf(Ie))}function P(Ie,ct){var Ct;if(!e.realpath||Su(d(e.realpath(Ie)))===ct){const Lt={files:Vn(e.readDirectory(Ie,void 0,void 0,["*.*"]),E)||[],directories:e.getDirectories(Ie)||[]};return c.set(Su(ct),Lt),Lt}if((Ct=e.directoryExists)!=null&&Ct.call(e,Ie))return c.set(ct,!1),!1}function k(Ie,ct){ct=Su(ct);const Ct=h(ct);if(Ct)return Ct;try{return P(Ie,ct)}catch{re.assert(!c.has(Su(ct)));return}}function F(Ie,ct){return ZS(Ie,ct,Of,Fp)>=0}function $(Ie,ct,Ct){const Lt=d(Ie),Ze=S(Lt);return Ze&&Pe(Ze,E(Ie),!0),e.writeFile(Ie,ct,Ct)}function J(Ie){const ct=d(Ie),Ct=S(ct);return Ct&&F(Ct.sortedAndCanonicalizedFiles,u(E(Ie)))||e.fileExists(Ie)}function X(Ie){const ct=d(Ie);return c.has(Su(ct))||e.directoryExists(Ie)}function ie(Ie){const ct=d(Ie),Ct=S(ct);if(Ct){const Lt=E(Ie),Ze=u(Lt),Ke=Ct.sortedAndCanonicalizedDirectories;d0(Ke,Ze,Fp)&&Ct.directories.push(Lt)}e.createDirectory(Ie)}function ae(Ie){const ct=d(Ie),Ct=k(Ie,ct);return Ct?Ct.directories.slice():e.getDirectories(Ie)}function ve(Ie,ct,Ct,Lt,Ze){const Ke=d(Ie),st=k(Ie,Ke);let It;if(st!==void 0)return ioe(Ie,ct,Ct,Lt,i,n,Ze,Yt,we);return e.readDirectory(Ie,ct,Ct,Lt,Ze);function Yt(at){const Qt=d(at);if(Qt===Ke)return st||Et(at,Qt);const nn=k(at,Qt);return nn!==void 0?nn||Et(at,Qt):Xde}function Et(at,Qt){if(It&&Qt===Ke)return It;const nn={files:Vn(e.readDirectory(at,void 0,void 0,["*.*"]),E)||Yn,directories:e.getDirectories(at)||Yn};return Qt===Ke&&(It=nn),nn}}function we(Ie){return e.realpath?e.realpath(Ie):Ie}function Fe(Ie,ct){if(h(ct)!==void 0){dt();return}const Lt=S(ct);if(!Lt)return;if(!e.directoryExists){dt();return}const Ze=E(Ie),Ke={fileExists:e.fileExists(ct),directoryExists:e.directoryExists(ct)};return Ke.directoryExists||F(Lt.sortedAndCanonicalizedDirectories,u(Ze))?dt():Pe(Lt,Ze,Ke.fileExists),Ke}function et(Ie,ct,Ct){if(Ct===1)return;const Lt=S(ct);Lt&&Pe(Lt,E(Ie),Ct===0)}function Pe(Ie,ct,Ct){const Lt=Ie.sortedAndCanonicalizedFiles,Ze=u(ct);if(Ct)d0(Lt,Ze,Fp)&&Ie.files.push(ct);else{const Ke=ZS(Lt,Ze,Of,Fp);if(Ke>=0){Lt.splice(Ke,1);const st=Ie.files.findIndex(It=>u(It)===Ze);Ie.files.splice(st,1)}}}function dt(){c.clear()}}function D$(e,n,i,c,u){var d;const h=QT(((d=n==null?void 0:n.configFile)==null?void 0:d.extendedSourceFiles)||Yn,u);i.forEach((S,E)=>{h.has(E)||(S.projects.delete(e),S.close())}),h.forEach((S,E)=>{const P=i.get(E);P?P.projects.add(e):i.set(E,{projects:new Set([e]),watcher:c(S,E),close:()=>{const k=i.get(E);!k||k.projects.size!==0||(k.watcher.close(),i.delete(E))}})})}function VQ(e,n){n.forEach(i=>{i.projects.delete(e)&&i.close()})}function Gme(e,n,i){e.delete(n)&&e.forEach(({extendedResult:c},u)=>{var d;(d=c.extendedSourceFiles)!=null&&d.some(h=>i(h)===n)&&Gme(e,u,i)})}function N4e(e,n,i){const c=new Map(e);a6(n,c,{createNewValue:i,onDeleteValue:Ib})}function jme(e,n,i){const c=e.getMissingFilePaths(),u=QT(c,Of,xT);a6(n,u,{createNewValue:i,onDeleteValue:Ib})}function jW(e,n,i){a6(e,n,{createNewValue:c,onDeleteValue:YE,onExistingValue:u});function c(d,h){return{watcher:i(d,h),flags:h}}function u(d,h,S){d.flags!==h&&(d.watcher.close(),e.set(S,c(S,h)))}}function dC({watchedDirPath:e,fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:c,options:u,program:d,extraFileExtensions:h,currentDirectory:S,useCaseSensitiveFileNames:E,writeLog:P,toPath:k,getScriptKind:F}){const $=_se(i);if(!$)return P(`Project: ${c} Detected ignored path: ${n}`),!0;if(i=$,i===e)return!1;if(r9(i)&&!(HSe(n,u,h)||ve()))return P(`Project: ${c} Detected file add/remove of non supported extension: ${n}`),!0;if(Wpe(n,u.configFile.configFileSpecs,vf(ws(c),S),E,S))return P(`Project: ${c} Detected excluded file: ${n}`),!0;if(!d||Ng(u)||u.outDir)return!1;if(Zb(i)){if(u.declarationDir)return!1}else if(!pv(i,h3))return!1;const J=wg(i),X=ls(d)?void 0:w4e(d)?d.getProgramOrUndefined():d,ie=!X&&!ls(d)?d:void 0;if(ae(J+".ts")||ae(J+".tsx"))return P(`Project: ${c} Detected output file: ${n}`),!0;return!1;function ae(we){return X?!!X.getSourceFileByPath(we):ie?ie.getState().fileInfos.has(we):!!lr(d,Fe=>k(Fe)===we)}function ve(){if(!F)return!1;switch(F(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return TP(u);case 6:return sI(u);case 0:return!1}}}function w4e(e){return!!e.getState}function Vme(e,n){return e?e.isEmittedFile(n):!1}function mxe(e,n,i,c){gMe(n===2?i:ku);const u={watchFile:(ie,ae,ve,we)=>e.watchFile(ie,ae,ve,we),watchDirectory:(ie,ae,ve,we)=>e.watchDirectory(ie,ae,(ve&1)!==0,we)},d=n!==0?{watchFile:J("watchFile"),watchDirectory:J("watchDirectory")}:void 0,h=n===2?{watchFile:F,watchDirectory:$}:d||u,S=n===2?k:O$;return{watchFile:E("watchFile"),watchDirectory:E("watchDirectory")};function E(ie){return(ae,ve,we,Fe,et,Pe)=>{var dt;return Bpe(ae,ie==="watchFile"?Fe==null?void 0:Fe.excludeFiles:Fe==null?void 0:Fe.excludeDirectories,P(),((dt=e.getCurrentDirectory)==null?void 0:dt.call(e))||"")?S(ae,we,Fe,et,Pe):h[ie].call(void 0,ae,ve,we,Fe,et,Pe)}}function P(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function k(ie,ae,ve,we,Fe){return i(`ExcludeWatcher:: Added:: ${X(ie,ae,ve,we,Fe,c)}`),{close:()=>i(`ExcludeWatcher:: Close:: ${X(ie,ae,ve,we,Fe,c)}`)}}function F(ie,ae,ve,we,Fe,et){i(`FileWatcher:: Added:: ${X(ie,ve,we,Fe,et,c)}`);const Pe=d.watchFile(ie,ae,ve,we,Fe,et);return{close:()=>{i(`FileWatcher:: Close:: ${X(ie,ve,we,Fe,et,c)}`),Pe.close()}}}function $(ie,ae,ve,we,Fe,et){const Pe=`DirectoryWatcher:: Added:: ${X(ie,ve,we,Fe,et,c)}`;i(Pe);const dt=H_(),Ie=d.watchDirectory(ie,ae,ve,we,Fe,et),ct=H_()-dt;return i(`Elapsed:: ${ct}ms ${Pe}`),{close:()=>{const Ct=`DirectoryWatcher:: Close:: ${X(ie,ve,we,Fe,et,c)}`;i(Ct);const Lt=H_();Ie.close();const Ze=H_()-Lt;i(`Elapsed:: ${Ze}ms ${Ct}`)}}}function J(ie){return(ae,ve,we,Fe,et,Pe)=>u[ie].call(void 0,ae,(...dt)=>{const Ie=`${ie==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${dt[0]} ${dt[1]!==void 0?dt[1]:""}:: ${X(ae,we,Fe,et,Pe,c)}`;i(Ie);const ct=H_();ve.call(void 0,...dt);const Ct=H_()-ct;i(`Elapsed:: ${Ct}ms ${Ie}`)},we,Fe,et,Pe)}function X(ie,ae,ve,we,Fe,et){return`WatchInfo: ${ie} ${ae} ${JSON.stringify(ve)} ${et?et(we,Fe):Fe===void 0?we:`${we} ${Fe}`}`}}function UQ(e){const n=e==null?void 0:e.fallbackPolling;return{watchFile:n!==void 0?n:1}}function YE(e){e.watcher.close()}var Ume,Hme,R4e=G({"src/compiler/watchUtilities.ts"(){md(),Ume=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Ume||{}),Hme=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Hme||{})}});function Jme(e,n,i="tsconfig.json"){return jC(e,c=>{const u=vl(c,i);return n(u)?u:void 0})}function HQ(e,n){const i=ws(n),c=nE(e)?e:vl(i,e);return hf(c)}function JQ(e,n,i){let c;return Ot(e,d=>{const h=g0(d,n);if(h.pop(),!c){c=h;return}const S=Math.min(c.length,h.length);for(let E=0;E{let h;try{cf("beforeIORead"),h=e(c,n().charset),cf("afterIORead"),Tb("I/O Read","beforeIORead","afterIORead")}catch(S){d&&d(S.message),h=""}return h!==void 0?eQ(c,h,u,i):void 0}}function $ae(e,n,i){return(c,u,d,h)=>{try{cf("beforeIOWrite"),L7(c,u,d,e,n,i),cf("afterIOWrite"),Tb("I/O Write","beforeIOWrite","afterIOWrite")}catch(S){h&&h(S.message)}}}function $me(e,n,i=w0){const c=new Map,u=H1(i.useCaseSensitiveFileNames);function d(k){return c.has(k)?!0:(P.directoryExists||i.directoryExists)(k)?(c.set(k,!0),!0):!1}function h(){return ws(hf(i.getExecutingFilePath()))}const S=JE(e),E=i.realpath&&(k=>i.realpath(k)),P={getSourceFile:gxe(k=>P.readFile(k),()=>e,n),getDefaultLibLocation:h,getDefaultLibFileName:k=>vl(h(),$D(k)),writeFile:$ae((k,F,$)=>i.writeFile(k,F,$),k=>(P.createDirectory||i.createDirectory)(k),k=>d(k)),getCurrentDirectory:Pd(()=>i.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i.useCaseSensitiveFileNames,getCanonicalFileName:u,getNewLine:()=>S,fileExists:k=>i.fileExists(k),readFile:k=>i.readFile(k),trace:k=>i.write(k+S),directoryExists:k=>i.directoryExists(k),getEnvironmentVariable:k=>i.getEnvironmentVariable?i.getEnvironmentVariable(k):"",getDirectories:k=>i.getDirectories(k),realpath:E,readDirectory:(k,F,$,J,X)=>i.readDirectory(k,F,$,J,X),createDirectory:k=>i.createDirectory(k),createHash:wc(i,i.createHash)};return P}function NR(e,n,i){const c=e.readFile,u=e.fileExists,d=e.directoryExists,h=e.createDirectory,S=e.writeFile,E=new Map,P=new Map,k=new Map,F=new Map,$=ie=>{const ae=n(ie),ve=E.get(ae);return ve!==void 0?ve!==!1?ve:void 0:J(ae,ie)},J=(ie,ae)=>{const ve=c.call(e,ae);return E.set(ie,ve!==void 0?ve:!1),ve};e.readFile=ie=>{const ae=n(ie),ve=E.get(ae);return ve!==void 0?ve!==!1?ve:void 0:!mm(ie,".json")&&!fxe(ie)?c.call(e,ie):J(ae,ie)};const X=i?(ie,ae,ve,we)=>{const Fe=n(ie),et=typeof ae=="object"?ae.impliedNodeFormat:void 0,Pe=F.get(et),dt=Pe==null?void 0:Pe.get(Fe);if(dt)return dt;const Ie=i(ie,ae,ve,we);return Ie&&(Zb(ie)||mm(ie,".json"))&&F.set(et,(Pe||new Map).set(Fe,Ie)),Ie}:void 0;return e.fileExists=ie=>{const ae=n(ie),ve=P.get(ae);if(ve!==void 0)return ve;const we=u.call(e,ie);return P.set(ae,!!we),we},S&&(e.writeFile=(ie,ae,...ve)=>{const we=n(ie);P.delete(we);const Fe=E.get(we);Fe!==void 0&&Fe!==ae?(E.delete(we),F.forEach(et=>et.delete(we))):X&&F.forEach(et=>{const Pe=et.get(we);Pe&&Pe.text!==ae&&et.delete(we)}),S.call(e,ie,ae,...ve)}),d&&(e.directoryExists=ie=>{const ae=n(ie),ve=k.get(ae);if(ve!==void 0)return ve;const we=d.call(e,ie);return k.set(ae,!!we),we},h&&(e.createDirectory=ie=>{const ae=n(ie);k.delete(ae),h.call(e,ie)})),{originalReadFile:c,originalFileExists:u,originalDirectoryExists:d,originalCreateDirectory:h,originalWriteFile:S,getSourceFileWithCache:X,readFileWithCache:$}}function L4e(e,n,i){let c;return c=Oi(c,e.getConfigFileParsingDiagnostics()),c=Oi(c,e.getOptionsDiagnostics(i)),c=Oi(c,e.getSyntacticDiagnostics(n,i)),c=Oi(c,e.getGlobalDiagnostics(i)),c=Oi(c,e.getSemanticDiagnostics(n,i)),gv(e.getCompilerOptions())&&(c=Oi(c,e.getDeclarationDiagnostics(n,i))),o7(c||Yn)}function hxe(e,n){let i="";for(const c of e)i+=qme(c,n);return i}function qme(e,n){const i=`${YO(e)} TS${e.code}: ${D2(e.messageText,n.getNewLine())}${n.getNewLine()}`;if(e.file){const{line:c,character:u}=xm(e.file,e.start),d=e.file.fileName;return`${PX(d,n.getCurrentDirectory(),S=>n.getCanonicalFileName(S))}(${c+1},${u+1}): `+i}return i}function p4(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return re.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function wR(e,n){return n+e+P$}function yxe(e,n,i,c,u,d){const{line:h,character:S}=xm(e,n),{line:E,character:P}=xm(e,n+i),k=xm(e,e.text.length).line,F=E-h>=4;let $=(E+1+"").length;F&&($=Math.max(eZ.length,$));let J="";for(let X=h;X<=E;X++){J+=d.getNewLine(),F&&h+1i.getCanonicalFileName(E)):e.fileName;let S="";return S+=c(h,"\x1B[96m"),S+=":",S+=c(`${u+1}`,"\x1B[93m"),S+=":",S+=c(`${d+1}`,"\x1B[93m"),S}function kA(e,n){let i="";for(const c of e){if(c.file){const{file:u,start:d}=c;i+=qae(u,d,n),i+=" - "}if(i+=wR(YO(c),p4(c.category)),i+=wR(` TS${c.code}: `,"\x1B[90m"),i+=D2(c.messageText,n.getNewLine()),c.file&&c.code!==N.File_appears_to_be_binary.code&&(i+=n.getNewLine(),i+=yxe(c.file,c.start,c.length,"",p4(c.category),n)),c.relatedInformation){i+=n.getNewLine();for(const{file:u,start:d,length:h,messageText:S}of c.relatedInformation)u&&(i+=n.getNewLine(),i+=sse+qae(u,d,n),i+=yxe(u,d,h,cse,"\x1B[96m",n)),i+=n.getNewLine(),i+=cse+D2(S,n.getNewLine())}i+=n.getNewLine()}return i}function D2(e,n,i=0){if(As(e))return e;if(e===void 0)return"";let c="";if(i){c+=n;for(let u=0;uej(d,e,i,c,u,n,h)}}function Xae(e){return As(e)?e:Q0(e.fileName)}function Yae(e,n,i,c,u){return{nameAndMode:Xme,resolve:(d,h)=>Kpe(d,e,i,c,n,u,h)}}function KQ(e,n,i,c,u,d,h,S){if(e.length===0)return Yn;const E=[],P=new Map,k=S(n,i,c,d,h);for(const F of e){const $=k.nameAndMode.getName(F),J=k.nameAndMode.getMode(F,u),X=_$($,J);let ie=P.get(X);ie||P.set(X,ie=k.resolve($,J)),E.push(ie)}return E}function k6(e,n){return yF(void 0,e,(i,c)=>i&&n(i,c))}function yF(e,n,i,c){let u;return d(e,n,void 0);function d(h,S,E){if(c){const P=c(h,E);if(P)return P}return Ot(S,(P,k)=>{if(P&&(u!=null&&u.has(P.sourceFile.path)))return;const F=i(P,E,k);return F||!P?F:((u||(u=new Set)).add(P.sourceFile.path),d(P.commandLine.projectReferences,P.references,P))})}}function VW(e,n,i){const c=e.configFilePath?ws(e.configFilePath):n;return vl(c,`__lib_node_modules_lookup_${i}__.ts`)}function Qae(e){const n=e.split(".");let i=n[1],c=2;for(;n[c]&&n[c]!=="d";)i+=(c===2?"/":"-")+n[c],c++;return"@typescript/lib-"+i}function UW(e){const n=Q0(e.fileName),i=i$.get(n);return{libName:n,libFileName:i}}function ew(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function HW(e){return e.pos!==void 0}function XQ(e,n){var i,c,u,d;const h=re.checkDefined(e.getSourceFileByPath(n.file)),{kind:S,index:E}=n;let P,k,F,$;switch(S){case 3:const J=ZQ(h,E);if(F=(c=(i=e.getResolvedModule(h,J.text,Kae(h,E)))==null?void 0:i.resolvedModule)==null?void 0:c.packageId,J.pos===-1)return{file:h,packageId:F,text:J.text};P=Ff(h.text,J.pos),k=J.end;break;case 4:({pos:P,end:k}=h.referencedFiles[E]);break;case 5:({pos:P,end:k,resolutionMode:$}=h.typeReferenceDirectives[E]),F=(d=(u=e.getResolvedTypeReferenceDirective(h,Q0(h.typeReferenceDirectives[E].fileName),$||h.impliedNodeFormat))==null?void 0:u.resolvedTypeReferenceDirective)==null?void 0:d.packageId;break;case 7:({pos:P,end:k}=h.libReferenceDirectives[E]);break;default:return re.assertNever(S)}return{file:h,pos:P,end:k,packageId:F}}function bxe(e,n,i,c,u,d,h,S,E,P){if(!e||S!=null&&S()||!fv(e.getRootFileNames(),n))return!1;let k;if(!fv(e.getProjectReferences(),P,X)||e.getSourceFiles().some($)||e.getMissingFilePaths().some(u))return!1;const F=e.getCompilerOptions();if(!qie(F,i)||e.resolvedLibReferences&&Jb(e.resolvedLibReferences,(ae,ve)=>h(ve)))return!1;if(F.configFile&&i.configFile)return F.configFile.text===i.configFile.text;return!0;function $(ae){return!J(ae)||d(ae.path)}function J(ae){return ae.version===c(ae.resolvedPath,ae.fileName)}function X(ae,ve,we){return tY(ae,ve)&&ie(e.getResolvedProjectReferences()[we],ae)}function ie(ae,ve){if(ae){if(ni(k,ae))return!0;const Fe=vF(ve),et=E(Fe);return!et||ae.commandLine.options.configFile!==et.options.configFile||!fv(ae.commandLine.fileNames,et.fileNames)?!1:((k||(k=[])).push(ae),!Ot(ae.references,(Pe,dt)=>!ie(Pe,ae.commandLine.projectReferences[dt])))}const we=vF(ve);return!E(we)}}function m4(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Zae(e,n,i,c){const u=ese(e,n,i,c);return typeof u=="object"?u.impliedNodeFormat:u}function ese(e,n,i,c){switch(Jd(c)){case 3:case 99:return pv(e,[".d.mts",".mts",".mjs"])?99:pv(e,[".d.cts",".cts",".cjs"])?1:pv(e,[".d.ts",".ts",".tsx",".js",".jsx"])?u():void 0;default:return}function u(){const d=lae(n,i,c),h=[];d.failedLookupLocations=h,d.affectingLocations=h;const S=m$(e,d);return{impliedNodeFormat:(S==null?void 0:S.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:h,packageJsonScope:S}}}function Txe(e,n){return e?g9(e.getCompilerOptions(),n,c$):!1}function Sxe(e,n,i,c,u,d){return{rootNames:e,options:n,host:i,oldProgram:c,configFileParsingDiagnostics:u,typeScriptVersion:d}}function YQ(e,n,i,c,u){var d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et;const Pe=ls(e)?Sxe(e,n,i,c,u):e,{rootNames:dt,options:Ie,configFileParsingDiagnostics:ct,projectReferences:Ct,typeScriptVersion:Lt}=Pe;let{oldProgram:Ze}=Pe;const Ke=Pd(()=>zh("ignoreDeprecations",N.Invalid_value_for_ignoreDeprecations));let st,It,Yt,Et,at,Qt,nn;const Rn=new Map;let cn=zg();const qt={},Kt={};let wr=IR(),Wr,jt,En,fr,Tr,Vr,Pn,Fr,Ki,io;const no=typeof Ie.maxNodeModuleJsDepth=="number"?Ie.maxNodeModuleJsDepth:0;let os=0;const Mo=new Map,$i=new Map;(d=ps)==null||d.push(ps.Phase.Program,"createProgram",{configFilePath:Ie.configFilePath,rootDir:Ie.rootDir},!0),cf("beforeProgram");const ki=Pe.host||M4e(Ie),gc=k$(ki);let Wl=Ie.noLib;const Jc=Pd(()=>ki.getDefaultLibFileName(Ie)),au=ki.getDefaultLibLocation?ki.getDefaultLibLocation():ws(Jc()),qn=HL(),za=ki.getCurrentDirectory(),Ia=s3(Ie),zi=Q9(Ie,Ia),na=new Map;let _a,us,Au;const Qu=ki.hasInvalidatedResolutions||bg;ki.resolveModuleNameLiterals?(Au=ki.resolveModuleNameLiterals.bind(ki),us=(h=ki.getModuleResolutionCache)==null?void 0:h.call(ki)):ki.resolveModuleNames?(Au=(fn,$n,ri,Li,yo,jo)=>ki.resolveModuleNames(fn.map(vxe),$n,jo==null?void 0:jo.map(vxe),ri,Li,yo).map(Oo=>Oo?Oo.extension!==void 0?{resolvedModule:Oo}:{resolvedModule:{...Oo,extension:SP(Oo.resolvedFileName)}}:lse),us=(S=ki.getModuleResolutionCache)==null?void 0:S.call(ki)):(us=s4(za,N1,Ie),Au=(fn,$n,ri,Li,yo)=>KQ(fn,$n,ri,Li,yo,ki,us,I$));let Cu;if(ki.resolveTypeReferenceDirectiveReferences)Cu=ki.resolveTypeReferenceDirectiveReferences.bind(ki);else if(ki.resolveTypeReferenceDirectives)Cu=(fn,$n,ri,Li,yo)=>ki.resolveTypeReferenceDirectives(fn.map(Xae),$n,ri,Li,yo==null?void 0:yo.impliedNodeFormat).map(jo=>({resolvedTypeReferenceDirective:jo}));else{const fn=sae(za,N1,void 0,us==null?void 0:us.getPackageJsonInfoCache(),us==null?void 0:us.optionsToRedirectsKey);Cu=($n,ri,Li,yo,jo)=>KQ($n,ri,Li,yo,jo,ki,fn,Yae)}const yf=ki.hasInvalidatedLibResolutions||bg;let w_;if(ki.resolveLibrary)w_=ki.resolveLibrary.bind(ki);else{const fn=s4(za,N1,Ie,us==null?void 0:us.getPackageJsonInfoCache());w_=($n,ri,Li)=>Zpe($n,ri,Li,ki,fn)}const Eu=new Map;let He=new Map,Hn=zg(),dr=!1;const Mr=new Map;let Pr;const Bt=ki.useCaseSensitiveFileNames()?new Map:void 0;let ln,Wn,$r,Ge;const Br=!!((E=ki.useSourceOfProjectReferenceRedirect)!=null&&E.call(ki))&&!Ie.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ei,fileExists:Ln,directoryExists:Sr}=tse({compilerHost:ki,getSymlinkCache:Lb,useSourceOfProjectReferenceRedirect:Br,toPath:hc,getResolvedProjectReferences:mf,getSourceOfProjectReferenceRedirect:P1,forEachResolvedProjectReference:Bh}),yi=ki.readFile.bind(ki);(P=ps)==null||P.push(ps.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Ze});const go=Txe(Ze,Ie);(k=ps)==null||k.pop();let Ao;if((F=ps)==null||F.push(ps.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ao=G_(),($=ps)==null||$.pop(),Ao!==2){if(st=[],It=[],Ct&&(ln||(ln=Ct.map(pr)),dt.length&&(ln==null||ln.forEach((fn,$n)=>{if(!fn)return;const ri=Ng(fn.commandLine.options);if(Br){if(ri||Zp(fn.commandLine.options)===0)for(const Li of fn.commandLine.fileNames)Jt(Li,{kind:1,index:$n})}else if(ri)Jt(SA(ri,".d.ts"),{kind:2,index:$n});else if(Zp(fn.commandLine.options)===0){const Li=Pd(()=>hF(fn.commandLine,!ki.useCaseSensitiveFileNames()));for(const yo of fn.commandLine.fileNames)!Zb(yo)&&!mm(yo,".json")&&Jt(gF(yo,fn.commandLine,!ki.useCaseSensitiveFileNames(),Li),{kind:2,index:$n})}}))),(J=ps)==null||J.push(ps.Phase.Program,"processRootFiles",{count:dt.length}),Ot(dt,(fn,$n)=>ah(fn,!1,!1,{kind:0,index:$n})),(X=ps)==null||X.pop(),jt??(jt=dt.length?Qpe(Ie,ki):Yn),En=IR(),jt.length){(ie=ps)==null||ie.push(ps.Phase.Program,"processTypeReferences",{count:jt.length});const fn=Ie.configFilePath?ws(Ie.configFilePath):za,$n=vl(fn,hj),ri=ma(jt,$n);for(let Li=0;Li{ah(xv($n),!0,!1,{kind:6,index:ri})})}Pr=oc(p2(Mr.entries(),([fn,$n])=>$n===void 0?fn:void 0)),Yt=nh(st,Cc).concat(It),st=void 0,It=void 0}if(re.assert(!!Pr),Ze&&ki.onReleaseOldSourceFile){const fn=Ze.getSourceFiles();for(const $n of fn){const ri=M_($n.resolvedPath);(go||!ri||ri.impliedNodeFormat!==$n.impliedNodeFormat||$n.resolvedPath===$n.path&&ri.resolvedPath!==$n.path)&&ki.onReleaseOldSourceFile($n,Ze.getCompilerOptions(),!!M_($n.path))}ki.getParsedCommandLine||Ze.forEachResolvedProjectReference($n=>{Zm($n.sourceFile.path)||ki.onReleaseOldSourceFile($n.sourceFile,Ze.getCompilerOptions(),!1)})}Ze&&ki.onReleaseParsedCommandLine&&yF(Ze.getProjectReferences(),Ze.getResolvedProjectReferences(),(fn,$n,ri)=>{const Li=($n==null?void 0:$n.commandLine.projectReferences[ri])||Ze.getProjectReferences()[ri],yo=vF(Li);Wn!=null&&Wn.has(hc(yo))||ki.onReleaseParsedCommandLine(yo,fn,Ze.getCompilerOptions())}),Ze=void 0,Tr=void 0,Pn=void 0,Ki=void 0;const Io={getRootFileNames:()=>dt,getSourceFile:km,getSourceFileByPath:M_,getSourceFiles:()=>Yt,getMissingFilePaths:()=>Pr,getModuleResolutionCache:()=>us,getFilesByNameMap:()=>Mr,getCompilerOptions:()=>Ie,getSyntacticDiagnostics:bE,getOptionsDiagnostics:Tl,getGlobalDiagnostics:Gd,getSemanticDiagnostics:hh,getCachedSemanticDiagnostics:qo,getSuggestionDiagnostics:_n,getDeclarationDiagnostics:Qi,getBindAndCheckDiagnostics:d_,getProgramDiagnostics:Ka,getTypeChecker:Og,getClassifiableNames:Tc,getCommonSourceDirectory:bl,emit:pl,getCurrentDirectory:()=>za,getNodeCount:()=>Og().getNodeCount(),getIdentifierCount:()=>Og().getIdentifierCount(),getSymbolCount:()=>Og().getSymbolCount(),getTypeCount:()=>Og().getTypeCount(),getInstantiationCount:()=>Og().getInstantiationCount(),getRelationCacheSizes:()=>Og().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Wr,getResolvedTypeReferenceDirectives:()=>wr,getAutomaticTypeDirectiveNames:()=>jt,getAutomaticTypeDirectiveResolutions:()=>En,isSourceFileFromExternalLibrary:xg,isSourceFileDefaultLibrary:Wy,getSourceFileFromReference:Xp,getLibFileFromReference:wp,sourceFileToPackageName:He,redirectTargetsMap:Hn,usesUriStyleNodeCoreModules:dr,resolvedModules:Vr,resolvedTypeReferenceDirectiveNames:Fr,resolvedLibReferences:fr,getResolvedModule:ze,getResolvedTypeReferenceDirective:Ce,forEachResolvedModule:kt,forEachResolvedTypeReferenceDirective:qe,getCurrentPackagesMap:()=>io,typesPackageExists:mn,packageBundlesTypes:Jn,isEmittedFile:Uv,getConfigFileParsingDiagnostics:ag,getProjectReferences:Cp,getResolvedProjectReferences:mf,getProjectReferenceRedirect:um,getResolvedProjectReferenceToRedirect:Qm,getResolvedProjectReferenceByPath:Zm,forEachResolvedProjectReference:Bh,isSourceOfProjectReferenceRedirect:VT,emitBuildInfo:Ym,fileExists:Ln,readFile:yi,directoryExists:Sr,getSymlinkCache:Lb,realpath:(Fe=ki.realpath)==null?void 0:Fe.bind(ki),useCaseSensitiveFileNames:()=>ki.useCaseSensitiveFileNames(),getCanonicalFileName:N1,getFileIncludeReasons:()=>cn,structureIsReused:Ao,writeFile:xa};return Ei(),Wr==null||Wr.forEach(fn=>{switch(fn.kind){case 1:return qn.add(Ii(fn.file&&M_(fn.file),fn.fileProcessingReason,fn.diagnostic,fn.args||Yn));case 0:const{file:$n,pos:ri,end:Li}=XQ(Io,fn.reason);return qn.add(Pp($n,re.checkDefined(ri),re.checkDefined(Li)-ri,fn.diagnostic,...fn.args||Yn));case 2:return fn.diagnostics.forEach(yo=>qn.add(yo));default:re.assertNever(fn)}}),vi(),cf("afterProgram"),Tb("Program","beforeProgram","afterProgram"),(et=ps)==null||et.pop(),Io;function ze(fn,$n,ri){var Li;return(Li=Vr==null?void 0:Vr.get(fn.path))==null?void 0:Li.get($n,ri)}function Ce(fn,$n,ri){var Li;return(Li=Fr==null?void 0:Fr.get(fn.path))==null?void 0:Li.get($n,ri)}function kt(fn,$n){Mt(Vr,fn,$n)}function qe(fn,$n){Mt(Fr,fn,$n)}function Mt(fn,$n,ri){var Li;ri?(Li=fn==null?void 0:fn.get(ri.path))==null||Li.forEach((yo,jo,Oo)=>$n(yo,jo,Oo,ri.path)):fn==null||fn.forEach((yo,jo)=>yo.forEach((Oo,ca,Fc)=>$n(Oo,ca,Fc,jo)))}function ge(){return io||(io=new Map,kt(({resolvedModule:fn})=>{fn!=null&&fn.packageId&&io.set(fn.packageId.name,fn.extension===".d.ts"||!!io.get(fn.packageId.name))}),io)}function mn(fn){return ge().has(pae(fn))}function Jn(fn){return!!ge().get(fn)}function Nn(fn){var $n;($n=fn.resolutionDiagnostics)!=null&&$n.length&&(Wr??(Wr=[])).push({kind:2,diagnostics:fn.resolutionDiagnostics})}function Lr(fn,$n,ri,Li){if(ki.resolveModuleNameLiterals||!ki.resolveModuleNames)return Nn(ri);if(!us||Kv($n))return;const yo=vf(fn.originalFileName,za),jo=ws(yo),Oo=Ro(fn),ca=us.getFromNonRelativeNameCache($n,Li,jo,Oo);ca&&Nn(ca)}function qi(fn,$n,ri){var Li,yo;if(!fn.length)return Yn;const jo=vf($n.originalFileName,za),Oo=Ro($n);(Li=ps)==null||Li.push(ps.Phase.Program,"resolveModuleNamesWorker",{containingFileName:jo}),cf("beforeResolveModule");const ca=Au(fn,jo,Oo,Ie,$n,ri);return cf("afterResolveModule"),Tb("ResolveModule","beforeResolveModule","afterResolveModule"),(yo=ps)==null||yo.pop(),ca}function vo(fn,$n,ri){var Li,yo;if(!fn.length)return[];const jo=As($n)?void 0:$n,Oo=As($n)?$n:vf($n.originalFileName,za),ca=jo&&Ro(jo);(Li=ps)==null||Li.push(ps.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Oo}),cf("beforeResolveTypeReference");const Fc=Cu(fn,Oo,ca,Ie,jo,ri);return cf("afterResolveTypeReference"),Tb("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(yo=ps)==null||yo.pop(),Fc}function Ro(fn){const $n=Qm(fn.originalFileName);if($n||!Zb(fn.originalFileName))return $n;const ri=Ts(fn.path);if(ri)return ri;if(!ki.realpath||!Ie.preserveSymlinks||!fn.originalFileName.includes(IP))return;const Li=hc(ki.realpath(fn.originalFileName));return Li===fn.path?void 0:Ts(Li)}function Ts(fn){const $n=P1(fn);if(As($n))return Qm($n);if($n)return Bh(ri=>{const Li=Ng(ri.commandLine.options);if(Li)return hc(Li)===fn?ri:void 0})}function Cc(fn,$n){return pf(Pc(fn),Pc($n))}function Pc(fn){if(OE(au,fn.fileName,!1)){const $n=Jg(fn.fileName);if($n==="lib.d.ts"||$n==="lib.es6.d.ts")return 0;const ri=DM(xf($n,"lib."),".d.ts"),Li=r$.indexOf(ri);if(Li!==-1)return Li+1}return r$.length+2}function hc(fn){return gm(fn,za,N1)}function bl(){if(at===void 0){const fn=gi(Yt,$n=>JL($n,Io));at=zW(Ie,()=>Qo(fn,$n=>$n.isDeclarationFile?void 0:$n.fileName),za,N1,$n=>nt(fn,$n))}return at}function Tc(){var fn;if(!nn){Og(),nn=new Set;for(const $n of Yt)(fn=$n.classifiableNames)==null||fn.forEach(ri=>nn.add(ri))}return nn}function Tf(fn,$n){if(Ao===0&&!$n.ambientModuleNames.length)return qi(fn,$n,void 0);let ri,Li,yo;const jo=lse,Oo=Ze&&Ze.getSourceFile($n.fileName);for(let Xs=0;Xs{const Li=($n?$n.commandLine.projectReferences:Ct)[ri],yo=pr(Li);return fn?!yo||yo.sourceFile!==fn.sourceFile||!fv(fn.commandLine.fileNames,yo.commandLine.fileNames):yo!==void 0},(fn,$n)=>{const ri=$n?Zm($n.sourceFile.path).commandLine.projectReferences:Ct;return!fv(fn,ri,tY)})}function G_(){var fn;if(!Ze)return 0;const $n=Ze.getCompilerOptions();if(Td($n,Ie))return 0;const ri=Ze.getRootFileNames();if(!fv(ri,dt)||!Bl())return 0;Ct&&(ln=Ct.map(pr));const Li=[],yo=[];if(Ao=2,Ze.getMissingFilePaths().some(ks=>ki.fileExists(ks)))return 0;const jo=Ze.getSourceFiles();let Oo;(ks=>{ks[ks.Exists=0]="Exists",ks[ks.Modified=1]="Modified"})(Oo||(Oo={}));const ca=new Map;for(const ks of jo){const Xs=t_(ks.fileName,us,ki,Ie);let Vs=ki.getSourceFileByPath?ki.getSourceFileByPath(ks.fileName,ks.resolvedPath,Xs,void 0,go):ki.getSourceFile(ks.fileName,Xs,void 0,go);if(!Vs)return 0;Vs.packageJsonLocations=(fn=Xs.packageJsonLocations)!=null&&fn.length?Xs.packageJsonLocations:void 0,Vs.packageJsonScope=Xs.packageJsonScope,re.assert(!Vs.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let wu;if(ks.redirectInfo){if(Vs!==ks.redirectInfo.unredirected)return 0;wu=!1,Vs=ks}else if(Ze.redirectTargetsMap.has(ks.path)){if(Vs!==ks)return 0;wu=!1}else wu=Vs!==ks;Vs.path=ks.path,Vs.originalFileName=ks.originalFileName,Vs.resolvedPath=ks.resolvedPath,Vs.fileName=ks.fileName;const Yp=Ze.sourceFileToPackageName.get(ks.path);if(Yp!==void 0){const Q=ca.get(Yp),ft=wu?1:0;if(Q!==void 0&&ft===1||Q===1)return 0;ca.set(Yp,ft)}if(wu)ks.impliedNodeFormat!==Vs.impliedNodeFormat?Ao=1:fv(ks.libReferenceDirectives,Vs.libReferenceDirectives,bm)?ks.hasNoDefaultLib!==Vs.hasNoDefaultLib?Ao=1:fv(ks.referencedFiles,Vs.referencedFiles,bm)?(Cg(Vs),fv(ks.imports,Vs.imports,ay)&&fv(ks.moduleAugmentations,Vs.moduleAugmentations,ay)?(ks.flags&12582912)!==(Vs.flags&12582912)?Ao=1:fv(ks.typeReferenceDirectives,Vs.typeReferenceDirectives,bm)||(Ao=1):Ao=1):Ao=1:Ao=1,yo.push(Vs);else if(Qu(ks.path))Ao=1,yo.push(Vs);else for(const Q of ks.ambientModuleNames)Rn.set(Q,ks.fileName);Li.push(Vs)}if(Ao!==2)return Ao;for(const ks of yo){const Xs=Exe(ks),Vs=Tf(Xs,ks);(Pn??(Pn=new Map)).set(ks.path,Vs),sie(Xs,ks,Vs,(br,oo)=>Ze.getResolvedModule(ks,br,oo),qU,use)&&(Ao=1);const Yp=ks.typeReferenceDirectives,Q=ma(Yp,ks);(Ki??(Ki=new Map)).set(ks.path,Q),sie(Yp,ks,Q,(br,oo)=>Ze==null?void 0:Ze.getResolvedTypeReferenceDirective(ks,br,oo),GMe,Xme)&&(Ao=1)}if(Ao!==2)return Ao;if(zMe($n,Ie)||Ze.resolvedLibReferences&&Jb(Ze.resolvedLibReferences,(ks,Xs)=>t2(Xs).actual!==ks.actual))return 1;if(ki.hasChangedAutomaticTypeDirectiveNames){if(ki.hasChangedAutomaticTypeDirectiveNames())return 1}else if(jt=Qpe(Ie,ki),!fv(Ze.getAutomaticTypeDirectiveNames(),jt))return 1;Pr=Ze.getMissingFilePaths(),re.assert(Li.length===Ze.getSourceFiles().length);for(const ks of Li)Mr.set(ks.path,ks);return Ze.getFilesByNameMap().forEach((ks,Xs)=>{if(!ks){Mr.set(Xs,ks);return}if(ks.path===Xs){Ze.isSourceFileFromExternalLibrary(ks)&&$i.set(ks.path,!0);return}Mr.set(Xs,Mr.get(ks.path))}),Yt=Li,cn=Ze.getFileIncludeReasons(),Wr=Ze.getFileProcessingDiagnostics(),wr=Ze.getResolvedTypeReferenceDirectives(),jt=Ze.getAutomaticTypeDirectiveNames(),En=Ze.getAutomaticTypeDirectiveResolutions(),He=Ze.sourceFileToPackageName,Hn=Ze.redirectTargetsMap,dr=Ze.usesUriStyleNodeCoreModules,Vr=Ze.resolvedModules,Fr=Ze.resolvedTypeReferenceDirectiveNames,fr=Ze.resolvedLibReferences,io=Ze.getCurrentPackagesMap(),2}function u_(fn){return{getPrependNodes:Yg,getCanonicalFileName:N1,getCommonSourceDirectory:Io.getCommonSourceDirectory,getCompilerOptions:Io.getCompilerOptions,getCurrentDirectory:()=>za,getSourceFile:Io.getSourceFile,getSourceFileByPath:Io.getSourceFileByPath,getSourceFiles:Io.getSourceFiles,getLibFileFromReference:Io.getLibFileFromReference,isSourceFileFromExternalLibrary:xg,getResolvedProjectReferenceToRedirect:Qm,getProjectReferenceRedirect:um,isSourceOfProjectReferenceRedirect:VT,getSymlinkCache:Lb,writeFile:fn||xa,isEmitBlocked:R_,readFile:$n=>ki.readFile($n),fileExists:$n=>{const ri=hc($n);return M_(ri)?!0:ni(Pr,ri)?!1:ki.fileExists($n)},useCaseSensitiveFileNames:()=>ki.useCaseSensitiveFileNames(),getBuildInfo:$n=>{var ri;return(ri=Io.getBuildInfo)==null?void 0:ri.call(Io,$n)},getSourceFileFromReference:($n,ri)=>Io.getSourceFileFromReference($n,ri),redirectTargetsMap:Hn,getFileIncludeReasons:Io.getFileIncludeReasons,createHash:wc(ki,ki.createHash)}}function xa(fn,$n,ri,Li,yo,jo){ki.writeFile(fn,$n,ri,Li,yo,jo)}function Ym(fn){var $n,ri;re.assert(!Ng(Ie)),($n=ps)==null||$n.push(ps.Phase.Emit,"emitBuildInfo",{},!0),cf("beforeEmit");const Li=Uae(Wme,u_(fn),void 0,ZN,!1,!0);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),(ri=ps)==null||ri.pop(),Li}function mf(){return ln}function Cp(){return Ct}function Yg(){return ise(Ct,(fn,$n)=>{var ri;return(ri=ln[$n])==null?void 0:ri.commandLine},fn=>{const $n=hc(fn),ri=M_($n);return ri?ri.text:Mr.has($n)?void 0:ki.readFile($n)},ki)}function xg(fn){return!!$i.get(fn.path)}function Wy(fn){if(!fn.isDeclarationFile)return!1;if(fn.hasNoDefaultLib)return!0;if(!Ie.noLib)return!1;const $n=ki.useCaseSensitiveFileNames()?ZA:pN;return Ie.lib?gt(Ie.lib,ri=>$n(fn.fileName,fr.get(ri).actual)):$n(fn.fileName,Jc())}function Og(){return Qt||(Qt=oT(Io))}function pl(fn,$n,ri,Li,yo,jo){var Oo,ca;(Oo=ps)==null||Oo.push(ps.Phase.Emit,"emit",{path:fn==null?void 0:fn.path},!0);const Fc=Ag(()=>og(Io,fn,$n,ri,Li,yo,jo));return(ca=ps)==null||ca.pop(),Fc}function R_(fn){return na.has(hc(fn))}function og(fn,$n,ri,Li,yo,jo,Oo){if(!Oo){const ks=nse(fn,$n,ri,Li);if(ks)return ks}const ca=Og().getEmitResolver(Ng(Ie)?void 0:$n,Li);cf("beforeEmit");const Fc=Uae(ca,u_(ri),$n,Rme(Ie,jo,yo),yo,!1,Oo);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),Fc}function km(fn){return M_(hc(fn))}function M_(fn){return Mr.get(fn)||void 0}function oy(fn,$n,ri){return o7(fn?$n(fn,ri):ea(Io.getSourceFiles(),Li=>(ri&&ri.throwIfCancellationRequested(),$n(Li,ri))))}function bE(fn,$n){return oy(fn,Pm,$n)}function hh(fn,$n){return oy(fn,va,$n)}function qo(fn){var $n;return fn?($n=qt.perFile)==null?void 0:$n.get(fn.path):qt.allDiagnostics}function d_(fn,$n){return x0(fn,$n)}function Ka(fn){var $n;if(c3(fn,Ie,Io))return Yn;const ri=qn.getDiagnostics(fn.fileName);return($n=fn.commentDirectives)!=null&&$n.length?fe(fn,fn.commentDirectives,ri).diagnostics:ri}function Qi(fn,$n){const ri=Io.getCompilerOptions();return!fn||Ng(ri)?$o(fn,$n):oy(fn,Fs,$n)}function Pm(fn){return Gy(fn)?(fn.additionalSyntacticDiagnostics||(fn.additionalSyntacticDiagnostics=_i(fn)),Hi(fn.additionalSyntacticDiagnostics,fn.parseDiagnostics)):fn.parseDiagnostics}function Ag(fn){try{return fn()}catch($n){throw $n instanceof QO&&(Qt=void 0),$n}}function va(fn,$n){return Hi(rse(x0(fn,$n),Ie),Ka(fn))}function x0(fn,$n){return xs(fn,$n,qt,Nm)}function Nm(fn,$n){return Ag(()=>{if(c3(fn,Ie,Io))return Yn;const ri=Og();re.assert(!!fn.bindDiagnostics);const yo=(fn.scriptKind===1||fn.scriptKind===2)&&tW(fn,Ie),jo=pP(fn,Ie.checkJs),ca=!(!!fn.checkJsDirective&&fn.checkJsDirective.enabled===!1)&&(fn.scriptKind===3||fn.scriptKind===4||fn.scriptKind===5||jo||yo||fn.scriptKind===7);let Fc=ca?fn.bindDiagnostics:Yn,ks=ca?ri.getDiagnostics(fn,$n):Yn;return jo&&(Fc=gi(Fc,Xs=>sD.has(Xs.code)),ks=gi(ks,Xs=>sD.has(Xs.code))),Md(fn,ca&&!jo,Fc,ks,yo?fn.jsDocDiagnostics:void 0)})}function Md(fn,$n,...ri){var Li;const yo=Gf(ri);if(!$n||!((Li=fn.commentDirectives)!=null&&Li.length))return yo;const{diagnostics:jo,directives:Oo}=fe(fn,fn.commentDirectives,yo);for(const ca of Oo.getUnusedExpectations())jo.push(Zz(fn,ca.range,N.Unused_ts_expect_error_directive));return jo}function fe(fn,$n,ri){const Li=YTe(fn,$n);return{diagnostics:ri.filter(jo=>Xn(jo,Li)===-1),directives:Li}}function _n(fn,$n){return Ag(()=>Og().getSuggestionDiagnostics(fn,$n))}function Xn(fn,$n){const{file:ri,start:Li}=fn;if(!ri)return-1;const yo=eR(ri);let jo=Nd(yo,Li).line-1;for(;jo>=0;){if($n.markUsed(jo))return jo;const Oo=ri.text.slice(yo[jo],yo[jo+1]).trim();if(Oo!==""&&!/^(\s*)\/\/(.*)$/.test(Oo))return-1;jo--}return-1}function _i(fn){return Ag(()=>{const $n=[];return ri(fn,fn),cF(fn,ri,Li),$n;function ri(ca,Fc){switch(Fc.kind){case 169:case 172:case 174:if(Fc.questionToken===ca)return $n.push(Oo(ca,N.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(Fc.type===ca)return $n.push(Oo(ca,N.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(ca.kind){case 273:if(ca.isTypeOnly)return $n.push(Oo(Fc,N._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(ca.isTypeOnly)return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(ca.isTypeOnly)return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,qE(ca)?"import...type":"export...type")),"skip";break;case 271:return $n.push(Oo(ca,N.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(ca.isExportEquals)return $n.push(Oo(ca,N.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(ca.token===119)return $n.push(Oo(ca,N.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const Xs=Cf(120);return re.assertIsDefined(Xs),$n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,Xs)),"skip";case 267:const Vs=ca.flags&32?Cf(145):Cf(144);return re.assertIsDefined(Vs),$n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,Vs)),"skip";case 265:return $n.push(Oo(ca,N.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return ca.body?void 0:($n.push(Oo(ca,N.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const wu=re.checkDefined(Cf(94));return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,wu)),"skip";case 235:return $n.push(Oo(ca,N.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return $n.push(Oo(ca.type,N.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return $n.push(Oo(ca.type,N.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:re.fail()}}function Li(ca,Fc){if(Spe(Fc)){const ks=lr(Fc.modifiers,Jh);ks&&$n.push(Oo(ks,N.Decorators_are_not_valid_here))}else if(S6(Fc)&&Fc.modifiers){const ks=Ho(Fc.modifiers,Jh);if(ks>=0){if(Os(Fc)&&!Ie.experimentalDecorators)$n.push(Oo(Fc.modifiers[ks],N.Decorators_are_not_valid_here));else if(Ih(Fc)){const Xs=Ho(Fc.modifiers,_W);if(Xs>=0){const Vs=Ho(Fc.modifiers,zY);if(ks>Xs&&Vs>=0&&ks=0&&ks=0&&$n.push(ml(Oo(Fc.modifiers[wu],N.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Oo(Fc.modifiers[ks],N.Decorator_used_before_export_here)))}}}}}switch(Fc.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(ca===Fc.typeParameters)return $n.push(jo(ca,N.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(ca===Fc.modifiers)return yo(Fc.modifiers,Fc.kind===243),"skip";break;case 172:if(ca===Fc.modifiers){for(const ks of ca)Mf(ks)&&ks.kind!==126&&ks.kind!==129&&$n.push(Oo(ks,N.The_0_modifier_can_only_be_used_in_TypeScript_files,Cf(ks.kind)));return"skip"}break;case 169:if(ca===Fc.modifiers&>(ca,Mf))return $n.push(jo(ca,N.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(ca===Fc.typeArguments)return $n.push(jo(ca,N.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function yo(ca,Fc){for(const ks of ca)switch(ks.kind){case 87:if(Fc)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:$n.push(Oo(ks,N.The_0_modifier_can_only_be_used_in_TypeScript_files,Cf(ks.kind)));break;case 126:case 95:case 90:case 129:}}function jo(ca,Fc,...ks){const Xs=ca.pos;return Pp(fn,Xs,ca.end-Xs,Fc,...ks)}function Oo(ca,Fc,...ks){return Ud(fn,ca,Fc,...ks)}})}function $o(fn,$n){return xs(fn,$n,Kt,Sc)}function Sc(fn,$n){return Ag(()=>{const ri=Og().getEmitResolver(fn,$n);return T4e(u_(ku),ri,fn)||Yn})}function xs(fn,$n,ri,Li){var yo;const jo=fn?(yo=ri.perFile)==null?void 0:yo.get(fn.path):ri.allDiagnostics;if(jo)return jo;const Oo=Li(fn,$n);return fn?(ri.perFile||(ri.perFile=new Map)).set(fn.path,Oo):ri.allDiagnostics=Oo,Oo}function Fs(fn,$n){return fn.isDeclarationFile?[]:$o(fn,$n)}function Tl(){return o7(Hi(qn.getGlobalDiagnostics(),fc()))}function fc(){if(!Ie.configFile)return Yn;let fn=qn.getDiagnostics(Ie.configFile.fileName);return Bh($n=>{fn=Hi(fn,qn.getDiagnostics($n.sourceFile.fileName))}),fn}function Gd(){return dt.length?o7(Og().getGlobalDiagnostics().slice()):Yn}function ag(){return ct||Yn}function ah(fn,$n,ri,Li){sg(hf(fn),$n,ri,void 0,Li)}function bm(fn,$n){return fn.fileName===$n.fileName}function ay(fn,$n){return fn.kind===80?$n.kind===80&&fn.escapedText===$n.escapedText:$n.kind===11&&fn.text===$n.text}function yp(fn,$n){const ri=he.createStringLiteral(fn),Li=he.createImportDeclaration(void 0,void 0,ri,void 0);return DG(Li,2),kl(ri,Li),kl(Li,$n),ri.flags&=-17,Li.flags&=-17,ri}function Cg(fn){if(fn.imports)return;const $n=Gy(fn),ri=Bv(fn);let Li,yo,jo;if((F0(Ie)||ri)&&!fn.isDeclarationFile){Ie.importHelpers&&(Li=[yp(HN,fn)]);const Xs=HH(UH(Ie,fn),Ie);Xs&&(Li||(Li=[])).push(yp(Xs,fn))}for(const Xs of fn.statements)ca(Xs,!1);const Oo=$n&&GH(Ie);(fn.flags&4194304||Oo)&&Fc(fn),fn.imports=Li||Yn,fn.moduleAugmentations=yo||Yn,fn.ambientModuleNames=jo||Yn;return;function ca(Xs,Vs){if(eH(Xs)){const wu=w9(Xs);wu&&Sd(wu)&&wu.text&&(!Vs||!Kv(wu.text))&&(Q2(Xs,!1),Li=ur(Li,wu),!dr&&os===0&&!fn.isDeclarationFile&&(dr=qf(wu.text,"node:")))}else if(py(Xs)&&dh(Xs)&&(Vs||ul(Xs,128)||fn.isDeclarationFile)){Xs.name.parent=Xs;const wu=K2(Xs.name);if(ri||Vs&&!Kv(wu))(yo||(yo=[])).push(Xs.name);else if(!Vs){fn.isDeclarationFile&&(jo||(jo=[])).push(wu);const Yp=Xs.body;if(Yp)for(const Q of Yp.statements)ca(Q,!0)}}}function Fc(Xs){const Vs=/import|require/g;for(;Vs.exec(Xs.text)!==null;){const wu=ks(Xs,Vs.lastIndex);Oo&&y1(wu,!0)||Py(wu)&&wu.arguments.length>=1&&Cm(wu.arguments[0])?(Q2(wu,!1),Li=ur(Li,wu.arguments[0])):MN(wu)&&(Q2(wu,!1),Li=ur(Li,wu.argument.literal))}}function ks(Xs,Vs){let wu=Xs;const Yp=Q=>{if(Q.pos<=Vs&&(Vsmm(yo,Oo))){ri&&(eD(yo)?ri(N.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,fn):ri(N.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,fn,"'"+Gf(Ia).join("', '")+"'"));return}const jo=$n(fn);if(ri)if(jo)ew(Li)&&yo===ki.getCanonicalFileName(M_(Li.file).fileName)&&ri(N.A_file_cannot_have_a_reference_to_itself);else{const Oo=um(fn);Oo?ri(N.Output_file_0_has_not_been_built_from_source_file_1,Oo,fn):ri(N.File_0_not_found,fn)}return jo}else{const yo=Ie.allowNonTsExtensions&&$n(fn);if(yo)return yo;if(ri&&Ie.allowNonTsExtensions){ri(N.File_0_not_found,fn);return}const jo=Ot(Ia[0],Oo=>$n(fn+Oo));return ri&&!jo&&ri(N.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,fn,"'"+Gf(Ia).join("', '")+"'"),jo}}function sg(fn,$n,ri,Li,yo){r1(fn,jo=>Hu(jo,$n,ri,yo,Li),(jo,...Oo)=>Ja(void 0,yo,jo,Oo),yo)}function Jt(fn,$n){return sg(fn,!1,!1,void 0,$n)}function ci(fn,$n,ri){!ew(ri)&>(cn.get($n.path),ew)?Ja($n,ri,N.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[$n.fileName,fn]):Ja($n,ri,N.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[fn,$n.fileName])}function da(fn,$n,ri,Li,yo,jo,Oo){var ca;const Fc=Ck.createRedirectedSourceFile({redirectTarget:fn,unredirected:$n});return Fc.fileName=ri,Fc.path=Li,Fc.resolvedPath=yo,Fc.originalFileName=jo,Fc.packageJsonLocations=(ca=Oo.packageJsonLocations)!=null&&ca.length?Oo.packageJsonLocations:void 0,Fc.packageJsonScope=Oo.packageJsonScope,$i.set(Li,os>0),Fc}function Hu(fn,$n,ri,Li,yo){var jo,Oo;(jo=ps)==null||jo.push(ps.Phase.Program,"findSourceFile",{fileName:fn,isDefaultLib:$n||void 0,fileIncludeKind:dX[Li.kind]});const ca=A_(fn,$n,ri,Li,yo);return(Oo=ps)==null||Oo.pop(),ca}function t_(fn,$n,ri,Li){const yo=ese(vf(fn,za),$n==null?void 0:$n.getPackageJsonInfoCache(),ri,Li),jo=iu(Li),Oo=q9(Li);return typeof yo=="object"?{...yo,languageVersion:jo,setExternalModuleIndicator:Oo,jsDocParsingMode:ri.jsDocParsingMode}:{languageVersion:jo,impliedNodeFormat:yo,setExternalModuleIndicator:Oo,jsDocParsingMode:ri.jsDocParsingMode}}function A_(fn,$n,ri,Li,yo){var jo;const Oo=hc(fn);if(Br){let Vs=P1(Oo);if(!Vs&&ki.realpath&&Ie.preserveSymlinks&&Zb(fn)&&fn.includes(IP)){const wu=hc(ki.realpath(fn));wu!==Oo&&(Vs=P1(wu))}if(Vs){const wu=As(Vs)?Hu(Vs,$n,ri,Li,yo):void 0;return wu&&Dg(wu,Oo,void 0),wu}}const ca=fn;if(Mr.has(Oo)){const Vs=Mr.get(Oo);if(gd(Vs||void 0,Li),Vs&&Ie.forceConsistentCasingInFileNames!==!1){const wu=Vs.fileName;hc(wu)!==hc(fn)&&(fn=um(fn)||fn);const Q=tf(wu,za),ft=tf(fn,za);Q!==ft&&ci(fn,Vs,Li)}return Vs&&$i.get(Vs.path)&&os===0?($i.set(Vs.path,!1),Ie.noResolve||(fb(Vs,$n),FS(Vs)),Ie.noLib||q0(Vs),Mo.set(Vs.path,!1),i0(Vs)):Vs&&Mo.get(Vs.path)&&osJa(void 0,Li,N.Cannot_read_file_0_Colon_1,[fn,Vs]),go);if(yo){const Vs=jM(yo),wu=Eu.get(Vs);if(wu){const Yp=da(wu,Xs,fn,Oo,hc(fn),ca,ks);return Hn.add(wu.path,fn),Dg(Yp,Oo,Fc),gd(Yp,Li),He.set(Oo,aie(yo)),It.push(Yp),Yp}else Xs&&(Eu.set(Vs,Xs),He.set(Oo,aie(yo)))}if(Dg(Xs,Oo,Fc),Xs){if($i.set(Oo,os>0),Xs.fileName=fn,Xs.path=Oo,Xs.resolvedPath=hc(fn),Xs.originalFileName=ca,Xs.packageJsonLocations=(jo=ks.packageJsonLocations)!=null&&jo.length?ks.packageJsonLocations:void 0,Xs.packageJsonScope=ks.packageJsonScope,gd(Xs,Li),ki.useCaseSensitiveFileNames()){const Vs=Q0(Oo),wu=Bt.get(Vs);wu?ci(fn,wu,Li):Bt.set(Vs,Xs)}Wl=Wl||Xs.hasNoDefaultLib&&!ri,Ie.noResolve||(fb(Xs,$n),FS(Xs)),Ie.noLib||q0(Xs),i0(Xs),$n?st.push(Xs):It.push(Xs)}return Xs}function gd(fn,$n){fn&&cn.add(fn.path,$n)}function Dg(fn,$n,ri){ri?(Mr.set(ri,fn),Mr.set($n,fn||!1)):Mr.set($n,fn)}function um(fn){const $n=Ig(fn);return $n&&P_($n,fn)}function Ig(fn){if(!(!ln||!ln.length||Zb(fn)||mm(fn,".json")))return Qm(fn)}function P_(fn,$n){const ri=Ng(fn.commandLine.options);return ri?SA(ri,".d.ts"):gF($n,fn.commandLine,!ki.useCaseSensitiveFileNames())}function Qm(fn){$r===void 0&&($r=new Map,Bh(ri=>{hc(Ie.configFilePath)!==ri.sourceFile.path&&ri.commandLine.fileNames.forEach(Li=>$r.set(hc(Li),ri.sourceFile.path))}));const $n=$r.get(hc(fn));return $n&&Zm($n)}function Bh(fn){return k6(ln,fn)}function P1(fn){if(Zb(fn))return Ge===void 0&&(Ge=new Map,Bh($n=>{const ri=Ng($n.commandLine.options);if(ri){const Li=SA(ri,".d.ts");Ge.set(hc(Li),!0)}else{const Li=Pd(()=>hF($n.commandLine,!ki.useCaseSensitiveFileNames()));Ot($n.commandLine.fileNames,yo=>{if(!Zb(yo)&&!mm(yo,".json")){const jo=gF(yo,$n.commandLine,!ki.useCaseSensitiveFileNames(),Li);Ge.set(hc(jo),yo)}})}})),Ge.get(fn)}function VT(fn){return Br&&!!Qm(fn)}function Zm(fn){if(Wn)return Wn.get(fn)||void 0}function fb(fn,$n){Ot(fn.referencedFiles,(ri,Li)=>{sg(HQ(ri.fileName,fn.fileName),$n,!1,void 0,{kind:4,file:fn.path,index:Li})})}function FS(fn){const $n=fn.typeReferenceDirectives;if(!$n.length)return;const ri=(Ki==null?void 0:Ki.get(fn.path))||ma($n,fn),Li=IR();(Fr??(Fr=new Map)).set(fn.path,Li);for(let yo=0;yo<$n.length;yo++){const jo=fn.typeReferenceDirectives[yo],Oo=ri[yo],ca=Q0(jo.fileName);Li.set(ca,$Q(jo,fn.impliedNodeFormat),Oo);const Fc=jo.resolutionMode||fn.impliedNodeFormat;dT(ca,Fc,Oo,{kind:5,file:fn.path,index:yo})}}function dT(fn,$n,ri,Li){var yo,jo;(yo=ps)==null||yo.push(ps.Phase.Program,"processTypeReferenceDirective",{directive:fn,hasResolved:!!ri.resolvedTypeReferenceDirective,refKind:Li.kind,refPath:ew(Li)?Li.file:void 0}),$0(fn,$n,ri,Li),(jo=ps)==null||jo.pop()}function $0(fn,$n,ri,Li){var yo;Nn(ri);const jo=(yo=wr.get(fn,$n))==null?void 0:yo.resolvedTypeReferenceDirective;if(jo&&jo.primary)return;let Oo=!0;const{resolvedTypeReferenceDirective:ca}=ri;if(ca){if(ca.isExternalLibraryImport&&os++,ca.primary)sg(ca.resolvedFileName,!1,!1,ca.packageId,Li);else if(jo){if(ca.resolvedFileName!==jo.resolvedFileName){const Fc=ki.readFile(ca.resolvedFileName),ks=km(jo.resolvedFileName);Fc!==ks.text&&Ja(ks,Li,N.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[fn,ca.resolvedFileName,jo.resolvedFileName])}Oo=!1}else sg(ca.resolvedFileName,!1,!1,ca.packageId,Li);ca.isExternalLibraryImport&&os--}else Ja(void 0,Li,N.Cannot_find_type_definition_file_for_0,[fn]);Oo&&wr.set(fn,$n,ri)}function xv(fn){const $n=fr==null?void 0:fr.get(fn);if($n)return $n.actual;const ri=t2(fn);return(fr??(fr=new Map)).set(fn,ri),ri.actual}function t2(fn){var $n,ri,Li,yo,jo;const Oo=Tr==null?void 0:Tr.get(fn);if(Oo)return Oo;if(Ao!==0&&Ze&&!yf(fn)){const Vs=($n=Ze.resolvedLibReferences)==null?void 0:$n.get(fn);if(Vs){if(Vs.resolution&&DR(Ie,ki)){const wu=Qae(fn),Yp=VW(Ie,za,fn);Df(ki,Vs.resolution.resolvedModule?Vs.resolution.resolvedModule.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,wu,vf(Yp,za),(ri=Vs.resolution.resolvedModule)==null?void 0:ri.resolvedFileName,((Li=Vs.resolution.resolvedModule)==null?void 0:Li.packageId)&&jM(Vs.resolution.resolvedModule.packageId))}return(Tr??(Tr=new Map)).set(fn,Vs),Vs}}const ca=Qae(fn),Fc=VW(Ie,za,fn);(yo=ps)==null||yo.push(ps.Phase.Program,"resolveLibrary",{resolveFrom:Fc}),cf("beforeResolveLibrary");const ks=w_(ca,Fc,Ie,fn);cf("afterResolveLibrary"),Tb("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(jo=ps)==null||jo.pop();const Xs={resolution:ks,actual:ks.resolvedModule?ks.resolvedModule.resolvedFileName:vl(au,fn)};return(Tr??(Tr=new Map)).set(fn,Xs),Xs}function q0(fn){Ot(fn.libReferenceDirectives,($n,ri)=>{const{libName:Li,libFileName:yo}=UW($n);if(yo)ah(xv(yo),!0,!0,{kind:7,file:fn.path,index:ri});else{const jo=DM(xf(Li,"lib."),".d.ts"),Oo=fh(jo,r$,Of),ca=Oo?N.Cannot_find_lib_definition_for_0_Did_you_mean_1:N.Cannot_find_lib_definition_for_0,Fc=Oo?[Li,Oo]:[Li];(Wr||(Wr=[])).push({kind:0,reason:{kind:7,file:fn.path,index:ri},diagnostic:ca,args:Fc})}})}function N1(fn){return ki.getCanonicalFileName(fn)}function i0(fn){var $n;if(Cg(fn),fn.imports.length||fn.moduleAugmentations.length){const ri=Exe(fn),Li=(Pn==null?void 0:Pn.get(fn.path))||Tf(ri,fn);re.assert(Li.length===ri.length);const yo=(Br?($n=Ro(fn))==null?void 0:$n.commandLine.options:void 0)||Ie,jo=IR();(Vr??(Vr=new Map)).set(fn.path,jo);for(let Oo=0;Oono,ft=Yp&&!QQ(yo,ca,fn)&&!yo.noResolve&&OoBv(Oo)&&!Oo.isDeclarationFile);if(Ie.isolatedModules||Ie.verbatimModuleSyntax)Ie.module===0&&$n<2&&Ie.isolatedModules&&f_(N.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Ie.preserveConstEnums===!1&&f_(N.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Ie.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(ri&&$n<2&&Ie.module===0){const Oo=zL(ri,typeof ri.externalModuleIndicator=="boolean"?ri:ri.externalModuleIndicator);qn.add(Pp(ri,Oo.start,Oo.length,N.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(fn&&!Ie.emitDeclarationOnly){if(Ie.module&&!(Ie.module===2||Ie.module===4))f_(N.Only_amd_and_system_modules_are_supported_alongside_0,Ie.out?"out":"outFile","module");else if(Ie.module===void 0&&ri){const Oo=zL(ri,typeof ri.externalModuleIndicator=="boolean"?ri:ri.externalModuleIndicator);qn.add(Pp(ri,Oo.start,Oo.length,N.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,Ie.out?"out":"outFile"))}}if(sI(Ie)&&(Jd(Ie)===1?f_(N.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):BH(Ie)||f_(N.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),Ie.outDir||Ie.rootDir||Ie.sourceRoot||Ie.mapRoot){const Oo=bl();Ie.outDir&&Oo===""&&Yt.some(ca=>Pg(ca.fileName)>1)&&f_(N.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Ie.useDefineForClassFields&&$n===0&&f_(N.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),Ie.checkJs&&!TP(Ie)&&qn.add(W_(N.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Ie.emitDeclarationOnly&&(gv(Ie)||f_(N.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),Ie.noEmit&&f_(N.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Ie.emitDecoratorMetadata&&!Ie.experimentalDecorators&&f_(N.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Ie.jsxFactory?(Ie.reactNamespace&&f_(N.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",uF.get(""+Ie.jsx)),HG(Ie.jsxFactory,$n)||zh("jsxFactory",N.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Ie.jsxFactory)):Ie.reactNamespace&&!H2(Ie.reactNamespace,$n)&&zh("reactNamespace",N.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Ie.reactNamespace),Ie.jsxFragmentFactory&&(Ie.jsxFactory||f_(N.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",uF.get(""+Ie.jsx)),HG(Ie.jsxFragmentFactory,$n)||zh("jsxFragmentFactory",N.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Ie.jsxFragmentFactory)),Ie.reactNamespace&&(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",uF.get(""+Ie.jsx)),Ie.jsxImportSource&&Ie.jsx===2&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",uF.get(""+Ie.jsx)),Ie.preserveValueImports&&Zp(Ie)<5&&f_(N.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Li=Zp(Ie);Ie.verbatimModuleSyntax&&((Li===2||Li===3||Li===4)&&f_(N.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),Ie.preserveValueImports&&gC("preserveValueImports","verbatimModuleSyntax"),Ie.importsNotUsedAsValues&&gC("importsNotUsedAsValues","verbatimModuleSyntax")),Ie.allowImportingTsExtensions&&!(Ie.noEmit||Ie.emitDeclarationOnly)&&zh("allowImportingTsExtensions",N.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const yo=Jd(Ie);if(Ie.resolvePackageJsonExports&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Ie.resolvePackageJsonImports&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Ie.customConditions&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),yo===100&&!WH(Li)&&zh("moduleResolution",N.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),Rz[Li]&&100<=Li&&Li<=199&&!(3<=yo&&yo<=99)){const Oo=Rz[Li];zh("moduleResolution",N.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,Oo,Oo)}else if(t9[yo]&&3<=yo&&yo<=99&&!(100<=Li&&Li<=199)){const Oo=t9[yo];zh("module",N.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Oo,Oo)}if(!Ie.noEmit&&!Ie.suppressOutputPathCheck){const Oo=u_(),ca=new Set;zQ(Oo,Fc=>{Ie.emitDeclarationOnly||jo(Fc.jsFilePath,ca),jo(Fc.declarationFilePath,ca)})}function jo(Oo,ca){if(Oo){const Fc=hc(Oo);if(Mr.has(Fc)){let Xs;Ie.configFilePath||(Xs=Es(void 0,N.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)),Xs=Es(Xs,N.Cannot_write_file_0_because_it_would_overwrite_input_file,Oo),eg(Oo,OH(Xs))}const ks=ki.useCaseSensitiveFileNames()?Fc:Q0(Fc);ca.has(ks)?eg(Oo,W_(N.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Oo)):ca.add(ks)}}}function Di(){const fn=Ie.ignoreDeprecations;if(fn){if(fn==="5.0")return new ZT(fn);Ke()}return ZT.zero}function Ee(fn,$n,ri,Li){const yo=new ZT(fn),jo=new ZT($n),Oo=new ZT(Lt||ot),ca=Di(),Fc=jo.compareTo(Oo)!==1,ks=!Fc&&ca.compareTo(yo)===-1;(Fc||ks)&&Li((Xs,Vs,wu)=>{Fc?Vs===void 0?ri(Xs,Vs,wu,N.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Xs):ri(Xs,Vs,wu,N.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Xs,Vs):Vs===void 0?ri(Xs,Vs,wu,N.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Xs,$n,fn):ri(Xs,Vs,wu,N.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Xs,Vs,$n,fn)})}function Gt(){function fn($n,ri,Li,yo,...jo){if(Li){const Oo=Es(void 0,N.Use_0_instead,Li),ca=Es(Oo,yo,...jo);n2(!ri,$n,void 0,ca)}else n2(!ri,$n,void 0,yo,...jo)}Ee("5.0","5.5",fn,$n=>{Ie.target===0&&$n("target","ES3"),Ie.noImplicitUseStrict&&$n("noImplicitUseStrict"),Ie.keyofStringsOnly&&$n("keyofStringsOnly"),Ie.suppressExcessPropertyErrors&&$n("suppressExcessPropertyErrors"),Ie.suppressImplicitAnyIndexErrors&&$n("suppressImplicitAnyIndexErrors"),Ie.noStrictGenericChecks&&$n("noStrictGenericChecks"),Ie.charset&&$n("charset"),Ie.out&&$n("out",void 0,"outFile"),Ie.importsNotUsedAsValues&&$n("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Ie.preserveValueImports&&$n("preserveValueImports",void 0,"verbatimModuleSyntax")})}function sr(fn,$n,ri){function Li(yo,jo,Oo,ca,...Fc){i1($n,ri,ca,...Fc)}Ee("5.0","5.5",Li,yo=>{fn.prepend&&yo("prepend")})}function Ii(fn,$n,ri,Li){var yo;let jo,Oo,ca=ew($n)?$n:void 0;fn&&((yo=cn.get(fn.path))==null||yo.forEach(wu)),$n&&wu($n),ca&&(jo==null?void 0:jo.length)===1&&(jo=void 0);const Fc=ca&&XQ(Io,ca),ks=jo&&Es(jo,N.The_file_is_in_the_program_because_Colon),Xs=fn&&yse(fn),Vs=Es(Xs?ks?[ks,...Xs]:Xs:ks,ri,...Li||Yn);return Fc&&HW(Fc)?g7(Fc.file,Fc.pos,Fc.end-Fc.pos,Vs,Oo):OH(Vs,Oo);function wu(Yp){(jo||(jo=[])).push(cZ(Io,Yp)),!ca&&ew(Yp)?ca=Yp:ca!==Yp&&(Oo=ur(Oo,wi(Yp))),Yp===$n&&($n=void 0)}}function Ja(fn,$n,ri,Li){(Wr||(Wr=[])).push({kind:1,file:fn&&fn.path,fileProcessingReason:$n,diagnostic:ri,args:Li})}function wa(fn,$n,ri){qn.add(Ii(fn,void 0,$n,ri))}function wi(fn){if(ew(fn)){const Li=XQ(Io,fn);let yo;switch(fn.kind){case 3:yo=N.File_is_included_via_import_here;break;case 4:yo=N.File_is_included_via_reference_here;break;case 5:yo=N.File_is_included_via_type_library_reference_here;break;case 7:yo=N.File_is_included_via_library_reference_here;break;default:re.assertNever(fn)}return HW(Li)?Pp(Li.file,Li.pos,Li.end-Li.pos,yo):void 0}if(!Ie.configFile)return;let $n,ri;switch(fn.kind){case 0:if(!Ie.configFile.configFileSpecs)return;const Li=vf(dt[fn.index],za),yo=vse(Io,Li);if(yo){$n=JM(Ie.configFile,"files",yo),ri=N.File_is_matched_by_files_list_specified_here;break}const jo=sZ(Io,Li);if(!jo||!As(jo))return;$n=JM(Ie.configFile,"include",jo),ri=N.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Oo=re.checkDefined(ln==null?void 0:ln[fn.index]),ca=yF(Ct,ln,(wu,Yp,Q)=>wu===Oo?{sourceFile:(Yp==null?void 0:Yp.sourceFile)||Ie.configFile,index:Q}:void 0);if(!ca)return;const{sourceFile:Fc,index:ks}=ca,Xs=q2(Fc,"references",wu=>Ed(wu.initializer)?wu.initializer:void 0);return Xs&&Xs.elements.length>ks?Ud(Fc,Xs.elements[ks],fn.kind===2?N.File_is_output_from_referenced_project_specified_here:N.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!Ie.types)return;$n=_b("types",fn.typeReference),ri=N.File_is_entry_point_of_type_library_specified_here;break;case 6:if(fn.index!==void 0){$n=_b("lib",Ie.lib[fn.index]),ri=N.File_is_library_specified_here;break}const Vs=Jb(a$.type,(wu,Yp)=>wu===iu(Ie)?Yp:void 0);$n=Vs?by("target",Vs):void 0,ri=N.File_is_default_library_for_target_specified_here;break;default:re.assertNever(fn)}return $n&&Ud(Ie.configFile,$n,ri)}function Vl(){const fn=Ie.suppressOutputPathCheck?void 0:PR(Ie);yF(Ct,ln,($n,ri,Li)=>{const yo=(ri?ri.commandLine.projectReferences:Ct)[Li],jo=ri&&ri.sourceFile;if(sr(yo,jo,Li),!$n){i1(jo,Li,N.File_0_not_found,yo.path);return}const Oo=$n.commandLine.options;if((!Oo.composite||Oo.noEmit)&&(ri?ri.commandLine.fileNames:dt).length&&(Oo.composite||i1(jo,Li,N.Referenced_project_0_must_have_setting_composite_Colon_true,yo.path),Oo.noEmit&&i1(jo,Li,N.Referenced_project_0_may_not_disable_emit,yo.path)),yo.prepend){const ca=Ng(Oo);ca?ki.fileExists(ca)||i1(jo,Li,N.Output_file_0_from_project_1_does_not_exist,ca,yo.path):i1(jo,Li,N.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,yo.path)}!ri&&fn&&fn===PR(Oo)&&(i1(jo,Li,N.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,fn,yo.path),na.set(hc(fn),!0))})}function Uf(fn,$n,ri,...Li){let yo=!0;sv(jo=>{el(jo.initializer)&&eG(jo.initializer,fn,Oo=>{const ca=Oo.initializer;Ed(ca)&&ca.elements.length>$n&&(qn.add(Ud(Ie.configFile,ca.elements[$n],ri,...Li)),yo=!1)})}),yo&&qn.add(W_(ri,...Li))}function Y_(fn,$n,ri,...Li){let yo=!0;sv(jo=>{el(jo.initializer)&&su(jo.initializer,fn,$n,void 0,ri,...Li)&&(yo=!1)}),yo&&qn.add(W_(ri,...Li))}function Fg(fn,$n){return eG(Vv(),fn,$n)}function sv(fn){return Fg("paths",fn)}function by(fn,$n){return Fg(fn,ri=>Sd(ri.initializer)&&ri.initializer.text===$n?ri.initializer:void 0)}function _b(fn,$n){const ri=Vv();return ri&&iSe(ri,fn,$n)}function f_(fn,$n,ri,Li){n2(!0,$n,ri,fn,$n,ri,Li)}function zh(fn,$n,...ri){n2(!1,fn,void 0,$n,...ri)}function i1(fn,$n,ri,...Li){const yo=q2(fn||Ie.configFile,"references",jo=>Ed(jo.initializer)?jo.initializer:void 0);yo&&yo.elements.length>$n?qn.add(Ud(fn||Ie.configFile,yo.elements[$n],ri,...Li)):qn.add(W_(ri,...Li))}function n2(fn,$n,ri,Li,...yo){const jo=Vv();(!jo||!su(jo,fn,$n,ri,Li,...yo))&&("messageText"in Li?qn.add(OH(Li)):qn.add(W_(Li,...yo)))}function Vv(){return _a===void 0&&(_a=eG(tG(Ie.configFile),"compilerOptions",fn=>el(fn.initializer)?fn.initializer:void 0)||!1),_a||void 0}function su(fn,$n,ri,Li,yo,...jo){let Oo=!1;return eG(fn,ri,ca=>{"messageText"in yo?qn.add(wN(Ie.configFile,$n?ca.name:ca.initializer,yo)):qn.add(Ud(Ie.configFile,$n?ca.name:ca.initializer,yo,...jo)),Oo=!0},Li),Oo}function gC(fn,$n){const ri=Vv();ri?su(ri,!0,fn,void 0,N.Option_0_is_redundant_and_cannot_be_specified_with_option_1,fn,$n):f_(N.Option_0_is_redundant_and_cannot_be_specified_with_option_1,fn,$n)}function eg(fn,$n){na.set(hc(fn),!0),qn.add($n)}function Uv(fn){if(Ie.noEmit)return!1;const $n=hc(fn);if(M_($n))return!1;const ri=Ng(Ie);if(ri)return Rk($n,ri)||Rk($n,wg(ri)+".d.ts");if(Ie.declarationDir&&OE(Ie.declarationDir,$n,za,!ki.useCaseSensitiveFileNames()))return!0;if(Ie.outDir)return OE(Ie.outDir,$n,za,!ki.useCaseSensitiveFileNames());if(pv($n,h3)||Zb($n)){const Li=wg($n);return!!M_(Li+".ts")||!!M_(Li+".tsx")}return!1}function Rk(fn,$n){return Rv(fn,$n,za,!ki.useCaseSensitiveFileNames())===0}function Lb(){return ki.getSymlinkCache?ki.getSymlinkCache():(Et||(Et=zde(za,N1)),Yt&&!Et.hasProcessedResolutions()&&Et.setSymlinksFromResolutions(kt,qe,En),Et)}}function tse(e){let n;const i=e.compilerHost.fileExists,c=e.compilerHost.directoryExists,u=e.compilerHost.getDirectories,d=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ku,fileExists:E};e.compilerHost.fileExists=E;let h;return c&&(h=e.compilerHost.directoryExists=J=>c.call(e.compilerHost,J)?(F(J),!0):e.getResolvedProjectReferences()?(n||(n=new Set,e.forEachResolvedProjectReference(X=>{const ie=Ng(X.commandLine.options);if(ie)n.add(ws(e.toPath(ie)));else{const ae=X.commandLine.options.declarationDir||X.commandLine.options.outDir;ae&&n.add(e.toPath(ae))}})),$(J,!1)):!1),u&&(e.compilerHost.getDirectories=J=>!e.getResolvedProjectReferences()||c&&c.call(e.compilerHost,J)?u.call(e.compilerHost,J):[]),d&&(e.compilerHost.realpath=J=>{var X;return((X=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:X.get(e.toPath(J)))||d.call(e.compilerHost,J)}),{onProgramCreateComplete:S,fileExists:E,directoryExists:h};function S(){e.compilerHost.fileExists=i,e.compilerHost.directoryExists=c,e.compilerHost.getDirectories=u}function E(J){return i.call(e.compilerHost,J)?!0:!e.getResolvedProjectReferences()||!Zb(J)?!1:$(J,!0)}function P(J){const X=e.getSourceOfProjectReferenceRedirect(e.toPath(J));return X!==void 0?As(X)?i.call(e.compilerHost,X):!0:void 0}function k(J){const X=e.toPath(J),ie=`${X}${qp}`;return gA(n,ae=>X===ae||qf(ae,ie)||qf(X,`${ae}/`))}function F(J){var X;if(!e.getResolvedProjectReferences()||_3(J)||!d||!J.includes(IP))return;const ie=e.getSymlinkCache(),ae=Su(e.toPath(J));if((X=ie.getSymlinkedDirectories())!=null&&X.has(ae))return;const ve=hf(d.call(e.compilerHost,J));let we;if(ve===J||(we=Su(e.toPath(ve)))===ae){ie.setSymlinkedDirectory(ae,!1);return}ie.setSymlinkedDirectory(J,{real:Su(ve),realPath:we})}function $(J,X){var ie;const ae=X?Pe=>P(Pe):Pe=>k(Pe),ve=ae(J);if(ve!==void 0)return ve;const we=e.getSymlinkCache(),Fe=we.getSymlinkedDirectories();if(!Fe)return!1;const et=e.toPath(J);return et.includes(IP)?X&&((ie=we.getSymlinkedFiles())!=null&&ie.has(et))?!0:Ns(Fe.entries(),([Pe,dt])=>{if(!dt||!qf(et,Pe))return;const Ie=ae(et.replace(Pe,dt.realPath));if(X&&Ie){const ct=vf(J,e.compilerHost.getCurrentDirectory());we.setSymlinkedFile(et,`${dt.real}${ct.replace(new RegExp(Pe,"i"),"")}`)}return Ie})||!1:!1}}function nse(e,n,i,c){const u=e.getCompilerOptions();if(u.noEmit)return e.getSemanticDiagnostics(n,c),n||Ng(u)?Yme:e.emitBuildInfo(i,c);if(!u.noEmitOnError)return;let d=[...e.getOptionsDiagnostics(c),...e.getSyntacticDiagnostics(n,c),...e.getGlobalDiagnostics(c),...e.getSemanticDiagnostics(n,c)];if(d.length===0&&gv(e.getCompilerOptions())&&(d=e.getDeclarationDiagnostics(void 0,c)),!d.length)return;let h;if(!n&&!Ng(u)){const S=e.emitBuildInfo(i,c);S.diagnostics&&(d=[...d,...S.diagnostics]),h=S.emittedFiles}return{diagnostics:d,sourceMaps:void 0,emittedFiles:h,emitSkipped:!0}}function rse(e,n){return gi(e,i=>!i.skippedOn||!n[i.skippedOn])}function k$(e,n=e){return{fileExists:i=>n.fileExists(i),readDirectory(i,c,u,d,h){return re.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(i,c,u,d,h)},readFile:i=>n.readFile(i),directoryExists:wc(n,n.directoryExists),getDirectories:wc(n,n.getDirectories),realpath:wc(n,n.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||eE,trace:e.trace?i=>e.trace(i):void 0}}function ise(e,n,i,c){if(!e)return Yn;let u;for(let d=0;dc);for(const c of n)c.kind===11&&i.push(c);return i}function ZQ({imports:e,moduleAugmentations:n},i){if(i(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Kme||{}),ose="\x1B[7m",ase=" ",P$="\x1B[0m",eZ="...",sse=" ",cse=" ",lse={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},use={getName:vxe,getMode:(e,n)=>PA(n,e)},Xme={getName:Xae,getMode:(e,n)=>$Q(e,n==null?void 0:n.impliedNodeFormat)},hj="__inferred type names__.ts",sD=new Set([N.Cannot_redeclare_block_scoped_variable_0.code,N.A_module_cannot_have_multiple_default_exports.code,N.Another_export_default_is_here.code,N.The_first_export_default_is_here.code,N.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,N.constructor_is_a_reserved_word.code,N.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,N.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,N.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,N.Invalid_use_of_0_in_strict_mode.code,N.A_label_is_not_allowed_here.code,N.with_statements_are_not_allowed_in_strict_mode.code,N.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,N.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,N.A_class_declaration_without_the_default_modifier_must_have_a_name.code,N.A_class_member_cannot_have_the_0_keyword.code,N.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,N.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,N.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,N.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,N.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,N.A_destructuring_declaration_must_have_an_initializer.code,N.A_get_accessor_cannot_have_parameters.code,N.A_rest_element_cannot_contain_a_binding_pattern.code,N.A_rest_element_cannot_have_a_property_name.code,N.A_rest_element_cannot_have_an_initializer.code,N.A_rest_element_must_be_last_in_a_destructuring_pattern.code,N.A_rest_parameter_cannot_have_an_initializer.code,N.A_rest_parameter_must_be_last_in_a_parameter_list.code,N.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,N.A_return_statement_cannot_be_used_inside_a_class_static_block.code,N.A_set_accessor_cannot_have_rest_parameter.code,N.A_set_accessor_must_have_exactly_one_parameter.code,N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,N.An_export_declaration_cannot_have_modifiers.code,N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,N.An_import_declaration_cannot_have_modifiers.code,N.An_object_member_cannot_be_declared_optional.code,N.Argument_of_dynamic_import_cannot_be_spread_element.code,N.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,N.Cannot_redeclare_identifier_0_in_catch_clause.code,N.Catch_clause_variable_cannot_have_an_initializer.code,N.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,N.Classes_can_only_extend_a_single_class.code,N.Classes_may_not_have_a_field_named_constructor.code,N.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,N.Duplicate_label_0.code,N.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,N.for_await_loops_cannot_be_used_inside_a_class_static_block.code,N.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,N.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,N.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,N.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,N.Jump_target_cannot_cross_function_boundary.code,N.Line_terminator_not_permitted_before_arrow.code,N.Modifiers_cannot_appear_here.code,N.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,N.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,N.Private_identifiers_are_not_allowed_outside_class_bodies.code,N.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,N.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,N.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,N.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,N.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,N.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,N.Trailing_comma_not_allowed.code,N.Variable_declaration_list_cannot_be_empty.code,N._0_and_1_operations_cannot_be_mixed_without_parentheses.code,N._0_expected.code,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,N._0_list_cannot_be_empty.code,N._0_modifier_already_seen.code,N._0_modifier_cannot_appear_on_a_constructor_declaration.code,N._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,N._0_modifier_cannot_appear_on_a_parameter.code,N._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,N._0_modifier_cannot_be_used_here.code,N._0_modifier_must_precede_1_modifier.code,N._0_declarations_can_only_be_declared_inside_a_block.code,N._0_declarations_must_be_initialized.code,N.extends_clause_already_seen.code,N.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,N.Class_constructor_may_not_be_a_generator.code,N.Class_constructor_may_not_be_an_accessor.code,N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.Private_field_0_must_be_declared_in_an_enclosing_class.code,N.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),Yme={diagnostics:Yn,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),tZ=G({"src/compiler/builderStatePublic.ts"(){}});function O4e(e,n,i,c,u,d){const h=[],{emitSkipped:S,diagnostics:E}=e.emit(n,P,c,i,u,d);return{outputFiles:h,emitSkipped:S,diagnostics:E};function P(k,F,$){h.push({name:k,writeByteOrderMark:$,text:F})}}var cD,rJe=G({"src/compiler/builderState.ts"(){md(),(e=>{function n(){function Ze(Ke,st,It){const Yt={getKeys:Et=>st.get(Et),getValues:Et=>Ke.get(Et),keys:()=>Ke.keys(),deleteKey:Et=>{(It||(It=new Set)).add(Et);const at=Ke.get(Et);return at?(at.forEach(Qt=>c(st,Qt,Et)),Ke.delete(Et),!0):!1},set:(Et,at)=>{It==null||It.delete(Et);const Qt=Ke.get(Et);return Ke.set(Et,at),Qt==null||Qt.forEach(nn=>{at.has(nn)||c(st,nn,Et)}),at.forEach(nn=>{Qt!=null&&Qt.has(nn)||i(st,nn,Et)}),Yt}};return Yt}return Ze(new Map,new Map,void 0)}e.createManyToManyPathMap=n;function i(Ze,Ke,st){let It=Ze.get(Ke);It||(It=new Set,Ze.set(Ke,It)),It.add(st)}function c(Ze,Ke,st){const It=Ze.get(Ke);return It!=null&&It.delete(st)?(It.size||Ze.delete(Ke),!0):!1}function u(Ze){return Qo(Ze.declarations,Ke=>{var st;return(st=ts(Ke))==null?void 0:st.resolvedPath})}function d(Ze,Ke){const st=Ze.getSymbolAtLocation(Ke);return st&&u(st)}function h(Ze,Ke,st,It){return gm(Ze.getProjectReferenceRedirect(Ke)||Ke,st,It)}function S(Ze,Ke,st){let It;if(Ke.imports&&Ke.imports.length>0){const Qt=Ze.getTypeChecker();for(const nn of Ke.imports){const Rn=d(Qt,nn);Rn==null||Rn.forEach(at)}}const Yt=ws(Ke.resolvedPath);if(Ke.referencedFiles&&Ke.referencedFiles.length>0)for(const Qt of Ke.referencedFiles){const nn=h(Ze,Qt.fileName,Yt,st);at(nn)}if(Ze.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Qt})=>{if(!Qt)return;const nn=Qt.resolvedFileName,Rn=h(Ze,nn,Yt,st);at(Rn)},Ke),Ke.moduleAugmentations.length){const Qt=Ze.getTypeChecker();for(const nn of Ke.moduleAugmentations){if(!Sd(nn))continue;const Rn=Qt.getSymbolAtLocation(nn);Rn&&Et(Rn)}}for(const Qt of Ze.getTypeChecker().getAmbientModules())Qt.declarations&&Qt.declarations.length>1&&Et(Qt);return It;function Et(Qt){if(Qt.declarations)for(const nn of Qt.declarations){const Rn=ts(nn);Rn&&Rn!==Ke&&at(Rn.resolvedPath)}}function at(Qt){(It||(It=new Set)).add(Qt)}}function E(Ze,Ke){return Ke&&!Ke.referencedMap==!Ze}e.canReuseOldState=E;function P(Ze,Ke,st){var It,Yt,Et;const at=new Map,Qt=Ze.getCompilerOptions(),nn=Ng(Qt),Rn=Qt.module!==0&&!nn?n():void 0,cn=Rn?n():void 0,qt=E(Rn,Ke);Ze.getTypeChecker();for(const Kt of Ze.getSourceFiles()){const wr=re.checkDefined(Kt.version,"Program intended to be used with Builder should have source files with versions set"),Wr=qt?(It=Ke.oldSignatures)==null?void 0:It.get(Kt.resolvedPath):void 0,jt=Wr===void 0?qt?(Yt=Ke.fileInfos.get(Kt.resolvedPath))==null?void 0:Yt.signature:void 0:Wr||void 0;if(Rn){const En=S(Ze,Kt,Ze.getCanonicalFileName);if(En&&Rn.set(Kt.resolvedPath,En),qt){const fr=(Et=Ke.oldExportedModulesMap)==null?void 0:Et.get(Kt.resolvedPath),Tr=fr===void 0?Ke.exportedModulesMap.getValues(Kt.resolvedPath):fr||void 0;Tr&&cn.set(Kt.resolvedPath,Tr)}}at.set(Kt.resolvedPath,{version:wr,signature:jt,affectsGlobalScope:nn?void 0:Ie(Kt)||void 0,impliedFormat:Kt.impliedNodeFormat})}return{fileInfos:at,referencedMap:Rn,exportedModulesMap:cn,useFileVersionAsSignature:!st&&!qt}}e.create=P;function k(Ze){Ze.allFilesExcludingDefaultLibraryFile=void 0,Ze.allFileNames=void 0}e.releaseCache=k;function F(Ze,Ke,st,It,Yt){var Et,at;const Qt=$(Ze,Ke,st,It,Yt);return(Et=Ze.oldSignatures)==null||Et.clear(),(at=Ze.oldExportedModulesMap)==null||at.clear(),Qt}e.getFilesAffectedBy=F;function $(Ze,Ke,st,It,Yt){const Et=Ke.getSourceFileByPath(st);return Et?ie(Ze,Ke,Et,It,Yt)?(Ze.referencedMap?Lt:Ct)(Ze,Ke,Et,It,Yt):[Et]:Yn}e.getFilesAffectedByWithOldState=$;function J(Ze,Ke,st){Ze.fileInfos.get(st).signature=Ke,(Ze.hasCalledUpdateShapeSignature||(Ze.hasCalledUpdateShapeSignature=new Set)).add(st)}e.updateSignatureOfFile=J;function X(Ze,Ke,st,It,Yt){Ze.emit(Ke,(Et,at,Qt,nn,Rn,cn)=>{re.assert(Zb(Et),`File extension for signature expected to be dts: Got:: ${Et}`),Yt(nge(Ze,Ke,at,It,cn),Rn)},st,!0,void 0,!0)}e.computeDtsSignature=X;function ie(Ze,Ke,st,It,Yt,Et=Ze.useFileVersionAsSignature){var at;if((at=Ze.hasCalledUpdateShapeSignature)!=null&&at.has(st.resolvedPath))return!1;const Qt=Ze.fileInfos.get(st.resolvedPath),nn=Qt.signature;let Rn;if(!st.isDeclarationFile&&!Et&&X(Ke,st,It,Yt,(cn,qt)=>{Rn=cn,Rn!==nn&&ae(Ze,st,qt[0].exportedModulesFromDeclarationEmit)}),Rn===void 0&&(Rn=st.version,Ze.exportedModulesMap&&Rn!==nn)){(Ze.oldExportedModulesMap||(Ze.oldExportedModulesMap=new Map)).set(st.resolvedPath,Ze.exportedModulesMap.getValues(st.resolvedPath)||!1);const cn=Ze.referencedMap?Ze.referencedMap.getValues(st.resolvedPath):void 0;cn?Ze.exportedModulesMap.set(st.resolvedPath,cn):Ze.exportedModulesMap.deleteKey(st.resolvedPath)}return(Ze.oldSignatures||(Ze.oldSignatures=new Map)).set(st.resolvedPath,nn||!1),(Ze.hasCalledUpdateShapeSignature||(Ze.hasCalledUpdateShapeSignature=new Set)).add(st.resolvedPath),Qt.signature=Rn,Rn!==nn}e.updateShapeSignature=ie;function ae(Ze,Ke,st){if(!Ze.exportedModulesMap)return;(Ze.oldExportedModulesMap||(Ze.oldExportedModulesMap=new Map)).set(Ke.resolvedPath,Ze.exportedModulesMap.getValues(Ke.resolvedPath)||!1);const It=ve(st);It?Ze.exportedModulesMap.set(Ke.resolvedPath,It):Ze.exportedModulesMap.deleteKey(Ke.resolvedPath)}e.updateExportedModules=ae;function ve(Ze){let Ke;return Ze==null||Ze.forEach(st=>u(st).forEach(It=>(Ke??(Ke=new Set)).add(It))),Ke}e.getExportedModules=ve;function we(Ze,Ke,st){const It=Ke.getCompilerOptions();if(Ng(It)||!Ze.referencedMap||Ie(st))return Fe(Ze,Ke);const Yt=new Set,Et=[st.resolvedPath];for(;Et.length;){const at=Et.pop();if(!Yt.has(at)){Yt.add(at);const Qt=Ze.referencedMap.getValues(at);if(Qt)for(const nn of Qt.keys())Et.push(nn)}}return oc(p2(Yt.keys(),at=>{var Qt;return((Qt=Ke.getSourceFileByPath(at))==null?void 0:Qt.fileName)??at}))}e.getAllDependencies=we;function Fe(Ze,Ke){if(!Ze.allFileNames){const st=Ke.getSourceFiles();Ze.allFileNames=st===Yn?Yn:st.map(It=>It.fileName)}return Ze.allFileNames}function et(Ze,Ke){const st=Ze.referencedMap.getKeys(Ke);return st?oc(st.keys()):[]}e.getReferencedByPaths=et;function Pe(Ze){for(const Ke of Ze.statements)if(!rY(Ke))return!1;return!0}function dt(Ze){return gt(Ze.moduleAugmentations,Ke=>JC(Ke.parent))}function Ie(Ze){return dt(Ze)||!aE(Ze)&&!Rx(Ze)&&!Pe(Ze)}function ct(Ze,Ke,st){if(Ze.allFilesExcludingDefaultLibraryFile)return Ze.allFilesExcludingDefaultLibraryFile;let It;st&&Yt(st);for(const Et of Ke.getSourceFiles())Et!==st&&Yt(Et);return Ze.allFilesExcludingDefaultLibraryFile=It||Yn,Ze.allFilesExcludingDefaultLibraryFile;function Yt(Et){Ke.isSourceFileDefaultLibrary(Et)||(It||(It=[])).push(Et)}}e.getAllFilesExcludingDefaultLibraryFile=ct;function Ct(Ze,Ke,st){const It=Ke.getCompilerOptions();return It&&Ng(It)?[st]:ct(Ze,Ke,st)}function Lt(Ze,Ke,st,It,Yt){if(Ie(st))return ct(Ze,Ke,st);const Et=Ke.getCompilerOptions();if(Et&&(F0(Et)||Ng(Et)))return[st];const at=new Map;at.set(st.resolvedPath,st);const Qt=et(Ze,st.resolvedPath);for(;Qt.length>0;){const nn=Qt.pop();if(!at.has(nn)){const Rn=Ke.getSourceFileByPath(nn);at.set(nn,Rn),Rn&&ie(Ze,Ke,Rn,It,Yt)&&Qt.push(...et(Ze,Rn.resolvedPath))}}return oc(p2(at.values(),nn=>nn))}})(cD||(cD={}))}});function P6(e){let n=1;return e.sourceMap&&(n=n|2),e.inlineSourceMap&&(n=n|4),gv(e)&&(n=n|8),e.declarationMap&&(n=n|16),e.emitDeclarationOnly&&(n=n&24),n}function N$(e,n){const i=n&&(U1(n)?n:P6(n)),c=U1(e)?e:P6(e);if(i===c)return 0;if(!i||!c)return c;const u=i^c;let d=0;return u&7&&(d=c&7),u&24&&(d=d|c&24),d}function F4e(e,n){return e===n||e!==void 0&&n!==void 0&&e.size===n.size&&!gA(e,i=>!n.has(i))}function iJe(e,n){var i,c;const u=cD.create(e,n,!1);u.program=e;const d=e.getCompilerOptions();u.compilerOptions=d;const h=Ng(d);h?d.composite&&(n!=null&&n.outSignature)&&h===Ng(n==null?void 0:n.compilerOptions)&&(u.outSignature=n.outSignature&&W4e(d,n.compilerOptions,n.outSignature)):u.semanticDiagnosticsPerFile=new Map,u.changedFilesSet=new Set,u.latestChangedDtsFile=d.composite?n==null?void 0:n.latestChangedDtsFile:void 0;const S=cD.canReuseOldState(u.referencedMap,n),E=S?n.compilerOptions:void 0,P=S&&n.semanticDiagnosticsPerFile&&!!u.semanticDiagnosticsPerFile&&!GSe(d,E),k=d.composite&&(n==null?void 0:n.emitSignatures)&&!h&&!VSe(d,n.compilerOptions);S?((i=n.changedFilesSet)==null||i.forEach(ie=>u.changedFilesSet.add(ie)),!h&&((c=n.affectedFilesPendingEmit)!=null&&c.size)&&(u.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),u.seenAffectedFiles=new Set),u.programEmitPending=n.programEmitPending):u.buildInfoEmitPending=!0;const F=u.referencedMap,$=S?n.referencedMap:void 0,J=P&&!d.skipLibCheck==!E.skipLibCheck,X=J&&!d.skipDefaultLibCheck==!E.skipDefaultLibCheck;if(u.fileInfos.forEach((ie,ae)=>{let ve,we;if(!S||!(ve=n.fileInfos.get(ae))||ve.version!==ie.version||ve.impliedFormat!==ie.impliedFormat||!F4e(we=F&&F.getValues(ae),$&&$.getValues(ae))||we&&gA(we,Fe=>!u.fileInfos.has(Fe)&&n.fileInfos.has(Fe)))oJe(u,ae);else if(P){const Fe=e.getSourceFileByPath(ae);if(Fe.isDeclarationFile&&!J||Fe.hasNoDefaultLib&&!X)return;const et=n.semanticDiagnosticsPerFile.get(ae);et&&(u.semanticDiagnosticsPerFile.set(ae,n.hasReusableDiagnostic?sJe(et,e):Pct(et,e)),u.semanticDiagnosticsFromOldState||(u.semanticDiagnosticsFromOldState=new Set),u.semanticDiagnosticsFromOldState.add(ae))}if(k){const Fe=n.emitSignatures.get(ae);Fe&&(u.emitSignatures??(u.emitSignatures=new Map)).set(ae,W4e(d,n.compilerOptions,Fe))}}),S&&Jb(n.fileInfos,(ie,ae)=>u.fileInfos.has(ae)?!1:h||ie.affectsGlobalScope?!0:(u.buildInfoEmitPending=!0,!1)))cD.getAllFilesExcludingDefaultLibraryFile(u,e,void 0).forEach(ie=>oJe(u,ie.resolvedPath));else if(E){const ie=jSe(d,E)?P6(d):N$(d,E);ie!==0&&(h?u.programEmitPending=u.programEmitPending?u.programEmitPending|ie:ie:(e.getSourceFiles().forEach(ae=>{u.changedFilesSet.has(ae.resolvedPath)||ige(u,ae.resolvedPath,ie)}),re.assert(!u.seenAffectedFiles||!u.seenAffectedFiles.size),u.seenAffectedFiles=u.seenAffectedFiles||new Set,u.buildInfoEmitPending=!0))}return h&&!u.changedFilesSet.size&&(S&&(u.bundle=n.bundle),gt(e.getProjectReferences(),ie=>!!ie.prepend)&&(u.programEmitPending=P6(d))),u}function oJe(e,n){e.changedFilesSet.add(n),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function W4e(e,n,i){return!!e.declarationMap==!!n.declarationMap?i:As(i)?[i]:i[0]}function Pct(e,n){return e.length?Ol(e,i=>{if(As(i.messageText))return i;const c=B4e(i.messageText,i.file,n,u=>{var d;return(d=u.repopulateInfo)==null?void 0:d.call(u)});return c===i.messageText?i:{...i,messageText:c}}):e}function B4e(e,n,i,c){const u=c(e);if(u)return{...KU(n,i,u.moduleReference,u.mode,u.packageName||u.moduleReference),next:aJe(e.next,n,i,c)};const d=aJe(e.next,n,i,c);return d===e.next?e:{...e,next:d}}function aJe(e,n,i,c){return Ol(e,u=>B4e(u,n,i,c))}function sJe(e,n){if(!e.length)return Yn;let i;return e.map(u=>{const d=z4e(u,n,c);d.reportsUnnecessary=u.reportsUnnecessary,d.reportsDeprecated=u.reportDeprecated,d.source=u.source,d.skippedOn=u.skippedOn;const{relatedInformation:h}=u;return d.relatedInformation=h?h.length?h.map(S=>z4e(S,n,c)):[]:void 0,d});function c(u){return i??(i=ws(vf(PR(n.getCompilerOptions()),n.getCurrentDirectory()))),gm(u,i,n.getCanonicalFileName)}}function z4e(e,n,i){const{file:c}=e,u=c?n.getSourceFileByPath(i(c)):void 0;return{...e,file:u,messageText:As(e.messageText)?e.messageText:B4e(e.messageText,u,n,d=>d.info)}}function Nct(e){cD.releaseCache(e),e.program=void 0}function wct(e){const n=Ng(e.compilerOptions);return re.assert(!e.changedFilesSet.size||n),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:n?new Set(e.changedFilesSet):void 0}}function cJe(e,n){e.affectedFilesPendingEmit=n.affectedFilesPendingEmit,e.seenEmittedFiles=n.seenEmittedFiles,e.programEmitPending=n.programEmitPending,e.emitSignatures=n.emitSignatures,e.outSignature=n.outSignature,e.latestChangedDtsFile=n.latestChangedDtsFile,e.hasChangedEmitSignature=n.hasChangedEmitSignature,n.changedFilesSet&&(e.changedFilesSet=n.changedFilesSet)}function lJe(e,n){re.assert(!n||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==n||!e.semanticDiagnosticsPerFile.has(n.resolvedPath))}function Qme(e,n,i){for(var c,u;;){const{affectedFiles:d}=e;if(d){const P=e.seenAffectedFiles;let k=e.affectedFilesIndex;for(;k{const d=c&7;d?e.affectedFilesPendingEmit.set(u,d):e.affectedFilesPendingEmit.delete(u)})}}function uJe(e,n){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Jb(e.affectedFilesPendingEmit,(c,u)=>{var d;const h=e.program.getSourceFileByPath(u);if(!h||!JL(h,e.program)){e.affectedFilesPendingEmit.delete(u);return}const S=(d=e.seenEmittedFiles)==null?void 0:d.get(h.resolvedPath);let E=N$(c,S);if(n&&(E=E&24),E)return{affectedFile:h,emitKind:E}})}function xxe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const n=re.checkDefined(e.program),i=n.getCompilerOptions();Ot(n.getSourceFiles(),c=>n.isSourceFileDefaultLibrary(c)&&!c3(c,i,n)&&ege(e,c.resolvedPath))}}function Rct(e,n,i,c){if(ege(e,n.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){xxe(e),cD.updateShapeSignature(e,re.checkDefined(e.program),n,i,c);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Mct(e,n,i,c)}function Zme(e,n,i,c){if(ege(e,n),!e.changedFilesSet.has(n)){const u=re.checkDefined(e.program),d=u.getSourceFileByPath(n);d&&(cD.updateShapeSignature(e,u,d,i,c,!0),gv(e.compilerOptions)&&ige(e,n,e.compilerOptions.declarationMap?24:8))}}function ege(e,n){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size):!0}function fJe(e,n){const i=re.checkDefined(e.oldSignatures).get(n)||void 0;return re.checkDefined(e.fileInfos.get(n)).signature!==i}function Axe(e,n,i,c){var u;return(u=e.fileInfos.get(n))!=null&&u.affectsGlobalScope?(cD.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(d=>Zme(e,d.resolvedPath,i,c)),xxe(e),!0):!1}function Mct(e,n,i,c){var u;if(!e.exportedModulesMap||!e.changedFilesSet.has(n.resolvedPath)||!fJe(e,n.resolvedPath))return;if(F0(e.compilerOptions)){const h=new Map;h.set(n.resolvedPath,!0);const S=cD.getReferencedByPaths(e,n.resolvedPath);for(;S.length>0;){const E=S.pop();if(!h.has(E)){if(h.set(E,!0),Axe(e,E,i,c))return;if(Zme(e,E,i,c),fJe(e,E)){const P=re.checkDefined(e.program).getSourceFileByPath(E);S.push(...cD.getReferencedByPaths(e,P.resolvedPath))}}}}const d=new Set;(u=e.exportedModulesMap.getKeys(n.resolvedPath))==null||u.forEach(h=>{if(Axe(e,h,i,c))return!0;const S=e.referencedMap.getKeys(h);return S&&gA(S,E=>_Je(e,E,d,i,c))})}function _Je(e,n,i,c,u){var d,h;if(m2(i,n)){if(Axe(e,n,c,u))return!0;Zme(e,n,c,u),(d=e.exportedModulesMap.getKeys(n))==null||d.forEach(S=>_Je(e,S,i,c,u)),(h=e.referencedMap.getKeys(n))==null||h.forEach(S=>!i.has(S)&&Zme(e,S,c,u))}}function j4e(e,n,i){return Hi(dJe(e,n,i),re.checkDefined(e.program).getProgramDiagnostics(n))}function dJe(e,n,i){const c=n.resolvedPath;if(e.semanticDiagnosticsPerFile){const d=e.semanticDiagnosticsPerFile.get(c);if(d)return rse(d,e.compilerOptions)}const u=re.checkDefined(e.program).getBindAndCheckDiagnostics(n,i);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(c,u),rse(u,e.compilerOptions)}function tge(e){return!!Ng(e.options||{})}function pJe(e,n){var i,c,u;const d=re.checkDefined(e.program).getCurrentDirectory(),h=ws(vf(PR(e.compilerOptions),d)),S=e.latestChangedDtsFile?Pe(e.latestChangedDtsFile):void 0,E=[],P=new Map,k=[];if(Ng(e.compilerOptions)){const Ze=oc(e.fileInfos.entries(),([at,Qt])=>{const nn=Ie(at);return Ct(at,nn),Qt.impliedFormat?{version:Qt.version,impliedFormat:Qt.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Qt.version}),Ke={fileNames:E,fileInfos:Ze,root:k,options:Lt(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:S,pendingEmit:e.programEmitPending?e.programEmitPending===P6(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:st,dts:It,commonSourceDirectory:Yt,sourceFiles:Et}=n;return e.bundle=n={commonSourceDirectory:Yt,sourceFiles:Et,js:st||(e.compilerOptions.emitDeclarationOnly||(i=e.bundle)==null?void 0:i.js),dts:It||(gv(e.compilerOptions)?(c=e.bundle)==null?void 0:c.dts:void 0)},Hae(Ke,n)}let F,$,J;const X=oc(e.fileInfos.entries(),([Ze,Ke])=>{var st,It;const Yt=Ie(Ze);Ct(Ze,Yt),re.assert(E[Yt-1]===dt(Ze));const Et=(st=e.oldSignatures)==null?void 0:st.get(Ze),at=Et!==void 0?Et||void 0:Ke.signature;if(e.compilerOptions.composite){const Qt=e.program.getSourceFileByPath(Ze);if(!Rx(Qt)&&JL(Qt,e.program)){const nn=(It=e.emitSignatures)==null?void 0:It.get(Ze);nn!==at&&(J||(J=[])).push(nn===void 0?Yt:[Yt,!As(nn)&&nn[0]===at?Yn:nn])}}return Ke.version===at?Ke.affectsGlobalScope||Ke.impliedFormat?{version:Ke.version,signature:void 0,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}:Ke.version:at!==void 0?Et===void 0?Ke:{version:Ke.version,signature:at,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}:{version:Ke.version,signature:!1,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}});let ie;e.referencedMap&&(ie=oc(e.referencedMap.keys()).sort(Fp).map(Ze=>[Ie(Ze),ct(e.referencedMap.getValues(Ze))]));let ae;e.exportedModulesMap&&(ae=Qo(oc(e.exportedModulesMap.keys()).sort(Fp),Ze=>{var Ke;const st=(Ke=e.oldExportedModulesMap)==null?void 0:Ke.get(Ze);if(st===void 0)return[Ie(Ze),ct(e.exportedModulesMap.getValues(Ze))];if(st)return[Ie(Ze),ct(st)]}));let ve;if(e.semanticDiagnosticsPerFile)for(const Ze of oc(e.semanticDiagnosticsPerFile.keys()).sort(Fp)){const Ke=e.semanticDiagnosticsPerFile.get(Ze);(ve||(ve=[])).push(Ke.length?[Ie(Ze),mJe(Ke,dt)]:Ie(Ze))}let we;if((u=e.affectedFilesPendingEmit)!=null&&u.size){const Ze=P6(e.compilerOptions),Ke=new Set;for(const st of oc(e.affectedFilesPendingEmit.keys()).sort(Fp))if(m2(Ke,st)){const It=e.program.getSourceFileByPath(st);if(!It||!JL(It,e.program))continue;const Yt=Ie(st),Et=e.affectedFilesPendingEmit.get(st);(we||(we=[])).push(Et===Ze?Yt:Et===8?[Yt]:[Yt,Et])}}let Fe;if(e.changedFilesSet.size)for(const Ze of oc(e.changedFilesSet.keys()).sort(Fp))(Fe||(Fe=[])).push(Ie(Ze));const et={fileNames:E,fileInfos:X,root:k,options:Lt(e.compilerOptions),fileIdsList:F,referencedMap:ie,exportedModulesMap:ae,semanticDiagnosticsPerFile:ve,affectedFilesPendingEmit:we,changeFileSet:Fe,emitSignatures:J,latestChangedDtsFile:S};return Hae(et,n);function Pe(Ze){return dt(vf(Ze,d))}function dt(Ze){return Fd(sP(h,Ze,e.program.getCanonicalFileName))}function Ie(Ze){let Ke=P.get(Ze);return Ke===void 0&&(E.push(dt(Ze)),P.set(Ze,Ke=E.length)),Ke}function ct(Ze){const Ke=oc(Ze.keys(),Ie).sort(pf),st=Ke.join();let It=$==null?void 0:$.get(st);return It===void 0&&((F||(F=[])).push(Ke),($||($=new Map)).set(st,It=F.length)),It}function Ct(Ze,Ke){const st=e.program.getSourceFile(Ze);if(!e.program.getFileIncludeReasons().get(st.path).some(at=>at.kind===0))return;if(!k.length)return k.push(Ke);const It=k[k.length-1],Yt=ls(It);if(Yt&&It[1]===Ke-1)return It[1]=Ke;if(Yt||k.length===1||It!==Ke-1)return k.push(Ke);const Et=k[k.length-2];return!U1(Et)||Et!==It-1?k.push(Ke):(k[k.length-2]=[Et,Ke],k.length=k.length-1)}function Lt(Ze){let Ke;const{optionsNameMap:st}=JG();for(const It of ET(Ze).sort(Fp)){const Yt=st.get(It.toLowerCase());Yt!=null&&Yt.affectsBuildInfo&&((Ke||(Ke={}))[It]=Cxe(Yt,Ze[It],Pe))}return Ke}}function Cxe(e,n,i){if(e){if(re.assert(e.type!=="listOrElement"),e.type==="list"){const c=n;if(e.element.isFilePath&&c.length)return c.map(i)}else if(e.isFilePath)return i(n)}return n}function mJe(e,n){return re.assert(!!e.length),e.map(i=>{const c=Dxe(i,n);c.reportsUnnecessary=i.reportsUnnecessary,c.reportDeprecated=i.reportsDeprecated,c.source=i.source,c.skippedOn=i.skippedOn;const{relatedInformation:u}=i;return c.relatedInformation=u?u.length?u.map(d=>Dxe(d,n)):[]:void 0,c})}function Dxe(e,n){const{file:i}=e;return{...e,file:i?n(i.resolvedPath):void 0,messageText:As(e.messageText)?e.messageText:bF(e.messageText)}}function bF(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:Ixe(e.next)};const n=Ixe(e.next);return n===e.next?e:{...e,next:n}}function Ixe(e){return e&&(Ot(e,(n,i)=>{const c=bF(n);if(n===c)return;const u=i>0?e.slice(0,i-1):[];u.push(c);for(let d=i+1;d`${E(P)}${wz[P.category]}${P.code}: ${S(P.messageText)}`).join(` -`)),(c.createHash??Lz)(i);function S(P){return As(P)?P:P===void 0?"":P.next?P.messageText+P.next.map(S).join(` -`):P.messageText}function E(P){return P.file.resolvedPath===n.resolvedPath?`(${P.start},${P.length})`:(h===void 0&&(h=ws(n.resolvedPath)),`${Fd(sP(h,P.file.resolvedPath,e.getCanonicalFileName))}(${P.start},${P.length})`)}}function TF(e,n,i){return(n.createHash??Lz)(V4e(e,i))}function rge(e,{newProgram:n,host:i,oldProgram:c,configFileParsingDiagnostics:u}){let d=c&&c.getState();if(d&&n===d.program&&u===n.getConfigFileParsingDiagnostics())return n=void 0,d=void 0,c;const h=iJe(n,d);n.getBuildInfo=ie=>pJe(h,ie),n=void 0,c=void 0,d=void 0;const S=()=>h,E=fse(S,u);return E.getState=S,E.saveEmitState=()=>wct(h),E.restoreEmitState=ie=>cJe(h,ie),E.hasChangedEmitSignature=()=>!!h.hasChangedEmitSignature,E.getAllDependencies=ie=>cD.getAllDependencies(h,re.checkDefined(h.program),ie),E.getSemanticDiagnostics=X,E.emit=$,E.releaseProgram=()=>Nct(h),e===0?E.getSemanticDiagnosticsOfNextAffectedFile=J:e===1?(E.getSemanticDiagnosticsOfNextAffectedFile=J,E.emitNextAffectedFile=k,E.emitBuildInfo=P):Na(),E;function P(ie,ae){if(h.buildInfoEmitPending){const ve=re.checkDefined(h.program).emitBuildInfo(ie||wc(i,i.writeFile),ae);return h.buildInfoEmitPending=!1,ve}return Yme}function k(ie,ae,ve,we){var Fe,et,Pe;let dt=Qme(h,ae,i);const Ie=P6(h.compilerOptions);let ct=ve?Ie&24:Ie;if(!dt)if(Ng(h.compilerOptions)){if(!h.programEmitPending||(ct=h.programEmitPending,ve&&(ct=ct&24),!ct))return;dt=h.program}else{const Ze=uJe(h,ve);if(!Ze){if(!h.buildInfoEmitPending)return;const Ke=h.program,st=Ke.emitBuildInfo(ie||wc(i,i.writeFile),ae);return h.buildInfoEmitPending=!1,{result:st,affected:Ke}}({affectedFile:dt,emitKind:ct}=Ze)}let Ct;ct&7&&(Ct=0),ct&24&&(Ct=Ct===void 0?1:void 0),dt===h.program&&(h.programEmitPending=h.changedFilesSet.size?N$(Ie,ct):h.programEmitPending?N$(h.programEmitPending,ct):void 0);const Lt=h.program.emit(dt===h.program?void 0:dt,F(ie,we),ae,Ct,we);if(dt!==h.program){const Ze=dt;h.seenAffectedFiles.add(Ze.resolvedPath),h.affectedFilesIndex!==void 0&&h.affectedFilesIndex++,h.buildInfoEmitPending=!0;const Ke=((Fe=h.seenEmittedFiles)==null?void 0:Fe.get(Ze.resolvedPath))||0;(h.seenEmittedFiles??(h.seenEmittedFiles=new Map)).set(Ze.resolvedPath,ct|Ke);const st=((et=h.affectedFilesPendingEmit)==null?void 0:et.get(Ze.resolvedPath))||Ie,It=N$(st,ct|Ke);It?(h.affectedFilesPendingEmit??(h.affectedFilesPendingEmit=new Map)).set(Ze.resolvedPath,It):(Pe=h.affectedFilesPendingEmit)==null||Pe.delete(Ze.resolvedPath)}else h.changedFilesSet.clear();return{result:Lt,affected:dt}}function F(ie,ae){return gv(h.compilerOptions)?(ve,we,Fe,et,Pe,dt)=>{var Ie,ct,Ct,Lt;if(Zb(ve))if(Ng(h.compilerOptions)){if(h.compilerOptions.composite){const Ke=Ze(h.outSignature,void 0);if(!Ke)return;h.outSignature=Ke}}else{re.assert((Pe==null?void 0:Pe.length)===1);let Ke;if(!ae){const st=Pe[0],It=h.fileInfos.get(st.resolvedPath);if(It.signature===st.version){const Yt=nge(h.program,st,we,i,dt);(Ie=dt==null?void 0:dt.diagnostics)!=null&&Ie.length||(Ke=Yt),Yt!==st.version&&(i.storeFilesChangingSignatureDuringEmit&&(h.filesChangingSignature??(h.filesChangingSignature=new Set)).add(st.resolvedPath),h.exportedModulesMap&&cD.updateExportedModules(h,st,st.exportedModulesFromDeclarationEmit),h.affectedFiles?(((ct=h.oldSignatures)==null?void 0:ct.get(st.resolvedPath))===void 0&&(h.oldSignatures??(h.oldSignatures=new Map)).set(st.resolvedPath,It.signature||!1),It.signature=Yt):(It.signature=Yt,(Ct=h.oldExportedModulesMap)==null||Ct.clear()))}}if(h.compilerOptions.composite){const st=Pe[0].resolvedPath;if(Ke=Ze((Lt=h.emitSignatures)==null?void 0:Lt.get(st),Ke),!Ke)return;(h.emitSignatures??(h.emitSignatures=new Map)).set(st,Ke)}}ie?ie(ve,we,Fe,et,Pe,dt):i.writeFile?i.writeFile(ve,we,Fe,et,Pe,dt):h.program.writeFile(ve,we,Fe,et,Pe,dt);function Ze(Ke,st){const It=!Ke||As(Ke)?Ke:Ke[0];if(st??(st=TF(we,i,dt)),st===It){if(Ke===It)return;dt?dt.differsOnlyInMap=!0:dt={differsOnlyInMap:!0}}else h.hasChangedEmitSignature=!0,h.latestChangedDtsFile=ve;return st}}:ie||wc(i,i.writeFile)}function $(ie,ae,ve,we,Fe){e===1&&lJe(h,ie);const et=nse(E,ie,ae,ve);if(et)return et;if(!ie)if(e===1){let Pe=[],dt=!1,Ie,ct=[],Ct;for(;Ct=k(ae,ve,we,Fe);)dt=dt||Ct.result.emitSkipped,Ie=Oi(Ie,Ct.result.diagnostics),ct=Oi(ct,Ct.result.emittedFiles),Pe=Oi(Pe,Ct.result.sourceMaps);return{emitSkipped:dt,diagnostics:Ie||Yn,emittedFiles:ct,sourceMaps:Pe}}else G4e(h,we);return re.checkDefined(h.program).emit(ie,F(ae,Fe),ve,we,Fe)}function J(ie,ae){for(;;){const ve=Qme(h,ie,i);let we;if(ve)if(ve!==h.program){const Fe=ve;if((!ae||!ae(Fe))&&(we=j4e(h,Fe,ie)),h.seenAffectedFiles.add(Fe.resolvedPath),h.affectedFilesIndex++,h.buildInfoEmitPending=!0,!we)continue}else we=h.program.getSemanticDiagnostics(void 0,ie),h.changedFilesSet.clear(),h.programEmitPending=P6(h.compilerOptions);else return;return{result:we,affected:ve}}}function X(ie,ae){lJe(h,ie);const ve=re.checkDefined(h.program).getCompilerOptions();if(Ng(ve))return re.assert(!h.semanticDiagnosticsPerFile),re.checkDefined(h.program).getSemanticDiagnostics(ie,ae);if(ie)return j4e(h,ie,ae);for(;J(ae););let we;for(const Fe of re.checkDefined(h.program).getSourceFiles())we=Oi(we,j4e(h,Fe,ae));return we||Yn}}function ige(e,n,i){var c;const u=((c=e.affectedFilesPendingEmit)==null?void 0:c.get(n))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(n,u|i)}function oge(e){return As(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:As(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function age(e,n){return U1(e)?n:e[1]||8}function sge(e,n){return e||P6(n||{})}function U4e(e,n,i){var c,u,d,h;const S=e.program,E=ws(vf(n,i.getCurrentDirectory())),P=H1(i.useCaseSensitiveFileNames());let k;const F=(c=S.fileNames)==null?void 0:c.map(X);let $;const J=S.latestChangedDtsFile?ie(S.latestChangedDtsFile):void 0;if(tge(S)){const Fe=new Map;S.fileInfos.forEach((et,Pe)=>{const dt=ae(Pe+1);Fe.set(dt,As(et)?{version:et,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:et)}),k={fileInfos:Fe,compilerOptions:S.options?qG(S.options,ie):{},latestChangedDtsFile:J,outSignature:S.outSignature,programEmitPending:S.pendingEmit===void 0?void 0:sge(S.pendingEmit,S.options),bundle:e.bundle}}else{$=(u=S.fileIdsList)==null?void 0:u.map(dt=>new Set(dt.map(ae)));const Fe=new Map,et=(d=S.options)!=null&&d.composite&&!Ng(S.options)?new Map:void 0;S.fileInfos.forEach((dt,Ie)=>{const ct=ae(Ie+1),Ct=oge(dt);Fe.set(ct,Ct),et&&Ct.signature&&et.set(ct,Ct.signature)}),(h=S.emitSignatures)==null||h.forEach(dt=>{if(U1(dt))et.delete(ae(dt));else{const Ie=ae(dt[0]);et.set(Ie,!As(dt[1])&&!dt[1].length?[et.get(Ie)]:dt[1])}});const Pe=S.affectedFilesPendingEmit?P6(S.options||{}):void 0;k={fileInfos:Fe,compilerOptions:S.options?qG(S.options,ie):{},referencedMap:we(S.referencedMap),exportedModulesMap:we(S.exportedModulesMap),semanticDiagnosticsPerFile:S.semanticDiagnosticsPerFile&&QT(S.semanticDiagnosticsPerFile,dt=>ae(U1(dt)?dt:dt[0]),dt=>U1(dt)?Yn:dt[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:S.affectedFilesPendingEmit&&QT(S.affectedFilesPendingEmit,dt=>ae(U1(dt)?dt:dt[0]),dt=>age(dt,Pe)),changedFilesSet:new Set(Vn(S.changeFileSet,ae)),latestChangedDtsFile:J,emitSignatures:et!=null&&et.size?et:void 0}}return{getState:()=>k,saveEmitState:ku,restoreEmitState:ku,getProgram:Na,getProgramOrUndefined:eE,releaseProgram:ku,getCompilerOptions:()=>k.compilerOptions,getSourceFile:Na,getSourceFiles:Na,getOptionsDiagnostics:Na,getGlobalDiagnostics:Na,getConfigFileParsingDiagnostics:Na,getSyntacticDiagnostics:Na,getDeclarationDiagnostics:Na,getSemanticDiagnostics:Na,emit:Na,getAllDependencies:Na,getCurrentDirectory:Na,emitNextAffectedFile:Na,getSemanticDiagnosticsOfNextAffectedFile:Na,emitBuildInfo:Na,close:ku,hasChangedEmitSignature:bg};function X(Fe){return gm(Fe,E,P)}function ie(Fe){return vf(Fe,E)}function ae(Fe){return F[Fe-1]}function ve(Fe){return $[Fe-1]}function we(Fe){if(!Fe)return;const et=cD.createManyToManyPathMap();return Fe.forEach(([Pe,dt])=>et.set(ae(Pe),ve(dt))),et}}function kxe(e,n,i){const c=ws(vf(n,i.getCurrentDirectory())),u=H1(i.useCaseSensitiveFileNames()),d=new Map;let h=0;const S=[];return e.fileInfos.forEach((E,P)=>{const k=gm(e.fileNames[P],c,u),F=As(E)?E:E.version;if(d.set(k,F),he().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:c=>i().getSourceFile(c),getSourceFiles:()=>i().getSourceFiles(),getOptionsDiagnostics:c=>i().getOptionsDiagnostics(c),getGlobalDiagnostics:c=>i().getGlobalDiagnostics(c),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(c,u)=>i().getSyntacticDiagnostics(c,u),getDeclarationDiagnostics:(c,u)=>i().getDeclarationDiagnostics(c,u),getSemanticDiagnostics:(c,u)=>i().getSemanticDiagnostics(c,u),emit:(c,u,d,h,S)=>i().emit(c,u,d,h,S),emitBuildInfo:(c,u)=>i().emitBuildInfo(c,u),getAllDependencies:Na,getCurrentDirectory:()=>i().getCurrentDirectory(),close:ku};function i(){return re.checkDefined(e().program)}}var Pxe,Nxe,H4e=G({"src/compiler/builder.ts"(){md(),Pxe=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Pxe||{}),Nxe=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Nxe||{})}});function wxe(e,n,i,c,u,d){return rge(0,nZ(e,n,i,c,u,d))}function cge(e,n,i,c,u,d){return rge(1,nZ(e,n,i,c,u,d))}function J4e(e,n,i,c,u,d){const{newProgram:h,configFileParsingDiagnostics:S}=nZ(e,n,i,c,u,d);return fse(()=>({program:h,compilerOptions:h.getCompilerOptions()}),S)}var gJe=G({"src/compiler/builderPublic.ts"(){md()}});function _se(e){return h_(e,"/node_modules/.staging")?DM(e,"/.staging"):gt(NU,n=>e.includes(n))?void 0:e}function Rxe(e,n){if(n<=1)return 1;let i=1,c=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==qp&&!c&&e[1].search(/[a-zA-Z]\$$/)===0){if(n===2)return 2;i=2,c=!0}return c&&!e[i].match(/^users$/i)?i:e[i].match(/^workspaces$/i)?i+1:i+2}function rZ(e,n){if(n===void 0&&(n=e.length),n<=2)return!1;const i=Rxe(e,n);return n>i+1}function Mxe(e){return $4e(ws(e))}function Lxe(e,n){if(n.lengthu.length+1?K4e(S,h,Math.max(u.length+1,E+1)):{dir:i,dirPath:c,nonRecursive:!0}:q4e(S,h,h.length-1,E,P,u)}function q4e(e,n,i,c,u,d){if(u!==-1)return K4e(e,n,u+1);let h=!0,S=i;for(let E=0;EhJe(c,u,d,e,i,n,h)}}function hJe(e,n,i,c,u,d,h){const S=lge(e),E=ej(i,c,u,S,n,d,h);if(!e.getGlobalCache)return E;const P=e.getGlobalCache();if(P!==void 0&&!Kv(i)&&!(E.resolvedModule&&KH(E.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:F,affectingLocations:$,resolutionDiagnostics:J}=P2e(re.checkDefined(e.globalCacheResolutionModuleName)(i),e.projectName,u,S,P,n);if(k)return E.resolvedModule=k,E.failedLookupLocations=l$(E.failedLookupLocations,F),E.affectingLocations=l$(E.affectingLocations,$),E.resolutionDiagnostics=l$(E.resolutionDiagnostics,J),E}return E}function Wxe(e,n,i){let c,u,d;const h=zg(),S=new Set,E=new Set,P=new Map,k=new Map;let F=!1,$,J,X,ie,ae,ve=!1;const we=Pd(()=>e.getCurrentDirectory()),Fe=e.getCachedDirectoryStructureHost(),et=new Map,Pe=s4(we(),e.getCanonicalFileName,e.getCompilationSettings()),dt=new Map,Ie=sae(we(),e.getCanonicalFileName,e.getCompilationSettings(),Pe.getPackageJsonInfoCache(),Pe.optionsToRedirectsKey),ct=new Map,Ct=s4(we(),e.getCanonicalFileName,E2e(e.getCompilationSettings()),Pe.getPackageJsonInfoCache()),Lt=new Map,Ze=new Map,Ke=iZ(n,we),st=e.toPath(Ke),It=qc(st),Yt=new Map;return{rootDirForResolution:n,resolvedModuleNames:et,resolvedTypeReferenceDirectives:dt,resolvedLibraries:ct,resolvedFileToResolution:P,resolutionsWithFailedLookups:S,resolutionsWithOnlyAffectingLocations:E,directoryWatchesOfFailedLookups:Lt,fileWatchesOfAffectingLocations:Ze,watchFailedLookupLocationsOfExternalModuleResolutions:no,getModuleResolutionCache:()=>Pe,startRecordingFilesWithChangedResolutions:Rn,finishRecordingFilesWithChangedResolutions:cn,startCachingPerDirectoryResolution:wr,finishCachingPerDirectoryResolution:jt,resolveModuleNameLiterals:Pn,resolveTypeReferenceDirectiveReferences:Vr,resolveLibrary:Fr,resolveSingleModuleNameWithoutWatching:Ki,removeResolutionsFromProjectReferenceRedirects:na,removeResolutionsOfFile:_a,hasChangedAutomaticTypeDirectiveNames:()=>F,invalidateResolutionOfFile:Au,invalidateResolutionsOfFailedLookupLocations:w_,setFilesWithInvalidatedNonRelativeUnresolvedImports:Qu,createHasInvalidatedResolutions:Kt,isFileWithInvalidatedNonRelativeUnresolvedImports:qt,updateTypeRootsWatch:Pr,closeTypeRootsWatch:dr,clear:Qt,onChangesAffectModuleResolution:nn};function Et(ln){return ln.resolvedModule}function at(ln){return ln.resolvedTypeReferenceDirective}function Qt(){Mh(Lt,YE),Mh(Ze,YE),h.clear(),dr(),et.clear(),dt.clear(),P.clear(),S.clear(),E.clear(),X=void 0,ie=void 0,ae=void 0,J=void 0,$=void 0,ve=!1,Pe.clear(),Ie.clear(),Pe.update(e.getCompilationSettings()),Ie.update(e.getCompilationSettings()),Ct.clear(),k.clear(),ct.clear(),F=!1}function nn(){ve=!0,Pe.clearAllExceptPackageJsonInfoCache(),Ie.clearAllExceptPackageJsonInfoCache(),Pe.update(e.getCompilationSettings()),Ie.update(e.getCompilationSettings())}function Rn(){c=[]}function cn(){const ln=c;return c=void 0,ln}function qt(ln){if(!d)return!1;const Wn=d.get(ln);return!!Wn&&!!Wn.length}function Kt(ln,Wn){w_();const $r=u;return u=void 0,{hasInvalidatedResolutions:Ge=>ln(Ge)||ve||!!($r!=null&&$r.has(Ge))||qt(Ge),hasInvalidatedLibResolutions:Ge=>{var Br;return Wn(Ge)||!!((Br=ct==null?void 0:ct.get(Ge))!=null&&Br.isInvalidated)}}}function wr(){Pe.isReadonly=void 0,Ie.isReadonly=void 0,Ct.isReadonly=void 0,Pe.getPackageJsonInfoCache().isReadonly=void 0,Pe.clearAllExceptPackageJsonInfoCache(),Ie.clearAllExceptPackageJsonInfoCache(),Ct.clearAllExceptPackageJsonInfoCache(),h.forEach(Wl),h.clear()}function Wr(ln){ct.forEach((Wn,$r)=>{var Ge;(Ge=ln==null?void 0:ln.resolvedLibReferences)!=null&&Ge.has($r)||(qn(Wn,e.toPath(VW(e.getCompilationSettings(),we(),$r)),Et),ct.delete($r))})}function jt(ln,Wn){d=void 0,ve=!1,h.forEach(Wl),h.clear(),ln!==Wn&&(Wr(ln),ln==null||ln.getSourceFiles().forEach($r=>{var Ge;const Br=aE($r)?((Ge=$r.packageJsonLocations)==null?void 0:Ge.length)??0:0,Ei=k.get($r.path)??Yn;for(let Ln=Ei.length;LnBr)for(let Ln=Br;Ln{ln!=null&&ln.getSourceFileByPath(Ge)||($r.forEach(Br=>Ze.get(Br).files--),k.delete(Ge))})),Lt.forEach(En),Ze.forEach(fr),F=!1,Pe.isReadonly=!0,Ie.isReadonly=!0,Ct.isReadonly=!0,Pe.getPackageJsonInfoCache().isReadonly=!0}function En(ln,Wn){ln.refCount===0&&(Lt.delete(Wn),ln.watcher.close())}function fr(ln,Wn){var $r;ln.files===0&&ln.resolutions===0&&!(($r=ln.symlinks)!=null&&$r.size)&&(Ze.delete(Wn),ln.watcher.close())}function Tr({entries:ln,containingFile:Wn,containingSourceFile:$r,redirectedReference:Ge,options:Br,perFileCache:Ei,reusedNames:Ln,loader:Sr,getResolutionWithResolvedFileName:yi,deferWatchingNonRelativeResolution:go,shouldRetryResolution:Ao,logChanges:Io}){const ze=e.toPath(Wn),Ce=Ei.get(ze)||Ei.set(ze,IR()).get(ze),kt=[],qe=Io&&qt(ze),Mt=e.getCurrentProgram(),ge=Mt&&Mt.getResolvedProjectReferenceToRedirect(Wn),mn=ge?!Ge||Ge.sourceFile.path!==ge.sourceFile.path:!!Ge,Jn=IR();for(const Lr of ln){const qi=Sr.nameAndMode.getName(Lr),vo=Sr.nameAndMode.getMode(Lr,$r);let Ro=Ce.get(qi,vo);if(!Jn.has(qi,vo)&&(ve||mn||!Ro||Ro.isInvalidated||qe&&!Kv(qi)&&Ao(Ro))){const Ts=Ro;Ro=Sr.resolve(qi,vo),e.onDiscoveredSymlink&&Bxe(Ro)&&e.onDiscoveredSymlink(),Ce.set(qi,vo,Ro),Ro!==Ts&&(no(qi,Ro,ze,yi,go),Ts&&qn(Ts,ze,yi)),Io&&c&&!Nn(Ts,Ro)&&(c.push(ze),Io=!1)}else{const Ts=lge(e);if(DR(Br,Ts)&&!Jn.has(qi,vo)){const Cc=yi(Ro);Df(Ts,Ei===et?Cc!=null&&Cc.resolvedFileName?Cc.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Cc!=null&&Cc.resolvedFileName?Cc.packageId?N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,qi,Wn,Cc==null?void 0:Cc.resolvedFileName,(Cc==null?void 0:Cc.packageId)&&jM(Cc.packageId))}}re.assert(Ro!==void 0&&!Ro.isInvalidated),Jn.set(qi,vo,!0),kt.push(Ro)}return Ln==null||Ln.forEach(Lr=>Jn.set(Sr.nameAndMode.getName(Lr),Sr.nameAndMode.getMode(Lr,$r),!0)),Ce.size()!==Jn.size()&&Ce.forEach((Lr,qi,vo)=>{Jn.has(qi,vo)||(qn(Lr,ze,yi),Ce.delete(qi,vo))}),kt;function Nn(Lr,qi){if(Lr===qi)return!0;if(!Lr||!qi)return!1;const vo=yi(Lr),Ro=yi(qi);return vo===Ro?!0:!vo||!Ro?!1:vo.resolvedFileName===Ro.resolvedFileName}}function Vr(ln,Wn,$r,Ge,Br,Ei){return Tr({entries:ln,containingFile:Wn,containingSourceFile:Br,redirectedReference:$r,options:Ge,reusedNames:Ei,perFileCache:dt,loader:Yae(Wn,$r,Ge,lge(e),Ie),getResolutionWithResolvedFileName:at,shouldRetryResolution:Ln=>Ln.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Pn(ln,Wn,$r,Ge,Br,Ei){return Tr({entries:ln,containingFile:Wn,containingSourceFile:Br,redirectedReference:$r,options:Ge,reusedNames:Ei,perFileCache:et,loader:oZ(Wn,$r,Ge,e,Pe),getResolutionWithResolvedFileName:Et,shouldRetryResolution:Ln=>!Ln.resolvedModule||!G7(Ln.resolvedModule.extension),logChanges:i,deferWatchingNonRelativeResolution:!0})}function Fr(ln,Wn,$r,Ge){const Br=lge(e);let Ei=ct==null?void 0:ct.get(Ge);if(!Ei||Ei.isInvalidated){const Ln=Ei;Ei=Zpe(ln,Wn,$r,Br,Ct);const Sr=e.toPath(Wn);no(ln,Ei,Sr,Et,!1),ct.set(Ge,Ei),Ln&&qn(Ln,Sr,Et)}else if(DR($r,Br)){const Ln=Et(Ei);Df(Br,Ln!=null&&Ln.resolvedFileName?Ln.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ln,Wn,Ln==null?void 0:Ln.resolvedFileName,(Ln==null?void 0:Ln.packageId)&&jM(Ln.packageId))}return Ei}function Ki(ln,Wn){var $r,Ge;const Br=e.toPath(Wn),Ei=et.get(Br),Ln=Ei==null?void 0:Ei.get(ln,void 0);if(Ln&&!Ln.isInvalidated)return Ln;const Sr=($r=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:$r.call(e,Pe),yi=lge(e),go=ej(ln,Wn,e.getCompilationSettings(),yi,Pe);return(Ge=e.afterResolveSingleModuleNameWithoutWatching)==null||Ge.call(e,Pe,ln,Wn,go,Sr),go}function io(ln){return h_(ln,"/node_modules/@types")}function no(ln,Wn,$r,Ge,Br){var Ei;if(Wn.refCount)Wn.refCount++,re.assertIsDefined(Wn.files);else{Wn.refCount=1,re.assert(!((Ei=Wn.files)!=null&&Ei.size)),!Br||Kv(ln)?Mo(Wn):h.add(ln,Wn);const Ln=Ge(Wn);if(Ln&&Ln.resolvedFileName){const Sr=e.toPath(Ln.resolvedFileName);let yi=P.get(Sr);yi||P.set(Sr,yi=new Set),yi.add(Wn)}}(Wn.files??(Wn.files=new Set)).add($r)}function os(ln,Wn){const $r=e.toPath(ln),Ge=Fxe(ln,$r,Ke,st,It,we);if(Ge){const{dir:Br,dirPath:Ei,nonRecursive:Ln}=Ge;Ei===st?(re.assert(Ln),Wn=!0):Jc(Br,Ei,Ln)}return Wn}function Mo(ln){re.assert(!!ln.refCount);const{failedLookupLocations:Wn,affectingLocations:$r,node10Result:Ge}=ln;if(!(Wn!=null&&Wn.length)&&!($r!=null&&$r.length)&&!Ge)return;(Wn!=null&&Wn.length||Ge)&&S.add(ln);let Br=!1;if(Wn)for(const Ei of Wn)Br=os(Ei,Br);Ge&&(Br=os(Ge,Br)),Br&&Jc(Ke,st,!0),$i(ln,!(Wn!=null&&Wn.length)&&!Ge)}function $i(ln,Wn){re.assert(!!ln.refCount);const{affectingLocations:$r}=ln;if($r!=null&&$r.length){Wn&&E.add(ln);for(const Ge of $r)ki(Ge,!0)}}function ki(ln,Wn){const $r=Ze.get(ln);if($r){Wn?$r.resolutions++:$r.files++;return}let Ge=ln,Br=!1,Ei;e.realpath&&(Ge=e.realpath(ln),ln!==Ge&&(Br=!0,Ei=Ze.get(Ge)));const Ln=Wn?1:0,Sr=Wn?0:1;if(!Br||!Ei){const yi={watcher:Oxe(e.toPath(Ge))?e.watchAffectingFileLocation(Ge,(go,Ao)=>{Fe==null||Fe.addOrDeleteFile(go,e.toPath(Ge),Ao),gc(Ge,Pe.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):L$,resolutions:Br?0:Ln,files:Br?0:Sr,symlinks:void 0};Ze.set(Ge,yi),Br&&(Ei=yi)}if(Br){re.assert(!!Ei);const yi={watcher:{close:()=>{var go;const Ao=Ze.get(Ge);(go=Ao==null?void 0:Ao.symlinks)!=null&&go.delete(ln)&&!Ao.symlinks.size&&!Ao.resolutions&&!Ao.files&&(Ze.delete(Ge),Ao.watcher.close())}},resolutions:Ln,files:Sr,symlinks:void 0};Ze.set(ln,yi),(Ei.symlinks??(Ei.symlinks=new Set)).add(ln)}}function gc(ln,Wn){var $r;const Ge=Ze.get(ln);Ge!=null&&Ge.resolutions&&(J??(J=new Set)).add(ln),Ge!=null&&Ge.files&&($??($=new Set)).add(ln),($r=Ge==null?void 0:Ge.symlinks)==null||$r.forEach(Br=>gc(Br,Wn)),Wn==null||Wn.delete(e.toPath(ln))}function Wl(ln,Wn){const $r=e.getCurrentProgram();!$r||!$r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Wn)?ln.forEach(Mo):ln.forEach(Ge=>$i(Ge,!0))}function Jc(ln,Wn,$r){const Ge=Lt.get(Wn);Ge?(re.assert(!!$r==!!Ge.nonRecursive),Ge.refCount++):Lt.set(Wn,{watcher:Ia(ln,Wn,$r),refCount:1,nonRecursive:$r})}function au(ln,Wn,$r){const Ge=e.toPath(ln),Br=Fxe(ln,Ge,Ke,st,It,we);if(Br){const{dirPath:Ei}=Br;Ei===st?Wn=!0:za(Ei,$r)}return Wn}function qn(ln,Wn,$r,Ge){if(re.checkDefined(ln.files).delete(Wn),ln.refCount--,ln.refCount)return;const Br=$r(ln);if(Br&&Br.resolvedFileName){const yi=e.toPath(Br.resolvedFileName),go=P.get(yi);go!=null&&go.delete(ln)&&!go.size&&P.delete(yi)}const{failedLookupLocations:Ei,affectingLocations:Ln,node10Result:Sr}=ln;if(S.delete(ln)){let yi=!1;if(Ei)for(const go of Ei)yi=au(go,yi,Ge);Sr&&(yi=au(Sr,yi,Ge)),yi&&za(st,Ge)}else Ln!=null&&Ln.length&&E.delete(ln);if(Ln)for(const yi of Ln){const go=Ze.get(yi);go.resolutions--,Ge&&fr(go,yi)}}function za(ln,Wn){const $r=Lt.get(ln);$r.refCount--,Wn&&En($r,ln)}function Ia(ln,Wn,$r){return e.watchDirectoryOfFailedLookupLocation(ln,Ge=>{const Br=e.toPath(Ge);Fe&&Fe.addOrDeleteFileOrDirectory(Ge,Br),Cu(Br,Wn===Br)},$r?0:1)}function zi(ln,Wn,$r,Ge){const Br=ln.get(Wn);Br&&(Br.forEach(Ei=>qn(Ei,Wn,$r,Ge)),ln.delete(Wn))}function na(ln){if(!mm(ln,".json"))return;const Wn=e.getCurrentProgram();if(!Wn)return;const $r=Wn.getResolvedProjectReferenceByPath(ln);$r&&$r.commandLine.fileNames.forEach(Ge=>_a(e.toPath(Ge)))}function _a(ln,Wn){zi(et,ln,Et,Wn),zi(dt,ln,at,Wn)}function us(ln,Wn){if(!ln)return!1;let $r=!1;return ln.forEach(Ge=>{if(!(Ge.isInvalidated||!Wn(Ge))){Ge.isInvalidated=$r=!0;for(const Br of re.checkDefined(Ge.files))(u??(u=new Set)).add(Br),F=F||h_(Br,hj)}}),$r}function Au(ln){_a(ln);const Wn=F;us(P.get(ln),xT)&&F&&!Wn&&e.onChangedAutomaticTypeDirectiveNames()}function Qu(ln){re.assert(d===ln||d===void 0),d=ln}function Cu(ln,Wn){if(Wn)(ae||(ae=new Set)).add(ln);else{const $r=_se(ln);if(!$r||(ln=$r,e.fileIsOpen(ln)))return!1;const Ge=ws(ln);if(io(ln)||NX(ln)||io(Ge)||NX(Ge))(X||(X=new Set)).add(ln),(ie||(ie=new Set)).add(ln);else{if(Vme(e.getCurrentProgram(),ln)||mm(ln,".map"))return!1;(X||(X=new Set)).add(ln);const Br=d$(ln,!0);Br&&(ie||(ie=new Set)).add(Br)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function yf(){const ln=Pe.getPackageJsonInfoCache().getInternalMap();ln&&(X||ie||ae)&&ln.forEach((Wn,$r)=>He($r)?ln.delete($r):void 0)}function w_(){var ln;if(ve)return $=void 0,yf(),(X||ie||ae||J)&&us(ct,Eu),X=void 0,ie=void 0,ae=void 0,J=void 0,!0;let Wn=!1;return $&&((ln=e.getCurrentProgram())==null||ln.getSourceFiles().forEach($r=>{gt($r.packageJsonLocations,Ge=>$.has(Ge))&&((u??(u=new Set)).add($r.path),Wn=!0)}),$=void 0),!X&&!ie&&!ae&&!J||(Wn=us(S,Eu)||Wn,yf(),X=void 0,ie=void 0,ae=void 0,Wn=us(E,Hn)||Wn,J=void 0),Wn}function Eu(ln){var Wn;return Hn(ln)?!0:!X&&!ie&&!ae?!1:((Wn=ln.failedLookupLocations)==null?void 0:Wn.some($r=>He(e.toPath($r))))||!!ln.node10Result&&He(e.toPath(ln.node10Result))}function He(ln){return(X==null?void 0:X.has(ln))||Ns((ie==null?void 0:ie.keys())||[],Wn=>qf(ln,Wn)?!0:void 0)||Ns((ae==null?void 0:ae.keys())||[],Wn=>ln.length>Wn.length&&qf(ln,Wn)&&(Gre(Wn)||ln[Wn.length]===qp)?!0:void 0)}function Hn(ln){var Wn;return!!J&&((Wn=ln.affectingLocations)==null?void 0:Wn.some($r=>J.has($r)))}function dr(){Mh(Yt,Ib)}function Mr(ln,Wn){return Bt(ln)?e.watchTypeRootsDirectory(Wn,$r=>{const Ge=e.toPath($r);Fe&&Fe.addOrDeleteFileOrDirectory($r,Ge),F=!0,e.onChangedAutomaticTypeDirectiveNames();const Br=X4e(Wn,ln,st,It,we,Ei=>Lt.has(Ei));Br&&Cu(Ge,Br===Ge)},1):L$}function Pr(){const ln=e.getCompilationSettings();if(ln.types){dr();return}const Wn=ZG(ln,{getCurrentDirectory:we});Wn?a6(Yt,QT(Wn,$r=>e.toPath($r)),{createNewValue:Mr,onDeleteValue:Ib}):dr()}function Bt(ln){return e.getCompilationSettings().typeRoots?!0:Mxe(e.toPath(ln))}}function Bxe(e){var n,i;return!!((n=e.resolvedModule)!=null&&n.originalPath||(i=e.resolvedTypeReferenceDirective)!=null&&i.originalPath)}var zxe=G({"src/compiler/resolutionCache.ts"(){md()}});function w$(e,n){const i=e===w0&&$xe?$xe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:H1(e.useCaseSensitiveFileNames)};if(!n)return u=>e.write(qme(u,i));const c=new Array(1);return u=>{c[0]=u,e.write(kA(c,i)+i.getNewLine()),c[0]=void 0}}function Q4e(e,n,i){return e.clearScreen&&!i.preserveWatchOutput&&!i.extendedDiagnostics&&!i.diagnostics&&ni(pge,n.code)?(e.clearScreen(),!0):!1}function yJe(e,n){return ni(pge,e.code)?n+n:n}function dse(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Gxe(e,n){return n?(i,c,u)=>{Q4e(e,i,u);let d=`[${wR(dse(e),"\x1B[90m")}] `;d+=`${D2(i.messageText,e.newLine)}${c+c}`,e.write(d)}:(i,c,u)=>{let d="";Q4e(e,i,u)||(d+=c),d+=`${dse(e)} - `,d+=`${D2(i.messageText,e.newLine)}${yJe(i,c)}`,e.write(d)}}function jxe(e,n,i,c,u,d){const h=u;h.onUnRecoverableConfigFileDiagnostic=E=>pC(u,d,E);const S=$G(e,n,h,i,c);return h.onUnRecoverableConfigFileDiagnostic=void 0,S}function pse(e){return dp(e,n=>n.category===1)}function aZ(e){return gi(e,i=>i.category===1).map(i=>{if(i.file!==void 0)return`${i.file.fileName}`}).map(i=>{if(i===void 0)return;const c=lr(e,u=>u.file!==void 0&&u.file.fileName===i);if(c!==void 0){const{line:u}=xm(c.file,c.start);return{fileName:i,line:u+1}}})}function mse(e){return e===1?N.Found_1_error_Watching_for_file_changes:N.Found_0_errors_Watching_for_file_changes}function Vxe(e,n){const i=wR(":"+e.line,"\x1B[90m");return m0(e.fileName)&&m0(n)?sP(n,e.fileName,!1)+i:e.fileName+i}function uge(e,n,i,c){if(e===0)return"";const u=n.filter(k=>k!==void 0),d=u.map(k=>`${k.fileName}:${k.line}`).filter((k,F,$)=>$.indexOf(k)===F),h=u[0]&&Vxe(u[0],c.getCurrentDirectory());let S;e===1?S=n[0]!==void 0?[N.Found_1_error_in_0,h]:[N.Found_1_error]:S=d.length===0?[N.Found_0_errors,e]:d.length===1?[N.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,h]:[N.Found_0_errors_in_1_files,e,d.length];const E=W_(...S),P=d.length>1?R$(u,c):"";return`${i}${D2(E.messageText,i)}${i}${i}${P}`}function R$(e,n){const i=e.filter((F,$,J)=>$===J.findIndex(X=>(X==null?void 0:X.fileName)===(F==null?void 0:F.fileName)));if(i.length===0)return"";const c=F=>Math.log(F)*Math.LOG10E+1,u=i.map(F=>[F,dp(e,$=>$.fileName===F.fileName)]),d=u.reduce((F,$)=>Math.max(F,$[1]||0),0),h=N.Errors_Files.message,S=h.split(" ")[0].length,E=Math.max(S,c(d)),P=Math.max(c(d)-S,0);let k="";return k+=" ".repeat(P)+h+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ul),Ht.flags=ug,Ht.enclosingDeclaration=xh}function Gr(si,$c,Ul){const Pl=F1(si),Hl=Fo(si),lg=Vn(Hl,ES=>xr(ES,Ht)),jd=l0(Pl),U_=Nt(jd)?vp(jd):void 0,kp=ea(zm(Pl),ES=>Mw(ES,U_)),ug=Lw(0,Pl,U_,179),xh=Lw(1,Pl,U_,180),f2=XV(Pl,U_),SS=Nt(jd)?[he.createHeritageClause(96,Qo(jd,ES=>hne(ES,111551)))]:void 0;Ey(he.createInterfaceDeclaration(void 0,oA(si,$c),lg,SS,[...f2,...xh,...ug,...kp]),Ul)}function uo(si){const $c=L2(si);return $c?gi(oc($c.values()),Ul=>D_(Ul)&&H2(Ul.escapedName,99)):[]}function qa(si){return jr(uo(si),$c=>!(pT(Av($c))&111551))}function yc(si,$c,Ul){const Pl=uo(si),Hl=_N(Pl,U_=>U_.parent&&U_.parent===si?"real":"merged"),lg=Hl.get("real")||Yn,jd=Hl.get("merged")||Yn;if(Nt(lg)){const U_=oA(si,$c);vu(lg,U_,Ul,!!(si.flags&67108880))}if(Nt(jd)){const U_=ts(Ht.enclosingDeclaration),kp=oA(si,$c),ug=he.createModuleBlock([he.createExportDeclaration(void 0,!1,he.createNamedExports(Qo(gi(jd,xh=>xh.escapedName!=="export="),xh=>{var f2,SS;const ES=Ic(xh.escapedName),Qh=oA(xh,ES),qT=xh.declarations&&UT(xh);if(U_&&(qT?U_!==ts(qT):!gt(xh.declarations,aA=>ts(aA)===U_))){(SS=(f2=Ht.tracker)==null?void 0:f2.reportNonlocalAugmentation)==null||SS.call(f2,U_,si,xh);return}const _L=qT&&Yx(qT,!0);Yh(_L||xh);const KT=_L?oA(_L,Ic(_L.escapedName)):Qh;return he.createExportSpecifier(!1,ES===KT?void 0:KT,ES)})))]);Ey(he.createModuleDeclaration(void 0,he.createIdentifier(kp),ug,32),0)}}function Yo(si,$c,Ul){Ey(he.createEnumDeclaration(he.createModifiersFromModifierFlags(Nwe(si)?4096:0),oA(si,$c),Vn(gi(zm(La(si)),Pl=>!!(Pl.flags&8)),Pl=>{const Hl=Pl.declarations&&Pl.declarations[0]&&pI(Pl.declarations[0])?ww(Pl.declarations[0]):void 0;return he.createEnumMember(Ic(Pl.escapedName),Hl===void 0?void 0:typeof Hl=="string"?he.createStringLiteral(Hl):he.createNumericLiteral(Hl))})),Ul)}function ic(si,$c,Ul,Pl){const Hl=ed(si,0);for(const lg of Hl){const jd=Rt(lg,262,Ht,{name:he.createIdentifier(Ul),privateSymbolVisitor:Yh,bundledImports:Ws});Ey(Tn(jd,Zl(lg)),Pl)}if(!($c.flags&1536&&$c.exports&&$c.exports.size)){const lg=gi(zm(si),D_);vu(lg,Ul,Pl,!0)}}function Zl(si){if(si.declaration&&si.declaration.parent){if(Ds(si.declaration.parent)&&jy(si.declaration.parent)===5)return si.declaration.parent;if(Kc(si.declaration.parent)&&si.declaration.parent.parent)return si.declaration.parent.parent}return si.declaration}function vu(si,$c,Ul,Pl){if(Nt(si)){const lg=_N(si,Qh=>!Nt(Qh.declarations)||gt(Qh.declarations,qT=>ts(qT)===ts(Ht.enclosingDeclaration))?"local":"remote").get("local")||Yn;let jd=Ck.createModuleDeclaration(void 0,he.createIdentifier($c),he.createModuleBlock([]),32);kl(jd,Iu),jd.locals=zd(si),jd.symbol=si[0].parent;const U_=rl;rl=[];const kp=Bi;Bi=!1;const ug={...Ht,enclosingDeclaration:jd},xh=Ht;Ht=ug,Op(zd(lg),Pl,!0),Ht=xh,Bi=kp;const f2=rl;rl=U_;const SS=Vn(f2,Qh=>py(Qh)&&!Qh.isExportEquals&&xn(Qh.expression)?he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,Qh.expression,he.createIdentifier("default"))])):Qh),ES=jr(SS,Qh=>ul(Qh,32))?Vn(SS,a_):SS;jd=he.updateModuleDeclaration(jd,jd.modifiers,jd.name,he.createModuleBlock(ES)),Ey(jd,Ul)}}function D_(si){return!!(si.flags&2887656)||!(si.flags&4194304||si.escapedName==="prototype"||si.valueDeclaration&&pd(si.valueDeclaration)&&Fl(si.valueDeclaration.parent))}function Qd(si){const $c=Qo(si,Ul=>{const Pl=Ht.enclosingDeclaration;Ht.enclosingDeclaration=Ul;let Hl=Ul.expression;if(Tg(Hl)){if(xn(Hl)&&Kr(Hl)==="")return lg(void 0);let jd;if({introducesError:jd,node:Hl}=f0(Hl,Ht,Yh),jd)return lg(void 0)}return lg(he.createExpressionWithTypeArguments(Hl,Vn(Ul.typeArguments,jd=>jh(Ht,jd,Yh,Ws)||A(Xl(jd),Ht))));function lg(jd){return Ht.enclosingDeclaration=Pl,jd}});if($c.length===si.length)return $c}function op(si,$c,Ul){var Pl,Hl;const lg=(Pl=si.declarations)==null?void 0:Pl.find(Fl),jd=Ht.enclosingDeclaration;Ht.enclosingDeclaration=lg||jd;const U_=Fo(si),kp=Vn(U_,Fw=>xr(Fw,Ht)),ug=vx(F1(si)),xh=l0(ug),f2=lg&&ZM(lg),SS=f2&&Qd(f2)||Qo(VA(ug),f8),ES=La(si),Qh=!!((Hl=ES.symbol)!=null&&Hl.valueDeclaration)&&Fl(ES.symbol.valueDeclaration),qT=Qh?cv(ES):Ge,_L=[...Nt(xh)?[he.createHeritageClause(96,Vn(xh,Fw=>t_e(Fw,qT,$c)))]:[],...Nt(SS)?[he.createHeritageClause(119,SS)]:[]],KT=_(ug,xh,zm(ug)),aA=gi(KT,Fw=>{const R1e=Fw.valueDeclaration;return!!R1e&&!(mp(R1e)&&Lu(R1e.name))}),Ow=gt(KT,Fw=>{const R1e=Fw.valueDeclaration;return!!R1e&&mp(R1e)&&Lu(R1e.name)})?[he.createPropertyDeclaration(void 0,he.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Yn,C5=ea(aA,Fw=>Ql(Fw,!1,xh[0])),D5=ea(gi(zm(ES),Fw=>!(Fw.flags&4194304)&&Fw.escapedName!=="prototype"&&!D_(Fw)),Fw=>Ql(Fw,!0,qT)),hPt=!Qh&&!!si.valueDeclaration&&Cs(si.valueDeclaration)&&!gt(ed(ES,1))?[he.createConstructorDeclaration(he.createModifiersFromModifierFlags(2),[],void 0)]:Lw(1,ES,qT,176),yPt=XV(ug,xh[0]);Ht.enclosingDeclaration=jd,Ey(Tn(he.createClassDeclaration(void 0,$c,kp,_L,[...yPt,...D5,...hPt,...C5,...Ow]),si.declarations&&gi(si.declarations,Fw=>Ih(Fw)||v0(Fw))[0]),Ul)}function uu(si){return Yr(si,$c=>{if(qE($c)||my($c))return Kr($c.propertyName||$c.name);if(Ds($c)||py($c)){const Ul=py($c)?$c.expression:$c.right;if(Ac(Ul))return Kr(Ul.name)}if(wI($c)){const Ul=i_($c);if(Ul&&xn(Ul))return Kr(Ul)}})}function sd(si,$c,Ul){var Pl,Hl,lg,jd,U_;const kp=UT(si);if(!kp)return re.fail();const ug=jp(Yx(kp,!0));if(!ug)return;let xh=ZU(ug)&&uu(si.declarations)||Ic(ug.escapedName);xh==="export="&&Ze&&(xh="default");const f2=oA(ug,xh);switch(Yh(ug),kp.kind){case 208:if(((Hl=(Pl=kp.parent)==null?void 0:Pl.parent)==null?void 0:Hl.kind)===260){const Qh=Da(ug.parent||ug,Ht),{propertyName:qT}=kp;Ey(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamedImports([he.createImportSpecifier(!1,qT&&xn(qT)?he.createIdentifier(Kr(qT)):void 0,he.createIdentifier($c))])),he.createStringLiteral(Qh),void 0),0);break}re.failBadSyntaxKind(((lg=kp.parent)==null?void 0:lg.parent)||kp,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((U_=(jd=kp.parent)==null?void 0:jd.parent)==null?void 0:U_.kind)===226&&Ip(Ic(si.escapedName),f2);break;case 260:if(Ac(kp.initializer)){const Qh=kp.initializer,qT=he.createUniqueName($c),_L=Da(ug.parent||ug,Ht);Ey(he.createImportEqualsDeclaration(void 0,!1,qT,he.createExternalModuleReference(he.createStringLiteral(_L))),0),Ey(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier($c),he.createQualifiedName(qT,Qh.name)),Ul);break}case 271:if(ug.escapedName==="export="&>(ug.declarations,Qh=>Nu(Qh)&&Rx(Qh))){Eh(si);break}const SS=!(ug.flags&512)&&!Kc(kp);Ey(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier($c),SS?Xf(ug,Ht,67108863,!1):he.createExternalModuleReference(he.createStringLiteral(Da(ug,Ht)))),SS?Ul:0);break;case 270:Ey(he.createNamespaceExportDeclaration(Kr(kp.name)),0);break;case 273:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.moduleSpecifier;Ey(he.createImportDeclaration(void 0,he.createImportClause(!1,he.createIdentifier($c),void 0),qT,kp.parent.attributes),0);break}case 274:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.parent.moduleSpecifier;Ey(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamespaceImport(he.createIdentifier($c))),qT,kp.parent.attributes),0);break}case 280:Ey(he.createExportDeclaration(void 0,!1,he.createNamespaceExport(he.createIdentifier($c)),he.createStringLiteral(Da(ug,Ht))),0);break;case 276:{const Qh=Da(ug.parent||ug,Ht),qT=Ws?he.createStringLiteral(Qh):kp.parent.parent.parent.moduleSpecifier;Ey(he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamedImports([he.createImportSpecifier(!1,$c!==xh?he.createIdentifier(xh):void 0,he.createIdentifier($c))])),qT,kp.parent.parent.parent.attributes),0);break}case 281:const ES=kp.parent.parent.moduleSpecifier;Ip(Ic(si.escapedName),ES?xh:f2,ES&&Cm(ES)?he.createStringLiteral(ES.text):void 0);break;case 277:Eh(si);break;case 226:case 211:case 212:si.escapedName==="default"||si.escapedName==="export="?Eh(si):Ip($c,f2);break;default:return re.failBadSyntaxKind(kp,"Unhandled alias declaration kind in symbol serializer!")}}function Ip(si,$c,Ul){Ey(he.createExportDeclaration(void 0,!1,he.createNamedExports([he.createExportSpecifier(!1,si!==$c?$c:void 0,si)]),Ul),0)}function Eh(si){var $c;if(si.flags&4194304)return!1;const Ul=Ic(si.escapedName),Pl=Ul==="export=",lg=Pl||Ul==="default",jd=si.declarations&&UT(si),U_=jd&&Yx(jd,!0);if(U_&&Nt(U_.declarations)&>(U_.declarations,kp=>ts(kp)===ts(Iu))){const kp=jd&&(py(jd)||Ds(jd)?Pde(jd):XMe(jd)),ug=kp&&Tg(kp)?Go(kp):void 0,xh=ug&&Qg(ug,67108863,!0,!0,Iu);(xh||U_)&&Yh(xh||U_);const f2=Ht.tracker.disableTrackSymbol;if(Ht.tracker.disableTrackSymbol=!0,lg)rl.push(he.createExportAssignment(void 0,Pl,KS(U_,Ht,67108863)));else if(ug===kp&&ug)Ip(Ul,Kr(ug));else if(kp&&v0(kp))Ip(Ul,oA(U_,Il(U_)));else{const SS=ez(Ul,si);Ey(he.createImportEqualsDeclaration(void 0,!1,he.createIdentifier(SS),Xf(U_,Ht,67108863,!1)),0),Ip(Ul,SS)}return Ht.tracker.disableTrackSymbol=f2,!0}else{const kp=ez(Ul,si),ug=z2(La(jp(si)));if(Gm(ug,si))ic(ug,si,kp,lg?0:32);else{const xh=(($c=Ht.enclosingDeclaration)==null?void 0:$c.kind)===267&&(!(si.flags&98304)||si.flags&65536)?1:2,f2=he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(kp,void 0,vb(Ht,ug,si,Iu,Yh,Ws))],xh));Ey(f2,U_&&U_.flags&4&&U_.escapedName==="export="?128:Ul===kp?32:0)}return lg?(rl.push(he.createExportAssignment(void 0,Pl,he.createIdentifier(kp))),!0):Ul!==kp?(Ip(Ul,kp),!0):!1}}function Gm(si,$c){const Ul=ts(Ht.enclosingDeclaration);return ji(si)&48&&!Nt(JT(si))&&!qF(si)&&!!(Nt(gi(zm(si),D_))||Nt(ed(si,0)))&&!Nt(ed(si,1))&&!Is($c,Iu)&&!(si.symbol&>(si.symbol.declarations,Pl=>ts(Pl)!==Ul))&&!gt(zm(si),Pl=>CB(Pl.escapedName))&&!gt(zm(si),Pl=>gt(Pl.declarations,Hl=>ts(Hl)!==Ul))&&jr(zm(si),Pl=>H2(Il(Pl),dt)?Pl.flags&98304?AC(Pl)===QF(Pl):!0:!1)}function G1(si,$c,Ul){return function(Hl,lg,jd){var U_,kp,ug,xh,f2;const SS=Vy(Hl),ES=!!(SS&2);if(lg&&Hl.flags&2887656)return[];if(Hl.flags&4194304||Hl.escapedName==="constructor"||jd&&Yd(jd,Hl.escapedName)&&z1(Yd(jd,Hl.escapedName))===z1(Hl)&&(Hl.flags&16777216)===(Yd(jd,Hl.escapedName).flags&16777216)&&Xh(La(Hl),Xe(jd,Hl.escapedName)))return[];const Qh=SS&-1025|(lg?256:0),qT=Ss(Hl,Ht),_L=(U_=Hl.declarations)==null?void 0:U_.find(bb(nu,GM,Kc,em,Ds,Ac));if(Hl.flags&98304&&Ul){const KT=[];if(Hl.flags&65536){const aA=Hl.declarations&&Ot(Hl.declarations,Ow=>{if(Ow.kind===178)return Ow;if(xd(Ow)&&A7(Ow))return Ot(Ow.arguments[2].properties,C5=>{const D5=i_(C5);if(D5&&xn(D5)&&Kr(D5)==="set")return C5})});re.assert(!!aA);const yne=Vd(aA)?gb(aA).parameters[0]:void 0;KT.push(Tn(he.createSetAccessorDeclaration(he.createModifiersFromModifierFlags(Qh),qT,[he.createParameterDeclaration(void 0,void 0,yne?la(yne,Ai(yne),Ht):"value",void 0,ES?void 0:vb(Ht,La(Hl),Hl,Iu,Yh,Ws))],void 0),((kp=Hl.declarations)==null?void 0:kp.find(UC))||_L))}if(Hl.flags&32768){const aA=SS&2;KT.push(Tn(he.createGetAccessorDeclaration(he.createModifiersFromModifierFlags(Qh),qT,[],aA?void 0:vb(Ht,La(Hl),Hl,Iu,Yh,Ws),void 0),((ug=Hl.declarations)==null?void 0:ug.find(PN))||_L))}return KT}else if(Hl.flags&98311)return Tn(si(he.createModifiersFromModifierFlags((z1(Hl)?8:0)|Qh),qT,Hl.flags&16777216?he.createToken(58):void 0,ES?void 0:vb(Ht,QF(Hl),Hl,Iu,Yh,Ws),void 0),((xh=Hl.declarations)==null?void 0:xh.find(bb(nu,Kc)))||_L);if(Hl.flags&8208){const KT=La(Hl),aA=ed(KT,0);if(Qh&2)return Tn(si(he.createModifiersFromModifierFlags((z1(Hl)?8:0)|Qh),qT,Hl.flags&16777216?he.createToken(58):void 0,void 0,void 0),((f2=Hl.declarations)==null?void 0:f2.find(Vd))||aA[0]&&aA[0].declaration||Hl.declarations&&Hl.declarations[0]);const yne=[];for(const Ow of aA){const C5=Rt(Ow,$c,Ht,{name:qT,questionToken:Hl.flags&16777216?he.createToken(58):void 0,modifiers:Qh?he.createModifiersFromModifierFlags(Qh):void 0}),D5=Ow.declaration&&jL(Ow.declaration.parent)?Ow.declaration.parent:Ow.declaration;yne.push(Tn(C5,D5))}return yne}return re.fail(`Unhandled class member kind! ${Hl.__debugFlags||Hl.flags}`)}}function Mw(si,$c){return Kl(si,!1,$c)}function Lw(si,$c,Ul,Pl){const Hl=ed($c,si);if(si===1){if(!Ul&&jr(Hl,U_=>Nt(U_.parameters)===0))return[];if(Ul){const U_=ed(Ul,1);if(!Nt(U_)&&jr(Hl,kp=>Nt(kp.parameters)===0))return[];if(U_.length===Hl.length){let kp=!1;for(let ug=0;ugA(Hl,Ht)),Pl=KS(si.target.symbol,Ht,788968)):si.symbol&&Er(si.symbol,Iu,$c)&&(Pl=KS(si.symbol,Ht,788968)),Pl)return he.createExpressionWithTypeArguments(Pl,Ul)}function f8(si){const $c=hne(si,788968);if($c)return $c;if(si.symbol)return he.createExpressionWithTypeArguments(KS(si.symbol,Ht,788968),void 0)}function ez(si,$c){var Ul,Pl;const Hl=$c?$d($c):void 0;if(Hl&&Ht.remappedSymbolNames.has(Hl))return Ht.remappedSymbolNames.get(Hl);$c&&(si=YGe($c,si));let lg=0;const jd=si;for(;(Ul=Ht.usedSymbolNames)!=null&&Ul.has(si);)lg++,si=`${jd}_${lg}`;return(Pl=Ht.usedSymbolNames)==null||Pl.add(si),Hl&&Ht.remappedSymbolNames.set(Hl,si),si}function YGe(si,$c){if($c==="default"||$c==="__class"||$c==="__function"){const Ul=Ht.flags;Ht.flags|=16777216;const Pl=Wk(si,Ht);Ht.flags=Ul,$c=Pl.length>0&&D9(Pl.charCodeAt(0))?S2(Pl):Pl}return $c==="default"?$c="_default":$c==="export="&&($c="_exports"),$c=H2($c,dt)&&!w7($c)?$c:"_"+$c.replace(/[^a-zA-Z0-9]/g,"_"),$c}function oA(si,$c){const Ul=$d(si);return Ht.remappedSymbolNames.has(Ul)?Ht.remappedSymbolNames.get(Ul):($c=YGe(si,$c),Ht.remappedSymbolNames.set(Ul,$c),$c)}}}function $P(o,f,v=16384,A){return A?R(A).getText():wT(R);function R(B){const Y=he.createTypePredicateNode(o.kind===2||o.kind===3?he.createToken(131):void 0,o.kind===1||o.kind===3?he.createIdentifier(o.parameterName):he.createThisTypeNode(),o.type&&Wr.typeToTypeNode(o.type,f,gO(v)|70221824|512)),pe=_4(),Te=f&&ts(f);return pe.writeNode(4,Y,Te,B),B}}function XR(o){const f=[];let v=0;for(let A=0;Ai_(Y)?Y:void 0);const B=R&&i_(R);if(R&&B){if(xd(R)&&A7(R))return Il(o);if(Qf(B)&&!(I_(o)&4096)){const Y=Ae(o).nameType;if(Y&&Y.flags&384){const pe=F4(o,f);if(pe!==void 0)return pe}}return hm(B)}if(R||(R=o.declarations[0]),R.parent&&R.parent.kind===260)return hm(R.parent.name);switch(R.kind){case 231:case 218:case 219:return f&&!f.encounteredError&&!(f.flags&131072)&&(f.encounteredError=!0),R.kind===231?"(Anonymous class)":"(Anonymous function)"}}const A=F4(o,f);return A!==void 0?A:Il(o)}function gw(o){if(o){const v=rt(o);return v.isVisible===void 0&&(v.isVisible=!!f()),v.isVisible}return!1;function f(){switch(o.kind){case 345:case 353:case 347:return!!(o.parent&&o.parent.parent&&o.parent.parent.parent&&Nu(o.parent.parent.parent));case 208:return gw(o.parent.parent);case 260:if($_(o.name)&&!o.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Ov(o))return!0;const v=XF(o);return!(eit(o)&32)&&!(o.kind!==271&&v.kind!==312&&v.flags&33554432)?Dn(v):gw(v);case 172:case 171:case 177:case 178:case 174:case 173:if(tT(o,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 gw(o.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 Qq(o,f){let v;o.parent&&o.parent.kind===277?v=gg(o,o.escapedText,2998271,void 0,o,!1):o.parent.kind===281&&(v=sO(o.parent,2998271));let A,R;return v&&(R=new Set,R.add($d(v)),B(v.declarations)),A;function B(Y){Ot(Y,pe=>{const Te=gD(pe)||pe;if(f?rt(pe).isVisible=!0:(A=A||[],Dy(A,Te)),$M(pe)){const Ue=pe.moduleReference,St=PS(Ue),Rt=gg(pe,St.escapedText,901119,void 0,void 0,!1);Rt&&R&&m2(R,$d(Rt))&&B(Rt.declarations)}})}}function OI(o,f){const v=HT(o,f);if(v>=0){const{length:A}=Js;for(let R=v;R=ju;v--){if(F0e(Js[v],fl[v]))return-1;if(Js[v]===o&&fl[v]===f)return v}return-1}function F0e(o,f){switch(f){case 0:return!!Ae(o).type;case 5:return!!rt(o).resolvedEnumType;case 2:return!!Ae(o).declaredType;case 1:return!!o.resolvedBaseConstructorType;case 3:return!!o.resolvedReturnType;case 4:return!!o.immediateBaseConstraint;case 6:return!!o.resolvedTypeArguments;case 7:return!!o.baseTypesResolved;case 8:return!!Ae(o).writeType;case 9:return rt(o).parameterInitializerContainsUndefined!==void 0}return re.assertNever(f)}function Bk(){return Js.pop(),fl.pop(),pu.pop()}function XF(o){return Ua(vA(o),f=>{switch(f.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function ute(o){const f=sh(xE(o));return f.typeParameters?qv(f,Vn(f.typeParameters,v=>Ge)):f}function Xe(o,f){const v=Yd(o,f);return v?La(v):void 0}function $t(o,f){var v;let A;return Xe(o,f)||(A=(v=i5(o,f))==null?void 0:v.type)&&mb(A,!0,!0)}function bn(o){return o&&(o.flags&1)!==0}function Fn(o){return o===Sr||!!(o.flags&1&&o.aliasSymbol)}function Ri(o,f){if(f!==0)return KP(o,!1,f);const v=sc(o);return v&&Ae(v).type||KP(o,!1,f)}function Ti(o,f,v){if(o=lv(o,Te=>!(Te.flags&98304)),o.flags&131072)return M_;if(o.flags&1048576)return Th(o,Te=>Ti(Te,f,v));let A=dc(Vn(f,SD));const R=[],B=[];for(const Te of zm(o)){const Ue=c5(Te,8576);!Id(Ue,A)&&!(Vy(Te)&6)&&_be(Te)?R.push(Te):B.push(Ue)}if(Ew(o)||Tx(A)){if(B.length&&(A=dc([A,...B])),A.flags&131072)return o;const Te=yet();return Te?PB(Te,[o,A]):Sr}const Y=zd();for(const Te of R)Y.set(Te.escapedName,VPe(Te,!1));const pe=sy(v,Y,Yn,Yn,JT(o));return pe.objectFlags|=4194304,pe}function Xc(o){return!!(o.flags&465829888)&&Ty(US(o)||Io,32768)}function Fu(o){const f=Uk(o,Xc)?Th(o,v=>v.flags&465829888?tM(v):v):o;return IC(f,524288)}function cu(o,f){const v=Ml(o);return v?a8(v,f):f}function Ml(o){const f=Zu(o);if(f&&J8(f)&&f.flowNode){const v=hg(o);if(v){const A=Tn(Ck.createStringLiteral(v),o),R=ib(f)?f:Ck.createParenthesizedExpression(f),B=Tn(Ck.createElementAccessExpression(R,A),o);return kl(A,B),kl(B,o),R!==f&&kl(R,B),B.flowNode=f.flowNode,B}}}function Zu(o){const f=o.parent.parent;switch(f.kind){case 208:case 303:return Ml(f);case 209:return Ml(o.parent);case 260:return f.initializer;case 226:return f.right}}function hg(o){const f=o.parent;return o.kind===208&&f.kind===206?T_(o.propertyName||o.name):o.kind===303||o.kind===304?T_(o.name):""+f.elements.indexOf(o)}function T_(o){const f=SD(o);return f.flags&384?""+f.value:void 0}function Cd(o){const f=o.dotDotDotToken?32:0,v=Ri(o.parent.parent,f);return v&&pb(o,v,!1)}function pb(o,f,v){if(bn(f))return f;const A=o.parent;Ke&&o.flags&33554432&&X8(o)?f=Dw(f):Ke&&A.parent.initializer&&!DC(Rtt(A.parent.initializer),65536)&&(f=IC(f,524288));let R;if(A.kind===206)if(o.dotDotDotToken){if(f=zI(f),f.flags&2||!Sfe(f))return hn(o,N.Rest_types_may_only_be_created_from_object_types),Sr;const B=[];for(const Y of A.elements)Y.dotDotDotToken||B.push(Y.propertyName||Y.name);R=Ti(f,B,o.symbol)}else{const B=o.propertyName||o.name,Y=SD(B),pe=u0(f,Y,32,B);R=cu(o,pe)}else{const B=Kk(65|(o.dotDotDotToken?0:128),f,Ce,A),Y=A.elements.indexOf(o);if(o.dotDotDotToken){const pe=Th(f,Te=>Te.flags&58982400?tM(Te):Te);R=Ex(pe,Dp)?Th(pe,Te=>bte(Te,Y)):hT(B)}else if(rL(f)){const pe=HA(Y),Te=32|(v||wO(o)?16:0),Ue=xw(f,pe,Te,o.name)||Sr;R=cu(o,Ue)}else R=B}return o.initializer?Zy(OU(o))?Ke&&!DC(ine(o,0),16777216)?Fu(R):R:vGe(o,dc([Fu(R),ine(o,0)],2)):R}function zA(o){const f=iR(o);if(f)return Xl(f)}function qP(o){const f=rg(o,!0);return f.kind===106||f.kind===80&&xD(f)===En}function yx(o){const f=rg(o,!0);return f.kind===209&&f.elements.length===0}function mb(o,f=!1,v=!0){return Ke&&v?iL(o,f):o}function KP(o,f,v){if(Kc(o)&&o.parent.parent.kind===249){const Y=CC(zze(Bf(o.parent.parent.expression,v)));return Y.flags&4456448?Oet(Y):Nn}if(Kc(o)&&o.parent.parent.kind===250){const Y=o.parent.parent;return I1e(Y)||Ge}if($_(o.parent))return Cd(o);const A=nu(o)&&!e_(o)||em(o)||I6e(o),R=f&&hG(o),B=wn(o);if(Tp(o))return B?bn(B)||B===Io?B:Sr:Qt?Io:Ge;if(B)return mb(B,A,R);if((Et||Cs(o))&&Kc(o)&&!$_(o.name)&&!(eit(o)&32)&&!(o.flags&33554432)){if(!(KV(o)&6)&&(!o.initializer||qP(o.initializer)))return Br;if(o.initializer&&yx(o.initializer))return Bh}if(Os(o)){const Y=o.parent;if(Y.kind===178&&DB(Y)){const Ue=Rh(sc(o.parent),177);if(Ue){const St=gb(Ue),Rt=S0t(Y);return Rt&&o===Rt?(re.assert(!Rt.type),La(St.thisParameter)):np(St)}}const pe=cgt(Y,o);if(pe)return pe;const Te=o.symbol.escapedName==="this"?gze(Y):tnt(o);if(Te)return mb(Te,!1,R)}if(g1(o)&&o.initializer){if(Cs(o)&&!Os(o)){const pe=B4(o,sc(o),pR(o));if(pe)return pe}const Y=vGe(o,ine(o,v));return mb(Y,A,R)}if(nu(o)&&(Et||Cs(o)))if(ev(o)){const Y=gi(o.parent.members,Ep),pe=Y.length?EC(o.symbol,Y):Cb(o)&128?aNe(o.symbol):void 0;return pe&&mb(pe,!0,R)}else{const Y=hD(o.parent),pe=Y?FI(o.symbol,Y):Cb(o)&128?aNe(o.symbol):void 0;return pe&&mb(pe,!0,R)}if(tx(o))return Ts;if($_(o.name))return xB(o.name,!1,!0)}function bV(o){if(o.valueDeclaration&&Ds(o.valueDeclaration)){const f=Ae(o);return f.isConstructorDeclaredProperty===void 0&&(f.isConstructorDeclaredProperty=!1,f.isConstructorDeclaredProperty=!!Zq(o)&&jr(o.declarations,v=>Ds(v)&&KNe(v)&&(v.left.kind!==212||Ox(v.left.argumentExpression))&&!GA(void 0,v,o,v))),f.isConstructorDeclaredProperty}return!1}function W4(o){const f=o.valueDeclaration;return f&&nu(f)&&!Zy(f)&&!f.initializer&&(Et||Cs(f))}function Zq(o){if(o.declarations)for(const f of o.declarations){const v=RT(f,!1,!1);if(v&&(v.kind===176||Ax(v)))return v}}function YF(o){const f=ts(o.declarations[0]),v=Ic(o.escapedName),A=o.declarations.every(B=>Cs(B)&&Kf(B)&&jE(B.expression)),R=A?he.createPropertyAccessExpression(he.createPropertyAccessExpression(he.createIdentifier("module"),he.createIdentifier("exports")),v):he.createPropertyAccessExpression(he.createIdentifier("exports"),v);return A&&kl(R.expression.expression,R.expression),kl(R.expression,R),kl(R,f),R.flowNode=f.endFlowNode,a8(R,Br,Ce)}function EC(o,f){const v=qf(o.escapedName,"__#")?he.createPrivateIdentifier(o.escapedName.split("@")[1]):Ic(o.escapedName);for(const A of f){const R=he.createPropertyAccessExpression(he.createThis(),v);kl(R.expression,R),kl(R,A),R.flowNode=A.returnFlowNode;const B=Cv(R,o);if(Et&&(B===Br||B===Bh)&&hn(o.valueDeclaration,N.Member_0_implicitly_has_an_1_type,ru(o),Co(B)),!Ex(B,n1e))return Jy(B)}}function FI(o,f){const v=qf(o.escapedName,"__#")?he.createPrivateIdentifier(o.escapedName.split("@")[1]):Ic(o.escapedName),A=he.createPropertyAccessExpression(he.createThis(),v);kl(A.expression,A),kl(A,f),A.flowNode=f.returnFlowNode;const R=Cv(A,o);return Et&&(R===Br||R===Bh)&&hn(o.valueDeclaration,N.Member_0_implicitly_has_an_1_type,ru(o),Co(R)),Ex(R,n1e)?void 0:Jy(R)}function Cv(o,f){const v=(f==null?void 0:f.valueDeclaration)&&(!W4(f)||Cb(f.valueDeclaration)&128)&&aNe(f)||Ce;return a8(o,Br,v)}function YR(o,f){const v=I9(o.valueDeclaration);if(v){const pe=Cs(v)?FM(v):void 0;return pe&&pe.typeExpression?Xl(pe.typeExpression):o.valueDeclaration&&B4(o.valueDeclaration,o,v)||d5(kv(v))}let A,R=!1,B=!1;if(bV(o)&&(A=FI(o,Zq(o))),!A){let pe;if(o.declarations){let Te;for(const Ue of o.declarations){const St=Ds(Ue)||xd(Ue)?Ue:Kf(Ue)?Ds(Ue.parent)?Ue.parent:Ue:void 0;if(!St)continue;const Rt=Kf(St)?XM(St):jy(St);(Rt===4||Ds(St)&&KNe(St,Rt))&&(vh(St)?R=!0:B=!0),xd(St)||(Te=GA(Te,St,o,Ue)),Te||(pe||(pe=[])).push(Ds(St)||xd(St)?eK(o,f,St,Rt):Tc)}A=Te}if(!A){if(!Nt(pe))return Sr;let Te=R&&o.declarations?J6(pe,o.declarations):void 0;if(B){const St=aNe(o);St&&((Te||(Te=[])).push(St),R=!0)}const Ue=gt(Te,St=>!!(St.flags&-98305))?Te:pe;A=dc(Ue)}}const Y=z2(mb(A,!1,B&&!R));return o.valueDeclaration&&Cs(o.valueDeclaration)&&lv(Y,pe=>!!(pe.flags&-98305))===Tc?(i8(o.valueDeclaration,Ge),Ge):Y}function B4(o,f,v){var A,R;if(!Cs(o)||!v||!el(v)||v.properties.length)return;const B=zd();for(;Ds(o)||Ac(o);){const Te=hx(o);(A=Te==null?void 0:Te.exports)!=null&&A.size&&R2(B,Te.exports),o=Ds(o)?o.parent:o.parent.parent}const Y=hx(o);(R=Y==null?void 0:Y.exports)!=null&&R.size&&R2(B,Y.exports);const pe=sy(f,B,Yn,Yn,Yn);return pe.objectFlags|=4096,pe}function GA(o,f,v,A){var R;const B=Zy(f.parent);if(B){const Y=z2(Xl(B));if(o)!Fn(o)&&!Fn(Y)&&!Xh(o,Y)&&Prt(void 0,o,A,Y);else return Y}if((R=v.parent)!=null&&R.valueDeclaration){const Y=Zy(v.parent.valueDeclaration);if(Y){const pe=Yd(Xl(Y),v.escapedName);if(pe)return AC(pe)}}return o}function eK(o,f,v,A){if(xd(v)){if(f)return La(f);const Y=kv(v.arguments[2]),pe=Xe(Y,"value");if(pe)return pe;const Te=Xe(Y,"get");if(Te){const St=$B(Te);if(St)return np(St)}const Ue=Xe(Y,"set");if(Ue){const St=$B(Ue);if(St)return aGe(St)}return Ge}if(Up(v.left,v.right))return Ge;const R=A===1&&(Ac(v.left)||Hm(v.left))&&(jE(v.left.expression)||xn(v.left.expression)&&P9(v.left.expression)),B=f?La(f):R?$S(kv(v.right)):d5(kv(v.right));if(B.flags&524288&&A===2&&o.escapedName==="export="){const Y=Gh(B),pe=zd();oie(Y.members,pe);const Te=pe.size;f&&!f.exports&&(f.exports=zd()),(f||o).exports.forEach((St,Rt)=>{var rn;const Sn=pe.get(Rt);if(Sn&&Sn!==St&&!(St.flags&2097152))if(St.flags&111551&&Sn.flags&111551){if(St.valueDeclaration&&Sn.valueDeclaration&&ts(St.valueDeclaration)!==ts(Sn.valueDeclaration)){const Ai=Ic(St.escapedName),So=((rn=to(Sn.valueDeclaration,mp))==null?void 0:rn.name)||Sn.valueDeclaration;ml(hn(St.valueDeclaration,N.Duplicate_identifier_0,Ai),Bs(So,N._0_was_also_declared_here,Ai)),ml(hn(So,N.Duplicate_identifier_0,Ai),Bs(St.valueDeclaration,N._0_was_also_declared_here,Ai))}const xr=tp(St.flags|Sn.flags,Rt);xr.links.type=dc([La(St),La(Sn)]),xr.valueDeclaration=Sn.valueDeclaration,xr.declarations=Hi(Sn.declarations,St.declarations),pe.set(Rt,xr)}else pe.set(Rt,Hv(St,Sn));else pe.set(Rt,St)});const Ue=sy(Te!==pe.size?void 0:Y.symbol,pe,Y.callSignatures,Y.constructSignatures,Y.indexInfos);if(Te===pe.size&&(B.aliasSymbol&&(Ue.aliasSymbol=B.aliasSymbol,Ue.aliasTypeArguments=B.aliasTypeArguments),ji(B)&4)){Ue.aliasSymbol=B.symbol;const St=ch(B);Ue.aliasTypeArguments=Nt(St)?St:void 0}return Ue.objectFlags|=ji(B)&4096,Ue.symbol&&Ue.symbol.flags&32&&B===F1(Ue.symbol)&&(Ue.objectFlags|=16777216),Ue}return kbe(B)?(i8(v,Qm),Qm):B}function Up(o,f){return Ac(o)&&o.expression.kind===110&&cF(f,v=>Dv(o,v))}function vh(o){const f=RT(o,!1,!1);return f.kind===176||f.kind===262||f.kind===218&&!jL(f.parent)}function J6(o,f){return re.assert(o.length===f.length),o.filter((v,A)=>{const R=f[A],B=Ds(R)?R:Ds(R.parent)?R.parent:void 0;return B&&vh(B)})}function xC(o,f,v){if(o.initializer){const A=$_(o.name)?xB(o.name,!0,!1):Io;return mb(vGe(o,ine(o,0,A)))}return $_(o.name)?xB(o.name,f,v):(v&&!Tt(o)&&i8(o,Ge),f?go:Ge)}function F2(o,f,v){const A=zd();let R,B=131200;Ot(o.elements,pe=>{const Te=pe.propertyName||pe.name;if(pe.dotDotDotToken){R=bx(Nn,Ge,!1);return}const Ue=SD(Te);if(!yv(Ue)){B|=512;return}const St=vv(Ue),Rt=4|(pe.initializer?16777216:0),rn=tp(Rt,St);rn.links.type=xC(pe,f,v),rn.links.bindingElement=pe,A.set(rn.escapedName,rn)});const Y=sy(void 0,A,Yn,Yn,R?[R]:Yn);return Y.objectFlags|=B,f&&(Y.pattern=o,Y.objectFlags|=131072),Y}function XP(o,f,v){const A=o.elements,R=Yf(A),B=R&&R.kind===208&&R.dotDotDotToken?R:void 0;if(A.length===0||A.length===1&&B)return dt>=2?vte(Ge):Qm;const Y=Vn(A,St=>cb(St)?Ge:xC(St,f,v)),pe=Ms(A,St=>!(St===B||cb(St)||wO(St)),A.length-1)+1,Te=Vn(A,(St,Rt)=>St===B?4:Rt>=pe?2:1);let Ue=TD(Y,Te);return f&&(Ue=bD(Ue),Ue.pattern=o,Ue.objectFlags|=131072),Ue}function xB(o,f=!1,v=!1){return o.kind===206?F2(o,f,v):XP(o,f,v)}function j(o,f){return De(KP(o,!0,0),o,f)}function se(o){const f=hx(o),v=PPe(!1);return v&&f&&f===v}function De(o,f,v){return o?(o.flags&4096&&se(f.parent)&&(o=_K(f)),v&&lfe(f,o),o.flags&8192&&(sa(f)||!f.type)&&o.symbol!==sc(f)&&(o=hc),z2(o)):(o=Os(f)&&f.dotDotDotToken?Qm:Ge,v&&(Tt(f)||i8(f,o)),o)}function Tt(o){const f=vA(o),v=f.kind===169?f.parent:f;return sne(v)}function wn(o){const f=Zy(o);if(f)return Xl(f)}function Vi(o){let f=o.valueDeclaration;return f?(sa(f)&&(f=OU(f)),Os(f)?efe(f.parent):!1):!1}function Us(o){const f=Ae(o);if(!f.type){const v=Hf(o);return!f.type&&!Vi(o)&&(f.type=v),v}return f.type}function Hf(o){if(o.flags&4194304)return ute(o);if(o===Vr)return Ge;if(o.flags&134217728&&o.valueDeclaration){const A=sc(ts(o.valueDeclaration)),R=tp(A.flags,"exports");R.declarations=A.declarations?A.declarations.slice():[],R.parent=o,R.links.target=A,A.valueDeclaration&&(R.valueDeclaration=A.valueDeclaration),A.members&&(R.members=new Map(A.members)),A.exports&&(R.exports=new Map(A.exports));const B=zd();return B.set("exports",R),sy(o,B,Yn,Yn,Yn)}re.assertIsDefined(o.valueDeclaration);const f=o.valueDeclaration;if(Nu(f)&&Rx(f))return f.statements.length?z2(d5(Bf(f.statements[0].expression))):M_;if(GM(f))return hO(o);if(!OI(o,0))return o.flags&512&&!(o.flags&67108864)?tK(o):AB(o);let v;if(f.kind===277)v=De(wn(f)||kv(f.expression),f);else if(Ds(f)||Cs(f)&&(xd(f)||(Ac(f)||GL(f))&&Ds(f.parent)))v=YR(o);else if(Ac(f)||Hm(f)||xn(f)||Cm(f)||S1(f)||Ih(f)||mg(f)||tm(f)&&!iC(f)||pg(f)||Nu(f)){if(o.flags&9136)return tK(o);v=Ds(f.parent)?YR(o):wn(f)||Ge}else if(tl(f))v=wn(f)||ort(f);else if(tx(f))v=wn(f)||Nze(f);else if(XE(f))v=wn(f)||MK(f.name,0);else if(iC(f))v=wn(f)||bGe(f,0);else if(Os(f)||nu(f)||em(f)||Kc(f)||sa(f)||Vz(f))v=j(f,!0);else if(xP(f))v=tK(o);else if(pI(f))v=yD(o);else return re.fail("Unhandled declaration kind! "+re.formatSyntaxKind(f.kind)+" for "+re.formatSymbol(o));return Bk()?v:o.flags&512&&!(o.flags&67108864)?tK(o):AB(o)}function ng(o){if(o)switch(o.kind){case 177:return kS(o);case 178:return Kb(o);case 172:return re.assert(e_(o)),Zy(o)}}function VS(o){const f=ng(o);return f&&Xl(f)}function z4(o){const f=S0t(o);return f&&f.symbol}function G4(o){return H4(gb(o))}function hO(o){const f=Ae(o);if(!f.type){if(!OI(o,0))return Sr;const v=Rh(o,177),A=Rh(o,178),R=to(Rh(o,172),xb);let B=v&&Cs(v)&&zA(v)||VS(v)||VS(A)||VS(R)||v&&v.body&&Awe(v)||R&&R.initializer&&j(R,!0);B||(A&&!sne(A)?yh(Et,A,N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ru(o)):v&&!sne(v)?yh(Et,v,N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ru(o)):R&&!sne(R)&&yh(Et,R,N.Member_0_implicitly_has_an_1_type,ru(o),"any"),B=Ge),Bk()||(ng(v)?hn(v,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)):ng(A)||ng(R)?hn(A,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)):v&&Et&&hn(v,N._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,ru(o)),B=Ge),f.type=B}return f.type}function lPe(o){const f=Ae(o);if(!f.writeType){if(!OI(o,8))return Sr;const v=Rh(o,178)??to(Rh(o,172),xb);let A=VS(v);Bk()||(ng(v)&&hn(v,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)),A=Ge),f.writeType=A||hO(o)}return f.writeType}function WI(o){const f=cv(F1(o));return f.flags&8650752?f:f.flags&2097152?lr(f.types,v=>!!(v.flags&8650752)):void 0}function tK(o){let f=Ae(o);const v=f;if(!f.type){const A=o.valueDeclaration&&vwe(o.valueDeclaration,!1);if(A){const R=ywe(o,A);R&&(o=R,f=R.links)}v.type=f.type=W0e(o)}return f.type}function W0e(o){const f=o.valueDeclaration;if(o.flags&1536&&ZU(o))return Ge;if(f&&(f.kind===226||Kf(f)&&f.parent.kind===226))return YR(o);if(o.flags&512&&f&&Nu(f)&&f.commonJsModuleIndicator){const A=hS(o);if(A!==o){if(!OI(o,0))return Sr;const R=jp(o.exports.get("export=")),B=YR(R,R===A?void 0:A);return Bk()?B:AB(o)}}const v=tA(16,o);if(o.flags&32){const A=WI(o);return A?vp([v,A]):v}else return Ke&&o.flags&16777216?iL(v,!0):v}function yD(o){const f=Ae(o);return f.type||(f.type=pWe(o))}function Due(o){const f=Ae(o);if(!f.type){if(!OI(o,0))return Sr;const v=C0(o),A=o.declarations&&Yx(UT(o),!0),R=Yr(A==null?void 0:A.declarations,B=>py(B)?wn(B):void 0);if(f.type=A!=null&&A.declarations&&$T(A.declarations)&&o.declarations.length?YF(A):$T(o.declarations)?Br:R||(pT(v)&111551?La(v):Sr),!Bk())return AB(A??o),f.type=Sr}return f.type}function B0e(o){const f=Ae(o);return f.type||(f.type=zu(La(f.target),f.mapper))}function fte(o){const f=Ae(o);return f.writeType||(f.writeType=zu(QF(f.target),f.mapper))}function AB(o){const f=o.valueDeclaration;if(f){if(Zy(f))return hn(o.valueDeclaration,N._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ru(o)),Sr;Et&&(f.kind!==169||f.initializer)&&hn(o.valueDeclaration,N._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ru(o))}else if(o.flags&2097152){const v=UT(o);v&&hn(v,N.Circular_definition_of_import_alias_0,ru(o))}return Ge}function z0e(o){const f=Ae(o);return f.type||(re.assertIsDefined(f.deferralParent),re.assertIsDefined(f.deferralConstituents),f.type=f.deferralParent.flags&1048576?dc(f.deferralConstituents):vp(f.deferralConstituents)),f.type}function TV(o){const f=Ae(o);return!f.writeType&&f.deferralWriteConstituents&&(re.assertIsDefined(f.deferralParent),re.assertIsDefined(f.deferralConstituents),f.writeType=f.deferralParent.flags&1048576?dc(f.deferralWriteConstituents):vp(f.deferralWriteConstituents)),f.writeType}function QF(o){const f=I_(o);return o.flags&4?f&2?f&65536?TV(o)||z0e(o):o.links.writeType||o.links.type:n8(La(o),!!(o.flags&16777216)):o.flags&98304?f&1?fte(o):lPe(o):La(o)}function La(o){const f=I_(o);return f&65536?z0e(o):f&1?B0e(o):f&262144?tgt(o):f&8192?rht(o):o.flags&7?Us(o):o.flags&9136?tK(o):o.flags&8?yD(o):o.flags&98304?hO(o):o.flags&2097152?Due(o):Sr}function AC(o){return n8(La(o),!!(o.flags&16777216))}function hw(o,f){return o!==void 0&&f!==void 0&&(ji(o)&4)!==0&&o.target===f}function QR(o){return ji(o)&4?o.target:o}function jA(o,f){return v(o);function v(A){if(ji(A)&7){const R=QR(A);return R===f||gt(l0(R),v)}else if(A.flags&2097152)return gt(A.types,v);return!1}}function yO(o,f){for(const v of f)o=ST(o,e5(sc(v)));return o}function SV(o,f){for(;;){if(o=o.parent,o&&Ds(o)){const v=jy(o);if(v===6||v===3){const A=sc(o.left);A&&A.parent&&!Ua(A.parent.valueDeclaration,R=>o===R)&&(o=A.parent.valueDeclaration)}}if(!o)return;switch(o.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 A=SV(o,f);if(o.kind===200)return ur(A,e5(sc(o.typeParameter)));if(o.kind===194)return Hi(A,Get(o));const R=yO(A,Hb(o)),B=f&&(o.kind===263||o.kind===231||o.kind===264||Ax(o))&&F1(sc(o)).thisType;return B?ur(R,B):R}case 348:const v=$8(o);v&&(o=v.valueDeclaration);break;case 327:{const A=SV(o,f);return o.tags?yO(A,ea(o.tags,R=>CA(R)?R.typeParameters:void 0)):A}}}}function Tm(o){var f;const v=o.flags&32||o.flags&16?o.valueDeclaration:(f=o.declarations)==null?void 0:f.find(A=>{if(A.kind===264)return!0;if(A.kind!==260)return!1;const R=A.initializer;return!!R&&(R.kind===218||R.kind===219)});return re.assert(!!v,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),SV(v)}function Fo(o){if(!o.declarations)return;let f;for(const v of o.declarations)(v.kind===264||v.kind===263||v.kind===231||Ax(v)||L9(v))&&(f=yO(f,Hb(v)));return f}function cl(o){return Hi(Tm(o),Fo(o))}function Mc(o){const f=ed(o,1);if(f.length===1){const v=f[0];if(!v.typeParameters&&v.parameters.length===1&&A1(v)){const A=d1e(v.parameters[0]);return bn(A)||MV(A)===Ge}}return!1}function Du(o){if(ed(o,1).length>0)return!0;if(o.flags&8650752){const f=US(o);return!!f&&Mc(f)}return!1}function Ru(o){const f=RS(o.symbol);return f&&YC(f)}function _m(o,f,v){const A=Nt(f),R=Cs(v);return gi(ed(o,1),B=>(R||A>=HS(B.typeParameters))&&A<=Nt(B.typeParameters))}function kg(o,f,v){const A=_m(o,f,v),R=Vn(f,Xl);return Ol(A,B=>gt(B.typeParameters)?QP(B,R,Cs(v)):B)}function cv(o){if(!o.resolvedBaseConstructorType){const f=RS(o.symbol),v=f&&YC(f),A=Ru(o);if(!A)return o.resolvedBaseConstructorType=Ce;if(!OI(o,1))return Sr;const R=Bf(A.expression);if(v&&A!==v&&(re.assert(!v.typeArguments),Bf(v.expression)),R.flags&2621440&&Gh(R),!Bk())return hn(o.symbol.valueDeclaration,N._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ru(o.symbol)),o.resolvedBaseConstructorType=Sr;if(!(R.flags&1)&&R!==Jn&&!Du(R)){const B=hn(A.expression,N.Type_0_is_not_a_constructor_function_type,Co(R));if(R.flags&262144){const Y=CV(R);let pe=Io;if(Y){const Te=ed(Y,1);Te[0]&&(pe=np(Te[0]))}R.symbol.declarations&&ml(B,Bs(R.symbol.declarations[0],N.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ru(R.symbol),Co(pe)))}return o.resolvedBaseConstructorType=Sr}o.resolvedBaseConstructorType=R}return o.resolvedBaseConstructorType}function VA(o){let f=Yn;if(o.symbol.declarations)for(const v of o.symbol.declarations){const A=ZM(v);if(A)for(const R of A){const B=Xl(R);Fn(B)||(f===Yn?f=[B]:f.push(B))}}return f}function vD(o,f){hn(o,N.Type_0_recursively_references_itself_as_a_base_type,Co(f,void 0,2))}function l0(o){if(!o.baseTypesResolved){if(OI(o,7)&&(o.objectFlags&8?o.resolvedBaseTypes=[yw(o)]:o.symbol.flags&96?(o.symbol.flags&32&&nK(o),o.symbol.flags&64&&Vmt(o)):re.fail("type must be class or interface"),!Bk()&&o.symbol.declarations))for(const f of o.symbol.declarations)(f.kind===263||f.kind===264)&&vD(f,o);o.baseTypesResolved=!0}return o.resolvedBaseTypes}function yw(o){const f=Ol(o.typeParameters,(v,A)=>o.elementFlags[A]&8?u0(v,Lr):v);return hT(dc(f||Yn),o.readonly)}function nK(o){o.resolvedBaseTypes=yG;const f=yS(cv(o));if(!(f.flags&2621441))return o.resolvedBaseTypes=Yn;const v=Ru(o);let A;const R=f.symbol?sh(f.symbol):void 0;if(f.symbol&&f.symbol.flags&32&&EV(R))A=uet(v,f.symbol);else if(f.flags&1)A=f;else{const Y=kg(f,v.typeArguments,v);if(!Y.length)return hn(v.expression,N.No_base_constructor_has_the_specified_number_of_type_arguments),o.resolvedBaseTypes=Yn;A=np(Y[0])}if(Fn(A))return o.resolvedBaseTypes=Yn;const B=zI(A);if(!ZF(B)){const Y=SPe(void 0,A),pe=Es(Y,N.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Co(B));return j_.add(wN(ts(v.expression),v.expression,pe)),o.resolvedBaseTypes=Yn}return o===B||jA(B,o)?(hn(o.symbol.valueDeclaration,N.Type_0_recursively_references_itself_as_a_base_type,Co(o,void 0,2)),o.resolvedBaseTypes=Yn):(o.resolvedBaseTypes===yG&&(o.members=void 0),o.resolvedBaseTypes=[B])}function EV(o){const f=o.outerTypeParameters;if(f){const v=f.length-1,A=ch(o);return f[v].symbol!==A[v].symbol}return!0}function ZF(o){if(o.flags&262144){const f=US(o);if(f)return ZF(f)}return!!(o.flags&67633153&&!Fb(o)||o.flags&2097152&&jr(o.types,ZF))}function Vmt(o){if(o.resolvedBaseTypes=o.resolvedBaseTypes||Yn,o.symbol.declarations){for(const f of o.symbol.declarations)if(f.kind===264&&gH(f))for(const v of gH(f)){const A=zI(Xl(v));Fn(A)||(ZF(A)?o!==A&&!jA(A,o)?o.resolvedBaseTypes===Yn?o.resolvedBaseTypes=[A]:o.resolvedBaseTypes.push(A):vD(f,o):hn(v,N.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function uPe(o){if(!o.declarations)return!0;for(const f of o.declarations)if(f.kind===264){if(f.flags&256)return!1;const v=gH(f);if(v){for(const A of v)if(Tg(A.expression)){const R=Qg(A.expression,788968,!0);if(!R||!(R.flags&64)||F1(R).thisType)return!1}}}return!0}function F1(o){let f=Ae(o);const v=f;if(!f.declaredType){const A=o.flags&32?1:2,R=ywe(o,o.valueDeclaration&&Ayt(o.valueDeclaration));R&&(o=R,f=R.links);const B=v.declaredType=f.declaredType=tA(A,o),Y=Tm(o),pe=Fo(o);(Y||pe||A===1||!uPe(o))&&(B.objectFlags|=4,B.typeParameters=Hi(Y,pe),B.outerTypeParameters=Y,B.localTypeParameters=pe,B.instantiations=new Map,B.instantiations.set(B2(B.typeParameters),B),B.target=B,B.resolvedTypeArguments=B.typeParameters,B.thisType=c0(o),B.thisType.isThisType=!0,B.thisType.constraint=B)}return f.declaredType}function dWe(o){var f;const v=Ae(o);if(!v.declaredType){if(!OI(o,2))return Sr;const A=re.checkDefined((f=o.declarations)==null?void 0:f.find(L9),"Type alias symbol with no valid declaration found"),R=b2(A)?A.typeExpression:A.type;let B=R?Xl(R):Sr;if(Bk()){const Y=Fo(o);Y&&(v.typeParameters=Y,v.instantiations=new Map,v.instantiations.set(B2(Y),B))}else B=Sr,A.kind===347?hn(A.typeExpression.type,N.Type_alias_0_circularly_references_itself,ru(o)):hn(mp(A)&&A.name||A,N.Type_alias_0_circularly_references_itself,ru(o));v.declaredType=B}return v.declaredType}function fPe(o){return o.flags&1056&&o.symbol.flags&8?sh(xE(o.symbol)):o}function _Pe(o){const f=Ae(o);if(!f.declaredType){const v=[];if(o.declarations){for(const R of o.declarations)if(R.kind===266){for(const B of R.members)if(DB(B)){const Y=sc(B),pe=Wg(B),Te=NV(pe!==void 0?UPe(pe,$d(o),Y):Iue(Y));Ae(Y).declaredType=Te,v.push($S(Te))}}}const A=v.length?dc(v,1,o,void 0):Iue(o);A.flags&1048576&&(A.flags|=1024,A.symbol=o),f.declaredType=A}return f.declaredType}function Iue(o){const f=L1(32,o),v=L1(32,o);return f.regularType=f,f.freshType=v,v.regularType=f,v.freshType=v,f}function pWe(o){const f=Ae(o);if(!f.declaredType){const v=_Pe(xE(o));f.declaredType||(f.declaredType=v)}return f.declaredType}function e5(o){const f=Ae(o);return f.declaredType||(f.declaredType=c0(o))}function mWe(o){const f=Ae(o);return f.declaredType||(f.declaredType=sh(C0(o)))}function sh(o){return G0e(o)||Sr}function G0e(o){if(o.flags&96)return F1(o);if(o.flags&524288)return dWe(o);if(o.flags&262144)return e5(o);if(o.flags&384)return _Pe(o);if(o.flags&8)return pWe(o);if(o.flags&2097152)return mWe(o)}function t5(o){switch(o.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 t5(o.elementType);case 183:return!o.typeArguments||o.typeArguments.every(t5)}return!1}function Jv(o){const f=a9(o);return!f||t5(f)}function MZe(o){const f=Zy(o);return f?t5(f):!J2(o)}function Umt(o){const f=kS(o),v=Hb(o);return(o.kind===176||!!f&&t5(f))&&o.parameters.every(MZe)&&v.every(Jv)}function LZe(o){if(o.declarations&&o.declarations.length===1){const f=o.declarations[0];if(f)switch(f.kind){case 172:case 171:return MZe(f);case 174:case 173:case 176:case 177:case 178:return Umt(f)}}return!1}function gWe(o,f,v){const A=zd();for(const R of o)A.set(R.escapedName,v&&LZe(R)?R:vBe(R,f));return A}function hWe(o,f){for(const v of f){if(yWe(v))continue;const A=o.get(v.escapedName);(!A||A.valueDeclaration&&Ds(A.valueDeclaration)&&!bV(A)&&!tG(A.valueDeclaration))&&(o.set(v.escapedName,v),o.set(v.escapedName,v))}}function yWe(o){return!!o.valueDeclaration&&IT(o.valueDeclaration)&&pd(o.valueDeclaration)}function vWe(o){if(!o.declaredProperties){const f=o.symbol,v=j4(f);o.declaredProperties=dO(v),o.declaredCallSignatures=Yn,o.declaredConstructSignatures=Yn,o.declaredIndexInfos=Yn,o.declaredCallSignatures=K6(v.get("__call")),o.declaredConstructSignatures=K6(v.get("__new")),o.declaredIndexInfos=X0e(f)}return o}function dPe(o){if(!Qf(o)&&!Hm(o))return!1;const f=Qf(o)?o.expression:o.argumentExpression;return Tg(f)&&yv(Qf(o)?Jk(o):kv(f))}function CB(o){return o.charCodeAt(0)===95&&o.charCodeAt(1)===95&&o.charCodeAt(2)===64}function kue(o){const f=i_(o);return!!f&&dPe(f)}function DB(o){return!tI(o)||kue(o)}function Hmt(o){return L0(o)&&!dPe(o)}function pPe(o,f,v){re.assert(!!(I_(o)&4096),"Expected a late-bound symbol."),o.flags|=v,Ae(f.symbol).lateSymbol=o,o.declarations?f.symbol.isReplaceableByMethod||o.declarations.push(f):o.declarations=[f],v&111551&&(!o.valueDeclaration||o.valueDeclaration.kind!==f.kind)&&(o.valueDeclaration=f)}function OZe(o,f,v,A){re.assert(!!A.symbol,"The member is expected to have a symbol.");const R=rt(A);if(!R.resolvedSymbol){R.resolvedSymbol=A.symbol;const B=Ds(A)?A.left:A.name,Y=Hm(B)?kv(B.argumentExpression):Jk(B);if(yv(Y)){const pe=vv(Y),Te=A.symbol.flags;let Ue=v.get(pe);Ue||v.set(pe,Ue=tp(0,pe,4096));const St=f&&f.get(pe);if(!(o.flags&32)&&(Ue.flags&UP(Te)||St)){const Rt=St?Hi(St.declarations,Ue.declarations):Ue.declarations,rn=!(Y.flags&8192)&&Ic(pe)||hm(B);Ot(Rt,Sn=>hn(i_(Sn)||Sn,N.Property_0_was_also_declared_here,rn)),hn(B||A,N.Duplicate_property_0,rn),Ue=tp(0,pe,4096)}return Ue.links.nameType=Y,pPe(Ue,A,Te),Ue.parent?re.assert(Ue.parent===o,"Existing symbol parent should match new one"):Ue.parent=o,R.resolvedSymbol=Ue}}return R.resolvedSymbol}function bWe(o,f){var v,A,R;const B=Ae(o);if(!B[f]){const Y=f==="resolvedExports",pe=Y?o.flags&1536?yV(o).exports:o.exports:o.members;B[f]=pe||Fe;const Te=zd();for(const Rt of o.declarations||Yn){const rn=yie(Rt);if(rn)for(const Sn of rn)Y===ev(Sn)&&kue(Sn)&&OZe(o,pe,Te,Sn)}const Ue=(((v=o.valueDeclaration)==null?void 0:v.kind)===219||((A=o.valueDeclaration)==null?void 0:A.kind)===218)&&((R=hx(o.valueDeclaration.parent))==null?void 0:R.assignmentDeclarationMembers)||o.assignmentDeclarationMembers;if(Ue){const Rt=oc(Ue.values());for(const rn of Rt){const Sn=jy(rn),xr=Sn===3||Ds(rn)&&KNe(rn,Sn)||Sn===9||Sn===6;Y===!xr&&kue(rn)&&OZe(o,pe,Te,rn)}}let St=w2(pe,Te);if(o.flags&33554432&&B.cjsExportMerged&&o.declarations)for(const Rt of o.declarations){const rn=Ae(Rt.symbol)[f];if(!St){St=rn;continue}rn&&rn.forEach((Sn,xr)=>{const Ai=St.get(xr);if(!Ai)St.set(xr,Sn);else{if(Ai===Sn)return;St.set(xr,Hv(Ai,Sn))}})}B[f]=St||Fe}return B[f]}function j4(o){return o.flags&6256?bWe(o,"resolvedMembers"):o.members||Fe}function Pue(o){if(o.flags&106500&&o.escapedName==="__computed"){const f=Ae(o);if(!f.lateSymbol&>(o.declarations,kue)){const v=jp(o.parent);gt(o.declarations,ev)?L2(v):j4(v)}return f.lateSymbol||(f.lateSymbol=o)}return o}function vx(o,f,v){if(ji(o)&4){const A=o.target,R=ch(o);return Nt(A.typeParameters)===Nt(R)?qv(A,Hi(R,[f||A.thisType])):o}else if(o.flags&2097152){const A=Ol(o.types,R=>vx(R,f,v));return A!==o.types?vp(A):o}return v?yS(o):o}function FZe(o,f,v,A){let R,B,Y,pe,Te;hz(v,A,0,v.length)?(B=f.symbol?j4(f.symbol):zd(f.declaredProperties),Y=f.declaredCallSignatures,pe=f.declaredConstructSignatures,Te=f.declaredIndexInfos):(R=X0(v,A),B=gWe(f.declaredProperties,R,v.length===1),Y=JPe(f.declaredCallSignatures,R),pe=JPe(f.declaredConstructSignatures,R),Te=$Pe(f.declaredIndexInfos,R));const Ue=l0(f);if(Ue.length){if(f.symbol&&B===j4(f.symbol)){const Rt=zd();for(const rn of B.values())rn.flags&262144||Rt.set(rn.escapedName,rn);B=Rt}by(o,B,Y,pe,Te);const St=Yf(A);for(const Rt of Ue){const rn=St?vx(zu(Rt,R),St):Rt;hWe(B,zm(rn)),Y=Hi(Y,ed(rn,0)),pe=Hi(pe,ed(rn,1));const Sn=rn!==Ge?JT(rn):[bx(Nn,Ge,!1)];Te=Hi(Te,gi(Sn,xr=>!NWe(Te,xr.keyType)))}}by(o,B,Y,pe,Te)}function Jmt(o){FZe(o,vWe(o),Yn,Yn)}function $mt(o){const f=vWe(o.target),v=Hi(f.typeParameters,[f.thisType]),A=ch(o),R=A.length===v.length?A:Hi(A,[o]);FZe(o,f,v,R)}function vw(o,f,v,A,R,B,Y,pe){const Te=new P($i,pe);return Te.declaration=o,Te.typeParameters=f,Te.parameters=A,Te.thisParameter=v,Te.resolvedReturnType=R,Te.resolvedTypePredicate=B,Te.minArgumentCount=Y,Te.resolvedMinArgumentCount=void 0,Te.target=void 0,Te.mapper=void 0,Te.compositeSignatures=void 0,Te.compositeKind=void 0,Te}function _te(o){const f=vw(o.declaration,o.typeParameters,o.thisParameter,o.parameters,void 0,void 0,o.minArgumentCount,o.flags&167);return f.target=o.target,f.mapper=o.mapper,f.compositeSignatures=o.compositeSignatures,f.compositeKind=o.compositeKind,f}function WZe(o,f){const v=_te(o);return v.compositeSignatures=f,v.compositeKind=1048576,v.target=void 0,v.mapper=void 0,v}function BZe(o,f){if((o.flags&24)===f)return o;o.optionalCallSignatureCache||(o.optionalCallSignatureCache={});const v=f===8?"inner":"outer";return o.optionalCallSignatureCache[v]||(o.optionalCallSignatureCache[v]=qmt(o,f))}function qmt(o,f){re.assert(f===8||f===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const v=_te(o);return v.flags|=f,v}function zZe(o,f){if(A1(o)){const R=o.parameters.length-1,B=o.parameters[R].escapedName,Y=La(o.parameters[R]);if(Dp(Y))return[v(Y,R,B)];if(!f&&Y.flags&1048576&&jr(Y.types,Dp))return Vn(Y.types,pe=>v(pe,R,B))}return[o.parameters];function v(R,B,Y){const pe=ch(R),Te=A(R,Y),Ue=Vn(pe,(St,Rt)=>{const rn=Te&&Te[Rt]?Te[Rt]:kK(o,B+Rt,R),Sn=R.target.elementFlags[Rt],xr=Sn&12?32768:Sn&2?16384:0,Ai=tp(1,rn,xr);return Ai.links.type=Sn&4?hT(St):St,Ai});return Hi(o.parameters.slice(0,B),Ue)}function A(R,B){const Y=new Map;return Vn(R.target.labeledElementDeclarations,(pe,Te)=>{const Ue=Ewe(pe,Te,B),St=Y.get(Ue);return St===void 0?(Y.set(Ue,1),Ue):(Y.set(Ue,St+1),`${Ue}_${St}`)})}}function TWe(o){const f=cv(o),v=ed(f,1),A=RS(o.symbol),R=!!A&&ul(A,64);if(v.length===0)return[vw(void 0,o.localTypeParameters,void 0,Yn,o,void 0,0,R?4:0)];const B=Ru(o),Y=Cs(B),pe=Gue(B),Te=Nt(pe),Ue=[];for(const St of v){const Rt=HS(St.typeParameters),rn=Nt(St.typeParameters);if(Y||Te>=Rt&&Te<=rn){const Sn=rn?CPe(St,Gk(pe,St.typeParameters,Rt,Y)):_te(St);Sn.typeParameters=o.localTypeParameters,Sn.resolvedReturnType=o,Sn.flags=R?Sn.flags|4:Sn.flags&-5,Ue.push(Sn)}}return Ue}function SWe(o,f,v,A,R){for(const B of o)if(RV(B,f,v,A,R,v?Wgt:fM))return B}function Kmt(o,f,v){if(f.typeParameters){if(v>0)return;for(let R=1;R1&&(v=v===void 0?A:-1);for(const R of o[A])if(!f||!SWe(f,R,!1,!1,!0)){const B=Kmt(o,R,A);if(B){let Y=R;if(B.length>1){let pe=R.thisParameter;const Te=Ot(B,Ue=>Ue.thisParameter);if(Te){const Ue=vp(Qo(B,St=>St.thisParameter&&La(St.thisParameter)));pe=r8(Te,Ue)}Y=WZe(R,B),Y.thisParameter=pe}(f||(f=[])).push(Y)}}}if(!Nt(f)&&v!==-1){const A=o[v!==void 0?v:0];let R=A.slice();for(const B of o)if(B!==A){const Y=B[0];if(re.assert(!!Y,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),R=Y.typeParameters&>(R,pe=>!!pe.typeParameters&&!GZe(Y.typeParameters,pe.typeParameters))?void 0:Vn(R,pe=>Qmt(pe,Y)),!R)break}f=R}return f||Yn}function GZe(o,f){if(Nt(o)!==Nt(f))return!1;if(!o||!f)return!0;const v=X0(f,o);for(let A=0;A=R?o:f,Y=B===o?f:o,pe=B===o?A:R,Te=$k(o)||$k(f),Ue=Te&&!$k(B),St=new Array(pe+(Ue?1:0));for(let Rt=0;Rt=KA(B)&&Rt>=KA(Y),la=Rt>=A?void 0:kK(o,Rt),Zs=Rt>=R?void 0:kK(f,Rt),ba=la===Zs?la:la?Zs?void 0:la:Zs,mo=tp(1|(So&&!Ai?16777216:0),ba||`arg${Rt}`,Ai?32768:So?16384:0);mo.links.type=Ai?hT(xr):xr,St[Rt]=mo}if(Ue){const Rt=tp(1,"args",32768);Rt.links.type=hT(XI(Y,pe)),Y===f&&(Rt.links.type=zu(Rt.links.type,v)),St[pe]=Rt}return St}function Qmt(o,f){const v=o.typeParameters||f.typeParameters;let A;o.typeParameters&&f.typeParameters&&(A=X0(f.typeParameters,o.typeParameters));const R=o.declaration,B=Ymt(o,f,A),Y=Xmt(o.thisParameter,f.thisParameter,A),pe=Math.max(o.minArgumentCount,f.minArgumentCount),Te=vw(R,v,Y,B,void 0,void 0,pe,(o.flags|f.flags)&167);return Te.compositeKind=1048576,Te.compositeSignatures=Hi(o.compositeKind!==2097152&&o.compositeSignatures||[o],[f]),A&&(Te.mapper=o.compositeKind!==2097152&&o.mapper&&o.compositeSignatures?lM(o.mapper,A):A),Te}function jZe(o){const f=JT(o[0]);if(f){const v=[];for(const A of f){const R=A.keyType;jr(o,B=>!!Tw(B,R))&&v.push(bx(R,dc(Vn(o,B=>vO(B,R))),gt(o,B=>Tw(B,R).isReadonly)))}return v}return Yn}function Zmt(o){const f=EWe(Vn(o.types,R=>R===ci?[$o]:ed(R,0))),v=EWe(Vn(o.types,R=>ed(R,1))),A=jZe(o.types);by(o,Fe,f,v,A)}function j0e(o,f){return o?f?vp([o,f]):o:f}function VZe(o){const f=dp(o,A=>ed(A,1).length>0),v=Vn(o,Mc);if(f>0&&f===dp(v,A=>A)){const A=v.indexOf(!0);v[A]=!1}return v}function Nue(o,f,v,A){const R=[];for(let B=0;Bpe);for(let pe=0;pe0&&(Ue=Vn(Ue,St=>{const Rt=_te(St);return Rt.resolvedReturnType=Nue(np(St),R,B,pe),Rt})),v=xWe(v,Ue)}f=xWe(f,ed(Te,0)),A=Em(JT(Te),(Ue,St)=>W1(Ue,St,!1),A)}by(o,Fe,f||Yn,v||Yn,A||Yn)}function xWe(o,f){for(const v of f)(!o||jr(o,A=>!RV(A,v,!1,!1,!1,fM)))&&(o=ur(o,v));return o}function W1(o,f,v){if(o)for(let A=0;A{var Te;!(pe.flags&418)&&!(pe.flags&512&&((Te=pe.declarations)!=null&&Te.length)&&jr(pe.declarations,dh))&&Y.set(pe.escapedName,pe)}),v=Y}let R;if(by(o,v,Yn,Yn,Yn),f.flags&32){const Y=F1(f),pe=cv(Y);pe.flags&11272192?(v=zd(Xq(v)),hWe(v,zm(pe))):pe===Ge&&(R=bx(Nn,Ge,!1))}const B=bO(v);if(B?A=Y0e(B):(R&&(A=ur(A,R)),f.flags&384&&(sh(f).flags&32||gt(o.properties,Y=>!!(La(Y).flags&296)))&&(A=ur(A,Fs))),by(o,v,Yn,Yn,A||Yn),f.flags&8208&&(o.callSignatures=K6(f)),f.flags&32){const Y=F1(f);let pe=f.members?K6(f.members.get("__constructor")):Yn;f.flags&16&&(pe=Oi(pe.slice(),Qo(o.callSignatures,Te=>Ax(Te.declaration)?vw(Te.declaration,Te.typeParameters,Te.thisParameter,Te.parameters,Y,void 0,Te.minArgumentCount,Te.flags&167):void 0))),pe.length||(pe=TWe(Y)),o.constructSignatures=pe}}function HZe(o,f,v){return zu(o,X0([f.indexType,f.objectType],[HA(0),TD([v])]))}function egt(o){const f=Tw(o.source,Nn),v=zk(o.mappedType),A=!(v&1),R=v&4?0:16777216,B=f?[bx(Nn,SNe(f.type,o.mappedType,o.constraintType),A&&f.isReadonly)]:Yn,Y=zd();for(const pe of zm(o.source)){const Te=8192|(A&&z1(pe)?8:0),Ue=tp(4|pe.flags&R,pe.escapedName,Te);if(Ue.declarations=pe.declarations,Ue.links.nameType=Ae(pe).nameType,Ue.links.propertyType=La(pe),o.constraintType.type.flags&8388608&&o.constraintType.type.objectType.flags&262144&&o.constraintType.type.indexType.flags&262144){const St=o.constraintType.type.objectType,Rt=HZe(o.mappedType,o.constraintType.type,St);Ue.links.mappedType=Rt,Ue.links.constraintType=CC(St)}else Ue.links.mappedType=o.mappedType,Ue.links.constraintType=o.constraintType;Y.set(pe.escapedName,Ue)}by(o,Y,Yn,Yn,B)}function V0e(o){if(o.flags&4194304){const f=yS(o.type);return mM(f)?ibe(f):CC(f)}if(o.flags&16777216){if(o.root.isDistributive){const f=o.checkType,v=V0e(f);if(v!==f)return SBe(o,u5(o.root.checkType,v,o.mapper))}return o}if(o.flags&1048576)return Th(o,V0e,!0);if(o.flags&2097152){const f=o.types;return f.length===2&&f[0].flags&76&&f[1]===hh?o:vp(Ol(o.types,V0e))}return o}function mPe(o){return I_(o)&4096}function gPe(o,f,v,A){for(const R of zm(o))A(c5(R,f));if(o.flags&1)A(Nn);else for(const R of JT(o))(!v||R.keyType.flags&134217732)&&A(R.keyType)}function V4(o){const f=zd();let v;by(o,Fe,Yn,Yn,Yn);const A=BI(o),R=$v(o),B=o.target||o,Y=bw(B),pe=!Y||$Ze(B),Te=ZR(B),Ue=yS(eM(o)),St=zk(o),Rt=nn?128:8576;rK(o)?gPe(Ue,Rt,nn,rn):PO(V0e(R),rn),by(o,f,Yn,Yn,v||Yn);function rn(xr){const Ai=Y?zu(Y,Zue(o.mapper,A,xr)):xr;PO(Ai,So=>Sn(xr,So))}function Sn(xr,Ai){if(yv(Ai)){const So=vv(Ai),la=f.get(So);if(la)la.links.nameType=dc([la.links.nameType,Ai]),la.links.keyType=dc([la.links.keyType,xr]);else{const Zs=yv(xr)?Yd(Ue,vv(xr)):void 0,ba=!!(St&4||!(St&8)&&Zs&&Zs.flags&16777216),mo=!!(St&1||!(St&2)&&Zs&&z1(Zs)),Ya=Ke&&!ba&&Zs&&Zs.flags&16777216,Ra=Zs?mPe(Zs):0,Va=tp(4|(ba?16777216:0),So,Ra|262144|(mo?8:0)|(Ya?524288:0));Va.links.mappedType=o,Va.links.nameType=Ai,Va.links.keyType=xr,Zs&&(Va.links.syntheticOrigin=Zs,Va.declarations=pe?Zs.declarations:void 0),f.set(So,Va)}}else if(Lue(Ai)||Ai.flags&33){const So=Ai.flags&5?Nn:Ai.flags&40?Lr:Ai,la=zu(Te,Zue(o.mapper,A,xr)),Zs=AV(Ue,Ai),ba=!!(St&1||!(St&2)&&(Zs!=null&&Zs.isReadonly)),mo=bx(So,la,ba);v=W1(v,mo,!0)}}}function tgt(o){if(!o.links.type){const f=o.links.mappedType;if(!OI(o,0))return f.containsError=!0,Sr;const v=ZR(f.target||f),A=Zue(f.mapper,BI(f),o.links.keyType),R=zu(v,A);let B=Ke&&o.flags&16777216&&!Ty(R,49152)?iL(R,!0):o.links.checkFlags&524288?hNe(R):R;Bk()||(hn(ae,N.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ru(o),Co(f)),B=Sr),o.links.type=B}return o.links.type}function BI(o){return o.typeParameter||(o.typeParameter=e5(sc(o.declaration.typeParameter)))}function $v(o){return o.constraintType||(o.constraintType=gT(BI(o))||Sr)}function bw(o){return o.declaration.nameType?o.nameType||(o.nameType=zu(Xl(o.declaration.nameType),o.mapper)):void 0}function ZR(o){return o.templateType||(o.templateType=o.declaration.type?zu(mb(Xl(o.declaration.type),!0,!!(zk(o)&4)),o.mapper):Sr)}function hPe(o){return a9(o.declaration.typeParameter)}function rK(o){const f=hPe(o);return f.kind===198&&f.operator===143}function eM(o){if(!o.modifiersType)if(rK(o))o.modifiersType=zu(Xl(hPe(o).type),o.mapper);else{const f=uBe(o.declaration),v=$v(f),A=v&&v.flags&262144?gT(v):v;o.modifiersType=A&&A.flags&4194304?zu(A.type,o.mapper):Io}return o.modifiersType}function zk(o){const f=o.declaration;return(f.readonlyToken?f.readonlyToken.kind===41?2:1:0)|(f.questionToken?f.questionToken.kind===41?8:4:0)}function JZe(o){const f=zk(o);return f&8?-1:f&4?1:0}function iK(o){const f=JZe(o),v=eM(o);return f||(Fb(v)?JZe(v):0)}function CWe(o){return!!(ji(o)&32&&zk(o)&4)}function Fb(o){if(ji(o)&32){const f=$v(o);if(Tx(f))return!0;const v=bw(o);if(v&&Tx(zu(v,Cw(BI(o),f))))return!0}return!1}function $Ze(o){const f=bw(o);return!!f&&Id(f,BI(o))}function Gh(o){return o.members||(o.flags&524288?o.objectFlags&4?$mt(o):o.objectFlags&3?Jmt(o):o.objectFlags&1024?egt(o):o.objectFlags&16?AWe(o):o.objectFlags&32?V4(o):re.fail("Unhandled object type "+re.formatObjectFlags(o.objectFlags)):o.flags&1048576?Zmt(o):o.flags&2097152?UZe(o):re.fail("Unhandled type "+re.formatTypeFlags(o.flags))),o}function W2(o){return o.flags&524288?Gh(o).properties:Yn}function $6(o,f){if(o.flags&524288){const A=Gh(o).members.get(f);if(A&&KR(A))return A}}function U0e(o){if(!o.resolvedProperties){const f=zd();for(const v of o.types){for(const A of zm(v))if(!f.has(A.escapedName)){const R=kWe(o,A.escapedName);R&&f.set(A.escapedName,R)}if(o.flags&1048576&&JT(v).length===0)break}o.resolvedProperties=dO(f)}return o.resolvedProperties}function zm(o){return o=dte(o),o.flags&3145728?U0e(o):W2(o)}function ngt(o,f){o=dte(o),o.flags&3670016&&Gh(o).members.forEach((v,A)=>{pO(v,A)&&f(v,A)})}function rgt(o,f){return f.properties.some(A=>{const R=A.name&&(Fm(A.name)?vS(oW(A.name)):SD(A.name)),B=R&&yv(R)?vv(R):void 0,Y=B===void 0?void 0:Xe(o,B);return!!Y&&afe(Y)&&!Id(nd(A),Y)})}function igt(o){const f=dc(o);if(!(f.flags&1048576))return im(f);const v=zd();for(const A of o)for(const{escapedName:R}of im(A))if(!v.has(R)){const B=IWe(f,R);B&&v.set(R,B)}return oc(v.values())}function IB(o){return o.flags&262144?gT(o):o.flags&8388608?gl(o):o.flags&16777216?KZe(o):US(o)}function gT(o){return wue(o)?CV(o):void 0}function n5(o,f=0){var v;return f<5&&!!(o&&(o.flags&262144&>((v=o.symbol)==null?void 0:v.declarations,A=>ul(A,4096))||o.flags&3145728&>(o.types,A=>n5(A,f))||o.flags&8388608&&n5(o.objectType,f+1)||o.flags&16777216&&n5(KZe(o),f+1)||o.flags&33554432&&n5(o.baseType,f)||mM(o)&&Ho(Z6(o),(A,R)=>!!(o.target.elementFlags[R]&8)&&n5(A,f))>=0))}function gl(o){return wue(o)?ogt(o):void 0}function yPe(o){const f=tN(o,!1);return f!==o?f:IB(o)}function ogt(o){if(J0e(o)||Fb(o.objectType))return _p(o.objectType,o.indexType);const f=yPe(o.indexType);if(f&&f!==o.indexType){const A=xw(o.objectType,f,o.accessFlags);if(A)return A}const v=yPe(o.objectType);if(v&&v!==o.objectType)return xw(v,o.indexType,o.accessFlags)}function H0e(o){if(!o.resolvedDefaultConstraint){const f=eL(o),v=oM(o);o.resolvedDefaultConstraint=bn(f)?v:bn(v)?f:dc([f,v])}return o.resolvedDefaultConstraint}function vPe(o){if(o.resolvedConstraintOfDistributive!==void 0)return o.resolvedConstraintOfDistributive||void 0;if(o.root.isDistributive&&o.restrictiveInstantiation!==o){const f=tN(o.checkType,!1),v=f===o.checkType?IB(f):f;if(v&&v!==o.checkType){const A=SBe(o,u5(o.root.checkType,v,o.mapper));if(!(A.flags&131072))return o.resolvedConstraintOfDistributive=A,A}}o.resolvedConstraintOfDistributive=!1}function qZe(o){return vPe(o)||H0e(o)}function KZe(o){return wue(o)?qZe(o):void 0}function XZe(o,f){let v,A=!1;for(const R of o)if(R.flags&465829888){let B=IB(R);for(;B&&B.flags&21233664;)B=IB(B);B&&(v=ur(v,B),f&&(v=ur(v,R)))}else(R.flags&469892092||VI(R))&&(A=!0);if(v&&(f||A)){if(A)for(const R of o)(R.flags&469892092||VI(R))&&(v=ur(v,R));return Ebe(vp(v),!1)}}function US(o){if(o.flags&464781312||mM(o)){const f=bPe(o);return f!==Pm&&f!==Ag?f:void 0}return o.flags&4194304?Ym:void 0}function tM(o){return US(o)||o}function wue(o){return bPe(o)!==Ag}function bPe(o){if(o.resolvedBaseConstraint)return o.resolvedBaseConstraint;const f=[];return o.resolvedBaseConstraint=v(o);function v(B){if(!B.immediateBaseConstraint){if(!OI(B,4))return Ag;let Y;const pe=Dbe(B);if((f.length<10||f.length<50&&!ni(f,pe))&&(f.push(pe),Y=R(tN(B,!1)),f.pop()),!Bk()){if(B.flags&262144){const Te=J4(B);if(Te){const Ue=hn(Te,N.Type_parameter_0_has_a_circular_constraint,Co(B));ae&&!Lx(Te,ae)&&!Lx(ae,Te)&&ml(Ue,Bs(ae,N.Circularity_originates_in_type_at_this_location))}}Y=Ag}B.immediateBaseConstraint=Y||Pm}return B.immediateBaseConstraint}function A(B){const Y=v(B);return Y!==Pm&&Y!==Ag?Y:void 0}function R(B){if(B.flags&262144){const Y=CV(B);return B.isThisType||!Y?Y:A(Y)}if(B.flags&3145728){const Y=B.types,pe=[];let Te=!1;for(const Ue of Y){const St=A(Ue);St?(St!==Ue&&(Te=!0),pe.push(St)):Te=!0}return Te?B.flags&1048576&&pe.length===Y.length?dc(pe):B.flags&2097152&&pe.length?vp(pe):void 0:B}if(B.flags&4194304)return Ym;if(B.flags&134217728){const Y=B.types,pe=Qo(Y,A);return pe.length===Y.length?MB(B.texts,pe):Nn}if(B.flags&268435456){const Y=A(B.type);return Y&&Y!==B.type?GI(B.symbol,Y):Nn}if(B.flags&8388608){if(J0e(B))return A(_p(B.objectType,B.indexType));const Y=A(B.objectType),pe=A(B.indexType),Te=Y&&pe&&xw(Y,pe,B.accessFlags);return Te&&A(Te)}if(B.flags&16777216){const Y=qZe(B);return Y&&A(Y)}if(B.flags&33554432)return A(Wue(B));if(mM(B)){const Y=Vn(Z6(B),(pe,Te)=>{const Ue=pe.flags&262144&&B.target.elementFlags[Te]&8&&A(pe)||pe;return Ue!==pe&&Ex(Ue,St=>_5(St)&&!mM(St))?Ue:pe});return TD(Y,B.target.elementFlags,B.target.readonly,B.target.labeledElementDeclarations)}return B}}function agt(o,f){return o.resolvedApparentType||(o.resolvedApparentType=vx(o,f,!0))}function DWe(o){if(o.default)o.default===va&&(o.default=Ag);else if(o.target){const f=DWe(o.target);o.default=f?zu(f,o.mapper):Pm}else{o.default=va;const f=o.symbol&&Ot(o.symbol.declarations,A=>Np(A)&&A.default),v=f?Xl(f):Pm;o.default===va&&(o.default=v)}return o.default}function Dd(o){const f=DWe(o);return f!==Pm&&f!==Ag?f:void 0}function YZe(o){return DWe(o)!==Ag}function Rue(o){return!!(o.symbol&&Ot(o.symbol.declarations,f=>Np(f)&&f.default))}function sgt(o){return o.resolvedApparentType||(o.resolvedApparentType=QZe(o))}function QZe(o){const f=KPe(o);if(f&&!o.declaration.nameType){const v=gT(f);if(v&&Ex(v,_5))return zu(o,u5(f,v,o.mapper))}return o}function J0e(o){let f;return!!(o.flags&8388608&&ji(f=o.objectType)&32&&!Fb(f)&&Tx(o.indexType)&&!(zk(f)&8)&&!f.declaration.nameType)}function yS(o){const f=o.flags&465829888?US(o)||Io:o,v=ji(f);return v&32?sgt(f):v&4&&f!==o?vx(f,o):f.flags&2097152?agt(f,o):f.flags&402653316?gd:f.flags&296?Dg:f.flags&2112?Vue():f.flags&528?um:f.flags&12288?WWe():f.flags&67108864?M_:f.flags&4194304?Ym:f.flags&2&&!Ke?M_:f}function dte(o){return zI(yS(zI(o)))}function IWe(o,f,v){var A,R,B;let Y,pe,Te;const Ue=o.flags&1048576;let St,Rt=4,rn=Ue?0:8,Sn=!1;for(const Va of o.types){const Da=yS(Va);if(!(Fn(Da)||Da.flags&131072)){const cc=Yd(Da,f,v),V_=cc?Vy(cc):0;if(cc){if(cc.flags&106500&&(St??(St=Ue?0:16777216),Ue?St|=cc.flags&16777216:St&=cc.flags),!Y)Y=cc;else if(cc!==Y)if((E5(cc)||cc)===(E5(Y)||Y)&&MBe(Y,cc,(ad,Xf)=>ad===Xf?-1:0)===-1)Sn=!!Y.parent&&!!Nt(Fo(Y.parent));else{pe||(pe=new Map,pe.set($d(Y),Y));const ad=$d(cc);pe.has(ad)||pe.set(ad,cc)}Ue&&z1(cc)?rn|=8:!Ue&&!z1(cc)&&(rn&=-9),rn|=(V_&6?0:256)|(V_&4?512:0)|(V_&2?1024:0)|(V_&256?2048:0),AK(cc)||(Rt=2)}else if(Ue){const fd=!CB(f)&&i5(Da,f);fd?(rn|=32|(fd.isReadonly?8:0),Te=ur(Te,Dp(Da)?gK(Da)||Ce:fd.type)):IO(Da)&&!(ji(Da)&2097152)?(rn|=32,Te=ur(Te,Ce)):rn|=16}}}if(!Y||Ue&&(pe||rn&48)&&rn&1536&&!(pe&&eet(pe.values())))return;if(!pe&&!(rn&16)&&!Te)if(Sn){const Va=(A=to(Y,Vm))==null?void 0:A.links,Da=r8(Y,Va==null?void 0:Va.type);return Da.parent=(B=(R=Y.valueDeclaration)==null?void 0:R.symbol)==null?void 0:B.parent,Da.links.containingType=o,Da.links.mapper=Va==null?void 0:Va.mapper,Da}else return Y;const xr=pe?oc(pe.values()):[Y];let Ai,So,la;const Zs=[];let ba,mo,Ya=!1;for(const Va of xr){mo?Va.valueDeclaration&&Va.valueDeclaration!==mo&&(Ya=!0):mo=Va.valueDeclaration,Ai=Oi(Ai,Va.declarations);const Da=La(Va);So||(So=Da,la=Ae(Va).nameType);const cc=QF(Va);(ba||cc!==Da)&&(ba=ur(ba||Zs.slice(),cc)),Da!==So&&(rn|=64),(afe(Da)||PV(Da))&&(rn|=128),Da.flags&131072&&Da!==Og&&(rn|=131072),Zs.push(Da)}Oi(Zs,Te);const Ra=tp(4|(St??0),f,Rt|rn);return Ra.links.containingType=o,!Ya&&mo&&(Ra.valueDeclaration=mo,mo.symbol.parent&&(Ra.parent=mo.symbol.parent)),Ra.declarations=Ai,Ra.links.nameType=la,Zs.length>2?(Ra.links.checkFlags|=65536,Ra.links.deferralParent=o,Ra.links.deferralConstituents=Zs,Ra.links.deferralWriteConstituents=ba):(Ra.links.type=Ue?dc(Zs):vp(Zs),ba&&(Ra.links.writeType=Ue?dc(ba):vp(ba))),Ra}function ZZe(o,f,v){var A,R;let B=(A=o.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&A.get(f)||!v?(R=o.propertyCache)==null?void 0:R.get(f):void 0;return B||(B=IWe(o,f,v),B&&(v?o.propertyCacheWithoutObjectFunctionPropertyAugment||(o.propertyCacheWithoutObjectFunctionPropertyAugment=zd()):o.propertyCache||(o.propertyCache=zd())).set(f,B)),B}function eet(o){let f;for(const v of o){if(!v.declarations)return;if(!f){f=new Set(v.declarations);continue}if(f.forEach(A=>{ni(v.declarations,A)||f.delete(A)}),f.size===0)return}return f}function kWe(o,f,v){const A=ZZe(o,f,v);return A&&!(I_(A)&16)?A:void 0}function zI(o){return o.flags&1048576&&o.objectFlags&16777216?o.resolvedReducedType||(o.resolvedReducedType=q6(o)):o.flags&2097152?(o.objectFlags&16777216||(o.objectFlags|=16777216|(gt(U0e(o),pte)?33554432:0)),o.objectFlags&33554432?Tc:o):o}function q6(o){const f=Ol(o.types,zI);if(f===o.types)return o;const v=dc(f);return v.flags&1048576&&(v.resolvedReducedType=v),v}function pte(o){return PWe(o)||tet(o)}function PWe(o){return!(o.flags&16777216)&&(I_(o)&131264)===192&&!!(La(o).flags&131072)}function tet(o){return!o.valueDeclaration&&!!(I_(o)&1024)}function TPe(o){return!!(o.flags&1048576&&o.objectFlags&16777216&>(o.types,TPe)||o.flags&2097152&&YP(o))}function YP(o){const f=o.uniqueLiteralFilledInstantiation||(o.uniqueLiteralFilledInstantiation=zu(o,pl));return zI(f)!==f}function SPe(o,f){if(f.flags&2097152&&ji(f)&33554432){const v=lr(U0e(f),PWe);if(v)return Es(o,N.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Co(f,void 0,536870912),ru(v));const A=lr(U0e(f),tet);if(A)return Es(o,N.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Co(f,void 0,536870912),ru(A))}return o}function Yd(o,f,v,A){if(o=dte(o),o.flags&524288){const R=Gh(o),B=R.members.get(f);if(B&&KR(B,A))return B;if(v)return;const Y=R===Qi?ci:R.callSignatures.length?da:R.constructSignatures.length?Hu:void 0;if(Y){const pe=$6(Y,f);if(pe)return pe}return $6(Jt,f)}if(o.flags&3145728)return kWe(o,f,v)}function $0e(o,f){if(o.flags&3670016){const v=Gh(o);return f===0?v.callSignatures:v.constructSignatures}return Yn}function ed(o,f){const v=$0e(dte(o),f);if(f===0&&!Nt(v)&&o.flags&1048576){if(o.arrayFallbackSignatures)return o.arrayFallbackSignatures;let A;if(Ex(o,R=>{var B;return!!((B=R.symbol)!=null&&B.parent)&&kB(R.symbol.parent)&&(A?A===R.symbol.escapedName:(A=R.symbol.escapedName,!0))})){const R=Th(o,Y=>tL((net(Y.symbol.parent)?A_:t_).typeParameters[0],Y.mapper)),B=hT(R,Uk(o,Y=>net(Y.symbol.parent)));return o.arrayFallbackSignatures=ed(Xe(B,A),f)}o.arrayFallbackSignatures=v}return v}function kB(o){return!o||!t_.symbol||!A_.symbol?!1:!!AE(o,t_.symbol)||!!AE(o,A_.symbol)}function net(o){return!o||!A_.symbol?!1:!!AE(o,A_.symbol)}function NWe(o,f){return lr(o,v=>v.keyType===f)}function r5(o,f){let v,A,R;for(const B of o)B.keyType===Nn?v=B:xV(f,B.keyType)&&(A?(R||(R=[A])).push(B):A=B);return R?bx(Io,vp(Vn(R,B=>B.type)),Em(R,(B,Y)=>B&&Y.isReadonly,!0)):A||(v&&xV(f,Nn)?v:void 0)}function xV(o,f){return Id(o,f)||f===Nn&&Id(o,Lr)||f===Lr&&(o===Yg||!!(o.flags&128)&&FT(o.value))}function wWe(o){return o.flags&3670016?Gh(o).indexInfos:Yn}function JT(o){return wWe(dte(o))}function Tw(o,f){return NWe(JT(o),f)}function vO(o,f){var v;return(v=Tw(o,f))==null?void 0:v.type}function oK(o,f){return JT(o).filter(v=>xV(f,v.keyType))}function AV(o,f){return r5(JT(o),f)}function i5(o,f){return AV(o,CB(f)?hc:vS(Ic(f)))}function RWe(o){var f;let v;for(const A of Hb(o))v=ST(v,e5(A.symbol));return v!=null&&v.length?v:mg(o)?(f=gte(o))==null?void 0:f.typeParameters:void 0}function q0e(o){const f=[];return o.forEach((v,A)=>{jS(A)||f.push(v)}),f}function aK(o,f){if(Kv(o))return;const v=Ci(jt,'"'+o+'"',512);return v&&f?jp(v):v}function U4(o){if(M9(o)||rW(o)||iW(o))return!0;if(o.initializer){const v=gb(o.parent),A=o.parent.parameters.indexOf(o);return re.assert(A>=0),A>=KA(v,3)}const f=v7(o.parent);return f?!o.type&&!o.dotDotDotToken&&o.parent.parameters.indexOf(o)>=s1e(f).length:!1}function mte(o){return nu(o)&&!e_(o)&&o.questionToken}function nM(o,f,v,A){return{kind:o,parameterName:f,parameterIndex:v,type:A}}function HS(o){let f=0;if(o)for(let v=0;v=v&&B<=R){const Y=o?o.slice():[];for(let Te=B;Tepe.arguments.length&&!So||iW(xr)||(R=v.length)}if((o.kind===177||o.kind===178)&&DB(o)&&(!Y||!B)){const Sn=o.kind===177?178:177,xr=Rh(sc(o),Sn);xr&&(B=z4(xr))}if(Cs(o)){const Sn=Xre(o);Sn&&Sn.typeExpression&&(B=r8(tp(1,"this"),Xl(Sn.typeExpression)))}const St=b6(o)?YM(o):o,Rt=St&&Lh(St)?F1(jp(St.parent.symbol)):void 0,rn=Rt?Rt.localTypeParameters:RWe(o);(lde(o)||Cs(o)&&ret(o,v))&&(A|=1),(RG(o)&&ul(o,64)||Lh(o)&&ul(o.parent,64))&&(A|=4),f.resolvedSignature=vw(o,rn,B,v,void 0,void 0,R,A)}return f.resolvedSignature}function ret(o,f){if(b6(o)||!EPe(o))return!1;const v=Yf(o.parameters),A=v?o_(v):WM(o).filter(A2),R=Yr(A,Y=>Y.typeExpression&&iF(Y.typeExpression.type)?Y.typeExpression.type:void 0),B=tp(3,"args",32768);return R?B.links.type=hT(Xl(R.type)):(B.links.checkFlags|=65536,B.links.deferralParent=Tc,B.links.deferralConstituents=[Qm],B.links.deferralWriteConstituents=[Qm]),R&&f.pop(),f.push(B),!0}function gte(o){if(!(Cs(o)&&Vd(o)))return;const f=FM(o);return(f==null?void 0:f.typeExpression)&&$B(Xl(f.typeExpression))}function cgt(o,f){const v=gte(o);if(!v)return;const A=o.parameters.indexOf(f);return f.dotDotDotToken?PK(v,A):XI(v,A)}function lgt(o){const f=gte(o);return f&&np(f)}function EPe(o){const f=rt(o);return f.containsArgumentsReference===void 0&&(f.flags&512?f.containsArgumentsReference=!0:f.containsArgumentsReference=v(o.body)),f.containsArgumentsReference;function v(A){if(!A)return!1;switch(A.kind){case 80:return A.escapedText===Tr.escapedName&&N1e(A)===Tr;case 172:case 174:case 177:case 178:return A.name.kind===167&&v(A.name);case 211:case 212:return v(A.expression);case 303:return v(A.initializer);default:return!kie(A)&&!BE(A)&&!!s_(A,v)}}}function K6(o){if(!o||!o.declarations)return Yn;const f=[];for(let v=0;v0&&A.body){const R=o.declarations[v-1];if(A.parent===R.parent&&A.kind===R.kind&&A.pos===R.end)continue}if(Cs(A)&&A.jsDoc){let R=!1;for(const B of A.jsDoc)if(B.tags){for(const Y of B.tags)if(aF(Y)){const pe=Y.typeExpression;pe.type===void 0&&!Lh(A)&&i8(pe,Ge),f.push(gb(pe)),R=!0}}if(R)continue}f.push(!EP(A)&&!iC(A)&>e(A)||gb(A))}}return f}function s2(o){const f=gS(o,o);if(f){const v=hS(f);if(v)return La(v)}return Ge}function H4(o){if(o.thisParameter)return La(o.thisParameter)}function Wb(o){if(!o.resolvedTypePredicate){if(o.target){const f=Wb(o.target);o.resolvedTypePredicate=f?yBe(f,o.mapper):Xn}else if(o.compositeSignatures)o.resolvedTypePredicate=Iet(o.compositeSignatures,o.compositeKind)||Xn;else{const f=o.declaration&&kS(o.declaration);let v;if(!f){const A=gte(o.declaration);A&&o!==A&&(v=Wb(A))}o.resolvedTypePredicate=f&&mW(f)?iet(f,o):v||Xn}re.assert(!!o.resolvedTypePredicate)}return o.resolvedTypePredicate===Xn?void 0:o.resolvedTypePredicate}function iet(o,f){const v=o.parameterName,A=o.type&&Xl(o.type);return v.kind===197?nM(o.assertsModifier?2:0,void 0,void 0,A):nM(o.assertsModifier?3:1,v.escapedText,Ho(f.parameters,R=>R.escapedName===v.escapedText),A)}function xPe(o,f,v){return f!==2097152?dc(o,v):vp(o)}function np(o){if(!o.resolvedReturnType){if(!OI(o,3))return Sr;let f=o.target?zu(np(o.target),o.mapper):o.compositeSignatures?zu(xPe(Vn(o.compositeSignatures,np),o.compositeKind,2),o.mapper):sK(o.declaration)||(ny(o.declaration.body)?Ge:Awe(o.declaration));if(o.flags&8?f=pNe(f):o.flags&16&&(f=iL(f)),!Bk()){if(o.declaration){const v=kS(o.declaration);if(v)hn(v,N.Return_type_annotation_circularly_references_itself);else if(Et){const A=o.declaration,R=i_(A);R?hn(R,N._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,hm(R)):hn(A,N.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)}}f=Ge}o.resolvedReturnType=f}return o.resolvedReturnType}function sK(o){if(o.kind===176)return F1(jp(o.parent.symbol));const f=kS(o);if(b6(o)){const v=_H(o);if(v&&Lh(v.parent)&&!f)return F1(jp(v.parent.parent.symbol))}if(VL(o))return Xl(o.parameters[0].type);if(f)return Xl(f);if(o.kind===177&&DB(o)){const v=Cs(o)&&zA(o);if(v)return v;const A=Rh(sc(o),178),R=VS(A);if(R)return R}return lgt(o)}function K0e(o){return o.compositeSignatures&>(o.compositeSignatures,K0e)||!o.resolvedReturnType&&HT(o,3)>=0}function oet(o){return APe(o)||Ge}function APe(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]),v=Dp(f)?gK(f):f;return v&&vO(v,Lr)}}function QP(o,f,v,A){const R=X6(o,Gk(f,o.typeParameters,HS(o.typeParameters),v));if(A){const B=Dnt(np(R));if(B){const Y=_te(B);Y.typeParameters=A;const pe=_te(R);return pe.resolvedReturnType=o5(Y),pe}}return R}function X6(o,f){const v=o.instantiations||(o.instantiations=new Map),A=B2(f);let R=v.get(A);return R||v.set(A,R=CPe(o,f)),R}function CPe(o,f){return wV(o,aet(o,f),!0)}function aet(o,f){return X0(o.typeParameters,f)}function Mue(o){return o.typeParameters?o.erasedSignatureCache||(o.erasedSignatureCache=ugt(o)):o}function ugt(o){return wV(o,Het(o.typeParameters),!0)}function fgt(o){return o.typeParameters?o.canonicalSignatureCache||(o.canonicalSignatureCache=set(o)):o}function set(o){return QP(o,Vn(o.typeParameters,f=>f.target&&!gT(f.target)?f.target:f),Cs(o.declaration))}function _gt(o){const f=o.typeParameters;if(f){if(o.baseSignatureCache)return o.baseSignatureCache;const v=Het(f),A=X0(f,Vn(f,B=>gT(B)||Io));let R=Vn(f,B=>zu(B,A)||Io);for(let B=0;B{Lue(R)&&!NWe(f,R)&&f.push(bx(R,v.type?Xl(v.type):Ge,tT(v,8),v))})}return f}return Yn}function Lue(o){return!!(o.flags&4108)||PV(o)||!!(o.flags&2097152)&&!uK(o)&>(o.types,Lue)}function J4(o){return Qo(gi(o.symbol&&o.symbol.declarations,Np),a9)[0]}function Q0e(o,f){var v;let A;if((v=o.symbol)!=null&&v.declarations){for(const R of o.symbol.declarations)if(R.parent.kind===195){const[B=R.parent,Y]=uSe(R.parent.parent);if(Y.kind===183&&!f){const pe=Y,Te=IGe(pe);if(Te){const Ue=pe.typeArguments.indexOf(B);if(Ue()=>_vt(pe,Te,xr))),rn=zu(St,Rt);rn!==o&&(A=ur(A,rn))}}}}else if(Y.kind===169&&Y.dotDotDotToken||Y.kind===191||Y.kind===202&&Y.dotDotDotToken)A=ur(A,hT(Io));else if(Y.kind===204)A=ur(A,Nn);else if(Y.kind===168&&Y.parent.kind===200)A=ur(A,Ym);else if(Y.kind===200&&Y.type&&rg(Y.type)===R.parent&&Y.parent.kind===194&&Y.parent.extendsType===Y&&Y.parent.checkType.kind===200&&Y.parent.checkType.type){const pe=Y.parent.checkType,Te=Xl(pe.type);A=ur(A,zu(Te,Cw(e5(sc(pe.typeParameter)),pe.typeParameter.constraint?Xl(pe.typeParameter.constraint):Ym)))}}}return A&&vp(A)}function CV(o){if(!o.constraint)if(o.target){const f=gT(o.target);o.constraint=f?zu(f,o.mapper):Pm}else{const f=J4(o);if(!f)o.constraint=Q0e(o)||Pm;else{let v=Xl(f);v.flags&1&&!Fn(v)&&(v=f.parent.parent.kind===200?Ym:Io),o.constraint=v}}return o.constraint===Pm?void 0:o.constraint}function cet(o){const f=Rh(o.symbol,168),v=CA(f.parent)?Iie(f.parent):f.parent;return v&&hx(v)}function B2(o){let f="";if(o){const v=o.length;let A=0;for(;A1&&(f+=":"+B),A+=B}}return f}function ZP(o,f){return o?`@${$d(o)}`+(f?`:${B2(f)}`:""):""}function B1(o,f){let v=0;for(const A of o)(f===void 0||!(A.flags&f))&&(v|=ji(A));return v&458752}function jk(o,f){return gt(f)&&o===Ka?Io:qv(o,f)}function qv(o,f){const v=B2(f);let A=o.instantiations.get(v);return A||(A=tA(4,o.symbol),o.instantiations.set(v,A),A.objectFlags|=f?B1(f):0,A.target=o,A.resolvedTypeArguments=f),A}function bD(o){const f=L1(o.flags,o.symbol);return f.objectFlags=o.objectFlags,f.target=o.target,f.resolvedTypeArguments=o.resolvedTypeArguments,f}function Oue(o,f,v,A,R){if(!A){A=EO(f);const Y=fK(A);R=v?cM(Y,v):Y}const B=tA(4,o.symbol);return B.target=o,B.node=f,B.mapper=v,B.aliasSymbol=A,B.aliasTypeArguments=R,B}function ch(o){var f,v;if(!o.resolvedTypeArguments){if(!OI(o,6))return((f=o.target.localTypeParameters)==null?void 0:f.map(()=>Sr))||Yn;const A=o.node,R=A?A.kind===183?Hi(o.target.outerTypeParameters,Wwe(A,o.target.localTypeParameters)):A.kind===188?[Xl(A.elementType)]:Vn(A.elements,Xl):Yn;Bk()?o.resolvedTypeArguments=o.mapper?cM(R,o.mapper):R:(o.resolvedTypeArguments=((v=o.target.localTypeParameters)==null?void 0:v.map(()=>Sr))||Yn,hn(o.node||ae,o.target.symbol?N.Type_arguments_for_0_circularly_reference_themselves:N.Tuple_type_arguments_circularly_reference_themselves,o.target.symbol&&ru(o.target.symbol)))}return o.resolvedTypeArguments}function Y6(o){return Nt(o.target.typeParameters)}function uet(o,f){const v=sh(jp(f)),A=v.localTypeParameters;if(A){const R=Nt(o.typeArguments),B=HS(A),Y=Cs(o);if(!(!Et&&Y)&&(RA.length)){const Ue=Y&&cC(o)&&!xW(o.parent),St=B===A.length?Ue?N.Expected_0_type_arguments_provide_these_with_an_extends_tag:N.Generic_type_0_requires_1_type_argument_s:Ue?N.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:N.Generic_type_0_requires_between_1_and_2_type_arguments,Rt=Co(v,void 0,2);if(hn(o,St,Rt,B,A.length),!Y)return Sr}if(o.kind===183&&Tet(o,Nt(o.typeArguments)!==A.length))return Oue(v,o,void 0);const Te=Hi(v.outerTypeParameters,Gk(Gue(o),A,B,Y));return qv(v,Te)}return a5(o,f)?v:Sr}function PB(o,f,v,A){const R=sh(o);if(R===Ao&&nr.has(o.escapedName)&&f&&f.length===1)return GI(o,f[0]);const B=Ae(o),Y=B.typeParameters,pe=B2(f)+ZP(v,A);let Te=B.instantiations.get(pe);return Te||B.instantiations.set(pe,Te=XPe(R,X0(Y,Gk(f,Y,HS(Y),Cs(o.valueDeclaration))),v,A)),Te}function dgt(o,f){if(I_(f)&1048576){const R=Gue(o),B=ZP(f,R);let Y=Wn.get(B);return Y||(Y=Vg(1,"error",void 0,`alias ${B}`),Y.aliasSymbol=f,Y.aliasTypeArguments=R,Wn.set(B,Y)),Y}const v=sh(f),A=Ae(f).typeParameters;if(A){const R=Nt(o.typeArguments),B=HS(A);if(RA.length)return hn(o,B===A.length?N.Generic_type_0_requires_1_type_argument_s:N.Generic_type_0_requires_between_1_and_2_type_arguments,ru(f),B,A.length),Sr;const Y=EO(o);let pe=Y&&(Z0e(f)||!Z0e(Y))?Y:void 0,Te;if(pe)Te=fK(pe);else if(NN(o)){const Ue=wl(o,2097152,!0);if(Ue&&Ue!==Pr){const St=C0(Ue);St&&St.flags&524288&&(pe=St,Te=Gue(o)||(A?[]:void 0))}}return PB(f,Gue(o),pe,Te)}return a5(o,f)?v:Sr}function Z0e(o){var f;const v=(f=o.declarations)==null?void 0:f.find(L9);return!!(v&&zE(v))}function fet(o){switch(o.kind){case 183:return o.typeName;case 233:const f=o.expression;if(Tg(f))return f}}function Fue(o){return o.parent?`${Fue(o.parent)}.${o.escapedName}`:o.escapedName}function DPe(o){const v=(o.kind===166?o.right:o.kind===211?o.name:o).escapedText;if(v){const A=o.kind===166?DPe(o.left):o.kind===211?DPe(o.expression):void 0,R=A?`${Fue(A)}.${v}`:v;let B=ln.get(R);return B||(ln.set(R,B=tp(524288,v,1048576)),B.parent=A,B.links.declaredType=yi),B}return Pr}function wl(o,f,v){const A=fet(o);if(!A)return Pr;const R=Qg(A,f,v);return R&&R!==Pr?R:v?Pr:DPe(A)}function ebe(o,f){if(f===Pr)return Sr;if(f=M1(f)||f,f.flags&96)return uet(o,f);if(f.flags&524288)return dgt(o,f);const v=G0e(f);if(v)return a5(o,f)?$S(v):Sr;if(f.flags&111551&&Q6(o)){const A=IPe(o,f);return A||(wl(o,788968),La(f))}return Sr}function IPe(o,f){const v=rt(o);if(!v.resolvedJSDocType){const A=La(f);let R=A;if(f.valueDeclaration){const B=o.kind===205&&o.qualifier;A.symbol&&A.symbol!==f&&B&&(R=ebe(o,A.symbol))}v.resolvedJSDocType=R}return v.resolvedJSDocType}function Sw(o,f){if(f.flags&3||f===o||o.flags&1)return o;const v=`${By(o)}>${By(f)}`,A=yf.get(v);if(A)return A;const R=TC(33554432);return R.baseType=o,R.constraint=f,yf.set(v,R),R}function Wue(o){return vp([o.constraint,o.baseType])}function LWe(o){return o.kind===189&&o.elements.length===1}function IE(o,f,v){return LWe(f)&&LWe(v)?IE(o,f.elements[0],v.elements[0]):jI(Xl(f))===jI(o)?Xl(v):void 0}function $4(o,f){let v,A=!0;for(;f&&!dl(f)&&f.kind!==327;){const R=f.parent;if(R.kind===169&&(A=!A),(A||o.flags&8650752)&&R.kind===194&&f===R.trueType){const B=IE(o,R.checkType,R.extendsType);B&&(v=ur(v,B))}else if(o.flags&262144&&R.kind===200&&f===R.type){const B=Xl(R);if(BI(B)===jI(o)){const Y=KPe(B);if(Y){const pe=gT(Y);pe&&Ex(pe,_5)&&(v=ur(v,dc([Lr,Yg])))}}}f=R}return v?Sw(o,vp(v)):o}function Q6(o){return!!(o.flags&16777216)&&(o.kind===183||o.kind===205)}function a5(o,f){return o.typeArguments?(hn(o,N.Type_0_is_not_generic,f?ru(f):o.typeName?hm(o.typeName):h$),!1):!0}function Bue(o){if(xn(o.typeName)){const f=o.typeArguments;switch(o.typeName.escapedText){case"String":return a5(o),Nn;case"Number":return a5(o),Lr;case"Boolean":return a5(o),Pc;case"Void":return a5(o),bl;case"Undefined":return a5(o),Ce;case"Null":return a5(o),mn;case"Function":case"function":return a5(o),ci;case"array":return(!f||!f.length)&&!Et?Qm:void 0;case"promise":return(!f||!f.length)&&!Et?m1e(Ge):void 0;case"Object":if(f&&f.length===2){if(uY(o)){const v=Xl(f[0]),A=Xl(f[1]),R=v===Nn||v===Lr?[bx(v,A,!1)]:Yn;return sy(void 0,Fe,Yn,Yn,R)}return Ge}return a5(o),Et?void 0:Ge}}}function OWe(o){const f=Xl(o.type);return Ke?dNe(f,65536):f}function zue(o){const f=rt(o);if(!f.resolvedType){if(ky(o)&&f7(o.parent))return f.resolvedSymbol=Pr,f.resolvedType=kv(o.parent.expression);let v,A;const R=788968;Q6(o)&&(A=Bue(o),A||(v=wl(o,R,!0),v===Pr?v=wl(o,R|111551):wl(o,R),A=ebe(o,v))),A||(v=wl(o,R),A=ebe(o,v)),f.resolvedSymbol=v,f.resolvedType=A}return f.resolvedType}function Gue(o){return Vn(o.typeArguments,Xl)}function _et(o){const f=rt(o);if(!f.resolvedType){const v=znt(o);f.resolvedType=$S(z2(v))}return f.resolvedType}function q4(o,f){function v(R){const B=R.declarations;if(B)for(const Y of B)switch(Y.kind){case 263:case 264:case 266:return Y}}if(!o)return f?Ka:M_;const A=sh(o);return A.flags&524288?Nt(A.typeParameters)!==f?(hn(v(o),N.Global_type_0_must_have_1_type_parameter_s,Il(o),f),f?Ka:M_):A:(hn(v(o),N.Global_type_0_must_be_a_class_or_interface_type,Il(o)),f?Ka:M_)}function FWe(o,f){return hte(o,111551,f?N.Cannot_find_global_value_0:void 0)}function NB(o,f){return hte(o,788968,f?N.Cannot_find_global_type_0:void 0)}function DV(o,f,v){const A=hte(o,788968,v?N.Cannot_find_global_type_0:void 0);if(A&&(sh(A),Nt(Ae(A).typeParameters)!==f)){const R=A.declarations&&lr(A.declarations,z0);hn(R,N.Global_type_0_must_have_1_type_parameter_s,Il(A),f);return}return A}function hte(o,f,v){return gg(void 0,o,f,v,o,!1,!1,!1)}function Hy(o,f,v){const A=NB(o,v);return A||v?q4(A,f):void 0}function pgt(){return dT||(dT=Hy("TypedPropertyDescriptor",1,!0)||Ka)}function cK(){return Ja||(Ja=Hy("TemplateStringsArray",0,!0)||M_)}function kPe(){return wa||(wa=Hy("ImportMeta",0,!0)||M_)}function det(){if(!wi){const o=tp(0,"ImportMetaExpression"),f=kPe(),v=tp(4,"meta",8);v.parent=o,v.links.type=f;const A=zd([v]);o.members=A,wi=sy(o,A,Yn,Yn,Yn)}return wi}function pet(o){return Vl||(Vl=Hy("ImportCallOptions",0,o))||M_}function jue(o){return Zm||(Zm=FWe("Symbol",o))}function PPe(o){return fb||(fb=NB("SymbolConstructor",o))}function WWe(){return FS||(FS=Hy("Symbol",0,!1))||M_}function yte(o){return $0||($0=Hy("Promise",1,o))||Ka}function met(o){return xv||(xv=Hy("PromiseLike",1,o))||Ka}function BWe(o){return t2||(t2=FWe("Promise",o))}function mgt(o){return q0||(q0=Hy("PromiseConstructorLike",0,o))||M_}function tbe(o){return Ee||(Ee=Hy("AsyncIterable",1,o))||Ka}function zWe(o){return Gt||(Gt=Hy("AsyncIterator",3,o))||Ka}function GWe(o){return sr||(sr=Hy("AsyncIterableIterator",1,o))||Ka}function Nf(o){return Ii||(Ii=Hy("AsyncGenerator",3,o))||Ka}function NPe(o){return N1||(N1=Hy("Iterable",1,o))||Ka}function ggt(o){return i0||(i0=Hy("Iterator",3,o))||Ka}function hgt(o){return nt||(nt=Hy("IterableIterator",1,o))||Ka}function wPe(o){return pr||(pr=Hy("Generator",3,o))||Ka}function wB(o){return vi||(vi=Hy("IteratorYieldResult",1,o))||Ka}function ygt(o){return Di||(Di=Hy("IteratorReturnResult",1,o))||Ka}function nA(o){return Uf||(Uf=Hy("Disposable",0,o))||M_}function get(o){return Y_||(Y_=Hy("AsyncDisposable",0,o))||M_}function het(o,f=0){const v=hte(o,788968,void 0);return v&&q4(v,f)}function RPe(){return Fg||(Fg=DV("Extract",2,!0)||Pr),Fg===Pr?void 0:Fg}function yet(){return sv||(sv=DV("Omit",2,!0)||Pr),sv===Pr?void 0:sv}function eN(o){return vy||(vy=DV("Awaited",1,o)||(o?Pr:void 0)),vy===Pr?void 0:vy}function Vue(){return _b||(_b=Hy("BigInt",0,!1))||M_}function jWe(o){return i1??(i1=Hy("ClassDecoratorContext",1,o))??Ka}function vgt(o){return n2??(n2=Hy("ClassMethodDecoratorContext",2,o))??Ka}function K4(o){return Vv??(Vv=Hy("ClassGetterDecoratorContext",2,o))??Ka}function vet(o){return su??(su=Hy("ClassSetterDecoratorContext",2,o))??Ka}function Mp(o){return gC??(gC=Hy("ClassAccessorDecoratorContext",2,o))??Ka}function s5(o){return eg??(eg=Hy("ClassAccessorDecoratorTarget",2,o))??Ka}function MPe(o){return Uv??(Uv=Hy("ClassAccessorDecoratorResult",2,o))??Ka}function nbe(o){return Rk??(Rk=Hy("ClassFieldDecoratorContext",2,o))??Ka}function JS(){return f_||(f_=FWe("NaN",!1))}function X4(){return zh||(zh=DV("Record",2,!0)||Pr),zh===Pr?void 0:zh}function lK(o,f){return o!==Ka?qv(o,f):M_}function VWe(o){return lK(pgt(),[o])}function vte(o){return lK(NPe(!0),[o])}function hT(o,f){return lK(f?A_:t_,[o])}function UWe(o){switch(o.kind){case 190:return 2;case 191:return HWe(o);case 202:return o.questionToken?2:o.dotDotDotToken?HWe(o):1;default:return 1}}function HWe(o){return pbe(o.type)?4:8}function bet(o){const f=bgt(o.parent);if(pbe(o))return f?A_:t_;const A=Vn(o.elements,UWe);return JWe(A,f,Vn(o.elements,rbe))}function rbe(o){return g6(o)||Os(o)?o:void 0}function Tet(o,f){return!!EO(o)||Eet(o)&&(o.kind===188?Y4(o.elementType):o.kind===189?gt(o.elements,Y4):f||gt(o.typeArguments,Y4))}function Eet(o){const f=o.parent;switch(f.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return Eet(f);case 265:return!0}return!1}function Y4(o){switch(o.kind){case 183:return Q6(o)||!!(wl(o,788968).flags&524288);case 186:return!0;case 198:return o.operator!==158&&Y4(o.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Y4(o.type);case 191:return o.type.kind!==188||Y4(o.type.elementType);case 192:case 193:return gt(o.types,Y4);case 199:return Y4(o.objectType)||Y4(o.indexType);case 194:return Y4(o.checkType)||Y4(o.extendsType)||Y4(o.trueType)||Y4(o.falseType)}return!1}function xet(o){const f=rt(o);if(!f.resolvedType){const v=bet(o);if(v===Ka)f.resolvedType=M_;else if(!(o.kind===189&>(o.elements,A=>!!(UWe(A)&8)))&&Tet(o))f.resolvedType=o.kind===189&&o.elements.length===0?v:Oue(v,o,void 0);else{const A=o.kind===188?[Xl(o.elementType)]:Vn(o.elements,Xl);f.resolvedType=$We(v,A)}}return f.resolvedType}function bgt(o){return _I(o)&&o.operator===148}function TD(o,f,v=!1,A=[]){const R=JWe(f||Vn(o,B=>1),v,A);return R===Ka?M_:o.length?$We(R,o):R}function JWe(o,f,v){if(o.length===1&&o[0]&4)return f?A_:t_;const A=Vn(o,B=>B&1?"#":B&2?"?":B&4?".":"*").join()+(f?"R":"")+(gt(v,B=>!!B)?","+Vn(v,B=>B?vm(B):"_").join(","):"");let R=au.get(A);return R||au.set(A,R=Tgt(o,f,v)),R}function Tgt(o,f,v){const A=o.length,R=dp(o,Rt=>!!(Rt&9));let B;const Y=[];let pe=0;if(A){B=new Array(A);for(let Rt=0;Rt!!(o.elementFlags[Ai]&8&&xr.flags&1179648));if(Sn>=0)return sbe(Vn(f,(xr,Ai)=>o.elementFlags[Ai]&8?xr:Io))?Th(f[Sn],xr=>LPe(o,yz(f,Sn,xr))):Sr}const B=[],Y=[],pe=[];let Te=-1,Ue=-1,St=-1;for(let Sn=0;Sn=1e4)return hn(ae,BE(ae)?N.Type_produces_a_tuple_type_that_is_too_large_to_represent:N.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Sr;Ot(So,(la,Zs)=>{var ba;return rn(la,xr.target.elementFlags[Zs],(ba=xr.target.labeledElementDeclarations)==null?void 0:ba[Zs])})}else rn(rL(xr)&&vO(xr,Lr)||Sr,4,(A=o.labeledElementDeclarations)==null?void 0:A[Sn]);else rn(xr,Ai,(R=o.labeledElementDeclarations)==null?void 0:R[Sn])}for(let Sn=0;Sn=0&&UeY[Ue+xr]&8?u0(Sn,Lr):Sn)),B.splice(Ue+1,St-Ue),Y.splice(Ue+1,St-Ue),pe.splice(Ue+1,St-Ue));const Rt=JWe(Y,o.readonly,pe);return Rt===Ka?M_:Y.length?qv(Rt,B):Rt;function rn(Sn,xr,Ai){xr&1&&(Te=Y.length),xr&4&&Ue<0&&(Ue=Y.length),xr&6&&(St=Y.length),B.push(xr&2?mb(Sn,!0):Sn),Y.push(xr),pe.push(Ai)}}function bte(o,f,v=0){const A=o.target,R=Y6(o)-v;return f>A.fixedLength?Kgt(o)||TD(Yn):TD(ch(o).slice(f,R),A.elementFlags.slice(f,R),!1,A.labeledElementDeclarations&&A.labeledElementDeclarations.slice(f,R))}function ibe(o){return dc(ur(vz(o.target.fixedLength,f=>vS(""+f)),CC(o.target.readonly?A_:t_)))}function qWe(o,f){const v=Ho(o.elementFlags,A=>!(A&f));return v>=0?v:o.elementFlags.length}function Uue(o,f){return o.elementFlags.length-Ms(o.elementFlags,v=>!(v&f))-1}function KWe(o){return o.fixedLength+Uue(o,3)}function Z6(o){const f=ch(o),v=Y6(o);return f.length===v?f:f.slice(0,v)}function rM(o){return mb(Xl(o.type),!0)}function By(o){return o.id}function Q4(o,f){return ZS(o,f,By,pf)>=0}function IV(o,f){const v=ZS(o,f,By,pf);return v<0?(o.splice(~v,0,f),!0):!1}function Aet(o,f,v){const A=v.flags;if(!(A&131072))if(f|=A&473694207,A&465829888&&(f|=33554432),v===Ei&&(f|=8388608),!Ke&&A&98304)ji(v)&65536||(f|=4194304);else{const R=o.length,B=R&&v.id>o[R-1].id?~R:ZS(o,v,By,pf);B<0&&o.splice(~B,0,v)}return f}function OPe(o,f,v){let A;for(const R of v)R!==A&&(f=R.flags&1048576?OPe(o,f|(obe(R)?1048576:0),R.types):Aet(o,f,R),A=R);return f}function Hue(o,f){var v;if(o.length<2)return o;const A=B2(o),R=w_.get(A);if(R)return R;const B=f&>(o,Ue=>!!(Ue.flags&524288)&&!Fb(Ue)&&tNe(Gh(Ue))),Y=o.length;let pe=Y,Te=0;for(;pe>0;){pe--;const Ue=o[pe];if(B||Ue.flags&469499904){if(Ue.flags&262144&&tM(Ue).flags&1048576){qS(Ue,dc(Vn(o,rn=>rn===Ue?Tc:rn)),wm)&&Yw(o,pe);continue}const St=Ue.flags&61603840?lr(zm(Ue),rn=>UI(La(rn))):void 0,Rt=St&&$S(La(St));for(const rn of o)if(Ue!==rn){if(Te===1e5&&Te/(Y-pe)*Y>1e6){(v=ps)==null||v.instant(ps.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:o.map(xr=>xr.id)}),hn(ae,N.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Te++,St&&rn.flags&61603840){const Sn=Xe(rn,St.escapedName);if(Sn&&UI(Sn)&&$S(Sn)!==Rt)continue}if(qS(Ue,rn,wm)&&(!(ji(QR(Ue))&1)||!(ji(QR(rn))&1)||nN(Ue,rn))){Yw(o,pe);break}}}}return w_.set(A,o),o}function Vk(o,f,v){let A=o.length;for(;A>0;){A--;const R=o[A],B=R.flags;(B&402653312&&f&4||B&256&&f&8||B&2048&&f&64||B&8192&&f&4096||v&&B&32768&&f&16384||Bb(R)&&Q4(o,R.regularType))&&Yw(o,A)}}function Cet(o){const f=gi(o,v=>!!(v.flags&134217728)&&PV(v)&&v.types.every(A=>!(A.flags&2097152)||!BPe(A.types)));if(f.length){let v=o.length;for(;v>0;){v--;const A=o[v];A.flags&128&>(f,R=>GB(A,R))&&Yw(o,v)}}}function obe(o){return!!(o.flags&1048576&&(o.aliasSymbol||o.origin))}function Det(o,f){for(const v of f)if(v.flags&1048576){const A=v.origin;v.aliasSymbol||A&&!(A.flags&1048576)?Dy(o,v):A&&A.flags&1048576&&Det(o,A.types)}}function XWe(o,f){const v=mT(o);return v.types=f,v}function dc(o,f=1,v,A,R){if(o.length===0)return Tc;if(o.length===1)return o[0];if(o.length===2&&!R&&(o[0].flags&1048576||o[1].flags&1048576)){const B=f===0?"N":f===2?"S":"L",Y=o[0].id=2&&B[0]===Ce&&B[1]===qe&&Yw(B,1),(Y&402664352||Y&16384&&Y&32768)&&Vk(B,Y,!!(f&2)),Y&128&&Y&134217728&&Cet(B),f===2&&(B=Hue(B,!!(Y&524288)),!B))return Sr;if(B.length===0)return Y&65536?Y&4194304?mn:Jn:Y&32768?Y&4194304?Ce:kt:Tc}if(!R&&Y&1048576){const Te=[];Det(Te,o);const Ue=[];for(const Rt of B)gt(Te,rn=>Q4(rn.types,Rt))||Ue.push(Rt);if(!v&&Te.length===1&&Ue.length===0)return Te[0];if(Em(Te,(Rt,rn)=>Rt+rn.types.length,0)+Ue.length===B.length){for(const Rt of Te)IV(Ue,Rt);R=XWe(1048576,Ue)}}const pe=(Y&36323331?0:32768)|(Y&2097152?16777216:0);return YWe(B,pe,v,A,R)}function Iet(o,f){let v;const A=[];for(const B of o){const Y=Wb(B);if(Y){if(Y.kind!==0&&Y.kind!==1||v&&!Jue(v,Y))return;v=Y,A.push(Y.type)}else{const pe=f!==2097152?np(B):void 0;if(pe!==vo&&pe!==Ro)return}}if(!v)return;const R=xPe(A,f);return nM(v.kind,v.parameterName,v.parameterIndex,R)}function Jue(o,f){return o.kind===f.kind&&o.parameterIndex===f.parameterIndex}function YWe(o,f,v,A,R){if(o.length===0)return Tc;if(o.length===1)return o[0];const Y=(R?R.flags&1048576?`|${B2(R.types)}`:R.flags&2097152?`&${B2(R.types)}`:`#${R.type.id}|${B2(o)}`:B2(o))+ZP(v,A);let pe=qn.get(Y);return pe||(pe=TC(1048576),pe.objectFlags=f|B1(o,98304),pe.types=o,pe.origin=R,pe.aliasSymbol=v,pe.aliasTypeArguments=A,o.length===2&&o[0].flags&512&&o[1].flags&512&&(pe.flags|=16,pe.intrinsicName="boolean"),qn.set(Y,pe)),pe}function ket(o){const f=rt(o);if(!f.resolvedType){const v=EO(o);f.resolvedType=dc(Vn(o.types,Xl),1,v,fK(v))}return f.resolvedType}function QWe(o,f,v){const A=v.flags;return A&2097152?ZWe(o,f,v.types):(VI(v)?f&16777216||(f|=16777216,o.set(v.id.toString(),v)):(A&3?v===Ei&&(f|=8388608):(Ke||!(A&98304))&&(v===qe&&(f|=262144,v=Ce),o.has(v.id.toString())||(v.flags&109472&&f&109472&&(f|=67108864),o.set(v.id.toString(),v))),f|=A&473694207),f)}function ZWe(o,f,v){for(const A of v)f=QWe(o,f,$S(A));return f}function Sgt(o,f){let v=o.length;for(;v>0;){v--;const A=o[v];(A.flags&4&&f&402653312||A.flags&8&&f&256||A.flags&64&&f&2048||A.flags&4096&&f&8192||A.flags&16384&&f&32768||VI(A)&&f&470302716)&&Yw(o,v)}}function eBe(o,f){for(const v of o)if(!Q4(v.types,f)){const A=f.flags&128?Nn:f.flags&288?Lr:f.flags&2048?qi:f.flags&8192?hc:void 0;if(!A||!Q4(v.types,A))return!1}return!0}function Pet(o){let f=o.length;const v=gi(o,A=>!!(A.flags&128));for(;f>0;){f--;const A=o[f];if(A.flags&134217728){for(const R of v)if(nL(R,A)){Yw(o,f);break}else if(PV(A))return!0}}return!1}function tBe(o,f){for(let v=0;v!(A.flags&f))}function abe(o){let f;const v=Ho(o,Y=>!!(ji(Y)&32768));if(v<0)return!1;let A=v+1;for(;A!!(Ue.flags&1048576&&Ue.types[0].flags&32768))){const Ue=gt(Y,cfe)?qe:Ce;tBe(Y,32768),Te=dc([vp(Y),Ue],1,f,v)}else if(jr(Y,Ue=>!!(Ue.flags&1048576&&(Ue.types[0].flags&65536||Ue.types[1].flags&65536))))tBe(Y,65536),Te=dc([vp(Y),mn],1,f,v);else{if(!sbe(Y))return Sr;const Ue=Egt(Y),St=gt(Ue,Rt=>!!(Rt.flags&2097152))&&nBe(Ue)>nBe(Y)?XWe(2097152,Y):void 0;Te=dc(Ue,1,f,v,St)}else Te=WPe(Y,f,v);Ia.set(pe,Te)}return Te}function Net(o){return Em(o,(f,v)=>v.flags&1048576?f*v.types.length:v.flags&131072?0:f,1)}function sbe(o){var f;const v=Net(o);return v>=1e5?((f=ps)==null||f.instant(ps.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:o.map(A=>A.id),size:v}),hn(ae,N.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Egt(o){const f=Net(o),v=[];for(let A=0;A=0;pe--)if(o[pe].flags&1048576){const Te=o[pe].types,Ue=Te.length;R[pe]=Te[B%Ue],B=Math.floor(B/Ue)}const Y=vp(R);Y.flags&131072||v.push(Y)}return v}function cbe(o){return!(o.flags&3145728)||o.aliasSymbol?1:o.flags&1048576&&o.origin?cbe(o.origin):nBe(o.types)}function nBe(o){return Em(o,(f,v)=>f+cbe(v),0)}function BPe(o,f=76){if(o.length!==2)return!1;const[v,A]=o;return!!(v.flags&f)&&A===hh||!!(A.flags&f)&&v===hh}function lbe(o){const f=rt(o);if(!f.resolvedType){const v=EO(o),A=Vn(o.types,Xl),R=BPe(A);f.resolvedType=vp(A,v,fK(v),R)}return f.resolvedType}function RB(o,f){const v=TC(4194304);return v.type=o,v.indexFlags=f,v}function zPe(o){const f=mT(4194304);return f.type=o,f}function wet(o,f){return f&1?o.resolvedStringIndexType||(o.resolvedStringIndexType=RB(o,1)):o.resolvedIndexType||(o.resolvedIndexType=RB(o,0))}function xgt(o,f){const v=BI(o),A=$v(o),R=bw(o.target||o);if(!R&&!(f&2))return A;const B=[];if(rK(o)){if(Tx(A))return wet(o,f);{const Te=yS(eM(o));gPe(Te,8576,!!(f&1),pe)}}else PO(V0e(A),pe);Tx(A)&&PO(A,pe);const Y=f&2?lv(dc(B),Te=>!(Te.flags&5)):dc(B);if(Y.flags&1048576&&A.flags&1048576&&B2(Y.types)===B2(A.types))return A;return Y;function pe(Te){const Ue=R?zu(R,Zue(o.mapper,v,Te)):Te;B.push(Ue===Nn?u_:Ue)}}function Ret(o){const f=BI(o);return v(bw(o)||f);function v(A){return A.flags&470810623?!0:A.flags&16777216?A.root.isDistributive&&A.checkType===f:A.flags&137363456?jr(A.types,v):A.flags&8388608?v(A.objectType)&&v(A.indexType):A.flags&33554432?v(A.baseType)&&v(A.constraint):A.flags&268435456?v(A.type):!1}}function SD(o){if(Lu(o))return Tc;if(S1(o))return $S(Bf(o));if(Qf(o))return $S(Jk(o));const f=FN(o);return f!==void 0?vS(Ic(f)):kr(o)?$S(Bf(o)):Tc}function c5(o,f,v){if(v||!(Vy(o)&6)){let A=Ae(Pue(o)).nameType;if(!A){const R=i_(o.valueDeclaration);A=o.escapedName==="default"?vS("default"):R&&SD(R)||(yA(o)?void 0:vS(Il(o)))}if(A&&A.flags&f)return A}return Tc}function Met(o,f){return!!(o.flags&f||o.flags&2097152&>(o.types,v=>Met(v,f)))}function rBe(o,f,v){const A=v&&(ji(o)&7||o.aliasSymbol)?zPe(o):void 0,R=Vn(zm(o),Y=>c5(Y,f)),B=Vn(JT(o),Y=>Y!==Fs&&Met(Y.keyType,f)?Y.keyType===Nn&&f&8?u_:Y.keyType:Tc);return dc(Hi(R,B),1,void 0,void 0,A)}function Let(o,f=0){return!!(o.flags&58982400||mM(o)||Fb(o)&&!Ret(o)||o.flags&1048576&&!(f&4)&&TPe(o)||o.flags&2097152&&Ty(o,465829888)&>(o.types,VI))}function CC(o,f=Rn){return o=zI(o),Let(o,f)?wet(o,f):o.flags&1048576?vp(Vn(o.types,v=>CC(v,f))):o.flags&2097152?dc(Vn(o.types,v=>CC(v,f))):ji(o)&32?xgt(o,f):o===Ei?Ei:o.flags&2?Tc:o.flags&131073?Ym:rBe(o,(f&2?128:402653316)|(f&1?0:12584),f===Rn)}function Oet(o){if(nn)return o;const f=RPe();return f?PB(f,[o,Nn]):Nn}function Agt(o){const f=Oet(CC(o));return f.flags&131072?Nn:f}function Fet(o){const f=rt(o);if(!f.resolvedType)switch(o.operator){case 143:f.resolvedType=CC(Xl(o.type));break;case 158:f.resolvedType=o.type.kind===155?_K(QM(o.parent)):Sr;break;case 148:f.resolvedType=Xl(o.type);break;default:re.assertNever(o.operator)}return f.resolvedType}function Cgt(o){const f=rt(o);return f.resolvedType||(f.resolvedType=MB([o.head.text,...Vn(o.templateSpans,v=>v.literal.text)],Vn(o.templateSpans,v=>Xl(v.type)))),f.resolvedType}function MB(o,f){const v=Ho(f,Ue=>!!(Ue.flags&1179648));if(v>=0)return sbe(f)?Th(f[v],Ue=>MB(o,yz(f,v,Ue))):Sr;if(ni(f,Ei))return Ei;const A=[],R=[];let B=o[0];if(!Te(o,f))return Nn;if(A.length===0)return vS(B);if(R.push(B),jr(R,Ue=>Ue==="")){if(jr(A,Ue=>!!(Ue.flags&4)))return Nn;if(A.length===1&&PV(A[0]))return A[0]}const Y=`${B2(A)}|${Vn(R,Ue=>Ue.length).join(",")}|${R.join("")}`;let pe=Qu.get(Y);return pe||Qu.set(Y,pe=Tte(R,A)),pe;function Te(Ue,St){for(let Rt=0;RtGI(o,v)):f.flags&128?vS(ube(o,f.value)):f.flags&134217728?MB(...iBe(o,f.texts,f.types)):f.flags&268435456&&o===f.symbol?f:f.flags&268435461||Tx(f)?iM(o,f):rA(f)?iM(o,MB(["",""],[f])):f}function ube(o,f){switch(nr.get(o.escapedName)){case 0:return f.toUpperCase();case 1:return f.toLowerCase();case 2:return f.charAt(0).toUpperCase()+f.slice(1);case 3:return f.charAt(0).toLowerCase()+f.slice(1)}return f}function iBe(o,f,v){switch(nr.get(o.escapedName)){case 0:return[f.map(A=>A.toUpperCase()),v.map(A=>GI(o,A))];case 1:return[f.map(A=>A.toLowerCase()),v.map(A=>GI(o,A))];case 2:return[f[0]===""?f:[f[0].charAt(0).toUpperCase()+f[0].slice(1),...f.slice(1)],f[0]===""?[GI(o,v[0]),...v.slice(1)]:v];case 3:return[f[0]===""?f:[f[0].charAt(0).toLowerCase()+f[0].slice(1),...f.slice(1)],f[0]===""?[GI(o,v[0]),...v.slice(1)]:v]}return[f,v]}function iM(o,f){const v=`${$d(o)},${By(f)}`;let A=Cu.get(v);return A||Cu.set(v,A=oBe(o,f)),A}function oBe(o,f){const v=L1(268435456,o);return v.type=f,v}function Wet(o,f,v,A,R){const B=TC(8388608);return B.objectType=o,B.indexType=f,B.accessFlags=v,B.aliasSymbol=A,B.aliasTypeArguments=R,B}function kV(o){if(Et)return!1;if(ji(o)&4096)return!0;if(o.flags&1048576)return jr(o.types,kV);if(o.flags&2097152)return gt(o.types,kV);if(o.flags&465829888){const f=bPe(o);return f!==o&&kV(f)}return!1}function LB(o,f){return yv(o)?vv(o):f&&qg(f)?FN(f):void 0}function $ue(o,f){if(f.flags&8208){const v=Ua(o.parent,A=>!Kf(A))||o.parent;return uR(v)?sk(v)&&xn(o)&&oze(v,o):jr(f.declarations,A=>!F_(A)||N2(A))}return!0}function Bet(o,f,v,A,R,B){const Y=R&&R.kind===212?R:void 0,pe=R&&Lu(R)?void 0:LB(v,R);if(pe!==void 0){if(B&256)return oN(f,pe)||Ge;const Ue=Yd(f,pe);if(Ue){if(B&64&&R&&Ue.declarations&&BS(Ue)&&$ue(R,Ue)){const Rt=(Y==null?void 0:Y.argumentExpression)??(Wx(R)?R.indexType:R);pS(Rt,Ue.declarations,pe)}if(Y){if(Pfe(Ue,Y,Uze(Y.expression,f.symbol)),dGe(Y,Ue,q8(Y))){hn(Y.argumentExpression,N.Cannot_assign_to_0_because_it_is_a_read_only_property,ru(Ue));return}if(B&8&&(rt(R).resolvedSymbol=Ue),gnt(Y,Ue))return Br}const St=B&4?QF(Ue):La(Ue);return Y&&q8(Y)!==1?a8(Y,St):R&&Wx(R)&&cfe(St)?dc([St,Ce]):St}if(Ex(f,Dp)&&FT(pe)){const St=+pe;if(R&&Ex(f,Rt=>!Rt.target.hasRestElement)&&!(B&16)){const Rt=aBe(R);if(Dp(f)){if(St<0)return hn(Rt,N.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ce;hn(Rt,N.Tuple_type_0_of_length_1_has_no_element_at_index_2,Co(f),Y6(f),Ic(pe))}else hn(Rt,N.Property_0_does_not_exist_on_type_1,Ic(pe),Co(f))}if(St>=0)return Te(Tw(f,Lr)),fNe(f,St,B&1?qe:void 0)}}if(!(v.flags&98304)&&zb(v,402665900)){if(f.flags&131073)return f;const Ue=AV(f,v)||Tw(f,Nn);if(Ue){if(B&2&&Ue.keyType!==Lr){Y&&(B&4?hn(Y,N.Type_0_is_generic_and_can_only_be_indexed_for_reading,Co(o)):hn(Y,N.Type_0_cannot_be_used_to_index_type_1,Co(v),Co(o)));return}if(R&&Ue.keyType===Nn&&!zb(v,12)){const St=aBe(R);return hn(St,N.Type_0_cannot_be_used_as_an_index_type,Co(v)),B&1?dc([Ue.type,qe]):Ue.type}return Te(Ue),B&1&&!(f.symbol&&f.symbol.flags&384&&v.symbol&&v.flags&1024&&xE(v.symbol)===f.symbol)?dc([Ue.type,qe]):Ue.type}if(v.flags&131072)return Tc;if(kV(f))return Ge;if(Y&&!Pwe(f)){if(IO(f)){if(Et&&v.flags&384)return j_.add(Bs(Y,N.Property_0_does_not_exist_on_type_1,v.value,Co(f))),Ce;if(v.flags&12){const St=Vn(f.properties,Rt=>La(Rt));return dc(ur(St,Ce))}}if(f.symbol===fr&&pe!==void 0&&fr.exports.has(pe)&&fr.exports.get(pe).flags&418)hn(Y,N.Property_0_does_not_exist_on_type_1,Ic(pe),Co(f));else if(Et&&!Pe.suppressImplicitAnyIndexErrors&&!(B&128))if(pe!==void 0&&Vze(pe,f)){const St=Co(f);hn(Y,N.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,pe,St,St+"["+Lv(Y.argumentExpression)+"]")}else if(vO(f,Lr))hn(Y.argumentExpression,N.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let St;if(pe!==void 0&&(St=awe(pe,f)))St!==void 0&&hn(Y.argumentExpression,N.Property_0_does_not_exist_on_type_1_Did_you_mean_2,pe,Co(f),St);else{const Rt=Jte(f,Y,v);if(Rt!==void 0)hn(Y,N.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Co(f),Rt);else{let rn;if(v.flags&1024)rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,"["+Co(v)+"]",Co(f));else if(v.flags&8192){const Sn=GS(v.symbol,Y);rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,"["+Sn+"]",Co(f))}else v.flags&128||v.flags&256?rn=Es(void 0,N.Property_0_does_not_exist_on_type_1,v.value,Co(f)):v.flags&12&&(rn=Es(void 0,N.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Co(v),Co(f)));rn=Es(rn,N.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Co(A),Co(f)),j_.add(wN(ts(Y),Y,rn))}}}return}}if(kV(f))return Ge;if(R){const Ue=aBe(R);v.flags&384?hn(Ue,N.Property_0_does_not_exist_on_type_1,""+v.value,Co(f)):v.flags&12?hn(Ue,N.Type_0_has_no_matching_index_signature_for_type_1,Co(f),Co(v)):hn(Ue,N.Type_0_cannot_be_used_as_an_index_type,Co(v))}if(bn(v))return v;return;function Te(Ue){Ue&&Ue.isReadonly&&Y&&(VE(Y)||mH(Y))&&hn(Y,N.Index_signature_in_type_0_only_permits_reading,Co(f))}}function aBe(o){return o.kind===212?o.argumentExpression:o.kind===199?o.indexType:o.kind===167?o.expression:o}function rA(o){return o.flags&2097152?!uK(o)&>(o.types,f=>!!(f.flags&101248)||rA(f)):!!(o.flags&77)||PV(o)}function PV(o){return!!(o.flags&134217728)&&jr(o.types,rA)||!!(o.flags&268435456)&&rA(o.type)}function uK(o){return!!que(o)}function Ew(o){return!!(que(o)&4194304)}function Tx(o){return!!(que(o)&8388608)}function que(o){return o.flags&137363456?(o.objectFlags&2097152||(o.objectFlags|=2097152|Em(o.types,(f,v)=>f|que(v),0)),o.objectFlags&12582912):o.flags&33554432?(o.objectFlags&2097152||(o.objectFlags|=2097152|que(o.baseType)|que(o.constraint)),o.objectFlags&12582912):(o.flags&58982400||Fb(o)||mM(o)?4194304:0)|(o.flags&331612160&&!PV(o)?8388608:0)}function tN(o,f){return o.flags&8388608?sBe(o,f):o.flags&16777216?Dgt(o,f):o}function TO(o,f,v){if(o.flags&1048576||o.flags&2097152&&!Let(o)){const A=Vn(o.types,R=>tN(u0(R,f),v));return o.flags&2097152||v?vp(A):dc(A)}}function zet(o,f,v){if(f.flags&1048576){const A=Vn(f.types,R=>tN(u0(o,R),v));return v?vp(A):dc(A)}}function sBe(o,f){const v=f?"simplifiedForWriting":"simplifiedForReading";if(o[v])return o[v]===Ag?o:o[v];o[v]=Ag;const A=tN(o.objectType,f),R=tN(o.indexType,f),B=zet(A,R,f);if(B)return o[v]=B;if(!(R.flags&465829888)){const Y=TO(A,R,f);if(Y)return o[v]=Y}if(mM(A)&&R.flags&296){const Y=Ite(A,R.flags&8?0:A.target.fixedLength,0,f);if(Y)return o[v]=Y}return Fb(A)&&(!bw(A)||$Ze(A))?o[v]=Th(_p(A,o.indexType),Y=>tN(Y,f)):o[v]=o}function Dgt(o,f){const v=o.checkType,A=o.extendsType,R=SO(o),B=oM(o);if(B.flags&131072&&jI(R)===jI(v)){if(v.flags&1||Id(AO(v),AO(A)))return tN(R,f);if(GPe(v,A))return Tc}else if(R.flags&131072&&jI(B)===jI(v)){if(!(v.flags&1)&&Id(AO(v),AO(A)))return Tc;if(v.flags&1||GPe(v,A))return tN(B,f)}return o}function GPe(o,f){return!!(dc([j0e(o,f),Tc]).flags&131072)}function _p(o,f){const v=X0([BI(o)],[f]),A=lM(o.mapper,v);return zu(ZR(o.target||o),A)}function u0(o,f,v=0,A,R,B){return xw(o,f,v,A,R,B)||(A?Sr:Io)}function cBe(o,f){return Ex(o,v=>{if(v.flags&384){const A=vv(v);if(FT(A)){const R=+A;return R>=0&&R0&&!gt(o.elements,f=>MJ(f)||hW(f)||g6(f)&&!!(f.questionToken||f.dotDotDotToken))}function _Be(o,f){return uK(o)||f&&Dp(o)&>(Z6(o),uK)}function dBe(o,f,v,A){let R,B,Y=0;for(;;){if(Y===1e3)return hn(ae,N.Type_instantiation_is_excessively_deep_and_possibly_infinite),Sr;const Te=zu(jI(o.checkType),f),Ue=zu(o.extendsType,f);if(Te===Sr||Ue===Sr)return Sr;if(Te===Ei||Ue===Ei)return Ei;const St=fBe(o.node.checkType)&&fBe(o.node.extendsType)&&Nt(o.node.checkType.elements)===Nt(o.node.extendsType.elements),Rt=_Be(Te,St);let rn;if(o.inferTypeParameters){const xr=Ol(o.inferTypeParameters,Igt),Ai=xr!==o.inferTypeParameters?X0(o.inferTypeParameters,xr):void 0,So=ufe(xr,void 0,0);if(Ai){const Zs=lM(f,Ai);for(let ba=0;batL(Ai,Rt)),Sn=X0(St.outerTypeParameters,rn),xr=St.isDistributive?tL(St.checkType,Sn):void 0;if(!xr||xr===St.checkType||!(xr.flags&1179648))return o=St,f=Sn,v=void 0,A=void 0,St.aliasSymbol&&Y++,!0}}return!1}}function SO(o){return o.resolvedTrueType||(o.resolvedTrueType=zu(Xl(o.root.node.trueType),o.mapper))}function oM(o){return o.resolvedFalseType||(o.resolvedFalseType=zu(Xl(o.root.node.falseType),o.mapper))}function eL(o){return o.resolvedInferredTrueType||(o.resolvedInferredTrueType=o.combinedMapper?zu(Xl(o.root.node.trueType),o.combinedMapper):SO(o))}function Get(o){let f;return o.locals&&o.locals.forEach(v=>{v.flags&262144&&(f=ur(f,sh(v)))}),f}function aM(o){return o.isDistributive&&(xte(o.checkType,o.node.trueType)||xte(o.checkType,o.node.falseType))}function jet(o){const f=rt(o);if(!f.resolvedType){const v=Xl(o.checkType),A=EO(o),R=fK(A),B=SV(o,!0),Y=R?B:gi(B,Te=>xte(Te,o)),pe={node:o,checkType:v,extendsType:Xl(o.extendsType),isDistributive:!!(v.flags&262144),inferTypeParameters:Get(o),outerTypeParameters:Y,instantiations:void 0,aliasSymbol:A,aliasTypeArguments:R};f.resolvedType=dBe(pe,void 0),Y&&(pe.instantiations=new Map,pe.instantiations.set(B2(Y),f.resolvedType))}return f.resolvedType}function jPe(o){const f=rt(o);return f.resolvedType||(f.resolvedType=e5(sc(o.typeParameter))),f.resolvedType}function fbe(o){return xn(o)?[o]:ur(fbe(o.left),o.right)}function Kue(o){var f;const v=rt(o);if(!v.resolvedType){if(!MN(o))return hn(o.argument,N.String_literal_expected),v.resolvedSymbol=Pr,v.resolvedType=Sr;const A=o.isTypeOf?111551:o.flags&16777216?900095:788968,R=gS(o,o.argument.literal);if(!R)return v.resolvedSymbol=Pr,v.resolvedType=Sr;const B=!!((f=R.exports)!=null&&f.get("export=")),Y=hS(R,!1);if(ny(o.qualifier))if(Y.flags&A)v.resolvedType=l5(o,v,Y,A);else{const pe=A===111551?N.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:N.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;hn(o,pe,o.argument.literal.text),v.resolvedSymbol=Pr,v.resolvedType=Sr}else{const pe=fbe(o.qualifier);let Te=Y,Ue;for(;Ue=pe.shift();){const St=pe.length?1920:A,Rt=jp(Av(Te)),rn=o.isTypeOf||Cs(o)&&B?Yd(La(Rt),Ue.escapedText,!1,!0):void 0,xr=(o.isTypeOf?void 0:Ci(L2(Rt),Ue.escapedText,St))??rn;if(!xr)return hn(Ue,N.Namespace_0_has_no_exported_member_1,GS(Te),hm(Ue)),v.resolvedType=Sr;rt(Ue).resolvedSymbol=xr,rt(Ue.parent).resolvedSymbol=xr,Te=xr}v.resolvedType=l5(o,v,Te,A)}}return v.resolvedType}function l5(o,f,v,A){const R=Av(v);return f.resolvedSymbol=R,A===111551?Gnt(La(v),o):ebe(o,R)}function Ste(o){const f=rt(o);if(!f.resolvedType){const v=EO(o);if(j4(o.symbol).size===0&&!v)f.resolvedType=hh;else{let A=tA(16,o.symbol);A.aliasSymbol=v,A.aliasTypeArguments=fK(v),oF(o)&&o.isArrayType&&(A=hT(A)),f.resolvedType=A}}return f.resolvedType}function EO(o){let f=o.parent;for(;XN(f)||SW(f)||_I(f)&&f.operator===148;)f=f.parent;return L9(f)?sc(f):void 0}function fK(o){return o?Fo(o):void 0}function Ete(o){return!!(o.flags&524288)&&!Fb(o)}function xO(o){return _M(o)||!!(o.flags&474058748)}function pBe(o,f){if(!(o.flags&1048576))return o;if(jr(o.types,xO))return lr(o.types,_M)||M_;const v=lr(o.types,B=>!xO(B));if(!v||lr(o.types,B=>B!==v&&!xO(B)))return o;return R(v);function R(B){const Y=zd();for(const Te of zm(B))if(!(Vy(Te)&6)){if(_be(Te)){const Ue=Te.flags&65536&&!(Te.flags&32768),Rt=tp(16777220,Te.escapedName,mPe(Te)|(f?8:0));Rt.links.type=Ue?Ce:mb(La(Te),!0),Rt.declarations=Te.declarations,Rt.links.nameType=Ae(Te).nameType,Rt.links.syntheticOrigin=Te,Y.set(Te.escapedName,Rt)}}const pe=sy(B.symbol,Y,Yn,Yn,JT(B));return pe.objectFlags|=131200,pe}}function Aw(o,f,v,A,R){if(o.flags&1||f.flags&1)return Ge;if(o.flags&2||f.flags&2)return Io;if(o.flags&131072)return f;if(f.flags&131072)return o;if(o=pBe(o,R),o.flags&1048576)return sbe([o,f])?Th(o,Ue=>Aw(Ue,f,v,A,R)):Sr;if(f=pBe(f,R),f.flags&1048576)return sbe([o,f])?Th(f,Ue=>Aw(o,Ue,v,A,R)):Sr;if(f.flags&473960444)return o;if(Ew(o)||Ew(f)){if(_M(o))return f;if(o.flags&2097152){const Ue=o.types,St=Ue[Ue.length-1];if(Ete(St)&&Ete(f))return vp(Hi(Ue.slice(0,Ue.length-1),[Aw(St,f,v,A,R)]))}return vp([o,f])}const B=zd(),Y=new Set,pe=o===M_?JT(f):jZe([o,f]);for(const Ue of zm(f))Vy(Ue)&6?Y.add(Ue.escapedName):_be(Ue)&&B.set(Ue.escapedName,VPe(Ue,R));for(const Ue of zm(o))if(!(Y.has(Ue.escapedName)||!_be(Ue)))if(B.has(Ue.escapedName)){const St=B.get(Ue.escapedName),Rt=La(St);if(St.flags&16777216){const rn=Hi(Ue.declarations,St.declarations),Sn=4|Ue.flags&16777216,xr=tp(Sn,Ue.escapedName),Ai=La(Ue),So=hNe(Ai),la=hNe(Rt);xr.links.type=So===la?Ai:dc([Ai,la],2),xr.links.leftSpread=Ue,xr.links.rightSpread=St,xr.declarations=rn,xr.links.nameType=Ae(Ue).nameType,B.set(Ue.escapedName,xr)}}else B.set(Ue.escapedName,VPe(Ue,R));const Te=sy(v,B,Yn,Yn,Ol(pe,Ue=>kgt(Ue,R)));return Te.objectFlags|=2228352|A,Te}function _be(o){var f;return!gt(o.declarations,IT)&&(!(o.flags&106496)||!((f=o.declarations)!=null&&f.some(v=>Fl(v.parent))))}function VPe(o,f){const v=o.flags&65536&&!(o.flags&32768);if(!v&&f===z1(o))return o;const A=4|o.flags&16777216,R=tp(A,o.escapedName,mPe(o)|(f?8:0));return R.links.type=v?Ce:La(o),R.declarations=o.declarations,R.links.nameType=Ae(o).nameType,R.links.syntheticOrigin=o,R}function kgt(o,f){return o.isReadonly!==f?bx(o.keyType,o.type,f,o.declaration):o}function dbe(o,f,v,A){const R=L1(o,v);return R.value=f,R.regularType=A||R,R}function NV(o){if(o.flags&2976){if(!o.freshType){const f=dbe(o.flags,o.value,o.symbol,o);f.freshType=f,o.freshType=f}return o.freshType}return o}function $S(o){return o.flags&2976?o.regularType:o.flags&1048576?o.regularType||(o.regularType=Th(o,$S)):o}function Bb(o){return!!(o.flags&2976)&&o.freshType===o}function vS(o){let f;return zi.get(o)||(zi.set(o,f=dbe(128,o)),f)}function HA(o){let f;return na.get(o)||(na.set(o,f=dbe(256,o)),f)}function sM(o){let f;const v=tD(o);return _a.get(v)||(_a.set(v,f=dbe(2048,o)),f)}function UPe(o,f,v){let A;const R=`${f}${typeof o=="string"?"@":"#"}${o}`,B=1024|(typeof o=="string"?128:256);return us.get(R)||(us.set(R,A=dbe(B,o,v)),A)}function mBe(o){if(o.literal.kind===106)return mn;const f=rt(o);return f.resolvedType||(f.resolvedType=$S(Bf(o.literal))),f.resolvedType}function gBe(o){const f=L1(8192,o);return f.escapedName=`__@${f.symbol.escapedName}@${$d(f.symbol)}`,f}function _K(o){if(nSe(o)){const f=HM(o)?hx(o.left):hx(o);if(f){const v=Ae(f);return v.uniqueESSymbolType||(v.uniqueESSymbolType=gBe(f))}}return hc}function Pgt(o){const f=RT(o,!1,!1),v=f&&f.parent;if(v&&(Fl(v)||v.kind===264)&&!pd(f)&&(!Lh(f)||Lx(o,f.body)))return F1(sc(v)).thisType;if(v&&el(v)&&Ds(v.parent)&&jy(v.parent)===6)return F1(hx(v.parent.left).parent).thisType;const A=o.flags&16777216?LN(o):void 0;return A&&Jm(A)&&Ds(A.parent)&&jy(A.parent)===3?F1(hx(A.parent.left).parent).thisType:Ax(f)&&Lx(o,f.body)?F1(sc(f)).thisType:(hn(o,N.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Sr)}function Xue(o){const f=rt(o);return f.resolvedType||(f.resolvedType=Pgt(o)),f.resolvedType}function Vet(o){return Xl(pbe(o.type)||o.type)}function pbe(o){switch(o.kind){case 196:return pbe(o.type);case 189:if(o.elements.length===1&&(o=o.elements[0],o.kind===191||o.kind===202&&o.dotDotDotToken))return pbe(o.type);break;case 188:return o.elementType}}function HPe(o){const f=rt(o);return f.resolvedType||(f.resolvedType=o.dotDotDotToken?Vet(o):mb(Xl(o.type),!0,!!o.questionToken))}function Xl(o){return $4(Uet(o),o)}function Uet(o){switch(o.kind){case 133:case 319:case 320:return Ge;case 159:return Io;case 154:return Nn;case 150:return Lr;case 163:return qi;case 136:return Pc;case 155:return hc;case 116:return bl;case 157:return Ce;case 106:return mn;case 146:return Tc;case 151:return o.flags&524288&&!Et?Ge:G_;case 141:return Ao;case 197:case 110:return Xue(o);case 201:return mBe(o);case 183:return zue(o);case 182:return o.assertsModifier?bl:Pc;case 233:return zue(o);case 186:return _et(o);case 188:case 189:return xet(o);case 190:return rM(o);case 192:return ket(o);case 193:return lbe(o);case 321:return OWe(o);case 323:return mb(Xl(o.type));case 202:return HPe(o);case 196:case 322:case 316:return Xl(o.type);case 191:return Vet(o);case 325:return Bc(o);case 184:case 185:case 187:case 329:case 324:case 330:return Ste(o);case 198:return Fet(o);case 199:return lBe(o);case 200:return uBe(o);case 194:return jet(o);case 195:return jPe(o);case 203:return Cgt(o);case 205:return Kue(o);case 80:case 166:case 211:const f=ss(o);return f?sh(f):Sr;default:return Sr}}function Yue(o,f,v){if(o&&o.length)for(let A=0;AA.typeParameter),Vn(v,()=>Io))}function lM(o,f){return o?Que(4,o,f):f}function hBe(o,f){return o?Que(5,o,f):f}function u5(o,f,v){return v?Que(5,Cw(o,f),v):Cw(o,f)}function Zue(o,f,v){return o?Que(5,o,Cw(f,v)):Cw(f,v)}function Rgt(o){return!o.constraint&&!J4(o)||o.constraint===Pm?o:o.restrictiveInstantiation||(o.restrictiveInstantiation=c0(o.symbol),o.restrictiveInstantiation.constraint=Pm,o.restrictiveInstantiation)}function gbe(o){const f=c0(o.symbol);return f.target=o,f}function yBe(o,f){return nM(o.kind,o.parameterName,o.parameterIndex,zu(o.type,f))}function wV(o,f,v){let A;if(o.typeParameters&&!v){A=Vn(o.typeParameters,gbe),f=lM(X0(o.typeParameters,A),f);for(const B of A)B.mapper=f}const R=vw(o.declaration,A,o.thisParameter&&vBe(o.thisParameter,f),Yue(o.parameters,f,vBe),void 0,void 0,o.minArgumentCount,o.flags&167);return R.target=o,R.mapper=f,R}function vBe(o,f){const v=Ae(o);if(v.type&&!Iw(v.type)&&(!(o.flags&65536)||v.writeType&&!Iw(v.writeType)))return o;I_(o)&1&&(o=v.target,f=lM(v.mapper,f));const A=tp(o.flags,o.escapedName,1|I_(o)&53256);return A.declarations=o.declarations,A.parent=o.parent,A.links.target=o,A.links.mapper=f,o.valueDeclaration&&(A.valueDeclaration=o.valueDeclaration),v.nameType&&(A.links.nameType=v.nameType),A}function Jet(o,f,v,A){const R=o.objectFlags&4||o.objectFlags&8388608?o.node:o.symbol.declarations[0],B=rt(R),Y=o.objectFlags&4?B.resolvedType:o.objectFlags&64?o.target:o;let pe=B.outerTypeParameters;if(!pe){let Te=SV(R,!0);if(Ax(R)){const St=RWe(R);Te=Oi(Te,St)}pe=Te||Yn;const Ue=o.objectFlags&8388612?[R]:o.symbol.declarations;pe=(Y.objectFlags&8388612||Y.symbol.flags&8192||Y.symbol.flags&2048)&&!Y.aliasTypeArguments?gi(pe,St=>gt(Ue,Rt=>xte(St,Rt))):pe,B.outerTypeParameters=pe}if(pe.length){const Te=lM(o.mapper,f),Ue=Vn(pe,xr=>tL(xr,Te)),St=v||o.aliasSymbol,Rt=v?A:cM(o.aliasTypeArguments,f),rn=B2(Ue)+ZP(St,Rt);Y.instantiations||(Y.instantiations=new Map,Y.instantiations.set(B2(pe)+ZP(Y.aliasSymbol,Y.aliasTypeArguments),Y));let Sn=Y.instantiations.get(rn);if(!Sn){const xr=X0(pe,Ue);Sn=Y.objectFlags&4?Oue(o.target,o.node,xr,St,Rt):Y.objectFlags&32?bBe(Y,xr,St,Rt):TBe(Y,xr,St,Rt),Y.instantiations.set(rn,Sn);const Ai=ji(Sn);if(Sn.flags&138117121&&!(Ai&524288)){const So=gt(Ue,Iw);ji(Sn)&524288||(Ai&52?Sn.objectFlags|=524288|(So?1048576:0):Sn.objectFlags|=So?0:524288)}}return Sn}return o}function Mgt(o){return!(o.parent.kind===183&&o.parent.typeArguments&&o===o.parent.typeName||o.parent.kind===205&&o.parent.typeArguments&&o===o.parent.qualifier)}function xte(o,f){if(o.symbol&&o.symbol.declarations&&o.symbol.declarations.length===1){const A=o.symbol.declarations[0].parent;for(let R=f;R!==A;R=R.parent)if(!R||R.kind===241||R.kind===194&&s_(R.extendsType,v))return!0;return v(f)}return!0;function v(A){switch(A.kind){case 197:return!!o.isThisType;case 80:return!o.isThisType&&BE(A)&&Mgt(A)&&Uet(A)===o;case 186:const R=A.exprName,B=PS(R);if(!E2(B)){const Y=xD(B),pe=o.symbol.declarations[0],Te=pe.kind===168?pe.parent:o.isThisType?pe:void 0;if(Y.declarations&&Te)return gt(Y.declarations,Ue=>Lx(Ue,Te))||gt(A.typeArguments,v)}return!0;case 174:case 173:return!A.type&&!!A.body||gt(A.typeParameters,v)||gt(A.parameters,v)||!!A.type&&v(A.type)}return!!s_(A,v)}}function KPe(o){const f=$v(o);if(f.flags&4194304){const v=jI(f.type);if(v.flags&262144)return v}}function bBe(o,f,v,A){const R=KPe(o);if(R){const B=zu(R,f);if(R!==B)return Wtt(zI(B),Y=>{if(Y.flags&61603843&&Y!==Ei&&!Fn(Y)){if(!o.declaration.nameType){let pe;if(kE(Y)||Y.flags&1&&HT(R,4)<0&&(pe=gT(R))&&Ex(pe,_5))return $et(Y,o,u5(R,Y,f));if(mM(Y))return Lgt(Y,o,R,f);if(Dp(Y))return uM(Y,o,u5(R,Y,f))}return TBe(o,u5(R,Y,f))}return Y},v,A)}return zu($v(o),f)===Ei?Ei:TBe(o,f,v,A)}function hbe(o,f){return f&1?!0:f&2?!1:o}function Lgt(o,f,v,A){const R=o.target.elementFlags,B=Vn(Z6(o),(pe,Te)=>{const Ue=R[Te]&8?pe:R[Te]&4?hT(pe):TD([pe],[R[Te]]);return Ue===v?f:bBe(f,u5(v,Ue,A))}),Y=hbe(o.target.readonly,zk(f));return TD(B,Vn(B,pe=>8),Y)}function $et(o,f,v){const A=qet(f,Lr,!0,v);return Fn(A)?Sr:hT(A,hbe(zB(o),zk(f)))}function uM(o,f,v){const A=o.target.elementFlags,R=Vn(Z6(o),(Te,Ue)=>qet(f,vS(""+Ue),!!(A[Ue]&2),v)),B=zk(f),Y=B&4?Vn(A,Te=>Te&1?2:Te):B&8?Vn(A,Te=>Te&2?1:Te):A,pe=hbe(o.target.readonly,B);return ni(R,Sr)?Sr:TD(R,Y,pe,o.target.labeledElementDeclarations)}function qet(o,f,v,A){const R=Zue(A,BI(o),f),B=zu(ZR(o.target||o),R),Y=zk(o);return Ke&&Y&4&&!Ty(B,49152)?iL(B,!0):Ke&&Y&8&&v?IC(B,524288):B}function TBe(o,f,v,A){const R=tA(o.objectFlags&-1572865|64,o.symbol);if(o.objectFlags&32){R.declaration=o.declaration;const B=BI(o),Y=gbe(B);R.typeParameter=Y,f=lM(Cw(B,Y),f),Y.mapper=f}return o.objectFlags&8388608&&(R.node=o.node),R.target=o,R.mapper=f,R.aliasSymbol=v||o.aliasSymbol,R.aliasTypeArguments=v?A:cM(o.aliasTypeArguments,f),R.objectFlags|=R.aliasTypeArguments?B1(R.aliasTypeArguments):0,R}function SBe(o,f,v,A){const R=o.root;if(R.outerTypeParameters){const B=Vn(R.outerTypeParameters,Te=>tL(Te,f)),Y=B2(B)+ZP(v,A);let pe=R.instantiations.get(Y);if(!pe){const Te=X0(R.outerTypeParameters,B),Ue=R.checkType,St=R.isDistributive?tL(Ue,Te):void 0;pe=St&&Ue!==St&&St.flags&1179648?Wtt(zI(St),Rt=>dBe(R,u5(Ue,Rt,Te)),v,A):dBe(R,Te,v,A),R.instantiations.set(Y,pe)}return pe}return o}function zu(o,f){return o&&f?XPe(o,f,void 0,void 0):o}function XPe(o,f,v,A){var R;if(!Iw(o))return o;if(X===100||J>=5e6)return(R=ps)==null||R.instant(ps.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:o.id,instantiationDepth:X,instantiationCount:J}),hn(ae,N.Type_instantiation_is_excessively_deep_and_possibly_infinite),Sr;$++,J++,X++;const B=Ogt(o,f,v,A);return X--,B}function Ogt(o,f,v,A){const R=o.flags;if(R&262144)return tL(o,f);if(R&524288){const B=o.objectFlags;if(B&52){if(B&4&&!o.node){const Y=o.resolvedTypeArguments,pe=cM(Y,f);return pe!==Y?$We(o.target,pe):o}return B&1024?Fgt(o,f):Jet(o,f,v,A)}return o}if(R&3145728){const B=o.flags&1048576?o.origin:void 0,Y=B&&B.flags&3145728?B.types:o.types,pe=cM(Y,f);if(pe===Y&&v===o.aliasSymbol)return o;const Te=v||o.aliasSymbol,Ue=v?A:cM(o.aliasTypeArguments,f);return R&2097152||B&&B.flags&2097152?vp(pe,Te,Ue):dc(pe,1,Te,Ue)}if(R&4194304)return CC(zu(o.type,f));if(R&134217728)return MB(o.texts,cM(o.types,f));if(R&268435456)return GI(o.symbol,zu(o.type,f));if(R&8388608){const B=v||o.aliasSymbol,Y=v?A:cM(o.aliasTypeArguments,f);return u0(zu(o.objectType,f),zu(o.indexType,f),o.accessFlags,void 0,B,Y)}if(R&16777216)return SBe(o,lM(o.mapper,f),v,A);if(R&33554432){const B=zu(o.baseType,f),Y=zu(o.constraint,f);return B.flags&8650752&&uK(Y)?Sw(B,Y):Y.flags&3||Id(AO(B),AO(Y))?B:B.flags&8650752?Sw(B,Y):vp([Y,B])}return o}function Fgt(o,f){const v=zu(o.mappedType,f);if(!(ji(v)&32))return o;const A=zu(o.constraintType,f);if(!(A.flags&4194304))return o;const R=DO(zu(o.source,f),v,A);return R||o}function YPe(o){return o.flags&402915327?o:o.permissiveInstantiation||(o.permissiveInstantiation=zu(o,Wy))}function AO(o){return o.flags&402915327?o:(o.restrictiveInstantiation||(o.restrictiveInstantiation=zu(o,xg),o.restrictiveInstantiation.restrictiveInstantiation=o.restrictiveInstantiation),o.restrictiveInstantiation)}function EBe(o,f){return bx(o.keyType,zu(o.type,f),o.isReadonly,o.declaration)}function Sx(o){switch(re.assert(o.kind!==174||iC(o)),o.kind){case 218:case 219:case 174:case 262:return xBe(o);case 210:return gt(o.properties,Sx);case 209:return gt(o.elements,Sx);case 227:return Sx(o.whenTrue)||Sx(o.whenFalse);case 226:return(o.operatorToken.kind===57||o.operatorToken.kind===61)&&(Sx(o.left)||Sx(o.right));case 303:return Sx(o.initializer);case 217:return Sx(o.expression);case 292:return gt(o.properties,Sx)||Pb(o.parent)&>(o.parent.parent.children,Sx);case 291:{const{initializer:f}=o;return!!f&&Sx(f)}case 294:{const{expression:f}=o;return!!f&&Sx(f)}}return!1}function xBe(o){return YH(o)||ED(o)}function ED(o){return o.typeParameters||kS(o)||!o.body?!1:o.body.kind!==241?Sx(o.body):!!dR(o.body,f=>!!f.expression&&Sx(f.expression))}function efe(o){return(EP(o)||iC(o))&&xBe(o)}function ybe(o){if(o.flags&524288){const f=Gh(o);if(f.constructSignatures.length||f.callSignatures.length){const v=tA(16,o.symbol);return v.members=f.members,v.properties=f.properties,v.callSignatures=Yn,v.constructSignatures=Yn,v.indexInfos=Yn,v}}else if(o.flags&2097152)return vp(Vn(o.types,ybe));return o}function Xh(o,f){return qS(o,f,Q_)}function fM(o,f){return qS(o,f,Q_)?-1:0}function QPe(o,f){return qS(o,f,db)?-1:0}function Wgt(o,f){return qS(o,f,bC)?-1:0}function nL(o,f){return qS(o,f,bC)}function ABe(o,f){return qS(o,f,wm)}function Id(o,f){return qS(o,f,db)}function nN(o,f){return o.flags&1048576?jr(o.types,v=>nN(v,f)):f.flags&1048576?gt(f.types,v=>nN(o,v)):o.flags&2097152?gt(o.types,v=>nN(v,f)):o.flags&58982400?nN(US(o)||Io,f):VI(f)?!!(o.flags&67633152):f===Jt?!!(o.flags&67633152)&&!VI(o):f===ci?!!(o.flags&524288)&&wte(o):jA(o,QR(f))||kE(f)&&!zB(f)&&nN(o,A_)}function vbe(o,f){return qS(o,f,o1)}function bbe(o,f){return vbe(o,f)||vbe(f,o)}function a1(o,f,v,A,R,B){return $A(o,f,db,v,A,R,B)}function rN(o,f,v,A,R,B){return ZPe(o,f,db,v,A,R,B,void 0)}function ZPe(o,f,v,A,R,B,Y,pe){return qS(o,f,v)?!0:!A||!Ate(R,o,f,v,B,Y,pe)?$A(o,f,v,A,B,Y,pe):!1}function Ket(o){return!!(o.flags&16777216||o.flags&2097152&>(o.types,Ket))}function Ate(o,f,v,A,R,B,Y){if(!o||Ket(v))return!1;if(!$A(f,v,A,void 0)&&Xet(o,f,v,A,R,B,Y))return!0;switch(o.kind){case 234:if(!mS(o))break;case 294:case 217:return Ate(o.expression,f,v,A,R,B,Y);case 226:switch(o.operatorToken.kind){case 64:case 28:return Ate(o.right,f,v,A,R,B,Y)}break;case 210:return ett(o,f,v,A,B,Y);case 209:return kBe(o,f,v,A,B,Y);case 292:return OB(o,f,v,A,B,Y);case 219:return CBe(o,f,v,A,B,Y)}return!1}function Xet(o,f,v,A,R,B,Y){const pe=ed(f,0),Te=ed(f,1);for(const Ue of[Te,pe])if(gt(Ue,St=>{const Rt=np(St);return!(Rt.flags&131073)&&$A(Rt,v,A,void 0)})){const St=Y||{};a1(f,v,o,R,B,St);const Rt=St.errors[St.errors.length-1];return ml(Rt,Bs(o,Ue===Te?N.Did_you_mean_to_use_new_with_this_expression:N.Did_you_mean_to_call_this_expression)),!0}return!1}function CBe(o,f,v,A,R,B){if(Ou(o.body)||gt(o.parameters,_P))return!1;const Y=$B(f);if(!Y)return!1;const pe=ed(v,0);if(!Nt(pe))return!1;const Te=o.body,Ue=np(Y),St=dc(Vn(pe,np));if(!$A(Ue,St,A,void 0)){const Rt=Te&&Ate(Te,Ue,St,A,void 0,R,B);if(Rt)return Rt;const rn=B||{};if($A(Ue,St,A,Te,void 0,R,rn),rn.errors)return v.symbol&&Nt(v.symbol.declarations)&&ml(rn.errors[rn.errors.length-1],Bs(v.symbol.declarations[0],N.The_expected_type_comes_from_the_return_type_of_this_signature)),!(ob(o)&2)&&!Xe(Ue,"then")&&$A(m1e(Ue),St,A,void 0)&&ml(rn.errors[rn.errors.length-1],Bs(o,N.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Yet(o,f,v){const A=xw(f,v);if(A)return A;if(f.flags&1048576){const R=iA(o,f);if(R)return xw(R,v)}}function Qet(o,f){jte(o,f,!1);const v=MK(o,1);return Vte(),v}function Tbe(o,f,v,A,R,B){let Y=!1;for(const pe of o){const{errorNode:Te,innerExpression:Ue,nameType:St,errorMessage:Rt}=pe;let rn=Yet(f,v,St);if(!rn||rn.flags&8388608)continue;let Sn=xw(f,St);if(!Sn)continue;const xr=LB(St,void 0);if(!$A(Sn,rn,A,void 0)){const Ai=Ue&&Ate(Ue,Sn,rn,A,void 0,R,B);if(Y=!0,!Ai){const So=B||{},la=Ue?Qet(Ue,Sn):Sn;if(qt&&Z4(la,rn)){const Zs=Bs(Te,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Co(la),Co(rn));j_.add(Zs),So.errors=[Zs]}else{const Zs=!!(xr&&(Yd(v,xr)||Pr).flags&16777216),ba=!!(xr&&(Yd(f,xr)||Pr).flags&16777216);rn=n8(rn,Zs),Sn=n8(Sn,Zs&&ba),$A(la,rn,A,Te,Rt,R,So)&&la!==Sn&&$A(Sn,rn,A,Te,Rt,R,So)}if(So.errors){const Zs=So.errors[So.errors.length-1],ba=yv(St)?vv(St):void 0,mo=ba!==void 0?Yd(v,ba):void 0;let Ya=!1;if(!mo){const Ra=AV(v,St);Ra&&Ra.declaration&&!ts(Ra.declaration).hasNoDefaultLib&&(Ya=!0,ml(Zs,Bs(Ra.declaration,N.The_expected_type_comes_from_this_index_signature)))}if(!Ya&&(mo&&Nt(mo.declarations)||v.symbol&&Nt(v.symbol.declarations))){const Ra=mo&&Nt(mo.declarations)?mo.declarations[0]:v.symbol.declarations[0];ts(Ra).hasNoDefaultLib||ml(Zs,Bs(Ra,N.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,ba&&!(St.flags&8192)?Ic(ba):Co(St),Co(v)))}}}}}return Y}function DBe(o,f,v,A,R,B){const Y=lv(v,ofe),pe=lv(v,St=>!ofe(St)),Te=pe!==Tc?$we(13,0,pe,void 0):void 0;let Ue=!1;for(let St=o.next();!St.done;St=o.next()){const{errorNode:Rt,innerExpression:rn,nameType:Sn,errorMessage:xr}=St.value;let Ai=Te;const So=Y!==Tc?Yet(f,Y,Sn):void 0;if(So&&!(So.flags&8388608)&&(Ai=Te?dc([Te,So]):So),!Ai)continue;let la=xw(f,Sn);if(!la)continue;const Zs=LB(Sn,void 0);if(!$A(la,Ai,A,void 0)){const ba=rn&&Ate(rn,la,Ai,A,void 0,R,B);if(Ue=!0,!ba){const mo=B||{},Ya=rn?Qet(rn,la):la;if(qt&&Z4(Ya,Ai)){const Ra=Bs(Rt,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Co(Ya),Co(Ai));j_.add(Ra),mo.errors=[Ra]}else{const Ra=!!(Zs&&(Yd(Y,Zs)||Pr).flags&16777216),Va=!!(Zs&&(Yd(f,Zs)||Pr).flags&16777216);Ai=n8(Ai,Ra),la=n8(la,Ra&&Va),$A(Ya,Ai,A,Rt,xr,R,mo)&&Ya!==la&&$A(la,Ai,A,Rt,xr,R,mo)}}}}return Ue}function*bS(o){if(Nt(o.properties))for(const f of o.properties)rT(f)||Pze(oW(f.name))||(yield{errorNode:f.name,innerExpression:f.initializer,nameType:vS(oW(f.name))})}function*Bgt(o,f){if(!Nt(o.children))return;let v=0;for(let A=0;A1;let So,la;if(NPe(!1)!==Ka){const ba=vte(Ge);So=lv(Sn,mo=>Id(mo,ba)),la=lv(Sn,mo=>!Id(mo,ba))}else So=lv(Sn,ofe),la=lv(Sn,ba=>!ofe(ba));if(Ai){if(So!==Tc){const ba=TD(QNe(Ue,0)),mo=Bgt(Ue,Te);Y=DBe(mo,ba,So,A,R,B)||Y}else if(!qS(u0(f,rn),Sn,A)){Y=!0;const ba=hn(Ue.openingElement.tagName,N.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Rt,Co(Sn));B&&B.skipLogging&&(B.errors||(B.errors=[])).push(ba)}}else if(la!==Tc){const ba=xr[0],mo=JA(ba,rn,Te);mo&&(Y=Tbe(function*(){yield mo}(),f,v,A,R,B)||Y)}else if(!qS(u0(f,rn),Sn,A)){Y=!0;const ba=hn(Ue.openingElement.tagName,N.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Rt,Co(Sn));B&&B.skipLogging&&(B.errors||(B.errors=[])).push(ba)}}return Y;function Te(){if(!pe){const Ue=Lv(o.parent.tagName),St=Efe(aL(o)),Rt=St===void 0?"children":Ic(St),rn=u0(v,vS(Rt)),Sn=N._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;pe={...Sn,key:"!!ALREADY FORMATTED!!",message:Yie(Sn,Ue,Rt,Co(rn))}}return pe}}function*IBe(o,f){const v=Nt(o.elements);if(v)for(let A=0;ATe:KA(o)>Te))return A&&!(v&8)&&R(N.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,KA(o),Te),0;o.typeParameters&&o.typeParameters!==f.typeParameters&&(f=fgt(f),o=Kte(o,f,void 0,Y));const St=c2(o),Rt=Qte(o),rn=Qte(f);(Rt||rn)&&zu(Rt||rn,pe);const Sn=f.declaration?f.declaration.kind:0,xr=!(v&3)&&st&&Sn!==174&&Sn!==173&&Sn!==176;let Ai=-1;const So=H4(o);if(So&&So!==bl){const ba=H4(f);if(ba){const mo=!xr&&Y(So,ba,!1)||Y(ba,So,A);if(!mo)return A&&R(N.The_this_types_of_each_signature_are_incompatible),0;Ai&=mo}}const la=Rt||rn?Math.min(St,Te):Math.max(St,Te),Zs=Rt||rn?la-1:-1;for(let ba=0;ba=KA(o)&&ba=3&&f[0].flags&32768&&f[1].flags&65536&>(f,VI)?67108864:0)}return!!(o.objectFlags&67108864)}return!1}function dK(o){return!!((o.flags&1048576?o.types[0]:o).flags&32768)}function ntt(o){return o.flags&524288&&!Fb(o)&&zm(o).length===0&&JT(o).length===1&&!!Tw(o,Nn)||o.flags&3145728&&jr(o.types,ntt)||!1}function nNe(o,f,v){const A=o.flags&8?xE(o):o,R=f.flags&8?xE(f):f;if(A===R)return!0;if(A.escapedName!==R.escapedName||!(A.flags&256)||!(R.flags&256))return!1;const B=$d(A)+","+$d(R),Y=je.get(B);if(Y!==void 0&&!(!(Y&4)&&Y&2&&v))return!!(Y&1);const pe=La(R);for(const Te of zm(La(A)))if(Te.flags&8){const Ue=Yd(pe,Te.escapedName);if(!Ue||!(Ue.flags&8))return v?(v(N.Property_0_is_missing_in_type_1,Il(Te),Co(sh(R),void 0,64)),je.set(B,6)):je.set(B,2),!1}return je.set(B,1),!0}function tfe(o,f,v,A){const R=o.flags,B=f.flags;return B&1||R&131072||o===Ei||B&2&&!(v===wm&&R&1)?!0:B&131072?!1:!!(R&402653316&&B&4||R&128&&R&1024&&B&128&&!(B&1024)&&o.value===f.value||R&296&&B&8||R&256&&R&1024&&B&256&&!(B&1024)&&o.value===f.value||R&2112&&B&64||R&528&&B&16||R&12288&&B&4096||R&32&&B&32&&o.symbol.escapedName===f.symbol.escapedName&&nNe(o.symbol,f.symbol,A)||R&1024&&B&1024&&(R&1048576&&B&1048576&&nNe(o.symbol,f.symbol,A)||R&2944&&B&2944&&o.value===f.value&&nNe(o.symbol,f.symbol,A))||R&32768&&(!Ke&&!(B&3145728)||B&49152)||R&65536&&(!Ke&&!(B&3145728)||B&65536)||R&524288&&B&67108864&&!(v===wm&&VI(o)&&!(ji(o)&8192))||(v===db||v===o1)&&(R&1||R&8&&(B&32||B&256&&B&1024)||R&256&&!(R&1024)&&(B&32||B&256&&B&1024&&o.value===f.value)||jgt(f)))}function qS(o,f,v){if(Bb(o)&&(o=o.regularType),Bb(f)&&(f=f.regularType),o===f)return!0;if(v!==Q_){if(v===o1&&!(f.flags&131072)&&tfe(f,o,v)||tfe(o,f,v))return!0}else if(!((o.flags|f.flags)&61865984)){if(o.flags!==f.flags)return!1;if(o.flags&67358815)return!0}if(o.flags&524288&&f.flags&524288){const A=v.get(oNe(o,f,0,v,!1));if(A!==void 0)return!!(A&1)}return o.flags&469499904||f.flags&469499904?$A(o,f,v,void 0):!1}function PBe(o,f){return ji(o)&2048&&Pze(f.escapedName)}function Ebe(o,f){for(;;){const v=Bb(o)?o.regularType:mM(o)?rtt(o,f):ji(o)&4?o.node?qv(o.target,ch(o)):FBe(o)||o:o.flags&3145728?rNe(o,f):o.flags&33554432?f?o.baseType:Wue(o):o.flags&25165824?tN(o,f):o;if(v===o)return v;o=v}}function rNe(o,f){const v=zI(o);if(v!==o)return v;if(o.flags&2097152&>(o.types,VI)){const A=Ol(o.types,R=>Ebe(R,f));if(A!==o.types)return vp(A)}return o}function rtt(o,f){const v=Z6(o),A=Ol(v,R=>R.flags&25165824?tN(R,f):R);return v!==A?LPe(o.target,A):o}function $A(o,f,v,A,R,B,Y){var pe;let Te,Ue,St,Rt,rn,Sn,xr=0,Ai=0,So=0,la=0,Zs=!1,ba=0,mo=0,Ya,Ra,Va=16e6-v.size>>3;re.assert(v!==Q_||!A,"no error reporting in identity checking");const Da=Is(o,f,3,!!A,R);if(Ra&&ad(),Zs){const ar=oNe(o,f,0,v,!1);v.set(ar,6),(pe=ps)==null||pe.instant(ps.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:o.id,targetId:f.id,depth:Ai,targetDepth:So});const Gr=Va<=0?N.Excessive_complexity_comparing_types_0_and_1:N.Excessive_stack_depth_comparing_types_0_and_1,uo=hn(A||ae,Gr,Co(o),Co(f));Y&&(Y.errors||(Y.errors=[])).push(uo)}else if(Te){if(B){const uo=B();uo&&(OSe(uo,Te),Te=uo)}let ar;if(R&&A&&!Da&&o.symbol){const uo=Ae(o.symbol);if(uo.originatingImport&&!Py(uo.originatingImport)&&$A(La(uo.target),f,v,void 0)){const yc=Bs(uo.originatingImport,N.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);ar=ur(ar,yc)}}const Gr=wN(ts(A),A,Te,ar);Ue&&ml(Gr,...Ue),Y&&(Y.errors||(Y.errors=[])).push(Gr),(!Y||!Y.skipLogging)&&j_.add(Gr)}return A&&Y&&Y.skipLogging&&Da===0&&re.assert(!!Y.errors,"missed opportunity to interact with error."),Da!==0;function cc(ar){Te=ar.errorInfo,Ya=ar.lastSkippedInfo,Ra=ar.incompatibleStack,ba=ar.overrideNextErrorInfo,mo=ar.skipParentCounter,Ue=ar.relatedInfo}function V_(){return{errorInfo:Te,lastSkippedInfo:Ya,incompatibleStack:Ra==null?void 0:Ra.slice(),overrideNextErrorInfo:ba,skipParentCounter:mo,relatedInfo:Ue==null?void 0:Ue.slice()}}function fd(ar,...Gr){ba++,Ya=void 0,(Ra||(Ra=[])).push([ar,...Gr])}function ad(){const ar=Ra||[];Ra=void 0;const Gr=Ya;if(Ya=void 0,ar.length===1){Xf(...ar[0]),Gr&&ua(void 0,...Gr);return}let uo="";const qa=[];for(;ar.length;){const[yc,...Yo]=ar.pop();switch(yc.code){case N.Types_of_property_0_are_incompatible.code:{uo.indexOf("new ")===0&&(uo=`(${uo})`);const ic=""+Yo[0];uo.length===0?uo=`${ic}`:H2(ic,iu(Pe))?uo=`${uo}.${ic}`:ic[0]==="["&&ic[ic.length-1]==="]"?uo=`${uo}${ic}`:uo=`${uo}[${ic}]`;break}case N.Call_signature_return_types_0_and_1_are_incompatible.code:case N.Construct_signature_return_types_0_and_1_are_incompatible.code:case N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(uo.length===0){let ic=yc;yc.code===N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ic=N.Call_signature_return_types_0_and_1_are_incompatible:yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ic=N.Construct_signature_return_types_0_and_1_are_incompatible),qa.unshift([ic,Yo[0],Yo[1]])}else{const ic=yc.code===N.Construct_signature_return_types_0_and_1_are_incompatible.code||yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Zl=yc.code===N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||yc.code===N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";uo=`${ic}${uo}(${Zl})`}break}case N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{qa.unshift([N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Yo[0],Yo[1]]);break}case N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{qa.unshift([N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Yo[0],Yo[1],Yo[2]]);break}default:return re.fail(`Unhandled Diagnostic: ${yc.code}`)}}uo?Xf(uo[uo.length-1]===")"?N.The_types_returned_by_0_are_incompatible_between_these_types:N.The_types_of_0_are_incompatible_between_these_types,uo):qa.shift();for(const[yc,...Yo]of qa){const ic=yc.elidedInCompatabilityPyramid;yc.elidedInCompatabilityPyramid=!1,Xf(yc,...Yo),yc.elidedInCompatabilityPyramid=ic}Gr&&ua(void 0,...Gr)}function Xf(ar,...Gr){re.assert(!!A),Ra&&ad(),!ar.elidedInCompatabilityPyramid&&(mo===0?Te=Es(Te,ar,...Gr):mo--)}function KS(ar,...Gr){Xf(ar,...Gr),mo++}function PC(ar){re.assert(!!Te),Ue?Ue.push(ar):Ue=[ar]}function ua(ar,Gr,uo){Ra&&ad();const[qa,yc]=DE(Gr,uo);let Yo=Gr,ic=qa;if(afe(Gr)&&!pK(uo)&&(Yo=pM(Gr),re.assert(!Id(Yo,uo),"generalized source shouldn't be assignable"),ic=MI(Yo)),(uo.flags&8388608&&!(Gr.flags&8388608)?uo.objectType.flags:uo.flags)&262144&&uo!==fe&&uo!==_n){const vu=US(uo);let D_;vu&&(Id(Yo,vu)||(D_=Id(Gr,vu)))?Xf(N._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,D_?qa:ic,yc,Co(vu)):(Te=void 0,Xf(N._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,yc,ic))}if(ar)ar===N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&qt&&itt(Gr,uo).length&&(ar=N.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(v===o1)ar=N.Type_0_is_not_comparable_to_type_1;else if(qa===yc)ar=N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(qt&&itt(Gr,uo).length)ar=N.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(Gr.flags&128&&uo.flags&1048576){const vu=$te(Gr,uo);if(vu){Xf(N.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ic,yc,Co(vu));return}}ar=N.Type_0_is_not_assignable_to_type_1}Xf(ar,ic,yc)}function Ss(ar,Gr){const uo=mO(ar.symbol)?Co(ar,ar.symbol.valueDeclaration):Co(ar),qa=mO(Gr.symbol)?Co(Gr,Gr.symbol.valueDeclaration):Co(Gr);(gd===ar&&Nn===Gr||Dg===ar&&Lr===Gr||um===ar&&Pc===Gr||WWe()===ar&&hc===Gr)&&Xf(N._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,qa,uo)}function _f(ar,Gr,uo){return Dp(ar)?ar.target.readonly&&ife(Gr)?(uo&&Xf(N.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Co(ar),Co(Gr)),!1):_5(Gr):zB(ar)&&ife(Gr)?(uo&&Xf(N.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Co(ar),Co(Gr)),!1):Dp(Gr)?kE(ar):!0}function hd(ar,Gr,uo){return Is(ar,Gr,3,uo)}function Is(ar,Gr,uo=3,qa=!1,yc,Yo=0){if(ar===Gr)return-1;if(ar.flags&524288&&Gr.flags&402784252)return v===o1&&!(Gr.flags&131072)&&tfe(Gr,ar,v)||tfe(ar,Gr,v,qa?Xf:void 0)?-1:(qa&&pm(ar,Gr,ar,Gr,yc),0);const ic=Ebe(ar,!1);let Zl=Ebe(Gr,!0);if(ic===Zl)return-1;if(v===Q_)return ic.flags!==Zl.flags?0:ic.flags&67358815?-1:(Sh(ic,Zl),Kl(ic,Zl,!1,0,uo));if(ic.flags&262144&&IB(ic)===Zl)return-1;if(ic.flags&470302716&&Zl.flags&1048576){const vu=Zl.types,D_=vu.length===2&&vu[0].flags&98304?vu[1]:vu.length===3&&vu[0].flags&98304&&vu[1].flags&98304?vu[2]:void 0;if(D_&&!(D_.flags&98304)&&(Zl=Ebe(D_,!0),ic===Zl))return-1}if(v===o1&&!(Zl.flags&131072)&&tfe(Zl,ic,v)||tfe(ic,Zl,v,qa?Xf:void 0))return-1;if(ic.flags&469499904||Zl.flags&469499904){if(!(Yo&2)&&IO(ic)&&ji(ic)&8192&&cg(ic,Zl,qa))return qa&&ua(yc,ic,Gr.aliasSymbol?Gr:Zl),0;const D_=(v!==o1||UI(ic))&&!(Yo&2)&&ic.flags&405405692&&ic!==Jt&&Zl.flags&2621440&&D0(Zl)&&(zm(ic).length>0||k0(ic)),Qd=!!(ji(ic)&2048);if(D_&&!iNe(ic,Zl,Qd)){if(qa){const sd=Co(ar.aliasSymbol?ar:ic),Ip=Co(Gr.aliasSymbol?Gr:Zl),Eh=ed(ic,0),Gm=ed(ic,1);Eh.length>0&&Is(np(Eh[0]),Zl,1,!1)||Gm.length>0&&Is(np(Gm[0]),Zl,1,!1)?Xf(N.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,sd,Ip):Xf(N.Type_0_has_no_properties_in_common_with_type_1,sd,Ip)}return 0}Sh(ic,Zl);const uu=ic.flags&1048576&&ic.types.length<4&&!(Zl.flags&1048576)||Zl.flags&1048576&&Zl.types.length<4&&!(ic.flags&469499904)?f0(ic,Zl,qa,Yo):Kl(ic,Zl,qa,Yo,uo);if(uu)return uu}return qa&&pm(ar,Gr,ic,Zl,yc),0}function pm(ar,Gr,uo,qa,yc){var Yo,ic;const Zl=!!FBe(ar),vu=!!FBe(Gr);uo=ar.aliasSymbol||Zl?ar:uo,qa=Gr.aliasSymbol||vu?Gr:qa;let D_=ba>0;if(D_&&ba--,uo.flags&524288&&qa.flags&524288){const Qd=Te;_f(uo,qa,!0),Te!==Qd&&(D_=!!Te)}if(uo.flags&524288&&qa.flags&402784252)Ss(uo,qa);else if(uo.symbol&&uo.flags&524288&&Jt===uo)Xf(N.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ji(uo)&2048&&qa.flags&2097152){const Qd=qa.types,op=h5(dE.IntrinsicAttributes,A),uu=h5(dE.IntrinsicClassAttributes,A);if(!Fn(op)&&!Fn(uu)&&(ni(Qd,op)||ni(Qd,uu)))return}else Te=SPe(Te,Gr);if(!yc&&D_){Ya=[uo,qa];return}if(ua(yc,uo,qa),uo.flags&262144&&((ic=(Yo=uo.symbol)==null?void 0:Yo.declarations)!=null&&ic[0])&&!IB(uo)){const Qd=gbe(uo);if(Qd.constraint=zu(qa,Cw(uo,Qd)),wue(Qd)){const op=Co(qa,uo.symbol.declarations[0]);PC(Bs(uo.symbol.declarations[0],N.This_type_parameter_might_need_an_extends_0_constraint,op))}}}function Sh(ar,Gr){if(ps&&ar.flags&3145728&&Gr.flags&3145728){const uo=ar,qa=Gr;if(uo.objectFlags&qa.objectFlags&32768)return;const yc=uo.types.length,Yo=qa.types.length;yc*Yo>1e6&&ps.instant(ps.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:ar.id,sourceSize:yc,targetId:Gr.id,targetSize:Yo,pos:A==null?void 0:A.pos,end:A==null?void 0:A.end})}}function vb(ar,Gr){return dc(Em(ar,(qa,yc)=>{var Yo;yc=yS(yc);const ic=yc.flags&3145728?kWe(yc,Gr):$6(yc,Gr),Zl=ic&&La(ic)||((Yo=i5(yc,Gr))==null?void 0:Yo.type)||Ce;return ur(qa,Zl)},void 0)||Yn)}function cg(ar,Gr,uo){var qa;if(!t1e(Gr)||!Et&&ji(Gr)&4096)return!1;const yc=!!(ji(ar)&2048);if((v===db||v===o1)&&(Lte(Jt,Gr)||!yc&&_M(Gr)))return!1;let Yo=Gr,ic;Gr.flags&1048576&&(Yo=VSt(ar,Gr,Is)||gPt(Gr),ic=Yo.flags&1048576?Yo.types:[Yo]);for(const Zl of zm(ar))if(u1(Zl,ar.symbol)&&!PBe(ar,Zl)){if(!Afe(Yo,Zl.escapedName,yc)){if(uo){const vu=lv(Yo,t1e);if(!A)return re.fail();if(CR(A)||m1(A)||m1(A.parent)){Zl.valueDeclaration&&tx(Zl.valueDeclaration)&&ts(A)===ts(Zl.valueDeclaration.name)&&(A=Zl.valueDeclaration.name);const D_=ru(Zl),Qd=Iv(D_,vu),op=Qd?ru(Qd):void 0;op?Xf(N.Property_0_does_not_exist_on_type_1_Did_you_mean_2,D_,Co(vu),op):Xf(N.Property_0_does_not_exist_on_type_1,D_,Co(vu))}else{const D_=((qa=ar.symbol)==null?void 0:qa.declarations)&&pp(ar.symbol.declarations);let Qd;if(Zl.valueDeclaration&&Ua(Zl.valueDeclaration,op=>op===D_)&&ts(D_)===ts(A)){const op=Zl.valueDeclaration;re.assertNode(op,DN);const uu=op.name;A=uu,xn(uu)&&(Qd=awe(uu,vu))}Qd!==void 0?KS(N.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ru(Zl),Co(vu),Qd):KS(N.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ru(Zl),Co(vu))}}return!0}if(ic&&!Is(La(Zl),vb(ic,Zl.escapedName),3,uo))return uo&&fd(N.Types_of_property_0_are_incompatible,ru(Zl)),!0}return!1}function u1(ar,Gr){return ar.valueDeclaration&&Gr.valueDeclaration&&ar.valueDeclaration.parent===Gr.valueDeclaration}function f0(ar,Gr,uo,qa){if(ar.flags&1048576){if(Gr.flags&1048576){const yc=ar.origin;if(yc&&yc.flags&2097152&&Gr.aliasSymbol&&ni(yc.types,Gr))return-1;const Yo=Gr.origin;if(Yo&&Yo.flags&1048576&&ar.aliasSymbol&&ni(Yo.types,ar))return-1}return v===o1?Ht(ar,Gr,uo&&!(ar.flags&402784252),qa):Uc(ar,Gr,uo&&!(ar.flags&402784252),qa)}if(Gr.flags&1048576)return XA(hK(ar),Gr,uo&&!(ar.flags&402784252)&&!(Gr.flags&402784252));if(Gr.flags&2097152)return mr(ar,Gr,uo,2);if(v===o1&&Gr.flags&402784252){const yc=Ol(ar.types,Yo=>Yo.flags&465829888?US(Yo)||Io:Yo);if(yc!==ar.types){if(ar=vp(yc),ar.flags&131072)return 0;if(!(ar.flags&2097152))return Is(ar,Gr,1,!1)||Is(Gr,ar,1,!1)}}return Ht(ar,Gr,!1,1)}function jh(ar,Gr){let uo=-1;const qa=ar.types;for(const yc of qa){const Yo=XA(yc,Gr,!1);if(!Yo)return 0;uo&=Yo}return uo}function XA(ar,Gr,uo){const qa=Gr.types;if(Gr.flags&1048576){if(Q4(qa,ar))return-1;if(v!==o1&&ji(Gr)&32768&&!(ar.flags&1024)&&(ar.flags&2688||(v===bC||v===wm)&&ar.flags&256)){const Yo=ar===ar.regularType?ar.freshType:ar.regularType,ic=ar.flags&128?Nn:ar.flags&256?Lr:ar.flags&2048?qi:void 0;return ic&&Q4(qa,ic)||Yo&&Q4(qa,Yo)?-1:0}const yc=Dtt(Gr,ar);if(yc){const Yo=Is(ar,yc,2,!1);if(Yo)return Yo}}for(const yc of qa){const Yo=Is(ar,yc,2,!1);if(Yo)return Yo}if(uo){const yc=iA(ar,Gr,Is);yc&&Is(ar,yc,2,!0)}return 0}function mr(ar,Gr,uo,qa){let yc=-1;const Yo=Gr.types;for(const ic of Yo){const Zl=Is(ar,ic,2,uo,void 0,qa);if(!Zl)return 0;yc&=Zl}return yc}function Ht(ar,Gr,uo,qa){const yc=ar.types;if(ar.flags&1048576&&Q4(yc,Gr))return-1;const Yo=yc.length;for(let ic=0;ic=ic.types.length&&Yo.length%ic.types.length===0){const Qd=Is(vu,ic.types[Zl%ic.types.length],3,!1,void 0,qa);if(Qd){yc&=Qd;continue}}const D_=Is(vu,Gr,1,uo,void 0,qa);if(!D_)return 0;yc&=D_}return yc}function Ql(ar=Yn,Gr=Yn,uo=Yn,qa,yc){if(ar.length!==Gr.length&&v===Q_)return 0;const Yo=ar.length<=Gr.length?ar.length:Gr.length;let ic=-1;for(let Zl=0;Zl(sd|=Gm?16:8,uu(Gm)));let Ip;return la===3?((Yo=ps)==null||Yo.instant(ps.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:ar.id,sourceIdStack:rn.map(Gm=>Gm.id),targetId:Gr.id,targetIdStack:Sn.map(Gm=>Gm.id),depth:Ai,targetDepth:So}),Ip=3):((ic=ps)==null||ic.push(ps.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:ar.id,targetId:Gr.id}),Ip=Iu(ar,Gr,uo,qa),(Zl=ps)==null||Zl.pop()),R_&&(R_=uu),yc&1&&Ai--,yc&2&&So--,la=op,Ip?(Ip===-1||Ai===0&&So===0)&&Eh(Ip===-1||Ip===3):(v.set(vu,(uo?4:0)|2|sd),Va--,Eh(!1)),Ip;function Eh(Gm){for(let G1=Qd;G1Zl!==ar)&&(Yo=Is(ic,Gr,1,!1,void 0,qa))}Yo&&!(qa&2)&&Gr.flags&2097152&&!Ew(Gr)&&ar.flags&2621440?(Yo&=Ta(ar,Gr,uo,void 0,!1,0),Yo&&IO(ar)&&ji(ar)&8192&&(Yo&=Sy(ar,Gr,!1,uo,0))):Yo&&Ete(Gr)&&!_5(Gr)&&ar.flags&2097152&&yS(ar).flags&3670016&&!gt(ar.types,ic=>ic===Gr||!!(ji(ic)&262144))&&(Yo&=Ta(ar,Gr,uo,void 0,!0,qa))}return Yo&&cc(yc),Yo}function rl(ar,Gr,uo,qa,yc){let Yo,ic,Zl=!1,vu=ar.flags;const D_=Gr.flags;if(v===Q_){if(vu&3145728){let uu=jh(ar,Gr);return uu&&(uu&=jh(Gr,ar)),uu}if(vu&4194304)return Is(ar.type,Gr.type,3,!1);if(vu&8388608&&(Yo=Is(ar.objectType,Gr.objectType,3,!1))&&(Yo&=Is(ar.indexType,Gr.indexType,3,!1))||vu&16777216&&ar.root.isDistributive===Gr.root.isDistributive&&(Yo=Is(ar.checkType,Gr.checkType,3,!1))&&(Yo&=Is(ar.extendsType,Gr.extendsType,3,!1))&&(Yo&=Is(SO(ar),SO(Gr),3,!1))&&(Yo&=Is(oM(ar),oM(Gr),3,!1))||vu&33554432&&(Yo=Is(ar.baseType,Gr.baseType,3,!1))&&(Yo&=Is(ar.constraint,Gr.constraint,3,!1)))return Yo;if(!(vu&524288))return 0}else if(vu&3145728||D_&3145728){if(Yo=f0(ar,Gr,uo,qa))return Yo;if(!(vu&465829888||vu&524288&&D_&1048576||vu&2097152&&D_&467402752))return 0}if(vu&17301504&&ar.aliasSymbol&&ar.aliasTypeArguments&&ar.aliasSymbol===Gr.aliasSymbol&&!(xbe(ar)||xbe(Gr))){const uu=bh(ar.aliasSymbol);if(uu===Yn)return 1;const sd=Ae(ar.aliasSymbol).typeParameters,Ip=HS(sd),Eh=Gk(ar.aliasTypeArguments,sd,Ip,Cs(ar.aliasSymbol.valueDeclaration)),Gm=Gk(Gr.aliasTypeArguments,sd,Ip,Cs(ar.aliasSymbol.valueDeclaration)),G1=op(Eh,Gm,uu,qa);if(G1!==void 0)return G1}if(ftt(ar)&&!ar.target.readonly&&(Yo=Is(ch(ar)[0],Gr,1))||ftt(Gr)&&(Gr.target.readonly||ife(US(ar)||ar))&&(Yo=Is(ar,ch(Gr)[0],2)))return Yo;if(D_&262144){if(ji(ar)&32&&!ar.declaration.nameType&&Is(CC(Gr),$v(ar),3)&&!(zk(ar)&4)){const uu=ZR(ar),sd=u0(Gr,BI(ar));if(Yo=Is(uu,sd,3,uo))return Yo}if(v===o1&&vu&262144){let uu=gT(ar);if(uu&&wue(ar))for(;uu&&Uk(uu,sd=>!!(sd.flags&262144));){if(Yo=Is(uu,Gr,1,!1))return Yo;uu=gT(uu)}return 0}}else if(D_&4194304){const uu=Gr.type;if(vu&4194304&&(Yo=Is(uu,ar.type,3,!1)))return Yo;if(Dp(uu)){if(Yo=Is(ar,ibe(uu),2,uo))return Yo}else{const sd=yPe(uu);if(sd){if(Is(ar,CC(sd,Gr.indexFlags|4),2,uo)===-1)return-1}else if(Fb(uu)){const Ip=bw(uu),Eh=$v(uu);let Gm;if(Ip&&rK(uu)){const G1=yS(eM(uu)),Mw=[];gPe(G1,8576,!1,Lw=>void Mw.push(zu(Ip,Zue(uu.mapper,BI(uu),Lw)))),Gm=dc([...Mw,Ip])}else Gm=Ip||Eh;if(Is(ar,Gm,2,uo)===-1)return-1}}}else if(D_&8388608){if(vu&8388608){if((Yo=Is(ar.objectType,Gr.objectType,3,uo))&&(Yo&=Is(ar.indexType,Gr.indexType,3,uo)),Yo)return Yo;uo&&(ic=Te)}if(v===db||v===o1){const uu=Gr.objectType,sd=Gr.indexType,Ip=US(uu)||uu,Eh=US(sd)||sd;if(!Ew(Ip)&&!Tx(Eh)){const Gm=4|(Ip!==uu?2:0),G1=xw(Ip,Eh,Gm);if(G1){if(uo&&ic&&cc(yc),Yo=Is(ar,G1,2,uo,void 0,qa))return Yo;uo&&ic&&Te&&(Te=Qd([ic])<=Qd([Te])?ic:Te)}}}uo&&(ic=void 0)}else if(Fb(Gr)&&v!==Q_){const uu=!!Gr.declaration.nameType,sd=ZR(Gr),Ip=zk(Gr);if(!(Ip&8)){if(!uu&&sd.flags&8388608&&sd.objectType===ar&&sd.indexType===BI(Gr))return-1;if(!Fb(ar)){const Eh=uu?bw(Gr):$v(Gr),Gm=CC(ar,2),G1=Ip&4,Mw=G1?j0e(Eh,Gm):void 0;if(G1?!(Mw.flags&131072):Is(Eh,Gm,3)){const Lw=ZR(Gr),XV=BI(Gr),t_e=Ote(Lw,-98305);if(!uu&&t_e.flags&8388608&&t_e.indexType===XV){if(Yo=Is(ar,t_e.objectType,2,uo))return Yo}else{const hne=uu?Mw||Eh:Mw?vp([Mw,XV]):XV,f8=u0(ar,hne);if(Yo=Is(f8,Lw,3,uo))return Yo}}ic=Te,cc(yc)}}}else if(D_&16777216){if(BB(Gr,Sn,So,10))return 3;const uu=Gr;if(!uu.root.inferTypeParameters&&!aM(uu.root)&&!(ar.flags&16777216&&ar.root===uu.root)){const sd=!Id(YPe(uu.checkType),YPe(uu.extendsType)),Ip=!sd&&Id(AO(uu.checkType),AO(uu.extendsType));if((Yo=sd?-1:Is(ar,SO(uu),2,!1,void 0,qa))&&(Yo&=Ip?-1:Is(ar,oM(uu),2,!1,void 0,qa),Yo))return Yo}}else if(D_&134217728){if(vu&134217728){if(v===o1)return XBe(ar,Gr)?0:-1;zu(ar,og)}if(GB(ar,Gr))return-1}else if(Gr.flags&268435456&&!(ar.flags&268435456)&&yK(ar,Gr))return-1;if(vu&8650752){if(!(vu&8388608&&D_&8388608)){const uu=IB(ar)||Io;if(Yo=Is(uu,Gr,1,!1,void 0,qa))return Yo;if(Yo=Is(vx(uu,ar),Gr,1,uo&&uu!==Io&&!(D_&vu&262144),void 0,qa))return Yo;if(J0e(ar)){const sd=IB(ar.indexType);if(sd&&(Yo=Is(u0(ar.objectType,sd),Gr,1,uo)))return Yo}}}else if(vu&4194304){if(Yo=Is(Ym,Gr,1,uo))return Yo}else if(vu&134217728&&!(D_&524288)){if(!(D_&134217728)){const uu=US(ar);if(uu&&uu!==ar&&(Yo=Is(uu,Gr,1,uo)))return Yo}}else if(vu&268435456)if(D_&268435456){if(ar.symbol!==Gr.symbol)return 0;if(Yo=Is(ar.type,Gr.type,3,uo))return Yo}else{const uu=US(ar);if(uu&&(Yo=Is(uu,Gr,1,uo)))return Yo}else if(vu&16777216){if(BB(ar,rn,Ai,10))return 3;if(D_&16777216){const sd=ar.root.inferTypeParameters;let Ip=ar.extendsType,Eh;if(sd){const Gm=ufe(sd,void 0,0,hd);kw(Gm.inferences,Gr.extendsType,Ip,1536),Ip=zu(Ip,Gm.mapper),Eh=Gm.mapper}if(Xh(Ip,Gr.extendsType)&&(Is(ar.checkType,Gr.checkType,3)||Is(Gr.checkType,ar.checkType,3))&&((Yo=Is(zu(SO(ar),Eh),SO(Gr),3,uo))&&(Yo&=Is(oM(ar),oM(Gr),3,uo)),Yo))return Yo}else{const sd=wue(ar)?vPe(ar):void 0;if(sd&&(Yo=Is(sd,Gr,1,uo)))return Yo}const uu=H0e(ar);if(uu&&(Yo=Is(uu,Gr,1,uo)))return Yo}else{if(v!==bC&&v!==wm&&CWe(Gr)&&_M(ar))return-1;if(Fb(Gr))return Fb(ar)&&(Yo=Dc(ar,Gr,uo))?Yo:0;const uu=!!(vu&402784252);if(v!==Q_)ar=yS(ar),vu=ar.flags;else if(Fb(ar))return 0;if(ji(ar)&4&&ji(Gr)&4&&ar.target===Gr.target&&!Dp(ar)&&!(xbe(ar)||xbe(Gr))){if(kbe(ar))return-1;const sd=wBe(ar.target);if(sd===Yn)return 1;const Ip=op(ch(ar),ch(Gr),sd,qa);if(Ip!==void 0)return Ip}else{if(zB(Gr)?Ex(ar,_5):kE(Gr)&&Ex(ar,sd=>Dp(sd)&&!sd.target.readonly))return v!==Q_?Is(vO(ar,Lr)||Ge,vO(Gr,Lr)||Ge,3,uo):0;if(mM(ar)&&Dp(Gr)&&!mM(Gr)){const sd=tM(ar);if(sd!==ar)return Is(sd,Gr,1,uo)}else if((v===bC||v===wm)&&_M(Gr)&&ji(Gr)&8192&&!_M(ar))return 0}if(vu&2621440&&D_&524288){const sd=uo&&Te===yc.errorInfo&&!uu;if(Yo=Ta(ar,Gr,sd,void 0,!1,qa),Yo&&(Yo&=Lc(ar,Gr,0,sd,qa),Yo&&(Yo&=Lc(ar,Gr,1,sd,qa),Yo&&(Yo&=Sy(ar,Gr,uu,sd,qa)))),Zl&&Yo)Te=ic||Te||yc.errorInfo;else if(Yo)return Yo}if(vu&2621440&&D_&1048576){const sd=Ote(Gr,36175872);if(sd.flags&1048576){const Ip=yr(ar,sd);if(Ip)return Ip}}}return 0;function Qd(uu){return uu?Em(uu,(sd,Ip)=>sd+1+Qd(Ip.next),0):0}function op(uu,sd,Ip,Eh){if(Yo=Ql(uu,sd,Ip,uo,Eh))return Yo;if(gt(Ip,G1=>!!(G1&24))){ic=void 0,cc(yc);return}const Gm=sd&&WB(sd,Ip);if(Zl=!Gm,Ip!==Yn&&!Gm){if(Zl&&!(uo&>(Ip,G1=>(G1&7)===0)))return 0;ic=Te,cc(yc)}}}function Dc(ar,Gr,uo){if(v===o1||(v===Q_?zk(ar)===zk(Gr):iK(ar)<=iK(Gr))){let yc;const Yo=$v(Gr),ic=zu($v(ar),iK(ar)<0?km:og);if(yc=Is(Yo,ic,3,uo)){const Zl=X0([BI(ar)],[BI(Gr)]);if(zu(bw(ar),Zl)===zu(bw(Gr),Zl))return yc&Is(zu(ZR(ar),Zl),ZR(Gr),3,uo)}}return 0}function yr(ar,Gr){var uo;const qa=zm(ar),yc=CNe(qa,Gr);if(!yc)return 0;let Yo=1;for(const op of yc)if(Yo*=ght(AC(op)),Yo>25)return(uo=ps)==null||uo.instant(ps.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:ar.id,targetId:Gr.id,numCombinations:Yo}),0;const ic=new Array(yc.length),Zl=new Set;for(let op=0;opop[Ip],!1,0,Ke||v===o1))continue e}Dy(D_,sd,_1),uu=!0}if(!uu)return 0}let Qd=-1;for(const op of D_)if(Qd&=Ta(ar,op,!1,Zl,!1,0),Qd&&(Qd&=Lc(ar,op,0,!1,0),Qd&&(Qd&=Lc(ar,op,1,!1,0),Qd&&!(Dp(ar)&&Dp(op))&&(Qd&=Sy(ar,op,!1,!1,0)))),!Qd)return Qd;return Qd}function pi(ar,Gr){if(!Gr||ar.length===0)return ar;let uo;for(let qa=0;qa5?Xf(N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Co(ar),Co(Gr),Vn(Yo.slice(0,4),ic=>ru(ic)).join(", "),Yo.length-4):Xf(N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Co(ar),Co(Gr),Vn(Yo,ic=>ru(ic)).join(", ")),yc&&Te&&ba++)}function Ta(ar,Gr,uo,qa,yc,Yo){if(v===Q_)return Ju(ar,Gr,qa);let ic=-1;if(Dp(Gr)){if(_5(ar)){if(!Gr.target.readonly&&(zB(ar)||Dp(ar)&&ar.target.readonly))return 0;const op=Y6(ar),uu=Y6(Gr),sd=Dp(ar)?ar.target.combinedFlags&4:4,Ip=Gr.target.combinedFlags&4,Eh=Dp(ar)?ar.target.minLength:0,Gm=Gr.target.minLength;if(!sd&&op=Lw?uu-1-Math.min(YGe,XV):f8,si=Gr.target.elementFlags[oA];if(si&8&&!(ez&8))return uo&&Xf(N.Source_provides_no_match_for_variadic_element_at_position_0_in_target,oA),0;if(ez&8&&!(si&12))return uo&&Xf(N.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,f8,oA),0;if(si&1&&!(ez&1))return uo&&Xf(N.Source_provides_no_match_for_required_element_at_position_0_in_target,oA),0;if(hne&&((ez&12||si&12)&&(hne=!1),hne&&(qa!=null&&qa.has(""+f8))))continue;const $c=n8(G1[f8],!!(ez&si&2)),Ul=Mw[oA],Pl=ez&8&&si&4?hT(Ul):n8(Ul,!!(si&2)),Hl=Is($c,Pl,3,uo,void 0,Yo);if(!Hl)return uo&&(uu>1||op>1)&&(t_e&&f8>=Lw&&YGe>=XV&&Lw!==op-XV-1?fd(N.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Lw,op-XV-1,oA):fd(N.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,f8,oA)),0;ic&=Hl}return ic}if(Gr.target.combinedFlags&12)return 0}const Zl=(v===bC||v===wm)&&!IO(ar)&&!kbe(ar)&&!Dp(ar),vu=ENe(ar,Gr,Zl,!1);if(vu)return uo&&_d(ar,Gr)&&wo(ar,Gr,vu,Zl),0;if(IO(Gr)){for(const op of pi(zm(ar),qa))if(!$6(Gr,op.escapedName)&&!(La(op).flags&32768))return uo&&Xf(N.Property_0_does_not_exist_on_type_1,ru(op),Co(Gr)),0}const D_=zm(Gr),Qd=Dp(ar)&&Dp(Gr);for(const op of pi(D_,qa)){const uu=op.escapedName;if(!(op.flags&4194304)&&(!Qd||FT(uu)||uu==="length")&&(!yc||op.flags&16777216)){const sd=Yd(ar,uu);if(sd&&sd!==op){const Ip=Bi(ar,Gr,sd,op,AC,uo,Yo,v===o1);if(!Ip)return 0;ic&=Ip}}}return ic}function Ju(ar,Gr,uo){if(!(ar.flags&524288&&Gr.flags&524288))return 0;const qa=pi(W2(ar),uo),yc=pi(W2(Gr),uo);if(qa.length!==yc.length)return 0;let Yo=-1;for(const ic of qa){const Zl=$6(Gr,ic.escapedName);if(!Zl)return 0;const vu=MBe(ic,Zl,Is);if(!vu)return 0;Yo&=vu}return Yo}function Lc(ar,Gr,uo,qa,yc){var Yo,ic;if(v===Q_)return a_(ar,Gr,uo);if(Gr===Qi||ar===Qi)return-1;const Zl=ar.symbol&&Ax(ar.symbol.valueDeclaration),vu=Gr.symbol&&Ax(Gr.symbol.valueDeclaration),D_=ed(ar,Zl&&uo===1?0:uo),Qd=ed(Gr,vu&&uo===1?0:uo);if(uo===1&&D_.length&&Qd.length){const Eh=!!(D_[0].flags&4),Gm=!!(Qd[0].flags&4);if(Eh&&!Gm)return qa&&Xf(N.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Ey(D_[0],Qd[0],qa))return 0}let op=-1;const uu=uo===1?Rl:ga,sd=ji(ar),Ip=ji(Gr);if(sd&64&&Ip&64&&ar.symbol===Gr.symbol||sd&4&&Ip&4&&ar.target===Gr.target)for(let Eh=0;EhFk(Lw,void 0,262144,uo);return Xf(N.Type_0_is_not_assignable_to_type_1,Mw(Gm),Mw(G1)),Xf(N.Types_of_construct_signatures_are_incompatible),op}}else e:for(const Eh of Qd){const Gm=V_();let G1=qa;for(const Mw of D_){const Lw=af(Mw,Eh,!0,G1,yc,uu(Mw,Eh));if(Lw){op&=Lw,cc(Gm);continue e}G1=!1}return G1&&Xf(N.Type_0_provides_no_match_for_the_signature_1,Co(ar),Fk(Eh,void 0,void 0,uo)),0}return op}function _d(ar,Gr){const uo=$0e(ar,0),qa=$0e(ar,1),yc=W2(ar);return(uo.length||qa.length)&&!yc.length?!!(ed(Gr,0).length&&uo.length||ed(Gr,1).length&&qa.length):!0}function ga(ar,Gr){return ar.parameters.length===0&&Gr.parameters.length===0?(uo,qa)=>fd(N.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Co(uo),Co(qa)):(uo,qa)=>fd(N.Call_signature_return_types_0_and_1_are_incompatible,Co(uo),Co(qa))}function Rl(ar,Gr){return ar.parameters.length===0&&Gr.parameters.length===0?(uo,qa)=>fd(N.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Co(uo),Co(qa)):(uo,qa)=>fd(N.Construct_signature_return_types_0_and_1_are_incompatible,Co(uo),Co(qa))}function af(ar,Gr,uo,qa,yc,Yo){const ic=v===bC?16:v===wm?24:0;return Sbe(uo?Mue(ar):ar,uo?Mue(Gr):Gr,ic,qa,Xf,Yo,Zl,og);function Zl(vu,D_,Qd){return Is(vu,D_,3,Qd,void 0,yc)}}function a_(ar,Gr,uo){const qa=ed(ar,uo),yc=ed(Gr,uo);if(qa.length!==yc.length)return 0;let Yo=-1;for(let ic=0;icvu.keyType===Nn);let Zl=-1;for(const vu of Yo){const D_=v!==wm&&!uo&&ic&&vu.type.flags&1?-1:Fb(ar)&&ic?Is(ZR(ar),vu.type,3,qa):Yh(ar,vu,qa,yc);if(!D_)return 0;Zl&=D_}return Zl}function Yh(ar,Gr,uo,qa){const yc=AV(ar,Gr.keyType);return yc?Gb(yc,Gr,uo,qa):!(qa&1)&&(v!==wm||ji(ar)&8192)&&Nbe(ar)?Op(ar,Gr,uo,qa):(uo&&Xf(N.Index_signature_for_type_0_is_missing_in_type_1,Co(Gr.keyType),Co(ar)),0)}function TS(ar,Gr){const uo=JT(ar),qa=JT(Gr);if(uo.length!==qa.length)return 0;for(const yc of qa){const Yo=Tw(ar,yc.keyType);if(!(Yo&&Is(Yo.type,yc.type,3)&&Yo.isReadonly===yc.isReadonly))return 0}return-1}function Ey(ar,Gr,uo){if(!ar.declaration||!Gr.declaration)return!0;const qa=fk(ar.declaration,6),yc=fk(Gr.declaration,6);return yc===2||yc===4&&qa!==2||yc!==4&&!qa?!0:(uo&&Xf(N.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,mw(qa),mw(yc)),!1)}}function pK(o){if(o.flags&16)return!1;if(o.flags&3145728)return!!Ot(o.types,pK);if(o.flags&465829888){const f=IB(o);if(f&&f!==o)return pK(f)}return UI(o)||!!(o.flags&134217728)||!!(o.flags&268435456)}function itt(o,f){return Dp(o)&&Dp(f)?Yn:zm(f).filter(v=>Z4(Xe(o,v.escapedName),La(v)))}function Z4(o,f){return!!o&&!!f&&Ty(o,32768)&&!!cfe(f)}function dM(o){return zm(o).filter(f=>cfe(La(f)))}function iA(o,f,v=QPe){return VSt(o,f,v)||_Pt(o,f)||dPt(o,f)||pPt(o,f)||mPt(o,f)}function NBe(o,f,v){const A=o.types,R=A.map(Y=>Y.flags&402784252?0:-1);for(const[Y,pe]of f){let Te=!1;for(let Ue=0;UeR[pe]),0):o;return B.flags&131072?o:B}function D0(o){if(o.flags&524288){const f=Gh(o);return f.callSignatures.length===0&&f.constructSignatures.length===0&&f.indexInfos.length===0&&f.properties.length>0&&jr(f.properties,v=>!!(v.flags&16777216))}return o.flags&2097152?jr(o.types,D0):!1}function iNe(o,f,v){for(const A of zm(o))if(Afe(f,A.escapedName,v))return!0;return!1}function wBe(o){return o===t_||o===A_||o.objectFlags&8?et:RBe(o.symbol,o.typeParameters)}function bh(o){return RBe(o,Ae(o).typeParameters)}function RBe(o,f=Yn){var v,A;const R=Ae(o);if(!R.variances){(v=ps)==null||v.push(ps.Phase.CheckTypes,"getVariancesWorker",{arity:f.length,id:By(sh(o))});const B=L_;L_||(L_=!0,ju=Js.length),R.variances=Yn;const Y=[];for(const pe of f){const Te=FB(pe);let Ue=Te&16384?Te&8192?0:1:Te&8192?2:void 0;if(Ue===void 0){let St=!1,Rt=!1;const rn=R_;R_=Ai=>Ai?Rt=!0:St=!0;const Sn=f5(o,pe,x0),xr=f5(o,pe,Nm);Ue=(Id(xr,Sn)?1:0)|(Id(Sn,xr)?2:0),Ue===3&&Id(f5(o,pe,Md),Sn)&&(Ue=4),R_=rn,(St||Rt)&&(St&&(Ue|=8),Rt&&(Ue|=16))}Y.push(Ue)}B||(L_=!1,ju=0),R.variances=Y,(A=ps)==null||A.pop({variances:Y.map(re.formatVariance)})}return R.variances}function f5(o,f,v){const A=Cw(f,v),R=sh(o);if(Fn(R))return R;const B=o.flags&524288?PB(o,cM(Ae(o).typeParameters,A)):qv(R,cM(R.typeParameters,A));return Mr.add(By(B)),B}function xbe(o){return Mr.has(By(o))}function FB(o){var f;return Em((f=o.symbol)==null?void 0:f.declarations,(v,A)=>v|Cb(A),0)&28672}function WB(o,f){for(let v=0;v!!(f.flags&262144)||nfe(f))}function ott(o,f,v,A){const R=[];let B="";const Y=Te(o,0),pe=Te(f,0);return`${B}${Y},${pe}${v}`;function Te(Ue,St=0){let Rt=""+Ue.target.id;for(const rn of ch(Ue)){if(rn.flags&262144){if(A||mK(rn)){let Sn=R.indexOf(rn);Sn<0&&(Sn=R.length,R.push(rn)),Rt+="="+Sn;continue}B="*"}else if(St<4&&nfe(rn)){Rt+="<"+Te(rn,St+1)+">";continue}Rt+="-"+rn.id}return Rt}}function oNe(o,f,v,A,R){if(A===Q_&&o.id>f.id){const Y=o;o=f,f=Y}const B=v?":"+v:"";return nfe(o)&&nfe(f)?ott(o,f,B,R):`${o.id},${f.id}${B}`}function Abe(o,f){if(I_(o)&6){for(const v of o.links.containingType.types){const A=Yd(v,o.escapedName),R=A&&Abe(A,f);if(R)return R}return}return f(o)}function e8(o){return o.parent&&o.parent.flags&32?sh(xE(o)):void 0}function aNe(o){const f=e8(o),v=f&&l0(f)[0];return v&&Xe(v,o.escapedName)}function Ugt(o,f){return Abe(o,v=>{const A=e8(v);return A?jA(A,f):!1})}function att(o,f){return!Abe(f,v=>Vy(v)&4?!Ugt(o,e8(v)):!1)}function stt(o,f,v){return Abe(f,A=>Vy(A,v)&4?!jA(o,e8(A)):!1)?void 0:o}function BB(o,f,v,A=3){if(v>=A){if((ji(o)&96)===96&&(o=rfe(o)),o.flags&2097152)return gt(o.types,pe=>BB(pe,f,v,A));const R=Dbe(o);let B=0,Y=0;for(let pe=0;pe=Y&&(B++,B>=A))return!0;Y=Te.id}}}return!1}function rfe(o){let f;for(;(ji(o)&96)===96&&(f=eM(o))&&(f.symbol||f.flags&2097152&>(f.types,v=>!!v.symbol));)o=f;return o}function Cbe(o,f){return(ji(o)&96)===96&&(o=rfe(o)),o.flags&2097152?gt(o.types,v=>Cbe(v,f)):Dbe(o)===f}function Dbe(o){if(o.flags&524288&&!xNe(o)){if(ji(o)&4&&o.node)return o.node;if(o.symbol&&!(ji(o)&16&&o.symbol.flags&32))return o.symbol;if(Dp(o))return o.target}if(o.flags&262144)return o.symbol;if(o.flags&8388608){do o=o.objectType;while(o.flags&8388608);return o}return o.flags&16777216?o.root:o}function Hgt(o,f){return MBe(o,f,fM)!==0}function MBe(o,f,v){if(o===f)return-1;const A=Vy(o)&6,R=Vy(f)&6;if(A!==R)return 0;if(A){if(E5(o)!==E5(f))return 0}else if((o.flags&16777216)!==(f.flags&16777216))return 0;return z1(o)!==z1(f)?0:v(La(o),La(f))}function Ibe(o,f,v){const A=c2(o),R=c2(f),B=KA(o),Y=KA(f),pe=$k(o),Te=$k(f);return!!(A===R&&B===Y&&pe===Te||v&&B<=Y)}function RV(o,f,v,A,R,B){if(o===f)return-1;if(!Ibe(o,f,v)||Nt(o.typeParameters)!==Nt(f.typeParameters))return 0;if(f.typeParameters){const Te=X0(o.typeParameters,f.typeParameters);for(let Ue=0;Uef|(v.flags&1048576?LBe(v.types):v.flags),0)}function t8(o){if(o.length===1)return o[0];const f=Ke?Ol(o,A=>lv(A,R=>!(R.flags&98304))):o,v=cNe(f)?dc(f):Em(f,(A,R)=>nL(A,R)?R:A);return f===o?v:dNe(v,LBe(o)&98304)}function Jgt(o){return Em(o,(f,v)=>nL(v,f)?v:f)}function kE(o){return!!(ji(o)&4)&&(o.target===t_||o.target===A_)}function zB(o){return!!(ji(o)&4)&&o.target===A_}function _5(o){return kE(o)||Dp(o)}function ife(o){return kE(o)&&!zB(o)||Dp(o)&&!o.target.readonly}function MV(o){return kE(o)?ch(o)[0]:void 0}function rL(o){return kE(o)||!(o.flags&98304)&&Id(o,P1)}function OBe(o){return ife(o)||!(o.flags&98305)&&Id(o,Qm)}function FBe(o){if(!(ji(o)&4)||!(ji(o.target)&3))return;if(ji(o)&33554432)return ji(o)&67108864?o.cachedEquivalentBaseType:void 0;o.objectFlags|=33554432;const f=o.target;if(ji(f)&1){const R=Ru(f);if(R&&R.expression.kind!==80&&R.expression.kind!==211)return}const v=l0(f);if(v.length!==1||j4(o.symbol).size)return;let A=Nt(f.typeParameters)?zu(v[0],X0(f.typeParameters,ch(o).slice(0,f.typeParameters.length))):v[0];return Nt(ch(o))>Nt(f.typeParameters)&&(A=vx(A,yl(ch(o)))),o.objectFlags|=67108864,o.cachedEquivalentBaseType=A}function WBe(o){return Ke?o===ma:o===kt}function kbe(o){const f=MV(o);return!!f&&WBe(f)}function Dte(o){let f;return Dp(o)||!!Yd(o,"0")||rL(o)&&!!(f=Xe(o,"length"))&&Ex(f,v=>!!(v.flags&256))}function ofe(o){return rL(o)||Dte(o)}function ctt(o,f){const v=Xe(o,""+f);if(v)return v;if(Ex(o,Dp))return fNe(o,f,Pe.noUncheckedIndexedAccess?Ce:void 0)}function lNe(o){return!(o.flags&240544)}function UI(o){return!!(o.flags&109472)}function ltt(o){const f=tM(o);return f.flags&2097152?gt(f.types,UI):UI(f)}function $gt(o){return o.flags&2097152&&lr(o.types,UI)||o}function afe(o){return o.flags&16?!0:o.flags&1048576?o.flags&1024?!0:jr(o.types,UI):UI(o)}function pM(o){return o.flags&1056?fPe(o):o.flags&402653312?Nn:o.flags&256?Lr:o.flags&2048?qi:o.flags&512?Pc:o.flags&1048576?qgt(o):o}function qgt(o){const f=`B${By(o)}`;return zr(f)??xi(f,Th(o,pM))}function Pbe(o){return o.flags&402653312?Nn:o.flags&288?Lr:o.flags&2048?qi:o.flags&512?Pc:o.flags&1048576?Th(o,Pbe):o}function d5(o){return o.flags&1056&&Bb(o)?fPe(o):o.flags&128&&Bb(o)?Nn:o.flags&256&&Bb(o)?Lr:o.flags&2048&&Bb(o)?qi:o.flags&512&&Bb(o)?Pc:o.flags&1048576?Th(o,d5):o}function utt(o){return o.flags&8192?hc:o.flags&1048576?Th(o,utt):o}function BBe(o,f){return Rwe(o,f)||(o=utt(d5(o))),$S(o)}function zBe(o,f,v){if(o&&UI(o)){const A=f?v?$fe(f):f:void 0;o=BBe(o,A)}return o}function uNe(o,f,v,A){if(o&&UI(o)){const R=f?b5(v,f,A):void 0;o=BBe(o,R)}return o}function Dp(o){return!!(ji(o)&4&&o.target.objectFlags&8)}function mM(o){return Dp(o)&&!!(o.target.combinedFlags&8)}function ftt(o){return mM(o)&&o.target.elementFlags.length===1}function gK(o){return Ite(o,o.target.fixedLength)}function fNe(o,f,v){return Th(o,A=>{const R=A,B=gK(R);return B?v&&f>=KWe(R.target)?dc([B,v]):B:Ce})}function Kgt(o){const f=gK(o);return f&&hT(f)}function Ite(o,f,v=0,A=!1,R=!1){const B=Y6(o)-v;if(f(v&12)===(f.target.elementFlags[A]&12))}function GBe({value:o}){return o.base10Value==="0"}function _Ne(o){return lv(o,f=>DC(f,4194304))}function _tt(o){return Th(o,dtt)}function dtt(o){return o.flags&4?ft:o.flags&8?br:o.flags&64?oo:o===Ro||o===vo||o.flags&114691||o.flags&128&&o.value===""||o.flags&256&&o.value===0||o.flags&2048&&GBe(o)?o:Tc}function dNe(o,f){const v=f&~o.flags&98304;return v===0?o:dc(v===32768?[o,Ce]:v===65536?[o,mn]:[o,Ce,mn])}function iL(o,f=!1){re.assert(Ke);const v=f?Mt:Ce;return o===v||o.flags&1048576&&o.types[0]===v?o:dc([o,v])}function ptt(o){return VT||(VT=hte("NonNullable",524288,void 0)||Pr),VT!==Pr?PB(VT,[o]):vp([o,M_])}function Dw(o){return Ke?kO(o,2097152):o}function pNe(o){return Ke?dc([o,ge]):o}function mNe(o){return Ke?Wbe(o,ge):o}function gNe(o,f,v){return v?jz(f)?iL(o):pNe(o):o}function sfe(o,f){return BU(f)?Dw(o):uy(f)?mNe(o):o}function n8(o,f){return qt&&f?Wbe(o,qe):o}function cfe(o){return o===qe||!!(o.flags&1048576)&&o.types[0]===qe}function hNe(o){return qt?Wbe(o,qe):IC(o,524288)}function jBe(o,f){return(o.flags&524)!==0&&(f.flags&28)!==0}function Nbe(o){const f=ji(o);return o.flags&2097152?jr(o.types,Nbe):!!(o.symbol&&o.symbol.flags&7040&&!(o.symbol.flags&32)&&!k0(o))||!!(f&4194304)||!!(f&1024&&Nbe(o.source))}function r8(o,f){const v=tp(o.flags,o.escapedName,I_(o)&8);v.declarations=o.declarations,v.parent=o.parent,v.links.type=f,v.links.target=o,o.valueDeclaration&&(v.valueDeclaration=o.valueDeclaration);const A=Ae(o).nameType;return A&&(v.links.nameType=A),v}function mtt(o,f){const v=zd();for(const A of W2(o)){const R=La(A),B=f(R);v.set(A.escapedName,B===R?A:r8(A,B))}return v}function hK(o){if(!(IO(o)&&ji(o)&8192))return o;const f=o.regularType;if(f)return f;const v=o,A=mtt(o,hK),R=sy(v.symbol,A,v.callSignatures,v.constructSignatures,v.indexInfos);return R.flags=v.flags,R.objectFlags|=v.objectFlags&-8193,o.regularType=R,R}function gtt(o,f,v){return{parent:o,propertyName:f,siblings:v,resolvedProperties:void 0}}function htt(o){if(!o.siblings){const f=[];for(const v of htt(o.parent))if(IO(v)){const A=$6(v,o.propertyName);A&&PO(La(A),R=>{f.push(R)})}o.siblings=f}return o.siblings}function Ygt(o){if(!o.resolvedProperties){const f=new Map;for(const v of htt(o))if(IO(v)&&!(ji(v)&2097152))for(const A of zm(v))f.set(A.escapedName,A);o.resolvedProperties=oc(f.values())}return o.resolvedProperties}function Qgt(o,f){if(!(o.flags&4))return o;const v=La(o),A=f&>t(f,o.escapedName,void 0),R=VBe(v,A);return R===v?o:r8(o,R)}function Zgt(o){const f=dr.get(o.escapedName);if(f)return f;const v=r8(o,Mt);return v.flags|=16777216,dr.set(o.escapedName,v),v}function yNe(o,f){const v=zd();for(const R of W2(o))v.set(R.escapedName,Qgt(R,f));if(f)for(const R of Ygt(f))v.has(R.escapedName)||v.set(R.escapedName,Zgt(R));const A=sy(o.symbol,v,Yn,Yn,Ol(JT(o),R=>bx(R.keyType,z2(R.type),R.isReadonly)));return A.objectFlags|=ji(o)&266240,A}function z2(o){return VBe(o,void 0)}function VBe(o,f){if(ji(o)&196608){if(f===void 0&&o.widened)return o.widened;let v;if(o.flags&98305)v=Ge;else if(IO(o))v=yNe(o,f);else if(o.flags&1048576){const A=f||gtt(void 0,void 0,o.types),R=Ol(o.types,B=>B.flags&98304?B:VBe(B,A));v=dc(R,gt(R,_M)?2:1)}else o.flags&2097152?v=vp(Ol(o.types,z2)):_5(o)&&(v=qv(o.target,Ol(ch(o),z2)));return v&&f===void 0&&(o.widened=v),v||o}return o}function oL(o){let f=!1;if(ji(o)&65536){if(o.flags&1048576)if(gt(o.types,_M))f=!0;else for(const v of o.types)oL(v)&&(f=!0);if(_5(o))for(const v of ch(o))oL(v)&&(f=!0);if(IO(o))for(const v of W2(o)){const A=La(v);ji(A)&65536&&(oL(A)||hn(v.valueDeclaration,N.Object_literal_s_property_0_implicitly_has_an_1_type,ru(v),Co(z2(A))),f=!0)}}return f}function i8(o,f,v){const A=Co(z2(f));if(Cs(o)&&!tW(ts(o),Pe))return;let R;switch(o.kind){case 226:case 172:case 171:R=Et?N.Member_0_implicitly_has_an_1_type:N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const B=o;if(xn(B.name)){const Y=uP(B.name);if((Y7(B.parent)||pg(B.parent)||e0(B.parent))&&B.parent.parameters.includes(B)&&(gg(B,B.name.escapedText,788968,void 0,B.name.escapedText,!0)||Y&&Xie(Y))){const pe="arg"+B.parent.parameters.indexOf(B),Te=hm(B.name)+(B.dotDotDotToken?"[]":"");yh(Et,o,N.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,pe,Te);return}}R=o.dotDotDotToken?Et?N.Rest_parameter_0_implicitly_has_an_any_type:N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Et?N.Parameter_0_implicitly_has_an_1_type:N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(R=N.Binding_element_0_implicitly_has_an_1_type,!Et)return;break;case 324:hn(o,N.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,A);return;case 330:Et&&aF(o.parent)&&hn(o.parent.tagName,N.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,A);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Et&&!o.name){v===3?hn(o,N.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,A):hn(o,N.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,A);return}R=Et?v===3?N._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Et&&hn(o,N.Mapped_object_type_implicitly_has_an_any_template_type);return;default:R=Et?N.Variable_0_implicitly_has_an_1_type:N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}yh(Et,o,R,hm(i_(o)),A)}function lfe(o,f,v){i(()=>{Et&&ji(f)&65536&&(!v||!YNe(o))&&(oL(f)||i8(o,f,v))})}function UBe(o,f,v){const A=c2(o),R=c2(f),B=Wfe(o),Y=Wfe(f),pe=Y?R-1:R,Te=B?pe:Math.min(A,pe),Ue=H4(o);if(Ue){const St=H4(f);St&&v(Ue,St)}for(let St=0;Stf.typeParameter),Vn(o.inferences,(f,v)=>()=>(f.isFixed||(CO(o),vNe(o.inferences),f.isFixed=!0),Nte(o,v))))}function Rbe(o){return qPe(Vn(o.inferences,f=>f.typeParameter),Vn(o.inferences,(f,v)=>()=>Nte(o,v)))}function vNe(o){for(const f of o)f.isFixed||(f.inferredType=void 0)}function JBe(o,f,v){(o.intraExpressionInferenceSites??(o.intraExpressionInferenceSites=[])).push({node:f,type:v})}function CO(o){if(o.intraExpressionInferenceSites){for(const{node:f,type:v}of o.intraExpressionInferenceSites){const A=f.kind===174?JI(f,2):NE(f,2);A&&kw(o.inferences,v,A)}o.intraExpressionInferenceSites=void 0}}function ffe(o){return{typeParameter:o,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Mbe(o){return{typeParameter:o.typeParameter,candidates:o.candidates&&o.candidates.slice(),contraCandidates:o.contraCandidates&&o.contraCandidates.slice(),inferredType:o.inferredType,priority:o.priority,topLevel:o.topLevel,isFixed:o.isFixed,impliedArity:o.impliedArity}}function PE(o){const f=gi(o.inferences,LK);return f.length?HBe(Vn(f,Mbe),o.signature,o.flags,o.compareTypes):void 0}function bNe(o){return o&&o.mapper}function Iw(o){const f=ji(o);if(f&524288)return!!(f&1048576);const v=!!(o.flags&465829888||o.flags&524288&&!kte(o)&&(f&4&&(o.node||gt(ch(o),Iw))||f&16&&o.symbol&&o.symbol.flags&14384&&o.symbol.declarations||f&12583968)||o.flags&137363456&&!(o.flags&1024)&&!kte(o)&>(o.types,Iw));return o.flags&138117121&&(o.objectFlags|=524288|(v?1048576:0)),v}function kte(o){if(o.aliasSymbol&&!o.aliasTypeArguments){const f=Rh(o.aliasSymbol,265);return!!(f&&Ua(f.parent,v=>v.kind===312?!0:v.kind===267?!1:"quit"))}return!1}function Pte(o,f,v=0){return!!(o===f||o.flags&3145728&>(o.types,A=>Pte(A,f,v))||v<3&&o.flags&16777216&&(Pte(SO(o),f,v+1)||Pte(oM(o),f,v+1)))}function tht(o,f){const v=Wb(o);return v?!!v.type&&Pte(v.type,f):Pte(np(o),f)}function nht(o){const f=zd();PO(o,A=>{if(!(A.flags&128))return;const R=ey(A.value),B=tp(4,R);B.links.type=Ge,A.symbol&&(B.declarations=A.symbol.declarations,B.valueDeclaration=A.symbol.valueDeclaration),f.set(R,B)});const v=o.flags&4?[bx(Nn,M_,!1)]:Yn;return sy(void 0,f,Yn,Yn,v)}function DO(o,f,v){const A=o.id+","+f.id+","+v.id;if(Cg.has(A))return Cg.get(A);const R=o.id+","+(f.target||f).id;if(ni(wp,R))return;wp.push(R);const B=TNe(o,f,v);return wp.pop(),Cg.set(A,B),B}function $Be(o){return!(ji(o)&262144)||IO(o)&>(zm(o),f=>$Be(La(f)))||Dp(o)&>(Z6(o),$Be)}function TNe(o,f,v){if(!(Tw(o,Nn)||zm(o).length!==0&&$Be(o)))return;if(kE(o))return hT(SNe(ch(o)[0],f,v),zB(o));if(Dp(o)){const R=Vn(Z6(o),Y=>SNe(Y,f,v)),B=zk(f)&4?Ol(o.target.elementFlags,Y=>Y&2?1:Y):o.target.elementFlags;return TD(R,B,o.target.readonly,o.target.labeledElementDeclarations)}const A=tA(1040,void 0);return A.source=o,A.mappedType=f,A.constraintType=v,A}function rht(o){const f=Ae(o);return f.type||(f.type=SNe(o.links.propertyType,o.links.mappedType,o.links.constraintType)),f.type}function SNe(o,f,v){const A=u0(v.type,BI(f)),R=ZR(f),B=ffe(A);return kw([B],o,R),vtt(B)||Io}function*qBe(o,f,v,A){const R=zm(f);for(const B of R)if(!yWe(B)&&(v||!(B.flags&16777216||I_(B)&48))){const Y=Yd(o,B.escapedName);if(!Y)yield B;else if(A){const pe=La(B);if(pe.flags&109472){const Te=La(Y);Te.flags&1||$S(Te)===$S(pe)||(yield B)}}}}function ENe(o,f,v,A){return V5(qBe(o,f,v,A))}function iht(o,f){return!(f.target.combinedFlags&8)&&f.target.minLength>o.target.minLength||!f.target.hasRestElement&&(o.target.hasRestElement||f.target.fixedLengthGI(B,R),o)===o&&yK(o,f)}return!1}function Stt(o,f){if(o===f||f.flags&5)return!0;if(f.flags&2097152)return jr(f.types,v=>v===hh||Stt(o,v));if(o.flags&128){const v=o.value;return!!(f.flags&8&&Ttt(v,!1)||f.flags&64&&XH(v,!1)||f.flags&98816&&v===f.intrinsicName||f.flags&268435456&&yK(vS(v),f)||f.flags&134217728&&GB(o,f))}if(o.flags&134217728){const v=o.texts;return v.length===2&&v[0]===""&&v[1]===""&&Id(o.types[0],f)}return Id(o,f)}function Ett(o,f){return o.flags&128?QBe([o.value],Yn,f):o.flags&134217728?sf(o.texts,f.texts)?Vn(o.types,aht):QBe(o.texts,o.types,f):void 0}function GB(o,f){const v=Ett(o,f);return!!v&&jr(v,(A,R)=>Stt(A,f.types[R]))}function aht(o){return o.flags&402653317?o:MB(["",""],[o])}function QBe(o,f,v){const A=o.length-1,R=o[0],B=o[A],Y=v.texts,pe=Y.length-1,Te=Y[0],Ue=Y[pe];if(A===0&&R.length0){let Zs=rn,ba=Sn;for(;ba=xr(Zs).indexOf(la,ba),!(ba>=0);){if(Zs++,Zs===o.length)return;ba=0}Ai(Zs,ba),Sn+=la.length}else if(Sn!ni(hd,pm)):ua,Is?gi(Ss,pm=>!ni(Is,pm)):Ss]}function Zs(ua,Ss,_f){const hd=ua.length!!Ya(Is));if(!hd||Ss&&hd!==Ss)return;Ss=hd}return Ss}function Va(ua,Ss,_f){let hd=0;if(_f&1048576){let Is;const pm=ua.flags&1048576?ua.types:[ua],Sh=new Array(pm.length);let vb=!1;for(const cg of Ss)if(Ya(cg))Is=cg,hd++;else for(let u1=0;u1Sh[f0]?void 0:u1);if(cg.length){rn(dc(cg),Is);return}}}else for(const Is of Ss)Ya(Is)?hd++:rn(ua,Is);if(_f&2097152?hd===1:hd>0)for(const Is of Ss)Ya(Is)&&Sn(ua,Is,1)}function Da(ua,Ss,_f){if(_f.flags&1048576){let hd=!1;for(const Is of _f.types)hd=Da(ua,Ss,Is)||hd;return hd}if(_f.flags&4194304){const hd=Ya(_f.type);if(hd&&!hd.isFixed&&!btt(ua)){const Is=DO(ua,Ss,_f);Is&&Sn(Is,hd.typeParameter,ji(ua)&262144?16:8)}return!0}if(_f.flags&262144){Sn(CC(ua,ua.pattern?2:0),_f,32);const hd=IB(_f);if(hd&&Da(ua,Ss,hd))return!0;const Is=Vn(zm(ua),La),pm=Vn(JT(ua),Sh=>Sh!==Fs?Sh.type:Tc);return rn(dc(Hi(Is,pm)),ZR(Ss)),!0}return!1}function cc(ua,Ss){if(ua.flags&16777216)rn(ua.checkType,Ss.checkType),rn(ua.extendsType,Ss.extendsType),rn(SO(ua),SO(Ss)),rn(oM(ua),oM(Ss));else{const _f=[SO(Ss),oM(Ss)];Ai(ua,_f,Ss.flags,R?64:0)}}function V_(ua,Ss){const _f=Ett(ua,Ss),hd=Ss.types;if(_f||jr(Ss.texts,Is=>Is.length===0))for(let Is=0;Isjh|XA.flags,0);if(!(f0&4)){const jh=pm.value;f0&296&&!Ttt(jh,!0)&&(f0&=-297),f0&2112&&!XH(jh,!0)&&(f0&=-2113);const XA=Em(u1,(mr,Ht)=>Ht.flags&f0?mr.flags&4?mr:Ht.flags&4?pm:mr.flags&134217728?mr:Ht.flags&134217728&&GB(pm,Ht)?pm:mr.flags&268435456?mr:Ht.flags&268435456&&jh===ube(Ht.symbol,jh)?pm:mr.flags&128?mr:Ht.flags&128&&Ht.value===jh?Ht:mr.flags&8?mr:Ht.flags&8?HA(+jh):mr.flags&32?mr:Ht.flags&32?HA(+jh):mr.flags&256?mr:Ht.flags&256&&Ht.value===+jh?Ht:mr.flags&64?mr:Ht.flags&64?YBe(jh):mr.flags&2048?mr:Ht.flags&2048&&tD(Ht.value)===jh?Ht:mr.flags&16?mr:Ht.flags&16?jh==="true"?Ts:jh==="false"?vo:Pc:mr.flags&512?mr:Ht.flags&512&&Ht.intrinsicName===jh?Ht:mr.flags&32768?mr:Ht.flags&32768&&Ht.intrinsicName===jh?Ht:mr.flags&65536?mr:Ht.flags&65536&&Ht.intrinsicName===jh?Ht:mr:mr,Tc);if(!(XA.flags&131072)){rn(XA,Sh);continue}}}}rn(pm,Sh)}}function fd(ua,Ss){var _f,hd;if(ji(ua)&4&&ji(Ss)&4&&(ua.target===Ss.target||kE(ua)&&kE(Ss))){Zs(ch(ua),ch(Ss),wBe(ua.target));return}if(Fb(ua)&&Fb(Ss)){rn($v(ua),$v(Ss)),rn(ZR(ua),ZR(Ss));const Is=bw(ua),pm=bw(Ss);Is&&pm&&rn(Is,pm)}if(ji(Ss)&32&&!Ss.declaration.nameType){const Is=$v(Ss);if(Da(ua,Ss,Is))return}if(!oht(ua,Ss)){if(_5(ua)){if(Dp(Ss)){const Is=Y6(ua),pm=Y6(Ss),Sh=ch(Ss),vb=Ss.target.elementFlags;if(Dp(ua)&&Xgt(ua,Ss)){for(let f0=0;f00){const pm=ed(Ss,_f),Sh=pm.length;for(let vb=0;vb1){const f=gi(o,xNe);if(f.length){const v=dc(f,2);return Hi(gi(o,A=>!xNe(A)),[v])}}return o}function eze(o){return o.priority&416?vp(o.contraCandidates):Jgt(o.contraCandidates)}function lht(o,f){const v=ZBe(o.candidates),A=Pw(o.typeParameter)||n5(o.typeParameter),R=!A&&o.topLevel&&(o.isFixed||!tht(f,o.typeParameter)),B=A?Ol(v,$S):R?Ol(v,d5):v,Y=o.priority&416?dc(B,2):t8(B);return z2(Y)}function Nte(o,f){const v=o.inferences[f];if(!v.inferredType){let A,R;if(o.signature){const Y=v.candidates?lht(v,o.signature):void 0,pe=v.contraCandidates?eze(v):void 0;if(Y||pe){const Te=Y&&(!pe||!(Y.flags&131072)&>(v.contraCandidates,Ue=>nL(Y,Ue))&&jr(o.inferences,Ue=>Ue!==v&&gT(Ue.typeParameter)!==v.typeParameter||jr(Ue.candidates,St=>nL(St,Y))));A=Te?Y:pe,R=Te?pe:Y}else if(o.flags&1)A=Tf;else{const Te=Dd(v.typeParameter);Te&&(A=zu(Te,hBe(wgt(o,f),o.nonFixingMapper)))}}else A=vtt(v);v.inferredType=A||tze(!!(o.flags&2));const B=gT(v.typeParameter);if(B){const Y=zu(B,o.nonFixingMapper);(!A||!o.compareTypes(A,vx(Y,A)))&&(v.inferredType=R&&o.compareTypes(R,vx(Y,R))?R:Y)}}return v.inferredType}function tze(o){return o?Ge:Io}function nze(o){const f=[];for(let v=0;vxp(f)||z0(f)||rS(f)))}function _fe(o,f,v,A){switch(o.kind){case 80:if(!V9(o)){const Y=xD(o);return Y!==Pr?`${A?vm(A):"-1"}|${By(f)}|${By(v)}|${$d(Y)}`:void 0}case 110:return`0|${A?vm(A):"-1"}|${By(f)}|${By(v)}`;case 235:case 217:return _fe(o.expression,f,v,A);case 166:const R=_fe(o.left,f,v,A);return R&&R+"."+o.right.escapedText;case 211:case 212:const B=p5(o);if(B!==void 0){const Y=_fe(o.expression,f,v,A);return Y&&Y+"."+B}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${vm(o)}#${By(f)}`}}function Dv(o,f){switch(f.kind){case 217:case 235:return Dv(o,f.expression);case 226:return Zv(f)&&Dv(o,f.left)||Ds(f)&&f.operatorToken.kind===28&&Dv(o,f.right)}switch(o.kind){case 236:return f.kind===236&&o.keywordToken===f.keywordToken&&o.name.escapedText===f.name.escapedText;case 80:case 81:return V9(o)?f.kind===110:f.kind===80&&xD(o)===xD(f)||(Kc(f)||sa(f))&&eA(xD(o))===sc(f);case 110:return f.kind===110;case 108:return f.kind===108;case 235:case 217:return Dv(o.expression,f);case 211:case 212:const v=p5(o),A=Kf(f)?p5(f):void 0;return v!==void 0&&A!==void 0&&A===v&&Dv(o.expression,f.expression);case 166:return Kf(f)&&o.right.escapedText===p5(f)&&Dv(o.left,f.expression);case 226:return Ds(o)&&o.operatorToken.kind===28&&Dv(o.right,f)}return!1}function p5(o){if(Ac(o))return o.name.escapedText;if(Hm(o))return ANe(o);if(sa(o)){const f=hg(o);return f?ey(f):void 0}if(Os(o))return""+o.parent.parameters.indexOf(o)}function ize(o){return o.flags&8192?o.escapedName:o.flags&384?ey(""+o.value):void 0}function ANe(o){return Ox(o.argumentExpression)?ey(o.argumentExpression.text):Tg(o.argumentExpression)?Att(o.argumentExpression):void 0}function Att(o){const f=Qg(o,111551,!0);if(!f||!(Gte(f)||f.flags&8))return;const v=f.valueDeclaration;if(v===void 0)return;const A=wn(v);if(A){const R=ize(A);if(R!==void 0)return R}if(g1(v)&&Tu(v,o)){const R=sH(v);if(R)return ize(s1(R));if(pI(v))return z8(v.name)}}function Ctt(o,f){for(;Kf(o);)if(o=o.expression,Dv(o,f))return!0;return!1}function AD(o,f){for(;uy(o);)if(o=o.expression,Dv(o,f))return!0;return!1}function jB(o,f){if(o&&o.flags&1048576){const v=ZZe(o,f);if(v&&I_(v)&2)return v.links.isDiscriminantProperty===void 0&&(v.links.isDiscriminantProperty=(v.links.checkFlags&192)===192&&!uK(La(v))),!!v.links.isDiscriminantProperty}return!1}function CNe(o,f){let v;for(const A of o)if(jB(f,A.escapedName)){if(v){v.push(A);continue}v=[A]}return v}function VB(o,f){const v=new Map;let A=0;for(const R of o)if(R.flags&61603840){const B=Xe(R,f);if(B){if(!afe(B))return;let Y=!1;PO(B,pe=>{const Te=By($S(pe)),Ue=v.get(Te);Ue?Ue!==Io&&(v.set(Te,Io),Y=!0):v.set(Te,R)}),Y||A++}}return A>=10&&A*2>=o.length?v:void 0}function dfe(o){const f=o.types;if(!(f.length<10||ji(o)&32768||dp(f,v=>!!(v.flags&59506688))<10)){if(o.keyPropertyName===void 0){const v=Ot(f,R=>R.flags&59506688?Ot(zm(R),B=>UI(La(B))?B.escapedName:void 0):void 0),A=v&&VB(f,v);o.keyPropertyName=A?v:"",o.constituentMap=A}return o.keyPropertyName.length?o.keyPropertyName:void 0}}function Lbe(o,f){var v;const A=(v=o.constituentMap)==null?void 0:v.get(By($S(f)));return A!==Io?A:void 0}function Dtt(o,f){const v=dfe(o),A=v&&Xe(f,v);return A&&Lbe(o,A)}function uht(o,f){const v=dfe(o),A=v&&lr(f.properties,B=>B.symbol&&B.kind===303&&B.symbol.escapedName===v&&yfe(B.initializer)),R=A&&jfe(A.initializer);return R&&Lbe(o,R)}function pfe(o,f){return Dv(o,f)||Ctt(o,f)}function oze(o,f){if(o.arguments){for(const v of o.arguments)if(pfe(f,v)||AD(v,f))return!0}return!!(o.expression.kind===211&&pfe(f,o.expression.expression))}function DNe(o){return(!o.id||o.id<0)&&(o.id=z2e,z2e++),o.id}function fht(o,f){if(!(o.flags&1048576))return Id(o,f);for(const v of o.types)if(Id(v,f))return!0;return!1}function Itt(o,f){if(o===f)return o;if(f.flags&131072)return f;const v=`A${By(o)},${By(f)}`;return zr(v)??xi(v,ktt(o,f))}function ktt(o,f){const v=lv(o,R=>fht(f,R)),A=f.flags&512&&Bb(f)?Th(v,NV):v;return Id(f,A)?A:o}function wte(o){const f=Gh(o);return!!(f.callSignatures.length||f.constructSignatures.length||f.members.get("bind")&&nL(o,ci))}function vK(o,f){return INe(o,f)&f}function DC(o,f){return vK(o,f)!==0}function INe(o,f){o.flags&467927040&&(o=US(o)||Io);const v=o.flags;if(v&268435460)return Ke?16317953:16776705;if(v&134217856){const A=v&128&&o.value==="";return Ke?A?12123649:7929345:A?12582401:16776705}if(v&40)return Ke?16317698:16776450;if(v&256){const A=o.value===0;return Ke?A?12123394:7929090:A?12582146:16776450}if(v&64)return Ke?16317188:16775940;if(v&2048){const A=GBe(o);return Ke?A?12122884:7928580:A?12581636:16775940}return v&16?Ke?16316168:16774920:v&528?Ke?o===vo||o===Ro?12121864:7927560:o===vo||o===Ro?12580616:16774920:v&524288?f&(Ke?83427327:83886079)?ji(o)&16&&_M(o)?Ke?83427327:83886079:wte(o)?Ke?7880640:16728e3:Ke?7888800:16736160:0:v&16384?9830144:v&32768?26607360:v&65536?42917664:v&12288?Ke?7925520:16772880:v&67108864?Ke?7888800:16736160:v&131072?0:v&1048576?Em(o.types,(A,R)=>A|INe(R,f),0):v&2097152?_ht(o,f):83886079}function _ht(o,f){const v=Ty(o,402784252);let A=0,R=134217727;for(const B of o.types)if(!(v&&B.flags&524288)){const Y=INe(B,f);A|=Y,R&=Y}return A&8256|R&134209471}function IC(o,f){return lv(o,v=>DC(v,f))}function kO(o,f){const v=kNe(IC(Ke&&o.flags&2?d_:o,f));if(Ke)switch(f){case 524288:return Th(v,A=>DC(A,65536)?vp([A,DC(A,131072)&&!Ty(v,65536)?dc([M_,mn]):M_]):A);case 1048576:return Th(v,A=>DC(A,131072)?vp([A,DC(A,65536)&&!Ty(v,32768)?dc([M_,Ce]):M_]):A);case 2097152:case 4194304:return Th(v,A=>DC(A,262144)?ptt(A):A)}return v}function kNe(o){return o===d_?Io:o}function Rte(o,f){return f?dc([Fu(o),s1(f)]):o}function Ptt(o,f){var v;const A=SD(f);if(!yv(A))return Sr;const R=vv(A);return Xe(o,R)||bK((v=i5(o,R))==null?void 0:v.type)||Sr}function PNe(o,f){return Ex(o,Dte)&&ctt(o,f)||bK(Kk(65,o,Ce,void 0))||Sr}function bK(o){return o&&(Pe.noUncheckedIndexedAccess?dc([o,qe]):o)}function NNe(o){return hT(Kk(65,o,Ce,void 0)||Sr)}function Ntt(o){return o.parent.kind===209&&aze(o.parent)||o.parent.kind===303&&aze(o.parent.parent)?Rte(Mte(o),o.right):s1(o.right)}function aze(o){return o.parent.kind===226&&o.parent.left===o||o.parent.kind===250&&o.parent.initializer===o}function dht(o,f){return PNe(Mte(o),o.elements.indexOf(f))}function wtt(o){return NNe(Mte(o.parent))}function TK(o){return Ptt(Mte(o.parent),o.name)}function wNe(o){return Rte(TK(o),o.objectAssignmentInitializer)}function Mte(o){const{parent:f}=o;switch(f.kind){case 249:return Nn;case 250:return I1e(f)||Sr;case 226:return Ntt(f);case 220:return Ce;case 209:return dht(f,o);case 230:return wtt(f);case 303:return TK(f);case 304:return wNe(f)}return Sr}function pht(o){const f=o.parent,v=HI(f.parent),A=f.kind===206?Ptt(v,o.propertyName||o.name):o.dotDotDotToken?NNe(v):PNe(v,f.elements.indexOf(o));return Rte(A,o.initializer)}function Rtt(o){return rt(o).resolvedType||s1(o)}function Mtt(o){return o.initializer?Rtt(o.initializer):o.parent.parent.kind===249?Nn:o.parent.parent.kind===250&&I1e(o.parent.parent)||Sr}function HI(o){return o.kind===260?Mtt(o):pht(o)}function Ltt(o){return o.kind===260&&o.initializer&&yx(o.initializer)||o.kind!==208&&o.parent.kind===226&&yx(o.parent.right)}function o8(o){switch(o.kind){case 217:return o8(o.expression);case 226:switch(o.operatorToken.kind){case 64:case 76:case 77:case 78:return o8(o.left);case 28:return o8(o.right)}}return o}function Ott(o){const{parent:f}=o;return f.kind===217||f.kind===226&&f.operatorToken.kind===64&&f.left===o||f.kind===226&&f.operatorToken.kind===28&&f.right===o?Ott(f):o}function Ftt(o){return o.kind===296?$S(s1(o.expression)):Tc}function Obe(o){const f=rt(o);if(!f.switchTypes){f.switchTypes=[];for(const v of o.caseBlock.clauses)f.switchTypes.push(Ftt(v))}return f.switchTypes}function Fbe(o){if(gt(o.caseBlock.clauses,v=>v.kind===296&&!Cm(v.expression)))return;const f=[];for(const v of o.caseBlock.clauses){const A=v.kind===296?v.expression.text:void 0;f.push(A&&!ni(f,A)?A:void 0)}return f}function mht(o,f){return o.flags&1048576?!Ot(o.types,v=>!ni(f,v)):ni(f,o)}function Lte(o,f){return!!(o===f||o.flags&131072||f.flags&1048576&&RNe(o,f))}function RNe(o,f){if(o.flags&1048576){for(const v of o.types)if(!Q4(f.types,v))return!1;return!0}return o.flags&1056&&fPe(o)===f?!0:Q4(f.types,o)}function PO(o,f){return o.flags&1048576?Ot(o.types,f):f(o)}function Uk(o,f){return o.flags&1048576?gt(o.types,f):f(o)}function Ex(o,f){return o.flags&1048576?jr(o.types,f):f(o)}function sze(o,f){return o.flags&3145728?jr(o.types,f):f(o)}function lv(o,f){if(o.flags&1048576){const v=o.types,A=gi(v,f);if(A===v)return o;const R=o.origin;let B;if(R&&R.flags&1048576){const Y=R.types,pe=gi(Y,Te=>!!(Te.flags&1048576)||f(Te));if(Y.length-pe.length===v.length-A.length){if(pe.length===1)return pe[0];B=XWe(1048576,pe)}}return YWe(A,o.objectFlags&16809984,void 0,void 0,B)}return o.flags&131072||f(o)?o:Tc}function Wbe(o,f){return lv(o,v=>v!==f)}function ght(o){return o.flags&1048576?o.types.length:1}function Th(o,f,v){if(o.flags&131072)return o;if(!(o.flags&1048576))return f(o);const A=o.origin,R=A&&A.flags&1048576?A.types:o.types;let B,Y=!1;for(const pe of R){const Te=pe.flags&1048576?Th(pe,f,v):f(pe);Y||(Y=pe!==Te),Te&&(B?B.push(Te):B=[Te])}return Y?B&&dc(B,v?0:1):o}function Wtt(o,f,v,A){return o.flags&1048576&&v?dc(Vn(o.types,f),1,v,A):Th(o,f)}function Ote(o,f){return lv(o,v=>(v.flags&f)!==0)}function cze(o,f){return Ty(o,134217804)&&Ty(f,402655616)?Th(o,v=>v.flags&4?Ote(f,402653316):PV(v)&&!Ty(f,402653188)?Ote(f,128):v.flags&8?Ote(f,264):v.flags&64?Ote(f,2112):v):o}function SK(o){return o.flags===0}function m5(o){return o.flags===0?o.type:o}function EK(o,f){return f?{flags:0,type:o.flags&131072?Tf:o}:o}function hht(o){const f=tA(256);return f.elementType=o,f}function MNe(o){return Hn[o.id]||(Hn[o.id]=hht(o))}function LNe(o,f){const v=hK(pM(jfe(f)));return Lte(v,o.elementType)?o:MNe(dc([o.elementType,v]))}function Btt(o){return o.flags&131072?Bh:hT(o.flags&1048576?dc(o.types,2):o)}function lze(o){return o.finalArrayType||(o.finalArrayType=Btt(o.elementType))}function Fte(o){return ji(o)&256?lze(o):o}function yht(o){return ji(o)&256?o.elementType:Tc}function ONe(o){let f=!1;for(const v of o)if(!(v.flags&131072)){if(!(ji(v)&256))return!1;f=!0}return f}function ztt(o){const f=Ott(o),v=f.parent,A=Ac(v)&&(v.name.escapedText==="length"||v.parent.kind===213&&xn(v.name)&&fSe(v.name)),R=v.kind===212&&v.expression===f&&v.parent.kind===226&&v.parent.operatorToken.kind===64&&v.parent.left===v&&!VE(v.parent)&&zb(s1(v.argumentExpression),296);return A||R}function vht(o){return(Kc(o)||nu(o)||em(o)||Os(o))&&!!(Zy(o)||Cs(o)&&J2(o)&&o.initializer&&EP(o.initializer)&&kS(o.initializer))}function FNe(o,f){if(o=Av(o),o.flags&8752)return La(o);if(o.flags&7){if(I_(o)&262144){const A=o.links.syntheticOrigin;if(A&&FNe(A))return La(o)}const v=o.valueDeclaration;if(v){if(vht(v))return La(o);if(Kc(v)&&v.parent.parent.kind===250){const A=v.parent.parent,R=LV(A.expression,void 0);if(R){const B=A.awaitModifier?15:13;return Kk(B,R,Ce,void 0)}}f&&ml(f,Bs(v,N._0_needs_an_explicit_type_annotation,ru(o)))}}}function LV(o,f){if(!(o.flags&67108864))switch(o.kind){case 80:const v=eA(xD(o));return FNe(v,f);case 110:return Hbe(o);case 108:return WV(o);case 211:{const A=LV(o.expression,f);if(A){const R=o.name;let B;if(Lu(R)){if(!A.symbol)return;B=Yd(A,WN(A.symbol,R.escapedText))}else B=Yd(A,R.escapedText);return B&&FNe(B,f)}return}case 217:return LV(o.expression,f)}}function OV(o){const f=rt(o);let v=f.effectsSignature;if(v===void 0){let A;if(Ds(o)){const Y=CK(o.right);A=mGe(Y)}else o.parent.kind===244?A=LV(o.expression,void 0):o.expression.kind!==108&&(uy(o)?A=lh(sfe(Bf(o.expression),o.expression),o.expression):A=CK(o.expression));const R=ed(A&&yS(A)||Io,0),B=R.length===1&&!R[0].typeParameters?R[0]:gt(R,uze)?y5(o):void 0;v=f.effectsSignature=B&&uze(B)?B:$o}return v===$o?void 0:v}function uze(o){return!!(Wb(o)||o.declaration&&(sK(o.declaration)||Io).flags&131072)}function bht(o,f){if(o.kind===1||o.kind===3)return f.arguments[o.parameterIndex];const v=rg(f.expression);return Kf(v)?rg(v.expression):void 0}function Gtt(o){const f=Ua(o,_9),v=ts(o),A=M0(v,f.statements.pos);j_.add(Pp(v,A.start,A.length,N.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Wte(o){const f=WNe(o,!1);return jo=o,Oo=f,f}function Bte(o){const f=rg(o,!0);return f.kind===97||f.kind===226&&(f.operatorToken.kind===56&&(Bte(f.left)||Bte(f.right))||f.operatorToken.kind===57&&Bte(f.left)&&Bte(f.right))}function WNe(o,f){for(;;){if(o===jo)return Oo;const v=o.flags;if(v&4096){if(!f){const A=DNe(o),R=pD[A];return R!==void 0?R:pD[A]=WNe(o,!0)}f=!1}if(v&368)o=o.antecedent;else if(v&512){const A=OV(o.node);if(A){const R=Wb(A);if(R&&R.kind===3&&!R.type){const B=o.node.arguments[R.parameterIndex];if(B&&Bte(B))return!1}if(np(A).flags&131072)return!1}o=o.antecedent}else{if(v&4)return gt(o.antecedents,A=>WNe(A,!1));if(v&8){const A=o.antecedents;if(A===void 0||A.length===0)return!1;o=A[0]}else if(v&128){if(o.clauseStart===o.clauseEnd&&qnt(o.switchStatement))return!1;o=o.antecedent}else if(v&1024){jo=void 0;const A=o.target,R=A.antecedents;A.antecedents=o.antecedents;const B=WNe(o.antecedent,!1);return A.antecedents=R,B}else return!(v&1)}}}function BNe(o,f){for(;;){const v=o.flags;if(v&4096){if(!f){const A=DNe(o),R=yC[A];return R!==void 0?R:yC[A]=BNe(o,!0)}f=!1}if(v&496)o=o.antecedent;else if(v&512){if(o.node.expression.kind===108)return!0;o=o.antecedent}else{if(v&4)return jr(o.antecedents,A=>BNe(A,!1));if(v&8)o=o.antecedents[0];else if(v&1024){const A=o.target,R=A.antecedents;A.antecedents=o.antecedents;const B=BNe(o.antecedent,!1);return A.antecedents=R,B}else return!!(v&1)}}}function jtt(o){switch(o.kind){case 110:return!0;case 80:if(!V9(o)){const f=xD(o);return Gte(f)||_oe(f)&&!Bbe(f)}break;case 211:case 212:return jtt(o.expression)&&z1(rt(o).resolvedSymbol||Pr)}return!1}function a8(o,f,v=f,A,R=(B=>(B=to(o,J8))==null?void 0:B.flowNode)()){let B,Y=!1,pe=0;if(Li)return Sr;if(!R)return f;yo++;const Te=ri,Ue=m5(rn(R));ri=Te;const St=ji(Ue)&256&&ztt(o)?Bh:Fte(Ue);if(St===Bl||o.parent&&o.parent.kind===235&&!(St.flags&131072)&&IC(St,2097152).flags&131072)return f;return St===ze?Io:St;function Rt(){return Y?B:(Y=!0,B=_fe(o,f,v,A))}function rn(yr){var pi;if(pe===2e3)return(pi=ps)==null||pi.instant(ps.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:yr.id}),Li=!0,Gtt(o),Sr;pe++;let Eo;for(;;){const Bi=yr.flags;if(Bi&4096){for(let Ta=Te;Ta=0&&Eo.parameterIndex!(Ta.flags&163840)):pi.kind===221&&AD(pi.expression,o)&&(Bi=Sh(Bi,yr.switchStatement,yr.clauseStart,yr.clauseEnd,Ta=>!(Ta.flags&131072||Ta.flags&128&&Ta.value==="undefined"))));const wo=Da(pi,Bi);wo&&(Bi=fd(Bi,wo,yr.switchStatement,yr.clauseStart,yr.clauseEnd))}return EK(Bi,SK(Eo))}function mo(yr){const pi=[];let Eo=!1,Bi=!1,wo;for(const Ta of yr.antecedents){if(!wo&&Ta.flags&128&&Ta.clauseStart===Ta.clauseEnd){wo=Ta;continue}const Ju=rn(Ta),Lc=m5(Ju);if(Lc===f&&f===v)return Lc;Dy(pi,Lc),Lte(Lc,v)||(Eo=!0),SK(Ju)&&(Bi=!0)}if(wo){const Ta=rn(wo),Ju=m5(Ta);if(!(Ju.flags&131072)&&!ni(pi,Ju)&&!qnt(wo.switchStatement)){if(Ju===f&&f===v)return Ju;pi.push(Ju),Lte(Ju,v)||(Eo=!0),SK(Ta)&&(Bi=!0)}}return EK(Ra(pi,Eo?2:1),Bi)}function Ya(yr){const pi=DNe(yr),Eo=Kx[pi]||(Kx[pi]=new Map),Bi=Rt();if(!Bi)return f;const wo=Eo.get(Bi);if(wo)return wo;for(let ga=fn;ga<$n;ga++)if(hC[ga]===yr&&WP[ga]===Bi&&BP[ga].length)return EK(Ra(BP[ga],1),!0);const Ta=[];let Ju=!1,Lc;for(const ga of yr.antecedents){let Rl;if(!Lc)Rl=Lc=rn(ga);else{hC[$n]=yr,WP[$n]=Bi,BP[$n]=Ta,$n++;const a_=ca;ca=void 0,Rl=rn(ga),ca=a_,$n--;const Op=Eo.get(Bi);if(Op)return Op}const af=m5(Rl);if(Dy(Ta,af),Lte(af,v)||(Ju=!0),af===f)break}const _d=Ra(Ta,Ju?2:1);return SK(Lc)?EK(_d,!0):(Eo.set(Bi,_d),_d)}function Ra(yr,pi){if(ONe(yr))return MNe(dc(Vn(yr,yht)));const Eo=kNe(dc(Ol(yr,Fte),pi));return Eo!==f&&Eo.flags&f.flags&1048576&&sf(Eo.types,f.types)?f:Eo}function Va(yr){if($_(o)||EP(o)||iC(o)){if(xn(yr)){const Eo=xD(yr).valueDeclaration;if(Eo&&(sa(Eo)||Os(Eo))&&o===Eo.parent&&!Eo.initializer&&!Eo.dotDotDotToken)return Eo}}else if(Kf(yr)){if(Dv(o,yr.expression))return yr}else if(xn(yr)){const pi=xD(yr);if(Gte(pi)){const Eo=pi.valueDeclaration;if(Kc(Eo)&&!Eo.type&&Eo.initializer&&Kf(Eo.initializer)&&Dv(o,Eo.initializer.expression))return Eo.initializer;if(sa(Eo)&&!Eo.initializer){const Bi=Eo.parent.parent;if(Kc(Bi)&&!Bi.type&&Bi.initializer&&(xn(Bi.initializer)||Kf(Bi.initializer))&&Dv(o,Bi.initializer))return Eo}}}}function Da(yr,pi){if(f.flags&1048576||pi.flags&1048576){const Eo=Va(yr);if(Eo){const Bi=p5(Eo);if(Bi){const wo=f.flags&1048576&&Lte(pi,f)?f:pi;if(jB(wo,Bi))return Eo}}}}function cc(yr,pi,Eo){const Bi=p5(pi);if(Bi===void 0)return yr;const wo=uy(pi),Ta=Ke&&(wo||nEe(pi))&&Ty(yr,98304);let Ju=Xe(Ta?IC(yr,2097152):yr,Bi);if(!Ju)return yr;Ju=Ta&&wo?iL(Ju):Ju;const Lc=Eo(Ju);return lv(yr,_d=>{const ga=$t(_d,Bi)||Io;return!(ga.flags&131072)&&!(Lc.flags&131072)&&bbe(Lc,ga)})}function V_(yr,pi,Eo,Bi,wo){if((Eo===37||Eo===38)&&yr.flags&1048576){const Ta=dfe(yr);if(Ta&&Ta===p5(pi)){const Ju=Lbe(yr,s1(Bi));if(Ju)return Eo===(wo?37:38)?Ju:UI(Xe(Ju,Ta)||Io)?Wbe(yr,Ju):yr}}return cc(yr,pi,Ta=>hd(Ta,Eo,Bi,wo))}function fd(yr,pi,Eo,Bi,wo){if(BiLbe(yr,Lc)||Io));if(Ju!==Io)return Ju}return cc(yr,pi,Ta=>vb(Ta,Eo,Bi,wo))}function ad(yr,pi,Eo){if(Dv(o,pi))return kO(yr,Eo?4194304:8388608);Ke&&Eo&&AD(pi,o)&&(yr=kO(yr,2097152));const Bi=Da(pi,yr);return Bi?cc(yr,Bi,wo=>IC(wo,Eo?4194304:8388608)):yr}function Xf(yr,pi,Eo){const Bi=Yd(yr,pi);return Bi?!!(Bi.flags&16777216||I_(Bi)&48)||Eo:!!i5(yr,pi)||!Eo}function KS(yr,pi,Eo){const Bi=vv(pi);if(Uk(yr,Ta=>Xf(Ta,Bi,!0)))return lv(yr,Ta=>Xf(Ta,Bi,Eo));if(Eo){const Ta=X4();if(Ta)return vp([yr,PB(Ta,[pi,Io])])}return yr}function PC(yr,pi,Eo,Bi,wo){return wo=wo!==(Eo.kind===112)!=(Bi!==38&&Bi!==36),rl(yr,pi,wo)}function ua(yr,pi,Eo){switch(pi.operatorToken.kind){case 64:case 76:case 77:case 78:return ad(rl(yr,pi.right,Eo),pi.left,Eo);case 35:case 36:case 37:case 38:const Bi=pi.operatorToken.kind,wo=o8(pi.left),Ta=o8(pi.right);if(wo.kind===221&&Cm(Ta))return Is(yr,wo,Bi,Ta,Eo);if(Ta.kind===221&&Cm(wo))return Is(yr,Ta,Bi,wo,Eo);if(Dv(o,wo))return hd(yr,Bi,Ta,Eo);if(Dv(o,Ta))return hd(yr,Bi,wo,Eo);Ke&&(AD(wo,o)?yr=_f(yr,Bi,Ta,Eo):AD(Ta,o)&&(yr=_f(yr,Bi,wo,Eo)));const Ju=Da(wo,yr);if(Ju)return V_(yr,Ju,Bi,Ta,Eo);const Lc=Da(Ta,yr);if(Lc)return V_(yr,Lc,Bi,wo,Eo);if(XA(wo))return mr(yr,Bi,Ta,Eo);if(XA(Ta))return mr(yr,Bi,wo,Eo);if(fy(Ta))return PC(yr,wo,Ta,Bi,Eo);if(fy(wo))return PC(yr,Ta,wo,Bi,Eo);break;case 104:return Ht(yr,pi,Eo);case 103:if(Lu(pi.left))return Ss(yr,pi,Eo);const _d=o8(pi.right);if(cfe(yr)&&Kf(o)&&Dv(o.expression,_d)){const ga=s1(pi.left);if(yv(ga)&&p5(o)===vv(ga))return IC(yr,Eo?524288:65536)}if(Dv(o,_d)){const ga=s1(pi.left);if(yv(ga))return KS(yr,ga,Eo)}break;case 28:return rl(yr,pi.right,Eo);case 56:return Eo?rl(rl(yr,pi.left,!0),pi.right,!0):dc([rl(yr,pi.left,!1),rl(yr,pi.right,!1)]);case 57:return Eo?dc([rl(yr,pi.left,!0),rl(yr,pi.right,!0)]):rl(rl(yr,pi.left,!1),pi.right,!1)}return yr}function Ss(yr,pi,Eo){const Bi=o8(pi.right);if(!Dv(o,Bi))return yr;re.assertNode(pi.left,Lu);const wo=iwe(pi.left);if(wo===void 0)return yr;const Ta=wo.parent,Ju=ev(re.checkDefined(wo.valueDeclaration,"should always have a declaration"))?La(Ta):sh(Ta);return Uc(yr,Ju,Eo,!0)}function _f(yr,pi,Eo,Bi){const wo=pi===35||pi===37,Ta=pi===35||pi===36?98304:32768,Ju=s1(Eo);return wo!==Bi&&Ex(Ju,_d=>!!(_d.flags&Ta))||wo===Bi&&Ex(Ju,_d=>!(_d.flags&(3|Ta)))?kO(yr,2097152):yr}function hd(yr,pi,Eo,Bi){if(yr.flags&1)return yr;(pi===36||pi===38)&&(Bi=!Bi);const wo=s1(Eo),Ta=pi===35||pi===36;if(wo.flags&98304){if(!Ke)return yr;const Ju=Ta?Bi?262144:2097152:wo.flags&65536?Bi?131072:1048576:Bi?65536:524288;return kO(yr,Ju)}if(Bi){if(!Ta&&(yr.flags&2||Uk(yr,VI))){if(wo.flags&469893116||VI(wo))return wo;if(wo.flags&524288)return G_}const Ju=lv(yr,Lc=>bbe(Lc,wo)||Ta&&jBe(Lc,wo));return cze(Ju,wo)}return UI(wo)?lv(yr,Ju=>!(ltt(Ju)&&bbe(Ju,wo))):yr}function Is(yr,pi,Eo,Bi,wo){(Eo===36||Eo===38)&&(wo=!wo);const Ta=o8(pi.expression);if(!Dv(o,Ta)){Ke&&AD(Ta,o)&&wo===(Bi.text!=="undefined")&&(yr=kO(yr,2097152));const Ju=Da(Ta,yr);return Ju?cc(yr,Ju,Lc=>pm(Lc,Bi,wo)):yr}return pm(yr,Bi,wo)}function pm(yr,pi,Eo){return Eo?cg(yr,pi.text):kO(yr,Dae.get(pi.text)||32768)}function Sh(yr,pi,Eo,Bi,wo){return Eo!==Bi&&jr(Obe(pi).slice(Eo,Bi),wo)?IC(yr,2097152):yr}function vb(yr,pi,Eo,Bi){const wo=Obe(pi);if(!wo.length)return yr;const Ta=wo.slice(Eo,Bi),Ju=Eo===Bi||ni(Ta,Tc);if(yr.flags&2&&!Ju){let Rl;for(let af=0;afbbe(Lc,Rl)),Lc);if(!Ju)return _d;const ga=lv(yr,Rl=>!(ltt(Rl)&&ni(wo,$S($gt(Rl)))));return _d.flags&131072?ga:dc([_d,ga])}function cg(yr,pi){switch(pi){case"string":return u1(yr,Nn,1);case"number":return u1(yr,Lr,2);case"bigint":return u1(yr,qi,4);case"boolean":return u1(yr,Pc,8);case"symbol":return u1(yr,hc,16);case"object":return yr.flags&1?yr:dc([u1(yr,G_,32),u1(yr,mn,131072)]);case"function":return yr.flags&1?yr:u1(yr,ci,64);case"undefined":return u1(yr,Ce,65536)}return u1(yr,G_,128)}function u1(yr,pi,Eo){return Th(yr,Bi=>qS(Bi,pi,wm)?DC(Bi,Eo)?Bi:Tc:nL(pi,Bi)?pi:DC(Bi,Eo)?vp([Bi,pi]):Tc)}function f0(yr,pi,Eo,Bi){const wo=Fbe(pi);if(!wo)return yr;const Ta=Ho(pi.caseBlock.clauses,_d=>_d.kind===297);if(Eo===Bi||Ta>=Eo&&TavK(ga,_d)===_d)}const Lc=wo.slice(Eo,Bi);return dc(Vn(Lc,_d=>_d?cg(yr,_d):Tc))}function jh(yr,pi,Eo,Bi){const wo=Ho(pi.caseBlock.clauses,Lc=>Lc.kind===297),Ta=Eo===Bi||wo>=Eo&&woLc.kind===296?rl(yr,Lc.expression,!0):Tc))}function XA(yr){return(Ac(yr)&&Kr(yr.name)==="constructor"||Hm(yr)&&Cm(yr.argumentExpression)&&yr.argumentExpression.text==="constructor")&&Dv(o,yr.expression)}function mr(yr,pi,Eo,Bi){if(Bi?pi!==35&&pi!==37:pi!==36&&pi!==38)return yr;const wo=s1(Eo);if(!Qk(wo)&&!Du(wo))return yr;const Ta=Yd(wo,"prototype");if(!Ta)return yr;const Ju=La(Ta),Lc=bn(Ju)?void 0:Ju;if(!Lc||Lc===Jt||Lc===ci)return yr;if(bn(yr))return Lc;return lv(yr,ga=>_d(ga,Lc));function _d(ga,Rl){return ga.flags&524288&&ji(ga)&1||Rl.flags&524288&&ji(Rl)&1?ga.symbol===Rl.symbol:nL(ga,Rl)}}function Ht(yr,pi,Eo){const Bi=o8(pi.left);if(!Dv(o,Bi))return Eo&&Ke&&AD(Bi,o)?kO(yr,2097152):yr;const wo=pi.right,Ta=s1(wo);if(!nN(Ta,Jt))return yr;const Ju=OV(pi),Lc=Ju&&Wb(Ju);if(Lc&&Lc.kind===1&&Lc.parameterIndex===0)return Uc(yr,Lc.type,Eo,!0);if(!nN(Ta,ci))return yr;const _d=Th(Ta,Ws);return bn(yr)&&(_d===Jt||_d===ci)||!Eo&&!(_d.flags&524288&&!VI(_d))?yr:Uc(yr,_d,Eo,!0)}function Ws(yr){const pi=Xe(yr,"prototype");if(pi&&!bn(pi))return pi;const Eo=ed(yr,1);return Eo.length?dc(Vn(Eo,Bi=>np(Mue(Bi)))):M_}function Uc(yr,pi,Eo,Bi){const wo=yr.flags&1048576?`N${By(yr)},${By(pi)},${(Eo?1:0)|(Bi?2:0)}`:void 0;return zr(wo)??xi(wo,Ql(yr,pi,Eo,Bi))}function Ql(yr,pi,Eo,Bi){if(!Eo){if(Bi)return lv(yr,_d=>!nN(_d,pi));const Lc=Uc(yr,pi,!0,!1);return lv(yr,_d=>!Lte(_d,Lc))}if(yr.flags&3)return pi;const wo=Bi?nN:nL,Ta=yr.flags&1048576?dfe(yr):void 0,Ju=Th(pi,Lc=>{const _d=Ta&&Xe(Lc,Ta),ga=_d&&Lbe(yr,_d),Rl=Th(ga||yr,Bi?af=>nN(af,Lc)?af:nN(Lc,af)?Lc:Tc:af=>ABe(af,Lc)?af:ABe(Lc,af)?Lc:nL(af,Lc)?af:nL(Lc,af)?Lc:Tc);return Rl.flags&131072?Th(yr,af=>Ty(af,465829888)&&wo(Lc,US(af)||Io)?vp([af,Lc]):Tc):Rl});return Ju.flags&131072?nL(pi,yr)?pi:Id(yr,pi)?yr:Id(pi,yr)?pi:vp([yr,pi]):Ju}function Kl(yr,pi,Eo){if(oze(pi,o)){const Bi=Eo||!AN(pi)?OV(pi):void 0,wo=Bi&&Wb(Bi);if(wo&&(wo.kind===0||wo.kind===1))return Iu(yr,wo,pi,Eo)}if(cfe(yr)&&Kf(o)&&Ac(pi.expression)){const Bi=pi.expression;if(Dv(o.expression,o8(Bi.expression))&&xn(Bi.name)&&Bi.name.escapedText==="hasOwnProperty"&&pi.arguments.length===1){const wo=pi.arguments[0];if(Cm(wo)&&p5(o)===ey(wo.text))return IC(yr,Eo?524288:65536)}}return yr}function Iu(yr,pi,Eo,Bi){if(pi.type&&!(bn(yr)&&(pi.type===Jt||pi.type===ci))){const wo=bht(pi,Eo);if(wo){if(Dv(o,wo))return Uc(yr,pi.type,Bi,!1);Ke&&AD(wo,o)&&(Bi&&!DC(pi.type,65536)||!Bi&&Ex(pi.type,n1e))&&(yr=kO(yr,2097152));const Ta=Da(wo,yr);if(Ta)return cc(yr,Ta,Ju=>Uc(Ju,pi.type,Bi,!1))}}return yr}function rl(yr,pi,Eo){if(BU(pi)||Ds(pi.parent)&&(pi.parent.operatorToken.kind===61||pi.parent.operatorToken.kind===78)&&pi.parent.left===pi)return Dc(yr,pi,Eo);switch(pi.kind){case 80:if(!Dv(o,pi)&&ie<5){const Bi=xD(pi);if(Gte(Bi)){const wo=Bi.valueDeclaration;if(wo&&Kc(wo)&&!wo.type&&wo.initializer&&jtt(o)){ie++;const Ta=rl(yr,wo.initializer,Eo);return ie--,Ta}}}case 110:case 108:case 211:case 212:return ad(yr,pi,Eo);case 213:return Kl(yr,pi,Eo);case 217:case 235:return rl(yr,pi.expression,Eo);case 226:return ua(yr,pi,Eo);case 224:if(pi.operator===54)return rl(yr,pi.operand,!Eo);break}return yr}function Dc(yr,pi,Eo){if(Dv(o,pi))return kO(yr,Eo?2097152:262144);const Bi=Da(pi,yr);return Bi?cc(yr,Bi,wo=>IC(wo,Eo?2097152:262144)):yr}}function Tht(o,f){if(o=eA(o),(f.kind===80||f.kind===81)&&(z7(f)&&(f=f.parent),ZD(f)&&(!VE(f)||o6(f)))){const v=mNe(o6(f)&&f.kind===211?Dfe(f,void 0,!0):s1(f));if(eA(rt(f).resolvedSymbol)===o)return v}return ON(f)&&UC(f.parent)&&ng(f.parent)?lPe(f.parent.symbol):r6(f)&&o6(f.parent)?QF(o):AC(o)}function zte(o){return Ua(o.parent,f=>F_(f)&&!v7(f)||f.kind===268||f.kind===312||f.kind===172)}function Bbe(o){if(!o.valueDeclaration)return!1;const f=vA(o.valueDeclaration).parent,v=rt(f);return v.flags&131072||(v.flags|=131072,xK(f)||iN(f)),o.isAssigned||!1}function xK(o){return!!Ua(o.parent,f=>(F_(f)||A3(f))&&!!(rt(f).flags&131072))}function iN(o){if(o.kind===80){if(VE(o)){const f=xD(o);_oe(f)&&(f.isAssigned=!0)}}else s_(o,iN)}function Gte(o){return o.flags&3&&(nwe(o)&6)!==0}function zNe(o){const f=rt(o);if(f.parameterInitializerContainsUndefined===void 0){if(!OI(o,9))return AB(o.symbol),!0;const v=!!DC(ine(o,0),16777216);if(!Bk())return AB(o.symbol),!0;f.parameterInitializerContainsUndefined=v}return f.parameterInitializerContainsUndefined}function GNe(o,f){return Ke&&f.kind===169&&f.initializer&&DC(o,16777216)&&!zNe(f)?IC(o,524288):o}function Vtt(o,f){const v=f.parent;return v.kind===211||v.kind===166||v.kind===213&&v.expression===f||v.kind===212&&v.expression===f&&!(Uk(o,zbe)&&Tx(s1(v.argumentExpression)))}function Utt(o){return o.flags&2097152?gt(o.types,Utt):!!(o.flags&465829888&&tM(o).flags&1146880)}function zbe(o){return o.flags&2097152?gt(o.types,zbe):!!(o.flags&465829888&&!Ty(tM(o),98304))}function fze(o,f){const v=(xn(o)||Ac(o)||Hm(o))&&!((Pb(o.parent)||nF(o.parent))&&o.parent.tagName===o)&&(f&&f&32?NE(o,8):NE(o,void 0));return v&&!uK(v)}function NO(o,f,v){return!(v&&v&2)&&Uk(o,Utt)&&(Vtt(o,f)||fze(f,v))?Th(o,tM):o}function _ze(o){return!!Ua(o,f=>{const v=f.parent;return v===void 0?"quit":py(v)?v.expression===f&&Tg(f):my(v)?v.name===f||v.propertyName===f:!1})}function FV(o,f){if(Fr&&uw(o,111551)&&!yR(f)){const v=C0(o);pT(o,!0)&1160127&&(F0(Pe)||gk(Pe)&&_ze(f)||!ud(eA(v))?fw(o):s0(o))}}function Htt(o,f){var v;const A=La(o),R=o.valueDeclaration;if(R){if(sa(R)&&!R.initializer&&!R.dotDotDotToken&&R.parent.elements.length>=2){const B=R.parent.parent;if(B.kind===260&&KV(R)&6||B.kind===169){const Y=rt(B);if(!(Y.flags&4194304)){Y.flags|=4194304;const pe=Ri(B,0),Te=pe&&Th(pe,tM);if(Y.flags&=-4194305,Te&&Te.flags&1048576&&!(B.kind===169&&Bbe(o))){const Ue=R.parent,St=a8(Ue,Te,Te,void 0,f.flowNode);return St.flags&131072?Tc:pb(R,St,!0)}}}}if(Os(R)&&!R.type&&!R.initializer&&!R.dotDotDotToken){const B=R.parent;if(B.parameters.length>=2&&efe(B)){const Y=vfe(B);if(Y&&Y.parameters.length===1&&A1(Y)){const pe=dte(zu(La(Y.parameters[0]),(v=g5(B))==null?void 0:v.nonFixingMapper));if(pe.flags&1048576&&Ex(pe,Dp)&&!Bbe(o)){const Te=a8(B,pe,pe,void 0,f.flowNode),Ue=B.parameters.indexOf(R)-(BN(B)?1:0);return u0(Te,HA(Ue))}}}}}return A}function Sht(o,f){if(V9(o))return Ube(o);const v=xD(o);if(v===Pr)return Sr;if(v===Tr){if(ynt(o))return hn(o,N.arguments_cannot_be_referenced_in_property_initializers),Sr;const mo=zE(o);return dt<2&&(mo.kind===219?hn(o,N.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):ul(mo,1024)&&hn(o,N.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),rt(mo).flags|=512,La(v)}dze(o)&&FV(v,o);const A=eA(v),R=hs(A,o);BS(R)&&$ue(o,R)&&R.declarations&&pS(o,R.declarations,o.escapedText);let B=A.valueDeclaration;if(B&&A.flags&32&&Fl(B)&&B.name!==o){let mo=RT(o,!1,!1);for(;mo.kind!==312&&mo.parent!==B;)mo=RT(mo,!1,!1);mo.kind!==312&&(rt(B).flags|=262144,rt(mo).flags|=262144,rt(o).flags|=536870912)}qtt(o,v);let Y=Htt(A,o);const pe=q8(o);if(pe){if(!(A.flags&3)&&!(Cs(o)&&A.flags&512)){const mo=A.flags&384?N.Cannot_assign_to_0_because_it_is_an_enum:A.flags&32?N.Cannot_assign_to_0_because_it_is_a_class:A.flags&1536?N.Cannot_assign_to_0_because_it_is_a_namespace:A.flags&16?N.Cannot_assign_to_0_because_it_is_a_function:A.flags&2097152?N.Cannot_assign_to_0_because_it_is_an_import:N.Cannot_assign_to_0_because_it_is_not_a_variable;return hn(o,mo,ru(v)),Sr}if(z1(A))return A.flags&3?hn(o,N.Cannot_assign_to_0_because_it_is_a_constant,ru(v)):hn(o,N.Cannot_assign_to_0_because_it_is_a_read_only_property,ru(v)),Sr}const Te=A.flags&2097152;if(A.flags&3){if(pe===1)return P7(o)?pM(Y):Y}else if(Te)B=UT(v);else return Y;if(!B)return Y;Y=NO(Y,o,f);const Ue=vA(B).kind===169,St=zte(B);let Rt=zte(o);const rn=Rt!==St,Sn=o.parent&&o.parent.parent&&xA(o.parent)&&aze(o.parent.parent),xr=v.flags&134217728,Ai=Y===Br||Y===Bh,So=Ai&&o.parent.kind===235;for(;Rt!==St&&(Rt.kind===218||Rt.kind===219||x9(Rt))&&(Gte(A)&&Y!==Bh||Ue&&!Bbe(A));)Rt=zte(Rt);const la=Ue||Te||rn||Sn||xr||Jtt(o,B)||Y!==Br&&Y!==Bh&&(!Ke||(Y.flags&16387)!==0||yR(o)||rze(o)||o.parent.kind===281)||o.parent.kind===235||B.kind===260&&B.exclamationToken||B.flags&33554432,Zs=So?Ce:la?Ue?GNe(Y,B):Y:Ai?Ce:iL(Y),ba=So?Dw(a8(o,Y,Zs,Rt)):a8(o,Y,Zs,Rt);if(!ztt(o)&&(Y===Br||Y===Bh)){if(ba===Br||ba===Bh)return Et&&(hn(i_(B),N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ru(v),Co(ba)),hn(o,N.Variable_0_implicitly_has_an_1_type,ru(v),Co(ba))),Jy(ba)}else if(!la&&!dK(Y)&&dK(ba))return hn(o,N.Variable_0_is_used_before_being_assigned,ru(v)),Y;return pe?pM(ba):ba}function Jtt(o,f){if(sa(f)){const v=Ua(o,sa);return v&&vA(v)===vA(f)}}function dze(o){var f;const v=o.parent;if(v){if(Ac(v)&&v.expression===o||my(v)&&v.isTypeOnly)return!1;const A=(f=v.parent)==null?void 0:f.parent;if(A&&ry(A)&&A.isTypeOnly)return!1}return!0}function $tt(o,f){return!!Ua(o,v=>v===f?"quit":F_(v)||v.parent&&nu(v.parent)&&!ev(v.parent)&&v.parent.initializer===v)}function pze(o,f){return Ua(o,v=>v===f?"quit":v===f.initializer||v===f.condition||v===f.incrementor||v===f.statement)}function Gbe(o){return Ua(o,f=>!f||kie(f)?"quit":LL(f,!1))}function qtt(o,f){if(dt>=2||!(f.flags&34)||!f.valueDeclaration||Nu(f.valueDeclaration)||f.valueDeclaration.parent.kind===299)return;const v=QD(f.valueDeclaration),A=$tt(o,v),R=Gbe(v);if(R){if(A){let B=!0;if(bW(v)){const Y=oC(f.valueDeclaration,261);if(Y&&Y.parent===v){const pe=pze(o.parent,v);if(pe){const Te=rt(pe);Te.flags|=8192;const Ue=Te.capturedBlockScopeBindings||(Te.capturedBlockScopeBindings=[]);Dy(Ue,f),pe===v.initializer&&(B=!1)}}}B&&(rt(R).flags|=4096)}if(bW(v)){const B=oC(f.valueDeclaration,261);B&&B.parent===v&&jbe(o,v)&&(rt(f.valueDeclaration).flags|=65536)}rt(f.valueDeclaration).flags|=32768}A&&(rt(f.valueDeclaration).flags|=16384)}function Eht(o,f){const v=rt(o);return!!v&&ni(v.capturedBlockScopeBindings,sc(f))}function jbe(o,f){let v=o;for(;v.parent.kind===217;)v=v.parent;let A=!1;if(VE(v))A=!0;else if(v.parent.kind===224||v.parent.kind===225){const R=v.parent;A=R.operator===46||R.operator===47}return A?!!Ua(v,R=>R===f?"quit":R===f.statement):!1}function jNe(o,f){if(rt(o).flags|=2,f.kind===172||f.kind===176){const v=f.parent;rt(v).flags|=4}else rt(f).flags|=4}function mfe(o){return h1(o)?o:F_(o)?void 0:s_(o,mfe)}function Vbe(o){const f=sc(o),v=sh(f);return cv(v)===Jn}function Ktt(o,f,v){const A=f.parent;gR(A)&&!Vbe(A)&&J8(o)&&o.flowNode&&!BNe(o.flowNode,!1)&&hn(o,v)}function Xtt(o,f){nu(f)&&ev(f)&&ct&&f.initializer&&P8(f.initializer,o.pos)&&X2(f.parent)&&hn(o,N.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Ube(o){const f=yR(o);let v=RT(o,!0,!0),A=!1,R=!1;for(v.kind===176&&Ktt(o,v,N.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(v.kind===219&&(v=RT(v,!1,!R),A=!0),v.kind===167){v=RT(v,!A,!1),R=!0;continue}break}if(Xtt(o,v),R)hn(o,N.this_cannot_be_referenced_in_a_computed_property_name);else switch(v.kind){case 267:hn(o,N.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:hn(o,N.this_cannot_be_referenced_in_current_location);break;case 176:Qtt(o,v)&&hn(o,N.this_cannot_be_referenced_in_constructor_arguments);break}!f&&A&&dt<2&&jNe(o,v);const B=VNe(o,!0,v);if(at){const Y=La(fr);if(B===Y&&A)hn(o,N.The_containing_arrow_function_captures_the_global_value_of_this);else if(!B){const pe=hn(o,N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Nu(v)){const Te=VNe(v);Te&&Te!==Y&&ml(pe,Bs(v,N.An_outer_value_of_this_is_shadowed_by_this_container))}}}return B||Ge}function VNe(o,f=!0,v=RT(o,!1,!1)){const A=Cs(o);if(F_(v)&&(!HNe(o)||BN(v))){let R=G4(v)||A&&Ytt(v);if(!R){const B=xht(v);if(A&&B){const Y=Bf(B).symbol;Y&&Y.members&&Y.flags&16&&(R=sh(Y).thisType)}else Ax(v)&&(R=sh(jp(v.symbol)).thisType);R||(R=gze(v))}if(R)return a8(o,R)}if(Fl(v.parent)){const R=sc(v.parent),B=pd(v)?La(R):sh(R).thisType;return a8(o,B)}if(Nu(v))if(v.commonJsModuleIndicator){const R=sc(v);return R&&La(R)}else{if(v.externalModuleIndicator)return Ce;if(f)return La(fr)}}function Hbe(o){const f=RT(o,!1,!1);if(F_(f)){const v=gb(f);if(v.thisParameter)return FNe(v.thisParameter)}if(Fl(f.parent)){const v=sc(f.parent);return pd(f)?La(v):sh(v).thisType}}function xht(o){if(o.kind===218&&Ds(o.parent)&&jy(o.parent)===3)return o.parent.left.expression.expression;if(o.kind===174&&o.parent.kind===210&&Ds(o.parent.parent)&&jy(o.parent.parent)===6)return o.parent.parent.left.expression;if(o.kind===218&&o.parent.kind===303&&o.parent.parent.kind===210&&Ds(o.parent.parent.parent)&&jy(o.parent.parent.parent)===6)return o.parent.parent.parent.left.expression;if(o.kind===218&&tl(o.parent)&&xn(o.parent.name)&&(o.parent.name.escapedText==="value"||o.parent.name.escapedText==="get"||o.parent.name.escapedText==="set")&&el(o.parent.parent)&&xd(o.parent.parent.parent)&&o.parent.parent.parent.arguments[2]===o.parent.parent&&jy(o.parent.parent.parent)===9)return o.parent.parent.parent.arguments[0].expression;if(tm(o)&&xn(o.name)&&(o.name.escapedText==="value"||o.name.escapedText==="get"||o.name.escapedText==="set")&&el(o.parent)&&xd(o.parent.parent)&&o.parent.parent.arguments[2]===o.parent&&jy(o.parent.parent)===9)return o.parent.parent.arguments[0].expression}function Ytt(o){const f=Xre(o);if(f&&f.typeExpression)return Xl(f.typeExpression);const v=gte(o);if(v)return H4(v)}function Qtt(o,f){return!!Ua(o,v=>Vd(v)?"quit":v.kind===169&&v.parent===f)}function WV(o){const f=o.parent.kind===213&&o.parent.expression===o,v=h0(o,!0);let A=v,R=!1,B=!1;if(!f){for(;A&&A.kind===219;)ul(A,1024)&&(B=!0),A=h0(A,!0),R=dt<2;A&&ul(A,1024)&&(B=!0)}let Y=0;if(!A||!St(A)){const Rt=Ua(o,rn=>rn===A?"quit":rn.kind===167);return Rt&&Rt.kind===167?hn(o,N.super_cannot_be_referenced_in_a_computed_property_name):f?hn(o,N.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!A||!A.parent||!(Fl(A.parent)||A.parent.kind===210)?hn(o,N.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):hn(o,N.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Sr}if(!f&&v.kind===176&&Ktt(o,A,N.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),pd(A)||f?(Y=32,!f&&dt>=2&&dt<=8&&(nu(A)||Ep(A))&&hde(o.parent,Rt=>{(!Nu(Rt)||aE(Rt))&&(rt(Rt).flags|=2097152)})):Y=16,rt(o).flags|=Y,A.kind===174&&B&&(MT(o.parent)&&VE(o.parent)?rt(A).flags|=256:rt(A).flags|=128),R&&jNe(o.parent,A),A.parent.kind===210)return dt<2?(hn(o,N.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Sr):Ge;const pe=A.parent;if(!gR(pe))return hn(o,N.super_can_only_be_referenced_in_a_derived_class),Sr;if(Vbe(pe))return f?Sr:Jn;const Te=sh(sc(pe)),Ue=Te&&l0(Te)[0];if(!Ue)return Sr;if(A.kind===176&&Qtt(o,A))return hn(o,N.super_cannot_be_referenced_in_constructor_arguments),Sr;return Y===32?cv(Te):vx(Ue,Te.thisType);function St(Rt){return f?Rt.kind===176:Fl(Rt.parent)||Rt.parent.kind===210?pd(Rt)?Rt.kind===174||Rt.kind===173||Rt.kind===177||Rt.kind===178||Rt.kind===172||Rt.kind===175:Rt.kind===174||Rt.kind===173||Rt.kind===177||Rt.kind===178||Rt.kind===172||Rt.kind===171||Rt.kind===176:!1}}function Ztt(o){return(o.kind===174||o.kind===177||o.kind===178)&&o.parent.kind===210?o.parent:o.kind===218&&o.parent.kind===303?o.parent.parent:void 0}function ent(o){return ji(o)&4&&o.target===P_?ch(o)[0]:void 0}function Aht(o){return Th(o,f=>f.flags&2097152?Ot(f.types,ent):ent(f))}function mze(o,f){let v=o,A=f;for(;A;){const R=Aht(A);if(R)return R;if(v.parent.kind!==303)break;v=v.parent.parent,A=s8(v,void 0)}}function gze(o){if(o.kind===219)return;if(efe(o)){const v=vfe(o);if(v){const A=v.thisParameter;if(A)return La(A)}}const f=Cs(o);if(at||f){const v=Ztt(o);if(v){const R=s8(v,void 0),B=mze(v,R);return B?zu(B,bNe(g5(v))):z2(R?Dw(R):kv(v))}const A=IS(o.parent);if(Zv(A)){const R=A.left;if(Kf(R)){const{expression:B}=R;if(f&&xn(B)){const Y=ts(A);if(Y.commonJsModuleIndicator&&xD(B)===Y.symbol)return}return z2(kv(B))}}}}function tnt(o){const f=o.parent;if(!efe(f))return;const v=v7(f);if(v&&v.arguments){const R=s1e(v),B=f.parameters.indexOf(o);if(o.dotDotDotToken)return pwe(R,B,R.length,Ge,void 0,0);const Y=rt(v),pe=Y.resolvedSignature;Y.resolvedSignature=_i;const Te=B0)return xB(v.name,!0,!1)}}function kht(o,f){const v=zE(o);if(v){let A=$Ne(v,f);if(A){const R=ob(v);if(R&1){const B=(R&2)!==0;A.flags&1048576&&(A=lv(A,pe=>!!b5(1,pe,B)));const Y=b5(1,A,(R&2)!==0);if(!Y)return;A=Y}if(R&2){const B=Th(A,gM);return B&&dc([B,g1e(B)])}return A}}}function UNe(o,f){const v=NE(o,f);if(v){const A=gM(v);return A&&dc([A,g1e(A)])}}function Pht(o,f){const v=zE(o);if(v){const A=ob(v);let R=$Ne(v,f);if(R){const B=(A&2)!==0;return!o.asteriskToken&&R.flags&1048576&&(R=lv(R,Y=>!!b5(1,Y,B))),o.asteriskToken?R:b5(0,R,B)}}}function HNe(o){let f=!1;for(;o.parent&&!F_(o.parent);){if(Os(o.parent)&&(f||o.parent.initializer===o))return!0;sa(o.parent)&&o.parent.initializer===o&&(f=!0),o=o.parent}return!1}function JNe(o,f){const v=!!(ob(f)&2),A=$Ne(f,void 0);if(A)return b5(o,A,v)||void 0}function $Ne(o,f){const v=sK(o);if(v)return v;const A=YNe(o);if(A&&!K0e(A)){const B=np(A),Y=ob(o);return Y&1?lv(B,pe=>!!(pe.flags&58998787)||AGe(pe,Y,void 0)):Y&2?lv(B,pe=>!!(pe.flags&58998787)||!!WK(pe)):B}const R=v7(o);if(R)return NE(R,f)}function yze(o,f){const A=s1e(o).indexOf(f);return A===-1?void 0:Jbe(o,A)}function Jbe(o,f){if(Py(o))return f===0?Nn:f===1?pet(!1):Ge;const v=rt(o).resolvedSignature===Sc?Sc:y5(o);if(m1(o)&&f===0)return Xbe(v,o);const A=v.parameters.length-1;return A1(v)&&f>=A?u0(La(v.parameters[A]),HA(f-A),256):XI(v,f)}function nnt(o){const f=cGe(o);return f?o5(f):void 0}function Nht(o,f){if(o.parent.kind===215)return yze(o.parent,f)}function wht(o,f){const v=o.parent,{left:A,operatorToken:R,right:B}=v;switch(R.kind){case 64:case 77:case 76:case 78:return o===B?qNe(v):void 0;case 57:case 61:const Y=NE(v,f);return o===B&&(Y&&Y.pattern||!Y&&!Aie(v))?s1(A):Y;case 56:case 28:return o===B?NE(v,f):void 0;default:return}}function Rht(o){if(ck(o)&&o.symbol)return o.symbol;if(xn(o))return xD(o);if(Ac(o)){const v=s1(o.expression);return Lu(o.name)?f(v,o.name):Yd(v,o.name.escapedText)}if(Hm(o)){const v=kv(o.argumentExpression);if(!yv(v))return;const A=s1(o.expression);return Yd(A,vv(v))}return;function f(v,A){const R=rwe(A.escapedText,A);return R&&owe(v,R)}}function qNe(o){var f,v;const A=jy(o);switch(A){case 0:case 4:const R=Rht(o.left),B=R&&R.valueDeclaration;if(B&&(nu(B)||em(B))){const Te=Zy(B);return Te&&zu(Xl(Te),Ae(R).mapper)||(nu(B)?B.initializer&&s1(o.left):void 0)}return A===0?s1(o.left):rnt(o);case 5:if(KNe(o,A))return rnt(o);if(!ck(o.left)||!o.left.symbol)return s1(o.left);{const Te=o.left.symbol.valueDeclaration;if(!Te)return;const Ue=uc(o.left,Kf),St=Zy(Te);if(St)return Xl(St);if(xn(Ue.expression)){const Rt=Ue.expression,rn=gg(Rt,Rt.escapedText,111551,void 0,Rt.escapedText,!0);if(rn){const Sn=rn.valueDeclaration&&Zy(rn.valueDeclaration);if(Sn){const xr=eI(Ue);if(xr!==void 0)return oN(Xl(Sn),xr)}return}}return Cs(Te)||Te===o.left?void 0:s1(o.left)}case 1:case 6:case 3:case 2:let Y;A!==2&&(Y=ck(o.left)?(f=o.left.symbol)==null?void 0:f.valueDeclaration:void 0),Y||(Y=(v=o.symbol)==null?void 0:v.valueDeclaration);const pe=Y&&Zy(Y);return pe?Xl(pe):void 0;case 7:case 8:case 9:return re.fail("Does not apply");default:return re.assertNever(A)}}function KNe(o,f=jy(o)){if(f===4)return!0;if(!Cs(o)||f!==5||!xn(o.left.expression))return!1;const v=o.left.expression.escapedText,A=gg(o.left,v,111551,void 0,void 0,!0,!0);return bie(A==null?void 0:A.valueDeclaration)}function rnt(o){if(!o.symbol)return s1(o.left);if(o.symbol.valueDeclaration){const R=Zy(o.symbol.valueDeclaration);if(R){const B=Xl(R);if(B)return B}}const f=uc(o.left,Kf);if(!iC(RT(f.expression,!1,!1)))return;const v=Ube(f.expression),A=eI(f);return A!==void 0&&oN(v,A)||void 0}function Mht(o){return!!(I_(o)&262144&&!o.links.type&&HT(o,0)>=0)}function oN(o,f,v){return Th(o,A=>{var R;if(Fb(A)&&!A.declaration.nameType){const B=$v(A),Y=US(B)||B,pe=v||vS(Ic(f));if(Id(pe,Y))return _p(A,pe)}else if(A.flags&3670016){const B=Yd(A,f);if(B)return Mht(B)?void 0:n8(La(B),!!(B&&B.flags&16777216));if(Dp(A)&&FT(f)&&+f>=0){const Y=Ite(A,A.target.fixedLength,0,!1,!0);if(Y)return Y}return(R=r5(wWe(A),v||vS(Ic(f))))==null?void 0:R.type}},!0)}function JI(o,f){if(re.assert(iC(o)),!(o.flags&67108864))return $be(o,f)}function $be(o,f){const v=o.parent,A=tl(o)&&hze(o,f);if(A)return A;const R=s8(v,f);if(R){if(DB(o)){const B=sc(o);return oN(R,B.escapedName,Ae(B).nameType)}if(tI(o)){const B=i_(o);if(B&&Qf(B)){const Y=Bf(B.expression),pe=yv(Y)&&oN(R,vv(Y));if(pe)return pe}}if(o.name){const B=SD(o.name);return Th(R,Y=>{var pe;return(pe=r5(wWe(Y),B))==null?void 0:pe.type},!0)}}}function Lht(o){let f,v;for(let A=0;A{if(Dp(B)){if((A===void 0||fR)?v-f:0,pe=Y>0&&B.target.hasRestElement?Uue(B.target,3):0;return Y>0&&Y<=pe?ch(B)[Y6(B)-Y]:Ite(B,A===void 0?B.target.fixedLength:Math.min(B.target.fixedLength,A),v===void 0||R===void 0?pe:Math.min(pe,v-R),!1,!0)}return(!A||frL(Te)?u0(Te,HA(Y)):Te,!0))}function XNe(o,f){const v=o.parent;return rie(v)?NE(o,f):zx(v)?Fht(v,o,f):void 0}function hfe(o,f){if(tx(o)){const v=s8(o.parent,f);return!v||bn(v)?void 0:oN(v,m3(o.name))}else return NE(o.parent,f)}function yfe(o){switch(o.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 yfe(o.expression);case 294:return!o.expression||yfe(o.expression)}return!1}function Wht(o,f){return uht(f,o)||NBe(f,Hi(Vn(gi(o.properties,v=>v.symbol?v.kind===303?yfe(v.initializer)&&jB(f,v.symbol.escapedName):v.kind===304?jB(f,v.symbol.escapedName):!1:!1),v=>[()=>jfe(v.kind===303?v.initializer:v.name),v.symbol.escapedName]),Vn(gi(zm(f),v=>{var A;return!!(v.flags&16777216)&&!!((A=o==null?void 0:o.symbol)!=null&&A.members)&&!o.symbol.members.has(v.escapedName)&&jB(f,v.escapedName)}),v=>[()=>Ce,v.escapedName])),Id)}function vze(o,f){const v=Efe(aL(o));return NBe(f,Hi(Vn(gi(o.properties,A=>!!A.symbol&&A.kind===291&&jB(f,A.symbol.escapedName)&&(!A.initializer||yfe(A.initializer))),A=>[A.initializer?()=>jfe(A.initializer):()=>Ts,A.symbol.escapedName]),Vn(gi(zm(f),A=>{var R;if(!(A.flags&16777216)||!((R=o==null?void 0:o.symbol)!=null&&R.members))return!1;const B=o.parent.parent;return A.escapedName===v&&zx(B)&&B9(B.children).length?!1:!o.symbol.members.has(A.escapedName)&&jB(f,A.escapedName)}),A=>[()=>Ce,A.escapedName])),Id)}function s8(o,f){const v=iC(o)?JI(o,f):NE(o,f),A=qbe(v,o,f);if(A&&!(f&&f&2&&A.flags&8650752)){const R=Th(A,B=>ji(B)&32?B:yS(B),!0);return R.flags&1048576&&el(o)?Wht(o,R):R.flags&1048576&&CR(o)?vze(o,R):R}}function qbe(o,f,v){if(o&&Ty(o,465829888)){const A=g5(f);if(A&&v&1&>(A.inferences,evt))return Kbe(o,A.nonFixingMapper);if(A!=null&&A.returnMapper){const R=Kbe(o,A.returnMapper);return R.flags&1048576&&Q4(R.types,Ro)&&Q4(R.types,Cc)?lv(R,B=>B!==Ro&&B!==Cc):R}}return o}function Kbe(o,f){return o.flags&465829888?zu(o,f):o.flags&1048576?dc(Vn(o.types,v=>Kbe(v,f)),0):o.flags&2097152?vp(Vn(o.types,v=>Kbe(v,f))):o}function NE(o,f){var v;if(o.flags&67108864)return;const A=bze(o,!f);if(A>=0)return ks[A];const{parent:R}=o;switch(R.kind){case 260:case 169:case 172:case 171:case 208:return Iht(o,f);case 219:case 253:return kht(o,f);case 229:return Pht(R,f);case 223:return UNe(R,f);case 213:case 214:return yze(R,o);case 170:return nnt(R);case 216:case 234:return ky(R.type)?NE(R,f):Xl(R.type);case 226:return wht(o,f);case 303:case 304:return $be(R,f);case 305:return NE(R.parent,f);case 209:{const B=R,Y=s8(B,f),pe=y9(B.elements,o),Te=(v=rt(B)).spreadIndices??(v.spreadIndices=Lht(B.elements));return gfe(Y,pe,B.elements.length,Te.first,Te.last)}case 227:return Oht(o,f);case 239:return re.assert(R.parent.kind===228),Nht(R.parent,o);case 217:{if(Cs(R)){if(poe(R))return Xl(moe(R));const B=FM(R);if(B&&!ky(B.typeExpression.type))return Xl(B.typeExpression.type)}return NE(R,f)}case 235:return NE(R,f);case 238:return Xl(R.type);case 277:return wn(R);case 294:return XNe(R,f);case 291:case 293:return hfe(R,f);case 286:case 285:return ont(R,f)}}function int(o){jte(o,NE(o,void 0),!0)}function jte(o,f,v){Fc[Vs]=o,ks[Vs]=f,Xs[Vs]=v,Vs++}function Vte(){Vs--}function bze(o,f){for(let v=Vs-1;v>=0;v--)if(o===Fc[v]&&(f||!Xs[v]))return v;return-1}function Bht(o,f){wu[Q]=o,Yp[Q]=f,Q++}function zht(){Q--}function g5(o){for(let f=Q-1;f>=0;f--)if(Lx(o,wu[f]))return Yp[f]}function ont(o,f){if(Pb(o)&&f!==4){const v=bze(o.parent,!f);if(v>=0)return ks[v]}return Jbe(o,0)}function Xbe(o,f){return knt(f)!==0?Ght(o,f):Eze(o,f)}function Ght(o,f){let v=Zte(o,Io);v=Sze(f,aL(f),v);const A=h5(dE.IntrinsicAttributes,f);return Fn(A)||(v=j0e(A,v)),v}function Tze(o,f){if(o.compositeSignatures){const A=[];for(const R of o.compositeSignatures){const B=np(R);if(bn(B))return B;const Y=Xe(B,f);if(!Y)return;A.push(Y)}return vp(A)}const v=np(o);return bn(v)?v:Xe(v,f)}function jht(o){if(BV(o.tagName)){const v=Lze(o),A=hwe(o,v);return o5(A)}const f=kv(o.tagName);if(f.flags&128){const v=Mze(f,o);if(!v)return Sr;const A=hwe(o,v);return o5(A)}return f}function Sze(o,f,v){const A=e1e(f);if(A){const R=jht(o),B=twe(A,Cs(o),R,v);if(B)return B}return v}function Eze(o,f){const v=aL(f),A=ewe(v);let R=A===void 0?Zte(o,Io):A===""?np(o):Tze(o,A);if(!R)return A&&Nt(f.attributes.properties)&&hn(f,N.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ic(A)),Io;if(R=Sze(f,v,R),bn(R))return R;{let B=R;const Y=h5(dE.IntrinsicClassAttributes,f);if(!Fn(Y)){const Te=Fo(Y.symbol),Ue=np(o);let St;if(Te){const Rt=Gk([Ue],Te,HS(Te),Cs(f));St=zu(Y,X0(Te,Rt))}else St=Y;B=j0e(St,B)}const pe=h5(dE.IntrinsicAttributes,f);return Fn(pe)||(B=j0e(pe,B)),B}}function Vht(o){return hv(Pe,"noImplicitAny")?Em(o,(f,v)=>f===v||!f?f:GZe(f.typeParameters,v.typeParameters)?Ute(f,v):void 0):void 0}function Ybe(o,f,v){if(!o||!f)return o||f;const A=dc([La(o),zu(La(f),v)]);return r8(o,A)}function xze(o,f,v){const A=c2(o),R=c2(f),B=A>=R?o:f,Y=B===o?f:o,pe=B===o?A:R,Te=$k(o)||$k(f),Ue=Te&&!$k(B),St=new Array(pe+(Ue?1:0));for(let Rt=0;Rt=KA(B)&&Rt>=KA(Y),la=Rt>=A?void 0:kK(o,Rt),Zs=Rt>=R?void 0:kK(f,Rt),ba=la===Zs?la:la?Zs?void 0:la:Zs,mo=tp(1|(So&&!Ai?16777216:0),ba||`arg${Rt}`);mo.links.type=Ai?hT(xr):xr,St[Rt]=mo}if(Ue){const Rt=tp(1,"args");Rt.links.type=hT(XI(Y,pe)),Y===f&&(Rt.links.type=zu(Rt.links.type,v)),St[pe]=Rt}return St}function Ute(o,f){const v=o.typeParameters||f.typeParameters;let A;o.typeParameters&&f.typeParameters&&(A=X0(f.typeParameters,o.typeParameters));const R=o.declaration,B=xze(o,f,A),Y=Ybe(o.thisParameter,f.thisParameter,A),pe=Math.max(o.minArgumentCount,f.minArgumentCount),Te=vw(R,v,Y,B,void 0,void 0,pe,(o.flags|f.flags)&167);return Te.compositeKind=2097152,Te.compositeSignatures=Hi(o.compositeKind===2097152&&o.compositeSignatures||[o],[f]),A&&(Te.mapper=o.compositeKind===2097152&&o.mapper&&o.compositeSignatures?lM(o.mapper,A):A),Te}function Aze(o,f){const v=ed(o,0),A=gi(v,R=>!ant(R,f));return A.length===1?A[0]:Vht(A)}function ant(o,f){let v=0;for(;vY[Sn]&8?xw(rn,Lr)||Ge:rn),2):Ke?ma:kt,Te))}function Hk(o){if(!(ji(o)&4))return o;let f=o.literalType;return f||(f=o.literalType=bD(o),f.objectFlags|=147456),f}function bfe(o){switch(o.kind){case 167:return Tfe(o);case 80:return FT(o.escapedText);case 9:case 11:return FT(o.text);default:return!1}}function Tfe(o){return zb(Jk(o),296)}function Jk(o){const f=rt(o.expression);if(!f.resolvedType){if((rS(o.parent.parent)||Fl(o.parent.parent)||xp(o.parent.parent))&&Ds(o.expression)&&o.expression.operatorToken.kind===103&&o.parent.kind!==177&&o.parent.kind!==178)return f.resolvedType=Sr;if(f.resolvedType=Bf(o.expression),nu(o.parent)&&!ev(o.parent)&&v0(o.parent.parent)){const v=QD(o.parent.parent),A=Gbe(v);A&&(rt(A).flags|=4096,rt(o).flags|=32768,rt(o.parent.parent).flags|=32768)}(f.resolvedType.flags&98304||!zb(f.resolvedType,402665900)&&!Id(f.resolvedType,xa))&&hn(o,N.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return f.resolvedType}function Cze(o){var f;const v=(f=o.declarations)==null?void 0:f[0];return FT(o.escapedName)||v&&mp(v)&&bfe(v.name)}function Dze(o){var f;const v=(f=o.declarations)==null?void 0:f[0];return yA(o)||v&&mp(v)&&Qf(v.name)&&zb(Jk(v.name),4096)}function Ize(o,f,v,A){const R=[];for(let Y=f;Y0&&(pe=Aw(pe,Ya(),o.symbol,Ai,St),Y=[],B=zd(),la=!1,Zs=!1,ba=!1);const cc=zI(Bf(Ra.expression,f&2));if(Sfe(cc)){const V_=pBe(cc,St);if(R&&snt(V_,R,Ra),mo=Y.length,Fn(pe))continue;pe=Aw(pe,V_,o.symbol,Ai,St)}else hn(Ra,N.Spread_types_may_only_be_created_from_object_types),pe=Sr;continue}else re.assert(Ra.kind===177||Ra.kind===178),Rf(Ra);Da&&!(Da.flags&8576)?Id(Da,xa)&&(Id(Da,Lr)?Zs=!0:Id(Da,hc)?ba=!0:la=!0,A&&(So=!0)):B.set(Va.escapedName,Va),Y.push(Va)}if(Vte(),Ue){const Ra=Ua(Te.pattern.parent,Da=>Da.kind===260||Da.kind===226||Da.kind===169);if(Ua(o,Da=>Da===Ra||Da.kind===305).kind!==305)for(const Da of zm(Te))!B.get(Da.escapedName)&&!Yd(pe,Da.escapedName)&&(Da.flags&16777216||hn(Da.valueDeclaration||((v=to(Da,Vm))==null?void 0:v.links.bindingElement),N.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),B.set(Da.escapedName,Da),Y.push(Da))}if(Fn(pe))return Sr;if(pe!==M_)return Y.length>0&&(pe=Aw(pe,Ya(),o.symbol,Ai,St),Y=[],B=zd(),la=!1,Zs=!1),Th(pe,Ra=>Ra===M_?Ya():Ra);return Ya();function Ya(){const Ra=[];la&&Ra.push(Ize(o,mo,Y,Nn)),Zs&&Ra.push(Ize(o,mo,Y,Lr)),ba&&Ra.push(Ize(o,mo,Y,hc));const Va=sy(o.symbol,B,Yn,Yn,Ra);return Va.objectFlags|=Ai|128|131072,xr&&(Va.objectFlags|=4096),So&&(Va.objectFlags|=512),A&&(Va.pattern=o),Va}}function Sfe(o){const f=_Ne(Th(o,tM));return!!(f.flags&126615553||f.flags&3145728&&jr(f.types,Sfe))}function Uht(o){Fze(o)}function Hht(o,f){return Rf(o),xfe(o)||Ge}function Jht(o){Fze(o.openingElement),BV(o.closingElement.tagName)?ZNe(o.closingElement):Bf(o.closingElement.tagName),QNe(o)}function $ht(o,f){return Rf(o),xfe(o)||Ge}function qht(o){Fze(o.openingFragment);const f=ts(o);return VH(Pe)&&(Pe.jsxFactory||f.pragmas.has("jsx"))&&!Pe.jsxFragmentFactory&&!f.pragmas.has("jsxfrag")&&hn(o,Pe.jsxFactory?N.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:N.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),QNe(o),xfe(o)||Ge}function Pze(o){return o.includes("-")}function BV(o){return xn(o)&&EH(o.escapedText)||Fm(o)}function Nze(o,f){return o.initializer?MK(o.initializer,f):Ts}function Kht(o,f=0){const v=o.attributes,A=NE(v,0),R=Ke?zd():void 0;let B=zd(),Y=oy,pe=!1,Te,Ue=!1,St=2048;const Rt=Efe(aL(o));for(const xr of v.properties){const Ai=xr.symbol;if(tx(xr)){const So=Nze(xr,f);St|=ji(So)&458752;const la=tp(4|Ai.flags,Ai.escapedName);if(la.declarations=Ai.declarations,la.parent=Ai.parent,Ai.valueDeclaration&&(la.valueDeclaration=Ai.valueDeclaration),la.links.type=So,la.links.target=Ai,B.set(la.escapedName,la),R==null||R.set(la.escapedName,la),m3(xr.name)===Rt&&(Ue=!0),A){const Zs=Yd(A,Ai.escapedName);Zs&&Zs.declarations&&BS(Zs)&&xn(xr.name)&&pS(xr.name,Zs.declarations,xr.name.escapedText)}if(A&&f&2&&!(f&4)&&Sx(xr)){const Zs=g5(v);re.assert(Zs);const ba=xr.initializer.expression;JBe(Zs,ba,So)}}else{re.assert(xr.kind===293),B.size>0&&(Y=Aw(Y,Sn(),v.symbol,St,!1),B=zd());const So=zI(Bf(xr.expression,f&2));bn(So)&&(pe=!0),Sfe(So)?(Y=Aw(Y,So,v.symbol,St,!1),R&&snt(So,R,xr)):(hn(xr.expression,N.Spread_types_may_only_be_created_from_object_types),Te=Te?vp([Te,So]):So)}}pe||B.size>0&&(Y=Aw(Y,Sn(),v.symbol,St,!1));const rn=o.parent.kind===284?o.parent:void 0;if(rn&&rn.openingElement===o&&B9(rn.children).length>0){const xr=QNe(rn,f);if(!pe&&Rt&&Rt!==""){Ue&&hn(v,N._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ic(Rt));const Ai=s8(o.attributes,void 0),So=Ai&&oN(Ai,Rt),la=tp(4,Rt);la.links.type=xr.length===1?xr[0]:So&&Uk(So,Dte)?TD(xr):hT(dc(xr)),la.valueDeclaration=he.createPropertySignature(void 0,Ic(Rt),void 0,void 0),kl(la.valueDeclaration,v),la.valueDeclaration.symbol=la;const Zs=zd();Zs.set(Rt,la),Y=Aw(Y,sy(v.symbol,Zs,Yn,Yn,Yn),v.symbol,St,!1)}}if(pe)return Ge;if(Te&&Y!==oy)return vp([Te,Y]);return Te||(Y===oy?Sn():Y);function Sn(){St|=cn;const xr=sy(v.symbol,B,Yn,Yn,Yn);return xr.objectFlags|=St|128|131072,xr}}function QNe(o,f){const v=[];for(const A of o.children)if(A.kind===12)A.containsOnlyTriviaWhiteSpaces||v.push(Nn);else{if(A.kind===294&&!A.expression)continue;v.push(MK(A,f))}return v}function snt(o,f,v){for(const A of zm(o))if(!(A.flags&16777216)){const R=f.get(A.escapedName);if(R){const B=hn(R.valueDeclaration,N._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ic(R.escapedName));ml(B,Bs(v,N.This_spread_always_overwrites_this_property))}}}function wze(o,f){return Kht(o.parent,f)}function h5(o,f){const v=aL(f),A=v&&L2(v),R=A&&Ci(A,o,788968);return R?sh(R):Sr}function ZNe(o){const f=rt(o);if(!f.resolvedSymbol){const v=h5(dE.IntrinsicElements,o);if(Fn(v))return Et&&hn(o,N.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ic(dE.IntrinsicElements)),f.resolvedSymbol=Pr;{if(!xn(o.tagName)&&!Fm(o.tagName))return re.fail();const A=Fm(o.tagName)?bR(o.tagName):o.tagName.escapedText,R=Yd(v,A);if(R)return f.jsxFlags|=1,f.resolvedSymbol=R;const B=Qs(v,vS(Ic(A)));return B?(f.jsxFlags|=2,f.resolvedSymbol=B):$t(v,A)?(f.jsxFlags|=2,f.resolvedSymbol=v.symbol):(hn(o,N.Property_0_does_not_exist_on_type_1,goe(o.tagName),"JSX."+dE.IntrinsicElements),f.resolvedSymbol=Pr)}}return f.resolvedSymbol}function Zbe(o){const f=o&&ts(o),v=f&&rt(f);if(v&&v.jsxImplicitImportContainer===!1)return;if(v&&v.jsxImplicitImportContainer)return v.jsxImplicitImportContainer;const A=HH(UH(Pe,f),Pe);if(!A)return;const B=Jd(Pe)===1?N.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N.Cannot_find_module_0_or_its_corresponding_type_declarations,Y=qR(o,A,B,o),pe=Y&&Y!==Pr?jp(Av(Y)):void 0;return v&&(v.jsxImplicitImportContainer=pe||!1),pe}function aL(o){const f=o&&rt(o);if(f&&f.jsxNamespace)return f.jsxNamespace;if(!f||f.jsxNamespace!==!1){let A=Zbe(o);if(!A||A===Pr){const R=xo(o);A=gg(o,R,1920,void 0,R,!1)}if(A){const R=Av(Ci(L2(Av(A)),dE.JSX,1920));if(R&&R!==Pr)return f&&(f.jsxNamespace=R),R}f&&(f.jsxNamespace=!1)}const v=Av(hte(dE.JSX,1920,void 0));if(v!==Pr)return v}function Rze(o,f){const v=f&&Ci(f.exports,o,788968),A=v&&sh(v),R=A&&zm(A);if(R){if(R.length===0)return"";if(R.length===1)return R[0].escapedName;R.length>1&&v.declarations&&hn(v.declarations[0],N.The_global_type_JSX_0_may_not_have_more_than_one_property,Ic(o))}}function e1e(o){return o&&Ci(o.exports,dE.LibraryManagedAttributes,788968)}function Xht(o){return o&&Ci(o.exports,dE.ElementType,788968)}function ewe(o){return Rze(dE.ElementAttributesPropertyNameContainer,o)}function Efe(o){return Rze(dE.ElementChildrenAttributeNameContainer,o)}function cnt(o,f){if(o.flags&4)return[_i];if(o.flags&128){const R=Mze(o,f);return R?[hwe(f,R)]:(hn(f,N.Property_0_does_not_exist_on_type_1,o.value,"JSX."+dE.IntrinsicElements),Yn)}const v=yS(o);let A=ed(v,1);return A.length===0&&(A=ed(v,0)),A.length===0&&v.flags&1048576&&(A=EWe(Vn(v.types,R=>cnt(R,f)))),A}function Mze(o,f){const v=h5(dE.IntrinsicElements,f);if(!Fn(v)){const A=o.value,R=Yd(v,ey(A));if(R)return La(R);const B=vO(v,Nn);return B||void 0}return Ge}function lnt(o,f,v){if(o===1){const R=Oze(v);R&&$A(f,R,db,v.tagName,N.Its_return_type_0_is_not_a_valid_JSX_element,A)}else if(o===0){const R=unt(v);R&&$A(f,R,db,v.tagName,N.Its_instance_type_0_is_not_a_valid_JSX_element,A)}else{const R=Oze(v),B=unt(v);if(!R||!B)return;const Y=dc([R,B]);$A(f,Y,db,v.tagName,N.Its_element_type_0_is_not_a_valid_JSX_element,A)}function A(){const R=Lv(v.tagName);return Es(void 0,N._0_cannot_be_used_as_a_JSX_component,R)}}function Lze(o){var f;re.assert(BV(o.tagName));const v=rt(o);if(!v.resolvedJsxElementAttributesType){const A=ZNe(o);if(v.jsxFlags&1)return v.resolvedJsxElementAttributesType=La(A)||Sr;if(v.jsxFlags&2){const R=Fm(o.tagName)?bR(o.tagName):o.tagName.escapedText;return v.resolvedJsxElementAttributesType=((f=i5(h5(dE.IntrinsicElements,o),R))==null?void 0:f.type)||Sr}else return v.resolvedJsxElementAttributesType=Sr}return v.resolvedJsxElementAttributesType}function unt(o){const f=h5(dE.ElementClass,o);if(!Fn(f))return f}function xfe(o){return h5(dE.Element,o)}function Oze(o){const f=xfe(o);if(f)return dc([f,mn])}function Yht(o){const f=aL(o);if(!f)return;const v=Xht(f);if(!v)return;const A=twe(v,Cs(o));if(!(!A||Fn(A)))return A}function twe(o,f,...v){const A=sh(o);if(o.flags&524288){const R=Ae(o).typeParameters;if(Nt(R)>=v.length){const B=Gk(v,R,v.length,f);return Nt(B)===0?A:PB(o,B)}}if(Nt(A.typeParameters)>=v.length){const R=Gk(v,A.typeParameters,v.length,f);return qv(A,R)}}function fnt(o){const f=h5(dE.IntrinsicElements,o);return f?zm(f):Yn}function Qht(o){(Pe.jsx||0)===0&&hn(o,N.Cannot_use_JSX_unless_the_jsx_flag_is_provided),xfe(o)===void 0&&Et&&hn(o,N.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Fze(o){const f=m1(o);if(f&&Gkt(o),Qht(o),!Zbe(o)){const v=j_&&Pe.jsx===2?N.Cannot_find_name_0:void 0,A=xo(o),R=f?o.tagName:o;let B;if(v6(o)&&A==="null"||(B=gg(R,A,111551,v,A,!0)),B&&(B.isReferenced=67108863,Fr&&B.flags&2097152&&!Qx(B)&&fw(B)),v6(o)){const Y=ts(o),pe=Wc(Y);pe&&gg(R,pe,111551,v,pe,!0)}}if(f){const v=o,A=y5(v);bwe(A,o);const R=Yht(v);if(R!==void 0){const B=v.tagName,Y=BV(B)?vS(goe(B)):Bf(B);$A(Y,R,db,B,N.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const pe=Lv(B);return Es(void 0,N._0_cannot_be_used_as_a_JSX_component,pe)})}else lnt(knt(v),np(A),v)}}function Afe(o,f,v){if(o.flags&524288){if($6(o,f)||i5(o,f)||CB(f)&&Tw(o,Nn)||v&&Pze(f))return!0}else if(o.flags&3145728&&t1e(o)){for(const A of o.types)if(Afe(A,f,v))return!0}return!1}function t1e(o){return!!(o.flags&524288&&!(ji(o)&512)||o.flags&67108864||o.flags&1048576&>(o.types,t1e)||o.flags&2097152&&jr(o.types,t1e))}function KI(o,f){if(Vkt(o),o.expression){const v=Bf(o.expression,f);return o.dotDotDotToken&&v!==Ge&&!kE(v)&&hn(o,N.JSX_spread_child_must_be_an_array_type),v}else return Sr}function nwe(o){return o.valueDeclaration?KV(o.valueDeclaration):0}function AK(o){if(o.flags&8192||I_(o)&4)return!0;if(Cs(o.valueDeclaration)){const f=o.valueDeclaration.parent;return f&&Ds(f)&&jy(f)===3}}function Wze(o,f,v,A,R,B=!0){const Y=B?o.kind===166?o.right:o.kind===205?o:o.kind===208&&o.propertyName?o.propertyName:o.name:void 0;return _nt(o,f,v,A,R,Y)}function _nt(o,f,v,A,R,B){var Y;const pe=Vy(R,v);if(f){if(dt<2&&Bze(R))return B&&hn(B,N.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(pe&64)return B&&hn(B,N.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ru(R),Co(e8(R))),!1;if(!(pe&256)&&((Y=R.declarations)!=null&&Y.some(nde)))return B&&hn(B,N.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ru(R)),!1}if(pe&64&&Bze(R)&&(Q1(o)||Tie(o)||Ch(o.parent)&&bie(o.parent.parent))){const Ue=RS(xE(R));if(Ue&&hb(o))return B&&hn(B,N.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ru(R),K2(Ue.name)),!1}if(!(pe&6))return!0;if(pe&2){const Ue=RS(xE(R));return rm(o,Ue)?!0:(B&&hn(B,N.Property_0_is_private_and_only_accessible_within_class_1,ru(R),Co(e8(R))),!1)}if(f)return!0;let Te=Od(o,Ue=>{const St=sh(sc(Ue));return stt(St,R,v)});return!Te&&(Te=Zht(o),Te=Te&&stt(Te,R,v),pe&256||!Te)?(B&&hn(B,N.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ru(R),Co(e8(R)||A)),!1):pe&256?!0:(A.flags&262144&&(A=A.isThisType?gT(A):US(A)),!A||!jA(A,Te)?(B&&hn(B,N.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ru(R),Co(Te),Co(A)),!1):!0)}function Zht(o){const f=eyt(o);let v=(f==null?void 0:f.type)&&Xl(f.type);if(v&&v.flags&262144&&(v=gT(v)),v&&ji(v)&7)return QR(v)}function eyt(o){const f=RT(o,!1,!1);return f&&F_(f)?BN(f):void 0}function Bze(o){return!!Abe(o,f=>!(f.flags&8192))}function CK(o){return lh(Bf(o),o)}function n1e(o){return DC(o,50331648)}function zze(o){return n1e(o)?Dw(o):o}function Gze(o,f){const v=Tg(o)?iE(o):void 0;if(o.kind===106){hn(o,N.The_value_0_cannot_be_used_here,"null");return}if(v!==void 0&&v.length<100){if(xn(o)&&v==="undefined"){hn(o,N.The_value_0_cannot_be_used_here,"undefined");return}hn(o,f&16777216?f&33554432?N._0_is_possibly_null_or_undefined:N._0_is_possibly_undefined:N._0_is_possibly_null,v)}else hn(o,f&16777216?f&33554432?N.Object_is_possibly_null_or_undefined:N.Object_is_possibly_undefined:N.Object_is_possibly_null)}function r1e(o,f){hn(o,f&16777216?f&33554432?N.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:N.Cannot_invoke_an_object_which_is_possibly_undefined:N.Cannot_invoke_an_object_which_is_possibly_null)}function cy(o,f,v){if(Ke&&o.flags&2){if(Tg(f)){const R=iE(f);if(R.length<100)return hn(f,N._0_is_of_type_unknown,R),Sr}return hn(f,N.Object_is_of_type_unknown),Sr}const A=vK(o,50331648);if(A&50331648){v(f,A);const R=Dw(o);return R.flags&229376?Sr:R}return o}function lh(o,f){return cy(o,f,Gze)}function Cfe(o,f){const v=lh(o,f);if(v.flags&16384){if(Tg(f)){const A=iE(f);if(xn(f)&&A==="undefined")return hn(f,N.The_value_0_cannot_be_used_here,A),v;if(A.length<100)return hn(f,N._0_is_possibly_undefined,A),v}hn(f,N.Object_is_possibly_undefined)}return v}function Dfe(o,f,v){return o.flags&64?jze(o,f):Hte(o,o.expression,CK(o.expression),o.name,f,v)}function jze(o,f){const v=Bf(o.expression),A=sfe(v,o.expression);return gNe(Hte(o,o.expression,lh(A,o.expression),o.name,f),o,A!==v)}function dnt(o,f){const v=rG(o)&&E2(o.left)?lh(Ube(o.left),o.left):CK(o.left);return Hte(o,o.left,v,o.right,f)}function pnt(o){for(;o.parent.kind===217;)o=o.parent;return sk(o.parent)&&o.parent.expression===o}function rwe(o,f){for(let v=A9(f);v;v=$b(v)){const{symbol:A}=v,R=WN(A,o),B=A.members&&A.members.get(R)||A.exports&&A.exports.get(R);if(B)return B}}function tyt(o){if(!$b(o))return Uo(o,N.Private_identifiers_are_not_allowed_outside_class_bodies);if(!lpe(o.parent)){if(!ZD(o))return Uo(o,N.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 f=Ds(o.parent)&&o.parent.operatorToken.kind===103;if(!iwe(o)&&!f)return Uo(o,N.Cannot_find_name_0,Kr(o))}return!1}function mnt(o){tyt(o);const f=iwe(o);return f&&Pfe(f,void 0,!1),Ge}function iwe(o){if(!ZD(o))return;const f=rt(o);return f.resolvedSymbol===void 0&&(f.resolvedSymbol=rwe(o.escapedText,o)),f.resolvedSymbol}function owe(o,f){return Yd(o,f.escapedName)}function HB(o,f,v){let A;const R=zm(o);R&&Ot(R,Y=>{const pe=Y.valueDeclaration;if(pe&&mp(pe)&&Lu(pe.name)&&pe.name.escapedText===f.escapedText)return A=Y,!0});const B=M2(f);if(A){const Y=re.checkDefined(A.valueDeclaration),pe=re.checkDefined($b(Y));if(v!=null&&v.valueDeclaration){const Te=v.valueDeclaration,Ue=$b(Te);if(re.assert(!!Ue),Ua(Ue,St=>pe===St)){const St=hn(f,N.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,B,Co(o));return ml(St,Bs(Te,N.The_shadowing_declaration_of_0_is_defined_here,B),Bs(Y,N.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,B)),!0}}return hn(f,N.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,B,M2(pe.name||h$)),!0}return!1}function gnt(o,f){return(bV(f)||Q1(o)&&W4(f))&&RT(o,!0,!1)===Zq(f)}function Hte(o,f,v,A,R,B){const Y=rt(f).resolvedSymbol,pe=q8(o),Te=yS(pe!==0||pnt(o)?z2(v):v),Ue=bn(Te)||Te===Tf;let St;if(Lu(A)){dt<99&&(pe!==0&&yb(o,1048576),pe!==1&&yb(o,524288));const rn=rwe(A.escapedText,A);if(pe&&rn&&rn.valueDeclaration&&tm(rn.valueDeclaration)&&Uo(A,N.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Kr(A)),Ue){if(rn)return Fn(Te)?Sr:Te;if(A9(A)===void 0)return Uo(A,N.Private_identifiers_are_not_allowed_outside_class_bodies),Ge}if(St=rn&&owe(v,rn),St===void 0){if(HB(v,A,rn))return Sr;const Sn=A9(A);Sn&&pP(ts(Sn),Pe.checkJs)&&Uo(A,N.Private_field_0_must_be_declared_in_an_enclosing_class,Kr(A))}else St.flags&65536&&!(St.flags&32768)&&pe!==1&&hn(o,N.Private_accessor_was_defined_without_a_getter)}else{if(Ue)return xn(f)&&Y&&FV(Y,o),Fn(Te)?Sr:Te;St=Yd(Te,A.escapedText,Pwe(Te),o.kind===166)}xn(f)&&Y&&(F0(Pe)||!(St&&(ud(St)||St.flags&8&&o.parent.kind===306))||gk(Pe)&&_ze(o))&&FV(Y,o);let Rt;if(St){const rn=hs(St,A);if(BS(rn)&&$ue(o,rn)&&rn.declarations&&pS(A,rn.declarations,A.escapedText),nyt(St,o,A),Pfe(St,o,Uze(f,Y)),rt(o).resolvedSymbol=St,Wze(o,f.kind===108,o6(o),Te,St),dGe(o,St,pe))return hn(A,N.Cannot_assign_to_0_because_it_is_a_read_only_property,Kr(A)),Sr;Rt=gnt(o,St)?Br:B||RH(o)?QF(St):La(St)}else{const rn=!Lu(A)&&(pe===0||!Ew(v)||p3(v))?i5(Te,A.escapedText):void 0;if(!(rn&&rn.type)){const Sn=i1e(o,v.symbol,!0);return!Sn&&kV(v)?Ge:v.symbol===fr?(fr.exports.has(A.escapedText)&&fr.exports.get(A.escapedText).flags&418?hn(A,N.Property_0_does_not_exist_on_type_1,Ic(A.escapedText),Co(v)):Et&&hn(A,N.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Co(v)),Ge):(A.escapedText&&!JR(o)&&bnt(A,p3(v)?Te:v,Sn),Sr)}rn.isReadonly&&(VE(o)||mH(o))&&hn(o,N.Index_signature_in_type_0_only_permits_reading,Co(Te)),Rt=Pe.noUncheckedIndexedAccess&&!VE(o)?dc([rn.type,qe]):rn.type,Pe.noPropertyAccessFromIndexSignature&&Ac(o)&&hn(A,N.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ic(A.escapedText)),rn.declaration&&N2(rn.declaration)&&pS(A,[rn.declaration],A.escapedText)}return hnt(o,St,Rt,A,R)}function i1e(o,f,v){var A;const R=ts(o);if(R&&Pe.checkJs===void 0&&R.checkJsDirective===void 0&&(R.scriptKind===1||R.scriptKind===2)){const B=Ot(f==null?void 0:f.declarations,ts),Y=!(f!=null&&f.valueDeclaration)||!Fl(f.valueDeclaration)||((A=f.valueDeclaration.heritageClauses)==null?void 0:A.length)||yP(!1,f.valueDeclaration);return!(R!==B&&B&&Dn(B))&&!(v&&f&&f.flags&32&&Y)&&!(o&&v&&Ac(o)&&o.expression.kind===110&&Y)}return!1}function hnt(o,f,v,A,R){const B=q8(o);if(B===1)return n8(v,!!(f&&f.flags&16777216));if(f&&!(f.flags&98311)&&!(f.flags&8192&&v.flags&1048576)&&!$T(f.declarations))return v;if(v===Br)return Cv(o,f);v=NO(v,o,R);let Y=!1;if(Ke&&Yt&&Kf(o)&&o.expression.kind===110){const Te=f&&f.valueDeclaration;if(Te&&M(Te)&&!pd(Te)){const Ue=zte(o);Ue.kind===176&&Ue.parent===Te.parent&&!(Te.flags&33554432)&&(Y=!0)}}else Ke&&f&&f.valueDeclaration&&Ac(f.valueDeclaration)&&XM(f.valueDeclaration)&&zte(o)===zte(f.valueDeclaration)&&(Y=!0);const pe=a8(o,v,Y?iL(v):v);return Y&&!dK(v)&&dK(pe)?(hn(A,N.Property_0_is_used_before_being_assigned,ru(f)),v):B?pM(pe):pe}function nyt(o,f,v){const{valueDeclaration:A}=o;if(!A||ts(f).isDeclarationFile)return;let R;const B=Kr(v);ynt(f)&&!mte(A)&&!(Kf(f)&&Kf(f.expression))&&!Tu(A,v)&&!(tm(A)&&eit(A)&256)&&(Ct||!vnt(o))?R=hn(v,N.Property_0_is_used_before_its_initialization,B):A.kind===263&&f.parent.kind!==183&&!(A.flags&33554432)&&!Tu(A,v)&&(R=hn(v,N.Class_0_used_before_its_declaration,B)),R&&ml(R,Bs(A,N._0_is_declared_here,B))}function ynt(o){return!!Ua(o,f=>{switch(f.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 Ou(f.parent)&&Ep(f.parent.parent)?!0:"quit";default:return ZD(f)?!1:"quit"}})}function vnt(o){if(!(o.parent.flags&32))return!1;let f=La(o.parent);for(;;){if(f=f.symbol&&ryt(f),!f)return!1;const v=Yd(f,o.escapedName);if(v&&v.valueDeclaration)return!0}}function ryt(o){const f=l0(o);if(f.length!==0)return vp(f)}function bnt(o,f,v){let A,R;if(!Lu(o)&&f.flags&1048576&&!(f.flags&402784252)){for(const Y of f.types)if(!Yd(Y,o.escapedText)&&!i5(Y,o.escapedText)){A=Es(A,N.Property_0_does_not_exist_on_type_1,hm(o),Co(Y));break}}if(Vze(o.escapedText,f)){const Y=hm(o),pe=Co(f);A=Es(A,N.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Y,pe,pe+"."+Y)}else{const Y=$fe(f);if(Y&&Yd(Y,o.escapedText))A=Es(A,N.Property_0_does_not_exist_on_type_1,hm(o),Co(f)),R=Bs(o,N.Did_you_forget_to_use_await);else{const pe=hm(o),Te=Co(f),Ue=ayt(pe,f);if(Ue!==void 0)A=Es(A,N.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,pe,Te,Ue);else{const St=JB(o,f);if(St!==void 0){const Rt=Il(St),rn=v?N.Property_0_may_not_exist_on_type_1_Did_you_mean_2:N.Property_0_does_not_exist_on_type_1_Did_you_mean_2;A=Es(A,rn,pe,Te,Rt),R=St.valueDeclaration&&Bs(St.valueDeclaration,N._0_is_declared_here,Rt)}else{const Rt=iyt(f)?N.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:N.Property_0_does_not_exist_on_type_1;A=Es(SPe(A,f),Rt,pe,Te)}}}}const B=wN(ts(o),o,A);R&&ml(B,R),v_(!v||A.code!==N.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,B)}function iyt(o){return Pe.lib&&!Pe.lib.includes("dom")&&sze(o,f=>f.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ic(f.symbol.escapedName)))&&_M(o)}function Vze(o,f){const v=f.symbol&&Yd(La(f.symbol),o);return v!==void 0&&!!v.valueDeclaration&&pd(v.valueDeclaration)}function oyt(o){const f=M2(o),A=hoe().get(f);return A&&sX(A.keys())}function ayt(o,f){const v=yS(f).symbol;if(!v)return;const A=Il(v),B=hoe().get(A);if(B){for(const[Y,pe]of B)if(ni(pe,o))return Y}}function Tnt(o,f){return kfe(o,zm(f),106500)}function JB(o,f){let v=zm(f);if(typeof o!="string"){const A=o.parent;Ac(A)&&(v=gi(v,R=>zV(A,f,R))),o=Kr(o)}return kfe(o,v,111551)}function Iv(o,f){const v=As(o)?o:Kr(o),A=zm(f);return(v==="for"?lr(A,B=>Il(B)==="htmlFor"):v==="class"?lr(A,B=>Il(B)==="className"):void 0)??kfe(v,A,111551)}function awe(o,f){const v=JB(o,f);return v&&Il(v)}function DK(o,f,v){return re.assert(f!==void 0,"outername should always be defined"),Nh(o,f,v,void 0,f,!1,!1,!0,(R,B,Y)=>{re.assertEqual(f,B,"name should equal outerName");const pe=Ci(R,B,Y);if(pe)return pe;let Te;return R===jt?Te=Qo(["string","number","boolean","object","bigint","symbol"],St=>R.has(St.charAt(0).toUpperCase()+St.slice(1))?tp(524288,St):void 0).concat(oc(R.values())):Te=oc(R.values()),kfe(Ic(B),Te,Y)})}function syt(o,f,v){const A=DK(o,f,v);return A&&Il(A)}function Ife(o,f){return f.exports&&kfe(Kr(o),H6(f),2623475)}function swe(o,f){const v=Ife(o,f);return v&&Il(v)}function Jte(o,f,v){function A(Y){const pe=$6(o,Y);if(pe){const Te=$B(La(pe));return!!Te&&KA(Te)>=1&&Id(v,XI(Te,0))}return!1}const R=VE(f)?"set":"get";if(!A(R))return;let B=B7(f.expression);return B===void 0?B=R:B+="."+R,B}function $te(o,f){const v=f.types.filter(A=>!!(A.flags&128));return fh(o.value,v,A=>A.value)}function kfe(o,f,v){return fh(o,f,A);function A(R){const B=Il(R);if(!qf(B,'"')){if(R.flags&v)return B;if(R.flags&2097152){const Y=mV(R);if(Y&&Y.flags&v)return B}}}}function Pfe(o,f,v){const A=o&&o.flags&106500&&o.valueDeclaration;if(!A)return;const R=tT(A,2),B=o.valueDeclaration&&mp(o.valueDeclaration)&&Lu(o.valueDeclaration.name);if(!(!R&&!B)&&!(f&&RH(f)&&!(o.flags&65536))){if(v){const Y=Ua(f,Vd);if(Y&&Y.symbol===o)return}(I_(o)&1?Ae(o).target:o).isReferenced=67108863}}function Uze(o,f){return o.kind===110||!!f&&Tg(o)&&f===xD(PS(o))}function Snt(o,f){switch(o.kind){case 211:return Hze(o,o.expression.kind===108,f,z2(Bf(o.expression)));case 166:return Hze(o,!1,f,z2(Bf(o.left)));case 205:return Hze(o,!1,f,Xl(o))}}function zV(o,f,v){return Jze(o,o.kind===211&&o.expression.kind===108,!1,f,v)}function Hze(o,f,v,A){if(bn(A))return!0;const R=Yd(A,v);return!!R&&Jze(o,f,!1,A,R)}function Jze(o,f,v,A,R){if(bn(A))return!0;if(R.valueDeclaration&&IT(R.valueDeclaration)){const B=$b(R.valueDeclaration);return!uy(o)&&!!Ua(o,Y=>Y===B)}return _nt(o,f,v,A,R)}function cyt(o){const f=o.initializer;if(f.kind===261){const v=f.declarations[0];if(v&&!$_(v.name))return sc(v)}else if(f.kind===80)return xD(f)}function lyt(o){return JT(o).length===1&&!!Tw(o,Lr)}function $ze(o){const f=rg(o);if(f.kind===80){const v=xD(f);if(v.flags&3){let A=o,R=o.parent;for(;R;){if(R.kind===249&&A===R.statement&&cyt(R)===v&&lyt(s1(R.expression)))return!0;A=R,R=R.parent}}}return!1}function uyt(o,f){return o.flags&64?Ent(o,f):xnt(o,CK(o.expression),f)}function Ent(o,f){const v=Bf(o.expression),A=sfe(v,o.expression);return gNe(xnt(o,lh(A,o.expression),f),o,A!==v)}function xnt(o,f,v){const A=q8(o)!==0||pnt(o)?z2(f):f,R=o.argumentExpression,B=Bf(R);if(Fn(A)||A===Tf)return A;if(Pwe(A)&&!Cm(R))return hn(R,N.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Sr;const Y=$ze(R)?Lr:B,pe=VE(o)?4|(Ew(A)&&!p3(A)?2:0):32,Te=xw(A,Y,pe,o)||Sr;return PGe(hnt(o,rt(o).resolvedSymbol,Te,R,v),o)}function yT(o){return sk(o)||Dm(o)||m1(o)}function RO(o){return yT(o)&&Ot(o.typeArguments,On),o.kind===215?Bf(o.template):m1(o)?Bf(o.attributes):Ds(o)?Bf(o.left):sk(o)&&Ot(o.arguments,f=>{Bf(f)}),_i}function qA(o){return RO(o),$o}function n_(o,f,v){let A,R,B=0,Y,pe=-1,Te;re.assert(!f.length);for(const Ue of o){const St=Ue.declaration&&sc(Ue.declaration),Rt=Ue.declaration&&Ue.declaration.parent;!R||St===R?A&&Rt===A?Y=Y+1:(A=Rt,Y=B):(Y=B=f.length,A=Rt),R=St,Sae(Ue)?(pe++,Te=pe,B++):Te=Y,f.splice(Te,0,v?BZe(Ue,v):Ue)}}function cwe(o){return!!o&&(o.kind===230||o.kind===237&&o.isSpread)}function lwe(o){return Ho(o,cwe)}function Ant(o){return!!(o.flags&16384)}function Cnt(o){return!!(o.flags&49155)}function uwe(o,f,v,A=!1){let R,B=!1,Y=c2(v),pe=KA(v);if(o.kind===215)if(R=f.length,o.template.kind===228){const Te=yl(o.template.templateSpans);B=ny(Te.literal)||!!Te.literal.isUnterminated}else{const Te=o.template;re.assert(Te.kind===15),B=!!Te.isUnterminated}else if(o.kind===170)R=wnt(o,v);else if(o.kind===226)R=1;else if(m1(o)){if(B=o.attributes.end===o.end,B)return!0;R=pe===0?f.length:1,Y=f.length===0?Y:1,pe=Math.min(pe,1)}else if(o.arguments){R=A?f.length+1:f.length,B=o.arguments.end===o.end;const Te=lwe(f);if(Te>=0)return Te>=KA(v)&&($k(v)||TeY)return!1;if(B||R>=pe)return!0;for(let Te=R;Te=A&&f.length<=v}function $B(o){return qte(o,0,!1)}function Dnt(o){return qte(o,0,!1)||qte(o,1,!1)}function qte(o,f,v){if(o.flags&524288){const A=Gh(o);if(v||A.properties.length===0&&A.indexInfos.length===0){if(f===0&&A.callSignatures.length===1&&A.constructSignatures.length===0)return A.callSignatures[0];if(f===1&&A.constructSignatures.length===1&&A.callSignatures.length===0)return A.constructSignatures[0]}}}function Kte(o,f,v,A){const R=ufe(o.typeParameters,o,0,A),B=Wfe(f),Y=v&&(B&&B.flags&262144?v.nonFixingMapper:v.mapper),pe=Y?wV(f,Y):f;return UBe(pe,o,(Te,Ue)=>{kw(R.inferences,Te,Ue)}),v||wbe(f,o,(Te,Ue)=>{kw(R.inferences,Te,Ue,128)}),QP(o,nze(R),Cs(f.declaration))}function fyt(o,f,v,A){const R=Xbe(f,o),B=RK(o.attributes,R,A,v);return kw(A.inferences,B,R),nze(A)}function Int(o){if(!o)return bl;const f=Bf(o);return ySe(o)?f:s9(o.parent)?Dw(f):uy(o.parent)?mNe(f):f}function _we(o,f,v,A,R){if(m1(o))return fyt(o,f,A,R);if(o.kind!==170&&o.kind!==226){const Te=jr(f.typeParameters,St=>!!Dd(St)),Ue=NE(o,Te?8:0);if(Ue){const St=np(f);if(Iw(St)){const Rt=g5(o);if(!(!Te&&NE(o,8)!==Ue)){const Ai=bNe(eht(Rt,1)),So=zu(Ue,Ai),la=$B(So),Zs=la&&la.typeParameters?o5(X6(la,la.typeParameters)):So;kw(R.inferences,Zs,St,128)}const Sn=ufe(f.typeParameters,f,R.flags),xr=zu(Ue,Rt&&Rt.returnMapper);kw(Sn.inferences,xr,St),R.returnMapper=gt(Sn.inferences,LK)?bNe(PE(Sn)):void 0}}}const B=Qte(f),Y=B?Math.min(c2(f)-1,v.length):v.length;if(B&&B.flags&262144){const Te=lr(R.inferences,Ue=>Ue.typeParameter===B);Te&&(Te.impliedArity=Ho(v,cwe,Y)<0?v.length-Y:void 0)}const pe=H4(f);if(pe&&Iw(pe)){const Te=Pnt(o);kw(R.inferences,Int(Te),pe)}for(let Te=0;Te=v-1){const St=o[v-1];if(cwe(St)){const Rt=St.kind===237?St.type:RK(St.expression,A,R,B);return rL(Rt)?dwe(Rt):hT(Kk(33,Rt,Ce,St.kind===230?St.expression:St),Y)}}const pe=[],Te=[],Ue=[];for(let St=f;StEs(void 0,N.Type_0_does_not_satisfy_the_constraint_1):void 0,Rt=A||N.Type_0_does_not_satisfy_the_constraint_1;pe||(pe=X0(B,Y));const rn=Y[Te];if(!a1(rn,vx(zu(Ue,pe),rn),v?f[Te]:void 0,Rt,St))return}}return Y}function knt(o){if(BV(o.tagName))return 2;const f=yS(Bf(o.tagName));return Nt(ed(f,1))?0:Nt(ed(f,0))?1:2}function Kze(o,f,v,A,R,B,Y){const pe=Xbe(f,o),Te=RK(o.attributes,pe,void 0,A),Ue=A&4?hK(Te):Te;return St()&&ZPe(Ue,pe,v,R?o.tagName:void 0,o.attributes,void 0,B,Y);function St(){var Rt;if(Zbe(o))return!0;const rn=(Pb(o)||nF(o))&&!(BV(o.tagName)||Fm(o.tagName))?Bf(o.tagName):void 0;if(!rn)return!0;const Sn=ed(rn,0);if(!Nt(Sn))return!0;const xr=PSt(o);if(!xr)return!0;const Ai=Qg(xr,111551,!0,!1,o);if(!Ai)return!0;const So=La(Ai),la=ed(So,0);if(!Nt(la))return!0;let Zs=!1,ba=0;for(const Ya of la){const Ra=XI(Ya,0),Va=ed(Ra,0);if(Nt(Va))for(const Da of Va){if(Zs=!0,$k(Da))return!0;const cc=c2(Da);cc>ba&&(ba=cc)}}if(!Zs)return!0;let mo=1/0;for(const Ya of Sn){const Ra=KA(Ya);Ra{R.push(B.expression)}),R}if(o.kind===170)return Nnt(o);if(o.kind===226)return[o.left];if(m1(o))return o.attributes.properties.length>0||Pb(o)&&o.parent.children.length>0?[o.attributes]:Yn;const f=o.arguments||Yn,v=lwe(f);if(v>=0){const A=f.slice(0,v);for(let R=v;R{var Ue;const St=Y.target.elementFlags[Te],Rt=a1e(B,St&4?hT(pe):pe,!!(St&12),(Ue=Y.target.labeledElementDeclarations)==null?void 0:Ue[Te]);A.push(Rt)}):A.push(B)}return A}return f}function Nnt(o){const f=o.expression,v=cGe(o);if(v){const A=[];for(const R of v.parameters){const B=La(R);A.push(a1e(f,B))}return A}return re.fail()}function wnt(o,f){return Pe.experimentalDecorators?_yt(o,f):2}function _yt(o,f){switch(o.parent.kind){case 263:case 231:return 1;case 172:return e_(o.parent)?3:2;case 174:case 177:case 178:return dt===0||f.parameters.length<=2?2:3;case 169:return 3;default:return re.fail()}}function c1e(o,f){let v,A;const R=ts(o);if(Ac(o.expression)){const B=BL(R,o.expression.name);v=B.start,A=f?B.length:o.end-v}else{const B=BL(R,o.expression);v=B.start,A=f?B.length:o.end-v}return{start:v,length:A,sourceFile:R}}function Nfe(o,f,...v){if(xd(o)){const{sourceFile:A,start:R,length:B}=c1e(o);return"message"in f?Pp(A,R,B,f,...v):oE(A,f)}else return"message"in f?Bs(o,f,...v):wN(ts(o),o,f)}function dyt(o){if(!xd(o)||!xn(o.expression))return!1;const f=gg(o.expression,o.expression.escapedText,111551,void 0,void 0,!1),v=f==null?void 0:f.valueDeclaration;if(!v||!Os(v)||!EP(v.parent)||!sb(v.parent.parent)||!xn(v.parent.parent.expression))return!1;const A=BWe(!1);return A?ss(v.parent.parent.expression,!0)===A:!1}function mwe(o,f,v,A){var R;const B=lwe(v);if(B>-1)return Bs(v[B],N.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let Y=Number.POSITIVE_INFINITY,pe=Number.NEGATIVE_INFINITY,Te=Number.NEGATIVE_INFINITY,Ue=Number.POSITIVE_INFINITY,St;for(const Ai of f){const So=KA(Ai),la=c2(Ai);SoTe&&(Te=So),v.lengthR?Y=Math.min(Y,Te):Ue1&&(ba=Ra(rn,bC,xr,mo)),ba||(ba=Ra(rn,db,xr,mo)),ba)return ba;if(ba=pyt(o,rn,Sn,!!v,A),rt(o).resolvedSignature=ba,St)if(!B&&Ue&&(B=N.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),So)if(So.length===1||So.length>3){const Va=So[So.length-1];let Da;So.length>3&&(Da=Es(Da,N.The_last_overload_gave_the_following_error),Da=Es(Da,N.No_overload_matches_this_call)),B&&(Da=Es(Da,B));const cc=o1e(o,Sn,Va,db,0,!0,()=>Da);if(cc)for(const V_ of cc)Va.declaration&&So.length>3&&ml(V_,Bs(Va.declaration,N.The_last_overload_is_declared_here)),Ya(Va,V_),j_.add(V_);else re.fail("No error for last overload signature")}else{const Va=[];let Da=0,cc=Number.MAX_VALUE,V_=0,fd=0;for(const ua of So){const _f=o1e(o,Sn,ua,db,0,!0,()=>Es(void 0,N.Overload_0_of_1_2_gave_the_following_error,fd+1,rn.length,Fk(ua)));_f?(_f.length<=cc&&(cc=_f.length,V_=fd),Da=Math.max(Da,_f.length),Va.push(_f)):re.fail("No error for 3 or fewer overload signatures"),fd++}const ad=Da>1?Va[V_]:Gf(Va);re.assert(ad.length>0,"No errors reported for 3 or fewer overload signatures");let Xf=Es(Vn(ad,kc),N.No_overload_matches_this_call);B&&(Xf=Es(Xf,B));const KS=[...ea(ad,ua=>ua.relatedInformation)];let PC;if(jr(ad,ua=>ua.start===ad[0].start&&ua.length===ad[0].length&&ua.file===ad[0].file)){const{file:ua,start:Ss,length:_f}=ad[0];PC={file:ua,start:Ss,length:_f,code:Xf.code,category:Xf.category,messageText:Xf,relatedInformation:KS}}else PC=wN(ts(o),o,Xf,KS);Ya(So[0],PC),j_.add(PC)}else if(la)j_.add(mwe(o,[la],Sn,B));else if(Zs)qze(Zs,o.typeArguments,!0,B);else{const Va=gi(f,Da=>fwe(Da,Rt));Va.length===0?j_.add(Xze(o,f,Rt,B)):j_.add(mwe(o,Va,Sn,B))}return ba;function Ya(Va,Da){var cc,V_;const fd=So,ad=la,Xf=Zs,KS=((V_=(cc=Va.declaration)==null?void 0:cc.symbol)==null?void 0:V_.declarations)||Yn,ua=KS.length>1?lr(KS,Ss=>Vd(Ss)&&y2(Ss.body)):void 0;if(ua){const Ss=gb(ua),_f=!Ss.typeParameters;Ra([Ss],db,_f)&&ml(Da,Bs(ua,N.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}So=fd,la=ad,Zs=Xf}function Ra(Va,Da,cc,V_=!1){if(So=void 0,la=void 0,Zs=void 0,cc){const fd=Va[0];if(gt(Rt)||!uwe(o,Sn,fd,V_))return;if(o1e(o,Sn,fd,Da,0,!1,void 0)){So=[fd];return}return fd}for(let fd=0;fd0),Rf(o),A||f.length===1||f.some(B=>!!B.typeParameters)?hyt(o,f,v,R):myt(f)}function myt(o){const f=Qo(o,Te=>Te.thisParameter);let v;f.length&&(v=Rnt(f,f.map(d1e)));const{min:A,max:R}=$Se(o,gyt),B=[];for(let Te=0;TeA1(St)?TeKB(St,Te))))}const Y=Qo(o,Te=>A1(Te)?yl(Te.parameters):void 0);let pe=128;if(Y.length!==0){const Te=hT(dc(Qo(o,APe),2));B.push(Mnt(Y,Te)),pe|=1}return o.some(Sae)&&(pe|=2),vw(o[0].declaration,void 0,v,B,vp(o.map(np)),void 0,A,pe)}function gyt(o){const f=o.parameters.length;return A1(o)?f-1:f}function Rnt(o,f){return Mnt(o,dc(f,2))}function Mnt(o,f){return r8(Dl(o),f)}function hyt(o,f,v,A){const R=vyt(f,Ki===void 0?v.length:Ki),B=f[R],{typeParameters:Y}=B;if(!Y)return B;const pe=yT(o)?o.typeArguments:void 0,Te=pe?CPe(B,Lnt(pe,Y,Cs(o))):yyt(o,Y,B,v,A);return f[R]=Te,Te}function Lnt(o,f,v){const A=o.map(nd);for(;A.length>f.length;)A.pop();for(;A.length=f)return R;Y>A&&(A=Y,v=R)}return v}function byt(o,f,v){if(o.expression.kind===108){const Te=WV(o.expression);if(bn(Te)){for(const Ue of o.arguments)Bf(Ue);return _i}if(!Fn(Te)){const Ue=YC($b(o));if(Ue){const St=kg(Te,Ue.typeArguments,Ue);return GV(o,St,f,v,0)}}return RO(o)}let A,R=Bf(o.expression);if(AN(o)){const Te=sfe(R,o.expression);A=Te===R?0:jz(o)?16:8,R=Te}else A=0;if(R=cy(R,o.expression,r1e),R===Tf)return xs;const B=yS(R);if(Fn(B))return qA(o);const Y=ed(B,0),pe=ed(B,1).length;if(l1e(R,B,Y.length,pe))return!Fn(R)&&o.typeArguments&&hn(o,N.Untyped_function_calls_may_not_accept_type_arguments),RO(o);if(!Y.length){if(pe)hn(o,N.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Co(R));else{let Te;if(o.arguments.length===1){const Ue=ts(o).text;Sb(Ue.charCodeAt(Ff(Ue,o.expression.end,!0)-1))&&(Te=Bs(o.expression,N.Are_you_missing_a_semicolon))}Xte(o.expression,B,0,Te)}return qA(o)}return v&8&&!o.typeArguments&&Y.some(Tyt)?(SGe(o,v),Sc):Y.some(Te=>Cs(Te.declaration)&&!!Q_e(Te.declaration))?(hn(o,N.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Co(R)),qA(o)):GV(o,Y,f,v,A)}function Tyt(o){return!!(o.typeParameters&&Qk(np(o)))}function l1e(o,f,v,A){return bn(o)||bn(f)&&!!(o.flags&262144)||!v&&!A&&!(f.flags&1048576)&&!(zI(f).flags&131072)&&Id(o,ci)}function Syt(o,f,v){if(o.arguments&&dt<1){const Y=lwe(o.arguments);Y>=0&&hn(o.arguments[Y],N.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let A=CK(o.expression);if(A===Tf)return xs;if(A=yS(A),Fn(A))return qA(o);if(bn(A))return o.typeArguments&&hn(o,N.Untyped_function_calls_may_not_accept_type_arguments),RO(o);const R=ed(A,1);if(R.length){if(!Eyt(o,R[0]))return qA(o);if(Ont(R,pe=>!!(pe.flags&4)))return hn(o,N.Cannot_create_an_instance_of_an_abstract_class),qA(o);const Y=A.symbol&&RS(A.symbol);return Y&&ul(Y,64)?(hn(o,N.Cannot_create_an_instance_of_an_abstract_class),qA(o)):GV(o,R,f,v,0)}const B=ed(A,0);if(B.length){const Y=GV(o,B,f,v,0);return Et||(Y.declaration&&!Ax(Y.declaration)&&np(Y)!==bl&&hn(o,N.Only_a_void_function_can_be_called_with_the_new_keyword),H4(Y)===bl&&hn(o,N.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Y}return Xte(o.expression,A,1),qA(o)}function Ont(o,f){return ls(o)?gt(o,v=>Ont(v,f)):o.compositeKind===1048576?gt(o.compositeSignatures,f):f(o)}function Yze(o,f){const v=l0(f);if(!Nt(v))return!1;const A=v[0];if(A.flags&2097152){const R=A.types,B=VZe(R);let Y=0;for(const pe of A.types){if(!B[Y]&&ji(pe)&3&&(pe.symbol===o||Yze(o,pe)))return!0;Y++}return!1}return A.symbol===o?!0:Yze(o,A)}function Eyt(o,f){if(!f||!f.declaration)return!0;const v=f.declaration,A=fk(v,6);if(!A||v.kind!==176)return!0;const R=RS(v.parent.symbol),B=sh(v.parent.symbol);if(!rm(o,R)){const Y=$b(o);if(Y&&A&4){const pe=nd(Y);if(Yze(v.parent.symbol,pe))return!0}return A&2&&hn(o,N.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Co(B)),A&4&&hn(o,N.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Co(B)),!1}return!0}function Fnt(o,f,v){let A;const R=v===0,B=XB(f),Y=B&&ed(B,v).length>0;if(f.flags&1048576){const Te=f.types;let Ue=!1;for(const St of Te)if(ed(St,v).length!==0){if(Ue=!0,A)break}else if(A||(A=Es(A,R?N.Type_0_has_no_call_signatures:N.Type_0_has_no_construct_signatures,Co(St)),A=Es(A,R?N.Not_all_constituents_of_type_0_are_callable:N.Not_all_constituents_of_type_0_are_constructable,Co(f))),Ue)break;Ue||(A=Es(void 0,R?N.No_constituent_of_type_0_is_callable:N.No_constituent_of_type_0_is_constructable,Co(f))),A||(A=Es(A,R?N.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Co(f)))}else A=Es(A,R?N.Type_0_has_no_call_signatures:N.Type_0_has_no_construct_signatures,Co(f));let pe=R?N.This_expression_is_not_callable:N.This_expression_is_not_constructable;if(xd(o.parent)&&o.parent.arguments.length===0){const{resolvedSymbol:Te}=rt(o);Te&&Te.flags&32768&&(pe=N.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Es(A,pe),relatedMessage:Y?N.Did_you_forget_to_use_await:void 0}}function Xte(o,f,v,A){const{messageChain:R,relatedMessage:B}=Fnt(o,f,v),Y=wN(ts(o),o,R);if(B&&ml(Y,Bs(o,B)),xd(o.parent)){const{start:pe,length:Te}=c1e(o.parent,!0);Y.start=pe,Y.length=Te}j_.add(Y),u1e(f,v,A?ml(Y,A):Y)}function u1e(o,f,v){if(!o.symbol)return;const A=Ae(o.symbol).originatingImport;if(A&&!Py(A)){const R=ed(La(Ae(o.symbol).target),f);if(!R||!R.length)return;ml(v,Bs(A,N.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 gwe(o,f,v){const A=Bf(o.tag),R=yS(A);if(Fn(R))return qA(o);const B=ed(R,0),Y=ed(R,1).length;if(l1e(A,R,B.length,Y))return RO(o);if(!B.length){if(Ed(o.parent)){const pe=Bs(o.tag,N.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 j_.add(pe),qA(o)}return Xte(o.tag,R,0),qA(o)}return GV(o,B,f,v,0)}function xyt(o){switch(o.parent.kind){case 263:case 231:return N.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return N.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return N.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return N.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return re.fail()}}function wfe(o,f,v){const A=Bf(o.expression),R=yS(A);if(Fn(R))return qA(o);const B=ed(R,0),Y=ed(R,1).length;if(l1e(A,R,B.length,Y))return RO(o);if(Lfe(o,B)&&!fE(o.expression)){const Te=Lv(o.expression,!1);return hn(o,N._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Te),qA(o)}const pe=xyt(o);if(!B.length){const Te=Fnt(o.expression,R,0),Ue=Es(Te.messageChain,pe),St=wN(ts(o.expression),o.expression,Ue);return Te.relatedMessage&&ml(St,Bs(o.expression,Te.relatedMessage)),j_.add(St),u1e(R,0,St),qA(o)}return GV(o,B,f,v,0,pe)}function hwe(o,f){const v=aL(o),A=v&&L2(v),R=A&&Ci(A,dE.Element,788968),B=R&&Wr.symbolToEntityName(R,788968,o),Y=he.createFunctionTypeNode(void 0,[he.createParameterDeclaration(void 0,void 0,"props",void 0,Wr.typeToTypeNode(f,o))],B?he.createTypeReferenceNode(B,void 0):he.createKeywordTypeNode(133)),pe=tp(1,"props");return pe.links.type=f,vw(Y,void 0,void 0,[pe],R?sh(R):Sr,void 0,1,0)}function Rfe(o,f,v){if(BV(o.tagName)){const Y=Lze(o),pe=hwe(o,Y);return rN(RK(o.attributes,Xbe(pe,o),void 0,0),Y,o.tagName,o.attributes),Nt(o.typeArguments)&&(Ot(o.typeArguments,On),j_.add(Yz(ts(o),o.typeArguments,N.Expected_0_type_arguments_but_got_1,0,Nt(o.typeArguments)))),pe}const A=Bf(o.tagName),R=yS(A);if(Fn(R))return qA(o);const B=cnt(A,o);return l1e(A,R,B.length,0)?RO(o):B.length===0?(hn(o.tagName,N.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Lv(o.tagName)),qA(o)):GV(o,B,f,v,0)}function Mfe(o,f,v){const A=Bf(o.right);if(!bn(A)){const R=mGe(A);if(R){const B=yS(R);if(Fn(B))return qA(o);const Y=ed(B,0),pe=ed(B,1);if(l1e(R,B,Y.length,pe.length))return RO(o);if(Y.length)return GV(o,Y,f,v,0)}else if(!(k0(A)||nL(A,ci)))return hn(o.right,N.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),qA(o)}return _i}function Lfe(o,f){return f.length&&jr(f,v=>v.minArgumentCount===0&&!A1(v)&&v.parameters.length1?kv(o.arguments[1]):void 0;for(let B=2;B{const Y=z2(R);vbe(B,Y)||Cte(R,B,v,N.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 Dyt(o){const f=Bf(o.expression),v=sfe(f,o.expression);return gNe(Dw(v),o,v!==f)}function Iyt(o){return o.flags&64?Dyt(o):Dw(Bf(o.expression))}function znt(o){if(RSt(o),Ot(o.typeArguments,On),o.kind===233){const v=IS(o.parent);v.kind===226&&v.operatorToken.kind===104&&Lx(o,v.right)&&hn(o,N.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const f=o.kind===233?Bf(o.expression):E2(o.exprName)?Ube(o.exprName):Bf(o.exprName);return Gnt(f,o)}function Gnt(o,f){const v=f.typeArguments;if(o===Tf||Fn(o)||!gt(v))return o;let A=!1,R;const B=pe(o),Y=A?R:o;return Y&&j_.add(Yz(ts(f),v,N.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Co(Y))),B;function pe(Ue){let St=!1,Rt=!1;const rn=Sn(Ue);return A||(A=Rt),St&&!Rt&&(R??(R=Ue)),rn;function Sn(xr){if(xr.flags&524288){const Ai=Gh(xr),So=Te(Ai.callSignatures),la=Te(Ai.constructSignatures);if(St||(St=Ai.callSignatures.length!==0||Ai.constructSignatures.length!==0),Rt||(Rt=So.length!==0||la.length!==0),So!==Ai.callSignatures||la!==Ai.constructSignatures){const Zs=sy(void 0,Ai.members,So,la,Ai.indexInfos);return Zs.objectFlags|=8388608,Zs.node=f,Zs}}else if(xr.flags&58982400){const Ai=US(xr);if(Ai){const So=Sn(Ai);if(So!==Ai)return So}}else{if(xr.flags&1048576)return Th(xr,pe);if(xr.flags&2097152)return vp(Ol(xr.types,Sn))}return xr}}function Te(Ue){const St=gi(Ue,Rt=>!!Rt.typeParameters&&fwe(Rt,v));return Ol(St,Rt=>{const rn=qze(Rt,v,!0);return rn?QP(Rt,rn,Cs(Rt.declaration)):Rt})}}function kyt(o){return On(o.type),nGe(o.expression,o.type)}function nGe(o,f,v){const A=Bf(o,v),R=Xl(f);if(Fn(R))return R;const B=Ua(f.parent,Y=>Y.kind===238||Y.kind===357);return rN(A,R,B,o,N.Type_0_does_not_satisfy_the_expected_type_1),A}function Pyt(o){return Zkt(o),o.keywordToken===105?rGe(o):o.keywordToken===102?Nyt(o):re.assertNever(o.keywordToken)}function jnt(o){switch(o.keywordToken){case 102:return det();case 105:const f=rGe(o);return Fn(f)?Sr:Gyt(f);default:re.assertNever(o.keywordToken)}}function rGe(o){const f=aSe(o);if(f)if(f.kind===176){const v=sc(f.parent);return La(v)}else{const v=sc(f);return La(v)}else return hn(o,N.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Sr}function Nyt(o){Ie===100||Ie===199?ts(o).impliedNodeFormat!==99&&hn(o,N.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):Ie<6&&Ie!==4&&hn(o,N.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const f=ts(o);return re.assert(!!(f.flags&8388608),"Containing file is missing import meta node flag."),o.name.escapedText==="meta"?kPe():Sr}function d1e(o){const f=o.valueDeclaration;return mb(La(o),!1,!!f&&(J2(f)||hG(f)))}function Ewe(o,f,v="arg"){return o?(re.assert(xn(o.name)),o.name.escapedText):`${v}_${f}`}function kK(o,f,v){const A=o.parameters.length-(A1(o)?1:0);if(f=A-1)return f===A-1?B:hT(u0(B,Lr));const Y=[],pe=[],Te=[];for(let Ue=f;Ue!(Te&1)),pe=Y<0?B.target.fixedLength:Y;pe>0&&(R=o.parameters.length-1+pe)}}if(R===void 0){if(!v&&o.flags&32)return 0;R=o.minArgumentCount}if(A)return R;for(let B=R-1;B>=0;B--){const Y=XI(o,B);if(lv(Y,Ant).flags&131072)break;R=B}o.resolvedMinArgumentCount=R}return o.resolvedMinArgumentCount}function $k(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]);return!Dp(f)||f.target.hasRestElement}return!1}function Wfe(o){if(A1(o)){const f=La(o.parameters[o.parameters.length-1]);if(!Dp(f))return f;if(f.target.hasRestElement)return bte(f,f.target.fixedLength)}}function Qte(o){const f=Wfe(o);return f&&!kE(f)&&!bn(f)?f:void 0}function aGe(o){return Zte(o,Tc)}function Zte(o,f){return o.parameters.length>0?XI(o,0):f}function sGe(o,f,v){const A=o.parameters.length-(A1(o)?1:0);for(let R=0;R=0);const B=Lh(A.parent)?La(sc(A.parent.parent)):rp(A.parent),Y=Lh(A.parent)?Ce:Ug(A.parent),pe=HA(R),Te=gx("target",B),Ue=gx("propertyKey",Y),St=gx("parameterIndex",pe);v.decoratorSignature=Kfe(void 0,void 0,[Te,Ue,St],bl);break}case 174:case 177:case 178:case 172:{const A=f;if(!Fl(A.parent))break;const R=rp(A),B=gx("target",R),Y=Ug(A),pe=gx("propertyKey",Y),Te=nu(A)?bl:VWe(nd(A));if(dt!==0&&(!nu(f)||e_(f))){const St=VWe(nd(A)),Rt=gx("descriptor",St);v.decoratorSignature=Kfe(void 0,void 0,[B,pe,Rt],dc([Te,bl]))}else v.decoratorSignature=Kfe(void 0,void 0,[B,pe],dc([Te,bl]));break}}return v.decoratorSignature===_i?void 0:v.decoratorSignature}function cGe(o){return ct?Hnt(o):Unt(o)}function m1e(o){const f=yte(!0);return f!==Ka?(o=gM(lne(o))||Io,qv(f,[o])):Io}function g1e(o){const f=met(!0);return f!==Ka?(o=gM(lne(o))||Io,qv(f,[o])):Io}function h1e(o,f){const v=m1e(f);return v===Io?(hn(o,Py(o)?N.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Sr):(BWe(!0)||hn(o,Py(o)?N.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:N.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),v)}function Gyt(o){const f=tp(0,"NewTargetExpression"),v=tp(4,"target",8);v.parent=f,v.links.type=o;const A=zd([v]);return f.members=A,sy(f,A,Yn,Yn,Yn)}function Awe(o,f){if(!o.body)return Sr;const v=ob(o),A=(v&2)!==0,R=(v&1)!==0;let B,Y,pe,Te=bl;if(o.body.kind!==241)B=kv(o.body,f&&f&-9),A&&(B=lne(cne(B,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(R){const Ue=Knt(o,f);Ue?Ue.length>0&&(B=dc(Ue,2)):Te=Tc;const{yieldTypes:St,nextTypes:Rt}=jyt(o,f);Y=gt(St)?dc(St,2):void 0,pe=gt(Rt)?vp(Rt):void 0}else{const Ue=Knt(o,f);if(!Ue)return v&2?h1e(o,Tc):Tc;if(Ue.length===0){const St=$Ne(o,void 0),Rt=St&&(dne(St,v)||bl).flags&32768?Ce:bl;return v&2?h1e(o,Rt):Rt}B=dc(Ue,2)}if(B||Y||pe){if(Y&&lfe(o,Y,3),B&&lfe(o,B,1),pe&&lfe(o,pe,2),B&&UI(B)||Y&&UI(Y)||pe&&UI(pe)){const Ue=YNe(o),St=Ue?Ue===gb(o)?R?void 0:B:qbe(np(Ue),o,void 0):void 0;R?(Y=uNe(Y,St,0,A),B=uNe(B,St,1,A),pe=uNe(pe,St,2,A)):B=zBe(B,St,A)}Y&&(Y=z2(Y)),B&&(B=z2(B)),pe&&(pe=z2(pe))}return R?Cwe(Y||Tc,B||Te,pe||JNe(2,o)||Io,A):A?m1e(B||Te):B||Te}function Cwe(o,f,v,A){const R=A?bm:ay,B=R.getGlobalGeneratorType(!1);if(o=R.resolveIterationType(o,void 0)||Io,f=R.resolveIterationType(f,void 0)||Io,v=R.resolveIterationType(v,void 0)||Io,B===Ka){const Y=R.getGlobalIterableIteratorType(!1),pe=Y!==Ka?Lrt(Y,R):void 0,Te=pe?pe.returnType:Ge,Ue=pe?pe.nextType:Ce;return Id(f,Te)&&Id(Ue,v)?Y!==Ka?lK(Y,[o]):(R.getGlobalIterableIteratorType(!0),M_):(R.getGlobalGeneratorType(!0),M_)}return lK(B,[o,f,v])}function jyt(o,f){const v=[],A=[],R=(ob(o)&2)!==0;return hie(o.body,B=>{const Y=B.expression?Bf(B.expression,f):kt;Dy(v,Jnt(B,Y,Ge,R));let pe;if(B.asteriskToken){const Te=e_e(Y,R?19:17,B.expression);pe=Te&&Te.nextType}else pe=NE(B,void 0);pe&&Dy(A,pe)}),{yieldTypes:v,nextTypes:A}}function Jnt(o,f,v,A){const R=o.expression||o,B=o.asteriskToken?Kk(A?19:17,f,v,R):f;return A?XB(B,R,o.asteriskToken?N.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):B}function $nt(o,f,v){let A=0;for(let R=0;R=f?v[R]:void 0;A|=B!==void 0?Dae.get(B)||32768:0}return A}function qnt(o){const f=rt(o);if(f.isExhaustive===void 0){f.isExhaustive=0;const v=lGe(o);f.isExhaustive===0&&(f.isExhaustive=v)}else f.isExhaustive===0&&(f.isExhaustive=!1);return f.isExhaustive}function lGe(o){if(o.expression.kind===221){const A=Fbe(o);if(!A)return!1;const R=tM(kv(o.expression.expression)),B=$nt(0,0,A);return R.flags&3?(556800&B)===556800:!Uk(R,Y=>vK(Y,B)===B)}const f=kv(o.expression);if(!afe(f))return!1;const v=Obe(o);return!v.length||gt(v,lNe)?!1:mht(Th(f,$S),v)}function NK(o){return o.endFlowNode&&Wte(o.endFlowNode)}function Knt(o,f){const v=ob(o),A=[];let R=NK(o),B=!1;if(dR(o.body,Y=>{let pe=Y.expression;if(pe){if(pe=rg(pe,!0),v&2&&pe.kind===223&&(pe=rg(pe.expression,!0)),pe.kind===213&&pe.expression.kind===80&&kv(pe.expression).symbol===o.symbol){B=!0;return}let Te=kv(pe,f&&f&-9);v&2&&(Te=lne(cne(Te,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Te.flags&131072&&(B=!0),Dy(A,Te)}else R=!0}),!(A.length===0&&!R&&(B||Vyt(o))))return Ke&&A.length&&R&&!(Ax(o)&&A.some(Y=>Y.symbol===o.symbol))&&Dy(A,Ce),A}function Vyt(o){switch(o.kind){case 218:case 219:return!0;case 174:return o.parent.kind===210;default:return!1}}function uGe(o,f){i(v);return;function v(){const A=ob(o),R=f&&dne(f,A);if(R&&(Ty(R,16384)||R.flags&32769)||o.kind===173||ny(o.body)||o.body.kind!==241||!NK(o))return;const B=o.flags&1024,Y=kS(o)||o;if(R&&R.flags&131072)hn(Y,N.A_function_returning_never_cannot_have_a_reachable_end_point);else if(R&&!B)hn(Y,N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(R&&Ke&&!Id(Ce,R))hn(Y,N.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Pe.noImplicitReturns){if(!R){if(!B)return;const pe=np(gb(o));if($Ge(o,pe))return}hn(Y,N.Not_all_code_paths_return_a_value)}}}function zfe(o,f){if(re.assert(o.kind!==174||iC(o)),Rf(o),Jm(o)&&UV(o,o.name),f&&f&4&&Sx(o)){if(!kS(o)&&!YH(o)){const A=vfe(o);if(A&&Iw(np(A))){const R=rt(o);if(R.contextFreeType)return R.contextFreeType;const B=Awe(o,f),Y=vw(void 0,void 0,void 0,Yn,B,void 0,0,64),pe=sy(o.symbol,Fe,[Y],Yn,Yn);return pe.objectFlags|=262144,R.contextFreeType=pe}}return Qi}return!Qrt(o)&&o.kind===218&&b0t(o),cL(o,f),La(sc(o))}function cL(o,f){const v=rt(o);if(!(v.flags&64)){const A=vfe(o);if(!(v.flags&64)){v.flags|=64;const R=pp(ed(La(sc(o)),0));if(!R)return;if(Sx(o))if(A){const B=g5(o);let Y;if(f&&f&2){sGe(R,A,B);const pe=Wfe(A);pe&&pe.flags&262144&&(Y=wV(A,B.nonFixingMapper))}Y||(Y=B?wV(A,B.mapper):A),wyt(R,Y)}else xwe(R);else if(A&&!o.typeParameters&&A.parameters.length>o.parameters.length){const B=g5(o);f&&f&2&&sGe(R,A,B)}if(A&&!sK(o)&&!R.resolvedReturnType){const B=Awe(o,f);R.resolvedReturnType||(R.resolvedReturnType=B)}Vfe(o)}}}function fGe(o){re.assert(o.kind!==174||iC(o));const f=ob(o),v=sK(o);if(uGe(o,v),o.body)if(kS(o)||np(gb(o)),o.body.kind===241)On(o.body);else{const A=Bf(o.body),R=v&&dne(v,f);if(R)if((f&3)===2){const B=cne(A,!1,o.body,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);rN(B,R,o.body,o.body)}else rN(A,R,o.body,o.body)}}function Dwe(o,f,v,A=!1){if(!Id(f,mf)){const R=A&&WK(f);return fm(o,!!R&&Id(R,mf),v),!1}return!0}function _Ge(o){if(!xd(o)||!A7(o))return!1;const f=kv(o.arguments[2]);if(Xe(f,"value")){const R=Yd(f,"writable"),B=R&&La(R);if(!B||B===vo||B===Ro)return!0;if(R&&R.valueDeclaration&&tl(R.valueDeclaration)){const Y=R.valueDeclaration.initializer,pe=Bf(Y);if(pe===vo||pe===Ro)return!0}return!1}return!Yd(f,"set")}function z1(o){return!!(I_(o)&8||o.flags&4&&Vy(o)&8||o.flags&3&&nwe(o)&6||o.flags&98304&&!(o.flags&65536)||o.flags&8||gt(o.declarations,_Ge))}function dGe(o,f,v){var A,R;if(v===0)return!1;if(z1(f)){if(f.flags&4&&Kf(o)&&o.expression.kind===110){const B=zE(o);if(!(B&&(B.kind===176||Ax(B))))return!0;if(f.valueDeclaration){const Y=Ds(f.valueDeclaration),pe=B.parent===f.valueDeclaration.parent,Te=B===f.valueDeclaration.parent,Ue=Y&&((A=f.parent)==null?void 0:A.valueDeclaration)===B.parent,St=Y&&((R=f.parent)==null?void 0:R.valueDeclaration)===B;return!(pe||Te||Ue||St)}}return!0}if(Kf(o)){const B=rg(o.expression);if(B.kind===80){const Y=rt(B).resolvedSymbol;if(Y.flags&2097152){const pe=UT(Y);return!!pe&&pe.kind===274}}}return!1}function jV(o,f,v){const A=iv(o,7);return A.kind!==80&&!Kf(A)?(hn(o,f),!1):A.flags&64?(hn(o,v),!1):!0}function Nw(o){Bf(o.expression);const f=rg(o.expression);if(!Kf(f))return hn(f,N.The_operand_of_a_delete_operator_must_be_a_property_reference),Pc;Ac(f)&&Lu(f.name)&&hn(f,N.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const v=rt(f),A=eA(v.resolvedSymbol);return A&&(z1(A)?hn(f,N.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Iwe(f,A)),Pc}function Iwe(o,f){const v=La(f);Ke&&!(v.flags&131075)&&!(qt?f.flags&16777216:DC(v,16777216))&&hn(o,N.The_operand_of_a_delete_operator_must_be_optional)}function pGe(o){return Bf(o.expression),oO}function Xnt(o){return Rf(o),kt}function kwe(o){let f=!1;const v=vie(o);if(v&&Ep(v)){const A=ys(o)?N.await_expression_cannot_be_used_inside_a_class_static_block:N.await_using_statements_cannot_be_used_inside_a_class_static_block;hn(o,A),f=!0}else if(!(o.flags&65536))if(GE(o)){const A=ts(o);if(!$V(A)){let R;if(!VM(A,Pe)){R??(R=M0(A,o.pos));const B=ys(o)?N.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:N.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,Y=Pp(A,R.start,R.length,B);j_.add(Y),f=!0}switch(Ie){case 100:case 199:if(A.impliedNodeFormat===1){R??(R=M0(A,o.pos)),j_.add(Pp(A,R.start,R.length,N.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),f=!0;break}case 7:case 99:case 4:if(dt>=4)break;default:R??(R=M0(A,o.pos));const B=ys(o)?N.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:N.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;j_.add(Pp(A,R.start,R.length,B)),f=!0;break}}}else{const A=ts(o);if(!$V(A)){const R=M0(A,o.pos),B=ys(o)?N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,Y=Pp(A,R.start,R.length,B);if(v&&v.kind!==176&&!(ob(v)&2)){const pe=Bs(v,N.Did_you_mean_to_mark_this_function_as_async);ml(Y,pe)}j_.add(Y),f=!0}}return ys(o)&&HNe(o)&&(hn(o,N.await_expressions_cannot_be_used_in_a_parameter_initializer),f=!0),f}function Ynt(o){i(()=>kwe(o));const f=Bf(o.expression),v=cne(f,!0,o,N.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return v===f&&!Fn(v)&&!(f.flags&3)&&v_(!1,Bs(o,N.await_has_no_effect_on_the_type_of_this_expression)),v}function Qnt(o){const f=Bf(o.operand);if(f===Tf)return Tf;switch(o.operand.kind){case 9:switch(o.operator){case 41:return NV(HA(-o.operand.text));case 40:return NV(HA(+o.operand.text))}break;case 10:if(o.operator===41)return NV(sM({negative:!0,base10Value:l3(o.operand.text)}))}switch(o.operator){case 40:case 41:case 55:return lh(f,o.operand),rne(f,12288)&&hn(o.operand,N.The_0_operator_cannot_be_applied_to_type_symbol,Cf(o.operator)),o.operator===40?(rne(f,2112)&&hn(o.operand,N.Operator_0_cannot_be_applied_to_type_1,Cf(o.operator),Co(pM(f))),Lr):y1e(f);case 54:Zfe(f,o.operand);const v=vK(f,12582912);return v===4194304?vo:v===8388608?Ts:Pc;case 46:case 47:return Dwe(o.operand,lh(f,o.operand),N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&jV(o.operand,N.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,N.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),y1e(f)}return Sr}function Uyt(o){const f=Bf(o.operand);return f===Tf?Tf:(Dwe(o.operand,lh(f,o.operand),N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&jV(o.operand,N.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,N.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),y1e(f))}function y1e(o){return Ty(o,2112)?zb(o,3)||Ty(o,296)?mf:qi:Lr}function rne(o,f){if(Ty(o,f))return!0;const v=tM(o);return!!v&&Ty(v,f)}function Ty(o,f){if(o.flags&f)return!0;if(o.flags&3145728){const v=o.types;for(const A of v)if(Ty(A,f))return!0}return!1}function zb(o,f,v){return o.flags&f?!0:v&&o.flags&114691?!1:!!(f&296)&&Id(o,Lr)||!!(f&2112)&&Id(o,qi)||!!(f&402653316)&&Id(o,Nn)||!!(f&528)&&Id(o,Pc)||!!(f&16384)&&Id(o,bl)||!!(f&131072)&&Id(o,Tc)||!!(f&65536)&&Id(o,mn)||!!(f&32768)&&Id(o,Ce)||!!(f&4096)&&Id(o,hc)||!!(f&67108864)&&Id(o,G_)}function Gfe(o,f,v){return o.flags&1048576?jr(o.types,A=>Gfe(A,f,v)):zb(o,f,v)}function Pwe(o){return!!(ji(o)&16)&&!!o.symbol&&Nwe(o.symbol)}function Nwe(o){return(o.flags&128)!==0}function mGe(o){const f=zGe("hasInstance"),v=$6(o,f);if(v){const A=La(v);if(A&&ed(A,0).length!==0)return A}}function Hyt(o,f,v,A,R){if(v===Tf||A===Tf)return Tf;!bn(v)&&Gfe(v,402784252)&&hn(o,N.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),re.assert(jie(o.parent));const B=y5(o.parent,void 0,R);if(B===Sc)return Tf;const Y=np(B);return a1(Y,Pc,f,N.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),Pc}function Jyt(o){return Uk(o,f=>f===qo||!!(f.flags&2097152)&&VI(tM(f)))}function gGe(o,f,v,A){if(v===Tf||A===Tf)return Tf;if(Lu(o)){if(dt<99&&yb(o,2097152),!rt(o).resolvedSymbol&&$b(o)){const R=i1e(o,A.symbol,!0);bnt(o,A,R)}}else a1(lh(v,o),xa,o);return a1(lh(A,f),G_,f)&&Jyt(A)&&hn(f,N.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Co(A)),Pc}function Znt(o,f,v){const A=o.properties;if(Ke&&A.length===0)return lh(f,o);for(let R=0;Rbte(Ue,v)):hT(A);return lL(pe,Te,R)}}}}function lL(o,f,v,A){let R;if(o.kind===304){const B=o;B.objectAssignmentInitializer&&(Ke&&!DC(Bf(B.objectAssignmentInitializer),16777216)&&(f=IC(f,524288)),Kyt(B.name,B.equalsToken,B.objectAssignmentInitializer,v)),R=o.name}else R=o;return R.kind===226&&R.operatorToken.kind===64&&(Kt(R,v),R=R.left,Ke&&(f=IC(f,524288))),R.kind===210?Znt(R,f,A):R.kind===209?ert(R,f,v):nrt(R,f,v)}function nrt(o,f,v){const A=Bf(o,v),R=o.parent.kind===305?N.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:N.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,B=o.parent.kind===305?N.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:N.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return jV(o,R,B)&&rN(f,A,o,o),u9(o)&&yb(o.parent,1048576),f}function v1e(o){switch(o=rg(o),o.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 v1e(o.whenTrue)&&v1e(o.whenFalse);case 226:return pk(o.operatorToken.kind)?!1:v1e(o.left)&&v1e(o.right);case 224:case 225:switch(o.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function hGe(o,f){return(f.flags&98304)!==0||vbe(o,f)}function $yt(){const o=zG(f,v,A,R,B,Y);return(rn,Sn)=>{const xr=o(rn,Sn);return re.assertIsDefined(xr),xr};function f(rn,Sn,xr){return Sn?(Sn.stackIndex++,Sn.skip=!1,Ue(Sn,void 0),Rt(Sn,void 0)):Sn={checkMode:xr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Cs(rn)&&I9(rn)?(Sn.skip=!0,Rt(Sn,Bf(rn.right,xr)),Sn):(qyt(rn),rn.operatorToken.kind===64&&(rn.left.kind===210||rn.left.kind===209)&&(Sn.skip=!0,Rt(Sn,lL(rn.left,Bf(rn.right,xr),xr,rn.right.kind===110))),Sn)}function v(rn,Sn,xr){if(!Sn.skip)return pe(Sn,rn)}function A(rn,Sn,xr){if(!Sn.skip){const Ai=St(Sn);re.assertIsDefined(Ai),Ue(Sn,Ai),Rt(Sn,void 0);const So=rn.kind;if(W7(So)){let la=xr.parent;for(;la.kind===217||DH(la);)la=la.parent;(So===56||bk(la))&&v5(xr.left,Ai,bk(la)?la.thenStatement:void 0),Zfe(Ai,xr.left)}}}function R(rn,Sn,xr){if(!Sn.skip)return pe(Sn,rn)}function B(rn,Sn){let xr;if(Sn.skip)xr=St(Sn);else{const Ai=Te(Sn);re.assertIsDefined(Ai);const So=St(Sn);re.assertIsDefined(So),xr=rrt(rn.left,rn.operatorToken,rn.right,Ai,So,Sn.checkMode,rn)}return Sn.skip=!1,Ue(Sn,void 0),Rt(Sn,void 0),Sn.stackIndex--,xr}function Y(rn,Sn,xr){return Rt(rn,Sn),rn}function pe(rn,Sn){if(Ds(Sn))return Sn;Rt(rn,Bf(Sn,rn.checkMode))}function Te(rn){return rn.typeStack[rn.stackIndex]}function Ue(rn,Sn){rn.typeStack[rn.stackIndex]=Sn}function St(rn){return rn.typeStack[rn.stackIndex+1]}function Rt(rn,Sn){rn.typeStack[rn.stackIndex+1]=Sn}}function qyt(o){const{left:f,operatorToken:v,right:A}=o;v.kind===61&&(Ds(f)&&(f.operatorToken.kind===57||f.operatorToken.kind===56)&&Uo(f,N._0_and_1_operations_cannot_be_mixed_without_parentheses,Cf(f.operatorToken.kind),Cf(v.kind)),Ds(A)&&(A.operatorToken.kind===57||A.operatorToken.kind===56)&&Uo(A,N._0_and_1_operations_cannot_be_mixed_without_parentheses,Cf(A.operatorToken.kind),Cf(v.kind)))}function Kyt(o,f,v,A,R){const B=f.kind;if(B===64&&(o.kind===210||o.kind===209))return lL(o,Bf(v,A),A,v.kind===110);let Y;W7(B)?Y=fne(o,A):Y=Bf(o,A);const pe=Bf(v,A);return rrt(o,f,v,Y,pe,A,R)}function rrt(o,f,v,A,R,B,Y){const pe=f.kind;switch(pe){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(A===Tf||R===Tf)return Tf;A=lh(A,o),R=lh(R,v);let mo;if(A.flags&528&&R.flags&528&&(mo=rn(f.kind))!==void 0)return hn(Y||f,N.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Cf(f.kind),Cf(mo)),Lr;{const Va=Dwe(o,A,N.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Da=Dwe(v,R,N.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let cc;if(zb(A,3)&&zb(R,3)||!(Ty(A,2112)||Ty(R,2112)))cc=Lr;else if(Te(A,R)){switch(pe){case 50:case 73:So();break;case 43:case 68:dt<3&&hn(Y,N.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}cc=qi}else So(Te),cc=Sr;return Va&&Da&&Sn(cc),cc}case 40:case 65:if(A===Tf||R===Tf)return Tf;!zb(A,402653316)&&!zb(R,402653316)&&(A=lh(A,o),R=lh(R,v));let Ya;return zb(A,296,!0)&&zb(R,296,!0)?Ya=Lr:zb(A,2112,!0)&&zb(R,2112,!0)?Ya=qi:zb(A,402653316,!0)||zb(R,402653316,!0)?Ya=Nn:(bn(A)||bn(R))&&(Ya=Fn(A)||Fn(R)?Sr:Ge),Ya&&!Rt(pe)?Ya:Ya?(pe===65&&Sn(Ya),Ya):(So((Da,cc)=>zb(Da,402655727)&&zb(cc,402655727)),Ge);case 30:case 32:case 33:case 34:return Rt(pe)&&(A=Pbe(lh(A,o)),R=Pbe(lh(R,v)),Ai((Va,Da)=>{if(bn(Va)||bn(Da))return!0;const cc=Id(Va,mf),V_=Id(Da,mf);return cc&&V_||!cc&&!V_&&bbe(Va,Da)})),Pc;case 35:case 36:case 37:case 38:if(!(B&&B&64)){if((Zre(o)||Zre(v))&&(!Cs(o)||pe===37||pe===38)){const Va=pe===35||pe===37;hn(Y,N.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Va?"false":"true")}Zs(Y,pe,o,v),Ai((Va,Da)=>hGe(Va,Da)||hGe(Da,Va))}return Pc;case 104:return Hyt(o,v,A,R,B);case 103:return gGe(o,v,A,R);case 56:case 77:{const Va=DC(A,4194304)?dc([_tt(Ke?A:pM(R)),R]):A;return pe===77&&Sn(R),Va}case 57:case 76:{const Va=DC(A,8388608)?dc([Dw(_Ne(A)),R],2):A;return pe===76&&Sn(R),Va}case 61:case 78:{const Va=DC(A,262144)?dc([Dw(A),R],2):A;return pe===78&&Sn(R),Va}case 64:const Ra=Ds(o.parent)?jy(o.parent):0;return Ue(Ra,R),xr(Ra)?((!(R.flags&524288)||Ra!==2&&Ra!==6&&!_M(R)&&!wte(R)&&!(ji(R)&1))&&Sn(R),A):(Sn(R),R);case 28:if(!Pe.allowUnreachableCode&&v1e(o)&&!St(o.parent)){const Va=ts(o),Da=Va.text,cc=Ff(Da,o.pos);Va.parseDiagnostics.some(fd=>fd.code!==N.JSX_expressions_must_have_one_parent_element.code?!1:tb(fd,cc))||hn(o,N.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return R;default:return re.fail()}function Te(mo,Ya){return zb(mo,2112)&&zb(Ya,2112)}function Ue(mo,Ya){if(mo===2)for(const Ra of W2(Ya)){const Va=La(Ra);if(Va.symbol&&Va.symbol.flags&32){const Da=Ra.escapedName,cc=gg(Ra.valueDeclaration,Da,788968,void 0,Da,!1);cc!=null&&cc.declarations&&cc.declarations.some(zJ)&&(TE(cc,N.Duplicate_identifier_0,Ic(Da),Ra),TE(Ra,N.Duplicate_identifier_0,Ic(Da),cc))}}}function St(mo){return mo.parent.kind===217&&S1(mo.left)&&mo.left.text==="0"&&(xd(mo.parent.parent)&&mo.parent.parent.expression===mo.parent||mo.parent.parent.kind===215)&&(Kf(mo.right)||xn(mo.right)&&mo.right.escapedText==="eval")}function Rt(mo){const Ya=rne(A,12288)?o:rne(R,12288)?v:void 0;return Ya?(hn(Ya,N.The_0_operator_cannot_be_applied_to_type_symbol,Cf(mo)),!1):!0}function rn(mo){switch(mo){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Sn(mo){pk(pe)&&i(Ya);function Ya(){let Ra=A;if(lj(f.kind)&&o.kind===211&&(Ra=Dfe(o,void 0,!0)),jV(o,N.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Va;if(qt&&Ac(o)&&Ty(mo,32768)){const Da=Xe(s1(o.expression),o.name.escapedText);Z4(mo,Da)&&(Va=N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}rN(mo,Ra,o,v,Va)}}}function xr(mo){var Ya;switch(mo){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Ra=hx(o),Va=I9(v);return!!Va&&el(Va)&&!!((Ya=Ra==null?void 0:Ra.exports)!=null&&Ya.size);default:return!1}}function Ai(mo){return mo(A,R)?!1:(So(mo),!0)}function So(mo){let Ya=!1;const Ra=Y||f;if(mo){const fd=gM(A),ad=gM(R);Ya=!(fd===A&&ad===R)&&!!(fd&&ad)&&mo(fd,ad)}let Va=A,Da=R;!Ya&&mo&&([Va,Da]=wwe(A,R,mo));const[cc,V_]=DE(Va,Da);la(Ra,Ya,cc,V_)||fm(Ra,Ya,N.Operator_0_cannot_be_applied_to_types_1_and_2,Cf(f.kind),cc,V_)}function la(mo,Ya,Ra,Va){switch(f.kind){case 37:case 35:case 38:case 36:return fm(mo,Ya,N.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ra,Va);default:return}}function Zs(mo,Ya,Ra,Va){const Da=ba(rg(Ra)),cc=ba(rg(Va));if(Da||cc){const V_=hn(mo,N.This_condition_will_always_return_0,Cf(Ya===37||Ya===35?97:112));if(Da&&cc)return;const fd=Ya===38||Ya===36?Cf(54):"",ad=Da?Va:Ra,Xf=rg(ad);ml(V_,Bs(ad,N.Did_you_mean_0,`${fd}Number.isNaN(${Tg(Xf)?iE(Xf):"..."})`))}}function ba(mo){if(xn(mo)&&mo.escapedText==="NaN"){const Ya=JS();return!!Ya&&Ya===xD(mo)}return!1}}function wwe(o,f,v){let A=o,R=f;const B=pM(o),Y=pM(f);return v(B,Y)||(A=B,R=Y),[A,R]}function irt(o){i(rn);const f=zE(o);if(!f)return Ge;const v=ob(f);if(!(v&1))return Ge;const A=(v&2)!==0;o.asteriskToken&&(A&&dt<99&&yb(o,26624),!A&&dt<2&&Pe.downlevelIteration&&yb(o,256));let R=sK(f);R&&R.flags&1048576&&(R=lv(R,Sn=>AGe(Sn,v,void 0)));const B=R&&JGe(R,A),Y=B&&B.yieldType||Ge,pe=B&&B.nextType||Ge,Te=A?XB(pe)||Ge:pe,Ue=o.expression?Bf(o.expression):kt,St=Jnt(o,Ue,Te,A);if(R&&St&&rN(St,Y,o.expression||o,o.expression),o.asteriskToken)return $we(A?19:17,1,Ue,o.expression)||Ge;if(R)return b5(2,R,A)||Ge;let Rt=JNe(2,f);return Rt||(Rt=Ge,i(()=>{if(Et&&!QSe(o)){const Sn=NE(o,void 0);(!Sn||bn(Sn))&&hn(o,N.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Rt;function rn(){o.flags&16384||vT(o,N.A_yield_expression_is_only_allowed_in_a_generator_body),HNe(o)&&hn(o,N.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Xyt(o,f){const v=fne(o.condition,f);v5(o.condition,v,o.whenTrue);const A=Bf(o.whenTrue,f),R=Bf(o.whenFalse,f);return dc([A,R],2)}function wK(o){const f=o.parent;return fE(f)&&wK(f)||Hm(f)&&f.argumentExpression===o}function Yyt(o){const f=[o.head.text],v=[];for(const R of o.templateSpans){const B=Bf(R.expression);rne(B,12288)&&hn(R.expression,N.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),f.push(R.literal.text),v.push(Id(B,Cp)?B:Nn)}if(one(o)||wK(o)||Uk(NE(o,void 0)||Io,Qyt))return MB(f,v);const A=o.parent.kind!==215&&hr(o);return A?NV(vS(A)):Nn}function Qyt(o){return!!(o.flags&134217856||o.flags&58982400&&Ty(US(o)||Io,402653316))}function b1e(o){return CR(o)&&!nF(o.parent)?o.parent.parent:o}function RK(o,f,v,A){const R=b1e(o);jte(R,f,!1),Bht(R,v);const B=Bf(o,A|1|(v?2:0));v&&v.intraExpressionInferenceSites&&(v.intraExpressionInferenceSites=void 0);const Y=Ty(B,2944)&&Rwe(B,qbe(f,o,void 0))?$S(B):B;return zht(),Vte(),Y}function kv(o,f){if(f)return Bf(o,f);const v=rt(o);if(!v.resolvedType){const A=fn,R=ca;fn=$n,ca=void 0,v.resolvedType=Bf(o,f),ca=R,fn=A}return v.resolvedType}function yGe(o){return o=rg(o,!0),o.kind===216||o.kind===234||KY(o)}function ine(o,f,v){const A=sH(o);if(Cs(o)){const B=ZH(o);if(B)return nGe(A,B,f)}const R=EGe(A)||(v?RK(A,v,void 0,f||0):kv(A,f));return Os(o)&&o.name.kind===207&&Dp(R)&&!R.target.hasRestElement&&Y6(R)Rwe(o,A))}if(f.flags&58982400){const v=US(f)||Io;return Ty(v,4)&&Ty(o,128)||Ty(v,8)&&Ty(o,256)||Ty(v,64)&&Ty(o,2048)||Ty(v,4096)&&Ty(o,8192)||Rwe(o,v)}return!!(f.flags&406847616&&Ty(o,128)||f.flags&256&&Ty(o,256)||f.flags&2048&&Ty(o,2048)||f.flags&512&&Ty(o,512)||f.flags&8192&&Ty(o,8192))}return!1}function one(o){const f=o.parent;return f7(f)&&ky(f.type)||KY(f)&&ky(x1(f))||Swe(o)&&n5(NE(o,0))||(fE(f)||Ed(f)||WT(f))&&one(f)||(tl(f)||XE(f)||Dh(f))&&one(f.parent)}function MK(o,f,v){const A=Bf(o,f,v);return one(o)||$Me(o)?$S(A):yGe(o)?A:BBe(A,qbe(NE(o,void 0),o,void 0))}function ort(o,f){return o.name.kind===167&&Jk(o.name),MK(o.initializer,f)}function bGe(o,f){OSt(o),o.name.kind===167&&Jk(o.name);const v=zfe(o,f);return TGe(o,v,f)}function TGe(o,f,v){if(v&&v&10){const A=qte(f,0,!0),R=qte(f,1,!0),B=A||R;if(B&&B.typeParameters){const Y=s8(o,2);if(Y){const pe=qte(Dw(Y),A?0:1,!1);if(pe&&!pe.typeParameters){if(v&8)return SGe(o,v),Qi;const Te=g5(o),Ue=Te.signature&&np(Te.signature),St=Ue&&Dnt(Ue);if(St&&!St.typeParameters&&!jr(Te.inferences,LK)){const Rt=nvt(Te,B.typeParameters),rn=X6(B,Rt),Sn=Vn(Te.inferences,xr=>ffe(xr.typeParameter));if(UBe(rn,pe,(xr,Ai)=>{kw(Sn,xr,Ai,0,!0)}),gt(Sn,LK)&&(wbe(rn,pe,(xr,Ai)=>{kw(Sn,xr,Ai)}),!OK(Te.inferences,Sn)))return tvt(Te.inferences,Sn),Te.inferredTypeParameters=Hi(Te.inferredTypeParameters,Rt),o5(rn)}return o5(Kte(B,pe,Te))}}}}return f}function SGe(o,f){if(f&2){const v=g5(o);v.flags|=4}}function LK(o){return!!(o.candidates||o.contraCandidates)}function evt(o){return!!(o.candidates||o.contraCandidates||Rue(o.typeParameter))}function OK(o,f){for(let v=0;vv.symbol.escapedName===f)}function rvt(o,f){let v=f.length;for(;v>1&&f.charCodeAt(v-1)>=48&&f.charCodeAt(v-1)<=57;)v--;const A=f.slice(0,v);for(let R=1;;R++){const B=A+R;if(!Mwe(o,B))return B}}function art(o){const f=$B(o);if(f&&!f.typeParameters)return np(f)}function ivt(o){const f=Bf(o.expression),v=sfe(f,o.expression),A=art(f);return A&&gNe(A,o,v!==f)}function s1(o){const f=EGe(o);if(f)return f;if(o.flags&268435456&&ca){const R=ca[vm(o)];if(R)return R}const v=yo,A=Bf(o,64);if(yo!==v){const R=ca||(ca=[]);R[vm(o)]=A,YSe(o,o.flags|268435456)}return A}function EGe(o){let f=rg(o,!0);if(KY(f)){const v=x1(f);if(!ky(v))return Xl(v)}if(f=rg(o),ys(f)){const v=EGe(f.expression);return v?XB(v):void 0}if(xd(f)&&f.expression.kind!==108&&!y1(f,!0)&&!Yte(f))return AN(f)?ivt(f):art(CK(f.expression));if(f7(f)&&!ky(f.type))return Xl(f.type);if(aR(o)||fy(o))return Bf(o)}function jfe(o){const f=rt(o);if(f.contextFreeType)return f.contextFreeType;jte(o,Ge,!1);const v=f.contextFreeType=Bf(o,4);return Vte(),v}function Bf(o,f,v){var A,R;(A=ps)==null||A.push(ps.Phase.Check,"checkExpression",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});const B=ae;ae=o,J=0;const Y=avt(o,f,v),pe=TGe(o,Y,f);return Pwe(pe)&&ovt(o,pe),ae=B,(R=ps)==null||R.pop(),pe}function ovt(o,f){o.parent.kind===211&&o.parent.expression===o||o.parent.kind===212&&o.parent.expression===o||(o.kind===80||o.kind===166)&&yg(o)||o.parent.kind===186&&o.parent.exprName===o||o.parent.kind===281||hn(o,N.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),F0(Pe)&&(re.assert(!!(f.symbol.flags&128)),f.symbol.valueDeclaration.flags&33554432&&!EA(o)&&hn(o,N.Cannot_access_ambient_const_enums_when_0_is_enabled,Pn))}function srt(o,f){if(NT(o)){if(poe(o))return nGe(o.expression,moe(o),f);if(KY(o))return _1e(o,f)}return Bf(o.expression,f)}function avt(o,f,v){const A=o.kind;if(c)switch(A){case 231:case 218:case 219:c.throwIfCancellationRequested()}switch(A){case 80:return Sht(o,f);case 81:return mnt(o);case 110:return Ube(o);case 108:return WV(o);case 106:return Jn;case 15:case 11:return KBe(o)?Ln:NV(vS(o.text));case 9:return x0t(o),NV(HA(+o.text));case 10:return sPt(o),NV(sM({negative:!1,base10Value:l3(o.text)}));case 112:return Ts;case 97:return vo;case 228:return Yyt(o);case 14:return Ig;case 209:return qI(o,f,v);case 210:return Qbe(o,f);case 211:return Dfe(o,f);case 166:return dnt(o,f);case 212:return uyt(o,f);case 213:if(o.expression.kind===102)return Qze(o);case 214:return sL(o,f);case 215:return IK(o);case 217:return srt(o,f);case 231:return _0t(o);case 218:case 219:return zfe(o,f);case 221:return pGe(o);case 216:case 234:return tGe(o,f);case 235:return Iyt(o);case 233:return znt(o);case 238:return kyt(o);case 236:return Pyt(o);case 220:return Nw(o);case 222:return Xnt(o);case 223:return Ynt(o);case 224:return Qnt(o);case 225:return Uyt(o);case 226:return Kt(o,f);case 227:return Xyt(o,f);case 230:return $I(o,f);case 232:return kt;case 229:return irt(o);case 237:return UB(o);case 294:return KI(o,f);case 284:return $ht(o);case 285:return Hht(o);case 288:return qht(o);case 292:return wze(o,f);case 286:re.fail("Shouldn't ever directly check a JsxOpeningElement")}return Sr}function crt(o){fL(o),o.expression&&vT(o.expression,N.Type_expected),On(o.constraint),On(o.default);const f=e5(sc(o));US(f),YZe(f)||hn(o.default,N.Type_parameter_0_has_a_circular_default,Co(f));const v=gT(f),A=Dd(f);v&&A&&a1(A,vx(zu(v,Cw(f,A)),A),o.default,N.Type_0_does_not_satisfy_the_constraint_1),Rf(o),i(()=>pne(o.name,N.Type_parameter_name_cannot_be_0))}function ane(o){var f,v;if(xp(o.parent)||Fl(o.parent)||z0(o.parent)){const A=e5(sc(o)),R=FB(A)&24576;if(R){const B=sc(o.parent);if(z0(o.parent)&&!(ji(sh(B))&48))hn(o,N.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(R===8192||R===16384){(f=ps)==null||f.push(ps.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:By(sh(B)),id:By(A)});const Y=f5(B,A,R===16384?_n:fe),pe=f5(B,A,R===16384?fe:_n),Te=A;ve=A,a1(Y,pe,o,N.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),ve=Te,(v=ps)==null||v.pop()}}}}function xGe(o){fL(o),D1e(o);const f=zE(o);ul(o,31)&&(f.kind===176&&y2(f.body)||hn(o,N.A_parameter_property_is_only_allowed_in_a_constructor_implementation),f.kind===176&&xn(o.name)&&o.name.escapedText==="constructor"&&hn(o.name,N.constructor_cannot_be_used_as_a_parameter_property_name)),!o.initializer&&hG(o)&&$_(o.name)&&f.body&&hn(o,N.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),o.name&&xn(o.name)&&(o.name.escapedText==="this"||o.name.escapedText==="new")&&(f.parameters.indexOf(o)!==0&&hn(o,N.A_0_parameter_must_be_the_first_parameter,o.name.escapedText),(f.kind===176||f.kind===180||f.kind===185)&&hn(o,N.A_constructor_cannot_have_a_this_parameter),f.kind===219&&hn(o,N.An_arrow_function_cannot_have_a_this_parameter),(f.kind===177||f.kind===178)&&hn(o,N.get_and_set_accessors_cannot_declare_this_parameters)),o.dotDotDotToken&&!$_(o.name)&&!Id(zI(La(o.symbol)),P1)&&hn(o,N.A_rest_parameter_must_be_of_an_array_type)}function lrt(o){const f=svt(o);if(!f){hn(o,N.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const v=gb(f),A=Wb(v);if(!A)return;On(o.type);const{parameterName:R}=o;if(A.kind===0||A.kind===2)Xue(R);else if(A.parameterIndex>=0){if(A1(v)&&A.parameterIndex===v.parameters.length-1)hn(R,N.A_type_predicate_cannot_reference_a_rest_parameter);else if(A.type){const B=()=>Es(void 0,N.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);a1(A.type,La(v.parameters[A.parameterIndex]),o.type,void 0,B)}}else if(R){let B=!1;for(const{name:Y}of f.parameters)if($_(Y)&&urt(Y,R,A.parameterName)){B=!0;break}B||hn(o.parameterName,N.Cannot_find_parameter_0,A.parameterName)}}function svt(o){switch(o.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const f=o.parent;if(o===f.type)return f}}function urt(o,f,v){for(const A of o.elements){if(cb(A))continue;const R=A.name;if(R.kind===80&&R.escapedText===v)return hn(f,N.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,v),!0;if((R.kind===207||R.kind===206)&&urt(R,f,v))return!0}}function Vfe(o){o.kind===181?Lkt(o):(o.kind===184||o.kind===262||o.kind===185||o.kind===179||o.kind===176||o.kind===180)&&Qrt(o);const f=ob(o);f&4||((f&3)===3&&dt<99&&yb(o,6144),(f&3)===2&&dt<4&&yb(o,64),f&3&&dt<2&&yb(o,128)),k1e(Hb(o)),u0t(o),Ot(o.parameters,xGe),o.type&&On(o.type),i(v);function v(){Yfe(o);let A=kS(o),R=A;if(Cs(o)){const B=FM(o);if(B&&B.typeExpression&&uE(B.typeExpression.type)){const Y=$B(Xl(B.typeExpression));Y&&Y.declaration&&(A=kS(Y.declaration),R=B.typeExpression.type)}}if(Et&&!A)switch(o.kind){case 180:hn(o,N.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:hn(o,N.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(A&&R){const B=ob(o);if((B&5)===1){const Y=Xl(A);Y===bl?hn(R,N.A_generator_cannot_have_a_void_type_annotation):AGe(Y,B,R)}else(B&3)===2&&E1e(o,A,R)}o.kind!==181&&o.kind!==324&&qk(o)}}function AGe(o,f,v){const A=b5(0,o,(f&2)!==0)||Ge,R=b5(1,o,(f&2)!==0)||A,B=b5(2,o,(f&2)!==0)||Io,Y=Cwe(A,R,B,!!(f&2));return a1(Y,o,v)}function cvt(o){const f=new Map,v=new Map,A=new Map;for(const B of o.members)if(B.kind===176)for(const Y of B.parameters)DT(Y,B)&&!$_(Y.name)&&R(f,Y.name,Y.name.escapedText,3);else{const Y=pd(B),pe=B.name;if(!pe)continue;const Te=Lu(pe),Ue=Te&&Y?16:0,St=Te?A:Y?v:f,Rt=pe&&A0t(pe);if(Rt)switch(B.kind){case 177:R(St,pe,Rt,1|Ue);break;case 178:R(St,pe,Rt,2|Ue);break;case 172:R(St,pe,Rt,3|Ue);break;case 174:R(St,pe,Rt,8|Ue);break}}function R(B,Y,pe,Te){const Ue=B.get(pe);if(Ue)if((Ue&16)!==(Te&16))hn(Y,N.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Lv(Y));else{const St=!!(Ue&8),Rt=!!(Te&8);St||Rt?St!==Rt&&hn(Y,N.Duplicate_identifier_0,Lv(Y)):Ue&Te&-17?hn(Y,N.Duplicate_identifier_0,Lv(Y)):B.set(pe,Ue|Te)}else B.set(pe,Te)}}function lvt(o){for(const f of o.members){const v=f.name;if(pd(f)&&v){const R=A0t(v);switch(R){case"name":case"length":case"caller":case"arguments":if(Ct)break;case"prototype":const B=N.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Y=Wk(sc(o));hn(v,B,R,Y);break}}}}function Lwe(o){const f=new Map;for(const v of o.members)if(v.kind===171){let A;const R=v.name;switch(R.kind){case 11:case 9:A=R.text;break;case 80:A=Kr(R);break;default:continue}f.get(A)?(hn(i_(v.symbol.valueDeclaration),N.Duplicate_identifier_0,A),hn(v.name,N.Duplicate_identifier_0,A)):f.set(A,!0)}}function CGe(o){if(o.kind===264){const v=sc(o);if(v.declarations&&v.declarations.length>0&&v.declarations[0]!==o)return}const f=MWe(sc(o));if(f!=null&&f.declarations){const v=new Map;for(const A of f.declarations)A.parameters.length===1&&A.parameters[0].type&&PO(Xl(A.parameters[0].type),R=>{const B=v.get(By(R));B?B.declarations.push(A):v.set(By(R),{type:R,declarations:[A]})});v.forEach(A=>{if(A.declarations.length>1)for(const R of A.declarations)hn(R,N.Duplicate_index_signature_for_type_0,Co(A.type))})}}function Owe(o){!fL(o)&&!rPt(o)&&Zrt(o.name),D1e(o),Ufe(o),ul(o,64)&&o.kind===172&&o.initializer&&hn(o,N.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,hm(o.name))}function Fwe(o){return Lu(o.name)&&hn(o,N.Private_identifiers_are_not_allowed_outside_class_bodies),Owe(o)}function DGe(o){OSt(o)||Zrt(o.name),tm(o)&&o.asteriskToken&&xn(o.name)&&Kr(o.name)==="constructor"&&hn(o.name,N.Class_constructor_may_not_be_a_generator),x1e(o),ul(o,64)&&o.kind===174&&o.body&&hn(o,N.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,hm(o.name)),Lu(o.name)&&!$b(o)&&hn(o,N.Private_identifiers_are_not_allowed_outside_class_bodies),Ufe(o)}function Ufe(o){if(Lu(o.name)&&dt<99){for(let f=QD(o);f;f=QD(f))rt(f).flags|=1048576;if(v0(o.parent)){const f=Gbe(o.parent);f&&(rt(o.name).flags|=32768,rt(f).flags|=4096)}}}function frt(o){fL(o),s_(o,On)}function uvt(o){Vfe(o),tPt(o)||nPt(o),On(o.body);const f=sc(o),v=Rh(f,o.kind);if(o===v&&zwe(f),ny(o.body))return;i(R);return;function A(B){return IT(B)?!0:B.kind===172&&!pd(B)&&!!B.initializer}function R(){const B=o.parent;if(gR(B)){jNe(o.parent,B);const Y=Vbe(B),pe=mfe(o.body);if(pe){if(Y&&hn(pe,N.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Lt&&(gt(o.parent.members,A)||gt(o.parameters,Ue=>ul(Ue,31))))if(!fvt(pe,o.body))hn(pe,N.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 Ue;for(const St of o.body.statements){if(kb(St)&&h1(iv(St.expression))){Ue=St;break}if(_rt(St))break}Ue===void 0&&hn(o,N.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 Y||hn(o,N.Constructors_for_derived_classes_must_contain_a_super_call)}}}function fvt(o,f){const v=IS(o.parent);return kb(v)&&v.parent===f}function _rt(o){return o.kind===108||o.kind===110?!0:sY(o)?!1:!!s_(o,_rt)}function drt(o){xn(o.name)&&Kr(o.name)==="constructor"&&Fl(o.parent)&&hn(o.name,N.Class_constructor_may_not_be_an_accessor),i(f),On(o.body),Ufe(o);function f(){if(!Qrt(o)&&!Ukt(o)&&Zrt(o.name),BK(o),Vfe(o),o.kind===177&&!(o.flags&33554432)&&y2(o.body)&&o.flags&512&&(o.flags&1024||hn(o.name,N.A_get_accessor_must_return_a_value)),o.name.kind===167&&Jk(o.name),DB(o)){const A=sc(o),R=Rh(A,177),B=Rh(A,178);if(R&&B&&!(P0(R)&1)){rt(R).flags|=1;const Y=Cb(R),pe=Cb(B);(Y&64)!==(pe&64)&&(hn(R.name,N.Accessors_must_both_be_abstract_or_non_abstract),hn(B.name,N.Accessors_must_both_be_abstract_or_non_abstract)),(Y&4&&!(pe&6)||Y&2&&!(pe&2))&&(hn(R.name,N.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),hn(B.name,N.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const v=hO(sc(o));o.kind===177&&uGe(o,v)}}function T1e(o){BK(o)}function _vt(o,f,v){return o.typeArguments&&v{const A=IGe(o);A&&prt(o,A)});const v=rt(o).resolvedSymbol;v&>(v.declarations,A=>f6(A)&&!!(A.flags&536870912))&&pS(f1e(o),v.declarations,v.escapedName)}}function pvt(o){const f=to(o.parent,NN);if(!f)return;const v=IGe(f);if(!v)return;const A=gT(v[f.typeArguments.indexOf(o)]);return A&&zu(A,X0(v,Wwe(f,v)))}function grt(o){_et(o)}function Bwe(o){Ot(o.members,On),i(f);function f(){const v=Ste(o);Po(v,v.symbol),CGe(o),Lwe(o)}}function bp(o){On(o.elementType)}function mvt(o){const f=o.elements;let v=!1,A=!1;for(const R of f){const B=UWe(R);if(B&8){const Y=Xl(R.type);if(!rL(Y)){hn(R,N.A_rest_element_type_must_be_an_array_type);break}(kE(Y)||Dp(Y)&&Y.target.combinedFlags&4)&&(A=!0)}else if(B&4){if(A){Uo(R,N.A_rest_element_cannot_follow_another_rest_element);break}A=!0}else if(B&2){if(A){Uo(R,N.An_optional_element_cannot_follow_a_rest_element);break}v=!0}else if(v){Uo(R,N.A_required_element_cannot_follow_an_optional_element);break}}Ot(o.elements,On),Xl(o)}function hrt(o){Ot(o.types,On),Xl(o)}function PGe(o,f){if(!(o.flags&8388608))return o;const v=o.objectType,A=o.indexType;if(Id(A,CC(v,0)))return f.kind===212&&VE(f)&&ji(v)&32&&zk(v)&1&&hn(f,N.Index_signature_in_type_0_only_permits_reading,Co(v)),o;const R=yS(v);if(Tw(R,Lr)&&zb(A,296))return o;if(Ew(v)){const B=LB(A,f);if(B){const Y=PO(R,pe=>Yd(pe,B));if(Y&&Vy(Y)&6)return hn(f,N.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ic(B)),Sr}}return hn(f,N.Type_0_cannot_be_used_to_index_type_1,Co(A),Co(v)),Sr}function gvt(o){On(o.objectType),On(o.indexType),PGe(lBe(o),o)}function hvt(o){FK(o),On(o.typeParameter),On(o.nameType),On(o.type),o.type||i8(o,Ge);const f=uBe(o),v=bw(f);if(v)a1(v,Ym,o.nameType);else{const A=$v(f);a1(A,Ym,a9(o.typeParameter))}}function FK(o){var f;if((f=o.members)!=null&&f.length)return Uo(o.members[0],N.A_mapped_type_may_not_declare_properties_or_methods)}function yvt(o){Xue(o)}function vvt(o){Jkt(o),On(o.type)}function bvt(o){s_(o,On)}function yrt(o){Ua(o,v=>v.parent&&v.parent.kind===194&&v.parent.extendsType===v)||Uo(o,N.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),On(o.typeParameter);const f=sc(o.typeParameter);if(f.declarations&&f.declarations.length>1){const v=Ae(f);if(!v.typeParametersChecked){v.typeParametersChecked=!0;const A=e5(f),R=ude(f,168);if(!Vrt(R,[A],B=>[B])){const B=ru(f);for(const Y of R)hn(Y.name,N.All_declarations_of_0_must_have_identical_constraints,B)}}}qk(o)}function vrt(o){for(const f of o.templateSpans){On(f.type);const v=Xl(f.type);a1(v,Cp,f.type)}Xl(o)}function Tvt(o){On(o.argument),o.attributes&&W3(o.attributes,Uo),mrt(o)}function brt(o){o.dotDotDotToken&&o.questionToken&&Uo(o,N.A_tuple_member_cannot_be_both_optional_and_rest),o.type.kind===190&&Uo(o.type,N.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),o.type.kind===191&&Uo(o.type,N.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),On(o.type),Xl(o)}function sne(o){return(tT(o,2)||IT(o))&&!!(o.flags&33554432)}function Hfe(o,f){let v=eit(o);if(o.parent.kind!==264&&o.parent.kind!==263&&o.parent.kind!==231&&o.flags&33554432){const A=gie(o);A&&A.flags&128&&!(v&128)&&!(kh(o.parent)&&dy(o.parent.parent)&&JC(o.parent.parent))&&(v|=32),v|=128}return v&f}function zwe(o){i(()=>Svt(o))}function Svt(o){function f(mo,Ya){return Ya!==void 0&&Ya.parent===mo[0].parent?Ya:mo[0]}function v(mo,Ya,Ra,Va,Da){if((Va^Da)!==0){const V_=Hfe(f(mo,Ya),Ra);Ot(mo,fd=>{const ad=Hfe(fd,Ra)^V_;ad&32?hn(i_(fd),N.Overload_signatures_must_all_be_exported_or_non_exported):ad&128?hn(i_(fd),N.Overload_signatures_must_all_be_ambient_or_non_ambient):ad&6?hn(i_(fd)||fd,N.Overload_signatures_must_all_be_public_private_or_protected):ad&64&&hn(i_(fd),N.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function A(mo,Ya,Ra,Va){if(Ra!==Va){const Da=M9(f(mo,Ya));Ot(mo,cc=>{M9(cc)!==Da&&hn(i_(cc),N.Overload_signatures_must_all_be_optional_or_required)})}}const R=230;let B=0,Y=R,pe=!1,Te=!0,Ue=!1,St,Rt,rn;const Sn=o.declarations,xr=(o.flags&16384)!==0;function Ai(mo){if(mo.name&&ny(mo.name))return;let Ya=!1;const Ra=s_(mo.parent,Da=>{if(Ya)return Da;Ya=Da===mo});if(Ra&&Ra.pos===mo.end&&Ra.kind===mo.kind){const Da=Ra.name||Ra,cc=Ra.name;if(mo.name&&cc&&(Lu(mo.name)&&Lu(cc)&&mo.name.escapedText===cc.escapedText||Qf(mo.name)&&Qf(cc)&&Xh(Jk(mo.name),Jk(cc))||Qv(mo.name)&&Qv(cc)&&nI(mo.name)===nI(cc))){if((mo.kind===174||mo.kind===173)&&pd(mo)!==pd(Ra)){const fd=pd(mo)?N.Function_overload_must_be_static:N.Function_overload_must_not_be_static;hn(Da,fd)}return}if(y2(Ra.body)){hn(Da,N.Function_implementation_name_must_be_0,hm(mo.name));return}}const Va=mo.name||mo;xr?hn(Va,N.Constructor_implementation_is_missing):ul(mo,64)?hn(Va,N.All_declarations_of_an_abstract_method_must_be_consecutive):hn(Va,N.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let So=!1,la=!1,Zs=!1;const ba=[];if(Sn)for(const mo of Sn){const Ya=mo,Ra=Ya.flags&33554432,Va=Ya.parent&&(Ya.parent.kind===264||Ya.parent.kind===187)||Ra;if(Va&&(rn=void 0),(Ya.kind===263||Ya.kind===231)&&!Ra&&(Zs=!0),Ya.kind===262||Ya.kind===174||Ya.kind===173||Ya.kind===176){ba.push(Ya);const Da=Hfe(Ya,R);B|=Da,Y&=Da,pe=pe||M9(Ya),Te=Te&&M9(Ya);const cc=y2(Ya.body);cc&&St?xr?la=!0:So=!0:(rn==null?void 0:rn.parent)===Ya.parent&&rn.end!==Ya.pos&&Ai(rn),cc?St||(St=Ya):Ue=!0,rn=Ya,Va||(Rt=Ya)}if(Cs(mo)&&F_(mo)&&mo.jsDoc){for(const Da of mo.jsDoc)if(Da.tags)for(const cc of Da.tags)aF(cc)&&(Ue=!0)}}if(la&&Ot(ba,mo=>{hn(mo,N.Multiple_constructor_implementations_are_not_allowed)}),So&&Ot(ba,mo=>{hn(i_(mo)||mo,N.Duplicate_function_implementation)}),Zs&&!xr&&o.flags&16&&Sn){const mo=gi(Sn,Ya=>Ya.kind===263).map(Ya=>Bs(Ya,N.Consider_adding_a_declare_modifier_to_this_class));Ot(Sn,Ya=>{const Ra=Ya.kind===263?N.Class_declaration_cannot_implement_overload_list_for_0:Ya.kind===262?N.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ra&&ml(hn(i_(Ya)||Ya,Ra,Il(o)),...mo)})}if(Rt&&!Rt.body&&!ul(Rt,64)&&!Rt.questionToken&&Ai(Rt),Ue&&(Sn&&(v(Sn,St,R,B,Y),A(Sn,St,pe,Te)),St)){const mo=K6(o),Ya=gb(St);for(const Ra of mo)if(!Ggt(Ya,Ra)){const Va=Ra.declaration&&b6(Ra.declaration)?Ra.declaration.parent.tagName:Ra.declaration;ml(hn(Va,N.This_overload_signature_is_not_compatible_with_its_implementation_signature),Bs(St,N.The_implementation_signature_is_declared_here));break}}}function Jfe(o){i(()=>Evt(o))}function Evt(o){let f=o.localSymbol;if(!f&&(f=sc(o),!f.exportSymbol)||Rh(f,o.kind)!==o)return;let v=0,A=0,R=0;for(const Ue of f.declarations){const St=Te(Ue),Rt=Hfe(Ue,2080);Rt&32?Rt&2048?R|=St:v|=St:A|=St}const B=v|A,Y=v&A,pe=R&B;if(Y||pe)for(const Ue of f.declarations){const St=Te(Ue),Rt=i_(Ue);St&pe?hn(Rt,N.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,hm(Rt)):St&Y&&hn(Rt,N.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,hm(Rt))}function Te(Ue){let St=Ue;switch(St.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return dh(St)||YN(St)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Rt=St,rn=py(Rt)?Rt.expression:Rt.right;if(!Tg(rn))return 1;St=rn;case 271:case 274:case 273:let Sn=0;const xr=C0(sc(St));return Ot(xr.declarations,Ai=>{Sn|=Te(Ai)}),Sn;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return re.failBadSyntaxKind(St)}}}function WK(o,f,v,...A){const R=$fe(o,f);return R&&XB(R,f,v,...A)}function $fe(o,f,v){if(bn(o))return;const A=o;if(A.promisedTypeOfPromise)return A.promisedTypeOfPromise;if(hw(o,yte(!1)))return A.promisedTypeOfPromise=ch(o)[0];if(Gfe(tM(o),402915324))return;const R=Xe(o,"then");if(bn(R))return;const B=R?ed(R,0):Yn;if(B.length===0){f&&hn(f,N.A_promise_must_have_a_then_method);return}let Y,pe;for(const St of B){const Rt=H4(St);Rt&&Rt!==bl&&!qS(o,Rt,bC)?Y=Rt:pe=ur(pe,St)}if(!pe){re.assertIsDefined(Y),v&&(v.value=Y),f&&hn(f,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Co(o),Co(Y));return}const Te=IC(dc(Vn(pe,aGe)),2097152);if(bn(Te))return;const Ue=ed(Te,0);if(Ue.length===0){f&&hn(f,N.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return A.promisedTypeOfPromise=dc(Vn(Ue,aGe),2)}function cne(o,f,v,A,...R){return(f?XB(o,v,A,...R):gM(o,v,A,...R))||Sr}function Trt(o){if(Gfe(tM(o),402915324))return!1;const f=Xe(o,"then");return!!f&&ed(IC(f,2097152),0).length>0}function qfe(o){var f;if(o.flags&16777216){const v=eN(!1);return!!v&&o.aliasSymbol===v&&((f=o.aliasTypeArguments)==null?void 0:f.length)===1}return!1}function lne(o){return o.flags&1048576?Th(o,lne):qfe(o)?o.aliasTypeArguments[0]:o}function S1e(o){if(bn(o)||qfe(o))return!1;if(Ew(o)){const f=US(o);if(f?f.flags&3||_M(f)||Uk(f,Trt):Ty(o,8650752))return!0}return!1}function xvt(o){const f=eN(!0);if(f)return PB(f,[lne(o)])}function Avt(o){if(S1e(o)){const f=xvt(o);if(f)return f}return re.assert(qfe(o)||$fe(o)===void 0,"type provided should not be a non-generic 'promise'-like."),o}function XB(o,f,v,...A){const R=gM(o,f,v,...A);return R&&Avt(R)}function gM(o,f,v,...A){if(bn(o)||qfe(o))return o;const R=o;if(R.awaitedTypeOfType)return R.awaitedTypeOfType;if(o.flags&1048576){if(px.lastIndexOf(o.id)>=0){f&&hn(f,N.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const pe=f?Ue=>gM(Ue,f,v,...A):gM;px.push(o.id);const Te=Th(o,pe);return px.pop(),R.awaitedTypeOfType=Te}if(S1e(o))return R.awaitedTypeOfType=o;const B={value:void 0},Y=$fe(o,void 0,B);if(Y){if(o.id===Y.id||px.lastIndexOf(Y.id)>=0){f&&hn(f,N.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}px.push(o.id);const pe=gM(Y,f,v,...A);return px.pop(),pe?R.awaitedTypeOfType=pe:void 0}if(Trt(o)){if(f){re.assertIsDefined(v);let pe;B.value&&(pe=Es(pe,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Co(o),Co(B.value))),pe=Es(pe,v,...A),j_.add(wN(ts(f),f,pe))}return}return R.awaitedTypeOfType=o}function E1e(o,f,v){const A=Xl(f);if(dt>=2){if(Fn(A))return;const B=yte(!0);if(B!==Ka&&!hw(A,B)){R(N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,f,v,Co(gM(A)||bl));return}}else{if(Gwe(f),Fn(A))return;const B=cY(f);if(B===void 0){R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,Co(A));return}const Y=Qg(B,111551,!0),pe=Y?La(Y):Sr;if(Fn(pe)){B.kind===80&&B.escapedText==="Promise"&&QR(A)===yte(!1)?hn(v,N.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):R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,iE(B));return}const Te=mgt(!0);if(Te===M_){R(N.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,f,v,iE(B));return}const Ue=N.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(!a1(pe,Te,v,Ue,()=>f===v?void 0:Es(void 0,N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Rt=B&&PS(B),rn=Ci(o.locals,Rt.escapedText,111551);if(rn){hn(rn.valueDeclaration,N.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(Rt),iE(B));return}}cne(A,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function R(B,Y,pe,Te){if(Y===pe)hn(pe,B,Te);else{const Ue=hn(pe,N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ml(Ue,Bs(Y,B,Te))}}}function CD(o){const f=y5(o);bwe(f,o);const v=np(f);if(v.flags&1)return;const A=cGe(o);if(!(A!=null&&A.resolvedReturnType))return;let R;const B=A.resolvedReturnType;switch(o.parent.kind){case 263:case 231:R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ct){R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:R=N.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:R=N.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return re.failBadSyntaxKind(o.parent)}a1(v,B,o.expression,R)}function Kfe(o,f,v,A,R,B=v.length,Y=0){const pe=he.createFunctionTypeNode(void 0,Yn,he.createKeywordTypeNode(133));return vw(pe,o,f,v,A,R,B,Y)}function NGe(o,f,v,A,R,B,Y){const pe=Kfe(o,f,v,A,R,B,Y);return o5(pe)}function Srt(o){return NGe(void 0,void 0,Yn,o)}function YB(o){const f=gx("value",o);return NGe(void 0,void 0,[f],bl)}function Gwe(o){Ert(o&&cY(o),!1)}function Ert(o,f){if(!o)return;const v=PS(o),A=(o.kind===80?788968:1920)|2097152,R=gg(v,v.escapedText,A,void 0,void 0,!0);if(R&&R.flags&2097152){if(Fr&&KR(R)&&!ud(C0(R))&&!Qx(R))fw(R);else if(f&&F0(Pe)&&Zp(Pe)>=5&&!KR(R)&&!gt(R.declarations,O8)){const B=hn(o,N.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),Y=lr(R.declarations||Yn,wI);Y&&ml(B,Bs(Y,N._0_was_imported_here,Kr(v)))}}}function VV(o){const f=jwe(o);f&&kT(f)&&Ert(f,!0)}function jwe(o){if(o)switch(o.kind){case 193:case 192:return wGe(o.types);case 194:return wGe([o.trueType,o.falseType]);case 196:case 202:return jwe(o.type);case 183:return o.typeName}}function wGe(o){let f;for(let v of o){for(;v.kind===196||v.kind===202;)v=v.type;if(v.kind===146||!Ke&&(v.kind===201&&v.literal.kind===106||v.kind===157))continue;const A=jwe(v);if(!A)return;if(f){if(!xn(f)||!xn(A)||f.escapedText!==A.escapedText)return}else f=A}return f}function Xfe(o){const f=Zy(o);return sp(o)?tSe(f):f}function BK(o){if(!S6(o)||!X2(o)||!o.modifiers||!zL(ct,o,o.parent,o.parent.parent))return;const f=lr(o.modifiers,Jh);if(f){if(ct?(yb(f,8),o.kind===169&&yb(f,32)):dt<99&&(yb(f,8),Ih(o)?o.name?Urt(o)&&yb(f,8388608):yb(f,8388608):v0(o)||(Lu(o.name)&&(tm(o)||GM(o)||xb(o))&&yb(f,8388608),Qf(o.name)&&yb(f,16777216))),Pe.emitDecoratorMetadata)switch(yb(f,16),o.kind){case 263:const v=sC(o);if(v)for(const Y of v.parameters)VV(Xfe(Y));break;case 177:case 178:const A=o.kind===177?178:177,R=Rh(sc(o),A);VV(ng(o)||R&&ng(R));break;case 174:for(const Y of o.parameters)VV(Xfe(Y));VV(kS(o));break;case 172:VV(Zy(o));break;case 169:VV(Xfe(o));const B=o.parent;for(const Y of B.parameters)VV(Xfe(Y));VV(kS(B));break}for(const v of o.modifiers)Jh(v)&&CD(v)}}function xrt(o){i(f);function f(){x1e(o),b0t(o),UV(o,o.name)}}function Cvt(o){o.typeExpression||hn(o.name,N.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),o.name&&pne(o.name,N.Type_alias_name_cannot_be_0),On(o.typeExpression),k1e(Hb(o))}function Dvt(o){On(o.constraint);for(const f of o.typeParameters)On(f)}function Ivt(o){On(o.typeExpression)}function kvt(o){On(o.typeExpression);const f=YM(o);if(f){const v=WU(f,ZL);if(Nt(v)>1)for(let A=1;A0),v.length>1&&hn(v[1],N.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const A=Drt(o.class.expression),R=gR(f);if(R){const B=Drt(R.expression);B&&A.escapedText!==B.escapedText&&hn(A,N.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(o.tagName),Kr(A),Kr(B))}}function Crt(o){const f=k7(o);f&&IT(f)&&hn(o,N.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Drt(o){switch(o.kind){case 80:return o;case 211:return o.name;default:return}}function x1e(o){var f;BK(o),Vfe(o);const v=ob(o);if(o.name&&o.name.kind===167&&Jk(o.name),DB(o)){const B=sc(o),Y=o.localSymbol||B,pe=(f=Y.declarations)==null?void 0:f.find(Te=>Te.kind===o.kind&&!(Te.flags&524288));o===pe&&zwe(Y),B.parent&&zwe(B)}const A=o.kind===173?void 0:o.body;if(On(A),uGe(o,sK(o)),i(R),Cs(o)){const B=FM(o);B&&B.typeExpression&&!Aze(Xl(B.typeExpression),o)&&hn(B.typeExpression.type,N.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function R(){kS(o)||(ny(A)&&!sne(o)&&i8(o,Ge),v&1&&y2(A)&&np(gb(o)))}}function qk(o){i(f);function f(){const v=ts(o);let A=Lb.get(v.path);A||(A=[],Lb.set(v.path,A)),A.push(o)}}function A1e(o,f){for(const v of o)switch(v.kind){case 263:case 231:Ovt(v,f),MGe(v,f);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:Vwe(v,f);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:v.body&&Vwe(v,f),MGe(v,f);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:MGe(v,f);break;case 195:Fvt(v,f);break;default:re.assertNever(v,"Node should not have been registered for unused identifiers check")}}function RGe(o,f,v){const A=i_(o)||o,R=f6(o)?N._0_is_declared_but_never_used:N._0_is_declared_but_its_value_is_never_read;v(o,0,Bs(A,R,f))}function une(o){return xn(o)&&Kr(o).charCodeAt(0)===95}function Ovt(o,f){for(const v of o.members)switch(v.kind){case 174:case 172:case 177:case 178:if(v.kind===178&&v.symbol.flags&32768)break;const A=sc(v);!A.isReferenced&&(tT(v,2)||mp(v)&&Lu(v.name))&&!(v.flags&33554432)&&f(v,0,Bs(v.name,N._0_is_declared_but_its_value_is_never_read,ru(A)));break;case 176:for(const R of v.parameters)!R.symbol.isReferenced&&ul(R,2)&&f(R,0,Bs(R.name,N.Property_0_is_declared_but_its_value_is_never_read,Il(R.symbol)));break;case 181:case 240:case 175:break;default:re.fail("Unexpected class member")}}function Fvt(o,f){const{typeParameter:v}=o;QB(v)&&f(o,1,Bs(o,N._0_is_declared_but_its_value_is_never_read,Kr(v.name)))}function MGe(o,f){const v=sc(o).declarations;if(!v||yl(v)!==o)return;const A=Hb(o),R=new Set;for(const B of A){if(!QB(B))continue;const Y=Kr(B.name),{parent:pe}=B;if(pe.kind!==195&&pe.typeParameters.every(QB)){if(m2(R,pe)){const Te=ts(pe),Ue=CA(pe)?coe(pe):loe(Te,pe.typeParameters),Rt=pe.typeParameters.length===1?[N._0_is_declared_but_its_value_is_never_read,Y]:[N.All_type_parameters_are_unused];f(B,1,Pp(Te,Ue.pos,Ue.end-Ue.pos,...Rt))}}else f(B,1,Bs(B,N._0_is_declared_but_its_value_is_never_read,Y))}}function QB(o){return!(jp(o.symbol).isReferenced&262144)&&!une(o.name)}function ZB(o,f,v,A){const R=String(A(f)),B=o.get(R);B?B[1].push(v):o.set(R,[f,[v]])}function LGe(o){return to(vA(o),Os)}function OGe(o){return sa(o)?Ch(o.parent)?!!(o.propertyName&&une(o.name)):une(o.name):dh(o)||(Kc(o)&&Hz(o.parent.parent)||Irt(o))&&une(o.name)}function Vwe(o,f){const v=new Map,A=new Map,R=new Map;o.locals.forEach(B=>{if(!(B.flags&262144?!(B.flags&3&&!(B.isReferenced&3)):B.isReferenced||B.exportSymbol)&&B.declarations){for(const Y of B.declarations)if(!OGe(Y))if(Irt(Y))ZB(v,Bvt(Y),Y,vm);else if(sa(Y)&&Ch(Y.parent)){const pe=yl(Y.parent.elements);(Y===pe||!yl(Y.parent.elements).dotDotDotToken)&&ZB(A,Y.parent,Y,vm)}else if(Kc(Y)){const pe=KV(Y)&7,Te=i_(Y);(pe!==4&&pe!==6||!Te||!une(Te))&&ZB(R,Y.parent,Y,vm)}else{const pe=B.valueDeclaration&&LGe(B.valueDeclaration),Te=B.valueDeclaration&&i_(B.valueDeclaration);pe&&Te?!DT(pe,pe.parent)&&!iI(pe)&&!une(Te)&&(sa(Y)&&Wd(Y.parent)?ZB(A,Y.parent,Y,vm):f(pe,1,Bs(Te,N._0_is_declared_but_its_value_is_never_read,Il(B)))):RGe(Y,Il(B),f)}}}),v.forEach(([B,Y])=>{const pe=B.parent;if((B.name?1:0)+(B.namedBindings?B.namedBindings.kind===274?1:B.namedBindings.elements.length:0)===Y.length)f(pe,0,Y.length===1?Bs(pe,N._0_is_declared_but_its_value_is_never_read,Kr(Dl(Y).name)):Bs(pe,N.All_imports_in_import_declaration_are_unused));else for(const Ue of Y)RGe(Ue,Kr(Ue.name),f)}),A.forEach(([B,Y])=>{const pe=LGe(B.parent)?1:0;if(B.elements.length===Y.length)Y.length===1&&B.parent.kind===260&&B.parent.parent.kind===261?ZB(R,B.parent.parent,B.parent,vm):f(B,pe,Y.length===1?Bs(B,N._0_is_declared_but_its_value_is_never_read,C1e(Dl(Y).name)):Bs(B,N.All_destructured_elements_are_unused));else for(const Te of Y)f(Te,pe,Bs(Te,N._0_is_declared_but_its_value_is_never_read,C1e(Te.name)))}),R.forEach(([B,Y])=>{if(B.declarations.length===Y.length)f(B,0,Y.length===1?Bs(Dl(Y).name,N._0_is_declared_but_its_value_is_never_read,C1e(Dl(Y).name)):Bs(B.parent.kind===243?B.parent:B,N.All_variables_are_unused));else for(const pe of Y)f(pe,0,Bs(pe,N._0_is_declared_but_its_value_is_never_read,C1e(pe.name)))})}function Wvt(){var o;for(const f of WS)if(!((o=sc(f))!=null&&o.isReferenced)){const v=OU(f);re.assert(X8(v),"Only parameter declaration should be checked here");const A=Bs(f.name,N._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,hm(f.name),hm(f.propertyName));v.type||ml(A,Pp(ts(v),v.end,1,N.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,hm(f.propertyName))),j_.add(A)}}function C1e(o){switch(o.kind){case 80:return Kr(o);case 207:case 206:return C1e(uc(Dl(o.elements),sa).name);default:return re.assertNever(o)}}function Irt(o){return o.kind===273||o.kind===276||o.kind===274}function Bvt(o){return o.kind===273?o:o.kind===274?o.parent:o.parent.parent}function Uwe(o){if(o.kind===241&&u8(o),_9(o)){const f=Li;Ot(o.statements,On),Li=f}else Ot(o.statements,On);o.locals&&qk(o)}function Yfe(o){dt>=2||!lde(o)||o.flags&33554432||ny(o.body)||Ot(o.parameters,f=>{f.name&&!$_(f.name)&&f.name.escapedText===Tr.escapedName&&kf("noEmit",f,N.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Qfe(o,f,v){if((f==null?void 0:f.escapedText)!==v||o.kind===172||o.kind===171||o.kind===174||o.kind===173||o.kind===177||o.kind===178||o.kind===303||o.flags&33554432||(Tk(o)||Yb(o)||qE(o))&&O8(o))return!1;const A=vA(o);return!(Os(A)&&ny(A.parent.body))}function zvt(o){Ua(o,f=>P0(f)&4?(o.kind!==80?hn(i_(o),N.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):hn(o,N.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Gvt(o){Ua(o,f=>P0(f)&8?(o.kind!==80?hn(i_(o),N.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):hn(o,N.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function jvt(o,f){if(Ie>=5&&!(Ie>=100&&ts(o).impliedNodeFormat===1)||!f||!Qfe(o,f,"require")&&!Qfe(o,f,"exports")||dy(o)&&YN(o)!==1)return;const v=XF(o);v.kind===312&&aE(v)&&kf("noEmit",f,N.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,hm(f),hm(f))}function Vvt(o,f){if(!f||dt>=4||!Qfe(o,f,"Promise")||dy(o)&&YN(o)!==1)return;const v=XF(o);v.kind===312&&aE(v)&&v.flags&4096&&kf("noEmit",f,N.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,hm(f),hm(f))}function Uvt(o,f){dt<=8&&(Qfe(o,f,"WeakMap")||Qfe(o,f,"WeakSet"))&&Xx.push(o)}function krt(o){const f=QD(o);P0(f)&1048576&&(re.assert(mp(o)&&xn(o.name)&&typeof o.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),kf("noEmit",o,N.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,o.name.escapedText))}function FGe(o,f){f&&dt>=2&&dt<=8&&Qfe(o,f,"Reflect")&&dx.push(o)}function Hvt(o){let f=!1;if(v0(o)){for(const v of o.members)if(P0(v)&2097152){f=!0;break}}else if(Jm(o))P0(o)&2097152&&(f=!0);else{const v=QD(o);v&&P0(v)&2097152&&(f=!0)}f&&(re.assert(mp(o)&&xn(o.name),"The target of a Reflect collision check should be an identifier"),kf("noEmit",o,N.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,hm(o.name),"Reflect"))}function UV(o,f){f&&(jvt(o,f),Vvt(o,f),Uvt(o,f),FGe(o,f),Fl(o)?(pne(f,N.Class_name_cannot_be_0),o.flags&33554432||l0t(f)):xP(o)&&pne(f,N.Enum_name_cannot_be_0))}function Jvt(o){if(KV(o)&7||X8(o))return;const f=sc(o);if(f.flags&1){if(!xn(o.name))return re.fail();const v=gg(o,o.name.escapedText,3,void 0,void 0,!1);if(v&&v!==f&&v.flags&2&&nwe(v)&7){const A=oC(v.valueDeclaration,261),R=A.parent.kind===243&&A.parent.parent?A.parent.parent:void 0;if(!(R&&(R.kind===241&&F_(R.parent)||R.kind===268||R.kind===267||R.kind===312))){const Y=ru(v);hn(o,N.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,Y,Y)}}}}function Jy(o){return o===Br?Ge:o===Bh?Qm:o}function D1e(o){var f;if(BK(o),sa(o)||On(o.type),!o.name)return;if(o.name.kind===167&&(Jk(o.name),g1(o)&&o.initializer&&kv(o.initializer)),sa(o)){if(o.propertyName&&xn(o.name)&&X8(o)&&ny(zE(o).body)){WS.push(o);return}Ch(o.parent)&&o.dotDotDotToken&&dt<5&&yb(o,4),o.propertyName&&o.propertyName.kind===167&&Jk(o.propertyName);const R=o.parent.parent,B=o.dotDotDotToken?32:0,Y=Ri(R,B),pe=o.propertyName||o.name;if(Y&&!$_(pe)){const Te=SD(pe);if(yv(Te)){const Ue=vv(Te),St=Yd(Y,Ue);St&&(Pfe(St,void 0,!1),Wze(o,!!R.initializer&&R.initializer.kind===108,!1,Y,St))}}}if($_(o.name)&&(o.name.kind===207&&dt<2&&Pe.downlevelIteration&&yb(o,512),Ot(o.name.elements,On)),o.initializer&&X8(o)&&ny(zE(o).body)){hn(o,N.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($_(o.name)){if(rze(o))return;const R=g1(o)&&o.initializer&&o.parent.parent.kind!==249,B=!gt(o.name.elements,dA(cb));if(R||B){const Y=j(o);if(R){const pe=kv(o.initializer);Ke&&B?Cfe(pe,o):rN(pe,j(o),o,o.initializer)}B&&(Wd(o.name)?Kk(65,Y,Ce,o):Ke&&Cfe(Y,o))}return}const v=sc(o);if(v.flags&2097152&&(E7(o)||Rs(o))){Ga(o);return}const A=Jy(La(v));if(o===v.valueDeclaration){const R=g1(o)&&sH(o);if(R&&!(Cs(o)&&el(R)&&(R.properties.length===0||bP(o.name))&&!!((f=v.exports)!=null&&f.size))&&o.parent.parent.kind!==249){const Y=kv(R);rN(Y,A,o,R,void 0);const pe=KV(o)&7;if(pe===6){const Te=get(!0),Ue=nA(!0);if(Te!==M_&&Ue!==M_){const St=dc([Te,Ue,mn,Ce]);a1(Y,St,R,N.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(pe===4){const Te=nA(!0);if(Te!==M_){const Ue=dc([Te,mn,Ce]);a1(Y,Ue,R,N.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}v.declarations&&v.declarations.length>1&>(v.declarations,B=>B!==o&&E9(B)&&!aN(B,o))&&hn(o.name,N.All_declarations_of_0_must_have_identical_modifiers,hm(o.name))}else{const R=Jy(j(o));!Fn(A)&&!Fn(R)&&!Xh(A,R)&&!(v.flags&67108864)&&Prt(v.valueDeclaration,A,o,R),g1(o)&&o.initializer&&rN(kv(o.initializer),R,o,o.initializer,void 0),v.valueDeclaration&&!aN(o,v.valueDeclaration)&&hn(o.name,N.All_declarations_of_0_must_have_identical_modifiers,hm(o.name))}o.kind!==172&&o.kind!==171&&(Jfe(o),(o.kind===260||o.kind===208)&&Jvt(o),UV(o,o.name))}function Prt(o,f,v,A){const R=i_(v),B=v.kind===172||v.kind===171?N.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:N.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Y=hm(R),pe=hn(R,B,Y,Co(f),Co(A));o&&ml(pe,Bs(o,N._0_was_also_declared_here,Y))}function aN(o,f){if(o.kind===169&&f.kind===260||o.kind===260&&f.kind===169)return!0;if(M9(o)!==M9(f))return!1;const v=1358;return fk(o,v)===fk(f,v)}function $vt(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkVariableDeclaration",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath}),Ykt(o),D1e(o),(v=ps)==null||v.pop()}function Hwe(o){return qkt(o),D1e(o)}function Jwe(o){const f=rR(o)&7;(f===4||f===6)&&yb(o,33554432),Ot(o.declarations,On)}function qvt(o){!fL(o)&&!E0t(o.declarationList)&&Qkt(o),Jwe(o.declarationList)}function Kvt(o){u8(o),Bf(o.expression)}function Xvt(o){u8(o);const f=fne(o.expression);v5(o.expression,f,o.thenStatement),On(o.thenStatement),o.thenStatement.kind===242&&hn(o.thenStatement,N.The_body_of_an_if_statement_cannot_be_the_empty_statement),On(o.elseStatement)}function v5(o,f,v){if(!Ke)return;A(o,v);function A(B,Y){for(B=rg(B),R(B,Y);Ds(B)&&(B.operatorToken.kind===57||B.operatorToken.kind===61);)B=rg(B.left),R(B,Y)}function R(B,Y){const pe=DH(B)?rg(B.right):B;if(jE(pe))return;if(DH(pe)){A(pe,Y);return}const Te=pe===B?f:fne(pe),Ue=Ac(pe)&&yGe(pe.expression);if(!DC(Te,4194304)||Ue)return;const St=ed(Te,0),Rt=!!WK(Te);if(St.length===0&&!Rt)return;const rn=xn(pe)?pe:Ac(pe)?pe.name:void 0,Sn=rn&&ss(rn);if(!Sn&&!Rt)return;Sn&&Ds(B.parent)&&Yvt(B.parent,Sn)||Sn&&Y&&Nrt(B,Y,rn,Sn)||(Rt?fm(pe,!0,N.This_condition_will_always_return_true_since_this_0_is_always_defined,MI(Te)):hn(pe,N.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Nrt(o,f,v,A){return!!s_(f,function R(B){if(xn(B)){const Y=ss(B);if(Y&&Y===A){if(xn(o)||xn(v)&&Ds(v.parent))return!0;let pe=v.parent,Te=B.parent;for(;pe&&Te;){if(xn(pe)&&xn(Te)||pe.kind===110&&Te.kind===110)return ss(pe)===ss(Te);if(Ac(pe)&&Ac(Te)){if(ss(pe.name)!==ss(Te.name))return!1;Te=Te.expression,pe=pe.expression}else if(xd(pe)&&xd(Te))Te=Te.expression,pe=pe.expression;else return!1}}}return s_(B,R)})}function Yvt(o,f){for(;Ds(o)&&o.operatorToken.kind===56;){if(s_(o.right,function A(R){if(xn(R)){const B=ss(R);if(B&&B===f)return!0}return s_(R,A)}))return!0;o=o.parent}return!1}function Qvt(o){u8(o),On(o.statement),fne(o.expression)}function Zvt(o){u8(o),fne(o.expression),On(o.statement)}function Zfe(o,f){return o.flags&16384&&hn(f,N.An_expression_of_type_void_cannot_be_tested_for_truthiness),o}function fne(o,f){return Zfe(Bf(o,f),o)}function e0t(o){u8(o)||o.initializer&&o.initializer.kind===261&&E0t(o.initializer),o.initializer&&(o.initializer.kind===261?Jwe(o.initializer):Bf(o.initializer)),o.condition&&fne(o.condition),o.incrementor&&Bf(o.incrementor),On(o.statement),o.locals&&qk(o)}function t0t(o){LSt(o);const f=vie(o);if(o.awaitModifier?f&&Ep(f)?Uo(o.awaitModifier,N.for_await_loops_cannot_be_used_inside_a_class_static_block):(ob(f)&6)===2&&dt<99&&yb(o,16384):Pe.downlevelIteration&&dt<2&&yb(o,256),o.initializer.kind===261)Jwe(o.initializer);else{const v=o.initializer,A=I1e(o);if(v.kind===209||v.kind===210)lL(v,A||Sr);else{const R=Bf(v);jV(v,N.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),A&&rN(A,R,v,o.expression)}}On(o.statement),o.locals&&qk(o)}function n0t(o){LSt(o);const f=zze(Bf(o.expression));if(o.initializer.kind===261){const v=o.initializer.declarations[0];v&&$_(v.name)&&hn(v.name,N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Jwe(o.initializer)}else{const v=o.initializer,A=Bf(v);v.kind===209||v.kind===210?hn(v,N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Id(Agt(f),A)?jV(v,N.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,N.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):hn(v,N.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(f===Tc||!zb(f,126091264))&&hn(o.expression,N.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,Co(f)),On(o.statement),o.locals&&qk(o)}function I1e(o){const f=o.awaitModifier?15:13;return Kk(f,CK(o.expression),Ce,o.expression)}function Kk(o,f,v,A){return bn(f)?f:WGe(o,f,v,A,!0)||Ge}function WGe(o,f,v,A,R){const B=(o&2)!==0;if(f===Tc){jGe(A,f,B);return}const Y=dt>=2,pe=!Y&&Pe.downlevelIteration,Te=Pe.noUncheckedIndexedAccess&&!!(o&128);if(Y||pe||B){const xr=e_e(f,o,Y?A:void 0);if(R&&xr){const Ai=o&8?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:o&32?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:o&64?N.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:o&16?N.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;Ai&&a1(v,xr.nextType,A,Ai)}if(xr||Y)return Te?bK(xr&&xr.yieldType):xr&&xr.yieldType}let Ue=f,St=!1,Rt=!1;if(o&4){if(Ue.flags&1048576){const xr=f.types,Ai=gi(xr,So=>!(So.flags&402653316));Ai!==xr&&(Ue=dc(Ai,2))}else Ue.flags&402653316&&(Ue=Tc);if(Rt=Ue!==f,Rt&&(dt<1&&A&&(hn(A,N.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),St=!0),Ue.flags&131072))return Te?bK(Nn):Nn}if(!rL(Ue)){if(A&&!St){const xr=!!(o&4)&&!Rt,[Ai,So]=Sn(xr,pe);fm(A,So&&!!WK(Ue),Ai,Co(Ue))}return Rt?Te?bK(Nn):Nn:void 0}const rn=vO(Ue,Lr);if(Rt&&rn)return rn.flags&402653316&&!Pe.noUncheckedIndexedAccess?Nn:dc(Te?[rn,Nn,Ce]:[rn,Nn],2);return o&128?bK(rn):rn;function Sn(xr,Ai){var So;return Ai?xr?[N.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[N.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:$we(o,0,f,void 0)?[N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:wrt((So=f.symbol)==null?void 0:So.escapedName)?[N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:xr?[N.Type_0_is_not_an_array_type_or_a_string_type,!0]:[N.Type_0_is_not_an_array_type,!0]}}function wrt(o){switch(o){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 $we(o,f,v,A){if(bn(v))return;const R=e_e(v,o,A);return R&&R[Tae(f)]}function uL(o=Tc,f=Tc,v=Io){if(o.flags&67359327&&f.flags&180227&&v.flags&180227){const A=B2([o,f,v]);let R=Tl.get(A);return R||(R={yieldType:o,returnType:f,nextType:v},Tl.set(A,R)),R}return{yieldType:o,returnType:f,nextType:v}}function Rrt(o){let f,v,A;for(const R of o)if(!(R===void 0||R===fc)){if(R===Gd)return Gd;f=ur(f,R.yieldType),v=ur(v,R.returnType),A=ur(A,R.nextType)}return f||v||A?uL(f&&dc(f),v&&dc(v),A&&vp(A)):fc}function _ne(o,f){return o[f]}function Xk(o,f,v){return o[f]=v}function e_e(o,f,v){var A,R;if(bn(o))return Gd;if(!(o.flags&1048576)){const Ue=v?{errors:void 0}:void 0,St=Mrt(o,f,v,Ue);if(St===fc){if(v){const Rt=jGe(v,o,!!(f&2));Ue!=null&&Ue.errors&&ml(Rt,...Ue.errors)}return}else if((A=Ue==null?void 0:Ue.errors)!=null&&A.length)for(const Rt of Ue.errors)j_.add(Rt);return St}const B=f&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",Y=_ne(o,B);if(Y)return Y===fc?void 0:Y;let pe;for(const Ue of o.types){const St=v?{errors:void 0}:void 0,Rt=Mrt(Ue,f,v,St);if(Rt===fc){if(v){const rn=jGe(v,o,!!(f&2));St!=null&&St.errors&&ml(rn,...St.errors)}Xk(o,B,fc);return}else if((R=St==null?void 0:St.errors)!=null&&R.length)for(const rn of St.errors)j_.add(rn);pe=ur(pe,Rt)}const Te=pe?Rrt(pe):fc;return Xk(o,B,Te),Te===fc?void 0:Te}function qwe(o,f){if(o===fc)return fc;if(o===Gd)return Gd;const{yieldType:v,returnType:A,nextType:R}=o;return f&&eN(!0),uL(XB(v,f)||Ge,XB(A,f)||Ge,R)}function Mrt(o,f,v,A){if(bn(o))return Gd;let R=!1;if(f&2){const B=BGe(o,bm)||Ort(o,bm);if(B)if(B===fc&&v)R=!0;else return f&8?qwe(B,v):B}if(f&1){let B=BGe(o,ay)||Ort(o,ay);if(B)if(B===fc&&v)R=!0;else if(f&2){if(B!==fc)return B=qwe(B,v),R?B:Xk(o,"iterationTypesOfAsyncIterable",B)}else return B}if(f&2){const B=GGe(o,bm,v,A,R);if(B!==fc)return B}if(f&1){let B=GGe(o,ay,v,A,R);if(B!==fc)return f&2?(B=qwe(B,v),R?B:Xk(o,"iterationTypesOfAsyncIterable",B)):B}return fc}function BGe(o,f){return _ne(o,f.iterableCacheKey)}function Lrt(o,f){const v=BGe(o,f)||GGe(o,f,void 0,void 0,!1);return v===fc?ah:v}function Ort(o,f){let v;if(hw(o,v=f.getGlobalIterableType(!1))||hw(o,v=f.getGlobalIterableIteratorType(!1))){const[A]=ch(o),{returnType:R,nextType:B}=Lrt(v,f);return Xk(o,f.iterableCacheKey,uL(f.resolveIterationType(A,void 0)||A,f.resolveIterationType(R,void 0)||R,B))}if(hw(o,f.getGlobalGeneratorType(!1))){const[A,R,B]=ch(o);return Xk(o,f.iterableCacheKey,uL(f.resolveIterationType(A,void 0)||A,f.resolveIterationType(R,void 0)||R,B))}}function zGe(o){const f=jue(!1),v=f&&Xe(La(f),ey(o));return v&&yv(v)?vv(v):`__@${o}`}function GGe(o,f,v,A,R){const B=Yd(o,zGe(f.iteratorSymbolName)),Y=B&&!(B.flags&16777216)?La(B):void 0;if(bn(Y))return R?Gd:Xk(o,f.iterableCacheKey,Gd);const pe=Y?ed(Y,0):void 0;if(!gt(pe))return R?fc:Xk(o,f.iterableCacheKey,fc);const Te=vp(Vn(pe,np)),Ue=Frt(Te,f,v,A,R)??fc;return R?Ue:Xk(o,f.iterableCacheKey,Ue)}function jGe(o,f,v){const A=v?N.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,R=!!WK(f)||!v&&Bx(o.parent)&&o.parent.expression===o&&tbe(!1)!==Ka&&Id(f,tbe(!1));return fm(o,R,A,Co(f))}function VGe(o,f,v,A){return Frt(o,f,v,A,!1)}function Frt(o,f,v,A,R){if(bn(o))return Gd;let B=zK(o,f)||Wrt(o,f);return B===fc&&v&&(B=void 0,R=!0),B??(B=HGe(o,f,v,A,R)),B===fc?void 0:B}function zK(o,f){return _ne(o,f.iteratorCacheKey)}function Wrt(o,f){const v=f.getGlobalIterableIteratorType(!1);if(hw(o,v)){const[A]=ch(o),R=zK(v,f)||HGe(v,f,void 0,void 0,!1),{returnType:B,nextType:Y}=R===fc?ah:R;return Xk(o,f.iteratorCacheKey,uL(A,B,Y))}if(hw(o,f.getGlobalIteratorType(!1))||hw(o,f.getGlobalGeneratorType(!1))){const[A,R,B]=ch(o);return Xk(o,f.iteratorCacheKey,uL(A,R,B))}}function Brt(o,f){const v=Xe(o,"done")||vo;return Id(f===0?vo:Ts,v)}function r0t(o){return Brt(o,0)}function zrt(o){return Brt(o,1)}function i0t(o){if(bn(o))return Gd;const f=_ne(o,"iterationTypesOfIteratorResult");if(f)return f;if(hw(o,wB(!1))){const Y=ch(o)[0];return Xk(o,"iterationTypesOfIteratorResult",uL(Y,void 0,void 0))}if(hw(o,ygt(!1))){const Y=ch(o)[0];return Xk(o,"iterationTypesOfIteratorResult",uL(void 0,Y,void 0))}const v=lv(o,r0t),A=v!==Tc?Xe(v,"value"):void 0,R=lv(o,zrt),B=R!==Tc?Xe(R,"value"):void 0;return!A&&!B?Xk(o,"iterationTypesOfIteratorResult",fc):Xk(o,"iterationTypesOfIteratorResult",uL(A,B||bl,void 0))}function UGe(o,f,v,A,R){var B,Y,pe,Te;const Ue=Yd(o,v);if(!Ue&&v!=="next")return;const St=Ue&&!(v==="next"&&Ue.flags&16777216)?v==="next"?La(Ue):IC(La(Ue),2097152):void 0;if(bn(St))return v==="next"?Gd:ag;const Rt=St?ed(St,0):Yn;if(Rt.length===0){if(A){const mo=v==="next"?f.mustHaveANextMethodDiagnostic:f.mustBeAMethodDiagnostic;R?(R.errors??(R.errors=[]),R.errors.push(Bs(A,mo,v))):hn(A,mo,v)}return v==="next"?fc:void 0}if(St!=null&&St.symbol&&Rt.length===1){const mo=f.getGlobalGeneratorType(!1),Ya=f.getGlobalIteratorType(!1),Ra=((Y=(B=mo.symbol)==null?void 0:B.members)==null?void 0:Y.get(v))===St.symbol,Va=!Ra&&((Te=(pe=Ya.symbol)==null?void 0:pe.members)==null?void 0:Te.get(v))===St.symbol;if(Ra||Va){const Da=Ra?mo:Ya,{mapper:cc}=St;return uL(tL(Da.typeParameters[0],cc),tL(Da.typeParameters[1],cc),v==="next"?tL(Da.typeParameters[2],cc):void 0)}}let rn,Sn;for(const mo of Rt)v!=="throw"&>(mo.parameters)&&(rn=ur(rn,XI(mo,0))),Sn=ur(Sn,np(mo));let xr,Ai;if(v!=="throw"){const mo=rn?dc(rn):Io;if(v==="next")Ai=mo;else if(v==="return"){const Ya=f.resolveIterationType(mo,A)||Ge;xr=ur(xr,Ya)}}let So;const la=Sn?vp(Sn):Tc,Zs=f.resolveIterationType(la,A)||Ge,ba=i0t(Zs);return ba===fc?(A&&(R?(R.errors??(R.errors=[]),R.errors.push(Bs(A,f.mustHaveAValueDiagnostic,v))):hn(A,f.mustHaveAValueDiagnostic,v)),So=Ge,xr=ur(xr,Ge)):(So=ba.yieldType,xr=ur(xr,ba.returnType)),uL(So,dc(xr),Ai)}function HGe(o,f,v,A,R){const B=Rrt([UGe(o,f,"next",v,A),UGe(o,f,"return",v,A),UGe(o,f,"throw",v,A)]);return R?B:Xk(o,f.iteratorCacheKey,B)}function b5(o,f,v){if(bn(f))return;const A=JGe(f,v);return A&&A[Tae(o)]}function JGe(o,f){if(bn(o))return Gd;const v=f?2:1,A=f?bm:ay;return e_e(o,v,void 0)||VGe(o,A,void 0,void 0)}function Grt(o){u8(o)||$kt(o)}function dne(o,f){const v=!!(f&1),A=!!(f&2);if(v){const R=b5(1,o,A);return R?A?gM(lne(R)):R:Sr}return A?gM(o)||Sr:o}function $Ge(o,f){const v=dne(f,ob(o));return!!(v&&(Ty(v,16384)||v.flags&32769))}function o0t(o){if(u8(o))return;const f=vie(o);if(f&&Ep(f)){vT(o,N.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!f){vT(o,N.A_return_statement_can_only_be_used_within_a_function_body);return}const v=gb(f),A=np(v),R=ob(f);if(Ke||o.expression||A.flags&131072){const B=o.expression?kv(o.expression):Ce;if(f.kind===178)o.expression&&hn(o,N.Setters_cannot_return_a_value);else if(f.kind===176)o.expression&&!rN(B,A,o,o.expression)&&hn(o,N.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(sK(f)){const Y=dne(A,R)??A,pe=R&2?cne(B,!1,o,N.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):B;Y&&rN(pe,Y,o,o.expression)}}else f.kind!==176&&Pe.noImplicitReturns&&!$Ge(f,A)&&hn(o,N.Not_all_code_paths_return_a_value)}function a0t(o){u8(o)||o.flags&65536&&vT(o,N.with_statements_are_not_allowed_in_an_async_function_block),Bf(o.expression);const f=ts(o);if(!$V(f)){const v=M0(f,o.pos).start,A=o.statement.pos;qV(f,v,A-v,N.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function T5(o){u8(o);let f,v=!1;const A=Bf(o.expression);Ot(o.caseBlock.clauses,R=>{R.kind===297&&!v&&(f===void 0?f=R:(Uo(R,N.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),v=!0)),R.kind===296&&i(B(R)),Ot(R.statements,On),Pe.noFallthroughCasesInSwitch&&R.fallthroughFlowNode&&Wte(R.fallthroughFlowNode)&&hn(R,N.Fallthrough_case_in_switch);function B(Y){return()=>{const pe=Bf(Y.expression);hGe(A,pe)||Cte(pe,A,Y.expression,void 0)}}}),o.caseBlock.locals&&qk(o.caseBlock)}function c1(o){u8(o)||Ua(o.parent,f=>F_(f)?"quit":f.kind===256&&f.label.escapedText===o.label.escapedText?(Uo(o.label,N.Duplicate_label_0,Lv(o.label)),!0):!1),On(o.statement)}function S5(o){u8(o)||xn(o.expression)&&!o.expression.escapedText&&cPt(o,N.Line_break_not_permitted_here),o.expression&&Bf(o.expression)}function s0t(o){u8(o),Uwe(o.tryBlock);const f=o.catchClause;if(f){if(f.variableDeclaration){const v=f.variableDeclaration;D1e(v);const A=Zy(v);if(A){const R=Xl(A);R&&!(R.flags&3)&&vT(A,N.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(v.initializer)vT(v.initializer,N.Catch_clause_variable_cannot_have_an_initializer);else{const R=f.block.locals;R&&gA(f.locals,B=>{const Y=R.get(B);Y!=null&&Y.valueDeclaration&&Y.flags&2&&Uo(Y.valueDeclaration,N.Cannot_redeclare_identifier_0_in_catch_clause,Ic(B))})}}Uwe(f.block)}o.finallyBlock&&Uwe(o.finallyBlock)}function Po(o,f,v){const A=JT(o);if(A.length===0)return;for(const B of W2(o))v&&B.flags&4194304||jrt(o,B,c5(B,8576,!0),AC(B));const R=f.valueDeclaration;if(R&&Fl(R)){for(const B of R.members)if(!pd(B)&&!DB(B)){const Y=sc(B);jrt(o,Y,s1(B.name.expression),AC(Y))}}if(A.length>1)for(const B of A)c0t(o,B)}function jrt(o,f,v,A){const R=f.valueDeclaration,B=i_(R);if(B&&Lu(B))return;const Y=oK(o,v),pe=ji(o)&2?Rh(o.symbol,264):void 0,Te=R&&R.kind===226||B&&B.kind===167?R:void 0,Ue=xE(f)===o.symbol?R:void 0;for(const St of Y){const Rt=St.declaration&&xE(sc(St.declaration))===o.symbol?St.declaration:void 0,rn=Ue||Rt||(pe&&!gt(l0(o),Sn=>!!$6(Sn,f.escapedName)&&!!vO(Sn,St.keyType))?pe:void 0);if(rn&&!Id(A,St.type)){const Sn=Rp(rn,N.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ru(f),Co(A),Co(St.keyType),Co(St.type));Te&&rn!==Te&&ml(Sn,Bs(Te,N._0_is_declared_here,ru(f))),j_.add(Sn)}}}function c0t(o,f){const v=f.declaration,A=oK(o,f.keyType),R=ji(o)&2?Rh(o.symbol,264):void 0,B=v&&xE(sc(v))===o.symbol?v:void 0;for(const Y of A){if(Y===f)continue;const pe=Y.declaration&&xE(sc(Y.declaration))===o.symbol?Y.declaration:void 0,Te=B||pe||(R&&!gt(l0(o),Ue=>!!Tw(Ue,f.keyType)&&!!vO(Ue,Y.keyType))?R:void 0);Te&&!Id(f.type,Y.type)&&hn(Te,N._0_index_type_1_is_not_assignable_to_2_index_type_3,Co(f.keyType),Co(f.type),Co(Y.keyType),Co(Y.type))}}function pne(o,f){switch(o.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":hn(o,f,o.escapedText)}}function l0t(o){dt>=1&&o.escapedText==="Object"&&(Ie<5||ts(o).impliedNodeFormat===1)&&hn(o,N.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,wz[Ie])}function u0t(o){const f=gi(WM(o),A2);if(!Nt(f))return;const v=Cs(o),A=new Set,R=new Set;if(Ot(o.parameters,({name:Y},pe)=>{xn(Y)&&A.add(Y.escapedText),$_(Y)&&R.add(pe)}),EPe(o)){const Y=f.length-1,pe=f[Y];v&&pe&&xn(pe.name)&&pe.typeExpression&&pe.typeExpression.type&&!A.has(pe.name.escapedText)&&!R.has(Y)&&!kE(Xl(pe.typeExpression.type))&&hn(pe.name,N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Kr(pe.name))}else Ot(f,({name:Y,isNameFirst:pe},Te)=>{R.has(Te)||xn(Y)&&A.has(Y.escapedText)||(Pu(Y)?v&&hn(Y,N.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,iE(Y),iE(Y.left)):pe||yh(v,Y,N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(Y)))})}function k1e(o){let f=!1;if(o)for(let A=0;A{A.default?(f=!0,hM(A.default,o,R)):f&&hn(A,N.Required_type_parameters_may_not_follow_optional_type_parameters);for(let B=0;BA)return!1;for(let Te=0;Teev(v)&&IT(v))&&Uo(f,N.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!o.name&&!ul(o,2048)&&vT(o,N.A_class_declaration_without_the_default_modifier_must_have_a_name),Jrt(o),Ot(o.members,On),qk(o)}function Jrt(o){wkt(o),BK(o),UV(o,o.name),k1e(Hb(o)),Jfe(o);const f=sc(o),v=sh(f),A=vx(v),R=La(f);Kwe(f),zwe(f),cvt(o),!!(o.flags&33554432)||lvt(o);const Y=YC(o);if(Y){Ot(Y.typeArguments,On),dt<2&&yb(Y.parent,1);const Ue=gR(o);Ue&&Ue!==Y&&Bf(Ue.expression);const St=l0(v);St.length&&i(()=>{const Rt=St[0],rn=cv(v),Sn=yS(rn);if(Xrt(Sn,Y),On(Y.expression),gt(Y.typeArguments)){Ot(Y.typeArguments,On);for(const Ai of _m(Sn,Y.typeArguments,Y))if(!prt(Y,Ai.typeParameters))break}const xr=vx(Rt,v.thisType);if(a1(A,xr,void 0)?a1(R,ybe(Sn),o.name||o,N.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Krt(o,A,xr,N.Class_0_incorrectly_extends_base_class_1),rn.flags&8650752&&(Mc(R)?ed(rn,1).some(So=>So.flags&4)&&!ul(o,64)&&hn(o.name||o,N.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):hn(o.name||o,N.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Sn.symbol&&Sn.symbol.flags&32)&&!(rn.flags&8650752)){const Ai=kg(Sn,Y.typeArguments,Y);Ot(Ai,So=>!Ax(So.declaration)&&!Xh(np(So),Rt))&&hn(Y.expression,N.Base_constructors_must_all_have_the_same_return_type)}Xwe(v,Rt)})}p0t(o,v,A,R);const pe=ZM(o);if(pe)for(const Ue of pe)(!Tg(Ue.expression)||uy(Ue.expression))&&hn(Ue.expression,N.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),kGe(Ue),i(Te(Ue));i(()=>{Po(v,f),Po(R,f,!0),CGe(o),C(o)});function Te(Ue){return()=>{const St=zI(Xl(Ue));if(!Fn(St))if(ZF(St)){const Rt=St.symbol&&St.symbol.flags&32?N.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:N.Class_0_incorrectly_implements_interface_1,rn=vx(St,v.thisType);a1(A,rn,void 0)||Krt(o,A,rn,Rt)}else hn(Ue,N.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function p0t(o,f,v,A){const B=YC(o)&&l0(f),Y=B!=null&&B.length?vx(Dl(B),f.thisType):void 0,pe=cv(f);for(const Te of o.members)il(Te)||(Lh(Te)&&Ot(Te.parameters,Ue=>{DT(Ue,Te)&&$rt(o,A,pe,Y,f,v,Ue,!0)}),$rt(o,A,pe,Y,f,v,Te,!1))}function $rt(o,f,v,A,R,B,Y,pe,Te=!0){const Ue=Y.name&&ss(Y.name)||ss(Y);return Ue?qrt(o,f,v,A,R,B,zie(Y),Ab(Y),pd(Y),pe,Il(Ue),Te?Y:void 0):0}function qrt(o,f,v,A,R,B,Y,pe,Te,Ue,St,Rt){const rn=Cs(o),Sn=!!(o.flags&33554432);if(A&&(Y||Pe.noImplicitOverride)){const xr=ey(St),Ai=Te?f:B,So=Te?v:A,la=Yd(Ai,xr),Zs=Yd(So,xr),ba=Co(A);if(la&&!Zs&&Y){if(Rt){const mo=Tnt(St,So);mo?hn(Rt,rn?N.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:N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,ba,ru(mo)):hn(Rt,rn?N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,ba)}return 2}else if(la&&(Zs!=null&&Zs.declarations)&&Pe.noImplicitOverride&&!Sn){const mo=gt(Zs.declarations,Ab);if(Y)return 0;if(mo){if(pe&&mo)return Rt&&hn(Rt,N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,ba),1}else{if(Rt){const Ya=Ue?rn?N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:rn?N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;hn(Rt,Ya,ba)}return 1}}}else if(Y){if(Rt){const xr=Co(R);hn(Rt,rn?N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,xr)}return 2}return 0}function Krt(o,f,v,A){let R=!1;for(const B of o.members){if(pd(B))continue;const Y=B.name&&ss(B.name)||ss(B);if(Y){const pe=Yd(f,Y.escapedName),Te=Yd(v,Y.escapedName);if(pe&&Te){const Ue=()=>Es(void 0,N.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ru(Y),Co(f),Co(v));a1(La(pe),La(Te),B.name||B,void 0,Ue)||(R=!0)}}}R||a1(f,v,o.name||o,A)}function Xrt(o,f){const v=ed(o,1);if(v.length){const A=v[0].declaration;if(A&&tT(A,2)){const R=RS(o.symbol);rm(f,R)||hn(f,N.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,GS(o.symbol))}}}function m0t(o,f,v){if(!f.name)return 0;const A=sc(o),R=sh(A),B=vx(R),Y=La(A),Te=YC(o)&&l0(R),Ue=Te!=null&&Te.length?vx(Dl(Te),R.thisType):void 0,St=cv(R),Rt=f.parent?zie(f):ul(f,16);return qrt(o,Y,St,Ue,R,B,Rt,Ab(f),pd(f),!1,Il(v))}function E5(o){return I_(o)&1?o.links.target:o}function x5(o){return gi(o.declarations,f=>f.kind===263||f.kind===264)}function Xwe(o,f){var v,A,R,B;const Y=zm(f);let pe;e:for(const Te of Y){const Ue=E5(Te);if(Ue.flags&4194304)continue;const St=$6(o,Ue.escapedName);if(!St)continue;const Rt=E5(St),rn=Vy(Ue);if(re.assert(!!Rt,"derived should point to something, even if it is the base class' declaration."),Rt===Ue){const Sn=RS(o.symbol);if(rn&64&&(!Sn||!ul(Sn,64))){for(const xr of l0(o)){if(xr===f)continue;const Ai=$6(xr,Ue.escapedName),So=Ai&&E5(Ai);if(So&&So!==Ue)continue e}pe||(pe=hn(Sn,N.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Co(o),Co(f))),Sn.kind===231?ml(pe,Bs(Te.valueDeclaration??(Te.declarations&&Dl(Te.declarations))??Sn,N.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ru(Te),Co(f))):ml(pe,Bs(Te.valueDeclaration??(Te.declarations&&Dl(Te.declarations))??Sn,N.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Co(o),ru(Te),Co(f)))}}else{const Sn=Vy(Rt);if(rn&2||Sn&2)continue;let xr;const Ai=Ue.flags&98308,So=Rt.flags&98308;if(Ai&&So){if((I_(Ue)&6?(v=Ue.declarations)!=null&&v.some(ba=>a(ba,rn)):(A=Ue.declarations)!=null&&A.every(ba=>a(ba,rn)))||I_(Ue)&262144||Rt.valueDeclaration&&Ds(Rt.valueDeclaration))continue;const la=Ai!==4&&So===4;if(la||Ai===4&&So!==4){const ba=la?N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,ba,ru(Ue),Co(f),Co(o))}else if(Ct){const ba=(R=Rt.declarations)==null?void 0:R.find(mo=>mo.kind===172&&!mo.initializer);if(ba&&!(Rt.flags&33554432)&&!(rn&64)&&!(Sn&64)&&!((B=Rt.declarations)!=null&&B.some(mo=>!!(mo.flags&33554432)))){const mo=hD(RS(o.symbol)),Ya=ba.name;if(ba.exclamationToken||!mo||!xn(Ya)||!Ke||!Z(Ya,o,mo)){const Ra=N.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;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,Ra,ru(Ue),Co(f))}}}continue}else if(AK(Ue)){if(AK(Rt)||Rt.flags&4)continue;re.assert(!!(Rt.flags&98304)),xr=N.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Ue.flags&98304?xr=N.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:xr=N.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;hn(i_(Rt.valueDeclaration)||Rt.valueDeclaration,xr,Co(f),ru(Ue),Co(o))}}}function a(o,f){return f&64&&(!nu(o)||!o.initializer)||xp(o.parent)}function _(o,f,v){if(!Nt(f))return v;const A=new Map;Ot(v,R=>{A.set(R.escapedName,R)});for(const R of f){const B=zm(vx(R,o.thisType));for(const Y of B){const pe=A.get(Y.escapedName);pe&&Y.parent===pe.parent&&A.delete(Y.escapedName)}}return oc(A.values())}function b(o,f){const v=l0(o);if(v.length<2)return!0;const A=new Map;Ot(vWe(o).declaredProperties,B=>{A.set(B.escapedName,{prop:B,containingType:o})});let R=!0;for(const B of v){const Y=zm(vx(B,o.thisType));for(const pe of Y){const Te=A.get(pe.escapedName);if(!Te)A.set(pe.escapedName,{prop:pe,containingType:B});else if(Te.containingType!==o&&!Hgt(Te.prop,pe)){R=!1;const St=Co(Te.containingType),Rt=Co(B);let rn=Es(void 0,N.Named_property_0_of_types_1_and_2_are_not_identical,ru(pe),St,Rt);rn=Es(rn,N.Interface_0_cannot_simultaneously_extend_types_1_and_2,Co(o),St,Rt),j_.add(wN(ts(f),f,rn))}}}return R}function C(o){if(!Ke||!Yt||o.flags&33554432)return;const f=hD(o);for(const v of o.members)if(!(Cb(v)&128)&&!pd(v)&&M(v)){const A=v.name;if(xn(A)||Lu(A)||Qf(A)){const R=La(sc(v));R.flags&3||dK(R)||(!f||!Z(A,R,f))&&hn(v.name,N.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,hm(A))}}}function M(o){return o.kind===172&&!Ab(o)&&!o.exclamationToken&&!o.initializer}function z(o,f,v,A,R){for(const B of v)if(B.pos>=A&&B.pos<=R){const Y=he.createPropertyAccessExpression(he.createThis(),o);kl(Y.expression,Y),kl(Y,B),Y.flowNode=B.returnFlowNode;const pe=a8(Y,f,iL(f));if(!dK(pe))return!0}return!1}function Z(o,f,v){const A=Qf(o)?he.createElementAccessExpression(he.createThis(),o.expression):he.createPropertyAccessExpression(he.createThis(),o);kl(A.expression,A),kl(A,v),A.flowNode=v.returnFlowNode;const R=a8(A,f,iL(f));return!dK(R)}function me(o){fL(o)||Bkt(o),k1e(o.typeParameters),i(()=>{pne(o.name,N.Interface_name_cannot_be_0),Jfe(o);const f=sc(o);Kwe(f);const v=Rh(f,264);if(o===v){const A=sh(f),R=vx(A);if(b(A,o.name)){for(const B of l0(A))a1(R,vx(B,A.thisType),o.name,N.Interface_0_incorrectly_extends_interface_1);Po(A,f)}}Lwe(o)}),Ot(gH(o),f=>{(!Tg(f.expression)||uy(f.expression))&&hn(f.expression,N.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),kGe(f)}),Ot(o.members,On),i(()=>{CGe(o),qk(o)})}function Se(o){fL(o),pne(o.name,N.Type_alias_name_cannot_be_0),Jfe(o),k1e(o.typeParameters),o.type.kind===141?(!nr.has(o.name.escapedText)||Nt(o.typeParameters)!==1)&&hn(o.type,N.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(On(o.type),qk(o))}function Je(o){const f=rt(o);if(!(f.flags&1024)){f.flags|=1024;let v=0;for(const A of o.members){const R=vt(A,v);rt(A).enumMemberValue=R,v=typeof R=="number"?R+1:void 0}}}function vt(o,f){if(Xz(o.name))hn(o.name,N.Computed_property_names_are_not_allowed_in_enums);else{const v=z8(o.name);FT(v)&&!d3(v)&&hn(o.name,N.An_enum_member_cannot_have_a_numeric_name)}if(o.initializer)return Pt(o);if(!(o.parent.flags&33554432&&!G8(o.parent))){if(f!==void 0)return f;hn(o.name,N.Enum_member_must_have_initializer)}}function Pt(o){const f=G8(o.parent),v=o.initializer,A=dn(v,o);return A!==void 0?f&&typeof A=="number"&&!isFinite(A)&&hn(v,isNaN(A)?N.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:N.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):f?hn(v,N.const_enum_member_initializers_must_be_constant_expressions):o.parent.flags&33554432?hn(v,N.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):a1(Bf(v),Lr,v,N.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),A}function dn(o,f){switch(o.kind){case 224:const v=dn(o.operand,f);if(typeof v=="number")switch(o.operator){case 40:return v;case 41:return-v;case 55:return~v}break;case 226:const A=dn(o.left,f),R=dn(o.right,f);if(typeof A=="number"&&typeof R=="number")switch(o.operatorToken.kind){case 52:return A|R;case 51:return A&R;case 49:return A>>R;case 50:return A>>>R;case 48:return A<Wo(o))}function Wo(o){fL(o),UV(o,o.name),Jfe(o),o.members.forEach(aa),Je(o);const f=sc(o),v=Rh(f,o.kind);if(o===v){if(f.declarations&&f.declarations.length>1){const R=G8(o);Ot(f.declarations,B=>{xP(B)&&G8(B)!==R&&hn(i_(B),N.Enum_declarations_must_all_be_const_or_non_const)})}let A=!1;Ot(f.declarations,R=>{if(R.kind!==266)return!1;const B=R;if(!B.members.length)return!1;const Y=B.members[0];Y.initializer||(A?hn(Y.name,N.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):A=!0)})}}function aa(o){Lu(o.name)&&hn(o,N.An_enum_member_cannot_be_named_with_a_private_identifier),o.initializer&&Bf(o.initializer)}function $s(o){const f=o.declarations;if(f){for(const v of f)if((v.kind===263||v.kind===262&&y2(v.body))&&!(v.flags&33554432))return v}}function Ba(o,f){const v=QD(o),A=QD(f);return Dn(v)?Dn(A):Dn(A)?!1:v===A}function lo(o){o.body&&(On(o.body),JC(o)||qk(o)),i(f);function f(){var v,A;const R=JC(o),B=o.flags&33554432;R&&!B&&hn(o.name,N.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const Y=dh(o),pe=Y?N.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:N.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(kC(o,pe))return;fL(o)||!B&&o.name.kind===11&&Uo(o.name,N.Only_ambient_modules_can_use_quoted_names),xn(o.name)&&UV(o,o.name),Jfe(o);const Te=sc(o);if(Te.flags&512&&!B&&sme(o,gk(Pe))){if(F0(Pe)&&!ts(o).externalModuleIndicator&&hn(o.name,N.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,Pn),((v=Te.declarations)==null?void 0:v.length)>1){const Ue=$s(Te);Ue&&(ts(o)!==ts(Ue)?hn(o.name,N.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):o.posSt.kind===95);Ue&&hn(Ue,N.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(Y)if(Ov(o)){if((R||sc(o).flags&33554432)&&o.body)for(const St of o.body.statements)Xa(St,R)}else Dn(o.parent)?R?hn(o.name,N.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Kv(K2(o.name))&&hn(o.name,N.Ambient_module_declaration_cannot_specify_relative_module_name):R?hn(o.name,N.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):hn(o.name,N.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Xa(o,f){switch(o.kind){case 243:for(const A of o.declarationList.declarations)Xa(A,f);break;case 277:case 278:vT(o,N.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:vT(o,N.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const v=o.name;if($_(v)){for(const A of v.elements)Xa(A,f);break}case 263:case 266:case 262:case 264:case 267:case 265:if(f)return;break}}function Go(o){switch(o.kind){case 80:return o;case 166:do o=o.left;while(o.kind!==80);return o;case 211:do{if(jE(o.expression)&&!Lu(o.name))return o.name;o=o.expression}while(o.kind!==80);return o}}function Pa(o){const f=w9(o);if(!f||ny(f))return!1;if(!Sd(f))return hn(f,N.String_literal_expected),!1;const v=o.parent.kind===268&&dh(o.parent.parent);if(o.parent.kind!==312&&!v)return hn(f,o.kind===278?N.Export_declarations_are_not_permitted_in_a_namespace:N.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(v&&Kv(f.text)&&!KF(o))return hn(o,N.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Yb(o)&&o.attributes){const A=o.attributes.token===118?N.Import_attribute_values_must_be_string_literal_expressions:N.Import_assertion_values_must_be_string_literal_expressions;let R=!1;for(const B of o.attributes.elements)Sd(B.value)||(R=!0,hn(B.value,A));return!R}return!0}function Ga(o){var f,v,A,R;let B=sc(o);const Y=C0(B);if(Y!==Pr){if(B=jp(B.exportSymbol||B),Cs(o)&&!(Y.flags&111551)&&!O8(o)){const Ue=fP(o)?o.propertyName||o.name:mp(o)?o.name:o;if(re.assert(o.kind!==280),o.kind===281){const St=hn(Ue,N.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Rt=(v=(f=ts(o).symbol)==null?void 0:f.exports)==null?void 0:v.get((o.propertyName||o.name).escapedText);if(Rt===Y){const rn=(A=Rt.declarations)==null?void 0:A.find(Jz);rn&&ml(St,Bs(rn,N._0_is_automatically_exported_here,Ic(Rt.escapedName)))}}else{re.assert(o.kind!==260);const St=Ua(o,bb(n0,Yb)),Rt=(St&&((R=C7(St))==null?void 0:R.text))??"...",rn=Ic(xn(Ue)?Ue.escapedText:B.escapedName);hn(Ue,N._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,rn,`import("${Rt}").${rn}`)}return}const pe=pT(Y),Te=(B.flags&1160127?111551:0)|(B.flags&788968?788968:0)|(B.flags&1920?1920:0);if(pe&Te){const Ue=o.kind===281?N.Export_declaration_conflicts_with_exported_declaration_of_0:N.Import_declaration_conflicts_with_local_declaration_of_0;hn(o,Ue,ru(B))}if(F0(Pe)&&!O8(o)&&!(o.flags&33554432)){const Ue=Qx(B),St=!(pe&111551);if(St||Ue)switch(o.kind){case 273:case 276:case 271:{if(Pe.preserveValueImports||Pe.verbatimModuleSyntax){re.assertIsDefined(o.name,"An ImportClause with a symbol should have a name");const Rt=Pe.verbatimModuleSyntax&&$M(o)?N.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:St?Pe.verbatimModuleSyntax?N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Pe.verbatimModuleSyntax?N._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,rn=Kr(o.kind===276&&o.propertyName||o.name);r2(hn(o,Rt,rn),St?void 0:Ue,rn)}St&&o.kind===271&&tT(o,32)&&hn(o,N.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Pn);break}case 281:if(Pe.verbatimModuleSyntax||ts(Ue)!==ts(o)){const Rt=Kr(o.propertyName||o.name),rn=St?hn(o,N.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Pn):hn(o,N._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Rt,Pn);r2(rn,St?void 0:Ue,Rt);break}}Pe.verbatimModuleSyntax&&o.kind!==271&&!Cs(o)&&(Ie===1||ts(o).impliedNodeFormat===1)&&hn(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(qE(o)){const Ue=hs(B,o);BS(Ue)&&Ue.declarations&&pS(o,Ue.declarations,Ue.escapedName)}}}function hs(o,f){if(!(o.flags&2097152)||BS(o)||!UT(o))return o;const v=C0(o);if(v===Pr)return v;for(;o.flags&2097152;){const A=kze(o);if(A){if(A===v)break;if(A.declarations&&Nt(A.declarations))if(BS(A)){pS(f,A.declarations,A.escapedName);break}else{if(o===v)break;o=A}}else break}return v}function Ld(o){UV(o,o.name),Ga(o),o.kind===276&&Kr(o.propertyName||o.name)==="default"&&b1(Pe)&&Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&yb(o,131072)}function nl(o){var f;const v=o.attributes;if(v){const A=qQ(o),R=W3(v,A?Uo:void 0),B=o.attributes.token===118;if(A&&R)return;if((Ie===199&&o.moduleSpecifier&&gf(o.moduleSpecifier))!==99&&Ie!==99){const pe=B?Ie===199?N.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:Ie===199?N.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return Uo(v,pe)}if(n0(o)?(f=o.importClause)!=null&&f.isTypeOnly:o.isTypeOnly)return Uo(v,B?N.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(R)return Uo(v,N.resolution_mode_can_only_be_set_for_type_only_imports)}}function id(o){if(!kC(o,Cs(o)?N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!fL(o)&&Bie(o)&&vT(o,N.An_import_declaration_cannot_have_modifiers),Pa(o)){const f=o.importClause;f&&!uPt(f)&&(f.name&&Ld(f),f.namedBindings&&(f.namedBindings.kind===274?(Ld(f.namedBindings),Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&b1(Pe)&&yb(o,65536)):gS(o,o.moduleSpecifier)&&Ot(f.namedBindings.elements,Ld)))}nl(o)}}function $y(o){if(!kC(o,Cs(o)?N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(fL(o),$M(o)||Pa(o)))if(Ld(o),ul(o,32)&&V6(o),o.moduleReference.kind!==283){const f=C0(sc(o));if(f!==Pr){const v=pT(f);if(v&111551){const A=PS(o.moduleReference);Qg(A,112575).flags&1920||hn(A,N.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,hm(A))}v&788968&&pne(o.name,N.Import_name_cannot_be_0)}o.isTypeOnly&&Uo(o,N.An_import_alias_cannot_use_import_type)}else Ie>=5&&ts(o).impliedNodeFormat===void 0&&!o.isTypeOnly&&!(o.flags&33554432)&&Uo(o,N.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 l2(o){if(!kC(o,Cs(o)?N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!fL(o)&&gSe(o)&&vT(o,N.An_export_declaration_cannot_have_modifiers),o.moduleSpecifier&&o.exportClause&&j0(o.exportClause)&&Nt(o.exportClause.elements)&&dt===0&&yb(o,4194304),Cx(o),!o.moduleSpecifier||Pa(o))if(o.exportClause&&!G0(o.exportClause)){Ot(o.exportClause.elements,dm);const f=o.parent.kind===268&&dh(o.parent.parent),v=!f&&o.parent.kind===268&&!o.moduleSpecifier&&o.flags&33554432;o.parent.kind!==312&&!f&&!v&&hn(o,N.Export_declarations_are_not_permitted_in_a_namespace)}else{const f=gS(o,o.moduleSpecifier);f&&lO(f)?hn(o.moduleSpecifier,N.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ru(f)):o.exportClause&&Ga(o.exportClause),Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&(o.exportClause?b1(Pe)&&yb(o,65536):yb(o,32768))}nl(o)}}function Cx(o){var f;return o.isTypeOnly&&((f=o.exportClause)==null?void 0:f.kind)===279?jSt(o.exportClause):!1}function kC(o,f){const v=o.parent.kind===312||o.parent.kind===268||o.parent.kind===267;return v||vT(o,f),!v}function Gi(o){return aG(o,f=>!!sc(f).isReferenced)}function Ps(o){return aG(o,f=>!!Ae(sc(f)).constEnumReferenced)}function wf(o){return n0(o)&&o.importClause&&!o.importClause.isTypeOnly&&Gi(o.importClause)&&!$f(o.importClause,!0)&&!Ps(o.importClause)}function od(o){return Yb(o)&&KE(o.moduleReference)&&!o.isTypeOnly&&sc(o).isReferenced&&!$f(o,!1)&&!Ae(sc(o)).constEnumReferenced}function Jf(o){if(Fr)for(const f of o.statements)(wf(f)||od(f))&&hn(f,N.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function dm(o){if(Ga(o),gv(Pe)&&Qq(o.propertyName||o.name,!0),o.parent.parent.moduleSpecifier)b1(Pe)&&Ie!==4&&(Ie<5||ts(o).impliedNodeFormat===1)&&Kr(o.propertyName||o.name)==="default"&&yb(o,131072);else{const f=o.propertyName||o.name,v=gg(f,f.escapedText,2998271,void 0,void 0,!0);if(v&&(v===En||v===fr||v.declarations&&Dn(XF(v.declarations[0]))))hn(f,N.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(f));else{!o.isTypeOnly&&!o.parent.parent.isTypeOnly&&V6(o);const A=v&&(v.flags&2097152?C0(v):v);(!A||pT(A)&111551)&&kv(o.propertyName||o.name)}}}function Zg(o){const f=o.isExportEquals?N.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:N.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(kC(o,f))return;const v=o.parent.kind===312?o.parent:o.parent.parent;if(v.kind===267&&!dh(v)){o.isExportEquals?hn(o,N.An_export_assignment_cannot_be_used_in_a_namespace):hn(o,N.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!fL(o)&&Bie(o)&&vT(o,N.An_export_assignment_cannot_have_modifiers);const A=Zy(o);A&&a1(kv(o.expression),Xl(A),o.expression);const R=!o.isExportEquals&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&(Ie===1||ts(o).impliedNodeFormat===1);if(o.expression.kind===80){const B=o.expression,Y=eA(Qg(B,67108863,!0,!0,o));Y?(FV(Y,B),pT(Y)&111551?(kv(B),!R&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&Qx(Y,111551)&&hn(B,o.isExportEquals?N.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Kr(B))):!R&&!(o.flags&33554432)&&Pe.verbatimModuleSyntax&&hn(B,o.isExportEquals?N.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Kr(B))):kv(B),gv(Pe)&&Qq(B,!0)}else kv(o.expression);R&&hn(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),Lp(v),o.flags&33554432&&!Tg(o.expression)&&Uo(o.expression,N.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),o.isExportEquals&&(Ie>=5&&(o.flags&33554432&&ts(o).impliedNodeFormat===99||!(o.flags&33554432)&&ts(o).impliedNodeFormat!==1)?Uo(o,N.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Ie===4&&!(o.flags&33554432)&&Uo(o,N.Export_assignment_is_not_supported_when_module_flag_is_system))}function Pv(o){return Jb(o.exports,(f,v)=>v!=="export=")}function Lp(o){const f=sc(o),v=Ae(f);if(!v.exportsChecked){const A=f.exports.get("export=");if(A&&Pv(f)){const B=UT(A)||A.valueDeclaration;B&&!KF(B)&&!Cs(B)&&hn(B,N.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const R=dw(f);R&&R.forEach(({declarations:B,flags:Y},pe)=>{if(pe==="__export"||Y&1920)return;const Te=dp(B,mU(CHe,dA(xp)));if(!(Y&524288&&Te<=2)&&Te>1&&!$T(B))for(const Ue of B)AHe(Ue)&&j_.add(Bs(Ue,N.Cannot_redeclare_exported_variable_0,Ic(pe)))}),v.exportsChecked=!0}}function $T(o){return o&&o.length>1&&o.every(f=>Cs(f)&&Kf(f)&&(P9(f.expression)||jE(f.expression)))}function On(o){if(o){const f=ae;ae=o,J=0,Xt(o),ae=f}}function Xt(o){T2(o)&&Ot(o.jsDoc,({comment:v,tags:A})=>{bs(v),Ot(A,R=>{bs(R.comment),Cs(o)&&On(R)})});const f=o.kind;if(c)switch(f){case 267:case 263:case 264:case 262:c.throwIfCancellationRequested()}switch(f>=243&&f<=259&&J8(o)&&o.flowNode&&!Wte(o.flowNode)&&yh(Pe.allowUnreachableCode===!1,o,N.Unreachable_code_detected),f){case 168:return crt(o);case 169:return xGe(o);case 172:return Owe(o);case 171:return Fwe(o);case 185:case 184:case 179:case 180:case 181:return Vfe(o);case 174:case 173:return DGe(o);case 175:return frt(o);case 176:return uvt(o);case 177:case 178:return drt(o);case 183:return kGe(o);case 182:return lrt(o);case 186:return grt(o);case 187:return Bwe(o);case 188:return bp(o);case 189:return mvt(o);case 192:case 193:return hrt(o);case 196:case 190:case 191:return On(o.type);case 197:return yvt(o);case 198:return vvt(o);case 194:return bvt(o);case 195:return yrt(o);case 203:return vrt(o);case 205:return Tvt(o);case 202:return brt(o);case 335:return Lvt(o);case 336:return Mvt(o);case 353:case 345:case 347:return Cvt(o);case 352:return Dvt(o);case 351:return Ivt(o);case 331:case 332:case 333:return Pvt(o);case 348:return Nvt(o);case 355:return wvt(o);case 324:Rvt(o);case 322:case 321:case 319:case 320:case 329:as(o),s_(o,On);return;case 325:Ec(o);return;case 316:return On(o.type);case 340:case 342:case 341:return Crt(o);case 357:return kvt(o);case 350:return Art(o);case 199:return gvt(o);case 200:return hvt(o);case 262:return xrt(o);case 241:case 268:return Uwe(o);case 243:return qvt(o);case 244:return Kvt(o);case 245:return Xvt(o);case 246:return Qvt(o);case 247:return Zvt(o);case 248:return e0t(o);case 249:return n0t(o);case 250:return t0t(o);case 251:case 252:return Grt(o);case 253:return o0t(o);case 254:return a0t(o);case 255:return T5(o);case 256:return c1(o);case 257:return S5(o);case 258:return s0t(o);case 260:return $vt(o);case 208:return Hwe(o);case 263:return d0t(o);case 264:return me(o);case 265:return Se(o);case 266:return bi(o);case 267:return lo(o);case 272:return id(o);case 271:return $y(o);case 278:return l2(o);case 277:return Zg(o);case 242:case 259:u8(o);return;case 282:return T1e(o)}}function bs(o){ls(o)&&Ot(o,f=>{F8(f)&&On(f)})}function as(o){if(!Cs(o))if(Gx(o)||WJ(o)){const f=Cf(Gx(o)?54:58),v=o.postfix?N._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,A=o.type,R=Xl(A);Uo(o,v,f,Co(WJ(o)&&!(R===Tc||R===bl)?dc(ur([R,Ce],o.postfix?void 0:mn)):R))}else Uo(o,N.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Ec(o){as(o),On(o.type);const{parent:f}=o;if(Os(f)&&Ak(f.parent)){yl(f.parent.parameters)!==f&&hn(o,N.A_rest_parameter_must_be_last_in_a_parameter_list);return}SW(f)||hn(o,N.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const v=o.parent.parent;if(!A2(v)){hn(o,N.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const A=$8(v);if(!A)return;const R=LN(v);(!R||yl(R.parameters).symbol!==A)&&hn(o,N.A_rest_parameter_must_be_last_in_a_parameter_list)}function Bc(o){const f=Xl(o.type),{parent:v}=o,A=o.parent.parent;if(SW(o.parent)&&A2(A)){const R=LN(A),B=UY(A.parent.parent);if(R||B){const Y=Yf(B?A.parent.parent.typeExpression.parameters:R.parameters),pe=$8(A);if(!Y||pe&&Y.symbol===pe&&sp(Y))return hT(f)}}return Os(v)&&Ak(v.parent)?hT(f):mb(f)}function Rf(o){const f=ts(o),v=rt(f);v.flags&1?re.assert(!v.deferredNodes,"A type-checked file should have no deferred nodes."):(v.deferredNodes||(v.deferredNodes=new Set),v.deferredNodes.add(o))}function Mu(o){const f=rt(o);f.deferredNodes&&f.deferredNodes.forEach(xc),f.deferredNodes=void 0}function xc(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkDeferredNode",{kind:o.kind,pos:o.pos,end:o.end,path:o.tracingPath});const A=ae;switch(ae=o,J=0,o.kind){case 213:case 214:case 215:case 170:case 286:RO(o);break;case 218:case 219:case 174:case 173:fGe(o);break;case 177:case 178:drt(o);break;case 231:Hrt(o);break;case 168:ane(o);break;case 285:Uht(o);break;case 284:Jht(o);break;case 216:case 234:case 217:Cyt(o);break;case 222:Bf(o.expression);break;case 226:jie(o)&&RO(o);break}ae=A,(v=ps)==null||v.pop()}function Dr(o){var f,v;(f=ps)==null||f.push(ps.Phase.Check,"checkSourceFile",{path:o.path},!0),cf("beforeCheck"),ao(o),cf("afterCheck"),Tb("Check","beforeCheck","afterCheck"),(v=ps)==null||v.pop()}function Pi(o,f){if(f)return!1;switch(o){case 0:return!!Pe.noUnusedLocals;case 1:return!!Pe.noUnusedParameters;default:return re.assertNever(o)}}function No(o){return Lb.get(o.path)||Yn}function ao(o){const f=rt(o);if(!(f.flags&1)){if(c3(o,Pe,e))return;aPt(o),g_(vC),g_(zP),g_(Xx),g_(dx),g_(WS),Ot(o.statements,On),On(o.endOfFileToken),Mu(o),aE(o)&&qk(o),i(()=>{!o.isDeclarationFile&&(Pe.noUnusedLocals||Pe.noUnusedParameters)&&A1e(No(o),(v,A,R)=>{!$z(v)&&Pi(A,!!(v.flags&33554432))&&j_.add(R)}),o.isDeclarationFile||Wvt()}),Pe.importsNotUsedAsValues===2&&!o.isDeclarationFile&&Bv(o)&&Jf(o),aE(o)&&Lp(o),vC.length&&(Ot(vC,zvt),g_(vC)),zP.length&&(Ot(zP,Gvt),g_(zP)),Xx.length&&(Ot(Xx,krt),g_(Xx)),dx.length&&(Ot(dx,Hvt),g_(dx)),f.flags|=1}}function Bo(o,f){try{return c=f,zl(o)}finally{c=void 0}}function ja(){for(const o of n)o();n=[]}function rf(o){ja();const f=i;i=v=>v(),Dr(o),i=f}function zl(o){if(o){ja();const f=j_.getGlobalDiagnostics(),v=f.length;rf(o);const A=j_.getDiagnostics(o.fileName),R=j_.getGlobalDiagnostics();if(R!==f){const B=b8(f,R,o3);return Hi(B,A)}else if(v===0&&R.length>0)return Hi(R,A);return A}return Ot(e.getSourceFiles(),rf),j_.getDiagnostics()}function td(){return ja(),j_.getGlobalDiagnostics()}function Jo(o,f){if(o.flags&67108864)return[];const v=zd();let A=!1;return R(),v.delete("this"),q0e(v);function R(){for(;o;){switch(XD(o)&&o.locals&&!Dn(o)&&Y(o.locals,f),o.kind){case 312:if(!Bv(o))break;case 267:pe(sc(o).exports,f&2623475);break;case 266:Y(sc(o).exports,f&8);break;case 231:o.name&&B(o.symbol,f);case 263:case 264:A||Y(j4(sc(o)),f&788968);break;case 218:o.name&&B(o.symbol,f);break}bde(o)&&B(Tr,f),A=pd(o),o=o.parent}Y(jt,f)}function B(Te,Ue){if(r3(Te)&Ue){const St=Te.escapedName;v.has(St)||v.set(St,Te)}}function Y(Te,Ue){Ue&&Te.forEach(St=>{B(St,Ue)})}function pe(Te,Ue){Ue&&Te.forEach(St=>{!Rh(St,281)&&!Rh(St,280)&&St.escapedName!=="default"&&B(St,Ue)})}}function rc(o){return o.kind===80&&f6(o.parent)&&i_(o.parent)===o}function Ll(o){for(;o.parent.kind===166;)o=o.parent;return o.parent.kind===183}function Sf(o){for(;o.parent.kind===211;)o=o.parent;return o.parent.kind===233}function Od(o,f){let v,A=$b(o);for(;A&&!(v=f(A));)A=$b(A);return v}function hb(o){return!!Ua(o,f=>Lh(f)&&y2(f.body)||nu(f)?!0:Fl(f)||Vd(f)?"quit":!1)}function rm(o,f){return!!Od(o,v=>v===f)}function I0(o){for(;o.parent.kind===166;)o=o.parent;if(o.parent.kind===271)return o.parent.moduleReference===o?o.parent:void 0;if(o.parent.kind===277)return o.parent.expression===o?o.parent:void 0}function yg(o){return I0(o)!==void 0}function or(o){switch(jy(o.parent.parent)){case 1:case 3:return hx(o.parent);case 4:case 2:case 5:return sc(o.parent.parent)}}function Hr(o){let f=o.parent;for(;Pu(f);)o=f,f=f.parent;if(f&&f.kind===205&&f.qualifier===o)return f}function fo(o){if(o.expression.kind===110){const f=RT(o,!1,!1);if(F_(f)){const v=Ztt(f);if(v){const A=s8(v,void 0),R=mze(v,A);return R&&!bn(R)}}}}function Oa(o){if(ON(o))return hx(o.parent);if(Cs(o)&&o.parent.kind===211&&o.parent===o.parent.parent.left&&!Lu(o)&&!QL(o)&&!fo(o.parent)){const f=or(o);if(f)return f}if(o.parent.kind===277&&Tg(o)){const f=Qg(o,2998271,!0);if(f&&f!==Pr)return f}else if(kT(o)&&yg(o)){const f=oC(o,271);return re.assert(f!==void 0),U6(o,!0)}if(kT(o)){const f=Hr(o);if(f){Xl(f);const v=rt(o).resolvedSymbol;return v===Pr?void 0:v}}for(;kH(o);)o=o.parent;if(Sf(o)){let f=0;o.parent.kind===233?(f=BE(o)?788968:111551,Gie(o.parent)&&(f|=111551)):f=1920,f|=2097152;const v=Tg(o)?Qg(o,f,!0):void 0;if(v)return v}if(o.parent.kind===348)return $8(o.parent);if(o.parent.kind===168&&o.parent.parent.kind===352){re.assert(!Cs(o));const f=sSe(o.parent);return f&&f.symbol}if(ZD(o)){if(ny(o))return;const f=Ua(o,bb(F8,FJ,QL)),v=f?901119:111551;if(o.kind===80){if(T7(o)&&BV(o)){const R=ZNe(o.parent);return R===Pr?void 0:R}const A=Qg(o,v,!0,!0,LN(o));if(!A&&f){const R=Ua(o,bb(Fl,xp));if(R)return Ko(o,!0,sc(R))}if(A&&f){const R=k7(o);if(R&&pI(R)&&R===A.valueDeclaration)return Qg(o,v,!0,!0,ts(R))||A}return A}else{if(Lu(o))return iwe(o);if(o.kind===211||o.kind===166){const A=rt(o);return A.resolvedSymbol?A.resolvedSymbol:(o.kind===211?(Dfe(o,0),A.resolvedSymbol||(A.resolvedSymbol=Qs(kv(o.expression),SD(o.name)))):dnt(o,0),!A.resolvedSymbol&&f&&Pu(o)?Ko(o):A.resolvedSymbol)}else if(QL(o))return Ko(o)}}else if(Ll(o)){const f=o.parent.kind===183?788968:1920,v=Qg(o,f,!1,!0);return v&&v!==Pr?v:DPe(o)}if(o.parent.kind===182)return Qg(o,1)}function Qs(o,f){const v=oK(o,f);if(v.length&&o.members){const A=bO(Gh(o).members);if(v===JT(o))return A;if(A){const R=Ae(A),B=Qo(v,pe=>pe.declaration),Y=Vn(B,vm).join(",");if(R.filteredIndexSymbolCache||(R.filteredIndexSymbolCache=new Map),R.filteredIndexSymbolCache.has(Y))return R.filteredIndexSymbolCache.get(Y);{const pe=tp(131072,"__index");return pe.declarations=Qo(v,Te=>Te.declaration),pe.parent=o.aliasSymbol?o.aliasSymbol:o.symbol?o.symbol:ss(pe.declarations[0].parent),R.filteredIndexSymbolCache.set(Y,pe),pe}}}}function Ko(o,f,v){if(kT(o)){let Y=Qg(o,901119,f,!0,LN(o));if(!Y&&xn(o)&&v&&(Y=jp(Ci(L2(v),o.escapedText,901119))),Y)return Y}const A=xn(o)?v:Ko(o.left,f,v),R=xn(o)?o.escapedText:o.right.escapedText;if(A){const B=A.flags&111551&&Yd(La(A),"prototype"),Y=B?La(B):sh(A);return Yd(Y,R)}}function ss(o,f){if(Nu(o))return Bv(o)?jp(o.symbol):void 0;const{parent:v}=o,A=v.parent;if(!(o.flags&67108864)){if(cme(o)){const R=sc(v);return fP(o.parent)&&o.parent.propertyName===o?kze(R):R}else if(_g(o))return sc(v.parent);if(o.kind===80){if(yg(o))return Oa(o);if(v.kind===208&&A.kind===206&&o===v.propertyName){const R=nd(A),B=Yd(R,o.escapedText);if(B)return B}else if(x3(v)&&v.name===o)return v.keywordToken===105&&Kr(o)==="target"?rGe(v).symbol:v.keywordToken===102&&Kr(o)==="meta"?det().members.get("meta"):void 0}switch(o.kind){case 80:case 81:case 211:case 166:if(!V9(o))return Oa(o);case 110:const R=RT(o,!1,!1);if(F_(R)){const pe=gb(R);if(pe.thisParameter)return pe.thisParameter}if(C9(o))return Bf(o).symbol;case 197:return Xue(o).symbol;case 108:return Bf(o).symbol;case 137:const B=o.parent;return B&&B.kind===176?B.parent.symbol:void 0;case 11:case 15:if(Mx(o.parent.parent)&&iG(o.parent.parent)===o||(o.parent.kind===272||o.parent.kind===278)&&o.parent.moduleSpecifier===o||Cs(o)&&Jd(Pe)!==100&&y1(o.parent,!1)||Py(o.parent)||S3(o.parent)&&MN(o.parent.parent)&&o.parent.parent.argument===o.parent)return gS(o,o,f);if(xd(v)&&A7(v)&&v.arguments[1]===o)return sc(v);case 9:const Y=Hm(v)?v.argumentExpression===o?s1(v.expression):void 0:S3(v)&&Wx(A)?Xl(A.objectType):void 0;return Y&&Yd(Y,ey(o.text));case 90:case 100:case 39:case 86:return hx(o.parent);case 205:return MN(o)?ss(o.argument.literal,f):void 0;case 95:return py(o.parent)?re.checkDefined(o.parent.symbol):void 0;case 102:case 105:return x3(o.parent)?jnt(o.parent).symbol:void 0;case 104:if(Ds(o.parent)){const pe=s1(o.parent.right),Te=mGe(pe);return(Te==null?void 0:Te.symbol)??pe.symbol}return;case 236:return Bf(o).symbol;case 295:if(T7(o)&&BV(o)){const pe=ZNe(o.parent);return pe===Pr?void 0:pe}default:return}}}function ll(o){if(xn(o)&&Ac(o.parent)&&o.parent.name===o){const f=SD(o),v=s1(o.parent.expression),A=v.flags&1048576?v.types:[v];return ea(A,R=>gi(JT(R),B=>xV(f,B.keyType)))}}function of(o){if(o&&o.kind===304)return Qg(o.name,2208703)}function C_(o){return my(o)?o.parent.parent.moduleSpecifier?JP(o.parent.parent,o):Qg(o.propertyName||o.name,2998271):Qg(o,2998271)}function nd(o){if(Nu(o)&&!Bv(o)||o.flags&67108864)return Sr;const f=zN(o),v=f&&F1(sc(f.class));if(BE(o)){const A=Xl(o);return v?vx(A,v.thisType):A}if(ZD(o))return O_(o);if(v&&!f.isImplements){const A=pp(l0(v));return A?vx(A,v.thisType):Sr}if(f6(o)){const A=sc(o);return sh(A)}if(rc(o)){const A=ss(o);return A?sh(A):Sr}if(sa(o))return KP(o,!0,0)||Sr;if(PT(o)){const A=sc(o);return A?La(A):Sr}if(cme(o)){const A=ss(o);return A?La(A):Sr}if($_(o))return KP(o.parent,!0,0)||Sr;if(yg(o)){const A=ss(o);if(A){const R=sh(A);return Fn(R)?La(A):R}}return x3(o.parent)&&o.parent.keywordToken===o.kind?jnt(o.parent):Sr}function kd(o){if(re.assert(o.kind===210||o.kind===209),o.parent.kind===250){const R=I1e(o.parent);return lL(o,R||Sr)}if(o.parent.kind===226){const R=s1(o.parent.right);return lL(o,R||Sr)}if(o.parent.kind===303){const R=uc(o.parent.parent,el),B=kd(R)||Sr,Y=y9(R.properties,o.parent);return MO(R,B,Y)}const f=uc(o.parent,Ed),v=kd(f)||Sr,A=Kk(65,v,Ce,o.parent)||Sr;return trt(f,v,f.elements.indexOf(o),A)}function lu(o){const f=kd(uc(o.parent.parent,KD));return f&&Yd(f,o.escapedText)}function O_(o){return z7(o)&&(o=o.parent),$S(s1(o))}function rp(o){const f=hx(o.parent);return pd(o)?La(f):sh(f)}function Ug(o){const f=o.name;switch(f.kind){case 80:return vS(Kr(f));case 9:case 11:return vS(f.text);case 167:const v=Jk(f);return zb(v,12288)?v:Nn;default:return re.fail("Unsupported property name.")}}function im(o){o=yS(o);const f=zd(zm(o)),v=ed(o,0).length?da:ed(o,1).length?Hu:void 0;return v&&Ot(zm(v),A=>{f.has(A.escapedName)||f.set(A.escapedName,A)}),dO(f)}function k0(o){return ed(o,0).length!==0||ed(o,1).length!==0}function YI(o){const f=Yk(o);return f?ea(f,YI):[o]}function Yk(o){if(I_(o)&6)return Qo(Ae(o).containingType.types,f=>Yd(f,o.escapedName));if(o.flags&33554432){const{links:{leftSpread:f,rightSpread:v,syntheticOrigin:A}}=o;return f?[f,v]:A?[A]:X5(A5(o))}}function A5(o){let f,v=o;for(;v=Ae(v).target;)f=v;return f}function GK(o){if($g(o))return!1;const f=__(o,xn);if(!f)return!1;const v=f.parent;return v?!((Ac(v)||tl(v))&&v.name===f)&&N1e(f)===Tr:!1}function HV(o){let f=gS(o.parent,o);if(!f||ZU(f))return!0;const v=lO(f);f=hS(f);const A=Ae(f);return A.exportsSomeValue===void 0&&(A.exportsSomeValue=v?!!(f.flags&111551):Jb(dw(f),R)),A.exportsSomeValue;function R(B){return B=Av(B),B&&!!(pT(B)&111551)}}function yM(o){return nie(o.parent)&&o===o.parent.name}function LO(o,f){var v;const A=__(o,xn);if(A){let R=N1e(A,yM(A));if(R){if(R.flags&1048576){const Y=jp(R.exportSymbol);if(!f&&Y.flags&944&&!(Y.flags&3))return;R=Y}const B=xE(R);if(B){if(B.flags&512&&((v=B.valueDeclaration)==null?void 0:v.kind)===312){const Y=B.valueDeclaration,pe=ts(A);return Y!==pe?void 0:Y}return Ua(A.parent,Y=>nie(Y)&&sc(Y)===B)}}}}function P1e(o){const f=bEe(o);if(f)return f;const v=__(o,xn);if(v){const A=g0t(v);if(uw(A,111551)&&!Qx(A,111551))return UT(A)}}function G2(o){return o.valueDeclaration&&sa(o.valueDeclaration)&&OU(o.valueDeclaration).parent.kind===299}function ai(o){if(o.flags&418&&o.valueDeclaration&&!Nu(o.valueDeclaration)){const f=Ae(o);if(f.isDeclarationWithCollidingName===void 0){const v=QD(o.valueDeclaration);if(KTe(v)||G2(o)){const A=rt(o.valueDeclaration);if(gg(v.parent,o.escapedName,111551,void 0,void 0,!1))f.isDeclarationWithCollidingName=!0;else if(A.flags&16384){const R=A.flags&32768,B=LL(v,!1),Y=v.kind===241&&LL(v.parent,!1);f.isDeclarationWithCollidingName=!pde(v)&&(!R||!B&&!Y)}else f.isDeclarationWithCollidingName=!1}}return f.isDeclarationWithCollidingName}return!1}function Vc(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v&&ai(v))return v.valueDeclaration}}}function Gl(o){const f=__(o,PT);if(f){const v=sc(f);if(v)return ai(v)}return!1}function jl(o){switch(re.assert(Fr),o.kind){case 271:return Mm(sc(o));case 273:case 274:case 276:case 281:const f=sc(o);return!!f&&Mm(f,!0);case 278:const v=o.exportClause;return!!v&&(G0(v)||gt(v.elements,jl));case 277:return o.expression&&o.expression.kind===80?Mm(sc(o)):!0}return!1}function Yl(o){const f=__(o,Yb);return f===void 0||f.parent.kind!==312||!$M(f)?!1:Mm(sc(f))&&f.moduleReference&&!ny(f.moduleReference)}function Mm(o,f){if(!o)return!1;const v=eA(C0(o));return v===Pr?!f||!Qx(o):!!(pT(o,f,!0)&111551)&&(gk(Pe)||!ud(v))}function ud(o){return Nwe(o)||!!o.constEnumOnlyModule}function $f(o,f){if(re.assert(Fr),wI(o)){const v=sc(o),A=v&&Ae(v);if(A!=null&&A.referenced)return!0;const R=Ae(v).aliasTarget;if(R&&Cb(o)&32&&pT(R)&111551&&(gk(Pe)||!ud(R)))return!0}return f?!!s_(o,v=>$f(v,f)):!1}function ip(o){if(y2(o.body)){if(PN(o)||UC(o))return!1;const f=sc(o),v=K6(f);return v.length>1||v.length===1&&v[0].declaration!==o}return!1}function om(o){return!!Ke&&!U4(o)&&!A2(o)&&!!o.initializer&&!ul(o,31)}function uv(o){return Ke&&U4(o)&&!o.initializer&&ul(o,31)}function l1(o){const f=__(o,mg);if(!f)return!1;const v=sc(f);return!v||!(v.flags&16)?!1:!!Jb(L2(v),A=>A.flags&111551&&eJ(A.valueDeclaration))}function u2(o){const f=__(o,mg);if(!f)return Yn;const v=sc(f);return v&&zm(La(v))||Yn}function P0(o){var f;const v=o.id||0;return v<0||v>=a0.length?0:((f=a0[v])==null?void 0:f.flags)||0}function Wg(o){return Je(o.parent),rt(o).enumMemberValue}function qy(o){switch(o.kind){case 306:case 211:case 212:return!0}return!1}function ww(o){if(o.kind===306)return Wg(o);const f=rt(o).resolvedSymbol;if(f&&f.flags&8){const v=f.valueDeclaration;if(G8(v.parent))return Wg(v)}}function Qk(o){return!!(o.flags&524288)&&ed(o,0).length>0}function Rw(o,f){var v;const A=__(o,kT);if(!A||f&&(f=__(f),!f))return 0;let R=!1;if(Pu(A)){const Ue=Qg(PS(A),111551,!0,!0,f);R=!!((v=Ue==null?void 0:Ue.declarations)!=null&&v.every(O8))}const B=Qg(A,111551,!0,!0,f),Y=B&&B.flags&2097152?C0(B):B;R||(R=!!(B&&Qx(B,111551)));const pe=Qg(A,788968,!0,!1,f);if(Y&&Y===pe){const Ue=BWe(!1);if(Ue&&Y===Ue)return 9;const St=La(Y);if(St&&Du(St))return R?10:1}if(!pe)return R?11:0;const Te=sh(pe);return Fn(Te)?R?11:0:Te.flags&3?11:zb(Te,245760)?2:zb(Te,528)?6:zb(Te,296)?3:zb(Te,2112)?4:zb(Te,402653316)?5:Dp(Te)?7:zb(Te,12288)?8:Qk(Te)?10:kE(Te)?7:11}function JV(o,f,v,A,R){const B=__(o,vde);if(!B)return he.createToken(133);const Y=sc(B);let pe=Y&&!(Y.flags&133120)?d5(La(Y)):Sr;return pe.flags&8192&&pe.symbol===Y&&(v|=1048576),R&&(pe=iL(pe)),Wr.typeToTypeNode(pe,f,v|1024,A)}function l8(o,f,v,A){const R=__(o,F_);if(!R)return he.createToken(133);const B=gb(R);return Wr.typeToTypeNode(np(B),f,v|1024,A)}function qGe(o,f,v,A){const R=__(o,kr);if(!R)return he.createToken(133);const B=z2(O_(R));return Wr.typeToTypeNode(B,f,v|1024,A)}function KGe(o){return jt.has(ey(o))}function N1e(o,f){const v=rt(o).resolvedSymbol;if(v)return v;let A=o;if(f){const R=o.parent;PT(R)&&o===R.name&&(A=XF(R))}return gg(A,o.escapedText,3257279,void 0,void 0,!0)}function g0t(o){const f=rt(o).resolvedSymbol;return f&&f!==Pr?f:gg(o,o.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function h0t(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v)return eA(v).valueDeclaration}}}function Zk(o){if(!$g(o)){const f=__(o,xn);if(f){const v=N1e(f);if(v)return gi(eA(v).declarations,A=>{switch(A.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 mne(o){return oY(o)||Kc(o)&&tit(o)?Bb(La(sc(o))):!1}function ykt(o,f,v){const A=o.flags&1056?Wr.symbolToExpression(o.symbol,111551,f,void 0,v):o===Ts?he.createTrue():o===vo&&he.createFalse();if(A)return A;const R=o.value;return typeof R=="object"?he.createBigIntLiteral(R):typeof R=="number"?he.createNumericLiteral(R):he.createStringLiteral(R)}function vkt(o,f){const v=La(sc(o));return ykt(v,o,f)}function PSt(o){return o?(xo(o),ts(o).localJsxFactory||FA):FA}function y0t(o){if(o){const f=ts(o);if(f){if(f.localJsxFragmentFactory)return f.localJsxFragmentFactory;const v=f.pragmas.get("jsxfrag"),A=ls(v)?v[0]:v;if(A)return f.localJsxFragmentFactory=UG(A.arguments.factory,dt),f.localJsxFragmentFactory}}if(Pe.jsxFragmentFactory)return UG(Pe.jsxFragmentFactory,dt)}function bkt(){const o=e.getResolvedTypeReferenceDirectives();let f;return o&&(f=new Map,o.forEach(({resolvedTypeReferenceDirective:Te},Ue,St)=>{if(!(Te!=null&&Te.resolvedFileName))return;const Rt=e.getSourceFile(Te.resolvedFileName);Rt&&pe(Rt,Ue,St)})),{getReferencedExportContainer:LO,getReferencedImportDeclaration:P1e,getReferencedDeclarationWithCollidingName:Vc,isDeclarationWithCollidingName:Gl,isValueAliasDeclaration:Te=>{const Ue=__(Te);return Ue&&Fr?jl(Ue):!0},hasGlobalName:KGe,isReferencedAliasDeclaration:(Te,Ue)=>{const St=__(Te);return St&&Fr?$f(St,Ue):!0},getNodeCheckFlags:Te=>{const Ue=__(Te);return Ue?P0(Ue):0},isTopLevelValueImportEqualsWithEntityName:Yl,isDeclarationVisible:gw,isImplementationOfOverload:ip,isRequiredInitializedParameter:om,isOptionalUninitializedParameterProperty:uv,isExpandoFunctionDeclaration:l1,getPropertiesOfContainerFunction:u2,createTypeOfDeclaration:JV,createReturnTypeOfSignatureDeclaration:l8,createTypeOfExpression:qGe,createLiteralConstValue:vkt,isSymbolAccessible:nc,isEntityNameVisible:a2,getConstantValue:Te=>{const Ue=__(Te,qy);return Ue?ww(Ue):void 0},collectLinkedAliases:Qq,getReferencedValueDeclaration:h0t,getReferencedValueDeclarations:Zk,getTypeReferenceSerializationKind:Rw,isOptionalParameter:U4,moduleExportsSomeValue:HV,isArgumentsLocalBinding:GK,getExternalModuleFileFromDeclaration:Te=>{const Ue=__(Te,gde);return Ue&&v0t(Ue)},getTypeReferenceDirectivesForEntityName:R,getTypeReferenceDirectivesForSymbol:B,isLiteralConstDeclaration:mne,isLateBound:Te=>{const Ue=__(Te,PT),St=Ue&&sc(Ue);return!!(St&&I_(St)&4096)},getJsxFactoryEntity:PSt,getJsxFragmentFactoryEntity:y0t,getAllAccessorDeclarations(Te){Te=__(Te,Gz);const Ue=Te.kind===178?177:178,St=Rh(sc(Te),Ue),Rt=St&&St.pos_w(Te,Te,void 0),isBindingCapturedByNode:(Te,Ue)=>{const St=__(Te),Rt=__(Ue);return!!St&&!!Rt&&(Kc(Rt)||sa(Rt))&&Eht(St,Rt)},getDeclarationStatementsForSourceFile:(Te,Ue,St,Rt)=>{const rn=__(Te);re.assert(rn&&rn.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Sn=sc(Te);return Sn?Sn.exports?Wr.symbolTableToDeclarationStatements(Sn.exports,Te,Ue,St,Rt):[]:Te.locals?Wr.symbolTableToDeclarationStatements(Te.locals,Te,Ue,St,Rt):[]},isImportRequiredByAugmentation:v,tryFindAmbientModule:Te=>{const Ue=__(Te),St=Ue&&Cm(Ue)?Ue.text:void 0;return St!==void 0?aK(St,!0):void 0}};function v(Te){const Ue=ts(Te);if(!Ue.symbol)return!1;const St=v0t(Te);if(!St||St===Ue)return!1;const Rt=dw(Ue.symbol);for(const rn of oc(Rt.values()))if(rn.mergeId){const Sn=jp(rn);if(Sn.declarations){for(const xr of Sn.declarations)if(ts(xr)===St)return!0}}return!1}function A(Te){return Te.parent&&Te.parent.kind===233&&Te.parent.parent&&Te.parent.parent.kind===298}function R(Te){if(!f)return;let Ue;Te.parent.kind===167?Ue=1160127:(Ue=790504,(Te.kind===80&&yR(Te)||Te.kind===211&&!A(Te))&&(Ue=1160127));const St=Qg(Te,Ue,!0);return St&&St!==Pr?B(St,Ue):void 0}function B(Te,Ue){if(!f||!Y(Te))return;let St;for(const Rt of Te.declarations)if(Rt.symbol&&Rt.symbol.flags&Ue){const rn=ts(Rt),Sn=f.get(rn.path);if(Sn)(St||(St=[])).push(Sn);else return}return St}function Y(Te){if(!Te.declarations)return!1;let Ue=Te;for(;;){const St=xE(Ue);if(St)Ue=St;else break}if(Ue.valueDeclaration&&Ue.valueDeclaration.kind===312&&Ue.flags&512)return!1;for(const St of Te.declarations){const Rt=ts(St);if(f.has(Rt.path))return!0}return!1}function pe(Te,Ue,St){if(!f.has(Te.path)){f.set(Te.path,[Ue,St]);for(const{fileName:Rt}of Te.referencedFiles){const rn=HQ(Rt,Te.fileName),Sn=e.getSourceFile(rn);Sn&&pe(Sn,Ue,St||Te.impliedNodeFormat)}}}}function v0t(o){const f=o.kind===267?to(o.name,Sd):w9(o),v=_w(f,f,void 0);if(v)return Rh(v,312)}function Tkt(){for(const f of e.getSourceFiles())w3(f,Pe);yp=new Map;let o;for(const f of e.getSourceFiles())if(!f.redirectInfo){if(!aE(f)){const v=f.locals.get("globalThis");if(v!=null&&v.declarations)for(const A of v.declarations)j_.add(Bs(A,N.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));R2(jt,f.locals)}f.jsGlobalAugmentations&&R2(jt,f.jsGlobalAugmentations),f.patternAmbientModules&&f.patternAmbientModules.length&&(r1=Hi(r1,f.patternAmbientModules)),f.moduleAugmentations.length&&(o||(o=[])).push(f.moduleAugmentations),f.symbol&&f.symbol.globalExports&&f.symbol.globalExports.forEach((A,R)=>{jt.has(R)||jt.set(R,A)})}if(o)for(const f of o)for(const v of f)JC(v.parent)&&U(v);if(le(jt,Vt,N.Declaration_name_conflicts_with_built_in_global_identifier_0),Ae(En).type=kt,Ae(Tr).type=Hy("IArguments",0,!0),Ae(Pr).type=Sr,Ae(fr).type=tA(16,fr),t_=Hy("Array",1,!0),Jt=Hy("Object",0,!0),ci=Hy("Function",0,!0),da=It&&Hy("CallableFunction",0,!0)||ci,Hu=It&&Hy("NewableFunction",0,!0)||ci,gd=Hy("String",0,!0),Dg=Hy("Number",0,!0),um=Hy("Boolean",0,!0),Ig=Hy("RegExp",0,!0),Qm=hT(Ge),Bh=hT(Br),Bh===M_&&(Bh=sy(void 0,Fe,Yn,Yn,Yn)),A_=het("ReadonlyArray",1)||t_,P1=A_?lK(A_,[Ge]):Qm,P_=het("ThisType",1),o)for(const f of o)for(const v of f)JC(v.parent)||U(v);yp.forEach(({firstFile:f,secondFile:v,conflictingSymbols:A})=>{if(A.size<8)A.forEach(({isBlockScoped:R,firstFileLocations:B,secondFileLocations:Y},pe)=>{const Te=R?N.Cannot_redeclare_block_scoped_variable_0:N.Duplicate_identifier_0;for(const Ue of B)A0(Ue,Te,pe,Y);for(const Ue of Y)A0(Ue,Te,pe,B)});else{const R=oc(A.keys()).join(", ");j_.add(ml(Bs(f,N.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,R),Bs(v,N.Conflicts_are_in_this_file))),j_.add(ml(Bs(v,N.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,R),Bs(f,N.Conflicts_are_in_this_file)))}}),yp=void 0}function yb(o,f){if((d&f)!==f&&Pe.importHelpers){const v=ts(o);if(VM(v,Pe)&&!(o.flags&33554432)){const A=Ekt(v,o);if(A!==Pr){const R=f&~d;for(let B=1;B<=33554432;B<<=1)if(R&B)for(const Y of Skt(B)){if(u.has(Y))continue;u.add(Y);const pe=Av(Ci(dw(A),ey(Y),111551));pe?B&524288?gt(K6(pe),Te=>c2(Te)>3)||hn(o,N.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,HN,Y,4):B&1048576?gt(K6(pe),Te=>c2(Te)>4)||hn(o,N.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,HN,Y,5):B&1024&&(gt(K6(pe),Te=>c2(Te)>2)||hn(o,N.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,HN,Y,3)):hn(o,N.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,HN,Y)}}d|=f}}}function Skt(o){switch(o){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ct?["__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 re.fail("Unrecognized helper")}}function Ekt(o,f){return h||(h=qR(o,HN,N.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,f)||Pr),h}function fL(o){const f=Ckt(o)||xkt(o);if(f!==void 0)return f;if(Os(o)&&iI(o))return vT(o,N.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const v=Xg(o)?o.declarationList.flags&7:0;let A,R,B,Y,pe,Te=0,Ue=!1,St=!1;for(const Rt of o.modifiers)if(Jh(Rt)){if(zL(ct,o,o.parent,o.parent.parent)){if(ct&&(o.kind===177||o.kind===178)){const rn=oI(o.parent.members,o);if(X2(rn.firstAccessor)&&o===rn.secondAccessor)return vT(o,N.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return o.kind===174&&!y2(o.body)?vT(o,N.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):vT(o,N.Decorators_are_not_valid_here);if(Te&-34849)return Uo(Rt,N.Decorators_are_not_valid_here);if(St&&Te&98303){re.assertIsDefined(pe);const rn=ts(Rt);return $V(rn)?!1:(ml(hn(Rt,N.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Bs(pe,N.Decorator_used_before_export_here)),!0)}Te|=32768,Te&98303?Te&32&&(Ue=!0):St=!0,pe??(pe=Rt)}else{if(Rt.kind!==148){if(o.kind===171||o.kind===173)return Uo(Rt,N._0_modifier_cannot_appear_on_a_type_member,Cf(Rt.kind));if(o.kind===181&&(Rt.kind!==126||!Fl(o.parent)))return Uo(Rt,N._0_modifier_cannot_appear_on_an_index_signature,Cf(Rt.kind))}if(Rt.kind!==103&&Rt.kind!==147&&Rt.kind!==87&&o.kind===168)return Uo(Rt,N._0_modifier_cannot_appear_on_a_type_parameter,Cf(Rt.kind));switch(Rt.kind){case 87:if(o.kind!==266&&o.kind!==168)return Uo(o,N.A_class_member_cannot_have_the_0_keyword,Cf(87));const rn=o.parent;if(o.kind===168&&!(Vd(rn)||Fl(rn)||e0(rn)||RG(rn)||Y7(rn)||x2(rn)||pg(rn)))return Uo(Rt,N._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Cf(Rt.kind));break;case 164:if(Te&16)return Uo(Rt,N._0_modifier_already_seen,"override");if(Te&128)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","readonly");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","accessor");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"override","async");Te|=16,Y=Rt;break;case 125:case 124:case 123:const Sn=mw(F7(Rt.kind));if(Te&7)return Uo(Rt,N.Accessibility_modifier_already_seen);if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"override");if(Te&256)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"static");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"accessor");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"readonly");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"async");if(o.parent.kind===268||o.parent.kind===312)return Uo(Rt,N._0_modifier_cannot_appear_on_a_module_or_namespace_element,Sn);if(Te&64)return Rt.kind===123?Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,Sn,"abstract"):Uo(Rt,N._0_modifier_must_precede_1_modifier,Sn,"abstract");if(IT(o))return Uo(Rt,N.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Te|=F7(Rt.kind);break;case 126:if(Te&256)return Uo(Rt,N._0_modifier_already_seen,"static");if(Te&8)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","readonly");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","async");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","accessor");if(o.parent.kind===268||o.parent.kind===312)return Uo(Rt,N._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"static");if(Te&64)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"static","override");Te|=256,A=Rt;break;case 129:if(Te&512)return Uo(Rt,N._0_modifier_already_seen,"accessor");if(Te&8)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Te&128)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(o.kind!==172)return Uo(Rt,N.accessor_modifier_can_only_appear_on_a_property_declaration);Te|=512;break;case 148:if(Te&8)return Uo(Rt,N._0_modifier_already_seen,"readonly");if(o.kind!==172&&o.kind!==171&&o.kind!==181&&o.kind!==169)return Uo(Rt,N.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Te&512)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Te|=8;break;case 95:if(Pe.verbatimModuleSyntax&&!(o.flags&33554432)&&o.kind!==265&&o.kind!==264&&o.kind!==267&&o.parent.kind===312&&(Ie===1||ts(o).impliedNodeFormat===1))return Uo(Rt,N.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Te&32)return Uo(Rt,N._0_modifier_already_seen,"export");if(Te&128)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","declare");if(Te&64)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","abstract");if(Te&1024)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","async");if(Fl(o.parent))return Uo(Rt,N._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"export");if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"export");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Te|=32;break;case 90:const xr=o.parent.kind===312?o.parent:o.parent.parent;if(xr.kind===267&&!dh(xr))return Uo(Rt,N.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"default");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Te&32){if(Ue)return Uo(pe,N.Decorators_are_not_valid_here)}else return Uo(Rt,N._0_modifier_must_precede_1_modifier,"export","default");Te|=2048;break;case 138:if(Te&128)return Uo(Rt,N._0_modifier_already_seen,"declare");if(Te&1024)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Te&16)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Fl(o.parent)&&!nu(o))return Uo(Rt,N._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"declare");if(v===4)return Uo(Rt,N._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(v===6)return Uo(Rt,N._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(o.parent.flags&33554432&&o.parent.kind===268)return Uo(Rt,N.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(IT(o))return Uo(Rt,N._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Te&512)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Te|=128,R=Rt;break;case 128:if(Te&64)return Uo(Rt,N._0_modifier_already_seen,"abstract");if(o.kind!==263&&o.kind!==185){if(o.kind!==174&&o.kind!==172&&o.kind!==177&&o.kind!==178)return Uo(Rt,N.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(o.parent.kind===263&&ul(o.parent,64))){const la=o.kind===172?N.Abstract_properties_can_only_appear_within_an_abstract_class:N.Abstract_methods_can_only_appear_within_an_abstract_class;return Uo(Rt,la)}if(Te&256)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Te&2)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Te&1024&&B)return Uo(B,N._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Te&16)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"abstract","override");if(Te&512)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(mp(o)&&o.name.kind===81)return Uo(Rt,N._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Te|=64;break;case 134:if(Te&1024)return Uo(Rt,N._0_modifier_already_seen,"async");if(Te&128||o.parent.flags&33554432)return Uo(Rt,N._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(o.kind===169)return Uo(Rt,N._0_modifier_cannot_appear_on_a_parameter,"async");if(Te&64)return Uo(Rt,N._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Te|=1024,B=Rt;break;case 103:case 147:const Ai=Rt.kind===103?8192:16384,So=Rt.kind===103?"in":"out";if(o.kind!==168||!(xp(o.parent)||Fl(o.parent)||z0(o.parent)))return Uo(Rt,N._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,So);if(Te&Ai)return Uo(Rt,N._0_modifier_already_seen,So);if(Ai&8192&&Te&16384)return Uo(Rt,N._0_modifier_must_precede_1_modifier,"in","out");Te|=Ai;break}}return o.kind===176?Te&256?Uo(A,N._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Te&16?Uo(Y,N._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Te&1024?Uo(B,N._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(o.kind===272||o.kind===271)&&Te&128?Uo(R,N.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):o.kind===169&&Te&31&&$_(o.name)?Uo(o,N.A_parameter_property_may_not_be_declared_using_a_binding_pattern):o.kind===169&&Te&31&&o.dotDotDotToken?Uo(o,N.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Te&1024?Ikt(o,B):!1}function xkt(o){if(!o.modifiers)return!1;const f=Akt(o);return f&&vT(f,N.Modifiers_cannot_appear_here)}function Yrt(o,f){const v=lr(o.modifiers,Mf);return v&&v.kind!==f?v:void 0}function Akt(o){switch(o.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 lr(o.modifiers,Mf);default:if(o.parent.kind===268||o.parent.kind===312)return;switch(o.kind){case 262:return Yrt(o,134);case 263:case 185:return Yrt(o,128);case 231:case 264:case 265:return lr(o.modifiers,Mf);case 243:return o.declarationList.flags&4?Yrt(o,135):lr(o.modifiers,Mf);case 266:return Yrt(o,87);default:re.assertNever(o)}}}function Ckt(o){const f=Dkt(o);return f&&vT(f,N.Decorators_are_not_valid_here)}function Dkt(o){return Spe(o)?lr(o.modifiers,Jh):void 0}function Ikt(o,f){switch(o.kind){case 174:case 262:case 218:case 219:return!1}return Uo(f,N._0_modifier_cannot_be_used_here,"async")}function gne(o,f=N.Trailing_comma_not_allowed){return o&&o.hasTrailingComma?qV(o[0],o.end-1,1,f):!1}function NSt(o,f){if(o&&o.length===0){const v=o.pos-1,A=Ff(f.text,o.end)+1;return qV(f,v,A-v,N.Type_parameter_list_cannot_be_empty)}return!1}function kkt(o){let f=!1;const v=o.length;for(let A=0;A!!f.initializer||$_(f.name)||sp(f))}function Nkt(o){if(dt>=3){const f=o.body&&Ou(o.body)&&qY(o.body.statements);if(f){const v=Pkt(o.parameters);if(Nt(v)){Ot(v,R=>{ml(hn(R,N.This_parameter_is_not_allowed_with_use_strict_directive),Bs(f,N.use_strict_directive_used_here))});const A=v.map((R,B)=>B===0?Bs(R,N.Non_simple_parameter_declared_here):Bs(R,N.and_here));return ml(hn(f,N.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...A),!0}}}return!1}function Qrt(o){const f=ts(o);return fL(o)||NSt(o.typeParameters,f)||kkt(o.parameters)||Rkt(o,f)||Vd(o)&&Nkt(o)}function wkt(o){const f=ts(o);return Wkt(o)||NSt(o.typeParameters,f)}function Rkt(o,f){if(!$m(o))return!1;o.typeParameters&&!(Nt(o.typeParameters)>1||o.typeParameters.hasTrailingComma||o.typeParameters[0].constraint)&&f&&pv(f.fileName,[".mts",".cts"])&&Uo(o.typeParameters[0],N.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:v}=o,A=xm(f,v.pos).line,R=xm(f,v.end).line;return A!==R&&Uo(v,N.Line_terminator_not_permitted_before_arrow)}function Mkt(o){const f=o.parameters[0];if(o.parameters.length!==1)return Uo(f?f.name:o,N.An_index_signature_must_have_exactly_one_parameter);if(gne(o.parameters,N.An_index_signature_cannot_have_a_trailing_comma),f.dotDotDotToken)return Uo(f.dotDotDotToken,N.An_index_signature_cannot_have_a_rest_parameter);if(Bie(f))return Uo(f.name,N.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(f.questionToken)return Uo(f.questionToken,N.An_index_signature_parameter_cannot_have_a_question_mark);if(f.initializer)return Uo(f.name,N.An_index_signature_parameter_cannot_have_an_initializer);if(!f.type)return Uo(f.name,N.An_index_signature_parameter_must_have_a_type_annotation);const v=Xl(f.type);return Uk(v,A=>!!(A.flags&8576))||uK(v)?Uo(f.name,N.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Ex(v,Lue)?o.type?!1:Uo(o,N.An_index_signature_must_have_a_type_annotation):Uo(f.name,N.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Lkt(o){return fL(o)||Mkt(o)}function Okt(o,f){if(f&&f.length===0){const v=ts(o),A=f.pos-1,R=Ff(v.text,f.end)+1;return qV(v,A,R-A,N.Type_argument_list_cannot_be_empty)}return!1}function XGe(o,f){return gne(f)||Okt(o,f)}function Fkt(o){return o.questionDotToken||o.flags&64?Uo(o.template,N.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function wSt(o){const f=o.types;if(gne(f))return!0;if(f&&f.length===0){const v=Cf(o.token);return qV(o,f.pos,0,N._0_list_cannot_be_empty,v)}return gt(f,RSt)}function RSt(o){return cC(o)&&am(o.expression)&&o.typeArguments?Uo(o,N.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):XGe(o,o.typeArguments)}function Wkt(o){let f=!1,v=!1;if(!fL(o)&&o.heritageClauses)for(const A of o.heritageClauses){if(A.token===96){if(f)return vT(A,N.extends_clause_already_seen);if(v)return vT(A,N.extends_clause_must_precede_implements_clause);if(A.types.length>1)return vT(A.types[1],N.Classes_can_only_extend_a_single_class);f=!0}else{if(re.assert(A.token===119),v)return vT(A,N.implements_clause_already_seen);v=!0}wSt(A)}}function Bkt(o){let f=!1;if(o.heritageClauses)for(const v of o.heritageClauses){if(v.token===96){if(f)return vT(v,N.extends_clause_already_seen);f=!0}else return re.assert(v.token===119),vT(v,N.Interface_declaration_cannot_have_implements_clause);wSt(v)}return!1}function Zrt(o){if(o.kind!==167)return!1;const f=o;return f.expression.kind===226&&f.expression.operatorToken.kind===28?Uo(f.expression,N.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function b0t(o){if(o.asteriskToken){if(re.assert(o.kind===262||o.kind===218||o.kind===174),o.flags&33554432)return Uo(o.asteriskToken,N.Generators_are_not_allowed_in_an_ambient_context);if(!o.body)return Uo(o.asteriskToken,N.An_overload_signature_cannot_be_declared_as_a_generator)}}function T0t(o,f){return!!o&&Uo(o,f)}function MSt(o,f){return!!o&&Uo(o,f)}function zkt(o,f){const v=new Map;for(const A of o.properties){if(A.kind===305){if(f){const Y=rg(A.expression);if(Ed(Y)||el(Y))return Uo(A.expression,N.A_rest_element_cannot_contain_a_binding_pattern)}continue}const R=A.name;if(R.kind===167&&Zrt(R),A.kind===304&&!f&&A.objectAssignmentInitializer&&Uo(A.equalsToken,N.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),R.kind===81&&Uo(R,N.Private_identifiers_are_not_allowed_outside_class_bodies),DA(A)&&A.modifiers)for(const Y of A.modifiers)Mf(Y)&&(Y.kind!==134||A.kind!==174)&&Uo(Y,N._0_modifier_cannot_be_used_here,Lv(Y));else if(GEe(A)&&A.modifiers)for(const Y of A.modifiers)Mf(Y)&&Uo(Y,N._0_modifier_cannot_be_used_here,Lv(Y));let B;switch(A.kind){case 304:case 303:MSt(A.exclamationToken,N.A_definite_assignment_assertion_is_not_permitted_in_this_context),T0t(A.questionToken,N.An_object_member_cannot_be_declared_optional),R.kind===9&&x0t(R),B=4;break;case 174:B=8;break;case 177:B=1;break;case 178:B=2;break;default:re.assertNever(A,"Unexpected syntax kind:"+A.kind)}if(!f){const Y=A0t(R);if(Y===void 0)continue;const pe=v.get(Y);if(!pe)v.set(Y,B);else if(B&8&&pe&8)Uo(R,N.Duplicate_identifier_0,Lv(R));else if(B&4&&pe&4)Uo(R,N.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Lv(R));else if(B&3&&pe&3)if(pe!==3&&B!==pe)v.set(Y,B|pe);else return Uo(R,N.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Uo(R,N.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Gkt(o){jkt(o.tagName),XGe(o,o.typeArguments);const f=new Map;for(const v of o.attributes.properties){if(v.kind===293)continue;const{name:A,initializer:R}=v,B=m3(A);if(!f.get(B))f.set(B,!0);else return Uo(A,N.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(R&&R.kind===294&&!R.expression)return Uo(R,N.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function jkt(o){if(Ac(o)&&Fm(o.expression))return Uo(o.expression,N.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Fm(o)&&VH(Pe)&&!EH(o.namespace.escapedText))return Uo(o,N.React_components_cannot_include_JSX_namespace_names)}function Vkt(o){if(o.expression&&VJ(o.expression))return Uo(o.expression,N.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function LSt(o){if(u8(o))return!0;if(o.kind===250&&o.awaitModifier&&!(o.flags&65536)){const f=ts(o);if(GE(o)){if(!$V(f))switch(VM(f,Pe)||j_.add(Bs(o.awaitModifier,N.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)),Ie){case 100:case 199:if(f.impliedNodeFormat===1){j_.add(Bs(o.awaitModifier,N.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(dt>=4)break;default:j_.add(Bs(o.awaitModifier,N.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(!$V(f)){const v=Bs(o.awaitModifier,N.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),A=zE(o);if(A&&A.kind!==176){re.assert((ob(A)&2)===0,"Enclosing function should never be an async function.");const R=Bs(A,N.Did_you_mean_to_mark_this_function_as_async);ml(v,R)}return j_.add(v),!0}return!1}if(Bx(o)&&!(o.flags&65536)&&xn(o.initializer)&&o.initializer.escapedText==="async")return Uo(o.initializer,N.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(o.initializer.kind===261){const f=o.initializer;if(!E0t(f)){const v=f.declarations;if(!v.length)return!1;if(v.length>1){const R=o.kind===249?N.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:N.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return vT(f.declarations[1],R)}const A=v[0];if(A.initializer){const R=o.kind===249?N.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:N.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Uo(A.name,R)}if(A.type){const R=o.kind===249?N.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:N.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Uo(A,R)}}}return!1}function Ukt(o){if(!(o.flags&33554432)&&o.parent.kind!==187&&o.parent.kind!==264){if(dt<1)return Uo(o.name,N.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.body===void 0&&!ul(o,64))return qV(o,o.end-1,1,N._0_expected,"{")}if(o.body){if(ul(o,64))return Uo(o,N.An_abstract_accessor_cannot_have_an_implementation);if(o.parent.kind===187||o.parent.kind===264)return Uo(o.body,N.An_implementation_cannot_be_declared_in_ambient_contexts)}if(o.typeParameters)return Uo(o.name,N.An_accessor_cannot_have_type_parameters);if(!Hkt(o))return Uo(o.name,o.kind===177?N.A_get_accessor_cannot_have_parameters:N.A_set_accessor_must_have_exactly_one_parameter);if(o.kind===178){if(o.type)return Uo(o.name,N.A_set_accessor_cannot_have_a_return_type_annotation);const f=re.checkDefined(AH(o),"Return value does not match parameter count assertion.");if(f.dotDotDotToken)return Uo(f.dotDotDotToken,N.A_set_accessor_cannot_have_rest_parameter);if(f.questionToken)return Uo(f.questionToken,N.A_set_accessor_cannot_have_an_optional_parameter);if(f.initializer)return Uo(o.name,N.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Hkt(o){return S0t(o)||o.parameters.length===(o.kind===177?0:1)}function S0t(o){if(o.parameters.length===(o.kind===177?1:2))return BN(o)}function Jkt(o){if(o.operator===158){if(o.type.kind!==155)return Uo(o.type,N._0_expected,Cf(155));let f=QM(o.parent);if(Cs(f)&&SW(f)){const v=k7(f);v&&(f=I7(v)||v)}switch(f.kind){case 260:const v=f;if(v.name.kind!==80)return Uo(o,N.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!rC(v))return Uo(o,N.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(v.parent.flags&2))return Uo(f.name,N.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!pd(f)||!Ny(f))return Uo(f.name,N.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ul(f,8))return Uo(f.name,N.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Uo(o,N.unique_symbol_types_are_not_allowed_here)}}else if(o.operator===148&&o.type.kind!==188&&o.type.kind!==189)return vT(o,N.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Cf(155))}function w1e(o,f){if(Hmt(o))return Uo(o,f)}function OSt(o){if(Qrt(o))return!0;if(o.kind===174){if(o.parent.kind===210){if(o.modifiers&&!(o.modifiers.length===1&&Dl(o.modifiers).kind===134))return vT(o,N.Modifiers_cannot_appear_here);if(T0t(o.questionToken,N.An_object_member_cannot_be_declared_optional))return!0;if(MSt(o.exclamationToken,N.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(o.body===void 0)return qV(o,o.end-1,1,N._0_expected,"{")}if(b0t(o))return!0}if(Fl(o.parent)){if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(o.flags&33554432)return w1e(o.name,N.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(o.kind===174&&!o.body)return w1e(o.name,N.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(o.parent.kind===264)return w1e(o.name,N.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(o.parent.kind===187)return w1e(o.name,N.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 $kt(o){let f=o;for(;f;){if(bd(f))return Uo(o,N.Jump_target_cannot_cross_function_boundary);switch(f.kind){case 256:if(o.label&&f.label.escapedText===o.label.escapedText)return o.kind===251&&!LL(f.statement,!0)?Uo(o,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(o.kind===252&&!o.label)return!1;break;default:if(LL(f,!1)&&!o.label)return!1;break}f=f.parent}if(o.label){const v=o.kind===252?N.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Uo(o,v)}else{const v=o.kind===252?N.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:N.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Uo(o,v)}}function qkt(o){if(o.dotDotDotToken){const f=o.parent.elements;if(o!==yl(f))return Uo(o,N.A_rest_element_must_be_last_in_a_destructuring_pattern);if(gne(f,N.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.propertyName)return Uo(o.name,N.A_rest_element_cannot_have_a_property_name)}if(o.dotDotDotToken&&o.initializer)return qV(o,o.initializer.pos-1,1,N.A_rest_element_cannot_have_an_initializer)}function FSt(o){return Ox(o)||o.kind===224&&o.operator===41&&o.operand.kind===9}function Kkt(o){return o.kind===10||o.kind===224&&o.operator===41&&o.operand.kind===10}function Xkt(o){if((Ac(o)||Hm(o)&&FSt(o.argumentExpression))&&Tg(o.expression))return!!(kv(o).flags&1056)}function WSt(o){const f=o.initializer;if(f){const v=!(FSt(f)||Xkt(f)||f.kind===112||f.kind===97||Kkt(f));if((oY(o)||Kc(o)&&tit(o))&&!o.type){if(v)return Uo(f,N.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Uo(f,N.Initializers_are_not_allowed_in_ambient_contexts)}}function Ykt(o){const f=KV(o),v=f&7;if($_(o.name))switch(v){case 6:return Uo(o,N._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Uo(o,N._0_declarations_may_not_have_binding_patterns,"using")}if(o.parent.parent.kind!==249&&o.parent.parent.kind!==250){if(f&33554432)WSt(o);else if(!o.initializer){if($_(o.name)&&!$_(o.parent))return Uo(o,N.A_destructuring_declaration_must_have_an_initializer);switch(v){case 6:return Uo(o,N._0_declarations_must_be_initialized,"await using");case 4:return Uo(o,N._0_declarations_must_be_initialized,"using");case 2:return Uo(o,N._0_declarations_must_be_initialized,"const")}}}if(o.exclamationToken&&(o.parent.parent.kind!==243||!o.type||o.initializer||f&33554432)){const A=o.initializer?N.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?N.A_definite_assignment_assertion_is_not_permitted_in_this_context:N.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Uo(o.exclamationToken,A)}return(Ie<5||ts(o).impliedNodeFormat===1)&&Ie!==4&&!(o.parent.parent.flags&33554432)&&ul(o.parent.parent,32)&&BSt(o.name),!!v&&zSt(o.name)}function BSt(o){if(o.kind===80){if(Kr(o)==="__esModule")return ePt("noEmit",o,N.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const f=o.elements;for(const v of f)if(!cb(v))return BSt(v.name)}return!1}function zSt(o){if(o.kind===80){if(o.escapedText==="let")return Uo(o,N.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const f=o.elements;for(const v of f)cb(v)||zSt(v.name)}return!1}function E0t(o){const f=o.declarations;if(gne(o.declarations))return!0;if(!o.declarations.length)return qV(o,f.pos,f.end-f.pos,N.Variable_declaration_list_cannot_be_empty);const v=o.flags&7;return(v===4||v===6)&&lpe(o.parent)?Uo(o,v===4?N.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):v===6?kwe(o):!1}function GSt(o){switch(o.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return GSt(o.parent)}return!0}function Qkt(o){if(!GSt(o.parent)){const f=KV(o.declarationList)&7;if(f){const v=f===1?"let":f===2?"const":f===4?"using":f===6?"await using":re.fail("Unknown BlockScope flag");return Uo(o,N._0_declarations_can_only_be_declared_inside_a_block,v)}}}function Zkt(o){const f=o.name.escapedText;switch(o.keywordToken){case 105:if(f!=="target")return Uo(o.name,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ic(o.name.escapedText),Cf(o.keywordToken),"target");break;case 102:if(f!=="meta")return Uo(o.name,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ic(o.name.escapedText),Cf(o.keywordToken),"meta");break}}function $V(o){return o.parseDiagnostics.length>0}function vT(o,f,...v){const A=ts(o);if(!$V(A)){const R=M0(A,o.pos);return j_.add(Pp(A,R.start,R.length,f,...v)),!0}return!1}function qV(o,f,v,A,...R){const B=ts(o);return $V(B)?!1:(j_.add(Pp(B,f,v,A,...R)),!0)}function ePt(o,f,v,...A){const R=ts(f);return $V(R)?!1:(kf(o,f,v,...A),!0)}function Uo(o,f,...v){const A=ts(o);return $V(A)?!1:(j_.add(Bs(o,f,...v)),!0)}function tPt(o){const f=Cs(o)?SY(o):void 0,v=o.typeParameters||f&&pp(f);if(v){const A=v.pos===v.end?v.pos:Ff(ts(o).text,v.pos);return qV(o,A,v.end-A,N.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nPt(o){const f=o.type||kS(o);if(f)return Uo(f,N.Type_annotation_cannot_appear_on_a_constructor_declaration)}function rPt(o){if(Qf(o.name)&&Ds(o.name.expression)&&o.name.expression.operatorToken.kind===103)return Uo(o.parent.members[0],N.A_mapped_type_may_not_declare_properties_or_methods);if(Fl(o.parent)){if(Sd(o.name)&&o.name.text==="constructor")return Uo(o.name,N.Classes_may_not_have_a_field_named_constructor);if(w1e(o.name,N.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(dt<2&&Lu(o.name))return Uo(o.name,N.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(dt<2&&xb(o))return Uo(o.name,N.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(xb(o)&&T0t(o.questionToken,N.An_accessor_property_cannot_be_declared_optional))return!0}else if(o.parent.kind===264){if(w1e(o.name,N.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(re.assertNode(o,em),o.initializer)return Uo(o.initializer,N.An_interface_property_cannot_have_an_initializer)}else if(rS(o.parent)){if(w1e(o.name,N.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(re.assertNode(o,em),o.initializer)return Uo(o.initializer,N.A_type_literal_property_cannot_have_an_initializer)}if(o.flags&33554432&&WSt(o),nu(o)&&o.exclamationToken&&(!Fl(o.parent)||!o.type||o.initializer||o.flags&33554432||pd(o)||Ab(o))){const f=o.initializer?N.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o.type?N.A_definite_assignment_assertion_is_not_permitted_in_this_context:N.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Uo(o.exclamationToken,f)}}function iPt(o){return o.kind===264||o.kind===265||o.kind===272||o.kind===271||o.kind===278||o.kind===277||o.kind===270||ul(o,2208)?!1:vT(o,N.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function oPt(o){for(const f of o.statements)if((PT(f)||f.kind===243)&&iPt(f))return!0;return!1}function aPt(o){return!!(o.flags&33554432)&&oPt(o)}function u8(o){if(o.flags&33554432){if(!rt(o).hasReportedStatementInAmbientContext&&(F_(o.parent)||GM(o.parent)))return rt(o).hasReportedStatementInAmbientContext=vT(o,N.An_implementation_cannot_be_declared_in_ambient_contexts);if(o.parent.kind===241||o.parent.kind===268||o.parent.kind===312){const v=rt(o.parent);if(!v.hasReportedStatementInAmbientContext)return v.hasReportedStatementInAmbientContext=vT(o,N.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function x0t(o){const f=Lv(o).includes("."),v=o.numericLiteralFlags&16;f||v||+o.text<=9007199254740991||v_(!1,Bs(o,N.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sPt(o){return!!(!(S3(o.parent)||vk(o.parent)&&S3(o.parent.parent))&&dt<7&&Uo(o,N.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function cPt(o,f,...v){const A=ts(o);if(!$V(A)){const R=M0(A,o.pos);return j_.add(Pp(A,Xy(R),0,f,...v)),!0}return!1}function lPt(){return Xp||(Xp=[],jt.forEach((o,f)=>{Eae.test(f)&&Xp.push(o)})),Xp}function uPt(o){var f;return o.isTypeOnly&&o.name&&o.namedBindings?Uo(o,N.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):o.isTypeOnly&&((f=o.namedBindings)==null?void 0:f.kind)===275?jSt(o.namedBindings):!1}function jSt(o){return!!Ot(o.elements,f=>{if(f.isTypeOnly)return vT(f,f.kind===276?N.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:N.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function fPt(o){if(Pe.verbatimModuleSyntax&&Ie===1)return Uo(o,N.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Ie===5)return Uo(o,N.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(o.typeArguments)return Uo(o,N.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const f=o.arguments;if(Ie!==99&&Ie!==199&&Ie!==100&&(gne(f),f.length>1)){const A=f[1];return Uo(A,N.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(f.length===0||f.length>2)return Uo(o,N.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const v=lr(f,WT);return v?Uo(v,N.Argument_of_dynamic_import_cannot_be_spread_element):!1}function _Pt(o,f){const v=ji(o);if(v&20&&f.flags&1048576)return lr(f.types,A=>{if(A.flags&524288){const R=v&ji(A);if(R&4)return o.target===A.target;if(R&16)return!!o.aliasSymbol&&o.aliasSymbol===A.aliasSymbol}return!1})}function dPt(o,f){if(ji(o)&128&&Uk(f,rL))return lr(f.types,v=>!rL(v))}function pPt(o,f){let v=0;if(ed(o,v).length>0||(v=1,ed(o,v).length>0))return lr(f.types,R=>ed(R,v).length>0)}function mPt(o,f){let v;if(!(o.flags&406978556)){let A=0;for(const R of f.types)if(!(R.flags&406978556)){const B=vp([CC(o),CC(R)]);if(B.flags&4194304)return R;if(UI(B)||B.flags&1048576){const Y=B.flags&1048576?dp(B.types,UI):1;Y>=A&&(v=R,A=Y)}}}return v}function gPt(o){if(Ty(o,67108864)){const f=lv(o,v=>!(v.flags&402784252));if(!(f.flags&131072))return f}return o}function VSt(o,f,v){if(f.flags&1048576&&o.flags&2621440){const A=Dtt(f,o);if(A)return A;const R=zm(o);if(R){const B=CNe(R,f);if(B){const Y=NBe(f,Vn(B,pe=>[()=>La(pe),pe.escapedName]),v);if(Y!==f)return Y}}}}function A0t(o){const f=FN(o);return f||(Qf(o)?ize(s1(o.expression)):void 0)}function eit(o){return os===o||(os=o,Mo=Eb(o)),Mo}function KV(o){return io===o||(io=o,no=rR(o)),no}function tit(o){const f=KV(o)&7;return f===2||f===4||f===6}}function ULe(e){return!GM(e)}function AHe(e){return e.kind!==262&&e.kind!==174||!!e.body}function cme(e){switch(e.parent.kind){case 276:case 281:return xn(e);default:return ON(e)}}function Tae(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function A1(e){return!!(e.flags&1)}function Sae(e){return!!(e.flags&2)}function HLe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:wc(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getPackageJsonInfoCache)==null?void 0:n.call(e)},useCaseSensitiveFileNames:wc(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),fileExists:n=>e.fileExists(n),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?n=>e.readFile(n):void 0}}var Eae,h$,xae,Aae,Cae,z2e,oj,Dae,_E,y$,CHe,nr,Fa,dE,lme,G2e=G({"src/compiler/checker.ts"(){md(),B2e(),iP(),Eae=/^".+"$/,h$="(anonymous)",xae=1,Aae=1,Cae=1,z2e=1,oj=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(oj||{}),Dae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),_E=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(_E||{}),y$=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(y$||{}),CHe=mU(AHe,ULe),nr=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),Fa=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(dE||(dE={})),lme=class UDt{constructor(n,i,c){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var u;i instanceof UDt;)i=i.inner;this.inner=i,this.moduleResolverHost=c,this.context=n,this.canTrackSymbol=!!((u=this.inner)!=null&&u.trackSymbol)}trackSymbol(n,i,c){var u,d;if((u=this.inner)!=null&&u.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(n,i,c))return this.onDiagnosticReported(),!0;n.flags&262144||((d=this.context).trackedSymbols??(d.trackedSymbols=[])).push([n,i,c])}return!1}reportInaccessibleThisError(){var n;(n=this.inner)!=null&&n.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(n){var i;(i=this.inner)!=null&&i.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(n))}reportInaccessibleUniqueSymbolError(){var n;(n=this.inner)!=null&&n.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var n;(n=this.inner)!=null&&n.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(n){var i;(i=this.inner)!=null&&i.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(n))}reportTruncationError(){var n;(n=this.inner)!=null&&n.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(n,i){var c;(c=this.inner)!=null&&c.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(n,i))}trackExternalModuleSymbolOfImportTypeNode(n){var i;(i=this.inner)!=null&&i.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(n))}reportNonlocalAugmentation(n,i,c){var u;(u=this.inner)!=null&&u.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(n,i,c))}reportNonSerializableProperty(n){var i;(i=this.inner)!=null&&i.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(n))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Bn(e,n,i,c){if(e===void 0)return e;const u=n(e);let d;if(u!==void 0)return ls(u)?d=(c||IHe)(u):d=u,re.assertNode(d,i),d}function Wa(e,n,i,c,u){if(e===void 0)return e;const d=e.length;(c===void 0||c<0)&&(c=0),(u===void 0||u>d-c)&&(u=d-c);let h,S=-1,E=-1;c>0||ud-c)&&(u=d-c),DHe(e,n,i,c,u)}function DHe(e,n,i,c,u){let d;const h=e.length;(c>0||u=2&&(u=pE(u,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),u}function pE(e,n){let i;for(let c=0;c{const h=cS,addSource:Yt,setSourceContent:Et,addName:at,addMapping:Rn,appendSourceMap:cn,toJSON:jt,toString:()=>JSON.stringify(jt())};function Yt(fr){d();const Tr=GC(c,fr,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Vr=P.get(Tr);return Vr===void 0&&(Vr=E.length,E.push(Tr),S.push(fr),P.set(Tr,Vr)),h(),Vr}function Et(fr,Tr){if(d(),Tr!==null){for(k||(k=[]);k.lengthTr||Ct===Tr&&Lt>Vr)}function Rn(fr,Tr,Vr,Pn,Fr,Ki){re.assert(fr>=dt,"generatedLine cannot backtrack"),re.assert(Tr>=0,"generatedCharacter cannot be negative"),re.assert(Vr===void 0||Vr>=0,"sourceIndex cannot be negative"),re.assert(Pn===void 0||Pn>=0,"sourceLine cannot be negative"),re.assert(Fr===void 0||Fr>=0,"sourceCharacter cannot be negative"),d(),(Qt(fr,Tr)||nn(Vr,Pn,Fr))&&(wr(),dt=fr,Ie=Tr,st=!1,It=!1,Ke=!0),Vr!==void 0&&Pn!==void 0&&Fr!==void 0&&(ct=Vr,Ct=Pn,Lt=Fr,st=!0,Ki!==void 0&&(Ze=Ki,It=!0)),h()}function cn(fr,Tr,Vr,Pn,Fr,Ki){re.assert(fr>=dt,"generatedLine cannot backtrack"),re.assert(Tr>=0,"generatedCharacter cannot be negative"),d();const io=[];let no;const os=dme(Vr.mappings);for(const Mo of os){if(Ki&&(Mo.generatedLine>Ki.line||Mo.generatedLine===Ki.line&&Mo.generatedCharacter>Ki.character))break;if(Fr&&(Mo.generatedLine=1024&&Wr()}function wr(){if(!(!Ke||!qt())){if(d(),ie0&&(X+=String.fromCharCode.apply(void 0,J),J.length=0)}function jt(){return wr(),Wr(),{version:3,file:n,sourceRoot:i,sources:E,names:F,mappings:X,sourcesContent:k}}function En(fr){fr<0?fr=(-fr<<1)+1:fr=fr<<1;do{let Tr=fr&31;fr=fr>>5,fr>0&&(Tr=Tr|32),Kt(Vst(Tr))}while(fr>0)}}function kae(e,n){return{getLineCount:()=>n.length,getLineText:i=>e.substring(n[i],n[i+1])}}function JLe(e){for(let n=e.getLineCount()-1;n>=0;n--){const i=e.getLineText(n),c=pme.exec(i);if(c)return c[1].trimEnd();if(!i.match(Pae))break}}function NHe(e){return typeof e=="string"||e===null}function $Le(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ls(e.sources)&&jr(e.sources,As)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ls(e.sourcesContent)&&jr(e.sourcesContent,NHe))&&(e.names===void 0||e.names===null||ls(e.names)&&jr(e.names,As))}function j2e(e){try{const n=JSON.parse(e);if($Le(n))return n}catch{}}function dme(e){let n=!1,i=0,c=0,u=0,d=0,h=0,S=0,E=0,P;return{get pos(){return i},get error(){return P},get state(){return k(!0,!0)},next(){for(;!n&&i=e.length)return $("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const et=Ust(e.charCodeAt(i));if(et===-1)return $("Invalid character in VLQ"),-1;ve=(et&32)!==0,Fe=Fe|(et&31)<>1,Fe=-Fe):Fe=Fe>>1,Fe}}function qLe(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex}function KLe(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function Vst(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:re.fail(`${e}: not a base64 value`)}function Ust(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function wHe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function XLe(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function YLe(e,n){return re.assert(e.sourceIndex===n.sourceIndex),pf(e.sourcePosition,n.sourcePosition)}function V2e(e,n){return pf(e.generatedPosition,n.generatedPosition)}function U2e(e){return e.sourcePosition}function H2e(e){return e.generatedPosition}function QLe(e,n,i){const c=ws(i),u=n.sourceRoot?vf(n.sourceRoot,c):c,d=vf(n.file,c),h=e.getSourceFileLike(d),S=n.sources.map(we=>vf(we,u)),E=new Map(S.map((we,Fe)=>[e.getCanonicalFileName(we),Fe]));let P,k,F;return{getSourcePosition:ve,getGeneratedPosition:ae};function $(we){const Fe=h!==void 0?Fz(h,we.generatedLine,we.generatedCharacter,!0):-1;let et,Pe;if(KLe(we)){const dt=e.getSourceFileLike(S[we.sourceIndex]);et=n.sources[we.sourceIndex],Pe=dt!==void 0?Fz(dt,we.sourceLine,we.sourceCharacter,!0):-1}return{generatedPosition:Fe,source:et,sourceIndex:we.sourceIndex,sourcePosition:Pe,nameIndex:we.nameIndex}}function J(){if(P===void 0){const we=dme(n.mappings),Fe=oc(we,$);we.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${we.error}`),P=Yn):P=Fe}return P}function X(we){if(F===void 0){const Fe=[];for(const et of J()){if(!wHe(et))continue;let Pe=Fe[et.sourceIndex];Pe||(Fe[et.sourceIndex]=Pe=[]),Pe.push(et)}F=Fe.map(et=>OD(et,YLe,XLe))}return F[we]}function ie(){if(k===void 0){const we=[];for(const Fe of J())we.push(Fe);k=OD(we,V2e,XLe)}return k}function ae(we){const Fe=E.get(e.getCanonicalFileName(we.fileName));if(Fe===void 0)return we;const et=X(Fe);if(!gt(et))return we;let Pe=WD(et,we.pos,U2e,pf);Pe<0&&(Pe=~Pe);const dt=et[Pe];return dt===void 0||dt.sourceIndex!==Fe?we:{fileName:d,pos:dt.generatedPosition}}function ve(we){const Fe=ie();if(!gt(Fe))return we;let et=WD(Fe,we.pos,H2e,pf);et<0&&(et=~et);const Pe=Fe[et];return Pe===void 0||!wHe(Pe)?we:{fileName:S[Pe.sourceIndex],pos:Pe.sourcePosition}}}var e1,pme,Pae,Vx,RHe=G({"src/compiler/sourcemap.ts"(){md(),iP(),e1=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,pme=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Pae=/^\s*(\/\/[@#] .*)?$/,Vx={getSourcePosition:Of,getGeneratedPosition:Of}}});function Nb(e){return e=Gg(e),e?vm(e):0}function ZLe(e){return!e||!Oy(e)?!1:gt(e.elements,J2e)}function J2e(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function _C(e,n){return i;function i(u){return u.kind===312?n(u):c(u)}function c(u){return e.factory.createBundle(Vn(u.sourceFiles,n),u.prepends)}}function aj(e){return!!H8(e)}function D6(e){if(H8(e))return!0;const n=e.importClause&&e.importClause.namedBindings;if(!n||!Oy(n))return!1;let i=0;for(const c of n.elements)J2e(c)&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&R9(e)}function aD(e){return!D6(e)&&(R9(e)||!!e.importClause&&Oy(e.importClause.namedBindings)&&ZLe(e.importClause.namedBindings))}function sj(e,n){const i=e.getEmitResolver(),c=e.getCompilerOptions(),u=[],d=new Rae,h=[],S=new Map;let E,P=!1,k,F=!1,$=!1,J=!1;for(const ae of n.statements)switch(ae.kind){case 272:u.push(ae),!$&&D6(ae)&&($=!0),!J&&aD(ae)&&(J=!0);break;case 271:ae.moduleReference.kind===283&&u.push(ae);break;case 278:if(ae.moduleSpecifier)if(!ae.exportClause)u.push(ae),F=!0;else if(u.push(ae),j0(ae.exportClause))ie(ae);else{const ve=ae.exportClause.name;S.get(Kr(ve))||(cj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve)),$=!0}else ie(ae);break;case 277:ae.isExportEquals&&!k&&(k=ae);break;case 243:if(ul(ae,32))for(const ve of ae.declarationList.declarations)E=wQ(ve,S,E,h);break;case 262:if(ul(ae,32))if(ul(ae,2048))P||(cj(h,Nb(ae),e.factory.getDeclarationName(ae)),P=!0);else{const ve=ae.name;S.get(Kr(ve))||(cj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve))}break;case 263:if(ul(ae,32))if(ul(ae,2048))P||(cj(h,Nb(ae),e.factory.getDeclarationName(ae)),P=!0);else{const ve=ae.name;ve&&!S.get(Kr(ve))&&(cj(h,Nb(ae),ve),S.set(Kr(ve),!0),E=ur(E,ve))}break}const X=UJ(e.factory,e.getEmitHelperFactory(),n,c,F,$,J);return X&&u.unshift(X),{externalImports:u,exportSpecifiers:d,exportEquals:k,hasExportStarsToExportValues:F,exportedBindings:h,exportedNames:E,externalHelpersImportDeclaration:X};function ie(ae){for(const ve of uc(ae.exportClause,j0).elements)if(!S.get(Kr(ve.name))){const we=ve.propertyName||ve.name;ae.moduleSpecifier||d.add(we,ve);const Fe=i.getReferencedImportDeclaration(we)||i.getReferencedValueDeclaration(we);Fe&&cj(h,Nb(Fe),ve.name),S.set(Kr(ve.name),!0),E=ur(E,ve.name)}}}function wQ(e,n,i,c){if($_(e.name))for(const u of e.name.elements)cb(u)||(i=wQ(u,n,i,c));else if(!$g(e.name)){const u=Kr(e.name);n.get(u)||(n.set(u,!0),i=ur(i,e.name),mI(e.name)&&cj(c,Nb(e),e.name))}return i}function cj(e,n,i){let c=e[n];return c?c.push(i):e[n]=c=[i],c}function L3(e){return Cm(e)||e.kind===9||qb(e.kind)||xn(e)}function IA(e){return!xn(e)&&L3(e)}function lj(e){return e>=65&&e<=79}function RQ(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function v$(e){if(!kb(e))return;const n=rg(e.expression);return h1(n)?n:void 0}function MHe(e,n,i){for(let c=n;ce4e(c,n,i))}function LHe(e){return $2e(e)||Ep(e)}function MQ(e){return gi(e.members,LHe)}function e4e(e,n,i){return nu(e)&&(!!e.initializer||!n)&&ev(e)===i}function $2e(e){return nu(e)&&ev(e)}function Nae(e){return e.kind===172&&e.initializer!==void 0}function q2e(e){return!pd(e)&&(Mv(e)||xb(e))&&Lu(e.name)}function t4e(e){let n;if(e){const i=e.parameters,c=i.length>0&&iI(i[0]),u=c?1:0,d=c?i.length-1:i.length;for(let h=0;hK2e(i.privateEnv,n))}var uj,Rae,Hst=G({"src/compiler/transformers/utilities.ts"(){md(),uj=class r_e{constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(r_e.toKey(n))}get(n){return this._map.get(r_e.toKey(n))}set(n,i){return this._map.set(r_e.toKey(n),i),this}delete(n){var i;return((i=this._map)==null?void 0:i.delete(r_e.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(s7(n)||$g(n)){const i=n.emitNode.autoGenerate;if((i.flags&7)===4){const c=$J(n),u=xN(c)&&c!==n?r_e.toKey(c):`(generated@${vm(c)})`;return D3(!1,i.prefix,u,i.suffix,r_e.toKey)}else{const c=`(auto@${i.id})`;return D3(!1,i.prefix,c,i.suffix,r_e.toKey)}}return Lu(n)?Kr(n).slice(1):Kr(n)}},Rae=class extends uj{add(e,n){let i=this.get(e);return i?i.push(n):this.set(e,i=[n]),i}remove(e,n){const i=this.get(e);i&&(A8(i,n),i.length||this.delete(e))}}}});function yI(e,n,i,c,u,d){let h=e,S;if(wy(e))for(S=e.right;vSe(e.left)||Vie(e.left);)if(wy(S))h=e=S,S=e.right;else return re.checkDefined(Bn(S,n,kr));let E;const P={context:i,level:c,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:F,createArrayBindingOrAssignmentPattern:$=>i4e(i.factory,$),createObjectBindingOrAssignmentPattern:$=>BHe(i.factory,$),createArrayBindingOrAssignmentElement:o4e,visitor:n};if(S&&(S=Bn(S,n,kr),re.assert(S),xn(S)&&fj(e,S.escapedText)||r4e(e)?S=dj(P,S,!1,h):u?S=dj(P,S,!0,h):Hd(e)&&(h=S)),LQ(P,e,S,h,wy(e)),S&&u){if(!gt(E))return S;E.push(S)}return i.factory.inlineExpressions(E)||i.factory.createOmittedExpression();function k($){E=ur(E,$)}function F($,J,X,ie){re.assertNode($,d?xn:kr);const ae=d?d($,J,X):Tn(i.factory.createAssignment(re.checkDefined(Bn($,n,kr)),J),X);ae.original=ie,k(ae)}}function fj(e,n){const i=gI(e);return u7(i)?Jst(i,n):xn(i)?i.escapedText===n:!1}function Jst(e,n){const i=BG(e);for(const c of i)if(fj(c,n))return!0;return!1}function r4e(e){const n=joe(e);if(n&&Qf(n)&&!aR(n.expression))return!0;const i=gI(e);return!!i&&u7(i)&&FHe(i)}function FHe(e){return!!Ot(BG(e),r4e)}function pF(e,n,i,c,u,d=!1,h){let S;const E=[],P=[],k={context:i,level:c,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression:F,emitBindingOrAssignment:$,createArrayBindingOrAssignmentPattern:J=>Xst(i.factory,J),createObjectBindingOrAssignmentPattern:J=>Yst(i.factory,J),createArrayBindingOrAssignmentElement:J=>Mae(i.factory,J),visitor:n};if(Kc(e)){let J=XY(e);J&&(xn(J)&&fj(e,J.escapedText)||r4e(e))&&(J=dj(k,re.checkDefined(Bn(J,k.visitor,kr)),!1,J),e=i.factory.updateVariableDeclaration(e,e.name,void 0,void 0,J))}if(LQ(k,e,u,e,h),S){const J=i.factory.createTempVariable(void 0);if(d){const X=i.factory.inlineExpressions(S);S=void 0,$(J,X,void 0,void 0)}else{i.hoistVariableDeclaration(J);const X=yl(E);X.pendingExpressions=ur(X.pendingExpressions,i.factory.createAssignment(J,X.value)),Oi(X.pendingExpressions,S),X.value=J}}for(const{pendingExpressions:J,name:X,value:ie,location:ae,original:ve}of E){const we=i.factory.createVariableDeclaration(X,void 0,void 0,J?i.factory.inlineExpressions(ur(J,ie)):ie);we.original=ve,Tn(we,ae),P.push(we)}return P;function F(J){S=ur(S,J)}function $(J,X,ie,ae){re.assertNode(J,lR),S&&(X=i.factory.inlineExpressions(ur(S,X)),S=void 0),E.push({pendingExpressions:S,name:J,value:X,location:ie,original:ae})}}function LQ(e,n,i,c,u){const d=gI(n);if(!u){const h=Bn(XY(n),e.visitor,kr);h?i?(i=qst(e,i,h,c),!IA(h)&&u7(d)&&(i=dj(e,i,!0,c))):i=h:i||(i=e.context.factory.createVoidZero())}qX(d)?_j(e,n,d,i,c):rde(d)?$st(e,n,d,i,c):e.emitBindingOrAssignment(d,i,c,n)}function _j(e,n,i,c,u){const d=BG(i),h=d.length;if(h!==1){const P=!$X(n)||h!==0;c=dj(e,c,P,u)}let S,E;for(let P=0;P=1&&!(k.transformFlags&98304)&&!(gI(k).transformFlags&98304)&&!Qf(F))S=ur(S,Bn(k,e.visitor,ld));else{S&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(S),c,u,i),S=void 0);const $=Kst(e,c,F);Qf(F)&&(E=ur(E,$.argumentExpression)),LQ(e,k,$,k)}}}S&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(S),c,u,i)}function $st(e,n,i,c,u){const d=BG(i),h=d.length;if(e.level<1&&e.downlevelIteration)c=dj(e,Tn(e.context.getEmitHelperFactory().createReadHelper(c,h>0&&YY(d[h-1])?void 0:h),u),!1,u);else if(h!==1&&(e.level<1||h===0)||jr(d,cb)){const P=!$X(n)||h!==0;c=dj(e,c,P,u)}let S,E;for(let P=0;P=1)if(k.transformFlags&65536||e.hasTransformedPriorElement&&!WHe(k)){e.hasTransformedPriorElement=!0;const F=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(F),E=ur(E,[F,k]),S=ur(S,e.createArrayBindingOrAssignmentElement(F))}else S=ur(S,k);else{if(cb(k))continue;if(YY(k)){if(P===h-1){const F=e.context.factory.createArraySliceCall(c,P);LQ(e,k,F,k)}}else{const F=e.context.factory.createElementAccessExpression(c,P);LQ(e,k,F,k)}}}if(S&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(S),c,u,i),E)for(const[P,k]of E)LQ(e,k,P,k)}function WHe(e){const n=gI(e);if(!n||cb(n))return!0;const i=joe(e);if(i&&!Qv(i))return!1;const c=XY(e);return c&&!IA(c)?!1:u7(n)?jr(BG(n),WHe):xn(n)}function qst(e,n,i,c){return n=dj(e,n,!0,c),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,i,void 0,n)}function Kst(e,n,i){const{factory:c}=e.context;if(Qf(i)){const u=dj(e,re.checkDefined(Bn(i.expression,e.visitor,kr)),!1,i);return e.context.factory.createElementAccessExpression(n,u)}else if(Ox(i)){const u=c.cloneNode(i);return e.context.factory.createElementAccessExpression(n,u)}else{const u=e.context.factory.createIdentifier(Kr(i));return e.context.factory.createPropertyAccessExpression(n,u)}}function dj(e,n,i,c){if(xn(n)&&i)return n;{const u=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(u),e.emitExpression(Tn(e.context.factory.createAssignment(u,n),c))):e.emitBindingOrAssignment(u,n,c,void 0),u}}function Xst(e,n){return re.assertEachNode(n,Uu),e.createArrayBindingPattern(n)}function i4e(e,n){return re.assertEachNode(n,p9),e.createArrayLiteralExpression(Vn(n,e.converters.convertToArrayAssignmentElement))}function Yst(e,n){return re.assertEachNode(n,sa),e.createObjectBindingPattern(n)}function BHe(e,n){return re.assertEachNode(n,d9),e.createObjectLiteralExpression(Vn(n,e.converters.convertToObjectAssignmentElement))}function Mae(e,n){return e.createBindingElement(void 0,void 0,n)}function o4e(e){return e}var vme,Qst=G({"src/compiler/transformers/destructuring.ts"(){md(),vme=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(vme||{})}});function T$(e,n,i=e.createThis()){const c=e.createAssignment(n,i),u=e.createExpressionStatement(c),d=e.createBlock([u],!1),h=e.createClassStaticBlockDeclaration(d);return Sa(h).classThis=n,h}function S$(e){var n;if(!Ep(e)||e.body.statements.length!==1)return!1;const i=e.body.statements[0];return kb(i)&&Zv(i.expression,!0)&&xn(i.expression.left)&&((n=e.emitNode)==null?void 0:n.classThis)===i.expression.left&&i.expression.right.kind===110}function bme(e){var n;return!!((n=e.emitNode)!=null&&n.classThis)&>(e.members,S$)}function FW(e,n,i,c){if(bme(n))return n;const u=T$(e,i,c);n.name&&lp(u.body.statements[0],n.name);const d=e.createNodeArray([u,...n.members]);Tn(d,n.members);const h=Ih(n)?e.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,d):e.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,d);return Sa(h).classThis=i,h}var X2e=G({"src/compiler/transformers/classThis.ts"(){md()}});function pj(e,n,i){const c=Gg(iv(i));return(Ih(c)||mg(c))&&!c.name&&ul(c,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(n)}function Tme(e,n,i){const{factory:c}=e;if(i!==void 0)return{assignedName:c.createStringLiteral(i),name:n};if(Qv(n)||Lu(n))return{assignedName:c.createStringLiteralFromNode(n),name:n};if(Qv(n.expression)&&!xn(n.expression))return{assignedName:c.createStringLiteralFromNode(n.expression),name:n};const u=c.getGeneratedNameForNode(n);e.hoistVariableDeclaration(u);const d=e.getEmitHelperFactory().createPropKeyHelper(n.expression),h=c.createAssignment(u,d),S=c.updateComputedPropertyName(n,h);return{assignedName:u,name:S}}function WW(e,n,i=e.factory.createThis()){const{factory:c}=e,u=e.getEmitHelperFactory().createSetFunctionNameHelper(i,n),d=c.createExpressionStatement(u),h=c.createBlock([d],!1),S=c.createClassStaticBlockDeclaration(h);return Sa(S).assignedName=n,S}function mj(e){var n;if(!Ep(e)||e.body.statements.length!==1)return!1;const i=e.body.statements[0];return kb(i)&&uW(i.expression,"___setFunctionName")&&i.expression.arguments.length>=2&&i.expression.arguments[1]===((n=e.emitNode)==null?void 0:n.assignedName)}function Sme(e){var n;return!!((n=e.emitNode)!=null&&n.assignedName)&>(e.members,mj)}function Y2e(e){return!!e.name||Sme(e)}function Eme(e,n,i,c){if(Sme(n))return n;const{factory:u}=e,d=WW(e,i,c);n.name&&lp(d.body.statements[0],n.name);const h=Ho(n.members,S$)+1,S=n.members.slice(0,h),E=n.members.slice(h),P=u.createNodeArray([...S,d,...E]);return Tn(P,n.members),n=Ih(n)?u.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,P):u.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,P),Sa(n).assignedName=i,n}function E$(e,n,i,c){if(c&&Sd(i)&&iH(i))return n;const{factory:u}=e,d=iv(n),h=v0(d)?uc(Eme(e,d,i),v0):e.getEmitHelperFactory().createSetFunctionNameHelper(d,i);return u.restoreOuterExpressions(n,h)}function Zst(e,n,i,c){const{factory:u}=e,{assignedName:d,name:h}=Tme(e,n.name,c),S=E$(e,n.initializer,d,i);return u.updatePropertyAssignment(n,h,S)}function ect(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):pj(u,n.name,n.objectAssignmentInitializer),h=E$(e,n.objectAssignmentInitializer,d,i);return u.updateShorthandPropertyAssignment(n,n.name,h)}function tct(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):pj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,h)}function ax(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):pj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,h)}function nct(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):pj(u,n.name,n.initializer),h=E$(e,n.initializer,d,i);return u.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,h)}function a4e(e,n,i,c){const{factory:u}=e,{assignedName:d,name:h}=Tme(e,n.name,c),S=E$(e,n.initializer,d,i);return u.updatePropertyDeclaration(n,n.modifiers,h,n.questionToken??n.exclamationToken,n.type,S)}function s4e(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):pj(u,n.left,n.right),h=E$(e,n.right,d,i);return u.updateBinaryExpression(n,n.left,n.operatorToken,h)}function c4e(e,n,i,c){const{factory:u}=e,d=c!==void 0?u.createStringLiteral(c):u.createStringLiteral(n.isExportEquals?"":"default"),h=E$(e,n.expression,d,i);return u.updateExportAssignment(n,n.modifiers,h)}function mE(e,n,i,c){switch(n.kind){case 303:return Zst(e,n,i,c);case 304:return ect(e,n,i,c);case 260:return tct(e,n,i,c);case 169:return ax(e,n,i,c);case 208:return nct(e,n,i,c);case 172:return a4e(e,n,i,c);case 226:return s4e(e,n,i,c);case 277:return c4e(e,n,i,c)}}var rct=G({"src/compiler/transformers/namedEvaluation.ts"(){md()}});function xme(e,n,i,c,u,d){const h=Bn(n.tag,i,kr);re.assert(h);const S=[void 0],E=[],P=[],k=n.template;if(d===0&&!TH(k))return Xo(n,i,e);const{factory:F}=e;if(K7(k))E.push(Q2e(F,k)),P.push(l4e(F,k,c));else{E.push(Q2e(F,k.head)),P.push(l4e(F,k.head,c));for(const J of k.templateSpans)E.push(Q2e(F,J.literal)),P.push(l4e(F,J.literal,c)),S.push(re.checkDefined(Bn(J.expression,i,kr)))}const $=e.getEmitHelperFactory().createTemplateObjectHelper(F.createArrayLiteralExpression(E),F.createArrayLiteralExpression(P));if(Bv(c)){const J=F.createUniqueName("templateObject");u(J),S[0]=F.createLogicalOr(J,F.createAssignment(J,$))}else S[0]=$;return F.createCallExpression(h,void 0,S)}function Q2e(e,n){return n.templateFlags&26656?e.createVoidZero():e.createStringLiteral(n.text)}function l4e(e,n,i){let c=n.rawText;if(c===void 0){re.assertIsDefined(i,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),c=m7(i,n);const u=n.kind===15||n.kind===18;c=c.substring(1,c.length-(u?1:2))}return c=c.replace(/\r\n?/g,` +`),Tn(e.createStringLiteral(c),n)}var Ame,ict=G({"src/compiler/transformers/taggedTemplate.ts"(){md(),Ame=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Ame||{})}});function u4e(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:d,hoistVariableDeclaration:h}=e,S=e.getEmitResolver(),E=e.getCompilerOptions(),P=iu(E),k=Zp(E),F=!!E.experimentalDecorators,$=E.emitDecoratorMetadata?_4e(e):void 0,J=e.onEmitNode,X=e.onSubstituteNode;e.onEmitNode=bE,e.onSubstituteNode=hh,e.enableSubstitution(211),e.enableSubstitution(212);let ie,ae,ve,we,Fe,et,Pe,dt;return Ie;function Ie(fe){return fe.kind===313?ct(fe):Ct(fe)}function ct(fe){return n.createBundle(fe.sourceFiles.map(Ct),Qo(fe.prepends,_n=>_n.kind===315?mEe(_n,"js"):_n))}function Ct(fe){if(fe.isDeclarationFile)return fe;ie=fe;const _n=Lt(fe,En);return $N(_n,e.readEmitHelpers()),ie=void 0,_n}function Lt(fe,_n){const Xn=we,_i=Fe,$o=et;Ze(fe);const Sc=_n(fe);return we!==Xn&&(Fe=_i),we=Xn,et=$o,Sc}function Ze(fe){switch(fe.kind){case 312:case 269:case 268:case 241:we=fe,Fe=void 0;break;case 263:case 262:if(ul(fe,128))break;fe.name?Mt(fe):re.assert(fe.kind===263||ul(fe,2048));break}}function Ke(fe){return Lt(fe,st)}function st(fe){return fe.transformFlags&1?jt(fe):fe}function It(fe){return Lt(fe,Yt)}function Yt(fe){switch(fe.kind){case 272:case 271:case 277:case 278:return Et(fe);default:return st(fe)}}function Et(fe){if(__(fe)!==fe)return fe.transformFlags&1?Xo(fe,Ke,e):fe;switch(fe.kind){case 272:return vo(fe);case 271:return G_(fe);case 277:return Pc(fe);case 278:return hc(fe);default:re.fail("Unhandled ellided statement")}}function at(fe){return Lt(fe,Qt)}function Qt(fe){if(!(fe.kind===278||fe.kind===272||fe.kind===273||fe.kind===271&&fe.moduleReference.kind===283))return fe.transformFlags&1||ul(fe,32)?jt(fe):fe}function nn(fe){return _n=>Lt(_n,Xn=>Rn(Xn,fe))}function Rn(fe,_n){switch(fe.kind){case 176:return _a(fe);case 172:return na(fe,_n);case 177:return w_(fe,_n);case 178:return Eu(fe,_n);case 174:return Cu(fe,_n);case 175:return Xo(fe,Ke,e);case 240:return fe;case 181:return;default:return re.failBadSyntaxKind(fe)}}function cn(fe){return _n=>Lt(_n,Xn=>qt(Xn,fe))}function qt(fe,_n){switch(fe.kind){case 303:case 304:case 305:return Ke(fe);case 177:return w_(fe,_n);case 178:return Eu(fe,_n);case 174:return Cu(fe,_n);default:return re.failBadSyntaxKind(fe)}}function Kt(fe){return Jh(fe)?void 0:Ke(fe)}function wr(fe){return Mf(fe)?void 0:Ke(fe)}function Wr(fe){if(!Jh(fe)&&!(F7(fe.kind)&28895)&&!(ae&&fe.kind===95))return fe}function jt(fe){if(dl(fe)&&ul(fe,128))return n.createNotEmittedStatement(fe);switch(fe.kind){case 95:case 90:return ae?void 0:fe;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 n.createNotEmittedStatement(fe);case 270:return;case 264:return n.createNotEmittedStatement(fe);case 263:return Fr(fe);case 231:return Ki(fe);case 298:return za(fe);case 233:return Ia(fe);case 210:return fr(fe);case 176:case 172:case 174:case 177:case 178:case 175:return re.fail("Class and object literal elements must be visited with their respective visitors");case 262:return He(fe);case 218:return Hn(fe);case 219:return dr(fe);case 169:return Mr(fe);case 217:return Wn(fe);case 216:case 234:return $r(fe);case 238:return Br(fe);case 213:return Ei(fe);case 214:return Ln(fe);case 215:return Sr(fe);case 235:return Ge(fe);case 266:return Io(fe);case 243:return Pr(fe);case 260:return ln(fe);case 267:return Nn(fe);case 271:return G_(fe);case 285:return yi(fe);case 286:return go(fe);default:return Xo(fe,Ke,e)}}function En(fe){const _n=hv(E,"alwaysStrict")&&!(Bv(fe)&&k>=5)&&!Rx(fe);return n.updateSourceFile(fe,ume(fe.statements,It,e,0,_n))}function fr(fe){return n.updateObjectLiteralExpression(fe,Wa(fe.properties,cn(fe),DN))}function Tr(fe){let _n=0;gt(b$(fe,!0,!0))&&(_n|=1);const Xn=YC(fe);return Xn&&iv(Xn.expression).kind!==106&&(_n|=64),yP(F,fe)&&(_n|=2),b7(F,fe)&&(_n|=4),u_(fe)?_n|=8:mf(fe)?_n|=32:Ym(fe)&&(_n|=16),_n}function Vr(fe){return!!(fe.transformFlags&8192)}function Pn(fe){return X2(fe)||gt(fe.typeParameters)||gt(fe.heritageClauses,Vr)||gt(fe.members,Vr)}function Fr(fe){const _n=Tr(fe),Xn=P<=1&&!!(_n&7);if(!Pn(fe)&&!yP(F,fe)&&!u_(fe))return n.updateClassDeclaration(fe,Wa(fe.modifiers,Wr,Mf),fe.name,void 0,Wa(fe.heritageClauses,Ke,Qb),Wa(fe.members,nn(fe),J_));Xn&&e.startLexicalEnvironment();const _i=Xn||_n&8;let $o=_i?Wa(fe.modifiers,wr,Am):Wa(fe.modifiers,Ke,Am);_n&2&&($o=no($o,fe));const xs=_i&&!fe.name||_n&4||_n&1?fe.name??n.getGeneratedNameForNode(fe):fe.name,Fs=n.updateClassDeclaration(fe,$o,xs,void 0,Wa(fe.heritageClauses,Ke,Qb),io(fe));let Tl=wd(fe);_n&1&&(Tl|=64),_s(Fs,Tl);let fc;if(Xn){const Gd=[Fs],ag=Hie(Ff(ie.text,fe.members.end),20),ah=n.getInternalName(fe),bm=n.createPartiallyEmittedExpression(ah);l6(bm,ag.end),_s(bm,3072);const ay=n.createReturnStatement(bm);u3(ay,ag.pos),_s(ay,3840),Gd.push(ay),Um(Gd,e.endLexicalEnvironment());const yp=n.createImmediatelyInvokedArrowFunction(Gd);Sp(yp,1);const Cg=n.createVariableDeclaration(n.getLocalName(fe,!1,!1),void 0,void 0,yp);Ls(Cg,fe);const wp=n.createVariableStatement(void 0,n.createVariableDeclarationList([Cg],1));Ls(wp,fe),_y(wp,fe),lp(wp,$E(fe)),lb(wp),fc=wp}else fc=Fs;if(_i){if(_n&8)return[fc,Cp(fe)];if(_n&32)return[fc,n.createExportDefault(n.getLocalName(fe,!1,!0))];if(_n&16)return[fc,n.createExternalModuleExport(n.getDeclarationName(fe,!1,!0))]}return fc}function Ki(fe){let _n=Wa(fe.modifiers,wr,Am);return yP(F,fe)&&(_n=no(_n,fe)),n.updateClassExpression(fe,_n,fe.name,void 0,Wa(fe.heritageClauses,Ke,Qb),io(fe))}function io(fe){const _n=Wa(fe.members,nn(fe),J_);let Xn;const _i=sC(fe),$o=_i&&gi(_i.parameters,Sc=>DT(Sc,_i));if($o)for(const Sc of $o){const xs=n.createPropertyDeclaration(void 0,Sc.name,void 0,void 0,void 0);Ls(xs,Sc),Xn=ur(Xn,xs)}return Xn?(Xn=Oi(Xn,_n),Tn(n.createNodeArray(Xn),fe.members)):_n}function no(fe,_n){const Xn=Mo(_n,_n);if(gt(Xn)){const _i=[];Oi(_i,Qw(fe,Voe)),Oi(_i,gi(fe,Jh)),Oi(_i,Xn),Oi(_i,gi(qO(fe,Voe),Mf)),fe=Tn(n.createNodeArray(_i),fe)}return fe}function os(fe,_n,Xn){if(Fl(Xn)&&xde(F,_n,Xn)){const _i=Mo(_n,Xn);if(gt(_i)){const $o=[];Oi($o,gi(fe,Jh)),Oi($o,_i),Oi($o,gi(fe,Mf)),fe=Tn(n.createNodeArray($o),fe)}}return fe}function Mo(fe,_n){if(F)return zHe?ki(fe,_n):$i(fe,_n)}function $i(fe,_n){if($){let Xn;if(gc(fe)){const _i=i().createMetadataHelper("design:type",$.serializeTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe));Xn=ur(Xn,n.createDecorator(_i))}if(Jc(fe)){const _i=i().createMetadataHelper("design:paramtypes",$.serializeParameterTypesOfNode({currentLexicalScope:we,currentNameScope:_n},fe,_n));Xn=ur(Xn,n.createDecorator(_i))}if(Wl(fe)){const _i=i().createMetadataHelper("design:returntype",$.serializeReturnTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe));Xn=ur(Xn,n.createDecorator(_i))}return Xn}}function ki(fe,_n){if($){let Xn;if(gc(fe)){const _i=n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe)));Xn=ur(Xn,_i)}if(Jc(fe)){const _i=n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeParameterTypesOfNode({currentLexicalScope:we,currentNameScope:_n},fe,_n)));Xn=ur(Xn,_i)}if(Wl(fe)){const _i=n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),$.serializeReturnTypeOfNode({currentLexicalScope:we,currentNameScope:_n},fe)));Xn=ur(Xn,_i)}if(Xn){const _i=i().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(Xn,!0));return[n.createDecorator(_i)]}}}function gc(fe){const _n=fe.kind;return _n===174||_n===177||_n===178||_n===172}function Wl(fe){return fe.kind===174}function Jc(fe){switch(fe.kind){case 263:case 231:return sC(fe)!==void 0;case 174:case 177:case 178:return!0}return!1}function au(fe,_n){const Xn=fe.name;return Lu(Xn)?n.createIdentifier(""):Qf(Xn)?_n&&!IA(Xn.expression)?n.getGeneratedNameForNode(Xn):Xn.expression:xn(Xn)?n.createStringLiteral(Kr(Xn)):n.cloneNode(Xn)}function qn(fe){const _n=fe.name;if(Qf(_n)&&(!ev(fe)&&et||X2(fe)&&F)){const Xn=Bn(_n.expression,Ke,kr);re.assert(Xn);const _i=h2(Xn);if(!IA(_i)){const $o=n.getGeneratedNameForNode(_n);return h($o),n.updateComputedPropertyName(_n,n.createAssignment($o,Xn))}}return re.checkDefined(Bn(_n,Ke,qg))}function za(fe){if(fe.token!==119)return Xo(fe,Ke,e)}function Ia(fe){return n.updateExpressionWithTypeArguments(fe,re.checkDefined(Bn(fe.expression,Ke,ib)),void 0)}function zi(fe){return!ny(fe.body)}function na(fe,_n){const Xn=fe.flags&33554432||ul(fe,64);if(Xn&&!(F&&X2(fe)))return;let _i=Fl(_n)?Xn?Wa(fe.modifiers,wr,Am):Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return _i=os(_i,fe,_n),Xn?n.updatePropertyDeclaration(fe,Hi(_i,n.createModifiersFromModifierFlags(128)),re.checkDefined(Bn(fe.name,Ke,qg)),void 0,void 0,void 0):n.updatePropertyDeclaration(fe,_i,qn(fe),void 0,void 0,Bn(fe.initializer,Ke,kr))}function _a(fe){if(zi(fe))return n.updateConstructorDeclaration(fe,void 0,sm(fe.parameters,Ke,e),Au(fe.body,fe))}function us(fe,_n,Xn,_i,$o,Sc){const xs=_i[$o],Fs=_n[xs];if(Oi(fe,Wa(_n,Ke,dl,Xn,xs-Xn)),My(Fs)){const Tl=[];us(Tl,Fs.tryBlock.statements,0,_i,$o+1,Sc);const fc=n.createNodeArray(Tl);Tn(fc,Fs.tryBlock.statements),fe.push(n.updateTryStatement(Fs,n.updateBlock(Fs.tryBlock,Tl),Bn(Fs.catchClause,Ke,A3),Bn(Fs.finallyBlock,Ke,Ou)))}else Oi(fe,Wa(_n,Ke,dl,xs,1)),Oi(fe,Sc);Oi(fe,Wa(_n,Ke,dl,xs+1))}function Au(fe,_n){const Xn=_n&&gi(_n.parameters,Tl=>DT(Tl,_n));if(!gt(Xn))return ox(fe,Ke,e);let _i=[];u();const $o=n.copyPrologue(fe.statements,_i,!1,Ke),Sc=mme(fe.statements,$o),xs=Qo(Xn,Qu);Sc.length?us(_i,fe.statements,$o,Sc,0,xs):(Oi(_i,xs),Oi(_i,Wa(fe.statements,Ke,dl,$o))),_i=n.mergeLexicalEnvironment(_i,d());const Fs=n.createBlock(Tn(n.createNodeArray(_i),fe.statements),!0);return Tn(Fs,fe),Ls(Fs,fe),Fs}function Qu(fe){const _n=fe.name;if(!xn(_n))return;const Xn=kl(Tn(n.cloneNode(_n),_n),_n.parent);_s(Xn,3168);const _i=kl(Tn(n.cloneNode(_n),_n),_n.parent);return _s(_i,3072),lb(aW(Tn(Ls(n.createExpressionStatement(n.createAssignment(Tn(n.createPropertyAccessExpression(n.createThis(),Xn),fe.name),_i)),fe),TA(fe,-1))))}function Cu(fe,_n){if(!(fe.transformFlags&1))return fe;if(!zi(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateMethodDeclaration(fe,Xn,fe.asteriskToken,qn(fe),void 0,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e))}function yf(fe){return!(ny(fe.body)&&ul(fe,64))}function w_(fe,_n){if(!(fe.transformFlags&1))return fe;if(!yf(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateGetAccessorDeclaration(fe,Xn,qn(fe),sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([]))}function Eu(fe,_n){if(!(fe.transformFlags&1))return fe;if(!yf(fe))return;let Xn=Fl(_n)?Wa(fe.modifiers,Ke,Am):Wa(fe.modifiers,Kt,Am);return Xn=os(Xn,fe,_n),n.updateSetAccessorDeclaration(fe,Xn,qn(fe),sm(fe.parameters,Ke,e),ox(fe.body,Ke,e)||n.createBlock([]))}function He(fe){if(!zi(fe))return n.createNotEmittedStatement(fe);const _n=n.updateFunctionDeclaration(fe,Wa(fe.modifiers,Wr,Mf),fe.asteriskToken,fe.name,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([]));if(u_(fe)){const Xn=[_n];return Yg(Xn,fe),Xn}return _n}function Hn(fe){return zi(fe)?n.updateFunctionExpression(fe,Wa(fe.modifiers,Wr,Mf),fe.asteriskToken,fe.name,void 0,sm(fe.parameters,Ke,e),void 0,ox(fe.body,Ke,e)||n.createBlock([])):n.createOmittedExpression()}function dr(fe){return n.updateArrowFunction(fe,Wa(fe.modifiers,Wr,Mf),void 0,sm(fe.parameters,Ke,e),void 0,fe.equalsGreaterThanToken,ox(fe.body,Ke,e))}function Mr(fe){if(iI(fe))return;const _n=n.updateParameterDeclaration(fe,Wa(fe.modifiers,Xn=>Jh(Xn)?Ke(Xn):void 0,Am),fe.dotDotDotToken,re.checkDefined(Bn(fe.name,Ke,lR)),void 0,void 0,Bn(fe.initializer,Ke,kr));return _n!==fe&&(_y(_n,fe),Tn(_n,Db(fe)),lp(_n,Db(fe)),_s(_n.name,64)),_n}function Pr(fe){if(u_(fe)){const _n=n3(fe.declarationList);return _n.length===0?void 0:Tn(n.createExpressionStatement(n.inlineExpressions(Vn(_n,Bt))),fe)}else return Xo(fe,Ke,e)}function Bt(fe){const _n=fe.name;return $_(_n)?yI(fe,Ke,e,0,!1,Wy):Tn(n.createAssignment(Og(_n),re.checkDefined(Bn(fe.initializer,Ke,kr))),fe)}function ln(fe){const _n=n.updateVariableDeclaration(fe,re.checkDefined(Bn(fe.name,Ke,lR)),void 0,void 0,Bn(fe.initializer,Ke,kr));return fe.type&&H7(_n.name,fe.type),_n}function Wn(fe){const _n=iv(fe.expression,-7);if(f7(_n)){const Xn=Bn(fe.expression,Ke,kr);return re.assert(Xn),n.createPartiallyEmittedExpression(Xn,fe)}return Xo(fe,Ke,e)}function $r(fe){const _n=Bn(fe.expression,Ke,kr);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Ge(fe){const _n=Bn(fe.expression,Ke,ib);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Br(fe){const _n=Bn(fe.expression,Ke,kr);return re.assert(_n),n.createPartiallyEmittedExpression(_n,fe)}function Ei(fe){return n.updateCallExpression(fe,re.checkDefined(Bn(fe.expression,Ke,kr)),void 0,Wa(fe.arguments,Ke,kr))}function Ln(fe){return n.updateNewExpression(fe,re.checkDefined(Bn(fe.expression,Ke,kr)),void 0,Wa(fe.arguments,Ke,kr))}function Sr(fe){return n.updateTaggedTemplateExpression(fe,re.checkDefined(Bn(fe.tag,Ke,kr)),void 0,re.checkDefined(Bn(fe.template,Ke,Uz)))}function yi(fe){return n.updateJsxSelfClosingElement(fe,re.checkDefined(Bn(fe.tagName,Ke,QX)),void 0,re.checkDefined(Bn(fe.attributes,Ke,CR)))}function go(fe){return n.updateJsxOpeningElement(fe,re.checkDefined(Bn(fe.tagName,Ke,QX)),void 0,re.checkDefined(Bn(fe.attributes,Ke,CR)))}function Ao(fe){return!G8(fe)||gk(E)}function Io(fe){if(!Ao(fe))return n.createNotEmittedStatement(fe);const _n=[];let Xn=4;const _i=Jn(_n,fe);_i&&(k!==4||we!==ie)&&(Xn|=1024);const $o=pl(fe),Sc=R_(fe),xs=u_(fe)?n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0):n.getDeclarationName(fe,!1,!0);let Fs=n.createLogicalOr(xs,n.createAssignment(xs,n.createObjectLiteralExpression()));if(u_(fe)){const fc=n.getLocalName(fe,!1,!0);Fs=n.createAssignment(fc,Fs)}const Tl=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,$o)],void 0,ze(fe,Sc)),void 0,[Fs]));return Ls(Tl,fe),_i&&(uI(Tl,void 0),cW(Tl,void 0)),Tn(Tl,fe),cE(Tl,Xn),_n.push(Tl),_n}function ze(fe,_n){const Xn=ve;ve=_n;const _i=[];c();const $o=Vn(fe.members,Ce);return Um(_i,d()),Oi(_i,$o),ve=Xn,n.createBlock(Tn(n.createNodeArray(_i),fe.members),!0)}function Ce(fe){const _n=au(fe,!1),Xn=kt(fe),_i=n.createAssignment(n.createElementAccessExpression(ve,_n),Xn),$o=Xn.kind===11?_i:n.createAssignment(n.createElementAccessExpression(ve,_i),_n);return Tn(n.createExpressionStatement(Tn($o,fe)),fe)}function kt(fe){const _n=S.getConstantValue(fe);return _n!==void 0?typeof _n=="string"?n.createStringLiteral(_n):n.createNumericLiteral(_n):(og(),fe.initializer?re.checkDefined(Bn(fe.initializer,Ke,kr)):n.createVoidZero())}function qe(fe){const _n=__(fe,dy);return _n?sme(_n,gk(E)):!0}function Mt(fe){Fe||(Fe=new Map);const _n=mn(fe);Fe.has(_n)||Fe.set(_n,fe)}function ge(fe){if(Fe){const _n=mn(fe);return Fe.get(_n)===fe}return!0}function mn(fe){return re.assertNode(fe.name,xn),fe.name.escapedText}function Jn(fe,_n){const Xn=n.createVariableDeclaration(n.getLocalName(_n,!1,!0)),_i=we.kind===312?0:1,$o=n.createVariableStatement(Wa(_n.modifiers,Wr,Mf),n.createVariableDeclarationList([Xn],_i));return Ls(Xn,_n),uI(Xn,void 0),cW(Xn,void 0),Ls($o,_n),Mt(_n),ge(_n)?(_n.kind===266?lp($o.declarationList,_n):lp($o,_n),_y($o,_n),cE($o,2048),fe.push($o),!0):!1}function Nn(fe){if(!qe(fe))return n.createNotEmittedStatement(fe);re.assertNode(fe.name,xn,"A TypeScript namespace should have an Identifier name."),km();const _n=[];let Xn=4;const _i=Jn(_n,fe);_i&&(k!==4||we!==ie)&&(Xn|=1024);const $o=pl(fe),Sc=R_(fe),xs=u_(fe)?n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0):n.getDeclarationName(fe,!1,!0);let Fs=n.createLogicalOr(xs,n.createAssignment(xs,n.createObjectLiteralExpression()));if(u_(fe)){const fc=n.getLocalName(fe,!1,!0);Fs=n.createAssignment(fc,Fs)}const Tl=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,$o)],void 0,Lr(fe,Sc)),void 0,[Fs]));return Ls(Tl,fe),_i&&(uI(Tl,void 0),cW(Tl,void 0)),Tn(Tl,fe),cE(Tl,Xn),_n.push(Tl),_n}function Lr(fe,_n){const Xn=ve,_i=ae,$o=Fe;ve=_n,ae=fe,Fe=void 0;const Sc=[];c();let xs,Fs;if(fe.body)if(fe.body.kind===268)Lt(fe.body,fc=>Oi(Sc,Wa(fc.statements,at,dl))),xs=fe.body.statements,Fs=fe.body;else{const fc=Nn(fe.body);fc&&(ls(fc)?Oi(Sc,fc):Sc.push(fc));const Gd=qi(fe).body;xs=TA(Gd.statements,-1)}Um(Sc,d()),ve=Xn,ae=_i,Fe=$o;const Tl=n.createBlock(Tn(n.createNodeArray(Sc),xs),!0);return Tn(Tl,Fs),(!fe.body||fe.body.kind!==268)&&_s(Tl,wd(Tl)|3072),Tl}function qi(fe){if(fe.body.kind===267)return qi(fe.body)||fe.body}function vo(fe){if(!fe.importClause)return fe;if(fe.importClause.isTypeOnly)return;const _n=Bn(fe.importClause,Ro,Tk);return _n||E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2?n.updateImportDeclaration(fe,void 0,_n,fe.moduleSpecifier,fe.attributes):void 0}function Ro(fe){re.assert(!fe.isTypeOnly);const _n=Md(fe)?fe.name:void 0,Xn=Bn(fe.namedBindings,Ts,ade);return _n||Xn?n.updateImportClause(fe,!1,_n,Xn):void 0}function Ts(fe){if(fe.kind===274)return Md(fe)?fe:void 0;{const _n=E.verbatimModuleSyntax||E.preserveValueImports&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Xn=Wa(fe.elements,Cc,qE);return _n||gt(Xn)?n.updateNamedImports(fe,Xn):void 0}}function Cc(fe){return!fe.isTypeOnly&&Md(fe)?fe:void 0}function Pc(fe){return E.verbatimModuleSyntax||S.isValueAliasDeclaration(fe)?Xo(fe,Ke,e):void 0}function hc(fe){if(fe.isTypeOnly)return;if(!fe.exportClause||G0(fe.exportClause))return fe;const _n=E.verbatimModuleSyntax||!!fe.moduleSpecifier&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Xn=Bn(fe.exportClause,_i=>Tf(_i,_n),Qre);return Xn?n.updateExportDeclaration(fe,void 0,fe.isTypeOnly,Xn,fe.moduleSpecifier,fe.attributes):void 0}function bl(fe,_n){const Xn=Wa(fe.elements,ma,my);return _n||gt(Xn)?n.updateNamedExports(fe,Xn):void 0}function Tc(fe){return n.updateNamespaceExport(fe,re.checkDefined(Bn(fe.name,Ke,xn)))}function Tf(fe,_n){return G0(fe)?Tc(fe):bl(fe,_n)}function ma(fe){return!fe.isTypeOnly&&(E.verbatimModuleSyntax||S.isValueAliasDeclaration(fe))?fe:void 0}function Bl(fe){return Md(fe)||!Bv(ie)&&S.isTopLevelValueImportEqualsWithEntityName(fe)}function G_(fe){if(fe.isTypeOnly)return;if(Mx(fe)){const Xn=Md(fe);return!Xn&&E.importsNotUsedAsValues===1?Ls(Tn(n.createImportDeclaration(void 0,void 0,fe.moduleReference.expression,void 0),fe),fe):Xn?Xo(fe,Ke,e):void 0}if(!Bl(fe))return;const _n=zoe(n,fe.moduleReference);return _s(_n,7168),Ym(fe)||!u_(fe)?Ls(Tn(n.createVariableStatement(Wa(fe.modifiers,Wr,Mf),n.createVariableDeclarationList([Ls(n.createVariableDeclaration(fe.name,void 0,void 0,_n),fe)])),fe),fe):Ls(xg(fe.name,_n,fe),fe)}function u_(fe){return ae!==void 0&&ul(fe,32)}function xa(fe){return ae===void 0&&ul(fe,32)}function Ym(fe){return xa(fe)&&!ul(fe,2048)}function mf(fe){return xa(fe)&&ul(fe,2048)}function Cp(fe){const _n=n.createAssignment(n.getExternalModuleOrNamespaceExportName(ve,fe,!1,!0),n.getLocalName(fe));lp(_n,tv(fe.name?fe.name.pos:fe.pos,fe.end));const Xn=n.createExpressionStatement(_n);return lp(Xn,tv(-1,fe.end)),Xn}function Yg(fe,_n){fe.push(Cp(_n))}function xg(fe,_n,Xn){return Tn(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(ve,fe,!1,!0),_n)),Xn)}function Wy(fe,_n,Xn){return Tn(n.createAssignment(Og(fe),_n),Xn)}function Og(fe){return n.getNamespaceMemberName(ve,fe,!1,!0)}function pl(fe){const _n=n.getGeneratedNameForNode(fe);return lp(_n,fe.name),_n}function R_(fe){return n.getGeneratedNameForNode(fe)}function og(){Pe&8||(Pe|=8,e.enableSubstitution(80))}function km(){Pe&2||(Pe|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function M_(fe){return Gg(fe).kind===267}function oy(fe){return Gg(fe).kind===266}function bE(fe,_n,Xn){const _i=dt,$o=ie;Nu(_n)&&(ie=_n),Pe&2&&M_(_n)&&(dt|=2),Pe&8&&oy(_n)&&(dt|=8),J(fe,_n,Xn),dt=_i,ie=$o}function hh(fe,_n){return _n=X(fe,_n),fe===1?d_(_n):XE(_n)?qo(_n):_n}function qo(fe){if(Pe&2){const _n=fe.name,Xn=Qi(_n);if(Xn){if(fe.objectAssignmentInitializer){const _i=n.createAssignment(Xn,fe.objectAssignmentInitializer);return Tn(n.createPropertyAssignment(_n,_i),fe)}return Tn(n.createPropertyAssignment(_n,Xn),fe)}}return fe}function d_(fe){switch(fe.kind){case 80:return Ka(fe);case 211:return Pm(fe);case 212:return Ag(fe)}return fe}function Ka(fe){return Qi(fe)||fe}function Qi(fe){if(Pe&dt&&!$g(fe)&&!mI(fe)){const _n=S.getReferencedExportContainer(fe,!1);if(_n&&_n.kind!==312&&(dt&2&&_n.kind===267||dt&8&&_n.kind===266))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(_n),fe),fe)}}function Pm(fe){return x0(fe)}function Ag(fe){return x0(fe)}function va(fe){return fe.replace(/\*\//g,"*_/")}function x0(fe){const _n=Nm(fe);if(_n!==void 0){x6e(fe,_n);const Xn=typeof _n=="string"?n.createStringLiteral(_n):_n<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(Math.abs(_n))):n.createNumericLiteral(_n);if(!E.removeComments){const _i=Gg(fe,Kf);koe(Xn,3,` ${va(Lv(_i))} `)}return Xn}return fe}function Nm(fe){if(!F0(E))return Ac(fe)||Hm(fe)?S.getConstantValue(fe):void 0}function Md(fe){return E.verbatimModuleSyntax||Cs(fe)||(E.preserveValueImports?S.isValueAliasDeclaration(fe):S.isReferencedAliasDeclaration(fe))}}var zHe,oct=G({"src/compiler/transformers/ts.ts"(){md(),zHe=!1}});function f4e(e){const{factory:n,getEmitHelperFactory:i,hoistVariableDeclaration:c,endLexicalEnvironment:u,startLexicalEnvironment:d,resumeLexicalEnvironment:h,addBlockScopedVariable:S}=e,E=e.getEmitResolver(),P=e.getCompilerOptions(),k=iu(P),F=X9(P),$=!!P.experimentalDecorators,J=!F,X=F&&k<9,ie=J||X,ae=k<9,ve=k<99?-1:F?0:3,we=k<9,Fe=we&&k>=2,et=ie||ae||ve===-1,Pe=e.onSubstituteNode;e.onSubstituteNode=Ag;const dt=e.onEmitNode;e.onEmitNode=Pm;let Ie=!1,ct,Ct,Lt,Ze,Ke;const st=new Map,It=new Set;let Yt,Et,at=!1,Qt=!1;return _C(e,nn);function nn(fe){if(fe.isDeclarationFile||(Ke=void 0,Ie=!!(HC(fe)&32),!et&&!Ie))return fe;const _n=Xo(fe,cn,e);return $N(_n,e.readEmitHelpers()),_n}function Rn(fe){switch(fe.kind){case 129:return _a()?void 0:fe;default:return to(fe,Mf)}}function cn(fe){if(!(fe.transformFlags&16777216)&&!(fe.transformFlags&134234112))return fe;switch(fe.kind){case 129:return re.fail("Use `modifierVisitor` instead.");case 263:return Ao(fe);case 231:return ze(fe);case 175:case 172:return re.fail("Use `classElementVisitor` instead.");case 303:return Pn(fe);case 243:return Fr(fe);case 260:return Ki(fe);case 169:return io(fe);case 208:return no(fe);case 277:return os(fe);case 81:return Tr(fe);case 211:return w_(fe);case 212:return Eu(fe);case 224:case 225:return He(fe,!1);case 226:return $r(fe,!1);case 217:return Br(fe,!1);case 213:return Pr(fe);case 244:return dr(fe);case 215:return Bt(fe);case 248:return Hn(fe);case 110:return qe(fe);case 262:case 218:return Jc(void 0,qt,fe);case 176:case 174:case 177:case 178:return Jc(fe,qt,fe);default:return qt(fe)}}function qt(fe){return Xo(fe,cn,e)}function Kt(fe){switch(fe.kind){case 224:case 225:return He(fe,!0);case 226:return $r(fe,!0);case 361:return Ge(fe,!0);case 217:return Br(fe,!0);default:return cn(fe)}}function wr(fe){switch(fe.kind){case 298:return Xo(fe,wr,e);case 233:return yi(fe);default:return cn(fe)}}function Wr(fe){switch(fe.kind){case 210:case 209:return Qi(fe);default:return cn(fe)}}function jt(fe){switch(fe.kind){case 176:return Jc(fe,ki,fe);case 177:case 178:case 174:return Jc(fe,Wl,fe);case 172:return Jc(fe,us,fe);case 175:return Jc(fe,kt,fe);case 167:return $i(fe);case 240:return fe;default:return Am(fe)?Rn(fe):cn(fe)}}function En(fe){switch(fe.kind){case 167:return $i(fe);default:return cn(fe)}}function fr(fe){switch(fe.kind){case 172:return na(fe);case 177:case 178:return jt(fe);default:re.assertMissingNode(fe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Tr(fe){return!ae||dl(fe.parent)?fe:Ls(n.createIdentifier(""),fe)}function Vr(fe){const _n=R_(fe.left);if(_n){const Xn=Bn(fe.right,cn,kr);return Ls(i().createClassPrivateFieldInHelper(_n.brandCheckIdentifier,Xn),fe)}return Xo(fe,cn,e)}function Pn(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function Fr(fe){const _n=Ze;Ze=[];const Xn=Xo(fe,cn,e),_i=gt(Ze)?[Xn,...Ze]:Xn;return Ze=_n,_i}function Ki(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function io(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function no(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function os(fe){return UE(fe,Wn)&&(fe=mE(e,fe,!0,fe.isExportEquals?"":"default")),Xo(fe,cn,e)}function Mo(fe){return gt(Lt)&&(fE(fe)?(Lt.push(fe.expression),fe=n.updateParenthesizedExpression(fe,n.inlineExpressions(Lt))):(Lt.push(fe),fe=n.inlineExpressions(Lt)),Lt=void 0),fe}function $i(fe){const _n=Bn(fe.expression,cn,kr);return n.updateComputedPropertyName(fe,Mo(_n))}function ki(fe){return Yt?mn(fe,Yt):qt(fe)}function gc(fe){return!!(ae||ev(fe)&&HC(fe)&32)}function Wl(fe){if(re.assert(!X2(fe)),!IT(fe)||!gc(fe))return Xo(fe,jt,e);const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),!_n.isValid)return fe;const Xn=au(fe);Xn&&u_().push(n.createAssignment(Xn,n.createFunctionExpression(gi(fe.modifiers,_i=>Mf(_i)&&!pW(_i)&&!EEe(_i)),fe.asteriskToken,Xn,void 0,sm(fe.parameters,cn,e),void 0,ox(fe.body,cn,e))))}function Jc(fe,_n,Xn){if(fe!==Et){const _i=Et;Et=fe;const $o=_n(Xn);return Et=_i,$o}return _n(Xn)}function au(fe){re.assert(Lu(fe.name));const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),_n.kind==="m")return _n.methodName;if(_n.kind==="a"){if(PN(fe))return _n.getterName;if(UC(fe))return _n.setterName}}function qn(){const fe=Bl(),_n=fe.classThis??fe.classConstructor??(Yt==null?void 0:Yt.name);return re.checkDefined(_n)}function za(fe){const _n=MS(fe),Xn=XL(fe),_i=fe.name;let $o=_i,Sc=_i;if(Qf(_i)&&!IA(_i.expression)){const ah=KJ(_i);if(ah)$o=n.updateComputedPropertyName(_i,Bn(_i.expression,cn,kr)),Sc=n.updateComputedPropertyName(_i,ah.left);else{const bm=n.createTempVariable(c);lp(bm,_i.expression);const ay=Bn(_i.expression,cn,kr),yp=n.createAssignment(bm,ay);lp(yp,_i.expression),$o=n.updateComputedPropertyName(_i,yp),Sc=n.updateComputedPropertyName(_i,bm)}}const xs=Wa(fe.modifiers,Rn,Mf),Fs=qJ(n,fe,xs,fe.initializer);Ls(Fs,fe),_s(Fs,3072),lp(Fs,Xn);const Tl=pd(fe)?qn():n.createThis(),fc=JEe(n,fe,xs,$o,Tl);Ls(fc,fe),_y(fc,_n),lp(fc,Xn);const Gd=n.createModifiersFromModifierFlags(aI(xs)),ag=QY(n,fe,Gd,Sc,Tl);return Ls(ag,fe),_s(ag,3072),lp(ag,Xn),Iae([Fs,fc,ag],fr,J_)}function Ia(fe){if(gc(fe)){const _n=R_(fe.name);if(re.assert(_n,"Undeclared private name for property declaration."),!_n.isValid)return fe;if(_n.isStatic&&!ae){const Xn=qi(fe,n.createThis());if(Xn)return n.createClassStaticBlockDeclaration(n.createBlock([Xn],!0))}return}return J&&!pd(fe)&&(Ke!=null&&Ke.data)&&Ke.data.facts&16?n.updatePropertyDeclaration(fe,Wa(fe.modifiers,cn,Am),fe.name,void 0,void 0,void 0):(UE(fe,Wn)&&(fe=mE(e,fe)),n.updatePropertyDeclaration(fe,Wa(fe.modifiers,Rn,Mf),Bn(fe.name,En,qg),void 0,void 0,Bn(fe.initializer,cn,kr)))}function zi(fe){if(ie&&!xb(fe)){const _n=Tc(fe.name,!!fe.initializer||F);if(_n&&u_().push(...vr(_n)),pd(fe)&&!ae){const Xn=qi(fe,n.createThis());if(Xn){const _i=n.createClassStaticBlockDeclaration(n.createBlock([Xn]));return Ls(_i,fe),_y(_i,fe),_y(Xn,{pos:-1,end:-1}),uI(Xn,void 0),cW(Xn,void 0),_i}}return}return n.updatePropertyDeclaration(fe,Wa(fe.modifiers,Rn,Mf),Bn(fe.name,En,qg),void 0,void 0,Bn(fe.initializer,cn,kr))}function na(fe){return re.assert(!X2(fe),"Decorators should already have been transformed and elided."),IT(fe)?Ia(fe):zi(fe)}function _a(){return ve===-1||ve===3&&!!(Ke!=null&&Ke.data)&&!!(Ke.data.facts&16)}function us(fe){return xb(fe)&&(_a()||ev(fe)&&HC(fe)&32)?za(fe):na(fe)}function Au(){return!!Et&&ev(Et)&&GM(Et)&&xb(Gg(Et))}function Qu(fe){if(Au()){const _n=iv(fe);_n.kind===110&&It.add(_n)}}function Cu(fe,_n){return _n=Bn(_n,cn,kr),Qu(_n),yf(fe,_n)}function yf(fe,_n){switch(_y(_n,TA(_n,-1)),fe.kind){case"a":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.getterName);case"m":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.methodName);case"f":return i().createClassPrivateFieldGetHelper(_n,fe.brandCheckIdentifier,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return re.fail("Access helpers should not be created for untransformed private elements");default:re.assertNever(fe,"Unknown private element type")}}function w_(fe){if(Lu(fe.name)){const _n=R_(fe.name);if(_n)return Tn(Ls(Cu(_n,fe.expression),fe),fe)}if(Fe&&Et&&MT(fe)&&xn(fe.name)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=n.createReflectGetCall(Xn,n.createStringLiteralFromNode(fe.name),_n);return Ls($o,fe.expression),Tn($o,fe.expression),$o}}return Xo(fe,cn,e)}function Eu(fe){if(Fe&&Et&&MT(fe)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=n.createReflectGetCall(Xn,Bn(fe.argumentExpression,cn,kr),_n);return Ls($o,fe.expression),Tn($o,fe.expression),$o}}return Xo(fe,cn,e)}function He(fe,_n){if(fe.operator===46||fe.operator===47){const Xn=rg(fe.operand);if(u9(Xn)){let _i;if(_i=R_(Xn.name)){const $o=Bn(Xn.expression,cn,kr);Qu($o);const{readExpression:Sc,initializeExpression:xs}=Mr($o);let Fs=Cu(_i,Sc);const Tl=vk(fe)||_n?void 0:n.createTempVariable(c);return Fs=JY(n,fe,Fs,c,Tl),Fs=Ei(_i,xs||Sc,Fs,64),Ls(Fs,fe),Tn(Fs,fe),Tl&&(Fs=n.createComma(Fs,Tl),Tn(Fs,fe)),Fs}}else if(Fe&&Et&&MT(Xn)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_i,superClassReference:$o,facts:Sc}=Ke.data;if(Sc&1){const xs=bl(Xn);return vk(fe)?n.updatePrefixUnaryExpression(fe,xs):n.updatePostfixUnaryExpression(fe,xs)}if(_i&&$o){let xs,Fs;if(Ac(Xn)?xn(Xn.name)&&(Fs=xs=n.createStringLiteralFromNode(Xn.name)):IA(Xn.argumentExpression)?Fs=xs=Xn.argumentExpression:(Fs=n.createTempVariable(c),xs=n.createAssignment(Fs,Bn(Xn.argumentExpression,cn,kr))),xs&&Fs){let Tl=n.createReflectGetCall($o,Fs,_i);Tn(Tl,Xn);const fc=_n?void 0:n.createTempVariable(c);return Tl=JY(n,fe,Tl,c,fc),Tl=n.createReflectSetCall($o,xs,Tl,_i),Ls(Tl,fe),Tn(Tl,fe),fc&&(Tl=n.createComma(Tl,fc),Tn(Tl,fe)),Tl}}}}return Xo(fe,cn,e)}function Hn(fe){return n.updateForStatement(fe,Bn(fe.initializer,Kt,DS),Bn(fe.condition,cn,kr),Bn(fe.incrementor,Kt,kr),LS(fe.statement,cn,e))}function dr(fe){return n.updateExpressionStatement(fe,Bn(fe.expression,Kt,kr))}function Mr(fe){const _n=Hd(fe)?fe:n.cloneNode(fe);if(fe.kind===110&&It.has(fe)&&It.add(_n),IA(fe))return{readExpression:_n,initializeExpression:void 0};const Xn=n.createTempVariable(c),_i=n.createAssignment(Xn,_n);return{readExpression:Xn,initializeExpression:_i}}function Pr(fe){var _n;if(u9(fe.expression)&&R_(fe.expression.name)){const{thisArg:Xn,target:_i}=n.createCallBinding(fe.expression,c,k);return AN(fe)?n.updateCallChain(fe,n.createPropertyAccessChain(Bn(_i,cn,kr),fe.questionDotToken,"call"),void 0,void 0,[Bn(Xn,cn,kr),...Wa(fe.arguments,cn,kr)]):n.updateCallExpression(fe,n.createPropertyAccessExpression(Bn(_i,cn,kr),"call"),void 0,[Bn(Xn,cn,kr),...Wa(fe.arguments,cn,kr)])}if(Fe&&Et&&MT(fe.expression)&&FQ(Et)&&((_n=Ke==null?void 0:Ke.data)!=null&&_n.classConstructor)){const Xn=n.createFunctionCallCall(Bn(fe.expression,cn,kr),Ke.data.classConstructor,Wa(fe.arguments,cn,kr));return Ls(Xn,fe),Tn(Xn,fe),Xn}return Xo(fe,cn,e)}function Bt(fe){var _n;if(u9(fe.tag)&&R_(fe.tag.name)){const{thisArg:Xn,target:_i}=n.createCallBinding(fe.tag,c,k);return n.updateTaggedTemplateExpression(fe,n.createCallExpression(n.createPropertyAccessExpression(Bn(_i,cn,kr),"bind"),void 0,[Bn(Xn,cn,kr)]),void 0,Bn(fe.template,cn,Uz))}if(Fe&&Et&&MT(fe.tag)&&FQ(Et)&&((_n=Ke==null?void 0:Ke.data)!=null&&_n.classConstructor)){const Xn=n.createFunctionBindCall(Bn(fe.tag,cn,kr),Ke.data.classConstructor,[]);return Ls(Xn,fe),Tn(Xn,fe),n.updateTaggedTemplateExpression(fe,Xn,void 0,Bn(fe.template,cn,Uz))}return Xo(fe,cn,e)}function ln(fe){if(Ke&&st.set(Gg(fe),Ke),ae){if(S$(fe)){const _i=Bn(fe.body.statements[0].expression,cn,kr);return Zv(_i,!0)&&_i.left===_i.right?void 0:_i}if(mj(fe))return Bn(fe.body.statements[0].expression,cn,kr);d();let _n=Jc(fe,_i=>Wa(_i,cn,dl),fe.body.statements);_n=n.mergeLexicalEnvironment(_n,u());const Xn=n.createImmediatelyInvokedArrowFunction(_n);return Ls(rg(Xn.expression),fe),cE(rg(Xn.expression),4),Ls(Xn,fe),Tn(Xn,fe),Xn}}function Wn(fe){if(v0(fe)&&!fe.name){const _n=MQ(fe);return gt(_n,mj)?!1:(ae||!!HC(fe))&>(_n,_i=>Ep(_i)||IT(_i)||ie&&Nae(_i))}return!1}function $r(fe,_n){if(wy(fe)){const Xn=Lt;Lt=void 0,fe=n.updateBinaryExpression(fe,Bn(fe.left,Wr,kr),fe.operatorToken,Bn(fe.right,cn,kr));const _i=gt(Lt)?n.inlineExpressions(uN([...Lt,fe])):fe;return Lt=Xn,_i}if(Zv(fe)){UE(fe,Wn)&&(fe=mE(e,fe),re.assertNode(fe,Zv));const Xn=iv(fe.left,9);if(u9(Xn)){const _i=R_(Xn.name);if(_i)return Tn(Ls(Ei(_i,Xn.expression,fe.right,fe.operatorToken.kind),fe),fe)}else if(Fe&&Et&&MT(fe.left)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_i,superClassReference:$o,facts:Sc}=Ke.data;if(Sc&1)return n.updateBinaryExpression(fe,bl(fe.left),fe.operatorToken,Bn(fe.right,cn,kr));if(_i&&$o){let xs=Hm(fe.left)?Bn(fe.left.argumentExpression,cn,kr):xn(fe.left.name)?n.createStringLiteralFromNode(fe.left.name):void 0;if(xs){let Fs=Bn(fe.right,cn,kr);if(lj(fe.operatorToken.kind)){let fc=xs;IA(xs)||(fc=n.createTempVariable(c),xs=n.createAssignment(fc,xs));const Gd=n.createReflectGetCall($o,fc,_i);Ls(Gd,fe.left),Tn(Gd,fe.left),Fs=n.createBinaryExpression(Gd,RQ(fe.operatorToken.kind),Fs),Tn(Fs,fe)}const Tl=_n?void 0:n.createTempVariable(c);return Tl&&(Fs=n.createAssignment(Tl,Fs),Tn(Tl,fe)),Fs=n.createReflectSetCall($o,xs,Fs,_i),Ls(Fs,fe),Tn(Fs,fe),Tl&&(Fs=n.createComma(Fs,Tl),Tn(Fs,fe)),Fs}}}}return cct(fe)?Vr(fe):Xo(fe,cn,e)}function Ge(fe,_n){const Xn=_n?NQ(fe.elements,Kt):NQ(fe.elements,cn,Kt);return n.updateCommaListExpression(fe,Xn)}function Br(fe,_n){const Xn=_n?Kt:cn,_i=Bn(fe.expression,Xn,kr);return n.updateParenthesizedExpression(fe,_i)}function Ei(fe,_n,Xn,_i){if(_n=Bn(_n,cn,kr),Xn=Bn(Xn,cn,kr),Qu(_n),lj(_i)){const{readExpression:$o,initializeExpression:Sc}=Mr(_n);_n=Sc||$o,Xn=n.createBinaryExpression(yf(fe,$o),RQ(_i),Xn)}switch(_y(_n,TA(_n,-1)),fe.kind){case"a":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,fe.setterName);case"m":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,void 0);case"f":return i().createClassPrivateFieldSetHelper(_n,fe.brandCheckIdentifier,Xn,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return re.fail("Access helpers should not be created for untransformed private elements");default:re.assertNever(fe,"Unknown private element type")}}function Ln(fe){return gi(fe.members,q2e)}function Sr(fe){var _n;let Xn=0;const _i=Gg(fe);Ih(_i)&&yP($,_i)&&(Xn|=1),ae&&(bme(fe)||Sme(fe))&&(Xn|=2);let $o=!1,Sc=!1,xs=!1,Fs=!1;for(const fc of fe.members)pd(fc)?((fc.name&&(Lu(fc.name)||xb(fc))&&ae||xb(fc)&&ve===-1&&!fe.name&&!((_n=fe.emitNode)!=null&&_n.classThis))&&(Xn|=2),(nu(fc)||Ep(fc))&&(we&&fc.transformFlags&16384&&(Xn|=8,Xn&1||(Xn|=2)),Fe&&fc.transformFlags&134217728&&(Xn&1||(Xn|=6)))):Ab(Gg(fc))||(xb(fc)?(Fs=!0,xs||(xs=IT(fc))):IT(fc)?(xs=!0,E.getNodeCheckFlags(fc)&262144&&(Xn|=2)):nu(fc)&&($o=!0,Sc||(Sc=!!fc.initializer)));return(X&&$o||J&&Sc||ae&&xs||ae&&Fs&&ve===-1)&&(Xn|=16),Xn}function yi(fe){var _n;if((((_n=Ke==null?void 0:Ke.data)==null?void 0:_n.facts)||0)&4){const _i=n.createTempVariable(c,!0);return Bl().superClassReference=_i,n.updateExpressionWithTypeArguments(fe,n.createAssignment(_i,Bn(fe.expression,cn,kr)),void 0)}return Xo(fe,cn,e)}function go(fe,_n){var Xn;const _i=Yt,$o=Lt,Sc=Ke;Yt=fe,Lt=void 0,Tf();const xs=HC(fe)&32;if(ae||xs){const fc=i_(fe);if(fc&&xn(fc))G_().data.className=fc;else if((Xn=fe.emitNode)!=null&&Xn.assignedName&&Sd(fe.emitNode.assignedName)){if(fe.emitNode.assignedName.textSourceNode&&xn(fe.emitNode.assignedName.textSourceNode))G_().data.className=fe.emitNode.assignedName.textSourceNode;else if(H2(fe.emitNode.assignedName.text,k)){const Gd=n.createIdentifier(fe.emitNode.assignedName.text);G_().data.className=Gd}}}if(ae){const fc=Ln(fe);gt(fc)&&(G_().data.weakSetName=Og("instances",fc[0].name))}const Fs=Sr(fe);Fs&&(Bl().facts=Fs),Fs&8&&Pc();const Tl=_n(fe,Fs);return ma(),re.assert(Ke===Sc),Yt=_i,Lt=$o,Tl}function Ao(fe){return go(fe,Io)}function Io(fe,_n){var Xn,_i;let $o;if(_n&2)if(ae&&((Xn=fe.emitNode)!=null&&Xn.classThis))Bl().classConstructor=fe.emitNode.classThis,$o=n.createAssignment(fe.emitNode.classThis,n.getInternalName(fe));else{const yp=n.createTempVariable(c,!0);Bl().classConstructor=n.cloneNode(yp),$o=n.createAssignment(yp,n.getInternalName(fe))}(_i=fe.emitNode)!=null&&_i.classThis&&(Bl().classThis=fe.emitNode.classThis);const Sc=E.getNodeCheckFlags(fe)&262144,xs=ul(fe,32),Fs=ul(fe,2048);let Tl=Wa(fe.modifiers,Rn,Mf);const fc=Wa(fe.heritageClauses,wr,Qb),{members:Gd,prologue:ag}=Mt(fe),ah=[];if($o&&u_().unshift($o),gt(Lt)&&ah.push(n.createExpressionStatement(n.inlineExpressions(Lt))),J||ae||HC(fe)&32){const yp=MQ(fe);gt(yp)&&Lr(ah,yp,n.getInternalName(fe))}ah.length>0&&xs&&Fs&&(Tl=Wa(Tl,yp=>Voe(yp)?void 0:yp,Mf),ah.push(n.createExportAssignment(void 0,!1,n.getLocalName(fe,!1,!0))));const bm=Bl().classConstructor;Sc&&bm&&(Cc(),Ct[Nb(fe)]=bm);const ay=n.updateClassDeclaration(fe,Tl,fe.name,void 0,fc,Gd);return ah.unshift(ay),ag&&ah.unshift(n.createExpressionStatement(ag)),ah}function ze(fe){return go(fe,Ce)}function Ce(fe,_n){var Xn,_i,$o;const Sc=!!(_n&1),xs=MQ(fe),Fs=E.getNodeCheckFlags(fe),Tl=Fs&262144;let fc;function Gd(){var Xp;if(ae&&((Xp=fe.emitNode)!=null&&Xp.classThis))return Bl().classConstructor=fe.emitNode.classThis;const r1=Fs&32768,sg=n.createTempVariable(r1?S:c,!0);return Bl().classConstructor=n.cloneNode(sg),sg}(Xn=fe.emitNode)!=null&&Xn.classThis&&(Bl().classThis=fe.emitNode.classThis),_n&2&&(fc??(fc=Gd()));const ag=Wa(fe.modifiers,Rn,Mf),ah=Wa(fe.heritageClauses,wr,Qb),{members:bm,prologue:ay}=Mt(fe),yp=n.updateClassExpression(fe,ag,fe.name,void 0,ah,bm),Cg=[];if(ay&&Cg.push(ay),(ae||HC(fe)&32)&>(xs,Xp=>Ep(Xp)||IT(Xp)||ie&&Nae(Xp))||gt(Lt))if(Sc)re.assertIsDefined(Ze,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(Lt)&&Oi(Ze,Vn(Lt,n.createExpressionStatement)),gt(xs)&&Lr(Ze,xs,((_i=fe.emitNode)==null?void 0:_i.classThis)??n.getInternalName(fe)),fc?Cg.push(n.createAssignment(fc,yp)):ae&&(($o=fe.emitNode)!=null&&$o.classThis)?Cg.push(n.createAssignment(fe.emitNode.classThis,yp)):Cg.push(yp);else{if(fc??(fc=Gd()),Tl){Cc();const Xp=n.cloneNode(fc);Xp.emitNode.autoGenerate.flags&=-9,Ct[Nb(fe)]=Xp}Cg.push(n.createAssignment(fc,yp)),Oi(Cg,Lt),Oi(Cg,vo(xs,fc)),Cg.push(n.cloneNode(fc))}else Cg.push(yp);return Cg.length>1&&(cE(yp,131072),Cg.forEach(lb)),n.inlineExpressions(Cg)}function kt(fe){if(!ae)return Xo(fe,cn,e)}function qe(fe){if(we&&Et&&Ep(Et)&&(Ke!=null&&Ke.data)){const{classThis:_n,classConstructor:Xn}=Ke.data;return _n??Xn??fe}return fe}function Mt(fe){const _n=!!(HC(fe)&32);if(ae||Ie){for(const xs of fe.members)if(IT(xs))if(gc(xs))Wy(xs,xs.name,xa);else{const Fs=G_();Ik(Fs,xs.name,{kind:"untransformed"})}if(ae&>(Ln(fe))&&ge(),_a()){for(const xs of fe.members)if(xb(xs)){const Fs=n.getGeneratedPrivateNameForNode(xs.name,void 0,"_accessor_storage");if(ae||_n&&ev(xs))Wy(xs,Fs,Ym);else{const Tl=G_();Ik(Tl,Fs,{kind:"untransformed"})}}}}let Xn=Wa(fe.members,jt,J_),_i;gt(Xn,Lh)||(_i=mn(void 0,fe));let $o,Sc;if(!ae&>(Lt)){let xs=n.createExpressionStatement(n.inlineExpressions(Lt));if(xs.transformFlags&134234112){const Tl=n.createTempVariable(c),fc=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([xs]));$o=n.createAssignment(Tl,fc),xs=n.createExpressionStatement(n.createCallExpression(Tl,void 0,[]))}const Fs=n.createBlock([xs]);Sc=n.createClassStaticBlockDeclaration(Fs),Lt=void 0}if(_i||Sc){let xs;const Fs=lr(Xn,S$),Tl=lr(Xn,mj);xs=ur(xs,Fs),xs=ur(xs,Tl),xs=ur(xs,_i),xs=ur(xs,Sc);const fc=Fs||Tl?gi(Xn,Gd=>Gd!==Fs&&Gd!==Tl):Xn;xs=Oi(xs,fc),Xn=Tn(n.createNodeArray(xs),fe.members)}return{members:Xn,prologue:$o}}function ge(){const{weakSetName:fe}=G_().data;re.assert(fe,"weakSetName should be set in private identifier environment"),u_().push(n.createAssignment(fe,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}function mn(fe,_n){if(fe=Bn(fe,cn,Lh),!(Ke!=null&&Ke.data)||!(Ke.data.facts&16))return fe;const Xn=YC(_n),_i=!!(Xn&&iv(Xn.expression).kind!==106),$o=sm(fe?fe.parameters:void 0,cn,e),Sc=Nn(_n,fe,_i);return Sc?fe?(re.assert($o),n.updateConstructorDeclaration(fe,void 0,$o,Sc)):lb(Ls(Tn(n.createConstructorDeclaration(void 0,$o??[],Sc),fe||_n),fe)):fe}function Jn(fe,_n,Xn,_i,$o,Sc,xs){const Fs=_i[$o],Tl=_n[Fs];if(Oi(fe,Wa(_n,cn,dl,Xn,Fs-Xn)),Xn=Fs+1,My(Tl)){const fc=[];Jn(fc,Tl.tryBlock.statements,0,_i,$o+1,Sc,xs);const Gd=n.createNodeArray(fc);Tn(Gd,Tl.tryBlock.statements),fe.push(n.updateTryStatement(Tl,n.updateBlock(Tl.tryBlock,fc),Bn(Tl.catchClause,cn,A3),Bn(Tl.finallyBlock,cn,Ou)))}else{for(Oi(fe,Wa(_n,cn,dl,Fs,1));Xn<_n.length;){const fc=_n[Xn];if(DT(Gg(fc),xs))Xn++;else break}Oi(fe,Sc)}Oi(fe,Wa(_n,cn,dl,Xn))}function Nn(fe,_n,Xn){const _i=b$(fe,!1,!1);let $o=_i;F||($o=gi($o,bm=>!!bm.initializer||Lu(bm.name)||e_(bm)));const Sc=Ln(fe),xs=gt($o)||gt(Sc);if(!_n&&!xs)return ox(void 0,cn,e);h();const Fs=!_n&&Xn;let Tl=0,fc=[];const Gd=[],ag=n.createThis();if(hc(Gd,Sc,ag),_n){const bm=gi(_i,yp=>DT(Gg(yp),_n)),ay=gi($o,yp=>!DT(Gg(yp),_n));Lr(Gd,bm,ag),Lr(Gd,ay,ag)}else Lr(Gd,$o,ag);if(_n!=null&&_n.body){Tl=n.copyPrologue(_n.body.statements,fc,!1,cn);const bm=mme(_n.body.statements,Tl);if(bm.length)Jn(fc,_n.body.statements,Tl,bm,0,Gd,_n);else{for(;Tl<_n.body.statements.length;){const ay=_n.body.statements[Tl];if(DT(Gg(ay),_n))Tl++;else break}Oi(fc,Gd),Oi(fc,Wa(_n.body.statements,cn,dl,Tl))}}else Fs&&fc.push(n.createExpressionStatement(n.createCallExpression(n.createSuper(),void 0,[n.createSpreadElement(n.createIdentifier("arguments"))]))),Oi(fc,Gd);if(fc=n.mergeLexicalEnvironment(fc,u()),fc.length===0&&!_n)return;const ah=_n!=null&&_n.body&&_n.body.statements.length>=fc.length?_n.body.multiLine??fc.length>0:fc.length>0;return Tn(n.createBlock(Tn(n.createNodeArray(fc),_n?_n.body.statements:fe.members),ah),_n?_n.body:void 0)}function Lr(fe,_n,Xn){for(const _i of _n){if(pd(_i)&&!ae)continue;const $o=qi(_i,Xn);$o&&fe.push($o)}}function qi(fe,_n){const Xn=Ep(fe)?Jc(fe,ln,fe):Ro(fe,_n);if(!Xn)return;const _i=n.createExpressionStatement(Xn);Ls(_i,fe),cE(_i,wd(fe)&3072),_y(_i,fe);const $o=Gg(fe);return Os($o)?(lp(_i,$o),aW(_i)):lp(_i,Db(fe)),uI(Xn,void 0),cW(Xn,void 0),e_($o)&&cE(_i,3072),_i}function vo(fe,_n){const Xn=[];for(const _i of fe){const $o=Ep(_i)?Jc(_i,ln,_i):Jc(_i,()=>Ro(_i,_n),void 0);$o&&(lb($o),Ls($o,_i),cE($o,wd(_i)&3072),lp($o,Db(_i)),_y($o,_i),Xn.push($o))}return Xn}function Ro(fe,_n){var Xn;const _i=Et,$o=Ts(fe,_n);return $o&&ev(fe)&&((Xn=Ke==null?void 0:Ke.data)!=null&&Xn.facts)&&(Ls($o,fe),cE($o,4),lp($o,XL(fe.name)),st.set(Gg(fe),Ke)),Et=_i,$o}function Ts(fe,_n){const Xn=!F;UE(fe,Wn)&&(fe=mE(e,fe));const _i=e_(fe)?n.getGeneratedPrivateNameForNode(fe.name):Qf(fe.name)&&!IA(fe.name.expression)?n.updateComputedPropertyName(fe.name,n.getGeneratedNameForNode(fe.name)):fe.name;if(ev(fe)&&(Et=fe),Lu(_i)&&gc(fe)){const xs=R_(_i);if(xs)return xs.kind==="f"?xs.isStatic?act(n,xs.variableName,Bn(fe.initializer,cn,kr)):OQ(n,_n,Bn(fe.initializer,cn,kr),xs.brandCheckIdentifier):void 0;re.fail("Undeclared private name for property declaration.")}if((Lu(_i)||ev(fe))&&!fe.initializer)return;const $o=Gg(fe);if(ul($o,64))return;let Sc=Bn(fe.initializer,cn,kr);if(DT($o,$o.parent)&&xn(_i)){const xs=n.cloneNode(_i);Sc?(fE(Sc)&&rv(Sc.expression)&&uW(Sc.expression.left,"___runInitializers")&&Z7(Sc.expression.right)&&S1(Sc.expression.right.expression)&&(Sc=Sc.expression.left),Sc=n.inlineExpressions([Sc,xs])):Sc=xs,_s(_i,3168),lp(xs,$o.name),_s(xs,3072)}else Sc??(Sc=n.createVoidZero());if(Xn||Lu(_i)){const xs=sF(n,_n,_i,_i);return cE(xs,1024),n.createAssignment(xs,Sc)}else{const xs=Qf(_i)?_i.expression:xn(_i)?n.createStringLiteral(Ic(_i.escapedText)):_i,Fs=n.createPropertyDescriptor({value:Sc,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(_n,xs,Fs)}}function Cc(){ct&1||(ct|=1,e.enableSubstitution(80),Ct=[])}function Pc(){ct&2||(ct|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function hc(fe,_n,Xn){if(!ae||!gt(_n))return;const{weakSetName:_i}=G_().data;re.assert(_i,"weakSetName should be set in private identifier environment"),fe.push(n.createExpressionStatement(sct(n,Xn,_i)))}function bl(fe){return Ac(fe)?n.updatePropertyAccessExpression(fe,n.createVoidZero(),fe.name):n.updateElementAccessExpression(fe,n.createVoidZero(),Bn(fe.argumentExpression,cn,kr))}function Tc(fe,_n){if(Qf(fe)){const Xn=KJ(fe),_i=Bn(fe.expression,cn,kr),$o=h2(_i),Sc=IA($o);if(!(!!Xn||Zv($o)&&$g($o.left))&&!Sc&&_n){const Fs=n.getGeneratedNameForNode(fe);return E.getNodeCheckFlags(fe)&32768?S(Fs):c(Fs),n.createAssignment(Fs,_i)}return Sc||xn($o)?void 0:_i}}function Tf(){Ke={previous:Ke,data:void 0}}function ma(){Ke=Ke==null?void 0:Ke.previous}function Bl(){return re.assert(Ke),Ke.data??(Ke.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function G_(){return re.assert(Ke),Ke.privateEnv??(Ke.privateEnv=hme({className:void 0,weakSetName:void 0}))}function u_(){return Lt??(Lt=[])}function xa(fe,_n,Xn,_i,$o,Sc,xs){xb(fe)?xg(fe,_n,Xn,_i,$o,Sc):nu(fe)?Ym(fe,_n,Xn,_i,$o,Sc):tm(fe)?mf(fe,_n,Xn,_i,$o,Sc):lE(fe)?Cp(fe,_n,Xn,_i,$o,Sc,xs):Xb(fe)&&Yg(fe,_n,Xn,_i,$o,Sc,xs)}function Ym(fe,_n,Xn,_i,$o,Sc,xs){if($o){const Fs=re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"),Tl=pl(_n);Ik(_i,_n,{kind:"f",isStatic:!0,brandCheckIdentifier:Fs,variableName:Tl,isValid:Sc})}else{const Fs=pl(_n);Ik(_i,_n,{kind:"f",isStatic:!1,brandCheckIdentifier:Fs,isValid:Sc}),u_().push(n.createAssignment(Fs,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function mf(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");Ik(_i,_n,{kind:"m",methodName:Fs,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function Cp(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_get"),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");(xs==null?void 0:xs.kind)==="a"&&xs.isStatic===$o&&!xs.getterName?xs.getterName=Fs:Ik(_i,_n,{kind:"a",getterName:Fs,setterName:void 0,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function Yg(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_set"),Tl=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");(xs==null?void 0:xs.kind)==="a"&&xs.isStatic===$o&&!xs.setterName?xs.setterName=Fs:Ik(_i,_n,{kind:"a",getterName:void 0,setterName:Fs,brandCheckIdentifier:Tl,isStatic:$o,isValid:Sc})}function xg(fe,_n,Xn,_i,$o,Sc,xs){const Fs=pl(_n,"_get"),Tl=pl(_n,"_set"),fc=$o?re.checkDefined(Xn.classThis??Xn.classConstructor,"classConstructor should be set in private identifier environment"):re.checkDefined(_i.data.weakSetName,"weakSetName should be set in private identifier environment");Ik(_i,_n,{kind:"a",getterName:Fs,setterName:Tl,brandCheckIdentifier:fc,isStatic:$o,isValid:Sc})}function Wy(fe,_n,Xn){const _i=Bl(),$o=G_(),Sc=K2e($o,_n),xs=ev(fe),Fs=!GHe(_n)&&Sc===void 0;Xn(fe,_n,_i,$o,xs,Fs,Sc)}function Og(fe,_n,Xn){const{className:_i}=G_().data,$o=_i?{prefix:"_",node:_i,suffix:"_"}:"_",Sc=typeof fe=="object"?n.getGeneratedNameForNode(fe,24,$o,Xn):typeof fe=="string"?n.createUniqueName(fe,16,$o,Xn):n.createTempVariable(void 0,!0,$o,Xn);return E.getNodeCheckFlags(_n)&32768?S(Sc):c(Sc),Sc}function pl(fe,_n){const Xn=tH(fe);return Og((Xn==null?void 0:Xn.substring(1))??fe,fe,_n)}function R_(fe){const _n=yme(Ke,fe);return(_n==null?void 0:_n.kind)==="untransformed"?void 0:_n}function og(fe){const _n=n.getGeneratedNameForNode(fe),Xn=R_(fe.name);if(!Xn)return Xo(fe,cn,e);let _i=fe.expression;return(Q1(fe)||MT(fe)||!L3(fe.expression))&&(_i=n.createTempVariable(c,!0),u_().push(n.createBinaryExpression(_i,64,Bn(fe.expression,cn,kr)))),n.createAssignmentTargetWrapper(_n,Ei(Xn,_i,_n,64))}function km(fe){if(el(fe)||Ed(fe))return Qi(fe);if(u9(fe))return og(fe);if(Fe&&Et&&MT(fe)&&FQ(Et)&&(Ke!=null&&Ke.data)){const{classConstructor:_n,superClassReference:Xn,facts:_i}=Ke.data;if(_i&1)return bl(fe);if(_n&&Xn){const $o=Hm(fe)?Bn(fe.argumentExpression,cn,kr):xn(fe.name)?n.createStringLiteralFromNode(fe.name):void 0;if($o){const Sc=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(Sc,n.createReflectSetCall(Xn,$o,Sc,_n))}}}return Xo(fe,cn,e)}function M_(fe){if(UE(fe,Wn)&&(fe=mE(e,fe)),Zv(fe,!0)){const _n=km(fe.left),Xn=Bn(fe.right,cn,kr);return n.updateBinaryExpression(fe,_n,fe.operatorToken,Xn)}return km(fe)}function oy(fe){if(ib(fe.expression)){const _n=km(fe.expression);return n.updateSpreadElement(fe,_n)}return Xo(fe,cn,e)}function bE(fe){if(p9(fe)){if(WT(fe))return oy(fe);if(!cb(fe))return M_(fe)}return Xo(fe,cn,e)}function hh(fe){const _n=Bn(fe.name,cn,qg);if(Zv(fe.initializer,!0)){const Xn=M_(fe.initializer);return n.updatePropertyAssignment(fe,_n,Xn)}if(ib(fe.initializer)){const Xn=km(fe.initializer);return n.updatePropertyAssignment(fe,_n,Xn)}return Xo(fe,cn,e)}function qo(fe){return UE(fe,Wn)&&(fe=mE(e,fe)),Xo(fe,cn,e)}function d_(fe){if(ib(fe.expression)){const _n=km(fe.expression);return n.updateSpreadAssignment(fe,_n)}return Xo(fe,cn,e)}function Ka(fe){return re.assertNode(fe,d9),xA(fe)?d_(fe):XE(fe)?qo(fe):tl(fe)?hh(fe):Xo(fe,cn,e)}function Qi(fe){return Ed(fe)?n.updateArrayLiteralExpression(fe,Wa(fe.elements,bE,kr)):n.updateObjectLiteralExpression(fe,Wa(fe.properties,Ka,DN))}function Pm(fe,_n,Xn){const _i=Gg(_n),$o=st.get(_i);if($o){const Sc=Ke,xs=Qt;Ke=$o,Qt=at,at=!Ep(_i)||!(HC(_i)&32),dt(fe,_n,Xn),at=Qt,Qt=xs,Ke=Sc;return}switch(_n.kind){case 218:if($m(_i)||wd(_n)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Sc=Ke,xs=Qt;Ke=void 0,Qt=at,at=!1,dt(fe,_n,Xn),at=Qt,Qt=xs,Ke=Sc;return}case 167:{const Sc=Ke,xs=at;Ke=Ke==null?void 0:Ke.previous,at=Qt,dt(fe,_n,Xn),at=xs,Ke=Sc;return}}dt(fe,_n,Xn)}function Ag(fe,_n){return _n=Pe(fe,_n),fe===1?va(_n):_n}function va(fe){switch(fe.kind){case 80:return Nm(fe);case 110:return x0(fe)}return fe}function x0(fe){if(ct&2&&(Ke!=null&&Ke.data)&&!It.has(fe)){const{facts:_n,classConstructor:Xn,classThis:_i}=Ke.data,$o=at?_i??Xn:Xn;if($o)return Tn(Ls(n.cloneNode($o),fe),fe);if(_n&1&&$)return n.createParenthesizedExpression(n.createVoidZero())}return fe}function Nm(fe){return Md(fe)||fe}function Md(fe){if(ct&1&&E.getNodeCheckFlags(fe)&536870912){const _n=E.getReferencedValueDeclaration(fe);if(_n){const Xn=Ct[_n.id];if(Xn){const _i=n.cloneNode(Xn);return lp(_i,fe),_y(_i,fe),_i}}}}}function act(e,n,i){return e.createAssignment(n,e.createObjectLiteralExpression([e.createPropertyAssignment("value",i||e.createVoidZero())]))}function OQ(e,n,i,c){return e.createCallExpression(e.createPropertyAccessExpression(c,"set"),void 0,[n,i||e.createVoidZero()])}function sct(e,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"add"),void 0,[n])}function GHe(e){return!s7(e)&&e.escapedText==="#constructor"}function cct(e){return Lu(e.left)&&e.operatorToken.kind===103}function jHe(e){return nu(e)&&ev(e)}function FQ(e){return Ep(e)||jHe(e)}var VHe=G({"src/compiler/transformers/classFields.ts"(){md()}});function _4e(e){const{factory:n,hoistVariableDeclaration:i}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),d=iu(u),h=hv(u,"strictNullChecks");let S,E;return{serializeTypeNode:(Lt,Ze)=>P(Lt,ie,Ze),serializeTypeOfNode:(Lt,Ze)=>P(Lt,F,Ze),serializeParameterTypesOfNode:(Lt,Ze,Ke)=>P(Lt,$,Ze,Ke),serializeReturnTypeOfNode:(Lt,Ze)=>P(Lt,X,Ze)};function P(Lt,Ze,Ke,st){const It=S,Yt=E;S=Lt.currentLexicalScope,E=Lt.currentNameScope;const Et=st===void 0?Ze(Ke):Ze(Ke,st);return S=It,E=Yt,Et}function k(Lt){const Ze=c.getAllAccessorDeclarations(Lt);return Ze.setAccessor&&Lde(Ze.setAccessor)||Ze.getAccessor&&kS(Ze.getAccessor)}function F(Lt){switch(Lt.kind){case 172:case 169:return ie(Lt.type);case 178:case 177:return ie(k(Lt));case 263:case 231:case 174:return n.createIdentifier("Function");default:return n.createVoidZero()}}function $(Lt,Ze){const Ke=Fl(Lt)?sC(Lt):F_(Lt)&&y2(Lt.body)?Lt:void 0,st=[];if(Ke){const It=J(Ke,Ze),Yt=It.length;for(let Et=0;EtIt.parent&&Q7(It.parent)&&(It.parent.trueType===It||It.parent.falseType===It)))return n.createIdentifier("Object");const Ke=Pe(Lt.typeName),st=n.createTempVariable(i);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(st,Ke),"function"),void 0,st,void 0,n.createIdentifier("Object"));case 1:return dt(Lt.typeName);case 2:return n.createVoidZero();case 4:return Ct("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return Ct("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return re.assertNever(Ze)}}function et(Lt,Ze){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(Lt),n.createStringLiteral("undefined")),Ze)}function Pe(Lt){if(Lt.kind===80){const st=dt(Lt);return et(st,st)}if(Lt.left.kind===80)return et(dt(Lt.left),dt(Lt));const Ze=Pe(Lt.left),Ke=n.createTempVariable(i);return n.createLogicalAnd(n.createLogicalAnd(Ze.left,n.createStrictInequality(n.createAssignment(Ke,Ze.right),n.createVoidZero())),n.createPropertyAccessExpression(Ke,Lt.right))}function dt(Lt){switch(Lt.kind){case 80:const Ze=kl(Tn(Ck.cloneNode(Lt),Lt),Lt.parent);return Ze.original=void 0,kl(Ze,__(S)),Ze;case 166:return Ie(Lt)}}function Ie(Lt){return n.createPropertyAccessExpression(dt(Lt.left),Lt.right)}function ct(Lt){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(Lt),"function"),void 0,n.createIdentifier(Lt),void 0,n.createIdentifier("Object"))}function Ct(Lt,Ze){return dVoe(_a)||Jh(_a)?void 0:_a,Am),os=Db(Pn),Mo=wr(Pn),$i=h<2?n.getInternalName(Pn,!1,!0):n.getLocalName(Pn,!1,!0),ki=Wa(Pn.heritageClauses,F,Qb);let gc=Wa(Pn.members,F,J_),Wl=[];({members:gc,decorationStatements:Wl}=ae(Pn,gc));const Jc=h>=9&&!!Mo&>(gc,_a=>nu(_a)&&ul(_a,256)||Ep(_a));Jc&&(gc=Tn(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment(Mo,n.createThis()))])),...gc]),gc));const au=n.createClassExpression(no,Fr&&$g(Fr)?void 0:Fr,void 0,ki,gc);Ls(au,Pn),Tn(au,os);const qn=Mo&&!Jc?n.createAssignment(Mo,au):au,za=n.createVariableDeclaration($i,void 0,void 0,qn);Ls(za,Pn);const Ia=n.createVariableDeclarationList([za],1),zi=n.createVariableStatement(void 0,Ia);Ls(zi,Pn),Tn(zi,os),_y(zi,Pn);const na=[zi];if(Oi(na,Wl),Qt(na,Pn),Ki)if(io){const _a=n.createExportDefault($i);na.push(_a)}else{const _a=n.createExternalModuleExport(n.getDeclarationName(Pn));na.push(_a)}return na}function Fe(Pn){return n.updateClassExpression(Pn,Wa(Pn.modifiers,k,Mf),Pn.name,void 0,Wa(Pn.heritageClauses,F,Qb),Wa(Pn.members,F,J_))}function et(Pn){return n.updateConstructorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),Wa(Pn.parameters,F,Os),Bn(Pn.body,F,Ou))}function Pe(Pn,Fr){return Pn!==Fr&&(_y(Pn,Fr),lp(Pn,Db(Fr))),Pn}function dt(Pn){return Pe(n.updateMethodDeclaration(Pn,Wa(Pn.modifiers,k,Mf),Pn.asteriskToken,re.checkDefined(Bn(Pn.name,F,qg)),void 0,void 0,Wa(Pn.parameters,F,Os),void 0,Bn(Pn.body,F,Ou)),Pn)}function Ie(Pn){return Pe(n.updateGetAccessorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),Wa(Pn.parameters,F,Os),void 0,Bn(Pn.body,F,Ou)),Pn)}function ct(Pn){return Pe(n.updateSetAccessorDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),Wa(Pn.parameters,F,Os),Bn(Pn.body,F,Ou)),Pn)}function Ct(Pn){if(!(Pn.flags&33554432||ul(Pn,128)))return Pe(n.updatePropertyDeclaration(Pn,Wa(Pn.modifiers,k,Mf),re.checkDefined(Bn(Pn.name,F,qg)),void 0,void 0,Bn(Pn.initializer,F,kr)),Pn)}function Lt(Pn){const Fr=n.updateParameterDeclaration(Pn,t4(n,Pn.modifiers),Pn.dotDotDotToken,re.checkDefined(Bn(Pn.name,F,lR)),void 0,void 0,Bn(Pn.initializer,F,kr));return Fr!==Pn&&(_y(Fr,Pn),Tn(Fr,Db(Pn)),lp(Fr,Db(Pn)),_s(Fr.name,64)),Fr}function Ze(Pn){return uW(Pn.expression,"___metadata")}function Ke(Pn){if(!Pn)return;const{false:Fr,true:Ki}=H5(Pn.decorators,Ze),io=[];return Oi(io,Vn(Fr,Rn)),Oi(io,ea(Pn.parameters,cn)),Oi(io,Vn(Ki,Rn)),io}function st(Pn,Fr,Ki){Oi(Pn,Vn(Et(Fr,Ki),io=>n.createExpressionStatement(io)))}function It(Pn,Fr,Ki){return Z1(!0,Pn,Ki)&&Fr===pd(Pn)}function Yt(Pn,Fr){return gi(Pn.members,Ki=>It(Ki,Fr,Pn))}function Et(Pn,Fr){const Ki=Yt(Pn,Fr);let io;for(const no of Ki)io=ur(io,at(Pn,no));return io}function at(Pn,Fr){const Ki=wae(Fr,Pn,!0),io=Ke(Ki);if(!io)return;const no=jt(Pn,Fr),os=qt(Fr,!ul(Fr,128)),Mo=h>0?nu(Fr)&&!e_(Fr)?n.createVoidZero():n.createNull():void 0,$i=i().createDecorateHelper(io,no,os,Mo);return _s($i,3072),lp($i,Db(Fr)),$i}function Qt(Pn,Fr){const Ki=nn(Fr);Ki&&Pn.push(Ls(n.createExpressionStatement(Ki),Fr))}function nn(Pn){const Fr=gme(Pn),Ki=Ke(Fr);if(!Ki)return;const io=E&&E[Nb(Pn)],no=h<2?n.getInternalName(Pn,!1,!0):n.getDeclarationName(Pn,!1,!0),os=i().createDecorateHelper(Ki,no),Mo=n.createAssignment(no,io?n.createAssignment(io,os):os);return _s(Mo,3072),lp(Mo,Db(Pn)),Mo}function Rn(Pn){return re.checkDefined(Bn(Pn.expression,F,kr))}function cn(Pn,Fr){let Ki;if(Pn){Ki=[];for(const io of Pn){const no=i().createParamHelper(Rn(io),Fr);Tn(no,io.expression),_s(no,3072),Ki.push(no)}}return Ki}function qt(Pn,Fr){const Ki=Pn.name;return Lu(Ki)?n.createIdentifier(""):Qf(Ki)?Fr&&!IA(Ki.expression)?n.getGeneratedNameForNode(Ki):Ki.expression:xn(Ki)?n.createStringLiteral(Kr(Ki)):n.cloneNode(Ki)}function Kt(){E||(e.enableSubstitution(80),E=[])}function wr(Pn){if(u.getNodeCheckFlags(Pn)&262144){Kt();const Fr=n.createUniqueName(Pn.name&&!$g(Pn.name)?Kr(Pn.name):"default");return E[Nb(Pn)]=Fr,c(Fr),Fr}}function Wr(Pn){return n.createPropertyAccessExpression(n.getDeclarationName(Pn),"prototype")}function jt(Pn,Fr){return pd(Fr)?n.getDeclarationName(Pn):Wr(Pn)}function En(Pn,Fr){return Fr=S(Pn,Fr),Pn===1?fr(Fr):Fr}function fr(Pn){switch(Pn.kind){case 80:return Tr(Pn)}return Pn}function Tr(Pn){return Vr(Pn)??Pn}function Vr(Pn){if(E&&u.getNodeCheckFlags(Pn)&536870912){const Fr=u.getReferencedValueDeclaration(Pn);if(Fr){const Ki=E[Fr.id];if(Ki){const io=n.cloneNode(Ki);return lp(io,Pn),_y(io,Pn),io}}}}}var lct=G({"src/compiler/transformers/legacyDecorators.ts"(){md()}});function Z2e(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=iu(e.getCompilerOptions());let S,E,P,k,F,$;return _C(e,J);function J(Ce){S=void 0,$=!1;const kt=Xo(Ce,ct,e);return $N(kt,e.readEmitHelpers()),$&&(CG(kt,32),$=!1),kt}function X(){switch(E=void 0,P=void 0,k=void 0,S==null?void 0:S.kind){case"class":E=S.classInfo;break;case"class-element":E=S.next.classInfo,P=S.classThis,k=S.classSuper;break;case"name":const Ce=S.next.next.next;(Ce==null?void 0:Ce.kind)==="class-element"&&(E=Ce.next.classInfo,P=Ce.classThis,k=Ce.classSuper);break}}function ie(Ce){S={kind:"class",next:S,classInfo:Ce,savedPendingExpressions:F},F=void 0,X()}function ae(){re.assert((S==null?void 0:S.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${S==null?void 0:S.kind}' instead.`),F=S.savedPendingExpressions,S=S.next,X()}function ve(Ce){var kt,qe;re.assert((S==null?void 0:S.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${S==null?void 0:S.kind}' instead.`),S={kind:"class-element",next:S},(Ep(Ce)||nu(Ce)&&ev(Ce))&&(S.classThis=(kt=S.next.classInfo)==null?void 0:kt.classThis,S.classSuper=(qe=S.next.classInfo)==null?void 0:qe.classSuper),X()}function we(){var Ce;re.assert((S==null?void 0:S.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${S==null?void 0:S.kind}' instead.`),re.assert(((Ce=S.next)==null?void 0:Ce.kind)==="class","Incorrect value for top.next.kind.",()=>{var kt;return`Expected top.next.kind to be 'class' but got '${(kt=S.next)==null?void 0:kt.kind}' instead.`}),S=S.next,X()}function Fe(){re.assert((S==null?void 0:S.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${S==null?void 0:S.kind}' instead.`),S={kind:"name",next:S},X()}function et(){re.assert((S==null?void 0:S.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${S==null?void 0:S.kind}' instead.`),S=S.next,X()}function Pe(){(S==null?void 0:S.kind)==="other"?(re.assert(!F),S.depth++):(S={kind:"other",next:S,depth:0,savedPendingExpressions:F},F=void 0,X())}function dt(){re.assert((S==null?void 0:S.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${S==null?void 0:S.kind}' instead.`),S.depth>0?(re.assert(!F),S.depth--):(F=S.savedPendingExpressions,S=S.next,X())}function Ie(Ce){return!!(Ce.transformFlags&33554432)||!!P&&!!(Ce.transformFlags&16384)||!!P&&!!k&&!!(Ce.transformFlags&134217728)}function ct(Ce){if(!Ie(Ce))return Ce;switch(Ce.kind){case 170:return re.fail("Use `modifierVisitor` instead.");case 263:return nn(Ce);case 231:return Rn(Ce);case 176:case 172:case 175:return re.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return os(Ce);case 226:return Wl(Ce,!1);case 303:return zi(Ce);case 260:return na(Ce);case 208:return _a(Ce);case 277:return dr(Ce);case 110:return Pn(Ce);case 248:return ki(Ce);case 244:return gc(Ce);case 361:return au(Ce,!1);case 217:return Mr(Ce,!1);case 360:return Pr(Ce,!1);case 213:return Fr(Ce);case 215:return Ki(Ce);case 224:case 225:return Jc(Ce,!1);case 211:return io(Ce);case 212:return no(Ce);case 167:return Ia(Ce);case 174:case 178:case 177:case 218:case 262:{Pe();const kt=Xo(Ce,Ct,e);return dt(),kt}default:return Xo(Ce,Ct,e)}}function Ct(Ce){switch(Ce.kind){case 170:return;default:return ct(Ce)}}function Lt(Ce){switch(Ce.kind){case 170:return;default:return Ce}}function Ze(Ce){switch(Ce.kind){case 176:return Kt(Ce);case 174:return jt(Ce);case 177:return En(Ce);case 178:return fr(Ce);case 172:return Vr(Ce);case 175:return Tr(Ce);default:return ct(Ce)}}function Ke(Ce){switch(Ce.kind){case 224:case 225:return Jc(Ce,!0);case 226:return Wl(Ce,!0);case 361:return au(Ce,!0);case 217:return Mr(Ce,!0);default:return ct(Ce)}}function st(Ce){let kt=Ce.name&&xn(Ce.name)&&!$g(Ce.name)?Kr(Ce.name):Ce.name&&Lu(Ce.name)&&!$g(Ce.name)?Kr(Ce.name).slice(1):Ce.name&&Sd(Ce.name)&&H2(Ce.name.text,99)?Ce.name.text:Fl(Ce)?"class":"member";return PN(Ce)&&(kt=`get_${kt}`),UC(Ce)&&(kt=`set_${kt}`),Ce.name&&Lu(Ce.name)&&(kt=`private_${kt}`),pd(Ce)&&(kt=`static_${kt}`),"_"+kt}function It(Ce,kt){return n.createUniqueName(`${st(Ce)}_${kt}`,24)}function Yt(Ce,kt){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ce,void 0,void 0,kt)],1))}function Et(Ce){const kt=n.createUniqueName("_metadata",48);let qe,Mt,ge=!1,mn=!1,Jn=!1;for(const Nn of Ce.members)if(Jl(Nn)&&Z1(!1,Nn,Ce)&&(ev(Nn)?Mt??(Mt=n.createUniqueName("_staticExtraInitializers",48)):qe??(qe=n.createUniqueName("_instanceExtraInitializers",48))),Ep(Nn)?mj(Nn)||(ge=!0):nu(Nn)&&(ev(Nn)?ge||(ge=!!Nn.initializer||X2(Nn)):mn||(mn=!mde(Nn))),(IT(Nn)||xb(Nn))&&ev(Nn)&&(Jn=!0),Mt&&qe&&ge&&mn&&Jn)break;return{class:Ce,metadataReference:kt,instanceExtraInitializersName:qe,staticExtraInitializersName:Mt,hasStaticInitializers:ge,hasNonAmbientInstanceFields:mn,hasStaticPrivateClassElements:Jn}}function at(Ce){c(),!Y2e(Ce)&&yP(!1,Ce)&&(Ce=Eme(e,Ce,n.createStringLiteral("")));const kt=n.getLocalName(Ce,!1,!1,!0),qe=Et(Ce),Mt=[];let ge,mn,Jn,Nn,Lr=!1;const qi=ln(gme(Ce));if(qi){qe.classDecoratorsName=n.createUniqueName("_classDecorators",48),qe.classDescriptorName=n.createUniqueName("_classDescriptor",48),qe.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48);const ma=gt(Ce.members,Bl=>(IT(Bl)||xb(Bl))&&ev(Bl));qe.classThis=n.createUniqueName("_classThis",ma?24:48),Mt.push(Yt(qe.classDecoratorsName,n.createArrayLiteralExpression(qi)),Yt(qe.classDescriptorName),Yt(qe.classExtraInitializersName,n.createArrayLiteralExpression()),Yt(qe.classThis)),qe.hasStaticPrivateClassElements&&(Lr=!0,$=!0)}const vo=hA(Ce.heritageClauses,96),Ro=vo&&pp(vo.types),Ts=Ro&&Bn(Ro.expression,ct,kr);if(Ts){qe.classSuper=n.createUniqueName("_classSuper",48);const ma=iv(Ts),Bl=v0(ma)&&!ma.name||Jm(ma)&&!ma.name||$m(ma)?n.createComma(n.createNumericLiteral(0),Ts):Ts;Mt.push(Yt(qe.classSuper,Bl));const G_=n.updateExpressionWithTypeArguments(Ro,qe.classSuper,void 0),u_=n.updateHeritageClause(vo,[G_]);Nn=n.createNodeArray([u_])}const Cc=qe.classThis??n.createThis();ie(qe),ge=ur(ge,Ao(qe.metadataReference,qe.classSuper));let Pc=Wa(Ce.members,Ze,J_);if(F){let ma;for(let Bl of F){Bl=Bn(Bl,function u_(xa){if(!(xa.transformFlags&16384))return xa;switch(xa.kind){case 110:return ma||(ma=n.createUniqueName("_outerThis",16),Mt.unshift(Yt(ma,n.createThis()))),ma;default:return Xo(xa,u_,e)}},kr);const G_=n.createExpressionStatement(Bl);ge=ur(ge,G_)}F=void 0}if(ae(),qe.instanceExtraInitializersName&&!sC(Ce)){const ma=cn(Ce,qe);if(ma){const Bl=YC(Ce),G_=!!(Bl&&iv(Bl.expression).kind!==106),u_=[];if(G_){const Ym=n.createSpreadElement(n.createIdentifier("arguments")),mf=n.createCallExpression(n.createSuper(),void 0,[Ym]);u_.push(n.createExpressionStatement(mf))}Oi(u_,ma);const xa=n.createBlock(u_,!0);Jn=n.createConstructorDeclaration(void 0,[],xa)}}if(qe.staticExtraInitializersName&&Mt.push(Yt(qe.staticExtraInitializersName,n.createArrayLiteralExpression())),qe.instanceExtraInitializersName&&Mt.push(Yt(qe.instanceExtraInitializersName,n.createArrayLiteralExpression())),qe.memberInfos&&Jb(qe.memberInfos,(ma,Bl)=>{pd(Bl)&&(Mt.push(Yt(ma.memberDecoratorsName)),ma.memberInitializersName&&Mt.push(Yt(ma.memberInitializersName,n.createArrayLiteralExpression())),ma.memberDescriptorName&&Mt.push(Yt(ma.memberDescriptorName)))}),qe.memberInfos&&Jb(qe.memberInfos,(ma,Bl)=>{pd(Bl)||(Mt.push(Yt(ma.memberDecoratorsName)),ma.memberInitializersName&&Mt.push(Yt(ma.memberInitializersName,n.createArrayLiteralExpression())),ma.memberDescriptorName&&Mt.push(Yt(ma.memberDescriptorName)))}),ge=Oi(ge,qe.staticNonFieldDecorationStatements),ge=Oi(ge,qe.nonStaticNonFieldDecorationStatements),ge=Oi(ge,qe.staticFieldDecorationStatements),ge=Oi(ge,qe.nonStaticFieldDecorationStatements),qe.classDescriptorName&&qe.classDecoratorsName&&qe.classExtraInitializersName&&qe.classThis){ge??(ge=[]);const ma=n.createPropertyAssignment("value",Cc),Bl=n.createObjectLiteralExpression([ma]),G_=n.createAssignment(qe.classDescriptorName,Bl),u_=n.createPropertyAccessExpression(Cc,"name"),xa=i().createESDecorateHelper(n.createNull(),G_,qe.classDecoratorsName,{kind:"class",name:u_,metadata:qe.metadataReference},n.createNull(),qe.classExtraInitializersName),Ym=n.createExpressionStatement(xa);lp(Ym,$E(Ce)),ge.push(Ym);const mf=n.createPropertyAccessExpression(qe.classDescriptorName,"value"),Cp=n.createAssignment(qe.classThis,mf),Yg=n.createAssignment(kt,Cp);ge.push(n.createExpressionStatement(Yg))}if(ge.push(Io(Cc,qe.metadataReference)),qe.staticExtraInitializersName){const ma=i().createRunInitializersHelper(Cc,qe.staticExtraInitializersName),Bl=n.createExpressionStatement(ma);lp(Bl,Ce.name??$E(Ce)),ge=ur(ge,Bl)}if(qe.classExtraInitializersName){const ma=i().createRunInitializersHelper(Cc,qe.classExtraInitializersName),Bl=n.createExpressionStatement(ma);lp(Bl,Ce.name??$E(Ce)),mn=ur(mn,Bl)}ge&&mn&&!qe.hasStaticInitializers&&(Oi(ge,mn),mn=void 0);const hc=ge&&n.createClassStaticBlockDeclaration(n.createBlock(ge,!0));hc&&Lr&&Sp(hc,32);const bl=mn&&n.createClassStaticBlockDeclaration(n.createBlock(mn,!0));if(hc||Jn||bl){const ma=[],Bl=Pc.findIndex(mj);hc?(Oi(ma,Pc,0,Bl+1),ma.push(hc),Oi(ma,Pc,Bl+1)):Oi(ma,Pc),Jn&&ma.push(Jn),bl&&ma.push(bl),Pc=Tn(n.createNodeArray(ma),Pc)}const Tc=u();let Tf;if(qi){Tf=n.createClassExpression(void 0,void 0,void 0,Nn,Pc),qe.classThis&&(Tf=FW(n,Tf,qe.classThis));const ma=n.createVariableDeclaration(kt,void 0,void 0,Tf),Bl=n.createVariableDeclarationList([ma]),G_=qe.classThis?n.createAssignment(kt,qe.classThis):kt;Mt.push(n.createVariableStatement(void 0,Bl),n.createReturnStatement(G_))}else Tf=n.createClassExpression(void 0,Ce.name,void 0,Nn,Pc),Mt.push(n.createReturnStatement(Tf));if(Lr){CG(Tf,32);for(const ma of Tf.members)(IT(ma)||xb(ma))&&ev(ma)&&CG(ma,32)}return Ls(Tf,Ce),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(Mt,Tc))}function Qt(Ce){return yP(!1,Ce)||b7(!1,Ce)}function nn(Ce){if(Qt(Ce)){const kt=[],qe=Gg(Ce,Fl)??Ce,Mt=qe.name?n.createStringLiteralFromNode(qe.name):n.createStringLiteral("default"),ge=ul(Ce,32),mn=ul(Ce,2048);if(Ce.name||(Ce=Eme(e,Ce,Mt)),ge&&mn){const Jn=at(Ce);if(Ce.name){const Nn=n.createVariableDeclaration(n.getLocalName(Ce),void 0,void 0,Jn);Ls(Nn,Ce);const Lr=n.createVariableDeclarationList([Nn],1),qi=n.createVariableStatement(void 0,Lr);kt.push(qi);const vo=n.createExportDefault(n.getDeclarationName(Ce));Ls(vo,Ce),_y(vo,MS(Ce)),lp(vo,$E(Ce)),kt.push(vo)}else{const Nn=n.createExportDefault(Jn);Ls(Nn,Ce),_y(Nn,MS(Ce)),lp(Nn,$E(Ce)),kt.push(Nn)}}else{re.assertIsDefined(Ce.name,"A class declaration that is not a default export must have a name.");const Jn=at(Ce),Nn=ge?Cc=>_W(Cc)?void 0:Lt(Cc):Lt,Lr=Wa(Ce.modifiers,Nn,Mf),qi=n.getLocalName(Ce,!1,!0),vo=n.createVariableDeclaration(qi,void 0,void 0,Jn);Ls(vo,Ce);const Ro=n.createVariableDeclarationList([vo],1),Ts=n.createVariableStatement(Lr,Ro);if(Ls(Ts,Ce),_y(Ts,MS(Ce)),kt.push(Ts),ge){const Cc=n.createExternalModuleExport(qi);Ls(Cc,Ce),kt.push(Cc)}}return N0(kt)}else{const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.heritageClauses,ct,Qb);ie(void 0);const Mt=Wa(Ce.members,Ze,J_);return ae(),n.updateClassDeclaration(Ce,kt,Ce.name,void 0,qe,Mt)}}function Rn(Ce){if(Qt(Ce)){const kt=at(Ce);return Ls(kt,Ce),kt}else{const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.heritageClauses,ct,Qb);ie(void 0);const Mt=Wa(Ce.members,Ze,J_);return ae(),n.updateClassExpression(Ce,kt,Ce.name,void 0,qe,Mt)}}function cn(Ce,kt){if(kt.instanceExtraInitializersName&&!kt.hasNonAmbientInstanceFields){const qe=[];return qe.push(n.createExpressionStatement(i().createRunInitializersHelper(n.createThis(),kt.instanceExtraInitializersName))),qe}}function qt(Ce,kt,qe,Mt,ge,mn){const Jn=Mt[ge],Nn=kt[Jn];if(Oi(Ce,Wa(kt,ct,dl,qe,Jn-qe)),My(Nn)){const Lr=[];qt(Lr,Nn.tryBlock.statements,0,Mt,ge+1,mn);const qi=n.createNodeArray(Lr);Tn(qi,Nn.tryBlock.statements),Ce.push(n.updateTryStatement(Nn,n.updateBlock(Nn.tryBlock,Lr),Bn(Nn.catchClause,ct,A3),Bn(Nn.finallyBlock,ct,Ou)))}else Oi(Ce,Wa(kt,ct,dl,Jn,1)),Oi(Ce,mn);Oi(Ce,Wa(kt,ct,dl,Jn+1))}function Kt(Ce){ve(Ce);const kt=Wa(Ce.modifiers,Lt,Mf),qe=Wa(Ce.parameters,ct,Os);let Mt;if(Ce.body&&E){const ge=cn(E.class,E);if(ge){const mn=[],Jn=n.copyPrologue(Ce.body.statements,mn,!1,ct),Nn=mme(Ce.body.statements,Jn);Nn.length>0?qt(mn,Ce.body.statements,Jn,Nn,0,ge):(Oi(mn,ge),Oi(mn,Wa(Ce.body.statements,ct,dl))),Mt=n.createBlock(mn,!0),Ls(Mt,Ce.body),Tn(Mt,Ce.body)}}return Mt??(Mt=Bn(Ce.body,ct,Ou)),we(),n.updateConstructorDeclaration(Ce,kt,qe,Mt)}function wr(Ce,kt){return Ce!==kt&&(_y(Ce,kt),lp(Ce,$E(kt))),Ce}function Wr(Ce,kt,qe){let Mt,ge,mn,Jn,Nn;if(!kt){const vo=Wa(Ce.modifiers,Lt,Mf);return Fe(),ge=za(Ce.name),et(),{modifiers:vo,referencedName:Mt,name:ge,initializersName:mn,descriptorName:Nn,thisArg:Jn}}const Lr=ln(wae(Ce,kt.class,!1)),qi=Wa(Ce.modifiers,Lt,Mf);if(Lr){const vo=It(Ce,"decorators"),Ro=n.createArrayLiteralExpression(Lr),Ts=n.createAssignment(vo,Ro),Cc={memberDecoratorsName:vo};kt.memberInfos??(kt.memberInfos=new Map),kt.memberInfos.set(Ce,Cc),F??(F=[]),F.push(Ts);const Pc=Mv(Ce)||xb(Ce)?pd(Ce)?kt.staticNonFieldDecorationStatements??(kt.staticNonFieldDecorationStatements=[]):kt.nonStaticNonFieldDecorationStatements??(kt.nonStaticNonFieldDecorationStatements=[]):nu(Ce)&&!xb(Ce)?pd(Ce)?kt.staticFieldDecorationStatements??(kt.staticFieldDecorationStatements=[]):kt.nonStaticFieldDecorationStatements??(kt.nonStaticFieldDecorationStatements=[]):re.fail(),hc=lE(Ce)?"getter":Xb(Ce)?"setter":tm(Ce)?"method":xb(Ce)?"accessor":nu(Ce)?"field":re.fail();let bl;if(xn(Ce.name)||Lu(Ce.name))bl={computed:!1,name:Ce.name};else if(Qv(Ce.name))bl={computed:!0,name:n.createStringLiteralFromNode(Ce.name)};else{const ma=Ce.name.expression;Qv(ma)&&!xn(ma)?bl={computed:!0,name:n.createStringLiteralFromNode(ma)}:(Fe(),{referencedName:Mt,name:ge}=qn(Ce.name),bl={computed:!0,name:Mt},et())}const Tc={kind:hc,name:bl,static:pd(Ce),private:Lu(Ce.name),access:{get:nu(Ce)||lE(Ce)||tm(Ce),set:nu(Ce)||Xb(Ce)},metadata:kt.metadataReference},Tf=pd(Ce)?kt.staticExtraInitializersName??(kt.staticExtraInitializersName=n.createUniqueName("_staticExtraInitializers",48)):kt.instanceExtraInitializersName??(kt.instanceExtraInitializersName=n.createUniqueName("_instanceExtraInitializers",48));if(Mv(Ce)){let ma;IT(Ce)&&qe&&(ma=qe(Ce,Wa(qi,u_=>to(u_,NJ),Mf)),Cc.memberDescriptorName=Nn=It(Ce,"descriptor"),ma=n.createAssignment(Nn,ma));const Bl=i().createESDecorateHelper(n.createThis(),ma??n.createNull(),vo,Tc,n.createNull(),Tf),G_=n.createExpressionStatement(Bl);lp(G_,$E(Ce)),Pc.push(G_)}else if(nu(Ce)){mn=Cc.memberInitializersName??(Cc.memberInitializersName=It(Ce,"initializers")),pd(Ce)&&(Jn=kt.classThis);let ma;IT(Ce)&&e_(Ce)&&qe&&(ma=qe(Ce,void 0),Cc.memberDescriptorName=Nn=It(Ce,"descriptor"),ma=n.createAssignment(Nn,ma));const Bl=i().createESDecorateHelper(xb(Ce)?n.createThis():n.createNull(),ma??n.createNull(),vo,Tc,mn,Tf),G_=n.createExpressionStatement(Bl);lp(G_,$E(Ce)),Pc.push(G_)}}return ge===void 0&&(Fe(),ge=za(Ce.name),et()),!gt(qi)&&(tm(Ce)||nu(Ce))&&_s(ge,1024),{modifiers:qi,referencedName:Mt,name:ge,initializersName:mn,descriptorName:Nn,thisArg:Jn}}function jt(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Ge);if(Mt)return we(),wr(Sr(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateMethodDeclaration(Ce,kt,Ce.asteriskToken,qe,void 0,void 0,ge,void 0,mn),Ce)}}function En(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Br);if(Mt)return we(),wr(yi(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateGetAccessorDeclaration(Ce,kt,qe,ge,void 0,mn),Ce)}}function fr(Ce){ve(Ce);const{modifiers:kt,name:qe,descriptorName:Mt}=Wr(Ce,E,Ei);if(Mt)return we(),wr(go(kt,qe,Mt),Ce);{const ge=Wa(Ce.parameters,ct,Os),mn=Bn(Ce.body,ct,Ou);return we(),wr(n.updateSetAccessorDeclaration(Ce,kt,qe,ge,mn),Ce)}}function Tr(Ce){ve(Ce);let kt;if(mj(Ce))kt=Xo(Ce,ct,e);else if(S$(Ce)){const qe=P;P=void 0,kt=Xo(Ce,ct,e),P=qe}else E&&(E.hasStaticInitializers=!0),kt=Xo(Ce,ct,e);return we(),kt}function Vr(Ce){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),ve(Ce),re.assert(!mde(Ce),"Not yet implemented.");const{modifiers:kt,name:qe,initializersName:Mt,descriptorName:ge,thisArg:mn}=Wr(Ce,E,e_(Ce)?Ln:void 0);c();let Jn=Bn(Ce.initializer,ct,kr);Mt&&(Jn=i().createRunInitializersHelper(mn??n.createThis(),Mt,Jn??n.createVoidZero())),!pd(Ce)&&(E!=null&&E.instanceExtraInitializersName)&&!(E!=null&&E.hasInjectedInstanceInitializers)&&(E.hasInjectedInstanceInitializers=!0,Jn??(Jn=n.createVoidZero()),Jn=n.createParenthesizedExpression(n.createComma(i().createRunInitializersHelper(n.createThis(),E.instanceExtraInitializersName),Jn))),pd(Ce)&&E&&Jn&&(E.hasStaticInitializers=!0);const Nn=u();if(gt(Nn)&&(Jn=n.createImmediatelyInvokedArrowFunction([...Nn,n.createReturnStatement(Jn)])),we(),e_(Ce)&&ge){const Lr=MS(Ce),qi=XL(Ce),vo=Ce.name;let Ro=vo,Ts=vo;if(Qf(vo)&&!IA(vo.expression)){const Tc=KJ(vo);if(Tc)Ro=n.updateComputedPropertyName(vo,Bn(vo.expression,ct,kr)),Ts=n.updateComputedPropertyName(vo,Tc.left);else{const Tf=n.createTempVariable(d);lp(Tf,vo.expression);const ma=Bn(vo.expression,ct,kr),Bl=n.createAssignment(Tf,ma);lp(Bl,vo.expression),Ro=n.updateComputedPropertyName(vo,Bl),Ts=n.updateComputedPropertyName(vo,Tf)}}const Cc=Wa(kt,Tc=>Tc.kind!==129?Tc:void 0,Mf),Pc=qJ(n,Ce,Cc,Jn);Ls(Pc,Ce),_s(Pc,3072),lp(Pc,qi),lp(Pc.name,Ce.name);const hc=yi(Cc,Ro,ge);Ls(hc,Ce),_y(hc,Lr),lp(hc,qi);const bl=go(Cc,Ts,ge);return Ls(bl,Ce),_s(bl,3072),lp(bl,qi),[Pc,hc,bl]}return wr(n.updatePropertyDeclaration(Ce,kt,qe,void 0,void 0,Jn),Ce)}function Pn(Ce){return P??Ce}function Fr(Ce){if(MT(Ce.expression)&&P){const kt=Bn(Ce.expression,ct,kr),qe=Wa(Ce.arguments,ct,kr),Mt=n.createFunctionCallCall(kt,P,qe);return Ls(Mt,Ce),Tn(Mt,Ce),Mt}return Xo(Ce,ct,e)}function Ki(Ce){if(MT(Ce.tag)&&P){const kt=Bn(Ce.tag,ct,kr),qe=n.createFunctionBindCall(kt,P,[]);Ls(qe,Ce),Tn(qe,Ce);const Mt=Bn(Ce.template,ct,Uz);return n.updateTaggedTemplateExpression(Ce,qe,void 0,Mt)}return Xo(Ce,ct,e)}function io(Ce){if(MT(Ce)&&xn(Ce.name)&&P&&k){const kt=n.createStringLiteralFromNode(Ce.name),qe=n.createReflectGetCall(k,kt,P);return Ls(qe,Ce.expression),Tn(qe,Ce.expression),qe}return Xo(Ce,ct,e)}function no(Ce){if(MT(Ce)&&P&&k){const kt=Bn(Ce.argumentExpression,ct,kr),qe=n.createReflectGetCall(k,kt,P);return Ls(qe,Ce.expression),Tn(qe,Ce.expression),qe}return Xo(Ce,ct,e)}function os(Ce){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer)));const kt=n.updateParameterDeclaration(Ce,void 0,Ce.dotDotDotToken,Bn(Ce.name,ct,lR),void 0,void 0,Bn(Ce.initializer,ct,kr));return kt!==Ce&&(_y(kt,Ce),Tn(kt,Db(Ce)),lp(kt,Db(Ce)),_s(kt.name,64)),kt}function Mo(Ce){return v0(Ce)&&!Ce.name&&Qt(Ce)}function $i(Ce){const kt=iv(Ce);return v0(kt)&&!kt.name&&!yP(!1,kt)}function ki(Ce){return n.updateForStatement(Ce,Bn(Ce.initializer,Ke,DS),Bn(Ce.condition,ct,kr),Bn(Ce.incrementor,Ke,kr),LS(Ce.statement,ct,e))}function gc(Ce){return Xo(Ce,Ke,e)}function Wl(Ce,kt){if(wy(Ce)){const qe=Hn(Ce.left),Mt=Bn(Ce.right,ct,kr);return n.updateBinaryExpression(Ce,qe,Ce.operatorToken,Mt)}if(Zv(Ce)){if(UE(Ce,Mo))return Ce=mE(e,Ce,$i(Ce.right)),Xo(Ce,ct,e);if(MT(Ce.left)&&P&&k){let qe=Hm(Ce.left)?Bn(Ce.left.argumentExpression,ct,kr):xn(Ce.left.name)?n.createStringLiteralFromNode(Ce.left.name):void 0;if(qe){let Mt=Bn(Ce.right,ct,kr);if(lj(Ce.operatorToken.kind)){let mn=qe;IA(qe)||(mn=n.createTempVariable(d),qe=n.createAssignment(mn,qe));const Jn=n.createReflectGetCall(k,mn,P);Ls(Jn,Ce.left),Tn(Jn,Ce.left),Mt=n.createBinaryExpression(Jn,RQ(Ce.operatorToken.kind),Mt),Tn(Mt,Ce)}const ge=kt?void 0:n.createTempVariable(d);return ge&&(Mt=n.createAssignment(ge,Mt),Tn(ge,Ce)),Mt=n.createReflectSetCall(k,qe,Mt,P),Ls(Mt,Ce),Tn(Mt,Ce),ge&&(Mt=n.createComma(Mt,ge),Tn(Mt,Ce)),Mt}}}if(Ce.operatorToken.kind===28){const qe=Bn(Ce.left,Ke,kr),Mt=Bn(Ce.right,kt?Ke:ct,kr);return n.updateBinaryExpression(Ce,qe,Ce.operatorToken,Mt)}return Xo(Ce,ct,e)}function Jc(Ce,kt){if(Ce.operator===46||Ce.operator===47){const qe=rg(Ce.operand);if(MT(qe)&&P&&k){let Mt=Hm(qe)?Bn(qe.argumentExpression,ct,kr):xn(qe.name)?n.createStringLiteralFromNode(qe.name):void 0;if(Mt){let ge=Mt;IA(Mt)||(ge=n.createTempVariable(d),Mt=n.createAssignment(ge,Mt));let mn=n.createReflectGetCall(k,ge,P);Ls(mn,Ce),Tn(mn,Ce);const Jn=kt?void 0:n.createTempVariable(d);return mn=JY(n,Ce,mn,d,Jn),mn=n.createReflectSetCall(k,Mt,mn,P),Ls(mn,Ce),Tn(mn,Ce),Jn&&(mn=n.createComma(mn,Jn),Tn(mn,Ce)),mn}}}return Xo(Ce,ct,e)}function au(Ce,kt){const qe=kt?NQ(Ce.elements,Ke):NQ(Ce.elements,ct,Ke);return n.updateCommaListExpression(Ce,qe)}function qn(Ce){if(Qv(Ce)||Lu(Ce)){const mn=n.createStringLiteralFromNode(Ce),Jn=Bn(Ce,ct,qg);return{referencedName:mn,name:Jn}}if(Qv(Ce.expression)&&!xn(Ce.expression)){const mn=n.createStringLiteralFromNode(Ce.expression),Jn=Bn(Ce,ct,qg);return{referencedName:mn,name:Jn}}const kt=n.getGeneratedNameForNode(Ce);d(kt);const qe=i().createPropKeyHelper(Bn(Ce.expression,ct,kr)),Mt=n.createAssignment(kt,qe),ge=n.updateComputedPropertyName(Ce,Bt(Mt));return{referencedName:kt,name:ge}}function za(Ce){return Qf(Ce)?Ia(Ce):Bn(Ce,ct,qg)}function Ia(Ce){let kt=Bn(Ce.expression,ct,kr);return IA(kt)||(kt=Bt(kt)),n.updateComputedPropertyName(Ce,kt)}function zi(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function na(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function _a(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.initializer))),Xo(Ce,ct,e)}function us(Ce){if(el(Ce)||Ed(Ce))return Hn(Ce);if(MT(Ce)&&P&&k){const kt=Hm(Ce)?Bn(Ce.argumentExpression,ct,kr):xn(Ce.name)?n.createStringLiteralFromNode(Ce.name):void 0;if(kt){const qe=n.createTempVariable(void 0),Mt=n.createAssignmentTargetWrapper(qe,n.createReflectSetCall(k,kt,qe,P));return Ls(Mt,Ce),Tn(Mt,Ce),Mt}}return Xo(Ce,ct,e)}function Au(Ce){if(Zv(Ce,!0)){UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.right)));const kt=us(Ce.left),qe=Bn(Ce.right,ct,kr);return n.updateBinaryExpression(Ce,kt,Ce.operatorToken,qe)}else return us(Ce)}function Qu(Ce){if(ib(Ce.expression)){const kt=us(Ce.expression);return n.updateSpreadElement(Ce,kt)}return Xo(Ce,ct,e)}function Cu(Ce){return re.assertNode(Ce,p9),WT(Ce)?Qu(Ce):cb(Ce)?Xo(Ce,ct,e):Au(Ce)}function yf(Ce){const kt=Bn(Ce.name,ct,qg);if(Zv(Ce.initializer,!0)){const qe=Au(Ce.initializer);return n.updatePropertyAssignment(Ce,kt,qe)}if(ib(Ce.initializer)){const qe=us(Ce.initializer);return n.updatePropertyAssignment(Ce,kt,qe)}return Xo(Ce,ct,e)}function w_(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.objectAssignmentInitializer))),Xo(Ce,ct,e)}function Eu(Ce){if(ib(Ce.expression)){const kt=us(Ce.expression);return n.updateSpreadAssignment(Ce,kt)}return Xo(Ce,ct,e)}function He(Ce){return re.assertNode(Ce,d9),xA(Ce)?Eu(Ce):XE(Ce)?w_(Ce):tl(Ce)?yf(Ce):Xo(Ce,ct,e)}function Hn(Ce){if(Ed(Ce)){const kt=Wa(Ce.elements,Cu,kr);return n.updateArrayLiteralExpression(Ce,kt)}else{const kt=Wa(Ce.properties,He,DN);return n.updateObjectLiteralExpression(Ce,kt)}}function dr(Ce){return UE(Ce,Mo)&&(Ce=mE(e,Ce,$i(Ce.expression))),Xo(Ce,ct,e)}function Mr(Ce,kt){const qe=kt?Ke:ct,Mt=Bn(Ce.expression,qe,kr);return n.updateParenthesizedExpression(Ce,Mt)}function Pr(Ce,kt){const qe=kt?Ke:ct,Mt=Bn(Ce.expression,qe,kr);return n.updatePartiallyEmittedExpression(Ce,Mt)}function Bt(Ce){return gt(F)&&(fE(Ce)?(F.push(Ce.expression),Ce=n.updateParenthesizedExpression(Ce,n.inlineExpressions(F))):(F.push(Ce),Ce=n.inlineExpressions(F)),F=void 0),Ce}function ln(Ce){if(!Ce)return;const kt=[];return Oi(kt,Vn(Ce.decorators,Wn)),kt}function Wn(Ce){const kt=Bn(Ce.expression,ct,kr);_s(kt,3072);const qe=iv(kt);if(Kf(qe)){const{target:Mt,thisArg:ge}=n.createCallBinding(kt,d,h,!0);return n.restoreOuterExpressions(kt,n.createFunctionBindCall(Mt,ge,[]))}return kt}function $r(Ce,kt,qe,Mt,ge,mn,Jn){const Nn=n.createFunctionExpression(qe,Mt,void 0,void 0,mn,void 0,Jn??n.createBlock([]));Ls(Nn,Ce),lp(Nn,$E(Ce)),_s(Nn,3072);const Lr=ge==="get"||ge==="set"?ge:void 0,qi=n.createStringLiteralFromNode(kt,void 0),vo=i().createSetFunctionNameHelper(Nn,qi,Lr),Ro=n.createPropertyAssignment(n.createIdentifier(ge),vo);return Ls(Ro,Ce),lp(Ro,$E(Ce)),_s(Ro,3072),Ro}function Ge(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,Ce.asteriskToken,"value",Wa(Ce.parameters,ct,Os),Bn(Ce.body,ct,Ou))])}function Br(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"get",[],Bn(Ce.body,ct,Ou))])}function Ei(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"set",Wa(Ce.parameters,ct,Os),Bn(Ce.body,ct,Ou))])}function Ln(Ce,kt){return n.createObjectLiteralExpression([$r(Ce,Ce.name,kt,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Ce.name)))])),$r(Ce,Ce.name,kt,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(Ce.name)),n.createIdentifier("value")))]))])}function Sr(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createGetAccessorDeclaration(Ce,kt,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(qe,n.createIdentifier("value")))]))}function yi(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createGetAccessorDeclaration(Ce,kt,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(qe,n.createIdentifier("get")),n.createThis(),[]))]))}function go(Ce,kt,qe){return Ce=Wa(Ce,Mt=>pW(Mt)?Mt:void 0,Mf),n.createSetAccessorDeclaration(Ce,kt,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(qe,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function Ao(Ce,kt){const qe=n.createVariableDeclaration(Ce,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[kt?ze(kt):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([qe],2))}function Io(Ce,kt){const qe=n.createObjectDefinePropertyCall(Ce,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:kt},!0));return _s(n.createIfStatement(kt,n.createExpressionStatement(qe)),1)}function ze(Ce){return n.createBinaryExpression(n.createElementAccessExpression(Ce,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}var uct=G({"src/compiler/transformers/esDecorators.ts"(){md()}});function exe(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=e.getEmitResolver(),S=e.getCompilerOptions(),E=iu(S);let P,k=0,F,$,J;const X=[];let ie=0;const ae=e.onEmitNode,ve=e.onSubstituteNode;return e.onEmitNode=os,e.onSubstituteNode=Mo,_C(e,we);function we(qn){if(qn.isDeclarationFile)return qn;Fe(1,!1),Fe(2,!QTe(qn,S));const za=Xo(qn,Ct,e);return $N(za,e.readEmitHelpers()),za}function Fe(qn,za){ie=za?ie|qn:ie&~qn}function et(qn){return(ie&qn)!==0}function Pe(){return!et(1)}function dt(){return et(2)}function Ie(qn,za,Ia){const zi=qn&~ie;if(zi){Fe(zi,!0);const na=za(Ia);return Fe(zi,!1),na}return za(Ia)}function ct(qn){return Xo(qn,Ct,e)}function Ct(qn){if(!(qn.transformFlags&256))return qn;switch(qn.kind){case 134:return;case 223:return Et(qn);case 174:return Ie(3,Qt,qn);case 262:return Ie(3,cn,qn);case 218:return Ie(3,qt,qn);case 219:return Ie(1,Kt,qn);case 211:return $&&Ac(qn)&&qn.expression.kind===108&&$.add(qn.name.escapedText),Xo(qn,Ct,e);case 212:return $&&qn.expression.kind===108&&(J=!0),Xo(qn,Ct,e);case 177:return Ie(3,nn,qn);case 178:return Ie(3,Rn,qn);case 176:return Ie(3,at,qn);case 263:case 231:return Ie(3,ct,qn);default:return Xo(qn,Ct,e)}}function Lt(qn){if(pH(qn))switch(qn.kind){case 243:return Ke(qn);case 248:return Yt(qn);case 249:return st(qn);case 250:return It(qn);case 299:return Ze(qn);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Xo(qn,Lt,e);default:return re.assertNever(qn,"Unhandled node.")}return Ct(qn)}function Ze(qn){const za=new Set;wr(qn.variableDeclaration,za);let Ia;if(za.forEach((zi,na)=>{F.has(na)&&(Ia||(Ia=new Set(F)),Ia.delete(na))}),Ia){const zi=F;F=Ia;const na=Xo(qn,Lt,e);return F=zi,na}else return Xo(qn,Lt,e)}function Ke(qn){if(Wr(qn.declarationList)){const za=jt(qn.declarationList,!1);return za?n.createExpressionStatement(za):void 0}return Xo(qn,Ct,e)}function st(qn){return n.updateForInStatement(qn,Wr(qn.initializer)?jt(qn.initializer,!0):re.checkDefined(Bn(qn.initializer,Ct,DS)),re.checkDefined(Bn(qn.expression,Ct,kr)),LS(qn.statement,Lt,e))}function It(qn){return n.updateForOfStatement(qn,Bn(qn.awaitModifier,Ct,ape),Wr(qn.initializer)?jt(qn.initializer,!0):re.checkDefined(Bn(qn.initializer,Ct,DS)),re.checkDefined(Bn(qn.expression,Ct,kr)),LS(qn.statement,Lt,e))}function Yt(qn){const za=qn.initializer;return n.updateForStatement(qn,Wr(za)?jt(za,!1):Bn(qn.initializer,Ct,DS),Bn(qn.condition,Ct,kr),Bn(qn.incrementor,Ct,kr),LS(qn.statement,Lt,e))}function Et(qn){return Pe()?Xo(qn,Ct,e):Ls(Tn(n.createYieldExpression(void 0,Bn(qn.expression,Ct,kr)),qn),qn)}function at(qn){return n.updateConstructorDeclaration(qn,Wa(qn.modifiers,Ct,Mf),sm(qn.parameters,Ct,e),Pn(qn))}function Qt(qn){return n.updateMethodDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.asteriskToken,qn.name,void 0,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):Pn(qn))}function nn(qn){return n.updateGetAccessorDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.name,sm(qn.parameters,Ct,e),void 0,Pn(qn))}function Rn(qn){return n.updateSetAccessorDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.name,sm(qn.parameters,Ct,e),Pn(qn))}function cn(qn){return n.updateFunctionDeclaration(qn,Wa(qn.modifiers,Ct,Am),qn.asteriskToken,qn.name,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function qt(qn){return n.updateFunctionExpression(qn,Wa(qn.modifiers,Ct,Mf),qn.asteriskToken,qn.name,void 0,sm(qn.parameters,Ct,e),void 0,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function Kt(qn){return n.updateArrowFunction(qn,Wa(qn.modifiers,Ct,Mf),void 0,sm(qn.parameters,Ct,e),void 0,qn.equalsGreaterThanToken,ob(qn)&2?Fr(qn):ox(qn.body,Ct,e))}function wr({name:qn},za){if(xn(qn))za.add(qn.escapedText);else for(const Ia of qn.elements)cb(Ia)||wr(Ia,za)}function Wr(qn){return!!qn&&Kp(qn)&&!(qn.flags&7)&&qn.declarations.some(Vr)}function jt(qn,za){En(qn);const Ia=n3(qn);return Ia.length===0?za?Bn(n.converters.convertToAssignmentElementTarget(qn.declarations[0].name),Ct,kr):void 0:n.inlineExpressions(Vn(Ia,Tr))}function En(qn){Ot(qn.declarations,fr)}function fr({name:qn}){if(xn(qn))d(qn);else for(const za of qn.elements)cb(za)||fr(za)}function Tr(qn){const za=lp(n.createAssignment(n.converters.convertToAssignmentElementTarget(qn.name),qn.initializer),qn);return re.checkDefined(Bn(za,Ct,kr))}function Vr({name:qn}){if(xn(qn))return F.has(qn.escapedText);for(const za of qn.elements)if(!cb(za)&&Vr(za))return!0;return!1}function Pn(qn){re.assertIsDefined(qn.body);const za=$,Ia=J;$=new Set,J=!1;let zi=ox(qn.body,Ct,e);const na=Gg(qn,Vd);if(E>=2&&h.getNodeCheckFlags(qn)&384&&(ob(na)&3)!==3){if(no(),$.size){const us=Cme(n,h,qn,$);X[vm(us)]=!0;const Au=zi.statements.slice();Um(Au,[us]),zi=n.updateBlock(zi,Au)}J&&(h.getNodeCheckFlags(qn)&256?v3(zi,NG):h.getNodeCheckFlags(qn)&128&&v3(zi,nS))}return $=za,J=Ia,zi}function Fr(qn){c();const Ia=Gg(qn,F_).type,zi=E<2?io(Ia):void 0,na=qn.kind===219,_a=(h.getNodeCheckFlags(qn)&512)!==0,us=F;F=new Set;for(const yf of qn.parameters)wr(yf,F);const Au=$,Qu=J;na||($=new Set,J=!1);let Cu;if(na){const yf=i().createAwaiterHelper(dt(),_a,zi,Ki(qn.body)),w_=u();if(gt(w_)){const Eu=n.converters.convertToFunctionBlock(yf);Cu=n.updateBlock(Eu,Tn(n.createNodeArray(Hi(w_,Eu.statements)),Eu.statements))}else Cu=yf}else{const yf=[],w_=n.copyPrologue(qn.body.statements,yf,!1,Ct);yf.push(n.createReturnStatement(i().createAwaiterHelper(dt(),_a,zi,Ki(qn.body,w_)))),Um(yf,u());const Eu=E>=2&&h.getNodeCheckFlags(qn)&384;if(Eu&&(no(),$.size)){const Hn=Cme(n,h,qn,$);X[vm(Hn)]=!0,Um(yf,[Hn])}const He=n.createBlock(yf,!0);Tn(He,qn.body),Eu&&J&&(h.getNodeCheckFlags(qn)&256?v3(He,NG):h.getNodeCheckFlags(qn)&128&&v3(He,nS)),Cu=He}return F=us,na||($=Au,J=Qu),Cu}function Ki(qn,za){return Ou(qn)?n.updateBlock(qn,Wa(qn.statements,Lt,dl,za)):n.converters.convertToFunctionBlock(re.checkDefined(Bn(qn,Lt,VU)))}function io(qn){const za=qn&&cY(qn);if(za&&kT(za)){const Ia=h.getTypeReferenceSerializationKind(za);if(Ia===1||Ia===0)return za}}function no(){P&1||(P|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function os(qn,za,Ia){if(P&1&&Jc(za)){const zi=h.getNodeCheckFlags(za)&384;if(zi!==k){const na=k;k=zi,ae(qn,za,Ia),k=na;return}}else if(P&&X[vm(za)]){const zi=k;k=0,ae(qn,za,Ia),k=zi;return}ae(qn,za,Ia)}function Mo(qn,za){return za=ve(qn,za),qn===1&&k?$i(za):za}function $i(qn){switch(qn.kind){case 211:return ki(qn);case 212:return gc(qn);case 213:return Wl(qn)}return qn}function ki(qn){return qn.expression.kind===108?Tn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),qn.name),qn):qn}function gc(qn){return qn.expression.kind===108?au(qn.argumentExpression,qn):qn}function Wl(qn){const za=qn.expression;if(MT(za)){const Ia=Ac(za)?ki(za):gc(za);return n.createCallExpression(n.createPropertyAccessExpression(Ia,"call"),void 0,[n.createThis(),...qn.arguments])}return qn}function Jc(qn){const za=qn.kind;return za===263||za===176||za===174||za===177||za===178}function au(qn,za){return k&256?Tn(n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[qn]),"value"),za):Tn(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[qn]),za)}}function Cme(e,n,i,c){const u=(n.getNodeCheckFlags(i)&256)!==0,d=[];return c.forEach((h,S)=>{const E=Ic(S),P=[];P.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,_s(e.createPropertyAccessExpression(_s(e.createSuper(),8),E),8)))),u&&P.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(_s(e.createPropertyAccessExpression(_s(e.createSuper(),8),E),8),e.createIdentifier("v"))))),d.push(e.createPropertyAssignment(E,e.createObjectLiteralExpression(P)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(d,!0)]))],2))}var HHe=G({"src/compiler/transformers/es2017.ts"(){md()}});function d4e(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistVariableDeclaration:d}=e,h=e.getEmitResolver(),S=e.getCompilerOptions(),E=iu(S),P=e.onEmitNode;e.onEmitNode=yf;const k=e.onSubstituteNode;e.onSubstituteNode=w_;let F=!1,$,J,X,ie=0,ae=0,ve,we,Fe,et;const Pe=[];return _C(e,Lt);function dt(Bt,ln){return ae!==(ae&~Bt|ln)}function Ie(Bt,ln){const Wn=ae;return ae=(ae&~Bt|ln)&3,Wn}function ct(Bt){ae=Bt}function Ct(Bt){we=ur(we,n.createVariableDeclaration(Bt))}function Lt(Bt){if(Bt.isDeclarationFile)return Bt;ve=Bt;const ln=Wr(Bt);return $N(ln,e.readEmitHelpers()),ve=void 0,we=void 0,ln}function Ze(Bt){return Et(Bt,!1)}function Ke(Bt){return Et(Bt,!0)}function st(Bt){if(Bt.kind!==134)return Bt}function It(Bt,ln,Wn,$r){if(dt(Wn,$r)){const Ge=Ie(Wn,$r),Br=Bt(ln);return ct(Ge),Br}return Bt(ln)}function Yt(Bt){return Xo(Bt,Ze,e)}function Et(Bt,ln){if(!(Bt.transformFlags&128))return Bt;switch(Bt.kind){case 223:return at(Bt);case 229:return Qt(Bt);case 253:return nn(Bt);case 256:return Rn(Bt);case 210:return qt(Bt);case 226:return En(Bt,ln);case 361:return fr(Bt,ln);case 299:return Tr(Bt);case 243:return Vr(Bt);case 260:return Pn(Bt);case 246:case 247:case 249:return It(Yt,Bt,0,2);case 250:return no(Bt,void 0);case 248:return It(Ki,Bt,0,2);case 222:return io(Bt);case 176:return It(au,Bt,2,1);case 174:return It(Ia,Bt,2,1);case 177:return It(qn,Bt,2,1);case 178:return It(za,Bt,2,1);case 262:return It(zi,Bt,2,1);case 218:return It(_a,Bt,2,1);case 219:return It(na,Bt,2,0);case 169:return Wl(Bt);case 244:return Kt(Bt);case 217:return wr(Bt,ln);case 215:return jt(Bt);case 211:return Fe&&Ac(Bt)&&Bt.expression.kind===108&&Fe.add(Bt.name.escapedText),Xo(Bt,Ze,e);case 212:return Fe&&Bt.expression.kind===108&&(et=!0),Xo(Bt,Ze,e);case 263:case 231:return It(Yt,Bt,2,1);default:return Xo(Bt,Ze,e)}}function at(Bt){return J&2&&J&1?Ls(Tn(n.createYieldExpression(void 0,i().createAwaitHelper(Bn(Bt.expression,Ze,kr))),Bt),Bt):Xo(Bt,Ze,e)}function Qt(Bt){if(J&2&&J&1){if(Bt.asteriskToken){const ln=Bn(re.checkDefined(Bt.expression),Ze,kr);return Ls(Tn(n.createYieldExpression(void 0,i().createAwaitHelper(n.updateYieldExpression(Bt,Bt.asteriskToken,Tn(i().createAsyncDelegatorHelper(Tn(i().createAsyncValuesHelper(ln),ln)),ln)))),Bt),Bt)}return Ls(Tn(n.createYieldExpression(void 0,$i(Bt.expression?Bn(Bt.expression,Ze,kr):n.createVoidZero())),Bt),Bt)}return Xo(Bt,Ze,e)}function nn(Bt){return J&2&&J&1?n.updateReturnStatement(Bt,$i(Bt.expression?Bn(Bt.expression,Ze,kr):n.createVoidZero())):Xo(Bt,Ze,e)}function Rn(Bt){if(J&2){const ln=Tde(Bt);return ln.kind===250&&ln.awaitModifier?no(ln,Bt):n.restoreEnclosingLabel(Bn(ln,Ze,dl,n.liftToBlock),Bt)}return Xo(Bt,Ze,e)}function cn(Bt){let ln;const Wn=[];for(const $r of Bt)if($r.kind===305){ln&&(Wn.push(n.createObjectLiteralExpression(ln)),ln=void 0);const Ge=$r.expression;Wn.push(Bn(Ge,Ze,kr))}else ln=ur(ln,$r.kind===303?n.createPropertyAssignment($r.name,Bn($r.initializer,Ze,kr)):Bn($r,Ze,DN));return ln&&Wn.push(n.createObjectLiteralExpression(ln)),Wn}function qt(Bt){if(Bt.transformFlags&65536){const ln=cn(Bt.properties);ln.length&&ln[0].kind!==210&&ln.unshift(n.createObjectLiteralExpression());let Wn=ln[0];if(ln.length>1){for(let $r=1;$r=2&&h.getNodeCheckFlags(Bt)&384;if(Ei){Cu();const Sr=Cme(n,h,Bt,Fe);Pe[vm(Sr)]=!0,Um(ln,[Sr])}ln.push(Br),Um(ln,u());const Ln=n.updateBlock(Bt.body,ln);return Ei&&et&&(h.getNodeCheckFlags(Bt)&256?v3(Ln,NG):h.getNodeCheckFlags(Bt)&128&&v3(Ln,nS)),Fe=$r,et=Ge,Ln}function Au(Bt){c();let ln=0;const Wn=[],$r=Bn(Bt.body,Ze,VU)??n.createBlock([]);Ou($r)&&(ln=n.copyPrologue($r.statements,Wn,!1,Ze)),Oi(Wn,Qu(void 0,Bt));const Ge=u();if(ln>0||gt(Wn)||gt(Ge)){const Br=n.converters.convertToFunctionBlock($r,!0);return Um(Wn,Ge),Oi(Wn,Br.statements.slice(ln)),n.updateBlock(Br,Tn(n.createNodeArray(Wn),Br.statements))}return $r}function Qu(Bt,ln){let Wn=!1;for(const $r of ln.parameters)if(Wn){if($_($r.name)){if($r.name.elements.length>0){const Ge=pF($r,Ze,e,0,n.getGeneratedNameForNode($r));if(gt(Ge)){const Br=n.createVariableDeclarationList(Ge),Ei=n.createVariableStatement(void 0,Br);_s(Ei,2097152),Bt=ur(Bt,Ei)}}else if($r.initializer){const Ge=n.getGeneratedNameForNode($r),Br=Bn($r.initializer,Ze,kr),Ei=n.createAssignment(Ge,Br),Ln=n.createExpressionStatement(Ei);_s(Ln,2097152),Bt=ur(Bt,Ln)}}else if($r.initializer){const Ge=n.cloneNode($r.name);Tn(Ge,$r.name),_s(Ge,96);const Br=Bn($r.initializer,Ze,kr);cE(Br,3168);const Ei=n.createAssignment(Ge,Br);Tn(Ei,$r),_s(Ei,3072);const Ln=n.createBlock([n.createExpressionStatement(Ei)]);Tn(Ln,$r),_s(Ln,3905);const Sr=n.createTypeCheck(n.cloneNode($r.name),"undefined"),yi=n.createIfStatement(Sr,Ln);lb(yi),Tn(yi,$r),_s(yi,2101056),Bt=ur(Bt,yi)}}else if($r.transformFlags&65536){Wn=!0;const Ge=pF($r,Ze,e,1,n.getGeneratedNameForNode($r),!1,!0);if(gt(Ge)){const Br=n.createVariableDeclarationList(Ge),Ei=n.createVariableStatement(void 0,Br);_s(Ei,2097152),Bt=ur(Bt,Ei)}}return Bt}function Cu(){$&1||($|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function yf(Bt,ln,Wn){if($&1&&Mr(ln)){const $r=h.getNodeCheckFlags(ln)&384;if($r!==ie){const Ge=ie;ie=$r,P(Bt,ln,Wn),ie=Ge;return}}else if($&&Pe[vm(ln)]){const $r=ie;ie=0,P(Bt,ln,Wn),ie=$r;return}P(Bt,ln,Wn)}function w_(Bt,ln){return ln=k(Bt,ln),Bt===1&&ie?Eu(ln):ln}function Eu(Bt){switch(Bt.kind){case 211:return He(Bt);case 212:return Hn(Bt);case 213:return dr(Bt)}return Bt}function He(Bt){return Bt.expression.kind===108?Tn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),Bt.name),Bt):Bt}function Hn(Bt){return Bt.expression.kind===108?Pr(Bt.argumentExpression,Bt):Bt}function dr(Bt){const ln=Bt.expression;if(MT(ln)){const Wn=Ac(ln)?He(ln):Hn(ln);return n.createCallExpression(n.createPropertyAccessExpression(Wn,"call"),void 0,[n.createThis(),...Bt.arguments])}return Bt}function Mr(Bt){const ln=Bt.kind;return ln===263||ln===176||ln===174||ln===177||ln===178}function Pr(Bt,ln){return ie&256?Tn(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Bt]),"value"),ln):Tn(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Bt]),ln)}}var JHe=G({"src/compiler/transformers/es2018.ts"(){md()}});function p4e(e){const n=e.factory;return _C(e,i);function i(d){return d.isDeclarationFile?d:Xo(d,c,e)}function c(d){if(!(d.transformFlags&64))return d;switch(d.kind){case 299:return u(d);default:return Xo(d,c,e)}}function u(d){return d.variableDeclaration?Xo(d,c,e):n.updateCatchClause(d,n.createVariableDeclaration(n.createTempVariable(void 0)),Bn(d.block,c,Ou))}}var $He=G({"src/compiler/transformers/es2019.ts"(){md()}});function txe(e){const{factory:n,hoistVariableDeclaration:i}=e;return _C(e,c);function c(X){return X.isDeclarationFile?X:Xo(X,u,e)}function u(X){if(!(X.transformFlags&32))return X;switch(X.kind){case 213:{const ie=E(X,!1);return re.assertNotNode(ie,Sk),ie}case 211:case 212:if(uy(X)){const ie=k(X,!1,!1);return re.assertNotNode(ie,Sk),ie}return Xo(X,u,e);case 226:return X.operatorToken.kind===61?$(X):Xo(X,u,e);case 220:return J(X);default:return Xo(X,u,e)}}function d(X){re.assertNotNode(X,zU);const ie=[X];for(;!X.questionDotToken&&!Dm(X);)X=uc(h2(X.expression),uy),re.assertNotNode(X,zU),ie.unshift(X);return{expression:X.expression,chain:ie}}function h(X,ie,ae){const ve=P(X.expression,ie,ae);return Sk(ve)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(X,ve.expression),ve.thisArg):n.updateParenthesizedExpression(X,ve)}function S(X,ie,ae){if(uy(X))return k(X,ie,ae);let ve=Bn(X.expression,u,kr);re.assertNotNode(ve,Sk);let we;return ie&&(L3(ve)?we=ve:(we=n.createTempVariable(i),ve=n.createAssignment(we,ve))),ve=X.kind===211?n.updatePropertyAccessExpression(X,ve,Bn(X.name,u,xn)):n.updateElementAccessExpression(X,ve,Bn(X.argumentExpression,u,kr)),we?n.createSyntheticReferenceExpression(ve,we):ve}function E(X,ie){if(uy(X))return k(X,ie,!1);if(fE(X.expression)&&uy(rg(X.expression))){const ae=h(X.expression,!0,!1),ve=Wa(X.arguments,u,kr);return Sk(ae)?Tn(n.createFunctionCallCall(ae.expression,ae.thisArg,ve),X):n.updateCallExpression(X,ae,void 0,ve)}return Xo(X,u,e)}function P(X,ie,ae){switch(X.kind){case 217:return h(X,ie,ae);case 211:case 212:return S(X,ie,ae);case 213:return E(X,ie);default:return Bn(X,u,kr)}}function k(X,ie,ae){const{expression:ve,chain:we}=d(X),Fe=P(h2(ve),AN(we[0]),!1);let et=Sk(Fe)?Fe.thisArg:void 0,Pe=Sk(Fe)?Fe.expression:Fe,dt=n.restoreOuterExpressions(ve,Pe,8);L3(Pe)||(Pe=n.createTempVariable(i),dt=n.createAssignment(Pe,dt));let Ie=Pe,ct;for(let Lt=0;LtEt&&Oi(at,Wa(It.statements,F,dl,Et,Qt-Et));break}Qt++}re.assert(Qtae(at,Et))))],Et,Yt===2)}return Xo(It,F,e)}function we(It,Yt,Et,at,Qt){const nn=[];for(let qt=Yt;qtn&&(n=c)}return n}function KHe(e){let n=0;for(const i of e){const c=rxe(i.statements);if(c===2)return 2;c>n&&(n=c)}return n}var _ct=G({"src/compiler/transformers/esnext.ts"(){md()}});function ixe(e){const{factory:n,getEmitHelperFactory:i}=e,c=e.getCompilerOptions();let u,d;return _C(e,F);function h(){if(d.filenameDeclaration)return d.filenameDeclaration.name;const jt=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(u.fileName));return d.filenameDeclaration=jt,d.filenameDeclaration.name}function S(jt){return c.jsx===5?"jsxDEV":jt?"jsxs":"jsx"}function E(jt){const En=S(jt);return k(En)}function P(){return k("Fragment")}function k(jt){var En,fr;const Tr=jt==="createElement"?d.importSpecifier:HH(d.importSpecifier,c),Vr=(fr=(En=d.utilizedImplicitRuntimeImports)==null?void 0:En.get(Tr))==null?void 0:fr.get(jt);if(Vr)return Vr.name;d.utilizedImplicitRuntimeImports||(d.utilizedImplicitRuntimeImports=new Map);let Pn=d.utilizedImplicitRuntimeImports.get(Tr);Pn||(Pn=new Map,d.utilizedImplicitRuntimeImports.set(Tr,Pn));const Fr=n.createUniqueName(`_${jt}`,112),Ki=n.createImportSpecifier(!1,n.createIdentifier(jt),Fr);return vEe(Fr,Ki),Pn.set(jt,Ki),Fr}function F(jt){if(jt.isDeclarationFile)return jt;u=jt,d={},d.importSpecifier=UH(c,jt);let En=Xo(jt,$,e);$N(En,e.readEmitHelpers());let fr=En.statements;if(d.filenameDeclaration&&(fr=_R(fr.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([d.filenameDeclaration],2)))),d.utilizedImplicitRuntimeImports){for(const[Tr,Vr]of oc(d.utilizedImplicitRuntimeImports.entries()))if(Bv(jt)){const Pn=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports(oc(Vr.values()))),n.createStringLiteral(Tr),void 0);Q2(Pn,!1),fr=_R(fr.slice(),Pn)}else if(aE(jt)){const Pn=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(oc(Vr.values(),Fr=>n.createBindingElement(void 0,Fr.propertyName,Fr.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(Tr)]))],2));Q2(Pn,!1),fr=_R(fr.slice(),Pn)}}return fr!==En.statements&&(En=n.updateSourceFile(En,fr)),d=void 0,En}function $(jt){return jt.transformFlags&2?J(jt):jt}function J(jt){switch(jt.kind){case 284:return we(jt,!1);case 285:return Fe(jt,!1);case 288:return et(jt,!1);case 294:return Wr(jt);default:return Xo(jt,$,e)}}function X(jt){switch(jt.kind){case 12:return Qt(jt);case 294:return Wr(jt);case 284:return we(jt,!0);case 285:return Fe(jt,!0);case 288:return et(jt,!0);default:return re.failBadSyntaxKind(jt)}}function ie(jt){return jt.properties.some(En=>tl(En)&&(xn(En.name)&&Kr(En.name)==="__proto__"||Sd(En.name)&&En.name.text==="__proto__"))}function ae(jt){let En=!1;for(const fr of jt.attributes.properties)if(rT(fr)&&(!el(fr.expression)||fr.expression.properties.some(xA)))En=!0;else if(En&&tx(fr)&&xn(fr.name)&&fr.name.escapedText==="key")return!0;return!1}function ve(jt){return d.importSpecifier===void 0||ae(jt)}function we(jt,En){return(ve(jt.openingElement)?Ct:Ie)(jt.openingElement,jt.children,En,jt)}function Fe(jt,En){return(ve(jt)?Ct:Ie)(jt,void 0,En,jt)}function et(jt,En){return(d.importSpecifier===void 0?Ze:Lt)(jt.openingFragment,jt.children,En,jt)}function Pe(jt){const En=dt(jt);return En&&n.createObjectLiteralExpression([En])}function dt(jt){const En=B9(jt);if(Nt(En)===1&&!En[0].dotDotDotToken){const Tr=X(En[0]);return Tr&&n.createPropertyAssignment("children",Tr)}const fr=Qo(jt,X);return Nt(fr)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(fr)):void 0}function Ie(jt,En,fr,Tr){const Vr=Kt(jt),Pn=En&&En.length?dt(En):void 0,Fr=lr(jt.attributes.properties,no=>!!no.name&&xn(no.name)&&no.name.escapedText==="key"),Ki=Fr?gi(jt.attributes.properties,no=>no!==Fr):jt.attributes.properties,io=Nt(Ki)?st(Ki,Pn):n.createObjectLiteralExpression(Pn?[Pn]:Yn);return ct(Vr,io,Fr,En||Yn,fr,Tr)}function ct(jt,En,fr,Tr,Vr,Pn){var Fr;const Ki=B9(Tr),io=Nt(Ki)>1||!!((Fr=Ki[0])!=null&&Fr.dotDotDotToken),no=[jt,En];if(fr&&no.push(at(fr.initializer)),c.jsx===5){const Mo=Gg(u);if(Mo&&Nu(Mo)){fr===void 0&&no.push(n.createVoidZero()),no.push(io?n.createTrue():n.createFalse());const $i=xm(Mo,Pn.pos);no.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",h()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral($i.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral($i.character+1))])),no.push(n.createThis())}}const os=Tn(n.createCallExpression(E(io),void 0,no),Pn);return Vr&&lb(os),os}function Ct(jt,En,fr,Tr){const Vr=Kt(jt),Pn=jt.attributes.properties,Fr=Nt(Pn)?st(Pn):n.createNull(),Ki=d.importSpecifier===void 0?NEe(n,e.getEmitResolver().getJsxFactoryEntity(u),c.reactNamespace,jt):k("createElement"),io=hpe(n,Ki,Vr,Fr,Qo(En,X),Tr);return fr&&lb(io),io}function Lt(jt,En,fr,Tr){let Vr;if(En&&En.length){const Pn=Pe(En);Pn&&(Vr=Pn)}return ct(P(),Vr||n.createObjectLiteralExpression([]),void 0,En,fr,Tr)}function Ze(jt,En,fr,Tr){const Vr=P6e(n,e.getEmitResolver().getJsxFactoryEntity(u),e.getEmitResolver().getJsxFragmentFactoryEntity(u),c.reactNamespace,Qo(En,X),jt,Tr);return fr&&lb(Vr),Vr}function Ke(jt){return el(jt.expression)&&!ie(jt.expression)?Ol(jt.expression.properties,En=>re.checkDefined(Bn(En,$,DN))):n.createSpreadAssignment(re.checkDefined(Bn(jt.expression,$,kr)))}function st(jt,En){const fr=iu(c);return fr&&fr>=5?n.createObjectLiteralExpression(It(jt,En)):Yt(jt,En)}function It(jt,En){const fr=Gf(fa(jt,rT,(Tr,Vr)=>Gf(Vn(Tr,Pn=>Vr?Ke(Pn):Et(Pn)))));return En&&fr.push(En),fr}function Yt(jt,En){const fr=[];let Tr=[];for(const Pn of jt){if(rT(Pn)){if(el(Pn.expression)&&!ie(Pn.expression)){for(const Fr of Pn.expression.properties){if(xA(Fr)){Vr(),fr.push(re.checkDefined(Bn(Fr.expression,$,kr)));continue}Tr.push(re.checkDefined(Bn(Fr,$)))}continue}Vr(),fr.push(re.checkDefined(Bn(Pn.expression,$,kr)));continue}Tr.push(Et(Pn))}return En&&Tr.push(En),Vr(),fr.length&&!el(fr[0])&&fr.unshift(n.createObjectLiteralExpression()),Vb(fr)||i().createAssignHelper(fr);function Vr(){Tr.length&&(fr.push(n.createObjectLiteralExpression(Tr)),Tr=[])}}function Et(jt){const En=wr(jt),fr=at(jt.initializer);return n.createPropertyAssignment(En,fr)}function at(jt){if(jt===void 0)return n.createTrue();if(jt.kind===11){const En=jt.singleQuote!==void 0?jt.singleQuote:!aH(jt,u),fr=n.createStringLiteral(qt(jt.text)||jt.text,En);return Tn(fr,jt)}return jt.kind===294?jt.expression===void 0?n.createTrue():re.checkDefined(Bn(jt.expression,$,kr)):zx(jt)?we(jt,!1):nF(jt)?Fe(jt,!1):Ek(jt)?et(jt,!1):re.failBadSyntaxKind(jt)}function Qt(jt){const En=nn(jt.text);return En===void 0?void 0:n.createStringLiteral(En)}function nn(jt){let En,fr=0,Tr=-1;for(let Vr=0;Vr{if(Pn)return ak(parseInt(Pn,10));if(Fr)return ak(parseInt(Fr,16));{const io=y4e.get(Ki);return io?ak(io):En}})}function qt(jt){const En=cn(jt);return En===jt?void 0:En}function Kt(jt){if(jt.kind===284)return Kt(jt.openingElement);{const En=jt.tagName;return xn(En)&&EH(En.escapedText)?n.createStringLiteral(Kr(En)):Fm(En)?n.createStringLiteral(Kr(En.namespace)+":"+Kr(En.name)):zoe(n,En)}}function wr(jt){const En=jt.name;if(xn(En)){const fr=Kr(En);return/^[A-Za-z_]\w*$/.test(fr)?En:n.createStringLiteral(fr)}return n.createStringLiteral(Kr(En.namespace)+":"+Kr(En.name))}function Wr(jt){const En=Bn(jt.expression,$,kr);return jt.dotDotDotToken?n.createSpreadElement(En):En}}var y4e,dct=G({"src/compiler/transformers/jsx.ts"(){md(),y4e=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 oxe(e){const{factory:n,hoistVariableDeclaration:i}=e;return _C(e,c);function c(E){return E.isDeclarationFile?E:Xo(E,u,e)}function u(E){if(!(E.transformFlags&512))return E;switch(E.kind){case 226:return d(E);default:return Xo(E,u,e)}}function d(E){switch(E.operatorToken.kind){case 68:return h(E);case 43:return S(E);default:return Xo(E,u,e)}}function h(E){let P,k;const F=Bn(E.left,u,kr),$=Bn(E.right,u,kr);if(Hm(F)){const J=n.createTempVariable(i),X=n.createTempVariable(i);P=Tn(n.createElementAccessExpression(Tn(n.createAssignment(J,F.expression),F.expression),Tn(n.createAssignment(X,F.argumentExpression),F.argumentExpression)),F),k=Tn(n.createElementAccessExpression(J,X),F)}else if(Ac(F)){const J=n.createTempVariable(i);P=Tn(n.createPropertyAccessExpression(Tn(n.createAssignment(J,F.expression),F.expression),F.name),F),k=Tn(n.createPropertyAccessExpression(J,F.name),F)}else P=F,k=F;return Tn(n.createAssignment(P,Tn(n.createGlobalMethodCall("Math","pow",[k,$]),E)),E)}function S(E){const P=Bn(E.left,u,kr),k=Bn(E.right,u,kr);return Tn(n.createGlobalMethodCall("Math","pow",[P,k]),E)}}var pct=G({"src/compiler/transformers/es2016.ts"(){md()}});function XHe(e,n){return{kind:e,expression:n}}function axe(e){const{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:c,resumeLexicalEnvironment:u,endLexicalEnvironment:d,hoistVariableDeclaration:h}=e,S=e.getCompilerOptions(),E=e.getEmitResolver(),P=e.onSubstituteNode,k=e.onEmitNode;e.onEmitNode=P1,e.onSubstituteNode=fb;let F,$,J,X;function ie(nt){X=ur(X,n.createVariableDeclaration(nt))}let ae,ve;return _C(e,we);function we(nt){if(nt.isDeclarationFile)return nt;F=nt,$=nt.text;const pr=st(nt);return $N(pr,e.readEmitHelpers()),F=void 0,$=void 0,X=void 0,J=0,pr}function Fe(nt,pr){const vi=J;return J=(J&~nt|pr)&32767,vi}function et(nt,pr,vi){J=(J&~pr|vi)&-32768|nt}function Pe(nt){return(J&8192)!==0&&nt.kind===253&&!nt.expression}function dt(nt){return nt.transformFlags&4194304&&(iS(nt)||bk(nt)||upe(nt)||AR(nt)||Fv(nt)||BT(nt)||xk(nt)||My(nt)||A3(nt)||tF(nt)||LL(nt,!1)||Ou(nt))}function Ie(nt){return(nt.transformFlags&1024)!==0||ae!==void 0||J&8192&&dt(nt)||LL(nt,!1)&&pl(nt)||(HC(nt)&1)!==0}function ct(nt){return Ie(nt)?Ke(nt,!1):nt}function Ct(nt){return Ie(nt)?Ke(nt,!0):nt}function Lt(nt){if(Ie(nt)){const pr=Gg(nt);if(nu(pr)&&ev(pr)){const vi=Fe(32670,16449),Di=Ke(nt,!1);return et(vi,229376,0),Di}return Ke(nt,!1)}return nt}function Ze(nt){return nt.kind===108?Qm(nt,!0):ct(nt)}function Ke(nt,pr){switch(nt.kind){case 126:return;case 263:return Kt(nt);case 231:return wr(nt);case 169:return Eu(nt);case 262:return Ao(nt);case 219:return yi(nt);case 218:return go(nt);case 260:return Ro(nt);case 80:return cn(nt);case 261:return Nn(nt);case 255:return It(nt);case 269:return Yt(nt);case 241:return Ce(nt,!1);case 252:case 251:return qt(nt);case 256:return Pc(nt);case 246:case 247:return Tc(nt,void 0);case 248:return Tf(nt,void 0);case 249:return Bl(nt,void 0);case 250:return G_(nt,void 0);case 244:return kt(nt);case 210:return Cp(nt);case 299:return Tl(nt);case 304:return ah(nt);case 167:return bm(nt);case 209:return yp(nt);case 213:return Cg(nt);case 214:return r1(nt);case 217:return qe(nt,pr);case 226:return Mt(nt,pr);case 361:return ge(nt,pr);case 15:case 16:case 17:case 18:return A_(nt);case 11:return gd(nt);case 9:return Dg(nt);case 215:return um(nt);case 228:return Ig(nt);case 229:return ay(nt);case 230:return t_(nt);case 108:return Qm(nt,!1);case 110:return nn(nt);case 236:return Bh(nt);case 174:return Gd(nt);case 177:case 178:return ag(nt);case 243:return Jn(nt);case 253:return Qt(nt);case 222:return Rn(nt);default:return Xo(nt,ct,e)}}function st(nt){const pr=Fe(8064,64),vi=[],Di=[];c();const Ee=n.copyPrologue(nt.statements,vi,!1,ct);return Oi(Di,Wa(nt.statements,ct,dl,Ee)),X&&Di.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(X))),n.mergeLexicalEnvironment(vi,d()),ln(vi,nt),et(pr,0,0),n.updateSourceFile(nt,Tn(n.createNodeArray(Hi(vi,Di)),nt.statements))}function It(nt){if(ae!==void 0){const pr=ae.allowedNonLabeledJumps;ae.allowedNonLabeledJumps|=2;const vi=Xo(nt,ct,e);return ae.allowedNonLabeledJumps=pr,vi}return Xo(nt,ct,e)}function Yt(nt){const pr=Fe(7104,0),vi=Xo(nt,ct,e);return et(pr,0,0),vi}function Et(nt){return Ls(n.createReturnStatement(at()),nt)}function at(){return n.createUniqueName("_this",48)}function Qt(nt){return ae?(ae.nonLocalJumps|=8,Pe(nt)&&(nt=Et(nt)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),nt.expression?re.checkDefined(Bn(nt.expression,ct,kr)):n.createVoidZero())]))):Pe(nt)?Et(nt):Xo(nt,ct,e)}function nn(nt){return J|=65536,J&2&&!(J&16384)&&(J|=131072),ae?J&2?(ae.containsLexicalThis=!0,nt):ae.thisName||(ae.thisName=n.createUniqueName("this")):nt}function Rn(nt){return Xo(nt,Ct,e)}function cn(nt){return ae&&E.isArgumentsLocalBinding(nt)?ae.argumentsName||(ae.argumentsName=n.createUniqueName("arguments")):nt.flags&256?Ls(Tn(n.createIdentifier(Ic(nt.escapedText)),nt),nt):nt}function qt(nt){if(ae){const pr=nt.kind===252?2:4;if(!(nt.label&&ae.labels&&ae.labels.get(Kr(nt.label))||!nt.label&&ae.allowedNonLabeledJumps&pr)){let Di;const Ee=nt.label;Ee?nt.kind===252?(Di=`break-${Ee.escapedText}`,_n(ae,!0,Kr(Ee),Di)):(Di=`continue-${Ee.escapedText}`,_n(ae,!1,Kr(Ee),Di)):nt.kind===252?(ae.nonLocalJumps|=2,Di="break"):(ae.nonLocalJumps|=4,Di="continue");let Gt=n.createStringLiteral(Di);if(ae.loopOutParameters.length){const sr=ae.loopOutParameters;let Ii;for(let Ja=0;Jaxn(pr.name)&&!pr.initializer)}function Fr(nt){if(h1(nt))return!0;if(!(nt.transformFlags&134217728))return!1;switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?!!s_(pr.name,Fr):!1}}return!!s_(nt,Fr)}function Ki(nt,pr,vi,Di){const Ee=!!vi&&iv(vi.expression).kind!==106;if(!nt)return Vr(pr,Ee);const Gt=[],sr=[];u();const Ii=n.copyStandardPrologue(nt.body.statements,Gt,0);(Di||Fr(nt.body))&&(J|=8192),Oi(sr,Wa(nt.body.statements,ct,dl,Ii));const Ja=Ee||J&8192;Hn(Gt,nt),Bt(Gt,nt,Di),$r(Gt,nt),Ja?Wn(Gt,nt,yf()):ln(Gt,nt),n.mergeLexicalEnvironment(Gt,d()),Ja&&!Cu(nt.body)&&sr.push(n.createReturnStatement(at()));const wa=n.createBlock(Tn(n.createNodeArray([...Gt,...sr]),nt.body.statements),!0);return Tn(wa,nt.body),Qu(wa,nt.body,Di)}function io(nt){return $g(nt)&&Kr(nt)==="_this"}function no(nt){return $g(nt)&&Kr(nt)==="_super"}function os(nt){return Xg(nt)&&nt.declarationList.declarations.length===1&&Mo(nt.declarationList.declarations[0])}function Mo(nt){return Kc(nt)&&io(nt.name)&&!!nt.initializer}function $i(nt){return Zv(nt,!0)&&io(nt.left)}function ki(nt){return xd(nt)&&Ac(nt.expression)&&no(nt.expression.expression)&&xn(nt.expression.name)&&(Kr(nt.expression.name)==="call"||Kr(nt.expression.name)==="apply")&&nt.arguments.length>=1&&nt.arguments[0].kind===110}function gc(nt){return Ds(nt)&&nt.operatorToken.kind===57&&nt.right.kind===110&&ki(nt.left)}function Wl(nt){return Ds(nt)&&nt.operatorToken.kind===56&&Ds(nt.left)&&nt.left.operatorToken.kind===38&&no(nt.left.left)&&nt.left.right.kind===106&&ki(nt.right)&&Kr(nt.right.expression.name)==="apply"}function Jc(nt){return Ds(nt)&&nt.operatorToken.kind===57&&nt.right.kind===110&&Wl(nt.left)}function au(nt){return $i(nt)&&gc(nt.right)}function qn(nt){return $i(nt)&&Jc(nt.right)}function za(nt){return ki(nt)||gc(nt)||au(nt)||Wl(nt)||Jc(nt)||qn(nt)}function Ia(nt){for(let pr=0;pr0;Di--){const Ee=nt.statements[Di];if(iS(Ee)&&Ee.expression&&io(Ee.expression)){const Gt=nt.statements[Di-1];let sr;if(kb(Gt)&&au(iv(Gt.expression)))sr=Gt.expression;else if(vi&&os(Gt)){const wa=Gt.declarationList.declarations[0];za(iv(wa.initializer))&&(sr=n.createAssignment(at(),wa.initializer))}if(!sr)break;const Ii=n.createReturnStatement(sr);Ls(Ii,Gt),Tn(Ii,Gt);const Ja=n.createNodeArray([...nt.statements.slice(0,Di-1),Ii,...nt.statements.slice(Di+1)]);return Tn(Ja,nt.statements),n.updateBlock(nt,Ja)}}return nt}function na(nt){if(os(nt)){if(nt.declarationList.declarations[0].initializer.kind===110)return}else if($i(nt))return n.createPartiallyEmittedExpression(nt.right,nt);switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return nt;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?n.replacePropertyName(pr,Xo(pr.name,na,sx)):nt}}return Xo(nt,na,sx)}function _a(nt,pr){if(pr.transformFlags&16384||J&65536||J&131072)return nt;for(const vi of pr.statements)if(vi.transformFlags&134217728&&!v$(vi))return nt;return n.updateBlock(nt,Wa(nt.statements,na,dl))}function us(nt){if(ki(nt)&&nt.arguments.length===2&&xn(nt.arguments[1])&&Kr(nt.arguments[1])==="arguments")return n.createLogicalAnd(n.createStrictInequality(P_(),n.createNull()),nt);switch(nt.kind){case 219:case 218:case 262:case 176:case 175:return nt;case 177:case 178:case 174:case 172:{const pr=nt;return Qf(pr.name)?n.replacePropertyName(pr,Xo(pr.name,us,sx)):nt}}return Xo(nt,us,sx)}function Au(nt){return n.updateBlock(nt,Wa(nt.statements,us,dl))}function Qu(nt,pr,vi){const Di=nt;return nt=Ia(nt),nt=zi(nt,pr),nt!==Di&&(nt=_a(nt,pr)),vi&&(nt=Au(nt)),nt}function Cu(nt){if(nt.kind===253)return!0;if(nt.kind===245){const pr=nt;if(pr.elseStatement)return Cu(pr.thenStatement)&&Cu(pr.elseStatement)}else if(nt.kind===241){const pr=Yf(nt.statements);if(pr&&Cu(pr))return!0}return!1}function yf(){return _s(n.createThis(),8)}function w_(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(P_(),n.createNull()),n.createFunctionApplyCall(P_(),yf(),n.createIdentifier("arguments"))),yf())}function Eu(nt){if(!nt.dotDotDotToken)return $_(nt.name)?Ls(Tn(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(nt),void 0,void 0,void 0),nt),nt):nt.initializer?Ls(Tn(n.createParameterDeclaration(void 0,void 0,nt.name,void 0,void 0,void 0),nt),nt):nt}function He(nt){return nt.initializer!==void 0||$_(nt.name)}function Hn(nt,pr){if(!gt(pr.parameters,He))return!1;let vi=!1;for(const Di of pr.parameters){const{name:Ee,initializer:Gt,dotDotDotToken:sr}=Di;sr||($_(Ee)?vi=dr(nt,Di,Ee,Gt)||vi:Gt&&(Mr(nt,Di,Ee,Gt),vi=!0))}return vi}function dr(nt,pr,vi,Di){return vi.elements.length>0?(_R(nt,_s(n.createVariableStatement(void 0,n.createVariableDeclarationList(pF(pr,ct,e,0,n.getGeneratedNameForNode(pr)))),2097152)),!0):Di?(_R(nt,_s(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(pr),re.checkDefined(Bn(Di,ct,kr)))),2097152)),!0):!1}function Mr(nt,pr,vi,Di){Di=re.checkDefined(Bn(Di,ct,kr));const Ee=n.createIfStatement(n.createTypeCheck(n.cloneNode(vi),"undefined"),_s(Tn(n.createBlock([n.createExpressionStatement(_s(Tn(n.createAssignment(_s(kl(Tn(n.cloneNode(vi),vi),vi.parent),96),_s(Di,96|wd(Di)|3072)),pr),3072))]),pr),3905));lb(Ee),Tn(Ee,pr),_s(Ee,2101056),_R(nt,Ee)}function Pr(nt,pr){return!!(nt&&nt.dotDotDotToken&&!pr)}function Bt(nt,pr,vi){const Di=[],Ee=Yf(pr.parameters);if(!Pr(Ee,vi))return!1;const Gt=Ee.name.kind===80?kl(Tn(n.cloneNode(Ee.name),Ee.name),Ee.name.parent):n.createTempVariable(void 0);_s(Gt,96);const sr=Ee.name.kind===80?n.cloneNode(Ee.name):Gt,Ii=pr.parameters.length-1,Ja=n.createLoopVariable();Di.push(_s(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Gt,void 0,void 0,n.createArrayLiteralExpression([]))])),Ee),2097152));const wa=n.createForStatement(Tn(n.createVariableDeclarationList([n.createVariableDeclaration(Ja,void 0,void 0,n.createNumericLiteral(Ii))]),Ee),Tn(n.createLessThan(Ja,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),Ee),Tn(n.createPostfixIncrement(Ja),Ee),n.createBlock([lb(Tn(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(sr,Ii===0?Ja:n.createSubtract(Ja,n.createNumericLiteral(Ii))),n.createElementAccessExpression(n.createIdentifier("arguments"),Ja))),Ee))]));return _s(wa,2097152),lb(wa),Di.push(wa),Ee.name.kind!==80&&Di.push(_s(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList(pF(Ee,ct,e,0,sr))),Ee),2097152)),wx(nt,Di),!0}function ln(nt,pr){return J&131072&&pr.kind!==219?(Wn(nt,pr,n.createThis()),!0):!1}function Wn(nt,pr,vi){Zm();const Di=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(at(),void 0,void 0,vi)]));_s(Di,2100224),lp(Di,pr),_R(nt,Di)}function $r(nt,pr){if(J&32768){let vi;switch(pr.kind){case 219:return nt;case 174:case 177:case 178:vi=n.createVoidZero();break;case 176:vi=n.createPropertyAccessExpression(_s(n.createThis(),8),"constructor");break;case 262:case 218:vi=n.createConditionalExpression(n.createLogicalAnd(_s(n.createThis(),8),n.createBinaryExpression(_s(n.createThis(),8),104,n.getLocalName(pr))),void 0,n.createPropertyAccessExpression(_s(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return re.failBadSyntaxKind(pr)}const Di=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,vi)]));_s(Di,2100224),_R(nt,Di)}return nt}function Ge(nt,pr){for(const vi of pr.members)switch(vi.kind){case 240:nt.push(Br(vi));break;case 174:nt.push(Ei(N1(pr,vi),vi,pr));break;case 177:case 178:const Di=oI(pr.members,vi);vi===Di.firstAccessor&&nt.push(Ln(N1(pr,vi),Di,pr));break;case 176:case 175:break;default:re.failBadSyntaxKind(vi,F&&F.fileName);break}}function Br(nt){return Tn(n.createEmptyStatement(),nt)}function Ei(nt,pr,vi){const Di=MS(pr),Ee=XL(pr),Gt=Io(pr,pr,void 0,vi),sr=Bn(pr.name,ct,qg);re.assert(sr);let Ii;if(!Lu(sr)&&X9(e.getCompilerOptions())){const wa=Qf(sr)?sr.expression:xn(sr)?n.createStringLiteral(Ic(sr.escapedText)):sr;Ii=n.createObjectDefinePropertyCall(nt,wa,n.createPropertyDescriptor({value:Gt,enumerable:!1,writable:!0,configurable:!0}))}else{const wa=sF(n,nt,sr,pr.name);Ii=n.createAssignment(wa,Gt)}_s(Gt,3072),lp(Gt,Ee);const Ja=Tn(n.createExpressionStatement(Ii),pr);return Ls(Ja,pr),_y(Ja,Di),_s(Ja,96),Ja}function Ln(nt,pr,vi){const Di=n.createExpressionStatement(Sr(nt,pr,vi,!1));return _s(Di,3072),lp(Di,XL(pr.firstAccessor)),Di}function Sr(nt,{firstAccessor:pr,getAccessor:vi,setAccessor:Di},Ee,Gt){const sr=kl(Tn(n.cloneNode(nt),nt),nt.parent);_s(sr,3136),lp(sr,pr.name);const Ii=Bn(pr.name,ct,qg);if(re.assert(Ii),Lu(Ii))return re.failBadSyntaxKind(Ii,"Encountered unhandled private identifier while transforming ES2015.");const Ja=ype(n,Ii);_s(Ja,3104),lp(Ja,pr.name);const wa=[];if(vi){const Vl=Io(vi,void 0,void 0,Ee);lp(Vl,XL(vi)),_s(Vl,1024);const Uf=n.createPropertyAssignment("get",Vl);_y(Uf,MS(vi)),wa.push(Uf)}if(Di){const Vl=Io(Di,void 0,void 0,Ee);lp(Vl,XL(Di)),_s(Vl,1024);const Uf=n.createPropertyAssignment("set",Vl);_y(Uf,MS(Di)),wa.push(Uf)}wa.push(n.createPropertyAssignment("enumerable",vi||Di?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));const wi=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[sr,Ja,n.createObjectLiteralExpression(wa,!0)]);return Gt&&lb(wi),wi}function yi(nt){nt.transformFlags&16384&&!(J&16384)&&(J|=131072);const pr=ae;ae=void 0;const vi=Fe(15232,66),Di=n.createFunctionExpression(void 0,void 0,void 0,void 0,sm(nt.parameters,ct,e),void 0,ze(nt));return Tn(Di,nt),Ls(Di,nt),_s(Di,16),et(vi,0,0),ae=pr,Di}function go(nt){const pr=wd(nt)&524288?Fe(32662,69):Fe(32670,65),vi=ae;ae=void 0;const Di=sm(nt.parameters,ct,e),Ee=ze(nt),Gt=J&32768?n.getLocalName(nt):nt.name;return et(pr,229376,0),ae=vi,n.updateFunctionExpression(nt,void 0,nt.asteriskToken,Gt,void 0,Di,void 0,Ee)}function Ao(nt){const pr=ae;ae=void 0;const vi=Fe(32670,65),Di=sm(nt.parameters,ct,e),Ee=ze(nt),Gt=J&32768?n.getLocalName(nt):nt.name;return et(vi,229376,0),ae=pr,n.updateFunctionDeclaration(nt,Wa(nt.modifiers,ct,Mf),nt.asteriskToken,Gt,void 0,Di,void 0,Ee)}function Io(nt,pr,vi,Di){const Ee=ae;ae=void 0;const Gt=Di&&Fl(Di)&&!pd(nt)?Fe(32670,73):Fe(32670,65),sr=sm(nt.parameters,ct,e),Ii=ze(nt);return J&32768&&!vi&&(nt.kind===262||nt.kind===218)&&(vi=n.getGeneratedNameForNode(nt)),et(Gt,229376,0),ae=Ee,Ls(Tn(n.createFunctionExpression(void 0,nt.asteriskToken,vi,void 0,sr,void 0,Ii),pr),nt)}function ze(nt){let pr=!1,vi=!1,Di,Ee;const Gt=[],sr=[],Ii=nt.body;let Ja;if(u(),Ou(Ii)&&(Ja=n.copyStandardPrologue(Ii.statements,Gt,0,!1),Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct,h7),Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct,y7)),pr=Hn(sr,nt)||pr,pr=Bt(sr,nt,!1)||pr,Ou(Ii))Ja=n.copyCustomPrologue(Ii.statements,sr,Ja,ct),Di=Ii.statements,Oi(sr,Wa(Ii.statements,ct,dl,Ja)),!pr&&Ii.multiLine&&(pr=!0);else{re.assert(nt.kind===219),Di=NH(Ii,-1);const wi=nt.equalsGreaterThanToken;!Hd(wi)&&!Hd(Ii)&&(H9(wi,Ii,F)?vi=!0:pr=!0);const Vl=Bn(Ii,ct,kr),Uf=n.createReturnStatement(Vl);Tn(Uf,Ii),lW(Uf,Ii),_s(Uf,2880),sr.push(Uf),Ee=Ii}if(n.mergeLexicalEnvironment(Gt,d()),$r(Gt,nt),ln(Gt,nt),gt(Gt)&&(pr=!0),sr.unshift(...Gt),Ou(Ii)&&fv(sr,Ii.statements))return Ii;const wa=n.createBlock(Tn(n.createNodeArray(sr),Di),pr);return Tn(wa,nt.body),!pr&&vi&&_s(wa,1),Ee&&lI(wa,20,Ee),Ls(wa,nt.body),wa}function Ce(nt,pr){if(pr)return Xo(nt,ct,e);const vi=J&256?Fe(7104,512):Fe(6976,128),Di=Xo(nt,ct,e);return et(vi,0,0),Di}function kt(nt){return Xo(nt,Ct,e)}function qe(nt,pr){return Xo(nt,pr?Ct:ct,e)}function Mt(nt,pr){return wy(nt)?yI(nt,ct,e,0,!pr):nt.operatorToken.kind===28?n.updateBinaryExpression(nt,re.checkDefined(Bn(nt.left,Ct,kr)),nt.operatorToken,re.checkDefined(Bn(nt.right,pr?Ct:ct,kr))):Xo(nt,ct,e)}function ge(nt,pr){if(pr)return Xo(nt,Ct,e);let vi;for(let Ee=0;EeJa.name)),Ii=Di?n.createYieldExpression(n.createToken(42),_s(sr,8388608)):sr;if(Gt)Ee.push(n.createExpressionStatement(Ii)),Nm(pr.loopOutParameters,1,0,Ee);else{const Ja=n.createUniqueName("state"),wa=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ja,void 0,void 0,Ii)]));if(Ee.push(wa),Nm(pr.loopOutParameters,1,0,Ee),pr.nonLocalJumps&8){let wi;vi?(vi.nonLocalJumps|=8,wi=n.createReturnStatement(Ja)):wi=n.createReturnStatement(n.createPropertyAccessExpression(Ja,"value")),Ee.push(n.createIfStatement(n.createTypeCheck(Ja,"object"),wi))}if(pr.nonLocalJumps&2&&Ee.push(n.createIfStatement(n.createStrictEquality(Ja,n.createStringLiteral("break")),n.createBreakStatement())),pr.labeledNonLocalBreaks||pr.labeledNonLocalContinues){const wi=[];Xn(pr.labeledNonLocalBreaks,!0,Ja,vi,wi),Xn(pr.labeledNonLocalContinues,!1,Ja,vi,wi),Ee.push(n.createSwitchStatement(Ja,n.createCaseBlock(wi)))}}return Ee}function _n(nt,pr,vi,Di){pr?(nt.labeledNonLocalBreaks||(nt.labeledNonLocalBreaks=new Map),nt.labeledNonLocalBreaks.set(vi,Di)):(nt.labeledNonLocalContinues||(nt.labeledNonLocalContinues=new Map),nt.labeledNonLocalContinues.set(vi,Di))}function Xn(nt,pr,vi,Di,Ee){nt&&nt.forEach((Gt,sr)=>{const Ii=[];if(!Di||Di.labels&&Di.labels.get(sr)){const Ja=n.createIdentifier(sr);Ii.push(pr?n.createBreakStatement(Ja):n.createContinueStatement(Ja))}else _n(Di,pr,sr,Gt),Ii.push(n.createReturnStatement(vi));Ee.push(n.createCaseClause(n.createStringLiteral(Gt),Ii))})}function _i(nt,pr,vi,Di,Ee){const Gt=pr.name;if($_(Gt))for(const sr of Gt.elements)cb(sr)||_i(nt,sr,vi,Di,Ee);else{vi.push(n.createParameterDeclaration(void 0,void 0,Gt));const sr=E.getNodeCheckFlags(pr);if(sr&65536||Ee){const Ii=n.createUniqueName("out_"+Kr(Gt));let Ja=0;sr&65536&&(Ja|=1),bW(nt)&&(nt.initializer&&E.isBindingCapturedByNode(nt.initializer,pr)&&(Ja|=2),(nt.condition&&E.isBindingCapturedByNode(nt.condition,pr)||nt.incrementor&&E.isBindingCapturedByNode(nt.incrementor,pr))&&(Ja|=1)),Di.push({flags:Ja,originalName:Gt,outParamName:Ii})}}}function $o(nt,pr,vi,Di){const Ee=pr.properties,Gt=Ee.length;for(let sr=Di;srXg(f_)&&!!Dl(f_.declarationList.declarations).initializer,Di=ae;ae=void 0;const Ee=Wa(pr.statements,Lt,dl);ae=Di;const Gt=gi(Ee,vi),sr=gi(Ee,f_=>!vi(f_)),Ja=uc(Dl(Gt),Xg).declarationList.declarations[0],wa=iv(Ja.initializer);let wi=to(wa,Zv);!wi&&Ds(wa)&&wa.operatorToken.kind===28&&(wi=to(wa.left,Zv));const Vl=uc(wi?iv(wi.right):wa,xd),Uf=uc(iv(Vl.expression),Jm),Y_=Uf.body.statements;let Fg=0,sv=-1;const vy=[];if(wi){const f_=to(Y_[Fg],kb);f_&&(vy.push(f_),Fg++),vy.push(Y_[Fg]),Fg++,vy.push(n.createExpressionStatement(n.createAssignment(wi.left,uc(Ja.name,xn))))}for(;!iS(Zn(Y_,sv));)sv--;Oi(vy,Y_,Fg,sv),sv<-1&&Oi(vy,Y_,sv+1);const _b=to(Zn(Y_,sv),iS);for(const f_ of sr)iS(f_)&&(_b!=null&&_b.expression)&&!xn(_b.expression)?vy.push(_b):vy.push(f_);return Oi(vy,Gt,1),n.restoreOuterExpressions(nt.expression,n.restoreOuterExpressions(Ja.initializer,n.restoreOuterExpressions(wi&&wi.right,n.updateCallExpression(Vl,n.restoreOuterExpressions(Vl.expression,n.updateFunctionExpression(Uf,void 0,void 0,void 0,void 0,Uf.parameters,void 0,n.updateBlock(Uf.body,vy))),void 0,Vl.arguments))))}function Xp(nt,pr){if(nt.transformFlags&32768||nt.expression.kind===108||MT(iv(nt.expression))){const{target:vi,thisArg:Di}=n.createCallBinding(nt.expression,h);nt.expression.kind===108&&_s(Di,8);let Ee;if(nt.transformFlags&32768?Ee=n.createFunctionApplyCall(re.checkDefined(Bn(vi,Ze,kr)),nt.expression.kind===108?Di:re.checkDefined(Bn(Di,ct,kr)),sg(nt.arguments,!0,!1,!1)):Ee=Tn(n.createFunctionCallCall(re.checkDefined(Bn(vi,Ze,kr)),nt.expression.kind===108?Di:re.checkDefined(Bn(Di,ct,kr)),Wa(nt.arguments,ct,kr)),nt),nt.expression.kind===108){const Gt=n.createLogicalOr(Ee,yf());Ee=pr?n.createAssignment(at(),Gt):Gt}return Ls(Ee,nt)}return h1(nt)&&(J|=131072),Xo(nt,ct,e)}function r1(nt){if(gt(nt.arguments,WT)){const{target:pr,thisArg:vi}=n.createCallBinding(n.createPropertyAccessExpression(nt.expression,"bind"),h);return n.createNewExpression(n.createFunctionApplyCall(re.checkDefined(Bn(pr,ct,kr)),vi,sg(n.createNodeArray([n.createVoidZero(),...nt.arguments]),!0,!1,!1)),void 0,[])}return Xo(nt,ct,e)}function sg(nt,pr,vi,Di){const Ee=nt.length,Gt=Gf(fa(nt,Jt,(wa,wi,Vl,Uf)=>wi(wa,vi,Di&&Uf===Ee)));if(Gt.length===1){const wa=Gt[0];if(pr&&!S.downlevelIteration||foe(wa.expression)||uW(wa.expression,"___spreadArray"))return wa.expression}const sr=i(),Ii=Gt[0].kind!==0;let Ja=Ii?n.createArrayLiteralExpression():Gt[0].expression;for(let wa=Ii?0:1;wa0&&Di.push(n.createStringLiteral(vi.literal.text)),pr=n.createCallExpression(n.createPropertyAccessExpression(pr,"concat"),void 0,Di)}return Tn(pr,nt)}function P_(){return n.createUniqueName("_super",48)}function Qm(nt,pr){const vi=J&8&&!pr?n.createPropertyAccessExpression(Ls(P_(),nt),"prototype"):P_();return Ls(vi,nt),_y(vi,nt),lp(vi,nt),vi}function Bh(nt){return nt.keywordToken===105&&nt.name.escapedText==="target"?(J|=32768,n.createUniqueName("_newTarget",48)):nt}function P1(nt,pr,vi){if(ve&1&&F_(pr)){const Di=Fe(32670,wd(pr)&16?81:65);k(nt,pr,vi),et(Di,0,0);return}k(nt,pr,vi)}function VT(){ve&2||(ve|=2,e.enableSubstitution(80))}function Zm(){ve&1||(ve|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function fb(nt,pr){return pr=P(nt,pr),nt===1?$0(pr):xn(pr)?FS(pr):pr}function FS(nt){if(ve&2&&!vpe(nt)){const pr=__(nt,xn);if(pr&&dT(pr))return Tn(n.getGeneratedNameForNode(pr),nt)}return nt}function dT(nt){switch(nt.parent.kind){case 208:case 263:case 266:case 260:return nt.parent.name===nt&&E.isDeclarationWithCollidingName(nt.parent)}return!1}function $0(nt){switch(nt.kind){case 80:return xv(nt);case 110:return q0(nt)}return nt}function xv(nt){if(ve&2&&!vpe(nt)){const pr=E.getReferencedDeclarationWithCollidingName(nt);if(pr&&!(Fl(pr)&&t2(pr,nt)))return Tn(n.getGeneratedNameForNode(i_(pr)),nt)}return nt}function t2(nt,pr){let vi=__(pr);if(!vi||vi===nt||vi.end<=nt.pos||vi.pos>=nt.end)return!1;const Di=QD(nt);for(;vi;){if(vi===Di||vi===nt)return!1;if(J_(vi)&&vi.parent===nt)return!0;vi=vi.parent}return!1}function q0(nt){return ve&1&&J&16?Tn(at(),nt):nt}function N1(nt,pr){return pd(pr)?n.getInternalName(nt):n.createPropertyAccessExpression(n.getInternalName(nt),"prototype")}function i0(nt,pr){if(!nt||!pr||gt(nt.parameters))return!1;const vi=pp(nt.body.statements);if(!vi||!Hd(vi)||vi.kind!==244)return!1;const Di=vi.expression;if(!Hd(Di)||Di.kind!==213)return!1;const Ee=Di.expression;if(!Hd(Ee)||Ee.kind!==108)return!1;const Gt=Vb(Di.arguments);if(!Gt||!Hd(Gt)||Gt.kind!==230)return!1;const sr=Gt.expression;return xn(sr)&&sr.escapedText==="arguments"}}var mct=G({"src/compiler/transformers/es2015.ts"(){md()}});function Pme(e){const{factory:n}=e,i=e.getCompilerOptions();let c,u;(i.jsx===1||i.jsx===3)&&(c=e.onEmitNode,e.onEmitNode=S,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),u=[]);const d=e.onSubstituteNode;return e.onSubstituteNode=E,e.enableSubstitution(211),e.enableSubstitution(303),_C(e,h);function h($){return $}function S($,J,X){switch(J.kind){case 286:case 287:case 285:const ie=J.tagName;u[Nb(ie)]=!0;break}c($,J,X)}function E($,J){return J.id&&u&&u[J.id]?d($,J):(J=d($,J),Ac(J)?P(J):tl(J)?k(J):J)}function P($){if(Lu($.name))return $;const J=F($.name);return J?Tn(n.createElementAccessExpression($.expression,J),$):$}function k($){const J=xn($.name)&&F($.name);return J?n.updatePropertyAssignment($,J,$.initializer):$}function F($){const J=uP($);if(J!==void 0&&J>=83&&J<=118)return Tn(n.createStringLiteralFromNode($),$)}}var YHe=G({"src/compiler/transformers/es5.ts"(){md()}});function gct(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function sxe(e){const{factory:n,getEmitHelperFactory:i,resumeLexicalEnvironment:c,endLexicalEnvironment:u,hoistFunctionDeclaration:d,hoistVariableDeclaration:h}=e,S=e.getCompilerOptions(),E=iu(S),P=e.getEmitResolver(),k=e.onSubstituteNode;e.onSubstituteNode=kt;let F,$,J,X,ie,ae,ve,we,Fe,et,Pe=1,dt,Ie,ct,Ct,Lt=0,Ze=0,Ke,st,It,Yt,Et,at,Qt,nn;return _C(e,Rn);function Rn(Jt){if(Jt.isDeclarationFile||!(Jt.transformFlags&2048))return Jt;const ci=Xo(Jt,cn,e);return $N(ci,e.readEmitHelpers()),ci}function cn(Jt){const ci=Jt.transformFlags;return X?qt(Jt):J?Kt(Jt):Vd(Jt)&&Jt.asteriskToken?Wr(Jt):ci&2048?Xo(Jt,cn,e):Jt}function qt(Jt){switch(Jt.kind){case 246:return w_(Jt);case 247:return He(Jt);case 255:return Sr(Jt);case 256:return go(Jt);default:return Kt(Jt)}}function Kt(Jt){switch(Jt.kind){case 262:return jt(Jt);case 218:return En(Jt);case 177:case 178:return fr(Jt);case 243:return Vr(Jt);case 248:return dr(Jt);case 249:return Pr(Jt);case 252:return $r(Jt);case 251:return ln(Jt);case 253:return Br(Jt);default:return Jt.transformFlags&1048576?wr(Jt):Jt.transformFlags&4196352?Xo(Jt,cn,e):Jt}}function wr(Jt){switch(Jt.kind){case 226:return Pn(Jt);case 361:return no(Jt);case 227:return Mo(Jt);case 229:return $i(Jt);case 209:return ki(Jt);case 210:return Wl(Jt);case 212:return Jc(Jt);case 213:return au(Jt);case 214:return qn(Jt);default:return Xo(Jt,cn,e)}}function Wr(Jt){switch(Jt.kind){case 262:return jt(Jt);case 218:return En(Jt);default:return re.failBadSyntaxKind(Jt)}}function jt(Jt){if(Jt.asteriskToken)Jt=Ls(Tn(n.createFunctionDeclaration(Jt.modifiers,void 0,Jt.name,void 0,sm(Jt.parameters,cn,e),void 0,Tr(Jt.body)),Jt),Jt);else{const ci=J,da=X;J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da}if(J){d(Jt);return}else return Jt}function En(Jt){if(Jt.asteriskToken)Jt=Ls(Tn(n.createFunctionExpression(void 0,void 0,Jt.name,void 0,sm(Jt.parameters,cn,e),void 0,Tr(Jt.body)),Jt),Jt);else{const ci=J,da=X;J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da}return Jt}function fr(Jt){const ci=J,da=X;return J=!1,X=!1,Jt=Xo(Jt,cn,e),J=ci,X=da,Jt}function Tr(Jt){const ci=[],da=J,Hu=X,t_=ie,A_=ae,gd=ve,Dg=we,um=Fe,Ig=et,P_=Pe,Qm=dt,Bh=Ie,P1=ct,VT=Ct;J=!0,X=!1,ie=void 0,ae=void 0,ve=void 0,we=void 0,Fe=void 0,et=void 0,Pe=1,dt=void 0,Ie=void 0,ct=void 0,Ct=n.createTempVariable(void 0),c();const Zm=n.copyPrologue(Jt.statements,ci,!1,cn);za(Jt.statements,Zm);const fb=_n();return Um(ci,u()),ci.push(n.createReturnStatement(fb)),J=da,X=Hu,ie=t_,ae=A_,ve=gd,we=Dg,Fe=um,et=Ig,Pe=P_,dt=Qm,Ie=Bh,ct=P1,Ct=VT,Tn(n.createBlock(ci,Jt.multiLine),Jt)}function Vr(Jt){if(Jt.transformFlags&1048576){Au(Jt.declarationList);return}else{if(wd(Jt)&2097152)return Jt;for(const da of Jt.declarationList.declarations)h(da.name);const ci=n3(Jt.declarationList);return ci.length===0?void 0:lp(n.createExpressionStatement(n.inlineExpressions(Vn(ci,Qu))),Jt)}}function Pn(Jt){const ci=Y8(Jt);switch(ci){case 0:return Ki(Jt);case 1:return Fr(Jt);default:return re.assertNever(ci)}}function Fr(Jt){const{left:ci,right:da}=Jt;if(ze(da)){let Hu;switch(ci.kind){case 211:Hu=n.updatePropertyAccessExpression(ci,ge(re.checkDefined(Bn(ci.expression,cn,ib))),ci.name);break;case 212:Hu=n.updateElementAccessExpression(ci,ge(re.checkDefined(Bn(ci.expression,cn,ib))),ge(re.checkDefined(Bn(ci.argumentExpression,cn,kr))));break;default:Hu=re.checkDefined(Bn(ci,cn,kr));break}const t_=Jt.operatorToken.kind;return lj(t_)?Tn(n.createAssignment(Hu,Tn(n.createBinaryExpression(ge(Hu),RQ(t_),re.checkDefined(Bn(da,cn,kr))),Jt)),Jt):n.updateBinaryExpression(Jt,Hu,Jt.operatorToken,re.checkDefined(Bn(da,cn,kr)))}return Xo(Jt,cn,e)}function Ki(Jt){return ze(Jt.right)?U9(Jt.operatorToken.kind)?os(Jt):Jt.operatorToken.kind===28?io(Jt):n.updateBinaryExpression(Jt,ge(re.checkDefined(Bn(Jt.left,cn,kr))),Jt.operatorToken,re.checkDefined(Bn(Jt.right,cn,kr))):Xo(Jt,cn,e)}function io(Jt){let ci=[];return da(Jt.left),da(Jt.right),n.inlineExpressions(ci);function da(Hu){Ds(Hu)&&Hu.operatorToken.kind===28?(da(Hu.left),da(Hu.right)):(ze(Hu)&&ci.length>0&&(fe(1,[n.createExpressionStatement(n.inlineExpressions(ci))]),ci=[]),ci.push(re.checkDefined(Bn(Hu,cn,kr))))}}function no(Jt){let ci=[];for(const da of Jt.elements)Ds(da)&&da.operatorToken.kind===28?ci.push(io(da)):(ze(da)&&ci.length>0&&(fe(1,[n.createExpressionStatement(n.inlineExpressions(ci))]),ci=[]),ci.push(re.checkDefined(Bn(da,cn,kr))));return n.inlineExpressions(ci)}function os(Jt){const ci=Jn(),da=mn();return d_(da,re.checkDefined(Bn(Jt.left,cn,kr)),Jt.left),Jt.operatorToken.kind===56?Pm(ci,da,Jt.left):Qi(ci,da,Jt.left),d_(da,re.checkDefined(Bn(Jt.right,cn,kr)),Jt.right),Nn(ci),da}function Mo(Jt){if(ze(Jt.whenTrue)||ze(Jt.whenFalse)){const ci=Jn(),da=Jn(),Hu=mn();return Pm(ci,re.checkDefined(Bn(Jt.condition,cn,kr)),Jt.condition),d_(Hu,re.checkDefined(Bn(Jt.whenTrue,cn,kr)),Jt.whenTrue),Ka(da),Nn(ci),d_(Hu,re.checkDefined(Bn(Jt.whenFalse,cn,kr)),Jt.whenFalse),Nn(da),Hu}return Xo(Jt,cn,e)}function $i(Jt){const ci=Jn(),da=Bn(Jt.expression,cn,kr);if(Jt.asteriskToken){const Hu=wd(Jt.expression)&8388608?da:Tn(i().createValuesHelper(da),Jt);Ag(Hu,Jt)}else va(da,Jt);return Nn(ci),bE(Jt)}function ki(Jt){return gc(Jt.elements,void 0,void 0,Jt.multiLine)}function gc(Jt,ci,da,Hu){const t_=Ce(Jt);let A_;if(t_>0){A_=mn();const um=Wa(Jt,cn,kr,0,t_);d_(A_,n.createArrayLiteralExpression(ci?[ci,...um]:um)),ci=void 0}const gd=Em(Jt,Dg,[],t_);return A_?n.createArrayConcatCall(A_,[n.createArrayLiteralExpression(gd,Hu)]):Tn(n.createArrayLiteralExpression(ci?[ci,...gd]:gd,Hu),da);function Dg(um,Ig){if(ze(Ig)&&um.length>0){const P_=A_!==void 0;A_||(A_=mn()),d_(A_,P_?n.createArrayConcatCall(A_,[n.createArrayLiteralExpression(um,Hu)]):n.createArrayLiteralExpression(ci?[ci,...um]:um,Hu)),ci=void 0,um=[]}return um.push(re.checkDefined(Bn(Ig,cn,kr))),um}}function Wl(Jt){const ci=Jt.properties,da=Jt.multiLine,Hu=Ce(ci),t_=mn();d_(t_,n.createObjectLiteralExpression(Wa(ci,cn,DN,0,Hu),da));const A_=Em(ci,gd,[],Hu);return A_.push(da?lb(kl(Tn(n.cloneNode(t_),t_),t_.parent)):t_),n.inlineExpressions(A_);function gd(Dg,um){ze(um)&&Dg.length>0&&(qo(n.createExpressionStatement(n.inlineExpressions(Dg))),Dg=[]);const Ig=LEe(n,Jt,um,t_),P_=Bn(Ig,cn,kr);return P_&&(da&&lb(P_),Dg.push(P_)),Dg}}function Jc(Jt){return ze(Jt.argumentExpression)?n.updateElementAccessExpression(Jt,ge(re.checkDefined(Bn(Jt.expression,cn,ib))),re.checkDefined(Bn(Jt.argumentExpression,cn,kr))):Xo(Jt,cn,e)}function au(Jt){if(!Py(Jt)&&Ot(Jt.arguments,ze)){const{target:ci,thisArg:da}=n.createCallBinding(Jt.expression,h,E,!0);return Ls(Tn(n.createFunctionApplyCall(ge(re.checkDefined(Bn(ci,cn,ib))),da,gc(Jt.arguments)),Jt),Jt)}return Xo(Jt,cn,e)}function qn(Jt){if(Ot(Jt.arguments,ze)){const{target:ci,thisArg:da}=n.createCallBinding(n.createPropertyAccessExpression(Jt.expression,"bind"),h);return Ls(Tn(n.createNewExpression(n.createFunctionApplyCall(ge(re.checkDefined(Bn(ci,cn,kr))),da,gc(Jt.arguments,n.createVoidZero())),void 0,[]),Jt),Jt)}return Xo(Jt,cn,e)}function za(Jt,ci=0){const da=Jt.length;for(let Hu=ci;Hu0)break;t_.push(Qu(gd))}t_.length&&(qo(n.createExpressionStatement(n.inlineExpressions(t_))),Hu+=t_.length,t_=[])}}function Qu(Jt){return lp(n.createAssignment(lp(n.cloneNode(Jt.name),Jt.name),re.checkDefined(Bn(Jt.initializer,cn,kr))),Jt)}function Cu(Jt){if(ze(Jt))if(ze(Jt.thenStatement)||ze(Jt.elseStatement)){const ci=Jn(),da=Jt.elseStatement?Jn():void 0;Pm(Jt.elseStatement?da:ci,re.checkDefined(Bn(Jt.expression,cn,kr)),Jt.expression),Ia(Jt.thenStatement),Jt.elseStatement&&(Ka(ci),Nn(da),Ia(Jt.elseStatement)),Nn(ci)}else qo(Bn(Jt,cn,dl));else qo(Bn(Jt,cn,dl))}function yf(Jt){if(ze(Jt)){const ci=Jn(),da=Jn();ma(ci),Nn(da),Ia(Jt.statement),Nn(ci),Qi(da,re.checkDefined(Bn(Jt.expression,cn,kr))),Bl()}else qo(Bn(Jt,cn,dl))}function w_(Jt){return X?(Tf(),Jt=Xo(Jt,cn,e),Bl(),Jt):Xo(Jt,cn,e)}function Eu(Jt){if(ze(Jt)){const ci=Jn(),da=ma(ci);Nn(ci),Pm(da,re.checkDefined(Bn(Jt.expression,cn,kr))),Ia(Jt.statement),Ka(ci),Bl()}else qo(Bn(Jt,cn,dl))}function He(Jt){return X?(Tf(),Jt=Xo(Jt,cn,e),Bl(),Jt):Xo(Jt,cn,e)}function Hn(Jt){if(ze(Jt)){const ci=Jn(),da=Jn(),Hu=ma(da);if(Jt.initializer){const t_=Jt.initializer;Kp(t_)?Au(t_):qo(Tn(n.createExpressionStatement(re.checkDefined(Bn(t_,cn,kr))),t_))}Nn(ci),Jt.condition&&Pm(Hu,re.checkDefined(Bn(Jt.condition,cn,kr))),Ia(Jt.statement),Nn(da),Jt.incrementor&&qo(Tn(n.createExpressionStatement(re.checkDefined(Bn(Jt.incrementor,cn,kr))),Jt.incrementor)),Ka(ci),Bl()}else qo(Bn(Jt,cn,dl))}function dr(Jt){X&&Tf();const ci=Jt.initializer;if(ci&&Kp(ci)){for(const Hu of ci.declarations)h(Hu.name);const da=n3(ci);Jt=n.updateForStatement(Jt,da.length>0?n.inlineExpressions(Vn(da,Qu)):void 0,Bn(Jt.condition,cn,kr),Bn(Jt.incrementor,cn,kr),LS(Jt.statement,cn,e))}else Jt=Xo(Jt,cn,e);return X&&Bl(),Jt}function Mr(Jt){if(ze(Jt)){const ci=mn(),da=mn(),Hu=mn(),t_=n.createLoopVariable(),A_=Jt.initializer;h(t_),d_(ci,re.checkDefined(Bn(Jt.expression,cn,kr))),d_(da,n.createArrayLiteralExpression()),qo(n.createForInStatement(Hu,ci,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(da,"push"),void 0,[Hu])))),d_(t_,n.createNumericLiteral(0));const gd=Jn(),Dg=Jn(),um=ma(Dg);Nn(gd),Pm(um,n.createLessThan(t_,n.createPropertyAccessExpression(da,"length"))),d_(Hu,n.createElementAccessExpression(da,t_)),Pm(Dg,n.createBinaryExpression(Hu,103,ci));let Ig;if(Kp(A_)){for(const P_ of A_.declarations)h(P_.name);Ig=n.cloneNode(A_.declarations[0].name)}else Ig=re.checkDefined(Bn(A_,cn,kr)),re.assert(ib(Ig));d_(Ig,Hu),Ia(Jt.statement),Nn(Dg),qo(n.createExpressionStatement(n.createPostfixIncrement(t_))),Ka(gd),Bl()}else qo(Bn(Jt,cn,dl))}function Pr(Jt){X&&Tf();const ci=Jt.initializer;if(Kp(ci)){for(const da of ci.declarations)h(da.name);Jt=n.updateForInStatement(Jt,ci.declarations[0].name,re.checkDefined(Bn(Jt.expression,cn,kr)),re.checkDefined(Bn(Jt.statement,cn,dl,n.liftToBlock)))}else Jt=Xo(Jt,cn,e);return X&&Bl(),Jt}function Bt(Jt){const ci=R_(Jt.label?Kr(Jt.label):void 0);ci>0?Ka(ci,Jt):qo(Jt)}function ln(Jt){if(X){const ci=R_(Jt.label&&Kr(Jt.label));if(ci>0)return M_(ci,Jt)}return Xo(Jt,cn,e)}function Wn(Jt){const ci=pl(Jt.label?Kr(Jt.label):void 0);ci>0?Ka(ci,Jt):qo(Jt)}function $r(Jt){if(X){const ci=pl(Jt.label&&Kr(Jt.label));if(ci>0)return M_(ci,Jt)}return Xo(Jt,cn,e)}function Ge(Jt){x0(Bn(Jt.expression,cn,kr),Jt)}function Br(Jt){return oy(Bn(Jt.expression,cn,kr),Jt)}function Ei(Jt){ze(Jt)?(Ts(ge(re.checkDefined(Bn(Jt.expression,cn,kr)))),Ia(Jt.statement),Cc()):qo(Bn(Jt,cn,dl))}function Ln(Jt){if(ze(Jt.caseBlock)){const ci=Jt.caseBlock,da=ci.clauses.length,Hu=u_(),t_=ge(re.checkDefined(Bn(Jt.expression,cn,kr))),A_=[];let gd=-1;for(let Ig=0;Ig0)break;um.push(n.createCaseClause(re.checkDefined(Bn(Qm.expression,cn,kr)),[M_(A_[P_],Qm.expression)]))}else Ig++}um.length&&(qo(n.createSwitchStatement(t_,n.createCaseBlock(um))),Dg+=um.length,um=[]),Ig>0&&(Dg+=Ig,Ig=0)}gd>=0?Ka(A_[gd]):Ka(Hu);for(let Ig=0;Ig=0;da--){const Hu=we[da];if(xg(Hu)){if(Hu.labelText===Jt)return!0}else break}return!1}function pl(Jt){if(we)if(Jt)for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(xg(da)&&da.labelText===Jt)return da.breakLabel;if(Yg(da)&&Og(Jt,ci-1))return da.breakLabel}else for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Yg(da))return da.breakLabel}return 0}function R_(Jt){if(we)if(Jt)for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Wy(da)&&Og(Jt,ci-1))return da.continueLabel}else for(let ci=we.length-1;ci>=0;ci--){const da=we[ci];if(Wy(da))return da.continueLabel}return 0}function og(Jt){if(Jt!==void 0&&Jt>0){et===void 0&&(et=[]);const ci=n.createNumericLiteral(-1);return et[Jt]===void 0?et[Jt]=[ci]:et[Jt].push(ci),ci}return n.createOmittedExpression()}function km(Jt){const ci=n.createNumericLiteral(Jt);return koe(ci,3,gct(Jt)),ci}function M_(Jt,ci){return re.assertLessThan(0,Jt,"Invalid label"),Tn(n.createReturnStatement(n.createArrayLiteralExpression([km(3),og(Jt)])),ci)}function oy(Jt,ci){return Tn(n.createReturnStatement(n.createArrayLiteralExpression(Jt?[km(2),Jt]:[km(2)])),ci)}function bE(Jt){return Tn(n.createCallExpression(n.createPropertyAccessExpression(Ct,"sent"),void 0,[]),Jt)}function hh(){fe(0)}function qo(Jt){Jt?fe(1,[Jt]):hh()}function d_(Jt,ci,da){fe(2,[Jt,ci],da)}function Ka(Jt,ci){fe(3,[Jt],ci)}function Qi(Jt,ci,da){fe(4,[Jt,ci],da)}function Pm(Jt,ci,da){fe(5,[Jt,ci],da)}function Ag(Jt,ci){fe(7,[Jt],ci)}function va(Jt,ci){fe(6,[Jt],ci)}function x0(Jt,ci){fe(8,[Jt],ci)}function Nm(Jt,ci){fe(9,[Jt],ci)}function Md(){fe(10)}function fe(Jt,ci,da){dt===void 0&&(dt=[],Ie=[],ct=[]),Fe===void 0&&Nn(Jn());const Hu=dt.length;dt[Hu]=Jt,Ie[Hu]=ci,ct[Hu]=da}function _n(){Lt=0,Ze=0,Ke=void 0,st=!1,It=!1,Yt=void 0,Et=void 0,at=void 0,Qt=void 0,nn=void 0;const Jt=Xn();return i().createGeneratorHelper(_s(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,Ct)],void 0,n.createBlock(Jt,Jt.length>0)),1048576))}function Xn(){if(dt){for(let Jt=0;Jt=0;ci--){const da=nn[ci];Et=[n.createWithStatement(da.expression,n.createBlock(Et))]}if(Qt){const{startLabel:ci,catchLabel:da,finallyLabel:Hu,endLabel:t_}=Qt;Et.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(Ct,"trys"),"push"),void 0,[n.createArrayLiteralExpression([og(ci),og(da),og(Hu),og(t_)])]))),Qt=void 0}Jt&&Et.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(Ct,"label"),n.createNumericLiteral(Ze+1))))}Yt.push(n.createCaseClause(n.createNumericLiteral(Ze),Et||[])),Et=void 0}function Fs(Jt){if(Fe)for(let ci=0;cii.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(Kr(Nn))),Jn),i.createVoidZero())));ur(Ce,Bn(ae.externalHelpersImportDeclaration,Ke,dl)),Oi(Ce,Wa(ze.statements,Ke,dl,qe)),Ze(Ce,!1),Um(Ce,d());const Mt=i.updateSourceFile(ze,Tn(i.createNodeArray(Ce),ze.statements));return $N(Mt,e.readEmitHelpers()),Mt}function dt(ze){const Ce=i.createIdentifier("define"),kt=HJ(i,ze,P,S),qe=Rx(ze)&&ze,{aliasedModuleNames:Mt,unaliasedModuleNames:ge,importAliasNames:mn}=ct(ze,!0),Jn=i.updateSourceFile(ze,Tn(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(Ce,void 0,[...kt?[kt]:[],i.createArrayLiteralExpression(qe?Yn:[i.createStringLiteral("require"),i.createStringLiteral("exports"),...Mt,...ge]),qe?qe.statements.length?qe.statements[0].expression:i.createObjectLiteralExpression():i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,"exports"),...mn],void 0,Lt(ze))]))]),ze.statements));return $N(Jn,e.readEmitHelpers()),Jn}function Ie(ze){const{aliasedModuleNames:Ce,unaliasedModuleNames:kt,importAliasNames:qe}=ct(ze,!1),Mt=HJ(i,ze,P,S),ge=i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"factory")],void 0,Tn(i.createBlock([i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("module"),"object"),i.createTypeCheck(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),"object")),i.createBlock([i.createVariableStatement(void 0,[i.createVariableDeclaration("v",void 0,void 0,i.createCallExpression(i.createIdentifier("factory"),void 0,[i.createIdentifier("require"),i.createIdentifier("exports")]))]),_s(i.createIfStatement(i.createStrictInequality(i.createIdentifier("v"),i.createIdentifier("undefined")),i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),i.createIdentifier("v")))),1)]),i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("define"),"function"),i.createPropertyAccessExpression(i.createIdentifier("define"),"amd")),i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("define"),void 0,[...Mt?[Mt]:[],i.createArrayLiteralExpression([i.createStringLiteral("require"),i.createStringLiteral("exports"),...Ce,...kt]),i.createIdentifier("factory")]))])))],!0),void 0)),mn=i.updateSourceFile(ze,Tn(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(ge,void 0,[i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,"exports"),...qe],void 0,Lt(ze))]))]),ze.statements));return $N(mn,e.readEmitHelpers()),mn}function ct(ze,Ce){const kt=[],qe=[],Mt=[];for(const ge of ze.amdDependencies)ge.name?(kt.push(i.createStringLiteral(ge.path)),Mt.push(i.createParameterDeclaration(void 0,void 0,ge.name))):qe.push(i.createStringLiteral(ge.path));for(const ge of ae.externalImports){const mn=oD(i,ge,ie,P,E,S),Jn=C3(i,ge,ie);mn&&(Ce&&Jn?(_s(Jn,8),kt.push(mn),Mt.push(i.createParameterDeclaration(void 0,void 0,Jn))):qe.push(mn))}return{aliasedModuleNames:kt,unaliasedModuleNames:qe,importAliasNames:Mt}}function Ct(ze){if(Yb(ze)||ry(ze)||!oD(i,ze,ie,P,E,S))return;const Ce=C3(i,ze,ie),kt=au(ze,Ce);if(kt!==Ce)return i.createExpressionStatement(i.createAssignment(Ce,kt))}function Lt(ze){u();const Ce=[],kt=i.copyPrologue(ze.statements,Ce,!S.noImplicitUseStrict,Ke);et()&&ur(Ce,Bt()),Nt(ae.exportedNames)&&ur(Ce,i.createExpressionStatement(Em(ae.exportedNames,(Mt,ge)=>i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(Kr(ge))),Mt),i.createVoidZero()))),ur(Ce,Bn(ae.externalHelpersImportDeclaration,Ke,dl)),F===2&&Oi(Ce,Qo(ae.externalImports,Ct)),Oi(Ce,Wa(ze.statements,Ke,dl,kt)),Ze(Ce,!0),Um(Ce,d());const qe=i.createBlock(Ce,!0);return we&&v3(qe,QHe),qe}function Ze(ze,Ce){if(ae.exportEquals){const kt=Bn(ae.exportEquals.expression,Yt,kr);if(kt)if(Ce){const qe=i.createReturnStatement(kt);Tn(qe,ae.exportEquals),_s(qe,3840),ze.push(qe)}else{const qe=i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),kt));Tn(qe,ae.exportEquals),_s(qe,3072),ze.push(qe)}}}function Ke(ze){switch(ze.kind){case 272:return qn(ze);case 271:return Ia(ze);case 278:return zi(ze);case 277:return na(ze);default:return st(ze)}}function st(ze){switch(ze.kind){case 243:return Au(ze);case 262:return _a(ze);case 263:return us(ze);case 248:return nn(ze,!0);case 249:return Rn(ze);case 250:return cn(ze);case 246:return qt(ze);case 247:return Kt(ze);case 256:return wr(ze);case 254:return Wr(ze);case 245:return jt(ze);case 255:return En(ze);case 269:return fr(ze);case 296:return Tr(ze);case 297:return Vr(ze);case 258:return Pn(ze);case 299:return Fr(ze);case 241:return Ki(ze);default:return Yt(ze)}}function It(ze,Ce){if(!(ze.transformFlags&276828160))return ze;switch(ze.kind){case 248:return nn(ze,!1);case 244:return io(ze);case 217:return no(ze,Ce);case 360:return os(ze,Ce);case 213:if(Py(ze)&&ie.impliedNodeFormat===void 0)return $i(ze);break;case 226:if(wy(ze))return Qt(ze,Ce);break;case 224:case 225:return Mo(ze,Ce)}return Xo(ze,Yt,e)}function Yt(ze){return It(ze,!1)}function Et(ze){return It(ze,!0)}function at(ze){if(el(ze))for(const Ce of ze.properties)switch(Ce.kind){case 303:if(at(Ce.initializer))return!0;break;case 304:if(at(Ce.name))return!0;break;case 305:if(at(Ce.expression))return!0;break;case 174:case 177:case 178:return!1;default:re.assertNever(Ce,"Unhandled object member kind")}else if(Ed(ze)){for(const Ce of ze.elements)if(WT(Ce)){if(at(Ce.expression))return!0}else if(at(Ce))return!0}else if(xn(ze))return Nt(Io(ze))>(CW(ze)?1:0);return!1}function Qt(ze,Ce){return at(ze.left)?yI(ze,Yt,e,0,!Ce,Qu):Xo(ze,Yt,e)}function nn(ze,Ce){if(Ce&&ze.initializer&&Kp(ze.initializer)&&!(ze.initializer.flags&7)){const kt=He(void 0,ze.initializer,!1);if(kt){const qe=[],Mt=Bn(ze.initializer,Et,Kp),ge=i.createVariableStatement(void 0,Mt);qe.push(ge),Oi(qe,kt);const mn=Bn(ze.condition,Yt,kr),Jn=Bn(ze.incrementor,Et,kr),Nn=LS(ze.statement,Ce?st:Yt,e);return qe.push(i.updateForStatement(ze,void 0,mn,Jn,Nn)),qe}}return i.updateForStatement(ze,Bn(ze.initializer,Et,DS),Bn(ze.condition,Yt,kr),Bn(ze.incrementor,Et,kr),LS(ze.statement,Ce?st:Yt,e))}function Rn(ze){if(Kp(ze.initializer)&&!(ze.initializer.flags&7)){const Ce=He(void 0,ze.initializer,!0);if(gt(Ce)){const kt=Bn(ze.initializer,Et,DS),qe=Bn(ze.expression,Yt,kr),Mt=LS(ze.statement,st,e),ge=Ou(Mt)?i.updateBlock(Mt,[...Ce,...Mt.statements]):i.createBlock([...Ce,Mt],!0);return i.updateForInStatement(ze,kt,qe,ge)}}return i.updateForInStatement(ze,Bn(ze.initializer,Et,DS),Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function cn(ze){if(Kp(ze.initializer)&&!(ze.initializer.flags&7)){const Ce=He(void 0,ze.initializer,!0),kt=Bn(ze.initializer,Et,DS),qe=Bn(ze.expression,Yt,kr);let Mt=LS(ze.statement,st,e);return gt(Ce)&&(Mt=Ou(Mt)?i.updateBlock(Mt,[...Ce,...Mt.statements]):i.createBlock([...Ce,Mt],!0)),i.updateForOfStatement(ze,ze.awaitModifier,kt,qe,Mt)}return i.updateForOfStatement(ze,ze.awaitModifier,Bn(ze.initializer,Et,DS),Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function qt(ze){return i.updateDoStatement(ze,LS(ze.statement,st,e),Bn(ze.expression,Yt,kr))}function Kt(ze){return i.updateWhileStatement(ze,Bn(ze.expression,Yt,kr),LS(ze.statement,st,e))}function wr(ze){return i.updateLabeledStatement(ze,ze.label,re.checkDefined(Bn(ze.statement,st,dl,i.liftToBlock)))}function Wr(ze){return i.updateWithStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.statement,st,dl,i.liftToBlock)))}function jt(ze){return i.updateIfStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.thenStatement,st,dl,i.liftToBlock)),Bn(ze.elseStatement,st,dl,i.liftToBlock))}function En(ze){return i.updateSwitchStatement(ze,Bn(ze.expression,Yt,kr),re.checkDefined(Bn(ze.caseBlock,st,Fv)))}function fr(ze){return i.updateCaseBlock(ze,Wa(ze.clauses,st,$U))}function Tr(ze){return i.updateCaseClause(ze,Bn(ze.expression,Yt,kr),Wa(ze.statements,st,dl))}function Vr(ze){return Xo(ze,st,e)}function Pn(ze){return Xo(ze,st,e)}function Fr(ze){return i.updateCatchClause(ze,ze.variableDeclaration,re.checkDefined(Bn(ze.block,st,Ou)))}function Ki(ze){return ze=Xo(ze,st,e),ze}function io(ze){return i.updateExpressionStatement(ze,Bn(ze.expression,Et,kr))}function no(ze,Ce){return i.updateParenthesizedExpression(ze,Bn(ze.expression,Ce?Et:Yt,kr))}function os(ze,Ce){return i.updatePartiallyEmittedExpression(ze,Bn(ze.expression,Ce?Et:Yt,kr))}function Mo(ze,Ce){if((ze.operator===46||ze.operator===47)&&xn(ze.operand)&&!$g(ze.operand)&&!mI(ze.operand)&&!$ie(ze.operand)){const kt=Io(ze.operand);if(kt){let qe,Mt=Bn(ze.operand,Yt,kr);vk(ze)?Mt=i.updatePrefixUnaryExpression(ze,Mt):(Mt=i.updatePostfixUnaryExpression(ze,Mt),Ce||(qe=i.createTempVariable(h),Mt=i.createAssignment(qe,Mt),Tn(Mt,ze)),Mt=i.createComma(Mt,i.cloneNode(ze.operand)),Tn(Mt,ze));for(const ge of kt)ve[vm(Mt)]=!0,Mt=Wn(ge,Mt),Tn(Mt,ze);return qe&&(ve[vm(Mt)]=!0,Mt=i.createComma(Mt,qe),Tn(Mt,ze)),Mt}}return Xo(ze,Yt,e)}function $i(ze){if(F===0&&k>=7)return Xo(ze,Yt,e);const Ce=oD(i,ze,ie,P,E,S),kt=Bn(pp(ze.arguments),Yt,kr),qe=Ce&&(!kt||!Sd(kt)||kt.text!==Ce.text)?Ce:kt,Mt=!!(ze.transformFlags&16384);switch(S.module){case 2:return gc(qe,Mt);case 3:return ki(qe??i.createVoidZero(),Mt);case 1:default:return Wl(qe)}}function ki(ze,Ce){if(we=!0,L3(ze)){const kt=$g(ze)?ze:Sd(ze)?i.createStringLiteralFromNode(ze):_s(Tn(i.cloneNode(ze),ze),3072);return i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,Wl(ze),void 0,gc(kt,Ce))}else{const kt=i.createTempVariable(h);return i.createComma(i.createAssignment(kt,ze),i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,Wl(kt,!0),void 0,gc(kt,Ce)))}}function gc(ze,Ce){const kt=i.createUniqueName("resolve"),qe=i.createUniqueName("reject"),Mt=[i.createParameterDeclaration(void 0,void 0,kt),i.createParameterDeclaration(void 0,void 0,qe)],ge=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([ze||i.createOmittedExpression()]),kt,qe]))]);let mn;k>=2?mn=i.createArrowFunction(void 0,void 0,Mt,void 0,void 0,ge):(mn=i.createFunctionExpression(void 0,void 0,void 0,void 0,Mt,void 0,ge),Ce&&_s(mn,16));const Jn=i.createNewExpression(i.createIdentifier("Promise"),void 0,[mn]);return b1(S)?i.createCallExpression(i.createPropertyAccessExpression(Jn,i.createIdentifier("then")),void 0,[c().createImportStarCallbackHelper()]):Jn}function Wl(ze,Ce){const kt=ze&&!IA(ze)&&!Ce,qe=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,kt?k>=2?[i.createTemplateExpression(i.createTemplateHead(""),[i.createTemplateSpan(ze,i.createTemplateTail(""))])]:[i.createCallExpression(i.createPropertyAccessExpression(i.createStringLiteral(""),"concat"),void 0,[ze])]:[]);let Mt=i.createCallExpression(i.createIdentifier("require"),void 0,kt?[i.createIdentifier("s")]:ze?[ze]:[]);b1(S)&&(Mt=c().createImportStarHelper(Mt));const ge=kt?[i.createParameterDeclaration(void 0,void 0,"s")]:[];let mn;return k>=2?mn=i.createArrowFunction(void 0,void 0,ge,void 0,void 0,Mt):mn=i.createFunctionExpression(void 0,void 0,void 0,void 0,ge,void 0,i.createBlock([i.createReturnStatement(Mt)])),i.createCallExpression(i.createPropertyAccessExpression(qe,"then"),void 0,[mn])}function Jc(ze,Ce){return!b1(S)||HC(ze)&2?Ce:aj(ze)?c().createImportStarHelper(Ce):Ce}function au(ze,Ce){return!b1(S)||HC(ze)&2?Ce:D6(ze)?c().createImportStarHelper(Ce):aD(ze)?c().createImportDefaultHelper(Ce):Ce}function qn(ze){let Ce;const kt=H8(ze);if(F!==2)if(ze.importClause){const qe=[];kt&&!R9(ze)?qe.push(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,au(ze,za(ze)))):(qe.push(i.createVariableDeclaration(i.getGeneratedNameForNode(ze),void 0,void 0,au(ze,za(ze)))),kt&&R9(ze)&&qe.push(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,i.getGeneratedNameForNode(ze)))),Ce=ur(Ce,Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList(qe,k>=2?2:0)),ze),ze))}else return Ls(Tn(i.createExpressionStatement(za(ze)),ze),ze);else kt&&R9(ze)&&(Ce=ur(Ce,i.createVariableStatement(void 0,i.createVariableDeclarationList([Ls(Tn(i.createVariableDeclaration(i.cloneNode(kt.name),void 0,void 0,i.getGeneratedNameForNode(ze)),ze),ze)],k>=2?2:0))));return Ce=yf(Ce,ze),N0(Ce)}function za(ze){const Ce=oD(i,ze,ie,P,E,S),kt=[];return Ce&&kt.push(Ce),i.createCallExpression(i.createIdentifier("require"),void 0,kt)}function Ia(ze){re.assert(Mx(ze),"import= for internal module references should be handled in an earlier transformer.");let Ce;return F!==2?ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createExpressionStatement(Wn(ze.name,za(ze))),ze),ze)):Ce=ur(Ce,Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(ze.name),void 0,void 0,za(ze))],k>=2?2:0)),ze),ze)):ul(ze,32)&&(Ce=ur(Ce,Ls(Tn(i.createExpressionStatement(Wn(i.getExportName(ze),i.getLocalName(ze))),ze),ze))),Ce=w_(Ce,ze),N0(Ce)}function zi(ze){if(!ze.moduleSpecifier)return;const Ce=i.getGeneratedNameForNode(ze);if(ze.exportClause&&j0(ze.exportClause)){const kt=[];F!==2&&kt.push(Ls(Tn(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(Ce,void 0,void 0,za(ze))])),ze),ze));for(const qe of ze.exportClause.elements)if(k===0)kt.push(Ls(Tn(i.createExpressionStatement(c().createCreateBindingHelper(Ce,i.createStringLiteralFromNode(qe.propertyName||qe.name),qe.propertyName?i.createStringLiteralFromNode(qe.name):void 0)),qe),qe));else{const Mt=!!b1(S)&&!(HC(ze)&2)&&Kr(qe.propertyName||qe.name)==="default",ge=i.createPropertyAccessExpression(Mt?c().createImportDefaultHelper(Ce):Ce,qe.propertyName||qe.name);kt.push(Ls(Tn(i.createExpressionStatement(Wn(i.getExportName(qe),ge,void 0,!0)),qe),qe))}return N0(kt)}else if(ze.exportClause){const kt=[];return kt.push(Ls(Tn(i.createExpressionStatement(Wn(i.cloneNode(ze.exportClause.name),Jc(ze,F!==2?za(ze):nY(ze)?Ce:i.createIdentifier(Kr(ze.exportClause.name))))),ze),ze)),N0(kt)}else return Ls(Tn(i.createExpressionStatement(c().createExportStarHelper(F!==2?za(ze):Ce)),ze),ze)}function na(ze){if(!ze.isExportEquals)return ln(i.createIdentifier("default"),Bn(ze.expression,Yt,kr),ze,!0)}function _a(ze){let Ce;return ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createFunctionDeclaration(Wa(ze.modifiers,$r,Mf),ze.asteriskToken,i.getDeclarationName(ze,!0,!0),void 0,Wa(ze.parameters,Yt,Os),void 0,Xo(ze.body,Yt,e)),ze),ze)):Ce=ur(Ce,Xo(ze,Yt,e)),Ce=dr(Ce,ze),N0(Ce)}function us(ze){let Ce;return ul(ze,32)?Ce=ur(Ce,Ls(Tn(i.createClassDeclaration(Wa(ze.modifiers,$r,Am),i.getDeclarationName(ze,!0,!0),void 0,Wa(ze.heritageClauses,Yt,Qb),Wa(ze.members,Yt,J_)),ze),ze)):Ce=ur(Ce,Xo(ze,Yt,e)),Ce=dr(Ce,ze),N0(Ce)}function Au(ze){let Ce,kt,qe;if(ul(ze,32)){let Mt,ge=!1;for(const mn of ze.declarationList.declarations)if(xn(mn.name)&&mI(mn.name))if(Mt||(Mt=Wa(ze.modifiers,$r,Mf)),mn.initializer){const Jn=i.updateVariableDeclaration(mn,mn.name,void 0,void 0,Wn(mn.name,Bn(mn.initializer,Yt,kr)));kt=ur(kt,Jn)}else kt=ur(kt,mn);else if(mn.initializer)if(!$_(mn.name)&&($m(mn.initializer)||Jm(mn.initializer)||v0(mn.initializer))){const Jn=i.createAssignment(Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),mn.name),mn.name),i.createIdentifier(K2(mn.name))),Nn=i.createVariableDeclaration(mn.name,mn.exclamationToken,mn.type,Bn(mn.initializer,Yt,kr));kt=ur(kt,Nn),qe=ur(qe,Jn),ge=!0}else qe=ur(qe,Cu(mn));if(kt&&(Ce=ur(Ce,i.updateVariableStatement(ze,Mt,i.updateVariableDeclarationList(ze.declarationList,kt)))),qe){const mn=Ls(Tn(i.createExpressionStatement(i.inlineExpressions(qe)),ze),ze);ge&&aW(mn),Ce=ur(Ce,mn)}}else Ce=ur(Ce,Xo(ze,Yt,e));return Ce=Eu(Ce,ze),N0(Ce)}function Qu(ze,Ce,kt){const qe=Io(ze);if(qe){let Mt=CW(ze)?Ce:i.createAssignment(ze,Ce);for(const ge of qe)_s(Mt,8),Mt=Wn(ge,Mt,kt);return Mt}return i.createAssignment(ze,Ce)}function Cu(ze){return $_(ze.name)?yI(Bn(ze,Yt,J9),Yt,e,0,!1,Qu):i.createAssignment(Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),ze.name),ze.name),ze.initializer?Bn(ze.initializer,Yt,kr):i.createVoidZero())}function yf(ze,Ce){if(ae.exportEquals)return ze;const kt=Ce.importClause;if(!kt)return ze;const qe=new uj;kt.name&&(ze=Mr(ze,qe,kt));const Mt=kt.namedBindings;if(Mt)switch(Mt.kind){case 274:ze=Mr(ze,qe,Mt);break;case 275:for(const ge of Mt.elements)ze=Mr(ze,qe,ge,!0);break}return ze}function w_(ze,Ce){return ae.exportEquals?ze:Mr(ze,new uj,Ce)}function Eu(ze,Ce){return He(ze,Ce.declarationList,!1)}function He(ze,Ce,kt){if(ae.exportEquals)return ze;for(const qe of Ce.declarations)ze=Hn(ze,qe,kt);return ze}function Hn(ze,Ce,kt){if(ae.exportEquals)return ze;if($_(Ce.name))for(const qe of Ce.name.elements)cb(qe)||(ze=Hn(ze,qe,kt));else!$g(Ce.name)&&(!Kc(Ce)||Ce.initializer||kt)&&(ze=Mr(ze,new uj,Ce));return ze}function dr(ze,Ce){if(ae.exportEquals)return ze;const kt=new uj;if(ul(Ce,32)){const qe=ul(Ce,2048)?i.createIdentifier("default"):i.getDeclarationName(Ce);ze=Pr(ze,kt,qe,i.getLocalName(Ce),Ce)}return Ce.name&&(ze=Mr(ze,kt,Ce)),ze}function Mr(ze,Ce,kt,qe){const Mt=i.getDeclarationName(kt),ge=ae.exportSpecifiers.get(Mt);if(ge)for(const mn of ge)ze=Pr(ze,Ce,mn.name,Mt,mn.name,void 0,qe);return ze}function Pr(ze,Ce,kt,qe,Mt,ge,mn){return Ce.has(kt)||(Ce.set(kt,!0),ze=ur(ze,ln(kt,qe,Mt,ge,mn))),ze}function Bt(){let ze;return k===0?ze=i.createExpressionStatement(Wn(i.createIdentifier("__esModule"),i.createTrue())):ze=i.createExpressionStatement(i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteral("__esModule"),i.createObjectLiteralExpression([i.createPropertyAssignment("value",i.createTrue())])])),_s(ze,2097152),ze}function ln(ze,Ce,kt,qe,Mt){const ge=Tn(i.createExpressionStatement(Wn(ze,Ce,void 0,Mt)),kt);return lb(ge),qe||_s(ge,3072),ge}function Wn(ze,Ce,kt,qe){return Tn(qe&&k!==0?i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteralFromNode(ze),i.createObjectLiteralExpression([i.createPropertyAssignment("enumerable",i.createTrue()),i.createPropertyAssignment("get",i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(Ce)])))])]):i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(ze)),Ce),kt)}function $r(ze){switch(ze.kind){case 95:case 90:return}return ze}function Ge(ze,Ce,kt){Ce.kind===312?(ie=Ce,ae=X[Nb(ie)],J(ze,Ce,kt),ie=void 0,ae=void 0):J(ze,Ce,kt)}function Br(ze,Ce){return Ce=$(ze,Ce),Ce.id&&ve[Ce.id]?Ce:ze===1?Ln(Ce):XE(Ce)?Ei(Ce):Ce}function Ei(ze){const Ce=ze.name,kt=go(Ce);if(kt!==Ce){if(ze.objectAssignmentInitializer){const qe=i.createAssignment(kt,ze.objectAssignmentInitializer);return Tn(i.createPropertyAssignment(Ce,qe),ze)}return Tn(i.createPropertyAssignment(Ce,kt),ze)}return ze}function Ln(ze){switch(ze.kind){case 80:return go(ze);case 213:return Sr(ze);case 215:return yi(ze);case 226:return Ao(ze)}return ze}function Sr(ze){if(xn(ze.expression)){const Ce=go(ze.expression);if(ve[vm(Ce)]=!0,!xn(Ce)&&!(wd(ze.expression)&8192))return CG(i.updateCallExpression(ze,Ce,void 0,ze.arguments),16)}return ze}function yi(ze){if(xn(ze.tag)){const Ce=go(ze.tag);if(ve[vm(Ce)]=!0,!xn(Ce)&&!(wd(ze.tag)&8192))return CG(i.updateTaggedTemplateExpression(ze,Ce,void 0,ze.template),16)}return ze}function go(ze){var Ce,kt;if(wd(ze)&8192){const qe=e4(ie);return qe?i.createPropertyAccessExpression(qe,ze):ze}else if(!($g(ze)&&!(ze.emitNode.autoGenerate.flags&64))&&!mI(ze)){const qe=E.getReferencedExportContainer(ze,CW(ze));if(qe&&qe.kind===312)return Tn(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(ze)),ze);const Mt=E.getReferencedImportDeclaration(ze);if(Mt){if(Tk(Mt))return Tn(i.createPropertyAccessExpression(i.getGeneratedNameForNode(Mt.parent),i.createIdentifier("default")),ze);if(qE(Mt)){const ge=Mt.propertyName||Mt.name;return Tn(i.createPropertyAccessExpression(i.getGeneratedNameForNode(((kt=(Ce=Mt.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||Mt),i.cloneNode(ge)),ze)}}}return ze}function Ao(ze){if(pk(ze.operatorToken.kind)&&xn(ze.left)&&(!$g(ze.left)||sR(ze.left))&&!mI(ze.left)){const Ce=Io(ze.left);if(Ce){let kt=ze;for(const qe of Ce)ve[vm(kt)]=!0,kt=Wn(qe,kt,ze);return kt}}return ze}function Io(ze){if($g(ze)){if(sR(ze)){const Ce=ae==null?void 0:ae.exportSpecifiers.get(ze);if(Ce){const kt=[];for(const qe of Ce)kt.push(qe.name);return kt}}}else{const Ce=E.getReferencedImportDeclaration(ze);if(Ce)return ae==null?void 0:ae.exportedBindings[Nb(Ce)];const kt=new Set,qe=E.getReferencedValueDeclarations(ze);if(qe){for(const Mt of qe){const ge=ae==null?void 0:ae.exportedBindings[Nb(Mt)];if(ge)for(const mn of ge)kt.add(mn)}if(kt.size)return oc(kt)}}}}var QHe,ZHe=G({"src/compiler/transformers/module/module.ts"(){md(),QHe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function v4e(e){const{factory:n,startLexicalEnvironment:i,endLexicalEnvironment:c,hoistVariableDeclaration:u}=e,d=e.getCompilerOptions(),h=e.getEmitResolver(),S=e.getEmitHost(),E=e.onSubstituteNode,P=e.onEmitNode;e.onSubstituteNode=Wn,e.onEmitNode=ln,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const k=[],F=[],$=[],J=[];let X,ie,ae,ve,we,Fe,et;return _C(e,Pe);function Pe(ze){if(ze.isDeclarationFile||!(VM(ze,d)||ze.transformFlags&8388608))return ze;const Ce=Nb(ze);X=ze,Fe=ze,ie=k[Ce]=sj(e,ze),ae=n.createUniqueName("exports"),F[Ce]=ae,ve=J[Ce]=n.createUniqueName("context");const kt=dt(ie.externalImports),qe=Ie(ze,kt),Mt=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,ae),n.createParameterDeclaration(void 0,void 0,ve)],void 0,qe),ge=HJ(n,ze,S,d),mn=n.createArrayLiteralExpression(Vn(kt,Nn=>Nn.name)),Jn=_s(n.updateSourceFile(ze,Tn(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,ge?[ge,mn,Mt]:[mn,Mt]))]),ze.statements)),2048);return Ng(d)||tpe(Jn,qe,Nn=>!Nn.scoped),et&&($[Ce]=et,et=void 0),X=void 0,ie=void 0,ae=void 0,ve=void 0,we=void 0,Fe=void 0,Jn}function dt(ze){const Ce=new Map,kt=[];for(const qe of ze){const Mt=oD(n,qe,X,S,h,d);if(Mt){const ge=Mt.text,mn=Ce.get(ge);mn!==void 0?kt[mn].externalImports.push(qe):(Ce.set(ge,kt.length),kt.push({name:Mt,externalImports:[qe]}))}}return kt}function Ie(ze,Ce){const kt=[];i();const qe=hv(d,"alwaysStrict")||!d.noImplicitUseStrict&&Bv(X),Mt=n.copyPrologue(ze.statements,kt,qe,Ze);kt.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(ve,n.createPropertyAccessExpression(ve,"id")))]))),Bn(ie.externalHelpersImportDeclaration,Ze,dl);const ge=Wa(ze.statements,Ze,dl,Mt);Oi(kt,we),Um(kt,c());const mn=ct(kt),Jn=ze.transformFlags&2097152?n.createModifiersFromModifierFlags(1024):void 0,Nn=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",Lt(mn,Ce)),n.createPropertyAssignment("execute",n.createFunctionExpression(Jn,void 0,void 0,void 0,[],void 0,n.createBlock(ge,!0)))],!0);return kt.push(n.createReturnStatement(Nn)),n.createBlock(kt,!0)}function ct(ze){if(!ie.hasExportStarsToExportValues)return;if(!ie.exportedNames&&ie.exportSpecifiers.size===0){let Mt=!1;for(const ge of ie.externalImports)if(ge.kind===278&&ge.exportClause){Mt=!0;break}if(!Mt){const ge=Ct(void 0);return ze.push(ge),ge.name}}const Ce=[];if(ie.exportedNames)for(const Mt of ie.exportedNames)Mt.escapedText!=="default"&&Ce.push(n.createPropertyAssignment(n.createStringLiteralFromNode(Mt),n.createTrue()));const kt=n.createUniqueName("exportedNames");ze.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(kt,void 0,void 0,n.createObjectLiteralExpression(Ce,!0))])));const qe=Ct(kt);return ze.push(qe),qe.name}function Ct(ze){const Ce=n.createUniqueName("exportStar"),kt=n.createIdentifier("m"),qe=n.createIdentifier("n"),Mt=n.createIdentifier("exports");let ge=n.createStrictInequality(qe,n.createStringLiteral("default"));return ze&&(ge=n.createLogicalAnd(ge,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(ze,"hasOwnProperty"),void 0,[qe])))),n.createFunctionDeclaration(void 0,void 0,Ce,void 0,[n.createParameterDeclaration(void 0,void 0,kt)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Mt,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(qe)]),kt,n.createBlock([_s(n.createIfStatement(ge,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(Mt,qe),n.createElementAccessExpression(kt,qe)))),1)])),n.createExpressionStatement(n.createCallExpression(ae,void 0,[Mt]))],!0))}function Lt(ze,Ce){const kt=[];for(const qe of Ce){const Mt=Ot(qe.externalImports,Jn=>C3(n,Jn,X)),ge=Mt?n.getGeneratedNameForNode(Mt):n.createUniqueName(""),mn=[];for(const Jn of qe.externalImports){const Nn=C3(n,Jn,X);switch(Jn.kind){case 272:if(!Jn.importClause)break;case 271:re.assert(Nn!==void 0),mn.push(n.createExpressionStatement(n.createAssignment(Nn,ge))),ul(Jn,32)&&mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createStringLiteral(Kr(Nn)),ge])));break;case 278:if(re.assert(Nn!==void 0),Jn.exportClause)if(j0(Jn.exportClause)){const Lr=[];for(const qi of Jn.exportClause.elements)Lr.push(n.createPropertyAssignment(n.createStringLiteral(Kr(qi.name)),n.createElementAccessExpression(ge,n.createStringLiteral(Kr(qi.propertyName||qi.name)))));mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createObjectLiteralExpression(Lr,!0)])))}else mn.push(n.createExpressionStatement(n.createCallExpression(ae,void 0,[n.createStringLiteral(Kr(Jn.exportClause.name)),ge])));else mn.push(n.createExpressionStatement(n.createCallExpression(ze,void 0,[ge])));break}}kt.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,ge)],void 0,n.createBlock(mn,!0)))}return n.createArrayLiteralExpression(kt,!0)}function Ze(ze){switch(ze.kind){case 272:return Ke(ze);case 271:return It(ze);case 278:return st(ze);case 277:return Yt(ze);default:return io(ze)}}function Ke(ze){let Ce;return ze.importClause&&u(C3(n,ze,X)),N0(Wr(Ce,ze))}function st(ze){re.assertIsDefined(ze)}function It(ze){re.assert(Mx(ze),"import= for internal module references should be handled in an earlier transformer.");let Ce;return u(C3(n,ze,X)),N0(jt(Ce,ze))}function Yt(ze){if(ze.isExportEquals)return;const Ce=Bn(ze.expression,Cu,kr);return Fr(n.createIdentifier("default"),Ce,!0)}function Et(ze){ul(ze,32)?we=ur(we,n.updateFunctionDeclaration(ze,Wa(ze.modifiers,Bt,Am),ze.asteriskToken,n.getDeclarationName(ze,!0,!0),void 0,Wa(ze.parameters,Cu,Os),void 0,Bn(ze.body,Cu,Ou))):we=ur(we,Xo(ze,Cu,e)),we=Tr(we,ze)}function at(ze){let Ce;const kt=n.getLocalName(ze);return u(kt),Ce=ur(Ce,Tn(n.createExpressionStatement(n.createAssignment(kt,Tn(n.createClassExpression(Wa(ze.modifiers,Bt,Am),ze.name,void 0,Wa(ze.heritageClauses,Cu,Qb),Wa(ze.members,Cu,J_)),ze))),ze)),Ce=Tr(Ce,ze),N0(Ce)}function Qt(ze){if(!Rn(ze.declarationList))return Bn(ze,Cu,dl);let Ce;if(aY(ze.declarationList)||nC(ze.declarationList)){const kt=Wa(ze.modifiers,Bt,Am),qe=[];for(const ge of ze.declarationList.declarations)qe.push(n.updateVariableDeclaration(ge,n.getGeneratedNameForNode(ge.name),void 0,void 0,cn(ge,!1)));const Mt=n.updateVariableDeclarationList(ze.declarationList,qe);Ce=ur(Ce,n.updateVariableStatement(ze,kt,Mt))}else{let kt;const qe=ul(ze,32);for(const Mt of ze.declarationList.declarations)Mt.initializer?kt=ur(kt,cn(Mt,qe)):nn(Mt);kt&&(Ce=ur(Ce,Tn(n.createExpressionStatement(n.inlineExpressions(kt)),ze)))}return Ce=En(Ce,ze,!1),N0(Ce)}function nn(ze){if($_(ze.name))for(const Ce of ze.name.elements)cb(Ce)||nn(Ce);else u(n.cloneNode(ze.name))}function Rn(ze){return(wd(ze)&4194304)===0&&(Fe.kind===312||(Gg(ze).flags&7)===0)}function cn(ze,Ce){const kt=Ce?qt:Kt;return $_(ze.name)?yI(ze,Cu,e,0,!1,kt):ze.initializer?kt(ze.name,Bn(ze.initializer,Cu,kr)):ze.name}function qt(ze,Ce,kt){return wr(ze,Ce,kt,!0)}function Kt(ze,Ce,kt){return wr(ze,Ce,kt,!1)}function wr(ze,Ce,kt,qe){return u(n.cloneNode(ze)),qe?Ki(ze,Ao(Tn(n.createAssignment(ze,Ce),kt))):Ao(Tn(n.createAssignment(ze,Ce),kt))}function Wr(ze,Ce){if(ie.exportEquals)return ze;const kt=Ce.importClause;if(!kt)return ze;kt.name&&(ze=Vr(ze,kt));const qe=kt.namedBindings;if(qe)switch(qe.kind){case 274:ze=Vr(ze,qe);break;case 275:for(const Mt of qe.elements)ze=Vr(ze,Mt);break}return ze}function jt(ze,Ce){return ie.exportEquals?ze:Vr(ze,Ce)}function En(ze,Ce,kt){if(ie.exportEquals)return ze;for(const qe of Ce.declarationList.declarations)(qe.initializer||kt)&&(ze=fr(ze,qe,kt));return ze}function fr(ze,Ce,kt){if(ie.exportEquals)return ze;if($_(Ce.name))for(const qe of Ce.name.elements)cb(qe)||(ze=fr(ze,qe,kt));else if(!$g(Ce.name)){let qe;kt&&(ze=Pn(ze,Ce.name,n.getLocalName(Ce)),qe=Kr(Ce.name)),ze=Vr(ze,Ce,qe)}return ze}function Tr(ze,Ce){if(ie.exportEquals)return ze;let kt;if(ul(Ce,32)){const qe=ul(Ce,2048)?n.createStringLiteral("default"):Ce.name;ze=Pn(ze,qe,n.getLocalName(Ce)),kt=K2(qe)}return Ce.name&&(ze=Vr(ze,Ce,kt)),ze}function Vr(ze,Ce,kt){if(ie.exportEquals)return ze;const qe=n.getDeclarationName(Ce),Mt=ie.exportSpecifiers.get(qe);if(Mt)for(const ge of Mt)ge.name.escapedText!==kt&&(ze=Pn(ze,ge.name,qe));return ze}function Pn(ze,Ce,kt,qe){return ze=ur(ze,Fr(Ce,kt,qe)),ze}function Fr(ze,Ce,kt){const qe=n.createExpressionStatement(Ki(ze,Ce));return lb(qe),kt||_s(qe,3072),qe}function Ki(ze,Ce){const kt=xn(ze)?n.createStringLiteralFromNode(ze):ze;return _s(Ce,wd(Ce)|3072),_y(n.createCallExpression(ae,void 0,[kt,Ce]),Ce)}function io(ze){switch(ze.kind){case 243:return Qt(ze);case 262:return Et(ze);case 263:return at(ze);case 248:return no(ze,!0);case 249:return os(ze);case 250:return Mo(ze);case 246:return gc(ze);case 247:return Wl(ze);case 256:return Jc(ze);case 254:return au(ze);case 245:return qn(ze);case 255:return za(ze);case 269:return Ia(ze);case 296:return zi(ze);case 297:return na(ze);case 258:return _a(ze);case 299:return us(ze);case 241:return Au(ze);default:return Cu(ze)}}function no(ze,Ce){const kt=Fe;return Fe=ze,ze=n.updateForStatement(ze,Bn(ze.initializer,Ce?ki:yf,DS),Bn(ze.condition,Cu,kr),Bn(ze.incrementor,yf,kr),LS(ze.statement,Ce?io:Cu,e)),Fe=kt,ze}function os(ze){const Ce=Fe;return Fe=ze,ze=n.updateForInStatement(ze,ki(ze.initializer),Bn(ze.expression,Cu,kr),LS(ze.statement,io,e)),Fe=Ce,ze}function Mo(ze){const Ce=Fe;return Fe=ze,ze=n.updateForOfStatement(ze,ze.awaitModifier,ki(ze.initializer),Bn(ze.expression,Cu,kr),LS(ze.statement,io,e)),Fe=Ce,ze}function $i(ze){return Kp(ze)&&Rn(ze)}function ki(ze){if($i(ze)){let Ce;for(const kt of ze.declarations)Ce=ur(Ce,cn(kt,!1)),kt.initializer||nn(kt);return Ce?n.inlineExpressions(Ce):n.createOmittedExpression()}else return Bn(ze,yf,DS)}function gc(ze){return n.updateDoStatement(ze,LS(ze.statement,io,e),Bn(ze.expression,Cu,kr))}function Wl(ze){return n.updateWhileStatement(ze,Bn(ze.expression,Cu,kr),LS(ze.statement,io,e))}function Jc(ze){return n.updateLabeledStatement(ze,ze.label,re.checkDefined(Bn(ze.statement,io,dl,n.liftToBlock)))}function au(ze){return n.updateWithStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.statement,io,dl,n.liftToBlock)))}function qn(ze){return n.updateIfStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.thenStatement,io,dl,n.liftToBlock)),Bn(ze.elseStatement,io,dl,n.liftToBlock))}function za(ze){return n.updateSwitchStatement(ze,Bn(ze.expression,Cu,kr),re.checkDefined(Bn(ze.caseBlock,io,Fv)))}function Ia(ze){const Ce=Fe;return Fe=ze,ze=n.updateCaseBlock(ze,Wa(ze.clauses,io,$U)),Fe=Ce,ze}function zi(ze){return n.updateCaseClause(ze,Bn(ze.expression,Cu,kr),Wa(ze.statements,io,dl))}function na(ze){return Xo(ze,io,e)}function _a(ze){return Xo(ze,io,e)}function us(ze){const Ce=Fe;return Fe=ze,ze=n.updateCatchClause(ze,ze.variableDeclaration,re.checkDefined(Bn(ze.block,io,Ou))),Fe=Ce,ze}function Au(ze){const Ce=Fe;return Fe=ze,ze=Xo(ze,io,e),Fe=Ce,ze}function Qu(ze,Ce){if(!(ze.transformFlags&276828160))return ze;switch(ze.kind){case 248:return no(ze,!1);case 244:return w_(ze);case 217:return Eu(ze,Ce);case 360:return He(ze,Ce);case 226:if(wy(ze))return dr(ze,Ce);break;case 213:if(Py(ze))return Hn(ze);break;case 224:case 225:return Pr(ze,Ce)}return Xo(ze,Cu,e)}function Cu(ze){return Qu(ze,!1)}function yf(ze){return Qu(ze,!0)}function w_(ze){return n.updateExpressionStatement(ze,Bn(ze.expression,yf,kr))}function Eu(ze,Ce){return n.updateParenthesizedExpression(ze,Bn(ze.expression,Ce?yf:Cu,kr))}function He(ze,Ce){return n.updatePartiallyEmittedExpression(ze,Bn(ze.expression,Ce?yf:Cu,kr))}function Hn(ze){const Ce=oD(n,ze,X,S,h,d),kt=Bn(pp(ze.arguments),Cu,kr),qe=Ce&&(!kt||!Sd(kt)||kt.text!==Ce.text)?Ce:kt;return n.createCallExpression(n.createPropertyAccessExpression(ve,n.createIdentifier("import")),void 0,qe?[qe]:[])}function dr(ze,Ce){return Mr(ze.left)?yI(ze,Cu,e,0,!Ce):Xo(ze,Cu,e)}function Mr(ze){if(Zv(ze,!0))return Mr(ze.left);if(WT(ze))return Mr(ze.expression);if(el(ze))return gt(ze.properties,Mr);if(Ed(ze))return gt(ze.elements,Mr);if(XE(ze))return Mr(ze.name);if(tl(ze))return Mr(ze.initializer);if(xn(ze)){const Ce=h.getReferencedExportContainer(ze);return Ce!==void 0&&Ce.kind===312}else return!1}function Pr(ze,Ce){if((ze.operator===46||ze.operator===47)&&xn(ze.operand)&&!$g(ze.operand)&&!mI(ze.operand)&&!$ie(ze.operand)){const kt=yi(ze.operand);if(kt){let qe,Mt=Bn(ze.operand,Cu,kr);vk(ze)?Mt=n.updatePrefixUnaryExpression(ze,Mt):(Mt=n.updatePostfixUnaryExpression(ze,Mt),Ce||(qe=n.createTempVariable(u),Mt=n.createAssignment(qe,Mt),Tn(Mt,ze)),Mt=n.createComma(Mt,n.cloneNode(ze.operand)),Tn(Mt,ze));for(const ge of kt)Mt=Ki(ge,Ao(Mt));return qe&&(Mt=n.createComma(Mt,qe),Tn(Mt,ze)),Mt}}return Xo(ze,Cu,e)}function Bt(ze){switch(ze.kind){case 95:case 90:return}return ze}function ln(ze,Ce,kt){if(Ce.kind===312){const qe=Nb(Ce);X=Ce,ie=k[qe],ae=F[qe],et=$[qe],ve=J[qe],et&&delete $[qe],P(ze,Ce,kt),X=void 0,ie=void 0,ae=void 0,ve=void 0,et=void 0}else P(ze,Ce,kt)}function Wn(ze,Ce){return Ce=E(ze,Ce),Io(Ce)?Ce:ze===1?Br(Ce):ze===4?$r(Ce):Ce}function $r(ze){switch(ze.kind){case 304:return Ge(ze)}return ze}function Ge(ze){var Ce,kt;const qe=ze.name;if(!$g(qe)&&!mI(qe)){const Mt=h.getReferencedImportDeclaration(qe);if(Mt){if(Tk(Mt))return Tn(n.createPropertyAssignment(n.cloneNode(qe),n.createPropertyAccessExpression(n.getGeneratedNameForNode(Mt.parent),n.createIdentifier("default"))),ze);if(qE(Mt))return Tn(n.createPropertyAssignment(n.cloneNode(qe),n.createPropertyAccessExpression(n.getGeneratedNameForNode(((kt=(Ce=Mt.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||Mt),n.cloneNode(Mt.propertyName||Mt.name))),ze)}}return ze}function Br(ze){switch(ze.kind){case 80:return Ei(ze);case 226:return Ln(ze);case 236:return Sr(ze)}return ze}function Ei(ze){var Ce,kt;if(wd(ze)&8192){const qe=e4(X);return qe?n.createPropertyAccessExpression(qe,ze):ze}if(!$g(ze)&&!mI(ze)){const qe=h.getReferencedImportDeclaration(ze);if(qe){if(Tk(qe))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(qe.parent),n.createIdentifier("default")),ze);if(qE(qe))return Tn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((kt=(Ce=qe.parent)==null?void 0:Ce.parent)==null?void 0:kt.parent)||qe),n.cloneNode(qe.propertyName||qe.name)),ze)}}return ze}function Ln(ze){if(pk(ze.operatorToken.kind)&&xn(ze.left)&&(!$g(ze.left)||sR(ze.left))&&!mI(ze.left)){const Ce=yi(ze.left);if(Ce){let kt=ze;for(const qe of Ce)kt=Ki(qe,Ao(kt));return kt}}return ze}function Sr(ze){return gP(ze)?n.createPropertyAccessExpression(ve,n.createIdentifier("meta")):ze}function yi(ze){let Ce;const kt=go(ze);if(kt){const qe=h.getReferencedExportContainer(ze,!1);qe&&qe.kind===312&&(Ce=ur(Ce,n.getDeclarationName(kt))),Ce=Oi(Ce,ie==null?void 0:ie.exportedBindings[Nb(kt)])}else if($g(ze)&&sR(ze)){const qe=ie==null?void 0:ie.exportSpecifiers.get(ze);if(qe){const Mt=[];for(const ge of qe)Mt.push(ge.name);return Mt}}return Ce}function go(ze){if(!$g(ze)){const Ce=h.getReferencedImportDeclaration(ze);if(Ce)return Ce;const kt=h.getReferencedValueDeclaration(ze);if(kt&&(ie!=null&&ie.exportedBindings[Nb(kt)]))return kt;const qe=h.getReferencedValueDeclarations(ze);if(qe){for(const Mt of qe)if(Mt!==kt&&(ie!=null&&ie.exportedBindings[Nb(Mt)]))return Mt}return kt}}function Ao(ze){return et===void 0&&(et=[]),et[vm(ze)]=!0,ze}function Io(ze){return et&&ze.id&&et[ze.id]}}var cxe=G({"src/compiler/transformers/module/system.ts"(){md()}});function Nme(e){const{factory:n,getEmitHelperFactory:i}=e,c=e.getEmitHost(),u=e.getEmitResolver(),d=e.getCompilerOptions(),h=iu(d),S=e.onEmitNode,E=e.onSubstituteNode;e.onEmitNode=et,e.onSubstituteNode=Pe,e.enableEmitNotification(312),e.enableSubstitution(80);let P,k,F;return _C(e,$);function $(Ie){if(Ie.isDeclarationFile)return Ie;if(Bv(Ie)||F0(d)){k=Ie,F=void 0;let ct=J(Ie);return k=void 0,F&&(ct=n.updateSourceFile(ct,Tn(n.createNodeArray(wx(ct.statements.slice(),F)),ct.statements))),!Bv(Ie)||gt(ct.statements,XX)?ct:n.updateSourceFile(ct,Tn(n.createNodeArray([...ct.statements,Boe(n)]),ct.statements))}return Ie}function J(Ie){const ct=UJ(n,i(),Ie,d);if(ct){const Ct=[],Lt=n.copyPrologue(Ie.statements,Ct);return ur(Ct,ct),Oi(Ct,Wa(Ie.statements,X,dl,Lt)),n.updateSourceFile(Ie,Tn(n.createNodeArray(Ct),Ie.statements))}else return Xo(Ie,X,e)}function X(Ie){switch(Ie.kind){case 271:return Zp(d)>=100?ae(Ie):void 0;case 277:return we(Ie);case 278:return Fe(Ie)}return Ie}function ie(Ie){const ct=oD(n,Ie,re.checkDefined(k),c,u,d),Ct=[];if(ct&&Ct.push(ct),!F){const Ze=n.createUniqueName("_createRequire",48),Ke=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),Ze)])),n.createStringLiteral("module"),void 0),st=n.createUniqueName("__require",48),It=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(st,void 0,void 0,n.createCallExpression(n.cloneNode(Ze),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],h>=2?2:0));F=[Ke,It]}const Lt=F[1].declarationList.declarations[0].name;return re.assertNode(Lt,xn),n.createCallExpression(n.cloneNode(Lt),void 0,Ct)}function ae(Ie){re.assert(Mx(Ie),"import= for internal module references should be handled in an earlier transformer.");let ct;return ct=ur(ct,Ls(Tn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(Ie.name),void 0,void 0,ie(Ie))],h>=2?2:0)),Ie),Ie)),ct=ve(ct,Ie),N0(ct)}function ve(Ie,ct){return ul(ct,32)&&(Ie=ur(Ie,n.createExportDeclaration(void 0,ct.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Kr(ct.name))])))),Ie}function we(Ie){return Ie.isExportEquals?void 0:Ie}function Fe(Ie){if(d.module!==void 0&&d.module>5||!Ie.exportClause||!G0(Ie.exportClause)||!Ie.moduleSpecifier)return Ie;const ct=Ie.exportClause.name,Ct=n.getGeneratedNameForNode(ct),Lt=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(Ct)),Ie.moduleSpecifier,Ie.attributes);Ls(Lt,Ie.exportClause);const Ze=nY(Ie)?n.createExportDefault(Ct):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,Ct,ct)]));return Ls(Ze,Ie),[Lt,Ze]}function et(Ie,ct,Ct){Nu(ct)?((Bv(ct)||F0(d))&&d.importHelpers&&(P=new Map),S(Ie,ct,Ct),P=void 0):S(Ie,ct,Ct)}function Pe(Ie,ct){return ct=E(Ie,ct),P&&xn(ct)&&wd(ct)&8192?dt(ct):ct}function dt(Ie){const ct=Kr(Ie);let Ct=P.get(ct);return Ct||P.set(ct,Ct=n.createUniqueName(ct,48)),Ct}}var u4=G({"src/compiler/transformers/module/esnextAnd2015.ts"(){md()}});function b4e(e){const n=e.onSubstituteNode,i=e.onEmitNode,c=Nme(e),u=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=n,e.onEmitNode=i;const h=Oae(e),S=e.onSubstituteNode,E=e.onEmitNode;e.onSubstituteNode=k,e.onEmitNode=F,e.enableSubstitution(312),e.enableEmitNotification(312);let P;return X;function k(ae,ve){return Nu(ve)?(P=ve,n(ae,ve)):P?P.impliedNodeFormat===99?u(ae,ve):S(ae,ve):n(ae,ve)}function F(ae,ve,we){return Nu(ve)&&(P=ve),P?P.impliedNodeFormat===99?d(ae,ve,we):E(ae,ve,we):i(ae,ve,we)}function $(ae){return ae.impliedNodeFormat===99?c:h}function J(ae){if(ae.isDeclarationFile)return ae;P=ae;const ve=$(ae)(ae);return P=void 0,re.assert(Nu(ve)),ve}function X(ae){return ae.kind===312?J(ae):ie(ae)}function ie(ae){return e.factory.createBundle(Vn(ae.sourceFiles,J),ae.prepends)}}var eJe=G({"src/compiler/transformers/module/node.ts"(){md()}});function Fae(e){return Kc(e)||nu(e)||em(e)||sa(e)||UC(e)||PN(e)||x2(e)||Y7(e)||tm(e)||pg(e)||mg(e)||Os(e)||Np(e)||cC(e)||Yb(e)||z0(e)||Lh(e)||Z2(e)||Ac(e)||Hm(e)||Ds(e)||b2(e)}function wme(e){if(UC(e)||PN(e))return n;return pg(e)||tm(e)?c:QN(e);function n(d){const h=i(d);return h!==void 0?{diagnosticMessage:h,errorNode:e,typeName:e.name}:void 0}function i(d){return pd(e)?d.errorModuleName?d.accessibility===2?N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?d.errorModuleName?d.accessibility===2?N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_property_0_of_exported_class_has_or_is_using_private_name_1:d.errorModuleName?N.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Property_0_of_exported_interface_has_or_is_using_private_name_1}function c(d){const h=u(d);return h!==void 0?{diagnosticMessage:h,errorNode:e,typeName:e.name}:void 0}function u(d){return pd(e)?d.errorModuleName?d.accessibility===2?N.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?d.errorModuleName?d.accessibility===2?N.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_method_0_of_exported_class_has_or_is_using_private_name_1:d.errorModuleName?N.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function QN(e){if(Kc(e)||nu(e)||em(e)||Ac(e)||Hm(e)||Ds(e)||sa(e)||Lh(e))return i;return UC(e)||PN(e)?c:x2(e)||Y7(e)||tm(e)||pg(e)||mg(e)||Z2(e)?u:Os(e)?DT(e,e.parent)&&ul(e.parent,2)?i:d:Np(e)?S:cC(e)?E:Yb(e)?P:z0(e)||b2(e)?k:re.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${re.formatSyntaxKind(e.kind)}`);function n(F){if(e.kind===260||e.kind===208)return F.errorModuleName?F.accessibility===2?N.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:N.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ul(e.parent,2))return pd(e)?F.errorModuleName?F.accessibility===2?N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?F.errorModuleName?F.accessibility===2?N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N.Public_property_0_of_exported_class_has_or_is_using_private_name_1:F.errorModuleName?N.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(F){const $=n(F);return $!==void 0?{diagnosticMessage:$,errorNode:e,typeName:e.name}:void 0}function c(F){let $;return e.kind===178?pd(e)?$=F.errorModuleName?N.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:$=F.errorModuleName?N.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:pd(e)?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:$,errorNode:e.name,typeName:e.name}}function u(F){let $;switch(e.kind){case 180:$=F.errorModuleName?N.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:$=F.errorModuleName?N.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:$=F.errorModuleName?N.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:pd(e)?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?$=F.errorModuleName?F.accessibility===2?N.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:$=F.errorModuleName?N.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:$=F.errorModuleName?F.accessibility===2?N.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:N.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return re.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:$,errorNode:e.name||e}}function d(F){const $=h(F);return $!==void 0?{diagnosticMessage:$,errorNode:e,typeName:e.name}:void 0}function h(F){switch(e.parent.kind){case 176:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return F.errorModuleName?N.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return F.errorModuleName?N.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return F.errorModuleName?N.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return pd(e.parent)?F.errorModuleName?F.accessibility===2?N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?F.errorModuleName?F.accessibility===2?N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:F.errorModuleName?N.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return F.errorModuleName?F.accessibility===2?N.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:N.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return re.fail(`Unknown parent for parameter: ${re.formatSyntaxKind(e.parent.kind)}`)}}function S(){let F;switch(e.parent.kind){case 263:F=N.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:F=N.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:F=N.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:F=N.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:F=N.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:pd(e.parent)?F=N.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?F=N.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:F=N.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:F=N.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:F=N.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:F=N.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return re.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:F,errorNode:e,typeName:e.name}}function E(){let F;return Ih(e.parent.parent)?F=Qb(e.parent)&&e.parent.token===119?N.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?N.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:N.extends_clause_of_exported_class_has_or_is_using_private_name_0:F=N.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:F,errorNode:e,typeName:i_(e.parent.parent)}}function P(){return{diagnosticMessage:N.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function k(F){return{diagnosticMessage:F.errorModuleName?N.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:N.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:b2(e)?re.checkDefined(e.typeExpression):e.type,typeName:b2(e)?i_(e):e.name}}}var yct=G({"src/compiler/transformers/declarations/diagnostics.ts"(){md()}});function T4e(e,n,i){const c=e.getCompilerOptions();return x$(n,e,he,c,i?[i]:gi(e.getSourceFiles(),qM),[lxe],!1).diagnostics}function S4e(e,n){return n.text.substring(e.pos,e.end).includes("@internal")}function Wae(e,n){const i=__(e);if(i&&i.kind===169){const u=i.parent.parameters.indexOf(i),d=u>0?i.parent.parameters[u-1]:void 0,h=n.text,S=d?Hi(SN(h,Ff(h,d.end+1,!1,!0)),JD(h,e.pos)):SN(h,Ff(h,e.pos,!1,!0));return S&&S.length&&S4e(yl(S),n)}const c=i&&WE(i,n);return!!Ot(c,u=>S4e(u,n))}function lxe(e){const n=()=>re.fail("Diagnostic emitted without context");let i=n,c=!0,u=!1,d=!1,h=!1,S=!1,E,P,k,F,$,J;const{factory:X}=e,ie=e.getEmitHost(),ae={trackSymbol:Et,reportInaccessibleThisError:cn,reportInaccessibleUniqueSymbolError:nn,reportCyclicStructureError:Rn,reportPrivateInBaseOfClassExpression:at,reportLikelyUnsafeImportRequiredError:qt,reportTruncationError:Kt,moduleResolverHost:ie,trackReferencedAmbientModule:Ke,trackExternalModuleSymbolOfImportTypeNode:Yt,reportNonlocalAugmentation:wr,reportNonSerializableProperty:Wr};let ve,we,Fe,et,Pe,dt;const Ie=e.getEmitResolver(),ct=e.getCompilerOptions(),{noResolve:Ct,stripInternal:Lt}=ct;return En;function Ze(Ge){if(Ge){P=P||new Set;for(const Br of Ge)P.add(Br)}}function Ke(Ge,Br){const Ei=Ie.getTypeReferenceDirectivesForSymbol(Br,67108863);if(Nt(Ei))return Ze(Ei);const Ln=ts(Ge);et.set(Nb(Ln),Ln)}function st(Ge){const Br=C7(Ge),Ei=Br&&Ie.tryFindAmbientModule(Br);if(Ei!=null&&Ei.declarations)for(const Ln of Ei.declarations)dh(Ln)&&ts(Ln)!==Fe&&Ke(Ln,Ei)}function It(Ge){if(Ge.accessibility===0){if(Ge&&Ge.aliasesToMakeVisible)if(!k)k=Ge.aliasesToMakeVisible;else for(const Br of Ge.aliasesToMakeVisible)Dy(k,Br)}else{const Br=i(Ge);if(Br)return Br.typeName?e.addDiagnostic(Bs(Ge.errorNode||Br.errorNode,Br.diagnosticMessage,Lv(Br.typeName),Ge.errorSymbolName,Ge.errorModuleName)):e.addDiagnostic(Bs(Ge.errorNode||Br.errorNode,Br.diagnosticMessage,Ge.errorSymbolName,Ge.errorModuleName)),!0}return!1}function Yt(Ge){u||(J||(J=[])).push(Ge)}function Et(Ge,Br,Ei){if(Ge.flags&262144)return!1;const Ln=It(Ie.isSymbolAccessible(Ge,Br,Ei,!0));return Ze(Ie.getTypeReferenceDirectivesForSymbol(Ge,Ei)),Ln}function at(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Ge))}function Qt(){return ve?hm(ve):we&&i_(we)?hm(i_(we)):we&&py(we)?we.isExportEquals?"export=":"default":"(Missing)"}function nn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Qt(),"unique symbol"))}function Rn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Qt()))}function cn(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Qt(),"this"))}function qt(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Qt(),Ge))}function Kt(){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function wr(Ge,Br,Ei){var Ln;const Sr=(Ln=Br.declarations)==null?void 0:Ln.find(go=>ts(go)===Ge),yi=gi(Ei.declarations,go=>ts(go)!==Ge);if(Sr&&yi)for(const go of yi)e.addDiagnostic(ml(Bs(go,N.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Bs(Sr,N.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Wr(Ge){(ve||we)&&e.addDiagnostic(Bs(ve||we,N.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ge))}function jt(Ge,Br){const Ei=i;i=Sr=>Sr.errorNode&&Fae(Sr.errorNode)?QN(Sr.errorNode)(Sr):{diagnosticMessage:Sr.errorModuleName?N.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:N.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Sr.errorNode||Ge};const Ln=Ie.getDeclarationStatementsForSourceFile(Ge,BW,ae,Br);return i=Ei,Ln}function En(Ge){if(Ge.kind===312&&Ge.isDeclarationFile)return Ge;if(Ge.kind===313){u=!0,et=new Map,Pe=new Map;let Ce=!1;const kt=X.createBundle(Vn(Ge.sourceFiles,ge=>{if(ge.isDeclarationFile)return;if(Ce=Ce||ge.hasNoDefaultLib,Fe=ge,E=ge,k=void 0,$=!1,F=new Map,i=n,h=!1,S=!1,fr(ge,et),Tr(ge,Pe),aE(ge)||Rx(ge)){d=!1,c=!1;const Jn=Gy(ge)?X.createNodeArray(jt(ge,!0)):Wa(ge.statements,Au,dl);return X.updateSourceFile(ge,[X.createModuleDeclaration([X.createModifier(138)],X.createStringLiteral(pG(e.getEmitHost(),ge)),X.createModuleBlock(Tn(X.createNodeArray(na(Jn)),ge.statements)))],!0,[],[],!1,[])}c=!0;const mn=Gy(ge)?X.createNodeArray(jt(ge)):Wa(ge.statements,Au,dl);return X.updateSourceFile(ge,na(mn),!0,[],[],!1,[])}),Qo(Ge.prepends,ge=>{if(ge.kind===315){const mn=mEe(ge,"dts",Lt);return Ce=Ce||!!mn.hasNoDefaultLib,fr(mn,et),Ze(Vn(mn.typeReferenceDirectives,Jn=>[Jn.fileName,Jn.resolutionMode])),Tr(mn,Pe),mn}return ge}));kt.syntheticFileReferences=[],kt.syntheticTypeReferences=Ao(),kt.syntheticLibReferences=go(),kt.hasNoDefaultLib=Ce;const qe=ws($1(A$(Ge,ie,!0).declarationFilePath)),Mt=ze(kt.syntheticFileReferences,qe);return et.forEach(Mt),kt}c=!0,h=!1,S=!1,E=Ge,Fe=Ge,i=n,u=!1,d=!1,$=!1,k=void 0,F=new Map,P=void 0,et=fr(Fe,new Map),Pe=Tr(Fe,new Map);const Br=[],Ei=ws($1(A$(Ge,ie,!0).declarationFilePath)),Ln=ze(Br,Ei);let Sr;if(Gy(Fe))Sr=X.createNodeArray(jt(Ge)),et.forEach(Ln),dt=gi(Sr,W8);else{const Ce=Wa(Ge.statements,Au,dl);Sr=Tn(X.createNodeArray(na(Ce)),Ge.statements),et.forEach(Ln),dt=gi(Sr,W8),Bv(Ge)&&(!d||h&&!S)&&(Sr=Tn(X.createNodeArray([...Sr,Boe(X)]),Sr))}const yi=X.updateSourceFile(Ge,Sr,!0,Br,Ao(),Ge.hasNoDefaultLib,go());return yi.exportedModulesFromDeclarationEmit=J,yi;function go(){return oc(Pe.keys(),Ce=>({fileName:Ce,pos:-1,end:-1}))}function Ao(){return P?Qo(oc(P.keys()),Io):[]}function Io([Ce,kt]){if(dt){for(const qe of dt)if(Yb(qe)&&KE(qe.moduleReference)){const Mt=qe.moduleReference.expression;if(Cm(Mt)&&Mt.text===Ce)return}else if(n0(qe)&&Sd(qe.moduleSpecifier)&&qe.moduleSpecifier.text===Ce)return}return{fileName:Ce,pos:-1,end:-1,...kt?{resolutionMode:kt}:void 0}}function ze(Ce,kt){return qe=>{let Mt;if(qe.isDeclarationFile)Mt=qe.fileName;else{if(u&&ni(Ge.sourceFiles,qe))return;const ge=A$(qe,ie,!0);Mt=ge.declarationFilePath||ge.jsFilePath||qe.fileName}if(Mt){const ge=hae(ct,Fe,gm(kt,ie.getCurrentDirectory(),ie.getCanonicalFileName),gm(Mt,ie.getCurrentDirectory(),ie.getCanonicalFileName),ie);if(!V2(ge)){Ze([[ge,void 0]]);return}let mn=GC(kt,Mt,ie.getCurrentDirectory(),ie.getCanonicalFileName,!1);if(qf(mn,"./")&&r9(mn)&&(mn=mn.substring(2)),qf(mn,"node_modules/")||RW(mn))return;Ce.push({pos:-1,end:-1,fileName:mn})}}}}function fr(Ge,Br){return Ct||!rF(Ge)&&Gy(Ge)||Ot(Ge.referencedFiles,Ei=>{const Ln=ie.getSourceFileFromReference(Ge,Ei);Ln&&Br.set(Nb(Ln),Ln)}),Br}function Tr(Ge,Br){return Ot(Ge.libReferenceDirectives,Ei=>{ie.getLibFileFromReference(Ei)&&Br.set(Q0(Ei.fileName),!0)}),Br}function Vr(Ge){if(Ge.kind===80)return Ge;return Ge.kind===207?X.updateArrayBindingPattern(Ge,Wa(Ge.elements,Br,Uu)):X.updateObjectBindingPattern(Ge,Wa(Ge.elements,Br,sa));function Br(Ei){return Ei.kind===232?Ei:(Ei.propertyName&&Qf(Ei.propertyName)&&Tg(Ei.propertyName.expression)&&Jc(Ei.propertyName.expression,E),Ei.propertyName&&xn(Ei.propertyName)&&xn(Ei.name)&&!Ei.symbol.isReferenced&&!hH(Ei.propertyName)?X.updateBindingElement(Ei,Ei.dotDotDotToken,void 0,Ei.propertyName,Fr(Ei)?Ei.initializer:void 0):X.updateBindingElement(Ei,Ei.dotDotDotToken,Ei.propertyName,Vr(Ei.name),Fr(Ei)?Ei.initializer:void 0))}}function Pn(Ge,Br,Ei){let Ln;$||(Ln=i,i=QN(Ge));const Sr=X.updateParameterDeclaration(Ge,bct(X,Ge,Br),Ge.dotDotDotToken,Vr(Ge.name),Ie.isOptionalParameter(Ge)?Ge.questionToken||X.createToken(58):void 0,io(Ge,Ei||Ge.type,!0),Ki(Ge));return $||(i=Ln),Sr}function Fr(Ge){return Tct(Ge)&&Ie.isLiteralConstDeclaration(__(Ge))}function Ki(Ge){if(Fr(Ge))return Ie.createLiteralConstValue(__(Ge),ae)}function io(Ge,Br,Ei){if(!Ei&&tT(Ge,2)||Fr(Ge))return;const Ln=Ge.kind===169&&(Ie.isRequiredInitializedParameter(Ge)||Ie.isOptionalUninitializedParameterProperty(Ge));if(Br&&!Ln)return Bn(Br,_a,pc);if(!__(Ge))return Br?Bn(Br,_a,pc):X.createKeywordTypeNode(133);if(Ge.kind===178)return X.createKeywordTypeNode(133);ve=Ge.name;let Sr;if($||(Sr=i,i=QN(Ge)),Ge.kind===260||Ge.kind===208)return yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae));if(Ge.kind===169||Ge.kind===172||Ge.kind===171)return em(Ge)||!Ge.initializer?yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae,Ln)):yi(Ie.createTypeOfDeclaration(Ge,E,BW,ae,Ln)||Ie.createTypeOfExpression(Ge.initializer,E,BW,ae));return yi(Ie.createReturnTypeOfSignatureDeclaration(Ge,E,BW,ae));function yi(go){return ve=void 0,$||(i=Sr),go||X.createKeywordTypeNode(133)}}function no(Ge){switch(Ge=__(Ge),Ge.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!Ie.isDeclarationVisible(Ge);case 260:return!Mo(Ge);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function os(Ge){var Br;if(Ge.body)return!0;const Ei=(Br=Ge.symbol.declarations)==null?void 0:Br.filter(Ln=>mg(Ln)&&!Ln.body);return!Ei||Ei.indexOf(Ge)===Ei.length-1}function Mo(Ge){return cb(Ge)?!1:$_(Ge.name)?gt(Ge.name.elements,Mo):Ie.isDeclarationVisible(Ge)}function $i(Ge,Br,Ei){if(tT(Ge,2))return X.createNodeArray();const Ln=Vn(Br,Sr=>Pn(Sr,Ei));return Ln?X.createNodeArray(Ln,Br.hasTrailingComma):X.createNodeArray()}function ki(Ge,Br){let Ei;if(!Br){const Ln=BN(Ge);Ln&&(Ei=[Pn(Ln)])}if(Xb(Ge)){let Ln;if(!Br){const Sr=AH(Ge);if(Sr){const yi=Wn(Ge,Ie.getAllAccessorDeclarations(Ge));Ln=Pn(Sr,void 0,yi)}}Ln||(Ln=X.createParameterDeclaration(void 0,void 0,"value")),Ei=ur(Ei,Ln)}return X.createNodeArray(Ei||Yn)}function gc(Ge,Br){return tT(Ge,2)?void 0:Wa(Br,_a,Np)}function Wl(Ge){return Nu(Ge)||z0(Ge)||dy(Ge)||Ih(Ge)||xp(Ge)||F_(Ge)||Z2(Ge)||LJ(Ge)}function Jc(Ge,Br){const Ei=Ie.isEntityNameVisible(Ge,Br);It(Ei),Ze(Ie.getTypeReferenceDirectivesForEntityName(Ge))}function au(Ge,Br){return NT(Ge)&&NT(Br)&&(Ge.jsDoc=Br.jsDoc),_y(Ge,MS(Br))}function qn(Ge,Br){if(Br){if(d=d||Ge.kind!==267&&Ge.kind!==205,Cm(Br))if(u){const Ei=Rde(e.getEmitHost(),Ie,Ge);if(Ei)return X.createStringLiteral(Ei)}else{const Ei=Ie.getSymbolOfExternalModuleSpecifier(Br);Ei&&(J||(J=[])).push(Ei)}return Br}}function za(Ge){if(Ie.isDeclarationVisible(Ge))if(Ge.moduleReference.kind===283){const Br=iG(Ge);return X.updateImportEqualsDeclaration(Ge,Ge.modifiers,Ge.isTypeOnly,Ge.name,X.updateExternalModuleReference(Ge.moduleReference,qn(Ge,Br)))}else{const Br=i;return i=QN(Ge),Jc(Ge.moduleReference,E),i=Br,Ge}}function Ia(Ge){if(!Ge.importClause)return X.updateImportDeclaration(Ge,Ge.modifiers,Ge.importClause,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));const Br=Ge.importClause&&Ge.importClause.name&&Ie.isDeclarationVisible(Ge.importClause)?Ge.importClause.name:void 0;if(!Ge.importClause.namedBindings)return Br&&X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,void 0),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));if(Ge.importClause.namedBindings.kind===274){const Ln=Ie.isDeclarationVisible(Ge.importClause.namedBindings)?Ge.importClause.namedBindings:void 0;return Br||Ln?X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,Ln),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes)):void 0}const Ei=Qo(Ge.importClause.namedBindings.elements,Ln=>Ie.isDeclarationVisible(Ln)?Ln:void 0);if(Ei&&Ei.length||Br)return X.updateImportDeclaration(Ge,Ge.modifiers,X.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,Br,Ei&&Ei.length?X.updateNamedImports(Ge.importClause.namedBindings,Ei):void 0),qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));if(Ie.isImportRequiredByAugmentation(Ge))return X.updateImportDeclaration(Ge,Ge.modifiers,void 0,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes))}function zi(Ge){const Br=W3(Ge);return Ge&&Br!==void 0?Ge:void 0}function na(Ge){for(;Nt(k);){const Ei=k.shift();if(!B8(Ei))return re.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${re.formatSyntaxKind(Ei.kind)}`);const Ln=c;c=Ei.parent&&Nu(Ei.parent)&&!(Bv(Ei.parent)&&u);const Sr=yf(Ei);c=Ln,F.set(Nb(Ei),Sr)}return Wa(Ge,Br,dl);function Br(Ei){if(B8(Ei)){const Ln=Nb(Ei);if(F.has(Ln)){const Sr=F.get(Ln);return F.delete(Ln),Sr&&((ls(Sr)?gt(Sr,kN):kN(Sr))&&(h=!0),Nu(Ei.parent)&&(ls(Sr)?gt(Sr,XX):XX(Sr))&&(d=!0)),Sr}}return Ei}}function _a(Ge){if(dr(Ge)||PT(Ge)&&(no(Ge)||tI(Ge)&&!Ie.isLateBound(__(Ge)))||F_(Ge)&&Ie.isImplementationOfOverload(Ge)||spe(Ge))return;let Br;Wl(Ge)&&(Br=E,E=Ge);const Ei=i,Ln=Fae(Ge),Sr=$;let yi=(Ge.kind===187||Ge.kind===200)&&Ge.parent.kind!==265;if((tm(Ge)||pg(Ge))&&tT(Ge,2))return Ge.symbol&&Ge.symbol.declarations&&Ge.symbol.declarations[0]!==Ge?void 0:go(X.createPropertyDeclaration(Bt(Ge),Ge.name,void 0,void 0,void 0));if(Ln&&!$&&(i=QN(Ge)),m6(Ge)&&Jc(Ge.exprName,E),yi&&($=!0),Sct(Ge))switch(Ge.kind){case 233:{(kT(Ge.expression)||Tg(Ge.expression))&&Jc(Ge.expression,E);const Ao=Xo(Ge,_a,e);return go(X.updateExpressionWithTypeArguments(Ao,Ao.expression,Ao.typeArguments))}case 183:{Jc(Ge.typeName,E);const Ao=Xo(Ge,_a,e);return go(X.updateTypeReferenceNode(Ao,Ao.typeName,Ao.typeArguments))}case 180:return go(X.updateConstructSignature(Ge,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 176:{const Ao=X.createConstructorDeclaration(Bt(Ge),$i(Ge,Ge.parameters,0),void 0);return go(Ao)}case 174:{if(Lu(Ge.name))return go(void 0);const Ao=X.createMethodDeclaration(Bt(Ge),void 0,Ge.name,Ge.questionToken,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type),void 0);return go(Ao)}case 177:{if(Lu(Ge.name))return go(void 0);const Ao=Wn(Ge,Ie.getAllAccessorDeclarations(Ge));return go(X.updateGetAccessorDeclaration(Ge,Bt(Ge),Ge.name,ki(Ge,tT(Ge,2)),io(Ge,Ao),void 0))}case 178:return Lu(Ge.name)?go(void 0):go(X.updateSetAccessorDeclaration(Ge,Bt(Ge),Ge.name,ki(Ge,tT(Ge,2)),void 0));case 172:return Lu(Ge.name)?go(void 0):go(X.updatePropertyDeclaration(Ge,Bt(Ge),Ge.name,Ge.questionToken,io(Ge,Ge.type),Ki(Ge)));case 171:return Lu(Ge.name)?go(void 0):go(X.updatePropertySignature(Ge,Bt(Ge),Ge.name,Ge.questionToken,io(Ge,Ge.type)));case 173:return Lu(Ge.name)?go(void 0):go(X.updateMethodSignature(Ge,Bt(Ge),Ge.name,Ge.questionToken,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 179:return go(X.updateCallSignature(Ge,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type)));case 181:return go(X.updateIndexSignature(Ge,Bt(Ge),$i(Ge,Ge.parameters),Bn(Ge.type,_a,pc)||X.createKeywordTypeNode(133)));case 260:return $_(Ge.name)?Eu(Ge.name):(yi=!0,$=!0,go(X.updateVariableDeclaration(Ge,Ge.name,void 0,io(Ge,Ge.type),Ki(Ge))));case 168:return us(Ge)&&(Ge.default||Ge.constraint)?go(X.updateTypeParameterDeclaration(Ge,Ge.modifiers,Ge.name,void 0,void 0)):go(Xo(Ge,_a,e));case 194:{const Ao=Bn(Ge.checkType,_a,pc),Io=Bn(Ge.extendsType,_a,pc),ze=E;E=Ge.trueType;const Ce=Bn(Ge.trueType,_a,pc);E=ze;const kt=Bn(Ge.falseType,_a,pc);return re.assert(Ao),re.assert(Io),re.assert(Ce),re.assert(kt),go(X.updateConditionalTypeNode(Ge,Ao,Io,Ce,kt))}case 184:return go(X.updateFunctionTypeNode(Ge,Wa(Ge.typeParameters,_a,Np),$i(Ge,Ge.parameters),re.checkDefined(Bn(Ge.type,_a,pc))));case 185:return go(X.updateConstructorTypeNode(Ge,Bt(Ge),Wa(Ge.typeParameters,_a,Np),$i(Ge,Ge.parameters),re.checkDefined(Bn(Ge.type,_a,pc))));case 205:return MN(Ge)?(st(Ge),go(X.updateImportTypeNode(Ge,X.updateLiteralTypeNode(Ge.argument,qn(Ge,Ge.argument.literal)),Ge.attributes,Ge.qualifier,Wa(Ge.typeArguments,_a,pc),Ge.isTypeOf))):go(Ge);default:re.assertNever(Ge,`Attempted to process unhandled node kind: ${re.formatSyntaxKind(Ge.kind)}`)}return gW(Ge)&&xm(Fe,Ge.pos).line===xm(Fe,Ge.end).line&&_s(Ge,1),go(Xo(Ge,_a,e));function go(Ao){return Ao&&Ln&&tI(Ge)&&Hn(Ge),Wl(Ge)&&(E=Br),Ln&&!$&&(i=Ei),yi&&($=Sr),Ao===Ge?Ao:Ao&&Ls(au(Ao,Ge),Ge)}}function us(Ge){return Ge.parent.kind===174&&tT(Ge.parent,2)}function Au(Ge){if(!x4e(Ge)||dr(Ge))return;switch(Ge.kind){case 278:return Nu(Ge.parent)&&(d=!0),S=!0,st(Ge),X.updateExportDeclaration(Ge,Ge.modifiers,Ge.isTypeOnly,Ge.exportClause,qn(Ge,Ge.moduleSpecifier),zi(Ge.attributes));case 277:{if(Nu(Ge.parent)&&(d=!0),S=!0,Ge.expression.kind===80)return Ge;{const Ei=X.createUniqueName("_default",16);i=()=>({diagnosticMessage:N.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ge}),we=Ge;const Ln=X.createVariableDeclaration(Ei,void 0,Ie.createTypeOfExpression(Ge.expression,Ge,BW,ae),void 0);we=void 0;const Sr=X.createVariableStatement(c?[X.createModifier(138)]:[],X.createVariableDeclarationList([Ln],2));return au(Sr,Ge),aW(Ge),[Sr,X.updateExportAssignment(Ge,Ge.modifiers,Ei)]}}}const Br=yf(Ge);return F.set(Nb(Ge),Br),Ge}function Qu(Ge){if(Yb(Ge)||tT(Ge,2048)||!DA(Ge))return Ge;const Br=X.createModifiersFromModifierFlags(Cb(Ge)&131039);return X.replaceModifiers(Ge,Br)}function Cu(Ge,Br,Ei,Ln){const Sr=X.updateModuleDeclaration(Ge,Br,Ei,Ln);if(dh(Sr)||Sr.flags&32)return Sr;const yi=X.createModuleDeclaration(Sr.modifiers,Sr.name,Sr.body,Sr.flags|32);return Ls(yi,Sr),Tn(yi,Sr),yi}function yf(Ge){if(k)for(;xL(k,Ge););if(dr(Ge))return;switch(Ge.kind){case 271:{const go=za(Ge);return go&&st(Ge),go}case 272:{const go=Ia(Ge);return go&&st(Ge),go}}if(PT(Ge)&&no(Ge)||F_(Ge)&&Ie.isImplementationOfOverload(Ge))return;let Br;Wl(Ge)&&(Br=E,E=Ge);const Ei=Fae(Ge),Ln=i;Ei&&(i=QN(Ge));const Sr=c;switch(Ge.kind){case 265:{c=!1;const go=yi(X.updateTypeAliasDeclaration(Ge,Bt(Ge),Ge.name,Wa(Ge.typeParameters,_a,Np),re.checkDefined(Bn(Ge.type,_a,pc))));return c=Sr,go}case 264:return yi(X.updateInterfaceDeclaration(Ge,Bt(Ge),Ge.name,gc(Ge,Ge.typeParameters),$r(Ge.heritageClauses),Wa(Ge.members,_a,rb)));case 262:{const go=yi(X.updateFunctionDeclaration(Ge,Bt(Ge),void 0,Ge.name,gc(Ge,Ge.typeParameters),$i(Ge,Ge.parameters),io(Ge,Ge.type),void 0));if(go&&Ie.isExpandoFunctionDeclaration(Ge)&&os(Ge)){const Ao=Ie.getPropertiesOfContainerFunction(Ge),Io=Ck.createModuleDeclaration(void 0,go.name||X.createIdentifier("_default"),X.createModuleBlock([]),32);kl(Io,E),Io.locals=zd(Ao),Io.symbol=Ao[0].parent;const ze=[];let Ce=Qo(Ao,Jn=>{if(!eJ(Jn.valueDeclaration))return;const Nn=Ic(Jn.escapedName);if(!H2(Nn,99))return;i=QN(Jn.valueDeclaration);const Lr=Ie.createTypeOfDeclaration(Jn.valueDeclaration,Io,BW,ae);i=Ln;const qi=w7(Nn),vo=qi?X.getGeneratedNameForNode(Jn.valueDeclaration):X.createIdentifier(Nn);qi&&ze.push([vo,Nn]);const Ro=X.createVariableDeclaration(vo,void 0,Lr,void 0);return X.createVariableStatement(qi?void 0:[X.createToken(95)],X.createVariableDeclarationList([Ro]))});ze.length?Ce.push(X.createExportDeclaration(void 0,!1,X.createNamedExports(Vn(ze,([Jn,Nn])=>X.createExportSpecifier(!1,Jn,Nn))))):Ce=Qo(Ce,Jn=>X.replaceModifiers(Jn,0));const kt=X.createModuleDeclaration(Bt(Ge),Ge.name,X.createModuleBlock(Ce),32);if(!tT(go,2048))return[go,kt];const qe=X.createModifiersFromModifierFlags(Cb(go)&-2081|128),Mt=X.updateFunctionDeclaration(go,qe,void 0,go.name,go.typeParameters,go.parameters,go.type,void 0),ge=X.updateModuleDeclaration(kt,qe,kt.name,kt.body),mn=X.createExportAssignment(void 0,!1,kt.name);return Nu(Ge.parent)&&(d=!0),S=!0,[Mt,ge,mn]}else return go}case 267:{c=!1;const go=Ge.body;if(go&&go.kind===268){const Ao=h,Io=S;S=!1,h=!1;const ze=Wa(go.statements,Au,dl);let Ce=na(ze);Ge.flags&33554432&&(h=!1),!JC(Ge)&&!Pr(Ce)&&!S&&(h?Ce=X.createNodeArray([...Ce,Boe(X)]):Ce=Wa(Ce,Qu,dl));const kt=X.updateModuleBlock(go,Ce);c=Sr,h=Ao,S=Io;const qe=Bt(Ge);return yi(Cu(Ge,qe,Ov(Ge)?qn(Ge,Ge.name):Ge.name,kt))}else{c=Sr;const Ao=Bt(Ge);c=!1,Bn(go,Au);const Io=Nb(go),ze=F.get(Io);return F.delete(Io),yi(Cu(Ge,Ao,Ge.name,ze))}}case 263:{ve=Ge.name,we=Ge;const go=X.createNodeArray(Bt(Ge)),Ao=gc(Ge,Ge.typeParameters),Io=sC(Ge);let ze;if(Io){const mn=i;ze=uN(ea(Io.parameters,Jn=>{if(!ul(Jn,31)||dr(Jn))return;if(i=QN(Jn),Jn.name.kind===80)return au(X.createPropertyDeclaration(Bt(Jn),Jn.name,Jn.questionToken,io(Jn,Jn.type),Ki(Jn)),Jn);return Nn(Jn.name);function Nn(Lr){let qi;for(const vo of Lr.elements)cb(vo)||($_(vo.name)&&(qi=Hi(qi,Nn(vo.name))),qi=qi||[],qi.push(X.createPropertyDeclaration(Bt(Jn),vo.name,void 0,io(vo,void 0),void 0)));return qi}})),i=mn}const kt=gt(Ge.members,mn=>!!mn.name&&Lu(mn.name))?[X.createPropertyDeclaration(void 0,X.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,qe=Hi(Hi(kt,ze),Wa(Ge.members,_a,J_)),Mt=X.createNodeArray(qe),ge=YC(Ge);if(ge&&!Tg(ge.expression)&&ge.expression.kind!==106){const mn=Ge.name?Ic(Ge.name.escapedText):"default",Jn=X.createUniqueName(`${mn}_base`,16);i=()=>({diagnosticMessage:N.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ge,typeName:Ge.name});const Nn=X.createVariableDeclaration(Jn,void 0,Ie.createTypeOfExpression(ge.expression,Ge,BW,ae),void 0),Lr=X.createVariableStatement(c?[X.createModifier(138)]:[],X.createVariableDeclarationList([Nn],2)),qi=X.createNodeArray(Vn(Ge.heritageClauses,vo=>{if(vo.token===96){const Ro=i;i=QN(vo.types[0]);const Ts=X.updateHeritageClause(vo,Vn(vo.types,Cc=>X.updateExpressionWithTypeArguments(Cc,Jn,Wa(Cc.typeArguments,_a,pc))));return i=Ro,Ts}return X.updateHeritageClause(vo,Wa(X.createNodeArray(gi(vo.types,Ro=>Tg(Ro.expression)||Ro.expression.kind===106)),_a,cC))}));return[Lr,yi(X.updateClassDeclaration(Ge,go,Ge.name,Ao,qi,Mt))]}else{const mn=$r(Ge.heritageClauses);return yi(X.updateClassDeclaration(Ge,go,Ge.name,Ao,mn,Mt))}}case 243:return yi(w_(Ge));case 266:return yi(X.updateEnumDeclaration(Ge,X.createNodeArray(Bt(Ge)),Ge.name,X.createNodeArray(Qo(Ge.members,go=>{if(dr(go))return;const Ao=Ie.getConstantValue(go);return au(X.updateEnumMember(go,go.name,Ao!==void 0?typeof Ao=="string"?X.createStringLiteral(Ao):X.createNumericLiteral(Ao):void 0),go)}))))}return re.assertNever(Ge,`Unhandled top-level node in declaration emit: ${re.formatSyntaxKind(Ge.kind)}`);function yi(go){return Wl(Ge)&&(E=Br),Ei&&(i=Ln),Ge.kind===267&&(c=Sr),go===Ge?go:(we=void 0,ve=void 0,go&&Ls(au(go,Ge),Ge))}}function w_(Ge){if(!Ot(Ge.declarationList.declarations,Mo))return;const Br=Wa(Ge.declarationList.declarations,_a,Kc);if(!Nt(Br))return;const Ei=X.createNodeArray(Bt(Ge));let Ln;return aY(Ge.declarationList)||nC(Ge.declarationList)?(Ln=X.createVariableDeclarationList(Br,2),Ls(Ln,Ge.declarationList),Tn(Ln,Ge.declarationList),_y(Ln,Ge.declarationList)):Ln=X.updateVariableDeclarationList(Ge.declarationList,Br),X.updateVariableStatement(Ge,Ei,Ln)}function Eu(Ge){return Gf(Qo(Ge.elements,Br=>He(Br)))}function He(Ge){if(Ge.kind!==232&&Ge.name)return Mo(Ge)?$_(Ge.name)?Eu(Ge.name):X.createVariableDeclaration(Ge.name,void 0,io(Ge,void 0),void 0):void 0}function Hn(Ge){let Br;$||(Br=i,i=wme(Ge)),ve=Ge.name,re.assert(Ie.isLateBound(__(Ge)));const Ln=Ge.name.expression;Jc(Ln,E),$||(i=Br),ve=void 0}function dr(Ge){return!!Lt&&!!Ge&&Wae(Ge,Fe)}function Mr(Ge){return py(Ge)||ry(Ge)}function Pr(Ge){return gt(Ge,Mr)}function Bt(Ge){const Br=Cb(Ge),Ei=ln(Ge);return Br===Ei?Iae(Ge.modifiers,Ln=>to(Ln,Mf),Mf):X.createModifiersFromModifierFlags(Ei)}function ln(Ge){let Br=130030,Ei=c&&!vct(Ge)?128:0;const Ln=Ge.parent.kind===312;return(!Ln||u&&Ln&&Bv(Ge.parent))&&(Br^=128,Ei=0),mF(Ge,Br,Ei)}function Wn(Ge,Br){let Ei=E4e(Ge);return!Ei&&Ge!==Br.firstAccessor&&(Ei=E4e(Br.firstAccessor),i=QN(Br.firstAccessor)),!Ei&&Br.secondAccessor&&Ge!==Br.secondAccessor&&(Ei=E4e(Br.secondAccessor),i=QN(Br.secondAccessor)),Ei}function $r(Ge){return X.createNodeArray(gi(Vn(Ge,Br=>X.updateHeritageClause(Br,Wa(X.createNodeArray(gi(Br.types,Ei=>Tg(Ei.expression)||Br.token===96&&Ei.expression.kind===106)),_a,cC))),Br=>Br.types&&!!Br.types.length))}}function vct(e){return e.kind===264}function bct(e,n,i,c){return e.createModifiersFromModifierFlags(mF(n,i,c))}function mF(e,n=131070,i=0){let c=Cb(e)&n|i;return c&2048&&!(c&32)&&(c^=32),c&2048&&c&128&&(c^=128),c}function E4e(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function Tct(e){switch(e.kind){case 172:case 171:return!tT(e,2);case 169:case 260:return!0}return!1}function x4e(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function Sct(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var BW,Ect=G({"src/compiler/transformers/declarations.ts"(){md(),B2e(),BW=531469}});function tJe(e){switch(e){case 99:case 7:case 6:case 5:return Nme;case 4:return v4e;case 100:case 199:return b4e;default:return Oae}}function Rme(e,n,i){return{scriptTransformers:xct(e,n,i),declarationTransformers:Bae(n)}}function xct(e,n,i){if(i)return Yn;const c=iu(e),u=Zp(e),d=X9(e),h=[];return Oi(h,n&&Vn(n.before,uxe)),h.push(u4e),e.experimentalDecorators&&h.push(Lae),VH(e)&&h.push(ixe),c<99&&h.push(Ime),!e.experimentalDecorators&&(c<99||!d)&&h.push(Z2e),h.push(f4e),c<8&&h.push(Dme),c<7&&h.push(txe),c<6&&h.push(p4e),c<5&&h.push(d4e),c<4&&h.push(exe),c<3&&h.push(oxe),c<2&&(h.push(axe),h.push(sxe)),h.push(tJe(u)),c<1&&h.push(Pme),Oi(h,n&&Vn(n.after,uxe)),h}function Bae(e){const n=[];return n.push(lxe),Oi(n,e&&Vn(e.afterDeclarations,I6)),n}function Mme(e){return n=>fpe(n)?e.transformBundle(n):e.transformSourceFile(n)}function zae(e,n){return i=>{const c=e(i);return typeof c=="function"?n(i,c):Mme(c)}}function uxe(e){return zae(e,_C)}function I6(e){return zae(e,(n,i)=>i)}function WQ(e,n){return n}function BQ(e,n,i){i(e,n)}function x$(e,n,i,c,u,d,h){var S,E;const P=new Array(363);let k,F,$,J=0,X=[],ie=[],ae=[],ve=[],we=0,Fe=!1,et=[],Pe=0,dt,Ie,ct=WQ,Ct=BQ,Lt=0;const Ze=[],Ke={factory:i,getCompilerOptions:()=>c,getEmitResolver:()=>e,getEmitHost:()=>n,getEmitHelperFactory:Pd(()=>ipe(Ke)),startLexicalEnvironment:jt,suspendLexicalEnvironment:En,resumeLexicalEnvironment:fr,endLexicalEnvironment:Tr,setLexicalEnvironmentFlags:Vr,getLexicalEnvironmentFlags:Pn,hoistVariableDeclaration:Kt,hoistFunctionDeclaration:wr,addInitializationStatement:Wr,startBlockScope:Fr,endBlockScope:Ki,addBlockScopedVariable:io,requestEmitHelper:no,readEmitHelpers:os,enableSubstitution:at,enableEmitNotification:Rn,isSubstitutionEnabled:Qt,isEmitNotificationEnabled:cn,get onSubstituteNode(){return ct},set onSubstituteNode($i){re.assert(Lt<1,"Cannot modify transformation hooks after initialization has completed."),re.assert($i!==void 0,"Value must not be 'undefined'"),ct=$i},get onEmitNode(){return Ct},set onEmitNode($i){re.assert(Lt<1,"Cannot modify transformation hooks after initialization has completed."),re.assert($i!==void 0,"Value must not be 'undefined'"),Ct=$i},addDiagnostic($i){Ze.push($i)}};for(const $i of u)cI(ts(__($i)));cf("beforeTransform");const st=d.map($i=>$i(Ke)),It=$i=>{for(const ki of st)$i=ki($i);return $i};Lt=1;const Yt=[];for(const $i of u)(S=ps)==null||S.push(ps.Phase.Emit,"transformNodes",$i.kind===312?{path:$i.path}:{kind:$i.kind,pos:$i.pos,end:$i.end}),Yt.push((h?It:Et)($i)),(E=ps)==null||E.pop();return Lt=2,cf("afterTransform"),Tb("transformTime","beforeTransform","afterTransform"),{transformed:Yt,substituteNode:nn,emitNodeWithNotification:qt,isEmitNotificationEnabled:cn,dispose:Mo,diagnostics:Ze};function Et($i){return $i&&(!Nu($i)||!$i.isDeclarationFile)?It($i):$i}function at($i){re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),P[$i]|=1}function Qt($i){return(P[$i.kind]&1)!==0&&(wd($i)&8)===0}function nn($i,ki){return re.assert(Lt<3,"Cannot substitute a node after the result is disposed."),ki&&Qt(ki)&&ct($i,ki)||ki}function Rn($i){re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),P[$i]|=2}function cn($i){return(P[$i.kind]&2)!==0||(wd($i)&4)!==0}function qt($i,ki,gc){re.assert(Lt<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ki&&(cn(ki)?Ct($i,ki,gc):gc($i,ki))}function Kt($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed.");const ki=_s(i.createVariableDeclaration($i),128);k?k.push(ki):k=[ki],J&1&&(J|=2)}function wr($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),_s($i,2097152),F?F.push($i):F=[$i]}function Wr($i){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),_s($i,2097152),$?$.push($i):$=[$i]}function jt(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is suspended."),X[we]=k,ie[we]=F,ae[we]=$,ve[we]=J,we++,k=void 0,F=void 0,$=void 0,J=0}function En(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is already suspended."),Fe=!0}function fr(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(Fe,"Lexical environment is not suspended."),Fe=!1}function Tr(){re.assert(Lt>0,"Cannot modify the lexical environment during initialization."),re.assert(Lt<2,"Cannot modify the lexical environment after transformation has completed."),re.assert(!Fe,"Lexical environment is suspended.");let $i;if(k||F||$){if(F&&($i=[...F]),k){const ki=i.createVariableStatement(void 0,i.createVariableDeclarationList(k));_s(ki,2097152),$i?$i.push(ki):$i=[ki]}$&&($i?$i=[...$i,...$]:$i=[...$])}return we--,k=X[we],F=ie[we],$=ae[we],J=ve[we],we===0&&(X=[],ie=[],ae=[],ve=[]),$i}function Vr($i,ki){J=ki?J|$i:J&~$i}function Pn(){return J}function Fr(){re.assert(Lt>0,"Cannot start a block scope during initialization."),re.assert(Lt<2,"Cannot start a block scope after transformation has completed."),et[Pe]=dt,Pe++,dt=void 0}function Ki(){re.assert(Lt>0,"Cannot end a block scope during initialization."),re.assert(Lt<2,"Cannot end a block scope after transformation has completed.");const $i=gt(dt)?[i.createVariableStatement(void 0,i.createVariableDeclarationList(dt.map(ki=>i.createVariableDeclaration(ki)),1))]:void 0;return Pe--,dt=et[Pe],Pe===0&&(et=[]),$i}function io($i){re.assert(Pe>0,"Cannot add a block scoped variable outside of an iteration body."),(dt||(dt=[])).push($i)}function no($i){if(re.assert(Lt>0,"Cannot modify the transformation context during initialization."),re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed."),re.assert(!$i.scoped,"Cannot request a scoped emit helper."),$i.dependencies)for(const ki of $i.dependencies)no(ki);Ie=ur(Ie,$i)}function os(){re.assert(Lt>0,"Cannot modify the transformation context during initialization."),re.assert(Lt<2,"Cannot modify the transformation context after transformation has completed.");const $i=Ie;return Ie=void 0,$i}function Mo(){if(Lt<3){for(const $i of u)cI(ts(__($i)));k=void 0,X=void 0,F=void 0,ie=void 0,ct=void 0,Ct=void 0,Ie=void 0,Lt=3}}}var ZN,sx,Gae=G({"src/compiler/transformer.ts"(){md(),iP(),ZN={scriptTransformers:Yn,declarationTransformers:Yn},sx={factory:he,getCompilerOptions:()=>({}),getEmitResolver:Na,getEmitHost:Na,getEmitHelperFactory:Na,startLexicalEnvironment:ku,resumeLexicalEnvironment:ku,suspendLexicalEnvironment:ku,endLexicalEnvironment:eE,setLexicalEnvironmentFlags:ku,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ku,hoistFunctionDeclaration:ku,addInitializationStatement:ku,startBlockScope:ku,endBlockScope:eE,addBlockScopedVariable:ku,requestEmitHelper:ku,readEmitHelpers:Na,enableSubstitution:ku,enableEmitNotification:ku,isSubstitutionEnabled:Na,isEmitNotificationEnabled:Na,onSubstituteNode:WQ,onEmitNode:BQ,addDiagnostic:ku}}});function fxe(e){return mm(e,".tsbuildinfo")}function zQ(e,n,i,c=!1,u,d){const h=ls(i)?i:Oie(e,i,c),S=e.getCompilerOptions();if(Ng(S)){const E=e.getPrependNodes();if(h.length||E.length){const P=he.createBundle(h,E),k=n(A$(P,e,c),P);if(k)return k}}else{if(!u)for(const E of h){const P=n(A$(E,e,c),E);if(P)return P}if(d){const E=PR(S);if(E)return n({buildInfoPath:E},void 0)}}}function PR(e){const n=e.configFilePath;if(!K9(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const i=Ng(e);let c;if(i)c=wg(i);else{if(!n)return;const u=wg(n);c=e.outDir?e.rootDir?PL(e.outDir,sP(e.rootDir,u,!0)):vl(e.outDir,Jg(u)):u}return c+".tsbuildinfo"}function O3(e,n){const i=Ng(e),c=e.emitDeclarationOnly?void 0:i,u=c&&A4e(c,e),d=n||gv(e)?wg(i)+".d.ts":void 0,h=d&&zH(e)?d+".map":void 0,S=PR(e);return{jsFilePath:c,sourceMapFilePath:u,declarationFilePath:d,declarationMapPath:h,buildInfoPath:S}}function A$(e,n,i){const c=n.getCompilerOptions();if(e.kind===313)return O3(c,i);{const u=hR(e.fileName,n,jae(e.fileName,c)),d=Rx(e),h=d&&Rv(e.fileName,u,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0,S=c.emitDeclarationOnly||h?void 0:u,E=!S||Rx(e)?void 0:A4e(S,c),P=i||gv(c)&&!d?Rie(e.fileName,n):void 0,k=P&&zH(c)?P+".map":void 0;return{jsFilePath:S,sourceMapFilePath:E,declarationFilePath:P,declarationMapPath:k,buildInfoPath:void 0}}}function A4e(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function jae(e,n){return mm(e,".json")?".json":n.jsx===1&&pv(e,[".jsx",".tsx"])?".jsx":pv(e,[".mts",".mjs"])?".mjs":pv(e,[".cts",".cjs"])?".cjs":".js"}function C4e(e,n,i,c,u){return c?PL(c,sP(u?u():hF(n,i),e,i)):e}function gF(e,n,i,c){return SA(C4e(e,n,i,n.options.declarationDir||n.options.outDir,c),TY(e))}function GQ(e,n,i,c){if(n.options.emitDeclarationOnly)return;const u=mm(e,".json"),d=SA(C4e(e,n,i,n.options.outDir,c),jae(e,n.options));return!u||Rv(e,d,re.checkDefined(n.options.configFilePath),i)!==0?d:void 0}function Lme(){let e;return{addOutput:n,getOutputs:i};function n(c){c&&(e||(e=[])).push(c)}function i(){return e||Yn}}function nJe(e,n){const{jsFilePath:i,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:d,buildInfoPath:h}=O3(e.options,!1);n(i),n(c),n(u),n(d),n(h)}function _xe(e,n,i,c,u){if(Zb(n))return;const d=GQ(n,e,i,u);if(c(d),!mm(n,".json")&&(d&&e.options.sourceMap&&c(`${d}.map`),gv(e.options))){const h=gF(n,e,i,u);c(h),e.options.declarationMap&&c(`${h}.map`)}}function zW(e,n,i,c,u){let d;return e.rootDir?(d=vf(e.rootDir,i),u==null||u(e.rootDir)):e.composite&&e.configFilePath?(d=ws($1(e.configFilePath)),u==null||u(d)):d=JQ(n(),i,c),d&&d[d.length-1]!==qp&&(d+=qp),d}function hF({options:e,fileNames:n},i){return zW(e,()=>gi(n,c=>!(e.noEmitForJsFiles&&pv(c,h3))&&!Zb(c)),ws($1(re.checkDefined(e.configFilePath))),H1(!i))}function Vae(e,n){const{addOutput:i,getOutputs:c}=Lme();if(Ng(e.options))nJe(e,i);else{const u=Pd(()=>hF(e,n));for(const d of e.fileNames)_xe(e,d,n,i,u);i(PR(e.options))}return c()}function Ome(e,n,i){n=hf(n),re.assert(ni(e.fileNames,n),"Expected fileName to be present in command line");const{addOutput:c,getOutputs:u}=Lme();return Ng(e.options)?nJe(e,c):_xe(e,n,i,c),u()}function dxe(e,n){if(Ng(e.options)){const{jsFilePath:u,declarationFilePath:d}=O3(e.options,!1);return re.checkDefined(u||d,`project ${e.options.configFilePath} expected to have at least one output`)}const i=Pd(()=>hF(e,n));for(const u of e.fileNames){if(Zb(u))continue;const d=GQ(u,e,n,i);if(d)return d;if(!mm(u,".json")&&gv(e.options))return gF(u,e,n,i)}const c=PR(e.options);return c||re.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Uae(e,n,i,{scriptTransformers:c,declarationTransformers:u},d,h,S){var E=n.getCompilerOptions(),P=E.sourceMap||E.inlineSourceMap||zH(E)?[]:void 0,k=E.listEmittedFiles?[]:void 0,F=UL(),$=JE(E),J=Nie($),{enter:X,exit:ie}=tE("printTime","beforePrint","afterPrint"),ae,ve=!1;return X(),zQ(n,we,Oie(n,i,S),S,h,!i),ie(),{emitSkipped:ve,diagnostics:F.getDiagnostics(),emittedFiles:k,sourceMaps:P};function we({jsFilePath:Ke,sourceMapFilePath:st,declarationFilePath:It,declarationMapPath:Yt,buildInfoPath:Et},at){var Qt,nn,Rn,cn,qt,Kt;let wr;Et&&at&&fpe(at)&&(wr=ws(vf(Et,n.getCurrentDirectory())),ae={commonSourceDirectory:Wr(n.getCommonSourceDirectory()),sourceFiles:at.sourceFiles.map(jt=>Wr(vf(jt.fileName,n.getCurrentDirectory())))}),(Qt=ps)==null||Qt.push(ps.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ke}),et(at,Ke,st,Wr),(nn=ps)==null||nn.pop(),(Rn=ps)==null||Rn.push(ps.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:It}),Pe(at,It,Yt,Wr),(cn=ps)==null||cn.pop(),(qt=ps)==null||qt.push(ps.Phase.Emit,"emitBuildInfo",{buildInfoPath:Et}),Fe(ae,Et),(Kt=ps)==null||Kt.pop(),!ve&&k&&(d||(Ke&&k.push(Ke),st&&k.push(st),Et&&k.push(Et)),d!==0&&(It&&k.push(It),Yt&&k.push(Yt)));function Wr(jt){return Fd(sP(wr,jt,n.getCanonicalFileName))}}function Fe(Ke,st){if(!st||i||ve)return;if(n.isEmitBlocked(st)){ve=!0;return}const It=n.getBuildInfo(Ke)||Hae(void 0,Ke);G9(n,F,st,f4(It),!1,void 0,{buildInfo:It})}function et(Ke,st,It,Yt){if(!Ke||d||!st)return;if(n.isEmitBlocked(st)||E.noEmit){ve=!0;return}const Et=x$(e,n,he,E,[Ke],c,!1),at={removeComments:E.removeComments,newLine:E.newLine,noEmitHelpers:E.noEmitHelpers,module:E.module,target:E.target,sourceMap:E.sourceMap,inlineSourceMap:E.inlineSourceMap,inlineSources:E.inlineSources,extendedDiagnostics:E.extendedDiagnostics,writeBundleFileInfo:!!ae,relativeToBuildInfo:Yt},Qt=F3(at,{hasGlobalName:e.hasGlobalName,onEmitNode:Et.emitNodeWithNotification,isEmitNotificationEnabled:Et.isEmitNotificationEnabled,substituteNode:Et.substituteNode});re.assert(Et.transformed.length===1,"Should only see one output from the transform"),Ie(st,It,Et,Qt,E),Et.dispose(),ae&&(ae.js=Qt.bundleFileInfo)}function Pe(Ke,st,It,Yt){if(!Ke||d===0)return;if(!st){(d||E.emitDeclarationOnly)&&(ve=!0);return}const Et=Nu(Ke)?[Ke]:Ke.sourceFiles,at=S?Et:gi(Et,qM),Qt=Ng(E)?[he.createBundle(at,Nu(Ke)?void 0:Ke.prepends)]:at;d&&!gv(E)&&at.forEach(dt);const nn=x$(e,n,he,E,Qt,u,!1);if(Nt(nn.diagnostics))for(const Kt of nn.diagnostics)F.add(Kt);const Rn={removeComments:E.removeComments,newLine:E.newLine,noEmitHelpers:!0,module:E.module,target:E.target,sourceMap:!S&&E.declarationMap,inlineSourceMap:E.inlineSourceMap,extendedDiagnostics:E.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!ae,recordInternalSection:!!ae,relativeToBuildInfo:Yt},cn=F3(Rn,{hasGlobalName:e.hasGlobalName,onEmitNode:nn.emitNodeWithNotification,isEmitNotificationEnabled:nn.isEmitNotificationEnabled,substituteNode:nn.substituteNode}),qt=!!nn.diagnostics&&!!nn.diagnostics.length||!!n.isEmitBlocked(st)||!!E.noEmit;ve=ve||qt,(!qt||S)&&(re.assert(nn.transformed.length===1,"Should only see one output from the decl transform"),Ie(st,It,nn,cn,{sourceMap:Rn.sourceMap,sourceRoot:E.sourceRoot,mapRoot:E.mapRoot,extendedDiagnostics:E.extendedDiagnostics})),nn.dispose(),ae&&(ae.dts=cn.bundleFileInfo)}function dt(Ke){if(py(Ke)){Ke.expression.kind===80&&e.collectLinkedAliases(Ke.expression,!0);return}else if(my(Ke)){e.collectLinkedAliases(Ke.propertyName||Ke.name,!0);return}s_(Ke,dt)}function Ie(Ke,st,It,Yt,Et){const at=It.transformed[0],Qt=at.kind===313?at:void 0,nn=at.kind===312?at:void 0,Rn=Qt?Qt.sourceFiles:[nn];let cn;ct(Et,at)&&(cn=_me(n,Jg($1(Ke)),Ct(Et),Lt(Et,Ke,nn),Et)),Qt?Yt.writeBundle(Qt,J,cn):Yt.writeFile(nn,J,cn);let qt;if(cn){P&&P.push({inputSourceFileNames:cn.getSources(),sourceMap:cn.toJSON()});const wr=Ze(Et,cn,Ke,st,nn);if(wr&&(J.isAtStartOfLine()||J.rawWrite($),qt=J.getTextPos(),J.writeComment(`//# sourceMappingURL=${wr}`)),st){const Wr=cn.toString();G9(n,F,st,Wr,!1,Rn),Yt.bundleFileInfo&&(Yt.bundleFileInfo.mapHash=TF(Wr,n))}}else J.writeLine();const Kt=J.getText();G9(n,F,Ke,Kt,!!E.emitBOM,Rn,{sourceMapUrlPos:qt,diagnostics:It.diagnostics}),Yt.bundleFileInfo&&(Yt.bundleFileInfo.hash=TF(Kt,n)),J.clear()}function ct(Ke,st){return(Ke.sourceMap||Ke.inlineSourceMap)&&(st.kind!==312||!mm(st.fileName,".json"))}function Ct(Ke){const st=$1(Ke.sourceRoot||"");return st&&Su(st)}function Lt(Ke,st,It){if(Ke.sourceRoot)return n.getCommonSourceDirectory();if(Ke.mapRoot){let Yt=$1(Ke.mapRoot);return It&&(Yt=ws(Fie(It.fileName,n,Yt))),Pg(Yt)===0&&(Yt=vl(n.getCommonSourceDirectory(),Yt)),Yt}return ws(hf(st))}function Ze(Ke,st,It,Yt,Et){if(Ke.inlineSourceMap){const Qt=st.toString();return`data:application/json;base64,${TSe(w0,Qt)}`}const at=Jg($1(re.checkDefined(Yt)));if(Ke.mapRoot){let Qt=$1(Ke.mapRoot);return Et&&(Qt=ws(Fie(Et.fileName,n,Qt))),Pg(Qt)===0?(Qt=vl(n.getCommonSourceDirectory(),Qt),encodeURI(GC(ws(hf(It)),vl(Qt,at),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(vl(Qt,at))}return encodeURI(at)}}function Hae(e,n){return{bundle:n,program:e,version:At}}function f4(e){return JSON.stringify(e)}function Fme(e,n){return Uie(e,n)}function Act(e,n,i){var c;const u=re.checkDefined(e.js),d=((c=u.sources)==null?void 0:c.prologues)&&QT(u.sources.prologues,h=>h.file);return e.sourceFiles.map((h,S)=>{const E=d==null?void 0:d.get(S),P=E==null?void 0:E.directives.map($=>{const J=Tn(he.createStringLiteral($.expression.text),$.expression),X=Tn(he.createExpressionStatement(J),$);return kl(J,X),X}),k=he.createToken(1),F=he.createSourceFile(P??[],k,0);return F.fileName=sP(i.getCurrentDirectory(),vf(h,n),!i.useCaseSensitiveFileNames()),F.text=(E==null?void 0:E.text)??"",f3(F,0,(E==null?void 0:E.text.length)??0),u6(F.statements,F),f3(k,F.end,0),kl(k,F),F})}function D4e(e,n,i,c){var u,d;(u=ps)==null||u.push(ps.Phase.Emit,"emitUsingBuildInfo",{},!0),cf("beforeEmit");const h=Cct(e,n,i,c);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),(d=ps)==null||d.pop(),h}function Cct(e,n,i,c){const{buildInfoPath:u,jsFilePath:d,sourceMapFilePath:h,declarationFilePath:S,declarationMapPath:E}=O3(e.options,!1),P=n.getBuildInfo(u,e.options.configFilePath);if(!P||!P.bundle||!P.bundle.js||S&&!P.bundle.dts)return u;const k=n.readFile(re.checkDefined(d));if(!k||TF(k,n)!==P.bundle.js.hash)return d;const F=h&&n.readFile(h);if(h&&!F||e.options.inlineSourceMap)return h||"inline sourcemap decoding";if(h&&TF(F,n)!==P.bundle.js.mapHash)return h;const $=S&&n.readFile(S);if(S&&!$||S&&TF($,n)!==P.bundle.dts.hash)return S;const J=E&&n.readFile(E);if(E&&!J||e.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&TF(J,n)!==P.bundle.dts.mapHash)return E;const X=ws(vf(u,n.getCurrentDirectory())),ie=gEe(d,k,h,F,S,$,E,J,u,P,!0),ae=[],ve=ise(e.projectReferences,i,dt=>n.readFile(dt),n),we=Act(P.bundle,X,n);let Fe,et;const Pe={getPrependNodes:Pd(()=>[...ve,ie]),getCanonicalFileName:n.getCanonicalFileName,getCommonSourceDirectory:()=>vf(P.bundle.commonSourceDirectory,X),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>n.getCurrentDirectory(),getSourceFile:eE,getSourceFileByPath:eE,getSourceFiles:()=>we,getLibFileFromReference:Na,isSourceFileFromExternalLibrary:bg,getResolvedProjectReferenceToRedirect:eE,getProjectReferenceRedirect:eE,isSourceOfProjectReferenceRedirect:bg,writeFile:(dt,Ie,ct,Ct,Lt,Ze)=>{switch(dt){case d:if(k===Ie)return;break;case h:if(F===Ie)return;break;case u:break;case S:if($===Ie)return;Fe=Ie,et=Ze;break;case E:if(J===Ie)return;break;default:re.fail(`Unexpected path: ${dt}`)}ae.push({name:dt,text:Ie,writeByteOrderMark:ct,data:Ze})},isEmitBlocked:bg,readFile:dt=>n.readFile(dt),fileExists:dt=>n.fileExists(dt),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames(),getBuildInfo:dt=>{const Ie=P.program;Ie&&Fe!==void 0&&e.options.composite&&(Ie.outSignature=TF(Fe,n,et));const{js:ct,dts:Ct,sourceFiles:Lt}=P.bundle;return dt.js.sources=ct.sources,Ct&&(dt.dts.sources=Ct.sources),dt.sourceFiles=Lt,Hae(Ie,dt)},getSourceFileFromReference:eE,redirectTargetsMap:zg(),getFileIncludeReasons:Na,createHash:wc(n,n.createHash)};return Uae(Wme,Pe,void 0,Rme(e.options,c)),ae}function F3(e={},n={}){var{hasGlobalName:i,onEmitNode:c=BQ,isEmitNotificationEnabled:u,substituteNode:d=WQ,onBeforeEmitNode:h,onAfterEmitNode:S,onBeforeEmitNodeArray:E,onAfterEmitNodeArray:P,onBeforeEmitToken:k,onAfterEmitToken:F}=n,$=!!e.extendedDiagnostics,J=!!e.omitBraceSourceMapPositions,X=JE(e),ie=Zp(e),ae=new Map,ve,we,Fe,et,Pe,dt,Ie,ct,Ct,Lt,Ze,Ke,st,It,Yt,Et=e.preserveSourceNewlines,at,Qt,nn,Rn=P4,cn,qt=e.writeBundleFileInfo?{sections:[]}:void 0,Kt=qt?re.checkDefined(e.relativeToBuildInfo):void 0,wr=e.recordInternalSection,Wr=0,jt="text",En=!0,fr,Tr,Vr=-1,Pn,Fr=-1,Ki=-1,io=-1,no=-1,os,Mo,$i=!1,ki=!!e.removeComments,gc,Wl,{enter:Jc,exit:au}=ly($,"commentTime","beforeComment","afterComment"),qn=he.parenthesizer,za={select:ne=>ne===0?qn.parenthesizeLeadingTypeArgument:void 0},Ia=t2();return Br(),{printNode:zi,printList:na,printFile:us,printBundle:_a,writeNode:Qu,writeList:Cu,writeFile:Pr,writeBundle:dr,bundleFileInfo:qt};function zi(ne,yt,Er){switch(ne){case 0:re.assert(Nu(yt),"Expected a SourceFile node.");break;case 2:re.assert(xn(yt),"Expected an Identifier node.");break;case 1:re.assert(kr(yt),"Expected an Expression node.");break}switch(yt.kind){case 312:return us(yt);case 313:return _a(yt);case 314:return Au(yt)}return Qu(ne,yt,Er,Bt()),ln()}function na(ne,yt,Er){return Cu(ne,yt,Er,Bt()),ln()}function _a(ne){return dr(ne,Bt(),void 0),ln()}function us(ne){return Pr(ne,Bt(),void 0),ln()}function Au(ne){return Mr(ne,Bt()),ln()}function Qu(ne,yt,Er,Wi){const nc=Qt;Ge(Wi,void 0),Wn(ne,yt,Er),Br(),Qt=nc}function Cu(ne,yt,Er,Wi){const nc=Qt;Ge(Wi,void 0),Er&&$r(Er),Vo(void 0,yt,ne),Br(),Qt=nc}function yf(){return Qt.getTextPosWithWriteLine?Qt.getTextPosWithWriteLine():Qt.getTextPos()}function w_(ne,yt,Er){const Wi=Yf(qt.sections);Wi&&Wi.kind===Er?Wi.end=yt:qt.sections.push({pos:ne,end:yt,kind:Er})}function Eu(ne){if(wr&&qt&&ve&&(PT(ne)||Xg(ne))&&Wae(ne,ve)&&jt!=="internal"){const yt=jt;return Hn(Qt.getTextPos()),Wr=yf(),jt="internal",yt}}function He(ne){ne&&(Hn(Qt.getTextPos()),Wr=yf(),jt=ne)}function Hn(ne){return Wrre.assert(NSe(Z_))),qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"prepend",data:Kt(nc.fileName),texts:Pf}))}}Wr=yf();for(const nc of ne.sourceFiles)Wn(0,nc,nc);if(qt&&ne.sourceFiles.length){const nc=Qt.getTextPos();if(Hn(nc)){const Vu=tg(ne);Vu&&(qt.sources||(qt.sources={}),qt.sources.prologues=Vu);const ql=qi(ne);ql&&(qt.sources||(qt.sources={}),qt.sources.helpers=ql)}}Br(),Qt=Wi}function Mr(ne,yt){const Er=Qt;Ge(yt,void 0),Wn(4,ne,void 0),Br(),Qt=Er}function Pr(ne,yt,Er){cn=!0;const Wi=Qt;Ge(yt,Er),mS(ne),Tu(ne),Wn(0,ne,ne),Br(),Qt=Wi}function Bt(){return nn||(nn=Nie(X))}function ln(){const ne=nn.getText();return nn.clear(),ne}function Wn(ne,yt,Er){Er&&$r(Er),ze(ne,yt,void 0)}function $r(ne){ve=ne,os=void 0,Mo=void 0,ne&&pw(ne)}function Ge(ne,yt){ne&&e.omitTrailingSemicolon&&(ne=z9(ne)),Qt=ne,fr=yt,En=!Qt||!fr}function Br(){we=[],Fe=[],et=[],Pe=new Set,dt=[],Ie=new Map,ct=[],Ct=0,Lt=[],Ze=0,Ke=[],st=void 0,It=[],Yt=void 0,ve=void 0,os=void 0,Mo=void 0,Ge(void 0,void 0)}function Ei(){return os||(os=eR(re.checkDefined(ve)))}function Ln(ne,yt){if(ne===void 0)return;const Er=Eu(ne);ze(4,ne,yt),He(Er)}function Sr(ne){ne!==void 0&&ze(2,ne,void 0)}function yi(ne,yt){ne!==void 0&&ze(1,ne,yt)}function go(ne){ze(Sd(ne)?6:4,ne)}function Ao(ne){Et&&HC(ne)&4&&(Et=!1)}function Io(ne){Et=ne}function ze(ne,yt,Er){Wl=Er,qe(0,ne,yt)(ne,yt),Wl=void 0}function Ce(ne){return!ki&&!Nu(ne)}function kt(ne){return!En&&!Nu(ne)&&!Eie(ne)&&!rF(ne)&&!OJ(ne)}function qe(ne,yt,Er){switch(ne){case 0:if(c!==BQ&&(!u||u(Er)))return ge;case 1:if(d!==WQ&&(gc=d(yt,Er)||Er)!==Er)return Wl&&(gc=Wl(gc)),Lr;case 2:if(Ce(Er))return hV;case 3:if(kt(Er))return pO;case 4:return mn;default:return re.assertNever(ne)}}function Mt(ne,yt,Er){return qe(ne+1,yt,Er)}function ge(ne,yt){const Er=Mt(0,ne,yt);c(ne,yt,Er)}function mn(ne,yt){if(h==null||h(yt),Et){const Er=Et;Ao(yt),Jn(ne,yt),Io(Er)}else Jn(ne,yt);S==null||S(yt),Wl=void 0}function Jn(ne,yt,Er=!0){if(Er){const Wi=npe(yt);if(Wi)return Tf(ne,yt,Wi)}if(ne===0)return w2(uc(yt,Nu));if(ne===2)return G_(uc(yt,xn));if(ne===6)return Cc(uc(yt,Sd),!0);if(ne===3)return Nn(uc(yt,Np));if(ne===5)return re.assertNode(yt,xEe),Vl(!0);if(ne===4){switch(yt.kind){case 16:case 17:case 18:return Cc(yt,!1);case 80:return G_(yt);case 81:return u_(yt);case 166:return xa(yt);case 167:return mf(yt);case 168:return Cp(yt);case 169:return Yg(yt);case 170:return xg(yt);case 171:return Wy(yt);case 172:return Og(yt);case 173:return pl(yt);case 174:return R_(yt);case 175:return og(yt);case 176:return km(yt);case 177:case 178:return M_(yt);case 179:return oy(yt);case 180:return bE(yt);case 181:return hh(yt);case 182:return Ka(yt);case 183:return Qi(yt);case 184:return Pm(yt);case 185:return Md(yt);case 186:return fe(yt);case 187:return _n(yt);case 188:return Xn(yt);case 189:return $o(yt);case 190:return xs(yt);case 192:return Fs(yt);case 193:return Tl(yt);case 194:return fc(yt);case 195:return Gd(yt);case 196:return ag(yt);case 233:return vi(yt);case 197:return ah();case 198:return bm(yt);case 199:return ay(yt);case 200:return yp(yt);case 201:return Cg(yt);case 202:return Sc(yt);case 203:return wp(yt);case 204:return qo(yt);case 205:return Xp(yt);case 206:return r1(yt);case 207:return sg(yt);case 208:return Jt(yt);case 239:return Ii(yt);case 240:return d_();case 241:return Ja(yt);case 243:return wi(yt);case 242:return Vl(!1);case 244:return Uf(yt);case 245:return Y_(yt);case 246:return sv(yt);case 247:return vy(yt);case 248:return _b(yt);case 249:return f_(yt);case 250:return zh(yt);case 251:return n2(yt);case 252:return Vv(yt);case 253:return Lb(yt);case 254:return fn(yt);case 255:return $n(yt);case 256:return ri(yt);case 257:return Li(yt);case 258:return yo(yt);case 259:return jo(yt);case 260:return Oo(yt);case 261:return ca(yt);case 262:return Fc(yt);case 263:return br(yt);case 264:return Js(yt);case 265:return pu(yt);case 266:return fl(yt);case 267:return ju(yt);case 268:return L_(yt);case 269:return Cl(yt);case 270:return yC(yt);case 271:return o0(yt);case 272:return dD(yt);case 273:return a0(yt);case 274:return Kx(yt);case 280:return vC(yt);case 275:return hC(yt);case 276:return WP(yt);case 277:return BP(yt);case 278:return LA(yt);case 279:return zP(yt);case 281:return Xx(yt);case 300:return OA(yt);case 301:return pD(yt);case 282:return;case 283:return px(yt);case 12:return FA(yt);case 286:case 289:return dS(yt);case 287:case 290:return bC(yt);case 291:return db(yt);case 292:return wm(yt);case 293:return o1(yt);case 294:return zn(yt);case 295:return zr(yt);case 296:return xo(yt);case 297:return Wc(yt);case 298:return _c(yt);case 299:return Sl(yt);case 303:return kf(yt);case 304:return Rp(yt);case 305:return hn(yt);case 306:return v_(yt);case 307:return hc(yt);case 314:case 308:return Pc(yt);case 309:case 310:return bl(yt);case 311:return Tc(yt);case 312:return w2(yt);case 313:return re.fail("Bundles should be printed using printBundle");case 315:return re.fail("InputFiles should not be printed");case 316:return A0(yt);case 317:return BS(yt);case 319:return rs("*");case 320:return rs("?");case 321:return va(yt);case 322:return x0(yt);case 323:return Nm(yt);case 324:return Ag(yt);case 191:case 325:return _i(yt);case 326:return;case 327:return yh(yt);case 329:return UP(yt);case 330:return Bd(yt);case 334:case 339:case 344:return VP(yt);case 335:case 336:return N2(yt);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return tp(yt);case 346:return gx(yt);case 348:case 355:return Bm(yt);case 347:case 349:case 350:case 351:case 356:case 357:return fm(yt);case 352:return pS(yt);case 353:return jP(yt);case 354:return mx(yt);case 359:return}if(kr(yt)&&(ne=1,d!==WQ)){const Wi=d(ne,yt)||yt;Wi!==yt&&(yt=Wi,Wl&&(yt=Wl(yt)))}}if(ne===1)switch(yt.kind){case 9:case 10:return Ts(yt);case 11:case 14:case 15:return Cc(yt,!1);case 80:return G_(yt);case 81:return u_(yt);case 209:return ci(yt);case 210:return da(yt);case 211:return Hu(yt);case 212:return A_(yt);case 213:return gd(yt);case 214:return Dg(yt);case 215:return um(yt);case 216:return Ig(yt);case 217:return P_(yt);case 218:return Qm(yt);case 219:return Bh(yt);case 220:return VT(yt);case 221:return Zm(yt);case 222:return fb(yt);case 223:return FS(yt);case 224:return dT(yt);case 225:return xv(yt);case 226:return Ia(yt);case 227:return q0(yt);case 228:return N1(yt);case 229:return i0(yt);case 230:return nt(yt);case 231:return pr(yt);case 232:return;case 234:return Di(yt);case 235:return Ee(yt);case 233:return vi(yt);case 238:return Gt(yt);case 236:return sr(yt);case 237:return re.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return j_(yt);case 285:return GP(yt);case 288:return oO(yt);case 358:return re.fail("SyntaxList should not be printed");case 359:return;case 360:return rt(yt);case 361:return Dn(yt);case 362:return re.fail("SyntheticReferenceExpression should not be printed")}if(qb(yt.kind))return SE(yt,gf);if(tde(yt.kind))return SE(yt,rs);re.fail(`Unhandled SyntaxKind: ${re.formatSyntaxKind(yt.kind)}.`)}function Nn(ne){Ln(ne.name),Ni(),gf("in"),Ni(),Ln(ne.constraint)}function Lr(ne,yt){const Er=Mt(1,ne,yt);re.assertIsDefined(gc),yt=gc,gc=void 0,Er(ne,yt)}function qi(ne){let yt;if(ie===0||e.noEmitHelpers)return;const Er=new Map;for(const Wi of ne.sourceFiles){const nc=e4(Wi)!==void 0,Vu=Ro(Wi);if(Vu)for(const ql of Vu)!ql.scoped&&!nc&&!Er.get(ql.name)&&(Er.set(ql.name,!0),(yt||(yt=[])).push(ql.name))}return yt}function vo(ne){let yt=!1;const Er=ne.kind===313?ne:void 0;if(Er&&ie===0)return;const Wi=Er?Er.prepends.length:0,nc=Er?Er.sourceFiles.length+Wi:1;for(let Vu=0;Vu"),Ni(),Ln(ne.type),EE(ne)}function Ag(ne){gf("function"),sw(ne,ne.parameters),rs(":"),Ln(ne.type)}function va(ne){rs("?"),Ln(ne.type)}function x0(ne){rs("!"),Ln(ne.type)}function Nm(ne){Ln(ne.type),rs("=")}function Md(ne){pT(ne),r2(ne,ne.modifiers),gf("new"),Ni(),NI(ne,ne.typeParameters),sw(ne,ne.parameters),Ni(),rs("=>"),Ni(),Ln(ne.type),EE(ne)}function fe(ne){gf("typeof"),Ni(),Ln(ne.exprName),mD(ne,ne.typeArguments)}function _n(ne){Qx(0,void 0),rs("{");const yt=wd(ne)&1?768:32897;Vo(ne,ne.members,yt|524288),rs("}"),V6()}function Xn(ne){Ln(ne.elementType,qn.parenthesizeNonArrayTypeOfPostfixType),rs("["),rs("]")}function _i(ne){rs("..."),Ln(ne.type)}function $o(ne){su(23,ne.pos,rs,ne);const yt=wd(ne)&1?528:657;Vo(ne,ne.elements,yt|524288,qn.parenthesizeElementTypeOfTupleType),su(24,ne.elements.end,rs,ne)}function Sc(ne){Ln(ne.dotDotDotToken),Ln(ne.name),Ln(ne.questionToken),su(59,ne.name.end,rs,ne),Ni(),Ln(ne.type)}function xs(ne){Ln(ne.type,qn.parenthesizeTypeOfOptionalType),rs("?")}function Fs(ne){Vo(ne,ne.types,516,qn.parenthesizeConstituentTypeOfUnionType)}function Tl(ne){Vo(ne,ne.types,520,qn.parenthesizeConstituentTypeOfIntersectionType)}function fc(ne){Ln(ne.checkType,qn.parenthesizeCheckTypeOfConditionalType),Ni(),gf("extends"),Ni(),Ln(ne.extendsType,qn.parenthesizeExtendsTypeOfConditionalType),Ni(),rs("?"),Ni(),Ln(ne.trueType),Ni(),rs(":"),Ni(),Ln(ne.falseType)}function Gd(ne){gf("infer"),Ni(),Ln(ne.typeParameter)}function ag(ne){rs("("),Ln(ne.type),rs(")")}function ah(){gf("this")}function bm(ne){R1(ne.operator,gf),Ni();const yt=ne.operator===148?qn.parenthesizeOperandOfReadonlyTypeOperator:qn.parenthesizeOperandOfTypeOperator;Ln(ne.type,yt)}function ay(ne){Ln(ne.objectType,qn.parenthesizeNonArrayTypeOfPostfixType),rs("["),Ln(ne.indexType),rs("]")}function yp(ne){const yt=wd(ne);rs("{"),yt&1?Ni():(b_(),Gp()),ne.readonlyToken&&(Ln(ne.readonlyToken),ne.readonlyToken.kind!==148&&gf("readonly"),Ni()),rs("["),ze(3,ne.typeParameter),ne.nameType&&(Ni(),gf("as"),Ni(),Ln(ne.nameType)),rs("]"),ne.questionToken&&(Ln(ne.questionToken),ne.questionToken.kind!==58&&rs("?")),rs(":"),Ni(),Ln(ne.type),Ob(),yt&1?Ni():(b_(),w1()),Vo(ne,ne.members,2),rs("}")}function Cg(ne){yi(ne.literal)}function wp(ne){Ln(ne.head),Vo(ne,ne.templateSpans,262144)}function Xp(ne){if(ne.isTypeOf&&(gf("typeof"),Ni()),gf("import"),rs("("),Ln(ne.argument),ne.attributes){rs(","),Ni(),rs("{"),Ni(),gf(ne.attributes.token===132?"assert":"with"),rs(":"),Ni();const yt=ne.attributes.elements;Vo(ne.attributes,yt,526226),Ni(),rs("}")}rs(")"),ne.qualifier&&(rs("."),Ln(ne.qualifier)),mD(ne,ne.typeArguments)}function r1(ne){rs("{"),Vo(ne,ne.elements,525136),rs("}")}function sg(ne){rs("["),Vo(ne,ne.elements,524880),rs("]")}function Jt(ne){Ln(ne.dotDotDotToken),ne.propertyName&&(Ln(ne.propertyName),rs(":"),Ni()),Ln(ne.name),Mk(ne.initializer,ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function ci(ne){const yt=ne.elements,Er=ne.multiLine?65536:0;WA(ne,yt,8914|Er,qn.parenthesizeExpressionForDisallowedComma)}function da(ne){Qx(0,void 0),Ot(ne.properties,U6);const yt=wd(ne)&131072;yt&&Gp();const Er=ne.multiLine?65536:0,Wi=ve&&ve.languageVersion>=1&&!Rx(ve)?64:0;Vo(ne,ne.properties,526226|Wi|Er),yt&&w1(),V6()}function Hu(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess);const yt=ne.questionDotToken||T1(he.createToken(25),ne.expression.end,ne.name.pos),Er=Yx(ne,ne.expression,yt),Wi=Yx(ne,yt,ne.name);Uy(Er,!1),yt.kind!==29&&t_(ne.expression)&&!Qt.hasTrailingComment()&&!Qt.hasTrailingWhitespace()&&rs("."),ne.questionDotToken?Ln(yt):su(yt.kind,ne.expression.end,rs,ne),Uy(Wi,!1),Ln(ne.name),Lk(Er,Wi)}function t_(ne){if(ne=h2(ne),S1(ne)){const yt=mV(ne,!0,!1);return!(ne.numericLiteralFlags&448)&&!yt.includes(Cf(25))&&!yt.includes("E")&&!yt.includes("e")}else if(Kf(ne)){const yt=JN(ne);return typeof yt=="number"&&isFinite(yt)&&yt>=0&&Math.floor(yt)===yt}}function A_(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),Ln(ne.questionDotToken),su(23,ne.expression.end,rs,ne),yi(ne.argumentExpression),su(24,ne.argumentExpression.end,rs,ne)}function gd(ne){const yt=HC(ne)&16;yt&&(rs("("),wI("0"),rs(","),Ni()),yi(ne.expression,qn.parenthesizeLeftSideOfAccess),yt&&rs(")"),Ln(ne.questionDotToken),mD(ne,ne.typeArguments),WA(ne,ne.arguments,2576,qn.parenthesizeExpressionForDisallowedComma)}function Dg(ne){su(105,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeExpressionOfNew),mD(ne,ne.typeArguments),WA(ne,ne.arguments,18960,qn.parenthesizeExpressionForDisallowedComma)}function um(ne){const yt=HC(ne)&16;yt&&(rs("("),wI("0"),rs(","),Ni()),yi(ne.tag,qn.parenthesizeLeftSideOfAccess),yt&&rs(")"),mD(ne,ne.typeArguments),Ni(),yi(ne.template)}function Ig(ne){rs("<"),Ln(ne.type),rs(">"),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function P_(ne){const yt=su(21,ne.pos,rs,ne),Er=Ok(ne.expression,ne);yi(ne.expression,void 0),vB(ne.expression,ne),Lk(Er),su(22,ne.expression?ne.expression.end:yt,rs,ne)}function Qm(ne){GS(ne.name),ks(ne)}function Bh(ne){r2(ne,ne.modifiers),Xs(ne,P1)}function P1(ne){NI(ne,ne.typeParameters),aO(ne,ne.parameters),II(ne.type),Ni(),Ln(ne.equalsGreaterThanToken)}function VT(ne){su(91,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function Zm(ne){su(114,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function fb(ne){su(116,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function FS(ne){su(135,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeOperandOfPrefixUnary)}function dT(ne){R1(ne.operator,ko),$0(ne)&&Ni(),yi(ne.operand,qn.parenthesizeOperandOfPrefixUnary)}function $0(ne){const yt=ne.operand;return yt.kind===224&&(ne.operator===40&&(yt.operator===40||yt.operator===46)||ne.operator===41&&(yt.operator===41||yt.operator===47))}function xv(ne){yi(ne.operand,qn.parenthesizeOperandOfPostfixUnary),R1(ne.operator,ko)}function t2(){return zG(ne,yt,Er,Wi,nc,void 0);function ne(ql,Pf){if(Pf){Pf.stackIndex++,Pf.preserveSourceNewlinesStack[Pf.stackIndex]=Et,Pf.containerPosStack[Pf.stackIndex]=Ki,Pf.containerEndStack[Pf.stackIndex]=io,Pf.declarationListContainerEndStack[Pf.stackIndex]=no;const Z_=Pf.shouldEmitCommentsStack[Pf.stackIndex]=Ce(ql),CE=Pf.shouldEmitSourceMapsStack[Pf.stackIndex]=kt(ql);h==null||h(ql),Z_&&JF(ql),CE&&Xq(ql),Ao(ql)}else Pf={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Pf}function yt(ql,Pf,Z_){return Vu(ql,Z_,"left")}function Er(ql,Pf,Z_){const CE=ql.kind!==28,a2=Yx(Z_,Z_.left,ql),ru=Yx(Z_,ql,Z_.right);Uy(a2,CE),AE(ql.pos),SE(ql,ql.kind===103?gf:ko),hD(ql.end,!0),Uy(ru,!0)}function Wi(ql,Pf,Z_){return Vu(ql,Z_,"right")}function nc(ql,Pf){const Z_=Yx(ql,ql.left,ql.operatorToken),CE=Yx(ql,ql.operatorToken,ql.right);if(Lk(Z_,CE),Pf.stackIndex>0){const a2=Pf.preserveSourceNewlinesStack[Pf.stackIndex],ru=Pf.containerPosStack[Pf.stackIndex],Fk=Pf.containerEndStack[Pf.stackIndex],Co=Pf.declarationListContainerEndStack[Pf.stackIndex],DE=Pf.shouldEmitCommentsStack[Pf.stackIndex],MI=Pf.shouldEmitSourceMapsStack[Pf.stackIndex];Io(a2),MI&&by(ql),DE&&SB(ql,ru,Fk,Co),S==null||S(ql),Pf.stackIndex--}}function Vu(ql,Pf,Z_){const CE=Z_==="left"?qn.getParenthesizeLeftSideOfBinaryForOperator(Pf.operatorToken.kind):qn.getParenthesizeRightSideOfBinaryForOperator(Pf.operatorToken.kind);let a2=qe(0,1,ql);if(a2===Lr&&(re.assertIsDefined(gc),ql=CE(uc(gc,kr)),a2=Mt(1,1,ql),gc=void 0),(a2===hV||a2===pO||a2===mn)&&Ds(ql))return ql;Wl=CE,a2(1,ql)}}function q0(ne){const yt=Yx(ne,ne.condition,ne.questionToken),Er=Yx(ne,ne.questionToken,ne.whenTrue),Wi=Yx(ne,ne.whenTrue,ne.colonToken),nc=Yx(ne,ne.colonToken,ne.whenFalse);yi(ne.condition,qn.parenthesizeConditionOfConditionalExpression),Uy(yt,!0),Ln(ne.questionToken),Uy(Er,!0),yi(ne.whenTrue,qn.parenthesizeBranchOfConditionalExpression),Lk(yt,Er),Uy(Wi,!0),Ln(ne.colonToken),Uy(nc,!0),yi(ne.whenFalse,qn.parenthesizeBranchOfConditionalExpression),Lk(Wi,nc)}function N1(ne){Ln(ne.head),Vo(ne,ne.templateSpans,262144)}function i0(ne){su(127,ne.pos,gf,ne),Ln(ne.asteriskToken),kI(ne.expression&&Uv(ne.expression),Rk)}function nt(ne){su(26,ne.pos,rs,ne),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma)}function pr(ne){GS(ne.name),oo(ne)}function vi(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),mD(ne,ne.typeArguments)}function Di(ne){yi(ne.expression,void 0),ne.type&&(Ni(),gf("as"),Ni(),Ln(ne.type))}function Ee(ne){yi(ne.expression,qn.parenthesizeLeftSideOfAccess),ko("!")}function Gt(ne){yi(ne.expression,void 0),ne.type&&(Ni(),gf("satisfies"),Ni(),Ln(ne.type))}function sr(ne){zS(ne.keywordToken,ne.pos,rs),rs("."),Ln(ne.name)}function Ii(ne){yi(ne.expression),Ln(ne.literal)}function Ja(ne){wa(ne,!ne.multiLine&&uw(ne))}function wa(ne,yt){su(19,ne.pos,rs,ne);const Er=yt||wd(ne)&1?768:129;Vo(ne,ne.statements,Er),su(20,ne.statements.end,rs,ne,!!(Er&1))}function wi(ne){Nh(ne,ne.modifiers,!1),Ln(ne.declarationList),Ob()}function Vl(ne){ne?rs(";"):Ob()}function Uf(ne){yi(ne.expression,qn.parenthesizeExpressionOfExpressionStatement),(!ve||!Rx(ve)||Hd(ne.expression))&&Ob()}function Y_(ne){const yt=su(101,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.thenStatement),ne.elseStatement&&(JP(ne,ne.thenStatement,ne.elseStatement),su(93,ne.thenStatement.end,gf,ne),ne.elseStatement.kind===245?(Ni(),Ln(ne.elseStatement)):PI(ne,ne.elseStatement))}function Fg(ne,yt){const Er=su(117,yt,gf,ne);Ni(),su(21,Er,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne)}function sv(ne){su(92,ne.pos,gf,ne),PI(ne,ne.statement),Ou(ne.statement)&&!Et?Ni():JP(ne,ne.statement,ne.expression),Fg(ne,ne.statement.end),Ob()}function vy(ne){Fg(ne,ne.pos),PI(ne,ne.statement)}function _b(ne){const yt=su(99,ne.pos,gf,ne);Ni();let Er=su(21,yt,rs,ne);i1(ne.initializer),Er=su(27,ne.initializer?ne.initializer.end:Er,rs,ne),kI(ne.condition),Er=su(27,ne.condition?ne.condition.end:Er,rs,ne),kI(ne.incrementor),su(22,ne.incrementor?ne.incrementor.end:Er,rs,ne),PI(ne,ne.statement)}function f_(ne){const yt=su(99,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),i1(ne.initializer),Ni(),su(103,ne.initializer.end,gf,ne),Ni(),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function zh(ne){const yt=su(99,ne.pos,gf,ne);Ni(),JR(ne.awaitModifier),su(21,yt,rs,ne),i1(ne.initializer),Ni(),su(165,ne.initializer.end,gf,ne),Ni(),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function i1(ne){ne!==void 0&&(ne.kind===261?Ln(ne):yi(ne))}function n2(ne){su(88,ne.pos,gf,ne),HR(ne.label),Ob()}function Vv(ne){su(83,ne.pos,gf,ne),HR(ne.label),Ob()}function su(ne,yt,Er,Wi,nc){const Vu=__(Wi),ql=Vu&&Vu.kind===Wi.kind,Pf=yt;if(ql&&ve&&(yt=Ff(ve.text,yt)),ql&&Wi.pos!==Pf){const Z_=nc&&ve&&!mv(Pf,yt,ve);Z_&&Gp(),AE(Pf),Z_&&w1()}if(!J&&(ne===19||ne===20)?yt=zS(ne,yt,Er,Wi):yt=R1(ne,Er,yt),ql&&Wi.end!==yt){const Z_=Wi.kind===294;hD(yt,!Z_,Z_)}return yt}function gC(ne){return ne.kind===2||!!ne.hasTrailingNewLine}function eg(ne){return ve?gt(JD(ve.text,ne.pos),gC)||gt(y3(ne),gC)?!0:Roe(ne)?ne.pos!==ne.expression.pos&>(SN(ve.text,ne.expression.pos),gC)?!0:eg(ne.expression):!1:!1}function Uv(ne){if(!ki&&Roe(ne)&&eg(ne)){const yt=__(ne);if(yt&&fE(yt)){const Er=he.createParenthesizedExpression(ne.expression);return Ls(Er,ne),Tn(Er,yt),Er}return he.createParenthesizedExpression(ne)}return ne}function Rk(ne){return Uv(qn.parenthesizeExpressionForDisallowedComma(ne))}function Lb(ne){su(107,ne.pos,gf,ne),kI(ne.expression&&Uv(ne.expression),Uv),Ob()}function fn(ne){const yt=su(118,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),PI(ne,ne.statement)}function $n(ne){const yt=su(109,ne.pos,gf,ne);Ni(),su(21,yt,rs,ne),yi(ne.expression),su(22,ne.expression.end,rs,ne),Ni(),Ln(ne.caseBlock)}function ri(ne){Ln(ne.label),su(59,ne.label.end,rs,ne),Ni(),Ln(ne.statement)}function Li(ne){su(111,ne.pos,gf,ne),kI(Uv(ne.expression),Uv),Ob()}function yo(ne){su(113,ne.pos,gf,ne),Ni(),Ln(ne.tryBlock),ne.catchClause&&(JP(ne,ne.tryBlock,ne.catchClause),Ln(ne.catchClause)),ne.finallyBlock&&(JP(ne,ne.catchClause||ne.tryBlock,ne.finallyBlock),su(98,(ne.catchClause||ne.tryBlock).end,gf,ne),Ni(),Ln(ne.finallyBlock))}function jo(ne){zS(89,ne.pos,gf),Ob()}function Oo(ne){var yt,Er,Wi;Ln(ne.name),Ln(ne.exclamationToken),II(ne.type),Mk(ne.initializer,((yt=ne.type)==null?void 0:yt.end)??((Wi=(Er=ne.name.emitNode)==null?void 0:Er.typeNode)==null?void 0:Wi.end)??ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function ca(ne){if(nC(ne))gf("await"),Ni(),gf("using");else{const yt=UM(ne)?"let":rH(ne)?"const":aY(ne)?"using":"var";gf(yt)}Ni(),Vo(ne,ne.declarations,528)}function Fc(ne){ks(ne)}function ks(ne){Nh(ne,ne.modifiers,!1),gf("function"),Ln(ne.asteriskToken),Ni(),Sr(ne.name),Xs(ne,Vs)}function Xs(ne,yt){const Er=ne.body;if(Er)if(Ou(Er)){const Wi=wd(ne)&131072;Wi&&Gp(),pT(ne),Ot(ne.parameters,s0),s0(ne.body),yt(ne),Yp(Er),EE(ne),Wi&&w1()}else yt(ne),Ni(),yi(Er,qn.parenthesizeConciseBodyOfArrowFunction);else yt(ne),Ob()}function Vs(ne){NI(ne,ne.typeParameters),sw(ne,ne.parameters),II(ne.type)}function wu(ne){if(wd(ne)&1)return!0;if(ne.multiLine||!Hd(ne)&&ve&&!mk(ne,ve)||N4(ne,pp(ne.statements),2)||j6(ne,Yf(ne.statements),2,ne.statements))return!1;let yt;for(const Er of ne.statements){if(lw(yt,Er,2)>0)return!1;yt=Er}return!0}function Yp(ne){h==null||h(ne),Ni(),rs("{"),Gp();const yt=wu(ne)?Q:ft;sc(ne,ne.statements,yt),w1(),zS(20,ne.statements.end,rs,ne),S==null||S(ne)}function Q(ne){ft(ne,!0)}function ft(ne,yt){const Er=Ci(ne.statements),Wi=Qt.getTextPos();vo(ne),Er===0&&Wi===Qt.getTextPos()&&yt?(w1(),Vo(ne,ne.statements,768),Gp()):Vo(ne,ne.statements,1,void 0,Er)}function br(ne){oo(ne)}function oo(ne){Qx(0,void 0),Ot(ne.members,U6),Nh(ne,ne.modifiers,!0),su(86,Db(ne).pos,gf,ne),ne.name&&(Ni(),Sr(ne.name));const yt=wd(ne)&131072;yt&&Gp(),NI(ne,ne.typeParameters),Vo(ne,ne.heritageClauses,0),Ni(),rs("{"),Vo(ne,ne.members,129),rs("}"),yt&&w1(),V6()}function Js(ne){Qx(0,void 0),Nh(ne,ne.modifiers,!1),gf("interface"),Ni(),Ln(ne.name),NI(ne,ne.typeParameters),Vo(ne,ne.heritageClauses,512),Ni(),rs("{"),Vo(ne,ne.members,129),rs("}"),V6()}function pu(ne){Nh(ne,ne.modifiers,!1),gf("type"),Ni(),Ln(ne.name),NI(ne,ne.typeParameters),Ni(),rs("="),Ni(),Ln(ne.type),Ob()}function fl(ne){Nh(ne,ne.modifiers,!1),gf("enum"),Ni(),Ln(ne.name),Ni(),rs("{"),Vo(ne,ne.members,145),rs("}")}function ju(ne){Nh(ne,ne.modifiers,!1),~ne.flags&2048&&(gf(ne.flags&32?"namespace":"module"),Ni()),Ln(ne.name);let yt=ne.body;if(!yt)return Ob();for(;yt&&dy(yt);)rs("."),Ln(yt.name),yt=yt.body;Ni(),Ln(yt)}function L_(ne){pT(ne),Ot(ne.statements,s0),wa(ne,uw(ne)),EE(ne)}function Cl(ne){su(19,ne.pos,rs,ne),Vo(ne,ne.clauses,129),su(20,ne.clauses.end,rs,ne,!0)}function o0(ne){Nh(ne,ne.modifiers,!1),su(102,ne.modifiers?ne.modifiers.end:ne.pos,gf,ne),Ni(),ne.isTypeOnly&&(su(156,ne.pos,gf,ne),Ni()),Ln(ne.name),Ni(),su(64,ne.name.end,rs,ne),Ni(),oa(ne.moduleReference),Ob()}function oa(ne){ne.kind===80?yi(ne):Ln(ne)}function dD(ne){Nh(ne,ne.modifiers,!1),su(102,ne.modifiers?ne.modifiers.end:ne.pos,gf,ne),Ni(),ne.importClause&&(Ln(ne.importClause),Ni(),su(161,ne.importClause.end,gf,ne),Ni()),yi(ne.moduleSpecifier),ne.attributes&&HR(ne.attributes),Ob()}function a0(ne){ne.isTypeOnly&&(su(156,ne.pos,gf,ne),Ni()),Ln(ne.name),ne.name&&ne.namedBindings&&(su(28,ne.name.end,rs,ne),Ni()),Ln(ne.namedBindings)}function Kx(ne){const yt=su(42,ne.pos,rs,ne);Ni(),su(130,yt,gf,ne),Ni(),Ln(ne.name)}function hC(ne){dx(ne)}function WP(ne){WS(ne)}function BP(ne){const yt=su(95,ne.pos,gf,ne);Ni(),ne.isExportEquals?su(64,yt,ko,ne):su(90,yt,gf,ne),Ni(),yi(ne.expression,ne.isExportEquals?qn.getParenthesizeRightSideOfBinaryForOperator(64):qn.parenthesizeExpressionOfExportDefault),Ob()}function LA(ne){Nh(ne,ne.modifiers,!1);let yt=su(95,ne.pos,gf,ne);if(Ni(),ne.isTypeOnly&&(yt=su(156,yt,gf,ne),Ni()),ne.exportClause?Ln(ne.exportClause):yt=su(42,yt,rs,ne),ne.moduleSpecifier){Ni();const Er=ne.exportClause?ne.exportClause.end:yt;su(161,Er,gf,ne),Ni(),yi(ne.moduleSpecifier)}ne.attributes&&HR(ne.attributes),Ob()}function OA(ne){su(ne.token,ne.pos,gf,ne),Ni();const yt=ne.elements;Vo(ne,yt,526226)}function pD(ne){Ln(ne.name),rs(":"),Ni();const yt=ne.value;if(!(wd(yt)&1024)){const Er=MS(yt);hD(Er.pos)}Ln(yt)}function yC(ne){let yt=su(95,ne.pos,gf,ne);Ni(),yt=su(130,yt,gf,ne),Ni(),yt=su(145,yt,gf,ne),Ni(),Ln(ne.name),Ob()}function vC(ne){const yt=su(42,ne.pos,rs,ne);Ni(),su(130,yt,gf,ne),Ni(),Ln(ne.name)}function zP(ne){dx(ne)}function Xx(ne){WS(ne)}function dx(ne){rs("{"),Vo(ne,ne.elements,525136),rs("}")}function WS(ne){ne.isTypeOnly&&(gf("type"),Ni()),ne.propertyName&&(Ln(ne.propertyName),Ni(),su(130,ne.propertyName.end,gf,ne),Ni()),Ln(ne.name)}function px(ne){gf("require"),rs("("),yi(ne.expression),rs(")")}function j_(ne){Ln(ne.openingElement),Vo(ne,ne.children,262144),Ln(ne.closingElement)}function GP(ne){rs("<"),xi(ne.tagName),mD(ne,ne.typeArguments),Ni(),Ln(ne.attributes),rs("/>")}function oO(ne){Ln(ne.openingFragment),Vo(ne,ne.children,262144),Ln(ne.closingFragment)}function dS(ne){if(rs("<"),Pb(ne)){const yt=Ok(ne.tagName,ne);xi(ne.tagName),mD(ne,ne.typeArguments),ne.attributes.properties&&ne.attributes.properties.length>0&&Ni(),Ln(ne.attributes),vB(ne.attributes,ne),Lk(yt)}rs(">")}function FA(ne){Qt.writeLiteral(ne.text)}function bC(ne){rs("")}function wm(ne){Vo(ne,ne.properties,262656)}function db(ne){Ln(ne.name),M2("=",rs,ne.initializer,go)}function o1(ne){rs("{..."),yi(ne.expression),rs("}")}function Q_(ne){let yt=!1;return k8((ve==null?void 0:ve.text)||"",ne+1,()=>yt=!0),yt}function je(ne){let yt=!1;return ep((ve==null?void 0:ve.text)||"",ne+1,()=>yt=!0),yt}function Vt(ne){return Q_(ne)||je(ne)}function zn(ne){var yt;if(ne.expression||!ki&&!Hd(ne)&&Vt(ne.pos)){const Er=ve&&!Hd(ne)&&xm(ve,ne.pos).line!==xm(ve,ne.end).line;Er&&Qt.increaseIndent();const Wi=su(19,ne.pos,rs,ne);Ln(ne.dotDotDotToken),yi(ne.expression),su(20,((yt=ne.expression)==null?void 0:yt.end)||Wi,rs,ne),Er&&Qt.decreaseIndent()}}function zr(ne){Sr(ne.namespace),rs(":"),Sr(ne.name)}function xi(ne){ne.kind===80?yi(ne):Ln(ne)}function xo(ne){su(84,ne.pos,gf,ne),Ni(),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma),hu(ne,ne.statements,ne.expression.end)}function Wc(ne){const yt=su(90,ne.pos,gf,ne);hu(ne,ne.statements,yt)}function hu(ne,yt,Er){const Wi=yt.length===1&&(!ve||Hd(ne)||Hd(yt[0])||wH(ne,yt[0],ve));let nc=163969;Wi?(zS(59,Er,rs,ne),Ni(),nc&=-130):su(59,Er,rs,ne),Vo(ne,yt,nc)}function _c(ne){Ni(),R1(ne.token,gf),Ni(),Vo(ne,ne.types,528)}function Sl(ne){const yt=su(85,ne.pos,gf,ne);Ni(),ne.variableDeclaration&&(su(21,yt,rs,ne),Ln(ne.variableDeclaration),su(22,ne.variableDeclaration.end,rs,ne),Ni()),Ln(ne.block)}function kf(ne){Ln(ne.name),rs(":"),Ni();const yt=ne.initializer;if(!(wd(yt)&1024)){const Er=MS(yt);hD(Er.pos)}yi(yt,qn.parenthesizeExpressionForDisallowedComma)}function Rp(ne){Ln(ne.name),ne.objectAssignmentInitializer&&(Ni(),rs("="),Ni(),yi(ne.objectAssignmentInitializer,qn.parenthesizeExpressionForDisallowedComma))}function hn(ne){ne.expression&&(su(26,ne.pos,rs,ne),yi(ne.expression,qn.parenthesizeExpressionForDisallowedComma))}function v_(ne){Ln(ne.name),Mk(ne.initializer,ne.name.end,ne,qn.parenthesizeExpressionForDisallowedComma)}function yh(ne){if(Rn("/**"),ne.comment){const yt=EN(ne.comment);if(yt){const Er=yt.split(/\r\n?|\n/g);for(const Wi of Er)b_(),Ni(),rs("*"),Ni(),Rn(Wi)}}ne.tags&&(ne.tags.length===1&&ne.tags[0].kind===351&&!ne.comment?(Ni(),Ln(ne.tags[0])):Vo(ne,ne.tags,33)),Ni(),Rn("*/")}function fm(ne){Hv(ne.tagName),A0(ne.typeExpression),TE(ne.comment)}function mx(ne){Hv(ne.tagName),Ln(ne.name),TE(ne.comment)}function BS(ne){Ni(),rs("{"),Ln(ne.name),rs("}")}function N2(ne){Hv(ne.tagName),Ni(),rs("{"),Ln(ne.class),rs("}"),TE(ne.comment)}function pS(ne){Hv(ne.tagName),A0(ne.constraint),Ni(),Vo(ne,ne.typeParameters,528),TE(ne.comment)}function jP(ne){Hv(ne.tagName),ne.typeExpression&&(ne.typeExpression.kind===316?A0(ne.typeExpression):(Ni(),rs("{"),Rn("Object"),ne.typeExpression.isArrayType&&(rs("["),rs("]")),rs("}"))),ne.fullName&&(Ni(),Ln(ne.fullName)),TE(ne.comment),ne.typeExpression&&ne.typeExpression.kind===329&&UP(ne.typeExpression)}function tp(ne){Hv(ne.tagName),ne.name&&(Ni(),Ln(ne.name)),TE(ne.comment),Bd(ne.typeExpression)}function gx(ne){TE(ne.comment),Bd(ne.typeExpression)}function VP(ne){Hv(ne.tagName),TE(ne.comment)}function UP(ne){Vo(ne,he.createNodeArray(ne.jsDocPropertyTags),33)}function Bd(ne){ne.typeParameters&&Vo(ne,he.createNodeArray(ne.typeParameters),33),ne.parameters&&Vo(ne,he.createNodeArray(ne.parameters),33),ne.type&&(b_(),Ni(),rs("*"),Ni(),Ln(ne.type))}function Bm(ne){Hv(ne.tagName),A0(ne.typeExpression),Ni(),ne.isBracketed&&rs("["),Ln(ne.name),ne.isBracketed&&rs("]"),TE(ne.comment)}function Hv(ne){rs("@"),Ln(ne)}function TE(ne){const yt=EN(ne);yt&&(Ni(),Rn(yt))}function A0(ne){ne&&(Ni(),rs("{"),Ln(ne.type),rs("}"))}function w2(ne){b_();const yt=ne.statements;if(yt.length===0||!$2(yt[0])||Hd(yt[0])){sc(ne,yt,Ae);return}Ae(ne)}function R2(ne){le(!!ne.hasNoDefaultLib,ne.syntheticFileReferences||[],ne.syntheticTypeReferences||[],ne.syntheticLibReferences||[]);for(const yt of ne.prepends)if(rF(yt)&&yt.syntheticReferences)for(const Er of yt.syntheticReferences)Ln(Er),b_()}function U(ne){ne.isDeclarationFile&&le(ne.hasNoDefaultLib,ne.referencedFiles,ne.typeReferenceDirectives,ne.libReferenceDirectives)}function le(ne,yt,Er,Wi){if(ne){const nc=Qt.getTextPos();Ys('/// '),qt&&qt.sections.push({pos:nc,end:Qt.getTextPos(),kind:"no-default-lib"}),b_()}if(ve&&ve.moduleName&&(Ys(`/// `),b_()),ve&&ve.amdDependencies)for(const nc of ve.amdDependencies)nc.name?Ys(`/// `):Ys(`/// `),b_();for(const nc of yt){const Vu=Qt.getTextPos();Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"reference",data:nc.fileName}),b_()}for(const nc of Er){const Vu=Qt.getTextPos(),ql=nc.resolutionMode&&nc.resolutionMode!==(ve==null?void 0:ve.impliedNodeFormat)?`resolution-mode="${nc.resolutionMode===99?"import":"require"}"`:"";Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:nc.resolutionMode?nc.resolutionMode===99?"type-import":"type-require":"type",data:nc.fileName}),b_()}for(const nc of Wi){const Vu=Qt.getTextPos();Ys(`/// `),qt&&qt.sections.push({pos:Vu,end:Qt.getTextPos(),kind:"lib",data:nc.fileName}),b_()}}function Ae(ne){const yt=ne.statements;pT(ne),Ot(ne.statements,s0),vo(ne);const Er=Ho(yt,Wi=>!$2(Wi));U(ne),Vo(ne,yt,1,void 0,Er===-1?yt.length:Er),EE(ne)}function rt(ne){const yt=wd(ne);!(yt&1024)&&ne.pos!==ne.expression.pos&&hD(ne.expression.pos),yi(ne.expression),!(yt&2048)&&ne.end!==ne.expression.end&&AE(ne.expression.end)}function Dn(ne){WA(ne,ne.elements,528,void 0)}function Ci(ne,yt,Er,Wi){let nc=!!yt;for(let Vu=0;Vu=Er.length||ql===0;if(Z_&&Wi&32768){E==null||E(Er),P==null||P(Er);return}Wi&15360&&(rs(Ict(Wi)),Z_&&Er&&hD(Er.pos,!0)),E==null||E(Er),Z_?Wi&1&&!(Et&&(!yt||ve&&mk(yt,ve)))?b_():Wi&256&&!(Wi&524288)&&Ni():UT(ne,yt,Er,Wi,nc,Vu,ql,Er.hasTrailingComma,Er),P==null||P(Er),Wi&15360&&(Z_&&Er&&AE(Er.end),rs(I4e(Wi)))}function UT(ne,yt,Er,Wi,nc,Vu,ql,Pf,Z_){const CE=(Wi&262144)===0;let a2=CE;const ru=N4(yt,Er[Vu],Wi);ru?(b_(ru),a2=!1):Wi&256&&Ni(),Wi&128&&Gp();const Fk=P4e(ne,nc);let Co,DE,MI=!1;for(let $P=0;$P0){if(Wi&131||(Gp(),MI=!0),a2&&Wi&60&&!ab(XR.pos)){const Yq=MS(XR);hD(Yq.pos,!!(Wi&512),!0)}b_(mw),a2=!1}else Co&&Wi&512&&Ni()}if(DE=Eu(XR),a2){const mw=MS(XR);hD(mw.pos)}else a2=CE;at=XR.pos,Fk(XR,ne,nc,$P),MI&&(w1(),MI=!1),Co=XR}const mO=Co?wd(Co):0,gO=ki||!!(mO&2048),qF=Pf&&Wi&64&&Wi&16;qF&&(Co&&!gO?su(28,Co.end,rs,Co):rs(",")),Co&&(yt?yt.end:-1)!==Co.end&&Wi&60&&!gO&&AE(qF&&(Z_!=null&&Z_.end)?Z_.end:Co.end),Wi&128&&w1(),He(DE);const LI=j6(yt,Er[Vu+ql-1],Wi,Z_);LI?b_(LI):Wi&2097408&&Ni()}function wI(ne){Qt.writeLiteral(ne)}function k4(ne){Qt.writeStringLiteral(ne)}function P4(ne){Qt.write(ne)}function G6(ne,yt){Qt.writeSymbol(ne,yt)}function rs(ne){Qt.writePunctuation(ne)}function Ob(){Qt.writeTrailingSemicolon(";")}function gf(ne){Qt.writeKeyword(ne)}function ko(ne){Qt.writeOperator(ne)}function ac(ne){Qt.writeParameter(ne)}function Ys(ne){Qt.writeComment(ne)}function Ni(){Qt.writeSpace(" ")}function Nl(ne){Qt.writeProperty(ne)}function Xd(ne){Qt.nonEscapingWrite?Qt.nonEscapingWrite(ne):Qt.write(ne)}function b_(ne=1){for(let yt=0;yt0)}function Gp(){Qt.increaseIndent()}function w1(){Qt.decreaseIndent()}function zS(ne,yt,Er,Wi){return En?R1(ne,Er,yt):o2(Wi,ne,Er,yt,R1)}function SE(ne,yt){k&&k(ne),yt(Cf(ne.kind)),F&&F(ne)}function R1(ne,yt,Er){const Wi=Cf(ne);return yt(Wi),Er<0?Er:Er+Wi.length}function JP(ne,yt,Er){if(wd(ne)&1)Ni();else if(Et){const Wi=Yx(ne,yt,Er);Wi?b_(Wi):Ni()}else b_()}function RI(ne){const yt=ne.split(/\r\n?|\n/g),Er=p7(yt);for(const Wi of yt){const nc=Er?Wi.slice(Er):Wi;nc.length&&(b_(),Rn(nc))}}function Uy(ne,yt){ne?(Gp(),b_(ne)):yt&&Ni()}function Lk(ne,yt){ne&&w1(),yt&&w1()}function N4(ne,yt,Er){if(Er&2||Et){if(Er&65536)return 1;if(yt===void 0)return!ne||ve&&mk(ne,ve)?0:1;if(yt.pos===at||yt.kind===12)return 0;if(ve&&ne&&!ab(ne.pos)&&!Hd(yt)&&(!yt.parent||Gg(yt.parent)===Gg(ne)))return Et?sO(Wi=>CSe(yt.pos,ne.pos,ve,Wi)):wH(ne,yt,ve)?0:1;if(Rm(yt,Er))return 1}return Er&1?1:0}function lw(ne,yt,Er){if(Er&2||Et){if(ne===void 0||yt===void 0||yt.kind===12)return 0;if(ve&&!Hd(ne)&&!Hd(yt))return Et&&xE(ne,yt)?sO(Wi=>Jie(ne,yt,ve,Wi)):!Et&&hx(ne,yt)?H9(ne,yt,ve)?0:1:Er&65536?1:0;if(Rm(ne,Er)||Rm(yt,Er))return 1}else if(Ry(yt))return 1;return Er&1?1:0}function j6(ne,yt,Er,Wi){if(Er&2||Et){if(Er&65536)return 1;if(yt===void 0)return!ne||ve&&mk(ne,ve)?0:1;if(ve&&ne&&!ab(ne.pos)&&!Hd(yt)&&(!yt.parent||yt.parent===ne)){if(Et){const nc=Wi&&!ab(Wi.end)?Wi.end:yt.end;return sO(Vu=>DSe(nc,ne.end,ve,Vu))}return ESe(ne,yt,ve)?0:1}if(Rm(yt,Er))return 1}return Er&1&&!(Er&131072)?1:0}function sO(ne){re.assert(!!Et);const yt=ne(!0);return yt===0?ne(!1):yt}function Ok(ne,yt){const Er=Et&&N4(yt,ne,0);return Er&&Uy(Er,!1),!!Er}function vB(ne,yt){const Er=Et&&j6(yt,ne,0,void 0);Er&&b_(Er)}function Rm(ne,yt){if(Hd(ne)){const Er=Ry(ne);return Er===void 0?(yt&65536)!==0:Er}return(yt&65536)!==0}function Yx(ne,yt,Er){return wd(ne)&262144?0:(ne=Av(ne),yt=Av(yt),Er=Av(Er),Ry(Er)?1:ve&&!Hd(ne)&&!Hd(yt)&&!Hd(Er)?Et?sO(Wi=>Jie(yt,Er,ve,Wi)):H9(yt,Er,ve)?0:1:0)}function uw(ne){return ne.statements.length===0&&(!ve||H9(ne,ne,ve))}function Av(ne){for(;ne.kind===217&&Hd(ne);)ne=ne.expression;return ne}function C0(ne,yt){if($g(ne)||s7(ne))return w4(ne);if(Sd(ne)&&ne.textSourceNode)return C0(ne.textSourceNode,yt);const Er=ve,Wi=!!Er&&!!ne.parent&&!Hd(ne);if(xN(ne)){if(!Wi||ts(ne)!==Gg(Er))return Kr(ne)}else if(Fm(ne)){if(!Wi||ts(ne)!==Gg(Er))return g3(ne)}else if(re.assertNode(ne,aR),!Wi)return ne.text;return m7(Er,ne,yt)}function mV(ne,yt,Er){if(ne.kind===11&&ne.textSourceNode){const nc=ne.textSourceNode;if(xn(nc)||Lu(nc)||S1(nc)||Fm(nc)){const Vu=S1(nc)?nc.text:C0(nc);return Er?`"${M7(Vu)}"`:yt||wd(ne)&16777216?`"${Q8(Vu)}"`:`"${SH(Vu)}"`}else return mV(nc,yt,Er)}const Wi=(yt?1:0)|(Er?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return _ie(ne,ve,Wi)}function pT(ne){ne&&wd(ne)&1048576||(Lt.push(Ze),Ze=0,dt.push(Ie),Ie=void 0,Ke.push(st))}function EE(ne){ne&&wd(ne)&1048576||(Ze=Lt.pop(),Ie=dt.pop(),st=Ke.pop())}function cO(ne){(!st||st===Yf(Ke))&&(st=new Set),st.add(ne)}function Qx(ne,yt){ct.push(Ct),Ct=ne,It.push(st),Yt=yt}function V6(){Ct=ct.pop(),Yt=It.pop()}function fw(ne){(!Yt||Yt===Yf(It))&&(Yt=new Set),Yt.add(ne)}function s0(ne){if(ne)switch(ne.kind){case 241:Ot(ne.statements,s0);break;case 256:case 254:case 246:case 247:s0(ne.statement);break;case 245:s0(ne.thenStatement),s0(ne.elseStatement);break;case 248:case 250:case 249:s0(ne.initializer),s0(ne.statement);break;case 255:s0(ne.caseBlock);break;case 269:Ot(ne.clauses,s0);break;case 296:case 297:Ot(ne.statements,s0);break;case 258:s0(ne.tryBlock),s0(ne.catchClause),s0(ne.finallyBlock);break;case 299:s0(ne.variableDeclaration),s0(ne.block);break;case 243:s0(ne.declarationList);break;case 261:Ot(ne.declarations,s0);break;case 260:case 169:case 208:case 263:GS(ne.name);break;case 262:GS(ne.name),wd(ne)&1048576&&(Ot(ne.parameters,s0),s0(ne.body));break;case 206:case 207:Ot(ne.elements,s0);break;case 272:s0(ne.importClause);break;case 273:GS(ne.name),s0(ne.namedBindings);break;case 274:GS(ne.name);break;case 280:GS(ne.name);break;case 275:Ot(ne.elements,s0);break;case 276:GS(ne.propertyName||ne.name);break}}function U6(ne){if(ne)switch(ne.kind){case 303:case 304:case 172:case 174:case 177:case 178:GS(ne.name);break}}function GS(ne){ne&&($g(ne)||s7(ne)?w4(ne):$_(ne)&&s0(ne))}function w4(ne){const yt=ne.emitNode.autoGenerate;if((yt.flags&7)===4)return Kq($J(ne),Lu(ne),yt.flags,yt.prefix,yt.suffix);{const Er=yt.id;return et[Er]||(et[Er]=gV(ne))}}function Kq(ne,yt,Er,Wi,nc){const Vu=vm(ne),ql=yt?Fe:we;return ql[Vu]||(ql[Vu]=H6(ne,yt,Er??0,GG(Wi,w4),GG(nc)))}function Qg(ne,yt){return BA(ne)&&!bB(ne,yt)&&!Pe.has(ne)}function bB(ne,yt){return yt?!!(Yt!=null&&Yt.has(ne)):!!(st!=null&&st.has(ne))}function BA(ne,yt){return ve?ns(ve,ne,i):!0}function $R(ne,yt){for(let Er=yt;Er&&Lx(Er,yt);Er=Er.nextContainer)if(XD(Er)&&Er.locals){const Wi=Er.locals.get(ey(ne));if(Wi&&Wi.flags&3257279)return!1}return!0}function M1(ne){switch(ne){case"":return Ze;case"#":return Ct;default:return(Ie==null?void 0:Ie.get(ne))??0}}function gS(ne,yt){switch(ne){case"":Ze=yt;break;case"#":Ct=yt;break;default:Ie??(Ie=new Map),Ie.set(ne,yt);break}}function _w(ne,yt,Er,Wi,nc){Wi.length>0&&Wi.charCodeAt(0)===35&&(Wi=Wi.slice(1));const Vu=D3(Er,Wi,"",nc);let ql=M1(Vu);if(ne&&!(ql&ne)){const Z_=D3(Er,Wi,ne===268435456?"_i":"_n",nc);if(Qg(Z_,Er))return ql|=ne,Er?fw(Z_):yt&&cO(Z_),gS(Vu,ql),Z_}for(;;){const Pf=ql&268435455;if(ql++,Pf!==8&&Pf!==13){const Z_=Pf<26?"_"+String.fromCharCode(97+Pf):"_"+(Pf-26),CE=D3(Er,Wi,Z_,nc);if(Qg(CE,Er))return Er?fw(CE):yt&&cO(CE),gS(Vu,ql),CE}}}function qR(ne,yt=Qg,Er,Wi,nc,Vu,ql){if(ne.length>0&&ne.charCodeAt(0)===35&&(ne=ne.slice(1)),Vu.length>0&&Vu.charCodeAt(0)===35&&(Vu=Vu.slice(1)),Er){const Z_=D3(nc,Vu,ne,ql);if(yt(Z_,nc))return nc?fw(Z_):Wi?cO(Z_):Pe.add(Z_),Z_}ne.charCodeAt(ne.length-1)!==95&&(ne+="_");let Pf=1;for(;;){const Z_=D3(nc,Vu,ne+Pf,ql);if(yt(Z_,nc))return nc?fw(Z_):Wi?cO(Z_):Pe.add(Z_),Z_;Pf++}}function i2(ne){return qR(ne,BA,!0,!1,!1,"","")}function hS(ne){const yt=C0(ne.name);return $R(yt,to(ne,XD))?yt:qR(yt,Qg,!1,!1,!1,"","")}function TB(ne){const yt=w9(ne),Er=Sd(yt)?UMe(yt.text):"module";return qR(Er,Qg,!1,!1,!1,"","")}function R4(){return qR("default",Qg,!1,!1,!1,"","")}function Zx(){return qR("class",Qg,!1,!1,!1,"","")}function lO(ne,yt,Er,Wi){return xn(ne.name)?Kq(ne.name,yt):_w(0,!1,yt,Er,Wi)}function H6(ne,yt,Er,Wi,nc){switch(ne.kind){case 80:case 81:return qR(C0(ne),Qg,!!(Er&16),!!(Er&8),yt,Wi,nc);case 267:case 266:return re.assert(!Wi&&!nc&&!yt),hS(ne);case 272:case 278:return re.assert(!Wi&&!nc&&!yt),TB(ne);case 262:case 263:{re.assert(!Wi&&!nc&&!yt);const Vu=ne.name;return Vu&&!$g(Vu)?H6(Vu,!1,Er,Wi,nc):R4()}case 277:return re.assert(!Wi&&!nc&&!yt),R4();case 231:return re.assert(!Wi&&!nc&&!yt),Zx();case 174:case 177:case 178:return lO(ne,yt,Wi,nc);case 167:return _w(0,!0,yt,Wi,nc);default:return _w(0,!1,yt,Wi,nc)}}function gV(ne){const yt=ne.emitNode.autoGenerate,Er=GG(yt.prefix,w4),Wi=GG(yt.suffix);switch(yt.flags&7){case 1:return _w(0,!!(yt.flags&8),Lu(ne),Er,Wi);case 2:return re.assertNode(ne,xn),_w(268435456,!!(yt.flags&8),!1,Er,Wi);case 3:return qR(Kr(ne),yt.flags&32?BA:Qg,!!(yt.flags&16),!!(yt.flags&8),Lu(ne),Er,Wi)}return re.fail(`Unsupported GeneratedIdentifierKind: ${re.formatEnum(yt.flags&7,W_e,!0)}.`)}function hV(ne,yt){const Er=Mt(2,ne,yt),Wi=Ki,nc=io,Vu=no;JF(yt),Er(ne,yt),SB(yt,Wi,nc,Vu)}function JF(ne){const yt=wd(ne),Er=MS(ne);uO(ne,yt,Er.pos,Er.end),yt&4096&&(ki=!0)}function SB(ne,yt,Er,Wi){const nc=wd(ne),Vu=MS(ne);nc&4096&&(ki=!1),L2(ne,nc,Vu.pos,Vu.end,yt,Er,Wi);const ql=wY(ne);ql&&L2(ne,nc,ql.pos,ql.end,yt,Er,Wi)}function uO(ne,yt,Er,Wi){Jc(),$i=!1;const nc=Er<0||(yt&1024)!==0||ne.kind===12,Vu=Wi<0||(yt&2048)!==0||ne.kind===12;(Er>0||Wi>0)&&Er!==Wi&&(nc||fO(Er,ne.kind!==359),(!nc||Er>=0&&yt&1024)&&(Ki=Er),(!Vu||Wi>=0&&yt&2048)&&(io=Wi,ne.kind===261&&(no=Wi))),Ot(y3(ne),dw),au()}function L2(ne,yt,Er,Wi,nc,Vu,ql){Jc();const Pf=Wi<0||(yt&2048)!==0||ne.kind===12;Ot(PY(ne),EB),(Er>0||Wi>0)&&Er!==Wi&&(Ki=nc,io=Vu,no=ql,!Pf&&ne.kind!==359&&eA(Wi)),au()}function dw(ne){(ne.hasLeadingNewline||ne.kind===2)&&Qt.writeLine(),yV(ne),ne.hasTrailingNewLine||ne.kind===2?Qt.writeLine():Qt.writeSpace(" ")}function EB(ne){Qt.isAtStartOfLine()||Qt.writeSpace(" "),yV(ne),ne.hasTrailingNewLine&&Qt.writeLine()}function yV(ne){const yt=jp(ne),Er=ne.kind===3?RM(yt):void 0;gG(yt,Er,Qt,0,yt.length,X)}function jp(ne){return ne.kind===3?`/*${ne.text}*/`:`//${ne.text}`}function sc(ne,yt,Er){Jc();const{pos:Wi,end:nc}=yt,Vu=wd(ne),ql=Wi<0||(Vu&1024)!==0,Pf=ki||nc<0||(Vu&2048)!==0;ql||L4(yt),au(),Vu&4096&&!ki?(ki=!0,Er(ne),ki=!1):Er(ne),Jc(),Pf||(fO(yt.end,!0),$i&&!Qt.isAtStartOfLine()&&Qt.writeLine()),au()}function hx(ne,yt){return ne=Gg(ne),ne.parent&&ne.parent===Gg(yt).parent}function xE(ne,yt){if(yt.pos-1&&Wi.indexOf(yt)===nc+1}function fO(ne,yt){$i=!1,yt?ne===0&&(ve!=null&&ve.isDeclarationFile)?mT(ne,_O):mT(ne,M4):ne===0&&mT(ne,vV)}function vV(ne,yt,Er,Wi,nc){jS(ne,yt)&&M4(ne,yt,Er,Wi,nc)}function _O(ne,yt,Er,Wi,nc){jS(ne,yt)||M4(ne,yt,Er,Wi,nc)}function $F(ne,yt){return e.onlyPrintJsDocStyle?$Ee(ne,yt)||uie(ne,yt):!0}function M4(ne,yt,Er,Wi,nc){!ve||!$F(ve.text,ne)||($i||(Wie(Ei(),Qt,nc,ne),$i=!0),K0(ne),gG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi?Qt.writeLine():Er===3&&Qt.writeSpace(" "))}function AE(ne){ki||ne===-1||fO(ne,!0)}function eA(ne){Vg(ne,KR)}function KR(ne,yt,Er,Wi){!ve||!$F(ve.text,ne)||(Qt.isAtStartOfLine()||Qt.writeSpace(" "),K0(ne),gG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi&&Qt.writeLine())}function hD(ne,yt,Er){ki||(Jc(),Vg(ne,yt?KR:Er?TC:L1),au())}function TC(ne,yt,Er){ve&&(K0(ne),gG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Er===2&&Qt.writeLine())}function L1(ne,yt,Er,Wi){ve&&(K0(ne),gG(ve.text,Ei(),Qt,ne,yt,X),K0(yt),Wi?Qt.writeLine():Qt.writeSpace(" "))}function mT(ne,yt){ve&&(Ki===-1||ne!==Ki)&&(SC(ne)?tA(yt):ep(ve.text,ne,yt,ne))}function Vg(ne,yt){ve&&(io===-1||ne!==io&&ne!==no)&&k8(ve.text,ne,yt)}function SC(ne){return Mo!==void 0&&yl(Mo).nodePos===ne}function tA(ne){if(!ve)return;const yt=yl(Mo).detachedCommentEndPos;Mo.length-1?Mo.pop():Mo=void 0,ep(ve.text,yt,ne,yt)}function L4(ne){const yt=ve&&mSe(ve.text,Ei(),Qt,c0,ne,X,ki);yt&&(Mo?Mo.push(yt):Mo=[yt])}function c0(ne,yt,Er,Wi,nc,Vu){!ve||!$F(ve.text,Wi)||(K0(Wi),gG(ne,yt,Er,Wi,nc,Vu),K0(nc))}function jS(ne,yt){return!!ve&&_de(ve.text,ne,yt)}function dO(ne){return ne.parsedSourceMap===void 0&&ne.sourceMapText!==void 0&&(ne.parsedSourceMap=j2e(ne.sourceMapText)||!1),ne.parsedSourceMap||void 0}function pO(ne,yt){const Er=Mt(3,ne,yt);Xq(yt),Er(ne,yt),by(yt)}function Xq(ne){const yt=wd(ne),Er=XL(ne);if(pA(ne)){re.assertIsDefined(ne.parent,"UnparsedNodes must have parent pointers");const Wi=dO(ne.parent);Wi&&fr&&fr.appendSourceMap(Qt.getLine(),Qt.getColumn(),Wi,ne.parent.sourceMapPath,ne.parent.getLineAndCharacterOfPosition(ne.pos),ne.parent.getLineAndCharacterOfPosition(ne.end))}else{const Wi=Er.source||Tr;ne.kind!==359&&!(yt&32)&&Er.pos>=0&&O2(Er.source||Tr,sy(Wi,Er.pos)),yt&128&&(En=!0)}}function by(ne){const yt=wd(ne),Er=XL(ne);pA(ne)||(yt&128&&(En=!1),ne.kind!==359&&!(yt&64)&&Er.end>=0&&O2(Er.source||Tr,Er.end))}function sy(ne,yt){return ne.skipTrivia?ne.skipTrivia(yt):Ff(ne.text,yt)}function K0(ne){if(En||ab(ne)||O4(Tr))return;const{line:yt,character:Er}=xm(Tr,ne);fr.addMapping(Qt.getLine(),Qt.getColumn(),Vr,yt,Er,void 0)}function O2(ne,yt){if(ne!==Tr){const Er=Tr,Wi=Vr;pw(ne),K0(yt),Vp(Er,Wi)}else K0(yt)}function o2(ne,yt,Er,Wi,nc){if(En||ne&&Eie(ne))return nc(yt,Er,Wi);const Vu=ne&&ne.emitNode,ql=Vu&&Vu.flags||0,Pf=Vu&&Vu.tokenSourceMapRanges&&Vu.tokenSourceMapRanges[yt],Z_=Pf&&Pf.source||Tr;return Wi=sy(Z_,Pf?Pf.pos:Wi),!(ql&256)&&Wi>=0&&O2(Z_,Wi),Wi=nc(yt,Er,Wi),Pf&&(Wi=Pf.end),!(ql&512)&&Wi>=0&&O2(Z_,Wi),Wi}function pw(ne){if(!En){if(Tr=ne,ne===Pn){Vr=Fr;return}O4(ne)||(Vr=fr.addSource(ne.fileName),e.inlineSources&&fr.setSourceContent(Vr,ne.text),Pn=ne,Fr=Vr)}}function Vp(ne,yt){Tr=ne,Vr=yt}function O4(ne){return mm(ne.fileName,".json")}}function Dct(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function Ict(e){return jQ[e&15360][0]}function I4e(e){return jQ[e&15360][1]}function pxe(e,n,i,c){n(e)}function k4e(e,n,i,c){n(e,i.select(c))}function GW(e,n,i,c){n(e,i)}function P4e(e,n){return e.length===1?pxe:typeof n=="object"?k4e:GW}var jQ,Wme,Bme,_4,zme,C$,kct=G({"src/compiler/emitter.ts"(){md(),md(),iP(),jQ=Dct(),Wme={hasGlobalName:Na,getReferencedExportContainer:Na,getReferencedImportDeclaration:Na,getReferencedDeclarationWithCollidingName:Na,isDeclarationWithCollidingName:Na,isValueAliasDeclaration:Na,isReferencedAliasDeclaration:Na,isTopLevelValueImportEqualsWithEntityName:Na,getNodeCheckFlags:Na,isDeclarationVisible:Na,isLateBound:e=>!1,collectLinkedAliases:Na,isImplementationOfOverload:Na,isRequiredInitializedParameter:Na,isOptionalUninitializedParameterProperty:Na,isExpandoFunctionDeclaration:Na,getPropertiesOfContainerFunction:Na,createTypeOfDeclaration:Na,createReturnTypeOfSignatureDeclaration:Na,createTypeOfExpression:Na,createLiteralConstValue:Na,isSymbolAccessible:Na,isEntityNameVisible:Na,getConstantValue:Na,getReferencedValueDeclaration:Na,getReferencedValueDeclarations:Na,getTypeReferenceSerializationKind:Na,isOptionalParameter:Na,moduleExportsSomeValue:Na,isArgumentsLocalBinding:Na,getExternalModuleFileFromDeclaration:Na,getTypeReferenceDirectivesForEntityName:Na,getTypeReferenceDirectivesForSymbol:Na,isLiteralConstDeclaration:Na,getJsxFactoryEntity:Na,getJsxFragmentFactoryEntity:Na,getAllAccessorDeclarations:Na,getSymbolOfExternalModuleSpecifier:Na,isBindingCapturedByNode:Na,getDeclarationStatementsForSourceFile:Na,isImportRequiredByAugmentation:Na,tryFindAmbientModule:Na},Bme=Pd(()=>F3({})),_4=Pd(()=>F3({removeComments:!0})),zme=Pd(()=>F3({removeComments:!0,neverAsciiEscape:!0})),C$=Pd(()=>F3({removeComments:!0,omitTrailingSemicolon:!0}))}});function Jae(e,n,i){if(!e.getDirectories||!e.readDirectory)return;const c=new Map,u=H1(i);return{useCaseSensitiveFileNames:i,fileExists:J,readFile:(Ie,ct)=>e.readFile(Ie,ct),directoryExists:e.directoryExists&&X,getDirectories:ae,readDirectory:ve,createDirectory:e.createDirectory&&ie,writeFile:e.writeFile&&$,addOrDeleteFileOrDirectory:Fe,addOrDeleteFile:et,clearCache:dt,realpath:e.realpath&&we};function d(Ie){return gm(Ie,n,u)}function h(Ie){return c.get(Su(Ie))}function S(Ie){const ct=h(ws(Ie));return ct&&(ct.sortedAndCanonicalizedFiles||(ct.sortedAndCanonicalizedFiles=ct.files.map(u).sort(),ct.sortedAndCanonicalizedDirectories=ct.directories.map(u).sort()),ct)}function E(Ie){return Jg(hf(Ie))}function P(Ie,ct){var Ct;if(!e.realpath||Su(d(e.realpath(Ie)))===ct){const Lt={files:Vn(e.readDirectory(Ie,void 0,void 0,["*.*"]),E)||[],directories:e.getDirectories(Ie)||[]};return c.set(Su(ct),Lt),Lt}if((Ct=e.directoryExists)!=null&&Ct.call(e,Ie))return c.set(ct,!1),!1}function k(Ie,ct){ct=Su(ct);const Ct=h(ct);if(Ct)return Ct;try{return P(Ie,ct)}catch{re.assert(!c.has(Su(ct)));return}}function F(Ie,ct){return ZS(Ie,ct,Of,Fp)>=0}function $(Ie,ct,Ct){const Lt=d(Ie),Ze=S(Lt);return Ze&&Pe(Ze,E(Ie),!0),e.writeFile(Ie,ct,Ct)}function J(Ie){const ct=d(Ie),Ct=S(ct);return Ct&&F(Ct.sortedAndCanonicalizedFiles,u(E(Ie)))||e.fileExists(Ie)}function X(Ie){const ct=d(Ie);return c.has(Su(ct))||e.directoryExists(Ie)}function ie(Ie){const ct=d(Ie),Ct=S(ct);if(Ct){const Lt=E(Ie),Ze=u(Lt),Ke=Ct.sortedAndCanonicalizedDirectories;d0(Ke,Ze,Fp)&&Ct.directories.push(Lt)}e.createDirectory(Ie)}function ae(Ie){const ct=d(Ie),Ct=k(Ie,ct);return Ct?Ct.directories.slice():e.getDirectories(Ie)}function ve(Ie,ct,Ct,Lt,Ze){const Ke=d(Ie),st=k(Ie,Ke);let It;if(st!==void 0)return ioe(Ie,ct,Ct,Lt,i,n,Ze,Yt,we);return e.readDirectory(Ie,ct,Ct,Lt,Ze);function Yt(at){const Qt=d(at);if(Qt===Ke)return st||Et(at,Qt);const nn=k(at,Qt);return nn!==void 0?nn||Et(at,Qt):Xde}function Et(at,Qt){if(It&&Qt===Ke)return It;const nn={files:Vn(e.readDirectory(at,void 0,void 0,["*.*"]),E)||Yn,directories:e.getDirectories(at)||Yn};return Qt===Ke&&(It=nn),nn}}function we(Ie){return e.realpath?e.realpath(Ie):Ie}function Fe(Ie,ct){if(h(ct)!==void 0){dt();return}const Lt=S(ct);if(!Lt)return;if(!e.directoryExists){dt();return}const Ze=E(Ie),Ke={fileExists:e.fileExists(ct),directoryExists:e.directoryExists(ct)};return Ke.directoryExists||F(Lt.sortedAndCanonicalizedDirectories,u(Ze))?dt():Pe(Lt,Ze,Ke.fileExists),Ke}function et(Ie,ct,Ct){if(Ct===1)return;const Lt=S(ct);Lt&&Pe(Lt,E(Ie),Ct===0)}function Pe(Ie,ct,Ct){const Lt=Ie.sortedAndCanonicalizedFiles,Ze=u(ct);if(Ct)d0(Lt,Ze,Fp)&&Ie.files.push(ct);else{const Ke=ZS(Lt,Ze,Of,Fp);if(Ke>=0){Lt.splice(Ke,1);const st=Ie.files.findIndex(It=>u(It)===Ze);Ie.files.splice(st,1)}}}function dt(){c.clear()}}function D$(e,n,i,c,u){var d;const h=QT(((d=n==null?void 0:n.configFile)==null?void 0:d.extendedSourceFiles)||Yn,u);i.forEach((S,E)=>{h.has(E)||(S.projects.delete(e),S.close())}),h.forEach((S,E)=>{const P=i.get(E);P?P.projects.add(e):i.set(E,{projects:new Set([e]),watcher:c(S,E),close:()=>{const k=i.get(E);!k||k.projects.size!==0||(k.watcher.close(),i.delete(E))}})})}function VQ(e,n){n.forEach(i=>{i.projects.delete(e)&&i.close()})}function Gme(e,n,i){e.delete(n)&&e.forEach(({extendedResult:c},u)=>{var d;(d=c.extendedSourceFiles)!=null&&d.some(h=>i(h)===n)&&Gme(e,u,i)})}function N4e(e,n,i){const c=new Map(e);a6(n,c,{createNewValue:i,onDeleteValue:Ib})}function jme(e,n,i){const c=e.getMissingFilePaths(),u=QT(c,Of,xT);a6(n,u,{createNewValue:i,onDeleteValue:Ib})}function jW(e,n,i){a6(e,n,{createNewValue:c,onDeleteValue:YE,onExistingValue:u});function c(d,h){return{watcher:i(d,h),flags:h}}function u(d,h,S){d.flags!==h&&(d.watcher.close(),e.set(S,c(S,h)))}}function dC({watchedDirPath:e,fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:c,options:u,program:d,extraFileExtensions:h,currentDirectory:S,useCaseSensitiveFileNames:E,writeLog:P,toPath:k,getScriptKind:F}){const $=_se(i);if(!$)return P(`Project: ${c} Detected ignored path: ${n}`),!0;if(i=$,i===e)return!1;if(r9(i)&&!(HSe(n,u,h)||ve()))return P(`Project: ${c} Detected file add/remove of non supported extension: ${n}`),!0;if(Wpe(n,u.configFile.configFileSpecs,vf(ws(c),S),E,S))return P(`Project: ${c} Detected excluded file: ${n}`),!0;if(!d||Ng(u)||u.outDir)return!1;if(Zb(i)){if(u.declarationDir)return!1}else if(!pv(i,h3))return!1;const J=wg(i),X=ls(d)?void 0:w4e(d)?d.getProgramOrUndefined():d,ie=!X&&!ls(d)?d:void 0;if(ae(J+".ts")||ae(J+".tsx"))return P(`Project: ${c} Detected output file: ${n}`),!0;return!1;function ae(we){return X?!!X.getSourceFileByPath(we):ie?ie.getState().fileInfos.has(we):!!lr(d,Fe=>k(Fe)===we)}function ve(){if(!F)return!1;switch(F(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return TP(u);case 6:return sI(u);case 0:return!1}}}function w4e(e){return!!e.getState}function Vme(e,n){return e?e.isEmittedFile(n):!1}function mxe(e,n,i,c){gMe(n===2?i:ku);const u={watchFile:(ie,ae,ve,we)=>e.watchFile(ie,ae,ve,we),watchDirectory:(ie,ae,ve,we)=>e.watchDirectory(ie,ae,(ve&1)!==0,we)},d=n!==0?{watchFile:J("watchFile"),watchDirectory:J("watchDirectory")}:void 0,h=n===2?{watchFile:F,watchDirectory:$}:d||u,S=n===2?k:O$;return{watchFile:E("watchFile"),watchDirectory:E("watchDirectory")};function E(ie){return(ae,ve,we,Fe,et,Pe)=>{var dt;return Bpe(ae,ie==="watchFile"?Fe==null?void 0:Fe.excludeFiles:Fe==null?void 0:Fe.excludeDirectories,P(),((dt=e.getCurrentDirectory)==null?void 0:dt.call(e))||"")?S(ae,we,Fe,et,Pe):h[ie].call(void 0,ae,ve,we,Fe,et,Pe)}}function P(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function k(ie,ae,ve,we,Fe){return i(`ExcludeWatcher:: Added:: ${X(ie,ae,ve,we,Fe,c)}`),{close:()=>i(`ExcludeWatcher:: Close:: ${X(ie,ae,ve,we,Fe,c)}`)}}function F(ie,ae,ve,we,Fe,et){i(`FileWatcher:: Added:: ${X(ie,ve,we,Fe,et,c)}`);const Pe=d.watchFile(ie,ae,ve,we,Fe,et);return{close:()=>{i(`FileWatcher:: Close:: ${X(ie,ve,we,Fe,et,c)}`),Pe.close()}}}function $(ie,ae,ve,we,Fe,et){const Pe=`DirectoryWatcher:: Added:: ${X(ie,ve,we,Fe,et,c)}`;i(Pe);const dt=H_(),Ie=d.watchDirectory(ie,ae,ve,we,Fe,et),ct=H_()-dt;return i(`Elapsed:: ${ct}ms ${Pe}`),{close:()=>{const Ct=`DirectoryWatcher:: Close:: ${X(ie,ve,we,Fe,et,c)}`;i(Ct);const Lt=H_();Ie.close();const Ze=H_()-Lt;i(`Elapsed:: ${Ze}ms ${Ct}`)}}}function J(ie){return(ae,ve,we,Fe,et,Pe)=>u[ie].call(void 0,ae,(...dt)=>{const Ie=`${ie==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${dt[0]} ${dt[1]!==void 0?dt[1]:""}:: ${X(ae,we,Fe,et,Pe,c)}`;i(Ie);const ct=H_();ve.call(void 0,...dt);const Ct=H_()-ct;i(`Elapsed:: ${Ct}ms ${Ie}`)},we,Fe,et,Pe)}function X(ie,ae,ve,we,Fe,et){return`WatchInfo: ${ie} ${ae} ${JSON.stringify(ve)} ${et?et(we,Fe):Fe===void 0?we:`${we} ${Fe}`}`}}function UQ(e){const n=e==null?void 0:e.fallbackPolling;return{watchFile:n!==void 0?n:1}}function YE(e){e.watcher.close()}var Ume,Hme,R4e=G({"src/compiler/watchUtilities.ts"(){md(),Ume=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Ume||{}),Hme=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Hme||{})}});function Jme(e,n,i="tsconfig.json"){return jC(e,c=>{const u=vl(c,i);return n(u)?u:void 0})}function HQ(e,n){const i=ws(n),c=nE(e)?e:vl(i,e);return hf(c)}function JQ(e,n,i){let c;return Ot(e,d=>{const h=g0(d,n);if(h.pop(),!c){c=h;return}const S=Math.min(c.length,h.length);for(let E=0;E{let h;try{cf("beforeIORead"),h=e(c,n().charset),cf("afterIORead"),Tb("I/O Read","beforeIORead","afterIORead")}catch(S){d&&d(S.message),h=""}return h!==void 0?eQ(c,h,u,i):void 0}}function $ae(e,n,i){return(c,u,d,h)=>{try{cf("beforeIOWrite"),L7(c,u,d,e,n,i),cf("afterIOWrite"),Tb("I/O Write","beforeIOWrite","afterIOWrite")}catch(S){h&&h(S.message)}}}function $me(e,n,i=w0){const c=new Map,u=H1(i.useCaseSensitiveFileNames);function d(k){return c.has(k)?!0:(P.directoryExists||i.directoryExists)(k)?(c.set(k,!0),!0):!1}function h(){return ws(hf(i.getExecutingFilePath()))}const S=JE(e),E=i.realpath&&(k=>i.realpath(k)),P={getSourceFile:gxe(k=>P.readFile(k),()=>e,n),getDefaultLibLocation:h,getDefaultLibFileName:k=>vl(h(),$D(k)),writeFile:$ae((k,F,$)=>i.writeFile(k,F,$),k=>(P.createDirectory||i.createDirectory)(k),k=>d(k)),getCurrentDirectory:Pd(()=>i.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i.useCaseSensitiveFileNames,getCanonicalFileName:u,getNewLine:()=>S,fileExists:k=>i.fileExists(k),readFile:k=>i.readFile(k),trace:k=>i.write(k+S),directoryExists:k=>i.directoryExists(k),getEnvironmentVariable:k=>i.getEnvironmentVariable?i.getEnvironmentVariable(k):"",getDirectories:k=>i.getDirectories(k),realpath:E,readDirectory:(k,F,$,J,X)=>i.readDirectory(k,F,$,J,X),createDirectory:k=>i.createDirectory(k),createHash:wc(i,i.createHash)};return P}function NR(e,n,i){const c=e.readFile,u=e.fileExists,d=e.directoryExists,h=e.createDirectory,S=e.writeFile,E=new Map,P=new Map,k=new Map,F=new Map,$=ie=>{const ae=n(ie),ve=E.get(ae);return ve!==void 0?ve!==!1?ve:void 0:J(ae,ie)},J=(ie,ae)=>{const ve=c.call(e,ae);return E.set(ie,ve!==void 0?ve:!1),ve};e.readFile=ie=>{const ae=n(ie),ve=E.get(ae);return ve!==void 0?ve!==!1?ve:void 0:!mm(ie,".json")&&!fxe(ie)?c.call(e,ie):J(ae,ie)};const X=i?(ie,ae,ve,we)=>{const Fe=n(ie),et=typeof ae=="object"?ae.impliedNodeFormat:void 0,Pe=F.get(et),dt=Pe==null?void 0:Pe.get(Fe);if(dt)return dt;const Ie=i(ie,ae,ve,we);return Ie&&(Zb(ie)||mm(ie,".json"))&&F.set(et,(Pe||new Map).set(Fe,Ie)),Ie}:void 0;return e.fileExists=ie=>{const ae=n(ie),ve=P.get(ae);if(ve!==void 0)return ve;const we=u.call(e,ie);return P.set(ae,!!we),we},S&&(e.writeFile=(ie,ae,...ve)=>{const we=n(ie);P.delete(we);const Fe=E.get(we);Fe!==void 0&&Fe!==ae?(E.delete(we),F.forEach(et=>et.delete(we))):X&&F.forEach(et=>{const Pe=et.get(we);Pe&&Pe.text!==ae&&et.delete(we)}),S.call(e,ie,ae,...ve)}),d&&(e.directoryExists=ie=>{const ae=n(ie),ve=k.get(ae);if(ve!==void 0)return ve;const we=d.call(e,ie);return k.set(ae,!!we),we},h&&(e.createDirectory=ie=>{const ae=n(ie);k.delete(ae),h.call(e,ie)})),{originalReadFile:c,originalFileExists:u,originalDirectoryExists:d,originalCreateDirectory:h,originalWriteFile:S,getSourceFileWithCache:X,readFileWithCache:$}}function L4e(e,n,i){let c;return c=Oi(c,e.getConfigFileParsingDiagnostics()),c=Oi(c,e.getOptionsDiagnostics(i)),c=Oi(c,e.getSyntacticDiagnostics(n,i)),c=Oi(c,e.getGlobalDiagnostics(i)),c=Oi(c,e.getSemanticDiagnostics(n,i)),gv(e.getCompilerOptions())&&(c=Oi(c,e.getDeclarationDiagnostics(n,i))),o7(c||Yn)}function hxe(e,n){let i="";for(const c of e)i+=qme(c,n);return i}function qme(e,n){const i=`${YO(e)} TS${e.code}: ${D2(e.messageText,n.getNewLine())}${n.getNewLine()}`;if(e.file){const{line:c,character:u}=xm(e.file,e.start),d=e.file.fileName;return`${PX(d,n.getCurrentDirectory(),S=>n.getCanonicalFileName(S))}(${c+1},${u+1}): `+i}return i}function d4(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return re.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function wR(e,n){return n+e+P$}function yxe(e,n,i,c,u,d){const{line:h,character:S}=xm(e,n),{line:E,character:P}=xm(e,n+i),k=xm(e,e.text.length).line,F=E-h>=4;let $=(E+1+"").length;F&&($=Math.max(eZ.length,$));let J="";for(let X=h;X<=E;X++){J+=d.getNewLine(),F&&h+1i.getCanonicalFileName(E)):e.fileName;let S="";return S+=c(h,"\x1B[96m"),S+=":",S+=c(`${u+1}`,"\x1B[93m"),S+=":",S+=c(`${d+1}`,"\x1B[93m"),S}function kA(e,n){let i="";for(const c of e){if(c.file){const{file:u,start:d}=c;i+=qae(u,d,n),i+=" - "}if(i+=wR(YO(c),d4(c.category)),i+=wR(` TS${c.code}: `,"\x1B[90m"),i+=D2(c.messageText,n.getNewLine()),c.file&&c.code!==N.File_appears_to_be_binary.code&&(i+=n.getNewLine(),i+=yxe(c.file,c.start,c.length,"",d4(c.category),n)),c.relatedInformation){i+=n.getNewLine();for(const{file:u,start:d,length:h,messageText:S}of c.relatedInformation)u&&(i+=n.getNewLine(),i+=sse+qae(u,d,n),i+=yxe(u,d,h,cse,"\x1B[96m",n)),i+=n.getNewLine(),i+=cse+D2(S,n.getNewLine())}i+=n.getNewLine()}return i}function D2(e,n,i=0){if(As(e))return e;if(e===void 0)return"";let c="";if(i){c+=n;for(let u=0;uZG(d,e,i,c,u,n,h)}}function Xae(e){return As(e)?e:Q0(e.fileName)}function Yae(e,n,i,c,u){return{nameAndMode:Xme,resolve:(d,h)=>Kpe(d,e,i,c,n,u,h)}}function KQ(e,n,i,c,u,d,h,S){if(e.length===0)return Yn;const E=[],P=new Map,k=S(n,i,c,d,h);for(const F of e){const $=k.nameAndMode.getName(F),J=k.nameAndMode.getMode(F,u),X=_$($,J);let ie=P.get(X);ie||P.set(X,ie=k.resolve($,J)),E.push(ie)}return E}function k6(e,n){return yF(void 0,e,(i,c)=>i&&n(i,c))}function yF(e,n,i,c){let u;return d(e,n,void 0);function d(h,S,E){if(c){const P=c(h,E);if(P)return P}return Ot(S,(P,k)=>{if(P&&(u!=null&&u.has(P.sourceFile.path)))return;const F=i(P,E,k);return F||!P?F:((u||(u=new Set)).add(P.sourceFile.path),d(P.commandLine.projectReferences,P.references,P))})}}function VW(e,n,i){const c=e.configFilePath?ws(e.configFilePath):n;return vl(c,`__lib_node_modules_lookup_${i}__.ts`)}function Qae(e){const n=e.split(".");let i=n[1],c=2;for(;n[c]&&n[c]!=="d";)i+=(c===2?"/":"-")+n[c],c++;return"@typescript/lib-"+i}function UW(e){const n=Q0(e.fileName),i=i$.get(n);return{libName:n,libFileName:i}}function ew(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function HW(e){return e.pos!==void 0}function XQ(e,n){var i,c,u,d;const h=re.checkDefined(e.getSourceFileByPath(n.file)),{kind:S,index:E}=n;let P,k,F,$;switch(S){case 3:const J=ZQ(h,E);if(F=(c=(i=e.getResolvedModule(h,J.text,Kae(h,E)))==null?void 0:i.resolvedModule)==null?void 0:c.packageId,J.pos===-1)return{file:h,packageId:F,text:J.text};P=Ff(h.text,J.pos),k=J.end;break;case 4:({pos:P,end:k}=h.referencedFiles[E]);break;case 5:({pos:P,end:k,resolutionMode:$}=h.typeReferenceDirectives[E]),F=(d=(u=e.getResolvedTypeReferenceDirective(h,Q0(h.typeReferenceDirectives[E].fileName),$||h.impliedNodeFormat))==null?void 0:u.resolvedTypeReferenceDirective)==null?void 0:d.packageId;break;case 7:({pos:P,end:k}=h.libReferenceDirectives[E]);break;default:return re.assertNever(S)}return{file:h,pos:P,end:k,packageId:F}}function bxe(e,n,i,c,u,d,h,S,E,P){if(!e||S!=null&&S()||!fv(e.getRootFileNames(),n))return!1;let k;if(!fv(e.getProjectReferences(),P,X)||e.getSourceFiles().some($)||e.getMissingFilePaths().some(u))return!1;const F=e.getCompilerOptions();if(!qie(F,i)||e.resolvedLibReferences&&Jb(e.resolvedLibReferences,(ae,ve)=>h(ve)))return!1;if(F.configFile&&i.configFile)return F.configFile.text===i.configFile.text;return!0;function $(ae){return!J(ae)||d(ae.path)}function J(ae){return ae.version===c(ae.resolvedPath,ae.fileName)}function X(ae,ve,we){return tY(ae,ve)&&ie(e.getResolvedProjectReferences()[we],ae)}function ie(ae,ve){if(ae){if(ni(k,ae))return!0;const Fe=vF(ve),et=E(Fe);return!et||ae.commandLine.options.configFile!==et.options.configFile||!fv(ae.commandLine.fileNames,et.fileNames)?!1:((k||(k=[])).push(ae),!Ot(ae.references,(Pe,dt)=>!ie(Pe,ae.commandLine.projectReferences[dt])))}const we=vF(ve);return!E(we)}}function p4(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Zae(e,n,i,c){const u=ese(e,n,i,c);return typeof u=="object"?u.impliedNodeFormat:u}function ese(e,n,i,c){switch(Jd(c)){case 3:case 99:return pv(e,[".d.mts",".mts",".mjs"])?99:pv(e,[".d.cts",".cts",".cjs"])?1:pv(e,[".d.ts",".ts",".tsx",".js",".jsx"])?u():void 0;default:return}function u(){const d=lae(n,i,c),h=[];d.failedLookupLocations=h,d.affectingLocations=h;const S=m$(e,d);return{impliedNodeFormat:(S==null?void 0:S.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:h,packageJsonScope:S}}}function Txe(e,n){return e?g9(e.getCompilerOptions(),n,c$):!1}function Sxe(e,n,i,c,u,d){return{rootNames:e,options:n,host:i,oldProgram:c,configFileParsingDiagnostics:u,typeScriptVersion:d}}function YQ(e,n,i,c,u){var d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et;const Pe=ls(e)?Sxe(e,n,i,c,u):e,{rootNames:dt,options:Ie,configFileParsingDiagnostics:ct,projectReferences:Ct,typeScriptVersion:Lt}=Pe;let{oldProgram:Ze}=Pe;const Ke=Pd(()=>zh("ignoreDeprecations",N.Invalid_value_for_ignoreDeprecations));let st,It,Yt,Et,at,Qt,nn;const Rn=new Map;let cn=zg();const qt={},Kt={};let wr=IR(),Wr,jt,En,fr,Tr,Vr,Pn,Fr,Ki,io;const no=typeof Ie.maxNodeModuleJsDepth=="number"?Ie.maxNodeModuleJsDepth:0;let os=0;const Mo=new Map,$i=new Map;(d=ps)==null||d.push(ps.Phase.Program,"createProgram",{configFilePath:Ie.configFilePath,rootDir:Ie.rootDir},!0),cf("beforeProgram");const ki=Pe.host||M4e(Ie),gc=k$(ki);let Wl=Ie.noLib;const Jc=Pd(()=>ki.getDefaultLibFileName(Ie)),au=ki.getDefaultLibLocation?ki.getDefaultLibLocation():ws(Jc()),qn=UL(),za=ki.getCurrentDirectory(),Ia=s3(Ie),zi=Q9(Ie,Ia),na=new Map;let _a,us,Au;const Qu=ki.hasInvalidatedResolutions||bg;ki.resolveModuleNameLiterals?(Au=ki.resolveModuleNameLiterals.bind(ki),us=(h=ki.getModuleResolutionCache)==null?void 0:h.call(ki)):ki.resolveModuleNames?(Au=(fn,$n,ri,Li,yo,jo)=>ki.resolveModuleNames(fn.map(vxe),$n,jo==null?void 0:jo.map(vxe),ri,Li,yo).map(Oo=>Oo?Oo.extension!==void 0?{resolvedModule:Oo}:{resolvedModule:{...Oo,extension:SP(Oo.resolvedFileName)}}:lse),us=(S=ki.getModuleResolutionCache)==null?void 0:S.call(ki)):(us=a4(za,N1,Ie),Au=(fn,$n,ri,Li,yo)=>KQ(fn,$n,ri,Li,yo,ki,us,I$));let Cu;if(ki.resolveTypeReferenceDirectiveReferences)Cu=ki.resolveTypeReferenceDirectiveReferences.bind(ki);else if(ki.resolveTypeReferenceDirectives)Cu=(fn,$n,ri,Li,yo)=>ki.resolveTypeReferenceDirectives(fn.map(Xae),$n,ri,Li,yo==null?void 0:yo.impliedNodeFormat).map(jo=>({resolvedTypeReferenceDirective:jo}));else{const fn=sae(za,N1,void 0,us==null?void 0:us.getPackageJsonInfoCache(),us==null?void 0:us.optionsToRedirectsKey);Cu=($n,ri,Li,yo,jo)=>KQ($n,ri,Li,yo,jo,ki,fn,Yae)}const yf=ki.hasInvalidatedLibResolutions||bg;let w_;if(ki.resolveLibrary)w_=ki.resolveLibrary.bind(ki);else{const fn=a4(za,N1,Ie,us==null?void 0:us.getPackageJsonInfoCache());w_=($n,ri,Li)=>Zpe($n,ri,Li,ki,fn)}const Eu=new Map;let He=new Map,Hn=zg(),dr=!1;const Mr=new Map;let Pr;const Bt=ki.useCaseSensitiveFileNames()?new Map:void 0;let ln,Wn,$r,Ge;const Br=!!((E=ki.useSourceOfProjectReferenceRedirect)!=null&&E.call(ki))&&!Ie.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ei,fileExists:Ln,directoryExists:Sr}=tse({compilerHost:ki,getSymlinkCache:Lb,useSourceOfProjectReferenceRedirect:Br,toPath:hc,getResolvedProjectReferences:mf,getSourceOfProjectReferenceRedirect:P1,forEachResolvedProjectReference:Bh}),yi=ki.readFile.bind(ki);(P=ps)==null||P.push(ps.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Ze});const go=Txe(Ze,Ie);(k=ps)==null||k.pop();let Ao;if((F=ps)==null||F.push(ps.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ao=G_(),($=ps)==null||$.pop(),Ao!==2){if(st=[],It=[],Ct&&(ln||(ln=Ct.map(pr)),dt.length&&(ln==null||ln.forEach((fn,$n)=>{if(!fn)return;const ri=Ng(fn.commandLine.options);if(Br){if(ri||Zp(fn.commandLine.options)===0)for(const Li of fn.commandLine.fileNames)Jt(Li,{kind:1,index:$n})}else if(ri)Jt(SA(ri,".d.ts"),{kind:2,index:$n});else if(Zp(fn.commandLine.options)===0){const Li=Pd(()=>hF(fn.commandLine,!ki.useCaseSensitiveFileNames()));for(const yo of fn.commandLine.fileNames)!Zb(yo)&&!mm(yo,".json")&&Jt(gF(yo,fn.commandLine,!ki.useCaseSensitiveFileNames(),Li),{kind:2,index:$n})}}))),(J=ps)==null||J.push(ps.Phase.Program,"processRootFiles",{count:dt.length}),Ot(dt,(fn,$n)=>ah(fn,!1,!1,{kind:0,index:$n})),(X=ps)==null||X.pop(),jt??(jt=dt.length?Qpe(Ie,ki):Yn),En=IR(),jt.length){(ie=ps)==null||ie.push(ps.Phase.Program,"processTypeReferences",{count:jt.length});const fn=Ie.configFilePath?ws(Ie.configFilePath):za,$n=vl(fn,gj),ri=ma(jt,$n);for(let Li=0;Li{ah(xv($n),!0,!1,{kind:6,index:ri})})}Pr=oc(p2(Mr.entries(),([fn,$n])=>$n===void 0?fn:void 0)),Yt=nh(st,Cc).concat(It),st=void 0,It=void 0}if(re.assert(!!Pr),Ze&&ki.onReleaseOldSourceFile){const fn=Ze.getSourceFiles();for(const $n of fn){const ri=M_($n.resolvedPath);(go||!ri||ri.impliedNodeFormat!==$n.impliedNodeFormat||$n.resolvedPath===$n.path&&ri.resolvedPath!==$n.path)&&ki.onReleaseOldSourceFile($n,Ze.getCompilerOptions(),!!M_($n.path))}ki.getParsedCommandLine||Ze.forEachResolvedProjectReference($n=>{Zm($n.sourceFile.path)||ki.onReleaseOldSourceFile($n.sourceFile,Ze.getCompilerOptions(),!1)})}Ze&&ki.onReleaseParsedCommandLine&&yF(Ze.getProjectReferences(),Ze.getResolvedProjectReferences(),(fn,$n,ri)=>{const Li=($n==null?void 0:$n.commandLine.projectReferences[ri])||Ze.getProjectReferences()[ri],yo=vF(Li);Wn!=null&&Wn.has(hc(yo))||ki.onReleaseParsedCommandLine(yo,fn,Ze.getCompilerOptions())}),Ze=void 0,Tr=void 0,Pn=void 0,Ki=void 0;const Io={getRootFileNames:()=>dt,getSourceFile:km,getSourceFileByPath:M_,getSourceFiles:()=>Yt,getMissingFilePaths:()=>Pr,getModuleResolutionCache:()=>us,getFilesByNameMap:()=>Mr,getCompilerOptions:()=>Ie,getSyntacticDiagnostics:bE,getOptionsDiagnostics:Tl,getGlobalDiagnostics:Gd,getSemanticDiagnostics:hh,getCachedSemanticDiagnostics:qo,getSuggestionDiagnostics:_n,getDeclarationDiagnostics:Qi,getBindAndCheckDiagnostics:d_,getProgramDiagnostics:Ka,getTypeChecker:Og,getClassifiableNames:Tc,getCommonSourceDirectory:bl,emit:pl,getCurrentDirectory:()=>za,getNodeCount:()=>Og().getNodeCount(),getIdentifierCount:()=>Og().getIdentifierCount(),getSymbolCount:()=>Og().getSymbolCount(),getTypeCount:()=>Og().getTypeCount(),getInstantiationCount:()=>Og().getInstantiationCount(),getRelationCacheSizes:()=>Og().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Wr,getResolvedTypeReferenceDirectives:()=>wr,getAutomaticTypeDirectiveNames:()=>jt,getAutomaticTypeDirectiveResolutions:()=>En,isSourceFileFromExternalLibrary:xg,isSourceFileDefaultLibrary:Wy,getSourceFileFromReference:Xp,getLibFileFromReference:wp,sourceFileToPackageName:He,redirectTargetsMap:Hn,usesUriStyleNodeCoreModules:dr,resolvedModules:Vr,resolvedTypeReferenceDirectiveNames:Fr,resolvedLibReferences:fr,getResolvedModule:ze,getResolvedTypeReferenceDirective:Ce,forEachResolvedModule:kt,forEachResolvedTypeReferenceDirective:qe,getCurrentPackagesMap:()=>io,typesPackageExists:mn,packageBundlesTypes:Jn,isEmittedFile:Uv,getConfigFileParsingDiagnostics:ag,getProjectReferences:Cp,getResolvedProjectReferences:mf,getProjectReferenceRedirect:um,getResolvedProjectReferenceToRedirect:Qm,getResolvedProjectReferenceByPath:Zm,forEachResolvedProjectReference:Bh,isSourceOfProjectReferenceRedirect:VT,emitBuildInfo:Ym,fileExists:Ln,readFile:yi,directoryExists:Sr,getSymlinkCache:Lb,realpath:(Fe=ki.realpath)==null?void 0:Fe.bind(ki),useCaseSensitiveFileNames:()=>ki.useCaseSensitiveFileNames(),getCanonicalFileName:N1,getFileIncludeReasons:()=>cn,structureIsReused:Ao,writeFile:xa};return Ei(),Wr==null||Wr.forEach(fn=>{switch(fn.kind){case 1:return qn.add(Ii(fn.file&&M_(fn.file),fn.fileProcessingReason,fn.diagnostic,fn.args||Yn));case 0:const{file:$n,pos:ri,end:Li}=XQ(Io,fn.reason);return qn.add(Pp($n,re.checkDefined(ri),re.checkDefined(Li)-ri,fn.diagnostic,...fn.args||Yn));case 2:return fn.diagnostics.forEach(yo=>qn.add(yo));default:re.assertNever(fn)}}),vi(),cf("afterProgram"),Tb("Program","beforeProgram","afterProgram"),(et=ps)==null||et.pop(),Io;function ze(fn,$n,ri){var Li;return(Li=Vr==null?void 0:Vr.get(fn.path))==null?void 0:Li.get($n,ri)}function Ce(fn,$n,ri){var Li;return(Li=Fr==null?void 0:Fr.get(fn.path))==null?void 0:Li.get($n,ri)}function kt(fn,$n){Mt(Vr,fn,$n)}function qe(fn,$n){Mt(Fr,fn,$n)}function Mt(fn,$n,ri){var Li;ri?(Li=fn==null?void 0:fn.get(ri.path))==null||Li.forEach((yo,jo,Oo)=>$n(yo,jo,Oo,ri.path)):fn==null||fn.forEach((yo,jo)=>yo.forEach((Oo,ca,Fc)=>$n(Oo,ca,Fc,jo)))}function ge(){return io||(io=new Map,kt(({resolvedModule:fn})=>{fn!=null&&fn.packageId&&io.set(fn.packageId.name,fn.extension===".d.ts"||!!io.get(fn.packageId.name))}),io)}function mn(fn){return ge().has(pae(fn))}function Jn(fn){return!!ge().get(fn)}function Nn(fn){var $n;($n=fn.resolutionDiagnostics)!=null&&$n.length&&(Wr??(Wr=[])).push({kind:2,diagnostics:fn.resolutionDiagnostics})}function Lr(fn,$n,ri,Li){if(ki.resolveModuleNameLiterals||!ki.resolveModuleNames)return Nn(ri);if(!us||Kv($n))return;const yo=vf(fn.originalFileName,za),jo=ws(yo),Oo=Ro(fn),ca=us.getFromNonRelativeNameCache($n,Li,jo,Oo);ca&&Nn(ca)}function qi(fn,$n,ri){var Li,yo;if(!fn.length)return Yn;const jo=vf($n.originalFileName,za),Oo=Ro($n);(Li=ps)==null||Li.push(ps.Phase.Program,"resolveModuleNamesWorker",{containingFileName:jo}),cf("beforeResolveModule");const ca=Au(fn,jo,Oo,Ie,$n,ri);return cf("afterResolveModule"),Tb("ResolveModule","beforeResolveModule","afterResolveModule"),(yo=ps)==null||yo.pop(),ca}function vo(fn,$n,ri){var Li,yo;if(!fn.length)return[];const jo=As($n)?void 0:$n,Oo=As($n)?$n:vf($n.originalFileName,za),ca=jo&&Ro(jo);(Li=ps)==null||Li.push(ps.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Oo}),cf("beforeResolveTypeReference");const Fc=Cu(fn,Oo,ca,Ie,jo,ri);return cf("afterResolveTypeReference"),Tb("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(yo=ps)==null||yo.pop(),Fc}function Ro(fn){const $n=Qm(fn.originalFileName);if($n||!Zb(fn.originalFileName))return $n;const ri=Ts(fn.path);if(ri)return ri;if(!ki.realpath||!Ie.preserveSymlinks||!fn.originalFileName.includes(IP))return;const Li=hc(ki.realpath(fn.originalFileName));return Li===fn.path?void 0:Ts(Li)}function Ts(fn){const $n=P1(fn);if(As($n))return Qm($n);if($n)return Bh(ri=>{const Li=Ng(ri.commandLine.options);if(Li)return hc(Li)===fn?ri:void 0})}function Cc(fn,$n){return pf(Pc(fn),Pc($n))}function Pc(fn){if(OE(au,fn.fileName,!1)){const $n=Jg(fn.fileName);if($n==="lib.d.ts"||$n==="lib.es6.d.ts")return 0;const ri=DM(xf($n,"lib."),".d.ts"),Li=r$.indexOf(ri);if(Li!==-1)return Li+1}return r$.length+2}function hc(fn){return gm(fn,za,N1)}function bl(){if(at===void 0){const fn=gi(Yt,$n=>HL($n,Io));at=zW(Ie,()=>Qo(fn,$n=>$n.isDeclarationFile?void 0:$n.fileName),za,N1,$n=>nt(fn,$n))}return at}function Tc(){var fn;if(!nn){Og(),nn=new Set;for(const $n of Yt)(fn=$n.classifiableNames)==null||fn.forEach(ri=>nn.add(ri))}return nn}function Tf(fn,$n){if(Ao===0&&!$n.ambientModuleNames.length)return qi(fn,$n,void 0);let ri,Li,yo;const jo=lse,Oo=Ze&&Ze.getSourceFile($n.fileName);for(let Xs=0;Xs{const Li=($n?$n.commandLine.projectReferences:Ct)[ri],yo=pr(Li);return fn?!yo||yo.sourceFile!==fn.sourceFile||!fv(fn.commandLine.fileNames,yo.commandLine.fileNames):yo!==void 0},(fn,$n)=>{const ri=$n?Zm($n.sourceFile.path).commandLine.projectReferences:Ct;return!fv(fn,ri,tY)})}function G_(){var fn;if(!Ze)return 0;const $n=Ze.getCompilerOptions();if(Td($n,Ie))return 0;const ri=Ze.getRootFileNames();if(!fv(ri,dt)||!Bl())return 0;Ct&&(ln=Ct.map(pr));const Li=[],yo=[];if(Ao=2,Ze.getMissingFilePaths().some(ks=>ki.fileExists(ks)))return 0;const jo=Ze.getSourceFiles();let Oo;(ks=>{ks[ks.Exists=0]="Exists",ks[ks.Modified=1]="Modified"})(Oo||(Oo={}));const ca=new Map;for(const ks of jo){const Xs=t_(ks.fileName,us,ki,Ie);let Vs=ki.getSourceFileByPath?ki.getSourceFileByPath(ks.fileName,ks.resolvedPath,Xs,void 0,go):ki.getSourceFile(ks.fileName,Xs,void 0,go);if(!Vs)return 0;Vs.packageJsonLocations=(fn=Xs.packageJsonLocations)!=null&&fn.length?Xs.packageJsonLocations:void 0,Vs.packageJsonScope=Xs.packageJsonScope,re.assert(!Vs.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let wu;if(ks.redirectInfo){if(Vs!==ks.redirectInfo.unredirected)return 0;wu=!1,Vs=ks}else if(Ze.redirectTargetsMap.has(ks.path)){if(Vs!==ks)return 0;wu=!1}else wu=Vs!==ks;Vs.path=ks.path,Vs.originalFileName=ks.originalFileName,Vs.resolvedPath=ks.resolvedPath,Vs.fileName=ks.fileName;const Yp=Ze.sourceFileToPackageName.get(ks.path);if(Yp!==void 0){const Q=ca.get(Yp),ft=wu?1:0;if(Q!==void 0&&ft===1||Q===1)return 0;ca.set(Yp,ft)}if(wu)ks.impliedNodeFormat!==Vs.impliedNodeFormat?Ao=1:fv(ks.libReferenceDirectives,Vs.libReferenceDirectives,bm)?ks.hasNoDefaultLib!==Vs.hasNoDefaultLib?Ao=1:fv(ks.referencedFiles,Vs.referencedFiles,bm)?(Cg(Vs),fv(ks.imports,Vs.imports,ay)&&fv(ks.moduleAugmentations,Vs.moduleAugmentations,ay)?(ks.flags&12582912)!==(Vs.flags&12582912)?Ao=1:fv(ks.typeReferenceDirectives,Vs.typeReferenceDirectives,bm)||(Ao=1):Ao=1):Ao=1:Ao=1,yo.push(Vs);else if(Qu(ks.path))Ao=1,yo.push(Vs);else for(const Q of ks.ambientModuleNames)Rn.set(Q,ks.fileName);Li.push(Vs)}if(Ao!==2)return Ao;for(const ks of yo){const Xs=Exe(ks),Vs=Tf(Xs,ks);(Pn??(Pn=new Map)).set(ks.path,Vs),sie(Xs,ks,Vs,(br,oo)=>Ze.getResolvedModule(ks,br,oo),qU,use)&&(Ao=1);const Yp=ks.typeReferenceDirectives,Q=ma(Yp,ks);(Ki??(Ki=new Map)).set(ks.path,Q),sie(Yp,ks,Q,(br,oo)=>Ze==null?void 0:Ze.getResolvedTypeReferenceDirective(ks,br,oo),GMe,Xme)&&(Ao=1)}if(Ao!==2)return Ao;if(zMe($n,Ie)||Ze.resolvedLibReferences&&Jb(Ze.resolvedLibReferences,(ks,Xs)=>t2(Xs).actual!==ks.actual))return 1;if(ki.hasChangedAutomaticTypeDirectiveNames){if(ki.hasChangedAutomaticTypeDirectiveNames())return 1}else if(jt=Qpe(Ie,ki),!fv(Ze.getAutomaticTypeDirectiveNames(),jt))return 1;Pr=Ze.getMissingFilePaths(),re.assert(Li.length===Ze.getSourceFiles().length);for(const ks of Li)Mr.set(ks.path,ks);return Ze.getFilesByNameMap().forEach((ks,Xs)=>{if(!ks){Mr.set(Xs,ks);return}if(ks.path===Xs){Ze.isSourceFileFromExternalLibrary(ks)&&$i.set(ks.path,!0);return}Mr.set(Xs,Mr.get(ks.path))}),Yt=Li,cn=Ze.getFileIncludeReasons(),Wr=Ze.getFileProcessingDiagnostics(),wr=Ze.getResolvedTypeReferenceDirectives(),jt=Ze.getAutomaticTypeDirectiveNames(),En=Ze.getAutomaticTypeDirectiveResolutions(),He=Ze.sourceFileToPackageName,Hn=Ze.redirectTargetsMap,dr=Ze.usesUriStyleNodeCoreModules,Vr=Ze.resolvedModules,Fr=Ze.resolvedTypeReferenceDirectiveNames,fr=Ze.resolvedLibReferences,io=Ze.getCurrentPackagesMap(),2}function u_(fn){return{getPrependNodes:Yg,getCanonicalFileName:N1,getCommonSourceDirectory:Io.getCommonSourceDirectory,getCompilerOptions:Io.getCompilerOptions,getCurrentDirectory:()=>za,getSourceFile:Io.getSourceFile,getSourceFileByPath:Io.getSourceFileByPath,getSourceFiles:Io.getSourceFiles,getLibFileFromReference:Io.getLibFileFromReference,isSourceFileFromExternalLibrary:xg,getResolvedProjectReferenceToRedirect:Qm,getProjectReferenceRedirect:um,isSourceOfProjectReferenceRedirect:VT,getSymlinkCache:Lb,writeFile:fn||xa,isEmitBlocked:R_,readFile:$n=>ki.readFile($n),fileExists:$n=>{const ri=hc($n);return M_(ri)?!0:ni(Pr,ri)?!1:ki.fileExists($n)},useCaseSensitiveFileNames:()=>ki.useCaseSensitiveFileNames(),getBuildInfo:$n=>{var ri;return(ri=Io.getBuildInfo)==null?void 0:ri.call(Io,$n)},getSourceFileFromReference:($n,ri)=>Io.getSourceFileFromReference($n,ri),redirectTargetsMap:Hn,getFileIncludeReasons:Io.getFileIncludeReasons,createHash:wc(ki,ki.createHash)}}function xa(fn,$n,ri,Li,yo,jo){ki.writeFile(fn,$n,ri,Li,yo,jo)}function Ym(fn){var $n,ri;re.assert(!Ng(Ie)),($n=ps)==null||$n.push(ps.Phase.Emit,"emitBuildInfo",{},!0),cf("beforeEmit");const Li=Uae(Wme,u_(fn),void 0,ZN,!1,!0);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),(ri=ps)==null||ri.pop(),Li}function mf(){return ln}function Cp(){return Ct}function Yg(){return ise(Ct,(fn,$n)=>{var ri;return(ri=ln[$n])==null?void 0:ri.commandLine},fn=>{const $n=hc(fn),ri=M_($n);return ri?ri.text:Mr.has($n)?void 0:ki.readFile($n)},ki)}function xg(fn){return!!$i.get(fn.path)}function Wy(fn){if(!fn.isDeclarationFile)return!1;if(fn.hasNoDefaultLib)return!0;if(!Ie.noLib)return!1;const $n=ki.useCaseSensitiveFileNames()?ZA:pN;return Ie.lib?gt(Ie.lib,ri=>$n(fn.fileName,fr.get(ri).actual)):$n(fn.fileName,Jc())}function Og(){return Qt||(Qt=oT(Io))}function pl(fn,$n,ri,Li,yo,jo){var Oo,ca;(Oo=ps)==null||Oo.push(ps.Phase.Emit,"emit",{path:fn==null?void 0:fn.path},!0);const Fc=Ag(()=>og(Io,fn,$n,ri,Li,yo,jo));return(ca=ps)==null||ca.pop(),Fc}function R_(fn){return na.has(hc(fn))}function og(fn,$n,ri,Li,yo,jo,Oo){if(!Oo){const ks=nse(fn,$n,ri,Li);if(ks)return ks}const ca=Og().getEmitResolver(Ng(Ie)?void 0:$n,Li);cf("beforeEmit");const Fc=Uae(ca,u_(ri),$n,Rme(Ie,jo,yo),yo,!1,Oo);return cf("afterEmit"),Tb("Emit","beforeEmit","afterEmit"),Fc}function km(fn){return M_(hc(fn))}function M_(fn){return Mr.get(fn)||void 0}function oy(fn,$n,ri){return o7(fn?$n(fn,ri):ea(Io.getSourceFiles(),Li=>(ri&&ri.throwIfCancellationRequested(),$n(Li,ri))))}function bE(fn,$n){return oy(fn,Pm,$n)}function hh(fn,$n){return oy(fn,va,$n)}function qo(fn){var $n;return fn?($n=qt.perFile)==null?void 0:$n.get(fn.path):qt.allDiagnostics}function d_(fn,$n){return x0(fn,$n)}function Ka(fn){var $n;if(c3(fn,Ie,Io))return Yn;const ri=qn.getDiagnostics(fn.fileName);return($n=fn.commentDirectives)!=null&&$n.length?fe(fn,fn.commentDirectives,ri).diagnostics:ri}function Qi(fn,$n){const ri=Io.getCompilerOptions();return!fn||Ng(ri)?$o(fn,$n):oy(fn,Fs,$n)}function Pm(fn){return Gy(fn)?(fn.additionalSyntacticDiagnostics||(fn.additionalSyntacticDiagnostics=_i(fn)),Hi(fn.additionalSyntacticDiagnostics,fn.parseDiagnostics)):fn.parseDiagnostics}function Ag(fn){try{return fn()}catch($n){throw $n instanceof QO&&(Qt=void 0),$n}}function va(fn,$n){return Hi(rse(x0(fn,$n),Ie),Ka(fn))}function x0(fn,$n){return xs(fn,$n,qt,Nm)}function Nm(fn,$n){return Ag(()=>{if(c3(fn,Ie,Io))return Yn;const ri=Og();re.assert(!!fn.bindDiagnostics);const yo=(fn.scriptKind===1||fn.scriptKind===2)&&tW(fn,Ie),jo=pP(fn,Ie.checkJs),ca=!(!!fn.checkJsDirective&&fn.checkJsDirective.enabled===!1)&&(fn.scriptKind===3||fn.scriptKind===4||fn.scriptKind===5||jo||yo||fn.scriptKind===7);let Fc=ca?fn.bindDiagnostics:Yn,ks=ca?ri.getDiagnostics(fn,$n):Yn;return jo&&(Fc=gi(Fc,Xs=>sD.has(Xs.code)),ks=gi(ks,Xs=>sD.has(Xs.code))),Md(fn,ca&&!jo,Fc,ks,yo?fn.jsDocDiagnostics:void 0)})}function Md(fn,$n,...ri){var Li;const yo=Gf(ri);if(!$n||!((Li=fn.commentDirectives)!=null&&Li.length))return yo;const{diagnostics:jo,directives:Oo}=fe(fn,fn.commentDirectives,yo);for(const ca of Oo.getUnusedExpectations())jo.push(Qz(fn,ca.range,N.Unused_ts_expect_error_directive));return jo}function fe(fn,$n,ri){const Li=YTe(fn,$n);return{diagnostics:ri.filter(jo=>Xn(jo,Li)===-1),directives:Li}}function _n(fn,$n){return Ag(()=>Og().getSuggestionDiagnostics(fn,$n))}function Xn(fn,$n){const{file:ri,start:Li}=fn;if(!ri)return-1;const yo=eR(ri);let jo=Nd(yo,Li).line-1;for(;jo>=0;){if($n.markUsed(jo))return jo;const Oo=ri.text.slice(yo[jo],yo[jo+1]).trim();if(Oo!==""&&!/^(\s*)\/\/(.*)$/.test(Oo))return-1;jo--}return-1}function _i(fn){return Ag(()=>{const $n=[];return ri(fn,fn),cF(fn,ri,Li),$n;function ri(ca,Fc){switch(Fc.kind){case 169:case 172:case 174:if(Fc.questionToken===ca)return $n.push(Oo(ca,N.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(Fc.type===ca)return $n.push(Oo(ca,N.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(ca.kind){case 273:if(ca.isTypeOnly)return $n.push(Oo(Fc,N._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(ca.isTypeOnly)return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(ca.isTypeOnly)return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,qE(ca)?"import...type":"export...type")),"skip";break;case 271:return $n.push(Oo(ca,N.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(ca.isExportEquals)return $n.push(Oo(ca,N.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(ca.token===119)return $n.push(Oo(ca,N.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const Xs=Cf(120);return re.assertIsDefined(Xs),$n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,Xs)),"skip";case 267:const Vs=ca.flags&32?Cf(145):Cf(144);return re.assertIsDefined(Vs),$n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,Vs)),"skip";case 265:return $n.push(Oo(ca,N.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return ca.body?void 0:($n.push(Oo(ca,N.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const wu=re.checkDefined(Cf(94));return $n.push(Oo(ca,N._0_declarations_can_only_be_used_in_TypeScript_files,wu)),"skip";case 235:return $n.push(Oo(ca,N.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return $n.push(Oo(ca.type,N.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return $n.push(Oo(ca.type,N.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:re.fail()}}function Li(ca,Fc){if(Spe(Fc)){const ks=lr(Fc.modifiers,Jh);ks&&$n.push(Oo(ks,N.Decorators_are_not_valid_here))}else if(S6(Fc)&&Fc.modifiers){const ks=Ho(Fc.modifiers,Jh);if(ks>=0){if(Os(Fc)&&!Ie.experimentalDecorators)$n.push(Oo(Fc.modifiers[ks],N.Decorators_are_not_valid_here));else if(Ih(Fc)){const Xs=Ho(Fc.modifiers,_W);if(Xs>=0){const Vs=Ho(Fc.modifiers,zY);if(ks>Xs&&Vs>=0&&ks=0&&ks=0&&$n.push(ml(Oo(Fc.modifiers[wu],N.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Oo(Fc.modifiers[ks],N.Decorator_used_before_export_here)))}}}}}switch(Fc.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(ca===Fc.typeParameters)return $n.push(jo(ca,N.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(ca===Fc.modifiers)return yo(Fc.modifiers,Fc.kind===243),"skip";break;case 172:if(ca===Fc.modifiers){for(const ks of ca)Mf(ks)&&ks.kind!==126&&ks.kind!==129&&$n.push(Oo(ks,N.The_0_modifier_can_only_be_used_in_TypeScript_files,Cf(ks.kind)));return"skip"}break;case 169:if(ca===Fc.modifiers&>(ca,Mf))return $n.push(jo(ca,N.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(ca===Fc.typeArguments)return $n.push(jo(ca,N.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function yo(ca,Fc){for(const ks of ca)switch(ks.kind){case 87:if(Fc)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:$n.push(Oo(ks,N.The_0_modifier_can_only_be_used_in_TypeScript_files,Cf(ks.kind)));break;case 126:case 95:case 90:case 129:}}function jo(ca,Fc,...ks){const Xs=ca.pos;return Pp(fn,Xs,ca.end-Xs,Fc,...ks)}function Oo(ca,Fc,...ks){return Ud(fn,ca,Fc,...ks)}})}function $o(fn,$n){return xs(fn,$n,Kt,Sc)}function Sc(fn,$n){return Ag(()=>{const ri=Og().getEmitResolver(fn,$n);return T4e(u_(ku),ri,fn)||Yn})}function xs(fn,$n,ri,Li){var yo;const jo=fn?(yo=ri.perFile)==null?void 0:yo.get(fn.path):ri.allDiagnostics;if(jo)return jo;const Oo=Li(fn,$n);return fn?(ri.perFile||(ri.perFile=new Map)).set(fn.path,Oo):ri.allDiagnostics=Oo,Oo}function Fs(fn,$n){return fn.isDeclarationFile?[]:$o(fn,$n)}function Tl(){return o7(Hi(qn.getGlobalDiagnostics(),fc()))}function fc(){if(!Ie.configFile)return Yn;let fn=qn.getDiagnostics(Ie.configFile.fileName);return Bh($n=>{fn=Hi(fn,qn.getDiagnostics($n.sourceFile.fileName))}),fn}function Gd(){return dt.length?o7(Og().getGlobalDiagnostics().slice()):Yn}function ag(){return ct||Yn}function ah(fn,$n,ri,Li){sg(hf(fn),$n,ri,void 0,Li)}function bm(fn,$n){return fn.fileName===$n.fileName}function ay(fn,$n){return fn.kind===80?$n.kind===80&&fn.escapedText===$n.escapedText:$n.kind===11&&fn.text===$n.text}function yp(fn,$n){const ri=he.createStringLiteral(fn),Li=he.createImportDeclaration(void 0,void 0,ri,void 0);return CG(Li,2),kl(ri,Li),kl(Li,$n),ri.flags&=-17,Li.flags&=-17,ri}function Cg(fn){if(fn.imports)return;const $n=Gy(fn),ri=Bv(fn);let Li,yo,jo;if((F0(Ie)||ri)&&!fn.isDeclarationFile){Ie.importHelpers&&(Li=[yp(HN,fn)]);const Xs=HH(UH(Ie,fn),Ie);Xs&&(Li||(Li=[])).push(yp(Xs,fn))}for(const Xs of fn.statements)ca(Xs,!1);const Oo=$n&&GH(Ie);(fn.flags&4194304||Oo)&&Fc(fn),fn.imports=Li||Yn,fn.moduleAugmentations=yo||Yn,fn.ambientModuleNames=jo||Yn;return;function ca(Xs,Vs){if(eH(Xs)){const wu=w9(Xs);wu&&Sd(wu)&&wu.text&&(!Vs||!Kv(wu.text))&&(Q2(Xs,!1),Li=ur(Li,wu),!dr&&os===0&&!fn.isDeclarationFile&&(dr=qf(wu.text,"node:")))}else if(dy(Xs)&&dh(Xs)&&(Vs||ul(Xs,128)||fn.isDeclarationFile)){Xs.name.parent=Xs;const wu=K2(Xs.name);if(ri||Vs&&!Kv(wu))(yo||(yo=[])).push(Xs.name);else if(!Vs){fn.isDeclarationFile&&(jo||(jo=[])).push(wu);const Yp=Xs.body;if(Yp)for(const Q of Yp.statements)ca(Q,!0)}}}function Fc(Xs){const Vs=/import|require/g;for(;Vs.exec(Xs.text)!==null;){const wu=ks(Xs,Vs.lastIndex);Oo&&y1(wu,!0)||Py(wu)&&wu.arguments.length>=1&&Cm(wu.arguments[0])?(Q2(wu,!1),Li=ur(Li,wu.arguments[0])):MN(wu)&&(Q2(wu,!1),Li=ur(Li,wu.argument.literal))}}function ks(Xs,Vs){let wu=Xs;const Yp=Q=>{if(Q.pos<=Vs&&(Vsmm(yo,Oo))){ri&&(eD(yo)?ri(N.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,fn):ri(N.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,fn,"'"+Gf(Ia).join("', '")+"'"));return}const jo=$n(fn);if(ri)if(jo)ew(Li)&&yo===ki.getCanonicalFileName(M_(Li.file).fileName)&&ri(N.A_file_cannot_have_a_reference_to_itself);else{const Oo=um(fn);Oo?ri(N.Output_file_0_has_not_been_built_from_source_file_1,Oo,fn):ri(N.File_0_not_found,fn)}return jo}else{const yo=Ie.allowNonTsExtensions&&$n(fn);if(yo)return yo;if(ri&&Ie.allowNonTsExtensions){ri(N.File_0_not_found,fn);return}const jo=Ot(Ia[0],Oo=>$n(fn+Oo));return ri&&!jo&&ri(N.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,fn,"'"+Gf(Ia).join("', '")+"'"),jo}}function sg(fn,$n,ri,Li,yo){r1(fn,jo=>Hu(jo,$n,ri,yo,Li),(jo,...Oo)=>Ja(void 0,yo,jo,Oo),yo)}function Jt(fn,$n){return sg(fn,!1,!1,void 0,$n)}function ci(fn,$n,ri){!ew(ri)&>(cn.get($n.path),ew)?Ja($n,ri,N.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[$n.fileName,fn]):Ja($n,ri,N.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[fn,$n.fileName])}function da(fn,$n,ri,Li,yo,jo,Oo){var ca;const Fc=Ck.createRedirectedSourceFile({redirectTarget:fn,unredirected:$n});return Fc.fileName=ri,Fc.path=Li,Fc.resolvedPath=yo,Fc.originalFileName=jo,Fc.packageJsonLocations=(ca=Oo.packageJsonLocations)!=null&&ca.length?Oo.packageJsonLocations:void 0,Fc.packageJsonScope=Oo.packageJsonScope,$i.set(Li,os>0),Fc}function Hu(fn,$n,ri,Li,yo){var jo,Oo;(jo=ps)==null||jo.push(ps.Phase.Program,"findSourceFile",{fileName:fn,isDefaultLib:$n||void 0,fileIncludeKind:dX[Li.kind]});const ca=A_(fn,$n,ri,Li,yo);return(Oo=ps)==null||Oo.pop(),ca}function t_(fn,$n,ri,Li){const yo=ese(vf(fn,za),$n==null?void 0:$n.getPackageJsonInfoCache(),ri,Li),jo=iu(Li),Oo=q9(Li);return typeof yo=="object"?{...yo,languageVersion:jo,setExternalModuleIndicator:Oo,jsDocParsingMode:ri.jsDocParsingMode}:{languageVersion:jo,impliedNodeFormat:yo,setExternalModuleIndicator:Oo,jsDocParsingMode:ri.jsDocParsingMode}}function A_(fn,$n,ri,Li,yo){var jo;const Oo=hc(fn);if(Br){let Vs=P1(Oo);if(!Vs&&ki.realpath&&Ie.preserveSymlinks&&Zb(fn)&&fn.includes(IP)){const wu=hc(ki.realpath(fn));wu!==Oo&&(Vs=P1(wu))}if(Vs){const wu=As(Vs)?Hu(Vs,$n,ri,Li,yo):void 0;return wu&&Dg(wu,Oo,void 0),wu}}const ca=fn;if(Mr.has(Oo)){const Vs=Mr.get(Oo);if(gd(Vs||void 0,Li),Vs&&Ie.forceConsistentCasingInFileNames!==!1){const wu=Vs.fileName;hc(wu)!==hc(fn)&&(fn=um(fn)||fn);const Q=tf(wu,za),ft=tf(fn,za);Q!==ft&&ci(fn,Vs,Li)}return Vs&&$i.get(Vs.path)&&os===0?($i.set(Vs.path,!1),Ie.noResolve||(fb(Vs,$n),FS(Vs)),Ie.noLib||q0(Vs),Mo.set(Vs.path,!1),i0(Vs)):Vs&&Mo.get(Vs.path)&&osJa(void 0,Li,N.Cannot_read_file_0_Colon_1,[fn,Vs]),go);if(yo){const Vs=jM(yo),wu=Eu.get(Vs);if(wu){const Yp=da(wu,Xs,fn,Oo,hc(fn),ca,ks);return Hn.add(wu.path,fn),Dg(Yp,Oo,Fc),gd(Yp,Li),He.set(Oo,aie(yo)),It.push(Yp),Yp}else Xs&&(Eu.set(Vs,Xs),He.set(Oo,aie(yo)))}if(Dg(Xs,Oo,Fc),Xs){if($i.set(Oo,os>0),Xs.fileName=fn,Xs.path=Oo,Xs.resolvedPath=hc(fn),Xs.originalFileName=ca,Xs.packageJsonLocations=(jo=ks.packageJsonLocations)!=null&&jo.length?ks.packageJsonLocations:void 0,Xs.packageJsonScope=ks.packageJsonScope,gd(Xs,Li),ki.useCaseSensitiveFileNames()){const Vs=Q0(Oo),wu=Bt.get(Vs);wu?ci(fn,wu,Li):Bt.set(Vs,Xs)}Wl=Wl||Xs.hasNoDefaultLib&&!ri,Ie.noResolve||(fb(Xs,$n),FS(Xs)),Ie.noLib||q0(Xs),i0(Xs),$n?st.push(Xs):It.push(Xs)}return Xs}function gd(fn,$n){fn&&cn.add(fn.path,$n)}function Dg(fn,$n,ri){ri?(Mr.set(ri,fn),Mr.set($n,fn||!1)):Mr.set($n,fn)}function um(fn){const $n=Ig(fn);return $n&&P_($n,fn)}function Ig(fn){if(!(!ln||!ln.length||Zb(fn)||mm(fn,".json")))return Qm(fn)}function P_(fn,$n){const ri=Ng(fn.commandLine.options);return ri?SA(ri,".d.ts"):gF($n,fn.commandLine,!ki.useCaseSensitiveFileNames())}function Qm(fn){$r===void 0&&($r=new Map,Bh(ri=>{hc(Ie.configFilePath)!==ri.sourceFile.path&&ri.commandLine.fileNames.forEach(Li=>$r.set(hc(Li),ri.sourceFile.path))}));const $n=$r.get(hc(fn));return $n&&Zm($n)}function Bh(fn){return k6(ln,fn)}function P1(fn){if(Zb(fn))return Ge===void 0&&(Ge=new Map,Bh($n=>{const ri=Ng($n.commandLine.options);if(ri){const Li=SA(ri,".d.ts");Ge.set(hc(Li),!0)}else{const Li=Pd(()=>hF($n.commandLine,!ki.useCaseSensitiveFileNames()));Ot($n.commandLine.fileNames,yo=>{if(!Zb(yo)&&!mm(yo,".json")){const jo=gF(yo,$n.commandLine,!ki.useCaseSensitiveFileNames(),Li);Ge.set(hc(jo),yo)}})}})),Ge.get(fn)}function VT(fn){return Br&&!!Qm(fn)}function Zm(fn){if(Wn)return Wn.get(fn)||void 0}function fb(fn,$n){Ot(fn.referencedFiles,(ri,Li)=>{sg(HQ(ri.fileName,fn.fileName),$n,!1,void 0,{kind:4,file:fn.path,index:Li})})}function FS(fn){const $n=fn.typeReferenceDirectives;if(!$n.length)return;const ri=(Ki==null?void 0:Ki.get(fn.path))||ma($n,fn),Li=IR();(Fr??(Fr=new Map)).set(fn.path,Li);for(let yo=0;yo<$n.length;yo++){const jo=fn.typeReferenceDirectives[yo],Oo=ri[yo],ca=Q0(jo.fileName);Li.set(ca,$Q(jo,fn.impliedNodeFormat),Oo);const Fc=jo.resolutionMode||fn.impliedNodeFormat;dT(ca,Fc,Oo,{kind:5,file:fn.path,index:yo})}}function dT(fn,$n,ri,Li){var yo,jo;(yo=ps)==null||yo.push(ps.Phase.Program,"processTypeReferenceDirective",{directive:fn,hasResolved:!!ri.resolvedTypeReferenceDirective,refKind:Li.kind,refPath:ew(Li)?Li.file:void 0}),$0(fn,$n,ri,Li),(jo=ps)==null||jo.pop()}function $0(fn,$n,ri,Li){var yo;Nn(ri);const jo=(yo=wr.get(fn,$n))==null?void 0:yo.resolvedTypeReferenceDirective;if(jo&&jo.primary)return;let Oo=!0;const{resolvedTypeReferenceDirective:ca}=ri;if(ca){if(ca.isExternalLibraryImport&&os++,ca.primary)sg(ca.resolvedFileName,!1,!1,ca.packageId,Li);else if(jo){if(ca.resolvedFileName!==jo.resolvedFileName){const Fc=ki.readFile(ca.resolvedFileName),ks=km(jo.resolvedFileName);Fc!==ks.text&&Ja(ks,Li,N.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[fn,ca.resolvedFileName,jo.resolvedFileName])}Oo=!1}else sg(ca.resolvedFileName,!1,!1,ca.packageId,Li);ca.isExternalLibraryImport&&os--}else Ja(void 0,Li,N.Cannot_find_type_definition_file_for_0,[fn]);Oo&&wr.set(fn,$n,ri)}function xv(fn){const $n=fr==null?void 0:fr.get(fn);if($n)return $n.actual;const ri=t2(fn);return(fr??(fr=new Map)).set(fn,ri),ri.actual}function t2(fn){var $n,ri,Li,yo,jo;const Oo=Tr==null?void 0:Tr.get(fn);if(Oo)return Oo;if(Ao!==0&&Ze&&!yf(fn)){const Vs=($n=Ze.resolvedLibReferences)==null?void 0:$n.get(fn);if(Vs){if(Vs.resolution&&DR(Ie,ki)){const wu=Qae(fn),Yp=VW(Ie,za,fn);Df(ki,Vs.resolution.resolvedModule?Vs.resolution.resolvedModule.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,wu,vf(Yp,za),(ri=Vs.resolution.resolvedModule)==null?void 0:ri.resolvedFileName,((Li=Vs.resolution.resolvedModule)==null?void 0:Li.packageId)&&jM(Vs.resolution.resolvedModule.packageId))}return(Tr??(Tr=new Map)).set(fn,Vs),Vs}}const ca=Qae(fn),Fc=VW(Ie,za,fn);(yo=ps)==null||yo.push(ps.Phase.Program,"resolveLibrary",{resolveFrom:Fc}),cf("beforeResolveLibrary");const ks=w_(ca,Fc,Ie,fn);cf("afterResolveLibrary"),Tb("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(jo=ps)==null||jo.pop();const Xs={resolution:ks,actual:ks.resolvedModule?ks.resolvedModule.resolvedFileName:vl(au,fn)};return(Tr??(Tr=new Map)).set(fn,Xs),Xs}function q0(fn){Ot(fn.libReferenceDirectives,($n,ri)=>{const{libName:Li,libFileName:yo}=UW($n);if(yo)ah(xv(yo),!0,!0,{kind:7,file:fn.path,index:ri});else{const jo=DM(xf(Li,"lib."),".d.ts"),Oo=fh(jo,r$,Of),ca=Oo?N.Cannot_find_lib_definition_for_0_Did_you_mean_1:N.Cannot_find_lib_definition_for_0,Fc=Oo?[Li,Oo]:[Li];(Wr||(Wr=[])).push({kind:0,reason:{kind:7,file:fn.path,index:ri},diagnostic:ca,args:Fc})}})}function N1(fn){return ki.getCanonicalFileName(fn)}function i0(fn){var $n;if(Cg(fn),fn.imports.length||fn.moduleAugmentations.length){const ri=Exe(fn),Li=(Pn==null?void 0:Pn.get(fn.path))||Tf(ri,fn);re.assert(Li.length===ri.length);const yo=(Br?($n=Ro(fn))==null?void 0:$n.commandLine.options:void 0)||Ie,jo=IR();(Vr??(Vr=new Map)).set(fn.path,jo);for(let Oo=0;Oono,ft=Yp&&!QQ(yo,ca,fn)&&!yo.noResolve&&OoBv(Oo)&&!Oo.isDeclarationFile);if(Ie.isolatedModules||Ie.verbatimModuleSyntax)Ie.module===0&&$n<2&&Ie.isolatedModules&&f_(N.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Ie.preserveConstEnums===!1&&f_(N.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Ie.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(ri&&$n<2&&Ie.module===0){const Oo=BL(ri,typeof ri.externalModuleIndicator=="boolean"?ri:ri.externalModuleIndicator);qn.add(Pp(ri,Oo.start,Oo.length,N.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(fn&&!Ie.emitDeclarationOnly){if(Ie.module&&!(Ie.module===2||Ie.module===4))f_(N.Only_amd_and_system_modules_are_supported_alongside_0,Ie.out?"out":"outFile","module");else if(Ie.module===void 0&&ri){const Oo=BL(ri,typeof ri.externalModuleIndicator=="boolean"?ri:ri.externalModuleIndicator);qn.add(Pp(ri,Oo.start,Oo.length,N.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,Ie.out?"out":"outFile"))}}if(sI(Ie)&&(Jd(Ie)===1?f_(N.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):BH(Ie)||f_(N.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),Ie.outDir||Ie.rootDir||Ie.sourceRoot||Ie.mapRoot){const Oo=bl();Ie.outDir&&Oo===""&&Yt.some(ca=>Pg(ca.fileName)>1)&&f_(N.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Ie.useDefineForClassFields&&$n===0&&f_(N.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),Ie.checkJs&&!TP(Ie)&&qn.add(W_(N.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Ie.emitDeclarationOnly&&(gv(Ie)||f_(N.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),Ie.noEmit&&f_(N.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Ie.emitDecoratorMetadata&&!Ie.experimentalDecorators&&f_(N.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Ie.jsxFactory?(Ie.reactNamespace&&f_(N.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",uF.get(""+Ie.jsx)),UG(Ie.jsxFactory,$n)||zh("jsxFactory",N.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Ie.jsxFactory)):Ie.reactNamespace&&!H2(Ie.reactNamespace,$n)&&zh("reactNamespace",N.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Ie.reactNamespace),Ie.jsxFragmentFactory&&(Ie.jsxFactory||f_(N.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",uF.get(""+Ie.jsx)),UG(Ie.jsxFragmentFactory,$n)||zh("jsxFragmentFactory",N.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Ie.jsxFragmentFactory)),Ie.reactNamespace&&(Ie.jsx===4||Ie.jsx===5)&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",uF.get(""+Ie.jsx)),Ie.jsxImportSource&&Ie.jsx===2&&f_(N.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",uF.get(""+Ie.jsx)),Ie.preserveValueImports&&Zp(Ie)<5&&f_(N.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Li=Zp(Ie);Ie.verbatimModuleSyntax&&((Li===2||Li===3||Li===4)&&f_(N.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),Ie.preserveValueImports&&gC("preserveValueImports","verbatimModuleSyntax"),Ie.importsNotUsedAsValues&&gC("importsNotUsedAsValues","verbatimModuleSyntax")),Ie.allowImportingTsExtensions&&!(Ie.noEmit||Ie.emitDeclarationOnly)&&zh("allowImportingTsExtensions",N.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const yo=Jd(Ie);if(Ie.resolvePackageJsonExports&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Ie.resolvePackageJsonImports&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Ie.customConditions&&!UN(yo)&&f_(N.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),yo===100&&!WH(Li)&&zh("moduleResolution",N.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),wz[Li]&&100<=Li&&Li<=199&&!(3<=yo&&yo<=99)){const Oo=wz[Li];zh("moduleResolution",N.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,Oo,Oo)}else if(t9[yo]&&3<=yo&&yo<=99&&!(100<=Li&&Li<=199)){const Oo=t9[yo];zh("module",N.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Oo,Oo)}if(!Ie.noEmit&&!Ie.suppressOutputPathCheck){const Oo=u_(),ca=new Set;zQ(Oo,Fc=>{Ie.emitDeclarationOnly||jo(Fc.jsFilePath,ca),jo(Fc.declarationFilePath,ca)})}function jo(Oo,ca){if(Oo){const Fc=hc(Oo);if(Mr.has(Fc)){let Xs;Ie.configFilePath||(Xs=Es(void 0,N.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)),Xs=Es(Xs,N.Cannot_write_file_0_because_it_would_overwrite_input_file,Oo),eg(Oo,OH(Xs))}const ks=ki.useCaseSensitiveFileNames()?Fc:Q0(Fc);ca.has(ks)?eg(Oo,W_(N.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Oo)):ca.add(ks)}}}function Di(){const fn=Ie.ignoreDeprecations;if(fn){if(fn==="5.0")return new ZT(fn);Ke()}return ZT.zero}function Ee(fn,$n,ri,Li){const yo=new ZT(fn),jo=new ZT($n),Oo=new ZT(Lt||ot),ca=Di(),Fc=jo.compareTo(Oo)!==1,ks=!Fc&&ca.compareTo(yo)===-1;(Fc||ks)&&Li((Xs,Vs,wu)=>{Fc?Vs===void 0?ri(Xs,Vs,wu,N.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Xs):ri(Xs,Vs,wu,N.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Xs,Vs):Vs===void 0?ri(Xs,Vs,wu,N.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Xs,$n,fn):ri(Xs,Vs,wu,N.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Xs,Vs,$n,fn)})}function Gt(){function fn($n,ri,Li,yo,...jo){if(Li){const Oo=Es(void 0,N.Use_0_instead,Li),ca=Es(Oo,yo,...jo);n2(!ri,$n,void 0,ca)}else n2(!ri,$n,void 0,yo,...jo)}Ee("5.0","5.5",fn,$n=>{Ie.target===0&&$n("target","ES3"),Ie.noImplicitUseStrict&&$n("noImplicitUseStrict"),Ie.keyofStringsOnly&&$n("keyofStringsOnly"),Ie.suppressExcessPropertyErrors&&$n("suppressExcessPropertyErrors"),Ie.suppressImplicitAnyIndexErrors&&$n("suppressImplicitAnyIndexErrors"),Ie.noStrictGenericChecks&&$n("noStrictGenericChecks"),Ie.charset&&$n("charset"),Ie.out&&$n("out",void 0,"outFile"),Ie.importsNotUsedAsValues&&$n("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Ie.preserveValueImports&&$n("preserveValueImports",void 0,"verbatimModuleSyntax")})}function sr(fn,$n,ri){function Li(yo,jo,Oo,ca,...Fc){i1($n,ri,ca,...Fc)}Ee("5.0","5.5",Li,yo=>{fn.prepend&&yo("prepend")})}function Ii(fn,$n,ri,Li){var yo;let jo,Oo,ca=ew($n)?$n:void 0;fn&&((yo=cn.get(fn.path))==null||yo.forEach(wu)),$n&&wu($n),ca&&(jo==null?void 0:jo.length)===1&&(jo=void 0);const Fc=ca&&XQ(Io,ca),ks=jo&&Es(jo,N.The_file_is_in_the_program_because_Colon),Xs=fn&&yse(fn),Vs=Es(Xs?ks?[ks,...Xs]:Xs:ks,ri,...Li||Yn);return Fc&&HW(Fc)?g7(Fc.file,Fc.pos,Fc.end-Fc.pos,Vs,Oo):OH(Vs,Oo);function wu(Yp){(jo||(jo=[])).push(cZ(Io,Yp)),!ca&&ew(Yp)?ca=Yp:ca!==Yp&&(Oo=ur(Oo,wi(Yp))),Yp===$n&&($n=void 0)}}function Ja(fn,$n,ri,Li){(Wr||(Wr=[])).push({kind:1,file:fn&&fn.path,fileProcessingReason:$n,diagnostic:ri,args:Li})}function wa(fn,$n,ri){qn.add(Ii(fn,void 0,$n,ri))}function wi(fn){if(ew(fn)){const Li=XQ(Io,fn);let yo;switch(fn.kind){case 3:yo=N.File_is_included_via_import_here;break;case 4:yo=N.File_is_included_via_reference_here;break;case 5:yo=N.File_is_included_via_type_library_reference_here;break;case 7:yo=N.File_is_included_via_library_reference_here;break;default:re.assertNever(fn)}return HW(Li)?Pp(Li.file,Li.pos,Li.end-Li.pos,yo):void 0}if(!Ie.configFile)return;let $n,ri;switch(fn.kind){case 0:if(!Ie.configFile.configFileSpecs)return;const Li=vf(dt[fn.index],za),yo=vse(Io,Li);if(yo){$n=JM(Ie.configFile,"files",yo),ri=N.File_is_matched_by_files_list_specified_here;break}const jo=sZ(Io,Li);if(!jo||!As(jo))return;$n=JM(Ie.configFile,"include",jo),ri=N.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Oo=re.checkDefined(ln==null?void 0:ln[fn.index]),ca=yF(Ct,ln,(wu,Yp,Q)=>wu===Oo?{sourceFile:(Yp==null?void 0:Yp.sourceFile)||Ie.configFile,index:Q}:void 0);if(!ca)return;const{sourceFile:Fc,index:ks}=ca,Xs=q2(Fc,"references",wu=>Ed(wu.initializer)?wu.initializer:void 0);return Xs&&Xs.elements.length>ks?Ud(Fc,Xs.elements[ks],fn.kind===2?N.File_is_output_from_referenced_project_specified_here:N.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!Ie.types)return;$n=_b("types",fn.typeReference),ri=N.File_is_entry_point_of_type_library_specified_here;break;case 6:if(fn.index!==void 0){$n=_b("lib",Ie.lib[fn.index]),ri=N.File_is_library_specified_here;break}const Vs=Jb(a$.type,(wu,Yp)=>wu===iu(Ie)?Yp:void 0);$n=Vs?vy("target",Vs):void 0,ri=N.File_is_default_library_for_target_specified_here;break;default:re.assertNever(fn)}return $n&&Ud(Ie.configFile,$n,ri)}function Vl(){const fn=Ie.suppressOutputPathCheck?void 0:PR(Ie);yF(Ct,ln,($n,ri,Li)=>{const yo=(ri?ri.commandLine.projectReferences:Ct)[Li],jo=ri&&ri.sourceFile;if(sr(yo,jo,Li),!$n){i1(jo,Li,N.File_0_not_found,yo.path);return}const Oo=$n.commandLine.options;if((!Oo.composite||Oo.noEmit)&&(ri?ri.commandLine.fileNames:dt).length&&(Oo.composite||i1(jo,Li,N.Referenced_project_0_must_have_setting_composite_Colon_true,yo.path),Oo.noEmit&&i1(jo,Li,N.Referenced_project_0_may_not_disable_emit,yo.path)),yo.prepend){const ca=Ng(Oo);ca?ki.fileExists(ca)||i1(jo,Li,N.Output_file_0_from_project_1_does_not_exist,ca,yo.path):i1(jo,Li,N.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,yo.path)}!ri&&fn&&fn===PR(Oo)&&(i1(jo,Li,N.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,fn,yo.path),na.set(hc(fn),!0))})}function Uf(fn,$n,ri,...Li){let yo=!0;sv(jo=>{el(jo.initializer)&&Zz(jo.initializer,fn,Oo=>{const ca=Oo.initializer;Ed(ca)&&ca.elements.length>$n&&(qn.add(Ud(Ie.configFile,ca.elements[$n],ri,...Li)),yo=!1)})}),yo&&qn.add(W_(ri,...Li))}function Y_(fn,$n,ri,...Li){let yo=!0;sv(jo=>{el(jo.initializer)&&su(jo.initializer,fn,$n,void 0,ri,...Li)&&(yo=!1)}),yo&&qn.add(W_(ri,...Li))}function Fg(fn,$n){return Zz(Vv(),fn,$n)}function sv(fn){return Fg("paths",fn)}function vy(fn,$n){return Fg(fn,ri=>Sd(ri.initializer)&&ri.initializer.text===$n?ri.initializer:void 0)}function _b(fn,$n){const ri=Vv();return ri&&iSe(ri,fn,$n)}function f_(fn,$n,ri,Li){n2(!0,$n,ri,fn,$n,ri,Li)}function zh(fn,$n,...ri){n2(!1,fn,void 0,$n,...ri)}function i1(fn,$n,ri,...Li){const yo=q2(fn||Ie.configFile,"references",jo=>Ed(jo.initializer)?jo.initializer:void 0);yo&&yo.elements.length>$n?qn.add(Ud(fn||Ie.configFile,yo.elements[$n],ri,...Li)):qn.add(W_(ri,...Li))}function n2(fn,$n,ri,Li,...yo){const jo=Vv();(!jo||!su(jo,fn,$n,ri,Li,...yo))&&("messageText"in Li?qn.add(OH(Li)):qn.add(W_(Li,...yo)))}function Vv(){return _a===void 0&&(_a=Zz(eG(Ie.configFile),"compilerOptions",fn=>el(fn.initializer)?fn.initializer:void 0)||!1),_a||void 0}function su(fn,$n,ri,Li,yo,...jo){let Oo=!1;return Zz(fn,ri,ca=>{"messageText"in yo?qn.add(wN(Ie.configFile,$n?ca.name:ca.initializer,yo)):qn.add(Ud(Ie.configFile,$n?ca.name:ca.initializer,yo,...jo)),Oo=!0},Li),Oo}function gC(fn,$n){const ri=Vv();ri?su(ri,!0,fn,void 0,N.Option_0_is_redundant_and_cannot_be_specified_with_option_1,fn,$n):f_(N.Option_0_is_redundant_and_cannot_be_specified_with_option_1,fn,$n)}function eg(fn,$n){na.set(hc(fn),!0),qn.add($n)}function Uv(fn){if(Ie.noEmit)return!1;const $n=hc(fn);if(M_($n))return!1;const ri=Ng(Ie);if(ri)return Rk($n,ri)||Rk($n,wg(ri)+".d.ts");if(Ie.declarationDir&&OE(Ie.declarationDir,$n,za,!ki.useCaseSensitiveFileNames()))return!0;if(Ie.outDir)return OE(Ie.outDir,$n,za,!ki.useCaseSensitiveFileNames());if(pv($n,h3)||Zb($n)){const Li=wg($n);return!!M_(Li+".ts")||!!M_(Li+".tsx")}return!1}function Rk(fn,$n){return Rv(fn,$n,za,!ki.useCaseSensitiveFileNames())===0}function Lb(){return ki.getSymlinkCache?ki.getSymlinkCache():(Et||(Et=zde(za,N1)),Yt&&!Et.hasProcessedResolutions()&&Et.setSymlinksFromResolutions(kt,qe,En),Et)}}function tse(e){let n;const i=e.compilerHost.fileExists,c=e.compilerHost.directoryExists,u=e.compilerHost.getDirectories,d=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ku,fileExists:E};e.compilerHost.fileExists=E;let h;return c&&(h=e.compilerHost.directoryExists=J=>c.call(e.compilerHost,J)?(F(J),!0):e.getResolvedProjectReferences()?(n||(n=new Set,e.forEachResolvedProjectReference(X=>{const ie=Ng(X.commandLine.options);if(ie)n.add(ws(e.toPath(ie)));else{const ae=X.commandLine.options.declarationDir||X.commandLine.options.outDir;ae&&n.add(e.toPath(ae))}})),$(J,!1)):!1),u&&(e.compilerHost.getDirectories=J=>!e.getResolvedProjectReferences()||c&&c.call(e.compilerHost,J)?u.call(e.compilerHost,J):[]),d&&(e.compilerHost.realpath=J=>{var X;return((X=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:X.get(e.toPath(J)))||d.call(e.compilerHost,J)}),{onProgramCreateComplete:S,fileExists:E,directoryExists:h};function S(){e.compilerHost.fileExists=i,e.compilerHost.directoryExists=c,e.compilerHost.getDirectories=u}function E(J){return i.call(e.compilerHost,J)?!0:!e.getResolvedProjectReferences()||!Zb(J)?!1:$(J,!0)}function P(J){const X=e.getSourceOfProjectReferenceRedirect(e.toPath(J));return X!==void 0?As(X)?i.call(e.compilerHost,X):!0:void 0}function k(J){const X=e.toPath(J),ie=`${X}${qp}`;return gA(n,ae=>X===ae||qf(ae,ie)||qf(X,`${ae}/`))}function F(J){var X;if(!e.getResolvedProjectReferences()||_3(J)||!d||!J.includes(IP))return;const ie=e.getSymlinkCache(),ae=Su(e.toPath(J));if((X=ie.getSymlinkedDirectories())!=null&&X.has(ae))return;const ve=hf(d.call(e.compilerHost,J));let we;if(ve===J||(we=Su(e.toPath(ve)))===ae){ie.setSymlinkedDirectory(ae,!1);return}ie.setSymlinkedDirectory(J,{real:Su(ve),realPath:we})}function $(J,X){var ie;const ae=X?Pe=>P(Pe):Pe=>k(Pe),ve=ae(J);if(ve!==void 0)return ve;const we=e.getSymlinkCache(),Fe=we.getSymlinkedDirectories();if(!Fe)return!1;const et=e.toPath(J);return et.includes(IP)?X&&((ie=we.getSymlinkedFiles())!=null&&ie.has(et))?!0:Ns(Fe.entries(),([Pe,dt])=>{if(!dt||!qf(et,Pe))return;const Ie=ae(et.replace(Pe,dt.realPath));if(X&&Ie){const ct=vf(J,e.compilerHost.getCurrentDirectory());we.setSymlinkedFile(et,`${dt.real}${ct.replace(new RegExp(Pe,"i"),"")}`)}return Ie})||!1:!1}}function nse(e,n,i,c){const u=e.getCompilerOptions();if(u.noEmit)return e.getSemanticDiagnostics(n,c),n||Ng(u)?Yme:e.emitBuildInfo(i,c);if(!u.noEmitOnError)return;let d=[...e.getOptionsDiagnostics(c),...e.getSyntacticDiagnostics(n,c),...e.getGlobalDiagnostics(c),...e.getSemanticDiagnostics(n,c)];if(d.length===0&&gv(e.getCompilerOptions())&&(d=e.getDeclarationDiagnostics(void 0,c)),!d.length)return;let h;if(!n&&!Ng(u)){const S=e.emitBuildInfo(i,c);S.diagnostics&&(d=[...d,...S.diagnostics]),h=S.emittedFiles}return{diagnostics:d,sourceMaps:void 0,emittedFiles:h,emitSkipped:!0}}function rse(e,n){return gi(e,i=>!i.skippedOn||!n[i.skippedOn])}function k$(e,n=e){return{fileExists:i=>n.fileExists(i),readDirectory(i,c,u,d,h){return re.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(i,c,u,d,h)},readFile:i=>n.readFile(i),directoryExists:wc(n,n.directoryExists),getDirectories:wc(n,n.getDirectories),realpath:wc(n,n.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||eE,trace:e.trace?i=>e.trace(i):void 0}}function ise(e,n,i,c){if(!e)return Yn;let u;for(let d=0;dc);for(const c of n)c.kind===11&&i.push(c);return i}function ZQ({imports:e,moduleAugmentations:n},i){if(i(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Kme||{}),ose="\x1B[7m",ase=" ",P$="\x1B[0m",eZ="...",sse=" ",cse=" ",lse={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},use={getName:vxe,getMode:(e,n)=>PA(n,e)},Xme={getName:Xae,getMode:(e,n)=>$Q(e,n==null?void 0:n.impliedNodeFormat)},gj="__inferred type names__.ts",sD=new Set([N.Cannot_redeclare_block_scoped_variable_0.code,N.A_module_cannot_have_multiple_default_exports.code,N.Another_export_default_is_here.code,N.The_first_export_default_is_here.code,N.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,N.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,N.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,N.constructor_is_a_reserved_word.code,N.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,N.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,N.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,N.Invalid_use_of_0_in_strict_mode.code,N.A_label_is_not_allowed_here.code,N.with_statements_are_not_allowed_in_strict_mode.code,N.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,N.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,N.A_class_declaration_without_the_default_modifier_must_have_a_name.code,N.A_class_member_cannot_have_the_0_keyword.code,N.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,N.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,N.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,N.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,N.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,N.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,N.A_destructuring_declaration_must_have_an_initializer.code,N.A_get_accessor_cannot_have_parameters.code,N.A_rest_element_cannot_contain_a_binding_pattern.code,N.A_rest_element_cannot_have_a_property_name.code,N.A_rest_element_cannot_have_an_initializer.code,N.A_rest_element_must_be_last_in_a_destructuring_pattern.code,N.A_rest_parameter_cannot_have_an_initializer.code,N.A_rest_parameter_must_be_last_in_a_parameter_list.code,N.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,N.A_return_statement_cannot_be_used_inside_a_class_static_block.code,N.A_set_accessor_cannot_have_rest_parameter.code,N.A_set_accessor_must_have_exactly_one_parameter.code,N.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,N.An_export_declaration_cannot_have_modifiers.code,N.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,N.An_import_declaration_cannot_have_modifiers.code,N.An_object_member_cannot_be_declared_optional.code,N.Argument_of_dynamic_import_cannot_be_spread_element.code,N.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,N.Cannot_redeclare_identifier_0_in_catch_clause.code,N.Catch_clause_variable_cannot_have_an_initializer.code,N.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,N.Classes_can_only_extend_a_single_class.code,N.Classes_may_not_have_a_field_named_constructor.code,N.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,N.Duplicate_label_0.code,N.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,N.for_await_loops_cannot_be_used_inside_a_class_static_block.code,N.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,N.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,N.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,N.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,N.Jump_target_cannot_cross_function_boundary.code,N.Line_terminator_not_permitted_before_arrow.code,N.Modifiers_cannot_appear_here.code,N.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,N.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,N.Private_identifiers_are_not_allowed_outside_class_bodies.code,N.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,N.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,N.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,N.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,N.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,N.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,N.Trailing_comma_not_allowed.code,N.Variable_declaration_list_cannot_be_empty.code,N._0_and_1_operations_cannot_be_mixed_without_parentheses.code,N._0_expected.code,N._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,N._0_list_cannot_be_empty.code,N._0_modifier_already_seen.code,N._0_modifier_cannot_appear_on_a_constructor_declaration.code,N._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,N._0_modifier_cannot_appear_on_a_parameter.code,N._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,N._0_modifier_cannot_be_used_here.code,N._0_modifier_must_precede_1_modifier.code,N._0_declarations_can_only_be_declared_inside_a_block.code,N._0_declarations_must_be_initialized.code,N.extends_clause_already_seen.code,N.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,N.Class_constructor_may_not_be_a_generator.code,N.Class_constructor_may_not_be_an_accessor.code,N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.Private_field_0_must_be_declared_in_an_enclosing_class.code,N.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),Yme={diagnostics:Yn,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),tZ=G({"src/compiler/builderStatePublic.ts"(){}});function O4e(e,n,i,c,u,d){const h=[],{emitSkipped:S,diagnostics:E}=e.emit(n,P,c,i,u,d);return{outputFiles:h,emitSkipped:S,diagnostics:E};function P(k,F,$){h.push({name:k,writeByteOrderMark:$,text:F})}}var cD,rJe=G({"src/compiler/builderState.ts"(){md(),(e=>{function n(){function Ze(Ke,st,It){const Yt={getKeys:Et=>st.get(Et),getValues:Et=>Ke.get(Et),keys:()=>Ke.keys(),deleteKey:Et=>{(It||(It=new Set)).add(Et);const at=Ke.get(Et);return at?(at.forEach(Qt=>c(st,Qt,Et)),Ke.delete(Et),!0):!1},set:(Et,at)=>{It==null||It.delete(Et);const Qt=Ke.get(Et);return Ke.set(Et,at),Qt==null||Qt.forEach(nn=>{at.has(nn)||c(st,nn,Et)}),at.forEach(nn=>{Qt!=null&&Qt.has(nn)||i(st,nn,Et)}),Yt}};return Yt}return Ze(new Map,new Map,void 0)}e.createManyToManyPathMap=n;function i(Ze,Ke,st){let It=Ze.get(Ke);It||(It=new Set,Ze.set(Ke,It)),It.add(st)}function c(Ze,Ke,st){const It=Ze.get(Ke);return It!=null&&It.delete(st)?(It.size||Ze.delete(Ke),!0):!1}function u(Ze){return Qo(Ze.declarations,Ke=>{var st;return(st=ts(Ke))==null?void 0:st.resolvedPath})}function d(Ze,Ke){const st=Ze.getSymbolAtLocation(Ke);return st&&u(st)}function h(Ze,Ke,st,It){return gm(Ze.getProjectReferenceRedirect(Ke)||Ke,st,It)}function S(Ze,Ke,st){let It;if(Ke.imports&&Ke.imports.length>0){const Qt=Ze.getTypeChecker();for(const nn of Ke.imports){const Rn=d(Qt,nn);Rn==null||Rn.forEach(at)}}const Yt=ws(Ke.resolvedPath);if(Ke.referencedFiles&&Ke.referencedFiles.length>0)for(const Qt of Ke.referencedFiles){const nn=h(Ze,Qt.fileName,Yt,st);at(nn)}if(Ze.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Qt})=>{if(!Qt)return;const nn=Qt.resolvedFileName,Rn=h(Ze,nn,Yt,st);at(Rn)},Ke),Ke.moduleAugmentations.length){const Qt=Ze.getTypeChecker();for(const nn of Ke.moduleAugmentations){if(!Sd(nn))continue;const Rn=Qt.getSymbolAtLocation(nn);Rn&&Et(Rn)}}for(const Qt of Ze.getTypeChecker().getAmbientModules())Qt.declarations&&Qt.declarations.length>1&&Et(Qt);return It;function Et(Qt){if(Qt.declarations)for(const nn of Qt.declarations){const Rn=ts(nn);Rn&&Rn!==Ke&&at(Rn.resolvedPath)}}function at(Qt){(It||(It=new Set)).add(Qt)}}function E(Ze,Ke){return Ke&&!Ke.referencedMap==!Ze}e.canReuseOldState=E;function P(Ze,Ke,st){var It,Yt,Et;const at=new Map,Qt=Ze.getCompilerOptions(),nn=Ng(Qt),Rn=Qt.module!==0&&!nn?n():void 0,cn=Rn?n():void 0,qt=E(Rn,Ke);Ze.getTypeChecker();for(const Kt of Ze.getSourceFiles()){const wr=re.checkDefined(Kt.version,"Program intended to be used with Builder should have source files with versions set"),Wr=qt?(It=Ke.oldSignatures)==null?void 0:It.get(Kt.resolvedPath):void 0,jt=Wr===void 0?qt?(Yt=Ke.fileInfos.get(Kt.resolvedPath))==null?void 0:Yt.signature:void 0:Wr||void 0;if(Rn){const En=S(Ze,Kt,Ze.getCanonicalFileName);if(En&&Rn.set(Kt.resolvedPath,En),qt){const fr=(Et=Ke.oldExportedModulesMap)==null?void 0:Et.get(Kt.resolvedPath),Tr=fr===void 0?Ke.exportedModulesMap.getValues(Kt.resolvedPath):fr||void 0;Tr&&cn.set(Kt.resolvedPath,Tr)}}at.set(Kt.resolvedPath,{version:wr,signature:jt,affectsGlobalScope:nn?void 0:Ie(Kt)||void 0,impliedFormat:Kt.impliedNodeFormat})}return{fileInfos:at,referencedMap:Rn,exportedModulesMap:cn,useFileVersionAsSignature:!st&&!qt}}e.create=P;function k(Ze){Ze.allFilesExcludingDefaultLibraryFile=void 0,Ze.allFileNames=void 0}e.releaseCache=k;function F(Ze,Ke,st,It,Yt){var Et,at;const Qt=$(Ze,Ke,st,It,Yt);return(Et=Ze.oldSignatures)==null||Et.clear(),(at=Ze.oldExportedModulesMap)==null||at.clear(),Qt}e.getFilesAffectedBy=F;function $(Ze,Ke,st,It,Yt){const Et=Ke.getSourceFileByPath(st);return Et?ie(Ze,Ke,Et,It,Yt)?(Ze.referencedMap?Lt:Ct)(Ze,Ke,Et,It,Yt):[Et]:Yn}e.getFilesAffectedByWithOldState=$;function J(Ze,Ke,st){Ze.fileInfos.get(st).signature=Ke,(Ze.hasCalledUpdateShapeSignature||(Ze.hasCalledUpdateShapeSignature=new Set)).add(st)}e.updateSignatureOfFile=J;function X(Ze,Ke,st,It,Yt){Ze.emit(Ke,(Et,at,Qt,nn,Rn,cn)=>{re.assert(Zb(Et),`File extension for signature expected to be dts: Got:: ${Et}`),Yt(nge(Ze,Ke,at,It,cn),Rn)},st,!0,void 0,!0)}e.computeDtsSignature=X;function ie(Ze,Ke,st,It,Yt,Et=Ze.useFileVersionAsSignature){var at;if((at=Ze.hasCalledUpdateShapeSignature)!=null&&at.has(st.resolvedPath))return!1;const Qt=Ze.fileInfos.get(st.resolvedPath),nn=Qt.signature;let Rn;if(!st.isDeclarationFile&&!Et&&X(Ke,st,It,Yt,(cn,qt)=>{Rn=cn,Rn!==nn&&ae(Ze,st,qt[0].exportedModulesFromDeclarationEmit)}),Rn===void 0&&(Rn=st.version,Ze.exportedModulesMap&&Rn!==nn)){(Ze.oldExportedModulesMap||(Ze.oldExportedModulesMap=new Map)).set(st.resolvedPath,Ze.exportedModulesMap.getValues(st.resolvedPath)||!1);const cn=Ze.referencedMap?Ze.referencedMap.getValues(st.resolvedPath):void 0;cn?Ze.exportedModulesMap.set(st.resolvedPath,cn):Ze.exportedModulesMap.deleteKey(st.resolvedPath)}return(Ze.oldSignatures||(Ze.oldSignatures=new Map)).set(st.resolvedPath,nn||!1),(Ze.hasCalledUpdateShapeSignature||(Ze.hasCalledUpdateShapeSignature=new Set)).add(st.resolvedPath),Qt.signature=Rn,Rn!==nn}e.updateShapeSignature=ie;function ae(Ze,Ke,st){if(!Ze.exportedModulesMap)return;(Ze.oldExportedModulesMap||(Ze.oldExportedModulesMap=new Map)).set(Ke.resolvedPath,Ze.exportedModulesMap.getValues(Ke.resolvedPath)||!1);const It=ve(st);It?Ze.exportedModulesMap.set(Ke.resolvedPath,It):Ze.exportedModulesMap.deleteKey(Ke.resolvedPath)}e.updateExportedModules=ae;function ve(Ze){let Ke;return Ze==null||Ze.forEach(st=>u(st).forEach(It=>(Ke??(Ke=new Set)).add(It))),Ke}e.getExportedModules=ve;function we(Ze,Ke,st){const It=Ke.getCompilerOptions();if(Ng(It)||!Ze.referencedMap||Ie(st))return Fe(Ze,Ke);const Yt=new Set,Et=[st.resolvedPath];for(;Et.length;){const at=Et.pop();if(!Yt.has(at)){Yt.add(at);const Qt=Ze.referencedMap.getValues(at);if(Qt)for(const nn of Qt.keys())Et.push(nn)}}return oc(p2(Yt.keys(),at=>{var Qt;return((Qt=Ke.getSourceFileByPath(at))==null?void 0:Qt.fileName)??at}))}e.getAllDependencies=we;function Fe(Ze,Ke){if(!Ze.allFileNames){const st=Ke.getSourceFiles();Ze.allFileNames=st===Yn?Yn:st.map(It=>It.fileName)}return Ze.allFileNames}function et(Ze,Ke){const st=Ze.referencedMap.getKeys(Ke);return st?oc(st.keys()):[]}e.getReferencedByPaths=et;function Pe(Ze){for(const Ke of Ze.statements)if(!rY(Ke))return!1;return!0}function dt(Ze){return gt(Ze.moduleAugmentations,Ke=>JC(Ke.parent))}function Ie(Ze){return dt(Ze)||!aE(Ze)&&!Rx(Ze)&&!Pe(Ze)}function ct(Ze,Ke,st){if(Ze.allFilesExcludingDefaultLibraryFile)return Ze.allFilesExcludingDefaultLibraryFile;let It;st&&Yt(st);for(const Et of Ke.getSourceFiles())Et!==st&&Yt(Et);return Ze.allFilesExcludingDefaultLibraryFile=It||Yn,Ze.allFilesExcludingDefaultLibraryFile;function Yt(Et){Ke.isSourceFileDefaultLibrary(Et)||(It||(It=[])).push(Et)}}e.getAllFilesExcludingDefaultLibraryFile=ct;function Ct(Ze,Ke,st){const It=Ke.getCompilerOptions();return It&&Ng(It)?[st]:ct(Ze,Ke,st)}function Lt(Ze,Ke,st,It,Yt){if(Ie(st))return ct(Ze,Ke,st);const Et=Ke.getCompilerOptions();if(Et&&(F0(Et)||Ng(Et)))return[st];const at=new Map;at.set(st.resolvedPath,st);const Qt=et(Ze,st.resolvedPath);for(;Qt.length>0;){const nn=Qt.pop();if(!at.has(nn)){const Rn=Ke.getSourceFileByPath(nn);at.set(nn,Rn),Rn&&ie(Ze,Ke,Rn,It,Yt)&&Qt.push(...et(Ze,Rn.resolvedPath))}}return oc(p2(at.values(),nn=>nn))}})(cD||(cD={}))}});function P6(e){let n=1;return e.sourceMap&&(n=n|2),e.inlineSourceMap&&(n=n|4),gv(e)&&(n=n|8),e.declarationMap&&(n=n|16),e.emitDeclarationOnly&&(n=n&24),n}function N$(e,n){const i=n&&(U1(n)?n:P6(n)),c=U1(e)?e:P6(e);if(i===c)return 0;if(!i||!c)return c;const u=i^c;let d=0;return u&7&&(d=c&7),u&24&&(d=d|c&24),d}function F4e(e,n){return e===n||e!==void 0&&n!==void 0&&e.size===n.size&&!gA(e,i=>!n.has(i))}function iJe(e,n){var i,c;const u=cD.create(e,n,!1);u.program=e;const d=e.getCompilerOptions();u.compilerOptions=d;const h=Ng(d);h?d.composite&&(n!=null&&n.outSignature)&&h===Ng(n==null?void 0:n.compilerOptions)&&(u.outSignature=n.outSignature&&W4e(d,n.compilerOptions,n.outSignature)):u.semanticDiagnosticsPerFile=new Map,u.changedFilesSet=new Set,u.latestChangedDtsFile=d.composite?n==null?void 0:n.latestChangedDtsFile:void 0;const S=cD.canReuseOldState(u.referencedMap,n),E=S?n.compilerOptions:void 0,P=S&&n.semanticDiagnosticsPerFile&&!!u.semanticDiagnosticsPerFile&&!GSe(d,E),k=d.composite&&(n==null?void 0:n.emitSignatures)&&!h&&!VSe(d,n.compilerOptions);S?((i=n.changedFilesSet)==null||i.forEach(ie=>u.changedFilesSet.add(ie)),!h&&((c=n.affectedFilesPendingEmit)!=null&&c.size)&&(u.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),u.seenAffectedFiles=new Set),u.programEmitPending=n.programEmitPending):u.buildInfoEmitPending=!0;const F=u.referencedMap,$=S?n.referencedMap:void 0,J=P&&!d.skipLibCheck==!E.skipLibCheck,X=J&&!d.skipDefaultLibCheck==!E.skipDefaultLibCheck;if(u.fileInfos.forEach((ie,ae)=>{let ve,we;if(!S||!(ve=n.fileInfos.get(ae))||ve.version!==ie.version||ve.impliedFormat!==ie.impliedFormat||!F4e(we=F&&F.getValues(ae),$&&$.getValues(ae))||we&&gA(we,Fe=>!u.fileInfos.has(Fe)&&n.fileInfos.has(Fe)))oJe(u,ae);else if(P){const Fe=e.getSourceFileByPath(ae);if(Fe.isDeclarationFile&&!J||Fe.hasNoDefaultLib&&!X)return;const et=n.semanticDiagnosticsPerFile.get(ae);et&&(u.semanticDiagnosticsPerFile.set(ae,n.hasReusableDiagnostic?sJe(et,e):Pct(et,e)),u.semanticDiagnosticsFromOldState||(u.semanticDiagnosticsFromOldState=new Set),u.semanticDiagnosticsFromOldState.add(ae))}if(k){const Fe=n.emitSignatures.get(ae);Fe&&(u.emitSignatures??(u.emitSignatures=new Map)).set(ae,W4e(d,n.compilerOptions,Fe))}}),S&&Jb(n.fileInfos,(ie,ae)=>u.fileInfos.has(ae)?!1:h||ie.affectsGlobalScope?!0:(u.buildInfoEmitPending=!0,!1)))cD.getAllFilesExcludingDefaultLibraryFile(u,e,void 0).forEach(ie=>oJe(u,ie.resolvedPath));else if(E){const ie=jSe(d,E)?P6(d):N$(d,E);ie!==0&&(h?u.programEmitPending=u.programEmitPending?u.programEmitPending|ie:ie:(e.getSourceFiles().forEach(ae=>{u.changedFilesSet.has(ae.resolvedPath)||ige(u,ae.resolvedPath,ie)}),re.assert(!u.seenAffectedFiles||!u.seenAffectedFiles.size),u.seenAffectedFiles=u.seenAffectedFiles||new Set,u.buildInfoEmitPending=!0))}return h&&!u.changedFilesSet.size&&(S&&(u.bundle=n.bundle),gt(e.getProjectReferences(),ie=>!!ie.prepend)&&(u.programEmitPending=P6(d))),u}function oJe(e,n){e.changedFilesSet.add(n),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function W4e(e,n,i){return!!e.declarationMap==!!n.declarationMap?i:As(i)?[i]:i[0]}function Pct(e,n){return e.length?Ol(e,i=>{if(As(i.messageText))return i;const c=B4e(i.messageText,i.file,n,u=>{var d;return(d=u.repopulateInfo)==null?void 0:d.call(u)});return c===i.messageText?i:{...i,messageText:c}}):e}function B4e(e,n,i,c){const u=c(e);if(u)return{...KU(n,i,u.moduleReference,u.mode,u.packageName||u.moduleReference),next:aJe(e.next,n,i,c)};const d=aJe(e.next,n,i,c);return d===e.next?e:{...e,next:d}}function aJe(e,n,i,c){return Ol(e,u=>B4e(u,n,i,c))}function sJe(e,n){if(!e.length)return Yn;let i;return e.map(u=>{const d=z4e(u,n,c);d.reportsUnnecessary=u.reportsUnnecessary,d.reportsDeprecated=u.reportDeprecated,d.source=u.source,d.skippedOn=u.skippedOn;const{relatedInformation:h}=u;return d.relatedInformation=h?h.length?h.map(S=>z4e(S,n,c)):[]:void 0,d});function c(u){return i??(i=ws(vf(PR(n.getCompilerOptions()),n.getCurrentDirectory()))),gm(u,i,n.getCanonicalFileName)}}function z4e(e,n,i){const{file:c}=e,u=c?n.getSourceFileByPath(i(c)):void 0;return{...e,file:u,messageText:As(e.messageText)?e.messageText:B4e(e.messageText,u,n,d=>d.info)}}function Nct(e){cD.releaseCache(e),e.program=void 0}function wct(e){const n=Ng(e.compilerOptions);return re.assert(!e.changedFilesSet.size||n),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:n?new Set(e.changedFilesSet):void 0}}function cJe(e,n){e.affectedFilesPendingEmit=n.affectedFilesPendingEmit,e.seenEmittedFiles=n.seenEmittedFiles,e.programEmitPending=n.programEmitPending,e.emitSignatures=n.emitSignatures,e.outSignature=n.outSignature,e.latestChangedDtsFile=n.latestChangedDtsFile,e.hasChangedEmitSignature=n.hasChangedEmitSignature,n.changedFilesSet&&(e.changedFilesSet=n.changedFilesSet)}function lJe(e,n){re.assert(!n||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==n||!e.semanticDiagnosticsPerFile.has(n.resolvedPath))}function Qme(e,n,i){for(var c,u;;){const{affectedFiles:d}=e;if(d){const P=e.seenAffectedFiles;let k=e.affectedFilesIndex;for(;k{const d=c&7;d?e.affectedFilesPendingEmit.set(u,d):e.affectedFilesPendingEmit.delete(u)})}}function uJe(e,n){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Jb(e.affectedFilesPendingEmit,(c,u)=>{var d;const h=e.program.getSourceFileByPath(u);if(!h||!HL(h,e.program)){e.affectedFilesPendingEmit.delete(u);return}const S=(d=e.seenEmittedFiles)==null?void 0:d.get(h.resolvedPath);let E=N$(c,S);if(n&&(E=E&24),E)return{affectedFile:h,emitKind:E}})}function xxe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const n=re.checkDefined(e.program),i=n.getCompilerOptions();Ot(n.getSourceFiles(),c=>n.isSourceFileDefaultLibrary(c)&&!c3(c,i,n)&&ege(e,c.resolvedPath))}}function Rct(e,n,i,c){if(ege(e,n.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){xxe(e),cD.updateShapeSignature(e,re.checkDefined(e.program),n,i,c);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Mct(e,n,i,c)}function Zme(e,n,i,c){if(ege(e,n),!e.changedFilesSet.has(n)){const u=re.checkDefined(e.program),d=u.getSourceFileByPath(n);d&&(cD.updateShapeSignature(e,u,d,i,c,!0),gv(e.compilerOptions)&&ige(e,n,e.compilerOptions.declarationMap?24:8))}}function ege(e,n){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size):!0}function fJe(e,n){const i=re.checkDefined(e.oldSignatures).get(n)||void 0;return re.checkDefined(e.fileInfos.get(n)).signature!==i}function Axe(e,n,i,c){var u;return(u=e.fileInfos.get(n))!=null&&u.affectsGlobalScope?(cD.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(d=>Zme(e,d.resolvedPath,i,c)),xxe(e),!0):!1}function Mct(e,n,i,c){var u;if(!e.exportedModulesMap||!e.changedFilesSet.has(n.resolvedPath)||!fJe(e,n.resolvedPath))return;if(F0(e.compilerOptions)){const h=new Map;h.set(n.resolvedPath,!0);const S=cD.getReferencedByPaths(e,n.resolvedPath);for(;S.length>0;){const E=S.pop();if(!h.has(E)){if(h.set(E,!0),Axe(e,E,i,c))return;if(Zme(e,E,i,c),fJe(e,E)){const P=re.checkDefined(e.program).getSourceFileByPath(E);S.push(...cD.getReferencedByPaths(e,P.resolvedPath))}}}}const d=new Set;(u=e.exportedModulesMap.getKeys(n.resolvedPath))==null||u.forEach(h=>{if(Axe(e,h,i,c))return!0;const S=e.referencedMap.getKeys(h);return S&&gA(S,E=>_Je(e,E,d,i,c))})}function _Je(e,n,i,c,u){var d,h;if(m2(i,n)){if(Axe(e,n,c,u))return!0;Zme(e,n,c,u),(d=e.exportedModulesMap.getKeys(n))==null||d.forEach(S=>_Je(e,S,i,c,u)),(h=e.referencedMap.getKeys(n))==null||h.forEach(S=>!i.has(S)&&Zme(e,S,c,u))}}function j4e(e,n,i){return Hi(dJe(e,n,i),re.checkDefined(e.program).getProgramDiagnostics(n))}function dJe(e,n,i){const c=n.resolvedPath;if(e.semanticDiagnosticsPerFile){const d=e.semanticDiagnosticsPerFile.get(c);if(d)return rse(d,e.compilerOptions)}const u=re.checkDefined(e.program).getBindAndCheckDiagnostics(n,i);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(c,u),rse(u,e.compilerOptions)}function tge(e){return!!Ng(e.options||{})}function pJe(e,n){var i,c,u;const d=re.checkDefined(e.program).getCurrentDirectory(),h=ws(vf(PR(e.compilerOptions),d)),S=e.latestChangedDtsFile?Pe(e.latestChangedDtsFile):void 0,E=[],P=new Map,k=[];if(Ng(e.compilerOptions)){const Ze=oc(e.fileInfos.entries(),([at,Qt])=>{const nn=Ie(at);return Ct(at,nn),Qt.impliedFormat?{version:Qt.version,impliedFormat:Qt.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Qt.version}),Ke={fileNames:E,fileInfos:Ze,root:k,options:Lt(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:S,pendingEmit:e.programEmitPending?e.programEmitPending===P6(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:st,dts:It,commonSourceDirectory:Yt,sourceFiles:Et}=n;return e.bundle=n={commonSourceDirectory:Yt,sourceFiles:Et,js:st||(e.compilerOptions.emitDeclarationOnly||(i=e.bundle)==null?void 0:i.js),dts:It||(gv(e.compilerOptions)?(c=e.bundle)==null?void 0:c.dts:void 0)},Hae(Ke,n)}let F,$,J;const X=oc(e.fileInfos.entries(),([Ze,Ke])=>{var st,It;const Yt=Ie(Ze);Ct(Ze,Yt),re.assert(E[Yt-1]===dt(Ze));const Et=(st=e.oldSignatures)==null?void 0:st.get(Ze),at=Et!==void 0?Et||void 0:Ke.signature;if(e.compilerOptions.composite){const Qt=e.program.getSourceFileByPath(Ze);if(!Rx(Qt)&&HL(Qt,e.program)){const nn=(It=e.emitSignatures)==null?void 0:It.get(Ze);nn!==at&&(J||(J=[])).push(nn===void 0?Yt:[Yt,!As(nn)&&nn[0]===at?Yn:nn])}}return Ke.version===at?Ke.affectsGlobalScope||Ke.impliedFormat?{version:Ke.version,signature:void 0,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}:Ke.version:at!==void 0?Et===void 0?Ke:{version:Ke.version,signature:at,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}:{version:Ke.version,signature:!1,affectsGlobalScope:Ke.affectsGlobalScope,impliedFormat:Ke.impliedFormat}});let ie;e.referencedMap&&(ie=oc(e.referencedMap.keys()).sort(Fp).map(Ze=>[Ie(Ze),ct(e.referencedMap.getValues(Ze))]));let ae;e.exportedModulesMap&&(ae=Qo(oc(e.exportedModulesMap.keys()).sort(Fp),Ze=>{var Ke;const st=(Ke=e.oldExportedModulesMap)==null?void 0:Ke.get(Ze);if(st===void 0)return[Ie(Ze),ct(e.exportedModulesMap.getValues(Ze))];if(st)return[Ie(Ze),ct(st)]}));let ve;if(e.semanticDiagnosticsPerFile)for(const Ze of oc(e.semanticDiagnosticsPerFile.keys()).sort(Fp)){const Ke=e.semanticDiagnosticsPerFile.get(Ze);(ve||(ve=[])).push(Ke.length?[Ie(Ze),mJe(Ke,dt)]:Ie(Ze))}let we;if((u=e.affectedFilesPendingEmit)!=null&&u.size){const Ze=P6(e.compilerOptions),Ke=new Set;for(const st of oc(e.affectedFilesPendingEmit.keys()).sort(Fp))if(m2(Ke,st)){const It=e.program.getSourceFileByPath(st);if(!It||!HL(It,e.program))continue;const Yt=Ie(st),Et=e.affectedFilesPendingEmit.get(st);(we||(we=[])).push(Et===Ze?Yt:Et===8?[Yt]:[Yt,Et])}}let Fe;if(e.changedFilesSet.size)for(const Ze of oc(e.changedFilesSet.keys()).sort(Fp))(Fe||(Fe=[])).push(Ie(Ze));const et={fileNames:E,fileInfos:X,root:k,options:Lt(e.compilerOptions),fileIdsList:F,referencedMap:ie,exportedModulesMap:ae,semanticDiagnosticsPerFile:ve,affectedFilesPendingEmit:we,changeFileSet:Fe,emitSignatures:J,latestChangedDtsFile:S};return Hae(et,n);function Pe(Ze){return dt(vf(Ze,d))}function dt(Ze){return Fd(sP(h,Ze,e.program.getCanonicalFileName))}function Ie(Ze){let Ke=P.get(Ze);return Ke===void 0&&(E.push(dt(Ze)),P.set(Ze,Ke=E.length)),Ke}function ct(Ze){const Ke=oc(Ze.keys(),Ie).sort(pf),st=Ke.join();let It=$==null?void 0:$.get(st);return It===void 0&&((F||(F=[])).push(Ke),($||($=new Map)).set(st,It=F.length)),It}function Ct(Ze,Ke){const st=e.program.getSourceFile(Ze);if(!e.program.getFileIncludeReasons().get(st.path).some(at=>at.kind===0))return;if(!k.length)return k.push(Ke);const It=k[k.length-1],Yt=ls(It);if(Yt&&It[1]===Ke-1)return It[1]=Ke;if(Yt||k.length===1||It!==Ke-1)return k.push(Ke);const Et=k[k.length-2];return!U1(Et)||Et!==It-1?k.push(Ke):(k[k.length-2]=[Et,Ke],k.length=k.length-1)}function Lt(Ze){let Ke;const{optionsNameMap:st}=HG();for(const It of ET(Ze).sort(Fp)){const Yt=st.get(It.toLowerCase());Yt!=null&&Yt.affectsBuildInfo&&((Ke||(Ke={}))[It]=Cxe(Yt,Ze[It],Pe))}return Ke}}function Cxe(e,n,i){if(e){if(re.assert(e.type!=="listOrElement"),e.type==="list"){const c=n;if(e.element.isFilePath&&c.length)return c.map(i)}else if(e.isFilePath)return i(n)}return n}function mJe(e,n){return re.assert(!!e.length),e.map(i=>{const c=Dxe(i,n);c.reportsUnnecessary=i.reportsUnnecessary,c.reportDeprecated=i.reportsDeprecated,c.source=i.source,c.skippedOn=i.skippedOn;const{relatedInformation:u}=i;return c.relatedInformation=u?u.length?u.map(d=>Dxe(d,n)):[]:void 0,c})}function Dxe(e,n){const{file:i}=e;return{...e,file:i?n(i.resolvedPath):void 0,messageText:As(e.messageText)?e.messageText:bF(e.messageText)}}function bF(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:Ixe(e.next)};const n=Ixe(e.next);return n===e.next?e:{...e,next:n}}function Ixe(e){return e&&(Ot(e,(n,i)=>{const c=bF(n);if(n===c)return;const u=i>0?e.slice(0,i-1):[];u.push(c);for(let d=i+1;d`${E(P)}${Nz[P.category]}${P.code}: ${S(P.messageText)}`).join(` +`)),(c.createHash??Mz)(i);function S(P){return As(P)?P:P===void 0?"":P.next?P.messageText+P.next.map(S).join(` +`):P.messageText}function E(P){return P.file.resolvedPath===n.resolvedPath?`(${P.start},${P.length})`:(h===void 0&&(h=ws(n.resolvedPath)),`${Fd(sP(h,P.file.resolvedPath,e.getCanonicalFileName))}(${P.start},${P.length})`)}}function TF(e,n,i){return(n.createHash??Mz)(V4e(e,i))}function rge(e,{newProgram:n,host:i,oldProgram:c,configFileParsingDiagnostics:u}){let d=c&&c.getState();if(d&&n===d.program&&u===n.getConfigFileParsingDiagnostics())return n=void 0,d=void 0,c;const h=iJe(n,d);n.getBuildInfo=ie=>pJe(h,ie),n=void 0,c=void 0,d=void 0;const S=()=>h,E=fse(S,u);return E.getState=S,E.saveEmitState=()=>wct(h),E.restoreEmitState=ie=>cJe(h,ie),E.hasChangedEmitSignature=()=>!!h.hasChangedEmitSignature,E.getAllDependencies=ie=>cD.getAllDependencies(h,re.checkDefined(h.program),ie),E.getSemanticDiagnostics=X,E.emit=$,E.releaseProgram=()=>Nct(h),e===0?E.getSemanticDiagnosticsOfNextAffectedFile=J:e===1?(E.getSemanticDiagnosticsOfNextAffectedFile=J,E.emitNextAffectedFile=k,E.emitBuildInfo=P):Na(),E;function P(ie,ae){if(h.buildInfoEmitPending){const ve=re.checkDefined(h.program).emitBuildInfo(ie||wc(i,i.writeFile),ae);return h.buildInfoEmitPending=!1,ve}return Yme}function k(ie,ae,ve,we){var Fe,et,Pe;let dt=Qme(h,ae,i);const Ie=P6(h.compilerOptions);let ct=ve?Ie&24:Ie;if(!dt)if(Ng(h.compilerOptions)){if(!h.programEmitPending||(ct=h.programEmitPending,ve&&(ct=ct&24),!ct))return;dt=h.program}else{const Ze=uJe(h,ve);if(!Ze){if(!h.buildInfoEmitPending)return;const Ke=h.program,st=Ke.emitBuildInfo(ie||wc(i,i.writeFile),ae);return h.buildInfoEmitPending=!1,{result:st,affected:Ke}}({affectedFile:dt,emitKind:ct}=Ze)}let Ct;ct&7&&(Ct=0),ct&24&&(Ct=Ct===void 0?1:void 0),dt===h.program&&(h.programEmitPending=h.changedFilesSet.size?N$(Ie,ct):h.programEmitPending?N$(h.programEmitPending,ct):void 0);const Lt=h.program.emit(dt===h.program?void 0:dt,F(ie,we),ae,Ct,we);if(dt!==h.program){const Ze=dt;h.seenAffectedFiles.add(Ze.resolvedPath),h.affectedFilesIndex!==void 0&&h.affectedFilesIndex++,h.buildInfoEmitPending=!0;const Ke=((Fe=h.seenEmittedFiles)==null?void 0:Fe.get(Ze.resolvedPath))||0;(h.seenEmittedFiles??(h.seenEmittedFiles=new Map)).set(Ze.resolvedPath,ct|Ke);const st=((et=h.affectedFilesPendingEmit)==null?void 0:et.get(Ze.resolvedPath))||Ie,It=N$(st,ct|Ke);It?(h.affectedFilesPendingEmit??(h.affectedFilesPendingEmit=new Map)).set(Ze.resolvedPath,It):(Pe=h.affectedFilesPendingEmit)==null||Pe.delete(Ze.resolvedPath)}else h.changedFilesSet.clear();return{result:Lt,affected:dt}}function F(ie,ae){return gv(h.compilerOptions)?(ve,we,Fe,et,Pe,dt)=>{var Ie,ct,Ct,Lt;if(Zb(ve))if(Ng(h.compilerOptions)){if(h.compilerOptions.composite){const Ke=Ze(h.outSignature,void 0);if(!Ke)return;h.outSignature=Ke}}else{re.assert((Pe==null?void 0:Pe.length)===1);let Ke;if(!ae){const st=Pe[0],It=h.fileInfos.get(st.resolvedPath);if(It.signature===st.version){const Yt=nge(h.program,st,we,i,dt);(Ie=dt==null?void 0:dt.diagnostics)!=null&&Ie.length||(Ke=Yt),Yt!==st.version&&(i.storeFilesChangingSignatureDuringEmit&&(h.filesChangingSignature??(h.filesChangingSignature=new Set)).add(st.resolvedPath),h.exportedModulesMap&&cD.updateExportedModules(h,st,st.exportedModulesFromDeclarationEmit),h.affectedFiles?(((ct=h.oldSignatures)==null?void 0:ct.get(st.resolvedPath))===void 0&&(h.oldSignatures??(h.oldSignatures=new Map)).set(st.resolvedPath,It.signature||!1),It.signature=Yt):(It.signature=Yt,(Ct=h.oldExportedModulesMap)==null||Ct.clear()))}}if(h.compilerOptions.composite){const st=Pe[0].resolvedPath;if(Ke=Ze((Lt=h.emitSignatures)==null?void 0:Lt.get(st),Ke),!Ke)return;(h.emitSignatures??(h.emitSignatures=new Map)).set(st,Ke)}}ie?ie(ve,we,Fe,et,Pe,dt):i.writeFile?i.writeFile(ve,we,Fe,et,Pe,dt):h.program.writeFile(ve,we,Fe,et,Pe,dt);function Ze(Ke,st){const It=!Ke||As(Ke)?Ke:Ke[0];if(st??(st=TF(we,i,dt)),st===It){if(Ke===It)return;dt?dt.differsOnlyInMap=!0:dt={differsOnlyInMap:!0}}else h.hasChangedEmitSignature=!0,h.latestChangedDtsFile=ve;return st}}:ie||wc(i,i.writeFile)}function $(ie,ae,ve,we,Fe){e===1&&lJe(h,ie);const et=nse(E,ie,ae,ve);if(et)return et;if(!ie)if(e===1){let Pe=[],dt=!1,Ie,ct=[],Ct;for(;Ct=k(ae,ve,we,Fe);)dt=dt||Ct.result.emitSkipped,Ie=Oi(Ie,Ct.result.diagnostics),ct=Oi(ct,Ct.result.emittedFiles),Pe=Oi(Pe,Ct.result.sourceMaps);return{emitSkipped:dt,diagnostics:Ie||Yn,emittedFiles:ct,sourceMaps:Pe}}else G4e(h,we);return re.checkDefined(h.program).emit(ie,F(ae,Fe),ve,we,Fe)}function J(ie,ae){for(;;){const ve=Qme(h,ie,i);let we;if(ve)if(ve!==h.program){const Fe=ve;if((!ae||!ae(Fe))&&(we=j4e(h,Fe,ie)),h.seenAffectedFiles.add(Fe.resolvedPath),h.affectedFilesIndex++,h.buildInfoEmitPending=!0,!we)continue}else we=h.program.getSemanticDiagnostics(void 0,ie),h.changedFilesSet.clear(),h.programEmitPending=P6(h.compilerOptions);else return;return{result:we,affected:ve}}}function X(ie,ae){lJe(h,ie);const ve=re.checkDefined(h.program).getCompilerOptions();if(Ng(ve))return re.assert(!h.semanticDiagnosticsPerFile),re.checkDefined(h.program).getSemanticDiagnostics(ie,ae);if(ie)return j4e(h,ie,ae);for(;J(ae););let we;for(const Fe of re.checkDefined(h.program).getSourceFiles())we=Oi(we,j4e(h,Fe,ae));return we||Yn}}function ige(e,n,i){var c;const u=((c=e.affectedFilesPendingEmit)==null?void 0:c.get(n))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(n,u|i)}function oge(e){return As(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:As(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function age(e,n){return U1(e)?n:e[1]||8}function sge(e,n){return e||P6(n||{})}function U4e(e,n,i){var c,u,d,h;const S=e.program,E=ws(vf(n,i.getCurrentDirectory())),P=H1(i.useCaseSensitiveFileNames());let k;const F=(c=S.fileNames)==null?void 0:c.map(X);let $;const J=S.latestChangedDtsFile?ie(S.latestChangedDtsFile):void 0;if(tge(S)){const Fe=new Map;S.fileInfos.forEach((et,Pe)=>{const dt=ae(Pe+1);Fe.set(dt,As(et)?{version:et,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:et)}),k={fileInfos:Fe,compilerOptions:S.options?$G(S.options,ie):{},latestChangedDtsFile:J,outSignature:S.outSignature,programEmitPending:S.pendingEmit===void 0?void 0:sge(S.pendingEmit,S.options),bundle:e.bundle}}else{$=(u=S.fileIdsList)==null?void 0:u.map(dt=>new Set(dt.map(ae)));const Fe=new Map,et=(d=S.options)!=null&&d.composite&&!Ng(S.options)?new Map:void 0;S.fileInfos.forEach((dt,Ie)=>{const ct=ae(Ie+1),Ct=oge(dt);Fe.set(ct,Ct),et&&Ct.signature&&et.set(ct,Ct.signature)}),(h=S.emitSignatures)==null||h.forEach(dt=>{if(U1(dt))et.delete(ae(dt));else{const Ie=ae(dt[0]);et.set(Ie,!As(dt[1])&&!dt[1].length?[et.get(Ie)]:dt[1])}});const Pe=S.affectedFilesPendingEmit?P6(S.options||{}):void 0;k={fileInfos:Fe,compilerOptions:S.options?$G(S.options,ie):{},referencedMap:we(S.referencedMap),exportedModulesMap:we(S.exportedModulesMap),semanticDiagnosticsPerFile:S.semanticDiagnosticsPerFile&&QT(S.semanticDiagnosticsPerFile,dt=>ae(U1(dt)?dt:dt[0]),dt=>U1(dt)?Yn:dt[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:S.affectedFilesPendingEmit&&QT(S.affectedFilesPendingEmit,dt=>ae(U1(dt)?dt:dt[0]),dt=>age(dt,Pe)),changedFilesSet:new Set(Vn(S.changeFileSet,ae)),latestChangedDtsFile:J,emitSignatures:et!=null&&et.size?et:void 0}}return{getState:()=>k,saveEmitState:ku,restoreEmitState:ku,getProgram:Na,getProgramOrUndefined:eE,releaseProgram:ku,getCompilerOptions:()=>k.compilerOptions,getSourceFile:Na,getSourceFiles:Na,getOptionsDiagnostics:Na,getGlobalDiagnostics:Na,getConfigFileParsingDiagnostics:Na,getSyntacticDiagnostics:Na,getDeclarationDiagnostics:Na,getSemanticDiagnostics:Na,emit:Na,getAllDependencies:Na,getCurrentDirectory:Na,emitNextAffectedFile:Na,getSemanticDiagnosticsOfNextAffectedFile:Na,emitBuildInfo:Na,close:ku,hasChangedEmitSignature:bg};function X(Fe){return gm(Fe,E,P)}function ie(Fe){return vf(Fe,E)}function ae(Fe){return F[Fe-1]}function ve(Fe){return $[Fe-1]}function we(Fe){if(!Fe)return;const et=cD.createManyToManyPathMap();return Fe.forEach(([Pe,dt])=>et.set(ae(Pe),ve(dt))),et}}function kxe(e,n,i){const c=ws(vf(n,i.getCurrentDirectory())),u=H1(i.useCaseSensitiveFileNames()),d=new Map;let h=0;const S=[];return e.fileInfos.forEach((E,P)=>{const k=gm(e.fileNames[P],c,u),F=As(E)?E:E.version;if(d.set(k,F),he().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:c=>i().getSourceFile(c),getSourceFiles:()=>i().getSourceFiles(),getOptionsDiagnostics:c=>i().getOptionsDiagnostics(c),getGlobalDiagnostics:c=>i().getGlobalDiagnostics(c),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(c,u)=>i().getSyntacticDiagnostics(c,u),getDeclarationDiagnostics:(c,u)=>i().getDeclarationDiagnostics(c,u),getSemanticDiagnostics:(c,u)=>i().getSemanticDiagnostics(c,u),emit:(c,u,d,h,S)=>i().emit(c,u,d,h,S),emitBuildInfo:(c,u)=>i().emitBuildInfo(c,u),getAllDependencies:Na,getCurrentDirectory:()=>i().getCurrentDirectory(),close:ku};function i(){return re.checkDefined(e().program)}}var Pxe,Nxe,H4e=G({"src/compiler/builder.ts"(){md(),Pxe=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Pxe||{}),Nxe=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Nxe||{})}});function wxe(e,n,i,c,u,d){return rge(0,nZ(e,n,i,c,u,d))}function cge(e,n,i,c,u,d){return rge(1,nZ(e,n,i,c,u,d))}function J4e(e,n,i,c,u,d){const{newProgram:h,configFileParsingDiagnostics:S}=nZ(e,n,i,c,u,d);return fse(()=>({program:h,compilerOptions:h.getCompilerOptions()}),S)}var gJe=G({"src/compiler/builderPublic.ts"(){md()}});function _se(e){return h_(e,"/node_modules/.staging")?DM(e,"/.staging"):gt(NU,n=>e.includes(n))?void 0:e}function Rxe(e,n){if(n<=1)return 1;let i=1,c=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==qp&&!c&&e[1].search(/[a-zA-Z]\$$/)===0){if(n===2)return 2;i=2,c=!0}return c&&!e[i].match(/^users$/i)?i:e[i].match(/^workspaces$/i)?i+1:i+2}function rZ(e,n){if(n===void 0&&(n=e.length),n<=2)return!1;const i=Rxe(e,n);return n>i+1}function Mxe(e){return $4e(ws(e))}function Lxe(e,n){if(n.lengthu.length+1?K4e(S,h,Math.max(u.length+1,E+1)):{dir:i,dirPath:c,nonRecursive:!0}:q4e(S,h,h.length-1,E,P,u)}function q4e(e,n,i,c,u,d){if(u!==-1)return K4e(e,n,u+1);let h=!0,S=i;for(let E=0;EhJe(c,u,d,e,i,n,h)}}function hJe(e,n,i,c,u,d,h){const S=lge(e),E=ZG(i,c,u,S,n,d,h);if(!e.getGlobalCache)return E;const P=e.getGlobalCache();if(P!==void 0&&!Kv(i)&&!(E.resolvedModule&&KH(E.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:F,affectingLocations:$,resolutionDiagnostics:J}=P2e(re.checkDefined(e.globalCacheResolutionModuleName)(i),e.projectName,u,S,P,n);if(k)return E.resolvedModule=k,E.failedLookupLocations=l$(E.failedLookupLocations,F),E.affectingLocations=l$(E.affectingLocations,$),E.resolutionDiagnostics=l$(E.resolutionDiagnostics,J),E}return E}function Wxe(e,n,i){let c,u,d;const h=zg(),S=new Set,E=new Set,P=new Map,k=new Map;let F=!1,$,J,X,ie,ae,ve=!1;const we=Pd(()=>e.getCurrentDirectory()),Fe=e.getCachedDirectoryStructureHost(),et=new Map,Pe=a4(we(),e.getCanonicalFileName,e.getCompilationSettings()),dt=new Map,Ie=sae(we(),e.getCanonicalFileName,e.getCompilationSettings(),Pe.getPackageJsonInfoCache(),Pe.optionsToRedirectsKey),ct=new Map,Ct=a4(we(),e.getCanonicalFileName,E2e(e.getCompilationSettings()),Pe.getPackageJsonInfoCache()),Lt=new Map,Ze=new Map,Ke=iZ(n,we),st=e.toPath(Ke),It=qc(st),Yt=new Map;return{rootDirForResolution:n,resolvedModuleNames:et,resolvedTypeReferenceDirectives:dt,resolvedLibraries:ct,resolvedFileToResolution:P,resolutionsWithFailedLookups:S,resolutionsWithOnlyAffectingLocations:E,directoryWatchesOfFailedLookups:Lt,fileWatchesOfAffectingLocations:Ze,watchFailedLookupLocationsOfExternalModuleResolutions:no,getModuleResolutionCache:()=>Pe,startRecordingFilesWithChangedResolutions:Rn,finishRecordingFilesWithChangedResolutions:cn,startCachingPerDirectoryResolution:wr,finishCachingPerDirectoryResolution:jt,resolveModuleNameLiterals:Pn,resolveTypeReferenceDirectiveReferences:Vr,resolveLibrary:Fr,resolveSingleModuleNameWithoutWatching:Ki,removeResolutionsFromProjectReferenceRedirects:na,removeResolutionsOfFile:_a,hasChangedAutomaticTypeDirectiveNames:()=>F,invalidateResolutionOfFile:Au,invalidateResolutionsOfFailedLookupLocations:w_,setFilesWithInvalidatedNonRelativeUnresolvedImports:Qu,createHasInvalidatedResolutions:Kt,isFileWithInvalidatedNonRelativeUnresolvedImports:qt,updateTypeRootsWatch:Pr,closeTypeRootsWatch:dr,clear:Qt,onChangesAffectModuleResolution:nn};function Et(ln){return ln.resolvedModule}function at(ln){return ln.resolvedTypeReferenceDirective}function Qt(){Mh(Lt,YE),Mh(Ze,YE),h.clear(),dr(),et.clear(),dt.clear(),P.clear(),S.clear(),E.clear(),X=void 0,ie=void 0,ae=void 0,J=void 0,$=void 0,ve=!1,Pe.clear(),Ie.clear(),Pe.update(e.getCompilationSettings()),Ie.update(e.getCompilationSettings()),Ct.clear(),k.clear(),ct.clear(),F=!1}function nn(){ve=!0,Pe.clearAllExceptPackageJsonInfoCache(),Ie.clearAllExceptPackageJsonInfoCache(),Pe.update(e.getCompilationSettings()),Ie.update(e.getCompilationSettings())}function Rn(){c=[]}function cn(){const ln=c;return c=void 0,ln}function qt(ln){if(!d)return!1;const Wn=d.get(ln);return!!Wn&&!!Wn.length}function Kt(ln,Wn){w_();const $r=u;return u=void 0,{hasInvalidatedResolutions:Ge=>ln(Ge)||ve||!!($r!=null&&$r.has(Ge))||qt(Ge),hasInvalidatedLibResolutions:Ge=>{var Br;return Wn(Ge)||!!((Br=ct==null?void 0:ct.get(Ge))!=null&&Br.isInvalidated)}}}function wr(){Pe.isReadonly=void 0,Ie.isReadonly=void 0,Ct.isReadonly=void 0,Pe.getPackageJsonInfoCache().isReadonly=void 0,Pe.clearAllExceptPackageJsonInfoCache(),Ie.clearAllExceptPackageJsonInfoCache(),Ct.clearAllExceptPackageJsonInfoCache(),h.forEach(Wl),h.clear()}function Wr(ln){ct.forEach((Wn,$r)=>{var Ge;(Ge=ln==null?void 0:ln.resolvedLibReferences)!=null&&Ge.has($r)||(qn(Wn,e.toPath(VW(e.getCompilationSettings(),we(),$r)),Et),ct.delete($r))})}function jt(ln,Wn){d=void 0,ve=!1,h.forEach(Wl),h.clear(),ln!==Wn&&(Wr(ln),ln==null||ln.getSourceFiles().forEach($r=>{var Ge;const Br=aE($r)?((Ge=$r.packageJsonLocations)==null?void 0:Ge.length)??0:0,Ei=k.get($r.path)??Yn;for(let Ln=Ei.length;LnBr)for(let Ln=Br;Ln{ln!=null&&ln.getSourceFileByPath(Ge)||($r.forEach(Br=>Ze.get(Br).files--),k.delete(Ge))})),Lt.forEach(En),Ze.forEach(fr),F=!1,Pe.isReadonly=!0,Ie.isReadonly=!0,Ct.isReadonly=!0,Pe.getPackageJsonInfoCache().isReadonly=!0}function En(ln,Wn){ln.refCount===0&&(Lt.delete(Wn),ln.watcher.close())}function fr(ln,Wn){var $r;ln.files===0&&ln.resolutions===0&&!(($r=ln.symlinks)!=null&&$r.size)&&(Ze.delete(Wn),ln.watcher.close())}function Tr({entries:ln,containingFile:Wn,containingSourceFile:$r,redirectedReference:Ge,options:Br,perFileCache:Ei,reusedNames:Ln,loader:Sr,getResolutionWithResolvedFileName:yi,deferWatchingNonRelativeResolution:go,shouldRetryResolution:Ao,logChanges:Io}){const ze=e.toPath(Wn),Ce=Ei.get(ze)||Ei.set(ze,IR()).get(ze),kt=[],qe=Io&&qt(ze),Mt=e.getCurrentProgram(),ge=Mt&&Mt.getResolvedProjectReferenceToRedirect(Wn),mn=ge?!Ge||Ge.sourceFile.path!==ge.sourceFile.path:!!Ge,Jn=IR();for(const Lr of ln){const qi=Sr.nameAndMode.getName(Lr),vo=Sr.nameAndMode.getMode(Lr,$r);let Ro=Ce.get(qi,vo);if(!Jn.has(qi,vo)&&(ve||mn||!Ro||Ro.isInvalidated||qe&&!Kv(qi)&&Ao(Ro))){const Ts=Ro;Ro=Sr.resolve(qi,vo),e.onDiscoveredSymlink&&Bxe(Ro)&&e.onDiscoveredSymlink(),Ce.set(qi,vo,Ro),Ro!==Ts&&(no(qi,Ro,ze,yi,go),Ts&&qn(Ts,ze,yi)),Io&&c&&!Nn(Ts,Ro)&&(c.push(ze),Io=!1)}else{const Ts=lge(e);if(DR(Br,Ts)&&!Jn.has(qi,vo)){const Cc=yi(Ro);Df(Ts,Ei===et?Cc!=null&&Cc.resolvedFileName?Cc.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Cc!=null&&Cc.resolvedFileName?Cc.packageId?N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,qi,Wn,Cc==null?void 0:Cc.resolvedFileName,(Cc==null?void 0:Cc.packageId)&&jM(Cc.packageId))}}re.assert(Ro!==void 0&&!Ro.isInvalidated),Jn.set(qi,vo,!0),kt.push(Ro)}return Ln==null||Ln.forEach(Lr=>Jn.set(Sr.nameAndMode.getName(Lr),Sr.nameAndMode.getMode(Lr,$r),!0)),Ce.size()!==Jn.size()&&Ce.forEach((Lr,qi,vo)=>{Jn.has(qi,vo)||(qn(Lr,ze,yi),Ce.delete(qi,vo))}),kt;function Nn(Lr,qi){if(Lr===qi)return!0;if(!Lr||!qi)return!1;const vo=yi(Lr),Ro=yi(qi);return vo===Ro?!0:!vo||!Ro?!1:vo.resolvedFileName===Ro.resolvedFileName}}function Vr(ln,Wn,$r,Ge,Br,Ei){return Tr({entries:ln,containingFile:Wn,containingSourceFile:Br,redirectedReference:$r,options:Ge,reusedNames:Ei,perFileCache:dt,loader:Yae(Wn,$r,Ge,lge(e),Ie),getResolutionWithResolvedFileName:at,shouldRetryResolution:Ln=>Ln.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Pn(ln,Wn,$r,Ge,Br,Ei){return Tr({entries:ln,containingFile:Wn,containingSourceFile:Br,redirectedReference:$r,options:Ge,reusedNames:Ei,perFileCache:et,loader:oZ(Wn,$r,Ge,e,Pe),getResolutionWithResolvedFileName:Et,shouldRetryResolution:Ln=>!Ln.resolvedModule||!G7(Ln.resolvedModule.extension),logChanges:i,deferWatchingNonRelativeResolution:!0})}function Fr(ln,Wn,$r,Ge){const Br=lge(e);let Ei=ct==null?void 0:ct.get(Ge);if(!Ei||Ei.isInvalidated){const Ln=Ei;Ei=Zpe(ln,Wn,$r,Br,Ct);const Sr=e.toPath(Wn);no(ln,Ei,Sr,Et,!1),ct.set(Ge,Ei),Ln&&qn(Ln,Sr,Et)}else if(DR($r,Br)){const Ln=Et(Ei);Df(Br,Ln!=null&&Ln.resolvedFileName?Ln.packageId?N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ln,Wn,Ln==null?void 0:Ln.resolvedFileName,(Ln==null?void 0:Ln.packageId)&&jM(Ln.packageId))}return Ei}function Ki(ln,Wn){var $r,Ge;const Br=e.toPath(Wn),Ei=et.get(Br),Ln=Ei==null?void 0:Ei.get(ln,void 0);if(Ln&&!Ln.isInvalidated)return Ln;const Sr=($r=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:$r.call(e,Pe),yi=lge(e),go=ZG(ln,Wn,e.getCompilationSettings(),yi,Pe);return(Ge=e.afterResolveSingleModuleNameWithoutWatching)==null||Ge.call(e,Pe,ln,Wn,go,Sr),go}function io(ln){return h_(ln,"/node_modules/@types")}function no(ln,Wn,$r,Ge,Br){var Ei;if(Wn.refCount)Wn.refCount++,re.assertIsDefined(Wn.files);else{Wn.refCount=1,re.assert(!((Ei=Wn.files)!=null&&Ei.size)),!Br||Kv(ln)?Mo(Wn):h.add(ln,Wn);const Ln=Ge(Wn);if(Ln&&Ln.resolvedFileName){const Sr=e.toPath(Ln.resolvedFileName);let yi=P.get(Sr);yi||P.set(Sr,yi=new Set),yi.add(Wn)}}(Wn.files??(Wn.files=new Set)).add($r)}function os(ln,Wn){const $r=e.toPath(ln),Ge=Fxe(ln,$r,Ke,st,It,we);if(Ge){const{dir:Br,dirPath:Ei,nonRecursive:Ln}=Ge;Ei===st?(re.assert(Ln),Wn=!0):Jc(Br,Ei,Ln)}return Wn}function Mo(ln){re.assert(!!ln.refCount);const{failedLookupLocations:Wn,affectingLocations:$r,node10Result:Ge}=ln;if(!(Wn!=null&&Wn.length)&&!($r!=null&&$r.length)&&!Ge)return;(Wn!=null&&Wn.length||Ge)&&S.add(ln);let Br=!1;if(Wn)for(const Ei of Wn)Br=os(Ei,Br);Ge&&(Br=os(Ge,Br)),Br&&Jc(Ke,st,!0),$i(ln,!(Wn!=null&&Wn.length)&&!Ge)}function $i(ln,Wn){re.assert(!!ln.refCount);const{affectingLocations:$r}=ln;if($r!=null&&$r.length){Wn&&E.add(ln);for(const Ge of $r)ki(Ge,!0)}}function ki(ln,Wn){const $r=Ze.get(ln);if($r){Wn?$r.resolutions++:$r.files++;return}let Ge=ln,Br=!1,Ei;e.realpath&&(Ge=e.realpath(ln),ln!==Ge&&(Br=!0,Ei=Ze.get(Ge)));const Ln=Wn?1:0,Sr=Wn?0:1;if(!Br||!Ei){const yi={watcher:Oxe(e.toPath(Ge))?e.watchAffectingFileLocation(Ge,(go,Ao)=>{Fe==null||Fe.addOrDeleteFile(go,e.toPath(Ge),Ao),gc(Ge,Pe.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):L$,resolutions:Br?0:Ln,files:Br?0:Sr,symlinks:void 0};Ze.set(Ge,yi),Br&&(Ei=yi)}if(Br){re.assert(!!Ei);const yi={watcher:{close:()=>{var go;const Ao=Ze.get(Ge);(go=Ao==null?void 0:Ao.symlinks)!=null&&go.delete(ln)&&!Ao.symlinks.size&&!Ao.resolutions&&!Ao.files&&(Ze.delete(Ge),Ao.watcher.close())}},resolutions:Ln,files:Sr,symlinks:void 0};Ze.set(ln,yi),(Ei.symlinks??(Ei.symlinks=new Set)).add(ln)}}function gc(ln,Wn){var $r;const Ge=Ze.get(ln);Ge!=null&&Ge.resolutions&&(J??(J=new Set)).add(ln),Ge!=null&&Ge.files&&($??($=new Set)).add(ln),($r=Ge==null?void 0:Ge.symlinks)==null||$r.forEach(Br=>gc(Br,Wn)),Wn==null||Wn.delete(e.toPath(ln))}function Wl(ln,Wn){const $r=e.getCurrentProgram();!$r||!$r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Wn)?ln.forEach(Mo):ln.forEach(Ge=>$i(Ge,!0))}function Jc(ln,Wn,$r){const Ge=Lt.get(Wn);Ge?(re.assert(!!$r==!!Ge.nonRecursive),Ge.refCount++):Lt.set(Wn,{watcher:Ia(ln,Wn,$r),refCount:1,nonRecursive:$r})}function au(ln,Wn,$r){const Ge=e.toPath(ln),Br=Fxe(ln,Ge,Ke,st,It,we);if(Br){const{dirPath:Ei}=Br;Ei===st?Wn=!0:za(Ei,$r)}return Wn}function qn(ln,Wn,$r,Ge){if(re.checkDefined(ln.files).delete(Wn),ln.refCount--,ln.refCount)return;const Br=$r(ln);if(Br&&Br.resolvedFileName){const yi=e.toPath(Br.resolvedFileName),go=P.get(yi);go!=null&&go.delete(ln)&&!go.size&&P.delete(yi)}const{failedLookupLocations:Ei,affectingLocations:Ln,node10Result:Sr}=ln;if(S.delete(ln)){let yi=!1;if(Ei)for(const go of Ei)yi=au(go,yi,Ge);Sr&&(yi=au(Sr,yi,Ge)),yi&&za(st,Ge)}else Ln!=null&&Ln.length&&E.delete(ln);if(Ln)for(const yi of Ln){const go=Ze.get(yi);go.resolutions--,Ge&&fr(go,yi)}}function za(ln,Wn){const $r=Lt.get(ln);$r.refCount--,Wn&&En($r,ln)}function Ia(ln,Wn,$r){return e.watchDirectoryOfFailedLookupLocation(ln,Ge=>{const Br=e.toPath(Ge);Fe&&Fe.addOrDeleteFileOrDirectory(Ge,Br),Cu(Br,Wn===Br)},$r?0:1)}function zi(ln,Wn,$r,Ge){const Br=ln.get(Wn);Br&&(Br.forEach(Ei=>qn(Ei,Wn,$r,Ge)),ln.delete(Wn))}function na(ln){if(!mm(ln,".json"))return;const Wn=e.getCurrentProgram();if(!Wn)return;const $r=Wn.getResolvedProjectReferenceByPath(ln);$r&&$r.commandLine.fileNames.forEach(Ge=>_a(e.toPath(Ge)))}function _a(ln,Wn){zi(et,ln,Et,Wn),zi(dt,ln,at,Wn)}function us(ln,Wn){if(!ln)return!1;let $r=!1;return ln.forEach(Ge=>{if(!(Ge.isInvalidated||!Wn(Ge))){Ge.isInvalidated=$r=!0;for(const Br of re.checkDefined(Ge.files))(u??(u=new Set)).add(Br),F=F||h_(Br,gj)}}),$r}function Au(ln){_a(ln);const Wn=F;us(P.get(ln),xT)&&F&&!Wn&&e.onChangedAutomaticTypeDirectiveNames()}function Qu(ln){re.assert(d===ln||d===void 0),d=ln}function Cu(ln,Wn){if(Wn)(ae||(ae=new Set)).add(ln);else{const $r=_se(ln);if(!$r||(ln=$r,e.fileIsOpen(ln)))return!1;const Ge=ws(ln);if(io(ln)||NX(ln)||io(Ge)||NX(Ge))(X||(X=new Set)).add(ln),(ie||(ie=new Set)).add(ln);else{if(Vme(e.getCurrentProgram(),ln)||mm(ln,".map"))return!1;(X||(X=new Set)).add(ln);const Br=d$(ln,!0);Br&&(ie||(ie=new Set)).add(Br)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function yf(){const ln=Pe.getPackageJsonInfoCache().getInternalMap();ln&&(X||ie||ae)&&ln.forEach((Wn,$r)=>He($r)?ln.delete($r):void 0)}function w_(){var ln;if(ve)return $=void 0,yf(),(X||ie||ae||J)&&us(ct,Eu),X=void 0,ie=void 0,ae=void 0,J=void 0,!0;let Wn=!1;return $&&((ln=e.getCurrentProgram())==null||ln.getSourceFiles().forEach($r=>{gt($r.packageJsonLocations,Ge=>$.has(Ge))&&((u??(u=new Set)).add($r.path),Wn=!0)}),$=void 0),!X&&!ie&&!ae&&!J||(Wn=us(S,Eu)||Wn,yf(),X=void 0,ie=void 0,ae=void 0,Wn=us(E,Hn)||Wn,J=void 0),Wn}function Eu(ln){var Wn;return Hn(ln)?!0:!X&&!ie&&!ae?!1:((Wn=ln.failedLookupLocations)==null?void 0:Wn.some($r=>He(e.toPath($r))))||!!ln.node10Result&&He(e.toPath(ln.node10Result))}function He(ln){return(X==null?void 0:X.has(ln))||Ns((ie==null?void 0:ie.keys())||[],Wn=>qf(ln,Wn)?!0:void 0)||Ns((ae==null?void 0:ae.keys())||[],Wn=>ln.length>Wn.length&&qf(ln,Wn)&&(Gre(Wn)||ln[Wn.length]===qp)?!0:void 0)}function Hn(ln){var Wn;return!!J&&((Wn=ln.affectingLocations)==null?void 0:Wn.some($r=>J.has($r)))}function dr(){Mh(Yt,Ib)}function Mr(ln,Wn){return Bt(ln)?e.watchTypeRootsDirectory(Wn,$r=>{const Ge=e.toPath($r);Fe&&Fe.addOrDeleteFileOrDirectory($r,Ge),F=!0,e.onChangedAutomaticTypeDirectiveNames();const Br=X4e(Wn,ln,st,It,we,Ei=>Lt.has(Ei));Br&&Cu(Ge,Br===Ge)},1):L$}function Pr(){const ln=e.getCompilationSettings();if(ln.types){dr();return}const Wn=QG(ln,{getCurrentDirectory:we});Wn?a6(Yt,QT(Wn,$r=>e.toPath($r)),{createNewValue:Mr,onDeleteValue:Ib}):dr()}function Bt(ln){return e.getCompilationSettings().typeRoots?!0:Mxe(e.toPath(ln))}}function Bxe(e){var n,i;return!!((n=e.resolvedModule)!=null&&n.originalPath||(i=e.resolvedTypeReferenceDirective)!=null&&i.originalPath)}var zxe=G({"src/compiler/resolutionCache.ts"(){md()}});function w$(e,n){const i=e===w0&&$xe?$xe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:H1(e.useCaseSensitiveFileNames)};if(!n)return u=>e.write(qme(u,i));const c=new Array(1);return u=>{c[0]=u,e.write(kA(c,i)+i.getNewLine()),c[0]=void 0}}function Q4e(e,n,i){return e.clearScreen&&!i.preserveWatchOutput&&!i.extendedDiagnostics&&!i.diagnostics&&ni(pge,n.code)?(e.clearScreen(),!0):!1}function yJe(e,n){return ni(pge,e.code)?n+n:n}function dse(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Gxe(e,n){return n?(i,c,u)=>{Q4e(e,i,u);let d=`[${wR(dse(e),"\x1B[90m")}] `;d+=`${D2(i.messageText,e.newLine)}${c+c}`,e.write(d)}:(i,c,u)=>{let d="";Q4e(e,i,u)||(d+=c),d+=`${dse(e)} - `,d+=`${D2(i.messageText,e.newLine)}${yJe(i,c)}`,e.write(d)}}function jxe(e,n,i,c,u,d){const h=u;h.onUnRecoverableConfigFileDiagnostic=E=>pC(u,d,E);const S=JG(e,n,h,i,c);return h.onUnRecoverableConfigFileDiagnostic=void 0,S}function pse(e){return dp(e,n=>n.category===1)}function aZ(e){return gi(e,i=>i.category===1).map(i=>{if(i.file!==void 0)return`${i.file.fileName}`}).map(i=>{if(i===void 0)return;const c=lr(e,u=>u.file!==void 0&&u.file.fileName===i);if(c!==void 0){const{line:u}=xm(c.file,c.start);return{fileName:i,line:u+1}}})}function mse(e){return e===1?N.Found_1_error_Watching_for_file_changes:N.Found_0_errors_Watching_for_file_changes}function Vxe(e,n){const i=wR(":"+e.line,"\x1B[90m");return m0(e.fileName)&&m0(n)?sP(n,e.fileName,!1)+i:e.fileName+i}function uge(e,n,i,c){if(e===0)return"";const u=n.filter(k=>k!==void 0),d=u.map(k=>`${k.fileName}:${k.line}`).filter((k,F,$)=>$.indexOf(k)===F),h=u[0]&&Vxe(u[0],c.getCurrentDirectory());let S;e===1?S=n[0]!==void 0?[N.Found_1_error_in_0,h]:[N.Found_1_error]:S=d.length===0?[N.Found_0_errors,e]:d.length===1?[N.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,h]:[N.Found_0_errors_in_1_files,e,d.length];const E=W_(...S),P=d.length>1?R$(u,c):"";return`${i}${D2(E.messageText,i)}${i}${i}${P}`}function R$(e,n){const i=e.filter((F,$,J)=>$===J.findIndex(X=>(X==null?void 0:X.fileName)===(F==null?void 0:F.fileName)));if(i.length===0)return"";const c=F=>Math.log(F)*Math.LOG10E+1,u=i.map(F=>[F,dp(e,$=>$.fileName===F.fileName)]),d=u.reduce((F,$)=>Math.max(F,$[1]||0),0),h=N.Errors_Files.message,S=h.split(" ")[0].length,E=Math.max(S,c(d)),P=Math.max(c(d)-S,0);let k="";return k+=" ".repeat(P)+h+` `,u.forEach(F=>{const[$,J]=F,X=Math.log(J)*Math.LOG10E+1|0,ie=X{n(c.fileName)})}function hse(e,n){var i,c;const u=e.getFileIncludeReasons(),d=h=>PX(h,e.getCurrentDirectory(),e.getCanonicalFileName);for(const h of e.getSourceFiles())n(`${JW(h,d)}`),(i=u.get(h.path))==null||i.forEach(S=>n(` ${cZ(e,S,d).messageText}`)),(c=yse(h,d))==null||c.forEach(S=>n(` ${S.messageText}`))}function yse(e,n){var i;let c;if(e.path!==e.resolvedPath&&(c??(c=[])).push(Es(void 0,N.File_is_output_of_project_reference_source_0,JW(e.originalFileName,n))),e.redirectInfo&&(c??(c=[])).push(Es(void 0,N.File_redirects_to_file_0,JW(e.redirectInfo.redirectTarget,n))),aE(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(c??(c=[])).push(Es(void 0,N.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,JW(yl(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(c??(c=[])).push(Es(void 0,e.packageJsonScope.contents.packageJsonContent.type?N.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:N.File_is_CommonJS_module_because_0_does_not_have_field_type,JW(yl(e.packageJsonLocations),n))):(i=e.packageJsonLocations)!=null&&i.length&&(c??(c=[])).push(Es(void 0,N.File_is_CommonJS_module_because_package_json_was_not_found));break}return c}function vse(e,n){var i;const c=e.getCompilerOptions().configFile;if(!((i=c==null?void 0:c.configFileSpecs)!=null&&i.validatedFilesSpec))return;const u=e.getCanonicalFileName(n),d=ws(vf(c.fileName,e.getCurrentDirectory()));return lr(c.configFileSpecs.validatedFilesSpec,h=>e.getCanonicalFileName(vf(h,d))===u)}function sZ(e,n){var i,c;const u=e.getCompilerOptions().configFile;if(!((i=u==null?void 0:u.configFileSpecs)!=null&&i.validatedIncludeSpecs))return;if(u.configFileSpecs.isDefaultIncludeSpec)return!0;const d=mm(n,".json"),h=ws(vf(u.fileName,e.getCurrentDirectory())),S=e.useCaseSensitiveFileNames();return lr((c=u==null?void 0:u.configFileSpecs)==null?void 0:c.validatedIncludeSpecs,E=>{if(d&&!h_(E,".json"))return!1;const P=roe(E,h,"files");return!!P&&Y2(`(${P})$`,S).test(n)})}function cZ(e,n,i){var c,u;const d=e.getCompilerOptions();if(ew(n)){const h=XQ(e,n),S=HW(h)?h.file.text.substring(h.pos,h.end):`"${h.text}"`;let E;switch(re.assert(HW(h)||n.kind===3,"Only synthetic references are imports"),n.kind){case 3:HW(h)?E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2:N.Imported_via_0_from_file_1:h.text===HN?E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:N.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:N.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:re.assert(!h.packageId),E=N.Referenced_via_0_from_file_1;break;case 5:E=h.packageId?N.Type_library_referenced_via_0_from_file_1_with_packageId_2:N.Type_library_referenced_via_0_from_file_1;break;case 7:re.assert(!h.packageId),E=N.Library_referenced_via_0_from_file_1;break;default:re.assertNever(n)}return Es(void 0,E,S,JW(h.file,i),h.packageId&&jM(h.packageId))}switch(n.kind){case 0:if(!((c=d.configFile)!=null&&c.configFileSpecs))return Es(void 0,N.Root_file_specified_for_compilation);const h=vf(e.getRootFileNames()[n.index],e.getCurrentDirectory());if(vse(e,h))return Es(void 0,N.Part_of_files_list_in_tsconfig_json);const E=sZ(e,h);return As(E)?Es(void 0,N.Matched_by_include_pattern_0_in_1,E,JW(d.configFile,i)):Es(void 0,E?N.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:N.Root_file_specified_for_compilation);case 1:case 2:const P=n.kind===2,k=re.checkDefined((u=e.getResolvedProjectReferences())==null?void 0:u[n.index]);return Es(void 0,Ng(d)?P?N.Output_from_referenced_project_0_included_because_1_specified:N.Source_from_referenced_project_0_included_because_1_specified:P?N.Output_from_referenced_project_0_included_because_module_is_specified_as_none:N.Source_from_referenced_project_0_included_because_module_is_specified_as_none,JW(k.sourceFile.fileName,i),d.outFile?"--outFile":"--out");case 8:{const F=d.types?n.packageId?[N.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,jM(n.packageId)]:[N.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[N.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,jM(n.packageId)]:[N.Entry_point_for_implicit_type_library_0,n.typeReference];return Es(void 0,...F)}case 6:{if(n.index!==void 0)return Es(void 0,N.Library_0_specified_in_compilerOptions,d.lib[n.index]);const F=Jb(a$.type,(J,X)=>J===iu(d)?X:void 0),$=F?[N.Default_library_for_target_0,F]:[N.Default_library];return Es(void 0,...$)}default:re.assertNever(n)}}function JW(e,n){const i=As(e)?e:e.fileName;return n?n(i):i}function bse(e,n,i,c,u,d,h,S){const E=!!e.getCompilerOptions().listFilesOnly,P=e.getConfigFileParsingDiagnostics().slice(),k=P.length;Oi(P,e.getSyntacticDiagnostics(void 0,d)),P.length===k&&(Oi(P,e.getOptionsDiagnostics(d)),E||(Oi(P,e.getGlobalDiagnostics(d)),P.length===k&&Oi(P,e.getSemanticDiagnostics(void 0,d))));const F=E?{emitSkipped:!0,diagnostics:Yn}:e.emit(void 0,u,d,h,S),{emittedFiles:$,diagnostics:J}=F;Oi(P,J);const X=o7(P);if(X.forEach(n),i){const ie=e.getCurrentDirectory();Ot($,ae=>{const ve=vf(ae,ie);i(`TSFILE: ${ve}`)}),fge(e,i)}return c&&c(pse(X),aZ(X)),{emitResult:F,diagnostics:X}}function Uxe(e,n,i,c,u,d,h,S){const{emitResult:E,diagnostics:P}=bse(e,n,i,c,u,d,h,S);return E.emitSkipped&&P.length>0?1:P.length>0?2:0}function _ge(e=w0,n){return{onWatchStatusChange:n||Gxe(e),watchFile:wc(e,e.watchFile)||O$,watchDirectory:wc(e,e.watchDirectory)||O$,setTimeout:wc(e,e.setTimeout)||ku,clearTimeout:wc(e,e.clearTimeout)||ku}}function dge(e,n){const i=e.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,c=i!==0?d=>e.trace(d):ku,u=mxe(e,i,c);return u.writeLog=c,u}function Hxe(e,n,i=e){const c=e.useCaseSensitiveFileNames(),u={getSourceFile:gxe((d,h)=>h?e.readFile(d,h):u.readFile(d),n,void 0),getDefaultLibLocation:wc(e,e.getDefaultLibLocation),getDefaultLibFileName:d=>e.getDefaultLibFileName(d),writeFile:$ae((d,h,S)=>e.writeFile(d,h,S),d=>e.createDirectory(d),d=>e.directoryExists(d)),getCurrentDirectory:Pd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>c,getCanonicalFileName:H1(c),getNewLine:()=>JE(n()),fileExists:d=>e.fileExists(d),readFile:d=>e.readFile(d),trace:wc(e,e.trace),directoryExists:wc(i,i.directoryExists),getDirectories:wc(i,i.getDirectories),realpath:wc(e,e.realpath),getEnvironmentVariable:wc(e,e.getEnvironmentVariable)||(()=>""),createHash:wc(e,e.createHash),readDirectory:wc(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return u}function lZ(e,n){if(n.match(e1)){let i=n.length,c=i;for(let u=i-1;u>=0;u--){const d=n.charCodeAt(u);switch(d){case 10:u&&n.charCodeAt(u-1)===13&&u--;case 13:break;default:if(d<127||!Sb(d)){c=u;continue}break}const h=n.substring(c,i);if(h.match(pme)){n=n.substring(0,c);break}else if(!h.match(Pae))break;i=c}}return(e.createHash||Lz)(n)}function M$(e){const n=e.getSourceFile;e.getSourceFile=(...i)=>{const c=n.call(e,...i);return c&&(c.version=lZ(e,c.text)),c}}function SF(e,n){const i=Pd(()=>ws(hf(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Pd(()=>e.getCurrentDirectory()),getDefaultLibLocation:i,getDefaultLibFileName:c=>vl(i(),$D(c)),fileExists:c=>e.fileExists(c),readFile:(c,u)=>e.readFile(c,u),directoryExists:c=>e.directoryExists(c),getDirectories:c=>e.getDirectories(c),readDirectory:(c,u,d,h,S)=>e.readDirectory(c,u,d,h,S),realpath:wc(e,e.realpath),getEnvironmentVariable:wc(e,e.getEnvironmentVariable),trace:c=>e.write(c+e.newLine),createDirectory:c=>e.createDirectory(c),writeFile:(c,u,d)=>e.writeFile(c,u,d),createHash:wc(e,e.createHash),createProgram:n||cge,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:wc(e,e.now)}}function Tse(e=w0,n,i,c){const u=h=>e.write(h+e.newLine),d=SF(e,n);return E8(d,_ge(e,c)),d.afterProgramCreate=h=>{const S=h.getCompilerOptions(),E=JE(S);bse(h,i,u,P=>d.onWatchStatusChange(W_(mse(P),P),E,S,P))},d}function pC(e,n,i){n(i),e.exit(1)}function Z4e({configFileName:e,optionsToExtend:n,watchOptionsToExtend:i,extraFileExtensions:c,system:u,createProgram:d,reportDiagnostic:h,reportWatchStatus:S}){const E=h||w$(u),P=Tse(u,d,E,S);return P.onUnRecoverableConfigFileDiagnostic=k=>pC(u,E,k),P.configFileName=e,P.optionsToExtend=n,P.watchOptionsToExtend=i,P.extraFileExtensions=c,P}function Sse({rootFiles:e,options:n,watchOptions:i,projectReferences:c,system:u,createProgram:d,reportDiagnostic:h,reportWatchStatus:S}){const E=Tse(u,d,h||w$(u),S);return E.rootFiles=e,E.options=n,E.watchOptions=i,E.projectReferences=c,E}function Jxe(e){const n=e.system||w0,i=e.host||(e.host=qxe(e.options,n)),c=gge(e),u=Uxe(c,e.reportDiagnostic||w$(n),d=>i.trace&&i.trace(d),e.reportErrorSummary||e.options.pretty?(d,h)=>n.write(uge(d,h,n.newLine,i)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(c),u}var $xe,pge,L$,O$,r0,e8e=G({"src/compiler/watch.ts"(){md(),$xe=w0?{getCurrentDirectory:()=>w0.getCurrentDirectory(),getNewLine:()=>w0.newLine,getCanonicalFileName:H1(w0.useCaseSensitiveFileNames)}:void 0,pge=[N.Starting_compilation_in_watch_mode.code,N.File_change_detected_Starting_incremental_compilation.code],L$={close:ku},O$=()=>L$,r0={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 mge(e,n){const i=PR(e);if(!i)return;let c;if(n.getBuildInfo)c=n.getBuildInfo(i,e.configFilePath);else{const u=n.readFile(i);if(!u)return;c=Fme(i,u)}if(!(!c||c.version!==At||!c.program))return U4e(c,i,n)}function qxe(e,n=w0){const i=$me(e,void 0,n);return i.createHash=wc(n,n.createHash),i.storeFilesChangingSignatureDuringEmit=n.storeFilesChangingSignatureDuringEmit,M$(i),NR(i,c=>gm(c,i.getCurrentDirectory(),i.getCanonicalFileName)),i}function gge({rootNames:e,options:n,configFileParsingDiagnostics:i,projectReferences:c,host:u,createProgram:d}){u=u||qxe(n),d=d||cge;const h=mge(n,u);return d(e,n,u,h,i,c)}function Ese(e,n,i,c,u,d,h,S){return ls(e)?Sse({rootFiles:e,options:n,watchOptions:S,projectReferences:h,system:i,createProgram:c,reportDiagnostic:u,reportWatchStatus:d}):Z4e({configFileName:e,optionsToExtend:n,watchOptionsToExtend:h,extraFileExtensions:S,system:i,createProgram:c,reportDiagnostic:u,reportWatchStatus:d})}function yj(e){let n,i,c,u,d,h,S,E,P=e.extendedConfigCache,k=!1;const F=new Map;let $,J=!1;const X=e.useCaseSensitiveFileNames(),ie=e.getCurrentDirectory(),{configFileName:ae,optionsToExtend:ve={},watchOptionsToExtend:we,extraFileExtensions:Fe,createProgram:et}=e;let{rootFiles:Pe,options:dt,watchOptions:Ie,projectReferences:ct}=e,Ct,Lt,Ze=!1,Ke=!1;const st=ae===void 0?void 0:Jae(e,ie,X),It=st||e,Yt=k$(e,It);let Et=no();ae&&e.configFileParsingResult&&(Eu(e.configFileParsingResult),Et=no()),qn(N.Starting_compilation_in_watch_mode),ae&&!e.configFileParsingResult&&(Et=JE(ve),re.assert(!Pe),w_(),Et=no()),re.assert(dt),re.assert(Pe);const{watchFile:at,watchDirectory:Qt,writeLog:nn}=dge(e,dt),Rn=H1(X);nn(`Current directory: ${ie} CaseSensitiveFileNames: ${X}`);let cn;ae&&(cn=at(ae,us,2e3,Ie,r0.ConfigFile));const qt=Hxe(e,()=>dt,It);M$(qt);const Kt=qt.getSourceFile;qt.getSourceFile=(Ln,...Sr)=>gc(Ln,os(Ln),...Sr),qt.getSourceFileByPath=gc,qt.getNewLine=()=>Et,qt.fileExists=ki,qt.onReleaseOldSourceFile=au,qt.onReleaseParsedCommandLine=dr,qt.toPath=os,qt.getCompilationSettings=()=>dt,qt.useSourceOfProjectReferenceRedirect=wc(e,e.useSourceOfProjectReferenceRedirect),qt.watchDirectoryOfFailedLookupLocation=(Ln,Sr,yi)=>Qt(Ln,Sr,yi,Ie,r0.FailedLookupLocations),qt.watchAffectingFileLocation=(Ln,Sr)=>at(Ln,Sr,2e3,Ie,r0.AffectingFileLocation),qt.watchTypeRootsDirectory=(Ln,Sr,yi)=>Qt(Ln,Sr,yi,Ie,r0.TypeRoots),qt.getCachedDirectoryStructureHost=()=>st,qt.scheduleInvalidateResolutionsOfFailedLookupLocations=zi,qt.onInvalidatedResolution=_a,qt.onChangedAutomaticTypeDirectiveNames=_a,qt.fileIsOpen=bg,qt.getCurrentProgram=Pn,qt.writeLog=nn,qt.getParsedCommandLine=He;const wr=Wxe(qt,ae?ws(vf(ae,ie)):ie,!1);qt.resolveModuleNameLiterals=wc(e,e.resolveModuleNameLiterals),qt.resolveModuleNames=wc(e,e.resolveModuleNames),!qt.resolveModuleNameLiterals&&!qt.resolveModuleNames&&(qt.resolveModuleNameLiterals=wr.resolveModuleNameLiterals.bind(wr)),qt.resolveTypeReferenceDirectiveReferences=wc(e,e.resolveTypeReferenceDirectiveReferences),qt.resolveTypeReferenceDirectives=wc(e,e.resolveTypeReferenceDirectives),!qt.resolveTypeReferenceDirectiveReferences&&!qt.resolveTypeReferenceDirectives&&(qt.resolveTypeReferenceDirectiveReferences=wr.resolveTypeReferenceDirectiveReferences.bind(wr)),qt.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):wr.resolveLibrary.bind(wr),qt.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?wc(e,e.getModuleResolutionCache):()=>wr.getModuleResolutionCache();const jt=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?wc(e,e.hasInvalidatedResolutions)||xT:bg,En=e.resolveLibrary?wc(e,e.hasInvalidatedLibResolutions)||xT:bg;return n=mge(dt,qt),Fr(),$r(),ae&&Br(os(ae),dt,Ie,r0.ExtendedConfigFile),ae?{getCurrentProgram:Vr,getProgram:Qu,close:fr,getResolutionCache:Tr}:{getCurrentProgram:Vr,getProgram:Qu,updateRootFileNames:io,close:fr,getResolutionCache:Tr};function fr(){Ia(),wr.clear(),Mh(F,Ln=>{Ln&&Ln.fileWatcher&&(Ln.fileWatcher.close(),Ln.fileWatcher=void 0)}),cn&&(cn.close(),cn=void 0),P==null||P.clear(),P=void 0,E&&(Mh(E,YE),E=void 0),u&&(Mh(u,YE),u=void 0),c&&(Mh(c,Ib),c=void 0),S&&(Mh(S,Ln=>{var Sr;(Sr=Ln.watcher)==null||Sr.close(),Ln.watcher=void 0,Ln.watchedDirectories&&Mh(Ln.watchedDirectories,YE),Ln.watchedDirectories=void 0}),S=void 0)}function Tr(){return wr}function Vr(){return n}function Pn(){return n&&n.getProgramOrUndefined()}function Fr(){nn("Synchronizing program"),re.assert(dt),re.assert(Pe),Ia();const Ln=Vr();J&&(Et=no(),Ln&&Td(Ln.getCompilerOptions(),dt)&&wr.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Sr,hasInvalidatedLibResolutions:yi}=wr.createHasInvalidatedResolutions(jt,En),{originalReadFile:go,originalFileExists:Ao,originalDirectoryExists:Io,originalCreateDirectory:ze,originalWriteFile:Ce,readFileWithCache:kt}=NR(qt,os);return bxe(Pn(),Pe,dt,qe=>Jc(qe,kt),qe=>qt.fileExists(qe),Sr,yi,za,He,ct)?Ke&&(k&&qn(N.File_change_detected_Starting_incremental_compilation),n=et(void 0,void 0,qt,n,Lt,ct),Ke=!1):(k&&qn(N.File_change_detected_Starting_incremental_compilation),Ki(Sr,yi)),k=!1,e.afterProgramCreate&&Ln!==n&&e.afterProgramCreate(n),qt.readFile=go,qt.fileExists=Ao,qt.directoryExists=Io,qt.createDirectory=ze,qt.writeFile=Ce,n}function Ki(Ln,Sr){nn("CreatingProgramWith::"),nn(` roots: ${JSON.stringify(Pe)}`),nn(` options: ${JSON.stringify(dt)}`),ct&&nn(` projectReferences: ${JSON.stringify(ct)}`);const yi=J||!Pn();J=!1,Ke=!1,wr.startCachingPerDirectoryResolution(),qt.hasInvalidatedResolutions=Ln,qt.hasInvalidatedLibResolutions=Sr,qt.hasChangedAutomaticTypeDirectiveNames=za;const go=Pn();if(n=et(Pe,dt,qt,n,Lt,ct),wr.finishCachingPerDirectoryResolution(n.getProgram(),go),jme(n.getProgram(),c||(c=new Map),ln),yi&&wr.updateTypeRootsWatch(),$){for(const Ao of $)c.has(Ao)||F.delete(Ao);$=void 0}}function io(Ln){re.assert(!ae,"Cannot update root file names with config file watch mode"),Pe=Ln,_a()}function no(){return JE(dt||ve)}function os(Ln){return gm(Ln,ie,Rn)}function Mo(Ln){return typeof Ln=="boolean"}function $i(Ln){return typeof Ln.version=="boolean"}function ki(Ln){const Sr=os(Ln);return Mo(F.get(Sr))?!1:It.fileExists(Ln)}function gc(Ln,Sr,yi,go,Ao){const Io=F.get(Sr);if(Mo(Io))return;const ze=typeof yi=="object"?yi.impliedNodeFormat:void 0;if(Io===void 0||Ao||$i(Io)||Io.sourceFile.impliedNodeFormat!==ze){const Ce=Kt(Ln,yi,go);if(Io)Ce?(Io.sourceFile=Ce,Io.version=Ce.version,Io.fileWatcher||(Io.fileWatcher=Mr(Sr,Ln,Pr,250,Ie,r0.SourceFile))):(Io.fileWatcher&&Io.fileWatcher.close(),F.set(Sr,!1));else if(Ce){const kt=Mr(Sr,Ln,Pr,250,Ie,r0.SourceFile);F.set(Sr,{sourceFile:Ce,version:Ce.version,fileWatcher:kt})}else F.set(Sr,!1);return Ce}return Io.sourceFile}function Wl(Ln){const Sr=F.get(Ln);Sr!==void 0&&(Mo(Sr)?F.set(Ln,{version:!1}):Sr.version=!1)}function Jc(Ln,Sr){const yi=F.get(Ln);if(!yi)return;if(yi.version)return yi.version;const go=Sr(Ln);return go!==void 0?lZ(qt,go):void 0}function au(Ln,Sr,yi){const go=F.get(Ln.resolvedPath);go!==void 0&&(Mo(go)?($||($=[])).push(Ln.path):go.sourceFile===Ln&&(go.fileWatcher&&go.fileWatcher.close(),F.delete(Ln.resolvedPath),yi||wr.removeResolutionsOfFile(Ln.path)))}function qn(Ln){e.onWatchStatusChange&&e.onWatchStatusChange(W_(Ln),Et,dt||ve)}function za(){return wr.hasChangedAutomaticTypeDirectiveNames()}function Ia(){return h?(e.clearTimeout(h),h=void 0,!0):!1}function zi(){if(!e.setTimeout||!e.clearTimeout)return wr.invalidateResolutionsOfFailedLookupLocations();const Ln=Ia();nn(`Scheduling invalidateFailedLookup${Ln?", Cancelled earlier one":""}`),h=e.setTimeout(na,250,"timerToInvalidateFailedLookupResolutions")}function na(){h=void 0,wr.invalidateResolutionsOfFailedLookupLocations()&&_a()}function _a(){!e.setTimeout||!e.clearTimeout||(d&&e.clearTimeout(d),nn("Scheduling update"),d=e.setTimeout(Au,250,"timerToUpdateProgram"))}function us(){re.assert(!!ae),i=2,_a()}function Au(){d=void 0,k=!0,Qu()}function Qu(){var Ln,Sr,yi,go;switch(i){case 1:(Ln=Zh)==null||Ln.logStartUpdateProgram("PartialConfigReload"),Cu();break;case 2:(Sr=Zh)==null||Sr.logStartUpdateProgram("FullConfigReload"),yf();break;default:(yi=Zh)==null||yi.logStartUpdateProgram("SynchronizeProgram"),Fr();break}return(go=Zh)==null||go.logStopUpdateProgram("Done"),Vr()}function Cu(){nn("Reloading new file names and options"),re.assert(dt),re.assert(ae),i=0,Pe=t$(dt.configFile.configFileSpecs,vf(ws(ae),ie),dt,Yt,Fe),Ope(Pe,vf(ae,ie),dt.configFile.configFileSpecs,Lt,Ze)&&(Ke=!0),Fr()}function yf(){re.assert(ae),nn(`Reloading config file: ${ae}`),i=0,st&&st.clearCache(),w_(),J=!0,Fr(),$r(),Br(os(ae),dt,Ie,r0.ExtendedConfigFile)}function w_(){re.assert(ae),Eu($G(ae,ve,Yt,P||(P=new Map),we,Fe))}function Eu(Ln){Pe=Ln.fileNames,dt=Ln.options,Ie=Ln.watchOptions,ct=Ln.projectReferences,Ct=Ln.wildcardDirectories,Lt=m4(Ln).slice(),Ze=e$(Ln.raw),Ke=!0}function He(Ln){const Sr=os(Ln);let yi=S==null?void 0:S.get(Sr);if(yi){if(!yi.updateLevel)return yi.parsedCommandLine;if(yi.parsedCommandLine&&yi.updateLevel===1&&!e.getParsedCommandLine){nn("Reloading new file names and options"),re.assert(dt);const Ao=t$(yi.parsedCommandLine.options.configFile.configFileSpecs,vf(ws(Ln),ie),dt,Yt);return yi.parsedCommandLine={...yi.parsedCommandLine,fileNames:Ao},yi.updateLevel=void 0,yi.parsedCommandLine}}nn(`Loading config file: ${Ln}`);const go=e.getParsedCommandLine?e.getParsedCommandLine(Ln):Hn(Ln);return yi?(yi.parsedCommandLine=go,yi.updateLevel=void 0):(S||(S=new Map)).set(Sr,yi={parsedCommandLine:go}),Ei(Ln,Sr,yi),go}function Hn(Ln){const Sr=Yt.onUnRecoverableConfigFileDiagnostic;Yt.onUnRecoverableConfigFileDiagnostic=ku;const yi=$G(Ln,void 0,Yt,P||(P=new Map),we);return Yt.onUnRecoverableConfigFileDiagnostic=Sr,yi}function dr(Ln){var Sr;const yi=os(Ln),go=S==null?void 0:S.get(yi);go&&(S.delete(yi),go.watchedDirectories&&Mh(go.watchedDirectories,YE),(Sr=go.watcher)==null||Sr.close(),VQ(yi,E))}function Mr(Ln,Sr,yi,go,Ao,Io){return at(Sr,(ze,Ce)=>yi(ze,Ce,Ln),go,Ao,Io)}function Pr(Ln,Sr,yi){Bt(Ln,yi,Sr),Sr===2&&F.has(yi)&&wr.invalidateResolutionOfFile(yi),Wl(yi),_a()}function Bt(Ln,Sr,yi){st&&st.addOrDeleteFile(Ln,Sr,yi)}function ln(Ln){return S!=null&&S.has(Ln)?L$:Mr(Ln,Ln,Wn,500,Ie,r0.MissingFile)}function Wn(Ln,Sr,yi){Bt(Ln,yi,Sr),Sr===0&&c.has(yi)&&(c.get(yi).close(),c.delete(yi),Wl(yi),_a())}function $r(){Ct?jW(u||(u=new Map),new Map(Object.entries(Ct)),Ge):u&&Mh(u,YE)}function Ge(Ln,Sr){return Qt(Ln,yi=>{re.assert(ae),re.assert(dt);const go=os(yi);st&&st.addOrDeleteFileOrDirectory(yi,go),Wl(go),!dC({watchedDirPath:os(Ln),fileOrDirectory:yi,fileOrDirectoryPath:go,configFileName:ae,extraFileExtensions:Fe,options:dt,program:Vr()||Pe,currentDirectory:ie,useCaseSensitiveFileNames:X,writeLog:nn,toPath:os})&&i!==2&&(i=1,_a())},Sr,Ie,r0.WildcardDirectory)}function Br(Ln,Sr,yi,go){D$(Ln,Sr,E||(E=new Map),(Ao,Io)=>at(Ao,(ze,Ce)=>{var kt;Bt(Ao,Io,Ce),P&&Gme(P,Io,os);const qe=(kt=E.get(Io))==null?void 0:kt.projects;qe!=null&&qe.size&&qe.forEach(Mt=>{if(ae&&os(ae)===Mt)i=2;else{const ge=S==null?void 0:S.get(Mt);ge&&(ge.updateLevel=2),wr.removeResolutionsFromProjectReferenceRedirects(Mt)}_a()})},2e3,yi,go),os)}function Ei(Ln,Sr,yi){var go,Ao,Io,ze,Ce;yi.watcher||(yi.watcher=at(Ln,(kt,qe)=>{Bt(Ln,Sr,qe);const Mt=S==null?void 0:S.get(Sr);Mt&&(Mt.updateLevel=2),wr.removeResolutionsFromProjectReferenceRedirects(Sr),_a()},2e3,((go=yi.parsedCommandLine)==null?void 0:go.watchOptions)||Ie,r0.ConfigFileOfReferencedProject)),(Ao=yi.parsedCommandLine)!=null&&Ao.wildcardDirectories?jW(yi.watchedDirectories||(yi.watchedDirectories=new Map),new Map(Object.entries((Io=yi.parsedCommandLine)==null?void 0:Io.wildcardDirectories)),(kt,qe)=>{var Mt;return Qt(kt,ge=>{const mn=os(ge);st&&st.addOrDeleteFileOrDirectory(ge,mn),Wl(mn);const Jn=S==null?void 0:S.get(Sr);Jn!=null&&Jn.parsedCommandLine&&(dC({watchedDirPath:os(kt),fileOrDirectory:ge,fileOrDirectoryPath:mn,configFileName:Ln,options:Jn.parsedCommandLine.options,program:Jn.parsedCommandLine.fileNames,currentDirectory:ie,useCaseSensitiveFileNames:X,writeLog:nn,toPath:os})||Jn.updateLevel!==2&&(Jn.updateLevel=1,_a()))},qe,((Mt=yi.parsedCommandLine)==null?void 0:Mt.watchOptions)||Ie,r0.WildcardDirectoryOfReferencedProject)}):yi.watchedDirectories&&(Mh(yi.watchedDirectories,YE),yi.watchedDirectories=void 0),Br(Sr,(ze=yi.parsedCommandLine)==null?void 0:ze.options,((Ce=yi.parsedCommandLine)==null?void 0:Ce.watchOptions)||Ie,r0.ExtendedConfigOfReferencedProject)}}var Kxe=G({"src/compiler/watchPublic.ts"(){md()}});function hge(e){return mm(e,".json")?e:vl(e,"tsconfig.json")}var yge,Lct=G({"src/compiler/tsbuild.ts"(){md(),yge=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(yge||{})}});function Oct(e,n,i){const c=e.get(n);let u;return c||(u=i(),e.set(n,u)),c||u}function t8e(e,n){return Oct(e,n,()=>new Map)}function xse(e){return e.now?e.now():new Date}function vj(e){return!!e&&!!e.buildOrder}function vge(e){return vj(e)?e.buildOrder:e}function QE(e,n){return i=>{let c=n?`[${wR(dse(e),"\x1B[90m")}] `:`${dse(e)} - `;c+=`${D2(i.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(c)}}function vI(e,n,i,c){const u=SF(e,n);return u.getModifiedTime=e.getModifiedTime?d=>e.getModifiedTime(d):eE,u.setModifiedTime=e.setModifiedTime?(d,h)=>e.setModifiedTime(d,h):ku,u.deleteFile=e.deleteFile?d=>e.deleteFile(d):ku,u.reportDiagnostic=i||w$(e),u.reportSolutionBuilderStatus=c||QE(e),u.now=wc(e,e.now),u}function n8e(e=w0,n,i,c,u){const d=vI(e,n,i,c);return d.reportErrorSummary=u,d}function vJe(e=w0,n,i,c,u){const d=vI(e,n,i,c),h=_ge(e,u);return E8(d,h),d}function bj(e){const n={};return o$.forEach(i=>{ef(e,i.name)&&(n[i.name]=e[i.name])}),n}function F$(e,n,i){return h8e(!1,e,n,i)}function r8e(e,n,i,c){return h8e(!0,e,n,i,c)}function bge(e,n,i,c,u){const d=n,h=n,S=bj(c),E=Hxe(d,()=>ie.projectCompilerOptions);M$(E),E.getParsedCommandLine=ae=>$W(ie,ae,bI(ie,ae)),E.resolveModuleNameLiterals=wc(d,d.resolveModuleNameLiterals),E.resolveTypeReferenceDirectiveReferences=wc(d,d.resolveTypeReferenceDirectiveReferences),E.resolveLibrary=wc(d,d.resolveLibrary),E.resolveModuleNames=wc(d,d.resolveModuleNames),E.resolveTypeReferenceDirectives=wc(d,d.resolveTypeReferenceDirectives),E.getModuleResolutionCache=wc(d,d.getModuleResolutionCache);let P,k;!E.resolveModuleNameLiterals&&!E.resolveModuleNames&&(P=s4(E.getCurrentDirectory(),E.getCanonicalFileName),E.resolveModuleNameLiterals=(ae,ve,we,Fe,et)=>KQ(ae,ve,we,Fe,et,d,P,I$),E.getModuleResolutionCache=()=>P),!E.resolveTypeReferenceDirectiveReferences&&!E.resolveTypeReferenceDirectives&&(k=sae(E.getCurrentDirectory(),E.getCanonicalFileName,void 0,P==null?void 0:P.getPackageJsonInfoCache(),P==null?void 0:P.optionsToRedirectsKey),E.resolveTypeReferenceDirectiveReferences=(ae,ve,we,Fe,et)=>KQ(ae,ve,we,Fe,et,d,k,Yae));let F;E.resolveLibrary||(F=s4(E.getCurrentDirectory(),E.getCanonicalFileName,void 0,P==null?void 0:P.getPackageJsonInfoCache()),E.resolveLibrary=(ae,ve,we)=>Zpe(ae,ve,we,d,F)),E.getBuildInfo=(ae,ve)=>EJe(ie,ae,bI(ie,ve),void 0);const{watchFile:$,watchDirectory:J,writeLog:X}=dge(h,c),ie={host:d,hostWithWatch:h,parseConfigFileHost:k$(d),write:wc(d,d.trace),options:c,baseCompilerOptions:S,rootNames:i,baseWatchOptions:u,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:E,moduleResolutionCache:P,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:F,buildOrder:void 0,readFileWithCache:ae=>d.readFile(ae),projectCompilerOptions:S,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:$,watchDirectory:J,writeLog:X};return ie}function cx(e,n){return gm(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function bI(e,n){const{resolvedConfigFilePaths:i}=e,c=i.get(n);if(c!==void 0)return c;const u=cx(e,n);return i.set(n,u),u}function i8e(e){return!!e.options}function o8e(e,n){const i=e.configFileCache.get(n);return i&&i8e(i)?i:void 0}function $W(e,n,i){const{configFileCache:c}=e,u=c.get(i);if(u)return i8e(u)?u:void 0;cf("SolutionBuilder::beforeConfigFileParsing");let d;const{parseConfigFileHost:h,baseCompilerOptions:S,baseWatchOptions:E,extendedConfigCache:P,host:k}=e;let F;return k.getParsedCommandLine?(F=k.getParsedCommandLine(n),F||(d=W_(N.File_0_not_found,n))):(h.onUnRecoverableConfigFileDiagnostic=$=>d=$,F=$G(n,S,h,P,E),h.onUnRecoverableConfigFileDiagnostic=ku),c.set(i,F||d),cf("SolutionBuilder::afterConfigFileParsing"),Tb("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),F}function W$(e,n){return hge(NL(e.compilerHost.getCurrentDirectory(),n))}function a8e(e,n){const i=new Map,c=new Map,u=[];let d,h;for(const E of n)S(E);return h?{buildOrder:d||Yn,circularDiagnostics:h}:d||Yn;function S(E,P){const k=bI(e,E);if(c.has(k))return;if(i.has(k)){P||(h||(h=[])).push(W_(N.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join(`\r -`)));return}i.set(k,!0),u.push(E);const F=$W(e,E,k);if(F&&F.projectReferences)for(const $ of F.projectReferences){const J=W$(e,$.path);S(J,P||$.circular)}u.pop(),c.set(k,!0),(d||(d=[])).push(E)}}function Ase(e){return e.buildOrder||Fct(e)}function Fct(e){const n=a8e(e,e.rootNames.map(u=>W$(e,u)));e.resolvedConfigFilePaths.clear();const i=new Map(vge(n).map(u=>[bI(e,u),!0])),c={onDeleteValue:ku};return wS(e.configFileCache,i,c),wS(e.projectStatus,i,c),wS(e.builderPrograms,i,c),wS(e.diagnostics,i,c),wS(e.projectPendingBuild,i,c),wS(e.projectErrorsReported,i,c),wS(e.buildInfoCache,i,c),wS(e.outputTimeStamps,i,c),e.watch&&(wS(e.allWatchedConfigFiles,i,{onDeleteValue:Ib}),e.allWatchedExtendedConfigFiles.forEach(u=>{u.projects.forEach(d=>{i.has(d)||u.projects.delete(d)}),u.close()}),wS(e.allWatchedWildcardDirectories,i,{onDeleteValue:u=>u.forEach(YE)}),wS(e.allWatchedInputFiles,i,{onDeleteValue:u=>u.forEach(Ib)}),wS(e.allWatchedPackageJsonFiles,i,{onDeleteValue:u=>u.forEach(Ib)})),e.buildOrder=n}function s8e(e,n,i){const c=n&&W$(e,n),u=Ase(e);if(vj(u))return u;if(c){const h=bI(e,c);if(Ho(u,E=>bI(e,E)===h)===-1)return}const d=c?a8e(e,[c]):u;return re.assert(!vj(d)),re.assert(!i||c!==void 0),re.assert(!i||d[d.length-1]===c),i?d.slice(0,d.length-1):d}function bJe(e){e.cache&&Xxe(e);const{compilerHost:n,host:i}=e,c=e.readFileWithCache,u=n.getSourceFile,{originalReadFile:d,originalFileExists:h,originalDirectoryExists:S,originalCreateDirectory:E,originalWriteFile:P,getSourceFileWithCache:k,readFileWithCache:F}=NR(i,$=>cx(e,$),(...$)=>u.call(n,...$));e.readFileWithCache=F,n.getSourceFile=k,e.cache={originalReadFile:d,originalFileExists:h,originalDirectoryExists:S,originalCreateDirectory:E,originalWriteFile:P,originalReadFileWithCache:c,originalGetSourceFile:u}}function Xxe(e){if(!e.cache)return;const{cache:n,host:i,compilerHost:c,extendedConfigCache:u,moduleResolutionCache:d,typeReferenceDirectiveResolutionCache:h,libraryResolutionCache:S}=e;i.readFile=n.originalReadFile,i.fileExists=n.originalFileExists,i.directoryExists=n.originalDirectoryExists,i.createDirectory=n.originalCreateDirectory,i.writeFile=n.originalWriteFile,c.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,u.clear(),d==null||d.clear(),h==null||h.clear(),S==null||S.clear(),e.cache=void 0}function c8e(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function Yxe({projectPendingBuild:e},n,i){const c=e.get(n);(c===void 0||ce.projectPendingBuild.set(bI(e,c),0)),n&&n.throwIfCancellationRequested()}function TJe(e,n){return e.projectPendingBuild.delete(n),e.diagnostics.has(n)?1:0}function u8e(e,n,i,c,u){let d=!0;return{kind:2,project:n,projectPath:i,buildOrder:u,getCompilerOptions:()=>c.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{m8e(e,c,i),d=!1},done:()=>(d&&m8e(e,c,i),cf("SolutionBuilder::Timestamps only updates"),TJe(e,i))}}function Qxe(e,n,i,c,u,d,h){let S=e===0?0:4,E,P,k;return e===0?{kind:e,project:i,projectPath:c,buildOrder:h,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>$(Of),getProgram:()=>$(Ie=>Ie.getProgramOrUndefined()),getSourceFile:Ie=>$(ct=>ct.getSourceFile(Ie)),getSourceFiles:()=>J(Ie=>Ie.getSourceFiles()),getOptionsDiagnostics:Ie=>J(ct=>ct.getOptionsDiagnostics(Ie)),getGlobalDiagnostics:Ie=>J(ct=>ct.getGlobalDiagnostics(Ie)),getConfigFileParsingDiagnostics:()=>J(Ie=>Ie.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(Ie,ct)=>J(Ct=>Ct.getSyntacticDiagnostics(Ie,ct)),getAllDependencies:Ie=>J(ct=>ct.getAllDependencies(Ie)),getSemanticDiagnostics:(Ie,ct)=>J(Ct=>Ct.getSemanticDiagnostics(Ie,ct)),getSemanticDiagnosticsOfNextAffectedFile:(Ie,ct)=>$(Ct=>Ct.getSemanticDiagnosticsOfNextAffectedFile&&Ct.getSemanticDiagnosticsOfNextAffectedFile(Ie,ct)),emit:(Ie,ct,Ct,Lt,Ze)=>{if(Ie||Lt)return $(Ke=>{var st,It;return Ke.emit(Ie,ct,Ct,Lt,Ze||((It=(st=n.host).getCustomTransformers)==null?void 0:It.call(st,i)))});if(dt(2,Ct),S===5)return Fe(ct,Ct);if(S===3)return we(ct,Ct,Ze)},done:F}:{kind:e,project:i,projectPath:c,buildOrder:h,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),emit:(Ie,ct)=>S!==4?k:Pe(Ie,ct),done:F};function F(Ie,ct,Ct){return dt(8,Ie,ct,Ct),cf(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),TJe(n,c)}function $(Ie){return dt(0),E&&Ie(E)}function J(Ie){return $(Ie)||Yn}function X(){var Ie,ct;if(re.assert(E===void 0),n.options.dry){aT(n,N.A_non_dry_build_would_build_project_0,i),P=1,S=7;return}if(n.options.verbose&&aT(n,N.Building_project_0,i),d.fileNames.length===0){Sj(n,c,m4(d)),P=0,S=7;return}const{host:Ct,compilerHost:Lt}=n;n.projectCompilerOptions=d.options,(Ie=n.moduleResolutionCache)==null||Ie.update(d.options),(ct=n.typeReferenceDirectiveResolutionCache)==null||ct.update(d.options),E=Ct.createProgram(d.fileNames,d.options,Lt,_8e(n,c,d),m4(d),d.projectReferences),n.watch&&(n.lastCachedPackageJsonLookups.set(c,n.moduleResolutionCache&&Vn(n.moduleResolutionCache.getPackageJsonInfoCache().entries(),([Ze,Ke])=>[n.host.realpath&&Ke?cx(n,n.host.realpath(Ze)):Ze,Ke])),n.builderPrograms.set(c,E)),S++}function ie(Ie,ct,Ct){Ie.length?{buildResult:P,step:S}=Ege(n,c,E,d,Ie,ct,Ct):S++}function ae(Ie){re.assertIsDefined(E),ie([...E.getConfigFileParsingDiagnostics(),...E.getOptionsDiagnostics(Ie),...E.getGlobalDiagnostics(Ie),...E.getSyntacticDiagnostics(void 0,Ie)],8,"Syntactic")}function ve(Ie){ie(re.checkDefined(E).getSemanticDiagnostics(void 0,Ie),16,"Semantic")}function we(Ie,ct,Ct){var Lt,Ze,Ke;re.assertIsDefined(E),re.assert(S===3);const st=E.saveEmitState();let It;const Yt=En=>(It||(It=[])).push(En),Et=[],{emitResult:at}=bse(E,Yt,void 0,void 0,(En,fr,Tr,Vr,Pn,Fr)=>Et.push({name:En,text:fr,writeByteOrderMark:Tr,data:Fr}),ct,!1,Ct||((Ze=(Lt=n.host).getCustomTransformers)==null?void 0:Ze.call(Lt,i)));if(It)return E.restoreEmitState(st),{buildResult:P,step:S}=Ege(n,c,E,d,It,32,"Declaration file"),{emitSkipped:!0,diagnostics:at.diagnostics};const{host:Qt,compilerHost:nn}=n,Rn=(Ke=E.hasChangedEmitSignature)!=null&&Ke.call(E)?0:2,cn=HL(),qt=new Map,Kt=E.getCompilerOptions(),wr=K9(Kt);let Wr,jt;return Et.forEach(({name:En,text:fr,writeByteOrderMark:Tr,data:Vr})=>{const Pn=cx(n,En);qt.set(cx(n,En),En),Vr!=null&&Vr.buildInfo&&d8e(n,Vr.buildInfo,c,Kt,Rn);const Fr=Vr!=null&&Vr.differsOnlyInMap?ZO(n.host,En):void 0;G9(Ie?{writeFile:Ie}:nn,cn,En,fr,Tr),Vr!=null&&Vr.differsOnlyInMap?n.host.setModifiedTime(En,Fr):!wr&&n.watch&&(Wr||(Wr=rAe(n,c))).set(Pn,jt||(jt=xse(n.host)))}),et(cn,qt,Et.length?Et[0].name:dxe(d,!Qt.useCaseSensitiveFileNames()),Rn),at}function Fe(Ie,ct){re.assertIsDefined(E),re.assert(S===5);const Ct=E.emitBuildInfo((Lt,Ze,Ke,st,It,Yt)=>{Yt!=null&&Yt.buildInfo&&d8e(n,Yt.buildInfo,c,E.getCompilerOptions(),2),Ie?Ie(Lt,Ze,Ke,st,It,Yt):n.compilerHost.writeFile(Lt,Ze,Ke,st,It,Yt)},ct);return Ct.diagnostics.length&&(Dse(n,Ct.diagnostics),n.diagnostics.set(c,[...n.diagnostics.get(c),...Ct.diagnostics]),P=64&P),Ct.emittedFiles&&n.write&&Ct.emittedFiles.forEach(Lt=>eAe(n,d,Lt)),tAe(n,E,d),S=7,Ct}function et(Ie,ct,Ct,Lt){const Ze=Ie.getDiagnostics();return Ze.length?({buildResult:P,step:S}=Ege(n,c,E,d,Ze,64,"Emit"),Ze):(n.write&&ct.forEach(Ke=>eAe(n,d,Ke)),aAe(n,d,c,N.Updating_unchanged_output_timestamps_of_project_0,ct),n.diagnostics.delete(c),n.projectStatus.set(c,{type:1,oldestOutputFileName:Ct}),tAe(n,E,d),S=7,P=Lt,Ze)}function Pe(Ie,ct){var Ct,Lt,Ze,Ke;if(re.assert(e===1),n.options.dry){aT(n,N.A_non_dry_build_would_update_output_of_project_0,i),P=1,S=7;return}n.options.verbose&&aT(n,N.Updating_output_of_project_0,i);const{compilerHost:st}=n;n.projectCompilerOptions=d.options,(Lt=(Ct=n.host).beforeEmitBundle)==null||Lt.call(Ct,d);const It=D4e(d,st,Rn=>{const cn=W$(n,Rn.path);return $W(n,cn,bI(n,cn))},ct||((Ke=(Ze=n.host).getCustomTransformers)==null?void 0:Ke.call(Ze,i)));if(As(It))return aT(n,N.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,i,t1(n,It)),S=6,k=Qxe(0,n,i,c,u,d,h);re.assert(!!It.length);const Yt=HL(),Et=new Map;let at=2;const Qt=n.buildInfoCache.get(c).buildInfo||void 0;return It.forEach(({name:Rn,text:cn,writeByteOrderMark:qt,data:Kt})=>{var wr,Wr;Et.set(cx(n,Rn),Rn),Kt!=null&&Kt.buildInfo&&(((wr=Kt.buildInfo.program)==null?void 0:wr.outSignature)!==((Wr=Qt==null?void 0:Qt.program)==null?void 0:Wr.outSignature)&&(at&=-3),d8e(n,Kt.buildInfo,c,d.options,at)),G9(Ie?{writeFile:Ie}:st,Yt,Rn,cn,qt)}),{emitSkipped:!1,diagnostics:et(Yt,Et,It[0].name,at)}}function dt(Ie,ct,Ct,Lt){for(;S<=Ie&&S<8;){const Ze=S;switch(S){case 0:X();break;case 1:ae(ct);break;case 2:ve(ct);break;case 3:we(Ct,ct,Lt);break;case 5:Fe(Ct,ct);break;case 4:Pe(Ct,Lt);break;case 6:re.checkDefined(k).done(ct,Ct,Lt),S=8;break;case 7:Bct(n,i,c,u,d,h,re.checkDefined(P)),S++;break}re.assert(S>Ze)}}}function Zxe({options:e},n,i){return n.type!==3||e.force?!0:i.fileNames.length===0||!!m4(i).length||!K9(i.options)}function f8e(e,n,i){if(!e.projectPendingBuild.size||vj(n))return;const{options:c,projectPendingBuild:u}=e;for(let d=0;d{const J=re.checkDefined(e.filesWatched.get(S));re.assert(nAe(J)),J.modifiedTime=$,J.callbacks.forEach(X=>X(k,F,$))},c,u,d,h);e.filesWatched.set(S,{callbacks:[i],watcher:P,modifiedTime:E})}return{close:()=>{const P=re.checkDefined(e.filesWatched.get(S));re.assert(nAe(P)),P.callbacks.length===1?(e.filesWatched.delete(S),YE(P)):A8(P.callbacks,i)}}}function rAe(e,n){if(!e.watch)return;let i=e.outputTimeStamps.get(n);return i||e.outputTimeStamps.set(n,i=new Map),i}function d8e(e,n,i,c,u){const d=PR(c),h=iAe(e,d,i),S=xse(e.host);h?(h.buildInfo=n,h.modifiedTime=S,u&2||(h.latestChangedDtsTime=S)):e.buildInfoCache.set(i,{path:cx(e,d),buildInfo:n,modifiedTime:S,latestChangedDtsTime:u&2?void 0:S})}function iAe(e,n,i){const c=cx(e,n),u=e.buildInfoCache.get(i);return(u==null?void 0:u.path)===c?u:void 0}function EJe(e,n,i,c){const u=cx(e,n),d=e.buildInfoCache.get(i);if(d!==void 0&&d.path===u)return d.buildInfo||void 0;const h=e.readFileWithCache(n),S=h?Fme(n,h):void 0;return e.buildInfoCache.set(i,{path:u,buildInfo:S||!1,modifiedTime:c||oP}),S}function oAe(e,n,i,c){const u=SJe(e,n);if(iie&&(X=Ct,ie=Lt),$&&ve.add(cx(e,Ct))}if($){J||(J=kxe($,E,S));for(const Ct of J.roots)if(!ve.has(Ct))return{type:10,buildInfoFile:E,inputFile:Ct}}if(!E){const Ct=Vae(n,!S.useCaseSensitiveFileNames()),Lt=rAe(e,i);for(const Ze of Ct){const Ke=cx(e,Ze);let st=Lt==null?void 0:Lt.get(Ke);if(st||(st=ZO(e.host,Ze),Lt==null||Lt.set(Ke,st)),st===oP)return{type:4,missingOutputFileName:Ze};if(stoAe(e,Ct,k,P));if(Ie)return Ie;const ct=Ot(e.lastCachedPackageJsonLookups.get(i)||Yn,([Ct])=>oAe(e,Ct,k,P));return ct||(et&&Fe?{type:3,outOfDateOutputFileName:P,newerProjectName:Pe}:{type:Fe?2:ae?15:1,newestInputFileTime:ie,newestInputFileName:X,oldestOutputFileName:P})}function xJe(e,n,i){return e.buildInfoCache.get(i).path===n.path}function p8e(e,n,i){if(n===void 0)return{type:0,reason:"File deleted mid-build"};const c=e.projectStatus.get(i);if(c!==void 0)return c;cf("SolutionBuilder::beforeUpToDateCheck");const u=Wct(e,n,i);return cf("SolutionBuilder::afterUpToDateCheck"),Tb("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(i,u),u}function aAe(e,n,i,c,u){if(n.options.noEmit)return;let d;const h=PR(n.options);if(h){u!=null&&u.has(cx(e,h))||(e.options.verbose&&aT(e,c,n.options.configFilePath),e.host.setModifiedTime(h,d=xse(e.host)),iAe(e,h,i).modifiedTime=d),e.outputTimeStamps.delete(i);return}const{host:S}=e,E=Vae(n,!S.useCaseSensitiveFileNames()),P=rAe(e,i),k=P?new Set:void 0;if(!u||E.length!==u.size){let F=!!e.options.verbose;for(const $ of E){const J=cx(e,$);u!=null&&u.has(J)||(F&&(F=!1,aT(e,c,n.options.configFilePath)),S.setModifiedTime($,d||(d=xse(e.host))),P&&(P.set(J,d),k.add(J)))}}P==null||P.forEach((F,$)=>{!(u!=null&&u.has($))&&!k.has($)&&P.delete($)})}function xge(e,n,i){if(!n.composite)return;const c=re.checkDefined(e.buildInfoCache.get(i));if(c.latestChangedDtsTime!==void 0)return c.latestChangedDtsTime||void 0;const u=c.buildInfo&&c.buildInfo.program&&c.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(vf(c.buildInfo.program.latestChangedDtsFile,ws(c.path))):void 0;return c.latestChangedDtsTime=u||!1,u}function m8e(e,n,i){if(e.options.dry)return aT(e,N.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);aAe(e,n,i,N.Updating_output_timestamps_of_project_0),e.projectStatus.set(i,{type:1,oldestOutputFileName:dxe(n,!e.host.useCaseSensitiveFileNames())})}function Bct(e,n,i,c,u,d,h){if(!(h&124)&&u.options.composite)for(let S=c+1;Se.diagnostics.has(bI(e,P)))?E?2:1:0}function g8e(e,n,i){cf("SolutionBuilder::beforeClean");const c=DJe(e,n,i);return cf("SolutionBuilder::afterClean"),Tb("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),c}function DJe(e,n,i){const c=s8e(e,n,i);if(!c)return 3;if(vj(c))return Dse(e,c.circularDiagnostics),4;const{options:u,host:d}=e,h=u.dry?[]:void 0;for(const S of c){const E=bI(e,S),P=$W(e,S,E);if(P===void 0){wJe(e,E);continue}const k=Vae(P,!d.useCaseSensitiveFileNames());if(!k.length)continue;const F=new Set(P.fileNames.map($=>cx(e,$)));for(const $ of k)F.has(cx(e,$))||d.fileExists($)&&(h?h.push($):(d.deleteFile($),Age(e,E,0)))}return h&&aT(e,N.A_non_dry_build_would_delete_the_following_files_Colon_0,h.map(S=>`\r - * ${S}`).join("")),0}function Age(e,n,i){e.host.getParsedCommandLine&&i===1&&(i=2),i===2&&(e.configFileCache.delete(n),e.buildOrder=void 0),e.needsSummary=!0,c8e(e,n),Yxe(e,n,i),bJe(e)}function uZ(e,n,i){e.reportFileChangeDetected=!0,Age(e,n,i),IJe(e,250,!0)}function IJe(e,n,i){const{hostWithWatch:c}=e;!c.setTimeout||!c.clearTimeout||(e.timerToBuildInvalidatedProject&&c.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=c.setTimeout(zct,n,"timerToBuildInvalidatedProject",e,i))}function zct(e,n,i){cf("SolutionBuilder::beforeBuild");const c=kJe(n,i);cf("SolutionBuilder::afterBuild"),Tb("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c&&Ad(n,c)}function kJe(e,n){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),cAe(e,N.File_change_detected_Starting_incremental_compilation));let i=0;const c=Ase(e),u=Sge(e,c,!1);if(u)for(u.done(),i++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const d=f8e(e,c,!1);if(!d)break;if(d.kind!==2&&(n||i===5)){IJe(e,100,!1);return}Tge(e,d,c).done(),d.kind!==2&&i++}return Xxe(e),c}function wb(e,n,i,c){!e.watch||e.allWatchedConfigFiles.has(i)||e.allWatchedConfigFiles.set(i,Cse(e,n,()=>uZ(e,i,2),2e3,c==null?void 0:c.watchOptions,r0.ConfigFile,n))}function aS(e,n,i){D$(n,i==null?void 0:i.options,e.allWatchedExtendedConfigFiles,(c,u)=>Cse(e,c,()=>{var d;return(d=e.allWatchedExtendedConfigFiles.get(u))==null?void 0:d.projects.forEach(h=>uZ(e,h,2))},2e3,i==null?void 0:i.watchOptions,r0.ExtendedConfigFile),c=>cx(e,c))}function sAe(e,n,i,c){e.watch&&jW(t8e(e.allWatchedWildcardDirectories,i),new Map(Object.entries(c.wildcardDirectories)),(u,d)=>e.watchDirectory(u,h=>{var S;dC({watchedDirPath:cx(e,u),fileOrDirectory:h,fileOrDirectoryPath:cx(e,h),configFileName:n,currentDirectory:e.compilerHost.getCurrentDirectory(),options:c.options,program:e.builderPrograms.get(i)||((S=o8e(e,i))==null?void 0:S.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:E=>e.writeLog(E),toPath:E=>cx(e,E)})||uZ(e,i,1)},d,c==null?void 0:c.watchOptions,r0.WildcardDirectory,n))}function fZ(e,n,i,c){e.watch&&a6(t8e(e.allWatchedInputFiles,i),QT(c.fileNames,u=>cx(e,u)),{createNewValue:(u,d)=>Cse(e,d,()=>uZ(e,i,0),250,c==null?void 0:c.watchOptions,r0.SourceFile,n),onDeleteValue:Ib})}function Tj(e,n,i,c){!e.watch||!e.lastCachedPackageJsonLookups||a6(t8e(e.allWatchedPackageJsonFiles,i),new Map(e.lastCachedPackageJsonLookups.get(i)),{createNewValue:(u,d)=>Cse(e,u,()=>uZ(e,i,0),2e3,c==null?void 0:c.watchOptions,r0.PackageJson,n),onDeleteValue:Ib})}function PJe(e,n){if(e.watchAllProjectsPending){cf("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const i of vge(n)){const c=bI(e,i),u=$W(e,i,c);wb(e,i,c,u),aS(e,c,u),u&&(sAe(e,i,c,u),fZ(e,i,c,u),Tj(e,i,c,u))}cf("SolutionBuilder::afterWatcherCreation"),Tb("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function NJe(e){Mh(e.allWatchedConfigFiles,Ib),Mh(e.allWatchedExtendedConfigFiles,YE),Mh(e.allWatchedWildcardDirectories,n=>Mh(n,YE)),Mh(e.allWatchedInputFiles,n=>Mh(n,Ib)),Mh(e.allWatchedPackageJsonFiles,n=>Mh(n,Ib))}function h8e(e,n,i,c,u){const d=bge(e,n,i,c,u);return{build:(h,S,E,P)=>AJe(d,h,S,E,P),clean:h=>g8e(d,h),buildReferences:(h,S,E,P)=>AJe(d,h,S,E,P,!0),cleanReferences:h=>g8e(d,h,!0),getNextInvalidatedProject:h=>(l8e(d,h),Sge(d,Ase(d),!1)),getBuildOrder:()=>Ase(d),getUpToDateStatusOfProject:h=>{const S=W$(d,h),E=bI(d,S);return p8e(d,$W(d,S,E),E)},invalidateProject:(h,S)=>Age(d,h,S||0),close:()=>NJe(d)}}function t1(e,n){return PX(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function aT(e,n,...i){e.host.reportSolutionBuilderStatus(W_(n,...i))}function cAe(e,n,...i){var c,u;(u=(c=e.hostWithWatch).onWatchStatusChange)==null||u.call(c,W_(n,...i),e.host.getNewLine(),e.baseCompilerOptions)}function Dse({host:e},n){n.forEach(i=>e.reportDiagnostic(i))}function Sj(e,n,i){Dse(e,i),e.projectErrorsReported.set(n,!0),i.length&&e.diagnostics.set(n,i)}function wJe(e,n){Sj(e,n,[e.configFileCache.get(n)])}function Ad(e,n){if(!e.needsSummary)return;e.needsSummary=!1;const i=e.watch||!!e.host.reportErrorSummary,{diagnostics:c}=e;let u=0,d=[];vj(n)?(y8e(e,n.buildOrder),Dse(e,n.circularDiagnostics),i&&(u+=pse(n.circularDiagnostics)),i&&(d=[...d,...aZ(n.circularDiagnostics)])):(n.forEach(h=>{const S=bI(e,h);e.projectErrorsReported.has(S)||Dse(e,c.get(S)||Yn)}),i&&c.forEach(h=>u+=pse(h)),i&&c.forEach(h=>[...d,...aZ(h)])),e.watch?cAe(e,mse(u),u):e.host.reportErrorSummary&&e.host.reportErrorSummary(u,d)}function y8e(e,n){e.options.verbose&&aT(e,N.Projects_in_this_build_Colon_0,n.map(i=>`\r - * `+t1(e,i)).join(""))}function RJe(e,n,i){switch(i.type){case 6:return aT(e,N.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(e,n),t1(e,i.outOfDateOutputFileName),t1(e,i.newerInputFileName));case 7:return aT(e,N.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(e,n),t1(e,i.outOfDateOutputFileName),t1(e,i.newerProjectName));case 4:return aT(e,N.Project_0_is_out_of_date_because_output_file_1_does_not_exist,t1(e,n),t1(e,i.missingOutputFileName));case 5:return aT(e,N.Project_0_is_out_of_date_because_there_was_error_reading_file_1,t1(e,n),t1(e,i.fileName));case 8:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,t1(e,n),t1(e,i.buildInfoFile));case 9:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,t1(e,n),t1(e,i.buildInfoFile));case 10:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,t1(e,n),t1(e,i.buildInfoFile),t1(e,i.inputFile));case 1:if(i.newestInputFileTime!==void 0)return aT(e,N.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,t1(e,n),t1(e,i.newestInputFileName||""),t1(e,i.oldestOutputFileName||""));break;case 3:return aT(e,N.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,t1(e,n),t1(e,i.newerProjectName));case 2:return aT(e,N.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,t1(e,n));case 15:return aT(e,N.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,t1(e,n));case 11:return aT(e,N.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,t1(e,n),t1(e,i.upstreamProjectName));case 12:return aT(e,i.upstreamProjectBlocked?N.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:N.Project_0_can_t_be_built_because_its_dependency_1_has_errors,t1(e,n),t1(e,i.upstreamProjectName));case 0:return aT(e,N.Failed_to_parse_file_0_Colon_1,t1(e,n),i.reason);case 14:return aT(e,N.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,t1(e,n),i.version,At);case 17:return aT(e,N.Project_0_is_being_forcibly_rebuilt,t1(e,n))}}function lAe(e,n,i){e.options.verbose&&RJe(e,n,i)}var MJe,LJe,uAe,v8e=G({"src/compiler/tsbuildPublic.ts"(){md(),iP(),MJe=new Date(-864e13),LJe=new Date(864e13),uAe=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(uAe||{})}}),md=G({"src/compiler/_namespaces/ts.ts"(){tr(),xz(),hTe(),en(),eS(),$p(),Dat(),bTe(),V_e(),TMe(),SMe(),FVe(),BMe(),iUe(),lst(),ust(),fst(),Zde(),A6e(),Wp(),k6e(),Xi(),Cst(),ZEe(),XUe(),rj(),ime(),gHe(),G2e(),PHe(),RHe(),Hst(),Qst(),X2e(),rct(),ict(),oct(),VHe(),UHe(),lct(),uct(),HHe(),JHe(),$He(),m4e(),fct(),_ct(),dct(),pct(),mct(),YHe(),hct(),ZHe(),cxe(),f4(),eJe(),yct(),Ect(),Gae(),kct(),R4e(),B3(),tZ(),rJe(),H4e(),gJe(),zxe(),e8e(),Kxe(),Lct(),v8e(),B2e(),iP()}});function b8e(e){return w0.args.includes(e)}function fAe(e){const n=w0.args.indexOf(e);return n>=0&&n{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(Cge||(Cge={})),mAe=` +`}),k}function gse(e){return!!e.getState}function fge(e,n){const i=e.getCompilerOptions();i.explainFiles?hse(gse(e)?e.getProgram():e,n):(i.listFiles||i.listFilesOnly)&&Ot(e.getSourceFiles(),c=>{n(c.fileName)})}function hse(e,n){var i,c;const u=e.getFileIncludeReasons(),d=h=>PX(h,e.getCurrentDirectory(),e.getCanonicalFileName);for(const h of e.getSourceFiles())n(`${JW(h,d)}`),(i=u.get(h.path))==null||i.forEach(S=>n(` ${cZ(e,S,d).messageText}`)),(c=yse(h,d))==null||c.forEach(S=>n(` ${S.messageText}`))}function yse(e,n){var i;let c;if(e.path!==e.resolvedPath&&(c??(c=[])).push(Es(void 0,N.File_is_output_of_project_reference_source_0,JW(e.originalFileName,n))),e.redirectInfo&&(c??(c=[])).push(Es(void 0,N.File_redirects_to_file_0,JW(e.redirectInfo.redirectTarget,n))),aE(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(c??(c=[])).push(Es(void 0,N.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,JW(yl(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(c??(c=[])).push(Es(void 0,e.packageJsonScope.contents.packageJsonContent.type?N.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:N.File_is_CommonJS_module_because_0_does_not_have_field_type,JW(yl(e.packageJsonLocations),n))):(i=e.packageJsonLocations)!=null&&i.length&&(c??(c=[])).push(Es(void 0,N.File_is_CommonJS_module_because_package_json_was_not_found));break}return c}function vse(e,n){var i;const c=e.getCompilerOptions().configFile;if(!((i=c==null?void 0:c.configFileSpecs)!=null&&i.validatedFilesSpec))return;const u=e.getCanonicalFileName(n),d=ws(vf(c.fileName,e.getCurrentDirectory()));return lr(c.configFileSpecs.validatedFilesSpec,h=>e.getCanonicalFileName(vf(h,d))===u)}function sZ(e,n){var i,c;const u=e.getCompilerOptions().configFile;if(!((i=u==null?void 0:u.configFileSpecs)!=null&&i.validatedIncludeSpecs))return;if(u.configFileSpecs.isDefaultIncludeSpec)return!0;const d=mm(n,".json"),h=ws(vf(u.fileName,e.getCurrentDirectory())),S=e.useCaseSensitiveFileNames();return lr((c=u==null?void 0:u.configFileSpecs)==null?void 0:c.validatedIncludeSpecs,E=>{if(d&&!h_(E,".json"))return!1;const P=roe(E,h,"files");return!!P&&Y2(`(${P})$`,S).test(n)})}function cZ(e,n,i){var c,u;const d=e.getCompilerOptions();if(ew(n)){const h=XQ(e,n),S=HW(h)?h.file.text.substring(h.pos,h.end):`"${h.text}"`;let E;switch(re.assert(HW(h)||n.kind===3,"Only synthetic references are imports"),n.kind){case 3:HW(h)?E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2:N.Imported_via_0_from_file_1:h.text===HN?E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:N.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:E=h.packageId?N.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:N.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:re.assert(!h.packageId),E=N.Referenced_via_0_from_file_1;break;case 5:E=h.packageId?N.Type_library_referenced_via_0_from_file_1_with_packageId_2:N.Type_library_referenced_via_0_from_file_1;break;case 7:re.assert(!h.packageId),E=N.Library_referenced_via_0_from_file_1;break;default:re.assertNever(n)}return Es(void 0,E,S,JW(h.file,i),h.packageId&&jM(h.packageId))}switch(n.kind){case 0:if(!((c=d.configFile)!=null&&c.configFileSpecs))return Es(void 0,N.Root_file_specified_for_compilation);const h=vf(e.getRootFileNames()[n.index],e.getCurrentDirectory());if(vse(e,h))return Es(void 0,N.Part_of_files_list_in_tsconfig_json);const E=sZ(e,h);return As(E)?Es(void 0,N.Matched_by_include_pattern_0_in_1,E,JW(d.configFile,i)):Es(void 0,E?N.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:N.Root_file_specified_for_compilation);case 1:case 2:const P=n.kind===2,k=re.checkDefined((u=e.getResolvedProjectReferences())==null?void 0:u[n.index]);return Es(void 0,Ng(d)?P?N.Output_from_referenced_project_0_included_because_1_specified:N.Source_from_referenced_project_0_included_because_1_specified:P?N.Output_from_referenced_project_0_included_because_module_is_specified_as_none:N.Source_from_referenced_project_0_included_because_module_is_specified_as_none,JW(k.sourceFile.fileName,i),d.outFile?"--outFile":"--out");case 8:{const F=d.types?n.packageId?[N.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,jM(n.packageId)]:[N.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[N.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,jM(n.packageId)]:[N.Entry_point_for_implicit_type_library_0,n.typeReference];return Es(void 0,...F)}case 6:{if(n.index!==void 0)return Es(void 0,N.Library_0_specified_in_compilerOptions,d.lib[n.index]);const F=Jb(a$.type,(J,X)=>J===iu(d)?X:void 0),$=F?[N.Default_library_for_target_0,F]:[N.Default_library];return Es(void 0,...$)}default:re.assertNever(n)}}function JW(e,n){const i=As(e)?e:e.fileName;return n?n(i):i}function bse(e,n,i,c,u,d,h,S){const E=!!e.getCompilerOptions().listFilesOnly,P=e.getConfigFileParsingDiagnostics().slice(),k=P.length;Oi(P,e.getSyntacticDiagnostics(void 0,d)),P.length===k&&(Oi(P,e.getOptionsDiagnostics(d)),E||(Oi(P,e.getGlobalDiagnostics(d)),P.length===k&&Oi(P,e.getSemanticDiagnostics(void 0,d))));const F=E?{emitSkipped:!0,diagnostics:Yn}:e.emit(void 0,u,d,h,S),{emittedFiles:$,diagnostics:J}=F;Oi(P,J);const X=o7(P);if(X.forEach(n),i){const ie=e.getCurrentDirectory();Ot($,ae=>{const ve=vf(ae,ie);i(`TSFILE: ${ve}`)}),fge(e,i)}return c&&c(pse(X),aZ(X)),{emitResult:F,diagnostics:X}}function Uxe(e,n,i,c,u,d,h,S){const{emitResult:E,diagnostics:P}=bse(e,n,i,c,u,d,h,S);return E.emitSkipped&&P.length>0?1:P.length>0?2:0}function _ge(e=w0,n){return{onWatchStatusChange:n||Gxe(e),watchFile:wc(e,e.watchFile)||O$,watchDirectory:wc(e,e.watchDirectory)||O$,setTimeout:wc(e,e.setTimeout)||ku,clearTimeout:wc(e,e.clearTimeout)||ku}}function dge(e,n){const i=e.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,c=i!==0?d=>e.trace(d):ku,u=mxe(e,i,c);return u.writeLog=c,u}function Hxe(e,n,i=e){const c=e.useCaseSensitiveFileNames(),u={getSourceFile:gxe((d,h)=>h?e.readFile(d,h):u.readFile(d),n,void 0),getDefaultLibLocation:wc(e,e.getDefaultLibLocation),getDefaultLibFileName:d=>e.getDefaultLibFileName(d),writeFile:$ae((d,h,S)=>e.writeFile(d,h,S),d=>e.createDirectory(d),d=>e.directoryExists(d)),getCurrentDirectory:Pd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>c,getCanonicalFileName:H1(c),getNewLine:()=>JE(n()),fileExists:d=>e.fileExists(d),readFile:d=>e.readFile(d),trace:wc(e,e.trace),directoryExists:wc(i,i.directoryExists),getDirectories:wc(i,i.getDirectories),realpath:wc(e,e.realpath),getEnvironmentVariable:wc(e,e.getEnvironmentVariable)||(()=>""),createHash:wc(e,e.createHash),readDirectory:wc(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return u}function lZ(e,n){if(n.match(e1)){let i=n.length,c=i;for(let u=i-1;u>=0;u--){const d=n.charCodeAt(u);switch(d){case 10:u&&n.charCodeAt(u-1)===13&&u--;case 13:break;default:if(d<127||!Sb(d)){c=u;continue}break}const h=n.substring(c,i);if(h.match(pme)){n=n.substring(0,c);break}else if(!h.match(Pae))break;i=c}}return(e.createHash||Mz)(n)}function M$(e){const n=e.getSourceFile;e.getSourceFile=(...i)=>{const c=n.call(e,...i);return c&&(c.version=lZ(e,c.text)),c}}function SF(e,n){const i=Pd(()=>ws(hf(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Pd(()=>e.getCurrentDirectory()),getDefaultLibLocation:i,getDefaultLibFileName:c=>vl(i(),$D(c)),fileExists:c=>e.fileExists(c),readFile:(c,u)=>e.readFile(c,u),directoryExists:c=>e.directoryExists(c),getDirectories:c=>e.getDirectories(c),readDirectory:(c,u,d,h,S)=>e.readDirectory(c,u,d,h,S),realpath:wc(e,e.realpath),getEnvironmentVariable:wc(e,e.getEnvironmentVariable),trace:c=>e.write(c+e.newLine),createDirectory:c=>e.createDirectory(c),writeFile:(c,u,d)=>e.writeFile(c,u,d),createHash:wc(e,e.createHash),createProgram:n||cge,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:wc(e,e.now)}}function Tse(e=w0,n,i,c){const u=h=>e.write(h+e.newLine),d=SF(e,n);return E8(d,_ge(e,c)),d.afterProgramCreate=h=>{const S=h.getCompilerOptions(),E=JE(S);bse(h,i,u,P=>d.onWatchStatusChange(W_(mse(P),P),E,S,P))},d}function pC(e,n,i){n(i),e.exit(1)}function Z4e({configFileName:e,optionsToExtend:n,watchOptionsToExtend:i,extraFileExtensions:c,system:u,createProgram:d,reportDiagnostic:h,reportWatchStatus:S}){const E=h||w$(u),P=Tse(u,d,E,S);return P.onUnRecoverableConfigFileDiagnostic=k=>pC(u,E,k),P.configFileName=e,P.optionsToExtend=n,P.watchOptionsToExtend=i,P.extraFileExtensions=c,P}function Sse({rootFiles:e,options:n,watchOptions:i,projectReferences:c,system:u,createProgram:d,reportDiagnostic:h,reportWatchStatus:S}){const E=Tse(u,d,h||w$(u),S);return E.rootFiles=e,E.options=n,E.watchOptions=i,E.projectReferences=c,E}function Jxe(e){const n=e.system||w0,i=e.host||(e.host=qxe(e.options,n)),c=gge(e),u=Uxe(c,e.reportDiagnostic||w$(n),d=>i.trace&&i.trace(d),e.reportErrorSummary||e.options.pretty?(d,h)=>n.write(uge(d,h,n.newLine,i)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(c),u}var $xe,pge,L$,O$,r0,e8e=G({"src/compiler/watch.ts"(){md(),$xe=w0?{getCurrentDirectory:()=>w0.getCurrentDirectory(),getNewLine:()=>w0.newLine,getCanonicalFileName:H1(w0.useCaseSensitiveFileNames)}:void 0,pge=[N.Starting_compilation_in_watch_mode.code,N.File_change_detected_Starting_incremental_compilation.code],L$={close:ku},O$=()=>L$,r0={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 mge(e,n){const i=PR(e);if(!i)return;let c;if(n.getBuildInfo)c=n.getBuildInfo(i,e.configFilePath);else{const u=n.readFile(i);if(!u)return;c=Fme(i,u)}if(!(!c||c.version!==At||!c.program))return U4e(c,i,n)}function qxe(e,n=w0){const i=$me(e,void 0,n);return i.createHash=wc(n,n.createHash),i.storeFilesChangingSignatureDuringEmit=n.storeFilesChangingSignatureDuringEmit,M$(i),NR(i,c=>gm(c,i.getCurrentDirectory(),i.getCanonicalFileName)),i}function gge({rootNames:e,options:n,configFileParsingDiagnostics:i,projectReferences:c,host:u,createProgram:d}){u=u||qxe(n),d=d||cge;const h=mge(n,u);return d(e,n,u,h,i,c)}function Ese(e,n,i,c,u,d,h,S){return ls(e)?Sse({rootFiles:e,options:n,watchOptions:S,projectReferences:h,system:i,createProgram:c,reportDiagnostic:u,reportWatchStatus:d}):Z4e({configFileName:e,optionsToExtend:n,watchOptionsToExtend:h,extraFileExtensions:S,system:i,createProgram:c,reportDiagnostic:u,reportWatchStatus:d})}function hj(e){let n,i,c,u,d,h,S,E,P=e.extendedConfigCache,k=!1;const F=new Map;let $,J=!1;const X=e.useCaseSensitiveFileNames(),ie=e.getCurrentDirectory(),{configFileName:ae,optionsToExtend:ve={},watchOptionsToExtend:we,extraFileExtensions:Fe,createProgram:et}=e;let{rootFiles:Pe,options:dt,watchOptions:Ie,projectReferences:ct}=e,Ct,Lt,Ze=!1,Ke=!1;const st=ae===void 0?void 0:Jae(e,ie,X),It=st||e,Yt=k$(e,It);let Et=no();ae&&e.configFileParsingResult&&(Eu(e.configFileParsingResult),Et=no()),qn(N.Starting_compilation_in_watch_mode),ae&&!e.configFileParsingResult&&(Et=JE(ve),re.assert(!Pe),w_(),Et=no()),re.assert(dt),re.assert(Pe);const{watchFile:at,watchDirectory:Qt,writeLog:nn}=dge(e,dt),Rn=H1(X);nn(`Current directory: ${ie} CaseSensitiveFileNames: ${X}`);let cn;ae&&(cn=at(ae,us,2e3,Ie,r0.ConfigFile));const qt=Hxe(e,()=>dt,It);M$(qt);const Kt=qt.getSourceFile;qt.getSourceFile=(Ln,...Sr)=>gc(Ln,os(Ln),...Sr),qt.getSourceFileByPath=gc,qt.getNewLine=()=>Et,qt.fileExists=ki,qt.onReleaseOldSourceFile=au,qt.onReleaseParsedCommandLine=dr,qt.toPath=os,qt.getCompilationSettings=()=>dt,qt.useSourceOfProjectReferenceRedirect=wc(e,e.useSourceOfProjectReferenceRedirect),qt.watchDirectoryOfFailedLookupLocation=(Ln,Sr,yi)=>Qt(Ln,Sr,yi,Ie,r0.FailedLookupLocations),qt.watchAffectingFileLocation=(Ln,Sr)=>at(Ln,Sr,2e3,Ie,r0.AffectingFileLocation),qt.watchTypeRootsDirectory=(Ln,Sr,yi)=>Qt(Ln,Sr,yi,Ie,r0.TypeRoots),qt.getCachedDirectoryStructureHost=()=>st,qt.scheduleInvalidateResolutionsOfFailedLookupLocations=zi,qt.onInvalidatedResolution=_a,qt.onChangedAutomaticTypeDirectiveNames=_a,qt.fileIsOpen=bg,qt.getCurrentProgram=Pn,qt.writeLog=nn,qt.getParsedCommandLine=He;const wr=Wxe(qt,ae?ws(vf(ae,ie)):ie,!1);qt.resolveModuleNameLiterals=wc(e,e.resolveModuleNameLiterals),qt.resolveModuleNames=wc(e,e.resolveModuleNames),!qt.resolveModuleNameLiterals&&!qt.resolveModuleNames&&(qt.resolveModuleNameLiterals=wr.resolveModuleNameLiterals.bind(wr)),qt.resolveTypeReferenceDirectiveReferences=wc(e,e.resolveTypeReferenceDirectiveReferences),qt.resolveTypeReferenceDirectives=wc(e,e.resolveTypeReferenceDirectives),!qt.resolveTypeReferenceDirectiveReferences&&!qt.resolveTypeReferenceDirectives&&(qt.resolveTypeReferenceDirectiveReferences=wr.resolveTypeReferenceDirectiveReferences.bind(wr)),qt.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):wr.resolveLibrary.bind(wr),qt.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?wc(e,e.getModuleResolutionCache):()=>wr.getModuleResolutionCache();const jt=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?wc(e,e.hasInvalidatedResolutions)||xT:bg,En=e.resolveLibrary?wc(e,e.hasInvalidatedLibResolutions)||xT:bg;return n=mge(dt,qt),Fr(),$r(),ae&&Br(os(ae),dt,Ie,r0.ExtendedConfigFile),ae?{getCurrentProgram:Vr,getProgram:Qu,close:fr,getResolutionCache:Tr}:{getCurrentProgram:Vr,getProgram:Qu,updateRootFileNames:io,close:fr,getResolutionCache:Tr};function fr(){Ia(),wr.clear(),Mh(F,Ln=>{Ln&&Ln.fileWatcher&&(Ln.fileWatcher.close(),Ln.fileWatcher=void 0)}),cn&&(cn.close(),cn=void 0),P==null||P.clear(),P=void 0,E&&(Mh(E,YE),E=void 0),u&&(Mh(u,YE),u=void 0),c&&(Mh(c,Ib),c=void 0),S&&(Mh(S,Ln=>{var Sr;(Sr=Ln.watcher)==null||Sr.close(),Ln.watcher=void 0,Ln.watchedDirectories&&Mh(Ln.watchedDirectories,YE),Ln.watchedDirectories=void 0}),S=void 0)}function Tr(){return wr}function Vr(){return n}function Pn(){return n&&n.getProgramOrUndefined()}function Fr(){nn("Synchronizing program"),re.assert(dt),re.assert(Pe),Ia();const Ln=Vr();J&&(Et=no(),Ln&&Td(Ln.getCompilerOptions(),dt)&&wr.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Sr,hasInvalidatedLibResolutions:yi}=wr.createHasInvalidatedResolutions(jt,En),{originalReadFile:go,originalFileExists:Ao,originalDirectoryExists:Io,originalCreateDirectory:ze,originalWriteFile:Ce,readFileWithCache:kt}=NR(qt,os);return bxe(Pn(),Pe,dt,qe=>Jc(qe,kt),qe=>qt.fileExists(qe),Sr,yi,za,He,ct)?Ke&&(k&&qn(N.File_change_detected_Starting_incremental_compilation),n=et(void 0,void 0,qt,n,Lt,ct),Ke=!1):(k&&qn(N.File_change_detected_Starting_incremental_compilation),Ki(Sr,yi)),k=!1,e.afterProgramCreate&&Ln!==n&&e.afterProgramCreate(n),qt.readFile=go,qt.fileExists=Ao,qt.directoryExists=Io,qt.createDirectory=ze,qt.writeFile=Ce,n}function Ki(Ln,Sr){nn("CreatingProgramWith::"),nn(` roots: ${JSON.stringify(Pe)}`),nn(` options: ${JSON.stringify(dt)}`),ct&&nn(` projectReferences: ${JSON.stringify(ct)}`);const yi=J||!Pn();J=!1,Ke=!1,wr.startCachingPerDirectoryResolution(),qt.hasInvalidatedResolutions=Ln,qt.hasInvalidatedLibResolutions=Sr,qt.hasChangedAutomaticTypeDirectiveNames=za;const go=Pn();if(n=et(Pe,dt,qt,n,Lt,ct),wr.finishCachingPerDirectoryResolution(n.getProgram(),go),jme(n.getProgram(),c||(c=new Map),ln),yi&&wr.updateTypeRootsWatch(),$){for(const Ao of $)c.has(Ao)||F.delete(Ao);$=void 0}}function io(Ln){re.assert(!ae,"Cannot update root file names with config file watch mode"),Pe=Ln,_a()}function no(){return JE(dt||ve)}function os(Ln){return gm(Ln,ie,Rn)}function Mo(Ln){return typeof Ln=="boolean"}function $i(Ln){return typeof Ln.version=="boolean"}function ki(Ln){const Sr=os(Ln);return Mo(F.get(Sr))?!1:It.fileExists(Ln)}function gc(Ln,Sr,yi,go,Ao){const Io=F.get(Sr);if(Mo(Io))return;const ze=typeof yi=="object"?yi.impliedNodeFormat:void 0;if(Io===void 0||Ao||$i(Io)||Io.sourceFile.impliedNodeFormat!==ze){const Ce=Kt(Ln,yi,go);if(Io)Ce?(Io.sourceFile=Ce,Io.version=Ce.version,Io.fileWatcher||(Io.fileWatcher=Mr(Sr,Ln,Pr,250,Ie,r0.SourceFile))):(Io.fileWatcher&&Io.fileWatcher.close(),F.set(Sr,!1));else if(Ce){const kt=Mr(Sr,Ln,Pr,250,Ie,r0.SourceFile);F.set(Sr,{sourceFile:Ce,version:Ce.version,fileWatcher:kt})}else F.set(Sr,!1);return Ce}return Io.sourceFile}function Wl(Ln){const Sr=F.get(Ln);Sr!==void 0&&(Mo(Sr)?F.set(Ln,{version:!1}):Sr.version=!1)}function Jc(Ln,Sr){const yi=F.get(Ln);if(!yi)return;if(yi.version)return yi.version;const go=Sr(Ln);return go!==void 0?lZ(qt,go):void 0}function au(Ln,Sr,yi){const go=F.get(Ln.resolvedPath);go!==void 0&&(Mo(go)?($||($=[])).push(Ln.path):go.sourceFile===Ln&&(go.fileWatcher&&go.fileWatcher.close(),F.delete(Ln.resolvedPath),yi||wr.removeResolutionsOfFile(Ln.path)))}function qn(Ln){e.onWatchStatusChange&&e.onWatchStatusChange(W_(Ln),Et,dt||ve)}function za(){return wr.hasChangedAutomaticTypeDirectiveNames()}function Ia(){return h?(e.clearTimeout(h),h=void 0,!0):!1}function zi(){if(!e.setTimeout||!e.clearTimeout)return wr.invalidateResolutionsOfFailedLookupLocations();const Ln=Ia();nn(`Scheduling invalidateFailedLookup${Ln?", Cancelled earlier one":""}`),h=e.setTimeout(na,250,"timerToInvalidateFailedLookupResolutions")}function na(){h=void 0,wr.invalidateResolutionsOfFailedLookupLocations()&&_a()}function _a(){!e.setTimeout||!e.clearTimeout||(d&&e.clearTimeout(d),nn("Scheduling update"),d=e.setTimeout(Au,250,"timerToUpdateProgram"))}function us(){re.assert(!!ae),i=2,_a()}function Au(){d=void 0,k=!0,Qu()}function Qu(){var Ln,Sr,yi,go;switch(i){case 1:(Ln=Zh)==null||Ln.logStartUpdateProgram("PartialConfigReload"),Cu();break;case 2:(Sr=Zh)==null||Sr.logStartUpdateProgram("FullConfigReload"),yf();break;default:(yi=Zh)==null||yi.logStartUpdateProgram("SynchronizeProgram"),Fr();break}return(go=Zh)==null||go.logStopUpdateProgram("Done"),Vr()}function Cu(){nn("Reloading new file names and options"),re.assert(dt),re.assert(ae),i=0,Pe=t$(dt.configFile.configFileSpecs,vf(ws(ae),ie),dt,Yt,Fe),Ope(Pe,vf(ae,ie),dt.configFile.configFileSpecs,Lt,Ze)&&(Ke=!0),Fr()}function yf(){re.assert(ae),nn(`Reloading config file: ${ae}`),i=0,st&&st.clearCache(),w_(),J=!0,Fr(),$r(),Br(os(ae),dt,Ie,r0.ExtendedConfigFile)}function w_(){re.assert(ae),Eu(JG(ae,ve,Yt,P||(P=new Map),we,Fe))}function Eu(Ln){Pe=Ln.fileNames,dt=Ln.options,Ie=Ln.watchOptions,ct=Ln.projectReferences,Ct=Ln.wildcardDirectories,Lt=p4(Ln).slice(),Ze=e$(Ln.raw),Ke=!0}function He(Ln){const Sr=os(Ln);let yi=S==null?void 0:S.get(Sr);if(yi){if(!yi.updateLevel)return yi.parsedCommandLine;if(yi.parsedCommandLine&&yi.updateLevel===1&&!e.getParsedCommandLine){nn("Reloading new file names and options"),re.assert(dt);const Ao=t$(yi.parsedCommandLine.options.configFile.configFileSpecs,vf(ws(Ln),ie),dt,Yt);return yi.parsedCommandLine={...yi.parsedCommandLine,fileNames:Ao},yi.updateLevel=void 0,yi.parsedCommandLine}}nn(`Loading config file: ${Ln}`);const go=e.getParsedCommandLine?e.getParsedCommandLine(Ln):Hn(Ln);return yi?(yi.parsedCommandLine=go,yi.updateLevel=void 0):(S||(S=new Map)).set(Sr,yi={parsedCommandLine:go}),Ei(Ln,Sr,yi),go}function Hn(Ln){const Sr=Yt.onUnRecoverableConfigFileDiagnostic;Yt.onUnRecoverableConfigFileDiagnostic=ku;const yi=JG(Ln,void 0,Yt,P||(P=new Map),we);return Yt.onUnRecoverableConfigFileDiagnostic=Sr,yi}function dr(Ln){var Sr;const yi=os(Ln),go=S==null?void 0:S.get(yi);go&&(S.delete(yi),go.watchedDirectories&&Mh(go.watchedDirectories,YE),(Sr=go.watcher)==null||Sr.close(),VQ(yi,E))}function Mr(Ln,Sr,yi,go,Ao,Io){return at(Sr,(ze,Ce)=>yi(ze,Ce,Ln),go,Ao,Io)}function Pr(Ln,Sr,yi){Bt(Ln,yi,Sr),Sr===2&&F.has(yi)&&wr.invalidateResolutionOfFile(yi),Wl(yi),_a()}function Bt(Ln,Sr,yi){st&&st.addOrDeleteFile(Ln,Sr,yi)}function ln(Ln){return S!=null&&S.has(Ln)?L$:Mr(Ln,Ln,Wn,500,Ie,r0.MissingFile)}function Wn(Ln,Sr,yi){Bt(Ln,yi,Sr),Sr===0&&c.has(yi)&&(c.get(yi).close(),c.delete(yi),Wl(yi),_a())}function $r(){Ct?jW(u||(u=new Map),new Map(Object.entries(Ct)),Ge):u&&Mh(u,YE)}function Ge(Ln,Sr){return Qt(Ln,yi=>{re.assert(ae),re.assert(dt);const go=os(yi);st&&st.addOrDeleteFileOrDirectory(yi,go),Wl(go),!dC({watchedDirPath:os(Ln),fileOrDirectory:yi,fileOrDirectoryPath:go,configFileName:ae,extraFileExtensions:Fe,options:dt,program:Vr()||Pe,currentDirectory:ie,useCaseSensitiveFileNames:X,writeLog:nn,toPath:os})&&i!==2&&(i=1,_a())},Sr,Ie,r0.WildcardDirectory)}function Br(Ln,Sr,yi,go){D$(Ln,Sr,E||(E=new Map),(Ao,Io)=>at(Ao,(ze,Ce)=>{var kt;Bt(Ao,Io,Ce),P&&Gme(P,Io,os);const qe=(kt=E.get(Io))==null?void 0:kt.projects;qe!=null&&qe.size&&qe.forEach(Mt=>{if(ae&&os(ae)===Mt)i=2;else{const ge=S==null?void 0:S.get(Mt);ge&&(ge.updateLevel=2),wr.removeResolutionsFromProjectReferenceRedirects(Mt)}_a()})},2e3,yi,go),os)}function Ei(Ln,Sr,yi){var go,Ao,Io,ze,Ce;yi.watcher||(yi.watcher=at(Ln,(kt,qe)=>{Bt(Ln,Sr,qe);const Mt=S==null?void 0:S.get(Sr);Mt&&(Mt.updateLevel=2),wr.removeResolutionsFromProjectReferenceRedirects(Sr),_a()},2e3,((go=yi.parsedCommandLine)==null?void 0:go.watchOptions)||Ie,r0.ConfigFileOfReferencedProject)),(Ao=yi.parsedCommandLine)!=null&&Ao.wildcardDirectories?jW(yi.watchedDirectories||(yi.watchedDirectories=new Map),new Map(Object.entries((Io=yi.parsedCommandLine)==null?void 0:Io.wildcardDirectories)),(kt,qe)=>{var Mt;return Qt(kt,ge=>{const mn=os(ge);st&&st.addOrDeleteFileOrDirectory(ge,mn),Wl(mn);const Jn=S==null?void 0:S.get(Sr);Jn!=null&&Jn.parsedCommandLine&&(dC({watchedDirPath:os(kt),fileOrDirectory:ge,fileOrDirectoryPath:mn,configFileName:Ln,options:Jn.parsedCommandLine.options,program:Jn.parsedCommandLine.fileNames,currentDirectory:ie,useCaseSensitiveFileNames:X,writeLog:nn,toPath:os})||Jn.updateLevel!==2&&(Jn.updateLevel=1,_a()))},qe,((Mt=yi.parsedCommandLine)==null?void 0:Mt.watchOptions)||Ie,r0.WildcardDirectoryOfReferencedProject)}):yi.watchedDirectories&&(Mh(yi.watchedDirectories,YE),yi.watchedDirectories=void 0),Br(Sr,(ze=yi.parsedCommandLine)==null?void 0:ze.options,((Ce=yi.parsedCommandLine)==null?void 0:Ce.watchOptions)||Ie,r0.ExtendedConfigOfReferencedProject)}}var Kxe=G({"src/compiler/watchPublic.ts"(){md()}});function hge(e){return mm(e,".json")?e:vl(e,"tsconfig.json")}var yge,Lct=G({"src/compiler/tsbuild.ts"(){md(),yge=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(yge||{})}});function Oct(e,n,i){const c=e.get(n);let u;return c||(u=i(),e.set(n,u)),c||u}function t8e(e,n){return Oct(e,n,()=>new Map)}function xse(e){return e.now?e.now():new Date}function yj(e){return!!e&&!!e.buildOrder}function vge(e){return yj(e)?e.buildOrder:e}function QE(e,n){return i=>{let c=n?`[${wR(dse(e),"\x1B[90m")}] `:`${dse(e)} - `;c+=`${D2(i.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(c)}}function vI(e,n,i,c){const u=SF(e,n);return u.getModifiedTime=e.getModifiedTime?d=>e.getModifiedTime(d):eE,u.setModifiedTime=e.setModifiedTime?(d,h)=>e.setModifiedTime(d,h):ku,u.deleteFile=e.deleteFile?d=>e.deleteFile(d):ku,u.reportDiagnostic=i||w$(e),u.reportSolutionBuilderStatus=c||QE(e),u.now=wc(e,e.now),u}function n8e(e=w0,n,i,c,u){const d=vI(e,n,i,c);return d.reportErrorSummary=u,d}function vJe(e=w0,n,i,c,u){const d=vI(e,n,i,c),h=_ge(e,u);return E8(d,h),d}function vj(e){const n={};return o$.forEach(i=>{ef(e,i.name)&&(n[i.name]=e[i.name])}),n}function F$(e,n,i){return h8e(!1,e,n,i)}function r8e(e,n,i,c){return h8e(!0,e,n,i,c)}function bge(e,n,i,c,u){const d=n,h=n,S=vj(c),E=Hxe(d,()=>ie.projectCompilerOptions);M$(E),E.getParsedCommandLine=ae=>$W(ie,ae,bI(ie,ae)),E.resolveModuleNameLiterals=wc(d,d.resolveModuleNameLiterals),E.resolveTypeReferenceDirectiveReferences=wc(d,d.resolveTypeReferenceDirectiveReferences),E.resolveLibrary=wc(d,d.resolveLibrary),E.resolveModuleNames=wc(d,d.resolveModuleNames),E.resolveTypeReferenceDirectives=wc(d,d.resolveTypeReferenceDirectives),E.getModuleResolutionCache=wc(d,d.getModuleResolutionCache);let P,k;!E.resolveModuleNameLiterals&&!E.resolveModuleNames&&(P=a4(E.getCurrentDirectory(),E.getCanonicalFileName),E.resolveModuleNameLiterals=(ae,ve,we,Fe,et)=>KQ(ae,ve,we,Fe,et,d,P,I$),E.getModuleResolutionCache=()=>P),!E.resolveTypeReferenceDirectiveReferences&&!E.resolveTypeReferenceDirectives&&(k=sae(E.getCurrentDirectory(),E.getCanonicalFileName,void 0,P==null?void 0:P.getPackageJsonInfoCache(),P==null?void 0:P.optionsToRedirectsKey),E.resolveTypeReferenceDirectiveReferences=(ae,ve,we,Fe,et)=>KQ(ae,ve,we,Fe,et,d,k,Yae));let F;E.resolveLibrary||(F=a4(E.getCurrentDirectory(),E.getCanonicalFileName,void 0,P==null?void 0:P.getPackageJsonInfoCache()),E.resolveLibrary=(ae,ve,we)=>Zpe(ae,ve,we,d,F)),E.getBuildInfo=(ae,ve)=>EJe(ie,ae,bI(ie,ve),void 0);const{watchFile:$,watchDirectory:J,writeLog:X}=dge(h,c),ie={host:d,hostWithWatch:h,parseConfigFileHost:k$(d),write:wc(d,d.trace),options:c,baseCompilerOptions:S,rootNames:i,baseWatchOptions:u,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:E,moduleResolutionCache:P,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:F,buildOrder:void 0,readFileWithCache:ae=>d.readFile(ae),projectCompilerOptions:S,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:$,watchDirectory:J,writeLog:X};return ie}function cx(e,n){return gm(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function bI(e,n){const{resolvedConfigFilePaths:i}=e,c=i.get(n);if(c!==void 0)return c;const u=cx(e,n);return i.set(n,u),u}function i8e(e){return!!e.options}function o8e(e,n){const i=e.configFileCache.get(n);return i&&i8e(i)?i:void 0}function $W(e,n,i){const{configFileCache:c}=e,u=c.get(i);if(u)return i8e(u)?u:void 0;cf("SolutionBuilder::beforeConfigFileParsing");let d;const{parseConfigFileHost:h,baseCompilerOptions:S,baseWatchOptions:E,extendedConfigCache:P,host:k}=e;let F;return k.getParsedCommandLine?(F=k.getParsedCommandLine(n),F||(d=W_(N.File_0_not_found,n))):(h.onUnRecoverableConfigFileDiagnostic=$=>d=$,F=JG(n,S,h,P,E),h.onUnRecoverableConfigFileDiagnostic=ku),c.set(i,F||d),cf("SolutionBuilder::afterConfigFileParsing"),Tb("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),F}function W$(e,n){return hge(PL(e.compilerHost.getCurrentDirectory(),n))}function a8e(e,n){const i=new Map,c=new Map,u=[];let d,h;for(const E of n)S(E);return h?{buildOrder:d||Yn,circularDiagnostics:h}:d||Yn;function S(E,P){const k=bI(e,E);if(c.has(k))return;if(i.has(k)){P||(h||(h=[])).push(W_(N.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join(`\r +`)));return}i.set(k,!0),u.push(E);const F=$W(e,E,k);if(F&&F.projectReferences)for(const $ of F.projectReferences){const J=W$(e,$.path);S(J,P||$.circular)}u.pop(),c.set(k,!0),(d||(d=[])).push(E)}}function Ase(e){return e.buildOrder||Fct(e)}function Fct(e){const n=a8e(e,e.rootNames.map(u=>W$(e,u)));e.resolvedConfigFilePaths.clear();const i=new Map(vge(n).map(u=>[bI(e,u),!0])),c={onDeleteValue:ku};return wS(e.configFileCache,i,c),wS(e.projectStatus,i,c),wS(e.builderPrograms,i,c),wS(e.diagnostics,i,c),wS(e.projectPendingBuild,i,c),wS(e.projectErrorsReported,i,c),wS(e.buildInfoCache,i,c),wS(e.outputTimeStamps,i,c),e.watch&&(wS(e.allWatchedConfigFiles,i,{onDeleteValue:Ib}),e.allWatchedExtendedConfigFiles.forEach(u=>{u.projects.forEach(d=>{i.has(d)||u.projects.delete(d)}),u.close()}),wS(e.allWatchedWildcardDirectories,i,{onDeleteValue:u=>u.forEach(YE)}),wS(e.allWatchedInputFiles,i,{onDeleteValue:u=>u.forEach(Ib)}),wS(e.allWatchedPackageJsonFiles,i,{onDeleteValue:u=>u.forEach(Ib)})),e.buildOrder=n}function s8e(e,n,i){const c=n&&W$(e,n),u=Ase(e);if(yj(u))return u;if(c){const h=bI(e,c);if(Ho(u,E=>bI(e,E)===h)===-1)return}const d=c?a8e(e,[c]):u;return re.assert(!yj(d)),re.assert(!i||c!==void 0),re.assert(!i||d[d.length-1]===c),i?d.slice(0,d.length-1):d}function bJe(e){e.cache&&Xxe(e);const{compilerHost:n,host:i}=e,c=e.readFileWithCache,u=n.getSourceFile,{originalReadFile:d,originalFileExists:h,originalDirectoryExists:S,originalCreateDirectory:E,originalWriteFile:P,getSourceFileWithCache:k,readFileWithCache:F}=NR(i,$=>cx(e,$),(...$)=>u.call(n,...$));e.readFileWithCache=F,n.getSourceFile=k,e.cache={originalReadFile:d,originalFileExists:h,originalDirectoryExists:S,originalCreateDirectory:E,originalWriteFile:P,originalReadFileWithCache:c,originalGetSourceFile:u}}function Xxe(e){if(!e.cache)return;const{cache:n,host:i,compilerHost:c,extendedConfigCache:u,moduleResolutionCache:d,typeReferenceDirectiveResolutionCache:h,libraryResolutionCache:S}=e;i.readFile=n.originalReadFile,i.fileExists=n.originalFileExists,i.directoryExists=n.originalDirectoryExists,i.createDirectory=n.originalCreateDirectory,i.writeFile=n.originalWriteFile,c.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,u.clear(),d==null||d.clear(),h==null||h.clear(),S==null||S.clear(),e.cache=void 0}function c8e(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function Yxe({projectPendingBuild:e},n,i){const c=e.get(n);(c===void 0||ce.projectPendingBuild.set(bI(e,c),0)),n&&n.throwIfCancellationRequested()}function TJe(e,n){return e.projectPendingBuild.delete(n),e.diagnostics.has(n)?1:0}function u8e(e,n,i,c,u){let d=!0;return{kind:2,project:n,projectPath:i,buildOrder:u,getCompilerOptions:()=>c.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{m8e(e,c,i),d=!1},done:()=>(d&&m8e(e,c,i),cf("SolutionBuilder::Timestamps only updates"),TJe(e,i))}}function Qxe(e,n,i,c,u,d,h){let S=e===0?0:4,E,P,k;return e===0?{kind:e,project:i,projectPath:c,buildOrder:h,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>$(Of),getProgram:()=>$(Ie=>Ie.getProgramOrUndefined()),getSourceFile:Ie=>$(ct=>ct.getSourceFile(Ie)),getSourceFiles:()=>J(Ie=>Ie.getSourceFiles()),getOptionsDiagnostics:Ie=>J(ct=>ct.getOptionsDiagnostics(Ie)),getGlobalDiagnostics:Ie=>J(ct=>ct.getGlobalDiagnostics(Ie)),getConfigFileParsingDiagnostics:()=>J(Ie=>Ie.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(Ie,ct)=>J(Ct=>Ct.getSyntacticDiagnostics(Ie,ct)),getAllDependencies:Ie=>J(ct=>ct.getAllDependencies(Ie)),getSemanticDiagnostics:(Ie,ct)=>J(Ct=>Ct.getSemanticDiagnostics(Ie,ct)),getSemanticDiagnosticsOfNextAffectedFile:(Ie,ct)=>$(Ct=>Ct.getSemanticDiagnosticsOfNextAffectedFile&&Ct.getSemanticDiagnosticsOfNextAffectedFile(Ie,ct)),emit:(Ie,ct,Ct,Lt,Ze)=>{if(Ie||Lt)return $(Ke=>{var st,It;return Ke.emit(Ie,ct,Ct,Lt,Ze||((It=(st=n.host).getCustomTransformers)==null?void 0:It.call(st,i)))});if(dt(2,Ct),S===5)return Fe(ct,Ct);if(S===3)return we(ct,Ct,Ze)},done:F}:{kind:e,project:i,projectPath:c,buildOrder:h,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),emit:(Ie,ct)=>S!==4?k:Pe(Ie,ct),done:F};function F(Ie,ct,Ct){return dt(8,Ie,ct,Ct),cf(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),TJe(n,c)}function $(Ie){return dt(0),E&&Ie(E)}function J(Ie){return $(Ie)||Yn}function X(){var Ie,ct;if(re.assert(E===void 0),n.options.dry){aT(n,N.A_non_dry_build_would_build_project_0,i),P=1,S=7;return}if(n.options.verbose&&aT(n,N.Building_project_0,i),d.fileNames.length===0){Tj(n,c,p4(d)),P=0,S=7;return}const{host:Ct,compilerHost:Lt}=n;n.projectCompilerOptions=d.options,(Ie=n.moduleResolutionCache)==null||Ie.update(d.options),(ct=n.typeReferenceDirectiveResolutionCache)==null||ct.update(d.options),E=Ct.createProgram(d.fileNames,d.options,Lt,_8e(n,c,d),p4(d),d.projectReferences),n.watch&&(n.lastCachedPackageJsonLookups.set(c,n.moduleResolutionCache&&Vn(n.moduleResolutionCache.getPackageJsonInfoCache().entries(),([Ze,Ke])=>[n.host.realpath&&Ke?cx(n,n.host.realpath(Ze)):Ze,Ke])),n.builderPrograms.set(c,E)),S++}function ie(Ie,ct,Ct){Ie.length?{buildResult:P,step:S}=Ege(n,c,E,d,Ie,ct,Ct):S++}function ae(Ie){re.assertIsDefined(E),ie([...E.getConfigFileParsingDiagnostics(),...E.getOptionsDiagnostics(Ie),...E.getGlobalDiagnostics(Ie),...E.getSyntacticDiagnostics(void 0,Ie)],8,"Syntactic")}function ve(Ie){ie(re.checkDefined(E).getSemanticDiagnostics(void 0,Ie),16,"Semantic")}function we(Ie,ct,Ct){var Lt,Ze,Ke;re.assertIsDefined(E),re.assert(S===3);const st=E.saveEmitState();let It;const Yt=En=>(It||(It=[])).push(En),Et=[],{emitResult:at}=bse(E,Yt,void 0,void 0,(En,fr,Tr,Vr,Pn,Fr)=>Et.push({name:En,text:fr,writeByteOrderMark:Tr,data:Fr}),ct,!1,Ct||((Ze=(Lt=n.host).getCustomTransformers)==null?void 0:Ze.call(Lt,i)));if(It)return E.restoreEmitState(st),{buildResult:P,step:S}=Ege(n,c,E,d,It,32,"Declaration file"),{emitSkipped:!0,diagnostics:at.diagnostics};const{host:Qt,compilerHost:nn}=n,Rn=(Ke=E.hasChangedEmitSignature)!=null&&Ke.call(E)?0:2,cn=UL(),qt=new Map,Kt=E.getCompilerOptions(),wr=K9(Kt);let Wr,jt;return Et.forEach(({name:En,text:fr,writeByteOrderMark:Tr,data:Vr})=>{const Pn=cx(n,En);qt.set(cx(n,En),En),Vr!=null&&Vr.buildInfo&&d8e(n,Vr.buildInfo,c,Kt,Rn);const Fr=Vr!=null&&Vr.differsOnlyInMap?ZO(n.host,En):void 0;G9(Ie?{writeFile:Ie}:nn,cn,En,fr,Tr),Vr!=null&&Vr.differsOnlyInMap?n.host.setModifiedTime(En,Fr):!wr&&n.watch&&(Wr||(Wr=rAe(n,c))).set(Pn,jt||(jt=xse(n.host)))}),et(cn,qt,Et.length?Et[0].name:dxe(d,!Qt.useCaseSensitiveFileNames()),Rn),at}function Fe(Ie,ct){re.assertIsDefined(E),re.assert(S===5);const Ct=E.emitBuildInfo((Lt,Ze,Ke,st,It,Yt)=>{Yt!=null&&Yt.buildInfo&&d8e(n,Yt.buildInfo,c,E.getCompilerOptions(),2),Ie?Ie(Lt,Ze,Ke,st,It,Yt):n.compilerHost.writeFile(Lt,Ze,Ke,st,It,Yt)},ct);return Ct.diagnostics.length&&(Dse(n,Ct.diagnostics),n.diagnostics.set(c,[...n.diagnostics.get(c),...Ct.diagnostics]),P=64&P),Ct.emittedFiles&&n.write&&Ct.emittedFiles.forEach(Lt=>eAe(n,d,Lt)),tAe(n,E,d),S=7,Ct}function et(Ie,ct,Ct,Lt){const Ze=Ie.getDiagnostics();return Ze.length?({buildResult:P,step:S}=Ege(n,c,E,d,Ze,64,"Emit"),Ze):(n.write&&ct.forEach(Ke=>eAe(n,d,Ke)),aAe(n,d,c,N.Updating_unchanged_output_timestamps_of_project_0,ct),n.diagnostics.delete(c),n.projectStatus.set(c,{type:1,oldestOutputFileName:Ct}),tAe(n,E,d),S=7,P=Lt,Ze)}function Pe(Ie,ct){var Ct,Lt,Ze,Ke;if(re.assert(e===1),n.options.dry){aT(n,N.A_non_dry_build_would_update_output_of_project_0,i),P=1,S=7;return}n.options.verbose&&aT(n,N.Updating_output_of_project_0,i);const{compilerHost:st}=n;n.projectCompilerOptions=d.options,(Lt=(Ct=n.host).beforeEmitBundle)==null||Lt.call(Ct,d);const It=D4e(d,st,Rn=>{const cn=W$(n,Rn.path);return $W(n,cn,bI(n,cn))},ct||((Ke=(Ze=n.host).getCustomTransformers)==null?void 0:Ke.call(Ze,i)));if(As(It))return aT(n,N.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,i,t1(n,It)),S=6,k=Qxe(0,n,i,c,u,d,h);re.assert(!!It.length);const Yt=UL(),Et=new Map;let at=2;const Qt=n.buildInfoCache.get(c).buildInfo||void 0;return It.forEach(({name:Rn,text:cn,writeByteOrderMark:qt,data:Kt})=>{var wr,Wr;Et.set(cx(n,Rn),Rn),Kt!=null&&Kt.buildInfo&&(((wr=Kt.buildInfo.program)==null?void 0:wr.outSignature)!==((Wr=Qt==null?void 0:Qt.program)==null?void 0:Wr.outSignature)&&(at&=-3),d8e(n,Kt.buildInfo,c,d.options,at)),G9(Ie?{writeFile:Ie}:st,Yt,Rn,cn,qt)}),{emitSkipped:!1,diagnostics:et(Yt,Et,It[0].name,at)}}function dt(Ie,ct,Ct,Lt){for(;S<=Ie&&S<8;){const Ze=S;switch(S){case 0:X();break;case 1:ae(ct);break;case 2:ve(ct);break;case 3:we(Ct,ct,Lt);break;case 5:Fe(Ct,ct);break;case 4:Pe(Ct,Lt);break;case 6:re.checkDefined(k).done(ct,Ct,Lt),S=8;break;case 7:Bct(n,i,c,u,d,h,re.checkDefined(P)),S++;break}re.assert(S>Ze)}}}function Zxe({options:e},n,i){return n.type!==3||e.force?!0:i.fileNames.length===0||!!p4(i).length||!K9(i.options)}function f8e(e,n,i){if(!e.projectPendingBuild.size||yj(n))return;const{options:c,projectPendingBuild:u}=e;for(let d=0;d{const J=re.checkDefined(e.filesWatched.get(S));re.assert(nAe(J)),J.modifiedTime=$,J.callbacks.forEach(X=>X(k,F,$))},c,u,d,h);e.filesWatched.set(S,{callbacks:[i],watcher:P,modifiedTime:E})}return{close:()=>{const P=re.checkDefined(e.filesWatched.get(S));re.assert(nAe(P)),P.callbacks.length===1?(e.filesWatched.delete(S),YE(P)):A8(P.callbacks,i)}}}function rAe(e,n){if(!e.watch)return;let i=e.outputTimeStamps.get(n);return i||e.outputTimeStamps.set(n,i=new Map),i}function d8e(e,n,i,c,u){const d=PR(c),h=iAe(e,d,i),S=xse(e.host);h?(h.buildInfo=n,h.modifiedTime=S,u&2||(h.latestChangedDtsTime=S)):e.buildInfoCache.set(i,{path:cx(e,d),buildInfo:n,modifiedTime:S,latestChangedDtsTime:u&2?void 0:S})}function iAe(e,n,i){const c=cx(e,n),u=e.buildInfoCache.get(i);return(u==null?void 0:u.path)===c?u:void 0}function EJe(e,n,i,c){const u=cx(e,n),d=e.buildInfoCache.get(i);if(d!==void 0&&d.path===u)return d.buildInfo||void 0;const h=e.readFileWithCache(n),S=h?Fme(n,h):void 0;return e.buildInfoCache.set(i,{path:u,buildInfo:S||!1,modifiedTime:c||oP}),S}function oAe(e,n,i,c){const u=SJe(e,n);if(iie&&(X=Ct,ie=Lt),$&&ve.add(cx(e,Ct))}if($){J||(J=kxe($,E,S));for(const Ct of J.roots)if(!ve.has(Ct))return{type:10,buildInfoFile:E,inputFile:Ct}}if(!E){const Ct=Vae(n,!S.useCaseSensitiveFileNames()),Lt=rAe(e,i);for(const Ze of Ct){const Ke=cx(e,Ze);let st=Lt==null?void 0:Lt.get(Ke);if(st||(st=ZO(e.host,Ze),Lt==null||Lt.set(Ke,st)),st===oP)return{type:4,missingOutputFileName:Ze};if(stoAe(e,Ct,k,P));if(Ie)return Ie;const ct=Ot(e.lastCachedPackageJsonLookups.get(i)||Yn,([Ct])=>oAe(e,Ct,k,P));return ct||(et&&Fe?{type:3,outOfDateOutputFileName:P,newerProjectName:Pe}:{type:Fe?2:ae?15:1,newestInputFileTime:ie,newestInputFileName:X,oldestOutputFileName:P})}function xJe(e,n,i){return e.buildInfoCache.get(i).path===n.path}function p8e(e,n,i){if(n===void 0)return{type:0,reason:"File deleted mid-build"};const c=e.projectStatus.get(i);if(c!==void 0)return c;cf("SolutionBuilder::beforeUpToDateCheck");const u=Wct(e,n,i);return cf("SolutionBuilder::afterUpToDateCheck"),Tb("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(i,u),u}function aAe(e,n,i,c,u){if(n.options.noEmit)return;let d;const h=PR(n.options);if(h){u!=null&&u.has(cx(e,h))||(e.options.verbose&&aT(e,c,n.options.configFilePath),e.host.setModifiedTime(h,d=xse(e.host)),iAe(e,h,i).modifiedTime=d),e.outputTimeStamps.delete(i);return}const{host:S}=e,E=Vae(n,!S.useCaseSensitiveFileNames()),P=rAe(e,i),k=P?new Set:void 0;if(!u||E.length!==u.size){let F=!!e.options.verbose;for(const $ of E){const J=cx(e,$);u!=null&&u.has(J)||(F&&(F=!1,aT(e,c,n.options.configFilePath)),S.setModifiedTime($,d||(d=xse(e.host))),P&&(P.set(J,d),k.add(J)))}}P==null||P.forEach((F,$)=>{!(u!=null&&u.has($))&&!k.has($)&&P.delete($)})}function xge(e,n,i){if(!n.composite)return;const c=re.checkDefined(e.buildInfoCache.get(i));if(c.latestChangedDtsTime!==void 0)return c.latestChangedDtsTime||void 0;const u=c.buildInfo&&c.buildInfo.program&&c.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(vf(c.buildInfo.program.latestChangedDtsFile,ws(c.path))):void 0;return c.latestChangedDtsTime=u||!1,u}function m8e(e,n,i){if(e.options.dry)return aT(e,N.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);aAe(e,n,i,N.Updating_output_timestamps_of_project_0),e.projectStatus.set(i,{type:1,oldestOutputFileName:dxe(n,!e.host.useCaseSensitiveFileNames())})}function Bct(e,n,i,c,u,d,h){if(!(h&124)&&u.options.composite)for(let S=c+1;Se.diagnostics.has(bI(e,P)))?E?2:1:0}function g8e(e,n,i){cf("SolutionBuilder::beforeClean");const c=DJe(e,n,i);return cf("SolutionBuilder::afterClean"),Tb("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),c}function DJe(e,n,i){const c=s8e(e,n,i);if(!c)return 3;if(yj(c))return Dse(e,c.circularDiagnostics),4;const{options:u,host:d}=e,h=u.dry?[]:void 0;for(const S of c){const E=bI(e,S),P=$W(e,S,E);if(P===void 0){wJe(e,E);continue}const k=Vae(P,!d.useCaseSensitiveFileNames());if(!k.length)continue;const F=new Set(P.fileNames.map($=>cx(e,$)));for(const $ of k)F.has(cx(e,$))||d.fileExists($)&&(h?h.push($):(d.deleteFile($),Age(e,E,0)))}return h&&aT(e,N.A_non_dry_build_would_delete_the_following_files_Colon_0,h.map(S=>`\r + * ${S}`).join("")),0}function Age(e,n,i){e.host.getParsedCommandLine&&i===1&&(i=2),i===2&&(e.configFileCache.delete(n),e.buildOrder=void 0),e.needsSummary=!0,c8e(e,n),Yxe(e,n,i),bJe(e)}function uZ(e,n,i){e.reportFileChangeDetected=!0,Age(e,n,i),IJe(e,250,!0)}function IJe(e,n,i){const{hostWithWatch:c}=e;!c.setTimeout||!c.clearTimeout||(e.timerToBuildInvalidatedProject&&c.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=c.setTimeout(zct,n,"timerToBuildInvalidatedProject",e,i))}function zct(e,n,i){cf("SolutionBuilder::beforeBuild");const c=kJe(n,i);cf("SolutionBuilder::afterBuild"),Tb("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c&&Ad(n,c)}function kJe(e,n){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),cAe(e,N.File_change_detected_Starting_incremental_compilation));let i=0;const c=Ase(e),u=Sge(e,c,!1);if(u)for(u.done(),i++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const d=f8e(e,c,!1);if(!d)break;if(d.kind!==2&&(n||i===5)){IJe(e,100,!1);return}Tge(e,d,c).done(),d.kind!==2&&i++}return Xxe(e),c}function wb(e,n,i,c){!e.watch||e.allWatchedConfigFiles.has(i)||e.allWatchedConfigFiles.set(i,Cse(e,n,()=>uZ(e,i,2),2e3,c==null?void 0:c.watchOptions,r0.ConfigFile,n))}function aS(e,n,i){D$(n,i==null?void 0:i.options,e.allWatchedExtendedConfigFiles,(c,u)=>Cse(e,c,()=>{var d;return(d=e.allWatchedExtendedConfigFiles.get(u))==null?void 0:d.projects.forEach(h=>uZ(e,h,2))},2e3,i==null?void 0:i.watchOptions,r0.ExtendedConfigFile),c=>cx(e,c))}function sAe(e,n,i,c){e.watch&&jW(t8e(e.allWatchedWildcardDirectories,i),new Map(Object.entries(c.wildcardDirectories)),(u,d)=>e.watchDirectory(u,h=>{var S;dC({watchedDirPath:cx(e,u),fileOrDirectory:h,fileOrDirectoryPath:cx(e,h),configFileName:n,currentDirectory:e.compilerHost.getCurrentDirectory(),options:c.options,program:e.builderPrograms.get(i)||((S=o8e(e,i))==null?void 0:S.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:E=>e.writeLog(E),toPath:E=>cx(e,E)})||uZ(e,i,1)},d,c==null?void 0:c.watchOptions,r0.WildcardDirectory,n))}function fZ(e,n,i,c){e.watch&&a6(t8e(e.allWatchedInputFiles,i),QT(c.fileNames,u=>cx(e,u)),{createNewValue:(u,d)=>Cse(e,d,()=>uZ(e,i,0),250,c==null?void 0:c.watchOptions,r0.SourceFile,n),onDeleteValue:Ib})}function bj(e,n,i,c){!e.watch||!e.lastCachedPackageJsonLookups||a6(t8e(e.allWatchedPackageJsonFiles,i),new Map(e.lastCachedPackageJsonLookups.get(i)),{createNewValue:(u,d)=>Cse(e,u,()=>uZ(e,i,0),2e3,c==null?void 0:c.watchOptions,r0.PackageJson,n),onDeleteValue:Ib})}function PJe(e,n){if(e.watchAllProjectsPending){cf("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const i of vge(n)){const c=bI(e,i),u=$W(e,i,c);wb(e,i,c,u),aS(e,c,u),u&&(sAe(e,i,c,u),fZ(e,i,c,u),bj(e,i,c,u))}cf("SolutionBuilder::afterWatcherCreation"),Tb("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function NJe(e){Mh(e.allWatchedConfigFiles,Ib),Mh(e.allWatchedExtendedConfigFiles,YE),Mh(e.allWatchedWildcardDirectories,n=>Mh(n,YE)),Mh(e.allWatchedInputFiles,n=>Mh(n,Ib)),Mh(e.allWatchedPackageJsonFiles,n=>Mh(n,Ib))}function h8e(e,n,i,c,u){const d=bge(e,n,i,c,u);return{build:(h,S,E,P)=>AJe(d,h,S,E,P),clean:h=>g8e(d,h),buildReferences:(h,S,E,P)=>AJe(d,h,S,E,P,!0),cleanReferences:h=>g8e(d,h,!0),getNextInvalidatedProject:h=>(l8e(d,h),Sge(d,Ase(d),!1)),getBuildOrder:()=>Ase(d),getUpToDateStatusOfProject:h=>{const S=W$(d,h),E=bI(d,S);return p8e(d,$W(d,S,E),E)},invalidateProject:(h,S)=>Age(d,h,S||0),close:()=>NJe(d)}}function t1(e,n){return PX(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function aT(e,n,...i){e.host.reportSolutionBuilderStatus(W_(n,...i))}function cAe(e,n,...i){var c,u;(u=(c=e.hostWithWatch).onWatchStatusChange)==null||u.call(c,W_(n,...i),e.host.getNewLine(),e.baseCompilerOptions)}function Dse({host:e},n){n.forEach(i=>e.reportDiagnostic(i))}function Tj(e,n,i){Dse(e,i),e.projectErrorsReported.set(n,!0),i.length&&e.diagnostics.set(n,i)}function wJe(e,n){Tj(e,n,[e.configFileCache.get(n)])}function Ad(e,n){if(!e.needsSummary)return;e.needsSummary=!1;const i=e.watch||!!e.host.reportErrorSummary,{diagnostics:c}=e;let u=0,d=[];yj(n)?(y8e(e,n.buildOrder),Dse(e,n.circularDiagnostics),i&&(u+=pse(n.circularDiagnostics)),i&&(d=[...d,...aZ(n.circularDiagnostics)])):(n.forEach(h=>{const S=bI(e,h);e.projectErrorsReported.has(S)||Dse(e,c.get(S)||Yn)}),i&&c.forEach(h=>u+=pse(h)),i&&c.forEach(h=>[...d,...aZ(h)])),e.watch?cAe(e,mse(u),u):e.host.reportErrorSummary&&e.host.reportErrorSummary(u,d)}function y8e(e,n){e.options.verbose&&aT(e,N.Projects_in_this_build_Colon_0,n.map(i=>`\r + * `+t1(e,i)).join(""))}function RJe(e,n,i){switch(i.type){case 6:return aT(e,N.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(e,n),t1(e,i.outOfDateOutputFileName),t1(e,i.newerInputFileName));case 7:return aT(e,N.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(e,n),t1(e,i.outOfDateOutputFileName),t1(e,i.newerProjectName));case 4:return aT(e,N.Project_0_is_out_of_date_because_output_file_1_does_not_exist,t1(e,n),t1(e,i.missingOutputFileName));case 5:return aT(e,N.Project_0_is_out_of_date_because_there_was_error_reading_file_1,t1(e,n),t1(e,i.fileName));case 8:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,t1(e,n),t1(e,i.buildInfoFile));case 9:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,t1(e,n),t1(e,i.buildInfoFile));case 10:return aT(e,N.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,t1(e,n),t1(e,i.buildInfoFile),t1(e,i.inputFile));case 1:if(i.newestInputFileTime!==void 0)return aT(e,N.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,t1(e,n),t1(e,i.newestInputFileName||""),t1(e,i.oldestOutputFileName||""));break;case 3:return aT(e,N.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,t1(e,n),t1(e,i.newerProjectName));case 2:return aT(e,N.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,t1(e,n));case 15:return aT(e,N.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,t1(e,n));case 11:return aT(e,N.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,t1(e,n),t1(e,i.upstreamProjectName));case 12:return aT(e,i.upstreamProjectBlocked?N.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:N.Project_0_can_t_be_built_because_its_dependency_1_has_errors,t1(e,n),t1(e,i.upstreamProjectName));case 0:return aT(e,N.Failed_to_parse_file_0_Colon_1,t1(e,n),i.reason);case 14:return aT(e,N.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,t1(e,n),i.version,At);case 17:return aT(e,N.Project_0_is_being_forcibly_rebuilt,t1(e,n))}}function lAe(e,n,i){e.options.verbose&&RJe(e,n,i)}var MJe,LJe,uAe,v8e=G({"src/compiler/tsbuildPublic.ts"(){md(),iP(),MJe=new Date(-864e13),LJe=new Date(864e13),uAe=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(uAe||{})}}),md=G({"src/compiler/_namespaces/ts.ts"(){tr(),Ez(),hTe(),en(),eS(),$p(),Dat(),bTe(),V_e(),TMe(),SMe(),FVe(),BMe(),iUe(),lst(),ust(),fst(),Zde(),A6e(),Wp(),k6e(),Xi(),Cst(),ZEe(),XUe(),nj(),ime(),gHe(),G2e(),PHe(),RHe(),Hst(),Qst(),X2e(),rct(),ict(),oct(),VHe(),UHe(),lct(),uct(),HHe(),JHe(),$He(),m4e(),fct(),_ct(),dct(),pct(),mct(),YHe(),hct(),ZHe(),cxe(),u4(),eJe(),yct(),Ect(),Gae(),kct(),R4e(),B3(),tZ(),rJe(),H4e(),gJe(),zxe(),e8e(),Kxe(),Lct(),v8e(),B2e(),iP()}});function b8e(e){return w0.args.includes(e)}function fAe(e){const n=w0.args.indexOf(e);return n>=0&&n{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(Cge||(Cge={})),mAe=` `}}),FJe=G({"src/jsTyping/types.ts"(){}}),kse=G({"src/jsTyping/_namespaces/ts.server.ts"(){OJe(),FJe()}});function E8e(e,n){return new ZT(T8(n,`ts${ot}`)||T8(n,"latest")).compareTo(e.version)<=0}function x8e(e){return Pge.has(e)?"node":e}function WJe(e,n){const i=iQ(n,c=>e.readFile(c));return new Map(Object.entries(i.config))}function A8e(e,n){var i;const c=iQ(n,u=>e.readFile(u));if((i=c.config)!=null&&i.simpleMap)return new Map(Object.entries(c.config.simpleMap))}function Gct(e,n,i,c,u,d,h,S,E,P){if(!h||!h.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const k=new Map;i=Qo(i,et=>{const Pe=hf(et);if(eD(Pe))return Pe});const F=[];h.include&&ve(h.include,"Explicitly included types");const $=h.exclude||[];if(!P.types){const et=new Set(i.map(ws));et.add(c),et.forEach(Pe=>{we(Pe,"bower.json","bower_components",F),we(Pe,"package.json","node_modules",F)})}if(h.disableFilenameBasedTypeAcquisition||Fe(i),S){const et=th(S.map(x8e),ZA,Fp);ve(et,"Inferred typings from unresolved imports")}for(const et of $)k.delete(et)&&n&&n(`Typing for ${et} is in exclude list, will be ignored.`);d.forEach((et,Pe)=>{const dt=E.get(Pe);k.get(Pe)===!1&&dt!==void 0&&E8e(et,dt)&&k.set(Pe,et.typingLocation)});const J=[],X=[];k.forEach((et,Pe)=>{et?X.push(et):J.push(Pe)});const ie={cachedTypingPaths:X,newTypingNames:J,filesToWatch:F};return n&&n(`Finished typings discovery:${qW(ie)}`),ie;function ae(et){k.has(et)||k.set(et,!1)}function ve(et,Pe){n&&n(`${Pe}: ${JSON.stringify(et)}`),Ot(et,ae)}function we(et,Pe,dt,Ie){const ct=vl(et,Pe);let Ct,Lt;e.fileExists(ct)&&(Ie.push(ct),Ct=iQ(ct,It=>e.readFile(It)).config,Lt=ea([Ct.dependencies,Ct.devDependencies,Ct.optionalDependencies,Ct.peerDependencies],ET),ve(Lt,`Typing names in '${ct}' dependencies`));const Ze=vl(et,dt);if(Ie.push(Ze),!e.directoryExists(Ze))return;const Ke=[],st=Lt?Lt.map(It=>vl(Ze,It,Pe)):e.readDirectory(Ze,[".json"],void 0,void 0,3).filter(It=>{if(Jg(It)!==Pe)return!1;const Yt=qc(hf(It)),Et=Yt[Yt.length-3][0]==="@";return Et&&Q0(Yt[Yt.length-4])===dt||!Et&&Q0(Yt[Yt.length-3])===dt});n&&n(`Searching for typing names in ${Ze}; all files: ${JSON.stringify(st)}`);for(const It of st){const Yt=hf(It),at=iQ(Yt,nn=>e.readFile(nn)).config;if(!at.name)continue;const Qt=at.types||at.typings;if(Qt){const nn=vf(Qt,ws(Yt));e.fileExists(nn)?(n&&n(` Package '${at.name}' provides its own types.`),k.set(at.name,nn)):n&&n(` Package '${at.name}' provides its own types but they are missing.`)}else Ke.push(at.name)}ve(Ke," Found package names")}function Fe(et){const Pe=Qo(et,Ie=>{if(!eD(Ie))return;const ct=wg(Q0(Jg(Ie))),Ct=Ub(ct);return u.get(Ct)});Pe.length&&ve(Pe,"Inferred typings from file names"),gt(et,Ie=>mm(Ie,".jsx"))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),ae("react"))}}function jct(e){return gAe(e,!0)}function gAe(e,n){if(!e)return 1;if(e.length>NA)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(n){const i=/^@([^/]+)\/([^/]+)$/.exec(e);if(i){const c=gAe(i[1],!1);if(c!==0)return{name:i[1],isScopeName:!0,result:c};const u=gAe(i[2],!1);return u!==0?{name:i[2],isScopeName:!1,result:u}:0}}return encodeURIComponent(e)!==e?5:0}function Vct(e,n){return typeof e=="object"?Dge(n,e.result,e.name,e.isScopeName):Dge(n,e,n,!1)}function Dge(e,n,i,c){const u=c?"Scope":"Package";switch(n){case 1:return`'${e}':: ${u} name '${i}' cannot be empty`;case 2:return`'${e}':: ${u} name '${i}' should be less than ${NA} characters`;case 3:return`'${e}':: ${u} name '${i}' cannot start with '.'`;case 4:return`'${e}':: ${u} name '${i}' cannot start with '_'`;case 5:return`'${e}':: ${u} name '${i}' contains non URI safe characters`;case 0:return re.fail();default:re.assertNever(n)}}var hAe,Ige,kge,Pge,Nge,NA,C8e=G({"src/jsTyping/jsTyping.ts"(){B$(),kse(),hAe=["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"],Ige=hAe.map(e=>`node:${e}`),kge=[...hAe,...Ige],Pge=new Set(kge),Nge=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(Nge||{}),NA=214}}),kk={};Oe(kk,{NameValidationResult:()=>Nge,discoverTypings:()=>Gct,isTypingUpToDate:()=>E8e,loadSafeList:()=>WJe,loadTypesMap:()=>A8e,nodeCoreModuleList:()=>kge,nodeCoreModules:()=>Pge,nonRelativeModuleNameForTypingCache:()=>x8e,prefixedNodeCoreModuleList:()=>Ige,renderPackageNameValidationFailure:()=>Vct,validatePackageName:()=>jct});var D8e=G({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){C8e()}}),B$=G({"src/jsTyping/_namespaces/ts.ts"(){md(),D8e(),kse()}});function pZ(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` `,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 mZ,Pse,wge,z$,lx,Nse,wse,Rse,Mse,Lse,Ose,Fse,Rge,Wse,G$,z3,yAe,gZ,vAe,bAe,TAe,SAe,Bse,zse=G({"src/services/types.ts"(){(e=>{class n{constructor(u){this.text=u}getText(u,d){return u===0&&d===this.text.length?this.text:this.text.substring(u,d)}getLength(){return this.text.length}getChangeRange(){}}function i(c){return new n(c)}e.fromString=i})(mZ||(mZ={})),Pse=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(Pse||{}),wge=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(wge||{}),z$=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(z$||{}),lx={},Nse=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Nse||{}),wse=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(wse||{}),Rse=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Rse||{}),Mse=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Mse||{}),Lse=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Lse||{}),Ose=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(Ose||{}),Fse=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Fse||{}),Rge=pZ(` -`),Wse=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Wse||{}),G$=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(G$||{}),z3=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(z3||{}),yAe=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(yAe||{}),gZ=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(gZ||{}),vAe=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(vAe||{}),bAe=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(bAe||{}),TAe=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(TAe||{}),SAe=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(SAe||{}),Bse=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(Bse||{})}});function j$(e){switch(e.kind){case 260:return Cs(e)&&VTe(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return dh(e)||YN(e)===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 xF(e){e=zge(e);const n=e.parent;return e.kind===312?1:my(n)||gy(n)||KE(n)||qE(n)||Tk(n)||Yb(n)&&e===n.name?7:Gse(e)?BJe(e):ON(e)?j$(n):kT(e)&&Ua(e,bb(FJ,F8,ZL))?7:jse(e)?2:EAe(e)?4:Np(n)?(re.assert(CA(n.parent)),2):S3(n)?3:1}function BJe(e){const n=e.kind===166?e:Pu(e.parent)&&e.parent.right===e?e.parent:void 0;return n&&n.parent.kind===271?7:4}function Gse(e){for(;e.parent.kind===166;)e=e.parent;return $M(e.parent)&&e.parent.moduleReference===e}function EAe(e){return Uct(e)||Hct(e)}function Uct(e){let n=e,i=!0;if(n.parent.kind===166){for(;n.parent&&n.parent.kind===166;)n=n.parent;i=n.right===e}return n.parent.kind===183&&!i}function Hct(e){let n=e,i=!0;if(n.parent.kind===211){for(;n.parent&&n.parent.kind===211;)n=n.parent;i=n.name===e}if(!i&&n.parent.kind===233&&n.parent.parent.kind===298){const c=n.parent.parent.parent;return c.kind===263&&n.parent.parent.token===119||c.kind===264&&n.parent.parent.token===96}return!1}function jse(e){switch(z7(e)&&(e=e.parent),e.kind){case 110:return!ZD(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return BE(e.parent)}return!1}function hZ(e,n=!1,i=!1){return G3(e,xd,Vse,n,i)}function V$(e,n=!1,i=!1){return G3(e,sb,Vse,n,i)}function yZ(e,n=!1,i=!1){return G3(e,sk,Vse,n,i)}function vZ(e,n=!1,i=!1){return G3(e,Dm,I8e,n,i)}function bZ(e,n=!1,i=!1){return G3(e,Jh,Vse,n,i)}function Mge(e,n=!1,i=!1){return G3(e,m1,zJe,n,i)}function Vse(e){return e.expression}function I8e(e){return e.tag}function zJe(e){return e.tagName}function G3(e,n,i,c,u){let d=c?Lge(e):TZ(e);return u&&(d=iv(d)),!!d&&!!d.parent&&n(d.parent)&&i(d.parent)===d}function TZ(e){return sS(e)?e.parent:e}function Lge(e){return sS(e)||Oge(e)?e.parent:e}function SZ(e,n){for(;e;){if(e.kind===256&&e.label.escapedText===n)return e.label;e=e.parent}}function xj(e,n){return Ac(e.expression)?e.expression.name.text===n:!1}function EZ(e){var n;return xn(e)&&((n=to(e.parent,M8))==null?void 0:n.label)===e}function j3(e){var n;return xn(e)&&((n=to(e.parent,tF))==null?void 0:n.label)===e}function g4(e){return j3(e)||EZ(e)}function KW(e){var n;return((n=to(e.parent,d7))==null?void 0:n.tagName)===e}function wA(e){var n;return((n=to(e.parent,Pu))==null?void 0:n.right)===e}function sS(e){var n;return((n=to(e.parent,Ac))==null?void 0:n.name)===e}function Oge(e){var n;return((n=to(e.parent,Hm))==null?void 0:n.argumentExpression)===e}function U$(e){var n;return((n=to(e.parent,py))==null?void 0:n.name)===e}function H$(e){var n;return xn(e)&&((n=to(e.parent,F_))==null?void 0:n.name)===e}function xZ(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return i_(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function AZ(e){return Mx(e.parent.parent)&&oG(e.parent.parent)===e}function RR(e){for(b2(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function h4(e){switch(e.kind){case 312:return Bv(e)?"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 n(e);case 208:return n(vA(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:i}=e;return F_(i)?"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 ul(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const c=jy(e),{right:u}=e;switch(c){case 7:case 8:case 9:case 0:return"";case 1:case 2:const h=h4(u);return h===""?"const":h;case 3:return Jm(u)?"method":"property";case 4:return"property";case 5:return Jm(u)?"method":"property";case 6:return"local class";default:return""}case 80:return Tk(e.parent)?"alias":"";case 277:const d=h4(e.expression);return d===""?"const":d;default:return""}function n(i){return rH(i)?"const":UM(i)?"let":"var"}}function AF(e){switch(e.kind){case 110:return!0;case 80:return $L(e)&&e.parent.kind===169;default:return!1}}function Ux(e,n){const i=eR(n),c=n.getLineAndCharacterOfPosition(e).line;return i[c]}function ov(e,n){return Wm(e.pos,e.end,n)}function Use(e,n){return XW(e,n.pos)&&XW(e,n.end)}function CZ(e,n){return e.pos<=n&&n<=e.end}function XW(e,n){return e.pos=i.end}function Aj(e,n,i){return e.pos<=n&&e.end>=i}function J$(e,n,i){return Wge(e.pos,e.end,n,i)}function Fge(e,n,i,c){return Wge(e.getStart(n),e.end,i,c)}function Wge(e,n,i,c){const u=Math.max(e,i),d=Math.min(n,c);return uc.kind===n)}function $se(e){const n=lr(e.parent.getChildren(),i=>AW(i)&&ov(i,e));return re.assert(!n||ni(n.getChildren(),e)),n}function GJe(e){return e.kind===90}function jJe(e){return e.kind===86}function k8e(e){return e.kind===100}function CAe(e){if(mp(e))return e.name;if(Ih(e)){const n=e.modifiers&&lr(e.modifiers,GJe);if(n)return n}if(v0(e)){const n=lr(e.getChildren(),jJe);if(n)return n}}function Hx(e){if(mp(e))return e.name;if(mg(e)){const n=lr(e.modifiers,GJe);if(n)return n}if(Jm(e)){const n=lr(e.getChildren(),k8e);if(n)return n}}function qse(e){let n;return Ua(e,i=>(pc(i)&&(n=i),!Pu(i.parent)&&!pc(i.parent)&&!rb(i.parent))),n}function bf(e,n){if(e.flags&16777216)return;const i=aq(e,n);if(i)return i;const c=qse(e);return c&&n.getTypeAtLocation(c)}function VJe(e,n){if(!n)switch(e.kind){case 263:case 231:return CAe(e);case 262:case 218:return Hx(e);case 176:return e}if(mp(e))return e.name}function P8e(e,n){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Oy(e.importClause.namedBindings)){const i=Vb(e.importClause.namedBindings.elements);return i?i.name:void 0}else if(mh(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!n)return e.moduleSpecifier}function Bge(e,n){if(e.exportClause){if(j0(e.exportClause))return Vb(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(G0(e.exportClause))return e.exportClause.name}if(!n)return e.moduleSpecifier}function Cj(e){if(e.types.length===1)return e.types[0].expression}function T0(e,n){const{parent:i}=e;if(Mf(e)&&(n||e.kind!==90)?DA(i)&&ni(i.modifiers,e):e.kind===86?Ih(i)||v0(e):e.kind===100?mg(i)||Jm(e):e.kind===120?xp(i):e.kind===94?xP(i):e.kind===156?z0(i):e.kind===145||e.kind===144?py(i):e.kind===102?Yb(i):e.kind===139?lE(i):e.kind===153&&Xb(i)){const c=VJe(i,n);if(c)return c}if((e.kind===115||e.kind===87||e.kind===121)&&Kp(i)&&i.declarations.length===1){const c=i.declarations[0];if(xn(c.name))return c.name}if(e.kind===156){if(Tk(i)&&i.isTypeOnly){const c=P8e(i.parent,n);if(c)return c}if(ry(i)&&i.isTypeOnly){const c=Bge(i,n);if(c)return c}}if(e.kind===130){if(qE(i)&&i.propertyName||gy(i)&&i.propertyName||mh(i)||G0(i))return i.name;if(ry(i)&&i.exportClause&&G0(i.exportClause))return i.exportClause.name}if(e.kind===102&&n0(i)){const c=P8e(i,n);if(c)return c}if(e.kind===95){if(ry(i)){const c=Bge(i,n);if(c)return c}if(my(i))return iv(i.expression)}if(e.kind===149&&KE(i))return i.expression;if(e.kind===161&&(n0(i)||ry(i))&&i.moduleSpecifier)return i.moduleSpecifier;if((e.kind===96||e.kind===119)&&Qb(i)&&i.token===e.kind){const c=Cj(i);if(c)return c}if(e.kind===96){if(Np(i)&&i.constraint&&uE(i.constraint))return i.constraint.typeName;if(Q7(i)&&uE(i.extendsType))return i.extendsType.typeName}if(e.kind===140&&KN(i))return i.typeParameter.name;if(e.kind===103&&Np(i)&&LJ(i.parent))return i.name;if(e.kind===143&&_I(i)&&i.operator===143&&uE(i.type))return i.type.typeName;if(e.kind===148&&_I(i)&&i.operator===148&&GY(i.type)&&uE(i.type.elementType))return i.type.elementType.typeName;if(!n){if((e.kind===105&&sb(i)||e.kind===116&&Z7(i)||e.kind===114&&yk(i)||e.kind===135&&ys(i)||e.kind===127&&t0(i)||e.kind===91&&h6(i))&&i.expression)return iv(i.expression);if((e.kind===103||e.kind===104)&&Ds(i)&&i.operatorToken===e)return iv(i.right);if(e.kind===130&&eF(i)&&uE(i.type))return i.type.typeName;if(e.kind===103&&lpe(i)||e.kind===165&&Bx(i))return iv(i.expression)}return e}function zge(e){return T0(e,!1)}function DZ(e){return T0(e,!0)}function cS(e,n){return MR(e,n,i=>Qv(i)||qb(i.kind)||Lu(i))}function MR(e,n,i){return Kse(e,n,!1,i,!1)}function Lf(e,n){return Kse(e,n,!0,void 0,!1)}function Kse(e,n,i,c,u){let d=e,h;e:for(;;){const E=d.getChildren(e),P=WD(E,n,(k,F)=>F,(k,F)=>{const $=E[k].getEnd();if($n?1:S(E[k],J,$)?E[k-1]&&S(E[k-1])?1:0:c&&J===n&&E[k-1]&&E[k-1].getEnd()===n&&S(E[k-1])?1:-1});if(h)return h;if(P>=0&&E[P]){d=E[P];continue e}return d}function S(E,P,k){if(k??(k=E.getEnd()),kn))return!1;if(ni.getStart(e)&&n(d.pos<=e.pos&&d.end>e.end||d.pos===e.end)&&OR(d,i)?c(d):void 0)}}function bv(e,n,i,c){const u=d(i||n);return re.assert(!(u&&Yse(u))),u;function d(h){if(N8e(h)&&h.kind!==1)return h;const S=h.getChildren(n),E=WD(S,e,(k,F)=>F,(k,F)=>e=S[k-1].end?0:1:-1);if(E>=0&&S[E]){const k=S[E];if(e=e||!OR(k,n)||Yse(k)){const J=jge(S,E,n,h.kind);return J?!c&&Y1(J)&&J.getChildren(n).length?d(J):IZ(J,n):void 0}else return d(k)}re.assert(i!==void 0||h.kind===312||h.kind===1||Y1(h));const P=jge(S,S.length,n,h.kind);return P&&IZ(P,n)}}function N8e(e){return a7(e)&&!Yse(e)}function IZ(e,n){if(N8e(e))return e;const i=e.getChildren(n);if(i.length===0)return e;const c=jge(i,i.length,n,e.kind);return c&&IZ(c,n)}function jge(e,n,i,c){for(let u=n-1;u>=0;u--){const d=e[u];if(Yse(d))u===0&&(c===12||c===285)&&re.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(OR(e[u],i))return e[u]}}function V3(e,n,i=bv(n,e)){if(i&&JX(i)){const c=i.getStart(e),u=i.getEnd();if(ci.getStart(e)}function $$(e,n){const i=Lf(e,n);return!!(SR(i)||i.kind===19&&CP(i.parent)&&zx(i.parent.parent)||i.kind===30&&m1(i.parent)&&zx(i.parent.parent))}function Zse(e,n){function i(c){for(;c;)if(c.kind>=285&&c.kind<=294||c.kind===12||c.kind===30||c.kind===32||c.kind===80||c.kind===20||c.kind===19||c.kind===44)c=c.parent;else if(c.kind===284){if(n>c.getStart(e))return!0;c=c.parent}else return!1;return!1}return i(Lf(e,n))}function q$(e,n,i){const c=Cf(e.kind),u=Cf(n),d=e.getFullStart(),h=i.text.lastIndexOf(u,d);if(h===-1)return;if(i.text.lastIndexOf(c,d-1)!!d.typeParameters&&d.typeParameters.length>=n)}function K$(e,n){if(n.text.lastIndexOf("<",e?e.pos:n.text.length)===-1)return;let i=e,c=0,u=0;for(;i;){switch(i.kind){case 30:if(i=bv(i.getFullStart(),n),i&&i.kind===29&&(i=bv(i.getFullStart(),n)),!i||!xn(i))return;if(!c)return ON(i)?void 0:{called:i,nTypeArguments:u};c--;break;case 50:c=3;break;case 49:c=2;break;case 32:c++;break;case 20:if(i=q$(i,19,n),!i)return;break;case 22:if(i=q$(i,21,n),!i)return;break;case 24:if(i=q$(i,23,n),!i)return;break;case 28:u++;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(pc(i))break;return}i=bv(i.getFullStart(),n)}}function tw(e,n,i){return V0.getRangeOfEnclosingComment(e,n,void 0,i)}function DAe(e,n){const i=Lf(e,n);return!!Ua(i,uC)}function OR(e,n){return e.kind===1?!!e.jsDoc:e.getWidth(n)!==0}function X$(e,n=0){const i=[],c=PT(e)?K_e(e)&~n:0;return c&2&&i.push("private"),c&4&&i.push("protected"),c&1&&i.push("public"),(c&256||Ep(e))&&i.push("static"),c&64&&i.push("abstract"),c&32&&i.push("export"),c&65536&&i.push("deprecated"),e.flags&33554432&&i.push("declare"),e.kind===277&&i.push("export"),i.length>0?i.join(","):""}function IAe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(F_(e)||e.kind===263||e.kind===264)return e.typeParameters}function ece(e){return e===2||e===3}function tce(e){return!!(e===11||e===14||VC(e))}function gE(e,n,i){return!!(n.flags&4)&&e.isEmptyAnonymousObjectType(i)}function Hge(e){if(!e.isIntersection())return!1;const{types:n,checker:i}=e;return n.length===2&&(gE(i,n[0],n[1])||gE(i,n[1],n[0]))}function Y$(e,n,i){return VC(e.kind)&&e.getStart(i){const i=vm(n);return!e[i]&&(e[i]=!0)}}function Ij(e){return e.getText(0,e.getLength())}function Pk(e,n){let i="";for(let c=0;c!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!(n.externalModuleIndicator||n.commonJsModuleIndicator))}function Jge(e){return e.getSourceFiles().some(n=>!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function OZ(e){return!!e.module||iu(e)>=2||!!e.noEmit}function v4(e,n){return{fileExists:i=>e.fileExists(i),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:wc(n,n.readFile),useCaseSensitiveFileNames:wc(n,n.useCaseSensitiveFileNames),getSymlinkCache:wc(n,n.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:wc(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var i;return(i=e.getModuleResolutionCache())==null?void 0:i.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wc(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:i=>e.getProjectReferenceRedirect(i),isSourceOfProjectReferenceRedirect:i=>e.isSourceOfProjectReferenceRedirect(i),getNearestAncestorDirectoryWithPackageJson:wc(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function FZ(e,n){return{...v4(e,n),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function kj(e){return e===2||e>=3&&e<=99||e===100}function rce(e,n,i,c){return e||n&&n.length?Nk(e,n,i,c):void 0}function Nk(e,n,i,c,u){return he.createImportDeclaration(void 0,e||n?he.createImportClause(!!u,e,n&&n.length?he.createNamedImports(n):void 0):void 0,typeof i=="string"?Pj(i,c):i,void 0)}function Pj(e,n){return he.createStringLiteral(e,n===0)}function YW(e,n){return aH(e,n)?1:0}function OS(e,n){if(n.quotePreference&&n.quotePreference!=="auto")return n.quotePreference==="single"?0:1;{const i=e.imports&&lr(e.imports,c=>Sd(c)&&!Hd(c.parent));return i?YW(i,e):1}}function ice(e){switch(e){case 0:return"'";case 1:return'"';default:return re.assertNever(e)}}function IF(e){const n=$ge(e);return n===void 0?void 0:Ic(n)}function $ge(e){return e.escapedName!=="default"?e.escapedName:Yr(e.declarations,n=>{const i=i_(n);return i&&i.kind===80?i.escapedText:void 0})}function WZ(e){return Cm(e)&&(KE(e.parent)||n0(e.parent)||y1(e.parent,!1)&&e.parent.arguments[0]===e||Py(e.parent)&&e.parent.arguments[0]===e)}function BZ(e){return sa(e)&&Ch(e.parent)&&xn(e.name)&&!e.propertyName}function Nj(e,n){const i=e.getTypeAtLocation(n.parent);return i&&e.getPropertyOfType(i,n.name.text)}function nq(e,n,i){if(e)for(;e.parent;){if(Nu(e.parent)||!UJe(i,e.parent,n))return e;e=e.parent}}function UJe(e,n,i){return tb(e,n.getStart(i))&&n.getEnd()<=Xy(e)}function QW(e,n){return DA(e)?lr(e.modifiers,i=>i.kind===n):void 0}function zZ(e,n,i,c,u){const h=(ls(i)?i[0]:i).kind===243?xie:W8,S=gi(n.statements,h);let E=ls(i)?lD.detectImportDeclarationSorting(i,u):3;const P=lD.getOrganizeImportsComparer(u,E===2),k=ls(i)?nh(i,(F,$)=>lD.compareImportsOrRequireStatements(F,$,P)):[i];if(!S.length)e.insertNodesAtTopOfFile(n,k,c);else if(S&&(E=lD.detectImportDeclarationSorting(S,u))){const F=lD.getOrganizeImportsComparer(u,E===2);for(const $ of k){const J=lD.getImportDeclarationInsertionIndex(S,$,F);if(J===0){const X=S[0]===n.statements[0]?{leadingTriviaOption:zs.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(n,S[0],$,!1,X)}else{const X=S[J-1];e.insertNodeAfter(n,X,$)}}}else{const F=Yf(S);F?e.insertNodesAfter(n,F,k):e.insertNodesAtTopOfFile(n,k,c)}}function qge(e,n){return re.assert(e.isTypeOnly),uc(e.getChildAt(0,n),nce)}function C1(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function $h(e,n){return e.fileName===n.fileName&&C1(e.textSpan,n.textSpan)}function hE(e,n){if(e){for(let i=0;iOs(i)?!0:sa(i)||Ch(i)||Wd(i)?!1:"quit")}function RA(){const e=j7*10;let n,i,c,u;k();const d=F=>S(F,17);return{displayParts:()=>{const F=n.length&&n[n.length-1].text;return u>e&&F&&F!=="..."&&(cP(F.charCodeAt(F.length-1))||n.push(yE(" ",16)),n.push(yE("...",15))),n},writeKeyword:F=>S(F,5),writeOperator:F=>S(F,12),writePunctuation:F=>S(F,15),writeTrailingSemicolon:F=>S(F,15),writeSpace:F=>S(F,16),writeStringLiteral:F=>S(F,8),writeParameter:F=>S(F,13),writeProperty:F=>S(F,14),writeLiteral:F=>S(F,8),writeSymbol:E,writeLine:P,write:d,writeComment:d,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Na,getIndent:()=>c,increaseIndent:()=>{c++},decreaseIndent:()=>{c--},clear:k};function h(){if(!(u>e)&&i){const F=bY(c);F&&(u+=F.length,n.push(yE(F,16))),i=!1}}function S(F,$){u>e||(h(),u+=F.length,n.push(yE(F,$)))}function E(F,$){u>e||(h(),u+=F.length,n.push(PAe(F,$)))}function P(){u>e||(u+=1,n.push(wj()),i=!0)}function k(){n=[],i=!0,c=0,u=0}}function PAe(e,n){return yE(e,i(n));function i(c){const u=c.flags;return u&3?ace(c)?13:9:u&4||u&32768||u&65536?14:u&8?19:u&16?20:u&32?1:u&64?4:u&384?2:u&1536?11:u&8192?10:u&262144?18:u&524288||u&2097152?0:17}}function yE(e,n){return{text:e,kind:Wse[n]}}function qh(){return yE(" ",16)}function ZE(e){return yE(Cf(e),5)}function D1(e){return yE(Cf(e),15)}function rq(e){return yE(Cf(e),12)}function w8e(e){return yE(e,13)}function R8e(e){return yE(e,14)}function NP(e){const n=D8(e);return n===void 0?lS(e):ZE(n)}function lS(e){return yE(e,17)}function w6(e){return yE(e,0)}function GZ(e){return yE(e,18)}function ZW(e){return yE(e,24)}function Xge(e,n){return{text:e,kind:Wse[23],target:{fileName:ts(n).fileName,textSpan:sT(n)}}}function NAe(e){return yE(e,22)}function wAe(e,n){var i;const c=LG(e)?"link":Ooe(e)?"linkcode":"linkplain",u=[NAe(`{@${c} `)];if(!e.name)e.text&&u.push(ZW(e.text));else{const d=n==null?void 0:n.getSymbolAtLocation(e.name),h=HJe(e.text),S=Lv(e.name)+e.text.slice(0,h),E=M8e(e.text.slice(h)),P=(d==null?void 0:d.valueDeclaration)||((i=d==null?void 0:d.declarations)==null?void 0:i[0]);P?(u.push(Xge(S,P)),E&&u.push(ZW(E))):u.push(ZW(S+(h?"":" ")+E))}return u.push(NAe("}")),u}function M8e(e){let n=0;if(e.charCodeAt(n++)===124){for(;n"&&i--,c++,!i)return c}return 0}function R6(e,n){var i;return(n==null?void 0:n.newLineCharacter)||((i=e.getNewLine)==null?void 0:i.call(e))||_he}function wj(){return yE(` -`,6)}function M6(e){try{return e(fq),fq.displayParts()}finally{fq.clear()}}function Rj(e,n,i,c=0){return M6(u=>{e.writeType(n,i,c|1024|16384,u)})}function Rg(e,n,i,c,u=0){return M6(d=>{e.writeSymbol(n,i,c,u|8,d)})}function iq(e,n,i,c=0){return c|=25632,M6(u=>{e.writeSignature(n,i,c,void 0,u)})}function L8e(e,n){const i=n.getSourceFile();return M6(c=>{C$().writeNode(4,e,i,c)})}function J3(e){return!!e.parent&&fP(e.parent)&&e.parent.propertyName===e}function sce(e,n){return $H(e,n.getScriptKind&&n.getScriptKind(e))}function e2(e,n){let i=e;for(;O8e(i)||Vm(i)&&i.links.target;)Vm(i)&&i.links.target?i=i.links.target:i=dg(i,n);return i}function O8e(e){return(e.flags&2097152)!==0}function RAe(e,n){return $d(dg(e,n))}function kF(e,n){for(;cP(e.charCodeAt(n));)n+=1;return n}function Yge(e,n){for(;n>-1&&q1(e.charCodeAt(n));)n-=1;return n+1}function ih(e,n=!0){const i=e&&eB(e);return i&&!n&&zT(i),i}function cce(e,n,i){let c=i(e);return c?Ls(c,e):c=eB(e,i),c&&!n&&zT(c),c}function eB(e,n){const i=n?d=>cce(d,!0,n):ih,u=Xo(e,i,sx,n?d=>d&&tB(d,!0,n):d=>d&&WR(d),i);if(u===e){const d=Sd(e)?Ls(he.createStringLiteralFromNode(e),e):S1(e)?Ls(he.createNumericLiteral(e.text,e.numericLiteralFlags),e):he.cloneNode(e);return Tn(d,e)}return u.parent=void 0,u}function WR(e,n=!0){if(e){const i=he.createNodeArray(e.map(c=>ih(c,n)),e.hasTrailingComma);return Tn(i,e),i}return e}function tB(e,n,i){return he.createNodeArray(e.map(c=>cce(c,n,i)),e.hasTrailingComma)}function zT(e){oq(e),Qge(e)}function oq(e){lce(e,1024,uce)}function Qge(e){lce(e,2048,Kie)}function nB(e,n){const i=e.getSourceFile(),c=i.text;MAe(e,c)?rB(e,n,i):PF(e,n,i),Mj(e,n,i)}function MAe(e,n){const i=e.getFullStart(),c=e.getStart();for(let u=i;un)}function b4(e,n){let i=e;for(let c=1;!ns(n,i);c++)i=`${e}_${c}`;return i}function jZ(e,n,i,c){let u=0,d=-1;for(const{fileName:h,textChanges:S}of e){re.assert(h===n);for(const E of S){const{span:P,newText:k}=E,F=JJe(k,Q8(i));if(F!==-1&&(d=P.start+u+F,!c))return d;u+=k.length-P.length}}return re.assert(c),re.assert(d>=0),d}function rB(e,n,i,c,u){ep(i.text,e.pos,Zge(n,i,c,u,sW))}function Mj(e,n,i,c,u){k8(i.text,e.end,Zge(n,i,c,u,koe))}function PF(e,n,i,c,u){k8(i.text,e.pos,Zge(n,i,c,u,sW))}function Zge(e,n,i,c,u){return(d,h,S,E)=>{S===3?(d+=2,h-=2):d+=2,u(e,i||S,n.text.slice(d,h),c!==void 0?c:E)}}function JJe(e,n){if(qf(e,n))return 0;let i=e.indexOf(" "+n);return i===-1&&(i=e.indexOf("."+n)),i===-1&&(i=e.indexOf('"'+n)),i===-1?-1:i+1}function fce(e){return Ds(e)&&e.operatorToken.kind===28||el(e)||(eF(e)||C6e(e))&&el(e.expression)}function aq(e,n,i){const c=IS(e.parent);switch(c.kind){case 214:return n.getContextualType(c,i);case 226:{const{left:u,operatorToken:d,right:h}=c;return sq(d.kind)?n.getTypeAtLocation(e===h?u:h):n.getContextualType(e,i)}case 296:return _ce(c,n);default:return n.getContextualType(e,i)}}function VZ(e,n,i){const c=OS(e,n),u=JSON.stringify(i);return c===0?`'${S2(u).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:u}function sq(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function UZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function HZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function _ce(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function iB(e,n,i,c){const u=i.getTypeChecker();let d=!0;const h=()=>d=!1,S=u.typeToTypeNode(e,n,1,{trackSymbol:(E,P,k)=>(d=d&&u.isSymbolAccessible(E,P,k,!1).accessibility===0,!d),reportInaccessibleThisError:h,reportPrivateInBaseOfClassExpression:h,reportInaccessibleUniqueSymbolError:h,moduleResolverHost:FZ(i,c)});return d?S:void 0}function dce(e){return e===179||e===180||e===181||e===171||e===173}function ehe(e){return e===262||e===176||e===174||e===177||e===178}function the(e){return e===267}function JZ(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function $Je(e,n){const i=e.getLastToken(n);if(i&&i.kind===27)return!1;if(dce(e.kind)){if(i&&i.kind===28)return!1}else if(the(e.kind)){const S=yl(e.getChildren(n));if(S&&kh(S))return!1}else if(ehe(e.kind)){const S=yl(e.getChildren(n));if(S&&hP(S))return!1}else if(!JZ(e.kind))return!1;if(e.kind===246)return!0;const c=Ua(e,S=>!S.parent),u=N6(e,c,n);if(!u||u.kind===20)return!0;const d=n.getLineAndCharacterOfPosition(e.getEnd()).line,h=n.getLineAndCharacterOfPosition(u.getStart(n)).line;return d!==h}function pce(e,n,i){const c=Ua(n,u=>u.end!==e?"quit":zAe(u.kind));return!!c&&$Je(c,i)}function $Z(e){let n=0,i=0;const c=5;return s_(e,function u(d){if(JZ(d.kind)){const h=d.getLastToken(e);(h==null?void 0:h.kind)===27?n++:i++}else if(dce(d.kind)){const h=d.getLastToken(e);if((h==null?void 0:h.kind)===27)n++;else if(h&&h.kind!==28){const S=xm(e,h.getStart(e)).line,E=xm(e,M0(e,h.end).start).line;S!==E&&i++}}return n+i>=c?!0:s_(d,u)}),n===0&&i<=1?!0:n/i>1/c}function oB(e,n){return gce(e,e.getDirectories,n)||[]}function LAe(e,n,i,c,u){return gce(e,e.readDirectory,n,i,c,u)||Yn}function Lj(e,n){return gce(e,e.fileExists,n)}function mce(e,n){return qZ(()=>O0(n,e))||!1}function qZ(e){try{return e()}catch{return}}function gce(e,n,...i){return qZ(()=>n&&n.apply(e,i))}function nhe(e,n,i){const c=[];return jC(e,u=>{if(u===i)return!0;const d=vl(u,"package.json");Lj(n,d)&&c.push(d)}),c}function aB(e,n){let i;return jC(e,c=>{if(c==="node_modules"||(i=Jme(c,u=>Lj(n,u),"package.json"),i))return!0}),i}function rhe(e,n){if(!n.fileExists)return[];const i=[];return jC(ws(e),c=>{const u=vl(c,"package.json");if(n.fileExists(u)){const d=ihe(u,n);d&&i.push(d)}}),i}function ihe(e,n){if(!n.readFile)return;const i=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=n.readFile(e)||"",u=qJe(c),d={};if(u)for(const E of i){const P=u[E];if(!P)continue;const k=new Map;for(const F in P)k.set(F,P[F]);d[E]=k}const h=[[1,d.dependencies],[2,d.devDependencies],[8,d.optionalDependencies],[4,d.peerDependencies]];return{...d,parseable:!!u,fileName:e,get:S,has(E,P){return!!S(E,P)}};function S(E,P=15){for(const[k,F]of h)if(F&&P&k){const $=F.get(E);if($!==void 0)return $}}}function Oj(e,n,i){const c=(i.getPackageJsonsVisibleToFile&&i.getPackageJsonsVisibleToFile(e.fileName)||rhe(e.fileName,i)).filter(X=>X.parseable);let u,d,h;return{allowsImportingAmbientModule:E,allowsImportingSourceFile:P,allowsImportingSpecifier:k};function S(X){const ie=J(X);for(const ae of c)if(ae.has(ie)||ae.has(pae(ie)))return!0;return!1}function E(X,ie){if(!c.length||!X.valueDeclaration)return!0;if(!d)d=new Map;else{const et=d.get(X);if(et!==void 0)return et}const ae=S2(X.getName());if(F(ae))return d.set(X,!0),!0;const ve=X.valueDeclaration.getSourceFile(),we=$(ve.fileName,ie);if(typeof we>"u")return d.set(X,!0),!0;const Fe=S(we)||S(ae);return d.set(X,Fe),Fe}function P(X,ie){if(!c.length)return!0;if(!h)h=new Map;else{const we=h.get(X);if(we!==void 0)return we}const ae=$(X.fileName,ie);if(!ae)return h.set(X,!0),!0;const ve=S(ae);return h.set(X,ve),ve}function k(X){return!c.length||F(X)||V2(X)||nE(X)?!0:S(X)}function F(X){return!!(Gy(e)&&kk.nodeCoreModules.has(X)&&(u===void 0&&(u=cq(e)),u))}function $(X,ie){if(!X.includes("node_modules"))return;const ae=u4.getNodeModulesPackageName(i.getCompilationSettings(),e,X,ie,n);if(ae&&!V2(ae)&&!nE(ae))return J(ae)}function J(X){const ie=qc(l4(X)).slice(1);return qf(ie[0],"@")?`${ie[0]}/${ie[1]}`:ie[0]}}function qJe(e){try{return JSON.parse(e)}catch{return}}function cq(e){return gt(e.imports,({text:n})=>kk.nodeCoreModules.has(n))}function KZ(e){return ni(qc(e),"node_modules")}function ohe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function ahe(e,n){const i=sT(e),c=WD(n,i,Of,pU);if(c>=0){const u=n[c];return re.assertEqual(u.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),uc(u,ohe)}}function OAe(e,n){var i;let c=WD(n,e.start,h=>h.start,pf);for(c<0&&(c=~c);((i=n[c-1])==null?void 0:i.start)===e.start;)c--;const u=[],d=Xy(e);for(;;){const h=to(n[c],ohe);if(!h||h.start>d)break;qre(e,h)&&u.push(h),c++}return u}function NF({startPosition:e,endPosition:n}){return Yy(e,n===void 0?e:n)}function FAe(e,n){const i=Lf(e,n.start);return Ua(i,u=>u.getStart(e)Xy(n)?"quit":kr(u)&&C1(n,sT(u,e)))}function she(e,n,i=Of){return e?ls(e)?i(Vn(e,n)):n(e,0):void 0}function XZ(e){return ls(e)?Dl(e):e}function hce(e,n){if(sB(e)){const i=che(e);if(i)return i;const c=fT.moduleSymbolToValidIdentifier(lhe(e),n,!1),u=fT.moduleSymbolToValidIdentifier(lhe(e),n,!0);return c===u?c:[c,u]}return e.name}function Fj(e,n,i){return sB(e)?che(e)||fT.moduleSymbolToValidIdentifier(lhe(e),n,!!i):e.name}function sB(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function che(e){return Yr(e.declarations,n=>{var i,c,u;return my(n)?(i=to(iv(n.expression),xn))==null?void 0:i.text:gy(n)&&n.symbol.flags===2097152?(c=to(n.propertyName,xn))==null?void 0:c.text:(u=to(i_(n),xn))==null?void 0:u.text})}function lhe(e){var n;return re.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${re.formatSymbolFlags(e.flags)}. Declarations: ${(n=e.declarations)==null?void 0:n.map(i=>{const c=re.formatSyntaxKind(i.kind),u=Cs(i),{expression:d}=i;return(u?"[JS]":"")+c+(d?` (expression: ${re.formatSyntaxKind(d.kind)})`:"")}).join(", ")}.`)}function lq(e,n,i){const c=n.length;if(c+i>e.length)return!1;for(let u=0;upy(i)&&JC(i))}function QZ(e){return!!(K_e(e)&65536)}function yce(e,n){return Yr(e.imports,c=>{if(kk.nodeCoreModules.has(c.text))return qf(c.text,"node:")})??n.usesUriStyleNodeCoreModules}function Wj(e){return e===` +`),Wse=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Wse||{}),G$=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(G$||{}),z3=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(z3||{}),yAe=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(yAe||{}),gZ=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(gZ||{}),vAe=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(vAe||{}),bAe=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(bAe||{}),TAe=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(TAe||{}),SAe=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(SAe||{}),Bse=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(Bse||{})}});function j$(e){switch(e.kind){case 260:return Cs(e)&&VTe(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return dh(e)||YN(e)===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 xF(e){e=zge(e);const n=e.parent;return e.kind===312?1:py(n)||my(n)||KE(n)||qE(n)||Tk(n)||Yb(n)&&e===n.name?7:Gse(e)?BJe(e):ON(e)?j$(n):kT(e)&&Ua(e,bb(FJ,F8,QL))?7:jse(e)?2:EAe(e)?4:Np(n)?(re.assert(CA(n.parent)),2):S3(n)?3:1}function BJe(e){const n=e.kind===166?e:Pu(e.parent)&&e.parent.right===e?e.parent:void 0;return n&&n.parent.kind===271?7:4}function Gse(e){for(;e.parent.kind===166;)e=e.parent;return $M(e.parent)&&e.parent.moduleReference===e}function EAe(e){return Uct(e)||Hct(e)}function Uct(e){let n=e,i=!0;if(n.parent.kind===166){for(;n.parent&&n.parent.kind===166;)n=n.parent;i=n.right===e}return n.parent.kind===183&&!i}function Hct(e){let n=e,i=!0;if(n.parent.kind===211){for(;n.parent&&n.parent.kind===211;)n=n.parent;i=n.name===e}if(!i&&n.parent.kind===233&&n.parent.parent.kind===298){const c=n.parent.parent.parent;return c.kind===263&&n.parent.parent.token===119||c.kind===264&&n.parent.parent.token===96}return!1}function jse(e){switch(z7(e)&&(e=e.parent),e.kind){case 110:return!ZD(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return BE(e.parent)}return!1}function hZ(e,n=!1,i=!1){return G3(e,xd,Vse,n,i)}function V$(e,n=!1,i=!1){return G3(e,sb,Vse,n,i)}function yZ(e,n=!1,i=!1){return G3(e,sk,Vse,n,i)}function vZ(e,n=!1,i=!1){return G3(e,Dm,I8e,n,i)}function bZ(e,n=!1,i=!1){return G3(e,Jh,Vse,n,i)}function Mge(e,n=!1,i=!1){return G3(e,m1,zJe,n,i)}function Vse(e){return e.expression}function I8e(e){return e.tag}function zJe(e){return e.tagName}function G3(e,n,i,c,u){let d=c?Lge(e):TZ(e);return u&&(d=iv(d)),!!d&&!!d.parent&&n(d.parent)&&i(d.parent)===d}function TZ(e){return sS(e)?e.parent:e}function Lge(e){return sS(e)||Oge(e)?e.parent:e}function SZ(e,n){for(;e;){if(e.kind===256&&e.label.escapedText===n)return e.label;e=e.parent}}function Ej(e,n){return Ac(e.expression)?e.expression.name.text===n:!1}function EZ(e){var n;return xn(e)&&((n=to(e.parent,M8))==null?void 0:n.label)===e}function j3(e){var n;return xn(e)&&((n=to(e.parent,tF))==null?void 0:n.label)===e}function m4(e){return j3(e)||EZ(e)}function KW(e){var n;return((n=to(e.parent,d7))==null?void 0:n.tagName)===e}function wA(e){var n;return((n=to(e.parent,Pu))==null?void 0:n.right)===e}function sS(e){var n;return((n=to(e.parent,Ac))==null?void 0:n.name)===e}function Oge(e){var n;return((n=to(e.parent,Hm))==null?void 0:n.argumentExpression)===e}function U$(e){var n;return((n=to(e.parent,dy))==null?void 0:n.name)===e}function H$(e){var n;return xn(e)&&((n=to(e.parent,F_))==null?void 0:n.name)===e}function xZ(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return i_(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function AZ(e){return Mx(e.parent.parent)&&iG(e.parent.parent)===e}function RR(e){for(b2(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function g4(e){switch(e.kind){case 312:return Bv(e)?"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 n(e);case 208:return n(vA(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:i}=e;return F_(i)?"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 ul(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const c=jy(e),{right:u}=e;switch(c){case 7:case 8:case 9:case 0:return"";case 1:case 2:const h=g4(u);return h===""?"const":h;case 3:return Jm(u)?"method":"property";case 4:return"property";case 5:return Jm(u)?"method":"property";case 6:return"local class";default:return""}case 80:return Tk(e.parent)?"alias":"";case 277:const d=g4(e.expression);return d===""?"const":d;default:return""}function n(i){return rH(i)?"const":UM(i)?"let":"var"}}function AF(e){switch(e.kind){case 110:return!0;case 80:return JL(e)&&e.parent.kind===169;default:return!1}}function Ux(e,n){const i=eR(n),c=n.getLineAndCharacterOfPosition(e).line;return i[c]}function ov(e,n){return Wm(e.pos,e.end,n)}function Use(e,n){return XW(e,n.pos)&&XW(e,n.end)}function CZ(e,n){return e.pos<=n&&n<=e.end}function XW(e,n){return e.pos=i.end}function xj(e,n,i){return e.pos<=n&&e.end>=i}function J$(e,n,i){return Wge(e.pos,e.end,n,i)}function Fge(e,n,i,c){return Wge(e.getStart(n),e.end,i,c)}function Wge(e,n,i,c){const u=Math.max(e,i),d=Math.min(n,c);return uc.kind===n)}function $se(e){const n=lr(e.parent.getChildren(),i=>AW(i)&&ov(i,e));return re.assert(!n||ni(n.getChildren(),e)),n}function GJe(e){return e.kind===90}function jJe(e){return e.kind===86}function k8e(e){return e.kind===100}function CAe(e){if(mp(e))return e.name;if(Ih(e)){const n=e.modifiers&&lr(e.modifiers,GJe);if(n)return n}if(v0(e)){const n=lr(e.getChildren(),jJe);if(n)return n}}function Hx(e){if(mp(e))return e.name;if(mg(e)){const n=lr(e.modifiers,GJe);if(n)return n}if(Jm(e)){const n=lr(e.getChildren(),k8e);if(n)return n}}function qse(e){let n;return Ua(e,i=>(pc(i)&&(n=i),!Pu(i.parent)&&!pc(i.parent)&&!rb(i.parent))),n}function bf(e,n){if(e.flags&16777216)return;const i=aq(e,n);if(i)return i;const c=qse(e);return c&&n.getTypeAtLocation(c)}function VJe(e,n){if(!n)switch(e.kind){case 263:case 231:return CAe(e);case 262:case 218:return Hx(e);case 176:return e}if(mp(e))return e.name}function P8e(e,n){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Oy(e.importClause.namedBindings)){const i=Vb(e.importClause.namedBindings.elements);return i?i.name:void 0}else if(mh(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!n)return e.moduleSpecifier}function Bge(e,n){if(e.exportClause){if(j0(e.exportClause))return Vb(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(G0(e.exportClause))return e.exportClause.name}if(!n)return e.moduleSpecifier}function Aj(e){if(e.types.length===1)return e.types[0].expression}function T0(e,n){const{parent:i}=e;if(Mf(e)&&(n||e.kind!==90)?DA(i)&&ni(i.modifiers,e):e.kind===86?Ih(i)||v0(e):e.kind===100?mg(i)||Jm(e):e.kind===120?xp(i):e.kind===94?xP(i):e.kind===156?z0(i):e.kind===145||e.kind===144?dy(i):e.kind===102?Yb(i):e.kind===139?lE(i):e.kind===153&&Xb(i)){const c=VJe(i,n);if(c)return c}if((e.kind===115||e.kind===87||e.kind===121)&&Kp(i)&&i.declarations.length===1){const c=i.declarations[0];if(xn(c.name))return c.name}if(e.kind===156){if(Tk(i)&&i.isTypeOnly){const c=P8e(i.parent,n);if(c)return c}if(ry(i)&&i.isTypeOnly){const c=Bge(i,n);if(c)return c}}if(e.kind===130){if(qE(i)&&i.propertyName||my(i)&&i.propertyName||mh(i)||G0(i))return i.name;if(ry(i)&&i.exportClause&&G0(i.exportClause))return i.exportClause.name}if(e.kind===102&&n0(i)){const c=P8e(i,n);if(c)return c}if(e.kind===95){if(ry(i)){const c=Bge(i,n);if(c)return c}if(py(i))return iv(i.expression)}if(e.kind===149&&KE(i))return i.expression;if(e.kind===161&&(n0(i)||ry(i))&&i.moduleSpecifier)return i.moduleSpecifier;if((e.kind===96||e.kind===119)&&Qb(i)&&i.token===e.kind){const c=Aj(i);if(c)return c}if(e.kind===96){if(Np(i)&&i.constraint&&uE(i.constraint))return i.constraint.typeName;if(Q7(i)&&uE(i.extendsType))return i.extendsType.typeName}if(e.kind===140&&KN(i))return i.typeParameter.name;if(e.kind===103&&Np(i)&&LJ(i.parent))return i.name;if(e.kind===143&&_I(i)&&i.operator===143&&uE(i.type))return i.type.typeName;if(e.kind===148&&_I(i)&&i.operator===148&&GY(i.type)&&uE(i.type.elementType))return i.type.elementType.typeName;if(!n){if((e.kind===105&&sb(i)||e.kind===116&&Z7(i)||e.kind===114&&yk(i)||e.kind===135&&ys(i)||e.kind===127&&t0(i)||e.kind===91&&h6(i))&&i.expression)return iv(i.expression);if((e.kind===103||e.kind===104)&&Ds(i)&&i.operatorToken===e)return iv(i.right);if(e.kind===130&&eF(i)&&uE(i.type))return i.type.typeName;if(e.kind===103&&lpe(i)||e.kind===165&&Bx(i))return iv(i.expression)}return e}function zge(e){return T0(e,!1)}function DZ(e){return T0(e,!0)}function cS(e,n){return MR(e,n,i=>Qv(i)||qb(i.kind)||Lu(i))}function MR(e,n,i){return Kse(e,n,!1,i,!1)}function Lf(e,n){return Kse(e,n,!0,void 0,!1)}function Kse(e,n,i,c,u){let d=e,h;e:for(;;){const E=d.getChildren(e),P=WD(E,n,(k,F)=>F,(k,F)=>{const $=E[k].getEnd();if($n?1:S(E[k],J,$)?E[k-1]&&S(E[k-1])?1:0:c&&J===n&&E[k-1]&&E[k-1].getEnd()===n&&S(E[k-1])?1:-1});if(h)return h;if(P>=0&&E[P]){d=E[P];continue e}return d}function S(E,P,k){if(k??(k=E.getEnd()),kn))return!1;if(ni.getStart(e)&&n(d.pos<=e.pos&&d.end>e.end||d.pos===e.end)&&OR(d,i)?c(d):void 0)}}function bv(e,n,i,c){const u=d(i||n);return re.assert(!(u&&Yse(u))),u;function d(h){if(N8e(h)&&h.kind!==1)return h;const S=h.getChildren(n),E=WD(S,e,(k,F)=>F,(k,F)=>e=S[k-1].end?0:1:-1);if(E>=0&&S[E]){const k=S[E];if(e=e||!OR(k,n)||Yse(k)){const J=jge(S,E,n,h.kind);return J?!c&&Y1(J)&&J.getChildren(n).length?d(J):IZ(J,n):void 0}else return d(k)}re.assert(i!==void 0||h.kind===312||h.kind===1||Y1(h));const P=jge(S,S.length,n,h.kind);return P&&IZ(P,n)}}function N8e(e){return a7(e)&&!Yse(e)}function IZ(e,n){if(N8e(e))return e;const i=e.getChildren(n);if(i.length===0)return e;const c=jge(i,i.length,n,e.kind);return c&&IZ(c,n)}function jge(e,n,i,c){for(let u=n-1;u>=0;u--){const d=e[u];if(Yse(d))u===0&&(c===12||c===285)&&re.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(OR(e[u],i))return e[u]}}function V3(e,n,i=bv(n,e)){if(i&&JX(i)){const c=i.getStart(e),u=i.getEnd();if(ci.getStart(e)}function $$(e,n){const i=Lf(e,n);return!!(SR(i)||i.kind===19&&CP(i.parent)&&zx(i.parent.parent)||i.kind===30&&m1(i.parent)&&zx(i.parent.parent))}function Zse(e,n){function i(c){for(;c;)if(c.kind>=285&&c.kind<=294||c.kind===12||c.kind===30||c.kind===32||c.kind===80||c.kind===20||c.kind===19||c.kind===44)c=c.parent;else if(c.kind===284){if(n>c.getStart(e))return!0;c=c.parent}else return!1;return!1}return i(Lf(e,n))}function q$(e,n,i){const c=Cf(e.kind),u=Cf(n),d=e.getFullStart(),h=i.text.lastIndexOf(u,d);if(h===-1)return;if(i.text.lastIndexOf(c,d-1)!!d.typeParameters&&d.typeParameters.length>=n)}function K$(e,n){if(n.text.lastIndexOf("<",e?e.pos:n.text.length)===-1)return;let i=e,c=0,u=0;for(;i;){switch(i.kind){case 30:if(i=bv(i.getFullStart(),n),i&&i.kind===29&&(i=bv(i.getFullStart(),n)),!i||!xn(i))return;if(!c)return ON(i)?void 0:{called:i,nTypeArguments:u};c--;break;case 50:c=3;break;case 49:c=2;break;case 32:c++;break;case 20:if(i=q$(i,19,n),!i)return;break;case 22:if(i=q$(i,21,n),!i)return;break;case 24:if(i=q$(i,23,n),!i)return;break;case 28:u++;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(pc(i))break;return}i=bv(i.getFullStart(),n)}}function tw(e,n,i){return V0.getRangeOfEnclosingComment(e,n,void 0,i)}function DAe(e,n){const i=Lf(e,n);return!!Ua(i,uC)}function OR(e,n){return e.kind===1?!!e.jsDoc:e.getWidth(n)!==0}function X$(e,n=0){const i=[],c=PT(e)?K_e(e)&~n:0;return c&2&&i.push("private"),c&4&&i.push("protected"),c&1&&i.push("public"),(c&256||Ep(e))&&i.push("static"),c&64&&i.push("abstract"),c&32&&i.push("export"),c&65536&&i.push("deprecated"),e.flags&33554432&&i.push("declare"),e.kind===277&&i.push("export"),i.length>0?i.join(","):""}function IAe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(F_(e)||e.kind===263||e.kind===264)return e.typeParameters}function ece(e){return e===2||e===3}function tce(e){return!!(e===11||e===14||VC(e))}function gE(e,n,i){return!!(n.flags&4)&&e.isEmptyAnonymousObjectType(i)}function Hge(e){if(!e.isIntersection())return!1;const{types:n,checker:i}=e;return n.length===2&&(gE(i,n[0],n[1])||gE(i,n[1],n[0]))}function Y$(e,n,i){return VC(e.kind)&&e.getStart(i){const i=vm(n);return!e[i]&&(e[i]=!0)}}function Dj(e){return e.getText(0,e.getLength())}function Pk(e,n){let i="";for(let c=0;c!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!(n.externalModuleIndicator||n.commonJsModuleIndicator))}function Jge(e){return e.getSourceFiles().some(n=>!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function OZ(e){return!!e.module||iu(e)>=2||!!e.noEmit}function y4(e,n){return{fileExists:i=>e.fileExists(i),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:wc(n,n.readFile),useCaseSensitiveFileNames:wc(n,n.useCaseSensitiveFileNames),getSymlinkCache:wc(n,n.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:wc(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var i;return(i=e.getModuleResolutionCache())==null?void 0:i.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wc(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:i=>e.getProjectReferenceRedirect(i),isSourceOfProjectReferenceRedirect:i=>e.isSourceOfProjectReferenceRedirect(i),getNearestAncestorDirectoryWithPackageJson:wc(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function FZ(e,n){return{...y4(e,n),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Ij(e){return e===2||e>=3&&e<=99||e===100}function rce(e,n,i,c){return e||n&&n.length?Nk(e,n,i,c):void 0}function Nk(e,n,i,c,u){return he.createImportDeclaration(void 0,e||n?he.createImportClause(!!u,e,n&&n.length?he.createNamedImports(n):void 0):void 0,typeof i=="string"?kj(i,c):i,void 0)}function kj(e,n){return he.createStringLiteral(e,n===0)}function YW(e,n){return aH(e,n)?1:0}function OS(e,n){if(n.quotePreference&&n.quotePreference!=="auto")return n.quotePreference==="single"?0:1;{const i=e.imports&&lr(e.imports,c=>Sd(c)&&!Hd(c.parent));return i?YW(i,e):1}}function ice(e){switch(e){case 0:return"'";case 1:return'"';default:return re.assertNever(e)}}function IF(e){const n=$ge(e);return n===void 0?void 0:Ic(n)}function $ge(e){return e.escapedName!=="default"?e.escapedName:Yr(e.declarations,n=>{const i=i_(n);return i&&i.kind===80?i.escapedText:void 0})}function WZ(e){return Cm(e)&&(KE(e.parent)||n0(e.parent)||y1(e.parent,!1)&&e.parent.arguments[0]===e||Py(e.parent)&&e.parent.arguments[0]===e)}function BZ(e){return sa(e)&&Ch(e.parent)&&xn(e.name)&&!e.propertyName}function Pj(e,n){const i=e.getTypeAtLocation(n.parent);return i&&e.getPropertyOfType(i,n.name.text)}function nq(e,n,i){if(e)for(;e.parent;){if(Nu(e.parent)||!UJe(i,e.parent,n))return e;e=e.parent}}function UJe(e,n,i){return tb(e,n.getStart(i))&&n.getEnd()<=Xy(e)}function QW(e,n){return DA(e)?lr(e.modifiers,i=>i.kind===n):void 0}function zZ(e,n,i,c,u){const h=(ls(i)?i[0]:i).kind===243?xie:W8,S=gi(n.statements,h);let E=ls(i)?lD.detectImportDeclarationSorting(i,u):3;const P=lD.getOrganizeImportsComparer(u,E===2),k=ls(i)?nh(i,(F,$)=>lD.compareImportsOrRequireStatements(F,$,P)):[i];if(!S.length)e.insertNodesAtTopOfFile(n,k,c);else if(S&&(E=lD.detectImportDeclarationSorting(S,u))){const F=lD.getOrganizeImportsComparer(u,E===2);for(const $ of k){const J=lD.getImportDeclarationInsertionIndex(S,$,F);if(J===0){const X=S[0]===n.statements[0]?{leadingTriviaOption:zs.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(n,S[0],$,!1,X)}else{const X=S[J-1];e.insertNodeAfter(n,X,$)}}}else{const F=Yf(S);F?e.insertNodesAfter(n,F,k):e.insertNodesAtTopOfFile(n,k,c)}}function qge(e,n){return re.assert(e.isTypeOnly),uc(e.getChildAt(0,n),nce)}function C1(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function $h(e,n){return e.fileName===n.fileName&&C1(e.textSpan,n.textSpan)}function hE(e,n){if(e){for(let i=0;iOs(i)?!0:sa(i)||Ch(i)||Wd(i)?!1:"quit")}function RA(){const e=j7*10;let n,i,c,u;k();const d=F=>S(F,17);return{displayParts:()=>{const F=n.length&&n[n.length-1].text;return u>e&&F&&F!=="..."&&(cP(F.charCodeAt(F.length-1))||n.push(yE(" ",16)),n.push(yE("...",15))),n},writeKeyword:F=>S(F,5),writeOperator:F=>S(F,12),writePunctuation:F=>S(F,15),writeTrailingSemicolon:F=>S(F,15),writeSpace:F=>S(F,16),writeStringLiteral:F=>S(F,8),writeParameter:F=>S(F,13),writeProperty:F=>S(F,14),writeLiteral:F=>S(F,8),writeSymbol:E,writeLine:P,write:d,writeComment:d,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Na,getIndent:()=>c,increaseIndent:()=>{c++},decreaseIndent:()=>{c--},clear:k};function h(){if(!(u>e)&&i){const F=bY(c);F&&(u+=F.length,n.push(yE(F,16))),i=!1}}function S(F,$){u>e||(h(),u+=F.length,n.push(yE(F,$)))}function E(F,$){u>e||(h(),u+=F.length,n.push(PAe(F,$)))}function P(){u>e||(u+=1,n.push(Nj()),i=!0)}function k(){n=[],i=!0,c=0,u=0}}function PAe(e,n){return yE(e,i(n));function i(c){const u=c.flags;return u&3?ace(c)?13:9:u&4||u&32768||u&65536?14:u&8?19:u&16?20:u&32?1:u&64?4:u&384?2:u&1536?11:u&8192?10:u&262144?18:u&524288||u&2097152?0:17}}function yE(e,n){return{text:e,kind:Wse[n]}}function qh(){return yE(" ",16)}function ZE(e){return yE(Cf(e),5)}function D1(e){return yE(Cf(e),15)}function rq(e){return yE(Cf(e),12)}function w8e(e){return yE(e,13)}function R8e(e){return yE(e,14)}function NP(e){const n=D8(e);return n===void 0?lS(e):ZE(n)}function lS(e){return yE(e,17)}function w6(e){return yE(e,0)}function GZ(e){return yE(e,18)}function ZW(e){return yE(e,24)}function Xge(e,n){return{text:e,kind:Wse[23],target:{fileName:ts(n).fileName,textSpan:sT(n)}}}function NAe(e){return yE(e,22)}function wAe(e,n){var i;const c=MG(e)?"link":Ooe(e)?"linkcode":"linkplain",u=[NAe(`{@${c} `)];if(!e.name)e.text&&u.push(ZW(e.text));else{const d=n==null?void 0:n.getSymbolAtLocation(e.name),h=HJe(e.text),S=Lv(e.name)+e.text.slice(0,h),E=M8e(e.text.slice(h)),P=(d==null?void 0:d.valueDeclaration)||((i=d==null?void 0:d.declarations)==null?void 0:i[0]);P?(u.push(Xge(S,P)),E&&u.push(ZW(E))):u.push(ZW(S+(h?"":" ")+E))}return u.push(NAe("}")),u}function M8e(e){let n=0;if(e.charCodeAt(n++)===124){for(;n"&&i--,c++,!i)return c}return 0}function R6(e,n){var i;return(n==null?void 0:n.newLineCharacter)||((i=e.getNewLine)==null?void 0:i.call(e))||_he}function Nj(){return yE(` +`,6)}function M6(e){try{return e(fq),fq.displayParts()}finally{fq.clear()}}function wj(e,n,i,c=0){return M6(u=>{e.writeType(n,i,c|1024|16384,u)})}function Rg(e,n,i,c,u=0){return M6(d=>{e.writeSymbol(n,i,c,u|8,d)})}function iq(e,n,i,c=0){return c|=25632,M6(u=>{e.writeSignature(n,i,c,void 0,u)})}function L8e(e,n){const i=n.getSourceFile();return M6(c=>{C$().writeNode(4,e,i,c)})}function J3(e){return!!e.parent&&fP(e.parent)&&e.parent.propertyName===e}function sce(e,n){return $H(e,n.getScriptKind&&n.getScriptKind(e))}function e2(e,n){let i=e;for(;O8e(i)||Vm(i)&&i.links.target;)Vm(i)&&i.links.target?i=i.links.target:i=dg(i,n);return i}function O8e(e){return(e.flags&2097152)!==0}function RAe(e,n){return $d(dg(e,n))}function kF(e,n){for(;cP(e.charCodeAt(n));)n+=1;return n}function Yge(e,n){for(;n>-1&&q1(e.charCodeAt(n));)n-=1;return n+1}function ih(e,n=!0){const i=e&&eB(e);return i&&!n&&zT(i),i}function cce(e,n,i){let c=i(e);return c?Ls(c,e):c=eB(e,i),c&&!n&&zT(c),c}function eB(e,n){const i=n?d=>cce(d,!0,n):ih,u=Xo(e,i,sx,n?d=>d&&tB(d,!0,n):d=>d&&WR(d),i);if(u===e){const d=Sd(e)?Ls(he.createStringLiteralFromNode(e),e):S1(e)?Ls(he.createNumericLiteral(e.text,e.numericLiteralFlags),e):he.cloneNode(e);return Tn(d,e)}return u.parent=void 0,u}function WR(e,n=!0){if(e){const i=he.createNodeArray(e.map(c=>ih(c,n)),e.hasTrailingComma);return Tn(i,e),i}return e}function tB(e,n,i){return he.createNodeArray(e.map(c=>cce(c,n,i)),e.hasTrailingComma)}function zT(e){oq(e),Qge(e)}function oq(e){lce(e,1024,uce)}function Qge(e){lce(e,2048,Kie)}function nB(e,n){const i=e.getSourceFile(),c=i.text;MAe(e,c)?rB(e,n,i):PF(e,n,i),Rj(e,n,i)}function MAe(e,n){const i=e.getFullStart(),c=e.getStart();for(let u=i;un)}function v4(e,n){let i=e;for(let c=1;!ns(n,i);c++)i=`${e}_${c}`;return i}function jZ(e,n,i,c){let u=0,d=-1;for(const{fileName:h,textChanges:S}of e){re.assert(h===n);for(const E of S){const{span:P,newText:k}=E,F=JJe(k,Q8(i));if(F!==-1&&(d=P.start+u+F,!c))return d;u+=k.length-P.length}}return re.assert(c),re.assert(d>=0),d}function rB(e,n,i,c,u){ep(i.text,e.pos,Zge(n,i,c,u,sW))}function Rj(e,n,i,c,u){k8(i.text,e.end,Zge(n,i,c,u,koe))}function PF(e,n,i,c,u){k8(i.text,e.pos,Zge(n,i,c,u,sW))}function Zge(e,n,i,c,u){return(d,h,S,E)=>{S===3?(d+=2,h-=2):d+=2,u(e,i||S,n.text.slice(d,h),c!==void 0?c:E)}}function JJe(e,n){if(qf(e,n))return 0;let i=e.indexOf(" "+n);return i===-1&&(i=e.indexOf("."+n)),i===-1&&(i=e.indexOf('"'+n)),i===-1?-1:i+1}function fce(e){return Ds(e)&&e.operatorToken.kind===28||el(e)||(eF(e)||C6e(e))&&el(e.expression)}function aq(e,n,i){const c=IS(e.parent);switch(c.kind){case 214:return n.getContextualType(c,i);case 226:{const{left:u,operatorToken:d,right:h}=c;return sq(d.kind)?n.getTypeAtLocation(e===h?u:h):n.getContextualType(e,i)}case 296:return _ce(c,n);default:return n.getContextualType(e,i)}}function VZ(e,n,i){const c=OS(e,n),u=JSON.stringify(i);return c===0?`'${S2(u).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:u}function sq(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function UZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function HZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function _ce(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function iB(e,n,i,c){const u=i.getTypeChecker();let d=!0;const h=()=>d=!1,S=u.typeToTypeNode(e,n,1,{trackSymbol:(E,P,k)=>(d=d&&u.isSymbolAccessible(E,P,k,!1).accessibility===0,!d),reportInaccessibleThisError:h,reportPrivateInBaseOfClassExpression:h,reportInaccessibleUniqueSymbolError:h,moduleResolverHost:FZ(i,c)});return d?S:void 0}function dce(e){return e===179||e===180||e===181||e===171||e===173}function ehe(e){return e===262||e===176||e===174||e===177||e===178}function the(e){return e===267}function JZ(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function $Je(e,n){const i=e.getLastToken(n);if(i&&i.kind===27)return!1;if(dce(e.kind)){if(i&&i.kind===28)return!1}else if(the(e.kind)){const S=yl(e.getChildren(n));if(S&&kh(S))return!1}else if(ehe(e.kind)){const S=yl(e.getChildren(n));if(S&&hP(S))return!1}else if(!JZ(e.kind))return!1;if(e.kind===246)return!0;const c=Ua(e,S=>!S.parent),u=N6(e,c,n);if(!u||u.kind===20)return!0;const d=n.getLineAndCharacterOfPosition(e.getEnd()).line,h=n.getLineAndCharacterOfPosition(u.getStart(n)).line;return d!==h}function pce(e,n,i){const c=Ua(n,u=>u.end!==e?"quit":zAe(u.kind));return!!c&&$Je(c,i)}function $Z(e){let n=0,i=0;const c=5;return s_(e,function u(d){if(JZ(d.kind)){const h=d.getLastToken(e);(h==null?void 0:h.kind)===27?n++:i++}else if(dce(d.kind)){const h=d.getLastToken(e);if((h==null?void 0:h.kind)===27)n++;else if(h&&h.kind!==28){const S=xm(e,h.getStart(e)).line,E=xm(e,M0(e,h.end).start).line;S!==E&&i++}}return n+i>=c?!0:s_(d,u)}),n===0&&i<=1?!0:n/i>1/c}function oB(e,n){return gce(e,e.getDirectories,n)||[]}function LAe(e,n,i,c,u){return gce(e,e.readDirectory,n,i,c,u)||Yn}function Mj(e,n){return gce(e,e.fileExists,n)}function mce(e,n){return qZ(()=>O0(n,e))||!1}function qZ(e){try{return e()}catch{return}}function gce(e,n,...i){return qZ(()=>n&&n.apply(e,i))}function nhe(e,n,i){const c=[];return jC(e,u=>{if(u===i)return!0;const d=vl(u,"package.json");Mj(n,d)&&c.push(d)}),c}function aB(e,n){let i;return jC(e,c=>{if(c==="node_modules"||(i=Jme(c,u=>Mj(n,u),"package.json"),i))return!0}),i}function rhe(e,n){if(!n.fileExists)return[];const i=[];return jC(ws(e),c=>{const u=vl(c,"package.json");if(n.fileExists(u)){const d=ihe(u,n);d&&i.push(d)}}),i}function ihe(e,n){if(!n.readFile)return;const i=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=n.readFile(e)||"",u=qJe(c),d={};if(u)for(const E of i){const P=u[E];if(!P)continue;const k=new Map;for(const F in P)k.set(F,P[F]);d[E]=k}const h=[[1,d.dependencies],[2,d.devDependencies],[8,d.optionalDependencies],[4,d.peerDependencies]];return{...d,parseable:!!u,fileName:e,get:S,has(E,P){return!!S(E,P)}};function S(E,P=15){for(const[k,F]of h)if(F&&P&k){const $=F.get(E);if($!==void 0)return $}}}function Lj(e,n,i){const c=(i.getPackageJsonsVisibleToFile&&i.getPackageJsonsVisibleToFile(e.fileName)||rhe(e.fileName,i)).filter(X=>X.parseable);let u,d,h;return{allowsImportingAmbientModule:E,allowsImportingSourceFile:P,allowsImportingSpecifier:k};function S(X){const ie=J(X);for(const ae of c)if(ae.has(ie)||ae.has(pae(ie)))return!0;return!1}function E(X,ie){if(!c.length||!X.valueDeclaration)return!0;if(!d)d=new Map;else{const et=d.get(X);if(et!==void 0)return et}const ae=S2(X.getName());if(F(ae))return d.set(X,!0),!0;const ve=X.valueDeclaration.getSourceFile(),we=$(ve.fileName,ie);if(typeof we>"u")return d.set(X,!0),!0;const Fe=S(we)||S(ae);return d.set(X,Fe),Fe}function P(X,ie){if(!c.length)return!0;if(!h)h=new Map;else{const we=h.get(X);if(we!==void 0)return we}const ae=$(X.fileName,ie);if(!ae)return h.set(X,!0),!0;const ve=S(ae);return h.set(X,ve),ve}function k(X){return!c.length||F(X)||V2(X)||nE(X)?!0:S(X)}function F(X){return!!(Gy(e)&&kk.nodeCoreModules.has(X)&&(u===void 0&&(u=cq(e)),u))}function $(X,ie){if(!X.includes("node_modules"))return;const ae=l4.getNodeModulesPackageName(i.getCompilationSettings(),e,X,ie,n);if(ae&&!V2(ae)&&!nE(ae))return J(ae)}function J(X){const ie=qc(c4(X)).slice(1);return qf(ie[0],"@")?`${ie[0]}/${ie[1]}`:ie[0]}}function qJe(e){try{return JSON.parse(e)}catch{return}}function cq(e){return gt(e.imports,({text:n})=>kk.nodeCoreModules.has(n))}function KZ(e){return ni(qc(e),"node_modules")}function ohe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function ahe(e,n){const i=sT(e),c=WD(n,i,Of,pU);if(c>=0){const u=n[c];return re.assertEqual(u.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),uc(u,ohe)}}function OAe(e,n){var i;let c=WD(n,e.start,h=>h.start,pf);for(c<0&&(c=~c);((i=n[c-1])==null?void 0:i.start)===e.start;)c--;const u=[],d=Xy(e);for(;;){const h=to(n[c],ohe);if(!h||h.start>d)break;qre(e,h)&&u.push(h),c++}return u}function NF({startPosition:e,endPosition:n}){return Yy(e,n===void 0?e:n)}function FAe(e,n){const i=Lf(e,n.start);return Ua(i,u=>u.getStart(e)Xy(n)?"quit":kr(u)&&C1(n,sT(u,e)))}function she(e,n,i=Of){return e?ls(e)?i(Vn(e,n)):n(e,0):void 0}function XZ(e){return ls(e)?Dl(e):e}function hce(e,n){if(sB(e)){const i=che(e);if(i)return i;const c=fT.moduleSymbolToValidIdentifier(lhe(e),n,!1),u=fT.moduleSymbolToValidIdentifier(lhe(e),n,!0);return c===u?c:[c,u]}return e.name}function Oj(e,n,i){return sB(e)?che(e)||fT.moduleSymbolToValidIdentifier(lhe(e),n,!!i):e.name}function sB(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function che(e){return Yr(e.declarations,n=>{var i,c,u;return py(n)?(i=to(iv(n.expression),xn))==null?void 0:i.text:my(n)&&n.symbol.flags===2097152?(c=to(n.propertyName,xn))==null?void 0:c.text:(u=to(i_(n),xn))==null?void 0:u.text})}function lhe(e){var n;return re.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${re.formatSymbolFlags(e.flags)}. Declarations: ${(n=e.declarations)==null?void 0:n.map(i=>{const c=re.formatSyntaxKind(i.kind),u=Cs(i),{expression:d}=i;return(u?"[JS]":"")+c+(d?` (expression: ${re.formatSyntaxKind(d.kind)})`:"")}).join(", ")}.`)}function lq(e,n,i){const c=n.length;if(c+i>e.length)return!1;for(let u=0;udy(i)&&JC(i))}function QZ(e){return!!(K_e(e)&65536)}function yce(e,n){return Yr(e.imports,c=>{if(kk.nodeCoreModules.has(c.text))return qf(c.text,"node:")})??n.usesUriStyleNodeCoreModules}function Fj(e){return e===` `?1:0}function $3(e){return ls(e)?LT(fs(e[0]),e.slice(1)):fs(e)}function uq({options:e},n){const i=!e.semicolons||e.semicolons==="ignore",c=e.semicolons==="remove"||i&&!$Z(n);return{...e,semicolons:c?"remove":"ignore"}}function uhe(e){return e===2||e===3}function cB(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function ZZ(e,n){const i=new Set,c=new Set,u=new Set;for(const S of n)if(!xk(S)){const E=rg(S.expression);if(aR(E))switch(E.kind){case 15:case 11:i.add(E.text);break;case 9:c.add(parseInt(E.text));break;case 10:const P=qSe(h_(E.text,"n")?E.text.slice(0,-1):E.text);P&&u.add(tD(P));break}else{const P=e.getSymbolAtLocation(S.expression);if(P&&P.valueDeclaration&&pI(P.valueDeclaration)){const k=e.getConstantValue(P.valueDeclaration);k!==void 0&&d(k)}}}return{addValue:d,hasValue:h};function d(S){switch(typeof S){case"string":i.add(S);break;case"number":c.add(S)}}function h(S){switch(typeof S){case"string":return i.has(S);case"number":return c.has(S);case"object":return u.has(tD(S))}}}function BAe(e,n,i,c){var u;const d=typeof e=="string"?e:e.fileName;if(!eD(d))return!1;const h=n.getCompilerOptions(),S=Zp(h),E=typeof e=="string"?Zae(gm(e,i.getCurrentDirectory(),QC(i)),(u=n.getPackageJsonInfoCache)==null?void 0:u.call(n),i,h):e.impliedNodeFormat;if(E===99)return!1;if(E===1||h.verbatimModuleSyntax&&S===1)return!0;if(h.verbatimModuleSyntax&&WH(S))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return c}var uT,vce,KJe,eee,fhe,fq,_he,bce,zAe,GAe=G({"src/services/utilities.ts"(){xl(),uT=CS(99,!0),vce=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(vce||{}),KJe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(fhe||{}),fq=RA(),_he=` -`,bce="anonymous function",zAe=bb(dce,ehe,the,JZ)}});function jAe(e){let n=1;const i=zg(),c=new Map,u=new Map;let d;const h={isUsableByFile:J=>J===d,isEmpty:()=>!i.size,clear:()=>{i.clear(),c.clear(),d=void 0},add:(J,X,ie,ae,ve,we,Fe,et)=>{J!==d&&(h.clear(),d=J);let Pe;if(ve){const Et=AY(ve.fileName);if(Et){const{topLevelNodeModulesIndex:at,topLevelPackageNameIndex:Qt,packageRootIndex:nn}=Et;if(Pe=DQ(l4(ve.fileName.substring(Qt+1,nn))),qf(J,ve.path.substring(0,at))){const Rn=u.get(Pe),cn=ve.fileName.substring(0,Qt+1);if(Rn){const qt=Rn.indexOf(IP);at>qt&&u.set(Pe,cn)}else u.set(Pe,cn)}}}const Ie=we===1&&i6(X)||X,ct=we===0||eq(Ie)?Ic(ie):hce(Ie,void 0),Ct=typeof ct=="string"?ct:ct[0],Lt=typeof ct=="string"?void 0:ct[1],Ze=S2(ae.name),Ke=n++,st=dg(X,et),It=X.flags&33554432?void 0:X,Yt=ae.flags&33554432?void 0:ae;(!It||!Yt)&&c.set(Ke,[X,ae]),i.add(E(Ct,X,Kv(Ze)?void 0:Ze,et),{id:Ke,symbolTableKey:ie,symbolName:Ct,capitalizedSymbolName:Lt,moduleName:Ze,moduleFile:ve,moduleFileName:ve==null?void 0:ve.fileName,packageName:Pe,exportKind:we,targetFlags:st.flags,isFromPackageJson:Fe,symbol:It,moduleSymbol:Yt})},get:(J,X)=>{if(J!==d)return;const ie=i.get(X);return ie==null?void 0:ie.map(S)},search:(J,X,ie,ae)=>{if(J===d)return Jb(i,(ve,we)=>{const{symbolName:Fe,ambientModuleName:et}=P(we),Pe=X&&ve[0].capitalizedSymbolName||Fe;if(ie(Pe,ve[0].targetFlags)){const Ie=ve.map(S).filter((ct,Ct)=>$(ct,ve[Ct].packageName));if(Ie.length){const ct=ae(Ie,Pe,!!et,we);if(ct!==void 0)return ct}}})},releaseSymbols:()=>{c.clear()},onFileChanged:(J,X,ie)=>k(J)&&k(X)?!1:d&&d!==X.path||ie&&cq(J)!==cq(X)||!fv(J.moduleAugmentations,X.moduleAugmentations)||!F(J,X)?(h.clear(),!0):(d=X.path,!1)};return re.isDebugging&&Object.defineProperty(h,"__cache",{value:i}),h;function S(J){if(J.symbol&&J.moduleSymbol)return J;const{id:X,exportKind:ie,targetFlags:ae,isFromPackageJson:ve,moduleFileName:we}=J,[Fe,et]=c.get(X)||Yn;if(Fe&&et)return{symbol:Fe,moduleSymbol:et,moduleFileName:we,exportKind:ie,targetFlags:ae,isFromPackageJson:ve};const Pe=(ve?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),dt=J.moduleSymbol||et||re.checkDefined(J.moduleFile?Pe.getMergedSymbol(J.moduleFile.symbol):Pe.tryFindAmbientModule(J.moduleName)),Ie=J.symbol||Fe||re.checkDefined(ie===2?Pe.resolveExternalModuleSymbol(dt):Pe.tryGetMemberInModuleExportsAndProperties(Ic(J.symbolTableKey),dt),`Could not find symbol '${J.symbolName}' by key '${J.symbolTableKey}' in module ${dt.name}`);return c.set(X,[Ie,dt]),{symbol:Ie,moduleSymbol:dt,moduleFileName:we,exportKind:ie,targetFlags:ae,isFromPackageJson:ve}}function E(J,X,ie,ae){const ve=ie||"";return`${J.length} ${$d(dg(X,ae))} ${J} ${ve}`}function P(J){const X=J.indexOf(" "),ie=J.indexOf(" ",X+1),ae=parseInt(J.substring(0,X),10),ve=J.substring(ie+1),we=ve.substring(0,ae),Fe=ve.substring(ae+1);return{symbolName:we,ambientModuleName:Fe===""?void 0:Fe}}function k(J){return!J.commonJsModuleIndicator&&!J.externalModuleIndicator&&!J.moduleAugmentations&&!J.ambientModuleNames}function F(J,X){if(!fv(J.ambientModuleNames,X.ambientModuleNames))return!1;let ie=-1,ae=-1;for(const ve of X.ambientModuleNames){const we=Fe=>dde(Fe)&&Fe.name.text===ve;if(ie=Ho(J.statements,we,ie+1),ae=Ho(X.statements,we,ae+1),J.statements[ie]!==X.statements[ae])return!1}return!0}function $(J,X){if(!X||!J.moduleFileName)return!0;const ie=e.getGlobalTypingsCacheLocation();if(ie&&qf(J.moduleFileName,ie))return!0;const ae=u.get(X);return!ae||qf(J.moduleFileName,ae)}}function Tce(e,n,i,c,u,d,h){var S;if(n===i)return!1;const E=h==null?void 0:h.get(n.path,i.path,c,{});if((E==null?void 0:E.isBlockedByPackageJsonDependencies)!==void 0)return!E.isBlockedByPackageJsonDependencies;const P=QC(d),k=(S=d.getGlobalTypingsCacheLocation)==null?void 0:S.call(d),F=!!u4.forEachFileNameOfModule(n.fileName,i.fileName,d,!1,$=>{const J=e.getSourceFile($);return(J===i||!J)&&F8e(n.fileName,$,P,k)});if(u){const $=F&&u.allowsImportingSourceFile(i,d);return h==null||h.setBlockedByPackageJsonDependencies(n.path,i.path,c,{},!$),$}return F}function F8e(e,n,i,c){const u=jC(n,h=>Jg(h)==="node_modules"?h:void 0),d=u&&ws(i(u));return d===void 0||qf(i(e),d)||!!c&&qf(i(c),d)}function VAe(e,n,i,c,u){var d,h;const S=pG(n),E=i.autoImportFileExcludePatterns&&Qo(i.autoImportFileExcludePatterns,k=>{const F=roe(k,"","exclude");return F?Y2(F,S):void 0});W8e(e.getTypeChecker(),e.getSourceFiles(),E,(k,F)=>u(k,F,e,!1));const P=c&&((d=n.getPackageJsonAutoImportProvider)==null?void 0:d.call(n));if(P){const k=H_(),F=e.getTypeChecker();W8e(P.getTypeChecker(),P.getSourceFiles(),E,($,J)=>{(J&&!e.getSourceFile(J.fileName)||!J&&!F.resolveName($.name,void 0,1536,!1))&&u($,J,P,!0)}),(h=n.log)==null||h.call(n,`forEachExternalModuleToImportFrom autoImportProvider: ${H_()-k}`)}}function W8e(e,n,i,c){var u;const d=i&&(h=>i.some(S=>S.test(h)));for(const h of e.getAmbientModules())!h.name.includes("*")&&!(i&&((u=h.declarations)!=null&&u.every(S=>d(S.getSourceFile().fileName))))&&c(h,void 0);for(const h of n)aE(h)&&!(d!=null&&d(h.fileName))&&c(e.getMergedSymbol(h.symbol),h)}function Sce(e,n,i,c,u){var d,h,S,E,P;const k=H_();(d=n.getPackageJsonAutoImportProvider)==null||d.call(n);const F=((h=n.getCachedExportInfoMap)==null?void 0:h.call(n))||jAe({getCurrentProgram:()=>i,getPackageJsonAutoImportProvider:()=>{var X;return(X=n.getPackageJsonAutoImportProvider)==null?void 0:X.call(n)},getGlobalTypingsCacheLocation:()=>{var X;return(X=n.getGlobalTypingsCacheLocation)==null?void 0:X.call(n)}});if(F.isUsableByFile(e.path))return(S=n.log)==null||S.call(n,"getExportInfoMap: cache hit"),F;(E=n.log)==null||E.call(n,"getExportInfoMap: cache miss or empty; calculating new results");const $=i.getCompilerOptions();let J=0;try{VAe(i,n,c,!0,(X,ie,ae,ve)=>{++J%100===0&&(u==null||u.throwIfCancellationRequested());const we=new Map,Fe=ae.getTypeChecker(),et=dhe(X,Fe,$);et&&XJe(et.symbol,Fe)&&F.add(e.path,et.symbol,et.exportKind===1?"default":"export=",X,ie,et.exportKind,ve,Fe),Fe.forEachExportAndPropertyOfModule(X,(Pe,dt)=>{Pe!==(et==null?void 0:et.symbol)&&XJe(Pe,Fe)&&y0(we,dt)&&F.add(e.path,Pe,dt,X,ie,0,ve,Fe)})})}catch(X){throw F.clear(),X}return(P=n.log)==null||P.call(n,`getExportInfoMap: done in ${H_()-k} ms`),F}function dhe(e,n,i){const c=Jct(e,n);if(!c)return;const{symbol:u,exportKind:d}=c,h=phe(u,n,i);return h&&{symbol:u,exportKind:d,...h}}function XJe(e,n){return!n.isUndefinedSymbol(e)&&!n.isUnknownSymbol(e)&&!yA(e)&&!aC(e)}function Jct(e,n){const i=n.resolveExternalModuleSymbol(e);if(i!==e)return{symbol:i,exportKind:2};const c=n.tryGetMemberInModuleExports("default",e);if(c)return{symbol:c,exportKind:1}}function phe(e,n,i){const c=i6(e);if(c)return{resolvedSymbol:c,name:c.name};const u=$ct(e);if(u!==void 0)return{resolvedSymbol:e,name:u};if(e.flags&2097152){const d=n.getImmediateAliasedSymbol(e);if(d&&d.parent)return phe(d,n,i)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:Fj(e,i.target)}}function $ct(e){return e.declarations&&Yr(e.declarations,n=>{var i;if(my(n))return(i=to(iv(n.expression),xn))==null?void 0:i.text;if(gy(n))return re.assert(n.name.text==="default","Expected the specifier to be a default export"),n.propertyName&&n.propertyName.text})}var UAe,HAe,qct=G({"src/services/exportInfoMap.ts"(){xl(),UAe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(UAe||{}),HAe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(HAe||{})}});function B8e(){const e=CS(99,!1);function n(c,u,d){return QJe(i(c,u,d),c)}function i(c,u,d){let h=0,S=0;const E=[],{prefix:P,pushTemplate:k}=ZJe(u);c=P+c;const F=P.length;k&&E.push(16),e.setText(c);let $=0;const J=[];let X=0;do{h=e.scan(),W9(h)||(ie(),S=h);const ae=e.getTokenEnd();if(z8e(e.getTokenStart(),ae,F,t$e(h),J),ae>=c.length){const ve=YJe(e,h,Yf(E));ve!==void 0&&($=ve)}}while(h!==1);function ie(){switch(h){case 44:case 69:!V8e[S]&&e.reScanSlashToken()===14&&(h=14);break;case 30:S===80&&X++;break;case 32:X>0&&X--;break;case 133:case 154:case 150:case 136:case 155:X>0&&!d&&(h=80);break;case 16:E.push(h);break;case 19:E.length>0&&E.push(h);break;case 20:if(E.length>0){const ae=Yf(E);ae===16?(h=e.reScanTemplateToken(!1),h===18?E.pop():re.assertEqual(h,17,"Should have been a template middle.")):(re.assertEqual(ae,19,"Should have been an open brace"),E.pop())}break;default:if(!qb(h))break;(S===25||qb(S)&&qb(h)&&!Xct(S,h))&&(h=80)}}return{endOfLineState:$,spans:J}}return{getClassificationsForLine:n,getEncodedLexicalClassifications:i}}function YJe(e,n,i){switch(n){case 11:{if(!e.isUnterminated())return;const c=e.getTokenText(),u=c.length-1;let d=0;for(;c.charCodeAt(u-d)===92;)d++;return d&1?c.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(VC(n)){if(!e.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return re.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return i===16?6:void 0}}function z8e(e,n,i,c,u){if(c===8)return;e===0&&i>0&&(e+=i);const d=n-e;d>0&&u.push(e-i,d,c)}function QJe(e,n){const i=[],c=e.spans;let u=0;for(let h=0;h=0){const k=S-u;k>0&&i.push({length:k,classification:4})}i.push({length:E,classification:Kct(P)}),u=S+E}const d=n.length-u;return d>0&&i.push({length:d,classification:4}),{entries:i,finalLexState:e.endOfLineState}}function Kct(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function Xct(e,n){if(!FR(e))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function ZJe(e){switch(e){case 3:return{prefix:`"\\ +`,bce="anonymous function",zAe=bb(dce,ehe,the,JZ)}});function jAe(e){let n=1;const i=zg(),c=new Map,u=new Map;let d;const h={isUsableByFile:J=>J===d,isEmpty:()=>!i.size,clear:()=>{i.clear(),c.clear(),d=void 0},add:(J,X,ie,ae,ve,we,Fe,et)=>{J!==d&&(h.clear(),d=J);let Pe;if(ve){const Et=AY(ve.fileName);if(Et){const{topLevelNodeModulesIndex:at,topLevelPackageNameIndex:Qt,packageRootIndex:nn}=Et;if(Pe=DQ(c4(ve.fileName.substring(Qt+1,nn))),qf(J,ve.path.substring(0,at))){const Rn=u.get(Pe),cn=ve.fileName.substring(0,Qt+1);if(Rn){const qt=Rn.indexOf(IP);at>qt&&u.set(Pe,cn)}else u.set(Pe,cn)}}}const Ie=we===1&&i6(X)||X,ct=we===0||eq(Ie)?Ic(ie):hce(Ie,void 0),Ct=typeof ct=="string"?ct:ct[0],Lt=typeof ct=="string"?void 0:ct[1],Ze=S2(ae.name),Ke=n++,st=dg(X,et),It=X.flags&33554432?void 0:X,Yt=ae.flags&33554432?void 0:ae;(!It||!Yt)&&c.set(Ke,[X,ae]),i.add(E(Ct,X,Kv(Ze)?void 0:Ze,et),{id:Ke,symbolTableKey:ie,symbolName:Ct,capitalizedSymbolName:Lt,moduleName:Ze,moduleFile:ve,moduleFileName:ve==null?void 0:ve.fileName,packageName:Pe,exportKind:we,targetFlags:st.flags,isFromPackageJson:Fe,symbol:It,moduleSymbol:Yt})},get:(J,X)=>{if(J!==d)return;const ie=i.get(X);return ie==null?void 0:ie.map(S)},search:(J,X,ie,ae)=>{if(J===d)return Jb(i,(ve,we)=>{const{symbolName:Fe,ambientModuleName:et}=P(we),Pe=X&&ve[0].capitalizedSymbolName||Fe;if(ie(Pe,ve[0].targetFlags)){const Ie=ve.map(S).filter((ct,Ct)=>$(ct,ve[Ct].packageName));if(Ie.length){const ct=ae(Ie,Pe,!!et,we);if(ct!==void 0)return ct}}})},releaseSymbols:()=>{c.clear()},onFileChanged:(J,X,ie)=>k(J)&&k(X)?!1:d&&d!==X.path||ie&&cq(J)!==cq(X)||!fv(J.moduleAugmentations,X.moduleAugmentations)||!F(J,X)?(h.clear(),!0):(d=X.path,!1)};return re.isDebugging&&Object.defineProperty(h,"__cache",{value:i}),h;function S(J){if(J.symbol&&J.moduleSymbol)return J;const{id:X,exportKind:ie,targetFlags:ae,isFromPackageJson:ve,moduleFileName:we}=J,[Fe,et]=c.get(X)||Yn;if(Fe&&et)return{symbol:Fe,moduleSymbol:et,moduleFileName:we,exportKind:ie,targetFlags:ae,isFromPackageJson:ve};const Pe=(ve?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),dt=J.moduleSymbol||et||re.checkDefined(J.moduleFile?Pe.getMergedSymbol(J.moduleFile.symbol):Pe.tryFindAmbientModule(J.moduleName)),Ie=J.symbol||Fe||re.checkDefined(ie===2?Pe.resolveExternalModuleSymbol(dt):Pe.tryGetMemberInModuleExportsAndProperties(Ic(J.symbolTableKey),dt),`Could not find symbol '${J.symbolName}' by key '${J.symbolTableKey}' in module ${dt.name}`);return c.set(X,[Ie,dt]),{symbol:Ie,moduleSymbol:dt,moduleFileName:we,exportKind:ie,targetFlags:ae,isFromPackageJson:ve}}function E(J,X,ie,ae){const ve=ie||"";return`${J.length} ${$d(dg(X,ae))} ${J} ${ve}`}function P(J){const X=J.indexOf(" "),ie=J.indexOf(" ",X+1),ae=parseInt(J.substring(0,X),10),ve=J.substring(ie+1),we=ve.substring(0,ae),Fe=ve.substring(ae+1);return{symbolName:we,ambientModuleName:Fe===""?void 0:Fe}}function k(J){return!J.commonJsModuleIndicator&&!J.externalModuleIndicator&&!J.moduleAugmentations&&!J.ambientModuleNames}function F(J,X){if(!fv(J.ambientModuleNames,X.ambientModuleNames))return!1;let ie=-1,ae=-1;for(const ve of X.ambientModuleNames){const we=Fe=>dde(Fe)&&Fe.name.text===ve;if(ie=Ho(J.statements,we,ie+1),ae=Ho(X.statements,we,ae+1),J.statements[ie]!==X.statements[ae])return!1}return!0}function $(J,X){if(!X||!J.moduleFileName)return!0;const ie=e.getGlobalTypingsCacheLocation();if(ie&&qf(J.moduleFileName,ie))return!0;const ae=u.get(X);return!ae||qf(J.moduleFileName,ae)}}function Tce(e,n,i,c,u,d,h){var S;if(n===i)return!1;const E=h==null?void 0:h.get(n.path,i.path,c,{});if((E==null?void 0:E.isBlockedByPackageJsonDependencies)!==void 0)return!E.isBlockedByPackageJsonDependencies;const P=QC(d),k=(S=d.getGlobalTypingsCacheLocation)==null?void 0:S.call(d),F=!!l4.forEachFileNameOfModule(n.fileName,i.fileName,d,!1,$=>{const J=e.getSourceFile($);return(J===i||!J)&&F8e(n.fileName,$,P,k)});if(u){const $=F&&u.allowsImportingSourceFile(i,d);return h==null||h.setBlockedByPackageJsonDependencies(n.path,i.path,c,{},!$),$}return F}function F8e(e,n,i,c){const u=jC(n,h=>Jg(h)==="node_modules"?h:void 0),d=u&&ws(i(u));return d===void 0||qf(i(e),d)||!!c&&qf(i(c),d)}function VAe(e,n,i,c,u){var d,h;const S=dG(n),E=i.autoImportFileExcludePatterns&&Qo(i.autoImportFileExcludePatterns,k=>{const F=roe(k,"","exclude");return F?Y2(F,S):void 0});W8e(e.getTypeChecker(),e.getSourceFiles(),E,(k,F)=>u(k,F,e,!1));const P=c&&((d=n.getPackageJsonAutoImportProvider)==null?void 0:d.call(n));if(P){const k=H_(),F=e.getTypeChecker();W8e(P.getTypeChecker(),P.getSourceFiles(),E,($,J)=>{(J&&!e.getSourceFile(J.fileName)||!J&&!F.resolveName($.name,void 0,1536,!1))&&u($,J,P,!0)}),(h=n.log)==null||h.call(n,`forEachExternalModuleToImportFrom autoImportProvider: ${H_()-k}`)}}function W8e(e,n,i,c){var u;const d=i&&(h=>i.some(S=>S.test(h)));for(const h of e.getAmbientModules())!h.name.includes("*")&&!(i&&((u=h.declarations)!=null&&u.every(S=>d(S.getSourceFile().fileName))))&&c(h,void 0);for(const h of n)aE(h)&&!(d!=null&&d(h.fileName))&&c(e.getMergedSymbol(h.symbol),h)}function Sce(e,n,i,c,u){var d,h,S,E,P;const k=H_();(d=n.getPackageJsonAutoImportProvider)==null||d.call(n);const F=((h=n.getCachedExportInfoMap)==null?void 0:h.call(n))||jAe({getCurrentProgram:()=>i,getPackageJsonAutoImportProvider:()=>{var X;return(X=n.getPackageJsonAutoImportProvider)==null?void 0:X.call(n)},getGlobalTypingsCacheLocation:()=>{var X;return(X=n.getGlobalTypingsCacheLocation)==null?void 0:X.call(n)}});if(F.isUsableByFile(e.path))return(S=n.log)==null||S.call(n,"getExportInfoMap: cache hit"),F;(E=n.log)==null||E.call(n,"getExportInfoMap: cache miss or empty; calculating new results");const $=i.getCompilerOptions();let J=0;try{VAe(i,n,c,!0,(X,ie,ae,ve)=>{++J%100===0&&(u==null||u.throwIfCancellationRequested());const we=new Map,Fe=ae.getTypeChecker(),et=dhe(X,Fe,$);et&&XJe(et.symbol,Fe)&&F.add(e.path,et.symbol,et.exportKind===1?"default":"export=",X,ie,et.exportKind,ve,Fe),Fe.forEachExportAndPropertyOfModule(X,(Pe,dt)=>{Pe!==(et==null?void 0:et.symbol)&&XJe(Pe,Fe)&&y0(we,dt)&&F.add(e.path,Pe,dt,X,ie,0,ve,Fe)})})}catch(X){throw F.clear(),X}return(P=n.log)==null||P.call(n,`getExportInfoMap: done in ${H_()-k} ms`),F}function dhe(e,n,i){const c=Jct(e,n);if(!c)return;const{symbol:u,exportKind:d}=c,h=phe(u,n,i);return h&&{symbol:u,exportKind:d,...h}}function XJe(e,n){return!n.isUndefinedSymbol(e)&&!n.isUnknownSymbol(e)&&!yA(e)&&!aC(e)}function Jct(e,n){const i=n.resolveExternalModuleSymbol(e);if(i!==e)return{symbol:i,exportKind:2};const c=n.tryGetMemberInModuleExports("default",e);if(c)return{symbol:c,exportKind:1}}function phe(e,n,i){const c=i6(e);if(c)return{resolvedSymbol:c,name:c.name};const u=$ct(e);if(u!==void 0)return{resolvedSymbol:e,name:u};if(e.flags&2097152){const d=n.getImmediateAliasedSymbol(e);if(d&&d.parent)return phe(d,n,i)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:Oj(e,i.target)}}function $ct(e){return e.declarations&&Yr(e.declarations,n=>{var i;if(py(n))return(i=to(iv(n.expression),xn))==null?void 0:i.text;if(my(n))return re.assert(n.name.text==="default","Expected the specifier to be a default export"),n.propertyName&&n.propertyName.text})}var UAe,HAe,qct=G({"src/services/exportInfoMap.ts"(){xl(),UAe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(UAe||{}),HAe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(HAe||{})}});function B8e(){const e=CS(99,!1);function n(c,u,d){return QJe(i(c,u,d),c)}function i(c,u,d){let h=0,S=0;const E=[],{prefix:P,pushTemplate:k}=ZJe(u);c=P+c;const F=P.length;k&&E.push(16),e.setText(c);let $=0;const J=[];let X=0;do{h=e.scan(),W9(h)||(ie(),S=h);const ae=e.getTokenEnd();if(z8e(e.getTokenStart(),ae,F,t$e(h),J),ae>=c.length){const ve=YJe(e,h,Yf(E));ve!==void 0&&($=ve)}}while(h!==1);function ie(){switch(h){case 44:case 69:!V8e[S]&&e.reScanSlashToken()===14&&(h=14);break;case 30:S===80&&X++;break;case 32:X>0&&X--;break;case 133:case 154:case 150:case 136:case 155:X>0&&!d&&(h=80);break;case 16:E.push(h);break;case 19:E.length>0&&E.push(h);break;case 20:if(E.length>0){const ae=Yf(E);ae===16?(h=e.reScanTemplateToken(!1),h===18?E.pop():re.assertEqual(h,17,"Should have been a template middle.")):(re.assertEqual(ae,19,"Should have been an open brace"),E.pop())}break;default:if(!qb(h))break;(S===25||qb(S)&&qb(h)&&!Xct(S,h))&&(h=80)}}return{endOfLineState:$,spans:J}}return{getClassificationsForLine:n,getEncodedLexicalClassifications:i}}function YJe(e,n,i){switch(n){case 11:{if(!e.isUnterminated())return;const c=e.getTokenText(),u=c.length-1;let d=0;for(;c.charCodeAt(u-d)===92;)d++;return d&1?c.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(VC(n)){if(!e.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return re.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return i===16?6:void 0}}function z8e(e,n,i,c,u){if(c===8)return;e===0&&i>0&&(e+=i);const d=n-e;d>0&&u.push(e-i,d,c)}function QJe(e,n){const i=[],c=e.spans;let u=0;for(let h=0;h=0){const k=S-u;k>0&&i.push({length:k,classification:4})}i.push({length:E,classification:Kct(P)}),u=S+E}const d=n.length-u;return d>0&&i.push({length:d,classification:4}),{entries:i,finalLexState:e.endOfLineState}}function Kct(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function Xct(e,n){if(!FR(e))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function ZJe(e){switch(e){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 re.assertNever(e)}}function e$e(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function G8e(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function t$e(e){if(qb(e))return 3;if(e$e(e)||G8e(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return VC(e)?6:2}}function JAe(e,n,i,c,u){return ghe($Ae(e,n,i,c,u))}function mhe(e,n){switch(n){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function $Ae(e,n,i,c,u){const d=[];return i.forEachChild(function S(E){if(!(!E||!zz(u,E.pos,E.getFullWidth()))){if(mhe(n,E.kind),xn(E)&&!ny(E)&&c.has(E.escapedText)){const P=e.getSymbolAtLocation(E),k=P&&Ece(P,xF(E),e);k&&h(E.getStart(i),E.getEnd(),k)}E.forEachChild(S)}}),{spans:d,endOfLineState:0};function h(S,E,P){const k=E-S;re.assert(k>0,`Classification had non-positive length of ${k}`),d.push(S),d.push(k),d.push(P)}}function Ece(e,n,i){const c=e.getFlags();if(c&2885600)return c&32?11:c&384?12:c&524288?16:c&1536?n&4||n&1&&j8e(e)?14:void 0:c&2097152?Ece(i.getAliasedSymbol(e),n,i):n&2?c&64?13:c&262144?15:void 0:void 0}function j8e(e){return gt(e.declarations,n=>py(n)&&YN(n)===1)}function n$e(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function ghe(e){re.assert(e.spans.length%3===0);const n=e.spans,i=[];for(let c=0;c])*)(\/>)?)?/im,ct=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Ct=n.text.substr(Pe,dt),Lt=Ie.exec(Ct);if(!Lt||!Lt[3]||!(Lt[3]in kU))return!1;let Ze=Pe;F(Ze,Lt[1].length),Ze+=Lt[1].length,E(Ze,Lt[2].length,10),Ze+=Lt[2].length,E(Ze,Lt[3].length,21),Ze+=Lt[3].length;const Ke=Lt[4];let st=Ze;for(;;){const Yt=ct.exec(Ke);if(!Yt)break;const Et=Ze+Yt.index+Yt[1].length;Et>st&&(F(st,Et-st),st=Et),E(st,Yt[2].length,22),st+=Yt[2].length,Yt[3].length&&(F(st,Yt[3].length),st+=Yt[3].length),E(st,Yt[4].length,5),st+=Yt[4].length,Yt[5].length&&(F(st,Yt[5].length),st+=Yt[5].length),E(st,Yt[6].length,24),st+=Yt[6].length}Ze+=Lt[4].length,Ze>st&&F(st,Ze-st),Lt[5]&&(E(Ze,Lt[5].length,10),Ze+=Lt[5].length);const It=Pe+dt;return Ze=0),ct>0){const Ct=dt||Fe(Pe.kind,Pe);Ct&&E(Ie,ct,Ct)}return!0}function we(Pe){switch(Pe.parent&&Pe.parent.kind){case 286:if(Pe.parent.tagName===Pe)return 19;break;case 287:if(Pe.parent.tagName===Pe)return 20;break;case 285:if(Pe.parent.tagName===Pe)return 21;break;case 291:if(Pe.parent.name===Pe)return 22;break}}function Fe(Pe,dt){if(qb(Pe))return 3;if((Pe===30||Pe===32)&&dt&&IAe(dt.parent))return 10;if(fG(Pe)){if(dt){const Ie=dt.parent;if(Pe===64&&(Ie.kind===260||Ie.kind===172||Ie.kind===169||Ie.kind===291)||Ie.kind===226||Ie.kind===224||Ie.kind===225||Ie.kind===227)return 5}return 10}else{if(Pe===9)return 4;if(Pe===10)return 25;if(Pe===11)return dt&&dt.parent.kind===291?24:6;if(Pe===14)return 6;if(VC(Pe))return 6;if(Pe===12)return 23;if(Pe===80){if(dt){switch(dt.parent.kind){case 263:return dt.parent.name===dt?11:void 0;case 168:return dt.parent.name===dt?15:void 0;case 264:return dt.parent.name===dt?13:void 0;case 266:return dt.parent.name===dt?12:void 0;case 267:return dt.parent.name===dt?14:void 0;case 169:return dt.parent.name===dt?E2(dt)?3:17:void 0}if(ky(dt.parent))return 3}return 2}}}function et(Pe){if(Pe&&FX(c,u,Pe.pos,Pe.getFullWidth())){mhe(e,Pe.kind);for(const dt of Pe.getChildren(n))ve(dt)||et(dt)}}}var V8e,KAe=G({"src/services/classifier.ts"(){xl(),V8e=Tz([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),yhe,Yct=G({"src/services/documentHighlights.ts"(){xl(),(e=>{function n(Ze,Ke,st,It,Yt){const Et=cS(st,It);if(Et.parent&&(Pb(Et.parent)&&Et.parent.tagName===Et||iD(Et.parent))){const{openingElement:at,closingElement:Qt}=Et.parent.parent,nn=[at,Qt].map(({tagName:Rn})=>i(Rn,st));return[{fileName:st.fileName,highlightSpans:nn}]}return c(It,Et,Ze,Ke,Yt)||u(Et,st)}e.getDocumentHighlights=n;function i(Ze,Ke){return{fileName:Ke.fileName,textSpan:sT(Ze,Ke),kind:"none"}}function c(Ze,Ke,st,It,Yt){const Et=new Set(Yt.map(Rn=>Rn.fileName)),at=Wf.getReferenceEntriesForNode(Ze,Ke,st,Yt,It,void 0,Et);if(!at)return;const Qt=_N(at.map(Wf.toHighlightSpan),Rn=>Rn.fileName,Rn=>Rn.span),nn=H1(st.useCaseSensitiveFileNames());return oc(p2(Qt.entries(),([Rn,cn])=>{if(!Et.has(Rn)){if(!st.redirectTargetsMap.has(gm(Rn,st.getCurrentDirectory(),nn)))return;const qt=st.getSourceFile(Rn);Rn=lr(Yt,wr=>!!wr.redirectInfo&&wr.redirectInfo.redirectTarget===qt).fileName,re.assert(Et.has(Rn))}return{fileName:Rn,highlightSpans:cn}}))}function u(Ze,Ke){const st=d(Ze,Ke);return st&&[{fileName:Ke.fileName,highlightSpans:st}]}function d(Ze,Ke){switch(Ze.kind){case 101:case 93:return bk(Ze.parent)?ct(Ze.parent,Ke):void 0;case 107:return It(Ze.parent,iS,et);case 111:return It(Ze.parent,ff,Fe);case 113:case 85:case 98:const Et=Ze.kind===85?Ze.parent.parent:Ze.parent;return It(Et,My,we);case 109:return It(Ze.parent,AR,ve);case 84:case 90:return xk(Ze.parent)||BT(Ze.parent)?It(Ze.parent.parent.parent,AR,ve):void 0;case 83:case 88:return It(Ze.parent,M8,ae);case 99:case 117:case 92:return It(Ze.parent,at=>OL(at,!0),ie);case 137:return st(Lh,[137]);case 139:case 153:return st(GM,[139,153]);case 135:return It(Ze.parent,ys,Pe);case 134:return Yt(Pe(Ze));case 127:return Yt(dt(Ze));case 103:return;default:return Om(Ze.kind)&&(PT(Ze.parent)||Xg(Ze.parent))?Yt($(Ze.kind,Ze.parent)):void 0}function st(Et,at){return It(Ze.parent,Et,Qt=>{var nn;return Qo((nn=to(Qt,ck))==null?void 0:nn.symbol.declarations,Rn=>Et(Rn)?lr(Rn.getChildren(Ke),cn=>ni(at,cn.kind)):void 0)})}function It(Et,at,Qt){return at(Et)?Yt(Qt(Et,Ke)):void 0}function Yt(Et){return Et&&Et.map(at=>i(at,Ke))}}function h(Ze){return ff(Ze)?[Ze]:My(Ze)?Hi(Ze.catchClause?h(Ze.catchClause):Ze.tryBlock&&h(Ze.tryBlock),Ze.finallyBlock&&h(Ze.finallyBlock)):F_(Ze)?void 0:P(Ze,h)}function S(Ze){let Ke=Ze;for(;Ke.parent;){const st=Ke.parent;if(hP(st)||st.kind===312)return st;if(My(st)&&st.tryBlock===Ke&&st.catchClause)return Ke;Ke=st}}function E(Ze){return M8(Ze)?[Ze]:F_(Ze)?void 0:P(Ze,E)}function P(Ze,Ke){const st=[];return Ze.forEachChild(It=>{const Yt=Ke(It);Yt!==void 0&&st.push(...BC(Yt))}),st}function k(Ze,Ke){const st=F(Ke);return!!st&&st===Ze}function F(Ze){return Ua(Ze,Ke=>{switch(Ke.kind){case 255:if(Ze.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Ze.label||Lt(Ke,Ze.label.escapedText);default:return F_(Ke)&&"quit"}})}function $(Ze,Ke){return Qo(J(Ke,F7(Ze)),st=>QW(st,Ze))}function J(Ze,Ke){const st=Ze.parent;switch(st.kind){case 268:case 312:case 241:case 296:case 297:return Ke&64&&Ih(Ze)?[...Ze.members,Ze]:st.statements;case 176:case 174:case 262:return[...st.parameters,...Fl(st.parent)?st.parent.members:[]];case 263:case 231:case 264:case 187:const It=st.members;if(Ke&15){const Yt=lr(st.members,Lh);if(Yt)return[...It,...Yt.parameters]}else if(Ke&64)return[...It,st];return It;case 210:return;default:re.assertNever(st,"Invalid container kind.")}}function X(Ze,Ke,...st){return Ke&&ni(st,Ke.kind)?(Ze.push(Ke),!0):!1}function ie(Ze){const Ke=[];if(X(Ke,Ze.getFirstToken(),99,117,92)&&Ze.kind===246){const st=Ze.getChildren();for(let It=st.length-1;It>=0&&!X(Ke,st[It],117);It--);}return Ot(E(Ze.statement),st=>{k(Ze,st)&&X(Ke,st.getFirstToken(),83,88)}),Ke}function ae(Ze){const Ke=F(Ze);if(Ke)switch(Ke.kind){case 248:case 249:case 250:case 246:case 247:return ie(Ke);case 255:return ve(Ke)}}function ve(Ze){const Ke=[];return X(Ke,Ze.getFirstToken(),109),Ot(Ze.caseBlock.clauses,st=>{X(Ke,st.getFirstToken(),84,90),Ot(E(st),It=>{k(Ze,It)&&X(Ke,It.getFirstToken(),83)})}),Ke}function we(Ze,Ke){const st=[];if(X(st,Ze.getFirstToken(),113),Ze.catchClause&&X(st,Ze.catchClause.getFirstToken(),85),Ze.finallyBlock){const It=qm(Ze,98,Ke);X(st,It,98)}return st}function Fe(Ze,Ke){const st=S(Ze);if(!st)return;const It=[];return Ot(h(st),Yt=>{It.push(qm(Yt,111,Ke))}),hP(st)&&dR(st,Yt=>{It.push(qm(Yt,107,Ke))}),It}function et(Ze,Ke){const st=zE(Ze);if(!st)return;const It=[];return dR(uc(st.body,Ou),Yt=>{It.push(qm(Yt,107,Ke))}),Ot(h(st.body),Yt=>{It.push(qm(Yt,111,Ke))}),It}function Pe(Ze){const Ke=zE(Ze);if(!Ke)return;const st=[];return Ke.modifiers&&Ke.modifiers.forEach(It=>{X(st,It,134)}),s_(Ke,It=>{Ie(It,Yt=>{ys(Yt)&&X(st,Yt.getFirstToken(),135)})}),st}function dt(Ze){const Ke=zE(Ze);if(!Ke)return;const st=[];return s_(Ke,It=>{Ie(It,Yt=>{t0(Yt)&&X(st,Yt.getFirstToken(),127)})}),st}function Ie(Ze,Ke){Ke(Ze),!F_(Ze)&&!Fl(Ze)&&!xp(Ze)&&!py(Ze)&&!z0(Ze)&&!pc(Ze)&&s_(Ze,st=>Ie(st,Ke))}function ct(Ze,Ke){const st=Ct(Ze,Ke),It=[];for(let Yt=0;Yt=Et.end;nn--)if(!q1(Ke.text.charCodeAt(nn))){Qt=!1;break}if(Qt){It.push({fileName:Ke.fileName,textSpan:Yy(Et.getStart(),at.end),kind:"reference"}),Yt++;continue}}It.push(i(st[Yt],Ke))}return It}function Ct(Ze,Ke){const st=[];for(;bk(Ze.parent)&&Ze.parent.elseStatement===Ze;)Ze=Ze.parent;for(;;){const It=Ze.getChildren(Ke);X(st,It[0],101);for(let Yt=It.length-1;Yt>=0&&!X(st,It[Yt],93);Yt--);if(!Ze.elseStatement||!bk(Ze.elseStatement))break;Ze=Ze.elseStatement}return st}function Lt(Ze,Ke){return!!Ua(Ze.parent,st=>tF(st)?st.label.escapedText===Ke:"quit")}})(yhe||(yhe={}))}});function xce(e){return!!e.sourceFile}function U8e(e,n,i){return Ace(e,n,i)}function Ace(e,n="",i,c){const u=new Map,d=H1(!!e);function h(){const ae=oc(u.keys()).filter(ve=>ve&&ve.charAt(0)==="_").map(ve=>{const we=u.get(ve),Fe=[];return we.forEach((et,Pe)=>{xce(et)?Fe.push({name:Pe,scriptKind:et.sourceFile.scriptKind,refCount:et.languageServiceRefCount}):et.forEach((dt,Ie)=>Fe.push({name:Pe,scriptKind:Ie,refCount:dt.languageServiceRefCount}))}),Fe.sort((et,Pe)=>Pe.refCount-et.refCount),{bucket:ve,sourceFiles:Fe}});return JSON.stringify(ae,void 0,2)}function S(ae){return typeof ae.getCompilationSettings=="function"?ae.getCompilationSettings():ae}function E(ae,ve,we,Fe,et,Pe){const dt=gm(ae,n,d),Ie=XAe(S(ve));return P(ae,dt,ve,Ie,we,Fe,et,Pe)}function P(ae,ve,we,Fe,et,Pe,dt,Ie){return J(ae,ve,we,Fe,et,Pe,!0,dt,Ie)}function k(ae,ve,we,Fe,et,Pe){const dt=gm(ae,n,d),Ie=XAe(S(ve));return F(ae,dt,ve,Ie,we,Fe,et,Pe)}function F(ae,ve,we,Fe,et,Pe,dt,Ie){return J(ae,ve,S(we),Fe,et,Pe,!1,dt,Ie)}function $(ae,ve){const we=xce(ae)?ae:ae.get(re.checkDefined(ve,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return re.assert(ve===void 0||!we||we.sourceFile.scriptKind===ve,`Script kind should match provided ScriptKind:${ve} and sourceFile.scriptKind: ${we==null?void 0:we.sourceFile.scriptKind}, !entry: ${!we}`),we}function J(ae,ve,we,Fe,et,Pe,dt,Ie,ct){var Ct,Lt,Ze,Ke;Ie=$H(ae,Ie);const st=S(we),It=we===st?void 0:we,Yt=Ie===6?100:iu(st),Et=typeof ct=="object"?ct:{languageVersion:Yt,impliedNodeFormat:It&&Zae(ve,(Ke=(Ze=(Lt=(Ct=It.getCompilerHost)==null?void 0:Ct.call(It))==null?void 0:Lt.getModuleResolutionCache)==null?void 0:Ze.call(Lt))==null?void 0:Ke.getPackageJsonInfoCache(),It,st),setExternalModuleIndicator:q9(st),jsDocParsingMode:i};Et.languageVersion=Yt,re.assertEqual(i,Et.jsDocParsingMode);const at=u.size,Qt=YAe(Fe,Et.impliedNodeFormat),nn=Jw(u,Qt,()=>new Map);if(ps){u.size>at&&ps.instant(ps.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:st.configFilePath,key:Qt});const Kt=!Zb(ve)&&Jb(u,(wr,Wr)=>Wr!==Qt&&wr.has(ve)&&Wr);Kt&&ps.instant(ps.Phase.Session,"documentRegistryBucketOverlap",{path:ve,key1:Kt,key2:Qt})}const Rn=nn.get(ve);let cn=Rn&&$(Rn,Ie);if(!cn&&c){const Kt=c.getDocument(Qt,ve);Kt&&(re.assert(dt),cn={sourceFile:Kt,languageServiceRefCount:0},qt())}if(cn)cn.sourceFile.version!==Pe&&(cn.sourceFile=fye(cn.sourceFile,et,Pe,et.getChangeRange(cn.sourceFile.scriptSnapshot)),c&&c.setDocument(Qt,ve,cn.sourceFile)),dt&&cn.languageServiceRefCount++;else{const Kt=xq(ae,et,Et,Pe,!1,Ie);c&&c.setDocument(Qt,ve,Kt),cn={sourceFile:Kt,languageServiceRefCount:1},qt()}return re.assert(cn.languageServiceRefCount!==0),cn.sourceFile;function qt(){if(!Rn)nn.set(ve,cn);else if(xce(Rn)){const Kt=new Map;Kt.set(Rn.sourceFile.scriptKind,Rn),Kt.set(Ie,cn),nn.set(ve,Kt)}else Rn.set(Ie,cn)}}function X(ae,ve,we,Fe){const et=gm(ae,n,d),Pe=XAe(ve);return ie(et,Pe,we,Fe)}function ie(ae,ve,we,Fe){const et=re.checkDefined(u.get(YAe(ve,Fe))),Pe=et.get(ae),dt=$(Pe,we);dt.languageServiceRefCount--,re.assert(dt.languageServiceRefCount>=0),dt.languageServiceRefCount===0&&(xce(Pe)?et.delete(ae):(Pe.delete(we),Pe.size===1&&et.set(ae,Ns(Pe.values(),Of))))}return{acquireDocument:E,acquireDocumentWithKey:P,updateDocument:k,updateDocumentWithKey:F,releaseDocument:X,releaseDocumentWithKey:ie,getKeyForCompilationSettings:XAe,getDocumentRegistryBucketKeyWithMode:YAe,reportStats:h,getBuckets:()=>u}}function XAe(e){return N3(e,c$)}function YAe(e,n){return n?`${e}|${n}`:e}var Qct=G({"src/services/documentRegistry.ts"(){xl()}});function QAe(e,n,i,c,u,d,h){const S=pG(c),E=H1(S),P=Cce(n,i,E,h),k=Cce(i,n,E,h);return zs.ChangeTracker.with({host:c,formatContext:u,preferences:d},F=>{vhe(e,F,P,n,i,c.getCurrentDirectory(),S),r$e(e,F,P,k,c,E)})}function Cce(e,n,i,c){const u=i(e);return h=>{const S=c&&c.tryGetSourcePosition({fileName:h,pos:0}),E=d(S?S.fileName:h);return S?E===void 0?void 0:Zct(S.fileName,E,h,i):E};function d(h){if(i(h)===u)return n;const S=toe(h,u,i);return S===void 0?void 0:n+"/"+S}}function Zct(e,n,i,c){const u=wM(e,n,c);return ZAe(ws(i),u)}function vhe(e,n,i,c,u,d,h){const{configFile:S}=e.getCompilerOptions();if(!S)return;const E=ws(S.fileName),P=tG(S);if(!P)return;bhe(P,(J,X)=>{switch(X){case"files":case"include":case"exclude":{if(k(J)||X!=="include"||!Ed(J.initializer))return;const ae=Qo(J.initializer.elements,we=>Sd(we)?we.text:void 0);if(ae.length===0)return;const ve=Y9(E,[],ae,h,d);Y2(re.checkDefined(ve.includeFilePattern),h).test(c)&&!Y2(re.checkDefined(ve.includeFilePattern),h).test(u)&&n.insertNodeAfter(S,yl(J.initializer.elements),he.createStringLiteral($(u)));return}case"compilerOptions":bhe(J.initializer,(ie,ae)=>{const ve=QJ(ae);re.assert((ve==null?void 0:ve.type)!=="listOrElement"),ve&&(ve.isFilePath||ve.type==="list"&&ve.element.isFilePath)?k(ie):ae==="paths"&&bhe(ie.initializer,we=>{if(Ed(we.initializer))for(const Fe of we.initializer.elements)F(Fe)})});return}});function k(J){const X=Ed(J.initializer)?J.initializer.elements:[J.initializer];let ie=!1;for(const ae of X)ie=F(ae)||ie;return ie}function F(J){if(!Sd(J))return!1;const X=ZAe(E,J.text),ie=i(X);return ie!==void 0?(n.replaceRangeWithText(S,a$e(J,S),$(ie)),!0):!1}function $(J){return sP(E,J,!h)}}function r$e(e,n,i,c,u,d){const h=e.getSourceFiles();for(const S of h){const E=i(S.fileName),P=E??S.fileName,k=ws(P),F=c(S.fileName),$=F||S.fileName,J=ws($),X=E!==void 0||F!==void 0;o$e(S,n,ie=>{if(!V2(ie))return;const ae=ZAe(J,ie),ve=i(ae);return ve===void 0?void 0:Fd(sP(k,ve,d))},ie=>{const ae=e.getTypeChecker().getSymbolAtLocation(ie);if(ae!=null&&ae.declarations&&ae.declarations.some(we=>dh(we)))return;const ve=F!==void 0?eCe(ie,ej(ie.text,$,e.getCompilerOptions(),u),i,h):i$e(ae,ie,S,e,u,i);return ve!==void 0&&(ve.updated||X&&V2(ie.text))?u4.updateModuleSpecifier(e.getCompilerOptions(),S,d(P),ve.newFileName,v4(e,u),ie.text):void 0})}}function elt(e,n){return hf(vl(e,n))}function ZAe(e,n){return Fd(elt(e,n))}function i$e(e,n,i,c,u,d){if(e){const h=lr(e.declarations,Nu).fileName,S=d(h);return S===void 0?{newFileName:h,updated:!1}:{newFileName:S,updated:!0}}else{const h=PA(i,n),S=u.resolveModuleNameLiterals||!u.resolveModuleNames?c.getResolvedModule(i,n.text,h):u.getResolvedModuleWithFailedLookupLocationsFromCache&&u.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,i.fileName,h);return eCe(n,S,d,c.getSourceFiles())}}function eCe(e,n,i,c){if(!n)return;if(n.resolvedModule){const E=S(n.resolvedModule.resolvedFileName);if(E)return E}const u=Ot(n.failedLookupLocations,d)||V2(e.text)&&Ot(n.failedLookupLocations,h);if(u)return u;return n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function d(E){const P=i(E);return P&&lr(c,k=>k.fileName===P)?h(E):void 0}function h(E){return h_(E,"/package.json")?void 0:S(E)}function S(E){const P=i(E);return P&&{newFileName:P,updated:!0}}}function o$e(e,n,i,c){for(const u of e.referencedFiles||Yn){const d=i(u.fileName);d!==void 0&&d!==e.text.slice(u.pos,u.end)&&n.replaceRangeWithText(e,u,d)}for(const u of e.imports){const d=c(u);d!==void 0&&d!==u.text&&n.replaceRangeWithText(e,a$e(u,e),d)}}function a$e(e,n){return tv(e.getStart(n)+1,e.end-1)}function bhe(e,n){if(el(e))for(const i of e.properties)tl(i)&&Sd(i.name)&&n(i,i.name.text)}var tlt=G({"src/services/getEditsForFileRename.ts"(){xl()}});function _q(e,n){return{kind:e,isCaseSensitive:n}}function H8e(e){const n=new Map,i=e.trim().split(".").map(c=>c$e(c.trim()));if(i.length===1&&i[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>_q(2,!0),getFullMatch:()=>_q(2,!0),patternContainsDots:!1};if(!i.some(c=>!c.subWordTextChunks.length))return{getFullMatch:(c,u)=>dq(c,u,i,n),getMatchForLastSegmentOfPattern:c=>The(c,yl(i),n),patternContainsDots:i.length>1}}function dq(e,n,i,c){if(!The(n,yl(i),c)||i.length-1>e.length)return;let d;for(let h=i.length-2,S=e.length-1;h>=0;h-=1,S-=1)d=tCe(d,The(e[S],i[h],c));return d}function J8e(e,n){let i=n.get(e);return i||n.set(e,i=iCe(e)),i}function s$e(e,n,i){const c=l$e(e,n.textLowerCase);if(c===0)return _q(n.text.length===e.length?0:1,qf(e,n.text));if(n.isLowerCase){if(c===-1)return;const u=J8e(e,i);for(const d of u)if($8e(e,d,n.text,!0))return _q(2,$8e(e,d,n.text,!1));if(n.text.length0)return _q(2,!0);if(n.characterSpans.length>0){const u=J8e(e,i),d=K8e(e,u,n,!1)?!0:K8e(e,u,n,!0)?!1:void 0;if(d!==void 0)return _q(3,d)}}}function The(e,n,i){if(aCe(n.totalTextChunk.text,d=>d!==32&&d!==42)){const d=s$e(e,n.totalTextChunk,i);if(d)return d}const c=n.subWordTextChunks;let u;for(const d of c)u=tCe(u,s$e(e,d,i));return u}function tCe(e,n){return qw([e,n],nlt)}function nlt(e,n){return e===void 0?1:n===void 0?-1:pf(e.kind,n.kind)||Z0(!e.isCaseSensitive,!n.isCaseSensitive)}function $8e(e,n,i,c,u={start:0,length:i.length}){return u.length<=n.length&&e3e(0,u.length,d=>q8e(i.charCodeAt(u.start+d),e.charCodeAt(n.start+d),c))}function q8e(e,n,i){return i?X8e(e)===X8e(n):e===n}function K8e(e,n,i,c){const u=i.characterSpans;let d=0,h=0;for(;;){if(h===u.length)return!0;if(d===n.length)return!1;let S=n[d],E=!1;for(;h=65&&e<=90)return!0;if(e<127||!K(e,99))return!1;const n=String.fromCharCode(e);return n===n.toUpperCase()}function nCe(e){if(e>=97&&e<=122)return!0;if(e<127||!K(e,99))return!1;const n=String.fromCharCode(e);return n===n.toLowerCase()}function l$e(e,n){const i=e.length-n.length;for(let c=0;c<=i;c++)if(aCe(n,(u,d)=>X8e(e.charCodeAt(d+c))===u))return c;return-1}function X8e(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Y8e(e){return e>=48&&e<=57}function u$e(e){return Bj(e)||nCe(e)||Y8e(e)||e===95||e===36}function rCe(e){const n=[];let i=0,c=0;for(let u=0;u0&&(n.push(Dce(e.substr(i,c))),c=0)}return c>0&&n.push(Dce(e.substr(i,c))),n}function Dce(e){const n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:Q8e(e)}}function Q8e(e){return f$e(e,!1)}function iCe(e){return f$e(e,!0)}function f$e(e,n){const i=[];let c=0;for(let u=1;uoCe(c)&&c!==95,n,i)}function _$e(e,n,i){return n!==i&&n+1n(e.charCodeAt(u),u))}var tee,ilt=G({"src/services/patternMatcher.ts"(){xl(),tee=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(tee||{})}});function t3e(e,n=!0,i=!1){const c={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},u=[];let d,h,S,E=0,P=!1;function k(){return h=S,S=uT.scan(),S===19?E++:S===20&&E--,S}function F(){const Pe=uT.getTokenValue(),dt=uT.getTokenStart();return{fileName:Pe,pos:dt,end:dt+Pe.length}}function $(){d||(d=[]),d.push({ref:F(),depth:E})}function J(){u.push(F()),X()}function X(){E===0&&(P=!0)}function ie(){let Pe=uT.getToken();return Pe===138?(Pe=k(),Pe===144&&(Pe=k(),Pe===11&&$()),!0):!1}function ae(){if(h===25)return!1;let Pe=uT.getToken();if(Pe===102){if(Pe=k(),Pe===21){if(Pe=k(),Pe===11||Pe===15)return J(),!0}else{if(Pe===11)return J(),!0;if(Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie!==161&&(Ie===42||Ie===19||Ie===80||qb(Ie))})&&(Pe=k()),Pe===80||qb(Pe))if(Pe=k(),Pe===161){if(Pe=k(),Pe===11)return J(),!0}else if(Pe===64){if(we(!0))return!0}else if(Pe===28)Pe=k();else return!0;if(Pe===19){for(Pe=k();Pe!==20&&Pe!==1;)Pe=k();Pe===20&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))}else Pe===42&&(Pe=k(),Pe===130&&(Pe=k(),(Pe===80||qb(Pe))&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))))}return!0}return!1}function ve(){let Pe=uT.getToken();if(Pe===95){if(X(),Pe=k(),Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie===42||Ie===19})&&(Pe=k()),Pe===19){for(Pe=k();Pe!==20&&Pe!==1;)Pe=k();Pe===20&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))}else if(Pe===42)Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J());else if(Pe===102&&(Pe=k(),Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie===80||qb(Ie)})&&(Pe=k()),(Pe===80||qb(Pe))&&(Pe=k(),Pe===64&&we(!0))))return!0;return!0}return!1}function we(Pe,dt=!1){let Ie=Pe?k():uT.getToken();return Ie===149?(Ie=k(),Ie===21&&(Ie=k(),(Ie===11||dt&&Ie===15)&&J()),!0):!1}function Fe(){let Pe=uT.getToken();if(Pe===80&&uT.getTokenValue()==="define"){if(Pe=k(),Pe!==21)return!0;if(Pe=k(),Pe===11||Pe===15)if(Pe=k(),Pe===28)Pe=k();else return!0;if(Pe!==23)return!0;for(Pe=k();Pe!==24&&Pe!==1;)(Pe===11||Pe===15)&&J(),Pe=k();return!0}return!1}function et(){for(uT.setText(e),k();uT.getToken()!==1;){if(uT.getToken()===16){const Pe=[uT.getToken()];e:for(;Nt(Pe);){const dt=uT.scan();switch(dt){case 1:break e;case 102:ae();break;case 16:Pe.push(dt);break;case 19:Nt(Pe)&&Pe.push(dt);break;case 20:Nt(Pe)&&(Yf(Pe)===16?uT.reScanTemplateToken(!1)===18&&Pe.pop():Pe.pop());break}}k()}ie()||ae()||ve()||i&&(we(!1,!0)||Fe())||k()}uT.setText(void 0)}if(n&&et(),YEe(c,e),E6(c,ku),P){if(d)for(const Pe of d)u.push(Pe.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:void 0}}else{let Pe;if(d)for(const dt of d)dt.depth===0?(Pe||(Pe=[]),Pe.push(dt.ref.fileName)):u.push(dt.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:Pe}}}var olt=G({"src/services/preProcess.ts"(){xl()}});function n3e(e){const n=H1(e.useCaseSensitiveFileNames()),i=e.getCurrentDirectory(),c=new Map,u=new Map;return{tryGetSourcePosition:S,tryGetGeneratedPosition:E,toLineColumnOffset:$,clearCache:J};function d(X){return gm(X,i,n)}function h(X,ie){const ae=d(X),ve=u.get(ae);if(ve)return ve;let we;if(e.getDocumentPositionMapper)we=e.getDocumentPositionMapper(X,ie);else if(e.readFile){const Fe=F(X);we=Fe&&sCe({getSourceFileLike:F,getCanonicalFileName:n,log:et=>e.log(et)},X,kae(Fe.text,eR(Fe)),et=>!e.fileExists||e.fileExists(et)?e.readFile(et):void 0)}return u.set(ae,we||Vx),we||Vx}function S(X){if(!Zb(X.fileName)||!P(X.fileName))return;const ae=h(X.fileName).getSourcePosition(X);return!ae||ae===X?void 0:S(ae)||ae}function E(X){if(Zb(X.fileName))return;const ie=P(X.fileName);if(!ie)return;const ae=e.getProgram();if(ae.isSourceOfProjectReferenceRedirect(ie.fileName))return;const ve=ae.getCompilerOptions(),we=Ng(ve),Fe=we?wg(we)+".d.ts":Mie(X.fileName,ae.getCompilerOptions(),i,ae.getCommonSourceDirectory(),n);if(Fe===void 0)return;const et=h(Fe,X.fileName).getGeneratedPosition(X);return et===X?void 0:et}function P(X){const ie=e.getProgram();if(!ie)return;const ae=d(X),ve=ie.getSourceFileByPath(ae);return ve&&ve.resolvedPath===ae?ve:void 0}function k(X){const ie=d(X),ae=c.get(ie);if(ae!==void 0)return ae||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(ie)){c.set(ie,!1);return}const ve=e.readFile(ie),we=ve?alt(ve):!1;return c.set(ie,we),we||void 0}function F(X){return e.getSourceFileLike?e.getSourceFileLike(X):P(X)||k(X)}function $(X,ie){return F(X).getLineAndCharacterOfPosition(ie)}function J(){c.clear(),u.clear()}}function sCe(e,n,i,c){let u=JLe(i);if(u){const S=d$e.exec(u);if(S){if(S[1]){const E=S[1];return cCe(e,SSe(w0,E),n)}u=void 0}}const d=[];u&&d.push(u),d.push(n+".map");const h=u&&vf(u,ws(n));for(const S of d){const E=vf(S,ws(n)),P=c(E,h);if(As(P))return cCe(e,P,E);if(P!==void 0)return P||void 0}}function cCe(e,n,i){const c=j2e(n);if(!(!c||!c.sources||!c.file||!c.mappings)&&!(c.sourcesContent&&c.sourcesContent.some(As)))return QLe(e,c,i)}function alt(e,n){return{text:e,lineMap:n,getLineAndCharacterOfPosition(i){return Nd(eR(this),i)}}}var d$e,lCe=G({"src/services/sourcemaps.ts"(){xl(),d$e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Ice(e,n,i){var c;n.getSemanticDiagnostics(e,i);const u=[],d=n.getTypeChecker();!(e.impliedNodeFormat===1||pv(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Jge(n)||OZ(n.getCompilerOptions()))&&p$e(e)&&u.push(Bs(uCe(e.commonJsModuleIndicator),N.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const S=Gy(e);if(mCe.clear(),E(e),VN(n.getCompilerOptions()))for(const P of e.imports){const k=XC(P),F=m$e(k);if(!F)continue;const $=(c=n.getResolvedModule(e,P.text,PA(e,P)))==null?void 0:c.resolvedModule,J=$&&n.getSourceFile($.resolvedFileName);J&&J.externalModuleIndicator&&J.externalModuleIndicator!==!0&&my(J.externalModuleIndicator)&&J.externalModuleIndicator.isExportEquals&&u.push(Bs(F,N.Import_may_be_converted_to_a_default_import))}return Oi(u,e.bindSuggestionDiagnostics),Oi(u,n.getSuggestionDiagnostics(e,i)),u.sort((P,k)=>P.start-k.start);function E(P){if(S)y$e(P,d)&&u.push(Bs(Kc(P.parent)?P.parent.name:P,N.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Xg(P)&&P.parent===e&&P.declarationList.flags&2&&P.declarationList.declarations.length===1){const F=P.declarationList.declarations[0].initializer;F&&y1(F,!0)&&u.push(Bs(F,N.require_call_may_be_converted_to_an_import))}const k=fT.getJSDocTypedefNodes(P);for(const F of k)u.push(Bs(F,N.JSDoc_typedef_may_be_converted_to_TypeScript_type));fT.parameterShouldGetTypeFromJSDoc(P)&&u.push(Bs(P.name||P,N.JSDoc_types_may_be_moved_to_TypeScript_types))}pCe(P)&&g$e(P,d,u),P.forEachChild(E)}}function p$e(e){return e.statements.some(n=>{switch(n.kind){case 243:return n.declarationList.declarations.some(i=>!!i.initializer&&y1(r3e(i.initializer),!0));case 244:{const{expression:i}=n;if(!Ds(i))return y1(i,!0);const c=jy(i);return c===1||c===2}default:return!1}})}function r3e(e){return Ac(e)?r3e(e.expression):e}function m$e(e){switch(e.kind){case 272:const{importClause:n,moduleSpecifier:i}=e;return n&&!n.name&&n.namedBindings&&n.namedBindings.kind===274&&Sd(i)?n.namedBindings.name:void 0;case 271:return e.name;default:return}}function g$e(e,n,i){slt(e,n)&&!mCe.has(h$e(e))&&i.push(Bs(!e.name&&Kc(e.parent)&&xn(e.parent.name)?e.parent.name:e,N.This_may_be_converted_to_an_async_function))}function slt(e,n){return!t6(e)&&e.body&&Ou(e.body)&&clt(e.body,n)&&kce(e,n)}function kce(e,n){const i=n.getSignatureFromDeclaration(e),c=i?n.getReturnTypeOfSignature(i):void 0;return!!c&&!!n.getPromisedTypeOfPromise(c)}function uCe(e){return Ds(e)?e.left:e}function clt(e,n){return!!dR(e,i=>Pce(i,n))}function Pce(e,n){return iS(e)&&!!e.expression&&fCe(e.expression,n)}function fCe(e,n){if(!_Ce(e)||!i3e(e)||!e.arguments.every(c=>dCe(c,n)))return!1;let i=e.expression.expression;for(;_Ce(i)||Ac(i);)if(xd(i)){if(!i3e(i)||!i.arguments.every(c=>dCe(c,n)))return!1;i=i.expression.expression}else i=i.expression;return!0}function _Ce(e){return xd(e)&&(xj(e,"then")||xj(e,"catch")||xj(e,"finally"))}function i3e(e){const n=e.expression.name.text,i=n==="then"?2:n==="catch"||n==="finally"?1:0;return e.arguments.length>i?!1:e.arguments.lengthc.kind===106||xn(c)&&c.text==="undefined")}function dCe(e,n){switch(e.kind){case 262:case 218:if(ob(e)&1)return!1;case 219:mCe.set(h$e(e),!0);case 106:return!0;case 80:case 211:{const c=n.getSymbolAtLocation(e);return c?n.isUndefinedSymbol(c)||gt(dg(c,n).declarations,u=>F_(u)||J2(u)&&!!u.initializer&&F_(u.initializer)):!1}default:return!1}}function h$e(e){return`${e.pos.toString()}:${e.end.toString()}`}function y$e(e,n){var i,c,u,d;if(Jm(e)){if(Kc(e.parent)&&((i=e.symbol.members)!=null&&i.size))return!0;const h=n.getSymbolOfExpando(e,!1);return!!(h&&((c=h.exports)!=null&&c.size||(u=h.members)!=null&&u.size))}return mg(e)?!!((d=e.symbol.members)!=null&&d.size):!1}function pCe(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var mCe,llt=G({"src/services/suggestionDiagnostics.ts"(){xl(),mCe=new Map}});function She(e,n){const i=[],c=n.compilerOptions?gCe(n.compilerOptions,i):{},u=lye();for(const $ in u)ef(u,$)&&c[$]===void 0&&(c[$]=u[$]);for(const $ of Vpe)c.verbatimModuleSyntax&&v$e.has($.name)||(c[$.name]=$.transpileOptionValue);c.suppressOutputPathCheck=!0,c.allowNonTsExtensions=!0;const d=JE(c),h={getSourceFile:$=>$===hf(S)?E:void 0,writeFile:($,J)=>{mm($,".map")?(re.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",$),k=J):(re.assertEqual(P,void 0,"Unexpected multiple outputs, file:",$),P=J)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:$=>$,getCurrentDirectory:()=>"",getNewLine:()=>d,fileExists:$=>$===S,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},S=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),E=eQ(S,e,{languageVersion:iu(c),impliedNodeFormat:Zae(gm(S,"",h.getCanonicalFileName),void 0,h,c),setExternalModuleIndicator:q9(c),jsDocParsingMode:1});n.moduleName&&(E.moduleName=n.moduleName),n.renamedDependencies&&(E.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));let P,k;const F=YQ([S],c,h);return n.reportDiagnostics&&(Oi(i,F.getSyntacticDiagnostics(E)),Oi(i,F.getOptionsDiagnostics())),F.emit(void 0,void 0,void 0,void 0,n.transformers),P===void 0?re.fail("Output generation failed"):{outputText:P,diagnostics:i,sourceMapText:k}}function o3e(e,n,i,c,u){const d=She(e,{compilerOptions:n,fileName:i,reportDiagnostics:!!c,moduleName:u});return Oi(c,d.diagnostics),d.outputText}function gCe(e,n){a3e=a3e||gi(hI,i=>typeof i.type=="object"&&!Jb(i.type,c=>typeof c!="number")),e=PZ(e);for(const i of a3e){if(!ef(e,i.name))continue;const c=e[i.name];As(c)?e[i.name]=$oe(i,c,n):Jb(i.type,u=>u===c)||n.push(Ipe(i))}return e}var v$e,a3e,ult=G({"src/services/transpile.ts"(){xl(),v$e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function s3e(e,n,i,c,u,d,h){const S=H8e(c);if(!S)return Yn;const E=[],P=e.length===1?e[0]:void 0;for(const k of e)i.throwIfCancellationRequested(),!(d&&k.isDeclarationFile)&&(c3e(k,!!h,P)||k.getNamedDeclarations().forEach((F,$)=>{b$e(S,$,F,n,k.fileName,!!h,P,E)}));return E.sort(x$e),(u===void 0?E:E.slice(0,u)).map(wF)}function c3e(e,n,i){return e!==i&&n&&(KZ(e.path)||e.hasNoDefaultLib)}function b$e(e,n,i,c,u,d,h,S){const E=e.getMatchForLastSegmentOfPattern(n);if(E){for(const P of i)if(T$e(P,c,d,h))if(e.patternContainsDots){const k=e.getFullMatch(E$e(P),n);k&&S.push({name:n,fileName:u,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:P})}else S.push({name:n,fileName:u,matchKind:E.kind,isCaseSensitive:E.isCaseSensitive,declaration:P})}}function T$e(e,n,i,c){var u;switch(e.kind){case 273:case 276:case 271:const d=n.getSymbolAtLocation(e.name),h=n.getAliasedSymbol(d);return d.escapedName!==h.escapedName&&!((u=h.declarations)!=null&&u.every(S=>c3e(S.getSourceFile(),i,c)));default:return!0}}function S$e(e,n){const i=i_(e);return!!i&&(Ehe(i,n)||i.kind===167&&nee(i.expression,n))}function nee(e,n){return Ehe(e,n)||Ac(e)&&(n.push(e.name.text),!0)&&nee(e.expression,n)}function Ehe(e,n){return Qv(e)&&(n.push(K2(e)),!0)}function E$e(e){const n=[],i=i_(e);if(i&&i.kind===167&&!nee(i.expression,n))return Yn;n.shift();let c=RR(e);for(;c;){if(!S$e(c,n))return Yn;c=RR(c)}return n.reverse()}function x$e(e,n){return pf(e.matchKind,n.matchKind)||q5(e.name,n.name)}function wF(e){const n=e.declaration,i=RR(n),c=i&&i_(i);return{name:e.name,kind:h4(n),kindModifiers:X$(n),matchKind:tee[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:sT(n),containerName:c?c.text:"",containerKind:c?h4(i):""}}var l3e=G({"src/services/navigateTo.ts"(){xl()}}),hCe={};Oe(hCe,{getNavigateToItems:()=>s3e});var u3e=G({"src/services/_namespaces/ts.NavigateTo.ts"(){l3e()}});function f3e(e,n){SI=n,Mce=e;try{return Vn(D$e(lB(e)),ree)}finally{T4()}}function q3(e,n){SI=n,Mce=e;try{return I$e(lB(e))}finally{T4()}}function T4(){Mce=void 0,SI=void 0,Lce=[],wP=void 0,CCe=[]}function nw(e){return aee(e.getText(Mce))}function xhe(e){return e.node.kind}function yCe(e,n){e.children?e.children.push(n):e.children=[n]}function lB(e){re.assert(!Lce.length);const n={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};wP=n;for(const i of e.statements)uB(i);return S4(),re.assert(!wP&&!Lce.length),n}function L6(e,n){yCe(wP,_3e(e,n))}function _3e(e,n){return{node:e,name:n||(PT(e)||kr(e)?i_(e):void 0),additionalNodes:void 0,parent:wP,children:void 0,indent:wP.indent+1}}function d3e(e){Gj||(Gj=new Map),Gj.set(e,!0)}function A$e(e){for(let n=0;n0;c--){const u=i[c];K3(e,u)}return[i.length-1,i[0]]}function K3(e,n){const i=_3e(e,n);yCe(wP,i),Lce.push(wP),ACe.push(Gj),Gj=void 0,wP=i}function S4(){wP.children&&(Nce(wP.children,wP),h3e(wP.children)),wP=Lce.pop(),Gj=ACe.pop()}function X3(e,n,i){K3(e,i),uB(n),S4()}function bCe(e){e.initializer&&oee(e.initializer)?(K3(e),s_(e.initializer,uB),S4()):X3(e,e.initializer)}function p3e(e){const n=i_(e);if(n===void 0)return!1;if(Qf(n)){const i=n.expression;return Tg(i)||S1(i)||Ox(i)}return!!n}function uB(e){if(SI.throwIfCancellationRequested(),!(!e||a7(e)))switch(e.kind){case 176:const n=e;X3(n,n.body);for(const h of n.parameters)DT(h,n)&&L6(h);break;case 174:case 177:case 178:case 173:p3e(e)&&X3(e,e.body);break;case 172:p3e(e)&&bCe(e);break;case 171:p3e(e)&&L6(e);break;case 273:const i=e;i.name&&L6(i.name);const{namedBindings:c}=i;if(c)if(c.kind===274)L6(c);else for(const h of c.elements)L6(h);break;case 304:X3(e,e.name);break;case 305:const{expression:u}=e;xn(u)?L6(e,u):L6(e);break;case 208:case 303:case 260:{const h=e;$_(h.name)?uB(h.name):bCe(h);break}case 262:const d=e.name;d&&xn(d)&&d3e(d.text),X3(e,e.body);break;case 219:case 218:X3(e,e.body);break;case 266:K3(e);for(const h of e.members)Rce(h)||L6(h);S4();break;case 263:case 231:case 264:K3(e);for(const h of e.members)uB(h);S4();break;case 267:X3(e,iee(e).body);break;case 277:{const h=e.expression,S=el(h)||xd(h)?h:$m(h)||Jm(h)?h.body:void 0;S?(K3(e),uB(S),S4()):L6(e);break}case 281:case 271:case 181:case 179:case 180:case 265:L6(e);break;case 213:case 226:{const h=jy(e);switch(h){case 1:case 2:X3(e,e.right);return;case 6:case 3:{const S=e,E=S.left,P=h===3?E.expression:E;let k=0,F;xn(P.expression)?(d3e(P.expression.text),F=P.expression):[k,F]=vCe(S,P.expression),h===6?el(S.right)&&S.right.properties.length>0&&(K3(S,F),s_(S.right,uB),S4()):Jm(S.right)||$m(S.right)?X3(e,S.right,F):(K3(S,F),X3(e,S.right,E.name),S4()),A$e(k);return}case 7:case 9:{const S=e,E=h===7?S.arguments[0]:S.arguments[0].expression,P=S.arguments[1],[k,F]=vCe(e,E);K3(e,F),K3(e,Tn(he.createIdentifier(P.text),P)),uB(e.arguments[2]),S4(),S4(),A$e(k);return}case 5:{const S=e,E=S.left,P=E.expression;if(xn(P)&&eI(E)!=="prototype"&&Gj&&Gj.has(P.text)){Jm(S.right)||$m(S.right)?X3(e,S.right,P):mR(E)&&(K3(S,P),X3(S.left,S.right,KC(E)),S4());return}break}case 4:case 0:case 8:break;default:re.assertNever(h)}}default:NT(e)&&Ot(e.jsDoc,h=>{Ot(h.tags,S=>{b2(S)&&L6(S)})}),s_(e,uB)}}function Nce(e,n){const i=new Map;vd(e,(c,u)=>{const d=c.name||i_(c.node),h=d&&nw(d);if(!h)return!0;const S=i.get(h);if(!S)return i.set(h,c),!0;if(S instanceof Array){for(const E of S)if(m3e(E,c,u,n))return!1;return S.push(c),!0}else{const E=S;return m3e(E,c,u,n)?!1:(i.set(h,[E,c]),!0)}})}function flt(e,n,i,c){function u(S){return Jm(S)||mg(S)||Kc(S)}const d=Ds(n.node)||xd(n.node)?jy(n.node):0,h=Ds(e.node)||xd(e.node)?jy(e.node):0;if(see[d]&&see[h]||u(e.node)&&see[d]||u(n.node)&&see[h]||Ih(e.node)&&Ahe(e.node)&&see[d]||Ih(n.node)&&see[h]||Ih(e.node)&&Ahe(e.node)&&u(n.node)||Ih(n.node)&&u(e.node)&&Ahe(e.node)){let S=e.additionalNodes&&Yf(e.additionalNodes)||e.node;if(!Ih(e.node)&&!Ih(n.node)||u(e.node)||u(n.node)){const P=u(e.node)?e.node:u(n.node)?n.node:void 0;if(P!==void 0){const k=Tn(he.createConstructorDeclaration(void 0,[],void 0),P),F=_3e(k);F.indent=e.indent+1,F.children=e.node===P?e.children:n.children,e.children=e.node===P?Hi([F],n.children||[n]):Hi(e.children||[{...e}],[F])}else(e.children||n.children)&&(e.children=Hi(e.children||[{...e}],n.children||[n]),e.children&&(Nce(e.children,e),h3e(e.children)));S=e.node=Tn(he.createClassDeclaration(void 0,e.name||he.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Hi(e.children,n.children),e.children&&Nce(e.children,e);const E=n.node;return c.children[i-1].node.end===S.end?Tn(S,{pos:S.pos,end:E.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Tn(he.createClassDeclaration(void 0,e.name||he.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return d!==0}function m3e(e,n,i,c){return flt(e,n,i,c)?!0:_lt(e.node,n.node,c)?(C$e(e,n),!0):!1}function _lt(e,n,i){if(e.kind!==n.kind||e.parent!==n.parent&&!(g3e(e,i)&&g3e(n,i)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return pd(e)===pd(n);case 267:return TCe(e,n)&&wce(e)===wce(n);default:return!0}}function Ahe(e){return!!(e.flags&16)}function g3e(e,n){const i=kh(e.parent)?e.parent.parent:e.parent;return i===n.node||ni(n.additionalNodes,i)}function TCe(e,n){return!e.body||!n.body?e.body===n.body:e.body.kind===n.body.kind&&(e.body.kind!==267||TCe(e.body,n.body))}function C$e(e,n){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(n.node),n.additionalNodes&&e.additionalNodes.push(...n.additionalNodes),e.children=Hi(e.children,n.children),e.children&&(Nce(e.children,e),h3e(e.children))}function h3e(e){e.sort(y3e)}function y3e(e,n){return q5(v3e(e.node),v3e(n.node))||pf(xhe(e),xhe(n))}function v3e(e){if(e.kind===267)return Che(e);const n=i_(e);if(n&&qg(n)){const i=FN(n);return i&&Ic(i)}switch(e.kind){case 218:case 219:case 231:return zj(e);default:return}}function SCe(e,n){if(e.kind===267)return aee(Che(e));if(n){const i=xn(n)?n.text:Hm(n)?`[${nw(n.argumentExpression)}]`:nw(n);if(i.length>0)return aee(i)}switch(e.kind){case 312:const i=e;return Bv(i)?`"${Q8(Jg(wg(hf(i.fileName))))}"`:"";case 277:return my(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ZC(e)&2048?"default":zj(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function D$e(e){const n=[];function i(u){if(c(u)&&(n.push(u),u.children))for(const d of u.children)i(d)}return i(e),n;function c(u){if(u.children)return!0;switch(xhe(u)){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 d(u);default:return!1}function d(h){if(!h.node.body)return!1;switch(xhe(h.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function I$e(e){return{text:SCe(e.node,e.name),kind:h4(e.node),kindModifiers:xCe(e.node),spans:ECe(e),nameSpan:e.name&&rw(e.name),childItems:Vn(e.children,I$e)}}function ree(e){return{text:SCe(e.node,e.name),kind:h4(e.node),kindModifiers:xCe(e.node),spans:ECe(e),childItems:Vn(e.children,n)||CCe,indent:e.indent,bolded:!1,grayed:!1};function n(i){return{text:SCe(i.node,i.name),kind:h4(i.node),kindModifiers:X$(i.node),spans:ECe(i),childItems:CCe,indent:0,bolded:!1,grayed:!1}}}function ECe(e){const n=[rw(e.node)];if(e.additionalNodes)for(const i of e.additionalNodes)n.push(rw(i));return n}function Che(e){return dh(e)?Lv(e.name):wce(e)}function wce(e){const n=[K2(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,n.push(K2(e.name));return n.join(".")}function iee(e){return e.body&&py(e.body)?iee(e.body):e}function Rce(e){return!e.name||e.name.kind===167}function rw(e){return e.kind===312?PP(e):sT(e,Mce)}function xCe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),X$(e)}function zj(e){const{parent:n}=e;if(e.name&&WL(e.name)>0)return aee(hm(e.name));if(Kc(n))return aee(hm(n.name));if(Ds(n)&&n.operatorToken.kind===64)return nw(n.left).replace(b3e,"");if(tl(n))return nw(n.name);if(ZC(e)&2048)return"default";if(Fl(e))return"";if(xd(n)){let i=Dhe(n.expression);if(i!==void 0){if(i=aee(i),i.length>Ihe)return`${i} callback`;const c=aee(Qo(n.arguments,u=>Cm(u)?u.getText(Mce):void 0).join(", "));return`${i}(${c}) callback`}}return""}function Dhe(e){if(xn(e))return e.text;if(Ac(e)){const n=Dhe(e.expression),i=e.name.text;return n===void 0?i:`${n}.${i}`}else return}function oee(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function aee(e){return e=e.length>Ihe?e.substring(0,Ihe)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var b3e,Ihe,SI,Mce,Lce,wP,ACe,Gj,CCe,see,dlt=G({"src/services/navigationBar.ts"(){xl(),b3e=/\s+/g,Ihe=150,Lce=[],ACe=[],CCe=[],see={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),T3e={};Oe(T3e,{getNavigationBarItems:()=>f3e,getNavigationTree:()=>q3});var k$e=G({"src/services/_namespaces/ts.NavigationBar.ts"(){dlt()}});function wk(e,n){cee.set(e,n)}function P$e(e,n){return oc(Ky(cee.values(),i=>{var c;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((c=i.kinds)!=null&&c.some(u=>RP(u,e.kind)))?void 0:i.getAvailableActions(e,n)}))}function plt(e,n,i,c){const u=cee.get(n);return u&&u.getEditsForAction(e,i,c)}var cee,Oce=G({"src/services/refactorProvider.ts"(){xl(),EI(),cee=new Map}});function Fce(e,n=!0){const{file:i,program:c}=e,u=NF(e),d=Lf(i,u.start),h=d.parent&&ZC(d.parent)&32&&n?d.parent:nq(d,i,u);if(!h||!Nu(h.parent)&&!(kh(h.parent)&&dh(h.parent.parent)))return{error:fs(N.Could_not_find_export_statement)};const S=c.getTypeChecker(),E=M$e(h.parent,S),P=ZC(h)||(my(h)&&!h.isExportEquals?2080:0),k=!!(P&2048);if(!(P&32)||!k&&E.exports.has("default"))return{error:fs(N.This_file_already_has_a_default_export)};const F=$=>xn($)&&S.getSymbolAtLocation($)?void 0:{error:fs(N.Can_only_convert_named_export)};switch(h.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const $=h;return $.name?F($.name)||{exportNode:$,exportName:$.name,wasDefault:k,exportingModuleSymbol:E}:void 0}case 243:{const $=h;if(!($.declarationList.flags&2)||$.declarationList.declarations.length!==1)return;const J=Dl($.declarationList.declarations);return J.initializer?(re.assert(!k,"Can't have a default flag here"),F(J.name)||{exportNode:$,exportName:J.name,wasDefault:k,exportingModuleSymbol:E}):void 0}case 277:{const $=h;return $.isExportEquals?void 0:F($.expression)||{exportNode:$,exportName:$.expression,wasDefault:k,exportingModuleSymbol:E}}default:return}}function mlt(e,n,i,c,u){N$e(e,i,c,n.getTypeChecker()),w$e(n,i,c,u)}function N$e(e,{wasDefault:n,exportNode:i,exportName:c},u,d){if(n)if(my(i)&&!i.isExportEquals){const h=i.expression,S=R$e(h.text,h.text);u.replaceNode(e,i,he.createExportDeclaration(void 0,!1,he.createNamedExports([S])))}else u.delete(e,re.checkDefined(QW(i,90),"Should find a default keyword in modifier list"));else{const h=re.checkDefined(QW(i,95),"Should find an export keyword in modifier list");switch(i.kind){case 262:case 263:case 264:u.insertNodeAfter(e,h,he.createToken(90));break;case 243:const S=Dl(i.declarationList.declarations);if(!Wf.Core.isSymbolReferencedInFile(c,d,e)&&!S.type){u.replaceNode(e,i,he.createExportDefault(re.checkDefined(S.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:u.deleteModifier(e,h),u.insertNodeAfter(e,i,he.createExportDefault(he.createIdentifier(c.text)));break;default:re.fail(`Unexpected exportNode kind ${i.kind}`)}}}function w$e(e,{wasDefault:n,exportName:i,exportingModuleSymbol:c},u,d){const h=e.getTypeChecker(),S=re.checkDefined(h.getSymbolAtLocation(i),"Export name should resolve to a symbol");Wf.Core.eachExportReference(e.getSourceFiles(),h,d,S,c,i.text,n,E=>{if(i===E)return;const P=E.getSourceFile();n?glt(P,E,u,i.text):hlt(P,E,u)})}function glt(e,n,i,c){const{parent:u}=n;switch(u.kind){case 211:i.replaceNode(e,n,he.createIdentifier(c));break;case 276:case 281:{const h=u;i.replaceNode(e,h,DCe(c,h.name.text));break}case 273:{const h=u;re.assert(h.name===n,"Import clause name should match provided ref");const S=DCe(c,n.text),{namedBindings:E}=h;if(!E)i.replaceNode(e,n,he.createNamedImports([S]));else if(E.kind===274){i.deleteRange(e,{pos:n.getStart(e),end:E.getStart(e)});const P=Sd(h.parent.moduleSpecifier)?YW(h.parent.moduleSpecifier,e):1,k=Nk(void 0,[DCe(c,n.text)],h.parent.moduleSpecifier,P);i.insertNodeAfter(e,h.parent,k)}else i.delete(e,n),i.insertNodeAtEndOfList(e,E.elements,S);break}case 205:const d=u;i.replaceNode(e,u,he.createImportTypeNode(d.argument,d.attributes,he.createIdentifier(c),d.typeArguments,d.isTypeOf));break;default:re.failBadSyntaxKind(u)}}function hlt(e,n,i){const c=n.parent;switch(c.kind){case 211:i.replaceNode(e,n,he.createIdentifier("default"));break;case 276:{const u=he.createIdentifier(c.name.text);c.parent.elements.length===1?i.replaceNode(e,c.parent,u):(i.delete(e,c),i.insertNodeBefore(e,c.parent,u));break}case 281:{i.replaceNode(e,c,R$e("default",c.name.text));break}default:re.assertNever(c,`Unexpected parent kind ${c.kind}`)}}function DCe(e,n){return he.createImportSpecifier(!1,e===n?void 0:he.createIdentifier(e),he.createIdentifier(n))}function R$e(e,n){return he.createExportSpecifier(!1,e===n?void 0:he.createIdentifier(e),he.createIdentifier(n))}function M$e(e,n){if(Nu(e))return e.symbol;const i=e.parent.symbol;return i.valueDeclaration&&Ov(i.valueDeclaration)?n.getMergedSymbol(i):i}var ICe,lee,pq,khe=G({"src/services/refactors/convertExport.ts"(){xl(),EI(),ICe="Convert export",lee={name:"Convert default export to named export",description:fs(N.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},pq={name:"Convert named export to default export",description:fs(N.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},wk(ICe,{kinds:[lee.kind,pq.kind],getAvailableActions:function(n){const i=Fce(n,n.triggerReason==="invoked");if(!i)return Yn;if(!BR(i)){const c=i.wasDefault?lee:pq;return[{name:ICe,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:ICe,description:fs(N.Convert_default_export_to_named_export),actions:[{...lee,notApplicableReason:i.error},{...pq,notApplicableReason:i.error}]}]:Yn},getEditsForAction:function(n,i){re.assert(i===lee.name||i===pq.name,"Unexpected action name");const c=Fce(n);return re.assert(c&&!BR(c),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(n,d=>mlt(n.file,n.program,c,d,n.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function L$e(e,n=!0){const{file:i}=e,c=NF(e),u=Lf(i,c.start),d=n?Ua(u,n0):nq(u,i,c);if(!d||!n0(d))return{error:"Selection is not an import declaration."};const h=c.start+c.length,S=N6(d,d.parent,i);if(S&&h>S.getStart())return;const{importClause:E}=d;return E?E.namedBindings?E.namedBindings.kind===274?{convertTo:0,import:E.namedBindings}:S3e(e.program,E)?{convertTo:1,import:E.namedBindings}:{convertTo:2,import:E.namedBindings}:{error:fs(N.Could_not_find_namespace_import_or_named_imports)}:{error:fs(N.Could_not_find_import_clause)}}function S3e(e,n){return VN(e.getCompilerOptions())&&vlt(n.parent.moduleSpecifier,e.getTypeChecker())}function E3e(e,n,i,c){const u=n.getTypeChecker();c.convertTo===0?RF(e,u,i,c.import,VN(n.getCompilerOptions())):F$e(e,n,i,c.import,c.convertTo===1)}function RF(e,n,i,c,u){let d=!1;const h=[],S=new Map;Wf.Core.eachSymbolReferenceInFile(c.name,n,e,F=>{if(!KX(F.parent))d=!0;else{const $=O$e(F.parent).text;n.resolveName($,F,67108863,!0)&&S.set($,!0),re.assert(ylt(F.parent)===F,"Parent expression should match id"),h.push(F.parent)}});const E=new Map;for(const F of h){const $=O$e(F).text;let J=E.get($);J===void 0&&E.set($,J=S.has($)?b4($,e):$),i.replaceNode(e,F,he.createIdentifier(J))}const P=[];E.forEach((F,$)=>{P.push(he.createImportSpecifier(!1,F===$?void 0:he.createIdentifier($),he.createIdentifier(F)))});const k=c.parent.parent;d&&!u?i.insertNodeAfter(e,k,x3e(k,void 0,P)):i.replaceNode(e,k,x3e(k,d?he.createIdentifier(c.name.text):void 0,P))}function O$e(e){return Ac(e)?e.name:e.right}function ylt(e){return Ac(e)?e.expression:e.left}function F$e(e,n,i,c,u=S3e(n,c.parent)){const d=n.getTypeChecker(),h=c.parent.parent,{moduleSpecifier:S}=h,E=new Set;c.elements.forEach(X=>{const ie=d.getSymbolAtLocation(X.name);ie&&E.add(ie)});const P=S&&Sd(S)?fT.moduleSpecifierToValidIdentifier(S.text,99):"module";function k(X){return!!Wf.Core.eachSymbolReferenceInFile(X.name,d,e,ie=>{const ae=d.resolveName(P,ie,67108863,!0);return ae?E.has(ae)?gy(ie.parent):!0:!1})}const $=c.elements.some(k)?b4(P,e):P,J=new Set;for(const X of c.elements){const ie=(X.propertyName||X.name).text;Wf.Core.eachSymbolReferenceInFile(X.name,d,e,ae=>{const ve=he.createPropertyAccessExpression(he.createIdentifier($),ie);XE(ae.parent)?i.replaceNode(e,ae.parent,he.createPropertyAssignment(ae.text,ve)):gy(ae.parent)?J.add(X):i.replaceNode(e,ae,ve)})}if(i.replaceNode(e,c,u?he.createIdentifier($):he.createNamespaceImport(he.createIdentifier($))),J.size){const X=oc(J.values(),ie=>he.createImportSpecifier(ie.isTypeOnly,ie.propertyName&&he.createIdentifier(ie.propertyName.text),he.createIdentifier(ie.name.text)));i.insertNodeAfter(e,c.parent.parent,x3e(h,void 0,X))}}function vlt(e,n){const i=n.resolveExternalModuleName(e);if(!i)return!1;const c=n.resolveExternalModuleSymbol(i);return i!==c}function x3e(e,n,i){return he.createImportDeclaration(void 0,he.createImportClause(!1,n,i&&i.length?he.createNamedImports(i):void 0),e.moduleSpecifier,void 0)}var uee,jj,Phe=G({"src/services/refactors/convertImport.ts"(){xl(),EI(),uee="Convert import",jj={0:{name:"Convert namespace import to named imports",description:fs(N.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:fs(N.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:fs(N.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},wk(uee,{kinds:ik(jj).map(e=>e.kind),getAvailableActions:function(n){const i=L$e(n,n.triggerReason==="invoked");if(!i)return Yn;if(!BR(i)){const c=jj[i.convertTo];return[{name:uee,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?ik(jj).map(c=>({name:uee,description:c.description,actions:[{...c,notApplicableReason:i.error}]})):Yn},getEditsForAction:function(n,i){re.assert(gt(ik(jj),d=>d.name===i),"Unexpected action name");const c=L$e(n);return re.assert(c&&!BR(c),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(n,d=>E3e(n.file,n.program,d,c)),renameFilename:void 0,renameLocation:void 0}}})}});function Wce(e,n=!0){const{file:i,startPosition:c}=e,u=Gy(i),d=Lf(i,c),h=MZ(NF(e)),S=h.pos===h.end&&n,E=Fge(d,i,h.pos,h.end),P=Ua(d,ve=>ve.parent&&pc(ve)&&!I2(h,ve.parent,i)&&(S||E));if(!P||!pc(P))return{error:fs(N.Selection_is_not_a_valid_type_node)};const k=e.program.getTypeChecker(),F=Tlt(P,u);if(F===void 0)return{error:fs(N.No_type_could_be_extracted_from_this_type_node)};const $=Bce(P,F);if(!pc($))return{error:fs(N.Selection_is_not_a_valid_type_node)};const J=[];(fI($.parent)||xR($.parent))&&h.end>P.end&&Oi(J,$.parent.types.filter(ve=>Fge(ve,i,h.pos,h.end)));const X=J.length>1?J:$,ie=Y3(k,X,F,i);if(!ie)return{error:fs(N.No_type_could_be_extracted_from_this_type_node)};const ae=kCe(k,X);return{isJS:u,selection:X,enclosingNode:F,typeParameters:ie,typeElements:ae}}function kCe(e,n){if(n){if(ls(n)){const i=[];for(const c of n){const u=kCe(e,c);if(!u)return;Oi(i,u)}return i}if(xR(n)){const i=[],c=new Map;for(const u of n.types){const d=kCe(e,u);if(!d||!d.every(h=>h.name&&y0(c,tq(h.name))))return;Oi(i,d)}return i}else{if(XN(n))return kCe(e,n.type);if(rS(n))return n.members}}}function I2(e,n,i){return Aj(e,Ff(i.text,n.pos),n.end)}function Y3(e,n,i,c){const u=[],d=BC(n),h={pos:d[0].pos,end:d[d.length-1].end};for(const E of d)if(S(E))return;return u;function S(E){if(uE(E)){if(xn(E.typeName)){const P=E.typeName,k=e.resolveName(P.text,P,262144,!0);for(const F of(k==null?void 0:k.declarations)||Yn)if(Np(F)&&F.getSourceFile()===c){if(F.name.escapedText===P.escapedText&&I2(F,h,c))return!0;if(I2(i,F,c)&&!I2(h,F,c)){Dy(u,F);break}}}}else if(KN(E)){const P=Ua(E,k=>Q7(k)&&I2(k.extendsType,E,c));if(!P||!I2(h,P,c))return!0}else if(mW(E)||yW(E)){const P=Ua(E.parent,F_);if(P&&P.type&&I2(P.type,E,c)&&!I2(h,P,c))return!0}else if(m6(E)){if(xn(E.exprName)){const P=e.resolveName(E.exprName.text,E.exprName,111551,!1);if(P!=null&&P.valueDeclaration&&I2(i,P.valueDeclaration,c)&&!I2(h,P.valueDeclaration,c))return!0}else if(E2(E.exprName.left)&&!I2(h,E.parent,c))return!0}return c&&gW(E)&&xm(c,E.pos).line===xm(c,E.end).line&&_s(E,1),s_(E,S)}}function blt(e,n,i,c){const{enclosingNode:u,typeParameters:d}=c,{firstTypeNode:h,lastTypeNode:S,newTypeNode:E}=PCe(c),P=he.createTypeAliasDeclaration(void 0,i,d.map(k=>he.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),E);e.insertNodeBefore(n,u,qN(P),!0),e.replaceNodeRange(n,h,S,he.createTypeReferenceNode(i,d.map(k=>he.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.ExcludeWhitespace})}function W$e(e,n,i,c){var u;const{enclosingNode:d,typeParameters:h,typeElements:S}=c,E=he.createInterfaceDeclaration(void 0,i,h,void 0,S);Tn(E,(u=S[0])==null?void 0:u.parent),e.insertNodeBefore(n,d,qN(E),!0);const{firstTypeNode:P,lastTypeNode:k}=PCe(c);e.replaceNodeRange(n,P,k,he.createTypeReferenceNode(i,h.map(F=>he.createTypeReferenceNode(F.name,void 0))),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.ExcludeWhitespace})}function B$e(e,n,i,c,u){var d;BC(u.selection).forEach(X=>{_s(X,7168)});const{enclosingNode:h,typeParameters:S}=u,{firstTypeNode:E,lastTypeNode:P,newTypeNode:k}=PCe(u),F=he.createJSDocTypedefTag(he.createIdentifier("typedef"),he.createJSDocTypeExpression(k),he.createIdentifier(c)),$=[];Ot(S,X=>{const ie=a9(X),ae=he.createTypeParameterDeclaration(void 0,X.name),ve=he.createJSDocTemplateTag(he.createIdentifier("template"),ie&&uc(ie,SW),[ae]);$.push(ve)});const J=he.createJSDocComment(void 0,he.createNodeArray(Hi($,[F])));if(uC(h)){const X=h.getStart(i),ie=R6(n.host,(d=n.formatContext)==null?void 0:d.options);e.insertNodeAt(i,h.getStart(i),J,{suffix:ie+ie+i.text.slice(Yge(i.text,X-1),X)})}else e.insertNodeBefore(i,h,J,!0);e.replaceNodeRange(i,E,P,he.createTypeReferenceNode(c,S.map(X=>he.createTypeReferenceNode(X.name,void 0))))}function PCe(e){return ls(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:fI(e.selection[0].parent)?he.createUnionTypeNode(e.selection):he.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function Tlt(e,n){return Ua(e,dl)||(n?Ua(e,uC):void 0)}function Bce(e,n){return Ua(e,i=>i===n?"quit":!!(fI(i.parent)||xR(i.parent)))??e}var fee,mq,Nhe,whe,Slt=G({"src/services/refactors/extractType.ts"(){xl(),EI(),fee="Extract type",mq={name:"Extract to type alias",description:fs(N.Extract_to_type_alias),kind:"refactor.extract.type"},Nhe={name:"Extract to interface",description:fs(N.Extract_to_interface),kind:"refactor.extract.interface"},whe={name:"Extract to typedef",description:fs(N.Extract_to_typedef),kind:"refactor.extract.typedef"},wk(fee,{kinds:[mq.kind,Nhe.kind,whe.kind],getAvailableActions:function(n){const i=Wce(n,n.triggerReason==="invoked");return i?BR(i)?n.preferences.provideRefactorNotApplicableReason?[{name:fee,description:fs(N.Extract_type),actions:[{...whe,notApplicableReason:i.error},{...mq,notApplicableReason:i.error},{...Nhe,notApplicableReason:i.error}]}]:Yn:[{name:fee,description:fs(N.Extract_type),actions:i.isJS?[whe]:ur([mq],i.typeElements&&Nhe)}]:Yn},getEditsForAction:function(n,i){const{file:c}=n,u=Wce(n);re.assert(u&&!BR(u),"Expected to find a range to extract");const d=b4("NewType",c),h=zs.ChangeTracker.with(n,P=>{switch(i){case mq.name:return re.assert(!u.isJS,"Invalid actionName/JS combo"),blt(P,c,d,u);case whe.name:return re.assert(u.isJS,"Invalid actionName/JS combo"),B$e(P,n,c,d,u);case Nhe.name:return re.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),W$e(P,c,d,u);default:re.fail("Unexpected action name")}}),S=c.fileName,E=jZ(h,S,d,!1);return{edits:h,renameFilename:S,renameLocation:E}}})}});function BR(e){return e.error!==void 0}function RP(e,n){return n?e.substr(0,n.length)===n:!0}var NCe=G({"src/services/refactors/helpers.ts"(){}});function Rhe(e,n,i,c){var u,d;const h=c.getTypeChecker(),S=cS(e,n),E=S.parent;if(xn(S)){if(J9(E)&&rC(E)&&xn(E.name)){if(((u=h.getMergedSymbol(E.symbol).declarations)==null?void 0:u.length)!==1)return{error:fs(N.Variables_with_multiple_declarations_cannot_be_inlined)};if(z$e(E))return;const P=A3e(E,h,e);return P&&{references:P,declaration:E,replacement:E.initializer}}if(i){let P=h.resolveName(S.text,S,111551,!1);if(P=P&&h.getMergedSymbol(P),((d=P==null?void 0:P.declarations)==null?void 0:d.length)!==1)return{error:fs(N.Variables_with_multiple_declarations_cannot_be_inlined)};const k=P.declarations[0];if(!J9(k)||!rC(k)||!xn(k.name)||z$e(k))return;const F=A3e(k,h,e);return F&&{references:F,declaration:k,replacement:k.initializer}}return{error:fs(N.Could_not_find_variable_to_inline)}}}function z$e(e){const n=uc(e.parent.parent,Xg);return gt(n.modifiers,_W)}function A3e(e,n,i){const c=[],u=Wf.Core.eachSymbolReferenceInFile(e.name,n,i,d=>{if(Wf.isWriteAccessForReference(d)||gy(d.parent)||my(d.parent)||m6(d.parent)||P8(e,d.pos))return!0;c.push(d)});return c.length===0||u?void 0:c}function Elt(e,n){n=ih(n);const{parent:i}=e;return kr(i)&&(dG(n){for(const F of h)k.replaceNode(i,F,Elt(F,E));k.delete(i,S)})}}})}});function C3e(e,n,i,c,u,d,h){const S=n.getTypeChecker(),E=Vj(e,i.all,S),P=O3e(e,n,h,u);c.createNewFile(e,P,D3e(e,E,c,i,n,u,P,d)),Lhe(n,c,e.fileName,P,QC(u))}function D3e(e,n,i,c,u,d,h,S){const E=u.getTypeChecker(),P=Qw(e.statements,$2);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0)return Hce(e,c.ranges,i),[...P,...c.all];const k=!BAe(h,u,d,!!e.commonJsModuleIndicator),F=OS(e,S),$=Fhe(e,n.oldFileImportsFromTargetFile,h,u,d,k,F);$&&zZ(i,e,$,!0,S),Ohe(e,c.all,i,n.unusedImportsFromOldFile,E),Hce(e,c.ranges,i),k3e(i,u,d,e,n.movedSymbols,h,F);const J=xlt(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,E,u,d,k,F),X=N3e(e,c.all,n.oldFileImportsFromTargetFile,k);return J.length&&X.length?[...P,...J,4,...X]:[...P,...J,...X]}function xlt(e,n,i,c,u,d,h,S,E){const P=[];for(const J of e.statements)pee(J,X=>{ur(P,Kce(X,Jce(X),ie=>n.has(u.getSymbolAtLocation(ie))))});let k;const F=[],$=U3();return i.forEach(J=>{if(J.declarations)for(const X of J.declarations){if(!Xce(X))continue;const ie=LCe(X);if(!ie)continue;const ae=Bhe(X);$(ae)&&mee(e,ae,ie,c,S),ul(X,2048)?k=ie:F.push(ie.text)}}),ur(P,fB(e,k,F,Jg(e.fileName),d,h,S,E)),P}var Gce,RCe,jce,Vce=G({"src/services/refactors/moveToNewFile.ts"(){xl(),EI(),Gce="Move to a new file",RCe=fs(N.Move_to_a_new_file),jce={name:Gce,description:RCe,kind:"refactor.move.newFile"},wk(Gce,{kinds:[jce.kind],getAvailableActions:function(n){const i=gee(n);return n.preferences.allowTextChangesInNewFiles&&i?[{name:Gce,description:RCe,actions:[jce]}]:n.preferences.provideRefactorNotApplicableReason?[{name:Gce,description:RCe,actions:[{...jce,notApplicableReason:fs(N.Selection_is_not_a_valid_statement_or_statements)}]}]:Yn},getEditsForAction:function(n,i){re.assert(i===Gce,"Wrong refactor invoked");const c=re.checkDefined(gee(n));return{edits:zs.ChangeTracker.with(n,d=>C3e(n.file,n.program,c,d,n.host,n.preferences,n)),renameFilename:void 0,renameLocation:void 0}}})}});function dee(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function I3e(e,n,i,c,u,d,h,S){const E=c.getTypeChecker();if(!h.fileExists(i))d.createNewFile(n,i,Uce(n,i,Vj(n,u.all,E),d,u,c,h,S)),Lhe(c,d,n.fileName,i,QC(h));else{const P=re.checkDefined(c.getSourceFile(i)),k=fT.createImportAdder(P,e.program,e.preferences,e.host);Uce(n,P,Vj(n,u.all,E,Nlt(P,E)),d,u,c,h,S,k)}}function Uce(e,n,i,c,u,d,h,S,E){const P=d.getTypeChecker(),k=Qw(e.statements,$2);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&i.oldImportsNeededByTargetFile.size===0&&i.targetFileImportsFromOldFile.size===0&&typeof n=="string")return Hce(e,u.ranges,c),[...k,...u.all];const F=typeof n=="string"?n:n.fileName,$=!BAe(F,d,h,!!e.commonJsModuleIndicator),J=OS(e,S),X=Fhe(e,i.oldFileImportsFromTargetFile,F,d,h,$,J);X&&zZ(c,e,X,!0,S),Ohe(e,u.all,c,i.unusedImportsFromOldFile,P),Hce(e,u.ranges,c),k3e(c,d,h,e,i.movedSymbols,F,J);const ie=G$e(e,F,i.oldImportsNeededByTargetFile,i.targetFileImportsFromOldFile,c,P,d,h,$,J,E),ae=N3e(e,u.all,i.oldFileImportsFromTargetFile,$);return typeof n!="string"&&(n.statements.length>0?Plt(c,d,ae,n,u):c.insertNodesAtEndOfFile(n,ae,!1),ie.length>0&&zZ(c,n,ie,!0,S)),E&&E.writeFixes(c,J),ie.length&&ae.length?[...k,...ie,4,...ae]:[...k,...ie,...ae]}function G$e(e,n,i,c,u,d,h,S,E,P,k){const F=[];if(k)i.forEach((ae,ve)=>{try{k.addImportFromExportedSymbol(dg(ve,d),ae)}catch{for(const we of e.statements)pee(we,Fe=>{ur(F,Kce(Fe,he.createStringLiteral(Jce(Fe).text),et=>i.has(d.getSymbolAtLocation(et))))})}});else{const ae=h.getSourceFile(n);for(const ve of e.statements)pee(ve,we=>{var Fe;const et=Jce(we),Pe=h.getResolvedModule(e,et.text,PA(e,et)),dt=(Fe=Pe==null?void 0:Pe.resolvedModule)==null?void 0:Fe.resolvedFileName;if(dt&&ae){const Ie=hae(h.getCompilerOptions(),ae,ae.path,dt,v4(h,S));ur(F,Kce(we,Pj(Ie,P),ct=>i.has(d.getSymbolAtLocation(ct))))}else ur(F,Kce(we,he.createStringLiteral(Jce(we).text),Ie=>i.has(d.getSymbolAtLocation(Ie))))})}const $=h.getSourceFile(n);let J;const X=[],ie=U3();return c.forEach(ae=>{if(ae.declarations)for(const ve of ae.declarations){if(!Xce(ve))continue;const we=LCe(ve);if(!we)continue;const Fe=Bhe(ve);ie(Fe)&&mee(e,Fe,we,u,E),k&&d.isUnknownSymbol(ae)?k.addImportFromExportedSymbol(dg(ae,d)):ul(ve,2048)?J=we:X.push(we.text)}}),$?ur(F,fB($,J,X,e.fileName,h,S,E,P)):ur(F,fB(e,J,X,e.fileName,h,S,E,P))}function Lhe(e,n,i,c,u){const d=e.getCompilerOptions().configFile;if(!d)return;const h=hf(vl(i,"..",c)),S=wM(d.fileName,h,u),E=d.statements[0]&&to(d.statements[0].expression,el),P=E&&lr(E.properties,k=>tl(k)&&Sd(k.name)&&k.name.text==="files");P&&Ed(P.initializer)&&n.insertNodeInListAfter(d,yl(P.initializer.elements),he.createStringLiteral(S),P.initializer.elements)}function Hce(e,n,i){for(const{first:c,afterLast:u}of n)i.deleteNodeRangeExcludingEnd(e,c,u)}function Ohe(e,n,i,c,u){for(const d of e.statements)ni(n,d)||pee(d,h=>$ce(e,h,i,S=>c.has(u.getSymbolAtLocation(S))))}function k3e(e,n,i,c,u,d,h){const S=n.getTypeChecker();for(const E of n.getSourceFiles())if(E!==c)for(const P of E.statements)pee(P,k=>{if(S.getSymbolAtLocation(Jce(k))!==c.symbol)return;const F=ae=>{const ve=sa(ae.parent)?Nj(S,ae.parent):dg(S.getSymbolAtLocation(ae),S);return!!ve&&u.has(ve)};$ce(E,k,e,F);const $=NL(ws(c.path),d),J=hae(n.getCompilerOptions(),E,E.path,$,v4(n,i)),X=Kce(k,Pj(J,h),F);X&&e.insertNodeAfter(E,P,X);const ie=Alt(k);ie&&j$e(e,E,S,u,J,ie,k,h)})}function Alt(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return to(e.name,xn);default:return re.assertNever(e,`Unexpected node kind ${e.kind}`)}}function j$e(e,n,i,c,u,d,h,S){const E=fT.moduleSpecifierToValidIdentifier(u,99);let P=!1;const k=[];if(Wf.Core.eachSymbolReferenceInFile(d,i,n,F=>{Ac(F.parent)&&(P=P||!!i.resolveName(E,F,67108863,!0),c.has(i.getSymbolAtLocation(F.parent.name))&&k.push(F))}),k.length){const F=P?b4(E,n):E;for(const $ of k)e.replaceNode(n,$,he.createIdentifier(F));e.insertNodeAfter(n,h,Clt(h,E,u,S))}}function Clt(e,n,i,c){const u=he.createIdentifier(n),d=Pj(i,c);switch(e.kind){case 272:return he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamespaceImport(u)),d,void 0);case 271:return he.createImportEqualsDeclaration(void 0,!1,u,he.createExternalModuleReference(d));case 260:return he.createVariableDeclaration(u,void 0,void 0,P3e(d));default:return re.assertNever(e,`Unexpected node kind ${e.kind}`)}}function P3e(e){return he.createCallExpression(he.createIdentifier("require"),void 0,[e])}function Jce(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function pee(e,n){if(n0(e))Sd(e.moduleSpecifier)&&n(e);else if(Yb(e))KE(e.moduleReference)&&Cm(e.moduleReference.expression)&&n(e);else if(Xg(e))for(const i of e.declarationList.declarations)i.initializer&&y1(i.initializer,!0)&&n(i)}function Fhe(e,n,i,c,u,d,h){let S;const E=[];return n.forEach(P=>{P.escapedName==="default"?S=he.createIdentifier(IF(P)):E.push(P.name)}),fB(e,S,E,i,c,u,d,h)}function fB(e,n,i,c,u,d,h,S){const E=NL(ws(e.path),c),P=hae(u.getCompilerOptions(),e,e.path,E,v4(u,d));if(h){const k=i.map(F=>he.createImportSpecifier(!1,void 0,he.createIdentifier(F)));return rce(n,k,P,S)}else{re.assert(!n,"No default import should exist");const k=i.map(F=>he.createBindingElement(void 0,void 0,F));return k.length?V$e(he.createObjectBindingPattern(k),void 0,P3e(Pj(P,S))):void 0}}function V$e(e,n,i,c=2){return he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(e,void 0,n,i)],c))}function N3e(e,n,i,c){return ea(n,u=>{if(U$e(u)&&!MCe(e,u,c)&&F3e(u,d=>{var h;return i.has(re.checkDefined((h=to(d,ck))==null?void 0:h.symbol))})){const d=qce(ih(u),c);if(d)return d}return ih(u)})}function MCe(e,n,i,c){var u;return i?!kb(n)&&ul(n,32)||!!(c&&e.symbol&&((u=e.symbol.exports)!=null&&u.has(c.escapedText))):!!e.symbol&&!!e.symbol.exports&&M3e(n).some(d=>e.symbol.exports.has(ey(d)))}function $ce(e,n,i,c){switch(n.kind){case 272:w3e(e,n,i,c);break;case 271:c(n.name)&&i.delete(e,n);break;case 260:R3e(e,n,i,c);break;default:re.assertNever(n,`Unexpected import decl kind ${n.kind}`)}}function w3e(e,n,i,c){if(!n.importClause)return;const{name:u,namedBindings:d}=n.importClause,h=!u||c(u),S=!d||(d.kind===274?c(d.name):d.elements.length!==0&&d.elements.every(E=>c(E.name)));if(h&&S)i.delete(e,n);else if(u&&h&&i.delete(e,u),d){if(S)i.replaceNode(e,n.importClause,he.updateImportClause(n.importClause,n.importClause.isTypeOnly,u,void 0));else if(d.kind===275)for(const E of d.elements)c(E.name)&&i.delete(e,E)}}function R3e(e,n,i,c){const{name:u}=n;switch(u.kind){case 80:c(u)&&(n.initializer&&y1(n.initializer,!0)?i.delete(e,Kp(n.parent)&&Nt(n.parent.declarations)===1?n.parent.parent:n):i.delete(e,u));break;case 207:break;case 206:if(u.elements.every(d=>xn(d.name)&&c(d.name)))i.delete(e,Kp(n.parent)&&n.parent.declarations.length===1?n.parent.parent:n);else for(const d of u.elements)xn(d.name)&&c(d.name)&&i.delete(e,d.name);break}}function U$e(e){return re.assert(Nu(e.parent),"Node parent should be a SourceFile"),zCe(e)||Xg(e)}function qce(e,n){return n?[Dlt(e)]:Ilt(e)}function Dlt(e){const n=DA(e)?Hi([he.createModifier(95)],Xv(e)):void 0;switch(e.kind){case 262:return he.updateFunctionDeclaration(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const i=S6(e)?OM(e):void 0;return he.updateClassDeclaration(e,Hi(i,n),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return he.updateVariableStatement(e,n,e.declarationList);case 267:return he.updateModuleDeclaration(e,n,e.name,e.body);case 266:return he.updateEnumDeclaration(e,n,e.name,e.members);case 265:return he.updateTypeAliasDeclaration(e,n,e.name,e.typeParameters,e.type);case 264:return he.updateInterfaceDeclaration(e,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return he.updateImportEqualsDeclaration(e,n,e.isTypeOnly,e.name,e.moduleReference);case 244:return re.fail();default:return re.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Ilt(e){return[e,...M3e(e).map(Whe)]}function Whe(e){return he.createExpressionStatement(he.createBinaryExpression(he.createPropertyAccessExpression(he.createIdentifier("exports"),he.createIdentifier(e)),64,he.createIdentifier(e)))}function M3e(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Qo(e.declarationList.declarations,n=>xn(n.name)?n.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Yn;case 244:return re.fail("Can't export an ExpressionStatement");default:return re.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function Kce(e,n,i){switch(e.kind){case 272:{const c=e.importClause;if(!c)return;const u=c.name&&i(c.name)?c.name:void 0,d=c.namedBindings&&H$e(c.namedBindings,i);return u||d?he.createImportDeclaration(void 0,he.createImportClause(c.isTypeOnly,u,d),ih(n),void 0):void 0}case 271:return i(e.name)?e:void 0;case 260:{const c=L3e(e.name,i);return c?V$e(c,e.type,P3e(n),e.parent.flags):void 0}default:return re.assertNever(e,`Unexpected import kind ${e.kind}`)}}function H$e(e,n){if(e.kind===274)return n(e.name)?e:void 0;{const i=e.elements.filter(c=>n(c.name));return i.length?he.createNamedImports(i):void 0}}function L3e(e,n){switch(e.kind){case 80:return n(e)?e:void 0;case 207:return e;case 206:{const i=e.elements.filter(c=>c.propertyName||!xn(c.name)||n(c.name));return i.length?he.createObjectBindingPattern(i):void 0}}}function LCe(e){return kb(e)?to(e.expression.left.name,xn):to(e.name,xn)}function Bhe(e){switch(e.kind){case 260:return e.parent.parent;case 208:return Bhe(uc(e.parent.parent,n=>Kc(n)||sa(n)));default:return e}}function mee(e,n,i,c,u){if(!MCe(e,n,u,i))if(u)kb(n)||c.insertExportModifier(e,n);else{const d=M3e(n);d.length!==0&&c.insertNodesAfter(e,n,d.map(Whe))}}function O3e(e,n,i,c){const u=n.getTypeChecker(),d=gee(i);let h;if(d){h=Vj(e,d.all,u);const S=ws(e.fileName),E=SP(e.fileName);return vl(S,OCe(FCe(h.oldFileImportsFromTargetFile,h.movedSymbols),E,S,c))+E}return""}function J$e(e){const{file:n}=e,i=MZ(NF(e)),{statements:c}=n;let u=Ho(c,P=>P.end>i.pos);if(u===-1)return;const d=c[u],h=X$e(n,d);h&&(u=h.start);let S=Ho(c,P=>P.end>=i.end,u);S!==-1&&i.end<=c[S].getStart()&&S--;const E=X$e(n,c[S]);return E&&(S=E.end),{toMove:c.slice(u,S===-1?c.length:S+1),afterLast:S===-1?void 0:c[S+1]}}function gee(e){const n=J$e(e);if(n===void 0)return;const i=[],c=[],{toMove:u,afterLast:d}=n;return eu(u,klt,(h,S)=>{for(let E=h;E!!n.initializer&&y1(n.initializer,!0));default:return!1}}function Vj(e,n,i,c=new Set){const u=new Set,d=new Map,h=new Set,S=lr(n,$=>!!($.transformFlags&2)),E=F(S);E&&d.set(E,!1);for(const $ of n)F3e($,J=>{u.add(re.checkDefined(kb(J)?i.getSymbolAtLocation(J.expression.left):J.symbol,"Need a symbol here"))});const P=new Set;for(const $ of n)q$e($,i,(J,X)=>{if(J.declarations){if(c.has(dg(J,i))){P.add(J);return}for(const ie of J.declarations)if(K$e(ie)){const ae=d.get(J);d.set(J,(ae===void 0||ae)&&X)}else Xce(ie)&&WCe(ie)===e&&!u.has(J)&&h.add(J)}});for(const $ of d.keys())P.add($);const k=new Set;for(const $ of e.statements)ni(n,$)||(E&&$.transformFlags&2&&P.delete(E),q$e($,i,J=>{u.has(J)&&k.add(J),P.delete(J)}));return{movedSymbols:u,targetFileImportsFromOldFile:h,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:d,unusedImportsFromOldFile:P};function F($){if($===void 0)return;const J=i.getJsxNamespace($),X=i.resolveName(J,$,1920,!0);return X&>(X.declarations,K$e)?X:void 0}}function OCe(e,n,i,c){let u=e;for(let d=1;;d++){const h=vl(i,u+n);if(!c.fileExists(h))return u;u=`${e}.${d}`}}function FCe(e,n){return gA(e,IF)||gA(n,IF)||"newFile"}function q$e(e,n,i){e.forEachChild(function c(u){if(xn(u)&&!ON(u)){const d=n.getSymbolAtLocation(u);d&&i(d,EA(u))}else u.forEachChild(c)})}function F3e(e,n){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return n(e);case 243:return Yr(e.declarationList.declarations,i=>BCe(i.name,n));case 244:{const{expression:i}=e;return Ds(i)&&jy(i)===1?n(e):void 0}}}function K$e(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return W3e(e);case 208:return Kc(e.parent.parent)&&W3e(e.parent.parent);default:return!1}}function W3e(e){return Nu(e.parent.parent.parent)&&!!e.initializer&&y1(e.initializer,!0)}function Xce(e){return zCe(e)&&Nu(e.parent)||Kc(e)&&Nu(e.parent.parent.parent)}function WCe(e){return Kc(e)?e.parent.parent.parent:e.parent}function BCe(e,n){switch(e.kind){case 80:return n(uc(e.parent,i=>Kc(i)||sa(i)));case 207:case 206:return Yr(e.elements,i=>cb(i)?void 0:BCe(i.name,n));default:return re.assertNever(e,`Unexpected name kind ${e.kind}`)}}function zCe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function Plt(e,n,i,c,u){var d;const h=new Set,S=(d=c.symbol)==null?void 0:d.exports;if(S){const P=n.getTypeChecker(),k=new Map;for(const F of u.all)U$e(F)&&ul(F,32)&&F3e(F,$=>{var J;const X=ck($)?(J=S.get($.symbol.escapedName))==null?void 0:J.declarations:void 0,ie=Yr(X,ae=>ry(ae)?ae:gy(ae)?to(ae.parent.parent,ry):void 0);ie&&ie.moduleSpecifier&&k.set(ie,(k.get(ie)||new Set).add($))});for(const[F,$]of oc(k))if(F.exportClause&&j0(F.exportClause)&&Nt(F.exportClause.elements)){const J=F.exportClause.elements,X=gi(J,ie=>lr(dg(ie.symbol,P).declarations,ae=>Xce(ae)&&$.has(ae))===void 0);if(Nt(X)===0){e.deleteNode(c,F),h.add(F);continue}Nt(X)ry(P)&&!!P.moduleSpecifier&&!h.has(P));E?e.insertNodesBefore(c,E,i,!0):e.insertNodesAfter(c,c.statements[c.statements.length-1],i)}function X$e(e,n){if(Vd(n)){const i=n.symbol.declarations;if(i===void 0||Nt(i)<=1||!ni(i,n))return;const c=i[0],u=i[Nt(i)-1],d=Qo(i,E=>ts(E)===e&&dl(E)?E:void 0),h=Ho(e.statements,E=>E.end>=u.end),S=Ho(e.statements,E=>E.end>=c.end);return{toMove:d,start:S,end:h}}}function Nlt(e,n){const i=new Set;for(const c of e.imports){const u=XC(c);if(n0(u)&&u.importClause&&u.importClause.namedBindings&&Oy(u.importClause.namedBindings))for(const d of u.importClause.namedBindings.elements){const h=n.getSymbolAtLocation(d.propertyName||d.name);h&&i.add(dg(h,n))}if(v1(u.parent)&&Ch(u.parent.name))for(const d of u.parent.name.elements){const h=n.getSymbolAtLocation(d.propertyName||d.name);h&&i.add(dg(h,n))}}return i}var Yce,hee,Qce,zhe=G({"src/services/refactors/moveToFile.ts"(){Bp(),xl(),Oce(),Yce="Move to file",hee=fs(N.Move_to_file),Qce={name:"Move to file",description:hee,kind:"refactor.move.file"},wk(Yce,{kinds:[Qce.kind],getAvailableActions:function(n,i){const c=gee(n);return i?n.preferences.allowTextChangesInNewFiles&&c?[{name:Yce,description:hee,actions:[Qce]}]:n.preferences.provideRefactorNotApplicableReason?[{name:Yce,description:hee,actions:[{...Qce,notApplicableReason:fs(N.Selection_is_not_a_valid_statement_or_statements)}]}]:Yn:Yn},getEditsForAction:function(n,i,c){re.assert(i===Yce,"Wrong refactor invoked");const u=re.checkDefined(gee(n)),{host:d,program:h}=n;re.assert(c,"No interactive refactor arguments available");const S=c.targetFile;return eD(S)||vR(S)?d.fileExists(S)&&h.getSourceFile(S)===void 0?dee(fs(N.Cannot_move_statements_to_the_selected_file)):{edits:zs.ChangeTracker.with(n,P=>I3e(n,n.file,c.targetFile,n.program,u,P,n.host,n.preferences)),renameFilename:void 0,renameLocation:void 0}:dee(fs(N.Cannot_move_to_file_selected_file_is_invalid))}})}});function Zce(e){const{file:n,startPosition:i,program:c}=e;return Q$e(n,i,c)?[{name:GCe,description:B3e,actions:[jCe]}]:Yn}function wlt(e){const{file:n,startPosition:i,program:c}=e,u=Q$e(n,i,c);if(!u)return;const d=c.getTypeChecker(),h=u[u.length-1];let S=h;switch(h.kind){case 173:{S=he.updateMethodSignature(h,h.modifiers,h.name,h.questionToken,h.typeParameters,P(u),h.type);break}case 174:{S=he.updateMethodDeclaration(h,h.modifiers,h.asteriskToken,h.name,h.questionToken,h.typeParameters,P(u),h.type,h.body);break}case 179:{S=he.updateCallSignature(h,h.typeParameters,P(u),h.type);break}case 176:{S=he.updateConstructorDeclaration(h,h.modifiers,P(u),h.body);break}case 180:{S=he.updateConstructSignature(h,h.typeParameters,P(u),h.type);break}case 262:{S=he.updateFunctionDeclaration(h,h.modifiers,h.asteriskToken,h.name,h.typeParameters,P(u),h.type,h.body);break}default:return re.failBadSyntaxKind(h,"Unhandled signature kind in overload list conversion refactoring")}if(S===h)return;return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,$=>{$.replaceNodeRange(n,u[0],u[u.length-1],S)})};function P($){const J=$[$.length-1];return Vd(J)&&J.body&&($=$.slice(0,$.length-1)),he.createNodeArray([he.createParameterDeclaration(void 0,he.createToken(26),"args",void 0,he.createUnionTypeNode(Vn($,k)))])}function k($){const J=Vn($.parameters,F);return _s(he.createTupleTypeNode(J),gt(J,X=>!!Nt(y3(X)))?0:1)}function F($){re.assert(xn($.name));const J=Tn(he.createNamedTupleMember($.dotDotDotToken,$.name,$.questionToken,$.type||he.createKeywordTypeNode(133)),$),X=$.symbol&&$.symbol.getDocumentationComment(d);if(X){const ie=ule(X);ie.length&&uI(J,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return re.assertNever(e)}}function e$e(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function G8e(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function t$e(e){if(qb(e))return 3;if(e$e(e)||G8e(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return VC(e)?6:2}}function JAe(e,n,i,c,u){return ghe($Ae(e,n,i,c,u))}function mhe(e,n){switch(n){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function $Ae(e,n,i,c,u){const d=[];return i.forEachChild(function S(E){if(!(!E||!Bz(u,E.pos,E.getFullWidth()))){if(mhe(n,E.kind),xn(E)&&!ny(E)&&c.has(E.escapedText)){const P=e.getSymbolAtLocation(E),k=P&&Ece(P,xF(E),e);k&&h(E.getStart(i),E.getEnd(),k)}E.forEachChild(S)}}),{spans:d,endOfLineState:0};function h(S,E,P){const k=E-S;re.assert(k>0,`Classification had non-positive length of ${k}`),d.push(S),d.push(k),d.push(P)}}function Ece(e,n,i){const c=e.getFlags();if(c&2885600)return c&32?11:c&384?12:c&524288?16:c&1536?n&4||n&1&&j8e(e)?14:void 0:c&2097152?Ece(i.getAliasedSymbol(e),n,i):n&2?c&64?13:c&262144?15:void 0:void 0}function j8e(e){return gt(e.declarations,n=>dy(n)&&YN(n)===1)}function n$e(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function ghe(e){re.assert(e.spans.length%3===0);const n=e.spans,i=[];for(let c=0;c])*)(\/>)?)?/im,ct=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Ct=n.text.substr(Pe,dt),Lt=Ie.exec(Ct);if(!Lt||!Lt[3]||!(Lt[3]in kU))return!1;let Ze=Pe;F(Ze,Lt[1].length),Ze+=Lt[1].length,E(Ze,Lt[2].length,10),Ze+=Lt[2].length,E(Ze,Lt[3].length,21),Ze+=Lt[3].length;const Ke=Lt[4];let st=Ze;for(;;){const Yt=ct.exec(Ke);if(!Yt)break;const Et=Ze+Yt.index+Yt[1].length;Et>st&&(F(st,Et-st),st=Et),E(st,Yt[2].length,22),st+=Yt[2].length,Yt[3].length&&(F(st,Yt[3].length),st+=Yt[3].length),E(st,Yt[4].length,5),st+=Yt[4].length,Yt[5].length&&(F(st,Yt[5].length),st+=Yt[5].length),E(st,Yt[6].length,24),st+=Yt[6].length}Ze+=Lt[4].length,Ze>st&&F(st,Ze-st),Lt[5]&&(E(Ze,Lt[5].length,10),Ze+=Lt[5].length);const It=Pe+dt;return Ze=0),ct>0){const Ct=dt||Fe(Pe.kind,Pe);Ct&&E(Ie,ct,Ct)}return!0}function we(Pe){switch(Pe.parent&&Pe.parent.kind){case 286:if(Pe.parent.tagName===Pe)return 19;break;case 287:if(Pe.parent.tagName===Pe)return 20;break;case 285:if(Pe.parent.tagName===Pe)return 21;break;case 291:if(Pe.parent.name===Pe)return 22;break}}function Fe(Pe,dt){if(qb(Pe))return 3;if((Pe===30||Pe===32)&&dt&&IAe(dt.parent))return 10;if(uG(Pe)){if(dt){const Ie=dt.parent;if(Pe===64&&(Ie.kind===260||Ie.kind===172||Ie.kind===169||Ie.kind===291)||Ie.kind===226||Ie.kind===224||Ie.kind===225||Ie.kind===227)return 5}return 10}else{if(Pe===9)return 4;if(Pe===10)return 25;if(Pe===11)return dt&&dt.parent.kind===291?24:6;if(Pe===14)return 6;if(VC(Pe))return 6;if(Pe===12)return 23;if(Pe===80){if(dt){switch(dt.parent.kind){case 263:return dt.parent.name===dt?11:void 0;case 168:return dt.parent.name===dt?15:void 0;case 264:return dt.parent.name===dt?13:void 0;case 266:return dt.parent.name===dt?12:void 0;case 267:return dt.parent.name===dt?14:void 0;case 169:return dt.parent.name===dt?E2(dt)?3:17:void 0}if(ky(dt.parent))return 3}return 2}}}function et(Pe){if(Pe&&FX(c,u,Pe.pos,Pe.getFullWidth())){mhe(e,Pe.kind);for(const dt of Pe.getChildren(n))ve(dt)||et(dt)}}}var V8e,KAe=G({"src/services/classifier.ts"(){xl(),V8e=bz([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),yhe,Yct=G({"src/services/documentHighlights.ts"(){xl(),(e=>{function n(Ze,Ke,st,It,Yt){const Et=cS(st,It);if(Et.parent&&(Pb(Et.parent)&&Et.parent.tagName===Et||iD(Et.parent))){const{openingElement:at,closingElement:Qt}=Et.parent.parent,nn=[at,Qt].map(({tagName:Rn})=>i(Rn,st));return[{fileName:st.fileName,highlightSpans:nn}]}return c(It,Et,Ze,Ke,Yt)||u(Et,st)}e.getDocumentHighlights=n;function i(Ze,Ke){return{fileName:Ke.fileName,textSpan:sT(Ze,Ke),kind:"none"}}function c(Ze,Ke,st,It,Yt){const Et=new Set(Yt.map(Rn=>Rn.fileName)),at=Wf.getReferenceEntriesForNode(Ze,Ke,st,Yt,It,void 0,Et);if(!at)return;const Qt=_N(at.map(Wf.toHighlightSpan),Rn=>Rn.fileName,Rn=>Rn.span),nn=H1(st.useCaseSensitiveFileNames());return oc(p2(Qt.entries(),([Rn,cn])=>{if(!Et.has(Rn)){if(!st.redirectTargetsMap.has(gm(Rn,st.getCurrentDirectory(),nn)))return;const qt=st.getSourceFile(Rn);Rn=lr(Yt,wr=>!!wr.redirectInfo&&wr.redirectInfo.redirectTarget===qt).fileName,re.assert(Et.has(Rn))}return{fileName:Rn,highlightSpans:cn}}))}function u(Ze,Ke){const st=d(Ze,Ke);return st&&[{fileName:Ke.fileName,highlightSpans:st}]}function d(Ze,Ke){switch(Ze.kind){case 101:case 93:return bk(Ze.parent)?ct(Ze.parent,Ke):void 0;case 107:return It(Ze.parent,iS,et);case 111:return It(Ze.parent,ff,Fe);case 113:case 85:case 98:const Et=Ze.kind===85?Ze.parent.parent:Ze.parent;return It(Et,My,we);case 109:return It(Ze.parent,AR,ve);case 84:case 90:return xk(Ze.parent)||BT(Ze.parent)?It(Ze.parent.parent.parent,AR,ve):void 0;case 83:case 88:return It(Ze.parent,M8,ae);case 99:case 117:case 92:return It(Ze.parent,at=>LL(at,!0),ie);case 137:return st(Lh,[137]);case 139:case 153:return st(GM,[139,153]);case 135:return It(Ze.parent,ys,Pe);case 134:return Yt(Pe(Ze));case 127:return Yt(dt(Ze));case 103:return;default:return Om(Ze.kind)&&(PT(Ze.parent)||Xg(Ze.parent))?Yt($(Ze.kind,Ze.parent)):void 0}function st(Et,at){return It(Ze.parent,Et,Qt=>{var nn;return Qo((nn=to(Qt,ck))==null?void 0:nn.symbol.declarations,Rn=>Et(Rn)?lr(Rn.getChildren(Ke),cn=>ni(at,cn.kind)):void 0)})}function It(Et,at,Qt){return at(Et)?Yt(Qt(Et,Ke)):void 0}function Yt(Et){return Et&&Et.map(at=>i(at,Ke))}}function h(Ze){return ff(Ze)?[Ze]:My(Ze)?Hi(Ze.catchClause?h(Ze.catchClause):Ze.tryBlock&&h(Ze.tryBlock),Ze.finallyBlock&&h(Ze.finallyBlock)):F_(Ze)?void 0:P(Ze,h)}function S(Ze){let Ke=Ze;for(;Ke.parent;){const st=Ke.parent;if(hP(st)||st.kind===312)return st;if(My(st)&&st.tryBlock===Ke&&st.catchClause)return Ke;Ke=st}}function E(Ze){return M8(Ze)?[Ze]:F_(Ze)?void 0:P(Ze,E)}function P(Ze,Ke){const st=[];return Ze.forEachChild(It=>{const Yt=Ke(It);Yt!==void 0&&st.push(...BC(Yt))}),st}function k(Ze,Ke){const st=F(Ke);return!!st&&st===Ze}function F(Ze){return Ua(Ze,Ke=>{switch(Ke.kind){case 255:if(Ze.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Ze.label||Lt(Ke,Ze.label.escapedText);default:return F_(Ke)&&"quit"}})}function $(Ze,Ke){return Qo(J(Ke,F7(Ze)),st=>QW(st,Ze))}function J(Ze,Ke){const st=Ze.parent;switch(st.kind){case 268:case 312:case 241:case 296:case 297:return Ke&64&&Ih(Ze)?[...Ze.members,Ze]:st.statements;case 176:case 174:case 262:return[...st.parameters,...Fl(st.parent)?st.parent.members:[]];case 263:case 231:case 264:case 187:const It=st.members;if(Ke&15){const Yt=lr(st.members,Lh);if(Yt)return[...It,...Yt.parameters]}else if(Ke&64)return[...It,st];return It;case 210:return;default:re.assertNever(st,"Invalid container kind.")}}function X(Ze,Ke,...st){return Ke&&ni(st,Ke.kind)?(Ze.push(Ke),!0):!1}function ie(Ze){const Ke=[];if(X(Ke,Ze.getFirstToken(),99,117,92)&&Ze.kind===246){const st=Ze.getChildren();for(let It=st.length-1;It>=0&&!X(Ke,st[It],117);It--);}return Ot(E(Ze.statement),st=>{k(Ze,st)&&X(Ke,st.getFirstToken(),83,88)}),Ke}function ae(Ze){const Ke=F(Ze);if(Ke)switch(Ke.kind){case 248:case 249:case 250:case 246:case 247:return ie(Ke);case 255:return ve(Ke)}}function ve(Ze){const Ke=[];return X(Ke,Ze.getFirstToken(),109),Ot(Ze.caseBlock.clauses,st=>{X(Ke,st.getFirstToken(),84,90),Ot(E(st),It=>{k(Ze,It)&&X(Ke,It.getFirstToken(),83)})}),Ke}function we(Ze,Ke){const st=[];if(X(st,Ze.getFirstToken(),113),Ze.catchClause&&X(st,Ze.catchClause.getFirstToken(),85),Ze.finallyBlock){const It=qm(Ze,98,Ke);X(st,It,98)}return st}function Fe(Ze,Ke){const st=S(Ze);if(!st)return;const It=[];return Ot(h(st),Yt=>{It.push(qm(Yt,111,Ke))}),hP(st)&&dR(st,Yt=>{It.push(qm(Yt,107,Ke))}),It}function et(Ze,Ke){const st=zE(Ze);if(!st)return;const It=[];return dR(uc(st.body,Ou),Yt=>{It.push(qm(Yt,107,Ke))}),Ot(h(st.body),Yt=>{It.push(qm(Yt,111,Ke))}),It}function Pe(Ze){const Ke=zE(Ze);if(!Ke)return;const st=[];return Ke.modifiers&&Ke.modifiers.forEach(It=>{X(st,It,134)}),s_(Ke,It=>{Ie(It,Yt=>{ys(Yt)&&X(st,Yt.getFirstToken(),135)})}),st}function dt(Ze){const Ke=zE(Ze);if(!Ke)return;const st=[];return s_(Ke,It=>{Ie(It,Yt=>{t0(Yt)&&X(st,Yt.getFirstToken(),127)})}),st}function Ie(Ze,Ke){Ke(Ze),!F_(Ze)&&!Fl(Ze)&&!xp(Ze)&&!dy(Ze)&&!z0(Ze)&&!pc(Ze)&&s_(Ze,st=>Ie(st,Ke))}function ct(Ze,Ke){const st=Ct(Ze,Ke),It=[];for(let Yt=0;Yt=Et.end;nn--)if(!q1(Ke.text.charCodeAt(nn))){Qt=!1;break}if(Qt){It.push({fileName:Ke.fileName,textSpan:Yy(Et.getStart(),at.end),kind:"reference"}),Yt++;continue}}It.push(i(st[Yt],Ke))}return It}function Ct(Ze,Ke){const st=[];for(;bk(Ze.parent)&&Ze.parent.elseStatement===Ze;)Ze=Ze.parent;for(;;){const It=Ze.getChildren(Ke);X(st,It[0],101);for(let Yt=It.length-1;Yt>=0&&!X(st,It[Yt],93);Yt--);if(!Ze.elseStatement||!bk(Ze.elseStatement))break;Ze=Ze.elseStatement}return st}function Lt(Ze,Ke){return!!Ua(Ze.parent,st=>tF(st)?st.label.escapedText===Ke:"quit")}})(yhe||(yhe={}))}});function xce(e){return!!e.sourceFile}function U8e(e,n,i){return Ace(e,n,i)}function Ace(e,n="",i,c){const u=new Map,d=H1(!!e);function h(){const ae=oc(u.keys()).filter(ve=>ve&&ve.charAt(0)==="_").map(ve=>{const we=u.get(ve),Fe=[];return we.forEach((et,Pe)=>{xce(et)?Fe.push({name:Pe,scriptKind:et.sourceFile.scriptKind,refCount:et.languageServiceRefCount}):et.forEach((dt,Ie)=>Fe.push({name:Pe,scriptKind:Ie,refCount:dt.languageServiceRefCount}))}),Fe.sort((et,Pe)=>Pe.refCount-et.refCount),{bucket:ve,sourceFiles:Fe}});return JSON.stringify(ae,void 0,2)}function S(ae){return typeof ae.getCompilationSettings=="function"?ae.getCompilationSettings():ae}function E(ae,ve,we,Fe,et,Pe){const dt=gm(ae,n,d),Ie=XAe(S(ve));return P(ae,dt,ve,Ie,we,Fe,et,Pe)}function P(ae,ve,we,Fe,et,Pe,dt,Ie){return J(ae,ve,we,Fe,et,Pe,!0,dt,Ie)}function k(ae,ve,we,Fe,et,Pe){const dt=gm(ae,n,d),Ie=XAe(S(ve));return F(ae,dt,ve,Ie,we,Fe,et,Pe)}function F(ae,ve,we,Fe,et,Pe,dt,Ie){return J(ae,ve,S(we),Fe,et,Pe,!1,dt,Ie)}function $(ae,ve){const we=xce(ae)?ae:ae.get(re.checkDefined(ve,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return re.assert(ve===void 0||!we||we.sourceFile.scriptKind===ve,`Script kind should match provided ScriptKind:${ve} and sourceFile.scriptKind: ${we==null?void 0:we.sourceFile.scriptKind}, !entry: ${!we}`),we}function J(ae,ve,we,Fe,et,Pe,dt,Ie,ct){var Ct,Lt,Ze,Ke;Ie=$H(ae,Ie);const st=S(we),It=we===st?void 0:we,Yt=Ie===6?100:iu(st),Et=typeof ct=="object"?ct:{languageVersion:Yt,impliedNodeFormat:It&&Zae(ve,(Ke=(Ze=(Lt=(Ct=It.getCompilerHost)==null?void 0:Ct.call(It))==null?void 0:Lt.getModuleResolutionCache)==null?void 0:Ze.call(Lt))==null?void 0:Ke.getPackageJsonInfoCache(),It,st),setExternalModuleIndicator:q9(st),jsDocParsingMode:i};Et.languageVersion=Yt,re.assertEqual(i,Et.jsDocParsingMode);const at=u.size,Qt=YAe(Fe,Et.impliedNodeFormat),nn=Jw(u,Qt,()=>new Map);if(ps){u.size>at&&ps.instant(ps.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:st.configFilePath,key:Qt});const Kt=!Zb(ve)&&Jb(u,(wr,Wr)=>Wr!==Qt&&wr.has(ve)&&Wr);Kt&&ps.instant(ps.Phase.Session,"documentRegistryBucketOverlap",{path:ve,key1:Kt,key2:Qt})}const Rn=nn.get(ve);let cn=Rn&&$(Rn,Ie);if(!cn&&c){const Kt=c.getDocument(Qt,ve);Kt&&(re.assert(dt),cn={sourceFile:Kt,languageServiceRefCount:0},qt())}if(cn)cn.sourceFile.version!==Pe&&(cn.sourceFile=fye(cn.sourceFile,et,Pe,et.getChangeRange(cn.sourceFile.scriptSnapshot)),c&&c.setDocument(Qt,ve,cn.sourceFile)),dt&&cn.languageServiceRefCount++;else{const Kt=xq(ae,et,Et,Pe,!1,Ie);c&&c.setDocument(Qt,ve,Kt),cn={sourceFile:Kt,languageServiceRefCount:1},qt()}return re.assert(cn.languageServiceRefCount!==0),cn.sourceFile;function qt(){if(!Rn)nn.set(ve,cn);else if(xce(Rn)){const Kt=new Map;Kt.set(Rn.sourceFile.scriptKind,Rn),Kt.set(Ie,cn),nn.set(ve,Kt)}else Rn.set(Ie,cn)}}function X(ae,ve,we,Fe){const et=gm(ae,n,d),Pe=XAe(ve);return ie(et,Pe,we,Fe)}function ie(ae,ve,we,Fe){const et=re.checkDefined(u.get(YAe(ve,Fe))),Pe=et.get(ae),dt=$(Pe,we);dt.languageServiceRefCount--,re.assert(dt.languageServiceRefCount>=0),dt.languageServiceRefCount===0&&(xce(Pe)?et.delete(ae):(Pe.delete(we),Pe.size===1&&et.set(ae,Ns(Pe.values(),Of))))}return{acquireDocument:E,acquireDocumentWithKey:P,updateDocument:k,updateDocumentWithKey:F,releaseDocument:X,releaseDocumentWithKey:ie,getKeyForCompilationSettings:XAe,getDocumentRegistryBucketKeyWithMode:YAe,reportStats:h,getBuckets:()=>u}}function XAe(e){return N3(e,c$)}function YAe(e,n){return n?`${e}|${n}`:e}var Qct=G({"src/services/documentRegistry.ts"(){xl()}});function QAe(e,n,i,c,u,d,h){const S=dG(c),E=H1(S),P=Cce(n,i,E,h),k=Cce(i,n,E,h);return zs.ChangeTracker.with({host:c,formatContext:u,preferences:d},F=>{vhe(e,F,P,n,i,c.getCurrentDirectory(),S),r$e(e,F,P,k,c,E)})}function Cce(e,n,i,c){const u=i(e);return h=>{const S=c&&c.tryGetSourcePosition({fileName:h,pos:0}),E=d(S?S.fileName:h);return S?E===void 0?void 0:Zct(S.fileName,E,h,i):E};function d(h){if(i(h)===u)return n;const S=toe(h,u,i);return S===void 0?void 0:n+"/"+S}}function Zct(e,n,i,c){const u=wM(e,n,c);return ZAe(ws(i),u)}function vhe(e,n,i,c,u,d,h){const{configFile:S}=e.getCompilerOptions();if(!S)return;const E=ws(S.fileName),P=eG(S);if(!P)return;bhe(P,(J,X)=>{switch(X){case"files":case"include":case"exclude":{if(k(J)||X!=="include"||!Ed(J.initializer))return;const ae=Qo(J.initializer.elements,we=>Sd(we)?we.text:void 0);if(ae.length===0)return;const ve=Y9(E,[],ae,h,d);Y2(re.checkDefined(ve.includeFilePattern),h).test(c)&&!Y2(re.checkDefined(ve.includeFilePattern),h).test(u)&&n.insertNodeAfter(S,yl(J.initializer.elements),he.createStringLiteral($(u)));return}case"compilerOptions":bhe(J.initializer,(ie,ae)=>{const ve=QJ(ae);re.assert((ve==null?void 0:ve.type)!=="listOrElement"),ve&&(ve.isFilePath||ve.type==="list"&&ve.element.isFilePath)?k(ie):ae==="paths"&&bhe(ie.initializer,we=>{if(Ed(we.initializer))for(const Fe of we.initializer.elements)F(Fe)})});return}});function k(J){const X=Ed(J.initializer)?J.initializer.elements:[J.initializer];let ie=!1;for(const ae of X)ie=F(ae)||ie;return ie}function F(J){if(!Sd(J))return!1;const X=ZAe(E,J.text),ie=i(X);return ie!==void 0?(n.replaceRangeWithText(S,a$e(J,S),$(ie)),!0):!1}function $(J){return sP(E,J,!h)}}function r$e(e,n,i,c,u,d){const h=e.getSourceFiles();for(const S of h){const E=i(S.fileName),P=E??S.fileName,k=ws(P),F=c(S.fileName),$=F||S.fileName,J=ws($),X=E!==void 0||F!==void 0;o$e(S,n,ie=>{if(!V2(ie))return;const ae=ZAe(J,ie),ve=i(ae);return ve===void 0?void 0:Fd(sP(k,ve,d))},ie=>{const ae=e.getTypeChecker().getSymbolAtLocation(ie);if(ae!=null&&ae.declarations&&ae.declarations.some(we=>dh(we)))return;const ve=F!==void 0?eCe(ie,ZG(ie.text,$,e.getCompilerOptions(),u),i,h):i$e(ae,ie,S,e,u,i);return ve!==void 0&&(ve.updated||X&&V2(ie.text))?l4.updateModuleSpecifier(e.getCompilerOptions(),S,d(P),ve.newFileName,y4(e,u),ie.text):void 0})}}function elt(e,n){return hf(vl(e,n))}function ZAe(e,n){return Fd(elt(e,n))}function i$e(e,n,i,c,u,d){if(e){const h=lr(e.declarations,Nu).fileName,S=d(h);return S===void 0?{newFileName:h,updated:!1}:{newFileName:S,updated:!0}}else{const h=PA(i,n),S=u.resolveModuleNameLiterals||!u.resolveModuleNames?c.getResolvedModule(i,n.text,h):u.getResolvedModuleWithFailedLookupLocationsFromCache&&u.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,i.fileName,h);return eCe(n,S,d,c.getSourceFiles())}}function eCe(e,n,i,c){if(!n)return;if(n.resolvedModule){const E=S(n.resolvedModule.resolvedFileName);if(E)return E}const u=Ot(n.failedLookupLocations,d)||V2(e.text)&&Ot(n.failedLookupLocations,h);if(u)return u;return n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function d(E){const P=i(E);return P&&lr(c,k=>k.fileName===P)?h(E):void 0}function h(E){return h_(E,"/package.json")?void 0:S(E)}function S(E){const P=i(E);return P&&{newFileName:P,updated:!0}}}function o$e(e,n,i,c){for(const u of e.referencedFiles||Yn){const d=i(u.fileName);d!==void 0&&d!==e.text.slice(u.pos,u.end)&&n.replaceRangeWithText(e,u,d)}for(const u of e.imports){const d=c(u);d!==void 0&&d!==u.text&&n.replaceRangeWithText(e,a$e(u,e),d)}}function a$e(e,n){return tv(e.getStart(n)+1,e.end-1)}function bhe(e,n){if(el(e))for(const i of e.properties)tl(i)&&Sd(i.name)&&n(i,i.name.text)}var tlt=G({"src/services/getEditsForFileRename.ts"(){xl()}});function _q(e,n){return{kind:e,isCaseSensitive:n}}function H8e(e){const n=new Map,i=e.trim().split(".").map(c=>c$e(c.trim()));if(i.length===1&&i[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>_q(2,!0),getFullMatch:()=>_q(2,!0),patternContainsDots:!1};if(!i.some(c=>!c.subWordTextChunks.length))return{getFullMatch:(c,u)=>dq(c,u,i,n),getMatchForLastSegmentOfPattern:c=>The(c,yl(i),n),patternContainsDots:i.length>1}}function dq(e,n,i,c){if(!The(n,yl(i),c)||i.length-1>e.length)return;let d;for(let h=i.length-2,S=e.length-1;h>=0;h-=1,S-=1)d=tCe(d,The(e[S],i[h],c));return d}function J8e(e,n){let i=n.get(e);return i||n.set(e,i=iCe(e)),i}function s$e(e,n,i){const c=l$e(e,n.textLowerCase);if(c===0)return _q(n.text.length===e.length?0:1,qf(e,n.text));if(n.isLowerCase){if(c===-1)return;const u=J8e(e,i);for(const d of u)if($8e(e,d,n.text,!0))return _q(2,$8e(e,d,n.text,!1));if(n.text.length0)return _q(2,!0);if(n.characterSpans.length>0){const u=J8e(e,i),d=K8e(e,u,n,!1)?!0:K8e(e,u,n,!0)?!1:void 0;if(d!==void 0)return _q(3,d)}}}function The(e,n,i){if(aCe(n.totalTextChunk.text,d=>d!==32&&d!==42)){const d=s$e(e,n.totalTextChunk,i);if(d)return d}const c=n.subWordTextChunks;let u;for(const d of c)u=tCe(u,s$e(e,d,i));return u}function tCe(e,n){return qw([e,n],nlt)}function nlt(e,n){return e===void 0?1:n===void 0?-1:pf(e.kind,n.kind)||Z0(!e.isCaseSensitive,!n.isCaseSensitive)}function $8e(e,n,i,c,u={start:0,length:i.length}){return u.length<=n.length&&e3e(0,u.length,d=>q8e(i.charCodeAt(u.start+d),e.charCodeAt(n.start+d),c))}function q8e(e,n,i){return i?X8e(e)===X8e(n):e===n}function K8e(e,n,i,c){const u=i.characterSpans;let d=0,h=0;for(;;){if(h===u.length)return!0;if(d===n.length)return!1;let S=n[d],E=!1;for(;h=65&&e<=90)return!0;if(e<127||!K(e,99))return!1;const n=String.fromCharCode(e);return n===n.toUpperCase()}function nCe(e){if(e>=97&&e<=122)return!0;if(e<127||!K(e,99))return!1;const n=String.fromCharCode(e);return n===n.toLowerCase()}function l$e(e,n){const i=e.length-n.length;for(let c=0;c<=i;c++)if(aCe(n,(u,d)=>X8e(e.charCodeAt(d+c))===u))return c;return-1}function X8e(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Y8e(e){return e>=48&&e<=57}function u$e(e){return Wj(e)||nCe(e)||Y8e(e)||e===95||e===36}function rCe(e){const n=[];let i=0,c=0;for(let u=0;u0&&(n.push(Dce(e.substr(i,c))),c=0)}return c>0&&n.push(Dce(e.substr(i,c))),n}function Dce(e){const n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:Q8e(e)}}function Q8e(e){return f$e(e,!1)}function iCe(e){return f$e(e,!0)}function f$e(e,n){const i=[];let c=0;for(let u=1;uoCe(c)&&c!==95,n,i)}function _$e(e,n,i){return n!==i&&n+1n(e.charCodeAt(u),u))}var tee,ilt=G({"src/services/patternMatcher.ts"(){xl(),tee=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(tee||{})}});function t3e(e,n=!0,i=!1){const c={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},u=[];let d,h,S,E=0,P=!1;function k(){return h=S,S=uT.scan(),S===19?E++:S===20&&E--,S}function F(){const Pe=uT.getTokenValue(),dt=uT.getTokenStart();return{fileName:Pe,pos:dt,end:dt+Pe.length}}function $(){d||(d=[]),d.push({ref:F(),depth:E})}function J(){u.push(F()),X()}function X(){E===0&&(P=!0)}function ie(){let Pe=uT.getToken();return Pe===138?(Pe=k(),Pe===144&&(Pe=k(),Pe===11&&$()),!0):!1}function ae(){if(h===25)return!1;let Pe=uT.getToken();if(Pe===102){if(Pe=k(),Pe===21){if(Pe=k(),Pe===11||Pe===15)return J(),!0}else{if(Pe===11)return J(),!0;if(Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie!==161&&(Ie===42||Ie===19||Ie===80||qb(Ie))})&&(Pe=k()),Pe===80||qb(Pe))if(Pe=k(),Pe===161){if(Pe=k(),Pe===11)return J(),!0}else if(Pe===64){if(we(!0))return!0}else if(Pe===28)Pe=k();else return!0;if(Pe===19){for(Pe=k();Pe!==20&&Pe!==1;)Pe=k();Pe===20&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))}else Pe===42&&(Pe=k(),Pe===130&&(Pe=k(),(Pe===80||qb(Pe))&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))))}return!0}return!1}function ve(){let Pe=uT.getToken();if(Pe===95){if(X(),Pe=k(),Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie===42||Ie===19})&&(Pe=k()),Pe===19){for(Pe=k();Pe!==20&&Pe!==1;)Pe=k();Pe===20&&(Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J()))}else if(Pe===42)Pe=k(),Pe===161&&(Pe=k(),Pe===11&&J());else if(Pe===102&&(Pe=k(),Pe===156&&uT.lookAhead(()=>{const Ie=uT.scan();return Ie===80||qb(Ie)})&&(Pe=k()),(Pe===80||qb(Pe))&&(Pe=k(),Pe===64&&we(!0))))return!0;return!0}return!1}function we(Pe,dt=!1){let Ie=Pe?k():uT.getToken();return Ie===149?(Ie=k(),Ie===21&&(Ie=k(),(Ie===11||dt&&Ie===15)&&J()),!0):!1}function Fe(){let Pe=uT.getToken();if(Pe===80&&uT.getTokenValue()==="define"){if(Pe=k(),Pe!==21)return!0;if(Pe=k(),Pe===11||Pe===15)if(Pe=k(),Pe===28)Pe=k();else return!0;if(Pe!==23)return!0;for(Pe=k();Pe!==24&&Pe!==1;)(Pe===11||Pe===15)&&J(),Pe=k();return!0}return!1}function et(){for(uT.setText(e),k();uT.getToken()!==1;){if(uT.getToken()===16){const Pe=[uT.getToken()];e:for(;Nt(Pe);){const dt=uT.scan();switch(dt){case 1:break e;case 102:ae();break;case 16:Pe.push(dt);break;case 19:Nt(Pe)&&Pe.push(dt);break;case 20:Nt(Pe)&&(Yf(Pe)===16?uT.reScanTemplateToken(!1)===18&&Pe.pop():Pe.pop());break}}k()}ie()||ae()||ve()||i&&(we(!1,!0)||Fe())||k()}uT.setText(void 0)}if(n&&et(),YEe(c,e),E6(c,ku),P){if(d)for(const Pe of d)u.push(Pe.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:void 0}}else{let Pe;if(d)for(const dt of d)dt.depth===0?(Pe||(Pe=[]),Pe.push(dt.ref.fileName)):u.push(dt.ref);return{referencedFiles:c.referencedFiles,typeReferenceDirectives:c.typeReferenceDirectives,libReferenceDirectives:c.libReferenceDirectives,importedFiles:u,isLibFile:!!c.hasNoDefaultLib,ambientExternalModules:Pe}}}var olt=G({"src/services/preProcess.ts"(){xl()}});function n3e(e){const n=H1(e.useCaseSensitiveFileNames()),i=e.getCurrentDirectory(),c=new Map,u=new Map;return{tryGetSourcePosition:S,tryGetGeneratedPosition:E,toLineColumnOffset:$,clearCache:J};function d(X){return gm(X,i,n)}function h(X,ie){const ae=d(X),ve=u.get(ae);if(ve)return ve;let we;if(e.getDocumentPositionMapper)we=e.getDocumentPositionMapper(X,ie);else if(e.readFile){const Fe=F(X);we=Fe&&sCe({getSourceFileLike:F,getCanonicalFileName:n,log:et=>e.log(et)},X,kae(Fe.text,eR(Fe)),et=>!e.fileExists||e.fileExists(et)?e.readFile(et):void 0)}return u.set(ae,we||Vx),we||Vx}function S(X){if(!Zb(X.fileName)||!P(X.fileName))return;const ae=h(X.fileName).getSourcePosition(X);return!ae||ae===X?void 0:S(ae)||ae}function E(X){if(Zb(X.fileName))return;const ie=P(X.fileName);if(!ie)return;const ae=e.getProgram();if(ae.isSourceOfProjectReferenceRedirect(ie.fileName))return;const ve=ae.getCompilerOptions(),we=Ng(ve),Fe=we?wg(we)+".d.ts":Mie(X.fileName,ae.getCompilerOptions(),i,ae.getCommonSourceDirectory(),n);if(Fe===void 0)return;const et=h(Fe,X.fileName).getGeneratedPosition(X);return et===X?void 0:et}function P(X){const ie=e.getProgram();if(!ie)return;const ae=d(X),ve=ie.getSourceFileByPath(ae);return ve&&ve.resolvedPath===ae?ve:void 0}function k(X){const ie=d(X),ae=c.get(ie);if(ae!==void 0)return ae||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(ie)){c.set(ie,!1);return}const ve=e.readFile(ie),we=ve?alt(ve):!1;return c.set(ie,we),we||void 0}function F(X){return e.getSourceFileLike?e.getSourceFileLike(X):P(X)||k(X)}function $(X,ie){return F(X).getLineAndCharacterOfPosition(ie)}function J(){c.clear(),u.clear()}}function sCe(e,n,i,c){let u=JLe(i);if(u){const S=d$e.exec(u);if(S){if(S[1]){const E=S[1];return cCe(e,SSe(w0,E),n)}u=void 0}}const d=[];u&&d.push(u),d.push(n+".map");const h=u&&vf(u,ws(n));for(const S of d){const E=vf(S,ws(n)),P=c(E,h);if(As(P))return cCe(e,P,E);if(P!==void 0)return P||void 0}}function cCe(e,n,i){const c=j2e(n);if(!(!c||!c.sources||!c.file||!c.mappings)&&!(c.sourcesContent&&c.sourcesContent.some(As)))return QLe(e,c,i)}function alt(e,n){return{text:e,lineMap:n,getLineAndCharacterOfPosition(i){return Nd(eR(this),i)}}}var d$e,lCe=G({"src/services/sourcemaps.ts"(){xl(),d$e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Ice(e,n,i){var c;n.getSemanticDiagnostics(e,i);const u=[],d=n.getTypeChecker();!(e.impliedNodeFormat===1||pv(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Jge(n)||OZ(n.getCompilerOptions()))&&p$e(e)&&u.push(Bs(uCe(e.commonJsModuleIndicator),N.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const S=Gy(e);if(mCe.clear(),E(e),VN(n.getCompilerOptions()))for(const P of e.imports){const k=XC(P),F=m$e(k);if(!F)continue;const $=(c=n.getResolvedModule(e,P.text,PA(e,P)))==null?void 0:c.resolvedModule,J=$&&n.getSourceFile($.resolvedFileName);J&&J.externalModuleIndicator&&J.externalModuleIndicator!==!0&&py(J.externalModuleIndicator)&&J.externalModuleIndicator.isExportEquals&&u.push(Bs(F,N.Import_may_be_converted_to_a_default_import))}return Oi(u,e.bindSuggestionDiagnostics),Oi(u,n.getSuggestionDiagnostics(e,i)),u.sort((P,k)=>P.start-k.start);function E(P){if(S)y$e(P,d)&&u.push(Bs(Kc(P.parent)?P.parent.name:P,N.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Xg(P)&&P.parent===e&&P.declarationList.flags&2&&P.declarationList.declarations.length===1){const F=P.declarationList.declarations[0].initializer;F&&y1(F,!0)&&u.push(Bs(F,N.require_call_may_be_converted_to_an_import))}const k=fT.getJSDocTypedefNodes(P);for(const F of k)u.push(Bs(F,N.JSDoc_typedef_may_be_converted_to_TypeScript_type));fT.parameterShouldGetTypeFromJSDoc(P)&&u.push(Bs(P.name||P,N.JSDoc_types_may_be_moved_to_TypeScript_types))}pCe(P)&&g$e(P,d,u),P.forEachChild(E)}}function p$e(e){return e.statements.some(n=>{switch(n.kind){case 243:return n.declarationList.declarations.some(i=>!!i.initializer&&y1(r3e(i.initializer),!0));case 244:{const{expression:i}=n;if(!Ds(i))return y1(i,!0);const c=jy(i);return c===1||c===2}default:return!1}})}function r3e(e){return Ac(e)?r3e(e.expression):e}function m$e(e){switch(e.kind){case 272:const{importClause:n,moduleSpecifier:i}=e;return n&&!n.name&&n.namedBindings&&n.namedBindings.kind===274&&Sd(i)?n.namedBindings.name:void 0;case 271:return e.name;default:return}}function g$e(e,n,i){slt(e,n)&&!mCe.has(h$e(e))&&i.push(Bs(!e.name&&Kc(e.parent)&&xn(e.parent.name)?e.parent.name:e,N.This_may_be_converted_to_an_async_function))}function slt(e,n){return!t6(e)&&e.body&&Ou(e.body)&&clt(e.body,n)&&kce(e,n)}function kce(e,n){const i=n.getSignatureFromDeclaration(e),c=i?n.getReturnTypeOfSignature(i):void 0;return!!c&&!!n.getPromisedTypeOfPromise(c)}function uCe(e){return Ds(e)?e.left:e}function clt(e,n){return!!dR(e,i=>Pce(i,n))}function Pce(e,n){return iS(e)&&!!e.expression&&fCe(e.expression,n)}function fCe(e,n){if(!_Ce(e)||!i3e(e)||!e.arguments.every(c=>dCe(c,n)))return!1;let i=e.expression.expression;for(;_Ce(i)||Ac(i);)if(xd(i)){if(!i3e(i)||!i.arguments.every(c=>dCe(c,n)))return!1;i=i.expression.expression}else i=i.expression;return!0}function _Ce(e){return xd(e)&&(Ej(e,"then")||Ej(e,"catch")||Ej(e,"finally"))}function i3e(e){const n=e.expression.name.text,i=n==="then"?2:n==="catch"||n==="finally"?1:0;return e.arguments.length>i?!1:e.arguments.lengthc.kind===106||xn(c)&&c.text==="undefined")}function dCe(e,n){switch(e.kind){case 262:case 218:if(ob(e)&1)return!1;case 219:mCe.set(h$e(e),!0);case 106:return!0;case 80:case 211:{const c=n.getSymbolAtLocation(e);return c?n.isUndefinedSymbol(c)||gt(dg(c,n).declarations,u=>F_(u)||J2(u)&&!!u.initializer&&F_(u.initializer)):!1}default:return!1}}function h$e(e){return`${e.pos.toString()}:${e.end.toString()}`}function y$e(e,n){var i,c,u,d;if(Jm(e)){if(Kc(e.parent)&&((i=e.symbol.members)!=null&&i.size))return!0;const h=n.getSymbolOfExpando(e,!1);return!!(h&&((c=h.exports)!=null&&c.size||(u=h.members)!=null&&u.size))}return mg(e)?!!((d=e.symbol.members)!=null&&d.size):!1}function pCe(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var mCe,llt=G({"src/services/suggestionDiagnostics.ts"(){xl(),mCe=new Map}});function She(e,n){const i=[],c=n.compilerOptions?gCe(n.compilerOptions,i):{},u=lye();for(const $ in u)ef(u,$)&&c[$]===void 0&&(c[$]=u[$]);for(const $ of Vpe)c.verbatimModuleSyntax&&v$e.has($.name)||(c[$.name]=$.transpileOptionValue);c.suppressOutputPathCheck=!0,c.allowNonTsExtensions=!0;const d=JE(c),h={getSourceFile:$=>$===hf(S)?E:void 0,writeFile:($,J)=>{mm($,".map")?(re.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",$),k=J):(re.assertEqual(P,void 0,"Unexpected multiple outputs, file:",$),P=J)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:$=>$,getCurrentDirectory:()=>"",getNewLine:()=>d,fileExists:$=>$===S,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},S=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),E=eQ(S,e,{languageVersion:iu(c),impliedNodeFormat:Zae(gm(S,"",h.getCanonicalFileName),void 0,h,c),setExternalModuleIndicator:q9(c),jsDocParsingMode:1});n.moduleName&&(E.moduleName=n.moduleName),n.renamedDependencies&&(E.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));let P,k;const F=YQ([S],c,h);return n.reportDiagnostics&&(Oi(i,F.getSyntacticDiagnostics(E)),Oi(i,F.getOptionsDiagnostics())),F.emit(void 0,void 0,void 0,void 0,n.transformers),P===void 0?re.fail("Output generation failed"):{outputText:P,diagnostics:i,sourceMapText:k}}function o3e(e,n,i,c,u){const d=She(e,{compilerOptions:n,fileName:i,reportDiagnostics:!!c,moduleName:u});return Oi(c,d.diagnostics),d.outputText}function gCe(e,n){a3e=a3e||gi(hI,i=>typeof i.type=="object"&&!Jb(i.type,c=>typeof c!="number")),e=PZ(e);for(const i of a3e){if(!ef(e,i.name))continue;const c=e[i.name];As(c)?e[i.name]=$oe(i,c,n):Jb(i.type,u=>u===c)||n.push(Ipe(i))}return e}var v$e,a3e,ult=G({"src/services/transpile.ts"(){xl(),v$e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function s3e(e,n,i,c,u,d,h){const S=H8e(c);if(!S)return Yn;const E=[],P=e.length===1?e[0]:void 0;for(const k of e)i.throwIfCancellationRequested(),!(d&&k.isDeclarationFile)&&(c3e(k,!!h,P)||k.getNamedDeclarations().forEach((F,$)=>{b$e(S,$,F,n,k.fileName,!!h,P,E)}));return E.sort(x$e),(u===void 0?E:E.slice(0,u)).map(wF)}function c3e(e,n,i){return e!==i&&n&&(KZ(e.path)||e.hasNoDefaultLib)}function b$e(e,n,i,c,u,d,h,S){const E=e.getMatchForLastSegmentOfPattern(n);if(E){for(const P of i)if(T$e(P,c,d,h))if(e.patternContainsDots){const k=e.getFullMatch(E$e(P),n);k&&S.push({name:n,fileName:u,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:P})}else S.push({name:n,fileName:u,matchKind:E.kind,isCaseSensitive:E.isCaseSensitive,declaration:P})}}function T$e(e,n,i,c){var u;switch(e.kind){case 273:case 276:case 271:const d=n.getSymbolAtLocation(e.name),h=n.getAliasedSymbol(d);return d.escapedName!==h.escapedName&&!((u=h.declarations)!=null&&u.every(S=>c3e(S.getSourceFile(),i,c)));default:return!0}}function S$e(e,n){const i=i_(e);return!!i&&(Ehe(i,n)||i.kind===167&&nee(i.expression,n))}function nee(e,n){return Ehe(e,n)||Ac(e)&&(n.push(e.name.text),!0)&&nee(e.expression,n)}function Ehe(e,n){return Qv(e)&&(n.push(K2(e)),!0)}function E$e(e){const n=[],i=i_(e);if(i&&i.kind===167&&!nee(i.expression,n))return Yn;n.shift();let c=RR(e);for(;c;){if(!S$e(c,n))return Yn;c=RR(c)}return n.reverse()}function x$e(e,n){return pf(e.matchKind,n.matchKind)||q5(e.name,n.name)}function wF(e){const n=e.declaration,i=RR(n),c=i&&i_(i);return{name:e.name,kind:g4(n),kindModifiers:X$(n),matchKind:tee[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:sT(n),containerName:c?c.text:"",containerKind:c?g4(i):""}}var l3e=G({"src/services/navigateTo.ts"(){xl()}}),hCe={};Oe(hCe,{getNavigateToItems:()=>s3e});var u3e=G({"src/services/_namespaces/ts.NavigateTo.ts"(){l3e()}});function f3e(e,n){SI=n,Mce=e;try{return Vn(D$e(lB(e)),ree)}finally{b4()}}function q3(e,n){SI=n,Mce=e;try{return I$e(lB(e))}finally{b4()}}function b4(){Mce=void 0,SI=void 0,Lce=[],wP=void 0,CCe=[]}function nw(e){return aee(e.getText(Mce))}function xhe(e){return e.node.kind}function yCe(e,n){e.children?e.children.push(n):e.children=[n]}function lB(e){re.assert(!Lce.length);const n={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};wP=n;for(const i of e.statements)uB(i);return T4(),re.assert(!wP&&!Lce.length),n}function L6(e,n){yCe(wP,_3e(e,n))}function _3e(e,n){return{node:e,name:n||(PT(e)||kr(e)?i_(e):void 0),additionalNodes:void 0,parent:wP,children:void 0,indent:wP.indent+1}}function d3e(e){zj||(zj=new Map),zj.set(e,!0)}function A$e(e){for(let n=0;n0;c--){const u=i[c];K3(e,u)}return[i.length-1,i[0]]}function K3(e,n){const i=_3e(e,n);yCe(wP,i),Lce.push(wP),ACe.push(zj),zj=void 0,wP=i}function T4(){wP.children&&(Nce(wP.children,wP),h3e(wP.children)),wP=Lce.pop(),zj=ACe.pop()}function X3(e,n,i){K3(e,i),uB(n),T4()}function bCe(e){e.initializer&&oee(e.initializer)?(K3(e),s_(e.initializer,uB),T4()):X3(e,e.initializer)}function p3e(e){const n=i_(e);if(n===void 0)return!1;if(Qf(n)){const i=n.expression;return Tg(i)||S1(i)||Ox(i)}return!!n}function uB(e){if(SI.throwIfCancellationRequested(),!(!e||a7(e)))switch(e.kind){case 176:const n=e;X3(n,n.body);for(const h of n.parameters)DT(h,n)&&L6(h);break;case 174:case 177:case 178:case 173:p3e(e)&&X3(e,e.body);break;case 172:p3e(e)&&bCe(e);break;case 171:p3e(e)&&L6(e);break;case 273:const i=e;i.name&&L6(i.name);const{namedBindings:c}=i;if(c)if(c.kind===274)L6(c);else for(const h of c.elements)L6(h);break;case 304:X3(e,e.name);break;case 305:const{expression:u}=e;xn(u)?L6(e,u):L6(e);break;case 208:case 303:case 260:{const h=e;$_(h.name)?uB(h.name):bCe(h);break}case 262:const d=e.name;d&&xn(d)&&d3e(d.text),X3(e,e.body);break;case 219:case 218:X3(e,e.body);break;case 266:K3(e);for(const h of e.members)Rce(h)||L6(h);T4();break;case 263:case 231:case 264:K3(e);for(const h of e.members)uB(h);T4();break;case 267:X3(e,iee(e).body);break;case 277:{const h=e.expression,S=el(h)||xd(h)?h:$m(h)||Jm(h)?h.body:void 0;S?(K3(e),uB(S),T4()):L6(e);break}case 281:case 271:case 181:case 179:case 180:case 265:L6(e);break;case 213:case 226:{const h=jy(e);switch(h){case 1:case 2:X3(e,e.right);return;case 6:case 3:{const S=e,E=S.left,P=h===3?E.expression:E;let k=0,F;xn(P.expression)?(d3e(P.expression.text),F=P.expression):[k,F]=vCe(S,P.expression),h===6?el(S.right)&&S.right.properties.length>0&&(K3(S,F),s_(S.right,uB),T4()):Jm(S.right)||$m(S.right)?X3(e,S.right,F):(K3(S,F),X3(e,S.right,E.name),T4()),A$e(k);return}case 7:case 9:{const S=e,E=h===7?S.arguments[0]:S.arguments[0].expression,P=S.arguments[1],[k,F]=vCe(e,E);K3(e,F),K3(e,Tn(he.createIdentifier(P.text),P)),uB(e.arguments[2]),T4(),T4(),A$e(k);return}case 5:{const S=e,E=S.left,P=E.expression;if(xn(P)&&eI(E)!=="prototype"&&zj&&zj.has(P.text)){Jm(S.right)||$m(S.right)?X3(e,S.right,P):mR(E)&&(K3(S,P),X3(S.left,S.right,KC(E)),T4());return}break}case 4:case 0:case 8:break;default:re.assertNever(h)}}default:NT(e)&&Ot(e.jsDoc,h=>{Ot(h.tags,S=>{b2(S)&&L6(S)})}),s_(e,uB)}}function Nce(e,n){const i=new Map;vd(e,(c,u)=>{const d=c.name||i_(c.node),h=d&&nw(d);if(!h)return!0;const S=i.get(h);if(!S)return i.set(h,c),!0;if(S instanceof Array){for(const E of S)if(m3e(E,c,u,n))return!1;return S.push(c),!0}else{const E=S;return m3e(E,c,u,n)?!1:(i.set(h,[E,c]),!0)}})}function flt(e,n,i,c){function u(S){return Jm(S)||mg(S)||Kc(S)}const d=Ds(n.node)||xd(n.node)?jy(n.node):0,h=Ds(e.node)||xd(e.node)?jy(e.node):0;if(see[d]&&see[h]||u(e.node)&&see[d]||u(n.node)&&see[h]||Ih(e.node)&&Ahe(e.node)&&see[d]||Ih(n.node)&&see[h]||Ih(e.node)&&Ahe(e.node)&&u(n.node)||Ih(n.node)&&u(e.node)&&Ahe(e.node)){let S=e.additionalNodes&&Yf(e.additionalNodes)||e.node;if(!Ih(e.node)&&!Ih(n.node)||u(e.node)||u(n.node)){const P=u(e.node)?e.node:u(n.node)?n.node:void 0;if(P!==void 0){const k=Tn(he.createConstructorDeclaration(void 0,[],void 0),P),F=_3e(k);F.indent=e.indent+1,F.children=e.node===P?e.children:n.children,e.children=e.node===P?Hi([F],n.children||[n]):Hi(e.children||[{...e}],[F])}else(e.children||n.children)&&(e.children=Hi(e.children||[{...e}],n.children||[n]),e.children&&(Nce(e.children,e),h3e(e.children)));S=e.node=Tn(he.createClassDeclaration(void 0,e.name||he.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Hi(e.children,n.children),e.children&&Nce(e.children,e);const E=n.node;return c.children[i-1].node.end===S.end?Tn(S,{pos:S.pos,end:E.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Tn(he.createClassDeclaration(void 0,e.name||he.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return d!==0}function m3e(e,n,i,c){return flt(e,n,i,c)?!0:_lt(e.node,n.node,c)?(C$e(e,n),!0):!1}function _lt(e,n,i){if(e.kind!==n.kind||e.parent!==n.parent&&!(g3e(e,i)&&g3e(n,i)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return pd(e)===pd(n);case 267:return TCe(e,n)&&wce(e)===wce(n);default:return!0}}function Ahe(e){return!!(e.flags&16)}function g3e(e,n){const i=kh(e.parent)?e.parent.parent:e.parent;return i===n.node||ni(n.additionalNodes,i)}function TCe(e,n){return!e.body||!n.body?e.body===n.body:e.body.kind===n.body.kind&&(e.body.kind!==267||TCe(e.body,n.body))}function C$e(e,n){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(n.node),n.additionalNodes&&e.additionalNodes.push(...n.additionalNodes),e.children=Hi(e.children,n.children),e.children&&(Nce(e.children,e),h3e(e.children))}function h3e(e){e.sort(y3e)}function y3e(e,n){return q5(v3e(e.node),v3e(n.node))||pf(xhe(e),xhe(n))}function v3e(e){if(e.kind===267)return Che(e);const n=i_(e);if(n&&qg(n)){const i=FN(n);return i&&Ic(i)}switch(e.kind){case 218:case 219:case 231:return Bj(e);default:return}}function SCe(e,n){if(e.kind===267)return aee(Che(e));if(n){const i=xn(n)?n.text:Hm(n)?`[${nw(n.argumentExpression)}]`:nw(n);if(i.length>0)return aee(i)}switch(e.kind){case 312:const i=e;return Bv(i)?`"${Q8(Jg(wg(hf(i.fileName))))}"`:"";case 277:return py(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ZC(e)&2048?"default":Bj(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function D$e(e){const n=[];function i(u){if(c(u)&&(n.push(u),u.children))for(const d of u.children)i(d)}return i(e),n;function c(u){if(u.children)return!0;switch(xhe(u)){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 d(u);default:return!1}function d(h){if(!h.node.body)return!1;switch(xhe(h.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function I$e(e){return{text:SCe(e.node,e.name),kind:g4(e.node),kindModifiers:xCe(e.node),spans:ECe(e),nameSpan:e.name&&rw(e.name),childItems:Vn(e.children,I$e)}}function ree(e){return{text:SCe(e.node,e.name),kind:g4(e.node),kindModifiers:xCe(e.node),spans:ECe(e),childItems:Vn(e.children,n)||CCe,indent:e.indent,bolded:!1,grayed:!1};function n(i){return{text:SCe(i.node,i.name),kind:g4(i.node),kindModifiers:X$(i.node),spans:ECe(i),childItems:CCe,indent:0,bolded:!1,grayed:!1}}}function ECe(e){const n=[rw(e.node)];if(e.additionalNodes)for(const i of e.additionalNodes)n.push(rw(i));return n}function Che(e){return dh(e)?Lv(e.name):wce(e)}function wce(e){const n=[K2(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,n.push(K2(e.name));return n.join(".")}function iee(e){return e.body&&dy(e.body)?iee(e.body):e}function Rce(e){return!e.name||e.name.kind===167}function rw(e){return e.kind===312?PP(e):sT(e,Mce)}function xCe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),X$(e)}function Bj(e){const{parent:n}=e;if(e.name&&FL(e.name)>0)return aee(hm(e.name));if(Kc(n))return aee(hm(n.name));if(Ds(n)&&n.operatorToken.kind===64)return nw(n.left).replace(b3e,"");if(tl(n))return nw(n.name);if(ZC(e)&2048)return"default";if(Fl(e))return"";if(xd(n)){let i=Dhe(n.expression);if(i!==void 0){if(i=aee(i),i.length>Ihe)return`${i} callback`;const c=aee(Qo(n.arguments,u=>Cm(u)?u.getText(Mce):void 0).join(", "));return`${i}(${c}) callback`}}return""}function Dhe(e){if(xn(e))return e.text;if(Ac(e)){const n=Dhe(e.expression),i=e.name.text;return n===void 0?i:`${n}.${i}`}else return}function oee(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function aee(e){return e=e.length>Ihe?e.substring(0,Ihe)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var b3e,Ihe,SI,Mce,Lce,wP,ACe,zj,CCe,see,dlt=G({"src/services/navigationBar.ts"(){xl(),b3e=/\s+/g,Ihe=150,Lce=[],ACe=[],CCe=[],see={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),T3e={};Oe(T3e,{getNavigationBarItems:()=>f3e,getNavigationTree:()=>q3});var k$e=G({"src/services/_namespaces/ts.NavigationBar.ts"(){dlt()}});function wk(e,n){cee.set(e,n)}function P$e(e,n){return oc(Ky(cee.values(),i=>{var c;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((c=i.kinds)!=null&&c.some(u=>RP(u,e.kind)))?void 0:i.getAvailableActions(e,n)}))}function plt(e,n,i,c){const u=cee.get(n);return u&&u.getEditsForAction(e,i,c)}var cee,Oce=G({"src/services/refactorProvider.ts"(){xl(),EI(),cee=new Map}});function Fce(e,n=!0){const{file:i,program:c}=e,u=NF(e),d=Lf(i,u.start),h=d.parent&&ZC(d.parent)&32&&n?d.parent:nq(d,i,u);if(!h||!Nu(h.parent)&&!(kh(h.parent)&&dh(h.parent.parent)))return{error:fs(N.Could_not_find_export_statement)};const S=c.getTypeChecker(),E=M$e(h.parent,S),P=ZC(h)||(py(h)&&!h.isExportEquals?2080:0),k=!!(P&2048);if(!(P&32)||!k&&E.exports.has("default"))return{error:fs(N.This_file_already_has_a_default_export)};const F=$=>xn($)&&S.getSymbolAtLocation($)?void 0:{error:fs(N.Can_only_convert_named_export)};switch(h.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const $=h;return $.name?F($.name)||{exportNode:$,exportName:$.name,wasDefault:k,exportingModuleSymbol:E}:void 0}case 243:{const $=h;if(!($.declarationList.flags&2)||$.declarationList.declarations.length!==1)return;const J=Dl($.declarationList.declarations);return J.initializer?(re.assert(!k,"Can't have a default flag here"),F(J.name)||{exportNode:$,exportName:J.name,wasDefault:k,exportingModuleSymbol:E}):void 0}case 277:{const $=h;return $.isExportEquals?void 0:F($.expression)||{exportNode:$,exportName:$.expression,wasDefault:k,exportingModuleSymbol:E}}default:return}}function mlt(e,n,i,c,u){N$e(e,i,c,n.getTypeChecker()),w$e(n,i,c,u)}function N$e(e,{wasDefault:n,exportNode:i,exportName:c},u,d){if(n)if(py(i)&&!i.isExportEquals){const h=i.expression,S=R$e(h.text,h.text);u.replaceNode(e,i,he.createExportDeclaration(void 0,!1,he.createNamedExports([S])))}else u.delete(e,re.checkDefined(QW(i,90),"Should find a default keyword in modifier list"));else{const h=re.checkDefined(QW(i,95),"Should find an export keyword in modifier list");switch(i.kind){case 262:case 263:case 264:u.insertNodeAfter(e,h,he.createToken(90));break;case 243:const S=Dl(i.declarationList.declarations);if(!Wf.Core.isSymbolReferencedInFile(c,d,e)&&!S.type){u.replaceNode(e,i,he.createExportDefault(re.checkDefined(S.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:u.deleteModifier(e,h),u.insertNodeAfter(e,i,he.createExportDefault(he.createIdentifier(c.text)));break;default:re.fail(`Unexpected exportNode kind ${i.kind}`)}}}function w$e(e,{wasDefault:n,exportName:i,exportingModuleSymbol:c},u,d){const h=e.getTypeChecker(),S=re.checkDefined(h.getSymbolAtLocation(i),"Export name should resolve to a symbol");Wf.Core.eachExportReference(e.getSourceFiles(),h,d,S,c,i.text,n,E=>{if(i===E)return;const P=E.getSourceFile();n?glt(P,E,u,i.text):hlt(P,E,u)})}function glt(e,n,i,c){const{parent:u}=n;switch(u.kind){case 211:i.replaceNode(e,n,he.createIdentifier(c));break;case 276:case 281:{const h=u;i.replaceNode(e,h,DCe(c,h.name.text));break}case 273:{const h=u;re.assert(h.name===n,"Import clause name should match provided ref");const S=DCe(c,n.text),{namedBindings:E}=h;if(!E)i.replaceNode(e,n,he.createNamedImports([S]));else if(E.kind===274){i.deleteRange(e,{pos:n.getStart(e),end:E.getStart(e)});const P=Sd(h.parent.moduleSpecifier)?YW(h.parent.moduleSpecifier,e):1,k=Nk(void 0,[DCe(c,n.text)],h.parent.moduleSpecifier,P);i.insertNodeAfter(e,h.parent,k)}else i.delete(e,n),i.insertNodeAtEndOfList(e,E.elements,S);break}case 205:const d=u;i.replaceNode(e,u,he.createImportTypeNode(d.argument,d.attributes,he.createIdentifier(c),d.typeArguments,d.isTypeOf));break;default:re.failBadSyntaxKind(u)}}function hlt(e,n,i){const c=n.parent;switch(c.kind){case 211:i.replaceNode(e,n,he.createIdentifier("default"));break;case 276:{const u=he.createIdentifier(c.name.text);c.parent.elements.length===1?i.replaceNode(e,c.parent,u):(i.delete(e,c),i.insertNodeBefore(e,c.parent,u));break}case 281:{i.replaceNode(e,c,R$e("default",c.name.text));break}default:re.assertNever(c,`Unexpected parent kind ${c.kind}`)}}function DCe(e,n){return he.createImportSpecifier(!1,e===n?void 0:he.createIdentifier(e),he.createIdentifier(n))}function R$e(e,n){return he.createExportSpecifier(!1,e===n?void 0:he.createIdentifier(e),he.createIdentifier(n))}function M$e(e,n){if(Nu(e))return e.symbol;const i=e.parent.symbol;return i.valueDeclaration&&Ov(i.valueDeclaration)?n.getMergedSymbol(i):i}var ICe,lee,pq,khe=G({"src/services/refactors/convertExport.ts"(){xl(),EI(),ICe="Convert export",lee={name:"Convert default export to named export",description:fs(N.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},pq={name:"Convert named export to default export",description:fs(N.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},wk(ICe,{kinds:[lee.kind,pq.kind],getAvailableActions:function(n){const i=Fce(n,n.triggerReason==="invoked");if(!i)return Yn;if(!BR(i)){const c=i.wasDefault?lee:pq;return[{name:ICe,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:ICe,description:fs(N.Convert_default_export_to_named_export),actions:[{...lee,notApplicableReason:i.error},{...pq,notApplicableReason:i.error}]}]:Yn},getEditsForAction:function(n,i){re.assert(i===lee.name||i===pq.name,"Unexpected action name");const c=Fce(n);return re.assert(c&&!BR(c),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(n,d=>mlt(n.file,n.program,c,d,n.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function L$e(e,n=!0){const{file:i}=e,c=NF(e),u=Lf(i,c.start),d=n?Ua(u,n0):nq(u,i,c);if(!d||!n0(d))return{error:"Selection is not an import declaration."};const h=c.start+c.length,S=N6(d,d.parent,i);if(S&&h>S.getStart())return;const{importClause:E}=d;return E?E.namedBindings?E.namedBindings.kind===274?{convertTo:0,import:E.namedBindings}:S3e(e.program,E)?{convertTo:1,import:E.namedBindings}:{convertTo:2,import:E.namedBindings}:{error:fs(N.Could_not_find_namespace_import_or_named_imports)}:{error:fs(N.Could_not_find_import_clause)}}function S3e(e,n){return VN(e.getCompilerOptions())&&vlt(n.parent.moduleSpecifier,e.getTypeChecker())}function E3e(e,n,i,c){const u=n.getTypeChecker();c.convertTo===0?RF(e,u,i,c.import,VN(n.getCompilerOptions())):F$e(e,n,i,c.import,c.convertTo===1)}function RF(e,n,i,c,u){let d=!1;const h=[],S=new Map;Wf.Core.eachSymbolReferenceInFile(c.name,n,e,F=>{if(!KX(F.parent))d=!0;else{const $=O$e(F.parent).text;n.resolveName($,F,67108863,!0)&&S.set($,!0),re.assert(ylt(F.parent)===F,"Parent expression should match id"),h.push(F.parent)}});const E=new Map;for(const F of h){const $=O$e(F).text;let J=E.get($);J===void 0&&E.set($,J=S.has($)?v4($,e):$),i.replaceNode(e,F,he.createIdentifier(J))}const P=[];E.forEach((F,$)=>{P.push(he.createImportSpecifier(!1,F===$?void 0:he.createIdentifier($),he.createIdentifier(F)))});const k=c.parent.parent;d&&!u?i.insertNodeAfter(e,k,x3e(k,void 0,P)):i.replaceNode(e,k,x3e(k,d?he.createIdentifier(c.name.text):void 0,P))}function O$e(e){return Ac(e)?e.name:e.right}function ylt(e){return Ac(e)?e.expression:e.left}function F$e(e,n,i,c,u=S3e(n,c.parent)){const d=n.getTypeChecker(),h=c.parent.parent,{moduleSpecifier:S}=h,E=new Set;c.elements.forEach(X=>{const ie=d.getSymbolAtLocation(X.name);ie&&E.add(ie)});const P=S&&Sd(S)?fT.moduleSpecifierToValidIdentifier(S.text,99):"module";function k(X){return!!Wf.Core.eachSymbolReferenceInFile(X.name,d,e,ie=>{const ae=d.resolveName(P,ie,67108863,!0);return ae?E.has(ae)?my(ie.parent):!0:!1})}const $=c.elements.some(k)?v4(P,e):P,J=new Set;for(const X of c.elements){const ie=(X.propertyName||X.name).text;Wf.Core.eachSymbolReferenceInFile(X.name,d,e,ae=>{const ve=he.createPropertyAccessExpression(he.createIdentifier($),ie);XE(ae.parent)?i.replaceNode(e,ae.parent,he.createPropertyAssignment(ae.text,ve)):my(ae.parent)?J.add(X):i.replaceNode(e,ae,ve)})}if(i.replaceNode(e,c,u?he.createIdentifier($):he.createNamespaceImport(he.createIdentifier($))),J.size){const X=oc(J.values(),ie=>he.createImportSpecifier(ie.isTypeOnly,ie.propertyName&&he.createIdentifier(ie.propertyName.text),he.createIdentifier(ie.name.text)));i.insertNodeAfter(e,c.parent.parent,x3e(h,void 0,X))}}function vlt(e,n){const i=n.resolveExternalModuleName(e);if(!i)return!1;const c=n.resolveExternalModuleSymbol(i);return i!==c}function x3e(e,n,i){return he.createImportDeclaration(void 0,he.createImportClause(!1,n,i&&i.length?he.createNamedImports(i):void 0),e.moduleSpecifier,void 0)}var uee,Gj,Phe=G({"src/services/refactors/convertImport.ts"(){xl(),EI(),uee="Convert import",Gj={0:{name:"Convert namespace import to named imports",description:fs(N.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:fs(N.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:fs(N.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},wk(uee,{kinds:ik(Gj).map(e=>e.kind),getAvailableActions:function(n){const i=L$e(n,n.triggerReason==="invoked");if(!i)return Yn;if(!BR(i)){const c=Gj[i.convertTo];return[{name:uee,description:c.description,actions:[c]}]}return n.preferences.provideRefactorNotApplicableReason?ik(Gj).map(c=>({name:uee,description:c.description,actions:[{...c,notApplicableReason:i.error}]})):Yn},getEditsForAction:function(n,i){re.assert(gt(ik(Gj),d=>d.name===i),"Unexpected action name");const c=L$e(n);return re.assert(c&&!BR(c),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(n,d=>E3e(n.file,n.program,d,c)),renameFilename:void 0,renameLocation:void 0}}})}});function Wce(e,n=!0){const{file:i,startPosition:c}=e,u=Gy(i),d=Lf(i,c),h=MZ(NF(e)),S=h.pos===h.end&&n,E=Fge(d,i,h.pos,h.end),P=Ua(d,ve=>ve.parent&&pc(ve)&&!I2(h,ve.parent,i)&&(S||E));if(!P||!pc(P))return{error:fs(N.Selection_is_not_a_valid_type_node)};const k=e.program.getTypeChecker(),F=Tlt(P,u);if(F===void 0)return{error:fs(N.No_type_could_be_extracted_from_this_type_node)};const $=Bce(P,F);if(!pc($))return{error:fs(N.Selection_is_not_a_valid_type_node)};const J=[];(fI($.parent)||xR($.parent))&&h.end>P.end&&Oi(J,$.parent.types.filter(ve=>Fge(ve,i,h.pos,h.end)));const X=J.length>1?J:$,ie=Y3(k,X,F,i);if(!ie)return{error:fs(N.No_type_could_be_extracted_from_this_type_node)};const ae=kCe(k,X);return{isJS:u,selection:X,enclosingNode:F,typeParameters:ie,typeElements:ae}}function kCe(e,n){if(n){if(ls(n)){const i=[];for(const c of n){const u=kCe(e,c);if(!u)return;Oi(i,u)}return i}if(xR(n)){const i=[],c=new Map;for(const u of n.types){const d=kCe(e,u);if(!d||!d.every(h=>h.name&&y0(c,tq(h.name))))return;Oi(i,d)}return i}else{if(XN(n))return kCe(e,n.type);if(rS(n))return n.members}}}function I2(e,n,i){return xj(e,Ff(i.text,n.pos),n.end)}function Y3(e,n,i,c){const u=[],d=BC(n),h={pos:d[0].pos,end:d[d.length-1].end};for(const E of d)if(S(E))return;return u;function S(E){if(uE(E)){if(xn(E.typeName)){const P=E.typeName,k=e.resolveName(P.text,P,262144,!0);for(const F of(k==null?void 0:k.declarations)||Yn)if(Np(F)&&F.getSourceFile()===c){if(F.name.escapedText===P.escapedText&&I2(F,h,c))return!0;if(I2(i,F,c)&&!I2(h,F,c)){Dy(u,F);break}}}}else if(KN(E)){const P=Ua(E,k=>Q7(k)&&I2(k.extendsType,E,c));if(!P||!I2(h,P,c))return!0}else if(mW(E)||yW(E)){const P=Ua(E.parent,F_);if(P&&P.type&&I2(P.type,E,c)&&!I2(h,P,c))return!0}else if(m6(E)){if(xn(E.exprName)){const P=e.resolveName(E.exprName.text,E.exprName,111551,!1);if(P!=null&&P.valueDeclaration&&I2(i,P.valueDeclaration,c)&&!I2(h,P.valueDeclaration,c))return!0}else if(E2(E.exprName.left)&&!I2(h,E.parent,c))return!0}return c&&gW(E)&&xm(c,E.pos).line===xm(c,E.end).line&&_s(E,1),s_(E,S)}}function blt(e,n,i,c){const{enclosingNode:u,typeParameters:d}=c,{firstTypeNode:h,lastTypeNode:S,newTypeNode:E}=PCe(c),P=he.createTypeAliasDeclaration(void 0,i,d.map(k=>he.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),E);e.insertNodeBefore(n,u,qN(P),!0),e.replaceNodeRange(n,h,S,he.createTypeReferenceNode(i,d.map(k=>he.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.ExcludeWhitespace})}function W$e(e,n,i,c){var u;const{enclosingNode:d,typeParameters:h,typeElements:S}=c,E=he.createInterfaceDeclaration(void 0,i,h,void 0,S);Tn(E,(u=S[0])==null?void 0:u.parent),e.insertNodeBefore(n,d,qN(E),!0);const{firstTypeNode:P,lastTypeNode:k}=PCe(c);e.replaceNodeRange(n,P,k,he.createTypeReferenceNode(i,h.map(F=>he.createTypeReferenceNode(F.name,void 0))),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.ExcludeWhitespace})}function B$e(e,n,i,c,u){var d;BC(u.selection).forEach(X=>{_s(X,7168)});const{enclosingNode:h,typeParameters:S}=u,{firstTypeNode:E,lastTypeNode:P,newTypeNode:k}=PCe(u),F=he.createJSDocTypedefTag(he.createIdentifier("typedef"),he.createJSDocTypeExpression(k),he.createIdentifier(c)),$=[];Ot(S,X=>{const ie=a9(X),ae=he.createTypeParameterDeclaration(void 0,X.name),ve=he.createJSDocTemplateTag(he.createIdentifier("template"),ie&&uc(ie,SW),[ae]);$.push(ve)});const J=he.createJSDocComment(void 0,he.createNodeArray(Hi($,[F])));if(uC(h)){const X=h.getStart(i),ie=R6(n.host,(d=n.formatContext)==null?void 0:d.options);e.insertNodeAt(i,h.getStart(i),J,{suffix:ie+ie+i.text.slice(Yge(i.text,X-1),X)})}else e.insertNodeBefore(i,h,J,!0);e.replaceNodeRange(i,E,P,he.createTypeReferenceNode(c,S.map(X=>he.createTypeReferenceNode(X.name,void 0))))}function PCe(e){return ls(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:fI(e.selection[0].parent)?he.createUnionTypeNode(e.selection):he.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function Tlt(e,n){return Ua(e,dl)||(n?Ua(e,uC):void 0)}function Bce(e,n){return Ua(e,i=>i===n?"quit":!!(fI(i.parent)||xR(i.parent)))??e}var fee,mq,Nhe,whe,Slt=G({"src/services/refactors/extractType.ts"(){xl(),EI(),fee="Extract type",mq={name:"Extract to type alias",description:fs(N.Extract_to_type_alias),kind:"refactor.extract.type"},Nhe={name:"Extract to interface",description:fs(N.Extract_to_interface),kind:"refactor.extract.interface"},whe={name:"Extract to typedef",description:fs(N.Extract_to_typedef),kind:"refactor.extract.typedef"},wk(fee,{kinds:[mq.kind,Nhe.kind,whe.kind],getAvailableActions:function(n){const i=Wce(n,n.triggerReason==="invoked");return i?BR(i)?n.preferences.provideRefactorNotApplicableReason?[{name:fee,description:fs(N.Extract_type),actions:[{...whe,notApplicableReason:i.error},{...mq,notApplicableReason:i.error},{...Nhe,notApplicableReason:i.error}]}]:Yn:[{name:fee,description:fs(N.Extract_type),actions:i.isJS?[whe]:ur([mq],i.typeElements&&Nhe)}]:Yn},getEditsForAction:function(n,i){const{file:c}=n,u=Wce(n);re.assert(u&&!BR(u),"Expected to find a range to extract");const d=v4("NewType",c),h=zs.ChangeTracker.with(n,P=>{switch(i){case mq.name:return re.assert(!u.isJS,"Invalid actionName/JS combo"),blt(P,c,d,u);case whe.name:return re.assert(u.isJS,"Invalid actionName/JS combo"),B$e(P,n,c,d,u);case Nhe.name:return re.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),W$e(P,c,d,u);default:re.fail("Unexpected action name")}}),S=c.fileName,E=jZ(h,S,d,!1);return{edits:h,renameFilename:S,renameLocation:E}}})}});function BR(e){return e.error!==void 0}function RP(e,n){return n?e.substr(0,n.length)===n:!0}var NCe=G({"src/services/refactors/helpers.ts"(){}});function Rhe(e,n,i,c){var u,d;const h=c.getTypeChecker(),S=cS(e,n),E=S.parent;if(xn(S)){if(J9(E)&&rC(E)&&xn(E.name)){if(((u=h.getMergedSymbol(E.symbol).declarations)==null?void 0:u.length)!==1)return{error:fs(N.Variables_with_multiple_declarations_cannot_be_inlined)};if(z$e(E))return;const P=A3e(E,h,e);return P&&{references:P,declaration:E,replacement:E.initializer}}if(i){let P=h.resolveName(S.text,S,111551,!1);if(P=P&&h.getMergedSymbol(P),((d=P==null?void 0:P.declarations)==null?void 0:d.length)!==1)return{error:fs(N.Variables_with_multiple_declarations_cannot_be_inlined)};const k=P.declarations[0];if(!J9(k)||!rC(k)||!xn(k.name)||z$e(k))return;const F=A3e(k,h,e);return F&&{references:F,declaration:k,replacement:k.initializer}}return{error:fs(N.Could_not_find_variable_to_inline)}}}function z$e(e){const n=uc(e.parent.parent,Xg);return gt(n.modifiers,_W)}function A3e(e,n,i){const c=[],u=Wf.Core.eachSymbolReferenceInFile(e.name,n,i,d=>{if(Wf.isWriteAccessForReference(d)||my(d.parent)||py(d.parent)||m6(d.parent)||P8(e,d.pos))return!0;c.push(d)});return c.length===0||u?void 0:c}function Elt(e,n){n=ih(n);const{parent:i}=e;return kr(i)&&(_G(n)<_G(i)||fce(i))||F_(n)&&(uR(i)||Ac(i))||Ac(i)&&(S1(n)||el(n))?he.createParenthesizedExpression(n):n}var _ee,wCe,zce,Mhe=G({"src/services/refactors/inlineVariable.ts"(){xl(),EI(),_ee="Inline variable",wCe=fs(N.Inline_variable),zce={name:_ee,description:wCe,kind:"refactor.inline.variable"},wk(_ee,{kinds:[zce.kind],getAvailableActions(e){const{file:n,program:i,preferences:c,startPosition:u,triggerReason:d}=e,h=Rhe(n,u,d==="invoked",i);return h?MF.isRefactorErrorInfo(h)?c.provideRefactorNotApplicableReason?[{name:_ee,description:wCe,actions:[{...zce,notApplicableReason:h.error}]}]:Yn:[{name:_ee,description:wCe,actions:[zce]}]:Yn},getEditsForAction(e,n){re.assert(n===_ee,"Unexpected refactor invoked");const{file:i,program:c,startPosition:u}=e,d=Rhe(i,u,!0,c);if(!d||MF.isRefactorErrorInfo(d))return;const{references:h,declaration:S,replacement:E}=d;return{edits:zs.ChangeTracker.with(e,k=>{for(const F of h)k.replaceNode(i,F,Elt(F,E));k.delete(i,S)})}}})}});function C3e(e,n,i,c,u,d,h){const S=n.getTypeChecker(),E=jj(e,i.all,S),P=O3e(e,n,h,u);c.createNewFile(e,P,D3e(e,E,c,i,n,u,P,d)),Lhe(n,c,e.fileName,P,QC(u))}function D3e(e,n,i,c,u,d,h,S){const E=u.getTypeChecker(),P=Qw(e.statements,$2);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0)return Hce(e,c.ranges,i),[...P,...c.all];const k=!BAe(h,u,d,!!e.commonJsModuleIndicator),F=OS(e,S),$=Fhe(e,n.oldFileImportsFromTargetFile,h,u,d,k,F);$&&zZ(i,e,$,!0,S),Ohe(e,c.all,i,n.unusedImportsFromOldFile,E),Hce(e,c.ranges,i),k3e(i,u,d,e,n.movedSymbols,h,F);const J=xlt(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,E,u,d,k,F),X=N3e(e,c.all,n.oldFileImportsFromTargetFile,k);return J.length&&X.length?[...P,...J,4,...X]:[...P,...J,...X]}function xlt(e,n,i,c,u,d,h,S,E){const P=[];for(const J of e.statements)pee(J,X=>{ur(P,Kce(X,Jce(X),ie=>n.has(u.getSymbolAtLocation(ie))))});let k;const F=[],$=U3();return i.forEach(J=>{if(J.declarations)for(const X of J.declarations){if(!Xce(X))continue;const ie=LCe(X);if(!ie)continue;const ae=Bhe(X);$(ae)&&mee(e,ae,ie,c,S),ul(X,2048)?k=ie:F.push(ie.text)}}),ur(P,fB(e,k,F,Jg(e.fileName),d,h,S,E)),P}var Gce,RCe,jce,Vce=G({"src/services/refactors/moveToNewFile.ts"(){xl(),EI(),Gce="Move to a new file",RCe=fs(N.Move_to_a_new_file),jce={name:Gce,description:RCe,kind:"refactor.move.newFile"},wk(Gce,{kinds:[jce.kind],getAvailableActions:function(n){const i=gee(n);return n.preferences.allowTextChangesInNewFiles&&i?[{name:Gce,description:RCe,actions:[jce]}]:n.preferences.provideRefactorNotApplicableReason?[{name:Gce,description:RCe,actions:[{...jce,notApplicableReason:fs(N.Selection_is_not_a_valid_statement_or_statements)}]}]:Yn},getEditsForAction:function(n,i){re.assert(i===Gce,"Wrong refactor invoked");const c=re.checkDefined(gee(n));return{edits:zs.ChangeTracker.with(n,d=>C3e(n.file,n.program,c,d,n.host,n.preferences,n)),renameFilename:void 0,renameLocation:void 0}}})}});function dee(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function I3e(e,n,i,c,u,d,h,S){const E=c.getTypeChecker();if(!h.fileExists(i))d.createNewFile(n,i,Uce(n,i,jj(n,u.all,E),d,u,c,h,S)),Lhe(c,d,n.fileName,i,QC(h));else{const P=re.checkDefined(c.getSourceFile(i)),k=fT.createImportAdder(P,e.program,e.preferences,e.host);Uce(n,P,jj(n,u.all,E,Nlt(P,E)),d,u,c,h,S,k)}}function Uce(e,n,i,c,u,d,h,S,E){const P=d.getTypeChecker(),k=Qw(e.statements,$2);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&i.oldImportsNeededByTargetFile.size===0&&i.targetFileImportsFromOldFile.size===0&&typeof n=="string")return Hce(e,u.ranges,c),[...k,...u.all];const F=typeof n=="string"?n:n.fileName,$=!BAe(F,d,h,!!e.commonJsModuleIndicator),J=OS(e,S),X=Fhe(e,i.oldFileImportsFromTargetFile,F,d,h,$,J);X&&zZ(c,e,X,!0,S),Ohe(e,u.all,c,i.unusedImportsFromOldFile,P),Hce(e,u.ranges,c),k3e(c,d,h,e,i.movedSymbols,F,J);const ie=G$e(e,F,i.oldImportsNeededByTargetFile,i.targetFileImportsFromOldFile,c,P,d,h,$,J,E),ae=N3e(e,u.all,i.oldFileImportsFromTargetFile,$);return typeof n!="string"&&(n.statements.length>0?Plt(c,d,ae,n,u):c.insertNodesAtEndOfFile(n,ae,!1),ie.length>0&&zZ(c,n,ie,!0,S)),E&&E.writeFixes(c,J),ie.length&&ae.length?[...k,...ie,4,...ae]:[...k,...ie,...ae]}function G$e(e,n,i,c,u,d,h,S,E,P,k){const F=[];if(k)i.forEach((ae,ve)=>{try{k.addImportFromExportedSymbol(dg(ve,d),ae)}catch{for(const we of e.statements)pee(we,Fe=>{ur(F,Kce(Fe,he.createStringLiteral(Jce(Fe).text),et=>i.has(d.getSymbolAtLocation(et))))})}});else{const ae=h.getSourceFile(n);for(const ve of e.statements)pee(ve,we=>{var Fe;const et=Jce(we),Pe=h.getResolvedModule(e,et.text,PA(e,et)),dt=(Fe=Pe==null?void 0:Pe.resolvedModule)==null?void 0:Fe.resolvedFileName;if(dt&&ae){const Ie=hae(h.getCompilerOptions(),ae,ae.path,dt,y4(h,S));ur(F,Kce(we,kj(Ie,P),ct=>i.has(d.getSymbolAtLocation(ct))))}else ur(F,Kce(we,he.createStringLiteral(Jce(we).text),Ie=>i.has(d.getSymbolAtLocation(Ie))))})}const $=h.getSourceFile(n);let J;const X=[],ie=U3();return c.forEach(ae=>{if(ae.declarations)for(const ve of ae.declarations){if(!Xce(ve))continue;const we=LCe(ve);if(!we)continue;const Fe=Bhe(ve);ie(Fe)&&mee(e,Fe,we,u,E),k&&d.isUnknownSymbol(ae)?k.addImportFromExportedSymbol(dg(ae,d)):ul(ve,2048)?J=we:X.push(we.text)}}),$?ur(F,fB($,J,X,e.fileName,h,S,E,P)):ur(F,fB(e,J,X,e.fileName,h,S,E,P))}function Lhe(e,n,i,c,u){const d=e.getCompilerOptions().configFile;if(!d)return;const h=hf(vl(i,"..",c)),S=wM(d.fileName,h,u),E=d.statements[0]&&to(d.statements[0].expression,el),P=E&&lr(E.properties,k=>tl(k)&&Sd(k.name)&&k.name.text==="files");P&&Ed(P.initializer)&&n.insertNodeInListAfter(d,yl(P.initializer.elements),he.createStringLiteral(S),P.initializer.elements)}function Hce(e,n,i){for(const{first:c,afterLast:u}of n)i.deleteNodeRangeExcludingEnd(e,c,u)}function Ohe(e,n,i,c,u){for(const d of e.statements)ni(n,d)||pee(d,h=>$ce(e,h,i,S=>c.has(u.getSymbolAtLocation(S))))}function k3e(e,n,i,c,u,d,h){const S=n.getTypeChecker();for(const E of n.getSourceFiles())if(E!==c)for(const P of E.statements)pee(P,k=>{if(S.getSymbolAtLocation(Jce(k))!==c.symbol)return;const F=ae=>{const ve=sa(ae.parent)?Pj(S,ae.parent):dg(S.getSymbolAtLocation(ae),S);return!!ve&&u.has(ve)};$ce(E,k,e,F);const $=PL(ws(c.path),d),J=hae(n.getCompilerOptions(),E,E.path,$,y4(n,i)),X=Kce(k,kj(J,h),F);X&&e.insertNodeAfter(E,P,X);const ie=Alt(k);ie&&j$e(e,E,S,u,J,ie,k,h)})}function Alt(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return to(e.name,xn);default:return re.assertNever(e,`Unexpected node kind ${e.kind}`)}}function j$e(e,n,i,c,u,d,h,S){const E=fT.moduleSpecifierToValidIdentifier(u,99);let P=!1;const k=[];if(Wf.Core.eachSymbolReferenceInFile(d,i,n,F=>{Ac(F.parent)&&(P=P||!!i.resolveName(E,F,67108863,!0),c.has(i.getSymbolAtLocation(F.parent.name))&&k.push(F))}),k.length){const F=P?v4(E,n):E;for(const $ of k)e.replaceNode(n,$,he.createIdentifier(F));e.insertNodeAfter(n,h,Clt(h,E,u,S))}}function Clt(e,n,i,c){const u=he.createIdentifier(n),d=kj(i,c);switch(e.kind){case 272:return he.createImportDeclaration(void 0,he.createImportClause(!1,void 0,he.createNamespaceImport(u)),d,void 0);case 271:return he.createImportEqualsDeclaration(void 0,!1,u,he.createExternalModuleReference(d));case 260:return he.createVariableDeclaration(u,void 0,void 0,P3e(d));default:return re.assertNever(e,`Unexpected node kind ${e.kind}`)}}function P3e(e){return he.createCallExpression(he.createIdentifier("require"),void 0,[e])}function Jce(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function pee(e,n){if(n0(e))Sd(e.moduleSpecifier)&&n(e);else if(Yb(e))KE(e.moduleReference)&&Cm(e.moduleReference.expression)&&n(e);else if(Xg(e))for(const i of e.declarationList.declarations)i.initializer&&y1(i.initializer,!0)&&n(i)}function Fhe(e,n,i,c,u,d,h){let S;const E=[];return n.forEach(P=>{P.escapedName==="default"?S=he.createIdentifier(IF(P)):E.push(P.name)}),fB(e,S,E,i,c,u,d,h)}function fB(e,n,i,c,u,d,h,S){const E=PL(ws(e.path),c),P=hae(u.getCompilerOptions(),e,e.path,E,y4(u,d));if(h){const k=i.map(F=>he.createImportSpecifier(!1,void 0,he.createIdentifier(F)));return rce(n,k,P,S)}else{re.assert(!n,"No default import should exist");const k=i.map(F=>he.createBindingElement(void 0,void 0,F));return k.length?V$e(he.createObjectBindingPattern(k),void 0,P3e(kj(P,S))):void 0}}function V$e(e,n,i,c=2){return he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(e,void 0,n,i)],c))}function N3e(e,n,i,c){return ea(n,u=>{if(U$e(u)&&!MCe(e,u,c)&&F3e(u,d=>{var h;return i.has(re.checkDefined((h=to(d,ck))==null?void 0:h.symbol))})){const d=qce(ih(u),c);if(d)return d}return ih(u)})}function MCe(e,n,i,c){var u;return i?!kb(n)&&ul(n,32)||!!(c&&e.symbol&&((u=e.symbol.exports)!=null&&u.has(c.escapedText))):!!e.symbol&&!!e.symbol.exports&&M3e(n).some(d=>e.symbol.exports.has(ey(d)))}function $ce(e,n,i,c){switch(n.kind){case 272:w3e(e,n,i,c);break;case 271:c(n.name)&&i.delete(e,n);break;case 260:R3e(e,n,i,c);break;default:re.assertNever(n,`Unexpected import decl kind ${n.kind}`)}}function w3e(e,n,i,c){if(!n.importClause)return;const{name:u,namedBindings:d}=n.importClause,h=!u||c(u),S=!d||(d.kind===274?c(d.name):d.elements.length!==0&&d.elements.every(E=>c(E.name)));if(h&&S)i.delete(e,n);else if(u&&h&&i.delete(e,u),d){if(S)i.replaceNode(e,n.importClause,he.updateImportClause(n.importClause,n.importClause.isTypeOnly,u,void 0));else if(d.kind===275)for(const E of d.elements)c(E.name)&&i.delete(e,E)}}function R3e(e,n,i,c){const{name:u}=n;switch(u.kind){case 80:c(u)&&(n.initializer&&y1(n.initializer,!0)?i.delete(e,Kp(n.parent)&&Nt(n.parent.declarations)===1?n.parent.parent:n):i.delete(e,u));break;case 207:break;case 206:if(u.elements.every(d=>xn(d.name)&&c(d.name)))i.delete(e,Kp(n.parent)&&n.parent.declarations.length===1?n.parent.parent:n);else for(const d of u.elements)xn(d.name)&&c(d.name)&&i.delete(e,d.name);break}}function U$e(e){return re.assert(Nu(e.parent),"Node parent should be a SourceFile"),zCe(e)||Xg(e)}function qce(e,n){return n?[Dlt(e)]:Ilt(e)}function Dlt(e){const n=DA(e)?Hi([he.createModifier(95)],Xv(e)):void 0;switch(e.kind){case 262:return he.updateFunctionDeclaration(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const i=S6(e)?OM(e):void 0;return he.updateClassDeclaration(e,Hi(i,n),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return he.updateVariableStatement(e,n,e.declarationList);case 267:return he.updateModuleDeclaration(e,n,e.name,e.body);case 266:return he.updateEnumDeclaration(e,n,e.name,e.members);case 265:return he.updateTypeAliasDeclaration(e,n,e.name,e.typeParameters,e.type);case 264:return he.updateInterfaceDeclaration(e,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return he.updateImportEqualsDeclaration(e,n,e.isTypeOnly,e.name,e.moduleReference);case 244:return re.fail();default:return re.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Ilt(e){return[e,...M3e(e).map(Whe)]}function Whe(e){return he.createExpressionStatement(he.createBinaryExpression(he.createPropertyAccessExpression(he.createIdentifier("exports"),he.createIdentifier(e)),64,he.createIdentifier(e)))}function M3e(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Qo(e.declarationList.declarations,n=>xn(n.name)?n.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Yn;case 244:return re.fail("Can't export an ExpressionStatement");default:return re.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function Kce(e,n,i){switch(e.kind){case 272:{const c=e.importClause;if(!c)return;const u=c.name&&i(c.name)?c.name:void 0,d=c.namedBindings&&H$e(c.namedBindings,i);return u||d?he.createImportDeclaration(void 0,he.createImportClause(c.isTypeOnly,u,d),ih(n),void 0):void 0}case 271:return i(e.name)?e:void 0;case 260:{const c=L3e(e.name,i);return c?V$e(c,e.type,P3e(n),e.parent.flags):void 0}default:return re.assertNever(e,`Unexpected import kind ${e.kind}`)}}function H$e(e,n){if(e.kind===274)return n(e.name)?e:void 0;{const i=e.elements.filter(c=>n(c.name));return i.length?he.createNamedImports(i):void 0}}function L3e(e,n){switch(e.kind){case 80:return n(e)?e:void 0;case 207:return e;case 206:{const i=e.elements.filter(c=>c.propertyName||!xn(c.name)||n(c.name));return i.length?he.createObjectBindingPattern(i):void 0}}}function LCe(e){return kb(e)?to(e.expression.left.name,xn):to(e.name,xn)}function Bhe(e){switch(e.kind){case 260:return e.parent.parent;case 208:return Bhe(uc(e.parent.parent,n=>Kc(n)||sa(n)));default:return e}}function mee(e,n,i,c,u){if(!MCe(e,n,u,i))if(u)kb(n)||c.insertExportModifier(e,n);else{const d=M3e(n);d.length!==0&&c.insertNodesAfter(e,n,d.map(Whe))}}function O3e(e,n,i,c){const u=n.getTypeChecker(),d=gee(i);let h;if(d){h=jj(e,d.all,u);const S=ws(e.fileName),E=SP(e.fileName);return vl(S,OCe(FCe(h.oldFileImportsFromTargetFile,h.movedSymbols),E,S,c))+E}return""}function J$e(e){const{file:n}=e,i=MZ(NF(e)),{statements:c}=n;let u=Ho(c,P=>P.end>i.pos);if(u===-1)return;const d=c[u],h=X$e(n,d);h&&(u=h.start);let S=Ho(c,P=>P.end>=i.end,u);S!==-1&&i.end<=c[S].getStart()&&S--;const E=X$e(n,c[S]);return E&&(S=E.end),{toMove:c.slice(u,S===-1?c.length:S+1),afterLast:S===-1?void 0:c[S+1]}}function gee(e){const n=J$e(e);if(n===void 0)return;const i=[],c=[],{toMove:u,afterLast:d}=n;return eu(u,klt,(h,S)=>{for(let E=h;E!!n.initializer&&y1(n.initializer,!0));default:return!1}}function jj(e,n,i,c=new Set){const u=new Set,d=new Map,h=new Set,S=lr(n,$=>!!($.transformFlags&2)),E=F(S);E&&d.set(E,!1);for(const $ of n)F3e($,J=>{u.add(re.checkDefined(kb(J)?i.getSymbolAtLocation(J.expression.left):J.symbol,"Need a symbol here"))});const P=new Set;for(const $ of n)q$e($,i,(J,X)=>{if(J.declarations){if(c.has(dg(J,i))){P.add(J);return}for(const ie of J.declarations)if(K$e(ie)){const ae=d.get(J);d.set(J,(ae===void 0||ae)&&X)}else Xce(ie)&&WCe(ie)===e&&!u.has(J)&&h.add(J)}});for(const $ of d.keys())P.add($);const k=new Set;for(const $ of e.statements)ni(n,$)||(E&&$.transformFlags&2&&P.delete(E),q$e($,i,J=>{u.has(J)&&k.add(J),P.delete(J)}));return{movedSymbols:u,targetFileImportsFromOldFile:h,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:d,unusedImportsFromOldFile:P};function F($){if($===void 0)return;const J=i.getJsxNamespace($),X=i.resolveName(J,$,1920,!0);return X&>(X.declarations,K$e)?X:void 0}}function OCe(e,n,i,c){let u=e;for(let d=1;;d++){const h=vl(i,u+n);if(!c.fileExists(h))return u;u=`${e}.${d}`}}function FCe(e,n){return gA(e,IF)||gA(n,IF)||"newFile"}function q$e(e,n,i){e.forEachChild(function c(u){if(xn(u)&&!ON(u)){const d=n.getSymbolAtLocation(u);d&&i(d,EA(u))}else u.forEachChild(c)})}function F3e(e,n){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return n(e);case 243:return Yr(e.declarationList.declarations,i=>BCe(i.name,n));case 244:{const{expression:i}=e;return Ds(i)&&jy(i)===1?n(e):void 0}}}function K$e(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return W3e(e);case 208:return Kc(e.parent.parent)&&W3e(e.parent.parent);default:return!1}}function W3e(e){return Nu(e.parent.parent.parent)&&!!e.initializer&&y1(e.initializer,!0)}function Xce(e){return zCe(e)&&Nu(e.parent)||Kc(e)&&Nu(e.parent.parent.parent)}function WCe(e){return Kc(e)?e.parent.parent.parent:e.parent}function BCe(e,n){switch(e.kind){case 80:return n(uc(e.parent,i=>Kc(i)||sa(i)));case 207:case 206:return Yr(e.elements,i=>cb(i)?void 0:BCe(i.name,n));default:return re.assertNever(e,`Unexpected name kind ${e.kind}`)}}function zCe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function Plt(e,n,i,c,u){var d;const h=new Set,S=(d=c.symbol)==null?void 0:d.exports;if(S){const P=n.getTypeChecker(),k=new Map;for(const F of u.all)U$e(F)&&ul(F,32)&&F3e(F,$=>{var J;const X=ck($)?(J=S.get($.symbol.escapedName))==null?void 0:J.declarations:void 0,ie=Yr(X,ae=>ry(ae)?ae:my(ae)?to(ae.parent.parent,ry):void 0);ie&&ie.moduleSpecifier&&k.set(ie,(k.get(ie)||new Set).add($))});for(const[F,$]of oc(k))if(F.exportClause&&j0(F.exportClause)&&Nt(F.exportClause.elements)){const J=F.exportClause.elements,X=gi(J,ie=>lr(dg(ie.symbol,P).declarations,ae=>Xce(ae)&&$.has(ae))===void 0);if(Nt(X)===0){e.deleteNode(c,F),h.add(F);continue}Nt(X)ry(P)&&!!P.moduleSpecifier&&!h.has(P));E?e.insertNodesBefore(c,E,i,!0):e.insertNodesAfter(c,c.statements[c.statements.length-1],i)}function X$e(e,n){if(Vd(n)){const i=n.symbol.declarations;if(i===void 0||Nt(i)<=1||!ni(i,n))return;const c=i[0],u=i[Nt(i)-1],d=Qo(i,E=>ts(E)===e&&dl(E)?E:void 0),h=Ho(e.statements,E=>E.end>=u.end),S=Ho(e.statements,E=>E.end>=c.end);return{toMove:d,start:S,end:h}}}function Nlt(e,n){const i=new Set;for(const c of e.imports){const u=XC(c);if(n0(u)&&u.importClause&&u.importClause.namedBindings&&Oy(u.importClause.namedBindings))for(const d of u.importClause.namedBindings.elements){const h=n.getSymbolAtLocation(d.propertyName||d.name);h&&i.add(dg(h,n))}if(v1(u.parent)&&Ch(u.parent.name))for(const d of u.parent.name.elements){const h=n.getSymbolAtLocation(d.propertyName||d.name);h&&i.add(dg(h,n))}}return i}var Yce,hee,Qce,zhe=G({"src/services/refactors/moveToFile.ts"(){Bp(),xl(),Oce(),Yce="Move to file",hee=fs(N.Move_to_file),Qce={name:"Move to file",description:hee,kind:"refactor.move.file"},wk(Yce,{kinds:[Qce.kind],getAvailableActions:function(n,i){const c=gee(n);return i?n.preferences.allowTextChangesInNewFiles&&c?[{name:Yce,description:hee,actions:[Qce]}]:n.preferences.provideRefactorNotApplicableReason?[{name:Yce,description:hee,actions:[{...Qce,notApplicableReason:fs(N.Selection_is_not_a_valid_statement_or_statements)}]}]:Yn:Yn},getEditsForAction:function(n,i,c){re.assert(i===Yce,"Wrong refactor invoked");const u=re.checkDefined(gee(n)),{host:d,program:h}=n;re.assert(c,"No interactive refactor arguments available");const S=c.targetFile;return eD(S)||vR(S)?d.fileExists(S)&&h.getSourceFile(S)===void 0?dee(fs(N.Cannot_move_statements_to_the_selected_file)):{edits:zs.ChangeTracker.with(n,P=>I3e(n,n.file,c.targetFile,n.program,u,P,n.host,n.preferences)),renameFilename:void 0,renameLocation:void 0}:dee(fs(N.Cannot_move_to_file_selected_file_is_invalid))}})}});function Zce(e){const{file:n,startPosition:i,program:c}=e;return Q$e(n,i,c)?[{name:GCe,description:B3e,actions:[jCe]}]:Yn}function wlt(e){const{file:n,startPosition:i,program:c}=e,u=Q$e(n,i,c);if(!u)return;const d=c.getTypeChecker(),h=u[u.length-1];let S=h;switch(h.kind){case 173:{S=he.updateMethodSignature(h,h.modifiers,h.name,h.questionToken,h.typeParameters,P(u),h.type);break}case 174:{S=he.updateMethodDeclaration(h,h.modifiers,h.asteriskToken,h.name,h.questionToken,h.typeParameters,P(u),h.type,h.body);break}case 179:{S=he.updateCallSignature(h,h.typeParameters,P(u),h.type);break}case 176:{S=he.updateConstructorDeclaration(h,h.modifiers,P(u),h.body);break}case 180:{S=he.updateConstructSignature(h,h.typeParameters,P(u),h.type);break}case 262:{S=he.updateFunctionDeclaration(h,h.modifiers,h.asteriskToken,h.name,h.typeParameters,P(u),h.type,h.body);break}default:return re.failBadSyntaxKind(h,"Unhandled signature kind in overload list conversion refactoring")}if(S===h)return;return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,$=>{$.replaceNodeRange(n,u[0],u[u.length-1],S)})};function P($){const J=$[$.length-1];return Vd(J)&&J.body&&($=$.slice(0,$.length-1)),he.createNodeArray([he.createParameterDeclaration(void 0,he.createToken(26),"args",void 0,he.createUnionTypeNode(Vn($,k)))])}function k($){const J=Vn($.parameters,F);return _s(he.createTupleTypeNode(J),gt(J,X=>!!Nt(y3(X)))?0:1)}function F($){re.assert(xn($.name));const J=Tn(he.createNamedTupleMember($.dotDotDotToken,$.name,$.questionToken,$.type||he.createKeywordTypeNode(133)),$),X=$.symbol&&$.symbol.getDocumentationComment(d);if(X){const ie=ule(X);ie.length&&uI(J,[{text:`* ${ie.split(` `).map(ae=>` * ${ae}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return J}}function Y$e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Q$e(e,n,i){const c=Lf(e,n),u=Ua(c,Y$e);if(!u||Vd(u)&&u.body&&CZ(u.body,n))return;const d=i.getTypeChecker(),h=u.symbol;if(!h)return;const S=h.declarations;if(Nt(S)<=1||!jr(S,$=>ts($)===e)||!Y$e(S[0]))return;const E=S[0].kind;if(!jr(S,$=>$.kind===E))return;const P=S;if(gt(P,$=>!!$.typeParameters||gt($.parameters,J=>!!J.modifiers||!xn(J.name))))return;const k=Qo(P,$=>d.getSignatureFromDeclaration($));if(Nt(k)!==Nt(S))return;const F=d.getReturnTypeOfSignature(k[0]);if(jr(k,$=>d.getReturnTypeOfSignature($)===F))return P}var GCe,B3e,jCe,Z$e=G({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){xl(),EI(),GCe="Convert overload list to single signature",B3e=fs(N.Convert_overload_list_to_single_signature),jCe={name:GCe,description:B3e,kind:"refactor.rewrite.function.overloadList"},wk(GCe,{kinds:[jCe.kind],getEditsForAction:wlt,getAvailableActions:Zce})}});function Rlt(e){const{file:n,startPosition:i,triggerReason:c}=e,u=z3e(n,i,c==="invoked");return u?BR(u)?e.preferences.provideRefactorNotApplicableReason?[{name:VCe,description:G3e,actions:[{...Ghe,notApplicableReason:u.error},{...ele,notApplicableReason:u.error}]}]:Yn:[{name:VCe,description:G3e,actions:[u.addBraces?Ghe:ele]}]:Yn}function Mlt(e,n){const{file:i,startPosition:c}=e,u=z3e(i,c);re.assert(u&&!BR(u),"Expected applicable refactor info");const{expression:d,returnStatement:h,func:S}=u;let E;if(n===Ghe.name){const k=he.createReturnStatement(d);E=he.createBlock([k],!0),rB(d,k,i,3,!0)}else if(n===ele.name&&h){const k=d||he.createVoidZero();E=fce(k)?he.createParenthesizedExpression(k):k,PF(h,E,i,3,!1),rB(h,E,i,3,!1),Mj(h,E,i,3,!1)}else re.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,k=>{k.replaceNode(i,S.body,E)})}}function z3e(e,n,i=!0,c){const u=Lf(e,n),d=zE(u);if(!d)return{error:fs(N.Could_not_find_a_containing_arrow_function)};if(!$m(d))return{error:fs(N.Containing_function_is_not_an_arrow_function)};if(!(!ov(d,u)||ov(d.body,u)&&!i)){if(RP(Ghe.kind,c)&&kr(d.body))return{func:d,addBraces:!0,expression:d.body};if(RP(ele.kind,c)&&Ou(d.body)&&d.body.statements.length===1){const h=Dl(d.body.statements);if(iS(h)){const S=h.expression&&el(KL(h.expression,!1))?he.createParenthesizedExpression(h.expression):h.expression;return{func:d,addBraces:!1,expression:S,returnStatement:h}}}}}var VCe,G3e,Ghe,ele,Llt=G({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){xl(),EI(),VCe="Add or remove braces in an arrow function",G3e=fs(N.Add_or_remove_braces_in_an_arrow_function),Ghe={name:"Add braces to arrow function",description:fs(N.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},ele={name:"Remove braces from arrow function",description:fs(N.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},wk(VCe,{kinds:[ele.kind],getEditsForAction:Mlt,getAvailableActions:Rlt})}}),eqe={},j3e=G({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){Z$e(),Llt()}});function tqe(e){const{file:n,startPosition:i,program:c,kind:u}=e,d=vee(n,i,c);if(!d)return Yn;const{selectedVariableDeclaration:h,func:S}=d,E=[],P=[];if(RP(rle.kind,u)){const k=h||$m(S)&&Kc(S.parent)?void 0:fs(N.Could_not_convert_to_named_function);k?P.push({...rle,notApplicableReason:k}):E.push(rle)}if(RP(nle.kind,u)){const k=!h&&$m(S)?void 0:fs(N.Could_not_convert_to_anonymous_function);k?P.push({...nle,notApplicableReason:k}):E.push(nle)}if(RP(bee.kind,u)){const k=Jm(S)?void 0:fs(N.Could_not_convert_to_arrow_function);k?P.push({...bee,notApplicableReason:k}):E.push(bee)}return[{name:jhe,description:H3e,actions:E.length===0&&e.preferences.provideRefactorNotApplicableReason?P:E}]}function tle(e,n){const{file:i,startPosition:c,program:u}=e,d=vee(i,c,u);if(!d)return;const{func:h}=d,S=[];switch(n){case nle.name:S.push(...Blt(e,h));break;case rle.name:const E=Wlt(h);if(!E)return;S.push(...zlt(e,h,E));break;case bee.name:if(!Jm(h))return;S.push(...Glt(e,h));break;default:return re.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:S}}function yee(e){let n=!1;return e.forEachChild(function i(c){if(AF(c)){n=!0;return}!Fl(c)&&!mg(c)&&!Jm(c)&&s_(c,i)}),n}function vee(e,n,i){const c=Lf(e,n),u=i.getTypeChecker(),d=Flt(e,u,c.parent);if(d&&!yee(d.body)&&!u.containsArgumentsReference(d))return{selectedVariableDeclaration:!0,func:d};const h=zE(c);if(h&&(Jm(h)||$m(h))&&!ov(h.body,c)&&!yee(h.body)&&!u.containsArgumentsReference(h))return Jm(h)&&U3e(e,u,h)?void 0:{selectedVariableDeclaration:!1,func:h}}function Olt(e){return Kc(e)||Kp(e)&&e.declarations.length===1}function Flt(e,n,i){if(!Olt(i))return;const u=(Kc(i)?i:Dl(i.declarations)).initializer;if(u&&($m(u)||Jm(u)&&!U3e(e,n,u)))return u}function nqe(e){if(kr(e)){const n=he.createReturnStatement(e),i=e.getSourceFile();return Tn(n,e),zT(n),PF(e,n,i,void 0,!0),he.createBlock([n],!0)}else return e}function Wlt(e){const n=e.parent;if(!Kc(n)||!rC(n))return;const i=n.parent,c=i.parent;if(!(!Kp(i)||!Xg(c)||!xn(n.name)))return{variableDeclaration:n,variableDeclarationList:i,statement:c,name:n.name}}function Blt(e,n){const{file:i}=e,c=nqe(n.body),u=he.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,c);return zs.ChangeTracker.with(e,d=>d.replaceNode(i,n,u))}function zlt(e,n,i){const{file:c}=e,u=nqe(n.body),{variableDeclaration:d,variableDeclarationList:h,statement:S,name:E}=i;oq(S);const P=Eb(d)&32|Cb(n),k=he.createModifiersFromModifierFlags(P),F=he.createFunctionDeclaration(Nt(k)?k:void 0,n.asteriskToken,E,n.typeParameters,n.parameters,n.type,u);return h.declarations.length===1?zs.ChangeTracker.with(e,$=>$.replaceNode(c,S,F)):zs.ChangeTracker.with(e,$=>{$.delete(c,d),$.insertNodeAfter(c,S,F)})}function Glt(e,n){const{file:i}=e,u=n.body.statements[0];let d;V3e(n.body,u)?(d=u.expression,zT(d),nB(u,d)):d=n.body;const h=he.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,he.createToken(39),d);return zs.ChangeTracker.with(e,S=>S.replaceNode(i,n,h))}function V3e(e,n){return e.statements.length===1&&iS(n)&&!!n.expression}function U3e(e,n,i){return!!i.name&&Wf.Core.isSymbolReferencedInFile(i.name,n,e)}var jhe,H3e,nle,rle,bee,jlt=G({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){xl(),EI(),jhe="Convert arrow function or function expression",H3e=fs(N.Convert_arrow_function_or_function_expression),nle={name:"Convert to anonymous function",description:fs(N.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},rle={name:"Convert to named function",description:fs(N.Convert_to_named_function),kind:"refactor.rewrite.function.named"},bee={name:"Convert to arrow function",description:fs(N.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},wk(jhe,{kinds:[nle.kind,rle.kind,bee.kind],getEditsForAction:tle,getAvailableActions:tqe})}}),Vlt={},Ult=G({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){jlt()}});function Vhe(e){const{file:n,startPosition:i}=e;return Gy(n)||!q3e(n,i,e.program.getTypeChecker())?Yn:[{name:Uhe,description:qCe,actions:[nOe]}]}function rqe(e,n){re.assert(n===Uhe,"Unexpected action name");const{file:i,startPosition:c,program:u,cancellationToken:d,host:h}=e,S=q3e(i,c,u.getTypeChecker());if(!S||!d)return;const E=Jlt(S,u,d);return E.valid?{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,k=>Hlt(i,u,h,k,S,E))}:{edits:[]}}function Hlt(e,n,i,c,u,d){const h=d.signature,S=Vn(sqe(u,n,i),k=>ih(k));if(h){const k=Vn(sqe(h,n,i),F=>ih(F));P(h,k)}P(u,S);const E=OD(d.functionCalls,(k,F)=>pf(k.pos,F.pos));for(const k of E)if(k.arguments&&k.arguments.length){const F=ih(Qlt(u,k.arguments),!0);c.replaceNodeRange(ts(k),Dl(k.arguments),yl(k.arguments),F,{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Include})}function P(k,F){c.replaceNodeRangeWithNodes(e,Dl(k.parameters),yl(k.parameters),F,{joiner:", ",indentation:0,leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Include})}}function Jlt(e,n,i){const c=eOe(e),u=Lh(e)?Z3e(e):[],d=th([...c,...u],_1),h=n.getTypeChecker(),S=ea(d,F=>Wf.getReferenceEntriesForNode(-1,F,n,n.getSourceFiles(),i)),E=P(S);return jr(E.declarations,F=>ni(d,F))||(E.valid=!1),E;function P(F){const $={accessExpressions:[],typeUsages:[]},J={functionCalls:[],declarations:[],classReferences:$,valid:!0},X=Vn(c,k),ie=Vn(u,k),ae=Lh(e),ve=Vn(c,we=>UCe(we,h));for(const we of F){if(we.kind===Wf.EntryKind.Span){J.valid=!1;continue}if(ni(ve,k(we.node))){if(Klt(we.node.parent)){J.signature=we.node.parent;continue}const et=$3e(we);if(et){J.functionCalls.push(et);continue}}const Fe=UCe(we.node,h);if(Fe&&ni(ve,Fe)){const et=J3e(we);if(et){J.declarations.push(et);continue}}if(ni(X,k(we.node))||V$(we.node)){if(HCe(we))continue;const Pe=J3e(we);if(Pe){J.declarations.push(Pe);continue}const dt=$3e(we);if(dt){J.functionCalls.push(dt);continue}}if(ae&&ni(ie,k(we.node))){if(HCe(we))continue;const Pe=J3e(we);if(Pe){J.declarations.push(Pe);continue}const dt=$lt(we);if(dt){$.accessExpressions.push(dt);continue}if(Ih(e.parent)){const Ie=qlt(we);if(Ie){$.typeUsages.push(Ie);continue}}}J.valid=!1}return J}function k(F){const $=h.getSymbolAtLocation(F);return $&&e2($,h)}}function UCe(e,n){const i=Aee(e);if(i){const c=n.getContextualTypeForObjectLiteralElement(i),u=c==null?void 0:c.getSymbol();if(u&&!(I_(u)&6))return u}}function HCe(e){const n=e.node;if(qE(n.parent)||Tk(n.parent)||Yb(n.parent)||mh(n.parent)||gy(n.parent)||my(n.parent))return n}function J3e(e){if(PT(e.node.parent))return e.node}function $3e(e){if(e.node.parent){const n=e.node,i=n.parent;switch(i.kind){case 213:case 214:const c=to(i,sk);if(c&&c.expression===n)return c;break;case 211:const u=to(i,Ac);if(u&&u.parent&&u.name===n){const h=to(u.parent,sk);if(h&&h.expression===u)return h}break;case 212:const d=to(i,Hm);if(d&&d.parent&&d.argumentExpression===n){const h=to(d.parent,sk);if(h&&h.expression===d)return h}break}}}function $lt(e){if(e.node.parent){const n=e.node,i=n.parent;switch(i.kind){case 211:const c=to(i,Ac);if(c&&c.expression===n)return c;break;case 212:const u=to(i,Hm);if(u&&u.expression===n)return u;break}}}function qlt(e){const n=e.node;if(xF(n)===2||Gie(n.parent))return n}function q3e(e,n,i){const c=MR(e,n),u=oSe(c);if(!JCe(c)&&u&&Xlt(u,i)&&ov(u,c)&&!(u.body&&ov(u.body,c)))return u}function JCe(e){const n=Ua(e,$z);if(n){const i=Ua(n,c=>!$z(c));return!!i&&Vd(i)}return!1}function Klt(e){return pg(e)&&(xp(e.parent)||rS(e.parent))}function Xlt(e,n){var i;if(!X3e(e.parameters,n))return!1;switch(e.kind){case 262:return K3e(e)&&Uj(e,n);case 174:if(el(e.parent)){const c=UCe(e.name,n);return((i=c==null?void 0:c.declarations)==null?void 0:i.length)===1&&Uj(e,n)}return Uj(e,n);case 176:return Ih(e.parent)?K3e(e.parent)&&Uj(e,n):iqe(e.parent.parent)&&Uj(e,n);case 218:case 219:return iqe(e.parent)}return!1}function Uj(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function K3e(e){return e.name?!0:!!QW(e,90)}function X3e(e,n){return Ylt(e)>=tOe&&jr(e,i=>Y3e(i,n))}function Y3e(e,n){if(sp(e)){const i=n.getTypeAtLocation(e);if(!n.isArrayType(i)&&!n.isTupleType(i))return!1}return!e.modifiers&&xn(e.name)}function iqe(e){return Kc(e)&&rH(e)&&xn(e.name)&&!e.type}function Q3e(e){return e.length>0&&AF(e[0].name)}function Ylt(e){return Q3e(e)?e.length-1:e.length}function oqe(e){return Q3e(e)&&(e=he.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function aqe(e,n){return xn(n)&&K2(n)===e?he.createShorthandPropertyAssignment(e):he.createPropertyAssignment(e,n)}function Qlt(e,n){const i=oqe(e.parameters),c=sp(yl(i)),u=c?n.slice(0,i.length-1):n,d=Vn(u,(S,E)=>{const P=$Ce(i[E]),k=aqe(P,S);return zT(k.name),tl(k)&&zT(k.initializer),nB(S,k),k});if(c&&n.length>=i.length){const S=n.slice(i.length-1),E=he.createPropertyAssignment($Ce(yl(i)),he.createArrayLiteralExpression(S));d.push(E)}return he.createObjectLiteralExpression(d,!1)}function sqe(e,n,i){const c=n.getTypeChecker(),u=oqe(e.parameters),d=Vn(u,k),h=he.createObjectBindingPattern(d),S=F(u);let E;jr(u,X)&&(E=he.createObjectLiteralExpression());const P=he.createParameterDeclaration(void 0,void 0,h,void 0,S,E);if(Q3e(e.parameters)){const ie=e.parameters[0],ae=he.createParameterDeclaration(void 0,void 0,ie.name,void 0,ie.type);return zT(ae.name),nB(ie.name,ae.name),ie.type&&(zT(ae.type),nB(ie.type,ae.type)),he.createNodeArray([ae,P])}return he.createNodeArray([P]);function k(ie){const ae=he.createBindingElement(void 0,void 0,$Ce(ie),sp(ie)&&X(ie)?he.createArrayLiteralExpression():ie.initializer);return zT(ae),ie.initializer&&ae.initializer&&nB(ie.initializer,ae.initializer),ae}function F(ie){const ae=Vn(ie,$);return cE(he.createTypeLiteralNode(ae),1)}function $(ie){let ae=ie.type;!ae&&(ie.initializer||sp(ie))&&(ae=J(ie));const ve=he.createPropertySignature(void 0,$Ce(ie),X(ie)?he.createToken(58):ie.questionToken,ae);return zT(ve),nB(ie.name,ve.name),ie.type&&ve.type&&nB(ie.type,ve.type),ve}function J(ie){const ae=c.getTypeAtLocation(ie);return iB(ae,ie,n,i)}function X(ie){if(sp(ie)){const ae=c.getTypeAtLocation(ie);return!c.isTupleType(ae)}return c.isOptionalParameter(ie)}}function $Ce(e){return K2(e.name)}function Z3e(e){switch(e.parent.kind){case 263:const n=e.parent;return n.name?[n.name]:[re.checkDefined(QW(n,90),"Nameless class declaration should be a default export")];case 231:const c=e.parent,u=e.parent.parent,d=c.name;return d?[d,u.name]:[u.name]}}function eOe(e){switch(e.kind){case 262:return e.name?[e.name]:[re.checkDefined(QW(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const i=re.checkDefined(qm(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,i]:[i];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return re.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var Uhe,tOe,qCe,nOe,cqe=G({"src/services/refactors/convertParamsToDestructuredObject.ts"(){xl(),EI(),Uhe="Convert parameters to destructured object",tOe=1,qCe=fs(N.Convert_parameters_to_destructured_object),nOe={name:Uhe,description:qCe,kind:"refactor.rewrite.parameters.toDestructured"},wk(Uhe,{kinds:[nOe.kind],getEditsForAction:rqe,getAvailableActions:Vhe})}}),Zlt={},KCe=G({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){cqe()}});function XCe(e){const{file:n,startPosition:i}=e,c=Hhe(n,i),u=rOe(c),d=Sd(u),h={name:YCe,description:QCe,actions:[]};return d&&e.triggerReason!=="invoked"?Yn:ZD(u)&&(d||Ds(u)&&iOe(u).isValidConcatenation)?(h.actions.push(qhe),[h]):e.preferences.provideRefactorNotApplicableReason?(h.actions.push({...qhe,notApplicableReason:fs(N.Can_only_convert_string_concatenations_and_string_literals)}),[h]):Yn}function Hhe(e,n){const i=Lf(e,n),c=rOe(i);return!iOe(c).isValidConcatenation&&fE(c.parent)&&Ds(c.parent.parent)?c.parent.parent:i}function lqe(e,n){const{file:i,startPosition:c}=e,u=Hhe(i,c);switch(n){case QCe:return{edits:uqe(e,u)};default:return re.fail("invalid action")}}function uqe(e,n){const i=rOe(n),c=e.file,u=nut(iOe(i),c),d=SN(c.text,i.end);if(d){const h=d[d.length-1],S={pos:d[0].pos,end:h.end};return zs.ChangeTracker.with(e,E=>{E.deleteRange(c,S),E.replaceNode(c,i,u)})}else return zs.ChangeTracker.with(e,h=>h.replaceNode(c,i,u))}function eut(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function rOe(e){return Ua(e.parent,i=>{switch(i.kind){case 211:case 212:return!1;case 228:case 226:return!(Ds(i.parent)&&eut(i.parent));default:return"quit"}})||e}function iOe(e){const n=h=>{if(!Ds(h))return{nodes:[h],operators:[],validOperators:!0,hasString:Sd(h)||K7(h)};const{nodes:S,operators:E,hasString:P,validOperators:k}=n(h.left);if(!(P||Sd(h.right)||B0(h.right)))return{nodes:[h],operators:[],hasString:!1,validOperators:!0};const F=h.operatorToken.kind===40,$=k&&F;return S.push(h.right),E.push(h.operatorToken),{nodes:S,operators:E,hasString:!0,validOperators:$}},{nodes:i,operators:c,validOperators:u,hasString:d}=n(e);return{nodes:i,operators:c,isValidConcatenation:u&&d}}function tut(e){return e.replace(/\\.|[$`]/g,n=>n[0]==="\\"?n:"\\"+n)}function fqe(e){const n=X7(e)||TEe(e)?-2:-1;return Lv(e).slice(1,n)}function Jhe(e,n){const i=[];let c="",u="";for(;e{$he(Fe);const Pe=et===$.templateSpans.length-1,dt=Fe.literal.text+(Pe?X:""),Ie=fqe(Fe.literal)+(Pe?ie:"");return he.createTemplateSpan(Fe.expression,ve&&Pe?he.createTemplateTail(dt,Ie):he.createTemplateMiddle(dt,Ie))});P.push(...we)}else{const we=ve?he.createTemplateTail(X,ie):he.createTemplateMiddle(X,ie);u(ae,we),P.push(he.createTemplateSpan($,we))}}return he.createTemplateExpression(k,P)}function $he(e){const n=e.getSourceFile();Mj(e,e.expression,n,3,!1),PF(e.expression,e.expression,n,3,!1)}function _qe(e){return fE(e)&&($he(e),e=e.expression),e}var YCe,QCe,qhe,ZCe,dqe,ile=G({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){xl(),EI(),YCe="Convert to template string",QCe=fs(N.Convert_to_template_string),qhe={name:YCe,description:QCe,kind:"refactor.rewrite.string"},wk(YCe,{kinds:[qhe.kind],getEditsForAction:lqe,getAvailableActions:XCe}),ZCe=(e,n)=>(i,c)=>{i(c,u)=>{for(;c.length>0;){const d=c.shift();Mj(e[d],u,n,3,!1),i(d,u)}}}}),rut={},iut=G({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){ile()}});function out(e){const n=Xhe(e,e.triggerReason==="invoked");return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Qhe,description:tDe,actions:[{...ole,notApplicableReason:n.error}]}]:Yn:[{name:Qhe,description:tDe,actions:[ole]}]:Yn}function oOe(e,n){const i=Xhe(e);return re.assert(i&&!BR(i),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(e,u=>uut(e.file,e.program.getTypeChecker(),u,i)),renameFilename:void 0,renameLocation:void 0}}function Khe(e){return Ds(e)||ex(e)}function aut(e){return kb(e)||iS(e)||Xg(e)}function gq(e){return Khe(e)||aut(e)}function Xhe(e,n=!0){const{file:i,program:c}=e,u=NF(e),d=u.length===0;if(d&&!n)return;const h=Lf(i,u.start),S=Xse(i,u.start+u.length),E=Yy(h.pos,S&&S.end>=h.pos?S.getEnd():h.getEnd()),P=d?cut(h):sOe(h,E),k=P&&gq(P)?lut(P):void 0;if(!k)return{error:fs(N.Could_not_find_convertible_access_expression)};const F=c.getTypeChecker();return ex(k)?eDe(k,F):sut(k)}function eDe(e,n){const i=e.condition,c=Yhe(e.whenTrue);if(!c||n.isNullableType(n.getTypeAtLocation(c)))return{error:fs(N.Could_not_find_convertible_access_expression)};if((Ac(i)||xn(i))&&aOe(i,c.expression))return{finalExpression:c,occurrences:[i],expression:e};if(Ds(i)){const u=pqe(c.expression,i);return u?{finalExpression:c,occurrences:u,expression:e}:{error:fs(N.Could_not_find_matching_access_expressions)}}}function sut(e){if(e.operatorToken.kind!==56)return{error:fs(N.Can_only_convert_logical_AND_access_chains)};const n=Yhe(e.right);if(!n)return{error:fs(N.Could_not_find_convertible_access_expression)};const i=pqe(n.expression,e.left);return i?{finalExpression:n,occurrences:i,expression:e}:{error:fs(N.Could_not_find_matching_access_expressions)}}function pqe(e,n){const i=[];for(;Ds(n)&&n.operatorToken.kind===56;){const u=aOe(rg(e),rg(n.right));if(!u)break;i.push(u),e=u,n=n.left}const c=aOe(e,n);return c&&i.push(c),i.length>0?i:void 0}function aOe(e,n){if(!(!xn(n)&&!Ac(n)&&!Hm(n)))return mqe(e,n)?n:void 0}function mqe(e,n){for(;(xd(e)||Ac(e)||Hm(e))&&Tee(e)!==Tee(n);)e=e.expression;for(;Ac(e)&&Ac(n)||Hm(e)&&Hm(n);){if(Tee(e)!==Tee(n))return!1;e=e.expression,n=n.expression}return xn(e)&&xn(n)&&e.getText()===n.getText()}function Tee(e){if(xn(e)||Ox(e))return e.getText();if(Ac(e))return Tee(e.name);if(Hm(e))return Tee(e.argumentExpression)}function sOe(e,n){for(;e.parent;){if(gq(e)&&n.length!==0&&e.end>=n.start+n.length)return e;e=e.parent}}function cut(e){for(;e.parent;){if(gq(e)&&!gq(e.parent))return e;e=e.parent}}function lut(e){if(Khe(e))return e;if(Xg(e)){const n=I7(e),i=n==null?void 0:n.initializer;return i&&Khe(i)?i:void 0}return e.expression&&Khe(e.expression)?e.expression:void 0}function Yhe(e){if(e=rg(e),Ds(e))return Yhe(e.left);if((Ac(e)||Hm(e)||xd(e))&&!fy(e))return e}function gqe(e,n,i){if(Ac(n)||Hm(n)||xd(n)){const c=gqe(e,n.expression,i),u=i.length>0?i[i.length-1]:void 0,d=(u==null?void 0:u.getText())===n.expression.getText();if(d&&i.pop(),xd(n))return d?he.createCallChain(c,he.createToken(29),n.typeArguments,n.arguments):he.createCallChain(c,n.questionDotToken,n.typeArguments,n.arguments);if(Ac(n))return d?he.createPropertyAccessChain(c,he.createToken(29),n.name):he.createPropertyAccessChain(c,n.questionDotToken,n.name);if(Hm(n))return d?he.createElementAccessChain(c,he.createToken(29),n.argumentExpression):he.createElementAccessChain(c,n.questionDotToken,n.argumentExpression)}return n}function uut(e,n,i,c,u){const{finalExpression:d,occurrences:h,expression:S}=c,E=h[h.length-1],P=gqe(n,d,h);P&&(Ac(P)||Hm(P)||xd(P))&&(Ds(S)?i.replaceNodeRange(e,E,d,P):ex(S)&&i.replaceNode(e,S,he.createBinaryExpression(P,he.createToken(61),S.whenFalse)))}var Qhe,tDe,ole,fut=G({"src/services/refactors/convertToOptionalChainExpression.ts"(){xl(),EI(),Qhe="Convert to optional chain expression",tDe=fs(N.Convert_to_optional_chain_expression),ole={name:Qhe,description:tDe,kind:"refactor.rewrite.expression.optionalChain"},wk(Qhe,{kinds:[ole.kind],getEditsForAction:oOe,getAvailableActions:out})}}),_ut={},dut=G({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){fut()}});function hqe(e){const n=e.kind,i=cOe(e.file,NF(e),e.triggerReason==="invoked"),c=i.targetRange;if(c===void 0){if(!i.errors||i.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Yn;const X=[];return RP(Sq.kind,n)&&X.push({name:bq,description:Sq.description,actions:[{...Sq,notApplicableReason:J(i.errors)}]}),RP(Tq.kind,n)&&X.push({name:bq,description:Tq.description,actions:[{...Tq,notApplicableReason:J(i.errors)}]}),X}const u=vut(c,e);if(u===void 0)return Yn;const d=[],h=new Map;let S;const E=[],P=new Map;let k,F=0;for(const{functionExtraction:X,constantExtraction:ie}of u){if(RP(Sq.kind,n)){const ae=X.description;X.errors.length===0?h.has(ae)||(h.set(ae,!0),d.push({description:ae,name:`function_scope_${F}`,kind:Sq.kind})):S||(S={description:ae,name:`function_scope_${F}`,notApplicableReason:J(X.errors),kind:Sq.kind})}if(RP(Tq.kind,n)){const ae=ie.description;ie.errors.length===0?P.has(ae)||(P.set(ae,!0),E.push({description:ae,name:`constant_scope_${F}`,kind:Tq.kind})):k||(k={description:ae,name:`constant_scope_${F}`,notApplicableReason:J(ie.errors),kind:Tq.kind})}F++}const $=[];return d.length?$.push({name:bq,description:fs(N.Extract_function),actions:d}):e.preferences.provideRefactorNotApplicableReason&&S&&$.push({name:bq,description:fs(N.Extract_function),actions:[S]}),E.length?$.push({name:bq,description:fs(N.Extract_constant),actions:E}):e.preferences.provideRefactorNotApplicableReason&&k&&$.push({name:bq,description:fs(N.Extract_constant),actions:[k]}),$.length?$:Yn;function J(X){let ie=X[0].messageText;return typeof ie!="string"&&(ie=ie.messageText),ie}}function yqe(e,n){const c=cOe(e.file,NF(e)).targetRange,u=/^function_scope_(\d+)$/.exec(n);if(u){const h=+u[1];return re.assert(isFinite(h),"Expected to parse a finite number from the function scope index"),hut(c,e,h)}const d=/^constant_scope_(\d+)$/.exec(n);if(d){const h=+d[1];return re.assert(isFinite(h),"Expected to parse a finite number from the constant scope index"),yut(c,e,h)}re.fail("Unrecognized action name")}function cOe(e,n,i=!0){const{length:c}=n;if(c===0&&!i)return{errors:[Pp(e,n.start,c,n1.cannotExtractEmpty)]};const u=c===0&&i,d=Gge(e,n.start),h=Xse(e,Xy(n)),S=d&&h&&i?put(d,h,e):n,E=u?nDe(d):nq(d,e,S),P=u?E:nq(h,e,S);let k=0,F;if(!E||!P)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};if(E.flags&16777216)return{errors:[Pp(e,n.start,c,n1.cannotExtractJSDoc)]};if(E.parent!==P.parent)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};if(E!==P){if(!Tqe(E.parent))return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};const we=[];for(const Fe of E.parent.statements){if(Fe===E||we.length){const et=ve(Fe);if(et)return{errors:et};we.push(Fe)}if(Fe===P)break}return we.length?{targetRange:{range:we,facts:k,thisNode:F}}:{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]}}if(iS(E)&&!E.expression)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};const $=X(E),J=ie($)||ve($);if(J)return{errors:J};return{targetRange:{range:mut($),facts:k,thisNode:F}};function X(we){if(iS(we)){if(we.expression)return we.expression}else if(Xg(we)||Kp(we)){const Fe=Xg(we)?we.declarationList.declarations:we.declarations;let et=0,Pe;for(const dt of Fe)dt.initializer&&(et++,Pe=dt.initializer);if(et===1)return Pe}else if(Kc(we)&&we.initializer)return we.initializer;return we}function ie(we){if(xn(kb(we)?we.expression:we))return[Bs(we,n1.cannotExtractIdentifier)]}function ae(we,Fe){let et=we;for(;et!==Fe;){if(et.kind===172){pd(et)&&(k|=32);break}else if(et.kind===169){zE(et).kind===176&&(k|=32);break}else et.kind===174&&pd(et)&&(k|=32);et=et.parent}}function ve(we){let Fe;if((Ct=>{Ct[Ct.None=0]="None",Ct[Ct.Break=1]="Break",Ct[Ct.Continue=2]="Continue",Ct[Ct.Return=4]="Return"})(Fe||(Fe={})),re.assert(we.pos<=we.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),re.assert(!ab(we.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!dl(we)&&!(ZD(we)&&eye(we))&&!hOe(we))return[Bs(we,n1.statementOrExpressionExpected)];if(we.flags&33554432)return[Bs(we,n1.cannotExtractAmbientBlock)];const et=$b(we);et&&ae(we,et);let Pe,dt=4,Ie;if(ct(we),k&8){const Ct=RT(we,!1,!1);(Ct.kind===262||Ct.kind===174&&Ct.parent.kind===210||Ct.kind===218)&&(k|=16)}return Pe;function ct(Ct){if(Pe)return!0;if(PT(Ct)){const Ze=Ct.kind===260?Ct.parent.parent:Ct;if(ul(Ze,32))return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractExportedEntity)),!0}switch(Ct.kind){case 272:return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractImport)),!0;case 277:return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractExportedEntity)),!0;case 108:if(Ct.parent.kind===213){const Ze=$b(Ct);if(Ze===void 0||Ze.pos=n.start+n.length)return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractSuper)),!0}else k|=8,F=Ct;break;case 219:s_(Ct,function Ze(Ke){if(AF(Ke))k|=8,F=Ct;else{if(Fl(Ke)||F_(Ke)&&!$m(Ke))return!1;s_(Ke,Ze)}});case 263:case 262:Nu(Ct.parent)&&Ct.parent.externalModuleIndicator===void 0&&(Pe||(Pe=[])).push(Bs(Ct,n1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Lt=dt;switch(Ct.kind){case 245:dt&=-5;break;case 258:dt=0;break;case 241:Ct.parent&&Ct.parent.kind===258&&Ct.parent.finallyBlock===Ct&&(dt=4);break;case 297:case 296:dt|=1;break;default:OL(Ct,!1)&&(dt|=3);break}switch(Ct.kind){case 197:case 110:k|=8,F=Ct;break;case 256:{const Ze=Ct.label;(Ie||(Ie=[])).push(Ze.escapedText),s_(Ct,ct),Ie.pop();break}case 252:case 251:{const Ze=Ct.label;Ze?ni(Ie,Ze.escapedText)||(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):dt&(Ct.kind===252?1:2)||(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:dt&4?k|=1:(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingConditionalReturnStatement));break;default:s_(Ct,ct);break}dt=Lt}}}function put(e,n,i){const c=e.getStart(i);let u=n.getEnd();return i.text.charCodeAt(u)===59&&u++,{start:c,length:u-c}}function mut(e){if(dl(e))return[e];if(ZD(e))return kb(e.parent)?[e.parent]:e;if(hOe(e))return e}function lOe(e){return $m(e)?UU(e.body):Vd(e)||Nu(e)||kh(e)||Fl(e)}function gut(e){let n=zR(e.range)?Dl(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const c=$b(n);if(c){const u=Ua(n,Vd);return u?[u,c]:[c]}}const i=[];for(;;)if(n=n.parent,n.kind===169&&(n=Ua(n,c=>Vd(c)).parent),lOe(n)&&(i.push(n),n.kind===312))return i}function hut(e,n,i){const{scopes:c,readsAndWrites:{target:u,usagesPerScope:d,functionErrorsPerScope:h,exposedVariableDeclarations:S}}=uOe(e,n);return re.assert(!h[i].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),Eut(u,c[i],d[i],S,e,n)}function yut(e,n,i){const{scopes:c,readsAndWrites:{target:u,usagesPerScope:d,constantErrorsPerScope:h,exposedVariableDeclarations:S}}=uOe(e,n);re.assert(!h[i].length,"The extraction went missing? How?"),re.assert(S.length===0,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();const E=kr(u)?u:u.statements[0].expression;return xut(E,c[i],d[i],e.facts,n)}function vut(e,n){const{scopes:i,readsAndWrites:{functionErrorsPerScope:c,constantErrorsPerScope:u}}=uOe(e,n);return i.map((h,S)=>{const E=but(h),P=Tut(h),k=Vd(h)?Sut(h):Fl(h)?fOe(h):O6(h);let F,$;return k===1?(F=LT(fs(N.Extract_to_0_in_1_scope),[E,"global"]),$=LT(fs(N.Extract_to_0_in_1_scope),[P,"global"])):k===0?(F=LT(fs(N.Extract_to_0_in_1_scope),[E,"module"]),$=LT(fs(N.Extract_to_0_in_1_scope),[P,"module"])):(F=LT(fs(N.Extract_to_0_in_1),[E,k]),$=LT(fs(N.Extract_to_0_in_1),[P,k])),S===0&&!Fl(h)&&($=LT(fs(N.Extract_to_0_in_enclosing_scope),[P])),{functionExtraction:{description:F,errors:c[S]},constantExtraction:{description:$,errors:u[S]}}})}function uOe(e,n){const{file:i}=n,c=gut(e),u=Cut(e,i),d=Zhe(e,c,u,i,n.program.getTypeChecker(),n.cancellationToken);return{scopes:c,readsAndWrites:d}}function but(e){return Vd(e)?"inner function":Fl(e)?"method":"function"}function Tut(e){return Fl(e)?"readonly field":"constant"}function Sut(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:bce;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:re.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function fOe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function O6(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function Eut(e,n,{usages:i,typeParameterUsages:c,substitutions:u},d,h,S){const E=S.program.getTypeChecker(),P=iu(S.program.getCompilerOptions()),k=fT.createImportAdder(S.file,S.program,S.preferences,S.host),F=n.getSourceFile(),$=b4(Fl(n)?"newMethod":"newFunction",F),J=Cs(n),X=he.createIdentifier($);let ie;const ae=[],ve=[];let we;i.forEach((qt,Kt)=>{let wr;if(!J){let jt=E.getTypeOfSymbolAtLocation(qt.symbol,qt.node);jt=E.getBaseTypeOfLiteralType(jt),wr=fT.typeToAutoImportableTypeNode(E,k,jt,n,P,1)}const Wr=he.createParameterDeclaration(void 0,void 0,Kt,void 0,wr);ae.push(Wr),qt.usage===2&&(we||(we=[])).push(qt),ve.push(he.createIdentifier(Kt))});const et=oc(c.values(),qt=>({type:qt,declaration:vqe(qt,S.startPosition)})).sort(bqe),Pe=et.length===0?void 0:Qo(et,({declaration:qt})=>qt),dt=Pe!==void 0?Pe.map(qt=>he.createTypeReferenceNode(qt.name,void 0)):void 0;if(kr(e)&&!J){const qt=E.getContextualType(e);ie=E.typeToTypeNode(qt,n,1)}const{body:Ie,returnValueProperty:ct}=dOe(e,d,we,u,!!(h.facts&1));zT(Ie);let Ct;const Lt=!!(h.facts&16);if(Fl(n)){const qt=J?[]:[he.createModifier(123)];h.facts&32&&qt.push(he.createModifier(126)),h.facts&4&&qt.push(he.createModifier(134)),Ct=he.createMethodDeclaration(qt.length?qt:void 0,h.facts&2?he.createToken(42):void 0,X,void 0,Pe,ae,ie,Ie)}else Lt&&ae.unshift(he.createParameterDeclaration(void 0,void 0,"this",void 0,E.typeToTypeNode(E.getTypeAtLocation(h.thisNode),n,1),void 0)),Ct=he.createFunctionDeclaration(h.facts&4?[he.createToken(134)]:void 0,h.facts&2?he.createToken(42):void 0,X,Pe,ae,ie,Ie);const Ze=zs.ChangeTracker.fromContext(S),Ke=(zR(h.range)?yl(h.range):h.range).end,st=vq(Ke,n);st?Ze.insertNodeBefore(S.file,st,Ct,!0):Ze.insertNodeAtEndOfScope(S.file,n,Ct),k.writeFixes(Ze);const It=[],Yt=_Oe(n,h,$);Lt&&ve.unshift(he.createIdentifier("this"));let Et=he.createCallExpression(Lt?he.createPropertyAccessExpression(Yt,"call"):Yt,dt,ve);if(h.facts&2&&(Et=he.createYieldExpression(he.createToken(42),Et)),h.facts&4&&(Et=he.createAwaitExpression(Et)),gOe(e)&&(Et=he.createJsxExpression(void 0,Et)),d.length&&!we)if(re.assert(!ct,"Expected no returnValueProperty"),re.assert(!(h.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),d.length===1){const qt=d[0];It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(qt.name),void 0,ih(qt.type),Et)],qt.parent.flags)))}else{const qt=[],Kt=[];let wr=d[0].parent.flags,Wr=!1;for(const En of d){qt.push(he.createBindingElement(void 0,void 0,ih(En.name)));const fr=E.typeToTypeNode(E.getBaseTypeOfLiteralType(E.getTypeAtLocation(En)),n,1);Kt.push(he.createPropertySignature(void 0,En.symbol.name,void 0,fr)),Wr=Wr||En.type!==void 0,wr=wr&En.parent.flags}const jt=Wr?he.createTypeLiteralNode(Kt):void 0;jt&&_s(jt,1),It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(he.createObjectBindingPattern(qt),void 0,jt,Et)],wr)))}else if(d.length||we){if(d.length)for(const Kt of d){let wr=Kt.parent.flags;wr&2&&(wr=wr&-3|1),It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Kt.symbol.name,void 0,cn(Kt.type))],wr)))}ct&&It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ct,void 0,cn(ie))],1)));const qt=mOe(d,we);ct&&qt.unshift(he.createShorthandPropertyAssignment(ct)),qt.length===1?(re.assert(!ct,"Shouldn't have returnValueProperty here"),It.push(he.createExpressionStatement(he.createAssignment(qt[0].name,Et))),h.facts&1&&It.push(he.createReturnStatement())):(It.push(he.createExpressionStatement(he.createAssignment(he.createObjectLiteralExpression(qt),Et))),ct&&It.push(he.createReturnStatement(he.createIdentifier(ct))))}else h.facts&1?It.push(he.createReturnStatement(Et)):zR(h.range)?It.push(he.createExpressionStatement(Et)):It.push(Et);zR(h.range)?Ze.replaceNodeRangeWithNodes(S.file,Dl(h.range),yl(h.range),It):Ze.replaceNodeWithNodes(S.file,h.range,It);const at=Ze.getChanges(),nn=(zR(h.range)?Dl(h.range):h.range).getSourceFile().fileName,Rn=jZ(at,nn,$,!1);return{renameFilename:nn,renameLocation:Rn,edits:at};function cn(qt){if(qt===void 0)return;const Kt=ih(qt);let wr=Kt;for(;XN(wr);)wr=wr.type;return fI(wr)&&lr(wr.types,Wr=>Wr.kind===157)?Kt:he.createUnionTypeNode([Kt,he.createKeywordTypeNode(157)])}}function xut(e,n,{substitutions:i},c,u){const d=u.program.getTypeChecker(),h=n.getSourceFile(),S=Ac(e)&&!Fl(n)&&!d.resolveName(e.name.text,e,111551,!1)&&!Lu(e.name)&&!uP(e.name)?e.name.text:b4(Fl(n)?"newProperty":"newLocal",h),E=Cs(n);let P=E||!d.isContextSensitive(e)?void 0:d.typeToTypeNode(d.getContextualType(e),n,1),k=hq(rg(e),i);({variableType:P,initializer:k}=ie(P,k)),zT(k);const F=zs.ChangeTracker.fromContext(u);if(Fl(n)){re.assert(!E,"Cannot extract to a JS class");const ae=[];ae.push(he.createModifier(123)),c&32&&ae.push(he.createModifier(126)),ae.push(he.createModifier(148));const ve=he.createPropertyDeclaration(ae,S,void 0,P,k);let we=he.createPropertyAccessExpression(c&32?he.createIdentifier(n.name.getText()):he.createThis(),he.createIdentifier(S));gOe(e)&&(we=he.createJsxExpression(void 0,we));const Fe=e.pos,et=I1(Fe,n);F.insertNodeBefore(u.file,et,ve,!0),F.replaceNode(u.file,e,we)}else{const ae=he.createVariableDeclaration(S,void 0,P,k),ve=Aut(e,n);if(ve){F.insertNodeBefore(u.file,ve,ae);const we=he.createIdentifier(S);F.replaceNode(u.file,e,we)}else if(e.parent.kind===244&&n===Ua(e,lOe)){const we=he.createVariableStatement(void 0,he.createVariableDeclarationList([ae],2));F.replaceNode(u.file,e.parent,we)}else{const we=he.createVariableStatement(void 0,he.createVariableDeclarationList([ae],2)),Fe=pOe(e,n);if(Fe.pos===0?F.insertNodeAtTopOfFile(u.file,we,!1):F.insertNodeBefore(u.file,Fe,we,!1),e.parent.kind===244)F.delete(u.file,e.parent);else{let et=he.createIdentifier(S);gOe(e)&&(et=he.createJsxExpression(void 0,et)),F.replaceNode(u.file,e,et)}}}const $=F.getChanges(),J=e.getSourceFile().fileName,X=jZ($,J,S,!0);return{renameFilename:J,renameLocation:X,edits:$};function ie(ae,ve){if(ae===void 0)return{variableType:ae,initializer:ve};if(!Jm(ve)&&!$m(ve)||ve.typeParameters)return{variableType:ae,initializer:ve};const we=d.getTypeAtLocation(e),Fe=Vb(d.getSignaturesOfType(we,0));if(!Fe)return{variableType:ae,initializer:ve};if(Fe.getTypeParameters())return{variableType:ae,initializer:ve};const et=[];let Pe=!1;for(const dt of ve.parameters)if(dt.type)et.push(dt);else{const Ie=d.getTypeAtLocation(dt);Ie===d.getAnyType()&&(Pe=!0),et.push(he.updateParameterDeclaration(dt,dt.modifiers,dt.dotDotDotToken,dt.name,dt.questionToken,dt.type||d.typeToTypeNode(Ie,n,1),dt.initializer))}if(Pe)return{variableType:ae,initializer:ve};if(ae=void 0,$m(ve))ve=he.updateArrowFunction(ve,DA(e)?Xv(e):void 0,ve.typeParameters,et,ve.type||d.typeToTypeNode(Fe.getReturnType(),n,1),ve.equalsGreaterThanToken,ve.body);else{if(Fe&&Fe.thisParameter){const dt=pp(et);if(!dt||xn(dt.name)&&dt.name.escapedText!=="this"){const Ie=d.getTypeOfSymbolAtLocation(Fe.thisParameter,e);et.splice(0,0,he.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(Ie,n,1)))}}ve=he.updateFunctionExpression(ve,DA(e)?Xv(e):void 0,ve.asteriskToken,ve.name,ve.typeParameters,et,ve.type||d.typeToTypeNode(Fe.getReturnType(),n,1),ve.body)}return{variableType:ae,initializer:ve}}}function Aut(e,n){let i;for(;e!==void 0&&e!==n;){if(Kc(e)&&e.initializer===i&&Kp(e.parent)&&e.parent.declarations.length>1)return e;i=e,e=e.parent}}function vqe(e,n){let i;const c=e.symbol;if(c&&c.declarations)for(const u of c.declarations)(i===void 0||u.pos0;if(Ou(e)&&!d&&c.size===0)return{body:he.createBlock(e.statements,!0),returnValueProperty:void 0};let h,S=!1;const E=he.createNodeArray(Ou(e)?e.statements.slice(0):[dl(e)?e:he.createReturnStatement(rg(e))]);if(d||c.size){const k=Wa(E,P,dl).slice();if(d&&!u&&dl(e)){const F=mOe(n,i);F.length===1?k.push(he.createReturnStatement(F[0].name)):k.push(he.createReturnStatement(he.createObjectLiteralExpression(F)))}return{body:he.createBlock(k,!0),returnValueProperty:h}}else return{body:he.createBlock(E,!0),returnValueProperty:void 0};function P(k){if(!S&&iS(k)&&d){const F=mOe(n,i);return k.expression&&(h||(h="__return"),F.unshift(he.createPropertyAssignment(h,Bn(k.expression,P,kr)))),F.length===1?he.createReturnStatement(F[0].name):he.createReturnStatement(he.createObjectLiteralExpression(F))}else{const F=S;S=S||Vd(k)||Fl(k);const $=c.get(vm(k).toString()),J=$?ih($):Xo(k,P,sx);return S=F,J}}}function hq(e,n){return n.size?i(e):e;function i(c){const u=n.get(vm(c).toString());return u?ih(u):Xo(c,i,sx)}}function yq(e){if(Vd(e)){const n=e.body;if(Ou(n))return n.statements}else{if(kh(e)||Nu(e))return e.statements;if(Fl(e))return e.members}return Yn}function vq(e,n){return lr(yq(n),i=>i.pos>=e&&Vd(i)&&!Lh(i))}function I1(e,n){const i=n.members;re.assert(i.length>0,"Found no members");let c,u=!0;for(const d of i){if(d.pos>e)return c||i[0];if(u&&!nu(d)){if(c!==void 0)return d;u=!1}c=d}return c===void 0?re.fail():c}function pOe(e,n){re.assert(!Fl(n));let i;for(let c=e;c!==n;c=c.parent)lOe(c)&&(i=c);for(let c=(i||e).parent;;c=c.parent){if(Tqe(c)){let u;for(const d of c.statements){if(d.pos>e.pos)break;u=d}return!u&&BT(c)?(re.assert(AR(c.parent.parent),"Grandparent isn't a switch statement"),c.parent.parent):re.checkDefined(u,"prevStatement failed to get set")}re.assert(c!==n,"Didn't encounter a block-like before encountering scope")}}function mOe(e,n){const i=Vn(e,u=>he.createShorthandPropertyAssignment(u.symbol.name)),c=Vn(n,u=>he.createShorthandPropertyAssignment(u.symbol.name));return i===void 0?c:c===void 0?i:i.concat(c)}function zR(e){return ls(e)}function Cut(e,n){return zR(e.range)?{pos:Dl(e.range).getStart(n),end:yl(e.range).getEnd()}:e.range}function Zhe(e,n,i,c,u,d){const h=new Map,S=[],E=[],P=[],k=[],F=[],$=new Map,J=[];let X;const ie=zR(e.range)?e.range.length===1&&kb(e.range[0])?e.range[0].expression:void 0:e.range;let ae;if(ie===void 0){const st=e.range,It=Dl(st).getStart(),Yt=yl(st).end;ae=Pp(c,It,Yt-It,n1.expressionExpected)}else u.getTypeAtLocation(ie).flags&147456&&(ae=Bs(ie,n1.uselessConstantType));for(const st of n){S.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),E.push(new Map),P.push([]);const It=[];ae&&It.push(ae),Fl(st)&&Cs(st)&&It.push(Bs(st,n1.cannotExtractToJSClass)),$m(st)&&!Ou(st.body)&&It.push(Bs(st,n1.cannotExtractToExpressionArrowFunction)),k.push(It)}const ve=new Map,we=zR(e.range)?he.createBlock(e.range):e.range,Fe=zR(e.range)?Dl(e.range):e.range,et=Pe(Fe);if(Ie(we),et&&!zR(e.range)&&!tx(e.range)){const st=u.getContextualType(e.range);dt(st)}if(h.size>0){const st=new Map;let It=0;for(let Yt=Fe;Yt!==void 0&&It{S[It].typeParameterUsages.set(at,Et)}),It++),BL(Yt))for(const Et of Hb(Yt)){const at=u.getTypeAtLocation(Et);h.has(at.id.toString())&&st.set(at.id.toString(),at)}re.assert(It===n.length,"Should have iterated all scopes")}if(F.length){const st=$C(n[0],n[0].parent)?n[0]:QD(n[0]);s_(st,Lt)}for(let st=0;st0&&(It.usages.size>0||It.typeParameterUsages.size>0)){const at=zR(e.range)?e.range[0]:e.range;k[st].push(Bs(at,n1.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Fl(n[st])&&P[st].push(Bs(e.thisNode,n1.cannotExtractFunctionsContainingThisToMethod));let Yt=!1,Et;if(S[st].usages.forEach(at=>{at.usage===2&&(Yt=!0,at.symbol.flags&106500&&at.symbol.valueDeclaration&&tT(at.symbol.valueDeclaration,8)&&(Et=at.symbol.valueDeclaration))}),re.assert(zR(e.range)||J.length===0,"No variable declarations expected if something was extracted"),Yt&&!zR(e.range)){const at=Bs(e.range,n1.cannotWriteInExpression);P[st].push(at),k[st].push(at)}else if(Et&&st>0){const at=Bs(Et,n1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);P[st].push(at),k[st].push(at)}else if(X){const at=Bs(X,n1.cannotExtractExportedEntity);P[st].push(at),k[st].push(at)}}return{target:we,usagesPerScope:S,functionErrorsPerScope:P,constantErrorsPerScope:k,exposedVariableDeclarations:J};function Pe(st){return!!Ua(st,It=>BL(It)&&Hb(It).length!==0)}function dt(st){const It=u.getSymbolWalker(()=>(d.throwIfCancellationRequested(),!0)),{visitedTypes:Yt}=It.walkType(st);for(const Et of Yt)Et.isTypeParameter()&&h.set(Et.id.toString(),Et)}function Ie(st,It=1){if(et){const Yt=u.getTypeAtLocation(st);dt(Yt)}if(PT(st)&&st.symbol&&F.push(st),Zv(st))Ie(st.left,2),Ie(st.right);else if(JTe(st))Ie(st.operand,2);else if(Ac(st)||Hm(st))s_(st,Ie);else if(xn(st)){if(!st.parent||Pu(st.parent)&&st!==st.parent.left||Ac(st.parent)&&st!==st.parent.expression)return;ct(st,It,BE(st))}else s_(st,Ie)}function ct(st,It,Yt){const Et=Ct(st,It,Yt);if(Et)for(let at=0;at=It)return at;if(ve.set(at,It),Qt){for(const cn of S)cn.usages.get(st.text)&&cn.usages.set(st.text,{usage:It,symbol:Et,node:st});return at}const nn=Et.getDeclarations(),Rn=nn&&lr(nn,cn=>cn.getSourceFile()===c);if(Rn&&!Aj(i,Rn.getStart(),Rn.end)){if(e.facts&2&&It===2){const cn=Bs(st,n1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const qt of P)qt.push(cn);for(const qt of k)qt.push(cn)}for(let cn=0;cnEt.symbol===It);if(Yt)if(Kc(Yt)){const Et=Yt.symbol.id.toString();$.has(Et)||(J.push(Yt),$.set(Et,!0))}else X=X||Yt}s_(st,Lt)}function Ze(st){return st.parent&&XE(st.parent)&&st.parent.name===st?u.getShorthandAssignmentValueSymbol(st.parent):u.getSymbolAtLocation(st)}function Ke(st,It,Yt){if(!st)return;const Et=st.getDeclarations();if(Et&&Et.some(Qt=>Qt.parent===It))return he.createIdentifier(st.name);const at=Ke(st.parent,It,Yt);if(at!==void 0)return Yt?he.createQualifiedName(at,he.createIdentifier(st.name)):he.createPropertyAccessExpression(at,st.name)}}function nDe(e){return Ua(e,n=>n.parent&&eye(n)&&!Ds(n.parent))}function eye(e){const{parent:n}=e;switch(n.kind){case 306:return!1}switch(e.kind){case 11:return n.kind!==272&&n.kind!==276;case 230:case 206:case 208:return!1;case 80:return n.kind!==208&&n.kind!==276&&n.kind!==281}return!0}function Tqe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function gOe(e){return hOe(e)||(zx(e)||nF(e)||Ek(e))&&(zx(e.parent)||Ek(e.parent))}function hOe(e){return Sd(e)&&e.parent&&tx(e.parent)}var bq,Tq,Sq,n1,yOe,Dut=G({"src/services/refactors/extractSymbol.ts"(){xl(),EI(),bq="Extract Symbol",Tq={name:"Extract Constant",description:fs(N.Extract_constant),kind:"refactor.extract.constant"},Sq={name:"Extract Function",description:fs(N.Extract_function),kind:"refactor.extract.function"},wk(bq,{kinds:[Tq.kind,Sq.kind],getEditsForAction:yqe,getAvailableActions:hqe}),(e=>{function n(i){return{message:i,code:0,category:3,key:i}}e.cannotExtractRange=n("Cannot extract range."),e.cannotExtractImport=n("Cannot extract import statement."),e.cannotExtractSuper=n("Cannot extract super call."),e.cannotExtractJSDoc=n("Cannot extract JSDoc."),e.cannotExtractEmpty=n("Cannot extract empty range."),e.expressionExpected=n("expression expected."),e.uselessConstantType=n("No reason to extract constant of type."),e.statementOrExpressionExpected=n("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),e.cannotExtractIdentifier=n("Select more than a single identifier."),e.cannotExtractExportedEntity=n("Cannot extract exported declaration"),e.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(n1||(n1={})),yOe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(yOe||{})}}),ale={};Oe(ale,{Messages:()=>n1,RangeFacts:()=>yOe,getRangeToExtract:()=>cOe,getRefactorActionsToExtractSymbol:()=>hqe,getRefactorEditsToExtractSymbol:()=>yqe});var rDe=G({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){Dut()}}),Hj,iDe,oDe,Iut=G({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){xl(),EI(),Hj="Generate 'get' and 'set' accessors",iDe=fs(N.Generate_get_and_set_accessors),oDe={name:Hj,description:iDe,kind:"refactor.rewrite.property.generateAccessors"},wk(Hj,{kinds:[oDe.kind],getEditsForAction:function(n,i){if(!n.endPosition)return;const c=fT.getAccessorConvertiblePropertyAtPosition(n.file,n.program,n.startPosition,n.endPosition);re.assert(c&&!BR(c),"Expected applicable refactor info");const u=fT.generateAccessorFromProperty(n.file,n.program,n.startPosition,n.endPosition,n,i);if(!u)return;const d=n.file.fileName,h=c.renameAccessor?c.accessorName:c.fieldName,E=(xn(h)?0:-1)+jZ(u,d,h.text,Os(c.declaration));return{renameFilename:d,renameLocation:E,edits:u}},getAvailableActions(e){if(!e.endPosition)return Yn;const n=fT.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Hj,description:iDe,actions:[{...oDe,notApplicableReason:n.error}]}]:Yn:[{name:Hj,description:iDe,actions:[oDe]}]:Yn}})}}),Eq={},MP=G({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){Iut()}});function Sqe(e){const n=Eqe(e);if(n&&!BR(n))return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,c=>kut(e.file,c,n.declaration,n.returnTypeNode))}}function vOe(e){const n=Eqe(e);return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:tye,description:nye,actions:[{...rye,notApplicableReason:n.error}]}]:Yn:[{name:tye,description:nye,actions:[rye]}]:Yn}function kut(e,n,i,c){const u=qm(i,22,e),d=$m(i)&&u===void 0,h=d?Dl(i.parameters):u;h&&(d&&(n.insertNodeBefore(e,h,he.createToken(21)),n.insertNodeAfter(e,h,he.createToken(22))),n.insertNodeAt(e,h.end,c,{prefix:": "}))}function Eqe(e){if(Cs(e.file)||!RP(rye.kind,e.kind))return;const n=cS(e.file,e.startPosition),i=Ua(n,h=>Ou(h)||h.parent&&$m(h.parent)&&(h.kind===39||h.parent.body===h)?"quit":Put(h));if(!i||!i.body||i.type)return{error:fs(N.Return_type_must_be_inferred_from_a_function)};const c=e.program.getTypeChecker(),u=Nut(c,i);if(!u)return{error:fs(N.Could_not_determine_function_return_type)};const d=c.typeToTypeNode(u,i,1);if(d)return{declaration:i,returnTypeNode:d}}function Put(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function Nut(e,n){if(e.isImplementationOfOverload(n)){const c=e.getTypeAtLocation(n).getCallSignatures();if(c.length>1)return e.getUnionType(Qo(c,u=>u.getReturnType()))}const i=e.getSignatureFromDeclaration(n);if(i)return e.getReturnTypeOfSignature(i)}var tye,nye,rye,wut=G({"src/services/refactors/inferFunctionReturnType.ts"(){xl(),EI(),tye="Infer function return type",nye=fs(N.Infer_function_return_type),rye={name:tye,description:nye,kind:"refactor.rewrite.function.returnType"},wk(tye,{kinds:[rye.kind],getEditsForAction:Sqe,getAvailableActions:vOe})}}),xqe={},bOe=G({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){wut()}}),MF={};Oe(MF,{addExportToChanges:()=>mee,addExports:()=>N3e,addNewFileToTsconfig:()=>Lhe,addOrRemoveBracesToArrowFunction:()=>eqe,convertArrowFunctionOrFunctionExpression:()=>Vlt,convertParamsToDestructuredObject:()=>Zlt,convertStringOrTemplateLiteral:()=>rut,convertToOptionalChainExpression:()=>_ut,createNewFileName:()=>O3e,createOldFileImportsFromTargetFile:()=>Fhe,deleteMovedStatements:()=>Hce,deleteUnusedImports:()=>$ce,deleteUnusedOldImports:()=>Ohe,doChangeNamedToNamespaceOrDefault:()=>F$e,extractSymbol:()=>ale,filterImport:()=>Kce,forEachImportInStatement:()=>pee,generateGetAccessorAndSetAccessor:()=>Eq,getApplicableRefactors:()=>P$e,getEditsForRefactor:()=>plt,getStatementsToMove:()=>gee,getTopLevelDeclarationStatement:()=>Bhe,getUsageInfo:()=>Vj,inferFunctionReturnType:()=>xqe,isRefactorErrorInfo:()=>BR,isTopLevelDeclaration:()=>Xce,makeImportOrRequire:()=>fB,moduleSpecifierFromImport:()=>Jce,nameOfTopLevelDeclaration:()=>LCe,refactorKindBeginsWith:()=>RP,registerRefactor:()=>wk,updateImportsInOtherFiles:()=>k3e});var EI=G({"src/services/_namespaces/ts.refactor.ts"(){Oce(),khe(),Phe(),Slt(),NCe(),Mhe(),Vce(),zhe(),j3e(),Ult(),KCe(),iut(),dut(),rDe(),MP(),bOe()}});function aDe(e,n,i,c){const u=sDe(e,n,i,c);re.assert(u.spans.length%3===0);const d=u.spans,h=[];for(let S=0;S{u.push(h.getStart(n),h.getWidth(n),(S+1<<8)+E)},c),u}function Rut(e,n,i,c,u){const d=e.getTypeChecker();let h=!1;function S(E){switch(E.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:u.throwIfCancellationRequested()}if(!E||!zz(i,E.pos,E.getFullWidth())||E.getFullWidth()===0)return;const P=h;if((zx(E)||nF(E))&&(h=!0),CP(E)&&(h=!1),xn(E)&&!h&&!aye(E)&&!d3(E.escapedText)){let k=d.getSymbolAtLocation(E);if(k){k.flags&2097152&&(k=d.getAliasedSymbol(k));let F=iye(k,xF(E));if(F!==void 0){let $=0;E.parent&&(sa(E.parent)||sle.get(E.parent.kind)===F)&&E.parent.name===E&&($=1),F===6&&Iqe(E)&&(F=9),F=Mut(d,E,F);const J=k.valueDeclaration;if(J){const X=Eb(J),ie=rR(J);X&256&&($|=2),X&1024&&($|=4),F!==0&&F!==2&&(X&8||ie&2||k.getFlags()&8)&&($|=8),(F===7||F===10)&&Cqe(J,n)&&($|=32),e.isSourceFileDefaultLibrary(J.getSourceFile())&&($|=16)}else k.declarations&&k.declarations.some(X=>e.isSourceFileDefaultLibrary(X.getSourceFile()))&&($|=16);c(E,F,$)}}}s_(E,S),h=P}S(n)}function iye(e,n){const i=e.getFlags();if(i&32)return 0;if(i&384)return 1;if(i&524288)return 5;if(i&64){if(n&2)return 2}else if(i&262144)return 4;let c=e.valueDeclaration||e.declarations&&e.declarations[0];return c&&sa(c)&&(c=oye(c)),c&&sle.get(c.kind)}function Mut(e,n,i){if(i===7||i===9||i===6){const c=e.getTypeAtLocation(n);if(c){const u=d=>d(c)||c.isUnion()&&c.types.some(d);if(i!==6&&u(d=>d.getConstructSignatures().length>0))return 0;if(u(d=>d.getCallSignatures().length>0)&&!u(d=>d.getProperties().length>0)||Dqe(n))return i===9?11:10}}return i}function Cqe(e,n){return sa(e)&&(e=oye(e)),Kc(e)?(!Nu(e.parent.parent.parent)||A3(e.parent))&&e.getSourceFile()===n:mg(e)?!Nu(e.parent)&&e.getSourceFile()===n:!1}function oye(e){for(;;)if(sa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function aye(e){const n=e.parent;return n&&(Tk(n)||qE(n)||mh(n))}function Dqe(e){for(;Iqe(e);)e=e.parent;return xd(e.parent)&&e.parent.expression===e}function Iqe(e){return Pu(e.parent)&&e.parent.right===e||Ac(e.parent)&&e.parent.name===e}var See,cDe,lDe,sle,TOe=G({"src/services/classifier2020.ts"(){xl(),See=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(See||{}),cDe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(cDe||{}),lDe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(lDe||{}),sle=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 SOe(e,n,i,c){const u=GU(e)?new dle(e,n,i):e===80?new mDe(80,n,i):e===81?new Cee(81,n,i):new EOe(e,n,i);return u.parent=c,u.flags=c.flags&101441536,u}function uDe(e,n){if(!GU(e.kind))return Yn;const i=[];if(Y1(e))return e.forEachChild(h=>{i.push(h)}),i;uT.setText((n||e.getSourceFile()).text);let c=e.pos;const u=h=>{Eee(i,c,h.pos,e),i.push(h),c=h.end},d=h=>{Eee(i,c,h.pos,e),i.push(kqe(h,e)),c=h.end};return Ot(e.jsDoc,u),c=e.pos,e.forEachChild(u,d),Eee(i,c,e.end,e),uT.setText(void 0),i}function Eee(e,n,i,c){for(uT.resetTokenState(n);nn.tagName.text==="inheritDoc"||n.tagName.text==="inheritdoc")}function _De(e,n){if(!e)return Yn;let i=nO.getJsDocTagsFromDeclarations(e,n);if(n&&(i.length===0||e.some(fDe))){const c=new Set;for(const u of e){const d=cle(n,u,h=>{var S;if(!c.has(h))return c.add(h),u.kind===177||u.kind===178?h.getContextualJsDocTags(u,n):((S=h.declarations)==null?void 0:S.length)===1?h.getJsDocTags():void 0});d&&(i=[...d,...i])}}return i}function sye(e,n){if(!e)return Yn;let i=nO.getJsDocCommentsFromDeclarations(e,n);if(n&&(i.length===0||e.some(fDe))){const c=new Set;for(const u of e){const d=cle(n,u,h=>{if(!c.has(h))return c.add(h),u.kind===177||u.kind===178?h.getContextualDocumentationComment(u,n):h.getDocumentationComment(n)});d&&(i=i.length===0?d.slice():d.concat(wj(),i))}}return i}function cle(e,n,i){var c;const u=((c=n.parent)==null?void 0:c.kind)===176?n.parent.parent:n.parent;if(!u)return;const d=ev(n);return Yr(uG(u),h=>{const S=e.getTypeAtLocation(h),E=d&&S.symbol?e.getTypeOfSymbol(S.symbol):S,P=e.getPropertyOfType(E,n.symbol.name);return P?i(P):void 0})}function Lut(){return{getNodeConstructor:()=>dle,getTokenConstructor:()=>EOe,getIdentifierConstructor:()=>mDe,getPrivateIdentifierConstructor:()=>Cee,getSourceFileConstructor:()=>xOe,getSymbolConstructor:()=>Mqe,getTypeConstructor:()=>Lqe,getSignatureConstructor:()=>gDe,getSourceMapSourceConstructor:()=>hDe}}function lle(e){let n=!0;for(const c in e)if(ef(e,c)&&!cye(c)){n=!1;break}if(n)return e;const i={};for(const c in e)if(ef(e,c)){const u=cye(c)?c:c.charAt(0).toLowerCase()+c.substr(1);i[u]=e[c]}return i}function cye(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function ule(e){return e?Vn(e,n=>n.text).join(""):""}function lye(){return{target:1,jsx:1}}function fle(){return fT.getSupportedErrorCodes()}function uye(e,n,i){e.version=i,e.scriptSnapshot=n}function xq(e,n,i,c,u,d){const h=eQ(e,Ij(n),i,u,d);return uye(h,n,c),h}function fye(e,n,i,c,u){if(c&&i!==e.version){let h;const S=c.span.start!==0?e.text.substr(0,c.span.start):"",E=Xy(c.span)!==e.text.length?e.text.substr(Xy(c.span)):"";if(c.newLength===0)h=S&&E?S+E:S||E;else{const k=n.getText(c.span.start,c.span.start+c.newLength);h=S&&E?S+k+E:S?S+k:k+E}const P=Hoe(e,h,c,u);return uye(P,n,i),P.nameTable=void 0,e!==P&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),P}const d={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return xq(e.fileName,n,d,i,!0,e.scriptKind)}function _ye(e,n=U8e(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),i){var c;let u;i===void 0?u=0:typeof i=="boolean"?u=i?2:0:u=i;const d=new Oqe(e);let h,S,E=0;const P=e.getCancellationToken?new mye(e.getCancellationToken()):yDe,k=e.getCurrentDirectory();LSe((c=e.getLocalizedDiagnosticMessages)==null?void 0:c.bind(e));function F(kt){e.log&&e.log(kt)}const $=pG(e),J=H1($),X=n3e({useCaseSensitiveFileNames:()=>$,getCurrentDirectory:()=>k,getProgram:ve,fileExists:wc(e,e.fileExists),readFile:wc(e,e.readFile),getDocumentPositionMapper:wc(e,e.getDocumentPositionMapper),getSourceFileLike:wc(e,e.getSourceFileLike),log:F});function ie(kt){const qe=h.getSourceFile(kt);if(!qe){const Mt=new Error(`Could not find source file: '${kt}'.`);throw Mt.ProgramFiles=h.getSourceFiles().map(ge=>ge.fileName),Mt}return qe}function ae(){var kt,qe,Mt;if(re.assert(u!==2),e.getProjectVersion){const mf=e.getProjectVersion();if(mf){if(S===mf&&!((kt=e.hasChangedAutomaticTypeDirectiveNames)!=null&&kt.call(e)))return;S=mf}}const ge=e.getTypeRootsVersion?e.getTypeRootsVersion():0;E!==ge&&(F("TypeRoots version has changed; provide new program"),h=void 0,E=ge);const mn=e.getScriptFileNames().slice(),Jn=e.getCompilationSettings()||lye(),Nn=e.hasInvalidatedResolutions||bg,Lr=wc(e,e.hasInvalidatedLibResolutions)||bg,qi=wc(e,e.hasChangedAutomaticTypeDirectiveNames),vo=(qe=e.getProjectReferences)==null?void 0:qe.call(e);let Ro,Ts={getSourceFile:xa,getSourceFileByPath:Ym,getCancellationToken:()=>P,getCanonicalFileName:J,useCaseSensitiveFileNames:()=>$,getNewLine:()=>JE(Jn),getDefaultLibFileName:mf=>e.getDefaultLibFileName(mf),writeFile:ku,getCurrentDirectory:()=>k,fileExists:mf=>e.fileExists(mf),readFile:mf=>e.readFile&&e.readFile(mf),getSymlinkCache:wc(e,e.getSymlinkCache),realpath:wc(e,e.realpath),directoryExists:mf=>O0(mf,e),getDirectories:mf=>e.getDirectories?e.getDirectories(mf):[],readDirectory:(mf,Cp,Yg,xg,Wy)=>(re.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(mf,Cp,Yg,xg,Wy)),onReleaseOldSourceFile:u_,onReleaseParsedCommandLine:G_,hasInvalidatedResolutions:Nn,hasInvalidatedLibResolutions:Lr,hasChangedAutomaticTypeDirectiveNames:qi,trace:wc(e,e.trace),resolveModuleNames:wc(e,e.resolveModuleNames),getModuleResolutionCache:wc(e,e.getModuleResolutionCache),createHash:wc(e,e.createHash),resolveTypeReferenceDirectives:wc(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wc(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wc(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:wc(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:wc(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ma,jsDocParsingMode:e.jsDocParsingMode};const Cc=Ts.getSourceFile,{getSourceFileWithCache:Pc}=NR(Ts,mf=>gm(mf,k,J),(...mf)=>Cc.call(Ts,...mf));Ts.getSourceFile=Pc,(Mt=e.setCompilerHost)==null||Mt.call(e,Ts);const hc={useCaseSensitiveFileNames:$,fileExists:mf=>Ts.fileExists(mf),readFile:mf=>Ts.readFile(mf),directoryExists:mf=>Ts.directoryExists(mf),getDirectories:mf=>Ts.getDirectories(mf),realpath:Ts.realpath,readDirectory:(...mf)=>Ts.readDirectory(...mf),trace:Ts.trace,getCurrentDirectory:Ts.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ku},bl=n.getKeyForCompilationSettings(Jn);let Tc=new Set;if(bxe(h,mn,Jn,(mf,Cp)=>e.getScriptVersion(Cp),mf=>Ts.fileExists(mf),Nn,Lr,qi,ma,vo)){Ts=void 0,Ro=void 0,Tc=void 0;return}h=YQ({rootNames:mn,options:Jn,host:Ts,oldProgram:h,projectReferences:vo}),Ts=void 0,Ro=void 0,Tc=void 0,X.clearCache(),h.getTypeChecker();return;function ma(mf){const Cp=gm(mf,k,J),Yg=Ro==null?void 0:Ro.get(Cp);if(Yg!==void 0)return Yg||void 0;const xg=e.getParsedCommandLine?e.getParsedCommandLine(mf):Bl(mf);return(Ro||(Ro=new Map)).set(Cp,xg||!1),xg}function Bl(mf){const Cp=xa(mf,100);if(Cp)return Cp.path=gm(mf,k,J),Cp.resolvedPath=Cp.path,Cp.originalFileName=Cp.fileName,Zoe(Cp,hc,vf(ws(mf),k),void 0,vf(mf,k))}function G_(mf,Cp,Yg){var xg;e.getParsedCommandLine?(xg=e.onReleaseParsedCommandLine)==null||xg.call(e,mf,Cp,Yg):Cp&&u_(Cp.sourceFile,Yg)}function u_(mf,Cp){const Yg=n.getKeyForCompilationSettings(Cp);n.releaseDocumentWithKey(mf.resolvedPath,Yg,mf.scriptKind,mf.impliedNodeFormat)}function xa(mf,Cp,Yg,xg){return Ym(mf,gm(mf,k,J),Cp,Yg,xg)}function Ym(mf,Cp,Yg,xg,Wy){re.assert(Ts,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Og=e.getScriptSnapshot(mf);if(!Og)return;const pl=sce(mf,e),R_=e.getScriptVersion(mf);if(!Wy){const og=h&&h.getSourceFileByPath(Cp);if(og){if(pl===og.scriptKind||Tc.has(og.resolvedPath))return n.updateDocumentWithKey(mf,Cp,e,bl,Og,R_,pl,Yg);n.releaseDocumentWithKey(og.resolvedPath,n.getKeyForCompilationSettings(h.getCompilerOptions()),og.scriptKind,og.impliedNodeFormat),Tc.add(og.resolvedPath)}}return n.acquireDocumentWithKey(mf,Cp,e,bl,Og,R_,pl,Yg)}}function ve(){if(u===2){re.assert(h===void 0);return}return ae(),h}function we(){var kt;return(kt=e.getPackageJsonAutoImportProvider)==null?void 0:kt.call(e)}function Fe(kt,qe){const Mt=h.getTypeChecker(),ge=mn();if(!ge)return!1;for(const Nn of kt)for(const Lr of Nn.references){const qi=Jn(Lr);if(re.assertIsDefined(qi),qe.has(Lr)||Wf.isDeclarationOfSymbol(qi,ge)){qe.add(Lr),Lr.isDefinition=!0;const vo=oce(Lr,X,wc(e,e.fileExists));vo&&qe.add(vo)}else Lr.isDefinition=!1}return!0;function mn(){for(const Nn of kt)for(const Lr of Nn.references){if(qe.has(Lr)){const vo=Jn(Lr);return re.assertIsDefined(vo),Mt.getSymbolAtLocation(vo)}const qi=oce(Lr,X,wc(e,e.fileExists));if(qi&&qe.has(qi)){const vo=Jn(qi);if(vo)return Mt.getSymbolAtLocation(vo)}}}function Jn(Nn){const Lr=h.getSourceFile(Nn.fileName);if(!Lr)return;const qi=cS(Lr,Nn.textSpan.start);return Wf.Core.getAdjustedNode(qi,{use:Wf.FindReferencesUse.References})}}function et(){if(h){const kt=n.getKeyForCompilationSettings(h.getCompilerOptions());Ot(h.getSourceFiles(),qe=>n.releaseDocumentWithKey(qe.resolvedPath,kt,qe.scriptKind,qe.impliedNodeFormat)),h=void 0}}function Pe(){et(),e=void 0}function dt(kt){return ae(),h.getSyntacticDiagnostics(ie(kt),P).slice()}function Ie(kt){ae();const qe=ie(kt),Mt=h.getSemanticDiagnostics(qe,P);if(!gv(h.getCompilerOptions()))return Mt.slice();const ge=h.getDeclarationDiagnostics(qe,P);return[...Mt,...ge]}function ct(kt){return ae(),Ice(ie(kt),h,P)}function Ct(){return ae(),[...h.getOptionsDiagnostics(P),...h.getGlobalDiagnostics(P)]}function Lt(kt,qe,Mt=lx,ge){const mn={...Mt,includeCompletionsForModuleExports:Mt.includeCompletionsForModuleExports||Mt.includeExternalModuleExports,includeCompletionsWithInsertText:Mt.includeCompletionsWithInsertText||Mt.includeInsertTextCompletions};return ae(),ow.getCompletionsAtPosition(e,h,F,ie(kt),qe,mn,Mt.triggerCharacter,Mt.triggerKind,P,ge&&V0.getFormatContext(ge,e),Mt.includeSymbol)}function Ze(kt,qe,Mt,ge,mn,Jn=lx,Nn){return ae(),ow.getCompletionEntryDetails(h,F,ie(kt),qe,{name:Mt,source:mn,data:Nn},e,ge&&V0.getFormatContext(ge,e),Jn,P)}function Ke(kt,qe,Mt,ge,mn=lx){return ae(),ow.getCompletionEntrySymbol(h,F,ie(kt),qe,{name:Mt,source:ge},e,mn)}function st(kt,qe){ae();const Mt=ie(kt),ge=cS(Mt,qe);if(ge===Mt)return;const mn=h.getTypeChecker(),Jn=It(ge),Nn=wqe(Jn,mn);if(!Nn||mn.isUnknownSymbol(Nn)){const Ts=Yt(Mt,Jn,qe)?mn.getTypeAtLocation(Jn):void 0;return Ts&&{kind:"",kindModifiers:"",textSpan:sT(Jn,Mt),displayParts:mn.runWithCancellationToken(P,Cc=>Rj(Cc,Ts,RR(Jn))),documentation:Ts.symbol?Ts.symbol.getDocumentationComment(mn):void 0,tags:Ts.symbol?Ts.symbol.getJsDocTags(mn):void 0}}const{symbolKind:Lr,displayParts:qi,documentation:vo,tags:Ro}=mn.runWithCancellationToken(P,Ts=>W6.getSymbolDisplayPartsDocumentationAndSymbolKind(Ts,Nn,Mt,RR(Jn),Jn));return{kind:Lr,kindModifiers:W6.getSymbolModifiers(mn,Nn),textSpan:sT(Jn,Mt),displayParts:qi,documentation:vo,tags:Ro}}function It(kt){return sb(kt.parent)&&kt.pos===kt.parent.pos?kt.parent.expression:g6(kt.parent)&&kt.pos===kt.parent.pos||gP(kt.parent)&&kt.parent.name===kt||Fm(kt.parent)?kt.parent:kt}function Yt(kt,qe,Mt){switch(qe.kind){case 80:return!g4(qe)&&!KW(qe)&&!ky(qe.parent);case 211:case 166:return!tw(kt,Mt);case 110:case 197:case 108:case 202:return!0;case 236:return gP(qe);default:return!1}}function Et(kt,qe,Mt,ge){return ae(),D4.getDefinitionAtPosition(h,ie(kt),qe,Mt,ge)}function at(kt,qe){return ae(),D4.getDefinitionAndBoundSpan(h,ie(kt),qe)}function Qt(kt,qe){return ae(),D4.getTypeDefinitionAtPosition(h.getTypeChecker(),ie(kt),qe)}function nn(kt,qe){return ae(),Wf.getImplementationsAtPosition(h,P,h.getSourceFiles(),ie(kt),qe)}function Rn(kt,qe,Mt){const ge=hf(kt);re.assert(Mt.some(Nn=>hf(Nn)===ge)),ae();const mn=Qo(Mt,Nn=>h.getSourceFile(Nn)),Jn=ie(kt);return yhe.getDocumentHighlights(h,P,Jn,qe,mn)}function cn(kt,qe,Mt,ge,mn){ae();const Jn=ie(kt),Nn=DZ(cS(Jn,qe));if(v0e.nodeIsEligibleForRename(Nn))if(xn(Nn)&&(Pb(Nn.parent)||iD(Nn.parent))&&EH(Nn.escapedText)){const{openingElement:Lr,closingElement:qi}=Nn.parent.parent;return[Lr,qi].map(vo=>{const Ro=sT(vo.tagName,Jn);return{fileName:Jn.fileName,textSpan:Ro,...Wf.toContextSpan(Ro,Jn,vo.parent)}})}else{const Lr=OS(Jn,mn??lx),qi=typeof mn=="boolean"?mn:mn==null?void 0:mn.providePrefixAndSuffixTextForRename;return Kt(Nn,qe,{findInStrings:Mt,findInComments:ge,providePrefixAndSuffixTextForRename:qi,use:Wf.FindReferencesUse.Rename},(vo,Ro,Ts)=>Wf.toRenameLocation(vo,Ro,Ts,qi||!1,Lr))}}function qt(kt,qe){return ae(),Kt(cS(ie(kt),qe),qe,{use:Wf.FindReferencesUse.References},Wf.toReferenceEntry)}function Kt(kt,qe,Mt,ge){ae();const mn=Mt&&Mt.use===Wf.FindReferencesUse.Rename?h.getSourceFiles().filter(Jn=>!h.isSourceFileDefaultLibrary(Jn)):h.getSourceFiles();return Wf.findReferenceOrRenameEntries(h,P,mn,kt,qe,Mt,ge)}function wr(kt,qe){return ae(),Wf.findReferencedSymbols(h,P,h.getSourceFiles(),ie(kt),qe)}function Wr(kt){return ae(),Wf.Core.getReferencesForFileName(kt,h,h.getSourceFiles()).map(Wf.toReferenceEntry)}function jt(kt,qe,Mt,ge=!1,mn=!1){ae();const Jn=Mt?[ie(Mt)]:h.getSourceFiles();return s3e(Jn,h.getTypeChecker(),P,kt,qe,ge,mn)}function En(kt,qe,Mt){ae();const ge=ie(kt),mn=e.getCustomTransformers&&e.getCustomTransformers();return O4e(h,ge,!!qe,P,mn,Mt)}function fr(kt,qe,{triggerReason:Mt}=lx){ae();const ge=ie(kt);return gue.getSignatureHelpItems(h,ge,qe,Mt,P)}function Tr(kt){return d.getCurrentSourceFile(kt)}function Vr(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=cS(ge,qe);if(mn===ge)return;switch(mn.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 Jn=mn;for(;;)if(sS(Jn)||wA(Jn))Jn=Jn.parent;else if(U$(Jn))if(Jn.parent.parent.kind===267&&Jn.parent.parent.body===Jn.parent)Jn=Jn.parent.parent.name;else break;else break;return Yy(Jn.getStart(),mn.getEnd())}function Pn(kt,qe){const Mt=d.getCurrentSourceFile(kt);return TDe.spanInSourceFileAtLocation(Mt,qe)}function Fr(kt){return f3e(d.getCurrentSourceFile(kt),P)}function Ki(kt){return q3(d.getCurrentSourceFile(kt),P)}function io(kt,qe,Mt){return ae(),(Mt||"original")==="2020"?aDe(h,P,ie(kt),qe):JAe(h.getTypeChecker(),P,ie(kt),h.getClassifiableNames(),qe)}function no(kt,qe,Mt){return ae(),(Mt||"original")==="original"?$Ae(h.getTypeChecker(),P,ie(kt),h.getClassifiableNames(),qe):sDe(h,P,ie(kt),qe)}function os(kt,qe){return hhe(P,d.getCurrentSourceFile(kt),qe)}function Mo(kt,qe){return qAe(P,d.getCurrentSourceFile(kt),qe)}function $i(kt){const qe=d.getCurrentSourceFile(kt);return Pke.collectElements(qe,P)}const ki=new Map(Object.entries({19:20,21:22,23:24,32:30}));ki.forEach((kt,qe)=>ki.set(kt.toString(),Number(qe)));function gc(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=MR(Mt,qe),mn=ge.getStart(Mt)===qe?ki.get(ge.kind.toString()):void 0,Jn=mn&&qm(ge.parent,mn,Mt);return Jn?[sT(ge,Mt),sT(Jn,Mt)].sort((Nn,Lr)=>Nn.start-Lr.start):Yn}function Wl(kt,qe,Mt){let ge=H_();const mn=lle(Mt),Jn=d.getCurrentSourceFile(kt);F("getIndentationAtPosition: getCurrentSourceFile: "+(H_()-ge)),ge=H_();const Nn=V0.SmartIndenter.getIndentation(qe,Jn,mn);return F("getIndentationAtPosition: computeIndentation : "+(H_()-ge)),Nn}function Jc(kt,qe,Mt,ge){const mn=d.getCurrentSourceFile(kt);return V0.formatSelection(qe,Mt,mn,V0.getFormatContext(lle(ge),e))}function au(kt,qe){return V0.formatDocument(d.getCurrentSourceFile(kt),V0.getFormatContext(lle(qe),e))}function qn(kt,qe,Mt,ge){const mn=d.getCurrentSourceFile(kt),Jn=V0.getFormatContext(lle(ge),e);if(!tw(mn,qe))switch(Mt){case"{":return V0.formatOnOpeningCurly(qe,mn,Jn);case"}":return V0.formatOnClosingCurly(qe,mn,Jn);case";":return V0.formatOnSemicolon(qe,mn,Jn);case` -`:return V0.formatOnEnter(qe,mn,Jn)}return[]}function za(kt,qe,Mt,ge,mn,Jn=lx){ae();const Nn=ie(kt),Lr=Yy(qe,Mt),qi=V0.getFormatContext(mn,e);return ea(th(ge,_1,pf),vo=>(P.throwIfCancellationRequested(),fT.getFixes({errorCode:vo,sourceFile:Nn,span:Lr,program:h,host:e,cancellationToken:P,formatContext:qi,preferences:Jn})))}function Ia(kt,qe,Mt,ge=lx){ae(),re.assert(kt.type==="file");const mn=ie(kt.fileName),Jn=V0.getFormatContext(Mt,e);return fT.getAllFixes({fixId:qe,sourceFile:mn,program:h,host:e,cancellationToken:P,formatContext:Jn,preferences:ge})}function zi(kt,qe,Mt=lx){ae(),re.assert(kt.type==="file");const ge=ie(kt.fileName),mn=V0.getFormatContext(qe,e),Jn=kt.mode??(kt.skipDestructiveCodeActions?"SortAndCombine":"All");return lD.organizeImports(ge,mn,e,h,Mt,Jn)}function na(kt,qe,Mt,ge=lx){return QAe(ve(),kt,qe,e,V0.getFormatContext(Mt,e),ge,X)}function _a(kt,qe){const Mt=typeof kt=="string"?qe:kt;return ls(Mt)?Promise.all(Mt.map(ge=>us(ge))):us(Mt)}function us(kt){const qe=Mt=>gm(Mt,k,J);return re.assertEqual(kt.type,"install package"),e.installPackage?e.installPackage({fileName:qe(kt.file),packageName:kt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Au(kt,qe,Mt,ge){const mn=ge?V0.getFormatContext(ge,e).options:void 0;return nO.getDocCommentTemplateAtPosition(R6(e,mn),d.getCurrentSourceFile(kt),qe,Mt)}function Qu(kt,qe,Mt){if(Mt===60)return!1;const ge=d.getCurrentSourceFile(kt);if(V3(ge,qe))return!1;if(LR(ge,qe))return Mt===123;if(Qse(ge,qe))return!1;switch(Mt){case 39:case 34:case 96:return!tw(ge,qe)}return!0}function Cu(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=bv(qe,Mt);if(!ge)return;const mn=ge.kind===32&&Pb(ge.parent)?ge.parent.parent:SR(ge)&&zx(ge.parent)?ge.parent:void 0;if(mn&&Mr(mn))return{newText:``};const Jn=ge.kind===32&&v6(ge.parent)?ge.parent.parent:SR(ge)&&Ek(ge.parent)?ge.parent:void 0;if(Jn&&Pr(Jn))return{newText:""}}function yf(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=bv(qe,Mt);if(!ge||ge.parent.kind===312)return;const mn="[a-zA-Z0-9:\\-\\._$]*";if(Ek(ge.parent.parent)){const Jn=ge.parent.parent.openingFragment,Nn=ge.parent.parent.closingFragment;if(qz(Jn)||qz(Nn))return;const Lr=Jn.getStart(Mt)+1,qi=Nn.getStart(Mt)+2;return qe!==Lr&&qe!==qi?void 0:{ranges:[{start:Lr,length:0},{start:qi,length:0}],wordPattern:mn}}else{const Jn=Ua(ge.parent,Pc=>!!(Pb(Pc)||iD(Pc)));if(!Jn)return;re.assert(Pb(Jn)||iD(Jn),"tag should be opening or closing element");const Nn=Jn.parent.openingElement,Lr=Jn.parent.closingElement,qi=Nn.tagName.getStart(Mt),vo=Nn.tagName.end,Ro=Lr.tagName.getStart(Mt),Ts=Lr.tagName.end;return!(qi<=qe&&qe<=vo||Ro<=qe&&qe<=Ts)||Nn.tagName.getText(Mt)!==Lr.tagName.getText(Mt)?void 0:{ranges:[{start:qi,length:vo-qi},{start:Ro,length:Ts-Ro}],wordPattern:mn}}}function w_(kt,qe){return{lineStarts:kt.getLineStarts(),firstLine:kt.getLineAndCharacterOfPosition(qe.pos).line,lastLine:kt.getLineAndCharacterOfPosition(qe.end).line}}function Eu(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=[],{lineStarts:Jn,firstLine:Nn,lastLine:Lr}=w_(ge,qe);let qi=Mt||!1,vo=Number.MAX_VALUE;const Ro=new Map,Ts=new RegExp(/\S/),Cc=Zse(ge,Jn[Nn]),Pc=Cc?"{/*":"//";for(let hc=Nn;hc<=Lr;hc++){const bl=ge.text.substring(Jn[hc],ge.getLineEndOfPosition(Jn[hc])),Tc=Ts.exec(bl);Tc&&(vo=Math.min(vo,Tc.index),Ro.set(hc.toString(),Tc.index),bl.substr(Tc.index,Pc.length)!==Pc&&(qi=Mt===void 0||Mt))}for(let hc=Nn;hc<=Lr;hc++){if(Nn!==Lr&&Jn[hc]===qe.end)continue;const bl=Ro.get(hc.toString());bl!==void 0&&(Cc?mn.push(...He(kt,{pos:Jn[hc]+vo,end:ge.getLineEndOfPosition(Jn[hc])},qi,Cc)):qi?mn.push({newText:Pc,span:{length:0,start:Jn[hc]+vo}}):ge.text.substr(Jn[hc]+bl,Pc.length)===Pc&&mn.push({newText:"",span:{length:Pc.length,start:Jn[hc]+bl}}))}return mn}function He(kt,qe,Mt,ge){var mn;const Jn=d.getCurrentSourceFile(kt),Nn=[],{text:Lr}=Jn;let qi=!1,vo=Mt||!1;const Ro=[];let{pos:Ts}=qe;const Cc=ge!==void 0?ge:Zse(Jn,Ts),Pc=Cc?"{/*":"/*",hc=Cc?"*/}":"*/",bl=Cc?"\\{\\/\\*":"\\/\\*",Tc=Cc?"\\*\\/\\}":"\\*\\/";for(;Ts<=qe.end;){const Tf=Lr.substr(Ts,Pc.length)===Pc?Pc.length:0,ma=tw(Jn,Ts+Tf);if(ma)Cc&&(ma.pos--,ma.end++),Ro.push(ma.pos),ma.kind===3&&Ro.push(ma.end),qi=!0,Ts=ma.end+1;else{const Bl=Lr.substring(Ts,qe.end).search(`(${bl})|(${Tc})`);vo=Mt!==void 0?Mt:vo||!cT(Lr,Ts,Bl===-1?qe.end:Ts+Bl),Ts=Bl===-1?qe.end+1:Ts+Bl+hc.length}}if(vo||!qi){((mn=tw(Jn,qe.pos))==null?void 0:mn.kind)!==2&&d0(Ro,qe.pos,pf),d0(Ro,qe.end,pf);const Tf=Ro[0];Lr.substr(Tf,Pc.length)!==Pc&&Nn.push({newText:Pc,span:{length:0,start:Tf}});for(let ma=1;ma0?Tf-hc.length:0,Bl=Lr.substr(ma,hc.length)===hc?hc.length:0;Nn.push({newText:"",span:{length:Pc.length,start:Tf-Bl}})}return Nn}function Hn(kt,qe){const Mt=d.getCurrentSourceFile(kt),{firstLine:ge,lastLine:mn}=w_(Mt,qe);return ge===mn&&qe.pos!==qe.end?He(kt,qe,!0):Eu(kt,qe,!0)}function dr(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=[],{pos:mn}=qe;let{end:Jn}=qe;mn===Jn&&(Jn+=Zse(Mt,mn)?2:1);for(let Nn=mn;Nn<=Jn;Nn++){const Lr=tw(Mt,Nn);if(Lr){switch(Lr.kind){case 2:ge.push(...Eu(kt,{end:Lr.end,pos:Lr.pos+1},!1));break;case 3:ge.push(...He(kt,{end:Lr.end,pos:Lr.pos+1},!1))}Nn=Lr.end+1}}return ge}function Mr({openingElement:kt,closingElement:qe,parent:Mt}){return!r4(kt.tagName,qe.tagName)||zx(Mt)&&r4(kt.tagName,Mt.openingElement.tagName)&&Mr(Mt)}function Pr({closingFragment:kt,parent:qe}){return!!(kt.flags&262144)||Ek(qe)&&Pr(qe)}function Bt(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=V0.getRangeOfEnclosingComment(ge,qe);return mn&&(!Mt||mn.kind===3)?PP(mn):void 0}function ln(kt,qe){ae();const Mt=ie(kt);P.throwIfCancellationRequested();const ge=Mt.text,mn=[];if(qe.length>0&&!qi(Mt.fileName)){const vo=Nn();let Ro;for(;Ro=vo.exec(ge);){P.throwIfCancellationRequested();const Ts=3;re.assert(Ro.length===qe.length+Ts);const Cc=Ro[1],Pc=Ro.index+Cc.length;if(!tw(Mt,Pc))continue;let hc;for(let Tc=0;Tc"("+Jn(ma.text)+")").join("|")+")",hc=/(?:$|\*\/)/.source,bl=/(?:.*?)/.source,Tc="("+Pc+bl+")",Tf=Cc+Tc+hc;return new RegExp(Tf,"gim")}function Lr(vo){return vo>=97&&vo<=122||vo>=65&&vo<=90||vo>=48&&vo<=57}function qi(vo){return vo.includes("/node_modules/")}}function Wn(kt,qe,Mt){return ae(),v0e.getRenameInfo(h,ie(kt),qe,Mt||{})}function $r(kt,qe,Mt,ge,mn,Jn){const[Nn,Lr]=typeof qe=="number"?[qe,void 0]:[qe.pos,qe.end];return{file:kt,startPosition:Nn,endPosition:Lr,program:ve(),host:e,formatContext:V0.getFormatContext(ge,e),cancellationToken:P,preferences:Mt,triggerReason:mn,kind:Jn}}function Ge(kt,qe,Mt){return{file:kt,program:ve(),host:e,span:qe,preferences:Mt,cancellationToken:P}}function Br(kt,qe){return Mke.getSmartSelectionRange(qe,d.getCurrentSourceFile(kt))}function Ei(kt,qe,Mt=lx,ge,mn,Jn){ae();const Nn=ie(kt);return MF.getApplicableRefactors($r(Nn,qe,Mt,lx,ge,mn),Jn)}function Ln(kt,qe,Mt=lx){ae();const ge=ie(kt),mn=re.checkDefined(h.getSourceFiles()),Jn=SP(kt),Nn=Qo(mn,qi=>!(h!=null&&h.isSourceFileFromExternalLibrary(ge))&&!(ge===ie(qi.fileName)||Jn===".ts"&&SP(qi.fileName)===".d.ts"||Jn===".d.ts"&&qf(Jg(qi.fileName),"lib.")&&SP(qi.fileName)===".d.ts")&&Jn===SP(qi.fileName)?qi.fileName:void 0);return{newFileName:O3e(ge,h,$r(ge,qe,Mt,lx),e),files:Nn}}function Sr(kt,qe,Mt,ge,mn,Jn=lx,Nn){ae();const Lr=ie(kt);return MF.getEditsForRefactor($r(Lr,Mt,Jn,qe),ge,mn,Nn)}function yi(kt,qe){return qe===0?{line:0,character:0}:X.toLineColumnOffset(kt,qe)}function go(kt,qe){ae();const Mt=$j.resolveCallHierarchyDeclaration(h,cS(ie(kt),qe));return Mt&&she(Mt,ge=>$j.createCallHierarchyItem(h,ge))}function Ao(kt,qe){ae();const Mt=ie(kt),ge=XZ($j.resolveCallHierarchyDeclaration(h,qe===0?Mt:cS(Mt,qe)));return ge?$j.getIncomingCalls(h,ge,P):[]}function Io(kt,qe){ae();const Mt=ie(kt),ge=XZ($j.resolveCallHierarchyDeclaration(h,qe===0?Mt:cS(Mt,qe)));return ge?$j.getOutgoingCalls(h,ge):[]}function ze(kt,qe,Mt=lx){ae();const ge=ie(kt);return vke.provideInlayHints(Ge(ge,qe,Mt))}const Ce={dispose:Pe,cleanupSemanticCache:et,getSyntacticDiagnostics:dt,getSemanticDiagnostics:Ie,getSuggestionDiagnostics:ct,getCompilerOptionsDiagnostics:Ct,getSyntacticClassifications:os,getSemanticClassifications:io,getEncodedSyntacticClassifications:Mo,getEncodedSemanticClassifications:no,getCompletionsAtPosition:Lt,getCompletionEntryDetails:Ze,getCompletionEntrySymbol:Ke,getSignatureHelpItems:fr,getQuickInfoAtPosition:st,getDefinitionAtPosition:Et,getDefinitionAndBoundSpan:at,getImplementationAtPosition:nn,getTypeDefinitionAtPosition:Qt,getReferencesAtPosition:qt,findReferences:wr,getFileReferences:Wr,getDocumentHighlights:Rn,getNameOrDottedNameSpan:Vr,getBreakpointStatementAtPosition:Pn,getNavigateToItems:jt,getRenameInfo:Wn,getSmartSelectionRange:Br,findRenameLocations:cn,getNavigationBarItems:Fr,getNavigationTree:Ki,getOutliningSpans:$i,getTodoComments:ln,getBraceMatchingAtPosition:gc,getIndentationAtPosition:Wl,getFormattingEditsForRange:Jc,getFormattingEditsForDocument:au,getFormattingEditsAfterKeystroke:qn,getDocCommentTemplateAtPosition:Au,isValidBraceCompletionAtPosition:Qu,getJsxClosingTagAtPosition:Cu,getLinkedEditingRangeAtPosition:yf,getSpanOfEnclosingComment:Bt,getCodeFixesAtPosition:za,getCombinedCodeFix:Ia,applyCodeActionCommand:_a,organizeImports:zi,getEditsForFileRename:na,getEmitOutput:En,getNonBoundSourceFile:Tr,getProgram:ve,getCurrentProgram:()=>h,getAutoImportProvider:we,updateIsDefinitionOfReferencedSymbols:Fe,getApplicableRefactors:Ei,getEditsForRefactor:Sr,getMoveToRefactoringFileSuggestions:Ln,toLineColumnOffset:yi,getSourceMapper:()=>X,clearSourceMapperCache:()=>X.clearCache(),prepareCallHierarchy:go,provideCallHierarchyIncomingCalls:Ao,provideCallHierarchyOutgoingCalls:Io,toggleLineComment:Eu,toggleMultilineComment:He,commentSelection:Hn,uncommentSelection:dr,provideInlayHints:ze,getSupportedCodeFixes:fle};switch(u){case 0:break;case 1:hye.forEach(kt=>Ce[kt]=()=>{throw new Error(`LanguageService Operation: ${kt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:vDe.forEach(kt=>Ce[kt]=()=>{throw new Error(`LanguageService Operation: ${kt} not allowed in LanguageServiceMode.Syntactic`)});break;default:re.assertNever(u)}return Ce}function xee(e){return e.nameTable||dDe(e),e.nameTable}function dDe(e){const n=e.nameTable=new Map;e.forEachChild(function i(c){if(xn(c)&&!KW(c)&&c.escapedText||Ox(c)&&Pqe(c)){const u=nI(c);n.set(u,n.get(u)===void 0?c.pos:-1)}else if(Lu(c)){const u=c.escapedText;n.set(u,n.get(u)===void 0?c.pos:-1)}if(s_(c,i),NT(c))for(const u of c.jsDoc)s_(u,i)})}function Pqe(e){return ON(e)||e.parent.kind===283||Rqe(e)||_g(e)}function Aee(e){const n=Nqe(e);return n&&(el(n.parent)||CR(n.parent))?n:void 0}function Nqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return eY(e.parent.parent)?e.parent.parent:void 0;case 80:return eY(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function wqe(e,n){const i=Aee(e);if(i){const c=n.getContextualType(i.parent),u=c&&_le(i,n,c,!1);if(u&&u.length===1)return Dl(u)}return n.getSymbolAtLocation(e)}function _le(e,n,i,c){const u=tq(e.name);if(!u)return Yn;if(!i.isUnion()){const h=i.getProperty(u);return h?[h]:Yn}const d=Qo(i.types,h=>(el(e.parent)||CR(e.parent))&&n.isTypeInvalidDueToUnionDiscriminant(h,e.parent)?void 0:h.getProperty(u));if(c&&(d.length===0||d.length===i.types.length)){const h=i.getProperty(u);if(h)return[h]}return d.length===0?Qo(i.types,h=>h.getProperty(u)):d}function Rqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function pDe(e){if(w0)return vl(ws(hf(w0.getExecutingFilePath())),$D(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var dye,dle,pye,Mqe,EOe,mDe,Cee,Lqe,gDe,xOe,hDe,Oqe,yDe,mye,gye,hye,vDe,bDe=G({"src/services/services.ts"(){xl(),u3e(),k$e(),EI(),KAe(),TOe(),dye="0.8",dle=class{constructor(e,n,i){this.pos=n,this.end=i,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){re.assert(!ab(this.pos)&&!ab(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return ts(this)}getStart(e,n){return this.assertHasRealPosition(),v2(this,e,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,n){return this.getChildren(n)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=uDe(this,e))}getFirstToken(e){this.assertHasRealPosition();const n=this.getChildren(e);if(!n.length)return;const i=lr(n,c=>c.kind<316||c.kind>357);return i.kind<166?i:i.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const n=this.getChildren(e),i=Yf(n);if(i)return i.kind<166?i:i.getLastToken(e)}forEachChild(e,n){return s_(this,e,n)}},pye=class{constructor(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ts(this)}getStart(e,n){return v2(this,e,n)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Yn}getFirstToken(){}getLastToken(){}forEachChild(){}},Mqe=class{constructor(e,n){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=n}getFlags(){return this.flags}get name(){return Il(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Yn,!this.declarations&&Vm(this)&&this.links.target&&Vm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const n=this.links.target.links.tupleLabelDeclaration;this.documentationComment=sye([n],e)}else this.documentationComment=sye(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,n){if(e){if(PN(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=sye(gi(this.declarations,PN),n)),Nt(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(UC(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=sye(gi(this.declarations,UC),n)),Nt(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(n)}getJsDocTags(e){return this.tags===void 0&&(this.tags=_De(this.declarations,e)),this.tags}getContextualJsDocTags(e,n){if(e){if(PN(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=_De(gi(this.declarations,PN),n)),Nt(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(UC(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=_De(gi(this.declarations,UC),n)),Nt(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(n)}},EOe=class extends pye{constructor(e,n,i){super(n,i),this.kind=e}},mDe=class extends pye{constructor(e,n,i){super(n,i),this.kind=80}get text(){return Kr(this)}},mDe.prototype.kind=80,Cee=class extends pye{constructor(e,n,i){super(n,i),this.kind=81}get text(){return Kr(this)}},Cee.prototype.kind=81,Lqe=class{constructor(e,n){this.checker=e,this.flags=n}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(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!!(ji(this)&3)}isClass(){return!!(ji(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ji(this)&4)return this.checker.getTypeArguments(this)}},gDe=class{constructor(e,n){this.checker=e,this.flags=n}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const n=this.checker.getParameterType(this,e);if(n.isIndexType()&&p3(n.type)){const i=n.type.getConstraint();if(i)return this.checker.getIndexType(i)}return n}getDocumentationComment(){return this.documentationComment||(this.documentationComment=sye(X5(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=_De(X5(this.declaration),this.checker))}},xOe=class extends dle{constructor(e,n,i){super(e,n,i),this.kind=312}update(e,n){return Hoe(this,e,n)}getLineAndCharacterOfPosition(e){return xm(this,e)}getLineStarts(){return eR(this)}getPositionOfLineAndCharacter(e,n,i){return H_e(eR(this),e,n,this.text,i)}getLineEndOfPosition(e){const{line:n}=this.getLineAndCharacterOfPosition(e),i=this.getLineStarts();let c;n+1>=i.length&&(c=this.getEnd()),c||(c=i[n+1]-1);const u=this.getFullText();return u[c]===` -`&&u[c-1]==="\r"?c-1:c}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=zg();return this.forEachChild(u),e;function n(d){const h=c(d);h&&e.add(h,d)}function i(d){let h=e.get(d);return h||e.set(d,h=[]),h}function c(d){const h=Kre(d);return h&&(Qf(h)&&Ac(h.expression)?h.expression.name.text:qg(h)?tq(h):void 0)}function u(d){switch(d.kind){case 262:case 218:case 174:case 173:const h=d,S=c(h);if(S){const k=i(S),F=Yf(k);F&&h.parent===F.parent&&h.symbol===F.symbol?h.body&&!F.body&&(k[k.length-1]=h):k.push(h)}s_(d,u);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:n(d),s_(d,u);break;case 169:if(!ul(d,31))break;case 260:case 208:{const k=d;if($_(k.name)){s_(k.name,u);break}k.initializer&&u(k.initializer)}case 306:case 172:case 171:n(d);break;case 278:const E=d;E.exportClause&&(j0(E.exportClause)?Ot(E.exportClause.elements,u):u(E.exportClause.name));break;case 272:const P=d.importClause;P&&(P.name&&n(P.name),P.namedBindings&&(P.namedBindings.kind===274?n(P.namedBindings):Ot(P.namedBindings.elements,u)));break;case 226:jy(d)!==0&&n(d);default:s_(d,u)}}}},hDe=class{constructor(e,n,i){this.fileName=e,this.text=n,this.skipTrivia=i}getLineAndCharacterOfPosition(e){return xm(this,e)}},Oqe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var n,i,c,u,d,h,S,E;const P=this.host.getScriptSnapshot(e);if(!P)throw new Error("Could not find file: '"+e+"'.");const k=sce(e,this.host),F=this.host.getScriptVersion(e);let $;if(this.currentFileName!==e){const J={languageVersion:99,impliedNodeFormat:Zae(gm(e,this.host.getCurrentDirectory(),((c=(i=(n=this.host).getCompilerHost)==null?void 0:i.call(n))==null?void 0:c.getCanonicalFileName)||QC(this.host)),(E=(S=(h=(d=(u=this.host).getCompilerHost)==null?void 0:d.call(u))==null?void 0:h.getModuleResolutionCache)==null?void 0:S.call(h))==null?void 0:E.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:q9(this.host.getCompilationSettings()),jsDocParsingMode:0};$=xq(e,P,J,F,!0,k)}else if(this.currentFileVersion!==F){const J=P.getChangeRange(this.currentFileScriptSnapshot);$=fye(this.currentSourceFile,P,F,J)}return $&&(this.currentFileVersion=F,this.currentFileName=e,this.currentFileScriptSnapshot=P,this.currentSourceFile=$),this.currentSourceFile}},yDe={isCancellationRequested:bg,throwIfCancellationRequested:ku},mye=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ps)==null||e.instant(ps.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new QO}},gye=class{constructor(e,n=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=H_();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ps)==null||e.instant(ps.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new QO}},hye=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],vDe=[...hye,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],RSe(Lut())}});function AOe(e,n,i){const c=[];i=gCe(i,c);const u=ls(e)?e:[e],d=x$(void 0,void 0,he,i,u,n,!0);return d.diagnostics=Hi(d.diagnostics,c),d}var Fqe=G({"src/services/transform.ts"(){xl()}});function Wqe(e,n){if(e.isDeclarationFile)return;let i=Lf(e,n);const c=e.getLineAndCharacterOfPosition(n).line;if(e.getLineAndCharacterOfPosition(i.getStart(e)).line>c){const F=bv(i.pos,e);if(!F||e.getLineAndCharacterOfPosition(F.getEnd()).line!==c)return;i=F}if(i.flags&33554432)return;return k(i);function u(F,$){const J=S6(F)?ra(F.modifiers,Jh):void 0,X=J?Ff(e.text,J.end):F.getStart(e);return Yy(X,($||F).getEnd())}function d(F,$){return u(F,N6($,$.parent,e))}function h(F,$){return F&&c===e.getLineAndCharacterOfPosition(F.getStart(e)).line?k(F):k($)}function S(F,$,J){if(F){const X=F.indexOf($);if(X>=0){let ie=X,ae=X+1;for(;ie>0&&J(F[ie-1]);)ie--;for(;ae0)return k(Qt.declarations[0])}else return k(at.initializer)}function Pe(at){if(at.initializer)return et(at);if(at.condition)return u(at.condition);if(at.incrementor)return u(at.incrementor)}function dt(at){const Qt=Ot(at.elements,nn=>nn.kind!==232?nn:void 0);return Qt?k(Qt):at.parent.kind===208?u(at.parent):$(at.parent)}function Ie(at){re.assert(at.kind!==207&&at.kind!==206);const Qt=at.kind===209?at.elements:at.properties,nn=Ot(Qt,Rn=>Rn.kind!==232?Rn:void 0);return nn?k(nn):u(at.parent.kind===226?at.parent:at)}function ct(at){switch(at.parent.kind){case 266:const Qt=at.parent;return h(bv(at.pos,e,at.parent),Qt.members.length?Qt.members[0]:Qt.getLastToken(e));case 263:const nn=at.parent;return h(bv(at.pos,e,at.parent),nn.members.length?nn.members[0]:nn.getLastToken(e));case 269:return h(at.parent.parent,at.parent.clauses[0])}return k(at.parent)}function Ct(at){switch(at.parent.kind){case 268:if(YN(at.parent.parent)!==1)return;case 266:case 263:return u(at);case 241:if(hP(at.parent))return u(at);case 299:return k(Yf(at.parent.statements));case 269:const Qt=at.parent,nn=Yf(Qt.clauses);return nn?k(Yf(nn.statements)):void 0;case 206:const Rn=at.parent;return k(Yf(Rn.elements)||Rn);default:if(kP(at.parent)){const cn=at.parent;return u(Yf(cn.properties)||cn)}return k(at.parent)}}function Lt(at){switch(at.parent.kind){case 207:const Qt=at.parent;return u(Yf(Qt.elements)||Qt);default:if(kP(at.parent)){const nn=at.parent;return u(Yf(nn.elements)||nn)}return k(at.parent)}}function Ze(at){return at.parent.kind===246||at.parent.kind===213||at.parent.kind===214?E(at):at.parent.kind===217?P(at):k(at.parent)}function Ke(at){switch(at.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 E(at);default:return k(at.parent)}}function st(at){return F_(at.parent)||at.parent.kind===303||at.parent.kind===169?E(at):k(at.parent)}function It(at){return at.parent.kind===216?P(at):k(at.parent)}function Yt(at){return at.parent.kind===246?d(at,at.parent.expression):k(at.parent)}function Et(at){return at.parent.kind===250?P(at):k(at.parent)}}}var Bqe=G({"src/services/breakpoints.ts"(){xl()}}),TDe={};Oe(TDe,{spanInSourceFileAtLocation:()=>Wqe});var Out=G({"src/services/_namespaces/ts.BreakpointResolver.ts"(){Bqe()}});function Fut(e){return(Jm(e)||v0(e))&&mp(e)}function Aq(e){return(Jm(e)||$m(e)||v0(e))&&Kc(e.parent)&&e===e.parent.initializer&&xn(e.parent.name)&&!!(rR(e.parent)&2)}function zqe(e){return Nu(e)||py(e)||mg(e)||Jm(e)||Ih(e)||v0(e)||Ep(e)||tm(e)||pg(e)||lE(e)||Xb(e)}function Cq(e){return Nu(e)||py(e)&&xn(e.name)||mg(e)||Ih(e)||Ep(e)||tm(e)||pg(e)||lE(e)||Xb(e)||Fut(e)||Aq(e)}function Dee(e){return Nu(e)?e:mp(e)?e.name:Aq(e)?e.parent.name:re.checkDefined(e.modifiers&&lr(e.modifiers,COe))}function COe(e){return e.kind===90}function Jj(e,n){const i=Dee(n);return i&&e.getSymbolAtLocation(i)}function Gqe(e,n){if(Nu(n))return{text:n.fileName,pos:0,end:0};if((mg(n)||Ih(n))&&!mp(n)){const u=n.modifiers&&lr(n.modifiers,COe);if(u)return{text:"default",pos:u.getStart(),end:u.getEnd()}}if(Ep(n)){const u=n.getSourceFile(),d=Ff(u.text,Db(n).pos),h=d+6,S=e.getTypeChecker(),E=S.getSymbolAtLocation(n.parent);return{text:`${E?`${S.symbolToString(E,n.parent)} `:""}static {}`,pos:d,end:h}}const i=Aq(n)?n.parent.name:re.checkDefined(i_(n),"Expected call hierarchy item to have a name");let c=xn(i)?Kr(i):Ox(i)?i.text:Qf(i)&&Ox(i.expression)?i.expression.text:void 0;if(c===void 0){const u=e.getTypeChecker(),d=u.getSymbolAtLocation(i);d&&(c=u.symbolToString(d,n))}if(c===void 0){const u=C$();c=wT(d=>u.writeNode(4,n,n.getSourceFile(),d))}return{text:c,pos:i.getStart(),end:i.getEnd()}}function jqe(e){var n,i;if(Aq(e))return kh(e.parent.parent.parent.parent)&&xn(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(n=FU(e.parent))==null?void 0:n.getText():(i=i_(e.parent))==null?void 0:i.getText();case 262:case 263:case 267:if(kh(e.parent)&&xn(e.parent.parent.name))return e.parent.parent.name.getText()}}function DOe(e,n){if(n.body)return n;if(Lh(n))return sC(n.parent);if(mg(n)||tm(n)){const i=Jj(e,n);return i&&i.valueDeclaration&&Vd(i.valueDeclaration)&&i.valueDeclaration.body?i.valueDeclaration:void 0}return n}function Vqe(e,n){const i=Jj(e,n);let c;if(i&&i.declarations){const u=Cy(i.declarations),d=Vn(i.declarations,E=>({file:E.getSourceFile().fileName,pos:E.pos}));u.sort((E,P)=>Fp(d[E].file,d[P].file)||d[E].pos-d[P].pos);const h=Vn(u,E=>i.declarations[E]);let S;for(const E of h)Cq(E)&&((!S||S.parent!==E.parent||S.end!==E.pos)&&(c=ur(c,E)),S=E)}return c}function SDe(e,n){return Ep(n)?n:Vd(n)?DOe(e,n)??Vqe(e,n)??n:Vqe(e,n)??n}function IOe(e,n){const i=e.getTypeChecker();let c=!1;for(;;){if(Cq(n))return SDe(i,n);if(zqe(n)){const u=Ua(n,Cq);return u&&SDe(i,u)}if(ON(n)){if(Cq(n.parent))return SDe(i,n.parent);if(zqe(n.parent)){const u=Ua(n.parent,Cq);return u&&SDe(i,u)}return Kc(n.parent)&&n.parent.initializer&&Aq(n.parent.initializer)?n.parent.initializer:void 0}if(Lh(n))return Cq(n.parent)?n.parent:void 0;if(n.kind===126&&Ep(n.parent)){n=n.parent;continue}if(Kc(n)&&n.initializer&&Aq(n.initializer))return n.initializer;if(!c){let u=i.getSymbolAtLocation(n);if(u&&(u.flags&2097152&&(u=i.getAliasedSymbol(u)),u.valueDeclaration)){c=!0,n=u.valueDeclaration;continue}}return}}function EDe(e,n){const i=n.getSourceFile(),c=Gqe(e,n),u=jqe(n),d=h4(n),h=X$(n),S=Yy(Ff(i.text,n.getFullStart(),!1,!0),n.getEnd()),E=Yy(c.pos,c.end);return{file:i.fileName,kind:d,kindModifiers:h,name:c.text,containerName:u,span:S,selectionSpan:E}}function xDe(e){return e!==void 0}function Uqe(e){if(e.kind===Wf.EntryKind.Node){const{node:n}=e;if(yZ(n,!0,!0)||vZ(n,!0,!0)||bZ(n,!0,!0)||Mge(n,!0,!0)||sS(n)||Oge(n)){const i=n.getSourceFile();return{declaration:Ua(n,Cq)||i,range:RZ(n,i)}}}}function ADe(e){return vm(e.declaration)}function Wut(e,n){return{from:e,fromSpans:n}}function But(e,n){return Wut(EDe(e,n[0].declaration),Vn(n,i=>PP(i.range)))}function Hqe(e,n,i){if(Nu(n)||py(n)||Ep(n))return[];const c=Dee(n),u=gi(Wf.findReferenceOrRenameEntries(e,i,e.getSourceFiles(),c,0,{use:Wf.FindReferencesUse.References},Uqe),xDe);return u?BD(u,ADe,d=>But(e,d)):[]}function zut(e,n){function i(u){const d=Dm(u)?u.tag:m1(u)?u.tagName:Kf(u)||Ep(u)?u:u.expression,h=IOe(e,d);if(h){const S=RZ(d,u.getSourceFile());if(ls(h))for(const E of h)n.push({declaration:E,range:S});else n.push({declaration:h,range:S})}}function c(u){if(u&&!(u.flags&33554432)){if(Cq(u)){if(Fl(u))for(const d of u.members)d.name&&Qf(d.name)&&c(d.name.expression);return}switch(u.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:i(u);return;case 216:case 234:c(u.expression);return;case 260:case 169:c(u.name),c(u.initializer);return;case 213:i(u),c(u.expression),Ot(u.arguments,c);return;case 214:i(u),c(u.expression),Ot(u.arguments,c);return;case 215:i(u),c(u.tag),c(u.template);return;case 286:case 285:i(u),c(u.tagName),c(u.attributes);return;case 170:i(u),c(u.expression);return;case 211:case 212:i(u),s_(u,c);break;case 238:c(u.expression);return}BE(u)||s_(u,c)}}return c}function Gut(e,n){Ot(e.statements,n)}function jut(e,n){!ul(e,128)&&e.body&&kh(e.body)&&Ot(e.body.statements,n)}function Vut(e,n,i){const c=DOe(e,n);c&&(Ot(c.parameters,i),i(c.body))}function Uut(e,n){n(e.body)}function Hut(e,n){Ot(e.modifiers,n);const i=gR(e);i&&n(i.expression);for(const c of e.members)DA(c)&&Ot(c.modifiers,n),nu(c)?n(c.initializer):Lh(c)&&c.body?(Ot(c.parameters,n),n(c.body)):Ep(c)&&n(c)}function Jut(e,n){const i=[],c=zut(e,i);switch(n.kind){case 312:Gut(n,c);break;case 267:jut(n,c);break;case 262:case 218:case 219:case 174:case 177:case 178:Vut(e.getTypeChecker(),n,c);break;case 263:case 231:Hut(n,c);break;case 175:Uut(n,c);break;default:re.assertNever(n)}return i}function $ut(e,n){return{to:e,fromSpans:n}}function qut(e,n){return $ut(EDe(e,n[0].declaration),Vn(n,i=>PP(i.range)))}function Kut(e,n){return n.flags&33554432||pg(n)?[]:BD(Jut(e,n),ADe,i=>qut(e,i))}var Xut=G({"src/services/callHierarchy.ts"(){xl()}}),$j={};Oe($j,{createCallHierarchyItem:()=>EDe,getIncomingCalls:()=>Hqe,getOutgoingCalls:()=>Kut,resolveCallHierarchyDeclaration:()=>IOe});var Yut=G({"src/services/_namespaces/ts.CallHierarchy.ts"(){Xut()}}),Jqe={};Oe(Jqe,{TokenEncodingConsts:()=>See,TokenModifier:()=>lDe,TokenType:()=>cDe,getEncodedSemanticClassifications:()=>sDe,getSemanticClassifications:()=>aDe});var Dq=G({"src/services/_namespaces/ts.classifier.v2020.ts"(){TOe()}}),kOe={};Oe(kOe,{v2020:()=>Jqe});var $qe=G({"src/services/_namespaces/ts.classifier.ts"(){Dq()}});function xI(e,n,i){return mC(e,$3(i),n,void 0,void 0)}function Rd(e,n,i,c,u,d){return mC(e,$3(i),n,c,$3(u),d)}function POe(e,n,i,c,u,d){return mC(e,$3(i),n,c,u&&$3(u),d)}function mC(e,n,i,c,u,d){return{fixName:e,description:n,changes:i,fixId:c,fixAllDescription:u,commands:d?[d]:void 0}}function Hc(e){for(const n of e.errorCodes)CDe=void 0,Km.add(String(n),e);if(e.fixIds)for(const n of e.fixIds)re.assert(!LF.has(n)),LF.set(n,e)}function NOe(){return CDe??(CDe=oc(Km.keys()))}function wOe(e,n){const{errorCodes:i}=e;let c=0;for(const d of n)if(ni(i,d.code)&&c++,c>1)break;const u=c<2;return({fixId:d,fixAllDescription:h,...S})=>u?S:{...S,fixId:d,fixAllDescription:h}}function up(e){const n=ROe(e),i=Km.get(String(e.errorCode));return ea(i,c=>Vn(c.getCodeActions(e),wOe(c,n)))}function Qut(e){return LF.get(uc(e.fixId,As)).getAllCodeActions(e)}function Iq(e,n){return{changes:e,commands:n}}function qqe(e,n){return{fileName:e,textChanges:n}}function Sg(e,n,i){const c=[],u=zs.ChangeTracker.with(e,d=>GR(e,n,h=>i(d,h,c)));return Iq(u,c.length===0?void 0:c)}function GR(e,n,i){for(const c of ROe(e))ni(n,c.code)&&i(c)}function ROe({program:e,sourceFile:n,cancellationToken:i}){return[...e.getSemanticDiagnostics(n,i),...e.getSyntacticDiagnostics(n,i),...Ice(n,e,i)]}var Km,LF,CDe,DDe=G({"src/services/codeFixProvider.ts"(){xl(),Km=zg(),LF=new Map}});function yye(e,n,i){const c=eF(i)?he.createAsExpression(i.expression,he.createKeywordTypeNode(159)):he.createTypeAssertion(he.createKeywordTypeNode(159),i.expression);e.replaceNode(n,i.expression,c)}function IDe(e,n){if(!Cs(e))return Ua(Lf(e,n),i=>eF(i)||ph(i))}var kDe,PDe,Kqe=G({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){xl(),If(),kDe="addConvertToUnknownForNonOverlappingTypes",PDe=[N.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],Hc({errorCodes:PDe,getCodeActions:function(n){const i=IDe(n.sourceFile,n.span.start);if(i===void 0)return;const c=zs.ChangeTracker.with(n,u=>yye(u,n.sourceFile,i));return[Rd(kDe,c,N.Add_unknown_conversion_for_non_overlapping_types,kDe,N.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[kDe],getAllCodeActions:e=>Sg(e,PDe,(n,i)=>{const c=IDe(i.file,i.start);c&&yye(n,i.file,c)})})}}),NDe=G({"src/services/codefixes/addEmptyExportDeclaration.ts"(){xl(),If(),Hc({errorCodes:[N.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,N.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,N.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(n){const{sourceFile:i}=n,c=zs.ChangeTracker.with(n,u=>{const d=he.createExportDeclaration(void 0,!1,he.createNamedExports([]),void 0);u.insertNodeAtEndOfScope(i,i,d)});return[xI("addEmptyExportDeclaration",c,N.Add_export_to_make_this_file_into_a_module)]}})}});function wDe(e,n,i,c){const u=i(d=>Zut(d,e.sourceFile,n,c));return Rd(RDe,u,N.Add_async_modifier_to_containing_function,RDe,N.Add_all_missing_async_modifiers)}function Zut(e,n,i,c){if(c&&c.has(vm(i)))return;c==null||c.add(vm(i));const u=he.replaceModifiers(ih(i,!0),he.createNodeArray(he.createModifiersFromModifierFlags(ZC(i)|1024)));e.replaceNode(n,i,u)}function Xqe(e,n){if(!n)return;const i=Lf(e,n.start);return Ua(i,u=>u.getStart(e)Xy(n)?"quit":($m(u)||tm(u)||Jm(u)||mg(u))&&C1(n,sT(u,e)))}function Yqe(e,n){return({start:i,length:c,relatedInformation:u,code:d})=>U1(i)&&U1(c)&&C1({start:i,length:c},e)&&d===n&&!!u&>(u,h=>h.code===N.Did_you_mean_to_mark_this_function_as_async.code)}var RDe,MDe,eft=G({"src/services/codefixes/addMissingAsync.ts"(){xl(),If(),RDe="addMissingAsync",MDe=[N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Type_0_is_not_assignable_to_type_1.code,N.Type_0_is_not_comparable_to_type_1.code],Hc({fixIds:[RDe],errorCodes:MDe,getCodeActions:function(n){const{sourceFile:i,errorCode:c,cancellationToken:u,program:d,span:h}=n,S=lr(d.getTypeChecker().getDiagnostics(i,u),Yqe(h,c)),E=S&&S.relatedInformation&&lr(S.relatedInformation,F=>F.code===N.Did_you_mean_to_mark_this_function_as_async.code),P=Xqe(i,E);return P?[wDe(n,P,F=>zs.ChangeTracker.with(n,F))]:void 0},getAllCodeActions:e=>{const{sourceFile:n}=e,i=new Set;return Sg(e,MDe,(c,u)=>{const d=u.relatedInformation&&lr(u.relatedInformation,E=>E.code===N.Did_you_mean_to_mark_this_function_as_async.code),h=Xqe(n,d);return h?wDe(e,h,E=>(E(c),[]),i):void 0})}})}});function vye(e,n,i,c,u){const d=FAe(e,i);return d&&Zqe(e,n,i,c,u)&&nKe(d)?d:void 0}function LDe(e,n,i,c,u,d){const{sourceFile:h,program:S,cancellationToken:E}=e,P=eKe(n,h,E,S,c);if(P){const k=u(F=>{Ot(P.initializers,({expression:$})=>MOe(F,i,h,c,$,d)),d&&P.needsSecondPassForFixAll&&MOe(F,i,h,c,n,d)});return xI("addMissingAwaitToInitializer",k,P.initializers.length===1?[N.Add_await_to_initializer_for_0,P.initializers[0].declarationSymbol.name]:N.Add_await_to_initializers)}}function Qqe(e,n,i,c,u,d){const h=u(S=>MOe(S,i,e.sourceFile,c,n,d));return Rd(bye,h,N.Add_await,bye,N.Fix_all_expressions_possibly_missing_await)}function Zqe(e,n,i,c,u){const h=u.getTypeChecker().getDiagnostics(e,c);return gt(h,({start:S,length:E,relatedInformation:P,code:k})=>U1(S)&&U1(E)&&C1({start:S,length:E},i)&&k===n&&!!P&>(P,F=>F.code===N.Did_you_forget_to_use_await.code))}function eKe(e,n,i,c,u){const d=tKe(e,u);if(!d)return;let h=d.isCompleteFix,S;for(const E of d.identifiers){const P=u.getSymbolAtLocation(E);if(!P)continue;const k=to(P.valueDeclaration,Kc),F=k&&to(k.name,xn),$=oC(k,243);if(!k||!$||k.type||!k.initializer||$.getSourceFile()!==n||ul($,32)||!F||!nKe(k.initializer)){h=!1;continue}const J=c.getSemanticDiagnostics(n,i);if(Wf.Core.eachSymbolReferenceInFile(F,u,n,ie=>E!==ie&&!tft(ie,J,n,u))){h=!1;continue}(S||(S=[])).push({expression:k.initializer,declarationSymbol:P})}return S&&{initializers:S,needsSecondPassForFixAll:!h}}function tKe(e,n){if(Ac(e.parent)&&xn(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(xn(e))return{identifiers:[e],isCompleteFix:!0};if(Ds(e)){let i,c=!0;for(const u of[e.left,e.right]){const d=n.getTypeAtLocation(u);if(n.getPromisedTypeOfPromise(d)){if(!xn(u)){c=!1;continue}(i||(i=[])).push(u)}}return i&&{identifiers:i,isCompleteFix:c}}}function tft(e,n,i,c){const u=Ac(e.parent)?e.parent.name:Ds(e.parent)?e.parent:e,d=lr(n,h=>h.start===u.getStart(i)&&h.start+h.length===u.getEnd());return d&&ni(Iee,d.code)||c.getTypeAtLocation(u).flags&1}function nKe(e){return e.flags&65536||!!Ua(e,n=>n.parent&&$m(n.parent)&&n.parent.body===n||Ou(n)&&(n.parent.kind===262||n.parent.kind===218||n.parent.kind===219||n.parent.kind===174))}function MOe(e,n,i,c,u,d){if(Bx(u.parent)&&!u.parent.awaitModifier){const h=c.getTypeAtLocation(u),S=c.getAsyncIterableType();if(S&&c.isTypeAssignableTo(h,S)){const E=u.parent;e.replaceNode(i,E,he.updateForOfStatement(E,he.createToken(135),E.initializer,E.expression,E.statement));return}}if(Ds(u))for(const h of[u.left,u.right]){if(d&&xn(h)){const P=c.getSymbolAtLocation(h);if(P&&d.has($d(P)))continue}const S=c.getTypeAtLocation(h),E=c.getPromisedTypeOfPromise(S)?he.createAwaitExpression(h):h;e.replaceNode(i,h,E)}else if(n===Tye&&Ac(u.parent)){if(d&&xn(u.parent.expression)){const h=c.getSymbolAtLocation(u.parent.expression);if(h&&d.has($d(h)))return}e.replaceNode(i,u.parent.expression,he.createParenthesizedExpression(he.createAwaitExpression(u.parent.expression))),rKe(e,u.parent.expression,i)}else if(ni(ODe,n)&&sk(u.parent)){if(d&&xn(u)){const h=c.getSymbolAtLocation(u);if(h&&d.has($d(h)))return}e.replaceNode(i,u,he.createParenthesizedExpression(he.createAwaitExpression(u))),rKe(e,u,i)}else{if(d&&Kc(u.parent)&&xn(u.parent.name)){const h=c.getSymbolAtLocation(u.parent.name);if(h&&!m2(d,$d(h)))return}e.replaceNode(i,u,he.createAwaitExpression(u))}}function rKe(e,n,i){const c=bv(n.pos,i);c&&pce(c.end,c.parent,i)&&e.insertText(i,n.getStart(i),";")}var bye,Tye,ODe,Iee,LOe=G({"src/services/codefixes/addMissingAwait.ts"(){xl(),If(),bye="addMissingAwait",Tye=N.Property_0_does_not_exist_on_type_1.code,ODe=[N.This_expression_is_not_callable.code,N.This_expression_is_not_constructable.code],Iee=[N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.Operator_0_cannot_be_applied_to_type_1.code,N.Operator_0_cannot_be_applied_to_types_1_and_2.code,N.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,N.This_condition_will_always_return_true_since_this_0_is_always_defined.code,N.Type_0_is_not_an_array_type.code,N.Type_0_is_not_an_array_type_or_a_string_type.code,N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,N.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Tye,...ODe],Hc({fixIds:[bye],errorCodes:Iee,getCodeActions:function(n){const{sourceFile:i,errorCode:c,span:u,cancellationToken:d,program:h}=n,S=vye(i,c,u,d,h);if(!S)return;const E=n.program.getTypeChecker(),P=k=>zs.ChangeTracker.with(n,k);return uN([LDe(n,S,c,E,P),Qqe(n,S,c,E,P)])},getAllCodeActions:e=>{const{sourceFile:n,program:i,cancellationToken:c}=e,u=e.program.getTypeChecker(),d=new Set;return Sg(e,Iee,(h,S)=>{const E=vye(n,S.code,S,c,i);if(!E)return;const P=k=>(k(h),[]);return LDe(e,E,S.code,u,P,d)||Qqe(e,E,S.code,u,P,d)})}})}});function FDe(e,n,i,c,u){const d=Lf(n,i),h=Ua(d,P=>Jz(P.parent)?P.parent.initializer===P:nft(P)?!1:"quit");if(h)return kee(e,h,n,u);const S=d.parent;if(Ds(S)&&S.operatorToken.kind===64&&kb(S.parent))return kee(e,d,n,u);if(Ed(S)){const P=c.getTypeChecker();return jr(S.elements,k=>iKe(k,P))?kee(e,S,n,u):void 0}const E=Ua(d,P=>kb(P.parent)?!0:WDe(P)?!1:"quit");if(E){const P=c.getTypeChecker();return oKe(E,P)?kee(e,E,n,u):void 0}}function kee(e,n,i,c){(!c||m2(c,n))&&e.insertModifierBefore(i,87,n)}function nft(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function iKe(e,n){const i=xn(e)?e:Zv(e,!0)&&xn(e.left)?e.left:void 0;return!!i&&!n.getSymbolAtLocation(i)}function WDe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function oKe(e,n){return Ds(e)?e.operatorToken.kind===28?jr([e.left,e.right],i=>oKe(i,n)):e.operatorToken.kind===64&&xn(e.left)&&!n.getSymbolAtLocation(e.left):!1}var BDe,OOe,aKe=G({"src/services/codefixes/addMissingConst.ts"(){xl(),If(),BDe="addMissingConst",OOe=[N.Cannot_find_name_0.code,N.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Hc({errorCodes:OOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>FDe(c,n.sourceFile,n.span.start,n.program));if(i.length>0)return[Rd(BDe,i,N.Add_const_to_unresolved_variable,BDe,N.Add_const_to_all_unresolved_variables)]},fixIds:[BDe],getAllCodeActions:e=>{const n=new Set;return Sg(e,OOe,(i,c)=>FDe(i,c.file,c.start,e.program,n))}})}});function Sye(e,n,i,c){const u=Lf(n,i);if(!xn(u))return;const d=u.parent;d.kind===172&&(!c||m2(c,d))&&e.insertModifierBefore(n,138,d)}var ple,FOe,sKe=G({"src/services/codefixes/addMissingDeclareProperty.ts"(){xl(),If(),ple="addMissingDeclareProperty",FOe=[N.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],Hc({errorCodes:FOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>Sye(c,n.sourceFile,n.span.start));if(i.length>0)return[Rd(ple,i,N.Prefix_with_declare,ple,N.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ple],getAllCodeActions:e=>{const n=new Set;return Sg(e,FOe,(i,c)=>Sye(i,c.file,c.start,n))}})}});function Eye(e,n,i){const c=Lf(n,i),u=Ua(c,Jh);re.assert(!!u,"Expected position to be owned by a decorator.");const d=he.createCallExpression(u.expression,void 0,void 0);e.replaceNode(n,u.expression,d)}var mle,WOe,cKe=G({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){xl(),If(),mle="addMissingInvocationForDecorator",WOe=[N._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Hc({errorCodes:WOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>Eye(c,n.sourceFile,n.span.start));return[Rd(mle,i,N.Call_decorator_expression,mle,N.Add_to_all_uncalled_decorators)]},fixIds:[mle],getAllCodeActions:e=>Sg(e,WOe,(n,i)=>Eye(n,i.file,i.start))})}});function xye(e,n,i){const c=Lf(n,i),u=c.parent;if(!Os(u))return re.fail("Tried to add a parameter name to a non-parameter: "+re.formatSyntaxKind(c.kind));const d=u.parent.parameters.indexOf(u);re.assert(!u.type,"Tried to add a parameter name to a parameter that already had one."),re.assert(d>-1,"Parameter not found in parent parameter list.");let h=u.name.getEnd(),S=he.createTypeReferenceNode(u.name,void 0),E=zDe(n,u);for(;E;)S=he.createArrayTypeNode(S),h=E.getEnd(),E=zDe(n,E);const P=he.createParameterDeclaration(u.modifiers,u.dotDotDotToken,"arg"+d,u.questionToken,u.dotDotDotToken&&!GY(S)?he.createArrayTypeNode(S):S,u.initializer);e.replaceRange(n,tv(u.getStart(n),h),P)}function zDe(e,n){const i=N6(n.name,n.parent,e);if(i&&i.kind===23&&Wd(i.parent)&&Os(i.parent.parent))return i.parent.parent}var GDe,jDe,VDe=G({"src/services/codefixes/addNameToNamelessParameter.ts"(){xl(),If(),GDe="addNameToNamelessParameter",jDe=[N.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Hc({errorCodes:jDe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>xye(c,n.sourceFile,n.span.start));return[Rd(GDe,i,N.Add_parameter_name,GDe,N.Add_names_to_all_parameters_without_names)]},fixIds:[GDe],getAllCodeActions:e=>Sg(e,jDe,(n,i)=>xye(n,i.file,i.start))})}});function BOe(e,n,i){var c,u;const d=lKe(FAe(e,n),i);if(!d)return Yn;const{source:h,target:S}=d,E=rft(h,S,i)?i.getTypeAtLocation(S.expression):i.getTypeAtLocation(S);return(u=(c=E.symbol)==null?void 0:c.declarations)!=null&&u.some(P=>ts(P).fileName.match(/\.d\.ts$/))?Yn:i.getExactOptionalProperties(E)}function rft(e,n,i){return Ac(n)&&!!i.getExactOptionalProperties(i.getTypeAtLocation(n.expression)).length&&i.getTypeAtLocation(e)===i.getUndefinedType()}function lKe(e,n){var i;if(e){if(Ds(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Kc(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(xd(e.parent)){const c=n.getSymbolAtLocation(e.parent.expression);if(!(c!=null&&c.valueDeclaration)||!S_(c.valueDeclaration.kind)||!kr(e))return;const u=e.parent.arguments.indexOf(e);if(u===-1)return;const d=c.valueDeclaration.parameters[u].name;if(xn(d))return{source:e,target:d}}else if(tl(e.parent)&&xn(e.parent.name)||XE(e.parent)){const c=lKe(e.parent.parent,n);if(!c)return;const u=n.getPropertyOfType(n.getTypeAtLocation(c.target),e.parent.name.text),d=(i=u==null?void 0:u.declarations)==null?void 0:i[0];return d?{source:tl(e.parent)?e.parent.initializer:e.parent.name,target:d}:void 0}}else return}function ift(e,n){for(const i of n){const c=i.valueDeclaration;if(c&&(em(c)||nu(c))&&c.type){const u=he.createUnionTypeNode([...c.type.kind===192?c.type.types:[c.type],he.createTypeReferenceNode("undefined")]);e.replaceNode(c.getSourceFile(),c.type,u)}}}var UDe,uKe,zOe=G({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){xl(),If(),UDe="addOptionalPropertyUndefined",uKe=[N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,N.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],Hc({errorCodes:uKe,getCodeActions(e){const n=e.program.getTypeChecker(),i=BOe(e.sourceFile,e.span,n);if(!i.length)return;const c=zs.ChangeTracker.with(e,u=>ift(u,i));return[xI(UDe,c,N.Add_undefined_to_optional_property_type)]},fixIds:[UDe]})}});function GOe(e,n){const i=Lf(e,n);return to(Os(i.parent)?i.parent.parent:i.parent,fKe)}function fKe(e){return _Ke(e)&&jOe(e)}function jOe(e){return Vd(e)?e.parameters.some(jOe)||!e.type&&!!GX(e):!e.type&&!!iR(e)}function VOe(e,n,i){if(Vd(i)&&(GX(i)||i.parameters.some(c=>!!iR(c)))){if(!i.typeParameters){const u=SY(i);u.length&&e.insertTypeParameters(n,i,u)}const c=$m(i)&&!qm(i,21,n);c&&e.insertNodeBefore(n,Dl(i.parameters),he.createToken(21));for(const u of i.parameters)if(!u.type){const d=iR(u);d&&e.tryInsertTypeAnnotation(n,u,Bn(d,Q3,pc))}if(c&&e.insertNodeAfter(n,yl(i.parameters),he.createToken(22)),!i.type){const u=GX(i);u&&e.tryInsertTypeAnnotation(n,i,Bn(u,Q3,pc))}}else{const c=re.checkDefined(iR(i),"A JSDocType for this declaration should exist");re.assert(!i.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(n,i,Bn(c,Q3,pc))}}function _Ke(e){return Vd(e)||e.kind===260||e.kind===171||e.kind===172}function Q3(e){switch(e.kind){case 319:case 320:return he.createTypeReferenceNode("any",Yn);case 323:return OF(e);case 322:return Q3(e.type);case 321:return aft(e);case 325:return sft(e);case 324:return cft(e);case 183:return uft(e);case 329:return oft(e);default:const n=Xo(e,Q3,sx);return _s(n,1),n}}function oft(e){const n=he.createTypeLiteralNode(Vn(e.jsDocPropertyTags,i=>he.createPropertySignature(void 0,xn(i.name)?i.name:i.name.right,rW(i)?he.createToken(58):void 0,i.typeExpression&&Bn(i.typeExpression.type,Q3,pc)||he.createKeywordTypeNode(133))));return _s(n,1),n}function OF(e){return he.createUnionTypeNode([Bn(e.type,Q3,pc),he.createTypeReferenceNode("undefined",Yn)])}function aft(e){return he.createUnionTypeNode([Bn(e.type,Q3,pc),he.createTypeReferenceNode("null",Yn)])}function sft(e){return he.createArrayTypeNode(Bn(e.type,Q3,pc))}function cft(e){return he.createFunctionTypeNode(Yn,e.parameters.map(lft),e.type??he.createKeywordTypeNode(133))}function lft(e){const n=e.parent.parameters.indexOf(e),i=e.type.kind===325&&n===e.parent.parameters.length-1,c=e.name||(i?"rest":"arg"+n),u=i?he.createToken(26):e.dotDotDotToken;return he.createParameterDeclaration(e.modifiers,u,c,e.questionToken,Bn(e.type,Q3,pc),e.initializer)}function uft(e){let n=e.typeName,i=e.typeArguments;if(xn(e.typeName)){if(uY(e))return fft(e);let c=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":c=c.toLowerCase();break;case"array":case"date":case"promise":c=c[0].toUpperCase()+c.slice(1);break}n=he.createIdentifier(c),(c==="Array"||c==="Promise")&&!e.typeArguments?i=he.createNodeArray([he.createTypeReferenceNode("any",Yn)]):i=Wa(e.typeArguments,Q3,pc)}return he.createTypeReferenceNode(n,i)}function fft(e){const n=he.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,he.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),i=he.createTypeLiteralNode([he.createIndexSignature(void 0,[n],e.typeArguments[1])]);return _s(i,1),i}var HDe,UOe,JDe=G({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){xl(),If(),HDe="annotateWithTypeFromJSDoc",UOe=[N.JSDoc_types_may_be_moved_to_TypeScript_types.code],Hc({errorCodes:UOe,getCodeActions(e){const n=GOe(e.sourceFile,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,c=>VOe(c,e.sourceFile,n));return[Rd(HDe,i,N.Annotate_with_type_from_JSDoc,HDe,N.Annotate_everything_with_types_from_JSDoc)]},fixIds:[HDe],getAllCodeActions:e=>Sg(e,UOe,(n,i)=>{const c=GOe(i.file,i.start);c&&VOe(n,i.file,c)})})}});function $De(e,n,i,c,u,d){const h=c.getSymbolAtLocation(Lf(n,i));if(!h||!h.valueDeclaration||!(h.flags&19))return;const S=h.valueDeclaration;if(mg(S)||Jm(S))e.replaceNode(n,S,k(S));else if(Kc(S)){const F=P(S);if(!F)return;const $=S.parent.parent;Kp(S.parent)&&S.parent.declarations.length>1?(e.delete(n,S),e.insertNodeAfter(n,$,F)):e.replaceNode(n,$,F)}function E(F){const $=[];return F.exports&&F.exports.forEach(ie=>{if(ie.name==="prototype"&&ie.declarations){const ae=ie.declarations[0];if(ie.declarations.length===1&&Ac(ae)&&Ds(ae.parent)&&ae.parent.operatorToken.kind===64&&el(ae.parent.right)){const ve=ae.parent.right;X(ve.symbol,void 0,$)}}else X(ie,[he.createToken(126)],$)}),F.members&&F.members.forEach((ie,ae)=>{var ve,we,Fe,et;if(ae==="constructor"&&ie.valueDeclaration){const Pe=(et=(Fe=(we=(ve=F.exports)==null?void 0:ve.get("prototype"))==null?void 0:we.declarations)==null?void 0:Fe[0])==null?void 0:et.parent;Pe&&Ds(Pe)&&el(Pe.right)&>(Pe.right.properties,Aye)||e.delete(n,ie.valueDeclaration.parent);return}X(ie,void 0,$)}),$;function J(ie,ae){return Kf(ie)?Ac(ie)&&Aye(ie)?!0:F_(ae):jr(ie.properties,ve=>!!(tm(ve)||jz(ve)||tl(ve)&&Jm(ve.initializer)&&ve.name||Aye(ve)))}function X(ie,ae,ve){if(!(ie.flags&8192)&&!(ie.flags&4096))return;const we=ie.valueDeclaration,Fe=we.parent,et=Fe.right;if(!J(we,et)||gt(ve,Ct=>{const Lt=i_(Ct);return!!(Lt&&xn(Lt)&&Kr(Lt)===Il(ie))}))return;const Pe=Fe.parent&&Fe.parent.kind===244?Fe.parent:Fe;if(e.delete(n,Pe),!et){ve.push(he.createPropertyDeclaration(ae,ie.name,void 0,void 0,void 0));return}if(Kf(we)&&(Jm(et)||$m(et))){const Ct=OS(n,u),Lt=KDe(we,d,Ct);Lt&&dt(ve,et,Lt);return}else if(el(et)){Ot(et.properties,Ct=>{(tm(Ct)||jz(Ct))&&ve.push(Ct),tl(Ct)&&Jm(Ct.initializer)&&dt(ve,Ct.initializer,Ct.name),Aye(Ct)});return}else{if(Gy(n)||!Ac(we))return;const Ct=he.createPropertyDeclaration(ae,we.name,void 0,void 0,et);rB(Fe.parent,Ct,n),ve.push(Ct);return}function dt(Ct,Lt,Ze){return Jm(Lt)?Ie(Ct,Lt,Ze):ct(Ct,Lt,Ze)}function Ie(Ct,Lt,Ze){const Ke=Hi(ae,qDe(Lt,134)),st=he.createMethodDeclaration(Ke,void 0,Ze,void 0,void 0,Lt.parameters,void 0,Lt.body);rB(Fe,st,n),Ct.push(st)}function ct(Ct,Lt,Ze){const Ke=Lt.body;let st;Ke.kind===241?st=Ke:st=he.createBlock([he.createReturnStatement(Ke)]);const It=Hi(ae,qDe(Lt,134)),Yt=he.createMethodDeclaration(It,void 0,Ze,void 0,void 0,Lt.parameters,void 0,st);rB(Fe,Yt,n),Ct.push(Yt)}}}function P(F){const $=F.initializer;if(!$||!Jm($)||!xn(F.name))return;const J=E(F.symbol);$.body&&J.unshift(he.createConstructorDeclaration(void 0,$.parameters,$.body));const X=qDe(F.parent.parent,95);return he.createClassDeclaration(X,F.name,void 0,void 0,J)}function k(F){const $=E(h);F.body&&$.unshift(he.createConstructorDeclaration(void 0,F.parameters,F.body));const J=qDe(F,95);return he.createClassDeclaration(J,F.name,void 0,void 0,$)}}function qDe(e,n){return DA(e)?gi(e.modifiers,i=>i.kind===n):void 0}function Aye(e){return e.name?!!(xn(e.name)&&e.name.text==="constructor"):!1}function KDe(e,n,i){if(Ac(e))return e.name;const c=e.argumentExpression;if(S1(c))return c;if(Cm(c))return H2(c.text,iu(n))?he.createIdentifier(c.text):K7(c)?he.createStringLiteral(c.text,i===0):c}var Pee,HOe,XDe=G({"src/services/codefixes/convertFunctionToEs6Class.ts"(){xl(),If(),Pee="convertFunctionToEs6Class",HOe=[N.This_constructor_function_may_be_converted_to_a_class_declaration.code],Hc({errorCodes:HOe,getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>$De(i,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Rd(Pee,n,N.Convert_function_to_an_ES2015_class,Pee,N.Convert_all_constructor_functions_to_classes)]},fixIds:[Pee],getAllCodeActions:e=>Sg(e,HOe,(n,i)=>$De(n,i.file,i.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function YDe(e,n,i,c){const u=Lf(n,i);let d;if(xn(u)&&Kc(u.parent)&&u.parent.initializer&&Vd(u.parent.initializer)?d=u.parent.initializer:d=to(zE(Lf(n,i)),pCe),!d)return;const h=new Map,S=Cs(d),E=dKe(d,c),P=QDe(d,c,h);if(!kce(P,c))return;const k=P.body&&Ou(P.body)?_ft(P.body,c):Yn,F={checker:c,synthNamesMap:h,setOfExpressionsToReturn:E,isInJSFile:S};if(!k.length)return;const $=Ff(n.text,Db(d).pos);e.insertModifierAt(n,$,134,{suffix:" "});for(const J of k)if(s_(J,function X(ie){if(xd(ie)){const ae=iw(ie,ie,F,!1);if(Kj())return!0;e.replaceNodeWithNodes(n,J,ae)}else if(!F_(ie)&&(s_(ie,X),Kj()))return!0}),Kj())return}function _ft(e,n){const i=[];return dR(e,c=>{Pce(c,n)&&i.push(c)}),i}function dKe(e,n){if(!e.body)return new Set;const i=new Set;return s_(e.body,function c(u){gle(u,n,"then")?(i.add(vm(u)),Ot(u.arguments,c)):gle(u,n,"catch")||gle(u,n,"finally")?(i.add(vm(u)),s_(u,c)):JOe(u,n)?i.add(vm(u)):s_(u,c)}),i}function gle(e,n,i){if(!xd(e))return!1;const u=xj(e,i)&&n.getTypeAtLocation(e);return!!(u&&n.getPromisedTypeOfPromise(u))}function pKe(e,n){return(ji(e)&4)!==0&&e.target===n}function qj(e,n,i){if(e.expression.name.escapedText==="finally")return;const c=i.getTypeAtLocation(e.expression.expression);if(pKe(c,i.getPromiseType())||pKe(c,i.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(n===Zn(e.arguments,0))return Zn(e.typeArguments,0);if(n===Zn(e.arguments,1))return Zn(e.typeArguments,1)}else return Zn(e.typeArguments,0)}function JOe(e,n){return kr(e)?!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(e)):!1}function QDe(e,n,i){const c=new Map,u=zg();return s_(e,function d(h){if(!xn(h)){s_(h,d);return}const S=n.getSymbolAtLocation(h);if(S){const E=n.getTypeAtLocation(h),P=tIe(E,n),k=$d(S).toString();if(P&&!Os(h.parent)&&!Vd(h.parent)&&!i.has(k)){const F=pp(P.parameters),$=(F==null?void 0:F.valueDeclaration)&&Os(F.valueDeclaration)&&to(F.valueDeclaration.name,xn)||he.createUniqueName("result",16),J=$Oe($,u);i.set(k,J),u.add($.text,S)}else if(h.parent&&(Os(h.parent)||Kc(h.parent)||sa(h.parent))){const F=h.text,$=u.get(F);if($&&$.some(J=>J!==S)){const J=$Oe(h,u);c.set(k,J.identifier),i.set(k,J),u.add(F,S)}else{const J=ih(h);i.set(k,Pq(J)),u.add(F,S)}}}}),cce(e,!0,d=>{if(sa(d)&&xn(d.name)&&Ch(d.parent)){const h=n.getSymbolAtLocation(d.name),S=h&&c.get(String($d(h)));if(S&&S.text!==(d.name||d.propertyName).getText())return he.createBindingElement(d.dotDotDotToken,d.propertyName||d.name,S,d.initializer)}else if(xn(d)){const h=n.getSymbolAtLocation(d),S=h&&c.get(String($d(h)));if(S)return he.createIdentifier(S.text)}})}function $Oe(e,n){const i=(n.get(e.text)||Yn).length,c=i===0?e:he.createIdentifier(e.text+"_"+i);return Pq(c)}function Kj(){return!wq}function E4(){return wq=!1,Yn}function iw(e,n,i,c,u){if(gle(n,i.checker,"then"))return dft(n,Zn(n.arguments,0),Zn(n.arguments,1),i,c,u);if(gle(n,i.checker,"catch"))return qOe(n,Zn(n.arguments,0),i,c,u);if(gle(n,i.checker,"finally"))return gKe(n,Zn(n.arguments,0),i,c,u);if(Ac(n))return iw(e,n.expression,i,c,u);const d=i.checker.getTypeAtLocation(n);return d&&i.checker.getPromisedTypeOfPromise(d)?(re.assertNode(Gg(n).parent,Ac),hKe(e,n,i,c,u)):E4()}function jR({checker:e},n){if(n.kind===106)return!0;if(xn(n)&&!$g(n)&&Kr(n)==="undefined"){const i=e.getSymbolAtLocation(n);return!i||e.isUndefinedSymbol(i)}return!1}function kq(e){const n=he.createUniqueName(e.identifier.text,16);return Pq(n)}function Cye(e,n,i){let c;return i&&!FF(e,n)&&(wee(i)?(c=i,n.synthNamesMap.forEach((u,d)=>{if(u.identifier.text===i.identifier.text){const h=kq(i);n.synthNamesMap.set(d,h)}})):c=Pq(he.createUniqueName("result",16),i.types),Nee(c)),c}function mKe(e,n,i,c,u){const d=[];let h;if(c&&!FF(e,n)){h=ih(Nee(c));const S=c.types,E=n.checker.getUnionType(S,2),P=n.isInJSFile?void 0:n.checker.typeToTypeNode(E,void 0,void 0),k=[he.createVariableDeclaration(h,void 0,P)],F=he.createVariableStatement(void 0,he.createVariableDeclarationList(k,1));d.push(F)}return d.push(i),u&&h&&QOe(u)&&d.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(nIe(u)),void 0,void 0,h)],2))),d}function gKe(e,n,i,c,u){if(!n||jR(i,n))return iw(e,e.expression.expression,i,c,u);const d=Cye(e,i,u),h=iw(e,e.expression.expression,i,!0,d);if(Kj())return E4();const S=hle(n,c,void 0,void 0,e,i);if(Kj())return E4();const E=he.createBlock(h),P=he.createBlock(S),k=he.createTryStatement(E,void 0,P);return mKe(e,i,k,d,u)}function qOe(e,n,i,c,u){if(!n||jR(i,n))return iw(e,e.expression.expression,i,c,u);const d=vKe(n,i),h=Cye(e,i,u),S=iw(e,e.expression.expression,i,!0,h);if(Kj())return E4();const E=hle(n,c,h,d,e,i);if(Kj())return E4();const P=he.createBlock(S),k=he.createCatchClause(d&&ih(Dye(d)),he.createBlock(E)),F=he.createTryStatement(P,k,void 0);return mKe(e,i,F,h,u)}function dft(e,n,i,c,u,d){if(!n||jR(c,n))return qOe(e,i,c,u,d);if(i&&!jR(c,i))return E4();const h=vKe(n,c),S=iw(e.expression.expression,e.expression.expression,c,!0,h);if(Kj())return E4();const E=hle(n,u,d,h,e,c);return Kj()?E4():Hi(S,E)}function hKe(e,n,i,c,u){if(FF(e,i)){let d=ih(n);return c&&(d=he.createAwaitExpression(d)),[he.createReturnStatement(d)]}return ZDe(u,he.createAwaitExpression(n),void 0)}function ZDe(e,n,i){return!e||YOe(e)?[he.createExpressionStatement(n)]:wee(e)&&e.hasBeenDeclared?[he.createExpressionStatement(he.createAssignment(ih(Xj(e)),n))]:[he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(Dye(e)),void 0,i,n)],2))]}function KOe(e,n){if(n&&e){const i=he.createUniqueName("result",16);return[...ZDe(Pq(i),e,n),he.createReturnStatement(i)]}return[he.createReturnStatement(e)]}function hle(e,n,i,c,u,d){var h;switch(e.kind){case 106:break;case 211:case 80:if(!c)break;const S=he.createCallExpression(ih(e),void 0,wee(c)?[Xj(c)]:[]);if(FF(u,d))return KOe(S,qj(u,e,d.checker));const E=d.checker.getTypeAtLocation(e),P=d.checker.getSignaturesOfType(E,0);if(!P.length)return E4();const k=P[0].getReturnType(),F=ZDe(i,he.createAwaitExpression(S),qj(u,e,d.checker));return i&&i.types.push(d.checker.getAwaitedType(k)||k),F;case 218:case 219:{const $=e.body,J=(h=tIe(d.checker.getTypeAtLocation(e),d.checker))==null?void 0:h.getReturnType();if(Ou($)){let X=[],ie=!1;for(const ae of $.statements)if(iS(ae))if(ie=!0,Pce(ae,d.checker))X=X.concat(XOe(d,ae,n,i));else{const ve=J&&ae.expression?eIe(d.checker,J,ae.expression):ae.expression;X.push(...KOe(ve,qj(u,e,d.checker)))}else{if(n&&dR(ae,xT))return E4();X.push(ae)}return FF(u,d)?X.map(ae=>ih(ae)):yKe(X,i,d,ie)}else{const X=fCe($,d.checker)?XOe(d,he.createReturnStatement($),n,i):Yn;if(X.length>0)return X;if(J){const ie=eIe(d.checker,J,$);if(FF(u,d))return KOe(ie,qj(u,e,d.checker));{const ae=ZDe(i,ie,void 0);return i&&i.types.push(d.checker.getAwaitedType(J)||J),ae}}else return E4()}}default:return E4()}return Yn}function eIe(e,n,i){const c=ih(i);return e.getPromisedTypeOfPromise(n)?he.createAwaitExpression(c):c}function tIe(e,n){const i=n.getSignaturesOfType(e,0);return Yf(i)}function yKe(e,n,i,c){const u=[];for(const d of e)if(iS(d)){if(d.expression){const h=JOe(d.expression,i.checker)?he.createAwaitExpression(d.expression):d.expression;n===void 0?u.push(he.createExpressionStatement(h)):wee(n)&&n.hasBeenDeclared?u.push(he.createExpressionStatement(he.createAssignment(Xj(n),h))):u.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Dye(n),void 0,void 0,h)],2)))}}else u.push(ih(d));return!c&&n!==void 0&&u.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Dye(n),void 0,void 0,he.createIdentifier("undefined"))],2))),u}function XOe(e,n,i,c){let u=[];return s_(n,function d(h){if(xd(h)){const S=iw(h,h,e,i,c);if(u=u.concat(S),u.length>0)return}else F_(h)||s_(h,d)}),u}function vKe(e,n){const i=[];let c;if(Vd(e)){if(e.parameters.length>0){const E=e.parameters[0].name;c=u(E)}}else xn(e)?c=d(e):Ac(e)&&xn(e.name)&&(c=d(e.name));if(!c||"identifier"in c&&c.identifier.text==="undefined")return;return c;function u(E){if(xn(E))return d(E);const P=ea(E.elements,k=>cb(k)?[]:[u(k.name)]);return bKe(E,P)}function d(E){const P=S(E),k=h(P);return k&&n.synthNamesMap.get($d(k).toString())||Pq(E,i)}function h(E){var P;return((P=to(E,ck))==null?void 0:P.symbol)??n.checker.getSymbolAtLocation(E)}function S(E){return E.original?E.original:E}}function YOe(e){return e?wee(e)?!e.identifier.text:jr(e.elements,YOe):!0}function Pq(e,n=[]){return{kind:0,identifier:e,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function bKe(e,n=Yn,i=[]){return{kind:1,bindingPattern:e,elements:n,types:i}}function Xj(e){return e.hasBeenReferenced=!0,e.identifier}function Dye(e){return wee(e)?Nee(e):nIe(e)}function nIe(e){for(const n of e.elements)Dye(n);return e.bindingPattern}function Nee(e){return e.hasBeenDeclared=!0,e.identifier}function wee(e){return e.kind===0}function QOe(e){return e.kind===1}function FF(e,n){return!!e.original&&n.setOfExpressionsToReturn.has(vm(e.original))}var rIe,Nq,wq,ZOe=G({"src/services/codefixes/convertToAsyncFunction.ts"(){xl(),If(),rIe="convertToAsyncFunction",Nq=[N.This_may_be_converted_to_an_async_function.code],wq=!0,Hc({errorCodes:Nq,getCodeActions(e){wq=!0;const n=zs.ChangeTracker.with(e,i=>YDe(i,e.sourceFile,e.span.start,e.program.getTypeChecker()));return wq?[Rd(rIe,n,N.Convert_to_async_function,rIe,N.Convert_all_to_async_functions)]:[]},fixIds:[rIe],getAllCodeActions:e=>Sg(e,Nq,(n,i)=>YDe(n,i.file,i.start,e.program.getTypeChecker()))})}});function Iye(e,n,i,c,u){var d;for(const h of e.imports){const S=(d=i.getResolvedModule(e,h.text,PA(e,h)))==null?void 0:d.resolvedModule;if(!S||S.resolvedFileName!==n.fileName)continue;const E=XC(h);switch(E.kind){case 271:c.replaceNode(e,E,Nk(E.name,void 0,h,u));break;case 213:y1(E,!1)&&c.replaceNode(e,E,he.createPropertyAccessExpression(ih(E),"default"));break}}}function pft(e,n,i,c,u){const d={original:Eft(e),additional:new Set},h=mft(e,n,d);gft(e,h,i);let S=!1,E;for(const P of gi(e.statements,Xg)){const k=e7e(e,P,i,n,d,c,u);k&&oie(k,E??(E=new Map))}for(const P of gi(e.statements,k=>!Xg(k))){const k=hft(e,P,n,i,d,c,h,E,u);S=S||k}return E==null||E.forEach((P,k)=>{i.replaceNode(e,k,P)}),S}function mft(e,n,i){const c=new Map;return TKe(e,u=>{const{text:d}=u.name;!c.has(d)&&(hH(u.name)||n.resolveName(d,u,111551,!0))&&c.set(d,iIe(`_${d}`,i))}),c}function gft(e,n,i){TKe(e,(c,u)=>{if(u)return;const{text:d}=c.name;i.replaceNode(e,c,he.createIdentifier(n.get(d)||d))})}function TKe(e,n){e.forEachChild(function i(c){if(Ac(c)&&R3(e,c.expression)&&xn(c.name)){const{parent:u}=c;n(c,Ds(u)&&u.left===c&&u.operatorToken.kind===64)}c.forEachChild(i)})}function hft(e,n,i,c,u,d,h,S,E){switch(n.kind){case 243:return e7e(e,n,c,i,u,d,E),!1;case 244:{const{expression:P}=n;switch(P.kind){case 213:return y1(P,!0)&&c.replaceNode(e,n,Nk(void 0,void 0,P.arguments[0],E)),!1;case 226:{const{operatorToken:k}=P;return k.kind===64&&SKe(e,i,P,c,h,S)}}}default:return!1}}function e7e(e,n,i,c,u,d,h){const{declarationList:S}=n;let E=!1;const P=Vn(S.declarations,k=>{const{name:F,initializer:$}=k;if($){if(R3(e,$))return E=!0,_B([]);if(y1($,!0))return E=!0,Sft(F,$.arguments[0],c,u,d,h);if(Ac($)&&y1($.expression,!0))return E=!0,yft(F,$.name.text,$.expression.arguments[0],u,h)}return _B([he.createVariableStatement(void 0,he.createVariableDeclarationList([k],S.flags))])});if(E){i.replaceNodeWithNodes(e,n,ea(P,F=>F.newImports));let k;return Ot(P,F=>{F.useSitesToUnqualify&&oie(F.useSitesToUnqualify,k??(k=new Map))}),k}}function yft(e,n,i,c,u){switch(e.kind){case 206:case 207:{const d=iIe(n,c);return _B([a7e(d,n,i,u),Pye(void 0,e,he.createIdentifier(d))])}case 80:return _B([a7e(e.text,n,i,u)]);default:return re.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function SKe(e,n,i,c,u,d){const{left:h,right:S}=i;if(!Ac(h))return!1;if(R3(e,h))if(R3(e,S))c.delete(e,i.parent);else{const E=el(S)?vft(S,d):y1(S,!0)?Tft(S.arguments[0],n):void 0;return E?(c.replaceNodeWithNodes(e,i.parent,E[0]),E[1]):(c.replaceRangeWithText(e,tv(h.getStart(e),S.pos),"export default"),!0)}else R3(e,h.expression)&&bft(e,i,c,u);return!1}function vft(e,n){const i=fA(e.properties,c=>{switch(c.kind){case 177:case 178:case 304:case 305:return;case 303:return xn(c.name)?n7e(c.name.text,c.initializer,n):void 0;case 174:return xn(c.name)?o7e(c.name.text,[he.createToken(95)],c,n):void 0;default:re.assertNever(c,`Convert to ES6 got invalid prop kind ${c.kind}`)}});return i&&[i,!1]}function bft(e,n,i,c){const{text:u}=n.left.name,d=c.get(u);if(d!==void 0){const h=[Pye(void 0,d,n.right),oIe([he.createExportSpecifier(!1,d,u)])];i.replaceNodeWithNodes(e,n.parent,h)}else xKe(n,e,i)}function Tft(e,n){const i=e.text,c=n.getSymbolAtLocation(e),u=c?c.exports:ME;return u.has("export=")?[[t7e(i)],!0]:u.has("default")?u.size>1?[[EKe(i),t7e(i)],!0]:[[t7e(i)],!0]:[[EKe(i)],!1]}function EKe(e){return oIe(void 0,e)}function t7e(e){return oIe([he.createExportSpecifier(!1,void 0,"default")],e)}function xKe({left:e,right:n,parent:i},c,u){const d=e.name.text;if((Jm(n)||$m(n)||v0(n))&&(!n.name||n.name.text===d)){u.replaceRange(c,{pos:e.getStart(c),end:n.getStart(c)},he.createToken(95),{suffix:" "}),n.name||u.insertName(c,n,d);const h=qm(i,27,c);h&&u.delete(c,h)}else u.replaceNodeRangeWithNodes(c,e.expression,qm(e,25,c),[he.createToken(95),he.createToken(87)],{joiner:" ",suffix:" "})}function n7e(e,n,i){const c=[he.createToken(95)];switch(n.kind){case 218:{const{name:d}=n;if(d&&d.text!==e)return u()}case 219:return o7e(e,c,n,i);case 231:return Aft(e,c,n,i);default:return u()}function u(){return Pye(c,he.createIdentifier(e),r7e(n,i))}}function r7e(e,n){if(!n||!gt(oc(n.keys()),c=>ov(e,c)))return e;return ls(e)?tB(e,!0,i):cce(e,!0,i);function i(c){if(c.kind===211){const u=n.get(c);return n.delete(c),u}}}function Sft(e,n,i,c,u,d){switch(e.kind){case 206:{const h=fA(e.elements,S=>S.dotDotDotToken||S.initializer||S.propertyName&&!xn(S.propertyName)||!xn(S.name)?void 0:AKe(S.propertyName&&S.propertyName.text,S.name.text));if(h)return _B([Nk(void 0,h,n,d)])}case 207:{const h=iIe(Fye(n.text,u),c);return _B([Nk(he.createIdentifier(h),void 0,n,d),Pye(void 0,ih(e),he.createIdentifier(h))])}case 80:return i7e(e,n,i,c,d);default:return re.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function i7e(e,n,i,c,u){const d=i.getSymbolAtLocation(e),h=new Map;let S=!1,E;for(const k of c.original.get(e.text)){if(i.getSymbolAtLocation(k)!==d||k===e)continue;const{parent:F}=k;if(Ac(F)){const{name:{text:$}}=F;if($==="default"){S=!0;const J=k.getText();(E??(E=new Map)).set(F,he.createIdentifier(J))}else{re.assert(F.expression===k,"Didn't expect expression === use");let J=h.get($);J===void 0&&(J=iIe($,c),h.set($,J)),(E??(E=new Map)).set(F,he.createIdentifier(J))}}else S=!0}const P=h.size===0?void 0:oc(p_(h.entries(),([k,F])=>he.createImportSpecifier(!1,k===F?void 0:he.createIdentifier(k),he.createIdentifier(F))));return P||(S=!0),_B([Nk(S?ih(e):void 0,P,n,u)],E)}function iIe(e,n){for(;n.original.has(e)||n.additional.has(e);)e=`_${e}`;return n.additional.add(e),e}function Eft(e){const n=zg();return kye(e,i=>n.add(i.text,i)),n}function kye(e,n){xn(e)&&xft(e)&&n(e),e.forEachChild(i=>kye(i,n))}function xft(e){const{parent:n}=e;switch(n.kind){case 211:return n.name!==e;case 208:return n.propertyName!==e;case 276:return n.propertyName!==e;default:return!0}}function o7e(e,n,i,c){return he.createFunctionDeclaration(Hi(n,WR(i.modifiers)),ih(i.asteriskToken),e,WR(i.typeParameters),WR(i.parameters),ih(i.type),he.converters.convertToFunctionBlock(r7e(i.body,c)))}function Aft(e,n,i,c){return he.createClassDeclaration(Hi(n,WR(i.modifiers)),e,WR(i.typeParameters),WR(i.heritageClauses),r7e(i.members,c))}function a7e(e,n,i,c){return n==="default"?Nk(he.createIdentifier(e),void 0,i,c):Nk(void 0,[AKe(n,e)],i,c)}function AKe(e,n){return he.createImportSpecifier(!1,e!==void 0&&e!==n?he.createIdentifier(e):void 0,he.createIdentifier(n))}function Pye(e,n,i){return he.createVariableStatement(e,he.createVariableDeclarationList([he.createVariableDeclaration(n,void 0,void 0,i)],2))}function oIe(e,n){return he.createExportDeclaration(void 0,!1,e&&he.createNamedExports(e),n===void 0?void 0:he.createStringLiteral(n))}function _B(e,n){return{newImports:e,useSitesToUnqualify:n}}var s7e=G({"src/services/codefixes/convertToEsModule.ts"(){xl(),If(),Hc({errorCodes:[N.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:n,program:i,preferences:c}=e,u=zs.ChangeTracker.with(e,d=>{if(pft(n,i.getTypeChecker(),d,iu(i.getCompilerOptions()),OS(n,c)))for(const S of i.getSourceFiles())Iye(S,n,i,d,OS(S,c))});return[xI("convertToEsModule",u,N.Convert_to_ES_module)]}})}});function Rq(e,n){const i=Ua(Lf(e,n),Pu);return re.assert(!!i,"Expected position to be owned by a qualified name."),xn(i.left)?i:void 0}function CKe(e,n,i){const c=i.right.text,u=he.createIndexedAccessTypeNode(he.createTypeReferenceNode(i.left,void 0),he.createLiteralTypeNode(he.createStringLiteral(c)));e.replaceNode(n,i,u)}var Nye,aIe,sIe=G({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){xl(),If(),Nye="correctQualifiedNameToIndexedAccessType",aIe=[N.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],Hc({errorCodes:aIe,getCodeActions(e){const n=Rq(e.sourceFile,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,u=>CKe(u,e.sourceFile,n)),c=`${n.left.text}["${n.right.text}"]`;return[Rd(Nye,i,[N.Rewrite_as_the_indexed_access_type_0,c],Nye,N.Rewrite_all_as_indexed_access_types)]},fixIds:[Nye],getAllCodeActions:e=>Sg(e,aIe,(n,i)=>{const c=Rq(i.file,i.start);c&&CKe(n,i.file,c)})})}});function cIe(e,n){return to(Lf(n,e.start).parent,gy)}function DKe(e,n,i){if(!n)return;const c=n.parent,u=c.parent,d=IKe(n,i);if(d.length===c.elements.length)e.insertModifierBefore(i.sourceFile,156,c);else{const h=he.updateExportDeclaration(u,u.modifiers,!1,he.updateNamedExports(c,gi(c.elements,E=>!ni(d,E))),u.moduleSpecifier,void 0),S=he.createExportDeclaration(void 0,!0,he.createNamedExports(d),u.moduleSpecifier,void 0);e.replaceNode(i.sourceFile,u,h,{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Exclude}),e.insertNodeAfter(i.sourceFile,u,S)}}function IKe(e,n){const i=e.parent;if(i.elements.length===1)return i.elements;const c=OAe(sT(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return gi(i.elements,u=>{var d;return u===e||((d=ahe(u,c))==null?void 0:d.code)===wye[0]})}var wye,lIe,uIe=G({"src/services/codefixes/convertToTypeOnlyExport.ts"(){xl(),If(),wye=[N.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],lIe="convertToTypeOnlyExport",Hc({errorCodes:wye,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>DKe(c,cIe(n.span,n.sourceFile),n));if(i.length)return[Rd(lIe,i,N.Convert_to_type_only_export,lIe,N.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[lIe],getAllCodeActions:function(n){const i=new Map;return Sg(n,wye,(c,u)=>{const d=cIe(u,n.sourceFile);d&&y0(i,vm(d.parent.parent))&&DKe(c,d,n)})}})}});function Rye(e,n){const{parent:i}=Lf(e,n);return qE(i)||n0(i)&&i.importClause?i:void 0}function kKe(e,n,i){if(e.parent.parent.name)return!1;const c=e.parent.elements.filter(d=>!d.isTypeOnly);if(c.length===1)return!0;const u=i.getTypeChecker();for(const d of c)if(Wf.Core.eachSymbolReferenceInFile(d.name,u,n,S=>!EA(S)))return!1;return!0}function yle(e,n,i){var c;if(qE(i))e.replaceNode(n,i,he.updateImportSpecifier(i,!0,i.propertyName,i.name));else{const u=i.importClause;if(u.name&&u.namedBindings)e.replaceNodeWithNodes(n,i,[he.createImportDeclaration(WR(i.modifiers,!0),he.createImportClause(!0,ih(u.name,!0),void 0),ih(i.moduleSpecifier,!0),ih(i.attributes,!0)),he.createImportDeclaration(WR(i.modifiers,!0),he.createImportClause(!0,void 0,ih(u.namedBindings,!0)),ih(i.moduleSpecifier,!0),ih(i.attributes,!0))]);else{const d=((c=u.namedBindings)==null?void 0:c.kind)===275?he.updateNamedImports(u.namedBindings,Ol(u.namedBindings.elements,S=>he.updateImportSpecifier(S,!1,S.propertyName,S.name))):u.namedBindings,h=he.updateImportDeclaration(i,i.modifiers,he.updateImportClause(u,!0,u.name,d),i.moduleSpecifier,i.attributes);e.replaceNode(n,i,h)}}}var fIe,Yj,c7e=G({"src/services/codefixes/convertToTypeOnlyImport.ts"(){xl(),If(),fIe=[N.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Yj="convertToTypeOnlyImport",Hc({errorCodes:fIe,getCodeActions:function(n){var i;const c=Rye(n.sourceFile,n.span.start);if(c){const u=zs.ChangeTracker.with(n,S=>yle(S,n.sourceFile,c)),d=c.kind===276&&kKe(c,n.sourceFile,n.program)?zs.ChangeTracker.with(n,S=>yle(S,n.sourceFile,c.parent.parent.parent)):void 0,h=Rd(Yj,u,c.kind===276?[N.Use_type_0,((i=c.propertyName)==null?void 0:i.text)??c.name.text]:N.Use_import_type,Yj,N.Fix_all_with_type_only_imports);return gt(d)?[xI(Yj,d,N.Use_import_type),h]:[h]}},fixIds:[Yj],getAllCodeActions:function(n){const i=new Set;return Sg(n,fIe,(c,u)=>{const d=Rye(u.file,u.start);(d==null?void 0:d.kind)===272&&!i.has(d)?(yle(c,u.file,d),i.add(d)):(d==null?void 0:d.kind)===276&&!i.has(d.parent.parent.parent)&&kKe(d,u.file,n.program)?(yle(c,u.file,d.parent.parent.parent),i.add(d.parent.parent.parent)):(d==null?void 0:d.kind)===276&&yle(c,u.file,d)})}})}});function vle(e,n,i,c,u=!1){if(!zJ(n))return;const d=Dft(n);if(!d)return;const h=n.parent,{leftSibling:S,rightSibling:E}=Cft(n);let P=h.getStart(),k="";!S&&h.comment&&(P=l7e(h,h.getStart(),n.getStart()),k=`${c} */${c}`),S&&(u&&zJ(S)?(P=n.getStart(),k=""):(P=l7e(h,S.getStart(),n.getStart()),k=`${c} */${c}`));let F=h.getEnd(),$="";E&&(u&&zJ(E)?(F=E.getStart(),$=`${c}${c}`):(F=E.getStart(),$=`${c}/**${c} * `)),e.replaceRange(i,{pos:P,end:F},d,{prefix:k,suffix:$})}function Cft(e){const n=e.parent,i=n.getChildCount()-1,c=n.getChildren().findIndex(h=>h.getStart()===e.getStart()&&h.getEnd()===e.getEnd()),u=c>0?n.getChildAt(c-1):void 0,d=c0;u--)if(!/[*/\s]/g.test(c.substring(u-1,u)))return n+u;return i}function Dft(e){var n;const{typeExpression:i}=e;if(!i)return;const c=(n=e.name)==null?void 0:n.getText();if(c){if(i.kind===329)return PKe(c,i);if(i.kind===316)return Ift(c,i)}}function PKe(e,n){const i=NKe(n);if(gt(i))return he.createInterfaceDeclaration(void 0,e,void 0,void 0,i)}function Ift(e,n){const i=ih(n.type);if(i)return he.createTypeAliasDeclaration(void 0,he.createIdentifier(e),void 0,i)}function NKe(e){const n=e.jsDocPropertyTags;return gt(n)?Qo(n,c=>{var u;const d=kft(c),h=(u=c.typeExpression)==null?void 0:u.type,S=c.isBracketed;let E;if(h&&oF(h)){const P=NKe(h);E=he.createTypeLiteralNode(P)}else h&&(E=ih(h));if(E&&d){const P=S?he.createToken(58):void 0;return he.createPropertySignature(void 0,d,P,E)}}):void 0}function kft(e){return e.name.kind===80?e.name.text:e.name.right.text}function wKe(e){return NT(e)?ea(e.jsDoc,n=>{var i;return(i=n.tags)==null?void 0:i.filter(c=>zJ(c))}):[]}var _Ie,u7e,dIe=G({"src/services/codefixes/convertTypedefToType.ts"(){xl(),If(),_Ie="convertTypedefToType",u7e=[N.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Hc({fixIds:[_Ie],errorCodes:u7e,getCodeActions(e){const n=R6(e.host,e.formatContext.options),i=Lf(e.sourceFile,e.span.start);if(!i)return;const c=zs.ChangeTracker.with(e,u=>vle(u,i,e.sourceFile,n));if(c.length>0)return[Rd(_Ie,c,N.Convert_typedef_to_TypeScript_type,_Ie,N.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Sg(e,u7e,(n,i)=>{const c=R6(e.host,e.formatContext.options),u=Lf(i.file,i.start);u&&vle(n,u,i.file,c,!0)})})}});function pIe(e,n){const i=Lf(e,n);if(xn(i)){const c=uc(i.parent.parent,em),u=i.getText(e);return{container:uc(c.parent,rS),typeNode:c.type,constraint:u,name:u==="K"?"P":"K"}}}function RKe(e,n,{container:i,typeNode:c,constraint:u,name:d}){e.replaceNode(n,i,he.createMappedTypeNode(void 0,he.createTypeParameterDeclaration(void 0,d,he.createTypeReferenceNode(u)),void 0,void 0,c,void 0))}var Mye,mIe,gIe=G({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){xl(),If(),Mye="convertLiteralTypeToMappedType",mIe=[N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Hc({errorCodes:mIe,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=pIe(i,c.start);if(!u)return;const{name:d,constraint:h}=u,S=zs.ChangeTracker.with(n,E=>RKe(E,i,u));return[Rd(Mye,S,[N.Convert_0_to_1_in_0,h,d],Mye,N.Convert_all_type_literals_to_mapped_type)]},fixIds:[Mye],getAllCodeActions:e=>Sg(e,mIe,(n,i)=>{const c=pIe(i.file,i.start);c&&RKe(n,i.file,c)})})}});function hIe(e,n){return re.checkDefined($b(Lf(e,n)),"There should be a containing class")}function MKe(e){return!e.valueDeclaration||!(Cb(e.valueDeclaration)&2)}function f7e(e,n,i,c,u,d){const h=e.program.getTypeChecker(),S=LKe(c,h),E=h.getTypeAtLocation(n),k=h.getPropertiesOfType(E).filter(mU(MKe,ae=>!S.has(ae.escapedName))),F=h.getTypeAtLocation(c),$=lr(c.members,ae=>Lh(ae));F.getNumberIndexType()||X(E,1),F.getStringIndexType()||X(E,0);const J=Z3(i,e.program,d,e.host);jFe(c,k,i,e,d,J,ae=>ie(i,c,ae)),J.writeFixes(u);function X(ae,ve){const we=h.getIndexInfoOfType(ae,ve);we&&ie(i,c,h.indexInfoToIndexSignatureDeclaration(we,c,void 0,dB(e)))}function ie(ae,ve,we){$?u.insertNodeAfter(ae,$,we):u.insertMemberAtStart(ae,ve,we)}}function LKe(e,n){const i=YC(e);if(!i)return zd();const c=n.getTypeAtLocation(i),u=n.getPropertiesOfType(c);return zd(u.filter(MKe))}var yIe,vIe,_7e=G({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){xl(),If(),yIe=[N.Class_0_incorrectly_implements_interface_1.code,N.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],vIe="fixClassIncorrectlyImplementsInterface",Hc({errorCodes:yIe,getCodeActions(e){const{sourceFile:n,span:i}=e,c=hIe(n,i.start);return Qo(ZM(c),u=>{const d=zs.ChangeTracker.with(e,h=>f7e(e,u,n,c,h,e.preferences));return d.length===0?void 0:Rd(vIe,d,[N.Implement_interface_0,u.getText(n)],vIe,N.Implement_all_unimplemented_interfaces)})},fixIds:[vIe],getAllCodeActions(e){const n=new Map;return Sg(e,yIe,(i,c)=>{const u=hIe(c.file,c.start);if(y0(n,vm(u)))for(const d of ZM(u))f7e(e,d,c.file,u,i,e.preferences)})}})}});function Z3(e,n,i,c,u){return OKe(e,n,!1,i,c,u)}function OKe(e,n,i,c,u,d){const h=n.getCompilerOptions(),S=[],E=[],P=new Map,k=new Map;return{addImportFromDiagnostic:F,addImportFromExportedSymbol:$,writeFixes:X,hasFixes:ie};function F(ae,ve){const we=jKe(ve,ae.code,ae.start,i);!we||!we.length||J(Dl(we))}function $(ae,ve){const we=re.checkDefined(ae.parent),Fe=Fj(ae,iu(h)),et=n.getTypeChecker(),Pe=et.getMergedSymbol(dg(ae,et)),dt=d7e(e,Pe,Fe,we,!1,n,u,c,d),Ie=SIe(e,n),ct=WKe(e,re.checkDefined(dt),n,void 0,!!ve,Ie,u,c);ct&&J({fix:ct,symbolName:Fe,errorIdentifierText:void 0})}function J(ae){var ve,we;const{fix:Fe,symbolName:et}=ae;switch(Fe.kind){case 0:S.push(Fe);break;case 1:E.push(Fe);break;case 2:{const{importClauseOrBindingPattern:ct,importKind:Ct,addAsTypeOnly:Lt}=Fe,Ze=String(vm(ct));let Ke=P.get(Ze);if(Ke||P.set(Ze,Ke={importClauseOrBindingPattern:ct,defaultImport:void 0,namedImports:new Map}),Ct===0){const st=Ke==null?void 0:Ke.namedImports.get(et);Ke.namedImports.set(et,Pe(st,Lt))}else re.assert(Ke.defaultImport===void 0||Ke.defaultImport.name===et,"(Add to Existing) Default import should be missing or match symbolName"),Ke.defaultImport={name:et,addAsTypeOnly:Pe((ve=Ke.defaultImport)==null?void 0:ve.addAsTypeOnly,Lt)};break}case 3:{const{moduleSpecifier:ct,importKind:Ct,useRequire:Lt,addAsTypeOnly:Ze}=Fe,Ke=dt(ct,Ct,Lt,Ze);switch(re.assert(Ke.useRequire===Lt,"(Add new) Tried to add an `import` and a `require` for the same module"),Ct){case 1:re.assert(Ke.defaultImport===void 0||Ke.defaultImport.name===et,"(Add new) Default import should be missing or match symbolName"),Ke.defaultImport={name:et,addAsTypeOnly:Pe((we=Ke.defaultImport)==null?void 0:we.addAsTypeOnly,Ze)};break;case 0:const st=(Ke.namedImports||(Ke.namedImports=new Map)).get(et);Ke.namedImports.set(et,Pe(st,Ze));break;case 3:case 2:re.assert(Ke.namespaceLikeImport===void 0||Ke.namespaceLikeImport.name===et,"Namespacelike import shoudl be missing or match symbolName"),Ke.namespaceLikeImport={importKind:Ct,name:et,addAsTypeOnly:Ze};break}break}case 4:break;default:re.assertNever(Fe,`fix wasn't never - got kind ${Fe.kind}`)}function Pe(ct,Ct){return Math.max(ct??0,Ct)}function dt(ct,Ct,Lt,Ze){const Ke=Ie(ct,!0),st=Ie(ct,!1),It=k.get(Ke),Yt=k.get(st),Et={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Lt};return Ct===1&&Ze===2?It||(k.set(Ke,Et),Et):Ze===1&&(It||Yt)?It||Yt:Yt||(k.set(st,Et),Et)}function Ie(ct,Ct){return`${Ct?1:0}|${ct}`}}function X(ae,ve){let we;e.imports.length===0&&ve!==void 0?we=ve:we=OS(e,c);for(const et of S)x7e(ae,e,et);for(const et of E)A7e(ae,e,et,we);P.forEach(({importClauseOrBindingPattern:et,defaultImport:Pe,namedImports:dt})=>{E7e(ae,e,et,Pe,oc(dt.entries(),([Ie,ct])=>({addAsTypeOnly:ct,name:Ie})),c)});let Fe;k.forEach(({useRequire:et,defaultImport:Pe,namedImports:dt,namespaceLikeImport:Ie},ct)=>{const Ct=ct.slice(2),Ze=(et?C7e:ble)(Ct,we,Pe,dt&&oc(dt.entries(),([Ke,st])=>({addAsTypeOnly:st,name:Ke})),Ie,h,c);Fe=FD(Fe,Ze)}),Fe&&zZ(ae,e,Fe,!0,c)}function ie(){return S.length>0||E.length>0||P.size>0||k.size>0}}function Qj(e,n,i,c){const u=Oj(e,c,i),d=TIe(n.getTypeChecker(),e,n.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:h};function h(S,E,P,k){const{fixes:F,computedWithoutCacheCount:$}=Lye(S,E,P,!1,n,e,i,c,d,k),J=g7e(F,e,n,u,i);return J&&{...J,computedWithoutCacheCount:$}}}function FKe(e,n,i,c,u,d,h,S,E,P,k,F){let $;i?($=Sce(c,h,S,k,F).get(c.path,i),re.assertIsDefined($,"Some exportInfo should match the specified exportMapKey")):($=jre(S2(n.name))?[zKe(e,u,n,S,h)]:d7e(c,e,u,n,d,S,h,k,F),re.assertIsDefined($,"Some exportInfo should match the specified symbol / moduleSymbol"));const J=SIe(c,S),X=EA(Lf(c,P)),ie=re.checkDefined(WKe(c,$,S,P,X,J,h,k));return{moduleSpecifier:ie.moduleSpecifier,codeAction:BKe(S7e({host:h,formatContext:E,preferences:k},c,u,ie,!1,S,k))}}function Pft(e,n,i,c,u,d){const h=i.getCompilerOptions(),S=_U(b7e(e,i.getTypeChecker(),n,h)),E=JKe(e,n,S,i),P=S!==n.text;return E&&BKe(S7e({host:c,formatContext:u,preferences:d},e,S,E,P,i,d))}function WKe(e,n,i,c,u,d,h,S){const E=Oj(e,S,h);return g7e(Lye(n,c,u,d,i,e,h,S).fixes,e,i,E,h)}function BKe({description:e,changes:n,commands:i}){return{description:e,changes:n,commands:i}}function d7e(e,n,i,c,u,d,h,S,E){const P=m7e(d,h);return Sce(e,h,d,S,E).search(e.path,u,k=>k===i,k=>{if(dg(k[0].symbol,P(k[0].isFromPackageJson))===n&&k.some(F=>F.moduleSymbol===c||F.symbol.parent===c))return k})}function zKe(e,n,i,c,u){var d,h;const S=c.getCompilerOptions(),E=k(c.getTypeChecker(),!1);if(E)return E;const P=(h=(d=u.getPackageJsonAutoImportProvider)==null?void 0:d.call(u))==null?void 0:h.getTypeChecker();return re.checkDefined(P&&k(P,!0),"Could not find symbol in specified module for code actions");function k(F,$){const J=dhe(i,F,S);if(J&&dg(J.symbol,F)===e)return{symbol:J.symbol,moduleSymbol:i,moduleFileName:void 0,exportKind:J.exportKind,targetFlags:dg(e,F).flags,isFromPackageJson:$};const X=F.tryGetMemberInModuleExportsAndProperties(n,i);if(X&&dg(X,F)===e)return{symbol:X,moduleSymbol:i,moduleFileName:void 0,exportKind:0,targetFlags:dg(e,F).flags,isFromPackageJson:$}}}function Lye(e,n,i,c,u,d,h,S,E=TIe(u.getTypeChecker(),d,u.getCompilerOptions()),P){const k=u.getTypeChecker(),F=ea(e,E.getImportsForExportInfo),$=n!==void 0&&Nft(F,n),J=wft(F,i,k,u.getCompilerOptions());if(J)return{computedWithoutCacheCount:0,fixes:[...$?[$]:Yn,J]};const{fixes:X,computedWithoutCacheCount:ie=0}=GKe(e,F,u,d,n,i,c,h,S,P);return{computedWithoutCacheCount:ie,fixes:[...$?[$]:Yn,...X]}}function Nft(e,n){return Yr(e,({declaration:i,importKind:c})=>{var u;if(c!==0)return;const d=bIe(i),h=d&&((u=C7(i))==null?void 0:u.text);if(h)return{kind:0,namespacePrefix:d,usagePosition:n,moduleSpecifier:h}})}function bIe(e){var n,i,c;switch(e.kind){case 260:return(n=to(e.name,xn))==null?void 0:n.text;case 271:return e.name.text;case 272:return(c=to((i=e.importClause)==null?void 0:i.namedBindings,mh))==null?void 0:c.name.text;default:return re.assertNever(e)}}function p7e(e,n,i,c,u,d){return e?n&&d.importsNotUsedAsValues===2||Qie(d)&&(!(c&111551)||u.getTypeOnlyAliasDeclaration(i))?2:1:4}function wft(e,n,i,c){let u;for(const h of e){const S=d(h);if(!S)continue;const E=HX(S.importClauseOrBindingPattern);if(S.addAsTypeOnly!==4&&E||S.addAsTypeOnly===4&&!E)return S;u??(u=S)}return u;function d({declaration:h,importKind:S,symbol:E,targetFlags:P}){if(S===3||S===2||h.kind===271)return;if(h.kind===260)return(S===0||S===1)&&h.name.kind===206?{kind:2,importClauseOrBindingPattern:h.name,importKind:S,moduleSpecifier:h.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=h;if(!k||!Cm(h.moduleSpecifier))return;const{name:F,namedBindings:$}=k;if(k.isTypeOnly&&!(S===0&&$))return;const J=p7e(n,!1,E,P,i,c);if(!(S===1&&(F||J===2&&$))&&!(S===0&&($==null?void 0:$.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:S,moduleSpecifier:h.moduleSpecifier.text,addAsTypeOnly:J}}}function TIe(e,n,i){let c;for(const u of n.imports){const d=XC(u);if(v1(d.parent)){const h=e.resolveExternalModuleName(u);h&&(c||(c=zg())).add($d(h),d.parent)}else if(d.kind===272||d.kind===271){const h=e.getSymbolAtLocation(u);h&&(c||(c=zg())).add($d(h),d)}}return{getImportsForExportInfo:({moduleSymbol:u,exportKind:d,targetFlags:h,symbol:S})=>{if(!(h&111551)&&Gy(n))return Yn;const E=c==null?void 0:c.get($d(u));if(!E)return Yn;const P=y7e(n,d,i);return E.map(k=>({declaration:k,importKind:P,symbol:S,targetFlags:h}))}}}function SIe(e,n){if(!Gy(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const i=n.getCompilerOptions();if(i.configFile)return Zp(i)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const c of n.getSourceFiles())if(!(c===e||!Gy(c)||n.isSourceFileFromExternalLibrary(c))){if(c.commonJsModuleIndicator&&!c.externalModuleIndicator)return!0;if(c.externalModuleIndicator&&!c.commonJsModuleIndicator)return!1}return!0}function m7e(e,n){return p0(i=>i?n.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function EIe(e,n,i,c,u,d,h,S,E){const P=Gy(n),k=e.getCompilerOptions(),F=v4(e,h),$=m7e(e,h),J=Jd(k),X=kj(J),ie=E?we=>({moduleSpecifiers:u4.tryGetModuleSpecifiersFromCache(we,n,F,S),computedWithoutCache:!1}):(we,Fe)=>u4.getModuleSpecifiersWithCacheInfo(we,Fe,k,n,F,S,void 0,!0);let ae=0;const ve=ea(d,(we,Fe)=>{const et=$(we.isFromPackageJson),{computedWithoutCache:Pe,moduleSpecifiers:dt}=ie(we.moduleSymbol,et),Ie=!!(we.targetFlags&111551),ct=p7e(c,!0,we.symbol,we.targetFlags,et,k);return ae+=Pe?1:0,Qo(dt,Ct=>{var Lt;if(X&&RW(Ct))return;if(!Ie&&P&&i!==void 0)return{kind:1,moduleSpecifier:Ct,usagePosition:i,exportInfo:we,isReExport:Fe>0};const Ze=y7e(n,we.exportKind,k);let Ke;if(i!==void 0&&Ze===3&&we.exportKind===0){const st=et.resolveExternalModuleSymbol(we.moduleSymbol);let It;st!==we.moduleSymbol&&(It=(Lt=phe(st,et,k))==null?void 0:Lt.name),It||(It=DIe(we.moduleSymbol,iu(k),!1)),Ke={namespacePrefix:It,usagePosition:i}}return{kind:3,moduleSpecifier:Ct,importKind:Ze,useRequire:u,addAsTypeOnly:ct,exportInfo:we,isReExport:Fe>0,qualification:Ke}})});return{computedWithoutCacheCount:ae,fixes:ve}}function GKe(e,n,i,c,u,d,h,S,E,P){const k=Yr(n,F=>Rft(F,d,h,i.getTypeChecker(),i.getCompilerOptions()));return k?{fixes:[k]}:EIe(i,c,u,d,h,e,S,E,P)}function Rft({declaration:e,importKind:n,symbol:i,targetFlags:c},u,d,h,S){var E;const P=(E=C7(e))==null?void 0:E.text;if(P){const k=d?4:p7e(u,!0,i,c,h,S);return{kind:3,moduleSpecifier:P,importKind:n,addAsTypeOnly:k,useRequire:d}}}function jKe(e,n,i,c){const u=Lf(e.sourceFile,i);let d;if(n===N._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)d=Lft(e,u);else if(xn(u))if(n===N._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const S=_U(b7e(e.sourceFile,e.program.getTypeChecker(),u,e.program.getCompilerOptions())),E=JKe(e.sourceFile,u,S,e.program);return E&&[{fix:E,symbolName:S,errorIdentifierText:u.text}]}else d=v7e(e,u,c);else return;const h=Oj(e.sourceFile,e.preferences,e.host);return d&&Mft(d,e.sourceFile,e.program,h,e.host)}function Mft(e,n,i,c,u){const d=h=>gm(h,u.getCurrentDirectory(),QC(u));return fN(e,(h,S)=>Z0(!!h.isJsxNamespaceFix,!!S.isJsxNamespaceFix)||pf(h.fix.kind,S.fix.kind)||VKe(h.fix,S.fix,n,i,c.allowsImportingSpecifier,d))}function g7e(e,n,i,c,u){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((d,h)=>VKe(h,d,n,i,c.allowsImportingSpecifier,S=>gm(S,u.getCurrentDirectory(),QC(u)))===-1?h:d)}function VKe(e,n,i,c,u,d){return e.kind!==0&&n.kind!==0?Z0(u(n.moduleSpecifier),u(e.moduleSpecifier))||HKe(e.moduleSpecifier,n.moduleSpecifier,i,c)||Z0(h7e(e,i,c.getCompilerOptions(),d),h7e(n,i,c.getCompilerOptions(),d))||Z9(e.moduleSpecifier,n.moduleSpecifier):0}function h7e(e,n,i,c){var u;if(e.isReExport&&((u=e.exportInfo)!=null&&u.moduleFileName)&&Jd(i)===2&&UKe(e.exportInfo.moduleFileName)){const d=c(ws(e.exportInfo.moduleFileName));return qf(n.path,d)}return!1}function UKe(e){return Jg(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function HKe(e,n,i,c){return qf(e,"node:")&&!qf(n,"node:")?yce(i,c)?-1:1:qf(n,"node:")&&!qf(e,"node:")?yce(i,c)?1:-1:0}function Lft({sourceFile:e,program:n,host:i,preferences:c},u){const d=n.getTypeChecker(),h=Oft(u,d);if(!h)return;const S=d.getAliasedSymbol(h),E=h.name,P=[{symbol:h,moduleSymbol:S,moduleFileName:void 0,exportKind:3,targetFlags:S.flags,isFromPackageJson:!1}],k=SIe(e,n);return Lye(P,void 0,!1,k,n,e,i,c).fixes.map($=>{var J;return{fix:$,symbolName:E,errorIdentifierText:(J=to(u,xn))==null?void 0:J.text}})}function Oft(e,n){const i=xn(e)?n.getSymbolAtLocation(e):void 0;if(MH(i))return i;const{parent:c}=e;if(m1(c)&&c.tagName===e||v6(c)){const u=n.resolveName(n.getJsxNamespace(c),m1(c)?e:c,111551,!1);if(MH(u))return u}}function y7e(e,n,i,c){if(i.verbatimModuleSyntax&&(Zp(i)===1||e.impliedNodeFormat===1))return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return Wft(e,i,!!c);case 3:return Fft(e,i,!!c);default:return re.assertNever(n)}}function Fft(e,n,i){if(VN(n))return 1;const c=Zp(n);switch(c){case 2:case 1:case 3:return Cs(e)&&(Bv(e)||i)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return re.assertNever(c,`Unexpected moduleKind ${c}`)}}function v7e({sourceFile:e,program:n,cancellationToken:i,host:c,preferences:u},d,h){const S=n.getTypeChecker(),E=n.getCompilerOptions();return ea(b7e(e,S,d,E),P=>{if(P==="default")return;const k=EA(d),F=SIe(e,n),$=T7e(P,T7(d),xF(d),i,e,n,h,c,u);return oc(Ky($.values(),J=>Lye(J,d.getStart(e),k,F,n,e,c,u).fixes),J=>({fix:J,symbolName:P,errorIdentifierText:d.text,isJsxNamespaceFix:P!==d.text}))})}function JKe(e,n,i,c){const u=c.getTypeChecker(),d=u.resolveName(i,n,111551,!0);if(!d)return;const h=u.getTypeOnlyAliasDeclaration(d);if(!(!h||ts(h)!==e))return{kind:4,typeOnlyAliasDeclaration:h}}function b7e(e,n,i,c){const u=i.parent;if((m1(u)||iD(u))&&u.tagName===i&&uhe(c.jsx)){const d=n.getJsxNamespace(e);if($Ke(d,i,n))return!EH(i.text)&&!n.resolveName(i.text,i,111551,!1)?[i.text,d]:[d]}return[i.text]}function $Ke(e,n,i){if(EH(n.text))return!0;const c=i.resolveName(e,n,111551,!0);return!c||gt(c.declarations,O8)&&!(c.flags&111551)}function T7e(e,n,i,c,u,d,h,S,E){var P;const k=zg(),F=Oj(u,E,S),$=(P=S.getModuleSpecifierCache)==null?void 0:P.call(S),J=p0(ie=>v4(ie?S.getPackageJsonAutoImportProvider():d,S));function X(ie,ae,ve,we,Fe,et){const Pe=J(et);if(ae&&Tce(Fe,u,ae,E,F,Pe,$)||!ae&&F.allowsImportingAmbientModule(ie,Pe)){const dt=Fe.getTypeChecker();k.add(RAe(ve,dt).toString(),{symbol:ve,moduleSymbol:ie,moduleFileName:ae==null?void 0:ae.fileName,exportKind:we,targetFlags:dg(ve,dt).flags,isFromPackageJson:et})}}return VAe(d,S,E,h,(ie,ae,ve,we)=>{const Fe=ve.getTypeChecker();c.throwIfCancellationRequested();const et=ve.getCompilerOptions(),Pe=dhe(ie,Fe,et);Pe&&(Pe.name===e||DIe(ie,iu(et),n)===e)&&I7e(Pe.resolvedSymbol,i)&&X(ie,ae,Pe.symbol,Pe.exportKind,ve,we);const dt=Fe.tryGetMemberInModuleExportsAndProperties(e,ie);dt&&I7e(dt,i)&&X(ie,ae,dt,0,ve,we)}),k}function Wft(e,n,i){const c=VN(n),u=Cs(e);if(!u&&Zp(n)>=5)return c?1:2;if(u)return Bv(e)||i?c?1:2:3;for(const d of e.statements)if(Yb(d)&&!ny(d.moduleReference))return 3;return c?1:3}function S7e(e,n,i,c,u,d,h){let S;const E=zs.ChangeTracker.with(e,P=>{S=Bft(P,n,i,c,u,d,h)});return Rd(Wye,E,S,Bye,N.Add_all_missing_imports)}function Bft(e,n,i,c,u,d,h){const S=OS(n,h);switch(c.kind){case 0:return x7e(e,n,c),[N.Change_0_to_1,i,`${c.namespacePrefix}.${i}`];case 1:return A7e(e,n,c,S),[N.Change_0_to_1,i,AIe(c.moduleSpecifier,S)+i];case 2:{const{importClauseOrBindingPattern:E,importKind:P,addAsTypeOnly:k,moduleSpecifier:F}=c;E7e(e,n,E,P===1?{name:i,addAsTypeOnly:k}:void 0,P===0?[{name:i,addAsTypeOnly:k}]:Yn,h);const $=S2(F);return u?[N.Import_0_from_1,i,$]:[N.Update_import_from_0,$]}case 3:{const{importKind:E,moduleSpecifier:P,addAsTypeOnly:k,useRequire:F,qualification:$}=c,J=F?C7e:ble,X=E===1?{name:i,addAsTypeOnly:k}:void 0,ie=E===0?[{name:i,addAsTypeOnly:k}]:void 0,ae=E===2||E===3?{importKind:E,name:($==null?void 0:$.namespacePrefix)||i,addAsTypeOnly:k}:void 0;return zZ(e,n,J(P,S,X,ie,ae,d.getCompilerOptions(),h),!0,h),$&&x7e(e,n,$),u?[N.Import_0_from_1,i,P]:[N.Add_import_from_0,P]}case 4:{const{typeOnlyAliasDeclaration:E}=c,P=zft(e,E,d,n,h);return P.kind===276?[N.Remove_type_from_import_of_0_from_1,i,xIe(P.parent.parent)]:[N.Remove_type_from_import_declaration_from_0,xIe(P)]}default:return re.assertNever(c,`Unexpected fix kind ${c.kind}`)}}function xIe(e){var n,i;return e.kind===271?((i=to((n=to(e.moduleReference,KE))==null?void 0:n.expression,Cm))==null?void 0:i.text)||e.moduleReference.getText():uc(e.parent.moduleSpecifier,Sd).text}function zft(e,n,i,c,u){const d=i.getCompilerOptions(),h=Qie(d);switch(n.kind){case 276:if(n.isTypeOnly){const E=lD.detectImportSpecifierSorting(n.parent.elements,u);if(n.parent.elements.length>1&&E){const P=he.updateImportSpecifier(n,!1,n.propertyName,n.name),k=lD.getOrganizeImportsComparer(u,E===2),F=lD.getImportSpecifierInsertionIndex(n.parent.elements,P,k);if(n.parent.elements.indexOf(n)!==F)return e.delete(c,n),e.insertImportSpecifierAtIndex(c,P,n.parent,F),n}return e.deleteRange(c,n.getFirstToken()),n}else return re.assert(n.parent.parent.isTypeOnly),S(n.parent.parent),n.parent.parent;case 273:return S(n),n;case 274:return S(n.parent),n.parent;case 271:return e.deleteRange(c,n.getChildAt(1)),n;default:re.failBadSyntaxKind(n)}function S(E){var P;if(e.delete(c,qge(E,c)),!d.allowImportingTsExtensions){const k=C7(E.parent),F=k&&((P=i.getResolvedModule(c,k.text,PA(c,k)))==null?void 0:P.resolvedModule);if(F!=null&&F.resolvedUsingTsExtension){const $=Vre(k.text,jae(k.text,d));e.replaceNode(c,k,he.createStringLiteral($))}}if(h){const k=to(E.namedBindings,Oy);if(k&&k.elements.length>1){lD.detectImportSpecifierSorting(k.elements,u)&&n.kind===276&&k.elements.indexOf(n)!==0&&(e.delete(c,n),e.insertImportSpecifierAtIndex(c,n,k,0));for(const F of k.elements)F!==n&&!F.isTypeOnly&&e.insertModifierBefore(c,156,F)}}}}function E7e(e,n,i,c,u,d){var h;if(i.kind===206){c&&P(i,c.name,"default");for(const k of u)P(i,k.name,void 0);return}const S=i.isTypeOnly&>([c,...u],k=>(k==null?void 0:k.addAsTypeOnly)===4),E=i.namedBindings&&((h=to(i.namedBindings,Oy))==null?void 0:h.elements);if(c&&(re.assert(!i.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(n,i.getStart(n),he.createIdentifier(c.name),{suffix:", "})),u.length){let k;if(typeof d.organizeImportsIgnoreCase=="boolean")k=d.organizeImportsIgnoreCase;else if(E){const X=lD.detectImportSpecifierSorting(E,d);X!==3&&(k=X===2)}k===void 0&&(k=lD.detectSorting(n,d)===2);const F=lD.getOrganizeImportsComparer(d,k),$=nh(u.map(X=>he.createImportSpecifier((!i.isTypeOnly||S)&&Oye(X,d),void 0,he.createIdentifier(X.name))),(X,ie)=>lD.compareImportOrExportSpecifiers(X,ie,F)),J=(E==null?void 0:E.length)&&lD.detectImportSpecifierSorting(E,d);if(J&&!(k&&J===1))for(const X of $){const ie=S&&!X.isTypeOnly?0:lD.getImportSpecifierInsertionIndex(E,X,F);e.insertImportSpecifierAtIndex(n,X,i.namedBindings,ie)}else if(E!=null&&E.length)for(const X of $)e.insertNodeInListAfter(n,yl(E),X,E);else if($.length){const X=he.createNamedImports($);i.namedBindings?e.replaceNode(n,i.namedBindings,X):e.insertNodeAfter(n,re.checkDefined(i.name,"Import clause must have either named imports or a default import"),X)}}if(S&&(e.delete(n,qge(i,n)),E))for(const k of E)e.insertModifierBefore(n,156,k);function P(k,F,$){const J=he.createBindingElement(void 0,$,F);k.elements.length?e.insertNodeInListAfter(n,yl(k.elements),J):e.replaceNode(n,k,he.createObjectBindingPattern([J]))}}function x7e(e,n,{namespacePrefix:i,usagePosition:c}){e.insertText(n,c,i+".")}function A7e(e,n,{moduleSpecifier:i,usagePosition:c},u){e.insertText(n,c,AIe(i,u))}function AIe(e,n){const i=ice(n);return`import(${i}${e}${i}).`}function CIe({addAsTypeOnly:e}){return e===2}function Oye(e,n){return CIe(e)||!!n.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function ble(e,n,i,c,u,d,h){const S=Pj(e,n);let E;if(i!==void 0||c!=null&&c.length){const P=(!i||CIe(i))&&jr(c,CIe)||(d.verbatimModuleSyntax||h.preferTypeOnlyAutoImports)&&(i==null?void 0:i.addAsTypeOnly)!==4&&!gt(c,k=>k.addAsTypeOnly===4);E=FD(E,Nk(i&&he.createIdentifier(i.name),c==null?void 0:c.map(k=>he.createImportSpecifier(!P&&Oye(k,h),void 0,he.createIdentifier(k.name))),e,n,P))}if(u){const P=u.importKind===3?he.createImportEqualsDeclaration(void 0,Oye(u,h),he.createIdentifier(u.name),he.createExternalModuleReference(S)):he.createImportDeclaration(void 0,he.createImportClause(Oye(u,h),void 0,he.createNamespaceImport(he.createIdentifier(u.name))),S,void 0);E=FD(E,P)}return re.checkDefined(E)}function C7e(e,n,i,c,u){const d=Pj(e,n);let h;if(i||c!=null&&c.length){const S=(c==null?void 0:c.map(({name:P})=>he.createBindingElement(void 0,void 0,P)))||[];i&&S.unshift(he.createBindingElement(void 0,"default",i.name));const E=D7e(he.createObjectBindingPattern(S),d);h=FD(h,E)}if(u){const S=D7e(u.name,d);h=FD(h,S)}return re.checkDefined(h)}function D7e(e,n){return he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(typeof e=="string"?he.createIdentifier(e):e,void 0,void 0,he.createCallExpression(he.createIdentifier("require"),void 0,[n]))],2))}function I7e({declarations:e},n){return gt(e,i=>!!(j$(i)&n))}function DIe(e,n,i){return Fye(wg(S2(e.name)),n,i)}function Fye(e,n,i){const c=Jg(DM(e,"/index"));let u="",d=!0;const h=c.charCodeAt(0);lP(h,n)?(u+=String.fromCharCode(h),i&&(u=u.toUpperCase())):d=!1;for(let S=1;SS7e(e,c,E,S,E!==P,d,i))},fixIds:[Bye],getAllCodeActions:e=>{const{sourceFile:n,program:i,preferences:c,host:u,cancellationToken:d}=e,h=OKe(n,i,!0,c,u,d);return GR(e,zye,S=>h.addImportFromDiagnostic(S,e)),Iq(zs.ChangeTracker.with(e,h.writeFixes))}})}});function qKe(e,n,i){const c=lr(e.getSemanticDiagnostics(n),h=>h.start===i.start&&h.length===i.length);if(c===void 0||c.relatedInformation===void 0)return;const u=lr(c.relatedInformation,h=>h.code===N.This_type_parameter_might_need_an_extends_0_constraint.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let d=mB(u.file,p1(u.start,u.length));if(d!==void 0&&(xn(d)&&Np(d.parent)&&(d=d.parent),Np(d))){if(LJ(d.parent))return;const h=Lf(n,i.start),S=e.getTypeChecker();return{constraint:Gft(S,h)||KKe(u.messageText),declaration:d,token:h}}}function P7e(e,n,i,c,u,d){const{declaration:h,constraint:S}=d,E=n.getTypeChecker();if(As(S))e.insertText(u,h.name.end,` extends ${S}`);else{const P=iu(n.getCompilerOptions()),k=dB({program:n,host:c}),F=Z3(u,n,i,c),$=mve(E,F,S,void 0,P,void 0,k);$&&(e.replaceNode(u,h,he.updateTypeParameterDeclaration(h,void 0,h.name,$,h.default)),F.writeFixes(e))}}function KKe(e){const[n,i]=D2(e,` -`,0).match(/`extends (.*)`/)||[];return i}function Gft(e,n){return pc(n.parent)?e.getTypeArgumentConstraint(n.parent):(kr(n)?e.getContextualType(n):void 0)||e.getTypeAtLocation(n)}var IIe,Tle,N7e=G({"src/services/codefixes/fixAddMissingConstraint.ts"(){xl(),If(),IIe="addMissingConstraint",Tle=[N.Type_0_is_not_comparable_to_type_1.code,N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,N.Type_0_is_not_assignable_to_type_1.code,N.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,N.Property_0_is_incompatible_with_index_signature.code,N.Property_0_in_type_1_is_not_assignable_to_type_2.code,N.Type_0_does_not_satisfy_the_constraint_1.code],Hc({errorCodes:Tle,getCodeActions(e){const{sourceFile:n,span:i,program:c,preferences:u,host:d}=e,h=qKe(c,n,i);if(h===void 0)return;const S=zs.ChangeTracker.with(e,E=>P7e(E,c,u,d,n,h));return[Rd(IIe,S,N.Add_extends_constraint,IIe,N.Add_extends_constraint_to_all_type_parameters)]},fixIds:[IIe],getAllCodeActions:e=>{const{program:n,preferences:i,host:c}=e,u=new Map;return Iq(zs.ChangeTracker.with(e,d=>{GR(e,Tle,h=>{const S=qKe(n,h.file,p1(h.start,h.length));if(S&&y0(u,vm(S.declaration)))return P7e(d,n,i,c,h.file,S)})}))}})}});function XKe(e,n,i,c){switch(i){case N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return YKe(e,n.sourceFile,c);case N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return jft(e,n.sourceFile,c);default:re.fail("Unexpected error code: "+i)}}function YKe(e,n,i){const c=w7e(n,i);if(Gy(n)){e.addJSDocTags(n,c,[he.createJSDocOverrideTag(he.createIdentifier("override"))]);return}const u=c.modifiers||Yn,d=lr(u,pW),h=lr(u,wJ),S=lr(u,F=>FR(F.kind)),E=ra(u,Jh),P=h?h.end:d?d.end:S?S.end:E?Ff(n.text,E.end):c.getStart(n),k=S||d||h?{prefix:" "}:{suffix:" "};e.insertModifierAt(n,P,164,k)}function jft(e,n,i){const c=w7e(n,i);if(Gy(n)){e.filterJSDocTags(n,c,dA(AA));return}const u=lr(c.modifiers,RJ);re.assertIsDefined(u),e.deleteModifier(n,u)}function QKe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return DT(e,e.parent);default:return!1}}function w7e(e,n){const i=Lf(e,n),c=Ua(i,u=>Fl(u)?"quit":QKe(u));return re.assert(c&&QKe(c)),c}var kIe,Zj,eO,Mq,Gye,R7e=G({"src/services/codefixes/fixOverrideModifier.ts"(){xl(),If(),kIe="fixOverrideModifier",Zj="fixAddOverrideModifier",eO="fixRemoveOverrideModifier",Mq=[N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Gye={[N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Zj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Zj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_override_modifier},[N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Zj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Zj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Zj,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers}},Hc({errorCodes:Mq,getCodeActions:function(n){const{errorCode:i,span:c}=n,u=Gye[i];if(!u)return Yn;const{descriptions:d,fixId:h,fixAllDescriptions:S}=u,E=zs.ChangeTracker.with(n,P=>XKe(P,n,i,c.start));return[POe(kIe,E,d,h,S)]},fixIds:[kIe,Zj,eO],getAllCodeActions:e=>Sg(e,Mq,(n,i)=>{const{code:c,start:u}=i,d=Gye[c];!d||d.fixId!==e.fixId||XKe(n,e,c,u)})})}});function ZKe(e,n,i,c){const u=OS(n,c),d=he.createStringLiteral(i.name.text,u===0);e.replaceNode(n,i,ede(i)?he.createElementAccessChain(i.expression,i.questionDotToken,d):he.createElementAccessExpression(i.expression,d))}function M7e(e,n){return uc(Lf(e,n).parent,Ac)}var jye,Sle,L7e=G({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){xl(),If(),jye="fixNoPropertyAccessFromIndexSignature",Sle=[N.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Hc({errorCodes:Sle,fixIds:[jye],getCodeActions(e){const{sourceFile:n,span:i,preferences:c}=e,u=M7e(n,i.start),d=zs.ChangeTracker.with(e,h=>ZKe(h,e.sourceFile,u,c));return[Rd(jye,d,[N.Use_element_access_for_0,u.name.text],jye,N.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Sg(e,Sle,(n,i)=>ZKe(n,i.file,M7e(i.file,i.start),e.preferences))})}});function eXe(e,n,i,c){const u=Lf(n,i);if(!AF(u))return;const d=RT(u,!1,!1);if(!(!mg(d)&&!Jm(d))&&!Nu(RT(d,!1,!1))){const h=re.checkDefined(qm(d,100,n)),{name:S}=d,E=re.checkDefined(d.body);return Jm(d)?S&&Wf.Core.isSymbolReferencedInFile(S,c,n,E)?void 0:(e.delete(n,h),S&&e.delete(n,S),e.insertText(n,E.pos," =>"),[N.Convert_function_expression_0_to_arrow_function,S?S.text:bce]):(e.replaceNode(n,h,he.createToken(87)),e.insertText(n,S.end," = "),e.insertText(n,E.pos," =>"),[N.Convert_function_declaration_0_to_arrow_function,S.text])}}var Vye,Ele,O7e=G({"src/services/codefixes/fixImplicitThis.ts"(){xl(),If(),Vye="fixImplicitThis",Ele=[N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Hc({errorCodes:Ele,getCodeActions:function(n){const{sourceFile:i,program:c,span:u}=n;let d;const h=zs.ChangeTracker.with(n,S=>{d=eXe(S,i,u.start,c.getTypeChecker())});return d?[Rd(Vye,h,d,Vye,N.Fix_all_implicit_this_errors)]:Yn},fixIds:[Vye],getAllCodeActions:e=>Sg(e,Ele,(n,i)=>{eXe(n,i.file,i.start,e.program.getTypeChecker())})})}});function tXe(e,n,i){var c,u;const d=Lf(e,n);if(xn(d)){const h=Ua(d,n0);if(h===void 0)return;const S=Sd(h.moduleSpecifier)?h.moduleSpecifier.text:void 0;if(S===void 0)return;const E=(c=i.getResolvedModule(e,S,void 0))==null?void 0:c.resolvedModule;if(E===void 0)return;const P=i.getSourceFile(E.resolvedFileName);if(P===void 0||cB(i,P))return;const k=P.symbol,F=(u=to(k.valueDeclaration,XD))==null?void 0:u.locals;if(F===void 0)return;const $=F.get(d.escapedText);if($===void 0)return;const J=rXe($);return J===void 0?void 0:{exportName:{node:d,isTypeOnly:f6(J)},node:J,moduleSourceFile:P,moduleSpecifier:S}}}function nXe(e,n,{exportName:i,node:c,moduleSourceFile:u}){const d=xle(u,i.isTypeOnly);d?Uye(e,n,u,d,[i]):nW(c)?e.insertExportModifier(u,c):W7e(e,n,u,[i])}function F7e(e,n,i,c,u){Nt(c)&&(u?Uye(e,n,i,u,c):W7e(e,n,i,c))}function xle(e,n){const i=c=>ry(c)&&(n&&c.isTypeOnly||!c.isTypeOnly);return ra(e.statements,i)}function Uye(e,n,i,c,u){const d=c.exportClause&&j0(c.exportClause)?c.exportClause.elements:he.createNodeArray([]),h=!c.isTypeOnly&&!!(F0(n.getCompilerOptions())||lr(d,S=>S.isTypeOnly));e.replaceNode(i,c,he.updateExportDeclaration(c,c.modifiers,c.isTypeOnly,he.createNamedExports(he.createNodeArray([...d,...B7e(u,h)],d.hasTrailingComma)),c.moduleSpecifier,c.attributes))}function W7e(e,n,i,c){e.insertNodeAtEndOfScope(i,i,he.createExportDeclaration(void 0,!1,he.createNamedExports(B7e(c,F0(n.getCompilerOptions()))),void 0,void 0))}function B7e(e,n){return he.createNodeArray(Vn(e,i=>he.createExportSpecifier(n&&i.isTypeOnly,void 0,i.node)))}function rXe(e){if(e.valueDeclaration===void 0)return pp(e.declarations);const n=e.valueDeclaration,i=Kc(n)?to(n.parent.parent,Xg):void 0;return i&&Nt(i.declarationList.declarations)===1?i:n}var PIe,Ale,z7e=G({"src/services/codefixes/fixImportNonExportedMember.ts"(){xl(),If(),PIe="fixImportNonExportedMember",Ale=[N.Module_0_declares_1_locally_but_it_is_not_exported.code],Hc({errorCodes:Ale,fixIds:[PIe],getCodeActions(e){const{sourceFile:n,span:i,program:c}=e,u=tXe(n,i.start,c);if(u===void 0)return;const d=zs.ChangeTracker.with(e,h=>nXe(h,c,u));return[Rd(PIe,d,[N.Export_0_from_module_1,u.exportName.node.text,u.moduleSpecifier],PIe,N.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:n}=e;return Iq(zs.ChangeTracker.with(e,i=>{const c=new Map;GR(e,Ale,u=>{const d=tXe(u.file,u.start,n);if(d===void 0)return;const{exportName:h,node:S,moduleSourceFile:E}=d;if(xle(E,h.isTypeOnly)===void 0&&nW(S))i.insertExportModifier(E,S);else{const P=c.get(E)||{typeOnlyExports:[],exports:[]};h.isTypeOnly?P.typeOnlyExports.push(h):P.exports.push(h),c.set(E,P)}}),c.forEach((u,d)=>{const h=xle(d,!0);h&&h.isTypeOnly?(F7e(i,n,d,u.typeOnlyExports,h),F7e(i,n,d,u.exports,xle(d,!1))):F7e(i,n,d,[...u.exports,...u.typeOnlyExports],h)})}))}})}});function Vft(e,n){const i=Lf(e,n);return Ua(i,c=>c.kind===202)}function Uft(e,n,i){if(!i)return;let c=i.type,u=!1,d=!1;for(;c.kind===190||c.kind===191||c.kind===196;)c.kind===190?u=!0:c.kind===191&&(d=!0),c=c.type;const h=he.updateNamedTupleMember(i,i.dotDotDotToken||(d?he.createToken(26):void 0),i.name,i.questionToken||(u?he.createToken(58):void 0),c);h!==i&&e.replaceNode(n,i,h)}var NIe,Hye,iXe=G({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){xl(),If(),NIe="fixIncorrectNamedTupleSyntax",Hye=[N.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,N.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Hc({errorCodes:Hye,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=Vft(i,c.start),d=zs.ChangeTracker.with(n,h=>Uft(h,i,u));return[Rd(NIe,d,N.Move_labeled_tuple_element_modifiers_to_labels,NIe,N.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[NIe]})}});function oXe(e,n,i,c){const u=Lf(e,n),d=u.parent;if((c===N.No_overload_matches_this_call.code||c===N.Type_0_is_not_assignable_to_type_1.code)&&!tx(d))return;const h=i.program.getTypeChecker();let S;if(Ac(d)&&d.name===u){re.assert(xN(u),"Expected an identifier for spelling (property access)");let E=h.getTypeAtLocation(d.expression);d.flags&64&&(E=h.getNonNullableType(E)),S=h.getSuggestedSymbolForNonexistentProperty(u,E)}else if(Ds(d)&&d.operatorToken.kind===103&&d.left===u&&Lu(u)){const E=h.getTypeAtLocation(d.right);S=h.getSuggestedSymbolForNonexistentProperty(u,E)}else if(Pu(d)&&d.right===u){const E=h.getSymbolAtLocation(d.left);E&&E.flags&1536&&(S=h.getSuggestedSymbolForNonexistentModule(d.right,E))}else if(qE(d)&&d.name===u){re.assertNode(u,xn,"Expected an identifier for spelling (import)");const E=Ua(u,n0),P=Hft(e,i,E);P&&P.symbol&&(S=h.getSuggestedSymbolForNonexistentModule(u,P.symbol))}else if(tx(d)&&d.name===u){re.assertNode(u,xn,"Expected an identifier for JSX attribute");const E=Ua(u,m1),P=h.getContextualTypeForArgumentAtIndex(E,0);S=h.getSuggestedSymbolForNonexistentJSXAttribute(u,P)}else if(zie(d)&&J_(d)&&d.name===u){const E=Ua(u,Fl),P=E?YC(E):void 0,k=P?h.getTypeAtLocation(P):void 0;k&&(S=h.getSuggestedSymbolForNonexistentClassMember(Lv(u),k))}else{const E=xF(u),P=Lv(u);re.assert(P!==void 0,"name should be defined"),S=h.getSuggestedSymbolForNonexistentSymbol(u,P,aXe(E))}return S===void 0?void 0:{node:u,suggestedSymbol:S}}function G7e(e,n,i,c,u){const d=Il(c);if(!H2(d,u)&&Ac(i.parent)){const h=c.valueDeclaration;h&&mp(h)&&Lu(h.name)?e.replaceNode(n,i,he.createIdentifier(d)):e.replaceNode(n,i.parent,he.createElementAccessExpression(i.parent.expression,he.createStringLiteral(d)))}else e.replaceNode(n,i,he.createIdentifier(d))}function aXe(e){let n=0;return e&4&&(n|=1920),e&2&&(n|=788968),e&1&&(n|=111551),n}function Hft(e,n,i){var c;if(!i||!Cm(i.moduleSpecifier))return;const u=(c=n.program.getResolvedModule(e,i.moduleSpecifier.text,PA(e,i.moduleSpecifier)))==null?void 0:c.resolvedModule;if(u)return n.program.getSourceFile(u.resolvedFileName)}var j7e,Jye,V7e=G({"src/services/codefixes/fixSpelling.ts"(){xl(),If(),j7e="fixSpelling",Jye=[N.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,N.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,N.Cannot_find_name_0_Did_you_mean_1.code,N.Could_not_find_name_0_Did_you_mean_1.code,N.Cannot_find_namespace_0_Did_you_mean_1.code,N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,N._0_has_no_exported_member_named_1_Did_you_mean_2.code,N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,N.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,N.No_overload_matches_this_call.code,N.Type_0_is_not_assignable_to_type_1.code],Hc({errorCodes:Jye,getCodeActions(e){const{sourceFile:n,errorCode:i}=e,c=oXe(n,e.span.start,e,i);if(!c)return;const{node:u,suggestedSymbol:d}=c,h=iu(e.host.getCompilationSettings()),S=zs.ChangeTracker.with(e,E=>G7e(E,n,u,d,h));return[Rd("spelling",S,[N.Change_spelling_to_0,Il(d)],j7e,N.Fix_all_detected_spelling_errors)]},fixIds:[j7e],getAllCodeActions:e=>Sg(e,Jye,(n,i)=>{const c=oXe(i.file,i.start,e,i.code),u=iu(e.host.getCompilationSettings());c&&G7e(n,e.sourceFile,c.node,c.suggestedSymbol,u)})})}});function sXe(e,n,i){const c=e.createSymbol(4,n.escapedText);c.links.type=e.getTypeAtLocation(i);const u=zd([c]);return e.createAnonymousType(void 0,u,[],[],[])}function wIe(e,n,i,c){if(!n.body||!Ou(n.body)||Nt(n.body.statements)!==1)return;const u=Dl(n.body.statements);if(kb(u)&&$ye(e,n,e.getTypeAtLocation(u.expression),i,c))return{declaration:n,kind:0,expression:u.expression,statement:u,commentSource:u.expression};if(tF(u)&&kb(u.statement)){const d=he.createObjectLiteralExpression([he.createPropertyAssignment(u.label,u.statement.expression)]),h=sXe(e,u.label,u.statement.expression);if($ye(e,n,h,i,c))return $m(n)?{declaration:n,kind:1,expression:d,statement:u,commentSource:u.statement.expression}:{declaration:n,kind:0,expression:d,statement:u,commentSource:u.statement.expression}}else if(Ou(u)&&Nt(u.statements)===1){const d=Dl(u.statements);if(tF(d)&&kb(d.statement)){const h=he.createObjectLiteralExpression([he.createPropertyAssignment(d.label,d.statement.expression)]),S=sXe(e,d.label,d.statement.expression);if($ye(e,n,S,i,c))return{declaration:n,kind:0,expression:h,statement:u,commentSource:d}}}}function $ye(e,n,i,c,u){if(u){const d=e.getSignatureFromDeclaration(n);if(d){ul(n,1024)&&(i=e.createPromiseType(i));const h=e.createSignature(n,d.typeParameters,d.thisParameter,d.parameters,i,void 0,d.minArgumentCount,d.flags);i=e.createAnonymousType(void 0,zd(),[h],[],[])}else i=e.getAnyType()}return e.isTypeAssignableTo(i,c)}function RIe(e,n,i,c){const u=Lf(n,i);if(!u.parent)return;const d=Ua(u.parent,Vd);switch(c){case N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!d||!d.body||!d.type||!ov(d.type,u)?void 0:wIe(e,d,e.getTypeFromTypeNode(d.type),!1);case N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!d||!xd(d.parent)||!d.body)return;const h=d.parent.arguments.indexOf(d);if(h===-1)return;const S=e.getContextualTypeForArgumentAtIndex(d.parent,h);return S?wIe(e,d,S,!0):void 0;case N.Type_0_is_not_assignable_to_type_1.code:if(!ON(u)||!E9(u.parent)&&!tx(u.parent))return;const E=cXe(u.parent);return!E||!Vd(E)||!E.body?void 0:wIe(e,E,e.getTypeAtLocation(u.parent),!0)}}function cXe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(CP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function lXe(e,n,i,c){zT(i);const u=$Z(n);e.replaceNode(n,c,he.createReturnStatement(i),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Exclude,suffix:u?";":void 0})}function U7e(e,n,i,c,u,d){const h=d||fce(c)?he.createParenthesizedExpression(c):c;zT(u),nB(u,h),e.replaceNode(n,i.body,h)}function H7e(e,n,i,c){e.replaceNode(n,i.body,he.createParenthesizedExpression(c))}function uXe(e,n,i){const c=zs.ChangeTracker.with(e,u=>lXe(u,e.sourceFile,n,i));return Rd(MIe,c,N.Add_a_return_statement,Ree,N.Add_all_missing_return_statement)}function Jft(e,n,i,c){const u=zs.ChangeTracker.with(e,d=>U7e(d,e.sourceFile,n,i,c,!1));return Rd(MIe,u,N.Remove_braces_from_arrow_function_body,Mee,N.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function $ft(e,n,i){const c=zs.ChangeTracker.with(e,u=>H7e(u,e.sourceFile,n,i));return Rd(MIe,c,N.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Lee,N.Wrap_all_object_literal_with_parentheses)}var MIe,Ree,Mee,Lee,Cle,J7e=G({"src/services/codefixes/returnValueCorrect.ts"(){xl(),If(),MIe="returnValueCorrect",Ree="fixAddReturnStatement",Mee="fixRemoveBracesFromArrowFunctionBody",Lee="fixWrapTheBlockWithParen",Cle=[N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,N.Type_0_is_not_assignable_to_type_1.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Hc({errorCodes:Cle,fixIds:[Ree,Mee,Lee],getCodeActions:function(n){const{program:i,sourceFile:c,span:{start:u},errorCode:d}=n,h=RIe(i.getTypeChecker(),c,u,d);if(h)return h.kind===0?ur([uXe(n,h.expression,h.statement)],$m(h.declaration)?Jft(n,h.declaration,h.expression,h.commentSource):void 0):[$ft(n,h.declaration,h.expression)]},getAllCodeActions:e=>Sg(e,Cle,(n,i)=>{const c=RIe(e.program.getTypeChecker(),i.file,i.start,i.code);if(c)switch(e.fixId){case Ree:lXe(n,i.file,c.expression,c.statement);break;case Mee:if(!$m(c.declaration))return;U7e(n,i.file,c.declaration,c.expression,c.commentSource,!1);break;case Lee:if(!$m(c.declaration))return;H7e(n,i.file,c.declaration,c.expression);break;default:re.fail(JSON.stringify(e.fixId))}})})}});function fXe(e,n,i,c,u){var d;const h=Lf(e,n),S=h.parent;if(i===N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(h.kind===19&&el(S)&&xd(S.parent)))return;const J=Ho(S.parent.arguments,ve=>ve===S);if(J<0)return;const X=c.getResolvedSignature(S.parent);if(!(X&&X.declaration&&X.parameters[J]))return;const ie=X.parameters[J].valueDeclaration;if(!(ie&&Os(ie)&&xn(ie.name)))return;const ae=oc(c.getUnmatchedProperties(c.getTypeAtLocation(S),c.getParameterType(X,J),!1,!1));return Nt(ae)?{kind:3,token:ie.name,properties:ae,parentDeclaration:S}:void 0}if(!xN(h))return;if(xn(h)&&J2(S)&&S.initializer&&el(S.initializer)){const J=c.getContextualType(h)||c.getTypeAtLocation(h),X=oc(c.getUnmatchedProperties(c.getTypeAtLocation(S.initializer),J,!1,!1));return Nt(X)?{kind:3,token:h,properties:X,parentDeclaration:S.initializer}:void 0}if(xn(h)&&m1(h.parent)){const J=iu(u.getCompilerOptions()),X=Xft(c,J,h.parent);return Nt(X)?{kind:4,token:h,attributes:X,parentDeclaration:h.parent}:void 0}if(xn(h)){const J=(d=c.getContextualType(h))==null?void 0:d.getNonNullableType();if(J&&ji(J)&16){const X=pp(c.getSignaturesOfType(J,0));return X===void 0?void 0:{kind:5,token:h,signature:X,sourceFile:e,parentDeclaration:yXe(h)}}if(xd(S)&&S.expression===h)return{kind:2,token:h,call:S,sourceFile:e,modifierFlags:0,parentDeclaration:yXe(h)}}if(!Ac(S))return;const E=DF(c.getTypeAtLocation(S.expression)),P=E.symbol;if(!P||!P.declarations)return;if(xn(h)&&xd(S.parent)){const J=lr(P.declarations,py),X=J==null?void 0:J.getSourceFile();if(J&&X&&!cB(u,X))return{kind:2,token:h,call:S.parent,sourceFile:e,modifierFlags:32,parentDeclaration:J};const ie=lr(P.declarations,Nu);if(e.commonJsModuleIndicator)return;if(ie&&!cB(u,ie))return{kind:2,token:h,call:S.parent,sourceFile:ie,modifierFlags:32,parentDeclaration:ie}}const k=lr(P.declarations,Fl);if(!k&&Lu(h))return;const F=k||lr(P.declarations,J=>xp(J)||rS(J));if(F&&!cB(u,F.getSourceFile())){const J=!rS(F)&&(E.target||E)!==c.getDeclaredTypeOfSymbol(P);if(J&&(Lu(h)||xp(F)))return;const X=F.getSourceFile(),ie=rS(F)?0:(J?256:0)|(YZ(h.text)?2:0),ae=Gy(X),ve=to(S.parent,xd);return{kind:0,token:h,call:ve,modifierFlags:ie,parentDeclaration:F,declSourceFile:X,isJSFile:ae}}const $=lr(P.declarations,xP);if($&&!(E.flags&1056)&&!Lu(h)&&!cB(u,$.getSourceFile()))return{kind:1,token:h,parentDeclaration:$}}function _Xe(e,n){return n.isJSFile?X5(qft(e,n)):pXe(e,n)}function qft(e,{parentDeclaration:n,declSourceFile:i,modifierFlags:c,token:u}){if(xp(n)||rS(n))return;const d=zs.ChangeTracker.with(e,S=>dXe(S,i,n,u,!!(c&256)));if(d.length===0)return;const h=c&256?N.Initialize_static_property_0:Lu(u)?N.Declare_a_private_field_named_0:N.Initialize_property_0_in_the_constructor;return Rd(F6,d,[h,u.text],F6,N.Add_all_missing_members)}function dXe(e,n,i,c,u){const d=c.text;if(u){if(i.kind===231)return;const h=i.name.getText(),S=$7e(he.createIdentifier(h),d);e.insertNodeAfter(n,i,S)}else if(Lu(c)){const h=he.createPropertyDeclaration(void 0,d,void 0,void 0,void 0),S=K7e(i);S?e.insertNodeAfter(n,S,h):e.insertMemberAtStart(n,i,h)}else{const h=sC(i);if(!h)return;const S=$7e(he.createThis(),d);e.insertNodeAtConstructorEnd(n,h,S)}}function $7e(e,n){return he.createExpressionStatement(he.createAssignment(he.createPropertyAccessExpression(e,n),tO()))}function pXe(e,{parentDeclaration:n,declSourceFile:i,modifierFlags:c,token:u}){const d=u.text,h=c&256,S=mXe(e.program.getTypeChecker(),n,u),E=k=>zs.ChangeTracker.with(e,F=>q7e(F,i,n,d,S,k)),P=[Rd(F6,E(c&256),[h?N.Declare_static_property_0:N.Declare_property_0,d],F6,N.Add_all_missing_members)];return h||Lu(u)||(c&2&&P.unshift(xI(F6,E(2),[N.Declare_private_property_0,d])),P.push(gXe(e,i,n,u.text,S))),P}function mXe(e,n,i){let c;if(i.parent.parent.kind===226){const u=i.parent.parent,d=i.parent===u.left?u.right:u.left,h=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(d)));c=e.typeToTypeNode(h,n,1)}else{const u=e.getContextualType(i.parent);c=u?e.typeToTypeNode(u,void 0,1):void 0}return c||he.createKeywordTypeNode(133)}function q7e(e,n,i,c,u,d){const h=d?he.createNodeArray(he.createModifiersFromModifierFlags(d)):void 0,S=Fl(i)?he.createPropertyDeclaration(h,c,void 0,u,void 0):he.createPropertySignature(void 0,c,void 0,u),E=K7e(i);E?e.insertNodeAfter(n,E,S):e.insertMemberAtStart(n,i,S)}function K7e(e){let n;for(const i of e.members){if(!nu(i))break;n=i}return n}function gXe(e,n,i,c,u){const d=he.createKeywordTypeNode(154),h=he.createParameterDeclaration(void 0,void 0,"x",void 0,d,void 0),S=he.createIndexSignature(void 0,[h],u),E=zs.ChangeTracker.with(e,P=>P.insertMemberAtStart(n,i,S));return xI(F6,E,[N.Add_index_signature_for_property_0,c])}function Kft(e,n){const{parentDeclaration:i,declSourceFile:c,modifierFlags:u,token:d,call:h}=n;if(h===void 0)return;const S=d.text,E=k=>zs.ChangeTracker.with(e,F=>hXe(e,F,h,d,k,i,c)),P=[Rd(F6,E(u&256),[u&256?N.Declare_static_method_0:N.Declare_method_0,S],F6,N.Add_all_missing_members)];return u&2&&P.unshift(xI(F6,E(2),[N.Declare_private_method_0,S])),P}function hXe(e,n,i,c,u,d,h){const S=Z3(h,e.program,e.preferences,e.host),E=Fl(d)?174:173,P=Yle(E,e,S,i,c,u,d),k=Yft(d,i);k?n.insertNodeAfter(h,k,P):n.insertMemberAtStart(h,d,P),S.writeFixes(n)}function X7e(e,n,{token:i,parentDeclaration:c}){const u=gt(c.members,h=>{const S=n.getTypeAtLocation(h);return!!(S&&S.flags&402653316)}),d=he.createEnumMember(i,u?he.createStringLiteral(i.text):void 0);e.replaceNode(c.getSourceFile(),c,he.updateEnumDeclaration(c,c.modifiers,c.name,Hi(c.members,X5(d))),{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Exclude})}function Y7e(e,n,i){const c=OS(n.sourceFile,n.preferences),u=Z3(n.sourceFile,n.program,n.preferences,n.host),d=i.kind===2?Yle(262,n,u,i.call,Kr(i.token),i.modifierFlags,i.parentDeclaration):pve(262,n,c,i.signature,jee(N.Function_not_implemented.message,c),i.token,void 0,void 0,void 0,u);d===void 0&&re.fail("fixMissingFunctionDeclaration codefix got unexpected error."),iS(i.parentDeclaration)?e.insertNodeBefore(i.sourceFile,i.parentDeclaration,d,!0):e.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,d),u.writeFixes(e)}function Q7e(e,n,i){const c=Z3(n.sourceFile,n.program,n.preferences,n.host),u=OS(n.sourceFile,n.preferences),d=n.program.getTypeChecker(),h=i.parentDeclaration.attributes,S=gt(h.properties,rT),E=Vn(i.attributes,F=>{const $=qye(n,d,c,u,d.getTypeOfSymbol(F),i.parentDeclaration),J=he.createIdentifier(F.name),X=he.createJsxAttribute(J,he.createJsxExpression(void 0,$));return kl(J,X),X}),P=he.createJsxAttributes(S?[...E,...h.properties]:[...h.properties,...E]),k={prefix:h.pos===h.end?" ":void 0};e.replaceNode(n.sourceFile,h,P,k),c.writeFixes(e)}function Z7e(e,n,i){const c=Z3(n.sourceFile,n.program,n.preferences,n.host),u=OS(n.sourceFile,n.preferences),d=iu(n.program.getCompilerOptions()),h=n.program.getTypeChecker(),S=Vn(i.properties,P=>{const k=qye(n,h,c,u,h.getTypeOfSymbol(P),i.parentDeclaration);return he.createPropertyAssignment(Qft(P,d,u,h),k)}),E={leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Exclude,indentation:i.indentation};e.replaceNode(n.sourceFile,i.parentDeclaration,he.createObjectLiteralExpression([...i.parentDeclaration.properties,...S],!0),E),c.writeFixes(e)}function qye(e,n,i,c,u,d){if(u.flags&3)return tO();if(u.flags&134217732)return he.createStringLiteral("",c===0);if(u.flags&8)return he.createNumericLiteral(0);if(u.flags&64)return he.createBigIntLiteral("0n");if(u.flags&16)return he.createFalse();if(u.flags&1056){const h=u.symbol.exports?V5(u.symbol.exports.values()):u.symbol,S=n.symbolToExpression(u.symbol.parent?u.symbol.parent:u.symbol,111551,void 0,void 0);return h===void 0||S===void 0?he.createNumericLiteral(0):he.createPropertyAccessExpression(S,n.symbolToString(h))}if(u.flags&256)return he.createNumericLiteral(u.value);if(u.flags&2048)return he.createBigIntLiteral(u.value);if(u.flags&128)return he.createStringLiteral(u.value,c===0);if(u.flags&512)return u===n.getFalseType()||u===n.getFalseType(!0)?he.createFalse():he.createTrue();if(u.flags&65536)return he.createNull();if(u.flags&1048576)return Yr(u.types,S=>qye(e,n,i,c,S,d))??tO();if(n.isArrayLikeType(u))return he.createArrayLiteralExpression();if(eV(u)){const h=Vn(n.getPropertiesOfType(u),S=>{const E=qye(e,n,i,c,n.getTypeOfSymbol(S),d);return he.createPropertyAssignment(S.name,E)});return he.createObjectLiteralExpression(h,!0)}if(ji(u)&16){if(lr(u.symbol.declarations||Yn,bb(e0,pg,tm))===void 0)return tO();const S=n.getSignaturesOfType(u,0);return S===void 0?tO():pve(218,e,c,S[0],jee(N.Function_not_implemented.message,c),void 0,void 0,void 0,d,i)??tO()}if(ji(u)&1){const h=RS(u.symbol);if(h===void 0||Ab(h))return tO();const S=sC(h);return S&&Nt(S.parameters)?tO():he.createNewExpression(he.createIdentifier(u.symbol.name),void 0,void 0)}return tO()}function tO(){return he.createIdentifier("undefined")}function eV(e){return e.flags&524288&&(ji(e)&128||e.symbol&&to(Vb(e.symbol.declarations),rS))}function Xft(e,n,i){const c=e.getContextualType(i.attributes);if(c===void 0)return Yn;const u=c.getProperties();if(!Nt(u))return Yn;const d=new Set;for(const h of i.attributes.properties)if(tx(h)&&d.add(m3(h.name)),rT(h)){const S=e.getTypeAtLocation(h.expression);for(const E of S.getProperties())d.add(E.escapedName)}return gi(u,h=>H2(h.name,n,1)&&!(h.flags&16777216||I_(h)&48||d.has(h.escapedName)))}function Yft(e,n){if(rS(e))return;const i=Ua(n,c=>tm(c)||Lh(c));return i&&i.parent===e?i:void 0}function Qft(e,n,i,c){if(Vm(e)){const u=c.symbolToNode(e,111551,void 0,1073741824);if(u&&Qf(u))return u}return QH(e.name,n,i===0,!1,!1)}function yXe(e){if(Ua(e,CP)){const n=Ua(e.parent,iS);if(n)return n}return ts(e)}var F6,LP,tV,nV,Oee,eFe=G({"src/services/codefixes/fixAddMissingMember.ts"(){xl(),If(),F6="fixMissingMember",LP="fixMissingProperties",tV="fixMissingAttributes",nV="fixMissingFunctionDeclaration",Oee=[N.Property_0_does_not_exist_on_type_1.code,N.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,N.Property_0_is_missing_in_type_1_but_required_in_type_2.code,N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Cannot_find_name_0.code],Hc({errorCodes:Oee,getCodeActions(e){const n=e.program.getTypeChecker(),i=fXe(e.sourceFile,e.span.start,e.errorCode,n,e.program);if(i){if(i.kind===3){const c=zs.ChangeTracker.with(e,u=>Z7e(u,e,i));return[Rd(LP,c,N.Add_missing_properties,LP,N.Add_all_missing_properties)]}if(i.kind===4){const c=zs.ChangeTracker.with(e,u=>Q7e(u,e,i));return[Rd(tV,c,N.Add_missing_attributes,tV,N.Add_all_missing_attributes)]}if(i.kind===2||i.kind===5){const c=zs.ChangeTracker.with(e,u=>Y7e(u,e,i));return[Rd(nV,c,[N.Add_missing_function_declaration_0,i.token.text],nV,N.Add_all_missing_function_declarations)]}if(i.kind===1){const c=zs.ChangeTracker.with(e,u=>X7e(u,e.program.getTypeChecker(),i));return[Rd(F6,c,[N.Add_missing_enum_member_0,i.token.text],F6,N.Add_all_missing_members)]}return Hi(Kft(e,i),_Xe(e,i))}},fixIds:[F6,nV,LP,tV],getAllCodeActions:e=>{const{program:n,fixId:i}=e,c=n.getTypeChecker(),u=new Map,d=new Map;return Iq(zs.ChangeTracker.with(e,h=>{GR(e,Oee,S=>{const E=fXe(S.file,S.start,S.code,c,e.program);if(!(!E||!y0(u,vm(E.parentDeclaration)+"#"+E.token.text))){if(i===nV&&(E.kind===2||E.kind===5))Y7e(h,e,E);else if(i===LP&&E.kind===3)Z7e(h,e,E);else if(i===tV&&E.kind===4)Q7e(h,e,E);else if(E.kind===1&&X7e(h,c,E),E.kind===0){const{parentDeclaration:P,token:k}=E,F=Jw(d,P,()=>[]);F.some($=>$.token.text===k.text)||F.push(E)}}}),d.forEach((S,E)=>{const P=rS(E)?void 0:KFe(E,c);for(const k of S){if(P!=null&&P.some(ve=>{const we=d.get(ve);return!!we&&we.some(({token:Fe})=>Fe.text===k.token.text)}))continue;const{parentDeclaration:F,declSourceFile:$,modifierFlags:J,token:X,call:ie,isJSFile:ae}=k;if(ie&&!Lu(X))hXe(e,h,ie,X,J&256,F,$);else if(ae&&!xp(F)&&!rS(F))dXe(h,$,F,X,!!(J&256));else{const ve=mXe(c,F,X);q7e(h,$,F,X.text,ve,J&256)}}})}))}})}});function vXe(e,n,i){const c=uc(bXe(n,i),xd),u=he.createNewExpression(c.expression,c.typeArguments,c.arguments);e.replaceNode(n,c,u)}function bXe(e,n){let i=Lf(e,n.start);const c=Xy(n);for(;i.endvXe(u,n,i));return[Rd(LIe,c,N.Add_missing_new_operator_to_call,LIe,N.Add_missing_new_operator_to_all_calls)]},fixIds:[LIe],getAllCodeActions:e=>Sg(e,Dle,(n,i)=>vXe(n,e.sourceFile,i))})}});function TXe(e,n){return{type:"install package",file:e,packageName:n}}function nFe(e,n){const i=to(Lf(e,n),Sd);if(!i)return;const c=i.text,{packageName:u}=fae(c);return Kv(u)?void 0:u}function rFe(e,n,i){var c;return i===Ile?kk.nodeCoreModules.has(e)?"@types/node":void 0:(c=n.isKnownTypesPackageName)!=null&&c.call(n,e)?pae(e):void 0}var iFe,Kye,Ile,Xye,oFe=G({"src/services/codefixes/fixCannotFindModule.ts"(){xl(),If(),iFe="fixCannotFindModule",Kye="installTypesPackage",Ile=N.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Xye=[Ile,N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Hc({errorCodes:Xye,getCodeActions:function(n){const{host:i,sourceFile:c,span:{start:u}}=n,d=nFe(c,u);if(d===void 0)return;const h=rFe(d,i,n.errorCode);return h===void 0?[]:[Rd(iFe,[],[N.Install_0,h],Kye,N.Install_all_missing_types_packages,TXe(c.fileName,h))]},fixIds:[Kye],getAllCodeActions:e=>Sg(e,Xye,(n,i,c)=>{const u=nFe(i.file,i.start);if(u!==void 0)switch(e.fixId){case Kye:{const d=rFe(u,e.host,i.code);d&&c.push(TXe(i.file.fileName,d));break}default:re.fail(`Bad fixId: ${e.fixId}`)}})})}});function SXe(e,n){const i=Lf(e,n);return uc(i.parent,Fl)}function aFe(e,n,i,c,u){const d=YC(e),h=i.program.getTypeChecker(),S=h.getTypeAtLocation(d),E=h.getPropertiesOfType(S).filter(EXe),P=Z3(n,i.program,u,i.host);jFe(e,E,n,i,u,P,k=>c.insertMemberAtStart(n,e,k)),P.writeFixes(c)}function EXe(e){const n=ZC(Dl(e.getDeclarations()));return!(n&2)&&!!(n&64)}var sFe,kle,OIe=G({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){xl(),If(),sFe=[N.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],kle="fixClassDoesntImplementInheritedAbstractMember",Hc({errorCodes:sFe,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=zs.ChangeTracker.with(n,d=>aFe(SXe(i,c.start),i,n,d,n.preferences));return u.length===0?void 0:[Rd(kle,u,N.Implement_inherited_abstract_class,kle,N.Implement_all_inherited_abstract_classes)]},fixIds:[kle],getAllCodeActions:function(n){const i=new Map;return Sg(n,sFe,(c,u)=>{const d=SXe(u.file,u.start);y0(i,vm(d))&&aFe(d,n.sourceFile,n,c,n.preferences)})}})}});function xXe(e,n,i,c){e.insertNodeAtConstructorStart(n,i,c),e.delete(n,c)}function cFe(e,n){const i=Lf(e,n);if(i.kind!==110)return;const c=zE(i),u=lFe(c.body);return u&&!u.expression.arguments.some(d=>Ac(d)&&d.expression===i)?{constructor:c,superCall:u}:void 0}function lFe(e){return kb(e)&&h1(e.expression)?e:F_(e)?void 0:s_(e,lFe)}var Yye,Ple,uFe=G({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){xl(),If(),Yye="classSuperMustPrecedeThisAccess",Ple=[N.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Hc({errorCodes:Ple,getCodeActions(e){const{sourceFile:n,span:i}=e,c=cFe(n,i.start);if(!c)return;const{constructor:u,superCall:d}=c,h=zs.ChangeTracker.with(e,S=>xXe(S,n,u,d));return[Rd(Yye,h,N.Make_super_call_the_first_statement_in_the_constructor,Yye,N.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Yye],getAllCodeActions(e){const{sourceFile:n}=e,i=new Map;return Sg(e,Ple,(c,u)=>{const d=cFe(u.file,u.start);if(!d)return;const{constructor:h,superCall:S}=d;y0(i,vm(h.parent))&&xXe(c,n,h,S)})}})}});function AXe(e,n){const i=Lf(e,n);return re.assert(Lh(i.parent),"token should be at the constructor declaration"),i.parent}function fFe(e,n,i){const c=he.createExpressionStatement(he.createCallExpression(he.createSuper(),void 0,Yn));e.insertNodeAtConstructorStart(n,i,c)}var Qye,Nle,_Fe=G({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){xl(),If(),Qye="constructorForDerivedNeedSuperCall",Nle=[N.Constructors_for_derived_classes_must_contain_a_super_call.code],Hc({errorCodes:Nle,getCodeActions(e){const{sourceFile:n,span:i}=e,c=AXe(n,i.start),u=zs.ChangeTracker.with(e,d=>fFe(d,n,c));return[Rd(Qye,u,N.Add_missing_super_call,Qye,N.Add_all_missing_super_calls)]},fixIds:[Qye],getAllCodeActions:e=>Sg(e,Nle,(n,i)=>fFe(n,e.sourceFile,AXe(i.file,i.start)))})}});function CXe(e,n){hve(e,n,"jsx",he.createStringLiteral("react"))}var FIe,Zye,dFe=G({"src/services/codefixes/fixEnableJsxFlag.ts"(){xl(),If(),FIe="fixEnableJsxFlag",Zye=[N.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Hc({errorCodes:Zye,getCodeActions:function(n){const{configFile:i}=n.program.getCompilerOptions();if(i===void 0)return;const c=zs.ChangeTracker.with(n,u=>CXe(u,i));return[xI(FIe,c,N.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[FIe],getAllCodeActions:e=>Sg(e,Zye,n=>{const{configFile:i}=e.program.getCompilerOptions();i!==void 0&&CXe(n,i)})})}});function DXe(e,n,i){const c=lr(e.getSemanticDiagnostics(n),h=>h.start===i.start&&h.length===i.length);if(c===void 0||c.relatedInformation===void 0)return;const u=lr(c.relatedInformation,h=>h.code===N.Did_you_mean_0.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;const d=mB(u.file,p1(u.start,u.length));if(d!==void 0&&kr(d)&&Ds(d.parent))return{suggestion:IXe(u.messageText),expression:d.parent,arg:d}}function pFe(e,n,i,c){const u=he.createCallExpression(he.createPropertyAccessExpression(he.createIdentifier("Number"),he.createIdentifier("isNaN")),void 0,[i]),d=c.operatorToken.kind;e.replaceNode(n,c,d===38||d===36?he.createPrefixUnaryExpression(54,u):u)}function IXe(e){const[n,i]=D2(e,` -`,0).match(/'(.*)'/)||[];return i}var WIe,wle,mFe=G({"src/services/codefixes/fixNaNEquality.ts"(){xl(),If(),WIe="fixNaNEquality",wle=[N.This_condition_will_always_return_0.code],Hc({errorCodes:wle,getCodeActions(e){const{sourceFile:n,span:i,program:c}=e,u=DXe(c,n,i);if(u===void 0)return;const{suggestion:d,expression:h,arg:S}=u,E=zs.ChangeTracker.with(e,P=>pFe(P,n,S,h));return[Rd(WIe,E,[N.Use_0,d],WIe,N.Use_Number_isNaN_in_all_conditions)]},fixIds:[WIe],getAllCodeActions:e=>Sg(e,wle,(n,i)=>{const c=DXe(e.program,i.file,p1(i.start,i.length));c&&pFe(n,i.file,c.arg,c.expression)})})}}),Zft=G({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){xl(),If(),Hc({errorCodes:[N.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,N.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,N.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(n){const i=n.program.getCompilerOptions(),{configFile:c}=i;if(c===void 0)return;const u=[],d=Zp(i);if(d>=5&&d<99){const P=zs.ChangeTracker.with(n,k=>{hve(k,c,"module",he.createStringLiteral("esnext"))});u.push(xI("fixModuleOption",P,[N.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const S=iu(i);if(S<4||S>99){const P=zs.ChangeTracker.with(n,k=>{if(!tG(c))return;const $=[["target",he.createStringLiteral("es2017")]];d===1&&$.push(["module",he.createStringLiteral("commonjs")]),Vee(k,c,$)});u.push(xI("fixTargetOption",P,[N.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return u.length?u:void 0}})}});function kXe(e,n,i){e.replaceNode(n,i,he.createPropertyAssignment(i.name,i.objectAssignmentInitializer))}function gFe(e,n){return uc(Lf(e,n).parent,XE)}var eve,Rle,hFe=G({"src/services/codefixes/fixPropertyAssignment.ts"(){xl(),If(),eve="fixPropertyAssignment",Rle=[N.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],Hc({errorCodes:Rle,fixIds:[eve],getCodeActions(e){const{sourceFile:n,span:i}=e,c=gFe(n,i.start),u=zs.ChangeTracker.with(e,d=>kXe(d,e.sourceFile,c));return[Rd(eve,u,[N.Change_0_to_1,"=",":"],eve,[N.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Sg(e,Rle,(n,i)=>kXe(n,i.file,gFe(i.file,i.start)))})}});function PXe(e,n){const i=Lf(e,n),c=$b(i).heritageClauses,u=c[0].getFirstToken();return u.kind===96?{extendsToken:u,heritageClauses:c}:void 0}function yFe(e,n,i,c){if(e.replaceNode(n,i,he.createToken(119)),c.length===2&&c[0].token===96&&c[1].token===119){const u=c[1].getFirstToken(),d=u.getFullStart();e.replaceRange(n,{pos:d,end:d},he.createToken(28));const h=n.text;let S=u.end;for(;SyFe(h,n,c,u));return[Rd(tve,d,N.Change_extends_to_implements,tve,N.Change_all_extended_interfaces_to_implements)]},fixIds:[tve],getAllCodeActions:e=>Sg(e,Mle,(n,i)=>{const c=PXe(i.file,i.start);c&&yFe(n,i.file,c.extendsToken,c.heritageClauses)})})}});function NXe(e,n,i){const c=Lf(e,n);if(xn(c)||Lu(c))return{node:c,className:i===Lle?$b(c).name.text:void 0}}function bFe(e,n,{node:i,className:c}){zT(i),e.replaceNode(n,i,he.createPropertyAccessExpression(c?he.createIdentifier(c):he.createThis(),i))}var nve,Lle,rve,TFe=G({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){xl(),If(),nve="forgottenThisPropertyAccess",Lle=N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,rve=[N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,N.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,Lle],Hc({errorCodes:rve,getCodeActions(e){const{sourceFile:n}=e,i=NXe(n,e.span.start,e.errorCode);if(!i)return;const c=zs.ChangeTracker.with(e,u=>bFe(u,n,i));return[Rd(nve,c,[N.Add_0_to_unresolved_variable,i.className||"this"],nve,N.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[nve],getAllCodeActions:e=>Sg(e,rve,(n,i)=>{const c=NXe(i.file,i.start,i.code);c&&bFe(n,e.sourceFile,c)})})}});function e_t(e){return ef(ive,e)}function SFe(e,n,i,c,u){const d=i.getText()[c];if(!e_t(d))return;const h=u?ive[d]:`{${VZ(i,n,d)}}`;e.replaceRangeWithText(i,{pos:c,end:c+1},h)}var Ole,Lq,Fee,ive,EFe=G({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){xl(),If(),Ole="fixInvalidJsxCharacters_expression",Lq="fixInvalidJsxCharacters_htmlEntity",Fee=[N.Unexpected_token_Did_you_mean_or_gt.code,N.Unexpected_token_Did_you_mean_or_rbrace.code],Hc({errorCodes:Fee,fixIds:[Ole,Lq],getCodeActions(e){const{sourceFile:n,preferences:i,span:c}=e,u=zs.ChangeTracker.with(e,h=>SFe(h,i,n,c.start,!1)),d=zs.ChangeTracker.with(e,h=>SFe(h,i,n,c.start,!0));return[Rd(Ole,u,N.Wrap_invalid_character_in_an_expression_container,Ole,N.Wrap_all_invalid_characters_in_an_expression_container),Rd(Lq,d,N.Convert_invalid_character_to_its_html_entity_code,Lq,N.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Sg(e,Fee,(n,i)=>SFe(n,e.preferences,i.file,i.start,e.fixId===Lq))}}),ive={">":">","}":"}"}}});function t_t(e,{name:n,jsDocHost:i,jsDocParameterTag:c}){const u=zs.ChangeTracker.with(e,d=>d.filterJSDocTags(e.sourceFile,i,h=>h!==c));return Rd(Fle,u,[N.Delete_unused_param_tag_0,n.getText(e.sourceFile)],Fle,N.Delete_all_unused_param_tags)}function n_t(e,{name:n,jsDocHost:i,signature:c,jsDocParameterTag:u}){if(!Nt(c.parameters))return;const d=e.sourceFile,h=WM(c),S=new Set;for(const F of h)A2(F)&&xn(F.name)&&S.add(F.name.escapedText);const E=Yr(c.parameters,F=>xn(F.name)&&!S.has(F.name.escapedText)?F.name.getText(d):void 0);if(E===void 0)return;const P=he.updateJSDocParameterTag(u,u.tagName,he.createIdentifier(E),u.isBracketed,u.typeExpression,u.isNameFirst,u.comment),k=zs.ChangeTracker.with(e,F=>F.replaceJSDocComment(d,i,Vn(h,$=>$===u?P:$)));return xI(Wee,k,[N.Rename_param_tag_name_0_to_1,n.getText(d),E])}function wXe(e,n){const i=Lf(e,n);if(i.parent&&A2(i.parent)&&xn(i.parent.name)){const c=i.parent,u=k7(c),d=LN(c);if(u&&d)return{jsDocHost:u,signature:d,name:i.parent.name,jsDocParameterTag:c}}}var Fle,Wee,ove,xFe=G({"src/services/codefixes/fixUnmatchedParameter.ts"(){xl(),If(),Fle="deleteUnmatchedParameter",Wee="renameUnmatchedParameter",ove=[N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Hc({fixIds:[Fle,Wee],errorCodes:ove,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=[],d=wXe(i,c.start);if(d)return ur(u,t_t(n,d)),ur(u,n_t(n,d)),u},getAllCodeActions:function(n){const i=new Map;return Iq(zs.ChangeTracker.with(n,c=>{GR(n,ove,({file:u,start:d})=>{const h=wXe(u,d);h&&i.set(h.signature,ur(i.get(h.signature),h.jsDocParameterTag))}),i.forEach((u,d)=>{if(n.fixId===Fle){const h=new Set(u);c.filterJSDocTags(d.getSourceFile(),d,S=>!h.has(S))}})}))}})}});function r_t(e,n,i){const c=to(Lf(e,i),xn);if(!c||c.parent.kind!==183)return;const d=n.getTypeChecker().getSymbolAtLocation(c);return lr((d==null?void 0:d.declarations)||Yn,bb(Tk,qE,Yb))}function i_t(e,n,i,c){if(i.kind===271){e.insertModifierBefore(n,156,i.name);return}const u=i.kind===273?i:i.parent.parent;if(u.name&&u.namedBindings)return;const d=c.getTypeChecker();sG(u,S=>{if(dg(S.symbol,d).flags&111551)return!0})||e.insertModifierBefore(n,156,u)}function o_t(e,n,i,c){MF.doChangeNamedToNamespaceOrDefault(n,c,e,i.parent)}var BIe,ave,RXe=G({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){xl(),If(),BIe="fixUnreferenceableDecoratorMetadata",ave=[N.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Hc({errorCodes:ave,getCodeActions:e=>{const n=r_t(e.sourceFile,e.program,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,d=>n.kind===276&&o_t(d,e.sourceFile,n,e.program)),c=zs.ChangeTracker.with(e,d=>i_t(d,e.sourceFile,n,e.program));let u;return i.length&&(u=ur(u,xI(BIe,i,N.Convert_named_imports_to_namespace_import))),c.length&&(u=ur(u,xI(BIe,c,N.Use_import_type))),u},fixIds:[BIe]})}});function MXe(e,n,i){e.replaceNode(n,i.parent,he.createKeywordTypeNode(159))}function Bee(e,n){return Rd(Wle,e,n,Gee,N.Delete_all_unused_declarations)}function zee(e,n,i){e.delete(n,re.checkDefined(uc(i.parent,mie).typeParameters,"The type parameter to delete should exist"))}function zIe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function GIe(e){return e.kind===102?to(e.parent,n0):void 0}function AFe(e,n){return Kp(n.parent)&&Dl(n.parent.getChildren(e))===n}function CFe(e,n,i){e.delete(n,i.parent.kind===243?i.parent:i)}function LXe(e,n,i){Ot(i.elements,c=>e.delete(n,c))}function a_t(e,n,i,{parent:c}){if(Kc(c)&&c.initializer&&uR(c.initializer))if(Kp(c.parent)&&Nt(c.parent.declarations)>1){const u=c.parent.parent,d=u.getStart(i),h=u.end;n.delete(i,c),n.insertNodeAt(i,h,c.initializer,{prefix:R6(e.host,e.formatContext.options)+i.text.slice(Yge(i.text,d-1),d),suffix:$Z(i)?";":""})}else n.replaceNode(i,c.parent,c.initializer);else n.delete(i,c)}function OXe(e,n,i,c){n!==N.Property_0_is_declared_but_its_value_is_never_read.code&&(c.kind===140&&(c=uc(c.parent,KN).typeParameter.name),xn(c)&&FXe(c)&&(e.replaceNode(i,c,he.createIdentifier(`_${c.text}`)),Os(c.parent)&&o_(c.parent).forEach(u=>{xn(u.name)&&e.replaceNode(i,u.name,he.createIdentifier(`_${u.name.text}`))})))}function FXe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function jIe(e,n,i,c,u,d,h,S){VIe(n,i,e,c,u,d,h,S),xn(n)&&Wf.Core.eachSymbolReferenceInFile(n,c,e,E=>{Ac(E.parent)&&E.parent.name===E&&(E=E.parent),!S&&GXe(E)&&i.delete(e,E.parent.parent)})}function VIe(e,n,i,c,u,d,h,S){const{parent:E}=e;if(Os(E))s_t(n,i,E,c,u,d,h,S);else if(!(S&&xn(e)&&Wf.Core.isSymbolReferencedInFile(e,c,i))){const P=Tk(E)?e:Qf(E)?E.parent:E;re.assert(P!==i,"should not delete whole source file"),n.delete(i,P)}}function s_t(e,n,i,c,u,d,h,S=!1){if(BXe(c,n,i,u,d,h,S))if(i.modifiers&&i.modifiers.length>0&&(!xn(i.name)||Wf.Core.isSymbolReferencedInFile(i.name,c,n)))for(const E of i.modifiers)Mf(E)&&e.deleteModifier(n,E);else!i.initializer&&WXe(i,c,u)&&e.delete(n,i)}function WXe(e,n,i){const c=e.parent.parameters.indexOf(e);return!Wf.Core.someSignatureUsage(e.parent,i,n,(u,d)=>!d||d.arguments.length>c)}function BXe(e,n,i,c,u,d,h){const{parent:S}=i;switch(S.kind){case 174:case 176:const E=S.parameters.indexOf(i),P=tm(S)?S.name:S,k=Wf.Core.getReferencedSymbolsForNode(S.pos,P,u,c,d);if(k){for(const F of k)for(const $ of F.references)if($.kind===Wf.EntryKind.Node){const J=nT($.node)&&xd($.node.parent)&&$.node.parent.arguments.length>E,X=Ac($.node.parent)&&nT($.node.parent.expression)&&xd($.node.parent.parent)&&$.node.parent.parent.arguments.length>E,ie=(tm($.node.parent)||pg($.node.parent))&&$.node.parent!==i.parent&&$.node.parent.parameters.length>E;if(J||X||ie)return!1}}return!0;case 262:return S.name&&c_t(e,n,S.name)?zXe(S,i,h):!0;case 218:case 219:return zXe(S,i,h);case 178:return!1;case 177:return!0;default:return re.failBadSyntaxKind(S)}}function c_t(e,n,i){return!!Wf.Core.eachSymbolReferenceInFile(i,e,n,c=>xn(c)&&xd(c.parent)&&c.parent.arguments.includes(c))}function zXe(e,n,i){const c=e.parameters,u=c.indexOf(n);return re.assert(u!==-1,"The parameter should already be in the list"),i?c.slice(u+1).every(d=>xn(d.name)&&!d.symbol.isReferenced):u===c.length-1}function GXe(e){return(Ds(e.parent)&&e.parent.left===e||(jY(e.parent)||vk(e.parent))&&e.parent.operand===e)&&kb(e.parent.parent)}var Wle,rV,Gee,Oq,Fq,Ble,DFe=G({"src/services/codefixes/fixUnusedIdentifier.ts"(){xl(),If(),Wle="unusedIdentifier",rV="unusedIdentifier_prefix",Gee="unusedIdentifier_delete",Oq="unusedIdentifier_deleteImports",Fq="unusedIdentifier_infer",Ble=[N._0_is_declared_but_its_value_is_never_read.code,N._0_is_declared_but_never_used.code,N.Property_0_is_declared_but_its_value_is_never_read.code,N.All_imports_in_import_declaration_are_unused.code,N.All_destructured_elements_are_unused.code,N.All_variables_are_unused.code,N.All_type_parameters_are_unused.code],Hc({errorCodes:Ble,getCodeActions(e){const{errorCode:n,sourceFile:i,program:c,cancellationToken:u}=e,d=c.getTypeChecker(),h=c.getSourceFiles(),S=Lf(i,e.span.start);if(CA(S))return[Bee(zs.ChangeTracker.with(e,F=>F.delete(i,S)),N.Remove_template_tag)];if(S.kind===30){const F=zs.ChangeTracker.with(e,$=>zee($,i,S));return[Bee(F,N.Remove_type_parameters)]}const E=GIe(S);if(E){const F=zs.ChangeTracker.with(e,$=>$.delete(i,E));return[Rd(Wle,F,[N.Remove_import_from_0,kSe(E)],Oq,N.Delete_all_unused_imports)]}else if(zIe(S)){const F=zs.ChangeTracker.with(e,$=>jIe(i,S,$,d,h,c,u,!1));if(F.length)return[Rd(Wle,F,[N.Remove_unused_declaration_for_Colon_0,S.getText(i)],Oq,N.Delete_all_unused_imports)]}if(Ch(S.parent)||Wd(S.parent)){if(Os(S.parent.parent)){const F=S.parent.elements,$=[F.length>1?N.Remove_unused_declarations_for_Colon_0:N.Remove_unused_declaration_for_Colon_0,Vn(F,J=>J.getText(i)).join(", ")];return[Bee(zs.ChangeTracker.with(e,J=>LXe(J,i,S.parent)),$)]}return[Bee(zs.ChangeTracker.with(e,F=>a_t(e,F,i,S.parent)),N.Remove_unused_destructuring_declaration)]}if(AFe(i,S))return[Bee(zs.ChangeTracker.with(e,F=>CFe(F,i,S.parent)),N.Remove_variable_statement)];const P=[];if(S.kind===140){const F=zs.ChangeTracker.with(e,J=>MXe(J,i,S)),$=uc(S.parent,KN).typeParameter.name.text;P.push(Rd(Wle,F,[N.Replace_infer_0_with_unknown,$],Fq,N.Replace_all_unused_infer_with_unknown))}else{const F=zs.ChangeTracker.with(e,$=>jIe(i,S,$,d,h,c,u,!1));if(F.length){const $=Qf(S.parent)?S.parent:S;P.push(Bee(F,[N.Remove_unused_declaration_for_Colon_0,$.getText(i)]))}}const k=zs.ChangeTracker.with(e,F=>OXe(F,n,i,S));return k.length&&P.push(Rd(Wle,k,[N.Prefix_0_with_an_underscore,S.getText(i)],rV,N.Prefix_all_unused_declarations_with_where_possible)),P},fixIds:[rV,Gee,Oq,Fq],getAllCodeActions:e=>{const{sourceFile:n,program:i,cancellationToken:c}=e,u=i.getTypeChecker(),d=i.getSourceFiles();return Sg(e,Ble,(h,S)=>{const E=Lf(n,S.start);switch(e.fixId){case rV:OXe(h,S.code,n,E);break;case Oq:{const P=GIe(E);P?h.delete(n,P):zIe(E)&&jIe(n,E,h,u,d,i,c,!0);break}case Gee:{if(E.kind===140||zIe(E))break;if(CA(E))h.delete(n,E);else if(E.kind===30)zee(h,n,E);else if(Ch(E.parent)){if(E.parent.parent.initializer)break;(!Os(E.parent.parent)||WXe(E.parent.parent,u,d))&&h.delete(n,E.parent.parent)}else{if(Wd(E.parent.parent)&&E.parent.parent.parent.initializer)break;AFe(n,E)?CFe(h,n,E.parent):jIe(n,E,h,u,d,i,c,!0)}break}case Fq:E.kind===140&&MXe(h,n,E);break;default:re.fail(JSON.stringify(e.fixId))}})}})}});function jXe(e,n,i,c,u){const d=Lf(n,i),h=Ua(d,dl);if(h.getStart(n)!==d.getStart(n)){const E=JSON.stringify({statementKind:re.formatSyntaxKind(h.kind),tokenKind:re.formatSyntaxKind(d.kind),errorCode:u,start:i,length:c});re.fail("Token and statement should start at the same point. "+E)}const S=(Ou(h.parent)?h.parent:h).parent;if(!Ou(h.parent)||h===Dl(h.parent.statements))switch(S.kind){case 245:if(S.elseStatement){if(Ou(h.parent))break;e.replaceNode(n,h,he.createBlock(Yn));return}case 247:case 248:e.delete(n,S);return}if(Ou(h.parent)){const E=i+c,P=re.checkDefined(VXe(soe(h.parent.statements,h),k=>k.posjXe(c,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Rd(UIe,i,N.Remove_unreachable_code,UIe,N.Remove_all_unreachable_code)]},fixIds:[UIe],getAllCodeActions:e=>Sg(e,zle,(n,i)=>jXe(n,i.file,i.start,i.length,i.code))})}});function UXe(e,n,i){const c=Lf(n,i),u=uc(c.parent,tF),d=c.getStart(n),h=u.statement.getStart(n),S=mv(d,h,n)?h:Ff(n.text,qm(u,59,n).end,!0);e.deleteRange(n,{pos:d,end:S})}var sve,Gle,kFe=G({"src/services/codefixes/fixUnusedLabel.ts"(){xl(),If(),sve="fixUnusedLabel",Gle=[N.Unused_label.code],Hc({errorCodes:Gle,getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>UXe(i,e.sourceFile,e.span.start));return[Rd(sve,n,N.Remove_unused_label,sve,N.Remove_all_unused_labels)]},fixIds:[sve],getAllCodeActions:e=>Sg(e,Gle,(n,i)=>UXe(n,i.file,i.start))})}});function HXe(e,n,i,c,u){e.replaceNode(n,i,u.typeToTypeNode(c,i,void 0))}function PFe(e,n,i){const c=Ua(Lf(e,n),JXe),u=c&&c.type;return u&&{typeNode:u,type:l_t(i,u)}}function JXe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function l_t(e,n){if(WJ(n)){const i=e.getTypeFromTypeNode(n.type);return i===e.getNeverType()||i===e.getVoidType()?i:e.getUnionType(ur([i,e.getUndefinedType()],n.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(n)}var NFe,jle,Vle,wFe=G({"src/services/codefixes/fixJSDocTypes.ts"(){xl(),If(),NFe="fixJSDocTypes_plain",jle="fixJSDocTypes_nullable",Vle=[N.JSDoc_types_can_only_be_used_inside_documentation_comments.code,N._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,N._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Hc({errorCodes:Vle,getCodeActions(e){const{sourceFile:n}=e,i=e.program.getTypeChecker(),c=PFe(n,e.span.start,i);if(!c)return;const{typeNode:u,type:d}=c,h=u.getText(n),S=[E(d,NFe,N.Change_all_jsdoc_style_types_to_TypeScript)];return u.kind===321&&S.push(E(d,jle,N.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),S;function E(P,k,F){const $=zs.ChangeTracker.with(e,J=>HXe(J,n,u,P,i));return Rd("jdocTypes",$,[N.Change_0_to_1,h,i.typeToString(P)],k,F)}},fixIds:[NFe,jle],getAllCodeActions(e){const{fixId:n,program:i,sourceFile:c}=e,u=i.getTypeChecker();return Sg(e,Vle,(d,h)=>{const S=PFe(h.file,h.start,u);if(!S)return;const{typeNode:E,type:P}=S,k=E.kind===321&&n===jle?u.getNullableType(P,32768):P;HXe(d,c,E,k,u)})}})}});function $Xe(e,n,i){e.replaceNodeWithText(n,i,`${i.text}()`)}function RFe(e,n){const i=Lf(e,n);if(Ac(i.parent)){let c=i.parent;for(;Ac(c.parent);)c=c.parent;return c.name}if(xn(i))return i}var cve,Ule,MFe=G({"src/services/codefixes/fixMissingCallParentheses.ts"(){xl(),If(),cve="fixMissingCallParentheses",Ule=[N.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Hc({errorCodes:Ule,fixIds:[cve],getCodeActions(e){const{sourceFile:n,span:i}=e,c=RFe(n,i.start);if(!c)return;const u=zs.ChangeTracker.with(e,d=>$Xe(d,e.sourceFile,c));return[Rd(cve,u,N.Add_missing_call_parentheses,cve,N.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Sg(e,Ule,(n,i)=>{const c=RFe(i.file,i.start);c&&$Xe(n,i.file,c)})})}});function u_t(e){if(e.type)return e.type;if(Kc(e.parent)&&e.parent.type&&e0(e.parent.type))return e.parent.type.type}function qXe(e,n){const i=Lf(e,n),c=zE(i);if(!c)return;let u;switch(c.kind){case 174:u=c.name;break;case 262:case 218:u=qm(c,100,e);break;case 219:const d=c.typeParameters?30:21;u=qm(c,d,e)||Dl(c.parameters);break;default:return}return u&&{insertBefore:u,returnType:u_t(c)}}function LFe(e,n,{insertBefore:i,returnType:c}){if(c){const u=cY(c);(!u||u.kind!==80||u.text!=="Promise")&&e.replaceNode(n,c,he.createTypeReferenceNode("Promise",he.createNodeArray([c])))}e.insertModifierBefore(n,134,i)}var lve,Hle,OFe=G({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){xl(),If(),lve="fixAwaitInSyncFunction",Hle=[N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Hc({errorCodes:Hle,getCodeActions(e){const{sourceFile:n,span:i}=e,c=qXe(n,i.start);if(!c)return;const u=zs.ChangeTracker.with(e,d=>LFe(d,n,c));return[Rd(lve,u,N.Add_async_modifier_to_containing_function,lve,N.Add_all_missing_async_modifiers)]},fixIds:[lve],getAllCodeActions:function(n){const i=new Map;return Sg(n,Hle,(c,u)=>{const d=qXe(u.file,u.start);!d||!y0(i,vm(d.insertBefore))||LFe(c,n.sourceFile,d)})}})}});function KXe(e,n,i,c,u){let d,h;if(c===N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)d=n,h=n+i;else if(c===N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const S=u.program.getTypeChecker(),E=Lf(e,n).parent;re.assert(GM(E),"error span of fixPropertyOverrideAccessor should only be on an accessor");const P=E.parent;re.assert(Fl(P),"erroneous accessors should only be inside classes");const k=Vb(KFe(P,S));if(!k)return[];const F=Ic(z8(E.name)),$=S.getPropertyOfType(S.getTypeAtLocation(k),F);if(!$||!$.valueDeclaration)return[];d=$.valueDeclaration.pos,h=$.valueDeclaration.end,e=ts($.valueDeclaration)}else re.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+c);return aYe(e,u.program,d,h,u,N.Generate_get_and_set_accessors.message)}var HIe,Jle,JIe=G({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){xl(),If(),HIe=[N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Jle="fixPropertyOverrideAccessor",Hc({errorCodes:HIe,getCodeActions(e){const n=KXe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(n)return[Rd(Jle,n,N.Generate_get_and_set_accessors,Jle,N.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Jle],getAllCodeActions:e=>Sg(e,HIe,(n,i)=>{const c=KXe(i.file,i.start,i.length,i.code,e);if(c)for(const u of c)n.pushRaw(e.sourceFile,u)})})}});function f_t(e,n){switch(e){case N.Parameter_0_implicitly_has_an_1_type.code:case N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xb(zE(n))?N.Infer_type_of_0_from_usage:N.Infer_parameter_types_from_usage;case N.Rest_parameter_0_implicitly_has_an_any_type.code:case N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Infer_parameter_types_from_usage;case N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return N.Infer_this_type_of_0_from_usage;default:return N.Infer_type_of_0_from_usage}}function __t(e){switch(e){case N.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Variable_0_implicitly_has_an_1_type.code;case N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Parameter_0_implicitly_has_an_1_type.code;case N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Rest_parameter_0_implicitly_has_an_any_type.code;case N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Member_0_implicitly_has_an_1_type.code}return e}function XXe(e,n,i,c,u,d,h,S,E){if(!cR(i.kind)&&i.kind!==80&&i.kind!==26&&i.kind!==110)return;const{parent:P}=i,k=Z3(n,u,E,S);switch(c=__t(c),c){case N.Member_0_implicitly_has_an_1_type.code:case N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Kc(P)&&h(P)||nu(P)||em(P))return FFe(e,k,n,P,u,S,d),k.writeFixes(e),P;if(Ac(P)){const J=Wq(P.name,u,d),X=iB(J,P,u,S);if(X){const ie=he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(X),void 0);e.addJSDocTags(n,uc(P.parent.parent,kb),[ie])}return k.writeFixes(e),P}return;case N.Variable_0_implicitly_has_an_1_type.code:{const J=u.getTypeChecker().getSymbolAtLocation(i);return J&&J.valueDeclaration&&Kc(J.valueDeclaration)&&h(J.valueDeclaration)?(FFe(e,k,ts(J.valueDeclaration),J.valueDeclaration,u,S,d),k.writeFixes(e),J.valueDeclaration):void 0}}const F=zE(i);if(F===void 0)return;let $;switch(c){case N.Parameter_0_implicitly_has_an_1_type.code:if(Xb(F)){QXe(e,k,n,F,u,S,d),$=F;break}case N.Rest_parameter_0_implicitly_has_an_any_type.code:if(h(F)){const J=uc(P,Os);YXe(e,k,n,J,F,u,S,d),$=J}break;case N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:lE(F)&&xn(F.name)&&(uve(e,k,n,F,Wq(F.name,u,d),u,S),$=F);break;case N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Xb(F)&&(QXe(e,k,n,F,u,S,d),$=F);break;case N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:zs.isThisTypeAnnotatable(F)&&h(F)&&(d_t(e,n,F,u,S,d),$=F);break;default:return re.fail(String(c))}return k.writeFixes(e),$}function FFe(e,n,i,c,u,d,h){xn(c.name)&&uve(e,n,i,c,Wq(c.name,u,h),u,d)}function YXe(e,n,i,c,u,d,h,S){if(!xn(c.name))return;const E=$le(u,i,d,S);if(re.assert(u.parameters.length===E.length,"Parameter count and inference count should match"),Cs(u))ZXe(e,i,E,d,h);else{const P=$m(u)&&!qm(u,21,i);P&&e.insertNodeBefore(i,Dl(u.parameters),he.createToken(21));for(const{declaration:k,type:F}of E)k&&!k.type&&!k.initializer&&uve(e,n,i,k,F,d,h);P&&e.insertNodeAfter(i,yl(u.parameters),he.createToken(22))}}function d_t(e,n,i,c,u,d){const h=eYe(i,n,c,d);if(!h||!h.length)return;const S=KIe(c,h,d).thisParameter(),E=iB(S,i,c,u);E&&(Cs(i)?p_t(e,n,i,E):e.tryInsertThisTypeAnnotation(n,i,E))}function p_t(e,n,i,c){e.addJSDocTags(n,i,[he.createJSDocThisTag(void 0,he.createJSDocTypeExpression(c))])}function QXe(e,n,i,c,u,d,h){const S=pp(c.parameters);if(S&&xn(c.name)&&xn(S.name)){let E=Wq(c.name,u,h);E===u.getTypeChecker().getAnyType()&&(E=Wq(S.name,u,h)),Cs(c)?ZXe(e,i,[{declaration:S,type:E}],u,d):uve(e,n,i,S,E,u,d)}}function uve(e,n,i,c,u,d,h){const S=iB(u,c,d,h);if(S)if(Cs(i)&&c.kind!==171){const E=Kc(c)?to(c.parent.parent,Xg):c;if(!E)return;const P=he.createJSDocTypeExpression(S),k=lE(c)?he.createJSDocReturnTag(void 0,P,void 0):he.createJSDocTypeTag(void 0,P,void 0);e.addJSDocTags(i,E,[k])}else $Ie(S,c,i,e,n,iu(d.getCompilerOptions()))||e.tryInsertTypeAnnotation(i,c,S)}function $Ie(e,n,i,c,u,d){const h=WF(e,d);return h&&c.tryInsertTypeAnnotation(i,n,h.typeNode)?(Ot(h.symbols,S=>u.addImportFromExportedSymbol(S,!0)),!0):!1}function ZXe(e,n,i,c,u){const d=i.length&&i[0].declaration.parent;if(!d)return;const h=Qo(i,S=>{const E=S.declaration;if(E.initializer||iR(E)||!xn(E.name))return;const P=S.type&&iB(S.type,E,c,u);if(P){const k=he.cloneNode(E.name);return _s(k,7168),{name:he.cloneNode(E.name),param:E,isOptional:!!S.isOptional,typeNode:P}}});if(h.length)if($m(d)||Jm(d)){const S=$m(d)&&!qm(d,21,n);S&&e.insertNodeBefore(n,Dl(d.parameters),he.createToken(21)),Ot(h,({typeNode:E,param:P})=>{const k=he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(E)),F=he.createJSDocComment(void 0,[k]);e.insertNodeAt(n,P.getStart(n),F,{suffix:" "})}),S&&e.insertNodeAfter(n,yl(d.parameters),he.createToken(22))}else{const S=Vn(h,({name:E,typeNode:P,isOptional:k})=>he.createJSDocParameterTag(void 0,E,!!k,he.createJSDocTypeExpression(P),!1,void 0));e.addJSDocTags(n,d,S)}}function qIe(e,n,i){return Qo(Wf.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),i),c=>c.kind!==Wf.EntryKind.Span?to(c.node,xn):void 0)}function Wq(e,n,i){const c=qIe(e,n,i);return KIe(n,c,i).single()}function $le(e,n,i,c){const u=eYe(e,n,i,c);return u&&KIe(i,u,c).parameters(e)||e.parameters.map(d=>({declaration:d,type:xn(d.name)?Wq(d.name,i,c):i.getTypeChecker().getAnyType()}))}function eYe(e,n,i,c){let u;switch(e.kind){case 176:u=qm(e,137,n);break;case 219:case 218:const d=e.parent;u=(Kc(d)||nu(d))&&xn(d.name)?d.name:e.name;break;case 262:case 174:case 173:u=e.name;break}if(u)return qIe(u,i,c)}function KIe(e,n,i){const c=e.getTypeChecker(),u={string:()=>c.getStringType(),number:()=>c.getNumberType(),Array:qt=>c.createArrayType(qt),Promise:qt=>c.createPromiseType(qt)},d=[c.getStringType(),c.getNumberType(),c.createArrayType(c.getAnyType()),c.createPromiseType(c.getAnyType())];return{single:E,parameters:P,thisParameter:k};function h(){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 S(qt){const Kt=new Map;for(const Wr of qt)Wr.properties&&Wr.properties.forEach((jt,En)=>{Kt.has(En)||Kt.set(En,[]),Kt.get(En).push(jt)});const wr=new Map;return Kt.forEach((Wr,jt)=>{wr.set(jt,S(Wr))}),{isNumber:qt.some(Wr=>Wr.isNumber),isString:qt.some(Wr=>Wr.isString),isNumberOrString:qt.some(Wr=>Wr.isNumberOrString),candidateTypes:ea(qt,Wr=>Wr.candidateTypes),properties:wr,calls:ea(qt,Wr=>Wr.calls),constructs:ea(qt,Wr=>Wr.constructs),numberIndex:Ot(qt,Wr=>Wr.numberIndex),stringIndex:Ot(qt,Wr=>Wr.stringIndex),candidateThisTypes:ea(qt,Wr=>Wr.candidateThisTypes),inferredTypes:void 0}}function E(){return Ct(F(n))}function P(qt){if(n.length===0||!qt.parameters)return;const Kt=h();for(const Wr of n)i.throwIfCancellationRequested(),$(Wr,Kt);const wr=[...Kt.constructs||[],...Kt.calls||[]];return qt.parameters.map((Wr,jt)=>{const En=[],fr=sp(Wr);let Tr=!1;for(const Pn of wr)if(Pn.argumentTypes.length<=jt)Tr=Cs(qt),En.push(c.getUndefinedType());else if(fr)for(let Fr=jt;Frwr.every(jt=>!jt(Wr)))}function ct(qt){return Ct(Ze(qt))}function Ct(qt){if(!qt.length)return c.getAnyType();const Kt=c.getUnionType([c.getStringType(),c.getNumberType()]);let Wr=Ie(qt,[{high:En=>En===c.getStringType()||En===c.getNumberType(),low:En=>En===Kt},{high:En=>!(En.flags&16385),low:En=>!!(En.flags&16385)},{high:En=>!(En.flags&114689)&&!(ji(En)&16),low:En=>!!(ji(En)&16)}]);const jt=Wr.filter(En=>ji(En)&16);return jt.length&&(Wr=Wr.filter(En=>!(ji(En)&16)),Wr.push(Lt(jt))),c.getWidenedType(c.getUnionType(Wr.map(c.getBaseTypeOfLiteralType),2))}function Lt(qt){if(qt.length===1)return qt[0];const Kt=[],wr=[],Wr=[],jt=[];let En=!1,fr=!1;const Tr=zg();for(const Fr of qt){for(const no of c.getPropertiesOfType(Fr))Tr.add(no.escapedName,no.valueDeclaration?c.getTypeOfSymbolAtLocation(no,no.valueDeclaration):c.getAnyType());Kt.push(...c.getSignaturesOfType(Fr,0)),wr.push(...c.getSignaturesOfType(Fr,1));const Ki=c.getIndexInfoOfType(Fr,0);Ki&&(Wr.push(Ki.type),En=En||Ki.isReadonly);const io=c.getIndexInfoOfType(Fr,1);io&&(jt.push(io.type),fr=fr||io.isReadonly)}const Vr=Gc(Tr,(Fr,Ki)=>{const io=Ki.lengthc.getBaseTypeOfLiteralType(Tr)),fr=(Wr=qt.calls)!=null&&Wr.length?Ke(qt):void 0;return fr&&En?jt.push(c.getUnionType([fr,...En],2)):(fr&&jt.push(fr),Nt(En)&&jt.push(...En)),jt.push(...st(qt)),jt}function Ke(qt){const Kt=new Map;qt.properties&&qt.properties.forEach((En,fr)=>{const Tr=c.createSymbol(4,fr);Tr.links.type=ct(En),Kt.set(fr,Tr)});const wr=qt.calls?[nn(qt.calls)]:[],Wr=qt.constructs?[nn(qt.constructs)]:[],jt=qt.stringIndex?[c.createIndexInfo(c.getStringType(),ct(qt.stringIndex),!1)]:[];return c.createAnonymousType(void 0,Kt,wr,Wr,jt)}function st(qt){if(!qt.properties||!qt.properties.size)return[];const Kt=d.filter(wr=>It(wr,qt));return 0Yt(wr,qt)):[]}function It(qt,Kt){return Kt.properties?!Jb(Kt.properties,(wr,Wr)=>{const jt=c.getTypeOfPropertyOfType(qt,Wr);return jt?wr.calls?!c.getSignaturesOfType(jt,0).length||!c.isTypeAssignableTo(jt,Qt(wr.calls)):!c.isTypeAssignableTo(jt,ct(wr)):!0}):!1}function Yt(qt,Kt){if(!(ji(qt)&4)||!Kt.properties)return qt;const wr=qt.target,Wr=Vb(wr.typeParameters);if(!Wr)return qt;const jt=[];return Kt.properties.forEach((En,fr)=>{const Tr=c.getTypeOfPropertyOfType(wr,fr);re.assert(!!Tr,"generic should have all the properties of its reference."),jt.push(...Et(Tr,ct(En),Wr))}),u[qt.symbol.escapedName](Ct(jt))}function Et(qt,Kt,wr){if(qt===wr)return[Kt];if(qt.flags&3145728)return ea(qt.types,En=>Et(En,Kt,wr));if(ji(qt)&4&&ji(Kt)&4){const En=c.getTypeArguments(qt),fr=c.getTypeArguments(Kt),Tr=[];if(En&&fr)for(let Vr=0;Vrjt.argumentTypes.length));for(let jt=0;jtfr.argumentTypes[jt]||c.getUndefinedType())),qt.some(fr=>fr.argumentTypes[jt]===void 0)&&(En.flags|=16777216),Kt.push(En)}const Wr=ct(S(qt.map(jt=>jt.return_)));return c.createSignature(void 0,void 0,void 0,Kt,Wr,void 0,wr,0)}function Rn(qt,Kt){Kt&&!(Kt.flags&1)&&!(Kt.flags&131072)&&(qt.candidateTypes||(qt.candidateTypes=[])).push(Kt)}function cn(qt,Kt){Kt&&!(Kt.flags&1)&&!(Kt.flags&131072)&&(qt.candidateThisTypes||(qt.candidateThisTypes=[])).push(Kt)}}var qle,Kle,WFe=G({"src/services/codefixes/inferFromUsage.ts"(){xl(),If(),qle="inferFromUsage",Kle=[N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,N.Variable_0_implicitly_has_an_1_type.code,N.Parameter_0_implicitly_has_an_1_type.code,N.Rest_parameter_0_implicitly_has_an_any_type.code,N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,N.Member_0_implicitly_has_an_1_type.code,N.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Hc({errorCodes:Kle,getCodeActions(e){const{sourceFile:n,program:i,span:{start:c},errorCode:u,cancellationToken:d,host:h,preferences:S}=e,E=Lf(n,c);let P;const k=zs.ChangeTracker.with(e,$=>{P=XXe($,n,E,u,i,d,xT,h,S)}),F=P&&i_(P);return!F||k.length===0?void 0:[Rd(qle,k,[f_t(u,E),Lv(F)],qle,N.Infer_all_types_from_usage)]},fixIds:[qle],getAllCodeActions(e){const{sourceFile:n,program:i,cancellationToken:c,host:u,preferences:d}=e,h=U3();return Sg(e,Kle,(S,E)=>{XXe(S,n,Lf(E.file,E.start),E.code,i,c,h,u,d)})}})}});function tYe(e,n,i){if(Cs(e))return;const c=Lf(e,i),u=Ua(c,Vd),d=u==null?void 0:u.type;if(!d)return;const h=n.getTypeFromTypeNode(d),S=n.getAwaitedType(h)||n.getVoidType(),E=n.typeToTypeNode(S,d,void 0);if(E)return{returnTypeNode:d,returnType:h,promisedTypeNode:E,promisedType:S}}function BFe(e,n,i,c){e.replaceNode(n,i,he.createTypeReferenceNode("Promise",[c]))}var fve,Xle,zFe=G({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){xl(),If(),fve="fixReturnTypeInAsyncFunction",Xle=[N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Hc({errorCodes:Xle,fixIds:[fve],getCodeActions:function(n){const{sourceFile:i,program:c,span:u}=n,d=c.getTypeChecker(),h=tYe(i,c.getTypeChecker(),u.start);if(!h)return;const{returnTypeNode:S,returnType:E,promisedTypeNode:P,promisedType:k}=h,F=zs.ChangeTracker.with(n,$=>BFe($,i,S,P));return[Rd(fve,F,[N.Replace_0_with_Promise_1,d.typeToString(E),d.typeToString(k)],fve,N.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Sg(e,Xle,(n,i)=>{const c=tYe(i.file,e.program.getTypeChecker(),i.start);c&&BFe(n,i.file,c.returnTypeNode,c.promisedTypeNode)})})}});function nYe(e,n,i,c){const{line:u}=xm(n,i);(!c||m2(c,u))&&e.insertCommentBeforeLine(n,u,i," @ts-ignore")}var XIe,_ve,dve,GFe=G({"src/services/codefixes/disableJsDiagnostics.ts"(){xl(),If(),XIe="disableJsDiagnostics",_ve="disableJsDiagnostics",dve=Qo(Object.keys(N),e=>{const n=N[e];return n.category===1?n.code:void 0}),Hc({errorCodes:dve,getCodeActions:function(n){const{sourceFile:i,program:c,span:u,host:d,formatContext:h}=n;if(!Cs(i)||!tW(i,c.getCompilerOptions()))return;const S=i.checkJsDirective?"":R6(d,h.options),E=[xI(XIe,[qqe(i.fileName,[LZ(i.checkJsDirective?Yy(i.checkJsDirective.pos,i.checkJsDirective.end):p1(0,0),`// @ts-nocheck${S}`)])],N.Disable_checking_for_this_file)];return zs.isValidLocationToAddComment(i,u.start)&&E.unshift(Rd(XIe,zs.ChangeTracker.with(n,P=>nYe(P,i,u.start)),N.Ignore_this_error_message,_ve,N.Add_ts_ignore_to_all_error_messages)),E},fixIds:[_ve],getAllCodeActions:e=>{const n=new Set;return Sg(e,dve,(i,c)=>{zs.isValidLocationToAddComment(c.file,c.start)&&nYe(i,c.file,c.start,n)})}})}});function jFe(e,n,i,c,u,d,h){const S=e.symbol.members;for(const E of n)S.has(E.escapedName)||iV(E,e,i,c,u,d,h,void 0)}function dB(e){return{trackSymbol:()=>!1,moduleResolverHost:FZ(e.program,e.host)}}function iV(e,n,i,c,u,d,h,S,E=3,P=!1){const k=e.getDeclarations(),F=pp(k),$=c.program.getTypeChecker(),J=iu(c.program.getCompilerOptions()),X=(F==null?void 0:F.kind)??171,ie=st(e,F),ae=F?Cb(F):0;let ve=ae&256;ve|=ae&1?1:ae&4?4:0,F&&xb(F)&&(ve|=512);const we=ct(),Fe=$.getWidenedType($.getTypeOfSymbolAtLocation(e,n)),et=!!(e.flags&16777216),Pe=!!(n.flags&33554432)||P,dt=OS(i,u);switch(X){case 171:case 172:const It=dt===0?268435456:void 0;let Yt=$.typeToTypeNode(Fe,n,It,dB(c));if(d){const at=WF(Yt,J);at&&(Yt=at.typeNode,oV(d,at.symbols))}h(he.createPropertyDeclaration(we,F?Lt(ie):e.getName(),et&&E&2?he.createToken(58):void 0,Yt,void 0));break;case 177:case 178:{re.assertIsDefined(k);let at=$.typeToTypeNode(Fe,n,void 0,dB(c));const Qt=oI(k,F),nn=Qt.secondAccessor?[Qt.firstAccessor,Qt.secondAccessor]:[Qt.firstAccessor];if(d){const Rn=WF(at,J);Rn&&(at=Rn.typeNode,oV(d,Rn.symbols))}for(const Rn of nn)if(lE(Rn))h(he.createGetAccessorDeclaration(we,Lt(ie),Yn,Ke(at),Ze(S,dt,Pe)));else{re.assertNode(Rn,Xb,"The counterpart to a getter should be a setter");const cn=AH(Rn),qt=cn&&xn(cn.name)?Kr(cn.name):void 0;h(he.createSetAccessorDeclaration(we,Lt(ie),YIe(1,[qt],[Ke(at)],1,!1),Ze(S,dt,Pe)))}break}case 173:case 174:re.assertIsDefined(k);const Et=Fe.isUnion()?ea(Fe.types,at=>at.getCallSignatures()):Fe.getCallSignatures();if(!gt(Et))break;if(k.length===1){re.assert(Et.length===1,"One declaration implies one signature");const at=Et[0];Ie(dt,at,we,Lt(ie),Ze(S,dt,Pe));break}for(const at of Et)Ie(dt,at,we,Lt(ie));if(!Pe)if(k.length>Et.length){const at=$.getSignatureFromDeclaration(k[k.length-1]);Ie(dt,at,we,Lt(ie),Ze(S,dt))}else re.assert(k.length===Et.length,"Declarations and signatures should match count"),h(HFe($,c,n,Et,Lt(ie),et&&!!(E&1),we,dt,S));break}function Ie(It,Yt,Et,at,Qt){const nn=pve(174,c,It,Yt,Qt,at,Et,et&&!!(E&1),n,d);nn&&h(nn)}function ct(){let It;return ve&&(It=FD(It,he.createModifiersFromModifierFlags(ve))),Ct()&&(It=ur(It,he.createToken(164))),It&&he.createNodeArray(It)}function Ct(){return!!(c.program.getCompilerOptions().noImplicitOverride&&F&&Ab(F))}function Lt(It){return xn(It)&&It.escapedText==="constructor"?he.createComputedPropertyName(he.createStringLiteral(Kr(It),dt===0)):ih(It,!1)}function Ze(It,Yt,Et){return Et?void 0:ih(It,!1)||JFe(Yt)}function Ke(It){return ih(It,!1)}function st(It,Yt){if(I_(It)&262144){const Et=It.links.nameType;if(Et&&yv(Et))return he.createIdentifier(Ic(vv(Et)))}return ih(i_(Yt),!1)}}function pve(e,n,i,c,u,d,h,S,E,P){const k=n.program,F=k.getTypeChecker(),$=iu(k.getCompilerOptions()),J=Cs(E),X=524545|(i===0?268435456:0),ie=F.signatureToSignatureDeclaration(c,e,E,X,dB(n));if(!ie)return;let ae=J?void 0:ie.typeParameters,ve=ie.parameters,we=J?void 0:ie.type;if(P){if(ae){const dt=Ol(ae,Ie=>{let ct=Ie.constraint,Ct=Ie.default;if(ct){const Lt=WF(ct,$);Lt&&(ct=Lt.typeNode,oV(P,Lt.symbols))}if(Ct){const Lt=WF(Ct,$);Lt&&(Ct=Lt.typeNode,oV(P,Lt.symbols))}return he.updateTypeParameterDeclaration(Ie,Ie.modifiers,Ie.name,ct,Ct)});ae!==dt&&(ae=Tn(he.createNodeArray(dt,ae.hasTrailingComma),ae))}const Pe=Ol(ve,dt=>{let Ie=J?void 0:dt.type;if(Ie){const ct=WF(Ie,$);ct&&(Ie=ct.typeNode,oV(P,ct.symbols))}return he.updateParameterDeclaration(dt,dt.modifiers,dt.dotDotDotToken,dt.name,J?void 0:dt.questionToken,Ie,dt.initializer)});if(ve!==Pe&&(ve=Tn(he.createNodeArray(Pe,ve.hasTrailingComma),ve)),we){const dt=WF(we,$);dt&&(we=dt.typeNode,oV(P,dt.symbols))}}const Fe=S?he.createToken(58):void 0,et=ie.asteriskToken;if(Jm(ie))return he.updateFunctionExpression(ie,h,ie.asteriskToken,to(d,xn),ae,ve,we,u??ie.body);if($m(ie))return he.updateArrowFunction(ie,h,ae,ve,we,ie.equalsGreaterThanToken,u??ie.body);if(tm(ie))return he.updateMethodDeclaration(ie,h,et,d??he.createIdentifier(""),Fe,ae,ve,we,u);if(mg(ie))return he.updateFunctionDeclaration(ie,h,ie.asteriskToken,to(d,xn),ae,ve,we,u??ie.body)}function Yle(e,n,i,c,u,d,h){const S=OS(n.sourceFile,n.preferences),E=iu(n.program.getCompilerOptions()),P=dB(n),k=n.program.getTypeChecker(),F=Cs(h),{typeArguments:$,arguments:J,parent:X}=c,ie=F?void 0:k.getContextualType(c),ae=Vn(J,Ct=>xn(Ct)?Ct.text:Ac(Ct)&&xn(Ct.name)?Ct.name.text:void 0),ve=F?[]:Vn(J,Ct=>k.getTypeAtLocation(Ct)),{argumentTypeNodes:we,argumentTypeParameters:Fe}=UFe(k,i,ve,h,E,1,P),et=d?he.createNodeArray(he.createModifiersFromModifierFlags(d)):void 0,Pe=t0(X)?he.createToken(42):void 0,dt=F?void 0:VFe(k,Fe,$),Ie=YIe(J.length,ae,we,void 0,F),ct=F||ie===void 0?void 0:k.typeToTypeNode(ie,h,void 0,P);switch(e){case 174:return he.createMethodDeclaration(et,Pe,u,void 0,dt,Ie,ct,JFe(S));case 173:return he.createMethodSignature(et,u,void 0,dt,Ie,ct===void 0?he.createKeywordTypeNode(159):ct);case 262:return re.assert(typeof u=="string"||xn(u),"Unexpected name"),he.createFunctionDeclaration(et,Pe,u,dt,Ie,ct,jee(N.Function_not_implemented.message,S));default:re.fail("Unexpected kind")}}function VFe(e,n,i){const c=new Set(n.map(d=>d[0])),u=new Map(n);if(i){const d=i.filter(S=>!n.some(E=>{var P;return e.getTypeAtLocation(S)===((P=E[1])==null?void 0:P.argumentType)})),h=c.size+d.length;for(let S=0;c.size{var h;return he.createTypeParameterDeclaration(void 0,d,(h=u.get(d))==null?void 0:h.constraint)})}function rYe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function mve(e,n,i,c,u,d,h){let S=e.typeToTypeNode(i,c,d,h);if(S&&E1(S)){const E=WF(S,u);E&&(oV(n,E.symbols),S=E.typeNode)}return ih(S)}function gve(e){return e.isUnionOrIntersection()?e.types.some(gve):e.flags&262144}function UFe(e,n,i,c,u,d,h){const S=[],E=new Map;for(let P=0;P=c?he.createToken(58):void 0,u?void 0:(i==null?void 0:i[S])||he.createKeywordTypeNode(159),void 0);d.push(k)}return d}function HFe(e,n,i,c,u,d,h,S,E){let P=c[0],k=c[0].minArgumentCount,F=!1;for(const ie of c)k=Math.min(ie.minArgumentCount,k),A1(ie)&&(F=!0),ie.parameters.length>=P.parameters.length&&(!A1(ie)||A1(P))&&(P=ie);const $=P.parameters.length-(A1(P)?1:0),J=P.parameters.map(ie=>ie.name),X=YIe($,J,void 0,k,!1);if(F){const ie=he.createParameterDeclaration(void 0,he.createToken(26),J[$]||"rest",$>=k?he.createToken(58):void 0,he.createArrayTypeNode(he.createKeywordTypeNode(159)),void 0);X.push(ie)}return g_t(h,u,d,void 0,X,m_t(c,e,n,i),S,E)}function m_t(e,n,i,c){if(Nt(e)){const u=n.getUnionType(Vn(e,n.getReturnTypeOfSignature));return n.typeToTypeNode(u,c,1,dB(i))}}function g_t(e,n,i,c,u,d,h,S){return he.createMethodDeclaration(e,void 0,n,i?he.createToken(58):void 0,c,u,d,S||JFe(h))}function JFe(e){return jee(N.Method_not_implemented.message,e)}function jee(e,n){return he.createBlock([he.createThrowStatement(he.createNewExpression(he.createIdentifier("Error"),void 0,[he.createStringLiteral(e,n===0)]))],!0)}function Vee(e,n,i){const c=tG(n);if(!c)return;const u=Zle(c,"compilerOptions");if(u===void 0){e.insertNodeAtObjectStart(n,c,Qle("compilerOptions",he.createObjectLiteralExpression(i.map(([h,S])=>Qle(h,S)),!0)));return}const d=u.initializer;if(el(d))for(const[h,S]of i){const E=Zle(d,h);E===void 0?e.insertNodeAtObjectStart(n,d,Qle(h,S)):e.replaceNode(n,E.initializer,S)}}function hve(e,n,i,c){Vee(e,n,[[i,c]])}function Qle(e,n){return he.createPropertyAssignment(he.createStringLiteral(e),n)}function Zle(e,n){return lr(e.properties,i=>tl(i)&&!!i.name&&Sd(i.name)&&i.name.text===n)}function WF(e,n){let i;const c=Bn(e,u,pc);if(i&&c)return{typeNode:c,symbols:i};function u(d){if(MN(d)&&d.qualifier){const h=PS(d.qualifier),S=Fj(h.symbol,n),E=S!==h.text?pB(d.qualifier,he.createIdentifier(S)):d.qualifier;i=ur(i,h.symbol);const P=Wa(d.typeArguments,u,pc);return he.createTypeReferenceNode(E,P)}return Xo(d,u,sx)}}function pB(e,n){return e.kind===80?n:he.createQualifiedName(pB(e.left,n),e.right)}function oV(e,n){n.forEach(i=>e.addImportFromExportedSymbol(i,!0))}function mB(e,n){const i=Xy(n);let c=Lf(e,n.start);for(;c.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(yve||{})}});function aYe(e,n,i,c,u,d){const h=uYe(e,n,i,c);if(!h||MF.isRefactorErrorInfo(h))return;const S=zs.ChangeTracker.fromContext(u),{isStatic:E,isReadonly:P,fieldName:k,accessorName:F,originalName:$,type:J,container:X,declaration:ie}=h;zT(k),zT(F),zT(ie),zT(X);let ae,ve;if(Fl(X)){const Fe=Cb(ie);if(Gy(e)){const et=he.createModifiersFromModifierFlags(Fe);ae=et,ve=et}else ae=he.createModifiersFromModifierFlags(lYe(Fe)),ve=he.createModifiersFromModifierFlags(y_t(Fe));S6(ie)&&(ve=Hi(OM(ie),ve))}S_t(S,e,ie,J,k,ve);const we=fYe(k,F,J,ae,E,X);if(zT(we),_Ye(S,e,we,ie,X),P){const Fe=sC(X);Fe&&dYe(S,e,Fe,k.text,$)}else{const Fe=v_t(k,F,J,ae,E,X);zT(Fe),_Ye(S,e,Fe,ie,X)}return S.getChanges()}function sYe(e){return xn(e)||Sd(e)}function h_t(e){return DT(e,e.parent)||nu(e)||tl(e)}function cYe(e,n){return xn(n)?he.createIdentifier(e):he.createStringLiteral(e)}function qFe(e,n,i){const c=n?i.name:he.createThis();return xn(e)?he.createPropertyAccessExpression(c,e):he.createElementAccessExpression(c,he.createStringLiteralFromNode(e))}function lYe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function y_t(e){return e&=-2,e&=-5,e|=2,e}function uYe(e,n,i,c,u=!0){const d=Lf(e,i),h=i===c&&u,S=Ua(d.parent,h_t),E=271;if(!S||!(Fge(S.name,e,i,c)||h))return{error:fs(N.Could_not_find_property_for_which_to_generate_accessor)};if(!sYe(S.name))return{error:fs(N.Name_is_not_valid)};if((Cb(S)&98303|E)!==E)return{error:fs(N.Can_only_convert_property_with_modifier)};const P=S.name.text,k=YZ(P),F=cYe(k?P:b4(`_${P}`,e),S.name),$=cYe(k?b4(P.substring(1),e):P,S.name);return{isStatic:ev(S),isReadonly:Ny(S),type:E_t(S,n),container:S.kind===169?S.parent.parent:S.parent,originalName:S.name.text,declaration:S,fieldName:F,accessorName:$,renameAccessor:k}}function fYe(e,n,i,c,u,d){return he.createGetAccessorDeclaration(c,n,[],i,he.createBlock([he.createReturnStatement(qFe(e,u,d))],!0))}function v_t(e,n,i,c,u,d){return he.createSetAccessorDeclaration(c,n,[he.createParameterDeclaration(void 0,void 0,he.createIdentifier("value"),void 0,i)],he.createBlock([he.createExpressionStatement(he.createAssignment(qFe(e,u,d),he.createIdentifier("value")))],!0))}function b_t(e,n,i,c,u,d){const h=he.updatePropertyDeclaration(i,d,u,i.questionToken||i.exclamationToken,c,i.initializer);e.replaceNode(n,i,h)}function T_t(e,n,i,c){let u=he.updatePropertyAssignment(i,c,i.initializer);(u.modifiers||u.questionToken||u.exclamationToken)&&(u===i&&(u=he.cloneNode(u)),u.modifiers=void 0,u.questionToken=void 0,u.exclamationToken=void 0),e.replacePropertyAssignment(n,i,u)}function S_t(e,n,i,c,u,d){nu(i)?b_t(e,n,i,c,u,d):tl(i)?T_t(e,n,i,u):e.replaceNode(n,i,he.updateParameterDeclaration(i,d,i.dotDotDotToken,uc(u,xn),i.questionToken,i.type,i.initializer))}function _Ye(e,n,i,c,u){DT(c,c.parent)?e.insertMemberAtStart(n,u,i):tl(c)?e.insertNodeAfterComma(n,c,i):e.insertNodeAfter(n,c,i)}function dYe(e,n,i,c,u){i.body&&i.body.forEachChild(function d(h){Hm(h)&&h.expression.kind===110&&Sd(h.argumentExpression)&&h.argumentExpression.text===u&&o6(h)&&e.replaceNode(n,h.argumentExpression,he.createStringLiteral(c)),Ac(h)&&h.expression.kind===110&&h.name.text===u&&o6(h)&&e.replaceNode(n,h.name,he.createIdentifier(c)),!F_(h)&&!Fl(h)&&h.forEachChild(d)})}function E_t(e,n){const i=O7(e);if(nu(e)&&i&&e.questionToken){const c=n.getTypeChecker(),u=c.getTypeFromTypeNode(i);if(!c.isTypeAssignableTo(c.getUndefinedType(),u)){const d=fI(i)?i.types:[i];return he.createUnionTypeNode([...d,he.createKeywordTypeNode(157)])}}return i}function KFe(e,n){const i=[];for(;e;){const c=gR(e),u=c&&n.getSymbolAtLocation(c.expression);if(!u)break;const d=u.flags&2097152?n.getAliasedSymbol(u):u,h=d.declarations&&lr(d.declarations,Fl);if(!h)break;i.push(h),e=h}return i}var XFe=G({"src/services/codefixes/generateAccessors.ts"(){xl()}});function x_t(e,n){const i=ts(n),c=H8(n),u=e.program.getCompilerOptions(),d=[];return d.push(pYe(e,i,n,Nk(c.name,void 0,n.moduleSpecifier,OS(i,e.preferences)))),Zp(u)===1&&d.push(pYe(e,i,n,he.createImportEqualsDeclaration(void 0,!1,c.name,he.createExternalModuleReference(n.moduleSpecifier)))),d}function pYe(e,n,i,c){const u=zs.ChangeTracker.with(e,d=>d.replaceNode(n,i,c));return xI(QIe,u,[N.Replace_import_with_0,u[0].textChanges[0].newText])}function mYe(e){const n=e.sourceFile,i=N.This_expression_is_not_callable.code===e.errorCode?213:214,c=Ua(Lf(n,e.span.start),d=>d.kind===i);if(!c)return[];const u=c.expression;return gYe(e,u)}function A_t(e){const n=e.sourceFile,i=Ua(Lf(n,e.span.start),c=>c.getStart()===e.span.start&&c.getEnd()===e.span.start+e.span.length);return i?gYe(e,i):[]}function gYe(e,n){const i=e.program.getTypeChecker().getTypeAtLocation(n);if(!(i.symbol&&Vm(i.symbol)&&i.symbol.links.originatingImport))return[];const c=[],u=i.symbol.links.originatingImport;if(Py(u)||Oi(c,x_t(e,u)),kr(n)&&!(mp(n.parent)&&n.parent.name===n)){const d=e.sourceFile,h=zs.ChangeTracker.with(e,S=>S.replaceNode(d,n,he.createPropertyAccessExpression(n,"default"),{}));c.push(xI(QIe,h,N.Use_synthetic_default_member))}return c}var QIe,YFe=G({"src/services/codefixes/fixInvalidImportSyntax.ts"(){xl(),If(),QIe="invalidImportSyntax",Hc({errorCodes:[N.This_expression_is_not_callable.code,N.This_expression_is_not_constructable.code],getCodeActions:mYe}),Hc({errorCodes:[N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Type_0_does_not_satisfy_the_constraint_1.code,N.Type_0_is_not_assignable_to_type_1.code,N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,N.Type_predicate_0_is_not_assignable_to_1.code,N.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,N._0_index_type_1_is_not_assignable_to_2_index_type_3.code,N.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,N.Property_0_in_type_1_is_not_assignable_to_type_2.code,N.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:A_t})}});function hYe(e,n){const i=Lf(e,n);if(xn(i)&&nu(i.parent)){const c=Zy(i.parent);if(c)return{type:c,prop:i.parent,isJs:Cs(i.parent)}}}function yYe(e,n){if(n.isJs)return;const i=zs.ChangeTracker.with(e,c=>vYe(c,e.sourceFile,n.prop));return Rd(vve,i,[N.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],Uee,N.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function vYe(e,n,i){zT(i);const c=he.updatePropertyDeclaration(i,i.modifiers,i.name,he.createToken(54),i.type,i.initializer);e.replaceNode(n,i,c)}function bYe(e,n){const i=zs.ChangeTracker.with(e,c=>TYe(c,e.sourceFile,n));return Rd(vve,i,[N.Add_undefined_type_to_property_0,n.prop.name.getText()],Hee,N.Add_undefined_type_to_all_uninitialized_properties)}function TYe(e,n,i){const c=he.createKeywordTypeNode(157),u=fI(i.type)?i.type.types.concat(c):[i.type,c],d=he.createUnionTypeNode(u);i.isJs?e.addJSDocTags(n,i.prop,[he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(d))]):e.replaceNode(n,i.type,d)}function SYe(e,n){if(n.isJs)return;const i=e.program.getTypeChecker(),c=QFe(i,n.prop);if(!c)return;const u=zs.ChangeTracker.with(e,d=>EYe(d,e.sourceFile,n.prop,c));return Rd(vve,u,[N.Add_initializer_to_property_0,n.prop.name.getText()],Jee,N.Add_initializers_to_all_uninitialized_properties)}function EYe(e,n,i,c){zT(i);const u=he.updatePropertyDeclaration(i,i.modifiers,i.name,i.questionToken,i.type,c);e.replaceNode(n,i,u)}function QFe(e,n){return ZFe(e,e.getTypeFromTypeNode(n.type))}function ZFe(e,n){if(n.flags&512)return n===e.getFalseType()||n===e.getFalseType(!0)?he.createFalse():he.createTrue();if(n.isStringLiteral())return he.createStringLiteral(n.value);if(n.isNumberLiteral())return he.createNumericLiteral(n.value);if(n.flags&2048)return he.createBigIntLiteral(n.value);if(n.isUnion())return Yr(n.types,i=>ZFe(e,i));if(n.isClass()){const i=RS(n.symbol);if(!i||ul(i,64))return;const c=sC(i);return c&&c.parameters.length?void 0:he.createNewExpression(he.createIdentifier(n.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(n))return he.createArrayLiteralExpression()}var vve,Uee,Hee,Jee,eue,e5e=G({"src/services/codefixes/fixStrictClassInitialization.ts"(){xl(),If(),vve="strictClassInitialization",Uee="addMissingPropertyDefiniteAssignmentAssertions",Hee="addMissingPropertyUndefinedType",Jee="addMissingPropertyInitializer",eue=[N.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Hc({errorCodes:eue,getCodeActions:function(n){const i=hYe(n.sourceFile,n.span.start);if(!i)return;const c=[];return ur(c,bYe(n,i)),ur(c,yYe(n,i)),ur(c,SYe(n,i)),c},fixIds:[Uee,Hee,Jee],getAllCodeActions:e=>Sg(e,eue,(n,i)=>{const c=hYe(i.file,i.start);if(c)switch(e.fixId){case Uee:vYe(n,i.file,c.prop);break;case Hee:TYe(n,i.file,c);break;case Jee:const u=e.program.getTypeChecker(),d=QFe(u,c.prop);if(!d)return;EYe(n,i.file,c.prop,d);break;default:re.fail(JSON.stringify(e.fixId))}})})}});function xYe(e,n,i){const{allowSyntheticDefaults:c,defaultImportName:u,namedImports:d,statement:h,required:S}=i;e.replaceNode(n,h,u&&!c?he.createImportEqualsDeclaration(void 0,!1,u,he.createExternalModuleReference(S)):he.createImportDeclaration(void 0,he.createImportClause(!1,u,d),S,void 0))}function t5e(e,n,i){const{parent:c}=Lf(e,i);y1(c,!0)||re.failBadSyntaxKind(c);const u=uc(c.parent,Kc),d=to(u.name,xn),h=Ch(u.name)?AYe(u.name):void 0;if(d||h)return{allowSyntheticDefaults:VN(n.getCompilerOptions()),defaultImportName:d,namedImports:h,statement:uc(u.parent.parent,Xg),required:Dl(c.arguments)}}function AYe(e){const n=[];for(const i of e.elements){if(!xn(i.name)||i.initializer)return;n.push(he.createImportSpecifier(!1,to(i.propertyName,xn),i.name))}if(n.length)return he.createNamedImports(n)}var ZIe,tue,n5e=G({"src/services/codefixes/requireInTs.ts"(){xl(),If(),ZIe="requireInTs",tue=[N.require_call_may_be_converted_to_an_import.code],Hc({errorCodes:tue,getCodeActions(e){const n=t5e(e.sourceFile,e.program,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,c=>xYe(c,e.sourceFile,n));return[Rd(ZIe,i,N.Convert_require_to_import,ZIe,N.Convert_all_require_to_import)]},fixIds:[ZIe],getAllCodeActions:e=>Sg(e,tue,(n,i)=>{const c=t5e(i.file,e.program,i.start);c&&xYe(n,e.sourceFile,c)})})}});function CYe(e,n){const i=Lf(e,n);if(!xn(i))return;const{parent:c}=i;if(Yb(c)&&KE(c.moduleReference))return{importNode:c,name:i,moduleSpecifier:c.moduleReference.expression};if(mh(c)){const u=c.parent.parent;return{importNode:u,name:i,moduleSpecifier:u.moduleSpecifier}}}function r5e(e,n,i,c){e.replaceNode(n,i.importNode,Nk(i.name,void 0,i.moduleSpecifier,OS(n,c)))}var bve,nue,i5e=G({"src/services/codefixes/useDefaultImport.ts"(){xl(),If(),bve="useDefaultImport",nue=[N.Import_may_be_converted_to_a_default_import.code],Hc({errorCodes:nue,getCodeActions(e){const{sourceFile:n,span:{start:i}}=e,c=CYe(n,i);if(!c)return;const u=zs.ChangeTracker.with(e,d=>r5e(d,n,c,e.preferences));return[Rd(bve,u,N.Convert_to_default_import,bve,N.Convert_all_to_default_imports)]},fixIds:[bve],getAllCodeActions:e=>Sg(e,nue,(n,i)=>{const c=CYe(i.file,i.start);c&&r5e(n,i.file,c,e.preferences)})})}});function DYe(e,n,i){const c=to(Lf(n,i.start),S1);if(!c)return;const u=c.getText(n)+"n";e.replaceNode(n,c,he.createBigIntLiteral(u))}var Tve,rue,o5e=G({"src/services/codefixes/useBigintLiteral.ts"(){xl(),If(),Tve="useBigintLiteral",rue=[N.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Hc({errorCodes:rue,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>DYe(c,n.sourceFile,n.span));if(i.length>0)return[Rd(Tve,i,N.Convert_to_a_bigint_numeric_literal,Tve,N.Convert_all_to_bigint_numeric_literals)]},fixIds:[Tve],getAllCodeActions:e=>Sg(e,rue,(n,i)=>DYe(n,i.file,i))})}});function IYe(e,n){const i=Lf(e,n);return re.assert(i.kind===102,"This token should be an ImportKeyword"),re.assert(i.parent.kind===205,"Token parent should be an ImportType"),i.parent}function a5e(e,n,i){const c=he.updateImportTypeNode(i,i.argument,i.attributes,i.qualifier,i.typeArguments,!0);e.replaceNode(n,i,c)}var s5e,Sve,iue,c5e=G({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){xl(),If(),s5e="fixAddModuleReferTypeMissingTypeof",Sve=s5e,iue=[N.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Hc({errorCodes:iue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=IYe(i,c.start),d=zs.ChangeTracker.with(n,h=>a5e(h,i,u));return[Rd(Sve,d,N.Add_missing_typeof,Sve,N.Add_missing_typeof)]},fixIds:[Sve],getAllCodeActions:e=>Sg(e,iue,(n,i)=>a5e(n,e.sourceFile,IYe(i.file,i.start)))})}});function kYe(e,n){let u=Lf(e,n).parent.parent;if(!(!Ds(u)&&(u=u.parent,!Ds(u)))&&ny(u.operatorToken))return u}function l5e(e,n,i){const c=PYe(i);c&&e.replaceNode(n,i,he.createJsxFragment(he.createJsxOpeningFragment(),c,he.createJsxJsxClosingFragment()))}function PYe(e){const n=[];let i=e;for(;;)if(Ds(i)&&ny(i.operatorToken)&&i.operatorToken.kind===28){if(n.push(i.left),ZX(i.right))return n.push(i.right),n;if(Ds(i.right)){i=i.right;continue}else return}else return}var eke,oue,u5e=G({"src/services/codefixes/wrapJsxInFragment.ts"(){xl(),If(),eke="wrapJsxInFragment",oue=[N.JSX_expressions_must_have_one_parent_element.code],Hc({errorCodes:oue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=kYe(i,c.start);if(!u)return;const d=zs.ChangeTracker.with(n,h=>l5e(h,i,u));return[Rd(eke,d,N.Wrap_in_JSX_fragment,eke,N.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[eke],getAllCodeActions:e=>Sg(e,oue,(n,i)=>{const c=kYe(e.sourceFile,i.start);c&&l5e(n,e.sourceFile,c)})})}});function NYe(e,n){const i=Lf(e,n),c=to(i.parent.parent,Z2);if(!c)return;const u=xp(c.parent)?c.parent:to(c.parent.parent,z0);if(u)return{indexSignature:c,container:u}}function wYe(e,n){return he.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,n)}function RYe(e,n,{indexSignature:i,container:c}){const d=(xp(c)?c.members:c.type.members).filter(k=>!Z2(k)),h=Dl(i.parameters),S=he.createTypeParameterDeclaration(void 0,uc(h.name,xn),h.type),E=he.createMappedTypeNode(Ny(i)?he.createModifier(148):void 0,S,void 0,i.questionToken,i.type,void 0),P=he.createIntersectionTypeNode([...uG(c),E,...d.length?[he.createTypeLiteralNode(d)]:Yn]);e.replaceNode(n,c,wYe(c,P))}var Eve,aue,f5e=G({"src/services/codefixes/convertToMappedObjectType.ts"(){xl(),If(),Eve="fixConvertToMappedObjectType",aue=[N.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Hc({errorCodes:aue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=NYe(i,c.start);if(!u)return;const d=zs.ChangeTracker.with(n,S=>RYe(S,i,u)),h=Kr(u.container.name);return[Rd(Eve,d,[N.Convert_0_to_mapped_object_type,h],Eve,[N.Convert_0_to_mapped_object_type,h])]},fixIds:[Eve],getAllCodeActions:e=>Sg(e,aue,(n,i)=>{const c=NYe(i.file,i.start);c&&RYe(n,i.file,c)})})}}),_5e,tke,MYe=G({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){xl(),If(),_5e="removeAccidentalCallParentheses",tke=[N.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Hc({errorCodes:tke,getCodeActions(e){const n=Ua(Lf(e.sourceFile,e.span.start),xd);if(!n)return;const i=zs.ChangeTracker.with(e,c=>{c.deleteRange(e.sourceFile,{pos:n.expression.end,end:n.end})});return[xI(_5e,i,N.Remove_parentheses)]},fixIds:[_5e]})}});function LYe(e,n,i){const c=to(Lf(n,i.start),S=>S.kind===135),u=c&&to(c.parent,ys);if(!u)return;let d=u;if(fE(u.parent)){const S=KL(u.expression,!1);if(xn(S)){const E=bv(u.parent.pos,n);E&&E.kind!==105&&(d=u.parent)}}e.replaceNode(n,d,u.expression)}var xve,sue,d5e=G({"src/services/codefixes/removeUnnecessaryAwait.ts"(){xl(),If(),xve="removeUnnecessaryAwait",sue=[N.await_has_no_effect_on_the_type_of_this_expression.code],Hc({errorCodes:sue,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>LYe(c,n.sourceFile,n.span));if(i.length>0)return[Rd(xve,i,N.Remove_unnecessary_await,xve,N.Remove_all_unnecessary_uses_of_await)]},fixIds:[xve],getAllCodeActions:e=>Sg(e,sue,(n,i)=>LYe(n,i.file,i))})}});function OYe(e,n){return Ua(Lf(e,n.start),n0)}function p5e(e,n,i){if(!n)return;const c=re.checkDefined(n.importClause);e.replaceNode(i.sourceFile,n,he.updateImportDeclaration(n,n.modifiers,he.updateImportClause(c,c.isTypeOnly,c.name,void 0),n.moduleSpecifier,n.attributes)),e.insertNodeAfter(i.sourceFile,n,he.createImportDeclaration(void 0,he.updateImportClause(c,c.isTypeOnly,void 0,c.namedBindings),n.moduleSpecifier,n.attributes))}var nke,cue,rke=G({"src/services/codefixes/splitTypeOnlyImport.ts"(){xl(),If(),nke=[N.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],cue="splitTypeOnlyImport",Hc({errorCodes:nke,fixIds:[cue],getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>p5e(c,OYe(n.sourceFile,n.span),n));if(i.length)return[Rd(cue,i,N.Split_into_two_separate_import_declarations,cue,N.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Sg(e,nke,(n,i)=>{p5e(n,OYe(e.sourceFile,i),e)})})}});function FYe(e,n,i){var c;const d=i.getTypeChecker().getSymbolAtLocation(Lf(e,n));if(d===void 0)return;const h=to((c=d==null?void 0:d.valueDeclaration)==null?void 0:c.parent,Kp);if(h===void 0)return;const S=qm(h,87,e);if(S!==void 0)return{symbol:d,token:S}}function m5e(e,n,i){e.replaceNode(n,i,he.createToken(121))}var Ave,lue,g5e=G({"src/services/codefixes/convertConstToLet.ts"(){xl(),If(),Ave="fixConvertConstToLet",lue=[N.Cannot_assign_to_0_because_it_is_a_constant.code],Hc({errorCodes:lue,getCodeActions:function(n){const{sourceFile:i,span:c,program:u}=n,d=FYe(i,c.start,u);if(d===void 0)return;const h=zs.ChangeTracker.with(n,S=>m5e(S,i,d.token));return[POe(Ave,h,N.Convert_const_to_let,Ave,N.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:n}=e,i=new Map;return Iq(zs.ChangeTracker.with(e,c=>{GR(e,lue,u=>{const d=FYe(u.file,u.start,n);if(d&&y0(i,$d(d.symbol)))return m5e(c,u.file,d.token)})}))},fixIds:[Ave]})}});function WYe(e,n,i){const c=Lf(e,n);return c.kind===27&&c.parent&&(el(c.parent)||Ed(c.parent))?{node:c}:void 0}function h5e(e,n,{node:i}){const c=he.createToken(28);e.replaceNode(n,i,c)}var Cve,Dve,ike,y5e=G({"src/services/codefixes/fixExpectedComma.ts"(){xl(),If(),Cve="fixExpectedComma",Dve=N._0_expected.code,ike=[Dve],Hc({errorCodes:ike,getCodeActions(e){const{sourceFile:n}=e,i=WYe(n,e.span.start,e.errorCode);if(!i)return;const c=zs.ChangeTracker.with(e,u=>h5e(u,n,i));return[Rd(Cve,c,[N.Change_0_to_1,";",","],Cve,[N.Change_0_to_1,";",","])]},fixIds:[Cve],getAllCodeActions:e=>Sg(e,ike,(n,i)=>{const c=WYe(i.file,i.start,i.code);c&&h5e(n,e.sourceFile,c)})})}});function BYe(e,n,i,c,u){const d=Lf(n,i.start);if(!xn(d)||!xd(d.parent)||d.parent.expression!==d||d.parent.arguments.length!==0)return;const h=c.getTypeChecker(),S=h.getSymbolAtLocation(d),E=S==null?void 0:S.valueDeclaration;if(!E||!Os(E)||!sb(E.parent.parent)||u!=null&&u.has(E))return;u==null||u.add(E);const P=zYe(E.parent.parent);if(gt(P)){const k=P[0],F=!fI(k)&&!XN(k)&&XN(he.createUnionTypeNode([k,he.createKeywordTypeNode(116)]).types[0]);F&&e.insertText(n,k.pos,"("),e.insertText(n,k.end,F?") | void":" | void")}else{const k=h.getResolvedSignature(d.parent),F=k==null?void 0:k.parameters[0],$=F&&h.getTypeOfSymbolAtLocation(F,E.parent.parent);Cs(E)?(!$||$.flags&3)&&(e.insertText(n,E.parent.parent.end,")"),e.insertText(n,Ff(n.text,E.parent.parent.pos),"/** @type {Promise} */(")):(!$||$.flags&2)&&e.insertText(n,E.parent.parent.expression.end,"")}}function zYe(e){var n;if(Cs(e)){if(fE(e.parent)){const i=(n=FM(e.parent))==null?void 0:n.typeExpression.type;if(i&&uE(i)&&xn(i.typeName)&&Kr(i.typeName)==="Promise")return i.typeArguments}}else return e.typeArguments}var GYe,oke,Ive,v5e=G({"src/services/codefixes/fixAddVoidToPromise.ts"(){xl(),If(),GYe="addVoidToPromise",oke="addVoidToPromise",Ive=[N.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,N.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Hc({errorCodes:Ive,fixIds:[oke],getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>BYe(i,e.sourceFile,e.span,e.program));if(n.length>0)return[Rd(GYe,n,N.Add_void_to_Promise_resolved_without_a_value,oke,N.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Sg(e,Ive,(n,i)=>BYe(n,i.file,i,e.program,new Set))}})}}),fT={};Oe(fT,{PreserveOptionalFlags:()=>yve,addNewNodeForMemberSymbol:()=>iV,codeFixAll:()=>Sg,createCodeFixAction:()=>Rd,createCodeFixActionMaybeFixAll:()=>POe,createCodeFixActionWithoutFixAll:()=>xI,createCombinedCodeActions:()=>Iq,createFileTextChanges:()=>qqe,createImportAdder:()=>Z3,createImportSpecifierResolver:()=>Qj,createJsonPropertyAssignment:()=>Qle,createMissingMemberNodes:()=>jFe,createSignatureDeclarationFromCallExpression:()=>Yle,createSignatureDeclarationFromSignature:()=>pve,createStubbedBody:()=>jee,eachDiagnostic:()=>GR,findAncestorMatchingSpan:()=>mB,findJsonProperty:()=>Zle,generateAccessorFromProperty:()=>aYe,getAccessorConvertiblePropertyAtPosition:()=>uYe,getAllFixes:()=>Qut,getAllSupers:()=>KFe,getArgumentTypesAndTypeParameters:()=>UFe,getFixes:()=>up,getImportCompletionAction:()=>FKe,getImportKind:()=>y7e,getJSDocTypedefNodes:()=>wKe,getNoopSymbolTrackerWithResolver:()=>dB,getPromoteTypeOnlyCompletionAction:()=>Pft,getSupportedErrorCodes:()=>NOe,importFixName:()=>Wye,importSymbols:()=>oV,moduleSpecifierToValidIdentifier:()=>Fye,moduleSymbolToValidIdentifier:()=>DIe,parameterShouldGetTypeFromJSDoc:()=>fKe,registerCodeFix:()=>Hc,setJsonCompilerOptionValue:()=>hve,setJsonCompilerOptionValues:()=>Vee,tryGetAutoImportableReferenceFromTypeNode:()=>WF,typeToAutoImportableTypeNode:()=>mve});var If=G({"src/services/_namespaces/ts.codefix.ts"(){DDe(),Kqe(),NDe(),eft(),LOe(),aKe(),sKe(),cKe(),VDe(),zOe(),JDe(),XDe(),ZOe(),s7e(),sIe(),uIe(),c7e(),dIe(),gIe(),_7e(),k7e(),N7e(),R7e(),L7e(),O7e(),z7e(),iXe(),V7e(),J7e(),eFe(),tFe(),oFe(),OIe(),uFe(),_Fe(),dFe(),mFe(),Zft(),hFe(),vFe(),TFe(),EFe(),xFe(),RXe(),DFe(),IFe(),kFe(),wFe(),MFe(),OFe(),JIe(),WFe(),zFe(),GFe(),$Fe(),XFe(),YFe(),e5e(),n5e(),i5e(),o5e(),c5e(),u5e(),f5e(),MYe(),d5e(),rke(),g5e(),y5e(),v5e()}});function hp(e){return!!(e.kind&1)}function C_t(e){return!!(e.kind&2)}function kve(e){return!!(e&&e.kind&4)}function BF(e){return!!(e&&e.kind===32)}function $ee(e){return kve(e)||BF(e)||T5e(e)}function D_t(e){return(kve(e)||BF(e))&&!!e.isFromPackageJson}function I_t(e){return!!(e.kind&8)}function k_t(e){return!!(e.kind&16)}function jYe(e){return!!(e&&e.kind&64)}function b5e(e){return!!(e&&e.kind&128)}function VYe(e){return!!(e&&e.kind&256)}function T5e(e){return!!(e&&e.kind&512)}function ake(e,n,i,c,u,d,h,S,E){var P,k,F;const $=H_(),J=h||UN(Jd(c.getCompilerOptions()));let X=!1,ie=0,ae=0,ve=0,we=0;const Fe=E({tryResolve:Pe,skippedAny:()=>X,resolvedAny:()=>ae>0,resolvedBeyondLimit:()=>ae>Yee}),et=we?` (${(ve/we*100).toFixed(1)}% hit rate)`:"";return(P=n.log)==null||P.call(n,`${e}: resolved ${ae} module specifiers, plus ${ie} ambient and ${ve} from cache${et}`),(k=n.log)==null||k.call(n,`${e}: response is ${X?"incomplete":"complete"}`),(F=n.log)==null||F.call(n,`${e}: ${H_()-$}`),Fe;function Pe(dt,Ie){if(Ie){const Ze=i.getModuleSpecifierForBestExportInfo(dt,u,S);return Ze&&ie++,Ze||"failed"}const ct=J||d.allowIncompleteCompletions&&ae{const X=Qo(E.entries,ie=>{var ae;if(!ie.hasAction||!ie.source||!ie.data||uue(ie.data))return ie;if(!gQe(ie.name,k))return;const{origin:ve}=re.checkDefined(Ove(ie.name,ie.data,c,u)),we=F.get(n.path,ie.data.exportMapKey),Fe=we&&J.tryResolve(we,!Kv(S2(ve.moduleSymbol.name)));if(Fe==="skipped")return ie;if(!Fe||Fe==="failed"){(ae=u.log)==null||ae.call(u,`Unexpected failure resolving auto import for '${ie.name}' from '${ie.source}'`);return}const et={...ve,kind:32,moduleSpecifier:Fe.moduleSpecifier};return ie.data=wve(et),ie.source=D5e(et),ie.sourceDisplay=[lS(et.moduleSpecifier)],ie});return J.skippedAny()||(E.isIncomplete=void 0),X});return E.entries=$,E.flags=(E.flags||0)|4,E.optionalReplacementSpan=qYe(P),E}function S5e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function ske(e,n,i,c,u,d){const h=Lf(e,n);if(!d7(h)&&!uC(h))return[];const S=uC(h)?h:h.parent;if(!uC(S))return[];const E=S.parent;if(!F_(E))return[];const P=Gy(e),k=u.includeCompletionsWithSnippetText||void 0,F=dp(S.tags,$=>A2($)&&$.getEnd()<=n);return Qo(E.parameters,$=>{if(!o_($).length){if(xn($.name)){const J={tabstop:1},X=$.name.text;let ie=qee(X,$.initializer,$.dotDotDotToken,P,!1,!1,i,c,u),ae=k?qee(X,$.initializer,$.dotDotDotToken,P,!1,!0,i,c,u,J):void 0;return d&&(ie=ie.slice(1),ae&&(ae=ae.slice(1))),{name:ie,kind:"parameter",sortText:cm.LocationPriority,insertText:k?ae:void 0,isSnippet:k}}else if($.parent.parameters.indexOf($)===F){const J=`param${F}`,X=E5e(J,$.name,$.initializer,$.dotDotDotToken,P,!1,i,c,u),ie=k?E5e(J,$.name,$.initializer,$.dotDotDotToken,P,!0,i,c,u):void 0;let ae=X.join(JE(c)+"* "),ve=ie==null?void 0:ie.join(JE(c)+"* ");return d&&(ae=ae.slice(1),ve&&(ve=ve.slice(1))),{name:ae,kind:"parameter",sortText:cm.LocationPriority,insertText:k?ve:void 0,isSnippet:k}}}})}function E5e(e,n,i,c,u,d,h,S,E){if(!u)return[qee(e,i,c,u,!1,d,h,S,E,{tabstop:1})];return P(e,n,i,c,{tabstop:1});function P(F,$,J,X,ie){if(Ch($)&&!X){const ve={tabstop:ie.tabstop},we=qee(F,J,X,u,!0,d,h,S,E,ve);let Fe=[];for(const et of $.elements){const Pe=k(F,et,ve);if(Pe)Fe.push(...Pe);else{Fe=void 0;break}}if(Fe)return ie.tabstop=ve.tabstop,[we,...Fe]}return[qee(F,J,X,u,!1,d,h,S,E,ie)]}function k(F,$,J){if(!$.propertyName&&xn($.name)||xn($.name)){const X=$.propertyName?tH($.propertyName):$.name.text;if(!X)return;const ie=`${F}.${X}`;return[qee(ie,$.initializer,$.dotDotDotToken,u,!1,d,h,S,E,J)]}else if($.propertyName){const X=tH($.propertyName);return X&&P(`${F}.${X}`,$.name,$.initializer,$.dotDotDotToken,J)}}}function qee(e,n,i,c,u,d,h,S,E,P){if(d&&re.assertIsDefined(P),n&&(e=fue(e,n)),d&&(e=nD(e)),c){let k="*";if(u)re.assert(!i,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(n){const J=h.getTypeAtLocation(n.parent);if(!(J.flags&16385)){const X=n.getSourceFile(),ae=OS(X,E)===0?268435456:0,ve=h.typeToTypeNode(J,Ua(n,F_),ae);if(ve){const we=d?lke({removeComments:!0,module:S.module,target:S.target}):F3({removeComments:!0,module:S.module,target:S.target});_s(ve,1),k=we.printNode(4,ve,X)}}}d&&k==="*"&&(k=`\${${P.tabstop++}:${k}}`)}const F=!u&&i?"...":"",$=d?`\${${P.tabstop++}}`:"";return`@param {${F}${k}} ${e} ${$}`}else{const k=d?`\${${P.tabstop++}}`:"";return`@param ${e} ${k}`}}function fue(e,n){const i=n.getText().trim();return i.includes(` -`)||i.length>80?`[${e}]`:`[${e}=${i}]`}function P_t(e){return{name:Cf(e),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords}}function N_t(e,n){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:e.slice()}}function JYe(e,n,i){return{kind:4,keywordCompletions:Wve(e,n),isNewIdentifierLocation:i}}function $Ye(e){switch(e){case 156:return 8;default:re.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function qYe(e){return(e==null?void 0:e.kind)===80?sT(e):void 0}function KYe(e,n,i,c,u,d,h,S,E,P){const{symbols:k,contextToken:F,completionKind:$,isInSnippetScope:J,isNewIdentifierLocation:X,location:ie,propertyAccessToConvert:ae,keywordFilters:ve,symbolToOriginInfoMap:we,recommendedCompletion:Fe,isJsxInitializer:et,isTypeOnlyLocation:Pe,isJsxIdentifierExpected:dt,isRightOfOpenTag:Ie,isRightOfDotOrQuestionDot:ct,importStatementCompletion:Ct,insideJsDocTagTypeExpression:Lt,symbolToSortTextMap:Ze,hasUnresolvedAutoImports:Ke}=d;let st=d.literals;const It=i.getTypeChecker();if($9(e.scriptKind)===1){const Rn=w_t(ie,e);if(Rn)return Rn}const Yt=Ua(F,BT);if(Yt&&(Hh(F)||Lx(F,Yt.expression))){const Rn=ZZ(It,Yt.parent.clauses);st=st.filter(cn=>!Rn.hasValue(cn)),k.forEach((cn,qt)=>{if(cn.valueDeclaration&&pI(cn.valueDeclaration)){const Kt=It.getConstantValue(cn.valueDeclaration);Kt!==void 0&&Rn.hasValue(Kt)&&(we[qt]={kind:256})}})}const Et=g2(),at=XYe(e,c);if(at&&!X&&(!k||k.length===0)&&ve===0)return;const Qt=Rve(k,Et,void 0,F,ie,E,e,n,i,iu(c),u,$,h,c,S,Pe,ae,dt,et,Ct,Fe,we,Ze,dt,Ie,P);if(ve!==0)for(const Rn of Wve(ve,!Lt&&Gy(e)))(Pe&&Z$(D8(Rn.name))||!Pe&&q_t(Rn.name)||!Qt.has(Rn.name))&&(Qt.add(Rn.name),d0(Et,Rn,Pve,!0));for(const Rn of fke(F,E))Qt.has(Rn.name)||(Qt.add(Rn.name),d0(Et,Rn,Pve,!0));for(const Rn of st){const cn=C5e(e,h,Rn);Qt.add(cn.name),d0(Et,cn,Pve,!0)}at||R_t(e,ie.pos,Qt,iu(c),Et);let nn;if(h.includeCompletionsWithInsertText&&F&&!Ie&&!ct&&(nn=Ua(F,Fv))){const Rn=x5e(nn,e,h,c,n,i,S);Rn&&Et.push(Rn.entry)}return{flags:d.flags,isGlobalCompletion:J,isIncomplete:h.allowIncompleteCompletions&&Ke?!0:void 0,isMemberCompletion:cke($),isNewIdentifierLocation:X,optionalReplacementSpan:qYe(ie),entries:Et}}function XYe(e,n){return!Gy(e)||!!tW(e,n)}function x5e(e,n,i,c,u,d,h){const S=e.clauses,E=d.getTypeChecker(),P=E.getTypeAtLocation(e.parent.expression);if(P&&P.isUnion()&&jr(P.types,k=>k.isLiteral())){const k=ZZ(E,S),F=iu(c),$=OS(n,i),J=fT.createImportAdder(n,d,i,u),X=[];for(const Pe of P.types)if(Pe.flags&1024){re.assert(Pe.symbol,"An enum member type should have a symbol"),re.assert(Pe.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const dt=Pe.symbol.valueDeclaration&&E.getConstantValue(Pe.symbol.valueDeclaration);if(dt!==void 0){if(k.hasValue(dt))continue;k.addValue(dt)}const Ie=fT.typeToAutoImportableTypeNode(E,J,Pe,e,F);if(!Ie)return;const ct=Nve(Ie,F,$);if(!ct)return;X.push(ct)}else if(!k.hasValue(Pe.value))switch(typeof Pe.value){case"object":X.push(Pe.value.negative?he.createPrefixUnaryExpression(41,he.createBigIntLiteral({negative:!1,base10Value:Pe.value.base10Value})):he.createBigIntLiteral(Pe.value));break;case"number":X.push(Pe.value<0?he.createPrefixUnaryExpression(41,he.createNumericLiteral(-Pe.value)):he.createNumericLiteral(Pe.value));break;case"string":X.push(he.createStringLiteral(Pe.value,$===0));break}if(X.length===0)return;const ie=Vn(X,Pe=>he.createCaseClause(Pe,[])),ae=R6(u,h==null?void 0:h.options),ve=lke({removeComments:!0,module:c.module,target:c.target,newLine:Wj(ae)}),we=h?Pe=>ve.printAndFormatNode(4,Pe,n,h):Pe=>ve.printNode(4,Pe,n),Fe=Vn(ie,(Pe,dt)=>i.includeCompletionsWithSnippetText?`${we(Pe)}$${dt+1}`:`${we(Pe)}`).join(ae);return{entry:{name:`${ve.printNode(4,ie[0],n)} ...`,kind:"",sortText:cm.GlobalsOrKeywords,insertText:Fe,hasAction:J.hasFixes()||void 0,source:"SwitchCases/",isSnippet:i.includeCompletionsWithSnippetText?!0:void 0},importAdder:J}}}function Nve(e,n,i){switch(e.kind){case 183:const c=e.typeName;return Kee(c,n,i);case 199:const u=Nve(e.objectType,n,i),d=Nve(e.indexType,n,i);return u&&d&&he.createElementAccessExpression(u,d);case 201:const h=e.literal;switch(h.kind){case 11:return he.createStringLiteral(h.text,i===0);case 9:return he.createNumericLiteral(h.text,h.numericLiteralFlags)}return;case 196:const S=Nve(e.type,n,i);return S&&(xn(S)?S:he.createParenthesizedExpression(S));case 186:return Kee(e.exprName,n,i);case 205:re.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Kee(e,n,i){if(xn(e))return e;const c=Ic(e.right.escapedText);return doe(c,n)?he.createPropertyAccessExpression(Kee(e.left,n,i),c):he.createElementAccessExpression(Kee(e.left,n,i),he.createStringLiteral(c,i===0))}function cke(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function w_t(e,n){const i=Ua(e,c=>{switch(c.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(i){const c=!!qm(i,32,n),h=i.parent.openingElement.tagName.getText(n)+(c?"":">"),S=sT(i.tagName),E={name:h,kind:"class",kindModifiers:void 0,sortText:cm.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:S,entries:[E]}}}function R_t(e,n,i,c,u){xee(e).forEach((d,h)=>{if(d===n)return;const S=Ic(h);!i.has(S)&&H2(S,c)&&(i.add(S),d0(u,{name:S,kind:"warning",kindModifiers:"",sortText:cm.JavascriptIdentifiers,isFromUncheckedFile:!0},Pve))})}function A5e(e,n,i){return typeof i=="object"?tD(i)+"n":As(i)?VZ(e,n,i):JSON.stringify(i)}function C5e(e,n,i){return{name:A5e(e,n,i),kind:"string",kindModifiers:"",sortText:cm.LocationPriority}}function M_t(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt,Ie){var ct,Ct;let Lt,Ze,Ke=wZ(i),st,It,Yt=D5e(F),Et,at,Qt;const nn=E.getTypeChecker(),Rn=F&&k_t(F),cn=F&&C_t(F)||k;if(F&&hp(F))Lt=k?`this${Rn?"?.":""}[${eQe(h,we,P)}]`:`this${Rn?"?.":"."}${P}`;else if((cn||Rn)&&J){Lt=cn?k?`[${eQe(h,we,P)}]`:`[${P}]`:P,(Rn||J.questionDotToken)&&(Lt=`?.${Lt}`);const Kt=qm(J,25,h)||qm(J,29,h);if(!Kt)return;const wr=qf(P,J.name.text)?J.name.end:Kt.end;Ke=Yy(Kt.getStart(h),wr)}if(X&&(Lt===void 0&&(Lt=P),Lt=`{${Lt}}`,typeof X!="boolean"&&(Ke=sT(X,h))),F&&I_t(F)&&J){Lt===void 0&&(Lt=P);const Kt=bv(J.pos,h);let wr="";Kt&&pce(Kt.end,Kt.parent,h)&&(wr=";"),wr+=`(await ${J.expression.getText()})`,Lt=k?`${wr}${Lt}`:`${wr}${Rn?"?.":"."}${Lt}`;const jt=to(J.parent,ys)?J.parent:J.expression;Ke=Yy(jt.getStart(h),J.end)}if(BF(F)&&(Et=[lS(F.moduleSpecifier)],ie&&({insertText:Lt,replacementSpan:Ke}=B_t(P,ie,F,ae,h,ve,we),It=we.includeCompletionsWithSnippetText?!0:void 0)),(F==null?void 0:F.kind)===64&&(at=!0),Fe===0&&c&&((ct=bv(c.pos,h,c))==null?void 0:ct.kind)!==28&&(tm(c.parent.parent)||lE(c.parent.parent)||Xb(c.parent.parent)||xA(c.parent)||((Ct=Ua(c.parent,tl))==null?void 0:Ct.getLastToken(h))===c||XE(c.parent)&&xm(h,c.getEnd()).line!==xm(h,d).line)&&(Yt="ObjectLiteralMemberWithComma/",at=!0),we.includeCompletionsWithClassMemberSnippets&&we.includeCompletionsWithInsertText&&Fe===3&&L_t(e,u,h)){let Kt;const wr=YYe(S,E,ve,we,P,e,u,d,c,et);if(wr)({insertText:Lt,filterText:Ze,isSnippet:It,importAdder:Kt}=wr),Kt!=null&&Kt.hasFixes()&&(at=!0,Yt="ClassMemberSnippet/");else return}if(F&&b5e(F)&&({insertText:Lt,isSnippet:It,labelDetails:Qt}=F,we.useLabelDetailsInCompletionEntries||(P=P+Qt.detail,Qt=void 0),Yt="ObjectLiteralMethodSnippet/",n=cm.SortBelow(n)),Pe&&!dt&&we.includeCompletionsWithSnippetText&&we.jsxAttributeCompletionStyle&&we.jsxAttributeCompletionStyle!=="none"&&!(tx(u.parent)&&u.parent.initializer)){let Kt=we.jsxAttributeCompletionStyle==="braces";const wr=nn.getTypeOfSymbolAtLocation(e,u);we.jsxAttributeCompletionStyle==="auto"&&!(wr.flags&528)&&!(wr.flags&1048576&&lr(wr.types,Wr=>!!(Wr.flags&528)))&&(wr.flags&402653316||wr.flags&1048576&&jr(wr.types,Wr=>!!(Wr.flags&402686084||Hge(Wr)))?(Lt=`${nD(P)}=${VZ(h,we,"$1")}`,It=!0):Kt=!0),Kt&&(Lt=`${nD(P)}={$1}`,It=!0)}if(Lt!==void 0&&!we.includeCompletionsWithInsertText)return;(kve(F)||BF(F))&&(st=wve(F),at=!ie);const qt=Ua(u,LH);if((qt==null?void 0:qt.kind)===275){const Kt=D8(P);qt&&Kt&&(Kt===135||e6(Kt))&&(Lt=`${P} as ${P}_`)}return{name:P,kind:W6.getSymbolKind(nn,e,u),kindModifiers:W6.getSymbolModifiers(nn,e),sortText:n,source:Yt,hasAction:at?!0:void 0,isRecommended:tQe(e,$,nn)||void 0,insertText:Lt,filterText:Ze,replacementSpan:Ke,sourceDisplay:Et,labelDetails:Qt,isSnippet:It,isPackageJsonImport:D_t(F)||void 0,isImportStatementCompletion:!!ie||void 0,data:st,...Ie?{symbol:e}:void 0}}function L_t(e,n,i){return Cs(n)?!1:!!(e.flags&106500)&&(Fl(n)||n.parent&&n.parent.parent&&J_(n.parent)&&n===n.parent.name&&n.parent.getLastToken(i)===n.parent.name&&Fl(n.parent.parent)||n.parent&&AW(n)&&Fl(n.parent))}function YYe(e,n,i,c,u,d,h,S,E,P){const k=Ua(h,Fl);if(!k)return;let F,$=u;const J=u,X=n.getTypeChecker(),ie=h.getSourceFile(),ae=lke({removeComments:!0,module:i.module,target:i.target,omitTrailingSemicolon:!1,newLine:Wj(R6(e,P==null?void 0:P.options))}),ve=fT.createImportAdder(ie,n,c,e);let we;if(c.includeCompletionsWithSnippetText){F=!0;const Ct=he.createEmptyStatement();we=he.createBlock([Ct],!0),rpe(Ct,{kind:0,order:0})}else we=he.createBlock([],!0);let Fe=0;const{modifiers:et,range:Pe,decorators:dt}=QYe(E,ie,S),Ie=et&64&&k.modifierFlagsCache&64;let ct=[];if(fT.addNewNodeForMemberSymbol(d,k,ie,{program:n,host:e},c,ve,Ct=>{let Lt=0;Ie&&(Lt|=64),J_(Ct)&&X.getMemberOverrideModifierStatus(k,Ct,d)===1&&(Lt|=16),ct.length||(Fe=Ct.modifierFlagsCache|Lt),Ct=he.replaceModifiers(Ct,Fe),ct.push(Ct)},we,fT.PreserveOptionalFlags.Property,!!Ie),ct.length){const Ct=d.flags&8192;let Lt=Fe|16|1;Ct?Lt|=1024:Lt|=136;const Ze=et≪if(et&~Lt)return;if(Fe&4&&Ze&1&&(Fe&=-5),Ze!==0&&!(Ze&1)&&(Fe&=-2),Fe|=Ze,ct=ct.map(st=>he.replaceModifiers(st,Fe)),dt!=null&&dt.length){const st=ct[ct.length-1];S6(st)&&(ct[ct.length-1]=he.replaceDecoratorsAndModifiers(st,dt.concat(Xv(st)||[])))}const Ke=131073;P?$=ae.printAndFormatSnippetList(Ke,he.createNodeArray(ct),ie,P):$=ae.printSnippetList(Ke,he.createNodeArray(ct),ie)}return{insertText:$,filterText:J,isSnippet:F,importAdder:ve,eraseRange:Pe}}function QYe(e,n,i){if(!e||xm(n,i).line>xm(n,e.getEnd()).line)return{modifiers:0};let c=0,u,d;const h={pos:i,end:i};if(nu(e.parent)&&e.parent.modifiers&&(c|=aI(e.parent.modifiers)&98303,u=e.parent.modifiers.filter(Jh)||[],h.pos=Math.min(h.pos,e.parent.modifiers.pos)),d=O_t(e)){const S=F7(d);c&S||(c|=S,h.pos=Math.min(h.pos,e.pos))}return{modifiers:c,decorators:u,range:h.pos!==i?h:void 0}}function O_t(e){if(Mf(e))return e.kind;if(xn(e)){const n=uP(e);if(n&&Om(n))return n}}function F_t(e,n,i,c,u,d,h,S){const E=h.includeCompletionsWithSnippetText||void 0;let P=n;const k=i.getSourceFile(),F=W_t(e,i,k,c,u,h);if(!F)return;const $=lke({removeComments:!0,module:d.module,target:d.target,omitTrailingSemicolon:!1,newLine:Wj(R6(u,S==null?void 0:S.options))});S?P=$.printAndFormatSnippetList(80,he.createNodeArray([F],!0),k,S):P=$.printSnippetList(80,he.createNodeArray([F],!0),k);const J=F3({removeComments:!0,module:d.module,target:d.target,omitTrailingSemicolon:!0}),X=he.createMethodSignature(void 0,"",F.questionToken,F.typeParameters,F.parameters,F.type),ie={detail:J.printNode(4,X,k)};return{isSnippet:E,insertText:P,labelDetails:ie}}function W_t(e,n,i,c,u,d){const h=e.getDeclarations();if(!(h&&h.length))return;const S=c.getTypeChecker(),E=h[0],P=ih(i_(E),!1),k=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,n)),$=33554432|(OS(i,d)===0?268435456:0);switch(E.kind){case 171:case 172:case 173:case 174:{let J=k.flags&1048576&&k.types.length<10?S.getUnionType(k.types,2):k;if(J.flags&1048576){const we=gi(J.types,Fe=>S.getSignaturesOfType(Fe,0).length>0);if(we.length===1)J=we[0];else return}if(S.getSignaturesOfType(J,0).length!==1)return;const ie=S.typeToTypeNode(J,n,$,fT.getNoopSymbolTrackerWithResolver({program:c,host:u}));if(!ie||!e0(ie))return;let ae;if(d.includeCompletionsWithSnippetText){const we=he.createEmptyStatement();ae=he.createBlock([we],!0),rpe(we,{kind:0,order:0})}else ae=he.createBlock([],!0);const ve=ie.parameters.map(we=>he.createParameterDeclaration(void 0,we.dotDotDotToken,we.name,void 0,void 0,we.initializer));return he.createMethodDeclaration(void 0,void 0,P,void 0,void 0,ve,void 0,ae)}default:return}}function lke(e){let n;const i=zs.createWriter(JE(e)),c=F3(e,i),u={...i,write:$=>d($,()=>i.write($)),nonEscapingWrite:i.write,writeLiteral:$=>d($,()=>i.writeLiteral($)),writeStringLiteral:$=>d($,()=>i.writeStringLiteral($)),writeSymbol:($,J)=>d($,()=>i.writeSymbol($,J)),writeParameter:$=>d($,()=>i.writeParameter($)),writeComment:$=>d($,()=>i.writeComment($)),writeProperty:$=>d($,()=>i.writeProperty($))};return{printSnippetList:h,printAndFormatSnippetList:E,printNode:P,printAndFormatNode:F};function d($,J){const X=nD($);if(X!==$){const ie=i.getTextPos();J();const ae=i.getTextPos();n=ur(n||(n=[]),{newText:X,span:{start:ie,length:ae-ie}})}else J()}function h($,J,X){const ie=S($,J,X);return n?zs.applyChanges(ie,n):ie}function S($,J,X){return n=void 0,u.clear(),c.writeList($,J,X,u),u.getText()}function E($,J,X,ie){const ae={text:S($,J,X),getLineAndCharacterOfPosition(et){return xm(this,et)}},ve=uq(ie,X),we=ea(J,et=>{const Pe=zs.assignPositionsToNode(et);return V0.formatNodeGivenIndentation(Pe,ae,X.languageVariant,0,0,{...ie,options:ve})}),Fe=n?nh(Hi(we,n),(et,Pe)=>pU(et.span,Pe.span)):we;return zs.applyChanges(ae.text,Fe)}function P($,J,X){const ie=k($,J,X);return n?zs.applyChanges(ie,n):ie}function k($,J,X){return n=void 0,u.clear(),c.writeNode($,J,X,u),u.getText()}function F($,J,X,ie){const ae={text:k($,J,X),getLineAndCharacterOfPosition(Pe){return xm(this,Pe)}},ve=uq(ie,X),we=zs.assignPositionsToNode(J),Fe=V0.formatNodeGivenIndentation(we,ae,X.languageVariant,0,0,{...ie,options:ve}),et=n?nh(Hi(Fe,n),(Pe,dt)=>pU(Pe.span,dt.span)):Fe;return zs.applyChanges(ae.text,et)}}function wve(e){const n=e.fileName?void 0:S2(e.moduleSymbol.name),i=e.isFromPackageJson?!0:void 0;return BF(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:n,fileName:e.fileName,isPackageJsonImport:i}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:S2(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function ZYe(e,n,i){const c=e.exportName==="default",u=!!e.isPackageJsonImport;return uue(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:c,isFromPackageJson:u}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:c,isFromPackageJson:u}}function B_t(e,n,i,c,u,d,h){const S=n.replacementSpan,E=nD(VZ(u,h,i.moduleSpecifier)),P=i.isDefaultExport?1:i.exportName==="export="?2:0,k=h.includeCompletionsWithSnippetText?"$1":"",F=fT.getImportKind(u,P,d,!0),$=n.couldBeTypeOnlyImportSpecifier,J=n.isTopLevelTypeOnly?` ${Cf(156)} `:" ",X=$?`${Cf(156)} `:"",ie=c?";":"";switch(F){case 3:return{replacementSpan:S,insertText:`import${J}${nD(e)}${k} = require(${E})${ie}`};case 1:return{replacementSpan:S,insertText:`import${J}${nD(e)}${k} from ${E}${ie}`};case 2:return{replacementSpan:S,insertText:`import${J}* as ${nD(e)} from ${E}${ie}`};case 0:return{replacementSpan:S,insertText:`import${J}{ ${X}${nD(e)}${k} } from ${E}${ie}`}}}function eQe(e,n,i){return/^\d+$/.test(i)?i:VZ(e,n,i)}function tQe(e,n,i){return e===n||!!(e.flags&1048576)&&i.getExportSymbolOfSymbol(e)===n}function D5e(e){if(kve(e))return S2(e.moduleSymbol.name);if(BF(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function Rve(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt,Ie,ct,Ct=!1){const Lt=H_(),Ze=L5e(c,u),Ke=$Z(h),st=E.getTypeChecker(),It=new Map;for(let Et=0;Etjt.getSourceFile()===u.getSourceFile()));It.set(Rn,Wr),d0(n,wr,Pve,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(H_()-Lt)),{has:Et=>It.has(Et),add:Et=>It.set(Et,!0)};function Yt(Et,at){var Qt;let nn=Et.flags;if(!Nu(u)){if(my(u.parent))return!0;if(to(Ze,Kc)&&Et.valueDeclaration===Ze)return!1;const Rn=Et.valueDeclaration??((Qt=Et.declarations)==null?void 0:Qt[0]);if(Ze&&Rn&&(Np(Ze)&&Np(Rn)||Os(Ze)&&Os(Rn))){const qt=Rn.pos,Kt=Os(Ze)?Ze.parent.parameters:KN(Ze.parent)?void 0:Ze.parent.typeParameters;if(qt>=Ze.pos&&Kt&&qtA5e(i,h,Fe)===u.name);return we!==void 0?{type:"literal",literal:we}:Yr(P,(Fe,et)=>{const Pe=J[et],dt=Fve(Fe,iu(S),Pe,$,E.isJsxIdentifierExpected);return dt&&dt.name===u.name&&(u.source==="ClassMemberSnippet/"&&Fe.flags&106500||u.source==="ObjectLiteralMethodSnippet/"&&Fe.flags&8196||D5e(Pe)===u.source||u.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Fe,location:F,origin:Pe,contextToken:X,previousToken:ie,isJsxInitializer:ae,isTypeOnlyLocation:ve}:void 0})||{type:"none"}}function rQe(e,n,i,c,u,d,h,S,E){const P=e.getTypeChecker(),k=e.getCompilerOptions(),{name:F,source:$,data:J}=u,{previousToken:X,contextToken:ie}=uke(c,i);if(V3(i,c,X))return Zee.getStringLiteralCompletionDetails(F,i,c,X,P,k,d,E,S);const ae=nQe(e,n,i,c,u,d,S);switch(ae.type){case"request":{const{request:ve}=ae;switch(ve.kind){case 1:return nO.getJSDocTagNameCompletionDetails(F);case 2:return nO.getJSDocTagCompletionDetails(F);case 3:return nO.getJSDocParameterNameCompletionDetails(F);case 4:return gt(ve.keywordCompletions,we=>we.name===F)?k5e(F,"keyword",5):void 0;default:return re.assertNever(ve)}}case"symbol":{const{symbol:ve,location:we,contextToken:Fe,origin:et,previousToken:Pe}=ae,{codeActions:dt,sourceDisplay:Ie}=Lve(F,we,Fe,et,ve,e,d,k,i,c,Pe,h,S,J,$,E),ct=T5e(et)?et.symbolName:ve.name;return Mve(ve,ct,P,i,we,E,dt,Ie)}case"literal":{const{literal:ve}=ae;return k5e(A5e(i,S,ve),"string",typeof ve=="string"?8:7)}case"cases":{const ve=x5e(ie.parent,i,S,e.getCompilerOptions(),d,e,void 0);if(ve!=null&&ve.importAdder.hasFixes()){const{entry:we,importAdder:Fe}=ve,et=zs.ChangeTracker.with({host:d,formatContext:h,preferences:S},Fe.writeFixes);return{name:we.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:et,description:$3([N.Includes_imports_of_types_referenced_by_0,F])}]}}return{name:F,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Jve().some(ve=>ve.name===F)?k5e(F,"keyword",5):void 0;default:re.assertNever(ae)}}function k5e(e,n,i){return Xee(e,"",n,[yE(e,i)])}function Mve(e,n,i,c,u,d,h,S){const{displayParts:E,documentation:P,symbolKind:k,tags:F}=i.runWithCancellationToken(d,$=>W6.getSymbolDisplayPartsDocumentationAndSymbolKind($,e,c,u,u,7));return Xee(n,W6.getSymbolModifiers(i,e),k,E,P,F,h,S)}function Xee(e,n,i,c,u,d,h,S){return{name:e,kindModifiers:n,kind:i,displayParts:c,documentation:u,tags:d,codeActions:h,source:S,sourceDisplay:S}}function Lve(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie){if(J!=null&&J.moduleSpecifier&&k&&_Qe(i||k,E).replacementSpan)return{codeActions:void 0,sourceDisplay:[lS(J.moduleSpecifier)]};if(X==="ClassMemberSnippet/"){const{importAdder:dt,eraseRange:Ie}=YYe(h,d,S,$,e,u,n,P,i,F);if(dt||Ie)return{sourceDisplay:void 0,codeActions:[{changes:zs.ChangeTracker.with({host:h,formatContext:F,preferences:$},Ct=>{dt&&dt.writeFixes(Ct),Ie&&Ct.deleteRange(E,Ie)}),description:$3([N.Includes_imports_of_types_referenced_by_0,e])}]}}if(jYe(c)){const dt=fT.getPromoteTypeOnlyCompletionAction(E,c.declaration.name,d,h,F,$);return re.assertIsDefined(dt,"Expected to have a code action for promoting type-only alias"),{codeActions:[dt],sourceDisplay:void 0}}if(X==="ObjectLiteralMemberWithComma/"&&i){const dt=zs.ChangeTracker.with({host:h,formatContext:F,preferences:$},Ie=>Ie.insertText(E,i.end,","));if(dt)return{sourceDisplay:void 0,codeActions:[{changes:dt,description:$3([N.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!c||!(kve(c)||BF(c)))return{codeActions:void 0,sourceDisplay:void 0};const ae=c.isFromPackageJson?h.getPackageJsonAutoImportProvider().getTypeChecker():d.getTypeChecker(),{moduleSymbol:ve}=c,we=ae.getMergedSymbol(dg(u.exportSymbol||u,ae)),Fe=(i==null?void 0:i.kind)===30&&m1(i.parent),{moduleSpecifier:et,codeAction:Pe}=fT.getImportCompletionAction(we,ve,J==null?void 0:J.exportMapKey,E,e,Fe,h,d,F,k&&xn(k)?k.getStart(E):P,$,ie);return re.assert(!(J!=null&&J.moduleSpecifier)||et===J.moduleSpecifier),{sourceDisplay:[lS(et)],codeActions:[Pe]}}function G_t(e,n,i,c,u,d,h){const S=nQe(e,n,i,c,u,d,h);return S.type==="symbol"?S.symbol:void 0}function j_t(e,n,i){return Yr(n&&(n.isUnion()?n.types:[n]),c=>{const u=c&&c.symbol;return u&&u.flags&424&&!ISe(u)?P5e(u,e,i):void 0})}function V_t(e,n,i,c){const{parent:u}=e;switch(e.kind){case 80:return aq(e,c);case 64:switch(u.kind){case 260:return c.getContextualType(u.initializer);case 226:return c.getTypeAtLocation(u.left);case 291:return c.getContextualTypeForJsxAttribute(u);default:return}case 105:return c.getContextualType(u);case 84:const d=to(u,BT);return d?_ce(d,c):void 0;case 19:return CP(u)&&!zx(u.parent)&&!Ek(u.parent)?c.getContextualTypeForJsxAttribute(u.parent):void 0;default:const h=gue.getArgumentInfoForCompletions(e,n,i);return h?c.getContextualTypeForArgumentAtIndex(h.invocation,h.argumentIndex+(e.kind===28?1:0)):sq(e.kind)&&Ds(u)&&sq(u.operatorToken.kind)?c.getTypeAtLocation(u.left):c.getContextualType(e,4)||c.getContextualType(e)}}function P5e(e,n,i){const c=i.getAccessibleSymbolChain(e,n,67108863,!1);return c?Dl(c):e.parent&&(N5e(e.parent)?e:P5e(e.parent,n,i))}function N5e(e){var n;return!!((n=e.declarations)!=null&&n.some(i=>i.kind===312))}function iQe(e,n,i,c,u,d,h,S,E,P){const k=e.getTypeChecker(),F=XYe(i,c);let $=H_(),J=Lf(i,u);n("getCompletionData: Get current token: "+(H_()-$)),$=H_();const X=tw(i,u,J);n("getCompletionData: Is inside comment: "+(H_()-$));let ie=!1,ae=!1;if(X){if(DAe(i,u)){if(i.text.charCodeAt(u-1)===64)return{kind:1};{const mn=Ux(u,i);if(!/[^*|\s(/)]/.test(i.text.substring(mn,u)))return{kind:2}}}const ge=U_t(J,u);if(ge){if(ge.tagName.pos<=u&&u<=ge.tagName.end)return{kind:1};const mn=io(ge);if(mn&&(J=Lf(i,u),(!J||!ON(J)&&(J.parent.kind!==355||J.parent.name!==J))&&(ie=Mt(mn))),!ie&&A2(ge)&&(ny(ge.name)||ge.name.pos<=u&&u<=ge.name.end))return{kind:3,tag:ge}}if(!ie){n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}$=H_();const ve=!ie&&Gy(i),we=uke(u,i),Fe=we.previousToken;let et=we.contextToken;n("getCompletionData: Get previous token: "+(H_()-$));let Pe=J,dt,Ie=!1,ct=!1,Ct=!1,Lt=!1,Ze=!1,Ke=!1,st,It=cS(i,u),Yt=0,Et=!1,at=0;if(et){const ge=_Qe(et,i);if(ge.keywordCompletion){if(ge.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[P_t(ge.keywordCompletion)],isNewIdentifierLocation:ge.isNewIdentifierLocation};Yt=$Ye(ge.keywordCompletion)}if(ge.replacementSpan&&d.includeCompletionsForImportStatements&&d.includeCompletionsWithInsertText&&(at|=2,st=ge,Et=ge.isNewIdentifierLocation),!ge.replacementSpan&&yf(et))return n("Returning an empty list because completion was requested in an invalid position."),Yt?JYe(Yt,ve,Eu()):void 0;let mn=et.parent;if(et.kind===25||et.kind===29)switch(Ie=et.kind===25,ct=et.kind===29,mn.kind){case 211:dt=mn,Pe=dt.expression;const Jn=i3(dt);if(ny(Jn)||(xd(Pe)||F_(Pe))&&Pe.end===et.pos&&Pe.getChildCount(i)&&yl(Pe.getChildren(i)).kind!==22)return;break;case 166:Pe=mn.left;break;case 267:Pe=mn.name;break;case 205:Pe=mn;break;case 236:Pe=mn.getFirstToken(i),re.assert(Pe.kind===102||Pe.kind===105);break;default:return}else if(!st){if(mn&&mn.kind===211&&(et=mn,mn=mn.parent),J.parent===It)switch(J.kind){case 32:(J.parent.kind===284||J.parent.kind===286)&&(It=J);break;case 44:J.parent.kind===285&&(It=J);break}switch(mn.kind){case 287:et.kind===44&&(Lt=!0,It=et);break;case 226:if(!uQe(mn))break;case 285:case 284:case 286:Ke=!0,et.kind===30&&(Ct=!0,It=et);break;case 294:case 293:(Fe.kind===20||Fe.kind===80&&Fe.parent.kind===291)&&(Ke=!0);break;case 291:if(mn.initializer===Fe&&Fe.endv4(ge?S.getPackageJsonAutoImportProvider():e,S));if(Ie||ct)no();else if(Ct)qt=k.getJsxIntrinsicTagNamesAt(It),re.assertEachIsDefined(qt,"getJsxIntrinsicTagNames() should all be defined"),ki(),nn=1,Yt=0;else if(Lt){const ge=et.parent.parent.openingElement.tagName,mn=k.getSymbolAtLocation(ge);mn&&(qt=[mn]),nn=1,Yt=0}else if(!ki())return Yt?JYe(Yt,ve,Et):void 0;n("getCompletionData: Semantic work: "+(H_()-Qt));const Tr=Fe&&V_t(Fe,u,i,k),Pn=!to(Fe,Cm)&&!Ke?Qo(Tr&&(Tr.isUnion()?Tr.types:[Tr]),ge=>ge.isLiteral()&&!(ge.flags&1024)?ge.value:void 0):[],Fr=Fe&&Tr&&j_t(Fe,Tr,k);return{kind:0,symbols:qt,completionKind:nn,isInSnippetScope:ae,propertyAccessToConvert:dt,isNewIdentifierLocation:Et,location:It,keywordFilters:Yt,literals:Pn,symbolToOriginInfoMap:wr,recommendedCompletion:Fr,previousToken:Fe,contextToken:et,isJsxInitializer:Ze,insideJsDocTagTypeExpression:ie,symbolToSortTextMap:Wr,isTypeOnlyLocation:En,isJsxIdentifierExpected:Ke,isRightOfOpenTag:Ct,isRightOfDotOrQuestionDot:Ie||ct,importStatementCompletion:st,hasUnresolvedAutoImports:cn,flags:at};function Ki(ge){switch(ge.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ge.constraint;default:return!1}}function io(ge){if(Ki(ge)){const mn=CA(ge)?ge.constraint:ge.typeExpression;return mn&&mn.kind===316?mn:void 0}if(xW(ge)||jJ(ge))return ge.class}function no(){nn=2;const ge=MN(Pe),mn=ge&&!Pe.isTypeOf||BE(Pe.parent)||kZ(et,i,k),Jn=Gse(Pe);if(kT(Pe)||ge||Ac(Pe)){const Nn=py(Pe.parent);Nn&&(Et=!0);let Lr=k.getSymbolAtLocation(Pe);if(Lr&&(Lr=dg(Lr,k),Lr.flags&1920)){const qi=k.getExportsOfModule(Lr);re.assertEachIsDefined(qi,"getExportsOfModule() should all be defined");const vo=Cc=>k.isValidPropertyAccess(ge?Pe:Pe.parent,Cc.name),Ro=Cc=>hke(Cc,k),Ts=Nn?Cc=>{var Pc;return!!(Cc.flags&1920)&&!((Pc=Cc.declarations)!=null&&Pc.every(hc=>hc.parent===Pe.parent))}:Jn?Cc=>Ro(Cc)||vo(Cc):mn||ie?Ro:vo;for(const Cc of qi)Ts(Cc)&&qt.push(Cc);if(!mn&&!ie&&Lr.declarations&&Lr.declarations.some(Cc=>Cc.kind!==312&&Cc.kind!==267&&Cc.kind!==266)){let Cc=k.getTypeOfSymbolAtLocation(Lr,Pe).getNonOptionalType(),Pc=!1;if(Cc.isNullableType()){const hc=Ie&&!ct&&d.includeAutomaticOptionalChainCompletions!==!1;(hc||ct)&&(Cc=Cc.getNonNullableType(),hc&&(Pc=!0))}os(Cc,!!(Pe.flags&65536),Pc)}return}}if(!mn||yR(Pe)){k.tryGetThisTypeAt(Pe,!1);let Nn=k.getTypeAtLocation(Pe).getNonOptionalType();if(mn)os(Nn.getNonNullableType(),!1,!1);else{let Lr=!1;if(Nn.isNullableType()){const qi=Ie&&!ct&&d.includeAutomaticOptionalChainCompletions!==!1;(qi||ct)&&(Nn=Nn.getNonNullableType(),qi&&(Lr=!0))}os(Nn,!!(Pe.flags&65536),Lr)}}}function os(ge,mn,Jn){Et=!!ge.getStringIndexType(),ct&>(ge.getCallSignatures())&&(Et=!0);const Nn=Pe.kind===205?Pe:Pe.parent;if(F)for(const Lr of ge.getApparentProperties())k.isValidPropertyAccessForCompletions(Nn,ge,Lr)&&Mo(Lr,!1,Jn);else qt.push(...gi(zve(ge,k),Lr=>k.isValidPropertyAccessForCompletions(Nn,ge,Lr)));if(mn&&d.includeCompletionsWithInsertText){const Lr=k.getPromisedTypeOfPromise(ge);if(Lr)for(const qi of Lr.getApparentProperties())k.isValidPropertyAccessForCompletions(Nn,Lr,qi)&&Mo(qi,!0,Jn)}}function Mo(ge,mn,Jn){var Nn;const Lr=Yr(ge.declarations,Ts=>to(i_(Ts),Qf));if(Lr){const Ts=$i(Lr.expression),Cc=Ts&&k.getSymbolAtLocation(Ts),Pc=Cc&&P5e(Cc,et,k),hc=Pc&&$d(Pc);if(hc&&y0(jt,hc)){const bl=qt.length;qt.push(Pc);const Tc=Pc.parent;if(!Tc||!eq(Tc)||k.tryGetMemberInModuleExportsAndProperties(Pc.name,Tc)!==Pc)wr[bl]={kind:Ro(2)};else{const Tf=Kv(S2(Tc.name))?(Nn=YU(Tc))==null?void 0:Nn.fileName:void 0,{moduleSpecifier:ma}=(Kt||(Kt=fT.createImportSpecifierResolver(i,e,S,d))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Tf,isFromPackageJson:!1,moduleSymbol:Tc,symbol:Pc,targetFlags:dg(Pc,k).flags}],u,EA(It))||{};if(ma){const Bl={kind:Ro(6),moduleSymbol:Tc,isDefaultExport:!1,symbolName:Pc.name,exportName:Pc.name,fileName:Tf,moduleSpecifier:ma};wr[bl]=Bl}}}else if(d.includeCompletionsWithInsertText){if(hc&&jt.has(hc))return;vo(ge),qi(ge),qt.push(ge)}}else vo(ge),qi(ge),qt.push(ge);function qi(Ts){J_t(Ts)&&(Wr[$d(Ts)]=cm.LocalDeclarationPriority)}function vo(Ts){d.includeCompletionsWithInsertText&&(mn&&y0(jt,$d(Ts))?wr[qt.length]={kind:Ro(8)}:Jn&&(wr[qt.length]={kind:16}))}function Ro(Ts){return Jn?Ts|16:Ts}}function $i(ge){return xn(ge)?ge:Ac(ge)?$i(ge.expression):void 0}function ki(){return(Hn()||dr()||Jc()||Mr()||Pr()||gc()||Bt()||Wl()||(au(),1))===1}function gc(){return Wn(et)?(nn=5,Et=!0,Yt=4,1):0}function Wl(){const ge=Ge(et),mn=ge&&k.getContextualType(ge.attributes);if(!mn)return 0;const Jn=ge&&k.getContextualType(ge.attributes,4);return qt=Hi(qt,qe(_ke(mn,Jn,ge.attributes,k),ge.attributes.properties)),Io(),nn=3,Et=!1,1}function Jc(){return st?(Et=!0,_a(),1):0}function au(){Yt=$r(et)?5:1,nn=1,Et=Eu(),Fe!==et&&re.assert(!!Fe,"Expected 'contextToken' to be defined when different from 'previousToken'.");const ge=Fe!==et?Fe.getStart():u,mn=Cu(et,ge,i)||i;ae=za(mn);const Jn=(En?0:111551)|788968|1920|2097152,Nn=Fe&&!EA(Fe);qt=Hi(qt,k.getSymbolsInScope(mn,Jn)),re.assertEachIsDefined(qt,"getSymbolsInScope() should all be defined");for(let Lr=0;Lrvo.getSourceFile()===i)&&(Wr[$d(qi)]=cm.GlobalsOrKeywords),Nn&&!(qi.flags&111551)){const vo=qi.declarations&&lr(qi.declarations,HX);if(vo){const Ro={kind:64,declaration:vo};wr[Lr]=Ro}}}if(d.includeCompletionsWithInsertText&&mn.kind!==312){const Lr=k.tryGetThisTypeAt(mn,!1,Fl(mn.parent)?mn:void 0);if(Lr&&!fQe(Lr,i,k))for(const qi of zve(Lr,k))wr[qt.length]={kind:1},qt.push(qi),Wr[$d(qi)]=cm.SuggestedClassMembers}_a(),En&&(Yt=et&&f7(et.parent)?6:7)}function qn(){return st?!0:Rn||!d.includeCompletionsForModuleExports?!1:i.externalModuleIndicator||i.commonJsModuleIndicator||OZ(e.getCompilerOptions())?!0:Jx(e)}function za(ge){switch(ge.kind){case 312:case 228:case 294:case 241:return!0;default:return dl(ge)}}function Ia(){return ie||!!st&&O8(It.parent)||!zi(et)&&(kZ(et,i,k)||BE(It)||na(et))}function zi(ge){return ge&&(ge.kind===114&&(ge.parent.kind===186||yk(ge.parent))||ge.kind===131&&ge.parent.kind===182)}function na(ge){if(ge){const mn=ge.parent.kind;switch(ge.kind){case 59:return mn===172||mn===171||mn===169||mn===260||S_(mn);case 64:return mn===265;case 130:return mn===234;case 30:return mn===183||mn===216;case 96:return mn===168;case 152:return mn===238}}return!1}function _a(){var ge,mn;if(!qn()||(re.assert(!(h!=null&&h.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),h&&!h.source))return;at|=1;const Nn=Fe===et&&st?"":Fe&&xn(Fe)?Fe.text.toLowerCase():"",Lr=(ge=S.getModuleSpecifierCache)==null?void 0:ge.call(S),qi=Sce(i,S,e,d,P),vo=(mn=S.getPackageJsonAutoImportProvider)==null?void 0:mn.call(S),Ro=h?void 0:Oj(i,d,S);ake("collectAutoImports",S,Kt||(Kt=fT.createImportSpecifierResolver(i,e,S,d)),e,u,d,!!st,EA(It),Cc=>{qi.search(i.path,Ct,(Pc,hc)=>{if(!H2(Pc,iu(S.getCompilationSettings()))||!h&&w7(Pc)||!En&&!st&&!(hc&111551)||En&&!(hc&790504))return!1;const bl=Pc.charCodeAt(0);return Ct&&(bl<65||bl>90)?!1:h?!0:gQe(Pc,Nn)},(Pc,hc,bl,Tc)=>{if(h&&!gt(Pc,xa=>h.source===S2(xa.moduleSymbol.name))||(Pc=gi(Pc,Ts),!Pc.length))return;const Tf=Cc.tryResolve(Pc,bl)||{};if(Tf==="failed")return;let ma=Pc[0],Bl;Tf!=="skipped"&&({exportInfo:ma=Pc[0],moduleSpecifier:Bl}=Tf);const G_=ma.exportKind===1,u_=G_&&i6(ma.symbol)||ma.symbol;us(u_,{kind:Bl?32:4,moduleSpecifier:Bl,symbolName:hc,exportMapKey:Tc,exportName:ma.exportKind===2?"export=":ma.symbol.name,fileName:ma.moduleFileName,isDefaultExport:G_,moduleSymbol:ma.moduleSymbol,isFromPackageJson:ma.isFromPackageJson})}),cn=Cc.skippedAny(),at|=Cc.resolvedAny()?8:0,at|=Cc.resolvedBeyondLimit()?16:0});function Ts(Cc){const Pc=to(Cc.moduleSymbol.valueDeclaration,Nu);if(!Pc){const hc=S2(Cc.moduleSymbol.name);return kk.nodeCoreModules.has(hc)&&qf(hc,"node:")!==yce(i,e)?!1:Ro?Ro.allowsImportingAmbientModule(Cc.moduleSymbol,fr(Cc.isFromPackageJson)):!0}return Tce(Cc.isFromPackageJson?vo:e,i,Pc,d,Ro,fr(Cc.isFromPackageJson),Lr)}}function us(ge,mn){const Jn=$d(ge);Wr[Jn]!==cm.GlobalsOrKeywords&&(wr[qt.length]=mn,Wr[Jn]=st?cm.LocationPriority:cm.AutoImportSuggestions,qt.push(ge))}function Au(ge,mn){Cs(It)||ge.forEach(Jn=>{if(!Qu(Jn))return;const Nn=Fve(Jn,iu(c),void 0,0,!1);if(!Nn)return;const{name:Lr}=Nn,qi=F_t(Jn,Lr,mn,e,S,c,d,E);if(!qi)return;const vo={kind:128,...qi};at|=32,wr[qt.length]=vo,qt.push(Jn)})}function Qu(ge){return!!(ge.flags&8196)}function Cu(ge,mn,Jn){let Nn=ge;for(;Nn&&!xAe(Nn,mn,Jn);)Nn=Nn.parent;return Nn}function yf(ge){const mn=H_(),Jn=He(ge)||Br(ge)||Sr(ge)||w_(ge)||OY(ge);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(H_()-mn)),Jn}function w_(ge){if(ge.kind===12)return!0;if(ge.kind===32&&ge.parent){if(It===ge.parent&&(It.kind===286||It.kind===285))return!1;if(ge.parent.kind===286)return It.parent.kind!==286;if(ge.parent.kind===287||ge.parent.kind===285)return!!ge.parent.parent&&ge.parent.parent.kind===284}return!1}function Eu(){if(et){const ge=et.parent.kind,mn=Bve(et);switch(mn){case 28:return ge===213||ge===176||ge===214||ge===209||ge===226||ge===184||ge===210;case 21:return ge===213||ge===176||ge===214||ge===217||ge===196;case 23:return ge===209||ge===181||ge===167;case 144:case 145:case 102:return!0;case 25:return ge===267;case 19:return ge===263||ge===210;case 64:return ge===260||ge===226;case 16:return ge===228;case 17:return ge===239;case 134:return ge===174||ge===304;case 42:return ge===174}if(_ue(mn))return!0}return!1}function He(ge){return(ope(ge)||JX(ge))&&(XW(ge,u)||u===ge.end&&(!!ge.isUnterminated||ope(ge)))}function Hn(){const ge=H_t(et);if(!ge)return 0;const Jn=(xR(ge.parent)?ge.parent:void 0)||ge,Nn=lQe(Jn,k);if(!Nn)return 0;const Lr=k.getTypeFromTypeNode(Jn),qi=zve(Nn,k),vo=zve(Lr,k),Ro=new Set;return vo.forEach(Ts=>Ro.add(Ts.escapedName)),qt=Hi(qt,gi(qi,Ts=>!Ro.has(Ts.escapedName))),nn=0,Et=!0,1}function dr(){const ge=qt.length,mn=oQe(et,u,i);if(!mn)return 0;nn=0;let Jn,Nn;if(mn.kind===210){const Lr=$_t(mn,k);if(Lr===void 0)return mn.flags&67108864?2:(Rn=!0,0);const qi=k.getContextualType(mn,4),vo=(qi||Lr).getStringIndexType(),Ro=(qi||Lr).getNumberIndexType();if(Et=!!vo||!!Ro,Jn=_ke(Lr,qi,mn,k),Nn=mn.properties,Jn.length===0&&!Ro)return Rn=!0,0}else{re.assert(mn.kind===206),Et=!1;const Lr=vA(mn.parent);if(!E9(Lr))return re.fail("Root declaration is not variable-like.");let qi=J2(Lr)||!!Zy(Lr)||Lr.parent.parent.kind===250;if(!qi&&Lr.kind===169&&(kr(Lr.parent)?qi=!!k.getContextualType(Lr.parent):(Lr.parent.kind===174||Lr.parent.kind===178)&&(qi=kr(Lr.parent.parent)&&!!k.getContextualType(Lr.parent.parent))),qi){const vo=k.getTypeAtLocation(mn);if(!vo)return 2;Jn=k.getPropertiesOfType(vo).filter(Ro=>k.isPropertyAccessible(mn,!1,!1,vo,Ro)),Nn=mn.elements}}if(Jn&&Jn.length>0){const Lr=go(Jn,re.checkDefined(Nn));qt=Hi(qt,Lr),Io(),mn.kind===210&&d.includeCompletionsWithObjectLiteralMethodSnippets&&d.includeCompletionsWithInsertText&&(Ce(ge),Au(Lr,mn))}return 1}function Mr(){if(!et)return 0;const ge=et.kind===19||et.kind===28?to(et.parent,LH):y4(et)?to(et.parent.parent,LH):void 0;if(!ge)return 0;y4(et)||(Yt=8);const{moduleSpecifier:mn}=ge.kind===275?ge.parent.parent:ge.parent;if(!mn)return Et=!0,ge.kind===275?2:0;const Jn=k.getSymbolAtLocation(mn);if(!Jn)return Et=!0,2;nn=3,Et=!1;const Nn=k.getExportsAndPropertiesOfModule(Jn),Lr=new Set(ge.elements.filter(vo=>!Mt(vo)).map(vo=>(vo.propertyName||vo.name).escapedText)),qi=Nn.filter(vo=>vo.escapedName!=="default"&&!Lr.has(vo.escapedName));return qt=Hi(qt,qi),qi.length||(Yt=0),1}function Pr(){var ge;const mn=et&&(et.kind===19||et.kind===28)?to(et.parent,j0):void 0;if(!mn)return 0;const Jn=Ua(mn,bb(Nu,py));return nn=5,Et=!1,(ge=Jn.locals)==null||ge.forEach((Nn,Lr)=>{var qi,vo;qt.push(Nn),(vo=(qi=Jn.symbol)==null?void 0:qi.exports)!=null&&vo.has(Lr)&&(Wr[$d(Nn)]=cm.OptionalMember)}),1}function Bt(){const ge=pke(i,et,It,u);if(!ge)return 0;if(nn=3,Et=!0,Yt=et.kind===42?0:Fl(ge)?2:3,!Fl(ge))return 1;const mn=et.kind===27?et.parent.parent:et.parent;let Jn=J_(mn)?Cb(mn):0;if(et.kind===80&&!Mt(et))switch(et.getText()){case"private":Jn=Jn|2;break;case"static":Jn=Jn|256;break;case"override":Jn=Jn|16;break}if(Ep(mn)&&(Jn|=256),!(Jn&2)){const Nn=Fl(ge)&&Jn&16?X5(YC(ge)):uG(ge),Lr=ea(Nn,qi=>{const vo=k.getTypeAtLocation(qi);return Jn&256?(vo==null?void 0:vo.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(vo.symbol,ge)):vo&&k.getPropertiesOfType(vo)});qt=Hi(qt,kt(Lr,ge.members,Jn)),Ot(qt,(qi,vo)=>{const Ro=qi==null?void 0:qi.valueDeclaration;if(Ro&&J_(Ro)&&Ro.name&&Qf(Ro.name)){const Ts={kind:512,symbolName:k.symbolToString(qi)};wr[vo]=Ts}})}return 1}function ln(ge){return!!ge.parent&&Os(ge.parent)&&Lh(ge.parent.parent)&&(cR(ge.kind)||ON(ge))}function Wn(ge){if(ge){const mn=ge.parent;switch(ge.kind){case 21:case 28:return Lh(ge.parent)?ge.parent:void 0;default:if(ln(ge))return mn.parent}}}function $r(ge){if(ge){let mn;const Jn=Ua(ge.parent,Nn=>Fl(Nn)?"quit":Vd(Nn)&&mn===Nn.body?!0:(mn=Nn,!1));return Jn&&Jn}}function Ge(ge){if(ge){const mn=ge.parent;switch(ge.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(mn&&(mn.kind===285||mn.kind===286)){if(ge.kind===32){const Jn=bv(ge.pos,i,void 0);if(!mn.typeArguments||Jn&&Jn.kind===44)break}return mn}else if(mn.kind===291)return mn.parent.parent;break;case 11:if(mn&&(mn.kind===291||mn.kind===293))return mn.parent.parent;break;case 20:if(mn&&mn.kind===294&&mn.parent&&mn.parent.kind===291)return mn.parent.parent.parent;if(mn&&mn.kind===293)return mn.parent.parent;break}}}function Br(ge){const mn=ge.parent,Jn=mn.kind;switch(ge.kind){case 28:return Jn===260||yi(ge)||Jn===243||Jn===266||Ln(Jn)||Jn===264||Jn===207||Jn===265||Fl(mn)&&!!mn.typeParameters&&mn.typeParameters.end>=ge.pos;case 25:return Jn===207;case 59:return Jn===208;case 23:return Jn===207;case 21:return Jn===299||Ln(Jn);case 19:return Jn===266;case 30:return Jn===263||Jn===231||Jn===264||Jn===265||S_(Jn);case 126:return Jn===172&&!Fl(mn.parent);case 26:return Jn===169||!!mn.parent&&mn.parent.kind===207;case 125:case 123:case 124:return Jn===169&&!Lh(mn.parent);case 130:return Jn===276||Jn===281||Jn===274;case 139:case 153:return!Gve(ge);case 80:if(Jn===276&&ge===mn.name&&ge.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 Jn!==276;case 42:return F_(ge.parent)&&!tm(ge.parent)}if(_ue(Bve(ge))&&Gve(ge)||ln(ge)&&(!xn(ge)||cR(Bve(ge))||Mt(ge)))return!1;switch(Bve(ge)){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 nu(ge.parent)}if(Ua(ge.parent,Fl)&&ge===Fe&&Ei(ge,u))return!1;const Lr=oC(ge.parent,172);if(Lr&&ge!==Fe&&Fl(Fe.parent.parent)&&u<=Fe.end){if(Ei(ge,Fe.end))return!1;if(ge.kind!==64&&(Nae(Lr)||_P(Lr)))return!0}return ON(ge)&&!XE(ge.parent)&&!tx(ge.parent)&&!((Fl(ge.parent)||xp(ge.parent)||Np(ge.parent))&&(ge!==Fe||u>Fe.end))}function Ei(ge,mn){return ge.kind!==64&&(ge.kind===27||!mv(ge.end,mn,i))}function Ln(ge){return S_(ge)&&ge!==176}function Sr(ge){if(ge.kind===9){const mn=ge.getFullText();return mn.charAt(mn.length-1)==="."}return!1}function yi(ge){return ge.parent.kind===261&&!kZ(ge,i,k)}function go(ge,mn){if(mn.length===0)return ge;const Jn=new Set,Nn=new Set;for(const qi of mn){if(qi.kind!==303&&qi.kind!==304&&qi.kind!==208&&qi.kind!==174&&qi.kind!==177&&qi.kind!==178&&qi.kind!==305||Mt(qi))continue;let vo;if(xA(qi))Ao(qi,Jn);else if(sa(qi)&&qi.propertyName)qi.propertyName.kind===80&&(vo=qi.propertyName.escapedText);else{const Ro=i_(qi);vo=Ro&&Qv(Ro)?nI(Ro):void 0}vo!==void 0&&Nn.add(vo)}const Lr=ge.filter(qi=>!Nn.has(qi.escapedName));return ze(Jn,Lr),Lr}function Ao(ge,mn){const Jn=ge.expression,Nn=k.getSymbolAtLocation(Jn),Lr=Nn&&k.getTypeOfSymbolAtLocation(Nn,Jn),qi=Lr&&Lr.properties;qi&&qi.forEach(vo=>{mn.add(vo.name)})}function Io(){qt.forEach(ge=>{if(ge.flags&16777216){const mn=$d(ge);Wr[mn]=Wr[mn]??cm.OptionalMember}})}function ze(ge,mn){if(ge.size!==0)for(const Jn of mn)ge.has(Jn.name)&&(Wr[$d(Jn)]=cm.MemberDeclaredBySpreadAssignment)}function Ce(ge){for(let mn=ge;mn!Nn.has(Lr.escapedName)&&!!Lr.declarations&&!(Vy(Lr)&2)&&!(Lr.valueDeclaration&&IT(Lr.valueDeclaration)))}function qe(ge,mn){const Jn=new Set,Nn=new Set;for(const qi of mn)Mt(qi)||(qi.kind===291?Jn.add(m3(qi.name)):rT(qi)&&Ao(qi,Nn));const Lr=ge.filter(qi=>!Jn.has(qi.escapedName));return ze(Nn,Lr),Lr}function Mt(ge){return ge.getStart(i)<=u&&u<=ge.getEnd()}}function oQe(e,n,i){var c;if(e){const{parent:u}=e;switch(e.kind){case 19:case 28:if(el(u)||Ch(u))return u;break;case 42:return tm(u)?to(u.parent,el):void 0;case 134:return to(u.parent,el);case 80:if(e.text==="async"&&XE(e.parent))return e.parent.parent;{if(el(e.parent.parent)&&(xA(e.parent)||XE(e.parent)&&xm(i,e.getEnd()).line!==xm(i,n).line))return e.parent.parent;const h=Ua(u,tl);if((h==null?void 0:h.getLastToken(i))===e&&el(h.parent))return h.parent}break;default:if((c=u.parent)!=null&&c.parent&&(tm(u.parent)||lE(u.parent)||Xb(u.parent))&&el(u.parent.parent))return u.parent.parent;if(xA(u)&&el(u.parent))return u.parent;const d=Ua(u,tl);if(e.kind!==59&&(d==null?void 0:d.getLastToken(i))===e&&el(d.parent))return d.parent}}}function uke(e,n){const i=bv(e,n);return i&&e<=i.end&&(xN(i)||qb(i.kind))?{contextToken:bv(i.getFullStart(),n,void 0),previousToken:i}:{contextToken:i,previousToken:i}}function Ove(e,n,i,c){const u=n.isPackageJsonImport?c.getPackageJsonAutoImportProvider():i,d=u.getTypeChecker(),h=n.ambientModuleName?d.tryFindAmbientModule(n.ambientModuleName):n.fileName?d.getMergedSymbol(re.checkDefined(u.getSourceFile(n.fileName)).symbol):void 0;if(!h)return;let S=n.exportName==="export="?d.resolveExternalModuleSymbol(h):d.tryGetMemberInModuleExportsAndProperties(n.exportName,h);return S?(S=n.exportName==="default"&&i6(S)||S,{symbol:S,origin:ZYe(n,e,h)}):void 0}function Fve(e,n,i,c,u){if(VYe(i))return;const d=$ee(i)?i.symbolName:e.name;if(d===void 0||e.flags&1536&&D9(d.charCodeAt(0))||yA(e))return;const h={name:d,needsConvertPropertyAccess:!1};if(H2(d,n,u?1:0)||e.valueDeclaration&&IT(e.valueDeclaration))return h;switch(c){case 3:return T5e(i)?{name:i.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(d),needsConvertPropertyAccess:!1};case 2:case 1:return d.charCodeAt(0)===32?void 0:{name:d,needsConvertPropertyAccess:!0};case 5:case 4:return h;default:re.assertNever(c)}}function Wve(e,n){if(!n)return w5e(e);const i=e+8+1;return aV[i]||(aV[i]=w5e(e).filter(c=>!aQe(D8(c.name))))}function w5e(e){return aV[e]||(aV[e]=Jve().filter(n=>{const i=D8(n.name);switch(e){case 0:return!1;case 1:return due(i)||i===138||i===144||i===156||i===145||i===128||Z$(i)&&i!==157;case 5:return due(i);case 2:return _ue(i);case 3:return sQe(i);case 4:return cR(i);case 6:return Z$(i)||i===87;case 7:return Z$(i);case 8:return i===156;default:return re.assertNever(e)}}))}function aQe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function sQe(e){return e===148}function _ue(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return jU(e)}}function due(e){return e===134||e===135||e===130||e===152||e===156||!_G(e)&&!_ue(e)}function Bve(e){return xn(e)?uP(e)??0:e.kind}function fke(e,n){const i=[];if(e){const c=e.getSourceFile(),u=e.parent,d=c.getLineAndCharacterOfPosition(e.end).line,h=c.getLineAndCharacterOfPosition(n).line;(n0(u)||ry(u)&&u.moduleSpecifier)&&e===u.moduleSpecifier&&d===h&&i.push({name:Cf(132),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords})}return i}function U_t(e,n){return Ua(e,i=>d7(i)&&CZ(i,n)?!0:uC(i)?"quit":!1)}function _ke(e,n,i,c){const u=n&&n!==e,d=u&&!(n.flags&3)?c.getUnionType([e,n]):e,h=dke(d,i,c);return d.isClass()&&cQe(h)?[]:u?gi(h,S):h;function S(E){return Nt(E.declarations)?gt(E.declarations,P=>P.parent!==i):!0}}function dke(e,n,i){return e.isUnion()?i.getAllPossiblePropertiesOfTypes(gi(e.types,c=>!(c.flags&402784252||i.isArrayLikeType(c)||i.isTypeInvalidDueToUnionDiscriminant(c,n)||i.typeHasCallOrConstructSignatures(c)||c.isClass()&&cQe(c.getApparentProperties())))):e.getApparentProperties()}function cQe(e){return gt(e,n=>!!(Vy(n)&6))}function zve(e,n){return e.isUnion()?re.checkEachDefined(n.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):re.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function pke(e,n,i,c){switch(i.kind){case 358:return to(i.parent,GN);case 1:const u=to(Yf(uc(i.parent,Nu).statements),GN);if(u&&!qm(u,20,e))return u;break;case 81:if(to(i.parent,nu))return Ua(i,Fl);break;case 80:{if(uP(i)||nu(i.parent)&&i.parent.initializer===i)return;if(Gve(i))return Ua(i,GN)}}if(n){if(i.kind===137||xn(n)&&nu(n.parent)&&Fl(i))return Ua(n,Fl);switch(n.kind){case 64:return;case 27:case 20:return Gve(i)&&i.parent.name===i?i.parent.parent:to(i,GN);case 19:case 28:return to(n.parent,GN);default:if(GN(i)){if(xm(e,n.getEnd()).line!==xm(e,c).line)return i;const u=Fl(n.parent.parent)?_ue:sQe;return u(n.kind)||n.kind===42||xn(n)&&u(uP(n)??0)?n.parent.parent:void 0}return}}}function H_t(e){if(!e)return;const n=e.parent;switch(e.kind){case 19:if(rS(n))return n;break;case 27:case 28:case 80:if(n.kind===171&&rS(n.parent))return n.parent;break}}function lQe(e,n){if(!e)return;if(pc(e)&&NN(e.parent))return n.getTypeArgumentConstraint(e);const i=lQe(e.parent,n);if(i)switch(e.kind){case 171:return n.getTypeOfPropertyOfContextualType(i,e.symbol.escapedName);case 193:case 187:case 192:return i}}function Gve(e){return e.parent&&c7(e.parent)&&GN(e.parent.parent)}function mke(e,n,i,c){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!i&&UZ(i)&&c===i.getStart(e)+1;case"#":return!!i&&Lu(i)&&!!$b(i);case"<":return!!i&&i.kind===30&&(!Ds(i.parent)||uQe(i.parent));case"/":return!!i&&(Cm(i)?!!N9(i):i.kind===44&&iD(i.parent));case" ":return!!i&&am(i)&&i.parent.kind===312;default:return re.assertNever(n)}}function uQe({left:e}){return ny(e)}function fQe(e,n,i){const c=i.resolveName("self",void 0,111551,!1);if(c&&i.getTypeOfSymbolAtLocation(c,n)===e)return!0;const u=i.resolveName("global",void 0,111551,!1);if(u&&i.getTypeOfSymbolAtLocation(u,n)===e)return!0;const d=i.resolveName("globalThis",void 0,111551,!1);return!!(d&&i.getTypeOfSymbolAtLocation(d,n)===e)}function J_t(e){return!!(e.valueDeclaration&&Cb(e.valueDeclaration)&256&&Fl(e.valueDeclaration.parent))}function $_t(e,n){const i=n.getContextualType(e);if(i)return i;const c=IS(e.parent);if(Ds(c)&&c.operatorToken.kind===64&&e===c.left)return n.getTypeAtLocation(c);if(kr(c))return n.getContextualType(c)}function _Qe(e,n){var i,c,u;let d,h=!1;const S=E();return{isKeywordOnlyCompletion:h,keywordCompletion:d,isNewIdentifierLocation:!!(S||d===156),isTopLevelTypeOnly:!!((c=(i=to(S,n0))==null?void 0:i.importClause)!=null&&c.isTypeOnly)||!!((u=to(S,Yb))!=null&&u.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!S&&R5e(S,e),replacementSpan:dQe(S)};function E(){const P=e.parent;if(Yb(P)){const k=P.getLastToken(n);if(xn(e)&&k!==e){d=161,h=!0;return}return d=e.kind===156?void 0:156,gke(P.moduleReference)?P:void 0}if(R5e(P,e)&&M5e(P.parent))return P;if(Oy(P)||mh(P)){if(!P.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(d=156),M5e(P))if(e.kind===20||e.kind===80)h=!0,d=161;else return P.parent.parent;return}if(am(e)&&Nu(P))return d=156,e;if(am(e)&&n0(P))return d=156,gke(P.moduleSpecifier)?P:void 0}}function dQe(e){var n;if(!e)return;const i=Ua(e,bb(n0,Yb))??e,c=i.getSourceFile();if(mk(i,c))return sT(i,c);re.assert(i.kind!==102&&i.kind!==276);const u=i.kind===272?pQe((n=i.importClause)==null?void 0:n.namedBindings)??i.moduleSpecifier:i.moduleReference,d={pos:i.getFirstToken().getStart(),end:u.pos};if(mk(d,c))return PP(d)}function pQe(e){var n;return lr((n=to(e,Oy))==null?void 0:n.elements,i=>{var c;return!i.propertyName&&w7(i.name.text)&&((c=bv(i.name.pos,e.getSourceFile(),e))==null?void 0:c.kind)!==28})}function R5e(e,n){return qE(e)&&(e.isTypeOnly||n===e.name&&y4(n))}function M5e(e){if(!gke(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Oy(e)){const n=pQe(e);return(n?e.elements.indexOf(n):e.elements.length)<2}return!0}function gke(e){var n;return ny(e)?!0:!((n=to(KE(e)?e.expression:e,Cm))!=null&&n.text)}function L5e(e,n){if(!e)return;const i=Ua(e,u=>hP(u)||mQe(u)||$_(u)?"quit":(Os(u)||Np(u))&&!Z2(u.parent)),c=Ua(n,u=>hP(u)||mQe(u)||$_(u)?"quit":Kc(u));return i||c}function mQe(e){return e.parent&&$m(e.parent)&&(e.parent.body===e||e.kind===39)}function hke(e,n,i=new Map){return c(e)||c(dg(e.exportSymbol||e,n));function c(u){return!!(u.flags&788968)||n.isUnknownSymbol(u)||!!(u.flags&1536)&&y0(i,$d(u))&&n.getExportsOfModule(u).some(d=>hke(d,n,i))}}function O5e(e,n){const i=dg(e,n).declarations;return!!Nt(i)&&jr(i,QZ)}function gQe(e,n){if(n.length===0)return!0;let i=!1,c,u=0;const d=e.length;for(let h=0;h(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Vve||{}),Uve=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Uve||{}),Hve=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Hve||{}),aV=[],Jve=Pd(()=>{const e=[];for(let n=83;n<=165;n++)e.push({name:Cf(n),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords});return e})}});function $ve(){const e=new Map;function n(i){const c=e.get(i.name);(!c||Qve[c.kind]({name:Q8(J.value,F),kindModifiers:"",kind:"string",sortText:cm.LocationPriority,replacementSpan:wZ(n)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:k,entries:$}}default:return re.assertNever(e)}}function Q_t(e,n,i,c,u,d,h,S,E){if(!c||!Cm(c))return;const P=B5e(n,c,i,u,d,h,E);return P&&Z_t(e,c,P,n,u,S)}function Z_t(e,n,i,c,u,d){switch(i.kind){case 0:{const h=lr(i.paths,S=>S.name===e);return h&&Xee(e,W5e(h.extension),h.kind,[lS(e)])}case 1:{const h=lr(i.symbols,S=>S.name===e);return h&&Mve(h,h.name,u,c,n,d)}case 2:return lr(i.types,h=>h.value===e)?Xee(e,"","string",[lS(e)]):void 0;default:return re.assertNever(i)}}function F5e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:u,kind:d,span:h,extension:S})=>({name:u,kind:d,kindModifiers:W5e(S),sortText:cm.LocationPriority,replacementSpan:h}))}}function W5e(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return re.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return re.assertNever(e)}}function B5e(e,n,i,c,u,d,h){const S=qve(n.parent);switch(S.kind){case 201:{const J=qve(S.parent);return J.kind===205?{kind:0,paths:j5e(e,n,u,d,c,h)}:E(J)}case 303:return el(S.parent)&&S.name===n?tdt(c,S.parent):P()||P(0);case 212:{const{expression:J,argumentExpression:X}=S;return n===rg(X)?z5e(c.getTypeAtLocation(J)):void 0}case 213:case 214:case 291:if(!mdt(n)&&!Py(S)){const J=gue.getArgumentInfoForCompletions(S.kind===291?S.parent:n,i,e);return J&&yQe(J.invocation,n,J,c)||P(0)}case 272:case 278:case 283:return{kind:0,paths:j5e(e,n,u,d,c,h)};case 296:const k=ZZ(c,S.parent.clauses),F=P();return F?{kind:2,types:F.types.filter(J=>!k.hasValue(J.value)),isNewIdentifier:!1}:void 0;default:return P()||P(0)}function E(k){switch(k.kind){case 233:case 183:{const J=Ua(S,X=>X.parent===k);return J?{kind:2,types:Qee(c.getTypeArgumentConstraint(J)),isNewIdentifier:!1}:void 0}case 199:const{indexType:F,objectType:$}=k;return CZ(F,i)?z5e(c.getTypeFromTypeNode($)):void 0;case 192:{const J=E(qve(k.parent));if(!J)return;const X=edt(k,S);return J.kind===1?{kind:1,symbols:J.symbols.filter(ie=>!ni(X,ie.name)),hasIndexSignature:J.hasIndexSignature}:{kind:2,types:J.types.filter(ie=>!ni(X,ie.value)),isNewIdentifier:!1}}default:return}}function P(k=4){const F=Qee(aq(n,c,k));if(F.length)return{kind:2,types:F,isNewIdentifier:!1}}}function qve(e){switch(e.kind){case 196:return QM(e);case 217:return IS(e);default:return e}}function edt(e,n){return Qo(e.types,i=>i!==n&&S3(i)&&Sd(i.literal)?i.literal.text:void 0)}function yQe(e,n,i,c){let u=!1;const d=new Map,h=m1(e)?re.checkDefined(Ua(n.parent,tx)):n,S=c.getCandidateSignaturesForStringLiteralCompletions(e,h),E=ea(S,P=>{if(!A1(P)&&i.argumentCount>P.parameters.length)return;let k=P.getTypeParameterAtPosition(i.argumentIndex);if(m1(e)){const F=c.getTypeOfPropertyOfType(k,oW(h.name));F&&(k=F)}return u=u||!!(k.flags&4),Qee(k,d)});return Nt(E)?{kind:2,types:E,isNewIdentifier:u}:void 0}function z5e(e){return e&&{kind:1,symbols:gi(e.getApparentProperties(),n=>!(n.valueDeclaration&&IT(n.valueDeclaration))),hasIndexSignature:HZ(e)}}function tdt(e,n){const i=e.getContextualType(n);if(!i)return;const c=e.getContextualType(n,4);return{kind:1,symbols:_ke(i,c,n,e),hasIndexSignature:HZ(i)}}function Qee(e,n=new Map){return e?(e=DF(e),e.isUnion()?ea(e.types,i=>Qee(i,n)):e.isStringLiteral()&&!(e.flags&1024)&&y0(n,e.value)?[e]:Yn):Yn}function x4(e,n,i){return{name:e,kind:n,extension:i}}function Kve(e){return x4(e,"directory",void 0)}function G5e(e,n,i){const c=ddt(e,n),u=e.length===0?void 0:p1(n,e.length);return i.map(({name:d,kind:h,extension:S})=>d.includes(qp)||d.includes(r7)?{name:d,kind:h,extension:S,span:u}:{name:d,kind:h,extension:S,span:c})}function j5e(e,n,i,c,u,d){return G5e(n.text,n.getStart(e)+1,ndt(e,n,i,c,u,d))}function ndt(e,n,i,c,u,d){const h=$1(n.text),S=Cm(n)?PA(e,n):void 0,E=e.path,P=ws(E),k=Xve(i,1,e,u,d,S);return pdt(h)||!i.baseUrl&&!i.paths&&(nE(h)||kX(h))?rdt(h,P,i,c,E,k):sdt(h,P,S,i,c,k,u)}function Xve(e,n,i,c,u,d){return{extensionsToSearch:Gf(idt(e,c)),referenceKind:n,importingSourceFile:i,endingPreference:u==null?void 0:u.importModuleSpecifierEnding,resolutionMode:d}}function rdt(e,n,i,c,u,d){return i.rootDirs?adt(i.rootDirs,e,n,d,i,c,u):oc(zF(e,n,d,c,!0,u).values())}function idt(e,n){const i=n?Qo(n.getAmbientModules(),d=>{const h=d.name.slice(1,-1);if(!(!h.startsWith("*.")||h.includes("/")))return h.slice(1)}):[],c=[...s3(e),i],u=Jd(e);return kj(u)?Q9(e,c):c}function odt(e,n,i,c){e=e.map(d=>Su(hf(nE(d)?d:vl(n,d))));const u=Yr(e,d=>OE(d,i,n,c)?i.substr(d.length):void 0);return th([...e.map(d=>vl(d,u)),i].map(d=>bN(d)),ZA,Fp)}function adt(e,n,i,c,u,d,h){const S=u.project||d.getCurrentDirectory(),E=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames()),P=odt(e,S,i,E);return ea(P,k=>oc(zF(n,k,c,d,!0,h).values()))}function zF(e,n,i,c,u,d,h=$ve()){var S;e===void 0&&(e=""),e=$1(e),VD(e)||(e=ws(e)),e===""&&(e="."+qp),e=Su(e);const E=NL(n,e),P=VD(E)?E:ws(E);if(!u){const J=aB(P,c);if(J){const ie=e3(J,c).typesVersions;if(typeof ie=="object"){const ae=(S=vQ(ie))==null?void 0:S.paths;if(ae){const ve=ws(J),we=E.slice(Su(ve).length);if(U5e(h,we,ve,i,c,ae))return h}}}}const k=!(c.useCaseSensitiveFileNames&&c.useCaseSensitiveFileNames());if(!mce(c,P))return h;const F=LAe(c,P,i.extensionsToSearch,void 0,["./*"]);if(F)for(let J of F){if(J=hf(J),d&&Rv(J,d,n,k)===0)continue;const{name:X,extension:ie}=V5e(Jg(J),c.getCompilationSettings(),i);h.add(x4(X,"script",ie))}const $=oB(c,P);if($)for(const J of $){const X=Jg(hf(J));X!=="@types"&&h.add(Kve(X))}return h}function V5e(e,n,i){const c=u4.tryGetRealFileNameForNonJsDeclarationFileName(e);if(c)return{name:c,extension:OT(c)};if(i.referenceKind===0)return{name:e,extension:OT(e)};const u=ooe(i.endingPreference,i.resolutionMode,n,i.importingSourceFile);if(u===3){if(pv(e,EG))return{name:e,extension:OT(e)};const h=u4.tryGetJSExtensionForFile(e,n);return h?{name:SA(e,h),extension:h}:{name:e,extension:OT(e)}}if((u===0||u===1)&&pv(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:wg(e),extension:OT(e)};const d=u4.tryGetJSExtensionForFile(e,n);return d?{name:SA(e,d),extension:d}:{name:e,extension:OT(e)}}function U5e(e,n,i,c,u,d){const h=E=>d[E],S=(E,P)=>{const k=c6(E),F=c6(P),$=typeof k=="object"?k.prefix.length:E.length,J=typeof F=="object"?F.prefix.length:P.length;return pf(J,$)};return H5e(e,n,i,c,u,ET(d),h,S)}function H5e(e,n,i,c,u,d,h,S){let E=[],P;for(const k of d){if(k===".")continue;const F=k.replace(/^\.\//,""),$=h(k);if($){const J=c6(F);if(!J)continue;const X=typeof J=="object"&&C8(J,n);X&&(P===void 0||S(k,P)===-1)&&(P=k,E=E.filter(ae=>!ae.matchedPattern)),(typeof J=="string"||P===void 0||S(k,P)!==1)&&E.push({matchedPattern:X,results:cdt(F,$,n,i,c,u).map(({name:ae,kind:ve,extension:we})=>x4(ae,ve,we))})}}return E.forEach(k=>k.results.forEach(F=>e.add(F))),P!==void 0}function sdt(e,n,i,c,u,d,h){const{baseUrl:S,paths:E}=c,P=$ve(),k=Jd(c);if(S){const $=hf(vl(u.getCurrentDirectory(),S));zF(e,$,d,u,!1,void 0,P)}if(E){const $=Lie(c,u);U5e(P,e,$,d,u,E)}const F=$5e(e);for(const $ of udt(e,F,h))P.add(x4($,"external module name",void 0));if(X5e(u,c,n,F,d,P),kj(k)){let $=!1;if(F===void 0)for(const J of _dt(u,n)){const X=x4(J,"external module name",void 0);P.has(X.name)||($=!0,P.add(X))}if(!$){let J=X=>{const ie=vl(X,"node_modules");mce(u,ie)&&zF(e,ie,d,u,!1,void 0,P)};if(F&&Zie(c)){const X=J;J=ie=>{const ae=qc(e);ae.shift();let ve=ae.shift();if(!ve)return X(ie);if(qf(ve,"@")){const et=ae.shift();if(!et)return X(ie);ve=vl(ve,et)}const we=vl(ie,"node_modules",ve),Fe=vl(we,"package.json");if(Lj(u,Fe)){const Pe=e3(Fe,u).exports;if(Pe){if(typeof Pe!="object"||Pe===null)return;const dt=ET(Pe),Ie=ae.join("/")+(ae.length&&VD(e)?"/":""),ct=_F(c,i);H5e(P,Ie,we,d,u,dt,Ct=>X5(J5e(Pe[Ct],ct)),I2e);return}}return X(ie)}}jC(n,J)}}return oc(P.values())}function J5e(e,n){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ls(e)){for(const i in e)if(i==="default"||n.includes(i)||AQ(n,i)){const c=e[i];return J5e(c,n)}}}function $5e(e){return Yve(e)?VD(e)?e:ws(e):void 0}function cdt(e,n,i,c,u,d){if(!h_(e,"*"))return e.includes("*")?Yn:E(e,"script");const h=e.slice(0,e.length-1),S=Ez(i,h);if(S===void 0)return e[e.length-2]==="/"?E(h,"directory"):ea(n,k=>{var F;return(F=q5e("",c,k,u,d))==null?void 0:F.map(({name:$,...J})=>({name:h+$,...J}))});return ea(n,P=>q5e(S,c,P,u,d));function E(P,k){return qf(P,i)?[{name:bN(P),kind:k,extension:void 0}]:Yn}}function q5e(e,n,i,c,u){if(!u.readDirectory)return;const d=c6(i);if(d===void 0||As(d))return;const h=NL(d.prefix),S=VD(d.prefix)?h:ws(h),E=VD(d.prefix)?"":Jg(h),P=Yve(e),k=P?VD(e)?e:ws(e):void 0,F=P?vl(S,E+k):S,$=hf(d.suffix),J=$&&TY("_"+$),X=J?[SA($,J),$]:[$],ie=hf(vl(n,F)),ae=P?ie:Su(ie)+E,ve=$?X.map(Pe=>"**/*"+Pe):["./*"],we=Qo(LAe(u,ie,c.extensionsToSearch,void 0,ve),Pe=>{const dt=et(Pe);if(dt){if(Yve(dt))return Kve(qc(K5e(dt))[1]);const{name:Ie,extension:ct}=V5e(dt,u.getCompilationSettings(),c);return x4(Ie,"script",ct)}}),Fe=$?Yn:Qo(oB(u,ie),Pe=>Pe==="node_modules"?void 0:Kve(Pe));return[...we,...Fe];function et(Pe){return Yr(X,dt=>{const Ie=ldt(hf(Pe),ae,dt);return Ie===void 0?void 0:K5e(Ie)})}}function ldt(e,n,i){return qf(e,n)&&h_(e,i)?e.slice(n.length,e.length-i.length):void 0}function K5e(e){return e[0]===qp?e.slice(1):e}function udt(e,n,i){const u=i.getAmbientModules().map(d=>S2(d.name)).filter(d=>qf(d,e)&&!d.includes("*"));if(n!==void 0){const d=Su(n);return u.map(h=>xf(h,d))}return u}function fdt(e,n,i,c){const u=Lf(e,n),d=JD(e.text,u.pos),h=d&&lr(d,X=>n>=X.pos&&n<=X.end);if(!h)return;const S=e.text.slice(h.pos,n),E=Y5e.exec(S);if(!E)return;const[,P,k,F]=E,$=ws(e.path),J=k==="path"?zF(F,$,Xve(i,0,e),c,!0,e.path):k==="types"?X5e(c,i,$,$5e(F),Xve(i,1,e)):re.fail();return G5e(F,h.pos+P.length,oc(J.values()))}function X5e(e,n,i,c,u,d=$ve()){const h=new Map,S=qZ(()=>ZG(n,e))||Yn;for(const P of S)E(P);for(const P of nhe(i,e)){const k=vl(ws(P),"node_modules/@types");E(k)}return d;function E(P){if(mce(e,P))for(const k of oB(e,P)){const F=DQ(k);if(!(n.types&&!ni(n.types,F)))if(c===void 0)h.has(F)||(d.add(x4(F,"external module name",void 0)),h.set(F,!0));else{const $=vl(P,k),J=toe(c,F,QC(e));J!==void 0&&zF(J,$,u,e,!1,void 0,d)}}}}function _dt(e,n){if(!e.readFile||!e.fileExists)return Yn;const i=[];for(const c of nhe(n,e)){const u=e3(c,e);for(const d of Q5e){const h=u[d];if(h)for(const S in h)ef(h,S)&&!qf(S,"@types/")&&i.push(S)}}return i}function ddt(e,n){const i=Math.max(e.lastIndexOf(qp),e.lastIndexOf(r7)),c=i!==-1?i+1:0,u=e.length-c;return u===0||H2(e.substr(c,u),99)?void 0:p1(n+c,u)}function pdt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const n=e.length>=3&&e.charCodeAt(1)===46?2:1,i=e.charCodeAt(n);return i===47||i===92}return!1}function Yve(e){return e.includes(qp)}function mdt(e){return xd(e.parent)&&pp(e.parent.arguments)===e&&xn(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Qve,Y5e,Q5e,gdt=G({"src/services/stringCompletions.ts"(){xl(),Zve(),Qve={directory:0,script:1,"external module name":2},Y5e=/^(\/\/\/\s*Q_t,getStringLiteralCompletions:()=>X_t});var hdt=G({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){gdt()}}),ow={};Oe(ow,{CompletionKind:()=>Hve,CompletionSource:()=>Vve,SortText:()=>cm,StringCompletions:()=>Zee,SymbolOriginInfoKind:()=>Uve,createCompletionDetails:()=>Xee,createCompletionDetailsForSymbol:()=>Mve,getCompletionEntriesFromSymbols:()=>Rve,getCompletionEntryDetails:()=>rQe,getCompletionEntrySymbol:()=>G_t,getCompletionsAtPosition:()=>UYe,getPropertiesForObjectExpression:()=>_ke,moduleSpecifierResolutionCacheAttemptLimit:()=>jve,moduleSpecifierResolutionLimit:()=>Yee});var Zve=G({"src/services/_namespaces/ts.Completions.ts"(){K_t(),hdt()}});function e0e(e,n,i,c){const u=Tdt(e,i,c);return(d,h,S)=>{const{directImports:E,indirectUsers:P}=ydt(e,n,u,h,i,c);return{indirectUsers:P,...vdt(E,d,h.exportKind,i,S)}}}function ydt(e,n,i,{exportingModuleSymbol:c,exportKind:u},d,h){const S=U3(),E=U3(),P=[],k=!!c.globalExports,F=k?void 0:[];return J(c),{directImports:P,indirectUsers:$()};function $(){if(k)return e;if(c.declarations)for(const Fe of c.declarations)Ov(Fe)&&n.has(Fe.getSourceFile().fileName)&&ve(Fe);return F.map(ts)}function J(Fe){const et=we(Fe);if(et){for(const Pe of et)if(S(Pe))switch(h&&h.throwIfCancellationRequested(),Pe.kind){case 213:if(Py(Pe)){X(Pe);break}if(!k){const Ie=Pe.parent;if(u===2&&Ie.kind===260){const{name:ct}=Ie;if(ct.kind===80){P.push(ct);break}}}break;case 80:break;case 271:ae(Pe,Pe.name,ul(Pe,32),!1);break;case 272:P.push(Pe);const dt=Pe.importClause&&Pe.importClause.namedBindings;dt&&dt.kind===274?ae(Pe,dt.name,!1,!0):!k&&R9(Pe)&&ve(sV(Pe));break;case 278:Pe.exportClause?Pe.exportClause.kind===280?ve(sV(Pe),!0):P.push(Pe):J(Cdt(Pe,d));break;case 205:!k&&Pe.isTypeOf&&!Pe.qualifier&&ie(Pe)&&ve(Pe.getSourceFile(),!0),P.push(Pe);break;default:re.failBadSyntaxKind(Pe,"Unexpected import kind.")}}}function X(Fe){const et=Ua(Fe,ete)||Fe.getSourceFile();ve(et,!!ie(Fe,!0))}function ie(Fe,et=!1){return Ua(Fe,Pe=>et&&ete(Pe)?"quit":DA(Pe)&>(Pe.modifiers,_W))}function ae(Fe,et,Pe,dt){if(u===2)dt||P.push(Fe);else if(!k){const Ie=sV(Fe);re.assert(Ie.kind===312||Ie.kind===267),Pe||bdt(Ie,et,d)?ve(Ie,!0):ve(Ie)}}function ve(Fe,et=!1){if(re.assert(!k),!E(Fe)||(F.push(Fe),!et))return;const dt=d.getMergedSymbol(Fe.symbol);if(!dt)return;re.assert(!!(dt.flags&1536));const Ie=we(dt);if(Ie)for(const ct of Ie)E1(ct)||ve(sV(ct),!0)}function we(Fe){return i.get($d(Fe).toString())}}function vdt(e,n,i,c,u){const d=[],h=[];function S($,J){d.push([$,J])}if(e)for(const $ of e)E($);return{importSearches:d,singleReferences:h};function E($){if($.kind===271){n0e($)&&P($.name);return}if($.kind===80){P($);return}if($.kind===205){if($.qualifier){const ie=PS($.qualifier);ie.escapedText===Il(n)&&h.push(ie)}else i===2&&h.push($.argument.literal);return}if($.moduleSpecifier.kind!==11)return;if($.kind===278){$.exportClause&&j0($.exportClause)&&k($.exportClause);return}const{name:J,namedBindings:X}=$.importClause||{name:void 0,namedBindings:void 0};if(X)switch(X.kind){case 274:P(X.name);break;case 275:(i===0||i===1)&&k(X);break;default:re.assertNever(X)}if(J&&(i===1||i===2)&&(!u||J.escapedText===$ge(n))){const ie=c.getSymbolAtLocation(J);S(J,ie)}}function P($){i===2&&(!u||F($.escapedText))&&S($,c.getSymbolAtLocation($))}function k($){if($)for(const J of $.elements){const{name:X,propertyName:ie}=J;if(F((ie||X).escapedText))if(ie)h.push(ie),(!u||X.escapedText===n.escapedName)&&S(X,c.getSymbolAtLocation(X));else{const ae=J.kind===281&&J.propertyName?c.getExportSpecifierLocalTargetSymbol(J):c.getSymbolAtLocation(X);S(X,ae)}}}function F($){return $===n.escapedName||i!==0&&$==="default"}}function bdt(e,n,i){const c=i.getSymbolAtLocation(n);return!!e9e(e,u=>{if(!ry(u))return;const{exportClause:d,moduleSpecifier:h}=u;return!h&&d&&j0(d)&&d.elements.some(S=>i.getExportSpecifierLocalTargetSymbol(S)===c)})}function Z5e(e,n,i){var c;const u=[],d=e.getTypeChecker();for(const h of n){const S=i.valueDeclaration;if((S==null?void 0:S.kind)===312){for(const E of h.referencedFiles)e.getSourceFileFromReference(h,E)===S&&u.push({kind:"reference",referencingFile:h,ref:E});for(const E of h.typeReferenceDirectives){const P=(c=e.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||h.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective;P!==void 0&&P.resolvedFileName===S.fileName&&u.push({kind:"reference",referencingFile:h,ref:E})}}t9e(h,(E,P)=>{d.getSymbolAtLocation(P)===i&&u.push(Hd(E)?{kind:"implicit",literal:P,referencingFile:h}:{kind:"import",literal:P})})}return u}function Tdt(e,n,i){const c=new Map;for(const u of e)i&&i.throwIfCancellationRequested(),t9e(u,(d,h)=>{const S=n.getSymbolAtLocation(h);if(S){const E=$d(S).toString();let P=c.get(E);P||c.set(E,P=[]),P.push(d)}});return c}function e9e(e,n){return Ot(e.kind===312?e.statements:e.body.statements,i=>n(i)||ete(i)&&Ot(i.body&&i.body.statements,n))}function t9e(e,n){if(e.externalModuleIndicator||e.imports!==void 0)for(const i of e.imports)n(XC(i),i);else e9e(e,i=>{switch(i.kind){case 278:case 272:{const c=i;c.moduleSpecifier&&Sd(c.moduleSpecifier)&&n(c,c.moduleSpecifier);break}case 271:{const c=i;n0e(c)&&n(c,c.moduleReference.expression);break}}})}function n9e(e,n,i,c){return c?u():u()||d();function u(){var E;const{parent:P}=e,k=P.parent;if(n.exportSymbol)return P.kind===211?(E=n.declarations)!=null&&E.some(J=>J===P)&&Ds(k)?$(k,!1):void 0:h(n.exportSymbol,S(P));{const J=Edt(P,e);if(J&&ul(J,32))return Yb(J)&&J.moduleReference===e?c?void 0:{kind:0,symbol:i.getSymbolAtLocation(J.name)}:h(n,S(J));if(G0(P))return h(n,0);if(my(P))return F(P);if(my(k))return F(k);if(Ds(P))return $(P,!0);if(Ds(k))return $(k,!0);if(zJ(P)||UY(P))return h(n,0)}function F(J){if(!J.symbol.parent)return;const X=J.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:J.symbol.parent,exportKind:X}}}function $(J,X){let ie;switch(jy(J)){case 1:ie=0;break;case 2:ie=2;break;default:return}const ae=X?i.getSymbolAtLocation(PSe(uc(J.left,Kf))):n;return ae&&h(ae,ie)}}function d(){if(!xdt(e))return;let P=i.getImmediateAliasedSymbol(n);if(!P||(P=Adt(P,i),P.escapedName==="export="&&(P=Sdt(P,i),P===void 0)))return;const k=$ge(P);if(k===void 0||k==="default"||k===n.escapedName)return{kind:0,symbol:P}}function h(E,P){const k=t0e(E,P,i);return k&&{kind:1,symbol:E,exportInfo:k}}function S(E){return ul(E,2048)?1:0}}function Sdt(e,n){var i,c;if(e.flags&2097152)return n.getImmediateAliasedSymbol(e);const u=re.checkDefined(e.valueDeclaration);if(my(u))return(i=to(u.expression,ck))==null?void 0:i.symbol;if(Ds(u))return(c=to(u.right,ck))==null?void 0:c.symbol;if(Nu(u))return u.symbol}function Edt(e,n){const i=Kc(e)?e:sa(e)?OU(e):void 0;return i?e.name!==n||A3(i.parent)?void 0:Xg(i.parent.parent)?i.parent.parent:void 0:e}function xdt(e){const{parent:n}=e;switch(n.kind){case 271:return n.name===e&&n0e(n);case 276:return!n.propertyName;case 273:case 274:return re.assert(n.name===e),!0;case 208:return Cs(e)&&E7(n.parent.parent);default:return!1}}function t0e(e,n,i){const c=e.parent;if(!c)return;const u=i.getMergedSymbol(c);return eq(u)?{exportingModuleSymbol:u,exportKind:n}:void 0}function Adt(e,n){if(e.declarations)for(const i of e.declarations){if(gy(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(i)||e;if(Ac(i)&&jE(i.expression)&&!Lu(i.name))return n.getSymbolAtLocation(i);if(XE(i)&&Ds(i.parent.parent)&&jy(i.parent.parent)===2)return n.getExportSpecifierLocalTargetSymbol(i.name)}return e}function Cdt(e,n){return n.getMergedSymbol(sV(e).symbol)}function sV(e){if(e.kind===213)return e.getSourceFile();const{parent:n}=e;return n.kind===312?n:(re.assert(n.kind===268),uc(n.parent,ete))}function ete(e){return e.kind===267&&e.name.kind===11}function n0e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var r0e,i0e,Ddt=G({"src/services/importTracker.ts"(){xl(),r0e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(r0e||{}),i0e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(i0e||{})}});function _T(e,n=1){return{kind:n,node:e.name||e,context:Idt(e)}}function r9e(e){return e&&e.kind===void 0}function Idt(e){if(PT(e))return AI(e);if(e.parent){if(!PT(e.parent)&&!my(e.parent)){if(Cs(e)){const i=Ds(e.parent)?e.parent:Kf(e.parent)&&Ds(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(i&&jy(i)!==0)return AI(i)}if(Pb(e.parent)||iD(e.parent))return e.parent.parent;if(nF(e.parent)||tF(e.parent)||M8(e.parent))return e.parent;if(Cm(e)){const i=N9(e);if(i){const c=Ua(i,u=>PT(u)||dl(u)||d7(u));return PT(c)?AI(c):c}}const n=Ua(e,Qf);return n?AI(n.parent):void 0}if(e.parent.name===e||Lh(e.parent)||my(e.parent)||(fP(e.parent)||sa(e.parent))&&e.parent.propertyName===e||e.kind===90&&ul(e.parent,2080))return AI(e.parent)}}function AI(e){if(e)switch(e.kind){case 260:return!Kp(e.parent)||e.parent.declarations.length!==1?e:Xg(e.parent.parent)?e.parent.parent:Jz(e.parent.parent)?AI(e.parent.parent):e.parent;case 208:return AI(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return kb(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return kP(e.parent)?AI(Ua(e.parent,n=>Ds(n)||Jz(n))):e;default:return e}}function o0e(e,n,i){if(!i)return;const c=r9e(i)?lV(i.start,n,i.end):lV(i,n);return c.start!==e.start||c.length!==e.length?{contextSpan:c}:void 0}function kdt(e,n,i,c,u){const d=cS(c,u),h={use:1},S=OP.getReferencedSymbolsForNode(u,d,e,i,n,h),E=e.getTypeChecker(),P=OP.getAdjustedNode(d,h),k=Pdt(P)?E.getSymbolAtLocation(P):void 0;return!S||!S.length?void 0:Qo(S,({definition:F,references:$})=>F&&{definition:E.runWithCancellationToken(n,J=>Rdt(F,J,d)),references:$.map(J=>Ldt(J,k))})}function Pdt(e){return e.kind===90||!!lG(e)||_g(e)||e.kind===137&&Lh(e.parent)}function Ndt(e,n,i,c,u){const d=cS(c,u);let h;const S=i9e(e,n,i,d,u);if(d.parent.kind===211||d.parent.kind===208||d.parent.kind===212||d.kind===108)h=S&&[...S];else if(S){const P=$w(S),k=new Map;for(;!P.isEmpty();){const F=P.dequeue();if(!y0(k,vm(F.node)))continue;h=ur(h,F);const $=i9e(e,n,i,F.node,F.node.pos);$&&P.enqueue(...$)}}const E=e.getTypeChecker();return Vn(h,P=>Fdt(P,E))}function i9e(e,n,i,c,u){if(c.kind===312)return;const d=e.getTypeChecker();if(c.parent.kind===304){const h=[];return OP.getReferenceEntriesForShorthandPropertyAssignment(c,d,S=>h.push(_T(S))),h}else if(c.kind===108||MT(c.parent)){const h=d.getSymbolAtLocation(c);return h.valueDeclaration&&[_T(h.valueDeclaration)]}else return o9e(u,c,e,i,n,{implementations:!0,use:1})}function wdt(e,n,i,c,u,d,h){return Vn(a9e(OP.getReferencedSymbolsForNode(u,c,e,i,n,d)),S=>h(S,c,e.getTypeChecker()))}function o9e(e,n,i,c,u,d={},h=new Set(c.map(S=>S.fileName))){return a9e(OP.getReferencedSymbolsForNode(e,n,i,c,u,d,h))}function a9e(e){return e&&ea(e,n=>n.references)}function Rdt(e,n,i){const c=(()=>{switch(e.type){case 0:{const{symbol:k}=e,{displayParts:F,kind:$}=s9e(k,n,i),J=F.map(ae=>ae.text).join(""),X=k.declarations&&pp(k.declarations),ie=X?i_(X)||X:i;return{...cV(ie),name:J,kind:$,displayParts:F,context:AI(X)}}case 1:{const{node:k}=e;return{...cV(k),name:k.text,kind:"label",displayParts:[yE(k.text,17)]}}case 2:{const{node:k}=e,F=Cf(k.kind);return{...cV(k),name:F,kind:"keyword",displayParts:[{text:F,kind:"keyword"}]}}case 3:{const{node:k}=e,F=n.getSymbolAtLocation(k),$=F&&W6.getSymbolDisplayPartsDocumentationAndSymbolKind(n,F,k.getSourceFile(),RR(k),k).displayParts||[lS("this")];return{...cV(k),name:"this",kind:"var",displayParts:$}}case 4:{const{node:k}=e;return{...cV(k),name:k.text,kind:"var",displayParts:[yE(Lv(k),8)]}}case 5:return{textSpan:PP(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[yE(`"${e.reference.fileName}"`,8)]};default:return re.assertNever(e)}})(),{sourceFile:u,textSpan:d,name:h,kind:S,displayParts:E,context:P}=c;return{containerKind:"",containerName:"",fileName:u.fileName,kind:S,name:h,textSpan:d,displayParts:E,...o0e(d,u,P)}}function cV(e){const n=e.getSourceFile();return{sourceFile:n,textSpan:lV(Qf(e)?e.expression:e,n)}}function s9e(e,n,i){const c=OP.getIntersectingMeaningFromDeclarations(i,e),u=e.declarations&&pp(e.declarations)||i,{displayParts:d,symbolKind:h}=W6.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,u.getSourceFile(),u,u,c);return{displayParts:d,kind:h}}function Mdt(e,n,i,c,u){return{...tte(e),...c&&Odt(e,n,i,u)}}function Ldt(e,n){const i=c9e(e);return n?{...i,isDefinition:e.kind!==0&&l9e(e.node,n)}:i}function c9e(e){const n=tte(e);if(e.kind===0)return{...n,isWriteAccess:!1};const{kind:i,node:c}=e;return{...n,isWriteAccess:s0e(c),isInString:i===2?!0:void 0}}function tte(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const n=e.node.getSourceFile(),i=lV(e.node,n);return{textSpan:i,fileName:n.fileName,...o0e(i,n,e.context)}}}function Odt(e,n,i,c){if(e.kind!==0&&xn(n)){const{node:u,kind:d}=e,h=u.parent,S=n.text,E=XE(h);if(E||BZ(h)&&h.name===u&&h.dotDotDotToken===void 0){const P={prefixText:S+": "},k={suffixText:": "+S};if(d===3)return P;if(d===4)return k;if(E){const F=h.parent;return el(F)&&Ds(F.parent)&&jE(F.parent.left)?P:k}else return P}else if(qE(h)&&!h.propertyName){const P=gy(n.parent)?i.getExportSpecifierLocalTargetSymbol(n.parent):i.getSymbolAtLocation(n);return ni(P.declarations,h)?{prefixText:S+" as "}:lx}else if(gy(h)&&!h.propertyName)return n===e.node||i.getSymbolAtLocation(n)===i.getSymbolAtLocation(e.node)?{prefixText:S+" as "}:{suffixText:" as "+S}}if(e.kind!==0&&S1(e.node)&&Kf(e.node.parent)){const u=ice(c);return{prefixText:u,suffixText:u}}return lx}function Fdt(e,n){const i=tte(e);if(e.kind!==0){const{node:c}=e;return{...i,...Wdt(c,n)}}else return{...i,kind:"",displayParts:[]}}function Wdt(e,n){const i=n.getSymbolAtLocation(PT(e)&&e.name?e.name:e);return i?s9e(i,n,e):e.kind===210?{kind:"interface",displayParts:[D1(21),lS("object literal"),D1(22)]}:e.kind===231?{kind:"local class",displayParts:[D1(21),lS("anonymous local class"),D1(22)]}:{kind:h4(e),displayParts:[]}}function Bdt(e){const n=tte(e);if(e.kind===0)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};const i=s0e(e.node),c={textSpan:n.textSpan,kind:i?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:c}}function lV(e,n,i){let c=e.getStart(n),u=(i||e).getEnd();return Cm(e)&&u-c>2&&(re.assert(i===void 0),c+=1,u-=1),Yy(c,u)}function a0e(e){return e.kind===0?e.textSpan:lV(e.node,e.node.getSourceFile())}function s0e(e){const n=lG(e);return!!n&&zdt(n)||e.kind===90||o6(e)}function l9e(e,n){var i;if(!n)return!1;const c=lG(e)||(e.kind===90?e.parent:_g(e)||e.kind===137&&Lh(e.parent)?e.parent.parent:void 0),u=c&&Ds(c)?c.left:void 0;return!!(c&&((i=n.declarations)!=null&&i.some(d=>d===c||d===u)))}function zdt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 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!kP(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||A3(e.parent);case 173:case 171:case 355:case 348:return!1;default:return re.failBadSyntaxKind(e)}}var c0e,l0e,u0e,OP,Gdt=G({"src/services/findAllReferences.ts"(){xl(),u9e(),c0e=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(c0e||{}),l0e=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(l0e||{}),u0e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(u0e||{}),(e=>{function n(He,Hn,dr,Mr,Pr,Bt={},ln=new Set(Mr.map(Wn=>Wn.fileName))){var Wn,$r;if(Hn=i(Hn,Bt),Nu(Hn)){const go=D4.getReferenceAtPosition(Hn,He,dr);if(!(go!=null&&go.file))return;const Ao=dr.getTypeChecker().getMergedSymbol(go.file.symbol);if(Ao)return P(dr,Ao,!1,Mr,ln);const Io=dr.getFileIncludeReasons();return Io?[{definition:{type:5,reference:go.reference,file:Hn},references:u(go.file,Io,dr)||Yn}]:void 0}if(!Bt.implementations){const go=F(Hn,Mr,Pr);if(go)return go}const Ge=dr.getTypeChecker(),Br=Ge.getSymbolAtLocation(Lh(Hn)&&Hn.parent.name||Hn);if(!Br){if(!Bt.implementations&&Cm(Hn)){if(WZ(Hn)){const go=dr.getFileIncludeReasons(),Ao=($r=(Wn=dr.getResolvedModule(Hn.getSourceFile(),Hn.text,PA(Hn.getSourceFile(),Hn)))==null?void 0:Wn.resolvedModule)==null?void 0:$r.resolvedFileName,Io=Ao?dr.getSourceFile(Ao):void 0;if(Io)return[{definition:{type:4,node:Hn},references:u(Io,go,dr)||Yn}]}return qn(Hn,Mr,Ge,Pr)}return}if(Br.escapedName==="export=")return P(dr,Br.parent,!1,Mr,ln);const Ei=h(Br,dr,Mr,Pr,Bt,ln);if(Ei&&!(Br.flags&33554432))return Ei;const Ln=d(Hn,Br,Ge),Sr=Ln&&h(Ln,dr,Mr,Pr,Bt,ln),yi=$(Br,Hn,Mr,ln,Ge,Pr,Bt);return S(dr,Ei,yi,Sr)}e.getReferencedSymbolsForNode=n;function i(He,Hn){return Hn.use===1?He=zge(He):Hn.use===2&&(He=DZ(He)),He}e.getAdjustedNode=i;function c(He,Hn,dr,Mr=new Set(dr.map(Pr=>Pr.fileName))){var Pr,Bt;const ln=(Pr=Hn.getSourceFile(He))==null?void 0:Pr.symbol;if(ln)return((Bt=P(Hn,ln,!1,dr,Mr)[0])==null?void 0:Bt.references)||Yn;const Wn=Hn.getFileIncludeReasons(),$r=Hn.getSourceFile(He);return $r&&Wn&&u($r,Wn,Hn)||Yn}e.getReferencesForFileName=c;function u(He,Hn,dr){let Mr;const Pr=Hn.get(He.path)||Yn;for(const Bt of Pr)if(ew(Bt)){const ln=dr.getSourceFileByPath(Bt.file),Wn=XQ(dr,Bt);HW(Wn)&&(Mr=ur(Mr,{kind:0,fileName:ln.fileName,textSpan:PP(Wn)}))}return Mr}function d(He,Hn,dr){if(He.parent&&lC(He.parent)){const Mr=dr.getAliasedSymbol(Hn),Pr=dr.getMergedSymbol(Mr);if(Mr!==Pr)return Pr}}function h(He,Hn,dr,Mr,Pr,Bt){const ln=He.flags&1536&&He.declarations&&lr(He.declarations,Nu);if(!ln)return;const Wn=He.exports.get("export="),$r=P(Hn,He,!!Wn,dr,Bt);if(!Wn||!Bt.has(ln.fileName))return $r;const Ge=Hn.getTypeChecker();return He=dg(Wn,Ge),S(Hn,$r,$(He,void 0,dr,Bt,Ge,Mr,Pr))}function S(He,...Hn){let dr;for(const Mr of Hn)if(!(!Mr||!Mr.length)){if(!dr){dr=Mr;continue}for(const Pr of Mr){if(!Pr.definition||Pr.definition.type!==0){dr.push(Pr);continue}const Bt=Pr.definition.symbol,ln=Ho(dr,$r=>!!$r.definition&&$r.definition.type===0&&$r.definition.symbol===Bt);if(ln===-1){dr.push(Pr);continue}const Wn=dr[ln];dr[ln]={definition:Wn.definition,references:Wn.references.concat(Pr.references).sort(($r,Ge)=>{const Br=E(He,$r),Ei=E(He,Ge);if(Br!==Ei)return pf(Br,Ei);const Ln=a0e($r),Sr=a0e(Ge);return Ln.start!==Sr.start?pf(Ln.start,Sr.start):pf(Ln.length,Sr.length)})}}}return dr}function E(He,Hn){const dr=Hn.kind===0?He.getSourceFile(Hn.fileName):Hn.node.getSourceFile();return He.getSourceFiles().indexOf(dr)}function P(He,Hn,dr,Mr,Pr){re.assert(!!Hn.valueDeclaration);const Bt=Qo(Z5e(He,Mr,Hn),Wn=>{if(Wn.kind==="import"){const $r=Wn.literal.parent;if(S3($r)){const Ge=uc($r.parent,E1);if(dr&&!Ge.qualifier)return}return _T(Wn.literal)}else if(Wn.kind==="implicit"){const $r=Wn.literal.text!==HN&&cF(Wn.referencingFile,Ge=>Ge.transformFlags&2?zx(Ge)||nF(Ge)||Ek(Ge)?Ge:void 0:"skip")||Wn.referencingFile.statements[0]||Wn.referencingFile;return _T($r)}else return{kind:0,fileName:Wn.referencingFile.fileName,textSpan:PP(Wn.ref)}});if(Hn.declarations)for(const Wn of Hn.declarations)switch(Wn.kind){case 312:break;case 267:Pr.has(Wn.getSourceFile().fileName)&&Bt.push(_T(Wn.name));break;default:re.assert(!!(Hn.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ln=Hn.exports.get("export=");if(ln!=null&&ln.declarations)for(const Wn of ln.declarations){const $r=Wn.getSourceFile();if(Pr.has($r.fileName)){const Ge=Ds(Wn)&&Ac(Wn.left)?Wn.left.expression:my(Wn)?re.checkDefined(qm(Wn,95,$r)):i_(Wn)||Wn;Bt.push(_T(Ge))}}return Bt.length?[{definition:{type:0,symbol:Hn},references:Bt}]:Yn}function k(He){return He.kind===148&&_I(He.parent)&&He.parent.operator===148}function F(He,Hn,dr){if(Z$(He.kind))return He.kind===116&&Z7(He.parent)||He.kind===148&&!k(He)?void 0:nn(Hn,He.kind,dr,He.kind===148?k:void 0);if(gP(He.parent)&&He.parent.name===He)return Qt(Hn,dr);if(pW(He)&&Ep(He.parent))return[{definition:{type:2,node:He},references:[_T(He)]}];if(EZ(He)){const Mr=SZ(He.parent,He.text);return Mr&&Et(Mr.parent,Mr)}else if(j3(He))return Et(He.parent,He);if(AF(He))return au(He,Hn,dr);if(He.kind===108)return Wl(He)}function $(He,Hn,dr,Mr,Pr,Bt,ln){const Wn=Hn&&ie(He,Hn,Pr,!Eu(ln))||He,$r=Hn?us(Hn,Wn):7,Ge=[],Br=new we(dr,Mr,Hn?X(Hn):0,Pr,Bt,$r,ln,Ge),Ei=!Eu(ln)||!Wn.declarations?void 0:lr(Wn.declarations,gy);if(Ei)wr(Ei.name,Wn,Ei,Br.createSearch(Hn,He,void 0),Br,!0,!0);else if(Hn&&Hn.kind===90&&Wn.escapedName==="default"&&Wn.parent)Tr(Hn,Wn,Br),Fe(Hn,Wn,{exportingModuleSymbol:Wn.parent,exportKind:1},Br);else{const Ln=Br.createSearch(Hn,Wn,void 0,{allSearchSymbols:Hn?za(Wn,Hn,Pr,ln.use===2,!!ln.providePrefixAndSuffixTextForRename,!!ln.implementations):[Wn]});J(Wn,Br,Ln)}return Ge}function J(He,Hn,dr){const Mr=Ct(He);if(Mr)cn(Mr,Mr.getSourceFile(),dr,Hn,!(Nu(Mr)&&!ni(Hn.sourceFiles,Mr)));else for(const Pr of Hn.sourceFiles)Hn.cancellationToken.throwIfCancellationRequested(),Ie(Pr,dr,Hn)}function X(He){switch(He.kind){case 176:case 137:return 1;case 80:if(Fl(He.parent))return re.assert(He.parent.name===He),2;default:return 0}}function ie(He,Hn,dr,Mr){const{parent:Pr}=Hn;return gy(Pr)&&Mr?Wr(Hn,He,Pr,dr):Yr(He.declarations,Bt=>{if(!Bt.parent){if(He.flags&33554432)return;re.fail(`Unexpected symbol at ${re.formatSyntaxKind(Hn.kind)}: ${re.formatSymbol(He)}`)}return rS(Bt.parent)&&fI(Bt.parent.parent)?dr.getPropertyOfType(dr.getTypeFromTypeNode(Bt.parent.parent),He.name):void 0})}let ae;(He=>{He[He.None=0]="None",He[He.Constructor=1]="Constructor",He[He.Class=2]="Class"})(ae||(ae={}));function ve(He){if(!(He.flags&33555968))return;const Hn=He.declarations&&lr(He.declarations,dr=>!Nu(dr)&&!py(dr));return Hn&&Hn.symbol}class we{constructor(Hn,dr,Mr,Pr,Bt,ln,Wn,$r){this.sourceFiles=Hn,this.sourceFilesSet=dr,this.specialSearchKind=Mr,this.checker=Pr,this.cancellationToken=Bt,this.searchMeaning=ln,this.options=Wn,this.result=$r,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=U3(),this.markSeenReExportRHS=U3(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Hn){return this.sourceFilesSet.has(Hn.fileName)}getImportSearches(Hn,dr){return this.importTracker||(this.importTracker=e0e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Hn,dr,this.options.use===2)}createSearch(Hn,dr,Mr,Pr={}){const{text:Bt=S2(Il(i6(dr)||ve(dr)||dr)),allSearchSymbols:ln=[dr]}=Pr,Wn=ey(Bt),$r=this.options.implementations&&Hn?w_(Hn,dr,this.checker):void 0;return{symbol:dr,comingFrom:Mr,text:Bt,escapedText:Wn,parents:$r,allSearchSymbols:ln,includes:Ge=>ni(ln,Ge)}}referenceAdder(Hn){const dr=$d(Hn);let Mr=this.symbolIdToReferences[dr];return Mr||(Mr=this.symbolIdToReferences[dr]=[],this.result.push({definition:{type:0,symbol:Hn},references:Mr})),(Pr,Bt)=>Mr.push(_T(Pr,Bt))}addStringOrCommentReference(Hn,dr){this.result.push({definition:void 0,references:[{kind:0,fileName:Hn,textSpan:dr}]})}markSearchedSymbols(Hn,dr){const Mr=vm(Hn),Pr=this.sourceFileToSeenSymbols[Mr]||(this.sourceFileToSeenSymbols[Mr]=new Set);let Bt=!1;for(const ln of dr)Bt=m2(Pr,$d(ln))||Bt;return Bt}}function Fe(He,Hn,dr,Mr){const{importSearches:Pr,singleReferences:Bt,indirectUsers:ln}=Mr.getImportSearches(Hn,dr);if(Bt.length){const Wn=Mr.referenceAdder(Hn);for(const $r of Bt)Pe($r,Mr)&&Wn($r)}for(const[Wn,$r]of Pr)Rn(Wn.getSourceFile(),Mr.createSearch(Wn,$r,1),Mr);if(ln.length){let Wn;switch(dr.exportKind){case 0:Wn=Mr.createSearch(He,Hn,1);break;case 1:Wn=Mr.options.use===2?void 0:Mr.createSearch(He,Hn,1,{text:"default"});break}if(Wn)for(const $r of ln)Ie($r,Wn,Mr)}}function et(He,Hn,dr,Mr,Pr,Bt,ln,Wn){const $r=e0e(He,new Set(He.map(Ln=>Ln.fileName)),Hn,dr),{importSearches:Ge,indirectUsers:Br,singleReferences:Ei}=$r(Mr,{exportKind:ln?1:0,exportingModuleSymbol:Pr},!1);for(const[Ln]of Ge)Wn(Ln);for(const Ln of Ei)xn(Ln)&&E1(Ln.parent)&&Wn(Ln);for(const Ln of Br)for(const Sr of It(Ln,ln?"default":Bt)){const yi=Hn.getSymbolAtLocation(Sr),go=gt(yi==null?void 0:yi.declarations,Ao=>!!to(Ao,my));xn(Sr)&&!fP(Sr.parent)&&(yi===Mr||go)&&Wn(Sr)}}e.eachExportReference=et;function Pe(He,Hn){return qt(He,Hn)?Hn.options.use!==2?!0:xn(He)?!(fP(He.parent)&&He.escapedText==="default"):!1:!1}function dt(He,Hn){if(He.declarations)for(const dr of He.declarations){const Mr=dr.getSourceFile();Rn(Mr,Hn.createSearch(dr,He,0),Hn,Hn.includesSourceFile(Mr))}}function Ie(He,Hn,dr){xee(He).get(Hn.escapedText)!==void 0&&Rn(He,Hn,dr)}function ct(He,Hn){return kP(He.parent.parent)?Hn.getPropertySymbolOfDestructuringAssignment(He):void 0}function Ct(He){const{declarations:Hn,flags:dr,parent:Mr,valueDeclaration:Pr}=He;if(Pr&&(Pr.kind===218||Pr.kind===231))return Pr;if(!Hn)return;if(dr&8196){const Wn=lr(Hn,$r=>tT($r,2)||IT($r));return Wn?oC(Wn,263):void 0}if(Hn.some(BZ))return;const Bt=Mr&&!(He.flags&262144);if(Bt&&!(eq(Mr)&&!Mr.globalExports))return;let ln;for(const Wn of Hn){const $r=RR(Wn);if(ln&&ln!==$r||!$r||$r.kind===312&&!aE($r))return;if(ln=$r,Jm(ln)){let Ge;for(;Ge=Die(ln);)ln=Ge}}return Bt?ln.getSourceFile():ln}function Lt(He,Hn,dr,Mr=dr){return Ze(He,Hn,dr,()=>!0,Mr)||!1}e.isSymbolReferencedInFile=Lt;function Ze(He,Hn,dr,Mr,Pr=dr){const Bt=DT(He.parent,He.parent.parent)?Dl(Hn.getSymbolsOfParameterPropertyDeclaration(He.parent,He.text)):Hn.getSymbolAtLocation(He);if(Bt)for(const ln of It(dr,Bt.name,Pr)){if(!xn(ln)||ln===He||ln.escapedText!==He.escapedText)continue;const Wn=Hn.getSymbolAtLocation(ln);if(Wn===Bt||Hn.getShorthandAssignmentValueSymbol(ln.parent)===Bt||gy(ln.parent)&&Wr(ln,Wn,ln.parent,Hn)===Bt){const $r=Mr(ln);if($r)return $r}}}e.eachSymbolReferenceInFile=Ze;function Ke(He,Hn){return gi(It(Hn,He),Pr=>!!lG(Pr)).reduce((Pr,Bt)=>{const ln=Mr(Bt);return!gt(Pr.declarationNames)||ln===Pr.depth?(Pr.declarationNames.push(Bt),Pr.depth=ln):lnBr===Pr)&&Mr(ln,$r))return!0}return!1}e.someSignatureUsage=st;function It(He,Hn,dr=He){return Qo(Yt(He,Hn,dr),Mr=>{const Pr=cS(He,Mr);return Pr===He?void 0:Pr})}function Yt(He,Hn,dr=He){const Mr=[];if(!Hn||!Hn.length)return Mr;const Pr=He.text,Bt=Pr.length,ln=Hn.length;let Wn=Pr.indexOf(Hn,dr.pos);for(;Wn>=0&&!(Wn>dr.end);){const $r=Wn+ln;(Wn===0||!RL(Pr.charCodeAt(Wn-1),99))&&($r===Bt||!RL(Pr.charCodeAt($r),99))&&Mr.push(Wn),Wn=Pr.indexOf(Hn,Wn+ln+1)}return Mr}function Et(He,Hn){const dr=He.getSourceFile(),Mr=Hn.text,Pr=Qo(It(dr,Mr,He),Bt=>Bt===Hn||EZ(Bt)&&SZ(Bt,Mr)===Hn?_T(Bt):void 0);return[{definition:{type:1,node:Hn},references:Pr}]}function at(He,Hn){switch(He.kind){case 81:if(ZL(He.parent))return!0;case 80:return He.text.length===Hn.length;case 15:case 11:{const dr=He;return(xZ(dr)||U$(He)||AZ(He)||xd(He.parent)&&A7(He.parent)&&He.parent.arguments[1]===He)&&dr.text.length===Hn.length}case 9:return xZ(He)&&He.text.length===Hn.length;case 90:return Hn.length===7;default:return!1}}function Qt(He,Hn){const dr=ea(He,Mr=>(Hn.throwIfCancellationRequested(),Qo(It(Mr,"meta",Mr),Pr=>{const Bt=Pr.parent;if(gP(Bt))return _T(Bt)})));return dr.length?[{definition:{type:2,node:dr[0].node},references:dr}]:void 0}function nn(He,Hn,dr,Mr){const Pr=ea(He,Bt=>(dr.throwIfCancellationRequested(),Qo(It(Bt,Cf(Hn),Bt),ln=>{if(ln.kind===Hn&&(!Mr||Mr(ln)))return _T(ln)})));return Pr.length?[{definition:{type:2,node:Pr[0].node},references:Pr}]:void 0}function Rn(He,Hn,dr,Mr=!0){return dr.cancellationToken.throwIfCancellationRequested(),cn(He,He,Hn,dr,Mr)}function cn(He,Hn,dr,Mr,Pr){if(Mr.markSearchedSymbols(Hn,dr.allSearchSymbols))for(const Bt of Yt(Hn,dr.text,He))Kt(Hn,Bt,dr,Mr,Pr)}function qt(He,Hn){return!!(xF(He)&Hn.searchMeaning)}function Kt(He,Hn,dr,Mr,Pr){const Bt=cS(He,Hn);if(!at(Bt,dr.text)){!Mr.options.implementations&&(Mr.options.findInStrings&&V3(He,Hn)||Mr.options.findInComments&&Q$(He,Hn))&&Mr.addStringOrCommentReference(He.fileName,p1(Hn,dr.text.length));return}if(!qt(Bt,Mr))return;let ln=Mr.checker.getSymbolAtLocation(Bt);if(!ln)return;const Wn=Bt.parent;if(qE(Wn)&&Wn.propertyName===Bt)return;if(gy(Wn)){re.assert(Bt.kind===80),wr(Bt,ln,Wn,dr,Mr,Pr);return}const $r=_a(dr,ln,Bt,Mr);if(!$r){fr(ln,dr,Mr);return}switch(Mr.specialSearchKind){case 0:Pr&&Tr(Bt,$r,Mr);break;case 1:Vr(Bt,He,dr,Mr);break;case 2:Pn(Bt,dr,Mr);break;default:re.assertNever(Mr.specialSearchKind)}Cs(Bt)&&sa(Bt.parent)&&E7(Bt.parent.parent.parent)&&(ln=Bt.parent.symbol,!ln)||En(Bt,ln,dr,Mr)}function wr(He,Hn,dr,Mr,Pr,Bt,ln){re.assert(!ln||!!Pr.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:Wn,propertyName:$r,name:Ge}=dr,Br=Wn.parent,Ei=Wr(He,Hn,dr,Pr.checker);if(!ln&&!Mr.includes(Ei))return;if($r?He===$r?(Br.moduleSpecifier||Ln(),Bt&&Pr.options.use!==2&&Pr.markSeenReExportRHS(Ge)&&Tr(Ge,re.checkDefined(dr.symbol),Pr)):Pr.markSeenReExportRHS(He)&&Ln():Pr.options.use===2&&Ge.escapedText==="default"||Ln(),!Eu(Pr.options)||ln){const yi=He.escapedText==="default"||dr.name.escapedText==="default"?1:0,go=re.checkDefined(dr.symbol),Ao=t0e(go,yi,Pr.checker);Ao&&Fe(He,go,Ao,Pr)}if(Mr.comingFrom!==1&&Br.moduleSpecifier&&!$r&&!Eu(Pr.options)){const Sr=Pr.checker.getExportSpecifierLocalTargetSymbol(dr);Sr&&dt(Sr,Pr)}function Ln(){Bt&&Tr(He,Ei,Pr)}}function Wr(He,Hn,dr,Mr){return jt(He,dr)&&Mr.getExportSpecifierLocalTargetSymbol(dr)||Hn}function jt(He,Hn){const{parent:dr,propertyName:Mr,name:Pr}=Hn;return re.assert(Mr===He||Pr===He),Mr?Mr===He:!dr.parent.moduleSpecifier}function En(He,Hn,dr,Mr){const Pr=n9e(He,Hn,Mr.checker,dr.comingFrom===1);if(!Pr)return;const{symbol:Bt}=Pr;Pr.kind===0?Eu(Mr.options)||dt(Bt,Mr):Fe(He,Bt,Pr.exportInfo,Mr)}function fr({flags:He,valueDeclaration:Hn},dr,Mr){const Pr=Mr.checker.getShorthandAssignmentValueSymbol(Hn),Bt=Hn&&i_(Hn);!(He&33554432)&&Bt&&dr.includes(Pr)&&Tr(Bt,Pr,Mr)}function Tr(He,Hn,dr){const{kind:Mr,symbol:Pr}="kind"in Hn?Hn:{kind:void 0,symbol:Hn};if(dr.options.use===2&&He.kind===90)return;const Bt=dr.referenceAdder(Pr);dr.options.implementations?Mo(He,Bt,dr):Bt(He,Mr)}function Vr(He,Hn,dr,Mr){V$(He)&&Tr(He,dr.symbol,Mr);const Pr=()=>Mr.referenceAdder(dr.symbol);if(Fl(He.parent))re.assert(He.kind===90||He.parent.name===He),Fr(dr.symbol,Hn,Pr());else{const Bt=yf(He);Bt&&(io(Bt,Pr()),os(Bt,Mr))}}function Pn(He,Hn,dr){Tr(He,Hn.symbol,dr);const Mr=He.parent;if(dr.options.use===2||!Fl(Mr))return;re.assert(Mr.name===He);const Pr=dr.referenceAdder(Hn.symbol);for(const Bt of Mr.members)Mv(Bt)&&pd(Bt)&&Bt.body&&Bt.body.forEachChild(function ln(Wn){Wn.kind===110?Pr(Wn):!F_(Wn)&&!Fl(Wn)&&Wn.forEachChild(ln)})}function Fr(He,Hn,dr){const Mr=Ki(He);if(Mr&&Mr.declarations)for(const Pr of Mr.declarations){const Bt=qm(Pr,137,Hn);re.assert(Pr.kind===176&&!!Bt),dr(Bt)}He.exports&&He.exports.forEach(Pr=>{const Bt=Pr.valueDeclaration;if(Bt&&Bt.kind===174){const ln=Bt.body;ln&&Cu(ln,110,Wn=>{V$(Wn)&&dr(Wn)})}})}function Ki(He){return He.members&&He.members.get("__constructor")}function io(He,Hn){const dr=Ki(He.symbol);if(dr&&dr.declarations)for(const Mr of dr.declarations){re.assert(Mr.kind===176);const Pr=Mr.body;Pr&&Cu(Pr,108,Bt=>{hZ(Bt)&&Hn(Bt)})}}function no(He){return!!Ki(He.symbol)}function os(He,Hn){if(no(He))return;const dr=He.symbol,Mr=Hn.createSearch(void 0,dr,void 0);J(dr,Hn,Mr)}function Mo(He,Hn,dr){if(ON(He)&&Au(He.parent)){Hn(He);return}if(He.kind!==80)return;He.parent.kind===304&&Qu(He,dr.checker,Hn);const Mr=$i(He);if(Mr){Hn(Mr);return}const Pr=Ua(He,Wn=>!Pu(Wn.parent)&&!pc(Wn.parent)&&!rb(Wn.parent)),Bt=Pr.parent;if(_P(Bt)&&Bt.type===Pr&&dr.markSeenContainingTypeReference(Bt))if(J2(Bt))ln(Bt.initializer);else if(F_(Bt)&&Bt.body){const Wn=Bt.body;Wn.kind===241?dR(Wn,$r=>{$r.expression&&ln($r.expression)}):ln(Wn)}else f7(Bt)&&ln(Bt.expression);function ln(Wn){ki(Wn)&&Hn(Wn)}}function $i(He){return xn(He)||Ac(He)?$i(He.parent):cC(He)?to(He.parent.parent,bb(Fl,xp)):void 0}function ki(He){switch(He.kind){case 217:return ki(He.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function gc(He,Hn,dr,Mr){if(He===Hn)return!0;const Pr=$d(He)+","+$d(Hn),Bt=dr.get(Pr);if(Bt!==void 0)return Bt;dr.set(Pr,!1);const ln=!!He.declarations&&He.declarations.some(Wn=>uG(Wn).some($r=>{const Ge=Mr.getTypeAtLocation($r);return!!Ge&&!!Ge.symbol&&gc(Ge.symbol,Hn,dr,Mr)}));return dr.set(Pr,ln),ln}function Wl(He){let Hn=h0(He,!1);if(!Hn)return;let dr=256;switch(Hn.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:dr&=ZC(Hn),Hn=Hn.parent;break;default:return}const Mr=Hn.getSourceFile(),Pr=Qo(It(Mr,"super",Hn),Bt=>{if(Bt.kind!==108)return;const ln=h0(Bt,!1);return ln&&pd(ln)===!!dr&&ln.parent.symbol===Hn.symbol?_T(Bt):void 0});return[{definition:{type:0,symbol:Hn.symbol},references:Pr}]}function Jc(He){return He.kind===80&&He.parent.kind===169&&He.parent.name===He}function au(He,Hn,dr){let Mr=RT(He,!1,!1),Pr=256;switch(Mr.kind){case 174:case 173:if(iC(Mr)){Pr&=ZC(Mr),Mr=Mr.parent;break}case 172:case 171:case 176:case 177:case 178:Pr&=ZC(Mr),Mr=Mr.parent;break;case 312:if(Bv(Mr)||Jc(He))return;case 262:case 218:break;default:return}const Bt=ea(Mr.kind===312?Hn:[Mr.getSourceFile()],Wn=>(dr.throwIfCancellationRequested(),It(Wn,"this",Nu(Mr)?Wn:Mr).filter($r=>{if(!AF($r))return!1;const Ge=RT($r,!1,!1);if(!ck(Ge))return!1;switch(Mr.kind){case 218:case 262:return Mr.symbol===Ge.symbol;case 174:case 173:return iC(Mr)&&Mr.symbol===Ge.symbol;case 231:case 263:case 210:return Ge.parent&&ck(Ge.parent)&&Mr.symbol===Ge.parent.symbol&&pd(Ge)===!!Pr;case 312:return Ge.kind===312&&!Bv(Ge)&&!Jc($r)}}))).map(Wn=>_T(Wn));return[{definition:{type:3,node:Yr(Bt,Wn=>Os(Wn.node.parent)?Wn.node:void 0)||He},references:Bt}]}function qn(He,Hn,dr,Mr){const Pr=bf(He,dr),Bt=ea(Hn,ln=>(Mr.throwIfCancellationRequested(),Qo(It(ln,He.text),Wn=>{if(Cm(Wn)&&Wn.text===He.text)if(Pr){const $r=bf(Wn,dr);if(Pr!==dr.getStringType()&&Pr===$r)return _T(Wn,2)}else return K7(Wn)&&!mk(Wn,ln)?void 0:_T(Wn,2)})));return[{definition:{type:4,node:He},references:Bt}]}function za(He,Hn,dr,Mr,Pr,Bt){const ln=[];return Ia(He,Hn,dr,Mr,!(Mr&&Pr),(Wn,$r,Ge)=>{Ge&&na(He)!==na(Ge)&&(Ge=void 0),ln.push(Ge||$r||Wn)},()=>!Bt),ln}function Ia(He,Hn,dr,Mr,Pr,Bt,ln){const Wn=Aee(Hn);if(Wn){const yi=dr.getShorthandAssignmentValueSymbol(Hn.parent);if(yi&&Mr)return Bt(yi,void 0,void 0,3);const go=dr.getContextualType(Wn.parent),Ao=go&&Yr(_le(Wn,dr,go,!0),kt=>Ln(kt,4));if(Ao)return Ao;const Io=ct(Hn,dr),ze=Io&&Bt(Io,void 0,void 0,4);if(ze)return ze;const Ce=yi&&Bt(yi,void 0,void 0,3);if(Ce)return Ce}const $r=d(Hn,He,dr);if($r){const yi=Bt($r,void 0,void 0,1);if(yi)return yi}const Ge=Ln(He);if(Ge)return Ge;if(He.valueDeclaration&&DT(He.valueDeclaration,He.valueDeclaration.parent)){const yi=dr.getSymbolsOfParameterPropertyDeclaration(uc(He.valueDeclaration,Os),He.name);return re.assert(yi.length===2&&!!(yi[0].flags&1)&&!!(yi[1].flags&4)),Ln(He.flags&1?yi[1]:yi[0])}const Br=Rh(He,281);if(!Mr||Br&&!Br.propertyName){const yi=Br&&dr.getExportSpecifierLocalTargetSymbol(Br);if(yi){const go=Bt(yi,void 0,void 0,1);if(go)return go}}if(!Mr){let yi;return Pr?yi=BZ(Hn.parent)?Nj(dr,Hn.parent):void 0:yi=Sr(He,dr),yi&&Ln(yi,4)}if(re.assert(Mr),Pr){const yi=Sr(He,dr);return yi&&Ln(yi,4)}function Ln(yi,go){return Yr(dr.getRootSymbols(yi),Ao=>Bt(yi,Ao,void 0,go)||(Ao.parent&&Ao.parent.flags&96&&ln(Ao)?zi(Ao.parent,Ao.name,dr,Io=>Bt(yi,Ao,Io,go)):void 0))}function Sr(yi,go){const Ao=Rh(yi,208);if(Ao&&BZ(Ao))return Nj(go,Ao)}}function zi(He,Hn,dr,Mr){const Pr=new Map;return Bt(He);function Bt(ln){if(!(!(ln.flags&96)||!y0(Pr,$d(ln))))return Yr(ln.declarations,Wn=>Yr(uG(Wn),$r=>{const Ge=dr.getTypeAtLocation($r),Br=Ge&&Ge.symbol&&dr.getPropertyOfType(Ge,Hn);return Ge&&Br&&(Yr(dr.getRootSymbols(Br),Mr)||Bt(Ge.symbol))}))}}function na(He){return He.valueDeclaration?!!(Cb(He.valueDeclaration)&256):!1}function _a(He,Hn,dr,Mr){const{checker:Pr}=Mr;return Ia(Hn,dr,Pr,!1,Mr.options.use!==2||!!Mr.options.providePrefixAndSuffixTextForRename,(Bt,ln,Wn,$r)=>(Wn&&na(Hn)!==na(Wn)&&(Wn=void 0),He.includes(Wn||ln||Bt)?{symbol:ln&&!(I_(Bt)&6)?ln:Bt,kind:$r}:void 0),Bt=>!(He.parents&&!He.parents.some(ln=>gc(Bt.parent,ln,Mr.inheritsFromCache,Pr))))}function us(He,Hn){let dr=xF(He);const{declarations:Mr}=Hn;if(Mr){let Pr;do{Pr=dr;for(const Bt of Mr){const ln=j$(Bt);ln&dr&&(dr|=ln)}}while(dr!==Pr)}return dr}e.getIntersectingMeaningFromDeclarations=us;function Au(He){return He.flags&33554432?!(xp(He)||z0(He)):E9(He)?J2(He):Vd(He)?!!He.body:Fl(He)||nie(He)}function Qu(He,Hn,dr){const Mr=Hn.getSymbolAtLocation(He),Pr=Hn.getShorthandAssignmentValueSymbol(Mr.valueDeclaration);if(Pr)for(const Bt of Pr.getDeclarations())j$(Bt)&1&&dr(Bt)}e.getReferenceEntriesForShorthandPropertyAssignment=Qu;function Cu(He,Hn,dr){s_(He,Mr=>{Mr.kind===Hn&&dr(Mr),Cu(Mr,Hn,dr)})}function yf(He){return IH(TZ(He).parent)}function w_(He,Hn,dr){const Mr=sS(He)?He.parent:void 0,Pr=Mr&&dr.getTypeAtLocation(Mr.expression),Bt=Qo(Pr&&(Pr.isUnionOrIntersection()?Pr.types:Pr.symbol===Hn.parent?void 0:[Pr]),ln=>ln.symbol&&ln.symbol.flags&96?ln.symbol:void 0);return Bt.length===0?void 0:Bt}function Eu(He){return He.use===2&&He.providePrefixAndSuffixTextForRename}})(OP||(OP={}))}}),Wf={};Oe(Wf,{Core:()=>OP,DefinitionKind:()=>c0e,EntryKind:()=>l0e,ExportKind:()=>r0e,FindReferencesUse:()=>u0e,ImportExport:()=>i0e,createImportTracker:()=>e0e,findModuleReferences:()=>Z5e,findReferenceOrRenameEntries:()=>wdt,findReferencedSymbols:()=>kdt,getContextNode:()=>AI,getExportInfo:()=>t0e,getImplementationsAtPosition:()=>Ndt,getImportOrExportSymbol:()=>n9e,getReferenceEntriesForNode:()=>o9e,getTextSpanOfEntry:()=>a0e,isContextWithStartAndEndNode:()=>r9e,isDeclarationOfSymbol:()=>l9e,isWriteAccessForReference:()=>s0e,nodeEntry:()=>_T,toContextSpan:()=>o0e,toHighlightSpan:()=>Bdt,toReferenceEntry:()=>c9e,toRenameLocation:()=>Mdt});var u9e=G({"src/services/_namespaces/ts.FindAllReferences.ts"(){Ddt(),Gdt()}});function f9e(e,n,i,c,u){var d;const h=d9e(n,i,e),S=h&&[Qdt(h.reference.fileName,h.fileName,h.unverified)]||Yn;if(h!=null&&h.file)return S;const E=cS(n,i);if(E===n)return;const{parent:P}=E,k=e.getTypeChecker();if(E.kind===164||xn(E)&&AA(P)&&P.tagName===E)return Vdt(k,E)||Yn;if(EZ(E)){const ae=SZ(E.parent,E.text);return ae?[f0e(k,ae,"label",E.text,void 0)]:void 0}if(E.kind===107){const ae=Ua(E.parent,ve=>Ep(ve)?"quit":Vd(ve));return ae?[uV(k,ae)]:void 0}if(E.kind===135){const ae=Ua(E,we=>Vd(we));return ae&>(ae.modifiers,we=>we.kind===134)?[uV(k,ae)]:void 0}if(E.kind===127){const ae=Ua(E,we=>Vd(we));return ae&&ae.asteriskToken?[uV(k,ae)]:void 0}if(pW(E)&&Ep(E.parent)){const ae=E.parent.parent,{symbol:ve,failedAliasResolution:we}=nte(ae,k,u),Fe=gi(ae.members,Ep),et=ve?k.symbolToString(ve,ae):"",Pe=E.getSourceFile();return Vn(Fe,dt=>{let{pos:Ie}=Db(dt);return Ie=Ff(Pe.text,Ie),f0e(k,dt,"constructor","static {}",et,!1,we,{start:Ie,length:6})})}let{symbol:F,failedAliasResolution:$}=nte(E,k,u),J=E;if(c&&$){const ae=Ot([E,...(F==null?void 0:F.declarations)||Yn],we=>Ua(we,JMe)),ve=ae&&C7(ae);ve&&({symbol:F,failedAliasResolution:$}=nte(ve,k,u),J=ve)}if(!F&&WZ(J)){const ae=(d=e.getResolvedModule(n,J.text,PA(n,J)))==null?void 0:d.resolvedModule;if(ae)return[{name:J.text,fileName:ae.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:p1(0,0),failedAliasResolution:$,isAmbient:Zb(ae.resolvedFileName),unverified:J!==E}]}if(!F)return Hi(S,Kdt(E,k));if(c&&jr(F.declarations,ae=>ae.getSourceFile().fileName===n.fileName))return;const X=ept(k,E);if(X&&!(m1(E.parent)&&tpt(X))){const ae=uV(k,X,$);if(k.getRootSymbols(F).some(ve=>jdt(ve,X)))return[ae];{const ve=A4(k,F,E,$,X)||Yn;return E.kind===108?[ae,...ve]:[...ve,ae]}}if(E.parent.kind===304){const ae=k.getShorthandAssignmentValueSymbol(F.valueDeclaration),ve=ae!=null&&ae.declarations?ae.declarations.map(we=>jF(we,k,ae,E,!1,$)):Yn;return Hi(ve,_9e(k,E))}if(qg(E)&&sa(P)&&Ch(P.parent)&&E===(P.propertyName||P.name)){const ae=tq(E),ve=k.getTypeAtLocation(P.parent);return ae===void 0?Yn:ea(ve.isUnion()?ve.types:[ve],we=>{const Fe=we.getProperty(ae);return Fe&&A4(k,Fe,E)})}const ie=_9e(k,E);return Hi(S,ie.length?ie:A4(k,F,E,$))}function jdt(e,n){var i;return e===n.symbol||e===n.symbol.parent||Zv(n.parent)||!uR(n.parent)&&e===((i=to(n.parent,ck))==null?void 0:i.symbol)}function _9e(e,n){const i=Aee(n);if(i){const c=i&&e.getContextualType(i.parent);if(c)return ea(_le(i,e,c,!1),u=>A4(e,u,n))}return Yn}function Vdt(e,n){const i=Ua(n,J_);if(!(i&&i.name))return;const c=Ua(i,Fl);if(!c)return;const u=YC(c);if(!u)return;const d=rg(u.expression),h=v0(d)?d.symbol:e.getSymbolAtLocation(d);if(!h)return;const S=Ic(z8(i.name)),E=ev(i)?e.getPropertyOfType(e.getTypeOfSymbol(h),S):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(h),S);if(E)return A4(e,E,n)}function d9e(e,n,i){var c,u;const d=C4(e.referencedFiles,n);if(d){const E=i.getSourceFileFromReference(e,d);return E&&{reference:d,fileName:E.fileName,file:E,unverified:!1}}const h=C4(e.typeReferenceDirectives,n);if(h){const E=(c=i.getResolvedTypeReferenceDirectives().get(h.fileName,h.resolutionMode||e.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective,P=E&&i.getSourceFile(E.resolvedFileName);return P&&{reference:h,fileName:P.fileName,file:P,unverified:!1}}const S=C4(e.libReferenceDirectives,n);if(S){const E=i.getLibFileFromReference(S);return E&&{reference:S,fileName:E.fileName,file:E,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const E=MR(e,n);let P;if(WZ(E)&&Kv(E.text)&&(P=i.getResolvedModule(e,E.text,PA(e,E)))){const k=(u=P.resolvedModule)==null?void 0:u.resolvedFileName,F=k||NL(ws(e.fileName),E.text);return{file:i.getSourceFile(F),fileName:F,reference:{pos:E.getStart(),end:E.getEnd(),fileName:E.text},unverified:!k}}}}function Udt(e,n){const i=n.symbol.name;if(!d0e.has(i))return!1;const c=e.resolveName(i,void 0,788968,!1);return!!c&&c===n.target.symbol}function p9e(e,n){if(!n.aliasSymbol)return!1;const i=n.aliasSymbol.name;if(!d0e.has(i))return!1;const c=e.resolveName(i,void 0,788968,!1);return!!c&&c===n.aliasSymbol}function Hdt(e,n,i,c){var u,d;if(ji(n)&4&&Udt(e,n))return GF(e.getTypeArguments(n)[0],e,i,c);if(p9e(e,n)&&n.aliasTypeArguments)return GF(n.aliasTypeArguments[0],e,i,c);if(ji(n)&32&&n.target&&p9e(e,n.target)){const h=(d=(u=n.aliasSymbol)==null?void 0:u.declarations)==null?void 0:d[0];if(h&&z0(h)&&uE(h.type)&&h.type.typeArguments)return GF(e.getTypeAtLocation(h.type.typeArguments[0]),e,i,c)}return[]}function Jdt(e,n,i){const c=cS(n,i);if(c===n)return;if(gP(c.parent)&&c.parent.name===c)return GF(e.getTypeAtLocation(c.parent),e,c.parent,!1);const{symbol:u,failedAliasResolution:d}=nte(c,e,!1);if(!u)return;const h=e.getTypeOfSymbolAtLocation(u,c),S=$dt(u,h,e),E=S&&GF(S,e,c,d),[P,k]=E&&E.length!==0?[S,E]:[h,GF(h,e,c,d)];return k.length?[...Hdt(e,P,c,d),...k]:!(u.flags&111551)&&u.flags&788968?A4(e,dg(u,e),c,d):void 0}function GF(e,n,i,c){return ea(e.isUnion()&&!(e.flags&32)?e.types:[e],u=>u.symbol&&A4(n,u.symbol,i,c))}function $dt(e,n,i){if(n.symbol===e||e.valueDeclaration&&n.symbol&&Kc(e.valueDeclaration)&&e.valueDeclaration.initializer===n.symbol.valueDeclaration){const c=n.getCallSignatures();if(c.length===1)return i.getReturnTypeOfSignature(Dl(c))}}function qdt(e,n,i){const c=f9e(e,n,i);if(!c||c.length===0)return;const u=C4(n.referencedFiles,i)||C4(n.typeReferenceDirectives,i)||C4(n.libReferenceDirectives,i);if(u)return{definitions:c,textSpan:PP(u)};const d=cS(n,i),h=p1(d.getStart(),d.getWidth());return{definitions:c,textSpan:h}}function Kdt(e,n){return Qo(n.getIndexInfosAtLocation(e),i=>i.declaration&&uV(n,i.declaration))}function nte(e,n,i){const c=n.getSymbolAtLocation(e);let u=!1;if(c!=null&&c.declarations&&c.flags&2097152&&!i&&Xdt(e,c.declarations[0])){const d=n.getAliasedSymbol(c);if(d.declarations)return{symbol:d};u=!0}return{symbol:c,failedAliasResolution:u}}function Xdt(e,n){return e.kind!==80?!1:e.parent===n?!0:n.kind!==274}function Ydt(e){if(!eT(e))return!1;const n=Ua(e,i=>Zv(i)?!0:eT(i)?!1:"quit");return!!n&&jy(n)===5}function A4(e,n,i,c,u){const d=gi(n.declarations,F=>F!==u),h=gi(d,F=>!Ydt(F)),S=gt(h)?h:d;return E()||P()||Vn(S,F=>jF(F,e,n,i,!1,c));function E(){if(n.flags&32&&!(n.flags&19)&&(V$(i)||i.kind===137)){const F=lr(d,Fl)||re.fail("Expected declaration to have at least one class-like declaration");return k(F.members,!0)}}function P(){return yZ(i)||H$(i)?k(d,!1):void 0}function k(F,$){if(!F)return;const J=F.filter($?Lh:F_),X=J.filter(ie=>!!ie.body);return J.length?X.length!==0?X.map(ie=>jF(ie,e,n,i)):[jF(yl(J),e,n,i,!1,c)]:void 0}}function jF(e,n,i,c,u,d){const h=n.symbolToString(i),S=W6.getSymbolKind(n,i,c),E=i.parent?n.symbolToString(i.parent,c):"";return f0e(n,e,S,h,E,u,d)}function f0e(e,n,i,c,u,d,h,S){const E=n.getSourceFile();if(!S){const P=i_(n)||n;S=sT(P,E)}return{fileName:E.fileName,textSpan:S,kind:i,name:c,containerKind:void 0,containerName:u,...Wf.toContextSpan(S,E,Wf.getContextNode(n)),isLocal:!_0e(e,n),isAmbient:!!(n.flags&33554432),unverified:d,failedAliasResolution:h}}function _0e(e,n){if(e.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(J2(n.parent)&&n.parent.initializer===n)return _0e(e,n.parent);switch(n.kind){case 172:case 177:case 178:case 174:if(tT(n,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return _0e(e,n.parent);default:return!1}}function uV(e,n,i){return jF(n,e,n.symbol,n,!1,i)}function C4(e,n){return lr(e,i=>P8(i,n))}function Qdt(e,n,i){return{fileName:n,textSpan:Yy(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:i}}function Zdt(e){const n=Ua(e,c=>!sS(c)),i=n==null?void 0:n.parent;return i&&uR(i)&&rG(i)===n?i:void 0}function ept(e,n){const i=Zdt(n),c=i&&e.getResolvedSignature(i);return to(c&&c.declaration,u=>F_(u)&&!e0(u))}function tpt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var d0e,npt=G({"src/services/goToDefinition.ts"(){xl(),d0e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),D4={};Oe(D4,{createDefinitionInfo:()=>jF,findReferenceInPosition:()=>C4,getDefinitionAndBoundSpan:()=>qdt,getDefinitionAtPosition:()=>f9e,getReferenceAtPosition:()=>d9e,getTypeDefinitionAtPosition:()=>Jdt});var rpt=G({"src/services/_namespaces/ts.GoToDefinition.ts"(){npt()}});function ipt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function opt(e){return e.includeInlayParameterNameHints==="literals"}function vQe(e){return e.interactiveInlayHints===!0}function apt(e){const{file:n,program:i,span:c,cancellationToken:u,preferences:d}=e,h=n.text,S=i.getCompilerOptions(),E=OS(n,d),P=i.getTypeChecker(),k=[];return F(n),k;function F(Et){if(!(!Et||Et.getFullWidth()===0)){switch(Et.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:u.throwIfCancellationRequested()}if(zz(c,Et.pos,Et.getFullWidth())&&!(pc(Et)&&!cC(Et)))return d.includeInlayVariableTypeHints&&Kc(Et)||d.includeInlayPropertyDeclarationTypeHints&&nu(Et)?we(Et):d.includeInlayEnumMemberValueHints&&pI(Et)?ae(Et):ipt(d)&&(xd(Et)||sb(Et))?Fe(Et):(d.includeInlayFunctionParameterTypeHints&&Vd(Et)&&YH(Et)&&Ct(Et),d.includeInlayFunctionLikeReturnTypeHints&&$(Et)&&Ie(Et)),s_(Et,F)}}function $(Et){return $m(Et)||Jm(Et)||mg(Et)||tm(Et)||lE(Et)}function J(Et,at,Qt,nn){let Rn=`${nn?"...":""}${Et}`,cn;vQe(d)?(cn=[Yt(Rn,at),{text:":"}],Rn=""):Rn+=":",k.push({text:Rn,position:Qt,kind:"Parameter",whitespaceAfter:!0,displayParts:cn})}function X(Et,at){k.push({text:typeof Et=="string"?`: ${Et}`:"",displayParts:typeof Et=="string"?void 0:[{text:": "},...Et],position:at,kind:"Type",whitespaceBefore:!0})}function ie(Et,at){k.push({text:`= ${Et}`,position:at,kind:"Enum",whitespaceBefore:!0})}function ae(Et){if(Et.initializer)return;const at=P.getConstantValue(Et);at!==void 0&&ie(at.toString(),Et.end)}function ve(Et){return Et.symbol&&Et.symbol.flags&1536}function we(Et){if(!Et.initializer||$_(Et.name)||Kc(Et)&&!It(Et)||Zy(Et))return;const Qt=P.getTypeAtLocation(Et);if(ve(Qt))return;const nn=Ke(Qt);if(nn){const Rn=typeof nn=="string"?nn:nn.map(qt=>qt.text).join("");if(d.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pN(Et.name.getText(),Rn))return;X(nn,Et.name.end)}}function Fe(Et){const at=Et.arguments;if(!at||!at.length)return;const Qt=[],nn=P.getResolvedSignatureForSignatureHelp(Et,Qt);if(!nn||!Qt.length)return;let Rn=0;for(const cn of at){const qt=rg(cn);if(opt(d)&&!dt(qt)){Rn++;continue}let Kt=0;if(WT(qt)){const Wr=P.getTypeAtLocation(qt.expression);if(P.isTupleType(Wr)){const{elementFlags:jt,fixedLength:En}=Wr.target;if(En===0)continue;const fr=Ho(jt,Vr=>!(Vr&1));(fr<0?En:fr)>0&&(Kt=fr<0?En:fr)}}const wr=P.getParameterIdentifierInfoAtPosition(nn,Rn);if(Rn=Rn+(Kt||1),wr){const{parameter:Wr,parameterName:jt,isRestParameter:En}=wr;if(!(d.includeInlayParameterNameHintsWhenArgumentMatchesName||!et(qt,jt))&&!En)continue;const Tr=Ic(jt);if(Pe(qt,Tr))continue;J(Tr,Wr,cn.getStart(),En)}}}function et(Et,at){return xn(Et)?Et.text===at:Ac(Et)?Et.name.text===at:!1}function Pe(Et,at){if(!H2(at,S.target,$9(n.scriptKind)))return!1;const Qt=JD(h,Et.pos);if(!(Qt!=null&&Qt.length))return!1;const nn=yke(at);return gt(Qt,Rn=>nn.test(h.substring(Rn.pos,Rn.end)))}function dt(Et){switch(Et.kind){case 224:{const at=Et.operand;return aR(at)||xn(at)&&d3(at.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const at=Et.escapedText;return st(at)||d3(at)}}return aR(Et)}function Ie(Et){if($m(Et)&&!qm(Et,21,n)||kS(Et)||!Et.body)return;const Qt=P.getSignatureFromDeclaration(Et);if(!Qt)return;const nn=P.getReturnTypeOfSignature(Qt);if(ve(nn))return;const Rn=Ke(nn);Rn&&X(Rn,ct(Et))}function ct(Et){const at=qm(Et,22,n);return at?at.end:Et.parameters.end}function Ct(Et){const at=P.getSignatureFromDeclaration(Et);if(at)for(let Qt=0;Qt{const Rn=P.typeToTypeNode(Et,void 0,71286784);re.assertIsDefined(Rn,"should always get typenode"),Qt.writeNode(4,Rn,n,nn)})}function Ke(Et){if(!vQe(d))return Ze(Et);const Qt=P.typeToTypeNode(Et,void 0,71286784);re.assertIsDefined(Qt,"should always get typenode");const nn=[];return Rn(Qt),nn;function Rn(Kt){if(!Kt)return;const wr=Cf(Kt.kind);if(wr){nn.push({text:wr});return}if(aR(Kt)){nn.push({text:qt(Kt)});return}switch(Kt.kind){case 80:const Wr=Kt,jt=Kr(Wr),En=Wr.symbol&&Wr.symbol.declarations&&Wr.symbol.declarations.length&&i_(Wr.symbol.declarations[0]);En?nn.push(Yt(jt,En)):nn.push({text:jt});break;case 166:const fr=Kt;Rn(fr.left),nn.push({text:"."}),Rn(fr.right);break;case 182:const Tr=Kt;Tr.assertsModifier&&nn.push({text:"asserts "}),Rn(Tr.parameterName),Tr.type&&(nn.push({text:" is "}),Rn(Tr.type));break;case 183:const Vr=Kt;Rn(Vr.typeName),Vr.typeArguments&&(nn.push({text:"<"}),cn(Vr.typeArguments,", "),nn.push({text:">"}));break;case 168:const Pn=Kt;Pn.modifiers&&cn(Pn.modifiers," "),Rn(Pn.name),Pn.constraint&&(nn.push({text:" extends "}),Rn(Pn.constraint)),Pn.default&&(nn.push({text:" = "}),Rn(Pn.default));break;case 169:const Fr=Kt;Fr.modifiers&&cn(Fr.modifiers," "),Fr.dotDotDotToken&&nn.push({text:"..."}),Rn(Fr.name),Fr.questionToken&&nn.push({text:"?"}),Fr.type&&(nn.push({text:": "}),Rn(Fr.type));break;case 185:const Ki=Kt;nn.push({text:"new "}),Ki.typeParameters&&(nn.push({text:"<"}),cn(Ki.typeParameters,", "),nn.push({text:">"})),nn.push({text:"("}),cn(Ki.parameters,", "),nn.push({text:")"}),nn.push({text:" => "}),Rn(Ki.type);break;case 186:const io=Kt;nn.push({text:"typeof "}),Rn(io.exprName),io.typeArguments&&(nn.push({text:"<"}),cn(io.typeArguments,", "),nn.push({text:">"}));break;case 187:const no=Kt;nn.push({text:"{"}),no.members.length&&(nn.push({text:" "}),cn(no.members,"; "),nn.push({text:" "})),nn.push({text:"}"});break;case 188:Rn(Kt.elementType),nn.push({text:"[]"});break;case 189:nn.push({text:"["}),cn(Kt.elements,", "),nn.push({text:"]"});break;case 202:const os=Kt;os.dotDotDotToken&&nn.push({text:"..."}),Rn(os.name),os.questionToken&&nn.push({text:"?"}),nn.push({text:": "}),Rn(os.type);break;case 190:Rn(Kt.type),nn.push({text:"?"});break;case 191:nn.push({text:"..."}),Rn(Kt.type);break;case 192:cn(Kt.types," | ");break;case 193:cn(Kt.types," & ");break;case 194:const Mo=Kt;Rn(Mo.checkType),nn.push({text:" extends "}),Rn(Mo.extendsType),nn.push({text:" ? "}),Rn(Mo.trueType),nn.push({text:" : "}),Rn(Mo.falseType);break;case 195:nn.push({text:"infer "}),Rn(Kt.typeParameter);break;case 196:nn.push({text:"("}),Rn(Kt.type),nn.push({text:")"});break;case 198:const $i=Kt;nn.push({text:`${Cf($i.operator)} `}),Rn($i.type);break;case 199:const ki=Kt;Rn(ki.objectType),nn.push({text:"["}),Rn(ki.indexType),nn.push({text:"]"});break;case 200:const gc=Kt;nn.push({text:"{ "}),gc.readonlyToken&&(gc.readonlyToken.kind===40?nn.push({text:"+"}):gc.readonlyToken.kind===41&&nn.push({text:"-"}),nn.push({text:"readonly "})),nn.push({text:"["}),Rn(gc.typeParameter),gc.nameType&&(nn.push({text:" as "}),Rn(gc.nameType)),nn.push({text:"]"}),gc.questionToken&&(gc.questionToken.kind===40?nn.push({text:"+"}):gc.questionToken.kind===41&&nn.push({text:"-"}),nn.push({text:"?"})),nn.push({text:": "}),gc.type&&Rn(gc.type),nn.push({text:"; }"});break;case 201:Rn(Kt.literal);break;case 184:const Wl=Kt;Wl.typeParameters&&(nn.push({text:"<"}),cn(Wl.typeParameters,", "),nn.push({text:">"})),nn.push({text:"("}),cn(Wl.parameters,", "),nn.push({text:")"}),nn.push({text:" => "}),Rn(Wl.type);break;case 205:const Jc=Kt;Jc.isTypeOf&&nn.push({text:"typeof "}),nn.push({text:"import("}),Rn(Jc.argument),Jc.assertions&&(nn.push({text:", { assert: "}),cn(Jc.assertions.assertClause.elements,", "),nn.push({text:" }"})),nn.push({text:")"}),Jc.qualifier&&(nn.push({text:"."}),Rn(Jc.qualifier)),Jc.typeArguments&&(nn.push({text:"<"}),cn(Jc.typeArguments,", "),nn.push({text:">"}));break;case 171:const au=Kt;au.modifiers&&cn(au.modifiers," "),Rn(au.name),au.questionToken&&nn.push({text:"?"}),au.type&&(nn.push({text:": "}),Rn(au.type));break;default:re.failBadSyntaxKind(Kt)}}function cn(Kt,wr){Kt.forEach((Wr,jt)=>{jt>0&&nn.push({text:wr}),Rn(Wr)})}function qt(Kt){return Sd(Kt)?E===0?`'${Q8(Kt.text,39)}'`:`"${Q8(Kt.text,34)}"`:Kt.text}}function st(Et){return Et==="undefined"}function It(Et){if((X8(Et)||Kc(Et)&&rH(Et))&&Et.initializer){const at=rg(Et.initializer);return!(dt(at)||sb(at)||el(at)||f7(at))}return!0}function Yt(Et,at){const Qt=at.getSourceFile();return{text:Et,span:sT(at,Qt),file:Qt.fileName}}}var yke,bQe=G({"src/services/inlayHints.ts"(){xl(),yke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),vke={};Oe(vke,{provideInlayHints:()=>apt});var m9e=G({"src/services/_namespaces/ts.InlayHints.ts"(){bQe()}});function spt(e,n){const i=[];return hE(e,c=>{for(const u of lpt(c)){const d=uC(u)&&u.tags&&lr(u.tags,S=>S.kind===334&&(S.tagName.escapedText==="inheritDoc"||S.tagName.escapedText==="inheritdoc"));if(u.comment===void 0&&!d||uC(u)&&c.kind!==353&&c.kind!==345&&u.tags&&u.tags.some(S=>S.kind===353||S.kind===345)&&!u.tags.some(S=>S.kind===348||S.kind===349))continue;let h=u.comment?Bq(u.comment,n):[];d&&d.comment&&(h=h.concat(Bq(d.comment,n))),ni(i,h,cpt)||i.push(h)}}),Gf(Zi(i,[wj()]))}function cpt(e,n){return sf(e,n,(i,c)=>i.kind===c.kind&&i.text===c.text)}function lpt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(aF(e.parent))return[e.parent.parent];default:return fH(e)}}function upt(e,n){const i=[];return hE(e,c=>{const u=WM(c);if(!(u.some(d=>d.kind===353||d.kind===345)&&!u.some(d=>d.kind===348||d.kind===349)))for(const d of u)i.push({name:d.tagName.text,text:fV(d,n)}),Uz(d)&&d.isNameFirst&&d.typeExpression&&oF(d.typeExpression.type)&&Ot(d.typeExpression.type.jsDocPropertyTags,h=>{i.push({name:h.tagName.text,text:fV(h,n)})})}),i}function Bq(e,n){return typeof e=="string"?[lS(e)]:ea(e,i=>i.kind===328?[lS(i.text)]:wAe(i,n))}function fV(e,n){const{comment:i,kind:c}=e,u=fpt(c);switch(c){case 356:const S=e.typeExpression;return S?d(S):i===void 0?void 0:Bq(i,n);case 336:return d(e.class);case 335:return d(e.class);case 352:const E=e,P=[];if(E.constraint&&P.push(lS(E.constraint.getText())),Nt(E.typeParameters)){Nt(P)&&P.push(qh());const F=E.typeParameters[E.typeParameters.length-1];Ot(E.typeParameters,$=>{P.push(u($.getText())),F!==$&&P.push(D1(28),qh())})}return i&&P.push(qh(),...Bq(i,n)),P;case 351:case 357:return d(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=e;return k?d(k):i===void 0?void 0:Bq(i,n);default:return i===void 0?void 0:Bq(i,n)}function d(S){return h(S.getText())}function h(S){return i?S.match(/^https?$/)?[lS(S),...Bq(i,n)]:[u(S),qh(),...Bq(i,n)]:[lS(S)]}}function fpt(e){switch(e){case 348:return w8e;case 355:return R8e;case 352:return GZ;case 353:case 345:return w6;default:return lS}}function _pt(){return bke||(bke=Vn(h9e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function dpt(){return y9e||(y9e=Vn(h9e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function TQe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[lS(e)],documentation:Yn,tags:void 0,codeActions:void 0}}function SQe(e){if(!xn(e.name))return Yn;const n=e.name.text,i=e.parent,c=i.parent;return F_(c)?Qo(c.parameters,u=>{if(!xn(u.name))return;const d=u.name.text;if(!(i.tags.some(h=>h!==e&&A2(h)&&xn(h.name)&&h.name.escapedText===d)||n!==void 0&&!qf(d,n)))return{name:d,kind:"parameter",kindModifiers:"",sortText:ow.SortText.LocationPriority}}):[]}function ppt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[lS(e)],documentation:Yn,tags:void 0,codeActions:void 0}}function mpt(e,n,i,c){const u=Lf(n,i),d=Ua(u,uC);if(d&&(d.comment!==void 0||Nt(d.tags)))return;const h=u.getStart(n);if(!d&&h0;if(ie&&!we){const Fe=ae+e+J+" * ",et=h===i?e+J:"";return{newText:Fe+e+ie+J+ve+et,caretOffset:Fe.length}}return{newText:ae+ve,caretOffset:3}}function gpt(e,n){const{text:i}=e,c=Ux(n,e);let u=c;for(;u<=n&&q1(i.charCodeAt(u));u++);return i.slice(c,u)}function hpt(e,n,i,c){return e.map(({name:u,dotDotDotToken:d},h)=>{const S=u.kind===80?u.text:"param"+h;return`${i} * @param ${n?d?"{...any} ":"{any} ":""}${S}${c}`}).join("")}function ypt(e,n){return`${e} * @returns${n}`}function vpt(e,n){return qTe(e,i=>g9e(i,n))}function g9e(e,n){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const i=e;return{commentOwner:e,parameters:i.parameters,hasReturn:rte(i,n)};case 303:return g9e(e.initializer,n);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const u=e;return u.type&&e0(u.type)?{commentOwner:e,parameters:u.type.parameters,hasReturn:rte(u.type,n)}:{commentOwner:e}}case 243:{const d=e.declarationList.declarations,h=d.length===1&&d[0].initializer?p0e(d[0].initializer):void 0;return h?{commentOwner:e,parameters:h.parameters,hasReturn:rte(h,n)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return g9e(e.expression,n);case 226:{const u=e;return jy(u)===0?"quit":F_(u.right)?{commentOwner:e,parameters:u.right.parameters,hasReturn:rte(u.right,n)}:{commentOwner:e}}case 172:const c=e.initializer;if(c&&(Jm(c)||$m(c)))return{commentOwner:e,parameters:c.parameters,hasReturn:rte(c,n)}}}function rte(e,n){return!!(n!=null&&n.generateReturnInDocTemplate)&&(e0(e)||$m(e)&&kr(e.body)||Vd(e)&&e.body&&Ou(e.body)&&!!dR(e.body,i=>i))}function p0e(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return lr(e.members,Lh)}}var h9e,bke,y9e,v9e,EQe=G({"src/services/jsDoc.ts"(){xl(),h9e=["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"],v9e=TQe}}),nO={};Oe(nO,{getDocCommentTemplateAtPosition:()=>mpt,getJSDocParameterNameCompletionDetails:()=>ppt,getJSDocParameterNameCompletions:()=>SQe,getJSDocTagCompletionDetails:()=>TQe,getJSDocTagCompletions:()=>dpt,getJSDocTagNameCompletionDetails:()=>v9e,getJSDocTagNameCompletions:()=>_pt,getJsDocCommentsFromDeclarations:()=>spt,getJsDocTagsFromDeclarations:()=>upt});var VF=G({"src/services/_namespaces/ts.JsDoc.ts"(){EQe()}});function bpt(e,n,i,c,u,d){const h=zs.ChangeTracker.fromContext({host:i,formatContext:n,preferences:u}),S=d==="SortAndCombine"||d==="All",E=S,P=d==="RemoveUnused"||d==="All",k=Tke(e,e.statements.filter(n0)),F=jq(u,S?()=>CQe(k,u)===2:void 0),$=X=>(P&&(X=Tpt(X,e,c)),E&&(X=xQe(X,F,e)),S&&(X=nh(X,(ie,ae)=>x9e(ie,ae,F))),X);k.forEach(X=>J(X,$)),d!=="RemoveUnused"&&Ipt(e).forEach(X=>J(X,ie=>b9e(ie,F)));for(const X of e.statements.filter(dh)){if(!X.body)continue;if(Tke(e,X.body.statements.filter(n0)).forEach(ae=>J(ae,$)),d!=="RemoveUnused"){const ae=X.body.statements.filter(ry);J(ae,ve=>b9e(ve,F))}}return h.getChanges();function J(X,ie){if(Nt(X)===0)return;_s(X[0],1024);const ae=E?BD(X,Fe=>m0e(Fe.moduleSpecifier)):[X],ve=S?nh(ae,(Fe,et)=>S9e(Fe[0].moduleSpecifier,et[0].moduleSpecifier,F)):ae,we=ea(ve,Fe=>m0e(Fe[0].moduleSpecifier)||Fe[0].moduleSpecifier===void 0?ie(Fe):Fe);if(we.length===0)h.deleteNodes(e,X,{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Include},!0);else{const Fe={leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Include,suffix:R6(i,n.options)};h.replaceNodeWithNodes(e,X[0],we,Fe);const et=h.nodeHasTrailingComment(e,X[0],Fe);h.deleteNodes(e,X.slice(1),{trailingTriviaOption:zs.TrailingTriviaOption.Include},et)}}}function Tke(e,n){const i=CS(e.languageVersion,!1,e.languageVariant),c=[];let u=0;for(const d of n)c[u]&&Ske(e,d,i)&&u++,c[u]||(c[u]=[]),c[u].push(d);return c}function Ske(e,n,i){const c=n.getFullStart(),u=n.getStart();i.setText(e.text,c,u-c);let d=0;for(;i.getTokenStart()=2))return!0;return!1}function Tpt(e,n,i){const c=i.getTypeChecker(),u=i.getCompilerOptions(),d=c.getJsxNamespace(n),h=c.getJsxFragmentFactory(n),S=!!(n.transformFlags&2),E=[];for(const k of e){const{importClause:F,moduleSpecifier:$}=k;if(!F){E.push(k);continue}let{name:J,namedBindings:X}=F;if(J&&!P(J)&&(J=void 0),X)if(mh(X))P(X.name)||(X=void 0);else{const ie=X.elements.filter(ae=>P(ae.name));ie.lengthSd(c)&&c.text===i)}function m0e(e){return e!==void 0&&Cm(e)?e.text:void 0}function g0e(e,n,i){const c=xke(n);return xQe(e,c,i)}function xQe(e,n,i){if(e.length===0)return e;const{importWithoutClause:c,typeOnlyImports:u,regularImports:d}=AQe(e),h=[];c&&h.push(c);for(const S of[d,u]){const E=S===u,{defaultImports:P,namespaceImports:k,namedImports:F}=S;if(!E&&P.length===1&&k.length===1&&F.length===0){const et=P[0];h.push(zq(et,et.importClause.name,k[0].importClause.namedBindings));continue}const $=nh(k,(et,Pe)=>n(et.importClause.namedBindings.name.text,Pe.importClause.namedBindings.name.text));for(const et of $)h.push(zq(et,void 0,et.importClause.namedBindings));const J=pp(P),X=pp(F),ie=J??X;if(!ie)continue;let ae;const ve=[];if(P.length===1)ae=P[0].importClause.name;else for(const et of P)ve.push(he.createImportSpecifier(!1,he.createIdentifier("default"),et.importClause.name));ve.push(...kQe(F));const we=he.createNodeArray(ite(ve,n),X==null?void 0:X.importClause.namedBindings.elements.hasTrailingComma),Fe=we.length===0?ae?void 0:he.createNamedImports(Yn):X?he.updateNamedImports(X.importClause.namedBindings,we):he.createNamedImports(we);i&&Fe&&(X!=null&&X.importClause.namedBindings)&&!mk(X.importClause.namedBindings,i)&&_s(Fe,2),E&&ae&&Fe?(h.push(zq(ie,ae,void 0)),h.push(zq(X??ie,void 0,Fe))):h.push(zq(ie,ae,Fe))}return h}function AQe(e){let n;const i={defaultImports:[],namespaceImports:[],namedImports:[]},c={defaultImports:[],namespaceImports:[],namedImports:[]};for(const u of e){if(u.importClause===void 0){n=n||u;continue}const d=u.importClause.isTypeOnly?i:c,{name:h,namedBindings:S}=u.importClause;h&&d.defaultImports.push(u),S&&(mh(S)?d.namespaceImports.push(u):d.namedImports.push(u))}return{importWithoutClause:n,typeOnlyImports:i,regularImports:c}}function Ept(e,n){const i=xke(n);return b9e(e,i)}function b9e(e,n){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:c,typeOnlyExports:u}=h(e),d=[];i&&d.push(i);for(const S of[c,u]){if(S.length===0)continue;const E=[];E.push(...ea(S,F=>F.exportClause&&j0(F.exportClause)?F.exportClause.elements:Yn));const P=ite(E,n),k=S[0];d.push(he.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(j0(k.exportClause)?he.updateNamedExports(k.exportClause,P):he.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return d;function h(S){let E;const P=[],k=[];for(const F of S)F.exportClause===void 0?E=E||F:F.isTypeOnly?k.push(F):P.push(F);return{exportWithoutClause:E,namedExports:P,typeOnlyExports:k}}}function zq(e,n,i){return he.updateImportDeclaration(e,e.modifiers,he.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,i),e.moduleSpecifier,e.attributes)}function ite(e,n){return nh(e,(i,c)=>Eke(i,c,n))}function Eke(e,n,i){return Z0(e.isTypeOnly,n.isTypeOnly)||i(e.name.text,n.name.text)}function T9e(e,n,i){const c=xke(!!i);return S9e(e,n,c)}function S9e(e,n,i){const c=e===void 0?void 0:m0e(e),u=n===void 0?void 0:m0e(n);return Z0(c===void 0,u===void 0)||Z0(Kv(c),Kv(u))||i(c,u)}function h0e(e){var n;switch(e.kind){case 271:return(n=to(e.moduleReference,KE))==null?void 0:n.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function E9e(e,n){return CQe(Tke(e,e.statements.filter(n0)),n)}function CQe(e,n){const i=Gq(n,!1),c=Gq(n,!0);let u=3,d=!1;for(const h of e){if(h.length>1){const E=Qp(h,P=>{var k;return((k=to(P.moduleSpecifier,Sd))==null?void 0:k.text)??""},i,c);if(E&&(u&=E,d=!0),!u)return u}const S=lr(h,E=>{var P,k;return((k=to((P=E.importClause)==null?void 0:P.namedBindings,Oy))==null?void 0:k.elements.length)>1});if(S){const E=Cke(S.importClause.namedBindings.elements,n);if(E&&(u&=E,d=!0),!u)return u}if(u!==3)return u}return d?0:u}function DQe(e,n){const i=Gq(n,!1),c=Gq(n,!0);return Qp(e,u=>m0e(h0e(u))||"",i,c)}function xpt(e,n,i){const c=ZS(e,n,Of,(u,d)=>x9e(u,d,i));return c<0?~c:c}function Apt(e,n,i){const c=ZS(e,n,Of,(u,d)=>Eke(u,d,i));return c<0?~c:c}function x9e(e,n,i){return S9e(h0e(e),h0e(n),i)||A9e(e,n)}function A9e(e,n){return pf(IQe(e),IQe(n))}function IQe(e){var n;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((n=e.importClause.namedBindings)==null?void 0:n.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function kQe(e){return ea(e,n=>Vn(Cpt(n),i=>i.name&&i.propertyName&&i.name.escapedText===i.propertyName.escapedText?he.updateImportSpecifier(i,i.isTypeOnly,void 0,i.name):i))}function Cpt(e){var n;return(n=e.importClause)!=null&&n.namedBindings&&Oy(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function xke(e){return e?rP:Fp}function Ake(e,n){const i=Dpt(n),c=n.organizeImportsCaseFirst??!1,u=n.organizeImportsNumericCollation??!1,d=n.organizeImportsAccentCollation??!0,h=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(i,{usage:"sort",caseFirst:c||"false",sensitivity:h,numeric:u}).compare}function Dpt(e){let n=e.organizeImportsLocale;n==="auto"&&(n=dTe()),n===void 0&&(n="en");const i=Intl.Collator.supportedLocalesOf(n);return i.length?i[0]:"en"}function Gq(e,n){return(e.organizeImportsCollation??"ordinal")==="unicode"?Ake(n,e):xke(n)}function jq(e,n){const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(n==null?void 0:n())??!1;return Gq(e,i)}function Ipt(e){const n=[],i=e.statements,c=Nt(i);let u=0,d=0;for(;uTke(e,h))}var PQe,Cke,C9e=G({"src/services/organizeImports.ts"(){xl(),PQe=class{has([e,n]){return this._lastPreferences!==n||!this._cache?!1:this._cache.has(e)}get([e,n]){if(!(this._lastPreferences!==n||!this._cache))return this._cache.get(e)}set([e,n],i){this._lastPreferences!==n&&(this._lastPreferences=n,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,i)}},Cke=JO((e,n)=>{if(!_A(e,(u,d)=>Z0(u.isTypeOnly,d.isTypeOnly)))return 0;const i=Gq(n,!1),c=Gq(n,!0);return Qp(e,u=>u.name.text,i,c)},new PQe)}}),lD={};Oe(lD,{coalesceExports:()=>Ept,coalesceImports:()=>g0e,compareImportOrExportSpecifiers:()=>Eke,compareImportsOrRequireStatements:()=>x9e,compareModuleSpecifiers:()=>T9e,detectImportDeclarationSorting:()=>DQe,detectImportSpecifierSorting:()=>Cke,detectSorting:()=>E9e,getImportDeclarationInsertionIndex:()=>xpt,getImportSpecifierInsertionIndex:()=>Apt,getOrganizeImportsComparer:()=>Gq,organizeImports:()=>bpt});var CI=G({"src/services/_namespaces/ts.OrganizeImports.ts"(){C9e()}});function kpt(e,n){const i=[];return Ppt(e,n,i),Npt(e,i),i.sort((c,u)=>c.textSpan.start-u.textSpan.start)}function Ppt(e,n,i){let c=40,u=0;const d=[...e.statements,e.endOfFileToken],h=d.length;for(;u1&&c.push(pue(d,h,"comment"))}}function Ike(e,n,i,c){SR(e)||Dke(e.pos,n,i,c)}function pue(e,n,i){return rO(Yy(e,n),i)}function y0e(e,n){switch(e.kind){case 241:if(F_(e.parent))return wpt(e.parent,e,n);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(e.parent);case 258:const J=e.parent;if(J.tryBlock===e)return k(e.parent);if(J.finallyBlock===e){const X=qm(J,98,n);if(X)return k(X)}default:return rO(sT(e,n),"code")}case 268:return k(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(e);case 189:return k(e,!1,!gW(e.parent),23);case 296:case 297:return F(e.statements);case 210:return P(e);case 209:return P(e,23);case 284:return d(e);case 288:return h(e);case 285:case 286:return S(e.attributes);case 228:case 15:return E(e);case 207:return k(e,!1,!sa(e.parent),23);case 219:return u(e);case 213:return c(e);case 217:return $(e);case 275:case 279:case 300:return i(e)}function i(J){if(!J.elements.length)return;const X=qm(J,19,n),ie=qm(J,20,n);if(!(!X||!ie||mv(X.pos,ie.pos,n)))return kke(X,ie,J,n,!1,!1)}function c(J){if(!J.arguments.length)return;const X=qm(J,21,n),ie=qm(J,22,n);if(!(!X||!ie||mv(X.pos,ie.pos,n)))return kke(X,ie,J,n,!1,!0)}function u(J){if(Ou(J.body)||fE(J.body)||mv(J.body.getFullStart(),J.body.getEnd(),n))return;const X=Yy(J.body.getFullStart(),J.body.getEnd());return rO(X,"code",sT(J))}function d(J){const X=Yy(J.openingElement.getStart(n),J.closingElement.getEnd()),ie=J.openingElement.tagName.getText(n),ae="<"+ie+">...";return rO(X,"code",X,!1,ae)}function h(J){const X=Yy(J.openingFragment.getStart(n),J.closingFragment.getEnd());return rO(X,"code",X,!1,"<>...")}function S(J){if(J.properties.length!==0)return pue(J.getStart(n),J.getEnd(),"code")}function E(J){if(!(J.kind===15&&J.text.length===0))return pue(J.getStart(n),J.getEnd(),"code")}function P(J,X=19){return k(J,!1,!Ed(J.parent)&&!xd(J.parent),X)}function k(J,X=!1,ie=!0,ae=19,ve=ae===19?20:24){const we=qm(e,ae,n),Fe=qm(e,ve,n);return we&&Fe&&kke(we,Fe,J,n,X,ie)}function F(J){return J.length?rO(PP(J),"code"):void 0}function $(J){if(mv(J.getStart(),J.getEnd(),n))return;const X=Yy(J.getStart(),J.getEnd());return rO(X,"code",sT(J))}}function wpt(e,n,i){const c=_V(e,n,i),u=qm(n,20,i);return c&&u&&kke(c,u,e,i,e.kind!==219)}function kke(e,n,i,c,u=!1,d=!0){const h=Yy(d?e.getFullStart():e.getStart(c),n.getEnd());return rO(h,"code",sT(i,c),u)}function rO(e,n,i=e,c=!1,u="..."){return{textSpan:e,kind:n,hintSpan:i,bannerText:u,autoCollapse:c}}function _V(e,n,i){if(ASe(e.parameters,i)){const c=qm(e,21,i);if(c)return c}return qm(n,19,i)}var wQe,RQe=G({"src/services/outliningElementsCollector.ts"(){xl(),wQe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Pke={};Oe(Pke,{collectElements:()=>kpt});var D9e=G({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){RQe()}});function Rpt(e,n,i,c){const u=DZ(cS(n,i));if(OQe(u)){const d=Mpt(u,e.getTypeChecker(),n,e,c);if(d)return d}return mue(N.You_cannot_rename_this_element)}function Mpt(e,n,i,c,u){const d=n.getSymbolAtLocation(e);if(!d){if(Cm(e)){const $=bf(e,n);if($&&($.flags&128||$.flags&1048576&&jr($.types,J=>!!(J.flags&128))))return I9e(e.text,e.text,"string","",e,i)}else if(g4(e)){const $=Lv(e);return I9e($,$,"label","",e,i)}return}const{declarations:h}=d;if(!h||h.length===0)return;if(h.some($=>Lpt(c,$)))return mue(N.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(xn(e)&&e.escapedText==="default"&&d.parent&&d.parent.flags&1536)return;if(Cm(e)&&N9(e))return u.allowRenameOfImportPath?LQe(e,i,d):void 0;const S=Opt(i,d,n,u);if(S)return mue(S);const E=W6.getSymbolKind(n,d,e),P=J3(e)||Ox(e)&&e.parent.kind===167?S2(K2(e)):void 0,k=P||n.symbolToString(d),F=P||n.getFullyQualifiedName(d);return I9e(k,F,E,W6.getSymbolModifiers(n,d),e,i)}function Lpt(e,n){const i=n.getSourceFile();return e.isSourceFileDefaultLibrary(i)&&mm(i.fileName,".d.ts")}function Opt(e,n,i,c){if(!c.providePrefixAndSuffixTextForRename&&n.flags&2097152){const h=n.declarations&&lr(n.declarations,S=>qE(S));h&&!h.propertyName&&(n=i.getAliasedSymbol(n))}const{declarations:u}=n;if(!u)return;const d=MQe(e.path);if(d===void 0)return gt(u,h=>KZ(h.getSourceFile().path))?N.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const h of u){const S=MQe(h.getSourceFile().path);if(S){const E=Math.min(d.length,S.length);for(let P=0;P<=E;P++)if(Fp(d[P],S[P])!==0)return N.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function MQe(e){const n=qc(e),i=n.lastIndexOf("node_modules");if(i!==-1)return n.slice(0,i+2)}function LQe(e,n,i){if(!Kv(e.text))return mue(N.You_cannot_rename_a_module_via_a_global_import);const c=i.declarations&&lr(i.declarations,Nu);if(!c)return;const u=h_(e.text,"/index")||h_(e.text,"/index.js")?void 0:K5(wg(c.fileName),"/index"),d=u===void 0?c.fileName:u,h=u===void 0?"module":"directory",S=e.text.lastIndexOf("/")+1,E=p1(e.getStart(n)+1+S,e.text.length-S);return{canRename:!0,fileToRename:d,kind:h,displayName:d,fullDisplayName:d,kindModifiers:"",triggerSpan:E}}function I9e(e,n,i,c,u,d){return{canRename:!0,fileToRename:void 0,kind:i,displayName:e,fullDisplayName:n,kindModifiers:c,triggerSpan:Nke(u,d)}}function mue(e){return{canRename:!1,localizedErrorMessage:fs(e)}}function Nke(e,n){let i=e.getStart(n),c=e.getWidth(n);return Cm(e)&&(i+=1,c-=2),p1(i,c)}function OQe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return xZ(e);default:return!1}}var FQe=G({"src/services/rename.ts"(){xl()}}),v0e={};Oe(v0e,{getRenameInfo:()=>Rpt,nodeIsEligibleForRename:()=>OQe});var wke=G({"src/services/_namespaces/ts.Rename.ts"(){FQe()}});function Fpt(e,n,i,c,u){const d=e.getTypeChecker(),h=Xse(n,i);if(!h)return;const S=!!c&&c.kind==="characterTyped";if(S&&(V3(n,i,h)||tw(n,i)))return;const E=!!c&&c.kind==="invoked",P=qpt(h,i,n,d,E);if(!P)return;u.throwIfCancellationRequested();const k=Wpt(P,d,n,h,S);return u.throwIfCancellationRequested(),k?d.runWithCancellationToken(u,F=>k.kind===0?R9e(k.candidates,k.resolvedSignature,P,n,F):JQe(k.symbol,P,n,F)):Gy(n)?zpt(P,e,u):void 0}function Wpt({invocation:e,argumentCount:n},i,c,u,d){switch(e.kind){case 0:{if(d&&!Bpt(u,e.node,c))return;const h=[],S=i.getResolvedSignatureForSignatureHelp(e.node,h,n);return h.length===0?void 0:{kind:0,candidates:h,resolvedSignature:S}}case 1:{const{called:h}=e;if(d&&!WQe(u,c,xn(h)?h.parent:h))return;const S=Uge(h,n,i);if(S.length!==0)return{kind:0,candidates:S,resolvedSignature:Dl(S)};const E=i.getSymbolAtLocation(h);return E&&{kind:1,symbol:E}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return re.assertNever(e)}}function Bpt(e,n,i){if(!sk(n))return!1;const c=n.getChildren(i);switch(e.kind){case 21:return ni(c,e);case 28:{const u=$se(e);return!!u&&ni(c,u)}case 30:return WQe(e,i,n.expression);default:return!1}}function zpt(e,n,i){if(e.invocation.kind===2)return;const c=HQe(e.invocation),u=Ac(c)?c.name.text:void 0,d=n.getTypeChecker();return u===void 0?void 0:Yr(n.getSourceFiles(),h=>Yr(h.getNamedDeclarations().get(u),S=>{const E=S.symbol&&d.getTypeOfSymbolAtLocation(S.symbol,S),P=E&&E.getCallSignatures();if(P&&P.length)return d.runWithCancellationToken(i,k=>R9e(P,P[0],e,h,k,!0))}))}function WQe(e,n,i){const c=e.getFullStart();let u=e.parent;for(;u;){const d=bv(c,n,u,!0);if(d)return ov(i,d);u=u.parent}return re.fail("Could not find preceding token")}function BQe(e,n,i){const c=jQe(e,n,i);return!c||c.isTypeParameterList||c.invocation.kind!==0?void 0:{invocation:c.invocation.node,argumentCount:c.argumentCount,argumentIndex:c.argumentIndex}}function zQe(e,n,i){const c=GQe(e,i);if(!c)return;const{list:u,argumentIndex:d}=c,h=Hpt(u,V3(i,n,e));d!==0&&re.assertLessThan(d,h);const S=N9e(u,i);return{list:u,argumentIndex:d,argumentCount:h,argumentsSpan:S}}function GQe(e,n){if(e.kind===30||e.kind===21)return{list:Kpt(e.parent,e,n),argumentIndex:0};{const i=$se(e);return i&&{list:i,argumentIndex:Upt(i,e)}}}function jQe(e,n,i){const{parent:c}=e;if(sk(c)){const u=c,d=zQe(e,n,i);if(!d)return;const{list:h,argumentIndex:S,argumentCount:E,argumentsSpan:P}=d;return{isTypeParameterList:!!c.typeArguments&&c.typeArguments.pos===h.pos,invocation:{kind:0,node:u},argumentsSpan:P,argumentIndex:S,argumentCount:E}}else{if(K7(e)&&Dm(c))return Y$(e,n,i)?P9e(c,0,i):void 0;if(X7(e)&&c.parent.kind===215){const u=c,d=u.parent;re.assert(u.kind===228);const h=Y$(e,n,i)?0:1;return P9e(d,h,i)}else if(Dh(c)&&Dm(c.parent.parent)){const u=c,d=c.parent.parent;if(woe(e)&&!Y$(e,n,i))return;const h=u.parent.templateSpans.indexOf(u),S=Jpt(h,e,n,i);return P9e(d,S,i)}else if(m1(c)){const u=c.attributes.pos,d=Ff(i.text,c.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:c},argumentsSpan:p1(u,d-u),argumentIndex:0,argumentCount:1}}else{const u=K$(e,i);if(u){const{called:d,nTypeArguments:h}=u,S={kind:1,called:d},E=Yy(d.getStart(i),e.end);return{isTypeParameterList:!0,invocation:S,argumentsSpan:E,argumentIndex:h,argumentCount:h+1}}return}}}function VQe(e,n,i,c){return k9e(e,n,i,c)||jQe(e,n,i)}function UQe(e){return Ds(e.parent)?UQe(e.parent):e}function Rke(e){return Ds(e.left)?Rke(e.left)+1:2}function k9e(e,n,i,c){const u=Gpt(e);if(u===void 0)return;const d=jpt(u,i,n,c);if(d===void 0)return;const{contextualType:h,argumentIndex:S,argumentCount:E,argumentsSpan:P}=d,k=h.getNonNullableType(),F=k.symbol;if(F===void 0)return;const $=Yf(k.getCallSignatures());return $===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:$,node:e,symbol:Vpt(F)},argumentsSpan:P,argumentIndex:S,argumentCount:E}}function Gpt(e){switch(e.kind){case 21:case 28:return e;default:return Ua(e.parent,n=>Os(n)?!0:sa(n)||Ch(n)||Wd(n)?!1:"quit")}}function jpt(e,n,i,c){const{parent:u}=e;switch(u.kind){case 217:case 174:case 218:case 219:const d=zQe(e,i,n);if(!d)return;const{argumentIndex:h,argumentCount:S,argumentsSpan:E}=d,P=tm(u)?c.getContextualTypeForObjectLiteralElement(u):c.getContextualType(u);return P&&{contextualType:P,argumentIndex:h,argumentCount:S,argumentsSpan:E};case 226:{const k=UQe(u),F=c.getContextualType(k),$=e.kind===21?0:Rke(u)-1,J=Rke(k);return F&&{contextualType:F,argumentIndex:$,argumentCount:J,argumentsSpan:sT(u)}}default:return}}function Vpt(e){return e.name==="__type"&&Yr(e.declarations,n=>{var i;return e0(n)?(i=to(n.parent,ck))==null?void 0:i.symbol:void 0})||e}function Upt(e,n){let i=0;for(const c of e.getChildren()){if(c===n)break;c.kind!==28&&i++}return i}function Hpt(e,n){const i=e.getChildren();let c=dp(i,u=>u.kind!==28);return!n&&i.length>0&&yl(i).kind===28&&c++,c}function Jpt(e,n,i,c){return re.assert(i>=n.getStart(),"Assumed 'position' could not occur before node."),L8(n)?Y$(n,i,c)?0:e+2:e+1}function P9e(e,n,i){const c=K7(e.template)?1:e.template.templateSpans.length+1;return n!==0&&re.assertLessThan(n,c),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:$pt(e,i),argumentIndex:n,argumentCount:c}}function N9e(e,n){const i=e.getFullStart(),c=Ff(n.text,e.getEnd(),!1);return p1(i,c-i)}function $pt(e,n){const i=e.template,c=i.getStart();let u=i.getEnd();return i.kind===228&&yl(i.templateSpans).literal.getFullWidth()===0&&(u=Ff(n.text,u,!1)),p1(c,u-c)}function qpt(e,n,i,c,u){for(let d=e;!Nu(d)&&(u||!Ou(d));d=d.parent){re.assert(ov(d.parent,d),"Not a subspan",()=>`Child: ${re.formatSyntaxKind(d.kind)}, parent: ${re.formatSyntaxKind(d.parent.kind)}`);const h=VQe(d,n,i,c);if(h)return h}}function Kpt(e,n,i){const c=e.getChildren(i),u=c.indexOf(n);return re.assert(u>=0&&c.length>u+1),c[u+1]}function HQe(e){return e.kind===0?rG(e.node):e.called}function w9e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function R9e(e,n,{isTypeParameterList:i,argumentCount:c,argumentsSpan:u,invocation:d,argumentIndex:h},S,E,P){var k;const F=w9e(d),$=d.kind===2?d.symbol:E.getSymbolAtLocation(HQe(d))||P&&((k=n.declaration)==null?void 0:k.symbol),J=$?Rg(E,$,P?S:void 0,void 0):Yn,X=Vn(e,Fe=>Ypt(Fe,J,i,E,F,S));h!==0&&re.assertLessThan(h,c);let ie=0,ae=0;for(let Fe=0;Fe1)){let Pe=0;for(const dt of et){if(dt.isVariadic||dt.parameters.length>=c){ie=ae+Pe;break}Pe++}}ae+=et.length}re.assert(ie!==-1);const ve={items:Lm(X,Of),applicableSpan:u,selectedItemIndex:ie,argumentIndex:h,argumentCount:c},we=ve.items[ie];if(we.isVariadic){const Fe=Ho(we.parameters,et=>!!et.isRest);-1$Qe(F,i,c,u,h)),E=e.getDocumentationComment(i),P=e.getJsDocTags(i);return{isVariadic:!1,prefixDisplayParts:[...d,D1(30)],suffixDisplayParts:[D1(32)],separatorDisplayParts:Vq,parameters:S,documentation:E,tags:P}}function Ypt(e,n,i,c,u,d){const h=(i?Zpt:emt)(e,c,u,d);return Vn(h,({isVariadic:S,parameters:E,prefix:P,suffix:k})=>{const F=[...n,...P],$=[...k,...Qpt(e,u,c)],J=e.getDocumentationComment(c),X=e.getJsDocTags();return{isVariadic:S,prefixDisplayParts:F,suffixDisplayParts:$,separatorDisplayParts:Vq,parameters:E,documentation:J,tags:X}})}function Qpt(e,n,i){return M6(c=>{c.writePunctuation(":"),c.writeSpace(" ");const u=i.getTypePredicateOfSignature(e);u?i.writeTypePredicate(u,n,void 0,c):i.writeType(i.getReturnTypeOfSignature(e),n,void 0,c)})}function Zpt(e,n,i,c){const u=(e.target||e).typeParameters,d=d4(),h=(u||Yn).map(E=>$Qe(E,n,i,c,d)),S=e.thisParameter?[n.symbolToParameterDeclaration(e.thisParameter,i,ote)]:[];return n.getExpandedParameters(e).map(E=>{const P=he.createNodeArray([...S,...Vn(E,F=>n.symbolToParameterDeclaration(F,i,ote))]),k=M6(F=>{d.writeList(2576,P,c,F)});return{isVariadic:!1,parameters:h,prefix:[D1(30)],suffix:[D1(32),...k]}})}function emt(e,n,i,c){const u=d4(),d=M6(E=>{if(e.typeParameters&&e.typeParameters.length){const P=he.createNodeArray(e.typeParameters.map(k=>n.typeParameterToDeclaration(k,i,ote)));u.writeList(53776,P,c,E)}}),h=n.getExpandedParameters(e),S=n.hasEffectiveRestParameter(e)?h.length===1?E=>!0:E=>{var P;return!!(E.length&&((P=to(E[E.length-1],Vm))==null?void 0:P.links.checkFlags)&32768)}:E=>!1;return h.map(E=>({isVariadic:S(E),parameters:E.map(P=>tmt(P,n,i,c,u)),prefix:[...d,D1(21)],suffix:[D1(22)]}))}function tmt(e,n,i,c,u){const d=M6(E=>{const P=n.symbolToParameterDeclaration(e,i,ote);u.writeNode(4,P,c,E)}),h=n.isOptionalParameter(e.valueDeclaration),S=Vm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(n),displayParts:d,isOptional:h,isRest:S}}function $Qe(e,n,i,c,u){const d=M6(h=>{const S=n.typeParameterToDeclaration(e,i,ote);u.writeNode(4,S,c,h)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(n),displayParts:d,isOptional:!1,isRest:!1}}var ote,Vq,M9e=G({"src/services/signatureHelp.ts"(){xl(),ote=70246400,Vq=[D1(28),qh()]}}),gue={};Oe(gue,{getArgumentInfoForCompletions:()=>BQe,getSignatureHelpItems:()=>Fpt});var b0e=G({"src/services/_namespaces/ts.SignatureHelp.ts"(){M9e()}});function nmt(e,n){var i,c;let u={textSpan:Yy(n.getFullStart(),n.getEnd())},d=n;e:for(;;){const E=imt(d);if(!E.length)break;for(let P=0;Pe)break e;const J=Vb(SN(n.text,F.end));if(J&&J.kind===2&&S(J.pos,J.end),rmt(n,e,F)){if(UU(F)&&Vd(d)&&!mv(F.getStart(n),F.getEnd(),n)&&h(F.getStart(n),F.getEnd()),Ou(F)||Dh(F)||X7(F)||woe(F)||k&&X7(k)||Kp(F)&&Xg(d)||AW(F)&&Kp(d)||Kc(F)&&AW(d)&&E.length===1||SW(F)||b6(F)||oF(F)){d=F;break}if(Dh(d)&&$&&c9($)){const ve=F.getFullStart()-2,we=$.getStart()+1;h(ve,we)}const X=AW(F)&&yue(k)&&omt($)&&!mv(k.getStart(),$.getStart(),n);let ie=X?k.getEnd():F.getStart();const ae=X?$.getStart():amt(n,F);if(NT(F)&&((i=F.jsDoc)!=null&&i.length)&&h(Dl(F.jsDoc).getStart(),ae),AW(F)){const ve=F.getChildren()[0];ve&&NT(ve)&&((c=ve.jsDoc)!=null&&c.length)&&ve.getStart()!==F.pos&&(ie=Math.min(ie,Dl(ve.jsDoc).getStart()))}h(ie,ae),(Sd(F)||Hz(F))&&h(ie+1,ae-1),d=F;break}if(P===E.length-1)break e}}return u;function h(E,P){if(E!==P){const k=Yy(E,P);(!u||!C1(k,u.textSpan)&&NMe(k,e))&&(u={textSpan:k,...u&&{parent:u}})}}function S(E,P){h(E,P);let k=E;for(;n.text.charCodeAt(k)===47;)k++;h(k,P)}}function rmt(e,n,i){return re.assert(i.pos<=n),nS===e.readonlyToken||S.kind===148||S===e.questionToken||S.kind===58),h=hue(d,({kind:S})=>S===23||S===168||S===24);return[i,pV(dV(h,({kind:S})=>S===59)),u]}if(em(e)){const i=hue(e.getChildren(),h=>h===e.name||ni(e.modifiers,h)),c=((n=i[0])==null?void 0:n.kind)===327?i[0]:void 0,u=c?i.slice(1):i,d=dV(u,({kind:h})=>h===59);return c?[c,pV(d)]:d}if(Os(e)){const i=hue(e.getChildren(),u=>u===e.dotDotDotToken||u===e.name),c=hue(i,u=>u===i[0]||u===e.questionToken);return dV(c,({kind:u})=>u===64)}return sa(e)?dV(e.getChildren(),({kind:i})=>i===64):e.getChildren()}function hue(e,n){const i=[];let c;for(const u of e)n(u)?(c=c||[],c.push(u)):(c&&(i.push(pV(c)),c=void 0),i.push(u));return c&&i.push(pV(c)),i}function dV(e,n,i=!0){if(e.length<2)return e;const c=Ho(e,n);if(c===-1)return e;const u=e.slice(0,c),d=e[c],h=yl(e),S=i&&h.kind===27,E=e.slice(c+1,S?e.length-1:void 0),P=uN([u.length?pV(u):void 0,d,E.length?pV(E):void 0]);return S?P.concat(h):P}function pV(e){return re.assertGreaterThanOrEqual(e.length,1),T1(Ck.createSyntaxList(e),e[0].pos,yl(e).end)}function yue(e){const n=e&&e.kind;return n===19||n===23||n===21||n===286}function omt(e){const n=e&&e.kind;return n===20||n===24||n===22||n===287}function amt(e,n){switch(n.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var qQe,KQe=G({"src/services/smartSelection.ts"(){xl(),qQe=bb(n0,Yb)}}),Mke={};Oe(Mke,{getSmartSelectionRange:()=>nmt});var L9e=G({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){KQe()}});function XQe(e,n,i){const c=O9e(e,n,i);if(c!=="")return c;const u=r3(n);return u&32?Rh(n,231)?"local class":"class":u&384?"enum":u&524288?"type":u&64?"interface":u&262144?"type parameter":u&8?"enum member":u&2097152?"alias":u&1536?"module":c}function O9e(e,n,i){const c=e.getRootSymbols(n);if(c.length===1&&Dl(c).flags&8192&&e.getTypeOfSymbolAtLocation(n,i).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(n))return"var";if(e.isArgumentsSymbol(n))return"local var";if(i.kind===110&&kr(i)||V9(i))return"parameter";const u=r3(n);if(u&3)return ace(n)?"parameter":n.valueDeclaration&&rH(n.valueDeclaration)?"const":n.valueDeclaration&&aY(n.valueDeclaration)?"using":n.valueDeclaration&&nC(n.valueDeclaration)?"await using":Ot(n.declarations,UM)?"let":eZe(n)?"local var":"var";if(u&16)return eZe(n)?"local function":"function";if(u&32768)return"getter";if(u&65536)return"setter";if(u&8192)return"method";if(u&16384)return"constructor";if(u&131072)return"index";if(u&4){if(u&33554432&&n.links.checkFlags&6){const d=Ot(e.getRootSymbols(n),h=>{if(h.getFlags()&98311)return"property"});return d||(e.getTypeOfSymbolAtLocation(n,i).getCallSignatures().length?"method":"property")}return"property"}return""}function F9e(e){if(e.declarations&&e.declarations.length){const[n,...i]=e.declarations,c=Nt(i)&&QZ(n)&>(i,d=>!QZ(d))?65536:0,u=X$(n,c);if(u)return u.split(",")}return[]}function YQe(e,n){if(!n)return"";const i=new Set(F9e(n));if(n.flags&2097152){const c=e.getAliasedSymbol(n);c!==n&&Ot(F9e(c),u=>{i.add(u)})}return n.flags&16777216&&i.add("optional"),i.size>0?oc(i.values()).join(","):""}function QQe(e,n,i,c,u,d,h,S){var E;const P=[];let k=[],F=[];const $=r3(n);let J=h&1?O9e(e,n,u):"",X=!1;const ie=u.kind===110&&C9(u)||V9(u);let ae,ve,we=!1;if(u.kind===110&&!ie)return{displayParts:[ZE(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(J!==""||$&32||$&2097152){if(J==="getter"||J==="setter"){const It=lr(n.declarations,Yt=>Yt.name===u);if(It)switch(It.kind){case 177:J="getter";break;case 178:J="setter";break;case 172:J="accessor";break;default:re.assertNever(It)}else J="property"}let Ke;if(d??(d=ie?e.getTypeAtLocation(u):e.getTypeOfSymbolAtLocation(n,u)),u.parent&&u.parent.kind===211){const It=u.parent.name;(It===u||It&&It.getFullWidth()===0)&&(u=u.parent)}let st;if(sk(u)?st=u:(hZ(u)||V$(u)||u.parent&&(m1(u.parent)||Dm(u.parent))&&F_(n.valueDeclaration))&&(st=u.parent),st){Ke=e.getResolvedSignature(st);const It=st.kind===214||xd(st)&&st.expression.kind===108,Yt=It?d.getConstructSignatures():d.getCallSignatures();if(Ke&&!ni(Yt,Ke.target)&&!ni(Yt,Ke)&&(Ke=Yt.length?Yt[0]:void 0),Ke){switch(It&&$&32?(J="constructor",ct(d.symbol,J)):$&2097152?(J="alias",Ct(J),P.push(qh()),It&&(Ke.flags&4&&(P.push(ZE(128)),P.push(qh())),P.push(ZE(105)),P.push(qh())),Ie(n)):ct(n,J),J){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":P.push(D1(59)),P.push(qh()),!(ji(d)&16)&&d.symbol&&(Oi(P,Rg(e,d.symbol,c,void 0,5)),P.push(wj())),It&&(Ke.flags&4&&(P.push(ZE(128)),P.push(qh())),P.push(ZE(105)),P.push(qh())),Lt(Ke,Yt,262144);break;default:Lt(Ke,Yt)}X=!0,we=Yt.length>1}}else if(H$(u)&&!($&98304)||u.kind===137&&u.parent.kind===176){const It=u.parent;if(n.declarations&&lr(n.declarations,Et=>Et===(u.kind===137?It.parent:It))){const Et=It.kind===176?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(It)?Ke=Et[0]:Ke=e.getSignatureFromDeclaration(It),It.kind===176?(J="constructor",ct(d.symbol,J)):ct(It.kind===179&&!(d.symbol.flags&2048||d.symbol.flags&4096)?d.symbol:n,J),Ke&&Lt(Ke,Et),X=!0,we=Et.length>1}}}if($&32&&!X&&!ie&&(Pe(),Rh(n,231)?Ct("local class"):P.push(ZE(86)),P.push(qh()),Ie(n),Ze(n,i)),$&64&&h&2&&(et(),P.push(ZE(120)),P.push(qh()),Ie(n),Ze(n,i)),$&524288&&h&2&&(et(),P.push(ZE(156)),P.push(qh()),Ie(n),Ze(n,i),P.push(qh()),P.push(rq(64)),P.push(qh()),Oi(P,Rj(e,u.parent&&ky(u.parent)?e.getTypeAtLocation(u.parent):e.getDeclaredTypeOfSymbol(n),c,8388608))),$&384&&(et(),gt(n.declarations,Ke=>xP(Ke)&&G8(Ke))&&(P.push(ZE(87)),P.push(qh())),P.push(ZE(94)),P.push(qh()),Ie(n)),$&1536&&!ie){et();const Ke=Rh(n,267),st=Ke&&Ke.name&&Ke.name.kind===80;P.push(ZE(st?145:144)),P.push(qh()),Ie(n)}if($&262144&&h&2)if(et(),P.push(D1(21)),P.push(lS("type parameter")),P.push(D1(22)),P.push(qh()),Ie(n),n.parent)dt(),Ie(n.parent,c),Ze(n.parent,c);else{const Ke=Rh(n,168);if(Ke===void 0)return re.fail();const st=Ke.parent;if(st)if(F_(st)){dt();const It=e.getSignatureFromDeclaration(st);st.kind===180?(P.push(ZE(105)),P.push(qh())):st.kind!==179&&st.name&&Ie(st.symbol),Oi(P,iq(e,It,i,32))}else z0(st)&&(dt(),P.push(ZE(156)),P.push(qh()),Ie(st.symbol),Ze(st.symbol,i))}if($&8){J="enum member",ct(n,"enum member");const Ke=(E=n.declarations)==null?void 0:E[0];if((Ke==null?void 0:Ke.kind)===306){const st=e.getConstantValue(Ke);st!==void 0&&(P.push(qh()),P.push(rq(64)),P.push(qh()),P.push(yE(Yv(st),typeof st=="number"?7:8)))}}if(n.flags&2097152){if(et(),!X||k.length===0&&F.length===0){const Ke=e.getAliasedSymbol(n);if(Ke!==n&&Ke.declarations&&Ke.declarations.length>0){const st=Ke.declarations[0],It=i_(st);if(It&&!X){const Yt=rY(st)&&ul(st,128),Et=n.name!=="default"&&!Yt,at=QQe(e,Ke,ts(st),st,It,d,h,Et?n:Ke);P.push(...at.displayParts),P.push(wj()),ae=at.documentation,ve=at.tags}else ae=Ke.getContextualDocumentationComment(st,e),ve=Ke.getJsDocTags(e)}}if(n.declarations)switch(n.declarations[0].kind){case 270:P.push(ZE(95)),P.push(qh()),P.push(ZE(145));break;case 277:P.push(ZE(95)),P.push(qh()),P.push(ZE(n.declarations[0].isExportEquals?64:90));break;case 281:P.push(ZE(95));break;default:P.push(ZE(102))}P.push(qh()),Ie(n),Ot(n.declarations,Ke=>{if(Ke.kind===271){const st=Ke;if(Mx(st))P.push(qh()),P.push(rq(64)),P.push(qh()),P.push(ZE(149)),P.push(D1(21)),P.push(yE(Lv(oG(st)),8)),P.push(D1(22));else{const It=e.getSymbolAtLocation(st.moduleReference);It&&(P.push(qh()),P.push(rq(64)),P.push(qh()),Ie(It,c))}return!0}})}if(!X)if(J!==""){if(d){if(ie?(et(),P.push(ZE(110))):ct(n,J),J==="property"||J==="accessor"||J==="getter"||J==="setter"||J==="JSX attribute"||$&3||J==="local var"||J==="index"||J==="using"||J==="await using"||ie){if(P.push(D1(59)),P.push(qh()),d.symbol&&d.symbol.flags&262144&&J!=="index"){const Ke=M6(st=>{const It=e.typeParameterToDeclaration(d,c,Lke);Fe().writeNode(4,It,ts(__(c)),st)});Oi(P,Ke)}else Oi(P,Rj(e,d,c));if(Vm(n)&&n.links.target&&Vm(n.links.target)&&n.links.target.links.tupleLabelDeclaration){const Ke=n.links.target.links.tupleLabelDeclaration;re.assertNode(Ke.name,xn),P.push(qh()),P.push(D1(21)),P.push(lS(Kr(Ke.name))),P.push(D1(22))}}else if($&16||$&8192||$&16384||$&131072||$&98304||J==="method"){const Ke=d.getNonNullableType().getCallSignatures();Ke.length&&(Lt(Ke[0],Ke),we=Ke.length>1)}}}else J=XQe(e,n,u);if(k.length===0&&!we&&(k=n.getContextualDocumentationComment(c,e)),k.length===0&&$&4&&n.parent&&n.declarations&&Ot(n.parent.declarations,Ke=>Ke.kind===312))for(const Ke of n.declarations){if(!Ke.parent||Ke.parent.kind!==226)continue;const st=e.getSymbolAtLocation(Ke.parent.right);if(st&&(k=st.getDocumentationComment(e),F=st.getJsDocTags(e),k.length>0))break}if(k.length===0&&xn(u)&&n.valueDeclaration&&sa(n.valueDeclaration)){const Ke=n.valueDeclaration,st=Ke.parent,It=Ke.propertyName||Ke.name;if(xn(It)&&Ch(st)){const Yt=K2(It),Et=e.getTypeAtLocation(st);k=Yr(Et.isUnion()?Et.types:[Et],at=>{const Qt=at.getProperty(Yt);return Qt?Qt.getDocumentationComment(e):void 0})||Yn}}return F.length===0&&!we&&(F=n.getContextualJsDocTags(c,e)),k.length===0&&ae&&(k=ae),F.length===0&&ve&&(F=ve),{displayParts:P,documentation:k,symbolKind:J,tags:F.length===0?void 0:F};function Fe(){return d4()}function et(){P.length&&P.push(wj()),Pe()}function Pe(){S&&(Ct("alias"),P.push(qh()))}function dt(){P.push(qh()),P.push(ZE(103)),P.push(qh())}function Ie(Ke,st){let It;S&&Ke===n&&(Ke=S),J==="index"&&(It=e.getIndexInfosOfIndexSymbol(Ke));let Yt=[];Ke.flags&131072&&It?(Ke.parent&&(Yt=Rg(e,Ke.parent)),Yt.push(D1(23)),It.forEach((Et,at)=>{Yt.push(...Rj(e,Et.keyType)),at!==It.length-1&&(Yt.push(qh()),Yt.push(D1(52)),Yt.push(qh()))}),Yt.push(D1(24))):Yt=Rg(e,Ke,st||i,void 0,7),Oi(P,Yt),n.flags&16777216&&P.push(D1(58))}function ct(Ke,st){et(),st&&(Ct(st),Ke&&!gt(Ke.declarations,It=>$m(It)||(Jm(It)||v0(It))&&!It.name)&&(P.push(qh()),Ie(Ke)))}function Ct(Ke){switch(Ke){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":P.push(NP(Ke));return;default:P.push(D1(21)),P.push(NP(Ke)),P.push(D1(22));return}}function Lt(Ke,st,It=0){Oi(P,iq(e,Ke,c,It|32)),st.length>1&&(P.push(qh()),P.push(D1(21)),P.push(rq(40)),P.push(yE((st.length-1).toString(),7)),P.push(qh()),P.push(lS(st.length===2?"overload":"overloads")),P.push(D1(22))),k=Ke.getDocumentationComment(e),F=Ke.getJsDocTags(),st.length>1&&k.length===0&&F.length===0&&(k=st[0].getDocumentationComment(e),F=st[0].getJsDocTags().filter(Yt=>Yt.name!=="deprecated"))}function Ze(Ke,st){const It=M6(Yt=>{const Et=e.symbolToTypeParameterDeclarations(Ke,st,Lke);Fe().writeList(53776,Et,ts(__(st)),Yt)});Oi(P,It)}}function ZQe(e,n,i,c,u,d=xF(u),h){return QQe(e,n,i,c,u,void 0,d,h)}function eZe(e){return e.parent?!1:Ot(e.declarations,n=>{if(n.kind===218)return!0;if(n.kind!==260&&n.kind!==262)return!1;for(let i=n.parent;!hP(i);i=i.parent)if(i.kind===312||i.kind===268)return!1;return!0})}var Lke,W9e=G({"src/services/symbolDisplay.ts"(){xl(),Lke=70246400}}),W6={};Oe(W6,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>ZQe,getSymbolKind:()=>XQe,getSymbolModifiers:()=>YQe});var I4=G({"src/services/_namespaces/ts.SymbolDisplay.ts"(){W9e()}});function tZe(e){const n=e.__pos;return re.assert(typeof n=="number"),n}function Oke(e,n){re.assert(typeof n=="number"),e.__pos=n}function Fke(e){const n=e.__end;return re.assert(typeof n=="number"),n}function Wke(e,n){re.assert(typeof n=="number"),e.__end=n}function Bke(e,n){return Ff(e,n,!1,!0)}function nZe(e,n){let i=n;for(;i0?1:0;let $=fR(j9(e,P)+F,e);return $=Bke(e.text,$),fR(j9(e,$),e)}function iO(e,n,i){const{end:c}=n,{trailingTriviaOption:u}=i;if(u===2){const d=SN(e.text,c);if(d){const h=j9(e,n.end);for(const S of d){if(S.kind===2||j9(e,S.pos)>h)break;if(j9(e,S.end)>h)return Ff(e.text,S.end,!0,!0)}}}}function gB(e,n,i){var c;const{end:u}=n,{trailingTriviaOption:d}=i;if(d===0)return u;if(d===1){const E=Hi(SN(e.text,u),JD(e.text,u)),P=(c=E==null?void 0:E[E.length-1])==null?void 0:c.end;return P||u}const h=iO(e,n,i);if(h)return h;const S=Ff(e.text,u,!0);return S!==u&&(d===2||Sb(e.text.charCodeAt(S-1)))?S:u}function UF(e,n){return!!n&&!!e.parent&&(n.kind===28||n.kind===27&&e.parent.kind===210)}function zke(e){return Jm(e)||mg(e)}function smt(e){if(e.kind!==219)return e;const n=e.parent.kind===172?e.parent:e.parent.parent;return n.jsDoc=e.jsDoc,n}function cmt(e,n){if(e.kind===n.kind)switch(e.kind){case 348:{const i=e,c=n;return xn(i.name)&&xn(c.name)&&i.name.escapedText===c.name.escapedText?he.createJSDocParameterTag(void 0,c.name,!1,c.typeExpression,c.isNameFirst,i.comment):void 0}case 349:return he.createJSDocReturnTag(void 0,n.typeExpression,e.comment);case 351:return he.createJSDocTypeTag(void 0,n.typeExpression,e.comment)}}function B9e(e,n){return Ff(e.text,VR(e,n,{leadingTriviaOption:1}),!1,!0)}function z9e(e,n,i,c){const u=B9e(e,c);if(i===void 0||mv(gB(e,n,{}),u,e))return u;const d=bv(c.getStart(e),e);if(UF(n,d)){const h=bv(n.getStart(e),e);if(UF(i,h)){const S=Ff(e.text,d.getEnd(),!0,!0);if(mv(h.getStart(e),d.getStart(e),e))return Sb(e.text.charCodeAt(S-1))?S-1:S;if(Sb(e.text.charCodeAt(S)))return S}}return u}function lmt(e,n){const i=qm(e,19,n),c=qm(e,20,n);return[i==null?void 0:i.end,c==null?void 0:c.end]}function Gke(e){return el(e)?e.properties:e.members}function bue(e,n){for(let i=n.length-1;i>=0;i--){const{span:c,newText:u}=n[i];e=`${e.substring(0,c.start)}${u}${e.substring(Xy(c))}`}return e}function G9e(e){return Ff(e,0)===e.length}function jke(e){const n=Xo(e,jke,E0e,Vke,jke),i=Hd(n)?n:Object.create(n);return T1(i,tZe(e),Fke(e)),i}function Vke(e,n,i,c,u){const d=Wa(e,n,i,c,u);if(!d)return d;re.assert(e);const h=d===e?he.createNodeArray(d.slice(0)):d;return T1(h,tZe(e),Fke(e)),h}function rZe(e){let n=0;const i=Nie(e),c=at=>{at&&Oke(at,n)},u=at=>{at&&Wke(at,n)},d=at=>{at&&Oke(at,n)},h=at=>{at&&Wke(at,n)},S=at=>{at&&Oke(at,n)},E=at=>{at&&Wke(at,n)};function P(at,Qt){if(Qt||!G9e(at)){n=i.getTextPos();let nn=0;for(;cP(at.charCodeAt(at.length-nn-1));)nn++;n-=nn}}function k(at){i.write(at),P(at,!1)}function F(at){i.writeComment(at)}function $(at){i.writeKeyword(at),P(at,!1)}function J(at){i.writeOperator(at),P(at,!1)}function X(at){i.writePunctuation(at),P(at,!1)}function ie(at){i.writeTrailingSemicolon(at),P(at,!1)}function ae(at){i.writeParameter(at),P(at,!1)}function ve(at){i.writeProperty(at),P(at,!1)}function we(at){i.writeSpace(at),P(at,!1)}function Fe(at){i.writeStringLiteral(at),P(at,!1)}function et(at,Qt){i.writeSymbol(at,Qt),P(at,!1)}function Pe(at){i.writeLine(at)}function dt(){i.increaseIndent()}function Ie(){i.decreaseIndent()}function ct(){return i.getText()}function Ct(at){i.rawWrite(at),P(at,!1)}function Lt(at){i.writeLiteral(at),P(at,!0)}function Ze(){return i.getTextPos()}function Ke(){return i.getLine()}function st(){return i.getColumn()}function It(){return i.getIndent()}function Yt(){return i.isAtStartOfLine()}function Et(){i.clear(),n=0}return{onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:h,onBeforeEmitToken:S,onAfterEmitToken:E,write:k,writeComment:F,writeKeyword:$,writeOperator:J,writePunctuation:X,writeTrailingSemicolon:ie,writeParameter:ae,writeProperty:ve,writeSpace:we,writeStringLiteral:Fe,writeSymbol:et,writeLine:Pe,increaseIndent:dt,decreaseIndent:Ie,getText:ct,rawWrite:Ct,writeLiteral:Lt,getTextPos:Ze,getLine:Ke,getColumn:st,getIndent:It,isAtStartOfLine:Yt,hasTrailingComment:()=>i.hasTrailingComment(),hasTrailingWhitespace:()=>i.hasTrailingWhitespace(),clear:Et}}function iZe(e){let n;for(const P of e.statements)if($2(P))n=P;else break;let i=0;const c=e.text;if(n)return i=n.end,E(),i;const u=Bz(c);u!==void 0&&(i=u.length,E());const d=JD(c,i);if(!d)return i;let h,S;for(const P of d){if(P.kind===3){if(uie(c,P.pos)){h={range:P,pinnedOrTripleSlash:!0};continue}}else if(_de(c,P.pos,P.end)){h={range:P,pinnedOrTripleSlash:!0};continue}if(h){if(h.pinnedOrTripleSlash)break;const k=e.getLineAndCharacterOfPosition(P.pos).line,F=e.getLineAndCharacterOfPosition(h.range.end).line;if(k>=F+2)break}if(e.statements.length){S===void 0&&(S=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const k=e.getLineAndCharacterOfPosition(P.end).line;if(S(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Uq||{}),T0e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(T0e||{}),mV={leadingTriviaOption:0,trailingTriviaOption:0},Hq=class T1t{constructor(n,i){this.newLineCharacter=n,this.formatContext=i,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new T1t(R6(n.host,n.formatContext.options),n.formatContext)}static with(n,i){const c=T1t.fromContext(n);return i(c),c.getChanges()}pushRaw(n,i){re.assertEqual(n.fileName,i.fileName);for(const c of i.textChanges)this.changes.push({kind:3,sourceFile:n,text:c.newText,range:MZ(c.span)})}deleteRange(n,i){this.changes.push({kind:0,sourceFile:n,range:i})}delete(n,i){this.deletedNodes.push({sourceFile:n,node:i})}deleteNode(n,i,c={leadingTriviaOption:1}){this.deleteRange(n,vue(n,i,i,c))}deleteNodes(n,i,c={leadingTriviaOption:1},u){for(const d of i){const h=VR(n,d,c,u),S=gB(n,d,c);this.deleteRange(n,{pos:h,end:S}),u=!!iO(n,d,c)}}deleteModifier(n,i){this.deleteRange(n,{pos:i.getStart(n),end:Ff(n.text,i.end,!0)})}deleteNodeRange(n,i,c,u={leadingTriviaOption:1}){const d=VR(n,i,u),h=gB(n,c,u);this.deleteRange(n,{pos:d,end:h})}deleteNodeRangeExcludingEnd(n,i,c,u={leadingTriviaOption:1}){const d=VR(n,i,u),h=c===void 0?n.text.length:VR(n,c,u);this.deleteRange(n,{pos:d,end:h})}replaceRange(n,i,c,u={}){this.changes.push({kind:1,sourceFile:n,range:i,options:u,node:c})}replaceNode(n,i,c,u=mV){this.replaceRange(n,vue(n,i,i,u),c,u)}replaceNodeRange(n,i,c,u,d=mV){this.replaceRange(n,vue(n,i,c,d),u,d)}replaceRangeWithNodes(n,i,c,u={}){this.changes.push({kind:2,sourceFile:n,range:i,options:u,nodes:c})}replaceNodeWithNodes(n,i,c,u=mV){this.replaceRangeWithNodes(n,vue(n,i,i,u),c,u)}replaceNodeWithText(n,i,c){this.replaceRangeWithText(n,vue(n,i,i,mV),c)}replaceNodeRangeWithNodes(n,i,c,u,d=mV){this.replaceRangeWithNodes(n,vue(n,i,c,d),u,d)}nodeHasTrailingComment(n,i,c=mV){return!!iO(n,i,c)}nextCommaToken(n,i){const c=N6(i,i.parent,n);return c&&c.kind===28?c:void 0}replacePropertyAssignment(n,i,c){const u=this.nextCommaToken(n,i)?"":","+this.newLineCharacter;this.replaceNode(n,i,c,{suffix:u})}insertNodeAt(n,i,c,u={}){this.replaceRange(n,tv(i),c,u)}insertNodesAt(n,i,c,u={}){this.replaceRangeWithNodes(n,tv(i),c,u)}insertNodeAtTopOfFile(n,i,c){this.insertAtTopOfFile(n,i,c)}insertNodesAtTopOfFile(n,i,c){this.insertAtTopOfFile(n,i,c)}insertAtTopOfFile(n,i,c){const u=iZe(n),d={prefix:u===0?void 0:this.newLineCharacter,suffix:(Sb(n.text.charCodeAt(u))?"":this.newLineCharacter)+(c?this.newLineCharacter:"")};ls(i)?this.insertNodesAt(n,u,i,d):this.insertNodeAt(n,u,i,d)}insertNodesAtEndOfFile(n,i,c){this.insertAtEndOfFile(n,i,c)}insertAtEndOfFile(n,i,c){const u=n.end+1,d={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(c?this.newLineCharacter:"")};this.insertNodesAt(n,u,i,d)}insertStatementsInNewFile(n,i,c){this.newFileChanges||(this.newFileChanges=zg()),this.newFileChanges.add(n,{oldFile:c,statements:i})}insertFirstParameter(n,i,c){const u=pp(i);u?this.insertNodeBefore(n,u,c):this.insertNodeAt(n,i.pos,c)}insertNodeBefore(n,i,c,u=!1,d={}){this.insertNodeAt(n,VR(n,i,d),c,this.getOptionsForInsertNodeBefore(i,c,u))}insertNodesBefore(n,i,c,u=!1,d={}){this.insertNodesAt(n,VR(n,i,d),c,this.getOptionsForInsertNodeBefore(i,Dl(c),u))}insertModifierAt(n,i,c,u={}){this.insertNodeAt(n,i,he.createToken(c),u)}insertModifierBefore(n,i,c){return this.insertModifierAt(n,c.getStart(n),i,{suffix:" "})}insertCommentBeforeLine(n,i,c,u){const d=fR(i,n),h=kF(n.text,d),S=oZe(n,h),E=MR(n,S?h:c),P=n.text.slice(d,h),k=`${S?"":this.newLineCharacter}//${u}${this.newLineCharacter}${P}`;this.insertText(n,E.getStart(n),k)}insertJsdocCommentBefore(n,i,c){const u=i.getStart(n);if(i.jsDoc)for(const S of i.jsDoc)this.deleteRange(n,{pos:Ux(S.getStart(n),n),end:gB(n,S,{})});const d=Yge(n.text,u-1),h=n.text.slice(d,u);this.insertNodeAt(n,u,c,{suffix:this.newLineCharacter+h})}createJSDocText(n,i){const c=ea(i.jsDoc,d=>As(d.comment)?he.createJSDocText(d.comment):d.comment),u=Vb(i.jsDoc);return u&&mv(u.pos,u.end,n)&&Nt(c)===0?void 0:he.createNodeArray(Zi(c,he.createJSDocText(` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return J}}function Y$e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Q$e(e,n,i){const c=Lf(e,n),u=Ua(c,Y$e);if(!u||Vd(u)&&u.body&&CZ(u.body,n))return;const d=i.getTypeChecker(),h=u.symbol;if(!h)return;const S=h.declarations;if(Nt(S)<=1||!jr(S,$=>ts($)===e)||!Y$e(S[0]))return;const E=S[0].kind;if(!jr(S,$=>$.kind===E))return;const P=S;if(gt(P,$=>!!$.typeParameters||gt($.parameters,J=>!!J.modifiers||!xn(J.name))))return;const k=Qo(P,$=>d.getSignatureFromDeclaration($));if(Nt(k)!==Nt(S))return;const F=d.getReturnTypeOfSignature(k[0]);if(jr(k,$=>d.getReturnTypeOfSignature($)===F))return P}var GCe,B3e,jCe,Z$e=G({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){xl(),EI(),GCe="Convert overload list to single signature",B3e=fs(N.Convert_overload_list_to_single_signature),jCe={name:GCe,description:B3e,kind:"refactor.rewrite.function.overloadList"},wk(GCe,{kinds:[jCe.kind],getEditsForAction:wlt,getAvailableActions:Zce})}});function Rlt(e){const{file:n,startPosition:i,triggerReason:c}=e,u=z3e(n,i,c==="invoked");return u?BR(u)?e.preferences.provideRefactorNotApplicableReason?[{name:VCe,description:G3e,actions:[{...Ghe,notApplicableReason:u.error},{...ele,notApplicableReason:u.error}]}]:Yn:[{name:VCe,description:G3e,actions:[u.addBraces?Ghe:ele]}]:Yn}function Mlt(e,n){const{file:i,startPosition:c}=e,u=z3e(i,c);re.assert(u&&!BR(u),"Expected applicable refactor info");const{expression:d,returnStatement:h,func:S}=u;let E;if(n===Ghe.name){const k=he.createReturnStatement(d);E=he.createBlock([k],!0),rB(d,k,i,3,!0)}else if(n===ele.name&&h){const k=d||he.createVoidZero();E=fce(k)?he.createParenthesizedExpression(k):k,PF(h,E,i,3,!1),rB(h,E,i,3,!1),Rj(h,E,i,3,!1)}else re.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,k=>{k.replaceNode(i,S.body,E)})}}function z3e(e,n,i=!0,c){const u=Lf(e,n),d=zE(u);if(!d)return{error:fs(N.Could_not_find_a_containing_arrow_function)};if(!$m(d))return{error:fs(N.Containing_function_is_not_an_arrow_function)};if(!(!ov(d,u)||ov(d.body,u)&&!i)){if(RP(Ghe.kind,c)&&kr(d.body))return{func:d,addBraces:!0,expression:d.body};if(RP(ele.kind,c)&&Ou(d.body)&&d.body.statements.length===1){const h=Dl(d.body.statements);if(iS(h)){const S=h.expression&&el(qL(h.expression,!1))?he.createParenthesizedExpression(h.expression):h.expression;return{func:d,addBraces:!1,expression:S,returnStatement:h}}}}}var VCe,G3e,Ghe,ele,Llt=G({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){xl(),EI(),VCe="Add or remove braces in an arrow function",G3e=fs(N.Add_or_remove_braces_in_an_arrow_function),Ghe={name:"Add braces to arrow function",description:fs(N.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},ele={name:"Remove braces from arrow function",description:fs(N.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},wk(VCe,{kinds:[ele.kind],getEditsForAction:Mlt,getAvailableActions:Rlt})}}),eqe={},j3e=G({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){Z$e(),Llt()}});function tqe(e){const{file:n,startPosition:i,program:c,kind:u}=e,d=vee(n,i,c);if(!d)return Yn;const{selectedVariableDeclaration:h,func:S}=d,E=[],P=[];if(RP(rle.kind,u)){const k=h||$m(S)&&Kc(S.parent)?void 0:fs(N.Could_not_convert_to_named_function);k?P.push({...rle,notApplicableReason:k}):E.push(rle)}if(RP(nle.kind,u)){const k=!h&&$m(S)?void 0:fs(N.Could_not_convert_to_anonymous_function);k?P.push({...nle,notApplicableReason:k}):E.push(nle)}if(RP(bee.kind,u)){const k=Jm(S)?void 0:fs(N.Could_not_convert_to_arrow_function);k?P.push({...bee,notApplicableReason:k}):E.push(bee)}return[{name:jhe,description:H3e,actions:E.length===0&&e.preferences.provideRefactorNotApplicableReason?P:E}]}function tle(e,n){const{file:i,startPosition:c,program:u}=e,d=vee(i,c,u);if(!d)return;const{func:h}=d,S=[];switch(n){case nle.name:S.push(...Blt(e,h));break;case rle.name:const E=Wlt(h);if(!E)return;S.push(...zlt(e,h,E));break;case bee.name:if(!Jm(h))return;S.push(...Glt(e,h));break;default:return re.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:S}}function yee(e){let n=!1;return e.forEachChild(function i(c){if(AF(c)){n=!0;return}!Fl(c)&&!mg(c)&&!Jm(c)&&s_(c,i)}),n}function vee(e,n,i){const c=Lf(e,n),u=i.getTypeChecker(),d=Flt(e,u,c.parent);if(d&&!yee(d.body)&&!u.containsArgumentsReference(d))return{selectedVariableDeclaration:!0,func:d};const h=zE(c);if(h&&(Jm(h)||$m(h))&&!ov(h.body,c)&&!yee(h.body)&&!u.containsArgumentsReference(h))return Jm(h)&&U3e(e,u,h)?void 0:{selectedVariableDeclaration:!1,func:h}}function Olt(e){return Kc(e)||Kp(e)&&e.declarations.length===1}function Flt(e,n,i){if(!Olt(i))return;const u=(Kc(i)?i:Dl(i.declarations)).initializer;if(u&&($m(u)||Jm(u)&&!U3e(e,n,u)))return u}function nqe(e){if(kr(e)){const n=he.createReturnStatement(e),i=e.getSourceFile();return Tn(n,e),zT(n),PF(e,n,i,void 0,!0),he.createBlock([n],!0)}else return e}function Wlt(e){const n=e.parent;if(!Kc(n)||!rC(n))return;const i=n.parent,c=i.parent;if(!(!Kp(i)||!Xg(c)||!xn(n.name)))return{variableDeclaration:n,variableDeclarationList:i,statement:c,name:n.name}}function Blt(e,n){const{file:i}=e,c=nqe(n.body),u=he.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,c);return zs.ChangeTracker.with(e,d=>d.replaceNode(i,n,u))}function zlt(e,n,i){const{file:c}=e,u=nqe(n.body),{variableDeclaration:d,variableDeclarationList:h,statement:S,name:E}=i;oq(S);const P=Eb(d)&32|Cb(n),k=he.createModifiersFromModifierFlags(P),F=he.createFunctionDeclaration(Nt(k)?k:void 0,n.asteriskToken,E,n.typeParameters,n.parameters,n.type,u);return h.declarations.length===1?zs.ChangeTracker.with(e,$=>$.replaceNode(c,S,F)):zs.ChangeTracker.with(e,$=>{$.delete(c,d),$.insertNodeAfter(c,S,F)})}function Glt(e,n){const{file:i}=e,u=n.body.statements[0];let d;V3e(n.body,u)?(d=u.expression,zT(d),nB(u,d)):d=n.body;const h=he.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,he.createToken(39),d);return zs.ChangeTracker.with(e,S=>S.replaceNode(i,n,h))}function V3e(e,n){return e.statements.length===1&&iS(n)&&!!n.expression}function U3e(e,n,i){return!!i.name&&Wf.Core.isSymbolReferencedInFile(i.name,n,e)}var jhe,H3e,nle,rle,bee,jlt=G({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){xl(),EI(),jhe="Convert arrow function or function expression",H3e=fs(N.Convert_arrow_function_or_function_expression),nle={name:"Convert to anonymous function",description:fs(N.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},rle={name:"Convert to named function",description:fs(N.Convert_to_named_function),kind:"refactor.rewrite.function.named"},bee={name:"Convert to arrow function",description:fs(N.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},wk(jhe,{kinds:[nle.kind,rle.kind,bee.kind],getEditsForAction:tle,getAvailableActions:tqe})}}),Vlt={},Ult=G({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){jlt()}});function Vhe(e){const{file:n,startPosition:i}=e;return Gy(n)||!q3e(n,i,e.program.getTypeChecker())?Yn:[{name:Uhe,description:qCe,actions:[nOe]}]}function rqe(e,n){re.assert(n===Uhe,"Unexpected action name");const{file:i,startPosition:c,program:u,cancellationToken:d,host:h}=e,S=q3e(i,c,u.getTypeChecker());if(!S||!d)return;const E=Jlt(S,u,d);return E.valid?{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,k=>Hlt(i,u,h,k,S,E))}:{edits:[]}}function Hlt(e,n,i,c,u,d){const h=d.signature,S=Vn(sqe(u,n,i),k=>ih(k));if(h){const k=Vn(sqe(h,n,i),F=>ih(F));P(h,k)}P(u,S);const E=OD(d.functionCalls,(k,F)=>pf(k.pos,F.pos));for(const k of E)if(k.arguments&&k.arguments.length){const F=ih(Qlt(u,k.arguments),!0);c.replaceNodeRange(ts(k),Dl(k.arguments),yl(k.arguments),F,{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Include})}function P(k,F){c.replaceNodeRangeWithNodes(e,Dl(k.parameters),yl(k.parameters),F,{joiner:", ",indentation:0,leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Include})}}function Jlt(e,n,i){const c=eOe(e),u=Lh(e)?Z3e(e):[],d=th([...c,...u],_1),h=n.getTypeChecker(),S=ea(d,F=>Wf.getReferenceEntriesForNode(-1,F,n,n.getSourceFiles(),i)),E=P(S);return jr(E.declarations,F=>ni(d,F))||(E.valid=!1),E;function P(F){const $={accessExpressions:[],typeUsages:[]},J={functionCalls:[],declarations:[],classReferences:$,valid:!0},X=Vn(c,k),ie=Vn(u,k),ae=Lh(e),ve=Vn(c,we=>UCe(we,h));for(const we of F){if(we.kind===Wf.EntryKind.Span){J.valid=!1;continue}if(ni(ve,k(we.node))){if(Klt(we.node.parent)){J.signature=we.node.parent;continue}const et=$3e(we);if(et){J.functionCalls.push(et);continue}}const Fe=UCe(we.node,h);if(Fe&&ni(ve,Fe)){const et=J3e(we);if(et){J.declarations.push(et);continue}}if(ni(X,k(we.node))||V$(we.node)){if(HCe(we))continue;const Pe=J3e(we);if(Pe){J.declarations.push(Pe);continue}const dt=$3e(we);if(dt){J.functionCalls.push(dt);continue}}if(ae&&ni(ie,k(we.node))){if(HCe(we))continue;const Pe=J3e(we);if(Pe){J.declarations.push(Pe);continue}const dt=$lt(we);if(dt){$.accessExpressions.push(dt);continue}if(Ih(e.parent)){const Ie=qlt(we);if(Ie){$.typeUsages.push(Ie);continue}}}J.valid=!1}return J}function k(F){const $=h.getSymbolAtLocation(F);return $&&e2($,h)}}function UCe(e,n){const i=Aee(e);if(i){const c=n.getContextualTypeForObjectLiteralElement(i),u=c==null?void 0:c.getSymbol();if(u&&!(I_(u)&6))return u}}function HCe(e){const n=e.node;if(qE(n.parent)||Tk(n.parent)||Yb(n.parent)||mh(n.parent)||my(n.parent)||py(n.parent))return n}function J3e(e){if(PT(e.node.parent))return e.node}function $3e(e){if(e.node.parent){const n=e.node,i=n.parent;switch(i.kind){case 213:case 214:const c=to(i,sk);if(c&&c.expression===n)return c;break;case 211:const u=to(i,Ac);if(u&&u.parent&&u.name===n){const h=to(u.parent,sk);if(h&&h.expression===u)return h}break;case 212:const d=to(i,Hm);if(d&&d.parent&&d.argumentExpression===n){const h=to(d.parent,sk);if(h&&h.expression===d)return h}break}}}function $lt(e){if(e.node.parent){const n=e.node,i=n.parent;switch(i.kind){case 211:const c=to(i,Ac);if(c&&c.expression===n)return c;break;case 212:const u=to(i,Hm);if(u&&u.expression===n)return u;break}}}function qlt(e){const n=e.node;if(xF(n)===2||Gie(n.parent))return n}function q3e(e,n,i){const c=MR(e,n),u=oSe(c);if(!JCe(c)&&u&&Xlt(u,i)&&ov(u,c)&&!(u.body&&ov(u.body,c)))return u}function JCe(e){const n=Ua(e,Jz);if(n){const i=Ua(n,c=>!Jz(c));return!!i&&Vd(i)}return!1}function Klt(e){return pg(e)&&(xp(e.parent)||rS(e.parent))}function Xlt(e,n){var i;if(!X3e(e.parameters,n))return!1;switch(e.kind){case 262:return K3e(e)&&Vj(e,n);case 174:if(el(e.parent)){const c=UCe(e.name,n);return((i=c==null?void 0:c.declarations)==null?void 0:i.length)===1&&Vj(e,n)}return Vj(e,n);case 176:return Ih(e.parent)?K3e(e.parent)&&Vj(e,n):iqe(e.parent.parent)&&Vj(e,n);case 218:case 219:return iqe(e.parent)}return!1}function Vj(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function K3e(e){return e.name?!0:!!QW(e,90)}function X3e(e,n){return Ylt(e)>=tOe&&jr(e,i=>Y3e(i,n))}function Y3e(e,n){if(sp(e)){const i=n.getTypeAtLocation(e);if(!n.isArrayType(i)&&!n.isTupleType(i))return!1}return!e.modifiers&&xn(e.name)}function iqe(e){return Kc(e)&&rH(e)&&xn(e.name)&&!e.type}function Q3e(e){return e.length>0&&AF(e[0].name)}function Ylt(e){return Q3e(e)?e.length-1:e.length}function oqe(e){return Q3e(e)&&(e=he.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function aqe(e,n){return xn(n)&&K2(n)===e?he.createShorthandPropertyAssignment(e):he.createPropertyAssignment(e,n)}function Qlt(e,n){const i=oqe(e.parameters),c=sp(yl(i)),u=c?n.slice(0,i.length-1):n,d=Vn(u,(S,E)=>{const P=$Ce(i[E]),k=aqe(P,S);return zT(k.name),tl(k)&&zT(k.initializer),nB(S,k),k});if(c&&n.length>=i.length){const S=n.slice(i.length-1),E=he.createPropertyAssignment($Ce(yl(i)),he.createArrayLiteralExpression(S));d.push(E)}return he.createObjectLiteralExpression(d,!1)}function sqe(e,n,i){const c=n.getTypeChecker(),u=oqe(e.parameters),d=Vn(u,k),h=he.createObjectBindingPattern(d),S=F(u);let E;jr(u,X)&&(E=he.createObjectLiteralExpression());const P=he.createParameterDeclaration(void 0,void 0,h,void 0,S,E);if(Q3e(e.parameters)){const ie=e.parameters[0],ae=he.createParameterDeclaration(void 0,void 0,ie.name,void 0,ie.type);return zT(ae.name),nB(ie.name,ae.name),ie.type&&(zT(ae.type),nB(ie.type,ae.type)),he.createNodeArray([ae,P])}return he.createNodeArray([P]);function k(ie){const ae=he.createBindingElement(void 0,void 0,$Ce(ie),sp(ie)&&X(ie)?he.createArrayLiteralExpression():ie.initializer);return zT(ae),ie.initializer&&ae.initializer&&nB(ie.initializer,ae.initializer),ae}function F(ie){const ae=Vn(ie,$);return cE(he.createTypeLiteralNode(ae),1)}function $(ie){let ae=ie.type;!ae&&(ie.initializer||sp(ie))&&(ae=J(ie));const ve=he.createPropertySignature(void 0,$Ce(ie),X(ie)?he.createToken(58):ie.questionToken,ae);return zT(ve),nB(ie.name,ve.name),ie.type&&ve.type&&nB(ie.type,ve.type),ve}function J(ie){const ae=c.getTypeAtLocation(ie);return iB(ae,ie,n,i)}function X(ie){if(sp(ie)){const ae=c.getTypeAtLocation(ie);return!c.isTupleType(ae)}return c.isOptionalParameter(ie)}}function $Ce(e){return K2(e.name)}function Z3e(e){switch(e.parent.kind){case 263:const n=e.parent;return n.name?[n.name]:[re.checkDefined(QW(n,90),"Nameless class declaration should be a default export")];case 231:const c=e.parent,u=e.parent.parent,d=c.name;return d?[d,u.name]:[u.name]}}function eOe(e){switch(e.kind){case 262:return e.name?[e.name]:[re.checkDefined(QW(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const i=re.checkDefined(qm(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,i]:[i];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return re.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var Uhe,tOe,qCe,nOe,cqe=G({"src/services/refactors/convertParamsToDestructuredObject.ts"(){xl(),EI(),Uhe="Convert parameters to destructured object",tOe=1,qCe=fs(N.Convert_parameters_to_destructured_object),nOe={name:Uhe,description:qCe,kind:"refactor.rewrite.parameters.toDestructured"},wk(Uhe,{kinds:[nOe.kind],getEditsForAction:rqe,getAvailableActions:Vhe})}}),Zlt={},KCe=G({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){cqe()}});function XCe(e){const{file:n,startPosition:i}=e,c=Hhe(n,i),u=rOe(c),d=Sd(u),h={name:YCe,description:QCe,actions:[]};return d&&e.triggerReason!=="invoked"?Yn:ZD(u)&&(d||Ds(u)&&iOe(u).isValidConcatenation)?(h.actions.push(qhe),[h]):e.preferences.provideRefactorNotApplicableReason?(h.actions.push({...qhe,notApplicableReason:fs(N.Can_only_convert_string_concatenations_and_string_literals)}),[h]):Yn}function Hhe(e,n){const i=Lf(e,n),c=rOe(i);return!iOe(c).isValidConcatenation&&fE(c.parent)&&Ds(c.parent.parent)?c.parent.parent:i}function lqe(e,n){const{file:i,startPosition:c}=e,u=Hhe(i,c);switch(n){case QCe:return{edits:uqe(e,u)};default:return re.fail("invalid action")}}function uqe(e,n){const i=rOe(n),c=e.file,u=nut(iOe(i),c),d=SN(c.text,i.end);if(d){const h=d[d.length-1],S={pos:d[0].pos,end:h.end};return zs.ChangeTracker.with(e,E=>{E.deleteRange(c,S),E.replaceNode(c,i,u)})}else return zs.ChangeTracker.with(e,h=>h.replaceNode(c,i,u))}function eut(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function rOe(e){return Ua(e.parent,i=>{switch(i.kind){case 211:case 212:return!1;case 228:case 226:return!(Ds(i.parent)&&eut(i.parent));default:return"quit"}})||e}function iOe(e){const n=h=>{if(!Ds(h))return{nodes:[h],operators:[],validOperators:!0,hasString:Sd(h)||K7(h)};const{nodes:S,operators:E,hasString:P,validOperators:k}=n(h.left);if(!(P||Sd(h.right)||B0(h.right)))return{nodes:[h],operators:[],hasString:!1,validOperators:!0};const F=h.operatorToken.kind===40,$=k&&F;return S.push(h.right),E.push(h.operatorToken),{nodes:S,operators:E,hasString:!0,validOperators:$}},{nodes:i,operators:c,validOperators:u,hasString:d}=n(e);return{nodes:i,operators:c,isValidConcatenation:u&&d}}function tut(e){return e.replace(/\\.|[$`]/g,n=>n[0]==="\\"?n:"\\"+n)}function fqe(e){const n=X7(e)||TEe(e)?-2:-1;return Lv(e).slice(1,n)}function Jhe(e,n){const i=[];let c="",u="";for(;e{$he(Fe);const Pe=et===$.templateSpans.length-1,dt=Fe.literal.text+(Pe?X:""),Ie=fqe(Fe.literal)+(Pe?ie:"");return he.createTemplateSpan(Fe.expression,ve&&Pe?he.createTemplateTail(dt,Ie):he.createTemplateMiddle(dt,Ie))});P.push(...we)}else{const we=ve?he.createTemplateTail(X,ie):he.createTemplateMiddle(X,ie);u(ae,we),P.push(he.createTemplateSpan($,we))}}return he.createTemplateExpression(k,P)}function $he(e){const n=e.getSourceFile();Rj(e,e.expression,n,3,!1),PF(e.expression,e.expression,n,3,!1)}function _qe(e){return fE(e)&&($he(e),e=e.expression),e}var YCe,QCe,qhe,ZCe,dqe,ile=G({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){xl(),EI(),YCe="Convert to template string",QCe=fs(N.Convert_to_template_string),qhe={name:YCe,description:QCe,kind:"refactor.rewrite.string"},wk(YCe,{kinds:[qhe.kind],getEditsForAction:lqe,getAvailableActions:XCe}),ZCe=(e,n)=>(i,c)=>{i(c,u)=>{for(;c.length>0;){const d=c.shift();Rj(e[d],u,n,3,!1),i(d,u)}}}}),rut={},iut=G({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){ile()}});function out(e){const n=Xhe(e,e.triggerReason==="invoked");return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Qhe,description:tDe,actions:[{...ole,notApplicableReason:n.error}]}]:Yn:[{name:Qhe,description:tDe,actions:[ole]}]:Yn}function oOe(e,n){const i=Xhe(e);return re.assert(i&&!BR(i),"Expected applicable refactor info"),{edits:zs.ChangeTracker.with(e,u=>uut(e.file,e.program.getTypeChecker(),u,i)),renameFilename:void 0,renameLocation:void 0}}function Khe(e){return Ds(e)||ex(e)}function aut(e){return kb(e)||iS(e)||Xg(e)}function gq(e){return Khe(e)||aut(e)}function Xhe(e,n=!0){const{file:i,program:c}=e,u=NF(e),d=u.length===0;if(d&&!n)return;const h=Lf(i,u.start),S=Xse(i,u.start+u.length),E=Yy(h.pos,S&&S.end>=h.pos?S.getEnd():h.getEnd()),P=d?cut(h):sOe(h,E),k=P&&gq(P)?lut(P):void 0;if(!k)return{error:fs(N.Could_not_find_convertible_access_expression)};const F=c.getTypeChecker();return ex(k)?eDe(k,F):sut(k)}function eDe(e,n){const i=e.condition,c=Yhe(e.whenTrue);if(!c||n.isNullableType(n.getTypeAtLocation(c)))return{error:fs(N.Could_not_find_convertible_access_expression)};if((Ac(i)||xn(i))&&aOe(i,c.expression))return{finalExpression:c,occurrences:[i],expression:e};if(Ds(i)){const u=pqe(c.expression,i);return u?{finalExpression:c,occurrences:u,expression:e}:{error:fs(N.Could_not_find_matching_access_expressions)}}}function sut(e){if(e.operatorToken.kind!==56)return{error:fs(N.Can_only_convert_logical_AND_access_chains)};const n=Yhe(e.right);if(!n)return{error:fs(N.Could_not_find_convertible_access_expression)};const i=pqe(n.expression,e.left);return i?{finalExpression:n,occurrences:i,expression:e}:{error:fs(N.Could_not_find_matching_access_expressions)}}function pqe(e,n){const i=[];for(;Ds(n)&&n.operatorToken.kind===56;){const u=aOe(rg(e),rg(n.right));if(!u)break;i.push(u),e=u,n=n.left}const c=aOe(e,n);return c&&i.push(c),i.length>0?i:void 0}function aOe(e,n){if(!(!xn(n)&&!Ac(n)&&!Hm(n)))return mqe(e,n)?n:void 0}function mqe(e,n){for(;(xd(e)||Ac(e)||Hm(e))&&Tee(e)!==Tee(n);)e=e.expression;for(;Ac(e)&&Ac(n)||Hm(e)&&Hm(n);){if(Tee(e)!==Tee(n))return!1;e=e.expression,n=n.expression}return xn(e)&&xn(n)&&e.getText()===n.getText()}function Tee(e){if(xn(e)||Ox(e))return e.getText();if(Ac(e))return Tee(e.name);if(Hm(e))return Tee(e.argumentExpression)}function sOe(e,n){for(;e.parent;){if(gq(e)&&n.length!==0&&e.end>=n.start+n.length)return e;e=e.parent}}function cut(e){for(;e.parent;){if(gq(e)&&!gq(e.parent))return e;e=e.parent}}function lut(e){if(Khe(e))return e;if(Xg(e)){const n=I7(e),i=n==null?void 0:n.initializer;return i&&Khe(i)?i:void 0}return e.expression&&Khe(e.expression)?e.expression:void 0}function Yhe(e){if(e=rg(e),Ds(e))return Yhe(e.left);if((Ac(e)||Hm(e)||xd(e))&&!uy(e))return e}function gqe(e,n,i){if(Ac(n)||Hm(n)||xd(n)){const c=gqe(e,n.expression,i),u=i.length>0?i[i.length-1]:void 0,d=(u==null?void 0:u.getText())===n.expression.getText();if(d&&i.pop(),xd(n))return d?he.createCallChain(c,he.createToken(29),n.typeArguments,n.arguments):he.createCallChain(c,n.questionDotToken,n.typeArguments,n.arguments);if(Ac(n))return d?he.createPropertyAccessChain(c,he.createToken(29),n.name):he.createPropertyAccessChain(c,n.questionDotToken,n.name);if(Hm(n))return d?he.createElementAccessChain(c,he.createToken(29),n.argumentExpression):he.createElementAccessChain(c,n.questionDotToken,n.argumentExpression)}return n}function uut(e,n,i,c,u){const{finalExpression:d,occurrences:h,expression:S}=c,E=h[h.length-1],P=gqe(n,d,h);P&&(Ac(P)||Hm(P)||xd(P))&&(Ds(S)?i.replaceNodeRange(e,E,d,P):ex(S)&&i.replaceNode(e,S,he.createBinaryExpression(P,he.createToken(61),S.whenFalse)))}var Qhe,tDe,ole,fut=G({"src/services/refactors/convertToOptionalChainExpression.ts"(){xl(),EI(),Qhe="Convert to optional chain expression",tDe=fs(N.Convert_to_optional_chain_expression),ole={name:Qhe,description:tDe,kind:"refactor.rewrite.expression.optionalChain"},wk(Qhe,{kinds:[ole.kind],getEditsForAction:oOe,getAvailableActions:out})}}),_ut={},dut=G({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){fut()}});function hqe(e){const n=e.kind,i=cOe(e.file,NF(e),e.triggerReason==="invoked"),c=i.targetRange;if(c===void 0){if(!i.errors||i.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Yn;const X=[];return RP(Sq.kind,n)&&X.push({name:bq,description:Sq.description,actions:[{...Sq,notApplicableReason:J(i.errors)}]}),RP(Tq.kind,n)&&X.push({name:bq,description:Tq.description,actions:[{...Tq,notApplicableReason:J(i.errors)}]}),X}const u=vut(c,e);if(u===void 0)return Yn;const d=[],h=new Map;let S;const E=[],P=new Map;let k,F=0;for(const{functionExtraction:X,constantExtraction:ie}of u){if(RP(Sq.kind,n)){const ae=X.description;X.errors.length===0?h.has(ae)||(h.set(ae,!0),d.push({description:ae,name:`function_scope_${F}`,kind:Sq.kind})):S||(S={description:ae,name:`function_scope_${F}`,notApplicableReason:J(X.errors),kind:Sq.kind})}if(RP(Tq.kind,n)){const ae=ie.description;ie.errors.length===0?P.has(ae)||(P.set(ae,!0),E.push({description:ae,name:`constant_scope_${F}`,kind:Tq.kind})):k||(k={description:ae,name:`constant_scope_${F}`,notApplicableReason:J(ie.errors),kind:Tq.kind})}F++}const $=[];return d.length?$.push({name:bq,description:fs(N.Extract_function),actions:d}):e.preferences.provideRefactorNotApplicableReason&&S&&$.push({name:bq,description:fs(N.Extract_function),actions:[S]}),E.length?$.push({name:bq,description:fs(N.Extract_constant),actions:E}):e.preferences.provideRefactorNotApplicableReason&&k&&$.push({name:bq,description:fs(N.Extract_constant),actions:[k]}),$.length?$:Yn;function J(X){let ie=X[0].messageText;return typeof ie!="string"&&(ie=ie.messageText),ie}}function yqe(e,n){const c=cOe(e.file,NF(e)).targetRange,u=/^function_scope_(\d+)$/.exec(n);if(u){const h=+u[1];return re.assert(isFinite(h),"Expected to parse a finite number from the function scope index"),hut(c,e,h)}const d=/^constant_scope_(\d+)$/.exec(n);if(d){const h=+d[1];return re.assert(isFinite(h),"Expected to parse a finite number from the constant scope index"),yut(c,e,h)}re.fail("Unrecognized action name")}function cOe(e,n,i=!0){const{length:c}=n;if(c===0&&!i)return{errors:[Pp(e,n.start,c,n1.cannotExtractEmpty)]};const u=c===0&&i,d=Gge(e,n.start),h=Xse(e,Xy(n)),S=d&&h&&i?put(d,h,e):n,E=u?nDe(d):nq(d,e,S),P=u?E:nq(h,e,S);let k=0,F;if(!E||!P)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};if(E.flags&16777216)return{errors:[Pp(e,n.start,c,n1.cannotExtractJSDoc)]};if(E.parent!==P.parent)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};if(E!==P){if(!Tqe(E.parent))return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};const we=[];for(const Fe of E.parent.statements){if(Fe===E||we.length){const et=ve(Fe);if(et)return{errors:et};we.push(Fe)}if(Fe===P)break}return we.length?{targetRange:{range:we,facts:k,thisNode:F}}:{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]}}if(iS(E)&&!E.expression)return{errors:[Pp(e,n.start,c,n1.cannotExtractRange)]};const $=X(E),J=ie($)||ve($);if(J)return{errors:J};return{targetRange:{range:mut($),facts:k,thisNode:F}};function X(we){if(iS(we)){if(we.expression)return we.expression}else if(Xg(we)||Kp(we)){const Fe=Xg(we)?we.declarationList.declarations:we.declarations;let et=0,Pe;for(const dt of Fe)dt.initializer&&(et++,Pe=dt.initializer);if(et===1)return Pe}else if(Kc(we)&&we.initializer)return we.initializer;return we}function ie(we){if(xn(kb(we)?we.expression:we))return[Bs(we,n1.cannotExtractIdentifier)]}function ae(we,Fe){let et=we;for(;et!==Fe;){if(et.kind===172){pd(et)&&(k|=32);break}else if(et.kind===169){zE(et).kind===176&&(k|=32);break}else et.kind===174&&pd(et)&&(k|=32);et=et.parent}}function ve(we){let Fe;if((Ct=>{Ct[Ct.None=0]="None",Ct[Ct.Break=1]="Break",Ct[Ct.Continue=2]="Continue",Ct[Ct.Return=4]="Return"})(Fe||(Fe={})),re.assert(we.pos<=we.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),re.assert(!ab(we.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!dl(we)&&!(ZD(we)&&eye(we))&&!hOe(we))return[Bs(we,n1.statementOrExpressionExpected)];if(we.flags&33554432)return[Bs(we,n1.cannotExtractAmbientBlock)];const et=$b(we);et&&ae(we,et);let Pe,dt=4,Ie;if(ct(we),k&8){const Ct=RT(we,!1,!1);(Ct.kind===262||Ct.kind===174&&Ct.parent.kind===210||Ct.kind===218)&&(k|=16)}return Pe;function ct(Ct){if(Pe)return!0;if(PT(Ct)){const Ze=Ct.kind===260?Ct.parent.parent:Ct;if(ul(Ze,32))return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractExportedEntity)),!0}switch(Ct.kind){case 272:return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractImport)),!0;case 277:return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractExportedEntity)),!0;case 108:if(Ct.parent.kind===213){const Ze=$b(Ct);if(Ze===void 0||Ze.pos=n.start+n.length)return(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractSuper)),!0}else k|=8,F=Ct;break;case 219:s_(Ct,function Ze(Ke){if(AF(Ke))k|=8,F=Ct;else{if(Fl(Ke)||F_(Ke)&&!$m(Ke))return!1;s_(Ke,Ze)}});case 263:case 262:Nu(Ct.parent)&&Ct.parent.externalModuleIndicator===void 0&&(Pe||(Pe=[])).push(Bs(Ct,n1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Lt=dt;switch(Ct.kind){case 245:dt&=-5;break;case 258:dt=0;break;case 241:Ct.parent&&Ct.parent.kind===258&&Ct.parent.finallyBlock===Ct&&(dt=4);break;case 297:case 296:dt|=1;break;default:LL(Ct,!1)&&(dt|=3);break}switch(Ct.kind){case 197:case 110:k|=8,F=Ct;break;case 256:{const Ze=Ct.label;(Ie||(Ie=[])).push(Ze.escapedText),s_(Ct,ct),Ie.pop();break}case 252:case 251:{const Ze=Ct.label;Ze?ni(Ie,Ze.escapedText)||(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):dt&(Ct.kind===252?1:2)||(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:dt&4?k|=1:(Pe||(Pe=[])).push(Bs(Ct,n1.cannotExtractRangeContainingConditionalReturnStatement));break;default:s_(Ct,ct);break}dt=Lt}}}function put(e,n,i){const c=e.getStart(i);let u=n.getEnd();return i.text.charCodeAt(u)===59&&u++,{start:c,length:u-c}}function mut(e){if(dl(e))return[e];if(ZD(e))return kb(e.parent)?[e.parent]:e;if(hOe(e))return e}function lOe(e){return $m(e)?UU(e.body):Vd(e)||Nu(e)||kh(e)||Fl(e)}function gut(e){let n=zR(e.range)?Dl(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const c=$b(n);if(c){const u=Ua(n,Vd);return u?[u,c]:[c]}}const i=[];for(;;)if(n=n.parent,n.kind===169&&(n=Ua(n,c=>Vd(c)).parent),lOe(n)&&(i.push(n),n.kind===312))return i}function hut(e,n,i){const{scopes:c,readsAndWrites:{target:u,usagesPerScope:d,functionErrorsPerScope:h,exposedVariableDeclarations:S}}=uOe(e,n);return re.assert(!h[i].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),Eut(u,c[i],d[i],S,e,n)}function yut(e,n,i){const{scopes:c,readsAndWrites:{target:u,usagesPerScope:d,constantErrorsPerScope:h,exposedVariableDeclarations:S}}=uOe(e,n);re.assert(!h[i].length,"The extraction went missing? How?"),re.assert(S.length===0,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();const E=kr(u)?u:u.statements[0].expression;return xut(E,c[i],d[i],e.facts,n)}function vut(e,n){const{scopes:i,readsAndWrites:{functionErrorsPerScope:c,constantErrorsPerScope:u}}=uOe(e,n);return i.map((h,S)=>{const E=but(h),P=Tut(h),k=Vd(h)?Sut(h):Fl(h)?fOe(h):O6(h);let F,$;return k===1?(F=LT(fs(N.Extract_to_0_in_1_scope),[E,"global"]),$=LT(fs(N.Extract_to_0_in_1_scope),[P,"global"])):k===0?(F=LT(fs(N.Extract_to_0_in_1_scope),[E,"module"]),$=LT(fs(N.Extract_to_0_in_1_scope),[P,"module"])):(F=LT(fs(N.Extract_to_0_in_1),[E,k]),$=LT(fs(N.Extract_to_0_in_1),[P,k])),S===0&&!Fl(h)&&($=LT(fs(N.Extract_to_0_in_enclosing_scope),[P])),{functionExtraction:{description:F,errors:c[S]},constantExtraction:{description:$,errors:u[S]}}})}function uOe(e,n){const{file:i}=n,c=gut(e),u=Cut(e,i),d=Zhe(e,c,u,i,n.program.getTypeChecker(),n.cancellationToken);return{scopes:c,readsAndWrites:d}}function but(e){return Vd(e)?"inner function":Fl(e)?"method":"function"}function Tut(e){return Fl(e)?"readonly field":"constant"}function Sut(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:bce;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:re.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function fOe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function O6(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function Eut(e,n,{usages:i,typeParameterUsages:c,substitutions:u},d,h,S){const E=S.program.getTypeChecker(),P=iu(S.program.getCompilerOptions()),k=fT.createImportAdder(S.file,S.program,S.preferences,S.host),F=n.getSourceFile(),$=v4(Fl(n)?"newMethod":"newFunction",F),J=Cs(n),X=he.createIdentifier($);let ie;const ae=[],ve=[];let we;i.forEach((qt,Kt)=>{let wr;if(!J){let jt=E.getTypeOfSymbolAtLocation(qt.symbol,qt.node);jt=E.getBaseTypeOfLiteralType(jt),wr=fT.typeToAutoImportableTypeNode(E,k,jt,n,P,1)}const Wr=he.createParameterDeclaration(void 0,void 0,Kt,void 0,wr);ae.push(Wr),qt.usage===2&&(we||(we=[])).push(qt),ve.push(he.createIdentifier(Kt))});const et=oc(c.values(),qt=>({type:qt,declaration:vqe(qt,S.startPosition)})).sort(bqe),Pe=et.length===0?void 0:Qo(et,({declaration:qt})=>qt),dt=Pe!==void 0?Pe.map(qt=>he.createTypeReferenceNode(qt.name,void 0)):void 0;if(kr(e)&&!J){const qt=E.getContextualType(e);ie=E.typeToTypeNode(qt,n,1)}const{body:Ie,returnValueProperty:ct}=dOe(e,d,we,u,!!(h.facts&1));zT(Ie);let Ct;const Lt=!!(h.facts&16);if(Fl(n)){const qt=J?[]:[he.createModifier(123)];h.facts&32&&qt.push(he.createModifier(126)),h.facts&4&&qt.push(he.createModifier(134)),Ct=he.createMethodDeclaration(qt.length?qt:void 0,h.facts&2?he.createToken(42):void 0,X,void 0,Pe,ae,ie,Ie)}else Lt&&ae.unshift(he.createParameterDeclaration(void 0,void 0,"this",void 0,E.typeToTypeNode(E.getTypeAtLocation(h.thisNode),n,1),void 0)),Ct=he.createFunctionDeclaration(h.facts&4?[he.createToken(134)]:void 0,h.facts&2?he.createToken(42):void 0,X,Pe,ae,ie,Ie);const Ze=zs.ChangeTracker.fromContext(S),Ke=(zR(h.range)?yl(h.range):h.range).end,st=vq(Ke,n);st?Ze.insertNodeBefore(S.file,st,Ct,!0):Ze.insertNodeAtEndOfScope(S.file,n,Ct),k.writeFixes(Ze);const It=[],Yt=_Oe(n,h,$);Lt&&ve.unshift(he.createIdentifier("this"));let Et=he.createCallExpression(Lt?he.createPropertyAccessExpression(Yt,"call"):Yt,dt,ve);if(h.facts&2&&(Et=he.createYieldExpression(he.createToken(42),Et)),h.facts&4&&(Et=he.createAwaitExpression(Et)),gOe(e)&&(Et=he.createJsxExpression(void 0,Et)),d.length&&!we)if(re.assert(!ct,"Expected no returnValueProperty"),re.assert(!(h.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),d.length===1){const qt=d[0];It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(qt.name),void 0,ih(qt.type),Et)],qt.parent.flags)))}else{const qt=[],Kt=[];let wr=d[0].parent.flags,Wr=!1;for(const En of d){qt.push(he.createBindingElement(void 0,void 0,ih(En.name)));const fr=E.typeToTypeNode(E.getBaseTypeOfLiteralType(E.getTypeAtLocation(En)),n,1);Kt.push(he.createPropertySignature(void 0,En.symbol.name,void 0,fr)),Wr=Wr||En.type!==void 0,wr=wr&En.parent.flags}const jt=Wr?he.createTypeLiteralNode(Kt):void 0;jt&&_s(jt,1),It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(he.createObjectBindingPattern(qt),void 0,jt,Et)],wr)))}else if(d.length||we){if(d.length)for(const Kt of d){let wr=Kt.parent.flags;wr&2&&(wr=wr&-3|1),It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Kt.symbol.name,void 0,cn(Kt.type))],wr)))}ct&&It.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ct,void 0,cn(ie))],1)));const qt=mOe(d,we);ct&&qt.unshift(he.createShorthandPropertyAssignment(ct)),qt.length===1?(re.assert(!ct,"Shouldn't have returnValueProperty here"),It.push(he.createExpressionStatement(he.createAssignment(qt[0].name,Et))),h.facts&1&&It.push(he.createReturnStatement())):(It.push(he.createExpressionStatement(he.createAssignment(he.createObjectLiteralExpression(qt),Et))),ct&&It.push(he.createReturnStatement(he.createIdentifier(ct))))}else h.facts&1?It.push(he.createReturnStatement(Et)):zR(h.range)?It.push(he.createExpressionStatement(Et)):It.push(Et);zR(h.range)?Ze.replaceNodeRangeWithNodes(S.file,Dl(h.range),yl(h.range),It):Ze.replaceNodeWithNodes(S.file,h.range,It);const at=Ze.getChanges(),nn=(zR(h.range)?Dl(h.range):h.range).getSourceFile().fileName,Rn=jZ(at,nn,$,!1);return{renameFilename:nn,renameLocation:Rn,edits:at};function cn(qt){if(qt===void 0)return;const Kt=ih(qt);let wr=Kt;for(;XN(wr);)wr=wr.type;return fI(wr)&&lr(wr.types,Wr=>Wr.kind===157)?Kt:he.createUnionTypeNode([Kt,he.createKeywordTypeNode(157)])}}function xut(e,n,{substitutions:i},c,u){const d=u.program.getTypeChecker(),h=n.getSourceFile(),S=Ac(e)&&!Fl(n)&&!d.resolveName(e.name.text,e,111551,!1)&&!Lu(e.name)&&!uP(e.name)?e.name.text:v4(Fl(n)?"newProperty":"newLocal",h),E=Cs(n);let P=E||!d.isContextSensitive(e)?void 0:d.typeToTypeNode(d.getContextualType(e),n,1),k=hq(rg(e),i);({variableType:P,initializer:k}=ie(P,k)),zT(k);const F=zs.ChangeTracker.fromContext(u);if(Fl(n)){re.assert(!E,"Cannot extract to a JS class");const ae=[];ae.push(he.createModifier(123)),c&32&&ae.push(he.createModifier(126)),ae.push(he.createModifier(148));const ve=he.createPropertyDeclaration(ae,S,void 0,P,k);let we=he.createPropertyAccessExpression(c&32?he.createIdentifier(n.name.getText()):he.createThis(),he.createIdentifier(S));gOe(e)&&(we=he.createJsxExpression(void 0,we));const Fe=e.pos,et=I1(Fe,n);F.insertNodeBefore(u.file,et,ve,!0),F.replaceNode(u.file,e,we)}else{const ae=he.createVariableDeclaration(S,void 0,P,k),ve=Aut(e,n);if(ve){F.insertNodeBefore(u.file,ve,ae);const we=he.createIdentifier(S);F.replaceNode(u.file,e,we)}else if(e.parent.kind===244&&n===Ua(e,lOe)){const we=he.createVariableStatement(void 0,he.createVariableDeclarationList([ae],2));F.replaceNode(u.file,e.parent,we)}else{const we=he.createVariableStatement(void 0,he.createVariableDeclarationList([ae],2)),Fe=pOe(e,n);if(Fe.pos===0?F.insertNodeAtTopOfFile(u.file,we,!1):F.insertNodeBefore(u.file,Fe,we,!1),e.parent.kind===244)F.delete(u.file,e.parent);else{let et=he.createIdentifier(S);gOe(e)&&(et=he.createJsxExpression(void 0,et)),F.replaceNode(u.file,e,et)}}}const $=F.getChanges(),J=e.getSourceFile().fileName,X=jZ($,J,S,!0);return{renameFilename:J,renameLocation:X,edits:$};function ie(ae,ve){if(ae===void 0)return{variableType:ae,initializer:ve};if(!Jm(ve)&&!$m(ve)||ve.typeParameters)return{variableType:ae,initializer:ve};const we=d.getTypeAtLocation(e),Fe=Vb(d.getSignaturesOfType(we,0));if(!Fe)return{variableType:ae,initializer:ve};if(Fe.getTypeParameters())return{variableType:ae,initializer:ve};const et=[];let Pe=!1;for(const dt of ve.parameters)if(dt.type)et.push(dt);else{const Ie=d.getTypeAtLocation(dt);Ie===d.getAnyType()&&(Pe=!0),et.push(he.updateParameterDeclaration(dt,dt.modifiers,dt.dotDotDotToken,dt.name,dt.questionToken,dt.type||d.typeToTypeNode(Ie,n,1),dt.initializer))}if(Pe)return{variableType:ae,initializer:ve};if(ae=void 0,$m(ve))ve=he.updateArrowFunction(ve,DA(e)?Xv(e):void 0,ve.typeParameters,et,ve.type||d.typeToTypeNode(Fe.getReturnType(),n,1),ve.equalsGreaterThanToken,ve.body);else{if(Fe&&Fe.thisParameter){const dt=pp(et);if(!dt||xn(dt.name)&&dt.name.escapedText!=="this"){const Ie=d.getTypeOfSymbolAtLocation(Fe.thisParameter,e);et.splice(0,0,he.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(Ie,n,1)))}}ve=he.updateFunctionExpression(ve,DA(e)?Xv(e):void 0,ve.asteriskToken,ve.name,ve.typeParameters,et,ve.type||d.typeToTypeNode(Fe.getReturnType(),n,1),ve.body)}return{variableType:ae,initializer:ve}}}function Aut(e,n){let i;for(;e!==void 0&&e!==n;){if(Kc(e)&&e.initializer===i&&Kp(e.parent)&&e.parent.declarations.length>1)return e;i=e,e=e.parent}}function vqe(e,n){let i;const c=e.symbol;if(c&&c.declarations)for(const u of c.declarations)(i===void 0||u.pos0;if(Ou(e)&&!d&&c.size===0)return{body:he.createBlock(e.statements,!0),returnValueProperty:void 0};let h,S=!1;const E=he.createNodeArray(Ou(e)?e.statements.slice(0):[dl(e)?e:he.createReturnStatement(rg(e))]);if(d||c.size){const k=Wa(E,P,dl).slice();if(d&&!u&&dl(e)){const F=mOe(n,i);F.length===1?k.push(he.createReturnStatement(F[0].name)):k.push(he.createReturnStatement(he.createObjectLiteralExpression(F)))}return{body:he.createBlock(k,!0),returnValueProperty:h}}else return{body:he.createBlock(E,!0),returnValueProperty:void 0};function P(k){if(!S&&iS(k)&&d){const F=mOe(n,i);return k.expression&&(h||(h="__return"),F.unshift(he.createPropertyAssignment(h,Bn(k.expression,P,kr)))),F.length===1?he.createReturnStatement(F[0].name):he.createReturnStatement(he.createObjectLiteralExpression(F))}else{const F=S;S=S||Vd(k)||Fl(k);const $=c.get(vm(k).toString()),J=$?ih($):Xo(k,P,sx);return S=F,J}}}function hq(e,n){return n.size?i(e):e;function i(c){const u=n.get(vm(c).toString());return u?ih(u):Xo(c,i,sx)}}function yq(e){if(Vd(e)){const n=e.body;if(Ou(n))return n.statements}else{if(kh(e)||Nu(e))return e.statements;if(Fl(e))return e.members}return Yn}function vq(e,n){return lr(yq(n),i=>i.pos>=e&&Vd(i)&&!Lh(i))}function I1(e,n){const i=n.members;re.assert(i.length>0,"Found no members");let c,u=!0;for(const d of i){if(d.pos>e)return c||i[0];if(u&&!nu(d)){if(c!==void 0)return d;u=!1}c=d}return c===void 0?re.fail():c}function pOe(e,n){re.assert(!Fl(n));let i;for(let c=e;c!==n;c=c.parent)lOe(c)&&(i=c);for(let c=(i||e).parent;;c=c.parent){if(Tqe(c)){let u;for(const d of c.statements){if(d.pos>e.pos)break;u=d}return!u&&BT(c)?(re.assert(AR(c.parent.parent),"Grandparent isn't a switch statement"),c.parent.parent):re.checkDefined(u,"prevStatement failed to get set")}re.assert(c!==n,"Didn't encounter a block-like before encountering scope")}}function mOe(e,n){const i=Vn(e,u=>he.createShorthandPropertyAssignment(u.symbol.name)),c=Vn(n,u=>he.createShorthandPropertyAssignment(u.symbol.name));return i===void 0?c:c===void 0?i:i.concat(c)}function zR(e){return ls(e)}function Cut(e,n){return zR(e.range)?{pos:Dl(e.range).getStart(n),end:yl(e.range).getEnd()}:e.range}function Zhe(e,n,i,c,u,d){const h=new Map,S=[],E=[],P=[],k=[],F=[],$=new Map,J=[];let X;const ie=zR(e.range)?e.range.length===1&&kb(e.range[0])?e.range[0].expression:void 0:e.range;let ae;if(ie===void 0){const st=e.range,It=Dl(st).getStart(),Yt=yl(st).end;ae=Pp(c,It,Yt-It,n1.expressionExpected)}else u.getTypeAtLocation(ie).flags&147456&&(ae=Bs(ie,n1.uselessConstantType));for(const st of n){S.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),E.push(new Map),P.push([]);const It=[];ae&&It.push(ae),Fl(st)&&Cs(st)&&It.push(Bs(st,n1.cannotExtractToJSClass)),$m(st)&&!Ou(st.body)&&It.push(Bs(st,n1.cannotExtractToExpressionArrowFunction)),k.push(It)}const ve=new Map,we=zR(e.range)?he.createBlock(e.range):e.range,Fe=zR(e.range)?Dl(e.range):e.range,et=Pe(Fe);if(Ie(we),et&&!zR(e.range)&&!tx(e.range)){const st=u.getContextualType(e.range);dt(st)}if(h.size>0){const st=new Map;let It=0;for(let Yt=Fe;Yt!==void 0&&It{S[It].typeParameterUsages.set(at,Et)}),It++),WL(Yt))for(const Et of Hb(Yt)){const at=u.getTypeAtLocation(Et);h.has(at.id.toString())&&st.set(at.id.toString(),at)}re.assert(It===n.length,"Should have iterated all scopes")}if(F.length){const st=$C(n[0],n[0].parent)?n[0]:QD(n[0]);s_(st,Lt)}for(let st=0;st0&&(It.usages.size>0||It.typeParameterUsages.size>0)){const at=zR(e.range)?e.range[0]:e.range;k[st].push(Bs(at,n1.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Fl(n[st])&&P[st].push(Bs(e.thisNode,n1.cannotExtractFunctionsContainingThisToMethod));let Yt=!1,Et;if(S[st].usages.forEach(at=>{at.usage===2&&(Yt=!0,at.symbol.flags&106500&&at.symbol.valueDeclaration&&tT(at.symbol.valueDeclaration,8)&&(Et=at.symbol.valueDeclaration))}),re.assert(zR(e.range)||J.length===0,"No variable declarations expected if something was extracted"),Yt&&!zR(e.range)){const at=Bs(e.range,n1.cannotWriteInExpression);P[st].push(at),k[st].push(at)}else if(Et&&st>0){const at=Bs(Et,n1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);P[st].push(at),k[st].push(at)}else if(X){const at=Bs(X,n1.cannotExtractExportedEntity);P[st].push(at),k[st].push(at)}}return{target:we,usagesPerScope:S,functionErrorsPerScope:P,constantErrorsPerScope:k,exposedVariableDeclarations:J};function Pe(st){return!!Ua(st,It=>WL(It)&&Hb(It).length!==0)}function dt(st){const It=u.getSymbolWalker(()=>(d.throwIfCancellationRequested(),!0)),{visitedTypes:Yt}=It.walkType(st);for(const Et of Yt)Et.isTypeParameter()&&h.set(Et.id.toString(),Et)}function Ie(st,It=1){if(et){const Yt=u.getTypeAtLocation(st);dt(Yt)}if(PT(st)&&st.symbol&&F.push(st),Zv(st))Ie(st.left,2),Ie(st.right);else if(JTe(st))Ie(st.operand,2);else if(Ac(st)||Hm(st))s_(st,Ie);else if(xn(st)){if(!st.parent||Pu(st.parent)&&st!==st.parent.left||Ac(st.parent)&&st!==st.parent.expression)return;ct(st,It,BE(st))}else s_(st,Ie)}function ct(st,It,Yt){const Et=Ct(st,It,Yt);if(Et)for(let at=0;at=It)return at;if(ve.set(at,It),Qt){for(const cn of S)cn.usages.get(st.text)&&cn.usages.set(st.text,{usage:It,symbol:Et,node:st});return at}const nn=Et.getDeclarations(),Rn=nn&&lr(nn,cn=>cn.getSourceFile()===c);if(Rn&&!xj(i,Rn.getStart(),Rn.end)){if(e.facts&2&&It===2){const cn=Bs(st,n1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const qt of P)qt.push(cn);for(const qt of k)qt.push(cn)}for(let cn=0;cnEt.symbol===It);if(Yt)if(Kc(Yt)){const Et=Yt.symbol.id.toString();$.has(Et)||(J.push(Yt),$.set(Et,!0))}else X=X||Yt}s_(st,Lt)}function Ze(st){return st.parent&&XE(st.parent)&&st.parent.name===st?u.getShorthandAssignmentValueSymbol(st.parent):u.getSymbolAtLocation(st)}function Ke(st,It,Yt){if(!st)return;const Et=st.getDeclarations();if(Et&&Et.some(Qt=>Qt.parent===It))return he.createIdentifier(st.name);const at=Ke(st.parent,It,Yt);if(at!==void 0)return Yt?he.createQualifiedName(at,he.createIdentifier(st.name)):he.createPropertyAccessExpression(at,st.name)}}function nDe(e){return Ua(e,n=>n.parent&&eye(n)&&!Ds(n.parent))}function eye(e){const{parent:n}=e;switch(n.kind){case 306:return!1}switch(e.kind){case 11:return n.kind!==272&&n.kind!==276;case 230:case 206:case 208:return!1;case 80:return n.kind!==208&&n.kind!==276&&n.kind!==281}return!0}function Tqe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function gOe(e){return hOe(e)||(zx(e)||nF(e)||Ek(e))&&(zx(e.parent)||Ek(e.parent))}function hOe(e){return Sd(e)&&e.parent&&tx(e.parent)}var bq,Tq,Sq,n1,yOe,Dut=G({"src/services/refactors/extractSymbol.ts"(){xl(),EI(),bq="Extract Symbol",Tq={name:"Extract Constant",description:fs(N.Extract_constant),kind:"refactor.extract.constant"},Sq={name:"Extract Function",description:fs(N.Extract_function),kind:"refactor.extract.function"},wk(bq,{kinds:[Tq.kind,Sq.kind],getEditsForAction:yqe,getAvailableActions:hqe}),(e=>{function n(i){return{message:i,code:0,category:3,key:i}}e.cannotExtractRange=n("Cannot extract range."),e.cannotExtractImport=n("Cannot extract import statement."),e.cannotExtractSuper=n("Cannot extract super call."),e.cannotExtractJSDoc=n("Cannot extract JSDoc."),e.cannotExtractEmpty=n("Cannot extract empty range."),e.expressionExpected=n("expression expected."),e.uselessConstantType=n("No reason to extract constant of type."),e.statementOrExpressionExpected=n("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),e.cannotExtractIdentifier=n("Select more than a single identifier."),e.cannotExtractExportedEntity=n("Cannot extract exported declaration"),e.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(n1||(n1={})),yOe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(yOe||{})}}),ale={};Oe(ale,{Messages:()=>n1,RangeFacts:()=>yOe,getRangeToExtract:()=>cOe,getRefactorActionsToExtractSymbol:()=>hqe,getRefactorEditsToExtractSymbol:()=>yqe});var rDe=G({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){Dut()}}),Uj,iDe,oDe,Iut=G({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){xl(),EI(),Uj="Generate 'get' and 'set' accessors",iDe=fs(N.Generate_get_and_set_accessors),oDe={name:Uj,description:iDe,kind:"refactor.rewrite.property.generateAccessors"},wk(Uj,{kinds:[oDe.kind],getEditsForAction:function(n,i){if(!n.endPosition)return;const c=fT.getAccessorConvertiblePropertyAtPosition(n.file,n.program,n.startPosition,n.endPosition);re.assert(c&&!BR(c),"Expected applicable refactor info");const u=fT.generateAccessorFromProperty(n.file,n.program,n.startPosition,n.endPosition,n,i);if(!u)return;const d=n.file.fileName,h=c.renameAccessor?c.accessorName:c.fieldName,E=(xn(h)?0:-1)+jZ(u,d,h.text,Os(c.declaration));return{renameFilename:d,renameLocation:E,edits:u}},getAvailableActions(e){if(!e.endPosition)return Yn;const n=fT.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Uj,description:iDe,actions:[{...oDe,notApplicableReason:n.error}]}]:Yn:[{name:Uj,description:iDe,actions:[oDe]}]:Yn}})}}),Eq={},MP=G({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){Iut()}});function Sqe(e){const n=Eqe(e);if(n&&!BR(n))return{renameFilename:void 0,renameLocation:void 0,edits:zs.ChangeTracker.with(e,c=>kut(e.file,c,n.declaration,n.returnTypeNode))}}function vOe(e){const n=Eqe(e);return n?BR(n)?e.preferences.provideRefactorNotApplicableReason?[{name:tye,description:nye,actions:[{...rye,notApplicableReason:n.error}]}]:Yn:[{name:tye,description:nye,actions:[rye]}]:Yn}function kut(e,n,i,c){const u=qm(i,22,e),d=$m(i)&&u===void 0,h=d?Dl(i.parameters):u;h&&(d&&(n.insertNodeBefore(e,h,he.createToken(21)),n.insertNodeAfter(e,h,he.createToken(22))),n.insertNodeAt(e,h.end,c,{prefix:": "}))}function Eqe(e){if(Cs(e.file)||!RP(rye.kind,e.kind))return;const n=cS(e.file,e.startPosition),i=Ua(n,h=>Ou(h)||h.parent&&$m(h.parent)&&(h.kind===39||h.parent.body===h)?"quit":Put(h));if(!i||!i.body||i.type)return{error:fs(N.Return_type_must_be_inferred_from_a_function)};const c=e.program.getTypeChecker(),u=Nut(c,i);if(!u)return{error:fs(N.Could_not_determine_function_return_type)};const d=c.typeToTypeNode(u,i,1);if(d)return{declaration:i,returnTypeNode:d}}function Put(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function Nut(e,n){if(e.isImplementationOfOverload(n)){const c=e.getTypeAtLocation(n).getCallSignatures();if(c.length>1)return e.getUnionType(Qo(c,u=>u.getReturnType()))}const i=e.getSignatureFromDeclaration(n);if(i)return e.getReturnTypeOfSignature(i)}var tye,nye,rye,wut=G({"src/services/refactors/inferFunctionReturnType.ts"(){xl(),EI(),tye="Infer function return type",nye=fs(N.Infer_function_return_type),rye={name:tye,description:nye,kind:"refactor.rewrite.function.returnType"},wk(tye,{kinds:[rye.kind],getEditsForAction:Sqe,getAvailableActions:vOe})}}),xqe={},bOe=G({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){wut()}}),MF={};Oe(MF,{addExportToChanges:()=>mee,addExports:()=>N3e,addNewFileToTsconfig:()=>Lhe,addOrRemoveBracesToArrowFunction:()=>eqe,convertArrowFunctionOrFunctionExpression:()=>Vlt,convertParamsToDestructuredObject:()=>Zlt,convertStringOrTemplateLiteral:()=>rut,convertToOptionalChainExpression:()=>_ut,createNewFileName:()=>O3e,createOldFileImportsFromTargetFile:()=>Fhe,deleteMovedStatements:()=>Hce,deleteUnusedImports:()=>$ce,deleteUnusedOldImports:()=>Ohe,doChangeNamedToNamespaceOrDefault:()=>F$e,extractSymbol:()=>ale,filterImport:()=>Kce,forEachImportInStatement:()=>pee,generateGetAccessorAndSetAccessor:()=>Eq,getApplicableRefactors:()=>P$e,getEditsForRefactor:()=>plt,getStatementsToMove:()=>gee,getTopLevelDeclarationStatement:()=>Bhe,getUsageInfo:()=>jj,inferFunctionReturnType:()=>xqe,isRefactorErrorInfo:()=>BR,isTopLevelDeclaration:()=>Xce,makeImportOrRequire:()=>fB,moduleSpecifierFromImport:()=>Jce,nameOfTopLevelDeclaration:()=>LCe,refactorKindBeginsWith:()=>RP,registerRefactor:()=>wk,updateImportsInOtherFiles:()=>k3e});var EI=G({"src/services/_namespaces/ts.refactor.ts"(){Oce(),khe(),Phe(),Slt(),NCe(),Mhe(),Vce(),zhe(),j3e(),Ult(),KCe(),iut(),dut(),rDe(),MP(),bOe()}});function aDe(e,n,i,c){const u=sDe(e,n,i,c);re.assert(u.spans.length%3===0);const d=u.spans,h=[];for(let S=0;S{u.push(h.getStart(n),h.getWidth(n),(S+1<<8)+E)},c),u}function Rut(e,n,i,c,u){const d=e.getTypeChecker();let h=!1;function S(E){switch(E.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:u.throwIfCancellationRequested()}if(!E||!Bz(i,E.pos,E.getFullWidth())||E.getFullWidth()===0)return;const P=h;if((zx(E)||nF(E))&&(h=!0),CP(E)&&(h=!1),xn(E)&&!h&&!aye(E)&&!d3(E.escapedText)){let k=d.getSymbolAtLocation(E);if(k){k.flags&2097152&&(k=d.getAliasedSymbol(k));let F=iye(k,xF(E));if(F!==void 0){let $=0;E.parent&&(sa(E.parent)||sle.get(E.parent.kind)===F)&&E.parent.name===E&&($=1),F===6&&Iqe(E)&&(F=9),F=Mut(d,E,F);const J=k.valueDeclaration;if(J){const X=Eb(J),ie=rR(J);X&256&&($|=2),X&1024&&($|=4),F!==0&&F!==2&&(X&8||ie&2||k.getFlags()&8)&&($|=8),(F===7||F===10)&&Cqe(J,n)&&($|=32),e.isSourceFileDefaultLibrary(J.getSourceFile())&&($|=16)}else k.declarations&&k.declarations.some(X=>e.isSourceFileDefaultLibrary(X.getSourceFile()))&&($|=16);c(E,F,$)}}}s_(E,S),h=P}S(n)}function iye(e,n){const i=e.getFlags();if(i&32)return 0;if(i&384)return 1;if(i&524288)return 5;if(i&64){if(n&2)return 2}else if(i&262144)return 4;let c=e.valueDeclaration||e.declarations&&e.declarations[0];return c&&sa(c)&&(c=oye(c)),c&&sle.get(c.kind)}function Mut(e,n,i){if(i===7||i===9||i===6){const c=e.getTypeAtLocation(n);if(c){const u=d=>d(c)||c.isUnion()&&c.types.some(d);if(i!==6&&u(d=>d.getConstructSignatures().length>0))return 0;if(u(d=>d.getCallSignatures().length>0)&&!u(d=>d.getProperties().length>0)||Dqe(n))return i===9?11:10}}return i}function Cqe(e,n){return sa(e)&&(e=oye(e)),Kc(e)?(!Nu(e.parent.parent.parent)||A3(e.parent))&&e.getSourceFile()===n:mg(e)?!Nu(e.parent)&&e.getSourceFile()===n:!1}function oye(e){for(;;)if(sa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function aye(e){const n=e.parent;return n&&(Tk(n)||qE(n)||mh(n))}function Dqe(e){for(;Iqe(e);)e=e.parent;return xd(e.parent)&&e.parent.expression===e}function Iqe(e){return Pu(e.parent)&&e.parent.right===e||Ac(e.parent)&&e.parent.name===e}var See,cDe,lDe,sle,TOe=G({"src/services/classifier2020.ts"(){xl(),See=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(See||{}),cDe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(cDe||{}),lDe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(lDe||{}),sle=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 SOe(e,n,i,c){const u=GU(e)?new dle(e,n,i):e===80?new mDe(80,n,i):e===81?new Cee(81,n,i):new EOe(e,n,i);return u.parent=c,u.flags=c.flags&101441536,u}function uDe(e,n){if(!GU(e.kind))return Yn;const i=[];if(Y1(e))return e.forEachChild(h=>{i.push(h)}),i;uT.setText((n||e.getSourceFile()).text);let c=e.pos;const u=h=>{Eee(i,c,h.pos,e),i.push(h),c=h.end},d=h=>{Eee(i,c,h.pos,e),i.push(kqe(h,e)),c=h.end};return Ot(e.jsDoc,u),c=e.pos,e.forEachChild(u,d),Eee(i,c,e.end,e),uT.setText(void 0),i}function Eee(e,n,i,c){for(uT.resetTokenState(n);nn.tagName.text==="inheritDoc"||n.tagName.text==="inheritdoc")}function _De(e,n){if(!e)return Yn;let i=nO.getJsDocTagsFromDeclarations(e,n);if(n&&(i.length===0||e.some(fDe))){const c=new Set;for(const u of e){const d=cle(n,u,h=>{var S;if(!c.has(h))return c.add(h),u.kind===177||u.kind===178?h.getContextualJsDocTags(u,n):((S=h.declarations)==null?void 0:S.length)===1?h.getJsDocTags():void 0});d&&(i=[...d,...i])}}return i}function sye(e,n){if(!e)return Yn;let i=nO.getJsDocCommentsFromDeclarations(e,n);if(n&&(i.length===0||e.some(fDe))){const c=new Set;for(const u of e){const d=cle(n,u,h=>{if(!c.has(h))return c.add(h),u.kind===177||u.kind===178?h.getContextualDocumentationComment(u,n):h.getDocumentationComment(n)});d&&(i=i.length===0?d.slice():d.concat(Nj(),i))}}return i}function cle(e,n,i){var c;const u=((c=n.parent)==null?void 0:c.kind)===176?n.parent.parent:n.parent;if(!u)return;const d=ev(n);return Yr(lG(u),h=>{const S=e.getTypeAtLocation(h),E=d&&S.symbol?e.getTypeOfSymbol(S.symbol):S,P=e.getPropertyOfType(E,n.symbol.name);return P?i(P):void 0})}function Lut(){return{getNodeConstructor:()=>dle,getTokenConstructor:()=>EOe,getIdentifierConstructor:()=>mDe,getPrivateIdentifierConstructor:()=>Cee,getSourceFileConstructor:()=>xOe,getSymbolConstructor:()=>Mqe,getTypeConstructor:()=>Lqe,getSignatureConstructor:()=>gDe,getSourceMapSourceConstructor:()=>hDe}}function lle(e){let n=!0;for(const c in e)if(ef(e,c)&&!cye(c)){n=!1;break}if(n)return e;const i={};for(const c in e)if(ef(e,c)){const u=cye(c)?c:c.charAt(0).toLowerCase()+c.substr(1);i[u]=e[c]}return i}function cye(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function ule(e){return e?Vn(e,n=>n.text).join(""):""}function lye(){return{target:1,jsx:1}}function fle(){return fT.getSupportedErrorCodes()}function uye(e,n,i){e.version=i,e.scriptSnapshot=n}function xq(e,n,i,c,u,d){const h=eQ(e,Dj(n),i,u,d);return uye(h,n,c),h}function fye(e,n,i,c,u){if(c&&i!==e.version){let h;const S=c.span.start!==0?e.text.substr(0,c.span.start):"",E=Xy(c.span)!==e.text.length?e.text.substr(Xy(c.span)):"";if(c.newLength===0)h=S&&E?S+E:S||E;else{const k=n.getText(c.span.start,c.span.start+c.newLength);h=S&&E?S+k+E:S?S+k:k+E}const P=Hoe(e,h,c,u);return uye(P,n,i),P.nameTable=void 0,e!==P&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),P}const d={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return xq(e.fileName,n,d,i,!0,e.scriptKind)}function _ye(e,n=U8e(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),i){var c;let u;i===void 0?u=0:typeof i=="boolean"?u=i?2:0:u=i;const d=new Oqe(e);let h,S,E=0;const P=e.getCancellationToken?new mye(e.getCancellationToken()):yDe,k=e.getCurrentDirectory();LSe((c=e.getLocalizedDiagnosticMessages)==null?void 0:c.bind(e));function F(kt){e.log&&e.log(kt)}const $=dG(e),J=H1($),X=n3e({useCaseSensitiveFileNames:()=>$,getCurrentDirectory:()=>k,getProgram:ve,fileExists:wc(e,e.fileExists),readFile:wc(e,e.readFile),getDocumentPositionMapper:wc(e,e.getDocumentPositionMapper),getSourceFileLike:wc(e,e.getSourceFileLike),log:F});function ie(kt){const qe=h.getSourceFile(kt);if(!qe){const Mt=new Error(`Could not find source file: '${kt}'.`);throw Mt.ProgramFiles=h.getSourceFiles().map(ge=>ge.fileName),Mt}return qe}function ae(){var kt,qe,Mt;if(re.assert(u!==2),e.getProjectVersion){const mf=e.getProjectVersion();if(mf){if(S===mf&&!((kt=e.hasChangedAutomaticTypeDirectiveNames)!=null&&kt.call(e)))return;S=mf}}const ge=e.getTypeRootsVersion?e.getTypeRootsVersion():0;E!==ge&&(F("TypeRoots version has changed; provide new program"),h=void 0,E=ge);const mn=e.getScriptFileNames().slice(),Jn=e.getCompilationSettings()||lye(),Nn=e.hasInvalidatedResolutions||bg,Lr=wc(e,e.hasInvalidatedLibResolutions)||bg,qi=wc(e,e.hasChangedAutomaticTypeDirectiveNames),vo=(qe=e.getProjectReferences)==null?void 0:qe.call(e);let Ro,Ts={getSourceFile:xa,getSourceFileByPath:Ym,getCancellationToken:()=>P,getCanonicalFileName:J,useCaseSensitiveFileNames:()=>$,getNewLine:()=>JE(Jn),getDefaultLibFileName:mf=>e.getDefaultLibFileName(mf),writeFile:ku,getCurrentDirectory:()=>k,fileExists:mf=>e.fileExists(mf),readFile:mf=>e.readFile&&e.readFile(mf),getSymlinkCache:wc(e,e.getSymlinkCache),realpath:wc(e,e.realpath),directoryExists:mf=>O0(mf,e),getDirectories:mf=>e.getDirectories?e.getDirectories(mf):[],readDirectory:(mf,Cp,Yg,xg,Wy)=>(re.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(mf,Cp,Yg,xg,Wy)),onReleaseOldSourceFile:u_,onReleaseParsedCommandLine:G_,hasInvalidatedResolutions:Nn,hasInvalidatedLibResolutions:Lr,hasChangedAutomaticTypeDirectiveNames:qi,trace:wc(e,e.trace),resolveModuleNames:wc(e,e.resolveModuleNames),getModuleResolutionCache:wc(e,e.getModuleResolutionCache),createHash:wc(e,e.createHash),resolveTypeReferenceDirectives:wc(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wc(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wc(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:wc(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:wc(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ma,jsDocParsingMode:e.jsDocParsingMode};const Cc=Ts.getSourceFile,{getSourceFileWithCache:Pc}=NR(Ts,mf=>gm(mf,k,J),(...mf)=>Cc.call(Ts,...mf));Ts.getSourceFile=Pc,(Mt=e.setCompilerHost)==null||Mt.call(e,Ts);const hc={useCaseSensitiveFileNames:$,fileExists:mf=>Ts.fileExists(mf),readFile:mf=>Ts.readFile(mf),directoryExists:mf=>Ts.directoryExists(mf),getDirectories:mf=>Ts.getDirectories(mf),realpath:Ts.realpath,readDirectory:(...mf)=>Ts.readDirectory(...mf),trace:Ts.trace,getCurrentDirectory:Ts.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ku},bl=n.getKeyForCompilationSettings(Jn);let Tc=new Set;if(bxe(h,mn,Jn,(mf,Cp)=>e.getScriptVersion(Cp),mf=>Ts.fileExists(mf),Nn,Lr,qi,ma,vo)){Ts=void 0,Ro=void 0,Tc=void 0;return}h=YQ({rootNames:mn,options:Jn,host:Ts,oldProgram:h,projectReferences:vo}),Ts=void 0,Ro=void 0,Tc=void 0,X.clearCache(),h.getTypeChecker();return;function ma(mf){const Cp=gm(mf,k,J),Yg=Ro==null?void 0:Ro.get(Cp);if(Yg!==void 0)return Yg||void 0;const xg=e.getParsedCommandLine?e.getParsedCommandLine(mf):Bl(mf);return(Ro||(Ro=new Map)).set(Cp,xg||!1),xg}function Bl(mf){const Cp=xa(mf,100);if(Cp)return Cp.path=gm(mf,k,J),Cp.resolvedPath=Cp.path,Cp.originalFileName=Cp.fileName,Zoe(Cp,hc,vf(ws(mf),k),void 0,vf(mf,k))}function G_(mf,Cp,Yg){var xg;e.getParsedCommandLine?(xg=e.onReleaseParsedCommandLine)==null||xg.call(e,mf,Cp,Yg):Cp&&u_(Cp.sourceFile,Yg)}function u_(mf,Cp){const Yg=n.getKeyForCompilationSettings(Cp);n.releaseDocumentWithKey(mf.resolvedPath,Yg,mf.scriptKind,mf.impliedNodeFormat)}function xa(mf,Cp,Yg,xg){return Ym(mf,gm(mf,k,J),Cp,Yg,xg)}function Ym(mf,Cp,Yg,xg,Wy){re.assert(Ts,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Og=e.getScriptSnapshot(mf);if(!Og)return;const pl=sce(mf,e),R_=e.getScriptVersion(mf);if(!Wy){const og=h&&h.getSourceFileByPath(Cp);if(og){if(pl===og.scriptKind||Tc.has(og.resolvedPath))return n.updateDocumentWithKey(mf,Cp,e,bl,Og,R_,pl,Yg);n.releaseDocumentWithKey(og.resolvedPath,n.getKeyForCompilationSettings(h.getCompilerOptions()),og.scriptKind,og.impliedNodeFormat),Tc.add(og.resolvedPath)}}return n.acquireDocumentWithKey(mf,Cp,e,bl,Og,R_,pl,Yg)}}function ve(){if(u===2){re.assert(h===void 0);return}return ae(),h}function we(){var kt;return(kt=e.getPackageJsonAutoImportProvider)==null?void 0:kt.call(e)}function Fe(kt,qe){const Mt=h.getTypeChecker(),ge=mn();if(!ge)return!1;for(const Nn of kt)for(const Lr of Nn.references){const qi=Jn(Lr);if(re.assertIsDefined(qi),qe.has(Lr)||Wf.isDeclarationOfSymbol(qi,ge)){qe.add(Lr),Lr.isDefinition=!0;const vo=oce(Lr,X,wc(e,e.fileExists));vo&&qe.add(vo)}else Lr.isDefinition=!1}return!0;function mn(){for(const Nn of kt)for(const Lr of Nn.references){if(qe.has(Lr)){const vo=Jn(Lr);return re.assertIsDefined(vo),Mt.getSymbolAtLocation(vo)}const qi=oce(Lr,X,wc(e,e.fileExists));if(qi&&qe.has(qi)){const vo=Jn(qi);if(vo)return Mt.getSymbolAtLocation(vo)}}}function Jn(Nn){const Lr=h.getSourceFile(Nn.fileName);if(!Lr)return;const qi=cS(Lr,Nn.textSpan.start);return Wf.Core.getAdjustedNode(qi,{use:Wf.FindReferencesUse.References})}}function et(){if(h){const kt=n.getKeyForCompilationSettings(h.getCompilerOptions());Ot(h.getSourceFiles(),qe=>n.releaseDocumentWithKey(qe.resolvedPath,kt,qe.scriptKind,qe.impliedNodeFormat)),h=void 0}}function Pe(){et(),e=void 0}function dt(kt){return ae(),h.getSyntacticDiagnostics(ie(kt),P).slice()}function Ie(kt){ae();const qe=ie(kt),Mt=h.getSemanticDiagnostics(qe,P);if(!gv(h.getCompilerOptions()))return Mt.slice();const ge=h.getDeclarationDiagnostics(qe,P);return[...Mt,...ge]}function ct(kt){return ae(),Ice(ie(kt),h,P)}function Ct(){return ae(),[...h.getOptionsDiagnostics(P),...h.getGlobalDiagnostics(P)]}function Lt(kt,qe,Mt=lx,ge){const mn={...Mt,includeCompletionsForModuleExports:Mt.includeCompletionsForModuleExports||Mt.includeExternalModuleExports,includeCompletionsWithInsertText:Mt.includeCompletionsWithInsertText||Mt.includeInsertTextCompletions};return ae(),ow.getCompletionsAtPosition(e,h,F,ie(kt),qe,mn,Mt.triggerCharacter,Mt.triggerKind,P,ge&&V0.getFormatContext(ge,e),Mt.includeSymbol)}function Ze(kt,qe,Mt,ge,mn,Jn=lx,Nn){return ae(),ow.getCompletionEntryDetails(h,F,ie(kt),qe,{name:Mt,source:mn,data:Nn},e,ge&&V0.getFormatContext(ge,e),Jn,P)}function Ke(kt,qe,Mt,ge,mn=lx){return ae(),ow.getCompletionEntrySymbol(h,F,ie(kt),qe,{name:Mt,source:ge},e,mn)}function st(kt,qe){ae();const Mt=ie(kt),ge=cS(Mt,qe);if(ge===Mt)return;const mn=h.getTypeChecker(),Jn=It(ge),Nn=wqe(Jn,mn);if(!Nn||mn.isUnknownSymbol(Nn)){const Ts=Yt(Mt,Jn,qe)?mn.getTypeAtLocation(Jn):void 0;return Ts&&{kind:"",kindModifiers:"",textSpan:sT(Jn,Mt),displayParts:mn.runWithCancellationToken(P,Cc=>wj(Cc,Ts,RR(Jn))),documentation:Ts.symbol?Ts.symbol.getDocumentationComment(mn):void 0,tags:Ts.symbol?Ts.symbol.getJsDocTags(mn):void 0}}const{symbolKind:Lr,displayParts:qi,documentation:vo,tags:Ro}=mn.runWithCancellationToken(P,Ts=>W6.getSymbolDisplayPartsDocumentationAndSymbolKind(Ts,Nn,Mt,RR(Jn),Jn));return{kind:Lr,kindModifiers:W6.getSymbolModifiers(mn,Nn),textSpan:sT(Jn,Mt),displayParts:qi,documentation:vo,tags:Ro}}function It(kt){return sb(kt.parent)&&kt.pos===kt.parent.pos?kt.parent.expression:g6(kt.parent)&&kt.pos===kt.parent.pos||gP(kt.parent)&&kt.parent.name===kt||Fm(kt.parent)?kt.parent:kt}function Yt(kt,qe,Mt){switch(qe.kind){case 80:return!m4(qe)&&!KW(qe)&&!ky(qe.parent);case 211:case 166:return!tw(kt,Mt);case 110:case 197:case 108:case 202:return!0;case 236:return gP(qe);default:return!1}}function Et(kt,qe,Mt,ge){return ae(),C4.getDefinitionAtPosition(h,ie(kt),qe,Mt,ge)}function at(kt,qe){return ae(),C4.getDefinitionAndBoundSpan(h,ie(kt),qe)}function Qt(kt,qe){return ae(),C4.getTypeDefinitionAtPosition(h.getTypeChecker(),ie(kt),qe)}function nn(kt,qe){return ae(),Wf.getImplementationsAtPosition(h,P,h.getSourceFiles(),ie(kt),qe)}function Rn(kt,qe,Mt){const ge=hf(kt);re.assert(Mt.some(Nn=>hf(Nn)===ge)),ae();const mn=Qo(Mt,Nn=>h.getSourceFile(Nn)),Jn=ie(kt);return yhe.getDocumentHighlights(h,P,Jn,qe,mn)}function cn(kt,qe,Mt,ge,mn){ae();const Jn=ie(kt),Nn=DZ(cS(Jn,qe));if(v0e.nodeIsEligibleForRename(Nn))if(xn(Nn)&&(Pb(Nn.parent)||iD(Nn.parent))&&EH(Nn.escapedText)){const{openingElement:Lr,closingElement:qi}=Nn.parent.parent;return[Lr,qi].map(vo=>{const Ro=sT(vo.tagName,Jn);return{fileName:Jn.fileName,textSpan:Ro,...Wf.toContextSpan(Ro,Jn,vo.parent)}})}else{const Lr=OS(Jn,mn??lx),qi=typeof mn=="boolean"?mn:mn==null?void 0:mn.providePrefixAndSuffixTextForRename;return Kt(Nn,qe,{findInStrings:Mt,findInComments:ge,providePrefixAndSuffixTextForRename:qi,use:Wf.FindReferencesUse.Rename},(vo,Ro,Ts)=>Wf.toRenameLocation(vo,Ro,Ts,qi||!1,Lr))}}function qt(kt,qe){return ae(),Kt(cS(ie(kt),qe),qe,{use:Wf.FindReferencesUse.References},Wf.toReferenceEntry)}function Kt(kt,qe,Mt,ge){ae();const mn=Mt&&Mt.use===Wf.FindReferencesUse.Rename?h.getSourceFiles().filter(Jn=>!h.isSourceFileDefaultLibrary(Jn)):h.getSourceFiles();return Wf.findReferenceOrRenameEntries(h,P,mn,kt,qe,Mt,ge)}function wr(kt,qe){return ae(),Wf.findReferencedSymbols(h,P,h.getSourceFiles(),ie(kt),qe)}function Wr(kt){return ae(),Wf.Core.getReferencesForFileName(kt,h,h.getSourceFiles()).map(Wf.toReferenceEntry)}function jt(kt,qe,Mt,ge=!1,mn=!1){ae();const Jn=Mt?[ie(Mt)]:h.getSourceFiles();return s3e(Jn,h.getTypeChecker(),P,kt,qe,ge,mn)}function En(kt,qe,Mt){ae();const ge=ie(kt),mn=e.getCustomTransformers&&e.getCustomTransformers();return O4e(h,ge,!!qe,P,mn,Mt)}function fr(kt,qe,{triggerReason:Mt}=lx){ae();const ge=ie(kt);return gue.getSignatureHelpItems(h,ge,qe,Mt,P)}function Tr(kt){return d.getCurrentSourceFile(kt)}function Vr(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=cS(ge,qe);if(mn===ge)return;switch(mn.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 Jn=mn;for(;;)if(sS(Jn)||wA(Jn))Jn=Jn.parent;else if(U$(Jn))if(Jn.parent.parent.kind===267&&Jn.parent.parent.body===Jn.parent)Jn=Jn.parent.parent.name;else break;else break;return Yy(Jn.getStart(),mn.getEnd())}function Pn(kt,qe){const Mt=d.getCurrentSourceFile(kt);return TDe.spanInSourceFileAtLocation(Mt,qe)}function Fr(kt){return f3e(d.getCurrentSourceFile(kt),P)}function Ki(kt){return q3(d.getCurrentSourceFile(kt),P)}function io(kt,qe,Mt){return ae(),(Mt||"original")==="2020"?aDe(h,P,ie(kt),qe):JAe(h.getTypeChecker(),P,ie(kt),h.getClassifiableNames(),qe)}function no(kt,qe,Mt){return ae(),(Mt||"original")==="original"?$Ae(h.getTypeChecker(),P,ie(kt),h.getClassifiableNames(),qe):sDe(h,P,ie(kt),qe)}function os(kt,qe){return hhe(P,d.getCurrentSourceFile(kt),qe)}function Mo(kt,qe){return qAe(P,d.getCurrentSourceFile(kt),qe)}function $i(kt){const qe=d.getCurrentSourceFile(kt);return Pke.collectElements(qe,P)}const ki=new Map(Object.entries({19:20,21:22,23:24,32:30}));ki.forEach((kt,qe)=>ki.set(kt.toString(),Number(qe)));function gc(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=MR(Mt,qe),mn=ge.getStart(Mt)===qe?ki.get(ge.kind.toString()):void 0,Jn=mn&&qm(ge.parent,mn,Mt);return Jn?[sT(ge,Mt),sT(Jn,Mt)].sort((Nn,Lr)=>Nn.start-Lr.start):Yn}function Wl(kt,qe,Mt){let ge=H_();const mn=lle(Mt),Jn=d.getCurrentSourceFile(kt);F("getIndentationAtPosition: getCurrentSourceFile: "+(H_()-ge)),ge=H_();const Nn=V0.SmartIndenter.getIndentation(qe,Jn,mn);return F("getIndentationAtPosition: computeIndentation : "+(H_()-ge)),Nn}function Jc(kt,qe,Mt,ge){const mn=d.getCurrentSourceFile(kt);return V0.formatSelection(qe,Mt,mn,V0.getFormatContext(lle(ge),e))}function au(kt,qe){return V0.formatDocument(d.getCurrentSourceFile(kt),V0.getFormatContext(lle(qe),e))}function qn(kt,qe,Mt,ge){const mn=d.getCurrentSourceFile(kt),Jn=V0.getFormatContext(lle(ge),e);if(!tw(mn,qe))switch(Mt){case"{":return V0.formatOnOpeningCurly(qe,mn,Jn);case"}":return V0.formatOnClosingCurly(qe,mn,Jn);case";":return V0.formatOnSemicolon(qe,mn,Jn);case` +`:return V0.formatOnEnter(qe,mn,Jn)}return[]}function za(kt,qe,Mt,ge,mn,Jn=lx){ae();const Nn=ie(kt),Lr=Yy(qe,Mt),qi=V0.getFormatContext(mn,e);return ea(th(ge,_1,pf),vo=>(P.throwIfCancellationRequested(),fT.getFixes({errorCode:vo,sourceFile:Nn,span:Lr,program:h,host:e,cancellationToken:P,formatContext:qi,preferences:Jn})))}function Ia(kt,qe,Mt,ge=lx){ae(),re.assert(kt.type==="file");const mn=ie(kt.fileName),Jn=V0.getFormatContext(Mt,e);return fT.getAllFixes({fixId:qe,sourceFile:mn,program:h,host:e,cancellationToken:P,formatContext:Jn,preferences:ge})}function zi(kt,qe,Mt=lx){ae(),re.assert(kt.type==="file");const ge=ie(kt.fileName),mn=V0.getFormatContext(qe,e),Jn=kt.mode??(kt.skipDestructiveCodeActions?"SortAndCombine":"All");return lD.organizeImports(ge,mn,e,h,Mt,Jn)}function na(kt,qe,Mt,ge=lx){return QAe(ve(),kt,qe,e,V0.getFormatContext(Mt,e),ge,X)}function _a(kt,qe){const Mt=typeof kt=="string"?qe:kt;return ls(Mt)?Promise.all(Mt.map(ge=>us(ge))):us(Mt)}function us(kt){const qe=Mt=>gm(Mt,k,J);return re.assertEqual(kt.type,"install package"),e.installPackage?e.installPackage({fileName:qe(kt.file),packageName:kt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Au(kt,qe,Mt,ge){const mn=ge?V0.getFormatContext(ge,e).options:void 0;return nO.getDocCommentTemplateAtPosition(R6(e,mn),d.getCurrentSourceFile(kt),qe,Mt)}function Qu(kt,qe,Mt){if(Mt===60)return!1;const ge=d.getCurrentSourceFile(kt);if(V3(ge,qe))return!1;if(LR(ge,qe))return Mt===123;if(Qse(ge,qe))return!1;switch(Mt){case 39:case 34:case 96:return!tw(ge,qe)}return!0}function Cu(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=bv(qe,Mt);if(!ge)return;const mn=ge.kind===32&&Pb(ge.parent)?ge.parent.parent:SR(ge)&&zx(ge.parent)?ge.parent:void 0;if(mn&&Mr(mn))return{newText:``};const Jn=ge.kind===32&&v6(ge.parent)?ge.parent.parent:SR(ge)&&Ek(ge.parent)?ge.parent:void 0;if(Jn&&Pr(Jn))return{newText:""}}function yf(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=bv(qe,Mt);if(!ge||ge.parent.kind===312)return;const mn="[a-zA-Z0-9:\\-\\._$]*";if(Ek(ge.parent.parent)){const Jn=ge.parent.parent.openingFragment,Nn=ge.parent.parent.closingFragment;if($z(Jn)||$z(Nn))return;const Lr=Jn.getStart(Mt)+1,qi=Nn.getStart(Mt)+2;return qe!==Lr&&qe!==qi?void 0:{ranges:[{start:Lr,length:0},{start:qi,length:0}],wordPattern:mn}}else{const Jn=Ua(ge.parent,Pc=>!!(Pb(Pc)||iD(Pc)));if(!Jn)return;re.assert(Pb(Jn)||iD(Jn),"tag should be opening or closing element");const Nn=Jn.parent.openingElement,Lr=Jn.parent.closingElement,qi=Nn.tagName.getStart(Mt),vo=Nn.tagName.end,Ro=Lr.tagName.getStart(Mt),Ts=Lr.tagName.end;return!(qi<=qe&&qe<=vo||Ro<=qe&&qe<=Ts)||Nn.tagName.getText(Mt)!==Lr.tagName.getText(Mt)?void 0:{ranges:[{start:qi,length:vo-qi},{start:Ro,length:Ts-Ro}],wordPattern:mn}}}function w_(kt,qe){return{lineStarts:kt.getLineStarts(),firstLine:kt.getLineAndCharacterOfPosition(qe.pos).line,lastLine:kt.getLineAndCharacterOfPosition(qe.end).line}}function Eu(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=[],{lineStarts:Jn,firstLine:Nn,lastLine:Lr}=w_(ge,qe);let qi=Mt||!1,vo=Number.MAX_VALUE;const Ro=new Map,Ts=new RegExp(/\S/),Cc=Zse(ge,Jn[Nn]),Pc=Cc?"{/*":"//";for(let hc=Nn;hc<=Lr;hc++){const bl=ge.text.substring(Jn[hc],ge.getLineEndOfPosition(Jn[hc])),Tc=Ts.exec(bl);Tc&&(vo=Math.min(vo,Tc.index),Ro.set(hc.toString(),Tc.index),bl.substr(Tc.index,Pc.length)!==Pc&&(qi=Mt===void 0||Mt))}for(let hc=Nn;hc<=Lr;hc++){if(Nn!==Lr&&Jn[hc]===qe.end)continue;const bl=Ro.get(hc.toString());bl!==void 0&&(Cc?mn.push(...He(kt,{pos:Jn[hc]+vo,end:ge.getLineEndOfPosition(Jn[hc])},qi,Cc)):qi?mn.push({newText:Pc,span:{length:0,start:Jn[hc]+vo}}):ge.text.substr(Jn[hc]+bl,Pc.length)===Pc&&mn.push({newText:"",span:{length:Pc.length,start:Jn[hc]+bl}}))}return mn}function He(kt,qe,Mt,ge){var mn;const Jn=d.getCurrentSourceFile(kt),Nn=[],{text:Lr}=Jn;let qi=!1,vo=Mt||!1;const Ro=[];let{pos:Ts}=qe;const Cc=ge!==void 0?ge:Zse(Jn,Ts),Pc=Cc?"{/*":"/*",hc=Cc?"*/}":"*/",bl=Cc?"\\{\\/\\*":"\\/\\*",Tc=Cc?"\\*\\/\\}":"\\*\\/";for(;Ts<=qe.end;){const Tf=Lr.substr(Ts,Pc.length)===Pc?Pc.length:0,ma=tw(Jn,Ts+Tf);if(ma)Cc&&(ma.pos--,ma.end++),Ro.push(ma.pos),ma.kind===3&&Ro.push(ma.end),qi=!0,Ts=ma.end+1;else{const Bl=Lr.substring(Ts,qe.end).search(`(${bl})|(${Tc})`);vo=Mt!==void 0?Mt:vo||!cT(Lr,Ts,Bl===-1?qe.end:Ts+Bl),Ts=Bl===-1?qe.end+1:Ts+Bl+hc.length}}if(vo||!qi){((mn=tw(Jn,qe.pos))==null?void 0:mn.kind)!==2&&d0(Ro,qe.pos,pf),d0(Ro,qe.end,pf);const Tf=Ro[0];Lr.substr(Tf,Pc.length)!==Pc&&Nn.push({newText:Pc,span:{length:0,start:Tf}});for(let ma=1;ma0?Tf-hc.length:0,Bl=Lr.substr(ma,hc.length)===hc?hc.length:0;Nn.push({newText:"",span:{length:Pc.length,start:Tf-Bl}})}return Nn}function Hn(kt,qe){const Mt=d.getCurrentSourceFile(kt),{firstLine:ge,lastLine:mn}=w_(Mt,qe);return ge===mn&&qe.pos!==qe.end?He(kt,qe,!0):Eu(kt,qe,!0)}function dr(kt,qe){const Mt=d.getCurrentSourceFile(kt),ge=[],{pos:mn}=qe;let{end:Jn}=qe;mn===Jn&&(Jn+=Zse(Mt,mn)?2:1);for(let Nn=mn;Nn<=Jn;Nn++){const Lr=tw(Mt,Nn);if(Lr){switch(Lr.kind){case 2:ge.push(...Eu(kt,{end:Lr.end,pos:Lr.pos+1},!1));break;case 3:ge.push(...He(kt,{end:Lr.end,pos:Lr.pos+1},!1))}Nn=Lr.end+1}}return ge}function Mr({openingElement:kt,closingElement:qe,parent:Mt}){return!n4(kt.tagName,qe.tagName)||zx(Mt)&&n4(kt.tagName,Mt.openingElement.tagName)&&Mr(Mt)}function Pr({closingFragment:kt,parent:qe}){return!!(kt.flags&262144)||Ek(qe)&&Pr(qe)}function Bt(kt,qe,Mt){const ge=d.getCurrentSourceFile(kt),mn=V0.getRangeOfEnclosingComment(ge,qe);return mn&&(!Mt||mn.kind===3)?PP(mn):void 0}function ln(kt,qe){ae();const Mt=ie(kt);P.throwIfCancellationRequested();const ge=Mt.text,mn=[];if(qe.length>0&&!qi(Mt.fileName)){const vo=Nn();let Ro;for(;Ro=vo.exec(ge);){P.throwIfCancellationRequested();const Ts=3;re.assert(Ro.length===qe.length+Ts);const Cc=Ro[1],Pc=Ro.index+Cc.length;if(!tw(Mt,Pc))continue;let hc;for(let Tc=0;Tc"("+Jn(ma.text)+")").join("|")+")",hc=/(?:$|\*\/)/.source,bl=/(?:.*?)/.source,Tc="("+Pc+bl+")",Tf=Cc+Tc+hc;return new RegExp(Tf,"gim")}function Lr(vo){return vo>=97&&vo<=122||vo>=65&&vo<=90||vo>=48&&vo<=57}function qi(vo){return vo.includes("/node_modules/")}}function Wn(kt,qe,Mt){return ae(),v0e.getRenameInfo(h,ie(kt),qe,Mt||{})}function $r(kt,qe,Mt,ge,mn,Jn){const[Nn,Lr]=typeof qe=="number"?[qe,void 0]:[qe.pos,qe.end];return{file:kt,startPosition:Nn,endPosition:Lr,program:ve(),host:e,formatContext:V0.getFormatContext(ge,e),cancellationToken:P,preferences:Mt,triggerReason:mn,kind:Jn}}function Ge(kt,qe,Mt){return{file:kt,program:ve(),host:e,span:qe,preferences:Mt,cancellationToken:P}}function Br(kt,qe){return Mke.getSmartSelectionRange(qe,d.getCurrentSourceFile(kt))}function Ei(kt,qe,Mt=lx,ge,mn,Jn){ae();const Nn=ie(kt);return MF.getApplicableRefactors($r(Nn,qe,Mt,lx,ge,mn),Jn)}function Ln(kt,qe,Mt=lx){ae();const ge=ie(kt),mn=re.checkDefined(h.getSourceFiles()),Jn=SP(kt),Nn=Qo(mn,qi=>!(h!=null&&h.isSourceFileFromExternalLibrary(ge))&&!(ge===ie(qi.fileName)||Jn===".ts"&&SP(qi.fileName)===".d.ts"||Jn===".d.ts"&&qf(Jg(qi.fileName),"lib.")&&SP(qi.fileName)===".d.ts")&&Jn===SP(qi.fileName)?qi.fileName:void 0);return{newFileName:O3e(ge,h,$r(ge,qe,Mt,lx),e),files:Nn}}function Sr(kt,qe,Mt,ge,mn,Jn=lx,Nn){ae();const Lr=ie(kt);return MF.getEditsForRefactor($r(Lr,Mt,Jn,qe),ge,mn,Nn)}function yi(kt,qe){return qe===0?{line:0,character:0}:X.toLineColumnOffset(kt,qe)}function go(kt,qe){ae();const Mt=Jj.resolveCallHierarchyDeclaration(h,cS(ie(kt),qe));return Mt&&she(Mt,ge=>Jj.createCallHierarchyItem(h,ge))}function Ao(kt,qe){ae();const Mt=ie(kt),ge=XZ(Jj.resolveCallHierarchyDeclaration(h,qe===0?Mt:cS(Mt,qe)));return ge?Jj.getIncomingCalls(h,ge,P):[]}function Io(kt,qe){ae();const Mt=ie(kt),ge=XZ(Jj.resolveCallHierarchyDeclaration(h,qe===0?Mt:cS(Mt,qe)));return ge?Jj.getOutgoingCalls(h,ge):[]}function ze(kt,qe,Mt=lx){ae();const ge=ie(kt);return vke.provideInlayHints(Ge(ge,qe,Mt))}const Ce={dispose:Pe,cleanupSemanticCache:et,getSyntacticDiagnostics:dt,getSemanticDiagnostics:Ie,getSuggestionDiagnostics:ct,getCompilerOptionsDiagnostics:Ct,getSyntacticClassifications:os,getSemanticClassifications:io,getEncodedSyntacticClassifications:Mo,getEncodedSemanticClassifications:no,getCompletionsAtPosition:Lt,getCompletionEntryDetails:Ze,getCompletionEntrySymbol:Ke,getSignatureHelpItems:fr,getQuickInfoAtPosition:st,getDefinitionAtPosition:Et,getDefinitionAndBoundSpan:at,getImplementationAtPosition:nn,getTypeDefinitionAtPosition:Qt,getReferencesAtPosition:qt,findReferences:wr,getFileReferences:Wr,getDocumentHighlights:Rn,getNameOrDottedNameSpan:Vr,getBreakpointStatementAtPosition:Pn,getNavigateToItems:jt,getRenameInfo:Wn,getSmartSelectionRange:Br,findRenameLocations:cn,getNavigationBarItems:Fr,getNavigationTree:Ki,getOutliningSpans:$i,getTodoComments:ln,getBraceMatchingAtPosition:gc,getIndentationAtPosition:Wl,getFormattingEditsForRange:Jc,getFormattingEditsForDocument:au,getFormattingEditsAfterKeystroke:qn,getDocCommentTemplateAtPosition:Au,isValidBraceCompletionAtPosition:Qu,getJsxClosingTagAtPosition:Cu,getLinkedEditingRangeAtPosition:yf,getSpanOfEnclosingComment:Bt,getCodeFixesAtPosition:za,getCombinedCodeFix:Ia,applyCodeActionCommand:_a,organizeImports:zi,getEditsForFileRename:na,getEmitOutput:En,getNonBoundSourceFile:Tr,getProgram:ve,getCurrentProgram:()=>h,getAutoImportProvider:we,updateIsDefinitionOfReferencedSymbols:Fe,getApplicableRefactors:Ei,getEditsForRefactor:Sr,getMoveToRefactoringFileSuggestions:Ln,toLineColumnOffset:yi,getSourceMapper:()=>X,clearSourceMapperCache:()=>X.clearCache(),prepareCallHierarchy:go,provideCallHierarchyIncomingCalls:Ao,provideCallHierarchyOutgoingCalls:Io,toggleLineComment:Eu,toggleMultilineComment:He,commentSelection:Hn,uncommentSelection:dr,provideInlayHints:ze,getSupportedCodeFixes:fle};switch(u){case 0:break;case 1:hye.forEach(kt=>Ce[kt]=()=>{throw new Error(`LanguageService Operation: ${kt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:vDe.forEach(kt=>Ce[kt]=()=>{throw new Error(`LanguageService Operation: ${kt} not allowed in LanguageServiceMode.Syntactic`)});break;default:re.assertNever(u)}return Ce}function xee(e){return e.nameTable||dDe(e),e.nameTable}function dDe(e){const n=e.nameTable=new Map;e.forEachChild(function i(c){if(xn(c)&&!KW(c)&&c.escapedText||Ox(c)&&Pqe(c)){const u=nI(c);n.set(u,n.get(u)===void 0?c.pos:-1)}else if(Lu(c)){const u=c.escapedText;n.set(u,n.get(u)===void 0?c.pos:-1)}if(s_(c,i),NT(c))for(const u of c.jsDoc)s_(u,i)})}function Pqe(e){return ON(e)||e.parent.kind===283||Rqe(e)||_g(e)}function Aee(e){const n=Nqe(e);return n&&(el(n.parent)||CR(n.parent))?n:void 0}function Nqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return eY(e.parent.parent)?e.parent.parent:void 0;case 80:return eY(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function wqe(e,n){const i=Aee(e);if(i){const c=n.getContextualType(i.parent),u=c&&_le(i,n,c,!1);if(u&&u.length===1)return Dl(u)}return n.getSymbolAtLocation(e)}function _le(e,n,i,c){const u=tq(e.name);if(!u)return Yn;if(!i.isUnion()){const h=i.getProperty(u);return h?[h]:Yn}const d=Qo(i.types,h=>(el(e.parent)||CR(e.parent))&&n.isTypeInvalidDueToUnionDiscriminant(h,e.parent)?void 0:h.getProperty(u));if(c&&(d.length===0||d.length===i.types.length)){const h=i.getProperty(u);if(h)return[h]}return d.length===0?Qo(i.types,h=>h.getProperty(u)):d}function Rqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function pDe(e){if(w0)return vl(ws(hf(w0.getExecutingFilePath())),$D(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var dye,dle,pye,Mqe,EOe,mDe,Cee,Lqe,gDe,xOe,hDe,Oqe,yDe,mye,gye,hye,vDe,bDe=G({"src/services/services.ts"(){xl(),u3e(),k$e(),EI(),KAe(),TOe(),dye="0.8",dle=class{constructor(e,n,i){this.pos=n,this.end=i,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){re.assert(!ab(this.pos)&&!ab(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return ts(this)}getStart(e,n){return this.assertHasRealPosition(),v2(this,e,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,n){return this.getChildren(n)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=uDe(this,e))}getFirstToken(e){this.assertHasRealPosition();const n=this.getChildren(e);if(!n.length)return;const i=lr(n,c=>c.kind<316||c.kind>357);return i.kind<166?i:i.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const n=this.getChildren(e),i=Yf(n);if(i)return i.kind<166?i:i.getLastToken(e)}forEachChild(e,n){return s_(this,e,n)}},pye=class{constructor(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ts(this)}getStart(e,n){return v2(this,e,n)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Yn}getFirstToken(){}getLastToken(){}forEachChild(){}},Mqe=class{constructor(e,n){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=n}getFlags(){return this.flags}get name(){return Il(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Yn,!this.declarations&&Vm(this)&&this.links.target&&Vm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const n=this.links.target.links.tupleLabelDeclaration;this.documentationComment=sye([n],e)}else this.documentationComment=sye(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,n){if(e){if(PN(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=sye(gi(this.declarations,PN),n)),Nt(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(UC(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=sye(gi(this.declarations,UC),n)),Nt(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(n)}getJsDocTags(e){return this.tags===void 0&&(this.tags=_De(this.declarations,e)),this.tags}getContextualJsDocTags(e,n){if(e){if(PN(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=_De(gi(this.declarations,PN),n)),Nt(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(UC(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=_De(gi(this.declarations,UC),n)),Nt(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(n)}},EOe=class extends pye{constructor(e,n,i){super(n,i),this.kind=e}},mDe=class extends pye{constructor(e,n,i){super(n,i),this.kind=80}get text(){return Kr(this)}},mDe.prototype.kind=80,Cee=class extends pye{constructor(e,n,i){super(n,i),this.kind=81}get text(){return Kr(this)}},Cee.prototype.kind=81,Lqe=class{constructor(e,n){this.checker=e,this.flags=n}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(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!!(ji(this)&3)}isClass(){return!!(ji(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ji(this)&4)return this.checker.getTypeArguments(this)}},gDe=class{constructor(e,n){this.checker=e,this.flags=n}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const n=this.checker.getParameterType(this,e);if(n.isIndexType()&&p3(n.type)){const i=n.type.getConstraint();if(i)return this.checker.getIndexType(i)}return n}getDocumentationComment(){return this.documentationComment||(this.documentationComment=sye(X5(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=_De(X5(this.declaration),this.checker))}},xOe=class extends dle{constructor(e,n,i){super(e,n,i),this.kind=312}update(e,n){return Hoe(this,e,n)}getLineAndCharacterOfPosition(e){return xm(this,e)}getLineStarts(){return eR(this)}getPositionOfLineAndCharacter(e,n,i){return H_e(eR(this),e,n,this.text,i)}getLineEndOfPosition(e){const{line:n}=this.getLineAndCharacterOfPosition(e),i=this.getLineStarts();let c;n+1>=i.length&&(c=this.getEnd()),c||(c=i[n+1]-1);const u=this.getFullText();return u[c]===` +`&&u[c-1]==="\r"?c-1:c}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=zg();return this.forEachChild(u),e;function n(d){const h=c(d);h&&e.add(h,d)}function i(d){let h=e.get(d);return h||e.set(d,h=[]),h}function c(d){const h=Kre(d);return h&&(Qf(h)&&Ac(h.expression)?h.expression.name.text:qg(h)?tq(h):void 0)}function u(d){switch(d.kind){case 262:case 218:case 174:case 173:const h=d,S=c(h);if(S){const k=i(S),F=Yf(k);F&&h.parent===F.parent&&h.symbol===F.symbol?h.body&&!F.body&&(k[k.length-1]=h):k.push(h)}s_(d,u);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:n(d),s_(d,u);break;case 169:if(!ul(d,31))break;case 260:case 208:{const k=d;if($_(k.name)){s_(k.name,u);break}k.initializer&&u(k.initializer)}case 306:case 172:case 171:n(d);break;case 278:const E=d;E.exportClause&&(j0(E.exportClause)?Ot(E.exportClause.elements,u):u(E.exportClause.name));break;case 272:const P=d.importClause;P&&(P.name&&n(P.name),P.namedBindings&&(P.namedBindings.kind===274?n(P.namedBindings):Ot(P.namedBindings.elements,u)));break;case 226:jy(d)!==0&&n(d);default:s_(d,u)}}}},hDe=class{constructor(e,n,i){this.fileName=e,this.text=n,this.skipTrivia=i}getLineAndCharacterOfPosition(e){return xm(this,e)}},Oqe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var n,i,c,u,d,h,S,E;const P=this.host.getScriptSnapshot(e);if(!P)throw new Error("Could not find file: '"+e+"'.");const k=sce(e,this.host),F=this.host.getScriptVersion(e);let $;if(this.currentFileName!==e){const J={languageVersion:99,impliedNodeFormat:Zae(gm(e,this.host.getCurrentDirectory(),((c=(i=(n=this.host).getCompilerHost)==null?void 0:i.call(n))==null?void 0:c.getCanonicalFileName)||QC(this.host)),(E=(S=(h=(d=(u=this.host).getCompilerHost)==null?void 0:d.call(u))==null?void 0:h.getModuleResolutionCache)==null?void 0:S.call(h))==null?void 0:E.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:q9(this.host.getCompilationSettings()),jsDocParsingMode:0};$=xq(e,P,J,F,!0,k)}else if(this.currentFileVersion!==F){const J=P.getChangeRange(this.currentFileScriptSnapshot);$=fye(this.currentSourceFile,P,F,J)}return $&&(this.currentFileVersion=F,this.currentFileName=e,this.currentFileScriptSnapshot=P,this.currentSourceFile=$),this.currentSourceFile}},yDe={isCancellationRequested:bg,throwIfCancellationRequested:ku},mye=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ps)==null||e.instant(ps.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new QO}},gye=class{constructor(e,n=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=H_();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ps)==null||e.instant(ps.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new QO}},hye=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],vDe=[...hye,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],RSe(Lut())}});function AOe(e,n,i){const c=[];i=gCe(i,c);const u=ls(e)?e:[e],d=x$(void 0,void 0,he,i,u,n,!0);return d.diagnostics=Hi(d.diagnostics,c),d}var Fqe=G({"src/services/transform.ts"(){xl()}});function Wqe(e,n){if(e.isDeclarationFile)return;let i=Lf(e,n);const c=e.getLineAndCharacterOfPosition(n).line;if(e.getLineAndCharacterOfPosition(i.getStart(e)).line>c){const F=bv(i.pos,e);if(!F||e.getLineAndCharacterOfPosition(F.getEnd()).line!==c)return;i=F}if(i.flags&33554432)return;return k(i);function u(F,$){const J=S6(F)?ra(F.modifiers,Jh):void 0,X=J?Ff(e.text,J.end):F.getStart(e);return Yy(X,($||F).getEnd())}function d(F,$){return u(F,N6($,$.parent,e))}function h(F,$){return F&&c===e.getLineAndCharacterOfPosition(F.getStart(e)).line?k(F):k($)}function S(F,$,J){if(F){const X=F.indexOf($);if(X>=0){let ie=X,ae=X+1;for(;ie>0&&J(F[ie-1]);)ie--;for(;ae0)return k(Qt.declarations[0])}else return k(at.initializer)}function Pe(at){if(at.initializer)return et(at);if(at.condition)return u(at.condition);if(at.incrementor)return u(at.incrementor)}function dt(at){const Qt=Ot(at.elements,nn=>nn.kind!==232?nn:void 0);return Qt?k(Qt):at.parent.kind===208?u(at.parent):$(at.parent)}function Ie(at){re.assert(at.kind!==207&&at.kind!==206);const Qt=at.kind===209?at.elements:at.properties,nn=Ot(Qt,Rn=>Rn.kind!==232?Rn:void 0);return nn?k(nn):u(at.parent.kind===226?at.parent:at)}function ct(at){switch(at.parent.kind){case 266:const Qt=at.parent;return h(bv(at.pos,e,at.parent),Qt.members.length?Qt.members[0]:Qt.getLastToken(e));case 263:const nn=at.parent;return h(bv(at.pos,e,at.parent),nn.members.length?nn.members[0]:nn.getLastToken(e));case 269:return h(at.parent.parent,at.parent.clauses[0])}return k(at.parent)}function Ct(at){switch(at.parent.kind){case 268:if(YN(at.parent.parent)!==1)return;case 266:case 263:return u(at);case 241:if(hP(at.parent))return u(at);case 299:return k(Yf(at.parent.statements));case 269:const Qt=at.parent,nn=Yf(Qt.clauses);return nn?k(Yf(nn.statements)):void 0;case 206:const Rn=at.parent;return k(Yf(Rn.elements)||Rn);default:if(kP(at.parent)){const cn=at.parent;return u(Yf(cn.properties)||cn)}return k(at.parent)}}function Lt(at){switch(at.parent.kind){case 207:const Qt=at.parent;return u(Yf(Qt.elements)||Qt);default:if(kP(at.parent)){const nn=at.parent;return u(Yf(nn.elements)||nn)}return k(at.parent)}}function Ze(at){return at.parent.kind===246||at.parent.kind===213||at.parent.kind===214?E(at):at.parent.kind===217?P(at):k(at.parent)}function Ke(at){switch(at.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 E(at);default:return k(at.parent)}}function st(at){return F_(at.parent)||at.parent.kind===303||at.parent.kind===169?E(at):k(at.parent)}function It(at){return at.parent.kind===216?P(at):k(at.parent)}function Yt(at){return at.parent.kind===246?d(at,at.parent.expression):k(at.parent)}function Et(at){return at.parent.kind===250?P(at):k(at.parent)}}}var Bqe=G({"src/services/breakpoints.ts"(){xl()}}),TDe={};Oe(TDe,{spanInSourceFileAtLocation:()=>Wqe});var Out=G({"src/services/_namespaces/ts.BreakpointResolver.ts"(){Bqe()}});function Fut(e){return(Jm(e)||v0(e))&&mp(e)}function Aq(e){return(Jm(e)||$m(e)||v0(e))&&Kc(e.parent)&&e===e.parent.initializer&&xn(e.parent.name)&&!!(rR(e.parent)&2)}function zqe(e){return Nu(e)||dy(e)||mg(e)||Jm(e)||Ih(e)||v0(e)||Ep(e)||tm(e)||pg(e)||lE(e)||Xb(e)}function Cq(e){return Nu(e)||dy(e)&&xn(e.name)||mg(e)||Ih(e)||Ep(e)||tm(e)||pg(e)||lE(e)||Xb(e)||Fut(e)||Aq(e)}function Dee(e){return Nu(e)?e:mp(e)?e.name:Aq(e)?e.parent.name:re.checkDefined(e.modifiers&&lr(e.modifiers,COe))}function COe(e){return e.kind===90}function Hj(e,n){const i=Dee(n);return i&&e.getSymbolAtLocation(i)}function Gqe(e,n){if(Nu(n))return{text:n.fileName,pos:0,end:0};if((mg(n)||Ih(n))&&!mp(n)){const u=n.modifiers&&lr(n.modifiers,COe);if(u)return{text:"default",pos:u.getStart(),end:u.getEnd()}}if(Ep(n)){const u=n.getSourceFile(),d=Ff(u.text,Db(n).pos),h=d+6,S=e.getTypeChecker(),E=S.getSymbolAtLocation(n.parent);return{text:`${E?`${S.symbolToString(E,n.parent)} `:""}static {}`,pos:d,end:h}}const i=Aq(n)?n.parent.name:re.checkDefined(i_(n),"Expected call hierarchy item to have a name");let c=xn(i)?Kr(i):Ox(i)?i.text:Qf(i)&&Ox(i.expression)?i.expression.text:void 0;if(c===void 0){const u=e.getTypeChecker(),d=u.getSymbolAtLocation(i);d&&(c=u.symbolToString(d,n))}if(c===void 0){const u=C$();c=wT(d=>u.writeNode(4,n,n.getSourceFile(),d))}return{text:c,pos:i.getStart(),end:i.getEnd()}}function jqe(e){var n,i;if(Aq(e))return kh(e.parent.parent.parent.parent)&&xn(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(n=FU(e.parent))==null?void 0:n.getText():(i=i_(e.parent))==null?void 0:i.getText();case 262:case 263:case 267:if(kh(e.parent)&&xn(e.parent.parent.name))return e.parent.parent.name.getText()}}function DOe(e,n){if(n.body)return n;if(Lh(n))return sC(n.parent);if(mg(n)||tm(n)){const i=Hj(e,n);return i&&i.valueDeclaration&&Vd(i.valueDeclaration)&&i.valueDeclaration.body?i.valueDeclaration:void 0}return n}function Vqe(e,n){const i=Hj(e,n);let c;if(i&&i.declarations){const u=Cy(i.declarations),d=Vn(i.declarations,E=>({file:E.getSourceFile().fileName,pos:E.pos}));u.sort((E,P)=>Fp(d[E].file,d[P].file)||d[E].pos-d[P].pos);const h=Vn(u,E=>i.declarations[E]);let S;for(const E of h)Cq(E)&&((!S||S.parent!==E.parent||S.end!==E.pos)&&(c=ur(c,E)),S=E)}return c}function SDe(e,n){return Ep(n)?n:Vd(n)?DOe(e,n)??Vqe(e,n)??n:Vqe(e,n)??n}function IOe(e,n){const i=e.getTypeChecker();let c=!1;for(;;){if(Cq(n))return SDe(i,n);if(zqe(n)){const u=Ua(n,Cq);return u&&SDe(i,u)}if(ON(n)){if(Cq(n.parent))return SDe(i,n.parent);if(zqe(n.parent)){const u=Ua(n.parent,Cq);return u&&SDe(i,u)}return Kc(n.parent)&&n.parent.initializer&&Aq(n.parent.initializer)?n.parent.initializer:void 0}if(Lh(n))return Cq(n.parent)?n.parent:void 0;if(n.kind===126&&Ep(n.parent)){n=n.parent;continue}if(Kc(n)&&n.initializer&&Aq(n.initializer))return n.initializer;if(!c){let u=i.getSymbolAtLocation(n);if(u&&(u.flags&2097152&&(u=i.getAliasedSymbol(u)),u.valueDeclaration)){c=!0,n=u.valueDeclaration;continue}}return}}function EDe(e,n){const i=n.getSourceFile(),c=Gqe(e,n),u=jqe(n),d=g4(n),h=X$(n),S=Yy(Ff(i.text,n.getFullStart(),!1,!0),n.getEnd()),E=Yy(c.pos,c.end);return{file:i.fileName,kind:d,kindModifiers:h,name:c.text,containerName:u,span:S,selectionSpan:E}}function xDe(e){return e!==void 0}function Uqe(e){if(e.kind===Wf.EntryKind.Node){const{node:n}=e;if(yZ(n,!0,!0)||vZ(n,!0,!0)||bZ(n,!0,!0)||Mge(n,!0,!0)||sS(n)||Oge(n)){const i=n.getSourceFile();return{declaration:Ua(n,Cq)||i,range:RZ(n,i)}}}}function ADe(e){return vm(e.declaration)}function Wut(e,n){return{from:e,fromSpans:n}}function But(e,n){return Wut(EDe(e,n[0].declaration),Vn(n,i=>PP(i.range)))}function Hqe(e,n,i){if(Nu(n)||dy(n)||Ep(n))return[];const c=Dee(n),u=gi(Wf.findReferenceOrRenameEntries(e,i,e.getSourceFiles(),c,0,{use:Wf.FindReferencesUse.References},Uqe),xDe);return u?BD(u,ADe,d=>But(e,d)):[]}function zut(e,n){function i(u){const d=Dm(u)?u.tag:m1(u)?u.tagName:Kf(u)||Ep(u)?u:u.expression,h=IOe(e,d);if(h){const S=RZ(d,u.getSourceFile());if(ls(h))for(const E of h)n.push({declaration:E,range:S});else n.push({declaration:h,range:S})}}function c(u){if(u&&!(u.flags&33554432)){if(Cq(u)){if(Fl(u))for(const d of u.members)d.name&&Qf(d.name)&&c(d.name.expression);return}switch(u.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:i(u);return;case 216:case 234:c(u.expression);return;case 260:case 169:c(u.name),c(u.initializer);return;case 213:i(u),c(u.expression),Ot(u.arguments,c);return;case 214:i(u),c(u.expression),Ot(u.arguments,c);return;case 215:i(u),c(u.tag),c(u.template);return;case 286:case 285:i(u),c(u.tagName),c(u.attributes);return;case 170:i(u),c(u.expression);return;case 211:case 212:i(u),s_(u,c);break;case 238:c(u.expression);return}BE(u)||s_(u,c)}}return c}function Gut(e,n){Ot(e.statements,n)}function jut(e,n){!ul(e,128)&&e.body&&kh(e.body)&&Ot(e.body.statements,n)}function Vut(e,n,i){const c=DOe(e,n);c&&(Ot(c.parameters,i),i(c.body))}function Uut(e,n){n(e.body)}function Hut(e,n){Ot(e.modifiers,n);const i=gR(e);i&&n(i.expression);for(const c of e.members)DA(c)&&Ot(c.modifiers,n),nu(c)?n(c.initializer):Lh(c)&&c.body?(Ot(c.parameters,n),n(c.body)):Ep(c)&&n(c)}function Jut(e,n){const i=[],c=zut(e,i);switch(n.kind){case 312:Gut(n,c);break;case 267:jut(n,c);break;case 262:case 218:case 219:case 174:case 177:case 178:Vut(e.getTypeChecker(),n,c);break;case 263:case 231:Hut(n,c);break;case 175:Uut(n,c);break;default:re.assertNever(n)}return i}function $ut(e,n){return{to:e,fromSpans:n}}function qut(e,n){return $ut(EDe(e,n[0].declaration),Vn(n,i=>PP(i.range)))}function Kut(e,n){return n.flags&33554432||pg(n)?[]:BD(Jut(e,n),ADe,i=>qut(e,i))}var Xut=G({"src/services/callHierarchy.ts"(){xl()}}),Jj={};Oe(Jj,{createCallHierarchyItem:()=>EDe,getIncomingCalls:()=>Hqe,getOutgoingCalls:()=>Kut,resolveCallHierarchyDeclaration:()=>IOe});var Yut=G({"src/services/_namespaces/ts.CallHierarchy.ts"(){Xut()}}),Jqe={};Oe(Jqe,{TokenEncodingConsts:()=>See,TokenModifier:()=>lDe,TokenType:()=>cDe,getEncodedSemanticClassifications:()=>sDe,getSemanticClassifications:()=>aDe});var Dq=G({"src/services/_namespaces/ts.classifier.v2020.ts"(){TOe()}}),kOe={};Oe(kOe,{v2020:()=>Jqe});var $qe=G({"src/services/_namespaces/ts.classifier.ts"(){Dq()}});function xI(e,n,i){return mC(e,$3(i),n,void 0,void 0)}function Rd(e,n,i,c,u,d){return mC(e,$3(i),n,c,$3(u),d)}function POe(e,n,i,c,u,d){return mC(e,$3(i),n,c,u&&$3(u),d)}function mC(e,n,i,c,u,d){return{fixName:e,description:n,changes:i,fixId:c,fixAllDescription:u,commands:d?[d]:void 0}}function Hc(e){for(const n of e.errorCodes)CDe=void 0,Km.add(String(n),e);if(e.fixIds)for(const n of e.fixIds)re.assert(!LF.has(n)),LF.set(n,e)}function NOe(){return CDe??(CDe=oc(Km.keys()))}function wOe(e,n){const{errorCodes:i}=e;let c=0;for(const d of n)if(ni(i,d.code)&&c++,c>1)break;const u=c<2;return({fixId:d,fixAllDescription:h,...S})=>u?S:{...S,fixId:d,fixAllDescription:h}}function up(e){const n=ROe(e),i=Km.get(String(e.errorCode));return ea(i,c=>Vn(c.getCodeActions(e),wOe(c,n)))}function Qut(e){return LF.get(uc(e.fixId,As)).getAllCodeActions(e)}function Iq(e,n){return{changes:e,commands:n}}function qqe(e,n){return{fileName:e,textChanges:n}}function Sg(e,n,i){const c=[],u=zs.ChangeTracker.with(e,d=>GR(e,n,h=>i(d,h,c)));return Iq(u,c.length===0?void 0:c)}function GR(e,n,i){for(const c of ROe(e))ni(n,c.code)&&i(c)}function ROe({program:e,sourceFile:n,cancellationToken:i}){return[...e.getSemanticDiagnostics(n,i),...e.getSyntacticDiagnostics(n,i),...Ice(n,e,i)]}var Km,LF,CDe,DDe=G({"src/services/codeFixProvider.ts"(){xl(),Km=zg(),LF=new Map}});function yye(e,n,i){const c=eF(i)?he.createAsExpression(i.expression,he.createKeywordTypeNode(159)):he.createTypeAssertion(he.createKeywordTypeNode(159),i.expression);e.replaceNode(n,i.expression,c)}function IDe(e,n){if(!Cs(e))return Ua(Lf(e,n),i=>eF(i)||ph(i))}var kDe,PDe,Kqe=G({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){xl(),If(),kDe="addConvertToUnknownForNonOverlappingTypes",PDe=[N.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],Hc({errorCodes:PDe,getCodeActions:function(n){const i=IDe(n.sourceFile,n.span.start);if(i===void 0)return;const c=zs.ChangeTracker.with(n,u=>yye(u,n.sourceFile,i));return[Rd(kDe,c,N.Add_unknown_conversion_for_non_overlapping_types,kDe,N.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[kDe],getAllCodeActions:e=>Sg(e,PDe,(n,i)=>{const c=IDe(i.file,i.start);c&&yye(n,i.file,c)})})}}),NDe=G({"src/services/codefixes/addEmptyExportDeclaration.ts"(){xl(),If(),Hc({errorCodes:[N.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,N.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,N.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(n){const{sourceFile:i}=n,c=zs.ChangeTracker.with(n,u=>{const d=he.createExportDeclaration(void 0,!1,he.createNamedExports([]),void 0);u.insertNodeAtEndOfScope(i,i,d)});return[xI("addEmptyExportDeclaration",c,N.Add_export_to_make_this_file_into_a_module)]}})}});function wDe(e,n,i,c){const u=i(d=>Zut(d,e.sourceFile,n,c));return Rd(RDe,u,N.Add_async_modifier_to_containing_function,RDe,N.Add_all_missing_async_modifiers)}function Zut(e,n,i,c){if(c&&c.has(vm(i)))return;c==null||c.add(vm(i));const u=he.replaceModifiers(ih(i,!0),he.createNodeArray(he.createModifiersFromModifierFlags(ZC(i)|1024)));e.replaceNode(n,i,u)}function Xqe(e,n){if(!n)return;const i=Lf(e,n.start);return Ua(i,u=>u.getStart(e)Xy(n)?"quit":($m(u)||tm(u)||Jm(u)||mg(u))&&C1(n,sT(u,e)))}function Yqe(e,n){return({start:i,length:c,relatedInformation:u,code:d})=>U1(i)&&U1(c)&&C1({start:i,length:c},e)&&d===n&&!!u&>(u,h=>h.code===N.Did_you_mean_to_mark_this_function_as_async.code)}var RDe,MDe,eft=G({"src/services/codefixes/addMissingAsync.ts"(){xl(),If(),RDe="addMissingAsync",MDe=[N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Type_0_is_not_assignable_to_type_1.code,N.Type_0_is_not_comparable_to_type_1.code],Hc({fixIds:[RDe],errorCodes:MDe,getCodeActions:function(n){const{sourceFile:i,errorCode:c,cancellationToken:u,program:d,span:h}=n,S=lr(d.getTypeChecker().getDiagnostics(i,u),Yqe(h,c)),E=S&&S.relatedInformation&&lr(S.relatedInformation,F=>F.code===N.Did_you_mean_to_mark_this_function_as_async.code),P=Xqe(i,E);return P?[wDe(n,P,F=>zs.ChangeTracker.with(n,F))]:void 0},getAllCodeActions:e=>{const{sourceFile:n}=e,i=new Set;return Sg(e,MDe,(c,u)=>{const d=u.relatedInformation&&lr(u.relatedInformation,E=>E.code===N.Did_you_mean_to_mark_this_function_as_async.code),h=Xqe(n,d);return h?wDe(e,h,E=>(E(c),[]),i):void 0})}})}});function vye(e,n,i,c,u){const d=FAe(e,i);return d&&Zqe(e,n,i,c,u)&&nKe(d)?d:void 0}function LDe(e,n,i,c,u,d){const{sourceFile:h,program:S,cancellationToken:E}=e,P=eKe(n,h,E,S,c);if(P){const k=u(F=>{Ot(P.initializers,({expression:$})=>MOe(F,i,h,c,$,d)),d&&P.needsSecondPassForFixAll&&MOe(F,i,h,c,n,d)});return xI("addMissingAwaitToInitializer",k,P.initializers.length===1?[N.Add_await_to_initializer_for_0,P.initializers[0].declarationSymbol.name]:N.Add_await_to_initializers)}}function Qqe(e,n,i,c,u,d){const h=u(S=>MOe(S,i,e.sourceFile,c,n,d));return Rd(bye,h,N.Add_await,bye,N.Fix_all_expressions_possibly_missing_await)}function Zqe(e,n,i,c,u){const h=u.getTypeChecker().getDiagnostics(e,c);return gt(h,({start:S,length:E,relatedInformation:P,code:k})=>U1(S)&&U1(E)&&C1({start:S,length:E},i)&&k===n&&!!P&>(P,F=>F.code===N.Did_you_forget_to_use_await.code))}function eKe(e,n,i,c,u){const d=tKe(e,u);if(!d)return;let h=d.isCompleteFix,S;for(const E of d.identifiers){const P=u.getSymbolAtLocation(E);if(!P)continue;const k=to(P.valueDeclaration,Kc),F=k&&to(k.name,xn),$=oC(k,243);if(!k||!$||k.type||!k.initializer||$.getSourceFile()!==n||ul($,32)||!F||!nKe(k.initializer)){h=!1;continue}const J=c.getSemanticDiagnostics(n,i);if(Wf.Core.eachSymbolReferenceInFile(F,u,n,ie=>E!==ie&&!tft(ie,J,n,u))){h=!1;continue}(S||(S=[])).push({expression:k.initializer,declarationSymbol:P})}return S&&{initializers:S,needsSecondPassForFixAll:!h}}function tKe(e,n){if(Ac(e.parent)&&xn(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(xn(e))return{identifiers:[e],isCompleteFix:!0};if(Ds(e)){let i,c=!0;for(const u of[e.left,e.right]){const d=n.getTypeAtLocation(u);if(n.getPromisedTypeOfPromise(d)){if(!xn(u)){c=!1;continue}(i||(i=[])).push(u)}}return i&&{identifiers:i,isCompleteFix:c}}}function tft(e,n,i,c){const u=Ac(e.parent)?e.parent.name:Ds(e.parent)?e.parent:e,d=lr(n,h=>h.start===u.getStart(i)&&h.start+h.length===u.getEnd());return d&&ni(Iee,d.code)||c.getTypeAtLocation(u).flags&1}function nKe(e){return e.flags&65536||!!Ua(e,n=>n.parent&&$m(n.parent)&&n.parent.body===n||Ou(n)&&(n.parent.kind===262||n.parent.kind===218||n.parent.kind===219||n.parent.kind===174))}function MOe(e,n,i,c,u,d){if(Bx(u.parent)&&!u.parent.awaitModifier){const h=c.getTypeAtLocation(u),S=c.getAsyncIterableType();if(S&&c.isTypeAssignableTo(h,S)){const E=u.parent;e.replaceNode(i,E,he.updateForOfStatement(E,he.createToken(135),E.initializer,E.expression,E.statement));return}}if(Ds(u))for(const h of[u.left,u.right]){if(d&&xn(h)){const P=c.getSymbolAtLocation(h);if(P&&d.has($d(P)))continue}const S=c.getTypeAtLocation(h),E=c.getPromisedTypeOfPromise(S)?he.createAwaitExpression(h):h;e.replaceNode(i,h,E)}else if(n===Tye&&Ac(u.parent)){if(d&&xn(u.parent.expression)){const h=c.getSymbolAtLocation(u.parent.expression);if(h&&d.has($d(h)))return}e.replaceNode(i,u.parent.expression,he.createParenthesizedExpression(he.createAwaitExpression(u.parent.expression))),rKe(e,u.parent.expression,i)}else if(ni(ODe,n)&&sk(u.parent)){if(d&&xn(u)){const h=c.getSymbolAtLocation(u);if(h&&d.has($d(h)))return}e.replaceNode(i,u,he.createParenthesizedExpression(he.createAwaitExpression(u))),rKe(e,u,i)}else{if(d&&Kc(u.parent)&&xn(u.parent.name)){const h=c.getSymbolAtLocation(u.parent.name);if(h&&!m2(d,$d(h)))return}e.replaceNode(i,u,he.createAwaitExpression(u))}}function rKe(e,n,i){const c=bv(n.pos,i);c&&pce(c.end,c.parent,i)&&e.insertText(i,n.getStart(i),";")}var bye,Tye,ODe,Iee,LOe=G({"src/services/codefixes/addMissingAwait.ts"(){xl(),If(),bye="addMissingAwait",Tye=N.Property_0_does_not_exist_on_type_1.code,ODe=[N.This_expression_is_not_callable.code,N.This_expression_is_not_constructable.code],Iee=[N.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,N.Operator_0_cannot_be_applied_to_type_1.code,N.Operator_0_cannot_be_applied_to_types_1_and_2.code,N.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,N.This_condition_will_always_return_true_since_this_0_is_always_defined.code,N.Type_0_is_not_an_array_type.code,N.Type_0_is_not_an_array_type_or_a_string_type.code,N.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,N.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,N.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Tye,...ODe],Hc({fixIds:[bye],errorCodes:Iee,getCodeActions:function(n){const{sourceFile:i,errorCode:c,span:u,cancellationToken:d,program:h}=n,S=vye(i,c,u,d,h);if(!S)return;const E=n.program.getTypeChecker(),P=k=>zs.ChangeTracker.with(n,k);return uN([LDe(n,S,c,E,P),Qqe(n,S,c,E,P)])},getAllCodeActions:e=>{const{sourceFile:n,program:i,cancellationToken:c}=e,u=e.program.getTypeChecker(),d=new Set;return Sg(e,Iee,(h,S)=>{const E=vye(n,S.code,S,c,i);if(!E)return;const P=k=>(k(h),[]);return LDe(e,E,S.code,u,P,d)||Qqe(e,E,S.code,u,P,d)})}})}});function FDe(e,n,i,c,u){const d=Lf(n,i),h=Ua(d,P=>Hz(P.parent)?P.parent.initializer===P:nft(P)?!1:"quit");if(h)return kee(e,h,n,u);const S=d.parent;if(Ds(S)&&S.operatorToken.kind===64&&kb(S.parent))return kee(e,d,n,u);if(Ed(S)){const P=c.getTypeChecker();return jr(S.elements,k=>iKe(k,P))?kee(e,S,n,u):void 0}const E=Ua(d,P=>kb(P.parent)?!0:WDe(P)?!1:"quit");if(E){const P=c.getTypeChecker();return oKe(E,P)?kee(e,E,n,u):void 0}}function kee(e,n,i,c){(!c||m2(c,n))&&e.insertModifierBefore(i,87,n)}function nft(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function iKe(e,n){const i=xn(e)?e:Zv(e,!0)&&xn(e.left)?e.left:void 0;return!!i&&!n.getSymbolAtLocation(i)}function WDe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function oKe(e,n){return Ds(e)?e.operatorToken.kind===28?jr([e.left,e.right],i=>oKe(i,n)):e.operatorToken.kind===64&&xn(e.left)&&!n.getSymbolAtLocation(e.left):!1}var BDe,OOe,aKe=G({"src/services/codefixes/addMissingConst.ts"(){xl(),If(),BDe="addMissingConst",OOe=[N.Cannot_find_name_0.code,N.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Hc({errorCodes:OOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>FDe(c,n.sourceFile,n.span.start,n.program));if(i.length>0)return[Rd(BDe,i,N.Add_const_to_unresolved_variable,BDe,N.Add_const_to_all_unresolved_variables)]},fixIds:[BDe],getAllCodeActions:e=>{const n=new Set;return Sg(e,OOe,(i,c)=>FDe(i,c.file,c.start,e.program,n))}})}});function Sye(e,n,i,c){const u=Lf(n,i);if(!xn(u))return;const d=u.parent;d.kind===172&&(!c||m2(c,d))&&e.insertModifierBefore(n,138,d)}var ple,FOe,sKe=G({"src/services/codefixes/addMissingDeclareProperty.ts"(){xl(),If(),ple="addMissingDeclareProperty",FOe=[N.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],Hc({errorCodes:FOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>Sye(c,n.sourceFile,n.span.start));if(i.length>0)return[Rd(ple,i,N.Prefix_with_declare,ple,N.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ple],getAllCodeActions:e=>{const n=new Set;return Sg(e,FOe,(i,c)=>Sye(i,c.file,c.start,n))}})}});function Eye(e,n,i){const c=Lf(n,i),u=Ua(c,Jh);re.assert(!!u,"Expected position to be owned by a decorator.");const d=he.createCallExpression(u.expression,void 0,void 0);e.replaceNode(n,u.expression,d)}var mle,WOe,cKe=G({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){xl(),If(),mle="addMissingInvocationForDecorator",WOe=[N._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Hc({errorCodes:WOe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>Eye(c,n.sourceFile,n.span.start));return[Rd(mle,i,N.Call_decorator_expression,mle,N.Add_to_all_uncalled_decorators)]},fixIds:[mle],getAllCodeActions:e=>Sg(e,WOe,(n,i)=>Eye(n,i.file,i.start))})}});function xye(e,n,i){const c=Lf(n,i),u=c.parent;if(!Os(u))return re.fail("Tried to add a parameter name to a non-parameter: "+re.formatSyntaxKind(c.kind));const d=u.parent.parameters.indexOf(u);re.assert(!u.type,"Tried to add a parameter name to a parameter that already had one."),re.assert(d>-1,"Parameter not found in parent parameter list.");let h=u.name.getEnd(),S=he.createTypeReferenceNode(u.name,void 0),E=zDe(n,u);for(;E;)S=he.createArrayTypeNode(S),h=E.getEnd(),E=zDe(n,E);const P=he.createParameterDeclaration(u.modifiers,u.dotDotDotToken,"arg"+d,u.questionToken,u.dotDotDotToken&&!GY(S)?he.createArrayTypeNode(S):S,u.initializer);e.replaceRange(n,tv(u.getStart(n),h),P)}function zDe(e,n){const i=N6(n.name,n.parent,e);if(i&&i.kind===23&&Wd(i.parent)&&Os(i.parent.parent))return i.parent.parent}var GDe,jDe,VDe=G({"src/services/codefixes/addNameToNamelessParameter.ts"(){xl(),If(),GDe="addNameToNamelessParameter",jDe=[N.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Hc({errorCodes:jDe,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>xye(c,n.sourceFile,n.span.start));return[Rd(GDe,i,N.Add_parameter_name,GDe,N.Add_names_to_all_parameters_without_names)]},fixIds:[GDe],getAllCodeActions:e=>Sg(e,jDe,(n,i)=>xye(n,i.file,i.start))})}});function BOe(e,n,i){var c,u;const d=lKe(FAe(e,n),i);if(!d)return Yn;const{source:h,target:S}=d,E=rft(h,S,i)?i.getTypeAtLocation(S.expression):i.getTypeAtLocation(S);return(u=(c=E.symbol)==null?void 0:c.declarations)!=null&&u.some(P=>ts(P).fileName.match(/\.d\.ts$/))?Yn:i.getExactOptionalProperties(E)}function rft(e,n,i){return Ac(n)&&!!i.getExactOptionalProperties(i.getTypeAtLocation(n.expression)).length&&i.getTypeAtLocation(e)===i.getUndefinedType()}function lKe(e,n){var i;if(e){if(Ds(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Kc(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(xd(e.parent)){const c=n.getSymbolAtLocation(e.parent.expression);if(!(c!=null&&c.valueDeclaration)||!S_(c.valueDeclaration.kind)||!kr(e))return;const u=e.parent.arguments.indexOf(e);if(u===-1)return;const d=c.valueDeclaration.parameters[u].name;if(xn(d))return{source:e,target:d}}else if(tl(e.parent)&&xn(e.parent.name)||XE(e.parent)){const c=lKe(e.parent.parent,n);if(!c)return;const u=n.getPropertyOfType(n.getTypeAtLocation(c.target),e.parent.name.text),d=(i=u==null?void 0:u.declarations)==null?void 0:i[0];return d?{source:tl(e.parent)?e.parent.initializer:e.parent.name,target:d}:void 0}}else return}function ift(e,n){for(const i of n){const c=i.valueDeclaration;if(c&&(em(c)||nu(c))&&c.type){const u=he.createUnionTypeNode([...c.type.kind===192?c.type.types:[c.type],he.createTypeReferenceNode("undefined")]);e.replaceNode(c.getSourceFile(),c.type,u)}}}var UDe,uKe,zOe=G({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){xl(),If(),UDe="addOptionalPropertyUndefined",uKe=[N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,N.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],Hc({errorCodes:uKe,getCodeActions(e){const n=e.program.getTypeChecker(),i=BOe(e.sourceFile,e.span,n);if(!i.length)return;const c=zs.ChangeTracker.with(e,u=>ift(u,i));return[xI(UDe,c,N.Add_undefined_to_optional_property_type)]},fixIds:[UDe]})}});function GOe(e,n){const i=Lf(e,n);return to(Os(i.parent)?i.parent.parent:i.parent,fKe)}function fKe(e){return _Ke(e)&&jOe(e)}function jOe(e){return Vd(e)?e.parameters.some(jOe)||!e.type&&!!GX(e):!e.type&&!!iR(e)}function VOe(e,n,i){if(Vd(i)&&(GX(i)||i.parameters.some(c=>!!iR(c)))){if(!i.typeParameters){const u=SY(i);u.length&&e.insertTypeParameters(n,i,u)}const c=$m(i)&&!qm(i,21,n);c&&e.insertNodeBefore(n,Dl(i.parameters),he.createToken(21));for(const u of i.parameters)if(!u.type){const d=iR(u);d&&e.tryInsertTypeAnnotation(n,u,Bn(d,Q3,pc))}if(c&&e.insertNodeAfter(n,yl(i.parameters),he.createToken(22)),!i.type){const u=GX(i);u&&e.tryInsertTypeAnnotation(n,i,Bn(u,Q3,pc))}}else{const c=re.checkDefined(iR(i),"A JSDocType for this declaration should exist");re.assert(!i.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(n,i,Bn(c,Q3,pc))}}function _Ke(e){return Vd(e)||e.kind===260||e.kind===171||e.kind===172}function Q3(e){switch(e.kind){case 319:case 320:return he.createTypeReferenceNode("any",Yn);case 323:return OF(e);case 322:return Q3(e.type);case 321:return aft(e);case 325:return sft(e);case 324:return cft(e);case 183:return uft(e);case 329:return oft(e);default:const n=Xo(e,Q3,sx);return _s(n,1),n}}function oft(e){const n=he.createTypeLiteralNode(Vn(e.jsDocPropertyTags,i=>he.createPropertySignature(void 0,xn(i.name)?i.name:i.name.right,rW(i)?he.createToken(58):void 0,i.typeExpression&&Bn(i.typeExpression.type,Q3,pc)||he.createKeywordTypeNode(133))));return _s(n,1),n}function OF(e){return he.createUnionTypeNode([Bn(e.type,Q3,pc),he.createTypeReferenceNode("undefined",Yn)])}function aft(e){return he.createUnionTypeNode([Bn(e.type,Q3,pc),he.createTypeReferenceNode("null",Yn)])}function sft(e){return he.createArrayTypeNode(Bn(e.type,Q3,pc))}function cft(e){return he.createFunctionTypeNode(Yn,e.parameters.map(lft),e.type??he.createKeywordTypeNode(133))}function lft(e){const n=e.parent.parameters.indexOf(e),i=e.type.kind===325&&n===e.parent.parameters.length-1,c=e.name||(i?"rest":"arg"+n),u=i?he.createToken(26):e.dotDotDotToken;return he.createParameterDeclaration(e.modifiers,u,c,e.questionToken,Bn(e.type,Q3,pc),e.initializer)}function uft(e){let n=e.typeName,i=e.typeArguments;if(xn(e.typeName)){if(uY(e))return fft(e);let c=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":c=c.toLowerCase();break;case"array":case"date":case"promise":c=c[0].toUpperCase()+c.slice(1);break}n=he.createIdentifier(c),(c==="Array"||c==="Promise")&&!e.typeArguments?i=he.createNodeArray([he.createTypeReferenceNode("any",Yn)]):i=Wa(e.typeArguments,Q3,pc)}return he.createTypeReferenceNode(n,i)}function fft(e){const n=he.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,he.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),i=he.createTypeLiteralNode([he.createIndexSignature(void 0,[n],e.typeArguments[1])]);return _s(i,1),i}var HDe,UOe,JDe=G({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){xl(),If(),HDe="annotateWithTypeFromJSDoc",UOe=[N.JSDoc_types_may_be_moved_to_TypeScript_types.code],Hc({errorCodes:UOe,getCodeActions(e){const n=GOe(e.sourceFile,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,c=>VOe(c,e.sourceFile,n));return[Rd(HDe,i,N.Annotate_with_type_from_JSDoc,HDe,N.Annotate_everything_with_types_from_JSDoc)]},fixIds:[HDe],getAllCodeActions:e=>Sg(e,UOe,(n,i)=>{const c=GOe(i.file,i.start);c&&VOe(n,i.file,c)})})}});function $De(e,n,i,c,u,d){const h=c.getSymbolAtLocation(Lf(n,i));if(!h||!h.valueDeclaration||!(h.flags&19))return;const S=h.valueDeclaration;if(mg(S)||Jm(S))e.replaceNode(n,S,k(S));else if(Kc(S)){const F=P(S);if(!F)return;const $=S.parent.parent;Kp(S.parent)&&S.parent.declarations.length>1?(e.delete(n,S),e.insertNodeAfter(n,$,F)):e.replaceNode(n,$,F)}function E(F){const $=[];return F.exports&&F.exports.forEach(ie=>{if(ie.name==="prototype"&&ie.declarations){const ae=ie.declarations[0];if(ie.declarations.length===1&&Ac(ae)&&Ds(ae.parent)&&ae.parent.operatorToken.kind===64&&el(ae.parent.right)){const ve=ae.parent.right;X(ve.symbol,void 0,$)}}else X(ie,[he.createToken(126)],$)}),F.members&&F.members.forEach((ie,ae)=>{var ve,we,Fe,et;if(ae==="constructor"&&ie.valueDeclaration){const Pe=(et=(Fe=(we=(ve=F.exports)==null?void 0:ve.get("prototype"))==null?void 0:we.declarations)==null?void 0:Fe[0])==null?void 0:et.parent;Pe&&Ds(Pe)&&el(Pe.right)&>(Pe.right.properties,Aye)||e.delete(n,ie.valueDeclaration.parent);return}X(ie,void 0,$)}),$;function J(ie,ae){return Kf(ie)?Ac(ie)&&Aye(ie)?!0:F_(ae):jr(ie.properties,ve=>!!(tm(ve)||Gz(ve)||tl(ve)&&Jm(ve.initializer)&&ve.name||Aye(ve)))}function X(ie,ae,ve){if(!(ie.flags&8192)&&!(ie.flags&4096))return;const we=ie.valueDeclaration,Fe=we.parent,et=Fe.right;if(!J(we,et)||gt(ve,Ct=>{const Lt=i_(Ct);return!!(Lt&&xn(Lt)&&Kr(Lt)===Il(ie))}))return;const Pe=Fe.parent&&Fe.parent.kind===244?Fe.parent:Fe;if(e.delete(n,Pe),!et){ve.push(he.createPropertyDeclaration(ae,ie.name,void 0,void 0,void 0));return}if(Kf(we)&&(Jm(et)||$m(et))){const Ct=OS(n,u),Lt=KDe(we,d,Ct);Lt&&dt(ve,et,Lt);return}else if(el(et)){Ot(et.properties,Ct=>{(tm(Ct)||Gz(Ct))&&ve.push(Ct),tl(Ct)&&Jm(Ct.initializer)&&dt(ve,Ct.initializer,Ct.name),Aye(Ct)});return}else{if(Gy(n)||!Ac(we))return;const Ct=he.createPropertyDeclaration(ae,we.name,void 0,void 0,et);rB(Fe.parent,Ct,n),ve.push(Ct);return}function dt(Ct,Lt,Ze){return Jm(Lt)?Ie(Ct,Lt,Ze):ct(Ct,Lt,Ze)}function Ie(Ct,Lt,Ze){const Ke=Hi(ae,qDe(Lt,134)),st=he.createMethodDeclaration(Ke,void 0,Ze,void 0,void 0,Lt.parameters,void 0,Lt.body);rB(Fe,st,n),Ct.push(st)}function ct(Ct,Lt,Ze){const Ke=Lt.body;let st;Ke.kind===241?st=Ke:st=he.createBlock([he.createReturnStatement(Ke)]);const It=Hi(ae,qDe(Lt,134)),Yt=he.createMethodDeclaration(It,void 0,Ze,void 0,void 0,Lt.parameters,void 0,st);rB(Fe,Yt,n),Ct.push(Yt)}}}function P(F){const $=F.initializer;if(!$||!Jm($)||!xn(F.name))return;const J=E(F.symbol);$.body&&J.unshift(he.createConstructorDeclaration(void 0,$.parameters,$.body));const X=qDe(F.parent.parent,95);return he.createClassDeclaration(X,F.name,void 0,void 0,J)}function k(F){const $=E(h);F.body&&$.unshift(he.createConstructorDeclaration(void 0,F.parameters,F.body));const J=qDe(F,95);return he.createClassDeclaration(J,F.name,void 0,void 0,$)}}function qDe(e,n){return DA(e)?gi(e.modifiers,i=>i.kind===n):void 0}function Aye(e){return e.name?!!(xn(e.name)&&e.name.text==="constructor"):!1}function KDe(e,n,i){if(Ac(e))return e.name;const c=e.argumentExpression;if(S1(c))return c;if(Cm(c))return H2(c.text,iu(n))?he.createIdentifier(c.text):K7(c)?he.createStringLiteral(c.text,i===0):c}var Pee,HOe,XDe=G({"src/services/codefixes/convertFunctionToEs6Class.ts"(){xl(),If(),Pee="convertFunctionToEs6Class",HOe=[N.This_constructor_function_may_be_converted_to_a_class_declaration.code],Hc({errorCodes:HOe,getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>$De(i,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Rd(Pee,n,N.Convert_function_to_an_ES2015_class,Pee,N.Convert_all_constructor_functions_to_classes)]},fixIds:[Pee],getAllCodeActions:e=>Sg(e,HOe,(n,i)=>$De(n,i.file,i.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function YDe(e,n,i,c){const u=Lf(n,i);let d;if(xn(u)&&Kc(u.parent)&&u.parent.initializer&&Vd(u.parent.initializer)?d=u.parent.initializer:d=to(zE(Lf(n,i)),pCe),!d)return;const h=new Map,S=Cs(d),E=dKe(d,c),P=QDe(d,c,h);if(!kce(P,c))return;const k=P.body&&Ou(P.body)?_ft(P.body,c):Yn,F={checker:c,synthNamesMap:h,setOfExpressionsToReturn:E,isInJSFile:S};if(!k.length)return;const $=Ff(n.text,Db(d).pos);e.insertModifierAt(n,$,134,{suffix:" "});for(const J of k)if(s_(J,function X(ie){if(xd(ie)){const ae=iw(ie,ie,F,!1);if(qj())return!0;e.replaceNodeWithNodes(n,J,ae)}else if(!F_(ie)&&(s_(ie,X),qj()))return!0}),qj())return}function _ft(e,n){const i=[];return dR(e,c=>{Pce(c,n)&&i.push(c)}),i}function dKe(e,n){if(!e.body)return new Set;const i=new Set;return s_(e.body,function c(u){gle(u,n,"then")?(i.add(vm(u)),Ot(u.arguments,c)):gle(u,n,"catch")||gle(u,n,"finally")?(i.add(vm(u)),s_(u,c)):JOe(u,n)?i.add(vm(u)):s_(u,c)}),i}function gle(e,n,i){if(!xd(e))return!1;const u=Ej(e,i)&&n.getTypeAtLocation(e);return!!(u&&n.getPromisedTypeOfPromise(u))}function pKe(e,n){return(ji(e)&4)!==0&&e.target===n}function $j(e,n,i){if(e.expression.name.escapedText==="finally")return;const c=i.getTypeAtLocation(e.expression.expression);if(pKe(c,i.getPromiseType())||pKe(c,i.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(n===Zn(e.arguments,0))return Zn(e.typeArguments,0);if(n===Zn(e.arguments,1))return Zn(e.typeArguments,1)}else return Zn(e.typeArguments,0)}function JOe(e,n){return kr(e)?!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(e)):!1}function QDe(e,n,i){const c=new Map,u=zg();return s_(e,function d(h){if(!xn(h)){s_(h,d);return}const S=n.getSymbolAtLocation(h);if(S){const E=n.getTypeAtLocation(h),P=tIe(E,n),k=$d(S).toString();if(P&&!Os(h.parent)&&!Vd(h.parent)&&!i.has(k)){const F=pp(P.parameters),$=(F==null?void 0:F.valueDeclaration)&&Os(F.valueDeclaration)&&to(F.valueDeclaration.name,xn)||he.createUniqueName("result",16),J=$Oe($,u);i.set(k,J),u.add($.text,S)}else if(h.parent&&(Os(h.parent)||Kc(h.parent)||sa(h.parent))){const F=h.text,$=u.get(F);if($&&$.some(J=>J!==S)){const J=$Oe(h,u);c.set(k,J.identifier),i.set(k,J),u.add(F,S)}else{const J=ih(h);i.set(k,Pq(J)),u.add(F,S)}}}}),cce(e,!0,d=>{if(sa(d)&&xn(d.name)&&Ch(d.parent)){const h=n.getSymbolAtLocation(d.name),S=h&&c.get(String($d(h)));if(S&&S.text!==(d.name||d.propertyName).getText())return he.createBindingElement(d.dotDotDotToken,d.propertyName||d.name,S,d.initializer)}else if(xn(d)){const h=n.getSymbolAtLocation(d),S=h&&c.get(String($d(h)));if(S)return he.createIdentifier(S.text)}})}function $Oe(e,n){const i=(n.get(e.text)||Yn).length,c=i===0?e:he.createIdentifier(e.text+"_"+i);return Pq(c)}function qj(){return!wq}function S4(){return wq=!1,Yn}function iw(e,n,i,c,u){if(gle(n,i.checker,"then"))return dft(n,Zn(n.arguments,0),Zn(n.arguments,1),i,c,u);if(gle(n,i.checker,"catch"))return qOe(n,Zn(n.arguments,0),i,c,u);if(gle(n,i.checker,"finally"))return gKe(n,Zn(n.arguments,0),i,c,u);if(Ac(n))return iw(e,n.expression,i,c,u);const d=i.checker.getTypeAtLocation(n);return d&&i.checker.getPromisedTypeOfPromise(d)?(re.assertNode(Gg(n).parent,Ac),hKe(e,n,i,c,u)):S4()}function jR({checker:e},n){if(n.kind===106)return!0;if(xn(n)&&!$g(n)&&Kr(n)==="undefined"){const i=e.getSymbolAtLocation(n);return!i||e.isUndefinedSymbol(i)}return!1}function kq(e){const n=he.createUniqueName(e.identifier.text,16);return Pq(n)}function Cye(e,n,i){let c;return i&&!FF(e,n)&&(wee(i)?(c=i,n.synthNamesMap.forEach((u,d)=>{if(u.identifier.text===i.identifier.text){const h=kq(i);n.synthNamesMap.set(d,h)}})):c=Pq(he.createUniqueName("result",16),i.types),Nee(c)),c}function mKe(e,n,i,c,u){const d=[];let h;if(c&&!FF(e,n)){h=ih(Nee(c));const S=c.types,E=n.checker.getUnionType(S,2),P=n.isInJSFile?void 0:n.checker.typeToTypeNode(E,void 0,void 0),k=[he.createVariableDeclaration(h,void 0,P)],F=he.createVariableStatement(void 0,he.createVariableDeclarationList(k,1));d.push(F)}return d.push(i),u&&h&&QOe(u)&&d.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(nIe(u)),void 0,void 0,h)],2))),d}function gKe(e,n,i,c,u){if(!n||jR(i,n))return iw(e,e.expression.expression,i,c,u);const d=Cye(e,i,u),h=iw(e,e.expression.expression,i,!0,d);if(qj())return S4();const S=hle(n,c,void 0,void 0,e,i);if(qj())return S4();const E=he.createBlock(h),P=he.createBlock(S),k=he.createTryStatement(E,void 0,P);return mKe(e,i,k,d,u)}function qOe(e,n,i,c,u){if(!n||jR(i,n))return iw(e,e.expression.expression,i,c,u);const d=vKe(n,i),h=Cye(e,i,u),S=iw(e,e.expression.expression,i,!0,h);if(qj())return S4();const E=hle(n,c,h,d,e,i);if(qj())return S4();const P=he.createBlock(S),k=he.createCatchClause(d&&ih(Dye(d)),he.createBlock(E)),F=he.createTryStatement(P,k,void 0);return mKe(e,i,F,h,u)}function dft(e,n,i,c,u,d){if(!n||jR(c,n))return qOe(e,i,c,u,d);if(i&&!jR(c,i))return S4();const h=vKe(n,c),S=iw(e.expression.expression,e.expression.expression,c,!0,h);if(qj())return S4();const E=hle(n,u,d,h,e,c);return qj()?S4():Hi(S,E)}function hKe(e,n,i,c,u){if(FF(e,i)){let d=ih(n);return c&&(d=he.createAwaitExpression(d)),[he.createReturnStatement(d)]}return ZDe(u,he.createAwaitExpression(n),void 0)}function ZDe(e,n,i){return!e||YOe(e)?[he.createExpressionStatement(n)]:wee(e)&&e.hasBeenDeclared?[he.createExpressionStatement(he.createAssignment(ih(Kj(e)),n))]:[he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(ih(Dye(e)),void 0,i,n)],2))]}function KOe(e,n){if(n&&e){const i=he.createUniqueName("result",16);return[...ZDe(Pq(i),e,n),he.createReturnStatement(i)]}return[he.createReturnStatement(e)]}function hle(e,n,i,c,u,d){var h;switch(e.kind){case 106:break;case 211:case 80:if(!c)break;const S=he.createCallExpression(ih(e),void 0,wee(c)?[Kj(c)]:[]);if(FF(u,d))return KOe(S,$j(u,e,d.checker));const E=d.checker.getTypeAtLocation(e),P=d.checker.getSignaturesOfType(E,0);if(!P.length)return S4();const k=P[0].getReturnType(),F=ZDe(i,he.createAwaitExpression(S),$j(u,e,d.checker));return i&&i.types.push(d.checker.getAwaitedType(k)||k),F;case 218:case 219:{const $=e.body,J=(h=tIe(d.checker.getTypeAtLocation(e),d.checker))==null?void 0:h.getReturnType();if(Ou($)){let X=[],ie=!1;for(const ae of $.statements)if(iS(ae))if(ie=!0,Pce(ae,d.checker))X=X.concat(XOe(d,ae,n,i));else{const ve=J&&ae.expression?eIe(d.checker,J,ae.expression):ae.expression;X.push(...KOe(ve,$j(u,e,d.checker)))}else{if(n&&dR(ae,xT))return S4();X.push(ae)}return FF(u,d)?X.map(ae=>ih(ae)):yKe(X,i,d,ie)}else{const X=fCe($,d.checker)?XOe(d,he.createReturnStatement($),n,i):Yn;if(X.length>0)return X;if(J){const ie=eIe(d.checker,J,$);if(FF(u,d))return KOe(ie,$j(u,e,d.checker));{const ae=ZDe(i,ie,void 0);return i&&i.types.push(d.checker.getAwaitedType(J)||J),ae}}else return S4()}}default:return S4()}return Yn}function eIe(e,n,i){const c=ih(i);return e.getPromisedTypeOfPromise(n)?he.createAwaitExpression(c):c}function tIe(e,n){const i=n.getSignaturesOfType(e,0);return Yf(i)}function yKe(e,n,i,c){const u=[];for(const d of e)if(iS(d)){if(d.expression){const h=JOe(d.expression,i.checker)?he.createAwaitExpression(d.expression):d.expression;n===void 0?u.push(he.createExpressionStatement(h)):wee(n)&&n.hasBeenDeclared?u.push(he.createExpressionStatement(he.createAssignment(Kj(n),h))):u.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Dye(n),void 0,void 0,h)],2)))}}else u.push(ih(d));return!c&&n!==void 0&&u.push(he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(Dye(n),void 0,void 0,he.createIdentifier("undefined"))],2))),u}function XOe(e,n,i,c){let u=[];return s_(n,function d(h){if(xd(h)){const S=iw(h,h,e,i,c);if(u=u.concat(S),u.length>0)return}else F_(h)||s_(h,d)}),u}function vKe(e,n){const i=[];let c;if(Vd(e)){if(e.parameters.length>0){const E=e.parameters[0].name;c=u(E)}}else xn(e)?c=d(e):Ac(e)&&xn(e.name)&&(c=d(e.name));if(!c||"identifier"in c&&c.identifier.text==="undefined")return;return c;function u(E){if(xn(E))return d(E);const P=ea(E.elements,k=>cb(k)?[]:[u(k.name)]);return bKe(E,P)}function d(E){const P=S(E),k=h(P);return k&&n.synthNamesMap.get($d(k).toString())||Pq(E,i)}function h(E){var P;return((P=to(E,ck))==null?void 0:P.symbol)??n.checker.getSymbolAtLocation(E)}function S(E){return E.original?E.original:E}}function YOe(e){return e?wee(e)?!e.identifier.text:jr(e.elements,YOe):!0}function Pq(e,n=[]){return{kind:0,identifier:e,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function bKe(e,n=Yn,i=[]){return{kind:1,bindingPattern:e,elements:n,types:i}}function Kj(e){return e.hasBeenReferenced=!0,e.identifier}function Dye(e){return wee(e)?Nee(e):nIe(e)}function nIe(e){for(const n of e.elements)Dye(n);return e.bindingPattern}function Nee(e){return e.hasBeenDeclared=!0,e.identifier}function wee(e){return e.kind===0}function QOe(e){return e.kind===1}function FF(e,n){return!!e.original&&n.setOfExpressionsToReturn.has(vm(e.original))}var rIe,Nq,wq,ZOe=G({"src/services/codefixes/convertToAsyncFunction.ts"(){xl(),If(),rIe="convertToAsyncFunction",Nq=[N.This_may_be_converted_to_an_async_function.code],wq=!0,Hc({errorCodes:Nq,getCodeActions(e){wq=!0;const n=zs.ChangeTracker.with(e,i=>YDe(i,e.sourceFile,e.span.start,e.program.getTypeChecker()));return wq?[Rd(rIe,n,N.Convert_to_async_function,rIe,N.Convert_all_to_async_functions)]:[]},fixIds:[rIe],getAllCodeActions:e=>Sg(e,Nq,(n,i)=>YDe(n,i.file,i.start,e.program.getTypeChecker()))})}});function Iye(e,n,i,c,u){var d;for(const h of e.imports){const S=(d=i.getResolvedModule(e,h.text,PA(e,h)))==null?void 0:d.resolvedModule;if(!S||S.resolvedFileName!==n.fileName)continue;const E=XC(h);switch(E.kind){case 271:c.replaceNode(e,E,Nk(E.name,void 0,h,u));break;case 213:y1(E,!1)&&c.replaceNode(e,E,he.createPropertyAccessExpression(ih(E),"default"));break}}}function pft(e,n,i,c,u){const d={original:Eft(e),additional:new Set},h=mft(e,n,d);gft(e,h,i);let S=!1,E;for(const P of gi(e.statements,Xg)){const k=e7e(e,P,i,n,d,c,u);k&&oie(k,E??(E=new Map))}for(const P of gi(e.statements,k=>!Xg(k))){const k=hft(e,P,n,i,d,c,h,E,u);S=S||k}return E==null||E.forEach((P,k)=>{i.replaceNode(e,k,P)}),S}function mft(e,n,i){const c=new Map;return TKe(e,u=>{const{text:d}=u.name;!c.has(d)&&(hH(u.name)||n.resolveName(d,u,111551,!0))&&c.set(d,iIe(`_${d}`,i))}),c}function gft(e,n,i){TKe(e,(c,u)=>{if(u)return;const{text:d}=c.name;i.replaceNode(e,c,he.createIdentifier(n.get(d)||d))})}function TKe(e,n){e.forEachChild(function i(c){if(Ac(c)&&R3(e,c.expression)&&xn(c.name)){const{parent:u}=c;n(c,Ds(u)&&u.left===c&&u.operatorToken.kind===64)}c.forEachChild(i)})}function hft(e,n,i,c,u,d,h,S,E){switch(n.kind){case 243:return e7e(e,n,c,i,u,d,E),!1;case 244:{const{expression:P}=n;switch(P.kind){case 213:return y1(P,!0)&&c.replaceNode(e,n,Nk(void 0,void 0,P.arguments[0],E)),!1;case 226:{const{operatorToken:k}=P;return k.kind===64&&SKe(e,i,P,c,h,S)}}}default:return!1}}function e7e(e,n,i,c,u,d,h){const{declarationList:S}=n;let E=!1;const P=Vn(S.declarations,k=>{const{name:F,initializer:$}=k;if($){if(R3(e,$))return E=!0,_B([]);if(y1($,!0))return E=!0,Sft(F,$.arguments[0],c,u,d,h);if(Ac($)&&y1($.expression,!0))return E=!0,yft(F,$.name.text,$.expression.arguments[0],u,h)}return _B([he.createVariableStatement(void 0,he.createVariableDeclarationList([k],S.flags))])});if(E){i.replaceNodeWithNodes(e,n,ea(P,F=>F.newImports));let k;return Ot(P,F=>{F.useSitesToUnqualify&&oie(F.useSitesToUnqualify,k??(k=new Map))}),k}}function yft(e,n,i,c,u){switch(e.kind){case 206:case 207:{const d=iIe(n,c);return _B([a7e(d,n,i,u),Pye(void 0,e,he.createIdentifier(d))])}case 80:return _B([a7e(e.text,n,i,u)]);default:return re.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function SKe(e,n,i,c,u,d){const{left:h,right:S}=i;if(!Ac(h))return!1;if(R3(e,h))if(R3(e,S))c.delete(e,i.parent);else{const E=el(S)?vft(S,d):y1(S,!0)?Tft(S.arguments[0],n):void 0;return E?(c.replaceNodeWithNodes(e,i.parent,E[0]),E[1]):(c.replaceRangeWithText(e,tv(h.getStart(e),S.pos),"export default"),!0)}else R3(e,h.expression)&&bft(e,i,c,u);return!1}function vft(e,n){const i=fA(e.properties,c=>{switch(c.kind){case 177:case 178:case 304:case 305:return;case 303:return xn(c.name)?n7e(c.name.text,c.initializer,n):void 0;case 174:return xn(c.name)?o7e(c.name.text,[he.createToken(95)],c,n):void 0;default:re.assertNever(c,`Convert to ES6 got invalid prop kind ${c.kind}`)}});return i&&[i,!1]}function bft(e,n,i,c){const{text:u}=n.left.name,d=c.get(u);if(d!==void 0){const h=[Pye(void 0,d,n.right),oIe([he.createExportSpecifier(!1,d,u)])];i.replaceNodeWithNodes(e,n.parent,h)}else xKe(n,e,i)}function Tft(e,n){const i=e.text,c=n.getSymbolAtLocation(e),u=c?c.exports:ME;return u.has("export=")?[[t7e(i)],!0]:u.has("default")?u.size>1?[[EKe(i),t7e(i)],!0]:[[t7e(i)],!0]:[[EKe(i)],!1]}function EKe(e){return oIe(void 0,e)}function t7e(e){return oIe([he.createExportSpecifier(!1,void 0,"default")],e)}function xKe({left:e,right:n,parent:i},c,u){const d=e.name.text;if((Jm(n)||$m(n)||v0(n))&&(!n.name||n.name.text===d)){u.replaceRange(c,{pos:e.getStart(c),end:n.getStart(c)},he.createToken(95),{suffix:" "}),n.name||u.insertName(c,n,d);const h=qm(i,27,c);h&&u.delete(c,h)}else u.replaceNodeRangeWithNodes(c,e.expression,qm(e,25,c),[he.createToken(95),he.createToken(87)],{joiner:" ",suffix:" "})}function n7e(e,n,i){const c=[he.createToken(95)];switch(n.kind){case 218:{const{name:d}=n;if(d&&d.text!==e)return u()}case 219:return o7e(e,c,n,i);case 231:return Aft(e,c,n,i);default:return u()}function u(){return Pye(c,he.createIdentifier(e),r7e(n,i))}}function r7e(e,n){if(!n||!gt(oc(n.keys()),c=>ov(e,c)))return e;return ls(e)?tB(e,!0,i):cce(e,!0,i);function i(c){if(c.kind===211){const u=n.get(c);return n.delete(c),u}}}function Sft(e,n,i,c,u,d){switch(e.kind){case 206:{const h=fA(e.elements,S=>S.dotDotDotToken||S.initializer||S.propertyName&&!xn(S.propertyName)||!xn(S.name)?void 0:AKe(S.propertyName&&S.propertyName.text,S.name.text));if(h)return _B([Nk(void 0,h,n,d)])}case 207:{const h=iIe(Fye(n.text,u),c);return _B([Nk(he.createIdentifier(h),void 0,n,d),Pye(void 0,ih(e),he.createIdentifier(h))])}case 80:return i7e(e,n,i,c,d);default:return re.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function i7e(e,n,i,c,u){const d=i.getSymbolAtLocation(e),h=new Map;let S=!1,E;for(const k of c.original.get(e.text)){if(i.getSymbolAtLocation(k)!==d||k===e)continue;const{parent:F}=k;if(Ac(F)){const{name:{text:$}}=F;if($==="default"){S=!0;const J=k.getText();(E??(E=new Map)).set(F,he.createIdentifier(J))}else{re.assert(F.expression===k,"Didn't expect expression === use");let J=h.get($);J===void 0&&(J=iIe($,c),h.set($,J)),(E??(E=new Map)).set(F,he.createIdentifier(J))}}else S=!0}const P=h.size===0?void 0:oc(p_(h.entries(),([k,F])=>he.createImportSpecifier(!1,k===F?void 0:he.createIdentifier(k),he.createIdentifier(F))));return P||(S=!0),_B([Nk(S?ih(e):void 0,P,n,u)],E)}function iIe(e,n){for(;n.original.has(e)||n.additional.has(e);)e=`_${e}`;return n.additional.add(e),e}function Eft(e){const n=zg();return kye(e,i=>n.add(i.text,i)),n}function kye(e,n){xn(e)&&xft(e)&&n(e),e.forEachChild(i=>kye(i,n))}function xft(e){const{parent:n}=e;switch(n.kind){case 211:return n.name!==e;case 208:return n.propertyName!==e;case 276:return n.propertyName!==e;default:return!0}}function o7e(e,n,i,c){return he.createFunctionDeclaration(Hi(n,WR(i.modifiers)),ih(i.asteriskToken),e,WR(i.typeParameters),WR(i.parameters),ih(i.type),he.converters.convertToFunctionBlock(r7e(i.body,c)))}function Aft(e,n,i,c){return he.createClassDeclaration(Hi(n,WR(i.modifiers)),e,WR(i.typeParameters),WR(i.heritageClauses),r7e(i.members,c))}function a7e(e,n,i,c){return n==="default"?Nk(he.createIdentifier(e),void 0,i,c):Nk(void 0,[AKe(n,e)],i,c)}function AKe(e,n){return he.createImportSpecifier(!1,e!==void 0&&e!==n?he.createIdentifier(e):void 0,he.createIdentifier(n))}function Pye(e,n,i){return he.createVariableStatement(e,he.createVariableDeclarationList([he.createVariableDeclaration(n,void 0,void 0,i)],2))}function oIe(e,n){return he.createExportDeclaration(void 0,!1,e&&he.createNamedExports(e),n===void 0?void 0:he.createStringLiteral(n))}function _B(e,n){return{newImports:e,useSitesToUnqualify:n}}var s7e=G({"src/services/codefixes/convertToEsModule.ts"(){xl(),If(),Hc({errorCodes:[N.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:n,program:i,preferences:c}=e,u=zs.ChangeTracker.with(e,d=>{if(pft(n,i.getTypeChecker(),d,iu(i.getCompilerOptions()),OS(n,c)))for(const S of i.getSourceFiles())Iye(S,n,i,d,OS(S,c))});return[xI("convertToEsModule",u,N.Convert_to_ES_module)]}})}});function Rq(e,n){const i=Ua(Lf(e,n),Pu);return re.assert(!!i,"Expected position to be owned by a qualified name."),xn(i.left)?i:void 0}function CKe(e,n,i){const c=i.right.text,u=he.createIndexedAccessTypeNode(he.createTypeReferenceNode(i.left,void 0),he.createLiteralTypeNode(he.createStringLiteral(c)));e.replaceNode(n,i,u)}var Nye,aIe,sIe=G({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){xl(),If(),Nye="correctQualifiedNameToIndexedAccessType",aIe=[N.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],Hc({errorCodes:aIe,getCodeActions(e){const n=Rq(e.sourceFile,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,u=>CKe(u,e.sourceFile,n)),c=`${n.left.text}["${n.right.text}"]`;return[Rd(Nye,i,[N.Rewrite_as_the_indexed_access_type_0,c],Nye,N.Rewrite_all_as_indexed_access_types)]},fixIds:[Nye],getAllCodeActions:e=>Sg(e,aIe,(n,i)=>{const c=Rq(i.file,i.start);c&&CKe(n,i.file,c)})})}});function cIe(e,n){return to(Lf(n,e.start).parent,my)}function DKe(e,n,i){if(!n)return;const c=n.parent,u=c.parent,d=IKe(n,i);if(d.length===c.elements.length)e.insertModifierBefore(i.sourceFile,156,c);else{const h=he.updateExportDeclaration(u,u.modifiers,!1,he.updateNamedExports(c,gi(c.elements,E=>!ni(d,E))),u.moduleSpecifier,void 0),S=he.createExportDeclaration(void 0,!0,he.createNamedExports(d),u.moduleSpecifier,void 0);e.replaceNode(i.sourceFile,u,h,{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Exclude}),e.insertNodeAfter(i.sourceFile,u,S)}}function IKe(e,n){const i=e.parent;if(i.elements.length===1)return i.elements;const c=OAe(sT(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return gi(i.elements,u=>{var d;return u===e||((d=ahe(u,c))==null?void 0:d.code)===wye[0]})}var wye,lIe,uIe=G({"src/services/codefixes/convertToTypeOnlyExport.ts"(){xl(),If(),wye=[N.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],lIe="convertToTypeOnlyExport",Hc({errorCodes:wye,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>DKe(c,cIe(n.span,n.sourceFile),n));if(i.length)return[Rd(lIe,i,N.Convert_to_type_only_export,lIe,N.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[lIe],getAllCodeActions:function(n){const i=new Map;return Sg(n,wye,(c,u)=>{const d=cIe(u,n.sourceFile);d&&y0(i,vm(d.parent.parent))&&DKe(c,d,n)})}})}});function Rye(e,n){const{parent:i}=Lf(e,n);return qE(i)||n0(i)&&i.importClause?i:void 0}function kKe(e,n,i){if(e.parent.parent.name)return!1;const c=e.parent.elements.filter(d=>!d.isTypeOnly);if(c.length===1)return!0;const u=i.getTypeChecker();for(const d of c)if(Wf.Core.eachSymbolReferenceInFile(d.name,u,n,S=>!EA(S)))return!1;return!0}function yle(e,n,i){var c;if(qE(i))e.replaceNode(n,i,he.updateImportSpecifier(i,!0,i.propertyName,i.name));else{const u=i.importClause;if(u.name&&u.namedBindings)e.replaceNodeWithNodes(n,i,[he.createImportDeclaration(WR(i.modifiers,!0),he.createImportClause(!0,ih(u.name,!0),void 0),ih(i.moduleSpecifier,!0),ih(i.attributes,!0)),he.createImportDeclaration(WR(i.modifiers,!0),he.createImportClause(!0,void 0,ih(u.namedBindings,!0)),ih(i.moduleSpecifier,!0),ih(i.attributes,!0))]);else{const d=((c=u.namedBindings)==null?void 0:c.kind)===275?he.updateNamedImports(u.namedBindings,Ol(u.namedBindings.elements,S=>he.updateImportSpecifier(S,!1,S.propertyName,S.name))):u.namedBindings,h=he.updateImportDeclaration(i,i.modifiers,he.updateImportClause(u,!0,u.name,d),i.moduleSpecifier,i.attributes);e.replaceNode(n,i,h)}}}var fIe,Xj,c7e=G({"src/services/codefixes/convertToTypeOnlyImport.ts"(){xl(),If(),fIe=[N.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,N._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Xj="convertToTypeOnlyImport",Hc({errorCodes:fIe,getCodeActions:function(n){var i;const c=Rye(n.sourceFile,n.span.start);if(c){const u=zs.ChangeTracker.with(n,S=>yle(S,n.sourceFile,c)),d=c.kind===276&&kKe(c,n.sourceFile,n.program)?zs.ChangeTracker.with(n,S=>yle(S,n.sourceFile,c.parent.parent.parent)):void 0,h=Rd(Xj,u,c.kind===276?[N.Use_type_0,((i=c.propertyName)==null?void 0:i.text)??c.name.text]:N.Use_import_type,Xj,N.Fix_all_with_type_only_imports);return gt(d)?[xI(Xj,d,N.Use_import_type),h]:[h]}},fixIds:[Xj],getAllCodeActions:function(n){const i=new Set;return Sg(n,fIe,(c,u)=>{const d=Rye(u.file,u.start);(d==null?void 0:d.kind)===272&&!i.has(d)?(yle(c,u.file,d),i.add(d)):(d==null?void 0:d.kind)===276&&!i.has(d.parent.parent.parent)&&kKe(d,u.file,n.program)?(yle(c,u.file,d.parent.parent.parent),i.add(d.parent.parent.parent)):(d==null?void 0:d.kind)===276&&yle(c,u.file,d)})}})}});function vle(e,n,i,c,u=!1){if(!zJ(n))return;const d=Dft(n);if(!d)return;const h=n.parent,{leftSibling:S,rightSibling:E}=Cft(n);let P=h.getStart(),k="";!S&&h.comment&&(P=l7e(h,h.getStart(),n.getStart()),k=`${c} */${c}`),S&&(u&&zJ(S)?(P=n.getStart(),k=""):(P=l7e(h,S.getStart(),n.getStart()),k=`${c} */${c}`));let F=h.getEnd(),$="";E&&(u&&zJ(E)?(F=E.getStart(),$=`${c}${c}`):(F=E.getStart(),$=`${c}/**${c} * `)),e.replaceRange(i,{pos:P,end:F},d,{prefix:k,suffix:$})}function Cft(e){const n=e.parent,i=n.getChildCount()-1,c=n.getChildren().findIndex(h=>h.getStart()===e.getStart()&&h.getEnd()===e.getEnd()),u=c>0?n.getChildAt(c-1):void 0,d=c0;u--)if(!/[*/\s]/g.test(c.substring(u-1,u)))return n+u;return i}function Dft(e){var n;const{typeExpression:i}=e;if(!i)return;const c=(n=e.name)==null?void 0:n.getText();if(c){if(i.kind===329)return PKe(c,i);if(i.kind===316)return Ift(c,i)}}function PKe(e,n){const i=NKe(n);if(gt(i))return he.createInterfaceDeclaration(void 0,e,void 0,void 0,i)}function Ift(e,n){const i=ih(n.type);if(i)return he.createTypeAliasDeclaration(void 0,he.createIdentifier(e),void 0,i)}function NKe(e){const n=e.jsDocPropertyTags;return gt(n)?Qo(n,c=>{var u;const d=kft(c),h=(u=c.typeExpression)==null?void 0:u.type,S=c.isBracketed;let E;if(h&&oF(h)){const P=NKe(h);E=he.createTypeLiteralNode(P)}else h&&(E=ih(h));if(E&&d){const P=S?he.createToken(58):void 0;return he.createPropertySignature(void 0,d,P,E)}}):void 0}function kft(e){return e.name.kind===80?e.name.text:e.name.right.text}function wKe(e){return NT(e)?ea(e.jsDoc,n=>{var i;return(i=n.tags)==null?void 0:i.filter(c=>zJ(c))}):[]}var _Ie,u7e,dIe=G({"src/services/codefixes/convertTypedefToType.ts"(){xl(),If(),_Ie="convertTypedefToType",u7e=[N.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Hc({fixIds:[_Ie],errorCodes:u7e,getCodeActions(e){const n=R6(e.host,e.formatContext.options),i=Lf(e.sourceFile,e.span.start);if(!i)return;const c=zs.ChangeTracker.with(e,u=>vle(u,i,e.sourceFile,n));if(c.length>0)return[Rd(_Ie,c,N.Convert_typedef_to_TypeScript_type,_Ie,N.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Sg(e,u7e,(n,i)=>{const c=R6(e.host,e.formatContext.options),u=Lf(i.file,i.start);u&&vle(n,u,i.file,c,!0)})})}});function pIe(e,n){const i=Lf(e,n);if(xn(i)){const c=uc(i.parent.parent,em),u=i.getText(e);return{container:uc(c.parent,rS),typeNode:c.type,constraint:u,name:u==="K"?"P":"K"}}}function RKe(e,n,{container:i,typeNode:c,constraint:u,name:d}){e.replaceNode(n,i,he.createMappedTypeNode(void 0,he.createTypeParameterDeclaration(void 0,d,he.createTypeReferenceNode(u)),void 0,void 0,c,void 0))}var Mye,mIe,gIe=G({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){xl(),If(),Mye="convertLiteralTypeToMappedType",mIe=[N._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Hc({errorCodes:mIe,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=pIe(i,c.start);if(!u)return;const{name:d,constraint:h}=u,S=zs.ChangeTracker.with(n,E=>RKe(E,i,u));return[Rd(Mye,S,[N.Convert_0_to_1_in_0,h,d],Mye,N.Convert_all_type_literals_to_mapped_type)]},fixIds:[Mye],getAllCodeActions:e=>Sg(e,mIe,(n,i)=>{const c=pIe(i.file,i.start);c&&RKe(n,i.file,c)})})}});function hIe(e,n){return re.checkDefined($b(Lf(e,n)),"There should be a containing class")}function MKe(e){return!e.valueDeclaration||!(Cb(e.valueDeclaration)&2)}function f7e(e,n,i,c,u,d){const h=e.program.getTypeChecker(),S=LKe(c,h),E=h.getTypeAtLocation(n),k=h.getPropertiesOfType(E).filter(mU(MKe,ae=>!S.has(ae.escapedName))),F=h.getTypeAtLocation(c),$=lr(c.members,ae=>Lh(ae));F.getNumberIndexType()||X(E,1),F.getStringIndexType()||X(E,0);const J=Z3(i,e.program,d,e.host);jFe(c,k,i,e,d,J,ae=>ie(i,c,ae)),J.writeFixes(u);function X(ae,ve){const we=h.getIndexInfoOfType(ae,ve);we&&ie(i,c,h.indexInfoToIndexSignatureDeclaration(we,c,void 0,dB(e)))}function ie(ae,ve,we){$?u.insertNodeAfter(ae,$,we):u.insertMemberAtStart(ae,ve,we)}}function LKe(e,n){const i=YC(e);if(!i)return zd();const c=n.getTypeAtLocation(i),u=n.getPropertiesOfType(c);return zd(u.filter(MKe))}var yIe,vIe,_7e=G({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){xl(),If(),yIe=[N.Class_0_incorrectly_implements_interface_1.code,N.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],vIe="fixClassIncorrectlyImplementsInterface",Hc({errorCodes:yIe,getCodeActions(e){const{sourceFile:n,span:i}=e,c=hIe(n,i.start);return Qo(ZM(c),u=>{const d=zs.ChangeTracker.with(e,h=>f7e(e,u,n,c,h,e.preferences));return d.length===0?void 0:Rd(vIe,d,[N.Implement_interface_0,u.getText(n)],vIe,N.Implement_all_unimplemented_interfaces)})},fixIds:[vIe],getAllCodeActions(e){const n=new Map;return Sg(e,yIe,(i,c)=>{const u=hIe(c.file,c.start);if(y0(n,vm(u)))for(const d of ZM(u))f7e(e,d,c.file,u,i,e.preferences)})}})}});function Z3(e,n,i,c,u){return OKe(e,n,!1,i,c,u)}function OKe(e,n,i,c,u,d){const h=n.getCompilerOptions(),S=[],E=[],P=new Map,k=new Map;return{addImportFromDiagnostic:F,addImportFromExportedSymbol:$,writeFixes:X,hasFixes:ie};function F(ae,ve){const we=jKe(ve,ae.code,ae.start,i);!we||!we.length||J(Dl(we))}function $(ae,ve){const we=re.checkDefined(ae.parent),Fe=Oj(ae,iu(h)),et=n.getTypeChecker(),Pe=et.getMergedSymbol(dg(ae,et)),dt=d7e(e,Pe,Fe,we,!1,n,u,c,d),Ie=SIe(e,n),ct=WKe(e,re.checkDefined(dt),n,void 0,!!ve,Ie,u,c);ct&&J({fix:ct,symbolName:Fe,errorIdentifierText:void 0})}function J(ae){var ve,we;const{fix:Fe,symbolName:et}=ae;switch(Fe.kind){case 0:S.push(Fe);break;case 1:E.push(Fe);break;case 2:{const{importClauseOrBindingPattern:ct,importKind:Ct,addAsTypeOnly:Lt}=Fe,Ze=String(vm(ct));let Ke=P.get(Ze);if(Ke||P.set(Ze,Ke={importClauseOrBindingPattern:ct,defaultImport:void 0,namedImports:new Map}),Ct===0){const st=Ke==null?void 0:Ke.namedImports.get(et);Ke.namedImports.set(et,Pe(st,Lt))}else re.assert(Ke.defaultImport===void 0||Ke.defaultImport.name===et,"(Add to Existing) Default import should be missing or match symbolName"),Ke.defaultImport={name:et,addAsTypeOnly:Pe((ve=Ke.defaultImport)==null?void 0:ve.addAsTypeOnly,Lt)};break}case 3:{const{moduleSpecifier:ct,importKind:Ct,useRequire:Lt,addAsTypeOnly:Ze}=Fe,Ke=dt(ct,Ct,Lt,Ze);switch(re.assert(Ke.useRequire===Lt,"(Add new) Tried to add an `import` and a `require` for the same module"),Ct){case 1:re.assert(Ke.defaultImport===void 0||Ke.defaultImport.name===et,"(Add new) Default import should be missing or match symbolName"),Ke.defaultImport={name:et,addAsTypeOnly:Pe((we=Ke.defaultImport)==null?void 0:we.addAsTypeOnly,Ze)};break;case 0:const st=(Ke.namedImports||(Ke.namedImports=new Map)).get(et);Ke.namedImports.set(et,Pe(st,Ze));break;case 3:case 2:re.assert(Ke.namespaceLikeImport===void 0||Ke.namespaceLikeImport.name===et,"Namespacelike import shoudl be missing or match symbolName"),Ke.namespaceLikeImport={importKind:Ct,name:et,addAsTypeOnly:Ze};break}break}case 4:break;default:re.assertNever(Fe,`fix wasn't never - got kind ${Fe.kind}`)}function Pe(ct,Ct){return Math.max(ct??0,Ct)}function dt(ct,Ct,Lt,Ze){const Ke=Ie(ct,!0),st=Ie(ct,!1),It=k.get(Ke),Yt=k.get(st),Et={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Lt};return Ct===1&&Ze===2?It||(k.set(Ke,Et),Et):Ze===1&&(It||Yt)?It||Yt:Yt||(k.set(st,Et),Et)}function Ie(ct,Ct){return`${Ct?1:0}|${ct}`}}function X(ae,ve){let we;e.imports.length===0&&ve!==void 0?we=ve:we=OS(e,c);for(const et of S)x7e(ae,e,et);for(const et of E)A7e(ae,e,et,we);P.forEach(({importClauseOrBindingPattern:et,defaultImport:Pe,namedImports:dt})=>{E7e(ae,e,et,Pe,oc(dt.entries(),([Ie,ct])=>({addAsTypeOnly:ct,name:Ie})),c)});let Fe;k.forEach(({useRequire:et,defaultImport:Pe,namedImports:dt,namespaceLikeImport:Ie},ct)=>{const Ct=ct.slice(2),Ze=(et?C7e:ble)(Ct,we,Pe,dt&&oc(dt.entries(),([Ke,st])=>({addAsTypeOnly:st,name:Ke})),Ie,h,c);Fe=FD(Fe,Ze)}),Fe&&zZ(ae,e,Fe,!0,c)}function ie(){return S.length>0||E.length>0||P.size>0||k.size>0}}function Yj(e,n,i,c){const u=Lj(e,c,i),d=TIe(n.getTypeChecker(),e,n.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:h};function h(S,E,P,k){const{fixes:F,computedWithoutCacheCount:$}=Lye(S,E,P,!1,n,e,i,c,d,k),J=g7e(F,e,n,u,i);return J&&{...J,computedWithoutCacheCount:$}}}function FKe(e,n,i,c,u,d,h,S,E,P,k,F){let $;i?($=Sce(c,h,S,k,F).get(c.path,i),re.assertIsDefined($,"Some exportInfo should match the specified exportMapKey")):($=jre(S2(n.name))?[zKe(e,u,n,S,h)]:d7e(c,e,u,n,d,S,h,k,F),re.assertIsDefined($,"Some exportInfo should match the specified symbol / moduleSymbol"));const J=SIe(c,S),X=EA(Lf(c,P)),ie=re.checkDefined(WKe(c,$,S,P,X,J,h,k));return{moduleSpecifier:ie.moduleSpecifier,codeAction:BKe(S7e({host:h,formatContext:E,preferences:k},c,u,ie,!1,S,k))}}function Pft(e,n,i,c,u,d){const h=i.getCompilerOptions(),S=_U(b7e(e,i.getTypeChecker(),n,h)),E=JKe(e,n,S,i),P=S!==n.text;return E&&BKe(S7e({host:c,formatContext:u,preferences:d},e,S,E,P,i,d))}function WKe(e,n,i,c,u,d,h,S){const E=Lj(e,S,h);return g7e(Lye(n,c,u,d,i,e,h,S).fixes,e,i,E,h)}function BKe({description:e,changes:n,commands:i}){return{description:e,changes:n,commands:i}}function d7e(e,n,i,c,u,d,h,S,E){const P=m7e(d,h);return Sce(e,h,d,S,E).search(e.path,u,k=>k===i,k=>{if(dg(k[0].symbol,P(k[0].isFromPackageJson))===n&&k.some(F=>F.moduleSymbol===c||F.symbol.parent===c))return k})}function zKe(e,n,i,c,u){var d,h;const S=c.getCompilerOptions(),E=k(c.getTypeChecker(),!1);if(E)return E;const P=(h=(d=u.getPackageJsonAutoImportProvider)==null?void 0:d.call(u))==null?void 0:h.getTypeChecker();return re.checkDefined(P&&k(P,!0),"Could not find symbol in specified module for code actions");function k(F,$){const J=dhe(i,F,S);if(J&&dg(J.symbol,F)===e)return{symbol:J.symbol,moduleSymbol:i,moduleFileName:void 0,exportKind:J.exportKind,targetFlags:dg(e,F).flags,isFromPackageJson:$};const X=F.tryGetMemberInModuleExportsAndProperties(n,i);if(X&&dg(X,F)===e)return{symbol:X,moduleSymbol:i,moduleFileName:void 0,exportKind:0,targetFlags:dg(e,F).flags,isFromPackageJson:$}}}function Lye(e,n,i,c,u,d,h,S,E=TIe(u.getTypeChecker(),d,u.getCompilerOptions()),P){const k=u.getTypeChecker(),F=ea(e,E.getImportsForExportInfo),$=n!==void 0&&Nft(F,n),J=wft(F,i,k,u.getCompilerOptions());if(J)return{computedWithoutCacheCount:0,fixes:[...$?[$]:Yn,J]};const{fixes:X,computedWithoutCacheCount:ie=0}=GKe(e,F,u,d,n,i,c,h,S,P);return{computedWithoutCacheCount:ie,fixes:[...$?[$]:Yn,...X]}}function Nft(e,n){return Yr(e,({declaration:i,importKind:c})=>{var u;if(c!==0)return;const d=bIe(i),h=d&&((u=C7(i))==null?void 0:u.text);if(h)return{kind:0,namespacePrefix:d,usagePosition:n,moduleSpecifier:h}})}function bIe(e){var n,i,c;switch(e.kind){case 260:return(n=to(e.name,xn))==null?void 0:n.text;case 271:return e.name.text;case 272:return(c=to((i=e.importClause)==null?void 0:i.namedBindings,mh))==null?void 0:c.name.text;default:return re.assertNever(e)}}function p7e(e,n,i,c,u,d){return e?n&&d.importsNotUsedAsValues===2||Qie(d)&&(!(c&111551)||u.getTypeOnlyAliasDeclaration(i))?2:1:4}function wft(e,n,i,c){let u;for(const h of e){const S=d(h);if(!S)continue;const E=HX(S.importClauseOrBindingPattern);if(S.addAsTypeOnly!==4&&E||S.addAsTypeOnly===4&&!E)return S;u??(u=S)}return u;function d({declaration:h,importKind:S,symbol:E,targetFlags:P}){if(S===3||S===2||h.kind===271)return;if(h.kind===260)return(S===0||S===1)&&h.name.kind===206?{kind:2,importClauseOrBindingPattern:h.name,importKind:S,moduleSpecifier:h.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=h;if(!k||!Cm(h.moduleSpecifier))return;const{name:F,namedBindings:$}=k;if(k.isTypeOnly&&!(S===0&&$))return;const J=p7e(n,!1,E,P,i,c);if(!(S===1&&(F||J===2&&$))&&!(S===0&&($==null?void 0:$.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:S,moduleSpecifier:h.moduleSpecifier.text,addAsTypeOnly:J}}}function TIe(e,n,i){let c;for(const u of n.imports){const d=XC(u);if(v1(d.parent)){const h=e.resolveExternalModuleName(u);h&&(c||(c=zg())).add($d(h),d.parent)}else if(d.kind===272||d.kind===271){const h=e.getSymbolAtLocation(u);h&&(c||(c=zg())).add($d(h),d)}}return{getImportsForExportInfo:({moduleSymbol:u,exportKind:d,targetFlags:h,symbol:S})=>{if(!(h&111551)&&Gy(n))return Yn;const E=c==null?void 0:c.get($d(u));if(!E)return Yn;const P=y7e(n,d,i);return E.map(k=>({declaration:k,importKind:P,symbol:S,targetFlags:h}))}}}function SIe(e,n){if(!Gy(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const i=n.getCompilerOptions();if(i.configFile)return Zp(i)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const c of n.getSourceFiles())if(!(c===e||!Gy(c)||n.isSourceFileFromExternalLibrary(c))){if(c.commonJsModuleIndicator&&!c.externalModuleIndicator)return!0;if(c.externalModuleIndicator&&!c.commonJsModuleIndicator)return!1}return!0}function m7e(e,n){return p0(i=>i?n.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function EIe(e,n,i,c,u,d,h,S,E){const P=Gy(n),k=e.getCompilerOptions(),F=y4(e,h),$=m7e(e,h),J=Jd(k),X=Ij(J),ie=E?we=>({moduleSpecifiers:l4.tryGetModuleSpecifiersFromCache(we,n,F,S),computedWithoutCache:!1}):(we,Fe)=>l4.getModuleSpecifiersWithCacheInfo(we,Fe,k,n,F,S,void 0,!0);let ae=0;const ve=ea(d,(we,Fe)=>{const et=$(we.isFromPackageJson),{computedWithoutCache:Pe,moduleSpecifiers:dt}=ie(we.moduleSymbol,et),Ie=!!(we.targetFlags&111551),ct=p7e(c,!0,we.symbol,we.targetFlags,et,k);return ae+=Pe?1:0,Qo(dt,Ct=>{var Lt;if(X&&RW(Ct))return;if(!Ie&&P&&i!==void 0)return{kind:1,moduleSpecifier:Ct,usagePosition:i,exportInfo:we,isReExport:Fe>0};const Ze=y7e(n,we.exportKind,k);let Ke;if(i!==void 0&&Ze===3&&we.exportKind===0){const st=et.resolveExternalModuleSymbol(we.moduleSymbol);let It;st!==we.moduleSymbol&&(It=(Lt=phe(st,et,k))==null?void 0:Lt.name),It||(It=DIe(we.moduleSymbol,iu(k),!1)),Ke={namespacePrefix:It,usagePosition:i}}return{kind:3,moduleSpecifier:Ct,importKind:Ze,useRequire:u,addAsTypeOnly:ct,exportInfo:we,isReExport:Fe>0,qualification:Ke}})});return{computedWithoutCacheCount:ae,fixes:ve}}function GKe(e,n,i,c,u,d,h,S,E,P){const k=Yr(n,F=>Rft(F,d,h,i.getTypeChecker(),i.getCompilerOptions()));return k?{fixes:[k]}:EIe(i,c,u,d,h,e,S,E,P)}function Rft({declaration:e,importKind:n,symbol:i,targetFlags:c},u,d,h,S){var E;const P=(E=C7(e))==null?void 0:E.text;if(P){const k=d?4:p7e(u,!0,i,c,h,S);return{kind:3,moduleSpecifier:P,importKind:n,addAsTypeOnly:k,useRequire:d}}}function jKe(e,n,i,c){const u=Lf(e.sourceFile,i);let d;if(n===N._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)d=Lft(e,u);else if(xn(u))if(n===N._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const S=_U(b7e(e.sourceFile,e.program.getTypeChecker(),u,e.program.getCompilerOptions())),E=JKe(e.sourceFile,u,S,e.program);return E&&[{fix:E,symbolName:S,errorIdentifierText:u.text}]}else d=v7e(e,u,c);else return;const h=Lj(e.sourceFile,e.preferences,e.host);return d&&Mft(d,e.sourceFile,e.program,h,e.host)}function Mft(e,n,i,c,u){const d=h=>gm(h,u.getCurrentDirectory(),QC(u));return fN(e,(h,S)=>Z0(!!h.isJsxNamespaceFix,!!S.isJsxNamespaceFix)||pf(h.fix.kind,S.fix.kind)||VKe(h.fix,S.fix,n,i,c.allowsImportingSpecifier,d))}function g7e(e,n,i,c,u){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((d,h)=>VKe(h,d,n,i,c.allowsImportingSpecifier,S=>gm(S,u.getCurrentDirectory(),QC(u)))===-1?h:d)}function VKe(e,n,i,c,u,d){return e.kind!==0&&n.kind!==0?Z0(u(n.moduleSpecifier),u(e.moduleSpecifier))||HKe(e.moduleSpecifier,n.moduleSpecifier,i,c)||Z0(h7e(e,i,c.getCompilerOptions(),d),h7e(n,i,c.getCompilerOptions(),d))||Z9(e.moduleSpecifier,n.moduleSpecifier):0}function h7e(e,n,i,c){var u;if(e.isReExport&&((u=e.exportInfo)!=null&&u.moduleFileName)&&Jd(i)===2&&UKe(e.exportInfo.moduleFileName)){const d=c(ws(e.exportInfo.moduleFileName));return qf(n.path,d)}return!1}function UKe(e){return Jg(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function HKe(e,n,i,c){return qf(e,"node:")&&!qf(n,"node:")?yce(i,c)?-1:1:qf(n,"node:")&&!qf(e,"node:")?yce(i,c)?1:-1:0}function Lft({sourceFile:e,program:n,host:i,preferences:c},u){const d=n.getTypeChecker(),h=Oft(u,d);if(!h)return;const S=d.getAliasedSymbol(h),E=h.name,P=[{symbol:h,moduleSymbol:S,moduleFileName:void 0,exportKind:3,targetFlags:S.flags,isFromPackageJson:!1}],k=SIe(e,n);return Lye(P,void 0,!1,k,n,e,i,c).fixes.map($=>{var J;return{fix:$,symbolName:E,errorIdentifierText:(J=to(u,xn))==null?void 0:J.text}})}function Oft(e,n){const i=xn(e)?n.getSymbolAtLocation(e):void 0;if(MH(i))return i;const{parent:c}=e;if(m1(c)&&c.tagName===e||v6(c)){const u=n.resolveName(n.getJsxNamespace(c),m1(c)?e:c,111551,!1);if(MH(u))return u}}function y7e(e,n,i,c){if(i.verbatimModuleSyntax&&(Zp(i)===1||e.impliedNodeFormat===1))return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return Wft(e,i,!!c);case 3:return Fft(e,i,!!c);default:return re.assertNever(n)}}function Fft(e,n,i){if(VN(n))return 1;const c=Zp(n);switch(c){case 2:case 1:case 3:return Cs(e)&&(Bv(e)||i)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return re.assertNever(c,`Unexpected moduleKind ${c}`)}}function v7e({sourceFile:e,program:n,cancellationToken:i,host:c,preferences:u},d,h){const S=n.getTypeChecker(),E=n.getCompilerOptions();return ea(b7e(e,S,d,E),P=>{if(P==="default")return;const k=EA(d),F=SIe(e,n),$=T7e(P,T7(d),xF(d),i,e,n,h,c,u);return oc(Ky($.values(),J=>Lye(J,d.getStart(e),k,F,n,e,c,u).fixes),J=>({fix:J,symbolName:P,errorIdentifierText:d.text,isJsxNamespaceFix:P!==d.text}))})}function JKe(e,n,i,c){const u=c.getTypeChecker(),d=u.resolveName(i,n,111551,!0);if(!d)return;const h=u.getTypeOnlyAliasDeclaration(d);if(!(!h||ts(h)!==e))return{kind:4,typeOnlyAliasDeclaration:h}}function b7e(e,n,i,c){const u=i.parent;if((m1(u)||iD(u))&&u.tagName===i&&uhe(c.jsx)){const d=n.getJsxNamespace(e);if($Ke(d,i,n))return!EH(i.text)&&!n.resolveName(i.text,i,111551,!1)?[i.text,d]:[d]}return[i.text]}function $Ke(e,n,i){if(EH(n.text))return!0;const c=i.resolveName(e,n,111551,!0);return!c||gt(c.declarations,O8)&&!(c.flags&111551)}function T7e(e,n,i,c,u,d,h,S,E){var P;const k=zg(),F=Lj(u,E,S),$=(P=S.getModuleSpecifierCache)==null?void 0:P.call(S),J=p0(ie=>y4(ie?S.getPackageJsonAutoImportProvider():d,S));function X(ie,ae,ve,we,Fe,et){const Pe=J(et);if(ae&&Tce(Fe,u,ae,E,F,Pe,$)||!ae&&F.allowsImportingAmbientModule(ie,Pe)){const dt=Fe.getTypeChecker();k.add(RAe(ve,dt).toString(),{symbol:ve,moduleSymbol:ie,moduleFileName:ae==null?void 0:ae.fileName,exportKind:we,targetFlags:dg(ve,dt).flags,isFromPackageJson:et})}}return VAe(d,S,E,h,(ie,ae,ve,we)=>{const Fe=ve.getTypeChecker();c.throwIfCancellationRequested();const et=ve.getCompilerOptions(),Pe=dhe(ie,Fe,et);Pe&&(Pe.name===e||DIe(ie,iu(et),n)===e)&&I7e(Pe.resolvedSymbol,i)&&X(ie,ae,Pe.symbol,Pe.exportKind,ve,we);const dt=Fe.tryGetMemberInModuleExportsAndProperties(e,ie);dt&&I7e(dt,i)&&X(ie,ae,dt,0,ve,we)}),k}function Wft(e,n,i){const c=VN(n),u=Cs(e);if(!u&&Zp(n)>=5)return c?1:2;if(u)return Bv(e)||i?c?1:2:3;for(const d of e.statements)if(Yb(d)&&!ny(d.moduleReference))return 3;return c?1:3}function S7e(e,n,i,c,u,d,h){let S;const E=zs.ChangeTracker.with(e,P=>{S=Bft(P,n,i,c,u,d,h)});return Rd(Wye,E,S,Bye,N.Add_all_missing_imports)}function Bft(e,n,i,c,u,d,h){const S=OS(n,h);switch(c.kind){case 0:return x7e(e,n,c),[N.Change_0_to_1,i,`${c.namespacePrefix}.${i}`];case 1:return A7e(e,n,c,S),[N.Change_0_to_1,i,AIe(c.moduleSpecifier,S)+i];case 2:{const{importClauseOrBindingPattern:E,importKind:P,addAsTypeOnly:k,moduleSpecifier:F}=c;E7e(e,n,E,P===1?{name:i,addAsTypeOnly:k}:void 0,P===0?[{name:i,addAsTypeOnly:k}]:Yn,h);const $=S2(F);return u?[N.Import_0_from_1,i,$]:[N.Update_import_from_0,$]}case 3:{const{importKind:E,moduleSpecifier:P,addAsTypeOnly:k,useRequire:F,qualification:$}=c,J=F?C7e:ble,X=E===1?{name:i,addAsTypeOnly:k}:void 0,ie=E===0?[{name:i,addAsTypeOnly:k}]:void 0,ae=E===2||E===3?{importKind:E,name:($==null?void 0:$.namespacePrefix)||i,addAsTypeOnly:k}:void 0;return zZ(e,n,J(P,S,X,ie,ae,d.getCompilerOptions(),h),!0,h),$&&x7e(e,n,$),u?[N.Import_0_from_1,i,P]:[N.Add_import_from_0,P]}case 4:{const{typeOnlyAliasDeclaration:E}=c,P=zft(e,E,d,n,h);return P.kind===276?[N.Remove_type_from_import_of_0_from_1,i,xIe(P.parent.parent)]:[N.Remove_type_from_import_declaration_from_0,xIe(P)]}default:return re.assertNever(c,`Unexpected fix kind ${c.kind}`)}}function xIe(e){var n,i;return e.kind===271?((i=to((n=to(e.moduleReference,KE))==null?void 0:n.expression,Cm))==null?void 0:i.text)||e.moduleReference.getText():uc(e.parent.moduleSpecifier,Sd).text}function zft(e,n,i,c,u){const d=i.getCompilerOptions(),h=Qie(d);switch(n.kind){case 276:if(n.isTypeOnly){const E=lD.detectImportSpecifierSorting(n.parent.elements,u);if(n.parent.elements.length>1&&E){const P=he.updateImportSpecifier(n,!1,n.propertyName,n.name),k=lD.getOrganizeImportsComparer(u,E===2),F=lD.getImportSpecifierInsertionIndex(n.parent.elements,P,k);if(n.parent.elements.indexOf(n)!==F)return e.delete(c,n),e.insertImportSpecifierAtIndex(c,P,n.parent,F),n}return e.deleteRange(c,n.getFirstToken()),n}else return re.assert(n.parent.parent.isTypeOnly),S(n.parent.parent),n.parent.parent;case 273:return S(n),n;case 274:return S(n.parent),n.parent;case 271:return e.deleteRange(c,n.getChildAt(1)),n;default:re.failBadSyntaxKind(n)}function S(E){var P;if(e.delete(c,qge(E,c)),!d.allowImportingTsExtensions){const k=C7(E.parent),F=k&&((P=i.getResolvedModule(c,k.text,PA(c,k)))==null?void 0:P.resolvedModule);if(F!=null&&F.resolvedUsingTsExtension){const $=Vre(k.text,jae(k.text,d));e.replaceNode(c,k,he.createStringLiteral($))}}if(h){const k=to(E.namedBindings,Oy);if(k&&k.elements.length>1){lD.detectImportSpecifierSorting(k.elements,u)&&n.kind===276&&k.elements.indexOf(n)!==0&&(e.delete(c,n),e.insertImportSpecifierAtIndex(c,n,k,0));for(const F of k.elements)F!==n&&!F.isTypeOnly&&e.insertModifierBefore(c,156,F)}}}}function E7e(e,n,i,c,u,d){var h;if(i.kind===206){c&&P(i,c.name,"default");for(const k of u)P(i,k.name,void 0);return}const S=i.isTypeOnly&>([c,...u],k=>(k==null?void 0:k.addAsTypeOnly)===4),E=i.namedBindings&&((h=to(i.namedBindings,Oy))==null?void 0:h.elements);if(c&&(re.assert(!i.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(n,i.getStart(n),he.createIdentifier(c.name),{suffix:", "})),u.length){let k;if(typeof d.organizeImportsIgnoreCase=="boolean")k=d.organizeImportsIgnoreCase;else if(E){const X=lD.detectImportSpecifierSorting(E,d);X!==3&&(k=X===2)}k===void 0&&(k=lD.detectSorting(n,d)===2);const F=lD.getOrganizeImportsComparer(d,k),$=nh(u.map(X=>he.createImportSpecifier((!i.isTypeOnly||S)&&Oye(X,d),void 0,he.createIdentifier(X.name))),(X,ie)=>lD.compareImportOrExportSpecifiers(X,ie,F)),J=(E==null?void 0:E.length)&&lD.detectImportSpecifierSorting(E,d);if(J&&!(k&&J===1))for(const X of $){const ie=S&&!X.isTypeOnly?0:lD.getImportSpecifierInsertionIndex(E,X,F);e.insertImportSpecifierAtIndex(n,X,i.namedBindings,ie)}else if(E!=null&&E.length)for(const X of $)e.insertNodeInListAfter(n,yl(E),X,E);else if($.length){const X=he.createNamedImports($);i.namedBindings?e.replaceNode(n,i.namedBindings,X):e.insertNodeAfter(n,re.checkDefined(i.name,"Import clause must have either named imports or a default import"),X)}}if(S&&(e.delete(n,qge(i,n)),E))for(const k of E)e.insertModifierBefore(n,156,k);function P(k,F,$){const J=he.createBindingElement(void 0,$,F);k.elements.length?e.insertNodeInListAfter(n,yl(k.elements),J):e.replaceNode(n,k,he.createObjectBindingPattern([J]))}}function x7e(e,n,{namespacePrefix:i,usagePosition:c}){e.insertText(n,c,i+".")}function A7e(e,n,{moduleSpecifier:i,usagePosition:c},u){e.insertText(n,c,AIe(i,u))}function AIe(e,n){const i=ice(n);return`import(${i}${e}${i}).`}function CIe({addAsTypeOnly:e}){return e===2}function Oye(e,n){return CIe(e)||!!n.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function ble(e,n,i,c,u,d,h){const S=kj(e,n);let E;if(i!==void 0||c!=null&&c.length){const P=(!i||CIe(i))&&jr(c,CIe)||(d.verbatimModuleSyntax||h.preferTypeOnlyAutoImports)&&(i==null?void 0:i.addAsTypeOnly)!==4&&!gt(c,k=>k.addAsTypeOnly===4);E=FD(E,Nk(i&&he.createIdentifier(i.name),c==null?void 0:c.map(k=>he.createImportSpecifier(!P&&Oye(k,h),void 0,he.createIdentifier(k.name))),e,n,P))}if(u){const P=u.importKind===3?he.createImportEqualsDeclaration(void 0,Oye(u,h),he.createIdentifier(u.name),he.createExternalModuleReference(S)):he.createImportDeclaration(void 0,he.createImportClause(Oye(u,h),void 0,he.createNamespaceImport(he.createIdentifier(u.name))),S,void 0);E=FD(E,P)}return re.checkDefined(E)}function C7e(e,n,i,c,u){const d=kj(e,n);let h;if(i||c!=null&&c.length){const S=(c==null?void 0:c.map(({name:P})=>he.createBindingElement(void 0,void 0,P)))||[];i&&S.unshift(he.createBindingElement(void 0,"default",i.name));const E=D7e(he.createObjectBindingPattern(S),d);h=FD(h,E)}if(u){const S=D7e(u.name,d);h=FD(h,S)}return re.checkDefined(h)}function D7e(e,n){return he.createVariableStatement(void 0,he.createVariableDeclarationList([he.createVariableDeclaration(typeof e=="string"?he.createIdentifier(e):e,void 0,void 0,he.createCallExpression(he.createIdentifier("require"),void 0,[n]))],2))}function I7e({declarations:e},n){return gt(e,i=>!!(j$(i)&n))}function DIe(e,n,i){return Fye(wg(S2(e.name)),n,i)}function Fye(e,n,i){const c=Jg(DM(e,"/index"));let u="",d=!0;const h=c.charCodeAt(0);lP(h,n)?(u+=String.fromCharCode(h),i&&(u=u.toUpperCase())):d=!1;for(let S=1;SS7e(e,c,E,S,E!==P,d,i))},fixIds:[Bye],getAllCodeActions:e=>{const{sourceFile:n,program:i,preferences:c,host:u,cancellationToken:d}=e,h=OKe(n,i,!0,c,u,d);return GR(e,zye,S=>h.addImportFromDiagnostic(S,e)),Iq(zs.ChangeTracker.with(e,h.writeFixes))}})}});function qKe(e,n,i){const c=lr(e.getSemanticDiagnostics(n),h=>h.start===i.start&&h.length===i.length);if(c===void 0||c.relatedInformation===void 0)return;const u=lr(c.relatedInformation,h=>h.code===N.This_type_parameter_might_need_an_extends_0_constraint.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let d=mB(u.file,p1(u.start,u.length));if(d!==void 0&&(xn(d)&&Np(d.parent)&&(d=d.parent),Np(d))){if(LJ(d.parent))return;const h=Lf(n,i.start),S=e.getTypeChecker();return{constraint:Gft(S,h)||KKe(u.messageText),declaration:d,token:h}}}function P7e(e,n,i,c,u,d){const{declaration:h,constraint:S}=d,E=n.getTypeChecker();if(As(S))e.insertText(u,h.name.end,` extends ${S}`);else{const P=iu(n.getCompilerOptions()),k=dB({program:n,host:c}),F=Z3(u,n,i,c),$=mve(E,F,S,void 0,P,void 0,k);$&&(e.replaceNode(u,h,he.updateTypeParameterDeclaration(h,void 0,h.name,$,h.default)),F.writeFixes(e))}}function KKe(e){const[n,i]=D2(e,` +`,0).match(/`extends (.*)`/)||[];return i}function Gft(e,n){return pc(n.parent)?e.getTypeArgumentConstraint(n.parent):(kr(n)?e.getContextualType(n):void 0)||e.getTypeAtLocation(n)}var IIe,Tle,N7e=G({"src/services/codefixes/fixAddMissingConstraint.ts"(){xl(),If(),IIe="addMissingConstraint",Tle=[N.Type_0_is_not_comparable_to_type_1.code,N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,N.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,N.Type_0_is_not_assignable_to_type_1.code,N.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,N.Property_0_is_incompatible_with_index_signature.code,N.Property_0_in_type_1_is_not_assignable_to_type_2.code,N.Type_0_does_not_satisfy_the_constraint_1.code],Hc({errorCodes:Tle,getCodeActions(e){const{sourceFile:n,span:i,program:c,preferences:u,host:d}=e,h=qKe(c,n,i);if(h===void 0)return;const S=zs.ChangeTracker.with(e,E=>P7e(E,c,u,d,n,h));return[Rd(IIe,S,N.Add_extends_constraint,IIe,N.Add_extends_constraint_to_all_type_parameters)]},fixIds:[IIe],getAllCodeActions:e=>{const{program:n,preferences:i,host:c}=e,u=new Map;return Iq(zs.ChangeTracker.with(e,d=>{GR(e,Tle,h=>{const S=qKe(n,h.file,p1(h.start,h.length));if(S&&y0(u,vm(S.declaration)))return P7e(d,n,i,c,h.file,S)})}))}})}});function XKe(e,n,i,c){switch(i){case N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return YKe(e,n.sourceFile,c);case N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return jft(e,n.sourceFile,c);default:re.fail("Unexpected error code: "+i)}}function YKe(e,n,i){const c=w7e(n,i);if(Gy(n)){e.addJSDocTags(n,c,[he.createJSDocOverrideTag(he.createIdentifier("override"))]);return}const u=c.modifiers||Yn,d=lr(u,pW),h=lr(u,wJ),S=lr(u,F=>FR(F.kind)),E=ra(u,Jh),P=h?h.end:d?d.end:S?S.end:E?Ff(n.text,E.end):c.getStart(n),k=S||d||h?{prefix:" "}:{suffix:" "};e.insertModifierAt(n,P,164,k)}function jft(e,n,i){const c=w7e(n,i);if(Gy(n)){e.filterJSDocTags(n,c,dA(AA));return}const u=lr(c.modifiers,RJ);re.assertIsDefined(u),e.deleteModifier(n,u)}function QKe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return DT(e,e.parent);default:return!1}}function w7e(e,n){const i=Lf(e,n),c=Ua(i,u=>Fl(u)?"quit":QKe(u));return re.assert(c&&QKe(c)),c}var kIe,Qj,eO,Mq,Gye,R7e=G({"src/services/codefixes/fixOverrideModifier.ts"(){xl(),If(),kIe="fixOverrideModifier",Qj="fixAddOverrideModifier",eO="fixRemoveOverrideModifier",Mq=[N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Gye={[N.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Qj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Qj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_override_modifier},[N.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Qj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Qj,fixAllDescriptions:N.Add_all_missing_override_modifiers},[N.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:N.Add_override_modifier,fixId:Qj,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers},[N.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:N.Remove_override_modifier,fixId:eO,fixAllDescriptions:N.Remove_all_unnecessary_override_modifiers}},Hc({errorCodes:Mq,getCodeActions:function(n){const{errorCode:i,span:c}=n,u=Gye[i];if(!u)return Yn;const{descriptions:d,fixId:h,fixAllDescriptions:S}=u,E=zs.ChangeTracker.with(n,P=>XKe(P,n,i,c.start));return[POe(kIe,E,d,h,S)]},fixIds:[kIe,Qj,eO],getAllCodeActions:e=>Sg(e,Mq,(n,i)=>{const{code:c,start:u}=i,d=Gye[c];!d||d.fixId!==e.fixId||XKe(n,e,c,u)})})}});function ZKe(e,n,i,c){const u=OS(n,c),d=he.createStringLiteral(i.name.text,u===0);e.replaceNode(n,i,ede(i)?he.createElementAccessChain(i.expression,i.questionDotToken,d):he.createElementAccessExpression(i.expression,d))}function M7e(e,n){return uc(Lf(e,n).parent,Ac)}var jye,Sle,L7e=G({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){xl(),If(),jye="fixNoPropertyAccessFromIndexSignature",Sle=[N.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Hc({errorCodes:Sle,fixIds:[jye],getCodeActions(e){const{sourceFile:n,span:i,preferences:c}=e,u=M7e(n,i.start),d=zs.ChangeTracker.with(e,h=>ZKe(h,e.sourceFile,u,c));return[Rd(jye,d,[N.Use_element_access_for_0,u.name.text],jye,N.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Sg(e,Sle,(n,i)=>ZKe(n,i.file,M7e(i.file,i.start),e.preferences))})}});function eXe(e,n,i,c){const u=Lf(n,i);if(!AF(u))return;const d=RT(u,!1,!1);if(!(!mg(d)&&!Jm(d))&&!Nu(RT(d,!1,!1))){const h=re.checkDefined(qm(d,100,n)),{name:S}=d,E=re.checkDefined(d.body);return Jm(d)?S&&Wf.Core.isSymbolReferencedInFile(S,c,n,E)?void 0:(e.delete(n,h),S&&e.delete(n,S),e.insertText(n,E.pos," =>"),[N.Convert_function_expression_0_to_arrow_function,S?S.text:bce]):(e.replaceNode(n,h,he.createToken(87)),e.insertText(n,S.end," = "),e.insertText(n,E.pos," =>"),[N.Convert_function_declaration_0_to_arrow_function,S.text])}}var Vye,Ele,O7e=G({"src/services/codefixes/fixImplicitThis.ts"(){xl(),If(),Vye="fixImplicitThis",Ele=[N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Hc({errorCodes:Ele,getCodeActions:function(n){const{sourceFile:i,program:c,span:u}=n;let d;const h=zs.ChangeTracker.with(n,S=>{d=eXe(S,i,u.start,c.getTypeChecker())});return d?[Rd(Vye,h,d,Vye,N.Fix_all_implicit_this_errors)]:Yn},fixIds:[Vye],getAllCodeActions:e=>Sg(e,Ele,(n,i)=>{eXe(n,i.file,i.start,e.program.getTypeChecker())})})}});function tXe(e,n,i){var c,u;const d=Lf(e,n);if(xn(d)){const h=Ua(d,n0);if(h===void 0)return;const S=Sd(h.moduleSpecifier)?h.moduleSpecifier.text:void 0;if(S===void 0)return;const E=(c=i.getResolvedModule(e,S,void 0))==null?void 0:c.resolvedModule;if(E===void 0)return;const P=i.getSourceFile(E.resolvedFileName);if(P===void 0||cB(i,P))return;const k=P.symbol,F=(u=to(k.valueDeclaration,XD))==null?void 0:u.locals;if(F===void 0)return;const $=F.get(d.escapedText);if($===void 0)return;const J=rXe($);return J===void 0?void 0:{exportName:{node:d,isTypeOnly:f6(J)},node:J,moduleSourceFile:P,moduleSpecifier:S}}}function nXe(e,n,{exportName:i,node:c,moduleSourceFile:u}){const d=xle(u,i.isTypeOnly);d?Uye(e,n,u,d,[i]):nW(c)?e.insertExportModifier(u,c):W7e(e,n,u,[i])}function F7e(e,n,i,c,u){Nt(c)&&(u?Uye(e,n,i,u,c):W7e(e,n,i,c))}function xle(e,n){const i=c=>ry(c)&&(n&&c.isTypeOnly||!c.isTypeOnly);return ra(e.statements,i)}function Uye(e,n,i,c,u){const d=c.exportClause&&j0(c.exportClause)?c.exportClause.elements:he.createNodeArray([]),h=!c.isTypeOnly&&!!(F0(n.getCompilerOptions())||lr(d,S=>S.isTypeOnly));e.replaceNode(i,c,he.updateExportDeclaration(c,c.modifiers,c.isTypeOnly,he.createNamedExports(he.createNodeArray([...d,...B7e(u,h)],d.hasTrailingComma)),c.moduleSpecifier,c.attributes))}function W7e(e,n,i,c){e.insertNodeAtEndOfScope(i,i,he.createExportDeclaration(void 0,!1,he.createNamedExports(B7e(c,F0(n.getCompilerOptions()))),void 0,void 0))}function B7e(e,n){return he.createNodeArray(Vn(e,i=>he.createExportSpecifier(n&&i.isTypeOnly,void 0,i.node)))}function rXe(e){if(e.valueDeclaration===void 0)return pp(e.declarations);const n=e.valueDeclaration,i=Kc(n)?to(n.parent.parent,Xg):void 0;return i&&Nt(i.declarationList.declarations)===1?i:n}var PIe,Ale,z7e=G({"src/services/codefixes/fixImportNonExportedMember.ts"(){xl(),If(),PIe="fixImportNonExportedMember",Ale=[N.Module_0_declares_1_locally_but_it_is_not_exported.code],Hc({errorCodes:Ale,fixIds:[PIe],getCodeActions(e){const{sourceFile:n,span:i,program:c}=e,u=tXe(n,i.start,c);if(u===void 0)return;const d=zs.ChangeTracker.with(e,h=>nXe(h,c,u));return[Rd(PIe,d,[N.Export_0_from_module_1,u.exportName.node.text,u.moduleSpecifier],PIe,N.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:n}=e;return Iq(zs.ChangeTracker.with(e,i=>{const c=new Map;GR(e,Ale,u=>{const d=tXe(u.file,u.start,n);if(d===void 0)return;const{exportName:h,node:S,moduleSourceFile:E}=d;if(xle(E,h.isTypeOnly)===void 0&&nW(S))i.insertExportModifier(E,S);else{const P=c.get(E)||{typeOnlyExports:[],exports:[]};h.isTypeOnly?P.typeOnlyExports.push(h):P.exports.push(h),c.set(E,P)}}),c.forEach((u,d)=>{const h=xle(d,!0);h&&h.isTypeOnly?(F7e(i,n,d,u.typeOnlyExports,h),F7e(i,n,d,u.exports,xle(d,!1))):F7e(i,n,d,[...u.exports,...u.typeOnlyExports],h)})}))}})}});function Vft(e,n){const i=Lf(e,n);return Ua(i,c=>c.kind===202)}function Uft(e,n,i){if(!i)return;let c=i.type,u=!1,d=!1;for(;c.kind===190||c.kind===191||c.kind===196;)c.kind===190?u=!0:c.kind===191&&(d=!0),c=c.type;const h=he.updateNamedTupleMember(i,i.dotDotDotToken||(d?he.createToken(26):void 0),i.name,i.questionToken||(u?he.createToken(58):void 0),c);h!==i&&e.replaceNode(n,i,h)}var NIe,Hye,iXe=G({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){xl(),If(),NIe="fixIncorrectNamedTupleSyntax",Hye=[N.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,N.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Hc({errorCodes:Hye,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=Vft(i,c.start),d=zs.ChangeTracker.with(n,h=>Uft(h,i,u));return[Rd(NIe,d,N.Move_labeled_tuple_element_modifiers_to_labels,NIe,N.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[NIe]})}});function oXe(e,n,i,c){const u=Lf(e,n),d=u.parent;if((c===N.No_overload_matches_this_call.code||c===N.Type_0_is_not_assignable_to_type_1.code)&&!tx(d))return;const h=i.program.getTypeChecker();let S;if(Ac(d)&&d.name===u){re.assert(xN(u),"Expected an identifier for spelling (property access)");let E=h.getTypeAtLocation(d.expression);d.flags&64&&(E=h.getNonNullableType(E)),S=h.getSuggestedSymbolForNonexistentProperty(u,E)}else if(Ds(d)&&d.operatorToken.kind===103&&d.left===u&&Lu(u)){const E=h.getTypeAtLocation(d.right);S=h.getSuggestedSymbolForNonexistentProperty(u,E)}else if(Pu(d)&&d.right===u){const E=h.getSymbolAtLocation(d.left);E&&E.flags&1536&&(S=h.getSuggestedSymbolForNonexistentModule(d.right,E))}else if(qE(d)&&d.name===u){re.assertNode(u,xn,"Expected an identifier for spelling (import)");const E=Ua(u,n0),P=Hft(e,i,E);P&&P.symbol&&(S=h.getSuggestedSymbolForNonexistentModule(u,P.symbol))}else if(tx(d)&&d.name===u){re.assertNode(u,xn,"Expected an identifier for JSX attribute");const E=Ua(u,m1),P=h.getContextualTypeForArgumentAtIndex(E,0);S=h.getSuggestedSymbolForNonexistentJSXAttribute(u,P)}else if(zie(d)&&J_(d)&&d.name===u){const E=Ua(u,Fl),P=E?YC(E):void 0,k=P?h.getTypeAtLocation(P):void 0;k&&(S=h.getSuggestedSymbolForNonexistentClassMember(Lv(u),k))}else{const E=xF(u),P=Lv(u);re.assert(P!==void 0,"name should be defined"),S=h.getSuggestedSymbolForNonexistentSymbol(u,P,aXe(E))}return S===void 0?void 0:{node:u,suggestedSymbol:S}}function G7e(e,n,i,c,u){const d=Il(c);if(!H2(d,u)&&Ac(i.parent)){const h=c.valueDeclaration;h&&mp(h)&&Lu(h.name)?e.replaceNode(n,i,he.createIdentifier(d)):e.replaceNode(n,i.parent,he.createElementAccessExpression(i.parent.expression,he.createStringLiteral(d)))}else e.replaceNode(n,i,he.createIdentifier(d))}function aXe(e){let n=0;return e&4&&(n|=1920),e&2&&(n|=788968),e&1&&(n|=111551),n}function Hft(e,n,i){var c;if(!i||!Cm(i.moduleSpecifier))return;const u=(c=n.program.getResolvedModule(e,i.moduleSpecifier.text,PA(e,i.moduleSpecifier)))==null?void 0:c.resolvedModule;if(u)return n.program.getSourceFile(u.resolvedFileName)}var j7e,Jye,V7e=G({"src/services/codefixes/fixSpelling.ts"(){xl(),If(),j7e="fixSpelling",Jye=[N.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,N.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,N.Cannot_find_name_0_Did_you_mean_1.code,N.Could_not_find_name_0_Did_you_mean_1.code,N.Cannot_find_namespace_0_Did_you_mean_1.code,N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,N._0_has_no_exported_member_named_1_Did_you_mean_2.code,N.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,N.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,N.No_overload_matches_this_call.code,N.Type_0_is_not_assignable_to_type_1.code],Hc({errorCodes:Jye,getCodeActions(e){const{sourceFile:n,errorCode:i}=e,c=oXe(n,e.span.start,e,i);if(!c)return;const{node:u,suggestedSymbol:d}=c,h=iu(e.host.getCompilationSettings()),S=zs.ChangeTracker.with(e,E=>G7e(E,n,u,d,h));return[Rd("spelling",S,[N.Change_spelling_to_0,Il(d)],j7e,N.Fix_all_detected_spelling_errors)]},fixIds:[j7e],getAllCodeActions:e=>Sg(e,Jye,(n,i)=>{const c=oXe(i.file,i.start,e,i.code),u=iu(e.host.getCompilationSettings());c&&G7e(n,e.sourceFile,c.node,c.suggestedSymbol,u)})})}});function sXe(e,n,i){const c=e.createSymbol(4,n.escapedText);c.links.type=e.getTypeAtLocation(i);const u=zd([c]);return e.createAnonymousType(void 0,u,[],[],[])}function wIe(e,n,i,c){if(!n.body||!Ou(n.body)||Nt(n.body.statements)!==1)return;const u=Dl(n.body.statements);if(kb(u)&&$ye(e,n,e.getTypeAtLocation(u.expression),i,c))return{declaration:n,kind:0,expression:u.expression,statement:u,commentSource:u.expression};if(tF(u)&&kb(u.statement)){const d=he.createObjectLiteralExpression([he.createPropertyAssignment(u.label,u.statement.expression)]),h=sXe(e,u.label,u.statement.expression);if($ye(e,n,h,i,c))return $m(n)?{declaration:n,kind:1,expression:d,statement:u,commentSource:u.statement.expression}:{declaration:n,kind:0,expression:d,statement:u,commentSource:u.statement.expression}}else if(Ou(u)&&Nt(u.statements)===1){const d=Dl(u.statements);if(tF(d)&&kb(d.statement)){const h=he.createObjectLiteralExpression([he.createPropertyAssignment(d.label,d.statement.expression)]),S=sXe(e,d.label,d.statement.expression);if($ye(e,n,S,i,c))return{declaration:n,kind:0,expression:h,statement:u,commentSource:d}}}}function $ye(e,n,i,c,u){if(u){const d=e.getSignatureFromDeclaration(n);if(d){ul(n,1024)&&(i=e.createPromiseType(i));const h=e.createSignature(n,d.typeParameters,d.thisParameter,d.parameters,i,void 0,d.minArgumentCount,d.flags);i=e.createAnonymousType(void 0,zd(),[h],[],[])}else i=e.getAnyType()}return e.isTypeAssignableTo(i,c)}function RIe(e,n,i,c){const u=Lf(n,i);if(!u.parent)return;const d=Ua(u.parent,Vd);switch(c){case N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!d||!d.body||!d.type||!ov(d.type,u)?void 0:wIe(e,d,e.getTypeFromTypeNode(d.type),!1);case N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!d||!xd(d.parent)||!d.body)return;const h=d.parent.arguments.indexOf(d);if(h===-1)return;const S=e.getContextualTypeForArgumentAtIndex(d.parent,h);return S?wIe(e,d,S,!0):void 0;case N.Type_0_is_not_assignable_to_type_1.code:if(!ON(u)||!E9(u.parent)&&!tx(u.parent))return;const E=cXe(u.parent);return!E||!Vd(E)||!E.body?void 0:wIe(e,E,e.getTypeAtLocation(u.parent),!0)}}function cXe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(CP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function lXe(e,n,i,c){zT(i);const u=$Z(n);e.replaceNode(n,c,he.createReturnStatement(i),{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Exclude,suffix:u?";":void 0})}function U7e(e,n,i,c,u,d){const h=d||fce(c)?he.createParenthesizedExpression(c):c;zT(u),nB(u,h),e.replaceNode(n,i.body,h)}function H7e(e,n,i,c){e.replaceNode(n,i.body,he.createParenthesizedExpression(c))}function uXe(e,n,i){const c=zs.ChangeTracker.with(e,u=>lXe(u,e.sourceFile,n,i));return Rd(MIe,c,N.Add_a_return_statement,Ree,N.Add_all_missing_return_statement)}function Jft(e,n,i,c){const u=zs.ChangeTracker.with(e,d=>U7e(d,e.sourceFile,n,i,c,!1));return Rd(MIe,u,N.Remove_braces_from_arrow_function_body,Mee,N.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function $ft(e,n,i){const c=zs.ChangeTracker.with(e,u=>H7e(u,e.sourceFile,n,i));return Rd(MIe,c,N.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Lee,N.Wrap_all_object_literal_with_parentheses)}var MIe,Ree,Mee,Lee,Cle,J7e=G({"src/services/codefixes/returnValueCorrect.ts"(){xl(),If(),MIe="returnValueCorrect",Ree="fixAddReturnStatement",Mee="fixRemoveBracesFromArrowFunctionBody",Lee="fixWrapTheBlockWithParen",Cle=[N.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,N.Type_0_is_not_assignable_to_type_1.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Hc({errorCodes:Cle,fixIds:[Ree,Mee,Lee],getCodeActions:function(n){const{program:i,sourceFile:c,span:{start:u},errorCode:d}=n,h=RIe(i.getTypeChecker(),c,u,d);if(h)return h.kind===0?ur([uXe(n,h.expression,h.statement)],$m(h.declaration)?Jft(n,h.declaration,h.expression,h.commentSource):void 0):[$ft(n,h.declaration,h.expression)]},getAllCodeActions:e=>Sg(e,Cle,(n,i)=>{const c=RIe(e.program.getTypeChecker(),i.file,i.start,i.code);if(c)switch(e.fixId){case Ree:lXe(n,i.file,c.expression,c.statement);break;case Mee:if(!$m(c.declaration))return;U7e(n,i.file,c.declaration,c.expression,c.commentSource,!1);break;case Lee:if(!$m(c.declaration))return;H7e(n,i.file,c.declaration,c.expression);break;default:re.fail(JSON.stringify(e.fixId))}})})}});function fXe(e,n,i,c,u){var d;const h=Lf(e,n),S=h.parent;if(i===N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(h.kind===19&&el(S)&&xd(S.parent)))return;const J=Ho(S.parent.arguments,ve=>ve===S);if(J<0)return;const X=c.getResolvedSignature(S.parent);if(!(X&&X.declaration&&X.parameters[J]))return;const ie=X.parameters[J].valueDeclaration;if(!(ie&&Os(ie)&&xn(ie.name)))return;const ae=oc(c.getUnmatchedProperties(c.getTypeAtLocation(S),c.getParameterType(X,J),!1,!1));return Nt(ae)?{kind:3,token:ie.name,properties:ae,parentDeclaration:S}:void 0}if(!xN(h))return;if(xn(h)&&J2(S)&&S.initializer&&el(S.initializer)){const J=c.getContextualType(h)||c.getTypeAtLocation(h),X=oc(c.getUnmatchedProperties(c.getTypeAtLocation(S.initializer),J,!1,!1));return Nt(X)?{kind:3,token:h,properties:X,parentDeclaration:S.initializer}:void 0}if(xn(h)&&m1(h.parent)){const J=iu(u.getCompilerOptions()),X=Xft(c,J,h.parent);return Nt(X)?{kind:4,token:h,attributes:X,parentDeclaration:h.parent}:void 0}if(xn(h)){const J=(d=c.getContextualType(h))==null?void 0:d.getNonNullableType();if(J&&ji(J)&16){const X=pp(c.getSignaturesOfType(J,0));return X===void 0?void 0:{kind:5,token:h,signature:X,sourceFile:e,parentDeclaration:yXe(h)}}if(xd(S)&&S.expression===h)return{kind:2,token:h,call:S,sourceFile:e,modifierFlags:0,parentDeclaration:yXe(h)}}if(!Ac(S))return;const E=DF(c.getTypeAtLocation(S.expression)),P=E.symbol;if(!P||!P.declarations)return;if(xn(h)&&xd(S.parent)){const J=lr(P.declarations,dy),X=J==null?void 0:J.getSourceFile();if(J&&X&&!cB(u,X))return{kind:2,token:h,call:S.parent,sourceFile:e,modifierFlags:32,parentDeclaration:J};const ie=lr(P.declarations,Nu);if(e.commonJsModuleIndicator)return;if(ie&&!cB(u,ie))return{kind:2,token:h,call:S.parent,sourceFile:ie,modifierFlags:32,parentDeclaration:ie}}const k=lr(P.declarations,Fl);if(!k&&Lu(h))return;const F=k||lr(P.declarations,J=>xp(J)||rS(J));if(F&&!cB(u,F.getSourceFile())){const J=!rS(F)&&(E.target||E)!==c.getDeclaredTypeOfSymbol(P);if(J&&(Lu(h)||xp(F)))return;const X=F.getSourceFile(),ie=rS(F)?0:(J?256:0)|(YZ(h.text)?2:0),ae=Gy(X),ve=to(S.parent,xd);return{kind:0,token:h,call:ve,modifierFlags:ie,parentDeclaration:F,declSourceFile:X,isJSFile:ae}}const $=lr(P.declarations,xP);if($&&!(E.flags&1056)&&!Lu(h)&&!cB(u,$.getSourceFile()))return{kind:1,token:h,parentDeclaration:$}}function _Xe(e,n){return n.isJSFile?X5(qft(e,n)):pXe(e,n)}function qft(e,{parentDeclaration:n,declSourceFile:i,modifierFlags:c,token:u}){if(xp(n)||rS(n))return;const d=zs.ChangeTracker.with(e,S=>dXe(S,i,n,u,!!(c&256)));if(d.length===0)return;const h=c&256?N.Initialize_static_property_0:Lu(u)?N.Declare_a_private_field_named_0:N.Initialize_property_0_in_the_constructor;return Rd(F6,d,[h,u.text],F6,N.Add_all_missing_members)}function dXe(e,n,i,c,u){const d=c.text;if(u){if(i.kind===231)return;const h=i.name.getText(),S=$7e(he.createIdentifier(h),d);e.insertNodeAfter(n,i,S)}else if(Lu(c)){const h=he.createPropertyDeclaration(void 0,d,void 0,void 0,void 0),S=K7e(i);S?e.insertNodeAfter(n,S,h):e.insertMemberAtStart(n,i,h)}else{const h=sC(i);if(!h)return;const S=$7e(he.createThis(),d);e.insertNodeAtConstructorEnd(n,h,S)}}function $7e(e,n){return he.createExpressionStatement(he.createAssignment(he.createPropertyAccessExpression(e,n),tO()))}function pXe(e,{parentDeclaration:n,declSourceFile:i,modifierFlags:c,token:u}){const d=u.text,h=c&256,S=mXe(e.program.getTypeChecker(),n,u),E=k=>zs.ChangeTracker.with(e,F=>q7e(F,i,n,d,S,k)),P=[Rd(F6,E(c&256),[h?N.Declare_static_property_0:N.Declare_property_0,d],F6,N.Add_all_missing_members)];return h||Lu(u)||(c&2&&P.unshift(xI(F6,E(2),[N.Declare_private_property_0,d])),P.push(gXe(e,i,n,u.text,S))),P}function mXe(e,n,i){let c;if(i.parent.parent.kind===226){const u=i.parent.parent,d=i.parent===u.left?u.right:u.left,h=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(d)));c=e.typeToTypeNode(h,n,1)}else{const u=e.getContextualType(i.parent);c=u?e.typeToTypeNode(u,void 0,1):void 0}return c||he.createKeywordTypeNode(133)}function q7e(e,n,i,c,u,d){const h=d?he.createNodeArray(he.createModifiersFromModifierFlags(d)):void 0,S=Fl(i)?he.createPropertyDeclaration(h,c,void 0,u,void 0):he.createPropertySignature(void 0,c,void 0,u),E=K7e(i);E?e.insertNodeAfter(n,E,S):e.insertMemberAtStart(n,i,S)}function K7e(e){let n;for(const i of e.members){if(!nu(i))break;n=i}return n}function gXe(e,n,i,c,u){const d=he.createKeywordTypeNode(154),h=he.createParameterDeclaration(void 0,void 0,"x",void 0,d,void 0),S=he.createIndexSignature(void 0,[h],u),E=zs.ChangeTracker.with(e,P=>P.insertMemberAtStart(n,i,S));return xI(F6,E,[N.Add_index_signature_for_property_0,c])}function Kft(e,n){const{parentDeclaration:i,declSourceFile:c,modifierFlags:u,token:d,call:h}=n;if(h===void 0)return;const S=d.text,E=k=>zs.ChangeTracker.with(e,F=>hXe(e,F,h,d,k,i,c)),P=[Rd(F6,E(u&256),[u&256?N.Declare_static_method_0:N.Declare_method_0,S],F6,N.Add_all_missing_members)];return u&2&&P.unshift(xI(F6,E(2),[N.Declare_private_method_0,S])),P}function hXe(e,n,i,c,u,d,h){const S=Z3(h,e.program,e.preferences,e.host),E=Fl(d)?174:173,P=Yle(E,e,S,i,c,u,d),k=Yft(d,i);k?n.insertNodeAfter(h,k,P):n.insertMemberAtStart(h,d,P),S.writeFixes(n)}function X7e(e,n,{token:i,parentDeclaration:c}){const u=gt(c.members,h=>{const S=n.getTypeAtLocation(h);return!!(S&&S.flags&402653316)}),d=he.createEnumMember(i,u?he.createStringLiteral(i.text):void 0);e.replaceNode(c.getSourceFile(),c,he.updateEnumDeclaration(c,c.modifiers,c.name,Hi(c.members,X5(d))),{leadingTriviaOption:zs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:zs.TrailingTriviaOption.Exclude})}function Y7e(e,n,i){const c=OS(n.sourceFile,n.preferences),u=Z3(n.sourceFile,n.program,n.preferences,n.host),d=i.kind===2?Yle(262,n,u,i.call,Kr(i.token),i.modifierFlags,i.parentDeclaration):pve(262,n,c,i.signature,jee(N.Function_not_implemented.message,c),i.token,void 0,void 0,void 0,u);d===void 0&&re.fail("fixMissingFunctionDeclaration codefix got unexpected error."),iS(i.parentDeclaration)?e.insertNodeBefore(i.sourceFile,i.parentDeclaration,d,!0):e.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,d),u.writeFixes(e)}function Q7e(e,n,i){const c=Z3(n.sourceFile,n.program,n.preferences,n.host),u=OS(n.sourceFile,n.preferences),d=n.program.getTypeChecker(),h=i.parentDeclaration.attributes,S=gt(h.properties,rT),E=Vn(i.attributes,F=>{const $=qye(n,d,c,u,d.getTypeOfSymbol(F),i.parentDeclaration),J=he.createIdentifier(F.name),X=he.createJsxAttribute(J,he.createJsxExpression(void 0,$));return kl(J,X),X}),P=he.createJsxAttributes(S?[...E,...h.properties]:[...h.properties,...E]),k={prefix:h.pos===h.end?" ":void 0};e.replaceNode(n.sourceFile,h,P,k),c.writeFixes(e)}function Z7e(e,n,i){const c=Z3(n.sourceFile,n.program,n.preferences,n.host),u=OS(n.sourceFile,n.preferences),d=iu(n.program.getCompilerOptions()),h=n.program.getTypeChecker(),S=Vn(i.properties,P=>{const k=qye(n,h,c,u,h.getTypeOfSymbol(P),i.parentDeclaration);return he.createPropertyAssignment(Qft(P,d,u,h),k)}),E={leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Exclude,indentation:i.indentation};e.replaceNode(n.sourceFile,i.parentDeclaration,he.createObjectLiteralExpression([...i.parentDeclaration.properties,...S],!0),E),c.writeFixes(e)}function qye(e,n,i,c,u,d){if(u.flags&3)return tO();if(u.flags&134217732)return he.createStringLiteral("",c===0);if(u.flags&8)return he.createNumericLiteral(0);if(u.flags&64)return he.createBigIntLiteral("0n");if(u.flags&16)return he.createFalse();if(u.flags&1056){const h=u.symbol.exports?V5(u.symbol.exports.values()):u.symbol,S=n.symbolToExpression(u.symbol.parent?u.symbol.parent:u.symbol,111551,void 0,void 0);return h===void 0||S===void 0?he.createNumericLiteral(0):he.createPropertyAccessExpression(S,n.symbolToString(h))}if(u.flags&256)return he.createNumericLiteral(u.value);if(u.flags&2048)return he.createBigIntLiteral(u.value);if(u.flags&128)return he.createStringLiteral(u.value,c===0);if(u.flags&512)return u===n.getFalseType()||u===n.getFalseType(!0)?he.createFalse():he.createTrue();if(u.flags&65536)return he.createNull();if(u.flags&1048576)return Yr(u.types,S=>qye(e,n,i,c,S,d))??tO();if(n.isArrayLikeType(u))return he.createArrayLiteralExpression();if(Zj(u)){const h=Vn(n.getPropertiesOfType(u),S=>{const E=qye(e,n,i,c,n.getTypeOfSymbol(S),d);return he.createPropertyAssignment(S.name,E)});return he.createObjectLiteralExpression(h,!0)}if(ji(u)&16){if(lr(u.symbol.declarations||Yn,bb(e0,pg,tm))===void 0)return tO();const S=n.getSignaturesOfType(u,0);return S===void 0?tO():pve(218,e,c,S[0],jee(N.Function_not_implemented.message,c),void 0,void 0,void 0,d,i)??tO()}if(ji(u)&1){const h=RS(u.symbol);if(h===void 0||Ab(h))return tO();const S=sC(h);return S&&Nt(S.parameters)?tO():he.createNewExpression(he.createIdentifier(u.symbol.name),void 0,void 0)}return tO()}function tO(){return he.createIdentifier("undefined")}function Zj(e){return e.flags&524288&&(ji(e)&128||e.symbol&&to(Vb(e.symbol.declarations),rS))}function Xft(e,n,i){const c=e.getContextualType(i.attributes);if(c===void 0)return Yn;const u=c.getProperties();if(!Nt(u))return Yn;const d=new Set;for(const h of i.attributes.properties)if(tx(h)&&d.add(m3(h.name)),rT(h)){const S=e.getTypeAtLocation(h.expression);for(const E of S.getProperties())d.add(E.escapedName)}return gi(u,h=>H2(h.name,n,1)&&!(h.flags&16777216||I_(h)&48||d.has(h.escapedName)))}function Yft(e,n){if(rS(e))return;const i=Ua(n,c=>tm(c)||Lh(c));return i&&i.parent===e?i:void 0}function Qft(e,n,i,c){if(Vm(e)){const u=c.symbolToNode(e,111551,void 0,1073741824);if(u&&Qf(u))return u}return QH(e.name,n,i===0,!1,!1)}function yXe(e){if(Ua(e,CP)){const n=Ua(e.parent,iS);if(n)return n}return ts(e)}var F6,LP,eV,tV,Oee,eFe=G({"src/services/codefixes/fixAddMissingMember.ts"(){xl(),If(),F6="fixMissingMember",LP="fixMissingProperties",eV="fixMissingAttributes",tV="fixMissingFunctionDeclaration",Oee=[N.Property_0_does_not_exist_on_type_1.code,N.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,N.Property_0_is_missing_in_type_1_but_required_in_type_2.code,N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,N.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Cannot_find_name_0.code],Hc({errorCodes:Oee,getCodeActions(e){const n=e.program.getTypeChecker(),i=fXe(e.sourceFile,e.span.start,e.errorCode,n,e.program);if(i){if(i.kind===3){const c=zs.ChangeTracker.with(e,u=>Z7e(u,e,i));return[Rd(LP,c,N.Add_missing_properties,LP,N.Add_all_missing_properties)]}if(i.kind===4){const c=zs.ChangeTracker.with(e,u=>Q7e(u,e,i));return[Rd(eV,c,N.Add_missing_attributes,eV,N.Add_all_missing_attributes)]}if(i.kind===2||i.kind===5){const c=zs.ChangeTracker.with(e,u=>Y7e(u,e,i));return[Rd(tV,c,[N.Add_missing_function_declaration_0,i.token.text],tV,N.Add_all_missing_function_declarations)]}if(i.kind===1){const c=zs.ChangeTracker.with(e,u=>X7e(u,e.program.getTypeChecker(),i));return[Rd(F6,c,[N.Add_missing_enum_member_0,i.token.text],F6,N.Add_all_missing_members)]}return Hi(Kft(e,i),_Xe(e,i))}},fixIds:[F6,tV,LP,eV],getAllCodeActions:e=>{const{program:n,fixId:i}=e,c=n.getTypeChecker(),u=new Map,d=new Map;return Iq(zs.ChangeTracker.with(e,h=>{GR(e,Oee,S=>{const E=fXe(S.file,S.start,S.code,c,e.program);if(!(!E||!y0(u,vm(E.parentDeclaration)+"#"+E.token.text))){if(i===tV&&(E.kind===2||E.kind===5))Y7e(h,e,E);else if(i===LP&&E.kind===3)Z7e(h,e,E);else if(i===eV&&E.kind===4)Q7e(h,e,E);else if(E.kind===1&&X7e(h,c,E),E.kind===0){const{parentDeclaration:P,token:k}=E,F=Jw(d,P,()=>[]);F.some($=>$.token.text===k.text)||F.push(E)}}}),d.forEach((S,E)=>{const P=rS(E)?void 0:KFe(E,c);for(const k of S){if(P!=null&&P.some(ve=>{const we=d.get(ve);return!!we&&we.some(({token:Fe})=>Fe.text===k.token.text)}))continue;const{parentDeclaration:F,declSourceFile:$,modifierFlags:J,token:X,call:ie,isJSFile:ae}=k;if(ie&&!Lu(X))hXe(e,h,ie,X,J&256,F,$);else if(ae&&!xp(F)&&!rS(F))dXe(h,$,F,X,!!(J&256));else{const ve=mXe(c,F,X);q7e(h,$,F,X.text,ve,J&256)}}})}))}})}});function vXe(e,n,i){const c=uc(bXe(n,i),xd),u=he.createNewExpression(c.expression,c.typeArguments,c.arguments);e.replaceNode(n,c,u)}function bXe(e,n){let i=Lf(e,n.start);const c=Xy(n);for(;i.endvXe(u,n,i));return[Rd(LIe,c,N.Add_missing_new_operator_to_call,LIe,N.Add_missing_new_operator_to_all_calls)]},fixIds:[LIe],getAllCodeActions:e=>Sg(e,Dle,(n,i)=>vXe(n,e.sourceFile,i))})}});function TXe(e,n){return{type:"install package",file:e,packageName:n}}function nFe(e,n){const i=to(Lf(e,n),Sd);if(!i)return;const c=i.text,{packageName:u}=fae(c);return Kv(u)?void 0:u}function rFe(e,n,i){var c;return i===Ile?kk.nodeCoreModules.has(e)?"@types/node":void 0:(c=n.isKnownTypesPackageName)!=null&&c.call(n,e)?pae(e):void 0}var iFe,Kye,Ile,Xye,oFe=G({"src/services/codefixes/fixCannotFindModule.ts"(){xl(),If(),iFe="fixCannotFindModule",Kye="installTypesPackage",Ile=N.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Xye=[Ile,N.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Hc({errorCodes:Xye,getCodeActions:function(n){const{host:i,sourceFile:c,span:{start:u}}=n,d=nFe(c,u);if(d===void 0)return;const h=rFe(d,i,n.errorCode);return h===void 0?[]:[Rd(iFe,[],[N.Install_0,h],Kye,N.Install_all_missing_types_packages,TXe(c.fileName,h))]},fixIds:[Kye],getAllCodeActions:e=>Sg(e,Xye,(n,i,c)=>{const u=nFe(i.file,i.start);if(u!==void 0)switch(e.fixId){case Kye:{const d=rFe(u,e.host,i.code);d&&c.push(TXe(i.file.fileName,d));break}default:re.fail(`Bad fixId: ${e.fixId}`)}})})}});function SXe(e,n){const i=Lf(e,n);return uc(i.parent,Fl)}function aFe(e,n,i,c,u){const d=YC(e),h=i.program.getTypeChecker(),S=h.getTypeAtLocation(d),E=h.getPropertiesOfType(S).filter(EXe),P=Z3(n,i.program,u,i.host);jFe(e,E,n,i,u,P,k=>c.insertMemberAtStart(n,e,k)),P.writeFixes(c)}function EXe(e){const n=ZC(Dl(e.getDeclarations()));return!(n&2)&&!!(n&64)}var sFe,kle,OIe=G({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){xl(),If(),sFe=[N.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],kle="fixClassDoesntImplementInheritedAbstractMember",Hc({errorCodes:sFe,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=zs.ChangeTracker.with(n,d=>aFe(SXe(i,c.start),i,n,d,n.preferences));return u.length===0?void 0:[Rd(kle,u,N.Implement_inherited_abstract_class,kle,N.Implement_all_inherited_abstract_classes)]},fixIds:[kle],getAllCodeActions:function(n){const i=new Map;return Sg(n,sFe,(c,u)=>{const d=SXe(u.file,u.start);y0(i,vm(d))&&aFe(d,n.sourceFile,n,c,n.preferences)})}})}});function xXe(e,n,i,c){e.insertNodeAtConstructorStart(n,i,c),e.delete(n,c)}function cFe(e,n){const i=Lf(e,n);if(i.kind!==110)return;const c=zE(i),u=lFe(c.body);return u&&!u.expression.arguments.some(d=>Ac(d)&&d.expression===i)?{constructor:c,superCall:u}:void 0}function lFe(e){return kb(e)&&h1(e.expression)?e:F_(e)?void 0:s_(e,lFe)}var Yye,Ple,uFe=G({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){xl(),If(),Yye="classSuperMustPrecedeThisAccess",Ple=[N.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Hc({errorCodes:Ple,getCodeActions(e){const{sourceFile:n,span:i}=e,c=cFe(n,i.start);if(!c)return;const{constructor:u,superCall:d}=c,h=zs.ChangeTracker.with(e,S=>xXe(S,n,u,d));return[Rd(Yye,h,N.Make_super_call_the_first_statement_in_the_constructor,Yye,N.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Yye],getAllCodeActions(e){const{sourceFile:n}=e,i=new Map;return Sg(e,Ple,(c,u)=>{const d=cFe(u.file,u.start);if(!d)return;const{constructor:h,superCall:S}=d;y0(i,vm(h.parent))&&xXe(c,n,h,S)})}})}});function AXe(e,n){const i=Lf(e,n);return re.assert(Lh(i.parent),"token should be at the constructor declaration"),i.parent}function fFe(e,n,i){const c=he.createExpressionStatement(he.createCallExpression(he.createSuper(),void 0,Yn));e.insertNodeAtConstructorStart(n,i,c)}var Qye,Nle,_Fe=G({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){xl(),If(),Qye="constructorForDerivedNeedSuperCall",Nle=[N.Constructors_for_derived_classes_must_contain_a_super_call.code],Hc({errorCodes:Nle,getCodeActions(e){const{sourceFile:n,span:i}=e,c=AXe(n,i.start),u=zs.ChangeTracker.with(e,d=>fFe(d,n,c));return[Rd(Qye,u,N.Add_missing_super_call,Qye,N.Add_all_missing_super_calls)]},fixIds:[Qye],getAllCodeActions:e=>Sg(e,Nle,(n,i)=>fFe(n,e.sourceFile,AXe(i.file,i.start)))})}});function CXe(e,n){hve(e,n,"jsx",he.createStringLiteral("react"))}var FIe,Zye,dFe=G({"src/services/codefixes/fixEnableJsxFlag.ts"(){xl(),If(),FIe="fixEnableJsxFlag",Zye=[N.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Hc({errorCodes:Zye,getCodeActions:function(n){const{configFile:i}=n.program.getCompilerOptions();if(i===void 0)return;const c=zs.ChangeTracker.with(n,u=>CXe(u,i));return[xI(FIe,c,N.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[FIe],getAllCodeActions:e=>Sg(e,Zye,n=>{const{configFile:i}=e.program.getCompilerOptions();i!==void 0&&CXe(n,i)})})}});function DXe(e,n,i){const c=lr(e.getSemanticDiagnostics(n),h=>h.start===i.start&&h.length===i.length);if(c===void 0||c.relatedInformation===void 0)return;const u=lr(c.relatedInformation,h=>h.code===N.Did_you_mean_0.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;const d=mB(u.file,p1(u.start,u.length));if(d!==void 0&&kr(d)&&Ds(d.parent))return{suggestion:IXe(u.messageText),expression:d.parent,arg:d}}function pFe(e,n,i,c){const u=he.createCallExpression(he.createPropertyAccessExpression(he.createIdentifier("Number"),he.createIdentifier("isNaN")),void 0,[i]),d=c.operatorToken.kind;e.replaceNode(n,c,d===38||d===36?he.createPrefixUnaryExpression(54,u):u)}function IXe(e){const[n,i]=D2(e,` +`,0).match(/'(.*)'/)||[];return i}var WIe,wle,mFe=G({"src/services/codefixes/fixNaNEquality.ts"(){xl(),If(),WIe="fixNaNEquality",wle=[N.This_condition_will_always_return_0.code],Hc({errorCodes:wle,getCodeActions(e){const{sourceFile:n,span:i,program:c}=e,u=DXe(c,n,i);if(u===void 0)return;const{suggestion:d,expression:h,arg:S}=u,E=zs.ChangeTracker.with(e,P=>pFe(P,n,S,h));return[Rd(WIe,E,[N.Use_0,d],WIe,N.Use_Number_isNaN_in_all_conditions)]},fixIds:[WIe],getAllCodeActions:e=>Sg(e,wle,(n,i)=>{const c=DXe(e.program,i.file,p1(i.start,i.length));c&&pFe(n,i.file,c.arg,c.expression)})})}}),Zft=G({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){xl(),If(),Hc({errorCodes:[N.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,N.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,N.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(n){const i=n.program.getCompilerOptions(),{configFile:c}=i;if(c===void 0)return;const u=[],d=Zp(i);if(d>=5&&d<99){const P=zs.ChangeTracker.with(n,k=>{hve(k,c,"module",he.createStringLiteral("esnext"))});u.push(xI("fixModuleOption",P,[N.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const S=iu(i);if(S<4||S>99){const P=zs.ChangeTracker.with(n,k=>{if(!eG(c))return;const $=[["target",he.createStringLiteral("es2017")]];d===1&&$.push(["module",he.createStringLiteral("commonjs")]),Vee(k,c,$)});u.push(xI("fixTargetOption",P,[N.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return u.length?u:void 0}})}});function kXe(e,n,i){e.replaceNode(n,i,he.createPropertyAssignment(i.name,i.objectAssignmentInitializer))}function gFe(e,n){return uc(Lf(e,n).parent,XE)}var eve,Rle,hFe=G({"src/services/codefixes/fixPropertyAssignment.ts"(){xl(),If(),eve="fixPropertyAssignment",Rle=[N.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],Hc({errorCodes:Rle,fixIds:[eve],getCodeActions(e){const{sourceFile:n,span:i}=e,c=gFe(n,i.start),u=zs.ChangeTracker.with(e,d=>kXe(d,e.sourceFile,c));return[Rd(eve,u,[N.Change_0_to_1,"=",":"],eve,[N.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Sg(e,Rle,(n,i)=>kXe(n,i.file,gFe(i.file,i.start)))})}});function PXe(e,n){const i=Lf(e,n),c=$b(i).heritageClauses,u=c[0].getFirstToken();return u.kind===96?{extendsToken:u,heritageClauses:c}:void 0}function yFe(e,n,i,c){if(e.replaceNode(n,i,he.createToken(119)),c.length===2&&c[0].token===96&&c[1].token===119){const u=c[1].getFirstToken(),d=u.getFullStart();e.replaceRange(n,{pos:d,end:d},he.createToken(28));const h=n.text;let S=u.end;for(;SyFe(h,n,c,u));return[Rd(tve,d,N.Change_extends_to_implements,tve,N.Change_all_extended_interfaces_to_implements)]},fixIds:[tve],getAllCodeActions:e=>Sg(e,Mle,(n,i)=>{const c=PXe(i.file,i.start);c&&yFe(n,i.file,c.extendsToken,c.heritageClauses)})})}});function NXe(e,n,i){const c=Lf(e,n);if(xn(c)||Lu(c))return{node:c,className:i===Lle?$b(c).name.text:void 0}}function bFe(e,n,{node:i,className:c}){zT(i),e.replaceNode(n,i,he.createPropertyAccessExpression(c?he.createIdentifier(c):he.createThis(),i))}var nve,Lle,rve,TFe=G({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){xl(),If(),nve="forgottenThisPropertyAccess",Lle=N.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,rve=[N.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,N.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,Lle],Hc({errorCodes:rve,getCodeActions(e){const{sourceFile:n}=e,i=NXe(n,e.span.start,e.errorCode);if(!i)return;const c=zs.ChangeTracker.with(e,u=>bFe(u,n,i));return[Rd(nve,c,[N.Add_0_to_unresolved_variable,i.className||"this"],nve,N.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[nve],getAllCodeActions:e=>Sg(e,rve,(n,i)=>{const c=NXe(i.file,i.start,i.code);c&&bFe(n,e.sourceFile,c)})})}});function e_t(e){return ef(ive,e)}function SFe(e,n,i,c,u){const d=i.getText()[c];if(!e_t(d))return;const h=u?ive[d]:`{${VZ(i,n,d)}}`;e.replaceRangeWithText(i,{pos:c,end:c+1},h)}var Ole,Lq,Fee,ive,EFe=G({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){xl(),If(),Ole="fixInvalidJsxCharacters_expression",Lq="fixInvalidJsxCharacters_htmlEntity",Fee=[N.Unexpected_token_Did_you_mean_or_gt.code,N.Unexpected_token_Did_you_mean_or_rbrace.code],Hc({errorCodes:Fee,fixIds:[Ole,Lq],getCodeActions(e){const{sourceFile:n,preferences:i,span:c}=e,u=zs.ChangeTracker.with(e,h=>SFe(h,i,n,c.start,!1)),d=zs.ChangeTracker.with(e,h=>SFe(h,i,n,c.start,!0));return[Rd(Ole,u,N.Wrap_invalid_character_in_an_expression_container,Ole,N.Wrap_all_invalid_characters_in_an_expression_container),Rd(Lq,d,N.Convert_invalid_character_to_its_html_entity_code,Lq,N.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Sg(e,Fee,(n,i)=>SFe(n,e.preferences,i.file,i.start,e.fixId===Lq))}}),ive={">":">","}":"}"}}});function t_t(e,{name:n,jsDocHost:i,jsDocParameterTag:c}){const u=zs.ChangeTracker.with(e,d=>d.filterJSDocTags(e.sourceFile,i,h=>h!==c));return Rd(Fle,u,[N.Delete_unused_param_tag_0,n.getText(e.sourceFile)],Fle,N.Delete_all_unused_param_tags)}function n_t(e,{name:n,jsDocHost:i,signature:c,jsDocParameterTag:u}){if(!Nt(c.parameters))return;const d=e.sourceFile,h=WM(c),S=new Set;for(const F of h)A2(F)&&xn(F.name)&&S.add(F.name.escapedText);const E=Yr(c.parameters,F=>xn(F.name)&&!S.has(F.name.escapedText)?F.name.getText(d):void 0);if(E===void 0)return;const P=he.updateJSDocParameterTag(u,u.tagName,he.createIdentifier(E),u.isBracketed,u.typeExpression,u.isNameFirst,u.comment),k=zs.ChangeTracker.with(e,F=>F.replaceJSDocComment(d,i,Vn(h,$=>$===u?P:$)));return xI(Wee,k,[N.Rename_param_tag_name_0_to_1,n.getText(d),E])}function wXe(e,n){const i=Lf(e,n);if(i.parent&&A2(i.parent)&&xn(i.parent.name)){const c=i.parent,u=k7(c),d=LN(c);if(u&&d)return{jsDocHost:u,signature:d,name:i.parent.name,jsDocParameterTag:c}}}var Fle,Wee,ove,xFe=G({"src/services/codefixes/fixUnmatchedParameter.ts"(){xl(),If(),Fle="deleteUnmatchedParameter",Wee="renameUnmatchedParameter",ove=[N.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Hc({fixIds:[Fle,Wee],errorCodes:ove,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=[],d=wXe(i,c.start);if(d)return ur(u,t_t(n,d)),ur(u,n_t(n,d)),u},getAllCodeActions:function(n){const i=new Map;return Iq(zs.ChangeTracker.with(n,c=>{GR(n,ove,({file:u,start:d})=>{const h=wXe(u,d);h&&i.set(h.signature,ur(i.get(h.signature),h.jsDocParameterTag))}),i.forEach((u,d)=>{if(n.fixId===Fle){const h=new Set(u);c.filterJSDocTags(d.getSourceFile(),d,S=>!h.has(S))}})}))}})}});function r_t(e,n,i){const c=to(Lf(e,i),xn);if(!c||c.parent.kind!==183)return;const d=n.getTypeChecker().getSymbolAtLocation(c);return lr((d==null?void 0:d.declarations)||Yn,bb(Tk,qE,Yb))}function i_t(e,n,i,c){if(i.kind===271){e.insertModifierBefore(n,156,i.name);return}const u=i.kind===273?i:i.parent.parent;if(u.name&&u.namedBindings)return;const d=c.getTypeChecker();aG(u,S=>{if(dg(S.symbol,d).flags&111551)return!0})||e.insertModifierBefore(n,156,u)}function o_t(e,n,i,c){MF.doChangeNamedToNamespaceOrDefault(n,c,e,i.parent)}var BIe,ave,RXe=G({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){xl(),If(),BIe="fixUnreferenceableDecoratorMetadata",ave=[N.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Hc({errorCodes:ave,getCodeActions:e=>{const n=r_t(e.sourceFile,e.program,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,d=>n.kind===276&&o_t(d,e.sourceFile,n,e.program)),c=zs.ChangeTracker.with(e,d=>i_t(d,e.sourceFile,n,e.program));let u;return i.length&&(u=ur(u,xI(BIe,i,N.Convert_named_imports_to_namespace_import))),c.length&&(u=ur(u,xI(BIe,c,N.Use_import_type))),u},fixIds:[BIe]})}});function MXe(e,n,i){e.replaceNode(n,i.parent,he.createKeywordTypeNode(159))}function Bee(e,n){return Rd(Wle,e,n,Gee,N.Delete_all_unused_declarations)}function zee(e,n,i){e.delete(n,re.checkDefined(uc(i.parent,mie).typeParameters,"The type parameter to delete should exist"))}function zIe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function GIe(e){return e.kind===102?to(e.parent,n0):void 0}function AFe(e,n){return Kp(n.parent)&&Dl(n.parent.getChildren(e))===n}function CFe(e,n,i){e.delete(n,i.parent.kind===243?i.parent:i)}function LXe(e,n,i){Ot(i.elements,c=>e.delete(n,c))}function a_t(e,n,i,{parent:c}){if(Kc(c)&&c.initializer&&uR(c.initializer))if(Kp(c.parent)&&Nt(c.parent.declarations)>1){const u=c.parent.parent,d=u.getStart(i),h=u.end;n.delete(i,c),n.insertNodeAt(i,h,c.initializer,{prefix:R6(e.host,e.formatContext.options)+i.text.slice(Yge(i.text,d-1),d),suffix:$Z(i)?";":""})}else n.replaceNode(i,c.parent,c.initializer);else n.delete(i,c)}function OXe(e,n,i,c){n!==N.Property_0_is_declared_but_its_value_is_never_read.code&&(c.kind===140&&(c=uc(c.parent,KN).typeParameter.name),xn(c)&&FXe(c)&&(e.replaceNode(i,c,he.createIdentifier(`_${c.text}`)),Os(c.parent)&&o_(c.parent).forEach(u=>{xn(u.name)&&e.replaceNode(i,u.name,he.createIdentifier(`_${u.name.text}`))})))}function FXe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function jIe(e,n,i,c,u,d,h,S){VIe(n,i,e,c,u,d,h,S),xn(n)&&Wf.Core.eachSymbolReferenceInFile(n,c,e,E=>{Ac(E.parent)&&E.parent.name===E&&(E=E.parent),!S&&GXe(E)&&i.delete(e,E.parent.parent)})}function VIe(e,n,i,c,u,d,h,S){const{parent:E}=e;if(Os(E))s_t(n,i,E,c,u,d,h,S);else if(!(S&&xn(e)&&Wf.Core.isSymbolReferencedInFile(e,c,i))){const P=Tk(E)?e:Qf(E)?E.parent:E;re.assert(P!==i,"should not delete whole source file"),n.delete(i,P)}}function s_t(e,n,i,c,u,d,h,S=!1){if(BXe(c,n,i,u,d,h,S))if(i.modifiers&&i.modifiers.length>0&&(!xn(i.name)||Wf.Core.isSymbolReferencedInFile(i.name,c,n)))for(const E of i.modifiers)Mf(E)&&e.deleteModifier(n,E);else!i.initializer&&WXe(i,c,u)&&e.delete(n,i)}function WXe(e,n,i){const c=e.parent.parameters.indexOf(e);return!Wf.Core.someSignatureUsage(e.parent,i,n,(u,d)=>!d||d.arguments.length>c)}function BXe(e,n,i,c,u,d,h){const{parent:S}=i;switch(S.kind){case 174:case 176:const E=S.parameters.indexOf(i),P=tm(S)?S.name:S,k=Wf.Core.getReferencedSymbolsForNode(S.pos,P,u,c,d);if(k){for(const F of k)for(const $ of F.references)if($.kind===Wf.EntryKind.Node){const J=nT($.node)&&xd($.node.parent)&&$.node.parent.arguments.length>E,X=Ac($.node.parent)&&nT($.node.parent.expression)&&xd($.node.parent.parent)&&$.node.parent.parent.arguments.length>E,ie=(tm($.node.parent)||pg($.node.parent))&&$.node.parent!==i.parent&&$.node.parent.parameters.length>E;if(J||X||ie)return!1}}return!0;case 262:return S.name&&c_t(e,n,S.name)?zXe(S,i,h):!0;case 218:case 219:return zXe(S,i,h);case 178:return!1;case 177:return!0;default:return re.failBadSyntaxKind(S)}}function c_t(e,n,i){return!!Wf.Core.eachSymbolReferenceInFile(i,e,n,c=>xn(c)&&xd(c.parent)&&c.parent.arguments.includes(c))}function zXe(e,n,i){const c=e.parameters,u=c.indexOf(n);return re.assert(u!==-1,"The parameter should already be in the list"),i?c.slice(u+1).every(d=>xn(d.name)&&!d.symbol.isReferenced):u===c.length-1}function GXe(e){return(Ds(e.parent)&&e.parent.left===e||(jY(e.parent)||vk(e.parent))&&e.parent.operand===e)&&kb(e.parent.parent)}var Wle,nV,Gee,Oq,Fq,Ble,DFe=G({"src/services/codefixes/fixUnusedIdentifier.ts"(){xl(),If(),Wle="unusedIdentifier",nV="unusedIdentifier_prefix",Gee="unusedIdentifier_delete",Oq="unusedIdentifier_deleteImports",Fq="unusedIdentifier_infer",Ble=[N._0_is_declared_but_its_value_is_never_read.code,N._0_is_declared_but_never_used.code,N.Property_0_is_declared_but_its_value_is_never_read.code,N.All_imports_in_import_declaration_are_unused.code,N.All_destructured_elements_are_unused.code,N.All_variables_are_unused.code,N.All_type_parameters_are_unused.code],Hc({errorCodes:Ble,getCodeActions(e){const{errorCode:n,sourceFile:i,program:c,cancellationToken:u}=e,d=c.getTypeChecker(),h=c.getSourceFiles(),S=Lf(i,e.span.start);if(CA(S))return[Bee(zs.ChangeTracker.with(e,F=>F.delete(i,S)),N.Remove_template_tag)];if(S.kind===30){const F=zs.ChangeTracker.with(e,$=>zee($,i,S));return[Bee(F,N.Remove_type_parameters)]}const E=GIe(S);if(E){const F=zs.ChangeTracker.with(e,$=>$.delete(i,E));return[Rd(Wle,F,[N.Remove_import_from_0,kSe(E)],Oq,N.Delete_all_unused_imports)]}else if(zIe(S)){const F=zs.ChangeTracker.with(e,$=>jIe(i,S,$,d,h,c,u,!1));if(F.length)return[Rd(Wle,F,[N.Remove_unused_declaration_for_Colon_0,S.getText(i)],Oq,N.Delete_all_unused_imports)]}if(Ch(S.parent)||Wd(S.parent)){if(Os(S.parent.parent)){const F=S.parent.elements,$=[F.length>1?N.Remove_unused_declarations_for_Colon_0:N.Remove_unused_declaration_for_Colon_0,Vn(F,J=>J.getText(i)).join(", ")];return[Bee(zs.ChangeTracker.with(e,J=>LXe(J,i,S.parent)),$)]}return[Bee(zs.ChangeTracker.with(e,F=>a_t(e,F,i,S.parent)),N.Remove_unused_destructuring_declaration)]}if(AFe(i,S))return[Bee(zs.ChangeTracker.with(e,F=>CFe(F,i,S.parent)),N.Remove_variable_statement)];const P=[];if(S.kind===140){const F=zs.ChangeTracker.with(e,J=>MXe(J,i,S)),$=uc(S.parent,KN).typeParameter.name.text;P.push(Rd(Wle,F,[N.Replace_infer_0_with_unknown,$],Fq,N.Replace_all_unused_infer_with_unknown))}else{const F=zs.ChangeTracker.with(e,$=>jIe(i,S,$,d,h,c,u,!1));if(F.length){const $=Qf(S.parent)?S.parent:S;P.push(Bee(F,[N.Remove_unused_declaration_for_Colon_0,$.getText(i)]))}}const k=zs.ChangeTracker.with(e,F=>OXe(F,n,i,S));return k.length&&P.push(Rd(Wle,k,[N.Prefix_0_with_an_underscore,S.getText(i)],nV,N.Prefix_all_unused_declarations_with_where_possible)),P},fixIds:[nV,Gee,Oq,Fq],getAllCodeActions:e=>{const{sourceFile:n,program:i,cancellationToken:c}=e,u=i.getTypeChecker(),d=i.getSourceFiles();return Sg(e,Ble,(h,S)=>{const E=Lf(n,S.start);switch(e.fixId){case nV:OXe(h,S.code,n,E);break;case Oq:{const P=GIe(E);P?h.delete(n,P):zIe(E)&&jIe(n,E,h,u,d,i,c,!0);break}case Gee:{if(E.kind===140||zIe(E))break;if(CA(E))h.delete(n,E);else if(E.kind===30)zee(h,n,E);else if(Ch(E.parent)){if(E.parent.parent.initializer)break;(!Os(E.parent.parent)||WXe(E.parent.parent,u,d))&&h.delete(n,E.parent.parent)}else{if(Wd(E.parent.parent)&&E.parent.parent.parent.initializer)break;AFe(n,E)?CFe(h,n,E.parent):jIe(n,E,h,u,d,i,c,!0)}break}case Fq:E.kind===140&&MXe(h,n,E);break;default:re.fail(JSON.stringify(e.fixId))}})}})}});function jXe(e,n,i,c,u){const d=Lf(n,i),h=Ua(d,dl);if(h.getStart(n)!==d.getStart(n)){const E=JSON.stringify({statementKind:re.formatSyntaxKind(h.kind),tokenKind:re.formatSyntaxKind(d.kind),errorCode:u,start:i,length:c});re.fail("Token and statement should start at the same point. "+E)}const S=(Ou(h.parent)?h.parent:h).parent;if(!Ou(h.parent)||h===Dl(h.parent.statements))switch(S.kind){case 245:if(S.elseStatement){if(Ou(h.parent))break;e.replaceNode(n,h,he.createBlock(Yn));return}case 247:case 248:e.delete(n,S);return}if(Ou(h.parent)){const E=i+c,P=re.checkDefined(VXe(soe(h.parent.statements,h),k=>k.posjXe(c,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Rd(UIe,i,N.Remove_unreachable_code,UIe,N.Remove_all_unreachable_code)]},fixIds:[UIe],getAllCodeActions:e=>Sg(e,zle,(n,i)=>jXe(n,i.file,i.start,i.length,i.code))})}});function UXe(e,n,i){const c=Lf(n,i),u=uc(c.parent,tF),d=c.getStart(n),h=u.statement.getStart(n),S=mv(d,h,n)?h:Ff(n.text,qm(u,59,n).end,!0);e.deleteRange(n,{pos:d,end:S})}var sve,Gle,kFe=G({"src/services/codefixes/fixUnusedLabel.ts"(){xl(),If(),sve="fixUnusedLabel",Gle=[N.Unused_label.code],Hc({errorCodes:Gle,getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>UXe(i,e.sourceFile,e.span.start));return[Rd(sve,n,N.Remove_unused_label,sve,N.Remove_all_unused_labels)]},fixIds:[sve],getAllCodeActions:e=>Sg(e,Gle,(n,i)=>UXe(n,i.file,i.start))})}});function HXe(e,n,i,c,u){e.replaceNode(n,i,u.typeToTypeNode(c,i,void 0))}function PFe(e,n,i){const c=Ua(Lf(e,n),JXe),u=c&&c.type;return u&&{typeNode:u,type:l_t(i,u)}}function JXe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function l_t(e,n){if(WJ(n)){const i=e.getTypeFromTypeNode(n.type);return i===e.getNeverType()||i===e.getVoidType()?i:e.getUnionType(ur([i,e.getUndefinedType()],n.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(n)}var NFe,jle,Vle,wFe=G({"src/services/codefixes/fixJSDocTypes.ts"(){xl(),If(),NFe="fixJSDocTypes_plain",jle="fixJSDocTypes_nullable",Vle=[N.JSDoc_types_can_only_be_used_inside_documentation_comments.code,N._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,N._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Hc({errorCodes:Vle,getCodeActions(e){const{sourceFile:n}=e,i=e.program.getTypeChecker(),c=PFe(n,e.span.start,i);if(!c)return;const{typeNode:u,type:d}=c,h=u.getText(n),S=[E(d,NFe,N.Change_all_jsdoc_style_types_to_TypeScript)];return u.kind===321&&S.push(E(d,jle,N.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),S;function E(P,k,F){const $=zs.ChangeTracker.with(e,J=>HXe(J,n,u,P,i));return Rd("jdocTypes",$,[N.Change_0_to_1,h,i.typeToString(P)],k,F)}},fixIds:[NFe,jle],getAllCodeActions(e){const{fixId:n,program:i,sourceFile:c}=e,u=i.getTypeChecker();return Sg(e,Vle,(d,h)=>{const S=PFe(h.file,h.start,u);if(!S)return;const{typeNode:E,type:P}=S,k=E.kind===321&&n===jle?u.getNullableType(P,32768):P;HXe(d,c,E,k,u)})}})}});function $Xe(e,n,i){e.replaceNodeWithText(n,i,`${i.text}()`)}function RFe(e,n){const i=Lf(e,n);if(Ac(i.parent)){let c=i.parent;for(;Ac(c.parent);)c=c.parent;return c.name}if(xn(i))return i}var cve,Ule,MFe=G({"src/services/codefixes/fixMissingCallParentheses.ts"(){xl(),If(),cve="fixMissingCallParentheses",Ule=[N.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Hc({errorCodes:Ule,fixIds:[cve],getCodeActions(e){const{sourceFile:n,span:i}=e,c=RFe(n,i.start);if(!c)return;const u=zs.ChangeTracker.with(e,d=>$Xe(d,e.sourceFile,c));return[Rd(cve,u,N.Add_missing_call_parentheses,cve,N.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Sg(e,Ule,(n,i)=>{const c=RFe(i.file,i.start);c&&$Xe(n,i.file,c)})})}});function u_t(e){if(e.type)return e.type;if(Kc(e.parent)&&e.parent.type&&e0(e.parent.type))return e.parent.type.type}function qXe(e,n){const i=Lf(e,n),c=zE(i);if(!c)return;let u;switch(c.kind){case 174:u=c.name;break;case 262:case 218:u=qm(c,100,e);break;case 219:const d=c.typeParameters?30:21;u=qm(c,d,e)||Dl(c.parameters);break;default:return}return u&&{insertBefore:u,returnType:u_t(c)}}function LFe(e,n,{insertBefore:i,returnType:c}){if(c){const u=cY(c);(!u||u.kind!==80||u.text!=="Promise")&&e.replaceNode(n,c,he.createTypeReferenceNode("Promise",he.createNodeArray([c])))}e.insertModifierBefore(n,134,i)}var lve,Hle,OFe=G({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){xl(),If(),lve="fixAwaitInSyncFunction",Hle=[N.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,N.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Hc({errorCodes:Hle,getCodeActions(e){const{sourceFile:n,span:i}=e,c=qXe(n,i.start);if(!c)return;const u=zs.ChangeTracker.with(e,d=>LFe(d,n,c));return[Rd(lve,u,N.Add_async_modifier_to_containing_function,lve,N.Add_all_missing_async_modifiers)]},fixIds:[lve],getAllCodeActions:function(n){const i=new Map;return Sg(n,Hle,(c,u)=>{const d=qXe(u.file,u.start);!d||!y0(i,vm(d.insertBefore))||LFe(c,n.sourceFile,d)})}})}});function KXe(e,n,i,c,u){let d,h;if(c===N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)d=n,h=n+i;else if(c===N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const S=u.program.getTypeChecker(),E=Lf(e,n).parent;re.assert(GM(E),"error span of fixPropertyOverrideAccessor should only be on an accessor");const P=E.parent;re.assert(Fl(P),"erroneous accessors should only be inside classes");const k=Vb(KFe(P,S));if(!k)return[];const F=Ic(z8(E.name)),$=S.getPropertyOfType(S.getTypeAtLocation(k),F);if(!$||!$.valueDeclaration)return[];d=$.valueDeclaration.pos,h=$.valueDeclaration.end,e=ts($.valueDeclaration)}else re.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+c);return aYe(e,u.program,d,h,u,N.Generate_get_and_set_accessors.message)}var HIe,Jle,JIe=G({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){xl(),If(),HIe=[N._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,N._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Jle="fixPropertyOverrideAccessor",Hc({errorCodes:HIe,getCodeActions(e){const n=KXe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(n)return[Rd(Jle,n,N.Generate_get_and_set_accessors,Jle,N.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Jle],getAllCodeActions:e=>Sg(e,HIe,(n,i)=>{const c=KXe(i.file,i.start,i.length,i.code,e);if(c)for(const u of c)n.pushRaw(e.sourceFile,u)})})}});function f_t(e,n){switch(e){case N.Parameter_0_implicitly_has_an_1_type.code:case N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xb(zE(n))?N.Infer_type_of_0_from_usage:N.Infer_parameter_types_from_usage;case N.Rest_parameter_0_implicitly_has_an_any_type.code:case N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Infer_parameter_types_from_usage;case N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return N.Infer_this_type_of_0_from_usage;default:return N.Infer_type_of_0_from_usage}}function __t(e){switch(e){case N.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Variable_0_implicitly_has_an_1_type.code;case N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Parameter_0_implicitly_has_an_1_type.code;case N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Rest_parameter_0_implicitly_has_an_any_type.code;case N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return N.Member_0_implicitly_has_an_1_type.code}return e}function XXe(e,n,i,c,u,d,h,S,E){if(!cR(i.kind)&&i.kind!==80&&i.kind!==26&&i.kind!==110)return;const{parent:P}=i,k=Z3(n,u,E,S);switch(c=__t(c),c){case N.Member_0_implicitly_has_an_1_type.code:case N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Kc(P)&&h(P)||nu(P)||em(P))return FFe(e,k,n,P,u,S,d),k.writeFixes(e),P;if(Ac(P)){const J=Wq(P.name,u,d),X=iB(J,P,u,S);if(X){const ie=he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(X),void 0);e.addJSDocTags(n,uc(P.parent.parent,kb),[ie])}return k.writeFixes(e),P}return;case N.Variable_0_implicitly_has_an_1_type.code:{const J=u.getTypeChecker().getSymbolAtLocation(i);return J&&J.valueDeclaration&&Kc(J.valueDeclaration)&&h(J.valueDeclaration)?(FFe(e,k,ts(J.valueDeclaration),J.valueDeclaration,u,S,d),k.writeFixes(e),J.valueDeclaration):void 0}}const F=zE(i);if(F===void 0)return;let $;switch(c){case N.Parameter_0_implicitly_has_an_1_type.code:if(Xb(F)){QXe(e,k,n,F,u,S,d),$=F;break}case N.Rest_parameter_0_implicitly_has_an_any_type.code:if(h(F)){const J=uc(P,Os);YXe(e,k,n,J,F,u,S,d),$=J}break;case N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:lE(F)&&xn(F.name)&&(uve(e,k,n,F,Wq(F.name,u,d),u,S),$=F);break;case N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Xb(F)&&(QXe(e,k,n,F,u,S,d),$=F);break;case N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:zs.isThisTypeAnnotatable(F)&&h(F)&&(d_t(e,n,F,u,S,d),$=F);break;default:return re.fail(String(c))}return k.writeFixes(e),$}function FFe(e,n,i,c,u,d,h){xn(c.name)&&uve(e,n,i,c,Wq(c.name,u,h),u,d)}function YXe(e,n,i,c,u,d,h,S){if(!xn(c.name))return;const E=$le(u,i,d,S);if(re.assert(u.parameters.length===E.length,"Parameter count and inference count should match"),Cs(u))ZXe(e,i,E,d,h);else{const P=$m(u)&&!qm(u,21,i);P&&e.insertNodeBefore(i,Dl(u.parameters),he.createToken(21));for(const{declaration:k,type:F}of E)k&&!k.type&&!k.initializer&&uve(e,n,i,k,F,d,h);P&&e.insertNodeAfter(i,yl(u.parameters),he.createToken(22))}}function d_t(e,n,i,c,u,d){const h=eYe(i,n,c,d);if(!h||!h.length)return;const S=KIe(c,h,d).thisParameter(),E=iB(S,i,c,u);E&&(Cs(i)?p_t(e,n,i,E):e.tryInsertThisTypeAnnotation(n,i,E))}function p_t(e,n,i,c){e.addJSDocTags(n,i,[he.createJSDocThisTag(void 0,he.createJSDocTypeExpression(c))])}function QXe(e,n,i,c,u,d,h){const S=pp(c.parameters);if(S&&xn(c.name)&&xn(S.name)){let E=Wq(c.name,u,h);E===u.getTypeChecker().getAnyType()&&(E=Wq(S.name,u,h)),Cs(c)?ZXe(e,i,[{declaration:S,type:E}],u,d):uve(e,n,i,S,E,u,d)}}function uve(e,n,i,c,u,d,h){const S=iB(u,c,d,h);if(S)if(Cs(i)&&c.kind!==171){const E=Kc(c)?to(c.parent.parent,Xg):c;if(!E)return;const P=he.createJSDocTypeExpression(S),k=lE(c)?he.createJSDocReturnTag(void 0,P,void 0):he.createJSDocTypeTag(void 0,P,void 0);e.addJSDocTags(i,E,[k])}else $Ie(S,c,i,e,n,iu(d.getCompilerOptions()))||e.tryInsertTypeAnnotation(i,c,S)}function $Ie(e,n,i,c,u,d){const h=WF(e,d);return h&&c.tryInsertTypeAnnotation(i,n,h.typeNode)?(Ot(h.symbols,S=>u.addImportFromExportedSymbol(S,!0)),!0):!1}function ZXe(e,n,i,c,u){const d=i.length&&i[0].declaration.parent;if(!d)return;const h=Qo(i,S=>{const E=S.declaration;if(E.initializer||iR(E)||!xn(E.name))return;const P=S.type&&iB(S.type,E,c,u);if(P){const k=he.cloneNode(E.name);return _s(k,7168),{name:he.cloneNode(E.name),param:E,isOptional:!!S.isOptional,typeNode:P}}});if(h.length)if($m(d)||Jm(d)){const S=$m(d)&&!qm(d,21,n);S&&e.insertNodeBefore(n,Dl(d.parameters),he.createToken(21)),Ot(h,({typeNode:E,param:P})=>{const k=he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(E)),F=he.createJSDocComment(void 0,[k]);e.insertNodeAt(n,P.getStart(n),F,{suffix:" "})}),S&&e.insertNodeAfter(n,yl(d.parameters),he.createToken(22))}else{const S=Vn(h,({name:E,typeNode:P,isOptional:k})=>he.createJSDocParameterTag(void 0,E,!!k,he.createJSDocTypeExpression(P),!1,void 0));e.addJSDocTags(n,d,S)}}function qIe(e,n,i){return Qo(Wf.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),i),c=>c.kind!==Wf.EntryKind.Span?to(c.node,xn):void 0)}function Wq(e,n,i){const c=qIe(e,n,i);return KIe(n,c,i).single()}function $le(e,n,i,c){const u=eYe(e,n,i,c);return u&&KIe(i,u,c).parameters(e)||e.parameters.map(d=>({declaration:d,type:xn(d.name)?Wq(d.name,i,c):i.getTypeChecker().getAnyType()}))}function eYe(e,n,i,c){let u;switch(e.kind){case 176:u=qm(e,137,n);break;case 219:case 218:const d=e.parent;u=(Kc(d)||nu(d))&&xn(d.name)?d.name:e.name;break;case 262:case 174:case 173:u=e.name;break}if(u)return qIe(u,i,c)}function KIe(e,n,i){const c=e.getTypeChecker(),u={string:()=>c.getStringType(),number:()=>c.getNumberType(),Array:qt=>c.createArrayType(qt),Promise:qt=>c.createPromiseType(qt)},d=[c.getStringType(),c.getNumberType(),c.createArrayType(c.getAnyType()),c.createPromiseType(c.getAnyType())];return{single:E,parameters:P,thisParameter:k};function h(){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 S(qt){const Kt=new Map;for(const Wr of qt)Wr.properties&&Wr.properties.forEach((jt,En)=>{Kt.has(En)||Kt.set(En,[]),Kt.get(En).push(jt)});const wr=new Map;return Kt.forEach((Wr,jt)=>{wr.set(jt,S(Wr))}),{isNumber:qt.some(Wr=>Wr.isNumber),isString:qt.some(Wr=>Wr.isString),isNumberOrString:qt.some(Wr=>Wr.isNumberOrString),candidateTypes:ea(qt,Wr=>Wr.candidateTypes),properties:wr,calls:ea(qt,Wr=>Wr.calls),constructs:ea(qt,Wr=>Wr.constructs),numberIndex:Ot(qt,Wr=>Wr.numberIndex),stringIndex:Ot(qt,Wr=>Wr.stringIndex),candidateThisTypes:ea(qt,Wr=>Wr.candidateThisTypes),inferredTypes:void 0}}function E(){return Ct(F(n))}function P(qt){if(n.length===0||!qt.parameters)return;const Kt=h();for(const Wr of n)i.throwIfCancellationRequested(),$(Wr,Kt);const wr=[...Kt.constructs||[],...Kt.calls||[]];return qt.parameters.map((Wr,jt)=>{const En=[],fr=sp(Wr);let Tr=!1;for(const Pn of wr)if(Pn.argumentTypes.length<=jt)Tr=Cs(qt),En.push(c.getUndefinedType());else if(fr)for(let Fr=jt;Frwr.every(jt=>!jt(Wr)))}function ct(qt){return Ct(Ze(qt))}function Ct(qt){if(!qt.length)return c.getAnyType();const Kt=c.getUnionType([c.getStringType(),c.getNumberType()]);let Wr=Ie(qt,[{high:En=>En===c.getStringType()||En===c.getNumberType(),low:En=>En===Kt},{high:En=>!(En.flags&16385),low:En=>!!(En.flags&16385)},{high:En=>!(En.flags&114689)&&!(ji(En)&16),low:En=>!!(ji(En)&16)}]);const jt=Wr.filter(En=>ji(En)&16);return jt.length&&(Wr=Wr.filter(En=>!(ji(En)&16)),Wr.push(Lt(jt))),c.getWidenedType(c.getUnionType(Wr.map(c.getBaseTypeOfLiteralType),2))}function Lt(qt){if(qt.length===1)return qt[0];const Kt=[],wr=[],Wr=[],jt=[];let En=!1,fr=!1;const Tr=zg();for(const Fr of qt){for(const no of c.getPropertiesOfType(Fr))Tr.add(no.escapedName,no.valueDeclaration?c.getTypeOfSymbolAtLocation(no,no.valueDeclaration):c.getAnyType());Kt.push(...c.getSignaturesOfType(Fr,0)),wr.push(...c.getSignaturesOfType(Fr,1));const Ki=c.getIndexInfoOfType(Fr,0);Ki&&(Wr.push(Ki.type),En=En||Ki.isReadonly);const io=c.getIndexInfoOfType(Fr,1);io&&(jt.push(io.type),fr=fr||io.isReadonly)}const Vr=Gc(Tr,(Fr,Ki)=>{const io=Ki.lengthc.getBaseTypeOfLiteralType(Tr)),fr=(Wr=qt.calls)!=null&&Wr.length?Ke(qt):void 0;return fr&&En?jt.push(c.getUnionType([fr,...En],2)):(fr&&jt.push(fr),Nt(En)&&jt.push(...En)),jt.push(...st(qt)),jt}function Ke(qt){const Kt=new Map;qt.properties&&qt.properties.forEach((En,fr)=>{const Tr=c.createSymbol(4,fr);Tr.links.type=ct(En),Kt.set(fr,Tr)});const wr=qt.calls?[nn(qt.calls)]:[],Wr=qt.constructs?[nn(qt.constructs)]:[],jt=qt.stringIndex?[c.createIndexInfo(c.getStringType(),ct(qt.stringIndex),!1)]:[];return c.createAnonymousType(void 0,Kt,wr,Wr,jt)}function st(qt){if(!qt.properties||!qt.properties.size)return[];const Kt=d.filter(wr=>It(wr,qt));return 0Yt(wr,qt)):[]}function It(qt,Kt){return Kt.properties?!Jb(Kt.properties,(wr,Wr)=>{const jt=c.getTypeOfPropertyOfType(qt,Wr);return jt?wr.calls?!c.getSignaturesOfType(jt,0).length||!c.isTypeAssignableTo(jt,Qt(wr.calls)):!c.isTypeAssignableTo(jt,ct(wr)):!0}):!1}function Yt(qt,Kt){if(!(ji(qt)&4)||!Kt.properties)return qt;const wr=qt.target,Wr=Vb(wr.typeParameters);if(!Wr)return qt;const jt=[];return Kt.properties.forEach((En,fr)=>{const Tr=c.getTypeOfPropertyOfType(wr,fr);re.assert(!!Tr,"generic should have all the properties of its reference."),jt.push(...Et(Tr,ct(En),Wr))}),u[qt.symbol.escapedName](Ct(jt))}function Et(qt,Kt,wr){if(qt===wr)return[Kt];if(qt.flags&3145728)return ea(qt.types,En=>Et(En,Kt,wr));if(ji(qt)&4&&ji(Kt)&4){const En=c.getTypeArguments(qt),fr=c.getTypeArguments(Kt),Tr=[];if(En&&fr)for(let Vr=0;Vrjt.argumentTypes.length));for(let jt=0;jtfr.argumentTypes[jt]||c.getUndefinedType())),qt.some(fr=>fr.argumentTypes[jt]===void 0)&&(En.flags|=16777216),Kt.push(En)}const Wr=ct(S(qt.map(jt=>jt.return_)));return c.createSignature(void 0,void 0,void 0,Kt,Wr,void 0,wr,0)}function Rn(qt,Kt){Kt&&!(Kt.flags&1)&&!(Kt.flags&131072)&&(qt.candidateTypes||(qt.candidateTypes=[])).push(Kt)}function cn(qt,Kt){Kt&&!(Kt.flags&1)&&!(Kt.flags&131072)&&(qt.candidateThisTypes||(qt.candidateThisTypes=[])).push(Kt)}}var qle,Kle,WFe=G({"src/services/codefixes/inferFromUsage.ts"(){xl(),If(),qle="inferFromUsage",Kle=[N.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,N.Variable_0_implicitly_has_an_1_type.code,N.Parameter_0_implicitly_has_an_1_type.code,N.Rest_parameter_0_implicitly_has_an_any_type.code,N.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,N._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,N.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,N.Member_0_implicitly_has_an_1_type.code,N.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,N.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,N._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,N.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,N.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,N.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Hc({errorCodes:Kle,getCodeActions(e){const{sourceFile:n,program:i,span:{start:c},errorCode:u,cancellationToken:d,host:h,preferences:S}=e,E=Lf(n,c);let P;const k=zs.ChangeTracker.with(e,$=>{P=XXe($,n,E,u,i,d,xT,h,S)}),F=P&&i_(P);return!F||k.length===0?void 0:[Rd(qle,k,[f_t(u,E),Lv(F)],qle,N.Infer_all_types_from_usage)]},fixIds:[qle],getAllCodeActions(e){const{sourceFile:n,program:i,cancellationToken:c,host:u,preferences:d}=e,h=U3();return Sg(e,Kle,(S,E)=>{XXe(S,n,Lf(E.file,E.start),E.code,i,c,h,u,d)})}})}});function tYe(e,n,i){if(Cs(e))return;const c=Lf(e,i),u=Ua(c,Vd),d=u==null?void 0:u.type;if(!d)return;const h=n.getTypeFromTypeNode(d),S=n.getAwaitedType(h)||n.getVoidType(),E=n.typeToTypeNode(S,d,void 0);if(E)return{returnTypeNode:d,returnType:h,promisedTypeNode:E,promisedType:S}}function BFe(e,n,i,c){e.replaceNode(n,i,he.createTypeReferenceNode("Promise",[c]))}var fve,Xle,zFe=G({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){xl(),If(),fve="fixReturnTypeInAsyncFunction",Xle=[N.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Hc({errorCodes:Xle,fixIds:[fve],getCodeActions:function(n){const{sourceFile:i,program:c,span:u}=n,d=c.getTypeChecker(),h=tYe(i,c.getTypeChecker(),u.start);if(!h)return;const{returnTypeNode:S,returnType:E,promisedTypeNode:P,promisedType:k}=h,F=zs.ChangeTracker.with(n,$=>BFe($,i,S,P));return[Rd(fve,F,[N.Replace_0_with_Promise_1,d.typeToString(E),d.typeToString(k)],fve,N.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Sg(e,Xle,(n,i)=>{const c=tYe(i.file,e.program.getTypeChecker(),i.start);c&&BFe(n,i.file,c.returnTypeNode,c.promisedTypeNode)})})}});function nYe(e,n,i,c){const{line:u}=xm(n,i);(!c||m2(c,u))&&e.insertCommentBeforeLine(n,u,i," @ts-ignore")}var XIe,_ve,dve,GFe=G({"src/services/codefixes/disableJsDiagnostics.ts"(){xl(),If(),XIe="disableJsDiagnostics",_ve="disableJsDiagnostics",dve=Qo(Object.keys(N),e=>{const n=N[e];return n.category===1?n.code:void 0}),Hc({errorCodes:dve,getCodeActions:function(n){const{sourceFile:i,program:c,span:u,host:d,formatContext:h}=n;if(!Cs(i)||!tW(i,c.getCompilerOptions()))return;const S=i.checkJsDirective?"":R6(d,h.options),E=[xI(XIe,[qqe(i.fileName,[LZ(i.checkJsDirective?Yy(i.checkJsDirective.pos,i.checkJsDirective.end):p1(0,0),`// @ts-nocheck${S}`)])],N.Disable_checking_for_this_file)];return zs.isValidLocationToAddComment(i,u.start)&&E.unshift(Rd(XIe,zs.ChangeTracker.with(n,P=>nYe(P,i,u.start)),N.Ignore_this_error_message,_ve,N.Add_ts_ignore_to_all_error_messages)),E},fixIds:[_ve],getAllCodeActions:e=>{const n=new Set;return Sg(e,dve,(i,c)=>{zs.isValidLocationToAddComment(c.file,c.start)&&nYe(i,c.file,c.start,n)})}})}});function jFe(e,n,i,c,u,d,h){const S=e.symbol.members;for(const E of n)S.has(E.escapedName)||rV(E,e,i,c,u,d,h,void 0)}function dB(e){return{trackSymbol:()=>!1,moduleResolverHost:FZ(e.program,e.host)}}function rV(e,n,i,c,u,d,h,S,E=3,P=!1){const k=e.getDeclarations(),F=pp(k),$=c.program.getTypeChecker(),J=iu(c.program.getCompilerOptions()),X=(F==null?void 0:F.kind)??171,ie=st(e,F),ae=F?Cb(F):0;let ve=ae&256;ve|=ae&1?1:ae&4?4:0,F&&xb(F)&&(ve|=512);const we=ct(),Fe=$.getWidenedType($.getTypeOfSymbolAtLocation(e,n)),et=!!(e.flags&16777216),Pe=!!(n.flags&33554432)||P,dt=OS(i,u);switch(X){case 171:case 172:const It=dt===0?268435456:void 0;let Yt=$.typeToTypeNode(Fe,n,It,dB(c));if(d){const at=WF(Yt,J);at&&(Yt=at.typeNode,iV(d,at.symbols))}h(he.createPropertyDeclaration(we,F?Lt(ie):e.getName(),et&&E&2?he.createToken(58):void 0,Yt,void 0));break;case 177:case 178:{re.assertIsDefined(k);let at=$.typeToTypeNode(Fe,n,void 0,dB(c));const Qt=oI(k,F),nn=Qt.secondAccessor?[Qt.firstAccessor,Qt.secondAccessor]:[Qt.firstAccessor];if(d){const Rn=WF(at,J);Rn&&(at=Rn.typeNode,iV(d,Rn.symbols))}for(const Rn of nn)if(lE(Rn))h(he.createGetAccessorDeclaration(we,Lt(ie),Yn,Ke(at),Ze(S,dt,Pe)));else{re.assertNode(Rn,Xb,"The counterpart to a getter should be a setter");const cn=AH(Rn),qt=cn&&xn(cn.name)?Kr(cn.name):void 0;h(he.createSetAccessorDeclaration(we,Lt(ie),YIe(1,[qt],[Ke(at)],1,!1),Ze(S,dt,Pe)))}break}case 173:case 174:re.assertIsDefined(k);const Et=Fe.isUnion()?ea(Fe.types,at=>at.getCallSignatures()):Fe.getCallSignatures();if(!gt(Et))break;if(k.length===1){re.assert(Et.length===1,"One declaration implies one signature");const at=Et[0];Ie(dt,at,we,Lt(ie),Ze(S,dt,Pe));break}for(const at of Et)Ie(dt,at,we,Lt(ie));if(!Pe)if(k.length>Et.length){const at=$.getSignatureFromDeclaration(k[k.length-1]);Ie(dt,at,we,Lt(ie),Ze(S,dt))}else re.assert(k.length===Et.length,"Declarations and signatures should match count"),h(HFe($,c,n,Et,Lt(ie),et&&!!(E&1),we,dt,S));break}function Ie(It,Yt,Et,at,Qt){const nn=pve(174,c,It,Yt,Qt,at,Et,et&&!!(E&1),n,d);nn&&h(nn)}function ct(){let It;return ve&&(It=FD(It,he.createModifiersFromModifierFlags(ve))),Ct()&&(It=ur(It,he.createToken(164))),It&&he.createNodeArray(It)}function Ct(){return!!(c.program.getCompilerOptions().noImplicitOverride&&F&&Ab(F))}function Lt(It){return xn(It)&&It.escapedText==="constructor"?he.createComputedPropertyName(he.createStringLiteral(Kr(It),dt===0)):ih(It,!1)}function Ze(It,Yt,Et){return Et?void 0:ih(It,!1)||JFe(Yt)}function Ke(It){return ih(It,!1)}function st(It,Yt){if(I_(It)&262144){const Et=It.links.nameType;if(Et&&yv(Et))return he.createIdentifier(Ic(vv(Et)))}return ih(i_(Yt),!1)}}function pve(e,n,i,c,u,d,h,S,E,P){const k=n.program,F=k.getTypeChecker(),$=iu(k.getCompilerOptions()),J=Cs(E),X=524545|(i===0?268435456:0),ie=F.signatureToSignatureDeclaration(c,e,E,X,dB(n));if(!ie)return;let ae=J?void 0:ie.typeParameters,ve=ie.parameters,we=J?void 0:ie.type;if(P){if(ae){const dt=Ol(ae,Ie=>{let ct=Ie.constraint,Ct=Ie.default;if(ct){const Lt=WF(ct,$);Lt&&(ct=Lt.typeNode,iV(P,Lt.symbols))}if(Ct){const Lt=WF(Ct,$);Lt&&(Ct=Lt.typeNode,iV(P,Lt.symbols))}return he.updateTypeParameterDeclaration(Ie,Ie.modifiers,Ie.name,ct,Ct)});ae!==dt&&(ae=Tn(he.createNodeArray(dt,ae.hasTrailingComma),ae))}const Pe=Ol(ve,dt=>{let Ie=J?void 0:dt.type;if(Ie){const ct=WF(Ie,$);ct&&(Ie=ct.typeNode,iV(P,ct.symbols))}return he.updateParameterDeclaration(dt,dt.modifiers,dt.dotDotDotToken,dt.name,J?void 0:dt.questionToken,Ie,dt.initializer)});if(ve!==Pe&&(ve=Tn(he.createNodeArray(Pe,ve.hasTrailingComma),ve)),we){const dt=WF(we,$);dt&&(we=dt.typeNode,iV(P,dt.symbols))}}const Fe=S?he.createToken(58):void 0,et=ie.asteriskToken;if(Jm(ie))return he.updateFunctionExpression(ie,h,ie.asteriskToken,to(d,xn),ae,ve,we,u??ie.body);if($m(ie))return he.updateArrowFunction(ie,h,ae,ve,we,ie.equalsGreaterThanToken,u??ie.body);if(tm(ie))return he.updateMethodDeclaration(ie,h,et,d??he.createIdentifier(""),Fe,ae,ve,we,u);if(mg(ie))return he.updateFunctionDeclaration(ie,h,ie.asteriskToken,to(d,xn),ae,ve,we,u??ie.body)}function Yle(e,n,i,c,u,d,h){const S=OS(n.sourceFile,n.preferences),E=iu(n.program.getCompilerOptions()),P=dB(n),k=n.program.getTypeChecker(),F=Cs(h),{typeArguments:$,arguments:J,parent:X}=c,ie=F?void 0:k.getContextualType(c),ae=Vn(J,Ct=>xn(Ct)?Ct.text:Ac(Ct)&&xn(Ct.name)?Ct.name.text:void 0),ve=F?[]:Vn(J,Ct=>k.getTypeAtLocation(Ct)),{argumentTypeNodes:we,argumentTypeParameters:Fe}=UFe(k,i,ve,h,E,1,P),et=d?he.createNodeArray(he.createModifiersFromModifierFlags(d)):void 0,Pe=t0(X)?he.createToken(42):void 0,dt=F?void 0:VFe(k,Fe,$),Ie=YIe(J.length,ae,we,void 0,F),ct=F||ie===void 0?void 0:k.typeToTypeNode(ie,h,void 0,P);switch(e){case 174:return he.createMethodDeclaration(et,Pe,u,void 0,dt,Ie,ct,JFe(S));case 173:return he.createMethodSignature(et,u,void 0,dt,Ie,ct===void 0?he.createKeywordTypeNode(159):ct);case 262:return re.assert(typeof u=="string"||xn(u),"Unexpected name"),he.createFunctionDeclaration(et,Pe,u,dt,Ie,ct,jee(N.Function_not_implemented.message,S));default:re.fail("Unexpected kind")}}function VFe(e,n,i){const c=new Set(n.map(d=>d[0])),u=new Map(n);if(i){const d=i.filter(S=>!n.some(E=>{var P;return e.getTypeAtLocation(S)===((P=E[1])==null?void 0:P.argumentType)})),h=c.size+d.length;for(let S=0;c.size{var h;return he.createTypeParameterDeclaration(void 0,d,(h=u.get(d))==null?void 0:h.constraint)})}function rYe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function mve(e,n,i,c,u,d,h){let S=e.typeToTypeNode(i,c,d,h);if(S&&E1(S)){const E=WF(S,u);E&&(iV(n,E.symbols),S=E.typeNode)}return ih(S)}function gve(e){return e.isUnionOrIntersection()?e.types.some(gve):e.flags&262144}function UFe(e,n,i,c,u,d,h){const S=[],E=new Map;for(let P=0;P=c?he.createToken(58):void 0,u?void 0:(i==null?void 0:i[S])||he.createKeywordTypeNode(159),void 0);d.push(k)}return d}function HFe(e,n,i,c,u,d,h,S,E){let P=c[0],k=c[0].minArgumentCount,F=!1;for(const ie of c)k=Math.min(ie.minArgumentCount,k),A1(ie)&&(F=!0),ie.parameters.length>=P.parameters.length&&(!A1(ie)||A1(P))&&(P=ie);const $=P.parameters.length-(A1(P)?1:0),J=P.parameters.map(ie=>ie.name),X=YIe($,J,void 0,k,!1);if(F){const ie=he.createParameterDeclaration(void 0,he.createToken(26),J[$]||"rest",$>=k?he.createToken(58):void 0,he.createArrayTypeNode(he.createKeywordTypeNode(159)),void 0);X.push(ie)}return g_t(h,u,d,void 0,X,m_t(c,e,n,i),S,E)}function m_t(e,n,i,c){if(Nt(e)){const u=n.getUnionType(Vn(e,n.getReturnTypeOfSignature));return n.typeToTypeNode(u,c,1,dB(i))}}function g_t(e,n,i,c,u,d,h,S){return he.createMethodDeclaration(e,void 0,n,i?he.createToken(58):void 0,c,u,d,S||JFe(h))}function JFe(e){return jee(N.Method_not_implemented.message,e)}function jee(e,n){return he.createBlock([he.createThrowStatement(he.createNewExpression(he.createIdentifier("Error"),void 0,[he.createStringLiteral(e,n===0)]))],!0)}function Vee(e,n,i){const c=eG(n);if(!c)return;const u=Zle(c,"compilerOptions");if(u===void 0){e.insertNodeAtObjectStart(n,c,Qle("compilerOptions",he.createObjectLiteralExpression(i.map(([h,S])=>Qle(h,S)),!0)));return}const d=u.initializer;if(el(d))for(const[h,S]of i){const E=Zle(d,h);E===void 0?e.insertNodeAtObjectStart(n,d,Qle(h,S)):e.replaceNode(n,E.initializer,S)}}function hve(e,n,i,c){Vee(e,n,[[i,c]])}function Qle(e,n){return he.createPropertyAssignment(he.createStringLiteral(e),n)}function Zle(e,n){return lr(e.properties,i=>tl(i)&&!!i.name&&Sd(i.name)&&i.name.text===n)}function WF(e,n){let i;const c=Bn(e,u,pc);if(i&&c)return{typeNode:c,symbols:i};function u(d){if(MN(d)&&d.qualifier){const h=PS(d.qualifier),S=Oj(h.symbol,n),E=S!==h.text?pB(d.qualifier,he.createIdentifier(S)):d.qualifier;i=ur(i,h.symbol);const P=Wa(d.typeArguments,u,pc);return he.createTypeReferenceNode(E,P)}return Xo(d,u,sx)}}function pB(e,n){return e.kind===80?n:he.createQualifiedName(pB(e.left,n),e.right)}function iV(e,n){n.forEach(i=>e.addImportFromExportedSymbol(i,!0))}function mB(e,n){const i=Xy(n);let c=Lf(e,n.start);for(;c.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(yve||{})}});function aYe(e,n,i,c,u,d){const h=uYe(e,n,i,c);if(!h||MF.isRefactorErrorInfo(h))return;const S=zs.ChangeTracker.fromContext(u),{isStatic:E,isReadonly:P,fieldName:k,accessorName:F,originalName:$,type:J,container:X,declaration:ie}=h;zT(k),zT(F),zT(ie),zT(X);let ae,ve;if(Fl(X)){const Fe=Cb(ie);if(Gy(e)){const et=he.createModifiersFromModifierFlags(Fe);ae=et,ve=et}else ae=he.createModifiersFromModifierFlags(lYe(Fe)),ve=he.createModifiersFromModifierFlags(y_t(Fe));S6(ie)&&(ve=Hi(OM(ie),ve))}S_t(S,e,ie,J,k,ve);const we=fYe(k,F,J,ae,E,X);if(zT(we),_Ye(S,e,we,ie,X),P){const Fe=sC(X);Fe&&dYe(S,e,Fe,k.text,$)}else{const Fe=v_t(k,F,J,ae,E,X);zT(Fe),_Ye(S,e,Fe,ie,X)}return S.getChanges()}function sYe(e){return xn(e)||Sd(e)}function h_t(e){return DT(e,e.parent)||nu(e)||tl(e)}function cYe(e,n){return xn(n)?he.createIdentifier(e):he.createStringLiteral(e)}function qFe(e,n,i){const c=n?i.name:he.createThis();return xn(e)?he.createPropertyAccessExpression(c,e):he.createElementAccessExpression(c,he.createStringLiteralFromNode(e))}function lYe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function y_t(e){return e&=-2,e&=-5,e|=2,e}function uYe(e,n,i,c,u=!0){const d=Lf(e,i),h=i===c&&u,S=Ua(d.parent,h_t),E=271;if(!S||!(Fge(S.name,e,i,c)||h))return{error:fs(N.Could_not_find_property_for_which_to_generate_accessor)};if(!sYe(S.name))return{error:fs(N.Name_is_not_valid)};if((Cb(S)&98303|E)!==E)return{error:fs(N.Can_only_convert_property_with_modifier)};const P=S.name.text,k=YZ(P),F=cYe(k?P:v4(`_${P}`,e),S.name),$=cYe(k?v4(P.substring(1),e):P,S.name);return{isStatic:ev(S),isReadonly:Ny(S),type:E_t(S,n),container:S.kind===169?S.parent.parent:S.parent,originalName:S.name.text,declaration:S,fieldName:F,accessorName:$,renameAccessor:k}}function fYe(e,n,i,c,u,d){return he.createGetAccessorDeclaration(c,n,[],i,he.createBlock([he.createReturnStatement(qFe(e,u,d))],!0))}function v_t(e,n,i,c,u,d){return he.createSetAccessorDeclaration(c,n,[he.createParameterDeclaration(void 0,void 0,he.createIdentifier("value"),void 0,i)],he.createBlock([he.createExpressionStatement(he.createAssignment(qFe(e,u,d),he.createIdentifier("value")))],!0))}function b_t(e,n,i,c,u,d){const h=he.updatePropertyDeclaration(i,d,u,i.questionToken||i.exclamationToken,c,i.initializer);e.replaceNode(n,i,h)}function T_t(e,n,i,c){let u=he.updatePropertyAssignment(i,c,i.initializer);(u.modifiers||u.questionToken||u.exclamationToken)&&(u===i&&(u=he.cloneNode(u)),u.modifiers=void 0,u.questionToken=void 0,u.exclamationToken=void 0),e.replacePropertyAssignment(n,i,u)}function S_t(e,n,i,c,u,d){nu(i)?b_t(e,n,i,c,u,d):tl(i)?T_t(e,n,i,u):e.replaceNode(n,i,he.updateParameterDeclaration(i,d,i.dotDotDotToken,uc(u,xn),i.questionToken,i.type,i.initializer))}function _Ye(e,n,i,c,u){DT(c,c.parent)?e.insertMemberAtStart(n,u,i):tl(c)?e.insertNodeAfterComma(n,c,i):e.insertNodeAfter(n,c,i)}function dYe(e,n,i,c,u){i.body&&i.body.forEachChild(function d(h){Hm(h)&&h.expression.kind===110&&Sd(h.argumentExpression)&&h.argumentExpression.text===u&&o6(h)&&e.replaceNode(n,h.argumentExpression,he.createStringLiteral(c)),Ac(h)&&h.expression.kind===110&&h.name.text===u&&o6(h)&&e.replaceNode(n,h.name,he.createIdentifier(c)),!F_(h)&&!Fl(h)&&h.forEachChild(d)})}function E_t(e,n){const i=O7(e);if(nu(e)&&i&&e.questionToken){const c=n.getTypeChecker(),u=c.getTypeFromTypeNode(i);if(!c.isTypeAssignableTo(c.getUndefinedType(),u)){const d=fI(i)?i.types:[i];return he.createUnionTypeNode([...d,he.createKeywordTypeNode(157)])}}return i}function KFe(e,n){const i=[];for(;e;){const c=gR(e),u=c&&n.getSymbolAtLocation(c.expression);if(!u)break;const d=u.flags&2097152?n.getAliasedSymbol(u):u,h=d.declarations&&lr(d.declarations,Fl);if(!h)break;i.push(h),e=h}return i}var XFe=G({"src/services/codefixes/generateAccessors.ts"(){xl()}});function x_t(e,n){const i=ts(n),c=H8(n),u=e.program.getCompilerOptions(),d=[];return d.push(pYe(e,i,n,Nk(c.name,void 0,n.moduleSpecifier,OS(i,e.preferences)))),Zp(u)===1&&d.push(pYe(e,i,n,he.createImportEqualsDeclaration(void 0,!1,c.name,he.createExternalModuleReference(n.moduleSpecifier)))),d}function pYe(e,n,i,c){const u=zs.ChangeTracker.with(e,d=>d.replaceNode(n,i,c));return xI(QIe,u,[N.Replace_import_with_0,u[0].textChanges[0].newText])}function mYe(e){const n=e.sourceFile,i=N.This_expression_is_not_callable.code===e.errorCode?213:214,c=Ua(Lf(n,e.span.start),d=>d.kind===i);if(!c)return[];const u=c.expression;return gYe(e,u)}function A_t(e){const n=e.sourceFile,i=Ua(Lf(n,e.span.start),c=>c.getStart()===e.span.start&&c.getEnd()===e.span.start+e.span.length);return i?gYe(e,i):[]}function gYe(e,n){const i=e.program.getTypeChecker().getTypeAtLocation(n);if(!(i.symbol&&Vm(i.symbol)&&i.symbol.links.originatingImport))return[];const c=[],u=i.symbol.links.originatingImport;if(Py(u)||Oi(c,x_t(e,u)),kr(n)&&!(mp(n.parent)&&n.parent.name===n)){const d=e.sourceFile,h=zs.ChangeTracker.with(e,S=>S.replaceNode(d,n,he.createPropertyAccessExpression(n,"default"),{}));c.push(xI(QIe,h,N.Use_synthetic_default_member))}return c}var QIe,YFe=G({"src/services/codefixes/fixInvalidImportSyntax.ts"(){xl(),If(),QIe="invalidImportSyntax",Hc({errorCodes:[N.This_expression_is_not_callable.code,N.This_expression_is_not_constructable.code],getCodeActions:mYe}),Hc({errorCodes:[N.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,N.Type_0_does_not_satisfy_the_constraint_1.code,N.Type_0_is_not_assignable_to_type_1.code,N.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,N.Type_predicate_0_is_not_assignable_to_1.code,N.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,N._0_index_type_1_is_not_assignable_to_2_index_type_3.code,N.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,N.Property_0_in_type_1_is_not_assignable_to_type_2.code,N.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,N.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:A_t})}});function hYe(e,n){const i=Lf(e,n);if(xn(i)&&nu(i.parent)){const c=Zy(i.parent);if(c)return{type:c,prop:i.parent,isJs:Cs(i.parent)}}}function yYe(e,n){if(n.isJs)return;const i=zs.ChangeTracker.with(e,c=>vYe(c,e.sourceFile,n.prop));return Rd(vve,i,[N.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],Uee,N.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function vYe(e,n,i){zT(i);const c=he.updatePropertyDeclaration(i,i.modifiers,i.name,he.createToken(54),i.type,i.initializer);e.replaceNode(n,i,c)}function bYe(e,n){const i=zs.ChangeTracker.with(e,c=>TYe(c,e.sourceFile,n));return Rd(vve,i,[N.Add_undefined_type_to_property_0,n.prop.name.getText()],Hee,N.Add_undefined_type_to_all_uninitialized_properties)}function TYe(e,n,i){const c=he.createKeywordTypeNode(157),u=fI(i.type)?i.type.types.concat(c):[i.type,c],d=he.createUnionTypeNode(u);i.isJs?e.addJSDocTags(n,i.prop,[he.createJSDocTypeTag(void 0,he.createJSDocTypeExpression(d))]):e.replaceNode(n,i.type,d)}function SYe(e,n){if(n.isJs)return;const i=e.program.getTypeChecker(),c=QFe(i,n.prop);if(!c)return;const u=zs.ChangeTracker.with(e,d=>EYe(d,e.sourceFile,n.prop,c));return Rd(vve,u,[N.Add_initializer_to_property_0,n.prop.name.getText()],Jee,N.Add_initializers_to_all_uninitialized_properties)}function EYe(e,n,i,c){zT(i);const u=he.updatePropertyDeclaration(i,i.modifiers,i.name,i.questionToken,i.type,c);e.replaceNode(n,i,u)}function QFe(e,n){return ZFe(e,e.getTypeFromTypeNode(n.type))}function ZFe(e,n){if(n.flags&512)return n===e.getFalseType()||n===e.getFalseType(!0)?he.createFalse():he.createTrue();if(n.isStringLiteral())return he.createStringLiteral(n.value);if(n.isNumberLiteral())return he.createNumericLiteral(n.value);if(n.flags&2048)return he.createBigIntLiteral(n.value);if(n.isUnion())return Yr(n.types,i=>ZFe(e,i));if(n.isClass()){const i=RS(n.symbol);if(!i||ul(i,64))return;const c=sC(i);return c&&c.parameters.length?void 0:he.createNewExpression(he.createIdentifier(n.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(n))return he.createArrayLiteralExpression()}var vve,Uee,Hee,Jee,eue,e5e=G({"src/services/codefixes/fixStrictClassInitialization.ts"(){xl(),If(),vve="strictClassInitialization",Uee="addMissingPropertyDefiniteAssignmentAssertions",Hee="addMissingPropertyUndefinedType",Jee="addMissingPropertyInitializer",eue=[N.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Hc({errorCodes:eue,getCodeActions:function(n){const i=hYe(n.sourceFile,n.span.start);if(!i)return;const c=[];return ur(c,bYe(n,i)),ur(c,yYe(n,i)),ur(c,SYe(n,i)),c},fixIds:[Uee,Hee,Jee],getAllCodeActions:e=>Sg(e,eue,(n,i)=>{const c=hYe(i.file,i.start);if(c)switch(e.fixId){case Uee:vYe(n,i.file,c.prop);break;case Hee:TYe(n,i.file,c);break;case Jee:const u=e.program.getTypeChecker(),d=QFe(u,c.prop);if(!d)return;EYe(n,i.file,c.prop,d);break;default:re.fail(JSON.stringify(e.fixId))}})})}});function xYe(e,n,i){const{allowSyntheticDefaults:c,defaultImportName:u,namedImports:d,statement:h,required:S}=i;e.replaceNode(n,h,u&&!c?he.createImportEqualsDeclaration(void 0,!1,u,he.createExternalModuleReference(S)):he.createImportDeclaration(void 0,he.createImportClause(!1,u,d),S,void 0))}function t5e(e,n,i){const{parent:c}=Lf(e,i);y1(c,!0)||re.failBadSyntaxKind(c);const u=uc(c.parent,Kc),d=to(u.name,xn),h=Ch(u.name)?AYe(u.name):void 0;if(d||h)return{allowSyntheticDefaults:VN(n.getCompilerOptions()),defaultImportName:d,namedImports:h,statement:uc(u.parent.parent,Xg),required:Dl(c.arguments)}}function AYe(e){const n=[];for(const i of e.elements){if(!xn(i.name)||i.initializer)return;n.push(he.createImportSpecifier(!1,to(i.propertyName,xn),i.name))}if(n.length)return he.createNamedImports(n)}var ZIe,tue,n5e=G({"src/services/codefixes/requireInTs.ts"(){xl(),If(),ZIe="requireInTs",tue=[N.require_call_may_be_converted_to_an_import.code],Hc({errorCodes:tue,getCodeActions(e){const n=t5e(e.sourceFile,e.program,e.span.start);if(!n)return;const i=zs.ChangeTracker.with(e,c=>xYe(c,e.sourceFile,n));return[Rd(ZIe,i,N.Convert_require_to_import,ZIe,N.Convert_all_require_to_import)]},fixIds:[ZIe],getAllCodeActions:e=>Sg(e,tue,(n,i)=>{const c=t5e(i.file,e.program,i.start);c&&xYe(n,e.sourceFile,c)})})}});function CYe(e,n){const i=Lf(e,n);if(!xn(i))return;const{parent:c}=i;if(Yb(c)&&KE(c.moduleReference))return{importNode:c,name:i,moduleSpecifier:c.moduleReference.expression};if(mh(c)){const u=c.parent.parent;return{importNode:u,name:i,moduleSpecifier:u.moduleSpecifier}}}function r5e(e,n,i,c){e.replaceNode(n,i.importNode,Nk(i.name,void 0,i.moduleSpecifier,OS(n,c)))}var bve,nue,i5e=G({"src/services/codefixes/useDefaultImport.ts"(){xl(),If(),bve="useDefaultImport",nue=[N.Import_may_be_converted_to_a_default_import.code],Hc({errorCodes:nue,getCodeActions(e){const{sourceFile:n,span:{start:i}}=e,c=CYe(n,i);if(!c)return;const u=zs.ChangeTracker.with(e,d=>r5e(d,n,c,e.preferences));return[Rd(bve,u,N.Convert_to_default_import,bve,N.Convert_all_to_default_imports)]},fixIds:[bve],getAllCodeActions:e=>Sg(e,nue,(n,i)=>{const c=CYe(i.file,i.start);c&&r5e(n,i.file,c,e.preferences)})})}});function DYe(e,n,i){const c=to(Lf(n,i.start),S1);if(!c)return;const u=c.getText(n)+"n";e.replaceNode(n,c,he.createBigIntLiteral(u))}var Tve,rue,o5e=G({"src/services/codefixes/useBigintLiteral.ts"(){xl(),If(),Tve="useBigintLiteral",rue=[N.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Hc({errorCodes:rue,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>DYe(c,n.sourceFile,n.span));if(i.length>0)return[Rd(Tve,i,N.Convert_to_a_bigint_numeric_literal,Tve,N.Convert_all_to_bigint_numeric_literals)]},fixIds:[Tve],getAllCodeActions:e=>Sg(e,rue,(n,i)=>DYe(n,i.file,i))})}});function IYe(e,n){const i=Lf(e,n);return re.assert(i.kind===102,"This token should be an ImportKeyword"),re.assert(i.parent.kind===205,"Token parent should be an ImportType"),i.parent}function a5e(e,n,i){const c=he.updateImportTypeNode(i,i.argument,i.attributes,i.qualifier,i.typeArguments,!0);e.replaceNode(n,i,c)}var s5e,Sve,iue,c5e=G({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){xl(),If(),s5e="fixAddModuleReferTypeMissingTypeof",Sve=s5e,iue=[N.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Hc({errorCodes:iue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=IYe(i,c.start),d=zs.ChangeTracker.with(n,h=>a5e(h,i,u));return[Rd(Sve,d,N.Add_missing_typeof,Sve,N.Add_missing_typeof)]},fixIds:[Sve],getAllCodeActions:e=>Sg(e,iue,(n,i)=>a5e(n,e.sourceFile,IYe(i.file,i.start)))})}});function kYe(e,n){let u=Lf(e,n).parent.parent;if(!(!Ds(u)&&(u=u.parent,!Ds(u)))&&ny(u.operatorToken))return u}function l5e(e,n,i){const c=PYe(i);c&&e.replaceNode(n,i,he.createJsxFragment(he.createJsxOpeningFragment(),c,he.createJsxJsxClosingFragment()))}function PYe(e){const n=[];let i=e;for(;;)if(Ds(i)&&ny(i.operatorToken)&&i.operatorToken.kind===28){if(n.push(i.left),ZX(i.right))return n.push(i.right),n;if(Ds(i.right)){i=i.right;continue}else return}else return}var eke,oue,u5e=G({"src/services/codefixes/wrapJsxInFragment.ts"(){xl(),If(),eke="wrapJsxInFragment",oue=[N.JSX_expressions_must_have_one_parent_element.code],Hc({errorCodes:oue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=kYe(i,c.start);if(!u)return;const d=zs.ChangeTracker.with(n,h=>l5e(h,i,u));return[Rd(eke,d,N.Wrap_in_JSX_fragment,eke,N.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[eke],getAllCodeActions:e=>Sg(e,oue,(n,i)=>{const c=kYe(e.sourceFile,i.start);c&&l5e(n,e.sourceFile,c)})})}});function NYe(e,n){const i=Lf(e,n),c=to(i.parent.parent,Z2);if(!c)return;const u=xp(c.parent)?c.parent:to(c.parent.parent,z0);if(u)return{indexSignature:c,container:u}}function wYe(e,n){return he.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,n)}function RYe(e,n,{indexSignature:i,container:c}){const d=(xp(c)?c.members:c.type.members).filter(k=>!Z2(k)),h=Dl(i.parameters),S=he.createTypeParameterDeclaration(void 0,uc(h.name,xn),h.type),E=he.createMappedTypeNode(Ny(i)?he.createModifier(148):void 0,S,void 0,i.questionToken,i.type,void 0),P=he.createIntersectionTypeNode([...lG(c),E,...d.length?[he.createTypeLiteralNode(d)]:Yn]);e.replaceNode(n,c,wYe(c,P))}var Eve,aue,f5e=G({"src/services/codefixes/convertToMappedObjectType.ts"(){xl(),If(),Eve="fixConvertToMappedObjectType",aue=[N.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Hc({errorCodes:aue,getCodeActions:function(n){const{sourceFile:i,span:c}=n,u=NYe(i,c.start);if(!u)return;const d=zs.ChangeTracker.with(n,S=>RYe(S,i,u)),h=Kr(u.container.name);return[Rd(Eve,d,[N.Convert_0_to_mapped_object_type,h],Eve,[N.Convert_0_to_mapped_object_type,h])]},fixIds:[Eve],getAllCodeActions:e=>Sg(e,aue,(n,i)=>{const c=NYe(i.file,i.start);c&&RYe(n,i.file,c)})})}}),_5e,tke,MYe=G({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){xl(),If(),_5e="removeAccidentalCallParentheses",tke=[N.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Hc({errorCodes:tke,getCodeActions(e){const n=Ua(Lf(e.sourceFile,e.span.start),xd);if(!n)return;const i=zs.ChangeTracker.with(e,c=>{c.deleteRange(e.sourceFile,{pos:n.expression.end,end:n.end})});return[xI(_5e,i,N.Remove_parentheses)]},fixIds:[_5e]})}});function LYe(e,n,i){const c=to(Lf(n,i.start),S=>S.kind===135),u=c&&to(c.parent,ys);if(!u)return;let d=u;if(fE(u.parent)){const S=qL(u.expression,!1);if(xn(S)){const E=bv(u.parent.pos,n);E&&E.kind!==105&&(d=u.parent)}}e.replaceNode(n,d,u.expression)}var xve,sue,d5e=G({"src/services/codefixes/removeUnnecessaryAwait.ts"(){xl(),If(),xve="removeUnnecessaryAwait",sue=[N.await_has_no_effect_on_the_type_of_this_expression.code],Hc({errorCodes:sue,getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>LYe(c,n.sourceFile,n.span));if(i.length>0)return[Rd(xve,i,N.Remove_unnecessary_await,xve,N.Remove_all_unnecessary_uses_of_await)]},fixIds:[xve],getAllCodeActions:e=>Sg(e,sue,(n,i)=>LYe(n,i.file,i))})}});function OYe(e,n){return Ua(Lf(e,n.start),n0)}function p5e(e,n,i){if(!n)return;const c=re.checkDefined(n.importClause);e.replaceNode(i.sourceFile,n,he.updateImportDeclaration(n,n.modifiers,he.updateImportClause(c,c.isTypeOnly,c.name,void 0),n.moduleSpecifier,n.attributes)),e.insertNodeAfter(i.sourceFile,n,he.createImportDeclaration(void 0,he.updateImportClause(c,c.isTypeOnly,void 0,c.namedBindings),n.moduleSpecifier,n.attributes))}var nke,cue,rke=G({"src/services/codefixes/splitTypeOnlyImport.ts"(){xl(),If(),nke=[N.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],cue="splitTypeOnlyImport",Hc({errorCodes:nke,fixIds:[cue],getCodeActions:function(n){const i=zs.ChangeTracker.with(n,c=>p5e(c,OYe(n.sourceFile,n.span),n));if(i.length)return[Rd(cue,i,N.Split_into_two_separate_import_declarations,cue,N.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Sg(e,nke,(n,i)=>{p5e(n,OYe(e.sourceFile,i),e)})})}});function FYe(e,n,i){var c;const d=i.getTypeChecker().getSymbolAtLocation(Lf(e,n));if(d===void 0)return;const h=to((c=d==null?void 0:d.valueDeclaration)==null?void 0:c.parent,Kp);if(h===void 0)return;const S=qm(h,87,e);if(S!==void 0)return{symbol:d,token:S}}function m5e(e,n,i){e.replaceNode(n,i,he.createToken(121))}var Ave,lue,g5e=G({"src/services/codefixes/convertConstToLet.ts"(){xl(),If(),Ave="fixConvertConstToLet",lue=[N.Cannot_assign_to_0_because_it_is_a_constant.code],Hc({errorCodes:lue,getCodeActions:function(n){const{sourceFile:i,span:c,program:u}=n,d=FYe(i,c.start,u);if(d===void 0)return;const h=zs.ChangeTracker.with(n,S=>m5e(S,i,d.token));return[POe(Ave,h,N.Convert_const_to_let,Ave,N.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:n}=e,i=new Map;return Iq(zs.ChangeTracker.with(e,c=>{GR(e,lue,u=>{const d=FYe(u.file,u.start,n);if(d&&y0(i,$d(d.symbol)))return m5e(c,u.file,d.token)})}))},fixIds:[Ave]})}});function WYe(e,n,i){const c=Lf(e,n);return c.kind===27&&c.parent&&(el(c.parent)||Ed(c.parent))?{node:c}:void 0}function h5e(e,n,{node:i}){const c=he.createToken(28);e.replaceNode(n,i,c)}var Cve,Dve,ike,y5e=G({"src/services/codefixes/fixExpectedComma.ts"(){xl(),If(),Cve="fixExpectedComma",Dve=N._0_expected.code,ike=[Dve],Hc({errorCodes:ike,getCodeActions(e){const{sourceFile:n}=e,i=WYe(n,e.span.start,e.errorCode);if(!i)return;const c=zs.ChangeTracker.with(e,u=>h5e(u,n,i));return[Rd(Cve,c,[N.Change_0_to_1,";",","],Cve,[N.Change_0_to_1,";",","])]},fixIds:[Cve],getAllCodeActions:e=>Sg(e,ike,(n,i)=>{const c=WYe(i.file,i.start,i.code);c&&h5e(n,e.sourceFile,c)})})}});function BYe(e,n,i,c,u){const d=Lf(n,i.start);if(!xn(d)||!xd(d.parent)||d.parent.expression!==d||d.parent.arguments.length!==0)return;const h=c.getTypeChecker(),S=h.getSymbolAtLocation(d),E=S==null?void 0:S.valueDeclaration;if(!E||!Os(E)||!sb(E.parent.parent)||u!=null&&u.has(E))return;u==null||u.add(E);const P=zYe(E.parent.parent);if(gt(P)){const k=P[0],F=!fI(k)&&!XN(k)&&XN(he.createUnionTypeNode([k,he.createKeywordTypeNode(116)]).types[0]);F&&e.insertText(n,k.pos,"("),e.insertText(n,k.end,F?") | void":" | void")}else{const k=h.getResolvedSignature(d.parent),F=k==null?void 0:k.parameters[0],$=F&&h.getTypeOfSymbolAtLocation(F,E.parent.parent);Cs(E)?(!$||$.flags&3)&&(e.insertText(n,E.parent.parent.end,")"),e.insertText(n,Ff(n.text,E.parent.parent.pos),"/** @type {Promise} */(")):(!$||$.flags&2)&&e.insertText(n,E.parent.parent.expression.end,"")}}function zYe(e){var n;if(Cs(e)){if(fE(e.parent)){const i=(n=FM(e.parent))==null?void 0:n.typeExpression.type;if(i&&uE(i)&&xn(i.typeName)&&Kr(i.typeName)==="Promise")return i.typeArguments}}else return e.typeArguments}var GYe,oke,Ive,v5e=G({"src/services/codefixes/fixAddVoidToPromise.ts"(){xl(),If(),GYe="addVoidToPromise",oke="addVoidToPromise",Ive=[N.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,N.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Hc({errorCodes:Ive,fixIds:[oke],getCodeActions(e){const n=zs.ChangeTracker.with(e,i=>BYe(i,e.sourceFile,e.span,e.program));if(n.length>0)return[Rd(GYe,n,N.Add_void_to_Promise_resolved_without_a_value,oke,N.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Sg(e,Ive,(n,i)=>BYe(n,i.file,i,e.program,new Set))}})}}),fT={};Oe(fT,{PreserveOptionalFlags:()=>yve,addNewNodeForMemberSymbol:()=>rV,codeFixAll:()=>Sg,createCodeFixAction:()=>Rd,createCodeFixActionMaybeFixAll:()=>POe,createCodeFixActionWithoutFixAll:()=>xI,createCombinedCodeActions:()=>Iq,createFileTextChanges:()=>qqe,createImportAdder:()=>Z3,createImportSpecifierResolver:()=>Yj,createJsonPropertyAssignment:()=>Qle,createMissingMemberNodes:()=>jFe,createSignatureDeclarationFromCallExpression:()=>Yle,createSignatureDeclarationFromSignature:()=>pve,createStubbedBody:()=>jee,eachDiagnostic:()=>GR,findAncestorMatchingSpan:()=>mB,findJsonProperty:()=>Zle,generateAccessorFromProperty:()=>aYe,getAccessorConvertiblePropertyAtPosition:()=>uYe,getAllFixes:()=>Qut,getAllSupers:()=>KFe,getArgumentTypesAndTypeParameters:()=>UFe,getFixes:()=>up,getImportCompletionAction:()=>FKe,getImportKind:()=>y7e,getJSDocTypedefNodes:()=>wKe,getNoopSymbolTrackerWithResolver:()=>dB,getPromoteTypeOnlyCompletionAction:()=>Pft,getSupportedErrorCodes:()=>NOe,importFixName:()=>Wye,importSymbols:()=>iV,moduleSpecifierToValidIdentifier:()=>Fye,moduleSymbolToValidIdentifier:()=>DIe,parameterShouldGetTypeFromJSDoc:()=>fKe,registerCodeFix:()=>Hc,setJsonCompilerOptionValue:()=>hve,setJsonCompilerOptionValues:()=>Vee,tryGetAutoImportableReferenceFromTypeNode:()=>WF,typeToAutoImportableTypeNode:()=>mve});var If=G({"src/services/_namespaces/ts.codefix.ts"(){DDe(),Kqe(),NDe(),eft(),LOe(),aKe(),sKe(),cKe(),VDe(),zOe(),JDe(),XDe(),ZOe(),s7e(),sIe(),uIe(),c7e(),dIe(),gIe(),_7e(),k7e(),N7e(),R7e(),L7e(),O7e(),z7e(),iXe(),V7e(),J7e(),eFe(),tFe(),oFe(),OIe(),uFe(),_Fe(),dFe(),mFe(),Zft(),hFe(),vFe(),TFe(),EFe(),xFe(),RXe(),DFe(),IFe(),kFe(),wFe(),MFe(),OFe(),JIe(),WFe(),zFe(),GFe(),$Fe(),XFe(),YFe(),e5e(),n5e(),i5e(),o5e(),c5e(),u5e(),f5e(),MYe(),d5e(),rke(),g5e(),y5e(),v5e()}});function hp(e){return!!(e.kind&1)}function C_t(e){return!!(e.kind&2)}function kve(e){return!!(e&&e.kind&4)}function BF(e){return!!(e&&e.kind===32)}function $ee(e){return kve(e)||BF(e)||T5e(e)}function D_t(e){return(kve(e)||BF(e))&&!!e.isFromPackageJson}function I_t(e){return!!(e.kind&8)}function k_t(e){return!!(e.kind&16)}function jYe(e){return!!(e&&e.kind&64)}function b5e(e){return!!(e&&e.kind&128)}function VYe(e){return!!(e&&e.kind&256)}function T5e(e){return!!(e&&e.kind&512)}function ake(e,n,i,c,u,d,h,S,E){var P,k,F;const $=H_(),J=h||UN(Jd(c.getCompilerOptions()));let X=!1,ie=0,ae=0,ve=0,we=0;const Fe=E({tryResolve:Pe,skippedAny:()=>X,resolvedAny:()=>ae>0,resolvedBeyondLimit:()=>ae>Yee}),et=we?` (${(ve/we*100).toFixed(1)}% hit rate)`:"";return(P=n.log)==null||P.call(n,`${e}: resolved ${ae} module specifiers, plus ${ie} ambient and ${ve} from cache${et}`),(k=n.log)==null||k.call(n,`${e}: response is ${X?"incomplete":"complete"}`),(F=n.log)==null||F.call(n,`${e}: ${H_()-$}`),Fe;function Pe(dt,Ie){if(Ie){const Ze=i.getModuleSpecifierForBestExportInfo(dt,u,S);return Ze&&ie++,Ze||"failed"}const ct=J||d.allowIncompleteCompletions&&ae{const X=Qo(E.entries,ie=>{var ae;if(!ie.hasAction||!ie.source||!ie.data||uue(ie.data))return ie;if(!gQe(ie.name,k))return;const{origin:ve}=re.checkDefined(Ove(ie.name,ie.data,c,u)),we=F.get(n.path,ie.data.exportMapKey),Fe=we&&J.tryResolve(we,!Kv(S2(ve.moduleSymbol.name)));if(Fe==="skipped")return ie;if(!Fe||Fe==="failed"){(ae=u.log)==null||ae.call(u,`Unexpected failure resolving auto import for '${ie.name}' from '${ie.source}'`);return}const et={...ve,kind:32,moduleSpecifier:Fe.moduleSpecifier};return ie.data=wve(et),ie.source=D5e(et),ie.sourceDisplay=[lS(et.moduleSpecifier)],ie});return J.skippedAny()||(E.isIncomplete=void 0),X});return E.entries=$,E.flags=(E.flags||0)|4,E.optionalReplacementSpan=qYe(P),E}function S5e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function ske(e,n,i,c,u,d){const h=Lf(e,n);if(!d7(h)&&!uC(h))return[];const S=uC(h)?h:h.parent;if(!uC(S))return[];const E=S.parent;if(!F_(E))return[];const P=Gy(e),k=u.includeCompletionsWithSnippetText||void 0,F=dp(S.tags,$=>A2($)&&$.getEnd()<=n);return Qo(E.parameters,$=>{if(!o_($).length){if(xn($.name)){const J={tabstop:1},X=$.name.text;let ie=qee(X,$.initializer,$.dotDotDotToken,P,!1,!1,i,c,u),ae=k?qee(X,$.initializer,$.dotDotDotToken,P,!1,!0,i,c,u,J):void 0;return d&&(ie=ie.slice(1),ae&&(ae=ae.slice(1))),{name:ie,kind:"parameter",sortText:cm.LocationPriority,insertText:k?ae:void 0,isSnippet:k}}else if($.parent.parameters.indexOf($)===F){const J=`param${F}`,X=E5e(J,$.name,$.initializer,$.dotDotDotToken,P,!1,i,c,u),ie=k?E5e(J,$.name,$.initializer,$.dotDotDotToken,P,!0,i,c,u):void 0;let ae=X.join(JE(c)+"* "),ve=ie==null?void 0:ie.join(JE(c)+"* ");return d&&(ae=ae.slice(1),ve&&(ve=ve.slice(1))),{name:ae,kind:"parameter",sortText:cm.LocationPriority,insertText:k?ve:void 0,isSnippet:k}}}})}function E5e(e,n,i,c,u,d,h,S,E){if(!u)return[qee(e,i,c,u,!1,d,h,S,E,{tabstop:1})];return P(e,n,i,c,{tabstop:1});function P(F,$,J,X,ie){if(Ch($)&&!X){const ve={tabstop:ie.tabstop},we=qee(F,J,X,u,!0,d,h,S,E,ve);let Fe=[];for(const et of $.elements){const Pe=k(F,et,ve);if(Pe)Fe.push(...Pe);else{Fe=void 0;break}}if(Fe)return ie.tabstop=ve.tabstop,[we,...Fe]}return[qee(F,J,X,u,!1,d,h,S,E,ie)]}function k(F,$,J){if(!$.propertyName&&xn($.name)||xn($.name)){const X=$.propertyName?tH($.propertyName):$.name.text;if(!X)return;const ie=`${F}.${X}`;return[qee(ie,$.initializer,$.dotDotDotToken,u,!1,d,h,S,E,J)]}else if($.propertyName){const X=tH($.propertyName);return X&&P(`${F}.${X}`,$.name,$.initializer,$.dotDotDotToken,J)}}}function qee(e,n,i,c,u,d,h,S,E,P){if(d&&re.assertIsDefined(P),n&&(e=fue(e,n)),d&&(e=nD(e)),c){let k="*";if(u)re.assert(!i,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(n){const J=h.getTypeAtLocation(n.parent);if(!(J.flags&16385)){const X=n.getSourceFile(),ae=OS(X,E)===0?268435456:0,ve=h.typeToTypeNode(J,Ua(n,F_),ae);if(ve){const we=d?lke({removeComments:!0,module:S.module,target:S.target}):F3({removeComments:!0,module:S.module,target:S.target});_s(ve,1),k=we.printNode(4,ve,X)}}}d&&k==="*"&&(k=`\${${P.tabstop++}:${k}}`)}const F=!u&&i?"...":"",$=d?`\${${P.tabstop++}}`:"";return`@param {${F}${k}} ${e} ${$}`}else{const k=d?`\${${P.tabstop++}}`:"";return`@param ${e} ${k}`}}function fue(e,n){const i=n.getText().trim();return i.includes(` +`)||i.length>80?`[${e}]`:`[${e}=${i}]`}function P_t(e){return{name:Cf(e),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords}}function N_t(e,n){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:e.slice()}}function JYe(e,n,i){return{kind:4,keywordCompletions:Wve(e,n),isNewIdentifierLocation:i}}function $Ye(e){switch(e){case 156:return 8;default:re.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function qYe(e){return(e==null?void 0:e.kind)===80?sT(e):void 0}function KYe(e,n,i,c,u,d,h,S,E,P){const{symbols:k,contextToken:F,completionKind:$,isInSnippetScope:J,isNewIdentifierLocation:X,location:ie,propertyAccessToConvert:ae,keywordFilters:ve,symbolToOriginInfoMap:we,recommendedCompletion:Fe,isJsxInitializer:et,isTypeOnlyLocation:Pe,isJsxIdentifierExpected:dt,isRightOfOpenTag:Ie,isRightOfDotOrQuestionDot:ct,importStatementCompletion:Ct,insideJsDocTagTypeExpression:Lt,symbolToSortTextMap:Ze,hasUnresolvedAutoImports:Ke}=d;let st=d.literals;const It=i.getTypeChecker();if($9(e.scriptKind)===1){const Rn=w_t(ie,e);if(Rn)return Rn}const Yt=Ua(F,BT);if(Yt&&(Hh(F)||Lx(F,Yt.expression))){const Rn=ZZ(It,Yt.parent.clauses);st=st.filter(cn=>!Rn.hasValue(cn)),k.forEach((cn,qt)=>{if(cn.valueDeclaration&&pI(cn.valueDeclaration)){const Kt=It.getConstantValue(cn.valueDeclaration);Kt!==void 0&&Rn.hasValue(Kt)&&(we[qt]={kind:256})}})}const Et=g2(),at=XYe(e,c);if(at&&!X&&(!k||k.length===0)&&ve===0)return;const Qt=Rve(k,Et,void 0,F,ie,E,e,n,i,iu(c),u,$,h,c,S,Pe,ae,dt,et,Ct,Fe,we,Ze,dt,Ie,P);if(ve!==0)for(const Rn of Wve(ve,!Lt&&Gy(e)))(Pe&&Z$(D8(Rn.name))||!Pe&&q_t(Rn.name)||!Qt.has(Rn.name))&&(Qt.add(Rn.name),d0(Et,Rn,Pve,!0));for(const Rn of fke(F,E))Qt.has(Rn.name)||(Qt.add(Rn.name),d0(Et,Rn,Pve,!0));for(const Rn of st){const cn=C5e(e,h,Rn);Qt.add(cn.name),d0(Et,cn,Pve,!0)}at||R_t(e,ie.pos,Qt,iu(c),Et);let nn;if(h.includeCompletionsWithInsertText&&F&&!Ie&&!ct&&(nn=Ua(F,Fv))){const Rn=x5e(nn,e,h,c,n,i,S);Rn&&Et.push(Rn.entry)}return{flags:d.flags,isGlobalCompletion:J,isIncomplete:h.allowIncompleteCompletions&&Ke?!0:void 0,isMemberCompletion:cke($),isNewIdentifierLocation:X,optionalReplacementSpan:qYe(ie),entries:Et}}function XYe(e,n){return!Gy(e)||!!tW(e,n)}function x5e(e,n,i,c,u,d,h){const S=e.clauses,E=d.getTypeChecker(),P=E.getTypeAtLocation(e.parent.expression);if(P&&P.isUnion()&&jr(P.types,k=>k.isLiteral())){const k=ZZ(E,S),F=iu(c),$=OS(n,i),J=fT.createImportAdder(n,d,i,u),X=[];for(const Pe of P.types)if(Pe.flags&1024){re.assert(Pe.symbol,"An enum member type should have a symbol"),re.assert(Pe.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const dt=Pe.symbol.valueDeclaration&&E.getConstantValue(Pe.symbol.valueDeclaration);if(dt!==void 0){if(k.hasValue(dt))continue;k.addValue(dt)}const Ie=fT.typeToAutoImportableTypeNode(E,J,Pe,e,F);if(!Ie)return;const ct=Nve(Ie,F,$);if(!ct)return;X.push(ct)}else if(!k.hasValue(Pe.value))switch(typeof Pe.value){case"object":X.push(Pe.value.negative?he.createPrefixUnaryExpression(41,he.createBigIntLiteral({negative:!1,base10Value:Pe.value.base10Value})):he.createBigIntLiteral(Pe.value));break;case"number":X.push(Pe.value<0?he.createPrefixUnaryExpression(41,he.createNumericLiteral(-Pe.value)):he.createNumericLiteral(Pe.value));break;case"string":X.push(he.createStringLiteral(Pe.value,$===0));break}if(X.length===0)return;const ie=Vn(X,Pe=>he.createCaseClause(Pe,[])),ae=R6(u,h==null?void 0:h.options),ve=lke({removeComments:!0,module:c.module,target:c.target,newLine:Fj(ae)}),we=h?Pe=>ve.printAndFormatNode(4,Pe,n,h):Pe=>ve.printNode(4,Pe,n),Fe=Vn(ie,(Pe,dt)=>i.includeCompletionsWithSnippetText?`${we(Pe)}$${dt+1}`:`${we(Pe)}`).join(ae);return{entry:{name:`${ve.printNode(4,ie[0],n)} ...`,kind:"",sortText:cm.GlobalsOrKeywords,insertText:Fe,hasAction:J.hasFixes()||void 0,source:"SwitchCases/",isSnippet:i.includeCompletionsWithSnippetText?!0:void 0},importAdder:J}}}function Nve(e,n,i){switch(e.kind){case 183:const c=e.typeName;return Kee(c,n,i);case 199:const u=Nve(e.objectType,n,i),d=Nve(e.indexType,n,i);return u&&d&&he.createElementAccessExpression(u,d);case 201:const h=e.literal;switch(h.kind){case 11:return he.createStringLiteral(h.text,i===0);case 9:return he.createNumericLiteral(h.text,h.numericLiteralFlags)}return;case 196:const S=Nve(e.type,n,i);return S&&(xn(S)?S:he.createParenthesizedExpression(S));case 186:return Kee(e.exprName,n,i);case 205:re.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Kee(e,n,i){if(xn(e))return e;const c=Ic(e.right.escapedText);return doe(c,n)?he.createPropertyAccessExpression(Kee(e.left,n,i),c):he.createElementAccessExpression(Kee(e.left,n,i),he.createStringLiteral(c,i===0))}function cke(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function w_t(e,n){const i=Ua(e,c=>{switch(c.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(i){const c=!!qm(i,32,n),h=i.parent.openingElement.tagName.getText(n)+(c?"":">"),S=sT(i.tagName),E={name:h,kind:"class",kindModifiers:void 0,sortText:cm.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:S,entries:[E]}}}function R_t(e,n,i,c,u){xee(e).forEach((d,h)=>{if(d===n)return;const S=Ic(h);!i.has(S)&&H2(S,c)&&(i.add(S),d0(u,{name:S,kind:"warning",kindModifiers:"",sortText:cm.JavascriptIdentifiers,isFromUncheckedFile:!0},Pve))})}function A5e(e,n,i){return typeof i=="object"?tD(i)+"n":As(i)?VZ(e,n,i):JSON.stringify(i)}function C5e(e,n,i){return{name:A5e(e,n,i),kind:"string",kindModifiers:"",sortText:cm.LocationPriority}}function M_t(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt,Ie){var ct,Ct;let Lt,Ze,Ke=wZ(i),st,It,Yt=D5e(F),Et,at,Qt;const nn=E.getTypeChecker(),Rn=F&&k_t(F),cn=F&&C_t(F)||k;if(F&&hp(F))Lt=k?`this${Rn?"?.":""}[${eQe(h,we,P)}]`:`this${Rn?"?.":"."}${P}`;else if((cn||Rn)&&J){Lt=cn?k?`[${eQe(h,we,P)}]`:`[${P}]`:P,(Rn||J.questionDotToken)&&(Lt=`?.${Lt}`);const Kt=qm(J,25,h)||qm(J,29,h);if(!Kt)return;const wr=qf(P,J.name.text)?J.name.end:Kt.end;Ke=Yy(Kt.getStart(h),wr)}if(X&&(Lt===void 0&&(Lt=P),Lt=`{${Lt}}`,typeof X!="boolean"&&(Ke=sT(X,h))),F&&I_t(F)&&J){Lt===void 0&&(Lt=P);const Kt=bv(J.pos,h);let wr="";Kt&&pce(Kt.end,Kt.parent,h)&&(wr=";"),wr+=`(await ${J.expression.getText()})`,Lt=k?`${wr}${Lt}`:`${wr}${Rn?"?.":"."}${Lt}`;const jt=to(J.parent,ys)?J.parent:J.expression;Ke=Yy(jt.getStart(h),J.end)}if(BF(F)&&(Et=[lS(F.moduleSpecifier)],ie&&({insertText:Lt,replacementSpan:Ke}=B_t(P,ie,F,ae,h,ve,we),It=we.includeCompletionsWithSnippetText?!0:void 0)),(F==null?void 0:F.kind)===64&&(at=!0),Fe===0&&c&&((ct=bv(c.pos,h,c))==null?void 0:ct.kind)!==28&&(tm(c.parent.parent)||lE(c.parent.parent)||Xb(c.parent.parent)||xA(c.parent)||((Ct=Ua(c.parent,tl))==null?void 0:Ct.getLastToken(h))===c||XE(c.parent)&&xm(h,c.getEnd()).line!==xm(h,d).line)&&(Yt="ObjectLiteralMemberWithComma/",at=!0),we.includeCompletionsWithClassMemberSnippets&&we.includeCompletionsWithInsertText&&Fe===3&&L_t(e,u,h)){let Kt;const wr=YYe(S,E,ve,we,P,e,u,d,c,et);if(wr)({insertText:Lt,filterText:Ze,isSnippet:It,importAdder:Kt}=wr),Kt!=null&&Kt.hasFixes()&&(at=!0,Yt="ClassMemberSnippet/");else return}if(F&&b5e(F)&&({insertText:Lt,isSnippet:It,labelDetails:Qt}=F,we.useLabelDetailsInCompletionEntries||(P=P+Qt.detail,Qt=void 0),Yt="ObjectLiteralMethodSnippet/",n=cm.SortBelow(n)),Pe&&!dt&&we.includeCompletionsWithSnippetText&&we.jsxAttributeCompletionStyle&&we.jsxAttributeCompletionStyle!=="none"&&!(tx(u.parent)&&u.parent.initializer)){let Kt=we.jsxAttributeCompletionStyle==="braces";const wr=nn.getTypeOfSymbolAtLocation(e,u);we.jsxAttributeCompletionStyle==="auto"&&!(wr.flags&528)&&!(wr.flags&1048576&&lr(wr.types,Wr=>!!(Wr.flags&528)))&&(wr.flags&402653316||wr.flags&1048576&&jr(wr.types,Wr=>!!(Wr.flags&402686084||Hge(Wr)))?(Lt=`${nD(P)}=${VZ(h,we,"$1")}`,It=!0):Kt=!0),Kt&&(Lt=`${nD(P)}={$1}`,It=!0)}if(Lt!==void 0&&!we.includeCompletionsWithInsertText)return;(kve(F)||BF(F))&&(st=wve(F),at=!ie);const qt=Ua(u,LH);if((qt==null?void 0:qt.kind)===275){const Kt=D8(P);qt&&Kt&&(Kt===135||e6(Kt))&&(Lt=`${P} as ${P}_`)}return{name:P,kind:W6.getSymbolKind(nn,e,u),kindModifiers:W6.getSymbolModifiers(nn,e),sortText:n,source:Yt,hasAction:at?!0:void 0,isRecommended:tQe(e,$,nn)||void 0,insertText:Lt,filterText:Ze,replacementSpan:Ke,sourceDisplay:Et,labelDetails:Qt,isSnippet:It,isPackageJsonImport:D_t(F)||void 0,isImportStatementCompletion:!!ie||void 0,data:st,...Ie?{symbol:e}:void 0}}function L_t(e,n,i){return Cs(n)?!1:!!(e.flags&106500)&&(Fl(n)||n.parent&&n.parent.parent&&J_(n.parent)&&n===n.parent.name&&n.parent.getLastToken(i)===n.parent.name&&Fl(n.parent.parent)||n.parent&&AW(n)&&Fl(n.parent))}function YYe(e,n,i,c,u,d,h,S,E,P){const k=Ua(h,Fl);if(!k)return;let F,$=u;const J=u,X=n.getTypeChecker(),ie=h.getSourceFile(),ae=lke({removeComments:!0,module:i.module,target:i.target,omitTrailingSemicolon:!1,newLine:Fj(R6(e,P==null?void 0:P.options))}),ve=fT.createImportAdder(ie,n,c,e);let we;if(c.includeCompletionsWithSnippetText){F=!0;const Ct=he.createEmptyStatement();we=he.createBlock([Ct],!0),rpe(Ct,{kind:0,order:0})}else we=he.createBlock([],!0);let Fe=0;const{modifiers:et,range:Pe,decorators:dt}=QYe(E,ie,S),Ie=et&64&&k.modifierFlagsCache&64;let ct=[];if(fT.addNewNodeForMemberSymbol(d,k,ie,{program:n,host:e},c,ve,Ct=>{let Lt=0;Ie&&(Lt|=64),J_(Ct)&&X.getMemberOverrideModifierStatus(k,Ct,d)===1&&(Lt|=16),ct.length||(Fe=Ct.modifierFlagsCache|Lt),Ct=he.replaceModifiers(Ct,Fe),ct.push(Ct)},we,fT.PreserveOptionalFlags.Property,!!Ie),ct.length){const Ct=d.flags&8192;let Lt=Fe|16|1;Ct?Lt|=1024:Lt|=136;const Ze=et≪if(et&~Lt)return;if(Fe&4&&Ze&1&&(Fe&=-5),Ze!==0&&!(Ze&1)&&(Fe&=-2),Fe|=Ze,ct=ct.map(st=>he.replaceModifiers(st,Fe)),dt!=null&&dt.length){const st=ct[ct.length-1];S6(st)&&(ct[ct.length-1]=he.replaceDecoratorsAndModifiers(st,dt.concat(Xv(st)||[])))}const Ke=131073;P?$=ae.printAndFormatSnippetList(Ke,he.createNodeArray(ct),ie,P):$=ae.printSnippetList(Ke,he.createNodeArray(ct),ie)}return{insertText:$,filterText:J,isSnippet:F,importAdder:ve,eraseRange:Pe}}function QYe(e,n,i){if(!e||xm(n,i).line>xm(n,e.getEnd()).line)return{modifiers:0};let c=0,u,d;const h={pos:i,end:i};if(nu(e.parent)&&e.parent.modifiers&&(c|=aI(e.parent.modifiers)&98303,u=e.parent.modifiers.filter(Jh)||[],h.pos=Math.min(h.pos,e.parent.modifiers.pos)),d=O_t(e)){const S=F7(d);c&S||(c|=S,h.pos=Math.min(h.pos,e.pos))}return{modifiers:c,decorators:u,range:h.pos!==i?h:void 0}}function O_t(e){if(Mf(e))return e.kind;if(xn(e)){const n=uP(e);if(n&&Om(n))return n}}function F_t(e,n,i,c,u,d,h,S){const E=h.includeCompletionsWithSnippetText||void 0;let P=n;const k=i.getSourceFile(),F=W_t(e,i,k,c,u,h);if(!F)return;const $=lke({removeComments:!0,module:d.module,target:d.target,omitTrailingSemicolon:!1,newLine:Fj(R6(u,S==null?void 0:S.options))});S?P=$.printAndFormatSnippetList(80,he.createNodeArray([F],!0),k,S):P=$.printSnippetList(80,he.createNodeArray([F],!0),k);const J=F3({removeComments:!0,module:d.module,target:d.target,omitTrailingSemicolon:!0}),X=he.createMethodSignature(void 0,"",F.questionToken,F.typeParameters,F.parameters,F.type),ie={detail:J.printNode(4,X,k)};return{isSnippet:E,insertText:P,labelDetails:ie}}function W_t(e,n,i,c,u,d){const h=e.getDeclarations();if(!(h&&h.length))return;const S=c.getTypeChecker(),E=h[0],P=ih(i_(E),!1),k=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,n)),$=33554432|(OS(i,d)===0?268435456:0);switch(E.kind){case 171:case 172:case 173:case 174:{let J=k.flags&1048576&&k.types.length<10?S.getUnionType(k.types,2):k;if(J.flags&1048576){const we=gi(J.types,Fe=>S.getSignaturesOfType(Fe,0).length>0);if(we.length===1)J=we[0];else return}if(S.getSignaturesOfType(J,0).length!==1)return;const ie=S.typeToTypeNode(J,n,$,fT.getNoopSymbolTrackerWithResolver({program:c,host:u}));if(!ie||!e0(ie))return;let ae;if(d.includeCompletionsWithSnippetText){const we=he.createEmptyStatement();ae=he.createBlock([we],!0),rpe(we,{kind:0,order:0})}else ae=he.createBlock([],!0);const ve=ie.parameters.map(we=>he.createParameterDeclaration(void 0,we.dotDotDotToken,we.name,void 0,void 0,we.initializer));return he.createMethodDeclaration(void 0,void 0,P,void 0,void 0,ve,void 0,ae)}default:return}}function lke(e){let n;const i=zs.createWriter(JE(e)),c=F3(e,i),u={...i,write:$=>d($,()=>i.write($)),nonEscapingWrite:i.write,writeLiteral:$=>d($,()=>i.writeLiteral($)),writeStringLiteral:$=>d($,()=>i.writeStringLiteral($)),writeSymbol:($,J)=>d($,()=>i.writeSymbol($,J)),writeParameter:$=>d($,()=>i.writeParameter($)),writeComment:$=>d($,()=>i.writeComment($)),writeProperty:$=>d($,()=>i.writeProperty($))};return{printSnippetList:h,printAndFormatSnippetList:E,printNode:P,printAndFormatNode:F};function d($,J){const X=nD($);if(X!==$){const ie=i.getTextPos();J();const ae=i.getTextPos();n=ur(n||(n=[]),{newText:X,span:{start:ie,length:ae-ie}})}else J()}function h($,J,X){const ie=S($,J,X);return n?zs.applyChanges(ie,n):ie}function S($,J,X){return n=void 0,u.clear(),c.writeList($,J,X,u),u.getText()}function E($,J,X,ie){const ae={text:S($,J,X),getLineAndCharacterOfPosition(et){return xm(this,et)}},ve=uq(ie,X),we=ea(J,et=>{const Pe=zs.assignPositionsToNode(et);return V0.formatNodeGivenIndentation(Pe,ae,X.languageVariant,0,0,{...ie,options:ve})}),Fe=n?nh(Hi(we,n),(et,Pe)=>pU(et.span,Pe.span)):we;return zs.applyChanges(ae.text,Fe)}function P($,J,X){const ie=k($,J,X);return n?zs.applyChanges(ie,n):ie}function k($,J,X){return n=void 0,u.clear(),c.writeNode($,J,X,u),u.getText()}function F($,J,X,ie){const ae={text:k($,J,X),getLineAndCharacterOfPosition(Pe){return xm(this,Pe)}},ve=uq(ie,X),we=zs.assignPositionsToNode(J),Fe=V0.formatNodeGivenIndentation(we,ae,X.languageVariant,0,0,{...ie,options:ve}),et=n?nh(Hi(Fe,n),(Pe,dt)=>pU(Pe.span,dt.span)):Fe;return zs.applyChanges(ae.text,et)}}function wve(e){const n=e.fileName?void 0:S2(e.moduleSymbol.name),i=e.isFromPackageJson?!0:void 0;return BF(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:n,fileName:e.fileName,isPackageJsonImport:i}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:S2(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function ZYe(e,n,i){const c=e.exportName==="default",u=!!e.isPackageJsonImport;return uue(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:c,isFromPackageJson:u}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:i,isDefaultExport:c,isFromPackageJson:u}}function B_t(e,n,i,c,u,d,h){const S=n.replacementSpan,E=nD(VZ(u,h,i.moduleSpecifier)),P=i.isDefaultExport?1:i.exportName==="export="?2:0,k=h.includeCompletionsWithSnippetText?"$1":"",F=fT.getImportKind(u,P,d,!0),$=n.couldBeTypeOnlyImportSpecifier,J=n.isTopLevelTypeOnly?` ${Cf(156)} `:" ",X=$?`${Cf(156)} `:"",ie=c?";":"";switch(F){case 3:return{replacementSpan:S,insertText:`import${J}${nD(e)}${k} = require(${E})${ie}`};case 1:return{replacementSpan:S,insertText:`import${J}${nD(e)}${k} from ${E}${ie}`};case 2:return{replacementSpan:S,insertText:`import${J}* as ${nD(e)} from ${E}${ie}`};case 0:return{replacementSpan:S,insertText:`import${J}{ ${X}${nD(e)}${k} } from ${E}${ie}`}}}function eQe(e,n,i){return/^\d+$/.test(i)?i:VZ(e,n,i)}function tQe(e,n,i){return e===n||!!(e.flags&1048576)&&i.getExportSymbolOfSymbol(e)===n}function D5e(e){if(kve(e))return S2(e.moduleSymbol.name);if(BF(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function Rve(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie,ae,ve,we,Fe,et,Pe,dt,Ie,ct,Ct=!1){const Lt=H_(),Ze=L5e(c,u),Ke=$Z(h),st=E.getTypeChecker(),It=new Map;for(let Et=0;Etjt.getSourceFile()===u.getSourceFile()));It.set(Rn,Wr),d0(n,wr,Pve,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(H_()-Lt)),{has:Et=>It.has(Et),add:Et=>It.set(Et,!0)};function Yt(Et,at){var Qt;let nn=Et.flags;if(!Nu(u)){if(py(u.parent))return!0;if(to(Ze,Kc)&&Et.valueDeclaration===Ze)return!1;const Rn=Et.valueDeclaration??((Qt=Et.declarations)==null?void 0:Qt[0]);if(Ze&&Rn&&(Np(Ze)&&Np(Rn)||Os(Ze)&&Os(Rn))){const qt=Rn.pos,Kt=Os(Ze)?Ze.parent.parameters:KN(Ze.parent)?void 0:Ze.parent.typeParameters;if(qt>=Ze.pos&&Kt&&qtA5e(i,h,Fe)===u.name);return we!==void 0?{type:"literal",literal:we}:Yr(P,(Fe,et)=>{const Pe=J[et],dt=Fve(Fe,iu(S),Pe,$,E.isJsxIdentifierExpected);return dt&&dt.name===u.name&&(u.source==="ClassMemberSnippet/"&&Fe.flags&106500||u.source==="ObjectLiteralMethodSnippet/"&&Fe.flags&8196||D5e(Pe)===u.source||u.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Fe,location:F,origin:Pe,contextToken:X,previousToken:ie,isJsxInitializer:ae,isTypeOnlyLocation:ve}:void 0})||{type:"none"}}function rQe(e,n,i,c,u,d,h,S,E){const P=e.getTypeChecker(),k=e.getCompilerOptions(),{name:F,source:$,data:J}=u,{previousToken:X,contextToken:ie}=uke(c,i);if(V3(i,c,X))return Zee.getStringLiteralCompletionDetails(F,i,c,X,P,k,d,E,S);const ae=nQe(e,n,i,c,u,d,S);switch(ae.type){case"request":{const{request:ve}=ae;switch(ve.kind){case 1:return nO.getJSDocTagNameCompletionDetails(F);case 2:return nO.getJSDocTagCompletionDetails(F);case 3:return nO.getJSDocParameterNameCompletionDetails(F);case 4:return gt(ve.keywordCompletions,we=>we.name===F)?k5e(F,"keyword",5):void 0;default:return re.assertNever(ve)}}case"symbol":{const{symbol:ve,location:we,contextToken:Fe,origin:et,previousToken:Pe}=ae,{codeActions:dt,sourceDisplay:Ie}=Lve(F,we,Fe,et,ve,e,d,k,i,c,Pe,h,S,J,$,E),ct=T5e(et)?et.symbolName:ve.name;return Mve(ve,ct,P,i,we,E,dt,Ie)}case"literal":{const{literal:ve}=ae;return k5e(A5e(i,S,ve),"string",typeof ve=="string"?8:7)}case"cases":{const ve=x5e(ie.parent,i,S,e.getCompilerOptions(),d,e,void 0);if(ve!=null&&ve.importAdder.hasFixes()){const{entry:we,importAdder:Fe}=ve,et=zs.ChangeTracker.with({host:d,formatContext:h,preferences:S},Fe.writeFixes);return{name:we.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:et,description:$3([N.Includes_imports_of_types_referenced_by_0,F])}]}}return{name:F,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Jve().some(ve=>ve.name===F)?k5e(F,"keyword",5):void 0;default:re.assertNever(ae)}}function k5e(e,n,i){return Xee(e,"",n,[yE(e,i)])}function Mve(e,n,i,c,u,d,h,S){const{displayParts:E,documentation:P,symbolKind:k,tags:F}=i.runWithCancellationToken(d,$=>W6.getSymbolDisplayPartsDocumentationAndSymbolKind($,e,c,u,u,7));return Xee(n,W6.getSymbolModifiers(i,e),k,E,P,F,h,S)}function Xee(e,n,i,c,u,d,h,S){return{name:e,kindModifiers:n,kind:i,displayParts:c,documentation:u,tags:d,codeActions:h,source:S,sourceDisplay:S}}function Lve(e,n,i,c,u,d,h,S,E,P,k,F,$,J,X,ie){if(J!=null&&J.moduleSpecifier&&k&&_Qe(i||k,E).replacementSpan)return{codeActions:void 0,sourceDisplay:[lS(J.moduleSpecifier)]};if(X==="ClassMemberSnippet/"){const{importAdder:dt,eraseRange:Ie}=YYe(h,d,S,$,e,u,n,P,i,F);if(dt||Ie)return{sourceDisplay:void 0,codeActions:[{changes:zs.ChangeTracker.with({host:h,formatContext:F,preferences:$},Ct=>{dt&&dt.writeFixes(Ct),Ie&&Ct.deleteRange(E,Ie)}),description:$3([N.Includes_imports_of_types_referenced_by_0,e])}]}}if(jYe(c)){const dt=fT.getPromoteTypeOnlyCompletionAction(E,c.declaration.name,d,h,F,$);return re.assertIsDefined(dt,"Expected to have a code action for promoting type-only alias"),{codeActions:[dt],sourceDisplay:void 0}}if(X==="ObjectLiteralMemberWithComma/"&&i){const dt=zs.ChangeTracker.with({host:h,formatContext:F,preferences:$},Ie=>Ie.insertText(E,i.end,","));if(dt)return{sourceDisplay:void 0,codeActions:[{changes:dt,description:$3([N.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!c||!(kve(c)||BF(c)))return{codeActions:void 0,sourceDisplay:void 0};const ae=c.isFromPackageJson?h.getPackageJsonAutoImportProvider().getTypeChecker():d.getTypeChecker(),{moduleSymbol:ve}=c,we=ae.getMergedSymbol(dg(u.exportSymbol||u,ae)),Fe=(i==null?void 0:i.kind)===30&&m1(i.parent),{moduleSpecifier:et,codeAction:Pe}=fT.getImportCompletionAction(we,ve,J==null?void 0:J.exportMapKey,E,e,Fe,h,d,F,k&&xn(k)?k.getStart(E):P,$,ie);return re.assert(!(J!=null&&J.moduleSpecifier)||et===J.moduleSpecifier),{sourceDisplay:[lS(et)],codeActions:[Pe]}}function G_t(e,n,i,c,u,d,h){const S=nQe(e,n,i,c,u,d,h);return S.type==="symbol"?S.symbol:void 0}function j_t(e,n,i){return Yr(n&&(n.isUnion()?n.types:[n]),c=>{const u=c&&c.symbol;return u&&u.flags&424&&!ISe(u)?P5e(u,e,i):void 0})}function V_t(e,n,i,c){const{parent:u}=e;switch(e.kind){case 80:return aq(e,c);case 64:switch(u.kind){case 260:return c.getContextualType(u.initializer);case 226:return c.getTypeAtLocation(u.left);case 291:return c.getContextualTypeForJsxAttribute(u);default:return}case 105:return c.getContextualType(u);case 84:const d=to(u,BT);return d?_ce(d,c):void 0;case 19:return CP(u)&&!zx(u.parent)&&!Ek(u.parent)?c.getContextualTypeForJsxAttribute(u.parent):void 0;default:const h=gue.getArgumentInfoForCompletions(e,n,i);return h?c.getContextualTypeForArgumentAtIndex(h.invocation,h.argumentIndex+(e.kind===28?1:0)):sq(e.kind)&&Ds(u)&&sq(u.operatorToken.kind)?c.getTypeAtLocation(u.left):c.getContextualType(e,4)||c.getContextualType(e)}}function P5e(e,n,i){const c=i.getAccessibleSymbolChain(e,n,67108863,!1);return c?Dl(c):e.parent&&(N5e(e.parent)?e:P5e(e.parent,n,i))}function N5e(e){var n;return!!((n=e.declarations)!=null&&n.some(i=>i.kind===312))}function iQe(e,n,i,c,u,d,h,S,E,P){const k=e.getTypeChecker(),F=XYe(i,c);let $=H_(),J=Lf(i,u);n("getCompletionData: Get current token: "+(H_()-$)),$=H_();const X=tw(i,u,J);n("getCompletionData: Is inside comment: "+(H_()-$));let ie=!1,ae=!1;if(X){if(DAe(i,u)){if(i.text.charCodeAt(u-1)===64)return{kind:1};{const mn=Ux(u,i);if(!/[^*|\s(/)]/.test(i.text.substring(mn,u)))return{kind:2}}}const ge=U_t(J,u);if(ge){if(ge.tagName.pos<=u&&u<=ge.tagName.end)return{kind:1};const mn=io(ge);if(mn&&(J=Lf(i,u),(!J||!ON(J)&&(J.parent.kind!==355||J.parent.name!==J))&&(ie=Mt(mn))),!ie&&A2(ge)&&(ny(ge.name)||ge.name.pos<=u&&u<=ge.name.end))return{kind:3,tag:ge}}if(!ie){n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}$=H_();const ve=!ie&&Gy(i),we=uke(u,i),Fe=we.previousToken;let et=we.contextToken;n("getCompletionData: Get previous token: "+(H_()-$));let Pe=J,dt,Ie=!1,ct=!1,Ct=!1,Lt=!1,Ze=!1,Ke=!1,st,It=cS(i,u),Yt=0,Et=!1,at=0;if(et){const ge=_Qe(et,i);if(ge.keywordCompletion){if(ge.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[P_t(ge.keywordCompletion)],isNewIdentifierLocation:ge.isNewIdentifierLocation};Yt=$Ye(ge.keywordCompletion)}if(ge.replacementSpan&&d.includeCompletionsForImportStatements&&d.includeCompletionsWithInsertText&&(at|=2,st=ge,Et=ge.isNewIdentifierLocation),!ge.replacementSpan&&yf(et))return n("Returning an empty list because completion was requested in an invalid position."),Yt?JYe(Yt,ve,Eu()):void 0;let mn=et.parent;if(et.kind===25||et.kind===29)switch(Ie=et.kind===25,ct=et.kind===29,mn.kind){case 211:dt=mn,Pe=dt.expression;const Jn=i3(dt);if(ny(Jn)||(xd(Pe)||F_(Pe))&&Pe.end===et.pos&&Pe.getChildCount(i)&&yl(Pe.getChildren(i)).kind!==22)return;break;case 166:Pe=mn.left;break;case 267:Pe=mn.name;break;case 205:Pe=mn;break;case 236:Pe=mn.getFirstToken(i),re.assert(Pe.kind===102||Pe.kind===105);break;default:return}else if(!st){if(mn&&mn.kind===211&&(et=mn,mn=mn.parent),J.parent===It)switch(J.kind){case 32:(J.parent.kind===284||J.parent.kind===286)&&(It=J);break;case 44:J.parent.kind===285&&(It=J);break}switch(mn.kind){case 287:et.kind===44&&(Lt=!0,It=et);break;case 226:if(!uQe(mn))break;case 285:case 284:case 286:Ke=!0,et.kind===30&&(Ct=!0,It=et);break;case 294:case 293:(Fe.kind===20||Fe.kind===80&&Fe.parent.kind===291)&&(Ke=!0);break;case 291:if(mn.initializer===Fe&&Fe.endy4(ge?S.getPackageJsonAutoImportProvider():e,S));if(Ie||ct)no();else if(Ct)qt=k.getJsxIntrinsicTagNamesAt(It),re.assertEachIsDefined(qt,"getJsxIntrinsicTagNames() should all be defined"),ki(),nn=1,Yt=0;else if(Lt){const ge=et.parent.parent.openingElement.tagName,mn=k.getSymbolAtLocation(ge);mn&&(qt=[mn]),nn=1,Yt=0}else if(!ki())return Yt?JYe(Yt,ve,Et):void 0;n("getCompletionData: Semantic work: "+(H_()-Qt));const Tr=Fe&&V_t(Fe,u,i,k),Pn=!to(Fe,Cm)&&!Ke?Qo(Tr&&(Tr.isUnion()?Tr.types:[Tr]),ge=>ge.isLiteral()&&!(ge.flags&1024)?ge.value:void 0):[],Fr=Fe&&Tr&&j_t(Fe,Tr,k);return{kind:0,symbols:qt,completionKind:nn,isInSnippetScope:ae,propertyAccessToConvert:dt,isNewIdentifierLocation:Et,location:It,keywordFilters:Yt,literals:Pn,symbolToOriginInfoMap:wr,recommendedCompletion:Fr,previousToken:Fe,contextToken:et,isJsxInitializer:Ze,insideJsDocTagTypeExpression:ie,symbolToSortTextMap:Wr,isTypeOnlyLocation:En,isJsxIdentifierExpected:Ke,isRightOfOpenTag:Ct,isRightOfDotOrQuestionDot:Ie||ct,importStatementCompletion:st,hasUnresolvedAutoImports:cn,flags:at};function Ki(ge){switch(ge.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ge.constraint;default:return!1}}function io(ge){if(Ki(ge)){const mn=CA(ge)?ge.constraint:ge.typeExpression;return mn&&mn.kind===316?mn:void 0}if(xW(ge)||jJ(ge))return ge.class}function no(){nn=2;const ge=MN(Pe),mn=ge&&!Pe.isTypeOf||BE(Pe.parent)||kZ(et,i,k),Jn=Gse(Pe);if(kT(Pe)||ge||Ac(Pe)){const Nn=dy(Pe.parent);Nn&&(Et=!0);let Lr=k.getSymbolAtLocation(Pe);if(Lr&&(Lr=dg(Lr,k),Lr.flags&1920)){const qi=k.getExportsOfModule(Lr);re.assertEachIsDefined(qi,"getExportsOfModule() should all be defined");const vo=Cc=>k.isValidPropertyAccess(ge?Pe:Pe.parent,Cc.name),Ro=Cc=>hke(Cc,k),Ts=Nn?Cc=>{var Pc;return!!(Cc.flags&1920)&&!((Pc=Cc.declarations)!=null&&Pc.every(hc=>hc.parent===Pe.parent))}:Jn?Cc=>Ro(Cc)||vo(Cc):mn||ie?Ro:vo;for(const Cc of qi)Ts(Cc)&&qt.push(Cc);if(!mn&&!ie&&Lr.declarations&&Lr.declarations.some(Cc=>Cc.kind!==312&&Cc.kind!==267&&Cc.kind!==266)){let Cc=k.getTypeOfSymbolAtLocation(Lr,Pe).getNonOptionalType(),Pc=!1;if(Cc.isNullableType()){const hc=Ie&&!ct&&d.includeAutomaticOptionalChainCompletions!==!1;(hc||ct)&&(Cc=Cc.getNonNullableType(),hc&&(Pc=!0))}os(Cc,!!(Pe.flags&65536),Pc)}return}}if(!mn||yR(Pe)){k.tryGetThisTypeAt(Pe,!1);let Nn=k.getTypeAtLocation(Pe).getNonOptionalType();if(mn)os(Nn.getNonNullableType(),!1,!1);else{let Lr=!1;if(Nn.isNullableType()){const qi=Ie&&!ct&&d.includeAutomaticOptionalChainCompletions!==!1;(qi||ct)&&(Nn=Nn.getNonNullableType(),qi&&(Lr=!0))}os(Nn,!!(Pe.flags&65536),Lr)}}}function os(ge,mn,Jn){Et=!!ge.getStringIndexType(),ct&>(ge.getCallSignatures())&&(Et=!0);const Nn=Pe.kind===205?Pe:Pe.parent;if(F)for(const Lr of ge.getApparentProperties())k.isValidPropertyAccessForCompletions(Nn,ge,Lr)&&Mo(Lr,!1,Jn);else qt.push(...gi(zve(ge,k),Lr=>k.isValidPropertyAccessForCompletions(Nn,ge,Lr)));if(mn&&d.includeCompletionsWithInsertText){const Lr=k.getPromisedTypeOfPromise(ge);if(Lr)for(const qi of Lr.getApparentProperties())k.isValidPropertyAccessForCompletions(Nn,Lr,qi)&&Mo(qi,!0,Jn)}}function Mo(ge,mn,Jn){var Nn;const Lr=Yr(ge.declarations,Ts=>to(i_(Ts),Qf));if(Lr){const Ts=$i(Lr.expression),Cc=Ts&&k.getSymbolAtLocation(Ts),Pc=Cc&&P5e(Cc,et,k),hc=Pc&&$d(Pc);if(hc&&y0(jt,hc)){const bl=qt.length;qt.push(Pc);const Tc=Pc.parent;if(!Tc||!eq(Tc)||k.tryGetMemberInModuleExportsAndProperties(Pc.name,Tc)!==Pc)wr[bl]={kind:Ro(2)};else{const Tf=Kv(S2(Tc.name))?(Nn=YU(Tc))==null?void 0:Nn.fileName:void 0,{moduleSpecifier:ma}=(Kt||(Kt=fT.createImportSpecifierResolver(i,e,S,d))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Tf,isFromPackageJson:!1,moduleSymbol:Tc,symbol:Pc,targetFlags:dg(Pc,k).flags}],u,EA(It))||{};if(ma){const Bl={kind:Ro(6),moduleSymbol:Tc,isDefaultExport:!1,symbolName:Pc.name,exportName:Pc.name,fileName:Tf,moduleSpecifier:ma};wr[bl]=Bl}}}else if(d.includeCompletionsWithInsertText){if(hc&&jt.has(hc))return;vo(ge),qi(ge),qt.push(ge)}}else vo(ge),qi(ge),qt.push(ge);function qi(Ts){J_t(Ts)&&(Wr[$d(Ts)]=cm.LocalDeclarationPriority)}function vo(Ts){d.includeCompletionsWithInsertText&&(mn&&y0(jt,$d(Ts))?wr[qt.length]={kind:Ro(8)}:Jn&&(wr[qt.length]={kind:16}))}function Ro(Ts){return Jn?Ts|16:Ts}}function $i(ge){return xn(ge)?ge:Ac(ge)?$i(ge.expression):void 0}function ki(){return(Hn()||dr()||Jc()||Mr()||Pr()||gc()||Bt()||Wl()||(au(),1))===1}function gc(){return Wn(et)?(nn=5,Et=!0,Yt=4,1):0}function Wl(){const ge=Ge(et),mn=ge&&k.getContextualType(ge.attributes);if(!mn)return 0;const Jn=ge&&k.getContextualType(ge.attributes,4);return qt=Hi(qt,qe(_ke(mn,Jn,ge.attributes,k),ge.attributes.properties)),Io(),nn=3,Et=!1,1}function Jc(){return st?(Et=!0,_a(),1):0}function au(){Yt=$r(et)?5:1,nn=1,Et=Eu(),Fe!==et&&re.assert(!!Fe,"Expected 'contextToken' to be defined when different from 'previousToken'.");const ge=Fe!==et?Fe.getStart():u,mn=Cu(et,ge,i)||i;ae=za(mn);const Jn=(En?0:111551)|788968|1920|2097152,Nn=Fe&&!EA(Fe);qt=Hi(qt,k.getSymbolsInScope(mn,Jn)),re.assertEachIsDefined(qt,"getSymbolsInScope() should all be defined");for(let Lr=0;Lrvo.getSourceFile()===i)&&(Wr[$d(qi)]=cm.GlobalsOrKeywords),Nn&&!(qi.flags&111551)){const vo=qi.declarations&&lr(qi.declarations,HX);if(vo){const Ro={kind:64,declaration:vo};wr[Lr]=Ro}}}if(d.includeCompletionsWithInsertText&&mn.kind!==312){const Lr=k.tryGetThisTypeAt(mn,!1,Fl(mn.parent)?mn:void 0);if(Lr&&!fQe(Lr,i,k))for(const qi of zve(Lr,k))wr[qt.length]={kind:1},qt.push(qi),Wr[$d(qi)]=cm.SuggestedClassMembers}_a(),En&&(Yt=et&&f7(et.parent)?6:7)}function qn(){return st?!0:Rn||!d.includeCompletionsForModuleExports?!1:i.externalModuleIndicator||i.commonJsModuleIndicator||OZ(e.getCompilerOptions())?!0:Jx(e)}function za(ge){switch(ge.kind){case 312:case 228:case 294:case 241:return!0;default:return dl(ge)}}function Ia(){return ie||!!st&&O8(It.parent)||!zi(et)&&(kZ(et,i,k)||BE(It)||na(et))}function zi(ge){return ge&&(ge.kind===114&&(ge.parent.kind===186||yk(ge.parent))||ge.kind===131&&ge.parent.kind===182)}function na(ge){if(ge){const mn=ge.parent.kind;switch(ge.kind){case 59:return mn===172||mn===171||mn===169||mn===260||S_(mn);case 64:return mn===265;case 130:return mn===234;case 30:return mn===183||mn===216;case 96:return mn===168;case 152:return mn===238}}return!1}function _a(){var ge,mn;if(!qn()||(re.assert(!(h!=null&&h.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),h&&!h.source))return;at|=1;const Nn=Fe===et&&st?"":Fe&&xn(Fe)?Fe.text.toLowerCase():"",Lr=(ge=S.getModuleSpecifierCache)==null?void 0:ge.call(S),qi=Sce(i,S,e,d,P),vo=(mn=S.getPackageJsonAutoImportProvider)==null?void 0:mn.call(S),Ro=h?void 0:Lj(i,d,S);ake("collectAutoImports",S,Kt||(Kt=fT.createImportSpecifierResolver(i,e,S,d)),e,u,d,!!st,EA(It),Cc=>{qi.search(i.path,Ct,(Pc,hc)=>{if(!H2(Pc,iu(S.getCompilationSettings()))||!h&&w7(Pc)||!En&&!st&&!(hc&111551)||En&&!(hc&790504))return!1;const bl=Pc.charCodeAt(0);return Ct&&(bl<65||bl>90)?!1:h?!0:gQe(Pc,Nn)},(Pc,hc,bl,Tc)=>{if(h&&!gt(Pc,xa=>h.source===S2(xa.moduleSymbol.name))||(Pc=gi(Pc,Ts),!Pc.length))return;const Tf=Cc.tryResolve(Pc,bl)||{};if(Tf==="failed")return;let ma=Pc[0],Bl;Tf!=="skipped"&&({exportInfo:ma=Pc[0],moduleSpecifier:Bl}=Tf);const G_=ma.exportKind===1,u_=G_&&i6(ma.symbol)||ma.symbol;us(u_,{kind:Bl?32:4,moduleSpecifier:Bl,symbolName:hc,exportMapKey:Tc,exportName:ma.exportKind===2?"export=":ma.symbol.name,fileName:ma.moduleFileName,isDefaultExport:G_,moduleSymbol:ma.moduleSymbol,isFromPackageJson:ma.isFromPackageJson})}),cn=Cc.skippedAny(),at|=Cc.resolvedAny()?8:0,at|=Cc.resolvedBeyondLimit()?16:0});function Ts(Cc){const Pc=to(Cc.moduleSymbol.valueDeclaration,Nu);if(!Pc){const hc=S2(Cc.moduleSymbol.name);return kk.nodeCoreModules.has(hc)&&qf(hc,"node:")!==yce(i,e)?!1:Ro?Ro.allowsImportingAmbientModule(Cc.moduleSymbol,fr(Cc.isFromPackageJson)):!0}return Tce(Cc.isFromPackageJson?vo:e,i,Pc,d,Ro,fr(Cc.isFromPackageJson),Lr)}}function us(ge,mn){const Jn=$d(ge);Wr[Jn]!==cm.GlobalsOrKeywords&&(wr[qt.length]=mn,Wr[Jn]=st?cm.LocationPriority:cm.AutoImportSuggestions,qt.push(ge))}function Au(ge,mn){Cs(It)||ge.forEach(Jn=>{if(!Qu(Jn))return;const Nn=Fve(Jn,iu(c),void 0,0,!1);if(!Nn)return;const{name:Lr}=Nn,qi=F_t(Jn,Lr,mn,e,S,c,d,E);if(!qi)return;const vo={kind:128,...qi};at|=32,wr[qt.length]=vo,qt.push(Jn)})}function Qu(ge){return!!(ge.flags&8196)}function Cu(ge,mn,Jn){let Nn=ge;for(;Nn&&!xAe(Nn,mn,Jn);)Nn=Nn.parent;return Nn}function yf(ge){const mn=H_(),Jn=He(ge)||Br(ge)||Sr(ge)||w_(ge)||OY(ge);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(H_()-mn)),Jn}function w_(ge){if(ge.kind===12)return!0;if(ge.kind===32&&ge.parent){if(It===ge.parent&&(It.kind===286||It.kind===285))return!1;if(ge.parent.kind===286)return It.parent.kind!==286;if(ge.parent.kind===287||ge.parent.kind===285)return!!ge.parent.parent&&ge.parent.parent.kind===284}return!1}function Eu(){if(et){const ge=et.parent.kind,mn=Bve(et);switch(mn){case 28:return ge===213||ge===176||ge===214||ge===209||ge===226||ge===184||ge===210;case 21:return ge===213||ge===176||ge===214||ge===217||ge===196;case 23:return ge===209||ge===181||ge===167;case 144:case 145:case 102:return!0;case 25:return ge===267;case 19:return ge===263||ge===210;case 64:return ge===260||ge===226;case 16:return ge===228;case 17:return ge===239;case 134:return ge===174||ge===304;case 42:return ge===174}if(_ue(mn))return!0}return!1}function He(ge){return(ope(ge)||JX(ge))&&(XW(ge,u)||u===ge.end&&(!!ge.isUnterminated||ope(ge)))}function Hn(){const ge=H_t(et);if(!ge)return 0;const Jn=(xR(ge.parent)?ge.parent:void 0)||ge,Nn=lQe(Jn,k);if(!Nn)return 0;const Lr=k.getTypeFromTypeNode(Jn),qi=zve(Nn,k),vo=zve(Lr,k),Ro=new Set;return vo.forEach(Ts=>Ro.add(Ts.escapedName)),qt=Hi(qt,gi(qi,Ts=>!Ro.has(Ts.escapedName))),nn=0,Et=!0,1}function dr(){const ge=qt.length,mn=oQe(et,u,i);if(!mn)return 0;nn=0;let Jn,Nn;if(mn.kind===210){const Lr=$_t(mn,k);if(Lr===void 0)return mn.flags&67108864?2:(Rn=!0,0);const qi=k.getContextualType(mn,4),vo=(qi||Lr).getStringIndexType(),Ro=(qi||Lr).getNumberIndexType();if(Et=!!vo||!!Ro,Jn=_ke(Lr,qi,mn,k),Nn=mn.properties,Jn.length===0&&!Ro)return Rn=!0,0}else{re.assert(mn.kind===206),Et=!1;const Lr=vA(mn.parent);if(!E9(Lr))return re.fail("Root declaration is not variable-like.");let qi=J2(Lr)||!!Zy(Lr)||Lr.parent.parent.kind===250;if(!qi&&Lr.kind===169&&(kr(Lr.parent)?qi=!!k.getContextualType(Lr.parent):(Lr.parent.kind===174||Lr.parent.kind===178)&&(qi=kr(Lr.parent.parent)&&!!k.getContextualType(Lr.parent.parent))),qi){const vo=k.getTypeAtLocation(mn);if(!vo)return 2;Jn=k.getPropertiesOfType(vo).filter(Ro=>k.isPropertyAccessible(mn,!1,!1,vo,Ro)),Nn=mn.elements}}if(Jn&&Jn.length>0){const Lr=go(Jn,re.checkDefined(Nn));qt=Hi(qt,Lr),Io(),mn.kind===210&&d.includeCompletionsWithObjectLiteralMethodSnippets&&d.includeCompletionsWithInsertText&&(Ce(ge),Au(Lr,mn))}return 1}function Mr(){if(!et)return 0;const ge=et.kind===19||et.kind===28?to(et.parent,LH):h4(et)?to(et.parent.parent,LH):void 0;if(!ge)return 0;h4(et)||(Yt=8);const{moduleSpecifier:mn}=ge.kind===275?ge.parent.parent:ge.parent;if(!mn)return Et=!0,ge.kind===275?2:0;const Jn=k.getSymbolAtLocation(mn);if(!Jn)return Et=!0,2;nn=3,Et=!1;const Nn=k.getExportsAndPropertiesOfModule(Jn),Lr=new Set(ge.elements.filter(vo=>!Mt(vo)).map(vo=>(vo.propertyName||vo.name).escapedText)),qi=Nn.filter(vo=>vo.escapedName!=="default"&&!Lr.has(vo.escapedName));return qt=Hi(qt,qi),qi.length||(Yt=0),1}function Pr(){var ge;const mn=et&&(et.kind===19||et.kind===28)?to(et.parent,j0):void 0;if(!mn)return 0;const Jn=Ua(mn,bb(Nu,dy));return nn=5,Et=!1,(ge=Jn.locals)==null||ge.forEach((Nn,Lr)=>{var qi,vo;qt.push(Nn),(vo=(qi=Jn.symbol)==null?void 0:qi.exports)!=null&&vo.has(Lr)&&(Wr[$d(Nn)]=cm.OptionalMember)}),1}function Bt(){const ge=pke(i,et,It,u);if(!ge)return 0;if(nn=3,Et=!0,Yt=et.kind===42?0:Fl(ge)?2:3,!Fl(ge))return 1;const mn=et.kind===27?et.parent.parent:et.parent;let Jn=J_(mn)?Cb(mn):0;if(et.kind===80&&!Mt(et))switch(et.getText()){case"private":Jn=Jn|2;break;case"static":Jn=Jn|256;break;case"override":Jn=Jn|16;break}if(Ep(mn)&&(Jn|=256),!(Jn&2)){const Nn=Fl(ge)&&Jn&16?X5(YC(ge)):lG(ge),Lr=ea(Nn,qi=>{const vo=k.getTypeAtLocation(qi);return Jn&256?(vo==null?void 0:vo.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(vo.symbol,ge)):vo&&k.getPropertiesOfType(vo)});qt=Hi(qt,kt(Lr,ge.members,Jn)),Ot(qt,(qi,vo)=>{const Ro=qi==null?void 0:qi.valueDeclaration;if(Ro&&J_(Ro)&&Ro.name&&Qf(Ro.name)){const Ts={kind:512,symbolName:k.symbolToString(qi)};wr[vo]=Ts}})}return 1}function ln(ge){return!!ge.parent&&Os(ge.parent)&&Lh(ge.parent.parent)&&(cR(ge.kind)||ON(ge))}function Wn(ge){if(ge){const mn=ge.parent;switch(ge.kind){case 21:case 28:return Lh(ge.parent)?ge.parent:void 0;default:if(ln(ge))return mn.parent}}}function $r(ge){if(ge){let mn;const Jn=Ua(ge.parent,Nn=>Fl(Nn)?"quit":Vd(Nn)&&mn===Nn.body?!0:(mn=Nn,!1));return Jn&&Jn}}function Ge(ge){if(ge){const mn=ge.parent;switch(ge.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(mn&&(mn.kind===285||mn.kind===286)){if(ge.kind===32){const Jn=bv(ge.pos,i,void 0);if(!mn.typeArguments||Jn&&Jn.kind===44)break}return mn}else if(mn.kind===291)return mn.parent.parent;break;case 11:if(mn&&(mn.kind===291||mn.kind===293))return mn.parent.parent;break;case 20:if(mn&&mn.kind===294&&mn.parent&&mn.parent.kind===291)return mn.parent.parent.parent;if(mn&&mn.kind===293)return mn.parent.parent;break}}}function Br(ge){const mn=ge.parent,Jn=mn.kind;switch(ge.kind){case 28:return Jn===260||yi(ge)||Jn===243||Jn===266||Ln(Jn)||Jn===264||Jn===207||Jn===265||Fl(mn)&&!!mn.typeParameters&&mn.typeParameters.end>=ge.pos;case 25:return Jn===207;case 59:return Jn===208;case 23:return Jn===207;case 21:return Jn===299||Ln(Jn);case 19:return Jn===266;case 30:return Jn===263||Jn===231||Jn===264||Jn===265||S_(Jn);case 126:return Jn===172&&!Fl(mn.parent);case 26:return Jn===169||!!mn.parent&&mn.parent.kind===207;case 125:case 123:case 124:return Jn===169&&!Lh(mn.parent);case 130:return Jn===276||Jn===281||Jn===274;case 139:case 153:return!Gve(ge);case 80:if(Jn===276&&ge===mn.name&&ge.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 Jn!==276;case 42:return F_(ge.parent)&&!tm(ge.parent)}if(_ue(Bve(ge))&&Gve(ge)||ln(ge)&&(!xn(ge)||cR(Bve(ge))||Mt(ge)))return!1;switch(Bve(ge)){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 nu(ge.parent)}if(Ua(ge.parent,Fl)&&ge===Fe&&Ei(ge,u))return!1;const Lr=oC(ge.parent,172);if(Lr&&ge!==Fe&&Fl(Fe.parent.parent)&&u<=Fe.end){if(Ei(ge,Fe.end))return!1;if(ge.kind!==64&&(Nae(Lr)||_P(Lr)))return!0}return ON(ge)&&!XE(ge.parent)&&!tx(ge.parent)&&!((Fl(ge.parent)||xp(ge.parent)||Np(ge.parent))&&(ge!==Fe||u>Fe.end))}function Ei(ge,mn){return ge.kind!==64&&(ge.kind===27||!mv(ge.end,mn,i))}function Ln(ge){return S_(ge)&&ge!==176}function Sr(ge){if(ge.kind===9){const mn=ge.getFullText();return mn.charAt(mn.length-1)==="."}return!1}function yi(ge){return ge.parent.kind===261&&!kZ(ge,i,k)}function go(ge,mn){if(mn.length===0)return ge;const Jn=new Set,Nn=new Set;for(const qi of mn){if(qi.kind!==303&&qi.kind!==304&&qi.kind!==208&&qi.kind!==174&&qi.kind!==177&&qi.kind!==178&&qi.kind!==305||Mt(qi))continue;let vo;if(xA(qi))Ao(qi,Jn);else if(sa(qi)&&qi.propertyName)qi.propertyName.kind===80&&(vo=qi.propertyName.escapedText);else{const Ro=i_(qi);vo=Ro&&Qv(Ro)?nI(Ro):void 0}vo!==void 0&&Nn.add(vo)}const Lr=ge.filter(qi=>!Nn.has(qi.escapedName));return ze(Jn,Lr),Lr}function Ao(ge,mn){const Jn=ge.expression,Nn=k.getSymbolAtLocation(Jn),Lr=Nn&&k.getTypeOfSymbolAtLocation(Nn,Jn),qi=Lr&&Lr.properties;qi&&qi.forEach(vo=>{mn.add(vo.name)})}function Io(){qt.forEach(ge=>{if(ge.flags&16777216){const mn=$d(ge);Wr[mn]=Wr[mn]??cm.OptionalMember}})}function ze(ge,mn){if(ge.size!==0)for(const Jn of mn)ge.has(Jn.name)&&(Wr[$d(Jn)]=cm.MemberDeclaredBySpreadAssignment)}function Ce(ge){for(let mn=ge;mn!Nn.has(Lr.escapedName)&&!!Lr.declarations&&!(Vy(Lr)&2)&&!(Lr.valueDeclaration&&IT(Lr.valueDeclaration)))}function qe(ge,mn){const Jn=new Set,Nn=new Set;for(const qi of mn)Mt(qi)||(qi.kind===291?Jn.add(m3(qi.name)):rT(qi)&&Ao(qi,Nn));const Lr=ge.filter(qi=>!Jn.has(qi.escapedName));return ze(Nn,Lr),Lr}function Mt(ge){return ge.getStart(i)<=u&&u<=ge.getEnd()}}function oQe(e,n,i){var c;if(e){const{parent:u}=e;switch(e.kind){case 19:case 28:if(el(u)||Ch(u))return u;break;case 42:return tm(u)?to(u.parent,el):void 0;case 134:return to(u.parent,el);case 80:if(e.text==="async"&&XE(e.parent))return e.parent.parent;{if(el(e.parent.parent)&&(xA(e.parent)||XE(e.parent)&&xm(i,e.getEnd()).line!==xm(i,n).line))return e.parent.parent;const h=Ua(u,tl);if((h==null?void 0:h.getLastToken(i))===e&&el(h.parent))return h.parent}break;default:if((c=u.parent)!=null&&c.parent&&(tm(u.parent)||lE(u.parent)||Xb(u.parent))&&el(u.parent.parent))return u.parent.parent;if(xA(u)&&el(u.parent))return u.parent;const d=Ua(u,tl);if(e.kind!==59&&(d==null?void 0:d.getLastToken(i))===e&&el(d.parent))return d.parent}}}function uke(e,n){const i=bv(e,n);return i&&e<=i.end&&(xN(i)||qb(i.kind))?{contextToken:bv(i.getFullStart(),n,void 0),previousToken:i}:{contextToken:i,previousToken:i}}function Ove(e,n,i,c){const u=n.isPackageJsonImport?c.getPackageJsonAutoImportProvider():i,d=u.getTypeChecker(),h=n.ambientModuleName?d.tryFindAmbientModule(n.ambientModuleName):n.fileName?d.getMergedSymbol(re.checkDefined(u.getSourceFile(n.fileName)).symbol):void 0;if(!h)return;let S=n.exportName==="export="?d.resolveExternalModuleSymbol(h):d.tryGetMemberInModuleExportsAndProperties(n.exportName,h);return S?(S=n.exportName==="default"&&i6(S)||S,{symbol:S,origin:ZYe(n,e,h)}):void 0}function Fve(e,n,i,c,u){if(VYe(i))return;const d=$ee(i)?i.symbolName:e.name;if(d===void 0||e.flags&1536&&D9(d.charCodeAt(0))||yA(e))return;const h={name:d,needsConvertPropertyAccess:!1};if(H2(d,n,u?1:0)||e.valueDeclaration&&IT(e.valueDeclaration))return h;switch(c){case 3:return T5e(i)?{name:i.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(d),needsConvertPropertyAccess:!1};case 2:case 1:return d.charCodeAt(0)===32?void 0:{name:d,needsConvertPropertyAccess:!0};case 5:case 4:return h;default:re.assertNever(c)}}function Wve(e,n){if(!n)return w5e(e);const i=e+8+1;return oV[i]||(oV[i]=w5e(e).filter(c=>!aQe(D8(c.name))))}function w5e(e){return oV[e]||(oV[e]=Jve().filter(n=>{const i=D8(n.name);switch(e){case 0:return!1;case 1:return due(i)||i===138||i===144||i===156||i===145||i===128||Z$(i)&&i!==157;case 5:return due(i);case 2:return _ue(i);case 3:return sQe(i);case 4:return cR(i);case 6:return Z$(i)||i===87;case 7:return Z$(i);case 8:return i===156;default:return re.assertNever(e)}}))}function aQe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function sQe(e){return e===148}function _ue(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return jU(e)}}function due(e){return e===134||e===135||e===130||e===152||e===156||!fG(e)&&!_ue(e)}function Bve(e){return xn(e)?uP(e)??0:e.kind}function fke(e,n){const i=[];if(e){const c=e.getSourceFile(),u=e.parent,d=c.getLineAndCharacterOfPosition(e.end).line,h=c.getLineAndCharacterOfPosition(n).line;(n0(u)||ry(u)&&u.moduleSpecifier)&&e===u.moduleSpecifier&&d===h&&i.push({name:Cf(132),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords})}return i}function U_t(e,n){return Ua(e,i=>d7(i)&&CZ(i,n)?!0:uC(i)?"quit":!1)}function _ke(e,n,i,c){const u=n&&n!==e,d=u&&!(n.flags&3)?c.getUnionType([e,n]):e,h=dke(d,i,c);return d.isClass()&&cQe(h)?[]:u?gi(h,S):h;function S(E){return Nt(E.declarations)?gt(E.declarations,P=>P.parent!==i):!0}}function dke(e,n,i){return e.isUnion()?i.getAllPossiblePropertiesOfTypes(gi(e.types,c=>!(c.flags&402784252||i.isArrayLikeType(c)||i.isTypeInvalidDueToUnionDiscriminant(c,n)||i.typeHasCallOrConstructSignatures(c)||c.isClass()&&cQe(c.getApparentProperties())))):e.getApparentProperties()}function cQe(e){return gt(e,n=>!!(Vy(n)&6))}function zve(e,n){return e.isUnion()?re.checkEachDefined(n.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):re.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function pke(e,n,i,c){switch(i.kind){case 358:return to(i.parent,GN);case 1:const u=to(Yf(uc(i.parent,Nu).statements),GN);if(u&&!qm(u,20,e))return u;break;case 81:if(to(i.parent,nu))return Ua(i,Fl);break;case 80:{if(uP(i)||nu(i.parent)&&i.parent.initializer===i)return;if(Gve(i))return Ua(i,GN)}}if(n){if(i.kind===137||xn(n)&&nu(n.parent)&&Fl(i))return Ua(n,Fl);switch(n.kind){case 64:return;case 27:case 20:return Gve(i)&&i.parent.name===i?i.parent.parent:to(i,GN);case 19:case 28:return to(n.parent,GN);default:if(GN(i)){if(xm(e,n.getEnd()).line!==xm(e,c).line)return i;const u=Fl(n.parent.parent)?_ue:sQe;return u(n.kind)||n.kind===42||xn(n)&&u(uP(n)??0)?n.parent.parent:void 0}return}}}function H_t(e){if(!e)return;const n=e.parent;switch(e.kind){case 19:if(rS(n))return n;break;case 27:case 28:case 80:if(n.kind===171&&rS(n.parent))return n.parent;break}}function lQe(e,n){if(!e)return;if(pc(e)&&NN(e.parent))return n.getTypeArgumentConstraint(e);const i=lQe(e.parent,n);if(i)switch(e.kind){case 171:return n.getTypeOfPropertyOfContextualType(i,e.symbol.escapedName);case 193:case 187:case 192:return i}}function Gve(e){return e.parent&&c7(e.parent)&&GN(e.parent.parent)}function mke(e,n,i,c){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!i&&UZ(i)&&c===i.getStart(e)+1;case"#":return!!i&&Lu(i)&&!!$b(i);case"<":return!!i&&i.kind===30&&(!Ds(i.parent)||uQe(i.parent));case"/":return!!i&&(Cm(i)?!!N9(i):i.kind===44&&iD(i.parent));case" ":return!!i&&am(i)&&i.parent.kind===312;default:return re.assertNever(n)}}function uQe({left:e}){return ny(e)}function fQe(e,n,i){const c=i.resolveName("self",void 0,111551,!1);if(c&&i.getTypeOfSymbolAtLocation(c,n)===e)return!0;const u=i.resolveName("global",void 0,111551,!1);if(u&&i.getTypeOfSymbolAtLocation(u,n)===e)return!0;const d=i.resolveName("globalThis",void 0,111551,!1);return!!(d&&i.getTypeOfSymbolAtLocation(d,n)===e)}function J_t(e){return!!(e.valueDeclaration&&Cb(e.valueDeclaration)&256&&Fl(e.valueDeclaration.parent))}function $_t(e,n){const i=n.getContextualType(e);if(i)return i;const c=IS(e.parent);if(Ds(c)&&c.operatorToken.kind===64&&e===c.left)return n.getTypeAtLocation(c);if(kr(c))return n.getContextualType(c)}function _Qe(e,n){var i,c,u;let d,h=!1;const S=E();return{isKeywordOnlyCompletion:h,keywordCompletion:d,isNewIdentifierLocation:!!(S||d===156),isTopLevelTypeOnly:!!((c=(i=to(S,n0))==null?void 0:i.importClause)!=null&&c.isTypeOnly)||!!((u=to(S,Yb))!=null&&u.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!S&&R5e(S,e),replacementSpan:dQe(S)};function E(){const P=e.parent;if(Yb(P)){const k=P.getLastToken(n);if(xn(e)&&k!==e){d=161,h=!0;return}return d=e.kind===156?void 0:156,gke(P.moduleReference)?P:void 0}if(R5e(P,e)&&M5e(P.parent))return P;if(Oy(P)||mh(P)){if(!P.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(d=156),M5e(P))if(e.kind===20||e.kind===80)h=!0,d=161;else return P.parent.parent;return}if(am(e)&&Nu(P))return d=156,e;if(am(e)&&n0(P))return d=156,gke(P.moduleSpecifier)?P:void 0}}function dQe(e){var n;if(!e)return;const i=Ua(e,bb(n0,Yb))??e,c=i.getSourceFile();if(mk(i,c))return sT(i,c);re.assert(i.kind!==102&&i.kind!==276);const u=i.kind===272?pQe((n=i.importClause)==null?void 0:n.namedBindings)??i.moduleSpecifier:i.moduleReference,d={pos:i.getFirstToken().getStart(),end:u.pos};if(mk(d,c))return PP(d)}function pQe(e){var n;return lr((n=to(e,Oy))==null?void 0:n.elements,i=>{var c;return!i.propertyName&&w7(i.name.text)&&((c=bv(i.name.pos,e.getSourceFile(),e))==null?void 0:c.kind)!==28})}function R5e(e,n){return qE(e)&&(e.isTypeOnly||n===e.name&&h4(n))}function M5e(e){if(!gke(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Oy(e)){const n=pQe(e);return(n?e.elements.indexOf(n):e.elements.length)<2}return!0}function gke(e){var n;return ny(e)?!0:!((n=to(KE(e)?e.expression:e,Cm))!=null&&n.text)}function L5e(e,n){if(!e)return;const i=Ua(e,u=>hP(u)||mQe(u)||$_(u)?"quit":(Os(u)||Np(u))&&!Z2(u.parent)),c=Ua(n,u=>hP(u)||mQe(u)||$_(u)?"quit":Kc(u));return i||c}function mQe(e){return e.parent&&$m(e.parent)&&(e.parent.body===e||e.kind===39)}function hke(e,n,i=new Map){return c(e)||c(dg(e.exportSymbol||e,n));function c(u){return!!(u.flags&788968)||n.isUnknownSymbol(u)||!!(u.flags&1536)&&y0(i,$d(u))&&n.getExportsOfModule(u).some(d=>hke(d,n,i))}}function O5e(e,n){const i=dg(e,n).declarations;return!!Nt(i)&&jr(i,QZ)}function gQe(e,n){if(n.length===0)return!0;let i=!1,c,u=0;const d=e.length;for(let h=0;h(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Vve||{}),Uve=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Uve||{}),Hve=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Hve||{}),oV=[],Jve=Pd(()=>{const e=[];for(let n=83;n<=165;n++)e.push({name:Cf(n),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords});return e})}});function $ve(){const e=new Map;function n(i){const c=e.get(i.name);(!c||Qve[c.kind]({name:Q8(J.value,F),kindModifiers:"",kind:"string",sortText:cm.LocationPriority,replacementSpan:wZ(n)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:k,entries:$}}default:return re.assertNever(e)}}function Q_t(e,n,i,c,u,d,h,S,E){if(!c||!Cm(c))return;const P=B5e(n,c,i,u,d,h,E);return P&&Z_t(e,c,P,n,u,S)}function Z_t(e,n,i,c,u,d){switch(i.kind){case 0:{const h=lr(i.paths,S=>S.name===e);return h&&Xee(e,W5e(h.extension),h.kind,[lS(e)])}case 1:{const h=lr(i.symbols,S=>S.name===e);return h&&Mve(h,h.name,u,c,n,d)}case 2:return lr(i.types,h=>h.value===e)?Xee(e,"","string",[lS(e)]):void 0;default:return re.assertNever(i)}}function F5e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:u,kind:d,span:h,extension:S})=>({name:u,kind:d,kindModifiers:W5e(S),sortText:cm.LocationPriority,replacementSpan:h}))}}function W5e(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return re.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return re.assertNever(e)}}function B5e(e,n,i,c,u,d,h){const S=qve(n.parent);switch(S.kind){case 201:{const J=qve(S.parent);return J.kind===205?{kind:0,paths:j5e(e,n,u,d,c,h)}:E(J)}case 303:return el(S.parent)&&S.name===n?tdt(c,S.parent):P()||P(0);case 212:{const{expression:J,argumentExpression:X}=S;return n===rg(X)?z5e(c.getTypeAtLocation(J)):void 0}case 213:case 214:case 291:if(!mdt(n)&&!Py(S)){const J=gue.getArgumentInfoForCompletions(S.kind===291?S.parent:n,i,e);return J&&yQe(J.invocation,n,J,c)||P(0)}case 272:case 278:case 283:return{kind:0,paths:j5e(e,n,u,d,c,h)};case 296:const k=ZZ(c,S.parent.clauses),F=P();return F?{kind:2,types:F.types.filter(J=>!k.hasValue(J.value)),isNewIdentifier:!1}:void 0;default:return P()||P(0)}function E(k){switch(k.kind){case 233:case 183:{const J=Ua(S,X=>X.parent===k);return J?{kind:2,types:Qee(c.getTypeArgumentConstraint(J)),isNewIdentifier:!1}:void 0}case 199:const{indexType:F,objectType:$}=k;return CZ(F,i)?z5e(c.getTypeFromTypeNode($)):void 0;case 192:{const J=E(qve(k.parent));if(!J)return;const X=edt(k,S);return J.kind===1?{kind:1,symbols:J.symbols.filter(ie=>!ni(X,ie.name)),hasIndexSignature:J.hasIndexSignature}:{kind:2,types:J.types.filter(ie=>!ni(X,ie.value)),isNewIdentifier:!1}}default:return}}function P(k=4){const F=Qee(aq(n,c,k));if(F.length)return{kind:2,types:F,isNewIdentifier:!1}}}function qve(e){switch(e.kind){case 196:return QM(e);case 217:return IS(e);default:return e}}function edt(e,n){return Qo(e.types,i=>i!==n&&S3(i)&&Sd(i.literal)?i.literal.text:void 0)}function yQe(e,n,i,c){let u=!1;const d=new Map,h=m1(e)?re.checkDefined(Ua(n.parent,tx)):n,S=c.getCandidateSignaturesForStringLiteralCompletions(e,h),E=ea(S,P=>{if(!A1(P)&&i.argumentCount>P.parameters.length)return;let k=P.getTypeParameterAtPosition(i.argumentIndex);if(m1(e)){const F=c.getTypeOfPropertyOfType(k,oW(h.name));F&&(k=F)}return u=u||!!(k.flags&4),Qee(k,d)});return Nt(E)?{kind:2,types:E,isNewIdentifier:u}:void 0}function z5e(e){return e&&{kind:1,symbols:gi(e.getApparentProperties(),n=>!(n.valueDeclaration&&IT(n.valueDeclaration))),hasIndexSignature:HZ(e)}}function tdt(e,n){const i=e.getContextualType(n);if(!i)return;const c=e.getContextualType(n,4);return{kind:1,symbols:_ke(i,c,n,e),hasIndexSignature:HZ(i)}}function Qee(e,n=new Map){return e?(e=DF(e),e.isUnion()?ea(e.types,i=>Qee(i,n)):e.isStringLiteral()&&!(e.flags&1024)&&y0(n,e.value)?[e]:Yn):Yn}function E4(e,n,i){return{name:e,kind:n,extension:i}}function Kve(e){return E4(e,"directory",void 0)}function G5e(e,n,i){const c=ddt(e,n),u=e.length===0?void 0:p1(n,e.length);return i.map(({name:d,kind:h,extension:S})=>d.includes(qp)||d.includes(r7)?{name:d,kind:h,extension:S,span:u}:{name:d,kind:h,extension:S,span:c})}function j5e(e,n,i,c,u,d){return G5e(n.text,n.getStart(e)+1,ndt(e,n,i,c,u,d))}function ndt(e,n,i,c,u,d){const h=$1(n.text),S=Cm(n)?PA(e,n):void 0,E=e.path,P=ws(E),k=Xve(i,1,e,u,d,S);return pdt(h)||!i.baseUrl&&!i.paths&&(nE(h)||kX(h))?rdt(h,P,i,c,E,k):sdt(h,P,S,i,c,k,u)}function Xve(e,n,i,c,u,d){return{extensionsToSearch:Gf(idt(e,c)),referenceKind:n,importingSourceFile:i,endingPreference:u==null?void 0:u.importModuleSpecifierEnding,resolutionMode:d}}function rdt(e,n,i,c,u,d){return i.rootDirs?adt(i.rootDirs,e,n,d,i,c,u):oc(zF(e,n,d,c,!0,u).values())}function idt(e,n){const i=n?Qo(n.getAmbientModules(),d=>{const h=d.name.slice(1,-1);if(!(!h.startsWith("*.")||h.includes("/")))return h.slice(1)}):[],c=[...s3(e),i],u=Jd(e);return Ij(u)?Q9(e,c):c}function odt(e,n,i,c){e=e.map(d=>Su(hf(nE(d)?d:vl(n,d))));const u=Yr(e,d=>OE(d,i,n,c)?i.substr(d.length):void 0);return th([...e.map(d=>vl(d,u)),i].map(d=>bN(d)),ZA,Fp)}function adt(e,n,i,c,u,d,h){const S=u.project||d.getCurrentDirectory(),E=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames()),P=odt(e,S,i,E);return ea(P,k=>oc(zF(n,k,c,d,!0,h).values()))}function zF(e,n,i,c,u,d,h=$ve()){var S;e===void 0&&(e=""),e=$1(e),VD(e)||(e=ws(e)),e===""&&(e="."+qp),e=Su(e);const E=PL(n,e),P=VD(E)?E:ws(E);if(!u){const J=aB(P,c);if(J){const ie=e3(J,c).typesVersions;if(typeof ie=="object"){const ae=(S=vQ(ie))==null?void 0:S.paths;if(ae){const ve=ws(J),we=E.slice(Su(ve).length);if(U5e(h,we,ve,i,c,ae))return h}}}}const k=!(c.useCaseSensitiveFileNames&&c.useCaseSensitiveFileNames());if(!mce(c,P))return h;const F=LAe(c,P,i.extensionsToSearch,void 0,["./*"]);if(F)for(let J of F){if(J=hf(J),d&&Rv(J,d,n,k)===0)continue;const{name:X,extension:ie}=V5e(Jg(J),c.getCompilationSettings(),i);h.add(E4(X,"script",ie))}const $=oB(c,P);if($)for(const J of $){const X=Jg(hf(J));X!=="@types"&&h.add(Kve(X))}return h}function V5e(e,n,i){const c=l4.tryGetRealFileNameForNonJsDeclarationFileName(e);if(c)return{name:c,extension:OT(c)};if(i.referenceKind===0)return{name:e,extension:OT(e)};const u=ooe(i.endingPreference,i.resolutionMode,n,i.importingSourceFile);if(u===3){if(pv(e,SG))return{name:e,extension:OT(e)};const h=l4.tryGetJSExtensionForFile(e,n);return h?{name:SA(e,h),extension:h}:{name:e,extension:OT(e)}}if((u===0||u===1)&&pv(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:wg(e),extension:OT(e)};const d=l4.tryGetJSExtensionForFile(e,n);return d?{name:SA(e,d),extension:d}:{name:e,extension:OT(e)}}function U5e(e,n,i,c,u,d){const h=E=>d[E],S=(E,P)=>{const k=c6(E),F=c6(P),$=typeof k=="object"?k.prefix.length:E.length,J=typeof F=="object"?F.prefix.length:P.length;return pf(J,$)};return H5e(e,n,i,c,u,ET(d),h,S)}function H5e(e,n,i,c,u,d,h,S){let E=[],P;for(const k of d){if(k===".")continue;const F=k.replace(/^\.\//,""),$=h(k);if($){const J=c6(F);if(!J)continue;const X=typeof J=="object"&&C8(J,n);X&&(P===void 0||S(k,P)===-1)&&(P=k,E=E.filter(ae=>!ae.matchedPattern)),(typeof J=="string"||P===void 0||S(k,P)!==1)&&E.push({matchedPattern:X,results:cdt(F,$,n,i,c,u).map(({name:ae,kind:ve,extension:we})=>E4(ae,ve,we))})}}return E.forEach(k=>k.results.forEach(F=>e.add(F))),P!==void 0}function sdt(e,n,i,c,u,d,h){const{baseUrl:S,paths:E}=c,P=$ve(),k=Jd(c);if(S){const $=hf(vl(u.getCurrentDirectory(),S));zF(e,$,d,u,!1,void 0,P)}if(E){const $=Lie(c,u);U5e(P,e,$,d,u,E)}const F=$5e(e);for(const $ of udt(e,F,h))P.add(E4($,"external module name",void 0));if(X5e(u,c,n,F,d,P),Ij(k)){let $=!1;if(F===void 0)for(const J of _dt(u,n)){const X=E4(J,"external module name",void 0);P.has(X.name)||($=!0,P.add(X))}if(!$){let J=X=>{const ie=vl(X,"node_modules");mce(u,ie)&&zF(e,ie,d,u,!1,void 0,P)};if(F&&Zie(c)){const X=J;J=ie=>{const ae=qc(e);ae.shift();let ve=ae.shift();if(!ve)return X(ie);if(qf(ve,"@")){const et=ae.shift();if(!et)return X(ie);ve=vl(ve,et)}const we=vl(ie,"node_modules",ve),Fe=vl(we,"package.json");if(Mj(u,Fe)){const Pe=e3(Fe,u).exports;if(Pe){if(typeof Pe!="object"||Pe===null)return;const dt=ET(Pe),Ie=ae.join("/")+(ae.length&&VD(e)?"/":""),ct=_F(c,i);H5e(P,Ie,we,d,u,dt,Ct=>X5(J5e(Pe[Ct],ct)),I2e);return}}return X(ie)}}jC(n,J)}}return oc(P.values())}function J5e(e,n){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ls(e)){for(const i in e)if(i==="default"||n.includes(i)||AQ(n,i)){const c=e[i];return J5e(c,n)}}}function $5e(e){return Yve(e)?VD(e)?e:ws(e):void 0}function cdt(e,n,i,c,u,d){if(!h_(e,"*"))return e.includes("*")?Yn:E(e,"script");const h=e.slice(0,e.length-1),S=Sz(i,h);if(S===void 0)return e[e.length-2]==="/"?E(h,"directory"):ea(n,k=>{var F;return(F=q5e("",c,k,u,d))==null?void 0:F.map(({name:$,...J})=>({name:h+$,...J}))});return ea(n,P=>q5e(S,c,P,u,d));function E(P,k){return qf(P,i)?[{name:bN(P),kind:k,extension:void 0}]:Yn}}function q5e(e,n,i,c,u){if(!u.readDirectory)return;const d=c6(i);if(d===void 0||As(d))return;const h=PL(d.prefix),S=VD(d.prefix)?h:ws(h),E=VD(d.prefix)?"":Jg(h),P=Yve(e),k=P?VD(e)?e:ws(e):void 0,F=P?vl(S,E+k):S,$=hf(d.suffix),J=$&&TY("_"+$),X=J?[SA($,J),$]:[$],ie=hf(vl(n,F)),ae=P?ie:Su(ie)+E,ve=$?X.map(Pe=>"**/*"+Pe):["./*"],we=Qo(LAe(u,ie,c.extensionsToSearch,void 0,ve),Pe=>{const dt=et(Pe);if(dt){if(Yve(dt))return Kve(qc(K5e(dt))[1]);const{name:Ie,extension:ct}=V5e(dt,u.getCompilationSettings(),c);return E4(Ie,"script",ct)}}),Fe=$?Yn:Qo(oB(u,ie),Pe=>Pe==="node_modules"?void 0:Kve(Pe));return[...we,...Fe];function et(Pe){return Yr(X,dt=>{const Ie=ldt(hf(Pe),ae,dt);return Ie===void 0?void 0:K5e(Ie)})}}function ldt(e,n,i){return qf(e,n)&&h_(e,i)?e.slice(n.length,e.length-i.length):void 0}function K5e(e){return e[0]===qp?e.slice(1):e}function udt(e,n,i){const u=i.getAmbientModules().map(d=>S2(d.name)).filter(d=>qf(d,e)&&!d.includes("*"));if(n!==void 0){const d=Su(n);return u.map(h=>xf(h,d))}return u}function fdt(e,n,i,c){const u=Lf(e,n),d=JD(e.text,u.pos),h=d&&lr(d,X=>n>=X.pos&&n<=X.end);if(!h)return;const S=e.text.slice(h.pos,n),E=Y5e.exec(S);if(!E)return;const[,P,k,F]=E,$=ws(e.path),J=k==="path"?zF(F,$,Xve(i,0,e),c,!0,e.path):k==="types"?X5e(c,i,$,$5e(F),Xve(i,1,e)):re.fail();return G5e(F,h.pos+P.length,oc(J.values()))}function X5e(e,n,i,c,u,d=$ve()){const h=new Map,S=qZ(()=>QG(n,e))||Yn;for(const P of S)E(P);for(const P of nhe(i,e)){const k=vl(ws(P),"node_modules/@types");E(k)}return d;function E(P){if(mce(e,P))for(const k of oB(e,P)){const F=DQ(k);if(!(n.types&&!ni(n.types,F)))if(c===void 0)h.has(F)||(d.add(E4(F,"external module name",void 0)),h.set(F,!0));else{const $=vl(P,k),J=toe(c,F,QC(e));J!==void 0&&zF(J,$,u,e,!1,void 0,d)}}}}function _dt(e,n){if(!e.readFile||!e.fileExists)return Yn;const i=[];for(const c of nhe(n,e)){const u=e3(c,e);for(const d of Q5e){const h=u[d];if(h)for(const S in h)ef(h,S)&&!qf(S,"@types/")&&i.push(S)}}return i}function ddt(e,n){const i=Math.max(e.lastIndexOf(qp),e.lastIndexOf(r7)),c=i!==-1?i+1:0,u=e.length-c;return u===0||H2(e.substr(c,u),99)?void 0:p1(n+c,u)}function pdt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const n=e.length>=3&&e.charCodeAt(1)===46?2:1,i=e.charCodeAt(n);return i===47||i===92}return!1}function Yve(e){return e.includes(qp)}function mdt(e){return xd(e.parent)&&pp(e.parent.arguments)===e&&xn(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Qve,Y5e,Q5e,gdt=G({"src/services/stringCompletions.ts"(){xl(),Zve(),Qve={directory:0,script:1,"external module name":2},Y5e=/^(\/\/\/\s*Q_t,getStringLiteralCompletions:()=>X_t});var hdt=G({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){gdt()}}),ow={};Oe(ow,{CompletionKind:()=>Hve,CompletionSource:()=>Vve,SortText:()=>cm,StringCompletions:()=>Zee,SymbolOriginInfoKind:()=>Uve,createCompletionDetails:()=>Xee,createCompletionDetailsForSymbol:()=>Mve,getCompletionEntriesFromSymbols:()=>Rve,getCompletionEntryDetails:()=>rQe,getCompletionEntrySymbol:()=>G_t,getCompletionsAtPosition:()=>UYe,getPropertiesForObjectExpression:()=>_ke,moduleSpecifierResolutionCacheAttemptLimit:()=>jve,moduleSpecifierResolutionLimit:()=>Yee});var Zve=G({"src/services/_namespaces/ts.Completions.ts"(){K_t(),hdt()}});function e0e(e,n,i,c){const u=Tdt(e,i,c);return(d,h,S)=>{const{directImports:E,indirectUsers:P}=ydt(e,n,u,h,i,c);return{indirectUsers:P,...vdt(E,d,h.exportKind,i,S)}}}function ydt(e,n,i,{exportingModuleSymbol:c,exportKind:u},d,h){const S=U3(),E=U3(),P=[],k=!!c.globalExports,F=k?void 0:[];return J(c),{directImports:P,indirectUsers:$()};function $(){if(k)return e;if(c.declarations)for(const Fe of c.declarations)Ov(Fe)&&n.has(Fe.getSourceFile().fileName)&&ve(Fe);return F.map(ts)}function J(Fe){const et=we(Fe);if(et){for(const Pe of et)if(S(Pe))switch(h&&h.throwIfCancellationRequested(),Pe.kind){case 213:if(Py(Pe)){X(Pe);break}if(!k){const Ie=Pe.parent;if(u===2&&Ie.kind===260){const{name:ct}=Ie;if(ct.kind===80){P.push(ct);break}}}break;case 80:break;case 271:ae(Pe,Pe.name,ul(Pe,32),!1);break;case 272:P.push(Pe);const dt=Pe.importClause&&Pe.importClause.namedBindings;dt&&dt.kind===274?ae(Pe,dt.name,!1,!0):!k&&R9(Pe)&&ve(aV(Pe));break;case 278:Pe.exportClause?Pe.exportClause.kind===280?ve(aV(Pe),!0):P.push(Pe):J(Cdt(Pe,d));break;case 205:!k&&Pe.isTypeOf&&!Pe.qualifier&&ie(Pe)&&ve(Pe.getSourceFile(),!0),P.push(Pe);break;default:re.failBadSyntaxKind(Pe,"Unexpected import kind.")}}}function X(Fe){const et=Ua(Fe,ete)||Fe.getSourceFile();ve(et,!!ie(Fe,!0))}function ie(Fe,et=!1){return Ua(Fe,Pe=>et&&ete(Pe)?"quit":DA(Pe)&>(Pe.modifiers,_W))}function ae(Fe,et,Pe,dt){if(u===2)dt||P.push(Fe);else if(!k){const Ie=aV(Fe);re.assert(Ie.kind===312||Ie.kind===267),Pe||bdt(Ie,et,d)?ve(Ie,!0):ve(Ie)}}function ve(Fe,et=!1){if(re.assert(!k),!E(Fe)||(F.push(Fe),!et))return;const dt=d.getMergedSymbol(Fe.symbol);if(!dt)return;re.assert(!!(dt.flags&1536));const Ie=we(dt);if(Ie)for(const ct of Ie)E1(ct)||ve(aV(ct),!0)}function we(Fe){return i.get($d(Fe).toString())}}function vdt(e,n,i,c,u){const d=[],h=[];function S($,J){d.push([$,J])}if(e)for(const $ of e)E($);return{importSearches:d,singleReferences:h};function E($){if($.kind===271){n0e($)&&P($.name);return}if($.kind===80){P($);return}if($.kind===205){if($.qualifier){const ie=PS($.qualifier);ie.escapedText===Il(n)&&h.push(ie)}else i===2&&h.push($.argument.literal);return}if($.moduleSpecifier.kind!==11)return;if($.kind===278){$.exportClause&&j0($.exportClause)&&k($.exportClause);return}const{name:J,namedBindings:X}=$.importClause||{name:void 0,namedBindings:void 0};if(X)switch(X.kind){case 274:P(X.name);break;case 275:(i===0||i===1)&&k(X);break;default:re.assertNever(X)}if(J&&(i===1||i===2)&&(!u||J.escapedText===$ge(n))){const ie=c.getSymbolAtLocation(J);S(J,ie)}}function P($){i===2&&(!u||F($.escapedText))&&S($,c.getSymbolAtLocation($))}function k($){if($)for(const J of $.elements){const{name:X,propertyName:ie}=J;if(F((ie||X).escapedText))if(ie)h.push(ie),(!u||X.escapedText===n.escapedName)&&S(X,c.getSymbolAtLocation(X));else{const ae=J.kind===281&&J.propertyName?c.getExportSpecifierLocalTargetSymbol(J):c.getSymbolAtLocation(X);S(X,ae)}}}function F($){return $===n.escapedName||i!==0&&$==="default"}}function bdt(e,n,i){const c=i.getSymbolAtLocation(n);return!!e9e(e,u=>{if(!ry(u))return;const{exportClause:d,moduleSpecifier:h}=u;return!h&&d&&j0(d)&&d.elements.some(S=>i.getExportSpecifierLocalTargetSymbol(S)===c)})}function Z5e(e,n,i){var c;const u=[],d=e.getTypeChecker();for(const h of n){const S=i.valueDeclaration;if((S==null?void 0:S.kind)===312){for(const E of h.referencedFiles)e.getSourceFileFromReference(h,E)===S&&u.push({kind:"reference",referencingFile:h,ref:E});for(const E of h.typeReferenceDirectives){const P=(c=e.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||h.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective;P!==void 0&&P.resolvedFileName===S.fileName&&u.push({kind:"reference",referencingFile:h,ref:E})}}t9e(h,(E,P)=>{d.getSymbolAtLocation(P)===i&&u.push(Hd(E)?{kind:"implicit",literal:P,referencingFile:h}:{kind:"import",literal:P})})}return u}function Tdt(e,n,i){const c=new Map;for(const u of e)i&&i.throwIfCancellationRequested(),t9e(u,(d,h)=>{const S=n.getSymbolAtLocation(h);if(S){const E=$d(S).toString();let P=c.get(E);P||c.set(E,P=[]),P.push(d)}});return c}function e9e(e,n){return Ot(e.kind===312?e.statements:e.body.statements,i=>n(i)||ete(i)&&Ot(i.body&&i.body.statements,n))}function t9e(e,n){if(e.externalModuleIndicator||e.imports!==void 0)for(const i of e.imports)n(XC(i),i);else e9e(e,i=>{switch(i.kind){case 278:case 272:{const c=i;c.moduleSpecifier&&Sd(c.moduleSpecifier)&&n(c,c.moduleSpecifier);break}case 271:{const c=i;n0e(c)&&n(c,c.moduleReference.expression);break}}})}function n9e(e,n,i,c){return c?u():u()||d();function u(){var E;const{parent:P}=e,k=P.parent;if(n.exportSymbol)return P.kind===211?(E=n.declarations)!=null&&E.some(J=>J===P)&&Ds(k)?$(k,!1):void 0:h(n.exportSymbol,S(P));{const J=Edt(P,e);if(J&&ul(J,32))return Yb(J)&&J.moduleReference===e?c?void 0:{kind:0,symbol:i.getSymbolAtLocation(J.name)}:h(n,S(J));if(G0(P))return h(n,0);if(py(P))return F(P);if(py(k))return F(k);if(Ds(P))return $(P,!0);if(Ds(k))return $(k,!0);if(zJ(P)||UY(P))return h(n,0)}function F(J){if(!J.symbol.parent)return;const X=J.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:J.symbol.parent,exportKind:X}}}function $(J,X){let ie;switch(jy(J)){case 1:ie=0;break;case 2:ie=2;break;default:return}const ae=X?i.getSymbolAtLocation(PSe(uc(J.left,Kf))):n;return ae&&h(ae,ie)}}function d(){if(!xdt(e))return;let P=i.getImmediateAliasedSymbol(n);if(!P||(P=Adt(P,i),P.escapedName==="export="&&(P=Sdt(P,i),P===void 0)))return;const k=$ge(P);if(k===void 0||k==="default"||k===n.escapedName)return{kind:0,symbol:P}}function h(E,P){const k=t0e(E,P,i);return k&&{kind:1,symbol:E,exportInfo:k}}function S(E){return ul(E,2048)?1:0}}function Sdt(e,n){var i,c;if(e.flags&2097152)return n.getImmediateAliasedSymbol(e);const u=re.checkDefined(e.valueDeclaration);if(py(u))return(i=to(u.expression,ck))==null?void 0:i.symbol;if(Ds(u))return(c=to(u.right,ck))==null?void 0:c.symbol;if(Nu(u))return u.symbol}function Edt(e,n){const i=Kc(e)?e:sa(e)?OU(e):void 0;return i?e.name!==n||A3(i.parent)?void 0:Xg(i.parent.parent)?i.parent.parent:void 0:e}function xdt(e){const{parent:n}=e;switch(n.kind){case 271:return n.name===e&&n0e(n);case 276:return!n.propertyName;case 273:case 274:return re.assert(n.name===e),!0;case 208:return Cs(e)&&E7(n.parent.parent);default:return!1}}function t0e(e,n,i){const c=e.parent;if(!c)return;const u=i.getMergedSymbol(c);return eq(u)?{exportingModuleSymbol:u,exportKind:n}:void 0}function Adt(e,n){if(e.declarations)for(const i of e.declarations){if(my(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(i)||e;if(Ac(i)&&jE(i.expression)&&!Lu(i.name))return n.getSymbolAtLocation(i);if(XE(i)&&Ds(i.parent.parent)&&jy(i.parent.parent)===2)return n.getExportSpecifierLocalTargetSymbol(i.name)}return e}function Cdt(e,n){return n.getMergedSymbol(aV(e).symbol)}function aV(e){if(e.kind===213)return e.getSourceFile();const{parent:n}=e;return n.kind===312?n:(re.assert(n.kind===268),uc(n.parent,ete))}function ete(e){return e.kind===267&&e.name.kind===11}function n0e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var r0e,i0e,Ddt=G({"src/services/importTracker.ts"(){xl(),r0e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(r0e||{}),i0e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(i0e||{})}});function _T(e,n=1){return{kind:n,node:e.name||e,context:Idt(e)}}function r9e(e){return e&&e.kind===void 0}function Idt(e){if(PT(e))return AI(e);if(e.parent){if(!PT(e.parent)&&!py(e.parent)){if(Cs(e)){const i=Ds(e.parent)?e.parent:Kf(e.parent)&&Ds(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(i&&jy(i)!==0)return AI(i)}if(Pb(e.parent)||iD(e.parent))return e.parent.parent;if(nF(e.parent)||tF(e.parent)||M8(e.parent))return e.parent;if(Cm(e)){const i=N9(e);if(i){const c=Ua(i,u=>PT(u)||dl(u)||d7(u));return PT(c)?AI(c):c}}const n=Ua(e,Qf);return n?AI(n.parent):void 0}if(e.parent.name===e||Lh(e.parent)||py(e.parent)||(fP(e.parent)||sa(e.parent))&&e.parent.propertyName===e||e.kind===90&&ul(e.parent,2080))return AI(e.parent)}}function AI(e){if(e)switch(e.kind){case 260:return!Kp(e.parent)||e.parent.declarations.length!==1?e:Xg(e.parent.parent)?e.parent.parent:Hz(e.parent.parent)?AI(e.parent.parent):e.parent;case 208:return AI(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return kb(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return kP(e.parent)?AI(Ua(e.parent,n=>Ds(n)||Hz(n))):e;default:return e}}function o0e(e,n,i){if(!i)return;const c=r9e(i)?cV(i.start,n,i.end):cV(i,n);return c.start!==e.start||c.length!==e.length?{contextSpan:c}:void 0}function kdt(e,n,i,c,u){const d=cS(c,u),h={use:1},S=OP.getReferencedSymbolsForNode(u,d,e,i,n,h),E=e.getTypeChecker(),P=OP.getAdjustedNode(d,h),k=Pdt(P)?E.getSymbolAtLocation(P):void 0;return!S||!S.length?void 0:Qo(S,({definition:F,references:$})=>F&&{definition:E.runWithCancellationToken(n,J=>Rdt(F,J,d)),references:$.map(J=>Ldt(J,k))})}function Pdt(e){return e.kind===90||!!cG(e)||_g(e)||e.kind===137&&Lh(e.parent)}function Ndt(e,n,i,c,u){const d=cS(c,u);let h;const S=i9e(e,n,i,d,u);if(d.parent.kind===211||d.parent.kind===208||d.parent.kind===212||d.kind===108)h=S&&[...S];else if(S){const P=$w(S),k=new Map;for(;!P.isEmpty();){const F=P.dequeue();if(!y0(k,vm(F.node)))continue;h=ur(h,F);const $=i9e(e,n,i,F.node,F.node.pos);$&&P.enqueue(...$)}}const E=e.getTypeChecker();return Vn(h,P=>Fdt(P,E))}function i9e(e,n,i,c,u){if(c.kind===312)return;const d=e.getTypeChecker();if(c.parent.kind===304){const h=[];return OP.getReferenceEntriesForShorthandPropertyAssignment(c,d,S=>h.push(_T(S))),h}else if(c.kind===108||MT(c.parent)){const h=d.getSymbolAtLocation(c);return h.valueDeclaration&&[_T(h.valueDeclaration)]}else return o9e(u,c,e,i,n,{implementations:!0,use:1})}function wdt(e,n,i,c,u,d,h){return Vn(a9e(OP.getReferencedSymbolsForNode(u,c,e,i,n,d)),S=>h(S,c,e.getTypeChecker()))}function o9e(e,n,i,c,u,d={},h=new Set(c.map(S=>S.fileName))){return a9e(OP.getReferencedSymbolsForNode(e,n,i,c,u,d,h))}function a9e(e){return e&&ea(e,n=>n.references)}function Rdt(e,n,i){const c=(()=>{switch(e.type){case 0:{const{symbol:k}=e,{displayParts:F,kind:$}=s9e(k,n,i),J=F.map(ae=>ae.text).join(""),X=k.declarations&&pp(k.declarations),ie=X?i_(X)||X:i;return{...sV(ie),name:J,kind:$,displayParts:F,context:AI(X)}}case 1:{const{node:k}=e;return{...sV(k),name:k.text,kind:"label",displayParts:[yE(k.text,17)]}}case 2:{const{node:k}=e,F=Cf(k.kind);return{...sV(k),name:F,kind:"keyword",displayParts:[{text:F,kind:"keyword"}]}}case 3:{const{node:k}=e,F=n.getSymbolAtLocation(k),$=F&&W6.getSymbolDisplayPartsDocumentationAndSymbolKind(n,F,k.getSourceFile(),RR(k),k).displayParts||[lS("this")];return{...sV(k),name:"this",kind:"var",displayParts:$}}case 4:{const{node:k}=e;return{...sV(k),name:k.text,kind:"var",displayParts:[yE(Lv(k),8)]}}case 5:return{textSpan:PP(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[yE(`"${e.reference.fileName}"`,8)]};default:return re.assertNever(e)}})(),{sourceFile:u,textSpan:d,name:h,kind:S,displayParts:E,context:P}=c;return{containerKind:"",containerName:"",fileName:u.fileName,kind:S,name:h,textSpan:d,displayParts:E,...o0e(d,u,P)}}function sV(e){const n=e.getSourceFile();return{sourceFile:n,textSpan:cV(Qf(e)?e.expression:e,n)}}function s9e(e,n,i){const c=OP.getIntersectingMeaningFromDeclarations(i,e),u=e.declarations&&pp(e.declarations)||i,{displayParts:d,symbolKind:h}=W6.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,u.getSourceFile(),u,u,c);return{displayParts:d,kind:h}}function Mdt(e,n,i,c,u){return{...tte(e),...c&&Odt(e,n,i,u)}}function Ldt(e,n){const i=c9e(e);return n?{...i,isDefinition:e.kind!==0&&l9e(e.node,n)}:i}function c9e(e){const n=tte(e);if(e.kind===0)return{...n,isWriteAccess:!1};const{kind:i,node:c}=e;return{...n,isWriteAccess:s0e(c),isInString:i===2?!0:void 0}}function tte(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const n=e.node.getSourceFile(),i=cV(e.node,n);return{textSpan:i,fileName:n.fileName,...o0e(i,n,e.context)}}}function Odt(e,n,i,c){if(e.kind!==0&&xn(n)){const{node:u,kind:d}=e,h=u.parent,S=n.text,E=XE(h);if(E||BZ(h)&&h.name===u&&h.dotDotDotToken===void 0){const P={prefixText:S+": "},k={suffixText:": "+S};if(d===3)return P;if(d===4)return k;if(E){const F=h.parent;return el(F)&&Ds(F.parent)&&jE(F.parent.left)?P:k}else return P}else if(qE(h)&&!h.propertyName){const P=my(n.parent)?i.getExportSpecifierLocalTargetSymbol(n.parent):i.getSymbolAtLocation(n);return ni(P.declarations,h)?{prefixText:S+" as "}:lx}else if(my(h)&&!h.propertyName)return n===e.node||i.getSymbolAtLocation(n)===i.getSymbolAtLocation(e.node)?{prefixText:S+" as "}:{suffixText:" as "+S}}if(e.kind!==0&&S1(e.node)&&Kf(e.node.parent)){const u=ice(c);return{prefixText:u,suffixText:u}}return lx}function Fdt(e,n){const i=tte(e);if(e.kind!==0){const{node:c}=e;return{...i,...Wdt(c,n)}}else return{...i,kind:"",displayParts:[]}}function Wdt(e,n){const i=n.getSymbolAtLocation(PT(e)&&e.name?e.name:e);return i?s9e(i,n,e):e.kind===210?{kind:"interface",displayParts:[D1(21),lS("object literal"),D1(22)]}:e.kind===231?{kind:"local class",displayParts:[D1(21),lS("anonymous local class"),D1(22)]}:{kind:g4(e),displayParts:[]}}function Bdt(e){const n=tte(e);if(e.kind===0)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};const i=s0e(e.node),c={textSpan:n.textSpan,kind:i?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:c}}function cV(e,n,i){let c=e.getStart(n),u=(i||e).getEnd();return Cm(e)&&u-c>2&&(re.assert(i===void 0),c+=1,u-=1),Yy(c,u)}function a0e(e){return e.kind===0?e.textSpan:cV(e.node,e.node.getSourceFile())}function s0e(e){const n=cG(e);return!!n&&zdt(n)||e.kind===90||o6(e)}function l9e(e,n){var i;if(!n)return!1;const c=cG(e)||(e.kind===90?e.parent:_g(e)||e.kind===137&&Lh(e.parent)?e.parent.parent:void 0),u=c&&Ds(c)?c.left:void 0;return!!(c&&((i=n.declarations)!=null&&i.some(d=>d===c||d===u)))}function zdt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 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!kP(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||A3(e.parent);case 173:case 171:case 355:case 348:return!1;default:return re.failBadSyntaxKind(e)}}var c0e,l0e,u0e,OP,Gdt=G({"src/services/findAllReferences.ts"(){xl(),u9e(),c0e=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(c0e||{}),l0e=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(l0e||{}),u0e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(u0e||{}),(e=>{function n(He,Hn,dr,Mr,Pr,Bt={},ln=new Set(Mr.map(Wn=>Wn.fileName))){var Wn,$r;if(Hn=i(Hn,Bt),Nu(Hn)){const go=C4.getReferenceAtPosition(Hn,He,dr);if(!(go!=null&&go.file))return;const Ao=dr.getTypeChecker().getMergedSymbol(go.file.symbol);if(Ao)return P(dr,Ao,!1,Mr,ln);const Io=dr.getFileIncludeReasons();return Io?[{definition:{type:5,reference:go.reference,file:Hn},references:u(go.file,Io,dr)||Yn}]:void 0}if(!Bt.implementations){const go=F(Hn,Mr,Pr);if(go)return go}const Ge=dr.getTypeChecker(),Br=Ge.getSymbolAtLocation(Lh(Hn)&&Hn.parent.name||Hn);if(!Br){if(!Bt.implementations&&Cm(Hn)){if(WZ(Hn)){const go=dr.getFileIncludeReasons(),Ao=($r=(Wn=dr.getResolvedModule(Hn.getSourceFile(),Hn.text,PA(Hn.getSourceFile(),Hn)))==null?void 0:Wn.resolvedModule)==null?void 0:$r.resolvedFileName,Io=Ao?dr.getSourceFile(Ao):void 0;if(Io)return[{definition:{type:4,node:Hn},references:u(Io,go,dr)||Yn}]}return qn(Hn,Mr,Ge,Pr)}return}if(Br.escapedName==="export=")return P(dr,Br.parent,!1,Mr,ln);const Ei=h(Br,dr,Mr,Pr,Bt,ln);if(Ei&&!(Br.flags&33554432))return Ei;const Ln=d(Hn,Br,Ge),Sr=Ln&&h(Ln,dr,Mr,Pr,Bt,ln),yi=$(Br,Hn,Mr,ln,Ge,Pr,Bt);return S(dr,Ei,yi,Sr)}e.getReferencedSymbolsForNode=n;function i(He,Hn){return Hn.use===1?He=zge(He):Hn.use===2&&(He=DZ(He)),He}e.getAdjustedNode=i;function c(He,Hn,dr,Mr=new Set(dr.map(Pr=>Pr.fileName))){var Pr,Bt;const ln=(Pr=Hn.getSourceFile(He))==null?void 0:Pr.symbol;if(ln)return((Bt=P(Hn,ln,!1,dr,Mr)[0])==null?void 0:Bt.references)||Yn;const Wn=Hn.getFileIncludeReasons(),$r=Hn.getSourceFile(He);return $r&&Wn&&u($r,Wn,Hn)||Yn}e.getReferencesForFileName=c;function u(He,Hn,dr){let Mr;const Pr=Hn.get(He.path)||Yn;for(const Bt of Pr)if(ew(Bt)){const ln=dr.getSourceFileByPath(Bt.file),Wn=XQ(dr,Bt);HW(Wn)&&(Mr=ur(Mr,{kind:0,fileName:ln.fileName,textSpan:PP(Wn)}))}return Mr}function d(He,Hn,dr){if(He.parent&&lC(He.parent)){const Mr=dr.getAliasedSymbol(Hn),Pr=dr.getMergedSymbol(Mr);if(Mr!==Pr)return Pr}}function h(He,Hn,dr,Mr,Pr,Bt){const ln=He.flags&1536&&He.declarations&&lr(He.declarations,Nu);if(!ln)return;const Wn=He.exports.get("export="),$r=P(Hn,He,!!Wn,dr,Bt);if(!Wn||!Bt.has(ln.fileName))return $r;const Ge=Hn.getTypeChecker();return He=dg(Wn,Ge),S(Hn,$r,$(He,void 0,dr,Bt,Ge,Mr,Pr))}function S(He,...Hn){let dr;for(const Mr of Hn)if(!(!Mr||!Mr.length)){if(!dr){dr=Mr;continue}for(const Pr of Mr){if(!Pr.definition||Pr.definition.type!==0){dr.push(Pr);continue}const Bt=Pr.definition.symbol,ln=Ho(dr,$r=>!!$r.definition&&$r.definition.type===0&&$r.definition.symbol===Bt);if(ln===-1){dr.push(Pr);continue}const Wn=dr[ln];dr[ln]={definition:Wn.definition,references:Wn.references.concat(Pr.references).sort(($r,Ge)=>{const Br=E(He,$r),Ei=E(He,Ge);if(Br!==Ei)return pf(Br,Ei);const Ln=a0e($r),Sr=a0e(Ge);return Ln.start!==Sr.start?pf(Ln.start,Sr.start):pf(Ln.length,Sr.length)})}}}return dr}function E(He,Hn){const dr=Hn.kind===0?He.getSourceFile(Hn.fileName):Hn.node.getSourceFile();return He.getSourceFiles().indexOf(dr)}function P(He,Hn,dr,Mr,Pr){re.assert(!!Hn.valueDeclaration);const Bt=Qo(Z5e(He,Mr,Hn),Wn=>{if(Wn.kind==="import"){const $r=Wn.literal.parent;if(S3($r)){const Ge=uc($r.parent,E1);if(dr&&!Ge.qualifier)return}return _T(Wn.literal)}else if(Wn.kind==="implicit"){const $r=Wn.literal.text!==HN&&cF(Wn.referencingFile,Ge=>Ge.transformFlags&2?zx(Ge)||nF(Ge)||Ek(Ge)?Ge:void 0:"skip")||Wn.referencingFile.statements[0]||Wn.referencingFile;return _T($r)}else return{kind:0,fileName:Wn.referencingFile.fileName,textSpan:PP(Wn.ref)}});if(Hn.declarations)for(const Wn of Hn.declarations)switch(Wn.kind){case 312:break;case 267:Pr.has(Wn.getSourceFile().fileName)&&Bt.push(_T(Wn.name));break;default:re.assert(!!(Hn.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ln=Hn.exports.get("export=");if(ln!=null&&ln.declarations)for(const Wn of ln.declarations){const $r=Wn.getSourceFile();if(Pr.has($r.fileName)){const Ge=Ds(Wn)&&Ac(Wn.left)?Wn.left.expression:py(Wn)?re.checkDefined(qm(Wn,95,$r)):i_(Wn)||Wn;Bt.push(_T(Ge))}}return Bt.length?[{definition:{type:0,symbol:Hn},references:Bt}]:Yn}function k(He){return He.kind===148&&_I(He.parent)&&He.parent.operator===148}function F(He,Hn,dr){if(Z$(He.kind))return He.kind===116&&Z7(He.parent)||He.kind===148&&!k(He)?void 0:nn(Hn,He.kind,dr,He.kind===148?k:void 0);if(gP(He.parent)&&He.parent.name===He)return Qt(Hn,dr);if(pW(He)&&Ep(He.parent))return[{definition:{type:2,node:He},references:[_T(He)]}];if(EZ(He)){const Mr=SZ(He.parent,He.text);return Mr&&Et(Mr.parent,Mr)}else if(j3(He))return Et(He.parent,He);if(AF(He))return au(He,Hn,dr);if(He.kind===108)return Wl(He)}function $(He,Hn,dr,Mr,Pr,Bt,ln){const Wn=Hn&&ie(He,Hn,Pr,!Eu(ln))||He,$r=Hn?us(Hn,Wn):7,Ge=[],Br=new we(dr,Mr,Hn?X(Hn):0,Pr,Bt,$r,ln,Ge),Ei=!Eu(ln)||!Wn.declarations?void 0:lr(Wn.declarations,my);if(Ei)wr(Ei.name,Wn,Ei,Br.createSearch(Hn,He,void 0),Br,!0,!0);else if(Hn&&Hn.kind===90&&Wn.escapedName==="default"&&Wn.parent)Tr(Hn,Wn,Br),Fe(Hn,Wn,{exportingModuleSymbol:Wn.parent,exportKind:1},Br);else{const Ln=Br.createSearch(Hn,Wn,void 0,{allSearchSymbols:Hn?za(Wn,Hn,Pr,ln.use===2,!!ln.providePrefixAndSuffixTextForRename,!!ln.implementations):[Wn]});J(Wn,Br,Ln)}return Ge}function J(He,Hn,dr){const Mr=Ct(He);if(Mr)cn(Mr,Mr.getSourceFile(),dr,Hn,!(Nu(Mr)&&!ni(Hn.sourceFiles,Mr)));else for(const Pr of Hn.sourceFiles)Hn.cancellationToken.throwIfCancellationRequested(),Ie(Pr,dr,Hn)}function X(He){switch(He.kind){case 176:case 137:return 1;case 80:if(Fl(He.parent))return re.assert(He.parent.name===He),2;default:return 0}}function ie(He,Hn,dr,Mr){const{parent:Pr}=Hn;return my(Pr)&&Mr?Wr(Hn,He,Pr,dr):Yr(He.declarations,Bt=>{if(!Bt.parent){if(He.flags&33554432)return;re.fail(`Unexpected symbol at ${re.formatSyntaxKind(Hn.kind)}: ${re.formatSymbol(He)}`)}return rS(Bt.parent)&&fI(Bt.parent.parent)?dr.getPropertyOfType(dr.getTypeFromTypeNode(Bt.parent.parent),He.name):void 0})}let ae;(He=>{He[He.None=0]="None",He[He.Constructor=1]="Constructor",He[He.Class=2]="Class"})(ae||(ae={}));function ve(He){if(!(He.flags&33555968))return;const Hn=He.declarations&&lr(He.declarations,dr=>!Nu(dr)&&!dy(dr));return Hn&&Hn.symbol}class we{constructor(Hn,dr,Mr,Pr,Bt,ln,Wn,$r){this.sourceFiles=Hn,this.sourceFilesSet=dr,this.specialSearchKind=Mr,this.checker=Pr,this.cancellationToken=Bt,this.searchMeaning=ln,this.options=Wn,this.result=$r,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=U3(),this.markSeenReExportRHS=U3(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Hn){return this.sourceFilesSet.has(Hn.fileName)}getImportSearches(Hn,dr){return this.importTracker||(this.importTracker=e0e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Hn,dr,this.options.use===2)}createSearch(Hn,dr,Mr,Pr={}){const{text:Bt=S2(Il(i6(dr)||ve(dr)||dr)),allSearchSymbols:ln=[dr]}=Pr,Wn=ey(Bt),$r=this.options.implementations&&Hn?w_(Hn,dr,this.checker):void 0;return{symbol:dr,comingFrom:Mr,text:Bt,escapedText:Wn,parents:$r,allSearchSymbols:ln,includes:Ge=>ni(ln,Ge)}}referenceAdder(Hn){const dr=$d(Hn);let Mr=this.symbolIdToReferences[dr];return Mr||(Mr=this.symbolIdToReferences[dr]=[],this.result.push({definition:{type:0,symbol:Hn},references:Mr})),(Pr,Bt)=>Mr.push(_T(Pr,Bt))}addStringOrCommentReference(Hn,dr){this.result.push({definition:void 0,references:[{kind:0,fileName:Hn,textSpan:dr}]})}markSearchedSymbols(Hn,dr){const Mr=vm(Hn),Pr=this.sourceFileToSeenSymbols[Mr]||(this.sourceFileToSeenSymbols[Mr]=new Set);let Bt=!1;for(const ln of dr)Bt=m2(Pr,$d(ln))||Bt;return Bt}}function Fe(He,Hn,dr,Mr){const{importSearches:Pr,singleReferences:Bt,indirectUsers:ln}=Mr.getImportSearches(Hn,dr);if(Bt.length){const Wn=Mr.referenceAdder(Hn);for(const $r of Bt)Pe($r,Mr)&&Wn($r)}for(const[Wn,$r]of Pr)Rn(Wn.getSourceFile(),Mr.createSearch(Wn,$r,1),Mr);if(ln.length){let Wn;switch(dr.exportKind){case 0:Wn=Mr.createSearch(He,Hn,1);break;case 1:Wn=Mr.options.use===2?void 0:Mr.createSearch(He,Hn,1,{text:"default"});break}if(Wn)for(const $r of ln)Ie($r,Wn,Mr)}}function et(He,Hn,dr,Mr,Pr,Bt,ln,Wn){const $r=e0e(He,new Set(He.map(Ln=>Ln.fileName)),Hn,dr),{importSearches:Ge,indirectUsers:Br,singleReferences:Ei}=$r(Mr,{exportKind:ln?1:0,exportingModuleSymbol:Pr},!1);for(const[Ln]of Ge)Wn(Ln);for(const Ln of Ei)xn(Ln)&&E1(Ln.parent)&&Wn(Ln);for(const Ln of Br)for(const Sr of It(Ln,ln?"default":Bt)){const yi=Hn.getSymbolAtLocation(Sr),go=gt(yi==null?void 0:yi.declarations,Ao=>!!to(Ao,py));xn(Sr)&&!fP(Sr.parent)&&(yi===Mr||go)&&Wn(Sr)}}e.eachExportReference=et;function Pe(He,Hn){return qt(He,Hn)?Hn.options.use!==2?!0:xn(He)?!(fP(He.parent)&&He.escapedText==="default"):!1:!1}function dt(He,Hn){if(He.declarations)for(const dr of He.declarations){const Mr=dr.getSourceFile();Rn(Mr,Hn.createSearch(dr,He,0),Hn,Hn.includesSourceFile(Mr))}}function Ie(He,Hn,dr){xee(He).get(Hn.escapedText)!==void 0&&Rn(He,Hn,dr)}function ct(He,Hn){return kP(He.parent.parent)?Hn.getPropertySymbolOfDestructuringAssignment(He):void 0}function Ct(He){const{declarations:Hn,flags:dr,parent:Mr,valueDeclaration:Pr}=He;if(Pr&&(Pr.kind===218||Pr.kind===231))return Pr;if(!Hn)return;if(dr&8196){const Wn=lr(Hn,$r=>tT($r,2)||IT($r));return Wn?oC(Wn,263):void 0}if(Hn.some(BZ))return;const Bt=Mr&&!(He.flags&262144);if(Bt&&!(eq(Mr)&&!Mr.globalExports))return;let ln;for(const Wn of Hn){const $r=RR(Wn);if(ln&&ln!==$r||!$r||$r.kind===312&&!aE($r))return;if(ln=$r,Jm(ln)){let Ge;for(;Ge=Die(ln);)ln=Ge}}return Bt?ln.getSourceFile():ln}function Lt(He,Hn,dr,Mr=dr){return Ze(He,Hn,dr,()=>!0,Mr)||!1}e.isSymbolReferencedInFile=Lt;function Ze(He,Hn,dr,Mr,Pr=dr){const Bt=DT(He.parent,He.parent.parent)?Dl(Hn.getSymbolsOfParameterPropertyDeclaration(He.parent,He.text)):Hn.getSymbolAtLocation(He);if(Bt)for(const ln of It(dr,Bt.name,Pr)){if(!xn(ln)||ln===He||ln.escapedText!==He.escapedText)continue;const Wn=Hn.getSymbolAtLocation(ln);if(Wn===Bt||Hn.getShorthandAssignmentValueSymbol(ln.parent)===Bt||my(ln.parent)&&Wr(ln,Wn,ln.parent,Hn)===Bt){const $r=Mr(ln);if($r)return $r}}}e.eachSymbolReferenceInFile=Ze;function Ke(He,Hn){return gi(It(Hn,He),Pr=>!!cG(Pr)).reduce((Pr,Bt)=>{const ln=Mr(Bt);return!gt(Pr.declarationNames)||ln===Pr.depth?(Pr.declarationNames.push(Bt),Pr.depth=ln):lnBr===Pr)&&Mr(ln,$r))return!0}return!1}e.someSignatureUsage=st;function It(He,Hn,dr=He){return Qo(Yt(He,Hn,dr),Mr=>{const Pr=cS(He,Mr);return Pr===He?void 0:Pr})}function Yt(He,Hn,dr=He){const Mr=[];if(!Hn||!Hn.length)return Mr;const Pr=He.text,Bt=Pr.length,ln=Hn.length;let Wn=Pr.indexOf(Hn,dr.pos);for(;Wn>=0&&!(Wn>dr.end);){const $r=Wn+ln;(Wn===0||!wL(Pr.charCodeAt(Wn-1),99))&&($r===Bt||!wL(Pr.charCodeAt($r),99))&&Mr.push(Wn),Wn=Pr.indexOf(Hn,Wn+ln+1)}return Mr}function Et(He,Hn){const dr=He.getSourceFile(),Mr=Hn.text,Pr=Qo(It(dr,Mr,He),Bt=>Bt===Hn||EZ(Bt)&&SZ(Bt,Mr)===Hn?_T(Bt):void 0);return[{definition:{type:1,node:Hn},references:Pr}]}function at(He,Hn){switch(He.kind){case 81:if(QL(He.parent))return!0;case 80:return He.text.length===Hn.length;case 15:case 11:{const dr=He;return(xZ(dr)||U$(He)||AZ(He)||xd(He.parent)&&A7(He.parent)&&He.parent.arguments[1]===He)&&dr.text.length===Hn.length}case 9:return xZ(He)&&He.text.length===Hn.length;case 90:return Hn.length===7;default:return!1}}function Qt(He,Hn){const dr=ea(He,Mr=>(Hn.throwIfCancellationRequested(),Qo(It(Mr,"meta",Mr),Pr=>{const Bt=Pr.parent;if(gP(Bt))return _T(Bt)})));return dr.length?[{definition:{type:2,node:dr[0].node},references:dr}]:void 0}function nn(He,Hn,dr,Mr){const Pr=ea(He,Bt=>(dr.throwIfCancellationRequested(),Qo(It(Bt,Cf(Hn),Bt),ln=>{if(ln.kind===Hn&&(!Mr||Mr(ln)))return _T(ln)})));return Pr.length?[{definition:{type:2,node:Pr[0].node},references:Pr}]:void 0}function Rn(He,Hn,dr,Mr=!0){return dr.cancellationToken.throwIfCancellationRequested(),cn(He,He,Hn,dr,Mr)}function cn(He,Hn,dr,Mr,Pr){if(Mr.markSearchedSymbols(Hn,dr.allSearchSymbols))for(const Bt of Yt(Hn,dr.text,He))Kt(Hn,Bt,dr,Mr,Pr)}function qt(He,Hn){return!!(xF(He)&Hn.searchMeaning)}function Kt(He,Hn,dr,Mr,Pr){const Bt=cS(He,Hn);if(!at(Bt,dr.text)){!Mr.options.implementations&&(Mr.options.findInStrings&&V3(He,Hn)||Mr.options.findInComments&&Q$(He,Hn))&&Mr.addStringOrCommentReference(He.fileName,p1(Hn,dr.text.length));return}if(!qt(Bt,Mr))return;let ln=Mr.checker.getSymbolAtLocation(Bt);if(!ln)return;const Wn=Bt.parent;if(qE(Wn)&&Wn.propertyName===Bt)return;if(my(Wn)){re.assert(Bt.kind===80),wr(Bt,ln,Wn,dr,Mr,Pr);return}const $r=_a(dr,ln,Bt,Mr);if(!$r){fr(ln,dr,Mr);return}switch(Mr.specialSearchKind){case 0:Pr&&Tr(Bt,$r,Mr);break;case 1:Vr(Bt,He,dr,Mr);break;case 2:Pn(Bt,dr,Mr);break;default:re.assertNever(Mr.specialSearchKind)}Cs(Bt)&&sa(Bt.parent)&&E7(Bt.parent.parent.parent)&&(ln=Bt.parent.symbol,!ln)||En(Bt,ln,dr,Mr)}function wr(He,Hn,dr,Mr,Pr,Bt,ln){re.assert(!ln||!!Pr.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:Wn,propertyName:$r,name:Ge}=dr,Br=Wn.parent,Ei=Wr(He,Hn,dr,Pr.checker);if(!ln&&!Mr.includes(Ei))return;if($r?He===$r?(Br.moduleSpecifier||Ln(),Bt&&Pr.options.use!==2&&Pr.markSeenReExportRHS(Ge)&&Tr(Ge,re.checkDefined(dr.symbol),Pr)):Pr.markSeenReExportRHS(He)&&Ln():Pr.options.use===2&&Ge.escapedText==="default"||Ln(),!Eu(Pr.options)||ln){const yi=He.escapedText==="default"||dr.name.escapedText==="default"?1:0,go=re.checkDefined(dr.symbol),Ao=t0e(go,yi,Pr.checker);Ao&&Fe(He,go,Ao,Pr)}if(Mr.comingFrom!==1&&Br.moduleSpecifier&&!$r&&!Eu(Pr.options)){const Sr=Pr.checker.getExportSpecifierLocalTargetSymbol(dr);Sr&&dt(Sr,Pr)}function Ln(){Bt&&Tr(He,Ei,Pr)}}function Wr(He,Hn,dr,Mr){return jt(He,dr)&&Mr.getExportSpecifierLocalTargetSymbol(dr)||Hn}function jt(He,Hn){const{parent:dr,propertyName:Mr,name:Pr}=Hn;return re.assert(Mr===He||Pr===He),Mr?Mr===He:!dr.parent.moduleSpecifier}function En(He,Hn,dr,Mr){const Pr=n9e(He,Hn,Mr.checker,dr.comingFrom===1);if(!Pr)return;const{symbol:Bt}=Pr;Pr.kind===0?Eu(Mr.options)||dt(Bt,Mr):Fe(He,Bt,Pr.exportInfo,Mr)}function fr({flags:He,valueDeclaration:Hn},dr,Mr){const Pr=Mr.checker.getShorthandAssignmentValueSymbol(Hn),Bt=Hn&&i_(Hn);!(He&33554432)&&Bt&&dr.includes(Pr)&&Tr(Bt,Pr,Mr)}function Tr(He,Hn,dr){const{kind:Mr,symbol:Pr}="kind"in Hn?Hn:{kind:void 0,symbol:Hn};if(dr.options.use===2&&He.kind===90)return;const Bt=dr.referenceAdder(Pr);dr.options.implementations?Mo(He,Bt,dr):Bt(He,Mr)}function Vr(He,Hn,dr,Mr){V$(He)&&Tr(He,dr.symbol,Mr);const Pr=()=>Mr.referenceAdder(dr.symbol);if(Fl(He.parent))re.assert(He.kind===90||He.parent.name===He),Fr(dr.symbol,Hn,Pr());else{const Bt=yf(He);Bt&&(io(Bt,Pr()),os(Bt,Mr))}}function Pn(He,Hn,dr){Tr(He,Hn.symbol,dr);const Mr=He.parent;if(dr.options.use===2||!Fl(Mr))return;re.assert(Mr.name===He);const Pr=dr.referenceAdder(Hn.symbol);for(const Bt of Mr.members)Mv(Bt)&&pd(Bt)&&Bt.body&&Bt.body.forEachChild(function ln(Wn){Wn.kind===110?Pr(Wn):!F_(Wn)&&!Fl(Wn)&&Wn.forEachChild(ln)})}function Fr(He,Hn,dr){const Mr=Ki(He);if(Mr&&Mr.declarations)for(const Pr of Mr.declarations){const Bt=qm(Pr,137,Hn);re.assert(Pr.kind===176&&!!Bt),dr(Bt)}He.exports&&He.exports.forEach(Pr=>{const Bt=Pr.valueDeclaration;if(Bt&&Bt.kind===174){const ln=Bt.body;ln&&Cu(ln,110,Wn=>{V$(Wn)&&dr(Wn)})}})}function Ki(He){return He.members&&He.members.get("__constructor")}function io(He,Hn){const dr=Ki(He.symbol);if(dr&&dr.declarations)for(const Mr of dr.declarations){re.assert(Mr.kind===176);const Pr=Mr.body;Pr&&Cu(Pr,108,Bt=>{hZ(Bt)&&Hn(Bt)})}}function no(He){return!!Ki(He.symbol)}function os(He,Hn){if(no(He))return;const dr=He.symbol,Mr=Hn.createSearch(void 0,dr,void 0);J(dr,Hn,Mr)}function Mo(He,Hn,dr){if(ON(He)&&Au(He.parent)){Hn(He);return}if(He.kind!==80)return;He.parent.kind===304&&Qu(He,dr.checker,Hn);const Mr=$i(He);if(Mr){Hn(Mr);return}const Pr=Ua(He,Wn=>!Pu(Wn.parent)&&!pc(Wn.parent)&&!rb(Wn.parent)),Bt=Pr.parent;if(_P(Bt)&&Bt.type===Pr&&dr.markSeenContainingTypeReference(Bt))if(J2(Bt))ln(Bt.initializer);else if(F_(Bt)&&Bt.body){const Wn=Bt.body;Wn.kind===241?dR(Wn,$r=>{$r.expression&&ln($r.expression)}):ln(Wn)}else f7(Bt)&&ln(Bt.expression);function ln(Wn){ki(Wn)&&Hn(Wn)}}function $i(He){return xn(He)||Ac(He)?$i(He.parent):cC(He)?to(He.parent.parent,bb(Fl,xp)):void 0}function ki(He){switch(He.kind){case 217:return ki(He.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function gc(He,Hn,dr,Mr){if(He===Hn)return!0;const Pr=$d(He)+","+$d(Hn),Bt=dr.get(Pr);if(Bt!==void 0)return Bt;dr.set(Pr,!1);const ln=!!He.declarations&&He.declarations.some(Wn=>lG(Wn).some($r=>{const Ge=Mr.getTypeAtLocation($r);return!!Ge&&!!Ge.symbol&&gc(Ge.symbol,Hn,dr,Mr)}));return dr.set(Pr,ln),ln}function Wl(He){let Hn=h0(He,!1);if(!Hn)return;let dr=256;switch(Hn.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:dr&=ZC(Hn),Hn=Hn.parent;break;default:return}const Mr=Hn.getSourceFile(),Pr=Qo(It(Mr,"super",Hn),Bt=>{if(Bt.kind!==108)return;const ln=h0(Bt,!1);return ln&&pd(ln)===!!dr&&ln.parent.symbol===Hn.symbol?_T(Bt):void 0});return[{definition:{type:0,symbol:Hn.symbol},references:Pr}]}function Jc(He){return He.kind===80&&He.parent.kind===169&&He.parent.name===He}function au(He,Hn,dr){let Mr=RT(He,!1,!1),Pr=256;switch(Mr.kind){case 174:case 173:if(iC(Mr)){Pr&=ZC(Mr),Mr=Mr.parent;break}case 172:case 171:case 176:case 177:case 178:Pr&=ZC(Mr),Mr=Mr.parent;break;case 312:if(Bv(Mr)||Jc(He))return;case 262:case 218:break;default:return}const Bt=ea(Mr.kind===312?Hn:[Mr.getSourceFile()],Wn=>(dr.throwIfCancellationRequested(),It(Wn,"this",Nu(Mr)?Wn:Mr).filter($r=>{if(!AF($r))return!1;const Ge=RT($r,!1,!1);if(!ck(Ge))return!1;switch(Mr.kind){case 218:case 262:return Mr.symbol===Ge.symbol;case 174:case 173:return iC(Mr)&&Mr.symbol===Ge.symbol;case 231:case 263:case 210:return Ge.parent&&ck(Ge.parent)&&Mr.symbol===Ge.parent.symbol&&pd(Ge)===!!Pr;case 312:return Ge.kind===312&&!Bv(Ge)&&!Jc($r)}}))).map(Wn=>_T(Wn));return[{definition:{type:3,node:Yr(Bt,Wn=>Os(Wn.node.parent)?Wn.node:void 0)||He},references:Bt}]}function qn(He,Hn,dr,Mr){const Pr=bf(He,dr),Bt=ea(Hn,ln=>(Mr.throwIfCancellationRequested(),Qo(It(ln,He.text),Wn=>{if(Cm(Wn)&&Wn.text===He.text)if(Pr){const $r=bf(Wn,dr);if(Pr!==dr.getStringType()&&Pr===$r)return _T(Wn,2)}else return K7(Wn)&&!mk(Wn,ln)?void 0:_T(Wn,2)})));return[{definition:{type:4,node:He},references:Bt}]}function za(He,Hn,dr,Mr,Pr,Bt){const ln=[];return Ia(He,Hn,dr,Mr,!(Mr&&Pr),(Wn,$r,Ge)=>{Ge&&na(He)!==na(Ge)&&(Ge=void 0),ln.push(Ge||$r||Wn)},()=>!Bt),ln}function Ia(He,Hn,dr,Mr,Pr,Bt,ln){const Wn=Aee(Hn);if(Wn){const yi=dr.getShorthandAssignmentValueSymbol(Hn.parent);if(yi&&Mr)return Bt(yi,void 0,void 0,3);const go=dr.getContextualType(Wn.parent),Ao=go&&Yr(_le(Wn,dr,go,!0),kt=>Ln(kt,4));if(Ao)return Ao;const Io=ct(Hn,dr),ze=Io&&Bt(Io,void 0,void 0,4);if(ze)return ze;const Ce=yi&&Bt(yi,void 0,void 0,3);if(Ce)return Ce}const $r=d(Hn,He,dr);if($r){const yi=Bt($r,void 0,void 0,1);if(yi)return yi}const Ge=Ln(He);if(Ge)return Ge;if(He.valueDeclaration&&DT(He.valueDeclaration,He.valueDeclaration.parent)){const yi=dr.getSymbolsOfParameterPropertyDeclaration(uc(He.valueDeclaration,Os),He.name);return re.assert(yi.length===2&&!!(yi[0].flags&1)&&!!(yi[1].flags&4)),Ln(He.flags&1?yi[1]:yi[0])}const Br=Rh(He,281);if(!Mr||Br&&!Br.propertyName){const yi=Br&&dr.getExportSpecifierLocalTargetSymbol(Br);if(yi){const go=Bt(yi,void 0,void 0,1);if(go)return go}}if(!Mr){let yi;return Pr?yi=BZ(Hn.parent)?Pj(dr,Hn.parent):void 0:yi=Sr(He,dr),yi&&Ln(yi,4)}if(re.assert(Mr),Pr){const yi=Sr(He,dr);return yi&&Ln(yi,4)}function Ln(yi,go){return Yr(dr.getRootSymbols(yi),Ao=>Bt(yi,Ao,void 0,go)||(Ao.parent&&Ao.parent.flags&96&&ln(Ao)?zi(Ao.parent,Ao.name,dr,Io=>Bt(yi,Ao,Io,go)):void 0))}function Sr(yi,go){const Ao=Rh(yi,208);if(Ao&&BZ(Ao))return Pj(go,Ao)}}function zi(He,Hn,dr,Mr){const Pr=new Map;return Bt(He);function Bt(ln){if(!(!(ln.flags&96)||!y0(Pr,$d(ln))))return Yr(ln.declarations,Wn=>Yr(lG(Wn),$r=>{const Ge=dr.getTypeAtLocation($r),Br=Ge&&Ge.symbol&&dr.getPropertyOfType(Ge,Hn);return Ge&&Br&&(Yr(dr.getRootSymbols(Br),Mr)||Bt(Ge.symbol))}))}}function na(He){return He.valueDeclaration?!!(Cb(He.valueDeclaration)&256):!1}function _a(He,Hn,dr,Mr){const{checker:Pr}=Mr;return Ia(Hn,dr,Pr,!1,Mr.options.use!==2||!!Mr.options.providePrefixAndSuffixTextForRename,(Bt,ln,Wn,$r)=>(Wn&&na(Hn)!==na(Wn)&&(Wn=void 0),He.includes(Wn||ln||Bt)?{symbol:ln&&!(I_(Bt)&6)?ln:Bt,kind:$r}:void 0),Bt=>!(He.parents&&!He.parents.some(ln=>gc(Bt.parent,ln,Mr.inheritsFromCache,Pr))))}function us(He,Hn){let dr=xF(He);const{declarations:Mr}=Hn;if(Mr){let Pr;do{Pr=dr;for(const Bt of Mr){const ln=j$(Bt);ln&dr&&(dr|=ln)}}while(dr!==Pr)}return dr}e.getIntersectingMeaningFromDeclarations=us;function Au(He){return He.flags&33554432?!(xp(He)||z0(He)):E9(He)?J2(He):Vd(He)?!!He.body:Fl(He)||nie(He)}function Qu(He,Hn,dr){const Mr=Hn.getSymbolAtLocation(He),Pr=Hn.getShorthandAssignmentValueSymbol(Mr.valueDeclaration);if(Pr)for(const Bt of Pr.getDeclarations())j$(Bt)&1&&dr(Bt)}e.getReferenceEntriesForShorthandPropertyAssignment=Qu;function Cu(He,Hn,dr){s_(He,Mr=>{Mr.kind===Hn&&dr(Mr),Cu(Mr,Hn,dr)})}function yf(He){return IH(TZ(He).parent)}function w_(He,Hn,dr){const Mr=sS(He)?He.parent:void 0,Pr=Mr&&dr.getTypeAtLocation(Mr.expression),Bt=Qo(Pr&&(Pr.isUnionOrIntersection()?Pr.types:Pr.symbol===Hn.parent?void 0:[Pr]),ln=>ln.symbol&&ln.symbol.flags&96?ln.symbol:void 0);return Bt.length===0?void 0:Bt}function Eu(He){return He.use===2&&He.providePrefixAndSuffixTextForRename}})(OP||(OP={}))}}),Wf={};Oe(Wf,{Core:()=>OP,DefinitionKind:()=>c0e,EntryKind:()=>l0e,ExportKind:()=>r0e,FindReferencesUse:()=>u0e,ImportExport:()=>i0e,createImportTracker:()=>e0e,findModuleReferences:()=>Z5e,findReferenceOrRenameEntries:()=>wdt,findReferencedSymbols:()=>kdt,getContextNode:()=>AI,getExportInfo:()=>t0e,getImplementationsAtPosition:()=>Ndt,getImportOrExportSymbol:()=>n9e,getReferenceEntriesForNode:()=>o9e,getTextSpanOfEntry:()=>a0e,isContextWithStartAndEndNode:()=>r9e,isDeclarationOfSymbol:()=>l9e,isWriteAccessForReference:()=>s0e,nodeEntry:()=>_T,toContextSpan:()=>o0e,toHighlightSpan:()=>Bdt,toReferenceEntry:()=>c9e,toRenameLocation:()=>Mdt});var u9e=G({"src/services/_namespaces/ts.FindAllReferences.ts"(){Ddt(),Gdt()}});function f9e(e,n,i,c,u){var d;const h=d9e(n,i,e),S=h&&[Qdt(h.reference.fileName,h.fileName,h.unverified)]||Yn;if(h!=null&&h.file)return S;const E=cS(n,i);if(E===n)return;const{parent:P}=E,k=e.getTypeChecker();if(E.kind===164||xn(E)&&AA(P)&&P.tagName===E)return Vdt(k,E)||Yn;if(EZ(E)){const ae=SZ(E.parent,E.text);return ae?[f0e(k,ae,"label",E.text,void 0)]:void 0}if(E.kind===107){const ae=Ua(E.parent,ve=>Ep(ve)?"quit":Vd(ve));return ae?[lV(k,ae)]:void 0}if(E.kind===135){const ae=Ua(E,we=>Vd(we));return ae&>(ae.modifiers,we=>we.kind===134)?[lV(k,ae)]:void 0}if(E.kind===127){const ae=Ua(E,we=>Vd(we));return ae&&ae.asteriskToken?[lV(k,ae)]:void 0}if(pW(E)&&Ep(E.parent)){const ae=E.parent.parent,{symbol:ve,failedAliasResolution:we}=nte(ae,k,u),Fe=gi(ae.members,Ep),et=ve?k.symbolToString(ve,ae):"",Pe=E.getSourceFile();return Vn(Fe,dt=>{let{pos:Ie}=Db(dt);return Ie=Ff(Pe.text,Ie),f0e(k,dt,"constructor","static {}",et,!1,we,{start:Ie,length:6})})}let{symbol:F,failedAliasResolution:$}=nte(E,k,u),J=E;if(c&&$){const ae=Ot([E,...(F==null?void 0:F.declarations)||Yn],we=>Ua(we,JMe)),ve=ae&&C7(ae);ve&&({symbol:F,failedAliasResolution:$}=nte(ve,k,u),J=ve)}if(!F&&WZ(J)){const ae=(d=e.getResolvedModule(n,J.text,PA(n,J)))==null?void 0:d.resolvedModule;if(ae)return[{name:J.text,fileName:ae.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:p1(0,0),failedAliasResolution:$,isAmbient:Zb(ae.resolvedFileName),unverified:J!==E}]}if(!F)return Hi(S,Kdt(E,k));if(c&&jr(F.declarations,ae=>ae.getSourceFile().fileName===n.fileName))return;const X=ept(k,E);if(X&&!(m1(E.parent)&&tpt(X))){const ae=lV(k,X,$);if(k.getRootSymbols(F).some(ve=>jdt(ve,X)))return[ae];{const ve=x4(k,F,E,$,X)||Yn;return E.kind===108?[ae,...ve]:[...ve,ae]}}if(E.parent.kind===304){const ae=k.getShorthandAssignmentValueSymbol(F.valueDeclaration),ve=ae!=null&&ae.declarations?ae.declarations.map(we=>jF(we,k,ae,E,!1,$)):Yn;return Hi(ve,_9e(k,E))}if(qg(E)&&sa(P)&&Ch(P.parent)&&E===(P.propertyName||P.name)){const ae=tq(E),ve=k.getTypeAtLocation(P.parent);return ae===void 0?Yn:ea(ve.isUnion()?ve.types:[ve],we=>{const Fe=we.getProperty(ae);return Fe&&x4(k,Fe,E)})}const ie=_9e(k,E);return Hi(S,ie.length?ie:x4(k,F,E,$))}function jdt(e,n){var i;return e===n.symbol||e===n.symbol.parent||Zv(n.parent)||!uR(n.parent)&&e===((i=to(n.parent,ck))==null?void 0:i.symbol)}function _9e(e,n){const i=Aee(n);if(i){const c=i&&e.getContextualType(i.parent);if(c)return ea(_le(i,e,c,!1),u=>x4(e,u,n))}return Yn}function Vdt(e,n){const i=Ua(n,J_);if(!(i&&i.name))return;const c=Ua(i,Fl);if(!c)return;const u=YC(c);if(!u)return;const d=rg(u.expression),h=v0(d)?d.symbol:e.getSymbolAtLocation(d);if(!h)return;const S=Ic(z8(i.name)),E=ev(i)?e.getPropertyOfType(e.getTypeOfSymbol(h),S):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(h),S);if(E)return x4(e,E,n)}function d9e(e,n,i){var c,u;const d=A4(e.referencedFiles,n);if(d){const E=i.getSourceFileFromReference(e,d);return E&&{reference:d,fileName:E.fileName,file:E,unverified:!1}}const h=A4(e.typeReferenceDirectives,n);if(h){const E=(c=i.getResolvedTypeReferenceDirectives().get(h.fileName,h.resolutionMode||e.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective,P=E&&i.getSourceFile(E.resolvedFileName);return P&&{reference:h,fileName:P.fileName,file:P,unverified:!1}}const S=A4(e.libReferenceDirectives,n);if(S){const E=i.getLibFileFromReference(S);return E&&{reference:S,fileName:E.fileName,file:E,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const E=MR(e,n);let P;if(WZ(E)&&Kv(E.text)&&(P=i.getResolvedModule(e,E.text,PA(e,E)))){const k=(u=P.resolvedModule)==null?void 0:u.resolvedFileName,F=k||PL(ws(e.fileName),E.text);return{file:i.getSourceFile(F),fileName:F,reference:{pos:E.getStart(),end:E.getEnd(),fileName:E.text},unverified:!k}}}}function Udt(e,n){const i=n.symbol.name;if(!d0e.has(i))return!1;const c=e.resolveName(i,void 0,788968,!1);return!!c&&c===n.target.symbol}function p9e(e,n){if(!n.aliasSymbol)return!1;const i=n.aliasSymbol.name;if(!d0e.has(i))return!1;const c=e.resolveName(i,void 0,788968,!1);return!!c&&c===n.aliasSymbol}function Hdt(e,n,i,c){var u,d;if(ji(n)&4&&Udt(e,n))return GF(e.getTypeArguments(n)[0],e,i,c);if(p9e(e,n)&&n.aliasTypeArguments)return GF(n.aliasTypeArguments[0],e,i,c);if(ji(n)&32&&n.target&&p9e(e,n.target)){const h=(d=(u=n.aliasSymbol)==null?void 0:u.declarations)==null?void 0:d[0];if(h&&z0(h)&&uE(h.type)&&h.type.typeArguments)return GF(e.getTypeAtLocation(h.type.typeArguments[0]),e,i,c)}return[]}function Jdt(e,n,i){const c=cS(n,i);if(c===n)return;if(gP(c.parent)&&c.parent.name===c)return GF(e.getTypeAtLocation(c.parent),e,c.parent,!1);const{symbol:u,failedAliasResolution:d}=nte(c,e,!1);if(!u)return;const h=e.getTypeOfSymbolAtLocation(u,c),S=$dt(u,h,e),E=S&&GF(S,e,c,d),[P,k]=E&&E.length!==0?[S,E]:[h,GF(h,e,c,d)];return k.length?[...Hdt(e,P,c,d),...k]:!(u.flags&111551)&&u.flags&788968?x4(e,dg(u,e),c,d):void 0}function GF(e,n,i,c){return ea(e.isUnion()&&!(e.flags&32)?e.types:[e],u=>u.symbol&&x4(n,u.symbol,i,c))}function $dt(e,n,i){if(n.symbol===e||e.valueDeclaration&&n.symbol&&Kc(e.valueDeclaration)&&e.valueDeclaration.initializer===n.symbol.valueDeclaration){const c=n.getCallSignatures();if(c.length===1)return i.getReturnTypeOfSignature(Dl(c))}}function qdt(e,n,i){const c=f9e(e,n,i);if(!c||c.length===0)return;const u=A4(n.referencedFiles,i)||A4(n.typeReferenceDirectives,i)||A4(n.libReferenceDirectives,i);if(u)return{definitions:c,textSpan:PP(u)};const d=cS(n,i),h=p1(d.getStart(),d.getWidth());return{definitions:c,textSpan:h}}function Kdt(e,n){return Qo(n.getIndexInfosAtLocation(e),i=>i.declaration&&lV(n,i.declaration))}function nte(e,n,i){const c=n.getSymbolAtLocation(e);let u=!1;if(c!=null&&c.declarations&&c.flags&2097152&&!i&&Xdt(e,c.declarations[0])){const d=n.getAliasedSymbol(c);if(d.declarations)return{symbol:d};u=!0}return{symbol:c,failedAliasResolution:u}}function Xdt(e,n){return e.kind!==80?!1:e.parent===n?!0:n.kind!==274}function Ydt(e){if(!eT(e))return!1;const n=Ua(e,i=>Zv(i)?!0:eT(i)?!1:"quit");return!!n&&jy(n)===5}function x4(e,n,i,c,u){const d=gi(n.declarations,F=>F!==u),h=gi(d,F=>!Ydt(F)),S=gt(h)?h:d;return E()||P()||Vn(S,F=>jF(F,e,n,i,!1,c));function E(){if(n.flags&32&&!(n.flags&19)&&(V$(i)||i.kind===137)){const F=lr(d,Fl)||re.fail("Expected declaration to have at least one class-like declaration");return k(F.members,!0)}}function P(){return yZ(i)||H$(i)?k(d,!1):void 0}function k(F,$){if(!F)return;const J=F.filter($?Lh:F_),X=J.filter(ie=>!!ie.body);return J.length?X.length!==0?X.map(ie=>jF(ie,e,n,i)):[jF(yl(J),e,n,i,!1,c)]:void 0}}function jF(e,n,i,c,u,d){const h=n.symbolToString(i),S=W6.getSymbolKind(n,i,c),E=i.parent?n.symbolToString(i.parent,c):"";return f0e(n,e,S,h,E,u,d)}function f0e(e,n,i,c,u,d,h,S){const E=n.getSourceFile();if(!S){const P=i_(n)||n;S=sT(P,E)}return{fileName:E.fileName,textSpan:S,kind:i,name:c,containerKind:void 0,containerName:u,...Wf.toContextSpan(S,E,Wf.getContextNode(n)),isLocal:!_0e(e,n),isAmbient:!!(n.flags&33554432),unverified:d,failedAliasResolution:h}}function _0e(e,n){if(e.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(J2(n.parent)&&n.parent.initializer===n)return _0e(e,n.parent);switch(n.kind){case 172:case 177:case 178:case 174:if(tT(n,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return _0e(e,n.parent);default:return!1}}function lV(e,n,i){return jF(n,e,n.symbol,n,!1,i)}function A4(e,n){return lr(e,i=>P8(i,n))}function Qdt(e,n,i){return{fileName:n,textSpan:Yy(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:i}}function Zdt(e){const n=Ua(e,c=>!sS(c)),i=n==null?void 0:n.parent;return i&&uR(i)&&nG(i)===n?i:void 0}function ept(e,n){const i=Zdt(n),c=i&&e.getResolvedSignature(i);return to(c&&c.declaration,u=>F_(u)&&!e0(u))}function tpt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var d0e,npt=G({"src/services/goToDefinition.ts"(){xl(),d0e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),C4={};Oe(C4,{createDefinitionInfo:()=>jF,findReferenceInPosition:()=>A4,getDefinitionAndBoundSpan:()=>qdt,getDefinitionAtPosition:()=>f9e,getReferenceAtPosition:()=>d9e,getTypeDefinitionAtPosition:()=>Jdt});var rpt=G({"src/services/_namespaces/ts.GoToDefinition.ts"(){npt()}});function ipt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function opt(e){return e.includeInlayParameterNameHints==="literals"}function vQe(e){return e.interactiveInlayHints===!0}function apt(e){const{file:n,program:i,span:c,cancellationToken:u,preferences:d}=e,h=n.text,S=i.getCompilerOptions(),E=OS(n,d),P=i.getTypeChecker(),k=[];return F(n),k;function F(Et){if(!(!Et||Et.getFullWidth()===0)){switch(Et.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:u.throwIfCancellationRequested()}if(Bz(c,Et.pos,Et.getFullWidth())&&!(pc(Et)&&!cC(Et)))return d.includeInlayVariableTypeHints&&Kc(Et)||d.includeInlayPropertyDeclarationTypeHints&&nu(Et)?we(Et):d.includeInlayEnumMemberValueHints&&pI(Et)?ae(Et):ipt(d)&&(xd(Et)||sb(Et))?Fe(Et):(d.includeInlayFunctionParameterTypeHints&&Vd(Et)&&YH(Et)&&Ct(Et),d.includeInlayFunctionLikeReturnTypeHints&&$(Et)&&Ie(Et)),s_(Et,F)}}function $(Et){return $m(Et)||Jm(Et)||mg(Et)||tm(Et)||lE(Et)}function J(Et,at,Qt,nn){let Rn=`${nn?"...":""}${Et}`,cn;vQe(d)?(cn=[Yt(Rn,at),{text:":"}],Rn=""):Rn+=":",k.push({text:Rn,position:Qt,kind:"Parameter",whitespaceAfter:!0,displayParts:cn})}function X(Et,at){k.push({text:typeof Et=="string"?`: ${Et}`:"",displayParts:typeof Et=="string"?void 0:[{text:": "},...Et],position:at,kind:"Type",whitespaceBefore:!0})}function ie(Et,at){k.push({text:`= ${Et}`,position:at,kind:"Enum",whitespaceBefore:!0})}function ae(Et){if(Et.initializer)return;const at=P.getConstantValue(Et);at!==void 0&&ie(at.toString(),Et.end)}function ve(Et){return Et.symbol&&Et.symbol.flags&1536}function we(Et){if(!Et.initializer||$_(Et.name)||Kc(Et)&&!It(Et)||Zy(Et))return;const Qt=P.getTypeAtLocation(Et);if(ve(Qt))return;const nn=Ke(Qt);if(nn){const Rn=typeof nn=="string"?nn:nn.map(qt=>qt.text).join("");if(d.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pN(Et.name.getText(),Rn))return;X(nn,Et.name.end)}}function Fe(Et){const at=Et.arguments;if(!at||!at.length)return;const Qt=[],nn=P.getResolvedSignatureForSignatureHelp(Et,Qt);if(!nn||!Qt.length)return;let Rn=0;for(const cn of at){const qt=rg(cn);if(opt(d)&&!dt(qt)){Rn++;continue}let Kt=0;if(WT(qt)){const Wr=P.getTypeAtLocation(qt.expression);if(P.isTupleType(Wr)){const{elementFlags:jt,fixedLength:En}=Wr.target;if(En===0)continue;const fr=Ho(jt,Vr=>!(Vr&1));(fr<0?En:fr)>0&&(Kt=fr<0?En:fr)}}const wr=P.getParameterIdentifierInfoAtPosition(nn,Rn);if(Rn=Rn+(Kt||1),wr){const{parameter:Wr,parameterName:jt,isRestParameter:En}=wr;if(!(d.includeInlayParameterNameHintsWhenArgumentMatchesName||!et(qt,jt))&&!En)continue;const Tr=Ic(jt);if(Pe(qt,Tr))continue;J(Tr,Wr,cn.getStart(),En)}}}function et(Et,at){return xn(Et)?Et.text===at:Ac(Et)?Et.name.text===at:!1}function Pe(Et,at){if(!H2(at,S.target,$9(n.scriptKind)))return!1;const Qt=JD(h,Et.pos);if(!(Qt!=null&&Qt.length))return!1;const nn=yke(at);return gt(Qt,Rn=>nn.test(h.substring(Rn.pos,Rn.end)))}function dt(Et){switch(Et.kind){case 224:{const at=Et.operand;return aR(at)||xn(at)&&d3(at.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const at=Et.escapedText;return st(at)||d3(at)}}return aR(Et)}function Ie(Et){if($m(Et)&&!qm(Et,21,n)||kS(Et)||!Et.body)return;const Qt=P.getSignatureFromDeclaration(Et);if(!Qt)return;const nn=P.getReturnTypeOfSignature(Qt);if(ve(nn))return;const Rn=Ke(nn);Rn&&X(Rn,ct(Et))}function ct(Et){const at=qm(Et,22,n);return at?at.end:Et.parameters.end}function Ct(Et){const at=P.getSignatureFromDeclaration(Et);if(at)for(let Qt=0;Qt{const Rn=P.typeToTypeNode(Et,void 0,71286784);re.assertIsDefined(Rn,"should always get typenode"),Qt.writeNode(4,Rn,n,nn)})}function Ke(Et){if(!vQe(d))return Ze(Et);const Qt=P.typeToTypeNode(Et,void 0,71286784);re.assertIsDefined(Qt,"should always get typenode");const nn=[];return Rn(Qt),nn;function Rn(Kt){if(!Kt)return;const wr=Cf(Kt.kind);if(wr){nn.push({text:wr});return}if(aR(Kt)){nn.push({text:qt(Kt)});return}switch(Kt.kind){case 80:const Wr=Kt,jt=Kr(Wr),En=Wr.symbol&&Wr.symbol.declarations&&Wr.symbol.declarations.length&&i_(Wr.symbol.declarations[0]);En?nn.push(Yt(jt,En)):nn.push({text:jt});break;case 166:const fr=Kt;Rn(fr.left),nn.push({text:"."}),Rn(fr.right);break;case 182:const Tr=Kt;Tr.assertsModifier&&nn.push({text:"asserts "}),Rn(Tr.parameterName),Tr.type&&(nn.push({text:" is "}),Rn(Tr.type));break;case 183:const Vr=Kt;Rn(Vr.typeName),Vr.typeArguments&&(nn.push({text:"<"}),cn(Vr.typeArguments,", "),nn.push({text:">"}));break;case 168:const Pn=Kt;Pn.modifiers&&cn(Pn.modifiers," "),Rn(Pn.name),Pn.constraint&&(nn.push({text:" extends "}),Rn(Pn.constraint)),Pn.default&&(nn.push({text:" = "}),Rn(Pn.default));break;case 169:const Fr=Kt;Fr.modifiers&&cn(Fr.modifiers," "),Fr.dotDotDotToken&&nn.push({text:"..."}),Rn(Fr.name),Fr.questionToken&&nn.push({text:"?"}),Fr.type&&(nn.push({text:": "}),Rn(Fr.type));break;case 185:const Ki=Kt;nn.push({text:"new "}),Ki.typeParameters&&(nn.push({text:"<"}),cn(Ki.typeParameters,", "),nn.push({text:">"})),nn.push({text:"("}),cn(Ki.parameters,", "),nn.push({text:")"}),nn.push({text:" => "}),Rn(Ki.type);break;case 186:const io=Kt;nn.push({text:"typeof "}),Rn(io.exprName),io.typeArguments&&(nn.push({text:"<"}),cn(io.typeArguments,", "),nn.push({text:">"}));break;case 187:const no=Kt;nn.push({text:"{"}),no.members.length&&(nn.push({text:" "}),cn(no.members,"; "),nn.push({text:" "})),nn.push({text:"}"});break;case 188:Rn(Kt.elementType),nn.push({text:"[]"});break;case 189:nn.push({text:"["}),cn(Kt.elements,", "),nn.push({text:"]"});break;case 202:const os=Kt;os.dotDotDotToken&&nn.push({text:"..."}),Rn(os.name),os.questionToken&&nn.push({text:"?"}),nn.push({text:": "}),Rn(os.type);break;case 190:Rn(Kt.type),nn.push({text:"?"});break;case 191:nn.push({text:"..."}),Rn(Kt.type);break;case 192:cn(Kt.types," | ");break;case 193:cn(Kt.types," & ");break;case 194:const Mo=Kt;Rn(Mo.checkType),nn.push({text:" extends "}),Rn(Mo.extendsType),nn.push({text:" ? "}),Rn(Mo.trueType),nn.push({text:" : "}),Rn(Mo.falseType);break;case 195:nn.push({text:"infer "}),Rn(Kt.typeParameter);break;case 196:nn.push({text:"("}),Rn(Kt.type),nn.push({text:")"});break;case 198:const $i=Kt;nn.push({text:`${Cf($i.operator)} `}),Rn($i.type);break;case 199:const ki=Kt;Rn(ki.objectType),nn.push({text:"["}),Rn(ki.indexType),nn.push({text:"]"});break;case 200:const gc=Kt;nn.push({text:"{ "}),gc.readonlyToken&&(gc.readonlyToken.kind===40?nn.push({text:"+"}):gc.readonlyToken.kind===41&&nn.push({text:"-"}),nn.push({text:"readonly "})),nn.push({text:"["}),Rn(gc.typeParameter),gc.nameType&&(nn.push({text:" as "}),Rn(gc.nameType)),nn.push({text:"]"}),gc.questionToken&&(gc.questionToken.kind===40?nn.push({text:"+"}):gc.questionToken.kind===41&&nn.push({text:"-"}),nn.push({text:"?"})),nn.push({text:": "}),gc.type&&Rn(gc.type),nn.push({text:"; }"});break;case 201:Rn(Kt.literal);break;case 184:const Wl=Kt;Wl.typeParameters&&(nn.push({text:"<"}),cn(Wl.typeParameters,", "),nn.push({text:">"})),nn.push({text:"("}),cn(Wl.parameters,", "),nn.push({text:")"}),nn.push({text:" => "}),Rn(Wl.type);break;case 205:const Jc=Kt;Jc.isTypeOf&&nn.push({text:"typeof "}),nn.push({text:"import("}),Rn(Jc.argument),Jc.assertions&&(nn.push({text:", { assert: "}),cn(Jc.assertions.assertClause.elements,", "),nn.push({text:" }"})),nn.push({text:")"}),Jc.qualifier&&(nn.push({text:"."}),Rn(Jc.qualifier)),Jc.typeArguments&&(nn.push({text:"<"}),cn(Jc.typeArguments,", "),nn.push({text:">"}));break;case 171:const au=Kt;au.modifiers&&cn(au.modifiers," "),Rn(au.name),au.questionToken&&nn.push({text:"?"}),au.type&&(nn.push({text:": "}),Rn(au.type));break;default:re.failBadSyntaxKind(Kt)}}function cn(Kt,wr){Kt.forEach((Wr,jt)=>{jt>0&&nn.push({text:wr}),Rn(Wr)})}function qt(Kt){return Sd(Kt)?E===0?`'${Q8(Kt.text,39)}'`:`"${Q8(Kt.text,34)}"`:Kt.text}}function st(Et){return Et==="undefined"}function It(Et){if((X8(Et)||Kc(Et)&&rH(Et))&&Et.initializer){const at=rg(Et.initializer);return!(dt(at)||sb(at)||el(at)||f7(at))}return!0}function Yt(Et,at){const Qt=at.getSourceFile();return{text:Et,span:sT(at,Qt),file:Qt.fileName}}}var yke,bQe=G({"src/services/inlayHints.ts"(){xl(),yke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),vke={};Oe(vke,{provideInlayHints:()=>apt});var m9e=G({"src/services/_namespaces/ts.InlayHints.ts"(){bQe()}});function spt(e,n){const i=[];return hE(e,c=>{for(const u of lpt(c)){const d=uC(u)&&u.tags&&lr(u.tags,S=>S.kind===334&&(S.tagName.escapedText==="inheritDoc"||S.tagName.escapedText==="inheritdoc"));if(u.comment===void 0&&!d||uC(u)&&c.kind!==353&&c.kind!==345&&u.tags&&u.tags.some(S=>S.kind===353||S.kind===345)&&!u.tags.some(S=>S.kind===348||S.kind===349))continue;let h=u.comment?Bq(u.comment,n):[];d&&d.comment&&(h=h.concat(Bq(d.comment,n))),ni(i,h,cpt)||i.push(h)}}),Gf(Zi(i,[Nj()]))}function cpt(e,n){return sf(e,n,(i,c)=>i.kind===c.kind&&i.text===c.text)}function lpt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(aF(e.parent))return[e.parent.parent];default:return fH(e)}}function upt(e,n){const i=[];return hE(e,c=>{const u=WM(c);if(!(u.some(d=>d.kind===353||d.kind===345)&&!u.some(d=>d.kind===348||d.kind===349)))for(const d of u)i.push({name:d.tagName.text,text:uV(d,n)}),Vz(d)&&d.isNameFirst&&d.typeExpression&&oF(d.typeExpression.type)&&Ot(d.typeExpression.type.jsDocPropertyTags,h=>{i.push({name:h.tagName.text,text:uV(h,n)})})}),i}function Bq(e,n){return typeof e=="string"?[lS(e)]:ea(e,i=>i.kind===328?[lS(i.text)]:wAe(i,n))}function uV(e,n){const{comment:i,kind:c}=e,u=fpt(c);switch(c){case 356:const S=e.typeExpression;return S?d(S):i===void 0?void 0:Bq(i,n);case 336:return d(e.class);case 335:return d(e.class);case 352:const E=e,P=[];if(E.constraint&&P.push(lS(E.constraint.getText())),Nt(E.typeParameters)){Nt(P)&&P.push(qh());const F=E.typeParameters[E.typeParameters.length-1];Ot(E.typeParameters,$=>{P.push(u($.getText())),F!==$&&P.push(D1(28),qh())})}return i&&P.push(qh(),...Bq(i,n)),P;case 351:case 357:return d(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=e;return k?d(k):i===void 0?void 0:Bq(i,n);default:return i===void 0?void 0:Bq(i,n)}function d(S){return h(S.getText())}function h(S){return i?S.match(/^https?$/)?[lS(S),...Bq(i,n)]:[u(S),qh(),...Bq(i,n)]:[lS(S)]}}function fpt(e){switch(e){case 348:return w8e;case 355:return R8e;case 352:return GZ;case 353:case 345:return w6;default:return lS}}function _pt(){return bke||(bke=Vn(h9e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function dpt(){return y9e||(y9e=Vn(h9e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function TQe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[lS(e)],documentation:Yn,tags:void 0,codeActions:void 0}}function SQe(e){if(!xn(e.name))return Yn;const n=e.name.text,i=e.parent,c=i.parent;return F_(c)?Qo(c.parameters,u=>{if(!xn(u.name))return;const d=u.name.text;if(!(i.tags.some(h=>h!==e&&A2(h)&&xn(h.name)&&h.name.escapedText===d)||n!==void 0&&!qf(d,n)))return{name:d,kind:"parameter",kindModifiers:"",sortText:ow.SortText.LocationPriority}}):[]}function ppt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[lS(e)],documentation:Yn,tags:void 0,codeActions:void 0}}function mpt(e,n,i,c){const u=Lf(n,i),d=Ua(u,uC);if(d&&(d.comment!==void 0||Nt(d.tags)))return;const h=u.getStart(n);if(!d&&h0;if(ie&&!we){const Fe=ae+e+J+" * ",et=h===i?e+J:"";return{newText:Fe+e+ie+J+ve+et,caretOffset:Fe.length}}return{newText:ae+ve,caretOffset:3}}function gpt(e,n){const{text:i}=e,c=Ux(n,e);let u=c;for(;u<=n&&q1(i.charCodeAt(u));u++);return i.slice(c,u)}function hpt(e,n,i,c){return e.map(({name:u,dotDotDotToken:d},h)=>{const S=u.kind===80?u.text:"param"+h;return`${i} * @param ${n?d?"{...any} ":"{any} ":""}${S}${c}`}).join("")}function ypt(e,n){return`${e} * @returns${n}`}function vpt(e,n){return qTe(e,i=>g9e(i,n))}function g9e(e,n){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const i=e;return{commentOwner:e,parameters:i.parameters,hasReturn:rte(i,n)};case 303:return g9e(e.initializer,n);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const u=e;return u.type&&e0(u.type)?{commentOwner:e,parameters:u.type.parameters,hasReturn:rte(u.type,n)}:{commentOwner:e}}case 243:{const d=e.declarationList.declarations,h=d.length===1&&d[0].initializer?p0e(d[0].initializer):void 0;return h?{commentOwner:e,parameters:h.parameters,hasReturn:rte(h,n)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return g9e(e.expression,n);case 226:{const u=e;return jy(u)===0?"quit":F_(u.right)?{commentOwner:e,parameters:u.right.parameters,hasReturn:rte(u.right,n)}:{commentOwner:e}}case 172:const c=e.initializer;if(c&&(Jm(c)||$m(c)))return{commentOwner:e,parameters:c.parameters,hasReturn:rte(c,n)}}}function rte(e,n){return!!(n!=null&&n.generateReturnInDocTemplate)&&(e0(e)||$m(e)&&kr(e.body)||Vd(e)&&e.body&&Ou(e.body)&&!!dR(e.body,i=>i))}function p0e(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return lr(e.members,Lh)}}var h9e,bke,y9e,v9e,EQe=G({"src/services/jsDoc.ts"(){xl(),h9e=["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"],v9e=TQe}}),nO={};Oe(nO,{getDocCommentTemplateAtPosition:()=>mpt,getJSDocParameterNameCompletionDetails:()=>ppt,getJSDocParameterNameCompletions:()=>SQe,getJSDocTagCompletionDetails:()=>TQe,getJSDocTagCompletions:()=>dpt,getJSDocTagNameCompletionDetails:()=>v9e,getJSDocTagNameCompletions:()=>_pt,getJsDocCommentsFromDeclarations:()=>spt,getJsDocTagsFromDeclarations:()=>upt});var VF=G({"src/services/_namespaces/ts.JsDoc.ts"(){EQe()}});function bpt(e,n,i,c,u,d){const h=zs.ChangeTracker.fromContext({host:i,formatContext:n,preferences:u}),S=d==="SortAndCombine"||d==="All",E=S,P=d==="RemoveUnused"||d==="All",k=Tke(e,e.statements.filter(n0)),F=jq(u,S?()=>CQe(k,u)===2:void 0),$=X=>(P&&(X=Tpt(X,e,c)),E&&(X=xQe(X,F,e)),S&&(X=nh(X,(ie,ae)=>x9e(ie,ae,F))),X);k.forEach(X=>J(X,$)),d!=="RemoveUnused"&&Ipt(e).forEach(X=>J(X,ie=>b9e(ie,F)));for(const X of e.statements.filter(dh)){if(!X.body)continue;if(Tke(e,X.body.statements.filter(n0)).forEach(ae=>J(ae,$)),d!=="RemoveUnused"){const ae=X.body.statements.filter(ry);J(ae,ve=>b9e(ve,F))}}return h.getChanges();function J(X,ie){if(Nt(X)===0)return;_s(X[0],1024);const ae=E?BD(X,Fe=>m0e(Fe.moduleSpecifier)):[X],ve=S?nh(ae,(Fe,et)=>S9e(Fe[0].moduleSpecifier,et[0].moduleSpecifier,F)):ae,we=ea(ve,Fe=>m0e(Fe[0].moduleSpecifier)||Fe[0].moduleSpecifier===void 0?ie(Fe):Fe);if(we.length===0)h.deleteNodes(e,X,{leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Include},!0);else{const Fe={leadingTriviaOption:zs.LeadingTriviaOption.Exclude,trailingTriviaOption:zs.TrailingTriviaOption.Include,suffix:R6(i,n.options)};h.replaceNodeWithNodes(e,X[0],we,Fe);const et=h.nodeHasTrailingComment(e,X[0],Fe);h.deleteNodes(e,X.slice(1),{trailingTriviaOption:zs.TrailingTriviaOption.Include},et)}}}function Tke(e,n){const i=CS(e.languageVersion,!1,e.languageVariant),c=[];let u=0;for(const d of n)c[u]&&Ske(e,d,i)&&u++,c[u]||(c[u]=[]),c[u].push(d);return c}function Ske(e,n,i){const c=n.getFullStart(),u=n.getStart();i.setText(e.text,c,u-c);let d=0;for(;i.getTokenStart()=2))return!0;return!1}function Tpt(e,n,i){const c=i.getTypeChecker(),u=i.getCompilerOptions(),d=c.getJsxNamespace(n),h=c.getJsxFragmentFactory(n),S=!!(n.transformFlags&2),E=[];for(const k of e){const{importClause:F,moduleSpecifier:$}=k;if(!F){E.push(k);continue}let{name:J,namedBindings:X}=F;if(J&&!P(J)&&(J=void 0),X)if(mh(X))P(X.name)||(X=void 0);else{const ie=X.elements.filter(ae=>P(ae.name));ie.lengthSd(c)&&c.text===i)}function m0e(e){return e!==void 0&&Cm(e)?e.text:void 0}function g0e(e,n,i){const c=xke(n);return xQe(e,c,i)}function xQe(e,n,i){if(e.length===0)return e;const{importWithoutClause:c,typeOnlyImports:u,regularImports:d}=AQe(e),h=[];c&&h.push(c);for(const S of[d,u]){const E=S===u,{defaultImports:P,namespaceImports:k,namedImports:F}=S;if(!E&&P.length===1&&k.length===1&&F.length===0){const et=P[0];h.push(zq(et,et.importClause.name,k[0].importClause.namedBindings));continue}const $=nh(k,(et,Pe)=>n(et.importClause.namedBindings.name.text,Pe.importClause.namedBindings.name.text));for(const et of $)h.push(zq(et,void 0,et.importClause.namedBindings));const J=pp(P),X=pp(F),ie=J??X;if(!ie)continue;let ae;const ve=[];if(P.length===1)ae=P[0].importClause.name;else for(const et of P)ve.push(he.createImportSpecifier(!1,he.createIdentifier("default"),et.importClause.name));ve.push(...kQe(F));const we=he.createNodeArray(ite(ve,n),X==null?void 0:X.importClause.namedBindings.elements.hasTrailingComma),Fe=we.length===0?ae?void 0:he.createNamedImports(Yn):X?he.updateNamedImports(X.importClause.namedBindings,we):he.createNamedImports(we);i&&Fe&&(X!=null&&X.importClause.namedBindings)&&!mk(X.importClause.namedBindings,i)&&_s(Fe,2),E&&ae&&Fe?(h.push(zq(ie,ae,void 0)),h.push(zq(X??ie,void 0,Fe))):h.push(zq(ie,ae,Fe))}return h}function AQe(e){let n;const i={defaultImports:[],namespaceImports:[],namedImports:[]},c={defaultImports:[],namespaceImports:[],namedImports:[]};for(const u of e){if(u.importClause===void 0){n=n||u;continue}const d=u.importClause.isTypeOnly?i:c,{name:h,namedBindings:S}=u.importClause;h&&d.defaultImports.push(u),S&&(mh(S)?d.namespaceImports.push(u):d.namedImports.push(u))}return{importWithoutClause:n,typeOnlyImports:i,regularImports:c}}function Ept(e,n){const i=xke(n);return b9e(e,i)}function b9e(e,n){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:c,typeOnlyExports:u}=h(e),d=[];i&&d.push(i);for(const S of[c,u]){if(S.length===0)continue;const E=[];E.push(...ea(S,F=>F.exportClause&&j0(F.exportClause)?F.exportClause.elements:Yn));const P=ite(E,n),k=S[0];d.push(he.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(j0(k.exportClause)?he.updateNamedExports(k.exportClause,P):he.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return d;function h(S){let E;const P=[],k=[];for(const F of S)F.exportClause===void 0?E=E||F:F.isTypeOnly?k.push(F):P.push(F);return{exportWithoutClause:E,namedExports:P,typeOnlyExports:k}}}function zq(e,n,i){return he.updateImportDeclaration(e,e.modifiers,he.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,i),e.moduleSpecifier,e.attributes)}function ite(e,n){return nh(e,(i,c)=>Eke(i,c,n))}function Eke(e,n,i){return Z0(e.isTypeOnly,n.isTypeOnly)||i(e.name.text,n.name.text)}function T9e(e,n,i){const c=xke(!!i);return S9e(e,n,c)}function S9e(e,n,i){const c=e===void 0?void 0:m0e(e),u=n===void 0?void 0:m0e(n);return Z0(c===void 0,u===void 0)||Z0(Kv(c),Kv(u))||i(c,u)}function h0e(e){var n;switch(e.kind){case 271:return(n=to(e.moduleReference,KE))==null?void 0:n.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function E9e(e,n){return CQe(Tke(e,e.statements.filter(n0)),n)}function CQe(e,n){const i=Gq(n,!1),c=Gq(n,!0);let u=3,d=!1;for(const h of e){if(h.length>1){const E=Qp(h,P=>{var k;return((k=to(P.moduleSpecifier,Sd))==null?void 0:k.text)??""},i,c);if(E&&(u&=E,d=!0),!u)return u}const S=lr(h,E=>{var P,k;return((k=to((P=E.importClause)==null?void 0:P.namedBindings,Oy))==null?void 0:k.elements.length)>1});if(S){const E=Cke(S.importClause.namedBindings.elements,n);if(E&&(u&=E,d=!0),!u)return u}if(u!==3)return u}return d?0:u}function DQe(e,n){const i=Gq(n,!1),c=Gq(n,!0);return Qp(e,u=>m0e(h0e(u))||"",i,c)}function xpt(e,n,i){const c=ZS(e,n,Of,(u,d)=>x9e(u,d,i));return c<0?~c:c}function Apt(e,n,i){const c=ZS(e,n,Of,(u,d)=>Eke(u,d,i));return c<0?~c:c}function x9e(e,n,i){return S9e(h0e(e),h0e(n),i)||A9e(e,n)}function A9e(e,n){return pf(IQe(e),IQe(n))}function IQe(e){var n;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((n=e.importClause.namedBindings)==null?void 0:n.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function kQe(e){return ea(e,n=>Vn(Cpt(n),i=>i.name&&i.propertyName&&i.name.escapedText===i.propertyName.escapedText?he.updateImportSpecifier(i,i.isTypeOnly,void 0,i.name):i))}function Cpt(e){var n;return(n=e.importClause)!=null&&n.namedBindings&&Oy(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function xke(e){return e?rP:Fp}function Ake(e,n){const i=Dpt(n),c=n.organizeImportsCaseFirst??!1,u=n.organizeImportsNumericCollation??!1,d=n.organizeImportsAccentCollation??!0,h=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(i,{usage:"sort",caseFirst:c||"false",sensitivity:h,numeric:u}).compare}function Dpt(e){let n=e.organizeImportsLocale;n==="auto"&&(n=dTe()),n===void 0&&(n="en");const i=Intl.Collator.supportedLocalesOf(n);return i.length?i[0]:"en"}function Gq(e,n){return(e.organizeImportsCollation??"ordinal")==="unicode"?Ake(n,e):xke(n)}function jq(e,n){const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(n==null?void 0:n())??!1;return Gq(e,i)}function Ipt(e){const n=[],i=e.statements,c=Nt(i);let u=0,d=0;for(;uTke(e,h))}var PQe,Cke,C9e=G({"src/services/organizeImports.ts"(){xl(),PQe=class{has([e,n]){return this._lastPreferences!==n||!this._cache?!1:this._cache.has(e)}get([e,n]){if(!(this._lastPreferences!==n||!this._cache))return this._cache.get(e)}set([e,n],i){this._lastPreferences!==n&&(this._lastPreferences=n,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,i)}},Cke=JO((e,n)=>{if(!_A(e,(u,d)=>Z0(u.isTypeOnly,d.isTypeOnly)))return 0;const i=Gq(n,!1),c=Gq(n,!0);return Qp(e,u=>u.name.text,i,c)},new PQe)}}),lD={};Oe(lD,{coalesceExports:()=>Ept,coalesceImports:()=>g0e,compareImportOrExportSpecifiers:()=>Eke,compareImportsOrRequireStatements:()=>x9e,compareModuleSpecifiers:()=>T9e,detectImportDeclarationSorting:()=>DQe,detectImportSpecifierSorting:()=>Cke,detectSorting:()=>E9e,getImportDeclarationInsertionIndex:()=>xpt,getImportSpecifierInsertionIndex:()=>Apt,getOrganizeImportsComparer:()=>Gq,organizeImports:()=>bpt});var CI=G({"src/services/_namespaces/ts.OrganizeImports.ts"(){C9e()}});function kpt(e,n){const i=[];return Ppt(e,n,i),Npt(e,i),i.sort((c,u)=>c.textSpan.start-u.textSpan.start)}function Ppt(e,n,i){let c=40,u=0;const d=[...e.statements,e.endOfFileToken],h=d.length;for(;u1&&c.push(pue(d,h,"comment"))}}function Ike(e,n,i,c){SR(e)||Dke(e.pos,n,i,c)}function pue(e,n,i){return rO(Yy(e,n),i)}function y0e(e,n){switch(e.kind){case 241:if(F_(e.parent))return wpt(e.parent,e,n);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(e.parent);case 258:const J=e.parent;if(J.tryBlock===e)return k(e.parent);if(J.finallyBlock===e){const X=qm(J,98,n);if(X)return k(X)}default:return rO(sT(e,n),"code")}case 268:return k(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(e);case 189:return k(e,!1,!gW(e.parent),23);case 296:case 297:return F(e.statements);case 210:return P(e);case 209:return P(e,23);case 284:return d(e);case 288:return h(e);case 285:case 286:return S(e.attributes);case 228:case 15:return E(e);case 207:return k(e,!1,!sa(e.parent),23);case 219:return u(e);case 213:return c(e);case 217:return $(e);case 275:case 279:case 300:return i(e)}function i(J){if(!J.elements.length)return;const X=qm(J,19,n),ie=qm(J,20,n);if(!(!X||!ie||mv(X.pos,ie.pos,n)))return kke(X,ie,J,n,!1,!1)}function c(J){if(!J.arguments.length)return;const X=qm(J,21,n),ie=qm(J,22,n);if(!(!X||!ie||mv(X.pos,ie.pos,n)))return kke(X,ie,J,n,!1,!0)}function u(J){if(Ou(J.body)||fE(J.body)||mv(J.body.getFullStart(),J.body.getEnd(),n))return;const X=Yy(J.body.getFullStart(),J.body.getEnd());return rO(X,"code",sT(J))}function d(J){const X=Yy(J.openingElement.getStart(n),J.closingElement.getEnd()),ie=J.openingElement.tagName.getText(n),ae="<"+ie+">...";return rO(X,"code",X,!1,ae)}function h(J){const X=Yy(J.openingFragment.getStart(n),J.closingFragment.getEnd());return rO(X,"code",X,!1,"<>...")}function S(J){if(J.properties.length!==0)return pue(J.getStart(n),J.getEnd(),"code")}function E(J){if(!(J.kind===15&&J.text.length===0))return pue(J.getStart(n),J.getEnd(),"code")}function P(J,X=19){return k(J,!1,!Ed(J.parent)&&!xd(J.parent),X)}function k(J,X=!1,ie=!0,ae=19,ve=ae===19?20:24){const we=qm(e,ae,n),Fe=qm(e,ve,n);return we&&Fe&&kke(we,Fe,J,n,X,ie)}function F(J){return J.length?rO(PP(J),"code"):void 0}function $(J){if(mv(J.getStart(),J.getEnd(),n))return;const X=Yy(J.getStart(),J.getEnd());return rO(X,"code",sT(J))}}function wpt(e,n,i){const c=fV(e,n,i),u=qm(n,20,i);return c&&u&&kke(c,u,e,i,e.kind!==219)}function kke(e,n,i,c,u=!1,d=!0){const h=Yy(d?e.getFullStart():e.getStart(c),n.getEnd());return rO(h,"code",sT(i,c),u)}function rO(e,n,i=e,c=!1,u="..."){return{textSpan:e,kind:n,hintSpan:i,bannerText:u,autoCollapse:c}}function fV(e,n,i){if(ASe(e.parameters,i)){const c=qm(e,21,i);if(c)return c}return qm(n,19,i)}var wQe,RQe=G({"src/services/outliningElementsCollector.ts"(){xl(),wQe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Pke={};Oe(Pke,{collectElements:()=>kpt});var D9e=G({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){RQe()}});function Rpt(e,n,i,c){const u=DZ(cS(n,i));if(OQe(u)){const d=Mpt(u,e.getTypeChecker(),n,e,c);if(d)return d}return mue(N.You_cannot_rename_this_element)}function Mpt(e,n,i,c,u){const d=n.getSymbolAtLocation(e);if(!d){if(Cm(e)){const $=bf(e,n);if($&&($.flags&128||$.flags&1048576&&jr($.types,J=>!!(J.flags&128))))return I9e(e.text,e.text,"string","",e,i)}else if(m4(e)){const $=Lv(e);return I9e($,$,"label","",e,i)}return}const{declarations:h}=d;if(!h||h.length===0)return;if(h.some($=>Lpt(c,$)))return mue(N.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(xn(e)&&e.escapedText==="default"&&d.parent&&d.parent.flags&1536)return;if(Cm(e)&&N9(e))return u.allowRenameOfImportPath?LQe(e,i,d):void 0;const S=Opt(i,d,n,u);if(S)return mue(S);const E=W6.getSymbolKind(n,d,e),P=J3(e)||Ox(e)&&e.parent.kind===167?S2(K2(e)):void 0,k=P||n.symbolToString(d),F=P||n.getFullyQualifiedName(d);return I9e(k,F,E,W6.getSymbolModifiers(n,d),e,i)}function Lpt(e,n){const i=n.getSourceFile();return e.isSourceFileDefaultLibrary(i)&&mm(i.fileName,".d.ts")}function Opt(e,n,i,c){if(!c.providePrefixAndSuffixTextForRename&&n.flags&2097152){const h=n.declarations&&lr(n.declarations,S=>qE(S));h&&!h.propertyName&&(n=i.getAliasedSymbol(n))}const{declarations:u}=n;if(!u)return;const d=MQe(e.path);if(d===void 0)return gt(u,h=>KZ(h.getSourceFile().path))?N.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const h of u){const S=MQe(h.getSourceFile().path);if(S){const E=Math.min(d.length,S.length);for(let P=0;P<=E;P++)if(Fp(d[P],S[P])!==0)return N.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function MQe(e){const n=qc(e),i=n.lastIndexOf("node_modules");if(i!==-1)return n.slice(0,i+2)}function LQe(e,n,i){if(!Kv(e.text))return mue(N.You_cannot_rename_a_module_via_a_global_import);const c=i.declarations&&lr(i.declarations,Nu);if(!c)return;const u=h_(e.text,"/index")||h_(e.text,"/index.js")?void 0:K5(wg(c.fileName),"/index"),d=u===void 0?c.fileName:u,h=u===void 0?"module":"directory",S=e.text.lastIndexOf("/")+1,E=p1(e.getStart(n)+1+S,e.text.length-S);return{canRename:!0,fileToRename:d,kind:h,displayName:d,fullDisplayName:d,kindModifiers:"",triggerSpan:E}}function I9e(e,n,i,c,u,d){return{canRename:!0,fileToRename:void 0,kind:i,displayName:e,fullDisplayName:n,kindModifiers:c,triggerSpan:Nke(u,d)}}function mue(e){return{canRename:!1,localizedErrorMessage:fs(e)}}function Nke(e,n){let i=e.getStart(n),c=e.getWidth(n);return Cm(e)&&(i+=1,c-=2),p1(i,c)}function OQe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return xZ(e);default:return!1}}var FQe=G({"src/services/rename.ts"(){xl()}}),v0e={};Oe(v0e,{getRenameInfo:()=>Rpt,nodeIsEligibleForRename:()=>OQe});var wke=G({"src/services/_namespaces/ts.Rename.ts"(){FQe()}});function Fpt(e,n,i,c,u){const d=e.getTypeChecker(),h=Xse(n,i);if(!h)return;const S=!!c&&c.kind==="characterTyped";if(S&&(V3(n,i,h)||tw(n,i)))return;const E=!!c&&c.kind==="invoked",P=qpt(h,i,n,d,E);if(!P)return;u.throwIfCancellationRequested();const k=Wpt(P,d,n,h,S);return u.throwIfCancellationRequested(),k?d.runWithCancellationToken(u,F=>k.kind===0?R9e(k.candidates,k.resolvedSignature,P,n,F):JQe(k.symbol,P,n,F)):Gy(n)?zpt(P,e,u):void 0}function Wpt({invocation:e,argumentCount:n},i,c,u,d){switch(e.kind){case 0:{if(d&&!Bpt(u,e.node,c))return;const h=[],S=i.getResolvedSignatureForSignatureHelp(e.node,h,n);return h.length===0?void 0:{kind:0,candidates:h,resolvedSignature:S}}case 1:{const{called:h}=e;if(d&&!WQe(u,c,xn(h)?h.parent:h))return;const S=Uge(h,n,i);if(S.length!==0)return{kind:0,candidates:S,resolvedSignature:Dl(S)};const E=i.getSymbolAtLocation(h);return E&&{kind:1,symbol:E}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return re.assertNever(e)}}function Bpt(e,n,i){if(!sk(n))return!1;const c=n.getChildren(i);switch(e.kind){case 21:return ni(c,e);case 28:{const u=$se(e);return!!u&&ni(c,u)}case 30:return WQe(e,i,n.expression);default:return!1}}function zpt(e,n,i){if(e.invocation.kind===2)return;const c=HQe(e.invocation),u=Ac(c)?c.name.text:void 0,d=n.getTypeChecker();return u===void 0?void 0:Yr(n.getSourceFiles(),h=>Yr(h.getNamedDeclarations().get(u),S=>{const E=S.symbol&&d.getTypeOfSymbolAtLocation(S.symbol,S),P=E&&E.getCallSignatures();if(P&&P.length)return d.runWithCancellationToken(i,k=>R9e(P,P[0],e,h,k,!0))}))}function WQe(e,n,i){const c=e.getFullStart();let u=e.parent;for(;u;){const d=bv(c,n,u,!0);if(d)return ov(i,d);u=u.parent}return re.fail("Could not find preceding token")}function BQe(e,n,i){const c=jQe(e,n,i);return!c||c.isTypeParameterList||c.invocation.kind!==0?void 0:{invocation:c.invocation.node,argumentCount:c.argumentCount,argumentIndex:c.argumentIndex}}function zQe(e,n,i){const c=GQe(e,i);if(!c)return;const{list:u,argumentIndex:d}=c,h=Hpt(u,V3(i,n,e));d!==0&&re.assertLessThan(d,h);const S=N9e(u,i);return{list:u,argumentIndex:d,argumentCount:h,argumentsSpan:S}}function GQe(e,n){if(e.kind===30||e.kind===21)return{list:Kpt(e.parent,e,n),argumentIndex:0};{const i=$se(e);return i&&{list:i,argumentIndex:Upt(i,e)}}}function jQe(e,n,i){const{parent:c}=e;if(sk(c)){const u=c,d=zQe(e,n,i);if(!d)return;const{list:h,argumentIndex:S,argumentCount:E,argumentsSpan:P}=d;return{isTypeParameterList:!!c.typeArguments&&c.typeArguments.pos===h.pos,invocation:{kind:0,node:u},argumentsSpan:P,argumentIndex:S,argumentCount:E}}else{if(K7(e)&&Dm(c))return Y$(e,n,i)?P9e(c,0,i):void 0;if(X7(e)&&c.parent.kind===215){const u=c,d=u.parent;re.assert(u.kind===228);const h=Y$(e,n,i)?0:1;return P9e(d,h,i)}else if(Dh(c)&&Dm(c.parent.parent)){const u=c,d=c.parent.parent;if(woe(e)&&!Y$(e,n,i))return;const h=u.parent.templateSpans.indexOf(u),S=Jpt(h,e,n,i);return P9e(d,S,i)}else if(m1(c)){const u=c.attributes.pos,d=Ff(i.text,c.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:c},argumentsSpan:p1(u,d-u),argumentIndex:0,argumentCount:1}}else{const u=K$(e,i);if(u){const{called:d,nTypeArguments:h}=u,S={kind:1,called:d},E=Yy(d.getStart(i),e.end);return{isTypeParameterList:!0,invocation:S,argumentsSpan:E,argumentIndex:h,argumentCount:h+1}}return}}}function VQe(e,n,i,c){return k9e(e,n,i,c)||jQe(e,n,i)}function UQe(e){return Ds(e.parent)?UQe(e.parent):e}function Rke(e){return Ds(e.left)?Rke(e.left)+1:2}function k9e(e,n,i,c){const u=Gpt(e);if(u===void 0)return;const d=jpt(u,i,n,c);if(d===void 0)return;const{contextualType:h,argumentIndex:S,argumentCount:E,argumentsSpan:P}=d,k=h.getNonNullableType(),F=k.symbol;if(F===void 0)return;const $=Yf(k.getCallSignatures());return $===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:$,node:e,symbol:Vpt(F)},argumentsSpan:P,argumentIndex:S,argumentCount:E}}function Gpt(e){switch(e.kind){case 21:case 28:return e;default:return Ua(e.parent,n=>Os(n)?!0:sa(n)||Ch(n)||Wd(n)?!1:"quit")}}function jpt(e,n,i,c){const{parent:u}=e;switch(u.kind){case 217:case 174:case 218:case 219:const d=zQe(e,i,n);if(!d)return;const{argumentIndex:h,argumentCount:S,argumentsSpan:E}=d,P=tm(u)?c.getContextualTypeForObjectLiteralElement(u):c.getContextualType(u);return P&&{contextualType:P,argumentIndex:h,argumentCount:S,argumentsSpan:E};case 226:{const k=UQe(u),F=c.getContextualType(k),$=e.kind===21?0:Rke(u)-1,J=Rke(k);return F&&{contextualType:F,argumentIndex:$,argumentCount:J,argumentsSpan:sT(u)}}default:return}}function Vpt(e){return e.name==="__type"&&Yr(e.declarations,n=>{var i;return e0(n)?(i=to(n.parent,ck))==null?void 0:i.symbol:void 0})||e}function Upt(e,n){let i=0;for(const c of e.getChildren()){if(c===n)break;c.kind!==28&&i++}return i}function Hpt(e,n){const i=e.getChildren();let c=dp(i,u=>u.kind!==28);return!n&&i.length>0&&yl(i).kind===28&&c++,c}function Jpt(e,n,i,c){return re.assert(i>=n.getStart(),"Assumed 'position' could not occur before node."),L8(n)?Y$(n,i,c)?0:e+2:e+1}function P9e(e,n,i){const c=K7(e.template)?1:e.template.templateSpans.length+1;return n!==0&&re.assertLessThan(n,c),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:$pt(e,i),argumentIndex:n,argumentCount:c}}function N9e(e,n){const i=e.getFullStart(),c=Ff(n.text,e.getEnd(),!1);return p1(i,c-i)}function $pt(e,n){const i=e.template,c=i.getStart();let u=i.getEnd();return i.kind===228&&yl(i.templateSpans).literal.getFullWidth()===0&&(u=Ff(n.text,u,!1)),p1(c,u-c)}function qpt(e,n,i,c,u){for(let d=e;!Nu(d)&&(u||!Ou(d));d=d.parent){re.assert(ov(d.parent,d),"Not a subspan",()=>`Child: ${re.formatSyntaxKind(d.kind)}, parent: ${re.formatSyntaxKind(d.parent.kind)}`);const h=VQe(d,n,i,c);if(h)return h}}function Kpt(e,n,i){const c=e.getChildren(i),u=c.indexOf(n);return re.assert(u>=0&&c.length>u+1),c[u+1]}function HQe(e){return e.kind===0?nG(e.node):e.called}function w9e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function R9e(e,n,{isTypeParameterList:i,argumentCount:c,argumentsSpan:u,invocation:d,argumentIndex:h},S,E,P){var k;const F=w9e(d),$=d.kind===2?d.symbol:E.getSymbolAtLocation(HQe(d))||P&&((k=n.declaration)==null?void 0:k.symbol),J=$?Rg(E,$,P?S:void 0,void 0):Yn,X=Vn(e,Fe=>Ypt(Fe,J,i,E,F,S));h!==0&&re.assertLessThan(h,c);let ie=0,ae=0;for(let Fe=0;Fe1)){let Pe=0;for(const dt of et){if(dt.isVariadic||dt.parameters.length>=c){ie=ae+Pe;break}Pe++}}ae+=et.length}re.assert(ie!==-1);const ve={items:Lm(X,Of),applicableSpan:u,selectedItemIndex:ie,argumentIndex:h,argumentCount:c},we=ve.items[ie];if(we.isVariadic){const Fe=Ho(we.parameters,et=>!!et.isRest);-1$Qe(F,i,c,u,h)),E=e.getDocumentationComment(i),P=e.getJsDocTags(i);return{isVariadic:!1,prefixDisplayParts:[...d,D1(30)],suffixDisplayParts:[D1(32)],separatorDisplayParts:Vq,parameters:S,documentation:E,tags:P}}function Ypt(e,n,i,c,u,d){const h=(i?Zpt:emt)(e,c,u,d);return Vn(h,({isVariadic:S,parameters:E,prefix:P,suffix:k})=>{const F=[...n,...P],$=[...k,...Qpt(e,u,c)],J=e.getDocumentationComment(c),X=e.getJsDocTags();return{isVariadic:S,prefixDisplayParts:F,suffixDisplayParts:$,separatorDisplayParts:Vq,parameters:E,documentation:J,tags:X}})}function Qpt(e,n,i){return M6(c=>{c.writePunctuation(":"),c.writeSpace(" ");const u=i.getTypePredicateOfSignature(e);u?i.writeTypePredicate(u,n,void 0,c):i.writeType(i.getReturnTypeOfSignature(e),n,void 0,c)})}function Zpt(e,n,i,c){const u=(e.target||e).typeParameters,d=_4(),h=(u||Yn).map(E=>$Qe(E,n,i,c,d)),S=e.thisParameter?[n.symbolToParameterDeclaration(e.thisParameter,i,ote)]:[];return n.getExpandedParameters(e).map(E=>{const P=he.createNodeArray([...S,...Vn(E,F=>n.symbolToParameterDeclaration(F,i,ote))]),k=M6(F=>{d.writeList(2576,P,c,F)});return{isVariadic:!1,parameters:h,prefix:[D1(30)],suffix:[D1(32),...k]}})}function emt(e,n,i,c){const u=_4(),d=M6(E=>{if(e.typeParameters&&e.typeParameters.length){const P=he.createNodeArray(e.typeParameters.map(k=>n.typeParameterToDeclaration(k,i,ote)));u.writeList(53776,P,c,E)}}),h=n.getExpandedParameters(e),S=n.hasEffectiveRestParameter(e)?h.length===1?E=>!0:E=>{var P;return!!(E.length&&((P=to(E[E.length-1],Vm))==null?void 0:P.links.checkFlags)&32768)}:E=>!1;return h.map(E=>({isVariadic:S(E),parameters:E.map(P=>tmt(P,n,i,c,u)),prefix:[...d,D1(21)],suffix:[D1(22)]}))}function tmt(e,n,i,c,u){const d=M6(E=>{const P=n.symbolToParameterDeclaration(e,i,ote);u.writeNode(4,P,c,E)}),h=n.isOptionalParameter(e.valueDeclaration),S=Vm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(n),displayParts:d,isOptional:h,isRest:S}}function $Qe(e,n,i,c,u){const d=M6(h=>{const S=n.typeParameterToDeclaration(e,i,ote);u.writeNode(4,S,c,h)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(n),displayParts:d,isOptional:!1,isRest:!1}}var ote,Vq,M9e=G({"src/services/signatureHelp.ts"(){xl(),ote=70246400,Vq=[D1(28),qh()]}}),gue={};Oe(gue,{getArgumentInfoForCompletions:()=>BQe,getSignatureHelpItems:()=>Fpt});var b0e=G({"src/services/_namespaces/ts.SignatureHelp.ts"(){M9e()}});function nmt(e,n){var i,c;let u={textSpan:Yy(n.getFullStart(),n.getEnd())},d=n;e:for(;;){const E=imt(d);if(!E.length)break;for(let P=0;Pe)break e;const J=Vb(SN(n.text,F.end));if(J&&J.kind===2&&S(J.pos,J.end),rmt(n,e,F)){if(UU(F)&&Vd(d)&&!mv(F.getStart(n),F.getEnd(),n)&&h(F.getStart(n),F.getEnd()),Ou(F)||Dh(F)||X7(F)||woe(F)||k&&X7(k)||Kp(F)&&Xg(d)||AW(F)&&Kp(d)||Kc(F)&&AW(d)&&E.length===1||SW(F)||b6(F)||oF(F)){d=F;break}if(Dh(d)&&$&&c9($)){const ve=F.getFullStart()-2,we=$.getStart()+1;h(ve,we)}const X=AW(F)&&yue(k)&&omt($)&&!mv(k.getStart(),$.getStart(),n);let ie=X?k.getEnd():F.getStart();const ae=X?$.getStart():amt(n,F);if(NT(F)&&((i=F.jsDoc)!=null&&i.length)&&h(Dl(F.jsDoc).getStart(),ae),AW(F)){const ve=F.getChildren()[0];ve&&NT(ve)&&((c=ve.jsDoc)!=null&&c.length)&&ve.getStart()!==F.pos&&(ie=Math.min(ie,Dl(ve.jsDoc).getStart()))}h(ie,ae),(Sd(F)||Uz(F))&&h(ie+1,ae-1),d=F;break}if(P===E.length-1)break e}}return u;function h(E,P){if(E!==P){const k=Yy(E,P);(!u||!C1(k,u.textSpan)&&NMe(k,e))&&(u={textSpan:k,...u&&{parent:u}})}}function S(E,P){h(E,P);let k=E;for(;n.text.charCodeAt(k)===47;)k++;h(k,P)}}function rmt(e,n,i){return re.assert(i.pos<=n),nS===e.readonlyToken||S.kind===148||S===e.questionToken||S.kind===58),h=hue(d,({kind:S})=>S===23||S===168||S===24);return[i,dV(_V(h,({kind:S})=>S===59)),u]}if(em(e)){const i=hue(e.getChildren(),h=>h===e.name||ni(e.modifiers,h)),c=((n=i[0])==null?void 0:n.kind)===327?i[0]:void 0,u=c?i.slice(1):i,d=_V(u,({kind:h})=>h===59);return c?[c,dV(d)]:d}if(Os(e)){const i=hue(e.getChildren(),u=>u===e.dotDotDotToken||u===e.name),c=hue(i,u=>u===i[0]||u===e.questionToken);return _V(c,({kind:u})=>u===64)}return sa(e)?_V(e.getChildren(),({kind:i})=>i===64):e.getChildren()}function hue(e,n){const i=[];let c;for(const u of e)n(u)?(c=c||[],c.push(u)):(c&&(i.push(dV(c)),c=void 0),i.push(u));return c&&i.push(dV(c)),i}function _V(e,n,i=!0){if(e.length<2)return e;const c=Ho(e,n);if(c===-1)return e;const u=e.slice(0,c),d=e[c],h=yl(e),S=i&&h.kind===27,E=e.slice(c+1,S?e.length-1:void 0),P=uN([u.length?dV(u):void 0,d,E.length?dV(E):void 0]);return S?P.concat(h):P}function dV(e){return re.assertGreaterThanOrEqual(e.length,1),T1(Ck.createSyntaxList(e),e[0].pos,yl(e).end)}function yue(e){const n=e&&e.kind;return n===19||n===23||n===21||n===286}function omt(e){const n=e&&e.kind;return n===20||n===24||n===22||n===287}function amt(e,n){switch(n.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var qQe,KQe=G({"src/services/smartSelection.ts"(){xl(),qQe=bb(n0,Yb)}}),Mke={};Oe(Mke,{getSmartSelectionRange:()=>nmt});var L9e=G({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){KQe()}});function XQe(e,n,i){const c=O9e(e,n,i);if(c!=="")return c;const u=r3(n);return u&32?Rh(n,231)?"local class":"class":u&384?"enum":u&524288?"type":u&64?"interface":u&262144?"type parameter":u&8?"enum member":u&2097152?"alias":u&1536?"module":c}function O9e(e,n,i){const c=e.getRootSymbols(n);if(c.length===1&&Dl(c).flags&8192&&e.getTypeOfSymbolAtLocation(n,i).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(n))return"var";if(e.isArgumentsSymbol(n))return"local var";if(i.kind===110&&kr(i)||V9(i))return"parameter";const u=r3(n);if(u&3)return ace(n)?"parameter":n.valueDeclaration&&rH(n.valueDeclaration)?"const":n.valueDeclaration&&aY(n.valueDeclaration)?"using":n.valueDeclaration&&nC(n.valueDeclaration)?"await using":Ot(n.declarations,UM)?"let":eZe(n)?"local var":"var";if(u&16)return eZe(n)?"local function":"function";if(u&32768)return"getter";if(u&65536)return"setter";if(u&8192)return"method";if(u&16384)return"constructor";if(u&131072)return"index";if(u&4){if(u&33554432&&n.links.checkFlags&6){const d=Ot(e.getRootSymbols(n),h=>{if(h.getFlags()&98311)return"property"});return d||(e.getTypeOfSymbolAtLocation(n,i).getCallSignatures().length?"method":"property")}return"property"}return""}function F9e(e){if(e.declarations&&e.declarations.length){const[n,...i]=e.declarations,c=Nt(i)&&QZ(n)&>(i,d=>!QZ(d))?65536:0,u=X$(n,c);if(u)return u.split(",")}return[]}function YQe(e,n){if(!n)return"";const i=new Set(F9e(n));if(n.flags&2097152){const c=e.getAliasedSymbol(n);c!==n&&Ot(F9e(c),u=>{i.add(u)})}return n.flags&16777216&&i.add("optional"),i.size>0?oc(i.values()).join(","):""}function QQe(e,n,i,c,u,d,h,S){var E;const P=[];let k=[],F=[];const $=r3(n);let J=h&1?O9e(e,n,u):"",X=!1;const ie=u.kind===110&&C9(u)||V9(u);let ae,ve,we=!1;if(u.kind===110&&!ie)return{displayParts:[ZE(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(J!==""||$&32||$&2097152){if(J==="getter"||J==="setter"){const It=lr(n.declarations,Yt=>Yt.name===u);if(It)switch(It.kind){case 177:J="getter";break;case 178:J="setter";break;case 172:J="accessor";break;default:re.assertNever(It)}else J="property"}let Ke;if(d??(d=ie?e.getTypeAtLocation(u):e.getTypeOfSymbolAtLocation(n,u)),u.parent&&u.parent.kind===211){const It=u.parent.name;(It===u||It&&It.getFullWidth()===0)&&(u=u.parent)}let st;if(sk(u)?st=u:(hZ(u)||V$(u)||u.parent&&(m1(u.parent)||Dm(u.parent))&&F_(n.valueDeclaration))&&(st=u.parent),st){Ke=e.getResolvedSignature(st);const It=st.kind===214||xd(st)&&st.expression.kind===108,Yt=It?d.getConstructSignatures():d.getCallSignatures();if(Ke&&!ni(Yt,Ke.target)&&!ni(Yt,Ke)&&(Ke=Yt.length?Yt[0]:void 0),Ke){switch(It&&$&32?(J="constructor",ct(d.symbol,J)):$&2097152?(J="alias",Ct(J),P.push(qh()),It&&(Ke.flags&4&&(P.push(ZE(128)),P.push(qh())),P.push(ZE(105)),P.push(qh())),Ie(n)):ct(n,J),J){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":P.push(D1(59)),P.push(qh()),!(ji(d)&16)&&d.symbol&&(Oi(P,Rg(e,d.symbol,c,void 0,5)),P.push(Nj())),It&&(Ke.flags&4&&(P.push(ZE(128)),P.push(qh())),P.push(ZE(105)),P.push(qh())),Lt(Ke,Yt,262144);break;default:Lt(Ke,Yt)}X=!0,we=Yt.length>1}}else if(H$(u)&&!($&98304)||u.kind===137&&u.parent.kind===176){const It=u.parent;if(n.declarations&&lr(n.declarations,Et=>Et===(u.kind===137?It.parent:It))){const Et=It.kind===176?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(It)?Ke=Et[0]:Ke=e.getSignatureFromDeclaration(It),It.kind===176?(J="constructor",ct(d.symbol,J)):ct(It.kind===179&&!(d.symbol.flags&2048||d.symbol.flags&4096)?d.symbol:n,J),Ke&&Lt(Ke,Et),X=!0,we=Et.length>1}}}if($&32&&!X&&!ie&&(Pe(),Rh(n,231)?Ct("local class"):P.push(ZE(86)),P.push(qh()),Ie(n),Ze(n,i)),$&64&&h&2&&(et(),P.push(ZE(120)),P.push(qh()),Ie(n),Ze(n,i)),$&524288&&h&2&&(et(),P.push(ZE(156)),P.push(qh()),Ie(n),Ze(n,i),P.push(qh()),P.push(rq(64)),P.push(qh()),Oi(P,wj(e,u.parent&&ky(u.parent)?e.getTypeAtLocation(u.parent):e.getDeclaredTypeOfSymbol(n),c,8388608))),$&384&&(et(),gt(n.declarations,Ke=>xP(Ke)&&G8(Ke))&&(P.push(ZE(87)),P.push(qh())),P.push(ZE(94)),P.push(qh()),Ie(n)),$&1536&&!ie){et();const Ke=Rh(n,267),st=Ke&&Ke.name&&Ke.name.kind===80;P.push(ZE(st?145:144)),P.push(qh()),Ie(n)}if($&262144&&h&2)if(et(),P.push(D1(21)),P.push(lS("type parameter")),P.push(D1(22)),P.push(qh()),Ie(n),n.parent)dt(),Ie(n.parent,c),Ze(n.parent,c);else{const Ke=Rh(n,168);if(Ke===void 0)return re.fail();const st=Ke.parent;if(st)if(F_(st)){dt();const It=e.getSignatureFromDeclaration(st);st.kind===180?(P.push(ZE(105)),P.push(qh())):st.kind!==179&&st.name&&Ie(st.symbol),Oi(P,iq(e,It,i,32))}else z0(st)&&(dt(),P.push(ZE(156)),P.push(qh()),Ie(st.symbol),Ze(st.symbol,i))}if($&8){J="enum member",ct(n,"enum member");const Ke=(E=n.declarations)==null?void 0:E[0];if((Ke==null?void 0:Ke.kind)===306){const st=e.getConstantValue(Ke);st!==void 0&&(P.push(qh()),P.push(rq(64)),P.push(qh()),P.push(yE(Yv(st),typeof st=="number"?7:8)))}}if(n.flags&2097152){if(et(),!X||k.length===0&&F.length===0){const Ke=e.getAliasedSymbol(n);if(Ke!==n&&Ke.declarations&&Ke.declarations.length>0){const st=Ke.declarations[0],It=i_(st);if(It&&!X){const Yt=rY(st)&&ul(st,128),Et=n.name!=="default"&&!Yt,at=QQe(e,Ke,ts(st),st,It,d,h,Et?n:Ke);P.push(...at.displayParts),P.push(Nj()),ae=at.documentation,ve=at.tags}else ae=Ke.getContextualDocumentationComment(st,e),ve=Ke.getJsDocTags(e)}}if(n.declarations)switch(n.declarations[0].kind){case 270:P.push(ZE(95)),P.push(qh()),P.push(ZE(145));break;case 277:P.push(ZE(95)),P.push(qh()),P.push(ZE(n.declarations[0].isExportEquals?64:90));break;case 281:P.push(ZE(95));break;default:P.push(ZE(102))}P.push(qh()),Ie(n),Ot(n.declarations,Ke=>{if(Ke.kind===271){const st=Ke;if(Mx(st))P.push(qh()),P.push(rq(64)),P.push(qh()),P.push(ZE(149)),P.push(D1(21)),P.push(yE(Lv(iG(st)),8)),P.push(D1(22));else{const It=e.getSymbolAtLocation(st.moduleReference);It&&(P.push(qh()),P.push(rq(64)),P.push(qh()),Ie(It,c))}return!0}})}if(!X)if(J!==""){if(d){if(ie?(et(),P.push(ZE(110))):ct(n,J),J==="property"||J==="accessor"||J==="getter"||J==="setter"||J==="JSX attribute"||$&3||J==="local var"||J==="index"||J==="using"||J==="await using"||ie){if(P.push(D1(59)),P.push(qh()),d.symbol&&d.symbol.flags&262144&&J!=="index"){const Ke=M6(st=>{const It=e.typeParameterToDeclaration(d,c,Lke);Fe().writeNode(4,It,ts(__(c)),st)});Oi(P,Ke)}else Oi(P,wj(e,d,c));if(Vm(n)&&n.links.target&&Vm(n.links.target)&&n.links.target.links.tupleLabelDeclaration){const Ke=n.links.target.links.tupleLabelDeclaration;re.assertNode(Ke.name,xn),P.push(qh()),P.push(D1(21)),P.push(lS(Kr(Ke.name))),P.push(D1(22))}}else if($&16||$&8192||$&16384||$&131072||$&98304||J==="method"){const Ke=d.getNonNullableType().getCallSignatures();Ke.length&&(Lt(Ke[0],Ke),we=Ke.length>1)}}}else J=XQe(e,n,u);if(k.length===0&&!we&&(k=n.getContextualDocumentationComment(c,e)),k.length===0&&$&4&&n.parent&&n.declarations&&Ot(n.parent.declarations,Ke=>Ke.kind===312))for(const Ke of n.declarations){if(!Ke.parent||Ke.parent.kind!==226)continue;const st=e.getSymbolAtLocation(Ke.parent.right);if(st&&(k=st.getDocumentationComment(e),F=st.getJsDocTags(e),k.length>0))break}if(k.length===0&&xn(u)&&n.valueDeclaration&&sa(n.valueDeclaration)){const Ke=n.valueDeclaration,st=Ke.parent,It=Ke.propertyName||Ke.name;if(xn(It)&&Ch(st)){const Yt=K2(It),Et=e.getTypeAtLocation(st);k=Yr(Et.isUnion()?Et.types:[Et],at=>{const Qt=at.getProperty(Yt);return Qt?Qt.getDocumentationComment(e):void 0})||Yn}}return F.length===0&&!we&&(F=n.getContextualJsDocTags(c,e)),k.length===0&&ae&&(k=ae),F.length===0&&ve&&(F=ve),{displayParts:P,documentation:k,symbolKind:J,tags:F.length===0?void 0:F};function Fe(){return _4()}function et(){P.length&&P.push(Nj()),Pe()}function Pe(){S&&(Ct("alias"),P.push(qh()))}function dt(){P.push(qh()),P.push(ZE(103)),P.push(qh())}function Ie(Ke,st){let It;S&&Ke===n&&(Ke=S),J==="index"&&(It=e.getIndexInfosOfIndexSymbol(Ke));let Yt=[];Ke.flags&131072&&It?(Ke.parent&&(Yt=Rg(e,Ke.parent)),Yt.push(D1(23)),It.forEach((Et,at)=>{Yt.push(...wj(e,Et.keyType)),at!==It.length-1&&(Yt.push(qh()),Yt.push(D1(52)),Yt.push(qh()))}),Yt.push(D1(24))):Yt=Rg(e,Ke,st||i,void 0,7),Oi(P,Yt),n.flags&16777216&&P.push(D1(58))}function ct(Ke,st){et(),st&&(Ct(st),Ke&&!gt(Ke.declarations,It=>$m(It)||(Jm(It)||v0(It))&&!It.name)&&(P.push(qh()),Ie(Ke)))}function Ct(Ke){switch(Ke){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":P.push(NP(Ke));return;default:P.push(D1(21)),P.push(NP(Ke)),P.push(D1(22));return}}function Lt(Ke,st,It=0){Oi(P,iq(e,Ke,c,It|32)),st.length>1&&(P.push(qh()),P.push(D1(21)),P.push(rq(40)),P.push(yE((st.length-1).toString(),7)),P.push(qh()),P.push(lS(st.length===2?"overload":"overloads")),P.push(D1(22))),k=Ke.getDocumentationComment(e),F=Ke.getJsDocTags(),st.length>1&&k.length===0&&F.length===0&&(k=st[0].getDocumentationComment(e),F=st[0].getJsDocTags().filter(Yt=>Yt.name!=="deprecated"))}function Ze(Ke,st){const It=M6(Yt=>{const Et=e.symbolToTypeParameterDeclarations(Ke,st,Lke);Fe().writeList(53776,Et,ts(__(st)),Yt)});Oi(P,It)}}function ZQe(e,n,i,c,u,d=xF(u),h){return QQe(e,n,i,c,u,void 0,d,h)}function eZe(e){return e.parent?!1:Ot(e.declarations,n=>{if(n.kind===218)return!0;if(n.kind!==260&&n.kind!==262)return!1;for(let i=n.parent;!hP(i);i=i.parent)if(i.kind===312||i.kind===268)return!1;return!0})}var Lke,W9e=G({"src/services/symbolDisplay.ts"(){xl(),Lke=70246400}}),W6={};Oe(W6,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>ZQe,getSymbolKind:()=>XQe,getSymbolModifiers:()=>YQe});var D4=G({"src/services/_namespaces/ts.SymbolDisplay.ts"(){W9e()}});function tZe(e){const n=e.__pos;return re.assert(typeof n=="number"),n}function Oke(e,n){re.assert(typeof n=="number"),e.__pos=n}function Fke(e){const n=e.__end;return re.assert(typeof n=="number"),n}function Wke(e,n){re.assert(typeof n=="number"),e.__end=n}function Bke(e,n){return Ff(e,n,!1,!0)}function nZe(e,n){let i=n;for(;i0?1:0;let $=fR(j9(e,P)+F,e);return $=Bke(e.text,$),fR(j9(e,$),e)}function iO(e,n,i){const{end:c}=n,{trailingTriviaOption:u}=i;if(u===2){const d=SN(e.text,c);if(d){const h=j9(e,n.end);for(const S of d){if(S.kind===2||j9(e,S.pos)>h)break;if(j9(e,S.end)>h)return Ff(e.text,S.end,!0,!0)}}}}function gB(e,n,i){var c;const{end:u}=n,{trailingTriviaOption:d}=i;if(d===0)return u;if(d===1){const E=Hi(SN(e.text,u),JD(e.text,u)),P=(c=E==null?void 0:E[E.length-1])==null?void 0:c.end;return P||u}const h=iO(e,n,i);if(h)return h;const S=Ff(e.text,u,!0);return S!==u&&(d===2||Sb(e.text.charCodeAt(S-1)))?S:u}function UF(e,n){return!!n&&!!e.parent&&(n.kind===28||n.kind===27&&e.parent.kind===210)}function zke(e){return Jm(e)||mg(e)}function smt(e){if(e.kind!==219)return e;const n=e.parent.kind===172?e.parent:e.parent.parent;return n.jsDoc=e.jsDoc,n}function cmt(e,n){if(e.kind===n.kind)switch(e.kind){case 348:{const i=e,c=n;return xn(i.name)&&xn(c.name)&&i.name.escapedText===c.name.escapedText?he.createJSDocParameterTag(void 0,c.name,!1,c.typeExpression,c.isNameFirst,i.comment):void 0}case 349:return he.createJSDocReturnTag(void 0,n.typeExpression,e.comment);case 351:return he.createJSDocTypeTag(void 0,n.typeExpression,e.comment)}}function B9e(e,n){return Ff(e.text,VR(e,n,{leadingTriviaOption:1}),!1,!0)}function z9e(e,n,i,c){const u=B9e(e,c);if(i===void 0||mv(gB(e,n,{}),u,e))return u;const d=bv(c.getStart(e),e);if(UF(n,d)){const h=bv(n.getStart(e),e);if(UF(i,h)){const S=Ff(e.text,d.getEnd(),!0,!0);if(mv(h.getStart(e),d.getStart(e),e))return Sb(e.text.charCodeAt(S-1))?S-1:S;if(Sb(e.text.charCodeAt(S)))return S}}return u}function lmt(e,n){const i=qm(e,19,n),c=qm(e,20,n);return[i==null?void 0:i.end,c==null?void 0:c.end]}function Gke(e){return el(e)?e.properties:e.members}function bue(e,n){for(let i=n.length-1;i>=0;i--){const{span:c,newText:u}=n[i];e=`${e.substring(0,c.start)}${u}${e.substring(Xy(c))}`}return e}function G9e(e){return Ff(e,0)===e.length}function jke(e){const n=Xo(e,jke,E0e,Vke,jke),i=Hd(n)?n:Object.create(n);return T1(i,tZe(e),Fke(e)),i}function Vke(e,n,i,c,u){const d=Wa(e,n,i,c,u);if(!d)return d;re.assert(e);const h=d===e?he.createNodeArray(d.slice(0)):d;return T1(h,tZe(e),Fke(e)),h}function rZe(e){let n=0;const i=Nie(e),c=at=>{at&&Oke(at,n)},u=at=>{at&&Wke(at,n)},d=at=>{at&&Oke(at,n)},h=at=>{at&&Wke(at,n)},S=at=>{at&&Oke(at,n)},E=at=>{at&&Wke(at,n)};function P(at,Qt){if(Qt||!G9e(at)){n=i.getTextPos();let nn=0;for(;cP(at.charCodeAt(at.length-nn-1));)nn++;n-=nn}}function k(at){i.write(at),P(at,!1)}function F(at){i.writeComment(at)}function $(at){i.writeKeyword(at),P(at,!1)}function J(at){i.writeOperator(at),P(at,!1)}function X(at){i.writePunctuation(at),P(at,!1)}function ie(at){i.writeTrailingSemicolon(at),P(at,!1)}function ae(at){i.writeParameter(at),P(at,!1)}function ve(at){i.writeProperty(at),P(at,!1)}function we(at){i.writeSpace(at),P(at,!1)}function Fe(at){i.writeStringLiteral(at),P(at,!1)}function et(at,Qt){i.writeSymbol(at,Qt),P(at,!1)}function Pe(at){i.writeLine(at)}function dt(){i.increaseIndent()}function Ie(){i.decreaseIndent()}function ct(){return i.getText()}function Ct(at){i.rawWrite(at),P(at,!1)}function Lt(at){i.writeLiteral(at),P(at,!0)}function Ze(){return i.getTextPos()}function Ke(){return i.getLine()}function st(){return i.getColumn()}function It(){return i.getIndent()}function Yt(){return i.isAtStartOfLine()}function Et(){i.clear(),n=0}return{onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:h,onBeforeEmitToken:S,onAfterEmitToken:E,write:k,writeComment:F,writeKeyword:$,writeOperator:J,writePunctuation:X,writeTrailingSemicolon:ie,writeParameter:ae,writeProperty:ve,writeSpace:we,writeStringLiteral:Fe,writeSymbol:et,writeLine:Pe,increaseIndent:dt,decreaseIndent:Ie,getText:ct,rawWrite:Ct,writeLiteral:Lt,getTextPos:Ze,getLine:Ke,getColumn:st,getIndent:It,isAtStartOfLine:Yt,hasTrailingComment:()=>i.hasTrailingComment(),hasTrailingWhitespace:()=>i.hasTrailingWhitespace(),clear:Et}}function iZe(e){let n;for(const P of e.statements)if($2(P))n=P;else break;let i=0;const c=e.text;if(n)return i=n.end,E(),i;const u=Wz(c);u!==void 0&&(i=u.length,E());const d=JD(c,i);if(!d)return i;let h,S;for(const P of d){if(P.kind===3){if(uie(c,P.pos)){h={range:P,pinnedOrTripleSlash:!0};continue}}else if(_de(c,P.pos,P.end)){h={range:P,pinnedOrTripleSlash:!0};continue}if(h){if(h.pinnedOrTripleSlash)break;const k=e.getLineAndCharacterOfPosition(P.pos).line,F=e.getLineAndCharacterOfPosition(h.range.end).line;if(k>=F+2)break}if(e.statements.length){S===void 0&&(S=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const k=e.getLineAndCharacterOfPosition(P.end).line;if(S(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Uq||{}),T0e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(T0e||{}),pV={leadingTriviaOption:0,trailingTriviaOption:0},Hq=class b1t{constructor(n,i){this.newLineCharacter=n,this.formatContext=i,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new b1t(R6(n.host,n.formatContext.options),n.formatContext)}static with(n,i){const c=b1t.fromContext(n);return i(c),c.getChanges()}pushRaw(n,i){re.assertEqual(n.fileName,i.fileName);for(const c of i.textChanges)this.changes.push({kind:3,sourceFile:n,text:c.newText,range:MZ(c.span)})}deleteRange(n,i){this.changes.push({kind:0,sourceFile:n,range:i})}delete(n,i){this.deletedNodes.push({sourceFile:n,node:i})}deleteNode(n,i,c={leadingTriviaOption:1}){this.deleteRange(n,vue(n,i,i,c))}deleteNodes(n,i,c={leadingTriviaOption:1},u){for(const d of i){const h=VR(n,d,c,u),S=gB(n,d,c);this.deleteRange(n,{pos:h,end:S}),u=!!iO(n,d,c)}}deleteModifier(n,i){this.deleteRange(n,{pos:i.getStart(n),end:Ff(n.text,i.end,!0)})}deleteNodeRange(n,i,c,u={leadingTriviaOption:1}){const d=VR(n,i,u),h=gB(n,c,u);this.deleteRange(n,{pos:d,end:h})}deleteNodeRangeExcludingEnd(n,i,c,u={leadingTriviaOption:1}){const d=VR(n,i,u),h=c===void 0?n.text.length:VR(n,c,u);this.deleteRange(n,{pos:d,end:h})}replaceRange(n,i,c,u={}){this.changes.push({kind:1,sourceFile:n,range:i,options:u,node:c})}replaceNode(n,i,c,u=pV){this.replaceRange(n,vue(n,i,i,u),c,u)}replaceNodeRange(n,i,c,u,d=pV){this.replaceRange(n,vue(n,i,c,d),u,d)}replaceRangeWithNodes(n,i,c,u={}){this.changes.push({kind:2,sourceFile:n,range:i,options:u,nodes:c})}replaceNodeWithNodes(n,i,c,u=pV){this.replaceRangeWithNodes(n,vue(n,i,i,u),c,u)}replaceNodeWithText(n,i,c){this.replaceRangeWithText(n,vue(n,i,i,pV),c)}replaceNodeRangeWithNodes(n,i,c,u,d=pV){this.replaceRangeWithNodes(n,vue(n,i,c,d),u,d)}nodeHasTrailingComment(n,i,c=pV){return!!iO(n,i,c)}nextCommaToken(n,i){const c=N6(i,i.parent,n);return c&&c.kind===28?c:void 0}replacePropertyAssignment(n,i,c){const u=this.nextCommaToken(n,i)?"":","+this.newLineCharacter;this.replaceNode(n,i,c,{suffix:u})}insertNodeAt(n,i,c,u={}){this.replaceRange(n,tv(i),c,u)}insertNodesAt(n,i,c,u={}){this.replaceRangeWithNodes(n,tv(i),c,u)}insertNodeAtTopOfFile(n,i,c){this.insertAtTopOfFile(n,i,c)}insertNodesAtTopOfFile(n,i,c){this.insertAtTopOfFile(n,i,c)}insertAtTopOfFile(n,i,c){const u=iZe(n),d={prefix:u===0?void 0:this.newLineCharacter,suffix:(Sb(n.text.charCodeAt(u))?"":this.newLineCharacter)+(c?this.newLineCharacter:"")};ls(i)?this.insertNodesAt(n,u,i,d):this.insertNodeAt(n,u,i,d)}insertNodesAtEndOfFile(n,i,c){this.insertAtEndOfFile(n,i,c)}insertAtEndOfFile(n,i,c){const u=n.end+1,d={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(c?this.newLineCharacter:"")};this.insertNodesAt(n,u,i,d)}insertStatementsInNewFile(n,i,c){this.newFileChanges||(this.newFileChanges=zg()),this.newFileChanges.add(n,{oldFile:c,statements:i})}insertFirstParameter(n,i,c){const u=pp(i);u?this.insertNodeBefore(n,u,c):this.insertNodeAt(n,i.pos,c)}insertNodeBefore(n,i,c,u=!1,d={}){this.insertNodeAt(n,VR(n,i,d),c,this.getOptionsForInsertNodeBefore(i,c,u))}insertNodesBefore(n,i,c,u=!1,d={}){this.insertNodesAt(n,VR(n,i,d),c,this.getOptionsForInsertNodeBefore(i,Dl(c),u))}insertModifierAt(n,i,c,u={}){this.insertNodeAt(n,i,he.createToken(c),u)}insertModifierBefore(n,i,c){return this.insertModifierAt(n,c.getStart(n),i,{suffix:" "})}insertCommentBeforeLine(n,i,c,u){const d=fR(i,n),h=kF(n.text,d),S=oZe(n,h),E=MR(n,S?h:c),P=n.text.slice(d,h),k=`${S?"":this.newLineCharacter}//${u}${this.newLineCharacter}${P}`;this.insertText(n,E.getStart(n),k)}insertJsdocCommentBefore(n,i,c){const u=i.getStart(n);if(i.jsDoc)for(const S of i.jsDoc)this.deleteRange(n,{pos:Ux(S.getStart(n),n),end:gB(n,S,{})});const d=Yge(n.text,u-1),h=n.text.slice(d,u);this.insertNodeAt(n,u,c,{suffix:this.newLineCharacter+h})}createJSDocText(n,i){const c=ea(i.jsDoc,d=>As(d.comment)?he.createJSDocText(d.comment):d.comment),u=Vb(i.jsDoc);return u&&mv(u.pos,u.end,n)&&Nt(c)===0?void 0:he.createNodeArray(Zi(c,he.createJSDocText(` `)))}replaceJSDocComment(n,i,c){this.insertJsdocCommentBefore(n,smt(i),he.createJSDocComment(this.createJSDocText(n,i),he.createNodeArray(c)))}addJSDocTags(n,i,c){const u=Lm(i.jsDoc,h=>h.tags),d=c.filter(h=>!u.some((S,E)=>{const P=cmt(S,h);return P&&(u[E]=P),!!P}));this.replaceJSDocComment(n,i,[...u,...d])}filterJSDocTags(n,i,c){this.replaceJSDocComment(n,i,gi(Lm(i.jsDoc,u=>u.tags),c))}replaceRangeWithText(n,i,c){this.changes.push({kind:3,sourceFile:n,range:i,text:c})}insertText(n,i,c){this.replaceRangeWithText(n,tv(i),c)}tryInsertTypeAnnotation(n,i,c){let u;if(F_(i)){if(u=qm(i,22,n),!u){if(!$m(i))return!1;u=Dl(i.parameters)}}else u=(i.kind===260?i.exclamationToken:i.questionToken)??i.name;return this.insertNodeAt(n,u.end,c,{prefix:": "}),!0}tryInsertThisTypeAnnotation(n,i,c){const u=qm(i,21,n).getStart(n)+1,d=i.parameters.length?", ":"";this.insertNodeAt(n,u,c,{prefix:"this: ",suffix:d})}insertTypeParameters(n,i,c){const u=(qm(i,21,n)||Dl(i.parameters)).getStart(n);this.insertNodesAt(n,u,c,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(n,i,c){return dl(n)||J_(n)?{suffix:c?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Kc(n)?{suffix:", "}:Os(n)?Os(i)?{suffix:", "}:{}:Sd(n)&&n0(n.parent)||Oy(n)?{suffix:", "}:qE(n)?{suffix:","+(c?this.newLineCharacter:" ")}:re.failBadSyntaxKind(n)}insertNodeAtConstructorStart(n,i,c){const u=pp(i.body.statements);!u||!i.body.multiLine?this.replaceConstructorBody(n,i,[c,...i.body.statements]):this.insertNodeBefore(n,u,c)}insertNodeAtConstructorStartAfterSuperCall(n,i,c){const u=lr(i.body.statements,d=>kb(d)&&h1(d.expression));!u||!i.body.multiLine?this.replaceConstructorBody(n,i,[...i.body.statements,c]):this.insertNodeAfter(n,u,c)}insertNodeAtConstructorEnd(n,i,c){const u=Yf(i.body.statements);!u||!i.body.multiLine?this.replaceConstructorBody(n,i,[...i.body.statements,c]):this.insertNodeAfter(n,u,c)}replaceConstructorBody(n,i,c){this.replaceNode(n,i.body,he.createBlock(c,!0))}insertNodeAtEndOfScope(n,i,c){const u=VR(n,i.getLastToken(),{});this.insertNodeAt(n,u,c,{prefix:Sb(n.text.charCodeAt(i.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(n,i,c){this.insertNodeAtStartWorker(n,i,c)}insertNodeAtObjectStart(n,i,c){this.insertNodeAtStartWorker(n,i,c)}insertNodeAtStartWorker(n,i,c){const u=this.guessIndentationFromExistingMembers(n,i)??this.computeIndentationForNewMember(n,i);this.insertNodeAt(n,Gke(i).pos,c,this.getInsertNodeAtStartInsertOptions(n,i,u))}guessIndentationFromExistingMembers(n,i){let c,u=i;for(const d of Gke(i)){if(wH(u,d,n))return;const h=d.getStart(n),S=V0.SmartIndenter.findFirstNonWhitespaceColumn(Ux(h,n),h,n,this.formatContext.options);if(c===void 0)c=S;else if(S!==c)return;u=d}return c}computeIndentationForNewMember(n,i){const c=i.getStart(n);return V0.SmartIndenter.findFirstNonWhitespaceColumn(Ux(c,n),c,n,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(n,i,c){const d=Gke(i).length===0,h=y0(this.classesWithNodesInsertedAtStart,vm(i),{node:i,sourceFile:n}),S=el(i)&&(!Rx(n)||!d),E=el(i)&&Rx(n)&&d&&!h;return{indentation:c,prefix:(E?",":"")+this.newLineCharacter,suffix:S?",":xp(i)&&d?";":""}}insertNodeAfterComma(n,i,c){const u=this.insertNodeAfterWorker(n,this.nextCommaToken(n,i)||i,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,i))}insertNodeAfter(n,i,c){const u=this.insertNodeAfterWorker(n,i,c);this.insertNodeAt(n,u,c,this.getInsertNodeAfterOptions(n,i))}insertNodeAtEndOfList(n,i,c){this.insertNodeAt(n,i.end,c,{prefix:", "})}insertNodesAfter(n,i,c){const u=this.insertNodeAfterWorker(n,i,Dl(c));this.insertNodesAt(n,u,c,this.getInsertNodeAfterOptions(n,i))}insertNodeAfterWorker(n,i,c){return aZe(i,c)&&n.text.charCodeAt(i.end-1)!==59&&this.replaceRange(n,tv(i.end),he.createToken(27)),gB(n,i,{})}getInsertNodeAfterOptions(n,i){const c=this.getInsertNodeAfterOptionsWorker(i);return{...c,prefix:i.end===n.end&&dl(i)?c.prefix?` ${c.prefix}`:` -`:c.prefix}}getInsertNodeAfterOptionsWorker(n){switch(n.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 re.assert(dl(n)||c7(n)),{suffix:this.newLineCharacter}}}insertName(n,i,c){if(re.assert(!i.name),i.kind===219){const u=qm(i,39,n),d=qm(i,21,n);d?(this.insertNodesAt(n,d.getStart(n),[he.createToken(100),he.createIdentifier(c)],{joiner:" "}),UR(this,n,u)):(this.insertText(n,Dl(i.parameters).getStart(n),`function ${c}(`),this.replaceRange(n,u,he.createToken(22))),i.body.kind!==241&&(this.insertNodesAt(n,i.body.getStart(n),[he.createToken(19),he.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,i.body.end,[he.createToken(27),he.createToken(20)],{joiner:" "}))}else{const u=qm(i,i.kind===218?100:86,n).end;this.insertNodeAt(n,u,he.createIdentifier(c),{prefix:" "})}}insertExportModifier(n,i){this.insertText(n,i.getStart(n),"export ")}insertImportSpecifierAtIndex(n,i,c,u){const d=c.elements[u-1];d?this.insertNodeInListAfter(n,d,i):this.insertNodeBefore(n,c.elements[0],i,!mv(c.elements[0].getStart(),c.parent.parent.getStart(),n))}insertNodeInListAfter(n,i,c,u=V0.SmartIndenter.getContainingList(i,n)){if(!u){re.fail("node is not a list element");return}const d=y9(u,i);if(d<0)return;const h=i.getEnd();if(d!==u.length-1){const S=Lf(n,i.end);if(S&&UF(i,S)){const E=u[d+1],P=Bke(n.text,E.getFullStart()),k=`${Cf(S.kind)}${n.text.substring(S.end,P)}`;this.insertNodesAt(n,P,[c],{suffix:k})}}else{const S=i.getStart(n),E=Ux(S,n);let P,k=!1;if(u.length===1)P=28;else{const F=bv(i.pos,n);P=UF(i,F)?F.kind:28,k=Ux(u[d-1].getStart(n),n)!==E}if(nZe(n.text,i.end)&&(k=!0),k){this.replaceRange(n,tv(h),he.createToken(P));const F=V0.SmartIndenter.findFirstNonWhitespaceColumn(E,S,n,this.formatContext.options);let $=Ff(n.text,h,!0,!1);for(;$!==h&&Sb(n.text.charCodeAt($-1));)$--;this.replaceRange(n,tv($),c,{indentation:F,prefix:this.newLineCharacter})}else this.replaceRange(n,tv(h),c,{prefix:`${Cf(P)} `})}}parenthesizeExpression(n,i){this.replaceRange(n,coe(i),he.createParenthesizedExpression(i))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:n,sourceFile:i})=>{const[c,u]=lmt(n,i);if(c!==void 0&&u!==void 0){const d=Gke(n).length===0,h=mv(c,u,i);d&&h&&c!==u-1&&this.deleteRange(i,tv(c,u-1)),h&&this.insertText(i,u-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const n=new Set;for(const{sourceFile:i,node:c}of this.deletedNodes)this.deletedNodes.some(u=>u.sourceFile===i&&Use(u.node,c))||(ls(c)?this.deleteRange(i,loe(i,c)):Uke.deleteDeclaration(this,n,i,c));n.forEach(i=>{const c=i.getSourceFile(),u=V0.SmartIndenter.getContainingList(i,c);if(i!==yl(u))return;const d=Ms(u,h=>!n.has(h),u.length-2);d!==-1&&this.deleteRange(c,{pos:u[d].end,end:B9e(c,u[d+1])})})}getChanges(n){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const i=S0e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,n);return this.newFileChanges&&this.newFileChanges.forEach((c,u)=>{i.push(S0e.newFileChanges(u,c,this.newLineCharacter,this.formatContext))}),i}createNewFile(n,i,c){this.insertStatementsInNewFile(i,c,n)}},(e=>{function n(S,E,P,k){return Qo(BD(S,F=>F.sourceFile.path),F=>{const $=F[0].sourceFile,J=nh(F,(ie,ae)=>ie.range.pos-ae.range.pos||ie.range.end-ae.range.end);for(let ie=0;ie`${JSON.stringify(J[ie].range)} and ${JSON.stringify(J[ie+1].range)}`);const X=Qo(J,ie=>{const ae=PP(ie.range),ve=ie.kind===1?ts(Gg(ie.node))??ie.sourceFile:ie.kind===2?ts(Gg(ie.nodes[0]))??ie.sourceFile:ie.sourceFile,we=u(ie,ve,$,E,P,k);if(!(ae.length===we.length&&lq(ve.text,we,ae.start)))return LZ(ae,we)});return X.length>0?{fileName:$.fileName,textChanges:X}:void 0})}e.getTextChangesFromChanges=n;function i(S,E,P,k){const F=c(EY(S),E,P,k);return{fileName:S,textChanges:[LZ(p1(0,0),F)],isNewFile:!0}}e.newFileChanges=i;function c(S,E,P,k){const F=ea(E,X=>X.statements.map(ie=>ie===4?"":h(ie,X.oldFile,P).text)).join(P),$=eQ("any file name",F,{languageVersion:99,jsDocParsingMode:1},!0,S),J=V0.formatDocument($,k);return bue(F,J)+P}e.newFileChangesWorker=c;function u(S,E,P,k,F,$){var J;if(S.kind===0)return"";if(S.kind===3)return S.text;const{options:X={},range:{pos:ie}}=S,ae=Fe=>d(Fe,E,P,ie,X,k,F,$),ve=S.kind===2?S.nodes.map(Fe=>DM(ae(Fe),k)).join(((J=S.options)==null?void 0:J.joiner)||k):ae(S.node),we=X.indentation!==void 0||Ux(ie,E)===ie?ve:ve.replace(/^\s+/,"");return(X.prefix||"")+we+(!X.suffix||h_(we,X.suffix)?"":X.suffix)}function d(S,E,P,k,{indentation:F,prefix:$,delta:J},X,ie,ae){const{node:ve,text:we}=h(S,E,X);ae&&ae(ve,we);const Fe=uq(ie,E),et=F!==void 0?F:V0.SmartIndenter.getIndentation(k,P,Fe,$===X||Ux(k,E)===k);J===void 0&&(J=V0.SmartIndenter.shouldIndentChildNode(Fe,S)&&Fe.indentSize||0);const Pe={text:we,getLineAndCharacterOfPosition(Ie){return xm(this,Ie)}},dt=V0.formatNodeGivenIndentation(ve,Pe,E.languageVariant,et,J,{...ie,options:Fe});return bue(we,dt)}function h(S,E,P){const k=rZe(P),F=Wj(P);return F3({newLine:F,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,S,E,k),{text:k.getText(),node:jke(S)}}e.getNonformattedText=h})(S0e||(S0e={})),E0e={...sx,factory:AG(sx.factory.flags|1,sx.factory.baseFactory)},(e=>{function n(d,h,S,E){switch(E.kind){case 169:{const J=E.parent;$m(J)&&J.parameters.length===1&&!qm(J,21,S)?d.replaceNodeWithText(S,E,"()"):uD(d,h,S,E);break}case 272:case 271:const P=S.imports.length&&E===Dl(S.imports).parent||E===lr(S.statements,W8);UR(d,S,E,{leadingTriviaOption:P?0:NT(E)?2:3});break;case 208:const k=E.parent;k.kind===207&&E!==yl(k.elements)?UR(d,S,E):uD(d,h,S,E);break;case 260:u(d,h,S,E);break;case 168:uD(d,h,S,E);break;case 276:const $=E.parent;$.elements.length===1?c(d,S,$):uD(d,h,S,E);break;case 274:c(d,S,E);break;case 27:UR(d,S,E,{trailingTriviaOption:0});break;case 100:UR(d,S,E,{leadingTriviaOption:0});break;case 263:case 262:UR(d,S,E,{leadingTriviaOption:NT(E)?2:3});break;default:E.parent?Tk(E.parent)&&E.parent.name===E?i(d,S,E.parent):xd(E.parent)&&ni(E.parent.arguments,E)?uD(d,h,S,E):UR(d,S,E):UR(d,S,E)}}e.deleteDeclaration=n;function i(d,h,S){if(!S.namedBindings)UR(d,h,S.parent);else{const E=S.name.getStart(h),P=Lf(h,S.name.end);if(P&&P.kind===28){const k=Ff(h.text,P.end,!1,!0);d.deleteRange(h,{pos:E,end:k})}else UR(d,h,S.name)}}function c(d,h,S){if(S.parent.name){const E=re.checkDefined(Lf(h,S.pos-1));d.deleteRange(h,{pos:E.getStart(h),end:S.end})}else{const E=oC(S,272);UR(d,h,E)}}function u(d,h,S,E){const{parent:P}=E;if(P.kind===299){d.deleteNodeRange(S,qm(P,21,S),qm(P,22,S));return}if(P.declarations.length!==1){uD(d,h,S,E);return}const k=P.parent;switch(k.kind){case 250:case 249:d.replaceNode(S,E,he.createObjectLiteralExpression());break;case 248:UR(d,S,P);break;case 243:UR(d,S,k,{leadingTriviaOption:NT(k)?2:3});break;default:re.assertNever(k)}}})(Uke||(Uke={}))}}),zs={};Oe(zs,{ChangeTracker:()=>Hq,LeadingTriviaOption:()=>Uq,TrailingTriviaOption:()=>T0e,applyChanges:()=>bue,assignPositionsToNode:()=>jke,createWriter:()=>rZe,deleteNode:()=>UR,isThisTypeAnnotatable:()=>zke,isValidLocationToAddComment:()=>oZe});var Hs=G({"src/services/_namespaces/ts.textChanges.ts"(){j9e()}}),V9e,x0e,U9e=G({"src/services/formatting/formattingContext.ts"(){xl(),V9e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(V9e||{}),x0e=class{constructor(e,n,i){this.sourceFile=e,this.formattingRequestKind=n,this.options=i}updateContext(e,n,i,c,u){this.currentTokenSpan=re.checkDefined(e),this.currentTokenParent=re.checkDefined(n),this.nextTokenSpan=re.checkDefined(i),this.nextTokenParent=re.checkDefined(c),this.contextNode=re.checkDefined(u),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 e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}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(e){const n=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,i=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return n===i}BlockIsOnOneLine(e){const n=qm(e,19,this.sourceFile),i=qm(e,20,this.sourceFile);if(n&&i){const c=this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line,u=this.sourceFile.getLineAndCharacterOfPosition(i.getStart(this.sourceFile)).line;return c===u}return!1}}}});function H9e(e,n,i,c,u){const d=n===1?J9e:Hke;d.setText(e),d.resetTokenState(i);let h=!0,S,E,P,k,F;const $=u({advance:J,readTokenInfo:Pe,readEOFTokenRange:Ie,isOnToken:ct,isOnEOF:Ct,getCurrentLeadingTrivia:()=>S,lastTrailingTriviaWasNewLine:()=>h,skipToEndOf:Ze,skipToStartOf:Ke,getTokenFullStart:()=>(F==null?void 0:F.token.pos)??d.getTokenStart(),getStartPos:()=>(F==null?void 0:F.token.pos)??d.getTokenStart()});return F=void 0,d.setText(void 0),$;function J(){F=void 0,d.getTokenFullStart()!==i?h=!!E&&yl(E).kind===4:d.scan(),S=void 0,E=void 0;let It=d.getTokenFullStart();for(;It(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(ate||{}),C0e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(C0e||{})}});function cZe(){const e=[];for(let dt=0;dt<=165;dt++)dt!==1&&e.push(dt);function n(...dt){return{tokens:e.filter(Ie=>!dt.some(ct=>ct===Ie)),isSpecific:!1}}const i={tokens:e,isSpecific:!1},c=Yc([...e,3]),u=Yc([...e,1]),d=q9e(83,165),h=q9e(30,79),S=[103,104,165,130,142,152],E=[46,47,55,54],P=[9,10,80,21,23,19,110,105],k=[80,21,110,105],F=[80,22,24,105],$=[80,21,110,105],J=[80,22,24,105],X=[2,3],ie=[80,...eee],ae=c,ve=Yc([80,3,86,95,102]),we=Yc([22,3,92,113,98,93]),Fe=[ol("IgnoreBeforeComment",i,X,A0e,1),ol("IgnoreAfterLineComment",2,i,A0e,1),ol("NotSpaceBeforeColon",i,59,[qu,FP,Tue],16),ol("SpaceAfterColon",59,i,[qu,FP,ymt],4),ol("NoSpaceBeforeQuestionMark",i,58,[qu,FP,Tue],16),ol("SpaceAfterQuestionMarkInConditionalOperator",58,i,[qu,Q9e],4),ol("NoSpaceAfterQuestionMark",58,i,[qu,umt],16),ol("NoSpaceBeforeDot",i,[25,29],[qu,Cmt],16),ol("NoSpaceAfterDot",[25,29],i,[qu],16),ol("NoSpaceBetweenImportParenInImportType",102,21,[qu,nf],16),ol("NoSpaceAfterUnaryPrefixOperator",E,P,[qu,FP],16),ol("NoSpaceAfterUnaryPreincrementOperator",46,k,[qu],16),ol("NoSpaceAfterUnaryPredecrementOperator",47,$,[qu],16),ol("NoSpaceBeforeUnaryPostincrementOperator",F,46,[qu,TZe],16),ol("NoSpaceBeforeUnaryPostdecrementOperator",J,47,[qu,TZe],16),ol("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[qu,k4],4),ol("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[qu,k4],4),ol("SpaceAfterAddWhenFollowedByPreincrement",40,46,[qu,k4],4),ol("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[qu,k4],4),ol("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[qu,k4],4),ol("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[qu,k4],4),ol("NoSpaceAfterCloseBrace",20,[28,27],[qu],16),ol("NewLineBeforeCloseBraceInBlockContext",c,20,[lZe],8),ol("SpaceAfterCloseBrace",20,n(22),[qu,k0e],4),ol("SpaceBetweenCloseBraceAndElse",20,93,[qu],4),ol("SpaceBetweenCloseBraceAndWhile",20,117,[qu],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[qu,dZe],16),ol("SpaceAfterConditionalClosingParen",22,23,[Sue],4),ol("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Z9e],16),ol("SpaceAfterStarInGeneratorDeclaration",42,80,[Z9e],4),ol("SpaceAfterFunctionInFuncDecl",100,i,[hB],4),ol("NewLineAfterOpenBraceInBlockContext",19,i,[lZe],8),ol("SpaceAfterGetSetInMember",[139,153],80,[hB],4),ol("NoSpaceBetweenYieldKeywordAndStar",127,42,[qu,bZe],16),ol("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],i,[qu,bZe],4),ol("NoSpaceBetweenReturnAndSemicolon",107,27,[qu],16),ol("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],i,[qu],4),ol("SpaceAfterLetConstInVariableDeclaration",[121,87],i,[qu,bmt],4),ol("NoSpaceBeforeOpenParenInFuncCall",i,21,[qu,dmt,pmt],16),ol("SpaceBeforeBinaryKeywordOperator",i,S,[qu,k4],4),ol("SpaceAfterBinaryKeywordOperator",S,i,[qu,k4],4),ol("SpaceAfterVoidOperator",116,i,[qu,vZe],4),ol("SpaceBetweenAsyncAndOpenParen",134,21,[hmt,qu],4),ol("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[qu],4),ol("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[qu],16),ol("SpaceBeforeJsxAttribute",i,80,[pZe,qu],4),ol("SpaceBeforeSlashInJsxOpeningElement",i,44,[nWe,qu],4),ol("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[nWe,qu],16),ol("NoSpaceBeforeEqualInJsxAttribute",i,64,[tWe,qu],16),ol("NoSpaceAfterEqualInJsxAttribute",64,i,[tWe,qu],16),ol("NoSpaceBeforeJsxNamespaceColon",80,59,[mZe],16),ol("NoSpaceAfterJsxNamespaceColon",59,80,[mZe],16),ol("NoSpaceAfterModuleImport",[144,149],21,[qu],16),ol("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],i,[qu],4),ol("SpaceBeforeCertainTypeScriptKeywords",i,[96,119,161],[qu],4),ol("SpaceAfterModuleName",11,19,[hZe],4),ol("SpaceBeforeArrow",i,39,[qu],4),ol("SpaceAfterArrow",39,i,[qu],4),ol("NoSpaceAfterEllipsis",26,80,[qu],16),ol("NoSpaceAfterOptionalParameters",58,[22,28],[qu,FP],16),ol("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[qu,P0e],16),ol("NoSpaceBeforeOpenAngularBracket",ie,30,[qu,N0e],16),ol("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[qu,N0e],16),ol("NoSpaceAfterOpenAngularBracket",30,i,[qu,N0e],16),ol("NoSpaceBeforeCloseAngularBracket",i,32,[qu,N0e],16),ol("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[qu,N0e,fZe,Tmt],16),ol("SpaceBeforeAt",[22,80],60,[qu],4),ol("NoSpaceAfterAt",60,i,[qu],16),ol("SpaceAfterDecorator",i,[128,80,95,90,86,126,125,123,124,139,153,23,42],[rWe],4),ol("NoSpaceBeforeNonNullAssertionOperator",i,54,[qu,Smt],16),ol("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[qu,oWe],16),ol("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[qu],4)],et=[ol("SpaceAfterConstructor",137,21,[ux("insertSpaceAfterConstructor"),qu],4),ol("NoSpaceAfterConstructor",137,21,[fD("insertSpaceAfterConstructor"),qu],16),ol("SpaceAfterComma",28,i,[ux("insertSpaceAfterCommaDelimiter"),qu,Eue,mmt,gmt],4),ol("NoSpaceAfterComma",28,i,[fD("insertSpaceAfterCommaDelimiter"),qu,Eue],16),ol("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[ux("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hB],4),ol("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[fD("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hB],16),ol("SpaceAfterKeywordInControl",d,21,[ux("insertSpaceAfterKeywordsInControlFlowStatements"),Sue],4),ol("NoSpaceAfterKeywordInControl",d,21,[fD("insertSpaceAfterKeywordsInControlFlowStatements"),Sue],16),ol("SpaceAfterOpenParen",21,i,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("SpaceBeforeCloseParen",i,22,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("SpaceBetweenOpenParens",21,21,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("NoSpaceBetweenParens",21,22,[qu],16),ol("NoSpaceAfterOpenParen",21,i,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],16),ol("NoSpaceBeforeCloseParen",i,22,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],16),ol("SpaceAfterOpenBracket",23,i,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],4),ol("SpaceBeforeCloseBracket",i,24,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],4),ol("NoSpaceBetweenBrackets",23,24,[qu],16),ol("NoSpaceAfterOpenBracket",23,i,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],16),ol("NoSpaceBeforeCloseBracket",i,24,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],16),ol("SpaceAfterOpenBrace",19,i,[Jke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xke],4),ol("SpaceBeforeCloseBrace",i,20,[Jke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xke],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[qu,dZe],16),ol("NoSpaceAfterOpenBrace",19,i,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qu],16),ol("NoSpaceBeforeCloseBrace",i,20,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qu],16),ol("SpaceBetweenEmptyBraceBrackets",19,20,[ux("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[k2("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),qu],16),ol("SpaceAfterTemplateHeadAndMiddle",[16,17],i,[ux("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qke],4,1),ol("SpaceBeforeTemplateMiddleAndTail",i,[17,18],[ux("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],4),ol("NoSpaceAfterTemplateHeadAndMiddle",[16,17],i,[fD("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qke],16,1),ol("NoSpaceBeforeTemplateMiddleAndTail",i,[17,18],[fD("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],16),ol("SpaceAfterOpenBraceInJsxExpression",19,i,[ux("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],4),ol("SpaceBeforeCloseBraceInJsxExpression",i,20,[ux("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],4),ol("NoSpaceAfterOpenBraceInJsxExpression",19,i,[fD("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],16),ol("NoSpaceBeforeCloseBraceInJsxExpression",i,20,[fD("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],16),ol("SpaceAfterSemicolonInFor",27,i,[ux("insertSpaceAfterSemicolonInForStatements"),qu,$ke],4),ol("NoSpaceAfterSemicolonInFor",27,i,[fD("insertSpaceAfterSemicolonInForStatements"),qu,$ke],16),ol("SpaceBeforeBinaryOperator",i,h,[ux("insertSpaceBeforeAndAfterBinaryOperators"),qu,k4],4),ol("SpaceAfterBinaryOperator",h,i,[ux("insertSpaceBeforeAndAfterBinaryOperators"),qu,k4],4),ol("NoSpaceBeforeBinaryOperator",i,h,[fD("insertSpaceBeforeAndAfterBinaryOperators"),qu,k4],16),ol("NoSpaceAfterBinaryOperator",h,i,[fD("insertSpaceBeforeAndAfterBinaryOperators"),qu,k4],16),ol("SpaceBeforeOpenParenInFuncDecl",i,21,[ux("insertSpaceBeforeFunctionParenthesis"),qu,hB],4),ol("NoSpaceBeforeOpenParenInFuncDecl",i,21,[fD("insertSpaceBeforeFunctionParenthesis"),qu,hB],16),ol("NewLineBeforeOpenBraceInControl",we,19,[ux("placeOpenBraceOnNewLineForControlBlocks"),Sue,Yke],8,1),ol("NewLineBeforeOpenBraceInFunction",ae,19,[ux("placeOpenBraceOnNewLineForFunctions"),hB,Yke],8,1),ol("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ve,19,[ux("placeOpenBraceOnNewLineForFunctions"),eWe,Yke],8,1),ol("SpaceAfterTypeAssertion",32,i,[ux("insertSpaceAfterTypeAssertion"),qu,ePe],4),ol("NoSpaceAfterTypeAssertion",32,i,[fD("insertSpaceAfterTypeAssertion"),qu,ePe],16),ol("SpaceBeforeTypeAnnotation",i,[58,59],[ux("insertSpaceBeforeTypeAnnotation"),qu,qke],4),ol("NoSpaceBeforeTypeAnnotation",i,[58,59],[fD("insertSpaceBeforeTypeAnnotation"),qu,qke],16),ol("NoOptionalSemicolon",27,u,[K9e("semicolons","remove"),xmt],32),ol("OptionalSemicolon",i,u,[K9e("semicolons","insert"),Amt],64)],Pe=[ol("NoSpaceBeforeSemicolon",i,27,[qu],16),ol("SpaceBeforeOpenBraceInControl",we,19,[_D("placeOpenBraceOnNewLineForControlBlocks"),Sue,iWe,Kke],4,1),ol("SpaceBeforeOpenBraceInFunction",ae,19,[_D("placeOpenBraceOnNewLineForFunctions"),hB,I0e,iWe,Kke],4,1),ol("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ve,19,[_D("placeOpenBraceOnNewLineForFunctions"),eWe,iWe,Kke],4,1),ol("NoSpaceBeforeComma",i,28,[qu],16),ol("NoSpaceBeforeOpenBracket",n(134,84),23,[qu],16),ol("NoSpaceAfterCloseBracket",24,i,[qu,vmt],16),ol("SpaceAfterSemicolon",27,i,[qu],4),ol("SpaceBetweenForAndAwaitKeyword",99,135,[qu],4),ol("SpaceBetweenStatements",[22,92,93,84],i,[qu,Eue,X9e],4),ol("SpaceAfterTryCatchFinally",[113,85,98],19,[qu],4)];return[...Fe,...et,...Pe]}function ol(e,n,i,c,u,d=0){return{leftTokenRange:Jq(n),rightTokenRange:Jq(i),rule:{debugName:e,context:c,action:u,flags:d}}}function Yc(e){return{tokens:e,isSpecific:!0}}function Jq(e){return typeof e=="number"?Yc([e]):ls(e)?Yc(e):e}function q9e(e,n,i=[]){const c=[];for(let u=e;u<=n;u++)ni(i,u)||c.push(u);return Yc(c)}function K9e(e,n){return i=>i.options&&i.options[e]===n}function ux(e){return n=>n.options&&ef(n.options,e)&&!!n.options[e]}function k2(e){return n=>n.options&&ef(n.options,e)&&!n.options[e]}function fD(e){return n=>!n.options||!ef(n.options,e)||!n.options[e]}function _D(e){return n=>!n.options||!ef(n.options,e)||!n.options[e]||n.TokensAreOnSameLine()}function Jke(e){return n=>!n.options||!ef(n.options,e)||!!n.options[e]}function $ke(e){return e.contextNode.kind===248}function X9e(e){return!$ke(e)}function k4(e){switch(e.contextNode.kind){case 226:return e.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 e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function FP(e){return!k4(e)}function Tue(e){return!qke(e)}function qke(e){const n=e.contextNode.kind;return n===172||n===171||n===169||n===260||S_(n)}function Y9e(e){return nu(e.contextNode)&&e.contextNode.questionToken}function umt(e){return!Y9e(e)}function Q9e(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Kke(e){return e.TokensAreOnSameLine()||I0e(e)}function Xke(e){return e.contextNode.kind===206||e.contextNode.kind===200||uZe(e)}function Yke(e){return I0e(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function lZe(e){return D0e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uZe(e){return D0e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function D0e(e){return HF(e.contextNode)}function I0e(e){return HF(e.nextTokenParent)}function HF(e){if(_Ze(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function hB(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function fZe(e){return!hB(e)}function Z9e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function eWe(e){return _Ze(e.contextNode)}function _Ze(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function k0e(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const n=e.currentTokenParent.parent;if(!n||n.kind!==219&&n.kind!==218)return!0}}return!1}function Sue(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function dZe(e){return e.contextNode.kind===210}function fmt(e){return e.contextNode.kind===213}function _mt(e){return e.contextNode.kind===214}function dmt(e){return fmt(e)||_mt(e)}function pmt(e){return e.currentTokenSpan.kind!==28}function mmt(e){return e.nextTokenSpan.kind!==24}function gmt(e){return e.nextTokenSpan.kind!==22}function hmt(e){return e.contextNode.kind===219}function nf(e){return e.contextNode.kind===205}function qu(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Qke(e){return e.contextNode.kind!==12}function Eue(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function Zke(e){return e.contextNode.kind===294||e.contextNode.kind===293}function pZe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function tWe(e){return e.contextNode.kind===291}function ymt(e){return e.nextTokenParent.kind!==295}function mZe(e){return e.nextTokenParent.kind===295}function nWe(e){return e.contextNode.kind===285}function vmt(e){return!hB(e)&&!I0e(e)}function rWe(e){return e.TokensAreOnSameLine()&&X2(e.contextNode)&&gZe(e.currentTokenParent)&&!gZe(e.nextTokenParent)}function gZe(e){for(;e&&kr(e);)e=e.parent;return e&&e.kind===170}function bmt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function iWe(e){return e.formattingRequestKind!==2}function hZe(e){return e.contextNode.kind===267}function P0e(e){return e.contextNode.kind===187}function oWe(e){return e.contextNode.kind===180}function yZe(e,n){if(e.kind!==30&&e.kind!==32)return!1;switch(n.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 N0e(e){return yZe(e.currentTokenSpan,e.currentTokenParent)||yZe(e.nextTokenSpan,e.nextTokenParent)}function ePe(e){return e.contextNode.kind===216}function Tmt(e){return!ePe(e)}function vZe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function bZe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Smt(e){return e.contextNode.kind===235}function TZe(e){return!Emt(e)}function Emt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function xmt(e){let n=e.nextTokenSpan.kind,i=e.nextTokenSpan.pos;if(W9(n)){const d=e.nextTokenParent===e.currentTokenParent?N6(e.currentTokenParent,Ua(e.currentTokenParent,h=>!h.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!d)return!0;n=d.kind,i=d.getStart(e.sourceFile)}const c=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,u=e.sourceFile.getLineAndCharacterOfPosition(i).line;return c===u?n===20||n===1:n===240||n===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!em(e.currentTokenParent)||!!e.currentTokenParent.type||n!==21:nu(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&n!==23&&n!==21&&n!==40&&n!==41&&n!==44&&n!==14&&n!==28&&n!==228&&n!==16&&n!==15&&n!==25}function Amt(e){return pce(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Cmt(e){return!Ac(e.contextNode)||!S1(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Dmt=G({"src/services/formatting/rules.ts"(){xl(),lte()}});function Imt(e,n){return{options:e,getRules:kmt(),host:n}}function kmt(){return xue===void 0&&(xue=Pmt(cZe())),xue}function SZe(e){let n=0;return e&1&&(n|=28),e&2&&(n|=96),e&28&&(n|=28),e&96&&(n|=96),n}function Pmt(e){const n=Nmt(e);return i=>{const c=n[EZe(i.currentTokenSpan.kind,i.nextTokenSpan.kind)];if(c){const u=[];let d=0;for(const h of c){const S=~SZe(d);h.action&S&&jr(h.context,E=>E(i))&&(u.push(h),d|=h.action)}if(u.length)return u}}}function Nmt(e){const n=new Array(ste*ste),i=new Array(n.length);for(const c of e){const u=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific;for(const d of c.leftTokenRange.tokens)for(const h of c.rightTokenRange.tokens){const S=EZe(d,h);let E=n[S];E===void 0&&(E=n[S]=[]),aWe(E,c.rule,u,i,S)}}return n}function EZe(e,n){return re.assert(e<=165&&n<=165,"Must compute formatting context from tokens"),e*ste+n}function aWe(e,n,i,c,u){const d=n.action&3?i?0:cte.StopRulesAny:n.context!==A0e?i?cte.ContextRulesSpecific:cte.ContextRulesAny:i?cte.NoContextRulesSpecific:cte.NoContextRulesAny,h=c[u]||0;e.splice($q(h,d),0,n),c[u]=w0e(h,d)}function $q(e,n){let i=0;for(let c=0;c<=n;c+=B6)i+=e&R0e,e>>=B6;return i}function w0e(e,n){const i=(e>>n&R0e)+1;return re.assert((i&R0e)===i,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(R0e<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=B6*1]="StopRulesAny",e[e.ContextRulesSpecific=B6*2]="ContextRulesSpecific",e[e.ContextRulesAny=B6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=B6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=B6*5]="NoContextRulesAny",e))(cte||{})}});function tPe(e,n,i){const c={pos:e,end:n,kind:i};return re.isDebugging&&Object.defineProperty(c,"__debugKind",{get:()=>re.formatSyntaxKind(i)}),c}function Rmt(e,n,i){const c=n.getLineAndCharacterOfPosition(e).line;if(c===0)return[];let u=cie(c,n);for(;q1(n.text.charCodeAt(u));)u--;Sb(n.text.charCodeAt(u))&&u--;const d={pos:fR(c-1,n),end:u+1};return L0e(d,n,i,2)}function Mmt(e,n,i){const c=lWe(e,27,n);return fWe(uWe(c),n,i,3)}function Lmt(e,n,i){const c=lWe(e,19,n);if(!c)return[];const u=c.parent,d=uWe(u),h={pos:Ux(d.getStart(n),n),end:e};return L0e(h,n,i,4)}function sWe(e,n,i){const c=lWe(e,20,n);return fWe(uWe(c),n,i,5)}function cWe(e,n){const i={pos:0,end:e.text.length};return L0e(i,e,n,0)}function Omt(e,n,i,c){const u={pos:Ux(e,i),end:n};return L0e(u,i,c,1)}function lWe(e,n,i){const c=bv(e,i);return c&&c.kind===n&&e===c.getEnd()?c:void 0}function uWe(e){let n=e;for(;n&&n.parent&&n.parent.end===e.end&&!Fmt(n.parent,n);)n=n.parent;return n}function Fmt(e,n){switch(e.kind){case 263:case 264:return ov(e.members,n);case 267:const i=e.body;return!!i&&i.kind===268&&ov(i.statements,n);case 312:case 241:case 268:return ov(e.statements,n);case 299:return ov(e.block.statements,n)}return!1}function Wmt(e,n){return i(n);function i(c){const u=s_(c,d=>Wm(d.getStart(n),d.end,e)&&d);if(u){const d=i(u);if(d)return d}return c}}function Bmt(e,n){if(!e.length)return u;const i=e.filter(d=>J$(n,d.start,d.start+d.length)).sort((d,h)=>d.start-h.start);if(!i.length)return u;let c=0;return d=>{for(;;){if(c>=i.length)return!1;const h=i[c];if(d.end<=h.start)return!1;if(Wge(d.pos,d.end,h.start,h.start+h.length))return!0;c++}};function u(){return!1}}function xZe(e,n,i){const c=e.getStart(i);if(c===n.pos&&e.end===n.end)return c;const u=bv(n.pos,i);return!u||u.end>=n.pos?e.pos:u.end}function M0e(e,n,i){let c=-1,u;for(;e;){const d=i.getLineAndCharacterOfPosition(e.getStart(i)).line;if(c!==-1&&d!==c)break;if(qx.shouldIndentChildNode(n,e,u,i))return n.indentSize;c=d,u=e,e=e.parent}return 0}function AZe(e,n,i,c,u,d){const h={pos:e.pos,end:e.end};return H9e(n.text,i,h.pos,h.end,S=>CZe(h,e,c,u,S,d,1,E=>!1,n))}function fWe(e,n,i,c){if(!e)return[];const u={pos:Ux(e.getStart(n),n),end:e.end};return L0e(u,n,i,c)}function L0e(e,n,i,c){const u=Wmt(e,n);return H9e(n.text,n.languageVariant,xZe(u,e,n),e.end,d=>CZe(e,u,qx.getIndentationForNode(u,e,n,i.options),M0e(u,i.options,n),d,i,c,Bmt(n.parseDiagnostics,e),n))}function CZe(e,n,i,c,u,{options:d,getRules:h,host:S},E,P,k){var F;const $=new x0e(k,E,d);let J,X,ie,ae,ve,we=-1;const Fe=[];if(u.advance(),u.isOnToken()){const jt=k.getLineAndCharacterOfPosition(n.getStart(k)).line;let En=jt;X2(n)&&(En=k.getLineAndCharacterOfPosition(fie(n,k)).line),Ct(n,n,jt,En,i,c)}const et=u.getCurrentLeadingTrivia();if(et){const jt=qx.nodeWillIndentChild(d,n,void 0,k,!1)?i+d.indentSize:i;Lt(et,jt,!0,En=>{Ke(En,k.getLineAndCharacterOfPosition(En.pos),n,n,void 0),It(En.pos,jt,!1)}),d.trimTrailingWhitespace!==!1&&Rn(et)}if(X&&u.getTokenFullStart()>=e.end){const jt=u.isOnEOF()?u.readEOFTokenRange():u.isOnToken()?u.readTokenInfo(n).token:void 0;if(jt&&jt.pos===J){const En=((F=bv(jt.end,k,n))==null?void 0:F.parent)||ie;st(jt,k.getLineAndCharacterOfPosition(jt.pos).line,En,X,ae,ie,En,void 0)}}return Fe;function Pe(jt,En,fr,Tr,Vr){if(J$(Tr,jt,En)||Aj(Tr,jt,En)){if(Vr!==-1)return Vr}else{const Pn=k.getLineAndCharacterOfPosition(jt).line,Fr=Ux(jt,k),Ki=qx.findFirstNonWhitespaceColumn(Fr,jt,k,d);if(Pn!==fr||jt===Ki){const io=qx.getBaseIndentation(d);return io>Ki?io:Ki}}return-1}function dt(jt,En,fr,Tr,Vr,Pn){const Fr=qx.shouldIndentChildNode(d,jt)?d.indentSize:0;return Pn===En?{indentation:En===ve?we:Vr.getIndentation(),delta:Math.min(d.indentSize,Vr.getDelta(jt)+Fr)}:fr===-1?jt.kind===21&&En===ve?{indentation:we,delta:Vr.getDelta(jt)}:qx.childStartsOnTheSameLineWithElseInIfStatement(Tr,jt,En,k)||qx.childIsUnindentedBranchOfConditionalExpression(Tr,jt,En,k)||qx.argumentStartsOnSameLineAsPreviousArgument(Tr,jt,En,k)?{indentation:Vr.getIndentation(),delta:Fr}:{indentation:Vr.getIndentation()+Vr.getDelta(jt),delta:Fr}:{indentation:fr,delta:Fr}}function Ie(jt){if(DA(jt)){const En=lr(jt.modifiers,Mf,Ho(jt.modifiers,Jh));if(En)return En.kind}switch(jt.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(jt.asteriskToken)return 42;case 172:case 169:const En=i_(jt);if(En)return En.kind}}function ct(jt,En,fr,Tr){return{getIndentationForComment:(Fr,Ki,io)=>{switch(Fr){case 20:case 24:case 22:return fr+Pn(io)}return Ki!==-1?Ki:fr},getIndentationForToken:(Fr,Ki,io,no)=>!no&&Vr(Fr,Ki,io)?fr+Pn(io):fr,getIndentation:()=>fr,getDelta:Pn,recomputeIndentation:(Fr,Ki)=>{qx.shouldIndentChildNode(d,Ki,jt,k)&&(fr+=Fr?d.indentSize:-d.indentSize,Tr=qx.shouldIndentChildNode(d,jt)?d.indentSize:0)}};function Vr(Fr,Ki,io){switch(Ki){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(io.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(io.kind!==200)return!1;break}return En!==Fr&&!(X2(jt)&&Ki===Ie(jt))}function Pn(Fr){return qx.nodeWillIndentChild(d,jt,Fr,k,!0)?Tr:0}}function Ct(jt,En,fr,Tr,Vr,Pn){if(!J$(e,jt.getStart(k),jt.getEnd()))return;const Fr=ct(jt,fr,Vr,Pn);let Ki=En;for(s_(jt,Mo=>{io(Mo,-1,jt,Fr,fr,Tr,!1)},Mo=>{no(Mo,jt,fr,Fr)});u.isOnToken()&&u.getTokenFullStart()Math.min(jt.end,e.end))break;os(Mo,jt,Fr,jt)}function io(Mo,$i,ki,gc,Wl,Jc,au,qn){if(re.assert(!Hd(Mo)),ny(Mo)||XTe(ki,Mo))return $i;const za=Mo.getStart(k),Ia=k.getLineAndCharacterOfPosition(za).line;let zi=Ia;X2(Mo)&&(zi=k.getLineAndCharacterOfPosition(fie(Mo,k)).line);let na=-1;if(au&&ov(e,ki)&&(na=Pe(za,Mo.end,Wl,e,$i),na!==-1&&($i=na)),!J$(e,Mo.pos,Mo.end))return Mo.ende.end)return $i;if(Au.token.end>za){Au.token.pos>za&&u.skipToStartOf(Mo);break}os(Au,jt,gc,jt)}if(!u.isOnToken()||u.getTokenFullStart()>=e.end)return $i;if(a7(Mo)){const Au=u.readTokenInfo(Mo);if(Mo.kind!==12)return re.assert(Au.token.end===Mo.end,"Token end is child end"),os(Au,jt,gc,Mo),$i}const _a=Mo.kind===170?Ia:Jc,us=dt(Mo,Ia,na,jt,gc,_a);return Ct(Mo,Ki,Ia,zi,us.indentation,us.delta),Ki=jt,qn&&ki.kind===209&&$i===-1&&($i=us.indentation),$i}function no(Mo,$i,ki,gc){re.assert(BM(Mo)),re.assert(!Hd(Mo));const Wl=rPe($i,Mo);let Jc=gc,au=ki;if(!J$(e,Mo.pos,Mo.end)){Mo.endMo.pos)break;if(Ia.token.kind===Wl){au=k.getLineAndCharacterOfPosition(Ia.token.pos).line,os(Ia,$i,gc,$i);let zi;if(we!==-1)zi=we;else{const na=Ux(Ia.token.pos,k);zi=qx.findFirstNonWhitespaceColumn(na,Ia.token.pos,k,d)}Jc=ct($i,ki,zi,d.indentSize)}else os(Ia,$i,gc,$i)}let qn=-1;for(let Ia=0;IaIt(us.pos,_a,!1))}zi!==-1&&na&&(It(Mo.token.pos,zi,qn===1),ve=Ia.line,we=zi)}u.advance(),Ki=$i}}function Lt(jt,En,fr,Tr){for(const Vr of jt){const Pn=ov(e,Vr);switch(Vr.kind){case 3:Pn&&at(Vr,En,!fr),fr=!1;break;case 2:fr&&Pn&&Tr(Vr),fr=!1;break;case 4:fr=!0;break}}return fr}function Ze(jt,En,fr,Tr){for(const Vr of jt)if(ece(Vr.kind)&&ov(e,Vr)){const Pn=k.getLineAndCharacterOfPosition(Vr.pos);Ke(Vr,Pn,En,fr,Tr)}}function Ke(jt,En,fr,Tr,Vr){const Pn=P(jt);let Fr=0;if(!Pn)if(X)Fr=st(jt,En.line,fr,X,ae,ie,Tr,Vr);else{const Ki=k.getLineAndCharacterOfPosition(e.pos);Qt(Ki.line,En.line)}return X=jt,J=jt.end,ie=fr,ae=En.line,Fr}function st(jt,En,fr,Tr,Vr,Pn,Fr,Ki){$.updateContext(Tr,Pn,jt,fr,Fr);const io=h($);let no=$.options.trimTrailingWhitespace!==!1,os=0;return io?bo(io,Mo=>{if(os=Wr(Mo,Tr,Vr,jt,En),Ki)switch(os){case 2:fr.getStart(k)===jt.pos&&Ki.recomputeIndentation(!1,Fr);break;case 1:fr.getStart(k)===jt.pos&&Ki.recomputeIndentation(!0,Fr);break;default:re.assert(os===0)}no=no&&!(Mo.action&16)&&Mo.flags!==1}):no=no&&jt.kind!==1,En!==Vr&&no&&Qt(Vr,En,Tr),os}function It(jt,En,fr){const Tr=qq(En,d);if(fr)Kt(jt,0,Tr);else{const Vr=k.getLineAndCharacterOfPosition(jt),Pn=fR(Vr.line,k);(En!==Yt(Pn,Vr.character)||Et(Tr,Pn))&&Kt(Pn,Vr.character,Tr)}}function Yt(jt,En){let fr=0;for(let Tr=0;Tr0){const Jc=qq(Wl,d);Kt(ki,gc.character,Jc)}else qt(ki,gc.character)}}function Qt(jt,En,fr){for(let Tr=jt;TrPn)continue;const Fr=nn(Vr,Pn);Fr!==-1&&(re.assert(Fr===Vr||!q1(k.text.charCodeAt(Fr-1))),qt(Fr,Pn+1-Fr))}}function nn(jt,En){let fr=En;for(;fr>=jt&&q1(k.text.charCodeAt(fr));)fr--;return fr!==En?fr+1:-1}function Rn(jt){let En=X?X.end:e.pos;for(const fr of jt)ece(fr.kind)&&(EnXW(P,n)||n===P.end&&(P.kind===2||n===e.getFullWidth()))}function rPe(e,n){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===n)return 30;if(e.parameters===n)return 21;break;case 213:case 214:if(e.typeArguments===n)return 30;if(e.arguments===n)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===n)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===n)return 30;break;case 187:return 19}return 0}function Aue(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function qq(e,n){if((!iPe||iPe.tabSize!==n.tabSize||iPe.indentSize!==n.indentSize)&&(iPe={tabSize:n.tabSize,indentSize:n.indentSize},$x=Cue=void 0),n.convertTabsToSpaces){let c;const u=Math.floor(e/n.indentSize),d=e%n.indentSize;return Cue||(Cue=[]),Cue[u]===void 0?(c=Pk(" ",n.indentSize*u),Cue[u]=c):c=Cue[u],d?c+Pk(" ",d):c}else{const c=Math.floor(e/n.tabSize),u=e-c*n.tabSize;let d;return $x||($x=[]),$x[c]===void 0?$x[c]=d=Pk(" ",c):d=$x[c],u?d+Pk(" ",u):d}}var iPe,$x,Cue,Rb=G({"src/services/formatting/formatting.ts"(){xl(),lte()}}),qx,El=G({"src/services/formatting/smartIndenter.ts"(){xl(),lte(),(e=>{let n;(at=>{at[at.Unknown=-1]="Unknown"})(n||(n={}));function i(at,Qt,nn,Rn=!1){if(at>Qt.text.length)return S(nn);if(nn.indentStyle===0)return 0;const cn=bv(at,Qt,void 0,!0),qt=nPe(Qt,at,cn||null);if(qt&&qt.kind===3)return c(Qt,at,nn,qt);if(!cn)return S(nn);if(tce(cn.kind)&&cn.getStart(Qt)<=at&&at=0),cn<=qt)return Ke(fR(qt,at),Qt,at,nn);const Kt=fR(cn,at),{column:wr,character:Wr}=Ze(Kt,Qt,at,nn);return wr===0?wr:at.text.charCodeAt(Kt+Wr)===42?wr-1:wr}function u(at,Qt,nn){let Rn=Qt;for(;Rn>0;){const qt=at.text.charCodeAt(Rn);if(!cP(qt))break;Rn--}const cn=Ux(Rn,at);return Ke(cn,Rn,at,nn)}function d(at,Qt,nn,Rn,cn,qt){let Kt,wr=nn;for(;wr;){if(xAe(wr,Qt,at)&&Yt(qt,wr,Kt,at,!0)){const jt=X(wr,at),En=J(nn,wr,Rn,at),fr=En!==0?cn&&En===2?qt.indentSize:0:Rn!==jt.line?qt.indentSize:0;return E(wr,jt,void 0,fr,at,!0,qt)}const Wr=ct(wr,at,qt,!0);if(Wr!==-1)return Wr;Kt=wr,wr=wr.parent}return S(qt)}function h(at,Qt,nn,Rn){const cn=nn.getLineAndCharacterOfPosition(at.getStart(nn));return E(at,cn,Qt,0,nn,!1,Rn)}e.getIndentationForNode=h;function S(at){return at.baseIndentSize||0}e.getBaseIndentation=S;function E(at,Qt,nn,Rn,cn,qt,Kt){var wr;let Wr=at.parent;for(;Wr;){let jt=!0;if(nn){const Vr=at.getStart(cn);jt=Vrnn.end}const En=P(Wr,at,cn),fr=En.line===Qt.line||ae(Wr,at,Qt.line,cn);if(jt){const Vr=(wr=Fe(at,cn))==null?void 0:wr[0],Pn=!!Vr&&X(Vr,cn).line>En.line;let Fr=ct(at,cn,Kt,Pn);if(Fr!==-1||(Fr=F(at,Wr,Qt,fr,cn,Kt),Fr!==-1))return Fr+Rn}Yt(Kt,Wr,at,cn,qt)&&!fr&&(Rn+=Kt.indentSize);const Tr=ie(Wr,at,Qt.line,cn);at=Wr,Wr=at.parent,Qt=Tr?cn.getLineAndCharacterOfPosition(at.getStart(cn)):En}return Rn+S(Kt)}function P(at,Qt,nn){const Rn=Fe(Qt,nn),cn=Rn?Rn.pos:at.getStart(nn);return nn.getLineAndCharacterOfPosition(cn)}function k(at,Qt,nn){const Rn=Hse(at);return Rn&&Rn.listItemIndex>0?Ct(Rn.list.getChildren(),Rn.listItemIndex-1,Qt,nn):-1}function F(at,Qt,nn,Rn,cn,qt){return(PT(at)||HU(at))&&(Qt.kind===312||!Rn)?Lt(nn,cn,qt):-1}let $;(at=>{at[at.Unknown=0]="Unknown",at[at.OpenBrace=1]="OpenBrace",at[at.CloseBrace=2]="CloseBrace"})($||($={}));function J(at,Qt,nn,Rn){const cn=N6(at,Qt,Rn);if(!cn)return 0;if(cn.kind===19)return 1;if(cn.kind===20){const qt=X(cn,Rn).line;return nn===qt?2:0}return 0}function X(at,Qt){return Qt.getLineAndCharacterOfPosition(at.getStart(Qt))}function ie(at,Qt,nn,Rn){if(!(xd(at)&&ni(at.arguments,Qt)))return!1;const cn=at.expression.getEnd();return xm(Rn,cn).line===nn}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=ie;function ae(at,Qt,nn,Rn){if(at.kind===245&&at.elseStatement===Qt){const cn=qm(at,93,Rn);return re.assert(cn!==void 0),X(cn,Rn).line===nn}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=ae;function ve(at,Qt,nn,Rn){if(ex(at)&&(Qt===at.whenTrue||Qt===at.whenFalse)){const cn=xm(Rn,at.condition.end).line;if(Qt===at.whenTrue)return nn===cn;{const qt=X(at.whenTrue,Rn).line,Kt=xm(Rn,at.whenTrue.end).line;return cn===qt&&Kt===nn}}return!1}e.childIsUnindentedBranchOfConditionalExpression=ve;function we(at,Qt,nn,Rn){if(sk(at)){if(!at.arguments)return!1;const cn=lr(at.arguments,Wr=>Wr.pos===Qt.pos);if(!cn)return!1;const qt=at.arguments.indexOf(cn);if(qt===0)return!1;const Kt=at.arguments[qt-1],wr=xm(Rn,Kt.getEnd()).line;if(nn===wr)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=we;function Fe(at,Qt){return at.parent&&Pe(at.getStart(Qt),at.getEnd(),at.parent,Qt)}e.getContainingList=Fe;function et(at,Qt,nn){return Qt&&Pe(at,at,Qt,nn)}function Pe(at,Qt,nn,Rn){switch(nn.kind){case 183:return cn(nn.typeArguments);case 210:return cn(nn.properties);case 209:return cn(nn.elements);case 187:return cn(nn.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return cn(nn.typeParameters)||cn(nn.parameters);case 177:return cn(nn.parameters);case 263:case 231:case 264:case 265:case 352:return cn(nn.typeParameters);case 214:case 213:return cn(nn.typeArguments)||cn(nn.arguments);case 261:return cn(nn.declarations);case 275:case 279:return cn(nn.elements);case 206:case 207:return cn(nn.elements)}function cn(qt){return qt&&Aj(dt(nn,qt,Rn),at,Qt)?qt:void 0}}function dt(at,Qt,nn){const Rn=at.getChildren(nn);for(let cn=1;cn=0&&Qt=0;Kt--){if(at[Kt].kind===28)continue;if(nn.getLineAndCharacterOfPosition(at[Kt].end).line!==qt.line)return Lt(qt,nn,Rn);qt=X(at[Kt],nn)}return-1}function Lt(at,Qt,nn){const Rn=Qt.getPositionOfLineAndCharacter(at.line,0);return Ke(Rn,Rn+at.character,Qt,nn)}function Ze(at,Qt,nn,Rn){let cn=0,qt=0;for(let Kt=at;Ktx0e,FormattingRequestKind:()=>V9e,RuleAction:()=>ate,RuleFlags:()=>C0e,SmartIndenter:()=>qx,anyContext:()=>A0e,createTextRangeWithKind:()=>tPe,formatDocument:()=>cWe,formatNodeGivenIndentation:()=>AZe,formatOnClosingCurly:()=>sWe,formatOnEnter:()=>Rmt,formatOnOpeningCurly:()=>Lmt,formatOnSemicolon:()=>Mmt,formatSelection:()=>Omt,getAllRules:()=>cZe,getFormatContext:()=>Imt,getFormattingScanner:()=>H9e,getIndentationString:()=>qq,getRangeOfEnclosingComment:()=>nPe});var lte=G({"src/services/_namespaces/ts.formatting.ts"(){U9e(),sZe(),$9e(),Dmt(),wmt(),Rb(),El()}}),xl=G({"src/services/_namespaces/ts.ts"(){md(),B$(),zse(),GAe(),qct(),KAe(),Yct(),Qct(),tlt(),ilt(),olt(),lCe(),llt(),ult(),bDe(),Fqe(),Out(),Yut(),$qe(),If(),Zve(),u9e(),rpt(),m9e(),VF(),u3e(),k$e(),CI(),D9e(),EI(),wke(),b0e(),L9e(),I4(),Hs(),lte()}});function zmt(){return PZe??(PZe=new ZT(At))}function DZe(e,n,i,c,u){let d=n?"DeprecationError: ":"DeprecationWarning: ";return d+=`'${e}' `,d+=c?`has been deprecated since v${c}`:"is deprecated",d+=n?" and can no longer be used.":i?` and will no longer be usable after v${i}.`:".",d+=u?` ${LT(u,[e])}`:"",d}function Gmt(e,n,i,c){const u=DZe(e,!0,n,i,c);return()=>{throw new TypeError(u)}}function _We(e,n,i,c){let u=!1;return()=>{aPe&&!u&&(re.log.warn(DZe(e,!1,n,i,c)),u=!0)}}function IZe(e,n={}){const i=typeof n.typeScriptVersion=="string"?new ZT(n.typeScriptVersion):n.typeScriptVersion??zmt(),c=typeof n.errorAfter=="string"?new ZT(n.errorAfter):n.errorAfter,u=typeof n.warnAfter=="string"?new ZT(n.warnAfter):n.warnAfter,d=typeof n.since=="string"?new ZT(n.since):n.since??u,h=n.error||c&&i.compareTo(c)>=0,S=!u||i.compareTo(u)>=0;return h?Gmt(e,c,d,n.message):S?_We(e,c,d,n.message):ku}function kZe(e,n){return function(){return e(),n.apply(this,arguments)}}function oPe(e,n){const i=IZe((n==null?void 0:n.name)??re.getFunctionName(e),n);return kZe(i,e)}var aPe,PZe,NZe=G({"src/deprecatedCompat/deprecate.ts"(){cPe(),aPe=!0}});function sPe(e,n,i,c){if(Object.defineProperty(d,"name",{...Object.getOwnPropertyDescriptor(d,"name"),value:e}),c)for(const h of Object.keys(c)){const S=+h;!isNaN(S)&&ef(n,`${S}`)&&(n[S]=oPe(n[S],{...c[S],name:e}))}const u=jmt(n,i);return d;function d(...h){const S=u(h),E=S!==void 0?n[S]:void 0;if(typeof E=="function")return E(...h);throw new TypeError("Invalid arguments")}}function jmt(e,n){return i=>{for(let c=0;ef(e,`${c}`)&&ef(n,`${c}`);c++){const u=n[c];if(u(i))return c}}}function O0e(e){return{overload:n=>({bind:i=>({finish:()=>sPe(e,n,i),deprecate:c=>({finish:()=>sPe(e,n,i,c)})})})}}var wZe=G({"src/deprecatedCompat/deprecations.ts"(){cPe(),NZe()}}),RZe=G({"src/deprecatedCompat/5.0/identifierProperties.ts"(){cPe(),NZe(),wSe(e=>{const n=e.getIdentifierConstructor();ef(n.prototype,"originalKeywordKind")||Object.defineProperty(n.prototype,"originalKeywordKind",{get:oPe(function(){return uP(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ef(n.prototype,"isInJSDocNamespace")||Object.defineProperty(n.prototype,"isInJSDocNamespace",{get:oPe(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."})})})}}),cPe=G({"src/deprecatedCompat/_namespaces/ts.ts"(){md(),wZe(),RZe()}}),t=G({"src/typingsInstallerCore/_namespaces/ts.ts"(){md(),B$(),O()}});function r(e,n,i,c){try{const u=ej(n,vl(e,"index.d.ts"),{moduleResolution:2},i);return u.resolvedModule&&u.resolvedModule.resolvedFileName}catch(u){c.isEnabled()&&c.writeLine(`Failed to resolve ${n} in folder '${e}': ${u.message}`);return}}function s(e,n,i,c){let u=!1;for(let d=i.length;d>0;){const h=l(e,n,i,d);d=h.remaining,u=c(h.command)||u}return u}function l(e,n,i,c){const u=i.length-c;let d,h=c;for(;d=`${e} install --ignore-scripts ${(h===i.length?i:i.slice(u,u+h)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(d.length<8e3);)h=h-Math.floor(h/2);return{command:d,remaining:c-h}}function m(e){return`@types/${e}@ts${ot}`}var y,T,D=G({"src/typingsInstallerCore/typingsInstaller.ts"(){t(),O(),y={isEnabled:()=>!1,writeLine:ku},T=class{constructor(e,n,i,c,u,d=y){this.installTypingHost=e,this.globalCachePath=n,this.safeListPath=i,this.typesMapLocation=c,this.throttleLimit=u,this.log=d,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 '${n}', safe file path '${i}', types map path ${c}`),this.processCacheLocation(this.globalCachePath)}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:Ise,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${qW(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const n=kk.discoverTypings(this.installTypingHost,this.log.isEnabled()?i=>this.log.writeLine(i):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(e,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const e=kk.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=kk.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const n=vl(e,"package.json"),i=vl(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(i)){const c=JSON.parse(this.installTypingHost.readFile(n)),u=JSON.parse(this.installTypingHost.readFile(i));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${qW(c)}`),this.log.writeLine(`Loaded content of '${i}':${qW(u)}`)),c.devDependencies&&u.dependencies)for(const d in c.devDependencies){if(!ef(u.dependencies,d))continue;const h=Jg(d);if(!h)continue;const S=r(e,h,this.installTypingHost,this.log);if(!S){this.missingTypingsSet.add(h);continue}const E=this.packageNameToTypingLocation.get(h);if(E){if(E.typingLocation===S)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${h} from '${S}' conflicts with existing typing file '${E}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${h}' => '${S}'`);const P=T8(u.dependencies,d),k=P&&P.version;if(!k)continue;const F={typingLocation:S,version:new ZT(k)};this.packageNameToTypingLocation.set(h,F)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Qo(e,n=>{const i=nj(n);if(this.missingTypingsSet.has(i)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${i}' is in missingTypingsSet - skipping...`);return}const c=kk.validatePackageName(n);if(c!==kk.NameValidationResult.Ok){this.missingTypingsSet.add(i),this.log.isEnabled()&&this.log.writeLine(kk.renderPackageNameValidationFailure(c,n));return}if(!this.typesRegistry.has(i)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: Entry for package '${i}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(i)&&kk.isTypingUpToDate(this.packageNameToTypingLocation.get(i),this.typesRegistry.get(i))){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${i}' already has an up-to-date typing - skipping...`);return}return i})}ensurePackageDirectoryExists(e){const n=vl(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(e,n,i,c){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(c)}`);const u=this.filterTypings(c);if(u.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(e,i));return}this.ensurePackageDirectoryExists(n);const d=this.installRunCount;this.installRunCount++,this.sendResponse({kind:dAe,eventId:d,typingsInstallerVersion:At,projectName:e.projectName});const h=u.map(m);this.installTypingsAsync(d,h,n,S=>{try{if(!S){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(u)}`);for(const P of u)this.missingTypingsSet.add(P);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(h)}`);const E=[];for(const P of u){const k=r(n,P,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(P);continue}const F=this.typesRegistry.get(P),$=new ZT(F[`ts${ot}`]||F[this.latestDistTag]),J={typingLocation:k,version:$};this.packageNameToTypingLocation.set(P,J),E.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(E)}`),this.sendResponse(this.createSetTypings(e,i.concat(E)))}finally{const E={kind:pAe,eventId:d,projectName:e.projectName,packagesToInstall:h,installSuccess:S,typingsInstallerVersion:At};this.sendResponse(E)}})}ensureDirectoryExists(e,n){const i=ws(e);n.directoryExists(i)||this.ensureDirectoryExists(i,n),n.directoryExists(e)||n.createDirectory(e)}watchFiles(e,n){if(!n.length){this.closeWatchers(e);return}const i=this.projectWatchers.get(e),c=new Set(n);!i||gA(c,u=>!i.has(u))||gA(i,u=>!c.has(u))?(this.projectWatchers.set(e,c),this.sendResponse({kind:Ise,projectName:e,files:n})):this.sendResponse({kind:Ise,projectName:e,files:void 0})}createSetTypings(e,n){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:n,unresolvedImports:e.unresolvedImports,kind:_Z}}installTypingsAsync(e,n,i,c){this.pendingRunRequests.unshift({requestId:e,packageNames:n,cwd:i,onRequestCompleted:c}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(n),this.executeWithThrottling()})}}}}}),I={};Oe(I,{TypingsInstaller:()=>T,getNpmCommandForInstallation:()=>l,installNpmPackages:()=>s,typingsName:()=>m});var W=G({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){D()}}),O=G({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){kse(),W()}}),V=G({"src/server/types.ts"(){}});function ee(e,n,i,c){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:n,unresolvedImports:i,projectRootPath:e.getCurrentDirectory(),cachePath:c,kind:"discover"}}function te(e){return hf(e)}function oe(e,n,i){const c=nE(e)?e:vf(e,n);return i(c)}function de(e){return e}function ue(){const e=new Map;return{get(n){return e.get(n)},set(n,i){e.set(n,i)},contains(n){return e.has(n)},remove(n){e.delete(n)}}}function Ne(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Be(e){return`/dev/null/inferredProject${e}*`}function Ve(e){return`/dev/null/autoImportProviderProject${e}*`}function pt(e){return`/dev/null/auxiliaryProject${e}*`}function Le(){return[]}var ht,ke,_t,Dt,Ft=G({"src/server/utilitiesPublic.ts"(){l_(),ht=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(ht||{}),ke=Le(),_t=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(_t||{}),(e=>{function n(){throw new Error("No Project.")}e.ThrowNoProject=n;function i(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=i;function c(u,d){throw new Error(`Project '${d.getProjectName()}' does not contain document '${u}'`)}e.ThrowProjectDoesNotContainDocument=c})(Dt||(Dt={}))}});function it(e){const n=Jg(e);return n==="tsconfig.json"||n==="jsconfig.json"?n:void 0}function Ye(e,n,i){if(!e||e.length===0)return;if(e[0]===n){e.splice(0,1);return}const c=ZS(e,n,Of,i);c>=0&&e.splice(c,1)}var ut,lt,zt=G({"src/server/utilities.ts"(){l_(),$l(),ut=class JDt{constructor(n,i){this.host=n,this.pendingTimeouts=new Map,this.logger=i.hasLevel(3)?i:void 0}schedule(n,i,c){const u=this.pendingTimeouts.get(n);u&&this.host.clearTimeout(u),this.pendingTimeouts.set(n,this.host.setTimeout(JDt.run,i,n,this,c)),this.logger&&this.logger.info(`Scheduled: ${n}${u?", Cancelled earlier one":""}`)}cancel(n){const i=this.pendingTimeouts.get(n);return i?(this.host.clearTimeout(i),this.pendingTimeouts.delete(n)):!1}static run(n,i,c){var u,d;(u=Zh)==null||u.logStartScheduledOperation(n),i.pendingTimeouts.delete(n),i.logger&&i.logger.info(`Running: ${n}`),c(),(d=Zh)==null||d.logStopScheduledOperation()}},lt=class $Dt{constructor(n,i,c){this.host=n,this.delay=i,this.logger=c}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout($Dt.run,this.delay,this))}static run(n){var i,c;n.timerId=void 0,(i=Zh)==null||i.logStartScheduledOperation("GC collect");const u=n.logger.hasLevel(2),d=u&&n.host.getMemoryUsage();if(n.host.gc(),u){const h=n.host.getMemoryUsage();n.logger.perftrc(`GC::before ${d}, after ${h}`)}(c=Zh)==null||c.logStopScheduledOperation()}}}}),Wt,tt,Mn,kn,cr,un,on,pn,Or,Xr,Ut,In,gr,Cr,ei=G({"src/server/protocol.ts"(){Wt=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(Wt||{}),tt=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(tt||{}),Mn=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Mn||{}),kn=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(kn||{}),cr=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(cr||{}),un=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(un||{}),on=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(on||{}),pn=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(pn||{}),Or=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Or||{}),Xr=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e))(Xr||{}),Ut=(e=>(e.Classic="Classic",e.Node="Node",e))(Ut||{}),In=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(In||{}),gr=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(gr||{}),Cr=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(Cr||{})}}),Gn={};Oe(Gn,{ClassificationType:()=>Cr,CommandTypes:()=>Wt,CompletionTriggerKind:()=>un,IndentStyle:()=>on,JsxEmit:()=>Or,ModuleKind:()=>Xr,ModuleResolutionKind:()=>Ut,NewLineKind:()=>In,OrganizeImportsMode:()=>tt,PollingWatchKind:()=>cr,ScriptTarget:()=>gr,SemicolonPreference:()=>pn,WatchDirectoryKind:()=>kn,WatchFileKind:()=>Mn});var Ur=G({"src/server/_namespaces/ts.server.protocol.ts"(){ei()}});function so(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Jg(e)[0]==="^"||e.includes(":^")&&!e.includes(qp)}function ho(e){return!e||Jr(e)?Dt.ThrowNoProject():e}function di(e){re.assert(typeof e=="number",`Expected position ${e} to be a number.`),re.assert(e>=0,"Expected position to be non-negative.")}function Nc(e){re.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),re.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),re.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),re.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var ha,ro,Gs=G({"src/server/scriptInfo.ts"(){l_(),$l(),ha=class{constructor(e,n,i){this.host=e,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=i||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(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,n,i){this.switchToScriptVersionCache().edit(e,n-e,i),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return re.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=Ij(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:n,fileSize:i}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},c=this.reload(n);return this.fileSize=i,this.ownFileText=!e||e===this.info.fileName,c}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 e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=mZ.fromString(re.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(e);const i=this.getLineMap();return e<=i.length?{absolutePosition:i[e-1],lineText:this.text.substring(i[e-1],i[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(e);const i=this.getLineMap(),c=i[e],u=e+1n===void 0?n=this.host.readFile(i)||"":n;if(!vR(this.info.fileName)){const u=this.host.getFileSize?this.host.getFileSize(i):c().length;if(u>x_)return re.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${i} for info ${this.info.fileName}: fileSize: ${u}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(i,u),{text:"",fileSize:u}}return{text:c()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=aw.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=aw.fromString(re.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(re.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return re.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=RM(re.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:i=>e.getAbsolutePositionAndLineText(i+1).lineText};const n=this.getLineMap();return kae(this.text,n)}},ro=class{constructor(e,n,i,c,u,d){this.host=e,this.fileName=n,this.scriptKind=i,this.hasMixedContent=c,this.path=u,this.containingProjects=[],this.isDynamic=so(n),this.textStorage=new ha(e,this,d),(c||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=i||EY(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){re.assert(!!this.containingProjects.length);const e=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=e.toPath(n),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const n=!this.isAttached(e);return n&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return ni(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:A8(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){vc(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const n=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),n&&!sl(e)&&e.addMissingFileRoot(n.fileName)}g_(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Dt.ThrowNoProject();case 1:return ho(this.containingProjects[0]);default:let e,n,i,c,u;for(let d=0;d!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,Jr)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,n,i){return this.textStorage.lineOffsetToPosition(e,n,i)}positionToLineOffset(e){di(e);const n=this.textStorage.positionToLineOffset(e);return Nc(n),n}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!As(this.sourceMapFilePath)&&(YE(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Oc(e,n){if(e===n||(e||ke).length===0&&(n||ke).length===0)return!0;const i=new Map;let c=0;for(const u of e)i.get(u)!==!0&&(i.set(u,!0),c++);for(const u of n){const d=i.get(u);if(d===void 0)return!1;d===!0&&(i.set(u,!1),c--)}return c===0}function _u(e,n){return e.enable!==n.enable||!Oc(e.include,n.include)||!Oc(e.exclude,n.exclude)}function Ku(e,n){return TP(e)!==TP(n)}function al(e,n){return e===n?!1:!fv(e,n)}var Rr,mc,Ea=G({"src/server/typingsCache.ts"(){l_(),$l(),Rr={isKnownTypesPackageName:bg,installPackage:Na,enqueueInstallTypingsRequest:ku,attach:ku,onProjectClosed:ku,globalTypingsCacheLocation:void 0},mc=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,n,i){const c=e.getTypeAcquisition();if(!c||!c.enable)return;const u=this.perProjectCache.get(e.getProjectName());(i||!u||_u(c,u.typeAcquisition)||Ku(e.getCompilationSettings(),u.compilerOptions)||al(n,u.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:c,typings:u?u.typings:ke,unresolvedImports:n,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,c,n))}updateTypingsForProject(e,n,i,c,u){const d=fN(u);return this.perProjectCache.set(e,{compilerOptions:n,typeAcquisition:i,typings:d,unresolvedImports:c,poisoned:!1}),!i||!i.enable?ke:d}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName()),this.installer.onProjectClosed(e)}}}});function Fi(e,n=!1){const i={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 c of e){const u=n?c.textStorage.getTelemetryFileSize():0;switch(c.scriptKind){case 1:i.js+=1,i.jsSize+=u;break;case 2:i.jsx+=1,i.jsxSize+=u;break;case 3:Zb(c.fileName)?(i.dts+=1,i.dtsSize+=u):(i.ts+=1,i.tsSize+=u);break;case 4:i.tsx+=1,i.tsxSize+=u;break;case 7:i.deferred+=1,i.deferredSize+=u;break}}return i}function ta(e){const n=Fi(e.getScriptInfos());return n.js>0&&n.ts===0&&n.tsx===0}function $a(e){const n=Fi(e.getRootScriptInfos());return n.ts===0&&n.tsx===0}function jc(e){const n=Fi(e.getScriptInfos());return n.ts===0&&n.tsx===0}function Xu(e){return!e.some(n=>mm(n,".ts")&&!Zb(n)||mm(n,".tsx"))}function Lo(e){return e.generatedFilePath!==void 0}function To(e,n){var i,c;const u=e.getSourceFiles();(i=ps)==null||i.push(ps.Phase.Session,"getUnresolvedImports",{count:u.length});const d=e.getTypeChecker().getAmbientModules().map(S=>S2(S.getName())),h=OD(ea(u,S=>Aa(e,S,d,n)));return(c=ps)==null||c.pop(),h}function Aa(e,n,i,c){return Jw(c,n.path,()=>{let u;return e.forEachResolvedModule(({resolvedModule:d},h)=>{(!d||!G7(d.extension))&&!Kv(h)&&!i.some(S=>S===h)&&(u=ur(u,fae(h).packageName))},n),u||ke})}function sl(e){return e.projectKind===0}function vc(e){return e.projectKind===1}function er(e){return e.projectKind===2}function Jr(e){return e.projectKind===3||e.projectKind===4}var li,Ir,_o,xt,Kn,gn,qr,mt,_r=G({"src/server/project.ts"(){l_(),l_(),$l(),li=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(li||{}),Ir=class qDt{constructor(n,i,c,u,d,h,S,E,P,k,F){switch(this.projectKind=i,this.projectService=c,this.documentRegistry=u,this.compilerOptions=S,this.compileOnSaveEnabled=E,this.watchOptions=P,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=bg,this.dirty=!1,this.typingFiles=ke,this.moduleSpecifierCache=GT(this),this.createHash=wc(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=kk.nonRelativeModuleNameForTypingCache,this.projectName=n,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(F),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new gye(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(d||TP(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=lye(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),c.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:re.assertNever(c.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const $=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=J=>this.writeLog(J):$.trace&&(this.trace=J=>$.trace(J)),this.realpath=wc($,$.realpath),this.resolutionCache=Wxe(this,this.currentDirectory,!0),this.languageService=_ye(this,this.documentRegistry,this.projectService.serverMode),h&&this.disableLanguageService(h),this.markAsDirty(),Jr(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(n){}isNonTsProject(){return Qa(this),jc(this)}isJsOnlyProject(){return Qa(this),ta(this)}static resolveModule(n,i,c,u){return qDt.importServicePluginSync({name:n},[i],c,u).resolvedModule}static importServicePluginSync(n,i,c,u){re.assertIsDefined(c.require);let d,h;for(const S of i){const E=$1(c.resolvePath(vl(S,"node_modules")));u(`Loading ${n.name} from ${S} (resolved to ${E})`);const P=c.require(E,n.name);if(!P.error){h=P.module;break}const k=P.error.stack||P.error.message||JSON.stringify(P.error);(d??(d=[])).push(`Failed to load module '${n.name}' from ${E}: ${k}`)}return{pluginConfigEntry:n,resolvedModule:h,errorLogs:d}}static async importServicePluginAsync(n,i,c,u){re.assertIsDefined(c.importPlugin);let d,h;for(const S of i){const E=vl(S,"node_modules");u(`Dynamically importing ${n.name} from ${S} (resolved to ${E})`);let P;try{P=await c.importPlugin(E,n.name)}catch(F){P={module:void 0,error:F}}if(!P.error){h=P.module;break}const k=P.error.stack||P.error.message||JSON.stringify(P.error);(d??(d=[])).push(`Failed to dynamically import module '${n.name}' from ${E}: ${k}`)}return{pluginConfigEntry:n,resolvedModule:h,errorLogs:d}}isKnownTypesPackageName(n){return this.typingsCache.isKnownTypesPackageName(n)}installPackage(n){return this.typingsCache.installPackage({...n,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=zde(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 Yn;let n;return this.rootFilesMap.forEach(i=>{(this.languageServiceEnabled||i.info&&i.info.isScriptOpen())&&(n||(n=[])).push(i.fileName)}),Oi(n,this.typingFiles)||Yn}getOrCreateScriptInfoAndAttachToProject(n){const i=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost);if(i){const c=this.rootFilesMap.get(i.path);c&&c.info!==i&&(this.rootFiles.push(i),c.info=i),i.attachToProject(this)}return i}getScriptKind(n){const i=this.projectService.getScriptInfoForPath(this.toPath(n));return i&&i.scriptKind}getScriptVersion(n){const i=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost);return i&&i.getLatestVersion()}getScriptSnapshot(n){const i=this.getOrCreateScriptInfoAndAttachToProject(n);if(i)return i.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const n=ws(hf(this.projectService.getExecutingFilePath()));return vl(n,$D(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(n,i,c,u,d){return this.directoryStructureHost.readDirectory(n,i,c,u,d)}readFile(n){return this.projectService.host.readFile(n)}writeFile(n,i){return this.projectService.host.writeFile(n,i)}fileExists(n){const i=this.toPath(n);return!this.isWatchedMissingFile(i)&&this.directoryStructureHost.fileExists(n)}resolveModuleNameLiterals(n,i,c,u,d,h){return this.resolutionCache.resolveModuleNameLiterals(n,i,c,u,d,h)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(n,i,c,u,d,h){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(n,i,c,u,d,h)}resolveLibrary(n,i,c,u){return this.resolutionCache.resolveLibrary(n,i,c,u)}directoryExists(n){return this.directoryStructureHost.directoryExists(n)}getDirectories(n){return this.directoryStructureHost.getDirectories(n)}getCachedDirectoryStructureHost(){}toPath(n){return gm(n,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(n,i,c){return this.projectService.watchFactory.watchDirectory(n,i,c,this.projectService.getWatchOptions(this),r0.FailedLookupLocations,this)}watchAffectingFileLocation(n,i){return this.projectService.watchFactory.watchFile(n,i,2e3,this.projectService.getWatchOptions(this),r0.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(n,i,c){return this.projectService.watchFactory.watchDirectory(n,i,c,this.projectService.getWatchOptions(this),r0.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(n){return this.projectService.openFiles.has(n)}writeLog(n){this.projectService.logger.info(n)}log(n){this.writeLog(n)}error(n){this.projectService.logger.msg(n,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return gi(this.projectErrors,n=>!n.file)||ke}getAllProjectErrors(){return this.projectErrors||ke}setProjectErrors(n){this.projectErrors=n}getLanguageService(n=!0){return n&&Qa(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(n,i){return this.projectService.getDocumentPositionMapper(this,n,i)}getSourceFileLike(n){return this.projectService.getSourceFileLike(n,this)}shouldEmitFile(n){return n&&!n.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(n.path)}getCompileOnSaveAffectedFileList(n){return this.languageServiceEnabled?(Qa(this),this.builderState=cD.create(this.program,this.builderState,!0),Qo(cD.getFilesAffectedBy(this.builderState,this.program,n.path,this.cancellationToken,this.projectService.host),i=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(i.path))?i.fileName:void 0)):[]}emitFile(n,i){if(!this.languageServiceEnabled||!this.shouldEmitFile(n))return{emitSkipped:!0,diagnostics:ke};const{emitSkipped:c,diagnostics:u,outputFiles:d}=this.getLanguageService().getEmitOutput(n.fileName);if(!c){for(const h of d){const S=vf(h.name,this.currentDirectory);i(S,h.text,h.writeByteOrderMark)}if(this.builderState&&gv(this.compilerOptions)){const h=d.filter(S=>Zb(S.name));if(h.length===1){const S=this.program.getSourceFile(n.fileName),E=this.projectService.host.createHash?this.projectService.host.createHash(h[0].text):Lz(h[0].text);cD.updateSignatureOfFile(this.builderState,E,S.resolvedPath)}}}return{emitSkipped:c,diagnostics:u}}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 n of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(n.fileName);this.program.forEachResolvedProjectReference(n=>this.detachScriptInfoFromProject(n.sourceFile.fileName)),this.program=void 0}}disableLanguageService(n){this.languageServiceEnabled&&(re.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=n,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(n){return!n||!n.include?n:{...n,include:this.removeExistingTypings(n.include)}}getExternalFiles(n){return fN(ea(this.plugins,i=>{if(typeof i.module.getExternalFiles=="function")try{return i.module.getExternalFiles(this,n||0)}catch(c){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${c}`),c.stack&&this.projectService.logger.info(c.stack)}}))}getSourceFile(n){if(this.program)return this.program.getSourceFileByPath(n)}getSourceFileOrConfigFile(n){const i=this.program.getCompilerOptions();return n===i.configFilePath?i.configFile:this.getSourceFile(n)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ot(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n));for(const n of this.rootFiles)n.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&&(Mh(this.missingFilesMap,Ib),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(n){const i=this.projectService.getScriptInfo(n);i&&!this.isRoot(i)&&i.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(n=>n.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Vn(this.program.getSourceFiles(),n=>{const i=this.projectService.getScriptInfoForPath(n.resolvedPath);return re.assert(!!i,"getScriptInfo",()=>`scriptInfo for a file '${n.fileName}' Path: '${n.path}' / '${n.resolvedPath}' is missing.`),i}):this.rootFiles}getExcludedFiles(){return ke}getFileNames(n,i){if(!this.program)return[];if(!this.languageServiceEnabled){let u=this.getRootFiles();if(this.compilerOptions){const d=pDe(this.compilerOptions);d&&(u||(u=[])).push(d)}return u}const c=[];for(const u of this.program.getSourceFiles())n&&this.program.isSourceFileFromExternalLibrary(u)||c.push(u.fileName);if(!i){const u=this.program.getCompilerOptions().configFile;if(u&&(c.push(u.fileName),u.extendedSourceFiles))for(const d of u.extendedSourceFiles)c.push(d)}return c}getFileNamesWithRedirectInfo(n){return this.getFileNames().map(i=>({fileName:i,isSourceOfProjectReferenceRedirect:n&&this.isSourceOfProjectReferenceRedirect(i)}))}hasConfigFile(n){if(this.program&&this.languageServiceEnabled){const i=this.program.getCompilerOptions().configFile;if(i){if(n===i.fileName)return!0;if(i.extendedSourceFiles){for(const c of i.extendedSourceFiles)if(n===c)return!0}}}return!1}containsScriptInfo(n){if(this.isRoot(n))return!0;if(!this.program)return!1;const i=this.program.getSourceFileByPath(n.path);return!!i&&i.resolvedPath===n.path}containsFile(n,i){const c=this.projectService.getScriptInfoForNormalizedPath(n);return c&&(c.isScriptOpen()||!i)?this.containsScriptInfo(c):!1}isRoot(n){var i;return this.rootFilesMap&&((i=this.rootFilesMap.get(n.path))==null?void 0:i.info)===n}addRoot(n,i){re.assert(!this.isRoot(n)),this.rootFiles.push(n),this.rootFilesMap.set(n.path,{fileName:i||n.fileName,info:n}),n.attachToProject(this),this.markAsDirty()}addMissingFileRoot(n){const i=this.projectService.toPath(n);this.rootFilesMap.set(i,{fileName:n}),this.markAsDirty()}removeFile(n,i,c){this.isRoot(n)&&this.removeRoot(n),i?this.resolutionCache.removeResolutionsOfFile(n.path):this.resolutionCache.invalidateResolutionOfFile(n.path),this.cachedUnresolvedImportsPerFile.delete(n.path),c&&n.detachFromProject(this),this.markAsDirty()}registerFileUpdate(n){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(n)}markFileAsDirty(n){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(n)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var n;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(n=this.autoImportProviderHost)==null||n.markAsDirty()}onPackageJsonChange(n){var i;(i=this.packageJsonsForAutoImport)!=null&&i.has(n)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(n){this.hasAddedorRemovedFiles=!0,n&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var n,i,c,u,d;(n=ps)==null||n.push(ps.Phase.Session,"updateGraph",{name:this.projectName,kind:li[this.projectKind]}),(i=Zh)==null||i.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const h=this.updateGraphWorker(),S=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const E=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||ke;for(const k of E)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((h||E.length)&&(this.lastCachedUnresolvedImportsList=To(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,S)):this.lastCachedUnresolvedImportsList=void 0;const P=this.projectProgramVersion===0&&h;return h&&this.projectProgramVersion++,S&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(c=this.autoImportProviderHost)==null||c.markAsDirty()),P&&this.getPackageJsonAutoImportProvider(),(u=Zh)==null||u.logStopUpdateGraph(),(d=ps)==null||d.pop(),!h}updateTypingFiles(n){zD(n,this.typingFiles,Xw(!this.useCaseSensitiveFileNames()),ku,i=>this.detachScriptInfoFromProject(i))&&(this.typingFiles=n,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Mh(this.typingWatchers,Ib),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:dZ})}watchTypingLocations(n){if(!n){this.typingWatchers.isInvoked=!1;return}if(!n.length){this.closeWatchingTypingLocations();return}const i=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const c=(u,d)=>{const h=this.toPath(u);i.delete(h),this.typingWatchers.has(h)||this.typingWatchers.set(h,d==="FileWatcher"?this.projectService.watchFactory.watchFile(u,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),r0.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(u,S=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!mm(S,".json"))return this.writeLog("Ignoring files that are not *.json");if(Rv(S,vl(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),r0.TypingInstallerLocationDirectory,this))};for(const u of n){const d=Jg(u);if(d==="package.json"||d==="bower.json"){c(u,"FileWatcher");continue}if(OE(this.currentDirectory,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){const h=u.indexOf(qp,this.currentDirectory.length+1);c(h!==-1?u.substr(0,h):u,"DirectoryWatcher");continue}if(OE(this.projectService.typingsInstaller.globalTypingsCacheLocation,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){c(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}c(u,"DirectoryWatcher")}i.forEach((u,d)=>{u.close(),this.typingWatchers.delete(d)})}getCurrentProgram(){return this.program}removeExistingTypings(n){const i=Qpe(this.getCompilerOptions(),this.directoryStructureHost);return n.filter(c=>!i.includes(c))}updateGraphWorker(){var n,i;const c=this.languageService.getCurrentProgram();re.assert(c===this.program),re.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const u=H_(),{hasInvalidatedResolutions:d,hasInvalidatedLibResolutions:h}=this.resolutionCache.createHasInvalidatedResolutions(bg,bg);this.hasInvalidatedResolutions=d,this.hasInvalidatedLibResolutions=h,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(n=ps)==null||n.push(ps.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,c),(i=ps)==null||i.pop(),re.assert(c===void 0||this.program!==void 0);let S=!1;if(this.program&&(!c||this.program!==c&&this.program.structureIsReused!==2)){if(S=!0,c){for(const k of c.getSourceFiles()){const F=this.program.getSourceFileByPath(k.resolvedPath);(!F||k.resolvedPath===k.path&&F.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}c.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(jme(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=Ng(this.compilerOptions);Lo(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(wg(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((F,$)=>{const J=this.program.getSourceFileByPath($);(!J||J.resolvedPath!==$||!this.isValidGeneratedFileWatcher(Mie(J.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),F))&&(YE(F),this.generatedFilesMap.delete($))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||c&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&c&&this.program&&gA(this.changedFilesForExportMapCache,k=>{const F=c.getSourceFileByPath(k),$=this.program.getSourceFileByPath(k);return!F||!$?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(F,$,!!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 E=this.externalFiles||ke;this.externalFiles=this.getExternalFiles(),zD(this.externalFiles,E,Xw(!this.useCaseSensitiveFileNames()),k=>{const F=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);F==null||F.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const P=H_()-u;return this.sendPerformanceEvent("UpdateGraph",P),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${S}${this.program?` structureIsReused:: ${gX[this.program.structureIsReused]}`:""} Elapsed: ${P}ms`),this.projectService.logger.isTestLogger?this.program!==c?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==c&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),S}sendPerformanceEvent(n,i){this.projectService.sendPerformanceEvent(n,i)}detachScriptInfoFromProject(n,i,c){const u=this.projectService.getScriptInfo(n);u&&(u.detachFromProject(this),i||this.resolutionCache.removeResolutionsOfFile(u.path,c))}addMissingFileWatcher(n){var i;if(vc(this)){const u=this.projectService.configFileExistenceInfoCache.get(n);if((i=u==null?void 0:u.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return L$}const c=this.projectService.watchFactory.watchFile(n,(u,d)=>{vc(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(u,n,d),d===0&&this.missingFilesMap.has(n)&&(this.missingFilesMap.delete(n),c.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),r0.MissingFile,this);return c}isWatchedMissingFile(n){return!!this.missingFilesMap&&this.missingFilesMap.has(n)}addGeneratedFileWatch(n,i){if(Ng(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(n));else{const c=this.toPath(i);if(this.generatedFilesMap){if(Lo(this.generatedFilesMap)){re.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(c))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(c,this.createGeneratedFileWatcher(n))}}createGeneratedFileWatcher(n){return{generatedFilePath:this.toPath(n),watcher:this.projectService.watchFactory.watchFile(n,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),r0.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(n,i){return this.toPath(n)===i.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Lo(this.generatedFilesMap)?YE(this.generatedFilesMap):Mh(this.generatedFilesMap,YE),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(n){const i=this.projectService.getScriptInfoForPath(this.toPath(n));return i&&!i.isAttached(this)?Dt.ThrowProjectDoesNotContainDocument(n,this):i}getScriptInfo(n){return this.projectService.getScriptInfo(n)}filesToString(n){return this.filesToStringWorker(n,!0,!1)}filesToStringWorker(n,i,c){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`:c.prefix}}getInsertNodeAfterOptionsWorker(n){switch(n.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 re.assert(dl(n)||c7(n)),{suffix:this.newLineCharacter}}}insertName(n,i,c){if(re.assert(!i.name),i.kind===219){const u=qm(i,39,n),d=qm(i,21,n);d?(this.insertNodesAt(n,d.getStart(n),[he.createToken(100),he.createIdentifier(c)],{joiner:" "}),UR(this,n,u)):(this.insertText(n,Dl(i.parameters).getStart(n),`function ${c}(`),this.replaceRange(n,u,he.createToken(22))),i.body.kind!==241&&(this.insertNodesAt(n,i.body.getStart(n),[he.createToken(19),he.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,i.body.end,[he.createToken(27),he.createToken(20)],{joiner:" "}))}else{const u=qm(i,i.kind===218?100:86,n).end;this.insertNodeAt(n,u,he.createIdentifier(c),{prefix:" "})}}insertExportModifier(n,i){this.insertText(n,i.getStart(n),"export ")}insertImportSpecifierAtIndex(n,i,c,u){const d=c.elements[u-1];d?this.insertNodeInListAfter(n,d,i):this.insertNodeBefore(n,c.elements[0],i,!mv(c.elements[0].getStart(),c.parent.parent.getStart(),n))}insertNodeInListAfter(n,i,c,u=V0.SmartIndenter.getContainingList(i,n)){if(!u){re.fail("node is not a list element");return}const d=y9(u,i);if(d<0)return;const h=i.getEnd();if(d!==u.length-1){const S=Lf(n,i.end);if(S&&UF(i,S)){const E=u[d+1],P=Bke(n.text,E.getFullStart()),k=`${Cf(S.kind)}${n.text.substring(S.end,P)}`;this.insertNodesAt(n,P,[c],{suffix:k})}}else{const S=i.getStart(n),E=Ux(S,n);let P,k=!1;if(u.length===1)P=28;else{const F=bv(i.pos,n);P=UF(i,F)?F.kind:28,k=Ux(u[d-1].getStart(n),n)!==E}if(nZe(n.text,i.end)&&(k=!0),k){this.replaceRange(n,tv(h),he.createToken(P));const F=V0.SmartIndenter.findFirstNonWhitespaceColumn(E,S,n,this.formatContext.options);let $=Ff(n.text,h,!0,!1);for(;$!==h&&Sb(n.text.charCodeAt($-1));)$--;this.replaceRange(n,tv($),c,{indentation:F,prefix:this.newLineCharacter})}else this.replaceRange(n,tv(h),c,{prefix:`${Cf(P)} `})}}parenthesizeExpression(n,i){this.replaceRange(n,coe(i),he.createParenthesizedExpression(i))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:n,sourceFile:i})=>{const[c,u]=lmt(n,i);if(c!==void 0&&u!==void 0){const d=Gke(n).length===0,h=mv(c,u,i);d&&h&&c!==u-1&&this.deleteRange(i,tv(c,u-1)),h&&this.insertText(i,u-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const n=new Set;for(const{sourceFile:i,node:c}of this.deletedNodes)this.deletedNodes.some(u=>u.sourceFile===i&&Use(u.node,c))||(ls(c)?this.deleteRange(i,loe(i,c)):Uke.deleteDeclaration(this,n,i,c));n.forEach(i=>{const c=i.getSourceFile(),u=V0.SmartIndenter.getContainingList(i,c);if(i!==yl(u))return;const d=Ms(u,h=>!n.has(h),u.length-2);d!==-1&&this.deleteRange(c,{pos:u[d].end,end:B9e(c,u[d+1])})})}getChanges(n){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const i=S0e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,n);return this.newFileChanges&&this.newFileChanges.forEach((c,u)=>{i.push(S0e.newFileChanges(u,c,this.newLineCharacter,this.formatContext))}),i}createNewFile(n,i,c){this.insertStatementsInNewFile(i,c,n)}},(e=>{function n(S,E,P,k){return Qo(BD(S,F=>F.sourceFile.path),F=>{const $=F[0].sourceFile,J=nh(F,(ie,ae)=>ie.range.pos-ae.range.pos||ie.range.end-ae.range.end);for(let ie=0;ie`${JSON.stringify(J[ie].range)} and ${JSON.stringify(J[ie+1].range)}`);const X=Qo(J,ie=>{const ae=PP(ie.range),ve=ie.kind===1?ts(Gg(ie.node))??ie.sourceFile:ie.kind===2?ts(Gg(ie.nodes[0]))??ie.sourceFile:ie.sourceFile,we=u(ie,ve,$,E,P,k);if(!(ae.length===we.length&&lq(ve.text,we,ae.start)))return LZ(ae,we)});return X.length>0?{fileName:$.fileName,textChanges:X}:void 0})}e.getTextChangesFromChanges=n;function i(S,E,P,k){const F=c(EY(S),E,P,k);return{fileName:S,textChanges:[LZ(p1(0,0),F)],isNewFile:!0}}e.newFileChanges=i;function c(S,E,P,k){const F=ea(E,X=>X.statements.map(ie=>ie===4?"":h(ie,X.oldFile,P).text)).join(P),$=eQ("any file name",F,{languageVersion:99,jsDocParsingMode:1},!0,S),J=V0.formatDocument($,k);return bue(F,J)+P}e.newFileChangesWorker=c;function u(S,E,P,k,F,$){var J;if(S.kind===0)return"";if(S.kind===3)return S.text;const{options:X={},range:{pos:ie}}=S,ae=Fe=>d(Fe,E,P,ie,X,k,F,$),ve=S.kind===2?S.nodes.map(Fe=>DM(ae(Fe),k)).join(((J=S.options)==null?void 0:J.joiner)||k):ae(S.node),we=X.indentation!==void 0||Ux(ie,E)===ie?ve:ve.replace(/^\s+/,"");return(X.prefix||"")+we+(!X.suffix||h_(we,X.suffix)?"":X.suffix)}function d(S,E,P,k,{indentation:F,prefix:$,delta:J},X,ie,ae){const{node:ve,text:we}=h(S,E,X);ae&&ae(ve,we);const Fe=uq(ie,E),et=F!==void 0?F:V0.SmartIndenter.getIndentation(k,P,Fe,$===X||Ux(k,E)===k);J===void 0&&(J=V0.SmartIndenter.shouldIndentChildNode(Fe,S)&&Fe.indentSize||0);const Pe={text:we,getLineAndCharacterOfPosition(Ie){return xm(this,Ie)}},dt=V0.formatNodeGivenIndentation(ve,Pe,E.languageVariant,et,J,{...ie,options:Fe});return bue(we,dt)}function h(S,E,P){const k=rZe(P),F=Fj(P);return F3({newLine:F,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,S,E,k),{text:k.getText(),node:jke(S)}}e.getNonformattedText=h})(S0e||(S0e={})),E0e={...sx,factory:xG(sx.factory.flags|1,sx.factory.baseFactory)},(e=>{function n(d,h,S,E){switch(E.kind){case 169:{const J=E.parent;$m(J)&&J.parameters.length===1&&!qm(J,21,S)?d.replaceNodeWithText(S,E,"()"):uD(d,h,S,E);break}case 272:case 271:const P=S.imports.length&&E===Dl(S.imports).parent||E===lr(S.statements,W8);UR(d,S,E,{leadingTriviaOption:P?0:NT(E)?2:3});break;case 208:const k=E.parent;k.kind===207&&E!==yl(k.elements)?UR(d,S,E):uD(d,h,S,E);break;case 260:u(d,h,S,E);break;case 168:uD(d,h,S,E);break;case 276:const $=E.parent;$.elements.length===1?c(d,S,$):uD(d,h,S,E);break;case 274:c(d,S,E);break;case 27:UR(d,S,E,{trailingTriviaOption:0});break;case 100:UR(d,S,E,{leadingTriviaOption:0});break;case 263:case 262:UR(d,S,E,{leadingTriviaOption:NT(E)?2:3});break;default:E.parent?Tk(E.parent)&&E.parent.name===E?i(d,S,E.parent):xd(E.parent)&&ni(E.parent.arguments,E)?uD(d,h,S,E):UR(d,S,E):UR(d,S,E)}}e.deleteDeclaration=n;function i(d,h,S){if(!S.namedBindings)UR(d,h,S.parent);else{const E=S.name.getStart(h),P=Lf(h,S.name.end);if(P&&P.kind===28){const k=Ff(h.text,P.end,!1,!0);d.deleteRange(h,{pos:E,end:k})}else UR(d,h,S.name)}}function c(d,h,S){if(S.parent.name){const E=re.checkDefined(Lf(h,S.pos-1));d.deleteRange(h,{pos:E.getStart(h),end:S.end})}else{const E=oC(S,272);UR(d,h,E)}}function u(d,h,S,E){const{parent:P}=E;if(P.kind===299){d.deleteNodeRange(S,qm(P,21,S),qm(P,22,S));return}if(P.declarations.length!==1){uD(d,h,S,E);return}const k=P.parent;switch(k.kind){case 250:case 249:d.replaceNode(S,E,he.createObjectLiteralExpression());break;case 248:UR(d,S,P);break;case 243:UR(d,S,k,{leadingTriviaOption:NT(k)?2:3});break;default:re.assertNever(k)}}})(Uke||(Uke={}))}}),zs={};Oe(zs,{ChangeTracker:()=>Hq,LeadingTriviaOption:()=>Uq,TrailingTriviaOption:()=>T0e,applyChanges:()=>bue,assignPositionsToNode:()=>jke,createWriter:()=>rZe,deleteNode:()=>UR,isThisTypeAnnotatable:()=>zke,isValidLocationToAddComment:()=>oZe});var Hs=G({"src/services/_namespaces/ts.textChanges.ts"(){j9e()}}),V9e,x0e,U9e=G({"src/services/formatting/formattingContext.ts"(){xl(),V9e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(V9e||{}),x0e=class{constructor(e,n,i){this.sourceFile=e,this.formattingRequestKind=n,this.options=i}updateContext(e,n,i,c,u){this.currentTokenSpan=re.checkDefined(e),this.currentTokenParent=re.checkDefined(n),this.nextTokenSpan=re.checkDefined(i),this.nextTokenParent=re.checkDefined(c),this.contextNode=re.checkDefined(u),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 e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}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(e){const n=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,i=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return n===i}BlockIsOnOneLine(e){const n=qm(e,19,this.sourceFile),i=qm(e,20,this.sourceFile);if(n&&i){const c=this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line,u=this.sourceFile.getLineAndCharacterOfPosition(i.getStart(this.sourceFile)).line;return c===u}return!1}}}});function H9e(e,n,i,c,u){const d=n===1?J9e:Hke;d.setText(e),d.resetTokenState(i);let h=!0,S,E,P,k,F;const $=u({advance:J,readTokenInfo:Pe,readEOFTokenRange:Ie,isOnToken:ct,isOnEOF:Ct,getCurrentLeadingTrivia:()=>S,lastTrailingTriviaWasNewLine:()=>h,skipToEndOf:Ze,skipToStartOf:Ke,getTokenFullStart:()=>(F==null?void 0:F.token.pos)??d.getTokenStart(),getStartPos:()=>(F==null?void 0:F.token.pos)??d.getTokenStart()});return F=void 0,d.setText(void 0),$;function J(){F=void 0,d.getTokenFullStart()!==i?h=!!E&&yl(E).kind===4:d.scan(),S=void 0,E=void 0;let It=d.getTokenFullStart();for(;It(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(ate||{}),C0e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(C0e||{})}});function cZe(){const e=[];for(let dt=0;dt<=165;dt++)dt!==1&&e.push(dt);function n(...dt){return{tokens:e.filter(Ie=>!dt.some(ct=>ct===Ie)),isSpecific:!1}}const i={tokens:e,isSpecific:!1},c=Yc([...e,3]),u=Yc([...e,1]),d=q9e(83,165),h=q9e(30,79),S=[103,104,165,130,142,152],E=[46,47,55,54],P=[9,10,80,21,23,19,110,105],k=[80,21,110,105],F=[80,22,24,105],$=[80,21,110,105],J=[80,22,24,105],X=[2,3],ie=[80,...eee],ae=c,ve=Yc([80,3,86,95,102]),we=Yc([22,3,92,113,98,93]),Fe=[ol("IgnoreBeforeComment",i,X,A0e,1),ol("IgnoreAfterLineComment",2,i,A0e,1),ol("NotSpaceBeforeColon",i,59,[qu,FP,Tue],16),ol("SpaceAfterColon",59,i,[qu,FP,ymt],4),ol("NoSpaceBeforeQuestionMark",i,58,[qu,FP,Tue],16),ol("SpaceAfterQuestionMarkInConditionalOperator",58,i,[qu,Q9e],4),ol("NoSpaceAfterQuestionMark",58,i,[qu,umt],16),ol("NoSpaceBeforeDot",i,[25,29],[qu,Cmt],16),ol("NoSpaceAfterDot",[25,29],i,[qu],16),ol("NoSpaceBetweenImportParenInImportType",102,21,[qu,nf],16),ol("NoSpaceAfterUnaryPrefixOperator",E,P,[qu,FP],16),ol("NoSpaceAfterUnaryPreincrementOperator",46,k,[qu],16),ol("NoSpaceAfterUnaryPredecrementOperator",47,$,[qu],16),ol("NoSpaceBeforeUnaryPostincrementOperator",F,46,[qu,TZe],16),ol("NoSpaceBeforeUnaryPostdecrementOperator",J,47,[qu,TZe],16),ol("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[qu,I4],4),ol("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[qu,I4],4),ol("SpaceAfterAddWhenFollowedByPreincrement",40,46,[qu,I4],4),ol("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[qu,I4],4),ol("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[qu,I4],4),ol("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[qu,I4],4),ol("NoSpaceAfterCloseBrace",20,[28,27],[qu],16),ol("NewLineBeforeCloseBraceInBlockContext",c,20,[lZe],8),ol("SpaceAfterCloseBrace",20,n(22),[qu,k0e],4),ol("SpaceBetweenCloseBraceAndElse",20,93,[qu],4),ol("SpaceBetweenCloseBraceAndWhile",20,117,[qu],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[qu,dZe],16),ol("SpaceAfterConditionalClosingParen",22,23,[Sue],4),ol("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Z9e],16),ol("SpaceAfterStarInGeneratorDeclaration",42,80,[Z9e],4),ol("SpaceAfterFunctionInFuncDecl",100,i,[hB],4),ol("NewLineAfterOpenBraceInBlockContext",19,i,[lZe],8),ol("SpaceAfterGetSetInMember",[139,153],80,[hB],4),ol("NoSpaceBetweenYieldKeywordAndStar",127,42,[qu,bZe],16),ol("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],i,[qu,bZe],4),ol("NoSpaceBetweenReturnAndSemicolon",107,27,[qu],16),ol("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],i,[qu],4),ol("SpaceAfterLetConstInVariableDeclaration",[121,87],i,[qu,bmt],4),ol("NoSpaceBeforeOpenParenInFuncCall",i,21,[qu,dmt,pmt],16),ol("SpaceBeforeBinaryKeywordOperator",i,S,[qu,I4],4),ol("SpaceAfterBinaryKeywordOperator",S,i,[qu,I4],4),ol("SpaceAfterVoidOperator",116,i,[qu,vZe],4),ol("SpaceBetweenAsyncAndOpenParen",134,21,[hmt,qu],4),ol("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[qu],4),ol("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[qu],16),ol("SpaceBeforeJsxAttribute",i,80,[pZe,qu],4),ol("SpaceBeforeSlashInJsxOpeningElement",i,44,[nWe,qu],4),ol("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[nWe,qu],16),ol("NoSpaceBeforeEqualInJsxAttribute",i,64,[tWe,qu],16),ol("NoSpaceAfterEqualInJsxAttribute",64,i,[tWe,qu],16),ol("NoSpaceBeforeJsxNamespaceColon",80,59,[mZe],16),ol("NoSpaceAfterJsxNamespaceColon",59,80,[mZe],16),ol("NoSpaceAfterModuleImport",[144,149],21,[qu],16),ol("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],i,[qu],4),ol("SpaceBeforeCertainTypeScriptKeywords",i,[96,119,161],[qu],4),ol("SpaceAfterModuleName",11,19,[hZe],4),ol("SpaceBeforeArrow",i,39,[qu],4),ol("SpaceAfterArrow",39,i,[qu],4),ol("NoSpaceAfterEllipsis",26,80,[qu],16),ol("NoSpaceAfterOptionalParameters",58,[22,28],[qu,FP],16),ol("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[qu,P0e],16),ol("NoSpaceBeforeOpenAngularBracket",ie,30,[qu,N0e],16),ol("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[qu,N0e],16),ol("NoSpaceAfterOpenAngularBracket",30,i,[qu,N0e],16),ol("NoSpaceBeforeCloseAngularBracket",i,32,[qu,N0e],16),ol("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[qu,N0e,fZe,Tmt],16),ol("SpaceBeforeAt",[22,80],60,[qu],4),ol("NoSpaceAfterAt",60,i,[qu],16),ol("SpaceAfterDecorator",i,[128,80,95,90,86,126,125,123,124,139,153,23,42],[rWe],4),ol("NoSpaceBeforeNonNullAssertionOperator",i,54,[qu,Smt],16),ol("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[qu,oWe],16),ol("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[qu],4)],et=[ol("SpaceAfterConstructor",137,21,[ux("insertSpaceAfterConstructor"),qu],4),ol("NoSpaceAfterConstructor",137,21,[fD("insertSpaceAfterConstructor"),qu],16),ol("SpaceAfterComma",28,i,[ux("insertSpaceAfterCommaDelimiter"),qu,Eue,mmt,gmt],4),ol("NoSpaceAfterComma",28,i,[fD("insertSpaceAfterCommaDelimiter"),qu,Eue],16),ol("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[ux("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hB],4),ol("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[fD("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),hB],16),ol("SpaceAfterKeywordInControl",d,21,[ux("insertSpaceAfterKeywordsInControlFlowStatements"),Sue],4),ol("NoSpaceAfterKeywordInControl",d,21,[fD("insertSpaceAfterKeywordsInControlFlowStatements"),Sue],16),ol("SpaceAfterOpenParen",21,i,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("SpaceBeforeCloseParen",i,22,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("SpaceBetweenOpenParens",21,21,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],4),ol("NoSpaceBetweenParens",21,22,[qu],16),ol("NoSpaceAfterOpenParen",21,i,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],16),ol("NoSpaceBeforeCloseParen",i,22,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),qu],16),ol("SpaceAfterOpenBracket",23,i,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],4),ol("SpaceBeforeCloseBracket",i,24,[ux("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],4),ol("NoSpaceBetweenBrackets",23,24,[qu],16),ol("NoSpaceAfterOpenBracket",23,i,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],16),ol("NoSpaceBeforeCloseBracket",i,24,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),qu],16),ol("SpaceAfterOpenBrace",19,i,[Jke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xke],4),ol("SpaceBeforeCloseBrace",i,20,[Jke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xke],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[qu,dZe],16),ol("NoSpaceAfterOpenBrace",19,i,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qu],16),ol("NoSpaceBeforeCloseBrace",i,20,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qu],16),ol("SpaceBetweenEmptyBraceBrackets",19,20,[ux("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),ol("NoSpaceBetweenEmptyBraceBrackets",19,20,[k2("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),qu],16),ol("SpaceAfterTemplateHeadAndMiddle",[16,17],i,[ux("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qke],4,1),ol("SpaceBeforeTemplateMiddleAndTail",i,[17,18],[ux("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],4),ol("NoSpaceAfterTemplateHeadAndMiddle",[16,17],i,[fD("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Qke],16,1),ol("NoSpaceBeforeTemplateMiddleAndTail",i,[17,18],[fD("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],16),ol("SpaceAfterOpenBraceInJsxExpression",19,i,[ux("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],4),ol("SpaceBeforeCloseBraceInJsxExpression",i,20,[ux("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],4),ol("NoSpaceAfterOpenBraceInJsxExpression",19,i,[fD("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],16),ol("NoSpaceBeforeCloseBraceInJsxExpression",i,20,[fD("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),qu,Zke],16),ol("SpaceAfterSemicolonInFor",27,i,[ux("insertSpaceAfterSemicolonInForStatements"),qu,$ke],4),ol("NoSpaceAfterSemicolonInFor",27,i,[fD("insertSpaceAfterSemicolonInForStatements"),qu,$ke],16),ol("SpaceBeforeBinaryOperator",i,h,[ux("insertSpaceBeforeAndAfterBinaryOperators"),qu,I4],4),ol("SpaceAfterBinaryOperator",h,i,[ux("insertSpaceBeforeAndAfterBinaryOperators"),qu,I4],4),ol("NoSpaceBeforeBinaryOperator",i,h,[fD("insertSpaceBeforeAndAfterBinaryOperators"),qu,I4],16),ol("NoSpaceAfterBinaryOperator",h,i,[fD("insertSpaceBeforeAndAfterBinaryOperators"),qu,I4],16),ol("SpaceBeforeOpenParenInFuncDecl",i,21,[ux("insertSpaceBeforeFunctionParenthesis"),qu,hB],4),ol("NoSpaceBeforeOpenParenInFuncDecl",i,21,[fD("insertSpaceBeforeFunctionParenthesis"),qu,hB],16),ol("NewLineBeforeOpenBraceInControl",we,19,[ux("placeOpenBraceOnNewLineForControlBlocks"),Sue,Yke],8,1),ol("NewLineBeforeOpenBraceInFunction",ae,19,[ux("placeOpenBraceOnNewLineForFunctions"),hB,Yke],8,1),ol("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ve,19,[ux("placeOpenBraceOnNewLineForFunctions"),eWe,Yke],8,1),ol("SpaceAfterTypeAssertion",32,i,[ux("insertSpaceAfterTypeAssertion"),qu,ePe],4),ol("NoSpaceAfterTypeAssertion",32,i,[fD("insertSpaceAfterTypeAssertion"),qu,ePe],16),ol("SpaceBeforeTypeAnnotation",i,[58,59],[ux("insertSpaceBeforeTypeAnnotation"),qu,qke],4),ol("NoSpaceBeforeTypeAnnotation",i,[58,59],[fD("insertSpaceBeforeTypeAnnotation"),qu,qke],16),ol("NoOptionalSemicolon",27,u,[K9e("semicolons","remove"),xmt],32),ol("OptionalSemicolon",i,u,[K9e("semicolons","insert"),Amt],64)],Pe=[ol("NoSpaceBeforeSemicolon",i,27,[qu],16),ol("SpaceBeforeOpenBraceInControl",we,19,[_D("placeOpenBraceOnNewLineForControlBlocks"),Sue,iWe,Kke],4,1),ol("SpaceBeforeOpenBraceInFunction",ae,19,[_D("placeOpenBraceOnNewLineForFunctions"),hB,I0e,iWe,Kke],4,1),ol("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ve,19,[_D("placeOpenBraceOnNewLineForFunctions"),eWe,iWe,Kke],4,1),ol("NoSpaceBeforeComma",i,28,[qu],16),ol("NoSpaceBeforeOpenBracket",n(134,84),23,[qu],16),ol("NoSpaceAfterCloseBracket",24,i,[qu,vmt],16),ol("SpaceAfterSemicolon",27,i,[qu],4),ol("SpaceBetweenForAndAwaitKeyword",99,135,[qu],4),ol("SpaceBetweenStatements",[22,92,93,84],i,[qu,Eue,X9e],4),ol("SpaceAfterTryCatchFinally",[113,85,98],19,[qu],4)];return[...Fe,...et,...Pe]}function ol(e,n,i,c,u,d=0){return{leftTokenRange:Jq(n),rightTokenRange:Jq(i),rule:{debugName:e,context:c,action:u,flags:d}}}function Yc(e){return{tokens:e,isSpecific:!0}}function Jq(e){return typeof e=="number"?Yc([e]):ls(e)?Yc(e):e}function q9e(e,n,i=[]){const c=[];for(let u=e;u<=n;u++)ni(i,u)||c.push(u);return Yc(c)}function K9e(e,n){return i=>i.options&&i.options[e]===n}function ux(e){return n=>n.options&&ef(n.options,e)&&!!n.options[e]}function k2(e){return n=>n.options&&ef(n.options,e)&&!n.options[e]}function fD(e){return n=>!n.options||!ef(n.options,e)||!n.options[e]}function _D(e){return n=>!n.options||!ef(n.options,e)||!n.options[e]||n.TokensAreOnSameLine()}function Jke(e){return n=>!n.options||!ef(n.options,e)||!!n.options[e]}function $ke(e){return e.contextNode.kind===248}function X9e(e){return!$ke(e)}function I4(e){switch(e.contextNode.kind){case 226:return e.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 e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function FP(e){return!I4(e)}function Tue(e){return!qke(e)}function qke(e){const n=e.contextNode.kind;return n===172||n===171||n===169||n===260||S_(n)}function Y9e(e){return nu(e.contextNode)&&e.contextNode.questionToken}function umt(e){return!Y9e(e)}function Q9e(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Kke(e){return e.TokensAreOnSameLine()||I0e(e)}function Xke(e){return e.contextNode.kind===206||e.contextNode.kind===200||uZe(e)}function Yke(e){return I0e(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function lZe(e){return D0e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uZe(e){return D0e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function D0e(e){return HF(e.contextNode)}function I0e(e){return HF(e.nextTokenParent)}function HF(e){if(_Ze(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function hB(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function fZe(e){return!hB(e)}function Z9e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function eWe(e){return _Ze(e.contextNode)}function _Ze(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function k0e(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const n=e.currentTokenParent.parent;if(!n||n.kind!==219&&n.kind!==218)return!0}}return!1}function Sue(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function dZe(e){return e.contextNode.kind===210}function fmt(e){return e.contextNode.kind===213}function _mt(e){return e.contextNode.kind===214}function dmt(e){return fmt(e)||_mt(e)}function pmt(e){return e.currentTokenSpan.kind!==28}function mmt(e){return e.nextTokenSpan.kind!==24}function gmt(e){return e.nextTokenSpan.kind!==22}function hmt(e){return e.contextNode.kind===219}function nf(e){return e.contextNode.kind===205}function qu(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Qke(e){return e.contextNode.kind!==12}function Eue(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function Zke(e){return e.contextNode.kind===294||e.contextNode.kind===293}function pZe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function tWe(e){return e.contextNode.kind===291}function ymt(e){return e.nextTokenParent.kind!==295}function mZe(e){return e.nextTokenParent.kind===295}function nWe(e){return e.contextNode.kind===285}function vmt(e){return!hB(e)&&!I0e(e)}function rWe(e){return e.TokensAreOnSameLine()&&X2(e.contextNode)&&gZe(e.currentTokenParent)&&!gZe(e.nextTokenParent)}function gZe(e){for(;e&&kr(e);)e=e.parent;return e&&e.kind===170}function bmt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function iWe(e){return e.formattingRequestKind!==2}function hZe(e){return e.contextNode.kind===267}function P0e(e){return e.contextNode.kind===187}function oWe(e){return e.contextNode.kind===180}function yZe(e,n){if(e.kind!==30&&e.kind!==32)return!1;switch(n.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 N0e(e){return yZe(e.currentTokenSpan,e.currentTokenParent)||yZe(e.nextTokenSpan,e.nextTokenParent)}function ePe(e){return e.contextNode.kind===216}function Tmt(e){return!ePe(e)}function vZe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function bZe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Smt(e){return e.contextNode.kind===235}function TZe(e){return!Emt(e)}function Emt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function xmt(e){let n=e.nextTokenSpan.kind,i=e.nextTokenSpan.pos;if(W9(n)){const d=e.nextTokenParent===e.currentTokenParent?N6(e.currentTokenParent,Ua(e.currentTokenParent,h=>!h.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!d)return!0;n=d.kind,i=d.getStart(e.sourceFile)}const c=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,u=e.sourceFile.getLineAndCharacterOfPosition(i).line;return c===u?n===20||n===1:n===240||n===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!em(e.currentTokenParent)||!!e.currentTokenParent.type||n!==21:nu(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&n!==23&&n!==21&&n!==40&&n!==41&&n!==44&&n!==14&&n!==28&&n!==228&&n!==16&&n!==15&&n!==25}function Amt(e){return pce(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Cmt(e){return!Ac(e.contextNode)||!S1(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Dmt=G({"src/services/formatting/rules.ts"(){xl(),lte()}});function Imt(e,n){return{options:e,getRules:kmt(),host:n}}function kmt(){return xue===void 0&&(xue=Pmt(cZe())),xue}function SZe(e){let n=0;return e&1&&(n|=28),e&2&&(n|=96),e&28&&(n|=28),e&96&&(n|=96),n}function Pmt(e){const n=Nmt(e);return i=>{const c=n[EZe(i.currentTokenSpan.kind,i.nextTokenSpan.kind)];if(c){const u=[];let d=0;for(const h of c){const S=~SZe(d);h.action&S&&jr(h.context,E=>E(i))&&(u.push(h),d|=h.action)}if(u.length)return u}}}function Nmt(e){const n=new Array(ste*ste),i=new Array(n.length);for(const c of e){const u=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific;for(const d of c.leftTokenRange.tokens)for(const h of c.rightTokenRange.tokens){const S=EZe(d,h);let E=n[S];E===void 0&&(E=n[S]=[]),aWe(E,c.rule,u,i,S)}}return n}function EZe(e,n){return re.assert(e<=165&&n<=165,"Must compute formatting context from tokens"),e*ste+n}function aWe(e,n,i,c,u){const d=n.action&3?i?0:cte.StopRulesAny:n.context!==A0e?i?cte.ContextRulesSpecific:cte.ContextRulesAny:i?cte.NoContextRulesSpecific:cte.NoContextRulesAny,h=c[u]||0;e.splice($q(h,d),0,n),c[u]=w0e(h,d)}function $q(e,n){let i=0;for(let c=0;c<=n;c+=B6)i+=e&R0e,e>>=B6;return i}function w0e(e,n){const i=(e>>n&R0e)+1;return re.assert((i&R0e)===i,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(R0e<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=B6*1]="StopRulesAny",e[e.ContextRulesSpecific=B6*2]="ContextRulesSpecific",e[e.ContextRulesAny=B6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=B6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=B6*5]="NoContextRulesAny",e))(cte||{})}});function tPe(e,n,i){const c={pos:e,end:n,kind:i};return re.isDebugging&&Object.defineProperty(c,"__debugKind",{get:()=>re.formatSyntaxKind(i)}),c}function Rmt(e,n,i){const c=n.getLineAndCharacterOfPosition(e).line;if(c===0)return[];let u=cie(c,n);for(;q1(n.text.charCodeAt(u));)u--;Sb(n.text.charCodeAt(u))&&u--;const d={pos:fR(c-1,n),end:u+1};return L0e(d,n,i,2)}function Mmt(e,n,i){const c=lWe(e,27,n);return fWe(uWe(c),n,i,3)}function Lmt(e,n,i){const c=lWe(e,19,n);if(!c)return[];const u=c.parent,d=uWe(u),h={pos:Ux(d.getStart(n),n),end:e};return L0e(h,n,i,4)}function sWe(e,n,i){const c=lWe(e,20,n);return fWe(uWe(c),n,i,5)}function cWe(e,n){const i={pos:0,end:e.text.length};return L0e(i,e,n,0)}function Omt(e,n,i,c){const u={pos:Ux(e,i),end:n};return L0e(u,i,c,1)}function lWe(e,n,i){const c=bv(e,i);return c&&c.kind===n&&e===c.getEnd()?c:void 0}function uWe(e){let n=e;for(;n&&n.parent&&n.parent.end===e.end&&!Fmt(n.parent,n);)n=n.parent;return n}function Fmt(e,n){switch(e.kind){case 263:case 264:return ov(e.members,n);case 267:const i=e.body;return!!i&&i.kind===268&&ov(i.statements,n);case 312:case 241:case 268:return ov(e.statements,n);case 299:return ov(e.block.statements,n)}return!1}function Wmt(e,n){return i(n);function i(c){const u=s_(c,d=>Wm(d.getStart(n),d.end,e)&&d);if(u){const d=i(u);if(d)return d}return c}}function Bmt(e,n){if(!e.length)return u;const i=e.filter(d=>J$(n,d.start,d.start+d.length)).sort((d,h)=>d.start-h.start);if(!i.length)return u;let c=0;return d=>{for(;;){if(c>=i.length)return!1;const h=i[c];if(d.end<=h.start)return!1;if(Wge(d.pos,d.end,h.start,h.start+h.length))return!0;c++}};function u(){return!1}}function xZe(e,n,i){const c=e.getStart(i);if(c===n.pos&&e.end===n.end)return c;const u=bv(n.pos,i);return!u||u.end>=n.pos?e.pos:u.end}function M0e(e,n,i){let c=-1,u;for(;e;){const d=i.getLineAndCharacterOfPosition(e.getStart(i)).line;if(c!==-1&&d!==c)break;if(qx.shouldIndentChildNode(n,e,u,i))return n.indentSize;c=d,u=e,e=e.parent}return 0}function AZe(e,n,i,c,u,d){const h={pos:e.pos,end:e.end};return H9e(n.text,i,h.pos,h.end,S=>CZe(h,e,c,u,S,d,1,E=>!1,n))}function fWe(e,n,i,c){if(!e)return[];const u={pos:Ux(e.getStart(n),n),end:e.end};return L0e(u,n,i,c)}function L0e(e,n,i,c){const u=Wmt(e,n);return H9e(n.text,n.languageVariant,xZe(u,e,n),e.end,d=>CZe(e,u,qx.getIndentationForNode(u,e,n,i.options),M0e(u,i.options,n),d,i,c,Bmt(n.parseDiagnostics,e),n))}function CZe(e,n,i,c,u,{options:d,getRules:h,host:S},E,P,k){var F;const $=new x0e(k,E,d);let J,X,ie,ae,ve,we=-1;const Fe=[];if(u.advance(),u.isOnToken()){const jt=k.getLineAndCharacterOfPosition(n.getStart(k)).line;let En=jt;X2(n)&&(En=k.getLineAndCharacterOfPosition(fie(n,k)).line),Ct(n,n,jt,En,i,c)}const et=u.getCurrentLeadingTrivia();if(et){const jt=qx.nodeWillIndentChild(d,n,void 0,k,!1)?i+d.indentSize:i;Lt(et,jt,!0,En=>{Ke(En,k.getLineAndCharacterOfPosition(En.pos),n,n,void 0),It(En.pos,jt,!1)}),d.trimTrailingWhitespace!==!1&&Rn(et)}if(X&&u.getTokenFullStart()>=e.end){const jt=u.isOnEOF()?u.readEOFTokenRange():u.isOnToken()?u.readTokenInfo(n).token:void 0;if(jt&&jt.pos===J){const En=((F=bv(jt.end,k,n))==null?void 0:F.parent)||ie;st(jt,k.getLineAndCharacterOfPosition(jt.pos).line,En,X,ae,ie,En,void 0)}}return Fe;function Pe(jt,En,fr,Tr,Vr){if(J$(Tr,jt,En)||xj(Tr,jt,En)){if(Vr!==-1)return Vr}else{const Pn=k.getLineAndCharacterOfPosition(jt).line,Fr=Ux(jt,k),Ki=qx.findFirstNonWhitespaceColumn(Fr,jt,k,d);if(Pn!==fr||jt===Ki){const io=qx.getBaseIndentation(d);return io>Ki?io:Ki}}return-1}function dt(jt,En,fr,Tr,Vr,Pn){const Fr=qx.shouldIndentChildNode(d,jt)?d.indentSize:0;return Pn===En?{indentation:En===ve?we:Vr.getIndentation(),delta:Math.min(d.indentSize,Vr.getDelta(jt)+Fr)}:fr===-1?jt.kind===21&&En===ve?{indentation:we,delta:Vr.getDelta(jt)}:qx.childStartsOnTheSameLineWithElseInIfStatement(Tr,jt,En,k)||qx.childIsUnindentedBranchOfConditionalExpression(Tr,jt,En,k)||qx.argumentStartsOnSameLineAsPreviousArgument(Tr,jt,En,k)?{indentation:Vr.getIndentation(),delta:Fr}:{indentation:Vr.getIndentation()+Vr.getDelta(jt),delta:Fr}:{indentation:fr,delta:Fr}}function Ie(jt){if(DA(jt)){const En=lr(jt.modifiers,Mf,Ho(jt.modifiers,Jh));if(En)return En.kind}switch(jt.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(jt.asteriskToken)return 42;case 172:case 169:const En=i_(jt);if(En)return En.kind}}function ct(jt,En,fr,Tr){return{getIndentationForComment:(Fr,Ki,io)=>{switch(Fr){case 20:case 24:case 22:return fr+Pn(io)}return Ki!==-1?Ki:fr},getIndentationForToken:(Fr,Ki,io,no)=>!no&&Vr(Fr,Ki,io)?fr+Pn(io):fr,getIndentation:()=>fr,getDelta:Pn,recomputeIndentation:(Fr,Ki)=>{qx.shouldIndentChildNode(d,Ki,jt,k)&&(fr+=Fr?d.indentSize:-d.indentSize,Tr=qx.shouldIndentChildNode(d,jt)?d.indentSize:0)}};function Vr(Fr,Ki,io){switch(Ki){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(io.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(io.kind!==200)return!1;break}return En!==Fr&&!(X2(jt)&&Ki===Ie(jt))}function Pn(Fr){return qx.nodeWillIndentChild(d,jt,Fr,k,!0)?Tr:0}}function Ct(jt,En,fr,Tr,Vr,Pn){if(!J$(e,jt.getStart(k),jt.getEnd()))return;const Fr=ct(jt,fr,Vr,Pn);let Ki=En;for(s_(jt,Mo=>{io(Mo,-1,jt,Fr,fr,Tr,!1)},Mo=>{no(Mo,jt,fr,Fr)});u.isOnToken()&&u.getTokenFullStart()Math.min(jt.end,e.end))break;os(Mo,jt,Fr,jt)}function io(Mo,$i,ki,gc,Wl,Jc,au,qn){if(re.assert(!Hd(Mo)),ny(Mo)||XTe(ki,Mo))return $i;const za=Mo.getStart(k),Ia=k.getLineAndCharacterOfPosition(za).line;let zi=Ia;X2(Mo)&&(zi=k.getLineAndCharacterOfPosition(fie(Mo,k)).line);let na=-1;if(au&&ov(e,ki)&&(na=Pe(za,Mo.end,Wl,e,$i),na!==-1&&($i=na)),!J$(e,Mo.pos,Mo.end))return Mo.ende.end)return $i;if(Au.token.end>za){Au.token.pos>za&&u.skipToStartOf(Mo);break}os(Au,jt,gc,jt)}if(!u.isOnToken()||u.getTokenFullStart()>=e.end)return $i;if(a7(Mo)){const Au=u.readTokenInfo(Mo);if(Mo.kind!==12)return re.assert(Au.token.end===Mo.end,"Token end is child end"),os(Au,jt,gc,Mo),$i}const _a=Mo.kind===170?Ia:Jc,us=dt(Mo,Ia,na,jt,gc,_a);return Ct(Mo,Ki,Ia,zi,us.indentation,us.delta),Ki=jt,qn&&ki.kind===209&&$i===-1&&($i=us.indentation),$i}function no(Mo,$i,ki,gc){re.assert(BM(Mo)),re.assert(!Hd(Mo));const Wl=rPe($i,Mo);let Jc=gc,au=ki;if(!J$(e,Mo.pos,Mo.end)){Mo.endMo.pos)break;if(Ia.token.kind===Wl){au=k.getLineAndCharacterOfPosition(Ia.token.pos).line,os(Ia,$i,gc,$i);let zi;if(we!==-1)zi=we;else{const na=Ux(Ia.token.pos,k);zi=qx.findFirstNonWhitespaceColumn(na,Ia.token.pos,k,d)}Jc=ct($i,ki,zi,d.indentSize)}else os(Ia,$i,gc,$i)}let qn=-1;for(let Ia=0;IaIt(us.pos,_a,!1))}zi!==-1&&na&&(It(Mo.token.pos,zi,qn===1),ve=Ia.line,we=zi)}u.advance(),Ki=$i}}function Lt(jt,En,fr,Tr){for(const Vr of jt){const Pn=ov(e,Vr);switch(Vr.kind){case 3:Pn&&at(Vr,En,!fr),fr=!1;break;case 2:fr&&Pn&&Tr(Vr),fr=!1;break;case 4:fr=!0;break}}return fr}function Ze(jt,En,fr,Tr){for(const Vr of jt)if(ece(Vr.kind)&&ov(e,Vr)){const Pn=k.getLineAndCharacterOfPosition(Vr.pos);Ke(Vr,Pn,En,fr,Tr)}}function Ke(jt,En,fr,Tr,Vr){const Pn=P(jt);let Fr=0;if(!Pn)if(X)Fr=st(jt,En.line,fr,X,ae,ie,Tr,Vr);else{const Ki=k.getLineAndCharacterOfPosition(e.pos);Qt(Ki.line,En.line)}return X=jt,J=jt.end,ie=fr,ae=En.line,Fr}function st(jt,En,fr,Tr,Vr,Pn,Fr,Ki){$.updateContext(Tr,Pn,jt,fr,Fr);const io=h($);let no=$.options.trimTrailingWhitespace!==!1,os=0;return io?bo(io,Mo=>{if(os=Wr(Mo,Tr,Vr,jt,En),Ki)switch(os){case 2:fr.getStart(k)===jt.pos&&Ki.recomputeIndentation(!1,Fr);break;case 1:fr.getStart(k)===jt.pos&&Ki.recomputeIndentation(!0,Fr);break;default:re.assert(os===0)}no=no&&!(Mo.action&16)&&Mo.flags!==1}):no=no&&jt.kind!==1,En!==Vr&&no&&Qt(Vr,En,Tr),os}function It(jt,En,fr){const Tr=qq(En,d);if(fr)Kt(jt,0,Tr);else{const Vr=k.getLineAndCharacterOfPosition(jt),Pn=fR(Vr.line,k);(En!==Yt(Pn,Vr.character)||Et(Tr,Pn))&&Kt(Pn,Vr.character,Tr)}}function Yt(jt,En){let fr=0;for(let Tr=0;Tr0){const Jc=qq(Wl,d);Kt(ki,gc.character,Jc)}else qt(ki,gc.character)}}function Qt(jt,En,fr){for(let Tr=jt;TrPn)continue;const Fr=nn(Vr,Pn);Fr!==-1&&(re.assert(Fr===Vr||!q1(k.text.charCodeAt(Fr-1))),qt(Fr,Pn+1-Fr))}}function nn(jt,En){let fr=En;for(;fr>=jt&&q1(k.text.charCodeAt(fr));)fr--;return fr!==En?fr+1:-1}function Rn(jt){let En=X?X.end:e.pos;for(const fr of jt)ece(fr.kind)&&(EnXW(P,n)||n===P.end&&(P.kind===2||n===e.getFullWidth()))}function rPe(e,n){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===n)return 30;if(e.parameters===n)return 21;break;case 213:case 214:if(e.typeArguments===n)return 30;if(e.arguments===n)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===n)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===n)return 30;break;case 187:return 19}return 0}function Aue(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function qq(e,n){if((!iPe||iPe.tabSize!==n.tabSize||iPe.indentSize!==n.indentSize)&&(iPe={tabSize:n.tabSize,indentSize:n.indentSize},$x=Cue=void 0),n.convertTabsToSpaces){let c;const u=Math.floor(e/n.indentSize),d=e%n.indentSize;return Cue||(Cue=[]),Cue[u]===void 0?(c=Pk(" ",n.indentSize*u),Cue[u]=c):c=Cue[u],d?c+Pk(" ",d):c}else{const c=Math.floor(e/n.tabSize),u=e-c*n.tabSize;let d;return $x||($x=[]),$x[c]===void 0?$x[c]=d=Pk(" ",c):d=$x[c],u?d+Pk(" ",u):d}}var iPe,$x,Cue,Rb=G({"src/services/formatting/formatting.ts"(){xl(),lte()}}),qx,El=G({"src/services/formatting/smartIndenter.ts"(){xl(),lte(),(e=>{let n;(at=>{at[at.Unknown=-1]="Unknown"})(n||(n={}));function i(at,Qt,nn,Rn=!1){if(at>Qt.text.length)return S(nn);if(nn.indentStyle===0)return 0;const cn=bv(at,Qt,void 0,!0),qt=nPe(Qt,at,cn||null);if(qt&&qt.kind===3)return c(Qt,at,nn,qt);if(!cn)return S(nn);if(tce(cn.kind)&&cn.getStart(Qt)<=at&&at=0),cn<=qt)return Ke(fR(qt,at),Qt,at,nn);const Kt=fR(cn,at),{column:wr,character:Wr}=Ze(Kt,Qt,at,nn);return wr===0?wr:at.text.charCodeAt(Kt+Wr)===42?wr-1:wr}function u(at,Qt,nn){let Rn=Qt;for(;Rn>0;){const qt=at.text.charCodeAt(Rn);if(!cP(qt))break;Rn--}const cn=Ux(Rn,at);return Ke(cn,Rn,at,nn)}function d(at,Qt,nn,Rn,cn,qt){let Kt,wr=nn;for(;wr;){if(xAe(wr,Qt,at)&&Yt(qt,wr,Kt,at,!0)){const jt=X(wr,at),En=J(nn,wr,Rn,at),fr=En!==0?cn&&En===2?qt.indentSize:0:Rn!==jt.line?qt.indentSize:0;return E(wr,jt,void 0,fr,at,!0,qt)}const Wr=ct(wr,at,qt,!0);if(Wr!==-1)return Wr;Kt=wr,wr=wr.parent}return S(qt)}function h(at,Qt,nn,Rn){const cn=nn.getLineAndCharacterOfPosition(at.getStart(nn));return E(at,cn,Qt,0,nn,!1,Rn)}e.getIndentationForNode=h;function S(at){return at.baseIndentSize||0}e.getBaseIndentation=S;function E(at,Qt,nn,Rn,cn,qt,Kt){var wr;let Wr=at.parent;for(;Wr;){let jt=!0;if(nn){const Vr=at.getStart(cn);jt=Vrnn.end}const En=P(Wr,at,cn),fr=En.line===Qt.line||ae(Wr,at,Qt.line,cn);if(jt){const Vr=(wr=Fe(at,cn))==null?void 0:wr[0],Pn=!!Vr&&X(Vr,cn).line>En.line;let Fr=ct(at,cn,Kt,Pn);if(Fr!==-1||(Fr=F(at,Wr,Qt,fr,cn,Kt),Fr!==-1))return Fr+Rn}Yt(Kt,Wr,at,cn,qt)&&!fr&&(Rn+=Kt.indentSize);const Tr=ie(Wr,at,Qt.line,cn);at=Wr,Wr=at.parent,Qt=Tr?cn.getLineAndCharacterOfPosition(at.getStart(cn)):En}return Rn+S(Kt)}function P(at,Qt,nn){const Rn=Fe(Qt,nn),cn=Rn?Rn.pos:at.getStart(nn);return nn.getLineAndCharacterOfPosition(cn)}function k(at,Qt,nn){const Rn=Hse(at);return Rn&&Rn.listItemIndex>0?Ct(Rn.list.getChildren(),Rn.listItemIndex-1,Qt,nn):-1}function F(at,Qt,nn,Rn,cn,qt){return(PT(at)||HU(at))&&(Qt.kind===312||!Rn)?Lt(nn,cn,qt):-1}let $;(at=>{at[at.Unknown=0]="Unknown",at[at.OpenBrace=1]="OpenBrace",at[at.CloseBrace=2]="CloseBrace"})($||($={}));function J(at,Qt,nn,Rn){const cn=N6(at,Qt,Rn);if(!cn)return 0;if(cn.kind===19)return 1;if(cn.kind===20){const qt=X(cn,Rn).line;return nn===qt?2:0}return 0}function X(at,Qt){return Qt.getLineAndCharacterOfPosition(at.getStart(Qt))}function ie(at,Qt,nn,Rn){if(!(xd(at)&&ni(at.arguments,Qt)))return!1;const cn=at.expression.getEnd();return xm(Rn,cn).line===nn}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=ie;function ae(at,Qt,nn,Rn){if(at.kind===245&&at.elseStatement===Qt){const cn=qm(at,93,Rn);return re.assert(cn!==void 0),X(cn,Rn).line===nn}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=ae;function ve(at,Qt,nn,Rn){if(ex(at)&&(Qt===at.whenTrue||Qt===at.whenFalse)){const cn=xm(Rn,at.condition.end).line;if(Qt===at.whenTrue)return nn===cn;{const qt=X(at.whenTrue,Rn).line,Kt=xm(Rn,at.whenTrue.end).line;return cn===qt&&Kt===nn}}return!1}e.childIsUnindentedBranchOfConditionalExpression=ve;function we(at,Qt,nn,Rn){if(sk(at)){if(!at.arguments)return!1;const cn=lr(at.arguments,Wr=>Wr.pos===Qt.pos);if(!cn)return!1;const qt=at.arguments.indexOf(cn);if(qt===0)return!1;const Kt=at.arguments[qt-1],wr=xm(Rn,Kt.getEnd()).line;if(nn===wr)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=we;function Fe(at,Qt){return at.parent&&Pe(at.getStart(Qt),at.getEnd(),at.parent,Qt)}e.getContainingList=Fe;function et(at,Qt,nn){return Qt&&Pe(at,at,Qt,nn)}function Pe(at,Qt,nn,Rn){switch(nn.kind){case 183:return cn(nn.typeArguments);case 210:return cn(nn.properties);case 209:return cn(nn.elements);case 187:return cn(nn.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return cn(nn.typeParameters)||cn(nn.parameters);case 177:return cn(nn.parameters);case 263:case 231:case 264:case 265:case 352:return cn(nn.typeParameters);case 214:case 213:return cn(nn.typeArguments)||cn(nn.arguments);case 261:return cn(nn.declarations);case 275:case 279:return cn(nn.elements);case 206:case 207:return cn(nn.elements)}function cn(qt){return qt&&xj(dt(nn,qt,Rn),at,Qt)?qt:void 0}}function dt(at,Qt,nn){const Rn=at.getChildren(nn);for(let cn=1;cn=0&&Qt=0;Kt--){if(at[Kt].kind===28)continue;if(nn.getLineAndCharacterOfPosition(at[Kt].end).line!==qt.line)return Lt(qt,nn,Rn);qt=X(at[Kt],nn)}return-1}function Lt(at,Qt,nn){const Rn=Qt.getPositionOfLineAndCharacter(at.line,0);return Ke(Rn,Rn+at.character,Qt,nn)}function Ze(at,Qt,nn,Rn){let cn=0,qt=0;for(let Kt=at;Ktx0e,FormattingRequestKind:()=>V9e,RuleAction:()=>ate,RuleFlags:()=>C0e,SmartIndenter:()=>qx,anyContext:()=>A0e,createTextRangeWithKind:()=>tPe,formatDocument:()=>cWe,formatNodeGivenIndentation:()=>AZe,formatOnClosingCurly:()=>sWe,formatOnEnter:()=>Rmt,formatOnOpeningCurly:()=>Lmt,formatOnSemicolon:()=>Mmt,formatSelection:()=>Omt,getAllRules:()=>cZe,getFormatContext:()=>Imt,getFormattingScanner:()=>H9e,getIndentationString:()=>qq,getRangeOfEnclosingComment:()=>nPe});var lte=G({"src/services/_namespaces/ts.formatting.ts"(){U9e(),sZe(),$9e(),Dmt(),wmt(),Rb(),El()}}),xl=G({"src/services/_namespaces/ts.ts"(){md(),B$(),zse(),GAe(),qct(),KAe(),Yct(),Qct(),tlt(),ilt(),olt(),lCe(),llt(),ult(),bDe(),Fqe(),Out(),Yut(),$qe(),If(),Zve(),u9e(),rpt(),m9e(),VF(),u3e(),k$e(),CI(),D9e(),EI(),wke(),b0e(),L9e(),D4(),Hs(),lte()}});function zmt(){return PZe??(PZe=new ZT(At))}function DZe(e,n,i,c,u){let d=n?"DeprecationError: ":"DeprecationWarning: ";return d+=`'${e}' `,d+=c?`has been deprecated since v${c}`:"is deprecated",d+=n?" and can no longer be used.":i?` and will no longer be usable after v${i}.`:".",d+=u?` ${LT(u,[e])}`:"",d}function Gmt(e,n,i,c){const u=DZe(e,!0,n,i,c);return()=>{throw new TypeError(u)}}function _We(e,n,i,c){let u=!1;return()=>{aPe&&!u&&(re.log.warn(DZe(e,!1,n,i,c)),u=!0)}}function IZe(e,n={}){const i=typeof n.typeScriptVersion=="string"?new ZT(n.typeScriptVersion):n.typeScriptVersion??zmt(),c=typeof n.errorAfter=="string"?new ZT(n.errorAfter):n.errorAfter,u=typeof n.warnAfter=="string"?new ZT(n.warnAfter):n.warnAfter,d=typeof n.since=="string"?new ZT(n.since):n.since??u,h=n.error||c&&i.compareTo(c)>=0,S=!u||i.compareTo(u)>=0;return h?Gmt(e,c,d,n.message):S?_We(e,c,d,n.message):ku}function kZe(e,n){return function(){return e(),n.apply(this,arguments)}}function oPe(e,n){const i=IZe((n==null?void 0:n.name)??re.getFunctionName(e),n);return kZe(i,e)}var aPe,PZe,NZe=G({"src/deprecatedCompat/deprecate.ts"(){cPe(),aPe=!0}});function sPe(e,n,i,c){if(Object.defineProperty(d,"name",{...Object.getOwnPropertyDescriptor(d,"name"),value:e}),c)for(const h of Object.keys(c)){const S=+h;!isNaN(S)&&ef(n,`${S}`)&&(n[S]=oPe(n[S],{...c[S],name:e}))}const u=jmt(n,i);return d;function d(...h){const S=u(h),E=S!==void 0?n[S]:void 0;if(typeof E=="function")return E(...h);throw new TypeError("Invalid arguments")}}function jmt(e,n){return i=>{for(let c=0;ef(e,`${c}`)&&ef(n,`${c}`);c++){const u=n[c];if(u(i))return c}}}function O0e(e){return{overload:n=>({bind:i=>({finish:()=>sPe(e,n,i),deprecate:c=>({finish:()=>sPe(e,n,i,c)})})})}}var wZe=G({"src/deprecatedCompat/deprecations.ts"(){cPe(),NZe()}}),RZe=G({"src/deprecatedCompat/5.0/identifierProperties.ts"(){cPe(),NZe(),wSe(e=>{const n=e.getIdentifierConstructor();ef(n.prototype,"originalKeywordKind")||Object.defineProperty(n.prototype,"originalKeywordKind",{get:oPe(function(){return uP(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ef(n.prototype,"isInJSDocNamespace")||Object.defineProperty(n.prototype,"isInJSDocNamespace",{get:oPe(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."})})})}}),cPe=G({"src/deprecatedCompat/_namespaces/ts.ts"(){md(),wZe(),RZe()}}),t=G({"src/typingsInstallerCore/_namespaces/ts.ts"(){md(),B$(),O()}});function r(e,n,i,c){try{const u=ZG(n,vl(e,"index.d.ts"),{moduleResolution:2},i);return u.resolvedModule&&u.resolvedModule.resolvedFileName}catch(u){c.isEnabled()&&c.writeLine(`Failed to resolve ${n} in folder '${e}': ${u.message}`);return}}function s(e,n,i,c){let u=!1;for(let d=i.length;d>0;){const h=l(e,n,i,d);d=h.remaining,u=c(h.command)||u}return u}function l(e,n,i,c){const u=i.length-c;let d,h=c;for(;d=`${e} install --ignore-scripts ${(h===i.length?i:i.slice(u,u+h)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(d.length<8e3);)h=h-Math.floor(h/2);return{command:d,remaining:c-h}}function m(e){return`@types/${e}@ts${ot}`}var y,T,D=G({"src/typingsInstallerCore/typingsInstaller.ts"(){t(),O(),y={isEnabled:()=>!1,writeLine:ku},T=class{constructor(e,n,i,c,u,d=y){this.installTypingHost=e,this.globalCachePath=n,this.safeListPath=i,this.typesMapLocation=c,this.throttleLimit=u,this.log=d,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 '${n}', safe file path '${i}', types map path ${c}`),this.processCacheLocation(this.globalCachePath)}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:Ise,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${qW(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const n=kk.discoverTypings(this.installTypingHost,this.log.isEnabled()?i=>this.log.writeLine(i):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(e,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const e=kk.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=kk.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const n=vl(e,"package.json"),i=vl(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(i)){const c=JSON.parse(this.installTypingHost.readFile(n)),u=JSON.parse(this.installTypingHost.readFile(i));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${qW(c)}`),this.log.writeLine(`Loaded content of '${i}':${qW(u)}`)),c.devDependencies&&u.dependencies)for(const d in c.devDependencies){if(!ef(u.dependencies,d))continue;const h=Jg(d);if(!h)continue;const S=r(e,h,this.installTypingHost,this.log);if(!S){this.missingTypingsSet.add(h);continue}const E=this.packageNameToTypingLocation.get(h);if(E){if(E.typingLocation===S)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${h} from '${S}' conflicts with existing typing file '${E}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${h}' => '${S}'`);const P=T8(u.dependencies,d),k=P&&P.version;if(!k)continue;const F={typingLocation:S,version:new ZT(k)};this.packageNameToTypingLocation.set(h,F)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Qo(e,n=>{const i=tj(n);if(this.missingTypingsSet.has(i)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${i}' is in missingTypingsSet - skipping...`);return}const c=kk.validatePackageName(n);if(c!==kk.NameValidationResult.Ok){this.missingTypingsSet.add(i),this.log.isEnabled()&&this.log.writeLine(kk.renderPackageNameValidationFailure(c,n));return}if(!this.typesRegistry.has(i)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: Entry for package '${i}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(i)&&kk.isTypingUpToDate(this.packageNameToTypingLocation.get(i),this.typesRegistry.get(i))){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${i}' already has an up-to-date typing - skipping...`);return}return i})}ensurePackageDirectoryExists(e){const n=vl(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(e,n,i,c){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(c)}`);const u=this.filterTypings(c);if(u.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(e,i));return}this.ensurePackageDirectoryExists(n);const d=this.installRunCount;this.installRunCount++,this.sendResponse({kind:dAe,eventId:d,typingsInstallerVersion:At,projectName:e.projectName});const h=u.map(m);this.installTypingsAsync(d,h,n,S=>{try{if(!S){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(u)}`);for(const P of u)this.missingTypingsSet.add(P);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(h)}`);const E=[];for(const P of u){const k=r(n,P,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(P);continue}const F=this.typesRegistry.get(P),$=new ZT(F[`ts${ot}`]||F[this.latestDistTag]),J={typingLocation:k,version:$};this.packageNameToTypingLocation.set(P,J),E.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(E)}`),this.sendResponse(this.createSetTypings(e,i.concat(E)))}finally{const E={kind:pAe,eventId:d,projectName:e.projectName,packagesToInstall:h,installSuccess:S,typingsInstallerVersion:At};this.sendResponse(E)}})}ensureDirectoryExists(e,n){const i=ws(e);n.directoryExists(i)||this.ensureDirectoryExists(i,n),n.directoryExists(e)||n.createDirectory(e)}watchFiles(e,n){if(!n.length){this.closeWatchers(e);return}const i=this.projectWatchers.get(e),c=new Set(n);!i||gA(c,u=>!i.has(u))||gA(i,u=>!c.has(u))?(this.projectWatchers.set(e,c),this.sendResponse({kind:Ise,projectName:e,files:n})):this.sendResponse({kind:Ise,projectName:e,files:void 0})}createSetTypings(e,n){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:n,unresolvedImports:e.unresolvedImports,kind:_Z}}installTypingsAsync(e,n,i,c){this.pendingRunRequests.unshift({requestId:e,packageNames:n,cwd:i,onRequestCompleted:c}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(n),this.executeWithThrottling()})}}}}}),I={};Oe(I,{TypingsInstaller:()=>T,getNpmCommandForInstallation:()=>l,installNpmPackages:()=>s,typingsName:()=>m});var W=G({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){D()}}),O=G({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){kse(),W()}}),V=G({"src/server/types.ts"(){}});function ee(e,n,i,c){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:n,unresolvedImports:i,projectRootPath:e.getCurrentDirectory(),cachePath:c,kind:"discover"}}function te(e){return hf(e)}function oe(e,n,i){const c=nE(e)?e:vf(e,n);return i(c)}function de(e){return e}function ue(){const e=new Map;return{get(n){return e.get(n)},set(n,i){e.set(n,i)},contains(n){return e.has(n)},remove(n){e.delete(n)}}}function Ne(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Be(e){return`/dev/null/inferredProject${e}*`}function Ve(e){return`/dev/null/autoImportProviderProject${e}*`}function pt(e){return`/dev/null/auxiliaryProject${e}*`}function Le(){return[]}var ht,ke,_t,Dt,Ft=G({"src/server/utilitiesPublic.ts"(){l_(),ht=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(ht||{}),ke=Le(),_t=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(_t||{}),(e=>{function n(){throw new Error("No Project.")}e.ThrowNoProject=n;function i(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=i;function c(u,d){throw new Error(`Project '${d.getProjectName()}' does not contain document '${u}'`)}e.ThrowProjectDoesNotContainDocument=c})(Dt||(Dt={}))}});function it(e){const n=Jg(e);return n==="tsconfig.json"||n==="jsconfig.json"?n:void 0}function Ye(e,n,i){if(!e||e.length===0)return;if(e[0]===n){e.splice(0,1);return}const c=ZS(e,n,Of,i);c>=0&&e.splice(c,1)}var ut,lt,zt=G({"src/server/utilities.ts"(){l_(),$l(),ut=class HDt{constructor(n,i){this.host=n,this.pendingTimeouts=new Map,this.logger=i.hasLevel(3)?i:void 0}schedule(n,i,c){const u=this.pendingTimeouts.get(n);u&&this.host.clearTimeout(u),this.pendingTimeouts.set(n,this.host.setTimeout(HDt.run,i,n,this,c)),this.logger&&this.logger.info(`Scheduled: ${n}${u?", Cancelled earlier one":""}`)}cancel(n){const i=this.pendingTimeouts.get(n);return i?(this.host.clearTimeout(i),this.pendingTimeouts.delete(n)):!1}static run(n,i,c){var u,d;(u=Zh)==null||u.logStartScheduledOperation(n),i.pendingTimeouts.delete(n),i.logger&&i.logger.info(`Running: ${n}`),c(),(d=Zh)==null||d.logStopScheduledOperation()}},lt=class JDt{constructor(n,i,c){this.host=n,this.delay=i,this.logger=c}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(JDt.run,this.delay,this))}static run(n){var i,c;n.timerId=void 0,(i=Zh)==null||i.logStartScheduledOperation("GC collect");const u=n.logger.hasLevel(2),d=u&&n.host.getMemoryUsage();if(n.host.gc(),u){const h=n.host.getMemoryUsage();n.logger.perftrc(`GC::before ${d}, after ${h}`)}(c=Zh)==null||c.logStopScheduledOperation()}}}}),Wt,tt,Mn,kn,cr,un,on,pn,Or,Xr,Ut,In,gr,Cr,ei=G({"src/server/protocol.ts"(){Wt=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(Wt||{}),tt=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(tt||{}),Mn=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Mn||{}),kn=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(kn||{}),cr=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(cr||{}),un=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(un||{}),on=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(on||{}),pn=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(pn||{}),Or=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Or||{}),Xr=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e))(Xr||{}),Ut=(e=>(e.Classic="Classic",e.Node="Node",e))(Ut||{}),In=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(In||{}),gr=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(gr||{}),Cr=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(Cr||{})}}),Gn={};Oe(Gn,{ClassificationType:()=>Cr,CommandTypes:()=>Wt,CompletionTriggerKind:()=>un,IndentStyle:()=>on,JsxEmit:()=>Or,ModuleKind:()=>Xr,ModuleResolutionKind:()=>Ut,NewLineKind:()=>In,OrganizeImportsMode:()=>tt,PollingWatchKind:()=>cr,ScriptTarget:()=>gr,SemicolonPreference:()=>pn,WatchDirectoryKind:()=>kn,WatchFileKind:()=>Mn});var Ur=G({"src/server/_namespaces/ts.server.protocol.ts"(){ei()}});function so(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Jg(e)[0]==="^"||e.includes(":^")&&!e.includes(qp)}function ho(e){return!e||Jr(e)?Dt.ThrowNoProject():e}function di(e){re.assert(typeof e=="number",`Expected position ${e} to be a number.`),re.assert(e>=0,"Expected position to be non-negative.")}function Nc(e){re.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),re.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),re.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),re.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var ha,ro,Gs=G({"src/server/scriptInfo.ts"(){l_(),$l(),ha=class{constructor(e,n,i){this.host=e,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=i||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(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,n,i){this.switchToScriptVersionCache().edit(e,n-e,i),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return re.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=Dj(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:n,fileSize:i}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},c=this.reload(n);return this.fileSize=i,this.ownFileText=!e||e===this.info.fileName,c}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 e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=mZ.fromString(re.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(e);const i=this.getLineMap();return e<=i.length?{absolutePosition:i[e-1],lineText:this.text.substring(i[e-1],i[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(e);const i=this.getLineMap(),c=i[e],u=e+1n===void 0?n=this.host.readFile(i)||"":n;if(!vR(this.info.fileName)){const u=this.host.getFileSize?this.host.getFileSize(i):c().length;if(u>x_)return re.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${i} for info ${this.info.fileName}: fileSize: ${u}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(i,u),{text:"",fileSize:u}}return{text:c()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=aw.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=aw.fromString(re.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(re.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return re.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=RM(re.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:i=>e.getAbsolutePositionAndLineText(i+1).lineText};const n=this.getLineMap();return kae(this.text,n)}},ro=class{constructor(e,n,i,c,u,d){this.host=e,this.fileName=n,this.scriptKind=i,this.hasMixedContent=c,this.path=u,this.containingProjects=[],this.isDynamic=so(n),this.textStorage=new ha(e,this,d),(c||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=i||EY(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){re.assert(!!this.containingProjects.length);const e=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=e.toPath(n),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const n=!this.isAttached(e);return n&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return ni(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:A8(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){vc(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const n=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),n&&!sl(e)&&e.addMissingFileRoot(n.fileName)}g_(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Dt.ThrowNoProject();case 1:return ho(this.containingProjects[0]);default:let e,n,i,c,u;for(let d=0;d!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,Jr)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,n,i){return this.textStorage.lineOffsetToPosition(e,n,i)}positionToLineOffset(e){di(e);const n=this.textStorage.positionToLineOffset(e);return Nc(n),n}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!As(this.sourceMapFilePath)&&(YE(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Oc(e,n){if(e===n||(e||ke).length===0&&(n||ke).length===0)return!0;const i=new Map;let c=0;for(const u of e)i.get(u)!==!0&&(i.set(u,!0),c++);for(const u of n){const d=i.get(u);if(d===void 0)return!1;d===!0&&(i.set(u,!1),c--)}return c===0}function _u(e,n){return e.enable!==n.enable||!Oc(e.include,n.include)||!Oc(e.exclude,n.exclude)}function Ku(e,n){return TP(e)!==TP(n)}function al(e,n){return e===n?!1:!fv(e,n)}var Rr,mc,Ea=G({"src/server/typingsCache.ts"(){l_(),$l(),Rr={isKnownTypesPackageName:bg,installPackage:Na,enqueueInstallTypingsRequest:ku,attach:ku,onProjectClosed:ku,globalTypingsCacheLocation:void 0},mc=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,n,i){const c=e.getTypeAcquisition();if(!c||!c.enable)return;const u=this.perProjectCache.get(e.getProjectName());(i||!u||_u(c,u.typeAcquisition)||Ku(e.getCompilationSettings(),u.compilerOptions)||al(n,u.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:c,typings:u?u.typings:ke,unresolvedImports:n,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,c,n))}updateTypingsForProject(e,n,i,c,u){const d=fN(u);return this.perProjectCache.set(e,{compilerOptions:n,typeAcquisition:i,typings:d,unresolvedImports:c,poisoned:!1}),!i||!i.enable?ke:d}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName()),this.installer.onProjectClosed(e)}}}});function Fi(e,n=!1){const i={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 c of e){const u=n?c.textStorage.getTelemetryFileSize():0;switch(c.scriptKind){case 1:i.js+=1,i.jsSize+=u;break;case 2:i.jsx+=1,i.jsxSize+=u;break;case 3:Zb(c.fileName)?(i.dts+=1,i.dtsSize+=u):(i.ts+=1,i.tsSize+=u);break;case 4:i.tsx+=1,i.tsxSize+=u;break;case 7:i.deferred+=1,i.deferredSize+=u;break}}return i}function ta(e){const n=Fi(e.getScriptInfos());return n.js>0&&n.ts===0&&n.tsx===0}function $a(e){const n=Fi(e.getRootScriptInfos());return n.ts===0&&n.tsx===0}function jc(e){const n=Fi(e.getScriptInfos());return n.ts===0&&n.tsx===0}function Xu(e){return!e.some(n=>mm(n,".ts")&&!Zb(n)||mm(n,".tsx"))}function Lo(e){return e.generatedFilePath!==void 0}function To(e,n){var i,c;const u=e.getSourceFiles();(i=ps)==null||i.push(ps.Phase.Session,"getUnresolvedImports",{count:u.length});const d=e.getTypeChecker().getAmbientModules().map(S=>S2(S.getName())),h=OD(ea(u,S=>Aa(e,S,d,n)));return(c=ps)==null||c.pop(),h}function Aa(e,n,i,c){return Jw(c,n.path,()=>{let u;return e.forEachResolvedModule(({resolvedModule:d},h)=>{(!d||!G7(d.extension))&&!Kv(h)&&!i.some(S=>S===h)&&(u=ur(u,fae(h).packageName))},n),u||ke})}function sl(e){return e.projectKind===0}function vc(e){return e.projectKind===1}function er(e){return e.projectKind===2}function Jr(e){return e.projectKind===3||e.projectKind===4}var li,Ir,_o,xt,Kn,gn,qr,mt,_r=G({"src/server/project.ts"(){l_(),l_(),$l(),li=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(li||{}),Ir=class $Dt{constructor(n,i,c,u,d,h,S,E,P,k,F){switch(this.projectKind=i,this.projectService=c,this.documentRegistry=u,this.compilerOptions=S,this.compileOnSaveEnabled=E,this.watchOptions=P,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=bg,this.dirty=!1,this.typingFiles=ke,this.moduleSpecifierCache=GT(this),this.createHash=wc(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=kk.nonRelativeModuleNameForTypingCache,this.projectName=n,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(F),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new gye(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(d||TP(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=lye(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),c.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:re.assertNever(c.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const $=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=J=>this.writeLog(J):$.trace&&(this.trace=J=>$.trace(J)),this.realpath=wc($,$.realpath),this.resolutionCache=Wxe(this,this.currentDirectory,!0),this.languageService=_ye(this,this.documentRegistry,this.projectService.serverMode),h&&this.disableLanguageService(h),this.markAsDirty(),Jr(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(n){}isNonTsProject(){return Qa(this),jc(this)}isJsOnlyProject(){return Qa(this),ta(this)}static resolveModule(n,i,c,u){return $Dt.importServicePluginSync({name:n},[i],c,u).resolvedModule}static importServicePluginSync(n,i,c,u){re.assertIsDefined(c.require);let d,h;for(const S of i){const E=$1(c.resolvePath(vl(S,"node_modules")));u(`Loading ${n.name} from ${S} (resolved to ${E})`);const P=c.require(E,n.name);if(!P.error){h=P.module;break}const k=P.error.stack||P.error.message||JSON.stringify(P.error);(d??(d=[])).push(`Failed to load module '${n.name}' from ${E}: ${k}`)}return{pluginConfigEntry:n,resolvedModule:h,errorLogs:d}}static async importServicePluginAsync(n,i,c,u){re.assertIsDefined(c.importPlugin);let d,h;for(const S of i){const E=vl(S,"node_modules");u(`Dynamically importing ${n.name} from ${S} (resolved to ${E})`);let P;try{P=await c.importPlugin(E,n.name)}catch(F){P={module:void 0,error:F}}if(!P.error){h=P.module;break}const k=P.error.stack||P.error.message||JSON.stringify(P.error);(d??(d=[])).push(`Failed to dynamically import module '${n.name}' from ${E}: ${k}`)}return{pluginConfigEntry:n,resolvedModule:h,errorLogs:d}}isKnownTypesPackageName(n){return this.typingsCache.isKnownTypesPackageName(n)}installPackage(n){return this.typingsCache.installPackage({...n,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=zde(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 Yn;let n;return this.rootFilesMap.forEach(i=>{(this.languageServiceEnabled||i.info&&i.info.isScriptOpen())&&(n||(n=[])).push(i.fileName)}),Oi(n,this.typingFiles)||Yn}getOrCreateScriptInfoAndAttachToProject(n){const i=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost);if(i){const c=this.rootFilesMap.get(i.path);c&&c.info!==i&&(this.rootFiles.push(i),c.info=i),i.attachToProject(this)}return i}getScriptKind(n){const i=this.projectService.getScriptInfoForPath(this.toPath(n));return i&&i.scriptKind}getScriptVersion(n){const i=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost);return i&&i.getLatestVersion()}getScriptSnapshot(n){const i=this.getOrCreateScriptInfoAndAttachToProject(n);if(i)return i.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const n=ws(hf(this.projectService.getExecutingFilePath()));return vl(n,$D(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(n,i,c,u,d){return this.directoryStructureHost.readDirectory(n,i,c,u,d)}readFile(n){return this.projectService.host.readFile(n)}writeFile(n,i){return this.projectService.host.writeFile(n,i)}fileExists(n){const i=this.toPath(n);return!this.isWatchedMissingFile(i)&&this.directoryStructureHost.fileExists(n)}resolveModuleNameLiterals(n,i,c,u,d,h){return this.resolutionCache.resolveModuleNameLiterals(n,i,c,u,d,h)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(n,i,c,u,d,h){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(n,i,c,u,d,h)}resolveLibrary(n,i,c,u){return this.resolutionCache.resolveLibrary(n,i,c,u)}directoryExists(n){return this.directoryStructureHost.directoryExists(n)}getDirectories(n){return this.directoryStructureHost.getDirectories(n)}getCachedDirectoryStructureHost(){}toPath(n){return gm(n,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(n,i,c){return this.projectService.watchFactory.watchDirectory(n,i,c,this.projectService.getWatchOptions(this),r0.FailedLookupLocations,this)}watchAffectingFileLocation(n,i){return this.projectService.watchFactory.watchFile(n,i,2e3,this.projectService.getWatchOptions(this),r0.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(n,i,c){return this.projectService.watchFactory.watchDirectory(n,i,c,this.projectService.getWatchOptions(this),r0.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(n){return this.projectService.openFiles.has(n)}writeLog(n){this.projectService.logger.info(n)}log(n){this.writeLog(n)}error(n){this.projectService.logger.msg(n,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return gi(this.projectErrors,n=>!n.file)||ke}getAllProjectErrors(){return this.projectErrors||ke}setProjectErrors(n){this.projectErrors=n}getLanguageService(n=!0){return n&&Qa(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(n,i){return this.projectService.getDocumentPositionMapper(this,n,i)}getSourceFileLike(n){return this.projectService.getSourceFileLike(n,this)}shouldEmitFile(n){return n&&!n.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(n.path)}getCompileOnSaveAffectedFileList(n){return this.languageServiceEnabled?(Qa(this),this.builderState=cD.create(this.program,this.builderState,!0),Qo(cD.getFilesAffectedBy(this.builderState,this.program,n.path,this.cancellationToken,this.projectService.host),i=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(i.path))?i.fileName:void 0)):[]}emitFile(n,i){if(!this.languageServiceEnabled||!this.shouldEmitFile(n))return{emitSkipped:!0,diagnostics:ke};const{emitSkipped:c,diagnostics:u,outputFiles:d}=this.getLanguageService().getEmitOutput(n.fileName);if(!c){for(const h of d){const S=vf(h.name,this.currentDirectory);i(S,h.text,h.writeByteOrderMark)}if(this.builderState&&gv(this.compilerOptions)){const h=d.filter(S=>Zb(S.name));if(h.length===1){const S=this.program.getSourceFile(n.fileName),E=this.projectService.host.createHash?this.projectService.host.createHash(h[0].text):Mz(h[0].text);cD.updateSignatureOfFile(this.builderState,E,S.resolvedPath)}}}return{emitSkipped:c,diagnostics:u}}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 n of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(n.fileName);this.program.forEachResolvedProjectReference(n=>this.detachScriptInfoFromProject(n.sourceFile.fileName)),this.program=void 0}}disableLanguageService(n){this.languageServiceEnabled&&(re.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=n,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(n){return!n||!n.include?n:{...n,include:this.removeExistingTypings(n.include)}}getExternalFiles(n){return fN(ea(this.plugins,i=>{if(typeof i.module.getExternalFiles=="function")try{return i.module.getExternalFiles(this,n||0)}catch(c){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${c}`),c.stack&&this.projectService.logger.info(c.stack)}}))}getSourceFile(n){if(this.program)return this.program.getSourceFileByPath(n)}getSourceFileOrConfigFile(n){const i=this.program.getCompilerOptions();return n===i.configFilePath?i.configFile:this.getSourceFile(n)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ot(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n));for(const n of this.rootFiles)n.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&&(Mh(this.missingFilesMap,Ib),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(n){const i=this.projectService.getScriptInfo(n);i&&!this.isRoot(i)&&i.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(n=>n.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Vn(this.program.getSourceFiles(),n=>{const i=this.projectService.getScriptInfoForPath(n.resolvedPath);return re.assert(!!i,"getScriptInfo",()=>`scriptInfo for a file '${n.fileName}' Path: '${n.path}' / '${n.resolvedPath}' is missing.`),i}):this.rootFiles}getExcludedFiles(){return ke}getFileNames(n,i){if(!this.program)return[];if(!this.languageServiceEnabled){let u=this.getRootFiles();if(this.compilerOptions){const d=pDe(this.compilerOptions);d&&(u||(u=[])).push(d)}return u}const c=[];for(const u of this.program.getSourceFiles())n&&this.program.isSourceFileFromExternalLibrary(u)||c.push(u.fileName);if(!i){const u=this.program.getCompilerOptions().configFile;if(u&&(c.push(u.fileName),u.extendedSourceFiles))for(const d of u.extendedSourceFiles)c.push(d)}return c}getFileNamesWithRedirectInfo(n){return this.getFileNames().map(i=>({fileName:i,isSourceOfProjectReferenceRedirect:n&&this.isSourceOfProjectReferenceRedirect(i)}))}hasConfigFile(n){if(this.program&&this.languageServiceEnabled){const i=this.program.getCompilerOptions().configFile;if(i){if(n===i.fileName)return!0;if(i.extendedSourceFiles){for(const c of i.extendedSourceFiles)if(n===c)return!0}}}return!1}containsScriptInfo(n){if(this.isRoot(n))return!0;if(!this.program)return!1;const i=this.program.getSourceFileByPath(n.path);return!!i&&i.resolvedPath===n.path}containsFile(n,i){const c=this.projectService.getScriptInfoForNormalizedPath(n);return c&&(c.isScriptOpen()||!i)?this.containsScriptInfo(c):!1}isRoot(n){var i;return this.rootFilesMap&&((i=this.rootFilesMap.get(n.path))==null?void 0:i.info)===n}addRoot(n,i){re.assert(!this.isRoot(n)),this.rootFiles.push(n),this.rootFilesMap.set(n.path,{fileName:i||n.fileName,info:n}),n.attachToProject(this),this.markAsDirty()}addMissingFileRoot(n){const i=this.projectService.toPath(n);this.rootFilesMap.set(i,{fileName:n}),this.markAsDirty()}removeFile(n,i,c){this.isRoot(n)&&this.removeRoot(n),i?this.resolutionCache.removeResolutionsOfFile(n.path):this.resolutionCache.invalidateResolutionOfFile(n.path),this.cachedUnresolvedImportsPerFile.delete(n.path),c&&n.detachFromProject(this),this.markAsDirty()}registerFileUpdate(n){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(n)}markFileAsDirty(n){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(n)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var n;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(n=this.autoImportProviderHost)==null||n.markAsDirty()}onPackageJsonChange(n){var i;(i=this.packageJsonsForAutoImport)!=null&&i.has(n)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(n){this.hasAddedorRemovedFiles=!0,n&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var n,i,c,u,d;(n=ps)==null||n.push(ps.Phase.Session,"updateGraph",{name:this.projectName,kind:li[this.projectKind]}),(i=Zh)==null||i.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const h=this.updateGraphWorker(),S=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const E=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||ke;for(const k of E)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((h||E.length)&&(this.lastCachedUnresolvedImportsList=To(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,S)):this.lastCachedUnresolvedImportsList=void 0;const P=this.projectProgramVersion===0&&h;return h&&this.projectProgramVersion++,S&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(c=this.autoImportProviderHost)==null||c.markAsDirty()),P&&this.getPackageJsonAutoImportProvider(),(u=Zh)==null||u.logStopUpdateGraph(),(d=ps)==null||d.pop(),!h}updateTypingFiles(n){zD(n,this.typingFiles,Xw(!this.useCaseSensitiveFileNames()),ku,i=>this.detachScriptInfoFromProject(i))&&(this.typingFiles=n,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Mh(this.typingWatchers,Ib),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:dZ})}watchTypingLocations(n){if(!n){this.typingWatchers.isInvoked=!1;return}if(!n.length){this.closeWatchingTypingLocations();return}const i=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const c=(u,d)=>{const h=this.toPath(u);i.delete(h),this.typingWatchers.has(h)||this.typingWatchers.set(h,d==="FileWatcher"?this.projectService.watchFactory.watchFile(u,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),r0.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(u,S=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!mm(S,".json"))return this.writeLog("Ignoring files that are not *.json");if(Rv(S,vl(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),r0.TypingInstallerLocationDirectory,this))};for(const u of n){const d=Jg(u);if(d==="package.json"||d==="bower.json"){c(u,"FileWatcher");continue}if(OE(this.currentDirectory,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){const h=u.indexOf(qp,this.currentDirectory.length+1);c(h!==-1?u.substr(0,h):u,"DirectoryWatcher");continue}if(OE(this.projectService.typingsInstaller.globalTypingsCacheLocation,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){c(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}c(u,"DirectoryWatcher")}i.forEach((u,d)=>{u.close(),this.typingWatchers.delete(d)})}getCurrentProgram(){return this.program}removeExistingTypings(n){const i=Qpe(this.getCompilerOptions(),this.directoryStructureHost);return n.filter(c=>!i.includes(c))}updateGraphWorker(){var n,i;const c=this.languageService.getCurrentProgram();re.assert(c===this.program),re.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const u=H_(),{hasInvalidatedResolutions:d,hasInvalidatedLibResolutions:h}=this.resolutionCache.createHasInvalidatedResolutions(bg,bg);this.hasInvalidatedResolutions=d,this.hasInvalidatedLibResolutions=h,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(n=ps)==null||n.push(ps.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,c),(i=ps)==null||i.pop(),re.assert(c===void 0||this.program!==void 0);let S=!1;if(this.program&&(!c||this.program!==c&&this.program.structureIsReused!==2)){if(S=!0,c){for(const k of c.getSourceFiles()){const F=this.program.getSourceFileByPath(k.resolvedPath);(!F||k.resolvedPath===k.path&&F.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}c.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(jme(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=Ng(this.compilerOptions);Lo(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(wg(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((F,$)=>{const J=this.program.getSourceFileByPath($);(!J||J.resolvedPath!==$||!this.isValidGeneratedFileWatcher(Mie(J.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),F))&&(YE(F),this.generatedFilesMap.delete($))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||c&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&c&&this.program&&gA(this.changedFilesForExportMapCache,k=>{const F=c.getSourceFileByPath(k),$=this.program.getSourceFileByPath(k);return!F||!$?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(F,$,!!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 E=this.externalFiles||ke;this.externalFiles=this.getExternalFiles(),zD(this.externalFiles,E,Xw(!this.useCaseSensitiveFileNames()),k=>{const F=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);F==null||F.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const P=H_()-u;return this.sendPerformanceEvent("UpdateGraph",P),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${S}${this.program?` structureIsReused:: ${gX[this.program.structureIsReused]}`:""} Elapsed: ${P}ms`),this.projectService.logger.isTestLogger?this.program!==c?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==c&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),S}sendPerformanceEvent(n,i){this.projectService.sendPerformanceEvent(n,i)}detachScriptInfoFromProject(n,i,c){const u=this.projectService.getScriptInfo(n);u&&(u.detachFromProject(this),i||this.resolutionCache.removeResolutionsOfFile(u.path,c))}addMissingFileWatcher(n){var i;if(vc(this)){const u=this.projectService.configFileExistenceInfoCache.get(n);if((i=u==null?void 0:u.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return L$}const c=this.projectService.watchFactory.watchFile(n,(u,d)=>{vc(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(u,n,d),d===0&&this.missingFilesMap.has(n)&&(this.missingFilesMap.delete(n),c.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),r0.MissingFile,this);return c}isWatchedMissingFile(n){return!!this.missingFilesMap&&this.missingFilesMap.has(n)}addGeneratedFileWatch(n,i){if(Ng(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(n));else{const c=this.toPath(i);if(this.generatedFilesMap){if(Lo(this.generatedFilesMap)){re.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(c))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(c,this.createGeneratedFileWatcher(n))}}createGeneratedFileWatcher(n){return{generatedFilePath:this.toPath(n),watcher:this.projectService.watchFactory.watchFile(n,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),r0.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(n,i){return this.toPath(n)===i.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Lo(this.generatedFilesMap)?YE(this.generatedFilesMap):Mh(this.generatedFilesMap,YE),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(n){const i=this.projectService.getScriptInfoForPath(this.toPath(n));return i&&!i.isAttached(this)?Dt.ThrowProjectDoesNotContainDocument(n,this):i}getScriptInfo(n){return this.projectService.getScriptInfo(n)}filesToString(n){return this.filesToStringWorker(n,!0,!1)}filesToStringWorker(n,i,c){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const u=this.program.getSourceFiles();let d=` Files (${u.length}) `;if(n){for(const h of u)d+=` ${h.fileName}${c?` ${h.version} ${JSON.stringify(h.text)}`:""} `;i&&(d+=` `,hse(this.program,h=>d+=` ${h} -`))}return d}print(n,i,c){this.writeLog(`Project '${this.projectName}' (${li[this.projectKind]})`),this.writeLog(this.filesToStringWorker(n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3),c&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(n){var i;if(n){n.allowNonTsExtensions=!0;const c=this.compilerOptions;this.compilerOptions=n,this.setInternalCompilerOptionsForEmittingJsFiles(),(i=this.noDtsResolutionProject)==null||i.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Td(c,n)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(n){this.watchOptions=n}getWatchOptions(){return this.watchOptions}setTypeAcquisition(n){n&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(n))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(n,i){var c,u;const d=i?E=>oc(E.entries(),([P,k])=>({fileName:P,isSourceOfProjectReferenceRedirect:k})):E=>oc(E.keys());this.isInitialLoadPending()||Qa(this);const h={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:sl(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},S=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&n===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!S)return{info:h,projectErrors:this.getGlobalProjectErrors()};const E=this.lastReportedFileNames,P=((c=this.externalFiles)==null?void 0:c.map(ie=>({fileName:te(ie),isSourceOfProjectReferenceRedirect:!1})))||ke,k=QT(this.getFileNamesWithRedirectInfo(!!i).concat(P),ie=>ie.fileName,ie=>ie.isSourceOfProjectReferenceRedirect),F=new Map,$=new Map,J=S?oc(S.keys()):[],X=[];return Jb(k,(ie,ae)=>{E.has(ae)?i&&ie!==E.get(ae)&&X.push({fileName:ae,isSourceOfProjectReferenceRedirect:ie}):F.set(ae,ie)}),Jb(E,(ie,ae)=>{k.has(ae)||$.set(ae,ie)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:h,changes:{added:d(F),removed:d($),updated:i?J.map(ie=>({fileName:ie,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(ie)})):J,updatedRedirects:i?X:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const E=this.getFileNamesWithRedirectInfo(!!i),P=((u=this.externalFiles)==null?void 0:u.map(F=>({fileName:te(F),isSourceOfProjectReferenceRedirect:!1})))||ke,k=E.concat(P);return this.lastReportedFileNames=QT(k,F=>F.fileName,F=>F.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:h,files:i?k:k.map(F=>F.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(n){AL(this.rootFiles,n),this.rootFilesMap.delete(n.path)}isSourceOfProjectReferenceRedirect(n){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(n)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,vl(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(n){if(!this.projectService.globalPlugins.length)return;const i=this.projectService.host;if(!i.require&&!i.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const c=this.getGlobalPluginSearchPaths();for(const u of this.projectService.globalPlugins)u&&(n.plugins&&n.plugins.some(d=>d.name===u)||(this.projectService.logger.info(`Loading global plugin ${u}`),this.enablePlugin({name:u,global:!0},c)))}enablePlugin(n,i){this.projectService.requestEnablePlugin(this,n,i)}enableProxy(n,i){try{if(typeof n!="function"){this.projectService.logger.info(`Skipped loading plugin ${i.name} because it did not expose a proper factory function`);return}const c={config:i,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},u=n({typescript:y_}),d=u.create(c);for(const h of Object.keys(this.languageService))h in d||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${h} in created LS. Patching.`),d[h]=this.languageService[h]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=d,this.plugins.push({name:i.name,module:u})}catch(c){this.projectService.logger.info(`Plugin activation failed: ${c}`)}}onPluginConfigurationChanged(n,i){this.plugins.filter(c=>c.name===n).forEach(c=>{c.module.onConfigurationChanged&&c.module.onConfigurationChanged(i)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(n,i){return this.projectService.serverMode!==0?ke:this.projectService.getPackageJsonsVisibleToFile(n,i)}getNearestAncestorDirectoryWithPackageJson(n){return this.projectService.getNearestAncestorDirectoryWithPackageJson(n)}getPackageJsonsForAutoImport(n){const i=this.getPackageJsonsVisibleToFile(vl(this.currentDirectory,hj),n);return this.packageJsonsForAutoImport=new Set(i.map(c=>c.fileName)),i}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=jAe(this))}clearCachedExportInfoMap(){var n;(n=this.exportMapCache)==null||n.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||KZ(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var n,i;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((n=this.projectService.host.realpath)==null?void 0:n.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:(i=this.projectService.host.trace)==null?void 0:i.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var n,i,c;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Qa(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const u=this.includePackageJsonAutoImports();if(u){(n=ps)==null||n.push(ps.Phase.Session,"getPackageJsonAutoImportProvider");const d=H_();if(this.autoImportProviderHost=gn.create(u,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Qa(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",H_()-d),(i=ps)==null||i.pop(),this.autoImportProviderHost.getCurrentProgram();(c=ps)==null||c.pop()}}isDefaultProjectForOpenFiles(){return!!Jb(this.projectService.openFiles,(n,i)=>this.projectService.tryGetDefaultProjectForFile(te(i))===this)}watchNodeModulesForPackageJsonChanges(n){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(n),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(n){return re.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new xt(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==n&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[n]),this.noDtsResolutionProject.rootFile=n),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Yn,lib:Yn,noLib:!0}}},_o=class extends Ir{constructor(e,n,i,c,u,d,h){super(e.newInferredProjectName(),0,e,n,void 0,void 0,i,!1,c,e.host,d),this._isJsInferredProject=!1,this.typeAcquisition=h,this.projectRootPath=u&&e.toCanonicalFileName(u),!u&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const n=PZ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof n.maxNodeModuleJsDepth!="number"?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(e){re.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&jr(this.getRootScriptInfos(),n=>!n.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ot(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:$a(this),include:Yn,exclude:Yn}}},xt=class extends Ir{constructor(e,n,i,c){super(e.newAuxiliaryProjectName(),4,e,n,!1,void 0,i,!1,void 0,e.host,c)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Kn=class S1t extends Ir{constructor(n,i,c,u){super(n.projectService.newAutoImportProviderProjectName(),3,n.projectService,c,!1,void 0,u,!1,n.getWatchOptions(),n.projectService.host,n.currentDirectory),this.hostProject=n,this.rootFileNames=i,this.useSourceOfProjectReferenceRedirect=wc(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=wc(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(n,i,c,u){var d,h;if(!n)return Yn;const S=i.getCurrentProgram();if(!S)return Yn;const E=H_();let P,k;const F=vl(i.currentDirectory,hj),$=i.getPackageJsonsForAutoImport(vl(i.currentDirectory,F));for(const ae of $)(d=ae.dependencies)==null||d.forEach((ve,we)=>X(we)),(h=ae.peerDependencies)==null||h.forEach((ve,we)=>X(we));let J=0;if(P){const ae=i.getSymlinkCache();for(const ve of oc(P.keys())){if(n===2&&J>this.maxDependencies)return i.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Yn;const we=Ype(ve,i.currentDirectory,u,c,S.getModuleResolutionCache());if(we){const et=ie(we,S,ae);if(et){k=Hi(k,et),J+=et.length?1:0;continue}}if(!Ot([i.currentDirectory,i.getGlobalTypingsCacheLocation()],et=>{if(et){const Pe=Ype(`@types/${ve}`,et,u,c,S.getModuleResolutionCache());if(Pe){const dt=ie(Pe,S,ae);return k=Hi(k,dt),J+=dt!=null&&dt.length?1:0,!0}}})&&we&&u.allowJs&&u.maxNodeModuleJsDepth){const et=ie(we,S,ae,!0);k=Hi(k,et),J+=et!=null&&et.length?1:0}}}return k!=null&&k.length&&i.log(`AutoImportProviderProject: found ${k.length} root files in ${J} dependencies in ${H_()-E} ms`),k||Yn;function X(ae){qf(ae,"@types/")||(P||(P=new Set)).add(ae)}function ie(ae,ve,we,Fe){var et;const Pe=c4(ae,u,c,ve.getModuleResolutionCache(),Fe);if(Pe){const dt=(et=c.realpath)==null?void 0:et.call(c,ae.packageDirectory),Ie=dt?i.toPath(dt):void 0,ct=Ie&&Ie!==i.toPath(ae.packageDirectory);return ct&&we.setSymlinkedDirectory(ae.packageDirectory,{real:Su(dt),realPath:Su(Ie)}),Qo(Pe,Ct=>{const Lt=ct?Ct.replace(ae.packageDirectory,dt):Ct;if(!ve.getSourceFile(Lt)&&!(ct&&ve.getSourceFile(Ct)))return Lt})}}}static create(n,i,c,u){if(n===0)return;const d={...i.getCompilerOptions(),...this.compilerOptionsOverrides},h=this.getRootFileNames(n,i,c,d);if(h.length)return new S1t(i,h,u,d)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=S1t.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;const i=this.getCurrentProgram(),c=super.updateGraph();return i&&i!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),c}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var n;return!!((n=this.rootFileNames)!=null&&n.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Yn}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 n;return(n=this.hostProject.getCurrentProgram())==null?void 0:n.getModuleResolutionCache()}},Kn.maxDependencies=10,Kn.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Yn,lib:Yn,noLib:!0},gn=Kn,qr=class extends Ir{constructor(e,n,i,c,u){super(e,1,i,c,!1,void 0,{},!1,void 0,u,ws(e)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=xT,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const n=hf(e),i=this.projectService.toCanonicalFileName(n);let c=this.projectService.configFileExistenceInfoCache.get(i);return c||this.projectService.configFileExistenceInfoCache.set(i,c={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,i,c,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(n,c,this),c.exists?c.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(hf(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=bg;const n=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let i;switch(n){case 1:this.openFileWatchTriggered.clear(),i=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const c=re.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,c,e,!1),i=!0;break;default:i=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),i}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){re.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const n=this.getCurrentProgram();return n&&n.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var n;return(n=this.getCurrentProgram())==null?void 0:n.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var n;if(this.plugins.length=0,!((n=e.plugins)!=null&&n.length)&&!this.projectService.globalPlugins.length)return;const i=this.projectService.host;if(!i.require&&!i.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const c=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const u=ws(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${u} to search paths`),c.unshift(u)}if(e.plugins)for(const u of e.plugins)this.enablePlugin(u,c);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return gi(this.projectErrors,e=>!e.file)||ke}getAllProjectErrors(){return this.projectErrors||ke}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,n)=>this.releaseParsedConfig(n)),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(e){return Zt(this,e.path,n=>Ca(n,e)?n:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const n=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=n.openFilesImpactedByConfigFile)!=null&&e.size):!!n.openFilesImpactedByConfigFile&&Jb(n.openFilesImpactedByConfigFile,(i,c)=>{const u=this.projectService.getScriptInfoForPath(c);return this.containsScriptInfo(u)||!!Zt(this,u.path,d=>d.containsScriptInfo(u),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return ZG(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){Ope(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},mt=class extends Ir{constructor(e,n,i,c,u,d,h,S){super(e,2,n,i,!0,u,c,d,S,n.host,ws(h||$1(e))),this.externalProjectName=e,this.compileOnSaveEnabled=d,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Cn(e){const n=new Map;for(const i of e)if(typeof i.type=="object"){const c=i.type;c.forEach(u=>{re.assert(typeof u=="number")}),n.set(i.name,c)}return n}function oi(e){return As(e.indentStyle)&&(e.indentStyle=H0.get(e.indentStyle.toLowerCase()),re.assert(e.indentStyle!==void 0)),e}function Qr(e){return Kh.forEach((n,i)=>{const c=e[i];As(c)&&(e[i]=n.get(c.toLowerCase()))}),e}function co(e,n){let i,c;return fC.forEach(u=>{const d=e[u.name];if(d===void 0)return;const h=uS.get(u.name);(i||(i={}))[u.name]=h?As(d)?h.get(d.toLowerCase()):d:x6(u,d,n||"",c||(c=[]))}),i&&{watchOptions:i,errors:c}}function es(e){let n;return fQ.forEach(i=>{const c=e[i.name];c!==void 0&&((n||(n={}))[i.name]=c)}),n}function Ui(e){return As(e)?xu(e):e}function xu(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function We(e){const{lazyConfiguredProjectsFromExternalProject:n,...i}=e;return i}function Re(e,n){for(const i of n)if(i.getProjectName()===e)return i}function wt(e){return!!e.containingProjects}function $e(e){return!!e.configFileInfo}function Zt(e,n,i,c,u){var d;const h=(d=e.getCurrentProgram())==null?void 0:d.getResolvedProjectReferences();if(!h)return;let S;const E=n?e.getResolvedProjectReferenceToRedirect(n):void 0;if(E){const k=te(E.sourceFile.fileName),F=e.projectService.findConfiguredProjectByProjectName(k);if(F){const $=i(F);if($)return $}else if(c!==0){S=new Map;const $=xe(h,e.getCompilerOptions(),(J,X)=>E===J?P(J,X):void 0,c,e.projectService,S);if($)return $;S.clear()}}return xe(h,e.getCompilerOptions(),(k,F)=>E!==k?P(k,F):void 0,c,e.projectService,S);function P(k,F){const $=te(k.sourceFile.fileName),J=e.projectService.findConfiguredProjectByProjectName($)||(F===0?void 0:F===1?e.projectService.createConfiguredProject($):F===2?e.projectService.createAndLoadConfiguredProject($,u):re.assertNever(F));return J&&i(J)}}function xe(e,n,i,c,u,d){const h=n.disableReferencedProjectLoad?0:c;return Ot(e,S=>{if(!S)return;const E=te(S.sourceFile.fileName),P=u.toCanonicalFileName(E),k=d==null?void 0:d.get(P);if(k!==void 0&&k>=h)return;const F=i(S,h);return F||((d||(d=new Map)).set(P,h),S.references&&xe(S.references,S.commandLine.options,i,h,u,d))})}function an(e,n){return e.potentialProjectReferences&&gA(e.potentialProjectReferences,n)}function Un(e,n,i,c){return e.getCurrentProgram()?e.forEachResolvedProjectReference(n):e.isInitialLoadPending()?an(e,c):Ot(e.getProjectReferences(),i)}function rr(e,n,i){const c=i&&e.projectService.configuredProjects.get(i);return c&&n(c)}function mi(e,n){return Un(e,i=>rr(e,n,i.sourceFile.path),i=>rr(e,n,e.toPath(vF(i))),i=>rr(e,n,i))}function Ji(e,n){return`${As(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${e}`}function zo(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Ca(e,n){return e.containsScriptInfo(n)&&!e.isSourceOfProjectReferenceRedirect(n.path)}function Qa(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Ks(e){vc(e)&&(e.projectOptions=!0)}function vs(e){let n=1;return()=>e(n++)}function ou(){return{idToCallbacks:new Map,pathToId:new Map}}function qd(e,n){if(!n||!e.eventHandler||!e.session)return;const i=ou(),c=ou(),u=ou();let d=1;return e.session.addProtocolHandler("watchChange",$=>(P($.arguments),{responseRequired:!1})),{watchFile:h,watchDirectory:S,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function h($,J){return E(i,$,J,X=>({eventName:zv,data:{id:X,path:$}}))}function S($,J,X){return E(X?u:c,$,J,ie=>({eventName:m_,data:{id:ie,path:$,recursive:!!X}}))}function E({pathToId:$,idToCallbacks:J},X,ie,ae){const ve=e.toPath(X);let we=$.get(ve);we||$.set(ve,we=d++);let Fe=J.get(we);return Fe||(J.set(we,Fe=new Set),e.eventHandler(ae(we))),Fe.add(ie),{close(){const et=J.get(we);et!=null&&et.delete(ie)&&(et.size||(J.delete(we),$.delete(ve),e.eventHandler({eventName:Yu,data:{id:we}})))}}}function P({id:$,path:J,eventType:X}){k($,J,X),F(c,$,J,X),F(u,$,J,X)}function k($,J,X){var ie;(ie=i.idToCallbacks.get($))==null||ie.forEach(ae=>{ae(J,X==="create"?0:X==="delete"?2:1)})}function F({idToCallbacks:$},J,X,ie){var ae;ie!=="update"&&((ae=$.get(J))==null||ae.forEach(ve=>{ve(X)}))}}function z_(){let e;return{get(){return e},set(n){e=n},clear(){e=void 0}}}function fp(e){return e.kind!==void 0}function Ha(e){e.print(!1,!1,!1)}var mu,x_,q_,Ma,U0,c_,Kd,iy,Oh,jg,zv,m_,Yu,Tv,Kh,uS,H0,fx,rd,Mg,lm,nm,po,hy,fS=G({"src/server/editorServices.ts"(){l_(),$l(),ei(),mu=20*1024*1024,x_=4*1024*1024,q_="projectsUpdatedInBackground",Ma="projectLoadingStart",U0="projectLoadingFinish",c_="largeFileReferenced",Kd="configFileDiag",iy="projectLanguageServiceState",Oh="projectInfo",jg="openFileInfo",zv="createFileWatcher",m_="createDirectoryWatcher",Yu="closeFileWatcher",Tv="*ensureProjectForOpenFiles*",Kh=Cn(hI),uS=Cn(fC),H0=new Map(Object.entries({none:0,block:1,smart:2})),fx={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,"$"]]}},rd={getFileName:e=>e,getScriptKind:(e,n)=>{let i;if(n){const c=t7(e);c&>(n,u=>u.extension===c?(i=u.scriptKind,!0):!1)}return i},hasMixedContent:(e,n)=>gt(n,i=>i.isMixedContent&&mm(e,i.extension))},Mg={getFileName:e=>e.fileName,getScriptKind:e=>Ui(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},lm={close:ku},nm=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(nm||{}),po=class E1t{constructor(n){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=vs(Be),this.newAutoImportProviderProjectName=vs(Ve),this.newAuxiliaryProjectName=vs(pt),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=fx,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=ku,this.verifyProgram=ku,this.onProjectCreation=ku;var i;this.host=n.host,this.logger=n.logger,this.cancellationToken=n.cancellationToken,this.useSingleInferredProject=n.useSingleInferredProject,this.useInferredProjectPerProjectRoot=n.useInferredProjectPerProjectRoot,this.typingsInstaller=n.typingsInstaller||Rr,this.throttleWaitMilliseconds=n.throttleWaitMilliseconds,this.eventHandler=n.eventHandler,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.globalPlugins=n.globalPlugins||ke,this.pluginProbeLocations=n.pluginProbeLocations||ke,this.allowLocalPluginLoads=!!n.allowLocalPluginLoads,this.typesMapLocation=n.typesMapLocation===void 0?vl(ws(this.getExecutingFilePath()),"typesMap.json"):n.typesMapLocation,this.session=n.session,this.jsDocParsingMode=n.jsDocParsingMode,n.serverMode!==void 0?this.serverMode=n.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=zg()),this.currentDirectory=te(this.host.getCurrentDirectory()),this.toCanonicalFileName=H1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Su(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ut(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 mc(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:pZ(this.host.newLine),preferences:lx,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Ace(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const c=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,u=c!==0?d=>this.logger.info(d):ku;this.packageJsonCache=oh(this),this.watchFactory=this.serverMode!==0?{watchFile:O$,watchDirectory:O$}:mxe(qd(this,n.canUseWatchEvents)||this.host,c,u,Ji),(i=n.incrementalVerifier)==null||i.call(n,this)}toPath(n){return gm(n,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(n){return vf(n,this.host.getCurrentDirectory())}setDocument(n,i,c){const u=re.checkDefined(this.getScriptInfoForPath(i));u.cacheSourceFile={key:n,sourceFile:c}}getDocument(n,i){const c=this.getScriptInfoForPath(i);return c&&c.cacheSourceFile&&c.cacheSourceFile.key===n?c.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(n,i){if(!this.eventHandler)return;const c={eventName:iy,data:{project:n,languageServiceEnabled:i}};this.eventHandler(c)}loadTypesMap(){try{const n=this.host.readFile(this.typesMapLocation);if(n===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const i=JSON.parse(n);for(const c of Object.keys(i.typesMap))i.typesMap[c].match=new RegExp(i.typesMap[c].match,"i");this.safelist=i.typesMap;for(const c in i.simpleMap)ef(i.simpleMap,c)&&this.legacySafelist.set(c,i.simpleMap[c].toLowerCase())}catch(n){this.logger.info(`Error loading types map: ${n}`),this.safelist=fx,this.legacySafelist.clear()}}updateTypingsForProject(n){const i=this.findProject(n.projectName);if(i)switch(n.kind){case _Z:i.updateTypingFiles(this.typingsCache.updateTypingsForProject(n.projectName,n.compilerOptions,n.typeAcquisition,n.unresolvedImports,n.typings));return;case dZ:this.typingsCache.enqueueInstallTypingsForProject(i,i.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(n){var i;(i=this.findProject(n.projectName))==null||i.watchTypingLocations(n.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Tv,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(n){if(n.markAsDirty(),Jr(n))return;const i=n.getProjectName();this.pendingProjectUpdates.set(i,n),this.throttledOperations.schedule(i,250,()=>{this.pendingProjectUpdates.delete(i)&&Qa(n)})}hasPendingProjectUpdate(n){return this.pendingProjectUpdates.has(n.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const n={eventName:q_,data:{openFiles:oc(this.openFiles.keys(),i=>this.getScriptInfoForPath(i).fileName)}};this.eventHandler(n)}sendLargeFileReferencedEvent(n,i){if(!this.eventHandler)return;const c={eventName:c_,data:{file:n,fileSize:i,maxFileSize:x_}};this.eventHandler(c)}sendProjectLoadingStartEvent(n,i){if(!this.eventHandler)return;n.sendLoadingProjectFinish=!0;const c={eventName:Ma,data:{project:n,reason:i}};this.eventHandler(c)}sendProjectLoadingFinishEvent(n){if(!this.eventHandler||!n.sendLoadingProjectFinish)return;n.sendLoadingProjectFinish=!1;const i={eventName:U0,data:{project:n}};this.eventHandler(i)}sendPerformanceEvent(n,i){this.performanceEventHandler&&this.performanceEventHandler({kind:n,durationMs:i})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n){this.delayUpdateProjectGraph(n),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(n,i){if(n.length){for(const c of n)i&&c.clearSourceMapperCache(),this.delayUpdateProjectGraph(c);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(n,i){re.assert(i===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const c=Qr(n),u=co(n,i),d=es(n);c.allowNonTsExtensions=!0;const h=i&&this.toCanonicalFileName(i);h?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(h,c),this.watchOptionsForInferredProjectsPerProjectRoot.set(h,u||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(h,d)):(this.compilerOptionsForInferredProjects=c,this.watchOptionsForInferredProjects=u,this.typeAcquisitionForInferredProjects=d);for(const S of this.inferredProjects)(h?S.projectRootPath===h:!S.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(S.projectRootPath))&&(S.setCompilerOptions(c),S.setTypeAcquisition(d),S.setWatchOptions(u==null?void 0:u.watchOptions),S.setProjectErrors(u==null?void 0:u.errors),S.compileOnSaveEnabled=c.compileOnSave,S.markAsDirty(),this.delayUpdateProjectGraph(S));this.delayEnsureProjectForOpenFiles()}findProject(n){if(n!==void 0)return Ne(n)?Re(n,this.inferredProjects):this.findExternalProjectByProjectName(n)||this.findConfiguredProjectByProjectName(te(n))}forEachProject(n){this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n)}forEachEnabledProject(n){this.forEachProject(i=>{!i.isOrphan()&&i.languageServiceEnabled&&n(i)})}getDefaultProjectForFile(n,i){return i?this.ensureDefaultProjectForFile(n):this.tryGetDefaultProjectForFile(n)}tryGetDefaultProjectForFile(n){const i=As(n)?this.getScriptInfoForNormalizedPath(n):n;return i&&!i.isOrphan()?i.getDefaultProject():void 0}ensureDefaultProjectForFile(n){return this.tryGetDefaultProjectForFile(n)||this.doEnsureDefaultProjectForFile(n)}doEnsureDefaultProjectForFile(n){this.ensureProjectStructuresUptoDate();const i=As(n)?this.getScriptInfoForNormalizedPath(n):n;return i?i.getDefaultProject():(this.logErrorForScriptInfoNotFound(As(n)?n:n.fileName),Dt.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(n){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(n)}ensureProjectStructuresUptoDate(){let n=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const i=c=>{n=Qa(c)||n};this.externalProjects.forEach(i),this.configuredProjects.forEach(i),this.inferredProjects.forEach(i),n&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(n){const i=this.getScriptInfoForNormalizedPath(n);return i&&i.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(n){const i=this.getScriptInfoForNormalizedPath(n);return{...this.hostConfiguration.preferences,...i&&i.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(n,i){i===2?this.handleDeletedFile(n):n.isScriptOpen()||(n.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n))}handleSourceMapProjects(n){if(n.sourceMapFilePath)if(As(n.sourceMapFilePath)){const i=this.getScriptInfoForPath(n.sourceMapFilePath);this.delayUpdateSourceInfoProjects(i&&i.sourceInfos)}else this.delayUpdateSourceInfoProjects(n.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(n.sourceInfos),n.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(n.declarationInfoPath)}delayUpdateSourceInfoProjects(n){n&&n.forEach((i,c)=>this.delayUpdateProjectsOfScriptInfoPath(c))}delayUpdateProjectsOfScriptInfoPath(n){const i=this.getScriptInfoForPath(n);i&&this.delayUpdateProjectGraphs(i.containingProjects,!0)}handleDeletedFile(n){if(this.stopWatchingScriptInfo(n),!n.isScriptOpen()){this.deleteScriptInfo(n);const i=n.containingProjects.slice();if(n.detachAllProjects(),this.delayUpdateProjectGraphs(i,!1),this.handleSourceMapProjects(n),n.closeSourceMapFileWatcher(),n.declarationInfoPath){const c=this.getScriptInfoForPath(n.declarationInfoPath);c&&(c.sourceMapFilePath=void 0)}}}watchWildcardDirectory(n,i,c,u){return this.watchFactory.watchDirectory(n,d=>{const h=this.toPath(d),S=u.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,h);Jg(h)==="package.json"&&!KZ(h)&&(S&&S.fileExists||!S&&this.host.fileExists(h))&&(this.logger.info(`Config: ${c} Detected new package.json: ${d}`),this.onAddPackageJson(h));const E=this.findConfiguredProjectByProjectName(c);dC({watchedDirPath:n,fileOrDirectory:d,fileOrDirectoryPath:h,configFileName:c,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:u.parsedCommandLine.options,program:(E==null?void 0:E.getCurrentProgram())||u.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:P=>this.logger.info(P),toPath:P=>this.toPath(P),getScriptKind:E?P=>E.getScriptKind(P):void 0})||(u.updateLevel!==2&&(u.updateLevel=1),u.projects.forEach((P,k)=>{if(!P)return;const F=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!F)return;const $=E===F?1:0;if(!(F.pendingUpdateLevel!==void 0&&F.pendingUpdateLevel>$))if(this.openFiles.has(h))if(re.checkDefined(this.getScriptInfoForPath(h)).isAttached(F)){const X=Math.max($,F.openFileWatchTriggered.get(h)||0);F.openFileWatchTriggered.set(h,X)}else F.pendingUpdateLevel=$,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(F);else F.pendingUpdateLevel=$,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(F)}))},i,this.getWatchOptionsFromProjectWatchOptions(u.parsedCommandLine.watchOptions),r0.WildcardDirectory,c)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,i){const c=this.configFileExistenceInfoCache.get(n);if(!(c!=null&&c.config))return!1;let u=!1;return c.config.updateLevel=2,c.config.projects.forEach((d,h)=>{const S=this.getConfiguredProjectByCanonicalConfigFilePath(h);if(S)if(u=!0,h===n){if(S.isInitialLoadPending())return;S.pendingUpdateLevel=2,S.pendingUpdateReason=i,this.delayUpdateProjectGraph(S)}else S.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(n)),this.delayUpdateProjectGraph(S)}),u}onConfigFileChanged(n,i){var c;const u=this.configFileExistenceInfoCache.get(n);if(i===2){u.exists=!1;const d=(c=u.config)!=null&&c.projects.has(n)?this.getConfiguredProjectByCanonicalConfigFilePath(n):void 0;d&&this.removeProject(d)}else u.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected"),this.reloadConfiguredProjectForFiles(u.openFilesImpactedByConfigFile,!1,!0,i!==2?Of:xT,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(n){switch(this.logger.info("`remove Project::"),n.print(!0,!0,!1),n.close(),re.shouldAssert(1)&&this.filenameToScriptInfo.forEach(i=>re.assert(!i.isAttached(n),"Found script Info still attached to project",()=>`${n.projectName}: ScriptInfos still attached: ${JSON.stringify(oc(p2(this.filenameToScriptInfo.values(),c=>c.isAttached(n)?{fileName:c.fileName,projects:c.containingProjects.map(u=>u.projectName),hasMixedContent:c.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(n.getProjectName()),n.projectKind){case 2:A8(this.externalProjects,n),this.projectToSizeMap.delete(n.getProjectName());break;case 1:this.configuredProjects.delete(n.canonicalConfigFilePath),this.projectToSizeMap.delete(n.canonicalConfigFilePath);break;case 0:A8(this.inferredProjects,n);break}}assignOrphanScriptInfoToInferredProject(n,i){re.assert(n.isOrphan());const c=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(n,i)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(n.isDynamic?i||this.currentDirectory:ws(nE(n.fileName)?n.fileName:vf(n.fileName,i?this.getNormalizedAbsolutePath(i):this.currentDirectory)));if(c.addRoot(n),n.containingProjects[0]!==c&&(n.detachFromProject(c),n.containingProjects.unshift(c)),c.updateGraph(),!this.useSingleInferredProject&&!c.projectRootPath)for(const u of this.inferredProjects){if(u===c||u.isOrphan())continue;const d=u.getRootScriptInfos();re.assert(d.length===1||!!u.projectRootPath),d.length===1&&Ot(d[0].containingProjects,h=>h!==d[0].containingProjects[0]&&!h.isOrphan())&&u.removeFile(d[0],!0,!0)}return c}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,n)})}closeOpenFile(n,i){const c=n.isDynamic?!1:this.host.fileExists(n.fileName);n.close(c),this.stopWatchingConfigFilesForClosedScriptInfo(n);const u=this.toCanonicalFileName(n.fileName);this.openFilesWithNonRootedDiskPath.get(u)===n&&this.openFilesWithNonRootedDiskPath.delete(u);let d=!1;for(const h of n.containingProjects){if(vc(h)){n.hasMixedContent&&n.registerFileUpdate();const S=h.openFileWatchTriggered.get(n.path);S!==void 0&&(h.openFileWatchTriggered.delete(n.path),h.pendingUpdateLevel!==void 0&&h.pendingUpdateLevelthis.onConfigFileChanged(i,P),2e3,this.getWatchOptionsFromProjectWatchOptions((d=(u=h==null?void 0:h.config)==null?void 0:u.parsedCommandLine)==null?void 0:d.watchOptions),r0.ConfigFile,c));const S=h.config.projects;S.set(c.canonicalConfigFilePath,S.get(c.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(n){return n.openFilesImpactedByConfigFile&&Jb(n.openFilesImpactedByConfigFile,Of)}releaseParsedConfig(n,i){var c,u,d;const h=this.configFileExistenceInfoCache.get(n);(c=h.config)!=null&&c.projects.delete(i.canonicalConfigFilePath)&&((u=h.config)!=null&&u.projects.size||(h.config=void 0,VQ(n,this.sharedExtendedConfigFileWatchers),re.checkDefined(h.watcher),(d=h.openFilesImpactedByConfigFile)!=null&&d.size?this.configFileExistenceImpactsRootOfInferredProject(h)?rZ(qc(ws(n)))||(h.watcher.close(),h.watcher=lm):(h.watcher.close(),h.watcher=void 0):(h.watcher.close(),this.configFileExistenceInfoCache.delete(n))))}closeConfigFileWatcherOnReleaseOfOpenFile(n){n.watcher&&!n.config&&!this.configFileExistenceImpactsRootOfInferredProject(n)&&(n.watcher.close(),n.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(n){re.assert(!n.isScriptOpen()),this.forEachConfigFileLocation(n,i=>{var c,u,d;const h=this.configFileExistenceInfoCache.get(i);if(h){const S=(c=h.openFilesImpactedByConfigFile)==null?void 0:c.get(n.path);(u=h.openFilesImpactedByConfigFile)==null||u.delete(n.path),S&&this.closeConfigFileWatcherOnReleaseOfOpenFile(h),!((d=h.openFilesImpactedByConfigFile)!=null&&d.size)&&!h.config&&(re.assert(!h.watcher),this.configFileExistenceInfoCache.delete(i))}})}startWatchingConfigFilesForInferredProjectRoot(n){re.assert(n.isScriptOpen()),this.forEachConfigFileLocation(n,(i,c)=>{let u=this.configFileExistenceInfoCache.get(i);u||(u={exists:this.host.fileExists(c)},this.configFileExistenceInfoCache.set(i,u)),(u.openFilesImpactedByConfigFile||(u.openFilesImpactedByConfigFile=new Map)).set(n.path,!0),u.watcher||(u.watcher=rZ(qc(ws(i)))?this.watchFactory.watchFile(c,(d,h)=>this.onConfigFileChanged(i,h),2e3,this.hostConfiguration.watchOptions,r0.ConfigFileForInferredRoot):lm)})}stopWatchingConfigFilesForInferredProjectRoot(n){this.forEachConfigFileLocation(n,i=>{var c;const u=this.configFileExistenceInfoCache.get(i);(c=u==null?void 0:u.openFilesImpactedByConfigFile)!=null&&c.has(n.path)&&(re.assert(n.isScriptOpen()),u.openFilesImpactedByConfigFile.set(n.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(u))})}forEachConfigFileLocation(n,i){if(this.serverMode!==0)return;re.assert(!wt(n)||this.openFiles.has(n.path));const c=this.openFiles.get(n.path);if(re.checkDefined(this.getScriptInfo(n.path)).isDynamic)return;let d=ws(n.fileName);const h=()=>OE(c,d,this.currentDirectory,!this.host.useCaseSensitiveFileNames),S=!c||!h();let E=!$e(n);do{if(E){const k=oe(d,this.currentDirectory,this.toCanonicalFileName),F=vl(d,"tsconfig.json");let $=i(vl(k,"tsconfig.json"),F);if($)return F;const J=vl(d,"jsconfig.json");if($=i(vl(k,"jsconfig.json"),J),$)return J;if(NX(k))break}const P=ws(d);if(P===d)break;d=P,E=!0}while(S||h())}findDefaultConfiguredProject(n){if(!n.isScriptOpen())return;const i=this.getConfigFileNameForFile(n),c=i&&this.findConfiguredProjectByProjectName(i);return c&&Ca(c,n)?c:c==null?void 0:c.getDefaultChildProjectFromProjectWithReferences(n)}getConfigFileNameForFile(n){if(wt(n)){re.assert(n.isScriptOpen());const c=this.configFileForOpenFiles.get(n.path);if(c!==void 0)return c||void 0}this.logger.info(`Search path: ${ws(n.fileName)}`);const i=this.forEachConfigFileLocation(n,(c,u)=>this.configFileExists(u,c,n));return i?this.logger.info(`For info: ${n.fileName} :: Config file name: ${i}`):this.logger.info(`For info: ${n.fileName} :: No config files found.`),wt(n)&&this.configFileForOpenFiles.set(n.path,i||!1),i}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Ha),this.configuredProjects.forEach(Ha),this.inferredProjects.forEach(Ha),this.logger.info("Open files: "),this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);this.logger.info(` FileName: ${c.fileName} ProjectRootPath: ${n}`),this.logger.info(` Projects: ${c.containingProjects.map(u=>u.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(n){const i=this.toCanonicalFileName(n);return this.getConfiguredProjectByCanonicalConfigFilePath(i)}getConfiguredProjectByCanonicalConfigFilePath(n){return this.configuredProjects.get(n)}findExternalProjectByProjectName(n){return Re(n,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(n,i,c,u){if(i&&i.disableSizeLimit||!this.host.getFileSize)return;let d=mu;this.projectToSizeMap.set(n,0),this.projectToSizeMap.forEach(S=>d-=S||0);let h=0;for(const S of c){const E=u.getFileName(S);if(!vR(E)&&(h+=this.host.getFileSize(E),h>mu||h>d)){const P=c.map(k=>u.getFileName(k)).filter(k=>!vR(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,F)=>F.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${h}). Largest files: ${P.map(k=>`${k.name}:${k.size}`).join(", ")}`),E}}this.projectToSizeMap.set(n,h)}createExternalProject(n,i,c,u,d){const h=Qr(c),S=co(c,ws($1(n))),E=new mt(n,this,this.documentRegistry,h,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n,h,i,Mg),c.compileOnSave===void 0?!0:c.compileOnSave,void 0,S==null?void 0:S.watchOptions);return E.setProjectErrors(S==null?void 0:S.errors),E.excludedFiles=d,this.addFilesToNonInferredProject(E,i,Mg,u),this.externalProjects.push(E),E}sendProjectTelemetry(n){if(this.seenProjects.has(n.projectName)){Ks(n);return}if(this.seenProjects.set(n.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Ks(n);return}const i=vc(n)?n.projectOptions:void 0;Ks(n);const c={projectId:this.host.createSHA256Hash(n.projectName),fileStats:Fi(n.getScriptInfos(),!0),compilerOptions:n$(n.getCompilationSettings()),typeAcquisition:d(n.getTypeAcquisition()),extends:i&&i.configHasExtendsProperty,files:i&&i.configHasFilesProperty,include:i&&i.configHasIncludeProperty,exclude:i&&i.configHasExcludeProperty,compileOnSave:n.compileOnSaveEnabled,configFileName:u(),projectType:n instanceof mt?"external":"configured",languageServiceEnabled:n.languageServiceEnabled,version:At};this.eventHandler({eventName:Oh,data:c});function u(){return vc(n)&&it(n.getConfigFilePath())||"other"}function d({enable:h,include:S,exclude:E}){return{enable:h,include:S!==void 0&&S.length!==0,exclude:E!==void 0&&E.length!==0}}}addFilesToNonInferredProject(n,i,c,u){this.updateNonInferredProjectFiles(n,i,c),n.setTypeAcquisition(u),n.markAsDirty()}createConfiguredProject(n){var i;(i=ps)==null||i.instant(ps.Phase.Session,"createConfiguredProject",{configFilePath:n}),this.logger.info(`Creating configuration project ${n}`);const c=this.toCanonicalFileName(n);let u=this.configFileExistenceInfoCache.get(c);u?u.exists=!0:this.configFileExistenceInfoCache.set(c,u={exists:!0}),u.config||(u.config={cachedDirectoryStructureHost:Jae(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const d=new qr(n,c,this,this.documentRegistry,u.config.cachedDirectoryStructureHost);return this.configuredProjects.set(c,d),this.createConfigFileWatcherForParsedConfig(n,c,d),d}createConfiguredProjectWithDelayLoad(n,i){const c=this.createConfiguredProject(n);return c.pendingUpdateLevel=2,c.pendingUpdateReason=i,c}createAndLoadConfiguredProject(n,i){const c=this.createConfiguredProject(n);return this.loadConfiguredProject(c,i),c}createLoadAndUpdateConfiguredProject(n,i){const c=this.createAndLoadConfiguredProject(n,i);return c.updateGraph(),c}loadConfiguredProject(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"loadConfiguredProject",{configFilePath:n.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(n,i);const d=hf(n.getConfigFilePath()),h=this.ensureParsedConfigUptoDate(d,n.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath),n),S=h.config.parsedCommandLine;re.assert(!!S.fileNames);const E=S.options;n.projectOptions||(n.projectOptions={configHasExtendsProperty:S.raw.extends!==void 0,configHasFilesProperty:S.raw.files!==void 0,configHasIncludeProperty:S.raw.include!==void 0,configHasExcludeProperty:S.raw.exclude!==void 0}),n.canConfigFileJsonReportNoInputFiles=e$(S.raw),n.setProjectErrors(S.options.configFile.parseDiagnostics),n.updateReferences(S.projectReferences);const P=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.canonicalConfigFilePath,E,S.fileNames,rd);P?(n.disableLanguageService(P),this.configFileExistenceInfoCache.forEach((F,$)=>this.stopWatchingWildCards($,n))):(n.setCompilerOptions(E),n.setWatchOptions(S.watchOptions),n.enableLanguageService(),this.watchWildcards(d,h,n)),n.enablePluginsWithOptions(E);const k=S.fileNames.concat(n.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(n,k,rd,E,S.typeAcquisition,S.compileOnSave,S.watchOptions),(u=ps)==null||u.pop()}ensureParsedConfigUptoDate(n,i,c,u){var d,h,S;if(c.config){if(!c.config.updateLevel)return c;if(c.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(n,c.config),c}const E=((d=c.config)==null?void 0:d.cachedDirectoryStructureHost)||Jae(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),P=ZJ(n,X=>this.host.readFile(X)),k=iT(n,As(P)?P:""),F=k.parseDiagnostics;As(P)||F.push(P);const $=Zoe(k,E,ws(n),{},n,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);$.errors.length&&F.push(...$.errors),this.logger.info(`Config: ${n} : ${JSON.stringify({rootNames:$.fileNames,options:$.options,watchOptions:$.watchOptions,projectReferences:$.projectReferences},void 0," ")}`);const J=(h=c.config)==null?void 0:h.parsedCommandLine;return c.config?(c.config.parsedCommandLine=$,c.config.watchedDirectoriesStale=!0,c.config.updateLevel=void 0):c.config={parsedCommandLine:$,cachedDirectoryStructureHost:E,projects:new Map},!J&&!xY(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions($.watchOptions))&&((S=c.watcher)==null||S.close(),c.watcher=void 0),this.createConfigFileWatcherForParsedConfig(n,i,u),D$(i,$.options,this.sharedExtendedConfigFileWatchers,(X,ie)=>this.watchFactory.watchFile(X,()=>{var ae;Gme(this.extendedConfigCache,ie,we=>this.toPath(we));let ve=!1;(ae=this.sharedExtendedConfigFileWatchers.get(ie))==null||ae.projects.forEach(we=>{ve=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(we,`Change in extended config file ${X} detected`)||ve}),ve&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,r0.ExtendedConfigFile,n),X=>this.toPath(X)),c}watchWildcards(n,{exists:i,config:c},u){if(c.projects.set(u.canonicalConfigFilePath,!0),i){if(c.watchedDirectories&&!c.watchedDirectoriesStale)return;c.watchedDirectoriesStale=!1,jW(c.watchedDirectories||(c.watchedDirectories=new Map),new Map(Object.entries(c.parsedCommandLine.wildcardDirectories)),(d,h)=>this.watchWildcardDirectory(d,h,n,c))}else{if(c.watchedDirectoriesStale=!1,!c.watchedDirectories)return;Mh(c.watchedDirectories,YE),c.watchedDirectories=void 0}}stopWatchingWildCards(n,i){const c=this.configFileExistenceInfoCache.get(n);!c.config||!c.config.projects.get(i.canonicalConfigFilePath)||(c.config.projects.set(i.canonicalConfigFilePath,!1),!Jb(c.config.projects,Of)&&(c.config.watchedDirectories&&(Mh(c.config.watchedDirectories,YE),c.config.watchedDirectories=void 0),c.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(n,i,c){const u=n.getRootFilesMap(),d=new Map;for(const h of i){const S=c.getFileName(h),E=te(S),P=so(E);let k;if(!P&&!n.fileExists(S)){k=oe(E,this.currentDirectory,this.toCanonicalFileName);const F=u.get(k);F?(F.info&&(n.removeFile(F.info,!1,!0),F.info=void 0),F.fileName=E):u.set(k,{fileName:E})}else{const F=c.getScriptKind(h,this.hostConfiguration.extraFileExtensions),$=c.hasMixedContent(h,this.hostConfiguration.extraFileExtensions),J=re.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(E,n.currentDirectory,F,$,n.directoryStructureHost));k=J.path;const X=u.get(k);!X||X.info!==J?(n.addRoot(J,E),J.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(J)):X.fileName=E}d.set(k,!0)}u.size>d.size&&u.forEach((h,S)=>{d.has(S)||(h.info?n.removeFile(h.info,n.fileExists(S),!0):u.delete(S))})}updateRootAndOptionsOfNonInferredProject(n,i,c,u,d,h,S){n.setCompilerOptions(u),n.setWatchOptions(S),h!==void 0&&(n.compileOnSaveEnabled=h),this.addFilesToNonInferredProject(n,i,c,d)}reloadFileNamesOfConfiguredProject(n){const i=this.reloadFileNamesOfParsedConfig(n.getConfigFilePath(),this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath).config);return n.updateErrorOnNoInputFiles(i),this.updateNonInferredProjectFiles(n,i.concat(n.getExternalFiles(1)),rd),n.markAsDirty(),n.updateGraph()}reloadFileNamesOfParsedConfig(n,i){if(i.updateLevel===void 0)return i.parsedCommandLine.fileNames;re.assert(i.updateLevel===1);const c=i.parsedCommandLine.options.configFile.configFileSpecs,u=t$(c,ws(n),i.parsedCommandLine.options,i.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return i.parsedCommandLine={...i.parsedCommandLine,fileNames:u},u}setFileNamesOfAutpImportProviderOrAuxillaryProject(n,i){this.updateNonInferredProjectFiles(n,i,rd)}reloadConfiguredProject(n,i,c,u){const d=n.getCachedDirectoryStructureHost();u&&this.clearSemanticCache(n),d.clearCache();const h=n.getConfigFilePath();this.logger.info(`${c?"Loading":"Reloading"} configured project ${h}`),this.loadConfiguredProject(n,i),n.updateGraph(),this.sendConfigFileDiagEvent(n,h)}clearSemanticCache(n){n.resolutionCache.clear(),n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram(),n.markAsDirty()}sendConfigFileDiagEvent(n,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const c=n.getLanguageService().getCompilerOptionsDiagnostics();c.push(...n.getAllProjectErrors()),this.eventHandler({eventName:Kd,data:{configFileName:n.getConfigFilePath(),diagnostics:c,triggerFile:i}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(n,i){if(!this.useInferredProjectPerProjectRoot||n.isDynamic&&i===void 0)return;if(i){const u=this.toCanonicalFileName(i);for(const d of this.inferredProjects)if(d.projectRootPath===u)return d;return this.createInferredProject(i,!1,i)}let c;for(const u of this.inferredProjects)u.projectRootPath&&OE(u.projectRootPath,n.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(c&&c.projectRootPath.length>u.projectRootPath.length||(c=u));return c}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(n){re.assert(!this.useSingleInferredProject);const i=this.toCanonicalFileName(this.getNormalizedAbsolutePath(n));for(const c of this.inferredProjects)if(!c.projectRootPath&&c.isOrphan()&&c.canonicalCurrentDirectory===i)return c;return this.createInferredProject(n)}createInferredProject(n,i,c){const u=c&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(c)||this.compilerOptionsForInferredProjects;let d,h;c&&(d=this.watchOptionsForInferredProjectsPerProjectRoot.get(c),h=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(c)),d===void 0&&(d=this.watchOptionsForInferredProjects),h===void 0&&(h=this.typeAcquisitionForInferredProjects),d=d||void 0;const S=new _o(this,this.documentRegistry,u,d==null?void 0:d.watchOptions,c,n,h);return S.setProjectErrors(d==null?void 0:d.errors),i?this.inferredProjects.unshift(S):this.inferredProjects.push(S),S}getOrCreateScriptInfoNotOpenedByClient(n,i,c){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(te(n),i,void 0,void 0,c)}getScriptInfo(n){return this.getScriptInfoForNormalizedPath(te(n))}getScriptInfoOrConfig(n){const i=te(n),c=this.getScriptInfoForNormalizedPath(i);if(c)return c;const u=this.configuredProjects.get(this.toPath(n));return u&&u.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(n){const i=oc(this.filenameToScriptInfo.entries(),([c,u])=>({path:c,fileName:u.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(n)}. +`))}return d}print(n,i,c){this.writeLog(`Project '${this.projectName}' (${li[this.projectKind]})`),this.writeLog(this.filesToStringWorker(n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3),c&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(n){var i;if(n){n.allowNonTsExtensions=!0;const c=this.compilerOptions;this.compilerOptions=n,this.setInternalCompilerOptionsForEmittingJsFiles(),(i=this.noDtsResolutionProject)==null||i.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Td(c,n)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(n){this.watchOptions=n}getWatchOptions(){return this.watchOptions}setTypeAcquisition(n){n&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(n))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(n,i){var c,u;const d=i?E=>oc(E.entries(),([P,k])=>({fileName:P,isSourceOfProjectReferenceRedirect:k})):E=>oc(E.keys());this.isInitialLoadPending()||Qa(this);const h={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:sl(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},S=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&n===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!S)return{info:h,projectErrors:this.getGlobalProjectErrors()};const E=this.lastReportedFileNames,P=((c=this.externalFiles)==null?void 0:c.map(ie=>({fileName:te(ie),isSourceOfProjectReferenceRedirect:!1})))||ke,k=QT(this.getFileNamesWithRedirectInfo(!!i).concat(P),ie=>ie.fileName,ie=>ie.isSourceOfProjectReferenceRedirect),F=new Map,$=new Map,J=S?oc(S.keys()):[],X=[];return Jb(k,(ie,ae)=>{E.has(ae)?i&&ie!==E.get(ae)&&X.push({fileName:ae,isSourceOfProjectReferenceRedirect:ie}):F.set(ae,ie)}),Jb(E,(ie,ae)=>{k.has(ae)||$.set(ae,ie)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:h,changes:{added:d(F),removed:d($),updated:i?J.map(ie=>({fileName:ie,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(ie)})):J,updatedRedirects:i?X:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const E=this.getFileNamesWithRedirectInfo(!!i),P=((u=this.externalFiles)==null?void 0:u.map(F=>({fileName:te(F),isSourceOfProjectReferenceRedirect:!1})))||ke,k=E.concat(P);return this.lastReportedFileNames=QT(k,F=>F.fileName,F=>F.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:h,files:i?k:k.map(F=>F.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(n){xL(this.rootFiles,n),this.rootFilesMap.delete(n.path)}isSourceOfProjectReferenceRedirect(n){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(n)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,vl(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(n){if(!this.projectService.globalPlugins.length)return;const i=this.projectService.host;if(!i.require&&!i.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const c=this.getGlobalPluginSearchPaths();for(const u of this.projectService.globalPlugins)u&&(n.plugins&&n.plugins.some(d=>d.name===u)||(this.projectService.logger.info(`Loading global plugin ${u}`),this.enablePlugin({name:u,global:!0},c)))}enablePlugin(n,i){this.projectService.requestEnablePlugin(this,n,i)}enableProxy(n,i){try{if(typeof n!="function"){this.projectService.logger.info(`Skipped loading plugin ${i.name} because it did not expose a proper factory function`);return}const c={config:i,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},u=n({typescript:y_}),d=u.create(c);for(const h of Object.keys(this.languageService))h in d||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${h} in created LS. Patching.`),d[h]=this.languageService[h]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=d,this.plugins.push({name:i.name,module:u})}catch(c){this.projectService.logger.info(`Plugin activation failed: ${c}`)}}onPluginConfigurationChanged(n,i){this.plugins.filter(c=>c.name===n).forEach(c=>{c.module.onConfigurationChanged&&c.module.onConfigurationChanged(i)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(n,i){return this.projectService.serverMode!==0?ke:this.projectService.getPackageJsonsVisibleToFile(n,i)}getNearestAncestorDirectoryWithPackageJson(n){return this.projectService.getNearestAncestorDirectoryWithPackageJson(n)}getPackageJsonsForAutoImport(n){const i=this.getPackageJsonsVisibleToFile(vl(this.currentDirectory,gj),n);return this.packageJsonsForAutoImport=new Set(i.map(c=>c.fileName)),i}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=jAe(this))}clearCachedExportInfoMap(){var n;(n=this.exportMapCache)==null||n.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||KZ(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var n,i;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((n=this.projectService.host.realpath)==null?void 0:n.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:(i=this.projectService.host.trace)==null?void 0:i.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var n,i,c;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Qa(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const u=this.includePackageJsonAutoImports();if(u){(n=ps)==null||n.push(ps.Phase.Session,"getPackageJsonAutoImportProvider");const d=H_();if(this.autoImportProviderHost=gn.create(u,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Qa(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",H_()-d),(i=ps)==null||i.pop(),this.autoImportProviderHost.getCurrentProgram();(c=ps)==null||c.pop()}}isDefaultProjectForOpenFiles(){return!!Jb(this.projectService.openFiles,(n,i)=>this.projectService.tryGetDefaultProjectForFile(te(i))===this)}watchNodeModulesForPackageJsonChanges(n){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(n),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(n){return re.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new xt(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==n&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[n]),this.noDtsResolutionProject.rootFile=n),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Yn,lib:Yn,noLib:!0}}},_o=class extends Ir{constructor(e,n,i,c,u,d,h){super(e.newInferredProjectName(),0,e,n,void 0,void 0,i,!1,c,e.host,d),this._isJsInferredProject=!1,this.typeAcquisition=h,this.projectRootPath=u&&e.toCanonicalFileName(u),!u&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const n=PZ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof n.maxNodeModuleJsDepth!="number"?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(e){re.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&jr(this.getRootScriptInfos(),n=>!n.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ot(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:$a(this),include:Yn,exclude:Yn}}},xt=class extends Ir{constructor(e,n,i,c){super(e.newAuxiliaryProjectName(),4,e,n,!1,void 0,i,!1,void 0,e.host,c)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Kn=class T1t extends Ir{constructor(n,i,c,u){super(n.projectService.newAutoImportProviderProjectName(),3,n.projectService,c,!1,void 0,u,!1,n.getWatchOptions(),n.projectService.host,n.currentDirectory),this.hostProject=n,this.rootFileNames=i,this.useSourceOfProjectReferenceRedirect=wc(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=wc(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(n,i,c,u){var d,h;if(!n)return Yn;const S=i.getCurrentProgram();if(!S)return Yn;const E=H_();let P,k;const F=vl(i.currentDirectory,gj),$=i.getPackageJsonsForAutoImport(vl(i.currentDirectory,F));for(const ae of $)(d=ae.dependencies)==null||d.forEach((ve,we)=>X(we)),(h=ae.peerDependencies)==null||h.forEach((ve,we)=>X(we));let J=0;if(P){const ae=i.getSymlinkCache();for(const ve of oc(P.keys())){if(n===2&&J>this.maxDependencies)return i.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Yn;const we=Ype(ve,i.currentDirectory,u,c,S.getModuleResolutionCache());if(we){const et=ie(we,S,ae);if(et){k=Hi(k,et),J+=et.length?1:0;continue}}if(!Ot([i.currentDirectory,i.getGlobalTypingsCacheLocation()],et=>{if(et){const Pe=Ype(`@types/${ve}`,et,u,c,S.getModuleResolutionCache());if(Pe){const dt=ie(Pe,S,ae);return k=Hi(k,dt),J+=dt!=null&&dt.length?1:0,!0}}})&&we&&u.allowJs&&u.maxNodeModuleJsDepth){const et=ie(we,S,ae,!0);k=Hi(k,et),J+=et!=null&&et.length?1:0}}}return k!=null&&k.length&&i.log(`AutoImportProviderProject: found ${k.length} root files in ${J} dependencies in ${H_()-E} ms`),k||Yn;function X(ae){qf(ae,"@types/")||(P||(P=new Set)).add(ae)}function ie(ae,ve,we,Fe){var et;const Pe=s4(ae,u,c,ve.getModuleResolutionCache(),Fe);if(Pe){const dt=(et=c.realpath)==null?void 0:et.call(c,ae.packageDirectory),Ie=dt?i.toPath(dt):void 0,ct=Ie&&Ie!==i.toPath(ae.packageDirectory);return ct&&we.setSymlinkedDirectory(ae.packageDirectory,{real:Su(dt),realPath:Su(Ie)}),Qo(Pe,Ct=>{const Lt=ct?Ct.replace(ae.packageDirectory,dt):Ct;if(!ve.getSourceFile(Lt)&&!(ct&&ve.getSourceFile(Ct)))return Lt})}}}static create(n,i,c,u){if(n===0)return;const d={...i.getCompilerOptions(),...this.compilerOptionsOverrides},h=this.getRootFileNames(n,i,c,d);if(h.length)return new T1t(i,h,u,d)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=T1t.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;const i=this.getCurrentProgram(),c=super.updateGraph();return i&&i!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),c}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var n;return!!((n=this.rootFileNames)!=null&&n.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Yn}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 n;return(n=this.hostProject.getCurrentProgram())==null?void 0:n.getModuleResolutionCache()}},Kn.maxDependencies=10,Kn.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Yn,lib:Yn,noLib:!0},gn=Kn,qr=class extends Ir{constructor(e,n,i,c,u){super(e,1,i,c,!1,void 0,{},!1,void 0,u,ws(e)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=xT,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const n=hf(e),i=this.projectService.toCanonicalFileName(n);let c=this.projectService.configFileExistenceInfoCache.get(i);return c||this.projectService.configFileExistenceInfoCache.set(i,c={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,i,c,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(n,c,this),c.exists?c.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(hf(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=bg;const n=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let i;switch(n){case 1:this.openFileWatchTriggered.clear(),i=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const c=re.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,c,e,!1),i=!0;break;default:i=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),i}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){re.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const n=this.getCurrentProgram();return n&&n.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var n;return(n=this.getCurrentProgram())==null?void 0:n.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var n;if(this.plugins.length=0,!((n=e.plugins)!=null&&n.length)&&!this.projectService.globalPlugins.length)return;const i=this.projectService.host;if(!i.require&&!i.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const c=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const u=ws(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${u} to search paths`),c.unshift(u)}if(e.plugins)for(const u of e.plugins)this.enablePlugin(u,c);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return gi(this.projectErrors,e=>!e.file)||ke}getAllProjectErrors(){return this.projectErrors||ke}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,n)=>this.releaseParsedConfig(n)),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(e){return Zt(this,e.path,n=>Ca(n,e)?n:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const n=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=n.openFilesImpactedByConfigFile)!=null&&e.size):!!n.openFilesImpactedByConfigFile&&Jb(n.openFilesImpactedByConfigFile,(i,c)=>{const u=this.projectService.getScriptInfoForPath(c);return this.containsScriptInfo(u)||!!Zt(this,u.path,d=>d.containsScriptInfo(u),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return QG(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){Ope(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},mt=class extends Ir{constructor(e,n,i,c,u,d,h,S){super(e,2,n,i,!0,u,c,d,S,n.host,ws(h||$1(e))),this.externalProjectName=e,this.compileOnSaveEnabled=d,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Cn(e){const n=new Map;for(const i of e)if(typeof i.type=="object"){const c=i.type;c.forEach(u=>{re.assert(typeof u=="number")}),n.set(i.name,c)}return n}function oi(e){return As(e.indentStyle)&&(e.indentStyle=H0.get(e.indentStyle.toLowerCase()),re.assert(e.indentStyle!==void 0)),e}function Qr(e){return Kh.forEach((n,i)=>{const c=e[i];As(c)&&(e[i]=n.get(c.toLowerCase()))}),e}function co(e,n){let i,c;return fC.forEach(u=>{const d=e[u.name];if(d===void 0)return;const h=uS.get(u.name);(i||(i={}))[u.name]=h?As(d)?h.get(d.toLowerCase()):d:x6(u,d,n||"",c||(c=[]))}),i&&{watchOptions:i,errors:c}}function es(e){let n;return fQ.forEach(i=>{const c=e[i.name];c!==void 0&&((n||(n={}))[i.name]=c)}),n}function Ui(e){return As(e)?xu(e):e}function xu(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function We(e){const{lazyConfiguredProjectsFromExternalProject:n,...i}=e;return i}function Re(e,n){for(const i of n)if(i.getProjectName()===e)return i}function wt(e){return!!e.containingProjects}function $e(e){return!!e.configFileInfo}function Zt(e,n,i,c,u){var d;const h=(d=e.getCurrentProgram())==null?void 0:d.getResolvedProjectReferences();if(!h)return;let S;const E=n?e.getResolvedProjectReferenceToRedirect(n):void 0;if(E){const k=te(E.sourceFile.fileName),F=e.projectService.findConfiguredProjectByProjectName(k);if(F){const $=i(F);if($)return $}else if(c!==0){S=new Map;const $=xe(h,e.getCompilerOptions(),(J,X)=>E===J?P(J,X):void 0,c,e.projectService,S);if($)return $;S.clear()}}return xe(h,e.getCompilerOptions(),(k,F)=>E!==k?P(k,F):void 0,c,e.projectService,S);function P(k,F){const $=te(k.sourceFile.fileName),J=e.projectService.findConfiguredProjectByProjectName($)||(F===0?void 0:F===1?e.projectService.createConfiguredProject($):F===2?e.projectService.createAndLoadConfiguredProject($,u):re.assertNever(F));return J&&i(J)}}function xe(e,n,i,c,u,d){const h=n.disableReferencedProjectLoad?0:c;return Ot(e,S=>{if(!S)return;const E=te(S.sourceFile.fileName),P=u.toCanonicalFileName(E),k=d==null?void 0:d.get(P);if(k!==void 0&&k>=h)return;const F=i(S,h);return F||((d||(d=new Map)).set(P,h),S.references&&xe(S.references,S.commandLine.options,i,h,u,d))})}function an(e,n){return e.potentialProjectReferences&&gA(e.potentialProjectReferences,n)}function Un(e,n,i,c){return e.getCurrentProgram()?e.forEachResolvedProjectReference(n):e.isInitialLoadPending()?an(e,c):Ot(e.getProjectReferences(),i)}function rr(e,n,i){const c=i&&e.projectService.configuredProjects.get(i);return c&&n(c)}function mi(e,n){return Un(e,i=>rr(e,n,i.sourceFile.path),i=>rr(e,n,e.toPath(vF(i))),i=>rr(e,n,i))}function Ji(e,n){return`${As(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${e}`}function zo(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Ca(e,n){return e.containsScriptInfo(n)&&!e.isSourceOfProjectReferenceRedirect(n.path)}function Qa(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Ks(e){vc(e)&&(e.projectOptions=!0)}function vs(e){let n=1;return()=>e(n++)}function ou(){return{idToCallbacks:new Map,pathToId:new Map}}function qd(e,n){if(!n||!e.eventHandler||!e.session)return;const i=ou(),c=ou(),u=ou();let d=1;return e.session.addProtocolHandler("watchChange",$=>(P($.arguments),{responseRequired:!1})),{watchFile:h,watchDirectory:S,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function h($,J){return E(i,$,J,X=>({eventName:zv,data:{id:X,path:$}}))}function S($,J,X){return E(X?u:c,$,J,ie=>({eventName:m_,data:{id:ie,path:$,recursive:!!X}}))}function E({pathToId:$,idToCallbacks:J},X,ie,ae){const ve=e.toPath(X);let we=$.get(ve);we||$.set(ve,we=d++);let Fe=J.get(we);return Fe||(J.set(we,Fe=new Set),e.eventHandler(ae(we))),Fe.add(ie),{close(){const et=J.get(we);et!=null&&et.delete(ie)&&(et.size||(J.delete(we),$.delete(ve),e.eventHandler({eventName:Yu,data:{id:we}})))}}}function P({id:$,path:J,eventType:X}){k($,J,X),F(c,$,J,X),F(u,$,J,X)}function k($,J,X){var ie;(ie=i.idToCallbacks.get($))==null||ie.forEach(ae=>{ae(J,X==="create"?0:X==="delete"?2:1)})}function F({idToCallbacks:$},J,X,ie){var ae;ie!=="update"&&((ae=$.get(J))==null||ae.forEach(ve=>{ve(X)}))}}function z_(){let e;return{get(){return e},set(n){e=n},clear(){e=void 0}}}function fp(e){return e.kind!==void 0}function Ha(e){e.print(!1,!1,!1)}var mu,x_,q_,Ma,U0,c_,Kd,iy,Oh,jg,zv,m_,Yu,Tv,Kh,uS,H0,fx,rd,Mg,lm,nm,po,gy,fS=G({"src/server/editorServices.ts"(){l_(),$l(),ei(),mu=20*1024*1024,x_=4*1024*1024,q_="projectsUpdatedInBackground",Ma="projectLoadingStart",U0="projectLoadingFinish",c_="largeFileReferenced",Kd="configFileDiag",iy="projectLanguageServiceState",Oh="projectInfo",jg="openFileInfo",zv="createFileWatcher",m_="createDirectoryWatcher",Yu="closeFileWatcher",Tv="*ensureProjectForOpenFiles*",Kh=Cn(hI),uS=Cn(fC),H0=new Map(Object.entries({none:0,block:1,smart:2})),fx={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,"$"]]}},rd={getFileName:e=>e,getScriptKind:(e,n)=>{let i;if(n){const c=t7(e);c&>(n,u=>u.extension===c?(i=u.scriptKind,!0):!1)}return i},hasMixedContent:(e,n)=>gt(n,i=>i.isMixedContent&&mm(e,i.extension))},Mg={getFileName:e=>e.fileName,getScriptKind:e=>Ui(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},lm={close:ku},nm=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(nm||{}),po=class S1t{constructor(n){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=vs(Be),this.newAutoImportProviderProjectName=vs(Ve),this.newAuxiliaryProjectName=vs(pt),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=fx,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=ku,this.verifyProgram=ku,this.onProjectCreation=ku;var i;this.host=n.host,this.logger=n.logger,this.cancellationToken=n.cancellationToken,this.useSingleInferredProject=n.useSingleInferredProject,this.useInferredProjectPerProjectRoot=n.useInferredProjectPerProjectRoot,this.typingsInstaller=n.typingsInstaller||Rr,this.throttleWaitMilliseconds=n.throttleWaitMilliseconds,this.eventHandler=n.eventHandler,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.globalPlugins=n.globalPlugins||ke,this.pluginProbeLocations=n.pluginProbeLocations||ke,this.allowLocalPluginLoads=!!n.allowLocalPluginLoads,this.typesMapLocation=n.typesMapLocation===void 0?vl(ws(this.getExecutingFilePath()),"typesMap.json"):n.typesMapLocation,this.session=n.session,this.jsDocParsingMode=n.jsDocParsingMode,n.serverMode!==void 0?this.serverMode=n.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=zg()),this.currentDirectory=te(this.host.getCurrentDirectory()),this.toCanonicalFileName=H1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Su(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ut(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 mc(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:pZ(this.host.newLine),preferences:lx,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Ace(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const c=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,u=c!==0?d=>this.logger.info(d):ku;this.packageJsonCache=oh(this),this.watchFactory=this.serverMode!==0?{watchFile:O$,watchDirectory:O$}:mxe(qd(this,n.canUseWatchEvents)||this.host,c,u,Ji),(i=n.incrementalVerifier)==null||i.call(n,this)}toPath(n){return gm(n,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(n){return vf(n,this.host.getCurrentDirectory())}setDocument(n,i,c){const u=re.checkDefined(this.getScriptInfoForPath(i));u.cacheSourceFile={key:n,sourceFile:c}}getDocument(n,i){const c=this.getScriptInfoForPath(i);return c&&c.cacheSourceFile&&c.cacheSourceFile.key===n?c.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(n,i){if(!this.eventHandler)return;const c={eventName:iy,data:{project:n,languageServiceEnabled:i}};this.eventHandler(c)}loadTypesMap(){try{const n=this.host.readFile(this.typesMapLocation);if(n===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const i=JSON.parse(n);for(const c of Object.keys(i.typesMap))i.typesMap[c].match=new RegExp(i.typesMap[c].match,"i");this.safelist=i.typesMap;for(const c in i.simpleMap)ef(i.simpleMap,c)&&this.legacySafelist.set(c,i.simpleMap[c].toLowerCase())}catch(n){this.logger.info(`Error loading types map: ${n}`),this.safelist=fx,this.legacySafelist.clear()}}updateTypingsForProject(n){const i=this.findProject(n.projectName);if(i)switch(n.kind){case _Z:i.updateTypingFiles(this.typingsCache.updateTypingsForProject(n.projectName,n.compilerOptions,n.typeAcquisition,n.unresolvedImports,n.typings));return;case dZ:this.typingsCache.enqueueInstallTypingsForProject(i,i.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(n){var i;(i=this.findProject(n.projectName))==null||i.watchTypingLocations(n.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Tv,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(n){if(n.markAsDirty(),Jr(n))return;const i=n.getProjectName();this.pendingProjectUpdates.set(i,n),this.throttledOperations.schedule(i,250,()=>{this.pendingProjectUpdates.delete(i)&&Qa(n)})}hasPendingProjectUpdate(n){return this.pendingProjectUpdates.has(n.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const n={eventName:q_,data:{openFiles:oc(this.openFiles.keys(),i=>this.getScriptInfoForPath(i).fileName)}};this.eventHandler(n)}sendLargeFileReferencedEvent(n,i){if(!this.eventHandler)return;const c={eventName:c_,data:{file:n,fileSize:i,maxFileSize:x_}};this.eventHandler(c)}sendProjectLoadingStartEvent(n,i){if(!this.eventHandler)return;n.sendLoadingProjectFinish=!0;const c={eventName:Ma,data:{project:n,reason:i}};this.eventHandler(c)}sendProjectLoadingFinishEvent(n){if(!this.eventHandler||!n.sendLoadingProjectFinish)return;n.sendLoadingProjectFinish=!1;const i={eventName:U0,data:{project:n}};this.eventHandler(i)}sendPerformanceEvent(n,i){this.performanceEventHandler&&this.performanceEventHandler({kind:n,durationMs:i})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n){this.delayUpdateProjectGraph(n),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(n,i){if(n.length){for(const c of n)i&&c.clearSourceMapperCache(),this.delayUpdateProjectGraph(c);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(n,i){re.assert(i===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const c=Qr(n),u=co(n,i),d=es(n);c.allowNonTsExtensions=!0;const h=i&&this.toCanonicalFileName(i);h?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(h,c),this.watchOptionsForInferredProjectsPerProjectRoot.set(h,u||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(h,d)):(this.compilerOptionsForInferredProjects=c,this.watchOptionsForInferredProjects=u,this.typeAcquisitionForInferredProjects=d);for(const S of this.inferredProjects)(h?S.projectRootPath===h:!S.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(S.projectRootPath))&&(S.setCompilerOptions(c),S.setTypeAcquisition(d),S.setWatchOptions(u==null?void 0:u.watchOptions),S.setProjectErrors(u==null?void 0:u.errors),S.compileOnSaveEnabled=c.compileOnSave,S.markAsDirty(),this.delayUpdateProjectGraph(S));this.delayEnsureProjectForOpenFiles()}findProject(n){if(n!==void 0)return Ne(n)?Re(n,this.inferredProjects):this.findExternalProjectByProjectName(n)||this.findConfiguredProjectByProjectName(te(n))}forEachProject(n){this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n)}forEachEnabledProject(n){this.forEachProject(i=>{!i.isOrphan()&&i.languageServiceEnabled&&n(i)})}getDefaultProjectForFile(n,i){return i?this.ensureDefaultProjectForFile(n):this.tryGetDefaultProjectForFile(n)}tryGetDefaultProjectForFile(n){const i=As(n)?this.getScriptInfoForNormalizedPath(n):n;return i&&!i.isOrphan()?i.getDefaultProject():void 0}ensureDefaultProjectForFile(n){return this.tryGetDefaultProjectForFile(n)||this.doEnsureDefaultProjectForFile(n)}doEnsureDefaultProjectForFile(n){this.ensureProjectStructuresUptoDate();const i=As(n)?this.getScriptInfoForNormalizedPath(n):n;return i?i.getDefaultProject():(this.logErrorForScriptInfoNotFound(As(n)?n:n.fileName),Dt.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(n){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(n)}ensureProjectStructuresUptoDate(){let n=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const i=c=>{n=Qa(c)||n};this.externalProjects.forEach(i),this.configuredProjects.forEach(i),this.inferredProjects.forEach(i),n&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(n){const i=this.getScriptInfoForNormalizedPath(n);return i&&i.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(n){const i=this.getScriptInfoForNormalizedPath(n);return{...this.hostConfiguration.preferences,...i&&i.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(n,i){i===2?this.handleDeletedFile(n):n.isScriptOpen()||(n.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n))}handleSourceMapProjects(n){if(n.sourceMapFilePath)if(As(n.sourceMapFilePath)){const i=this.getScriptInfoForPath(n.sourceMapFilePath);this.delayUpdateSourceInfoProjects(i&&i.sourceInfos)}else this.delayUpdateSourceInfoProjects(n.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(n.sourceInfos),n.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(n.declarationInfoPath)}delayUpdateSourceInfoProjects(n){n&&n.forEach((i,c)=>this.delayUpdateProjectsOfScriptInfoPath(c))}delayUpdateProjectsOfScriptInfoPath(n){const i=this.getScriptInfoForPath(n);i&&this.delayUpdateProjectGraphs(i.containingProjects,!0)}handleDeletedFile(n){if(this.stopWatchingScriptInfo(n),!n.isScriptOpen()){this.deleteScriptInfo(n);const i=n.containingProjects.slice();if(n.detachAllProjects(),this.delayUpdateProjectGraphs(i,!1),this.handleSourceMapProjects(n),n.closeSourceMapFileWatcher(),n.declarationInfoPath){const c=this.getScriptInfoForPath(n.declarationInfoPath);c&&(c.sourceMapFilePath=void 0)}}}watchWildcardDirectory(n,i,c,u){return this.watchFactory.watchDirectory(n,d=>{const h=this.toPath(d),S=u.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,h);Jg(h)==="package.json"&&!KZ(h)&&(S&&S.fileExists||!S&&this.host.fileExists(h))&&(this.logger.info(`Config: ${c} Detected new package.json: ${d}`),this.onAddPackageJson(h));const E=this.findConfiguredProjectByProjectName(c);dC({watchedDirPath:n,fileOrDirectory:d,fileOrDirectoryPath:h,configFileName:c,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:u.parsedCommandLine.options,program:(E==null?void 0:E.getCurrentProgram())||u.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:P=>this.logger.info(P),toPath:P=>this.toPath(P),getScriptKind:E?P=>E.getScriptKind(P):void 0})||(u.updateLevel!==2&&(u.updateLevel=1),u.projects.forEach((P,k)=>{if(!P)return;const F=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!F)return;const $=E===F?1:0;if(!(F.pendingUpdateLevel!==void 0&&F.pendingUpdateLevel>$))if(this.openFiles.has(h))if(re.checkDefined(this.getScriptInfoForPath(h)).isAttached(F)){const X=Math.max($,F.openFileWatchTriggered.get(h)||0);F.openFileWatchTriggered.set(h,X)}else F.pendingUpdateLevel=$,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(F);else F.pendingUpdateLevel=$,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(F)}))},i,this.getWatchOptionsFromProjectWatchOptions(u.parsedCommandLine.watchOptions),r0.WildcardDirectory,c)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,i){const c=this.configFileExistenceInfoCache.get(n);if(!(c!=null&&c.config))return!1;let u=!1;return c.config.updateLevel=2,c.config.projects.forEach((d,h)=>{const S=this.getConfiguredProjectByCanonicalConfigFilePath(h);if(S)if(u=!0,h===n){if(S.isInitialLoadPending())return;S.pendingUpdateLevel=2,S.pendingUpdateReason=i,this.delayUpdateProjectGraph(S)}else S.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(n)),this.delayUpdateProjectGraph(S)}),u}onConfigFileChanged(n,i){var c;const u=this.configFileExistenceInfoCache.get(n);if(i===2){u.exists=!1;const d=(c=u.config)!=null&&c.projects.has(n)?this.getConfiguredProjectByCanonicalConfigFilePath(n):void 0;d&&this.removeProject(d)}else u.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected"),this.reloadConfiguredProjectForFiles(u.openFilesImpactedByConfigFile,!1,!0,i!==2?Of:xT,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(n){switch(this.logger.info("`remove Project::"),n.print(!0,!0,!1),n.close(),re.shouldAssert(1)&&this.filenameToScriptInfo.forEach(i=>re.assert(!i.isAttached(n),"Found script Info still attached to project",()=>`${n.projectName}: ScriptInfos still attached: ${JSON.stringify(oc(p2(this.filenameToScriptInfo.values(),c=>c.isAttached(n)?{fileName:c.fileName,projects:c.containingProjects.map(u=>u.projectName),hasMixedContent:c.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(n.getProjectName()),n.projectKind){case 2:A8(this.externalProjects,n),this.projectToSizeMap.delete(n.getProjectName());break;case 1:this.configuredProjects.delete(n.canonicalConfigFilePath),this.projectToSizeMap.delete(n.canonicalConfigFilePath);break;case 0:A8(this.inferredProjects,n);break}}assignOrphanScriptInfoToInferredProject(n,i){re.assert(n.isOrphan());const c=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(n,i)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(n.isDynamic?i||this.currentDirectory:ws(nE(n.fileName)?n.fileName:vf(n.fileName,i?this.getNormalizedAbsolutePath(i):this.currentDirectory)));if(c.addRoot(n),n.containingProjects[0]!==c&&(n.detachFromProject(c),n.containingProjects.unshift(c)),c.updateGraph(),!this.useSingleInferredProject&&!c.projectRootPath)for(const u of this.inferredProjects){if(u===c||u.isOrphan())continue;const d=u.getRootScriptInfos();re.assert(d.length===1||!!u.projectRootPath),d.length===1&&Ot(d[0].containingProjects,h=>h!==d[0].containingProjects[0]&&!h.isOrphan())&&u.removeFile(d[0],!0,!0)}return c}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);c.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(c,n)})}closeOpenFile(n,i){const c=n.isDynamic?!1:this.host.fileExists(n.fileName);n.close(c),this.stopWatchingConfigFilesForClosedScriptInfo(n);const u=this.toCanonicalFileName(n.fileName);this.openFilesWithNonRootedDiskPath.get(u)===n&&this.openFilesWithNonRootedDiskPath.delete(u);let d=!1;for(const h of n.containingProjects){if(vc(h)){n.hasMixedContent&&n.registerFileUpdate();const S=h.openFileWatchTriggered.get(n.path);S!==void 0&&(h.openFileWatchTriggered.delete(n.path),h.pendingUpdateLevel!==void 0&&h.pendingUpdateLevelthis.onConfigFileChanged(i,P),2e3,this.getWatchOptionsFromProjectWatchOptions((d=(u=h==null?void 0:h.config)==null?void 0:u.parsedCommandLine)==null?void 0:d.watchOptions),r0.ConfigFile,c));const S=h.config.projects;S.set(c.canonicalConfigFilePath,S.get(c.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(n){return n.openFilesImpactedByConfigFile&&Jb(n.openFilesImpactedByConfigFile,Of)}releaseParsedConfig(n,i){var c,u,d;const h=this.configFileExistenceInfoCache.get(n);(c=h.config)!=null&&c.projects.delete(i.canonicalConfigFilePath)&&((u=h.config)!=null&&u.projects.size||(h.config=void 0,VQ(n,this.sharedExtendedConfigFileWatchers),re.checkDefined(h.watcher),(d=h.openFilesImpactedByConfigFile)!=null&&d.size?this.configFileExistenceImpactsRootOfInferredProject(h)?rZ(qc(ws(n)))||(h.watcher.close(),h.watcher=lm):(h.watcher.close(),h.watcher=void 0):(h.watcher.close(),this.configFileExistenceInfoCache.delete(n))))}closeConfigFileWatcherOnReleaseOfOpenFile(n){n.watcher&&!n.config&&!this.configFileExistenceImpactsRootOfInferredProject(n)&&(n.watcher.close(),n.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(n){re.assert(!n.isScriptOpen()),this.forEachConfigFileLocation(n,i=>{var c,u,d;const h=this.configFileExistenceInfoCache.get(i);if(h){const S=(c=h.openFilesImpactedByConfigFile)==null?void 0:c.get(n.path);(u=h.openFilesImpactedByConfigFile)==null||u.delete(n.path),S&&this.closeConfigFileWatcherOnReleaseOfOpenFile(h),!((d=h.openFilesImpactedByConfigFile)!=null&&d.size)&&!h.config&&(re.assert(!h.watcher),this.configFileExistenceInfoCache.delete(i))}})}startWatchingConfigFilesForInferredProjectRoot(n){re.assert(n.isScriptOpen()),this.forEachConfigFileLocation(n,(i,c)=>{let u=this.configFileExistenceInfoCache.get(i);u||(u={exists:this.host.fileExists(c)},this.configFileExistenceInfoCache.set(i,u)),(u.openFilesImpactedByConfigFile||(u.openFilesImpactedByConfigFile=new Map)).set(n.path,!0),u.watcher||(u.watcher=rZ(qc(ws(i)))?this.watchFactory.watchFile(c,(d,h)=>this.onConfigFileChanged(i,h),2e3,this.hostConfiguration.watchOptions,r0.ConfigFileForInferredRoot):lm)})}stopWatchingConfigFilesForInferredProjectRoot(n){this.forEachConfigFileLocation(n,i=>{var c;const u=this.configFileExistenceInfoCache.get(i);(c=u==null?void 0:u.openFilesImpactedByConfigFile)!=null&&c.has(n.path)&&(re.assert(n.isScriptOpen()),u.openFilesImpactedByConfigFile.set(n.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(u))})}forEachConfigFileLocation(n,i){if(this.serverMode!==0)return;re.assert(!wt(n)||this.openFiles.has(n.path));const c=this.openFiles.get(n.path);if(re.checkDefined(this.getScriptInfo(n.path)).isDynamic)return;let d=ws(n.fileName);const h=()=>OE(c,d,this.currentDirectory,!this.host.useCaseSensitiveFileNames),S=!c||!h();let E=!$e(n);do{if(E){const k=oe(d,this.currentDirectory,this.toCanonicalFileName),F=vl(d,"tsconfig.json");let $=i(vl(k,"tsconfig.json"),F);if($)return F;const J=vl(d,"jsconfig.json");if($=i(vl(k,"jsconfig.json"),J),$)return J;if(NX(k))break}const P=ws(d);if(P===d)break;d=P,E=!0}while(S||h())}findDefaultConfiguredProject(n){if(!n.isScriptOpen())return;const i=this.getConfigFileNameForFile(n),c=i&&this.findConfiguredProjectByProjectName(i);return c&&Ca(c,n)?c:c==null?void 0:c.getDefaultChildProjectFromProjectWithReferences(n)}getConfigFileNameForFile(n){if(wt(n)){re.assert(n.isScriptOpen());const c=this.configFileForOpenFiles.get(n.path);if(c!==void 0)return c||void 0}this.logger.info(`Search path: ${ws(n.fileName)}`);const i=this.forEachConfigFileLocation(n,(c,u)=>this.configFileExists(u,c,n));return i?this.logger.info(`For info: ${n.fileName} :: Config file name: ${i}`):this.logger.info(`For info: ${n.fileName} :: No config files found.`),wt(n)&&this.configFileForOpenFiles.set(n.path,i||!1),i}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Ha),this.configuredProjects.forEach(Ha),this.inferredProjects.forEach(Ha),this.logger.info("Open files: "),this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);this.logger.info(` FileName: ${c.fileName} ProjectRootPath: ${n}`),this.logger.info(` Projects: ${c.containingProjects.map(u=>u.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(n){const i=this.toCanonicalFileName(n);return this.getConfiguredProjectByCanonicalConfigFilePath(i)}getConfiguredProjectByCanonicalConfigFilePath(n){return this.configuredProjects.get(n)}findExternalProjectByProjectName(n){return Re(n,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(n,i,c,u){if(i&&i.disableSizeLimit||!this.host.getFileSize)return;let d=mu;this.projectToSizeMap.set(n,0),this.projectToSizeMap.forEach(S=>d-=S||0);let h=0;for(const S of c){const E=u.getFileName(S);if(!vR(E)&&(h+=this.host.getFileSize(E),h>mu||h>d)){const P=c.map(k=>u.getFileName(k)).filter(k=>!vR(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,F)=>F.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${h}). Largest files: ${P.map(k=>`${k.name}:${k.size}`).join(", ")}`),E}}this.projectToSizeMap.set(n,h)}createExternalProject(n,i,c,u,d){const h=Qr(c),S=co(c,ws($1(n))),E=new mt(n,this,this.documentRegistry,h,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n,h,i,Mg),c.compileOnSave===void 0?!0:c.compileOnSave,void 0,S==null?void 0:S.watchOptions);return E.setProjectErrors(S==null?void 0:S.errors),E.excludedFiles=d,this.addFilesToNonInferredProject(E,i,Mg,u),this.externalProjects.push(E),E}sendProjectTelemetry(n){if(this.seenProjects.has(n.projectName)){Ks(n);return}if(this.seenProjects.set(n.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Ks(n);return}const i=vc(n)?n.projectOptions:void 0;Ks(n);const c={projectId:this.host.createSHA256Hash(n.projectName),fileStats:Fi(n.getScriptInfos(),!0),compilerOptions:n$(n.getCompilationSettings()),typeAcquisition:d(n.getTypeAcquisition()),extends:i&&i.configHasExtendsProperty,files:i&&i.configHasFilesProperty,include:i&&i.configHasIncludeProperty,exclude:i&&i.configHasExcludeProperty,compileOnSave:n.compileOnSaveEnabled,configFileName:u(),projectType:n instanceof mt?"external":"configured",languageServiceEnabled:n.languageServiceEnabled,version:At};this.eventHandler({eventName:Oh,data:c});function u(){return vc(n)&&it(n.getConfigFilePath())||"other"}function d({enable:h,include:S,exclude:E}){return{enable:h,include:S!==void 0&&S.length!==0,exclude:E!==void 0&&E.length!==0}}}addFilesToNonInferredProject(n,i,c,u){this.updateNonInferredProjectFiles(n,i,c),n.setTypeAcquisition(u),n.markAsDirty()}createConfiguredProject(n){var i;(i=ps)==null||i.instant(ps.Phase.Session,"createConfiguredProject",{configFilePath:n}),this.logger.info(`Creating configuration project ${n}`);const c=this.toCanonicalFileName(n);let u=this.configFileExistenceInfoCache.get(c);u?u.exists=!0:this.configFileExistenceInfoCache.set(c,u={exists:!0}),u.config||(u.config={cachedDirectoryStructureHost:Jae(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const d=new qr(n,c,this,this.documentRegistry,u.config.cachedDirectoryStructureHost);return this.configuredProjects.set(c,d),this.createConfigFileWatcherForParsedConfig(n,c,d),d}createConfiguredProjectWithDelayLoad(n,i){const c=this.createConfiguredProject(n);return c.pendingUpdateLevel=2,c.pendingUpdateReason=i,c}createAndLoadConfiguredProject(n,i){const c=this.createConfiguredProject(n);return this.loadConfiguredProject(c,i),c}createLoadAndUpdateConfiguredProject(n,i){const c=this.createAndLoadConfiguredProject(n,i);return c.updateGraph(),c}loadConfiguredProject(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"loadConfiguredProject",{configFilePath:n.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(n,i);const d=hf(n.getConfigFilePath()),h=this.ensureParsedConfigUptoDate(d,n.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath),n),S=h.config.parsedCommandLine;re.assert(!!S.fileNames);const E=S.options;n.projectOptions||(n.projectOptions={configHasExtendsProperty:S.raw.extends!==void 0,configHasFilesProperty:S.raw.files!==void 0,configHasIncludeProperty:S.raw.include!==void 0,configHasExcludeProperty:S.raw.exclude!==void 0}),n.canConfigFileJsonReportNoInputFiles=e$(S.raw),n.setProjectErrors(S.options.configFile.parseDiagnostics),n.updateReferences(S.projectReferences);const P=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.canonicalConfigFilePath,E,S.fileNames,rd);P?(n.disableLanguageService(P),this.configFileExistenceInfoCache.forEach((F,$)=>this.stopWatchingWildCards($,n))):(n.setCompilerOptions(E),n.setWatchOptions(S.watchOptions),n.enableLanguageService(),this.watchWildcards(d,h,n)),n.enablePluginsWithOptions(E);const k=S.fileNames.concat(n.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(n,k,rd,E,S.typeAcquisition,S.compileOnSave,S.watchOptions),(u=ps)==null||u.pop()}ensureParsedConfigUptoDate(n,i,c,u){var d,h,S;if(c.config){if(!c.config.updateLevel)return c;if(c.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(n,c.config),c}const E=((d=c.config)==null?void 0:d.cachedDirectoryStructureHost)||Jae(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),P=ZJ(n,X=>this.host.readFile(X)),k=iT(n,As(P)?P:""),F=k.parseDiagnostics;As(P)||F.push(P);const $=Zoe(k,E,ws(n),{},n,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);$.errors.length&&F.push(...$.errors),this.logger.info(`Config: ${n} : ${JSON.stringify({rootNames:$.fileNames,options:$.options,watchOptions:$.watchOptions,projectReferences:$.projectReferences},void 0," ")}`);const J=(h=c.config)==null?void 0:h.parsedCommandLine;return c.config?(c.config.parsedCommandLine=$,c.config.watchedDirectoriesStale=!0,c.config.updateLevel=void 0):c.config={parsedCommandLine:$,cachedDirectoryStructureHost:E,projects:new Map},!J&&!xY(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions($.watchOptions))&&((S=c.watcher)==null||S.close(),c.watcher=void 0),this.createConfigFileWatcherForParsedConfig(n,i,u),D$(i,$.options,this.sharedExtendedConfigFileWatchers,(X,ie)=>this.watchFactory.watchFile(X,()=>{var ae;Gme(this.extendedConfigCache,ie,we=>this.toPath(we));let ve=!1;(ae=this.sharedExtendedConfigFileWatchers.get(ie))==null||ae.projects.forEach(we=>{ve=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(we,`Change in extended config file ${X} detected`)||ve}),ve&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,r0.ExtendedConfigFile,n),X=>this.toPath(X)),c}watchWildcards(n,{exists:i,config:c},u){if(c.projects.set(u.canonicalConfigFilePath,!0),i){if(c.watchedDirectories&&!c.watchedDirectoriesStale)return;c.watchedDirectoriesStale=!1,jW(c.watchedDirectories||(c.watchedDirectories=new Map),new Map(Object.entries(c.parsedCommandLine.wildcardDirectories)),(d,h)=>this.watchWildcardDirectory(d,h,n,c))}else{if(c.watchedDirectoriesStale=!1,!c.watchedDirectories)return;Mh(c.watchedDirectories,YE),c.watchedDirectories=void 0}}stopWatchingWildCards(n,i){const c=this.configFileExistenceInfoCache.get(n);!c.config||!c.config.projects.get(i.canonicalConfigFilePath)||(c.config.projects.set(i.canonicalConfigFilePath,!1),!Jb(c.config.projects,Of)&&(c.config.watchedDirectories&&(Mh(c.config.watchedDirectories,YE),c.config.watchedDirectories=void 0),c.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(n,i,c){const u=n.getRootFilesMap(),d=new Map;for(const h of i){const S=c.getFileName(h),E=te(S),P=so(E);let k;if(!P&&!n.fileExists(S)){k=oe(E,this.currentDirectory,this.toCanonicalFileName);const F=u.get(k);F?(F.info&&(n.removeFile(F.info,!1,!0),F.info=void 0),F.fileName=E):u.set(k,{fileName:E})}else{const F=c.getScriptKind(h,this.hostConfiguration.extraFileExtensions),$=c.hasMixedContent(h,this.hostConfiguration.extraFileExtensions),J=re.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(E,n.currentDirectory,F,$,n.directoryStructureHost));k=J.path;const X=u.get(k);!X||X.info!==J?(n.addRoot(J,E),J.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(J)):X.fileName=E}d.set(k,!0)}u.size>d.size&&u.forEach((h,S)=>{d.has(S)||(h.info?n.removeFile(h.info,n.fileExists(S),!0):u.delete(S))})}updateRootAndOptionsOfNonInferredProject(n,i,c,u,d,h,S){n.setCompilerOptions(u),n.setWatchOptions(S),h!==void 0&&(n.compileOnSaveEnabled=h),this.addFilesToNonInferredProject(n,i,c,d)}reloadFileNamesOfConfiguredProject(n){const i=this.reloadFileNamesOfParsedConfig(n.getConfigFilePath(),this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath).config);return n.updateErrorOnNoInputFiles(i),this.updateNonInferredProjectFiles(n,i.concat(n.getExternalFiles(1)),rd),n.markAsDirty(),n.updateGraph()}reloadFileNamesOfParsedConfig(n,i){if(i.updateLevel===void 0)return i.parsedCommandLine.fileNames;re.assert(i.updateLevel===1);const c=i.parsedCommandLine.options.configFile.configFileSpecs,u=t$(c,ws(n),i.parsedCommandLine.options,i.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return i.parsedCommandLine={...i.parsedCommandLine,fileNames:u},u}setFileNamesOfAutpImportProviderOrAuxillaryProject(n,i){this.updateNonInferredProjectFiles(n,i,rd)}reloadConfiguredProject(n,i,c,u){const d=n.getCachedDirectoryStructureHost();u&&this.clearSemanticCache(n),d.clearCache();const h=n.getConfigFilePath();this.logger.info(`${c?"Loading":"Reloading"} configured project ${h}`),this.loadConfiguredProject(n,i),n.updateGraph(),this.sendConfigFileDiagEvent(n,h)}clearSemanticCache(n){n.resolutionCache.clear(),n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram(),n.markAsDirty()}sendConfigFileDiagEvent(n,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const c=n.getLanguageService().getCompilerOptionsDiagnostics();c.push(...n.getAllProjectErrors()),this.eventHandler({eventName:Kd,data:{configFileName:n.getConfigFilePath(),diagnostics:c,triggerFile:i}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(n,i){if(!this.useInferredProjectPerProjectRoot||n.isDynamic&&i===void 0)return;if(i){const u=this.toCanonicalFileName(i);for(const d of this.inferredProjects)if(d.projectRootPath===u)return d;return this.createInferredProject(i,!1,i)}let c;for(const u of this.inferredProjects)u.projectRootPath&&OE(u.projectRootPath,n.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(c&&c.projectRootPath.length>u.projectRootPath.length||(c=u));return c}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(n){re.assert(!this.useSingleInferredProject);const i=this.toCanonicalFileName(this.getNormalizedAbsolutePath(n));for(const c of this.inferredProjects)if(!c.projectRootPath&&c.isOrphan()&&c.canonicalCurrentDirectory===i)return c;return this.createInferredProject(n)}createInferredProject(n,i,c){const u=c&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(c)||this.compilerOptionsForInferredProjects;let d,h;c&&(d=this.watchOptionsForInferredProjectsPerProjectRoot.get(c),h=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(c)),d===void 0&&(d=this.watchOptionsForInferredProjects),h===void 0&&(h=this.typeAcquisitionForInferredProjects),d=d||void 0;const S=new _o(this,this.documentRegistry,u,d==null?void 0:d.watchOptions,c,n,h);return S.setProjectErrors(d==null?void 0:d.errors),i?this.inferredProjects.unshift(S):this.inferredProjects.push(S),S}getOrCreateScriptInfoNotOpenedByClient(n,i,c){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(te(n),i,void 0,void 0,c)}getScriptInfo(n){return this.getScriptInfoForNormalizedPath(te(n))}getScriptInfoOrConfig(n){const i=te(n),c=this.getScriptInfoForNormalizedPath(i);if(c)return c;const u=this.configuredProjects.get(this.toPath(n));return u&&u.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(n){const i=oc(this.filenameToScriptInfo.entries(),([c,u])=>({path:c,fileName:u.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(n)}. All files are: ${JSON.stringify(i)}`,"Err")}getSymlinkedProjects(n){let i;if(this.realpathToScriptInfos){const u=n.getRealpathIfDifferent();u&&Ot(this.realpathToScriptInfos.get(u),c),Ot(this.realpathToScriptInfos.get(n.path),c)}return i;function c(u){if(u!==n)for(const d of u.containingProjects)d.languageServiceEnabled&&!d.isOrphan()&&!d.getCompilerOptions().preserveSymlinks&&!n.isAttached(d)&&(i?Jb(i,(h,S)=>S===u.path?!1:ni(h,d))||i.add(u.path,d):(i=zg(),i.add(u.path,d)))}}watchClosedScriptInfo(n){if(re.assert(!n.fileWatcher),!n.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!qf(n.path,this.globalCacheLocationDirectoryPath))){const i=n.path.indexOf("/node_modules/");!this.host.getModifiedTime||i===-1?n.fileWatcher=this.watchFactory.watchFile(n.fileName,(c,u)=>this.onSourceFileChanged(n,u),500,this.hostConfiguration.watchOptions,r0.ClosedScriptInfo):(n.mTime=this.getModifiedTime(n),n.fileWatcher=this.watchClosedScriptInfoInNodeModules(n.path.substr(0,i)))}}createNodeModulesWatcher(n){const i=this.watchFactory.watchDirectory(n,u=>{var d;const h=_se(this.toPath(u));if(!h)return;const S=Jg(h);if((d=c.affectedModuleSpecifierCacheProjects)!=null&&d.size&&(S==="package.json"||S==="node_modules")&&c.affectedModuleSpecifierCacheProjects.forEach(E=>{var P,k;(k=(P=this.findProject(E))==null?void 0:P.getModuleSpecifierCache())==null||k.clear()}),c.refreshScriptInfoRefCount)if(n===h)this.refreshScriptInfosInDirectory(n);else{const E=this.getScriptInfoForPath(h);E?zo(E)&&this.refreshScriptInfo(E):r9(h)||this.refreshScriptInfosInDirectory(h)}},1,this.hostConfiguration.watchOptions,r0.NodeModules),c={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var u;!c.refreshScriptInfoRefCount&&!((u=c.affectedModuleSpecifierCacheProjects)!=null&&u.size)&&(i.close(),this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,c),c}watchPackageJsonsInNodeModules(n,i){const c=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(n);return(c.affectedModuleSpecifierCacheProjects||(c.affectedModuleSpecifierCacheProjects=new Set)).add(i.getProjectName()),{close:()=>{var u;(u=c.affectedModuleSpecifierCacheProjects)==null||u.delete(i.getProjectName()),c.close()}}}watchClosedScriptInfoInNodeModules(n){const i=n+"/node_modules",c=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(i);return c.refreshScriptInfoRefCount++,{close:()=>{c.refreshScriptInfoRefCount--,c.close()}}}getModifiedTime(n){return(this.host.getModifiedTime(n.path)||oP).getTime()}refreshScriptInfo(n){const i=this.getModifiedTime(n);if(i!==n.mTime){const c=j_e(n.mTime,i);n.mTime=i,this.onSourceFileChanged(n,c)}}refreshScriptInfosInDirectory(n){n=n+qp,this.filenameToScriptInfo.forEach(i=>{zo(i)&&qf(i.path,n)&&this.refreshScriptInfo(i)})}stopWatchingScriptInfo(n){n.fileWatcher&&(n.fileWatcher.close(),n.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(n,i,c,u,d){if(nE(n)||so(n))return this.getOrCreateScriptInfoWorker(n,i,!1,void 0,c,u,d);const h=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n));if(h)return h}getOrCreateScriptInfoOpenedByClientForNormalizedPath(n,i,c,u,d){return this.getOrCreateScriptInfoWorker(n,i,!0,c,u,d)}getOrCreateScriptInfoForNormalizedPath(n,i,c,u,d,h){return this.getOrCreateScriptInfoWorker(n,this.currentDirectory,i,c,u,d,h)}getOrCreateScriptInfoWorker(n,i,c,u,d,h,S){re.assert(u===void 0||c,"ScriptInfo needs to be opened by client to be able to set its user defined content");const E=oe(n,i,this.toCanonicalFileName);let P=this.getScriptInfoForPath(E);if(!P){const k=so(n);if(re.assert(nE(n)||k||c,"",()=>`${JSON.stringify({fileName:n,currentDirectory:i,hostCurrentDirectory:this.currentDirectory,openKeys:oc(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),re.assert(!nE(n)||this.currentDirectory===i||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(n)),"",()=>`${JSON.stringify({fileName:n,currentDirectory:i,hostCurrentDirectory:this.currentDirectory,openKeys:oc(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),re.assert(!k||this.currentDirectory===i||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:n,currentDirectory:i,hostCurrentDirectory:this.currentDirectory,openKeys:oc(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!c&&!k&&!(S||this.host).fileExists(n))return;P=new ro(this.host,n,d,!!h,E,this.filenameToScriptInfoVersion.get(E)),this.filenameToScriptInfo.set(P.path,P),this.filenameToScriptInfoVersion.delete(P.path),c?!nE(n)&&(!k||this.currentDirectory!==i)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(n),P):this.watchClosedScriptInfo(P)}return c&&(this.stopWatchingScriptInfo(P),P.open(u),h&&P.registerFileUpdate()),P}getScriptInfoForNormalizedPath(n){return!nE(n)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n))||this.getScriptInfoForPath(oe(n,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(n){return this.filenameToScriptInfo.get(n)}getDocumentPositionMapper(n,i,c){const u=this.getOrCreateScriptInfoNotOpenedByClient(i,n.currentDirectory,this.host);if(!u){c&&n.addGeneratedFileWatch(i,c);return}if(u.getSnapshot(),As(u.sourceMapFilePath)){const k=this.getScriptInfoForPath(u.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(c,n,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;u.sourceMapFilePath=void 0}else if(u.sourceMapFilePath){u.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(c,n,u.sourceMapFilePath.sourceInfos);return}else if(u.sourceMapFilePath!==void 0)return;let d,h,S=(k,F)=>{const $=this.getOrCreateScriptInfoNotOpenedByClient(k,n.currentDirectory,this.host);if(!$){h=F;return}d=$;const J=$.getSnapshot();return $.documentPositionMapper!==void 0?$.documentPositionMapper:Ij(J)};const E=n.projectName,P=sCe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,E,u)},u.fileName,u.textStorage.getLineInfo(),S);return S=void 0,d?(u.sourceMapFilePath=d.path,d.declarationInfoPath=u.path,d.documentPositionMapper=P||!1,d.sourceInfos=this.addSourceInfoToSourceMap(c,n,d.sourceInfos)):h?u.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?h:vf(h,n.currentDirectory),u.path),sourceInfos:this.addSourceInfoToSourceMap(c,n)}:u.sourceMapFilePath=!1,P}addSourceInfoToSourceMap(n,i,c){if(n){const u=this.getOrCreateScriptInfoNotOpenedByClient(n,i.currentDirectory,i.directoryStructureHost);(c||(c=new Set)).add(u.path)}return c}addMissingSourceMapFile(n,i){return this.watchFactory.watchFile(n,()=>{const u=this.getScriptInfoForPath(i);u&&u.sourceMapFilePath&&!As(u.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(u.containingProjects,!0),this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos),u.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,r0.MissingSourceMapFile)}getSourceFileLike(n,i,c){const u=i.projectName?i:this.findProject(i);if(u){const h=u.toPath(n),S=u.getSourceFile(h);if(S&&S.resolvedPath===h)return S}const d=this.getOrCreateScriptInfoNotOpenedByClient(n,(u||this).currentDirectory,u?u.directoryStructureHost:this.host);if(d){if(c&&As(c.sourceMapFilePath)&&d!==c){const h=this.getScriptInfoForPath(c.sourceMapFilePath);h&&(h.sourceInfos||(h.sourceInfos=new Set)).add(d.path)}return d.cacheSourceFile?d.cacheSourceFile.sourceFile:(d.sourceFileLike||(d.sourceFileLike={get text(){return re.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:h=>{const S=d.positionToLineOffset(h);return{line:S.line-1,character:S.offset-1}},getPositionOfLineAndCharacter:(h,S,E)=>d.lineOffsetToPosition(h+1,S+1,E)}),d.sourceFileLike)}}setPerformanceEventHandler(n){this.performanceEventHandler=n}setHostConfiguration(n){var i;if(n.file){const c=this.getScriptInfoForNormalizedPath(te(n.file));c&&(c.setOptions(oi(n.formatOptions),n.preferences),this.logger.info(`Host configuration update for file ${n.file}`))}else{if(n.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=n.hostInfo,this.logger.info(`Host information ${n.hostInfo}`)),n.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...oi(n.formatOptions)},this.logger.info("Format host information updated")),n.preferences){const{lazyConfiguredProjectsFromExternalProject:c,includePackageJsonAutoImports:u}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...n.preferences},c&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(d=>{d.hasExternalProjectRef()&&d.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(d.getProjectName())&&d.updateGraph()}),u!==n.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}n.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=n.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),n.watchOptions&&(this.hostConfiguration.watchOptions=(i=co(n.watchOptions))==null?void 0:i.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(n){return this.getWatchOptionsFromProjectWatchOptions(n.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(n){return n&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...n}:n||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(n=>{this.openFiles.has(n.path)||n.fileWatcher&&this.onSourceFileChanged(n,this.host.fileExists(n.fileName)?1:2)}),this.pendingProjectUpdates.forEach((n,i)=>{this.throttledOperations.cancel(i),this.pendingProjectUpdates.delete(i)}),this.throttledOperations.cancel(Tv),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(n=>{n.config&&(n.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,xT,"User requested reload projects"),this.externalProjects.forEach(n=>{this.clearSemanticCache(n),n.updateGraph()}),this.inferredProjects.forEach(n=>this.clearSemanticCache(n)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(n,i,c,u,d){const h=new Map,S=E=>{h.has(E.canonicalConfigFilePath)||(h.set(E.canonicalConfigFilePath,!0),this.reloadConfiguredProject(E,d,!1,i))};n==null||n.forEach((E,P)=>{if(this.configFileForOpenFiles.delete(P),!u(E))return;const k=this.getScriptInfoForPath(P);re.assert(k.isScriptOpen());const F=this.getConfigFileNameForFile(k);if(F){const $=this.findConfiguredProjectByProjectName(F)||this.createConfiguredProject(F);h.has($.canonicalConfigFilePath)||(h.set($.canonicalConfigFilePath,!0),c?($.pendingUpdateLevel=2,$.pendingUpdateReason=d,i&&this.clearSemanticCache($),this.delayUpdateProjectGraph($)):(this.reloadConfiguredProject($,d,!1,i),Ca($,k)||Zt($,k.path,X=>(S(X),Ca(X,k)),1)&&Zt($,void 0,S,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(n){re.assert(n.containingProjects.length>0);const i=n.containingProjects[0];!i.isOrphan()&&sl(i)&&i.isRoot(n)&&Ot(n.containingProjects,c=>c!==i&&!c.isOrphan())&&i.removeFile(n,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);c.isOrphan()?this.assignOrphanScriptInfoToInferredProject(c,n):this.removeRootOfInferredProjectIfNowPartOfOtherProject(c)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Qa),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(n,i,c,u){return this.openClientFileWithNormalizedPath(te(n),i,c,!1,u?te(u):void 0)}getOriginalLocationEnsuringConfiguredProject(n,i){const c=n.isSourceOfProjectReferenceRedirect(i.fileName),u=c?i:n.getSourceMapper().tryGetSourcePosition(i);if(!u)return;const{fileName:d}=u,h=this.getScriptInfo(d);if(!h&&!this.host.fileExists(d))return;const S={fileName:te(d),path:this.toPath(d)},E=this.getConfigFileNameForFile(S);if(!E)return;let P=this.findConfiguredProjectByProjectName(E);if(!P){if(n.getCompilerOptions().disableReferencedProjectLoad)return c?i:h!=null&&h.containingProjects.length?u:i;P=this.createAndLoadConfiguredProject(E,`Creating project for original file: ${S.fileName}${i!==u?" for location: "+i.fileName:""}`)}Qa(P);const k=J=>{const X=this.getScriptInfo(d);return X&&Ca(J,X)};if(P.isSolution()||!k(P)){if(P=Zt(P,d,J=>(Qa(J),k(J)?J:void 0),2,`Creating project referenced in solution ${P.projectName} to find possible configured project for original file: ${S.fileName}${i!==u?" for location: "+i.fileName:""}`),!P)return;if(P===n)return u}$(P);const F=this.getScriptInfo(d);if(!F||!F.containingProjects.length)return;return F.containingProjects.forEach(J=>{vc(J)&&$(J)}),u;function $(J){n.originalConfiguredProjects||(n.originalConfiguredProjects=new Set),n.originalConfiguredProjects.add(J.canonicalConfigFilePath)}}fileExists(n){return!!this.getScriptInfoForNormalizedPath(n)||this.host.fileExists(n)}findExternalProjectContainingOpenScriptInfo(n){return lr(this.externalProjects,i=>(Qa(i),i.containsScriptInfo(n)))}getOrCreateOpenScriptInfo(n,i,c,u,d){const h=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(n,d?this.getNormalizedAbsolutePath(d):this.currentDirectory,i,c,u);return this.openFiles.set(h.path,d),h}assignProjectToOpenedScriptInfo(n){let i,c,u=this.findExternalProjectContainingOpenScriptInfo(n),d,h,S=!1;return!u&&this.serverMode===0&&(i=this.getConfigFileNameForFile(n),i&&(u=this.findConfiguredProjectByProjectName(i),u?Qa(u):(u=this.createLoadAndUpdateConfiguredProject(i,`Creating possible configured project for ${n.fileName} to open`),S=!0),h=u.containsScriptInfo(n)?u:void 0,d=u,Ca(u,n)||Zt(u,n.path,E=>{if(Qa(E),ls(d)?d.push(E):d=[u,E],Ca(E,n))return h=E,E;!h&&E.containsScriptInfo(n)&&(h=E)},2,`Creating project referenced in solution ${u.projectName} to find possible configured project for ${n.fileName} to open`),h?(i=h.getConfigFilePath(),(h!==u||S)&&(c=h.getAllProjectErrors(),this.sendConfigFileDiagEvent(h,n.fileName))):i=void 0,this.createAncestorProjects(n,u))),n.containingProjects.forEach(Qa),n.isOrphan()&&(ls(d)?d.forEach(E=>this.sendConfigFileDiagEvent(E,n.fileName)):d&&this.sendConfigFileDiagEvent(d,n.fileName),re.assert(this.openFiles.has(n.path)),this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),re.assert(!n.isOrphan()),{configFileName:i,configFileErrors:c,retainProjects:d}}createAncestorProjects(n,i){if(n.isAttached(i))for(;;){if(!i.isInitialLoadPending()&&(!i.getCompilerOptions().composite||i.getCompilerOptions().disableSolutionSearching))return;const c=this.getConfigFileNameForFile({fileName:i.getConfigFilePath(),path:n.path,configFileInfo:!0});if(!c)return;const u=this.findConfiguredProjectByProjectName(c)||this.createConfiguredProjectWithDelayLoad(c,`Creating project possibly referencing default composite project ${i.getProjectName()} of open file ${n.fileName}`);u.isInitialLoadPending()&&u.setPotentialProjectReference(i.canonicalConfigFilePath),i=u}}loadAncestorProjectTree(n){n=n||aX(this.configuredProjects,(c,u)=>u.isInitialLoadPending()?void 0:[c,!0]);const i=new Set;for(const c of oc(this.configuredProjects.values()))an(c,u=>n.has(u))&&Qa(c),this.ensureProjectChildren(c,n,i)}ensureProjectChildren(n,i,c){var u;if(!m2(c,n.canonicalConfigFilePath)||n.getCompilerOptions().disableReferencedProjectLoad)return;const d=(u=n.getCurrentProgram())==null?void 0:u.getResolvedProjectReferences();if(d)for(const h of d){if(!h)continue;const S=k6(h.references,k=>i.has(k.sourceFile.path)?k:void 0);if(!S)continue;const E=te(h.sourceFile.fileName),P=n.projectService.findConfiguredProjectByProjectName(E)||n.projectService.createAndLoadConfiguredProject(E,`Creating project referenced by : ${n.projectName} as it references project ${S.sourceFile.fileName}`);Qa(P),this.ensureProjectChildren(P,i,c)}}cleanupAfterOpeningFile(n){this.removeOrphanConfiguredProjects(n);for(const i of this.inferredProjects.slice())i.isOrphan()&&this.removeProject(i);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(n,i,c,u,d){const h=this.getOrCreateOpenScriptInfo(n,i,c,u,d),{retainProjects:S,...E}=this.assignProjectToOpenedScriptInfo(h);return this.cleanupAfterOpeningFile(S),this.telemetryOnOpenFile(h),this.printProjects(),E}removeOrphanConfiguredProjects(n){const i=new Map(this.configuredProjects),c=h=>{!h.isOrphan()&&h.originalConfiguredProjects&&h.originalConfiguredProjects.forEach((S,E)=>{const P=this.getConfiguredProjectByCanonicalConfigFilePath(E);return P&&d(P)})};n&&(ls(n)?n.forEach(d):d(n)),this.inferredProjects.forEach(c),this.externalProjects.forEach(c),this.configuredProjects.forEach(h=>{h.hasOpenRef()?d(h):i.has(h.canonicalConfigFilePath)&&mi(h,S=>u(S)&&d(h))}),i.forEach(h=>this.removeProject(h));function u(h){return h.hasOpenRef()||!i.has(h.canonicalConfigFilePath)}function d(h){i.delete(h.canonicalConfigFilePath)&&(c(h),mi(h,d))}}removeOrphanScriptInfos(){const n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(i=>{if(!i.isScriptOpen()&&i.isOrphan()&&!i.isContainedByBackgroundProject()){if(!i.sourceMapFilePath)return;let c;if(As(i.sourceMapFilePath)){const u=this.getScriptInfoForPath(i.sourceMapFilePath);c=u&&u.sourceInfos}else c=i.sourceMapFilePath.sourceInfos;if(!c||!gA(c,u=>{const d=this.getScriptInfoForPath(u);return!!d&&(d.isScriptOpen()||!d.isOrphan())}))return}if(n.delete(i.path),i.sourceMapFilePath){let c;if(As(i.sourceMapFilePath)){n.delete(i.sourceMapFilePath);const u=this.getScriptInfoForPath(i.sourceMapFilePath);c=u&&u.sourceInfos}else c=i.sourceMapFilePath.sourceInfos;c&&c.forEach((u,d)=>n.delete(d))}}),n.forEach(i=>{this.stopWatchingScriptInfo(i),this.deleteScriptInfo(i),i.closeSourceMapFileWatcher()})}telemetryOnOpenFile(n){if(this.serverMode!==0||!this.eventHandler||!n.isJavaScript()||!y0(this.allJsFilesForOpenFileTelemetry,n.path))return;const i=this.ensureDefaultProjectForFile(n);if(!i.languageServiceEnabled)return;const c=i.getSourceFile(n.path),u=!!c&&!!c.checkJsDirective;this.eventHandler({eventName:jg,data:{info:{checkJs:u}}})}closeClientFile(n,i){const c=this.getScriptInfoForNormalizedPath(te(n)),u=c?this.closeOpenFile(c,i):!1;return i||this.printProjects(),u}collectChanges(n,i,c,u){for(const d of i){const h=lr(n,S=>S.projectName===d.getProjectName());u.push(d.getChangesSinceVersion(h&&h.version,c))}}synchronizeProjectList(n,i){const c=[];return this.collectChanges(n,this.externalProjects,i,c),this.collectChanges(n,this.configuredProjects.values(),i,c),this.collectChanges(n,this.inferredProjects,i,c),c}applyChangesInOpenFiles(n,i,c){let u,d=!1;if(n)for(const S of n){const E=this.getOrCreateOpenScriptInfo(te(S.fileName),S.content,Ui(S.scriptKind),S.hasMixedContent,S.projectRootPath?te(S.projectRootPath):void 0);(u||(u=[])).push(E)}if(i)for(const S of i){const E=this.getScriptInfo(S.fileName);re.assert(!!E),this.applyChangesToFile(E,S.changes)}if(c)for(const S of c)d=this.closeClientFile(S,!0)||d;let h;u&&(h=ea(u,S=>this.assignProjectToOpenedScriptInfo(S).retainProjects)),d&&this.assignOrphanScriptInfosToInferredProject(),u?(this.cleanupAfterOpeningFile(h),u.forEach(S=>this.telemetryOnOpenFile(S)),this.printProjects()):Nt(c)&&this.printProjects()}applyChangesToFile(n,i){for(const c of i)n.editContent(c.span.start,c.span.start+c.span.length,c.newText)}closeConfiguredProjectReferencedFromExternalProject(n){const i=this.findConfiguredProjectByProjectName(n);if(i&&(i.deleteExternalProjectReference(),!i.hasOpenRef())){this.removeProject(i);return}}closeExternalProject(n){const i=te(n),c=this.externalProjectToConfiguredProjectMap.get(i);if(c){for(const u of c)this.closeConfiguredProjectReferencedFromExternalProject(u);this.externalProjectToConfiguredProjectMap.delete(i)}else{const u=this.findExternalProjectByProjectName(n);u&&this.removeProject(u)}}openExternalProjects(n){const i=QT(this.externalProjects,c=>c.getProjectName(),c=>!0);gA(this.externalProjectToConfiguredProjectMap,c=>{i.set(c,!0)});for(const c of n)this.openExternalProject(c),i.delete(c.projectFileName);gA(i,c=>{this.closeExternalProject(c)})}static escapeFilenameForRegex(n){return n.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fx}applySafeList(n){const{rootFiles:i}=n,c=n.typeAcquisition;if(re.assert(!!c,"proj.typeAcquisition should be set by now"),c.enable===!1||c.disableFilenameBasedTypeAcquisition)return[];const u=c.include||(c.include=[]),d=[],h=i.map(k=>$1(k.fileName)),S=[];for(const k of Object.keys(this.safelist)){const F=this.safelist[k];for(const $ of h)if(F.match.test($)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${$}'`),F.types)for(const J of F.types)u.includes(J)||u.push(J);if(F.exclude)for(const J of F.exclude){const X=$.replace(F.match,(...ie)=>J.map(ae=>typeof ae=="number"?As(ie[ae])?E1t.escapeFilenameForRegex(ie[ae]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):ae).join(""));d.includes(X)||d.push(X)}else{const J=E1t.escapeFilenameForRegex($);d.includes(J)||d.push(J)}}}const E=d.map(k=>new RegExp(k,"i")),P=[];for(let k=0;kF.test(h[k])))S.push(h[k]);else{let F=!1;if(c.enable){const $=Jg(Q0(h[k]));if(mm($,"js")){const J=wg($),X=Ub(J),ie=this.legacySafelist.get(X);ie!==void 0&&(this.logger.info(`Excluded '${h[k]}' because it matched ${X} from the legacy safelist`),S.push(h[k]),F=!0,u.includes(ie)||u.push(ie))}}F||(/^.+[.-]min\.js$/.test(h[k])?S.push(h[k]):P.push(n.rootFiles[k]))}return n.rootFiles=P,S}openExternalProject(n){n.typeAcquisition=n.typeAcquisition||{},n.typeAcquisition.include=n.typeAcquisition.include||[],n.typeAcquisition.exclude=n.typeAcquisition.exclude||[],n.typeAcquisition.enable===void 0&&(n.typeAcquisition.enable=Xu(n.rootFiles.map(S=>S.fileName)));const i=this.applySafeList(n);let c;const u=[];for(const S of n.rootFiles){const E=te(S.fileName);it(E)?this.serverMode===0&&this.host.fileExists(E)&&(c||(c=[])).push(E):u.push(S)}c&&c.sort();const d=this.findExternalProjectByProjectName(n.projectFileName);let h;if(d){if(d.excludedFiles=i,!c){const S=Qr(n.options),E=co(n.options,d.getCurrentDirectory()),P=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.projectFileName,S,n.rootFiles,Mg);P?d.disableLanguageService(P):d.enableLanguageService(),d.setProjectErrors(E==null?void 0:E.errors),this.updateRootAndOptionsOfNonInferredProject(d,n.rootFiles,Mg,S,n.typeAcquisition,n.options.compileOnSave,E==null?void 0:E.watchOptions),d.updateGraph();return}this.closeExternalProject(n.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(n.projectFileName))if(!c)this.closeExternalProject(n.projectFileName);else{const S=this.externalProjectToConfiguredProjectMap.get(n.projectFileName);let E=0,P=0;for(;Ek||((h||(h=[])).push(F),P++),E++)}for(let k=P;kthis.logger.info(h));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let d=this.pendingPluginEnablements.get(n);d||this.pendingPluginEnablements.set(n,d=[]),d.push(u);return}this.endEnablePlugin(n,Ir.importServicePluginSync(i,c,this.host,u=>this.logger.info(u)))}endEnablePlugin(n,{pluginConfigEntry:i,resolvedModule:c,errorLogs:u}){var d;if(c){const h=(d=this.currentPluginConfigOverrides)==null?void 0:d.get(i.name);if(h){const S=i.name;i=h,i.name=S}n.enableProxy(c,i)}else Ot(u,h=>this.logger.info(h)),this.logger.info(`Couldn't find ${i.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 n=oc(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(n),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(n){re.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Vn(n,([i,c])=>this.enableRequestedPluginsForProjectAsync(i,c))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(n,i){const c=await Promise.all(i);if(!n.isClosed()){for(const u of c)this.endEnablePlugin(n,u);this.delayUpdateProjectGraph(n)}}configurePlugin(n){this.forEachEnabledProject(i=>i.onPluginConfigurationChanged(n.pluginName,n.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(n.pluginName,n.configuration)}getPackageJsonsVisibleToFile(n,i){const c=this.packageJsonCache,u=i&&this.toPath(i),d=this.toPath(n),h=[],S=E=>{switch(c.directoryHasPackageJson(E)){case 3:return c.searchDirectoryAndAncestors(E),S(E);case-1:const P=vl(E,"package.json");this.watchPackageJsonFile(P);const k=c.getInDirectory(E);k&&h.push(k)}if(u&&u===E)return!0};return jC(ws(d),S),h}getNearestAncestorDirectoryWithPackageJson(n){return jC(n,i=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(i))){case-1:return i;case 0:return;case 3:return this.host.fileExists(vl(i,"package.json"))?i:void 0}})}watchPackageJsonFile(n){const i=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);i.has(n)||(this.invalidateProjectPackageJson(n),i.set(n,this.watchFactory.watchFile(n,(c,u)=>{const d=this.toPath(c);switch(u){case 0:return re.fail();case 1:this.packageJsonCache.addOrUpdate(d),this.invalidateProjectPackageJson(d);break;case 2:this.packageJsonCache.delete(d),this.invalidateProjectPackageJson(d),i.get(d).close(),i.delete(d)}},250,this.hostConfiguration.watchOptions,r0.PackageJson)))}onAddPackageJson(n){this.packageJsonCache.addOrUpdate(n),this.watchPackageJsonFile(n)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(n){this.configuredProjects.forEach(i),this.inferredProjects.forEach(i),this.externalProjects.forEach(i);function i(c){n?c.onPackageJsonChange(n):c.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=z_())}},po.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,hy=po}});function GT(e){let n,i,c;const u={get(E,P,k,F){if(!(!i||c!==h(E,k,F)))return i.get(P)},set(E,P,k,F,$,J){if(d(E,k,F).set(P,S($,J,!1)),J){for(const X of $)if(X.isInNodeModules){const ie=X.path.substring(0,X.path.indexOf(IP)+IP.length-1);n!=null&&n.has(ie)||(n||(n=new Map)).set(ie,e.watchNodeModulesForPackageJsonChanges(ie))}}},setModulePaths(E,P,k,F,$){const J=d(E,k,F),X=J.get(P);X?X.modulePaths=$:J.set(P,S($,void 0,void 0))},setBlockedByPackageJsonDependencies(E,P,k,F,$){const J=d(E,k,F),X=J.get(P);X?X.isBlockedByPackageJsonDependencies=$:J.set(P,S(void 0,void 0,$))},clear(){n==null||n.forEach(E=>E.close()),i==null||i.clear(),n==null||n.clear(),c=void 0},count(){return i?i.size:0}};return re.isDebugging&&Object.defineProperty(u,"__cache",{get:()=>i}),u;function d(E,P,k){const F=h(E,P,k);return i&&c!==F&&u.clear(),c=F,i||(i=new Map)}function h(E,P,k){return`${E},${P.importModuleSpecifierEnding},${P.importModuleSpecifierPreference},${k.overrideImportMode}`}function S(E,P,k){return{modulePaths:E,moduleSpecifiers:P,isBlockedByPackageJsonDependencies:k}}}var vE=G({"src/server/moduleSpecifierCache.ts"(){l_()}});function oh(e){const n=new Map,i=new Map;return{addOrUpdate:c,forEach:n.forEach.bind(n),get:n.get.bind(n),delete:d=>{n.delete(d),i.set(ws(d),!0)},getInDirectory:d=>n.get(vl(d,"package.json"))||void 0,directoryHasPackageJson:u,searchDirectoryAndAncestors:d=>{jC(d,h=>{if(u(h)!==3)return!0;const S=e.toPath(vl(h,"package.json"));Lj(e,S)?c(S):i.set(h,!0)})}};function c(d){const h=re.checkDefined(ihe(d,e.host));n.set(d,h),i.delete(ws(d))}function u(d){return n.has(vl(d,"package.json"))?-1:i.has(d)?0:3}}var yy=G({"src/server/packageJsonCache.ts"(){l_()}});function _e(e){const n=e[0],i=e[1];return(1e9*n+i)/1e6}function vn(e,n){if((sl(e)||er(e))&&e.isJsOnlyProject()){const i=e.getScriptInfoForNormalizedPath(n);return i&&!i.isJavaScript()}return!1}function Qn(e){return gv(e)||!!e.emitDecoratorMetadata}function hi(e,n,i){const c=n.getScriptInfoForNormalizedPath(e);return{start:c.positionToLineOffset(i.start),end:c.positionToLineOffset(i.start+i.length),text:D2(i.messageText,` +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!c&&!k&&!(S||this.host).fileExists(n))return;P=new ro(this.host,n,d,!!h,E,this.filenameToScriptInfoVersion.get(E)),this.filenameToScriptInfo.set(P.path,P),this.filenameToScriptInfoVersion.delete(P.path),c?!nE(n)&&(!k||this.currentDirectory!==i)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(n),P):this.watchClosedScriptInfo(P)}return c&&(this.stopWatchingScriptInfo(P),P.open(u),h&&P.registerFileUpdate()),P}getScriptInfoForNormalizedPath(n){return!nE(n)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n))||this.getScriptInfoForPath(oe(n,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(n){return this.filenameToScriptInfo.get(n)}getDocumentPositionMapper(n,i,c){const u=this.getOrCreateScriptInfoNotOpenedByClient(i,n.currentDirectory,this.host);if(!u){c&&n.addGeneratedFileWatch(i,c);return}if(u.getSnapshot(),As(u.sourceMapFilePath)){const k=this.getScriptInfoForPath(u.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(c,n,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;u.sourceMapFilePath=void 0}else if(u.sourceMapFilePath){u.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(c,n,u.sourceMapFilePath.sourceInfos);return}else if(u.sourceMapFilePath!==void 0)return;let d,h,S=(k,F)=>{const $=this.getOrCreateScriptInfoNotOpenedByClient(k,n.currentDirectory,this.host);if(!$){h=F;return}d=$;const J=$.getSnapshot();return $.documentPositionMapper!==void 0?$.documentPositionMapper:Dj(J)};const E=n.projectName,P=sCe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,E,u)},u.fileName,u.textStorage.getLineInfo(),S);return S=void 0,d?(u.sourceMapFilePath=d.path,d.declarationInfoPath=u.path,d.documentPositionMapper=P||!1,d.sourceInfos=this.addSourceInfoToSourceMap(c,n,d.sourceInfos)):h?u.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?h:vf(h,n.currentDirectory),u.path),sourceInfos:this.addSourceInfoToSourceMap(c,n)}:u.sourceMapFilePath=!1,P}addSourceInfoToSourceMap(n,i,c){if(n){const u=this.getOrCreateScriptInfoNotOpenedByClient(n,i.currentDirectory,i.directoryStructureHost);(c||(c=new Set)).add(u.path)}return c}addMissingSourceMapFile(n,i){return this.watchFactory.watchFile(n,()=>{const u=this.getScriptInfoForPath(i);u&&u.sourceMapFilePath&&!As(u.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(u.containingProjects,!0),this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos),u.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,r0.MissingSourceMapFile)}getSourceFileLike(n,i,c){const u=i.projectName?i:this.findProject(i);if(u){const h=u.toPath(n),S=u.getSourceFile(h);if(S&&S.resolvedPath===h)return S}const d=this.getOrCreateScriptInfoNotOpenedByClient(n,(u||this).currentDirectory,u?u.directoryStructureHost:this.host);if(d){if(c&&As(c.sourceMapFilePath)&&d!==c){const h=this.getScriptInfoForPath(c.sourceMapFilePath);h&&(h.sourceInfos||(h.sourceInfos=new Set)).add(d.path)}return d.cacheSourceFile?d.cacheSourceFile.sourceFile:(d.sourceFileLike||(d.sourceFileLike={get text(){return re.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:h=>{const S=d.positionToLineOffset(h);return{line:S.line-1,character:S.offset-1}},getPositionOfLineAndCharacter:(h,S,E)=>d.lineOffsetToPosition(h+1,S+1,E)}),d.sourceFileLike)}}setPerformanceEventHandler(n){this.performanceEventHandler=n}setHostConfiguration(n){var i;if(n.file){const c=this.getScriptInfoForNormalizedPath(te(n.file));c&&(c.setOptions(oi(n.formatOptions),n.preferences),this.logger.info(`Host configuration update for file ${n.file}`))}else{if(n.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=n.hostInfo,this.logger.info(`Host information ${n.hostInfo}`)),n.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...oi(n.formatOptions)},this.logger.info("Format host information updated")),n.preferences){const{lazyConfiguredProjectsFromExternalProject:c,includePackageJsonAutoImports:u}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...n.preferences},c&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(d=>{d.hasExternalProjectRef()&&d.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(d.getProjectName())&&d.updateGraph()}),u!==n.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}n.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=n.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),n.watchOptions&&(this.hostConfiguration.watchOptions=(i=co(n.watchOptions))==null?void 0:i.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(n){return this.getWatchOptionsFromProjectWatchOptions(n.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(n){return n&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...n}:n||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(n=>{this.openFiles.has(n.path)||n.fileWatcher&&this.onSourceFileChanged(n,this.host.fileExists(n.fileName)?1:2)}),this.pendingProjectUpdates.forEach((n,i)=>{this.throttledOperations.cancel(i),this.pendingProjectUpdates.delete(i)}),this.throttledOperations.cancel(Tv),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(n=>{n.config&&(n.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,xT,"User requested reload projects"),this.externalProjects.forEach(n=>{this.clearSemanticCache(n),n.updateGraph()}),this.inferredProjects.forEach(n=>this.clearSemanticCache(n)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(n,i,c,u,d){const h=new Map,S=E=>{h.has(E.canonicalConfigFilePath)||(h.set(E.canonicalConfigFilePath,!0),this.reloadConfiguredProject(E,d,!1,i))};n==null||n.forEach((E,P)=>{if(this.configFileForOpenFiles.delete(P),!u(E))return;const k=this.getScriptInfoForPath(P);re.assert(k.isScriptOpen());const F=this.getConfigFileNameForFile(k);if(F){const $=this.findConfiguredProjectByProjectName(F)||this.createConfiguredProject(F);h.has($.canonicalConfigFilePath)||(h.set($.canonicalConfigFilePath,!0),c?($.pendingUpdateLevel=2,$.pendingUpdateReason=d,i&&this.clearSemanticCache($),this.delayUpdateProjectGraph($)):(this.reloadConfiguredProject($,d,!1,i),Ca($,k)||Zt($,k.path,X=>(S(X),Ca(X,k)),1)&&Zt($,void 0,S,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(n){re.assert(n.containingProjects.length>0);const i=n.containingProjects[0];!i.isOrphan()&&sl(i)&&i.isRoot(n)&&Ot(n.containingProjects,c=>c!==i&&!c.isOrphan())&&i.removeFile(n,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((n,i)=>{const c=this.getScriptInfoForPath(i);c.isOrphan()?this.assignOrphanScriptInfoToInferredProject(c,n):this.removeRootOfInferredProjectIfNowPartOfOtherProject(c)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Qa),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(n,i,c,u){return this.openClientFileWithNormalizedPath(te(n),i,c,!1,u?te(u):void 0)}getOriginalLocationEnsuringConfiguredProject(n,i){const c=n.isSourceOfProjectReferenceRedirect(i.fileName),u=c?i:n.getSourceMapper().tryGetSourcePosition(i);if(!u)return;const{fileName:d}=u,h=this.getScriptInfo(d);if(!h&&!this.host.fileExists(d))return;const S={fileName:te(d),path:this.toPath(d)},E=this.getConfigFileNameForFile(S);if(!E)return;let P=this.findConfiguredProjectByProjectName(E);if(!P){if(n.getCompilerOptions().disableReferencedProjectLoad)return c?i:h!=null&&h.containingProjects.length?u:i;P=this.createAndLoadConfiguredProject(E,`Creating project for original file: ${S.fileName}${i!==u?" for location: "+i.fileName:""}`)}Qa(P);const k=J=>{const X=this.getScriptInfo(d);return X&&Ca(J,X)};if(P.isSolution()||!k(P)){if(P=Zt(P,d,J=>(Qa(J),k(J)?J:void 0),2,`Creating project referenced in solution ${P.projectName} to find possible configured project for original file: ${S.fileName}${i!==u?" for location: "+i.fileName:""}`),!P)return;if(P===n)return u}$(P);const F=this.getScriptInfo(d);if(!F||!F.containingProjects.length)return;return F.containingProjects.forEach(J=>{vc(J)&&$(J)}),u;function $(J){n.originalConfiguredProjects||(n.originalConfiguredProjects=new Set),n.originalConfiguredProjects.add(J.canonicalConfigFilePath)}}fileExists(n){return!!this.getScriptInfoForNormalizedPath(n)||this.host.fileExists(n)}findExternalProjectContainingOpenScriptInfo(n){return lr(this.externalProjects,i=>(Qa(i),i.containsScriptInfo(n)))}getOrCreateOpenScriptInfo(n,i,c,u,d){const h=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(n,d?this.getNormalizedAbsolutePath(d):this.currentDirectory,i,c,u);return this.openFiles.set(h.path,d),h}assignProjectToOpenedScriptInfo(n){let i,c,u=this.findExternalProjectContainingOpenScriptInfo(n),d,h,S=!1;return!u&&this.serverMode===0&&(i=this.getConfigFileNameForFile(n),i&&(u=this.findConfiguredProjectByProjectName(i),u?Qa(u):(u=this.createLoadAndUpdateConfiguredProject(i,`Creating possible configured project for ${n.fileName} to open`),S=!0),h=u.containsScriptInfo(n)?u:void 0,d=u,Ca(u,n)||Zt(u,n.path,E=>{if(Qa(E),ls(d)?d.push(E):d=[u,E],Ca(E,n))return h=E,E;!h&&E.containsScriptInfo(n)&&(h=E)},2,`Creating project referenced in solution ${u.projectName} to find possible configured project for ${n.fileName} to open`),h?(i=h.getConfigFilePath(),(h!==u||S)&&(c=h.getAllProjectErrors(),this.sendConfigFileDiagEvent(h,n.fileName))):i=void 0,this.createAncestorProjects(n,u))),n.containingProjects.forEach(Qa),n.isOrphan()&&(ls(d)?d.forEach(E=>this.sendConfigFileDiagEvent(E,n.fileName)):d&&this.sendConfigFileDiagEvent(d,n.fileName),re.assert(this.openFiles.has(n.path)),this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),re.assert(!n.isOrphan()),{configFileName:i,configFileErrors:c,retainProjects:d}}createAncestorProjects(n,i){if(n.isAttached(i))for(;;){if(!i.isInitialLoadPending()&&(!i.getCompilerOptions().composite||i.getCompilerOptions().disableSolutionSearching))return;const c=this.getConfigFileNameForFile({fileName:i.getConfigFilePath(),path:n.path,configFileInfo:!0});if(!c)return;const u=this.findConfiguredProjectByProjectName(c)||this.createConfiguredProjectWithDelayLoad(c,`Creating project possibly referencing default composite project ${i.getProjectName()} of open file ${n.fileName}`);u.isInitialLoadPending()&&u.setPotentialProjectReference(i.canonicalConfigFilePath),i=u}}loadAncestorProjectTree(n){n=n||aX(this.configuredProjects,(c,u)=>u.isInitialLoadPending()?void 0:[c,!0]);const i=new Set;for(const c of oc(this.configuredProjects.values()))an(c,u=>n.has(u))&&Qa(c),this.ensureProjectChildren(c,n,i)}ensureProjectChildren(n,i,c){var u;if(!m2(c,n.canonicalConfigFilePath)||n.getCompilerOptions().disableReferencedProjectLoad)return;const d=(u=n.getCurrentProgram())==null?void 0:u.getResolvedProjectReferences();if(d)for(const h of d){if(!h)continue;const S=k6(h.references,k=>i.has(k.sourceFile.path)?k:void 0);if(!S)continue;const E=te(h.sourceFile.fileName),P=n.projectService.findConfiguredProjectByProjectName(E)||n.projectService.createAndLoadConfiguredProject(E,`Creating project referenced by : ${n.projectName} as it references project ${S.sourceFile.fileName}`);Qa(P),this.ensureProjectChildren(P,i,c)}}cleanupAfterOpeningFile(n){this.removeOrphanConfiguredProjects(n);for(const i of this.inferredProjects.slice())i.isOrphan()&&this.removeProject(i);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(n,i,c,u,d){const h=this.getOrCreateOpenScriptInfo(n,i,c,u,d),{retainProjects:S,...E}=this.assignProjectToOpenedScriptInfo(h);return this.cleanupAfterOpeningFile(S),this.telemetryOnOpenFile(h),this.printProjects(),E}removeOrphanConfiguredProjects(n){const i=new Map(this.configuredProjects),c=h=>{!h.isOrphan()&&h.originalConfiguredProjects&&h.originalConfiguredProjects.forEach((S,E)=>{const P=this.getConfiguredProjectByCanonicalConfigFilePath(E);return P&&d(P)})};n&&(ls(n)?n.forEach(d):d(n)),this.inferredProjects.forEach(c),this.externalProjects.forEach(c),this.configuredProjects.forEach(h=>{h.hasOpenRef()?d(h):i.has(h.canonicalConfigFilePath)&&mi(h,S=>u(S)&&d(h))}),i.forEach(h=>this.removeProject(h));function u(h){return h.hasOpenRef()||!i.has(h.canonicalConfigFilePath)}function d(h){i.delete(h.canonicalConfigFilePath)&&(c(h),mi(h,d))}}removeOrphanScriptInfos(){const n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(i=>{if(!i.isScriptOpen()&&i.isOrphan()&&!i.isContainedByBackgroundProject()){if(!i.sourceMapFilePath)return;let c;if(As(i.sourceMapFilePath)){const u=this.getScriptInfoForPath(i.sourceMapFilePath);c=u&&u.sourceInfos}else c=i.sourceMapFilePath.sourceInfos;if(!c||!gA(c,u=>{const d=this.getScriptInfoForPath(u);return!!d&&(d.isScriptOpen()||!d.isOrphan())}))return}if(n.delete(i.path),i.sourceMapFilePath){let c;if(As(i.sourceMapFilePath)){n.delete(i.sourceMapFilePath);const u=this.getScriptInfoForPath(i.sourceMapFilePath);c=u&&u.sourceInfos}else c=i.sourceMapFilePath.sourceInfos;c&&c.forEach((u,d)=>n.delete(d))}}),n.forEach(i=>{this.stopWatchingScriptInfo(i),this.deleteScriptInfo(i),i.closeSourceMapFileWatcher()})}telemetryOnOpenFile(n){if(this.serverMode!==0||!this.eventHandler||!n.isJavaScript()||!y0(this.allJsFilesForOpenFileTelemetry,n.path))return;const i=this.ensureDefaultProjectForFile(n);if(!i.languageServiceEnabled)return;const c=i.getSourceFile(n.path),u=!!c&&!!c.checkJsDirective;this.eventHandler({eventName:jg,data:{info:{checkJs:u}}})}closeClientFile(n,i){const c=this.getScriptInfoForNormalizedPath(te(n)),u=c?this.closeOpenFile(c,i):!1;return i||this.printProjects(),u}collectChanges(n,i,c,u){for(const d of i){const h=lr(n,S=>S.projectName===d.getProjectName());u.push(d.getChangesSinceVersion(h&&h.version,c))}}synchronizeProjectList(n,i){const c=[];return this.collectChanges(n,this.externalProjects,i,c),this.collectChanges(n,this.configuredProjects.values(),i,c),this.collectChanges(n,this.inferredProjects,i,c),c}applyChangesInOpenFiles(n,i,c){let u,d=!1;if(n)for(const S of n){const E=this.getOrCreateOpenScriptInfo(te(S.fileName),S.content,Ui(S.scriptKind),S.hasMixedContent,S.projectRootPath?te(S.projectRootPath):void 0);(u||(u=[])).push(E)}if(i)for(const S of i){const E=this.getScriptInfo(S.fileName);re.assert(!!E),this.applyChangesToFile(E,S.changes)}if(c)for(const S of c)d=this.closeClientFile(S,!0)||d;let h;u&&(h=ea(u,S=>this.assignProjectToOpenedScriptInfo(S).retainProjects)),d&&this.assignOrphanScriptInfosToInferredProject(),u?(this.cleanupAfterOpeningFile(h),u.forEach(S=>this.telemetryOnOpenFile(S)),this.printProjects()):Nt(c)&&this.printProjects()}applyChangesToFile(n,i){for(const c of i)n.editContent(c.span.start,c.span.start+c.span.length,c.newText)}closeConfiguredProjectReferencedFromExternalProject(n){const i=this.findConfiguredProjectByProjectName(n);if(i&&(i.deleteExternalProjectReference(),!i.hasOpenRef())){this.removeProject(i);return}}closeExternalProject(n){const i=te(n),c=this.externalProjectToConfiguredProjectMap.get(i);if(c){for(const u of c)this.closeConfiguredProjectReferencedFromExternalProject(u);this.externalProjectToConfiguredProjectMap.delete(i)}else{const u=this.findExternalProjectByProjectName(n);u&&this.removeProject(u)}}openExternalProjects(n){const i=QT(this.externalProjects,c=>c.getProjectName(),c=>!0);gA(this.externalProjectToConfiguredProjectMap,c=>{i.set(c,!0)});for(const c of n)this.openExternalProject(c),i.delete(c.projectFileName);gA(i,c=>{this.closeExternalProject(c)})}static escapeFilenameForRegex(n){return n.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fx}applySafeList(n){const{rootFiles:i}=n,c=n.typeAcquisition;if(re.assert(!!c,"proj.typeAcquisition should be set by now"),c.enable===!1||c.disableFilenameBasedTypeAcquisition)return[];const u=c.include||(c.include=[]),d=[],h=i.map(k=>$1(k.fileName)),S=[];for(const k of Object.keys(this.safelist)){const F=this.safelist[k];for(const $ of h)if(F.match.test($)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${$}'`),F.types)for(const J of F.types)u.includes(J)||u.push(J);if(F.exclude)for(const J of F.exclude){const X=$.replace(F.match,(...ie)=>J.map(ae=>typeof ae=="number"?As(ie[ae])?S1t.escapeFilenameForRegex(ie[ae]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):ae).join(""));d.includes(X)||d.push(X)}else{const J=S1t.escapeFilenameForRegex($);d.includes(J)||d.push(J)}}}const E=d.map(k=>new RegExp(k,"i")),P=[];for(let k=0;kF.test(h[k])))S.push(h[k]);else{let F=!1;if(c.enable){const $=Jg(Q0(h[k]));if(mm($,"js")){const J=wg($),X=Ub(J),ie=this.legacySafelist.get(X);ie!==void 0&&(this.logger.info(`Excluded '${h[k]}' because it matched ${X} from the legacy safelist`),S.push(h[k]),F=!0,u.includes(ie)||u.push(ie))}}F||(/^.+[.-]min\.js$/.test(h[k])?S.push(h[k]):P.push(n.rootFiles[k]))}return n.rootFiles=P,S}openExternalProject(n){n.typeAcquisition=n.typeAcquisition||{},n.typeAcquisition.include=n.typeAcquisition.include||[],n.typeAcquisition.exclude=n.typeAcquisition.exclude||[],n.typeAcquisition.enable===void 0&&(n.typeAcquisition.enable=Xu(n.rootFiles.map(S=>S.fileName)));const i=this.applySafeList(n);let c;const u=[];for(const S of n.rootFiles){const E=te(S.fileName);it(E)?this.serverMode===0&&this.host.fileExists(E)&&(c||(c=[])).push(E):u.push(S)}c&&c.sort();const d=this.findExternalProjectByProjectName(n.projectFileName);let h;if(d){if(d.excludedFiles=i,!c){const S=Qr(n.options),E=co(n.options,d.getCurrentDirectory()),P=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.projectFileName,S,n.rootFiles,Mg);P?d.disableLanguageService(P):d.enableLanguageService(),d.setProjectErrors(E==null?void 0:E.errors),this.updateRootAndOptionsOfNonInferredProject(d,n.rootFiles,Mg,S,n.typeAcquisition,n.options.compileOnSave,E==null?void 0:E.watchOptions),d.updateGraph();return}this.closeExternalProject(n.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(n.projectFileName))if(!c)this.closeExternalProject(n.projectFileName);else{const S=this.externalProjectToConfiguredProjectMap.get(n.projectFileName);let E=0,P=0;for(;Ek||((h||(h=[])).push(F),P++),E++)}for(let k=P;kthis.logger.info(h));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let d=this.pendingPluginEnablements.get(n);d||this.pendingPluginEnablements.set(n,d=[]),d.push(u);return}this.endEnablePlugin(n,Ir.importServicePluginSync(i,c,this.host,u=>this.logger.info(u)))}endEnablePlugin(n,{pluginConfigEntry:i,resolvedModule:c,errorLogs:u}){var d;if(c){const h=(d=this.currentPluginConfigOverrides)==null?void 0:d.get(i.name);if(h){const S=i.name;i=h,i.name=S}n.enableProxy(c,i)}else Ot(u,h=>this.logger.info(h)),this.logger.info(`Couldn't find ${i.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 n=oc(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(n),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(n){re.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Vn(n,([i,c])=>this.enableRequestedPluginsForProjectAsync(i,c))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(n,i){const c=await Promise.all(i);if(!n.isClosed()){for(const u of c)this.endEnablePlugin(n,u);this.delayUpdateProjectGraph(n)}}configurePlugin(n){this.forEachEnabledProject(i=>i.onPluginConfigurationChanged(n.pluginName,n.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(n.pluginName,n.configuration)}getPackageJsonsVisibleToFile(n,i){const c=this.packageJsonCache,u=i&&this.toPath(i),d=this.toPath(n),h=[],S=E=>{switch(c.directoryHasPackageJson(E)){case 3:return c.searchDirectoryAndAncestors(E),S(E);case-1:const P=vl(E,"package.json");this.watchPackageJsonFile(P);const k=c.getInDirectory(E);k&&h.push(k)}if(u&&u===E)return!0};return jC(ws(d),S),h}getNearestAncestorDirectoryWithPackageJson(n){return jC(n,i=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(i))){case-1:return i;case 0:return;case 3:return this.host.fileExists(vl(i,"package.json"))?i:void 0}})}watchPackageJsonFile(n){const i=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);i.has(n)||(this.invalidateProjectPackageJson(n),i.set(n,this.watchFactory.watchFile(n,(c,u)=>{const d=this.toPath(c);switch(u){case 0:return re.fail();case 1:this.packageJsonCache.addOrUpdate(d),this.invalidateProjectPackageJson(d);break;case 2:this.packageJsonCache.delete(d),this.invalidateProjectPackageJson(d),i.get(d).close(),i.delete(d)}},250,this.hostConfiguration.watchOptions,r0.PackageJson)))}onAddPackageJson(n){this.packageJsonCache.addOrUpdate(n),this.watchPackageJsonFile(n)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(n){this.configuredProjects.forEach(i),this.inferredProjects.forEach(i),this.externalProjects.forEach(i);function i(c){n?c.onPackageJsonChange(n):c.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=z_())}},po.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,gy=po}});function GT(e){let n,i,c;const u={get(E,P,k,F){if(!(!i||c!==h(E,k,F)))return i.get(P)},set(E,P,k,F,$,J){if(d(E,k,F).set(P,S($,J,!1)),J){for(const X of $)if(X.isInNodeModules){const ie=X.path.substring(0,X.path.indexOf(IP)+IP.length-1);n!=null&&n.has(ie)||(n||(n=new Map)).set(ie,e.watchNodeModulesForPackageJsonChanges(ie))}}},setModulePaths(E,P,k,F,$){const J=d(E,k,F),X=J.get(P);X?X.modulePaths=$:J.set(P,S($,void 0,void 0))},setBlockedByPackageJsonDependencies(E,P,k,F,$){const J=d(E,k,F),X=J.get(P);X?X.isBlockedByPackageJsonDependencies=$:J.set(P,S(void 0,void 0,$))},clear(){n==null||n.forEach(E=>E.close()),i==null||i.clear(),n==null||n.clear(),c=void 0},count(){return i?i.size:0}};return re.isDebugging&&Object.defineProperty(u,"__cache",{get:()=>i}),u;function d(E,P,k){const F=h(E,P,k);return i&&c!==F&&u.clear(),c=F,i||(i=new Map)}function h(E,P,k){return`${E},${P.importModuleSpecifierEnding},${P.importModuleSpecifierPreference},${k.overrideImportMode}`}function S(E,P,k){return{modulePaths:E,moduleSpecifiers:P,isBlockedByPackageJsonDependencies:k}}}var vE=G({"src/server/moduleSpecifierCache.ts"(){l_()}});function oh(e){const n=new Map,i=new Map;return{addOrUpdate:c,forEach:n.forEach.bind(n),get:n.get.bind(n),delete:d=>{n.delete(d),i.set(ws(d),!0)},getInDirectory:d=>n.get(vl(d,"package.json"))||void 0,directoryHasPackageJson:u,searchDirectoryAndAncestors:d=>{jC(d,h=>{if(u(h)!==3)return!0;const S=e.toPath(vl(h,"package.json"));Mj(e,S)?c(S):i.set(h,!0)})}};function c(d){const h=re.checkDefined(ihe(d,e.host));n.set(d,h),i.delete(ws(d))}function u(d){return n.has(vl(d,"package.json"))?-1:i.has(d)?0:3}}var hy=G({"src/server/packageJsonCache.ts"(){l_()}});function _e(e){const n=e[0],i=e[1];return(1e9*n+i)/1e6}function vn(e,n){if((sl(e)||er(e))&&e.isJsOnlyProject()){const i=e.getScriptInfoForNormalizedPath(n);return i&&!i.isJavaScript()}return!1}function Qn(e){return gv(e)||!!e.emitDecoratorMetadata}function hi(e,n,i){const c=n.getScriptInfoForNormalizedPath(e);return{start:c.positionToLineOffset(i.start),end:c.positionToLineOffset(i.start+i.length),text:D2(i.messageText,` `),code:i.code,category:YO(i),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,source:i.source,relatedInformation:Vn(i.relatedInformation,pa)}}function pa(e){return e.file?{span:{start:Zc(xm(e.file,e.start)),end:Zc(xm(e.file,e.start+e.length)),file:e.file.fileName},message:D2(e.messageText,` `),category:YO(e),code:e.code}:{message:D2(e.messageText,` `),category:YO(e),code:e.code}}function Zc(e){return{line:e.line+1,offset:e.character+1}}function ka(e,n){const i=e.file&&Zc(xm(e.file,e.start)),c=e.file&&Zc(xm(e.file,e.start+e.length)),u=D2(e.messageText,` `),{code:d,source:h}=e,S=YO(e),E={start:i,end:c,text:u,code:d,category:S,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:h,relatedInformation:Vn(e.relatedInformation,pa)};return n?{...E,fileName:e.file&&e.file.fileName}:E}function bc(e,n){return e.every(i=>Xy(i.span)c(d,e));return!ls(i)&&i.symLinkedProjects&&i.symLinkedProjects.forEach((d,h)=>{const S=n(h);u.push(...ea(d,E=>c(E,S)))}),th(u,_1)}function Lg(){return J5(({textSpan:e})=>e.start+100003*e.length,$h)}function av(e,n,i,c,u,d){const h=Sv(e,n,i,!0,(P,k)=>P.getLanguageService().findRenameLocations(k.fileName,k.pos,c,u,d),(P,k)=>k(k1(P)));if(ls(h))return h;const S=[],E=Lg();return h.forEach((P,k)=>{for(const F of P)!E.has(F)&&!tn(k1(F),k)&&(S.push(F),E.add(F))}),S}function Fh(e,n,i){const c=e.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,i),u=c&&pp(c);return u&&!u.isLocal?{fileName:u.fileName,pos:u.textSpan.start}:void 0}function J0(e,n,i,c){var u,d;const h=Sv(e,n,i,!1,(k,F)=>(c.info(`Finding references to ${F.fileName} position ${F.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(F.fileName,F.pos)),(k,F)=>{F(k1(k.definition));for(const $ of k.references)F(k1($))});if(ls(h))return h;const S=h.get(n);if(((d=(u=S==null?void 0:S[0])==null?void 0:u.references[0])==null?void 0:d.isDefinition)===void 0)h.forEach(k=>{for(const F of k)for(const $ of F.references)delete $.isDefinition});else{const k=Lg();for(const $ of S)for(const J of $.references)if(J.isDefinition){k.add(J);break}const F=new Set;for(;;){let $=!1;if(h.forEach((J,X)=>{if(F.has(X))return;X.getLanguageService().updateIsDefinitionOfReferencedSymbols(J,k)&&(F.add(X),$=!0)}),!$)break}h.forEach(($,J)=>{if(!F.has(J))for(const X of $)for(const ie of X.references)ie.isDefinition=!1})}const E=[],P=Lg();return h.forEach((k,F)=>{for(const $ of k){const J=tn(k1($.definition),F),X=J===void 0?$.definition:{...$.definition,textSpan:p1(J.pos,$.definition.textSpan.length),fileName:J.fileName,contextSpan:ya($.definition,F)};let ie=lr(E,ae=>$h(ae.definition,X));ie||(ie={definition:X,references:[]},E.push(ie));for(const ae of $.references)!P.has(ae)&&!tn(k1(ae),F)&&(P.add(ae),ie.references.push(ae))}}),E.filter(k=>k.references.length!==0)}function Eg(e,n,i){for(const c of ls(e)?e:e.projects)i(c,n);!ls(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((c,u)=>{for(const d of c)i(d,u)})}function Sv(e,n,i,c,u,d){const h=new Map,S=$w();S.enqueue({project:n,location:i}),Eg(e,i.fileName,(ie,ae)=>{const ve={fileName:ae,pos:i.pos};S.enqueue({project:ie,location:ve})});const E=n.projectService,P=n.getCancellationToken(),k=Fh(n,i,c),F=Pd(()=>n.isSourceOfProjectReferenceRedirect(k.fileName)?k:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),$=Pd(()=>n.isSourceOfProjectReferenceRedirect(k.fileName)?k:n.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),J=new Set;e:for(;!S.isEmpty();){for(;!S.isEmpty();){if(P.isCancellationRequested())break e;const{project:ie,location:ae}=S.dequeue();if(h.has(ie)||Ev(ie,ae)||(Qa(ie),!ie.containsFile(te(ae.fileName))))continue;const ve=X(ie,ae);h.set(ie,ve??ke),J.add(S0(ie))}k&&(E.loadAncestorProjectTree(J),E.forEachEnabledProject(ie=>{if(P.isCancellationRequested()||h.has(ie))return;const ae=jT(k,ie,F,$);ae&&S.enqueue({project:ie,location:ae})}))}if(h.size===1)return sX(h.values());return h;function X(ie,ae){const ve=u(ie,ae);if(ve){for(const we of ve)d(we,Fe=>{const et=E.getOriginalLocationEnsuringConfiguredProject(ie,Fe);if(!et)return;const Pe=E.getScriptInfo(et.fileName);for(const Ie of Pe.containingProjects)!Ie.isOrphan()&&!h.has(Ie)&&S.enqueue({project:Ie,location:et});const dt=E.getSymlinkedProjects(Pe);dt&&dt.forEach((Ie,ct)=>{for(const Ct of Ie)!Ct.isOrphan()&&!h.has(Ct)&&S.enqueue({project:Ct,location:{fileName:ct,pos:et.pos}})})});return ve}}}function jT(e,n,i,c){if(n.containsFile(te(e.fileName))&&!Ev(n,e))return e;const u=i();if(u&&n.containsFile(te(u.fileName)))return u;const d=c();return d&&n.containsFile(te(d.fileName))?d:void 0}function Ev(e,n){if(!n)return!1;const i=e.getLanguageService().getProgram();if(!i)return!1;const c=i.getSourceFile(n.fileName);return!!c&&c.resolvedPath!==c.path&&c.resolvedPath!==e.toPath(n.fileName)}function S0(e){return vc(e)?e.canonicalConfigFilePath:e.getProjectName()}function k1({fileName:e,textSpan:n}){return{fileName:e,pos:n.start}}function tn(e,n){return H3(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function fi(e,n){return oce(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function ya(e,n){return Kge(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function bu(e,n){return{start:n.positionToLineOffset(e.start),end:n.positionToLineOffset(Xy(e))}}function K_(e,n,i){const c=bu(e,i),u=n&&bu(n,i);return u?{...c,contextStart:u.start,contextEnd:u.end}:c}function ig(e,n){return{start:Fy(n,e.span.start),end:Fy(n,Xy(e.span)),newText:e.newText}}function Fy(e,n){return fp(e)?ir(e.getLineAndCharacterOfPosition(n)):e.positionToLineOffset(n)}function bt(e,n){const i=e.ranges.map(c=>({start:n.positionToLineOffset(c.start),end:n.positionToLineOffset(c.start+c.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}function ir(e){return{line:e.line+1,offset:e.character+1}}function ii(e){re.assert(e.textChanges.length===1);const n=Dl(e.textChanges);return re.assert(n.span.start===0&&n.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}function Si(e,n,i,c){const u=Do(e,n,c),{line:d,character:h}=Nd(RM(u),i);return{line:d+1,offset:h+1}}function Do(e,n,i){for(const{fileName:c,textChanges:u}of i)if(c===n)for(let d=u.length-1;d>=0;d--){const{newText:h,span:{start:S,length:E}}=u[d];e=e.slice(0,S)+h+e.slice(S+E)}return e}function Za(e,{fileName:n,textSpan:i,contextSpan:c,isWriteAccess:u,isDefinition:d},{disableLineTextInReferences:h}){const S=re.checkDefined(e.getScriptInfo(n)),E=K_(i,c,S),P=h?void 0:Qc(S,E);return{file:n,...E,lineText:P,isWriteAccess:u,isDefinition:d}}function Qc(e,n){const i=e.lineToTextSpan(n.start.line-1);return e.getSnapshot().getText(i.start,Xy(i)).replace(/\r|\n/g,"")}function Al(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var du,N_,zp,gh,Wh,Gv,jv=G({"src/server/session.ts"(){l_(),$l(),ei(),du={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},N_=Wt,zp=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,n){const i=this.requestId;re.assert(i===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n))},e))}delay(e,n,i){const c=this.requestId;re.assert(c===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(c,()=>this.executeAction(i))},n,e))}executeAction(e){var n,i,c,u,d,h;let S=!1;try{this.operationHost.isCancellationRequested()?(S=!0,(n=ps)==null||n.instant(ps.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((i=ps)==null||i.push(ps.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(c=ps)==null||c.pop())}catch(E){(u=ps)==null||u.popAll(),S=!0,E instanceof QO?(d=ps)==null||d.instant(ps.Phase.Session,"stepCanceled",{seq:this.requestId}):((h=ps)==null||h.instant(ps.Phase.Session,"stepError",{seq:this.requestId,message:E.message}),this.operationHost.logError(E,`delayed processing of request ${this.requestId}`))}(S||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},gh=["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"],Wh=[...gh,"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"],Gv=class Hit{constructor(n){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const d={version:At};return this.requiredResponse(d)},openExternalProject:d=>(this.projectService.openExternalProject(d.arguments),this.requiredResponse(!0)),openExternalProjects:d=>(this.projectService.openExternalProjects(d.arguments.projects),this.requiredResponse(!0)),closeExternalProject:d=>(this.projectService.closeExternalProject(d.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:d=>{const h=this.projectService.synchronizeProjectList(d.arguments.knownProjects,d.arguments.includeProjectReferenceRedirectInfo);if(!h.some(E=>E.projectErrors&&E.projectErrors.length!==0))return this.requiredResponse(h);const S=Vn(h,E=>!E.projectErrors||E.projectErrors.length===0?E:{info:E.info,changes:E.changes,files:E.files,projectErrors:this.convertToDiagnosticsWithLinePosition(E.projectErrors,void 0)});return this.requiredResponse(S)},updateOpen:d=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(d.arguments.openFiles&&p_(d.arguments.openFiles,h=>({fileName:h.file,content:h.fileContent,scriptKind:h.scriptKindName,projectRootPath:h.projectRootPath})),d.arguments.changedFiles&&p_(d.arguments.changedFiles,h=>({fileName:h.fileName,changes:p2(fU(h.textChanges),S=>{const E=re.checkDefined(this.projectService.getScriptInfo(h.fileName)),P=E.lineOffsetToPosition(S.start.line,S.start.offset),k=E.lineOffsetToPosition(S.end.line,S.end.offset);return P>=0?{span:{start:P,length:k-P},newText:S.newText}:void 0})})),d.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:d=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(d.arguments.openFiles,d.arguments.changedFiles&&p_(d.arguments.changedFiles,h=>({fileName:h.fileName,changes:fU(h.changes)})),d.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:d=>this.requiredResponse(this.getDefinition(d.arguments,!0)),"definition-full":d=>this.requiredResponse(this.getDefinition(d.arguments,!1)),definitionAndBoundSpan:d=>this.requiredResponse(this.getDefinitionAndBoundSpan(d.arguments,!0)),"definitionAndBoundSpan-full":d=>this.requiredResponse(this.getDefinitionAndBoundSpan(d.arguments,!1)),findSourceDefinition:d=>this.requiredResponse(this.findSourceDefinition(d.arguments)),"emit-output":d=>this.requiredResponse(this.getEmitOutput(d.arguments)),typeDefinition:d=>this.requiredResponse(this.getTypeDefinition(d.arguments)),implementation:d=>this.requiredResponse(this.getImplementation(d.arguments,!0)),"implementation-full":d=>this.requiredResponse(this.getImplementation(d.arguments,!1)),references:d=>this.requiredResponse(this.getReferences(d.arguments,!0)),"references-full":d=>this.requiredResponse(this.getReferences(d.arguments,!1)),rename:d=>this.requiredResponse(this.getRenameLocations(d.arguments,!0)),"renameLocations-full":d=>this.requiredResponse(this.getRenameLocations(d.arguments,!1)),"rename-full":d=>this.requiredResponse(this.getRenameInfo(d.arguments)),open:d=>(this.openClientFile(te(d.arguments.file),d.arguments.fileContent,xu(d.arguments.scriptKindName),d.arguments.projectRootPath?te(d.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:d=>this.requiredResponse(this.getQuickInfoWorker(d.arguments,!0)),"quickinfo-full":d=>this.requiredResponse(this.getQuickInfoWorker(d.arguments,!1)),getOutliningSpans:d=>this.requiredResponse(this.getOutliningSpans(d.arguments,!0)),outliningSpans:d=>this.requiredResponse(this.getOutliningSpans(d.arguments,!1)),todoComments:d=>this.requiredResponse(this.getTodoComments(d.arguments)),indentation:d=>this.requiredResponse(this.getIndentation(d.arguments)),nameOrDottedNameSpan:d=>this.requiredResponse(this.getNameOrDottedNameSpan(d.arguments)),breakpointStatement:d=>this.requiredResponse(this.getBreakpointStatement(d.arguments)),braceCompletion:d=>this.requiredResponse(this.isValidBraceCompletion(d.arguments)),docCommentTemplate:d=>this.requiredResponse(this.getDocCommentTemplate(d.arguments)),getSpanOfEnclosingComment:d=>this.requiredResponse(this.getSpanOfEnclosingComment(d.arguments)),fileReferences:d=>this.requiredResponse(this.getFileReferences(d.arguments,!0)),"fileReferences-full":d=>this.requiredResponse(this.getFileReferences(d.arguments,!1)),format:d=>this.requiredResponse(this.getFormattingEditsForRange(d.arguments)),formatonkey:d=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(d.arguments)),"format-full":d=>this.requiredResponse(this.getFormattingEditsForDocumentFull(d.arguments)),"formatonkey-full":d=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(d.arguments)),"formatRange-full":d=>this.requiredResponse(this.getFormattingEditsForRangeFull(d.arguments)),completionInfo:d=>this.requiredResponse(this.getCompletions(d.arguments,"completionInfo")),completions:d=>this.requiredResponse(this.getCompletions(d.arguments,"completions")),"completions-full":d=>this.requiredResponse(this.getCompletions(d.arguments,"completions-full")),completionEntryDetails:d=>this.requiredResponse(this.getCompletionEntryDetails(d.arguments,!1)),"completionEntryDetails-full":d=>this.requiredResponse(this.getCompletionEntryDetails(d.arguments,!0)),compileOnSaveAffectedFileList:d=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(d.arguments)),compileOnSaveEmitFile:d=>this.requiredResponse(this.emitFile(d.arguments)),signatureHelp:d=>this.requiredResponse(this.getSignatureHelpItems(d.arguments,!0)),"signatureHelp-full":d=>this.requiredResponse(this.getSignatureHelpItems(d.arguments,!1)),"compilerOptionsDiagnostics-full":d=>this.requiredResponse(this.getCompilerOptionsDiagnostics(d.arguments)),"encodedSyntacticClassifications-full":d=>this.requiredResponse(this.getEncodedSyntacticClassifications(d.arguments)),"encodedSemanticClassifications-full":d=>this.requiredResponse(this.getEncodedSemanticClassifications(d.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:d=>this.requiredResponse(this.getSemanticDiagnosticsSync(d.arguments)),syntacticDiagnosticsSync:d=>this.requiredResponse(this.getSyntacticDiagnosticsSync(d.arguments)),suggestionDiagnosticsSync:d=>this.requiredResponse(this.getSuggestionDiagnosticsSync(d.arguments)),geterr:d=>(this.errorCheck.startNew(h=>this.getDiagnostics(h,d.arguments.delay,d.arguments.files)),this.notRequired()),geterrForProject:d=>(this.errorCheck.startNew(h=>this.getDiagnosticsForProject(h,d.arguments.delay,d.arguments.file)),this.notRequired()),change:d=>(this.change(d.arguments),this.notRequired()),configure:d=>(this.projectService.setHostConfiguration(d.arguments),this.doOutput(void 0,"configure",d.seq,!0),this.notRequired()),reload:d=>(this.reload(d.arguments,d.seq),this.requiredResponse({reloadFinished:!0})),saveto:d=>{const h=d.arguments;return this.saveToTmp(h.file,h.tmpfile),this.notRequired()},close:d=>{const h=d.arguments;return this.closeClientFile(h.file),this.notRequired()},navto:d=>this.requiredResponse(this.getNavigateToItems(d.arguments,!0)),"navto-full":d=>this.requiredResponse(this.getNavigateToItems(d.arguments,!1)),brace:d=>this.requiredResponse(this.getBraceMatching(d.arguments,!0)),"brace-full":d=>this.requiredResponse(this.getBraceMatching(d.arguments,!1)),navbar:d=>this.requiredResponse(this.getNavigationBarItems(d.arguments,!0)),"navbar-full":d=>this.requiredResponse(this.getNavigationBarItems(d.arguments,!1)),navtree:d=>this.requiredResponse(this.getNavigationTree(d.arguments,!0)),"navtree-full":d=>this.requiredResponse(this.getNavigationTree(d.arguments,!1)),documentHighlights:d=>this.requiredResponse(this.getDocumentHighlights(d.arguments,!0)),"documentHighlights-full":d=>this.requiredResponse(this.getDocumentHighlights(d.arguments,!1)),compilerOptionsForInferredProjects:d=>(this.setCompilerOptionsForInferredProjects(d.arguments),this.requiredResponse(!0)),projectInfo:d=>this.requiredResponse(this.getProjectInfo(d.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:d=>this.requiredResponse(this.getJsxClosingTag(d.arguments)),linkedEditingRange:d=>this.requiredResponse(this.getLinkedEditingRange(d.arguments)),getCodeFixes:d=>this.requiredResponse(this.getCodeFixes(d.arguments,!0)),"getCodeFixes-full":d=>this.requiredResponse(this.getCodeFixes(d.arguments,!1)),getCombinedCodeFix:d=>this.requiredResponse(this.getCombinedCodeFix(d.arguments,!0)),"getCombinedCodeFix-full":d=>this.requiredResponse(this.getCombinedCodeFix(d.arguments,!1)),applyCodeActionCommand:d=>this.requiredResponse(this.applyCodeActionCommand(d.arguments)),getSupportedCodeFixes:d=>this.requiredResponse(this.getSupportedCodeFixes(d.arguments)),getApplicableRefactors:d=>this.requiredResponse(this.getApplicableRefactors(d.arguments)),getEditsForRefactor:d=>this.requiredResponse(this.getEditsForRefactor(d.arguments,!0)),getMoveToRefactoringFileSuggestions:d=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(d.arguments)),"getEditsForRefactor-full":d=>this.requiredResponse(this.getEditsForRefactor(d.arguments,!1)),organizeImports:d=>this.requiredResponse(this.organizeImports(d.arguments,!0)),"organizeImports-full":d=>this.requiredResponse(this.organizeImports(d.arguments,!1)),getEditsForFileRename:d=>this.requiredResponse(this.getEditsForFileRename(d.arguments,!0)),"getEditsForFileRename-full":d=>this.requiredResponse(this.getEditsForFileRename(d.arguments,!1)),configurePlugin:d=>(this.configurePlugin(d.arguments),this.doOutput(void 0,"configurePlugin",d.seq,!0),this.notRequired()),selectionRange:d=>this.requiredResponse(this.getSmartSelectionRange(d.arguments,!0)),"selectionRange-full":d=>this.requiredResponse(this.getSmartSelectionRange(d.arguments,!1)),prepareCallHierarchy:d=>this.requiredResponse(this.prepareCallHierarchy(d.arguments)),provideCallHierarchyIncomingCalls:d=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(d.arguments)),provideCallHierarchyOutgoingCalls:d=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(d.arguments)),toggleLineComment:d=>this.requiredResponse(this.toggleLineComment(d.arguments,!0)),"toggleLineComment-full":d=>this.requiredResponse(this.toggleLineComment(d.arguments,!1)),toggleMultilineComment:d=>this.requiredResponse(this.toggleMultilineComment(d.arguments,!0)),"toggleMultilineComment-full":d=>this.requiredResponse(this.toggleMultilineComment(d.arguments,!1)),commentSelection:d=>this.requiredResponse(this.commentSelection(d.arguments,!0)),"commentSelection-full":d=>this.requiredResponse(this.commentSelection(d.arguments,!1)),uncommentSelection:d=>this.requiredResponse(this.uncommentSelection(d.arguments,!0)),"uncommentSelection-full":d=>this.requiredResponse(this.uncommentSelection(d.arguments,!1)),provideInlayHints:d=>this.requiredResponse(this.provideInlayHints(d.arguments))})),this.host=n.host,this.cancellationToken=n.cancellationToken,this.typingsInstaller=n.typingsInstaller||Rr,this.byteLength=n.byteLength,this.hrtime=n.hrtime,this.logger=n.logger,this.canUseEvents=n.canUseEvents,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=n.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:i}=n;this.eventHandler=this.canUseEvents?n.eventHandler||(d=>this.defaultEventHandler(d)):void 0;const c={executeWithRequestId:(d,h)=>this.executeWithRequestId(d,h),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(d,h)=>this.logError(d,h),sendRequestCompletedEvent:d=>this.sendRequestCompletedEvent(d),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new zp(c);const u={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:n.useSingleInferredProject,useInferredProjectPerProjectRoot:n.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:i,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:n.globalPlugins,pluginProbeLocations:n.pluginProbeLocations,allowLocalPluginLoads:n.allowLocalPluginLoads,typesMapLocation:n.typesMapLocation,serverMode:n.serverMode,session:this,canUseWatchEvents:n.canUseWatchEvents,incrementalVerifier:n.incrementalVerifier};switch(this.projectService=new hy(u),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new lt(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:gh.forEach(d=>this.handlers.set(d,h=>{throw new Error(`Request: ${h.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Wh.forEach(d=>this.handlers.set(d,h=>{throw new Error(`Request: ${h.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:re.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(n){this.event({request_seq:n},"requestCompleted")}addPerformanceData(n,i){this.performanceData||(this.performanceData={}),this.performanceData[n]=(this.performanceData[n]??0)+i}performanceEventHandler(n){switch(n.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",n.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",n.durationMs);break}}defaultEventHandler(n){switch(n.eventName){case q_:this.projectsUpdatedInBackgroundEvent(n.data.openFiles);break;case Ma:this.event({projectName:n.data.project.getProjectName(),reason:n.data.reason},n.eventName);break;case U0:this.event({projectName:n.data.project.getProjectName()},n.eventName);break;case c_:case zv:case m_:case Yu:this.event(n.data,n.eventName);break;case Kd:this.event({triggerFile:n.data.triggerFile,configFile:n.data.configFileName,diagnostics:Vn(n.data.diagnostics,i=>ka(i,!0))},n.eventName);break;case iy:{this.event({projectName:n.data.project.getProjectName(),languageServiceEnabled:n.data.languageServiceEnabled},n.eventName);break}case Oh:{this.event({telemetryEventName:n.eventName,payload:n.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(n){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${n}`),n.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(i=>this.updateErrorCheck(i,n,100,!0)),this.event({openFiles:n},q_))}logError(n,i){this.logErrorWorker(n,i)}logErrorWorker(n,i,c){let u="Exception on executing command "+i;if(n.message&&(u+=`: -`+Ej(n.message),n.stack&&(u+=` -`+Ej(n.stack))),this.logger.hasLevel(3)){if(c)try{const{file:d,project:h}=this.getFileAndProject(c),S=h.getScriptInfoForNormalizedPath(d);if(S){const E=Ij(S.getSnapshot());u+=` +${d}${c}`}function yu(e,n){return{seq:0,type:"event",event:e,body:n}}function Xm(e,n,i,c){const u=Lm(ls(i)?i:i.projects,d=>c(d,e));return!ls(i)&&i.symLinkedProjects&&i.symLinkedProjects.forEach((d,h)=>{const S=n(h);u.push(...ea(d,E=>c(E,S)))}),th(u,_1)}function Lg(){return J5(({textSpan:e})=>e.start+100003*e.length,$h)}function av(e,n,i,c,u,d){const h=Sv(e,n,i,!0,(P,k)=>P.getLanguageService().findRenameLocations(k.fileName,k.pos,c,u,d),(P,k)=>k(k1(P)));if(ls(h))return h;const S=[],E=Lg();return h.forEach((P,k)=>{for(const F of P)!E.has(F)&&!tn(k1(F),k)&&(S.push(F),E.add(F))}),S}function Fh(e,n,i){const c=e.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,i),u=c&&pp(c);return u&&!u.isLocal?{fileName:u.fileName,pos:u.textSpan.start}:void 0}function J0(e,n,i,c){var u,d;const h=Sv(e,n,i,!1,(k,F)=>(c.info(`Finding references to ${F.fileName} position ${F.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(F.fileName,F.pos)),(k,F)=>{F(k1(k.definition));for(const $ of k.references)F(k1($))});if(ls(h))return h;const S=h.get(n);if(((d=(u=S==null?void 0:S[0])==null?void 0:u.references[0])==null?void 0:d.isDefinition)===void 0)h.forEach(k=>{for(const F of k)for(const $ of F.references)delete $.isDefinition});else{const k=Lg();for(const $ of S)for(const J of $.references)if(J.isDefinition){k.add(J);break}const F=new Set;for(;;){let $=!1;if(h.forEach((J,X)=>{if(F.has(X))return;X.getLanguageService().updateIsDefinitionOfReferencedSymbols(J,k)&&(F.add(X),$=!0)}),!$)break}h.forEach(($,J)=>{if(!F.has(J))for(const X of $)for(const ie of X.references)ie.isDefinition=!1})}const E=[],P=Lg();return h.forEach((k,F)=>{for(const $ of k){const J=tn(k1($.definition),F),X=J===void 0?$.definition:{...$.definition,textSpan:p1(J.pos,$.definition.textSpan.length),fileName:J.fileName,contextSpan:ya($.definition,F)};let ie=lr(E,ae=>$h(ae.definition,X));ie||(ie={definition:X,references:[]},E.push(ie));for(const ae of $.references)!P.has(ae)&&!tn(k1(ae),F)&&(P.add(ae),ie.references.push(ae))}}),E.filter(k=>k.references.length!==0)}function Eg(e,n,i){for(const c of ls(e)?e:e.projects)i(c,n);!ls(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((c,u)=>{for(const d of c)i(d,u)})}function Sv(e,n,i,c,u,d){const h=new Map,S=$w();S.enqueue({project:n,location:i}),Eg(e,i.fileName,(ie,ae)=>{const ve={fileName:ae,pos:i.pos};S.enqueue({project:ie,location:ve})});const E=n.projectService,P=n.getCancellationToken(),k=Fh(n,i,c),F=Pd(()=>n.isSourceOfProjectReferenceRedirect(k.fileName)?k:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),$=Pd(()=>n.isSourceOfProjectReferenceRedirect(k.fileName)?k:n.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),J=new Set;e:for(;!S.isEmpty();){for(;!S.isEmpty();){if(P.isCancellationRequested())break e;const{project:ie,location:ae}=S.dequeue();if(h.has(ie)||Ev(ie,ae)||(Qa(ie),!ie.containsFile(te(ae.fileName))))continue;const ve=X(ie,ae);h.set(ie,ve??ke),J.add(S0(ie))}k&&(E.loadAncestorProjectTree(J),E.forEachEnabledProject(ie=>{if(P.isCancellationRequested()||h.has(ie))return;const ae=jT(k,ie,F,$);ae&&S.enqueue({project:ie,location:ae})}))}if(h.size===1)return sX(h.values());return h;function X(ie,ae){const ve=u(ie,ae);if(ve){for(const we of ve)d(we,Fe=>{const et=E.getOriginalLocationEnsuringConfiguredProject(ie,Fe);if(!et)return;const Pe=E.getScriptInfo(et.fileName);for(const Ie of Pe.containingProjects)!Ie.isOrphan()&&!h.has(Ie)&&S.enqueue({project:Ie,location:et});const dt=E.getSymlinkedProjects(Pe);dt&&dt.forEach((Ie,ct)=>{for(const Ct of Ie)!Ct.isOrphan()&&!h.has(Ct)&&S.enqueue({project:Ct,location:{fileName:ct,pos:et.pos}})})});return ve}}}function jT(e,n,i,c){if(n.containsFile(te(e.fileName))&&!Ev(n,e))return e;const u=i();if(u&&n.containsFile(te(u.fileName)))return u;const d=c();return d&&n.containsFile(te(d.fileName))?d:void 0}function Ev(e,n){if(!n)return!1;const i=e.getLanguageService().getProgram();if(!i)return!1;const c=i.getSourceFile(n.fileName);return!!c&&c.resolvedPath!==c.path&&c.resolvedPath!==e.toPath(n.fileName)}function S0(e){return vc(e)?e.canonicalConfigFilePath:e.getProjectName()}function k1({fileName:e,textSpan:n}){return{fileName:e,pos:n.start}}function tn(e,n){return H3(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function fi(e,n){return oce(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function ya(e,n){return Kge(e,n.getSourceMapper(),i=>n.projectService.fileExists(i))}function bu(e,n){return{start:n.positionToLineOffset(e.start),end:n.positionToLineOffset(Xy(e))}}function K_(e,n,i){const c=bu(e,i),u=n&&bu(n,i);return u?{...c,contextStart:u.start,contextEnd:u.end}:c}function ig(e,n){return{start:Fy(n,e.span.start),end:Fy(n,Xy(e.span)),newText:e.newText}}function Fy(e,n){return fp(e)?ir(e.getLineAndCharacterOfPosition(n)):e.positionToLineOffset(n)}function bt(e,n){const i=e.ranges.map(c=>({start:n.positionToLineOffset(c.start),end:n.positionToLineOffset(c.start+c.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}function ir(e){return{line:e.line+1,offset:e.character+1}}function ii(e){re.assert(e.textChanges.length===1);const n=Dl(e.textChanges);return re.assert(n.span.start===0&&n.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}function Si(e,n,i,c){const u=Do(e,n,c),{line:d,character:h}=Nd(RM(u),i);return{line:d+1,offset:h+1}}function Do(e,n,i){for(const{fileName:c,textChanges:u}of i)if(c===n)for(let d=u.length-1;d>=0;d--){const{newText:h,span:{start:S,length:E}}=u[d];e=e.slice(0,S)+h+e.slice(S+E)}return e}function Za(e,{fileName:n,textSpan:i,contextSpan:c,isWriteAccess:u,isDefinition:d},{disableLineTextInReferences:h}){const S=re.checkDefined(e.getScriptInfo(n)),E=K_(i,c,S),P=h?void 0:Qc(S,E);return{file:n,...E,lineText:P,isWriteAccess:u,isDefinition:d}}function Qc(e,n){const i=e.lineToTextSpan(n.start.line-1);return e.getSnapshot().getText(i.start,Xy(i)).replace(/\r|\n/g,"")}function Al(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var du,N_,zp,gh,Wh,Gv,jv=G({"src/server/session.ts"(){l_(),$l(),ei(),du={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},N_=Wt,zp=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,n){const i=this.requestId;re.assert(i===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n))},e))}delay(e,n,i){const c=this.requestId;re.assert(c===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(c,()=>this.executeAction(i))},n,e))}executeAction(e){var n,i,c,u,d,h;let S=!1;try{this.operationHost.isCancellationRequested()?(S=!0,(n=ps)==null||n.instant(ps.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((i=ps)==null||i.push(ps.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(c=ps)==null||c.pop())}catch(E){(u=ps)==null||u.popAll(),S=!0,E instanceof QO?(d=ps)==null||d.instant(ps.Phase.Session,"stepCanceled",{seq:this.requestId}):((h=ps)==null||h.instant(ps.Phase.Session,"stepError",{seq:this.requestId,message:E.message}),this.operationHost.logError(E,`delayed processing of request ${this.requestId}`))}(S||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},gh=["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"],Wh=[...gh,"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"],Gv=class Hit{constructor(n){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const d={version:At};return this.requiredResponse(d)},openExternalProject:d=>(this.projectService.openExternalProject(d.arguments),this.requiredResponse(!0)),openExternalProjects:d=>(this.projectService.openExternalProjects(d.arguments.projects),this.requiredResponse(!0)),closeExternalProject:d=>(this.projectService.closeExternalProject(d.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:d=>{const h=this.projectService.synchronizeProjectList(d.arguments.knownProjects,d.arguments.includeProjectReferenceRedirectInfo);if(!h.some(E=>E.projectErrors&&E.projectErrors.length!==0))return this.requiredResponse(h);const S=Vn(h,E=>!E.projectErrors||E.projectErrors.length===0?E:{info:E.info,changes:E.changes,files:E.files,projectErrors:this.convertToDiagnosticsWithLinePosition(E.projectErrors,void 0)});return this.requiredResponse(S)},updateOpen:d=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(d.arguments.openFiles&&p_(d.arguments.openFiles,h=>({fileName:h.file,content:h.fileContent,scriptKind:h.scriptKindName,projectRootPath:h.projectRootPath})),d.arguments.changedFiles&&p_(d.arguments.changedFiles,h=>({fileName:h.fileName,changes:p2(fU(h.textChanges),S=>{const E=re.checkDefined(this.projectService.getScriptInfo(h.fileName)),P=E.lineOffsetToPosition(S.start.line,S.start.offset),k=E.lineOffsetToPosition(S.end.line,S.end.offset);return P>=0?{span:{start:P,length:k-P},newText:S.newText}:void 0})})),d.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:d=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(d.arguments.openFiles,d.arguments.changedFiles&&p_(d.arguments.changedFiles,h=>({fileName:h.fileName,changes:fU(h.changes)})),d.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:d=>this.requiredResponse(this.getDefinition(d.arguments,!0)),"definition-full":d=>this.requiredResponse(this.getDefinition(d.arguments,!1)),definitionAndBoundSpan:d=>this.requiredResponse(this.getDefinitionAndBoundSpan(d.arguments,!0)),"definitionAndBoundSpan-full":d=>this.requiredResponse(this.getDefinitionAndBoundSpan(d.arguments,!1)),findSourceDefinition:d=>this.requiredResponse(this.findSourceDefinition(d.arguments)),"emit-output":d=>this.requiredResponse(this.getEmitOutput(d.arguments)),typeDefinition:d=>this.requiredResponse(this.getTypeDefinition(d.arguments)),implementation:d=>this.requiredResponse(this.getImplementation(d.arguments,!0)),"implementation-full":d=>this.requiredResponse(this.getImplementation(d.arguments,!1)),references:d=>this.requiredResponse(this.getReferences(d.arguments,!0)),"references-full":d=>this.requiredResponse(this.getReferences(d.arguments,!1)),rename:d=>this.requiredResponse(this.getRenameLocations(d.arguments,!0)),"renameLocations-full":d=>this.requiredResponse(this.getRenameLocations(d.arguments,!1)),"rename-full":d=>this.requiredResponse(this.getRenameInfo(d.arguments)),open:d=>(this.openClientFile(te(d.arguments.file),d.arguments.fileContent,xu(d.arguments.scriptKindName),d.arguments.projectRootPath?te(d.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:d=>this.requiredResponse(this.getQuickInfoWorker(d.arguments,!0)),"quickinfo-full":d=>this.requiredResponse(this.getQuickInfoWorker(d.arguments,!1)),getOutliningSpans:d=>this.requiredResponse(this.getOutliningSpans(d.arguments,!0)),outliningSpans:d=>this.requiredResponse(this.getOutliningSpans(d.arguments,!1)),todoComments:d=>this.requiredResponse(this.getTodoComments(d.arguments)),indentation:d=>this.requiredResponse(this.getIndentation(d.arguments)),nameOrDottedNameSpan:d=>this.requiredResponse(this.getNameOrDottedNameSpan(d.arguments)),breakpointStatement:d=>this.requiredResponse(this.getBreakpointStatement(d.arguments)),braceCompletion:d=>this.requiredResponse(this.isValidBraceCompletion(d.arguments)),docCommentTemplate:d=>this.requiredResponse(this.getDocCommentTemplate(d.arguments)),getSpanOfEnclosingComment:d=>this.requiredResponse(this.getSpanOfEnclosingComment(d.arguments)),fileReferences:d=>this.requiredResponse(this.getFileReferences(d.arguments,!0)),"fileReferences-full":d=>this.requiredResponse(this.getFileReferences(d.arguments,!1)),format:d=>this.requiredResponse(this.getFormattingEditsForRange(d.arguments)),formatonkey:d=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(d.arguments)),"format-full":d=>this.requiredResponse(this.getFormattingEditsForDocumentFull(d.arguments)),"formatonkey-full":d=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(d.arguments)),"formatRange-full":d=>this.requiredResponse(this.getFormattingEditsForRangeFull(d.arguments)),completionInfo:d=>this.requiredResponse(this.getCompletions(d.arguments,"completionInfo")),completions:d=>this.requiredResponse(this.getCompletions(d.arguments,"completions")),"completions-full":d=>this.requiredResponse(this.getCompletions(d.arguments,"completions-full")),completionEntryDetails:d=>this.requiredResponse(this.getCompletionEntryDetails(d.arguments,!1)),"completionEntryDetails-full":d=>this.requiredResponse(this.getCompletionEntryDetails(d.arguments,!0)),compileOnSaveAffectedFileList:d=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(d.arguments)),compileOnSaveEmitFile:d=>this.requiredResponse(this.emitFile(d.arguments)),signatureHelp:d=>this.requiredResponse(this.getSignatureHelpItems(d.arguments,!0)),"signatureHelp-full":d=>this.requiredResponse(this.getSignatureHelpItems(d.arguments,!1)),"compilerOptionsDiagnostics-full":d=>this.requiredResponse(this.getCompilerOptionsDiagnostics(d.arguments)),"encodedSyntacticClassifications-full":d=>this.requiredResponse(this.getEncodedSyntacticClassifications(d.arguments)),"encodedSemanticClassifications-full":d=>this.requiredResponse(this.getEncodedSemanticClassifications(d.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:d=>this.requiredResponse(this.getSemanticDiagnosticsSync(d.arguments)),syntacticDiagnosticsSync:d=>this.requiredResponse(this.getSyntacticDiagnosticsSync(d.arguments)),suggestionDiagnosticsSync:d=>this.requiredResponse(this.getSuggestionDiagnosticsSync(d.arguments)),geterr:d=>(this.errorCheck.startNew(h=>this.getDiagnostics(h,d.arguments.delay,d.arguments.files)),this.notRequired()),geterrForProject:d=>(this.errorCheck.startNew(h=>this.getDiagnosticsForProject(h,d.arguments.delay,d.arguments.file)),this.notRequired()),change:d=>(this.change(d.arguments),this.notRequired()),configure:d=>(this.projectService.setHostConfiguration(d.arguments),this.doOutput(void 0,"configure",d.seq,!0),this.notRequired()),reload:d=>(this.reload(d.arguments,d.seq),this.requiredResponse({reloadFinished:!0})),saveto:d=>{const h=d.arguments;return this.saveToTmp(h.file,h.tmpfile),this.notRequired()},close:d=>{const h=d.arguments;return this.closeClientFile(h.file),this.notRequired()},navto:d=>this.requiredResponse(this.getNavigateToItems(d.arguments,!0)),"navto-full":d=>this.requiredResponse(this.getNavigateToItems(d.arguments,!1)),brace:d=>this.requiredResponse(this.getBraceMatching(d.arguments,!0)),"brace-full":d=>this.requiredResponse(this.getBraceMatching(d.arguments,!1)),navbar:d=>this.requiredResponse(this.getNavigationBarItems(d.arguments,!0)),"navbar-full":d=>this.requiredResponse(this.getNavigationBarItems(d.arguments,!1)),navtree:d=>this.requiredResponse(this.getNavigationTree(d.arguments,!0)),"navtree-full":d=>this.requiredResponse(this.getNavigationTree(d.arguments,!1)),documentHighlights:d=>this.requiredResponse(this.getDocumentHighlights(d.arguments,!0)),"documentHighlights-full":d=>this.requiredResponse(this.getDocumentHighlights(d.arguments,!1)),compilerOptionsForInferredProjects:d=>(this.setCompilerOptionsForInferredProjects(d.arguments),this.requiredResponse(!0)),projectInfo:d=>this.requiredResponse(this.getProjectInfo(d.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:d=>this.requiredResponse(this.getJsxClosingTag(d.arguments)),linkedEditingRange:d=>this.requiredResponse(this.getLinkedEditingRange(d.arguments)),getCodeFixes:d=>this.requiredResponse(this.getCodeFixes(d.arguments,!0)),"getCodeFixes-full":d=>this.requiredResponse(this.getCodeFixes(d.arguments,!1)),getCombinedCodeFix:d=>this.requiredResponse(this.getCombinedCodeFix(d.arguments,!0)),"getCombinedCodeFix-full":d=>this.requiredResponse(this.getCombinedCodeFix(d.arguments,!1)),applyCodeActionCommand:d=>this.requiredResponse(this.applyCodeActionCommand(d.arguments)),getSupportedCodeFixes:d=>this.requiredResponse(this.getSupportedCodeFixes(d.arguments)),getApplicableRefactors:d=>this.requiredResponse(this.getApplicableRefactors(d.arguments)),getEditsForRefactor:d=>this.requiredResponse(this.getEditsForRefactor(d.arguments,!0)),getMoveToRefactoringFileSuggestions:d=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(d.arguments)),"getEditsForRefactor-full":d=>this.requiredResponse(this.getEditsForRefactor(d.arguments,!1)),organizeImports:d=>this.requiredResponse(this.organizeImports(d.arguments,!0)),"organizeImports-full":d=>this.requiredResponse(this.organizeImports(d.arguments,!1)),getEditsForFileRename:d=>this.requiredResponse(this.getEditsForFileRename(d.arguments,!0)),"getEditsForFileRename-full":d=>this.requiredResponse(this.getEditsForFileRename(d.arguments,!1)),configurePlugin:d=>(this.configurePlugin(d.arguments),this.doOutput(void 0,"configurePlugin",d.seq,!0),this.notRequired()),selectionRange:d=>this.requiredResponse(this.getSmartSelectionRange(d.arguments,!0)),"selectionRange-full":d=>this.requiredResponse(this.getSmartSelectionRange(d.arguments,!1)),prepareCallHierarchy:d=>this.requiredResponse(this.prepareCallHierarchy(d.arguments)),provideCallHierarchyIncomingCalls:d=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(d.arguments)),provideCallHierarchyOutgoingCalls:d=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(d.arguments)),toggleLineComment:d=>this.requiredResponse(this.toggleLineComment(d.arguments,!0)),"toggleLineComment-full":d=>this.requiredResponse(this.toggleLineComment(d.arguments,!1)),toggleMultilineComment:d=>this.requiredResponse(this.toggleMultilineComment(d.arguments,!0)),"toggleMultilineComment-full":d=>this.requiredResponse(this.toggleMultilineComment(d.arguments,!1)),commentSelection:d=>this.requiredResponse(this.commentSelection(d.arguments,!0)),"commentSelection-full":d=>this.requiredResponse(this.commentSelection(d.arguments,!1)),uncommentSelection:d=>this.requiredResponse(this.uncommentSelection(d.arguments,!0)),"uncommentSelection-full":d=>this.requiredResponse(this.uncommentSelection(d.arguments,!1)),provideInlayHints:d=>this.requiredResponse(this.provideInlayHints(d.arguments))})),this.host=n.host,this.cancellationToken=n.cancellationToken,this.typingsInstaller=n.typingsInstaller||Rr,this.byteLength=n.byteLength,this.hrtime=n.hrtime,this.logger=n.logger,this.canUseEvents=n.canUseEvents,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=n.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:i}=n;this.eventHandler=this.canUseEvents?n.eventHandler||(d=>this.defaultEventHandler(d)):void 0;const c={executeWithRequestId:(d,h)=>this.executeWithRequestId(d,h),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(d,h)=>this.logError(d,h),sendRequestCompletedEvent:d=>this.sendRequestCompletedEvent(d),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new zp(c);const u={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:n.useSingleInferredProject,useInferredProjectPerProjectRoot:n.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:i,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:n.globalPlugins,pluginProbeLocations:n.pluginProbeLocations,allowLocalPluginLoads:n.allowLocalPluginLoads,typesMapLocation:n.typesMapLocation,serverMode:n.serverMode,session:this,canUseWatchEvents:n.canUseWatchEvents,incrementalVerifier:n.incrementalVerifier};switch(this.projectService=new gy(u),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new lt(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:gh.forEach(d=>this.handlers.set(d,h=>{throw new Error(`Request: ${h.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Wh.forEach(d=>this.handlers.set(d,h=>{throw new Error(`Request: ${h.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:re.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(n){this.event({request_seq:n},"requestCompleted")}addPerformanceData(n,i){this.performanceData||(this.performanceData={}),this.performanceData[n]=(this.performanceData[n]??0)+i}performanceEventHandler(n){switch(n.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",n.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",n.durationMs);break}}defaultEventHandler(n){switch(n.eventName){case q_:this.projectsUpdatedInBackgroundEvent(n.data.openFiles);break;case Ma:this.event({projectName:n.data.project.getProjectName(),reason:n.data.reason},n.eventName);break;case U0:this.event({projectName:n.data.project.getProjectName()},n.eventName);break;case c_:case zv:case m_:case Yu:this.event(n.data,n.eventName);break;case Kd:this.event({triggerFile:n.data.triggerFile,configFile:n.data.configFileName,diagnostics:Vn(n.data.diagnostics,i=>ka(i,!0))},n.eventName);break;case iy:{this.event({projectName:n.data.project.getProjectName(),languageServiceEnabled:n.data.languageServiceEnabled},n.eventName);break}case Oh:{this.event({telemetryEventName:n.eventName,payload:n.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(n){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${n}`),n.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(i=>this.updateErrorCheck(i,n,100,!0)),this.event({openFiles:n},q_))}logError(n,i){this.logErrorWorker(n,i)}logErrorWorker(n,i,c){let u="Exception on executing command "+i;if(n.message&&(u+=`: +`+Sj(n.message),n.stack&&(u+=` +`+Sj(n.stack))),this.logger.hasLevel(3)){if(c)try{const{file:d,project:h}=this.getFileAndProject(c),S=h.getScriptInfoForNormalizedPath(d);if(S){const E=Dj(S.getSnapshot());u+=` -File text of ${c.file}:${Ej(E)} +File text of ${c.file}:${Sj(E)} `}}catch{}if(n.ProgramFiles){u+=` Program files: ${JSON.stringify(n.ProgramFiles)} @@ -427,18 +427,18 @@ Projects:: Project '${S.projectName}' (${li[S.projectKind]}) ${d} `,u+=S.filesToString(!0),u+=` ----------------------------------------------- -`,d++};this.projectService.externalProjects.forEach(h),this.projectService.configuredProjects.forEach(h),this.projectService.inferredProjects.forEach(h)}}this.logger.msg(u,"Err")}send(n){if(n.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(n)}`);return}this.writeMessage(n)}writeMessage(n){var i;const c=gu(n,this.logger,this.byteLength,this.host.newLine);(i=Zh)==null||i.logEvent(`Response message size: ${c.length}`),this.host.write(c)}event(n,i){this.send(yu(i,n))}doOutput(n,i,c,u,d){const h={seq:0,type:"response",command:i,request_seq:c,success:u,performanceData:this.performanceData};if(u){let S;if(ls(n))h.body=n,S=n.metadata,delete n.metadata;else if(typeof n=="object")if(n.metadata){const{metadata:E,...P}=n;h.body=P,S=E}else h.body=n;else h.body=n;S&&(h.metadata=S)}else re.assert(n===void 0);d&&(h.message=d),this.send(h)}semanticCheck(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"semanticCheck",{file:n,configFilePath:i.canonicalConfigFilePath});const d=vn(i,n)?ke:i.getLanguageService().getSemanticDiagnostics(n).filter(h=>!!h.file);this.sendDiagnosticsEvent(n,i,d,"semanticDiag"),(u=ps)==null||u.pop()}syntacticCheck(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"syntacticCheck",{file:n,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,i,i.getLanguageService().getSyntacticDiagnostics(n),"syntaxDiag"),(u=ps)==null||u.pop()}suggestionCheck(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"suggestionCheck",{file:n,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,i,i.getLanguageService().getSuggestionDiagnostics(n),"suggestionDiag"),(u=ps)==null||u.pop()}sendDiagnosticsEvent(n,i,c,u){try{this.event({file:n,diagnostics:c.map(d=>hi(n,i,d))},u)}catch(d){this.logError(d,u)}}updateErrorCheck(n,i,c,u=!0){re.assert(!this.suppressDiagnosticEvents);const d=this.changeSeq,h=Math.min(c,200);let S=0;const E=()=>{S++,i.length>S&&n.delay("checkOne",h,P)},P=()=>{if(this.changeSeq!==d)return;let k=i[S];if(As(k)&&(k=this.toPendingErrorCheck(k),!k)){E();return}const{fileName:F,project:$}=k;if(Qa($),!!$.containsFile(F,u)&&(this.syntacticCheck(F,$),this.changeSeq===d)){if($.projectService.serverMode!==0){E();return}n.immediate("semanticCheck",()=>{if(this.semanticCheck(F,$),this.changeSeq===d){if(this.getPreferences(F).disableSuggestions){E();return}n.immediate("suggestionCheck",()=>{this.suggestionCheck(F,$),E()})}})}};i.length>S&&this.changeSeq===d&&n.delay("checkOne",c,P)}cleanProjects(n,i){if(i){this.logger.info(`cleaning ${n}`);for(const c of i)c.getLanguageService(!1).cleanupSemanticCache(),c.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",oc(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n);return c.getEncodedSyntacticClassifications(i,n)}getEncodedSemanticClassifications(n){const{file:i,project:c}=this.getFileAndProject(n),u=n.format==="2020"?"2020":"original";return c.getLanguageService().getEncodedSemanticClassifications(i,n,u)}getProject(n){return n===void 0?void 0:this.projectService.findProject(n)}getConfigFileAndProject(n){const i=this.getProject(n.projectFileName),c=te(n.file);return{configFile:i&&i.hasConfigFile(c)?c:void 0,project:i}}getConfigFileDiagnostics(n,i,c){const u=i.getAllProjectErrors(),d=i.getLanguageService().getCompilerOptionsDiagnostics(),h=gi(Hi(u,d),S=>!!S.file&&S.file.fileName===n);return c?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(h):Vn(h,S=>ka(S,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(n){return n.map(i=>({message:D2(i.messageText,this.host.newLine),start:i.start,length:i.length,category:YO(i),code:i.code,source:i.source,startLocation:i.file&&Zc(xm(i.file,i.start)),endLocation:i.file&&Zc(xm(i.file,i.start+i.length)),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Vn(i.relatedInformation,pa)}))}getCompilerOptionsDiagnostics(n){const i=this.getProject(n.projectFileName);return this.convertToDiagnosticsWithLinePosition(gi(i.getLanguageService().getCompilerOptionsDiagnostics(),c=>!c.file),void 0)}convertToDiagnosticsWithLinePosition(n,i){return n.map(c=>({message:D2(c.messageText,this.host.newLine),start:c.start,length:c.length,category:YO(c),code:c.code,source:c.source,startLocation:i&&i.positionToLineOffset(c.start),endLocation:i&&i.positionToLineOffset(c.start+c.length),reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated,relatedInformation:Vn(c.relatedInformation,pa)}))}getDiagnosticsWorker(n,i,c,u){const{project:d,file:h}=this.getFileAndProject(n);if(i&&vn(d,h))return ke;const S=d.getScriptInfoForNormalizedPath(h),E=c(d,h);return u?this.convertToDiagnosticsWithLinePosition(E,S):E.map(P=>hi(h,d,P))}getDefinition(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=this.mapDefinitionInfoLocations(u.getLanguageService().getDefinitionAtPosition(c,d)||ke,u);return i?this.mapDefinitionInfo(h,u):h.map(Hit.mapToOriginalLocation)}mapDefinitionInfoLocations(n,i){return n.map(c=>{const u=fi(c,i);return u?{...u,containerKind:c.containerKind,containerName:c.containerName,kind:c.kind,name:c.name,failedAliasResolution:c.failedAliasResolution,...c.unverified&&{unverified:c.unverified}}:c})}getDefinitionAndBoundSpan(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=re.checkDefined(u.getScriptInfo(c)),S=u.getLanguageService().getDefinitionAndBoundSpan(c,d);if(!S||!S.definitions)return{definitions:ke,textSpan:void 0};const E=this.mapDefinitionInfoLocations(S.definitions,u),{textSpan:P}=S;return i?{definitions:this.mapDefinitionInfo(E,u),textSpan:bu(P,h)}:{definitions:E.map(Hit.mapToOriginalLocation),textSpan:P}}findSourceDefinition(n){var i;const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=u.getLanguageService().getDefinitionAtPosition(c,d);let S=this.mapDefinitionInfoLocations(h||ke,u).slice();if(this.projectService.serverMode===0&&(!gt(S,J=>te(J.fileName)!==c&&!J.isAmbient)||gt(S,J=>!!J.failedAliasResolution))){const J=J5(ve=>ve.textSpan.start,$h);S==null||S.forEach(ve=>J.add(ve));const X=u.getNoDtsResolutionProject(c),ie=X.getLanguageService(),ae=(i=ie.getDefinitionAtPosition(c,d,!0,!1))==null?void 0:i.filter(ve=>te(ve.fileName)!==c);if(gt(ae))for(const ve of ae){if(ve.unverified){const we=F(ve,u.getLanguageService().getProgram(),ie.getProgram());if(gt(we)){for(const Fe of we)J.add(Fe);continue}}J.add(ve)}else{const ve=S.filter(we=>te(we.fileName)!==c&&we.isAmbient);for(const we of gt(ve)?ve:k()){const Fe=P(we.fileName,c,X);if(!Fe)continue;const et=this.projectService.getOrCreateScriptInfoNotOpenedByClient(Fe,X.currentDirectory,X.directoryStructureHost);if(!et)continue;X.containsScriptInfo(et)||(X.addRoot(et),X.updateGraph());const Pe=ie.getProgram(),dt=re.checkDefined(Pe.getSourceFile(Fe));for(const Ie of $(we.name,dt,Pe))J.add(Ie)}}S=oc(J.values())}return S=S.filter(J=>!J.isAmbient&&!J.failedAliasResolution),this.mapDefinitionInfo(S,u);function P(J,X,ie){var ae,ve,we;const Fe=AY(J);if(Fe&&J.lastIndexOf(IP)===Fe.topLevelNodeModulesIndex){const et=J.substring(0,Fe.packageRootIndex),Pe=(ae=u.getModuleResolutionCache())==null?void 0:ae.getPackageJsonInfoCache(),dt=u.getCompilationSettings(),Ie=m$(vf(et+"/package.json",u.getCurrentDirectory()),lae(Pe,u,dt));if(!Ie)return;const ct=c4(Ie,{moduleResolution:2},u,u.getModuleResolutionCache()),Ct=J.substring(Fe.topLevelPackageNameIndex+1,Fe.packageRootIndex),Lt=l4(DQ(Ct)),Ze=u.toPath(J);if(ct&>(ct,Ke=>u.toPath(Ke)===Ze))return(ve=ie.resolutionCache.resolveSingleModuleNameWithoutWatching(Lt,X).resolvedModule)==null?void 0:ve.resolvedFileName;{const Ke=J.substring(Fe.packageRootIndex+1),st=`${Lt}/${wg(Ke)}`;return(we=ie.resolutionCache.resolveSingleModuleNameWithoutWatching(st,X).resolvedModule)==null?void 0:we.resolvedFileName}}}function k(){const J=u.getLanguageService(),X=J.getProgram(),ie=cS(X.getSourceFile(c),d);return(Cm(ie)||xn(ie))&&Kf(ie.parent)&&r6e(ie,ae=>{var ve;if(ae===ie)return;const we=(ve=J.getDefinitionAtPosition(c,ae.getStart(),!0,!1))==null?void 0:ve.filter(Fe=>te(Fe.fileName)!==c&&Fe.isAmbient).map(Fe=>({fileName:Fe.fileName,name:K2(ie)}));if(gt(we))return we})||ke}function F(J,X,ie){var ae;const ve=ie.getSourceFile(J.fileName);if(!ve)return;const we=cS(X.getSourceFile(c),d),Fe=X.getTypeChecker().getSymbolAtLocation(we),et=Fe&&Rh(Fe,276);if(!et)return;const Pe=((ae=et.propertyName)==null?void 0:ae.text)||et.name.text;return $(Pe,ve,ie)}function $(J,X,ie){const ae=Wf.Core.getTopMostDeclarationNamesInFile(J,X);return Qo(ae,ve=>{const we=ie.getTypeChecker().getSymbolAtLocation(ve),Fe=lG(ve);if(we&&Fe)return D4.createDefinitionInfo(Fe,ie.getTypeChecker(),we,Fe,!0)})}}getEmitOutput(n){const{file:i,project:c}=this.getFileAndProject(n);if(!c.shouldEmitFile(c.getScriptInfo(i)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const u=c.getLanguageService().getEmitOutput(i);return n.richResponse?{...u,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u.diagnostics):u.diagnostics.map(d=>ka(d,!0))}:u}mapJSDocTagInfo(n,i,c){return n?n.map(u=>{var d;return{...u,text:c?this.mapDisplayParts(u.text,i):(d=u.text)==null?void 0:d.map(h=>h.text).join("")}}):[]}mapDisplayParts(n,i){return n?n.map(c=>c.kind!=="linkName"?c:{...c,target:this.toFileSpan(c.target.fileName,c.target.textSpan,i)}):[]}mapSignatureHelpItems(n,i,c){return n.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,i),parameters:u.parameters.map(d=>({...d,documentation:this.mapDisplayParts(d.documentation,i)})),tags:this.mapJSDocTagInfo(u.tags,i,c)}))}mapDefinitionInfo(n,i){return n.map(c=>({...this.toFileSpanWithContext(c.fileName,c.textSpan,c.contextSpan,i),...c.unverified&&{unverified:c.unverified}}))}static mapToOriginalLocation(n){return n.originalFileName?(re.assert(n.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...n,fileName:n.originalFileName,textSpan:n.originalTextSpan,targetFileName:n.fileName,targetTextSpan:n.textSpan,contextSpan:n.originalContextSpan,targetContextSpan:n.contextSpan}):n}toFileSpan(n,i,c){const u=c.getLanguageService(),d=u.toLineColumnOffset(n,i.start),h=u.toLineColumnOffset(n,Xy(i));return{file:n,start:{line:d.line+1,offset:d.character+1},end:{line:h.line+1,offset:h.character+1}}}toFileSpanWithContext(n,i,c,u){const d=this.toFileSpan(n,i,u),h=c&&this.toFileSpan(n,c,u);return h?{...d,contextStart:h.start,contextEnd:h.end}:d}getTypeDefinition(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,i),d=this.mapDefinitionInfoLocations(c.getLanguageService().getTypeDefinitionAtPosition(i,u)||ke,c);return this.mapDefinitionInfo(d,c)}mapImplementationLocations(n,i){return n.map(c=>{const u=fi(c,i);return u?{...u,kind:c.kind,displayParts:c.displayParts}:c})}getImplementation(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=this.mapImplementationLocations(u.getLanguageService().getImplementationAtPosition(c,d)||ke,u);return i?h.map(({fileName:S,textSpan:E,contextSpan:P})=>this.toFileSpanWithContext(S,E,P,u)):h.map(Hit.mapToOriginalLocation)}getSyntacticDiagnosticsSync(n){const{configFile:i}=this.getConfigFileAndProject(n);return i?ke:this.getDiagnosticsWorker(n,!1,(c,u)=>c.getLanguageService().getSyntacticDiagnostics(u),!!n.includeLinePosition)}getSemanticDiagnosticsSync(n){const{configFile:i,project:c}=this.getConfigFileAndProject(n);return i?this.getConfigFileDiagnostics(i,c,!!n.includeLinePosition):this.getDiagnosticsWorker(n,!0,(u,d)=>u.getLanguageService().getSemanticDiagnostics(d).filter(h=>!!h.file),!!n.includeLinePosition)}getSuggestionDiagnosticsSync(n){const{configFile:i}=this.getConfigFileAndProject(n);return i?ke:this.getDiagnosticsWorker(n,!0,(c,u)=>c.getLanguageService().getSuggestionDiagnostics(u),!!n.includeLinePosition)}getJsxClosingTag(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=c.getJsxClosingTagAtPosition(i,u);return d===void 0?void 0:{newText:d.newText,caretOffset:0}}getLinkedEditingRange(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=c.getLinkedEditingRangeAtPosition(i,u),h=this.projectService.getScriptInfoForNormalizedPath(i);if(!(h===void 0||d===void 0))return bt(d,h)}getDocumentHighlights(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=u.getLanguageService().getDocumentHighlights(c,d,n.filesToSearch);return h?i?h.map(({fileName:S,highlightSpans:E})=>{const P=u.getScriptInfo(S);return{file:S,highlightSpans:E.map(({textSpan:k,kind:F,contextSpan:$})=>({...K_(k,$,P),kind:F}))}}):h:ke}provideInlayHints(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(i);return c.getLanguageService().provideInlayHints(i,n,this.getPreferences(i)).map(h=>{const{position:S,displayParts:E}=h;return{...h,position:u.positionToLineOffset(S),displayParts:E==null?void 0:E.map(({text:P,span:k,file:F})=>{if(k){re.assertIsDefined(F,"Target file should be defined together with its span.");const $=this.projectService.getScriptInfo(F);return{text:P,span:{start:$.positionToLineOffset(k.start),end:$.positionToLineOffset(k.start+k.length),file:F}}}else return{text:P}})}})}setCompilerOptionsForInferredProjects(n){this.projectService.setCompilerOptionsForInferredProjects(n.options,n.projectRootPath)}getProjectInfo(n){return this.getProjectInfoWorker(n.file,n.projectFileName,n.needFileNameList,!1)}getProjectInfoWorker(n,i,c,u){const{project:d}=this.getFileAndProjectWorker(n,i);return Qa(d),{configFileName:d.getProjectName(),languageServiceDisabled:!d.languageServiceEnabled,fileNames:c?d.getFileNames(!1,u):void 0}}getRenameInfo(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,i),d=this.getPreferences(i);return c.getLanguageService().getRenameInfo(i,u,d)}getProjects(n,i,c){let u,d;if(n.projectFileName){const h=this.getProject(n.projectFileName);h&&(u=[h])}else{const h=i?this.projectService.getScriptInfoEnsuringProjectsUptoDate(n.file):this.projectService.getScriptInfo(n.file);if(h)i||this.projectService.ensureDefaultProjectForFile(h);else return c?ke:(this.projectService.logErrorForScriptInfoNotFound(n.file),Dt.ThrowNoProject());u=h.containingProjects,d=this.projectService.getSymlinkedProjects(h)}return u=gi(u,h=>h.languageServiceEnabled&&!h.isOrphan()),!c&&(!u||!u.length)&&!d?(this.projectService.logErrorForScriptInfoNotFound(n.file??n.projectFileName),Dt.ThrowNoProject()):d?{projects:u,symLinkedProjects:d}:u}getDefaultProject(n){if(n.projectFileName){const c=this.getProject(n.projectFileName);if(c)return c;if(!n.file)return Dt.ThrowNoProject()}return this.projectService.getScriptInfo(n.file).getDefaultProject()}getRenameLocations(n,i){const c=te(n.file),u=this.getPositionInFile(n,c),d=this.getProjects(n),h=this.getDefaultProject(n),S=this.getPreferences(c),E=this.mapRenameInfo(h.getLanguageService().getRenameInfo(c,u,S),re.checkDefined(this.projectService.getScriptInfo(c)));if(!E.canRename)return i?{info:E,locs:[]}:[];const P=av(d,h,{fileName:n.file,pos:u},!!n.findInStrings,!!n.findInComments,S);return i?{info:E,locs:this.toSpanGroups(P)}:P}mapRenameInfo(n,i){if(n.canRename){const{canRename:c,fileToRename:u,displayName:d,fullDisplayName:h,kind:S,kindModifiers:E,triggerSpan:P}=n;return{canRename:c,fileToRename:u,displayName:d,fullDisplayName:h,kind:S,kindModifiers:E,triggerSpan:bu(P,i)}}else return n}toSpanGroups(n){const i=new Map;for(const{fileName:c,textSpan:u,contextSpan:d,originalContextSpan:h,originalTextSpan:S,originalFileName:E,...P}of n){let k=i.get(c);k||i.set(c,k={file:c,locs:[]});const F=re.checkDefined(this.projectService.getScriptInfo(c));k.locs.push({...K_(u,d,F),...P})}return oc(i.values())}getReferences(n,i){const c=te(n.file),u=this.getProjects(n),d=this.getPositionInFile(n,c),h=J0(u,this.getDefaultProject(n),{fileName:n.file,pos:d},this.logger);if(!i)return h;const S=this.getPreferences(c),E=this.getDefaultProject(n),P=E.getScriptInfoForNormalizedPath(c),k=E.getLanguageService().getQuickInfoAtPosition(c,d),F=k?ule(k.displayParts):"",$=k&&k.textSpan,J=$?P.positionToLineOffset($.start).offset:0,X=$?P.getSnapshot().getText($.start,Xy($)):"";return{refs:ea(h,ae=>ae.references.map(ve=>Za(this.projectService,ve,S))),symbolName:X,symbolStartOffset:J,symbolDisplayString:F}}getFileReferences(n,i){const c=this.getProjects(n),u=n.file,d=this.getPreferences(te(u)),h=[],S=Lg();return Eg(c,void 0,P=>{if(P.getCancellationToken().isCancellationRequested())return;const k=P.getLanguageService().getFileReferences(u);if(k)for(const F of k)S.has(F)||(h.push(F),S.add(F))}),i?{refs:h.map(P=>Za(this.projectService,P,d)),symbolName:`"${n.file}"`}:h}openClientFile(n,i,c,u){this.projectService.openClientFileWithNormalizedPath(n,i,c,!1,u)}getPosition(n,i){return n.position!==void 0?n.position:i.lineOffsetToPosition(n.line,n.offset)}getPositionInFile(n,i){const c=this.projectService.getScriptInfoForNormalizedPath(i);return this.getPosition(n,c)}getFileAndProject(n){return this.getFileAndProjectWorker(n.file,n.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(n){const{file:i,project:c}=this.getFileAndProject(n);return{file:i,languageService:c.getLanguageService(!1)}}getFileAndProjectWorker(n,i){const c=te(n),u=this.getProject(i)||this.projectService.ensureDefaultProjectForFile(c);return{file:c,project:u}}getOutliningSpans(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getOutliningSpans(c);if(i){const h=this.projectService.getScriptInfoForNormalizedPath(c);return d.map(S=>({textSpan:bu(S.textSpan,h),hintSpan:bu(S.hintSpan,h),bannerText:S.bannerText,autoCollapse:S.autoCollapse,kind:S.kind}))}else return d}getTodoComments(n){const{file:i,project:c}=this.getFileAndProject(n);return c.getLanguageService().getTodoComments(i,n.descriptors)}getDocCommentTemplate(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getDocCommentTemplateAtPosition(i,u,this.getPreferences(i),this.getFormatOptions(i))}getSpanOfEnclosingComment(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.onlyMultiLine,d=this.getPositionInFile(n,i);return c.getSpanOfEnclosingComment(i,d,u)}getIndentation(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=n.options?oi(n.options):this.getFormatOptions(i),h=c.getIndentationAtPosition(i,u,d);return{position:u,indentation:h}}getBreakpointStatement(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getBreakpointStatementAtPosition(i,u)}getNameOrDottedNameSpan(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getNameOrDottedNameSpan(i,u,u)}isValidBraceCompletion(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.isValidBraceCompletionAtPosition(i,u,n.openingBrace.charCodeAt(0))}getQuickInfoWorker(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=u.getLanguageService().getQuickInfoAtPosition(c,this.getPosition(n,d));if(!h)return;const S=!!this.getPreferences(c).displayPartsForJSDoc;if(i){const E=ule(h.displayParts);return{kind:h.kind,kindModifiers:h.kindModifiers,start:d.positionToLineOffset(h.textSpan.start),end:d.positionToLineOffset(Xy(h.textSpan)),displayString:E,documentation:S?this.mapDisplayParts(h.documentation,u):ule(h.documentation),tags:this.mapJSDocTagInfo(h.tags,u,S)}}else return S?h:{...h,tags:this.mapJSDocTagInfo(h.tags,u,!1)}}getFormattingEditsForRange(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(i),d=u.lineOffsetToPosition(n.line,n.offset),h=u.lineOffsetToPosition(n.endLine,n.endOffset),S=c.getFormattingEditsForRange(i,d,h,this.getFormatOptions(i));if(S)return S.map(E=>this.convertTextChangeToCodeEdit(E,u))}getFormattingEditsForRangeFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsForRange(i,n.position,n.endPosition,u)}getFormattingEditsForDocumentFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsForDocument(i,u)}getFormattingEditsAfterKeystrokeFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsAfterKeystroke(i,n.position,n.key,u)}getFormattingEditsAfterKeystroke(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(i),d=u.lineOffsetToPosition(n.line,n.offset),h=this.getFormatOptions(i),S=c.getFormattingEditsAfterKeystroke(i,d,n.key,h);if(n.key===` -`&&(!S||S.length===0||bc(S,d))){const{lineText:E,absolutePosition:P}=u.textStorage.getAbsolutePositionAndLineText(n.line);if(E&&E.search("\\S")<0){const k=c.getIndentationAtPosition(i,d,h);let F=0,$,J;for($=0,J=E.length;$({start:u.positionToLineOffset(E.span.start),end:u.positionToLineOffset(Xy(E.span)),newText:E.newText?E.newText:""}))}getCompletions(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getLanguageService().getCompletionsAtPosition(c,h,{...We(this.getPreferences(c)),triggerCharacter:n.triggerCharacter,triggerKind:n.triggerKind,includeExternalModuleExports:n.includeExternalModuleExports,includeInsertTextCompletions:n.includeInsertTextCompletions},u.projectService.getFormatCodeOptions(c));if(S===void 0)return;if(i==="completions-full")return S;const E=n.prefix||"",P=Qo(S.entries,F=>{if(S.isMemberCompletion||qf(F.name.toLowerCase(),E.toLowerCase())){const{name:$,kind:J,kindModifiers:X,sortText:ie,insertText:ae,filterText:ve,replacementSpan:we,hasAction:Fe,source:et,sourceDisplay:Pe,labelDetails:dt,isSnippet:Ie,isRecommended:ct,isPackageJsonImport:Ct,isImportStatementCompletion:Lt,data:Ze}=F,Ke=we?bu(we,d):void 0;return{name:$,kind:J,kindModifiers:X,sortText:ie,insertText:ae,filterText:ve,replacementSpan:Ke,isSnippet:Ie,hasAction:Fe||void 0,source:et,sourceDisplay:Pe,labelDetails:dt,isRecommended:ct,isPackageJsonImport:Ct,isImportStatementCompletion:Lt,data:Ze}}});return i==="completions"?(S.metadata&&(P.metadata=S.metadata),P):{...S,optionalReplacementSpan:S.optionalReplacementSpan&&bu(S.optionalReplacementSpan,d),entries:P}}getCompletionEntryDetails(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.projectService.getFormatCodeOptions(c),E=!!this.getPreferences(c).displayPartsForJSDoc,P=Qo(n.entryNames,k=>{const{name:F,source:$,data:J}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return u.getLanguageService().getCompletionEntryDetails(c,h,F,S,$,this.getPreferences(c),J?uc(J,Al):void 0)});return i?E?P:P.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,u,!1)})):P.map(k=>({...k,codeActions:Vn(k.codeActions,F=>this.mapCodeAction(F)),documentation:this.mapDisplayParts(k.documentation,u),tags:this.mapJSDocTagInfo(k.tags,u,E)}))}getCompileOnSaveAffectedFileList(n){const i=this.getProjects(n,!0,!0),c=this.projectService.getScriptInfo(n.file);return c?Xm(c,u=>this.projectService.getScriptInfoForPath(u),i,(u,d)=>{if(!u.compileOnSaveEnabled||!u.languageServiceEnabled||u.isOrphan())return;const h=u.getCompilationSettings();if(!(h.noEmit||Zb(d.fileName)&&!Qn(h)))return{projectFileName:u.getProjectName(),fileNames:u.getCompileOnSaveAffectedFileList(d),projectUsesOutFile:!!Ng(h)}}):ke}emitFile(n){const{file:i,project:c}=this.getFileAndProject(n);if(c||Dt.ThrowNoProject(),!c.languageServiceEnabled)return n.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const u=c.getScriptInfo(i),{emitSkipped:d,diagnostics:h}=c.emitFile(u,(S,E,P)=>this.host.writeFile(S,E,P));return n.richResponse?{emitSkipped:d,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(h):h.map(S=>ka(S,!0))}:!d}getSignatureHelpItems(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getLanguageService().getSignatureHelpItems(c,h,n),E=!!this.getPreferences(c).displayPartsForJSDoc;if(S&&i){const P=S.applicableSpan;return{...S,applicableSpan:{start:d.positionToLineOffset(P.start),end:d.positionToLineOffset(P.start+P.length)},items:this.mapSignatureHelpItems(S.items,u,E)}}else return E||!S?S:{...S,items:S.items.map(P=>({...P,tags:this.mapJSDocTagInfo(P.tags,u,!1)}))}}toPendingErrorCheck(n){const i=te(n),c=this.projectService.tryGetDefaultProjectForFile(i);return c&&{fileName:i,project:c}}getDiagnostics(n,i,c){this.suppressDiagnosticEvents||c.length>0&&this.updateErrorCheck(n,c,i)}change(n){const i=this.projectService.getScriptInfo(n.file);re.assert(!!i),i.textStorage.switchToScriptVersionCache();const c=i.lineOffsetToPosition(n.line,n.offset),u=i.lineOffsetToPosition(n.endLine,n.endOffset);c>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(i,Zf({span:{start:c,length:u-c},newText:n.insertString})))}reload(n,i){const c=te(n.file),u=n.tmpfile===void 0?void 0:te(n.tmpfile),d=this.projectService.getScriptInfoForNormalizedPath(c);d&&(this.changeSeq++,d.reloadFromFile(u)&&this.doOutput(void 0,"reload",i,!0))}saveToTmp(n,i){const c=this.projectService.getScriptInfo(n);c&&c.saveTo(i)}closeClientFile(n){if(!n)return;const i=hf(n);this.projectService.closeClientFile(i)}mapLocationNavigationBarItems(n,i){return Vn(n,c=>({text:c.text,kind:c.kind,kindModifiers:c.kindModifiers,spans:c.spans.map(u=>bu(u,i)),childItems:this.mapLocationNavigationBarItems(c.childItems,i),indent:c.indent}))}getNavigationBarItems(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getNavigationBarItems(c);return d?i?this.mapLocationNavigationBarItems(d,this.projectService.getScriptInfoForNormalizedPath(c)):d:void 0}toLocationNavigationTree(n,i){return{text:n.text,kind:n.kind,kindModifiers:n.kindModifiers,spans:n.spans.map(c=>bu(c,i)),nameSpan:n.nameSpan&&bu(n.nameSpan,i),childItems:Vn(n.childItems,c=>this.toLocationNavigationTree(c,i))}}getNavigationTree(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getNavigationTree(c);return d?i?this.toLocationNavigationTree(d,this.projectService.getScriptInfoForNormalizedPath(c)):d:void 0}getNavigateToItems(n,i){const c=this.getFullNavigateToItems(n);return i?ea(c,({project:u,navigateToItems:d})=>d.map(h=>{const S=u.getScriptInfo(h.fileName),E={name:h.name,kind:h.kind,kindModifiers:h.kindModifiers,isCaseSensitive:h.isCaseSensitive,matchKind:h.matchKind,file:h.fileName,start:S.positionToLineOffset(h.textSpan.start),end:S.positionToLineOffset(Xy(h.textSpan))};return h.kindModifiers&&h.kindModifiers!==""&&(E.kindModifiers=h.kindModifiers),h.containerName&&h.containerName.length>0&&(E.containerName=h.containerName),h.containerKind&&h.containerKind.length>0&&(E.containerKind=h.containerKind),E})):ea(c,({navigateToItems:u})=>u)}getFullNavigateToItems(n){const{currentFileOnly:i,searchValue:c,maxResultCount:u,projectFileName:d}=n;if(i){re.assertIsDefined(n.file);const{file:$,project:J}=this.getFileAndProject(n);return[{project:J,navigateToItems:J.getLanguageService().getNavigateToItems(c,u,$)}]}const h=this.getHostPreferences(),S=[],E=new Map;if(!n.file&&!d)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject($=>P($));else{const $=this.getProjects(n);Eg($,void 0,J=>P(J))}return S;function P($){const J=$.getLanguageService().getNavigateToItems(c,u,void 0,$.isNonTsProject(),h.excludeLibrarySymbolsInNavTo),X=gi(J,ie=>k(ie)&&!tn(k1(ie),$));X.length&&S.push({project:$,navigateToItems:X})}function k($){const J=$.name;if(!E.has(J))return E.set(J,[$]),!0;const X=E.get(J);for(const ie of X)if(F(ie,$))return!1;return X.push($),!0}function F($,J){return $===J?!0:!$||!J?!1:$.containerKind===J.containerKind&&$.containerName===J.containerName&&$.fileName===J.fileName&&$.isCaseSensitive===J.isCaseSensitive&&$.kind===J.kind&&$.kindModifiers===J.kindModifiers&&$.matchKind===J.matchKind&&$.name===J.name&&$.textSpan.start===J.textSpan.start&&$.textSpan.length===J.textSpan.length}}getSupportedCodeFixes(n){if(!n)return fle();if(n.file){const{file:c,project:u}=this.getFileAndProject(n);return u.getLanguageService().getSupportedCodeFixes(c)}const i=this.getProject(n.projectFileName);return i||Dt.ThrowNoProject(),i.getLanguageService().getSupportedCodeFixes()}isLocation(n){return n.line!==void 0}extractPositionOrRange(n,i){let c,u;return this.isLocation(n)?c=d(n):u=this.getRange(n,i),re.checkDefined(c===void 0?u:c);function d(h){return h.position!==void 0?h.position:i.lineOffsetToPosition(h.line,h.offset)}}getRange(n,i){const{startPosition:c,endPosition:u}=this.getStartAndEndPosition(n,i);return{pos:c,end:u}}getApplicableRefactors(n){const{file:i,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(i);return c.getLanguageService().getApplicableRefactors(i,this.extractPositionOrRange(n,u),this.getPreferences(i),n.triggerReason,n.kind,n.includeInteractiveActions)}getEditsForRefactor(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=u.getScriptInfoForNormalizedPath(c),h=u.getLanguageService().getEditsForRefactor(c,this.getFormatOptions(c),this.extractPositionOrRange(n,d),n.refactor,n.action,this.getPreferences(c),n.interactiveRefactorArguments);if(h===void 0)return{edits:[]};if(i){const{renameFilename:S,renameLocation:E,edits:P}=h;let k;if(S!==void 0&&E!==void 0){const F=u.getScriptInfoForNormalizedPath(te(S));k=Si(Ij(F.getSnapshot()),S,E,P)}return{renameLocation:k,renameFilename:S,edits:this.mapTextChangesToCodeEdits(P),notApplicableReason:h.notApplicableReason}}return h}getMoveToRefactoringFileSuggestions(n){const{file:i,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(i);return c.getLanguageService().getMoveToRefactoringFileSuggestions(i,this.extractPositionOrRange(n,u),this.getPreferences(i))}organizeImports(n,i){re.assert(n.scope.type==="file");const{file:c,project:u}=this.getFileAndProject(n.scope.args),d=u.getLanguageService().organizeImports({fileName:c,mode:n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(c),this.getPreferences(c));return i?this.mapTextChangesToCodeEdits(d):d}getEditsForFileRename(n,i){const c=te(n.oldFilePath),u=te(n.newFilePath),d=this.getHostFormatOptions(),h=this.getHostPreferences(),S=new Set,E=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(P=>{const k=P.getLanguageService().getEditsForFileRename(c,u,d,h),F=[];for(const $ of k)S.has($.fileName)||(E.push($),F.push($.fileName));for(const $ of F)S.add($)}),i?E.map(P=>this.mapTextChangeToCodeEdit(P)):E}getCodeFixes(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=u.getScriptInfoForNormalizedPath(c),{startPosition:h,endPosition:S}=this.getStartAndEndPosition(n,d);let E;try{E=u.getLanguageService().getCodeFixesAtPosition(c,h,S,n.errorCodes,this.getFormatOptions(c),this.getPreferences(c))}catch(P){const k=u.getLanguageService(),F=[...k.getSyntacticDiagnostics(c),...k.getSemanticDiagnostics(c),...k.getSuggestionDiagnostics(c)].map(J=>FX(h,S-h,J.start,J.length)&&J.code),$=n.errorCodes.find(J=>!F.includes(J));throw $!==void 0&&(P.message=`BADCLIENT: Bad error code, ${$} not found in range ${h}..${S} (found: ${F.join(", ")}); could have caused this error: -${P.message}`),P}return i?E.map(P=>this.mapCodeFixAction(P)):E}getCombinedCodeFix({scope:n,fixId:i},c){re.assert(n.type==="file");const{file:u,project:d}=this.getFileAndProject(n.args),h=d.getLanguageService().getCombinedCodeFix({type:"file",fileName:u},i,this.getFormatOptions(u),this.getPreferences(u));return c?{changes:this.mapTextChangesToCodeEdits(h.changes),commands:h.commands}:h}applyCodeActionCommand(n){const i=n.command;for(const c of BC(i)){const{file:u,project:d}=this.getFileAndProject(c);d.getLanguageService().applyCodeActionCommand(c,this.getFormatOptions(u)).then(h=>{},h=>{})}return{}}getStartAndEndPosition(n,i){let c,u;return n.startPosition!==void 0?c=n.startPosition:(c=i.lineOffsetToPosition(n.startLine,n.startOffset),n.startPosition=c),n.endPosition!==void 0?u=n.endPosition:(u=i.lineOffsetToPosition(n.endLine,n.endOffset),n.endPosition=u),{startPosition:c,endPosition:u}}mapCodeAction({description:n,changes:i,commands:c}){return{description:n,changes:this.mapTextChangesToCodeEdits(i),commands:c}}mapCodeFixAction({fixName:n,description:i,changes:c,commands:u,fixId:d,fixAllDescription:h}){return{fixName:n,description:i,changes:this.mapTextChangesToCodeEdits(c),commands:u,fixId:d,fixAllDescription:h}}mapTextChangesToCodeEdits(n){return n.map(i=>this.mapTextChangeToCodeEdit(i))}mapTextChangeToCodeEdit(n){const i=this.projectService.getScriptInfoOrConfig(n.fileName);return!!n.isNewFile==!!i&&(i||this.projectService.logErrorForScriptInfoNotFound(n.fileName),re.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!n.isNewFile,hasScriptInfo:!!i}))),i?{fileName:n.fileName,textChanges:n.textChanges.map(c=>ig(c,i))}:ii(n)}convertTextChangeToCodeEdit(n,i){return{start:i.positionToLineOffset(n.span.start),end:i.positionToLineOffset(n.span.start+n.span.length),newText:n.newText?n.newText:""}}getBraceMatching(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getBraceMatchingAtPosition(c,h);return S?i?S.map(E=>bu(E,d)):S:void 0}getDiagnosticsForProject(n,i,c){if(this.suppressDiagnosticEvents)return;const{fileNames:u,languageServiceDisabled:d}=this.getProjectInfoWorker(c,void 0,!0,!0);if(d)return;const h=u.filter(ie=>!ie.includes("lib.d.ts"));if(h.length===0)return;const S=[],E=[],P=[],k=[],F=te(c),$=this.projectService.ensureDefaultProjectForFile(F);for(const ie of h)this.getCanonicalFileName(ie)===this.getCanonicalFileName(c)?S.push(ie):this.projectService.getScriptInfo(ie).isScriptOpen()?E.push(ie):Zb(ie)?k.push(ie):P.push(ie);const X=[...S,...E,...P,...k].map(ie=>({fileName:ie,project:$}));this.updateErrorCheck(n,X,i,!1)}configurePlugin(n){this.projectService.configurePlugin(n)}getSmartSelectionRange(n,i){const{locations:c}=n,{file:u,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(n),h=re.checkDefined(this.projectService.getScriptInfo(u));return Vn(c,S=>{const E=this.getPosition(S,h),P=d.getSmartSelectionRange(u,E);return i?this.mapSelectionRange(P,h):P})}toggleLineComment(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfo(c),h=this.getRange(n,d),S=u.toggleLineComment(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}toggleMultilineComment(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.toggleMultilineComment(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}commentSelection(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.commentSelection(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}uncommentSelection(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.uncommentSelection(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}mapSelectionRange(n,i){const c={textSpan:bu(n.textSpan,i)};return n.parent&&(c.parent=this.mapSelectionRange(n.parent,i)),c}getScriptInfoFromProjectService(n){const i=te(n),c=this.projectService.getScriptInfoForNormalizedPath(i);return c||(this.projectService.logErrorForScriptInfoNotFound(i),Dt.ThrowNoProject())}toProtocolCallHierarchyItem(n){const i=this.getScriptInfoFromProjectService(n.file);return{name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,file:n.file,containerName:n.containerName,span:bu(n.span,i),selectionSpan:bu(n.selectionSpan,i)}}toProtocolCallHierarchyIncomingCall(n){const i=this.getScriptInfoFromProjectService(n.from.file);return{from:this.toProtocolCallHierarchyItem(n.from),fromSpans:n.fromSpans.map(c=>bu(c,i))}}toProtocolCallHierarchyOutgoingCall(n,i){return{to:this.toProtocolCallHierarchyItem(n.to),fromSpans:n.fromSpans.map(c=>bu(c,i))}}prepareCallHierarchy(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(i);if(u){const d=this.getPosition(n,u),h=c.getLanguageService().prepareCallHierarchy(i,d);return h&&she(h,S=>this.toProtocolCallHierarchyItem(S))}}provideCallHierarchyIncomingCalls(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(i);return c.getLanguageService().provideCallHierarchyIncomingCalls(i,this.getPosition(n,u)).map(h=>this.toProtocolCallHierarchyIncomingCall(h))}provideCallHierarchyOutgoingCalls(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(i);return c.getLanguageService().provideCallHierarchyOutgoingCalls(i,this.getPosition(n,u)).map(h=>this.toProtocolCallHierarchyOutgoingCall(h,u))}getCanonicalFileName(n){const i=this.host.useCaseSensitiveFileNames?n:Q0(n);return hf(i)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(n){return{response:n,responseRequired:!0}}addProtocolHandler(n,i){if(this.handlers.has(n))throw new Error(`Protocol handler already exists for command "${n}"`);this.handlers.set(n,i)}setCurrentRequest(n){re.assert(this.currentRequestId===void 0),this.currentRequestId=n,this.cancellationToken.setRequest(n)}resetCurrentRequest(n){re.assert(this.currentRequestId===n),this.currentRequestId=void 0,this.cancellationToken.resetRequest(n)}executeWithRequestId(n,i){try{return this.setCurrentRequest(n),i()}finally{this.resetCurrentRequest(n)}}executeCommand(n){const i=this.handlers.get(n.command);if(i){const c=this.executeWithRequestId(n.seq,()=>i(n));return this.projectService.enableRequestedPlugins(),c}else return this.logger.msg(`Unrecognized JSON command:${qW(n)}`,"Err"),this.doOutput(void 0,"unknown",n.seq,!1,`Unrecognized JSON command: ${n.command}`),{responseRequired:!1}}onMessage(n){var i,c,u,d,h,S,E,P,k,F,$;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let J;this.logger.hasLevel(2)&&(J=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Ej(this.toStringMessage(n))}`));let X,ie;try{X=this.parseMessage(n),ie=X.arguments&&X.arguments.file?X.arguments:void 0,(i=ps)==null||i.instant(ps.Phase.Session,"request",{seq:X.seq,command:X.command}),(c=Zh)==null||c.logStartCommand(""+X.command,this.toStringMessage(n).substring(0,100)),(u=ps)==null||u.push(ps.Phase.Session,"executeCommand",{seq:X.seq,command:X.command},!0);const{response:ae,responseRequired:ve}=this.executeCommand(X);if((d=ps)==null||d.pop(),this.logger.hasLevel(2)){const we=_e(this.hrtime(J)).toFixed(4);ve?this.logger.perftrc(`${X.seq}::${X.command}: elapsed time (in milliseconds) ${we}`):this.logger.perftrc(`${X.seq}::${X.command}: async elapsed time (in milliseconds) ${we}`)}(h=Zh)==null||h.logStopCommand(""+X.command,"Success"),(S=ps)==null||S.instant(ps.Phase.Session,"response",{seq:X.seq,command:X.command,success:!!ae}),ae?this.doOutput(ae,X.command,X.seq,!0):ve&&this.doOutput(void 0,X.command,X.seq,!1,"No content available.")}catch(ae){if((E=ps)==null||E.popAll(),ae instanceof QO){(P=Zh)==null||P.logStopCommand(""+(X&&X.command),"Canceled: "+ae),(k=ps)==null||k.instant(ps.Phase.Session,"commandCanceled",{seq:X==null?void 0:X.seq,command:X==null?void 0:X.command}),this.doOutput({canceled:!0},X.command,X.seq,!0);return}this.logErrorWorker(ae,this.toStringMessage(n),ie),(F=Zh)==null||F.logStopCommand(""+(X&&X.command),"Error: "+ae),($=ps)==null||$.instant(ps.Phase.Session,"commandError",{seq:X==null?void 0:X.seq,command:X==null?void 0:X.command,message:ae.message}),this.doOutput(void 0,X?X.command:"unknown",X?X.seq:0,!1,"Error processing request. "+ae.message+` -`+ae.stack)}}parseMessage(n){return JSON.parse(n)}toStringMessage(n){return n}getFormatOptions(n){return this.projectService.getFormatCodeOptions(n)}getPreferences(n){return this.projectService.getPreferences(n)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),vy,ub,E0,P2,MA,aw,DI,Me,jn,Mi,js=G({"src/server/scriptVersionCache.ts"(){l_(),$l(),vy=4,ub=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ub||{}),E0=class{constructor(){this.goSubtree=!0,this.lineIndex=new Me,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new jn,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,n){n&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const c=Me.linesFromText(e).lines;c.length>1&&c[c.length-1]===""&&c.pop();let u,d;for(let S=this.endBranch.length-1;S>=0;S--)this.endBranch[S].updateCounts(),this.endBranch[S].charCount()===0&&(d=this.endBranch[S],S>0?u=this.endBranch[S-1]:u=this.branchNode);d&&u.remove(d);const h=this.startPath[this.startPath.length-1];if(c.length>0)if(h.text=c[0],c.length>1){let S=new Array(c.length-1),E=h;for(let F=1;F=0;){const F=this.startPath[P];S=F.insertAt(E,S),P--,E=F}let k=S.length;for(;k>0;){const F=new jn;F.add(this.lineIndex.root),S=F.insertAt(this.lineIndex.root,S),k=S.length,this.lineIndex.root=F}this.lineIndex.root.updateCounts()}else for(let S=this.startPath.length-2;S>=0;S--)this.startPath[S].updateCounts();else{this.startPath[this.startPath.length-2].remove(h);for(let E=this.startPath.length-2;E>=0;E--)this.startPath[E].updateCounts()}return this.lineIndex}post(e,n,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,n,i,c,u){const d=this.stack[this.stack.length-1];this.state===2&&u===1&&(this.state=1,this.branchNode=d,this.lineCollectionAtBranch=i);let h;function S(E){return E.isLeaf()?new Mi(""):new jn}switch(u){case 0:this.goSubtree=!1,this.state!==4&&d.add(i);break;case 1:this.state===4?this.goSubtree=!1:(h=S(i),d.add(h),this.startPath.push(h));break;case 2:this.state!==4?(h=S(i),d.add(h),this.startPath.push(h)):i.isLeaf()||(h=S(i),d.add(h),this.endBranch.push(h));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(h=S(i),d.add(h),this.endBranch.push(h));break;case 5:this.goSubtree=!1,this.state!==1&&d.add(i);break}this.goSubtree&&this.stack.push(h)}leaf(e,n,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+n)):this.trailingText=i.text.substring(e+n)}},P2=class{constructor(e,n,i){this.pos=e,this.deleteLen=n,this.insertedText=i}getTextChangeRange(){return WX(p1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},MA=class HK{constructor(){this.changes=[],this.versions=new Array(HK.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(nthis.currentVersion))return n%HK.maxVersions}currentVersionToIndex(){return this.currentVersion%HK.maxVersions}edit(n,i,c){this.changes.push(new P2(n,i,c)),(this.changes.length>HK.changeNumberThreshold||i>HK.changeLengthThreshold||c&&c.length>HK.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=n.index;for(const c of this.changes)i=i.edit(c.pos,c.deleteLen,c.insertedText);n=new DI(this.currentVersion+1,this,i,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=HK.maxVersions&&(this.minVersion=this.currentVersion-HK.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(n){return this._getSnapshot().index.lineNumberToInfo(n)}lineOffsetToPosition(n,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(n)+(i-1)}positionToLineOffset(n){return this._getSnapshot().index.positionToLineOffset(n)}lineToTextSpan(n){const i=this._getSnapshot().index,{lineText:c,absolutePosition:u}=i.lineNumberToInfo(n+1),d=c!==void 0?c.length:i.absolutePositionOfStartOfLine(n+2)-u;return p1(u,d)}getTextChangesBetweenVersions(n,i){if(n=this.minVersion){const c=[];for(let u=n+1;u<=i;u++){const d=this.versions[this.versionToIndex(u)];for(const h of d.changesSincePreviousVersion)c.push(h.getTextChangeRange())}return nb(c)}else return;else return FL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){const i=new HK,c=new DI(0,i,new Me);i.versions[i.currentVersion]=c;const u=Me.linesFromText(n);return c.index.load(u.lines),i}},MA.changeNumberThreshold=8,MA.changeLengthThreshold=256,MA.maxVersions=8,aw=MA,DI=class KDt{constructor(n,i,c,u=ke){this.version=n,this.cache=i,this.index=c,this.changesSincePreviousVersion=u}getText(n,i){return this.index.getText(n,i-n)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof KDt&&this.cache===n.cache)return this.version<=n.version?FL:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},Me=class x1t{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(n){return this.lineNumberToInfo(n).absolutePosition}positionToLineOffset(n){const{oneBasedLine:i,zeroBasedColumn:c}=this.root.charOffsetToLineInfo(1,n);return{line:i,offset:c+1}}positionToColumnAndLineText(n){return this.root.charOffsetToLineInfo(1,n)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(n){const i=this.getLineCount();if(n<=i){const{position:c,leaf:u}=this.root.lineNumberToInfo(n,0);return{absolutePosition:c,lineText:u&&u.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){const i=[];for(let c=0;c0&&n{c=c.concat(h.text.substring(u,u+d))}}),c}getLength(){return this.root.charCount()}every(n,i,c){c||(c=this.root.charCount());const u={goSubtree:!0,done:!1,leaf(d,h,S){n(S,d,h)||(this.done=!0)}};return this.walk(i,c-i,u),!u.done}edit(n,i,c){if(this.root.charCount()===0)return re.assert(i===0),c!==void 0?(this.load(x1t.linesFromText(c).lines),this):void 0;{let u;if(this.checkEdits){const S=this.getText(0,this.root.charCount());u=S.slice(0,n)+c+S.slice(n+i)}const d=new E0;let h=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;const S=this.getText(n,1);c?c=S+c:c=S,i=0,h=!0}else if(i>0){const S=n+i,{zeroBasedColumn:E,lineText:P}=this.positionToColumnAndLineText(S);E===0&&(i+=P.length,c=c?c+P:P)}if(this.root.walk(n,i,d),d.insertLines(c,h),this.checkEdits){const S=d.lineIndex.getText(0,d.lineIndex.getLength());re.assert(u===S,"buffer edit mismatch")}return d.lineIndex}}static buildTreeFromBottom(n){if(n.length0?c[u]=d:c.pop(),{lines:c,lineMap:i}}},jn=class A1t{constructor(n=[]){this.children=n,this.totalChars=0,this.totalLines=0,n.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const n of this.children)this.totalChars+=n.charCount(),this.totalLines+=n.lineCount()}execWalk(n,i,c,u,d){return c.pre&&c.pre(n,i,this.children[u],this,d),c.goSubtree?(this.children[u].walk(n,i,c),c.post&&c.post(n,i,this.children[u],this,d)):c.goSubtree=!0,c.done}skipChild(n,i,c,u,d){u.pre&&!u.done&&(u.pre(n,i,this.children[c],this,d),u.goSubtree=!0)}walk(n,i,c){let u=0,d=this.children[u].charCount(),h=n;for(;h>=d;)this.skipChild(h,i,u,c,0),h-=d,u++,d=this.children[u].charCount();if(h+i<=d){if(this.execWalk(h,i,c,u,2))return}else{if(this.execWalk(h,d-h,c,u,1))return;let S=i-(d-h);for(u++,d=this.children[u].charCount();S>d;){if(this.execWalk(0,d,c,u,3))return;S-=d,u++,d=this.children[u].charCount()}if(S>0&&this.execWalk(0,S,c,u,4))return}if(c.pre){const S=this.children.length;if(ui)return d.isLeaf()?{oneBasedLine:n,zeroBasedColumn:i,lineText:d.text}:d.charOffsetToLineInfo(n,i);i-=d.charCount(),n+=d.lineCount()}const c=this.lineCount();if(c===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const u=re.checkDefined(this.lineNumberToInfo(c,0).leaf);return{oneBasedLine:c,zeroBasedColumn:u.charCount(),lineText:void 0}}lineNumberToInfo(n,i){for(const c of this.children){const u=c.lineCount();if(u>=n)return c.isLeaf()?{position:i,leaf:c}:c.lineNumberToInfo(n,i);n-=u,i+=c.charCount()}return{position:i,leaf:void 0}}splitAfter(n){let i;const c=this.children.length;n++;const u=n;if(n=0;$--)E[$].children.length===0&&E.pop()}h&&E.push(h),this.updateCounts();for(let k=0;kdZ,ActionPackageInstalled:()=>T8e,ActionSet:()=>_Z,ActionWatchTypingLocations:()=>Ise,Arguments:()=>Cge,AutoImportProviderProject:()=>gn,AuxiliaryProject:()=>xt,CharRangeSection:()=>ub,CloseFileWatcherEvent:()=>Yu,CommandNames:()=>N_,ConfigFileDiagEvent:()=>Kd,ConfiguredProject:()=>qr,CreateDirectoryWatcherEvent:()=>m_,CreateFileWatcherEvent:()=>zv,Errors:()=>Dt,EventBeginInstallTypes:()=>dAe,EventEndInstallTypes:()=>pAe,EventInitializationFailed:()=>S8e,EventTypesRegistry:()=>EF,ExternalProject:()=>mt,GcTimer:()=>lt,InferredProject:()=>_o,LargeFileReferencedEvent:()=>c_,LineIndex:()=>Me,LineLeaf:()=>Mi,LineNode:()=>jn,LogLevel:()=>ht,Msg:()=>_t,OpenFileInfoTelemetryEvent:()=>jg,Project:()=>Ir,ProjectInfoTelemetryEvent:()=>Oh,ProjectKind:()=>li,ProjectLanguageServiceStateEvent:()=>iy,ProjectLoadingFinishEvent:()=>U0,ProjectLoadingStartEvent:()=>Ma,ProjectReferenceProjectLoadKind:()=>nm,ProjectService:()=>hy,ProjectsUpdatedInBackgroundEvent:()=>q_,ScriptInfo:()=>ro,ScriptVersionCache:()=>aw,Session:()=>Gv,TextStorage:()=>ha,ThrottledOperations:()=>ut,TypingsCache:()=>mc,allFilesAreJsOrDts:()=>jc,allRootFilesAreJsOrDts:()=>$a,asNormalizedPath:()=>de,convertCompilerOptions:()=>Qr,convertFormatOptions:()=>oi,convertScriptKindName:()=>xu,convertTypeAcquisition:()=>es,convertUserPreferences:()=>We,convertWatchOptions:()=>co,countEachFileTypes:()=>Fi,createInstallTypingsRequest:()=>ee,createModuleSpecifierCache:()=>GT,createNormalizedPathMap:()=>ue,createPackageJsonCache:()=>oh,createSortedArray:()=>Le,emptyArray:()=>ke,findArgument:()=>fAe,forEachResolvedProjectReferenceProject:()=>Zt,formatDiagnosticToProtocol:()=>ka,formatMessage:()=>gu,getBaseConfigFileName:()=>it,getLocationInNewDocument:()=>Si,hasArgument:()=>b8e,hasNoTypeScriptSource:()=>Xu,indent:()=>Ej,isBackgroundProject:()=>Jr,isConfigFile:()=>fp,isConfiguredProject:()=>vc,isDynamicFileName:()=>so,isExternalProject:()=>er,isInferredProject:()=>sl,isInferredProjectName:()=>Ne,makeAutoImportProviderProjectName:()=>Ve,makeAuxiliaryProjectName:()=>pt,makeInferredProjectName:()=>Be,maxFileSize:()=>x_,maxProgramSizeForNonTsFiles:()=>mu,normalizedPathToPath:()=>oe,nowString:()=>_Ae,nullCancellationToken:()=>du,nullTypingsInstaller:()=>Rr,projectContainsInfoDirectly:()=>Ca,protocol:()=>Gn,removeSorted:()=>Ye,stringifyIndented:()=>qW,toEvent:()=>yu,toNormalizedPath:()=>te,tryConvertScriptKindName:()=>Ui,typingsInstaller:()=>I,updateProjectIfDirty:()=>Qa});var $l=G({"src/server/_namespaces/ts.server.ts"(){kse(),O(),V(),Ft(),zt(),Ur(),Gs(),Ea(),_r(),fS(),vE(),yy(),jv(),js()}}),y_={};Oe(y_,{ANONYMOUS:()=>bce,AccessFlags:()=>ure,AssertionLevel:()=>AT,AssignmentDeclarationKind:()=>yre,AssignmentKind:()=>boe,Associativity:()=>Ude,BreakpointResolver:()=>TDe,BuilderFileEmit:()=>Pxe,BuilderProgramKind:()=>Nxe,BuilderState:()=>cD,BundleFileSectionKind:()=>DX,CallHierarchy:()=>$j,CharacterCodes:()=>Cre,CheckFlags:()=>are,CheckMode:()=>_E,ClassificationType:()=>Bse,ClassificationTypeNames:()=>SAe,CommentDirectiveType:()=>_X,Comparison:()=>sn,CompletionInfoFlags:()=>G$,CompletionTriggerKind:()=>Rse,Completions:()=>ow,ContainerFlags:()=>kQ,ContextFlags:()=>hX,Debug:()=>re,DiagnosticCategory:()=>wz,Diagnostics:()=>N,DocumentHighlights:()=>yhe,ElementFlags:()=>lre,EmitFlags:()=>AX,EmitHint:()=>Pre,EmitOnly:()=>mX,EndOfLineState:()=>gZ,EnumKind:()=>ore,ExitStatus:()=>AU,ExportKind:()=>HAe,Extension:()=>Dre,ExternalEmitHelpers:()=>kre,FileIncludeKind:()=>dX,FilePreprocessingDiagnosticsKind:()=>pX,FileSystemEntryKind:()=>aP,FileWatcherEventKind:()=>xTe,FindAllReferences:()=>Wf,FlattenLevel:()=>vme,FlowFlags:()=>Pz,ForegroundColorEscapeSequences:()=>Kme,FunctionFlags:()=>Vde,GeneratedIdentifierFlags:()=>W_e,GetLiteralTextFlags:()=>jde,GoToDefinition:()=>D4,HighlightSpanKind:()=>Lse,IdentifierNameMap:()=>fj,IdentifierNameMultiMap:()=>Rae,ImportKind:()=>UAe,ImportsNotUsedAsValues:()=>n9,IndentStyle:()=>Ose,IndexFlags:()=>fre,IndexKind:()=>dre,InferenceFlags:()=>gre,InferencePriority:()=>mre,InlayHintKind:()=>Mse,InlayHints:()=>vke,InternalEmitFlags:()=>Ire,InternalSymbolName:()=>sre,InvalidatedProjectKind:()=>uAe,JSDocParsingMode:()=>Rre,JsDoc:()=>nO,JsTyping:()=>kk,JsxEmit:()=>DU,JsxFlags:()=>F_e,JsxReferenceKind:()=>_re,LanguageServiceMode:()=>z$,LanguageVariant:()=>Are,LexicalEnvironmentFlags:()=>CX,ListFormat:()=>IX,LogLevel:()=>O_e,MemberOverrideStatus:()=>Yne,ModifierFlags:()=>kz,ModuleDetectionKind:()=>vre,ModuleInstanceState:()=>M2e,ModuleKind:()=>Rz,ModuleResolutionKind:()=>t9,ModuleSpecifierEnding:()=>_Ee,NavigateTo:()=>hCe,NavigationBar:()=>T3e,NewLineKind:()=>Ere,NodeBuilderFlags:()=>Qne,NodeCheckFlags:()=>cre,NodeFactoryFlags:()=>Ioe,NodeFlags:()=>tu,NodeResolutionFeatures:()=>mae,ObjectFlags:()=>bX,OperationCanceledException:()=>QO,OperatorPrecedence:()=>Hde,OrganizeImports:()=>lD,OrganizeImportsMode:()=>wse,OuterExpressionKinds:()=>Nre,OutliningElementsCollector:()=>Pke,OutliningSpanKind:()=>z3,OutputFileType:()=>yAe,PackageJsonAutoImportPreference:()=>wge,PackageJsonDependencyGroup:()=>Pse,PatternMatchKind:()=>tee,PollingInterval:()=>Ore,PollingWatchKind:()=>Sre,PragmaKindFlags:()=>wre,PrivateIdentifierKind:()=>LY,ProcessLevel:()=>Ame,ProgramUpdateLevel:()=>Ume,QuotePreference:()=>fhe,RelationComparisonResult:()=>Xne,Rename:()=>v0e,ScriptElementKind:()=>bAe,ScriptElementKindModifier:()=>TAe,ScriptKind:()=>EX,ScriptSnapshot:()=>mZ,ScriptTarget:()=>xre,SemanticClassificationFormat:()=>Nse,SemanticMeaning:()=>vce,SemicolonPreference:()=>Fse,SignatureCheckMode:()=>y$,SignatureFlags:()=>CU,SignatureHelp:()=>gue,SignatureKind:()=>SX,SmartSelectionRange:()=>Mke,SnippetKind:()=>IU,SortKind:()=>kM,StructureIsReused:()=>gX,SymbolAccessibility:()=>tre,SymbolDisplay:()=>W6,SymbolDisplayPartKind:()=>Wse,SymbolFlags:()=>yX,SymbolFormatFlags:()=>ere,SyntaxKind:()=>NM,SyntheticSymbolKind:()=>nre,Ternary:()=>hre,ThrottledCancellationToken:()=>gye,TokenClass:()=>vAe,TokenFlags:()=>fX,TransformFlags:()=>xX,TypeFacts:()=>aj,TypeFlags:()=>vX,TypeFormatFlags:()=>Zne,TypeMapKind:()=>pre,TypePredicateKind:()=>rre,TypeReferenceSerializationKind:()=>ire,UnionReduction:()=>Nz,UpToDateStatusType:()=>yge,VarianceFlags:()=>TX,Version:()=>ZT,VersionRange:()=>yN,WatchDirectoryFlags:()=>Mz,WatchDirectoryKind:()=>Tre,WatchFileKind:()=>bre,WatchLogLevel:()=>Hme,WatchType:()=>r0,accessPrivateIdentifier:()=>yme,addDisposableResourceHelper:()=>PG,addEmitFlags:()=>cE,addEmitHelper:()=>v3,addEmitHelpers:()=>$N,addInternalEmitFlags:()=>DG,addNodeFactoryPatcher:()=>oUe,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>sW,addSyntheticTrailingComment:()=>koe,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>wG,affectsDeclarationPathOptionDeclarations:()=>iae,affectsEmitOptionDeclarations:()=>rae,allKeysStartWithDot:()=>xQ,altDirectorySeparator:()=>r7,and:()=>mU,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>bz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>Tz,arraysEqual:()=>sf,assertType:()=>gN,assign:()=>AS,assignHelper:()=>dJ,asyncDelegator:()=>mJ,asyncGeneratorHelper:()=>pJ,asyncSuperHelper:()=>nS,asyncValues:()=>gJ,attachFileToDiagnostics:()=>jN,awaitHelper:()=>T3,awaiterHelper:()=>yJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>w3,breakIntoCharacterSpans:()=>Q8e,breakIntoWordSpans:()=>iCe,buildLinkParts:()=>wAe,buildOpts:()=>YG,buildOverload:()=>O0e,bundlerModuleNameResolver:()=>ELe,canBeConvertedToAsync:()=>pCe,canHaveDecorators:()=>S6,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>J8,canHaveIllegalDecorators:()=>Spe,canHaveIllegalModifiers:()=>GEe,canHaveIllegalType:()=>L6e,canHaveIllegalTypeParameters:()=>zEe,canHaveJSDoc:()=>T2,canHaveLocals:()=>XD,canHaveModifiers:()=>DA,canHaveSymbol:()=>ck,canJsonReportNoInputFiles:()=>e$,canProduceDiagnostics:()=>Fae,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Oxe,canWatchAtTypes:()=>Mxe,canWatchDirectoryOrFile:()=>rZ,cartesianProduct:()=>mTe,cast:()=>uc,chainBundle:()=>_C,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>Vre,changeCompilerHostLikeToUseCache:()=>NR,changeExtension:()=>SA,changesAffectModuleResolution:()=>Td,changesAffectingProgramStructure:()=>zMe,childIsDecorated:()=>b7,classElementOrClassElementParameterIsDecorated:()=>xde,classHasClassThisAssignment:()=>bme,classHasDeclaredOrExplicitlyAssignedName:()=>Y2e,classHasExplicitlyAssignedName:()=>Sme,classOrConstructorParameterIsDecorated:()=>yP,classPrivateFieldGetHelper:()=>IJ,classPrivateFieldInHelper:()=>Noe,classPrivateFieldSetHelper:()=>kJ,classicNameResolver:()=>C6,classifier:()=>kOe,cleanExtendedConfigCache:()=>Gme,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>VQ,climbPastPropertyAccess:()=>TZ,climbPastPropertyOrElementAccess:()=>Lge,clone:()=>S8,cloneCompilerOptions:()=>PZ,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>YE,codefix:()=>fT,collapseTextChangeRangesAcrossMultipleVersions:()=>nb,collectExternalModuleInfo:()=>cj,combine:()=>FD,combinePaths:()=>vl,commentPragmas:()=>kU,commonOptionsWithBuild:()=>o$,commonPackageFolders:()=>Soe,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>cJ,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>Rv,comparePathsCaseInsensitive:()=>n7,comparePathsCaseSensitive:()=>_h,comparePatternKeys:()=>I2e,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>XG,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>dQ,compilerOptionsIndicateEsModules:()=>OZ,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>JQ,computeLineAndCharacterOfPosition:()=>Nd,computeLineOfPosition:()=>TN,computeLineStarts:()=>RM,computePositionOfLineAndCharacter:()=>H_e,computeSignature:()=>TF,computeSignatureWithDiagnostics:()=>nge,computeSuggestionDiagnostics:()=>Ice,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>cq,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>nx,containsParseError:()=>qz,containsPath:()=>OE,convertCompilerOptionsForTelemetry:()=>n$,convertCompilerOptionsFromJson:()=>lLe,convertJsonOption:()=>x6,convertToBase64:()=>bSe,convertToJson:()=>Xoe,convertToObject:()=>Rpe,convertToOptionsWithAbsolutePaths:()=>qG,convertToRelativePath:()=>PX,convertToTSConfig:()=>a2e,convertTypeAcquisitionFromJson:()=>UUe,copyComments:()=>nB,copyEntries:()=>oie,copyLeadingComments:()=>rB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>PF,copyTrailingComments:()=>Mj,couldStartTrivia:()=>HD,countWhere:()=>dp,createAbstractBuilder:()=>J4e,createAccessorPropertyBackingField:()=>qJ,createAccessorPropertyGetRedirector:()=>JEe,createAccessorPropertySetRedirector:()=>QY,createBaseNodeFactory:()=>Yde,createBinaryExpressionTrampoline:()=>GG,createBindingHelper:()=>q7,createBuildInfo:()=>Hae,createBuilderProgram:()=>rge,createBuilderProgramUsingProgramBuildInfo:()=>U4e,createBuilderStatusReporter:()=>QE,createCacheWithRedirects:()=>aae,createCacheableExportInfoMap:()=>jAe,createCachedDirectoryStructureHost:()=>Jae,createClassNamedEvaluationHelperBlock:()=>WW,createClassThisAssignmentBlock:()=>T$,createClassifier:()=>B8e,createCommentDirectivesMap:()=>YTe,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Ipe,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>M4e,createCompilerHostFromProgramHost:()=>Hxe,createCompilerHostWorker:()=>$me,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>HL,createDiagnosticForFileFromMessageChain:()=>oE,createDiagnosticForNode:()=>Bs,createDiagnosticForNodeArray:()=>Qz,createDiagnosticForNodeArrayFromMessageChain:()=>b9,createDiagnosticForNodeFromMessageChain:()=>wN,createDiagnosticForNodeInSourceFile:()=>Ud,createDiagnosticForRange:()=>Zz,createDiagnosticMessageChainFromDiagnostic:()=>kc,createDiagnosticReporter:()=>w$,createDocumentPositionMapper:()=>QLe,createDocumentRegistry:()=>U8e,createDocumentRegistryInternal:()=>Ace,createEmitAndSemanticDiagnosticsBuilderProgram:()=>cge,createEmitHelperFactory:()=>ipe,createEmptyExports:()=>Boe,createExpressionForJsxElement:()=>hpe,createExpressionForJsxFragment:()=>P6e,createExpressionForObjectLiteralElementLike:()=>LEe,createExpressionForPropertyName:()=>ype,createExpressionFromEntityName:()=>zoe,createExternalHelpersImportDeclarationIfNeeded:()=>UJ,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>g7,createForOfBindingStatement:()=>wEe,createGetCanonicalFileName:()=>H1,createGetSourceFile:()=>gxe,createGetSymbolAccessibilityDiagnosticForNode:()=>QN,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wme,createGetSymbolWalker:()=>LLe,createIncrementalCompilerHost:()=>qxe,createIncrementalProgram:()=>gge,createInputFiles:()=>sUe,createInputFilesWithFilePaths:()=>tc,createInputFilesWithFileTexts:()=>gEe,createJsxFactoryExpression:()=>NEe,createLanguageService:()=>_ye,createLanguageServiceSourceFile:()=>xq,createMemberAccessForPropertyName:()=>sF,createModeAwareCache:()=>IR,createModeAwareCacheKey:()=>_$,createModuleNotFoundChain:()=>KU,createModuleResolutionCache:()=>s4,createModuleResolutionLoader:()=>I$,createModuleResolutionLoaderUsingGlobalCache:()=>oZ,createModuleSpecifierResolutionHost:()=>v4,createMultiMap:()=>zg,createNodeConverters:()=>y6e,createNodeFactory:()=>AG,createOptionNameMap:()=>Joe,createOverload:()=>sPe,createPackageJsonImportFilter:()=>Oj,createPackageJsonInfo:()=>ihe,createParenthesizerRules:()=>dEe,createPatternMatcher:()=>H8e,createPrependNodes:()=>ise,createPrinter:()=>F3,createPrinterWithDefaults:()=>Bme,createPrinterWithRemoveComments:()=>d4,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zme,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>C$,createProgram:()=>YQ,createProgramHost:()=>SF,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>fse,createResolutionCache:()=>Wxe,createRuntimeTypeSerializer:()=>_4e,createScanner:()=>CS,createSemanticDiagnosticsBuilderProgram:()=>wxe,createSet:()=>J5,createSolutionBuilder:()=>F$,createSolutionBuilderHost:()=>n8e,createSolutionBuilderWithWatch:()=>r8e,createSolutionBuilderWithWatchHost:()=>vJe,createSortedArray:()=>g2,createSourceFile:()=>eQ,createSourceMapGenerator:()=>_me,createSourceMapSource:()=>cUe,createSuperAccessVariableStatement:()=>Cme,createSymbolTable:()=>zd,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>ETe,createTextChange:()=>LZ,createTextChangeFromStartLength:()=>Dj,createTextChangeRange:()=>WX,createTextRangeFromNode:()=>RZ,createTextRangeFromSpan:()=>MZ,createTextSpan:()=>p1,createTextSpanFromBounds:()=>Yy,createTextSpanFromNode:()=>sT,createTextSpanFromRange:()=>PP,createTextSpanFromStringLiteralLikeContent:()=>CF,createTextWriter:()=>Nie,createTokenRange:()=>Hie,createTypeChecker:()=>oT,createTypeReferenceDirectiveResolutionCache:()=>sae,createTypeReferenceResolutionLoader:()=>Yae,createUnparsedSourceFile:()=>mEe,createWatchCompilerHost:()=>Ese,createWatchCompilerHostOfConfigFile:()=>Z4e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sse,createWatchFactory:()=>dge,createWatchHost:()=>_ge,createWatchProgram:()=>yj,createWatchStatusReporter:()=>Gxe,createWriteFileMeasuringIO:()=>$ae,declarationNameToString:()=>hm,decodeMappings:()=>dme,decodedTextSpanIntersectsWith:()=>FX,decorateHelper:()=>lJ,deduplicate:()=>th,defaultIncludeSpec:()=>Dk,defaultInitCompilerOptions:()=>_Q,defaultMaximumTruncationLength:()=>j7,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>YO,diagnosticToString:()=>$3,directoryProbablyExists:()=>O0,directorySeparator:()=>qp,displayPart:()=>yE,displayPartsToString:()=>ule,disposeEmitNodes:()=>cI,disposeResourcesHelper:()=>NG,documentSpansEqual:()=>$h,dumpTracingLegend:()=>e9,elementAt:()=>Zn,elideNodes:()=>n4,emitComments:()=>ZMe,emitDetachedComments:()=>mSe,emitFiles:()=>Uae,emitFilesAndReportErrors:()=>bse,emitFilesAndReportErrorsAndGetExitStatus:()=>Uxe,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>Wie,emitNewLineBeforeLeadingComments:()=>pSe,emitNewLineBeforeLeadingCommentsOfPosition:()=>bA,emitSkippedWithNoDiagnostics:()=>Yme,emitUsingBuildInfo:()=>D4e,emptyArray:()=>Yn,emptyFileSystemEntries:()=>Xde,emptyMap:()=>ME,emptyOptions:()=>lx,emptySet:()=>uMe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>Fd,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Su,entityNameToString:()=>iE,enumerateInsertsAndDeletes:()=>zD,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>b3,escapeJsxAttributeString:()=>M7,escapeLeadingUnderscores:()=>ey,escapeNonAsciiString:()=>SH,escapeSnippetText:()=>nD,escapeString:()=>Q8,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>JY,explainFiles:()=>hse,explainIfFileIsRedirectAndImpliedFormat:()=>yse,exportAssignmentIsAlias:()=>K8,exportStarHelper:()=>DJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>vJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>xG,externalHelpersModuleNameText:()=>HN,factory:()=>he,fileExtensionIs:()=>mm,fileExtensionIsOneOf:()=>pv,fileIncludeReasonToDiagnostics:()=>cZ,fileShouldUseJavaScriptRequire:()=>BAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>rse,find:()=>lr,findAncestor:()=>Ua,findBestPatternMatch:()=>CL,findChildOfKind:()=>qm,findComputedPropertyNameCacheAssignment:()=>KJ,findConfigFile:()=>Jme,findContainingList:()=>$se,findDiagnosticForNode:()=>ahe,findFirstNonJsxWhitespaceToken:()=>Gge,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>Hse,findMap:()=>cs,findModifier:()=>QW,findNextToken:()=>N6,findPackageJson:()=>aB,findPackageJsons:()=>nhe,findPrecedingMatchingToken:()=>q$,findPrecedingToken:()=>bv,findSuperStatementIndexPath:()=>mme,findTokenOnLeftOfPosition:()=>Xse,findUseStrictPrologue:()=>qY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>XZ,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>gCe,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>vr,flattenDestructuringAssignment:()=>yI,flattenDestructuringBinding:()=>pF,flattenDiagnosticMessageText:()=>D2,forEach:()=>Ot,forEachAncestor:()=>qTe,forEachAncestorDirectory:()=>jC,forEachChild:()=>s_,forEachChildRecursively:()=>cF,forEachEmittedFile:()=>zQ,forEachEnclosingBlockScopeContainer:()=>hde,forEachEntry:()=>Jb,forEachExternalModuleToImportFrom:()=>VAe,forEachImportClauseDeclaration:()=>sG,forEachKey:()=>gA,forEachLeadingCommentRange:()=>ep,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>eG,forEachResolvedProjectReference:()=>k6,forEachReturnStatement:()=>dR,forEachRight:()=>bo,forEachTrailingCommentRange:()=>k8,forEachTsConfigPropArray:()=>q2,forEachUnique:()=>hE,forEachYieldExpression:()=>hie,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>wR,formatDiagnostic:()=>qme,formatDiagnostics:()=>hxe,formatDiagnosticsWithColorAndContext:()=>kA,formatGeneratedName:()=>D3,formatGeneratedNamePart:()=>jG,formatLocation:()=>qae,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>V0,fullTripleSlashAMDReferencePathRegEx:()=>voe,fullTripleSlashReferencePathRegEx:()=>yoe,generateDjb2Hash:()=>Lz,generateTSConfig:()=>c2e,generatorHelper:()=>IG,getAdjustedReferenceLocation:()=>zge,getAdjustedRenameLocation:()=>DZ,getAliasDeclarationFromName:()=>vP,getAllAccessorDeclarations:()=>oI,getAllDecoratorsOfClass:()=>gme,getAllDecoratorsOfClassElement:()=>wae,getAllJSDocTags:()=>WU,getAllJSDocTagsOfKind:()=>jX,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Vae,getAllSuperTypeNodes:()=>uG,getAllUnscopedEmitHelpers:()=>MY,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>oC,getAnyExtensionFromPath:()=>t7,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>I9,getAssignedName:()=>FU,getAssignedNameOfIdentifier:()=>mj,getAssignmentDeclarationKind:()=>jy,getAssignmentDeclarationPropertyAccessKind:()=>XM,getAssignmentTargetKind:()=>q8,getAutomaticTypeDirectiveNames:()=>Qpe,getBaseFileName:()=>Jg,getBinaryOperatorPrecedence:()=>bH,getBuildInfo:()=>Fme,getBuildInfoFileVersionMap:()=>kxe,getBuildInfoText:()=>_4,getBuildOrderFromAnyBuildOrder:()=>vge,getBuilderCreationParameters:()=>nZ,getBuilderFileEmit:()=>P6,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>gR,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Eb,getCombinedNodeFlags:()=>rR,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>K_e,getCommentRange:()=>MS,getCommonSourceDirectory:()=>zW,getCommonSourceDirectoryOfConfig:()=>hF,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>FUe,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>m4,getConstantValue:()=>JN,getContainerFlags:()=>R2e,getContainerNode:()=>RR,getContainingClass:()=>$b,getContainingClassExcludingClassDecorators:()=>A9,getContainingClassStaticBlock:()=>nG,getContainingFunction:()=>zE,getContainingFunctionDeclaration:()=>oSe,getContainingFunctionOrClassStaticBlock:()=>vie,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>Aee,getContextualTypeFromParent:()=>aq,getContextualTypeFromParentOrAncestorTypeNode:()=>bf,getCurrentTime:()=>xse,getDeclarationDiagnostics:()=>T4e,getDeclarationEmitExtensionForPath:()=>TY,getDeclarationEmitOutputFilePath:()=>Rie,getDeclarationEmitOutputFilePathWorker:()=>Mie,getDeclarationFromName:()=>lG,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Rh,getDeclarationsOfKind:()=>ude,getDeclaredExpandoInitializer:()=>pR,getDecorators:()=>OM,getDefaultCompilerOptions:()=>lye,getDefaultExportInfoWorker:()=>phe,getDefaultFormatCodeSettings:()=>pZ,getDefaultLibFileName:()=>$D,getDefaultLibFilePath:()=>pDe,getDefaultLikeExportInfo:()=>dhe,getDiagnosticText:()=>qoe,getDiagnosticsWithinSpan:()=>OAe,getDirectoryPath:()=>ws,getDirectoryToWatchFailedLookupLocation:()=>Fxe,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>X4e,getDocumentPositionMapper:()=>sCe,getESModuleInterop:()=>b1,getEditsForFileRename:()=>QAe,getEffectiveBaseTypeNode:()=>YC,getEffectiveConstraintOfTypeParameter:()=>a9,getEffectiveContainerForJSDocTemplateTag:()=>Iie,getEffectiveImplementsTypeNodes:()=>ZM,getEffectiveInitializer:()=>sH,getEffectiveJSDocHost:()=>YM,getEffectiveModifierFlags:()=>Cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Fx,getEffectiveModifierFlagsNoCache:()=>n6,getEffectiveReturnTypeNode:()=>kS,getEffectiveSetAccessorTypeAnnotationNode:()=>Kb,getEffectiveTypeAnnotationNode:()=>Zy,getEffectiveTypeParameterDeclarations:()=>Hb,getEffectiveTypeRoots:()=>ZG,getElementOrPropertyAccessArgumentExpressionOrName:()=>lH,getElementOrPropertyAccessName:()=>eI,getElementsOfBindingOrAssignmentPattern:()=>zG,getEmitDeclarations:()=>gv,getEmitFlags:()=>wd,getEmitHelpers:()=>NY,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>QD,getEnclosingContainer:()=>gie,getEncodedSemanticClassifications:()=>$Ae,getEncodedSyntacticClassifications:()=>qAe,getEndLinePosition:()=>cie,getEntityNameFromTypeNode:()=>cY,getEntrypointsFromPackageJsonInfo:()=>c4,getErrorCountForSummary:()=>pse,getErrorSpanForNode:()=>zL,getErrorSummaryText:()=>uge,getEscapedTextOfIdentifierOrLiteral:()=>nI,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>KM,getExportAssignmentExpression:()=>Pde,getExportInfoMap:()=>Sce,getExportNeedsImportStarHelper:()=>sj,getExpressionAssociativity:()=>Y8,getExpressionPrecedence:()=>dG,getExternalHelpersModuleName:()=>t4,getExternalModuleImportEqualsDeclarationExpression:()=>oG,getExternalModuleName:()=>w9,getExternalModuleNameFromDeclaration:()=>Rde,getExternalModuleNameFromPath:()=>xH,getExternalModuleNameLiteral:()=>oD,getExternalModuleRequireArgument:()=>Sie,getFallbackOptions:()=>UQ,getFileEmitOutput:()=>O4e,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>t$,getFileWatcherEventKind:()=>j_e,getFilesInErrorForSummary:()=>aZ,getFirstConstructorWithBody:()=>sC,getFirstIdentifier:()=>PS,getFirstNonSpaceCharacterPosition:()=>kF,getFirstProjectOutput:()=>dxe,getFixableErrorSpanExpression:()=>FAe,getFormatCodeSettingsForWriting:()=>uq,getFullWidth:()=>WL,getFunctionFlags:()=>ob,getHeritageClause:()=>hA,getHostSignatureFromJSDoc:()=>LN,getIdentifierAutoGenerate:()=>uUe,getIdentifierGeneratedImportReference:()=>bEe,getIdentifierTypeArguments:()=>J7,getImmediatelyInvokedFunctionExpression:()=>v7,getImpliedNodeFormatForFile:()=>Zae,getImpliedNodeFormatForFileWorker:()=>ese,getImportNeedsImportDefaultHelper:()=>aD,getImportNeedsImportStarHelper:()=>D6,getIndentSize:()=>HE,getIndentString:()=>bY,getInferredLibraryNameResolveFrom:()=>VW,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>_Y,getInitializerOfBindingOrAssignmentElement:()=>XY,getInterfaceBaseTypeNodes:()=>gH,getInternalEmitFlags:()=>HC,getInvokedExpression:()=>rG,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>LTe,getJSDocClassTag:()=>Q_e,getJSDocCommentRanges:()=>S9,getJSDocCommentsAndTags:()=>fH,getJSDocDeprecatedTag:()=>GTe,getJSDocDeprecatedTagNoCache:()=>jTe,getJSDocEnumTag:()=>VTe,getJSDocHost:()=>k7,getJSDocImplementsTags:()=>OTe,getJSDocOverrideTagNoCache:()=>zTe,getJSDocParameterTags:()=>o_,getJSDocParameterTagsNoCache:()=>Y_e,getJSDocPrivateTag:()=>MMe,getJSDocPrivateTagNoCache:()=>WTe,getJSDocProtectedTag:()=>BTe,getJSDocProtectedTagNoCache:()=>LMe,getJSDocPublicTag:()=>RMe,getJSDocPublicTagNoCache:()=>FTe,getJSDocReadonlyTag:()=>OMe,getJSDocReadonlyTagNoCache:()=>FMe,getJSDocReturnTag:()=>UTe,getJSDocReturnType:()=>GX,getJSDocRoot:()=>_H,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>Z_e,getJSDocTags:()=>WM,getJSDocTagsNoCache:()=>w8,getJSDocTemplateTag:()=>HTe,getJSDocThisTag:()=>Xre,getJSDocType:()=>iR,getJSDocTypeAliasName:()=>Tpe,getJSDocTypeAssertionType:()=>x1,getJSDocTypeParameterDeclarations:()=>SY,getJSDocTypeParameterTags:()=>N8,getJSDocTypeParameterTagsNoCache:()=>MTe,getJSDocTypeTag:()=>FM,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>N3,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>JD,getLeadingCommentRangesOfNode:()=>WE,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>KL,getLibraryNameFromLibFileName:()=>Qae,getLineAndCharacterOfPosition:()=>xm,getLineInfo:()=>kae,getLineOfLocalPosition:()=>j9,getLineOfLocalPositionFromLineMap:()=>Z8,getLineStartPositionForPosition:()=>Ux,getLineStarts:()=>eR,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>i7,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>_ie,getLocalNameForExternalImport:()=>C3,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>dse,getMappedContextSpan:()=>Kge,getMappedDocumentSpan:()=>oce,getMappedLocation:()=>H3,getMatchedFileSpec:()=>vse,getMatchedIncludeSpec:()=>sZ,getMeaningFromDeclaration:()=>j$,getMeaningFromLocation:()=>xF,getMembersOfDeclaration:()=>yie,getModeForFileReference:()=>$Q,getModeForResolutionAtIndex:()=>Kae,getModeForUsageLocation:()=>PA,getModifiedTime:()=>ZO,getModifiers:()=>Xv,getModuleInstanceState:()=>YN,getModuleNameStringLiteralAt:()=>ZQ,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>FZ,getNameForExportedSymbol:()=>Fj,getNameFromIndexInfo:()=>ZTe,getNameFromPropertyName:()=>tq,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>Mpe,getNameOfDeclaration:()=>i_,getNameOfExpando:()=>aG,getNameOfJSDocTypedef:()=>ML,getNameOrArgument:()=>KC,getNameTable:()=>xee,getNamesForExportedSymbol:()=>hce,getNamespaceDeclarationNode:()=>H8,getNewLineCharacter:()=>JE,getNewLineKind:()=>Wj,getNewLineOrDefaultFromHost:()=>R6,getNewTargetContainer:()=>aSe,getNextJSDocCommentLocation:()=>Die,getNodeForGeneratedName:()=>$J,getNodeId:()=>vm,getNodeKind:()=>h4,getNodeModifiers:()=>X$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>Kre,getNonAssignmentOperatorForCompoundAssignment:()=>RQ,getNonAugmentationDeclaration:()=>pie,getNonDecoratorTokenPosOfNode:()=>fie,getNormalizedAbsolutePath:()=>vf,getNormalizedAbsolutePathWithoutRoot:()=>tf,getNormalizedPathComponents:()=>g0,getObjectFlags:()=>ji,getOperator:()=>rh,getOperatorAssociativity:()=>rI,getOperatorPrecedence:()=>Pie,getOptionFromName:()=>QJ,getOptionsForLibraryResolution:()=>E2e,getOptionsNameMap:()=>JG,getOrCreateEmitNode:()=>Sa,getOrCreateExternalHelpersModuleNameIfNeeded:()=>M6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Gg,getOriginalNodeId:()=>Nb,getOriginalSourceFile:()=>_Se,getOutputDeclarationFileName:()=>gF,getOutputExtension:()=>jae,getOutputFileNames:()=>Ome,getOutputPathsFor:()=>A$,getOutputPathsForBundle:()=>O3,getOwnEmitOutputFilePath:()=>hR,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>A6,getPackageJsonTypesVersionsPaths:()=>vQ,getPackageJsonsVisibleToFile:()=>rhe,getPackageNameFromTypesPackageName:()=>l4,getPackageScopeForPath:()=>m$,getParameterSymbolFromJSDoc:()=>$8,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>nq,getParseTreeNode:()=>__,getParsedCommandLineOfConfigFile:()=>$G,getPathComponents:()=>qc,getPathComponentsRelativeTo:()=>Ure,getPathFromPathComponents:()=>Iy,getPathUpdater:()=>Cce,getPathsBasePath:()=>Lie,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>N$,getPositionOfLineAndCharacter:()=>Wz,getPossibleGenericSignatures:()=>Uge,getPossibleOriginalInputExtensionForExtension:()=>Mde,getPossibleTypeArgumentsInfo:()=>K$,getPreEmitDiagnostics:()=>L4e,getPrecedingNonSpaceCharacterPosition:()=>Yge,getPrivateIdentifier:()=>K2e,getProperties:()=>b$,getProperty:()=>T8,getPropertyArrayElementValue:()=>iSe,getPropertyAssignmentAliasLikeExpression:()=>XMe,getPropertyNameForPropertyNameNode:()=>FN,getPropertyNameForUniqueESSymbol:()=>wde,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>WEe,getPropertySymbolFromBindingElement:()=>Nj,getPropertySymbolsFromContextualType:()=>_le,getQuoteFromPreference:()=>ice,getQuotePreference:()=>OS,getRangesWhere:()=>eu,getRefactorContextSpan:()=>NF,getReferencedFileLocation:()=>XQ,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>sP,getRelativePathFromFile:()=>wM,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>jZ,getReplacementSpanForContextToken:()=>wZ,getResolutionDiagnostic:()=>QQ,getResolutionModeOverride:()=>W3,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>mG,getRestIndicatorOfBindingOrAssignmentElement:()=>YY,getRestParameterElementType:()=>tSe,getRightMostAssignedExpression:()=>k9,getRootDeclaration:()=>vA,getRootDirectoryOfResolutionCache:()=>iZ,getRootLength:()=>Pg,getRootPathSplitLength:()=>Y4e,getScriptKind:()=>sce,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>hoe,getSelectedEffectiveModifierFlags:()=>fk,getSelectedSyntacticModifierFlags:()=>Ode,getSemanticClassifications:()=>JAe,getSemanticJsxChildren:()=>B9,getSetAccessorTypeAnnotationNode:()=>Lde,getSetAccessorValueParameter:()=>AH,getSetExternalModuleIndicator:()=>q9,getShebang:()=>Bz,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>D7,getSingleVariableOfVariableStatement:()=>I7,getSnapshotText:()=>Ij,getSnippetElement:()=>npe,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>ts,getSourceFilePathInNewDir:()=>Fie,getSourceFilePathInNewDirWorker:()=>Kg,getSourceFileVersionAsHashFromText:()=>lZ,getSourceFilesToEmit:()=>Oie,getSourceMapRange:()=>YL,getSourceMapper:()=>n3e,getSourceTextOfNodeFromSourceFile:()=>m7,getSpanOfTokenAtPosition:()=>M0,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>fR,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>Ry,getStaticPropertiesAndClassStaticBlock:()=>MQ,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>v$,getSuperContainer:()=>h0,getSupportedCodeFixes:()=>fle,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>_ce,getSymbolId:()=>$d,getSymbolNameForPrivateIdentifier:()=>WN,getSymbolTarget:()=>e2,getSyntacticClassifications:()=>hhe,getSyntacticModifierFlags:()=>ZC,getSyntacticModifierFlagsNoCache:()=>Fde,getSynthesizedDeepClone:()=>ih,getSynthesizedDeepCloneWithReplacements:()=>cce,getSynthesizedDeepClones:()=>WR,getSynthesizedDeepClonesWithReplacements:()=>tB,getSyntheticLeadingComments:()=>y3,getSyntheticTrailingComments:()=>PY,getTargetLabel:()=>SZ,getTargetOfBindingOrAssignmentElement:()=>gI,getTemporaryModuleResolutionState:()=>lae,getTextOfConstantValue:()=>Yv,getTextOfIdentifierOrLiteral:()=>K2,getTextOfJSDocComment:()=>EN,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Lv,getTextOfNodeFromSourceText:()=>h9,getTextOfPropertyName:()=>z8,getThisContainer:()=>RT,getThisParameter:()=>BN,getTokenAtPosition:()=>Lf,getTokenPosOfNode:()=>v2,getTokenSourceMapRange:()=>epe,getTouchingPropertyName:()=>cS,getTouchingToken:()=>MR,getTrailingCommentRanges:()=>SN,getTrailingSemicolonDeferringWriter:()=>z9,getTransformFlagsSubtreeExclusions:()=>v6e,getTransformers:()=>Rme,getTsBuildInfoEmitOutputFilePath:()=>PR,getTsConfigObjectLiteralExpression:()=>tG,getTsConfigPropArrayElementValue:()=>JM,getTypeAnnotationNode:()=>O7,getTypeArgumentOrTypeParameterList:()=>IAe,getTypeKeywordOfTypeOnlyImport:()=>qge,getTypeNode:()=>wY,getTypeNodeIfAccessible:()=>iB,getTypeParameterFromJsDoc:()=>sSe,getTypeParameterOwner:()=>R0,getTypesPackageName:()=>pae,getUILocale:()=>dTe,getUniqueName:()=>b4,getUniqueSymbolId:()=>RAe,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>mse,getWatchFactory:()=>mxe,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>p7,handleNoEmitOptions:()=>nse,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>e_,hasAmbientModifier:()=>il,hasChangesInResolutions:()=>sie,hasChildOfKind:()=>Jse,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>X2,hasDocComment:()=>DAe,hasDynamicName:()=>tI,hasEffectiveModifier:()=>tT,hasEffectiveModifiers:()=>Bie,hasEffectiveReadonlyModifier:()=>Ny,hasExtension:()=>r9,hasIndexSignature:()=>HZ,hasInitializer:()=>J2,hasInvalidEscape:()=>TH,hasJSDocNodes:()=>NT,hasJSDocParameterTags:()=>Gz,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>g1,hasOverrideModifier:()=>zie,hasPossibleExternalModuleReference:()=>gde,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>xj,hasQuestionToken:()=>M9,hasRecordedExternalHelpers:()=>R6e,hasResolutionModeOverride:()=>_6,hasRestParameter:()=>lde,hasScopeMarker:()=>WMe,hasStaticModifier:()=>ev,hasSyntacticModifier:()=>ul,hasSyntacticModifiers:()=>gSe,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>VD,hasType:()=>_P,hasTypeArguments:()=>cSe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>Poe,hostGetCanonicalFileName:()=>QC,hostUsesCaseSensitiveFileNames:()=>pG,idText:()=>Kr,identifierIsThisKeyword:()=>$L,identifierToKeywordKind:()=>uP,identity:()=>Of,identitySourceMapConsumer:()=>Vx,ignoreSourceNewlines:()=>qN,ignoredPaths:()=>NU,importDefaultHelper:()=>CJ,importFromModuleSpecifier:()=>XC,importNameElisionDisabled:()=>Qie,importStarHelper:()=>kG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>y9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>hj,injectClassNamedEvaluationHelperBlockIfMissing:()=>Eme,injectClassThisAssignmentIfMissing:()=>FW,insertImports:()=>zZ,insertLeadingStatement:()=>dUe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>_R,insertStatementAfterStandardPrologue:()=>VMe,insertStatementsAfterCustomPrologue:()=>wx,insertStatementsAfterStandardPrologue:()=>Um,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>bde,inverseJsxOptionMap:()=>uF,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>wJ,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>FR,isAccessor:()=>GM,isAccessorModifier:()=>EEe,isAliasSymbolDeclaration:()=>N7,isAliasableExpression:()=>O9,isAmbientModule:()=>dh,isAmbientPropertyDeclaration:()=>mde,isAnonymousFunctionDefinition:()=>R7,isAnyDirectorySeparator:()=>wU,isAnyImportOrBareOrAccessedRequire:()=>JMe,isAnyImportOrReExport:()=>eH,isAnyImportSyntax:()=>W8,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>AQ,isArgumentExpressionOfElementAccess:()=>Oge,isArray:()=>ls,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>p9,isArrayBindingOrAssignmentPattern:()=>rde,isArrayBindingPattern:()=>Wd,isArrayLiteralExpression:()=>Ed,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kP,isArrayTypeNode:()=>GY,isArrowFunction:()=>$m,isAsExpression:()=>eF,isAssertClause:()=>AP,isAssertEntry:()=>y6,isAssertionExpression:()=>f7,isAssertsKeyword:()=>dW,isAssignmentDeclaration:()=>eT,isAssignmentExpression:()=>Zv,isAssignmentOperator:()=>pk,isAssignmentPattern:()=>KD,isAssignmentTarget:()=>VE,isAsteriskToken:()=>BY,isAsyncFunction:()=>t6,isAsyncModifier:()=>NJ,isAutoAccessorPropertyDeclaration:()=>xb,isAwaitExpression:()=>ys,isAwaitKeyword:()=>ape,isBigIntLiteral:()=>OY,isBinaryExpression:()=>Ds,isBinaryOperatorToken:()=>UEe,isBindableObjectDefinePropertyCall:()=>A7,isBindableStaticAccessExpression:()=>mR,isBindableStaticElementAccessExpression:()=>jL,isBindableStaticNameExpression:()=>U8,isBindingElement:()=>sa,isBindingElementOfBareOrAccessedRequire:()=>Rs,isBindingName:()=>lR,isBindingOrAssignmentElement:()=>ld,isBindingOrAssignmentPattern:()=>u7,isBindingPattern:()=>$_,isBlock:()=>Ou,isBlockOrCatchScoped:()=>v9,isBlockScope:()=>$C,isBlockScopedContainerTopLevel:()=>pde,isBooleanLiteral:()=>_y,isBreakOrContinueStatement:()=>M8,isBreakStatement:()=>Loe,isBuildInfoFile:()=>fxe,isBuilderProgram:()=>gse,isBundle:()=>fpe,isBundleFileTextLike:()=>NSe,isCallChain:()=>AN,isCallExpression:()=>xd,isCallExpressionTarget:()=>hZ,isCallLikeExpression:()=>uR,isCallLikeOrFunctionLikeExpression:()=>eie,isCallOrNewExpression:()=>sk,isCallOrNewExpressionTarget:()=>yZ,isCallSignatureDeclaration:()=>Y7,isCallToHelper:()=>uW,isCaseBlock:()=>Fv,isCaseClause:()=>BT,isCaseKeyword:()=>Hh,isCaseOrDefaultClause:()=>$U,isCatchClause:()=>A3,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>Tp,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>qC,isCircularBuildOrder:()=>vj,isClassDeclaration:()=>Ih,isClassElement:()=>J_,isClassExpression:()=>v0,isClassInstanceProperty:()=>nde,isClassLike:()=>Fl,isClassMemberModifier:()=>jU,isClassNamedEvaluationHelperBlock:()=>gj,isClassOrTypeElement:()=>c7,isClassStaticBlockDeclaration:()=>Ep,isClassThisAssignmentBlock:()=>S$,isCollapsedRange:()=>XVe,isColonToken:()=>An,isCommaExpression:()=>rv,isCommaListExpression:()=>E_,isCommaSequence:()=>VJ,isCommaToken:()=>WY,isComment:()=>ece,isCommonJsExportPropertyAssignment:()=>HM,isCommonJsExportedExpression:()=>$Me,isCompoundAssignment:()=>uj,isComputedNonLiteralName:()=>Yz,isComputedPropertyName:()=>Qf,isConciseBody:()=>VU,isConditionalExpression:()=>ex,isConditionalTypeNode:()=>Q7,isConstTypeReference:()=>ky,isConstructSignatureDeclaration:()=>x2,isConstructorDeclaration:()=>Lh,isConstructorTypeNode:()=>MG,isContextualKeyword:()=>_G,isContinueStatement:()=>D6e,isCustomPrologue:()=>T9,isDebuggerStatement:()=>b0,isDeclaration:()=>PT,isDeclarationBindingElement:()=>$X,isDeclarationFileName:()=>Zb,isDeclarationName:()=>ON,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>oY,isDeclarationStatement:()=>cde,isDeclarationWithTypeParameterChildren:()=>mie,isDeclarationWithTypeParameters:()=>BL,isDecorator:()=>Jh,isDecoratorTarget:()=>bZ,isDefaultClause:()=>xk,isDefaultImport:()=>R9,isDefaultModifier:()=>zY,isDefaultedExpandoInitializer:()=>Aie,isDeleteExpression:()=>h6,isDeleteTarget:()=>mH,isDeprecatedDeclaration:()=>QZ,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>ohe,isDiskPathRoot:()=>Gre,isDoStatement:()=>cpe,isDocumentRegistryEntry:()=>xce,isDotDotDotToken:()=>FY,isDottedName:()=>Uh,isDynamicName:()=>L0,isESSymbolIdentifier:()=>gY,isEffectiveExternalModule:()=>VM,isEffectiveModuleDeclaration:()=>HMe,isEffectiveStrictModeSourceFile:()=>QTe,isElementAccessChain:()=>oR,isElementAccessExpression:()=>Hm,isEmittedFileOfProgram:()=>Vme,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>BX,isEmptyBindingPattern:()=>wTe,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>xEe,isEmptyStringLiteral:()=>iH,isEntityName:()=>kT,isEntityNameExpression:()=>Tg,isEnumConst:()=>G8,isEnumDeclaration:()=>xP,isEnumMember:()=>pI,isEqualityOperatorKind:()=>sq,isEqualsGreaterThanToken:()=>fW,isExclamationToken:()=>RG,isExcludedFile:()=>Wpe,isExclusivelyTypeOnlyImportOrExport:()=>qQ,isExpandoPropertyDeclaration:()=>eJ,isExportAssignment:()=>my,isExportDeclaration:()=>ry,isExportModifier:()=>_W,isExportName:()=>CW,isExportNamespaceAsDefaultDeclaration:()=>nY,isExportOrDefaultModifier:()=>Voe,isExportSpecifier:()=>gy,isExportsIdentifier:()=>P9,isExportsOrModuleExportsOrAlias:()=>R3,isExpression:()=>kr,isExpressionNode:()=>ZD,isExpressionOfExternalModuleImportEqualsDeclaration:()=>AZ,isExpressionOfOptionalChainRoot:()=>BU,isExpressionStatement:()=>kb,isExpressionWithTypeArguments:()=>cC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Gie,isExternalModule:()=>Bv,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>Mx,isExternalModuleIndicator:()=>XX,isExternalModuleNameRelative:()=>Kv,isExternalModuleReference:()=>KE,isExternalModuleSymbol:()=>eq,isExternalOrCommonJsModule:()=>aE,isFileLevelReservedGeneratedIdentifier:()=>sR,isFileLevelUniqueName:()=>ns,isFileProbablyExternalModule:()=>Uoe,isFirstDeclarationOfSymbolParameter:()=>ace,isFixablePromiseHandler:()=>fCe,isForInOrOfStatement:()=>Jz,isForInStatement:()=>lpe,isForInitializer:()=>DS,isForOfStatement:()=>Bx,isForStatement:()=>bW,isFunctionBlock:()=>hP,isFunctionBody:()=>UU,isFunctionDeclaration:()=>mg,isFunctionExpression:()=>Jm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>F_,isFunctionLikeDeclaration:()=>Vd,isFunctionLikeKind:()=>S_,isFunctionLikeOrClassStaticBlockDeclaration:()=>bd,isFunctionOrConstructorTypeNode:()=>l7,isFunctionOrModuleBlock:()=>_9,isFunctionSymbol:()=>qMe,isFunctionTypeNode:()=>e0,isFutureReservedKeyword:()=>sE,isGeneratedIdentifier:()=>$g,isGeneratedPrivateIdentifier:()=>s7,isGetAccessor:()=>PN,isGetAccessorDeclaration:()=>lE,isGetOrSetAccessorDeclaration:()=>jz,isGlobalDeclaration:()=>WAe,isGlobalScopeAugmentation:()=>JC,isGrammarError:()=>XTe,isHeritageClause:()=>Qb,isHoistedFunction:()=>h7,isHoistedVariableStatement:()=>y7,isIdentifier:()=>xn,isIdentifierANonContextualKeyword:()=>hH,isIdentifierName:()=>kde,isIdentifierOrThisTypeNode:()=>F6e,isIdentifierPart:()=>RL,isIdentifierStart:()=>lP,isIdentifierText:()=>H2,isIdentifierTypePredicate:()=>rSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>bk,isIgnoredFileFromWildCardWatching:()=>dC,isImplicitGlob:()=>noe,isImportAttribute:()=>Ly,isImportAttributeName:()=>l9,isImportAttributes:()=>oS,isImportCall:()=>Py,isImportClause:()=>Tk,isImportDeclaration:()=>n0,isImportEqualsDeclaration:()=>Yb,isImportKeyword:()=>am,isImportMeta:()=>gP,isImportOrExportSpecifier:()=>fP,isImportOrExportSpecifierName:()=>J3,isImportSpecifier:()=>qE,isImportTypeAssertionContainer:()=>QL,isImportTypeNode:()=>E1,isImportableFile:()=>Tce,isInComment:()=>tw,isInCompoundLikeAssignment:()=>P7,isInExpressionContext:()=>C9,isInJSDoc:()=>S7,isInJSFile:()=>Cs,isInJSXText:()=>$$,isInJsonFile:()=>Eie,isInNonReferenceComment:()=>Q$,isInReferenceComment:()=>NZ,isInRightSideOfInternalImportEqualsDeclaration:()=>Gse,isInString:()=>V3,isInTemplateString:()=>Qse,isInTopLevelContext:()=>GE,isInTypeQuery:()=>yR,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Z2,isIndexedAccessTypeNode:()=>Wx,isInferTypeNode:()=>KN,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>Nae,isInitializedVariable:()=>J9,isInsideJsxElement:()=>Zse,isInsideJsxElementOrAttribute:()=>LR,isInsideNodeModules:()=>KZ,isInsideTemplateLiteral:()=>Y$,isInstanceOfExpression:()=>jie,isInstantiatedModule:()=>sme,isInterfaceDeclaration:()=>xp,isInternalDeclaration:()=>Wae,isInternalModuleImportEqualsDeclaration:()=>$M,isInternalName:()=>vpe,isIntersectionTypeNode:()=>xR,isIntrinsicJsxName:()=>EH,isIterationStatement:()=>OL,isJSDoc:()=>uC,isJSDocAllType:()=>OG,isJSDocAugmentsTag:()=>xW,isJSDocAuthorTag:()=>CEe,isJSDocCallbackTag:()=>UY,isJSDocClassTag:()=>_pe,isJSDocCommentContainingNode:()=>Y1,isJSDocConstructSignature:()=>UL,isJSDocDeprecatedTag:()=>dpe,isJSDocEnumTag:()=>jx,isJSDocFunctionType:()=>Ak,isJSDocImplementsTag:()=>jJ,isJSDocIndexSignature:()=>uY,isJSDocLikeText:()=>$Ee,isJSDocLink:()=>LG,isJSDocLinkCode:()=>Ooe,isJSDocLinkLike:()=>F8,isJSDocLinkPlain:()=>AEe,isJSDocMemberName:()=>ZL,isJSDocNameReference:()=>FJ,isJSDocNamepathType:()=>_Ue,isJSDocNamespaceBody:()=>mA,isJSDocNode:()=>$z,isJSDocNonNullableType:()=>Gx,isJSDocNullableType:()=>WJ,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>EW,isJSDocOverloadTag:()=>aF,isJSDocOverrideTag:()=>AA,isJSDocParameterTag:()=>A2,isJSDocPrivateTag:()=>Woe,isJSDocPropertyLikeTag:()=>Uz,isJSDocPropertyTag:()=>I6e,isJSDocProtectedTag:()=>DEe,isJSDocPublicTag:()=>FG,isJSDocReadonlyTag:()=>BJ,isJSDocReturnTag:()=>ppe,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>e4,isJSDocSeeTag:()=>HY,isJSDocSignature:()=>b6,isJSDocTag:()=>d7,isJSDocTemplateTag:()=>CA,isJSDocThisTag:()=>IEe,isJSDocThrowsTag:()=>kEe,isJSDocTypeAlias:()=>b2,isJSDocTypeAssertion:()=>KY,isJSDocTypeExpression:()=>SW,isJSDocTypeLiteral:()=>oF,isJSDocTypeTag:()=>WG,isJSDocTypedefTag:()=>zJ,isJSDocUnknownTag:()=>GJ,isJSDocUnknownType:()=>Foe,isJSDocVariadicType:()=>iF,isJSXTagName:()=>T7,isJsonEqual:()=>xY,isJsonSourceFile:()=>Rx,isJsxAttribute:()=>tx,isJsxAttributeLike:()=>rie,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>CR,isJsxChild:()=>ZX,isJsxClosingElement:()=>iD,isJsxClosingFragment:()=>dI,isJsxElement:()=>zx,isJsxExpression:()=>CP,isJsxFragment:()=>Ek,isJsxNamespacedName:()=>Fm,isJsxOpeningElement:()=>Pb,isJsxOpeningFragment:()=>v6,isJsxOpeningLikeElement:()=>m1,isJsxOpeningLikeElementTagName:()=>Mge,isJsxSelfClosingElement:()=>nF,isJsxSpreadAttribute:()=>rT,isJsxTagNameExpression:()=>QX,isJsxText:()=>SR,isJumpStatementTarget:()=>EZ,isKeyword:()=>qb,isKeywordOrPunctuation:()=>F9,isKnownSymbol:()=>yA,isLabelName:()=>g4,isLabelOfLabeledStatement:()=>j3,isLabeledStatement:()=>tF,isLateVisibilityPaintedStatement:()=>B8,isLeftHandSideExpression:()=>ib,isLeftHandSideOfAssignment:()=>hSe,isLet:()=>UM,isLineBreak:()=>Sb,isLiteralComputedPropertyDeclarationName:()=>_g,isLiteralExpression:()=>aR,isLiteralExpressionOfObject:()=>Zre,isLiteralImportTypeNode:()=>MN,isLiteralKind:()=>UX,isLiteralLikeAccess:()=>fY,isLiteralLikeElementAccess:()=>V8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>xZ,isLiteralTypeLikeExpression:()=>pUe,isLiteralTypeLiteral:()=>ode,isLiteralTypeNode:()=>S3,isLocalName:()=>mI,isLogicalOperator:()=>U9,isLogicalOrCoalescingAssignmentExpression:()=>Wde,isLogicalOrCoalescingAssignmentOperator:()=>CH,isLogicalOrCoalescingBinaryExpression:()=>DH,isLogicalOrCoalescingBinaryOperator:()=>W7,isMappedTypeNode:()=>LJ,isMemberName:()=>xN,isMetaProperty:()=>x3,isMethodDeclaration:()=>tm,isMethodOrAccessor:()=>Mv,isMethodSignature:()=>pg,isMinusToken:()=>ER,isMissingDeclaration:()=>TW,isModifier:()=>Mf,isModifierKind:()=>Om,isModifierLike:()=>Am,isModuleAugmentationExternal:()=>iY,isModuleBlock:()=>kh,isModuleBody:()=>tie,isModuleDeclaration:()=>py,isModuleExportsAccessExpression:()=>jE,isModuleIdentifier:()=>x7,isModuleName:()=>z6e,isModuleOrEnumDeclaration:()=>nie,isModuleReference:()=>uf,isModuleSpecifierLike:()=>WZ,isModuleWithStringLiteralName:()=>rY,isNameOfFunctionDeclaration:()=>H$,isNameOfModuleDeclaration:()=>U$,isNamedClassElement:()=>Jl,isNamedDeclaration:()=>mp,isNamedEvaluation:()=>UE,isNamedEvaluationSource:()=>vH,isNamedExportBindings:()=>Qre,isNamedExports:()=>j0,isNamedImportBindings:()=>ade,isNamedImports:()=>Oy,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>g6,isNamespaceBody:()=>$Te,isNamespaceExport:()=>G0,isNamespaceExportDeclaration:()=>lC,isNamespaceImport:()=>mh,isNamespaceReexportDeclaration:()=>oH,isNewExpression:()=>sb,isNewExpressionTarget:()=>V$,isNoSubstitutionTemplateLiteral:()=>K7,isNode:()=>VX,isNodeArray:()=>BM,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>Lx,isNodeKind:()=>GU,isNodeLikeSystem:()=>Y5,isNodeModulesDirectory:()=>NX,isNodeWithPossibleHoistedDeclaration:()=>pH,isNonContextualKeyword:()=>e6,isNonExportDefaultModifier:()=>hUe,isNonGlobalAmbientModule:()=>dde,isNonGlobalDeclaration:()=>lT,isNonNullAccess:()=>nEe,isNonNullChain:()=>zU,isNonNullExpression:()=>E3,isNonStaticMethodOrAccessorWithPrivateName:()=>q2e,isNotEmittedOrPartiallyEmittedNode:()=>Nr,isNotEmittedStatement:()=>rD,isNullishCoalesce:()=>R8,isNumber:()=>U1,isNumericLiteral:()=>S1,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>BZ,isObjectBindingOrAssignmentElement:()=>d9,isObjectBindingOrAssignmentPattern:()=>qX,isObjectBindingPattern:()=>Ch,isObjectLiteralElement:()=>eY,isObjectLiteralElementLike:()=>DN,isObjectLiteralExpression:()=>el,isObjectLiteralMethod:()=>iC,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>x9,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>UD,isOmittedExpression:()=>cb,isOptionalChain:()=>fy,isOptionalChainRoot:()=>s9,isOptionalDeclaration:()=>yG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>MJ,isOuterExpression:()=>BG,isOutermostOptionalChain:()=>Vz,isOverrideModifier:()=>RJ,isPackedArrayLiteral:()=>foe,isParameter:()=>Os,isParameterDeclaration:()=>X8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>DT,isParameterPropertyModifier:()=>cR,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>XN,isParseTreeNode:()=>qD,isPartOfTypeNode:()=>BE,isPartOfTypeQuery:()=>iG,isPartiallyEmittedExpression:()=>Roe,isPatternMatch:()=>C8,isPinnedComment:()=>uie,isPlainJsFile:()=>pP,isPlusToken:()=>PJ,isPossiblyTypeArgumentPosition:()=>kZ,isPostfixUnaryExpression:()=>jY,isPrefixUnaryExpression:()=>vk,isPrivateIdentifier:()=>Lu,isPrivateIdentifierClassElementDeclaration:()=>IT,isPrivateIdentifierPropertyAccessExpression:()=>u9,isPrivateIdentifierSymbol:()=>aC,isProgramBundleEmitBuildInfo:()=>tge,isProgramUptoDate:()=>bxe,isPrologueDirective:()=>$2,isPropertyAccessChain:()=>ede,isPropertyAccessEntityNameExpression:()=>NS,isPropertyAccessExpression:()=>Ac,isPropertyAccessOrQualifiedName:()=>KX,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ide,isPropertyAssignment:()=>tl,isPropertyDeclaration:()=>nu,isPropertyName:()=>qg,isPropertyNameLiteral:()=>Qv,isPropertySignature:()=>em,isProtoSetter:()=>YMe,isPrototypeAccess:()=>bP,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>fG,isPushOrUnshiftIdentifier:()=>fSe,isQualifiedName:()=>Pu,isQuestionDotToken:()=>Gu,isQuestionOrExclamationToken:()=>O6e,isQuestionOrPlusOrMinusToken:()=>B6e,isQuestionToken:()=>p6,isRawSourceMap:()=>$Le,isReadonlyKeyword:()=>SEe,isReadonlyKeywordOrPlusOrMinusToken:()=>W6e,isRecognizedTripleSlashComment:()=>_de,isReferenceFileLocation:()=>HW,isReferencedFile:()=>ew,isRegularExpressionLiteral:()=>ope,isRequireCall:()=>y1,isRequireVariableStatement:()=>xie,isRestParameter:()=>sp,isRestTypeNode:()=>hW,isReturnStatement:()=>iS,isReturnStatementWithFixablePromiseHandler:()=>Pce,isRightSideOfAccessExpression:()=>r6,isRightSideOfInstanceofExpression:()=>ySe,isRightSideOfPropertyAccess:()=>sS,isRightSideOfQualifiedName:()=>wA,isRightSideOfQualifiedNameOrPropertyAccess:()=>z7,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>kH,isRootedDiskPath:()=>nE,isSameEntityName:()=>j8,isSatisfiesExpression:()=>C6e,isScopeMarker:()=>_7,isSemicolonClassElement:()=>spe,isSetAccessor:()=>UC,isSetAccessorDeclaration:()=>Xb,isShebangTrivia:()=>ATe,isShiftOperatorOrHigher:()=>jEe,isShorthandAmbientModuleSymbol:()=>ZU,isShorthandPropertyAssignment:()=>XE,isSignedNumericLiteral:()=>yH,isSimpleCopiableExpression:()=>L3,isSimpleInlineableExpression:()=>IA,isSingleOrDoubleQuote:()=>D9,isSourceFile:()=>Nu,isSourceFileFromLibrary:()=>cB,isSourceFileJS:()=>Gy,isSourceFileNotJS:()=>Ade,isSourceFileNotJson:()=>qM,isSourceMapping:()=>KLe,isSpecialPropertyDeclaration:()=>dY,isSpreadAssignment:()=>xA,isSpreadElement:()=>WT,isStatement:()=>dl,isStatementButNotDeclaration:()=>HU,isStatementOrBlock:()=>YX,isStatementWithLocals:()=>KTe,isStatic:()=>pd,isStaticModifier:()=>pW,isString:()=>As,isStringAKeyword:()=>Nde,isStringANonContextualKeyword:()=>w7,isStringAndEmptyAnonymousObjectIntersection:()=>Hge,isStringDoubleQuoted:()=>aH,isStringLiteral:()=>Sd,isStringLiteralLike:()=>Cm,isStringLiteralOrJsxExpression:()=>JU,isStringLiteralOrTemplate:()=>UZ,isStringOrNumericLiteralLike:()=>Ox,isStringOrRegularExpressionOrTemplateLiteral:()=>tce,isStringTextContainingNode:()=>JX,isSuperCall:()=>h1,isSuperKeyword:()=>nT,isSuperOrSuperProperty:()=>Ede,isSuperProperty:()=>MT,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>AR,isSyntaxList:()=>AW,isSyntheticExpression:()=>VY,isSyntheticReference:()=>Sk,isTagName:()=>KW,isTaggedTemplateExpression:()=>Dm,isTaggedTemplateTag:()=>vZ,isTemplateExpression:()=>B0,isTemplateHead:()=>X7,isTemplateLiteral:()=>Hz,isTemplateLiteralKind:()=>VC,isTemplateLiteralToken:()=>L8,isTemplateLiteralTypeNode:()=>ym,isTemplateLiteralTypeSpan:()=>vW,isTemplateMiddle:()=>TEe,isTemplateMiddleOrTemplateTail:()=>c9,isTemplateSpan:()=>Dh,isTemplateTail:()=>woe,isTextWhiteSpaceLike:()=>cT,isThis:()=>AF,isThisContainerOrFunctionBlock:()=>sY,isThisIdentifier:()=>E2,isThisInTypeQuery:()=>V9,isThisInitializedDeclaration:()=>bie,isThisInitializedObjectBindingExpression:()=>Tie,isThisProperty:()=>Q1,isThisTypeNode:()=>yW,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>Sde,isThrowStatement:()=>ff,isToken:()=>a7,isTokenKind:()=>tde,isTraceEnabled:()=>DR,isTransientSymbol:()=>Vm,isTrivia:()=>W9,isTryStatement:()=>My,isTupleTypeNode:()=>gW,isTypeAlias:()=>L9,isTypeAliasDeclaration:()=>z0,isTypeAssertionExpression:()=>ph,isTypeDeclaration:()=>f6,isTypeElement:()=>rb,isTypeKeyword:()=>Z$,isTypeKeywordToken:()=>nce,isTypeKeywordTokenOrIdentifier:()=>y4,isTypeLiteralNode:()=>rS,isTypeNode:()=>pc,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>yk,isTypeOnlyExportDeclaration:()=>zM,isTypeOnlyImportDeclaration:()=>HX,isTypeOnlyImportOrExportDeclaration:()=>O8,isTypeOperatorNode:()=>_I,isTypeParameterDeclaration:()=>Np,isTypePredicateNode:()=>mW,isTypeQueryNode:()=>m6,isTypeReferenceNode:()=>uE,isTypeReferenceType:()=>NN,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>m9,isUnaryExpressionWithWrite:()=>JTe,isUnicodeIdentifierStart:()=>K,isUnionTypeNode:()=>fI,isUnparsedNode:()=>pA,isUnparsedPrepend:()=>OJ,isUnparsedSource:()=>rF,isUnparsedTextLike:()=>CN,isUrl:()=>kX,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>nSe,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>lSe,isVarAwaitUsing:()=>nC,isVarConst:()=>rH,isVarUsing:()=>aY,isVariableDeclaration:()=>Kc,isVariableDeclarationInVariableStatement:()=>rC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E7,isVariableDeclarationInitializedToRequire:()=>v1,isVariableDeclarationList:()=>Kp,isVariableLike:()=>E9,isVariableLikeOrAccessor:()=>vde,isVariableStatement:()=>Xg,isVoidExpression:()=>Z7,isWatchSet:()=>QVe,isWhileStatement:()=>Moe,isWhiteSpaceLike:()=>cP,isWhiteSpaceSingleLine:()=>q1,isWithStatement:()=>upe,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>t0,jsxModeNeedsExplicitImport:()=>uhe,keywordPart:()=>ZE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>i$,libs:()=>r$,lineBreakPart:()=>wj,linkNamePart:()=>Xge,linkPart:()=>NAe,linkTextPart:()=>ZW,listFiles:()=>fge,loadModuleFromGlobalCache:()=>P2e,loadWithModeAwareCache:()=>KQ,makeIdentifierFromModuleName:()=>UMe,makeImport:()=>Nk,makeImportIfNecessary:()=>rce,makeStringLiteral:()=>Pj,mangleScopedPackageName:()=>nj,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>she,mapToDisplayParts:()=>M6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>pTe,matchesExclude:()=>Bpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uJ,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>oP,modifierToFlag:()=>F7,modifiersToFlags:()=>aI,moduleOptionDeclaration:()=>tae,moduleResolutionIsEqualTo:()=>qU,moduleResolutionNameAndModeGetter:()=>use,moduleResolutionOptionDeclarations:()=>s$,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>kj,moduleSpecifiers:()=>u4,moveEmitHelpers:()=>tpe,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>lW,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>fce,needsScopeMarker:()=>kN,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hme,noEmitNotification:()=>BQ,noEmitSubstitution:()=>WQ,noTransformers:()=>ZN,noTruncationMaximumTruncationLength:()=>CY,nodeCanBeDecorated:()=>GL,nodeHasName:()=>ec,nodeIsDecorated:()=>lY,nodeIsMissing:()=>ny,nodeIsPresent:()=>y2,nodeIsSynthesized:()=>Hd,nodeModuleNameResolver:()=>cae,nodeModulesPathPart:()=>IP,nodeNextJsonConfigResolver:()=>NW,nodeOrChildIsDecorated:()=>Z1,nodeOverlapsWithStartEnd:()=>Fge,nodePosToString:()=>QU,nodeSeenTracker:()=>U3,nodeStartsNewLexicalEnvironment:()=>kie,nodeToDisplayParts:()=>L8e,noop:()=>ku,noopFileWatcher:()=>L$,normalizePath:()=>hf,normalizeSlashes:()=>$1,not:()=>dA,notImplemented:()=>Na,notImplementedResolver:()=>Wme,nullNodeConverters:()=>aJ,nullParenthesizerRules:()=>Doe,nullTransformationContext:()=>sx,objectAllocator:()=>W0,operatorPart:()=>rq,optionDeclarations:()=>hI,optionMapToObject:()=>Yoe,optionsAffectingProgramStructure:()=>jpe,optionsForBuild:()=>uQ,optionsForWatch:()=>fC,optionsHaveChanges:()=>g9,optionsHaveModuleResolutionChanges:()=>uk,or:()=>bb,orderedRemoveItem:()=>AL,orderedRemoveItemAt:()=>Yw,outFile:()=>Ng,packageIdToPackageName:()=>aie,packageIdToString:()=>jM,paramHelper:()=>fJ,parameterIsThisKeyword:()=>iI,parameterNamePart:()=>w8e,parseBaseNodeFactory:()=>tQ,parseBigInt:()=>qSe,parseBuildCommand:()=>tLe,parseCommandLine:()=>NUe,parseCommandLineWorker:()=>Ppe,parseConfigFileTextToJson:()=>Npe,parseConfigFileWithSystem:()=>jxe,parseConfigHostFromCompilerHostLike:()=>k$,parseCustomTypeOption:()=>$oe,parseIsolatedEntityName:()=>HG,parseIsolatedJSDocComment:()=>Cpe,parseJSDocTypeExpressionForTests:()=>AUe,parseJsonConfigFileContent:()=>aLe,parseJsonSourceFileConfigFileContent:()=>Zoe,parseJsonText:()=>iT,parseListTypeOption:()=>eLe,parseNodeFactory:()=>Ck,parseNodeModuleFromPath:()=>d$,parsePackageName:()=>fae,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>yMe,pathContainsNodeModules:()=>RW,pathIsAbsolute:()=>m0,pathIsBareSpecifier:()=>jre,pathIsRelative:()=>V2,patternText:()=>_v,perfLogger:()=>Zh,performIncrementalCompilation:()=>Jxe,performance:()=>Kne,plainJSErrors:()=>sD,positionBelongsToNode:()=>xAe,positionIsASICandidate:()=>pce,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>t3e,probablyUsesSemicolons:()=>$Z,processCommentPragmas:()=>YEe,processPragmasIntoFields:()=>E6,processTaggedTemplateExpression:()=>xme,programContainsEsModules:()=>Jge,programContainsModules:()=>Jx,projectReferenceIsEqualTo:()=>tY,propKeyHelper:()=>EJ,propertyNamePart:()=>R8e,pseudoBigIntToString:()=>tD,punctuationPart:()=>D1,pushIfUnique:()=>Dy,quote:()=>VZ,quotePreferenceFromString:()=>YW,rangeContainsPosition:()=>CZ,rangeContainsPositionExclusive:()=>XW,rangeContainsRange:()=>ov,rangeContainsRangeExclusive:()=>Use,rangeContainsStartEnd:()=>Aj,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>yz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>J$,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>mge,readConfigFile:()=>iQ,readHelper:()=>TJ,readJson:()=>e3,readJsonConfigFile:()=>r2e,readJsonOrUndefined:()=>Uie,reduceEachLeadingCommentRange:()=>MU,reduceEachTrailingCommentRange:()=>$_e,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>i9,refactor:()=>MF,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>aW,removeEmitHelper:()=>yEe,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>_se,removeMinAndVersionNumbers:()=>Ub,removeOptionality:()=>Vge,removePrefix:()=>xf,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>bN,repeatString:()=>Pk,replaceElement:()=>vz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>hge,resolveJSModule:()=>x2e,resolveLibrary:()=>Zpe,resolveModuleName:()=>ej,resolveModuleNameFromCache:()=>rHe,resolvePackageNameToPackageJson:()=>Ype,resolvePath:()=>NL,resolveProjectReferencePath:()=>vF,resolveTripleslashReference:()=>HQ,resolveTypeReferenceDirective:()=>Kpe,resolvingEmptyArray:()=>vG,restHelper:()=>hJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>O$,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>kce,runInitializersHelper:()=>_J,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>qLe,scanShebangTrivia:()=>OX,scanTokenAtPosition:()=>RN,scanner:()=>uT,screenStartingMessageCodes:()=>pge,semanticDiagnosticsOptionDeclarations:()=>nae,serializeCompilerOptions:()=>s2e,server:()=>X_,servicesVersion:()=>dye,setCommentRange:()=>dy,setConfigFileInOptions:()=>Lpe,setConstantValue:()=>x6e,setEachParent:()=>u6,setEmitFlags:()=>_s,setFunctionNameHelper:()=>$7,setGetSourceFileAsHashVersioned:()=>M$,setIdentifierAutoGenerate:()=>RY,setIdentifierGeneratedImportReference:()=>vEe,setIdentifierTypeArguments:()=>d6,setInternalEmitFlags:()=>Sp,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>AJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>Ls,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>Ik,setSnippetElement:()=>rpe,setSourceMapRange:()=>lp,setStackTraceLimit:()=>TTe,setStartsOnNewLine:()=>U7,setSyntheticLeadingComments:()=>uI,setSyntheticTrailingComments:()=>cW,setSys:()=>LVe,setSysLog:()=>gMe,setTextRange:()=>Tn,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>lI,setTypeNode:()=>H7,setUILocale:()=>$5,setValueDeclaration:()=>Cie,shouldAllowImportingTsExtension:()=>MW,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>yce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>Sae,signatureHasRestParameter:()=>A1,signatureToDisplayParts:()=>iq,single:()=>_U,singleElementArray:()=>X5,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>w6e,skipConstraint:()=>DF,skipOuterExpressions:()=>iv,skipParentheses:()=>rg,skipPartiallyEmittedExpressions:()=>h2,skipTrivia:()=>Ff,skipTypeChecking:()=>c3,skipTypeParentheses:()=>Ide,skipWhile:()=>qO,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>o7,sourceFileAffectingCompilerOptions:()=>c$,sourceFileMayBeEmitted:()=>JL,sourceMapCommentRegExp:()=>pme,sourceMapCommentRegExpDontCareLineStart:()=>e1,spacePart:()=>qh,spanMap:()=>fa,spreadArrayHelper:()=>SJ,stableSort:()=>nh,startEndContainsRange:()=>Wm,startEndOverlapsWithStartEnd:()=>Wge,startOnNewLine:()=>lb,startTracing:()=>Iz,startsWith:()=>qf,startsWithDirectory:()=>RU,startsWithUnderscore:()=>YZ,startsWithUseStrict:()=>Goe,stringContainsAt:()=>lq,stringToToken:()=>D8,stripQuotes:()=>S2,supportedDeclarationExtensions:()=>oJ,supportedJSExtensions:()=>qde,supportedJSExtensionsFlat:()=>h3,supportedLocaleDirectories:()=>iie,supportedTSExtensions:()=>TG,supportedTSExtensionsFlat:()=>xoe,supportedTSImplementationExtensions:()=>EG,suppressLeadingAndTrailingTrivia:()=>zT,suppressLeadingTrivia:()=>oq,suppressTrailingTrivia:()=>Qge,symbolEscapedNameNoDefault:()=>$ge,symbolName:()=>Il,symbolNameNoDefault:()=>IF,symbolPart:()=>PAe,symbolToDisplayParts:()=>Rg,syntaxMayBeASICandidate:()=>zAe,syntaxRequiresTrailingSemicolonOrASI:()=>JZ,sys:()=>w0,sysLog:()=>Mre,tagNamesAreEquivalent:()=>r4,takeWhile:()=>Qw,targetOptionDeclaration:()=>a$,templateObjectHelper:()=>bJ,testFormatSettings:()=>Rge,textChangeRangeIsUnchanged:()=>NTe,textChangeRangeNewSpan:()=>o9,textChanges:()=>zs,textOrKeywordPart:()=>NP,textPart:()=>lS,textRangeContainsPositionInclusive:()=>P8,textSpanContainsPosition:()=>tb,textSpanContainsTextSpan:()=>qre,textSpanEnd:()=>Xy,textSpanIntersection:()=>PTe,textSpanIntersectsWith:()=>zz,textSpanIntersectsWithPosition:()=>NMe,textSpanIntersectsWithTextSpan:()=>kTe,textSpanIsEmpty:()=>PMe,textSpanOverlap:()=>ITe,textSpanOverlapsWith:()=>K1,textSpansEqual:()=>C1,textToKeywordObj:()=>rE,timestamp:()=>H_,toArray:()=>BC,toBuilderFileEmit:()=>age,toBuilderStateFileInfoForMultiEmit:()=>oge,toEditorSettings:()=>lle,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>gm,toProgramEmitPending:()=>sge,tokenIsIdentifierOrKeyword:()=>CT,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RX,tokenToString:()=>Cf,trace:()=>Df,tracing:()=>ps,tracingEnabled:()=>PL,transform:()=>AOe,transformClassFields:()=>f4e,transformDeclarations:()=>lxe,transformECMAScriptModule:()=>Nme,transformES2015:()=>axe,transformES2016:()=>oxe,transformES2017:()=>exe,transformES2018:()=>d4e,transformES2019:()=>p4e,transformES2020:()=>txe,transformES2021:()=>Dme,transformES5:()=>Pme,transformESDecorators:()=>Z2e,transformESNext:()=>Ime,transformGenerators:()=>sxe,transformJsx:()=>ixe,transformLegacyDecorators:()=>Lae,transformModule:()=>Oae,transformNamedEvaluation:()=>mE,transformNodeModule:()=>b4e,transformNodes:()=>x$,transformSystemModule:()=>v4e,transformTypeScript:()=>u4e,transpile:()=>o3e,transpileModule:()=>She,transpileOptionValueCompilerOptions:()=>Vpe,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>qZ,tryCast:()=>to,tryDirectoryExists:()=>mce,tryExtractTSExtension:()=>PH,tryFileExists:()=>Lj,tryGetClassExtendingExpressionWithTypeArguments:()=>IH,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>zN,tryGetDirectories:()=>oB,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>N9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>HJ,tryGetModuleSpecifierFromDeclaration:()=>C7,tryGetNativePerformanceHooks:()=>Rc,tryGetPropertyAccessOrIdentifierToString:()=>B7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>joe,tryGetSourceMappingURL:()=>JLe,tryGetTextOfPropertyName:()=>tH,tryIOAndConsumeErrors:()=>gce,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>j2e,tryReadDirectory:()=>LAe,tryReadFile:()=>ZJ,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>Ez,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>fQ,typeAliasNamePart:()=>w6,typeDirectiveIsEqualTo:()=>GMe,typeKeywords:()=>eee,typeParameterNamePart:()=>GZ,typeReferenceResolutionNameAndModeGetter:()=>Xme,typeToDisplayParts:()=>Rj,unchangedPollThresholds:()=>Bre,unchangedTextChangeRange:()=>FL,unescapeLeadingUnderscores:()=>Ic,unmangleScopedPackageName:()=>DQ,unorderedRemoveItem:()=>A8,unorderedRemoveItemAt:()=>zC,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>Tde,updateErrorForNoInputFiles:()=>Ope,updateLanguageServiceSourceFile:()=>fye,updateMissingFilePathsWatch:()=>jme,updatePackageJsonWatch:()=>N4e,updateResolutionField:()=>l$,updateSharedExtendedConfigFileWatcher:()=>D$,updateSourceFile:()=>Hoe,updateWatchingWildcardDirectories:()=>jW,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>wT,utf16EncodeAsString:()=>ak,validateLocaleAndSetLanguage:()=>RTe,valuesHelper:()=>xJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>Iae,visitCommaListElements:()=>NQ,visitEachChild:()=>Xo,visitFunctionBody:()=>ox,visitIterationBody:()=>LS,visitLexicalEnvironment:()=>ume,visitNode:()=>Bn,visitNodes:()=>Wa,visitParameterList:()=>sm,walkUpBindingElementsAndPatterns:()=>OU,walkUpLexicalEnvironments:()=>OW,walkUpOuterExpressions:()=>bpe,walkUpParenthesizedExpressions:()=>IS,walkUpParenthesizedTypes:()=>QM,walkUpParenthesizedTypesAndGetParentAndChild:()=>uSe,whitespaceOrMapCommentRegExp:()=>Pae,writeCommentRange:()=>hG,writeFile:()=>G9,writeFileEnsuringDirectories:()=>L7,zipWith:()=>Zr});var l_=G({"src/server/_namespaces/ts.ts"(){md(),B$(),xl(),cPe(),$l()}}),Ph={};Oe(Ph,{ActionInvalidate:()=>dZ,ActionPackageInstalled:()=>T8e,ActionSet:()=>_Z,ActionWatchTypingLocations:()=>Ise,Arguments:()=>Cge,AutoImportProviderProject:()=>gn,AuxiliaryProject:()=>xt,CharRangeSection:()=>ub,CloseFileWatcherEvent:()=>Yu,CommandNames:()=>N_,ConfigFileDiagEvent:()=>Kd,ConfiguredProject:()=>qr,CreateDirectoryWatcherEvent:()=>m_,CreateFileWatcherEvent:()=>zv,Errors:()=>Dt,EventBeginInstallTypes:()=>dAe,EventEndInstallTypes:()=>pAe,EventInitializationFailed:()=>S8e,EventTypesRegistry:()=>EF,ExternalProject:()=>mt,GcTimer:()=>lt,InferredProject:()=>_o,LargeFileReferencedEvent:()=>c_,LineIndex:()=>Me,LineLeaf:()=>Mi,LineNode:()=>jn,LogLevel:()=>ht,Msg:()=>_t,OpenFileInfoTelemetryEvent:()=>jg,Project:()=>Ir,ProjectInfoTelemetryEvent:()=>Oh,ProjectKind:()=>li,ProjectLanguageServiceStateEvent:()=>iy,ProjectLoadingFinishEvent:()=>U0,ProjectLoadingStartEvent:()=>Ma,ProjectReferenceProjectLoadKind:()=>nm,ProjectService:()=>hy,ProjectsUpdatedInBackgroundEvent:()=>q_,ScriptInfo:()=>ro,ScriptVersionCache:()=>aw,Session:()=>Gv,TextStorage:()=>ha,ThrottledOperations:()=>ut,TypingsCache:()=>mc,allFilesAreJsOrDts:()=>jc,allRootFilesAreJsOrDts:()=>$a,asNormalizedPath:()=>de,convertCompilerOptions:()=>Qr,convertFormatOptions:()=>oi,convertScriptKindName:()=>xu,convertTypeAcquisition:()=>es,convertUserPreferences:()=>We,convertWatchOptions:()=>co,countEachFileTypes:()=>Fi,createInstallTypingsRequest:()=>ee,createModuleSpecifierCache:()=>GT,createNormalizedPathMap:()=>ue,createPackageJsonCache:()=>oh,createSortedArray:()=>Le,emptyArray:()=>ke,findArgument:()=>fAe,forEachResolvedProjectReferenceProject:()=>Zt,formatDiagnosticToProtocol:()=>ka,formatMessage:()=>gu,getBaseConfigFileName:()=>it,getLocationInNewDocument:()=>Si,hasArgument:()=>b8e,hasNoTypeScriptSource:()=>Xu,indent:()=>Ej,isBackgroundProject:()=>Jr,isConfigFile:()=>fp,isConfiguredProject:()=>vc,isDynamicFileName:()=>so,isExternalProject:()=>er,isInferredProject:()=>sl,isInferredProjectName:()=>Ne,makeAutoImportProviderProjectName:()=>Ve,makeAuxiliaryProjectName:()=>pt,makeInferredProjectName:()=>Be,maxFileSize:()=>x_,maxProgramSizeForNonTsFiles:()=>mu,normalizedPathToPath:()=>oe,nowString:()=>_Ae,nullCancellationToken:()=>du,nullTypingsInstaller:()=>Rr,projectContainsInfoDirectly:()=>Ca,protocol:()=>Gn,removeSorted:()=>Ye,stringifyIndented:()=>qW,toEvent:()=>yu,toNormalizedPath:()=>te,tryConvertScriptKindName:()=>Ui,typingsInstaller:()=>I,updateProjectIfDirty:()=>Qa});var Ap=G({"src/typescript/_namespaces/ts.server.ts"(){kse(),$l()}}),Mb={};Oe(Mb,{ANONYMOUS:()=>bce,AccessFlags:()=>ure,AssertionLevel:()=>AT,AssignmentDeclarationKind:()=>yre,AssignmentKind:()=>boe,Associativity:()=>Ude,BreakpointResolver:()=>TDe,BuilderFileEmit:()=>Pxe,BuilderProgramKind:()=>Nxe,BuilderState:()=>cD,BundleFileSectionKind:()=>DX,CallHierarchy:()=>$j,CharacterCodes:()=>Cre,CheckFlags:()=>are,CheckMode:()=>_E,ClassificationType:()=>Bse,ClassificationTypeNames:()=>SAe,CommentDirectiveType:()=>_X,Comparison:()=>sn,CompletionInfoFlags:()=>G$,CompletionTriggerKind:()=>Rse,Completions:()=>ow,ContainerFlags:()=>kQ,ContextFlags:()=>hX,Debug:()=>re,DiagnosticCategory:()=>wz,Diagnostics:()=>N,DocumentHighlights:()=>yhe,ElementFlags:()=>lre,EmitFlags:()=>AX,EmitHint:()=>Pre,EmitOnly:()=>mX,EndOfLineState:()=>gZ,EnumKind:()=>ore,ExitStatus:()=>AU,ExportKind:()=>HAe,Extension:()=>Dre,ExternalEmitHelpers:()=>kre,FileIncludeKind:()=>dX,FilePreprocessingDiagnosticsKind:()=>pX,FileSystemEntryKind:()=>aP,FileWatcherEventKind:()=>xTe,FindAllReferences:()=>Wf,FlattenLevel:()=>vme,FlowFlags:()=>Pz,ForegroundColorEscapeSequences:()=>Kme,FunctionFlags:()=>Vde,GeneratedIdentifierFlags:()=>W_e,GetLiteralTextFlags:()=>jde,GoToDefinition:()=>D4,HighlightSpanKind:()=>Lse,IdentifierNameMap:()=>fj,IdentifierNameMultiMap:()=>Rae,ImportKind:()=>UAe,ImportsNotUsedAsValues:()=>n9,IndentStyle:()=>Ose,IndexFlags:()=>fre,IndexKind:()=>dre,InferenceFlags:()=>gre,InferencePriority:()=>mre,InlayHintKind:()=>Mse,InlayHints:()=>vke,InternalEmitFlags:()=>Ire,InternalSymbolName:()=>sre,InvalidatedProjectKind:()=>uAe,JSDocParsingMode:()=>Rre,JsDoc:()=>nO,JsTyping:()=>kk,JsxEmit:()=>DU,JsxFlags:()=>F_e,JsxReferenceKind:()=>_re,LanguageServiceMode:()=>z$,LanguageVariant:()=>Are,LexicalEnvironmentFlags:()=>CX,ListFormat:()=>IX,LogLevel:()=>O_e,MemberOverrideStatus:()=>Yne,ModifierFlags:()=>kz,ModuleDetectionKind:()=>vre,ModuleInstanceState:()=>M2e,ModuleKind:()=>Rz,ModuleResolutionKind:()=>t9,ModuleSpecifierEnding:()=>_Ee,NavigateTo:()=>hCe,NavigationBar:()=>T3e,NewLineKind:()=>Ere,NodeBuilderFlags:()=>Qne,NodeCheckFlags:()=>cre,NodeFactoryFlags:()=>Ioe,NodeFlags:()=>tu,NodeResolutionFeatures:()=>mae,ObjectFlags:()=>bX,OperationCanceledException:()=>QO,OperatorPrecedence:()=>Hde,OrganizeImports:()=>lD,OrganizeImportsMode:()=>wse,OuterExpressionKinds:()=>Nre,OutliningElementsCollector:()=>Pke,OutliningSpanKind:()=>z3,OutputFileType:()=>yAe,PackageJsonAutoImportPreference:()=>wge,PackageJsonDependencyGroup:()=>Pse,PatternMatchKind:()=>tee,PollingInterval:()=>Ore,PollingWatchKind:()=>Sre,PragmaKindFlags:()=>wre,PrivateIdentifierKind:()=>LY,ProcessLevel:()=>Ame,ProgramUpdateLevel:()=>Ume,QuotePreference:()=>fhe,RelationComparisonResult:()=>Xne,Rename:()=>v0e,ScriptElementKind:()=>bAe,ScriptElementKindModifier:()=>TAe,ScriptKind:()=>EX,ScriptSnapshot:()=>mZ,ScriptTarget:()=>xre,SemanticClassificationFormat:()=>Nse,SemanticMeaning:()=>vce,SemicolonPreference:()=>Fse,SignatureCheckMode:()=>y$,SignatureFlags:()=>CU,SignatureHelp:()=>gue,SignatureKind:()=>SX,SmartSelectionRange:()=>Mke,SnippetKind:()=>IU,SortKind:()=>kM,StructureIsReused:()=>gX,SymbolAccessibility:()=>tre,SymbolDisplay:()=>W6,SymbolDisplayPartKind:()=>Wse,SymbolFlags:()=>yX,SymbolFormatFlags:()=>ere,SyntaxKind:()=>NM,SyntheticSymbolKind:()=>nre,Ternary:()=>hre,ThrottledCancellationToken:()=>gye,TokenClass:()=>vAe,TokenFlags:()=>fX,TransformFlags:()=>xX,TypeFacts:()=>aj,TypeFlags:()=>vX,TypeFormatFlags:()=>Zne,TypeMapKind:()=>pre,TypePredicateKind:()=>rre,TypeReferenceSerializationKind:()=>ire,UnionReduction:()=>Nz,UpToDateStatusType:()=>yge,VarianceFlags:()=>TX,Version:()=>ZT,VersionRange:()=>yN,WatchDirectoryFlags:()=>Mz,WatchDirectoryKind:()=>Tre,WatchFileKind:()=>bre,WatchLogLevel:()=>Hme,WatchType:()=>r0,accessPrivateIdentifier:()=>yme,addDisposableResourceHelper:()=>PG,addEmitFlags:()=>cE,addEmitHelper:()=>v3,addEmitHelpers:()=>$N,addInternalEmitFlags:()=>DG,addNodeFactoryPatcher:()=>oUe,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>sW,addSyntheticTrailingComment:()=>koe,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>wG,affectsDeclarationPathOptionDeclarations:()=>iae,affectsEmitOptionDeclarations:()=>rae,allKeysStartWithDot:()=>xQ,altDirectorySeparator:()=>r7,and:()=>mU,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>bz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>Tz,arraysEqual:()=>sf,assertType:()=>gN,assign:()=>AS,assignHelper:()=>dJ,asyncDelegator:()=>mJ,asyncGeneratorHelper:()=>pJ,asyncSuperHelper:()=>nS,asyncValues:()=>gJ,attachFileToDiagnostics:()=>jN,awaitHelper:()=>T3,awaiterHelper:()=>yJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>w3,breakIntoCharacterSpans:()=>Q8e,breakIntoWordSpans:()=>iCe,buildLinkParts:()=>wAe,buildOpts:()=>YG,buildOverload:()=>O0e,bundlerModuleNameResolver:()=>ELe,canBeConvertedToAsync:()=>pCe,canHaveDecorators:()=>S6,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>J8,canHaveIllegalDecorators:()=>Spe,canHaveIllegalModifiers:()=>GEe,canHaveIllegalType:()=>L6e,canHaveIllegalTypeParameters:()=>zEe,canHaveJSDoc:()=>T2,canHaveLocals:()=>XD,canHaveModifiers:()=>DA,canHaveSymbol:()=>ck,canJsonReportNoInputFiles:()=>e$,canProduceDiagnostics:()=>Fae,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Oxe,canWatchAtTypes:()=>Mxe,canWatchDirectoryOrFile:()=>rZ,cartesianProduct:()=>mTe,cast:()=>uc,chainBundle:()=>_C,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>Vre,changeCompilerHostLikeToUseCache:()=>NR,changeExtension:()=>SA,changesAffectModuleResolution:()=>Td,changesAffectingProgramStructure:()=>zMe,childIsDecorated:()=>b7,classElementOrClassElementParameterIsDecorated:()=>xde,classHasClassThisAssignment:()=>bme,classHasDeclaredOrExplicitlyAssignedName:()=>Y2e,classHasExplicitlyAssignedName:()=>Sme,classOrConstructorParameterIsDecorated:()=>yP,classPrivateFieldGetHelper:()=>IJ,classPrivateFieldInHelper:()=>Noe,classPrivateFieldSetHelper:()=>kJ,classicNameResolver:()=>C6,classifier:()=>kOe,cleanExtendedConfigCache:()=>Gme,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>VQ,climbPastPropertyAccess:()=>TZ,climbPastPropertyOrElementAccess:()=>Lge,clone:()=>S8,cloneCompilerOptions:()=>PZ,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>YE,codefix:()=>fT,collapseTextChangeRangesAcrossMultipleVersions:()=>nb,collectExternalModuleInfo:()=>cj,combine:()=>FD,combinePaths:()=>vl,commentPragmas:()=>kU,commonOptionsWithBuild:()=>o$,commonPackageFolders:()=>Soe,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>cJ,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>Rv,comparePathsCaseInsensitive:()=>n7,comparePathsCaseSensitive:()=>_h,comparePatternKeys:()=>I2e,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>XG,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>dQ,compilerOptionsIndicateEsModules:()=>OZ,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>JQ,computeLineAndCharacterOfPosition:()=>Nd,computeLineOfPosition:()=>TN,computeLineStarts:()=>RM,computePositionOfLineAndCharacter:()=>H_e,computeSignature:()=>TF,computeSignatureWithDiagnostics:()=>nge,computeSuggestionDiagnostics:()=>Ice,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>cq,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>nx,containsParseError:()=>qz,containsPath:()=>OE,convertCompilerOptionsForTelemetry:()=>n$,convertCompilerOptionsFromJson:()=>lLe,convertJsonOption:()=>x6,convertToBase64:()=>bSe,convertToJson:()=>Xoe,convertToObject:()=>Rpe,convertToOptionsWithAbsolutePaths:()=>qG,convertToRelativePath:()=>PX,convertToTSConfig:()=>a2e,convertTypeAcquisitionFromJson:()=>UUe,copyComments:()=>nB,copyEntries:()=>oie,copyLeadingComments:()=>rB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>PF,copyTrailingComments:()=>Mj,couldStartTrivia:()=>HD,countWhere:()=>dp,createAbstractBuilder:()=>J4e,createAccessorPropertyBackingField:()=>qJ,createAccessorPropertyGetRedirector:()=>JEe,createAccessorPropertySetRedirector:()=>QY,createBaseNodeFactory:()=>Yde,createBinaryExpressionTrampoline:()=>GG,createBindingHelper:()=>q7,createBuildInfo:()=>Hae,createBuilderProgram:()=>rge,createBuilderProgramUsingProgramBuildInfo:()=>U4e,createBuilderStatusReporter:()=>QE,createCacheWithRedirects:()=>aae,createCacheableExportInfoMap:()=>jAe,createCachedDirectoryStructureHost:()=>Jae,createClassNamedEvaluationHelperBlock:()=>WW,createClassThisAssignmentBlock:()=>T$,createClassifier:()=>B8e,createCommentDirectivesMap:()=>YTe,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Ipe,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>M4e,createCompilerHostFromProgramHost:()=>Hxe,createCompilerHostWorker:()=>$me,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>HL,createDiagnosticForFileFromMessageChain:()=>oE,createDiagnosticForNode:()=>Bs,createDiagnosticForNodeArray:()=>Qz,createDiagnosticForNodeArrayFromMessageChain:()=>b9,createDiagnosticForNodeFromMessageChain:()=>wN,createDiagnosticForNodeInSourceFile:()=>Ud,createDiagnosticForRange:()=>Zz,createDiagnosticMessageChainFromDiagnostic:()=>kc,createDiagnosticReporter:()=>w$,createDocumentPositionMapper:()=>QLe,createDocumentRegistry:()=>U8e,createDocumentRegistryInternal:()=>Ace,createEmitAndSemanticDiagnosticsBuilderProgram:()=>cge,createEmitHelperFactory:()=>ipe,createEmptyExports:()=>Boe,createExpressionForJsxElement:()=>hpe,createExpressionForJsxFragment:()=>P6e,createExpressionForObjectLiteralElementLike:()=>LEe,createExpressionForPropertyName:()=>ype,createExpressionFromEntityName:()=>zoe,createExternalHelpersImportDeclarationIfNeeded:()=>UJ,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>g7,createForOfBindingStatement:()=>wEe,createGetCanonicalFileName:()=>H1,createGetSourceFile:()=>gxe,createGetSymbolAccessibilityDiagnosticForNode:()=>QN,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wme,createGetSymbolWalker:()=>LLe,createIncrementalCompilerHost:()=>qxe,createIncrementalProgram:()=>gge,createInputFiles:()=>sUe,createInputFilesWithFilePaths:()=>tc,createInputFilesWithFileTexts:()=>gEe,createJsxFactoryExpression:()=>NEe,createLanguageService:()=>_ye,createLanguageServiceSourceFile:()=>xq,createMemberAccessForPropertyName:()=>sF,createModeAwareCache:()=>IR,createModeAwareCacheKey:()=>_$,createModuleNotFoundChain:()=>KU,createModuleResolutionCache:()=>s4,createModuleResolutionLoader:()=>I$,createModuleResolutionLoaderUsingGlobalCache:()=>oZ,createModuleSpecifierResolutionHost:()=>v4,createMultiMap:()=>zg,createNodeConverters:()=>y6e,createNodeFactory:()=>AG,createOptionNameMap:()=>Joe,createOverload:()=>sPe,createPackageJsonImportFilter:()=>Oj,createPackageJsonInfo:()=>ihe,createParenthesizerRules:()=>dEe,createPatternMatcher:()=>H8e,createPrependNodes:()=>ise,createPrinter:()=>F3,createPrinterWithDefaults:()=>Bme,createPrinterWithRemoveComments:()=>d4,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zme,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>C$,createProgram:()=>YQ,createProgramHost:()=>SF,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>fse,createResolutionCache:()=>Wxe,createRuntimeTypeSerializer:()=>_4e,createScanner:()=>CS,createSemanticDiagnosticsBuilderProgram:()=>wxe,createSet:()=>J5,createSolutionBuilder:()=>F$,createSolutionBuilderHost:()=>n8e,createSolutionBuilderWithWatch:()=>r8e,createSolutionBuilderWithWatchHost:()=>vJe,createSortedArray:()=>g2,createSourceFile:()=>eQ,createSourceMapGenerator:()=>_me,createSourceMapSource:()=>cUe,createSuperAccessVariableStatement:()=>Cme,createSymbolTable:()=>zd,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>ETe,createTextChange:()=>LZ,createTextChangeFromStartLength:()=>Dj,createTextChangeRange:()=>WX,createTextRangeFromNode:()=>RZ,createTextRangeFromSpan:()=>MZ,createTextSpan:()=>p1,createTextSpanFromBounds:()=>Yy,createTextSpanFromNode:()=>sT,createTextSpanFromRange:()=>PP,createTextSpanFromStringLiteralLikeContent:()=>CF,createTextWriter:()=>Nie,createTokenRange:()=>Hie,createTypeChecker:()=>oT,createTypeReferenceDirectiveResolutionCache:()=>sae,createTypeReferenceResolutionLoader:()=>Yae,createUnparsedSourceFile:()=>mEe,createWatchCompilerHost:()=>Ese,createWatchCompilerHostOfConfigFile:()=>Z4e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sse,createWatchFactory:()=>dge,createWatchHost:()=>_ge,createWatchProgram:()=>yj,createWatchStatusReporter:()=>Gxe,createWriteFileMeasuringIO:()=>$ae,declarationNameToString:()=>hm,decodeMappings:()=>dme,decodedTextSpanIntersectsWith:()=>FX,decorateHelper:()=>lJ,deduplicate:()=>th,defaultIncludeSpec:()=>Dk,defaultInitCompilerOptions:()=>_Q,defaultMaximumTruncationLength:()=>j7,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>YO,diagnosticToString:()=>$3,directoryProbablyExists:()=>O0,directorySeparator:()=>qp,displayPart:()=>yE,displayPartsToString:()=>ule,disposeEmitNodes:()=>cI,disposeResourcesHelper:()=>NG,documentSpansEqual:()=>$h,dumpTracingLegend:()=>e9,elementAt:()=>Zn,elideNodes:()=>n4,emitComments:()=>ZMe,emitDetachedComments:()=>mSe,emitFiles:()=>Uae,emitFilesAndReportErrors:()=>bse,emitFilesAndReportErrorsAndGetExitStatus:()=>Uxe,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>Wie,emitNewLineBeforeLeadingComments:()=>pSe,emitNewLineBeforeLeadingCommentsOfPosition:()=>bA,emitSkippedWithNoDiagnostics:()=>Yme,emitUsingBuildInfo:()=>D4e,emptyArray:()=>Yn,emptyFileSystemEntries:()=>Xde,emptyMap:()=>ME,emptyOptions:()=>lx,emptySet:()=>uMe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>Fd,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Su,entityNameToString:()=>iE,enumerateInsertsAndDeletes:()=>zD,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>b3,escapeJsxAttributeString:()=>M7,escapeLeadingUnderscores:()=>ey,escapeNonAsciiString:()=>SH,escapeSnippetText:()=>nD,escapeString:()=>Q8,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>JY,explainFiles:()=>hse,explainIfFileIsRedirectAndImpliedFormat:()=>yse,exportAssignmentIsAlias:()=>K8,exportStarHelper:()=>DJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>vJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>xG,externalHelpersModuleNameText:()=>HN,factory:()=>he,fileExtensionIs:()=>mm,fileExtensionIsOneOf:()=>pv,fileIncludeReasonToDiagnostics:()=>cZ,fileShouldUseJavaScriptRequire:()=>BAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>rse,find:()=>lr,findAncestor:()=>Ua,findBestPatternMatch:()=>CL,findChildOfKind:()=>qm,findComputedPropertyNameCacheAssignment:()=>KJ,findConfigFile:()=>Jme,findContainingList:()=>$se,findDiagnosticForNode:()=>ahe,findFirstNonJsxWhitespaceToken:()=>Gge,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>Hse,findMap:()=>cs,findModifier:()=>QW,findNextToken:()=>N6,findPackageJson:()=>aB,findPackageJsons:()=>nhe,findPrecedingMatchingToken:()=>q$,findPrecedingToken:()=>bv,findSuperStatementIndexPath:()=>mme,findTokenOnLeftOfPosition:()=>Xse,findUseStrictPrologue:()=>qY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>XZ,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>gCe,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>vr,flattenDestructuringAssignment:()=>yI,flattenDestructuringBinding:()=>pF,flattenDiagnosticMessageText:()=>D2,forEach:()=>Ot,forEachAncestor:()=>qTe,forEachAncestorDirectory:()=>jC,forEachChild:()=>s_,forEachChildRecursively:()=>cF,forEachEmittedFile:()=>zQ,forEachEnclosingBlockScopeContainer:()=>hde,forEachEntry:()=>Jb,forEachExternalModuleToImportFrom:()=>VAe,forEachImportClauseDeclaration:()=>sG,forEachKey:()=>gA,forEachLeadingCommentRange:()=>ep,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>eG,forEachResolvedProjectReference:()=>k6,forEachReturnStatement:()=>dR,forEachRight:()=>bo,forEachTrailingCommentRange:()=>k8,forEachTsConfigPropArray:()=>q2,forEachUnique:()=>hE,forEachYieldExpression:()=>hie,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>wR,formatDiagnostic:()=>qme,formatDiagnostics:()=>hxe,formatDiagnosticsWithColorAndContext:()=>kA,formatGeneratedName:()=>D3,formatGeneratedNamePart:()=>jG,formatLocation:()=>qae,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>V0,fullTripleSlashAMDReferencePathRegEx:()=>voe,fullTripleSlashReferencePathRegEx:()=>yoe,generateDjb2Hash:()=>Lz,generateTSConfig:()=>c2e,generatorHelper:()=>IG,getAdjustedReferenceLocation:()=>zge,getAdjustedRenameLocation:()=>DZ,getAliasDeclarationFromName:()=>vP,getAllAccessorDeclarations:()=>oI,getAllDecoratorsOfClass:()=>gme,getAllDecoratorsOfClassElement:()=>wae,getAllJSDocTags:()=>WU,getAllJSDocTagsOfKind:()=>jX,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Vae,getAllSuperTypeNodes:()=>uG,getAllUnscopedEmitHelpers:()=>MY,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>oC,getAnyExtensionFromPath:()=>t7,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>I9,getAssignedName:()=>FU,getAssignedNameOfIdentifier:()=>mj,getAssignmentDeclarationKind:()=>jy,getAssignmentDeclarationPropertyAccessKind:()=>XM,getAssignmentTargetKind:()=>q8,getAutomaticTypeDirectiveNames:()=>Qpe,getBaseFileName:()=>Jg,getBinaryOperatorPrecedence:()=>bH,getBuildInfo:()=>Fme,getBuildInfoFileVersionMap:()=>kxe,getBuildInfoText:()=>_4,getBuildOrderFromAnyBuildOrder:()=>vge,getBuilderCreationParameters:()=>nZ,getBuilderFileEmit:()=>P6,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>gR,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Eb,getCombinedNodeFlags:()=>rR,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>K_e,getCommentRange:()=>MS,getCommonSourceDirectory:()=>zW,getCommonSourceDirectoryOfConfig:()=>hF,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>FUe,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>m4,getConstantValue:()=>JN,getContainerFlags:()=>R2e,getContainerNode:()=>RR,getContainingClass:()=>$b,getContainingClassExcludingClassDecorators:()=>A9,getContainingClassStaticBlock:()=>nG,getContainingFunction:()=>zE,getContainingFunctionDeclaration:()=>oSe,getContainingFunctionOrClassStaticBlock:()=>vie,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>Aee,getContextualTypeFromParent:()=>aq,getContextualTypeFromParentOrAncestorTypeNode:()=>bf,getCurrentTime:()=>xse,getDeclarationDiagnostics:()=>T4e,getDeclarationEmitExtensionForPath:()=>TY,getDeclarationEmitOutputFilePath:()=>Rie,getDeclarationEmitOutputFilePathWorker:()=>Mie,getDeclarationFromName:()=>lG,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Rh,getDeclarationsOfKind:()=>ude,getDeclaredExpandoInitializer:()=>pR,getDecorators:()=>OM,getDefaultCompilerOptions:()=>lye,getDefaultExportInfoWorker:()=>phe,getDefaultFormatCodeSettings:()=>pZ,getDefaultLibFileName:()=>$D,getDefaultLibFilePath:()=>pDe,getDefaultLikeExportInfo:()=>dhe,getDiagnosticText:()=>qoe,getDiagnosticsWithinSpan:()=>OAe,getDirectoryPath:()=>ws,getDirectoryToWatchFailedLookupLocation:()=>Fxe,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>X4e,getDocumentPositionMapper:()=>sCe,getESModuleInterop:()=>b1,getEditsForFileRename:()=>QAe,getEffectiveBaseTypeNode:()=>YC,getEffectiveConstraintOfTypeParameter:()=>a9,getEffectiveContainerForJSDocTemplateTag:()=>Iie,getEffectiveImplementsTypeNodes:()=>ZM,getEffectiveInitializer:()=>sH,getEffectiveJSDocHost:()=>YM,getEffectiveModifierFlags:()=>Cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Fx,getEffectiveModifierFlagsNoCache:()=>n6,getEffectiveReturnTypeNode:()=>kS,getEffectiveSetAccessorTypeAnnotationNode:()=>Kb,getEffectiveTypeAnnotationNode:()=>Zy,getEffectiveTypeParameterDeclarations:()=>Hb,getEffectiveTypeRoots:()=>ZG,getElementOrPropertyAccessArgumentExpressionOrName:()=>lH,getElementOrPropertyAccessName:()=>eI,getElementsOfBindingOrAssignmentPattern:()=>zG,getEmitDeclarations:()=>gv,getEmitFlags:()=>wd,getEmitHelpers:()=>NY,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>QD,getEnclosingContainer:()=>gie,getEncodedSemanticClassifications:()=>$Ae,getEncodedSyntacticClassifications:()=>qAe,getEndLinePosition:()=>cie,getEntityNameFromTypeNode:()=>cY,getEntrypointsFromPackageJsonInfo:()=>c4,getErrorCountForSummary:()=>pse,getErrorSpanForNode:()=>zL,getErrorSummaryText:()=>uge,getEscapedTextOfIdentifierOrLiteral:()=>nI,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>KM,getExportAssignmentExpression:()=>Pde,getExportInfoMap:()=>Sce,getExportNeedsImportStarHelper:()=>sj,getExpressionAssociativity:()=>Y8,getExpressionPrecedence:()=>dG,getExternalHelpersModuleName:()=>t4,getExternalModuleImportEqualsDeclarationExpression:()=>oG,getExternalModuleName:()=>w9,getExternalModuleNameFromDeclaration:()=>Rde,getExternalModuleNameFromPath:()=>xH,getExternalModuleNameLiteral:()=>oD,getExternalModuleRequireArgument:()=>Sie,getFallbackOptions:()=>UQ,getFileEmitOutput:()=>O4e,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>t$,getFileWatcherEventKind:()=>j_e,getFilesInErrorForSummary:()=>aZ,getFirstConstructorWithBody:()=>sC,getFirstIdentifier:()=>PS,getFirstNonSpaceCharacterPosition:()=>kF,getFirstProjectOutput:()=>dxe,getFixableErrorSpanExpression:()=>FAe,getFormatCodeSettingsForWriting:()=>uq,getFullWidth:()=>WL,getFunctionFlags:()=>ob,getHeritageClause:()=>hA,getHostSignatureFromJSDoc:()=>LN,getIdentifierAutoGenerate:()=>uUe,getIdentifierGeneratedImportReference:()=>bEe,getIdentifierTypeArguments:()=>J7,getImmediatelyInvokedFunctionExpression:()=>v7,getImpliedNodeFormatForFile:()=>Zae,getImpliedNodeFormatForFileWorker:()=>ese,getImportNeedsImportDefaultHelper:()=>aD,getImportNeedsImportStarHelper:()=>D6,getIndentSize:()=>HE,getIndentString:()=>bY,getInferredLibraryNameResolveFrom:()=>VW,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>_Y,getInitializerOfBindingOrAssignmentElement:()=>XY,getInterfaceBaseTypeNodes:()=>gH,getInternalEmitFlags:()=>HC,getInvokedExpression:()=>rG,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>LTe,getJSDocClassTag:()=>Q_e,getJSDocCommentRanges:()=>S9,getJSDocCommentsAndTags:()=>fH,getJSDocDeprecatedTag:()=>GTe,getJSDocDeprecatedTagNoCache:()=>jTe,getJSDocEnumTag:()=>VTe,getJSDocHost:()=>k7,getJSDocImplementsTags:()=>OTe,getJSDocOverrideTagNoCache:()=>zTe,getJSDocParameterTags:()=>o_,getJSDocParameterTagsNoCache:()=>Y_e,getJSDocPrivateTag:()=>MMe,getJSDocPrivateTagNoCache:()=>WTe,getJSDocProtectedTag:()=>BTe,getJSDocProtectedTagNoCache:()=>LMe,getJSDocPublicTag:()=>RMe,getJSDocPublicTagNoCache:()=>FTe,getJSDocReadonlyTag:()=>OMe,getJSDocReadonlyTagNoCache:()=>FMe,getJSDocReturnTag:()=>UTe,getJSDocReturnType:()=>GX,getJSDocRoot:()=>_H,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>Z_e,getJSDocTags:()=>WM,getJSDocTagsNoCache:()=>w8,getJSDocTemplateTag:()=>HTe,getJSDocThisTag:()=>Xre,getJSDocType:()=>iR,getJSDocTypeAliasName:()=>Tpe,getJSDocTypeAssertionType:()=>x1,getJSDocTypeParameterDeclarations:()=>SY,getJSDocTypeParameterTags:()=>N8,getJSDocTypeParameterTagsNoCache:()=>MTe,getJSDocTypeTag:()=>FM,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>N3,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>JD,getLeadingCommentRangesOfNode:()=>WE,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>KL,getLibraryNameFromLibFileName:()=>Qae,getLineAndCharacterOfPosition:()=>xm,getLineInfo:()=>kae,getLineOfLocalPosition:()=>j9,getLineOfLocalPositionFromLineMap:()=>Z8,getLineStartPositionForPosition:()=>Ux,getLineStarts:()=>eR,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>i7,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>_ie,getLocalNameForExternalImport:()=>C3,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>dse,getMappedContextSpan:()=>Kge,getMappedDocumentSpan:()=>oce,getMappedLocation:()=>H3,getMatchedFileSpec:()=>vse,getMatchedIncludeSpec:()=>sZ,getMeaningFromDeclaration:()=>j$,getMeaningFromLocation:()=>xF,getMembersOfDeclaration:()=>yie,getModeForFileReference:()=>$Q,getModeForResolutionAtIndex:()=>Kae,getModeForUsageLocation:()=>PA,getModifiedTime:()=>ZO,getModifiers:()=>Xv,getModuleInstanceState:()=>YN,getModuleNameStringLiteralAt:()=>ZQ,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>FZ,getNameForExportedSymbol:()=>Fj,getNameFromIndexInfo:()=>ZTe,getNameFromPropertyName:()=>tq,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>Mpe,getNameOfDeclaration:()=>i_,getNameOfExpando:()=>aG,getNameOfJSDocTypedef:()=>ML,getNameOrArgument:()=>KC,getNameTable:()=>xee,getNamesForExportedSymbol:()=>hce,getNamespaceDeclarationNode:()=>H8,getNewLineCharacter:()=>JE,getNewLineKind:()=>Wj,getNewLineOrDefaultFromHost:()=>R6,getNewTargetContainer:()=>aSe,getNextJSDocCommentLocation:()=>Die,getNodeForGeneratedName:()=>$J,getNodeId:()=>vm,getNodeKind:()=>h4,getNodeModifiers:()=>X$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>Kre,getNonAssignmentOperatorForCompoundAssignment:()=>RQ,getNonAugmentationDeclaration:()=>pie,getNonDecoratorTokenPosOfNode:()=>fie,getNormalizedAbsolutePath:()=>vf,getNormalizedAbsolutePathWithoutRoot:()=>tf,getNormalizedPathComponents:()=>g0,getObjectFlags:()=>ji,getOperator:()=>rh,getOperatorAssociativity:()=>rI,getOperatorPrecedence:()=>Pie,getOptionFromName:()=>QJ,getOptionsForLibraryResolution:()=>E2e,getOptionsNameMap:()=>JG,getOrCreateEmitNode:()=>Sa,getOrCreateExternalHelpersModuleNameIfNeeded:()=>M6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Gg,getOriginalNodeId:()=>Nb,getOriginalSourceFile:()=>_Se,getOutputDeclarationFileName:()=>gF,getOutputExtension:()=>jae,getOutputFileNames:()=>Ome,getOutputPathsFor:()=>A$,getOutputPathsForBundle:()=>O3,getOwnEmitOutputFilePath:()=>hR,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>A6,getPackageJsonTypesVersionsPaths:()=>vQ,getPackageJsonsVisibleToFile:()=>rhe,getPackageNameFromTypesPackageName:()=>l4,getPackageScopeForPath:()=>m$,getParameterSymbolFromJSDoc:()=>$8,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>nq,getParseTreeNode:()=>__,getParsedCommandLineOfConfigFile:()=>$G,getPathComponents:()=>qc,getPathComponentsRelativeTo:()=>Ure,getPathFromPathComponents:()=>Iy,getPathUpdater:()=>Cce,getPathsBasePath:()=>Lie,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>N$,getPositionOfLineAndCharacter:()=>Wz,getPossibleGenericSignatures:()=>Uge,getPossibleOriginalInputExtensionForExtension:()=>Mde,getPossibleTypeArgumentsInfo:()=>K$,getPreEmitDiagnostics:()=>L4e,getPrecedingNonSpaceCharacterPosition:()=>Yge,getPrivateIdentifier:()=>K2e,getProperties:()=>b$,getProperty:()=>T8,getPropertyArrayElementValue:()=>iSe,getPropertyAssignmentAliasLikeExpression:()=>XMe,getPropertyNameForPropertyNameNode:()=>FN,getPropertyNameForUniqueESSymbol:()=>wde,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>WEe,getPropertySymbolFromBindingElement:()=>Nj,getPropertySymbolsFromContextualType:()=>_le,getQuoteFromPreference:()=>ice,getQuotePreference:()=>OS,getRangesWhere:()=>eu,getRefactorContextSpan:()=>NF,getReferencedFileLocation:()=>XQ,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>sP,getRelativePathFromFile:()=>wM,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>jZ,getReplacementSpanForContextToken:()=>wZ,getResolutionDiagnostic:()=>QQ,getResolutionModeOverride:()=>W3,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>mG,getRestIndicatorOfBindingOrAssignmentElement:()=>YY,getRestParameterElementType:()=>tSe,getRightMostAssignedExpression:()=>k9,getRootDeclaration:()=>vA,getRootDirectoryOfResolutionCache:()=>iZ,getRootLength:()=>Pg,getRootPathSplitLength:()=>Y4e,getScriptKind:()=>sce,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>hoe,getSelectedEffectiveModifierFlags:()=>fk,getSelectedSyntacticModifierFlags:()=>Ode,getSemanticClassifications:()=>JAe,getSemanticJsxChildren:()=>B9,getSetAccessorTypeAnnotationNode:()=>Lde,getSetAccessorValueParameter:()=>AH,getSetExternalModuleIndicator:()=>q9,getShebang:()=>Bz,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>D7,getSingleVariableOfVariableStatement:()=>I7,getSnapshotText:()=>Ij,getSnippetElement:()=>npe,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>ts,getSourceFilePathInNewDir:()=>Fie,getSourceFilePathInNewDirWorker:()=>Kg,getSourceFileVersionAsHashFromText:()=>lZ,getSourceFilesToEmit:()=>Oie,getSourceMapRange:()=>YL,getSourceMapper:()=>n3e,getSourceTextOfNodeFromSourceFile:()=>m7,getSpanOfTokenAtPosition:()=>M0,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>fR,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>Ry,getStaticPropertiesAndClassStaticBlock:()=>MQ,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>v$,getSuperContainer:()=>h0,getSupportedCodeFixes:()=>fle,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>_ce,getSymbolId:()=>$d,getSymbolNameForPrivateIdentifier:()=>WN,getSymbolTarget:()=>e2,getSyntacticClassifications:()=>hhe,getSyntacticModifierFlags:()=>ZC,getSyntacticModifierFlagsNoCache:()=>Fde,getSynthesizedDeepClone:()=>ih,getSynthesizedDeepCloneWithReplacements:()=>cce,getSynthesizedDeepClones:()=>WR,getSynthesizedDeepClonesWithReplacements:()=>tB,getSyntheticLeadingComments:()=>y3,getSyntheticTrailingComments:()=>PY,getTargetLabel:()=>SZ,getTargetOfBindingOrAssignmentElement:()=>gI,getTemporaryModuleResolutionState:()=>lae,getTextOfConstantValue:()=>Yv,getTextOfIdentifierOrLiteral:()=>K2,getTextOfJSDocComment:()=>EN,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Lv,getTextOfNodeFromSourceText:()=>h9,getTextOfPropertyName:()=>z8,getThisContainer:()=>RT,getThisParameter:()=>BN,getTokenAtPosition:()=>Lf,getTokenPosOfNode:()=>v2,getTokenSourceMapRange:()=>epe,getTouchingPropertyName:()=>cS,getTouchingToken:()=>MR,getTrailingCommentRanges:()=>SN,getTrailingSemicolonDeferringWriter:()=>z9,getTransformFlagsSubtreeExclusions:()=>v6e,getTransformers:()=>Rme,getTsBuildInfoEmitOutputFilePath:()=>PR,getTsConfigObjectLiteralExpression:()=>tG,getTsConfigPropArrayElementValue:()=>JM,getTypeAnnotationNode:()=>O7,getTypeArgumentOrTypeParameterList:()=>IAe,getTypeKeywordOfTypeOnlyImport:()=>qge,getTypeNode:()=>wY,getTypeNodeIfAccessible:()=>iB,getTypeParameterFromJsDoc:()=>sSe,getTypeParameterOwner:()=>R0,getTypesPackageName:()=>pae,getUILocale:()=>dTe,getUniqueName:()=>b4,getUniqueSymbolId:()=>RAe,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>mse,getWatchFactory:()=>mxe,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>p7,handleNoEmitOptions:()=>nse,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>e_,hasAmbientModifier:()=>il,hasChangesInResolutions:()=>sie,hasChildOfKind:()=>Jse,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>X2,hasDocComment:()=>DAe,hasDynamicName:()=>tI,hasEffectiveModifier:()=>tT,hasEffectiveModifiers:()=>Bie,hasEffectiveReadonlyModifier:()=>Ny,hasExtension:()=>r9,hasIndexSignature:()=>HZ,hasInitializer:()=>J2,hasInvalidEscape:()=>TH,hasJSDocNodes:()=>NT,hasJSDocParameterTags:()=>Gz,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>g1,hasOverrideModifier:()=>zie,hasPossibleExternalModuleReference:()=>gde,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>xj,hasQuestionToken:()=>M9,hasRecordedExternalHelpers:()=>R6e,hasResolutionModeOverride:()=>_6,hasRestParameter:()=>lde,hasScopeMarker:()=>WMe,hasStaticModifier:()=>ev,hasSyntacticModifier:()=>ul,hasSyntacticModifiers:()=>gSe,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>VD,hasType:()=>_P,hasTypeArguments:()=>cSe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>Poe,hostGetCanonicalFileName:()=>QC,hostUsesCaseSensitiveFileNames:()=>pG,idText:()=>Kr,identifierIsThisKeyword:()=>$L,identifierToKeywordKind:()=>uP,identity:()=>Of,identitySourceMapConsumer:()=>Vx,ignoreSourceNewlines:()=>qN,ignoredPaths:()=>NU,importDefaultHelper:()=>CJ,importFromModuleSpecifier:()=>XC,importNameElisionDisabled:()=>Qie,importStarHelper:()=>kG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>y9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>hj,injectClassNamedEvaluationHelperBlockIfMissing:()=>Eme,injectClassThisAssignmentIfMissing:()=>FW,insertImports:()=>zZ,insertLeadingStatement:()=>dUe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>_R,insertStatementAfterStandardPrologue:()=>VMe,insertStatementsAfterCustomPrologue:()=>wx,insertStatementsAfterStandardPrologue:()=>Um,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>bde,inverseJsxOptionMap:()=>uF,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>wJ,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>FR,isAccessor:()=>GM,isAccessorModifier:()=>EEe,isAliasSymbolDeclaration:()=>N7,isAliasableExpression:()=>O9,isAmbientModule:()=>dh,isAmbientPropertyDeclaration:()=>mde,isAnonymousFunctionDefinition:()=>R7,isAnyDirectorySeparator:()=>wU,isAnyImportOrBareOrAccessedRequire:()=>JMe,isAnyImportOrReExport:()=>eH,isAnyImportSyntax:()=>W8,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>AQ,isArgumentExpressionOfElementAccess:()=>Oge,isArray:()=>ls,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>p9,isArrayBindingOrAssignmentPattern:()=>rde,isArrayBindingPattern:()=>Wd,isArrayLiteralExpression:()=>Ed,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kP,isArrayTypeNode:()=>GY,isArrowFunction:()=>$m,isAsExpression:()=>eF,isAssertClause:()=>AP,isAssertEntry:()=>y6,isAssertionExpression:()=>f7,isAssertsKeyword:()=>dW,isAssignmentDeclaration:()=>eT,isAssignmentExpression:()=>Zv,isAssignmentOperator:()=>pk,isAssignmentPattern:()=>KD,isAssignmentTarget:()=>VE,isAsteriskToken:()=>BY,isAsyncFunction:()=>t6,isAsyncModifier:()=>NJ,isAutoAccessorPropertyDeclaration:()=>xb,isAwaitExpression:()=>ys,isAwaitKeyword:()=>ape,isBigIntLiteral:()=>OY,isBinaryExpression:()=>Ds,isBinaryOperatorToken:()=>UEe,isBindableObjectDefinePropertyCall:()=>A7,isBindableStaticAccessExpression:()=>mR,isBindableStaticElementAccessExpression:()=>jL,isBindableStaticNameExpression:()=>U8,isBindingElement:()=>sa,isBindingElementOfBareOrAccessedRequire:()=>Rs,isBindingName:()=>lR,isBindingOrAssignmentElement:()=>ld,isBindingOrAssignmentPattern:()=>u7,isBindingPattern:()=>$_,isBlock:()=>Ou,isBlockOrCatchScoped:()=>v9,isBlockScope:()=>$C,isBlockScopedContainerTopLevel:()=>pde,isBooleanLiteral:()=>_y,isBreakOrContinueStatement:()=>M8,isBreakStatement:()=>Loe,isBuildInfoFile:()=>fxe,isBuilderProgram:()=>gse,isBundle:()=>fpe,isBundleFileTextLike:()=>NSe,isCallChain:()=>AN,isCallExpression:()=>xd,isCallExpressionTarget:()=>hZ,isCallLikeExpression:()=>uR,isCallLikeOrFunctionLikeExpression:()=>eie,isCallOrNewExpression:()=>sk,isCallOrNewExpressionTarget:()=>yZ,isCallSignatureDeclaration:()=>Y7,isCallToHelper:()=>uW,isCaseBlock:()=>Fv,isCaseClause:()=>BT,isCaseKeyword:()=>Hh,isCaseOrDefaultClause:()=>$U,isCatchClause:()=>A3,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>Tp,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>qC,isCircularBuildOrder:()=>vj,isClassDeclaration:()=>Ih,isClassElement:()=>J_,isClassExpression:()=>v0,isClassInstanceProperty:()=>nde,isClassLike:()=>Fl,isClassMemberModifier:()=>jU,isClassNamedEvaluationHelperBlock:()=>gj,isClassOrTypeElement:()=>c7,isClassStaticBlockDeclaration:()=>Ep,isClassThisAssignmentBlock:()=>S$,isCollapsedRange:()=>XVe,isColonToken:()=>An,isCommaExpression:()=>rv,isCommaListExpression:()=>E_,isCommaSequence:()=>VJ,isCommaToken:()=>WY,isComment:()=>ece,isCommonJsExportPropertyAssignment:()=>HM,isCommonJsExportedExpression:()=>$Me,isCompoundAssignment:()=>uj,isComputedNonLiteralName:()=>Yz,isComputedPropertyName:()=>Qf,isConciseBody:()=>VU,isConditionalExpression:()=>ex,isConditionalTypeNode:()=>Q7,isConstTypeReference:()=>ky,isConstructSignatureDeclaration:()=>x2,isConstructorDeclaration:()=>Lh,isConstructorTypeNode:()=>MG,isContextualKeyword:()=>_G,isContinueStatement:()=>D6e,isCustomPrologue:()=>T9,isDebuggerStatement:()=>b0,isDeclaration:()=>PT,isDeclarationBindingElement:()=>$X,isDeclarationFileName:()=>Zb,isDeclarationName:()=>ON,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>oY,isDeclarationStatement:()=>cde,isDeclarationWithTypeParameterChildren:()=>mie,isDeclarationWithTypeParameters:()=>BL,isDecorator:()=>Jh,isDecoratorTarget:()=>bZ,isDefaultClause:()=>xk,isDefaultImport:()=>R9,isDefaultModifier:()=>zY,isDefaultedExpandoInitializer:()=>Aie,isDeleteExpression:()=>h6,isDeleteTarget:()=>mH,isDeprecatedDeclaration:()=>QZ,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>ohe,isDiskPathRoot:()=>Gre,isDoStatement:()=>cpe,isDocumentRegistryEntry:()=>xce,isDotDotDotToken:()=>FY,isDottedName:()=>Uh,isDynamicName:()=>L0,isESSymbolIdentifier:()=>gY,isEffectiveExternalModule:()=>VM,isEffectiveModuleDeclaration:()=>HMe,isEffectiveStrictModeSourceFile:()=>QTe,isElementAccessChain:()=>oR,isElementAccessExpression:()=>Hm,isEmittedFileOfProgram:()=>Vme,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>BX,isEmptyBindingPattern:()=>wTe,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>xEe,isEmptyStringLiteral:()=>iH,isEntityName:()=>kT,isEntityNameExpression:()=>Tg,isEnumConst:()=>G8,isEnumDeclaration:()=>xP,isEnumMember:()=>pI,isEqualityOperatorKind:()=>sq,isEqualsGreaterThanToken:()=>fW,isExclamationToken:()=>RG,isExcludedFile:()=>Wpe,isExclusivelyTypeOnlyImportOrExport:()=>qQ,isExpandoPropertyDeclaration:()=>eJ,isExportAssignment:()=>my,isExportDeclaration:()=>ry,isExportModifier:()=>_W,isExportName:()=>CW,isExportNamespaceAsDefaultDeclaration:()=>nY,isExportOrDefaultModifier:()=>Voe,isExportSpecifier:()=>gy,isExportsIdentifier:()=>P9,isExportsOrModuleExportsOrAlias:()=>R3,isExpression:()=>kr,isExpressionNode:()=>ZD,isExpressionOfExternalModuleImportEqualsDeclaration:()=>AZ,isExpressionOfOptionalChainRoot:()=>BU,isExpressionStatement:()=>kb,isExpressionWithTypeArguments:()=>cC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Gie,isExternalModule:()=>Bv,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>Mx,isExternalModuleIndicator:()=>XX,isExternalModuleNameRelative:()=>Kv,isExternalModuleReference:()=>KE,isExternalModuleSymbol:()=>eq,isExternalOrCommonJsModule:()=>aE,isFileLevelReservedGeneratedIdentifier:()=>sR,isFileLevelUniqueName:()=>ns,isFileProbablyExternalModule:()=>Uoe,isFirstDeclarationOfSymbolParameter:()=>ace,isFixablePromiseHandler:()=>fCe,isForInOrOfStatement:()=>Jz,isForInStatement:()=>lpe,isForInitializer:()=>DS,isForOfStatement:()=>Bx,isForStatement:()=>bW,isFunctionBlock:()=>hP,isFunctionBody:()=>UU,isFunctionDeclaration:()=>mg,isFunctionExpression:()=>Jm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>F_,isFunctionLikeDeclaration:()=>Vd,isFunctionLikeKind:()=>S_,isFunctionLikeOrClassStaticBlockDeclaration:()=>bd,isFunctionOrConstructorTypeNode:()=>l7,isFunctionOrModuleBlock:()=>_9,isFunctionSymbol:()=>qMe,isFunctionTypeNode:()=>e0,isFutureReservedKeyword:()=>sE,isGeneratedIdentifier:()=>$g,isGeneratedPrivateIdentifier:()=>s7,isGetAccessor:()=>PN,isGetAccessorDeclaration:()=>lE,isGetOrSetAccessorDeclaration:()=>jz,isGlobalDeclaration:()=>WAe,isGlobalScopeAugmentation:()=>JC,isGrammarError:()=>XTe,isHeritageClause:()=>Qb,isHoistedFunction:()=>h7,isHoistedVariableStatement:()=>y7,isIdentifier:()=>xn,isIdentifierANonContextualKeyword:()=>hH,isIdentifierName:()=>kde,isIdentifierOrThisTypeNode:()=>F6e,isIdentifierPart:()=>RL,isIdentifierStart:()=>lP,isIdentifierText:()=>H2,isIdentifierTypePredicate:()=>rSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>bk,isIgnoredFileFromWildCardWatching:()=>dC,isImplicitGlob:()=>noe,isImportAttribute:()=>Ly,isImportAttributeName:()=>l9,isImportAttributes:()=>oS,isImportCall:()=>Py,isImportClause:()=>Tk,isImportDeclaration:()=>n0,isImportEqualsDeclaration:()=>Yb,isImportKeyword:()=>am,isImportMeta:()=>gP,isImportOrExportSpecifier:()=>fP,isImportOrExportSpecifierName:()=>J3,isImportSpecifier:()=>qE,isImportTypeAssertionContainer:()=>QL,isImportTypeNode:()=>E1,isImportableFile:()=>Tce,isInComment:()=>tw,isInCompoundLikeAssignment:()=>P7,isInExpressionContext:()=>C9,isInJSDoc:()=>S7,isInJSFile:()=>Cs,isInJSXText:()=>$$,isInJsonFile:()=>Eie,isInNonReferenceComment:()=>Q$,isInReferenceComment:()=>NZ,isInRightSideOfInternalImportEqualsDeclaration:()=>Gse,isInString:()=>V3,isInTemplateString:()=>Qse,isInTopLevelContext:()=>GE,isInTypeQuery:()=>yR,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Z2,isIndexedAccessTypeNode:()=>Wx,isInferTypeNode:()=>KN,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>Nae,isInitializedVariable:()=>J9,isInsideJsxElement:()=>Zse,isInsideJsxElementOrAttribute:()=>LR,isInsideNodeModules:()=>KZ,isInsideTemplateLiteral:()=>Y$,isInstanceOfExpression:()=>jie,isInstantiatedModule:()=>sme,isInterfaceDeclaration:()=>xp,isInternalDeclaration:()=>Wae,isInternalModuleImportEqualsDeclaration:()=>$M,isInternalName:()=>vpe,isIntersectionTypeNode:()=>xR,isIntrinsicJsxName:()=>EH,isIterationStatement:()=>OL,isJSDoc:()=>uC,isJSDocAllType:()=>OG,isJSDocAugmentsTag:()=>xW,isJSDocAuthorTag:()=>CEe,isJSDocCallbackTag:()=>UY,isJSDocClassTag:()=>_pe,isJSDocCommentContainingNode:()=>Y1,isJSDocConstructSignature:()=>UL,isJSDocDeprecatedTag:()=>dpe,isJSDocEnumTag:()=>jx,isJSDocFunctionType:()=>Ak,isJSDocImplementsTag:()=>jJ,isJSDocIndexSignature:()=>uY,isJSDocLikeText:()=>$Ee,isJSDocLink:()=>LG,isJSDocLinkCode:()=>Ooe,isJSDocLinkLike:()=>F8,isJSDocLinkPlain:()=>AEe,isJSDocMemberName:()=>ZL,isJSDocNameReference:()=>FJ,isJSDocNamepathType:()=>_Ue,isJSDocNamespaceBody:()=>mA,isJSDocNode:()=>$z,isJSDocNonNullableType:()=>Gx,isJSDocNullableType:()=>WJ,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>EW,isJSDocOverloadTag:()=>aF,isJSDocOverrideTag:()=>AA,isJSDocParameterTag:()=>A2,isJSDocPrivateTag:()=>Woe,isJSDocPropertyLikeTag:()=>Uz,isJSDocPropertyTag:()=>I6e,isJSDocProtectedTag:()=>DEe,isJSDocPublicTag:()=>FG,isJSDocReadonlyTag:()=>BJ,isJSDocReturnTag:()=>ppe,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>e4,isJSDocSeeTag:()=>HY,isJSDocSignature:()=>b6,isJSDocTag:()=>d7,isJSDocTemplateTag:()=>CA,isJSDocThisTag:()=>IEe,isJSDocThrowsTag:()=>kEe,isJSDocTypeAlias:()=>b2,isJSDocTypeAssertion:()=>KY,isJSDocTypeExpression:()=>SW,isJSDocTypeLiteral:()=>oF,isJSDocTypeTag:()=>WG,isJSDocTypedefTag:()=>zJ,isJSDocUnknownTag:()=>GJ,isJSDocUnknownType:()=>Foe,isJSDocVariadicType:()=>iF,isJSXTagName:()=>T7,isJsonEqual:()=>xY,isJsonSourceFile:()=>Rx,isJsxAttribute:()=>tx,isJsxAttributeLike:()=>rie,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>CR,isJsxChild:()=>ZX,isJsxClosingElement:()=>iD,isJsxClosingFragment:()=>dI,isJsxElement:()=>zx,isJsxExpression:()=>CP,isJsxFragment:()=>Ek,isJsxNamespacedName:()=>Fm,isJsxOpeningElement:()=>Pb,isJsxOpeningFragment:()=>v6,isJsxOpeningLikeElement:()=>m1,isJsxOpeningLikeElementTagName:()=>Mge,isJsxSelfClosingElement:()=>nF,isJsxSpreadAttribute:()=>rT,isJsxTagNameExpression:()=>QX,isJsxText:()=>SR,isJumpStatementTarget:()=>EZ,isKeyword:()=>qb,isKeywordOrPunctuation:()=>F9,isKnownSymbol:()=>yA,isLabelName:()=>g4,isLabelOfLabeledStatement:()=>j3,isLabeledStatement:()=>tF,isLateVisibilityPaintedStatement:()=>B8,isLeftHandSideExpression:()=>ib,isLeftHandSideOfAssignment:()=>hSe,isLet:()=>UM,isLineBreak:()=>Sb,isLiteralComputedPropertyDeclarationName:()=>_g,isLiteralExpression:()=>aR,isLiteralExpressionOfObject:()=>Zre,isLiteralImportTypeNode:()=>MN,isLiteralKind:()=>UX,isLiteralLikeAccess:()=>fY,isLiteralLikeElementAccess:()=>V8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>xZ,isLiteralTypeLikeExpression:()=>pUe,isLiteralTypeLiteral:()=>ode,isLiteralTypeNode:()=>S3,isLocalName:()=>mI,isLogicalOperator:()=>U9,isLogicalOrCoalescingAssignmentExpression:()=>Wde,isLogicalOrCoalescingAssignmentOperator:()=>CH,isLogicalOrCoalescingBinaryExpression:()=>DH,isLogicalOrCoalescingBinaryOperator:()=>W7,isMappedTypeNode:()=>LJ,isMemberName:()=>xN,isMetaProperty:()=>x3,isMethodDeclaration:()=>tm,isMethodOrAccessor:()=>Mv,isMethodSignature:()=>pg,isMinusToken:()=>ER,isMissingDeclaration:()=>TW,isModifier:()=>Mf,isModifierKind:()=>Om,isModifierLike:()=>Am,isModuleAugmentationExternal:()=>iY,isModuleBlock:()=>kh,isModuleBody:()=>tie,isModuleDeclaration:()=>py,isModuleExportsAccessExpression:()=>jE,isModuleIdentifier:()=>x7,isModuleName:()=>z6e,isModuleOrEnumDeclaration:()=>nie,isModuleReference:()=>uf,isModuleSpecifierLike:()=>WZ,isModuleWithStringLiteralName:()=>rY,isNameOfFunctionDeclaration:()=>H$,isNameOfModuleDeclaration:()=>U$,isNamedClassElement:()=>Jl,isNamedDeclaration:()=>mp,isNamedEvaluation:()=>UE,isNamedEvaluationSource:()=>vH,isNamedExportBindings:()=>Qre,isNamedExports:()=>j0,isNamedImportBindings:()=>ade,isNamedImports:()=>Oy,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>g6,isNamespaceBody:()=>$Te,isNamespaceExport:()=>G0,isNamespaceExportDeclaration:()=>lC,isNamespaceImport:()=>mh,isNamespaceReexportDeclaration:()=>oH,isNewExpression:()=>sb,isNewExpressionTarget:()=>V$,isNoSubstitutionTemplateLiteral:()=>K7,isNode:()=>VX,isNodeArray:()=>BM,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>Lx,isNodeKind:()=>GU,isNodeLikeSystem:()=>Y5,isNodeModulesDirectory:()=>NX,isNodeWithPossibleHoistedDeclaration:()=>pH,isNonContextualKeyword:()=>e6,isNonExportDefaultModifier:()=>hUe,isNonGlobalAmbientModule:()=>dde,isNonGlobalDeclaration:()=>lT,isNonNullAccess:()=>nEe,isNonNullChain:()=>zU,isNonNullExpression:()=>E3,isNonStaticMethodOrAccessorWithPrivateName:()=>q2e,isNotEmittedOrPartiallyEmittedNode:()=>Nr,isNotEmittedStatement:()=>rD,isNullishCoalesce:()=>R8,isNumber:()=>U1,isNumericLiteral:()=>S1,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>BZ,isObjectBindingOrAssignmentElement:()=>d9,isObjectBindingOrAssignmentPattern:()=>qX,isObjectBindingPattern:()=>Ch,isObjectLiteralElement:()=>eY,isObjectLiteralElementLike:()=>DN,isObjectLiteralExpression:()=>el,isObjectLiteralMethod:()=>iC,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>x9,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>UD,isOmittedExpression:()=>cb,isOptionalChain:()=>fy,isOptionalChainRoot:()=>s9,isOptionalDeclaration:()=>yG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>MJ,isOuterExpression:()=>BG,isOutermostOptionalChain:()=>Vz,isOverrideModifier:()=>RJ,isPackedArrayLiteral:()=>foe,isParameter:()=>Os,isParameterDeclaration:()=>X8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>DT,isParameterPropertyModifier:()=>cR,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>XN,isParseTreeNode:()=>qD,isPartOfTypeNode:()=>BE,isPartOfTypeQuery:()=>iG,isPartiallyEmittedExpression:()=>Roe,isPatternMatch:()=>C8,isPinnedComment:()=>uie,isPlainJsFile:()=>pP,isPlusToken:()=>PJ,isPossiblyTypeArgumentPosition:()=>kZ,isPostfixUnaryExpression:()=>jY,isPrefixUnaryExpression:()=>vk,isPrivateIdentifier:()=>Lu,isPrivateIdentifierClassElementDeclaration:()=>IT,isPrivateIdentifierPropertyAccessExpression:()=>u9,isPrivateIdentifierSymbol:()=>aC,isProgramBundleEmitBuildInfo:()=>tge,isProgramUptoDate:()=>bxe,isPrologueDirective:()=>$2,isPropertyAccessChain:()=>ede,isPropertyAccessEntityNameExpression:()=>NS,isPropertyAccessExpression:()=>Ac,isPropertyAccessOrQualifiedName:()=>KX,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ide,isPropertyAssignment:()=>tl,isPropertyDeclaration:()=>nu,isPropertyName:()=>qg,isPropertyNameLiteral:()=>Qv,isPropertySignature:()=>em,isProtoSetter:()=>YMe,isPrototypeAccess:()=>bP,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>fG,isPushOrUnshiftIdentifier:()=>fSe,isQualifiedName:()=>Pu,isQuestionDotToken:()=>Gu,isQuestionOrExclamationToken:()=>O6e,isQuestionOrPlusOrMinusToken:()=>B6e,isQuestionToken:()=>p6,isRawSourceMap:()=>$Le,isReadonlyKeyword:()=>SEe,isReadonlyKeywordOrPlusOrMinusToken:()=>W6e,isRecognizedTripleSlashComment:()=>_de,isReferenceFileLocation:()=>HW,isReferencedFile:()=>ew,isRegularExpressionLiteral:()=>ope,isRequireCall:()=>y1,isRequireVariableStatement:()=>xie,isRestParameter:()=>sp,isRestTypeNode:()=>hW,isReturnStatement:()=>iS,isReturnStatementWithFixablePromiseHandler:()=>Pce,isRightSideOfAccessExpression:()=>r6,isRightSideOfInstanceofExpression:()=>ySe,isRightSideOfPropertyAccess:()=>sS,isRightSideOfQualifiedName:()=>wA,isRightSideOfQualifiedNameOrPropertyAccess:()=>z7,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>kH,isRootedDiskPath:()=>nE,isSameEntityName:()=>j8,isSatisfiesExpression:()=>C6e,isScopeMarker:()=>_7,isSemicolonClassElement:()=>spe,isSetAccessor:()=>UC,isSetAccessorDeclaration:()=>Xb,isShebangTrivia:()=>ATe,isShiftOperatorOrHigher:()=>jEe,isShorthandAmbientModuleSymbol:()=>ZU,isShorthandPropertyAssignment:()=>XE,isSignedNumericLiteral:()=>yH,isSimpleCopiableExpression:()=>L3,isSimpleInlineableExpression:()=>IA,isSingleOrDoubleQuote:()=>D9,isSourceFile:()=>Nu,isSourceFileFromLibrary:()=>cB,isSourceFileJS:()=>Gy,isSourceFileNotJS:()=>Ade,isSourceFileNotJson:()=>qM,isSourceMapping:()=>KLe,isSpecialPropertyDeclaration:()=>dY,isSpreadAssignment:()=>xA,isSpreadElement:()=>WT,isStatement:()=>dl,isStatementButNotDeclaration:()=>HU,isStatementOrBlock:()=>YX,isStatementWithLocals:()=>KTe,isStatic:()=>pd,isStaticModifier:()=>pW,isString:()=>As,isStringAKeyword:()=>Nde,isStringANonContextualKeyword:()=>w7,isStringAndEmptyAnonymousObjectIntersection:()=>Hge,isStringDoubleQuoted:()=>aH,isStringLiteral:()=>Sd,isStringLiteralLike:()=>Cm,isStringLiteralOrJsxExpression:()=>JU,isStringLiteralOrTemplate:()=>UZ,isStringOrNumericLiteralLike:()=>Ox,isStringOrRegularExpressionOrTemplateLiteral:()=>tce,isStringTextContainingNode:()=>JX,isSuperCall:()=>h1,isSuperKeyword:()=>nT,isSuperOrSuperProperty:()=>Ede,isSuperProperty:()=>MT,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>AR,isSyntaxList:()=>AW,isSyntheticExpression:()=>VY,isSyntheticReference:()=>Sk,isTagName:()=>KW,isTaggedTemplateExpression:()=>Dm,isTaggedTemplateTag:()=>vZ,isTemplateExpression:()=>B0,isTemplateHead:()=>X7,isTemplateLiteral:()=>Hz,isTemplateLiteralKind:()=>VC,isTemplateLiteralToken:()=>L8,isTemplateLiteralTypeNode:()=>ym,isTemplateLiteralTypeSpan:()=>vW,isTemplateMiddle:()=>TEe,isTemplateMiddleOrTemplateTail:()=>c9,isTemplateSpan:()=>Dh,isTemplateTail:()=>woe,isTextWhiteSpaceLike:()=>cT,isThis:()=>AF,isThisContainerOrFunctionBlock:()=>sY,isThisIdentifier:()=>E2,isThisInTypeQuery:()=>V9,isThisInitializedDeclaration:()=>bie,isThisInitializedObjectBindingExpression:()=>Tie,isThisProperty:()=>Q1,isThisTypeNode:()=>yW,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>Sde,isThrowStatement:()=>ff,isToken:()=>a7,isTokenKind:()=>tde,isTraceEnabled:()=>DR,isTransientSymbol:()=>Vm,isTrivia:()=>W9,isTryStatement:()=>My,isTupleTypeNode:()=>gW,isTypeAlias:()=>L9,isTypeAliasDeclaration:()=>z0,isTypeAssertionExpression:()=>ph,isTypeDeclaration:()=>f6,isTypeElement:()=>rb,isTypeKeyword:()=>Z$,isTypeKeywordToken:()=>nce,isTypeKeywordTokenOrIdentifier:()=>y4,isTypeLiteralNode:()=>rS,isTypeNode:()=>pc,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>yk,isTypeOnlyExportDeclaration:()=>zM,isTypeOnlyImportDeclaration:()=>HX,isTypeOnlyImportOrExportDeclaration:()=>O8,isTypeOperatorNode:()=>_I,isTypeParameterDeclaration:()=>Np,isTypePredicateNode:()=>mW,isTypeQueryNode:()=>m6,isTypeReferenceNode:()=>uE,isTypeReferenceType:()=>NN,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>m9,isUnaryExpressionWithWrite:()=>JTe,isUnicodeIdentifierStart:()=>K,isUnionTypeNode:()=>fI,isUnparsedNode:()=>pA,isUnparsedPrepend:()=>OJ,isUnparsedSource:()=>rF,isUnparsedTextLike:()=>CN,isUrl:()=>kX,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>nSe,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>lSe,isVarAwaitUsing:()=>nC,isVarConst:()=>rH,isVarUsing:()=>aY,isVariableDeclaration:()=>Kc,isVariableDeclarationInVariableStatement:()=>rC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E7,isVariableDeclarationInitializedToRequire:()=>v1,isVariableDeclarationList:()=>Kp,isVariableLike:()=>E9,isVariableLikeOrAccessor:()=>vde,isVariableStatement:()=>Xg,isVoidExpression:()=>Z7,isWatchSet:()=>QVe,isWhileStatement:()=>Moe,isWhiteSpaceLike:()=>cP,isWhiteSpaceSingleLine:()=>q1,isWithStatement:()=>upe,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>t0,jsxModeNeedsExplicitImport:()=>uhe,keywordPart:()=>ZE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>i$,libs:()=>r$,lineBreakPart:()=>wj,linkNamePart:()=>Xge,linkPart:()=>NAe,linkTextPart:()=>ZW,listFiles:()=>fge,loadModuleFromGlobalCache:()=>P2e,loadWithModeAwareCache:()=>KQ,makeIdentifierFromModuleName:()=>UMe,makeImport:()=>Nk,makeImportIfNecessary:()=>rce,makeStringLiteral:()=>Pj,mangleScopedPackageName:()=>nj,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>she,mapToDisplayParts:()=>M6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>pTe,matchesExclude:()=>Bpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uJ,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>oP,modifierToFlag:()=>F7,modifiersToFlags:()=>aI,moduleOptionDeclaration:()=>tae,moduleResolutionIsEqualTo:()=>qU,moduleResolutionNameAndModeGetter:()=>use,moduleResolutionOptionDeclarations:()=>s$,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>kj,moduleSpecifiers:()=>u4,moveEmitHelpers:()=>tpe,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>lW,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>fce,needsScopeMarker:()=>kN,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hme,noEmitNotification:()=>BQ,noEmitSubstitution:()=>WQ,noTransformers:()=>ZN,noTruncationMaximumTruncationLength:()=>CY,nodeCanBeDecorated:()=>GL,nodeHasName:()=>ec,nodeIsDecorated:()=>lY,nodeIsMissing:()=>ny,nodeIsPresent:()=>y2,nodeIsSynthesized:()=>Hd,nodeModuleNameResolver:()=>cae,nodeModulesPathPart:()=>IP,nodeNextJsonConfigResolver:()=>NW,nodeOrChildIsDecorated:()=>Z1,nodeOverlapsWithStartEnd:()=>Fge,nodePosToString:()=>QU,nodeSeenTracker:()=>U3,nodeStartsNewLexicalEnvironment:()=>kie,nodeToDisplayParts:()=>L8e,noop:()=>ku,noopFileWatcher:()=>L$,normalizePath:()=>hf,normalizeSlashes:()=>$1,not:()=>dA,notImplemented:()=>Na,notImplementedResolver:()=>Wme,nullNodeConverters:()=>aJ,nullParenthesizerRules:()=>Doe,nullTransformationContext:()=>sx,objectAllocator:()=>W0,operatorPart:()=>rq,optionDeclarations:()=>hI,optionMapToObject:()=>Yoe,optionsAffectingProgramStructure:()=>jpe,optionsForBuild:()=>uQ,optionsForWatch:()=>fC,optionsHaveChanges:()=>g9,optionsHaveModuleResolutionChanges:()=>uk,or:()=>bb,orderedRemoveItem:()=>AL,orderedRemoveItemAt:()=>Yw,outFile:()=>Ng,packageIdToPackageName:()=>aie,packageIdToString:()=>jM,paramHelper:()=>fJ,parameterIsThisKeyword:()=>iI,parameterNamePart:()=>w8e,parseBaseNodeFactory:()=>tQ,parseBigInt:()=>qSe,parseBuildCommand:()=>tLe,parseCommandLine:()=>NUe,parseCommandLineWorker:()=>Ppe,parseConfigFileTextToJson:()=>Npe,parseConfigFileWithSystem:()=>jxe,parseConfigHostFromCompilerHostLike:()=>k$,parseCustomTypeOption:()=>$oe,parseIsolatedEntityName:()=>HG,parseIsolatedJSDocComment:()=>Cpe,parseJSDocTypeExpressionForTests:()=>AUe,parseJsonConfigFileContent:()=>aLe,parseJsonSourceFileConfigFileContent:()=>Zoe,parseJsonText:()=>iT,parseListTypeOption:()=>eLe,parseNodeFactory:()=>Ck,parseNodeModuleFromPath:()=>d$,parsePackageName:()=>fae,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>yMe,pathContainsNodeModules:()=>RW,pathIsAbsolute:()=>m0,pathIsBareSpecifier:()=>jre,pathIsRelative:()=>V2,patternText:()=>_v,perfLogger:()=>Zh,performIncrementalCompilation:()=>Jxe,performance:()=>Kne,plainJSErrors:()=>sD,positionBelongsToNode:()=>xAe,positionIsASICandidate:()=>pce,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>t3e,probablyUsesSemicolons:()=>$Z,processCommentPragmas:()=>YEe,processPragmasIntoFields:()=>E6,processTaggedTemplateExpression:()=>xme,programContainsEsModules:()=>Jge,programContainsModules:()=>Jx,projectReferenceIsEqualTo:()=>tY,propKeyHelper:()=>EJ,propertyNamePart:()=>R8e,pseudoBigIntToString:()=>tD,punctuationPart:()=>D1,pushIfUnique:()=>Dy,quote:()=>VZ,quotePreferenceFromString:()=>YW,rangeContainsPosition:()=>CZ,rangeContainsPositionExclusive:()=>XW,rangeContainsRange:()=>ov,rangeContainsRangeExclusive:()=>Use,rangeContainsStartEnd:()=>Aj,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>yz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>J$,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>mge,readConfigFile:()=>iQ,readHelper:()=>TJ,readJson:()=>e3,readJsonConfigFile:()=>r2e,readJsonOrUndefined:()=>Uie,reduceEachLeadingCommentRange:()=>MU,reduceEachTrailingCommentRange:()=>$_e,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>i9,refactor:()=>MF,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>aW,removeEmitHelper:()=>yEe,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>_se,removeMinAndVersionNumbers:()=>Ub,removeOptionality:()=>Vge,removePrefix:()=>xf,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>bN,repeatString:()=>Pk,replaceElement:()=>vz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>hge,resolveJSModule:()=>x2e,resolveLibrary:()=>Zpe,resolveModuleName:()=>ej,resolveModuleNameFromCache:()=>rHe,resolvePackageNameToPackageJson:()=>Ype,resolvePath:()=>NL,resolveProjectReferencePath:()=>vF,resolveTripleslashReference:()=>HQ,resolveTypeReferenceDirective:()=>Kpe,resolvingEmptyArray:()=>vG,restHelper:()=>hJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>O$,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>kce,runInitializersHelper:()=>_J,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>qLe,scanShebangTrivia:()=>OX,scanTokenAtPosition:()=>RN,scanner:()=>uT,screenStartingMessageCodes:()=>pge,semanticDiagnosticsOptionDeclarations:()=>nae,serializeCompilerOptions:()=>s2e,server:()=>Ph,servicesVersion:()=>dye,setCommentRange:()=>dy,setConfigFileInOptions:()=>Lpe,setConstantValue:()=>x6e,setEachParent:()=>u6,setEmitFlags:()=>_s,setFunctionNameHelper:()=>$7,setGetSourceFileAsHashVersioned:()=>M$,setIdentifierAutoGenerate:()=>RY,setIdentifierGeneratedImportReference:()=>vEe,setIdentifierTypeArguments:()=>d6,setInternalEmitFlags:()=>Sp,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>AJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>Ls,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>Ik,setSnippetElement:()=>rpe,setSourceMapRange:()=>lp,setStackTraceLimit:()=>TTe,setStartsOnNewLine:()=>U7,setSyntheticLeadingComments:()=>uI,setSyntheticTrailingComments:()=>cW,setSys:()=>LVe,setSysLog:()=>gMe,setTextRange:()=>Tn,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>lI,setTypeNode:()=>H7,setUILocale:()=>$5,setValueDeclaration:()=>Cie,shouldAllowImportingTsExtension:()=>MW,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>yce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>Sae,signatureHasRestParameter:()=>A1,signatureToDisplayParts:()=>iq,single:()=>_U,singleElementArray:()=>X5,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>w6e,skipConstraint:()=>DF,skipOuterExpressions:()=>iv,skipParentheses:()=>rg,skipPartiallyEmittedExpressions:()=>h2,skipTrivia:()=>Ff,skipTypeChecking:()=>c3,skipTypeParentheses:()=>Ide,skipWhile:()=>qO,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>o7,sourceFileAffectingCompilerOptions:()=>c$,sourceFileMayBeEmitted:()=>JL,sourceMapCommentRegExp:()=>pme,sourceMapCommentRegExpDontCareLineStart:()=>e1,spacePart:()=>qh,spanMap:()=>fa,spreadArrayHelper:()=>SJ,stableSort:()=>nh,startEndContainsRange:()=>Wm,startEndOverlapsWithStartEnd:()=>Wge,startOnNewLine:()=>lb,startTracing:()=>Iz,startsWith:()=>qf,startsWithDirectory:()=>RU,startsWithUnderscore:()=>YZ,startsWithUseStrict:()=>Goe,stringContainsAt:()=>lq,stringToToken:()=>D8,stripQuotes:()=>S2,supportedDeclarationExtensions:()=>oJ,supportedJSExtensions:()=>qde,supportedJSExtensionsFlat:()=>h3,supportedLocaleDirectories:()=>iie,supportedTSExtensions:()=>TG,supportedTSExtensionsFlat:()=>xoe,supportedTSImplementationExtensions:()=>EG,suppressLeadingAndTrailingTrivia:()=>zT,suppressLeadingTrivia:()=>oq,suppressTrailingTrivia:()=>Qge,symbolEscapedNameNoDefault:()=>$ge,symbolName:()=>Il,symbolNameNoDefault:()=>IF,symbolPart:()=>PAe,symbolToDisplayParts:()=>Rg,syntaxMayBeASICandidate:()=>zAe,syntaxRequiresTrailingSemicolonOrASI:()=>JZ,sys:()=>w0,sysLog:()=>Mre,tagNamesAreEquivalent:()=>r4,takeWhile:()=>Qw,targetOptionDeclaration:()=>a$,templateObjectHelper:()=>bJ,testFormatSettings:()=>Rge,textChangeRangeIsUnchanged:()=>NTe,textChangeRangeNewSpan:()=>o9,textChanges:()=>zs,textOrKeywordPart:()=>NP,textPart:()=>lS,textRangeContainsPositionInclusive:()=>P8,textSpanContainsPosition:()=>tb,textSpanContainsTextSpan:()=>qre,textSpanEnd:()=>Xy,textSpanIntersection:()=>PTe,textSpanIntersectsWith:()=>zz,textSpanIntersectsWithPosition:()=>NMe,textSpanIntersectsWithTextSpan:()=>kTe,textSpanIsEmpty:()=>PMe,textSpanOverlap:()=>ITe,textSpanOverlapsWith:()=>K1,textSpansEqual:()=>C1,textToKeywordObj:()=>rE,timestamp:()=>H_,toArray:()=>BC,toBuilderFileEmit:()=>age,toBuilderStateFileInfoForMultiEmit:()=>oge,toEditorSettings:()=>lle,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>gm,toProgramEmitPending:()=>sge,tokenIsIdentifierOrKeyword:()=>CT,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RX,tokenToString:()=>Cf,trace:()=>Df,tracing:()=>ps,tracingEnabled:()=>PL,transform:()=>AOe,transformClassFields:()=>f4e,transformDeclarations:()=>lxe,transformECMAScriptModule:()=>Nme,transformES2015:()=>axe,transformES2016:()=>oxe,transformES2017:()=>exe,transformES2018:()=>d4e,transformES2019:()=>p4e,transformES2020:()=>txe,transformES2021:()=>Dme,transformES5:()=>Pme,transformESDecorators:()=>Z2e,transformESNext:()=>Ime,transformGenerators:()=>sxe,transformJsx:()=>ixe,transformLegacyDecorators:()=>Lae,transformModule:()=>Oae,transformNamedEvaluation:()=>mE,transformNodeModule:()=>b4e,transformNodes:()=>x$,transformSystemModule:()=>v4e,transformTypeScript:()=>u4e,transpile:()=>o3e,transpileModule:()=>She,transpileOptionValueCompilerOptions:()=>Vpe,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>qZ,tryCast:()=>to,tryDirectoryExists:()=>mce,tryExtractTSExtension:()=>PH,tryFileExists:()=>Lj,tryGetClassExtendingExpressionWithTypeArguments:()=>IH,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>zN,tryGetDirectories:()=>oB,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>N9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>HJ,tryGetModuleSpecifierFromDeclaration:()=>C7,tryGetNativePerformanceHooks:()=>Rc,tryGetPropertyAccessOrIdentifierToString:()=>B7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>joe,tryGetSourceMappingURL:()=>JLe,tryGetTextOfPropertyName:()=>tH,tryIOAndConsumeErrors:()=>gce,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>j2e,tryReadDirectory:()=>LAe,tryReadFile:()=>ZJ,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>Ez,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>fQ,typeAliasNamePart:()=>w6,typeDirectiveIsEqualTo:()=>GMe,typeKeywords:()=>eee,typeParameterNamePart:()=>GZ,typeReferenceResolutionNameAndModeGetter:()=>Xme,typeToDisplayParts:()=>Rj,unchangedPollThresholds:()=>Bre,unchangedTextChangeRange:()=>FL,unescapeLeadingUnderscores:()=>Ic,unmangleScopedPackageName:()=>DQ,unorderedRemoveItem:()=>A8,unorderedRemoveItemAt:()=>zC,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>Tde,updateErrorForNoInputFiles:()=>Ope,updateLanguageServiceSourceFile:()=>fye,updateMissingFilePathsWatch:()=>jme,updatePackageJsonWatch:()=>N4e,updateResolutionField:()=>l$,updateSharedExtendedConfigFileWatcher:()=>D$,updateSourceFile:()=>Hoe,updateWatchingWildcardDirectories:()=>jW,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>wT,utf16EncodeAsString:()=>ak,validateLocaleAndSetLanguage:()=>RTe,valuesHelper:()=>xJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>Iae,visitCommaListElements:()=>NQ,visitEachChild:()=>Xo,visitFunctionBody:()=>ox,visitIterationBody:()=>LS,visitLexicalEnvironment:()=>ume,visitNode:()=>Bn,visitNodes:()=>Wa,visitParameterList:()=>sm,walkUpBindingElementsAndPatterns:()=>OU,walkUpLexicalEnvironments:()=>OW,walkUpOuterExpressions:()=>bpe,walkUpParenthesizedExpressions:()=>IS,walkUpParenthesizedTypes:()=>QM,walkUpParenthesizedTypesAndGetParentAndChild:()=>uSe,whitespaceOrMapCommentRegExp:()=>Pae,writeCommentRange:()=>hG,writeFile:()=>G9,writeFileEnsuringDirectories:()=>L7,zipWith:()=>Zr});var _x=G({"src/typescript/_namespaces/ts.ts"(){md(),B$(),xl(),l_(),Ap()}}),_S=ye({"src/typescript/typescript.ts"(e,n){_x(),_x(),typeof console<"u"&&(re.loggingHost={log(i,c){switch(i){case 1:return console.error(c);case 2:return console.warn(c);case 3:return console.log(c);case 4:return console.log(c)}}}),n.exports=Mb}});return _S()})();p.exports&&(p.exports=x)})(VDt);var wLt=VDt.exports,XDt={},RLt=YDt;function YDt(p,g,x){p instanceof RegExp&&(p=j2t(p,x)),g instanceof RegExp&&(g=j2t(g,x));var L=QDt(p,g,x);return L&&{start:L[0],end:L[1],pre:x.slice(0,L[0]),body:x.slice(L[0]+p.length,L[1]),post:x.slice(L[1]+g.length)}}function j2t(p,g){var x=g.match(p);return x?x[0]:null}YDt.range=QDt;function QDt(p,g,x){var L,H,G,ye,Oe,ot=x.indexOf(p),At=x.indexOf(g,ot+1),sn=ot;if(ot>=0&&At>0){if(p===g)return[ot,At];for(L=[],G=x.length;sn>=0&&!Oe;)sn==ot?(L.push(sn),ot=x.indexOf(p,sn+1)):L.length==1?Oe=[L.pop(),At]:(H=L.pop(),H=0?ot:At;L.length&&(Oe=[G,ye])}return Oe}var ZDt=RLt,MLt=FLt,eIt="\0SLASH"+Math.random()+"\0",tIt="\0OPEN"+Math.random()+"\0",dSt="\0CLOSE"+Math.random()+"\0",nIt="\0COMMA"+Math.random()+"\0",rIt="\0PERIOD"+Math.random()+"\0";function _bt(p){return parseInt(p,10)==p?parseInt(p,10):p.charCodeAt(0)}function LLt(p){return p.split("\\\\").join(eIt).split("\\{").join(tIt).split("\\}").join(dSt).split("\\,").join(nIt).split("\\.").join(rIt)}function OLt(p){return p.split(eIt).join("\\").split(tIt).join("{").split(dSt).join("}").split(nIt).join(",").split(rIt).join(".")}function iIt(p){if(!p)return[""];var g=[],x=ZDt("{","}",p);if(!x)return p.split(",");var L=x.pre,H=x.body,G=x.post,ye=L.split(",");ye[ye.length-1]+="{"+H+"}";var Oe=iIt(G);return G.length&&(ye[ye.length-1]+=Oe.shift(),ye.push.apply(ye,Oe)),g.push.apply(g,ye),g}function FLt(p){return p?(p.substr(0,2)==="{}"&&(p="\\{\\}"+p.substr(2)),mje(LLt(p),!0).map(OLt)):[]}function WLt(p){return"{"+p+"}"}function BLt(p){return/^-?0\d/.test(p)}function zLt(p,g){return p<=g}function GLt(p,g){return p>=g}function mje(p,g){var x=[],L=ZDt("{","}",p);if(!L)return[p];var H=L.pre,G=L.post.length?mje(L.post,!1):[""];if(/\$$/.test(L.pre))for(var ye=0;ye=0;if(!sn&&!tr)return L.post.match(/,.*\}/)?(p=L.pre+"{"+L.body+dSt+L.post,mje(p)):[p];var Nt;if(sn)Nt=L.body.split(/\.\./);else if(Nt=iIt(L.body),Nt.length===1&&(Nt=mje(Nt[0],!1).map(WLt),Nt.length===1))return G.map(function(ni){return L.pre+Nt[0]+ni});var Ot;if(sn){var bo=_bt(Nt[0]),Yr=_bt(Nt[1]),Ns=Math.max(Nt[0].length,Nt[1].length),ui=Nt.length==3?Math.abs(_bt(Nt[2])):1,Zr=zLt,Zi=Yr0){var Ms=new Array(Ho+1).join("0");lr<0?ra="-"+Ms+ra.slice(1):ra=Ms+ra}}Ot.push(ra)}}else{Ot=[];for(var cs=0;cs{if(typeof p!="string")throw new TypeError("invalid pattern");if(p.length>jLt)throw new TypeError("pattern is too long")};Eat.assertValidPattern=VLt;var lVe={},xat={};Object.defineProperty(xat,"__esModule",{value:!0});xat.parseClass=void 0;const ULt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lje=p=>p.replace(/[[\]\\-]/g,"\\$&"),HLt=p=>p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),V2t=p=>p.join(""),JLt=(p,g)=>{const x=g;if(p.charAt(x)!=="[")throw new Error("not in a brace expression");const L=[],H=[];let G=x+1,ye=!1,Oe=!1,ot=!1,At=!1,sn=x,tr="";e:for(;Gtr?L.push(lje(tr)+"-"+lje(Yr)):Yr===tr&&L.push(lje(Yr)),tr="",G++;continue}if(p.startsWith("-]",G+1)){L.push(lje(Yr+"-")),G+=2;continue}if(p.startsWith("-",G+1)){tr=Yr,G+=2;continue}L.push(lje(Yr)),G++}if(sng?p.replace(/\[([^\/\\])\]/g,"$1"):p.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");KRe.unescape=$Lt;Object.defineProperty(lVe,"__esModule",{value:!0});lVe.AST=void 0;const qLt=xat,Eit=KRe,KLt=new Set(["!","?","+","*","@"]),U2t=p=>KLt.has(p),XLt="(?!(?:^|/)\\.\\.?(?:$|/))",xit="(?!\\.)",YLt=new Set(["[","."]),QLt=new Set(["..","."]),ZLt=new Set("().*{}+?[]^$\\!"),e4t=p=>p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pSt="[^/]",H2t=pSt+"*?",J2t=pSt+"+?";var sN,Ww,Ene,YA,eP,__e,$1e,d_e,xne,q1e,gVe,Xot,oIt,LRe,Jit,hVe,D1t,Yot,aIt;const mL=class mL{constructor(g,x,L={}){$u(this,Xot);$u(this,hVe);f1(this,"type");$u(this,sN,void 0);$u(this,Ww,void 0);$u(this,Ene,!1);$u(this,YA,[]);$u(this,eP,void 0);$u(this,__e,void 0);$u(this,$1e,void 0);$u(this,d_e,!1);$u(this,xne,void 0);$u(this,q1e,void 0);$u(this,gVe,!1);this.type=g,g&&Bg(this,Ww,!0),Bg(this,eP,x),Bg(this,sN,ti(this,eP)?ti(ti(this,eP),sN):this),Bg(this,xne,ti(this,sN)===this?L:ti(ti(this,sN),xne)),Bg(this,$1e,ti(this,sN)===this?[]:ti(ti(this,sN),$1e)),g==="!"&&!ti(ti(this,sN),d_e)&&ti(this,$1e).push(this),Bg(this,__e,ti(this,eP)?ti(ti(this,eP),YA).length:0)}get hasMagic(){if(ti(this,Ww)!==void 0)return ti(this,Ww);for(const g of ti(this,YA))if(typeof g!="string"&&(g.type||g.hasMagic))return Bg(this,Ww,!0);return ti(this,Ww)}toString(){return ti(this,q1e)!==void 0?ti(this,q1e):this.type?Bg(this,q1e,this.type+"("+ti(this,YA).map(g=>String(g)).join("|")+")"):Bg(this,q1e,ti(this,YA).map(g=>String(g)).join(""))}push(...g){for(const x of g)if(x!==""){if(typeof x!="string"&&!(x instanceof mL&&ti(x,eP)===this))throw new Error("invalid part: "+x);ti(this,YA).push(x)}}toJSON(){var x;const g=this.type===null?ti(this,YA).slice().map(L=>typeof L=="string"?L:L.toJSON()):[this.type,...ti(this,YA).map(L=>L.toJSON())];return this.isStart()&&!this.type&&g.unshift([]),this.isEnd()&&(this===ti(this,sN)||ti(ti(this,sN),d_e)&&((x=ti(this,eP))==null?void 0:x.type)==="!")&&g.push({}),g}isStart(){var x;if(ti(this,sN)===this)return!0;if(!((x=ti(this,eP))!=null&&x.isStart()))return!1;if(ti(this,__e)===0)return!0;const g=ti(this,eP);for(let L=0;L{var Zi;const[Yr,Ns,ui,Zr]=typeof bo=="string"?is(Zi=mL,Yot,aIt).call(Zi,bo,ti(this,Ww),At):bo.toRegExpSource(g);return Bg(this,Ww,ti(this,Ww)||ui),Bg(this,Ene,ti(this,Ene)||Zr),Yr}).join("");let tr="";if(this.isStart()&&typeof ti(this,YA)[0]=="string"&&!(ti(this,YA).length===1&&QLt.has(ti(this,YA)[0]))){const Yr=YLt,Ns=x&&Yr.has(sn.charAt(0))||sn.startsWith("\\.")&&Yr.has(sn.charAt(2))||sn.startsWith("\\.\\.")&&Yr.has(sn.charAt(4)),ui=!x&&!g&&Yr.has(sn.charAt(0));tr=Ns?XLt:ui?xit:""}let Nt="";return this.isEnd()&&ti(ti(this,sN),d_e)&&((ot=ti(this,eP))==null?void 0:ot.type)==="!"&&(Nt="(?:$|\\/)"),[tr+sn+Nt,(0,Eit.unescape)(sn),Bg(this,Ww,!!ti(this,Ww)),ti(this,Ene)]}const L=this.type==="*"||this.type==="+",H=this.type==="!"?"(?:(?!(?:":"(?:";let G=is(this,hVe,D1t).call(this,x);if(this.isStart()&&this.isEnd()&&!G&&this.type!=="!"){const At=this.toString();return Bg(this,YA,[At]),this.type=null,Bg(this,Ww,void 0),[At,(0,Eit.unescape)(this.toString()),!1,!1]}let ye=!L||g||x||!xit?"":is(this,hVe,D1t).call(this,!0);ye===G&&(ye=""),ye&&(G=`(?:${G})(?:${ye})*?`);let Oe="";if(this.type==="!"&&ti(this,gVe))Oe=(this.isStart()&&!x?xit:"")+J2t;else{const At=this.type==="!"?"))"+(this.isStart()&&!x&&!g?xit:"")+H2t+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&ye?")":this.type==="*"&&ye?")?":`)${this.type}`;Oe=H+G+At}return[Oe,(0,Eit.unescape)(G),Bg(this,Ww,!!ti(this,Ww)),ti(this,Ene)]}};sN=new WeakMap,Ww=new WeakMap,Ene=new WeakMap,YA=new WeakMap,eP=new WeakMap,__e=new WeakMap,$1e=new WeakMap,d_e=new WeakMap,xne=new WeakMap,q1e=new WeakMap,gVe=new WeakMap,Xot=new WeakSet,oIt=function(){if(this!==ti(this,sN))throw new Error("should only call on root");if(ti(this,d_e))return this;this.toString(),Bg(this,d_e,!0);let g;for(;g=ti(this,$1e).pop();){if(g.type!=="!")continue;let x=g,L=ti(x,eP);for(;L;){for(let H=ti(x,__e)+1;!L.type&&H{if(typeof x=="string")throw new Error("string type in extglob ast??");const[L,H,G,ye]=x.toRegExpSource(g);return Bg(this,Ene,ti(this,Ene)||ye),L}).filter(x=>!(this.isStart()&&this.isEnd())||!!x).join("|")},Yot=new WeakSet,aIt=function(g,x,L=!1){let H=!1,G="",ye=!1;for(let Oe=0;Oeg?p.replace(/[?*()[\]]/g,"[$&]"):p.replace(/[?*()[\]\\]/g,"\\$&");uVe.escape=t4t;(function(p){var g={},x=ORe&&ORe.__importDefault||function(Zf){return Zf&&Zf.__esModule?Zf:{default:Zf}};Object.defineProperty(p,"__esModule",{value:!0}),p.unescape=p.escape=p.AST=p.Minimatch=p.match=p.makeRe=p.braceExpand=p.defaults=p.filter=p.GLOBSTAR=p.sep=p.minimatch=void 0;const L=x(MLt),H=Eat,G=lVe,ye=uVe,Oe=KRe,ot=(Zf,fa,Gc={})=>((0,H.assertValidPattern)(fa),!Gc.nocomment&&fa.charAt(0)==="#"?!1:new p2(fa,Gc).match(Zf));p.minimatch=ot;const At=/^\*+([^+@!?\*\[\(]*)$/,sn=Zf=>fa=>!fa.startsWith(".")&&fa.endsWith(Zf),tr=Zf=>fa=>fa.endsWith(Zf),Nt=Zf=>(Zf=Zf.toLowerCase(),fa=>!fa.startsWith(".")&&fa.toLowerCase().endsWith(Zf)),Ot=Zf=>(Zf=Zf.toLowerCase(),fa=>fa.toLowerCase().endsWith(Zf)),bo=/^\*+\.\*+$/,Yr=Zf=>!Zf.startsWith(".")&&Zf.includes("."),Ns=Zf=>Zf!=="."&&Zf!==".."&&Zf.includes("."),ui=/^\.\*+$/,Zr=Zf=>Zf!=="."&&Zf!==".."&&Zf.startsWith("."),Zi=/^\*+$/,jr=Zf=>Zf.length!==0&&!Zf.startsWith("."),lr=Zf=>Zf.length!==0&&Zf!=="."&&Zf!=="..",ra=/^\?+([^+@!?\*\[\(]*)?$/,Ho=([Zf,fa=""])=>{const Gc=sf([Zf]);return fa?(fa=fa.toLowerCase(),gt=>Gc(gt)&>.toLowerCase().endsWith(fa)):Gc},Ms=([Zf,fa=""])=>{const Gc=Hg([Zf]);return fa?(fa=fa.toLowerCase(),gt=>Gc(gt)&>.toLowerCase().endsWith(fa)):Gc},cs=([Zf,fa=""])=>{const Gc=Hg([Zf]);return fa?gt=>Gc(gt)&>.endsWith(fa):Gc},ni=([Zf,fa=""])=>{const Gc=sf([Zf]);return fa?gt=>Gc(gt)&>.endsWith(fa):Gc},sf=([Zf])=>{const fa=Zf.length;return Gc=>Gc.length===fa&&!Gc.startsWith(".")},Hg=([Zf])=>{const fa=Zf.length;return Gc=>Gc.length===fa&&Gc!=="."&&Gc!==".."},dp=typeof process=="object"&&process?typeof g=="object"&&g&&g.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",gi={win32:{sep:"\\"},posix:{sep:"/"}};p.sep=dp==="win32"?gi.win32.sep:gi.posix.sep,p.minimatch.sep=p.sep,p.GLOBSTAR=Symbol("globstar **"),p.minimatch.GLOBSTAR=p.GLOBSTAR;const g_="[^/]"+"*?",Vn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",p_="(?:(?!(?:\\/|^)\\.).)*?",Ol=(Zf,fa={})=>Gc=>(0,p.minimatch)(Gc,Zf,fa);p.filter=Ol,p.minimatch.filter=p.filter;const Gf=(Zf,fa={})=>Object.assign({},Zf,fa),ea=Zf=>{if(!Zf||typeof Zf!="object"||!Object.keys(Zf).length)return p.minimatch;const fa=p.minimatch;return Object.assign((gt,eu,Hi={})=>fa(gt,eu,Gf(Zf,Hi)),{Minimatch:class extends fa.Minimatch{constructor(eu,Hi={}){super(eu,Gf(Zf,Hi))}static defaults(eu){return fa.defaults(Gf(Zf,eu)).Minimatch}},AST:class extends fa.AST{constructor(eu,Hi,jm={}){super(eu,Hi,Gf(Zf,jm))}static fromGlob(eu,Hi={}){return fa.AST.fromGlob(eu,Gf(Zf,Hi))}},unescape:(gt,eu={})=>fa.unescape(gt,Gf(Zf,eu)),escape:(gt,eu={})=>fa.escape(gt,Gf(Zf,eu)),filter:(gt,eu={})=>fa.filter(gt,Gf(Zf,eu)),defaults:gt=>fa.defaults(Gf(Zf,gt)),makeRe:(gt,eu={})=>fa.makeRe(gt,Gf(Zf,eu)),braceExpand:(gt,eu={})=>fa.braceExpand(gt,Gf(Zf,eu)),match:(gt,eu,Hi={})=>fa.match(gt,eu,Gf(Zf,Hi)),sep:fa.sep,GLOBSTAR:p.GLOBSTAR})};p.defaults=ea,p.minimatch.defaults=p.defaults;const Lm=(Zf,fa={})=>((0,H.assertValidPattern)(Zf),fa.nobrace||!/\{(?:(?!\{).)*\}/.test(Zf)?[Zf]:(0,L.default)(Zf));p.braceExpand=Lm,p.minimatch.braceExpand=p.braceExpand;const Ky=(Zf,fa={})=>new p2(Zf,fa).makeRe();p.makeRe=Ky,p.minimatch.makeRe=p.makeRe;const kx=(Zf,fa,Gc={})=>{const gt=new p2(fa,Gc);return Zf=Zf.filter(eu=>gt.match(eu)),gt.options.nonull&&!Zf.length&&Zf.push(fa),Zf};p.match=kx,p.minimatch.match=p.match;const fA=/[?*]|[+@!]\(.*?\)|\[|\]/,Qo=Zf=>Zf.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class p2{constructor(fa,Gc={}){f1(this,"options");f1(this,"set");f1(this,"pattern");f1(this,"windowsPathsNoEscape");f1(this,"nonegate");f1(this,"negate");f1(this,"comment");f1(this,"empty");f1(this,"preserveMultipleSlashes");f1(this,"partial");f1(this,"globSet");f1(this,"globParts");f1(this,"nocase");f1(this,"isWindows");f1(this,"platform");f1(this,"windowsNoMagicRoot");f1(this,"regexp");(0,H.assertValidPattern)(fa),Gc=Gc||{},this.options=Gc,this.pattern=fa,this.platform=Gc.platform||dp,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!Gc.windowsPathsNoEscape||Gc.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!Gc.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!Gc.nonegate,this.comment=!1,this.empty=!1,this.partial=!!Gc.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=Gc.windowsNoMagicRoot!==void 0?Gc.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const fa of this.set)for(const Gc of fa)if(typeof Gc!="string")return!0;return!1}debug(...fa){}make(){const fa=this.pattern,Gc=this.options;if(!Gc.nocomment&&fa.charAt(0)==="#"){this.comment=!0;return}if(!fa){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],Gc.debug&&(this.debug=(...Hi)=>console.error(...Hi)),this.debug(this.pattern,this.globSet);const gt=this.globSet.map(Hi=>this.slashSplit(Hi));this.globParts=this.preprocess(gt),this.debug(this.pattern,this.globParts);let eu=this.globParts.map((Hi,jm,Cy)=>{if(this.isWindows&&this.windowsNoMagicRoot){const xS=Hi[0]===""&&Hi[1]===""&&(Hi[2]==="?"||!fA.test(Hi[2]))&&!fA.test(Hi[3]),QS=/^[a-z]:/i.test(Hi[0]);if(xS)return[...Hi.slice(0,4),...Hi.slice(4).map(th=>this.parse(th))];if(QS)return[Hi[0],...Hi.slice(1).map(th=>this.parse(th))]}return Hi.map(xS=>this.parse(xS))});if(this.debug(this.pattern,eu),this.set=eu.filter(Hi=>Hi.indexOf(!1)===-1),this.isWindows)for(let Hi=0;Hi=2?(fa=this.firstPhasePreProcess(fa),fa=this.secondPhasePreProcess(fa)):Gc>=1?fa=this.levelOneOptimize(fa):fa=this.adjascentGlobstarOptimize(fa),fa}adjascentGlobstarOptimize(fa){return fa.map(Gc=>{let gt=-1;for(;(gt=Gc.indexOf("**",gt+1))!==-1;){let eu=gt;for(;Gc[eu+1]==="**";)eu++;eu!==gt&&Gc.splice(gt,eu-gt)}return Gc})}levelOneOptimize(fa){return fa.map(Gc=>(Gc=Gc.reduce((gt,eu)=>{const Hi=gt[gt.length-1];return eu==="**"&&Hi==="**"?gt:eu===".."&&Hi&&Hi!==".."&&Hi!=="."&&Hi!=="**"?(gt.pop(),gt):(gt.push(eu),gt)},[]),Gc.length===0?[""]:Gc))}levelTwoFileOptimize(fa){Array.isArray(fa)||(fa=this.slashSplit(fa));let Gc=!1;do{if(Gc=!1,!this.preserveMultipleSlashes){for(let eu=1;eueu&>.splice(eu+1,jm-eu);let Cy=gt[eu+1];const xS=gt[eu+2],QS=gt[eu+3];if(Cy!==".."||!xS||xS==="."||xS===".."||!QS||QS==="."||QS==="..")continue;Gc=!0,gt.splice(eu,1);const th=gt.slice(0);th[eu]="**",fa.push(th),eu--}if(!this.preserveMultipleSlashes){for(let jm=1;jmGc.length)}partsMatch(fa,Gc,gt=!1){let eu=0,Hi=0,jm=[],Cy="";for(;eub8?Gc=Gc.slice(ur):b8>ur&&(fa=fa.slice(b8)))}}const{optimizationLevel:Hi=1}=this.options;Hi>=2&&(fa=this.levelTwoFileOptimize(fa)),this.debug("matchOne",this,{file:fa,pattern:Gc}),this.debug("matchOne",fa.length,Gc.length);for(var jm=0,Cy=0,xS=fa.length,QS=Gc.length;jm!!h.file);this.sendDiagnosticsEvent(n,i,d,"semanticDiag"),(u=ps)==null||u.pop()}syntacticCheck(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"syntacticCheck",{file:n,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,i,i.getLanguageService().getSyntacticDiagnostics(n),"syntaxDiag"),(u=ps)==null||u.pop()}suggestionCheck(n,i){var c,u;(c=ps)==null||c.push(ps.Phase.Session,"suggestionCheck",{file:n,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,i,i.getLanguageService().getSuggestionDiagnostics(n),"suggestionDiag"),(u=ps)==null||u.pop()}sendDiagnosticsEvent(n,i,c,u){try{this.event({file:n,diagnostics:c.map(d=>hi(n,i,d))},u)}catch(d){this.logError(d,u)}}updateErrorCheck(n,i,c,u=!0){re.assert(!this.suppressDiagnosticEvents);const d=this.changeSeq,h=Math.min(c,200);let S=0;const E=()=>{S++,i.length>S&&n.delay("checkOne",h,P)},P=()=>{if(this.changeSeq!==d)return;let k=i[S];if(As(k)&&(k=this.toPendingErrorCheck(k),!k)){E();return}const{fileName:F,project:$}=k;if(Qa($),!!$.containsFile(F,u)&&(this.syntacticCheck(F,$),this.changeSeq===d)){if($.projectService.serverMode!==0){E();return}n.immediate("semanticCheck",()=>{if(this.semanticCheck(F,$),this.changeSeq===d){if(this.getPreferences(F).disableSuggestions){E();return}n.immediate("suggestionCheck",()=>{this.suggestionCheck(F,$),E()})}})}};i.length>S&&this.changeSeq===d&&n.delay("checkOne",c,P)}cleanProjects(n,i){if(i){this.logger.info(`cleaning ${n}`);for(const c of i)c.getLanguageService(!1).cleanupSemanticCache(),c.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",oc(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n);return c.getEncodedSyntacticClassifications(i,n)}getEncodedSemanticClassifications(n){const{file:i,project:c}=this.getFileAndProject(n),u=n.format==="2020"?"2020":"original";return c.getLanguageService().getEncodedSemanticClassifications(i,n,u)}getProject(n){return n===void 0?void 0:this.projectService.findProject(n)}getConfigFileAndProject(n){const i=this.getProject(n.projectFileName),c=te(n.file);return{configFile:i&&i.hasConfigFile(c)?c:void 0,project:i}}getConfigFileDiagnostics(n,i,c){const u=i.getAllProjectErrors(),d=i.getLanguageService().getCompilerOptionsDiagnostics(),h=gi(Hi(u,d),S=>!!S.file&&S.file.fileName===n);return c?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(h):Vn(h,S=>ka(S,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(n){return n.map(i=>({message:D2(i.messageText,this.host.newLine),start:i.start,length:i.length,category:YO(i),code:i.code,source:i.source,startLocation:i.file&&Zc(xm(i.file,i.start)),endLocation:i.file&&Zc(xm(i.file,i.start+i.length)),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Vn(i.relatedInformation,pa)}))}getCompilerOptionsDiagnostics(n){const i=this.getProject(n.projectFileName);return this.convertToDiagnosticsWithLinePosition(gi(i.getLanguageService().getCompilerOptionsDiagnostics(),c=>!c.file),void 0)}convertToDiagnosticsWithLinePosition(n,i){return n.map(c=>({message:D2(c.messageText,this.host.newLine),start:c.start,length:c.length,category:YO(c),code:c.code,source:c.source,startLocation:i&&i.positionToLineOffset(c.start),endLocation:i&&i.positionToLineOffset(c.start+c.length),reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated,relatedInformation:Vn(c.relatedInformation,pa)}))}getDiagnosticsWorker(n,i,c,u){const{project:d,file:h}=this.getFileAndProject(n);if(i&&vn(d,h))return ke;const S=d.getScriptInfoForNormalizedPath(h),E=c(d,h);return u?this.convertToDiagnosticsWithLinePosition(E,S):E.map(P=>hi(h,d,P))}getDefinition(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=this.mapDefinitionInfoLocations(u.getLanguageService().getDefinitionAtPosition(c,d)||ke,u);return i?this.mapDefinitionInfo(h,u):h.map(Hit.mapToOriginalLocation)}mapDefinitionInfoLocations(n,i){return n.map(c=>{const u=fi(c,i);return u?{...u,containerKind:c.containerKind,containerName:c.containerName,kind:c.kind,name:c.name,failedAliasResolution:c.failedAliasResolution,...c.unverified&&{unverified:c.unverified}}:c})}getDefinitionAndBoundSpan(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=re.checkDefined(u.getScriptInfo(c)),S=u.getLanguageService().getDefinitionAndBoundSpan(c,d);if(!S||!S.definitions)return{definitions:ke,textSpan:void 0};const E=this.mapDefinitionInfoLocations(S.definitions,u),{textSpan:P}=S;return i?{definitions:this.mapDefinitionInfo(E,u),textSpan:bu(P,h)}:{definitions:E.map(Hit.mapToOriginalLocation),textSpan:P}}findSourceDefinition(n){var i;const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=u.getLanguageService().getDefinitionAtPosition(c,d);let S=this.mapDefinitionInfoLocations(h||ke,u).slice();if(this.projectService.serverMode===0&&(!gt(S,J=>te(J.fileName)!==c&&!J.isAmbient)||gt(S,J=>!!J.failedAliasResolution))){const J=J5(ve=>ve.textSpan.start,$h);S==null||S.forEach(ve=>J.add(ve));const X=u.getNoDtsResolutionProject(c),ie=X.getLanguageService(),ae=(i=ie.getDefinitionAtPosition(c,d,!0,!1))==null?void 0:i.filter(ve=>te(ve.fileName)!==c);if(gt(ae))for(const ve of ae){if(ve.unverified){const we=F(ve,u.getLanguageService().getProgram(),ie.getProgram());if(gt(we)){for(const Fe of we)J.add(Fe);continue}}J.add(ve)}else{const ve=S.filter(we=>te(we.fileName)!==c&&we.isAmbient);for(const we of gt(ve)?ve:k()){const Fe=P(we.fileName,c,X);if(!Fe)continue;const et=this.projectService.getOrCreateScriptInfoNotOpenedByClient(Fe,X.currentDirectory,X.directoryStructureHost);if(!et)continue;X.containsScriptInfo(et)||(X.addRoot(et),X.updateGraph());const Pe=ie.getProgram(),dt=re.checkDefined(Pe.getSourceFile(Fe));for(const Ie of $(we.name,dt,Pe))J.add(Ie)}}S=oc(J.values())}return S=S.filter(J=>!J.isAmbient&&!J.failedAliasResolution),this.mapDefinitionInfo(S,u);function P(J,X,ie){var ae,ve,we;const Fe=AY(J);if(Fe&&J.lastIndexOf(IP)===Fe.topLevelNodeModulesIndex){const et=J.substring(0,Fe.packageRootIndex),Pe=(ae=u.getModuleResolutionCache())==null?void 0:ae.getPackageJsonInfoCache(),dt=u.getCompilationSettings(),Ie=m$(vf(et+"/package.json",u.getCurrentDirectory()),lae(Pe,u,dt));if(!Ie)return;const ct=s4(Ie,{moduleResolution:2},u,u.getModuleResolutionCache()),Ct=J.substring(Fe.topLevelPackageNameIndex+1,Fe.packageRootIndex),Lt=c4(DQ(Ct)),Ze=u.toPath(J);if(ct&>(ct,Ke=>u.toPath(Ke)===Ze))return(ve=ie.resolutionCache.resolveSingleModuleNameWithoutWatching(Lt,X).resolvedModule)==null?void 0:ve.resolvedFileName;{const Ke=J.substring(Fe.packageRootIndex+1),st=`${Lt}/${wg(Ke)}`;return(we=ie.resolutionCache.resolveSingleModuleNameWithoutWatching(st,X).resolvedModule)==null?void 0:we.resolvedFileName}}}function k(){const J=u.getLanguageService(),X=J.getProgram(),ie=cS(X.getSourceFile(c),d);return(Cm(ie)||xn(ie))&&Kf(ie.parent)&&r6e(ie,ae=>{var ve;if(ae===ie)return;const we=(ve=J.getDefinitionAtPosition(c,ae.getStart(),!0,!1))==null?void 0:ve.filter(Fe=>te(Fe.fileName)!==c&&Fe.isAmbient).map(Fe=>({fileName:Fe.fileName,name:K2(ie)}));if(gt(we))return we})||ke}function F(J,X,ie){var ae;const ve=ie.getSourceFile(J.fileName);if(!ve)return;const we=cS(X.getSourceFile(c),d),Fe=X.getTypeChecker().getSymbolAtLocation(we),et=Fe&&Rh(Fe,276);if(!et)return;const Pe=((ae=et.propertyName)==null?void 0:ae.text)||et.name.text;return $(Pe,ve,ie)}function $(J,X,ie){const ae=Wf.Core.getTopMostDeclarationNamesInFile(J,X);return Qo(ae,ve=>{const we=ie.getTypeChecker().getSymbolAtLocation(ve),Fe=cG(ve);if(we&&Fe)return C4.createDefinitionInfo(Fe,ie.getTypeChecker(),we,Fe,!0)})}}getEmitOutput(n){const{file:i,project:c}=this.getFileAndProject(n);if(!c.shouldEmitFile(c.getScriptInfo(i)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const u=c.getLanguageService().getEmitOutput(i);return n.richResponse?{...u,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u.diagnostics):u.diagnostics.map(d=>ka(d,!0))}:u}mapJSDocTagInfo(n,i,c){return n?n.map(u=>{var d;return{...u,text:c?this.mapDisplayParts(u.text,i):(d=u.text)==null?void 0:d.map(h=>h.text).join("")}}):[]}mapDisplayParts(n,i){return n?n.map(c=>c.kind!=="linkName"?c:{...c,target:this.toFileSpan(c.target.fileName,c.target.textSpan,i)}):[]}mapSignatureHelpItems(n,i,c){return n.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,i),parameters:u.parameters.map(d=>({...d,documentation:this.mapDisplayParts(d.documentation,i)})),tags:this.mapJSDocTagInfo(u.tags,i,c)}))}mapDefinitionInfo(n,i){return n.map(c=>({...this.toFileSpanWithContext(c.fileName,c.textSpan,c.contextSpan,i),...c.unverified&&{unverified:c.unverified}}))}static mapToOriginalLocation(n){return n.originalFileName?(re.assert(n.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...n,fileName:n.originalFileName,textSpan:n.originalTextSpan,targetFileName:n.fileName,targetTextSpan:n.textSpan,contextSpan:n.originalContextSpan,targetContextSpan:n.contextSpan}):n}toFileSpan(n,i,c){const u=c.getLanguageService(),d=u.toLineColumnOffset(n,i.start),h=u.toLineColumnOffset(n,Xy(i));return{file:n,start:{line:d.line+1,offset:d.character+1},end:{line:h.line+1,offset:h.character+1}}}toFileSpanWithContext(n,i,c,u){const d=this.toFileSpan(n,i,u),h=c&&this.toFileSpan(n,c,u);return h?{...d,contextStart:h.start,contextEnd:h.end}:d}getTypeDefinition(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,i),d=this.mapDefinitionInfoLocations(c.getLanguageService().getTypeDefinitionAtPosition(i,u)||ke,c);return this.mapDefinitionInfo(d,c)}mapImplementationLocations(n,i){return n.map(c=>{const u=fi(c,i);return u?{...u,kind:c.kind,displayParts:c.displayParts}:c})}getImplementation(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=this.mapImplementationLocations(u.getLanguageService().getImplementationAtPosition(c,d)||ke,u);return i?h.map(({fileName:S,textSpan:E,contextSpan:P})=>this.toFileSpanWithContext(S,E,P,u)):h.map(Hit.mapToOriginalLocation)}getSyntacticDiagnosticsSync(n){const{configFile:i}=this.getConfigFileAndProject(n);return i?ke:this.getDiagnosticsWorker(n,!1,(c,u)=>c.getLanguageService().getSyntacticDiagnostics(u),!!n.includeLinePosition)}getSemanticDiagnosticsSync(n){const{configFile:i,project:c}=this.getConfigFileAndProject(n);return i?this.getConfigFileDiagnostics(i,c,!!n.includeLinePosition):this.getDiagnosticsWorker(n,!0,(u,d)=>u.getLanguageService().getSemanticDiagnostics(d).filter(h=>!!h.file),!!n.includeLinePosition)}getSuggestionDiagnosticsSync(n){const{configFile:i}=this.getConfigFileAndProject(n);return i?ke:this.getDiagnosticsWorker(n,!0,(c,u)=>c.getLanguageService().getSuggestionDiagnostics(u),!!n.includeLinePosition)}getJsxClosingTag(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=c.getJsxClosingTagAtPosition(i,u);return d===void 0?void 0:{newText:d.newText,caretOffset:0}}getLinkedEditingRange(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=c.getLinkedEditingRangeAtPosition(i,u),h=this.projectService.getScriptInfoForNormalizedPath(i);if(!(h===void 0||d===void 0))return bt(d,h)}getDocumentHighlights(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.getPositionInFile(n,c),h=u.getLanguageService().getDocumentHighlights(c,d,n.filesToSearch);return h?i?h.map(({fileName:S,highlightSpans:E})=>{const P=u.getScriptInfo(S);return{file:S,highlightSpans:E.map(({textSpan:k,kind:F,contextSpan:$})=>({...K_(k,$,P),kind:F}))}}):h:ke}provideInlayHints(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(i);return c.getLanguageService().provideInlayHints(i,n,this.getPreferences(i)).map(h=>{const{position:S,displayParts:E}=h;return{...h,position:u.positionToLineOffset(S),displayParts:E==null?void 0:E.map(({text:P,span:k,file:F})=>{if(k){re.assertIsDefined(F,"Target file should be defined together with its span.");const $=this.projectService.getScriptInfo(F);return{text:P,span:{start:$.positionToLineOffset(k.start),end:$.positionToLineOffset(k.start+k.length),file:F}}}else return{text:P}})}})}setCompilerOptionsForInferredProjects(n){this.projectService.setCompilerOptionsForInferredProjects(n.options,n.projectRootPath)}getProjectInfo(n){return this.getProjectInfoWorker(n.file,n.projectFileName,n.needFileNameList,!1)}getProjectInfoWorker(n,i,c,u){const{project:d}=this.getFileAndProjectWorker(n,i);return Qa(d),{configFileName:d.getProjectName(),languageServiceDisabled:!d.languageServiceEnabled,fileNames:c?d.getFileNames(!1,u):void 0}}getRenameInfo(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getPositionInFile(n,i),d=this.getPreferences(i);return c.getLanguageService().getRenameInfo(i,u,d)}getProjects(n,i,c){let u,d;if(n.projectFileName){const h=this.getProject(n.projectFileName);h&&(u=[h])}else{const h=i?this.projectService.getScriptInfoEnsuringProjectsUptoDate(n.file):this.projectService.getScriptInfo(n.file);if(h)i||this.projectService.ensureDefaultProjectForFile(h);else return c?ke:(this.projectService.logErrorForScriptInfoNotFound(n.file),Dt.ThrowNoProject());u=h.containingProjects,d=this.projectService.getSymlinkedProjects(h)}return u=gi(u,h=>h.languageServiceEnabled&&!h.isOrphan()),!c&&(!u||!u.length)&&!d?(this.projectService.logErrorForScriptInfoNotFound(n.file??n.projectFileName),Dt.ThrowNoProject()):d?{projects:u,symLinkedProjects:d}:u}getDefaultProject(n){if(n.projectFileName){const c=this.getProject(n.projectFileName);if(c)return c;if(!n.file)return Dt.ThrowNoProject()}return this.projectService.getScriptInfo(n.file).getDefaultProject()}getRenameLocations(n,i){const c=te(n.file),u=this.getPositionInFile(n,c),d=this.getProjects(n),h=this.getDefaultProject(n),S=this.getPreferences(c),E=this.mapRenameInfo(h.getLanguageService().getRenameInfo(c,u,S),re.checkDefined(this.projectService.getScriptInfo(c)));if(!E.canRename)return i?{info:E,locs:[]}:[];const P=av(d,h,{fileName:n.file,pos:u},!!n.findInStrings,!!n.findInComments,S);return i?{info:E,locs:this.toSpanGroups(P)}:P}mapRenameInfo(n,i){if(n.canRename){const{canRename:c,fileToRename:u,displayName:d,fullDisplayName:h,kind:S,kindModifiers:E,triggerSpan:P}=n;return{canRename:c,fileToRename:u,displayName:d,fullDisplayName:h,kind:S,kindModifiers:E,triggerSpan:bu(P,i)}}else return n}toSpanGroups(n){const i=new Map;for(const{fileName:c,textSpan:u,contextSpan:d,originalContextSpan:h,originalTextSpan:S,originalFileName:E,...P}of n){let k=i.get(c);k||i.set(c,k={file:c,locs:[]});const F=re.checkDefined(this.projectService.getScriptInfo(c));k.locs.push({...K_(u,d,F),...P})}return oc(i.values())}getReferences(n,i){const c=te(n.file),u=this.getProjects(n),d=this.getPositionInFile(n,c),h=J0(u,this.getDefaultProject(n),{fileName:n.file,pos:d},this.logger);if(!i)return h;const S=this.getPreferences(c),E=this.getDefaultProject(n),P=E.getScriptInfoForNormalizedPath(c),k=E.getLanguageService().getQuickInfoAtPosition(c,d),F=k?ule(k.displayParts):"",$=k&&k.textSpan,J=$?P.positionToLineOffset($.start).offset:0,X=$?P.getSnapshot().getText($.start,Xy($)):"";return{refs:ea(h,ae=>ae.references.map(ve=>Za(this.projectService,ve,S))),symbolName:X,symbolStartOffset:J,symbolDisplayString:F}}getFileReferences(n,i){const c=this.getProjects(n),u=n.file,d=this.getPreferences(te(u)),h=[],S=Lg();return Eg(c,void 0,P=>{if(P.getCancellationToken().isCancellationRequested())return;const k=P.getLanguageService().getFileReferences(u);if(k)for(const F of k)S.has(F)||(h.push(F),S.add(F))}),i?{refs:h.map(P=>Za(this.projectService,P,d)),symbolName:`"${n.file}"`}:h}openClientFile(n,i,c,u){this.projectService.openClientFileWithNormalizedPath(n,i,c,!1,u)}getPosition(n,i){return n.position!==void 0?n.position:i.lineOffsetToPosition(n.line,n.offset)}getPositionInFile(n,i){const c=this.projectService.getScriptInfoForNormalizedPath(i);return this.getPosition(n,c)}getFileAndProject(n){return this.getFileAndProjectWorker(n.file,n.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(n){const{file:i,project:c}=this.getFileAndProject(n);return{file:i,languageService:c.getLanguageService(!1)}}getFileAndProjectWorker(n,i){const c=te(n),u=this.getProject(i)||this.projectService.ensureDefaultProjectForFile(c);return{file:c,project:u}}getOutliningSpans(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getOutliningSpans(c);if(i){const h=this.projectService.getScriptInfoForNormalizedPath(c);return d.map(S=>({textSpan:bu(S.textSpan,h),hintSpan:bu(S.hintSpan,h),bannerText:S.bannerText,autoCollapse:S.autoCollapse,kind:S.kind}))}else return d}getTodoComments(n){const{file:i,project:c}=this.getFileAndProject(n);return c.getLanguageService().getTodoComments(i,n.descriptors)}getDocCommentTemplate(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getDocCommentTemplateAtPosition(i,u,this.getPreferences(i),this.getFormatOptions(i))}getSpanOfEnclosingComment(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.onlyMultiLine,d=this.getPositionInFile(n,i);return c.getSpanOfEnclosingComment(i,d,u)}getIndentation(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i),d=n.options?oi(n.options):this.getFormatOptions(i),h=c.getIndentationAtPosition(i,u,d);return{position:u,indentation:h}}getBreakpointStatement(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getBreakpointStatementAtPosition(i,u)}getNameOrDottedNameSpan(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.getNameOrDottedNameSpan(i,u,u)}isValidBraceCompletion(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.getPositionInFile(n,i);return c.isValidBraceCompletionAtPosition(i,u,n.openingBrace.charCodeAt(0))}getQuickInfoWorker(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=u.getLanguageService().getQuickInfoAtPosition(c,this.getPosition(n,d));if(!h)return;const S=!!this.getPreferences(c).displayPartsForJSDoc;if(i){const E=ule(h.displayParts);return{kind:h.kind,kindModifiers:h.kindModifiers,start:d.positionToLineOffset(h.textSpan.start),end:d.positionToLineOffset(Xy(h.textSpan)),displayString:E,documentation:S?this.mapDisplayParts(h.documentation,u):ule(h.documentation),tags:this.mapJSDocTagInfo(h.tags,u,S)}}else return S?h:{...h,tags:this.mapJSDocTagInfo(h.tags,u,!1)}}getFormattingEditsForRange(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(i),d=u.lineOffsetToPosition(n.line,n.offset),h=u.lineOffsetToPosition(n.endLine,n.endOffset),S=c.getFormattingEditsForRange(i,d,h,this.getFormatOptions(i));if(S)return S.map(E=>this.convertTextChangeToCodeEdit(E,u))}getFormattingEditsForRangeFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsForRange(i,n.position,n.endPosition,u)}getFormattingEditsForDocumentFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsForDocument(i,u)}getFormattingEditsAfterKeystrokeFull(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=n.options?oi(n.options):this.getFormatOptions(i);return c.getFormattingEditsAfterKeystroke(i,n.position,n.key,u)}getFormattingEditsAfterKeystroke(n){const{file:i,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(n),u=this.projectService.getScriptInfoForNormalizedPath(i),d=u.lineOffsetToPosition(n.line,n.offset),h=this.getFormatOptions(i),S=c.getFormattingEditsAfterKeystroke(i,d,n.key,h);if(n.key===` +`&&(!S||S.length===0||bc(S,d))){const{lineText:E,absolutePosition:P}=u.textStorage.getAbsolutePositionAndLineText(n.line);if(E&&E.search("\\S")<0){const k=c.getIndentationAtPosition(i,d,h);let F=0,$,J;for($=0,J=E.length;$({start:u.positionToLineOffset(E.span.start),end:u.positionToLineOffset(Xy(E.span)),newText:E.newText?E.newText:""}))}getCompletions(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getLanguageService().getCompletionsAtPosition(c,h,{...We(this.getPreferences(c)),triggerCharacter:n.triggerCharacter,triggerKind:n.triggerKind,includeExternalModuleExports:n.includeExternalModuleExports,includeInsertTextCompletions:n.includeInsertTextCompletions},u.projectService.getFormatCodeOptions(c));if(S===void 0)return;if(i==="completions-full")return S;const E=n.prefix||"",P=Qo(S.entries,F=>{if(S.isMemberCompletion||qf(F.name.toLowerCase(),E.toLowerCase())){const{name:$,kind:J,kindModifiers:X,sortText:ie,insertText:ae,filterText:ve,replacementSpan:we,hasAction:Fe,source:et,sourceDisplay:Pe,labelDetails:dt,isSnippet:Ie,isRecommended:ct,isPackageJsonImport:Ct,isImportStatementCompletion:Lt,data:Ze}=F,Ke=we?bu(we,d):void 0;return{name:$,kind:J,kindModifiers:X,sortText:ie,insertText:ae,filterText:ve,replacementSpan:Ke,isSnippet:Ie,hasAction:Fe||void 0,source:et,sourceDisplay:Pe,labelDetails:dt,isRecommended:ct,isPackageJsonImport:Ct,isImportStatementCompletion:Lt,data:Ze}}});return i==="completions"?(S.metadata&&(P.metadata=S.metadata),P):{...S,optionalReplacementSpan:S.optionalReplacementSpan&&bu(S.optionalReplacementSpan,d),entries:P}}getCompletionEntryDetails(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.projectService.getFormatCodeOptions(c),E=!!this.getPreferences(c).displayPartsForJSDoc,P=Qo(n.entryNames,k=>{const{name:F,source:$,data:J}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return u.getLanguageService().getCompletionEntryDetails(c,h,F,S,$,this.getPreferences(c),J?uc(J,Al):void 0)});return i?E?P:P.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,u,!1)})):P.map(k=>({...k,codeActions:Vn(k.codeActions,F=>this.mapCodeAction(F)),documentation:this.mapDisplayParts(k.documentation,u),tags:this.mapJSDocTagInfo(k.tags,u,E)}))}getCompileOnSaveAffectedFileList(n){const i=this.getProjects(n,!0,!0),c=this.projectService.getScriptInfo(n.file);return c?Xm(c,u=>this.projectService.getScriptInfoForPath(u),i,(u,d)=>{if(!u.compileOnSaveEnabled||!u.languageServiceEnabled||u.isOrphan())return;const h=u.getCompilationSettings();if(!(h.noEmit||Zb(d.fileName)&&!Qn(h)))return{projectFileName:u.getProjectName(),fileNames:u.getCompileOnSaveAffectedFileList(d),projectUsesOutFile:!!Ng(h)}}):ke}emitFile(n){const{file:i,project:c}=this.getFileAndProject(n);if(c||Dt.ThrowNoProject(),!c.languageServiceEnabled)return n.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const u=c.getScriptInfo(i),{emitSkipped:d,diagnostics:h}=c.emitFile(u,(S,E,P)=>this.host.writeFile(S,E,P));return n.richResponse?{emitSkipped:d,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(h):h.map(S=>ka(S,!0))}:!d}getSignatureHelpItems(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getLanguageService().getSignatureHelpItems(c,h,n),E=!!this.getPreferences(c).displayPartsForJSDoc;if(S&&i){const P=S.applicableSpan;return{...S,applicableSpan:{start:d.positionToLineOffset(P.start),end:d.positionToLineOffset(P.start+P.length)},items:this.mapSignatureHelpItems(S.items,u,E)}}else return E||!S?S:{...S,items:S.items.map(P=>({...P,tags:this.mapJSDocTagInfo(P.tags,u,!1)}))}}toPendingErrorCheck(n){const i=te(n),c=this.projectService.tryGetDefaultProjectForFile(i);return c&&{fileName:i,project:c}}getDiagnostics(n,i,c){this.suppressDiagnosticEvents||c.length>0&&this.updateErrorCheck(n,c,i)}change(n){const i=this.projectService.getScriptInfo(n.file);re.assert(!!i),i.textStorage.switchToScriptVersionCache();const c=i.lineOffsetToPosition(n.line,n.offset),u=i.lineOffsetToPosition(n.endLine,n.endOffset);c>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(i,Zf({span:{start:c,length:u-c},newText:n.insertString})))}reload(n,i){const c=te(n.file),u=n.tmpfile===void 0?void 0:te(n.tmpfile),d=this.projectService.getScriptInfoForNormalizedPath(c);d&&(this.changeSeq++,d.reloadFromFile(u)&&this.doOutput(void 0,"reload",i,!0))}saveToTmp(n,i){const c=this.projectService.getScriptInfo(n);c&&c.saveTo(i)}closeClientFile(n){if(!n)return;const i=hf(n);this.projectService.closeClientFile(i)}mapLocationNavigationBarItems(n,i){return Vn(n,c=>({text:c.text,kind:c.kind,kindModifiers:c.kindModifiers,spans:c.spans.map(u=>bu(u,i)),childItems:this.mapLocationNavigationBarItems(c.childItems,i),indent:c.indent}))}getNavigationBarItems(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getNavigationBarItems(c);return d?i?this.mapLocationNavigationBarItems(d,this.projectService.getScriptInfoForNormalizedPath(c)):d:void 0}toLocationNavigationTree(n,i){return{text:n.text,kind:n.kind,kindModifiers:n.kindModifiers,spans:n.spans.map(c=>bu(c,i)),nameSpan:n.nameSpan&&bu(n.nameSpan,i),childItems:Vn(n.childItems,c=>this.toLocationNavigationTree(c,i))}}getNavigationTree(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=u.getNavigationTree(c);return d?i?this.toLocationNavigationTree(d,this.projectService.getScriptInfoForNormalizedPath(c)):d:void 0}getNavigateToItems(n,i){const c=this.getFullNavigateToItems(n);return i?ea(c,({project:u,navigateToItems:d})=>d.map(h=>{const S=u.getScriptInfo(h.fileName),E={name:h.name,kind:h.kind,kindModifiers:h.kindModifiers,isCaseSensitive:h.isCaseSensitive,matchKind:h.matchKind,file:h.fileName,start:S.positionToLineOffset(h.textSpan.start),end:S.positionToLineOffset(Xy(h.textSpan))};return h.kindModifiers&&h.kindModifiers!==""&&(E.kindModifiers=h.kindModifiers),h.containerName&&h.containerName.length>0&&(E.containerName=h.containerName),h.containerKind&&h.containerKind.length>0&&(E.containerKind=h.containerKind),E})):ea(c,({navigateToItems:u})=>u)}getFullNavigateToItems(n){const{currentFileOnly:i,searchValue:c,maxResultCount:u,projectFileName:d}=n;if(i){re.assertIsDefined(n.file);const{file:$,project:J}=this.getFileAndProject(n);return[{project:J,navigateToItems:J.getLanguageService().getNavigateToItems(c,u,$)}]}const h=this.getHostPreferences(),S=[],E=new Map;if(!n.file&&!d)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject($=>P($));else{const $=this.getProjects(n);Eg($,void 0,J=>P(J))}return S;function P($){const J=$.getLanguageService().getNavigateToItems(c,u,void 0,$.isNonTsProject(),h.excludeLibrarySymbolsInNavTo),X=gi(J,ie=>k(ie)&&!tn(k1(ie),$));X.length&&S.push({project:$,navigateToItems:X})}function k($){const J=$.name;if(!E.has(J))return E.set(J,[$]),!0;const X=E.get(J);for(const ie of X)if(F(ie,$))return!1;return X.push($),!0}function F($,J){return $===J?!0:!$||!J?!1:$.containerKind===J.containerKind&&$.containerName===J.containerName&&$.fileName===J.fileName&&$.isCaseSensitive===J.isCaseSensitive&&$.kind===J.kind&&$.kindModifiers===J.kindModifiers&&$.matchKind===J.matchKind&&$.name===J.name&&$.textSpan.start===J.textSpan.start&&$.textSpan.length===J.textSpan.length}}getSupportedCodeFixes(n){if(!n)return fle();if(n.file){const{file:c,project:u}=this.getFileAndProject(n);return u.getLanguageService().getSupportedCodeFixes(c)}const i=this.getProject(n.projectFileName);return i||Dt.ThrowNoProject(),i.getLanguageService().getSupportedCodeFixes()}isLocation(n){return n.line!==void 0}extractPositionOrRange(n,i){let c,u;return this.isLocation(n)?c=d(n):u=this.getRange(n,i),re.checkDefined(c===void 0?u:c);function d(h){return h.position!==void 0?h.position:i.lineOffsetToPosition(h.line,h.offset)}}getRange(n,i){const{startPosition:c,endPosition:u}=this.getStartAndEndPosition(n,i);return{pos:c,end:u}}getApplicableRefactors(n){const{file:i,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(i);return c.getLanguageService().getApplicableRefactors(i,this.extractPositionOrRange(n,u),this.getPreferences(i),n.triggerReason,n.kind,n.includeInteractiveActions)}getEditsForRefactor(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=u.getScriptInfoForNormalizedPath(c),h=u.getLanguageService().getEditsForRefactor(c,this.getFormatOptions(c),this.extractPositionOrRange(n,d),n.refactor,n.action,this.getPreferences(c),n.interactiveRefactorArguments);if(h===void 0)return{edits:[]};if(i){const{renameFilename:S,renameLocation:E,edits:P}=h;let k;if(S!==void 0&&E!==void 0){const F=u.getScriptInfoForNormalizedPath(te(S));k=Si(Dj(F.getSnapshot()),S,E,P)}return{renameLocation:k,renameFilename:S,edits:this.mapTextChangesToCodeEdits(P),notApplicableReason:h.notApplicableReason}}return h}getMoveToRefactoringFileSuggestions(n){const{file:i,project:c}=this.getFileAndProject(n),u=c.getScriptInfoForNormalizedPath(i);return c.getLanguageService().getMoveToRefactoringFileSuggestions(i,this.extractPositionOrRange(n,u),this.getPreferences(i))}organizeImports(n,i){re.assert(n.scope.type==="file");const{file:c,project:u}=this.getFileAndProject(n.scope.args),d=u.getLanguageService().organizeImports({fileName:c,mode:n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(c),this.getPreferences(c));return i?this.mapTextChangesToCodeEdits(d):d}getEditsForFileRename(n,i){const c=te(n.oldFilePath),u=te(n.newFilePath),d=this.getHostFormatOptions(),h=this.getHostPreferences(),S=new Set,E=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(P=>{const k=P.getLanguageService().getEditsForFileRename(c,u,d,h),F=[];for(const $ of k)S.has($.fileName)||(E.push($),F.push($.fileName));for(const $ of F)S.add($)}),i?E.map(P=>this.mapTextChangeToCodeEdit(P)):E}getCodeFixes(n,i){const{file:c,project:u}=this.getFileAndProject(n),d=u.getScriptInfoForNormalizedPath(c),{startPosition:h,endPosition:S}=this.getStartAndEndPosition(n,d);let E;try{E=u.getLanguageService().getCodeFixesAtPosition(c,h,S,n.errorCodes,this.getFormatOptions(c),this.getPreferences(c))}catch(P){const k=u.getLanguageService(),F=[...k.getSyntacticDiagnostics(c),...k.getSemanticDiagnostics(c),...k.getSuggestionDiagnostics(c)].map(J=>FX(h,S-h,J.start,J.length)&&J.code),$=n.errorCodes.find(J=>!F.includes(J));throw $!==void 0&&(P.message=`BADCLIENT: Bad error code, ${$} not found in range ${h}..${S} (found: ${F.join(", ")}); could have caused this error: +${P.message}`),P}return i?E.map(P=>this.mapCodeFixAction(P)):E}getCombinedCodeFix({scope:n,fixId:i},c){re.assert(n.type==="file");const{file:u,project:d}=this.getFileAndProject(n.args),h=d.getLanguageService().getCombinedCodeFix({type:"file",fileName:u},i,this.getFormatOptions(u),this.getPreferences(u));return c?{changes:this.mapTextChangesToCodeEdits(h.changes),commands:h.commands}:h}applyCodeActionCommand(n){const i=n.command;for(const c of BC(i)){const{file:u,project:d}=this.getFileAndProject(c);d.getLanguageService().applyCodeActionCommand(c,this.getFormatOptions(u)).then(h=>{},h=>{})}return{}}getStartAndEndPosition(n,i){let c,u;return n.startPosition!==void 0?c=n.startPosition:(c=i.lineOffsetToPosition(n.startLine,n.startOffset),n.startPosition=c),n.endPosition!==void 0?u=n.endPosition:(u=i.lineOffsetToPosition(n.endLine,n.endOffset),n.endPosition=u),{startPosition:c,endPosition:u}}mapCodeAction({description:n,changes:i,commands:c}){return{description:n,changes:this.mapTextChangesToCodeEdits(i),commands:c}}mapCodeFixAction({fixName:n,description:i,changes:c,commands:u,fixId:d,fixAllDescription:h}){return{fixName:n,description:i,changes:this.mapTextChangesToCodeEdits(c),commands:u,fixId:d,fixAllDescription:h}}mapTextChangesToCodeEdits(n){return n.map(i=>this.mapTextChangeToCodeEdit(i))}mapTextChangeToCodeEdit(n){const i=this.projectService.getScriptInfoOrConfig(n.fileName);return!!n.isNewFile==!!i&&(i||this.projectService.logErrorForScriptInfoNotFound(n.fileName),re.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!n.isNewFile,hasScriptInfo:!!i}))),i?{fileName:n.fileName,textChanges:n.textChanges.map(c=>ig(c,i))}:ii(n)}convertTextChangeToCodeEdit(n,i){return{start:i.positionToLineOffset(n.span.start),end:i.positionToLineOffset(n.span.start+n.span.length),newText:n.newText?n.newText:""}}getBraceMatching(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getPosition(n,d),S=u.getBraceMatchingAtPosition(c,h);return S?i?S.map(E=>bu(E,d)):S:void 0}getDiagnosticsForProject(n,i,c){if(this.suppressDiagnosticEvents)return;const{fileNames:u,languageServiceDisabled:d}=this.getProjectInfoWorker(c,void 0,!0,!0);if(d)return;const h=u.filter(ie=>!ie.includes("lib.d.ts"));if(h.length===0)return;const S=[],E=[],P=[],k=[],F=te(c),$=this.projectService.ensureDefaultProjectForFile(F);for(const ie of h)this.getCanonicalFileName(ie)===this.getCanonicalFileName(c)?S.push(ie):this.projectService.getScriptInfo(ie).isScriptOpen()?E.push(ie):Zb(ie)?k.push(ie):P.push(ie);const X=[...S,...E,...P,...k].map(ie=>({fileName:ie,project:$}));this.updateErrorCheck(n,X,i,!1)}configurePlugin(n){this.projectService.configurePlugin(n)}getSmartSelectionRange(n,i){const{locations:c}=n,{file:u,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(n),h=re.checkDefined(this.projectService.getScriptInfo(u));return Vn(c,S=>{const E=this.getPosition(S,h),P=d.getSmartSelectionRange(u,E);return i?this.mapSelectionRange(P,h):P})}toggleLineComment(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfo(c),h=this.getRange(n,d),S=u.toggleLineComment(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}toggleMultilineComment(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.toggleMultilineComment(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}commentSelection(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.commentSelection(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}uncommentSelection(n,i){const{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),d=this.projectService.getScriptInfoForNormalizedPath(c),h=this.getRange(n,d),S=u.uncommentSelection(c,h);if(i){const E=this.projectService.getScriptInfoForNormalizedPath(c);return S.map(P=>this.convertTextChangeToCodeEdit(P,E))}return S}mapSelectionRange(n,i){const c={textSpan:bu(n.textSpan,i)};return n.parent&&(c.parent=this.mapSelectionRange(n.parent,i)),c}getScriptInfoFromProjectService(n){const i=te(n),c=this.projectService.getScriptInfoForNormalizedPath(i);return c||(this.projectService.logErrorForScriptInfoNotFound(i),Dt.ThrowNoProject())}toProtocolCallHierarchyItem(n){const i=this.getScriptInfoFromProjectService(n.file);return{name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,file:n.file,containerName:n.containerName,span:bu(n.span,i),selectionSpan:bu(n.selectionSpan,i)}}toProtocolCallHierarchyIncomingCall(n){const i=this.getScriptInfoFromProjectService(n.from.file);return{from:this.toProtocolCallHierarchyItem(n.from),fromSpans:n.fromSpans.map(c=>bu(c,i))}}toProtocolCallHierarchyOutgoingCall(n,i){return{to:this.toProtocolCallHierarchyItem(n.to),fromSpans:n.fromSpans.map(c=>bu(c,i))}}prepareCallHierarchy(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.projectService.getScriptInfoForNormalizedPath(i);if(u){const d=this.getPosition(n,u),h=c.getLanguageService().prepareCallHierarchy(i,d);return h&&she(h,S=>this.toProtocolCallHierarchyItem(S))}}provideCallHierarchyIncomingCalls(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(i);return c.getLanguageService().provideCallHierarchyIncomingCalls(i,this.getPosition(n,u)).map(h=>this.toProtocolCallHierarchyIncomingCall(h))}provideCallHierarchyOutgoingCalls(n){const{file:i,project:c}=this.getFileAndProject(n),u=this.getScriptInfoFromProjectService(i);return c.getLanguageService().provideCallHierarchyOutgoingCalls(i,this.getPosition(n,u)).map(h=>this.toProtocolCallHierarchyOutgoingCall(h,u))}getCanonicalFileName(n){const i=this.host.useCaseSensitiveFileNames?n:Q0(n);return hf(i)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(n){return{response:n,responseRequired:!0}}addProtocolHandler(n,i){if(this.handlers.has(n))throw new Error(`Protocol handler already exists for command "${n}"`);this.handlers.set(n,i)}setCurrentRequest(n){re.assert(this.currentRequestId===void 0),this.currentRequestId=n,this.cancellationToken.setRequest(n)}resetCurrentRequest(n){re.assert(this.currentRequestId===n),this.currentRequestId=void 0,this.cancellationToken.resetRequest(n)}executeWithRequestId(n,i){try{return this.setCurrentRequest(n),i()}finally{this.resetCurrentRequest(n)}}executeCommand(n){const i=this.handlers.get(n.command);if(i){const c=this.executeWithRequestId(n.seq,()=>i(n));return this.projectService.enableRequestedPlugins(),c}else return this.logger.msg(`Unrecognized JSON command:${qW(n)}`,"Err"),this.doOutput(void 0,"unknown",n.seq,!1,`Unrecognized JSON command: ${n.command}`),{responseRequired:!1}}onMessage(n){var i,c,u,d,h,S,E,P,k,F,$;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let J;this.logger.hasLevel(2)&&(J=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Sj(this.toStringMessage(n))}`));let X,ie;try{X=this.parseMessage(n),ie=X.arguments&&X.arguments.file?X.arguments:void 0,(i=ps)==null||i.instant(ps.Phase.Session,"request",{seq:X.seq,command:X.command}),(c=Zh)==null||c.logStartCommand(""+X.command,this.toStringMessage(n).substring(0,100)),(u=ps)==null||u.push(ps.Phase.Session,"executeCommand",{seq:X.seq,command:X.command},!0);const{response:ae,responseRequired:ve}=this.executeCommand(X);if((d=ps)==null||d.pop(),this.logger.hasLevel(2)){const we=_e(this.hrtime(J)).toFixed(4);ve?this.logger.perftrc(`${X.seq}::${X.command}: elapsed time (in milliseconds) ${we}`):this.logger.perftrc(`${X.seq}::${X.command}: async elapsed time (in milliseconds) ${we}`)}(h=Zh)==null||h.logStopCommand(""+X.command,"Success"),(S=ps)==null||S.instant(ps.Phase.Session,"response",{seq:X.seq,command:X.command,success:!!ae}),ae?this.doOutput(ae,X.command,X.seq,!0):ve&&this.doOutput(void 0,X.command,X.seq,!1,"No content available.")}catch(ae){if((E=ps)==null||E.popAll(),ae instanceof QO){(P=Zh)==null||P.logStopCommand(""+(X&&X.command),"Canceled: "+ae),(k=ps)==null||k.instant(ps.Phase.Session,"commandCanceled",{seq:X==null?void 0:X.seq,command:X==null?void 0:X.command}),this.doOutput({canceled:!0},X.command,X.seq,!0);return}this.logErrorWorker(ae,this.toStringMessage(n),ie),(F=Zh)==null||F.logStopCommand(""+(X&&X.command),"Error: "+ae),($=ps)==null||$.instant(ps.Phase.Session,"commandError",{seq:X==null?void 0:X.seq,command:X==null?void 0:X.command,message:ae.message}),this.doOutput(void 0,X?X.command:"unknown",X?X.seq:0,!1,"Error processing request. "+ae.message+` +`+ae.stack)}}parseMessage(n){return JSON.parse(n)}toStringMessage(n){return n}getFormatOptions(n){return this.projectService.getFormatCodeOptions(n)}getPreferences(n){return this.projectService.getPreferences(n)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),yy,ub,E0,P2,MA,aw,DI,Me,jn,Mi,js=G({"src/server/scriptVersionCache.ts"(){l_(),$l(),yy=4,ub=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ub||{}),E0=class{constructor(){this.goSubtree=!0,this.lineIndex=new Me,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new jn,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,n){n&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const c=Me.linesFromText(e).lines;c.length>1&&c[c.length-1]===""&&c.pop();let u,d;for(let S=this.endBranch.length-1;S>=0;S--)this.endBranch[S].updateCounts(),this.endBranch[S].charCount()===0&&(d=this.endBranch[S],S>0?u=this.endBranch[S-1]:u=this.branchNode);d&&u.remove(d);const h=this.startPath[this.startPath.length-1];if(c.length>0)if(h.text=c[0],c.length>1){let S=new Array(c.length-1),E=h;for(let F=1;F=0;){const F=this.startPath[P];S=F.insertAt(E,S),P--,E=F}let k=S.length;for(;k>0;){const F=new jn;F.add(this.lineIndex.root),S=F.insertAt(this.lineIndex.root,S),k=S.length,this.lineIndex.root=F}this.lineIndex.root.updateCounts()}else for(let S=this.startPath.length-2;S>=0;S--)this.startPath[S].updateCounts();else{this.startPath[this.startPath.length-2].remove(h);for(let E=this.startPath.length-2;E>=0;E--)this.startPath[E].updateCounts()}return this.lineIndex}post(e,n,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,n,i,c,u){const d=this.stack[this.stack.length-1];this.state===2&&u===1&&(this.state=1,this.branchNode=d,this.lineCollectionAtBranch=i);let h;function S(E){return E.isLeaf()?new Mi(""):new jn}switch(u){case 0:this.goSubtree=!1,this.state!==4&&d.add(i);break;case 1:this.state===4?this.goSubtree=!1:(h=S(i),d.add(h),this.startPath.push(h));break;case 2:this.state!==4?(h=S(i),d.add(h),this.startPath.push(h)):i.isLeaf()||(h=S(i),d.add(h),this.endBranch.push(h));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(h=S(i),d.add(h),this.endBranch.push(h));break;case 5:this.goSubtree=!1,this.state!==1&&d.add(i);break}this.goSubtree&&this.stack.push(h)}leaf(e,n,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+n)):this.trailingText=i.text.substring(e+n)}},P2=class{constructor(e,n,i){this.pos=e,this.deleteLen=n,this.insertedText=i}getTextChangeRange(){return WX(p1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},MA=class HK{constructor(){this.changes=[],this.versions=new Array(HK.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(nthis.currentVersion))return n%HK.maxVersions}currentVersionToIndex(){return this.currentVersion%HK.maxVersions}edit(n,i,c){this.changes.push(new P2(n,i,c)),(this.changes.length>HK.changeNumberThreshold||i>HK.changeLengthThreshold||c&&c.length>HK.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=n.index;for(const c of this.changes)i=i.edit(c.pos,c.deleteLen,c.insertedText);n=new DI(this.currentVersion+1,this,i,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=HK.maxVersions&&(this.minVersion=this.currentVersion-HK.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(n){return this._getSnapshot().index.lineNumberToInfo(n)}lineOffsetToPosition(n,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(n)+(i-1)}positionToLineOffset(n){return this._getSnapshot().index.positionToLineOffset(n)}lineToTextSpan(n){const i=this._getSnapshot().index,{lineText:c,absolutePosition:u}=i.lineNumberToInfo(n+1),d=c!==void 0?c.length:i.absolutePositionOfStartOfLine(n+2)-u;return p1(u,d)}getTextChangesBetweenVersions(n,i){if(n=this.minVersion){const c=[];for(let u=n+1;u<=i;u++){const d=this.versions[this.versionToIndex(u)];for(const h of d.changesSincePreviousVersion)c.push(h.getTextChangeRange())}return nb(c)}else return;else return OL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){const i=new HK,c=new DI(0,i,new Me);i.versions[i.currentVersion]=c;const u=Me.linesFromText(n);return c.index.load(u.lines),i}},MA.changeNumberThreshold=8,MA.changeLengthThreshold=256,MA.maxVersions=8,aw=MA,DI=class qDt{constructor(n,i,c,u=ke){this.version=n,this.cache=i,this.index=c,this.changesSincePreviousVersion=u}getText(n,i){return this.index.getText(n,i-n)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof qDt&&this.cache===n.cache)return this.version<=n.version?OL:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},Me=class E1t{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(n){return this.lineNumberToInfo(n).absolutePosition}positionToLineOffset(n){const{oneBasedLine:i,zeroBasedColumn:c}=this.root.charOffsetToLineInfo(1,n);return{line:i,offset:c+1}}positionToColumnAndLineText(n){return this.root.charOffsetToLineInfo(1,n)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(n){const i=this.getLineCount();if(n<=i){const{position:c,leaf:u}=this.root.lineNumberToInfo(n,0);return{absolutePosition:c,lineText:u&&u.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){const i=[];for(let c=0;c0&&n{c=c.concat(h.text.substring(u,u+d))}}),c}getLength(){return this.root.charCount()}every(n,i,c){c||(c=this.root.charCount());const u={goSubtree:!0,done:!1,leaf(d,h,S){n(S,d,h)||(this.done=!0)}};return this.walk(i,c-i,u),!u.done}edit(n,i,c){if(this.root.charCount()===0)return re.assert(i===0),c!==void 0?(this.load(E1t.linesFromText(c).lines),this):void 0;{let u;if(this.checkEdits){const S=this.getText(0,this.root.charCount());u=S.slice(0,n)+c+S.slice(n+i)}const d=new E0;let h=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;const S=this.getText(n,1);c?c=S+c:c=S,i=0,h=!0}else if(i>0){const S=n+i,{zeroBasedColumn:E,lineText:P}=this.positionToColumnAndLineText(S);E===0&&(i+=P.length,c=c?c+P:P)}if(this.root.walk(n,i,d),d.insertLines(c,h),this.checkEdits){const S=d.lineIndex.getText(0,d.lineIndex.getLength());re.assert(u===S,"buffer edit mismatch")}return d.lineIndex}}static buildTreeFromBottom(n){if(n.length0?c[u]=d:c.pop(),{lines:c,lineMap:i}}},jn=class x1t{constructor(n=[]){this.children=n,this.totalChars=0,this.totalLines=0,n.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const n of this.children)this.totalChars+=n.charCount(),this.totalLines+=n.lineCount()}execWalk(n,i,c,u,d){return c.pre&&c.pre(n,i,this.children[u],this,d),c.goSubtree?(this.children[u].walk(n,i,c),c.post&&c.post(n,i,this.children[u],this,d)):c.goSubtree=!0,c.done}skipChild(n,i,c,u,d){u.pre&&!u.done&&(u.pre(n,i,this.children[c],this,d),u.goSubtree=!0)}walk(n,i,c){let u=0,d=this.children[u].charCount(),h=n;for(;h>=d;)this.skipChild(h,i,u,c,0),h-=d,u++,d=this.children[u].charCount();if(h+i<=d){if(this.execWalk(h,i,c,u,2))return}else{if(this.execWalk(h,d-h,c,u,1))return;let S=i-(d-h);for(u++,d=this.children[u].charCount();S>d;){if(this.execWalk(0,d,c,u,3))return;S-=d,u++,d=this.children[u].charCount()}if(S>0&&this.execWalk(0,S,c,u,4))return}if(c.pre){const S=this.children.length;if(ui)return d.isLeaf()?{oneBasedLine:n,zeroBasedColumn:i,lineText:d.text}:d.charOffsetToLineInfo(n,i);i-=d.charCount(),n+=d.lineCount()}const c=this.lineCount();if(c===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const u=re.checkDefined(this.lineNumberToInfo(c,0).leaf);return{oneBasedLine:c,zeroBasedColumn:u.charCount(),lineText:void 0}}lineNumberToInfo(n,i){for(const c of this.children){const u=c.lineCount();if(u>=n)return c.isLeaf()?{position:i,leaf:c}:c.lineNumberToInfo(n,i);n-=u,i+=c.charCount()}return{position:i,leaf:void 0}}splitAfter(n){let i;const c=this.children.length;n++;const u=n;if(n=0;$--)E[$].children.length===0&&E.pop()}h&&E.push(h),this.updateCounts();for(let k=0;kdZ,ActionPackageInstalled:()=>T8e,ActionSet:()=>_Z,ActionWatchTypingLocations:()=>Ise,Arguments:()=>Cge,AutoImportProviderProject:()=>gn,AuxiliaryProject:()=>xt,CharRangeSection:()=>ub,CloseFileWatcherEvent:()=>Yu,CommandNames:()=>N_,ConfigFileDiagEvent:()=>Kd,ConfiguredProject:()=>qr,CreateDirectoryWatcherEvent:()=>m_,CreateFileWatcherEvent:()=>zv,Errors:()=>Dt,EventBeginInstallTypes:()=>dAe,EventEndInstallTypes:()=>pAe,EventInitializationFailed:()=>S8e,EventTypesRegistry:()=>EF,ExternalProject:()=>mt,GcTimer:()=>lt,InferredProject:()=>_o,LargeFileReferencedEvent:()=>c_,LineIndex:()=>Me,LineLeaf:()=>Mi,LineNode:()=>jn,LogLevel:()=>ht,Msg:()=>_t,OpenFileInfoTelemetryEvent:()=>jg,Project:()=>Ir,ProjectInfoTelemetryEvent:()=>Oh,ProjectKind:()=>li,ProjectLanguageServiceStateEvent:()=>iy,ProjectLoadingFinishEvent:()=>U0,ProjectLoadingStartEvent:()=>Ma,ProjectReferenceProjectLoadKind:()=>nm,ProjectService:()=>gy,ProjectsUpdatedInBackgroundEvent:()=>q_,ScriptInfo:()=>ro,ScriptVersionCache:()=>aw,Session:()=>Gv,TextStorage:()=>ha,ThrottledOperations:()=>ut,TypingsCache:()=>mc,allFilesAreJsOrDts:()=>jc,allRootFilesAreJsOrDts:()=>$a,asNormalizedPath:()=>de,convertCompilerOptions:()=>Qr,convertFormatOptions:()=>oi,convertScriptKindName:()=>xu,convertTypeAcquisition:()=>es,convertUserPreferences:()=>We,convertWatchOptions:()=>co,countEachFileTypes:()=>Fi,createInstallTypingsRequest:()=>ee,createModuleSpecifierCache:()=>GT,createNormalizedPathMap:()=>ue,createPackageJsonCache:()=>oh,createSortedArray:()=>Le,emptyArray:()=>ke,findArgument:()=>fAe,forEachResolvedProjectReferenceProject:()=>Zt,formatDiagnosticToProtocol:()=>ka,formatMessage:()=>gu,getBaseConfigFileName:()=>it,getLocationInNewDocument:()=>Si,hasArgument:()=>b8e,hasNoTypeScriptSource:()=>Xu,indent:()=>Sj,isBackgroundProject:()=>Jr,isConfigFile:()=>fp,isConfiguredProject:()=>vc,isDynamicFileName:()=>so,isExternalProject:()=>er,isInferredProject:()=>sl,isInferredProjectName:()=>Ne,makeAutoImportProviderProjectName:()=>Ve,makeAuxiliaryProjectName:()=>pt,makeInferredProjectName:()=>Be,maxFileSize:()=>x_,maxProgramSizeForNonTsFiles:()=>mu,normalizedPathToPath:()=>oe,nowString:()=>_Ae,nullCancellationToken:()=>du,nullTypingsInstaller:()=>Rr,projectContainsInfoDirectly:()=>Ca,protocol:()=>Gn,removeSorted:()=>Ye,stringifyIndented:()=>qW,toEvent:()=>yu,toNormalizedPath:()=>te,tryConvertScriptKindName:()=>Ui,typingsInstaller:()=>I,updateProjectIfDirty:()=>Qa});var $l=G({"src/server/_namespaces/ts.server.ts"(){kse(),O(),V(),Ft(),zt(),Ur(),Gs(),Ea(),_r(),fS(),vE(),hy(),jv(),js()}}),y_={};Oe(y_,{ANONYMOUS:()=>bce,AccessFlags:()=>ure,AssertionLevel:()=>AT,AssignmentDeclarationKind:()=>yre,AssignmentKind:()=>boe,Associativity:()=>Ude,BreakpointResolver:()=>TDe,BuilderFileEmit:()=>Pxe,BuilderProgramKind:()=>Nxe,BuilderState:()=>cD,BundleFileSectionKind:()=>DX,CallHierarchy:()=>Jj,CharacterCodes:()=>Cre,CheckFlags:()=>are,CheckMode:()=>_E,ClassificationType:()=>Bse,ClassificationTypeNames:()=>SAe,CommentDirectiveType:()=>_X,Comparison:()=>sn,CompletionInfoFlags:()=>G$,CompletionTriggerKind:()=>Rse,Completions:()=>ow,ContainerFlags:()=>kQ,ContextFlags:()=>hX,Debug:()=>re,DiagnosticCategory:()=>Nz,Diagnostics:()=>N,DocumentHighlights:()=>yhe,ElementFlags:()=>lre,EmitFlags:()=>AX,EmitHint:()=>Pre,EmitOnly:()=>mX,EndOfLineState:()=>gZ,EnumKind:()=>ore,ExitStatus:()=>AU,ExportKind:()=>HAe,Extension:()=>Dre,ExternalEmitHelpers:()=>kre,FileIncludeKind:()=>dX,FilePreprocessingDiagnosticsKind:()=>pX,FileSystemEntryKind:()=>aP,FileWatcherEventKind:()=>xTe,FindAllReferences:()=>Wf,FlattenLevel:()=>vme,FlowFlags:()=>kz,ForegroundColorEscapeSequences:()=>Kme,FunctionFlags:()=>Vde,GeneratedIdentifierFlags:()=>W_e,GetLiteralTextFlags:()=>jde,GoToDefinition:()=>C4,HighlightSpanKind:()=>Lse,IdentifierNameMap:()=>uj,IdentifierNameMultiMap:()=>Rae,ImportKind:()=>UAe,ImportsNotUsedAsValues:()=>n9,IndentStyle:()=>Ose,IndexFlags:()=>fre,IndexKind:()=>dre,InferenceFlags:()=>gre,InferencePriority:()=>mre,InlayHintKind:()=>Mse,InlayHints:()=>vke,InternalEmitFlags:()=>Ire,InternalSymbolName:()=>sre,InvalidatedProjectKind:()=>uAe,JSDocParsingMode:()=>Rre,JsDoc:()=>nO,JsTyping:()=>kk,JsxEmit:()=>DU,JsxFlags:()=>F_e,JsxReferenceKind:()=>_re,LanguageServiceMode:()=>z$,LanguageVariant:()=>Are,LexicalEnvironmentFlags:()=>CX,ListFormat:()=>IX,LogLevel:()=>O_e,MemberOverrideStatus:()=>Yne,ModifierFlags:()=>Iz,ModuleDetectionKind:()=>vre,ModuleInstanceState:()=>M2e,ModuleKind:()=>wz,ModuleResolutionKind:()=>t9,ModuleSpecifierEnding:()=>_Ee,NavigateTo:()=>hCe,NavigationBar:()=>T3e,NewLineKind:()=>Ere,NodeBuilderFlags:()=>Qne,NodeCheckFlags:()=>cre,NodeFactoryFlags:()=>Ioe,NodeFlags:()=>tu,NodeResolutionFeatures:()=>mae,ObjectFlags:()=>bX,OperationCanceledException:()=>QO,OperatorPrecedence:()=>Hde,OrganizeImports:()=>lD,OrganizeImportsMode:()=>wse,OuterExpressionKinds:()=>Nre,OutliningElementsCollector:()=>Pke,OutliningSpanKind:()=>z3,OutputFileType:()=>yAe,PackageJsonAutoImportPreference:()=>wge,PackageJsonDependencyGroup:()=>Pse,PatternMatchKind:()=>tee,PollingInterval:()=>Ore,PollingWatchKind:()=>Sre,PragmaKindFlags:()=>wre,PrivateIdentifierKind:()=>LY,ProcessLevel:()=>Ame,ProgramUpdateLevel:()=>Ume,QuotePreference:()=>fhe,RelationComparisonResult:()=>Xne,Rename:()=>v0e,ScriptElementKind:()=>bAe,ScriptElementKindModifier:()=>TAe,ScriptKind:()=>EX,ScriptSnapshot:()=>mZ,ScriptTarget:()=>xre,SemanticClassificationFormat:()=>Nse,SemanticMeaning:()=>vce,SemicolonPreference:()=>Fse,SignatureCheckMode:()=>y$,SignatureFlags:()=>CU,SignatureHelp:()=>gue,SignatureKind:()=>SX,SmartSelectionRange:()=>Mke,SnippetKind:()=>IU,SortKind:()=>kM,StructureIsReused:()=>gX,SymbolAccessibility:()=>tre,SymbolDisplay:()=>W6,SymbolDisplayPartKind:()=>Wse,SymbolFlags:()=>yX,SymbolFormatFlags:()=>ere,SyntaxKind:()=>NM,SyntheticSymbolKind:()=>nre,Ternary:()=>hre,ThrottledCancellationToken:()=>gye,TokenClass:()=>vAe,TokenFlags:()=>fX,TransformFlags:()=>xX,TypeFacts:()=>oj,TypeFlags:()=>vX,TypeFormatFlags:()=>Zne,TypeMapKind:()=>pre,TypePredicateKind:()=>rre,TypeReferenceSerializationKind:()=>ire,UnionReduction:()=>Pz,UpToDateStatusType:()=>yge,VarianceFlags:()=>TX,Version:()=>ZT,VersionRange:()=>yN,WatchDirectoryFlags:()=>Rz,WatchDirectoryKind:()=>Tre,WatchFileKind:()=>bre,WatchLogLevel:()=>Hme,WatchType:()=>r0,accessPrivateIdentifier:()=>yme,addDisposableResourceHelper:()=>kG,addEmitFlags:()=>cE,addEmitHelper:()=>v3,addEmitHelpers:()=>$N,addInternalEmitFlags:()=>CG,addNodeFactoryPatcher:()=>oUe,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>sW,addSyntheticTrailingComment:()=>koe,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>NG,affectsDeclarationPathOptionDeclarations:()=>iae,affectsEmitOptionDeclarations:()=>rae,allKeysStartWithDot:()=>xQ,altDirectorySeparator:()=>r7,and:()=>mU,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>vz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>bz,arraysEqual:()=>sf,assertType:()=>gN,assign:()=>AS,assignHelper:()=>dJ,asyncDelegator:()=>mJ,asyncGeneratorHelper:()=>pJ,asyncSuperHelper:()=>nS,asyncValues:()=>gJ,attachFileToDiagnostics:()=>jN,awaitHelper:()=>T3,awaiterHelper:()=>yJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>w3,breakIntoCharacterSpans:()=>Q8e,breakIntoWordSpans:()=>iCe,buildLinkParts:()=>wAe,buildOpts:()=>XG,buildOverload:()=>O0e,bundlerModuleNameResolver:()=>ELe,canBeConvertedToAsync:()=>pCe,canHaveDecorators:()=>S6,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>J8,canHaveIllegalDecorators:()=>Spe,canHaveIllegalModifiers:()=>GEe,canHaveIllegalType:()=>L6e,canHaveIllegalTypeParameters:()=>zEe,canHaveJSDoc:()=>T2,canHaveLocals:()=>XD,canHaveModifiers:()=>DA,canHaveSymbol:()=>ck,canJsonReportNoInputFiles:()=>e$,canProduceDiagnostics:()=>Fae,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Oxe,canWatchAtTypes:()=>Mxe,canWatchDirectoryOrFile:()=>rZ,cartesianProduct:()=>mTe,cast:()=>uc,chainBundle:()=>_C,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>Vre,changeCompilerHostLikeToUseCache:()=>NR,changeExtension:()=>SA,changesAffectModuleResolution:()=>Td,changesAffectingProgramStructure:()=>zMe,childIsDecorated:()=>b7,classElementOrClassElementParameterIsDecorated:()=>xde,classHasClassThisAssignment:()=>bme,classHasDeclaredOrExplicitlyAssignedName:()=>Y2e,classHasExplicitlyAssignedName:()=>Sme,classOrConstructorParameterIsDecorated:()=>yP,classPrivateFieldGetHelper:()=>IJ,classPrivateFieldInHelper:()=>Noe,classPrivateFieldSetHelper:()=>kJ,classicNameResolver:()=>C6,classifier:()=>kOe,cleanExtendedConfigCache:()=>Gme,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>VQ,climbPastPropertyAccess:()=>TZ,climbPastPropertyOrElementAccess:()=>Lge,clone:()=>S8,cloneCompilerOptions:()=>PZ,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>YE,codefix:()=>fT,collapseTextChangeRangesAcrossMultipleVersions:()=>nb,collectExternalModuleInfo:()=>sj,combine:()=>FD,combinePaths:()=>vl,commentPragmas:()=>kU,commonOptionsWithBuild:()=>o$,commonPackageFolders:()=>Soe,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>cJ,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>Rv,comparePathsCaseInsensitive:()=>n7,comparePathsCaseSensitive:()=>_h,comparePatternKeys:()=>I2e,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>KG,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>dQ,compilerOptionsIndicateEsModules:()=>OZ,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>JQ,computeLineAndCharacterOfPosition:()=>Nd,computeLineOfPosition:()=>TN,computeLineStarts:()=>RM,computePositionOfLineAndCharacter:()=>H_e,computeSignature:()=>TF,computeSignatureWithDiagnostics:()=>nge,computeSuggestionDiagnostics:()=>Ice,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>cq,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>nx,containsParseError:()=>$z,containsPath:()=>OE,convertCompilerOptionsForTelemetry:()=>n$,convertCompilerOptionsFromJson:()=>lLe,convertJsonOption:()=>x6,convertToBase64:()=>bSe,convertToJson:()=>Xoe,convertToObject:()=>Rpe,convertToOptionsWithAbsolutePaths:()=>$G,convertToRelativePath:()=>PX,convertToTSConfig:()=>a2e,convertTypeAcquisitionFromJson:()=>UUe,copyComments:()=>nB,copyEntries:()=>oie,copyLeadingComments:()=>rB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>PF,copyTrailingComments:()=>Rj,couldStartTrivia:()=>HD,countWhere:()=>dp,createAbstractBuilder:()=>J4e,createAccessorPropertyBackingField:()=>qJ,createAccessorPropertyGetRedirector:()=>JEe,createAccessorPropertySetRedirector:()=>QY,createBaseNodeFactory:()=>Yde,createBinaryExpressionTrampoline:()=>zG,createBindingHelper:()=>q7,createBuildInfo:()=>Hae,createBuilderProgram:()=>rge,createBuilderProgramUsingProgramBuildInfo:()=>U4e,createBuilderStatusReporter:()=>QE,createCacheWithRedirects:()=>aae,createCacheableExportInfoMap:()=>jAe,createCachedDirectoryStructureHost:()=>Jae,createClassNamedEvaluationHelperBlock:()=>WW,createClassThisAssignmentBlock:()=>T$,createClassifier:()=>B8e,createCommentDirectivesMap:()=>YTe,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Ipe,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>M4e,createCompilerHostFromProgramHost:()=>Hxe,createCompilerHostWorker:()=>$me,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>UL,createDiagnosticForFileFromMessageChain:()=>oE,createDiagnosticForNode:()=>Bs,createDiagnosticForNodeArray:()=>Yz,createDiagnosticForNodeArrayFromMessageChain:()=>b9,createDiagnosticForNodeFromMessageChain:()=>wN,createDiagnosticForNodeInSourceFile:()=>Ud,createDiagnosticForRange:()=>Qz,createDiagnosticMessageChainFromDiagnostic:()=>kc,createDiagnosticReporter:()=>w$,createDocumentPositionMapper:()=>QLe,createDocumentRegistry:()=>U8e,createDocumentRegistryInternal:()=>Ace,createEmitAndSemanticDiagnosticsBuilderProgram:()=>cge,createEmitHelperFactory:()=>ipe,createEmptyExports:()=>Boe,createExpressionForJsxElement:()=>hpe,createExpressionForJsxFragment:()=>P6e,createExpressionForObjectLiteralElementLike:()=>LEe,createExpressionForPropertyName:()=>ype,createExpressionFromEntityName:()=>zoe,createExternalHelpersImportDeclarationIfNeeded:()=>UJ,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>g7,createForOfBindingStatement:()=>wEe,createGetCanonicalFileName:()=>H1,createGetSourceFile:()=>gxe,createGetSymbolAccessibilityDiagnosticForNode:()=>QN,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wme,createGetSymbolWalker:()=>LLe,createIncrementalCompilerHost:()=>qxe,createIncrementalProgram:()=>gge,createInputFiles:()=>sUe,createInputFilesWithFilePaths:()=>tc,createInputFilesWithFileTexts:()=>gEe,createJsxFactoryExpression:()=>NEe,createLanguageService:()=>_ye,createLanguageServiceSourceFile:()=>xq,createMemberAccessForPropertyName:()=>sF,createModeAwareCache:()=>IR,createModeAwareCacheKey:()=>_$,createModuleNotFoundChain:()=>KU,createModuleResolutionCache:()=>a4,createModuleResolutionLoader:()=>I$,createModuleResolutionLoaderUsingGlobalCache:()=>oZ,createModuleSpecifierResolutionHost:()=>y4,createMultiMap:()=>zg,createNodeConverters:()=>y6e,createNodeFactory:()=>xG,createOptionNameMap:()=>Joe,createOverload:()=>sPe,createPackageJsonImportFilter:()=>Lj,createPackageJsonInfo:()=>ihe,createParenthesizerRules:()=>dEe,createPatternMatcher:()=>H8e,createPrependNodes:()=>ise,createPrinter:()=>F3,createPrinterWithDefaults:()=>Bme,createPrinterWithRemoveComments:()=>_4,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zme,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>C$,createProgram:()=>YQ,createProgramHost:()=>SF,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>fse,createResolutionCache:()=>Wxe,createRuntimeTypeSerializer:()=>_4e,createScanner:()=>CS,createSemanticDiagnosticsBuilderProgram:()=>wxe,createSet:()=>J5,createSolutionBuilder:()=>F$,createSolutionBuilderHost:()=>n8e,createSolutionBuilderWithWatch:()=>r8e,createSolutionBuilderWithWatchHost:()=>vJe,createSortedArray:()=>g2,createSourceFile:()=>eQ,createSourceMapGenerator:()=>_me,createSourceMapSource:()=>cUe,createSuperAccessVariableStatement:()=>Cme,createSymbolTable:()=>zd,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>ETe,createTextChange:()=>LZ,createTextChangeFromStartLength:()=>Cj,createTextChangeRange:()=>WX,createTextRangeFromNode:()=>RZ,createTextRangeFromSpan:()=>MZ,createTextSpan:()=>p1,createTextSpanFromBounds:()=>Yy,createTextSpanFromNode:()=>sT,createTextSpanFromRange:()=>PP,createTextSpanFromStringLiteralLikeContent:()=>CF,createTextWriter:()=>Nie,createTokenRange:()=>Hie,createTypeChecker:()=>oT,createTypeReferenceDirectiveResolutionCache:()=>sae,createTypeReferenceResolutionLoader:()=>Yae,createUnparsedSourceFile:()=>mEe,createWatchCompilerHost:()=>Ese,createWatchCompilerHostOfConfigFile:()=>Z4e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sse,createWatchFactory:()=>dge,createWatchHost:()=>_ge,createWatchProgram:()=>hj,createWatchStatusReporter:()=>Gxe,createWriteFileMeasuringIO:()=>$ae,declarationNameToString:()=>hm,decodeMappings:()=>dme,decodedTextSpanIntersectsWith:()=>FX,decorateHelper:()=>lJ,deduplicate:()=>th,defaultIncludeSpec:()=>Dk,defaultInitCompilerOptions:()=>_Q,defaultMaximumTruncationLength:()=>j7,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>YO,diagnosticToString:()=>$3,directoryProbablyExists:()=>O0,directorySeparator:()=>qp,displayPart:()=>yE,displayPartsToString:()=>ule,disposeEmitNodes:()=>cI,disposeResourcesHelper:()=>PG,documentSpansEqual:()=>$h,dumpTracingLegend:()=>e9,elementAt:()=>Zn,elideNodes:()=>t4,emitComments:()=>ZMe,emitDetachedComments:()=>mSe,emitFiles:()=>Uae,emitFilesAndReportErrors:()=>bse,emitFilesAndReportErrorsAndGetExitStatus:()=>Uxe,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>Wie,emitNewLineBeforeLeadingComments:()=>pSe,emitNewLineBeforeLeadingCommentsOfPosition:()=>bA,emitSkippedWithNoDiagnostics:()=>Yme,emitUsingBuildInfo:()=>D4e,emptyArray:()=>Yn,emptyFileSystemEntries:()=>Xde,emptyMap:()=>ME,emptyOptions:()=>lx,emptySet:()=>uMe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>Fd,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Su,entityNameToString:()=>iE,enumerateInsertsAndDeletes:()=>zD,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>b3,escapeJsxAttributeString:()=>M7,escapeLeadingUnderscores:()=>ey,escapeNonAsciiString:()=>SH,escapeSnippetText:()=>nD,escapeString:()=>Q8,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>JY,explainFiles:()=>hse,explainIfFileIsRedirectAndImpliedFormat:()=>yse,exportAssignmentIsAlias:()=>K8,exportStarHelper:()=>DJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>vJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>EG,externalHelpersModuleNameText:()=>HN,factory:()=>he,fileExtensionIs:()=>mm,fileExtensionIsOneOf:()=>pv,fileIncludeReasonToDiagnostics:()=>cZ,fileShouldUseJavaScriptRequire:()=>BAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>rse,find:()=>lr,findAncestor:()=>Ua,findBestPatternMatch:()=>AL,findChildOfKind:()=>qm,findComputedPropertyNameCacheAssignment:()=>KJ,findConfigFile:()=>Jme,findContainingList:()=>$se,findDiagnosticForNode:()=>ahe,findFirstNonJsxWhitespaceToken:()=>Gge,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>Hse,findMap:()=>cs,findModifier:()=>QW,findNextToken:()=>N6,findPackageJson:()=>aB,findPackageJsons:()=>nhe,findPrecedingMatchingToken:()=>q$,findPrecedingToken:()=>bv,findSuperStatementIndexPath:()=>mme,findTokenOnLeftOfPosition:()=>Xse,findUseStrictPrologue:()=>qY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>XZ,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>gCe,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>vr,flattenDestructuringAssignment:()=>yI,flattenDestructuringBinding:()=>pF,flattenDiagnosticMessageText:()=>D2,forEach:()=>Ot,forEachAncestor:()=>qTe,forEachAncestorDirectory:()=>jC,forEachChild:()=>s_,forEachChildRecursively:()=>cF,forEachEmittedFile:()=>zQ,forEachEnclosingBlockScopeContainer:()=>hde,forEachEntry:()=>Jb,forEachExternalModuleToImportFrom:()=>VAe,forEachImportClauseDeclaration:()=>aG,forEachKey:()=>gA,forEachLeadingCommentRange:()=>ep,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>Zz,forEachResolvedProjectReference:()=>k6,forEachReturnStatement:()=>dR,forEachRight:()=>bo,forEachTrailingCommentRange:()=>k8,forEachTsConfigPropArray:()=>q2,forEachUnique:()=>hE,forEachYieldExpression:()=>hie,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>wR,formatDiagnostic:()=>qme,formatDiagnostics:()=>hxe,formatDiagnosticsWithColorAndContext:()=>kA,formatGeneratedName:()=>D3,formatGeneratedNamePart:()=>GG,formatLocation:()=>qae,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>V0,fullTripleSlashAMDReferencePathRegEx:()=>voe,fullTripleSlashReferencePathRegEx:()=>yoe,generateDjb2Hash:()=>Mz,generateTSConfig:()=>c2e,generatorHelper:()=>DG,getAdjustedReferenceLocation:()=>zge,getAdjustedRenameLocation:()=>DZ,getAliasDeclarationFromName:()=>vP,getAllAccessorDeclarations:()=>oI,getAllDecoratorsOfClass:()=>gme,getAllDecoratorsOfClassElement:()=>wae,getAllJSDocTags:()=>WU,getAllJSDocTagsOfKind:()=>jX,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Vae,getAllSuperTypeNodes:()=>lG,getAllUnscopedEmitHelpers:()=>MY,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>oC,getAnyExtensionFromPath:()=>t7,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>I9,getAssignedName:()=>FU,getAssignedNameOfIdentifier:()=>pj,getAssignmentDeclarationKind:()=>jy,getAssignmentDeclarationPropertyAccessKind:()=>XM,getAssignmentTargetKind:()=>q8,getAutomaticTypeDirectiveNames:()=>Qpe,getBaseFileName:()=>Jg,getBinaryOperatorPrecedence:()=>bH,getBuildInfo:()=>Fme,getBuildInfoFileVersionMap:()=>kxe,getBuildInfoText:()=>f4,getBuildOrderFromAnyBuildOrder:()=>vge,getBuilderCreationParameters:()=>nZ,getBuilderFileEmit:()=>P6,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>gR,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Eb,getCombinedNodeFlags:()=>rR,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>K_e,getCommentRange:()=>MS,getCommonSourceDirectory:()=>zW,getCommonSourceDirectoryOfConfig:()=>hF,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>FUe,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>p4,getConstantValue:()=>JN,getContainerFlags:()=>R2e,getContainerNode:()=>RR,getContainingClass:()=>$b,getContainingClassExcludingClassDecorators:()=>A9,getContainingClassStaticBlock:()=>tG,getContainingFunction:()=>zE,getContainingFunctionDeclaration:()=>oSe,getContainingFunctionOrClassStaticBlock:()=>vie,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>Aee,getContextualTypeFromParent:()=>aq,getContextualTypeFromParentOrAncestorTypeNode:()=>bf,getCurrentTime:()=>xse,getDeclarationDiagnostics:()=>T4e,getDeclarationEmitExtensionForPath:()=>TY,getDeclarationEmitOutputFilePath:()=>Rie,getDeclarationEmitOutputFilePathWorker:()=>Mie,getDeclarationFromName:()=>cG,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Rh,getDeclarationsOfKind:()=>ude,getDeclaredExpandoInitializer:()=>pR,getDecorators:()=>OM,getDefaultCompilerOptions:()=>lye,getDefaultExportInfoWorker:()=>phe,getDefaultFormatCodeSettings:()=>pZ,getDefaultLibFileName:()=>$D,getDefaultLibFilePath:()=>pDe,getDefaultLikeExportInfo:()=>dhe,getDiagnosticText:()=>qoe,getDiagnosticsWithinSpan:()=>OAe,getDirectoryPath:()=>ws,getDirectoryToWatchFailedLookupLocation:()=>Fxe,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>X4e,getDocumentPositionMapper:()=>sCe,getESModuleInterop:()=>b1,getEditsForFileRename:()=>QAe,getEffectiveBaseTypeNode:()=>YC,getEffectiveConstraintOfTypeParameter:()=>a9,getEffectiveContainerForJSDocTemplateTag:()=>Iie,getEffectiveImplementsTypeNodes:()=>ZM,getEffectiveInitializer:()=>sH,getEffectiveJSDocHost:()=>YM,getEffectiveModifierFlags:()=>Cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Fx,getEffectiveModifierFlagsNoCache:()=>n6,getEffectiveReturnTypeNode:()=>kS,getEffectiveSetAccessorTypeAnnotationNode:()=>Kb,getEffectiveTypeAnnotationNode:()=>Zy,getEffectiveTypeParameterDeclarations:()=>Hb,getEffectiveTypeRoots:()=>QG,getElementOrPropertyAccessArgumentExpressionOrName:()=>lH,getElementOrPropertyAccessName:()=>eI,getElementsOfBindingOrAssignmentPattern:()=>BG,getEmitDeclarations:()=>gv,getEmitFlags:()=>wd,getEmitHelpers:()=>NY,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>QD,getEnclosingContainer:()=>gie,getEncodedSemanticClassifications:()=>$Ae,getEncodedSyntacticClassifications:()=>qAe,getEndLinePosition:()=>cie,getEntityNameFromTypeNode:()=>cY,getEntrypointsFromPackageJsonInfo:()=>s4,getErrorCountForSummary:()=>pse,getErrorSpanForNode:()=>BL,getErrorSummaryText:()=>uge,getEscapedTextOfIdentifierOrLiteral:()=>nI,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>KM,getExportAssignmentExpression:()=>Pde,getExportInfoMap:()=>Sce,getExportNeedsImportStarHelper:()=>aj,getExpressionAssociativity:()=>Y8,getExpressionPrecedence:()=>_G,getExternalHelpersModuleName:()=>e4,getExternalModuleImportEqualsDeclarationExpression:()=>iG,getExternalModuleName:()=>w9,getExternalModuleNameFromDeclaration:()=>Rde,getExternalModuleNameFromPath:()=>xH,getExternalModuleNameLiteral:()=>oD,getExternalModuleRequireArgument:()=>Sie,getFallbackOptions:()=>UQ,getFileEmitOutput:()=>O4e,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>t$,getFileWatcherEventKind:()=>j_e,getFilesInErrorForSummary:()=>aZ,getFirstConstructorWithBody:()=>sC,getFirstIdentifier:()=>PS,getFirstNonSpaceCharacterPosition:()=>kF,getFirstProjectOutput:()=>dxe,getFixableErrorSpanExpression:()=>FAe,getFormatCodeSettingsForWriting:()=>uq,getFullWidth:()=>FL,getFunctionFlags:()=>ob,getHeritageClause:()=>hA,getHostSignatureFromJSDoc:()=>LN,getIdentifierAutoGenerate:()=>uUe,getIdentifierGeneratedImportReference:()=>bEe,getIdentifierTypeArguments:()=>J7,getImmediatelyInvokedFunctionExpression:()=>v7,getImpliedNodeFormatForFile:()=>Zae,getImpliedNodeFormatForFileWorker:()=>ese,getImportNeedsImportDefaultHelper:()=>aD,getImportNeedsImportStarHelper:()=>D6,getIndentSize:()=>HE,getIndentString:()=>bY,getInferredLibraryNameResolveFrom:()=>VW,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>_Y,getInitializerOfBindingOrAssignmentElement:()=>XY,getInterfaceBaseTypeNodes:()=>gH,getInternalEmitFlags:()=>HC,getInvokedExpression:()=>nG,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>LTe,getJSDocClassTag:()=>Q_e,getJSDocCommentRanges:()=>S9,getJSDocCommentsAndTags:()=>fH,getJSDocDeprecatedTag:()=>GTe,getJSDocDeprecatedTagNoCache:()=>jTe,getJSDocEnumTag:()=>VTe,getJSDocHost:()=>k7,getJSDocImplementsTags:()=>OTe,getJSDocOverrideTagNoCache:()=>zTe,getJSDocParameterTags:()=>o_,getJSDocParameterTagsNoCache:()=>Y_e,getJSDocPrivateTag:()=>MMe,getJSDocPrivateTagNoCache:()=>WTe,getJSDocProtectedTag:()=>BTe,getJSDocProtectedTagNoCache:()=>LMe,getJSDocPublicTag:()=>RMe,getJSDocPublicTagNoCache:()=>FTe,getJSDocReadonlyTag:()=>OMe,getJSDocReadonlyTagNoCache:()=>FMe,getJSDocReturnTag:()=>UTe,getJSDocReturnType:()=>GX,getJSDocRoot:()=>_H,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>Z_e,getJSDocTags:()=>WM,getJSDocTagsNoCache:()=>w8,getJSDocTemplateTag:()=>HTe,getJSDocThisTag:()=>Xre,getJSDocType:()=>iR,getJSDocTypeAliasName:()=>Tpe,getJSDocTypeAssertionType:()=>x1,getJSDocTypeParameterDeclarations:()=>SY,getJSDocTypeParameterTags:()=>N8,getJSDocTypeParameterTagsNoCache:()=>MTe,getJSDocTypeTag:()=>FM,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>N3,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>JD,getLeadingCommentRangesOfNode:()=>WE,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>qL,getLibraryNameFromLibFileName:()=>Qae,getLineAndCharacterOfPosition:()=>xm,getLineInfo:()=>kae,getLineOfLocalPosition:()=>j9,getLineOfLocalPositionFromLineMap:()=>Z8,getLineStartPositionForPosition:()=>Ux,getLineStarts:()=>eR,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>i7,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>_ie,getLocalNameForExternalImport:()=>C3,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>dse,getMappedContextSpan:()=>Kge,getMappedDocumentSpan:()=>oce,getMappedLocation:()=>H3,getMatchedFileSpec:()=>vse,getMatchedIncludeSpec:()=>sZ,getMeaningFromDeclaration:()=>j$,getMeaningFromLocation:()=>xF,getMembersOfDeclaration:()=>yie,getModeForFileReference:()=>$Q,getModeForResolutionAtIndex:()=>Kae,getModeForUsageLocation:()=>PA,getModifiedTime:()=>ZO,getModifiers:()=>Xv,getModuleInstanceState:()=>YN,getModuleNameStringLiteralAt:()=>ZQ,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>FZ,getNameForExportedSymbol:()=>Oj,getNameFromIndexInfo:()=>ZTe,getNameFromPropertyName:()=>tq,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>Mpe,getNameOfDeclaration:()=>i_,getNameOfExpando:()=>oG,getNameOfJSDocTypedef:()=>RL,getNameOrArgument:()=>KC,getNameTable:()=>xee,getNamesForExportedSymbol:()=>hce,getNamespaceDeclarationNode:()=>H8,getNewLineCharacter:()=>JE,getNewLineKind:()=>Fj,getNewLineOrDefaultFromHost:()=>R6,getNewTargetContainer:()=>aSe,getNextJSDocCommentLocation:()=>Die,getNodeForGeneratedName:()=>$J,getNodeId:()=>vm,getNodeKind:()=>g4,getNodeModifiers:()=>X$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>Kre,getNonAssignmentOperatorForCompoundAssignment:()=>RQ,getNonAugmentationDeclaration:()=>pie,getNonDecoratorTokenPosOfNode:()=>fie,getNormalizedAbsolutePath:()=>vf,getNormalizedAbsolutePathWithoutRoot:()=>tf,getNormalizedPathComponents:()=>g0,getObjectFlags:()=>ji,getOperator:()=>rh,getOperatorAssociativity:()=>rI,getOperatorPrecedence:()=>Pie,getOptionFromName:()=>QJ,getOptionsForLibraryResolution:()=>E2e,getOptionsNameMap:()=>HG,getOrCreateEmitNode:()=>Sa,getOrCreateExternalHelpersModuleNameIfNeeded:()=>M6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Gg,getOriginalNodeId:()=>Nb,getOriginalSourceFile:()=>_Se,getOutputDeclarationFileName:()=>gF,getOutputExtension:()=>jae,getOutputFileNames:()=>Ome,getOutputPathsFor:()=>A$,getOutputPathsForBundle:()=>O3,getOwnEmitOutputFilePath:()=>hR,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>A6,getPackageJsonTypesVersionsPaths:()=>vQ,getPackageJsonsVisibleToFile:()=>rhe,getPackageNameFromTypesPackageName:()=>c4,getPackageScopeForPath:()=>m$,getParameterSymbolFromJSDoc:()=>$8,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>nq,getParseTreeNode:()=>__,getParsedCommandLineOfConfigFile:()=>JG,getPathComponents:()=>qc,getPathComponentsRelativeTo:()=>Ure,getPathFromPathComponents:()=>Iy,getPathUpdater:()=>Cce,getPathsBasePath:()=>Lie,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>N$,getPositionOfLineAndCharacter:()=>Fz,getPossibleGenericSignatures:()=>Uge,getPossibleOriginalInputExtensionForExtension:()=>Mde,getPossibleTypeArgumentsInfo:()=>K$,getPreEmitDiagnostics:()=>L4e,getPrecedingNonSpaceCharacterPosition:()=>Yge,getPrivateIdentifier:()=>K2e,getProperties:()=>b$,getProperty:()=>T8,getPropertyArrayElementValue:()=>iSe,getPropertyAssignmentAliasLikeExpression:()=>XMe,getPropertyNameForPropertyNameNode:()=>FN,getPropertyNameForUniqueESSymbol:()=>wde,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>WEe,getPropertySymbolFromBindingElement:()=>Pj,getPropertySymbolsFromContextualType:()=>_le,getQuoteFromPreference:()=>ice,getQuotePreference:()=>OS,getRangesWhere:()=>eu,getRefactorContextSpan:()=>NF,getReferencedFileLocation:()=>XQ,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>sP,getRelativePathFromFile:()=>wM,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>jZ,getReplacementSpanForContextToken:()=>wZ,getResolutionDiagnostic:()=>QQ,getResolutionModeOverride:()=>W3,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>pG,getRestIndicatorOfBindingOrAssignmentElement:()=>YY,getRestParameterElementType:()=>tSe,getRightMostAssignedExpression:()=>k9,getRootDeclaration:()=>vA,getRootDirectoryOfResolutionCache:()=>iZ,getRootLength:()=>Pg,getRootPathSplitLength:()=>Y4e,getScriptKind:()=>sce,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>hoe,getSelectedEffectiveModifierFlags:()=>fk,getSelectedSyntacticModifierFlags:()=>Ode,getSemanticClassifications:()=>JAe,getSemanticJsxChildren:()=>B9,getSetAccessorTypeAnnotationNode:()=>Lde,getSetAccessorValueParameter:()=>AH,getSetExternalModuleIndicator:()=>q9,getShebang:()=>Wz,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>D7,getSingleVariableOfVariableStatement:()=>I7,getSnapshotText:()=>Dj,getSnippetElement:()=>npe,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>ts,getSourceFilePathInNewDir:()=>Fie,getSourceFilePathInNewDirWorker:()=>Kg,getSourceFileVersionAsHashFromText:()=>lZ,getSourceFilesToEmit:()=>Oie,getSourceMapRange:()=>XL,getSourceMapper:()=>n3e,getSourceTextOfNodeFromSourceFile:()=>m7,getSpanOfTokenAtPosition:()=>M0,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>fR,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>Ry,getStaticPropertiesAndClassStaticBlock:()=>MQ,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>v$,getSuperContainer:()=>h0,getSupportedCodeFixes:()=>fle,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>_ce,getSymbolId:()=>$d,getSymbolNameForPrivateIdentifier:()=>WN,getSymbolTarget:()=>e2,getSyntacticClassifications:()=>hhe,getSyntacticModifierFlags:()=>ZC,getSyntacticModifierFlagsNoCache:()=>Fde,getSynthesizedDeepClone:()=>ih,getSynthesizedDeepCloneWithReplacements:()=>cce,getSynthesizedDeepClones:()=>WR,getSynthesizedDeepClonesWithReplacements:()=>tB,getSyntheticLeadingComments:()=>y3,getSyntheticTrailingComments:()=>PY,getTargetLabel:()=>SZ,getTargetOfBindingOrAssignmentElement:()=>gI,getTemporaryModuleResolutionState:()=>lae,getTextOfConstantValue:()=>Yv,getTextOfIdentifierOrLiteral:()=>K2,getTextOfJSDocComment:()=>EN,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Lv,getTextOfNodeFromSourceText:()=>h9,getTextOfPropertyName:()=>z8,getThisContainer:()=>RT,getThisParameter:()=>BN,getTokenAtPosition:()=>Lf,getTokenPosOfNode:()=>v2,getTokenSourceMapRange:()=>epe,getTouchingPropertyName:()=>cS,getTouchingToken:()=>MR,getTrailingCommentRanges:()=>SN,getTrailingSemicolonDeferringWriter:()=>z9,getTransformFlagsSubtreeExclusions:()=>v6e,getTransformers:()=>Rme,getTsBuildInfoEmitOutputFilePath:()=>PR,getTsConfigObjectLiteralExpression:()=>eG,getTsConfigPropArrayElementValue:()=>JM,getTypeAnnotationNode:()=>O7,getTypeArgumentOrTypeParameterList:()=>IAe,getTypeKeywordOfTypeOnlyImport:()=>qge,getTypeNode:()=>wY,getTypeNodeIfAccessible:()=>iB,getTypeParameterFromJsDoc:()=>sSe,getTypeParameterOwner:()=>R0,getTypesPackageName:()=>pae,getUILocale:()=>dTe,getUniqueName:()=>v4,getUniqueSymbolId:()=>RAe,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>mse,getWatchFactory:()=>mxe,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>p7,handleNoEmitOptions:()=>nse,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>e_,hasAmbientModifier:()=>il,hasChangesInResolutions:()=>sie,hasChildOfKind:()=>Jse,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>X2,hasDocComment:()=>DAe,hasDynamicName:()=>tI,hasEffectiveModifier:()=>tT,hasEffectiveModifiers:()=>Bie,hasEffectiveReadonlyModifier:()=>Ny,hasExtension:()=>r9,hasIndexSignature:()=>HZ,hasInitializer:()=>J2,hasInvalidEscape:()=>TH,hasJSDocNodes:()=>NT,hasJSDocParameterTags:()=>zz,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>g1,hasOverrideModifier:()=>zie,hasPossibleExternalModuleReference:()=>gde,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>Ej,hasQuestionToken:()=>M9,hasRecordedExternalHelpers:()=>R6e,hasResolutionModeOverride:()=>_6,hasRestParameter:()=>lde,hasScopeMarker:()=>WMe,hasStaticModifier:()=>ev,hasSyntacticModifier:()=>ul,hasSyntacticModifiers:()=>gSe,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>VD,hasType:()=>_P,hasTypeArguments:()=>cSe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>Poe,hostGetCanonicalFileName:()=>QC,hostUsesCaseSensitiveFileNames:()=>dG,idText:()=>Kr,identifierIsThisKeyword:()=>JL,identifierToKeywordKind:()=>uP,identity:()=>Of,identitySourceMapConsumer:()=>Vx,ignoreSourceNewlines:()=>qN,ignoredPaths:()=>NU,importDefaultHelper:()=>CJ,importFromModuleSpecifier:()=>XC,importNameElisionDisabled:()=>Qie,importStarHelper:()=>IG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>y9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>gj,injectClassNamedEvaluationHelperBlockIfMissing:()=>Eme,injectClassThisAssignmentIfMissing:()=>FW,insertImports:()=>zZ,insertLeadingStatement:()=>dUe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>_R,insertStatementAfterStandardPrologue:()=>VMe,insertStatementsAfterCustomPrologue:()=>wx,insertStatementsAfterStandardPrologue:()=>Um,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>bde,inverseJsxOptionMap:()=>uF,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>wJ,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>FR,isAccessor:()=>GM,isAccessorModifier:()=>EEe,isAliasSymbolDeclaration:()=>N7,isAliasableExpression:()=>O9,isAmbientModule:()=>dh,isAmbientPropertyDeclaration:()=>mde,isAnonymousFunctionDefinition:()=>R7,isAnyDirectorySeparator:()=>wU,isAnyImportOrBareOrAccessedRequire:()=>JMe,isAnyImportOrReExport:()=>eH,isAnyImportSyntax:()=>W8,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>AQ,isArgumentExpressionOfElementAccess:()=>Oge,isArray:()=>ls,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>p9,isArrayBindingOrAssignmentPattern:()=>rde,isArrayBindingPattern:()=>Wd,isArrayLiteralExpression:()=>Ed,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kP,isArrayTypeNode:()=>GY,isArrowFunction:()=>$m,isAsExpression:()=>eF,isAssertClause:()=>AP,isAssertEntry:()=>y6,isAssertionExpression:()=>f7,isAssertsKeyword:()=>dW,isAssignmentDeclaration:()=>eT,isAssignmentExpression:()=>Zv,isAssignmentOperator:()=>pk,isAssignmentPattern:()=>KD,isAssignmentTarget:()=>VE,isAsteriskToken:()=>BY,isAsyncFunction:()=>t6,isAsyncModifier:()=>NJ,isAutoAccessorPropertyDeclaration:()=>xb,isAwaitExpression:()=>ys,isAwaitKeyword:()=>ape,isBigIntLiteral:()=>OY,isBinaryExpression:()=>Ds,isBinaryOperatorToken:()=>UEe,isBindableObjectDefinePropertyCall:()=>A7,isBindableStaticAccessExpression:()=>mR,isBindableStaticElementAccessExpression:()=>GL,isBindableStaticNameExpression:()=>U8,isBindingElement:()=>sa,isBindingElementOfBareOrAccessedRequire:()=>Rs,isBindingName:()=>lR,isBindingOrAssignmentElement:()=>ld,isBindingOrAssignmentPattern:()=>u7,isBindingPattern:()=>$_,isBlock:()=>Ou,isBlockOrCatchScoped:()=>v9,isBlockScope:()=>$C,isBlockScopedContainerTopLevel:()=>pde,isBooleanLiteral:()=>fy,isBreakOrContinueStatement:()=>M8,isBreakStatement:()=>Loe,isBuildInfoFile:()=>fxe,isBuilderProgram:()=>gse,isBundle:()=>fpe,isBundleFileTextLike:()=>NSe,isCallChain:()=>AN,isCallExpression:()=>xd,isCallExpressionTarget:()=>hZ,isCallLikeExpression:()=>uR,isCallLikeOrFunctionLikeExpression:()=>eie,isCallOrNewExpression:()=>sk,isCallOrNewExpressionTarget:()=>yZ,isCallSignatureDeclaration:()=>Y7,isCallToHelper:()=>uW,isCaseBlock:()=>Fv,isCaseClause:()=>BT,isCaseKeyword:()=>Hh,isCaseOrDefaultClause:()=>$U,isCatchClause:()=>A3,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>Tp,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>qC,isCircularBuildOrder:()=>yj,isClassDeclaration:()=>Ih,isClassElement:()=>J_,isClassExpression:()=>v0,isClassInstanceProperty:()=>nde,isClassLike:()=>Fl,isClassMemberModifier:()=>jU,isClassNamedEvaluationHelperBlock:()=>mj,isClassOrTypeElement:()=>c7,isClassStaticBlockDeclaration:()=>Ep,isClassThisAssignmentBlock:()=>S$,isCollapsedRange:()=>XVe,isColonToken:()=>An,isCommaExpression:()=>rv,isCommaListExpression:()=>E_,isCommaSequence:()=>VJ,isCommaToken:()=>WY,isComment:()=>ece,isCommonJsExportPropertyAssignment:()=>HM,isCommonJsExportedExpression:()=>$Me,isCompoundAssignment:()=>lj,isComputedNonLiteralName:()=>Xz,isComputedPropertyName:()=>Qf,isConciseBody:()=>VU,isConditionalExpression:()=>ex,isConditionalTypeNode:()=>Q7,isConstTypeReference:()=>ky,isConstructSignatureDeclaration:()=>x2,isConstructorDeclaration:()=>Lh,isConstructorTypeNode:()=>RG,isContextualKeyword:()=>fG,isContinueStatement:()=>D6e,isCustomPrologue:()=>T9,isDebuggerStatement:()=>b0,isDeclaration:()=>PT,isDeclarationBindingElement:()=>$X,isDeclarationFileName:()=>Zb,isDeclarationName:()=>ON,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>oY,isDeclarationStatement:()=>cde,isDeclarationWithTypeParameterChildren:()=>mie,isDeclarationWithTypeParameters:()=>WL,isDecorator:()=>Jh,isDecoratorTarget:()=>bZ,isDefaultClause:()=>xk,isDefaultImport:()=>R9,isDefaultModifier:()=>zY,isDefaultedExpandoInitializer:()=>Aie,isDeleteExpression:()=>h6,isDeleteTarget:()=>mH,isDeprecatedDeclaration:()=>QZ,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>ohe,isDiskPathRoot:()=>Gre,isDoStatement:()=>cpe,isDocumentRegistryEntry:()=>xce,isDotDotDotToken:()=>FY,isDottedName:()=>Uh,isDynamicName:()=>L0,isESSymbolIdentifier:()=>gY,isEffectiveExternalModule:()=>VM,isEffectiveModuleDeclaration:()=>HMe,isEffectiveStrictModeSourceFile:()=>QTe,isElementAccessChain:()=>oR,isElementAccessExpression:()=>Hm,isEmittedFileOfProgram:()=>Vme,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>BX,isEmptyBindingPattern:()=>wTe,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>xEe,isEmptyStringLiteral:()=>iH,isEntityName:()=>kT,isEntityNameExpression:()=>Tg,isEnumConst:()=>G8,isEnumDeclaration:()=>xP,isEnumMember:()=>pI,isEqualityOperatorKind:()=>sq,isEqualsGreaterThanToken:()=>fW,isExclamationToken:()=>wG,isExcludedFile:()=>Wpe,isExclusivelyTypeOnlyImportOrExport:()=>qQ,isExpandoPropertyDeclaration:()=>eJ,isExportAssignment:()=>py,isExportDeclaration:()=>ry,isExportModifier:()=>_W,isExportName:()=>CW,isExportNamespaceAsDefaultDeclaration:()=>nY,isExportOrDefaultModifier:()=>Voe,isExportSpecifier:()=>my,isExportsIdentifier:()=>P9,isExportsOrModuleExportsOrAlias:()=>R3,isExpression:()=>kr,isExpressionNode:()=>ZD,isExpressionOfExternalModuleImportEqualsDeclaration:()=>AZ,isExpressionOfOptionalChainRoot:()=>BU,isExpressionStatement:()=>kb,isExpressionWithTypeArguments:()=>cC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Gie,isExternalModule:()=>Bv,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>Mx,isExternalModuleIndicator:()=>XX,isExternalModuleNameRelative:()=>Kv,isExternalModuleReference:()=>KE,isExternalModuleSymbol:()=>eq,isExternalOrCommonJsModule:()=>aE,isFileLevelReservedGeneratedIdentifier:()=>sR,isFileLevelUniqueName:()=>ns,isFileProbablyExternalModule:()=>Uoe,isFirstDeclarationOfSymbolParameter:()=>ace,isFixablePromiseHandler:()=>fCe,isForInOrOfStatement:()=>Hz,isForInStatement:()=>lpe,isForInitializer:()=>DS,isForOfStatement:()=>Bx,isForStatement:()=>bW,isFunctionBlock:()=>hP,isFunctionBody:()=>UU,isFunctionDeclaration:()=>mg,isFunctionExpression:()=>Jm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>F_,isFunctionLikeDeclaration:()=>Vd,isFunctionLikeKind:()=>S_,isFunctionLikeOrClassStaticBlockDeclaration:()=>bd,isFunctionOrConstructorTypeNode:()=>l7,isFunctionOrModuleBlock:()=>_9,isFunctionSymbol:()=>qMe,isFunctionTypeNode:()=>e0,isFutureReservedKeyword:()=>sE,isGeneratedIdentifier:()=>$g,isGeneratedPrivateIdentifier:()=>s7,isGetAccessor:()=>PN,isGetAccessorDeclaration:()=>lE,isGetOrSetAccessorDeclaration:()=>Gz,isGlobalDeclaration:()=>WAe,isGlobalScopeAugmentation:()=>JC,isGrammarError:()=>XTe,isHeritageClause:()=>Qb,isHoistedFunction:()=>h7,isHoistedVariableStatement:()=>y7,isIdentifier:()=>xn,isIdentifierANonContextualKeyword:()=>hH,isIdentifierName:()=>kde,isIdentifierOrThisTypeNode:()=>F6e,isIdentifierPart:()=>wL,isIdentifierStart:()=>lP,isIdentifierText:()=>H2,isIdentifierTypePredicate:()=>rSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>bk,isIgnoredFileFromWildCardWatching:()=>dC,isImplicitGlob:()=>noe,isImportAttribute:()=>Ly,isImportAttributeName:()=>l9,isImportAttributes:()=>oS,isImportCall:()=>Py,isImportClause:()=>Tk,isImportDeclaration:()=>n0,isImportEqualsDeclaration:()=>Yb,isImportKeyword:()=>am,isImportMeta:()=>gP,isImportOrExportSpecifier:()=>fP,isImportOrExportSpecifierName:()=>J3,isImportSpecifier:()=>qE,isImportTypeAssertionContainer:()=>YL,isImportTypeNode:()=>E1,isImportableFile:()=>Tce,isInComment:()=>tw,isInCompoundLikeAssignment:()=>P7,isInExpressionContext:()=>C9,isInJSDoc:()=>S7,isInJSFile:()=>Cs,isInJSXText:()=>$$,isInJsonFile:()=>Eie,isInNonReferenceComment:()=>Q$,isInReferenceComment:()=>NZ,isInRightSideOfInternalImportEqualsDeclaration:()=>Gse,isInString:()=>V3,isInTemplateString:()=>Qse,isInTopLevelContext:()=>GE,isInTypeQuery:()=>yR,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Z2,isIndexedAccessTypeNode:()=>Wx,isInferTypeNode:()=>KN,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>Nae,isInitializedVariable:()=>J9,isInsideJsxElement:()=>Zse,isInsideJsxElementOrAttribute:()=>LR,isInsideNodeModules:()=>KZ,isInsideTemplateLiteral:()=>Y$,isInstanceOfExpression:()=>jie,isInstantiatedModule:()=>sme,isInterfaceDeclaration:()=>xp,isInternalDeclaration:()=>Wae,isInternalModuleImportEqualsDeclaration:()=>$M,isInternalName:()=>vpe,isIntersectionTypeNode:()=>xR,isIntrinsicJsxName:()=>EH,isIterationStatement:()=>LL,isJSDoc:()=>uC,isJSDocAllType:()=>LG,isJSDocAugmentsTag:()=>xW,isJSDocAuthorTag:()=>CEe,isJSDocCallbackTag:()=>UY,isJSDocClassTag:()=>_pe,isJSDocCommentContainingNode:()=>Y1,isJSDocConstructSignature:()=>VL,isJSDocDeprecatedTag:()=>dpe,isJSDocEnumTag:()=>jx,isJSDocFunctionType:()=>Ak,isJSDocImplementsTag:()=>jJ,isJSDocIndexSignature:()=>uY,isJSDocLikeText:()=>$Ee,isJSDocLink:()=>MG,isJSDocLinkCode:()=>Ooe,isJSDocLinkLike:()=>F8,isJSDocLinkPlain:()=>AEe,isJSDocMemberName:()=>QL,isJSDocNameReference:()=>FJ,isJSDocNamepathType:()=>_Ue,isJSDocNamespaceBody:()=>mA,isJSDocNode:()=>Jz,isJSDocNonNullableType:()=>Gx,isJSDocNullableType:()=>WJ,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>EW,isJSDocOverloadTag:()=>aF,isJSDocOverrideTag:()=>AA,isJSDocParameterTag:()=>A2,isJSDocPrivateTag:()=>Woe,isJSDocPropertyLikeTag:()=>Vz,isJSDocPropertyTag:()=>I6e,isJSDocProtectedTag:()=>DEe,isJSDocPublicTag:()=>OG,isJSDocReadonlyTag:()=>BJ,isJSDocReturnTag:()=>ppe,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>ZL,isJSDocSeeTag:()=>HY,isJSDocSignature:()=>b6,isJSDocTag:()=>d7,isJSDocTemplateTag:()=>CA,isJSDocThisTag:()=>IEe,isJSDocThrowsTag:()=>kEe,isJSDocTypeAlias:()=>b2,isJSDocTypeAssertion:()=>KY,isJSDocTypeExpression:()=>SW,isJSDocTypeLiteral:()=>oF,isJSDocTypeTag:()=>FG,isJSDocTypedefTag:()=>zJ,isJSDocUnknownTag:()=>GJ,isJSDocUnknownType:()=>Foe,isJSDocVariadicType:()=>iF,isJSXTagName:()=>T7,isJsonEqual:()=>xY,isJsonSourceFile:()=>Rx,isJsxAttribute:()=>tx,isJsxAttributeLike:()=>rie,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>CR,isJsxChild:()=>ZX,isJsxClosingElement:()=>iD,isJsxClosingFragment:()=>dI,isJsxElement:()=>zx,isJsxExpression:()=>CP,isJsxFragment:()=>Ek,isJsxNamespacedName:()=>Fm,isJsxOpeningElement:()=>Pb,isJsxOpeningFragment:()=>v6,isJsxOpeningLikeElement:()=>m1,isJsxOpeningLikeElementTagName:()=>Mge,isJsxSelfClosingElement:()=>nF,isJsxSpreadAttribute:()=>rT,isJsxTagNameExpression:()=>QX,isJsxText:()=>SR,isJumpStatementTarget:()=>EZ,isKeyword:()=>qb,isKeywordOrPunctuation:()=>F9,isKnownSymbol:()=>yA,isLabelName:()=>m4,isLabelOfLabeledStatement:()=>j3,isLabeledStatement:()=>tF,isLateVisibilityPaintedStatement:()=>B8,isLeftHandSideExpression:()=>ib,isLeftHandSideOfAssignment:()=>hSe,isLet:()=>UM,isLineBreak:()=>Sb,isLiteralComputedPropertyDeclarationName:()=>_g,isLiteralExpression:()=>aR,isLiteralExpressionOfObject:()=>Zre,isLiteralImportTypeNode:()=>MN,isLiteralKind:()=>UX,isLiteralLikeAccess:()=>fY,isLiteralLikeElementAccess:()=>V8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>xZ,isLiteralTypeLikeExpression:()=>pUe,isLiteralTypeLiteral:()=>ode,isLiteralTypeNode:()=>S3,isLocalName:()=>mI,isLogicalOperator:()=>U9,isLogicalOrCoalescingAssignmentExpression:()=>Wde,isLogicalOrCoalescingAssignmentOperator:()=>CH,isLogicalOrCoalescingBinaryExpression:()=>DH,isLogicalOrCoalescingBinaryOperator:()=>W7,isMappedTypeNode:()=>LJ,isMemberName:()=>xN,isMetaProperty:()=>x3,isMethodDeclaration:()=>tm,isMethodOrAccessor:()=>Mv,isMethodSignature:()=>pg,isMinusToken:()=>ER,isMissingDeclaration:()=>TW,isModifier:()=>Mf,isModifierKind:()=>Om,isModifierLike:()=>Am,isModuleAugmentationExternal:()=>iY,isModuleBlock:()=>kh,isModuleBody:()=>tie,isModuleDeclaration:()=>dy,isModuleExportsAccessExpression:()=>jE,isModuleIdentifier:()=>x7,isModuleName:()=>z6e,isModuleOrEnumDeclaration:()=>nie,isModuleReference:()=>uf,isModuleSpecifierLike:()=>WZ,isModuleWithStringLiteralName:()=>rY,isNameOfFunctionDeclaration:()=>H$,isNameOfModuleDeclaration:()=>U$,isNamedClassElement:()=>Jl,isNamedDeclaration:()=>mp,isNamedEvaluation:()=>UE,isNamedEvaluationSource:()=>vH,isNamedExportBindings:()=>Qre,isNamedExports:()=>j0,isNamedImportBindings:()=>ade,isNamedImports:()=>Oy,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>g6,isNamespaceBody:()=>$Te,isNamespaceExport:()=>G0,isNamespaceExportDeclaration:()=>lC,isNamespaceImport:()=>mh,isNamespaceReexportDeclaration:()=>oH,isNewExpression:()=>sb,isNewExpressionTarget:()=>V$,isNoSubstitutionTemplateLiteral:()=>K7,isNode:()=>VX,isNodeArray:()=>BM,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>Lx,isNodeKind:()=>GU,isNodeLikeSystem:()=>Y5,isNodeModulesDirectory:()=>NX,isNodeWithPossibleHoistedDeclaration:()=>pH,isNonContextualKeyword:()=>e6,isNonExportDefaultModifier:()=>hUe,isNonGlobalAmbientModule:()=>dde,isNonGlobalDeclaration:()=>lT,isNonNullAccess:()=>nEe,isNonNullChain:()=>zU,isNonNullExpression:()=>E3,isNonStaticMethodOrAccessorWithPrivateName:()=>q2e,isNotEmittedOrPartiallyEmittedNode:()=>Nr,isNotEmittedStatement:()=>rD,isNullishCoalesce:()=>R8,isNumber:()=>U1,isNumericLiteral:()=>S1,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>BZ,isObjectBindingOrAssignmentElement:()=>d9,isObjectBindingOrAssignmentPattern:()=>qX,isObjectBindingPattern:()=>Ch,isObjectLiteralElement:()=>eY,isObjectLiteralElementLike:()=>DN,isObjectLiteralExpression:()=>el,isObjectLiteralMethod:()=>iC,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>x9,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>UD,isOmittedExpression:()=>cb,isOptionalChain:()=>uy,isOptionalChainRoot:()=>s9,isOptionalDeclaration:()=>hG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>MJ,isOuterExpression:()=>WG,isOutermostOptionalChain:()=>jz,isOverrideModifier:()=>RJ,isPackedArrayLiteral:()=>foe,isParameter:()=>Os,isParameterDeclaration:()=>X8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>DT,isParameterPropertyModifier:()=>cR,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>XN,isParseTreeNode:()=>qD,isPartOfTypeNode:()=>BE,isPartOfTypeQuery:()=>rG,isPartiallyEmittedExpression:()=>Roe,isPatternMatch:()=>C8,isPinnedComment:()=>uie,isPlainJsFile:()=>pP,isPlusToken:()=>PJ,isPossiblyTypeArgumentPosition:()=>kZ,isPostfixUnaryExpression:()=>jY,isPrefixUnaryExpression:()=>vk,isPrivateIdentifier:()=>Lu,isPrivateIdentifierClassElementDeclaration:()=>IT,isPrivateIdentifierPropertyAccessExpression:()=>u9,isPrivateIdentifierSymbol:()=>aC,isProgramBundleEmitBuildInfo:()=>tge,isProgramUptoDate:()=>bxe,isPrologueDirective:()=>$2,isPropertyAccessChain:()=>ede,isPropertyAccessEntityNameExpression:()=>NS,isPropertyAccessExpression:()=>Ac,isPropertyAccessOrQualifiedName:()=>KX,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ide,isPropertyAssignment:()=>tl,isPropertyDeclaration:()=>nu,isPropertyName:()=>qg,isPropertyNameLiteral:()=>Qv,isPropertySignature:()=>em,isProtoSetter:()=>YMe,isPrototypeAccess:()=>bP,isPrototypePropertyAssignment:()=>jL,isPunctuation:()=>uG,isPushOrUnshiftIdentifier:()=>fSe,isQualifiedName:()=>Pu,isQuestionDotToken:()=>Gu,isQuestionOrExclamationToken:()=>O6e,isQuestionOrPlusOrMinusToken:()=>B6e,isQuestionToken:()=>p6,isRawSourceMap:()=>$Le,isReadonlyKeyword:()=>SEe,isReadonlyKeywordOrPlusOrMinusToken:()=>W6e,isRecognizedTripleSlashComment:()=>_de,isReferenceFileLocation:()=>HW,isReferencedFile:()=>ew,isRegularExpressionLiteral:()=>ope,isRequireCall:()=>y1,isRequireVariableStatement:()=>xie,isRestParameter:()=>sp,isRestTypeNode:()=>hW,isReturnStatement:()=>iS,isReturnStatementWithFixablePromiseHandler:()=>Pce,isRightSideOfAccessExpression:()=>r6,isRightSideOfInstanceofExpression:()=>ySe,isRightSideOfPropertyAccess:()=>sS,isRightSideOfQualifiedName:()=>wA,isRightSideOfQualifiedNameOrPropertyAccess:()=>z7,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>kH,isRootedDiskPath:()=>nE,isSameEntityName:()=>j8,isSatisfiesExpression:()=>C6e,isScopeMarker:()=>_7,isSemicolonClassElement:()=>spe,isSetAccessor:()=>UC,isSetAccessorDeclaration:()=>Xb,isShebangTrivia:()=>ATe,isShiftOperatorOrHigher:()=>jEe,isShorthandAmbientModuleSymbol:()=>ZU,isShorthandPropertyAssignment:()=>XE,isSignedNumericLiteral:()=>yH,isSimpleCopiableExpression:()=>L3,isSimpleInlineableExpression:()=>IA,isSingleOrDoubleQuote:()=>D9,isSourceFile:()=>Nu,isSourceFileFromLibrary:()=>cB,isSourceFileJS:()=>Gy,isSourceFileNotJS:()=>Ade,isSourceFileNotJson:()=>qM,isSourceMapping:()=>KLe,isSpecialPropertyDeclaration:()=>dY,isSpreadAssignment:()=>xA,isSpreadElement:()=>WT,isStatement:()=>dl,isStatementButNotDeclaration:()=>HU,isStatementOrBlock:()=>YX,isStatementWithLocals:()=>KTe,isStatic:()=>pd,isStaticModifier:()=>pW,isString:()=>As,isStringAKeyword:()=>Nde,isStringANonContextualKeyword:()=>w7,isStringAndEmptyAnonymousObjectIntersection:()=>Hge,isStringDoubleQuoted:()=>aH,isStringLiteral:()=>Sd,isStringLiteralLike:()=>Cm,isStringLiteralOrJsxExpression:()=>JU,isStringLiteralOrTemplate:()=>UZ,isStringOrNumericLiteralLike:()=>Ox,isStringOrRegularExpressionOrTemplateLiteral:()=>tce,isStringTextContainingNode:()=>JX,isSuperCall:()=>h1,isSuperKeyword:()=>nT,isSuperOrSuperProperty:()=>Ede,isSuperProperty:()=>MT,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>AR,isSyntaxList:()=>AW,isSyntheticExpression:()=>VY,isSyntheticReference:()=>Sk,isTagName:()=>KW,isTaggedTemplateExpression:()=>Dm,isTaggedTemplateTag:()=>vZ,isTemplateExpression:()=>B0,isTemplateHead:()=>X7,isTemplateLiteral:()=>Uz,isTemplateLiteralKind:()=>VC,isTemplateLiteralToken:()=>L8,isTemplateLiteralTypeNode:()=>ym,isTemplateLiteralTypeSpan:()=>vW,isTemplateMiddle:()=>TEe,isTemplateMiddleOrTemplateTail:()=>c9,isTemplateSpan:()=>Dh,isTemplateTail:()=>woe,isTextWhiteSpaceLike:()=>cT,isThis:()=>AF,isThisContainerOrFunctionBlock:()=>sY,isThisIdentifier:()=>E2,isThisInTypeQuery:()=>V9,isThisInitializedDeclaration:()=>bie,isThisInitializedObjectBindingExpression:()=>Tie,isThisProperty:()=>Q1,isThisTypeNode:()=>yW,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>Sde,isThrowStatement:()=>ff,isToken:()=>a7,isTokenKind:()=>tde,isTraceEnabled:()=>DR,isTransientSymbol:()=>Vm,isTrivia:()=>W9,isTryStatement:()=>My,isTupleTypeNode:()=>gW,isTypeAlias:()=>L9,isTypeAliasDeclaration:()=>z0,isTypeAssertionExpression:()=>ph,isTypeDeclaration:()=>f6,isTypeElement:()=>rb,isTypeKeyword:()=>Z$,isTypeKeywordToken:()=>nce,isTypeKeywordTokenOrIdentifier:()=>h4,isTypeLiteralNode:()=>rS,isTypeNode:()=>pc,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>yk,isTypeOnlyExportDeclaration:()=>zM,isTypeOnlyImportDeclaration:()=>HX,isTypeOnlyImportOrExportDeclaration:()=>O8,isTypeOperatorNode:()=>_I,isTypeParameterDeclaration:()=>Np,isTypePredicateNode:()=>mW,isTypeQueryNode:()=>m6,isTypeReferenceNode:()=>uE,isTypeReferenceType:()=>NN,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>m9,isUnaryExpressionWithWrite:()=>JTe,isUnicodeIdentifierStart:()=>K,isUnionTypeNode:()=>fI,isUnparsedNode:()=>pA,isUnparsedPrepend:()=>OJ,isUnparsedSource:()=>rF,isUnparsedTextLike:()=>CN,isUrl:()=>kX,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>nSe,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>lSe,isVarAwaitUsing:()=>nC,isVarConst:()=>rH,isVarUsing:()=>aY,isVariableDeclaration:()=>Kc,isVariableDeclarationInVariableStatement:()=>rC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E7,isVariableDeclarationInitializedToRequire:()=>v1,isVariableDeclarationList:()=>Kp,isVariableLike:()=>E9,isVariableLikeOrAccessor:()=>vde,isVariableStatement:()=>Xg,isVoidExpression:()=>Z7,isWatchSet:()=>QVe,isWhileStatement:()=>Moe,isWhiteSpaceLike:()=>cP,isWhiteSpaceSingleLine:()=>q1,isWithStatement:()=>upe,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>t0,jsxModeNeedsExplicitImport:()=>uhe,keywordPart:()=>ZE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>i$,libs:()=>r$,lineBreakPart:()=>Nj,linkNamePart:()=>Xge,linkPart:()=>NAe,linkTextPart:()=>ZW,listFiles:()=>fge,loadModuleFromGlobalCache:()=>P2e,loadWithModeAwareCache:()=>KQ,makeIdentifierFromModuleName:()=>UMe,makeImport:()=>Nk,makeImportIfNecessary:()=>rce,makeStringLiteral:()=>kj,mangleScopedPackageName:()=>tj,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>she,mapToDisplayParts:()=>M6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>pTe,matchesExclude:()=>Bpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uJ,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>oP,modifierToFlag:()=>F7,modifiersToFlags:()=>aI,moduleOptionDeclaration:()=>tae,moduleResolutionIsEqualTo:()=>qU,moduleResolutionNameAndModeGetter:()=>use,moduleResolutionOptionDeclarations:()=>s$,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>Ij,moduleSpecifiers:()=>l4,moveEmitHelpers:()=>tpe,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>lW,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>fce,needsScopeMarker:()=>kN,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hme,noEmitNotification:()=>BQ,noEmitSubstitution:()=>WQ,noTransformers:()=>ZN,noTruncationMaximumTruncationLength:()=>CY,nodeCanBeDecorated:()=>zL,nodeHasName:()=>ec,nodeIsDecorated:()=>lY,nodeIsMissing:()=>ny,nodeIsPresent:()=>y2,nodeIsSynthesized:()=>Hd,nodeModuleNameResolver:()=>cae,nodeModulesPathPart:()=>IP,nodeNextJsonConfigResolver:()=>NW,nodeOrChildIsDecorated:()=>Z1,nodeOverlapsWithStartEnd:()=>Fge,nodePosToString:()=>QU,nodeSeenTracker:()=>U3,nodeStartsNewLexicalEnvironment:()=>kie,nodeToDisplayParts:()=>L8e,noop:()=>ku,noopFileWatcher:()=>L$,normalizePath:()=>hf,normalizeSlashes:()=>$1,not:()=>dA,notImplemented:()=>Na,notImplementedResolver:()=>Wme,nullNodeConverters:()=>aJ,nullParenthesizerRules:()=>Doe,nullTransformationContext:()=>sx,objectAllocator:()=>W0,operatorPart:()=>rq,optionDeclarations:()=>hI,optionMapToObject:()=>Yoe,optionsAffectingProgramStructure:()=>jpe,optionsForBuild:()=>uQ,optionsForWatch:()=>fC,optionsHaveChanges:()=>g9,optionsHaveModuleResolutionChanges:()=>uk,or:()=>bb,orderedRemoveItem:()=>xL,orderedRemoveItemAt:()=>Yw,outFile:()=>Ng,packageIdToPackageName:()=>aie,packageIdToString:()=>jM,paramHelper:()=>fJ,parameterIsThisKeyword:()=>iI,parameterNamePart:()=>w8e,parseBaseNodeFactory:()=>tQ,parseBigInt:()=>qSe,parseBuildCommand:()=>tLe,parseCommandLine:()=>NUe,parseCommandLineWorker:()=>Ppe,parseConfigFileTextToJson:()=>Npe,parseConfigFileWithSystem:()=>jxe,parseConfigHostFromCompilerHostLike:()=>k$,parseCustomTypeOption:()=>$oe,parseIsolatedEntityName:()=>UG,parseIsolatedJSDocComment:()=>Cpe,parseJSDocTypeExpressionForTests:()=>AUe,parseJsonConfigFileContent:()=>aLe,parseJsonSourceFileConfigFileContent:()=>Zoe,parseJsonText:()=>iT,parseListTypeOption:()=>eLe,parseNodeFactory:()=>Ck,parseNodeModuleFromPath:()=>d$,parsePackageName:()=>fae,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>yMe,pathContainsNodeModules:()=>RW,pathIsAbsolute:()=>m0,pathIsBareSpecifier:()=>jre,pathIsRelative:()=>V2,patternText:()=>_v,perfLogger:()=>Zh,performIncrementalCompilation:()=>Jxe,performance:()=>Kne,plainJSErrors:()=>sD,positionBelongsToNode:()=>xAe,positionIsASICandidate:()=>pce,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>t3e,probablyUsesSemicolons:()=>$Z,processCommentPragmas:()=>YEe,processPragmasIntoFields:()=>E6,processTaggedTemplateExpression:()=>xme,programContainsEsModules:()=>Jge,programContainsModules:()=>Jx,projectReferenceIsEqualTo:()=>tY,propKeyHelper:()=>EJ,propertyNamePart:()=>R8e,pseudoBigIntToString:()=>tD,punctuationPart:()=>D1,pushIfUnique:()=>Dy,quote:()=>VZ,quotePreferenceFromString:()=>YW,rangeContainsPosition:()=>CZ,rangeContainsPositionExclusive:()=>XW,rangeContainsRange:()=>ov,rangeContainsRangeExclusive:()=>Use,rangeContainsStartEnd:()=>xj,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>hz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>J$,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>mge,readConfigFile:()=>iQ,readHelper:()=>TJ,readJson:()=>e3,readJsonConfigFile:()=>r2e,readJsonOrUndefined:()=>Uie,reduceEachLeadingCommentRange:()=>MU,reduceEachTrailingCommentRange:()=>$_e,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>i9,refactor:()=>MF,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>aW,removeEmitHelper:()=>yEe,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>_se,removeMinAndVersionNumbers:()=>Ub,removeOptionality:()=>Vge,removePrefix:()=>xf,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>bN,repeatString:()=>Pk,replaceElement:()=>yz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>hge,resolveJSModule:()=>x2e,resolveLibrary:()=>Zpe,resolveModuleName:()=>ZG,resolveModuleNameFromCache:()=>rHe,resolvePackageNameToPackageJson:()=>Ype,resolvePath:()=>PL,resolveProjectReferencePath:()=>vF,resolveTripleslashReference:()=>HQ,resolveTypeReferenceDirective:()=>Kpe,resolvingEmptyArray:()=>yG,restHelper:()=>hJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>O$,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>kce,runInitializersHelper:()=>_J,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>qLe,scanShebangTrivia:()=>OX,scanTokenAtPosition:()=>RN,scanner:()=>uT,screenStartingMessageCodes:()=>pge,semanticDiagnosticsOptionDeclarations:()=>nae,serializeCompilerOptions:()=>s2e,server:()=>X_,servicesVersion:()=>dye,setCommentRange:()=>_y,setConfigFileInOptions:()=>Lpe,setConstantValue:()=>x6e,setEachParent:()=>u6,setEmitFlags:()=>_s,setFunctionNameHelper:()=>$7,setGetSourceFileAsHashVersioned:()=>M$,setIdentifierAutoGenerate:()=>RY,setIdentifierGeneratedImportReference:()=>vEe,setIdentifierTypeArguments:()=>d6,setInternalEmitFlags:()=>Sp,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>AJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>Ls,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>Ik,setSnippetElement:()=>rpe,setSourceMapRange:()=>lp,setStackTraceLimit:()=>TTe,setStartsOnNewLine:()=>U7,setSyntheticLeadingComments:()=>uI,setSyntheticTrailingComments:()=>cW,setSys:()=>LVe,setSysLog:()=>gMe,setTextRange:()=>Tn,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>lI,setTypeNode:()=>H7,setUILocale:()=>$5,setValueDeclaration:()=>Cie,shouldAllowImportingTsExtension:()=>MW,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>yce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>Sae,signatureHasRestParameter:()=>A1,signatureToDisplayParts:()=>iq,single:()=>_U,singleElementArray:()=>X5,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>w6e,skipConstraint:()=>DF,skipOuterExpressions:()=>iv,skipParentheses:()=>rg,skipPartiallyEmittedExpressions:()=>h2,skipTrivia:()=>Ff,skipTypeChecking:()=>c3,skipTypeParentheses:()=>Ide,skipWhile:()=>qO,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>o7,sourceFileAffectingCompilerOptions:()=>c$,sourceFileMayBeEmitted:()=>HL,sourceMapCommentRegExp:()=>pme,sourceMapCommentRegExpDontCareLineStart:()=>e1,spacePart:()=>qh,spanMap:()=>fa,spreadArrayHelper:()=>SJ,stableSort:()=>nh,startEndContainsRange:()=>Wm,startEndOverlapsWithStartEnd:()=>Wge,startOnNewLine:()=>lb,startTracing:()=>Dz,startsWith:()=>qf,startsWithDirectory:()=>RU,startsWithUnderscore:()=>YZ,startsWithUseStrict:()=>Goe,stringContainsAt:()=>lq,stringToToken:()=>D8,stripQuotes:()=>S2,supportedDeclarationExtensions:()=>oJ,supportedJSExtensions:()=>qde,supportedJSExtensionsFlat:()=>h3,supportedLocaleDirectories:()=>iie,supportedTSExtensions:()=>bG,supportedTSExtensionsFlat:()=>xoe,supportedTSImplementationExtensions:()=>SG,suppressLeadingAndTrailingTrivia:()=>zT,suppressLeadingTrivia:()=>oq,suppressTrailingTrivia:()=>Qge,symbolEscapedNameNoDefault:()=>$ge,symbolName:()=>Il,symbolNameNoDefault:()=>IF,symbolPart:()=>PAe,symbolToDisplayParts:()=>Rg,syntaxMayBeASICandidate:()=>zAe,syntaxRequiresTrailingSemicolonOrASI:()=>JZ,sys:()=>w0,sysLog:()=>Mre,tagNamesAreEquivalent:()=>n4,takeWhile:()=>Qw,targetOptionDeclaration:()=>a$,templateObjectHelper:()=>bJ,testFormatSettings:()=>Rge,textChangeRangeIsUnchanged:()=>NTe,textChangeRangeNewSpan:()=>o9,textChanges:()=>zs,textOrKeywordPart:()=>NP,textPart:()=>lS,textRangeContainsPositionInclusive:()=>P8,textSpanContainsPosition:()=>tb,textSpanContainsTextSpan:()=>qre,textSpanEnd:()=>Xy,textSpanIntersection:()=>PTe,textSpanIntersectsWith:()=>Bz,textSpanIntersectsWithPosition:()=>NMe,textSpanIntersectsWithTextSpan:()=>kTe,textSpanIsEmpty:()=>PMe,textSpanOverlap:()=>ITe,textSpanOverlapsWith:()=>K1,textSpansEqual:()=>C1,textToKeywordObj:()=>rE,timestamp:()=>H_,toArray:()=>BC,toBuilderFileEmit:()=>age,toBuilderStateFileInfoForMultiEmit:()=>oge,toEditorSettings:()=>lle,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>gm,toProgramEmitPending:()=>sge,tokenIsIdentifierOrKeyword:()=>CT,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RX,tokenToString:()=>Cf,trace:()=>Df,tracing:()=>ps,tracingEnabled:()=>kL,transform:()=>AOe,transformClassFields:()=>f4e,transformDeclarations:()=>lxe,transformECMAScriptModule:()=>Nme,transformES2015:()=>axe,transformES2016:()=>oxe,transformES2017:()=>exe,transformES2018:()=>d4e,transformES2019:()=>p4e,transformES2020:()=>txe,transformES2021:()=>Dme,transformES5:()=>Pme,transformESDecorators:()=>Z2e,transformESNext:()=>Ime,transformGenerators:()=>sxe,transformJsx:()=>ixe,transformLegacyDecorators:()=>Lae,transformModule:()=>Oae,transformNamedEvaluation:()=>mE,transformNodeModule:()=>b4e,transformNodes:()=>x$,transformSystemModule:()=>v4e,transformTypeScript:()=>u4e,transpile:()=>o3e,transpileModule:()=>She,transpileOptionValueCompilerOptions:()=>Vpe,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>qZ,tryCast:()=>to,tryDirectoryExists:()=>mce,tryExtractTSExtension:()=>PH,tryFileExists:()=>Mj,tryGetClassExtendingExpressionWithTypeArguments:()=>IH,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>zN,tryGetDirectories:()=>oB,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>N9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>HJ,tryGetModuleSpecifierFromDeclaration:()=>C7,tryGetNativePerformanceHooks:()=>Rc,tryGetPropertyAccessOrIdentifierToString:()=>B7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>joe,tryGetSourceMappingURL:()=>JLe,tryGetTextOfPropertyName:()=>tH,tryIOAndConsumeErrors:()=>gce,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>j2e,tryReadDirectory:()=>LAe,tryReadFile:()=>ZJ,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>Sz,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>fQ,typeAliasNamePart:()=>w6,typeDirectiveIsEqualTo:()=>GMe,typeKeywords:()=>eee,typeParameterNamePart:()=>GZ,typeReferenceResolutionNameAndModeGetter:()=>Xme,typeToDisplayParts:()=>wj,unchangedPollThresholds:()=>Bre,unchangedTextChangeRange:()=>OL,unescapeLeadingUnderscores:()=>Ic,unmangleScopedPackageName:()=>DQ,unorderedRemoveItem:()=>A8,unorderedRemoveItemAt:()=>zC,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>Tde,updateErrorForNoInputFiles:()=>Ope,updateLanguageServiceSourceFile:()=>fye,updateMissingFilePathsWatch:()=>jme,updatePackageJsonWatch:()=>N4e,updateResolutionField:()=>l$,updateSharedExtendedConfigFileWatcher:()=>D$,updateSourceFile:()=>Hoe,updateWatchingWildcardDirectories:()=>jW,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>wT,utf16EncodeAsString:()=>ak,validateLocaleAndSetLanguage:()=>RTe,valuesHelper:()=>xJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>Iae,visitCommaListElements:()=>NQ,visitEachChild:()=>Xo,visitFunctionBody:()=>ox,visitIterationBody:()=>LS,visitLexicalEnvironment:()=>ume,visitNode:()=>Bn,visitNodes:()=>Wa,visitParameterList:()=>sm,walkUpBindingElementsAndPatterns:()=>OU,walkUpLexicalEnvironments:()=>OW,walkUpOuterExpressions:()=>bpe,walkUpParenthesizedExpressions:()=>IS,walkUpParenthesizedTypes:()=>QM,walkUpParenthesizedTypesAndGetParentAndChild:()=>uSe,whitespaceOrMapCommentRegExp:()=>Pae,writeCommentRange:()=>gG,writeFile:()=>G9,writeFileEnsuringDirectories:()=>L7,zipWith:()=>Zr});var l_=G({"src/server/_namespaces/ts.ts"(){md(),B$(),xl(),cPe(),$l()}}),Ph={};Oe(Ph,{ActionInvalidate:()=>dZ,ActionPackageInstalled:()=>T8e,ActionSet:()=>_Z,ActionWatchTypingLocations:()=>Ise,Arguments:()=>Cge,AutoImportProviderProject:()=>gn,AuxiliaryProject:()=>xt,CharRangeSection:()=>ub,CloseFileWatcherEvent:()=>Yu,CommandNames:()=>N_,ConfigFileDiagEvent:()=>Kd,ConfiguredProject:()=>qr,CreateDirectoryWatcherEvent:()=>m_,CreateFileWatcherEvent:()=>zv,Errors:()=>Dt,EventBeginInstallTypes:()=>dAe,EventEndInstallTypes:()=>pAe,EventInitializationFailed:()=>S8e,EventTypesRegistry:()=>EF,ExternalProject:()=>mt,GcTimer:()=>lt,InferredProject:()=>_o,LargeFileReferencedEvent:()=>c_,LineIndex:()=>Me,LineLeaf:()=>Mi,LineNode:()=>jn,LogLevel:()=>ht,Msg:()=>_t,OpenFileInfoTelemetryEvent:()=>jg,Project:()=>Ir,ProjectInfoTelemetryEvent:()=>Oh,ProjectKind:()=>li,ProjectLanguageServiceStateEvent:()=>iy,ProjectLoadingFinishEvent:()=>U0,ProjectLoadingStartEvent:()=>Ma,ProjectReferenceProjectLoadKind:()=>nm,ProjectService:()=>gy,ProjectsUpdatedInBackgroundEvent:()=>q_,ScriptInfo:()=>ro,ScriptVersionCache:()=>aw,Session:()=>Gv,TextStorage:()=>ha,ThrottledOperations:()=>ut,TypingsCache:()=>mc,allFilesAreJsOrDts:()=>jc,allRootFilesAreJsOrDts:()=>$a,asNormalizedPath:()=>de,convertCompilerOptions:()=>Qr,convertFormatOptions:()=>oi,convertScriptKindName:()=>xu,convertTypeAcquisition:()=>es,convertUserPreferences:()=>We,convertWatchOptions:()=>co,countEachFileTypes:()=>Fi,createInstallTypingsRequest:()=>ee,createModuleSpecifierCache:()=>GT,createNormalizedPathMap:()=>ue,createPackageJsonCache:()=>oh,createSortedArray:()=>Le,emptyArray:()=>ke,findArgument:()=>fAe,forEachResolvedProjectReferenceProject:()=>Zt,formatDiagnosticToProtocol:()=>ka,formatMessage:()=>gu,getBaseConfigFileName:()=>it,getLocationInNewDocument:()=>Si,hasArgument:()=>b8e,hasNoTypeScriptSource:()=>Xu,indent:()=>Sj,isBackgroundProject:()=>Jr,isConfigFile:()=>fp,isConfiguredProject:()=>vc,isDynamicFileName:()=>so,isExternalProject:()=>er,isInferredProject:()=>sl,isInferredProjectName:()=>Ne,makeAutoImportProviderProjectName:()=>Ve,makeAuxiliaryProjectName:()=>pt,makeInferredProjectName:()=>Be,maxFileSize:()=>x_,maxProgramSizeForNonTsFiles:()=>mu,normalizedPathToPath:()=>oe,nowString:()=>_Ae,nullCancellationToken:()=>du,nullTypingsInstaller:()=>Rr,projectContainsInfoDirectly:()=>Ca,protocol:()=>Gn,removeSorted:()=>Ye,stringifyIndented:()=>qW,toEvent:()=>yu,toNormalizedPath:()=>te,tryConvertScriptKindName:()=>Ui,typingsInstaller:()=>I,updateProjectIfDirty:()=>Qa});var Ap=G({"src/typescript/_namespaces/ts.server.ts"(){kse(),$l()}}),Mb={};Oe(Mb,{ANONYMOUS:()=>bce,AccessFlags:()=>ure,AssertionLevel:()=>AT,AssignmentDeclarationKind:()=>yre,AssignmentKind:()=>boe,Associativity:()=>Ude,BreakpointResolver:()=>TDe,BuilderFileEmit:()=>Pxe,BuilderProgramKind:()=>Nxe,BuilderState:()=>cD,BundleFileSectionKind:()=>DX,CallHierarchy:()=>Jj,CharacterCodes:()=>Cre,CheckFlags:()=>are,CheckMode:()=>_E,ClassificationType:()=>Bse,ClassificationTypeNames:()=>SAe,CommentDirectiveType:()=>_X,Comparison:()=>sn,CompletionInfoFlags:()=>G$,CompletionTriggerKind:()=>Rse,Completions:()=>ow,ContainerFlags:()=>kQ,ContextFlags:()=>hX,Debug:()=>re,DiagnosticCategory:()=>Nz,Diagnostics:()=>N,DocumentHighlights:()=>yhe,ElementFlags:()=>lre,EmitFlags:()=>AX,EmitHint:()=>Pre,EmitOnly:()=>mX,EndOfLineState:()=>gZ,EnumKind:()=>ore,ExitStatus:()=>AU,ExportKind:()=>HAe,Extension:()=>Dre,ExternalEmitHelpers:()=>kre,FileIncludeKind:()=>dX,FilePreprocessingDiagnosticsKind:()=>pX,FileSystemEntryKind:()=>aP,FileWatcherEventKind:()=>xTe,FindAllReferences:()=>Wf,FlattenLevel:()=>vme,FlowFlags:()=>kz,ForegroundColorEscapeSequences:()=>Kme,FunctionFlags:()=>Vde,GeneratedIdentifierFlags:()=>W_e,GetLiteralTextFlags:()=>jde,GoToDefinition:()=>C4,HighlightSpanKind:()=>Lse,IdentifierNameMap:()=>uj,IdentifierNameMultiMap:()=>Rae,ImportKind:()=>UAe,ImportsNotUsedAsValues:()=>n9,IndentStyle:()=>Ose,IndexFlags:()=>fre,IndexKind:()=>dre,InferenceFlags:()=>gre,InferencePriority:()=>mre,InlayHintKind:()=>Mse,InlayHints:()=>vke,InternalEmitFlags:()=>Ire,InternalSymbolName:()=>sre,InvalidatedProjectKind:()=>uAe,JSDocParsingMode:()=>Rre,JsDoc:()=>nO,JsTyping:()=>kk,JsxEmit:()=>DU,JsxFlags:()=>F_e,JsxReferenceKind:()=>_re,LanguageServiceMode:()=>z$,LanguageVariant:()=>Are,LexicalEnvironmentFlags:()=>CX,ListFormat:()=>IX,LogLevel:()=>O_e,MemberOverrideStatus:()=>Yne,ModifierFlags:()=>Iz,ModuleDetectionKind:()=>vre,ModuleInstanceState:()=>M2e,ModuleKind:()=>wz,ModuleResolutionKind:()=>t9,ModuleSpecifierEnding:()=>_Ee,NavigateTo:()=>hCe,NavigationBar:()=>T3e,NewLineKind:()=>Ere,NodeBuilderFlags:()=>Qne,NodeCheckFlags:()=>cre,NodeFactoryFlags:()=>Ioe,NodeFlags:()=>tu,NodeResolutionFeatures:()=>mae,ObjectFlags:()=>bX,OperationCanceledException:()=>QO,OperatorPrecedence:()=>Hde,OrganizeImports:()=>lD,OrganizeImportsMode:()=>wse,OuterExpressionKinds:()=>Nre,OutliningElementsCollector:()=>Pke,OutliningSpanKind:()=>z3,OutputFileType:()=>yAe,PackageJsonAutoImportPreference:()=>wge,PackageJsonDependencyGroup:()=>Pse,PatternMatchKind:()=>tee,PollingInterval:()=>Ore,PollingWatchKind:()=>Sre,PragmaKindFlags:()=>wre,PrivateIdentifierKind:()=>LY,ProcessLevel:()=>Ame,ProgramUpdateLevel:()=>Ume,QuotePreference:()=>fhe,RelationComparisonResult:()=>Xne,Rename:()=>v0e,ScriptElementKind:()=>bAe,ScriptElementKindModifier:()=>TAe,ScriptKind:()=>EX,ScriptSnapshot:()=>mZ,ScriptTarget:()=>xre,SemanticClassificationFormat:()=>Nse,SemanticMeaning:()=>vce,SemicolonPreference:()=>Fse,SignatureCheckMode:()=>y$,SignatureFlags:()=>CU,SignatureHelp:()=>gue,SignatureKind:()=>SX,SmartSelectionRange:()=>Mke,SnippetKind:()=>IU,SortKind:()=>kM,StructureIsReused:()=>gX,SymbolAccessibility:()=>tre,SymbolDisplay:()=>W6,SymbolDisplayPartKind:()=>Wse,SymbolFlags:()=>yX,SymbolFormatFlags:()=>ere,SyntaxKind:()=>NM,SyntheticSymbolKind:()=>nre,Ternary:()=>hre,ThrottledCancellationToken:()=>gye,TokenClass:()=>vAe,TokenFlags:()=>fX,TransformFlags:()=>xX,TypeFacts:()=>oj,TypeFlags:()=>vX,TypeFormatFlags:()=>Zne,TypeMapKind:()=>pre,TypePredicateKind:()=>rre,TypeReferenceSerializationKind:()=>ire,UnionReduction:()=>Pz,UpToDateStatusType:()=>yge,VarianceFlags:()=>TX,Version:()=>ZT,VersionRange:()=>yN,WatchDirectoryFlags:()=>Rz,WatchDirectoryKind:()=>Tre,WatchFileKind:()=>bre,WatchLogLevel:()=>Hme,WatchType:()=>r0,accessPrivateIdentifier:()=>yme,addDisposableResourceHelper:()=>kG,addEmitFlags:()=>cE,addEmitHelper:()=>v3,addEmitHelpers:()=>$N,addInternalEmitFlags:()=>CG,addNodeFactoryPatcher:()=>oUe,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>sW,addSyntheticTrailingComment:()=>koe,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>NG,affectsDeclarationPathOptionDeclarations:()=>iae,affectsEmitOptionDeclarations:()=>rae,allKeysStartWithDot:()=>xQ,altDirectorySeparator:()=>r7,and:()=>mU,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>vz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>bz,arraysEqual:()=>sf,assertType:()=>gN,assign:()=>AS,assignHelper:()=>dJ,asyncDelegator:()=>mJ,asyncGeneratorHelper:()=>pJ,asyncSuperHelper:()=>nS,asyncValues:()=>gJ,attachFileToDiagnostics:()=>jN,awaitHelper:()=>T3,awaiterHelper:()=>yJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>w3,breakIntoCharacterSpans:()=>Q8e,breakIntoWordSpans:()=>iCe,buildLinkParts:()=>wAe,buildOpts:()=>XG,buildOverload:()=>O0e,bundlerModuleNameResolver:()=>ELe,canBeConvertedToAsync:()=>pCe,canHaveDecorators:()=>S6,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>J8,canHaveIllegalDecorators:()=>Spe,canHaveIllegalModifiers:()=>GEe,canHaveIllegalType:()=>L6e,canHaveIllegalTypeParameters:()=>zEe,canHaveJSDoc:()=>T2,canHaveLocals:()=>XD,canHaveModifiers:()=>DA,canHaveSymbol:()=>ck,canJsonReportNoInputFiles:()=>e$,canProduceDiagnostics:()=>Fae,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Oxe,canWatchAtTypes:()=>Mxe,canWatchDirectoryOrFile:()=>rZ,cartesianProduct:()=>mTe,cast:()=>uc,chainBundle:()=>_C,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>Vre,changeCompilerHostLikeToUseCache:()=>NR,changeExtension:()=>SA,changesAffectModuleResolution:()=>Td,changesAffectingProgramStructure:()=>zMe,childIsDecorated:()=>b7,classElementOrClassElementParameterIsDecorated:()=>xde,classHasClassThisAssignment:()=>bme,classHasDeclaredOrExplicitlyAssignedName:()=>Y2e,classHasExplicitlyAssignedName:()=>Sme,classOrConstructorParameterIsDecorated:()=>yP,classPrivateFieldGetHelper:()=>IJ,classPrivateFieldInHelper:()=>Noe,classPrivateFieldSetHelper:()=>kJ,classicNameResolver:()=>C6,classifier:()=>kOe,cleanExtendedConfigCache:()=>Gme,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>VQ,climbPastPropertyAccess:()=>TZ,climbPastPropertyOrElementAccess:()=>Lge,clone:()=>S8,cloneCompilerOptions:()=>PZ,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>YE,codefix:()=>fT,collapseTextChangeRangesAcrossMultipleVersions:()=>nb,collectExternalModuleInfo:()=>sj,combine:()=>FD,combinePaths:()=>vl,commentPragmas:()=>kU,commonOptionsWithBuild:()=>o$,commonPackageFolders:()=>Soe,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>cJ,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>Rv,comparePathsCaseInsensitive:()=>n7,comparePathsCaseSensitive:()=>_h,comparePatternKeys:()=>I2e,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>KG,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>dQ,compilerOptionsIndicateEsModules:()=>OZ,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>JQ,computeLineAndCharacterOfPosition:()=>Nd,computeLineOfPosition:()=>TN,computeLineStarts:()=>RM,computePositionOfLineAndCharacter:()=>H_e,computeSignature:()=>TF,computeSignatureWithDiagnostics:()=>nge,computeSuggestionDiagnostics:()=>Ice,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>cq,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>nx,containsParseError:()=>$z,containsPath:()=>OE,convertCompilerOptionsForTelemetry:()=>n$,convertCompilerOptionsFromJson:()=>lLe,convertJsonOption:()=>x6,convertToBase64:()=>bSe,convertToJson:()=>Xoe,convertToObject:()=>Rpe,convertToOptionsWithAbsolutePaths:()=>$G,convertToRelativePath:()=>PX,convertToTSConfig:()=>a2e,convertTypeAcquisitionFromJson:()=>UUe,copyComments:()=>nB,copyEntries:()=>oie,copyLeadingComments:()=>rB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>PF,copyTrailingComments:()=>Rj,couldStartTrivia:()=>HD,countWhere:()=>dp,createAbstractBuilder:()=>J4e,createAccessorPropertyBackingField:()=>qJ,createAccessorPropertyGetRedirector:()=>JEe,createAccessorPropertySetRedirector:()=>QY,createBaseNodeFactory:()=>Yde,createBinaryExpressionTrampoline:()=>zG,createBindingHelper:()=>q7,createBuildInfo:()=>Hae,createBuilderProgram:()=>rge,createBuilderProgramUsingProgramBuildInfo:()=>U4e,createBuilderStatusReporter:()=>QE,createCacheWithRedirects:()=>aae,createCacheableExportInfoMap:()=>jAe,createCachedDirectoryStructureHost:()=>Jae,createClassNamedEvaluationHelperBlock:()=>WW,createClassThisAssignmentBlock:()=>T$,createClassifier:()=>B8e,createCommentDirectivesMap:()=>YTe,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Ipe,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>M4e,createCompilerHostFromProgramHost:()=>Hxe,createCompilerHostWorker:()=>$me,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>UL,createDiagnosticForFileFromMessageChain:()=>oE,createDiagnosticForNode:()=>Bs,createDiagnosticForNodeArray:()=>Yz,createDiagnosticForNodeArrayFromMessageChain:()=>b9,createDiagnosticForNodeFromMessageChain:()=>wN,createDiagnosticForNodeInSourceFile:()=>Ud,createDiagnosticForRange:()=>Qz,createDiagnosticMessageChainFromDiagnostic:()=>kc,createDiagnosticReporter:()=>w$,createDocumentPositionMapper:()=>QLe,createDocumentRegistry:()=>U8e,createDocumentRegistryInternal:()=>Ace,createEmitAndSemanticDiagnosticsBuilderProgram:()=>cge,createEmitHelperFactory:()=>ipe,createEmptyExports:()=>Boe,createExpressionForJsxElement:()=>hpe,createExpressionForJsxFragment:()=>P6e,createExpressionForObjectLiteralElementLike:()=>LEe,createExpressionForPropertyName:()=>ype,createExpressionFromEntityName:()=>zoe,createExternalHelpersImportDeclarationIfNeeded:()=>UJ,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>g7,createForOfBindingStatement:()=>wEe,createGetCanonicalFileName:()=>H1,createGetSourceFile:()=>gxe,createGetSymbolAccessibilityDiagnosticForNode:()=>QN,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wme,createGetSymbolWalker:()=>LLe,createIncrementalCompilerHost:()=>qxe,createIncrementalProgram:()=>gge,createInputFiles:()=>sUe,createInputFilesWithFilePaths:()=>tc,createInputFilesWithFileTexts:()=>gEe,createJsxFactoryExpression:()=>NEe,createLanguageService:()=>_ye,createLanguageServiceSourceFile:()=>xq,createMemberAccessForPropertyName:()=>sF,createModeAwareCache:()=>IR,createModeAwareCacheKey:()=>_$,createModuleNotFoundChain:()=>KU,createModuleResolutionCache:()=>a4,createModuleResolutionLoader:()=>I$,createModuleResolutionLoaderUsingGlobalCache:()=>oZ,createModuleSpecifierResolutionHost:()=>y4,createMultiMap:()=>zg,createNodeConverters:()=>y6e,createNodeFactory:()=>xG,createOptionNameMap:()=>Joe,createOverload:()=>sPe,createPackageJsonImportFilter:()=>Lj,createPackageJsonInfo:()=>ihe,createParenthesizerRules:()=>dEe,createPatternMatcher:()=>H8e,createPrependNodes:()=>ise,createPrinter:()=>F3,createPrinterWithDefaults:()=>Bme,createPrinterWithRemoveComments:()=>_4,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zme,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>C$,createProgram:()=>YQ,createProgramHost:()=>SF,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>fse,createResolutionCache:()=>Wxe,createRuntimeTypeSerializer:()=>_4e,createScanner:()=>CS,createSemanticDiagnosticsBuilderProgram:()=>wxe,createSet:()=>J5,createSolutionBuilder:()=>F$,createSolutionBuilderHost:()=>n8e,createSolutionBuilderWithWatch:()=>r8e,createSolutionBuilderWithWatchHost:()=>vJe,createSortedArray:()=>g2,createSourceFile:()=>eQ,createSourceMapGenerator:()=>_me,createSourceMapSource:()=>cUe,createSuperAccessVariableStatement:()=>Cme,createSymbolTable:()=>zd,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>ETe,createTextChange:()=>LZ,createTextChangeFromStartLength:()=>Cj,createTextChangeRange:()=>WX,createTextRangeFromNode:()=>RZ,createTextRangeFromSpan:()=>MZ,createTextSpan:()=>p1,createTextSpanFromBounds:()=>Yy,createTextSpanFromNode:()=>sT,createTextSpanFromRange:()=>PP,createTextSpanFromStringLiteralLikeContent:()=>CF,createTextWriter:()=>Nie,createTokenRange:()=>Hie,createTypeChecker:()=>oT,createTypeReferenceDirectiveResolutionCache:()=>sae,createTypeReferenceResolutionLoader:()=>Yae,createUnparsedSourceFile:()=>mEe,createWatchCompilerHost:()=>Ese,createWatchCompilerHostOfConfigFile:()=>Z4e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sse,createWatchFactory:()=>dge,createWatchHost:()=>_ge,createWatchProgram:()=>hj,createWatchStatusReporter:()=>Gxe,createWriteFileMeasuringIO:()=>$ae,declarationNameToString:()=>hm,decodeMappings:()=>dme,decodedTextSpanIntersectsWith:()=>FX,decorateHelper:()=>lJ,deduplicate:()=>th,defaultIncludeSpec:()=>Dk,defaultInitCompilerOptions:()=>_Q,defaultMaximumTruncationLength:()=>j7,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>YO,diagnosticToString:()=>$3,directoryProbablyExists:()=>O0,directorySeparator:()=>qp,displayPart:()=>yE,displayPartsToString:()=>ule,disposeEmitNodes:()=>cI,disposeResourcesHelper:()=>PG,documentSpansEqual:()=>$h,dumpTracingLegend:()=>e9,elementAt:()=>Zn,elideNodes:()=>t4,emitComments:()=>ZMe,emitDetachedComments:()=>mSe,emitFiles:()=>Uae,emitFilesAndReportErrors:()=>bse,emitFilesAndReportErrorsAndGetExitStatus:()=>Uxe,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>Wie,emitNewLineBeforeLeadingComments:()=>pSe,emitNewLineBeforeLeadingCommentsOfPosition:()=>bA,emitSkippedWithNoDiagnostics:()=>Yme,emitUsingBuildInfo:()=>D4e,emptyArray:()=>Yn,emptyFileSystemEntries:()=>Xde,emptyMap:()=>ME,emptyOptions:()=>lx,emptySet:()=>uMe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>Fd,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Su,entityNameToString:()=>iE,enumerateInsertsAndDeletes:()=>zD,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>b3,escapeJsxAttributeString:()=>M7,escapeLeadingUnderscores:()=>ey,escapeNonAsciiString:()=>SH,escapeSnippetText:()=>nD,escapeString:()=>Q8,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>JY,explainFiles:()=>hse,explainIfFileIsRedirectAndImpliedFormat:()=>yse,exportAssignmentIsAlias:()=>K8,exportStarHelper:()=>DJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>vJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>EG,externalHelpersModuleNameText:()=>HN,factory:()=>he,fileExtensionIs:()=>mm,fileExtensionIsOneOf:()=>pv,fileIncludeReasonToDiagnostics:()=>cZ,fileShouldUseJavaScriptRequire:()=>BAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>rse,find:()=>lr,findAncestor:()=>Ua,findBestPatternMatch:()=>AL,findChildOfKind:()=>qm,findComputedPropertyNameCacheAssignment:()=>KJ,findConfigFile:()=>Jme,findContainingList:()=>$se,findDiagnosticForNode:()=>ahe,findFirstNonJsxWhitespaceToken:()=>Gge,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>Hse,findMap:()=>cs,findModifier:()=>QW,findNextToken:()=>N6,findPackageJson:()=>aB,findPackageJsons:()=>nhe,findPrecedingMatchingToken:()=>q$,findPrecedingToken:()=>bv,findSuperStatementIndexPath:()=>mme,findTokenOnLeftOfPosition:()=>Xse,findUseStrictPrologue:()=>qY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>XZ,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>gCe,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>vr,flattenDestructuringAssignment:()=>yI,flattenDestructuringBinding:()=>pF,flattenDiagnosticMessageText:()=>D2,forEach:()=>Ot,forEachAncestor:()=>qTe,forEachAncestorDirectory:()=>jC,forEachChild:()=>s_,forEachChildRecursively:()=>cF,forEachEmittedFile:()=>zQ,forEachEnclosingBlockScopeContainer:()=>hde,forEachEntry:()=>Jb,forEachExternalModuleToImportFrom:()=>VAe,forEachImportClauseDeclaration:()=>aG,forEachKey:()=>gA,forEachLeadingCommentRange:()=>ep,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>Zz,forEachResolvedProjectReference:()=>k6,forEachReturnStatement:()=>dR,forEachRight:()=>bo,forEachTrailingCommentRange:()=>k8,forEachTsConfigPropArray:()=>q2,forEachUnique:()=>hE,forEachYieldExpression:()=>hie,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>wR,formatDiagnostic:()=>qme,formatDiagnostics:()=>hxe,formatDiagnosticsWithColorAndContext:()=>kA,formatGeneratedName:()=>D3,formatGeneratedNamePart:()=>GG,formatLocation:()=>qae,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>V0,fullTripleSlashAMDReferencePathRegEx:()=>voe,fullTripleSlashReferencePathRegEx:()=>yoe,generateDjb2Hash:()=>Mz,generateTSConfig:()=>c2e,generatorHelper:()=>DG,getAdjustedReferenceLocation:()=>zge,getAdjustedRenameLocation:()=>DZ,getAliasDeclarationFromName:()=>vP,getAllAccessorDeclarations:()=>oI,getAllDecoratorsOfClass:()=>gme,getAllDecoratorsOfClassElement:()=>wae,getAllJSDocTags:()=>WU,getAllJSDocTagsOfKind:()=>jX,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Vae,getAllSuperTypeNodes:()=>lG,getAllUnscopedEmitHelpers:()=>MY,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>oC,getAnyExtensionFromPath:()=>t7,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>I9,getAssignedName:()=>FU,getAssignedNameOfIdentifier:()=>pj,getAssignmentDeclarationKind:()=>jy,getAssignmentDeclarationPropertyAccessKind:()=>XM,getAssignmentTargetKind:()=>q8,getAutomaticTypeDirectiveNames:()=>Qpe,getBaseFileName:()=>Jg,getBinaryOperatorPrecedence:()=>bH,getBuildInfo:()=>Fme,getBuildInfoFileVersionMap:()=>kxe,getBuildInfoText:()=>f4,getBuildOrderFromAnyBuildOrder:()=>vge,getBuilderCreationParameters:()=>nZ,getBuilderFileEmit:()=>P6,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>gR,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Eb,getCombinedNodeFlags:()=>rR,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>K_e,getCommentRange:()=>MS,getCommonSourceDirectory:()=>zW,getCommonSourceDirectoryOfConfig:()=>hF,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>FUe,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>p4,getConstantValue:()=>JN,getContainerFlags:()=>R2e,getContainerNode:()=>RR,getContainingClass:()=>$b,getContainingClassExcludingClassDecorators:()=>A9,getContainingClassStaticBlock:()=>tG,getContainingFunction:()=>zE,getContainingFunctionDeclaration:()=>oSe,getContainingFunctionOrClassStaticBlock:()=>vie,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>Aee,getContextualTypeFromParent:()=>aq,getContextualTypeFromParentOrAncestorTypeNode:()=>bf,getCurrentTime:()=>xse,getDeclarationDiagnostics:()=>T4e,getDeclarationEmitExtensionForPath:()=>TY,getDeclarationEmitOutputFilePath:()=>Rie,getDeclarationEmitOutputFilePathWorker:()=>Mie,getDeclarationFromName:()=>cG,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Rh,getDeclarationsOfKind:()=>ude,getDeclaredExpandoInitializer:()=>pR,getDecorators:()=>OM,getDefaultCompilerOptions:()=>lye,getDefaultExportInfoWorker:()=>phe,getDefaultFormatCodeSettings:()=>pZ,getDefaultLibFileName:()=>$D,getDefaultLibFilePath:()=>pDe,getDefaultLikeExportInfo:()=>dhe,getDiagnosticText:()=>qoe,getDiagnosticsWithinSpan:()=>OAe,getDirectoryPath:()=>ws,getDirectoryToWatchFailedLookupLocation:()=>Fxe,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>X4e,getDocumentPositionMapper:()=>sCe,getESModuleInterop:()=>b1,getEditsForFileRename:()=>QAe,getEffectiveBaseTypeNode:()=>YC,getEffectiveConstraintOfTypeParameter:()=>a9,getEffectiveContainerForJSDocTemplateTag:()=>Iie,getEffectiveImplementsTypeNodes:()=>ZM,getEffectiveInitializer:()=>sH,getEffectiveJSDocHost:()=>YM,getEffectiveModifierFlags:()=>Cb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Fx,getEffectiveModifierFlagsNoCache:()=>n6,getEffectiveReturnTypeNode:()=>kS,getEffectiveSetAccessorTypeAnnotationNode:()=>Kb,getEffectiveTypeAnnotationNode:()=>Zy,getEffectiveTypeParameterDeclarations:()=>Hb,getEffectiveTypeRoots:()=>QG,getElementOrPropertyAccessArgumentExpressionOrName:()=>lH,getElementOrPropertyAccessName:()=>eI,getElementsOfBindingOrAssignmentPattern:()=>BG,getEmitDeclarations:()=>gv,getEmitFlags:()=>wd,getEmitHelpers:()=>NY,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>QD,getEnclosingContainer:()=>gie,getEncodedSemanticClassifications:()=>$Ae,getEncodedSyntacticClassifications:()=>qAe,getEndLinePosition:()=>cie,getEntityNameFromTypeNode:()=>cY,getEntrypointsFromPackageJsonInfo:()=>s4,getErrorCountForSummary:()=>pse,getErrorSpanForNode:()=>BL,getErrorSummaryText:()=>uge,getEscapedTextOfIdentifierOrLiteral:()=>nI,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>KM,getExportAssignmentExpression:()=>Pde,getExportInfoMap:()=>Sce,getExportNeedsImportStarHelper:()=>aj,getExpressionAssociativity:()=>Y8,getExpressionPrecedence:()=>_G,getExternalHelpersModuleName:()=>e4,getExternalModuleImportEqualsDeclarationExpression:()=>iG,getExternalModuleName:()=>w9,getExternalModuleNameFromDeclaration:()=>Rde,getExternalModuleNameFromPath:()=>xH,getExternalModuleNameLiteral:()=>oD,getExternalModuleRequireArgument:()=>Sie,getFallbackOptions:()=>UQ,getFileEmitOutput:()=>O4e,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>t$,getFileWatcherEventKind:()=>j_e,getFilesInErrorForSummary:()=>aZ,getFirstConstructorWithBody:()=>sC,getFirstIdentifier:()=>PS,getFirstNonSpaceCharacterPosition:()=>kF,getFirstProjectOutput:()=>dxe,getFixableErrorSpanExpression:()=>FAe,getFormatCodeSettingsForWriting:()=>uq,getFullWidth:()=>FL,getFunctionFlags:()=>ob,getHeritageClause:()=>hA,getHostSignatureFromJSDoc:()=>LN,getIdentifierAutoGenerate:()=>uUe,getIdentifierGeneratedImportReference:()=>bEe,getIdentifierTypeArguments:()=>J7,getImmediatelyInvokedFunctionExpression:()=>v7,getImpliedNodeFormatForFile:()=>Zae,getImpliedNodeFormatForFileWorker:()=>ese,getImportNeedsImportDefaultHelper:()=>aD,getImportNeedsImportStarHelper:()=>D6,getIndentSize:()=>HE,getIndentString:()=>bY,getInferredLibraryNameResolveFrom:()=>VW,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>_Y,getInitializerOfBindingOrAssignmentElement:()=>XY,getInterfaceBaseTypeNodes:()=>gH,getInternalEmitFlags:()=>HC,getInvokedExpression:()=>nG,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>LTe,getJSDocClassTag:()=>Q_e,getJSDocCommentRanges:()=>S9,getJSDocCommentsAndTags:()=>fH,getJSDocDeprecatedTag:()=>GTe,getJSDocDeprecatedTagNoCache:()=>jTe,getJSDocEnumTag:()=>VTe,getJSDocHost:()=>k7,getJSDocImplementsTags:()=>OTe,getJSDocOverrideTagNoCache:()=>zTe,getJSDocParameterTags:()=>o_,getJSDocParameterTagsNoCache:()=>Y_e,getJSDocPrivateTag:()=>MMe,getJSDocPrivateTagNoCache:()=>WTe,getJSDocProtectedTag:()=>BTe,getJSDocProtectedTagNoCache:()=>LMe,getJSDocPublicTag:()=>RMe,getJSDocPublicTagNoCache:()=>FTe,getJSDocReadonlyTag:()=>OMe,getJSDocReadonlyTagNoCache:()=>FMe,getJSDocReturnTag:()=>UTe,getJSDocReturnType:()=>GX,getJSDocRoot:()=>_H,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>Z_e,getJSDocTags:()=>WM,getJSDocTagsNoCache:()=>w8,getJSDocTemplateTag:()=>HTe,getJSDocThisTag:()=>Xre,getJSDocType:()=>iR,getJSDocTypeAliasName:()=>Tpe,getJSDocTypeAssertionType:()=>x1,getJSDocTypeParameterDeclarations:()=>SY,getJSDocTypeParameterTags:()=>N8,getJSDocTypeParameterTagsNoCache:()=>MTe,getJSDocTypeTag:()=>FM,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>N3,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>JD,getLeadingCommentRangesOfNode:()=>WE,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>qL,getLibraryNameFromLibFileName:()=>Qae,getLineAndCharacterOfPosition:()=>xm,getLineInfo:()=>kae,getLineOfLocalPosition:()=>j9,getLineOfLocalPositionFromLineMap:()=>Z8,getLineStartPositionForPosition:()=>Ux,getLineStarts:()=>eR,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>i7,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>_ie,getLocalNameForExternalImport:()=>C3,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>dse,getMappedContextSpan:()=>Kge,getMappedDocumentSpan:()=>oce,getMappedLocation:()=>H3,getMatchedFileSpec:()=>vse,getMatchedIncludeSpec:()=>sZ,getMeaningFromDeclaration:()=>j$,getMeaningFromLocation:()=>xF,getMembersOfDeclaration:()=>yie,getModeForFileReference:()=>$Q,getModeForResolutionAtIndex:()=>Kae,getModeForUsageLocation:()=>PA,getModifiedTime:()=>ZO,getModifiers:()=>Xv,getModuleInstanceState:()=>YN,getModuleNameStringLiteralAt:()=>ZQ,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>FZ,getNameForExportedSymbol:()=>Oj,getNameFromIndexInfo:()=>ZTe,getNameFromPropertyName:()=>tq,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>Mpe,getNameOfDeclaration:()=>i_,getNameOfExpando:()=>oG,getNameOfJSDocTypedef:()=>RL,getNameOrArgument:()=>KC,getNameTable:()=>xee,getNamesForExportedSymbol:()=>hce,getNamespaceDeclarationNode:()=>H8,getNewLineCharacter:()=>JE,getNewLineKind:()=>Fj,getNewLineOrDefaultFromHost:()=>R6,getNewTargetContainer:()=>aSe,getNextJSDocCommentLocation:()=>Die,getNodeForGeneratedName:()=>$J,getNodeId:()=>vm,getNodeKind:()=>g4,getNodeModifiers:()=>X$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>Kre,getNonAssignmentOperatorForCompoundAssignment:()=>RQ,getNonAugmentationDeclaration:()=>pie,getNonDecoratorTokenPosOfNode:()=>fie,getNormalizedAbsolutePath:()=>vf,getNormalizedAbsolutePathWithoutRoot:()=>tf,getNormalizedPathComponents:()=>g0,getObjectFlags:()=>ji,getOperator:()=>rh,getOperatorAssociativity:()=>rI,getOperatorPrecedence:()=>Pie,getOptionFromName:()=>QJ,getOptionsForLibraryResolution:()=>E2e,getOptionsNameMap:()=>HG,getOrCreateEmitNode:()=>Sa,getOrCreateExternalHelpersModuleNameIfNeeded:()=>M6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Gg,getOriginalNodeId:()=>Nb,getOriginalSourceFile:()=>_Se,getOutputDeclarationFileName:()=>gF,getOutputExtension:()=>jae,getOutputFileNames:()=>Ome,getOutputPathsFor:()=>A$,getOutputPathsForBundle:()=>O3,getOwnEmitOutputFilePath:()=>hR,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>A6,getPackageJsonTypesVersionsPaths:()=>vQ,getPackageJsonsVisibleToFile:()=>rhe,getPackageNameFromTypesPackageName:()=>c4,getPackageScopeForPath:()=>m$,getParameterSymbolFromJSDoc:()=>$8,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>nq,getParseTreeNode:()=>__,getParsedCommandLineOfConfigFile:()=>JG,getPathComponents:()=>qc,getPathComponentsRelativeTo:()=>Ure,getPathFromPathComponents:()=>Iy,getPathUpdater:()=>Cce,getPathsBasePath:()=>Lie,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>N$,getPositionOfLineAndCharacter:()=>Fz,getPossibleGenericSignatures:()=>Uge,getPossibleOriginalInputExtensionForExtension:()=>Mde,getPossibleTypeArgumentsInfo:()=>K$,getPreEmitDiagnostics:()=>L4e,getPrecedingNonSpaceCharacterPosition:()=>Yge,getPrivateIdentifier:()=>K2e,getProperties:()=>b$,getProperty:()=>T8,getPropertyArrayElementValue:()=>iSe,getPropertyAssignmentAliasLikeExpression:()=>XMe,getPropertyNameForPropertyNameNode:()=>FN,getPropertyNameForUniqueESSymbol:()=>wde,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>WEe,getPropertySymbolFromBindingElement:()=>Pj,getPropertySymbolsFromContextualType:()=>_le,getQuoteFromPreference:()=>ice,getQuotePreference:()=>OS,getRangesWhere:()=>eu,getRefactorContextSpan:()=>NF,getReferencedFileLocation:()=>XQ,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>sP,getRelativePathFromFile:()=>wM,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>jZ,getReplacementSpanForContextToken:()=>wZ,getResolutionDiagnostic:()=>QQ,getResolutionModeOverride:()=>W3,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>pG,getRestIndicatorOfBindingOrAssignmentElement:()=>YY,getRestParameterElementType:()=>tSe,getRightMostAssignedExpression:()=>k9,getRootDeclaration:()=>vA,getRootDirectoryOfResolutionCache:()=>iZ,getRootLength:()=>Pg,getRootPathSplitLength:()=>Y4e,getScriptKind:()=>sce,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>hoe,getSelectedEffectiveModifierFlags:()=>fk,getSelectedSyntacticModifierFlags:()=>Ode,getSemanticClassifications:()=>JAe,getSemanticJsxChildren:()=>B9,getSetAccessorTypeAnnotationNode:()=>Lde,getSetAccessorValueParameter:()=>AH,getSetExternalModuleIndicator:()=>q9,getShebang:()=>Wz,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>D7,getSingleVariableOfVariableStatement:()=>I7,getSnapshotText:()=>Dj,getSnippetElement:()=>npe,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>ts,getSourceFilePathInNewDir:()=>Fie,getSourceFilePathInNewDirWorker:()=>Kg,getSourceFileVersionAsHashFromText:()=>lZ,getSourceFilesToEmit:()=>Oie,getSourceMapRange:()=>XL,getSourceMapper:()=>n3e,getSourceTextOfNodeFromSourceFile:()=>m7,getSpanOfTokenAtPosition:()=>M0,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>fR,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>Ry,getStaticPropertiesAndClassStaticBlock:()=>MQ,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>v$,getSuperContainer:()=>h0,getSupportedCodeFixes:()=>fle,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>_ce,getSymbolId:()=>$d,getSymbolNameForPrivateIdentifier:()=>WN,getSymbolTarget:()=>e2,getSyntacticClassifications:()=>hhe,getSyntacticModifierFlags:()=>ZC,getSyntacticModifierFlagsNoCache:()=>Fde,getSynthesizedDeepClone:()=>ih,getSynthesizedDeepCloneWithReplacements:()=>cce,getSynthesizedDeepClones:()=>WR,getSynthesizedDeepClonesWithReplacements:()=>tB,getSyntheticLeadingComments:()=>y3,getSyntheticTrailingComments:()=>PY,getTargetLabel:()=>SZ,getTargetOfBindingOrAssignmentElement:()=>gI,getTemporaryModuleResolutionState:()=>lae,getTextOfConstantValue:()=>Yv,getTextOfIdentifierOrLiteral:()=>K2,getTextOfJSDocComment:()=>EN,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Lv,getTextOfNodeFromSourceText:()=>h9,getTextOfPropertyName:()=>z8,getThisContainer:()=>RT,getThisParameter:()=>BN,getTokenAtPosition:()=>Lf,getTokenPosOfNode:()=>v2,getTokenSourceMapRange:()=>epe,getTouchingPropertyName:()=>cS,getTouchingToken:()=>MR,getTrailingCommentRanges:()=>SN,getTrailingSemicolonDeferringWriter:()=>z9,getTransformFlagsSubtreeExclusions:()=>v6e,getTransformers:()=>Rme,getTsBuildInfoEmitOutputFilePath:()=>PR,getTsConfigObjectLiteralExpression:()=>eG,getTsConfigPropArrayElementValue:()=>JM,getTypeAnnotationNode:()=>O7,getTypeArgumentOrTypeParameterList:()=>IAe,getTypeKeywordOfTypeOnlyImport:()=>qge,getTypeNode:()=>wY,getTypeNodeIfAccessible:()=>iB,getTypeParameterFromJsDoc:()=>sSe,getTypeParameterOwner:()=>R0,getTypesPackageName:()=>pae,getUILocale:()=>dTe,getUniqueName:()=>v4,getUniqueSymbolId:()=>RAe,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>mse,getWatchFactory:()=>mxe,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>p7,handleNoEmitOptions:()=>nse,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>e_,hasAmbientModifier:()=>il,hasChangesInResolutions:()=>sie,hasChildOfKind:()=>Jse,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>X2,hasDocComment:()=>DAe,hasDynamicName:()=>tI,hasEffectiveModifier:()=>tT,hasEffectiveModifiers:()=>Bie,hasEffectiveReadonlyModifier:()=>Ny,hasExtension:()=>r9,hasIndexSignature:()=>HZ,hasInitializer:()=>J2,hasInvalidEscape:()=>TH,hasJSDocNodes:()=>NT,hasJSDocParameterTags:()=>zz,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>g1,hasOverrideModifier:()=>zie,hasPossibleExternalModuleReference:()=>gde,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>Ej,hasQuestionToken:()=>M9,hasRecordedExternalHelpers:()=>R6e,hasResolutionModeOverride:()=>_6,hasRestParameter:()=>lde,hasScopeMarker:()=>WMe,hasStaticModifier:()=>ev,hasSyntacticModifier:()=>ul,hasSyntacticModifiers:()=>gSe,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>VD,hasType:()=>_P,hasTypeArguments:()=>cSe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>Poe,hostGetCanonicalFileName:()=>QC,hostUsesCaseSensitiveFileNames:()=>dG,idText:()=>Kr,identifierIsThisKeyword:()=>JL,identifierToKeywordKind:()=>uP,identity:()=>Of,identitySourceMapConsumer:()=>Vx,ignoreSourceNewlines:()=>qN,ignoredPaths:()=>NU,importDefaultHelper:()=>CJ,importFromModuleSpecifier:()=>XC,importNameElisionDisabled:()=>Qie,importStarHelper:()=>IG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>y9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>gj,injectClassNamedEvaluationHelperBlockIfMissing:()=>Eme,injectClassThisAssignmentIfMissing:()=>FW,insertImports:()=>zZ,insertLeadingStatement:()=>dUe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>_R,insertStatementAfterStandardPrologue:()=>VMe,insertStatementsAfterCustomPrologue:()=>wx,insertStatementsAfterStandardPrologue:()=>Um,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>bde,inverseJsxOptionMap:()=>uF,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>wJ,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>FR,isAccessor:()=>GM,isAccessorModifier:()=>EEe,isAliasSymbolDeclaration:()=>N7,isAliasableExpression:()=>O9,isAmbientModule:()=>dh,isAmbientPropertyDeclaration:()=>mde,isAnonymousFunctionDefinition:()=>R7,isAnyDirectorySeparator:()=>wU,isAnyImportOrBareOrAccessedRequire:()=>JMe,isAnyImportOrReExport:()=>eH,isAnyImportSyntax:()=>W8,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>AQ,isArgumentExpressionOfElementAccess:()=>Oge,isArray:()=>ls,isArrayBindingElement:()=>Uu,isArrayBindingOrAssignmentElement:()=>p9,isArrayBindingOrAssignmentPattern:()=>rde,isArrayBindingPattern:()=>Wd,isArrayLiteralExpression:()=>Ed,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>kP,isArrayTypeNode:()=>GY,isArrowFunction:()=>$m,isAsExpression:()=>eF,isAssertClause:()=>AP,isAssertEntry:()=>y6,isAssertionExpression:()=>f7,isAssertsKeyword:()=>dW,isAssignmentDeclaration:()=>eT,isAssignmentExpression:()=>Zv,isAssignmentOperator:()=>pk,isAssignmentPattern:()=>KD,isAssignmentTarget:()=>VE,isAsteriskToken:()=>BY,isAsyncFunction:()=>t6,isAsyncModifier:()=>NJ,isAutoAccessorPropertyDeclaration:()=>xb,isAwaitExpression:()=>ys,isAwaitKeyword:()=>ape,isBigIntLiteral:()=>OY,isBinaryExpression:()=>Ds,isBinaryOperatorToken:()=>UEe,isBindableObjectDefinePropertyCall:()=>A7,isBindableStaticAccessExpression:()=>mR,isBindableStaticElementAccessExpression:()=>GL,isBindableStaticNameExpression:()=>U8,isBindingElement:()=>sa,isBindingElementOfBareOrAccessedRequire:()=>Rs,isBindingName:()=>lR,isBindingOrAssignmentElement:()=>ld,isBindingOrAssignmentPattern:()=>u7,isBindingPattern:()=>$_,isBlock:()=>Ou,isBlockOrCatchScoped:()=>v9,isBlockScope:()=>$C,isBlockScopedContainerTopLevel:()=>pde,isBooleanLiteral:()=>fy,isBreakOrContinueStatement:()=>M8,isBreakStatement:()=>Loe,isBuildInfoFile:()=>fxe,isBuilderProgram:()=>gse,isBundle:()=>fpe,isBundleFileTextLike:()=>NSe,isCallChain:()=>AN,isCallExpression:()=>xd,isCallExpressionTarget:()=>hZ,isCallLikeExpression:()=>uR,isCallLikeOrFunctionLikeExpression:()=>eie,isCallOrNewExpression:()=>sk,isCallOrNewExpressionTarget:()=>yZ,isCallSignatureDeclaration:()=>Y7,isCallToHelper:()=>uW,isCaseBlock:()=>Fv,isCaseClause:()=>BT,isCaseKeyword:()=>Hh,isCaseOrDefaultClause:()=>$U,isCatchClause:()=>A3,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>Tp,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>qC,isCircularBuildOrder:()=>yj,isClassDeclaration:()=>Ih,isClassElement:()=>J_,isClassExpression:()=>v0,isClassInstanceProperty:()=>nde,isClassLike:()=>Fl,isClassMemberModifier:()=>jU,isClassNamedEvaluationHelperBlock:()=>mj,isClassOrTypeElement:()=>c7,isClassStaticBlockDeclaration:()=>Ep,isClassThisAssignmentBlock:()=>S$,isCollapsedRange:()=>XVe,isColonToken:()=>An,isCommaExpression:()=>rv,isCommaListExpression:()=>E_,isCommaSequence:()=>VJ,isCommaToken:()=>WY,isComment:()=>ece,isCommonJsExportPropertyAssignment:()=>HM,isCommonJsExportedExpression:()=>$Me,isCompoundAssignment:()=>lj,isComputedNonLiteralName:()=>Xz,isComputedPropertyName:()=>Qf,isConciseBody:()=>VU,isConditionalExpression:()=>ex,isConditionalTypeNode:()=>Q7,isConstTypeReference:()=>ky,isConstructSignatureDeclaration:()=>x2,isConstructorDeclaration:()=>Lh,isConstructorTypeNode:()=>RG,isContextualKeyword:()=>fG,isContinueStatement:()=>D6e,isCustomPrologue:()=>T9,isDebuggerStatement:()=>b0,isDeclaration:()=>PT,isDeclarationBindingElement:()=>$X,isDeclarationFileName:()=>Zb,isDeclarationName:()=>ON,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>oY,isDeclarationStatement:()=>cde,isDeclarationWithTypeParameterChildren:()=>mie,isDeclarationWithTypeParameters:()=>WL,isDecorator:()=>Jh,isDecoratorTarget:()=>bZ,isDefaultClause:()=>xk,isDefaultImport:()=>R9,isDefaultModifier:()=>zY,isDefaultedExpandoInitializer:()=>Aie,isDeleteExpression:()=>h6,isDeleteTarget:()=>mH,isDeprecatedDeclaration:()=>QZ,isDestructuringAssignment:()=>wy,isDiagnosticWithLocation:()=>ohe,isDiskPathRoot:()=>Gre,isDoStatement:()=>cpe,isDocumentRegistryEntry:()=>xce,isDotDotDotToken:()=>FY,isDottedName:()=>Uh,isDynamicName:()=>L0,isESSymbolIdentifier:()=>gY,isEffectiveExternalModule:()=>VM,isEffectiveModuleDeclaration:()=>HMe,isEffectiveStrictModeSourceFile:()=>QTe,isElementAccessChain:()=>oR,isElementAccessExpression:()=>Hm,isEmittedFileOfProgram:()=>Vme,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>BX,isEmptyBindingPattern:()=>wTe,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>xEe,isEmptyStringLiteral:()=>iH,isEntityName:()=>kT,isEntityNameExpression:()=>Tg,isEnumConst:()=>G8,isEnumDeclaration:()=>xP,isEnumMember:()=>pI,isEqualityOperatorKind:()=>sq,isEqualsGreaterThanToken:()=>fW,isExclamationToken:()=>wG,isExcludedFile:()=>Wpe,isExclusivelyTypeOnlyImportOrExport:()=>qQ,isExpandoPropertyDeclaration:()=>eJ,isExportAssignment:()=>py,isExportDeclaration:()=>ry,isExportModifier:()=>_W,isExportName:()=>CW,isExportNamespaceAsDefaultDeclaration:()=>nY,isExportOrDefaultModifier:()=>Voe,isExportSpecifier:()=>my,isExportsIdentifier:()=>P9,isExportsOrModuleExportsOrAlias:()=>R3,isExpression:()=>kr,isExpressionNode:()=>ZD,isExpressionOfExternalModuleImportEqualsDeclaration:()=>AZ,isExpressionOfOptionalChainRoot:()=>BU,isExpressionStatement:()=>kb,isExpressionWithTypeArguments:()=>cC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Gie,isExternalModule:()=>Bv,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>Mx,isExternalModuleIndicator:()=>XX,isExternalModuleNameRelative:()=>Kv,isExternalModuleReference:()=>KE,isExternalModuleSymbol:()=>eq,isExternalOrCommonJsModule:()=>aE,isFileLevelReservedGeneratedIdentifier:()=>sR,isFileLevelUniqueName:()=>ns,isFileProbablyExternalModule:()=>Uoe,isFirstDeclarationOfSymbolParameter:()=>ace,isFixablePromiseHandler:()=>fCe,isForInOrOfStatement:()=>Hz,isForInStatement:()=>lpe,isForInitializer:()=>DS,isForOfStatement:()=>Bx,isForStatement:()=>bW,isFunctionBlock:()=>hP,isFunctionBody:()=>UU,isFunctionDeclaration:()=>mg,isFunctionExpression:()=>Jm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>F_,isFunctionLikeDeclaration:()=>Vd,isFunctionLikeKind:()=>S_,isFunctionLikeOrClassStaticBlockDeclaration:()=>bd,isFunctionOrConstructorTypeNode:()=>l7,isFunctionOrModuleBlock:()=>_9,isFunctionSymbol:()=>qMe,isFunctionTypeNode:()=>e0,isFutureReservedKeyword:()=>sE,isGeneratedIdentifier:()=>$g,isGeneratedPrivateIdentifier:()=>s7,isGetAccessor:()=>PN,isGetAccessorDeclaration:()=>lE,isGetOrSetAccessorDeclaration:()=>Gz,isGlobalDeclaration:()=>WAe,isGlobalScopeAugmentation:()=>JC,isGrammarError:()=>XTe,isHeritageClause:()=>Qb,isHoistedFunction:()=>h7,isHoistedVariableStatement:()=>y7,isIdentifier:()=>xn,isIdentifierANonContextualKeyword:()=>hH,isIdentifierName:()=>kde,isIdentifierOrThisTypeNode:()=>F6e,isIdentifierPart:()=>wL,isIdentifierStart:()=>lP,isIdentifierText:()=>H2,isIdentifierTypePredicate:()=>rSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>bk,isIgnoredFileFromWildCardWatching:()=>dC,isImplicitGlob:()=>noe,isImportAttribute:()=>Ly,isImportAttributeName:()=>l9,isImportAttributes:()=>oS,isImportCall:()=>Py,isImportClause:()=>Tk,isImportDeclaration:()=>n0,isImportEqualsDeclaration:()=>Yb,isImportKeyword:()=>am,isImportMeta:()=>gP,isImportOrExportSpecifier:()=>fP,isImportOrExportSpecifierName:()=>J3,isImportSpecifier:()=>qE,isImportTypeAssertionContainer:()=>YL,isImportTypeNode:()=>E1,isImportableFile:()=>Tce,isInComment:()=>tw,isInCompoundLikeAssignment:()=>P7,isInExpressionContext:()=>C9,isInJSDoc:()=>S7,isInJSFile:()=>Cs,isInJSXText:()=>$$,isInJsonFile:()=>Eie,isInNonReferenceComment:()=>Q$,isInReferenceComment:()=>NZ,isInRightSideOfInternalImportEqualsDeclaration:()=>Gse,isInString:()=>V3,isInTemplateString:()=>Qse,isInTopLevelContext:()=>GE,isInTypeQuery:()=>yR,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Z2,isIndexedAccessTypeNode:()=>Wx,isInferTypeNode:()=>KN,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>Nae,isInitializedVariable:()=>J9,isInsideJsxElement:()=>Zse,isInsideJsxElementOrAttribute:()=>LR,isInsideNodeModules:()=>KZ,isInsideTemplateLiteral:()=>Y$,isInstanceOfExpression:()=>jie,isInstantiatedModule:()=>sme,isInterfaceDeclaration:()=>xp,isInternalDeclaration:()=>Wae,isInternalModuleImportEqualsDeclaration:()=>$M,isInternalName:()=>vpe,isIntersectionTypeNode:()=>xR,isIntrinsicJsxName:()=>EH,isIterationStatement:()=>LL,isJSDoc:()=>uC,isJSDocAllType:()=>LG,isJSDocAugmentsTag:()=>xW,isJSDocAuthorTag:()=>CEe,isJSDocCallbackTag:()=>UY,isJSDocClassTag:()=>_pe,isJSDocCommentContainingNode:()=>Y1,isJSDocConstructSignature:()=>VL,isJSDocDeprecatedTag:()=>dpe,isJSDocEnumTag:()=>jx,isJSDocFunctionType:()=>Ak,isJSDocImplementsTag:()=>jJ,isJSDocIndexSignature:()=>uY,isJSDocLikeText:()=>$Ee,isJSDocLink:()=>MG,isJSDocLinkCode:()=>Ooe,isJSDocLinkLike:()=>F8,isJSDocLinkPlain:()=>AEe,isJSDocMemberName:()=>QL,isJSDocNameReference:()=>FJ,isJSDocNamepathType:()=>_Ue,isJSDocNamespaceBody:()=>mA,isJSDocNode:()=>Jz,isJSDocNonNullableType:()=>Gx,isJSDocNullableType:()=>WJ,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>EW,isJSDocOverloadTag:()=>aF,isJSDocOverrideTag:()=>AA,isJSDocParameterTag:()=>A2,isJSDocPrivateTag:()=>Woe,isJSDocPropertyLikeTag:()=>Vz,isJSDocPropertyTag:()=>I6e,isJSDocProtectedTag:()=>DEe,isJSDocPublicTag:()=>OG,isJSDocReadonlyTag:()=>BJ,isJSDocReturnTag:()=>ppe,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>ZL,isJSDocSeeTag:()=>HY,isJSDocSignature:()=>b6,isJSDocTag:()=>d7,isJSDocTemplateTag:()=>CA,isJSDocThisTag:()=>IEe,isJSDocThrowsTag:()=>kEe,isJSDocTypeAlias:()=>b2,isJSDocTypeAssertion:()=>KY,isJSDocTypeExpression:()=>SW,isJSDocTypeLiteral:()=>oF,isJSDocTypeTag:()=>FG,isJSDocTypedefTag:()=>zJ,isJSDocUnknownTag:()=>GJ,isJSDocUnknownType:()=>Foe,isJSDocVariadicType:()=>iF,isJSXTagName:()=>T7,isJsonEqual:()=>xY,isJsonSourceFile:()=>Rx,isJsxAttribute:()=>tx,isJsxAttributeLike:()=>rie,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>CR,isJsxChild:()=>ZX,isJsxClosingElement:()=>iD,isJsxClosingFragment:()=>dI,isJsxElement:()=>zx,isJsxExpression:()=>CP,isJsxFragment:()=>Ek,isJsxNamespacedName:()=>Fm,isJsxOpeningElement:()=>Pb,isJsxOpeningFragment:()=>v6,isJsxOpeningLikeElement:()=>m1,isJsxOpeningLikeElementTagName:()=>Mge,isJsxSelfClosingElement:()=>nF,isJsxSpreadAttribute:()=>rT,isJsxTagNameExpression:()=>QX,isJsxText:()=>SR,isJumpStatementTarget:()=>EZ,isKeyword:()=>qb,isKeywordOrPunctuation:()=>F9,isKnownSymbol:()=>yA,isLabelName:()=>m4,isLabelOfLabeledStatement:()=>j3,isLabeledStatement:()=>tF,isLateVisibilityPaintedStatement:()=>B8,isLeftHandSideExpression:()=>ib,isLeftHandSideOfAssignment:()=>hSe,isLet:()=>UM,isLineBreak:()=>Sb,isLiteralComputedPropertyDeclarationName:()=>_g,isLiteralExpression:()=>aR,isLiteralExpressionOfObject:()=>Zre,isLiteralImportTypeNode:()=>MN,isLiteralKind:()=>UX,isLiteralLikeAccess:()=>fY,isLiteralLikeElementAccess:()=>V8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>xZ,isLiteralTypeLikeExpression:()=>pUe,isLiteralTypeLiteral:()=>ode,isLiteralTypeNode:()=>S3,isLocalName:()=>mI,isLogicalOperator:()=>U9,isLogicalOrCoalescingAssignmentExpression:()=>Wde,isLogicalOrCoalescingAssignmentOperator:()=>CH,isLogicalOrCoalescingBinaryExpression:()=>DH,isLogicalOrCoalescingBinaryOperator:()=>W7,isMappedTypeNode:()=>LJ,isMemberName:()=>xN,isMetaProperty:()=>x3,isMethodDeclaration:()=>tm,isMethodOrAccessor:()=>Mv,isMethodSignature:()=>pg,isMinusToken:()=>ER,isMissingDeclaration:()=>TW,isModifier:()=>Mf,isModifierKind:()=>Om,isModifierLike:()=>Am,isModuleAugmentationExternal:()=>iY,isModuleBlock:()=>kh,isModuleBody:()=>tie,isModuleDeclaration:()=>dy,isModuleExportsAccessExpression:()=>jE,isModuleIdentifier:()=>x7,isModuleName:()=>z6e,isModuleOrEnumDeclaration:()=>nie,isModuleReference:()=>uf,isModuleSpecifierLike:()=>WZ,isModuleWithStringLiteralName:()=>rY,isNameOfFunctionDeclaration:()=>H$,isNameOfModuleDeclaration:()=>U$,isNamedClassElement:()=>Jl,isNamedDeclaration:()=>mp,isNamedEvaluation:()=>UE,isNamedEvaluationSource:()=>vH,isNamedExportBindings:()=>Qre,isNamedExports:()=>j0,isNamedImportBindings:()=>ade,isNamedImports:()=>Oy,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>g6,isNamespaceBody:()=>$Te,isNamespaceExport:()=>G0,isNamespaceExportDeclaration:()=>lC,isNamespaceImport:()=>mh,isNamespaceReexportDeclaration:()=>oH,isNewExpression:()=>sb,isNewExpressionTarget:()=>V$,isNoSubstitutionTemplateLiteral:()=>K7,isNode:()=>VX,isNodeArray:()=>BM,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>Lx,isNodeKind:()=>GU,isNodeLikeSystem:()=>Y5,isNodeModulesDirectory:()=>NX,isNodeWithPossibleHoistedDeclaration:()=>pH,isNonContextualKeyword:()=>e6,isNonExportDefaultModifier:()=>hUe,isNonGlobalAmbientModule:()=>dde,isNonGlobalDeclaration:()=>lT,isNonNullAccess:()=>nEe,isNonNullChain:()=>zU,isNonNullExpression:()=>E3,isNonStaticMethodOrAccessorWithPrivateName:()=>q2e,isNotEmittedOrPartiallyEmittedNode:()=>Nr,isNotEmittedStatement:()=>rD,isNullishCoalesce:()=>R8,isNumber:()=>U1,isNumericLiteral:()=>S1,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>BZ,isObjectBindingOrAssignmentElement:()=>d9,isObjectBindingOrAssignmentPattern:()=>qX,isObjectBindingPattern:()=>Ch,isObjectLiteralElement:()=>eY,isObjectLiteralElementLike:()=>DN,isObjectLiteralExpression:()=>el,isObjectLiteralMethod:()=>iC,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>x9,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>UD,isOmittedExpression:()=>cb,isOptionalChain:()=>uy,isOptionalChainRoot:()=>s9,isOptionalDeclaration:()=>hG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>MJ,isOuterExpression:()=>WG,isOutermostOptionalChain:()=>jz,isOverrideModifier:()=>RJ,isPackedArrayLiteral:()=>foe,isParameter:()=>Os,isParameterDeclaration:()=>X8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>DT,isParameterPropertyModifier:()=>cR,isParenthesizedExpression:()=>fE,isParenthesizedTypeNode:()=>XN,isParseTreeNode:()=>qD,isPartOfTypeNode:()=>BE,isPartOfTypeQuery:()=>rG,isPartiallyEmittedExpression:()=>Roe,isPatternMatch:()=>C8,isPinnedComment:()=>uie,isPlainJsFile:()=>pP,isPlusToken:()=>PJ,isPossiblyTypeArgumentPosition:()=>kZ,isPostfixUnaryExpression:()=>jY,isPrefixUnaryExpression:()=>vk,isPrivateIdentifier:()=>Lu,isPrivateIdentifierClassElementDeclaration:()=>IT,isPrivateIdentifierPropertyAccessExpression:()=>u9,isPrivateIdentifierSymbol:()=>aC,isProgramBundleEmitBuildInfo:()=>tge,isProgramUptoDate:()=>bxe,isPrologueDirective:()=>$2,isPropertyAccessChain:()=>ede,isPropertyAccessEntityNameExpression:()=>NS,isPropertyAccessExpression:()=>Ac,isPropertyAccessOrQualifiedName:()=>KX,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ide,isPropertyAssignment:()=>tl,isPropertyDeclaration:()=>nu,isPropertyName:()=>qg,isPropertyNameLiteral:()=>Qv,isPropertySignature:()=>em,isProtoSetter:()=>YMe,isPrototypeAccess:()=>bP,isPrototypePropertyAssignment:()=>jL,isPunctuation:()=>uG,isPushOrUnshiftIdentifier:()=>fSe,isQualifiedName:()=>Pu,isQuestionDotToken:()=>Gu,isQuestionOrExclamationToken:()=>O6e,isQuestionOrPlusOrMinusToken:()=>B6e,isQuestionToken:()=>p6,isRawSourceMap:()=>$Le,isReadonlyKeyword:()=>SEe,isReadonlyKeywordOrPlusOrMinusToken:()=>W6e,isRecognizedTripleSlashComment:()=>_de,isReferenceFileLocation:()=>HW,isReferencedFile:()=>ew,isRegularExpressionLiteral:()=>ope,isRequireCall:()=>y1,isRequireVariableStatement:()=>xie,isRestParameter:()=>sp,isRestTypeNode:()=>hW,isReturnStatement:()=>iS,isReturnStatementWithFixablePromiseHandler:()=>Pce,isRightSideOfAccessExpression:()=>r6,isRightSideOfInstanceofExpression:()=>ySe,isRightSideOfPropertyAccess:()=>sS,isRightSideOfQualifiedName:()=>wA,isRightSideOfQualifiedNameOrPropertyAccess:()=>z7,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>kH,isRootedDiskPath:()=>nE,isSameEntityName:()=>j8,isSatisfiesExpression:()=>C6e,isScopeMarker:()=>_7,isSemicolonClassElement:()=>spe,isSetAccessor:()=>UC,isSetAccessorDeclaration:()=>Xb,isShebangTrivia:()=>ATe,isShiftOperatorOrHigher:()=>jEe,isShorthandAmbientModuleSymbol:()=>ZU,isShorthandPropertyAssignment:()=>XE,isSignedNumericLiteral:()=>yH,isSimpleCopiableExpression:()=>L3,isSimpleInlineableExpression:()=>IA,isSingleOrDoubleQuote:()=>D9,isSourceFile:()=>Nu,isSourceFileFromLibrary:()=>cB,isSourceFileJS:()=>Gy,isSourceFileNotJS:()=>Ade,isSourceFileNotJson:()=>qM,isSourceMapping:()=>KLe,isSpecialPropertyDeclaration:()=>dY,isSpreadAssignment:()=>xA,isSpreadElement:()=>WT,isStatement:()=>dl,isStatementButNotDeclaration:()=>HU,isStatementOrBlock:()=>YX,isStatementWithLocals:()=>KTe,isStatic:()=>pd,isStaticModifier:()=>pW,isString:()=>As,isStringAKeyword:()=>Nde,isStringANonContextualKeyword:()=>w7,isStringAndEmptyAnonymousObjectIntersection:()=>Hge,isStringDoubleQuoted:()=>aH,isStringLiteral:()=>Sd,isStringLiteralLike:()=>Cm,isStringLiteralOrJsxExpression:()=>JU,isStringLiteralOrTemplate:()=>UZ,isStringOrNumericLiteralLike:()=>Ox,isStringOrRegularExpressionOrTemplateLiteral:()=>tce,isStringTextContainingNode:()=>JX,isSuperCall:()=>h1,isSuperKeyword:()=>nT,isSuperOrSuperProperty:()=>Ede,isSuperProperty:()=>MT,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>AR,isSyntaxList:()=>AW,isSyntheticExpression:()=>VY,isSyntheticReference:()=>Sk,isTagName:()=>KW,isTaggedTemplateExpression:()=>Dm,isTaggedTemplateTag:()=>vZ,isTemplateExpression:()=>B0,isTemplateHead:()=>X7,isTemplateLiteral:()=>Uz,isTemplateLiteralKind:()=>VC,isTemplateLiteralToken:()=>L8,isTemplateLiteralTypeNode:()=>ym,isTemplateLiteralTypeSpan:()=>vW,isTemplateMiddle:()=>TEe,isTemplateMiddleOrTemplateTail:()=>c9,isTemplateSpan:()=>Dh,isTemplateTail:()=>woe,isTextWhiteSpaceLike:()=>cT,isThis:()=>AF,isThisContainerOrFunctionBlock:()=>sY,isThisIdentifier:()=>E2,isThisInTypeQuery:()=>V9,isThisInitializedDeclaration:()=>bie,isThisInitializedObjectBindingExpression:()=>Tie,isThisProperty:()=>Q1,isThisTypeNode:()=>yW,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>Sde,isThrowStatement:()=>ff,isToken:()=>a7,isTokenKind:()=>tde,isTraceEnabled:()=>DR,isTransientSymbol:()=>Vm,isTrivia:()=>W9,isTryStatement:()=>My,isTupleTypeNode:()=>gW,isTypeAlias:()=>L9,isTypeAliasDeclaration:()=>z0,isTypeAssertionExpression:()=>ph,isTypeDeclaration:()=>f6,isTypeElement:()=>rb,isTypeKeyword:()=>Z$,isTypeKeywordToken:()=>nce,isTypeKeywordTokenOrIdentifier:()=>h4,isTypeLiteralNode:()=>rS,isTypeNode:()=>pc,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>yk,isTypeOnlyExportDeclaration:()=>zM,isTypeOnlyImportDeclaration:()=>HX,isTypeOnlyImportOrExportDeclaration:()=>O8,isTypeOperatorNode:()=>_I,isTypeParameterDeclaration:()=>Np,isTypePredicateNode:()=>mW,isTypeQueryNode:()=>m6,isTypeReferenceNode:()=>uE,isTypeReferenceType:()=>NN,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>m9,isUnaryExpressionWithWrite:()=>JTe,isUnicodeIdentifierStart:()=>K,isUnionTypeNode:()=>fI,isUnparsedNode:()=>pA,isUnparsedPrepend:()=>OJ,isUnparsedSource:()=>rF,isUnparsedTextLike:()=>CN,isUrl:()=>kX,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>nSe,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>lSe,isVarAwaitUsing:()=>nC,isVarConst:()=>rH,isVarUsing:()=>aY,isVariableDeclaration:()=>Kc,isVariableDeclarationInVariableStatement:()=>rC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E7,isVariableDeclarationInitializedToRequire:()=>v1,isVariableDeclarationList:()=>Kp,isVariableLike:()=>E9,isVariableLikeOrAccessor:()=>vde,isVariableStatement:()=>Xg,isVoidExpression:()=>Z7,isWatchSet:()=>QVe,isWhileStatement:()=>Moe,isWhiteSpaceLike:()=>cP,isWhiteSpaceSingleLine:()=>q1,isWithStatement:()=>upe,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>t0,jsxModeNeedsExplicitImport:()=>uhe,keywordPart:()=>ZE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>i$,libs:()=>r$,lineBreakPart:()=>Nj,linkNamePart:()=>Xge,linkPart:()=>NAe,linkTextPart:()=>ZW,listFiles:()=>fge,loadModuleFromGlobalCache:()=>P2e,loadWithModeAwareCache:()=>KQ,makeIdentifierFromModuleName:()=>UMe,makeImport:()=>Nk,makeImportIfNecessary:()=>rce,makeStringLiteral:()=>kj,mangleScopedPackageName:()=>tj,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>she,mapToDisplayParts:()=>M6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>pTe,matchesExclude:()=>Bpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uJ,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>oP,modifierToFlag:()=>F7,modifiersToFlags:()=>aI,moduleOptionDeclaration:()=>tae,moduleResolutionIsEqualTo:()=>qU,moduleResolutionNameAndModeGetter:()=>use,moduleResolutionOptionDeclarations:()=>s$,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>Ij,moduleSpecifiers:()=>l4,moveEmitHelpers:()=>tpe,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>lW,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>fce,needsScopeMarker:()=>kN,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hme,noEmitNotification:()=>BQ,noEmitSubstitution:()=>WQ,noTransformers:()=>ZN,noTruncationMaximumTruncationLength:()=>CY,nodeCanBeDecorated:()=>zL,nodeHasName:()=>ec,nodeIsDecorated:()=>lY,nodeIsMissing:()=>ny,nodeIsPresent:()=>y2,nodeIsSynthesized:()=>Hd,nodeModuleNameResolver:()=>cae,nodeModulesPathPart:()=>IP,nodeNextJsonConfigResolver:()=>NW,nodeOrChildIsDecorated:()=>Z1,nodeOverlapsWithStartEnd:()=>Fge,nodePosToString:()=>QU,nodeSeenTracker:()=>U3,nodeStartsNewLexicalEnvironment:()=>kie,nodeToDisplayParts:()=>L8e,noop:()=>ku,noopFileWatcher:()=>L$,normalizePath:()=>hf,normalizeSlashes:()=>$1,not:()=>dA,notImplemented:()=>Na,notImplementedResolver:()=>Wme,nullNodeConverters:()=>aJ,nullParenthesizerRules:()=>Doe,nullTransformationContext:()=>sx,objectAllocator:()=>W0,operatorPart:()=>rq,optionDeclarations:()=>hI,optionMapToObject:()=>Yoe,optionsAffectingProgramStructure:()=>jpe,optionsForBuild:()=>uQ,optionsForWatch:()=>fC,optionsHaveChanges:()=>g9,optionsHaveModuleResolutionChanges:()=>uk,or:()=>bb,orderedRemoveItem:()=>xL,orderedRemoveItemAt:()=>Yw,outFile:()=>Ng,packageIdToPackageName:()=>aie,packageIdToString:()=>jM,paramHelper:()=>fJ,parameterIsThisKeyword:()=>iI,parameterNamePart:()=>w8e,parseBaseNodeFactory:()=>tQ,parseBigInt:()=>qSe,parseBuildCommand:()=>tLe,parseCommandLine:()=>NUe,parseCommandLineWorker:()=>Ppe,parseConfigFileTextToJson:()=>Npe,parseConfigFileWithSystem:()=>jxe,parseConfigHostFromCompilerHostLike:()=>k$,parseCustomTypeOption:()=>$oe,parseIsolatedEntityName:()=>UG,parseIsolatedJSDocComment:()=>Cpe,parseJSDocTypeExpressionForTests:()=>AUe,parseJsonConfigFileContent:()=>aLe,parseJsonSourceFileConfigFileContent:()=>Zoe,parseJsonText:()=>iT,parseListTypeOption:()=>eLe,parseNodeFactory:()=>Ck,parseNodeModuleFromPath:()=>d$,parsePackageName:()=>fae,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>yMe,pathContainsNodeModules:()=>RW,pathIsAbsolute:()=>m0,pathIsBareSpecifier:()=>jre,pathIsRelative:()=>V2,patternText:()=>_v,perfLogger:()=>Zh,performIncrementalCompilation:()=>Jxe,performance:()=>Kne,plainJSErrors:()=>sD,positionBelongsToNode:()=>xAe,positionIsASICandidate:()=>pce,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>t3e,probablyUsesSemicolons:()=>$Z,processCommentPragmas:()=>YEe,processPragmasIntoFields:()=>E6,processTaggedTemplateExpression:()=>xme,programContainsEsModules:()=>Jge,programContainsModules:()=>Jx,projectReferenceIsEqualTo:()=>tY,propKeyHelper:()=>EJ,propertyNamePart:()=>R8e,pseudoBigIntToString:()=>tD,punctuationPart:()=>D1,pushIfUnique:()=>Dy,quote:()=>VZ,quotePreferenceFromString:()=>YW,rangeContainsPosition:()=>CZ,rangeContainsPositionExclusive:()=>XW,rangeContainsRange:()=>ov,rangeContainsRangeExclusive:()=>Use,rangeContainsStartEnd:()=>xj,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>hz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>J$,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>mge,readConfigFile:()=>iQ,readHelper:()=>TJ,readJson:()=>e3,readJsonConfigFile:()=>r2e,readJsonOrUndefined:()=>Uie,reduceEachLeadingCommentRange:()=>MU,reduceEachTrailingCommentRange:()=>$_e,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>i9,refactor:()=>MF,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>aW,removeEmitHelper:()=>yEe,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>_se,removeMinAndVersionNumbers:()=>Ub,removeOptionality:()=>Vge,removePrefix:()=>xf,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>bN,repeatString:()=>Pk,replaceElement:()=>yz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>hge,resolveJSModule:()=>x2e,resolveLibrary:()=>Zpe,resolveModuleName:()=>ZG,resolveModuleNameFromCache:()=>rHe,resolvePackageNameToPackageJson:()=>Ype,resolvePath:()=>PL,resolveProjectReferencePath:()=>vF,resolveTripleslashReference:()=>HQ,resolveTypeReferenceDirective:()=>Kpe,resolvingEmptyArray:()=>yG,restHelper:()=>hJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>O$,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>kce,runInitializersHelper:()=>_J,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>qLe,scanShebangTrivia:()=>OX,scanTokenAtPosition:()=>RN,scanner:()=>uT,screenStartingMessageCodes:()=>pge,semanticDiagnosticsOptionDeclarations:()=>nae,serializeCompilerOptions:()=>s2e,server:()=>Ph,servicesVersion:()=>dye,setCommentRange:()=>_y,setConfigFileInOptions:()=>Lpe,setConstantValue:()=>x6e,setEachParent:()=>u6,setEmitFlags:()=>_s,setFunctionNameHelper:()=>$7,setGetSourceFileAsHashVersioned:()=>M$,setIdentifierAutoGenerate:()=>RY,setIdentifierGeneratedImportReference:()=>vEe,setIdentifierTypeArguments:()=>d6,setInternalEmitFlags:()=>Sp,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>AJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>Ls,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>Ik,setSnippetElement:()=>rpe,setSourceMapRange:()=>lp,setStackTraceLimit:()=>TTe,setStartsOnNewLine:()=>U7,setSyntheticLeadingComments:()=>uI,setSyntheticTrailingComments:()=>cW,setSys:()=>LVe,setSysLog:()=>gMe,setTextRange:()=>Tn,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>lI,setTypeNode:()=>H7,setUILocale:()=>$5,setValueDeclaration:()=>Cie,shouldAllowImportingTsExtension:()=>MW,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>yce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>Sae,signatureHasRestParameter:()=>A1,signatureToDisplayParts:()=>iq,single:()=>_U,singleElementArray:()=>X5,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>w6e,skipConstraint:()=>DF,skipOuterExpressions:()=>iv,skipParentheses:()=>rg,skipPartiallyEmittedExpressions:()=>h2,skipTrivia:()=>Ff,skipTypeChecking:()=>c3,skipTypeParentheses:()=>Ide,skipWhile:()=>qO,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>o7,sourceFileAffectingCompilerOptions:()=>c$,sourceFileMayBeEmitted:()=>HL,sourceMapCommentRegExp:()=>pme,sourceMapCommentRegExpDontCareLineStart:()=>e1,spacePart:()=>qh,spanMap:()=>fa,spreadArrayHelper:()=>SJ,stableSort:()=>nh,startEndContainsRange:()=>Wm,startEndOverlapsWithStartEnd:()=>Wge,startOnNewLine:()=>lb,startTracing:()=>Dz,startsWith:()=>qf,startsWithDirectory:()=>RU,startsWithUnderscore:()=>YZ,startsWithUseStrict:()=>Goe,stringContainsAt:()=>lq,stringToToken:()=>D8,stripQuotes:()=>S2,supportedDeclarationExtensions:()=>oJ,supportedJSExtensions:()=>qde,supportedJSExtensionsFlat:()=>h3,supportedLocaleDirectories:()=>iie,supportedTSExtensions:()=>bG,supportedTSExtensionsFlat:()=>xoe,supportedTSImplementationExtensions:()=>SG,suppressLeadingAndTrailingTrivia:()=>zT,suppressLeadingTrivia:()=>oq,suppressTrailingTrivia:()=>Qge,symbolEscapedNameNoDefault:()=>$ge,symbolName:()=>Il,symbolNameNoDefault:()=>IF,symbolPart:()=>PAe,symbolToDisplayParts:()=>Rg,syntaxMayBeASICandidate:()=>zAe,syntaxRequiresTrailingSemicolonOrASI:()=>JZ,sys:()=>w0,sysLog:()=>Mre,tagNamesAreEquivalent:()=>n4,takeWhile:()=>Qw,targetOptionDeclaration:()=>a$,templateObjectHelper:()=>bJ,testFormatSettings:()=>Rge,textChangeRangeIsUnchanged:()=>NTe,textChangeRangeNewSpan:()=>o9,textChanges:()=>zs,textOrKeywordPart:()=>NP,textPart:()=>lS,textRangeContainsPositionInclusive:()=>P8,textSpanContainsPosition:()=>tb,textSpanContainsTextSpan:()=>qre,textSpanEnd:()=>Xy,textSpanIntersection:()=>PTe,textSpanIntersectsWith:()=>Bz,textSpanIntersectsWithPosition:()=>NMe,textSpanIntersectsWithTextSpan:()=>kTe,textSpanIsEmpty:()=>PMe,textSpanOverlap:()=>ITe,textSpanOverlapsWith:()=>K1,textSpansEqual:()=>C1,textToKeywordObj:()=>rE,timestamp:()=>H_,toArray:()=>BC,toBuilderFileEmit:()=>age,toBuilderStateFileInfoForMultiEmit:()=>oge,toEditorSettings:()=>lle,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>gm,toProgramEmitPending:()=>sge,tokenIsIdentifierOrKeyword:()=>CT,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RX,tokenToString:()=>Cf,trace:()=>Df,tracing:()=>ps,tracingEnabled:()=>kL,transform:()=>AOe,transformClassFields:()=>f4e,transformDeclarations:()=>lxe,transformECMAScriptModule:()=>Nme,transformES2015:()=>axe,transformES2016:()=>oxe,transformES2017:()=>exe,transformES2018:()=>d4e,transformES2019:()=>p4e,transformES2020:()=>txe,transformES2021:()=>Dme,transformES5:()=>Pme,transformESDecorators:()=>Z2e,transformESNext:()=>Ime,transformGenerators:()=>sxe,transformJsx:()=>ixe,transformLegacyDecorators:()=>Lae,transformModule:()=>Oae,transformNamedEvaluation:()=>mE,transformNodeModule:()=>b4e,transformNodes:()=>x$,transformSystemModule:()=>v4e,transformTypeScript:()=>u4e,transpile:()=>o3e,transpileModule:()=>She,transpileOptionValueCompilerOptions:()=>Vpe,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>qZ,tryCast:()=>to,tryDirectoryExists:()=>mce,tryExtractTSExtension:()=>PH,tryFileExists:()=>Mj,tryGetClassExtendingExpressionWithTypeArguments:()=>IH,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>zN,tryGetDirectories:()=>oB,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>N9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>HJ,tryGetModuleSpecifierFromDeclaration:()=>C7,tryGetNativePerformanceHooks:()=>Rc,tryGetPropertyAccessOrIdentifierToString:()=>B7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>joe,tryGetSourceMappingURL:()=>JLe,tryGetTextOfPropertyName:()=>tH,tryIOAndConsumeErrors:()=>gce,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>j2e,tryReadDirectory:()=>LAe,tryReadFile:()=>ZJ,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>Sz,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>fQ,typeAliasNamePart:()=>w6,typeDirectiveIsEqualTo:()=>GMe,typeKeywords:()=>eee,typeParameterNamePart:()=>GZ,typeReferenceResolutionNameAndModeGetter:()=>Xme,typeToDisplayParts:()=>wj,unchangedPollThresholds:()=>Bre,unchangedTextChangeRange:()=>OL,unescapeLeadingUnderscores:()=>Ic,unmangleScopedPackageName:()=>DQ,unorderedRemoveItem:()=>A8,unorderedRemoveItemAt:()=>zC,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>Tde,updateErrorForNoInputFiles:()=>Ope,updateLanguageServiceSourceFile:()=>fye,updateMissingFilePathsWatch:()=>jme,updatePackageJsonWatch:()=>N4e,updateResolutionField:()=>l$,updateSharedExtendedConfigFileWatcher:()=>D$,updateSourceFile:()=>Hoe,updateWatchingWildcardDirectories:()=>jW,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>wT,utf16EncodeAsString:()=>ak,validateLocaleAndSetLanguage:()=>RTe,valuesHelper:()=>xJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>Iae,visitCommaListElements:()=>NQ,visitEachChild:()=>Xo,visitFunctionBody:()=>ox,visitIterationBody:()=>LS,visitLexicalEnvironment:()=>ume,visitNode:()=>Bn,visitNodes:()=>Wa,visitParameterList:()=>sm,walkUpBindingElementsAndPatterns:()=>OU,walkUpLexicalEnvironments:()=>OW,walkUpOuterExpressions:()=>bpe,walkUpParenthesizedExpressions:()=>IS,walkUpParenthesizedTypes:()=>QM,walkUpParenthesizedTypesAndGetParentAndChild:()=>uSe,whitespaceOrMapCommentRegExp:()=>Pae,writeCommentRange:()=>gG,writeFile:()=>G9,writeFileEnsuringDirectories:()=>L7,zipWith:()=>Zr});var _x=G({"src/typescript/_namespaces/ts.ts"(){md(),B$(),xl(),l_(),Ap()}}),_S=ye({"src/typescript/typescript.ts"(e,n){_x(),_x(),typeof console<"u"&&(re.loggingHost={log(i,c){switch(i){case 1:return console.error(c);case 2:return console.warn(c);case 3:return console.log(c);case 4:return console.log(c)}}}),n.exports=Mb}});return _S()})();p.exports&&(p.exports=x)})(jDt);var wLt=jDt.exports,KDt={},RLt=XDt;function XDt(p,g,x){p instanceof RegExp&&(p=G2t(p,x)),g instanceof RegExp&&(g=G2t(g,x));var L=YDt(p,g,x);return L&&{start:L[0],end:L[1],pre:x.slice(0,L[0]),body:x.slice(L[0]+p.length,L[1]),post:x.slice(L[1]+g.length)}}function G2t(p,g){var x=g.match(p);return x?x[0]:null}XDt.range=YDt;function YDt(p,g,x){var L,H,G,ye,Oe,ot=x.indexOf(p),At=x.indexOf(g,ot+1),sn=ot;if(ot>=0&&At>0){if(p===g)return[ot,At];for(L=[],G=x.length;sn>=0&&!Oe;)sn==ot?(L.push(sn),ot=x.indexOf(p,sn+1)):L.length==1?Oe=[L.pop(),At]:(H=L.pop(),H=0?ot:At;L.length&&(Oe=[G,ye])}return Oe}var QDt=RLt,MLt=FLt,ZDt="\0SLASH"+Math.random()+"\0",eIt="\0OPEN"+Math.random()+"\0",_St="\0CLOSE"+Math.random()+"\0",tIt="\0COMMA"+Math.random()+"\0",nIt="\0PERIOD"+Math.random()+"\0";function _bt(p){return parseInt(p,10)==p?parseInt(p,10):p.charCodeAt(0)}function LLt(p){return p.split("\\\\").join(ZDt).split("\\{").join(eIt).split("\\}").join(_St).split("\\,").join(tIt).split("\\.").join(nIt)}function OLt(p){return p.split(ZDt).join("\\").split(eIt).join("{").split(_St).join("}").split(tIt).join(",").split(nIt).join(".")}function rIt(p){if(!p)return[""];var g=[],x=QDt("{","}",p);if(!x)return p.split(",");var L=x.pre,H=x.body,G=x.post,ye=L.split(",");ye[ye.length-1]+="{"+H+"}";var Oe=rIt(G);return G.length&&(ye[ye.length-1]+=Oe.shift(),ye.push.apply(ye,Oe)),g.push.apply(g,ye),g}function FLt(p){return p?(p.substr(0,2)==="{}"&&(p="\\{\\}"+p.substr(2)),mje(LLt(p),!0).map(OLt)):[]}function WLt(p){return"{"+p+"}"}function BLt(p){return/^-?0\d/.test(p)}function zLt(p,g){return p<=g}function GLt(p,g){return p>=g}function mje(p,g){var x=[],L=QDt("{","}",p);if(!L)return[p];var H=L.pre,G=L.post.length?mje(L.post,!1):[""];if(/\$$/.test(L.pre))for(var ye=0;ye=0;if(!sn&&!tr)return L.post.match(/,.*\}/)?(p=L.pre+"{"+L.body+_St+L.post,mje(p)):[p];var Nt;if(sn)Nt=L.body.split(/\.\./);else if(Nt=rIt(L.body),Nt.length===1&&(Nt=mje(Nt[0],!1).map(WLt),Nt.length===1))return G.map(function(ni){return L.pre+Nt[0]+ni});var Ot;if(sn){var bo=_bt(Nt[0]),Yr=_bt(Nt[1]),Ns=Math.max(Nt[0].length,Nt[1].length),ui=Nt.length==3?Math.abs(_bt(Nt[2])):1,Zr=zLt,Zi=Yr0){var Ms=new Array(Ho+1).join("0");lr<0?ra="-"+Ms+ra.slice(1):ra=Ms+ra}}Ot.push(ra)}}else{Ot=[];for(var cs=0;cs{if(typeof p!="string")throw new TypeError("invalid pattern");if(p.length>jLt)throw new TypeError("pattern is too long")};Eat.assertValidPattern=VLt;var lVe={},xat={};Object.defineProperty(xat,"__esModule",{value:!0});xat.parseClass=void 0;const ULt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lje=p=>p.replace(/[[\]\\-]/g,"\\$&"),HLt=p=>p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),j2t=p=>p.join(""),JLt=(p,g)=>{const x=g;if(p.charAt(x)!=="[")throw new Error("not in a brace expression");const L=[],H=[];let G=x+1,ye=!1,Oe=!1,ot=!1,At=!1,sn=x,tr="";e:for(;Gtr?L.push(lje(tr)+"-"+lje(Yr)):Yr===tr&&L.push(lje(Yr)),tr="",G++;continue}if(p.startsWith("-]",G+1)){L.push(lje(Yr+"-")),G+=2;continue}if(p.startsWith("-",G+1)){tr=Yr,G+=2;continue}L.push(lje(Yr)),G++}if(sng?p.replace(/\[([^\/\\])\]/g,"$1"):p.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");KRe.unescape=$Lt;Object.defineProperty(lVe,"__esModule",{value:!0});lVe.AST=void 0;const qLt=xat,Eit=KRe,KLt=new Set(["!","?","+","*","@"]),V2t=p=>KLt.has(p),XLt="(?!(?:^|/)\\.\\.?(?:$|/))",xit="(?!\\.)",YLt=new Set(["[","."]),QLt=new Set(["..","."]),ZLt=new Set("().*{}+?[]^$\\!"),e4t=p=>p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dSt="[^/]",U2t=dSt+"*?",H2t=dSt+"+?";var sN,Ww,Ene,YA,eP,__e,$1e,d_e,xne,q1e,gVe,Xot,iIt,LRe,Jit,hVe,C1t,Yot,oIt;const mL=class mL{constructor(g,x,L={}){$u(this,Xot);$u(this,hVe);f1(this,"type");$u(this,sN,void 0);$u(this,Ww,void 0);$u(this,Ene,!1);$u(this,YA,[]);$u(this,eP,void 0);$u(this,__e,void 0);$u(this,$1e,void 0);$u(this,d_e,!1);$u(this,xne,void 0);$u(this,q1e,void 0);$u(this,gVe,!1);this.type=g,g&&Bg(this,Ww,!0),Bg(this,eP,x),Bg(this,sN,ti(this,eP)?ti(ti(this,eP),sN):this),Bg(this,xne,ti(this,sN)===this?L:ti(ti(this,sN),xne)),Bg(this,$1e,ti(this,sN)===this?[]:ti(ti(this,sN),$1e)),g==="!"&&!ti(ti(this,sN),d_e)&&ti(this,$1e).push(this),Bg(this,__e,ti(this,eP)?ti(ti(this,eP),YA).length:0)}get hasMagic(){if(ti(this,Ww)!==void 0)return ti(this,Ww);for(const g of ti(this,YA))if(typeof g!="string"&&(g.type||g.hasMagic))return Bg(this,Ww,!0);return ti(this,Ww)}toString(){return ti(this,q1e)!==void 0?ti(this,q1e):this.type?Bg(this,q1e,this.type+"("+ti(this,YA).map(g=>String(g)).join("|")+")"):Bg(this,q1e,ti(this,YA).map(g=>String(g)).join(""))}push(...g){for(const x of g)if(x!==""){if(typeof x!="string"&&!(x instanceof mL&&ti(x,eP)===this))throw new Error("invalid part: "+x);ti(this,YA).push(x)}}toJSON(){var x;const g=this.type===null?ti(this,YA).slice().map(L=>typeof L=="string"?L:L.toJSON()):[this.type,...ti(this,YA).map(L=>L.toJSON())];return this.isStart()&&!this.type&&g.unshift([]),this.isEnd()&&(this===ti(this,sN)||ti(ti(this,sN),d_e)&&((x=ti(this,eP))==null?void 0:x.type)==="!")&&g.push({}),g}isStart(){var x;if(ti(this,sN)===this)return!0;if(!((x=ti(this,eP))!=null&&x.isStart()))return!1;if(ti(this,__e)===0)return!0;const g=ti(this,eP);for(let L=0;L{var Zi;const[Yr,Ns,ui,Zr]=typeof bo=="string"?is(Zi=mL,Yot,oIt).call(Zi,bo,ti(this,Ww),At):bo.toRegExpSource(g);return Bg(this,Ww,ti(this,Ww)||ui),Bg(this,Ene,ti(this,Ene)||Zr),Yr}).join("");let tr="";if(this.isStart()&&typeof ti(this,YA)[0]=="string"&&!(ti(this,YA).length===1&&QLt.has(ti(this,YA)[0]))){const Yr=YLt,Ns=x&&Yr.has(sn.charAt(0))||sn.startsWith("\\.")&&Yr.has(sn.charAt(2))||sn.startsWith("\\.\\.")&&Yr.has(sn.charAt(4)),ui=!x&&!g&&Yr.has(sn.charAt(0));tr=Ns?XLt:ui?xit:""}let Nt="";return this.isEnd()&&ti(ti(this,sN),d_e)&&((ot=ti(this,eP))==null?void 0:ot.type)==="!"&&(Nt="(?:$|\\/)"),[tr+sn+Nt,(0,Eit.unescape)(sn),Bg(this,Ww,!!ti(this,Ww)),ti(this,Ene)]}const L=this.type==="*"||this.type==="+",H=this.type==="!"?"(?:(?!(?:":"(?:";let G=is(this,hVe,C1t).call(this,x);if(this.isStart()&&this.isEnd()&&!G&&this.type!=="!"){const At=this.toString();return Bg(this,YA,[At]),this.type=null,Bg(this,Ww,void 0),[At,(0,Eit.unescape)(this.toString()),!1,!1]}let ye=!L||g||x||!xit?"":is(this,hVe,C1t).call(this,!0);ye===G&&(ye=""),ye&&(G=`(?:${G})(?:${ye})*?`);let Oe="";if(this.type==="!"&&ti(this,gVe))Oe=(this.isStart()&&!x?xit:"")+H2t;else{const At=this.type==="!"?"))"+(this.isStart()&&!x&&!g?xit:"")+U2t+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&ye?")":this.type==="*"&&ye?")?":`)${this.type}`;Oe=H+G+At}return[Oe,(0,Eit.unescape)(G),Bg(this,Ww,!!ti(this,Ww)),ti(this,Ene)]}};sN=new WeakMap,Ww=new WeakMap,Ene=new WeakMap,YA=new WeakMap,eP=new WeakMap,__e=new WeakMap,$1e=new WeakMap,d_e=new WeakMap,xne=new WeakMap,q1e=new WeakMap,gVe=new WeakMap,Xot=new WeakSet,iIt=function(){if(this!==ti(this,sN))throw new Error("should only call on root");if(ti(this,d_e))return this;this.toString(),Bg(this,d_e,!0);let g;for(;g=ti(this,$1e).pop();){if(g.type!=="!")continue;let x=g,L=ti(x,eP);for(;L;){for(let H=ti(x,__e)+1;!L.type&&H{if(typeof x=="string")throw new Error("string type in extglob ast??");const[L,H,G,ye]=x.toRegExpSource(g);return Bg(this,Ene,ti(this,Ene)||ye),L}).filter(x=>!(this.isStart()&&this.isEnd())||!!x).join("|")},Yot=new WeakSet,oIt=function(g,x,L=!1){let H=!1,G="",ye=!1;for(let Oe=0;Oeg?p.replace(/[?*()[\]]/g,"[$&]"):p.replace(/[?*()[\]\\]/g,"\\$&");uVe.escape=t4t;(function(p){var g={},x=ORe&&ORe.__importDefault||function(Zf){return Zf&&Zf.__esModule?Zf:{default:Zf}};Object.defineProperty(p,"__esModule",{value:!0}),p.unescape=p.escape=p.AST=p.Minimatch=p.match=p.makeRe=p.braceExpand=p.defaults=p.filter=p.GLOBSTAR=p.sep=p.minimatch=void 0;const L=x(MLt),H=Eat,G=lVe,ye=uVe,Oe=KRe,ot=(Zf,fa,Gc={})=>((0,H.assertValidPattern)(fa),!Gc.nocomment&&fa.charAt(0)==="#"?!1:new p2(fa,Gc).match(Zf));p.minimatch=ot;const At=/^\*+([^+@!?\*\[\(]*)$/,sn=Zf=>fa=>!fa.startsWith(".")&&fa.endsWith(Zf),tr=Zf=>fa=>fa.endsWith(Zf),Nt=Zf=>(Zf=Zf.toLowerCase(),fa=>!fa.startsWith(".")&&fa.toLowerCase().endsWith(Zf)),Ot=Zf=>(Zf=Zf.toLowerCase(),fa=>fa.toLowerCase().endsWith(Zf)),bo=/^\*+\.\*+$/,Yr=Zf=>!Zf.startsWith(".")&&Zf.includes("."),Ns=Zf=>Zf!=="."&&Zf!==".."&&Zf.includes("."),ui=/^\.\*+$/,Zr=Zf=>Zf!=="."&&Zf!==".."&&Zf.startsWith("."),Zi=/^\*+$/,jr=Zf=>Zf.length!==0&&!Zf.startsWith("."),lr=Zf=>Zf.length!==0&&Zf!=="."&&Zf!=="..",ra=/^\?+([^+@!?\*\[\(]*)?$/,Ho=([Zf,fa=""])=>{const Gc=sf([Zf]);return fa?(fa=fa.toLowerCase(),gt=>Gc(gt)&>.toLowerCase().endsWith(fa)):Gc},Ms=([Zf,fa=""])=>{const Gc=Hg([Zf]);return fa?(fa=fa.toLowerCase(),gt=>Gc(gt)&>.toLowerCase().endsWith(fa)):Gc},cs=([Zf,fa=""])=>{const Gc=Hg([Zf]);return fa?gt=>Gc(gt)&>.endsWith(fa):Gc},ni=([Zf,fa=""])=>{const Gc=sf([Zf]);return fa?gt=>Gc(gt)&>.endsWith(fa):Gc},sf=([Zf])=>{const fa=Zf.length;return Gc=>Gc.length===fa&&!Gc.startsWith(".")},Hg=([Zf])=>{const fa=Zf.length;return Gc=>Gc.length===fa&&Gc!=="."&&Gc!==".."},dp=typeof process=="object"&&process?typeof g=="object"&&g&&g.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",gi={win32:{sep:"\\"},posix:{sep:"/"}};p.sep=dp==="win32"?gi.win32.sep:gi.posix.sep,p.minimatch.sep=p.sep,p.GLOBSTAR=Symbol("globstar **"),p.minimatch.GLOBSTAR=p.GLOBSTAR;const g_="[^/]"+"*?",Vn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",p_="(?:(?!(?:\\/|^)\\.).)*?",Ol=(Zf,fa={})=>Gc=>(0,p.minimatch)(Gc,Zf,fa);p.filter=Ol,p.minimatch.filter=p.filter;const Gf=(Zf,fa={})=>Object.assign({},Zf,fa),ea=Zf=>{if(!Zf||typeof Zf!="object"||!Object.keys(Zf).length)return p.minimatch;const fa=p.minimatch;return Object.assign((gt,eu,Hi={})=>fa(gt,eu,Gf(Zf,Hi)),{Minimatch:class extends fa.Minimatch{constructor(eu,Hi={}){super(eu,Gf(Zf,Hi))}static defaults(eu){return fa.defaults(Gf(Zf,eu)).Minimatch}},AST:class extends fa.AST{constructor(eu,Hi,jm={}){super(eu,Hi,Gf(Zf,jm))}static fromGlob(eu,Hi={}){return fa.AST.fromGlob(eu,Gf(Zf,Hi))}},unescape:(gt,eu={})=>fa.unescape(gt,Gf(Zf,eu)),escape:(gt,eu={})=>fa.escape(gt,Gf(Zf,eu)),filter:(gt,eu={})=>fa.filter(gt,Gf(Zf,eu)),defaults:gt=>fa.defaults(Gf(Zf,gt)),makeRe:(gt,eu={})=>fa.makeRe(gt,Gf(Zf,eu)),braceExpand:(gt,eu={})=>fa.braceExpand(gt,Gf(Zf,eu)),match:(gt,eu,Hi={})=>fa.match(gt,eu,Gf(Zf,Hi)),sep:fa.sep,GLOBSTAR:p.GLOBSTAR})};p.defaults=ea,p.minimatch.defaults=p.defaults;const Lm=(Zf,fa={})=>((0,H.assertValidPattern)(Zf),fa.nobrace||!/\{(?:(?!\{).)*\}/.test(Zf)?[Zf]:(0,L.default)(Zf));p.braceExpand=Lm,p.minimatch.braceExpand=p.braceExpand;const Ky=(Zf,fa={})=>new p2(Zf,fa).makeRe();p.makeRe=Ky,p.minimatch.makeRe=p.makeRe;const kx=(Zf,fa,Gc={})=>{const gt=new p2(fa,Gc);return Zf=Zf.filter(eu=>gt.match(eu)),gt.options.nonull&&!Zf.length&&Zf.push(fa),Zf};p.match=kx,p.minimatch.match=p.match;const fA=/[?*]|[+@!]\(.*?\)|\[|\]/,Qo=Zf=>Zf.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class p2{constructor(fa,Gc={}){f1(this,"options");f1(this,"set");f1(this,"pattern");f1(this,"windowsPathsNoEscape");f1(this,"nonegate");f1(this,"negate");f1(this,"comment");f1(this,"empty");f1(this,"preserveMultipleSlashes");f1(this,"partial");f1(this,"globSet");f1(this,"globParts");f1(this,"nocase");f1(this,"isWindows");f1(this,"platform");f1(this,"windowsNoMagicRoot");f1(this,"regexp");(0,H.assertValidPattern)(fa),Gc=Gc||{},this.options=Gc,this.pattern=fa,this.platform=Gc.platform||dp,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!Gc.windowsPathsNoEscape||Gc.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!Gc.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!Gc.nonegate,this.comment=!1,this.empty=!1,this.partial=!!Gc.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=Gc.windowsNoMagicRoot!==void 0?Gc.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const fa of this.set)for(const Gc of fa)if(typeof Gc!="string")return!0;return!1}debug(...fa){}make(){const fa=this.pattern,Gc=this.options;if(!Gc.nocomment&&fa.charAt(0)==="#"){this.comment=!0;return}if(!fa){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],Gc.debug&&(this.debug=(...Hi)=>console.error(...Hi)),this.debug(this.pattern,this.globSet);const gt=this.globSet.map(Hi=>this.slashSplit(Hi));this.globParts=this.preprocess(gt),this.debug(this.pattern,this.globParts);let eu=this.globParts.map((Hi,jm,Cy)=>{if(this.isWindows&&this.windowsNoMagicRoot){const xS=Hi[0]===""&&Hi[1]===""&&(Hi[2]==="?"||!fA.test(Hi[2]))&&!fA.test(Hi[3]),QS=/^[a-z]:/i.test(Hi[0]);if(xS)return[...Hi.slice(0,4),...Hi.slice(4).map(th=>this.parse(th))];if(QS)return[Hi[0],...Hi.slice(1).map(th=>this.parse(th))]}return Hi.map(xS=>this.parse(xS))});if(this.debug(this.pattern,eu),this.set=eu.filter(Hi=>Hi.indexOf(!1)===-1),this.isWindows)for(let Hi=0;Hi=2?(fa=this.firstPhasePreProcess(fa),fa=this.secondPhasePreProcess(fa)):Gc>=1?fa=this.levelOneOptimize(fa):fa=this.adjascentGlobstarOptimize(fa),fa}adjascentGlobstarOptimize(fa){return fa.map(Gc=>{let gt=-1;for(;(gt=Gc.indexOf("**",gt+1))!==-1;){let eu=gt;for(;Gc[eu+1]==="**";)eu++;eu!==gt&&Gc.splice(gt,eu-gt)}return Gc})}levelOneOptimize(fa){return fa.map(Gc=>(Gc=Gc.reduce((gt,eu)=>{const Hi=gt[gt.length-1];return eu==="**"&&Hi==="**"?gt:eu===".."&&Hi&&Hi!==".."&&Hi!=="."&&Hi!=="**"?(gt.pop(),gt):(gt.push(eu),gt)},[]),Gc.length===0?[""]:Gc))}levelTwoFileOptimize(fa){Array.isArray(fa)||(fa=this.slashSplit(fa));let Gc=!1;do{if(Gc=!1,!this.preserveMultipleSlashes){for(let eu=1;eueu&>.splice(eu+1,jm-eu);let Cy=gt[eu+1];const xS=gt[eu+2],QS=gt[eu+3];if(Cy!==".."||!xS||xS==="."||xS===".."||!QS||QS==="."||QS==="..")continue;Gc=!0,gt.splice(eu,1);const th=gt.slice(0);th[eu]="**",fa.push(th),eu--}if(!this.preserveMultipleSlashes){for(let jm=1;jmGc.length)}partsMatch(fa,Gc,gt=!1){let eu=0,Hi=0,jm=[],Cy="";for(;eub8?Gc=Gc.slice(ur):b8>ur&&(fa=fa.slice(b8)))}}const{optimizationLevel:Hi=1}=this.options;Hi>=2&&(fa=this.levelTwoFileOptimize(fa)),this.debug("matchOne",this,{file:fa,pattern:Gc}),this.debug("matchOne",fa.length,Gc.length);for(var jm=0,Cy=0,xS=fa.length,QS=Gc.length;jm>> no match, partial?`,fa,g2,Gc,d0),g2===xS))}let _A;if(typeof th=="string"?(_A=WC===th,this.debug("string match",th,WC,_A)):(_A=th.test(WC),this.debug("pattern match",th,WC,_A)),!_A)return!1}if(jm===xS&&Cy===QS)return!0;if(jm===xS)return gt;if(Cy===QS)return jm===xS-1&&fa[jm]==="";throw new Error("wtf?")}braceExpand(){return(0,p.braceExpand)(this.pattern,this.options)}parse(fa){(0,H.assertValidPattern)(fa);const Gc=this.options;if(fa==="**")return p.GLOBSTAR;if(fa==="")return"";let gt,eu=null;(gt=fa.match(Zi))?eu=Gc.dot?lr:jr:(gt=fa.match(At))?eu=(Gc.nocase?Gc.dot?Ot:Nt:Gc.dot?tr:sn)(gt[1]):(gt=fa.match(ra))?eu=(Gc.nocase?Gc.dot?Ms:Ho:Gc.dot?cs:ni)(gt):(gt=fa.match(bo))?eu=Gc.dot?Ns:Yr:(gt=fa.match(ui))&&(eu=Zr);const Hi=G.AST.fromGlob(fa,this.options).toMMPattern();return eu?Object.assign(Hi,{test:eu}):Hi}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const fa=this.set;if(!fa.length)return this.regexp=!1,this.regexp;const Gc=this.options,gt=Gc.noglobstar?g_:Gc.dot?Vn:p_,eu=new Set(Gc.nocase?["i"]:[]);let Hi=fa.map(xS=>{const QS=xS.map(th=>{if(th instanceof RegExp)for(const WC of th.flags.split(""))eu.add(WC);return typeof th=="string"?Qo(th):th===p.GLOBSTAR?p.GLOBSTAR:th._src});return QS.forEach((th,WC)=>{const g2=QS[WC+1],d0=QS[WC-1];th!==p.GLOBSTAR||d0===p.GLOBSTAR||(d0===void 0?g2!==void 0&&g2!==p.GLOBSTAR?QS[WC+1]="(?:\\/|"+gt+"\\/)?"+g2:QS[WC]=gt:g2===void 0?QS[WC-1]=d0+"(?:\\/|"+gt+")?":g2!==p.GLOBSTAR&&(QS[WC-1]=d0+"(?:\\/|\\/"+gt+"\\/)"+g2,QS[WC+1]=p.GLOBSTAR))}),QS.filter(th=>th!==p.GLOBSTAR).join("/")}).join("|");const[jm,Cy]=fa.length>1?["(?:",")"]:["",""];Hi="^"+jm+Hi+Cy+"$",this.negate&&(Hi="^(?!"+Hi+").+$");try{this.regexp=new RegExp(Hi,[...eu].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(fa){return this.preserveMultipleSlashes?fa.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(fa)?["",...fa.split(/\/+/)]:fa.split(/\/+/)}match(fa,Gc=this.partial){if(this.debug("match",fa,this.pattern),this.comment)return!1;if(this.empty)return fa==="";if(fa==="/"&&Gc)return!0;const gt=this.options;this.isWindows&&(fa=fa.split("\\").join("/"));const eu=this.slashSplit(fa);this.debug(this.pattern,"split",eu);const Hi=this.set;this.debug(this.pattern,"set",Hi);let jm=eu[eu.length-1];if(!jm)for(let Cy=eu.length-2;!jm&&Cy>=0;Cy--)jm=eu[Cy];for(let Cy=0;Cy2){var ot=x.lastIndexOf("/");if(ot!==x.length-1){ot===-1?(x="",L=0):(x=x.slice(0,ot),L=x.length-1-x.lastIndexOf("/")),H=Oe,G=0;continue}}else if(x.length===2||x.length===1){x="",L=0,H=Oe,G=0;continue}}g&&(x.length>0?x+="/..":x="..",L=2)}else x.length>0?x+="/"+p.slice(H+1,Oe):x=p.slice(H+1,Oe),L=Oe-H-1;H=Oe,G=0}else ye===46&&G!==-1?++G:G=-1}return x}function n4t(p,g){var x=g.dir||g.root,L=g.base||(g.name||"")+(g.ext||"");return x?x===g.root?x+L:x+p+L:L}var RRe={resolve:function(){for(var g="",x=!1,L,H=arguments.length-1;H>=-1&&!x;H--){var G;H>=0?G=arguments[H]:(L===void 0&&(L=process.cwd()),G=L),VK(G),G.length!==0&&(g=G+"/"+g,x=G.charCodeAt(0)===47)}return g=$2t(g,!x),x?g.length>0?"/"+g:"/":g.length>0?g:"."},normalize:function(g){if(VK(g),g.length===0)return".";var x=g.charCodeAt(0)===47,L=g.charCodeAt(g.length-1)===47;return g=$2t(g,!x),g.length===0&&!x&&(g="."),g.length>0&&L&&(g+="/"),x?"/"+g:g},isAbsolute:function(g){return VK(g),g.length>0&&g.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var g,x=0;x0&&(g===void 0?g=L:g+="/"+L)}return g===void 0?".":RRe.normalize(g)},relative:function(g,x){if(VK(g),VK(x),g===x||(g=RRe.resolve(g),x=RRe.resolve(x),g===x))return"";for(var L=1;LAt){if(x.charCodeAt(ye+tr)===47)return x.slice(ye+tr+1);if(tr===0)return x.slice(ye+tr)}else G>At&&(g.charCodeAt(L+tr)===47?sn=tr:tr===0&&(sn=0));break}var Nt=g.charCodeAt(L+tr),Ot=x.charCodeAt(ye+tr);if(Nt!==Ot)break;Nt===47&&(sn=tr)}var bo="";for(tr=L+sn+1;tr<=H;++tr)(tr===H||g.charCodeAt(tr)===47)&&(bo.length===0?bo+="..":bo+="/..");return bo.length>0?bo+x.slice(ye+sn):(ye+=sn,x.charCodeAt(ye)===47&&++ye,x.slice(ye))},_makeLong:function(g){return g},dirname:function(g){if(VK(g),g.length===0)return".";for(var x=g.charCodeAt(0),L=x===47,H=-1,G=!0,ye=g.length-1;ye>=1;--ye)if(x=g.charCodeAt(ye),x===47){if(!G){H=ye;break}}else G=!1;return H===-1?L?"/":".":L&&H===1?"//":g.slice(0,H)},basename:function(g,x){if(x!==void 0&&typeof x!="string")throw new TypeError('"ext" argument must be a string');VK(g);var L=0,H=-1,G=!0,ye;if(x!==void 0&&x.length>0&&x.length<=g.length){if(x.length===g.length&&x===g)return"";var Oe=x.length-1,ot=-1;for(ye=g.length-1;ye>=0;--ye){var At=g.charCodeAt(ye);if(At===47){if(!G){L=ye+1;break}}else ot===-1&&(G=!1,ot=ye+1),Oe>=0&&(At===x.charCodeAt(Oe)?--Oe===-1&&(H=ye):(Oe=-1,H=ot))}return L===H?H=ot:H===-1&&(H=g.length),g.slice(L,H)}else{for(ye=g.length-1;ye>=0;--ye)if(g.charCodeAt(ye)===47){if(!G){L=ye+1;break}}else H===-1&&(G=!1,H=ye+1);return H===-1?"":g.slice(L,H)}},extname:function(g){VK(g);for(var x=-1,L=0,H=-1,G=!0,ye=0,Oe=g.length-1;Oe>=0;--Oe){var ot=g.charCodeAt(Oe);if(ot===47){if(!G){L=Oe+1;break}continue}H===-1&&(G=!1,H=Oe+1),ot===46?x===-1?x=Oe:ye!==1&&(ye=1):x!==-1&&(ye=-1)}return x===-1||H===-1||ye===0||ye===1&&x===H-1&&x===L+1?"":g.slice(x,H)},format:function(g){if(g===null||typeof g!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof g);return n4t("/",g)},parse:function(g){VK(g);var x={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return x;var L=g.charCodeAt(0),H=L===47,G;H?(x.root="/",G=1):G=0;for(var ye=-1,Oe=0,ot=-1,At=!0,sn=g.length-1,tr=0;sn>=G;--sn){if(L=g.charCodeAt(sn),L===47){if(!At){Oe=sn+1;break}continue}ot===-1&&(At=!1,ot=sn+1),L===46?ye===-1?ye=sn:tr!==1&&(tr=1):ye!==-1&&(tr=-1)}return ye===-1||ot===-1||tr===0||tr===1&&ye===ot-1&&ye===Oe+1?ot!==-1&&(Oe===0&&H?x.base=x.name=g.slice(1,ot):x.base=x.name=g.slice(Oe,ot)):(Oe===0&&H?(x.name=g.slice(1,ye),x.base=g.slice(1,ot)):(x.name=g.slice(Oe,ye),x.base=g.slice(Oe,ot)),x.ext=g.slice(ye,ot)),Oe>0?x.dir=g.slice(0,Oe-1):H&&(x.dir="/"),x},sep:"/",delimiter:":",win32:null,posix:null};RRe.posix=RRe;var r4t=RRe;(function(p){var AS,U5,QT,_N,BD,H5,S8,dN,E8,I1t,zg,Sz,dU,$w,J5,ls,BC,As,U1,sIt,uc,cIt,bg,xT,eE,Of,x8,gje,Pd,p0,lIt,JO,$it,_1,rRe,ZA,uIt,pf,hje,qw,Kw,rP,Fp,Xw,fIt,$5,k1t,mN,Z0,fh,$O,h_,P1t,K5,N1t,AL,w1t,zC,R1t,IM,yje,_v,vje,CL,bje,xf,M1t,C8,_It,bb,vne,gN,i_e,zD,L1t,gU,Qw,iRe,Y5,O1t,ME,vM,kM,Tje,zy,NC,AT,QI,eC,F1t,xz,W1t,re,qit,GD,Sje,Zw,Eje,hN,JK,J1,LE,cX,lX,yU,dIt,vU,Kit,bU,KO,TU,B1t,Az,XO,ZT,yN,Cz,SU,pIt;var g=wLt,x=XDt,L=MC,H=MC,G=MC,ye=MC,Oe=MC;function ot(ds){return ds&&typeof ds=="object"&&"default"in ds?ds:{default:ds}}function At(ds){if(ds&&typeof ds=="object"&&"default"in ds)return ds;var Qe=Object.create(null);return ds&&Object.keys(ds).forEach(function(en){if(en!=="default"){var Ar=Object.getOwnPropertyDescriptor(ds,en);Object.defineProperty(Qe,en,Ar.get?Ar:{enumerable:!0,get:function(){return ds[en]}})}}),Qe.default=ds,Object.freeze(Qe)}var sn=At(g),tr=At(x),Nt=ot(L),Ot=At(H),bo=At(G),Yr=At(ye),Ns=At(Oe);class ui{constructor(){$u(this,AS,new Map)}getSize(){return ti(this,AS).size}getValues(){return ti(this,AS).values()}getValuesAsArray(){return Array.from(this.getValues())}getKeys(){return ti(this,AS).keys()}getEntries(){return ti(this,AS).entries()}getOrCreate(Qe,en){let Ar=this.get(Qe);return Ar==null&&(Ar=en(),this.set(Qe,Ar)),Ar}has(Qe){return ti(this,AS).has(Qe)}get(Qe){return ti(this,AS).get(Qe)}set(Qe,en){ti(this,AS).set(Qe,en)}replaceKey(Qe,en){if(!ti(this,AS).has(Qe))throw new Error("Key not found.");const Ar=ti(this,AS).get(Qe);ti(this,AS).delete(Qe),ti(this,AS).set(en,Ar)}removeByKey(Qe){ti(this,AS).delete(Qe)}clear(){ti(this,AS).clear()}}AS=new WeakMap;class Zr{constructor(Qe,en){$u(this,U5,void 0);$u(this,QT,void 0);Bg(this,U5,Qe),Bg(this,QT,en)}compareTo(Qe){return ti(this,U5).compareTo(ti(this,QT),Qe)}}U5=new WeakMap,QT=new WeakMap;const Tz=class Tz{compareTo(Qe,en){const Ar=Qe.localeCompare(en,"en-us-u-kf-upper");return Ar<0?-1:Ar===0?0:1}};f1(Tz,"instance",new Tz);let Zi=Tz;class jr{constructor(Qe,en){$u(this,_N,void 0);$u(this,BD,void 0);Bg(this,BD,Qe),Bg(this,_N,en)}compareTo(Qe,en){return ti(this,_N).compareTo(ti(this,BD).call(this,Qe),ti(this,BD).call(this,en))}}_N=new WeakMap,BD=new WeakMap;class lr{constructor(Qe,en){$u(this,H5,void 0);$u(this,S8,void 0);Bg(this,S8,Qe),Bg(this,H5,en)}compareTo(Qe){return ti(this,H5).compareTo(ti(this,S8).call(this,Qe))}}H5=new WeakMap,S8=new WeakMap;class ra{constructor(){}static isReadonlyArray(Qe){return Qe instanceof Array}static isNullOrEmpty(Qe){return!(Qe instanceof Array)||Qe.length===0}static getUniqueItems(Qe){return Qe.filter((en,Ar)=>Qe.indexOf(en)===Ar)}static removeFirst(Qe,en){const Ar=Qe.indexOf(en);return Ar===-1?!1:(Qe.splice(Ar,1),!0)}static removeAll(Qe,en){const Ar=[];for(let eo=Qe.length-1;eo>=0;eo--)en(Qe[eo])&&(Ar.push(Qe[eo]),Qe.splice(eo,1));return Ar}static*toIterator(Qe){for(const en of Qe)yield en}static sortByProperty(Qe,en){return Qe.sort((Ar,eo)=>en(Ar)<=en(eo)?-1:1),Qe}static groupBy(Qe,en){const Ar=[],eo={};for(const Zo of Qe){const Rc=en(Zo).toString();eo[Rc]==null&&(eo[Rc]=[],Ar.push(eo[Rc])),eo[Rc].push(Zo)}return Ar}static binaryInsertWithOverwrite(Qe,en,Ar){let eo=Qe.length-1,Zo=0;for(;Zo<=eo;){const Rc=Math.floor((eo+Zo)/2);Ar.compareTo(en,Qe[Rc])<0?eo=Rc-1:Zo=Rc+1}Qe[eo]!=null&&Ar.compareTo(en,Qe[eo])===0?Qe[eo]=en:Qe.splice(eo+1,0,en)}static binarySearch(Qe,en){let Ar=Qe.length-1,eo=0;for(;eo<=Ar;){const Zo=Math.floor((Ar+eo)/2),Rc=en.compareTo(Qe[Zo]);if(Rc===0)return Zo;Rc<0?Ar=Zo-1:eo=Zo+1}return-1}static containsSubArray(Qe,en){let Ar=0;for(const eo of Qe)if(en[Ar]===eo){if(Ar++,Ar===en.length)return!0}else Ar=0;return!1}}function Ho(ds){return Qe(ds);function Qe(eo){const Zo=Object.create(eo.constructor.prototype);for(const Rc of Object.keys(eo))Zo[Rc]=Ar(eo[Rc]);return Zo}function en(eo){return eo.map(Ar)}function Ar(eo){return eo instanceof Array?en(eo):typeof eo=="object"?eo===null?eo:Qe(eo):eo}}class Ms{constructor(){$u(this,E8);$u(this,dN,[])}subscribe(Qe){is(this,E8,I1t).call(this,Qe)===-1&&ti(this,dN).push(Qe)}unsubscribe(Qe){const en=is(this,E8,I1t).call(this,Qe);en>=0&&ti(this,dN).splice(en,1)}fire(Qe){for(const en of ti(this,dN))en(Qe)}}dN=new WeakMap,E8=new WeakSet,I1t=function(Qe){return ti(this,dN).indexOf(Qe)};class cs{static find(Qe,en){for(const Ar of Qe)if(en(Ar))return Ar}}function ni(ds,Qe){return Qe??ds}class sf{constructor(){}static clone(Qe){if(Qe==null)return;if(Qe instanceof Array)return en(Qe);return Object.assign({},Qe);function en(Ar){return Ar.map(eo=>sf.clone(eo))}}}function Hg(ds,Qe,en,Ar,eo,Zo,Rc,Af,d1,H_){return sn.matchFiles.apply(this,arguments)}function dp(ds,Qe,en,Ar,eo){return sn.getFileMatcherPatterns.apply(this,arguments)}function gi(ds){return sn.getEmitModuleResolutionKind.apply(this,arguments)}function vd(ds){return Vn()[ds]}let g_;function Vn(){if(g_!=null)return g_;g_={};for(const ds of Object.keys(sn.SyntaxKind).filter(Qe=>isNaN(parseInt(Qe,10)))){const Qe=sn.SyntaxKind[ds];g_[Qe]==null&&(g_[Qe]=ds)}return g_}p.errors=void 0,function(ds){class Qe extends Error{constructor(dd,eb){const DL=eb&&p_(eb),IL=DL?`${dd} +>>> no match, partial?`,fa,g2,Gc,d0),g2===xS))}let _A;if(typeof th=="string"?(_A=WC===th,this.debug("string match",th,WC,_A)):(_A=th.test(WC),this.debug("pattern match",th,WC,_A)),!_A)return!1}if(jm===xS&&Cy===QS)return!0;if(jm===xS)return gt;if(Cy===QS)return jm===xS-1&&fa[jm]==="";throw new Error("wtf?")}braceExpand(){return(0,p.braceExpand)(this.pattern,this.options)}parse(fa){(0,H.assertValidPattern)(fa);const Gc=this.options;if(fa==="**")return p.GLOBSTAR;if(fa==="")return"";let gt,eu=null;(gt=fa.match(Zi))?eu=Gc.dot?lr:jr:(gt=fa.match(At))?eu=(Gc.nocase?Gc.dot?Ot:Nt:Gc.dot?tr:sn)(gt[1]):(gt=fa.match(ra))?eu=(Gc.nocase?Gc.dot?Ms:Ho:Gc.dot?cs:ni)(gt):(gt=fa.match(bo))?eu=Gc.dot?Ns:Yr:(gt=fa.match(ui))&&(eu=Zr);const Hi=G.AST.fromGlob(fa,this.options).toMMPattern();return eu?Object.assign(Hi,{test:eu}):Hi}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const fa=this.set;if(!fa.length)return this.regexp=!1,this.regexp;const Gc=this.options,gt=Gc.noglobstar?g_:Gc.dot?Vn:p_,eu=new Set(Gc.nocase?["i"]:[]);let Hi=fa.map(xS=>{const QS=xS.map(th=>{if(th instanceof RegExp)for(const WC of th.flags.split(""))eu.add(WC);return typeof th=="string"?Qo(th):th===p.GLOBSTAR?p.GLOBSTAR:th._src});return QS.forEach((th,WC)=>{const g2=QS[WC+1],d0=QS[WC-1];th!==p.GLOBSTAR||d0===p.GLOBSTAR||(d0===void 0?g2!==void 0&&g2!==p.GLOBSTAR?QS[WC+1]="(?:\\/|"+gt+"\\/)?"+g2:QS[WC]=gt:g2===void 0?QS[WC-1]=d0+"(?:\\/|"+gt+")?":g2!==p.GLOBSTAR&&(QS[WC-1]=d0+"(?:\\/|\\/"+gt+"\\/)"+g2,QS[WC+1]=p.GLOBSTAR))}),QS.filter(th=>th!==p.GLOBSTAR).join("/")}).join("|");const[jm,Cy]=fa.length>1?["(?:",")"]:["",""];Hi="^"+jm+Hi+Cy+"$",this.negate&&(Hi="^(?!"+Hi+").+$");try{this.regexp=new RegExp(Hi,[...eu].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(fa){return this.preserveMultipleSlashes?fa.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(fa)?["",...fa.split(/\/+/)]:fa.split(/\/+/)}match(fa,Gc=this.partial){if(this.debug("match",fa,this.pattern),this.comment)return!1;if(this.empty)return fa==="";if(fa==="/"&&Gc)return!0;const gt=this.options;this.isWindows&&(fa=fa.split("\\").join("/"));const eu=this.slashSplit(fa);this.debug(this.pattern,"split",eu);const Hi=this.set;this.debug(this.pattern,"set",Hi);let jm=eu[eu.length-1];if(!jm)for(let Cy=eu.length-2;!jm&&Cy>=0;Cy--)jm=eu[Cy];for(let Cy=0;Cy2){var ot=x.lastIndexOf("/");if(ot!==x.length-1){ot===-1?(x="",L=0):(x=x.slice(0,ot),L=x.length-1-x.lastIndexOf("/")),H=Oe,G=0;continue}}else if(x.length===2||x.length===1){x="",L=0,H=Oe,G=0;continue}}g&&(x.length>0?x+="/..":x="..",L=2)}else x.length>0?x+="/"+p.slice(H+1,Oe):x=p.slice(H+1,Oe),L=Oe-H-1;H=Oe,G=0}else ye===46&&G!==-1?++G:G=-1}return x}function n4t(p,g){var x=g.dir||g.root,L=g.base||(g.name||"")+(g.ext||"");return x?x===g.root?x+L:x+p+L:L}var RRe={resolve:function(){for(var g="",x=!1,L,H=arguments.length-1;H>=-1&&!x;H--){var G;H>=0?G=arguments[H]:(L===void 0&&(L=process.cwd()),G=L),VK(G),G.length!==0&&(g=G+"/"+g,x=G.charCodeAt(0)===47)}return g=J2t(g,!x),x?g.length>0?"/"+g:"/":g.length>0?g:"."},normalize:function(g){if(VK(g),g.length===0)return".";var x=g.charCodeAt(0)===47,L=g.charCodeAt(g.length-1)===47;return g=J2t(g,!x),g.length===0&&!x&&(g="."),g.length>0&&L&&(g+="/"),x?"/"+g:g},isAbsolute:function(g){return VK(g),g.length>0&&g.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var g,x=0;x0&&(g===void 0?g=L:g+="/"+L)}return g===void 0?".":RRe.normalize(g)},relative:function(g,x){if(VK(g),VK(x),g===x||(g=RRe.resolve(g),x=RRe.resolve(x),g===x))return"";for(var L=1;LAt){if(x.charCodeAt(ye+tr)===47)return x.slice(ye+tr+1);if(tr===0)return x.slice(ye+tr)}else G>At&&(g.charCodeAt(L+tr)===47?sn=tr:tr===0&&(sn=0));break}var Nt=g.charCodeAt(L+tr),Ot=x.charCodeAt(ye+tr);if(Nt!==Ot)break;Nt===47&&(sn=tr)}var bo="";for(tr=L+sn+1;tr<=H;++tr)(tr===H||g.charCodeAt(tr)===47)&&(bo.length===0?bo+="..":bo+="/..");return bo.length>0?bo+x.slice(ye+sn):(ye+=sn,x.charCodeAt(ye)===47&&++ye,x.slice(ye))},_makeLong:function(g){return g},dirname:function(g){if(VK(g),g.length===0)return".";for(var x=g.charCodeAt(0),L=x===47,H=-1,G=!0,ye=g.length-1;ye>=1;--ye)if(x=g.charCodeAt(ye),x===47){if(!G){H=ye;break}}else G=!1;return H===-1?L?"/":".":L&&H===1?"//":g.slice(0,H)},basename:function(g,x){if(x!==void 0&&typeof x!="string")throw new TypeError('"ext" argument must be a string');VK(g);var L=0,H=-1,G=!0,ye;if(x!==void 0&&x.length>0&&x.length<=g.length){if(x.length===g.length&&x===g)return"";var Oe=x.length-1,ot=-1;for(ye=g.length-1;ye>=0;--ye){var At=g.charCodeAt(ye);if(At===47){if(!G){L=ye+1;break}}else ot===-1&&(G=!1,ot=ye+1),Oe>=0&&(At===x.charCodeAt(Oe)?--Oe===-1&&(H=ye):(Oe=-1,H=ot))}return L===H?H=ot:H===-1&&(H=g.length),g.slice(L,H)}else{for(ye=g.length-1;ye>=0;--ye)if(g.charCodeAt(ye)===47){if(!G){L=ye+1;break}}else H===-1&&(G=!1,H=ye+1);return H===-1?"":g.slice(L,H)}},extname:function(g){VK(g);for(var x=-1,L=0,H=-1,G=!0,ye=0,Oe=g.length-1;Oe>=0;--Oe){var ot=g.charCodeAt(Oe);if(ot===47){if(!G){L=Oe+1;break}continue}H===-1&&(G=!1,H=Oe+1),ot===46?x===-1?x=Oe:ye!==1&&(ye=1):x!==-1&&(ye=-1)}return x===-1||H===-1||ye===0||ye===1&&x===H-1&&x===L+1?"":g.slice(x,H)},format:function(g){if(g===null||typeof g!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof g);return n4t("/",g)},parse:function(g){VK(g);var x={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return x;var L=g.charCodeAt(0),H=L===47,G;H?(x.root="/",G=1):G=0;for(var ye=-1,Oe=0,ot=-1,At=!0,sn=g.length-1,tr=0;sn>=G;--sn){if(L=g.charCodeAt(sn),L===47){if(!At){Oe=sn+1;break}continue}ot===-1&&(At=!1,ot=sn+1),L===46?ye===-1?ye=sn:tr!==1&&(tr=1):ye!==-1&&(tr=-1)}return ye===-1||ot===-1||tr===0||tr===1&&ye===ot-1&&ye===Oe+1?ot!==-1&&(Oe===0&&H?x.base=x.name=g.slice(1,ot):x.base=x.name=g.slice(Oe,ot)):(Oe===0&&H?(x.name=g.slice(1,ye),x.base=g.slice(1,ot)):(x.name=g.slice(Oe,ye),x.base=g.slice(Oe,ot)),x.ext=g.slice(ye,ot)),Oe>0?x.dir=g.slice(0,Oe-1):H&&(x.dir="/"),x},sep:"/",delimiter:":",win32:null,posix:null};RRe.posix=RRe;var r4t=RRe;(function(p){var AS,U5,QT,_N,BD,H5,S8,dN,E8,D1t,zg,Tz,dU,$w,J5,ls,BC,As,U1,aIt,uc,sIt,bg,xT,eE,Of,x8,gje,Pd,p0,cIt,JO,$it,_1,rRe,ZA,lIt,pf,hje,qw,Kw,rP,Fp,Xw,uIt,$5,I1t,mN,Z0,fh,$O,h_,k1t,K5,P1t,xL,N1t,zC,w1t,IM,yje,_v,vje,AL,bje,xf,R1t,C8,fIt,bb,vne,gN,i_e,zD,M1t,gU,Qw,iRe,Y5,L1t,ME,vM,kM,Tje,zy,NC,AT,QI,eC,O1t,Ez,F1t,re,qit,GD,Sje,Zw,Eje,hN,JK,J1,LE,cX,lX,yU,_It,vU,Kit,bU,KO,TU,W1t,xz,XO,ZT,yN,Az,SU,dIt;var g=wLt,x=KDt,L=MC,H=MC,G=MC,ye=MC,Oe=MC;function ot(ds){return ds&&typeof ds=="object"&&"default"in ds?ds:{default:ds}}function At(ds){if(ds&&typeof ds=="object"&&"default"in ds)return ds;var Qe=Object.create(null);return ds&&Object.keys(ds).forEach(function(en){if(en!=="default"){var Ar=Object.getOwnPropertyDescriptor(ds,en);Object.defineProperty(Qe,en,Ar.get?Ar:{enumerable:!0,get:function(){return ds[en]}})}}),Qe.default=ds,Object.freeze(Qe)}var sn=At(g),tr=At(x),Nt=ot(L),Ot=At(H),bo=At(G),Yr=At(ye),Ns=At(Oe);class ui{constructor(){$u(this,AS,new Map)}getSize(){return ti(this,AS).size}getValues(){return ti(this,AS).values()}getValuesAsArray(){return Array.from(this.getValues())}getKeys(){return ti(this,AS).keys()}getEntries(){return ti(this,AS).entries()}getOrCreate(Qe,en){let Ar=this.get(Qe);return Ar==null&&(Ar=en(),this.set(Qe,Ar)),Ar}has(Qe){return ti(this,AS).has(Qe)}get(Qe){return ti(this,AS).get(Qe)}set(Qe,en){ti(this,AS).set(Qe,en)}replaceKey(Qe,en){if(!ti(this,AS).has(Qe))throw new Error("Key not found.");const Ar=ti(this,AS).get(Qe);ti(this,AS).delete(Qe),ti(this,AS).set(en,Ar)}removeByKey(Qe){ti(this,AS).delete(Qe)}clear(){ti(this,AS).clear()}}AS=new WeakMap;class Zr{constructor(Qe,en){$u(this,U5,void 0);$u(this,QT,void 0);Bg(this,U5,Qe),Bg(this,QT,en)}compareTo(Qe){return ti(this,U5).compareTo(ti(this,QT),Qe)}}U5=new WeakMap,QT=new WeakMap;const bz=class bz{compareTo(Qe,en){const Ar=Qe.localeCompare(en,"en-us-u-kf-upper");return Ar<0?-1:Ar===0?0:1}};f1(bz,"instance",new bz);let Zi=bz;class jr{constructor(Qe,en){$u(this,_N,void 0);$u(this,BD,void 0);Bg(this,BD,Qe),Bg(this,_N,en)}compareTo(Qe,en){return ti(this,_N).compareTo(ti(this,BD).call(this,Qe),ti(this,BD).call(this,en))}}_N=new WeakMap,BD=new WeakMap;class lr{constructor(Qe,en){$u(this,H5,void 0);$u(this,S8,void 0);Bg(this,S8,Qe),Bg(this,H5,en)}compareTo(Qe){return ti(this,H5).compareTo(ti(this,S8).call(this,Qe))}}H5=new WeakMap,S8=new WeakMap;class ra{constructor(){}static isReadonlyArray(Qe){return Qe instanceof Array}static isNullOrEmpty(Qe){return!(Qe instanceof Array)||Qe.length===0}static getUniqueItems(Qe){return Qe.filter((en,Ar)=>Qe.indexOf(en)===Ar)}static removeFirst(Qe,en){const Ar=Qe.indexOf(en);return Ar===-1?!1:(Qe.splice(Ar,1),!0)}static removeAll(Qe,en){const Ar=[];for(let eo=Qe.length-1;eo>=0;eo--)en(Qe[eo])&&(Ar.push(Qe[eo]),Qe.splice(eo,1));return Ar}static*toIterator(Qe){for(const en of Qe)yield en}static sortByProperty(Qe,en){return Qe.sort((Ar,eo)=>en(Ar)<=en(eo)?-1:1),Qe}static groupBy(Qe,en){const Ar=[],eo={};for(const Zo of Qe){const Rc=en(Zo).toString();eo[Rc]==null&&(eo[Rc]=[],Ar.push(eo[Rc])),eo[Rc].push(Zo)}return Ar}static binaryInsertWithOverwrite(Qe,en,Ar){let eo=Qe.length-1,Zo=0;for(;Zo<=eo;){const Rc=Math.floor((eo+Zo)/2);Ar.compareTo(en,Qe[Rc])<0?eo=Rc-1:Zo=Rc+1}Qe[eo]!=null&&Ar.compareTo(en,Qe[eo])===0?Qe[eo]=en:Qe.splice(eo+1,0,en)}static binarySearch(Qe,en){let Ar=Qe.length-1,eo=0;for(;eo<=Ar;){const Zo=Math.floor((Ar+eo)/2),Rc=en.compareTo(Qe[Zo]);if(Rc===0)return Zo;Rc<0?Ar=Zo-1:eo=Zo+1}return-1}static containsSubArray(Qe,en){let Ar=0;for(const eo of Qe)if(en[Ar]===eo){if(Ar++,Ar===en.length)return!0}else Ar=0;return!1}}function Ho(ds){return Qe(ds);function Qe(eo){const Zo=Object.create(eo.constructor.prototype);for(const Rc of Object.keys(eo))Zo[Rc]=Ar(eo[Rc]);return Zo}function en(eo){return eo.map(Ar)}function Ar(eo){return eo instanceof Array?en(eo):typeof eo=="object"?eo===null?eo:Qe(eo):eo}}class Ms{constructor(){$u(this,E8);$u(this,dN,[])}subscribe(Qe){is(this,E8,D1t).call(this,Qe)===-1&&ti(this,dN).push(Qe)}unsubscribe(Qe){const en=is(this,E8,D1t).call(this,Qe);en>=0&&ti(this,dN).splice(en,1)}fire(Qe){for(const en of ti(this,dN))en(Qe)}}dN=new WeakMap,E8=new WeakSet,D1t=function(Qe){return ti(this,dN).indexOf(Qe)};class cs{static find(Qe,en){for(const Ar of Qe)if(en(Ar))return Ar}}function ni(ds,Qe){return Qe??ds}class sf{constructor(){}static clone(Qe){if(Qe==null)return;if(Qe instanceof Array)return en(Qe);return Object.assign({},Qe);function en(Ar){return Ar.map(eo=>sf.clone(eo))}}}function Hg(ds,Qe,en,Ar,eo,Zo,Rc,Af,d1,H_){return sn.matchFiles.apply(this,arguments)}function dp(ds,Qe,en,Ar,eo){return sn.getFileMatcherPatterns.apply(this,arguments)}function gi(ds){return sn.getEmitModuleResolutionKind.apply(this,arguments)}function vd(ds){return Vn()[ds]}let g_;function Vn(){if(g_!=null)return g_;g_={};for(const ds of Object.keys(sn.SyntaxKind).filter(Qe=>isNaN(parseInt(Qe,10)))){const Qe=sn.SyntaxKind[ds];g_[Qe]==null&&(g_[Qe]=ds)}return g_}p.errors=void 0,function(ds){class Qe extends Error{constructor(dd,eb){const CL=eb&&p_(eb),DL=CL?`${dd} -${DL}`:dd;super(IL),this.message=IL}}ds.BaseError=Qe;class en extends Qe{constructor(dd,eb,DL){super(`Argument Error (${dd}): ${eb}`,DL)}}ds.ArgumentError=en;class Ar extends en{constructor(dd,eb){super(dd,"Cannot be null or whitespace.",eb)}}ds.ArgumentNullOrWhitespaceError=Ar;class eo extends en{constructor(dd,eb,DL,IL){super(dd,`Range is ${DL[0]} to ${DL[1]}, but ${eb} was provided.`,IL)}}ds.ArgumentOutOfRangeError=eo;class Zo extends en{constructor(dd,eb,DL,IL){super(dd,`Expected type '${eb}', but was '${DL}'.`,IL)}}ds.ArgumentTypeError=Zo;class Rc extends Qe{constructor(eb,DL="Path"){super(`${DL} not found: ${eb}`);f1(this,"path");f1(this,"code","ENOENT");this.path=eb}}ds.PathNotFoundError=Rc;class Af extends Rc{constructor(dd){super(dd,"Directory")}}ds.DirectoryNotFoundError=Af;class d1 extends Rc{constructor(dd){super(dd,"File")}}ds.FileNotFoundError=d1;class H_ extends Qe{constructor(dd,eb){super(dd,eb)}}ds.InvalidOperationError=H_;class eS extends Qe{constructor(dd="Not implemented.",eb){super(dd,eb)}}ds.NotImplementedError=eS;class dv extends Qe{constructor(dd){super(dd)}}ds.NotSupportedError=dv;function Zh(jf,dd,eb){if(typeof jf!==dd)throw new Zo(eb,dd,typeof jf)}ds.throwIfNotType=Zh;function $p(jf,dd){if(typeof jf!="string")throw new Zo(dd,"string",typeof jf)}ds.throwIfNotString=$p;function uy(jf,dd){if($p(jf,dd),jf.trim().length===0)throw new Ar(dd)}ds.throwIfWhitespaceOrNotString=uy;function tE(jf,dd,eb){if(jfdd[1])throw new eo(eb,jf,dd)}ds.throwIfOutOfRange=tE;function cf(jf,dd,eb){if(jf[0]>jf[1])throw new en(eb,`The start of a range must not be greater than the end: [${jf[0]}, ${jf[1]}]`);tE(jf[0],dd,eb),tE(jf[1],dd,eb)}ds.throwIfRangeOutOfRange=cf;function Tb(jf,dd){throw new eS(`Not implemented feature for syntax kind '${vd(jf)}'.`,dd)}ds.throwNotImplementedForSyntaxKindError=Tb;function Dz(jf,dd){if(jf<0)throw new en(dd,"Expected a non-negative value.")}ds.throwIfNegative=Dz;function jD(jf,dd,eb){if(jf==null)throw new H_(typeof dd=="string"?dd:dd(),eb);return jf}ds.throwIfNullOrUndefined=jD;function dMe(jf,dd){const eb=jf;if(eb!=null&&typeof eb.kind=="number")return Tb(eb.kind,dd);throw new eS(`Not implemented value: ${JSON.stringify(jf)}`,dd)}ds.throwNotImplementedForNeverValueError=dMe;function yTe(jf,dd,eb){if(jf!==dd)throw new H_(`Expected ${jf} to equal ${dd}. ${eb}`)}ds.throwIfNotEqual=yTe;function qne(jf,dd){if(jf===!0)throw new H_(dd)}ds.throwIfTrue=qne}(p.errors||(p.errors={}));function p_(ds){const Qe=Ol(ds);if(Qe)return`${Qe.filePath}:${Qe.loc.line}:${Qe.loc.character} +${CL}`:dd;super(DL),this.message=DL}}ds.BaseError=Qe;class en extends Qe{constructor(dd,eb,CL){super(`Argument Error (${dd}): ${eb}`,CL)}}ds.ArgumentError=en;class Ar extends en{constructor(dd,eb){super(dd,"Cannot be null or whitespace.",eb)}}ds.ArgumentNullOrWhitespaceError=Ar;class eo extends en{constructor(dd,eb,CL,DL){super(dd,`Range is ${CL[0]} to ${CL[1]}, but ${eb} was provided.`,DL)}}ds.ArgumentOutOfRangeError=eo;class Zo extends en{constructor(dd,eb,CL,DL){super(dd,`Expected type '${eb}', but was '${CL}'.`,DL)}}ds.ArgumentTypeError=Zo;class Rc extends Qe{constructor(eb,CL="Path"){super(`${CL} not found: ${eb}`);f1(this,"path");f1(this,"code","ENOENT");this.path=eb}}ds.PathNotFoundError=Rc;class Af extends Rc{constructor(dd){super(dd,"Directory")}}ds.DirectoryNotFoundError=Af;class d1 extends Rc{constructor(dd){super(dd,"File")}}ds.FileNotFoundError=d1;class H_ extends Qe{constructor(dd,eb){super(dd,eb)}}ds.InvalidOperationError=H_;class eS extends Qe{constructor(dd="Not implemented.",eb){super(dd,eb)}}ds.NotImplementedError=eS;class dv extends Qe{constructor(dd){super(dd)}}ds.NotSupportedError=dv;function Zh(jf,dd,eb){if(typeof jf!==dd)throw new Zo(eb,dd,typeof jf)}ds.throwIfNotType=Zh;function $p(jf,dd){if(typeof jf!="string")throw new Zo(dd,"string",typeof jf)}ds.throwIfNotString=$p;function ly(jf,dd){if($p(jf,dd),jf.trim().length===0)throw new Ar(dd)}ds.throwIfWhitespaceOrNotString=ly;function tE(jf,dd,eb){if(jfdd[1])throw new eo(eb,jf,dd)}ds.throwIfOutOfRange=tE;function cf(jf,dd,eb){if(jf[0]>jf[1])throw new en(eb,`The start of a range must not be greater than the end: [${jf[0]}, ${jf[1]}]`);tE(jf[0],dd,eb),tE(jf[1],dd,eb)}ds.throwIfRangeOutOfRange=cf;function Tb(jf,dd){throw new eS(`Not implemented feature for syntax kind '${vd(jf)}'.`,dd)}ds.throwNotImplementedForSyntaxKindError=Tb;function Cz(jf,dd){if(jf<0)throw new en(dd,"Expected a non-negative value.")}ds.throwIfNegative=Cz;function jD(jf,dd,eb){if(jf==null)throw new H_(typeof dd=="string"?dd:dd(),eb);return jf}ds.throwIfNullOrUndefined=jD;function dMe(jf,dd){const eb=jf;if(eb!=null&&typeof eb.kind=="number")return Tb(eb.kind,dd);throw new eS(`Not implemented value: ${JSON.stringify(jf)}`,dd)}ds.throwNotImplementedForNeverValueError=dMe;function yTe(jf,dd,eb){if(jf!==dd)throw new H_(`Expected ${jf} to equal ${dd}. ${eb}`)}ds.throwIfNotEqual=yTe;function qne(jf,dd){if(jf===!0)throw new H_(dd)}ds.throwIfTrue=qne}(p.errors||(p.errors={}));function p_(ds){const Qe=Ol(ds);if(Qe)return`${Qe.filePath}:${Qe.loc.line}:${Qe.loc.character} > ${Qe.loc.line} | ${Qe.lineText}`}function Ol(ds){if(!Gf(ds))return;const Qe=ds.getSourceFile(),en=Qe.getFullText(),Ar=ds.getStart(),eo=en.lastIndexOf(` `,Ar)+1,Zo=en.indexOf(` `,Ar),Rc=Zo===-1?en.length:Zo,Af=Ar-eo>40?Ar-37:eo,d1=Rc-Af>80?Af+77:Rc;let H_="";return Af!==eo&&(H_+="..."),H_+=en.substring(Af,d1),d1!==Rc&&(H_+="..."),{filePath:Qe.getFilePath(),loc:{line:Ky.getLineNumberAtPos(en,Ar),character:Ar-eo+1},lineText:H_}}function Gf(ds){return typeof ds=="object"&&ds!==null&&"getSourceFile"in ds&&"getStart"in ds}const ea={ASTERISK:42,NEWLINE:10,CARRIAGE_RETURN:13,SPACE:32,TAB:9,CLOSE_BRACE:125},Lm=new Set([" ","\f",` -`,"\r"," ","\v"," ","\u2028","\u2029"].map(ds=>ds.charCodeAt(0)));class Ky{constructor(){}static isWhitespaceCharCode(Qe){return Lm.has(Qe)}static isSpaces(Qe){if(Qe==null||Qe.length===0)return!1;for(let en=0;en0&&Ky.isWhitespaceCharCode(Qe.charCodeAt(Ar-1));)Ar--;return Qe.substring(0,Ar)+en+Qe.substring(Ar)}static getLineNumberAtPos(Qe,en){p.errors.throwIfOutOfRange(en,[0,Qe.length],"pos");let Ar=0;for(let eo=0;eo0;){const Ar=Qe.charCodeAt(en-1);if(Ar===ea.NEWLINE||Ar===ea.CARRIAGE_RETURN)break;en--}return en}static getLineEndFromPos(Qe,en){for(p.errors.throwIfOutOfRange(en,[0,Qe.length],"pos");en=eS);Tb++)Qe.charCodeAt(Tb)===ea.SPACE?cf++:Qe.charCodeAt(Tb)===ea.TAB&&(cf+=eo);Zh=Zo[$p+1]==null?Qe.length:Zo[$p+1],dv+=Qe.substring(Tb,Zh)}return dv+=Qe.substring(Zh),dv}}static indent(Qe,en,Ar){if(en===0)return Qe;const{indentText:eo,indentSizeInSpaces:Zo,isInStringAtPos:Rc}=Ar,Af=en>0?eo.repeat(en):void 0,d1=Math.abs(en*Zo);let H_="",eS=0,dv=0;for(let $p=0;$p0)H_+=Af+Qe.substring(eS,dv);else{let $p=eS,uy=0;for($p=eS;$p=d1);$p++)if(Qe.charCodeAt($p)===ea.SPACE)uy++;else if(Qe.charCodeAt($p)===ea.TAB)uy+=Zo;else break;H_+=Qe.substring($p,dv)}}}}class kx{constructor(Qe,en){$u(this,zg,[]);$u(this,Sz,void 0);$u(this,dU,void 0);Bg(this,Sz,Qe),Bg(this,dU,en)}set(Qe){ra.binaryInsertWithOverwrite(ti(this,zg),Qe,new jr(ti(this,Sz),ti(this,dU)))}removeByValue(Qe){this.removeByKey(ti(this,Sz).call(this,Qe))}removeByKey(Qe){const en=new Zr(ti(this,dU),Qe),Ar=ra.binarySearch(ti(this,zg),new lr(ti(this,Sz),en));Ar>=0&&ti(this,zg).splice(Ar,1)}getArrayCopy(){return[...ti(this,zg)]}hasItems(){return ti(this,zg).length>0}*entries(){yield*ti(this,zg)}}zg=new WeakMap,Sz=new WeakMap,dU=new WeakMap;class fA{constructor(){$u(this,$w,new WeakMap)}getOrCreate(Qe,en){let Ar=this.get(Qe);return Ar==null&&(Ar=en(),this.set(Qe,Ar)),Ar}has(Qe){return ti(this,$w).has(Qe)}get(Qe){return ti(this,$w).get(Qe)}set(Qe,en){ti(this,$w).set(Qe,en)}removeByKey(Qe){ti(this,$w).delete(Qe)}}$w=new WeakMap;function Qo(ds,Qe,en,Ar,eo,Zo){return sn.createLanguageServiceSourceFile(ds,Qe,en??sn.ScriptTarget.Latest,Ar,eo,Zo)}function p2(ds){const Qe=new Jw;return Qe._addFiles(ds),Qe}class aX{constructor(Qe,en){$u(this,J5,void 0);$u(this,ls,new Map);for(const Ar of en._getFilePaths())ti(this,ls).set(Qe.getStandardizedAbsolutePath(Ar),Ar);Bg(this,J5,en)}getDocumentIfMatch(Qe,en,Ar,eo){const Zo=ti(this,ls).get(Qe);if(Zo!=null)return ti(this,J5)._getDocumentIfMatch(Zo,Qe,en,Ar,eo)}}J5=new WeakMap,ls=new WeakMap;class Jw{constructor(){$u(this,U1);$u(this,uc);f1(this,"__documentCacheBrand");$u(this,BC,new Map);$u(this,As,new Map)}_addFiles(Qe){for(const en of Qe)ti(this,BC).set(en.fileName,en.text)}_getFilePaths(){return ti(this,BC).keys()}_getCacheForFileSystem(Qe){return new aX(Qe,this)}_getDocumentIfMatch(Qe,en,Ar,eo,Zo){const Rc=ti(this,BC).get(Qe);if(Rc!=null&&Rc===Ar.getText(0,Ar.getLength()))return is(this,U1,sIt).call(this,Qe,en,Ar,eo,Zo)}}BC=new WeakMap,As=new WeakMap,U1=new WeakSet,sIt=function(Qe,en,Ar,eo,Zo){const Rc=is(this,uc,cIt).call(this,Qe,eo,Zo);let Af=ti(this,As).get(Rc);return Af==null&&(Af=Qo(en,Ar,eo,"-1",!1,Zo),ti(this,As).set(Rc,Af)),Af=Ho(Af),Af.fileName=en,Af},uc=new WeakSet,cIt=function(Qe,en,Ar){return Qe+((en==null?void 0:en.toString())??"-1")+((Ar==null?void 0:Ar.toString())??"-1")};const m2=[{fileName:"lib.d.ts",text:`/// +`,"\r"," ","\v"," ","\u2028","\u2029"].map(ds=>ds.charCodeAt(0)));class Ky{constructor(){}static isWhitespaceCharCode(Qe){return Lm.has(Qe)}static isSpaces(Qe){if(Qe==null||Qe.length===0)return!1;for(let en=0;en0&&Ky.isWhitespaceCharCode(Qe.charCodeAt(Ar-1));)Ar--;return Qe.substring(0,Ar)+en+Qe.substring(Ar)}static getLineNumberAtPos(Qe,en){p.errors.throwIfOutOfRange(en,[0,Qe.length],"pos");let Ar=0;for(let eo=0;eo0;){const Ar=Qe.charCodeAt(en-1);if(Ar===ea.NEWLINE||Ar===ea.CARRIAGE_RETURN)break;en--}return en}static getLineEndFromPos(Qe,en){for(p.errors.throwIfOutOfRange(en,[0,Qe.length],"pos");en=eS);Tb++)Qe.charCodeAt(Tb)===ea.SPACE?cf++:Qe.charCodeAt(Tb)===ea.TAB&&(cf+=eo);Zh=Zo[$p+1]==null?Qe.length:Zo[$p+1],dv+=Qe.substring(Tb,Zh)}return dv+=Qe.substring(Zh),dv}}static indent(Qe,en,Ar){if(en===0)return Qe;const{indentText:eo,indentSizeInSpaces:Zo,isInStringAtPos:Rc}=Ar,Af=en>0?eo.repeat(en):void 0,d1=Math.abs(en*Zo);let H_="",eS=0,dv=0;for(let $p=0;$p0)H_+=Af+Qe.substring(eS,dv);else{let $p=eS,ly=0;for($p=eS;$p=d1);$p++)if(Qe.charCodeAt($p)===ea.SPACE)ly++;else if(Qe.charCodeAt($p)===ea.TAB)ly+=Zo;else break;H_+=Qe.substring($p,dv)}}}}class kx{constructor(Qe,en){$u(this,zg,[]);$u(this,Tz,void 0);$u(this,dU,void 0);Bg(this,Tz,Qe),Bg(this,dU,en)}set(Qe){ra.binaryInsertWithOverwrite(ti(this,zg),Qe,new jr(ti(this,Tz),ti(this,dU)))}removeByValue(Qe){this.removeByKey(ti(this,Tz).call(this,Qe))}removeByKey(Qe){const en=new Zr(ti(this,dU),Qe),Ar=ra.binarySearch(ti(this,zg),new lr(ti(this,Tz),en));Ar>=0&&ti(this,zg).splice(Ar,1)}getArrayCopy(){return[...ti(this,zg)]}hasItems(){return ti(this,zg).length>0}*entries(){yield*ti(this,zg)}}zg=new WeakMap,Tz=new WeakMap,dU=new WeakMap;class fA{constructor(){$u(this,$w,new WeakMap)}getOrCreate(Qe,en){let Ar=this.get(Qe);return Ar==null&&(Ar=en(),this.set(Qe,Ar)),Ar}has(Qe){return ti(this,$w).has(Qe)}get(Qe){return ti(this,$w).get(Qe)}set(Qe,en){ti(this,$w).set(Qe,en)}removeByKey(Qe){ti(this,$w).delete(Qe)}}$w=new WeakMap;function Qo(ds,Qe,en,Ar,eo,Zo){return sn.createLanguageServiceSourceFile(ds,Qe,en??sn.ScriptTarget.Latest,Ar,eo,Zo)}function p2(ds){const Qe=new Jw;return Qe._addFiles(ds),Qe}class aX{constructor(Qe,en){$u(this,J5,void 0);$u(this,ls,new Map);for(const Ar of en._getFilePaths())ti(this,ls).set(Qe.getStandardizedAbsolutePath(Ar),Ar);Bg(this,J5,en)}getDocumentIfMatch(Qe,en,Ar,eo){const Zo=ti(this,ls).get(Qe);if(Zo!=null)return ti(this,J5)._getDocumentIfMatch(Zo,Qe,en,Ar,eo)}}J5=new WeakMap,ls=new WeakMap;class Jw{constructor(){$u(this,U1);$u(this,uc);f1(this,"__documentCacheBrand");$u(this,BC,new Map);$u(this,As,new Map)}_addFiles(Qe){for(const en of Qe)ti(this,BC).set(en.fileName,en.text)}_getFilePaths(){return ti(this,BC).keys()}_getCacheForFileSystem(Qe){return new aX(Qe,this)}_getDocumentIfMatch(Qe,en,Ar,eo,Zo){const Rc=ti(this,BC).get(Qe);if(Rc!=null&&Rc===Ar.getText(0,Ar.getLength()))return is(this,U1,aIt).call(this,Qe,en,Ar,eo,Zo)}}BC=new WeakMap,As=new WeakMap,U1=new WeakSet,aIt=function(Qe,en,Ar,eo,Zo){const Rc=is(this,uc,sIt).call(this,Qe,eo,Zo);let Af=ti(this,As).get(Rc);return Af==null&&(Af=Qo(en,Ar,eo,"-1",!1,Zo),ti(this,As).set(Rc,Af)),Af=Ho(Af),Af.fileName=en,Af},uc=new WeakSet,sIt=function(Qe,en,Ar){return Qe+((en==null?void 0:en.toString())??"-1")+((Ar==null?void 0:Ar.toString())??"-1")};const m2=[{fileName:"lib.d.ts",text:`/// /// /// /// @@ -30495,27 +30495,27 @@ type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "js `},{fileName:"lib.webworker.importscripts.d.ts",text:`/// declare function importScripts(...urls:string[]):void;`},{fileName:"lib.webworker.iterable.d.ts",text:`/// interface CSSNumericArray{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,CSSNumericValue]>;keys():IterableIterator;values():IterableIterator;}interface CSSTransformValue{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,CSSTransformComponent]>;keys():IterableIterator;values():IterableIterator;}interface CSSUnparsedValue{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,CSSUnparsedSegment]>;keys():IterableIterator;values():IterableIterator;}interface Cache{addAll(requests:Iterable):Promise;}interface CanvasPath{roundRect(x:number,y:number,w:number,h:number,radii?:number|DOMPointInit|Iterable):void;}interface CanvasPathDrawingStyles{setLineDash(segments:Iterable):void;}interface DOMStringList{[Symbol.iterator]():IterableIterator;}interface FileList{[Symbol.iterator]():IterableIterator;}interface FontFaceSet extends Set{}interface FormData{[Symbol.iterator]():IterableIterator<[string,FormDataEntryValue]>;entries():IterableIterator<[string,FormDataEntryValue]>;keys():IterableIterator;values():IterableIterator;}interface Headers{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface IDBDatabase{transaction(storeNames:string|Iterable,mode?:IDBTransactionMode,options?:IDBTransactionOptions):IDBTransaction;}interface IDBObjectStore{createIndex(name:string,keyPath:string|Iterable,options?:IDBIndexParameters):IDBIndex;}interface MessageEvent{initMessageEvent(type:string,bubbles?:boolean,cancelable?:boolean,data?:any,origin?:string,lastEventId?:string,source?:MessageEventSource|null,ports?:Iterable):void;}interface StylePropertyMapReadOnly{[Symbol.iterator]():IterableIterator<[string,Iterable]>;entries():IterableIterator<[string,Iterable]>;keys():IterableIterator;values():IterableIterator>;}interface SubtleCrypto{deriveKey(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,derivedKeyType:AlgorithmIdentifier|AesDerivedKeyParams|HmacImportParams|HkdfParams|Pbkdf2Params,extractable:boolean,keyUsages:Iterable):Promise;generateKey(algorithm:RsaHashedKeyGenParams|EcKeyGenParams,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AesKeyGenParams|HmacKeyGenParams|Pbkdf2Params,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AlgorithmIdentifier,extractable:boolean,keyUsages:Iterable):Promise;importKey(format:"jwk",keyData:JsonWebKey,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:ReadonlyArray):Promise;importKey(format:Exclude,keyData:BufferSource,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;unwrapKey(format:KeyFormat,wrappedKey:BufferSource,unwrappingKey:CryptoKey,unwrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,unwrappedKeyAlgorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;}interface URLSearchParams{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface WEBGL_draw_buffers{drawBuffersWEBGL(buffers:Iterable):void;}interface WEBGL_multi_draw{multiDrawArraysInstancedWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawArraysWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsInstancedWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,drawcount:GLsizei):void;}interface WebGL2RenderingContextBase{clearBufferfv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferuiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;drawBuffers(buffers:Iterable):void;getActiveUniforms(program:WebGLProgram,uniformIndices:Iterable,pname:GLenum):any;getUniformIndices(program:WebGLProgram,uniformNames:Iterable):Iterable|null;invalidateFramebuffer(target:GLenum,attachments:Iterable):void;invalidateSubFramebuffer(target:GLenum,attachments:Iterable,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;transformFeedbackVaryings(program:WebGLProgram,varyings:Iterable,bufferMode:GLenum):void;uniform1uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;vertexAttribI4iv(index:GLuint,values:Iterable):void;vertexAttribI4uiv(index:GLuint,values:Iterable):void;}interface WebGL2RenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform1iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;}interface WebGLRenderingContextBase{vertexAttrib1fv(index:GLuint,values:Iterable):void;vertexAttrib2fv(index:GLuint,values:Iterable):void;vertexAttrib3fv(index:GLuint,values:Iterable):void;vertexAttrib4fv(index:GLuint,values:Iterable):void;}interface WebGLRenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform1iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4iv(location:WebGLUniformLocation|null,v:Iterable):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;}`}];function Zf(){return m2}const fa="/node_modules/typescript/lib";function Gc(ds){if(ds.libFolderPath!=null){if(ds.skipLoadingLibFiles===!0)throw new p.errors.InvalidOperationError(`Cannot set ${ni(ds,"skipLoadingLibFiles")} to true when ${ni(ds,"libFolderPath")} is provided.`);return ds.libFolderPath}return fa}const gt=r4t;class eu{constructor(){f1(this,"fs",new jm);f1(this,"path",new Hi)}getEnvVar(Qe){}getEndOfLine(){return` -`}getPathMatchesPattern(Qe,en){return tr.minimatch(Qe,en)}}class Hi{join(...Qe){return gt.join(...Qe)}normalize(Qe){return gt.normalize(Qe)}relative(Qe,en){return gt.relative(Qe,en)}}class jm{constructor(){$u(this,bg,"Access to the file system is not supported in the browser. Please use an in-memory file system (specify `useInMemoryFileSystem: true` when creating the project).")}delete(Qe){return Promise.reject(new Error(ti(this,bg)))}deleteSync(Qe){throw new Error(ti(this,bg))}readDirSync(Qe){throw new Error(ti(this,bg))}readFile(Qe,en){return Promise.reject(new Error(ti(this,bg)))}readFileSync(Qe,en){throw new Error(ti(this,bg))}writeFile(Qe,en){return Promise.reject(new Error(ti(this,bg)))}writeFileSync(Qe,en){throw new Error(ti(this,bg))}mkdir(Qe){return Promise.reject(new Error(ti(this,bg)))}mkdirSync(Qe){throw new Error(ti(this,bg))}move(Qe,en){return Promise.reject(new Error(ti(this,bg)))}moveSync(Qe,en){throw new Error(ti(this,bg))}copy(Qe,en){return Promise.reject(new Error(ti(this,bg)))}copySync(Qe,en){throw new Error(ti(this,bg))}stat(Qe){return Promise.reject(new Error(ti(this,bg)))}statSync(Qe){throw new Error(ti(this,bg))}realpathSync(Qe){throw new Error(ti(this,bg))}getCurrentDirectory(){throw new Error(ti(this,bg))}glob(Qe){return Promise.reject(new Error(ti(this,bg)))}globSync(Qe){throw new Error(ti(this,bg))}isCaseSensitive(){return!0}}bg=new WeakMap;class Cy{constructor(){f1(this,"fs",new QS);f1(this,"path",new xS)}getEnvVar(Qe){return process==null?void 0:process.env[Qe]}getEndOfLine(){return Yr.EOL}getPathMatchesPattern(Qe,en){return tr.minimatch(Qe,en)}}class xS{join(...Qe){return Ns.join(...Qe)}normalize(Qe){return Ns.normalize(Qe)}relative(Qe,en){return Ns.relative(Qe,en)}}class QS{delete(Qe){return new Promise((en,Ar)=>{Ot.rm(Qe,{recursive:!0},eo=>{eo?Ar(eo):en()})})}deleteSync(Qe){Ot.rmSync(Qe,{recursive:!0})}readDirSync(Qe){return Ot.readdirSync(Qe,{withFileTypes:!0}).map(Ar=>({name:Ar.name,isFile:Ar.isFile(),isDirectory:Ar.isDirectory(),isSymlink:Ar.isSymbolicLink()}))}readFile(Qe,en="utf-8"){return new Promise((Ar,eo)=>{Ot.readFile(Qe,en,(Zo,Rc)=>{Zo?eo(Zo):Ar(Rc)})})}readFileSync(Qe,en="utf-8"){return Ot.readFileSync(Qe,en)}async writeFile(Qe,en){await new Promise((Ar,eo)=>{Ot.writeFile(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}writeFileSync(Qe,en){Ot.writeFileSync(Qe,en)}async mkdir(Qe){await bo.mkdirp(Qe)}mkdirSync(Qe){bo.sync(Qe)}move(Qe,en){return new Promise((Ar,eo)=>{Ot.rename(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}moveSync(Qe,en){Ot.renameSync(Qe,en)}copy(Qe,en){return new Promise((Ar,eo)=>{Ot.copyFile(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}copySync(Qe,en){Ot.copyFileSync(Qe,en)}stat(Qe){return new Promise((en,Ar)=>{Ot.stat(Qe,(eo,Zo)=>{eo?eo.code==="ENOENT"||eo.code==="ENOTDIR"?en(void 0):Ar(eo):en(Zo)})})}statSync(Qe){return Ot.statSync(Qe,{throwIfNoEntry:!1})}realpathSync(Qe){return Ot.realpathSync(Qe)}getCurrentDirectory(){return Ns.resolve()}glob(Qe){return Nt.default(Qe,{cwd:this.getCurrentDirectory(),absolute:!0})}globSync(Qe){return Nt.default.sync(Qe,{cwd:this.getCurrentDirectory(),absolute:!0})}isCaseSensitive(){const Qe=process==null?void 0:process.platform;return Qe!=="win32"&&Qe!=="darwin"}}const th=WC();function WC(){return g2()?new Cy:new eu}function g2(){return typeof globalThis.process=="object"&&typeof globalThis.process.versions=="object"&&typeof globalThis.process.versions.node<"u"}function d0(ds){const{transactionalFileSystem:Qe,sourceFileContainer:en,compilerOptions:Ar,getNewLine:eo,resolutionHost:Zo,getProjectVersion:Rc,isKnownTypesPackageName:Af}=ds;let d1=0;const H_=Qe.getStandardizedAbsolutePath(Gc(ds)),eS=$p=>en.containsSourceFileAtPath($p)||Qe.fileExistsSync($p),dv={getCompilationSettings:()=>Ar.get(),getNewLine:eo,getProjectVersion:Rc,getScriptFileNames:()=>Array.from(en.getSourceFilePaths()),getScriptVersion:$p=>{const uy=Qe.getStandardizedAbsolutePath($p),tE=en.getSourceFileFromCacheFromFilePath(uy);return tE==null?(d1++).toString():en.getSourceFileVersion(tE)},getScriptSnapshot:$p=>{const uy=Qe.getStandardizedAbsolutePath($p),tE=en.addOrGetSourceFileFromFilePathSync(uy,{markInProject:!1,scriptKind:void 0});return tE?sn.ScriptSnapshot.fromString(tE.getFullText()):void 0},getCurrentDirectory:()=>Qe.getCurrentDirectory(),getDefaultLibFileName:$p=>H_+"/"+sn.getDefaultLibFileName($p),isKnownTypesPackageName:Af,useCaseSensitiveFileNames:()=>!0,readFile:($p,uy)=>{const tE=Qe.getStandardizedAbsolutePath($p);return en.containsSourceFileAtPath(tE)?en.getSourceFileFromCacheFromFilePath(tE).getFullText():Qe.readFileSync(tE,uy)},fileExists:$p=>{const uy=Qe.getStandardizedAbsolutePath($p);return eS(uy)},directoryExists:$p=>{const uy=Qe.getStandardizedAbsolutePath($p);return en.containsDirectoryAtPath(uy)||Qe.directoryExistsSync(uy)},resolveModuleNames:Zo.resolveModuleNames,resolveTypeReferenceDirectives:Zo.resolveTypeReferenceDirectives,getResolvedModuleWithFailedLookupLocationsFromCache:Zo.getResolvedModuleWithFailedLookupLocationsFromCache,realpath:$p=>Qe.realpathSync(Qe.getStandardizedAbsolutePath($p))},Zh={getSourceFile:($p,uy,tE)=>{const cf=Qe.getStandardizedAbsolutePath($p);return en.addOrGetSourceFileFromFilePathSync(cf,{markInProject:!1,scriptKind:void 0})},getDefaultLibFileName:dv.getDefaultLibFileName,writeFile:($p,uy,tE,cf,Tb)=>{const Dz=Qe.getStandardizedAbsolutePath($p);Qe.writeFileSync(Dz,tE?"\uFEFF"+uy:uy)},getCurrentDirectory:()=>dv.getCurrentDirectory(),getDirectories:$p=>Qe.getDirectories(Qe.getStandardizedAbsolutePath($p)),fileExists:dv.fileExists,readFile:dv.readFile,getCanonicalFileName:$p=>Qe.getStandardizedAbsolutePath($p),useCaseSensitiveFileNames:dv.useCaseSensitiveFileNames,getNewLine:dv.getNewLine,getEnvironmentVariable:$p=>th.getEnvVar($p),directoryExists:$p=>dv.directoryExists($p),resolveModuleNames:Zo.resolveModuleNames,resolveTypeReferenceDirectives:Zo.resolveTypeReferenceDirectives,realpath:dv.realpath};return{languageServiceHost:dv,compilerHost:Zh}}const OD=/^[a-z]+:[\\\/]$/i,_A=th.path,Na=class Na{constructor(){}static isNotExistsError(Qe){var en;return Qe!=null&&Qe.code===Na.ENOENT||Qe!=null&&((en=Qe==null?void 0:Qe.constructor)==null?void 0:en.name)==="NotFound"}static pathJoin(Qe,...en){return Na.pathIsAbsolute(Qe)?Na.standardizeSlashes(_A.normalize(_A.join(Qe,...en))):Na.standardizeSlashes(_A.join(Qe,...en))}static pathIsAbsolute(Qe){return uN(Qe)}static getStandardizedAbsolutePath(Qe,en,Ar){return Na.standardizeSlashes(_A.normalize(eo()));function eo(){return uN(en)?en:!en.startsWith("./")&&Ar!=null?_A.join(Ar,en):_A.join(Qe.getCurrentDirectory(),en)}}static getDirPath(Qe){Qe=Na.standardizeSlashes(Qe);const en=Qe.lastIndexOf("/");return en===-1?".":Na.standardizeSlashes(Qe.substring(0,en+1))}static getBaseName(Qe){const en=Qe.lastIndexOf("/");return Qe.substring(en+1)}static getExtension(Qe){const en=Na.getBaseName(Qe),Ar=en.lastIndexOf(".");if(Ar<=0)return"";const eo=en.substring(Ar),Zo=eo.toLowerCase();return Zo===".ts"&&en.substring(Ar-2,Ar).toLowerCase()===".d"?en.substring(Ar-2):Zo===".map"&&en.substring(Ar-3,Ar).toLowerCase()===".js"?en.substring(Ar-3):eo}static standardizeSlashes(Qe){let en=Qe.replace(ti(this,xT),"/");return!Na.isRootDirPath(en)&&en.endsWith("/")&&(en=en.substring(0,en.length-1)),en}static pathEndsWith(Qe,en){var Zo,Rc;const Ar=is(Zo=Na,x8,gje).call(Zo,Qe),eo=is(Rc=Na,x8,gje).call(Rc,en);if(eo.length>Ar.length)return!1;for(let Af=0;Af0}static pathStartsWith(Qe,en){var Af,d1;const Ar=Ky.isNullOrWhitespace(Qe),eo=Ky.isNullOrWhitespace(en),Zo=is(Af=Na,x8,gje).call(Af,Qe),Rc=is(d1=Na,x8,gje).call(d1,en);if(Ar&&eo)return!0;if(eo||Rc.length>Zo.length)return!1;if(Rc.length===1&&Rc[0].length===0)return!0;for(let H_=0;H_0}static getParentMostPaths(Qe){const en=[];for(const Ar of ra.sortByProperty(Qe,eo=>eo.length))en.every(eo=>!Na.pathStartsWith(Ar,eo))&&en.push(Ar);return en}static async readFileOrNotExists(Qe,en,Ar){try{return await Qe.readFile(en,Ar)}catch(eo){if(!Na.isNotExistsError(eo))throw eo;return!1}}static readFileOrNotExistsSync(Qe,en,Ar){try{return Qe.readFileSync(en,Ar)}catch(eo){if(!Na.isNotExistsError(eo))throw eo;return!1}}static getTextWithByteOrderMark(Qe){return Ky.hasBom(Qe)?Qe:"\uFEFF"+Qe}static getRelativePathTo(Qe,en){const Ar=_A.relative(Qe,Na.getDirPath(en));return Na.standardizeSlashes(_A.join(Ar,Na.getBaseName(en)))}static isRootDirPath(Qe){return Qe==="/"||OD.test(Qe)}static*getDescendantDirectories(Qe,en){for(const Ar of Qe.readDirSync(en))Ar.isDirectory&&(yield Ar.path,yield*Na.getDescendantDirectories(Qe,Ar.path))}static toAbsoluteGlob(Qe,en){Qe.slice(0,2)==="./"&&(Qe=Qe.slice(2)),Qe.length===1&&Qe==="."&&(Qe="");const Ar=Qe.slice(-1),eo=Na.isNegatedGlob(Qe);return eo&&(Qe=Qe.slice(1)),(!uN(Qe)||Qe.slice(0,1)==="\\")&&(Qe=fv(en,Qe)),Ar==="/"&&Qe.slice(-1)!=="/"&&(Qe+="/"),eo?"!"+Qe:Qe}static isNegatedGlob(Qe){return Qe[0]==="!"&&Qe[1]!=="("}};xT=new WeakMap,eE=new WeakMap,Of=new WeakMap,x8=new WeakSet,gje=function(Qe){return Qe=(Qe||"").replace(ti(Na,eE),"").replace(ti(Na,Of),""),Na.standardizeSlashes(Qe).replace(/^\//,"").split("/")},$u(Na,x8),$u(Na,xT,/\\/g),$u(Na,eE,/^\//),$u(Na,Of,/\/$/),f1(Na,"ENOENT","ENOENT");let Qp=Na;function fv(ds,Qe){return ds.charAt(ds.length-1)==="/"&&(ds=ds.slice(0,-1)),Qe.charAt(0)==="/"&&(Qe=Qe.slice(1)),Qe?ds+"/"+Qe:ds}function uN(ds){return ds.startsWith("/")||ur(ds)}const b8=/^[a-z]+:[\\\/]/i;function ur(ds){return b8.test(ds)||FD(ds)||Oi(ds)}function FD(ds){return ds.startsWith("\\\\")}const hz=/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/;function Oi(ds){return hz.test(ds)}function Dy(ds,Qe,en){typeof Qe=="string"?Qe=[Qp.toAbsoluteGlob(Qe,en)]:Qe=Qe.map(eo=>Qp.toAbsoluteGlob(eo,en));const Ar=[];for(const eo of ds)for(let Zo of Qe){let Rc=ST;Qp.isNegatedGlob(Zo)&&(Rc=L_e,Zo=Zo.slice(1)),th.getPathMatchesPattern(eo,Zo)&&Rc(Ar,eo)}return Ar}function ST(ds,Qe){ds.indexOf(Qe)===-1&&ds.push(Qe)}function L_e(ds,Qe){const en=ds.indexOf(Qe);en>=0&&ds.splice(en,1)}class fN{constructor(){$u(this,p0);$u(this,JO);$u(this,_1);$u(this,Pd,new Map);is(this,_1,rRe).call(this,"/")}isCaseSensitive(){return!0}delete(Qe){try{return this.deleteSync(Qe),Promise.resolve()}catch(en){return Promise.reject(en)}}deleteSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe);if(ti(this,Pd).has(en)){for(const eo of fU(ti(this,Pd).keys(),en))ti(this,Pd).delete(eo);ti(this,Pd).delete(en);return}const Ar=ti(this,Pd).get(Qp.getDirPath(en));if(Ar==null||!Ar.files.has(en))throw new p.errors.FileNotFoundError(en);Ar.files.delete(en)}readDirSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe),Ar=ti(this,Pd).get(en);if(Ar==null)throw new p.errors.DirectoryNotFoundError(en);return[...eo(ti(this,Pd).keys()),...Array.from(Ar.files.keys()).map(Zo=>({name:Zo,isDirectory:!1,isFile:!0,isSymlink:!1}))];function*eo(Zo){for(const Rc of Zo){const Af=Qp.getDirPath(Rc);Af===en&&Af!==Rc&&(yield{name:Rc,isDirectory:!0,isFile:!1,isSymlink:!1})}}}readFile(Qe,en="utf-8"){try{return Promise.resolve(this.readFileSync(Qe,en))}catch(Ar){return Promise.reject(Ar)}}readFileSync(Qe,en="utf-8"){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=ti(this,Pd).get(Qp.getDirPath(Ar));if(eo==null)throw new p.errors.FileNotFoundError(Ar);const Zo=eo.files.get(Ar);if(Zo===void 0)throw new p.errors.FileNotFoundError(Ar);return Zo}writeFile(Qe,en){return this.writeFileSync(Qe,en),Promise.resolve()}writeFileSync(Qe,en){is(this,p0,lIt).call(this,Qe,en)}mkdir(Qe){return this.mkdirSync(Qe),Promise.resolve()}mkdirSync(Qe){is(this,_1,rRe).call(this,Qp.getStandardizedAbsolutePath(this,Qe))}move(Qe,en){return this.moveSync(Qe,en),Promise.resolve()}moveSync(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getStandardizedAbsolutePath(this,en);if(this.fileExistsSync(Ar)){const Zo=this.readFileSync(Ar);this.deleteSync(Ar),this.writeFileSync(eo,Zo)}else if(ti(this,Pd).has(Ar)){const Zo=(Rc,Af)=>{is(this,JO,$it).call(this,Rc,Af),ti(this,Pd).delete(Rc)};Zo(Ar,eo);for(const Rc of fU(ti(this,Pd).keys(),Ar)){const Af=Qp.getRelativePathTo(Ar,Rc);Zo(Rc,Qp.pathJoin(eo,Af))}}else throw new p.errors.PathNotFoundError(Ar)}copy(Qe,en){return this.copySync(Qe,en),Promise.resolve()}copySync(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getStandardizedAbsolutePath(this,en);if(this.fileExistsSync(Ar))this.writeFileSync(eo,this.readFileSync(Ar));else if(ti(this,Pd).has(Ar)){is(this,JO,$it).call(this,Ar,eo);for(const Zo of fU(ti(this,Pd).keys(),Ar)){const Rc=Qp.getRelativePathTo(Ar,Zo);is(this,JO,$it).call(this,Zo,Qp.pathJoin(eo,Rc))}}else throw new p.errors.PathNotFoundError(Ar)}fileExists(Qe){return Promise.resolve(this.fileExistsSync(Qe))}fileExistsSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe),Ar=Qp.getDirPath(en),eo=ti(this,Pd).get(Ar);return eo==null?!1:eo.files.has(en)}directoryExists(Qe){return Promise.resolve(this.directoryExistsSync(Qe))}directoryExistsSync(Qe){return ti(this,Pd).has(Qp.getStandardizedAbsolutePath(this,Qe))}realpathSync(Qe){return Qe}getCurrentDirectory(){return"/"}glob(Qe){try{return Promise.resolve(this.globSync(Qe))}catch(en){return Promise.reject(en)}}globSync(Qe){const en=Array.from(Ar(ti(this,Pd).values()));return Dy(en,Qe,this.getCurrentDirectory());function*Ar(eo){for(const Zo of eo)yield*Zo.files.keys()}}}Pd=new WeakMap,p0=new WeakSet,lIt=function(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getDirPath(Ar);is(this,_1,rRe).call(this,eo).files.set(Ar,en)},JO=new WeakSet,$it=function(Qe,en){const Ar=ti(this,Pd).get(Qe),eo=is(this,_1,rRe).call(this,en);for(const[Zo,Rc]of Ar.files.entries()){const Af=Qp.pathJoin(en,Qp.getBaseName(Zo));eo.files.set(Af,Rc)}},_1=new WeakSet,rRe=function(Qe){let en=ti(this,Pd).get(Qe);if(en==null){en={path:Qe,files:new Map},ti(this,Pd).set(Qe,en);const Ar=Qp.getDirPath(Qe);Ar!==Qe&&is(this,_1,rRe).call(this,Ar)}return en};function*fU(ds,Qe){for(const en of ds)Qp.pathStartsWith(en,Qe)&&(yield en)}const nh=th.fs;class yz{constructor(){$u(this,ZA);$u(this,pf)}async delete(Qe){try{await nh.delete(Qe)}catch(en){throw is(this,pf,hje).call(this,en,Qe)}}deleteSync(Qe){try{nh.deleteSync(Qe)}catch(en){throw is(this,pf,hje).call(this,en,Qe)}}readDirSync(Qe){try{const en=nh.readDirSync(Qe);for(const Ar of en)if(Ar.name=Qp.pathJoin(Qe,Ar.name),Ar.isSymlink)try{const eo=nh.statSync(Ar.name);eo!=null&&(Ar.isDirectory=eo.isDirectory(),Ar.isFile=eo.isFile())}catch{}return en}catch(en){throw is(this,ZA,uIt).call(this,en,Qe)}}async readFile(Qe,en="utf-8"){try{return await nh.readFile(Qe,en)}catch(Ar){throw is(this,pf,hje).call(this,Ar,Qe)}}readFileSync(Qe,en="utf-8"){try{return nh.readFileSync(Qe,en)}catch(Ar){throw is(this,pf,hje).call(this,Ar,Qe)}}async writeFile(Qe,en){return nh.writeFile(Qe,en)}writeFileSync(Qe,en){nh.writeFileSync(Qe,en)}mkdir(Qe){return nh.mkdir(Qe)}mkdirSync(Qe){nh.mkdirSync(Qe)}move(Qe,en){return nh.move(Qe,en)}moveSync(Qe,en){nh.moveSync(Qe,en)}copy(Qe,en){return nh.copy(Qe,en)}copySync(Qe,en){nh.copySync(Qe,en)}async fileExists(Qe){var en;try{return((en=await nh.stat(Qe))==null?void 0:en.isFile())??!1}catch{return!1}}fileExistsSync(Qe){var en;try{return((en=nh.statSync(Qe))==null?void 0:en.isFile())??!1}catch{return!1}}async directoryExists(Qe){var en;try{return((en=await nh.stat(Qe))==null?void 0:en.isDirectory())??!1}catch{return!1}}directoryExistsSync(Qe){var en;try{return((en=nh.statSync(Qe))==null?void 0:en.isDirectory())??!1}catch{return!1}}realpathSync(Qe){return nh.realpathSync(Qe)}getCurrentDirectory(){return Qp.standardizeSlashes(nh.getCurrentDirectory())}glob(Qe){return nh.glob(pp(Qe))}globSync(Qe){return nh.globSync(pp(Qe))}isCaseSensitive(){return nh.isCaseSensitive()}}ZA=new WeakSet,uIt=function(Qe,en){return Qp.isNotExistsError(Qe)?new p.errors.DirectoryNotFoundError(Qp.getStandardizedAbsolutePath(this,en)):Qe},pf=new WeakSet,hje=function(Qe,en){return Qp.isNotExistsError(Qe)?new p.errors.FileNotFoundError(Qp.getStandardizedAbsolutePath(this,en)):Qe};function pp(ds){return ds.map(Qe=>Qe.replace(/\\/g,"/"))}class V5{constructor(Qe){$u(this,Xw);$u(this,$5);f1(this,"path");f1(this,"operations",[]);f1(this,"inboundOperations",[]);$u(this,qw,!1);$u(this,Kw,!1);$u(this,rP,void 0);$u(this,Fp,new kx(Qe=>Qe.path,Zi.instance));this.path=Qe}getExternalOperations(){return[...this.getAncestors().map(Zo=>eo(Zo)).flat().filter(Zo=>en(this,Zo)),...[this,...this.getDescendants()].map(Zo=>Ar(Zo)).flat().filter(Zo=>!Qe(this,Zo))];function Qe(Zo,Rc){return Rc.oldDir.isDescendantOrEqual(Zo)&&Rc.newDir.isDescendantOrEqual(Zo)}function en(Zo,Rc){switch(Rc.kind){case"move":case"copy":return Zo.isDescendantOrEqual(Rc.oldDir)||Zo.isDescendantOrEqual(Rc.newDir);case"deleteDir":return Zo.isDescendantOrEqual(Rc.dir);default:return p.errors.throwNotImplementedForNeverValueError(Rc)}}function Ar(Zo){return Zo.operations.filter(Rc=>Rc.kind==="move"||Rc.kind==="copy")}function eo(Zo){return Zo.operations.filter(Rc=>Rc.kind==="move"||Rc.kind==="deleteDir"||Rc.kind==="copy")}}isDescendantOrEqual(Qe){return this.isDescendant(Qe)||this===Qe}isDescendant(Qe){return Qp.pathStartsWith(this.path,Qe.path)}getIsDeleted(){return ti(this,qw)}getWasEverDeleted(){if(ti(this,Kw))return!0;for(const Qe of this.getAncestorsIterator())if(ti(Qe,Kw))return!0;return!1}setIsDeleted(Qe){if(ti(this,qw)!==Qe){if(Qe){Bg(this,Kw,!0);for(const en of ti(this,Fp).entries())en.setIsDeleted(!0)}else ti(this,rP)!=null&&ti(this,rP).setIsDeleted(!1);Bg(this,qw,Qe)}}getParent(){return ti(this,rP)}setParent(Qe){if(ti(this,rP)!=null)throw new p.errors.InvalidOperationError("For some reason, a parent was being set when the directory already had a parent. Please open an issue.");Bg(this,rP,Qe),ti(Qe,Fp).set(this),ti(Qe,qw)&&!ti(this,qw)&&Qe.setIsDeleted(!1)}removeParent(){const Qe=ti(this,rP);Qe!=null&&(ti(Qe,Fp).removeByValue(this),Bg(this,rP,void 0))}getAncestors(){return Array.from(this.getAncestorsIterator())}*getAncestorsIterator(){let Qe=ti(this,rP);for(;Qe!=null;)yield Qe,Qe=ti(Qe,rP)}*getChildrenEntriesIterator(){for(const Qe of ti(this,Fp).entries())yield{path:Qe.path,isDirectory:!0,isFile:!1,isSymlink:!1}}getDescendants(){const Qe=[];for(const en of ti(this,Fp).entries())Qe.push(en),Qe.push(...en.getDescendants());return Qe}isFileQueuedForDelete(Qe){return is(this,Xw,fIt).call(this,en=>en.kind==="deleteFile"&&en.filePath===Qe)}dequeueFileDelete(Qe){is(this,$5,k1t).call(this,en=>en.kind==="deleteFile"&&en.filePath===Qe)}dequeueDirDelete(Qe){is(this,$5,k1t).call(this,en=>en.kind==="deleteDir"&&en.dir.path===Qe)}isRootDir(){return Qp.isRootDirPath(this.path)}}qw=new WeakMap,Kw=new WeakMap,rP=new WeakMap,Fp=new WeakMap,Xw=new WeakSet,fIt=function(Qe){for(const en of this.operations)if(Qe(en))return!0;return!1},$5=new WeakSet,k1t=function(Qe){ra.removeAll(this.operations,Qe)};class Dl{constructor(Qe){$u(this,h_);$u(this,K5);$u(this,AL);$u(this,zC);$u(this,IM);$u(this,_v);$u(this,CL);$u(this,xf);$u(this,C8);$u(this,bb);$u(this,gN);$u(this,zD);$u(this,Qw);$u(this,Y5);$u(this,ME);$u(this,kM);$u(this,zy);$u(this,AT);$u(this,eC);$u(this,xz);$u(this,re);$u(this,GD);$u(this,Zw);$u(this,hN);$u(this,mN,new ui);$u(this,Z0,void 0);$u(this,fh,void 0);$u(this,$O,void 0);$u(this,gU,0);if(Bg(this,fh,Qe.fileSystem),Bg(this,Z0,new sX(Qe.fileSystem)),!Qe.skipLoadingLibFiles&&Qe.libFolderPath==null){const en=Gc(Qe);Bg(this,$O,new Map);const Ar=Zf();for(const eo of Ar)ti(this,$O).set(this.getStandardizedAbsolutePath(en+"/"+eo.fileName),eo.text)}}queueFileDelete(Qe){is(this,hN,JK).call(this,Qe),is(this,ME,vM).call(this,Qe).operations.push({kind:"deleteFile",index:is(this,Qw,iRe).call(this),filePath:Qe}),ti(this,Z0).removePath(Qe)}removeFileDelete(Qe){is(this,ME,vM).call(this,Qe).dequeueFileDelete(Qe)}queueMkdir(Qe){const en=is(this,zy,NC).call(this,Qe);en.setIsDeleted(!1),is(this,ME,vM).call(this,Qe).operations.push({kind:"mkdir",index:is(this,Qw,iRe).call(this),dir:en})}queueDirectoryDelete(Qe){const en=is(this,zy,NC).call(this,Qe);en.setIsDeleted(!0),is(this,ME,vM).call(this,Qe).operations.push({kind:"deleteDir",index:is(this,Qw,iRe).call(this),dir:en}),ti(this,Z0).removePath(Qe)}queueMoveDirectory(Qe,en){const Ar=is(this,ME,vM).call(this,Qe),eo=is(this,zy,NC).call(this,Qe),Zo=is(this,zy,NC).call(this,en),Rc={kind:"move",index:is(this,Qw,iRe).call(this),oldDir:eo,newDir:Zo};Ar.operations.push(Rc),(Zo.getParent()||Zo).inboundOperations.push(Rc),eo.setIsDeleted(!0),ti(this,Z0).removePath(Qe)}queueCopyDirectory(Qe,en){const Ar=is(this,ME,vM).call(this,Qe),eo=is(this,zy,NC).call(this,Qe),Zo=is(this,zy,NC).call(this,en),Rc={kind:"copy",index:is(this,Qw,iRe).call(this),oldDir:eo,newDir:Zo};Ar.operations.push(Rc),(Zo.getParent()||Zo).inboundOperations.push(Rc)}async flush(){const Qe=is(this,zC,R1t).call(this);for(const en of Qe)await is(this,K5,N1t).call(this,en)}flushSync(){for(const Qe of is(this,zC,R1t).call(this))is(this,AL,w1t).call(this,Qe)}async saveForDirectory(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"save directory");const Ar=is(this,h_,P1t).call(this,en);await is(this,eC,F1t).call(this,en);for(const eo of Ar)await is(this,K5,N1t).call(this,eo)}saveForDirectorySync(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"save directory"),is(this,xz,W1t).call(this,en);for(const Ar of is(this,h_,P1t).call(this,en))is(this,AL,w1t).call(this,Ar)}async moveFileImmediately(Qe,en,Ar){is(this,hN,JK).call(this,en),is(this,AT,QI).call(this,is(this,ME,vM).call(this,Qe),"move file"),is(this,AT,QI).call(this,is(this,ME,vM).call(this,en),"move file"),await this.writeFile(en,Ar),await this.deleteFileImmediately(Qe)}moveFileImmediatelySync(Qe,en,Ar){is(this,hN,JK).call(this,en),is(this,AT,QI).call(this,is(this,ME,vM).call(this,Qe),"move file"),is(this,AT,QI).call(this,is(this,ME,vM).call(this,en),"move file"),this.writeFileSync(en,Ar),this.deleteFileImmediatelySync(Qe)}async deleteFileImmediately(Qe){is(this,hN,JK).call(this,Qe);const en=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,en,"delete file"),en.dequeueFileDelete(Qe),ti(this,Z0).removePath(Qe);try{await is(this,IM,yje).call(this,Qe)}catch(Ar){throw this.queueFileDelete(Qe),Ar}}deleteFileImmediatelySync(Qe){is(this,hN,JK).call(this,Qe);const en=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,en,"delete file"),en.dequeueFileDelete(Qe),ti(this,Z0).removePath(Qe);try{is(this,_v,vje).call(this,Qe)}catch(Ar){throw this.queueFileDelete(Qe),Ar}}async copyDirectoryImmediately(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"copy directory"),is(this,AT,QI).call(this,eo,"copy directory");const Zo=Promise.all([this.saveForDirectory(Qe),this.saveForDirectory(en)]);is(this,gN,i_e).call(this,Ar),await Zo,await ti(this,fh).copy(Qe,en)}copyDirectoryImmediatelySync(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"copy directory"),is(this,AT,QI).call(this,eo,"copy directory"),this.saveForDirectorySync(Qe),this.saveForDirectorySync(en),is(this,gN,i_e).call(this,Ar),ti(this,fh).copySync(Qe,en)}async moveDirectoryImmediately(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"move directory"),is(this,AT,QI).call(this,eo,"move directory");const Zo=Promise.all([this.saveForDirectory(Qe),this.saveForDirectory(en)]);is(this,gN,i_e).call(this,Ar),ti(this,Z0).removePath(Qe),await Zo,await ti(this,fh).move(Qe,en)}moveDirectoryImmediatelySync(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"move directory"),is(this,AT,QI).call(this,eo,"move directory"),this.saveForDirectorySync(Qe),this.saveForDirectorySync(en),is(this,gN,i_e).call(this,Ar),ti(this,Z0).removePath(Qe),ti(this,fh).moveSync(Qe,en)}async deleteDirectoryImmediately(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"delete"),is(this,gN,i_e).call(this,en),ti(this,Z0).removePath(Qe);try{await is(this,IM,yje).call(this,Qe)}catch{is(this,zD,L1t).call(this,en),this.queueDirectoryDelete(Qe)}}async clearDirectoryImmediately(Qe){await this.deleteDirectoryImmediately(Qe),is(this,zy,NC).call(this,Qe).setIsDeleted(!1),await ti(this,fh).mkdir(Qe)}clearDirectoryImmediatelySync(Qe){this.deleteDirectoryImmediatelySync(Qe),is(this,zy,NC).call(this,Qe).setIsDeleted(!1),ti(this,fh).mkdirSync(Qe)}deleteDirectoryImmediatelySync(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"delete"),is(this,gN,i_e).call(this,en),ti(this,Z0).removePath(Qe);try{is(this,_v,vje).call(this,Qe)}catch{is(this,zD,L1t).call(this,en),this.queueDirectoryDelete(Qe)}}fileExists(Qe){return is(this,GD,Sje).call(this,Qe)?!0:is(this,CL,bje).call(this,Qe)?!1:ti(this,fh).fileExists(Qe)}fileExistsSync(Qe){return is(this,GD,Sje).call(this,Qe)?!0:is(this,CL,bje).call(this,Qe)?!1:ti(this,fh).fileExistsSync(Qe)}directoryExistsSync(Qe){if(is(this,bb,vne).call(this,Qe))return!1;if(is(this,C8,_It).call(this,Qe))return!0;const en=is(this,kM,Tje).call(this,Qe);return en!=null&&en.getWasEverDeleted()?!1:ti(this,fh).directoryExistsSync(Qe)}readFileIfExistsSync(Qe,en){if(!is(this,CL,bje).call(this,Qe))try{return this.readFileSync(Qe,en)}catch(Ar){if(Ar instanceof p.errors.FileNotFoundError)return;throw Ar}}readFileSync(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar??(is(this,xf,M1t).call(this,Qe),ti(this,fh).readFileSync(Qe,en))}readFileIfExists(Qe,en){return is(this,CL,bje).call(this,Qe)?Promise.resolve(void 0):this.readFile(Qe,en).catch(Ar=>Ar instanceof p.errors.FileNotFoundError?Promise.resolve(void 0):Promise.reject(Ar))}readFile(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar!=null?Promise.resolve(Ar):(is(this,xf,M1t).call(this,Qe),ti(this,fh).readFile(Qe,en))}readDirSync(Qe){const en=is(this,zy,NC).call(this,Qe);if(en.getIsDeleted())throw new p.errors.InvalidOperationError(`Cannot read directory at ${Qe} when it is queued for deletion.`);if(en.getWasEverDeleted())throw new p.errors.InvalidOperationError(`Cannot read directory at ${Qe} because one of its ancestor directories was once deleted or moved.`);const Ar=new Map;for(const eo of en.getChildrenEntriesIterator())Ar.set(eo.path,eo);for(const eo of ti(this,fh).readDirSync(Qe)){const Zo=this.getStandardizedAbsolutePath(eo.name);is(this,bb,vne).call(this,Zo)||Ar.set(Zo,{path:Zo,isDirectory:eo.isDirectory,isFile:eo.isFile,isSymlink:eo.isSymlink})}return ra.sortByProperty(Array.from(Ar.values()),eo=>eo.path)}async glob(Qe){return(await ti(this,fh).glob(Qe)).map(Ar=>this.getStandardizedAbsolutePath(Ar)).filter(Ar=>!is(this,bb,vne).call(this,Ar))}*globSync(Qe){const en=ti(this,fh).globSync(Qe);for(const Ar of en){const eo=this.getStandardizedAbsolutePath(Ar);is(this,bb,vne).call(this,eo)||(yield eo)}}getFileSystem(){return ti(this,fh)}getCurrentDirectory(){return this.getStandardizedAbsolutePath(ti(this,fh).getCurrentDirectory())}getDirectories(Qe){return this.readDirSync(Qe).filter(en=>en.isDirectory).map(en=>en.path)}realpathSync(Qe){if(is(this,GD,Sje).call(this,Qe))return Qe;try{return this.getStandardizedAbsolutePath(ti(this,fh).realpathSync(Qe))}catch{return Qe}}getStandardizedAbsolutePath(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(ti(this,fh),Qe,en);return ti(this,Z0).getPath(Ar)}readFileOrNotExists(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar!=null?Promise.resolve(Ar):is(this,bb,vne).call(this,Qe)?!1:Qp.readFileOrNotExists(ti(this,fh),Qe,en)}readFileOrNotExistsSync(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar??(is(this,bb,vne).call(this,Qe)?!1:Qp.readFileOrNotExistsSync(ti(this,fh),Qe,en))}async writeFile(Qe,en){is(this,hN,JK).call(this,Qe);const Ar=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,Ar,"write file"),Ar.dequeueFileDelete(Qe),await is(this,eC,F1t).call(this,Ar),await ti(this,fh).writeFile(Qe,en)}writeFileSync(Qe,en){is(this,hN,JK).call(this,Qe);const Ar=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,Ar,"write file"),Ar.dequeueFileDelete(Qe),is(this,xz,W1t).call(this,Ar),ti(this,fh).writeFileSync(Qe,en)}}mN=new WeakMap,Z0=new WeakMap,fh=new WeakMap,$O=new WeakMap,h_=new WeakSet,P1t=function(Qe){const en=Ar(Qe.getParent(),Qe);for(const eo of[Qe,...Qe.getDescendants()])en.push(...eo.operations);return ra.sortByProperty(en,eo=>eo.index),is(this,gN,i_e).call(this,Qe),en;function Ar(eo,Zo){return eo==null?[]:[...ra.removeAll(eo.operations,Af=>Af.kind==="mkdir"&&Af.dir===Zo),...Ar(eo.getParent(),eo)]}},K5=new WeakSet,N1t=async function(Qe){switch(Qe.kind){case"deleteDir":await is(this,IM,yje).call(this,Qe.dir.path);break;case"deleteFile":await is(this,IM,yje).call(this,Qe.filePath);break;case"move":await ti(this,fh).move(Qe.oldDir.path,Qe.newDir.path);break;case"copy":await ti(this,fh).copy(Qe.oldDir.path,Qe.newDir.path);break;case"mkdir":await ti(this,fh).mkdir(Qe.dir.path);break;default:p.errors.throwNotImplementedForNeverValueError(Qe)}},AL=new WeakSet,w1t=function(Qe){switch(Qe.kind){case"deleteDir":is(this,_v,vje).call(this,Qe.dir.path);break;case"deleteFile":is(this,_v,vje).call(this,Qe.filePath);break;case"move":ti(this,fh).moveSync(Qe.oldDir.path,Qe.newDir.path);break;case"copy":ti(this,fh).copySync(Qe.oldDir.path,Qe.newDir.path);break;case"mkdir":ti(this,fh).mkdirSync(Qe.dir.path);break;default:p.errors.throwNotImplementedForNeverValueError(Qe)}},zC=new WeakSet,R1t=function(){const Qe=[];for(const en of ti(this,mN).getValues())Qe.push(...en.operations);return ra.sortByProperty(Qe,en=>en.index),ti(this,mN).clear(),Qe},IM=new WeakSet,yje=async function(Qe){is(this,hN,JK).call(this,Qe);try{await ti(this,fh).delete(Qe)}catch(en){if(!Qp.isNotExistsError(en))throw en}},_v=new WeakSet,vje=function(Qe){is(this,hN,JK).call(this,Qe);try{ti(this,fh).deleteSync(Qe)}catch(en){if(!Qp.isNotExistsError(en))throw en}},CL=new WeakSet,bje=function(Qe){if(is(this,bb,vne).call(this,Qe))return!0;const en=is(this,Y5,O1t).call(this,Qe);return!!(en!=null&&en.getWasEverDeleted())},xf=new WeakSet,M1t=function(Qe){if(is(this,bb,vne).call(this,Qe))throw new p.errors.InvalidOperationError(`Cannot read file at ${Qe} when it is queued for deletion.`);if(is(this,ME,vM).call(this,Qe).getWasEverDeleted())throw new p.errors.InvalidOperationError(`Cannot read file at ${Qe} because one of its ancestor directories was once deleted or moved.`)},C8=new WeakSet,_It=function(Qe){const en=is(this,kM,Tje).call(this,Qe);return en==null?!1:!en.getIsDeleted()},bb=new WeakSet,vne=function(Qe){const en=is(this,kM,Tje).call(this,Qe);if(en!=null)return en.getIsDeleted();const Ar=is(this,Y5,O1t).call(this,Qe);return Ar==null?!1:Ar.isFileQueuedForDelete(Qe)||Ar.getIsDeleted()},gN=new WeakSet,i_e=function(Qe){const en=Qe.getParent();Qe.removeParent();for(const Ar of[Qe,...Qe.getDescendants()])ti(this,mN).removeByKey(Ar.path);en!=null&&en.dequeueDirDelete(Qe.path)},zD=new WeakSet,L1t=function(Qe){for(const en of[Qe,...Qe.getDescendants()])ti(this,mN).set(en.path,en);Qe.isRootDir()||Qe.setParent(is(this,ME,vM).call(this,Qe.path))},gU=new WeakMap,Qw=new WeakSet,iRe=function(){return D0t(this,gU)._++},Y5=new WeakSet,O1t=function(Qe){return is(this,kM,Tje).call(this,Qp.getDirPath(Qe))},ME=new WeakSet,vM=function(Qe){return is(this,zy,NC).call(this,Qp.getDirPath(Qe))},kM=new WeakSet,Tje=function(Qe){return ti(this,mN).get(Qe)},zy=new WeakSet,NC=function(Qe){let en=ti(this,mN).get(Qe);if(en!=null)return en;const Ar=Rc=>ti(this,mN).getOrCreate(Rc,()=>new V5(Rc));en=Ar(Qe);let eo=Qe,Zo=en;for(;!Qp.isRootDirPath(eo);){const Rc=Qp.getDirPath(eo),Af=ti(this,mN).has(Rc),d1=Ar(Rc);if(Zo.setParent(d1),Af)return en;Zo=d1,eo=Rc}return en},AT=new WeakSet,QI=function(Qe,en){const Ar=Qe.getExternalOperations();if(Ar.length===0)return;throw new p.errors.InvalidOperationError(eo());function eo(){let Zo=!1,Rc=`Cannot execute immediate operation '${en}' because of the following external operations: +`}getPathMatchesPattern(Qe,en){return tr.minimatch(Qe,en)}}class Hi{join(...Qe){return gt.join(...Qe)}normalize(Qe){return gt.normalize(Qe)}relative(Qe,en){return gt.relative(Qe,en)}}class jm{constructor(){$u(this,bg,"Access to the file system is not supported in the browser. Please use an in-memory file system (specify `useInMemoryFileSystem: true` when creating the project).")}delete(Qe){return Promise.reject(new Error(ti(this,bg)))}deleteSync(Qe){throw new Error(ti(this,bg))}readDirSync(Qe){throw new Error(ti(this,bg))}readFile(Qe,en){return Promise.reject(new Error(ti(this,bg)))}readFileSync(Qe,en){throw new Error(ti(this,bg))}writeFile(Qe,en){return Promise.reject(new Error(ti(this,bg)))}writeFileSync(Qe,en){throw new Error(ti(this,bg))}mkdir(Qe){return Promise.reject(new Error(ti(this,bg)))}mkdirSync(Qe){throw new Error(ti(this,bg))}move(Qe,en){return Promise.reject(new Error(ti(this,bg)))}moveSync(Qe,en){throw new Error(ti(this,bg))}copy(Qe,en){return Promise.reject(new Error(ti(this,bg)))}copySync(Qe,en){throw new Error(ti(this,bg))}stat(Qe){return Promise.reject(new Error(ti(this,bg)))}statSync(Qe){throw new Error(ti(this,bg))}realpathSync(Qe){throw new Error(ti(this,bg))}getCurrentDirectory(){throw new Error(ti(this,bg))}glob(Qe){return Promise.reject(new Error(ti(this,bg)))}globSync(Qe){throw new Error(ti(this,bg))}isCaseSensitive(){return!0}}bg=new WeakMap;class Cy{constructor(){f1(this,"fs",new QS);f1(this,"path",new xS)}getEnvVar(Qe){return process==null?void 0:process.env[Qe]}getEndOfLine(){return Yr.EOL}getPathMatchesPattern(Qe,en){return tr.minimatch(Qe,en)}}class xS{join(...Qe){return Ns.join(...Qe)}normalize(Qe){return Ns.normalize(Qe)}relative(Qe,en){return Ns.relative(Qe,en)}}class QS{delete(Qe){return new Promise((en,Ar)=>{Ot.rm(Qe,{recursive:!0},eo=>{eo?Ar(eo):en()})})}deleteSync(Qe){Ot.rmSync(Qe,{recursive:!0})}readDirSync(Qe){return Ot.readdirSync(Qe,{withFileTypes:!0}).map(Ar=>({name:Ar.name,isFile:Ar.isFile(),isDirectory:Ar.isDirectory(),isSymlink:Ar.isSymbolicLink()}))}readFile(Qe,en="utf-8"){return new Promise((Ar,eo)=>{Ot.readFile(Qe,en,(Zo,Rc)=>{Zo?eo(Zo):Ar(Rc)})})}readFileSync(Qe,en="utf-8"){return Ot.readFileSync(Qe,en)}async writeFile(Qe,en){await new Promise((Ar,eo)=>{Ot.writeFile(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}writeFileSync(Qe,en){Ot.writeFileSync(Qe,en)}async mkdir(Qe){await bo.mkdirp(Qe)}mkdirSync(Qe){bo.sync(Qe)}move(Qe,en){return new Promise((Ar,eo)=>{Ot.rename(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}moveSync(Qe,en){Ot.renameSync(Qe,en)}copy(Qe,en){return new Promise((Ar,eo)=>{Ot.copyFile(Qe,en,Zo=>{Zo?eo(Zo):Ar()})})}copySync(Qe,en){Ot.copyFileSync(Qe,en)}stat(Qe){return new Promise((en,Ar)=>{Ot.stat(Qe,(eo,Zo)=>{eo?eo.code==="ENOENT"||eo.code==="ENOTDIR"?en(void 0):Ar(eo):en(Zo)})})}statSync(Qe){return Ot.statSync(Qe,{throwIfNoEntry:!1})}realpathSync(Qe){return Ot.realpathSync(Qe)}getCurrentDirectory(){return Ns.resolve()}glob(Qe){return Nt.default(Qe,{cwd:this.getCurrentDirectory(),absolute:!0})}globSync(Qe){return Nt.default.sync(Qe,{cwd:this.getCurrentDirectory(),absolute:!0})}isCaseSensitive(){const Qe=process==null?void 0:process.platform;return Qe!=="win32"&&Qe!=="darwin"}}const th=WC();function WC(){return g2()?new Cy:new eu}function g2(){return typeof globalThis.process=="object"&&typeof globalThis.process.versions=="object"&&typeof globalThis.process.versions.node<"u"}function d0(ds){const{transactionalFileSystem:Qe,sourceFileContainer:en,compilerOptions:Ar,getNewLine:eo,resolutionHost:Zo,getProjectVersion:Rc,isKnownTypesPackageName:Af}=ds;let d1=0;const H_=Qe.getStandardizedAbsolutePath(Gc(ds)),eS=$p=>en.containsSourceFileAtPath($p)||Qe.fileExistsSync($p),dv={getCompilationSettings:()=>Ar.get(),getNewLine:eo,getProjectVersion:Rc,getScriptFileNames:()=>Array.from(en.getSourceFilePaths()),getScriptVersion:$p=>{const ly=Qe.getStandardizedAbsolutePath($p),tE=en.getSourceFileFromCacheFromFilePath(ly);return tE==null?(d1++).toString():en.getSourceFileVersion(tE)},getScriptSnapshot:$p=>{const ly=Qe.getStandardizedAbsolutePath($p),tE=en.addOrGetSourceFileFromFilePathSync(ly,{markInProject:!1,scriptKind:void 0});return tE?sn.ScriptSnapshot.fromString(tE.getFullText()):void 0},getCurrentDirectory:()=>Qe.getCurrentDirectory(),getDefaultLibFileName:$p=>H_+"/"+sn.getDefaultLibFileName($p),isKnownTypesPackageName:Af,useCaseSensitiveFileNames:()=>!0,readFile:($p,ly)=>{const tE=Qe.getStandardizedAbsolutePath($p);return en.containsSourceFileAtPath(tE)?en.getSourceFileFromCacheFromFilePath(tE).getFullText():Qe.readFileSync(tE,ly)},fileExists:$p=>{const ly=Qe.getStandardizedAbsolutePath($p);return eS(ly)},directoryExists:$p=>{const ly=Qe.getStandardizedAbsolutePath($p);return en.containsDirectoryAtPath(ly)||Qe.directoryExistsSync(ly)},resolveModuleNames:Zo.resolveModuleNames,resolveTypeReferenceDirectives:Zo.resolveTypeReferenceDirectives,getResolvedModuleWithFailedLookupLocationsFromCache:Zo.getResolvedModuleWithFailedLookupLocationsFromCache,realpath:$p=>Qe.realpathSync(Qe.getStandardizedAbsolutePath($p))},Zh={getSourceFile:($p,ly,tE)=>{const cf=Qe.getStandardizedAbsolutePath($p);return en.addOrGetSourceFileFromFilePathSync(cf,{markInProject:!1,scriptKind:void 0})},getDefaultLibFileName:dv.getDefaultLibFileName,writeFile:($p,ly,tE,cf,Tb)=>{const Cz=Qe.getStandardizedAbsolutePath($p);Qe.writeFileSync(Cz,tE?"\uFEFF"+ly:ly)},getCurrentDirectory:()=>dv.getCurrentDirectory(),getDirectories:$p=>Qe.getDirectories(Qe.getStandardizedAbsolutePath($p)),fileExists:dv.fileExists,readFile:dv.readFile,getCanonicalFileName:$p=>Qe.getStandardizedAbsolutePath($p),useCaseSensitiveFileNames:dv.useCaseSensitiveFileNames,getNewLine:dv.getNewLine,getEnvironmentVariable:$p=>th.getEnvVar($p),directoryExists:$p=>dv.directoryExists($p),resolveModuleNames:Zo.resolveModuleNames,resolveTypeReferenceDirectives:Zo.resolveTypeReferenceDirectives,realpath:dv.realpath};return{languageServiceHost:dv,compilerHost:Zh}}const OD=/^[a-z]+:[\\\/]$/i,_A=th.path,Na=class Na{constructor(){}static isNotExistsError(Qe){var en;return Qe!=null&&Qe.code===Na.ENOENT||Qe!=null&&((en=Qe==null?void 0:Qe.constructor)==null?void 0:en.name)==="NotFound"}static pathJoin(Qe,...en){return Na.pathIsAbsolute(Qe)?Na.standardizeSlashes(_A.normalize(_A.join(Qe,...en))):Na.standardizeSlashes(_A.join(Qe,...en))}static pathIsAbsolute(Qe){return uN(Qe)}static getStandardizedAbsolutePath(Qe,en,Ar){return Na.standardizeSlashes(_A.normalize(eo()));function eo(){return uN(en)?en:!en.startsWith("./")&&Ar!=null?_A.join(Ar,en):_A.join(Qe.getCurrentDirectory(),en)}}static getDirPath(Qe){Qe=Na.standardizeSlashes(Qe);const en=Qe.lastIndexOf("/");return en===-1?".":Na.standardizeSlashes(Qe.substring(0,en+1))}static getBaseName(Qe){const en=Qe.lastIndexOf("/");return Qe.substring(en+1)}static getExtension(Qe){const en=Na.getBaseName(Qe),Ar=en.lastIndexOf(".");if(Ar<=0)return"";const eo=en.substring(Ar),Zo=eo.toLowerCase();return Zo===".ts"&&en.substring(Ar-2,Ar).toLowerCase()===".d"?en.substring(Ar-2):Zo===".map"&&en.substring(Ar-3,Ar).toLowerCase()===".js"?en.substring(Ar-3):eo}static standardizeSlashes(Qe){let en=Qe.replace(ti(this,xT),"/");return!Na.isRootDirPath(en)&&en.endsWith("/")&&(en=en.substring(0,en.length-1)),en}static pathEndsWith(Qe,en){var Zo,Rc;const Ar=is(Zo=Na,x8,gje).call(Zo,Qe),eo=is(Rc=Na,x8,gje).call(Rc,en);if(eo.length>Ar.length)return!1;for(let Af=0;Af0}static pathStartsWith(Qe,en){var Af,d1;const Ar=Ky.isNullOrWhitespace(Qe),eo=Ky.isNullOrWhitespace(en),Zo=is(Af=Na,x8,gje).call(Af,Qe),Rc=is(d1=Na,x8,gje).call(d1,en);if(Ar&&eo)return!0;if(eo||Rc.length>Zo.length)return!1;if(Rc.length===1&&Rc[0].length===0)return!0;for(let H_=0;H_0}static getParentMostPaths(Qe){const en=[];for(const Ar of ra.sortByProperty(Qe,eo=>eo.length))en.every(eo=>!Na.pathStartsWith(Ar,eo))&&en.push(Ar);return en}static async readFileOrNotExists(Qe,en,Ar){try{return await Qe.readFile(en,Ar)}catch(eo){if(!Na.isNotExistsError(eo))throw eo;return!1}}static readFileOrNotExistsSync(Qe,en,Ar){try{return Qe.readFileSync(en,Ar)}catch(eo){if(!Na.isNotExistsError(eo))throw eo;return!1}}static getTextWithByteOrderMark(Qe){return Ky.hasBom(Qe)?Qe:"\uFEFF"+Qe}static getRelativePathTo(Qe,en){const Ar=_A.relative(Qe,Na.getDirPath(en));return Na.standardizeSlashes(_A.join(Ar,Na.getBaseName(en)))}static isRootDirPath(Qe){return Qe==="/"||OD.test(Qe)}static*getDescendantDirectories(Qe,en){for(const Ar of Qe.readDirSync(en))Ar.isDirectory&&(yield Ar.path,yield*Na.getDescendantDirectories(Qe,Ar.path))}static toAbsoluteGlob(Qe,en){Qe.slice(0,2)==="./"&&(Qe=Qe.slice(2)),Qe.length===1&&Qe==="."&&(Qe="");const Ar=Qe.slice(-1),eo=Na.isNegatedGlob(Qe);return eo&&(Qe=Qe.slice(1)),(!uN(Qe)||Qe.slice(0,1)==="\\")&&(Qe=fv(en,Qe)),Ar==="/"&&Qe.slice(-1)!=="/"&&(Qe+="/"),eo?"!"+Qe:Qe}static isNegatedGlob(Qe){return Qe[0]==="!"&&Qe[1]!=="("}};xT=new WeakMap,eE=new WeakMap,Of=new WeakMap,x8=new WeakSet,gje=function(Qe){return Qe=(Qe||"").replace(ti(Na,eE),"").replace(ti(Na,Of),""),Na.standardizeSlashes(Qe).replace(/^\//,"").split("/")},$u(Na,x8),$u(Na,xT,/\\/g),$u(Na,eE,/^\//),$u(Na,Of,/\/$/),f1(Na,"ENOENT","ENOENT");let Qp=Na;function fv(ds,Qe){return ds.charAt(ds.length-1)==="/"&&(ds=ds.slice(0,-1)),Qe.charAt(0)==="/"&&(Qe=Qe.slice(1)),Qe?ds+"/"+Qe:ds}function uN(ds){return ds.startsWith("/")||ur(ds)}const b8=/^[a-z]+:[\\\/]/i;function ur(ds){return b8.test(ds)||FD(ds)||Oi(ds)}function FD(ds){return ds.startsWith("\\\\")}const gz=/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/;function Oi(ds){return gz.test(ds)}function Dy(ds,Qe,en){typeof Qe=="string"?Qe=[Qp.toAbsoluteGlob(Qe,en)]:Qe=Qe.map(eo=>Qp.toAbsoluteGlob(eo,en));const Ar=[];for(const eo of ds)for(let Zo of Qe){let Rc=ST;Qp.isNegatedGlob(Zo)&&(Rc=L_e,Zo=Zo.slice(1)),th.getPathMatchesPattern(eo,Zo)&&Rc(Ar,eo)}return Ar}function ST(ds,Qe){ds.indexOf(Qe)===-1&&ds.push(Qe)}function L_e(ds,Qe){const en=ds.indexOf(Qe);en>=0&&ds.splice(en,1)}class fN{constructor(){$u(this,p0);$u(this,JO);$u(this,_1);$u(this,Pd,new Map);is(this,_1,rRe).call(this,"/")}isCaseSensitive(){return!0}delete(Qe){try{return this.deleteSync(Qe),Promise.resolve()}catch(en){return Promise.reject(en)}}deleteSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe);if(ti(this,Pd).has(en)){for(const eo of fU(ti(this,Pd).keys(),en))ti(this,Pd).delete(eo);ti(this,Pd).delete(en);return}const Ar=ti(this,Pd).get(Qp.getDirPath(en));if(Ar==null||!Ar.files.has(en))throw new p.errors.FileNotFoundError(en);Ar.files.delete(en)}readDirSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe),Ar=ti(this,Pd).get(en);if(Ar==null)throw new p.errors.DirectoryNotFoundError(en);return[...eo(ti(this,Pd).keys()),...Array.from(Ar.files.keys()).map(Zo=>({name:Zo,isDirectory:!1,isFile:!0,isSymlink:!1}))];function*eo(Zo){for(const Rc of Zo){const Af=Qp.getDirPath(Rc);Af===en&&Af!==Rc&&(yield{name:Rc,isDirectory:!0,isFile:!1,isSymlink:!1})}}}readFile(Qe,en="utf-8"){try{return Promise.resolve(this.readFileSync(Qe,en))}catch(Ar){return Promise.reject(Ar)}}readFileSync(Qe,en="utf-8"){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=ti(this,Pd).get(Qp.getDirPath(Ar));if(eo==null)throw new p.errors.FileNotFoundError(Ar);const Zo=eo.files.get(Ar);if(Zo===void 0)throw new p.errors.FileNotFoundError(Ar);return Zo}writeFile(Qe,en){return this.writeFileSync(Qe,en),Promise.resolve()}writeFileSync(Qe,en){is(this,p0,cIt).call(this,Qe,en)}mkdir(Qe){return this.mkdirSync(Qe),Promise.resolve()}mkdirSync(Qe){is(this,_1,rRe).call(this,Qp.getStandardizedAbsolutePath(this,Qe))}move(Qe,en){return this.moveSync(Qe,en),Promise.resolve()}moveSync(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getStandardizedAbsolutePath(this,en);if(this.fileExistsSync(Ar)){const Zo=this.readFileSync(Ar);this.deleteSync(Ar),this.writeFileSync(eo,Zo)}else if(ti(this,Pd).has(Ar)){const Zo=(Rc,Af)=>{is(this,JO,$it).call(this,Rc,Af),ti(this,Pd).delete(Rc)};Zo(Ar,eo);for(const Rc of fU(ti(this,Pd).keys(),Ar)){const Af=Qp.getRelativePathTo(Ar,Rc);Zo(Rc,Qp.pathJoin(eo,Af))}}else throw new p.errors.PathNotFoundError(Ar)}copy(Qe,en){return this.copySync(Qe,en),Promise.resolve()}copySync(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getStandardizedAbsolutePath(this,en);if(this.fileExistsSync(Ar))this.writeFileSync(eo,this.readFileSync(Ar));else if(ti(this,Pd).has(Ar)){is(this,JO,$it).call(this,Ar,eo);for(const Zo of fU(ti(this,Pd).keys(),Ar)){const Rc=Qp.getRelativePathTo(Ar,Zo);is(this,JO,$it).call(this,Zo,Qp.pathJoin(eo,Rc))}}else throw new p.errors.PathNotFoundError(Ar)}fileExists(Qe){return Promise.resolve(this.fileExistsSync(Qe))}fileExistsSync(Qe){const en=Qp.getStandardizedAbsolutePath(this,Qe),Ar=Qp.getDirPath(en),eo=ti(this,Pd).get(Ar);return eo==null?!1:eo.files.has(en)}directoryExists(Qe){return Promise.resolve(this.directoryExistsSync(Qe))}directoryExistsSync(Qe){return ti(this,Pd).has(Qp.getStandardizedAbsolutePath(this,Qe))}realpathSync(Qe){return Qe}getCurrentDirectory(){return"/"}glob(Qe){try{return Promise.resolve(this.globSync(Qe))}catch(en){return Promise.reject(en)}}globSync(Qe){const en=Array.from(Ar(ti(this,Pd).values()));return Dy(en,Qe,this.getCurrentDirectory());function*Ar(eo){for(const Zo of eo)yield*Zo.files.keys()}}}Pd=new WeakMap,p0=new WeakSet,cIt=function(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(this,Qe),eo=Qp.getDirPath(Ar);is(this,_1,rRe).call(this,eo).files.set(Ar,en)},JO=new WeakSet,$it=function(Qe,en){const Ar=ti(this,Pd).get(Qe),eo=is(this,_1,rRe).call(this,en);for(const[Zo,Rc]of Ar.files.entries()){const Af=Qp.pathJoin(en,Qp.getBaseName(Zo));eo.files.set(Af,Rc)}},_1=new WeakSet,rRe=function(Qe){let en=ti(this,Pd).get(Qe);if(en==null){en={path:Qe,files:new Map},ti(this,Pd).set(Qe,en);const Ar=Qp.getDirPath(Qe);Ar!==Qe&&is(this,_1,rRe).call(this,Ar)}return en};function*fU(ds,Qe){for(const en of ds)Qp.pathStartsWith(en,Qe)&&(yield en)}const nh=th.fs;class hz{constructor(){$u(this,ZA);$u(this,pf)}async delete(Qe){try{await nh.delete(Qe)}catch(en){throw is(this,pf,hje).call(this,en,Qe)}}deleteSync(Qe){try{nh.deleteSync(Qe)}catch(en){throw is(this,pf,hje).call(this,en,Qe)}}readDirSync(Qe){try{const en=nh.readDirSync(Qe);for(const Ar of en)if(Ar.name=Qp.pathJoin(Qe,Ar.name),Ar.isSymlink)try{const eo=nh.statSync(Ar.name);eo!=null&&(Ar.isDirectory=eo.isDirectory(),Ar.isFile=eo.isFile())}catch{}return en}catch(en){throw is(this,ZA,lIt).call(this,en,Qe)}}async readFile(Qe,en="utf-8"){try{return await nh.readFile(Qe,en)}catch(Ar){throw is(this,pf,hje).call(this,Ar,Qe)}}readFileSync(Qe,en="utf-8"){try{return nh.readFileSync(Qe,en)}catch(Ar){throw is(this,pf,hje).call(this,Ar,Qe)}}async writeFile(Qe,en){return nh.writeFile(Qe,en)}writeFileSync(Qe,en){nh.writeFileSync(Qe,en)}mkdir(Qe){return nh.mkdir(Qe)}mkdirSync(Qe){nh.mkdirSync(Qe)}move(Qe,en){return nh.move(Qe,en)}moveSync(Qe,en){nh.moveSync(Qe,en)}copy(Qe,en){return nh.copy(Qe,en)}copySync(Qe,en){nh.copySync(Qe,en)}async fileExists(Qe){var en;try{return((en=await nh.stat(Qe))==null?void 0:en.isFile())??!1}catch{return!1}}fileExistsSync(Qe){var en;try{return((en=nh.statSync(Qe))==null?void 0:en.isFile())??!1}catch{return!1}}async directoryExists(Qe){var en;try{return((en=await nh.stat(Qe))==null?void 0:en.isDirectory())??!1}catch{return!1}}directoryExistsSync(Qe){var en;try{return((en=nh.statSync(Qe))==null?void 0:en.isDirectory())??!1}catch{return!1}}realpathSync(Qe){return nh.realpathSync(Qe)}getCurrentDirectory(){return Qp.standardizeSlashes(nh.getCurrentDirectory())}glob(Qe){return nh.glob(pp(Qe))}globSync(Qe){return nh.globSync(pp(Qe))}isCaseSensitive(){return nh.isCaseSensitive()}}ZA=new WeakSet,lIt=function(Qe,en){return Qp.isNotExistsError(Qe)?new p.errors.DirectoryNotFoundError(Qp.getStandardizedAbsolutePath(this,en)):Qe},pf=new WeakSet,hje=function(Qe,en){return Qp.isNotExistsError(Qe)?new p.errors.FileNotFoundError(Qp.getStandardizedAbsolutePath(this,en)):Qe};function pp(ds){return ds.map(Qe=>Qe.replace(/\\/g,"/"))}class V5{constructor(Qe){$u(this,Xw);$u(this,$5);f1(this,"path");f1(this,"operations",[]);f1(this,"inboundOperations",[]);$u(this,qw,!1);$u(this,Kw,!1);$u(this,rP,void 0);$u(this,Fp,new kx(Qe=>Qe.path,Zi.instance));this.path=Qe}getExternalOperations(){return[...this.getAncestors().map(Zo=>eo(Zo)).flat().filter(Zo=>en(this,Zo)),...[this,...this.getDescendants()].map(Zo=>Ar(Zo)).flat().filter(Zo=>!Qe(this,Zo))];function Qe(Zo,Rc){return Rc.oldDir.isDescendantOrEqual(Zo)&&Rc.newDir.isDescendantOrEqual(Zo)}function en(Zo,Rc){switch(Rc.kind){case"move":case"copy":return Zo.isDescendantOrEqual(Rc.oldDir)||Zo.isDescendantOrEqual(Rc.newDir);case"deleteDir":return Zo.isDescendantOrEqual(Rc.dir);default:return p.errors.throwNotImplementedForNeverValueError(Rc)}}function Ar(Zo){return Zo.operations.filter(Rc=>Rc.kind==="move"||Rc.kind==="copy")}function eo(Zo){return Zo.operations.filter(Rc=>Rc.kind==="move"||Rc.kind==="deleteDir"||Rc.kind==="copy")}}isDescendantOrEqual(Qe){return this.isDescendant(Qe)||this===Qe}isDescendant(Qe){return Qp.pathStartsWith(this.path,Qe.path)}getIsDeleted(){return ti(this,qw)}getWasEverDeleted(){if(ti(this,Kw))return!0;for(const Qe of this.getAncestorsIterator())if(ti(Qe,Kw))return!0;return!1}setIsDeleted(Qe){if(ti(this,qw)!==Qe){if(Qe){Bg(this,Kw,!0);for(const en of ti(this,Fp).entries())en.setIsDeleted(!0)}else ti(this,rP)!=null&&ti(this,rP).setIsDeleted(!1);Bg(this,qw,Qe)}}getParent(){return ti(this,rP)}setParent(Qe){if(ti(this,rP)!=null)throw new p.errors.InvalidOperationError("For some reason, a parent was being set when the directory already had a parent. Please open an issue.");Bg(this,rP,Qe),ti(Qe,Fp).set(this),ti(Qe,qw)&&!ti(this,qw)&&Qe.setIsDeleted(!1)}removeParent(){const Qe=ti(this,rP);Qe!=null&&(ti(Qe,Fp).removeByValue(this),Bg(this,rP,void 0))}getAncestors(){return Array.from(this.getAncestorsIterator())}*getAncestorsIterator(){let Qe=ti(this,rP);for(;Qe!=null;)yield Qe,Qe=ti(Qe,rP)}*getChildrenEntriesIterator(){for(const Qe of ti(this,Fp).entries())yield{path:Qe.path,isDirectory:!0,isFile:!1,isSymlink:!1}}getDescendants(){const Qe=[];for(const en of ti(this,Fp).entries())Qe.push(en),Qe.push(...en.getDescendants());return Qe}isFileQueuedForDelete(Qe){return is(this,Xw,uIt).call(this,en=>en.kind==="deleteFile"&&en.filePath===Qe)}dequeueFileDelete(Qe){is(this,$5,I1t).call(this,en=>en.kind==="deleteFile"&&en.filePath===Qe)}dequeueDirDelete(Qe){is(this,$5,I1t).call(this,en=>en.kind==="deleteDir"&&en.dir.path===Qe)}isRootDir(){return Qp.isRootDirPath(this.path)}}qw=new WeakMap,Kw=new WeakMap,rP=new WeakMap,Fp=new WeakMap,Xw=new WeakSet,uIt=function(Qe){for(const en of this.operations)if(Qe(en))return!0;return!1},$5=new WeakSet,I1t=function(Qe){ra.removeAll(this.operations,Qe)};class Dl{constructor(Qe){$u(this,h_);$u(this,K5);$u(this,xL);$u(this,zC);$u(this,IM);$u(this,_v);$u(this,AL);$u(this,xf);$u(this,C8);$u(this,bb);$u(this,gN);$u(this,zD);$u(this,Qw);$u(this,Y5);$u(this,ME);$u(this,kM);$u(this,zy);$u(this,AT);$u(this,eC);$u(this,Ez);$u(this,re);$u(this,GD);$u(this,Zw);$u(this,hN);$u(this,mN,new ui);$u(this,Z0,void 0);$u(this,fh,void 0);$u(this,$O,void 0);$u(this,gU,0);if(Bg(this,fh,Qe.fileSystem),Bg(this,Z0,new sX(Qe.fileSystem)),!Qe.skipLoadingLibFiles&&Qe.libFolderPath==null){const en=Gc(Qe);Bg(this,$O,new Map);const Ar=Zf();for(const eo of Ar)ti(this,$O).set(this.getStandardizedAbsolutePath(en+"/"+eo.fileName),eo.text)}}queueFileDelete(Qe){is(this,hN,JK).call(this,Qe),is(this,ME,vM).call(this,Qe).operations.push({kind:"deleteFile",index:is(this,Qw,iRe).call(this),filePath:Qe}),ti(this,Z0).removePath(Qe)}removeFileDelete(Qe){is(this,ME,vM).call(this,Qe).dequeueFileDelete(Qe)}queueMkdir(Qe){const en=is(this,zy,NC).call(this,Qe);en.setIsDeleted(!1),is(this,ME,vM).call(this,Qe).operations.push({kind:"mkdir",index:is(this,Qw,iRe).call(this),dir:en})}queueDirectoryDelete(Qe){const en=is(this,zy,NC).call(this,Qe);en.setIsDeleted(!0),is(this,ME,vM).call(this,Qe).operations.push({kind:"deleteDir",index:is(this,Qw,iRe).call(this),dir:en}),ti(this,Z0).removePath(Qe)}queueMoveDirectory(Qe,en){const Ar=is(this,ME,vM).call(this,Qe),eo=is(this,zy,NC).call(this,Qe),Zo=is(this,zy,NC).call(this,en),Rc={kind:"move",index:is(this,Qw,iRe).call(this),oldDir:eo,newDir:Zo};Ar.operations.push(Rc),(Zo.getParent()||Zo).inboundOperations.push(Rc),eo.setIsDeleted(!0),ti(this,Z0).removePath(Qe)}queueCopyDirectory(Qe,en){const Ar=is(this,ME,vM).call(this,Qe),eo=is(this,zy,NC).call(this,Qe),Zo=is(this,zy,NC).call(this,en),Rc={kind:"copy",index:is(this,Qw,iRe).call(this),oldDir:eo,newDir:Zo};Ar.operations.push(Rc),(Zo.getParent()||Zo).inboundOperations.push(Rc)}async flush(){const Qe=is(this,zC,w1t).call(this);for(const en of Qe)await is(this,K5,P1t).call(this,en)}flushSync(){for(const Qe of is(this,zC,w1t).call(this))is(this,xL,N1t).call(this,Qe)}async saveForDirectory(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"save directory");const Ar=is(this,h_,k1t).call(this,en);await is(this,eC,O1t).call(this,en);for(const eo of Ar)await is(this,K5,P1t).call(this,eo)}saveForDirectorySync(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"save directory"),is(this,Ez,F1t).call(this,en);for(const Ar of is(this,h_,k1t).call(this,en))is(this,xL,N1t).call(this,Ar)}async moveFileImmediately(Qe,en,Ar){is(this,hN,JK).call(this,en),is(this,AT,QI).call(this,is(this,ME,vM).call(this,Qe),"move file"),is(this,AT,QI).call(this,is(this,ME,vM).call(this,en),"move file"),await this.writeFile(en,Ar),await this.deleteFileImmediately(Qe)}moveFileImmediatelySync(Qe,en,Ar){is(this,hN,JK).call(this,en),is(this,AT,QI).call(this,is(this,ME,vM).call(this,Qe),"move file"),is(this,AT,QI).call(this,is(this,ME,vM).call(this,en),"move file"),this.writeFileSync(en,Ar),this.deleteFileImmediatelySync(Qe)}async deleteFileImmediately(Qe){is(this,hN,JK).call(this,Qe);const en=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,en,"delete file"),en.dequeueFileDelete(Qe),ti(this,Z0).removePath(Qe);try{await is(this,IM,yje).call(this,Qe)}catch(Ar){throw this.queueFileDelete(Qe),Ar}}deleteFileImmediatelySync(Qe){is(this,hN,JK).call(this,Qe);const en=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,en,"delete file"),en.dequeueFileDelete(Qe),ti(this,Z0).removePath(Qe);try{is(this,_v,vje).call(this,Qe)}catch(Ar){throw this.queueFileDelete(Qe),Ar}}async copyDirectoryImmediately(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"copy directory"),is(this,AT,QI).call(this,eo,"copy directory");const Zo=Promise.all([this.saveForDirectory(Qe),this.saveForDirectory(en)]);is(this,gN,i_e).call(this,Ar),await Zo,await ti(this,fh).copy(Qe,en)}copyDirectoryImmediatelySync(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"copy directory"),is(this,AT,QI).call(this,eo,"copy directory"),this.saveForDirectorySync(Qe),this.saveForDirectorySync(en),is(this,gN,i_e).call(this,Ar),ti(this,fh).copySync(Qe,en)}async moveDirectoryImmediately(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"move directory"),is(this,AT,QI).call(this,eo,"move directory");const Zo=Promise.all([this.saveForDirectory(Qe),this.saveForDirectory(en)]);is(this,gN,i_e).call(this,Ar),ti(this,Z0).removePath(Qe),await Zo,await ti(this,fh).move(Qe,en)}moveDirectoryImmediatelySync(Qe,en){const Ar=is(this,zy,NC).call(this,Qe),eo=is(this,zy,NC).call(this,en);is(this,AT,QI).call(this,Ar,"move directory"),is(this,AT,QI).call(this,eo,"move directory"),this.saveForDirectorySync(Qe),this.saveForDirectorySync(en),is(this,gN,i_e).call(this,Ar),ti(this,Z0).removePath(Qe),ti(this,fh).moveSync(Qe,en)}async deleteDirectoryImmediately(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"delete"),is(this,gN,i_e).call(this,en),ti(this,Z0).removePath(Qe);try{await is(this,IM,yje).call(this,Qe)}catch{is(this,zD,M1t).call(this,en),this.queueDirectoryDelete(Qe)}}async clearDirectoryImmediately(Qe){await this.deleteDirectoryImmediately(Qe),is(this,zy,NC).call(this,Qe).setIsDeleted(!1),await ti(this,fh).mkdir(Qe)}clearDirectoryImmediatelySync(Qe){this.deleteDirectoryImmediatelySync(Qe),is(this,zy,NC).call(this,Qe).setIsDeleted(!1),ti(this,fh).mkdirSync(Qe)}deleteDirectoryImmediatelySync(Qe){const en=is(this,zy,NC).call(this,Qe);is(this,AT,QI).call(this,en,"delete"),is(this,gN,i_e).call(this,en),ti(this,Z0).removePath(Qe);try{is(this,_v,vje).call(this,Qe)}catch{is(this,zD,M1t).call(this,en),this.queueDirectoryDelete(Qe)}}fileExists(Qe){return is(this,GD,Sje).call(this,Qe)?!0:is(this,AL,bje).call(this,Qe)?!1:ti(this,fh).fileExists(Qe)}fileExistsSync(Qe){return is(this,GD,Sje).call(this,Qe)?!0:is(this,AL,bje).call(this,Qe)?!1:ti(this,fh).fileExistsSync(Qe)}directoryExistsSync(Qe){if(is(this,bb,vne).call(this,Qe))return!1;if(is(this,C8,fIt).call(this,Qe))return!0;const en=is(this,kM,Tje).call(this,Qe);return en!=null&&en.getWasEverDeleted()?!1:ti(this,fh).directoryExistsSync(Qe)}readFileIfExistsSync(Qe,en){if(!is(this,AL,bje).call(this,Qe))try{return this.readFileSync(Qe,en)}catch(Ar){if(Ar instanceof p.errors.FileNotFoundError)return;throw Ar}}readFileSync(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar??(is(this,xf,R1t).call(this,Qe),ti(this,fh).readFileSync(Qe,en))}readFileIfExists(Qe,en){return is(this,AL,bje).call(this,Qe)?Promise.resolve(void 0):this.readFile(Qe,en).catch(Ar=>Ar instanceof p.errors.FileNotFoundError?Promise.resolve(void 0):Promise.reject(Ar))}readFile(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar!=null?Promise.resolve(Ar):(is(this,xf,R1t).call(this,Qe),ti(this,fh).readFile(Qe,en))}readDirSync(Qe){const en=is(this,zy,NC).call(this,Qe);if(en.getIsDeleted())throw new p.errors.InvalidOperationError(`Cannot read directory at ${Qe} when it is queued for deletion.`);if(en.getWasEverDeleted())throw new p.errors.InvalidOperationError(`Cannot read directory at ${Qe} because one of its ancestor directories was once deleted or moved.`);const Ar=new Map;for(const eo of en.getChildrenEntriesIterator())Ar.set(eo.path,eo);for(const eo of ti(this,fh).readDirSync(Qe)){const Zo=this.getStandardizedAbsolutePath(eo.name);is(this,bb,vne).call(this,Zo)||Ar.set(Zo,{path:Zo,isDirectory:eo.isDirectory,isFile:eo.isFile,isSymlink:eo.isSymlink})}return ra.sortByProperty(Array.from(Ar.values()),eo=>eo.path)}async glob(Qe){return(await ti(this,fh).glob(Qe)).map(Ar=>this.getStandardizedAbsolutePath(Ar)).filter(Ar=>!is(this,bb,vne).call(this,Ar))}*globSync(Qe){const en=ti(this,fh).globSync(Qe);for(const Ar of en){const eo=this.getStandardizedAbsolutePath(Ar);is(this,bb,vne).call(this,eo)||(yield eo)}}getFileSystem(){return ti(this,fh)}getCurrentDirectory(){return this.getStandardizedAbsolutePath(ti(this,fh).getCurrentDirectory())}getDirectories(Qe){return this.readDirSync(Qe).filter(en=>en.isDirectory).map(en=>en.path)}realpathSync(Qe){if(is(this,GD,Sje).call(this,Qe))return Qe;try{return this.getStandardizedAbsolutePath(ti(this,fh).realpathSync(Qe))}catch{return Qe}}getStandardizedAbsolutePath(Qe,en){const Ar=Qp.getStandardizedAbsolutePath(ti(this,fh),Qe,en);return ti(this,Z0).getPath(Ar)}readFileOrNotExists(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar!=null?Promise.resolve(Ar):is(this,bb,vne).call(this,Qe)?!1:Qp.readFileOrNotExists(ti(this,fh),Qe,en)}readFileOrNotExistsSync(Qe,en){const Ar=is(this,Zw,Eje).call(this,Qe);return Ar??(is(this,bb,vne).call(this,Qe)?!1:Qp.readFileOrNotExistsSync(ti(this,fh),Qe,en))}async writeFile(Qe,en){is(this,hN,JK).call(this,Qe);const Ar=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,Ar,"write file"),Ar.dequeueFileDelete(Qe),await is(this,eC,O1t).call(this,Ar),await ti(this,fh).writeFile(Qe,en)}writeFileSync(Qe,en){is(this,hN,JK).call(this,Qe);const Ar=is(this,ME,vM).call(this,Qe);is(this,AT,QI).call(this,Ar,"write file"),Ar.dequeueFileDelete(Qe),is(this,Ez,F1t).call(this,Ar),ti(this,fh).writeFileSync(Qe,en)}}mN=new WeakMap,Z0=new WeakMap,fh=new WeakMap,$O=new WeakMap,h_=new WeakSet,k1t=function(Qe){const en=Ar(Qe.getParent(),Qe);for(const eo of[Qe,...Qe.getDescendants()])en.push(...eo.operations);return ra.sortByProperty(en,eo=>eo.index),is(this,gN,i_e).call(this,Qe),en;function Ar(eo,Zo){return eo==null?[]:[...ra.removeAll(eo.operations,Af=>Af.kind==="mkdir"&&Af.dir===Zo),...Ar(eo.getParent(),eo)]}},K5=new WeakSet,P1t=async function(Qe){switch(Qe.kind){case"deleteDir":await is(this,IM,yje).call(this,Qe.dir.path);break;case"deleteFile":await is(this,IM,yje).call(this,Qe.filePath);break;case"move":await ti(this,fh).move(Qe.oldDir.path,Qe.newDir.path);break;case"copy":await ti(this,fh).copy(Qe.oldDir.path,Qe.newDir.path);break;case"mkdir":await ti(this,fh).mkdir(Qe.dir.path);break;default:p.errors.throwNotImplementedForNeverValueError(Qe)}},xL=new WeakSet,N1t=function(Qe){switch(Qe.kind){case"deleteDir":is(this,_v,vje).call(this,Qe.dir.path);break;case"deleteFile":is(this,_v,vje).call(this,Qe.filePath);break;case"move":ti(this,fh).moveSync(Qe.oldDir.path,Qe.newDir.path);break;case"copy":ti(this,fh).copySync(Qe.oldDir.path,Qe.newDir.path);break;case"mkdir":ti(this,fh).mkdirSync(Qe.dir.path);break;default:p.errors.throwNotImplementedForNeverValueError(Qe)}},zC=new WeakSet,w1t=function(){const Qe=[];for(const en of ti(this,mN).getValues())Qe.push(...en.operations);return ra.sortByProperty(Qe,en=>en.index),ti(this,mN).clear(),Qe},IM=new WeakSet,yje=async function(Qe){is(this,hN,JK).call(this,Qe);try{await ti(this,fh).delete(Qe)}catch(en){if(!Qp.isNotExistsError(en))throw en}},_v=new WeakSet,vje=function(Qe){is(this,hN,JK).call(this,Qe);try{ti(this,fh).deleteSync(Qe)}catch(en){if(!Qp.isNotExistsError(en))throw en}},AL=new WeakSet,bje=function(Qe){if(is(this,bb,vne).call(this,Qe))return!0;const en=is(this,Y5,L1t).call(this,Qe);return!!(en!=null&&en.getWasEverDeleted())},xf=new WeakSet,R1t=function(Qe){if(is(this,bb,vne).call(this,Qe))throw new p.errors.InvalidOperationError(`Cannot read file at ${Qe} when it is queued for deletion.`);if(is(this,ME,vM).call(this,Qe).getWasEverDeleted())throw new p.errors.InvalidOperationError(`Cannot read file at ${Qe} because one of its ancestor directories was once deleted or moved.`)},C8=new WeakSet,fIt=function(Qe){const en=is(this,kM,Tje).call(this,Qe);return en==null?!1:!en.getIsDeleted()},bb=new WeakSet,vne=function(Qe){const en=is(this,kM,Tje).call(this,Qe);if(en!=null)return en.getIsDeleted();const Ar=is(this,Y5,L1t).call(this,Qe);return Ar==null?!1:Ar.isFileQueuedForDelete(Qe)||Ar.getIsDeleted()},gN=new WeakSet,i_e=function(Qe){const en=Qe.getParent();Qe.removeParent();for(const Ar of[Qe,...Qe.getDescendants()])ti(this,mN).removeByKey(Ar.path);en!=null&&en.dequeueDirDelete(Qe.path)},zD=new WeakSet,M1t=function(Qe){for(const en of[Qe,...Qe.getDescendants()])ti(this,mN).set(en.path,en);Qe.isRootDir()||Qe.setParent(is(this,ME,vM).call(this,Qe.path))},gU=new WeakMap,Qw=new WeakSet,iRe=function(){return D0t(this,gU)._++},Y5=new WeakSet,L1t=function(Qe){return is(this,kM,Tje).call(this,Qp.getDirPath(Qe))},ME=new WeakSet,vM=function(Qe){return is(this,zy,NC).call(this,Qp.getDirPath(Qe))},kM=new WeakSet,Tje=function(Qe){return ti(this,mN).get(Qe)},zy=new WeakSet,NC=function(Qe){let en=ti(this,mN).get(Qe);if(en!=null)return en;const Ar=Rc=>ti(this,mN).getOrCreate(Rc,()=>new V5(Rc));en=Ar(Qe);let eo=Qe,Zo=en;for(;!Qp.isRootDirPath(eo);){const Rc=Qp.getDirPath(eo),Af=ti(this,mN).has(Rc),d1=Ar(Rc);if(Zo.setParent(d1),Af)return en;Zo=d1,eo=Rc}return en},AT=new WeakSet,QI=function(Qe,en){const Ar=Qe.getExternalOperations();if(Ar.length===0)return;throw new p.errors.InvalidOperationError(eo());function eo(){let Zo=!1,Rc=`Cannot execute immediate operation '${en}' because of the following external operations: `;for(const Af of Ar)Af.kind==="move"?Rc+=` * Move: ${Af.oldDir.path} --> ${Af.newDir.path}`:Af.kind==="copy"?(Rc+=` * Copy: ${Af.oldDir.path} --> ${Af.newDir.path}`,Zo=!0):Af.kind==="deleteDir"?Rc+=` * Delete: ${Af.dir.path}`:Rc+=` -* Unknown operation: Please report this as a bug.`;return Zo&&(Rc+="\n\nNote: Copy operations can be removed from external operations by setting `includeUntrackedFiles` to `false` when copying."),Rc}},eC=new WeakSet,F1t=async function(Qe){Qe.isRootDir()||(is(this,re,qit).call(this,Qe),await ti(this,fh).mkdir(Qe.path))},xz=new WeakSet,W1t=function(Qe){Qe.isRootDir()||(is(this,re,qit).call(this,Qe),ti(this,fh).mkdirSync(Qe.path))},re=new WeakSet,qit=function(Qe){const en=Qe.getParent();en!=null&&(ra.removeAll(en.operations,Ar=>Ar.kind==="mkdir"&&Ar.dir===Qe),is(this,re,qit).call(this,en))},GD=new WeakSet,Sje=function(Qe){return ti(this,$O)!=null&&ti(this,$O).has(Qe)},Zw=new WeakSet,Eje=function(Qe){if(ti(this,$O)!=null)return ti(this,$O).get(Qe)},hN=new WeakSet,JK=function(Qe){if(is(this,GD,Sje).call(this,Qe))throw new p.errors.InvalidOperationError("This operation is not permitted on an in memory lib folder file.")};class sX{constructor(Qe){$u(this,J1,void 0);Qe.isCaseSensitive!=null&&!Qe.isCaseSensitive()&&Bg(this,J1,new Map)}getPath(Qe){if(ti(this,J1)==null)return Qe;const en=Qe.toLowerCase();let Ar=ti(this,J1).get(en);return Ar==null&&(Ar=Qe,ti(this,J1).set(en,Ar)),Ar}removePath(Qe){ti(this,J1)!=null&&ti(this,J1).delete(Qe.toLowerCase())}}J1=new WeakMap;function Yf(ds){const{transactionalFileSystem:Qe,sourceFileContainer:en,getEncoding:Ar}=ds;return{directoryExists:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo);return en.containsDirectoryAtPath(Zo)?!0:Qe.directoryExistsSync(Zo)},fileExists:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo);return en.containsSourceFileAtPath(Zo)?!0:Qe.fileExistsSync(Zo)},readFile:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo),Rc=en.getSourceFileFromCacheFromFilePath(Zo);if(Rc!=null)return Rc.getFullText();try{return Qe.readFileSync(Zo,Ar())}catch(Af){if(Qp.isNotExistsError(Af))return;throw Af}},getCurrentDirectory:()=>Qe.getCurrentDirectory(),getDirectories:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo),Rc=new Set(Qe.readDirSync(Zo).map(Af=>Af.path));for(const Af of en.getChildDirectoriesOfDirectory(Zo))Rc.add(Af);return Array.from(Rc)},realpath:eo=>Qe.realpathSync(Qe.getStandardizedAbsolutePath(eo))}}const Px=class Px{constructor(Qe){$u(this,yU);$u(this,vU);$u(this,LE,new Map);$u(this,cX,void 0);Bg(this,cX,Qe)}createOrUpdateSourceFile(Qe,en,Ar,eo){let Zo=ti(this,LE).get(Qe);return Zo==null?Zo=is(this,vU,Kit).call(this,Qe,en,Ar,ti(Px,lX),eo):Zo=is(this,vU,Kit).call(this,Qe,en,Ar,is(this,yU,dIt).call(this,Zo),eo),Zo}removeSourceFile(Qe){ti(this,LE).delete(Qe)}acquireDocument(Qe,en,Ar,eo,Zo){const Rc=ti(this,cX).getStandardizedAbsolutePath(Qe);let Af=ti(this,LE).get(Rc);return(Af==null||this.getSourceFileVersion(Af)!==eo)&&(Af=is(this,vU,Kit).call(this,Rc,en,Ar,eo,Zo)),Af}acquireDocumentWithKey(Qe,en,Ar,eo,Zo,Rc,Af){return this.acquireDocument(Qe,Ar,Zo,Rc,Af)}updateDocument(Qe,en,Ar,eo,Zo){return this.acquireDocument(Qe,en,Ar,eo,Zo)}updateDocumentWithKey(Qe,en,Ar,eo,Zo,Rc,Af){return this.updateDocument(Qe,Ar,Zo,Rc,Af)}getKeyForCompilationSettings(Qe){return"defaultKey"}releaseDocument(Qe,en){}releaseDocumentWithKey(Qe,en){}reportStats(){throw new p.errors.NotImplementedError}getSourceFileVersion(Qe){return Qe.version||"0"}};LE=new WeakMap,cX=new WeakMap,lX=new WeakMap,yU=new WeakSet,dIt=function(Qe){return((parseInt(this.getSourceFileVersion(Qe),10)||0)+1).toString()},vU=new WeakSet,Kit=function(Qe,en,Ar,eo,Zo){const Rc=Qo(Qe,Ar,en.target,eo,!0,Zo);return ti(this,LE).set(Qe,Rc),Rc},$u(Px,lX,"0");let yl=Px;const _U={deno:(ds,Qe)=>{return{resolveModuleNames:(Ar,eo)=>{const Zo=Qe(),Rc=[];for(const Af of Ar.map(en)){const d1=sn.resolveModuleName(Af,eo,Zo,ds);d1.resolvedModule&&Rc.push(d1.resolvedModule)}return Rc}};function en(Ar){return Ar.slice(-3).toLowerCase()===".ts"?Ar.slice(0,-3):Ar}}};function N0(ds,Qe,en){if(en.value!=null)en.value=WD(en.value);else if(en.get!=null)en.get=WD(en.get);else throw new Error("Only put a Memoize decorator on a method or get accessor.")}const vz=new WeakMap;let ZS=0;function WD(ds){const Qe=ZS++;function en(...Ar){let eo=vz.get(this);eo==null&&(eo=new Map,vz.set(this,eo));let Zo=`__memoized_value_${Qe}`;arguments.length>0&&(Zo+="_"+JSON.stringify(Ar));let Rc;return eo.has(Zo)?Rc=eo.get(Zo):(Rc=ds.apply(this,Ar),eo.set(Zo,Rc)),Rc}return en}class Em{constructor(Qe){$u(this,TU);$u(this,bU,void 0);$u(this,KO,void 0);f1(this,"_settings");Bg(this,bU,Object.assign({},Qe)),this._settings=Qe}reset(){this._settings=Object.assign({},ti(this,bU)),is(this,TU,B1t).call(this)}get(){return Object.assign({},this._settings)}set(Qe){Object.assign(this._settings,Qe),is(this,TU,B1t).call(this)}onModified(Qe){ti(this,KO)==null&&Bg(this,KO,new Ms),ti(this,KO).subscribe(Qe)}}bU=new WeakMap,KO=new WeakMap,TU=new WeakSet,B1t=function(){ti(this,KO)!=null&&ti(this,KO).fire(void 0)};class ef extends Em{constructor(Qe={}){super(Qe)}set(Qe){super.set(Qe)}getEncoding(){return this._settings.charset||"utf-8"}}function T8(ds,Qe,en,Ar){var eo=arguments.length,Zo=eo<3?Qe:Ar===null?Ar=Object.getOwnPropertyDescriptor(Qe,en):Ar,Rc;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Zo=Reflect.decorate(ds,Qe,en,Ar);else for(var Af=ds.length-1;Af>=0;Af--)(Rc=ds[Af])&&(Zo=(eo<3?Rc(Zo):eo>3?Rc(Qe,en,Zo):Rc(Qe,en))||Zo);return eo>3&&Zo&&Object.defineProperty(Qe,en,Zo),Zo}typeof SuppressedError=="function"&&SuppressedError;function ET(ds,Qe,en,Ar,eo,Zo,Rc){const Af=ds.getCurrentDirectory(),d1=[],H_=Qe?"":"i",eS=dp(en,eo||[],Zo,Qe,Af),dv=eS.includeDirectoryPattern&&new RegExp(eS.includeDirectoryPattern,H_),Zh=eS.excludePattern&&new RegExp(eS.excludePattern,H_);return{files:Hg(en,Ar,eo||[],Zo,Qe,Af,Rc,uy=>{const tE=$p(uy),cf=ds.getStandardizedAbsolutePath(uy);return tE&&d1.push(cf),_Te(cf,ds)},uy=>ds.realpathSync(ds.getStandardizedAbsolutePath(uy)),uy=>ds.directoryExistsSync(ds.getStandardizedAbsolutePath(uy))),directories:d1};function $p(uy){return uy[uy.length-1]!=="/"&&(uy+="/"),(!dv||dv.test(uy))&&(!Zh||!Zh.test(uy))}}function _Te(ds,Qe){const en=[],Ar=[];try{const eo=Qe.readDirSync(ds);for(const Zo of eo)Zo.isFile?en.push(Zo.path):Zo.isDirectory&&Ar.push(Zo.path)}catch(eo){if(!Qp.isNotExistsError(eo))throw eo}return{files:en,directories:Ar}}function ik(ds,Qe){const en=[];return{useCaseSensitiveFileNames:!1,readDirectory:(Zo,Rc,Af,d1,H_)=>{const eS=ET(ds,!1,Zo,Rc,Af,d1,H_);return en.push(...eS.directories),eS.files},fileExists:Zo=>ds.fileExistsSync(ds.getStandardizedAbsolutePath(Zo)),readFile:Zo=>ds.readFileSync(ds.getStandardizedAbsolutePath(Zo),Qe.encoding),getDirectories:()=>[...en],clearDirectories:()=>en.length=0}}class bz{constructor(Qe,en,Ar){$u(this,SU);$u(this,Az,void 0);$u(this,XO,void 0);$u(this,ZT,void 0);$u(this,yN,void 0);$u(this,Cz,void 0);Bg(this,ZT,ik(Qe,{encoding:Ar})),Bg(this,yN,Qe.getStandardizedAbsolutePath(en)),Bg(this,Cz,Qp.getDirPath(ti(this,yN))),Bg(this,XO,Qe),Bg(this,Az,Ar)}getCompilerOptions(){return this._parseJsonConfigFileContent().options}getErrors(){return this._parseJsonConfigFileContent().errors||[]}getPaths(Qe){const en=new Set,Ar=ti(this,XO),eo=new Set;Qe=Qe??this.getCompilerOptions();const Zo=this._parseJsonConfigFileContent();for(let Rc of Zo.directories){const Af=Ar.getStandardizedAbsolutePath(Rc);Ar.directoryExistsSync(Af)&&eo.add(Af)}for(let Rc of Zo.fileNames){const Af=Ar.getStandardizedAbsolutePath(Rc),d1=Qp.getDirPath(Af);Ar.fileExistsSync(Af)&&(eo.add(d1),en.add(Af))}return{filePaths:Array.from(en.values()),directoryPaths:Array.from(eo.values())}}_parseJsonConfigFileContent(){return ti(this,ZT).clearDirectories(),{...sn.parseJsonConfigFileContent(is(this,SU,pIt).call(this),ti(this,ZT),ti(this,Cz),void 0,ti(this,yN)),directories:ti(this,ZT).getDirectories()}}}Az=new WeakMap,XO=new WeakMap,ZT=new WeakMap,yN=new WeakMap,Cz=new WeakMap,SU=new WeakSet,pIt=function(){const Qe=ti(this,XO).readFileSync(ti(this,yN),ti(this,Az)),en=sn.parseConfigFileTextToJson(ti(this,yN),Qe);if(en.error!=null)throw new Error(en.error.messageText.toString());return en.config},T8([N0],bz.prototype,"getPaths",null),T8([N0],bz.prototype,"_parseJsonConfigFileContent",null);function oc(ds,Qe={}){const en=new Dl({fileSystem:Qe.fileSystem||new yz,skipLoadingLibFiles:!1,libFolderPath:void 0}),Ar=new bz(en,en.getStandardizedAbsolutePath(ds),Qe.encoding||"utf-8");return{options:Ar.getCompilerOptions(),errors:Ar.getErrors()}}Object.defineProperty(p,"DiagnosticCategory",{enumerable:!0,get:function(){return g.DiagnosticCategory}}),Object.defineProperty(p,"EmitHint",{enumerable:!0,get:function(){return g.EmitHint}}),Object.defineProperty(p,"LanguageVariant",{enumerable:!0,get:function(){return g.LanguageVariant}}),Object.defineProperty(p,"ModuleKind",{enumerable:!0,get:function(){return g.ModuleKind}}),Object.defineProperty(p,"ModuleResolutionKind",{enumerable:!0,get:function(){return g.ModuleResolutionKind}}),Object.defineProperty(p,"NewLineKind",{enumerable:!0,get:function(){return g.NewLineKind}}),Object.defineProperty(p,"NodeFlags",{enumerable:!0,get:function(){return g.NodeFlags}}),Object.defineProperty(p,"ObjectFlags",{enumerable:!0,get:function(){return g.ObjectFlags}}),Object.defineProperty(p,"ScriptKind",{enumerable:!0,get:function(){return g.ScriptKind}}),Object.defineProperty(p,"ScriptTarget",{enumerable:!0,get:function(){return g.ScriptTarget}}),Object.defineProperty(p,"SymbolFlags",{enumerable:!0,get:function(){return g.SymbolFlags}}),Object.defineProperty(p,"SyntaxKind",{enumerable:!0,get:function(){return g.SyntaxKind}}),Object.defineProperty(p,"TypeFlags",{enumerable:!0,get:function(){return g.TypeFlags}}),Object.defineProperty(p,"TypeFormatFlags",{enumerable:!0,get:function(){return g.TypeFormatFlags}}),p.ts=sn,p.ArrayUtils=ra,p.ComparerToStoredComparer=Zr,p.CompilerOptionsContainer=ef,p.DocumentRegistry=yl,p.EventContainer=Ms,p.FileUtils=Qp,p.InMemoryFileSystemHost=fN,p.IterableUtils=cs,p.KeyValueCache=ui,p.LocaleStringComparer=Zi,p.Memoize=N0,p.ObjectUtils=sf,p.PropertyComparer=jr,p.PropertyStoredComparer=lr,p.RealFileSystemHost=yz,p.ResolutionHosts=_U,p.SettingsContainer=Em,p.SortedKeyValueArray=kx,p.StringUtils=Ky,p.TransactionalFileSystem=Dl,p.TsConfigResolver=bz,p.WeakCache=fA,p.createDocumentCache=p2,p.createHosts=d0,p.createModuleResolutionHost=Yf,p.deepClone=Ho,p.getCompilerOptionsFromTsConfig=oc,p.getEmitModuleResolutionKind=gi,p.getFileMatcherPatterns=dp,p.getLibFiles=Zf,p.getLibFolderPath=Gc,p.getSyntaxKindName=vd,p.libFolderInMemoryPath=fa,p.matchFiles=Hg,p.matchGlobs=Dy,p.nameof=ni,p.runtime=th})(jDt);(function(p){var sn,tr,Nt,Ot,bo,Yr,Ns,ui,Zr,Zi,z1t,lr,ra,G1t;var g=jDt;function x(Ms,cs,ni,sf){var Hg=arguments.length,dp=Hg<3?cs:sf===null?sf=Object.getOwnPropertyDescriptor(cs,ni):sf,gi;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")dp=Reflect.decorate(Ms,cs,ni,sf);else for(var vd=Ms.length-1;vd>=0;vd--)(gi=Ms[vd])&&(dp=(Hg<3?gi(dp):Hg>3?gi(cs,ni,dp):gi(cs,ni))||dp);return Hg>3&&dp&&Object.defineProperty(cs,ni,dp),dp}typeof SuppressedError=="function"&&SuppressedError;class L{constructor(cs,ni){$u(this,sn,new Map);$u(this,tr,0);$u(this,Nt,void 0);$u(this,Ot,void 0);f1(this,"documentRegistry");this.documentRegistry=new g.DocumentRegistry(cs),Bg(this,Nt,cs),Bg(this,Ot,ni)}containsSourceFileAtPath(cs){return ti(this,sn).has(cs)}getSourceFilePaths(){return ti(this,sn).keys()}getSourceFiles(){return ti(this,sn).values()}getProjectVersion(){return ti(this,tr)}getSourceFileVersion(cs){return this.documentRegistry.getSourceFileVersion(cs)}getSourceFileFromCacheFromFilePath(cs){return ti(this,sn).get(cs)}async addOrGetSourceFileFromFilePath(cs,ni){let sf=ti(this,sn).get(cs);if(sf==null){const Hg=await ti(this,Nt).readFileIfExists(cs,ti(this,Ot).getEncoding());Hg!=null&&(sf=this.createSourceFileFromText(cs,Hg,ni))}return sf}addOrGetSourceFileFromFilePathSync(cs,ni){let sf=ti(this,sn).get(cs);if(sf==null){const Hg=ti(this,Nt).readFileIfExistsSync(cs,ti(this,Ot).getEncoding());Hg!=null&&(sf=this.createSourceFileFromText(cs,Hg,ni))}return sf}createSourceFileFromText(cs,ni,sf){cs=ti(this,Nt).getStandardizedAbsolutePath(cs),g.StringUtils.hasBom(ni)&&(ni=g.StringUtils.stripBom(ni));const dp=this.documentRegistry.createOrUpdateSourceFile(cs,ti(this,Ot).get(),g.ts.ScriptSnapshot.fromString(ni),sf.scriptKind);return this.setSourceFile(dp),dp}setSourceFile(cs){const ni=ti(this,Nt).getStandardizedAbsolutePath(cs.fileName);cs.fileName=ni,this.documentRegistry.updateDocument(ni,ti(this,Ot).get(),g.ts.ScriptSnapshot.fromString(cs.text),this.getSourceFileVersion(cs),cs.scriptKind);const sf=g.FileUtils.getDirPath(ni);ti(this,Nt).directoryExistsSync(sf)||ti(this,Nt).queueMkdir(sf),ti(this,sn).set(ni,cs),D0t(this,tr)._++}removeSourceFile(cs){ti(this,sn).delete(cs)}containsDirectoryAtPath(cs){return ti(this,Nt).directoryExistsSync(cs)}getChildDirectoriesOfDirectory(cs){return ti(this,Nt).getDirectories(cs)}}sn=new WeakMap,tr=new WeakMap,Nt=new WeakMap,Ot=new WeakMap;async function H(Ms={}){const{project:cs,tsConfigResolver:ni}=ye(Ms);return ni!=null&&Ms.skipAddingFilesFromTsConfig!==!0&&(await ot(cs,ni,cs.compilerOptions.get()),Ms.skipFileDependencyResolution||cs.resolveSourceFileDependencies()),cs}function G(Ms={}){const{project:cs,tsConfigResolver:ni}=ye(Ms);return ni!=null&&Ms.skipAddingFilesFromTsConfig!==!0&&(At(cs,ni,cs.compilerOptions.get()),Ms.skipFileDependencyResolution||cs.resolveSourceFileDependencies()),cs}function ye(Ms){dp();const cs=gi(),ni=new g.TransactionalFileSystem({fileSystem:cs,libFolderPath:Ms.libFolderPath,skipLoadingLibFiles:Ms.skipLoadingLibFiles}),sf=Ms.tsConfigFilePath==null?void 0:new g.TsConfigResolver(ni,ni.getStandardizedAbsolutePath(Ms.tsConfigFilePath),vd());return{project:new Oe({fileSystem:cs,fileSystemWrapper:ni,tsConfigResolver:sf},Ms),tsConfigResolver:sf};function dp(){if(Ms.fileSystem!=null&&Ms.useInMemoryFileSystem)throw new g.errors.InvalidOperationError("Cannot provide a file system when specifying to use an in-memory file system.")}function gi(){return Ms.useInMemoryFileSystem?new g.InMemoryFileSystemHost:Ms.fileSystem??new g.RealFileSystemHost}function vd(){const g_="utf-8";return Ms.compilerOptions!=null&&Ms.compilerOptions.charset||g_}}class Oe{constructor(cs,ni){$u(this,Zi);$u(this,ra);$u(this,bo,void 0);$u(this,Yr,void 0);$u(this,Ns,void 0);$u(this,ui,void 0);$u(this,Zr,void 0);f1(this,"compilerOptions");f1(this,"fileSystem");$u(this,lr,void 0);const{tsConfigResolver:sf}=cs;this.fileSystem=cs.fileSystem,Bg(this,Yr,cs.fileSystemWrapper);const Hg=Vn();this.compilerOptions=new g.CompilerOptionsContainer,this.compilerOptions.set(Hg),Bg(this,bo,new L(ti(this,Yr),this.compilerOptions));const dp=ni.resolutionHost?ni.resolutionHost(this.getModuleResolutionHost(),()=>this.compilerOptions.get()):void 0,gi=` -`,{languageServiceHost:vd,compilerHost:g_}=g.createHosts({transactionalFileSystem:ti(this,Yr),sourceFileContainer:ti(this,bo),compilerOptions:this.compilerOptions,getNewLine:()=>gi,resolutionHost:dp||{},getProjectVersion:()=>ti(this,bo).getProjectVersion().toString(),isKnownTypesPackageName:ni.isKnownTypesPackageName,libFolderPath:ni.libFolderPath,skipLoadingLibFiles:ni.skipLoadingLibFiles});Bg(this,Ns,vd),Bg(this,ui,g_),Bg(this,Zr,(sf==null?void 0:sf.getErrors())??[]);function Vn(){return{...p_(),...ni.compilerOptions||{}}}function p_(){return sf==null?{}:sf.getCompilerOptions()}}async addSourceFileAtPath(cs,ni){const sf=await this.addSourceFileAtPathIfExists(cs,ni);if(sf==null)throw new g.errors.FileNotFoundError(ti(this,Yr).getStandardizedAbsolutePath(cs));return sf}addSourceFileAtPathSync(cs,ni){const sf=this.addSourceFileAtPathIfExistsSync(cs,ni);if(sf==null)throw new g.errors.FileNotFoundError(ti(this,Yr).getStandardizedAbsolutePath(cs));return sf}addSourceFileAtPathIfExists(cs,ni){return ti(this,bo).addOrGetSourceFileFromFilePath(ti(this,Yr).getStandardizedAbsolutePath(cs),{scriptKind:ni&&ni.scriptKind})}addSourceFileAtPathIfExistsSync(cs,ni){return ti(this,bo).addOrGetSourceFileFromFilePathSync(ti(this,Yr).getStandardizedAbsolutePath(cs),{scriptKind:ni&&ni.scriptKind})}async addSourceFilesByPaths(cs){typeof cs=="string"&&(cs=[cs]);const ni=[],sf=[];for(const Hg of await ti(this,Yr).glob(cs))ni.push(this.addSourceFileAtPathIfExists(Hg).then(dp=>{dp!=null&&sf.push(dp)}));return await Promise.all(ni),sf}addSourceFilesByPathsSync(cs){typeof cs=="string"&&(cs=[cs]);const ni=[];for(const sf of ti(this,Yr).globSync(cs)){const Hg=this.addSourceFileAtPathIfExistsSync(sf);Hg!=null&&ni.push(Hg)}return ni}addSourceFilesFromTsConfig(cs){const ni=is(this,Zi,z1t).call(this,cs);return ot(this,ni,ni.getCompilerOptions())}addSourceFilesFromTsConfigSync(cs){const ni=is(this,Zi,z1t).call(this,cs);return At(this,ni,ni.getCompilerOptions())}createSourceFile(cs,ni,sf){return ti(this,bo).createSourceFileFromText(ti(this,Yr).getStandardizedAbsolutePath(cs),ni||"",{scriptKind:sf&&sf.scriptKind})}updateSourceFile(cs,ni,sf){if(typeof cs=="string")return this.createSourceFile(cs,ni,sf);return Hg(cs),dp(cs),ti(this,bo).setSourceFile(cs);function Hg(gi){let vd=gi.version||"-1";const g_=parseInt(vd,10);isNaN(g_)?vd="0":vd=(g_+1).toString(),gi.version=vd}function dp(gi){gi.scriptSnapshot==null&&(gi.scriptSnapshot=g.ts.ScriptSnapshot.fromString(gi.text))}}removeSourceFile(cs){ti(this,bo).removeSourceFile(ti(this,Yr).getStandardizedAbsolutePath(typeof cs=="string"?cs:cs.fileName))}resolveSourceFileDependencies(){this.createProgram()}createProgram(cs){const ni=ti(this,lr),sf=g.ts.createProgram({rootNames:Array.from(ti(this,bo).getSourceFilePaths()),options:this.compilerOptions.get(),host:ti(this,ui),oldProgram:ni,configFileParsingDiagnostics:ti(this,Zr),...cs});return Bg(this,lr,sf),sf}getLanguageService(){return g.ts.createLanguageService(ti(this,Ns),ti(this,bo).documentRegistry)}getSourceFileOrThrow(cs){const ni=is(this,ra,G1t).call(this,cs);if(ni!=null)return ni;if(typeof cs=="string"){const sf=g.FileUtils.standardizeSlashes(cs);if(g.FileUtils.pathIsAbsolute(sf)||sf.indexOf("/")>=0){const Hg=ti(this,Yr).getStandardizedAbsolutePath(sf);throw new g.errors.InvalidOperationError(`Could not find source file in project at the provided path: ${Hg}`)}else throw new g.errors.InvalidOperationError(`Could not find source file in project with the provided file name: ${cs}`)}else throw new g.errors.InvalidOperationError("Could not find source file in project based on the provided condition.")}getSourceFile(cs){return is(this,ra,G1t).call(this,cs)}getSourceFiles(){return Array.from(ti(this,bo).getSourceFiles())}formatDiagnosticsWithColorAndContext(cs,ni={}){return g.ts.formatDiagnosticsWithColorAndContext(cs,{getCurrentDirectory:()=>ti(this,Yr).getCurrentDirectory(),getCanonicalFileName:sf=>sf,getNewLine:()=>ni.newLineChar||g.runtime.getEndOfLine()})}getModuleResolutionHost(){return g.createModuleResolutionHost({transactionalFileSystem:ti(this,Yr),getEncoding:()=>this.compilerOptions.getEncoding(),sourceFileContainer:ti(this,bo)})}}bo=new WeakMap,Yr=new WeakMap,Ns=new WeakMap,ui=new WeakMap,Zr=new WeakMap,Zi=new WeakSet,z1t=function(cs){const ni=ti(this,Yr).getStandardizedAbsolutePath(cs);return new g.TsConfigResolver(ti(this,Yr),ni,this.compilerOptions.getEncoding())},lr=new WeakMap,ra=new WeakSet,G1t=function(cs){const ni=Hg(ti(this,Yr));if(gi(ni))return ti(this,bo).getSourceFileFromCacheFromFilePath(ni);const sf=this.getSourceFiles();return dp(function*(){for(const vd of sf)ni(vd)&&(yield vd)}());function Hg(vd){if(cs instanceof Function)return cs;const g_=g.FileUtils.standardizeSlashes(cs);return g.FileUtils.pathIsAbsolute(g_)||g_.indexOf("/")>=0?vd.getStandardizedAbsolutePath(g_):Vn=>g.FileUtils.pathEndsWith(Vn.fileName,g_)}function dp(vd){let g_;for(const Vn of vd)(g_==null||g.FileUtils.getDirPath(Vn.fileName).lengthMs.addSourceFileAtPath(Hg).then(dp=>sf.push(dp)))),sf}function At(Ms,cs,ni){return cs.getPaths(ni).filePaths.map(sf=>Ms.addSourceFileAtPathSync(sf))}Object.defineProperty(p,"CompilerOptionsContainer",{enumerable:!0,get:function(){return g.CompilerOptionsContainer}}),Object.defineProperty(p,"InMemoryFileSystemHost",{enumerable:!0,get:function(){return g.InMemoryFileSystemHost}}),Object.defineProperty(p,"ResolutionHosts",{enumerable:!0,get:function(){return g.ResolutionHosts}}),Object.defineProperty(p,"SettingsContainer",{enumerable:!0,get:function(){return g.SettingsContainer}}),Object.defineProperty(p,"ts",{enumerable:!0,get:function(){return g.ts}}),p.Project=Oe,p.createProject=H,p.createProjectSync=G})(GDt);function mSt(p){const g=GDt.createProjectSync({useInMemoryFileSystem:!0});return g.createSourceFile("index.d.ts",p),g.createProgram()}const i4t="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",o4t="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@??@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function a4t(){const g=[...i4t].map(G=>(G.codePointAt(0)??0)-35),x=[...o4t].map(G=>(G.codePointAt(0)??0)-35),L=new Uint32Array(g),H=new Uint8Array(x);for(let G=1;G{let ye=L.length,Oe=0;for(;ye-Oe>1;){const ot=Math.floor((ye+Oe)/2),At=L[ot];if(G=0&&gmIt(p,0);function f4t(p,g){const x=l4t(p,g);return c4t(x)}function mIt(p,g){return(1<Ar.kind==="mkdir"&&Ar.dir===Qe),is(this,re,qit).call(this,en))},GD=new WeakSet,Sje=function(Qe){return ti(this,$O)!=null&&ti(this,$O).has(Qe)},Zw=new WeakSet,Eje=function(Qe){if(ti(this,$O)!=null)return ti(this,$O).get(Qe)},hN=new WeakSet,JK=function(Qe){if(is(this,GD,Sje).call(this,Qe))throw new p.errors.InvalidOperationError("This operation is not permitted on an in memory lib folder file.")};class sX{constructor(Qe){$u(this,J1,void 0);Qe.isCaseSensitive!=null&&!Qe.isCaseSensitive()&&Bg(this,J1,new Map)}getPath(Qe){if(ti(this,J1)==null)return Qe;const en=Qe.toLowerCase();let Ar=ti(this,J1).get(en);return Ar==null&&(Ar=Qe,ti(this,J1).set(en,Ar)),Ar}removePath(Qe){ti(this,J1)!=null&&ti(this,J1).delete(Qe.toLowerCase())}}J1=new WeakMap;function Yf(ds){const{transactionalFileSystem:Qe,sourceFileContainer:en,getEncoding:Ar}=ds;return{directoryExists:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo);return en.containsDirectoryAtPath(Zo)?!0:Qe.directoryExistsSync(Zo)},fileExists:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo);return en.containsSourceFileAtPath(Zo)?!0:Qe.fileExistsSync(Zo)},readFile:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo),Rc=en.getSourceFileFromCacheFromFilePath(Zo);if(Rc!=null)return Rc.getFullText();try{return Qe.readFileSync(Zo,Ar())}catch(Af){if(Qp.isNotExistsError(Af))return;throw Af}},getCurrentDirectory:()=>Qe.getCurrentDirectory(),getDirectories:eo=>{const Zo=Qe.getStandardizedAbsolutePath(eo),Rc=new Set(Qe.readDirSync(Zo).map(Af=>Af.path));for(const Af of en.getChildDirectoriesOfDirectory(Zo))Rc.add(Af);return Array.from(Rc)},realpath:eo=>Qe.realpathSync(Qe.getStandardizedAbsolutePath(eo))}}const Px=class Px{constructor(Qe){$u(this,yU);$u(this,vU);$u(this,LE,new Map);$u(this,cX,void 0);Bg(this,cX,Qe)}createOrUpdateSourceFile(Qe,en,Ar,eo){let Zo=ti(this,LE).get(Qe);return Zo==null?Zo=is(this,vU,Kit).call(this,Qe,en,Ar,ti(Px,lX),eo):Zo=is(this,vU,Kit).call(this,Qe,en,Ar,is(this,yU,_It).call(this,Zo),eo),Zo}removeSourceFile(Qe){ti(this,LE).delete(Qe)}acquireDocument(Qe,en,Ar,eo,Zo){const Rc=ti(this,cX).getStandardizedAbsolutePath(Qe);let Af=ti(this,LE).get(Rc);return(Af==null||this.getSourceFileVersion(Af)!==eo)&&(Af=is(this,vU,Kit).call(this,Rc,en,Ar,eo,Zo)),Af}acquireDocumentWithKey(Qe,en,Ar,eo,Zo,Rc,Af){return this.acquireDocument(Qe,Ar,Zo,Rc,Af)}updateDocument(Qe,en,Ar,eo,Zo){return this.acquireDocument(Qe,en,Ar,eo,Zo)}updateDocumentWithKey(Qe,en,Ar,eo,Zo,Rc,Af){return this.updateDocument(Qe,Ar,Zo,Rc,Af)}getKeyForCompilationSettings(Qe){return"defaultKey"}releaseDocument(Qe,en){}releaseDocumentWithKey(Qe,en){}reportStats(){throw new p.errors.NotImplementedError}getSourceFileVersion(Qe){return Qe.version||"0"}};LE=new WeakMap,cX=new WeakMap,lX=new WeakMap,yU=new WeakSet,_It=function(Qe){return((parseInt(this.getSourceFileVersion(Qe),10)||0)+1).toString()},vU=new WeakSet,Kit=function(Qe,en,Ar,eo,Zo){const Rc=Qo(Qe,Ar,en.target,eo,!0,Zo);return ti(this,LE).set(Qe,Rc),Rc},$u(Px,lX,"0");let yl=Px;const _U={deno:(ds,Qe)=>{return{resolveModuleNames:(Ar,eo)=>{const Zo=Qe(),Rc=[];for(const Af of Ar.map(en)){const d1=sn.resolveModuleName(Af,eo,Zo,ds);d1.resolvedModule&&Rc.push(d1.resolvedModule)}return Rc}};function en(Ar){return Ar.slice(-3).toLowerCase()===".ts"?Ar.slice(0,-3):Ar}}};function N0(ds,Qe,en){if(en.value!=null)en.value=WD(en.value);else if(en.get!=null)en.get=WD(en.get);else throw new Error("Only put a Memoize decorator on a method or get accessor.")}const yz=new WeakMap;let ZS=0;function WD(ds){const Qe=ZS++;function en(...Ar){let eo=yz.get(this);eo==null&&(eo=new Map,yz.set(this,eo));let Zo=`__memoized_value_${Qe}`;arguments.length>0&&(Zo+="_"+JSON.stringify(Ar));let Rc;return eo.has(Zo)?Rc=eo.get(Zo):(Rc=ds.apply(this,Ar),eo.set(Zo,Rc)),Rc}return en}class Em{constructor(Qe){$u(this,TU);$u(this,bU,void 0);$u(this,KO,void 0);f1(this,"_settings");Bg(this,bU,Object.assign({},Qe)),this._settings=Qe}reset(){this._settings=Object.assign({},ti(this,bU)),is(this,TU,W1t).call(this)}get(){return Object.assign({},this._settings)}set(Qe){Object.assign(this._settings,Qe),is(this,TU,W1t).call(this)}onModified(Qe){ti(this,KO)==null&&Bg(this,KO,new Ms),ti(this,KO).subscribe(Qe)}}bU=new WeakMap,KO=new WeakMap,TU=new WeakSet,W1t=function(){ti(this,KO)!=null&&ti(this,KO).fire(void 0)};class ef extends Em{constructor(Qe={}){super(Qe)}set(Qe){super.set(Qe)}getEncoding(){return this._settings.charset||"utf-8"}}function T8(ds,Qe,en,Ar){var eo=arguments.length,Zo=eo<3?Qe:Ar===null?Ar=Object.getOwnPropertyDescriptor(Qe,en):Ar,Rc;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Zo=Reflect.decorate(ds,Qe,en,Ar);else for(var Af=ds.length-1;Af>=0;Af--)(Rc=ds[Af])&&(Zo=(eo<3?Rc(Zo):eo>3?Rc(Qe,en,Zo):Rc(Qe,en))||Zo);return eo>3&&Zo&&Object.defineProperty(Qe,en,Zo),Zo}typeof SuppressedError=="function"&&SuppressedError;function ET(ds,Qe,en,Ar,eo,Zo,Rc){const Af=ds.getCurrentDirectory(),d1=[],H_=Qe?"":"i",eS=dp(en,eo||[],Zo,Qe,Af),dv=eS.includeDirectoryPattern&&new RegExp(eS.includeDirectoryPattern,H_),Zh=eS.excludePattern&&new RegExp(eS.excludePattern,H_);return{files:Hg(en,Ar,eo||[],Zo,Qe,Af,Rc,ly=>{const tE=$p(ly),cf=ds.getStandardizedAbsolutePath(ly);return tE&&d1.push(cf),_Te(cf,ds)},ly=>ds.realpathSync(ds.getStandardizedAbsolutePath(ly)),ly=>ds.directoryExistsSync(ds.getStandardizedAbsolutePath(ly))),directories:d1};function $p(ly){return ly[ly.length-1]!=="/"&&(ly+="/"),(!dv||dv.test(ly))&&(!Zh||!Zh.test(ly))}}function _Te(ds,Qe){const en=[],Ar=[];try{const eo=Qe.readDirSync(ds);for(const Zo of eo)Zo.isFile?en.push(Zo.path):Zo.isDirectory&&Ar.push(Zo.path)}catch(eo){if(!Qp.isNotExistsError(eo))throw eo}return{files:en,directories:Ar}}function ik(ds,Qe){const en=[];return{useCaseSensitiveFileNames:!1,readDirectory:(Zo,Rc,Af,d1,H_)=>{const eS=ET(ds,!1,Zo,Rc,Af,d1,H_);return en.push(...eS.directories),eS.files},fileExists:Zo=>ds.fileExistsSync(ds.getStandardizedAbsolutePath(Zo)),readFile:Zo=>ds.readFileSync(ds.getStandardizedAbsolutePath(Zo),Qe.encoding),getDirectories:()=>[...en],clearDirectories:()=>en.length=0}}class vz{constructor(Qe,en,Ar){$u(this,SU);$u(this,xz,void 0);$u(this,XO,void 0);$u(this,ZT,void 0);$u(this,yN,void 0);$u(this,Az,void 0);Bg(this,ZT,ik(Qe,{encoding:Ar})),Bg(this,yN,Qe.getStandardizedAbsolutePath(en)),Bg(this,Az,Qp.getDirPath(ti(this,yN))),Bg(this,XO,Qe),Bg(this,xz,Ar)}getCompilerOptions(){return this._parseJsonConfigFileContent().options}getErrors(){return this._parseJsonConfigFileContent().errors||[]}getPaths(Qe){const en=new Set,Ar=ti(this,XO),eo=new Set;Qe=Qe??this.getCompilerOptions();const Zo=this._parseJsonConfigFileContent();for(let Rc of Zo.directories){const Af=Ar.getStandardizedAbsolutePath(Rc);Ar.directoryExistsSync(Af)&&eo.add(Af)}for(let Rc of Zo.fileNames){const Af=Ar.getStandardizedAbsolutePath(Rc),d1=Qp.getDirPath(Af);Ar.fileExistsSync(Af)&&(eo.add(d1),en.add(Af))}return{filePaths:Array.from(en.values()),directoryPaths:Array.from(eo.values())}}_parseJsonConfigFileContent(){return ti(this,ZT).clearDirectories(),{...sn.parseJsonConfigFileContent(is(this,SU,dIt).call(this),ti(this,ZT),ti(this,Az),void 0,ti(this,yN)),directories:ti(this,ZT).getDirectories()}}}xz=new WeakMap,XO=new WeakMap,ZT=new WeakMap,yN=new WeakMap,Az=new WeakMap,SU=new WeakSet,dIt=function(){const Qe=ti(this,XO).readFileSync(ti(this,yN),ti(this,xz)),en=sn.parseConfigFileTextToJson(ti(this,yN),Qe);if(en.error!=null)throw new Error(en.error.messageText.toString());return en.config},T8([N0],vz.prototype,"getPaths",null),T8([N0],vz.prototype,"_parseJsonConfigFileContent",null);function oc(ds,Qe={}){const en=new Dl({fileSystem:Qe.fileSystem||new hz,skipLoadingLibFiles:!1,libFolderPath:void 0}),Ar=new vz(en,en.getStandardizedAbsolutePath(ds),Qe.encoding||"utf-8");return{options:Ar.getCompilerOptions(),errors:Ar.getErrors()}}Object.defineProperty(p,"DiagnosticCategory",{enumerable:!0,get:function(){return g.DiagnosticCategory}}),Object.defineProperty(p,"EmitHint",{enumerable:!0,get:function(){return g.EmitHint}}),Object.defineProperty(p,"LanguageVariant",{enumerable:!0,get:function(){return g.LanguageVariant}}),Object.defineProperty(p,"ModuleKind",{enumerable:!0,get:function(){return g.ModuleKind}}),Object.defineProperty(p,"ModuleResolutionKind",{enumerable:!0,get:function(){return g.ModuleResolutionKind}}),Object.defineProperty(p,"NewLineKind",{enumerable:!0,get:function(){return g.NewLineKind}}),Object.defineProperty(p,"NodeFlags",{enumerable:!0,get:function(){return g.NodeFlags}}),Object.defineProperty(p,"ObjectFlags",{enumerable:!0,get:function(){return g.ObjectFlags}}),Object.defineProperty(p,"ScriptKind",{enumerable:!0,get:function(){return g.ScriptKind}}),Object.defineProperty(p,"ScriptTarget",{enumerable:!0,get:function(){return g.ScriptTarget}}),Object.defineProperty(p,"SymbolFlags",{enumerable:!0,get:function(){return g.SymbolFlags}}),Object.defineProperty(p,"SyntaxKind",{enumerable:!0,get:function(){return g.SyntaxKind}}),Object.defineProperty(p,"TypeFlags",{enumerable:!0,get:function(){return g.TypeFlags}}),Object.defineProperty(p,"TypeFormatFlags",{enumerable:!0,get:function(){return g.TypeFormatFlags}}),p.ts=sn,p.ArrayUtils=ra,p.ComparerToStoredComparer=Zr,p.CompilerOptionsContainer=ef,p.DocumentRegistry=yl,p.EventContainer=Ms,p.FileUtils=Qp,p.InMemoryFileSystemHost=fN,p.IterableUtils=cs,p.KeyValueCache=ui,p.LocaleStringComparer=Zi,p.Memoize=N0,p.ObjectUtils=sf,p.PropertyComparer=jr,p.PropertyStoredComparer=lr,p.RealFileSystemHost=hz,p.ResolutionHosts=_U,p.SettingsContainer=Em,p.SortedKeyValueArray=kx,p.StringUtils=Ky,p.TransactionalFileSystem=Dl,p.TsConfigResolver=vz,p.WeakCache=fA,p.createDocumentCache=p2,p.createHosts=d0,p.createModuleResolutionHost=Yf,p.deepClone=Ho,p.getCompilerOptionsFromTsConfig=oc,p.getEmitModuleResolutionKind=gi,p.getFileMatcherPatterns=dp,p.getLibFiles=Zf,p.getLibFolderPath=Gc,p.getSyntaxKindName=vd,p.libFolderInMemoryPath=fa,p.matchFiles=Hg,p.matchGlobs=Dy,p.nameof=ni,p.runtime=th})(GDt);(function(p){var sn,tr,Nt,Ot,bo,Yr,Ns,ui,Zr,Zi,B1t,lr,ra,z1t;var g=GDt;function x(Ms,cs,ni,sf){var Hg=arguments.length,dp=Hg<3?cs:sf===null?sf=Object.getOwnPropertyDescriptor(cs,ni):sf,gi;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")dp=Reflect.decorate(Ms,cs,ni,sf);else for(var vd=Ms.length-1;vd>=0;vd--)(gi=Ms[vd])&&(dp=(Hg<3?gi(dp):Hg>3?gi(cs,ni,dp):gi(cs,ni))||dp);return Hg>3&&dp&&Object.defineProperty(cs,ni,dp),dp}typeof SuppressedError=="function"&&SuppressedError;class L{constructor(cs,ni){$u(this,sn,new Map);$u(this,tr,0);$u(this,Nt,void 0);$u(this,Ot,void 0);f1(this,"documentRegistry");this.documentRegistry=new g.DocumentRegistry(cs),Bg(this,Nt,cs),Bg(this,Ot,ni)}containsSourceFileAtPath(cs){return ti(this,sn).has(cs)}getSourceFilePaths(){return ti(this,sn).keys()}getSourceFiles(){return ti(this,sn).values()}getProjectVersion(){return ti(this,tr)}getSourceFileVersion(cs){return this.documentRegistry.getSourceFileVersion(cs)}getSourceFileFromCacheFromFilePath(cs){return ti(this,sn).get(cs)}async addOrGetSourceFileFromFilePath(cs,ni){let sf=ti(this,sn).get(cs);if(sf==null){const Hg=await ti(this,Nt).readFileIfExists(cs,ti(this,Ot).getEncoding());Hg!=null&&(sf=this.createSourceFileFromText(cs,Hg,ni))}return sf}addOrGetSourceFileFromFilePathSync(cs,ni){let sf=ti(this,sn).get(cs);if(sf==null){const Hg=ti(this,Nt).readFileIfExistsSync(cs,ti(this,Ot).getEncoding());Hg!=null&&(sf=this.createSourceFileFromText(cs,Hg,ni))}return sf}createSourceFileFromText(cs,ni,sf){cs=ti(this,Nt).getStandardizedAbsolutePath(cs),g.StringUtils.hasBom(ni)&&(ni=g.StringUtils.stripBom(ni));const dp=this.documentRegistry.createOrUpdateSourceFile(cs,ti(this,Ot).get(),g.ts.ScriptSnapshot.fromString(ni),sf.scriptKind);return this.setSourceFile(dp),dp}setSourceFile(cs){const ni=ti(this,Nt).getStandardizedAbsolutePath(cs.fileName);cs.fileName=ni,this.documentRegistry.updateDocument(ni,ti(this,Ot).get(),g.ts.ScriptSnapshot.fromString(cs.text),this.getSourceFileVersion(cs),cs.scriptKind);const sf=g.FileUtils.getDirPath(ni);ti(this,Nt).directoryExistsSync(sf)||ti(this,Nt).queueMkdir(sf),ti(this,sn).set(ni,cs),D0t(this,tr)._++}removeSourceFile(cs){ti(this,sn).delete(cs)}containsDirectoryAtPath(cs){return ti(this,Nt).directoryExistsSync(cs)}getChildDirectoriesOfDirectory(cs){return ti(this,Nt).getDirectories(cs)}}sn=new WeakMap,tr=new WeakMap,Nt=new WeakMap,Ot=new WeakMap;async function H(Ms={}){const{project:cs,tsConfigResolver:ni}=ye(Ms);return ni!=null&&Ms.skipAddingFilesFromTsConfig!==!0&&(await ot(cs,ni,cs.compilerOptions.get()),Ms.skipFileDependencyResolution||cs.resolveSourceFileDependencies()),cs}function G(Ms={}){const{project:cs,tsConfigResolver:ni}=ye(Ms);return ni!=null&&Ms.skipAddingFilesFromTsConfig!==!0&&(At(cs,ni,cs.compilerOptions.get()),Ms.skipFileDependencyResolution||cs.resolveSourceFileDependencies()),cs}function ye(Ms){dp();const cs=gi(),ni=new g.TransactionalFileSystem({fileSystem:cs,libFolderPath:Ms.libFolderPath,skipLoadingLibFiles:Ms.skipLoadingLibFiles}),sf=Ms.tsConfigFilePath==null?void 0:new g.TsConfigResolver(ni,ni.getStandardizedAbsolutePath(Ms.tsConfigFilePath),vd());return{project:new Oe({fileSystem:cs,fileSystemWrapper:ni,tsConfigResolver:sf},Ms),tsConfigResolver:sf};function dp(){if(Ms.fileSystem!=null&&Ms.useInMemoryFileSystem)throw new g.errors.InvalidOperationError("Cannot provide a file system when specifying to use an in-memory file system.")}function gi(){return Ms.useInMemoryFileSystem?new g.InMemoryFileSystemHost:Ms.fileSystem??new g.RealFileSystemHost}function vd(){const g_="utf-8";return Ms.compilerOptions!=null&&Ms.compilerOptions.charset||g_}}class Oe{constructor(cs,ni){$u(this,Zi);$u(this,ra);$u(this,bo,void 0);$u(this,Yr,void 0);$u(this,Ns,void 0);$u(this,ui,void 0);$u(this,Zr,void 0);f1(this,"compilerOptions");f1(this,"fileSystem");$u(this,lr,void 0);const{tsConfigResolver:sf}=cs;this.fileSystem=cs.fileSystem,Bg(this,Yr,cs.fileSystemWrapper);const Hg=Vn();this.compilerOptions=new g.CompilerOptionsContainer,this.compilerOptions.set(Hg),Bg(this,bo,new L(ti(this,Yr),this.compilerOptions));const dp=ni.resolutionHost?ni.resolutionHost(this.getModuleResolutionHost(),()=>this.compilerOptions.get()):void 0,gi=` +`,{languageServiceHost:vd,compilerHost:g_}=g.createHosts({transactionalFileSystem:ti(this,Yr),sourceFileContainer:ti(this,bo),compilerOptions:this.compilerOptions,getNewLine:()=>gi,resolutionHost:dp||{},getProjectVersion:()=>ti(this,bo).getProjectVersion().toString(),isKnownTypesPackageName:ni.isKnownTypesPackageName,libFolderPath:ni.libFolderPath,skipLoadingLibFiles:ni.skipLoadingLibFiles});Bg(this,Ns,vd),Bg(this,ui,g_),Bg(this,Zr,(sf==null?void 0:sf.getErrors())??[]);function Vn(){return{...p_(),...ni.compilerOptions||{}}}function p_(){return sf==null?{}:sf.getCompilerOptions()}}async addSourceFileAtPath(cs,ni){const sf=await this.addSourceFileAtPathIfExists(cs,ni);if(sf==null)throw new g.errors.FileNotFoundError(ti(this,Yr).getStandardizedAbsolutePath(cs));return sf}addSourceFileAtPathSync(cs,ni){const sf=this.addSourceFileAtPathIfExistsSync(cs,ni);if(sf==null)throw new g.errors.FileNotFoundError(ti(this,Yr).getStandardizedAbsolutePath(cs));return sf}addSourceFileAtPathIfExists(cs,ni){return ti(this,bo).addOrGetSourceFileFromFilePath(ti(this,Yr).getStandardizedAbsolutePath(cs),{scriptKind:ni&&ni.scriptKind})}addSourceFileAtPathIfExistsSync(cs,ni){return ti(this,bo).addOrGetSourceFileFromFilePathSync(ti(this,Yr).getStandardizedAbsolutePath(cs),{scriptKind:ni&&ni.scriptKind})}async addSourceFilesByPaths(cs){typeof cs=="string"&&(cs=[cs]);const ni=[],sf=[];for(const Hg of await ti(this,Yr).glob(cs))ni.push(this.addSourceFileAtPathIfExists(Hg).then(dp=>{dp!=null&&sf.push(dp)}));return await Promise.all(ni),sf}addSourceFilesByPathsSync(cs){typeof cs=="string"&&(cs=[cs]);const ni=[];for(const sf of ti(this,Yr).globSync(cs)){const Hg=this.addSourceFileAtPathIfExistsSync(sf);Hg!=null&&ni.push(Hg)}return ni}addSourceFilesFromTsConfig(cs){const ni=is(this,Zi,B1t).call(this,cs);return ot(this,ni,ni.getCompilerOptions())}addSourceFilesFromTsConfigSync(cs){const ni=is(this,Zi,B1t).call(this,cs);return At(this,ni,ni.getCompilerOptions())}createSourceFile(cs,ni,sf){return ti(this,bo).createSourceFileFromText(ti(this,Yr).getStandardizedAbsolutePath(cs),ni||"",{scriptKind:sf&&sf.scriptKind})}updateSourceFile(cs,ni,sf){if(typeof cs=="string")return this.createSourceFile(cs,ni,sf);return Hg(cs),dp(cs),ti(this,bo).setSourceFile(cs);function Hg(gi){let vd=gi.version||"-1";const g_=parseInt(vd,10);isNaN(g_)?vd="0":vd=(g_+1).toString(),gi.version=vd}function dp(gi){gi.scriptSnapshot==null&&(gi.scriptSnapshot=g.ts.ScriptSnapshot.fromString(gi.text))}}removeSourceFile(cs){ti(this,bo).removeSourceFile(ti(this,Yr).getStandardizedAbsolutePath(typeof cs=="string"?cs:cs.fileName))}resolveSourceFileDependencies(){this.createProgram()}createProgram(cs){const ni=ti(this,lr),sf=g.ts.createProgram({rootNames:Array.from(ti(this,bo).getSourceFilePaths()),options:this.compilerOptions.get(),host:ti(this,ui),oldProgram:ni,configFileParsingDiagnostics:ti(this,Zr),...cs});return Bg(this,lr,sf),sf}getLanguageService(){return g.ts.createLanguageService(ti(this,Ns),ti(this,bo).documentRegistry)}getSourceFileOrThrow(cs){const ni=is(this,ra,z1t).call(this,cs);if(ni!=null)return ni;if(typeof cs=="string"){const sf=g.FileUtils.standardizeSlashes(cs);if(g.FileUtils.pathIsAbsolute(sf)||sf.indexOf("/")>=0){const Hg=ti(this,Yr).getStandardizedAbsolutePath(sf);throw new g.errors.InvalidOperationError(`Could not find source file in project at the provided path: ${Hg}`)}else throw new g.errors.InvalidOperationError(`Could not find source file in project with the provided file name: ${cs}`)}else throw new g.errors.InvalidOperationError("Could not find source file in project based on the provided condition.")}getSourceFile(cs){return is(this,ra,z1t).call(this,cs)}getSourceFiles(){return Array.from(ti(this,bo).getSourceFiles())}formatDiagnosticsWithColorAndContext(cs,ni={}){return g.ts.formatDiagnosticsWithColorAndContext(cs,{getCurrentDirectory:()=>ti(this,Yr).getCurrentDirectory(),getCanonicalFileName:sf=>sf,getNewLine:()=>ni.newLineChar||g.runtime.getEndOfLine()})}getModuleResolutionHost(){return g.createModuleResolutionHost({transactionalFileSystem:ti(this,Yr),getEncoding:()=>this.compilerOptions.getEncoding(),sourceFileContainer:ti(this,bo)})}}bo=new WeakMap,Yr=new WeakMap,Ns=new WeakMap,ui=new WeakMap,Zr=new WeakMap,Zi=new WeakSet,B1t=function(cs){const ni=ti(this,Yr).getStandardizedAbsolutePath(cs);return new g.TsConfigResolver(ti(this,Yr),ni,this.compilerOptions.getEncoding())},lr=new WeakMap,ra=new WeakSet,z1t=function(cs){const ni=Hg(ti(this,Yr));if(gi(ni))return ti(this,bo).getSourceFileFromCacheFromFilePath(ni);const sf=this.getSourceFiles();return dp(function*(){for(const vd of sf)ni(vd)&&(yield vd)}());function Hg(vd){if(cs instanceof Function)return cs;const g_=g.FileUtils.standardizeSlashes(cs);return g.FileUtils.pathIsAbsolute(g_)||g_.indexOf("/")>=0?vd.getStandardizedAbsolutePath(g_):Vn=>g.FileUtils.pathEndsWith(Vn.fileName,g_)}function dp(vd){let g_;for(const Vn of vd)(g_==null||g.FileUtils.getDirPath(Vn.fileName).lengthMs.addSourceFileAtPath(Hg).then(dp=>sf.push(dp)))),sf}function At(Ms,cs,ni){return cs.getPaths(ni).filePaths.map(sf=>Ms.addSourceFileAtPathSync(sf))}Object.defineProperty(p,"CompilerOptionsContainer",{enumerable:!0,get:function(){return g.CompilerOptionsContainer}}),Object.defineProperty(p,"InMemoryFileSystemHost",{enumerable:!0,get:function(){return g.InMemoryFileSystemHost}}),Object.defineProperty(p,"ResolutionHosts",{enumerable:!0,get:function(){return g.ResolutionHosts}}),Object.defineProperty(p,"SettingsContainer",{enumerable:!0,get:function(){return g.SettingsContainer}}),Object.defineProperty(p,"ts",{enumerable:!0,get:function(){return g.ts}}),p.Project=Oe,p.createProject=H,p.createProjectSync=G})(zDt);function pSt(p){const g=zDt.createProjectSync({useInMemoryFileSystem:!0});return g.createSourceFile("index.d.ts",p),g.createProgram()}const i4t="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",o4t="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@??@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function a4t(){const g=[...i4t].map(G=>(G.codePointAt(0)??0)-35),x=[...o4t].map(G=>(G.codePointAt(0)??0)-35),L=new Uint32Array(g),H=new Uint8Array(x);for(let G=1;G{let ye=L.length,Oe=0;for(;ye-Oe>1;){const ot=Math.floor((ye+Oe)/2),At=L[ot];if(G=0&&gpIt(p,0);function f4t(p,g){const x=l4t(p,g);return c4t(x)}function pIt(p,g){return(1<{e:for(;;){const H=x,G=L;let ye,Oe,ot,At;switch(yd(G)?ye=0:Hp(G)===""?yd(Ay(G))?(ye=2,ot=Ay(G),At=Hp(G)):Hp(Ay(G))===""?(ye=1,Oe=Ay(Ay(G))):(ye=2,ot=Ay(G),At=Hp(G)):(ye=2,ot=Ay(G),At=Hp(G)),ye){case 0:return Uje(H);case 1:{x=H,L=Oe;continue e}default:{x=wD(At,H),L=ot;continue e}}}})(lc(),p)}function g4t(p){return Uje(oEt(jje,Uje(oEt(jje,p))))}class h4t extends ap{constructor(g,x){super(),this.Name=g,this.Content=x}}class y4t extends ap{constructor(g,x){super(),this.TypeName=g,this.Content=x}}class M1e extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Summary","Param","Returns","Remarks","DefaultValue","Example","TypeParam"]}}class oRe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Null"]}}class yIt extends ap{constructor(g,x){super(),this.Name=g,this.Value=x}}class dbt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Numeric","Unknown"]}}class vIt extends ap{constructor(g,x){super(),this.Name=g,this.Cases=x}}class fVe extends ap{constructor(g,x){super(),this.Attributes=g,this.Name=x}}class lTe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Named","Typed"]}}class cMe extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.Cases=L,this.IsOptional=H}}class Bot extends ap{constructor(g,x,L){super(),this.Name=g,this.IsRecursive=x,this.Types=L}}class QK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["ReadOnly","WriteOnly","ReadWrite"]}}class Bw extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Public","Private","Protected"]}}class Sm extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Text","EmitSelfInvoke","EmitSelf","Import","ImportAll","ImportDefault","Erase","AbstractClass","AllowNullLiteral","Obsolete","StringEnum","CompiledName","RequireQualifiedAccess","EmitConstructor","EmitMacroConstructor","EmitMacroInvoke","EmitIndexer","Global","ParamObject","ParamArray","Interface"]}}class tU extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.IsOptional=L,this.Type=H}}class m8 extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["NativeOnly","JavaScriptStaticProperty"]}}class SM extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At,sn,tr,Nt){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Parameters=G,this.Type=ye,this.IsOptional=Oe,this.IsStatic=ot,this.Accessor=At,this.Accessibility=sn,this.XmlDoc=tr,this.Body=Nt}}class v4t extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Parameters=G,this.Type=ye,this.IsOptional=Oe,this.Accessor=ot,this.Accessibility=At}}class zw extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Method","Property","StaticMember"]}}class tP extends ap{constructor(g,x,L,H,G,ye){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Members=G,this.Inheritance=ye}}class b4t extends ap{constructor(g,x){super(),this.Name=g,this.Type=x}}class T4t extends ap{constructor(g,x,L){super(),this.Parameters=g,this.Attributes=x,this.Accessibility=L}}class S4t extends ap{constructor(g,x,L,H,G,ye){super(),this.Attributes=g,this.Name=x,this.TypeParameters=L,this.PrimaryConstructor=H,this.SecondaryConstructors=G,this.ExplicitFields=ye}}class g_e extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class RC extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Unit","Number","Null"]}}class E4t extends ap{constructor(g,x,L){super(),this.Name=g,this.Constraint=x,this.Default=L}}class xje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["FSharpType","FSharpTypeParameter"]}}class zot extends ap{constructor(g,x,L,H,G){super(),this.Attributes=g,this.Name=x,this.XmlDoc=L,this.Type=H,this.TypeParameters=G}}class F1e extends ap{constructor(g,x,L,H){super(),this.Name=g,this.FullName=x,this.TypeArguments=L,this.Type=H}}class q2t extends ap{constructor(g,x){super(),this.Parameters=g,this.ReturnType=x}}class x4t extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.XmlDoc=L,this.TypeParameter=H}}class A4t extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class C4t extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["ReadonlyArray"]}}class D4t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.TypeParameters=x,this.Parameters=L,this.ReturnType=H}}class Ef extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Enum","Union","SingleErasedCaseUnion","Option","Module","Interface","Unsupported","Mapped","Primitive","TypeAlias","Discard","TypeReference","Tuple","TypeParameter","ResizeArray","ThisType","Function","Class","Object","JSApi","Delegate"]}}class I4t extends ap{constructor(g,x){super(),this.Name=g,this.Opens=x}}function k4t(p){const g=y_e(x=>{switch(x.Value.tag){case 2:case 1:case 3:case 4:return!1;default:return!0}},p.Cases);return y_e(x=>{switch(x.Value.tag){case 2:case 1:case 4:return!0;default:return!1}},p.Cases)?new dbt(1,[]):g?new dbt(0,[]):new dbt(2,[])}function P4t(p,g,x){return new E4t(p,g,x)}class N4t{constructor(){this.buffer=mwt(),this.indentationLevel=0,this.indentationText=" "}toString(){return wE(this.buffer).trim()+` -`}}function gSt(){return new N4t}function EM(p){p.indentationLevel=p.indentationLevel+1|0}function xM(p){p.indentationLevel=Tbt(p.indentationLevel-1,0)|0}function eh(p,g){aAt(p.buffer,vNt(p.indentationLevel,p.indentationText)+g)}function k_(p,g){aAt(p.buffer,g)}function vg(p){gwt(p.buffer)}function bIt(p){return wE(p.buffer).trim()}function w4t(p){if(!tMe(p))return mIt(p,0)?p:void 0}function R4t(p){const g=p4t(d4t(_4t(p)));return w4t(g)!=null?`\`\`${g}\`\``:g}function _Ve(p){return eat(g=>g.tag===19,p)}function hSt(p){switch(p.tag){case 1:return'[]';case 3:return`[]`;case 6:return"[]";case 8:return"[]";case 10:{const g=p.fields[0]|0;return`[{throw new Error("Unsupported case rules: %A{caseRules}")})()})>]`}case 11:return`[]`;case 12:return"[]";case 13:return"[]";case 14:return`[]`;case 4:return`[]`;case 5:return`[]`;case 16:return"[]";case 17:return"[]";case 18:return"[]";case 2:return'[]';case 19:return"[]";case 20:return"[]";case 9:{const g=p.fields[0];return g==null?"[]":`[]`}case 7:return"[]";case 15:return`[]`;default:return`[<${p.fields[0]}>]`}}function Got(p,g){_z(g)>0&&(k_(p,gIt(">][<","; ",lA("",zf(hSt,g)))),k_(p," "))}function jot(p,g){_z(g)>0&&(eh(p,gIt(">][<","; ",lA("",zf(hSt,g)))),vg(p))}function XRe(p,g){SL(x=>{eh(p,hSt(x)),vg(p)},g)}function Q1e(p,g){const x=gSt();yd(g)||(k_(x,"<"),Mne((L,H)=>{L!==0&&k_(x,", "),H.tag===1?k_(x,`'${H.fields[0].Name}`):k_(x,`'T${L}`)},g),Mne((L,H)=>{const G=H.Constraint;if(G!=null){const ye=G;L===0?k_(x," when "):k_(x," and "),k_(x,`'${H.Name}`),k_(x," :> "),k_(x,XS(ye))}},FO(L=>L.Constraint!=null,EL(L=>{if(L.tag===1)return L.fields[0]},g))),k_(x,">"),k_(p,bIt(x)))}function uje(p,g){const x=gSt();return yd(g)||(k_(x,"<"),Mne((L,H)=>{L!==0&&k_(x,", "),H.tag===1?k_(x,`'${H.fields[0].Name}`):k_(x,XS(H.fields[0]))},g),k_(x,">")),`${p}${bIt(x)}`}function XS(p){switch(p.tag){case 7:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 2:return p.fields[0].Name;case 1:{const g=p.fields[0];return`${g.Name}<${lA(", ",zf(x=>x.tag===1?XS(x.fields[0]):x.fields[0].Name,g.Cases))}>${g.IsOptional?" option":""}`}case 15:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 12:return lA(" * ",zf(XS,p.fields[0]));case 16:{const g=p.fields[0];return yd(g.Parameters)?`(unit -> ${XS(g.ReturnType)})`:`(${lA(" -> ",zf(x=>`${XS(x.Type)}${x.IsOptional?" option":""}`,g.Parameters))} -> ${XS(g.ReturnType)})`}case 0:return p.fields[0].Name;case 8:switch(p.fields[0].tag){case 1:return"int";case 2:return"float";case 3:return"bool";case 4:return"unit";case 5:return"float";case 6:return"obj";default:return"string"}case 11:{const g=p.fields[0];return _z(g.TypeArguments)>0?`${g.Name}<${lA(", ",zf(XS,g.TypeArguments))}>`:g.Name}case 13:return`'${p.fields[0]}`;case 3:return XS(p.fields[0])+" option";case 14:return`ResizeArray<${XS(p.fields[0])}>`;case 19:return`ReadonlyArray<${XS(p.fields[0].fields[0])}>`;case 5:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 17:return p.fields[0].Name;case 9:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 20:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 4:case 6:case 10:return"obj";default:return"obj"}}function TIt(p,g){switch(g.tag){case 1:{eh(p,"private ");break}case 2:{eh(p,"protected ");break}default:eh(p,"")}}function M4t(p,g){switch(g.tag){case 1:{k_(p,"private ");break}case 2:{k_(p,"protected ");break}default:k_(p,"")}}function L4t(p){return aTt(/`(?[^`]*)`/gu,p,g=>`${g.groups&&g.groups.code||""}`)}function O4t(p){return aTt(/```(?\S*)(?[^`]+)```/gum,p,g=>{const x=g.groups&&g.groups.lang||"",L=g.groups&&g.groups.code||"";return tMe(x)?`${L}`:`${L}`})}function F4t(p){return aTt(/\{@link\s+(?[^\s}|]+)\s*((\|)?\s*(?[^}]+))?\}/gu,p,g=>{const x=(g.groups&&g.groups.link||"").trim(),L=g.groups&&g.groups.customText||"";return tMe(L)?`${x}`:bNt(`${L.trim()}" `)})}function W4t(p){return F4t(L4t(O4t(p)))}function tRe(p,g,x,L){const H=ye=>{tMe(ye)?eh(p,"///"):eh(p,`/// ${ye}`)},G=hIt(W4t(L));H(`<${yd(x)?g:`${g} ${lA(" ",zf(ye=>`${ye[0]}="${ye[1]}"`,x))}`}>`),vg(p),SL(ye=>{H(ye),vg(p)},G),H(``),vg(p)}function Vot(p,g){const x=rMe(H=>{switch(H.tag){case 2:case 1:case 3:case 6:case 5:return!1;default:return!0}},g),L=g4t(m4t(nTe(zf(H=>{switch(H.tag){case 0:return H.fields[0];case 4:return fu(["",H.fields[0],""]);default:throw new Error("This element should not be in the summary list")}},x[0]))));y_e(tMe,L)||tRe(p,"summary",lc(),lA(` -`,L)),SL(H=>{switch(H.tag){case 2:{tRe(p,"returns",lc(),H.fields[0]);break}case 1:{const G=H.fields[0];tRe(p,"param",_l(["name",G.Name]),G.Content);break}case 3:{tRe(p,"remarks",lc(),H.fields[0]);break}case 5:{tRe(p,"example",lc(),H.fields[0]);break}case 6:{const G=H.fields[0];tRe(p,"typeparam",_l(["name",G.TypeName]),G.Content);break}default:throw new Error("This element should have been processed in the summary")}},x[1])}function SIt(p,g){_z(g)===0?k_(p,"unit"):Mne((x,L)=>{x!==0&&k_(p," * "),Got(p,L.Attributes),L.IsOptional&&k_(p,"?"),k_(p,`${L.Name}: ${XS(L.Type)}`),_Ve(L.Attributes)&&k_(p," []")},g)}function B4t(p,g){XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),SL(x=>{eh(p,`inherit ${XS(x)}`),vg(p)},g.Inheritance),SL(x=>{switch(x.tag){case 1:{const L=x.fields[0];if(Vot(p,L.XmlDoc),XRe(p,L.Attributes),L.IsStatic){eh(p,"static member inline "),M4t(p,L.Accessibility),k_(p,`${L.Name}`);const H=()=>{EM(p),eh(p,`with get () : ${XS(L.Type)} =`),vg(p),EM(p),L.Body.tag===1?eh(p,`emitJsExpr () $$""" +`))}function m4t(p){return((x,L)=>{e:for(;;){const H=x,G=L;let ye,Oe,ot,At;switch(yd(G)?ye=0:Hp(G)===""?yd(xy(G))?(ye=2,ot=xy(G),At=Hp(G)):Hp(xy(G))===""?(ye=1,Oe=xy(xy(G))):(ye=2,ot=xy(G),At=Hp(G)):(ye=2,ot=xy(G),At=Hp(G)),ye){case 0:return Uje(H);case 1:{x=H,L=Oe;continue e}default:{x=wD(At,H),L=ot;continue e}}}})(lc(),p)}function g4t(p){return Uje(iEt(jje,Uje(iEt(jje,p))))}class h4t extends ap{constructor(g,x){super(),this.Name=g,this.Content=x}}class y4t extends ap{constructor(g,x){super(),this.TypeName=g,this.Content=x}}class M1e extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Summary","Param","Returns","Remarks","DefaultValue","Example","TypeParam"]}}class oRe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Null"]}}class hIt extends ap{constructor(g,x){super(),this.Name=g,this.Value=x}}class dbt extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Numeric","Unknown"]}}class yIt extends ap{constructor(g,x){super(),this.Name=g,this.Cases=x}}class fVe extends ap{constructor(g,x){super(),this.Attributes=g,this.Name=x}}class lTe extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Named","Typed"]}}class cMe extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.Cases=L,this.IsOptional=H}}class Bot extends ap{constructor(g,x,L){super(),this.Name=g,this.IsRecursive=x,this.Types=L}}class QK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["ReadOnly","WriteOnly","ReadWrite"]}}class Bw extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Public","Private","Protected"]}}class Sm extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Text","EmitSelfInvoke","EmitSelf","Import","ImportAll","ImportDefault","Erase","AbstractClass","AllowNullLiteral","Obsolete","StringEnum","CompiledName","RequireQualifiedAccess","EmitConstructor","EmitMacroConstructor","EmitMacroInvoke","EmitIndexer","Global","ParamObject","ParamArray","Interface"]}}class eU extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.IsOptional=L,this.Type=H}}class p8 extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["NativeOnly","JavaScriptStaticProperty"]}}class SM extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At,sn,tr,Nt){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Parameters=G,this.Type=ye,this.IsOptional=Oe,this.IsStatic=ot,this.Accessor=At,this.Accessibility=sn,this.XmlDoc=tr,this.Body=Nt}}class v4t extends ap{constructor(g,x,L,H,G,ye,Oe,ot,At){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Parameters=G,this.Type=ye,this.IsOptional=Oe,this.Accessor=ot,this.Accessibility=At}}class zw extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Method","Property","StaticMember"]}}class tP extends ap{constructor(g,x,L,H,G,ye){super(),this.Attributes=g,this.Name=x,this.OriginalName=L,this.TypeParameters=H,this.Members=G,this.Inheritance=ye}}class b4t extends ap{constructor(g,x){super(),this.Name=g,this.Type=x}}class T4t extends ap{constructor(g,x,L){super(),this.Parameters=g,this.Attributes=x,this.Accessibility=L}}class S4t extends ap{constructor(g,x,L,H,G,ye){super(),this.Attributes=g,this.Name=x,this.TypeParameters=L,this.PrimaryConstructor=H,this.SecondaryConstructors=G,this.ExplicitFields=ye}}class g_e extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class RC extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Unit","Number","Null"]}}class E4t extends ap{constructor(g,x,L){super(),this.Name=g,this.Constraint=x,this.Default=L}}class xje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["FSharpType","FSharpTypeParameter"]}}class zot extends ap{constructor(g,x,L,H,G){super(),this.Attributes=g,this.Name=x,this.XmlDoc=L,this.Type=H,this.TypeParameters=G}}class F1e extends ap{constructor(g,x,L,H){super(),this.Name=g,this.FullName=x,this.TypeArguments=L,this.Type=H}}class $2t extends ap{constructor(g,x){super(),this.Parameters=g,this.ReturnType=x}}class x4t extends ap{constructor(g,x,L,H){super(),this.Attributes=g,this.Name=x,this.XmlDoc=L,this.TypeParameter=H}}class A4t extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class C4t extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["ReadonlyArray"]}}class D4t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.TypeParameters=x,this.Parameters=L,this.ReturnType=H}}class Ef extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Enum","Union","SingleErasedCaseUnion","Option","Module","Interface","Unsupported","Mapped","Primitive","TypeAlias","Discard","TypeReference","Tuple","TypeParameter","ResizeArray","ThisType","Function","Class","Object","JSApi","Delegate"]}}class I4t extends ap{constructor(g,x){super(),this.Name=g,this.Opens=x}}function k4t(p){const g=y_e(x=>{switch(x.Value.tag){case 2:case 1:case 3:case 4:return!1;default:return!0}},p.Cases);return y_e(x=>{switch(x.Value.tag){case 2:case 1:case 4:return!0;default:return!1}},p.Cases)?new dbt(1,[]):g?new dbt(0,[]):new dbt(2,[])}function P4t(p,g,x){return new E4t(p,g,x)}class N4t{constructor(){this.buffer=mwt(),this.indentationLevel=0,this.indentationText=" "}toString(){return wE(this.buffer).trim()+` +`}}function mSt(){return new N4t}function EM(p){p.indentationLevel=p.indentationLevel+1|0}function xM(p){p.indentationLevel=Tbt(p.indentationLevel-1,0)|0}function eh(p,g){oAt(p.buffer,vNt(p.indentationLevel,p.indentationText)+g)}function k_(p,g){oAt(p.buffer,g)}function vg(p){gwt(p.buffer)}function vIt(p){return wE(p.buffer).trim()}function w4t(p){if(!tMe(p))return pIt(p,0)?p:void 0}function R4t(p){const g=p4t(d4t(_4t(p)));return w4t(g)!=null?`\`\`${g}\`\``:g}function _Ve(p){return eat(g=>g.tag===19,p)}function gSt(p){switch(p.tag){case 1:return'[]';case 3:return`[]`;case 6:return"[]";case 8:return"[]";case 10:{const g=p.fields[0]|0;return`[{throw new Error("Unsupported case rules: %A{caseRules}")})()})>]`}case 11:return`[]`;case 12:return"[]";case 13:return"[]";case 14:return`[]`;case 4:return`[]`;case 5:return`[]`;case 16:return"[]";case 17:return"[]";case 18:return"[]";case 2:return'[]';case 19:return"[]";case 20:return"[]";case 9:{const g=p.fields[0];return g==null?"[]":`[]`}case 7:return"[]";case 15:return`[]`;default:return`[<${p.fields[0]}>]`}}function Got(p,g){_z(g)>0&&(k_(p,mIt(">][<","; ",lA("",zf(gSt,g)))),k_(p," "))}function jot(p,g){_z(g)>0&&(eh(p,mIt(">][<","; ",lA("",zf(gSt,g)))),vg(p))}function XRe(p,g){TL(x=>{eh(p,gSt(x)),vg(p)},g)}function Q1e(p,g){const x=mSt();yd(g)||(k_(x,"<"),Mne((L,H)=>{L!==0&&k_(x,", "),H.tag===1?k_(x,`'${H.fields[0].Name}`):k_(x,`'T${L}`)},g),Mne((L,H)=>{const G=H.Constraint;if(G!=null){const ye=G;L===0?k_(x," when "):k_(x," and "),k_(x,`'${H.Name}`),k_(x," :> "),k_(x,XS(ye))}},FO(L=>L.Constraint!=null,SL(L=>{if(L.tag===1)return L.fields[0]},g))),k_(x,">"),k_(p,vIt(x)))}function uje(p,g){const x=mSt();return yd(g)||(k_(x,"<"),Mne((L,H)=>{L!==0&&k_(x,", "),H.tag===1?k_(x,`'${H.fields[0].Name}`):k_(x,XS(H.fields[0]))},g),k_(x,">")),`${p}${vIt(x)}`}function XS(p){switch(p.tag){case 7:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 2:return p.fields[0].Name;case 1:{const g=p.fields[0];return`${g.Name}<${lA(", ",zf(x=>x.tag===1?XS(x.fields[0]):x.fields[0].Name,g.Cases))}>${g.IsOptional?" option":""}`}case 15:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 12:return lA(" * ",zf(XS,p.fields[0]));case 16:{const g=p.fields[0];return yd(g.Parameters)?`(unit -> ${XS(g.ReturnType)})`:`(${lA(" -> ",zf(x=>`${XS(x.Type)}${x.IsOptional?" option":""}`,g.Parameters))} -> ${XS(g.ReturnType)})`}case 0:return p.fields[0].Name;case 8:switch(p.fields[0].tag){case 1:return"int";case 2:return"float";case 3:return"bool";case 4:return"unit";case 5:return"float";case 6:return"obj";default:return"string"}case 11:{const g=p.fields[0];return _z(g.TypeArguments)>0?`${g.Name}<${lA(", ",zf(XS,g.TypeArguments))}>`:g.Name}case 13:return`'${p.fields[0]}`;case 3:return XS(p.fields[0])+" option";case 14:return`ResizeArray<${XS(p.fields[0])}>`;case 19:return`ReadonlyArray<${XS(p.fields[0].fields[0])}>`;case 5:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 17:return p.fields[0].Name;case 9:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 20:{const g=p.fields[0];return uje(g.Name,g.TypeParameters)}case 4:case 6:case 10:return"obj";default:return"obj"}}function bIt(p,g){switch(g.tag){case 1:{eh(p,"private ");break}case 2:{eh(p,"protected ");break}default:eh(p,"")}}function M4t(p,g){switch(g.tag){case 1:{k_(p,"private ");break}case 2:{k_(p,"protected ");break}default:k_(p,"")}}function L4t(p){return oTt(/`(?[^`]*)`/gu,p,g=>`${g.groups&&g.groups.code||""}`)}function O4t(p){return oTt(/```(?\S*)(?[^`]+)```/gum,p,g=>{const x=g.groups&&g.groups.lang||"",L=g.groups&&g.groups.code||"";return tMe(x)?`${L}`:`${L}`})}function F4t(p){return oTt(/\{@link\s+(?[^\s}|]+)\s*((\|)?\s*(?[^}]+))?\}/gu,p,g=>{const x=(g.groups&&g.groups.link||"").trim(),L=g.groups&&g.groups.customText||"";return tMe(L)?`${x}`:bNt(`${L.trim()}" `)})}function W4t(p){return F4t(L4t(O4t(p)))}function tRe(p,g,x,L){const H=ye=>{tMe(ye)?eh(p,"///"):eh(p,`/// ${ye}`)},G=gIt(W4t(L));H(`<${yd(x)?g:`${g} ${lA(" ",zf(ye=>`${ye[0]}="${ye[1]}"`,x))}`}>`),vg(p),TL(ye=>{H(ye),vg(p)},G),H(``),vg(p)}function Vot(p,g){const x=rMe(H=>{switch(H.tag){case 2:case 1:case 3:case 6:case 5:return!1;default:return!0}},g),L=g4t(m4t(nTe(zf(H=>{switch(H.tag){case 0:return H.fields[0];case 4:return fu(["",H.fields[0],""]);default:throw new Error("This element should not be in the summary list")}},x[0]))));y_e(tMe,L)||tRe(p,"summary",lc(),lA(` +`,L)),TL(H=>{switch(H.tag){case 2:{tRe(p,"returns",lc(),H.fields[0]);break}case 1:{const G=H.fields[0];tRe(p,"param",_l(["name",G.Name]),G.Content);break}case 3:{tRe(p,"remarks",lc(),H.fields[0]);break}case 5:{tRe(p,"example",lc(),H.fields[0]);break}case 6:{const G=H.fields[0];tRe(p,"typeparam",_l(["name",G.TypeName]),G.Content);break}default:throw new Error("This element should have been processed in the summary")}},x[1])}function TIt(p,g){_z(g)===0?k_(p,"unit"):Mne((x,L)=>{x!==0&&k_(p," * "),Got(p,L.Attributes),L.IsOptional&&k_(p,"?"),k_(p,`${L.Name}: ${XS(L.Type)}`),_Ve(L.Attributes)&&k_(p," []")},g)}function B4t(p,g){XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),TL(x=>{eh(p,`inherit ${XS(x)}`),vg(p)},g.Inheritance),TL(x=>{switch(x.tag){case 1:{const L=x.fields[0];if(Vot(p,L.XmlDoc),XRe(p,L.Attributes),L.IsStatic){eh(p,"static member inline "),M4t(p,L.Accessibility),k_(p,`${L.Name}`);const H=()=>{EM(p),eh(p,`with get () : ${XS(L.Type)} =`),vg(p),EM(p),L.Body.tag===1?eh(p,`emitJsExpr () $$""" import { ${g.OriginalName} } from "REPLACE_ME_WITH_MODULE_NAME"; ${g.OriginalName}.${L.OriginalName}"""`):eh(p,"nativeOnly"),xM(p),xM(p)},G=Oe=>{EM(p),Oe?eh(p,"and "):eh(p,"with "),k_(p,`set (value: ${XS(L.Type)}) =`),vg(p),EM(p),L.Body.tag===1?eh(p,`emitJsExpr (value) $$""" import { ${g.OriginalName} } from "REPLACE_ME_WITH_MODULE_NAME"; -${g.OriginalName}.${L.OriginalName} = $0"""`):eh(p,"nativeOnly"),xM(p),xM(p)},ye=L.Accessor;if(ye!=null){const Oe=ye;switch(vg(p),Oe.tag){case 1:{G(!1);break}case 2:{H(),vg(p),G(!0);break}default:H()}}else k_(p,`: ${XS(L.Type)}`),k_(p," = nativeOnly")}else eh(p,`abstract member ${L.Name}`),Mne((H,G)=>{H===0?k_(p,": "):k_(p," -> ");const ye=G.IsOptional?" option":"";k_(p,`${G.Name}: ${XS(G.Type)}${ye}`)},L.Parameters),_z(L.Parameters)>0?k_(p," -> "):k_(p,": "),k_(p,`${XS(L.Type)}`),L.IsOptional&&k_(p," option"),nat(H=>{k_(p,H)},TNt(gz(H=>{switch(H.tag){case 1:return" with set";case 2:return" with get, set";default:return" with get"}},L.Accessor)));vg(p);break}case 2:{const L=x.fields[0];jot(p,L.Attributes),eh(p,`static member inline ${L.Name} `),Q1e(p,L.TypeParameters),yd(L.Parameters)?(k_(p,"() : "),k_(p,XS(L.Type)),k_(p," ="),EM(p),vg(p),eh(p,`emitJsExpr () $$""" +${g.OriginalName}.${L.OriginalName} = $0"""`):eh(p,"nativeOnly"),xM(p),xM(p)},ye=L.Accessor;if(ye!=null){const Oe=ye;switch(vg(p),Oe.tag){case 1:{G(!1);break}case 2:{H(),vg(p),G(!0);break}default:H()}}else k_(p,`: ${XS(L.Type)}`),k_(p," = nativeOnly")}else eh(p,`abstract member ${L.Name}`),Mne((H,G)=>{H===0?k_(p,": "):k_(p," -> ");const ye=G.IsOptional?" option":"";k_(p,`${G.Name}: ${XS(G.Type)}${ye}`)},L.Parameters),_z(L.Parameters)>0?k_(p," -> "):k_(p,": "),k_(p,`${XS(L.Type)}`),L.IsOptional&&k_(p," option"),nat(H=>{k_(p,H)},TNt(uU(H=>{switch(H.tag){case 1:return" with set";case 2:return" with get, set";default:return" with get"}},L.Accessor)));vg(p);break}case 2:{const L=x.fields[0];jot(p,L.Attributes),eh(p,`static member inline ${L.Name} `),Q1e(p,L.TypeParameters),yd(L.Parameters)?(k_(p,"() : "),k_(p,XS(L.Type)),k_(p," ="),EM(p),vg(p),eh(p,`emitJsExpr () $$""" import { ${g.OriginalName} } from "REPLACE_ME_WITH_MODULE_NAME"; ${g.OriginalName}.${L.OriginalName}()"""`),vg(p),xM(p)):(k_(p,"("),Mne((H,G)=>{H!==0&&k_(p,", "),Got(p,G.Attributes),G.IsOptional&&k_(p,"?"),k_(p,`${G.Name}: ${XS(G.Type)}`),_Ve(G.Attributes)&&k_(p," []")},L.Parameters),k_(p,"): "),k_(p,XS(L.Type)),k_(p," ="),vg(p),EM(p),eh(p,`emitJsExpr (${lA(", ",zf(H=>H.Name,L.Parameters))}) $$""" import { ${g.OriginalName} } from "REPLACE_ME_WITH_MODULE_NAME"; -${g.OriginalName}.${L.OriginalName}(${lA(", ",nMe((H,G)=>`$${H}`,L.Parameters))})"""`),vg(p),xM(p));break}default:{const L=x.fields[0];Vot(p,L.XmlDoc),jot(p,L.Attributes),L.IsStatic?eh(p,"static "):eh(p,"abstract "),k_(p,`member ${L.Name}`),Q1e(p,L.TypeParameters),L.IsStatic?(k_(p," "),_z(L.Parameters)===0?k_(p,"()"):(k_(p,"("),Mne((H,G)=>{H!==0&&k_(p,", "),Got(p,G.Attributes),G.IsOptional&&k_(p,"?"),k_(p,`${G.Name}: ${XS(G.Type)}`),_Ve(G.Attributes)&&k_(p," []")},L.Parameters),k_(p,")"))):(k_(p,": "),SIt(p,L.Parameters)),L.IsStatic?k_(p," : "):k_(p," -> "),k_(p,XS(L.Type)),L.IsStatic&&k_(p," = nativeOnly"),vg(p)}}},g.Members),yd(g.Members)&&yd(g.Inheritance)&&(eh(p,"interface end"),vg(p)),xM(p)}function z4t(p,g){jot(p,g.Attributes),TIt(p,g.Accessibility),k_(p,"("),EM(p),Mne((x,L)=>{x!==0&&k_(p,","),vg(p),L.IsOptional?eh(p,"?"):eh(p,""),k_(p,`${L.Name}: ${XS(L.Type)}`),_Ve(L.Attributes)&&k_(p," []")},g.Parameters),xM(p),vg(p),eh(p,") ="),vg(p)}function G4t(p,g){XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),vg(p),EM(p),z4t(p,g.PrimaryConstructor),vg(p),yd(g.SecondaryConstructors)||SL(x=>{jot(p,x.Attributes),TIt(p,x.Accessibility),k_(p,"new ("),Mne((L,H)=>{L!==0&&k_(p,", "),H.IsOptional&&k_(p,"?"),k_(p,`${H.Name}: ${XS(H.Type)}`),_Ve(H.Attributes)&&k_(p," []")},x.Parameters),k_(p,") ="),vg(p),EM(p),eh(p,`${g.Name}()`),vg(p),xM(p),vg(p)},g.SecondaryConstructors),yd(g.ExplicitFields)&&yd(g.SecondaryConstructors)&&(eh(p,"class end"),vg(p)),yd(g.ExplicitFields)||SL(x=>{eh(p,`member val ${x.Name} : `),k_(p,XS(x.Type)),k_(p," = nativeOnly with get, set"),vg(p)},g.ExplicitFields),xM(p)}function j4t(p,g){eh(p,"[]"),vg(p),eh(p,`type ${g.Name} =`),vg(p),EM(p),SL(x=>{const L=R4t(x.Name),H=x.Value;switch(H.tag){case 3:case 0:case 2:case 4:break;default:eh(p,`| ${L} = ${H.fields[0]}`)}vg(p)},g.Cases),xM(p)}function V4t(p,g){Vot(p,g.XmlDoc),XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),eh(p,XS(g.Type)),vg(p),xM(p)}function U4t(p,g){eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),eh(p,"delegate of "),SIt(p,g.Parameters),k_(p,` -> ${XS(g.ReturnType)}`),vg(p),xM(p)}function EIt(p,g){e:for(;;){const x=p,L=g;if(!yd(L)){const H=Hp(L);switch(vg(x),H.tag){case 0:{j4t(x,H.fields[0]);break}case 5:{B4t(x,H.fields[0]);break}case 6:{eh(x,Rne(K1e("obj // Unsupported syntax kind: %A%P()",[H.fields[0]]))),vg(x);break}case 4:{const G=H.fields[0];eh(x,"module "),G.IsRecursive&&k_(x,"rec "),k_(x,`${G.Name} =`),vg(x),EM(x),EIt(x,G.Types),xM(x);break}case 9:{V4t(x,H.fields[0]);break}case 17:{G4t(x,H.fields[0]);break}case 2:{const G=H.fields[0];Vot(x,G.XmlDoc),XRe(x,wD(new Sm(6,[]),G.Attributes)),eh(x,`type ${G.Name}`),Q1e(x,_l(G.TypeParameter)),k_(x," ="),vg(x),EM(x),eh(x,`| ${G.Name} of `);const ye=G.TypeParameter;ye.tag===1?k_(x,`'${ye.fields[0].Name}`):k_(x,XS(ye.fields[0])),vg(x),vg(x),eh(x,"member inline this.Value ="),vg(x),EM(x),eh(x,`let (${G.Name} output) = this`),vg(x),eh(x,"output"),vg(x),xM(x),xM(x);break}case 20:{U4t(x,H.fields[0]);break}case 7:case 8:case 18:case 11:case 3:case 14:case 19:case 13:case 10:case 16:case 12:case 15:break;default:{const G=H.fields[0];XRe(x,G.Attributes),eh(x,`type ${G.Name} =`),vg(x),EM(x),SL(ye=>{if(eh(x,"| "),ye.tag===1)k_(x,XS(ye.fields[0])),vg(x);else{const Oe=ye.fields[0];Got(x,Oe.Attributes),k_(x,Oe.Name)}vg(x)},G.Cases),xM(x)}}p=x,g=Ay(L);continue e}break}}function H4t(p,g){const x=new I4t("Glutinum",fu(["Fable.Core","Fable.Core.JsInterop","System"]));eh(p,`module rec ${x.Name}`),vg(p),vg(p),SL(L=>{eh(p,`open ${L}`),vg(p)},x.Opens),g.IncludeReadonlyArrayAlias&&(vg(p),eh(p,"// You need to add Glutinum.Types NuGet package to your project"),vg(p),eh(p,"open Glutinum.Types.TypeScript"),vg(p)),g.IncludeRegExpAlias&&(vg(p),eh(p,"type RegExp = Text.RegularExpressions.Regex"),vg(p)),g.IncludeIterableAlias&&(vg(p),eh(p,"type Iterable<'T> = Collections.Generic.IEnumerable<'T>"),vg(p)),EIt(p,g.FSharpAST)}class J4t extends ap{constructor(g,x){super(),this.Name=g,this.Content=x}}class $4t extends ap{constructor(g,x){super(),this.TypeName=g,this.Content=x}}class UK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Summary","Returns","Param","Deprecated","Remarks","DefaultValue","Example","TypeParam","Throws"]}}class q4t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.IsOptional=x,this.IsSpread=L,this.Type=H}}class K4t extends ap{constructor(g,x,L){super(),this.Name=g,this.Constraint=x,this.Default=L}}class X4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Parameters=x,this.Type=L,this.IsOptional=H,this.IsStatic=G}}class Y4t extends ap{constructor(g,x){super(),this.Parameters=g,this.Type=x}}class Fje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["ReadOnly","WriteOnly","ReadWrite"]}}class Uot extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.Name=g,this.Documentation=x,this.Type=L,this.IsStatic=H,this.IsOptional=G,this.Accessor=ye,this.IsPrivate=Oe}}class Q4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Documentation=x,this.ArgumentType=L,this.IsStatic=H,this.IsPrivate=G}}class Z4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Documentation=x,this.Type=L,this.IsStatic=H,this.IsPrivate=G}}class e8t extends ap{constructor(g,x,L){super(),this.Parameters=g,this.Type=x,this.IsReadOnly=L}}class t8t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.Documentation=x,this.Parameters=L,this.Type=H}}class n8t extends ap{constructor(g,x){super(),this.Parameters=g,this.Type=x}}class ZV extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Method","Property","GetAccessor","SetAccessor","CallSignature","IndexSignature","MethodSignature","ConstructSignature"]}}class ySt extends ap{constructor(g,x,L,H,G){super(),this.FullName=g,this.Name=x,this.Members=L,this.TypeParameters=H,this.HeritageClauses=G}}class xIt extends ap{constructor(g){super(),this.Members=g}}class AIt extends ap{constructor(g,x,L){super(),this.Documentation=g,this.Name=x,this.Type=L}}class Nv extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Unit","Number","Any","Null","Undefined","Object","Symbol","Never"]}}class vL extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Null"]}}class r8t extends ap{constructor(g,x){super(),this.Name=g,this.Value=x}}class i8t extends ap{constructor(g,x){super(),this.Name=g,this.Members=x}}class o8t extends ap{constructor(g,x,L,H){super(),this.Documentation=g,this.Name=x,this.Type=L,this.TypeParameters=H}}class a8t extends ap{constructor(g,x,L,H,G,ye){super(),this.Documentation=g,this.IsDeclared=x,this.Name=L,this.Type=H,this.Parameters=G,this.TypeParameters=ye}}class s8t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.IsNamespace=x,this.IsRecursive=L,this.Types=H}}class CIt extends ap{constructor(g,x){super(),this.Documentation=g,this.Parameters=x}}class vSt extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Constructors=x,this.Members=L,this.TypeParameters=H,this.HeritageClauses=G}}class K2t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.FullName=x,this.TypeArguments=L,this.IsStandardLibrary=H}}class bSt extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["GlueTypeUnion"]}}class c8t extends ap{constructor(g,x,L,H){super(),this.Documentation=g,this.Type=x,this.TypeParameters=L,this.Parameters=H}}class l8t extends ap{constructor(g,x){super(),this.Name=g,this.Type=x}}class u8t extends ap{constructor(g,x){super(),this.KeyType=g,this.ValueType=x}}class X2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Members","Union"]}}class Hne extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Partial","Record","ReturnType","ThisParameterType","Omit","Readonly"]}}class f8t extends ap{constructor(g,x){super(),this.TypeParameter=g,this.Type=x}}class _8t extends ap{constructor(g,x){super(),this.IndexType=g,this.ObjectType=x}}class d8t extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class Wu extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Discard","Interface","Variable","Primitive","Enum","TypeAliasDeclaration","FunctionDeclaration","Union","Literal","KeyOf","IndexedAccessType","ModuleDeclaration","ClassDeclaration","TypeReference","Array","FunctionType","TypeParameter","ThisType","TupleType","NamedTupleType","IntersectionType","TypeLiteral","OptionalType","Unknown","ExportDefault","TemplateLiteral","UtilityType","MappedType","ConstructorType","ReadOnly"]}}function DIt(p){switch(p.tag){case 1:return bVe(p.fields[0]);case 2:return p.fields[0].toString();case 3:return wE(p.fields[0]);case 4:return"null";default:return p.fields[0]}}function KK(p){switch(p.tag){case 2:return p.fields[0].Name;case 3:switch(p.fields[0].tag){case 1:return"int";case 2:return"float";case 3:return"bool";case 4:return"unit";case 5:return"float";case 6:return"obj";case 7:return"obj option";case 8:return"obj";case 9:return"obj";case 10:return"obj";case 11:return"obj";default:return"string"}case 25:return"string";case 4:return p.fields[0].Name;case 5:return p.fields[0].Name;case 16:return p.fields[0];case 8:return DIt(p.fields[0]);case 9:return"string";case 6:return p.fields[0].Name;case 11:return p.fields[0].Name;case 12:return p.fields[0].Name;case 13:return p.fields[0].Name;case 14:return`ResizeArray<${KK(p.fields[0])}>`;case 29:{const g=p.fields[0];return g.tag===14?`ReadonlyArray<${KK(g.fields[0])}>`:KK(g)}case 17:return p.fields[0].Name;case 7:return lA(" | ",zf(KK,p.fields[0].fields[0]));case 19:case 21:case 20:case 10:case 15:case 18:case 22:case 0:case 24:case 28:case 23:return"obj";case 26:{const g=p.fields[0];switch(g.tag){case 2:return KK(g.fields[0]);case 3:return KK(g.fields[0]);default:return"obj"}}case 27:return"obj";default:return p.fields[0].Name}}function YS(p,g){if(g&p)return LD(void 0)}function p8t(p,g){if(g&p)return LD(void 0)}function m8t(p){return typeof p=="string"?!Number.isNaN(p):!1}function g8t(p){if(m8t(p)){let g,x=0;if(g=[VNt(p,511,!1,32,new WRe(()=>x,L=>{x=L|0})),x],g[0])return new vL(1,[g[1]]);{let L,H=0;return L=[ANt(p,new WRe(()=>H,G=>{H=G})),H],L[0]?new vL(2,[L[1]]):void 0}}else return}function TSt(p){switch(p.kind|0){case 11:{const x=p;return new vL(0,[x.text])}case 97:return new vL(3,[!1]);case 106:return new vL(4,[]);case 112:return new vL(3,[!0]);default:return g8t(p.getText())}}function h8t(p,g){if(g.symbol==null){const x=p.getSymbolAtLocation(g);if(x!=null){const L=x;return p.getFullyQualifiedName(L)}else return}else return p.getFullyQualifiedName(g.symbol)}function Wje(p,g){return bL(h8t(p,g),"")}function IIt(p){return p==null?new Fje(2,[]):rTe(g=>g.kind===148,p)?new Fje(0,[]):new Fje(2,[])}function y8t(p){return IIt(p)}function v8t(p,g){return p==null?!1:rTe(x=>x.kind===g,p)}function W1e(p,g){return v8t(p,g)}function j1t(p,g){const x=g.typeArguments;return x!=null?zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L),Zd(x)):lc()}function kIt(p,g){return g==null?lc():rz(x=>zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](L),Zd(x.types)),Zd(g))}function V1t(p){if(p!=null){const g=p,x=g.declarations;if(x!=null){const L=x;if(L[0].parent.kind===312){const H=L[0].parent;return gNt(H.fileName,"lib/lib.es5.d.ts")}else return!1}else return ONt(g.name,fu(["Iterable","IterableIterator"]),{Equals:(L,H)=>L===H,GetHashCode:TVe})}else return!1}function PIt(p){const g=p.flags|0;if(YS(128,g)!=null){const x=p;return new SEt(0,[x.value])}else return new SEt(1,[void 0])}function Y2t(p){const g=p.flags|0;if(YS(256,g)!=null){const x=p;return Number.isSafeInteger(x.value)?new M0t(0,[x.value]):new M0t(1,[x.value])}else return new M0t(2,[void 0])}function b8t(p,g){const x=g.name,L=rMe(ot=>ot.kind===176,Zd(g.members)),H=EL(ot=>{if(ot.kind===176){const At=ot;return new CIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](At),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](At.parameters))}else return},L[0]),G=zf(ot=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](ot),Zd(L[1])),ye=W1e(g.modifiers,90),Oe=new Wu(12,[new vSt(x.getText(),H,G,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters),kIt(p,g.heritageClauses))]);return ye?new Wu(24,[Oe]):Oe}function Y0(p,g,x,L="",H=0){const G=Fne(Rne(K1e("%s%P()(%d%P())",["./"+ARe(L,L.indexOf("src/Glutinum.Converter")),H])),"\\","/"),ye=x.getSourceFile();if(ye==null)return`${G}: Error while reading ${p} from: +${g.OriginalName}.${L.OriginalName}(${lA(", ",nMe((H,G)=>`$${H}`,L.Parameters))})"""`),vg(p),xM(p));break}default:{const L=x.fields[0];Vot(p,L.XmlDoc),jot(p,L.Attributes),L.IsStatic?eh(p,"static "):eh(p,"abstract "),k_(p,`member ${L.Name}`),Q1e(p,L.TypeParameters),L.IsStatic?(k_(p," "),_z(L.Parameters)===0?k_(p,"()"):(k_(p,"("),Mne((H,G)=>{H!==0&&k_(p,", "),Got(p,G.Attributes),G.IsOptional&&k_(p,"?"),k_(p,`${G.Name}: ${XS(G.Type)}`),_Ve(G.Attributes)&&k_(p," []")},L.Parameters),k_(p,")"))):(k_(p,": "),TIt(p,L.Parameters)),L.IsStatic?k_(p," : "):k_(p," -> "),k_(p,XS(L.Type)),L.IsStatic&&k_(p," = nativeOnly"),vg(p)}}},g.Members),yd(g.Members)&&yd(g.Inheritance)&&(eh(p,"interface end"),vg(p)),xM(p)}function z4t(p,g){jot(p,g.Attributes),bIt(p,g.Accessibility),k_(p,"("),EM(p),Mne((x,L)=>{x!==0&&k_(p,","),vg(p),L.IsOptional?eh(p,"?"):eh(p,""),k_(p,`${L.Name}: ${XS(L.Type)}`),_Ve(L.Attributes)&&k_(p," []")},g.Parameters),xM(p),vg(p),eh(p,") ="),vg(p)}function G4t(p,g){XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),vg(p),EM(p),z4t(p,g.PrimaryConstructor),vg(p),yd(g.SecondaryConstructors)||TL(x=>{jot(p,x.Attributes),bIt(p,x.Accessibility),k_(p,"new ("),Mne((L,H)=>{L!==0&&k_(p,", "),H.IsOptional&&k_(p,"?"),k_(p,`${H.Name}: ${XS(H.Type)}`),_Ve(H.Attributes)&&k_(p," []")},x.Parameters),k_(p,") ="),vg(p),EM(p),eh(p,`${g.Name}()`),vg(p),xM(p),vg(p)},g.SecondaryConstructors),yd(g.ExplicitFields)&&yd(g.SecondaryConstructors)&&(eh(p,"class end"),vg(p)),yd(g.ExplicitFields)||TL(x=>{eh(p,`member val ${x.Name} : `),k_(p,XS(x.Type)),k_(p," = nativeOnly with get, set"),vg(p)},g.ExplicitFields),xM(p)}function j4t(p,g){eh(p,"[]"),vg(p),eh(p,`type ${g.Name} =`),vg(p),EM(p),TL(x=>{const L=R4t(x.Name),H=x.Value;switch(H.tag){case 3:case 0:case 2:case 4:break;default:eh(p,`| ${L} = ${H.fields[0]}`)}vg(p)},g.Cases),xM(p)}function V4t(p,g){Vot(p,g.XmlDoc),XRe(p,g.Attributes),eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),eh(p,XS(g.Type)),vg(p),xM(p)}function U4t(p,g){eh(p,`type ${g.Name}`),Q1e(p,g.TypeParameters),k_(p," ="),vg(p),EM(p),eh(p,"delegate of "),TIt(p,g.Parameters),k_(p,` -> ${XS(g.ReturnType)}`),vg(p),xM(p)}function SIt(p,g){e:for(;;){const x=p,L=g;if(!yd(L)){const H=Hp(L);switch(vg(x),H.tag){case 0:{j4t(x,H.fields[0]);break}case 5:{B4t(x,H.fields[0]);break}case 6:{eh(x,Rne(K1e("obj // Unsupported syntax kind: %A%P()",[H.fields[0]]))),vg(x);break}case 4:{const G=H.fields[0];eh(x,"module "),G.IsRecursive&&k_(x,"rec "),k_(x,`${G.Name} =`),vg(x),EM(x),SIt(x,G.Types),xM(x);break}case 9:{V4t(x,H.fields[0]);break}case 17:{G4t(x,H.fields[0]);break}case 2:{const G=H.fields[0];Vot(x,G.XmlDoc),XRe(x,wD(new Sm(6,[]),G.Attributes)),eh(x,`type ${G.Name}`),Q1e(x,_l(G.TypeParameter)),k_(x," ="),vg(x),EM(x),eh(x,`| ${G.Name} of `);const ye=G.TypeParameter;ye.tag===1?k_(x,`'${ye.fields[0].Name}`):k_(x,XS(ye.fields[0])),vg(x),vg(x),eh(x,"member inline this.Value ="),vg(x),EM(x),eh(x,`let (${G.Name} output) = this`),vg(x),eh(x,"output"),vg(x),xM(x),xM(x);break}case 20:{U4t(x,H.fields[0]);break}case 7:case 8:case 18:case 11:case 3:case 14:case 19:case 13:case 10:case 16:case 12:case 15:break;default:{const G=H.fields[0];XRe(x,G.Attributes),eh(x,`type ${G.Name} =`),vg(x),EM(x),TL(ye=>{if(eh(x,"| "),ye.tag===1)k_(x,XS(ye.fields[0])),vg(x);else{const Oe=ye.fields[0];Got(x,Oe.Attributes),k_(x,Oe.Name)}vg(x)},G.Cases),xM(x)}}p=x,g=xy(L);continue e}break}}function H4t(p,g){const x=new I4t("Glutinum",fu(["Fable.Core","Fable.Core.JsInterop","System"]));eh(p,`module rec ${x.Name}`),vg(p),vg(p),TL(L=>{eh(p,`open ${L}`),vg(p)},x.Opens),g.IncludeReadonlyArrayAlias&&(vg(p),eh(p,"// You need to add Glutinum.Types NuGet package to your project"),vg(p),eh(p,"open Glutinum.Types.TypeScript"),vg(p)),g.IncludeRegExpAlias&&(vg(p),eh(p,"type RegExp = Text.RegularExpressions.Regex"),vg(p)),g.IncludeIterableAlias&&(vg(p),eh(p,"type Iterable<'T> = Collections.Generic.IEnumerable<'T>"),vg(p)),SIt(p,g.FSharpAST)}class J4t extends ap{constructor(g,x){super(),this.Name=g,this.Content=x}}class $4t extends ap{constructor(g,x){super(),this.TypeName=g,this.Content=x}}class UK extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Summary","Returns","Param","Deprecated","Remarks","DefaultValue","Example","TypeParam","Throws"]}}class q4t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.IsOptional=x,this.IsSpread=L,this.Type=H}}class K4t extends ap{constructor(g,x,L){super(),this.Name=g,this.Constraint=x,this.Default=L}}class X4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Parameters=x,this.Type=L,this.IsOptional=H,this.IsStatic=G}}class Y4t extends ap{constructor(g,x){super(),this.Parameters=g,this.Type=x}}class Fje extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["ReadOnly","WriteOnly","ReadWrite"]}}class Uot extends ap{constructor(g,x,L,H,G,ye,Oe){super(),this.Name=g,this.Documentation=x,this.Type=L,this.IsStatic=H,this.IsOptional=G,this.Accessor=ye,this.IsPrivate=Oe}}class Q4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Documentation=x,this.ArgumentType=L,this.IsStatic=H,this.IsPrivate=G}}class Z4t extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Documentation=x,this.Type=L,this.IsStatic=H,this.IsPrivate=G}}class e8t extends ap{constructor(g,x,L){super(),this.Parameters=g,this.Type=x,this.IsReadOnly=L}}class t8t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.Documentation=x,this.Parameters=L,this.Type=H}}class n8t extends ap{constructor(g,x){super(),this.Parameters=g,this.Type=x}}class QV extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Method","Property","GetAccessor","SetAccessor","CallSignature","IndexSignature","MethodSignature","ConstructSignature"]}}class hSt extends ap{constructor(g,x,L,H,G){super(),this.FullName=g,this.Name=x,this.Members=L,this.TypeParameters=H,this.HeritageClauses=G}}class EIt extends ap{constructor(g){super(),this.Members=g}}class xIt extends ap{constructor(g,x,L){super(),this.Documentation=g,this.Name=x,this.Type=L}}class Nv extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Unit","Number","Any","Null","Undefined","Object","Symbol","Never"]}}class vL extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["String","Int","Float","Bool","Null"]}}class r8t extends ap{constructor(g,x){super(),this.Name=g,this.Value=x}}class i8t extends ap{constructor(g,x){super(),this.Name=g,this.Members=x}}class o8t extends ap{constructor(g,x,L,H){super(),this.Documentation=g,this.Name=x,this.Type=L,this.TypeParameters=H}}class a8t extends ap{constructor(g,x,L,H,G,ye){super(),this.Documentation=g,this.IsDeclared=x,this.Name=L,this.Type=H,this.Parameters=G,this.TypeParameters=ye}}class s8t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.IsNamespace=x,this.IsRecursive=L,this.Types=H}}class AIt extends ap{constructor(g,x){super(),this.Documentation=g,this.Parameters=x}}class ySt extends ap{constructor(g,x,L,H,G){super(),this.Name=g,this.Constructors=x,this.Members=L,this.TypeParameters=H,this.HeritageClauses=G}}class q2t extends ap{constructor(g,x,L,H){super(),this.Name=g,this.FullName=x,this.TypeArguments=L,this.IsStandardLibrary=H}}class vSt extends wh{constructor(g){super(),this.tag=0,this.fields=[g]}cases(){return["GlueTypeUnion"]}}class c8t extends ap{constructor(g,x,L,H){super(),this.Documentation=g,this.Type=x,this.TypeParameters=L,this.Parameters=H}}class l8t extends ap{constructor(g,x){super(),this.Name=g,this.Type=x}}class u8t extends ap{constructor(g,x){super(),this.KeyType=g,this.ValueType=x}}class K2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Members","Union"]}}class Hne extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Partial","Record","ReturnType","ThisParameterType","Omit","Readonly"]}}class f8t extends ap{constructor(g,x){super(),this.TypeParameter=g,this.Type=x}}class _8t extends ap{constructor(g,x){super(),this.IndexType=g,this.ObjectType=x}}class d8t extends ap{constructor(g,x){super(),this.Name=g,this.TypeParameters=x}}class Wu extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Discard","Interface","Variable","Primitive","Enum","TypeAliasDeclaration","FunctionDeclaration","Union","Literal","KeyOf","IndexedAccessType","ModuleDeclaration","ClassDeclaration","TypeReference","Array","FunctionType","TypeParameter","ThisType","TupleType","NamedTupleType","IntersectionType","TypeLiteral","OptionalType","Unknown","ExportDefault","TemplateLiteral","UtilityType","MappedType","ConstructorType","ReadOnly"]}}function CIt(p){switch(p.tag){case 1:return bVe(p.fields[0]);case 2:return p.fields[0].toString();case 3:return wE(p.fields[0]);case 4:return"null";default:return p.fields[0]}}function KK(p){switch(p.tag){case 2:return p.fields[0].Name;case 3:switch(p.fields[0].tag){case 1:return"int";case 2:return"float";case 3:return"bool";case 4:return"unit";case 5:return"float";case 6:return"obj";case 7:return"obj option";case 8:return"obj";case 9:return"obj";case 10:return"obj";case 11:return"obj";default:return"string"}case 25:return"string";case 4:return p.fields[0].Name;case 5:return p.fields[0].Name;case 16:return p.fields[0];case 8:return CIt(p.fields[0]);case 9:return"string";case 6:return p.fields[0].Name;case 11:return p.fields[0].Name;case 12:return p.fields[0].Name;case 13:return p.fields[0].Name;case 14:return`ResizeArray<${KK(p.fields[0])}>`;case 29:{const g=p.fields[0];return g.tag===14?`ReadonlyArray<${KK(g.fields[0])}>`:KK(g)}case 17:return p.fields[0].Name;case 7:return lA(" | ",zf(KK,p.fields[0].fields[0]));case 19:case 21:case 20:case 10:case 15:case 18:case 22:case 0:case 24:case 28:case 23:return"obj";case 26:{const g=p.fields[0];switch(g.tag){case 2:return KK(g.fields[0]);case 3:return KK(g.fields[0]);default:return"obj"}}case 27:return"obj";default:return p.fields[0].Name}}function YS(p,g){if(g&p)return LD(void 0)}function p8t(p,g){if(g&p)return LD(void 0)}function m8t(p){return typeof p=="string"?!Number.isNaN(p):!1}function g8t(p){if(m8t(p)){let g,x=0;if(g=[VNt(p,511,!1,32,new WRe(()=>x,L=>{x=L|0})),x],g[0])return new vL(1,[g[1]]);{let L,H=0;return L=[ANt(p,new WRe(()=>H,G=>{H=G})),H],L[0]?new vL(2,[L[1]]):void 0}}else return}function bSt(p){switch(p.kind|0){case 11:{const x=p;return new vL(0,[x.text])}case 97:return new vL(3,[!1]);case 106:return new vL(4,[]);case 112:return new vL(3,[!0]);default:return g8t(p.getText())}}function h8t(p,g){if(g.symbol==null){const x=p.getSymbolAtLocation(g);if(x!=null){const L=x;return p.getFullyQualifiedName(L)}else return}else return p.getFullyQualifiedName(g.symbol)}function Wje(p,g){return m8(h8t(p,g),"")}function DIt(p){return p==null?new Fje(2,[]):rTe(g=>g.kind===148,p)?new Fje(0,[]):new Fje(2,[])}function y8t(p){return DIt(p)}function v8t(p,g){return p==null?!1:rTe(x=>x.kind===g,p)}function W1e(p,g){return v8t(p,g)}function G1t(p,g){const x=g.typeArguments;return x!=null?zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L),Zd(x)):lc()}function IIt(p,g){return g==null?lc():rz(x=>zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](L),Zd(x.types)),Zd(g))}function j1t(p){if(p!=null){const g=p,x=g.declarations;if(x!=null){const L=x;if(L[0].parent.kind===312){const H=L[0].parent;return gNt(H.fileName,"lib/lib.es5.d.ts")}else return!1}else return ONt(g.name,fu(["Iterable","IterableIterator"]),{Equals:(L,H)=>L===H,GetHashCode:TVe})}else return!1}function kIt(p){const g=p.flags|0;if(YS(128,g)!=null){const x=p;return new TEt(0,[x.value])}else return new TEt(1,[void 0])}function X2t(p){const g=p.flags|0;if(YS(256,g)!=null){const x=p;return Number.isSafeInteger(x.value)?new M0t(0,[x.value]):new M0t(1,[x.value])}else return new M0t(2,[void 0])}function b8t(p,g){const x=g.name,L=rMe(ot=>ot.kind===176,Zd(g.members)),H=SL(ot=>{if(ot.kind===176){const At=ot;return new AIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](At),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](At.parameters))}else return},L[0]),G=zf(ot=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](ot),Zd(L[1])),ye=W1e(g.modifiers,90),Oe=new Wu(12,[new ySt(x.getText(),H,G,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters),IIt(p,g.heritageClauses))]);return ye?new Wu(24,[Oe]):Oe}function Y0(p,g,x,L="",H=0){const G=Fne(Rne(K1e("%s%P()(%d%P())",["./"+ARe(L,L.indexOf("src/Glutinum.Converter")),H])),"\\","/"),ye=x.getSourceFile();if(ye==null)return`${G}: Error while reading ${p} from: (source file not available for report) ${g}`;{const Oe=ye.getLineAndCharacterOfPosition(x.pos),ot=~~Oe.line+1|0,At=~~Oe.character+1|0,sn=Fne(ye.fileName,"\\","/"),tr=x.parent==null?"":` @@ -30528,7 +30528,7 @@ ${x.parent.getFullText()} --- Text --- %s%P() ----%s%P()`,[G,p,sn,ot,At,g,x.getFullText(),tr]))}}function T8t(p,g,x){let L,H,G;const ye=x.initializer;if(ye!=null){const At=ye,sn=TSt(At);if(sn==null)throw new Error(Y0("enum member","readEnumCases: Unsupported enum initializer",At,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/EnumDeclaration.fs",49));{const tr=sn;let Nt,Ot;switch(tr.tag){case 4:case 3:{Nt=1;break}case 1:{Nt=0,Ot=tr;break}case 2:{Nt=0,Ot=tr;break}default:Nt=0,Ot=tr}switch(Nt){case 0:{G=Ot;break}default:throw new Error(Y0("enum member","Boolean and null literals are not supported in enums",At,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/EnumDeclaration.fs",41))}}}else{const At=p.getConstantValue(x);G=At==null?new vL(1,[g.NextCaseIndex]):typeof At=="number"?(L=At,Number.isSafeInteger(L)?new vL(1,[~~L]):new vL(2,[L])):(H=At,new vL(0,[H]))}const Oe=x.name,ot=(G.tag===1?G.fields[0]+1:g.NextCaseIndex+1)|0;return{Members:oU(g.Members,_l(new r8t(Oe.getText(),G))),NextCaseIndex:ot}}function S8t(p,g){let x;const L={Members:lc(),NextCaseIndex:0};let H;const G=tTe(g.members);return H=HO(wne((x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),ye=>Oe=>T8t(x,ye,Oe))),L,G),new i8t(g.name.getText(),H.Members)}function E8t(p,g){let x;const L=g.modifiers;x=L==null?!1:rTe(ye=>ye.kind===138,L);let H;const G=g.name;if(G==null)throw new Error(Y0("function declaration","Missing name",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/FunctionDeclaration.fs",25));return H=G.getText(),new a8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](g),x,H,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](g.type),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](g.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters))}function x8t(p,g){const x=zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](L),Zd(g.members));return new ySt(Wje(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),g),g.name.getText(),x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters),kIt(p,g.heritageClauses))}function A8t(p,g){const x=g.name,L=g.getChildren(),H=rTe(ye=>ye.kind===145,L),G=Zd(EVe(oMe(ye=>{switch(ye.kind|0){case 268:return zf(At=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](At),tTe(ye.statements));default:return}},L)));return new s8t(x.getText(),H,!1,G)}function oX(p){switch(p){case 0:return"Unknown";case 1:return"EndOfFileToken";case 2:return"SingleLineCommentTrivia";case 3:return"MultiLineCommentTrivia";case 4:return"NewLineTrivia";case 5:return"WhitespaceTrivia";case 6:return"ShebangTrivia";case 7:return"ConflictMarkerTrivia";case 8:return"NonTextFileMarkerTrivia";case 9:return"NumericLiteral";case 10:return"BigIntLiteral";case 11:return"StringLiteral";case 12:return"JsxText";case 13:return"JsxTextAllWhiteSpaces";case 14:return"RegularExpressionLiteral";case 15:return"NoSubstitutionTemplateLiteral";case 16:return"TemplateHead";case 17:return"TemplateMiddle";case 18:return"TemplateTail";case 19:return"OpenBraceToken";case 20:return"CloseBraceToken";case 21:return"OpenParenToken";case 22:return"CloseParenToken";case 23:return"OpenBracketToken";case 24:return"CloseBracketToken";case 25:return"DotToken";case 26:return"DotDotDotToken";case 27:return"SemicolonToken";case 28:return"CommaToken";case 29:return"QuestionDotToken";case 30:return"LessThanToken";case 31:return"LessThanSlashToken";case 32:return"GreaterThanToken";case 33:return"LessThanEqualsToken";case 34:return"GreaterThanEqualsToken";case 35:return"EqualsEqualsToken";case 36:return"ExclamationEqualsToken";case 37:return"EqualsEqualsEqualsToken";case 38:return"ExclamationEqualsEqualsToken";case 39:return"EqualsGreaterThanToken";case 40:return"PlusToken";case 41:return"MinusToken";case 42:return"AsteriskToken";case 43:return"AsteriskAsteriskToken";case 44:return"SlashToken";case 45:return"PercentToken";case 46:return"PlusPlusToken";case 47:return"MinusMinusToken";case 48:return"LessThanLessThanToken";case 49:return"GreaterThanGreaterThanToken";case 50:return"GreaterThanGreaterThanGreaterThanToken";case 51:return"AmpersandToken";case 52:return"BarToken";case 53:return"CaretToken";case 54:return"ExclamationToken";case 55:return"TildeToken";case 56:return"AmpersandAmpersandToken";case 57:return"BarBarToken";case 58:return"QuestionToken";case 59:return"ColonToken";case 60:return"AtToken";case 61:return"QuestionQuestionToken";case 62:return"BacktickToken";case 63:return"HashToken";case 64:return"EqualsToken";case 65:return"PlusEqualsToken";case 66:return"MinusEqualsToken";case 67:return"AsteriskEqualsToken";case 68:return"AsteriskAsteriskEqualsToken";case 69:return"SlashEqualsToken";case 70:return"PercentEqualsToken";case 71:return"LessThanLessThanEqualsToken";case 72:return"GreaterThanGreaterThanEqualsToken";case 73:return"GreaterThanGreaterThanGreaterThanEqualsToken";case 74:return"AmpersandEqualsToken";case 75:return"BarEqualsToken";case 76:return"BarBarEqualsToken";case 77:return"AmpersandAmpersandEqualsToken";case 78:return"QuestionQuestionEqualsToken";case 79:return"CaretEqualsToken";case 80:return"Identifier";case 81:return"PrivateIdentifier";case 83:return"BreakKeyword";case 84:return"CaseKeyword";case 85:return"CatchKeyword";case 86:return"ClassKeyword";case 87:return"ConstKeyword";case 88:return"ContinueKeyword";case 89:return"DebuggerKeyword";case 90:return"DefaultKeyword";case 91:return"DeleteKeyword";case 92:return"DoKeyword";case 93:return"ElseKeyword";case 94:return"EnumKeyword";case 95:return"ExportKeyword";case 96:return"ExtendsKeyword";case 97:return"FalseKeyword";case 98:return"FinallyKeyword";case 99:return"ForKeyword";case 100:return"FunctionKeyword";case 101:return"IfKeyword";case 102:return"ImportKeyword";case 103:return"InKeyword";case 104:return"InstanceOfKeyword";case 105:return"NewKeyword";case 106:return"NullKeyword";case 107:return"ReturnKeyword";case 108:return"SuperKeyword";case 109:return"SwitchKeyword";case 110:return"ThisKeyword";case 111:return"ThrowKeyword";case 112:return"TrueKeyword";case 113:return"TryKeyword";case 114:return"TypeOfKeyword";case 115:return"VarKeyword";case 116:return"VoidKeyword";case 117:return"WhileKeyword";case 118:return"WithKeyword";case 119:return"ImplementsKeyword";case 120:return"InterfaceKeyword";case 121:return"LetKeyword";case 122:return"PackageKeyword";case 123:return"PrivateKeyword";case 124:return"ProtectedKeyword";case 125:return"PublicKeyword";case 126:return"StaticKeyword";case 127:return"YieldKeyword";case 128:return"AbstractKeyword";case 129:return"AccessorKeyword";case 130:return"AsKeyword";case 131:return"AssertsKeyword";case 132:return"AssertKeyword";case 133:return"AnyKeyword";case 134:return"AsyncKeyword";case 135:return"AwaitKeyword";case 136:return"BooleanKeyword";case 137:return"ConstructorKeyword";case 138:return"DeclareKeyword";case 139:return"GetKeyword";case 140:return"InferKeyword";case 141:return"IntrinsicKeyword";case 142:return"IsKeyword";case 143:return"KeyOfKeyword";case 144:return"ModuleKeyword";case 145:return"NamespaceKeyword";case 146:return"NeverKeyword";case 147:return"OutKeyword";case 148:return"ReadonlyKeyword";case 149:return"RequireKeyword";case 150:return"NumberKeyword";case 151:return"ObjectKeyword";case 152:return"SatisfiesKeyword";case 153:return"SetKeyword";case 154:return"StringKeyword";case 155:return"SymbolKeyword";case 156:return"TypeKeyword";case 157:return"UndefinedKeyword";case 158:return"UniqueKeyword";case 159:return"UnknownKeyword";case 160:return"UsingKeyword";case 161:return"FromKeyword";case 162:return"GlobalKeyword";case 163:return"BigIntKeyword";case 164:return"OverrideKeyword";case 165:return"OfKeyword";case 166:return"QualifiedName";case 167:return"ComputedPropertyName";case 168:return"TypeParameter";case 169:return"Parameter";case 170:return"Decorator";case 171:return"PropertySignature";case 172:return"PropertyDeclaration";case 173:return"MethodSignature";case 174:return"MethodDeclaration";case 175:return"ClassStaticBlockDeclaration";case 176:return"Constructor";case 177:return"GetAccessor";case 178:return"SetAccessor";case 179:return"CallSignature";case 180:return"ConstructSignature";case 181:return"IndexSignature";case 182:return"TypePredicate";case 183:return"TypeReference";case 184:return"FunctionType";case 185:return"ConstructorType";case 186:return"TypeQuery";case 187:return"TypeLiteral";case 188:return"ArrayType";case 189:return"TupleType";case 190:return"OptionalType";case 191:return"RestType";case 192:return"UnionType";case 193:return"IntersectionType";case 194:return"ConditionalType";case 195:return"InferType";case 196:return"ParenthesizedType";case 197:return"ThisType";case 198:return"TypeOperator";case 199:return"IndexedAccessType";case 200:return"MappedType";case 201:return"LiteralType";case 202:return"NamedTupleMember";case 203:return"TemplateLiteralType";case 204:return"TemplateLiteralTypeSpan";case 205:return"ImportType";case 206:return"ObjectBindingPattern";case 207:return"ArrayBindingPattern";case 208:return"BindingElement";case 209:return"ArrayLiteralExpression";case 210:return"ObjectLiteralExpression";case 211:return"PropertyAccessExpression";case 212:return"ElementAccessExpression";case 213:return"CallExpression";case 214:return"NewExpression";case 215:return"TaggedTemplateExpression";case 216:return"TypeAssertionExpression";case 217:return"ParenthesizedExpression";case 218:return"FunctionExpression";case 219:return"ArrowFunction";case 220:return"DeleteExpression";case 221:return"TypeOfExpression";case 222:return"VoidExpression";case 223:return"AwaitExpression";case 224:return"PrefixUnaryExpression";case 225:return"PostfixUnaryExpression";case 226:return"BinaryExpression";case 227:return"ConditionalExpression";case 228:return"TemplateExpression";case 229:return"YieldExpression";case 230:return"SpreadElement";case 231:return"ClassExpression";case 232:return"OmittedExpression";case 233:return"ExpressionWithTypeArguments";case 234:return"AsExpression";case 235:return"NonNullExpression";case 236:return"MetaProperty";case 237:return"SyntheticExpression";case 238:return"SatisfiesExpression";case 239:return"TemplateSpan";case 240:return"SemicolonClassElement";case 241:return"Block";case 242:return"EmptyStatement";case 243:return"VariableStatement";case 244:return"ExpressionStatement";case 245:return"IfStatement";case 246:return"DoStatement";case 247:return"WhileStatement";case 248:return"ForStatement";case 249:return"ForInStatement";case 250:return"ForOfStatement";case 251:return"ContinueStatement";case 252:return"BreakStatement";case 253:return"ReturnStatement";case 254:return"WithStatement";case 255:return"SwitchStatement";case 256:return"LabeledStatement";case 257:return"ThrowStatement";case 258:return"TryStatement";case 259:return"DebuggerStatement";case 260:return"VariableDeclaration";case 261:return"VariableDeclarationList";case 262:return"FunctionDeclaration";case 263:return"ClassDeclaration";case 264:return"InterfaceDeclaration";case 265:return"TypeAliasDeclaration";case 266:return"EnumDeclaration";case 267:return"ModuleDeclaration";case 268:return"ModuleBlock";case 269:return"CaseBlock";case 270:return"NamespaceExportDeclaration";case 271:return"ImportEqualsDeclaration";case 272:return"ImportDeclaration";case 273:return"ImportClause";case 274:return"NamespaceImport";case 275:return"NamedImports";case 276:return"ImportSpecifier";case 277:return"ExportAssignment";case 278:return"ExportDeclaration";case 279:return"NamedExports";case 280:return"NamespaceExport";case 281:return"ExportSpecifier";case 282:return"MissingDeclaration";case 283:return"ExternalModuleReference";case 284:return"JsxElement";case 285:return"JsxSelfClosingElement";case 286:return"JsxOpeningElement";case 287:return"JsxClosingElement";case 288:return"JsxFragment";case 289:return"JsxOpeningFragment";case 290:return"JsxClosingFragment";case 291:return"JsxAttribute";case 292:return"JsxAttributes";case 293:return"JsxSpreadAttribute";case 294:return"JsxExpression";case 295:return"JsxNamespacedName";case 296:return"CaseClause";case 297:return"DefaultClause";case 298:return"HeritageClause";case 299:return"CatchClause";case 300:return"AssertClause";case 301:return"AssertEntry";case 302:return"ImportTypeAssertionContainer";case 303:return"PropertyAssignment";case 304:return"ShorthandPropertyAssignment";case 305:return"SpreadAssignment";case 306:return"EnumMember";case 307:return"UnparsedPrologue";case 308:return"UnparsedPrepend";case 309:return"UnparsedText";case 310:return"UnparsedInternalText";case 311:return"UnparsedSyntheticReference";case 312:return"SourceFile";case 313:return"Bundle";case 314:return"UnparsedSource";case 315:return"InputFiles";case 316:return"JSDocTypeExpression";case 317:return"JSDocNameReference";case 318:return"JSDocMemberName";case 319:return"JSDocAllType";case 320:return"JSDocUnknownType";case 321:return"JSDocNullableType";case 322:return"JSDocNonNullableType";case 323:return"JSDocOptionalType";case 324:return"JSDocFunctionType";case 325:return"JSDocVariadicType";case 326:return"JSDocNamepathType";case 327:return"JSDoc";case 328:return"JSDocText";case 329:return"JSDocTypeLiteral";case 330:return"JSDocSignature";case 331:return"JSDocLink";case 332:return"JSDocLinkCode";case 333:return"JSDocLinkPlain";case 334:return"JSDocTag";case 335:return"JSDocAugmentsTag";case 336:return"JSDocImplementsTag";case 337:return"JSDocAuthorTag";case 338:return"JSDocDeprecatedTag";case 339:return"JSDocClassTag";case 340:return"JSDocPublicTag";case 341:return"JSDocPrivateTag";case 342:return"JSDocProtectedTag";case 343:return"JSDocReadonlyTag";case 344:return"JSDocOverrideTag";case 345:return"JSDocCallbackTag";case 346:return"JSDocOverloadTag";case 347:return"JSDocEnumTag";case 348:return"JSDocParameterTag";case 349:return"JSDocReturnTag";case 350:return"JSDocThisTag";case 351:return"JSDocTypeTag";case 352:return"JSDocTemplateTag";case 353:return"JSDocTypedefTag";case 354:return"JSDocSeeTag";case 355:return"JSDocPropertyTag";case 356:return"JSDocThrowsTag";case 357:return"JSDocSatisfiesTag";case 358:return"SyntaxList";case 359:return"NotEmittedStatement";case 360:return"PartiallyEmittedExpression";case 361:return"CommaListExpression";case 362:return"SyntheticReferenceExpression";case 363:return"Count";default:return`Unknown ${p}`}}function C8t(p,g){const x=g.kind|0;switch(x){case 136:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g);case 187:{const L=g;return new Wu(21,[new xIt(zf(H=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](H),Zd(L.members)))])}case 242:case 278:return new Wu(0,[]);case 243:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"](g);case 262:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"](g);case 263:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"](g);case 264:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"](g);case 265:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"](g);case 266:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"](g);case 267:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"](g);case 272:return new Wu(0,[]);case 277:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"](g);default:{const L=Y0("node",`Unsupported node kind ${oX(x)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Node.fs",48);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(L),new Wu(0,[])}}}function D8t(p,g){let x;switch(g.type.kind|0){case 192:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](H);break}case 198:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](H);break}case 199:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](H);break}case 200:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadMappedTypeNode28272C00"](H);break}default:x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type)}return new Wu(5,[new o8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),g.name.getText(),x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters))])}function NIt(p,g){return cd(()=>{const x=new Bwt([],g);return uAt(L=>Wwt(L,x),p)})}function YRe(p,g){return Zd(NIt(p,g))}function wIt(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L=x.getTypeAtLocation(g.exprName),H=L.flags|0;if(YS(524288,H)!=null){const G=g.exprName.kind|0,ye=L.getSymbol();if(ye!=null){const Oe=ye,ot=Oe.declarations;if(ot==null)return new Wu(3,[new Nv(6,[])]);{const sn=ot[0];switch(sn.kind|0){case 263:return new Wu(12,[new vSt(Oe.name,lc(),lc(),lc(),lc())]);case 267:return new Wu(0,[]);default:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](sn)}}}else if(G===80){const Oe=g.exprName;let ot,At;const sn=x.getSymbolAtLocation(Oe),tr=Y0("type node (TypeQuery)","Missing symbol",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",29),Nt=sn;if(At=Nt==null?new ZI(1,[tr]):new ZI(0,[Nt]),At.tag===1)ot=new ZI(1,[At.fields[0]]);else{let Ot;const bo=At.fields[0].declarations,Yr=Y0("type node (TypeQuery)","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",39),Ns=bo;if(Ot=Ns==null?new ZI(1,[Yr]):new ZI(0,[Ns]),Ot.tag===1)ot=new ZI(1,[Ot.fields[0]]);else{const ui=Ot.fields[0],Zr=ui.length!==1?new ZI(1,[Y0("type node (TypeQuery)","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",48)]):new ZI(0,[ui[0]]);if(Zr.tag===1)ot=new ZI(1,[Zr.fields[0]]);else{const Zi=Zr.fields[0];let jr;const lr=Zi.kind|0;if(jr=lr===260?new ZI(0,[Zi]):new ZI(1,[Y0("type node (TypeQuery)",`Unsupported declaration kind ${oX(lr)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",64)]),jr.tag===1)ot=new ZI(1,[jr.fields[0]]);else{let ra;const Ho=jr.fields[0].type,Ms=Y0("type node (TypeQuery)","Missing type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",74),cs=Ho;if(ra=cs==null?new ZI(1,[Ms]):new ZI(0,[cs]),ra.tag===1)ot=new ZI(1,[ra.fields[0]]);else{const ni=ra.fields[0],sf=ni.kind|0;if(sf===198){const Hg=ni;ot=new ZI(0,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](Hg)])}else ot=new ZI(1,[Y0("type node (TypeQuery)",`Unsupported declaration kind ${oX(sf)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",84)])}}}}}return ot.tag===1?(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ot.fields[0]),new Wu(0,[])):ot.fields[0]}else{const Oe=Y0("type node (TypeQuery)","Expected an Identifier",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",100);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),new Wu(3,[new Nv(6,[])])}}else return YS(4,H)!=null?new Wu(3,[new Nv(0,[])]):YS(8,H)!=null?new Wu(3,[new Nv(5,[])]):YS(16,H)!=null?new Wu(3,[new Nv(3,[])]):YS(1,H)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,H)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])])}class Q2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Single","ForceAny"]}}function SSt(p,g){const x=g.flags|0;if(YS(524288,x)!=null){const L=g.symbol.declarations;if(L==null)return new Wu(3,[new Nv(6,[])]);{const G=L[0];switch(G.kind|0){case 263:return new Wu(12,[new vSt(g.symbol.name,lc(),lc(),lc(),lc())]);case 267:return new Wu(0,[]);default:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](G)}}}else return YS(4,x)!=null?new Wu(3,[new Nv(0,[])]):YS(8,x)!=null?new Wu(3,[new Nv(5,[])]):YS(16,x)!=null?new Wu(3,[new Nv(3,[])]):YS(1,x)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,x)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])])}function I8t(p,g){let x,L,H,G,ye,Oe,ot;const At=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g);return new Wu(7,[new bSt((x=At.flags|0,YS(128,x)!=null?(L=PIt(At),L.tag===1?(H=Y0("Exclude","Expected a string literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",59),G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),G.push(H),lc()):_l(new Wu(8,[new vL(0,[L.fields[0]])]))):YS(256,x)!=null?(ye=Y2t(At),ye.tag===1?_l(new Wu(8,[new vL(2,[ye.fields[0]])])):ye.tag===2?(Oe=Y0("Exclude","Expected a number literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",69),ot=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),ot.push(Oe),lc()):_l(new Wu(8,[new vL(1,[ye.fields[0]])]))):EL(sn=>{const tr=sn.flags|0;if(YS(128,tr)!=null){const Nt=sn;return new Wu(8,[new vL(0,[Nt.value])])}else if(YS(256,tr)!=null){const Nt=Y2t(sn);switch(Nt.tag){case 1:return new Wu(8,[new vL(2,[Nt.fields[0]])]);case 2:{const Ot=Y0("Exclude","Expected a number literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",92);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Ot);return}default:return new Wu(8,[new vL(1,[Nt.fields[0]])])}}else return},Zd(At.types))))])}function U1t(p,g,x){let L;return Zd(NIt(EVe(EL(H=>{const G=H.declarations;if(G==null){const ye=Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",119);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ye);return}else return zO(ye=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](ye),G)},Zd((L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L.getPropertiesOfType(x))))),{Equals:g8,GetHashCode:FRe}))}function k8t(p,g){let x;const L=df(g.typeArguments)[0];x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(L);let G;const ye=x.flags|0;if(YS(1,ye)!=null){const Oe=Y0("partial inner type","Was not able to resolve the inner type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",135);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),G=lc()}else G=U1t(p,g,x);return new Wu(26,[new Hne(0,[new ySt(Wje(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),g),g.typeName.getText(),G,lc(),lc())])])}function P8t(p,g){const x=j1t(p,g);return new Wu(26,[new Hne(1,[new u8t(Ebt(0,x),Ebt(1,x))])])}function N8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().typeToTypeNode(x,void 0,void 0);if(L==null)return new Wu(26,[new Hne(2,[SSt(p,x)])]);{const H=L;return new Wu(26,[new Hne(2,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)])])}}function w8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().typeToTypeNode(x,void 0,void 0);if(L==null)return new Wu(26,[new Hne(3,[SSt(p,x)])]);{const H=L;return new Wu(26,[new Hne(3,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)])])}}function R8t(p,g){let x,L,H,G,ye;const Oe=df(g.typeArguments)[1];ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(Oe);const At=bo=>{const Yr=PIt(bo);if(Yr.tag===1){const Ns=Y0("keysToOmit","Expected a string literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",206);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Ns);return}else return Yr.fields[0]},sn=ye.isUnion()?oMe(At,ye.types):bL(gz(fg,At(ye)),[]);let tr;const Nt=df(g.typeArguments)[0];return tr=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(Nt),new Wu(26,[new Hne(4,[EL(bo=>{const Yr=bo.declarations;if(Yr==null)throw new Error(Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",258));{const Ns=Yr;if(Ns.length===1)return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](Ns[0]);{const ui=Y0("type node","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",249);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ui);return}}},Zd(uAt(bo=>!wwt(bo.name,sn,{Equals:(Yr,Ns)=>Yr===Ns,GetHashCode:TVe}),(x=tr.flags|0,YS(1,x)!=null?(L=Y0("omit base type","Was not able to resolve the base type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",226),H=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),H.push(L),[]):(G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),G.getPropertiesOfType(tr))))))])])}function M8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=x.flags|0;let H;switch(YS(524288,L)!=null||YS(2097152,L)!=null?H=0:H=1,H){case 0:return new Wu(26,[new Hne(5,[new X2t(0,[U1t(p,g,x)])])]);default:if(YS(1048576,L)!=null){const G=x;try{return new Wu(26,[new Hne(5,[new X2t(1,[Zd(oMe(ye=>{let Oe,ot;if(Oe=ye.flags,(Oe&524288)!==0)return ot=df(ye.aliasTypeArguments)[0].symbol.name,new ySt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getFullyQualifiedName(df(ye.aliasTypeArguments)[0].symbol),ot,U1t(p,g,ye),lc(),lc())},G.types))])])])}catch{const Oe=Y0("Readonly","Unable to read the members of the union type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",307);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),new Wu(3,[new Nv(6,[])])}}else return new Wu(3,[new Nv(6,[])])}}function L8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();switch(g.kind|0){case 106:return new Wu(3,[new Nv(7,[])]);case 116:return new Wu(3,[new Nv(4,[])]);case 133:return new Wu(3,[new Nv(6,[])]);case 136:return new Wu(3,[new Nv(3,[])]);case 146:return new Wu(3,[new Nv(11,[])]);case 150:return new Wu(3,[new Nv(5,[])]);case 151:return new Wu(3,[new Nv(9,[])]);case 154:return new Wu(3,[new Nv(0,[])]);case 155:return new Wu(3,[new Nv(10,[])]);case 157:return new Wu(3,[new Nv(8,[])]);case 159:return new Wu(23,[]);case 182:return new Wu(3,[new Nv(3,[])]);case 183:{const H=g,G=x.getSymbolAtLocation(H.typeName),ye=Oe=>{const ot=df(G).flags|0;return p8t(262144,ot)!=null?new Wu(16,[df(G).name]):new Wu(13,[new K2t(H.typeName.getText(),Wje(x,H.typeName),j1t(p,H),Oe)])};if(V1t(G))switch(Wje(x,H.typeName)){case"Exclude":return I8t(p,H);case"Partial":return k8t(p,H);case"Record":return P8t(p,H);case"ReturnType":return N8t(p,H);case"ThisParameterType":return w8t(p,H);case"Omit":return R8t(p,H);case"Readonly":return M8t(p,H);default:return ye(!0)}else return ye(!1)}case 184:{const H=g;let G;try{const ye=H.parent.parent.typeParameters;G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](ye)}catch{p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Y0("FunctionType","Unable to find TypeParameters information",H,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",384)),G=lc()}return new Wu(15,[new c8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type),G,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](H.parameters))])}case 185:return new Wu(28,[]);case 186:return wIt(p,g);case 187:{const H=g;return new Wu(21,[new xIt(zf(G=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](G),Zd(H.members)))])}case 188:{const H=g;return new Wu(14,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.elementType)])}case 189:{const H=g;return new Wu(18,[zf(G=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G),Zd(H.elements))])}case 190:{const H=g;return new Wu(22,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type)])}case 192:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](g);case 193:{const H=g,G=x.getTypeAtLocation(H),ye=EL(Oe=>{const ot=Oe.declarations;if(ot==null)throw new Error(Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",495));{const At=ot;return At.length===1?new Q2t(0,[At[0]]):new Q2t(1,[])}},G.isUnion()?YRe(nTe(zf(Oe=>Zd(x.getPropertiesOfType(Oe)),Zd(G.types))),{Equals:g8,GetHashCode:nX}):Zd(G.getProperties()));return eat(Oe=>Oe.tag===0?Oe.fields[0].kind===174:!0,ye)?new Wu(3,[new Nv(6,[])]):new Wu(20,[EL(Oe=>{if(Oe.tag===1)throw new Error("Sould not happen here");return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](Oe.fields[0])},ye)])}case 194:{const H=g,G=SSt(p,x.getTypeAtLocation(H));let ye,Oe;switch(G.tag===3&&G.fields[0].tag===6?ye=0:(ye=1,Oe=G),ye){case 0:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.checkType);default:return Oe}}case 196:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type)}case 197:{const H=g,G=x.getTypeAtLocation(H);let ye;const Oe=G.symbol.declarations;if(Oe==null)ye=lc();else{const ot=Oe;if(ot.length!==1)ye=lc();else{const At=ot[0];switch(At.kind|0){case 263:case 264:{const tr=At;ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](tr.typeParameters);break}default:ye=lc()}}}return new Wu(17,[new d8t(G.symbol.name,ye)])}case 198:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](H)}case 199:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](H)}case 201:{const G=TSt(g.literal);if(G==null)throw new Error(Y0("type node - literal type","Could not read literal type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",413));return new Wu(8,[G])}case 202:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNamedTupleMemberZ6E17C942"](g);case 203:return new Wu(25,[]);case 233:{const H=g,G=x.getTypeFromTypeNode(H);return new Wu(13,[new K2t(H.expression.getText(),Wje(x,H.expression),j1t(p,H),V1t(G.aliasSymbol))])}default:{const H=Y0("type node",`Unsupported kind ${oX(g.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",600);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(H),new Wu(3,[new Nv(6,[])])}}}function O8t(p,g){if(bL(gz(x=>rTe(L=>L.kind===95,x),g.modifiers),!1)){const x=Zd(g.declarationList.declarations);if(yd(x))return new Wu(0,[]);{const L=Hp(x);let H;if(L.name.kind===80)H=L.name.getText();else throw new Error(Y0("variable statement","Unable to read variable name",L,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/VariableStatement.fs",29));return new Wu(2,[new AIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](L),H,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L.type))])}}else return new Wu(0,[])}function F8t(p,g){let x,L,H,G,ye,Oe,ot;switch(g.kind|0){case 171:{const sn=g,tr=sn.name;return new ZV(1,[new Uot((x=sn.name,x.text==null?x.getText():x.text),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),!1,sn.questionToken!=null,IIt(sn.modifiers),!1)])}case 172:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new ZV(1,[(L=tr.getText(),H=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),ye=sn.questionToken!=null,new Uot(L,H,G,W1e(sn.modifiers,126),ye,y8t(sn.modifiers),Nt?!0:Ot))])}case 173:{const sn=g,tr=sn.name;return new ZV(6,[(Oe=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),new t8t(tr.getText(),Oe,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type)))])}case 174:{const sn=g,tr=sn.name;return new ZV(0,[new X4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),sn.questionToken!=null,bL(gz(Nt=>rTe(Ot=>Ot.kind===126,Nt),sn.modifiers),!1))])}case 177:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new ZV(2,[new Z4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),W1e(sn.modifiers,126),Nt?!0:Ot)])}case 178:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new ZV(3,[new Q4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.parameters[0].type),W1e(sn.modifiers,126),Nt?!0:Ot)])}case 179:{const sn=g;return new ZV(4,[new Y4t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type))])}case 180:{const sn=g;return new ZV(7,[new n8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type))])}case 181:{const sn=g;return new ZV(5,[new e8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),(ot=sn.modifiers,ot==null?!1:rTe(tr=>tr.kind===148,ot)))])}default:throw new Error(Y0("declaration",`Unsupported kind ${oX(g.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Declaration.fs",171))}}function W8t(p,g){return nMe((x,L)=>{let H,G,ye,Oe;const ot=L.name;return new q4t((H=ot.kind|0,H===80?(G=ot,G.getText()):H===206?`arg${x}`:(ye=Y0("name",`Unsupported kind ${oX(ot.kind)}`,ot,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Parameters.fs",24),Oe=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),Oe.push(ye),`arg${x}`)),L.questionToken!=null,L.dotDotDotToken!=null,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L.type))},Zd(g))}var RIt={exports:{}};(function(p){var g={};/*! ***************************************************************************** +---%s%P()`,[G,p,sn,ot,At,g,x.getFullText(),tr]))}}function T8t(p,g,x){let L,H,G;const ye=x.initializer;if(ye!=null){const At=ye,sn=bSt(At);if(sn==null)throw new Error(Y0("enum member","readEnumCases: Unsupported enum initializer",At,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/EnumDeclaration.fs",49));{const tr=sn;let Nt,Ot;switch(tr.tag){case 4:case 3:{Nt=1;break}case 1:{Nt=0,Ot=tr;break}case 2:{Nt=0,Ot=tr;break}default:Nt=0,Ot=tr}switch(Nt){case 0:{G=Ot;break}default:throw new Error(Y0("enum member","Boolean and null literals are not supported in enums",At,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/EnumDeclaration.fs",41))}}}else{const At=p.getConstantValue(x);G=At==null?new vL(1,[g.NextCaseIndex]):typeof At=="number"?(L=At,Number.isSafeInteger(L)?new vL(1,[~~L]):new vL(2,[L])):(H=At,new vL(0,[H]))}const Oe=x.name,ot=(G.tag===1?G.fields[0]+1:g.NextCaseIndex+1)|0;return{Members:iU(g.Members,_l(new r8t(Oe.getText(),G))),NextCaseIndex:ot}}function S8t(p,g){let x;const L={Members:lc(),NextCaseIndex:0};let H;const G=tTe(g.members);return H=HO(wne((x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),ye=>Oe=>T8t(x,ye,Oe))),L,G),new i8t(g.name.getText(),H.Members)}function E8t(p,g){let x;const L=g.modifiers;x=L==null?!1:rTe(ye=>ye.kind===138,L);let H;const G=g.name;if(G==null)throw new Error(Y0("function declaration","Missing name",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/FunctionDeclaration.fs",25));return H=G.getText(),new a8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"](g),x,H,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](g.type),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](g.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters))}function x8t(p,g){const x=zf(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](L),Zd(g.members));return new hSt(Wje(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),g),g.name.getText(),x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters),IIt(p,g.heritageClauses))}function A8t(p,g){const x=g.name,L=g.getChildren(),H=rTe(ye=>ye.kind===145,L),G=Zd(EVe(oMe(ye=>{switch(ye.kind|0){case 268:return zf(At=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](At),tTe(ye.statements));default:return}},L)));return new s8t(x.getText(),H,!1,G)}function oX(p){switch(p){case 0:return"Unknown";case 1:return"EndOfFileToken";case 2:return"SingleLineCommentTrivia";case 3:return"MultiLineCommentTrivia";case 4:return"NewLineTrivia";case 5:return"WhitespaceTrivia";case 6:return"ShebangTrivia";case 7:return"ConflictMarkerTrivia";case 8:return"NonTextFileMarkerTrivia";case 9:return"NumericLiteral";case 10:return"BigIntLiteral";case 11:return"StringLiteral";case 12:return"JsxText";case 13:return"JsxTextAllWhiteSpaces";case 14:return"RegularExpressionLiteral";case 15:return"NoSubstitutionTemplateLiteral";case 16:return"TemplateHead";case 17:return"TemplateMiddle";case 18:return"TemplateTail";case 19:return"OpenBraceToken";case 20:return"CloseBraceToken";case 21:return"OpenParenToken";case 22:return"CloseParenToken";case 23:return"OpenBracketToken";case 24:return"CloseBracketToken";case 25:return"DotToken";case 26:return"DotDotDotToken";case 27:return"SemicolonToken";case 28:return"CommaToken";case 29:return"QuestionDotToken";case 30:return"LessThanToken";case 31:return"LessThanSlashToken";case 32:return"GreaterThanToken";case 33:return"LessThanEqualsToken";case 34:return"GreaterThanEqualsToken";case 35:return"EqualsEqualsToken";case 36:return"ExclamationEqualsToken";case 37:return"EqualsEqualsEqualsToken";case 38:return"ExclamationEqualsEqualsToken";case 39:return"EqualsGreaterThanToken";case 40:return"PlusToken";case 41:return"MinusToken";case 42:return"AsteriskToken";case 43:return"AsteriskAsteriskToken";case 44:return"SlashToken";case 45:return"PercentToken";case 46:return"PlusPlusToken";case 47:return"MinusMinusToken";case 48:return"LessThanLessThanToken";case 49:return"GreaterThanGreaterThanToken";case 50:return"GreaterThanGreaterThanGreaterThanToken";case 51:return"AmpersandToken";case 52:return"BarToken";case 53:return"CaretToken";case 54:return"ExclamationToken";case 55:return"TildeToken";case 56:return"AmpersandAmpersandToken";case 57:return"BarBarToken";case 58:return"QuestionToken";case 59:return"ColonToken";case 60:return"AtToken";case 61:return"QuestionQuestionToken";case 62:return"BacktickToken";case 63:return"HashToken";case 64:return"EqualsToken";case 65:return"PlusEqualsToken";case 66:return"MinusEqualsToken";case 67:return"AsteriskEqualsToken";case 68:return"AsteriskAsteriskEqualsToken";case 69:return"SlashEqualsToken";case 70:return"PercentEqualsToken";case 71:return"LessThanLessThanEqualsToken";case 72:return"GreaterThanGreaterThanEqualsToken";case 73:return"GreaterThanGreaterThanGreaterThanEqualsToken";case 74:return"AmpersandEqualsToken";case 75:return"BarEqualsToken";case 76:return"BarBarEqualsToken";case 77:return"AmpersandAmpersandEqualsToken";case 78:return"QuestionQuestionEqualsToken";case 79:return"CaretEqualsToken";case 80:return"Identifier";case 81:return"PrivateIdentifier";case 83:return"BreakKeyword";case 84:return"CaseKeyword";case 85:return"CatchKeyword";case 86:return"ClassKeyword";case 87:return"ConstKeyword";case 88:return"ContinueKeyword";case 89:return"DebuggerKeyword";case 90:return"DefaultKeyword";case 91:return"DeleteKeyword";case 92:return"DoKeyword";case 93:return"ElseKeyword";case 94:return"EnumKeyword";case 95:return"ExportKeyword";case 96:return"ExtendsKeyword";case 97:return"FalseKeyword";case 98:return"FinallyKeyword";case 99:return"ForKeyword";case 100:return"FunctionKeyword";case 101:return"IfKeyword";case 102:return"ImportKeyword";case 103:return"InKeyword";case 104:return"InstanceOfKeyword";case 105:return"NewKeyword";case 106:return"NullKeyword";case 107:return"ReturnKeyword";case 108:return"SuperKeyword";case 109:return"SwitchKeyword";case 110:return"ThisKeyword";case 111:return"ThrowKeyword";case 112:return"TrueKeyword";case 113:return"TryKeyword";case 114:return"TypeOfKeyword";case 115:return"VarKeyword";case 116:return"VoidKeyword";case 117:return"WhileKeyword";case 118:return"WithKeyword";case 119:return"ImplementsKeyword";case 120:return"InterfaceKeyword";case 121:return"LetKeyword";case 122:return"PackageKeyword";case 123:return"PrivateKeyword";case 124:return"ProtectedKeyword";case 125:return"PublicKeyword";case 126:return"StaticKeyword";case 127:return"YieldKeyword";case 128:return"AbstractKeyword";case 129:return"AccessorKeyword";case 130:return"AsKeyword";case 131:return"AssertsKeyword";case 132:return"AssertKeyword";case 133:return"AnyKeyword";case 134:return"AsyncKeyword";case 135:return"AwaitKeyword";case 136:return"BooleanKeyword";case 137:return"ConstructorKeyword";case 138:return"DeclareKeyword";case 139:return"GetKeyword";case 140:return"InferKeyword";case 141:return"IntrinsicKeyword";case 142:return"IsKeyword";case 143:return"KeyOfKeyword";case 144:return"ModuleKeyword";case 145:return"NamespaceKeyword";case 146:return"NeverKeyword";case 147:return"OutKeyword";case 148:return"ReadonlyKeyword";case 149:return"RequireKeyword";case 150:return"NumberKeyword";case 151:return"ObjectKeyword";case 152:return"SatisfiesKeyword";case 153:return"SetKeyword";case 154:return"StringKeyword";case 155:return"SymbolKeyword";case 156:return"TypeKeyword";case 157:return"UndefinedKeyword";case 158:return"UniqueKeyword";case 159:return"UnknownKeyword";case 160:return"UsingKeyword";case 161:return"FromKeyword";case 162:return"GlobalKeyword";case 163:return"BigIntKeyword";case 164:return"OverrideKeyword";case 165:return"OfKeyword";case 166:return"QualifiedName";case 167:return"ComputedPropertyName";case 168:return"TypeParameter";case 169:return"Parameter";case 170:return"Decorator";case 171:return"PropertySignature";case 172:return"PropertyDeclaration";case 173:return"MethodSignature";case 174:return"MethodDeclaration";case 175:return"ClassStaticBlockDeclaration";case 176:return"Constructor";case 177:return"GetAccessor";case 178:return"SetAccessor";case 179:return"CallSignature";case 180:return"ConstructSignature";case 181:return"IndexSignature";case 182:return"TypePredicate";case 183:return"TypeReference";case 184:return"FunctionType";case 185:return"ConstructorType";case 186:return"TypeQuery";case 187:return"TypeLiteral";case 188:return"ArrayType";case 189:return"TupleType";case 190:return"OptionalType";case 191:return"RestType";case 192:return"UnionType";case 193:return"IntersectionType";case 194:return"ConditionalType";case 195:return"InferType";case 196:return"ParenthesizedType";case 197:return"ThisType";case 198:return"TypeOperator";case 199:return"IndexedAccessType";case 200:return"MappedType";case 201:return"LiteralType";case 202:return"NamedTupleMember";case 203:return"TemplateLiteralType";case 204:return"TemplateLiteralTypeSpan";case 205:return"ImportType";case 206:return"ObjectBindingPattern";case 207:return"ArrayBindingPattern";case 208:return"BindingElement";case 209:return"ArrayLiteralExpression";case 210:return"ObjectLiteralExpression";case 211:return"PropertyAccessExpression";case 212:return"ElementAccessExpression";case 213:return"CallExpression";case 214:return"NewExpression";case 215:return"TaggedTemplateExpression";case 216:return"TypeAssertionExpression";case 217:return"ParenthesizedExpression";case 218:return"FunctionExpression";case 219:return"ArrowFunction";case 220:return"DeleteExpression";case 221:return"TypeOfExpression";case 222:return"VoidExpression";case 223:return"AwaitExpression";case 224:return"PrefixUnaryExpression";case 225:return"PostfixUnaryExpression";case 226:return"BinaryExpression";case 227:return"ConditionalExpression";case 228:return"TemplateExpression";case 229:return"YieldExpression";case 230:return"SpreadElement";case 231:return"ClassExpression";case 232:return"OmittedExpression";case 233:return"ExpressionWithTypeArguments";case 234:return"AsExpression";case 235:return"NonNullExpression";case 236:return"MetaProperty";case 237:return"SyntheticExpression";case 238:return"SatisfiesExpression";case 239:return"TemplateSpan";case 240:return"SemicolonClassElement";case 241:return"Block";case 242:return"EmptyStatement";case 243:return"VariableStatement";case 244:return"ExpressionStatement";case 245:return"IfStatement";case 246:return"DoStatement";case 247:return"WhileStatement";case 248:return"ForStatement";case 249:return"ForInStatement";case 250:return"ForOfStatement";case 251:return"ContinueStatement";case 252:return"BreakStatement";case 253:return"ReturnStatement";case 254:return"WithStatement";case 255:return"SwitchStatement";case 256:return"LabeledStatement";case 257:return"ThrowStatement";case 258:return"TryStatement";case 259:return"DebuggerStatement";case 260:return"VariableDeclaration";case 261:return"VariableDeclarationList";case 262:return"FunctionDeclaration";case 263:return"ClassDeclaration";case 264:return"InterfaceDeclaration";case 265:return"TypeAliasDeclaration";case 266:return"EnumDeclaration";case 267:return"ModuleDeclaration";case 268:return"ModuleBlock";case 269:return"CaseBlock";case 270:return"NamespaceExportDeclaration";case 271:return"ImportEqualsDeclaration";case 272:return"ImportDeclaration";case 273:return"ImportClause";case 274:return"NamespaceImport";case 275:return"NamedImports";case 276:return"ImportSpecifier";case 277:return"ExportAssignment";case 278:return"ExportDeclaration";case 279:return"NamedExports";case 280:return"NamespaceExport";case 281:return"ExportSpecifier";case 282:return"MissingDeclaration";case 283:return"ExternalModuleReference";case 284:return"JsxElement";case 285:return"JsxSelfClosingElement";case 286:return"JsxOpeningElement";case 287:return"JsxClosingElement";case 288:return"JsxFragment";case 289:return"JsxOpeningFragment";case 290:return"JsxClosingFragment";case 291:return"JsxAttribute";case 292:return"JsxAttributes";case 293:return"JsxSpreadAttribute";case 294:return"JsxExpression";case 295:return"JsxNamespacedName";case 296:return"CaseClause";case 297:return"DefaultClause";case 298:return"HeritageClause";case 299:return"CatchClause";case 300:return"AssertClause";case 301:return"AssertEntry";case 302:return"ImportTypeAssertionContainer";case 303:return"PropertyAssignment";case 304:return"ShorthandPropertyAssignment";case 305:return"SpreadAssignment";case 306:return"EnumMember";case 307:return"UnparsedPrologue";case 308:return"UnparsedPrepend";case 309:return"UnparsedText";case 310:return"UnparsedInternalText";case 311:return"UnparsedSyntheticReference";case 312:return"SourceFile";case 313:return"Bundle";case 314:return"UnparsedSource";case 315:return"InputFiles";case 316:return"JSDocTypeExpression";case 317:return"JSDocNameReference";case 318:return"JSDocMemberName";case 319:return"JSDocAllType";case 320:return"JSDocUnknownType";case 321:return"JSDocNullableType";case 322:return"JSDocNonNullableType";case 323:return"JSDocOptionalType";case 324:return"JSDocFunctionType";case 325:return"JSDocVariadicType";case 326:return"JSDocNamepathType";case 327:return"JSDoc";case 328:return"JSDocText";case 329:return"JSDocTypeLiteral";case 330:return"JSDocSignature";case 331:return"JSDocLink";case 332:return"JSDocLinkCode";case 333:return"JSDocLinkPlain";case 334:return"JSDocTag";case 335:return"JSDocAugmentsTag";case 336:return"JSDocImplementsTag";case 337:return"JSDocAuthorTag";case 338:return"JSDocDeprecatedTag";case 339:return"JSDocClassTag";case 340:return"JSDocPublicTag";case 341:return"JSDocPrivateTag";case 342:return"JSDocProtectedTag";case 343:return"JSDocReadonlyTag";case 344:return"JSDocOverrideTag";case 345:return"JSDocCallbackTag";case 346:return"JSDocOverloadTag";case 347:return"JSDocEnumTag";case 348:return"JSDocParameterTag";case 349:return"JSDocReturnTag";case 350:return"JSDocThisTag";case 351:return"JSDocTypeTag";case 352:return"JSDocTemplateTag";case 353:return"JSDocTypedefTag";case 354:return"JSDocSeeTag";case 355:return"JSDocPropertyTag";case 356:return"JSDocThrowsTag";case 357:return"JSDocSatisfiesTag";case 358:return"SyntaxList";case 359:return"NotEmittedStatement";case 360:return"PartiallyEmittedExpression";case 361:return"CommaListExpression";case 362:return"SyntheticReferenceExpression";case 363:return"Count";default:return`Unknown ${p}`}}function C8t(p,g){const x=g.kind|0;switch(x){case 136:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g);case 187:{const L=g;return new Wu(21,[new EIt(zf(H=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](H),Zd(L.members)))])}case 242:case 278:return new Wu(0,[]);case 243:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"](g);case 262:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"](g);case 263:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"](g);case 264:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"](g);case 265:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"](g);case 266:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"](g);case 267:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"](g);case 272:return new Wu(0,[]);case 277:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"](g);default:{const L=Y0("node",`Unsupported node kind ${oX(x)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Node.fs",48);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(L),new Wu(0,[])}}}function D8t(p,g){let x;switch(g.type.kind|0){case 192:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](H);break}case 198:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](H);break}case 199:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](H);break}case 200:{const H=g.type;x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadMappedTypeNode28272C00"](H);break}default:x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type)}return new Wu(5,[new o8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),g.name.getText(),x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](g.typeParameters))])}function PIt(p,g){return cd(()=>{const x=new Bwt([],g);return lAt(L=>Wwt(L,x),p)})}function YRe(p,g){return Zd(PIt(p,g))}function NIt(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L=x.getTypeAtLocation(g.exprName),H=L.flags|0;if(YS(524288,H)!=null){const G=g.exprName.kind|0,ye=L.getSymbol();if(ye!=null){const Oe=ye,ot=Oe.declarations;if(ot==null)return new Wu(3,[new Nv(6,[])]);{const sn=ot[0];switch(sn.kind|0){case 263:return new Wu(12,[new ySt(Oe.name,lc(),lc(),lc(),lc())]);case 267:return new Wu(0,[]);default:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](sn)}}}else if(G===80){const Oe=g.exprName;let ot,At;const sn=x.getSymbolAtLocation(Oe),tr=Y0("type node (TypeQuery)","Missing symbol",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",29),Nt=sn;if(At=Nt==null?new ZI(1,[tr]):new ZI(0,[Nt]),At.tag===1)ot=new ZI(1,[At.fields[0]]);else{let Ot;const bo=At.fields[0].declarations,Yr=Y0("type node (TypeQuery)","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",39),Ns=bo;if(Ot=Ns==null?new ZI(1,[Yr]):new ZI(0,[Ns]),Ot.tag===1)ot=new ZI(1,[Ot.fields[0]]);else{const ui=Ot.fields[0],Zr=ui.length!==1?new ZI(1,[Y0("type node (TypeQuery)","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",48)]):new ZI(0,[ui[0]]);if(Zr.tag===1)ot=new ZI(1,[Zr.fields[0]]);else{const Zi=Zr.fields[0];let jr;const lr=Zi.kind|0;if(jr=lr===260?new ZI(0,[Zi]):new ZI(1,[Y0("type node (TypeQuery)",`Unsupported declaration kind ${oX(lr)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",64)]),jr.tag===1)ot=new ZI(1,[jr.fields[0]]);else{let ra;const Ho=jr.fields[0].type,Ms=Y0("type node (TypeQuery)","Missing type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",74),cs=Ho;if(ra=cs==null?new ZI(1,[Ms]):new ZI(0,[cs]),ra.tag===1)ot=new ZI(1,[ra.fields[0]]);else{const ni=ra.fields[0],sf=ni.kind|0;if(sf===198){const Hg=ni;ot=new ZI(0,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](Hg)])}else ot=new ZI(1,[Y0("type node (TypeQuery)",`Unsupported declaration kind ${oX(sf)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",84)])}}}}}return ot.tag===1?(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ot.fields[0]),new Wu(0,[])):ot.fields[0]}else{const Oe=Y0("type node (TypeQuery)","Expected an Identifier",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeQueryNode.fs",100);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),new Wu(3,[new Nv(6,[])])}}else return YS(4,H)!=null?new Wu(3,[new Nv(0,[])]):YS(8,H)!=null?new Wu(3,[new Nv(5,[])]):YS(16,H)!=null?new Wu(3,[new Nv(3,[])]):YS(1,H)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,H)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])])}class Y2t extends wh{constructor(g,x){super(),this.tag=g,this.fields=x}cases(){return["Single","ForceAny"]}}function TSt(p,g){const x=g.flags|0;if(YS(524288,x)!=null){const L=g.symbol.declarations;if(L==null)return new Wu(3,[new Nv(6,[])]);{const G=L[0];switch(G.kind|0){case 263:return new Wu(12,[new ySt(g.symbol.name,lc(),lc(),lc(),lc())]);case 267:return new Wu(0,[]);default:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](G)}}}else return YS(4,x)!=null?new Wu(3,[new Nv(0,[])]):YS(8,x)!=null?new Wu(3,[new Nv(5,[])]):YS(16,x)!=null?new Wu(3,[new Nv(3,[])]):YS(1,x)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,x)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])])}function I8t(p,g){let x,L,H,G,ye,Oe,ot;const At=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g);return new Wu(7,[new vSt((x=At.flags|0,YS(128,x)!=null?(L=kIt(At),L.tag===1?(H=Y0("Exclude","Expected a string literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",59),G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),G.push(H),lc()):_l(new Wu(8,[new vL(0,[L.fields[0]])]))):YS(256,x)!=null?(ye=X2t(At),ye.tag===1?_l(new Wu(8,[new vL(2,[ye.fields[0]])])):ye.tag===2?(Oe=Y0("Exclude","Expected a number literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",69),ot=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),ot.push(Oe),lc()):_l(new Wu(8,[new vL(1,[ye.fields[0]])]))):SL(sn=>{const tr=sn.flags|0;if(YS(128,tr)!=null){const Nt=sn;return new Wu(8,[new vL(0,[Nt.value])])}else if(YS(256,tr)!=null){const Nt=X2t(sn);switch(Nt.tag){case 1:return new Wu(8,[new vL(2,[Nt.fields[0]])]);case 2:{const Ot=Y0("Exclude","Expected a number literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",92);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Ot);return}default:return new Wu(8,[new vL(1,[Nt.fields[0]])])}}else return},Zd(At.types))))])}function V1t(p,g,x){let L;return Zd(PIt(EVe(SL(H=>{const G=H.declarations;if(G==null){const ye=Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",119);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ye);return}else return zO(ye=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](ye),G)},Zd((L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L.getPropertiesOfType(x))))),{Equals:g8,GetHashCode:FRe}))}function k8t(p,g){let x;const L=df(g.typeArguments)[0];x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(L);let G;const ye=x.flags|0;if(YS(1,ye)!=null){const Oe=Y0("partial inner type","Was not able to resolve the inner type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",135);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),G=lc()}else G=V1t(p,g,x);return new Wu(26,[new Hne(0,[new hSt(Wje(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),g),g.typeName.getText(),G,lc(),lc())])])}function P8t(p,g){const x=G1t(p,g);return new Wu(26,[new Hne(1,[new u8t(Sbt(0,x),Sbt(1,x))])])}function N8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().typeToTypeNode(x,void 0,void 0);if(L==null)return new Wu(26,[new Hne(2,[TSt(p,x)])]);{const H=L;return new Wu(26,[new Hne(2,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)])])}}function w8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().typeToTypeNode(x,void 0,void 0);if(L==null)return new Wu(26,[new Hne(3,[TSt(p,x)])]);{const H=L;return new Wu(26,[new Hne(3,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)])])}}function R8t(p,g){let x,L,H,G,ye;const Oe=df(g.typeArguments)[1];ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(Oe);const At=bo=>{const Yr=kIt(bo);if(Yr.tag===1){const Ns=Y0("keysToOmit","Expected a string literal",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",206);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Ns);return}else return Yr.fields[0]},sn=ye.isUnion()?oMe(At,ye.types):m8(uU(fg,At(ye)),[]);let tr;const Nt=df(g.typeArguments)[0];return tr=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(Nt),new Wu(26,[new Hne(4,[SL(bo=>{const Yr=bo.declarations;if(Yr==null)throw new Error(Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",258));{const Ns=Yr;if(Ns.length===1)return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](Ns[0]);{const ui=Y0("type node","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",249);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ui);return}}},Zd(lAt(bo=>!wwt(bo.name,sn,{Equals:(Yr,Ns)=>Yr===Ns,GetHashCode:TVe}),(x=tr.flags|0,YS(1,x)!=null?(L=Y0("omit base type","Was not able to resolve the base type, and defaulting to any. If the base type is defined, in another file, please make sure to include it in the input files",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",226),H=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),H.push(L),[]):(G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),G.getPropertiesOfType(tr))))))])])}function M8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeFromTypeNode(g),L=x.flags|0;let H;switch(YS(524288,L)!=null||YS(2097152,L)!=null?H=0:H=1,H){case 0:return new Wu(26,[new Hne(5,[new K2t(0,[V1t(p,g,x)])])]);default:if(YS(1048576,L)!=null){const G=x;try{return new Wu(26,[new Hne(5,[new K2t(1,[Zd(oMe(ye=>{let Oe,ot;if(Oe=ye.flags,(Oe&524288)!==0)return ot=df(ye.aliasTypeArguments)[0].symbol.name,new hSt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getFullyQualifiedName(df(ye.aliasTypeArguments)[0].symbol),ot,V1t(p,g,ye),lc(),lc())},G.types))])])])}catch{const Oe=Y0("Readonly","Unable to read the members of the union type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",307);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Oe),new Wu(3,[new Nv(6,[])])}}else return new Wu(3,[new Nv(6,[])])}}function L8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]();switch(g.kind|0){case 106:return new Wu(3,[new Nv(7,[])]);case 116:return new Wu(3,[new Nv(4,[])]);case 133:return new Wu(3,[new Nv(6,[])]);case 136:return new Wu(3,[new Nv(3,[])]);case 146:return new Wu(3,[new Nv(11,[])]);case 150:return new Wu(3,[new Nv(5,[])]);case 151:return new Wu(3,[new Nv(9,[])]);case 154:return new Wu(3,[new Nv(0,[])]);case 155:return new Wu(3,[new Nv(10,[])]);case 157:return new Wu(3,[new Nv(8,[])]);case 159:return new Wu(23,[]);case 182:return new Wu(3,[new Nv(3,[])]);case 183:{const H=g,G=x.getSymbolAtLocation(H.typeName),ye=Oe=>{const ot=df(G).flags|0;return p8t(262144,ot)!=null?new Wu(16,[df(G).name]):new Wu(13,[new q2t(H.typeName.getText(),Wje(x,H.typeName),G1t(p,H),Oe)])};if(j1t(G))switch(Wje(x,H.typeName)){case"Exclude":return I8t(p,H);case"Partial":return k8t(p,H);case"Record":return P8t(p,H);case"ReturnType":return N8t(p,H);case"ThisParameterType":return w8t(p,H);case"Omit":return R8t(p,H);case"Readonly":return M8t(p,H);default:return ye(!0)}else return ye(!1)}case 184:{const H=g;let G;try{const ye=H.parent.parent.typeParameters;G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](ye)}catch{p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(Y0("FunctionType","Unable to find TypeParameters information",H,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",384)),G=lc()}return new Wu(15,[new c8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type),G,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](H.parameters))])}case 185:return new Wu(28,[]);case 186:return NIt(p,g);case 187:{const H=g;return new Wu(21,[new EIt(zf(G=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](G),Zd(H.members)))])}case 188:{const H=g;return new Wu(14,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.elementType)])}case 189:{const H=g;return new Wu(18,[zf(G=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G),Zd(H.elements))])}case 190:{const H=g;return new Wu(22,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type)])}case 192:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"](g);case 193:{const H=g,G=x.getTypeAtLocation(H),ye=SL(Oe=>{const ot=Oe.declarations;if(ot==null)throw new Error(Y0("type node","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",495));{const At=ot;return At.length===1?new Y2t(0,[At[0]]):new Y2t(1,[])}},G.isUnion()?YRe(nTe(zf(Oe=>Zd(x.getPropertiesOfType(Oe)),Zd(G.types))),{Equals:g8,GetHashCode:nX}):Zd(G.getProperties()));return eat(Oe=>Oe.tag===0?Oe.fields[0].kind===174:!0,ye)?new Wu(3,[new Nv(6,[])]):new Wu(20,[SL(Oe=>{if(Oe.tag===1)throw new Error("Sould not happen here");return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"](Oe.fields[0])},ye)])}case 194:{const H=g,G=TSt(p,x.getTypeAtLocation(H));let ye,Oe;switch(G.tag===3&&G.fields[0].tag===6?ye=0:(ye=1,Oe=G),ye){case 0:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.checkType);default:return Oe}}case 196:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H.type)}case 197:{const H=g,G=x.getTypeAtLocation(H);let ye;const Oe=G.symbol.declarations;if(Oe==null)ye=lc();else{const ot=Oe;if(ot.length!==1)ye=lc();else{const At=ot[0];switch(At.kind|0){case 263:case 264:{const tr=At;ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"](tr.typeParameters);break}default:ye=lc()}}}return new Wu(17,[new d8t(G.symbol.name,ye)])}case 198:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](H)}case 199:{const H=g;return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"](H)}case 201:{const G=bSt(g.literal);if(G==null)throw new Error(Y0("type node - literal type","Could not read literal type",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",413));return new Wu(8,[G])}case 202:return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNamedTupleMemberZ6E17C942"](g);case 203:return new Wu(25,[]);case 233:{const H=g,G=x.getTypeFromTypeNode(H);return new Wu(13,[new q2t(H.expression.getText(),Wje(x,H.expression),G1t(p,H),j1t(G.aliasSymbol))])}default:{const H=Y0("type node",`Unsupported kind ${oX(g.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeNode.fs",600);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(H),new Wu(3,[new Nv(6,[])])}}}function O8t(p,g){if(m8(uU(x=>rTe(L=>L.kind===95,x),g.modifiers),!1)){const x=Zd(g.declarationList.declarations);if(yd(x))return new Wu(0,[]);{const L=Hp(x);let H;if(L.name.kind===80)H=L.name.getText();else throw new Error(Y0("variable statement","Unable to read variable name",L,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/VariableStatement.fs",29));return new Wu(2,[new xIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](L),H,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L.type))])}}else return new Wu(0,[])}function F8t(p,g){let x,L,H,G,ye,Oe,ot;switch(g.kind|0){case 171:{const sn=g,tr=sn.name;return new QV(1,[new Uot((x=sn.name,x.text==null?x.getText():x.text),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),!1,sn.questionToken!=null,DIt(sn.modifiers),!1)])}case 172:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new QV(1,[(L=tr.getText(),H=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),ye=sn.questionToken!=null,new Uot(L,H,G,W1e(sn.modifiers,126),ye,y8t(sn.modifiers),Nt?!0:Ot))])}case 173:{const sn=g,tr=sn.name;return new QV(6,[(Oe=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),new t8t(tr.getText(),Oe,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type)))])}case 174:{const sn=g,tr=sn.name;return new QV(0,[new X4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),sn.questionToken!=null,m8(uU(Nt=>rTe(Ot=>Ot.kind===126,Nt),sn.modifiers),!1))])}case 177:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new QV(2,[new Z4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),W1e(sn.modifiers,126),Nt?!0:Ot)])}case 178:{const sn=g,tr=sn.name,Nt=W1e(sn.modifiers,123),Ot=tr.kind===81;return new QV(3,[new Q4t(tr.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](tr),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.parameters[0].type),W1e(sn.modifiers,126),Nt?!0:Ot)])}case 179:{const sn=g;return new QV(4,[new Y4t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type))])}case 180:{const sn=g;return new QV(7,[new n8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type))])}case 181:{const sn=g;return new QV(5,[new e8t(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"](sn.parameters),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](sn.type),(ot=sn.modifiers,ot==null?!1:rTe(tr=>tr.kind===148,ot)))])}default:throw new Error(Y0("declaration",`Unsupported kind ${oX(g.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Declaration.fs",171))}}function W8t(p,g){return nMe((x,L)=>{let H,G,ye,Oe;const ot=L.name;return new q4t((H=ot.kind|0,H===80?(G=ot,G.getText()):H===206?`arg${x}`:(ye=Y0("name",`Unsupported kind ${oX(ot.kind)}`,ot,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/Parameters.fs",24),Oe=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"](),Oe.push(ye),`arg${x}`)),L.questionToken!=null,L.dotDotDotToken!=null,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](L.type))},Zd(g))}var wIt={exports:{}};(function(p){var g={};/*! ***************************************************************************** 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 @@ -30541,9 +30541,9 @@ ${x.parent.getFullText()} See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var x=(()=>{var L=Object.defineProperty,H=Object.getOwnPropertyNames,G=(t,r)=>function(){return t&&(r=(0,t[H(t)[0]])(t=0)),r},ye=(t,r)=>function(){return r||(0,t[H(t)[0]])((r={exports:{}}).exports,r),r.exports},Oe=(t,r)=>{for(var s in r)L(t,s,{get:r[s],enumerable:!0})},ot,At,sn,tr=G({"src/compiler/corePublic.ts"(){ot="5.2",At="5.2.2",sn=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(sn||{})}});function Nt(t){return t?t.length:0}function Ot(t,r){if(t)for(let s=0;s=0;s--){const l=r(t[s],s);if(l)return l}}function Yr(t,r){if(t!==void 0)for(let s=0;s=0;l--){const m=t[l];if(r(m,l))return m}}function Ho(t,r,s){if(t===void 0)return-1;for(let l=s??0;l=0;l--)if(r(t[l],l))return l;return-1}function cs(t,r){for(let s=0;ss(l,r[m]))}function Hg(t,r,s){for(let l=s||0;l{const y=r(m,l);if(y!==void 0){const[T,D]=y;T!==void 0&&D!==void 0&&s.set(T,D)}}),s}function Jw(t,r,s){if(t.has(r))return t.get(r);const l=s();return t.set(r,l),l}function m2(t,r){return t.has(r)?!1:(t.add(r),!0)}function*Zf(t){yield t}function fa(t,r,s){let l;if(t){l=[];const m=t.length;let y,T,D=0,I=0;for(;D{const[y,T]=r(m,l);s.set(y,T)}),s}function gt(t,r){if(t)if(r){for(const s of t)if(r(s))return!0}else return t.length>0;return!1}function eu(t,r,s){let l;for(let m=0;mt[T])}function QS(t,r){const s=[];for(const l of t)Dy(s,l,r);return s}function th(t,r,s){return t.length===0?[]:t.length===1?t.slice():s?xS(t,r,s):QS(t,r)}function WC(t,r){if(t.length===0)return Zn;let s=t[0];const l=[s];for(let m=1;m0&&(m&=-2),m&2&&l(y,I)>0&&(m&=-3),y=I}return m}function fv(t,r,s=_1){if(!t||!r)return t===r;if(t.length!==r.length)return!1;for(let l=0;l0&&ce.assertGreaterThanOrEqual(s(r[y],r[y-1]),0);t:for(const T=m;mT&&ce.assertGreaterThanOrEqual(s(t[m],t[m-1]),0),s(r[y],t[m])){case-1:l.push(r[y]);continue e;case 0:continue e;case 1:continue t}}return l}function ur(t,r){return r===void 0?t:t===void 0?[r]:(t.push(r),t)}function FD(t,r){return t===void 0?r:r===void 0?t:ls(t)?ls(r)?Hi(t,r):ur(t,r):ls(r)?ur(r,t):[t,r]}function hz(t,r){return r<0?t.length+r:r}function Oi(t,r,s,l){if(r===void 0||r.length===0)return t;if(t===void 0)return r.slice(s,l);s=s===void 0?0:hz(r,s),l=l===void 0?r.length:hz(r,l);for(let m=s;ms(t[l],t[m])||pf(l,m))}function fN(t,r){return t.length===0?t:t.slice().sort(r)}function*fU(t){for(let r=t.length-1;r>=0;r--)yield t[r]}function nh(t,r){const s=Cy(t);return L_e(t,s,r),s.map(l=>t[l])}function yz(t,r,s,l){for(;s>1),I=s(t[D],D);switch(l(I,r)){case-1:y=D+1;break;case 0:return D;case 1:T=D-1;break}}return~y}function Em(t,r,s,l,m){if(t&&t.length>0){const y=t.length;if(y>0){let T=l===void 0||l<0?0:l;const D=m===void 0||T+m>y-1?y-1:T+m;let I;for(arguments.length<=2?(I=t[T],T++):I=s;T<=D;)I=r(I,t[T],T),T++;return I}}return s}function ef(t,r){return eC.call(t,r)}function T8(t,r){return eC.call(t,r)?t[r]:void 0}function ET(t){const r=[];for(const s in t)eC.call(t,s)&&r.push(s);return r}function _Te(t){const r=[];do{const s=Object.getOwnPropertyNames(t);for(const l of s)Dy(r,l)}while(t=Object.getPrototypeOf(t));return r}function ik(t){const r=[];for(const s in t)eC.call(t,s)&&r.push(t[s]);return r}function bz(t,r){const s=new Array(t);for(let l=0;l100&&s>r.length>>1){const D=r.length-s;r.copyWithin(0,s),r.length=D,s=0}return T}return{enqueue:m,dequeue:y,isEmpty:l}}function J5(t,r){const s=new Map;let l=0;function*m(){for(const T of s.values())ls(T)?yield*T:yield T}const y={has(T){const D=t(T);if(!s.has(D))return!1;const I=s.get(D);if(!ls(I))return r(I,T);for(const W of I)if(r(W,T))return!0;return!1},add(T){const D=t(T);if(s.has(D)){const I=s.get(D);if(ls(I))ni(I,T,r)||(I.push(T),l++);else{const W=I;r(W,T)||(s.set(D,[W,T]),l++)}}else s.set(D,T),l++;return this},delete(T){const D=t(T);if(!s.has(D))return!1;const I=s.get(D);if(ls(I)){for(let W=0;Wm(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return y}function ls(t){return Array.isArray(t)}function BC(t){return ls(t)?t:[t]}function As(t){return typeof t=="string"}function U1(t){return typeof t=="number"}function to(t,r){return t!==void 0&&r(t)?t:void 0}function uc(t,r){return t!==void 0&&r(t)?t:ce.fail(`Invalid cast. The supplied value ${t} did not pass the test '${ce.getFunctionName(r)}'.`)}function ku(t){}function bg(){return!1}function xT(){return!0}function eE(){}function Of(t){return t}function x8(t){return t.toLowerCase()}function Q0(t){return $ne.test(t)?t.replace($ne,x8):t}function Na(){throw new Error("Not implemented")}function Pd(t){let r;return()=>(t&&(r=t(),t=void 0),r)}function p0(t){const r=new Map;return s=>{const l=`${typeof s}:${s}`;let m=r.get(l);return m===void 0&&!r.has(l)&&(m=t(s),r.set(l,m)),m}}function NVe(t){const r=new WeakMap;return s=>{let l=r.get(s);return l===void 0&&!r.has(s)&&(l=t(s),r.set(s,l)),l}}function JO(t,r){return(...s)=>{let l=r.get(s);return l===void 0&&!r.has(s)&&(l=t(...s),r.set(s,l)),l}}function wVe(t,r,s,l,m){if(m){const y=[];for(let T=0;TEm(y,(D,I)=>I(D),T)}else return l?y=>l(s(r(t(y)))):s?y=>s(r(t(y))):r?y=>r(t(y)):t?y=>t(y):y=>y}function _1(t,r){return t===r}function pN(t,r){return t===r||t!==void 0&&r!==void 0&&t.toUpperCase()===r.toUpperCase()}function ZA(t,r){return _1(t,r)}function lMe(t,r){return t===r?0:t===void 0?-1:r===void 0?1:tr(s,l)===-1?s:l)}function Kw(t,r){return t===r?0:t===void 0?-1:r===void 0?1:(t=t.toUpperCase(),r=r.toUpperCase(),tr?1:0)}function rP(t,r){return t===r?0:t===void 0?-1:r===void 0?1:(t=t.toLowerCase(),r=r.toLowerCase(),tr?1:0)}function Fp(t,r){return lMe(t,r)}function Xw(t){return t?Kw:Fp}function dTe(){return hTe}function $5(t){hTe!==t&&(hTe=t,re=void 0)}function q5(t,r){return(re||(re=O_e(hTe)))(t,r)}function mN(t,r,s,l){return t===r?0:t===void 0?-1:r===void 0?1:l(t[s],r[s])}function Z0(t,r){return pf(t?1:0,r?1:0)}function fh(t,r,s){const l=Math.max(2,Math.floor(t.length*.34));let m=Math.floor(t.length*.4)+1,y;for(const T of r){const D=s(T);if(D!==void 0&&Math.abs(D.length-t.length)<=l){if(D===t||D.length<3&&D.toLowerCase()!==t.toLowerCase())continue;const I=$O(t,D,m-.1);if(I===void 0)continue;ce.assert(Is?D-s:1),O=Math.floor(r.length>s+D?s+D:r.length);m[0]=D;let V=D;for(let te=1;tes)return;const ee=l;l=m,m=ee}const T=l[r.length];return T>s?void 0:T}function h_(t,r){const s=t.length-r.length;return s>=0&&t.indexOf(r,s)===s}function DM(t,r){return h_(t,r)?t.slice(0,t.length-r.length):t}function K5(t,r){return h_(t,r)?t.slice(0,t.length-r.length):void 0}function Ub(t,r){return t.indexOf(r)!==-1}function AL(t){let r=t.length;for(let s=r-1;s>0;s--){let l=t.charCodeAt(s);if(l>=48&&l<=57)do--s,l=t.charCodeAt(s);while(s>0&&l>=48&&l<=57);else if(s>4&&(l===110||l===78)){if(--s,l=t.charCodeAt(s),l!==105&&l!==73||(--s,l=t.charCodeAt(s),l!==109&&l!==77))break;--s,l=t.charCodeAt(s)}else break;if(l!==45&&l!==46)break;r=s}return r===t.length?t:t.slice(0,r)}function Yw(t,r){for(let s=0;ss===r)}function H1(t,r){for(let s=0;sm&&(m=T.prefix.length,l=y)}return l}function xf(t,r){return t.lastIndexOf(r,0)===0}function Ez(t,r){return xf(t,r)?t.substr(r.length):t}function C8(t,r,s=Of){return xf(s(t),s(r))?t.substring(r.length):void 0}function mU({prefix:t,suffix:r},s){return s.length>=t.length+r.length&&xf(s,t)&&h_(s,r)}function bb(t,r){return s=>t(s)&&r(s)}function dA(...t){return(...r)=>{let s;for(const l of t)if(s=l(...r),s)return s;return s}}function gN(t){return(...r)=>!t(...r)}function X5(t){}function zD(t){return t===void 0?void 0:[t]}function mTe(t,r,s,l,m,y){y=y||ku;let T=0,D=0;const I=t.length,W=r.length;let O=!1;for(;T=0&&UD(t.charCodeAt(r));)r--;return t.slice(0,r+1)}function kM(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&!0}var Zn,zy,gTe,AT,PM,eC,$ne,xz,O_e,re,hTe,GD,hU,Zw,fMe=G({"src/compiler/core.ts"(){Ad(),Zn=[],zy=new Map,gTe=new Set,AT=(t=>(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(AT||{}),PM=Array.prototype.at?(t,r)=>t==null?void 0:t.at(r):(t,r)=>{if(t&&(r=hz(t,r),r(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(xz||{}),O_e=(()=>{let t,r;const s=D();return I;function l(W,O,V){if(W===O)return 0;if(W===void 0)return-1;if(O===void 0)return 1;const ee=V(W,O);return ee<0?-1:ee>0?1:0}function m(W){const O=new Intl.Collator(W,{usage:"sort",sensitivity:"variant"}).compare;return(V,ee)=>l(V,ee,O)}function y(W){if(W!==void 0)return T();return(V,ee)=>l(V,ee,O);function O(V,ee){return V.localeCompare(ee)}}function T(){return(V,ee)=>l(V,ee,W);function W(V,ee){return O(V.toUpperCase(),ee.toUpperCase())||O(V,ee)}function O(V,ee){return Vee?1:0}}function D(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?m:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?y:T}function I(W){return W===void 0?t||(t=s(W)):W==="en-US"?r||(r=s(W)):s(W)}})(),GD=String.prototype.trim?t=>t.trim():t=>hU(Zw(t)),hU=String.prototype.trimEnd?t=>t.trimEnd():uMe,Zw=String.prototype.trimStart?t=>t.trimStart():t=>t.replace(/^\s+/g,"")}}),hN,ce,J1=G({"src/compiler/debug.ts"(){Ad(),Ad(),hN=(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))(hN||{}),(t=>{let r=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Fi){return t.currentLogLevel<=Fi}t.shouldLog=s;function l(Fi,ta){t.loggingHost&&s(Fi)&&t.loggingHost.log(Fi,ta)}function m(Fi){l(3,Fi)}t.log=m,(Fi=>{function ta(Lo){l(1,Lo)}Fi.error=ta;function $a(Lo){l(2,Lo)}Fi.warn=$a;function jc(Lo){l(3,Lo)}Fi.log=jc;function Xu(Lo){l(4,Lo)}Fi.trace=Xu})(m=t.log||(t.log={}));const y={};function T(){return r}t.getAssertionLevel=T;function D(Fi){const ta=r;if(r=Fi,Fi>ta)for(const $a of ET(y)){const jc=y[$a];jc!==void 0&&t[$a]!==jc.assertion&&Fi>=jc.level&&(t[$a]=jc,y[$a]=void 0)}}t.setAssertionLevel=D;function I(Fi){return r>=Fi}t.shouldAssert=I;function W(Fi,ta){return I(Fi)?!0:(y[ta]={level:Fi,assertion:t[ta]},t[ta]=ku,!1)}function O(Fi,ta){debugger;const $a=new Error(Fi?`Debug Failure. ${Fi}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace($a,ta||O),$a}t.fail=O;function V(Fi,ta,$a){return O(`${ta||"Unexpected node."}\r + ***************************************************************************** */var x=(()=>{var L=Object.defineProperty,H=Object.getOwnPropertyNames,G=(t,r)=>function(){return t&&(r=(0,t[H(t)[0]])(t=0)),r},ye=(t,r)=>function(){return r||(0,t[H(t)[0]])((r={exports:{}}).exports,r),r.exports},Oe=(t,r)=>{for(var s in r)L(t,s,{get:r[s],enumerable:!0})},ot,At,sn,tr=G({"src/compiler/corePublic.ts"(){ot="5.2",At="5.2.2",sn=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(sn||{})}});function Nt(t){return t?t.length:0}function Ot(t,r){if(t)for(let s=0;s=0;s--){const l=r(t[s],s);if(l)return l}}function Yr(t,r){if(t!==void 0)for(let s=0;s=0;l--){const m=t[l];if(r(m,l))return m}}function Ho(t,r,s){if(t===void 0)return-1;for(let l=s??0;l=0;l--)if(r(t[l],l))return l;return-1}function cs(t,r){for(let s=0;ss(l,r[m]))}function Hg(t,r,s){for(let l=s||0;l{const y=r(m,l);if(y!==void 0){const[T,D]=y;T!==void 0&&D!==void 0&&s.set(T,D)}}),s}function Jw(t,r,s){if(t.has(r))return t.get(r);const l=s();return t.set(r,l),l}function m2(t,r){return t.has(r)?!1:(t.add(r),!0)}function*Zf(t){yield t}function fa(t,r,s){let l;if(t){l=[];const m=t.length;let y,T,D=0,I=0;for(;D{const[y,T]=r(m,l);s.set(y,T)}),s}function gt(t,r){if(t)if(r){for(const s of t)if(r(s))return!0}else return t.length>0;return!1}function eu(t,r,s){let l;for(let m=0;mt[T])}function QS(t,r){const s=[];for(const l of t)Dy(s,l,r);return s}function th(t,r,s){return t.length===0?[]:t.length===1?t.slice():s?xS(t,r,s):QS(t,r)}function WC(t,r){if(t.length===0)return Zn;let s=t[0];const l=[s];for(let m=1;m0&&(m&=-2),m&2&&l(y,I)>0&&(m&=-3),y=I}return m}function fv(t,r,s=_1){if(!t||!r)return t===r;if(t.length!==r.length)return!1;for(let l=0;l0&&ce.assertGreaterThanOrEqual(s(r[y],r[y-1]),0);t:for(const T=m;mT&&ce.assertGreaterThanOrEqual(s(t[m],t[m-1]),0),s(r[y],t[m])){case-1:l.push(r[y]);continue e;case 0:continue e;case 1:continue t}}return l}function ur(t,r){return r===void 0?t:t===void 0?[r]:(t.push(r),t)}function FD(t,r){return t===void 0?r:r===void 0?t:ls(t)?ls(r)?Hi(t,r):ur(t,r):ls(r)?ur(r,t):[t,r]}function gz(t,r){return r<0?t.length+r:r}function Oi(t,r,s,l){if(r===void 0||r.length===0)return t;if(t===void 0)return r.slice(s,l);s=s===void 0?0:gz(r,s),l=l===void 0?r.length:gz(r,l);for(let m=s;ms(t[l],t[m])||pf(l,m))}function fN(t,r){return t.length===0?t:t.slice().sort(r)}function*fU(t){for(let r=t.length-1;r>=0;r--)yield t[r]}function nh(t,r){const s=Cy(t);return L_e(t,s,r),s.map(l=>t[l])}function hz(t,r,s,l){for(;s>1),I=s(t[D],D);switch(l(I,r)){case-1:y=D+1;break;case 0:return D;case 1:T=D-1;break}}return~y}function Em(t,r,s,l,m){if(t&&t.length>0){const y=t.length;if(y>0){let T=l===void 0||l<0?0:l;const D=m===void 0||T+m>y-1?y-1:T+m;let I;for(arguments.length<=2?(I=t[T],T++):I=s;T<=D;)I=r(I,t[T],T),T++;return I}}return s}function ef(t,r){return eC.call(t,r)}function T8(t,r){return eC.call(t,r)?t[r]:void 0}function ET(t){const r=[];for(const s in t)eC.call(t,s)&&r.push(s);return r}function _Te(t){const r=[];do{const s=Object.getOwnPropertyNames(t);for(const l of s)Dy(r,l)}while(t=Object.getPrototypeOf(t));return r}function ik(t){const r=[];for(const s in t)eC.call(t,s)&&r.push(t[s]);return r}function vz(t,r){const s=new Array(t);for(let l=0;l100&&s>r.length>>1){const D=r.length-s;r.copyWithin(0,s),r.length=D,s=0}return T}return{enqueue:m,dequeue:y,isEmpty:l}}function J5(t,r){const s=new Map;let l=0;function*m(){for(const T of s.values())ls(T)?yield*T:yield T}const y={has(T){const D=t(T);if(!s.has(D))return!1;const I=s.get(D);if(!ls(I))return r(I,T);for(const W of I)if(r(W,T))return!0;return!1},add(T){const D=t(T);if(s.has(D)){const I=s.get(D);if(ls(I))ni(I,T,r)||(I.push(T),l++);else{const W=I;r(W,T)||(s.set(D,[W,T]),l++)}}else s.set(D,T),l++;return this},delete(T){const D=t(T);if(!s.has(D))return!1;const I=s.get(D);if(ls(I)){for(let W=0;Wm(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return y}function ls(t){return Array.isArray(t)}function BC(t){return ls(t)?t:[t]}function As(t){return typeof t=="string"}function U1(t){return typeof t=="number"}function to(t,r){return t!==void 0&&r(t)?t:void 0}function uc(t,r){return t!==void 0&&r(t)?t:ce.fail(`Invalid cast. The supplied value ${t} did not pass the test '${ce.getFunctionName(r)}'.`)}function ku(t){}function bg(){return!1}function xT(){return!0}function eE(){}function Of(t){return t}function x8(t){return t.toLowerCase()}function Q0(t){return $ne.test(t)?t.replace($ne,x8):t}function Na(){throw new Error("Not implemented")}function Pd(t){let r;return()=>(t&&(r=t(),t=void 0),r)}function p0(t){const r=new Map;return s=>{const l=`${typeof s}:${s}`;let m=r.get(l);return m===void 0&&!r.has(l)&&(m=t(s),r.set(l,m)),m}}function NVe(t){const r=new WeakMap;return s=>{let l=r.get(s);return l===void 0&&!r.has(s)&&(l=t(s),r.set(s,l)),l}}function JO(t,r){return(...s)=>{let l=r.get(s);return l===void 0&&!r.has(s)&&(l=t(...s),r.set(s,l)),l}}function wVe(t,r,s,l,m){if(m){const y=[];for(let T=0;TEm(y,(D,I)=>I(D),T)}else return l?y=>l(s(r(t(y)))):s?y=>s(r(t(y))):r?y=>r(t(y)):t?y=>t(y):y=>y}function _1(t,r){return t===r}function pN(t,r){return t===r||t!==void 0&&r!==void 0&&t.toUpperCase()===r.toUpperCase()}function ZA(t,r){return _1(t,r)}function lMe(t,r){return t===r?0:t===void 0?-1:r===void 0?1:tr(s,l)===-1?s:l)}function Kw(t,r){return t===r?0:t===void 0?-1:r===void 0?1:(t=t.toUpperCase(),r=r.toUpperCase(),tr?1:0)}function rP(t,r){return t===r?0:t===void 0?-1:r===void 0?1:(t=t.toLowerCase(),r=r.toLowerCase(),tr?1:0)}function Fp(t,r){return lMe(t,r)}function Xw(t){return t?Kw:Fp}function dTe(){return hTe}function $5(t){hTe!==t&&(hTe=t,re=void 0)}function q5(t,r){return(re||(re=O_e(hTe)))(t,r)}function mN(t,r,s,l){return t===r?0:t===void 0?-1:r===void 0?1:l(t[s],r[s])}function Z0(t,r){return pf(t?1:0,r?1:0)}function fh(t,r,s){const l=Math.max(2,Math.floor(t.length*.34));let m=Math.floor(t.length*.4)+1,y;for(const T of r){const D=s(T);if(D!==void 0&&Math.abs(D.length-t.length)<=l){if(D===t||D.length<3&&D.toLowerCase()!==t.toLowerCase())continue;const I=$O(t,D,m-.1);if(I===void 0)continue;ce.assert(Is?D-s:1),O=Math.floor(r.length>s+D?s+D:r.length);m[0]=D;let V=D;for(let te=1;tes)return;const ee=l;l=m,m=ee}const T=l[r.length];return T>s?void 0:T}function h_(t,r){const s=t.length-r.length;return s>=0&&t.indexOf(r,s)===s}function DM(t,r){return h_(t,r)?t.slice(0,t.length-r.length):t}function K5(t,r){return h_(t,r)?t.slice(0,t.length-r.length):void 0}function Ub(t,r){return t.indexOf(r)!==-1}function xL(t){let r=t.length;for(let s=r-1;s>0;s--){let l=t.charCodeAt(s);if(l>=48&&l<=57)do--s,l=t.charCodeAt(s);while(s>0&&l>=48&&l<=57);else if(s>4&&(l===110||l===78)){if(--s,l=t.charCodeAt(s),l!==105&&l!==73||(--s,l=t.charCodeAt(s),l!==109&&l!==77))break;--s,l=t.charCodeAt(s)}else break;if(l!==45&&l!==46)break;r=s}return r===t.length?t:t.slice(0,r)}function Yw(t,r){for(let s=0;ss===r)}function H1(t,r){for(let s=0;sm&&(m=T.prefix.length,l=y)}return l}function xf(t,r){return t.lastIndexOf(r,0)===0}function Sz(t,r){return xf(t,r)?t.substr(r.length):t}function C8(t,r,s=Of){return xf(s(t),s(r))?t.substring(r.length):void 0}function mU({prefix:t,suffix:r},s){return s.length>=t.length+r.length&&xf(s,t)&&h_(s,r)}function bb(t,r){return s=>t(s)&&r(s)}function dA(...t){return(...r)=>{let s;for(const l of t)if(s=l(...r),s)return s;return s}}function gN(t){return(...r)=>!t(...r)}function X5(t){}function zD(t){return t===void 0?void 0:[t]}function mTe(t,r,s,l,m,y){y=y||ku;let T=0,D=0;const I=t.length,W=r.length;let O=!1;for(;T=0&&UD(t.charCodeAt(r));)r--;return t.slice(0,r+1)}function kM(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&!0}var Zn,zy,gTe,AT,PM,eC,$ne,Ez,O_e,re,hTe,GD,hU,Zw,fMe=G({"src/compiler/core.ts"(){Ad(),Zn=[],zy=new Map,gTe=new Set,AT=(t=>(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(AT||{}),PM=Array.prototype.at?(t,r)=>t==null?void 0:t.at(r):(t,r)=>{if(t&&(r=gz(t,r),r(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(Ez||{}),O_e=(()=>{let t,r;const s=D();return I;function l(W,O,V){if(W===O)return 0;if(W===void 0)return-1;if(O===void 0)return 1;const ee=V(W,O);return ee<0?-1:ee>0?1:0}function m(W){const O=new Intl.Collator(W,{usage:"sort",sensitivity:"variant"}).compare;return(V,ee)=>l(V,ee,O)}function y(W){if(W!==void 0)return T();return(V,ee)=>l(V,ee,O);function O(V,ee){return V.localeCompare(ee)}}function T(){return(V,ee)=>l(V,ee,W);function W(V,ee){return O(V.toUpperCase(),ee.toUpperCase())||O(V,ee)}function O(V,ee){return Vee?1:0}}function D(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?m:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?y:T}function I(W){return W===void 0?t||(t=s(W)):W==="en-US"?r||(r=s(W)):s(W)}})(),GD=String.prototype.trim?t=>t.trim():t=>hU(Zw(t)),hU=String.prototype.trimEnd?t=>t.trimEnd():uMe,Zw=String.prototype.trimStart?t=>t.trimStart():t=>t.replace(/^\s+/g,"")}}),hN,ce,J1=G({"src/compiler/debug.ts"(){Ad(),Ad(),hN=(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))(hN||{}),(t=>{let r=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Fi){return t.currentLogLevel<=Fi}t.shouldLog=s;function l(Fi,ta){t.loggingHost&&s(Fi)&&t.loggingHost.log(Fi,ta)}function m(Fi){l(3,Fi)}t.log=m,(Fi=>{function ta(Lo){l(1,Lo)}Fi.error=ta;function $a(Lo){l(2,Lo)}Fi.warn=$a;function jc(Lo){l(3,Lo)}Fi.log=jc;function Xu(Lo){l(4,Lo)}Fi.trace=Xu})(m=t.log||(t.log={}));const y={};function T(){return r}t.getAssertionLevel=T;function D(Fi){const ta=r;if(r=Fi,Fi>ta)for(const $a of ET(y)){const jc=y[$a];jc!==void 0&&t[$a]!==jc.assertion&&Fi>=jc.level&&(t[$a]=jc,y[$a]=void 0)}}t.setAssertionLevel=D;function I(Fi){return r>=Fi}t.shouldAssert=I;function W(Fi,ta){return I(Fi)?!0:(y[ta]={level:Fi,assertion:t[ta]},t[ta]=ku,!1)}function O(Fi,ta){debugger;const $a=new Error(Fi?`Debug Failure. ${Fi}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace($a,ta||O),$a}t.fail=O;function V(Fi,ta,$a){return O(`${ta||"Unexpected node."}\r Node ${Mn(Fi.kind)} was unexpected.`,$a||V)}t.failBadSyntaxKind=V;function ee(Fi,ta,$a,jc){Fi||(ta=ta?`False expression: ${ta}`:"False expression.",$a&&(ta+=`\r -Verbose Debug Information: `+(typeof $a=="string"?$a:$a())),O(ta,jc||ee))}t.assert=ee;function te(Fi,ta,$a,jc,Xu){if(Fi!==ta){const Lo=$a?jc?`${$a} ${jc}`:$a:"";O(`Expected ${Fi} === ${ta}. ${Lo}`,Xu||te)}}t.assertEqual=te;function oe(Fi,ta,$a,jc){Fi>=ta&&O(`Expected ${Fi} < ${ta}. ${$a||""}`,jc||oe)}t.assertLessThan=oe;function de(Fi,ta,$a){Fi>ta&&O(`Expected ${Fi} <= ${ta}`,$a||de)}t.assertLessThanOrEqual=de;function ue(Fi,ta,$a){Fi= ${ta}`,$a||ue)}t.assertGreaterThanOrEqual=ue;function Ne(Fi,ta,$a){Fi==null&&O(ta,$a||Ne)}t.assertIsDefined=Ne;function Be(Fi,ta,$a){return Ne(Fi,ta,$a||Be),Fi}t.checkDefined=Be;function Ve(Fi,ta,$a){for(const jc of Fi)Ne(jc,ta,$a||Ve)}t.assertEachIsDefined=Ve;function pt(Fi,ta,$a){return Ve(Fi,ta,$a||pt),Fi}t.checkEachDefined=pt;function Le(Fi,ta="Illegal value:",$a){const jc=typeof Fi=="object"&&ef(Fi,"kind")&&ef(Fi,"pos")?"SyntaxKind: "+Mn(Fi.kind):JSON.stringify(Fi);return O(`${ta} ${jc}`,$a||Le)}t.assertNever=Le;function ht(Fi,ta,$a,jc){W(1,"assertEachNode")&&ee(ta===void 0||jr(Fi,ta),$a||"Unexpected node.",()=>`Node array did not pass test '${ut(ta)}'.`,jc||ht)}t.assertEachNode=ht;function ke(Fi,ta,$a,jc){W(1,"assertNode")&&ee(Fi!==void 0&&(ta===void 0||ta(Fi)),$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} did not pass test '${ut(ta)}'.`,jc||ke)}t.assertNode=ke;function _t(Fi,ta,$a,jc){W(1,"assertNotNode")&&ee(Fi===void 0||ta===void 0||!ta(Fi),$a||"Unexpected node.",()=>`Node ${Mn(Fi.kind)} should not have passed test '${ut(ta)}'.`,jc||_t)}t.assertNotNode=_t;function Dt(Fi,ta,$a,jc){W(1,"assertOptionalNode")&&ee(ta===void 0||Fi===void 0||ta(Fi),$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} did not pass test '${ut(ta)}'.`,jc||Dt)}t.assertOptionalNode=Dt;function Ft(Fi,ta,$a,jc){W(1,"assertOptionalToken")&&ee(ta===void 0||Fi===void 0||Fi.kind===ta,$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} was not a '${Mn(ta)}' token.`,jc||Ft)}t.assertOptionalToken=Ft;function it(Fi,ta,$a){W(1,"assertMissingNode")&&ee(Fi===void 0,ta||"Unexpected node.",()=>`Node ${Mn(Fi.kind)} was unexpected'.`,$a||it)}t.assertMissingNode=it;function Ye(Fi){}t.type=Ye;function ut(Fi){if(typeof Fi!="function")return"";if(ef(Fi,"name"))return Fi.name;{const ta=Function.prototype.toString.call(Fi),$a=/^function\s+([\w$]+)\s*\(/.exec(ta);return $a?$a[1]:""}}t.getFunctionName=ut;function lt(Fi){return`{ name: ${lf(Fi.escapedName)}; flags: ${Xr(Fi.flags)}; declarations: ${Vn(Fi.declarations,ta=>Mn(ta.kind))} }`}t.formatSymbol=lt;function zt(Fi=0,ta,$a){const jc=tt(ta);if(Fi===0)return jc.length>0&&jc[0][0]===0?jc[0][1]:"0";if($a){const Xu=[];let Lo=Fi;for(const[To,Aa]of jc){if(To>Fi)break;To!==0&&To&Fi&&(Xu.push(Aa),Lo&=~To)}if(Lo===0)return Xu.join("|")}else for(const[Xu,Lo]of jc)if(Xu===Fi)return Lo;return Fi.toString()}t.formatEnum=zt;const Wt=new Map;function tt(Fi){const ta=Wt.get(Fi);if(ta)return ta;const $a=[];for(const Xu in Fi){const Lo=Fi[Xu];typeof Lo=="number"&&$a.push([Lo,Xu])}const jc=nh($a,(Xu,Lo)=>pf(Xu[0],Lo[0]));return Wt.set(Fi,jc),jc}function Mn(Fi){return zt(Fi,Pz,!1)}t.formatSyntaxKind=Mn;function kn(Fi){return zt(Fi,DX,!1)}t.formatSnippetKind=kn;function cr(Fi){return zt(Fi,IU,!1)}t.formatScriptKind=cr;function un(Fi){return zt(Fi,_X,!0)}t.formatNodeFlags=un;function on(Fi){return zt(Fi,QO,!0)}t.formatModifierFlags=on;function pn(Fi){return zt(Fi,CX,!0)}t.formatTransformFlags=pn;function Or(Fi){return zt(Fi,IX,!0)}t.formatEmitFlags=Or;function Xr(Fi){return zt(Fi,TX,!0)}t.formatSymbolFlags=Xr;function Ut(Fi){return zt(Fi,SX,!0)}t.formatTypeFlags=Ut;function In(Fi){return zt(Fi,wz,!0)}t.formatSignatureFlags=In;function gr(Fi){return zt(Fi,CU,!0)}t.formatObjectFlags=gr;function Cr(Fi){return zt(Fi,AU,!0)}t.formatFlowFlags=Cr;function ei(Fi){return zt(Fi,pX,!0)}t.formatRelationComparisonResult=ei;function Gn(Fi){return zt(Fi,Aae,!0)}t.formatCheckMode=Gn;function Ur(Fi){return zt(Fi,Cae,!0)}t.formatSignatureCheckMode=Ur;function so(Fi){return zt(Fi,h$,!0)}t.formatTypeFacts=so;let ho=!1,di;function Nc(Fi){"__debugFlowFlags"in Fi||Object.defineProperties(Fi,{__tsDebuggerDisplay:{value(){const ta=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",$a=this.flags&-2048;return`${ta}${$a?` (${Cr($a)})`:""}`}},__debugFlowFlags:{get(){return zt(this.flags,AU,!0)}},__debugToString:{value(){return Ea(this)}}})}function ha(Fi){ho&&(typeof Object.setPrototypeOf=="function"?(di||(di=Object.create(Object.prototype),Nc(di)),Object.setPrototypeOf(Fi,di)):Nc(Fi))}t.attachFlowNodeDebugInfo=ha;let ro;function Gs(Fi){"__tsDebuggerDisplay"in Fi||Object.defineProperties(Fi,{__tsDebuggerDisplay:{value(ta){return ta=String(ta).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${ta}`}}})}function Oc(Fi){ho&&(typeof Object.setPrototypeOf=="function"?(ro||(ro=Object.create(Array.prototype),Gs(ro)),Object.setPrototypeOf(Fi,ro)):Gs(Fi))}t.attachNodeArrayDebugInfo=Oc;function _u(){if(ho)return;const Fi=new WeakMap,ta=new WeakMap;Object.defineProperties(nv.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const jc=this.flags&33554432?"TransientSymbol":"Symbol",Xu=this.flags&-33554433;return`${jc} '${mp(this)}'${Xu?` (${Xr(Xu)})`:""}`}},__debugFlags:{get(){return Xr(this.flags)}}}),Object.defineProperties(nv.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const jc=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&67359327?`IntrinsicType ${this.intrinsicName}`: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",Xu=this.flags&524288?this.objectFlags&-1344:0;return`${jc}${this.symbol?` '${mp(this.symbol)}'`:""}${Xu?` (${gr(Xu)})`:""}`}},__debugFlags:{get(){return Ut(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?gr(this.objectFlags):""}},__debugTypeToString:{value(){let jc=Fi.get(this);return jc===void 0&&(jc=this.checker.typeToString(this),Fi.set(this,jc)),jc}}}),Object.defineProperties(nv.getSignatureConstructor().prototype,{__debugFlags:{get(){return In(this.flags)}},__debugSignatureToString:{value(){var jc;return(jc=this.checker)==null?void 0:jc.signatureToString(this)}}});const $a=[nv.getNodeConstructor(),nv.getIdentifierConstructor(),nv.getTokenConstructor(),nv.getSourceFileConstructor()];for(const jc of $a)ef(jc.prototype,"__debugKind")||Object.defineProperties(jc.prototype,{__tsDebuggerDisplay:{value(){return`${Om(this)?"GeneratedIdentifier":An(this)?`Identifier '${ec(this)}'`:Gu(this)?`PrivateIdentifier '${ec(this)}'`:Wp(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:nS(this)?`NumericLiteral ${this.text}`:wG(this)?`BigIntLiteral ${this.text}n`:Hh(this)?"TypeParameterDeclaration":Pu(this)?"ParameterDeclaration":pg(this)?"ConstructorDeclaration":tm(this)?"GetAccessorDeclaration":Ep(this)?"SetAccessorDeclaration":Lh(this)?"CallSignatureDeclaration":lE(this)?"ConstructSignatureDeclaration":Xb(this)?"IndexSignatureDeclaration":Y7(this)?"TypePredicateNode":x2(this)?"TypeReferenceNode":Z2(this)?"FunctionTypeNode":mW(this)?"ConstructorTypeNode":uE(this)?"TypeQueryNode":e0(this)?"TypeLiteralNode":MG(this)?"ArrayTypeNode":m6(this)?"TupleTypeNode":GY(this)?"OptionalTypeNode":gW(this)?"RestTypeNode":g6(this)?"UnionTypeNode":MJ(this)?"IntersectionTypeNode":hW(this)?"ConditionalTypeNode":fI(this)?"InferTypeNode":xR(this)?"ParenthesizedTypeNode":Q7(this)?"ThisTypeNode":KN(this)?"TypeOperatorNode":XN(this)?"IndexedAccessTypeNode":yW(this)?"MappedTypeNode":_I(this)?"LiteralTypeNode":rS(this)?"NamedTupleMember":Wx(this)?"ImportTypeNode":Mn(this.kind)}${this.flags?` (${un(this.flags)})`:""}`}},__debugKind:{get(){return Mn(this.kind)}},__debugNodeFlags:{get(){return un(this.flags)}},__debugModifierFlags:{get(){return on(aI(this))}},__debugTransformFlags:{get(){return pn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uP(this)}},__debugEmitFlags:{get(){return Or(Tp(this))}},__debugGetText:{value(Xu){if(rh(this))return"";let Lo=ta.get(this);if(Lo===void 0){const To=Il(this),Aa=To&&ns(To);Lo=Aa?wd(Aa,To,Xu):"",ta.set(this,Lo)}return Lo}}});ho=!0}t.enableDebugInfo=_u;function Ku(Fi){const ta=Fi&7;let $a=ta===0?"in out":ta===3?"[bivariant]":ta===2?"in":ta===1?"out":ta===4?"[independent]":"";return Fi&8?$a+=" (unmeasurable)":Fi&16&&($a+=" (unreliable)"),$a}t.formatVariance=Ku;class al{__debugToString(){var ta;switch(this.kind){case 3:return((ta=this.debugInfo)==null?void 0:ta.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Zr(this.sources,this.targets||Vn(this.sources,()=>"any"),($a,jc)=>`${$a.__debugTypeToString()} -> ${typeof jc=="string"?jc:jc.__debugTypeToString()}`).join(", ");case 2:return Zr(this.sources,this.targets,($a,jc)=>`${$a.__debugTypeToString()} -> ${jc().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +Verbose Debug Information: `+(typeof $a=="string"?$a:$a())),O(ta,jc||ee))}t.assert=ee;function te(Fi,ta,$a,jc,Xu){if(Fi!==ta){const Lo=$a?jc?`${$a} ${jc}`:$a:"";O(`Expected ${Fi} === ${ta}. ${Lo}`,Xu||te)}}t.assertEqual=te;function oe(Fi,ta,$a,jc){Fi>=ta&&O(`Expected ${Fi} < ${ta}. ${$a||""}`,jc||oe)}t.assertLessThan=oe;function de(Fi,ta,$a){Fi>ta&&O(`Expected ${Fi} <= ${ta}`,$a||de)}t.assertLessThanOrEqual=de;function ue(Fi,ta,$a){Fi= ${ta}`,$a||ue)}t.assertGreaterThanOrEqual=ue;function Ne(Fi,ta,$a){Fi==null&&O(ta,$a||Ne)}t.assertIsDefined=Ne;function Be(Fi,ta,$a){return Ne(Fi,ta,$a||Be),Fi}t.checkDefined=Be;function Ve(Fi,ta,$a){for(const jc of Fi)Ne(jc,ta,$a||Ve)}t.assertEachIsDefined=Ve;function pt(Fi,ta,$a){return Ve(Fi,ta,$a||pt),Fi}t.checkEachDefined=pt;function Le(Fi,ta="Illegal value:",$a){const jc=typeof Fi=="object"&&ef(Fi,"kind")&&ef(Fi,"pos")?"SyntaxKind: "+Mn(Fi.kind):JSON.stringify(Fi);return O(`${ta} ${jc}`,$a||Le)}t.assertNever=Le;function ht(Fi,ta,$a,jc){W(1,"assertEachNode")&&ee(ta===void 0||jr(Fi,ta),$a||"Unexpected node.",()=>`Node array did not pass test '${ut(ta)}'.`,jc||ht)}t.assertEachNode=ht;function ke(Fi,ta,$a,jc){W(1,"assertNode")&&ee(Fi!==void 0&&(ta===void 0||ta(Fi)),$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} did not pass test '${ut(ta)}'.`,jc||ke)}t.assertNode=ke;function _t(Fi,ta,$a,jc){W(1,"assertNotNode")&&ee(Fi===void 0||ta===void 0||!ta(Fi),$a||"Unexpected node.",()=>`Node ${Mn(Fi.kind)} should not have passed test '${ut(ta)}'.`,jc||_t)}t.assertNotNode=_t;function Dt(Fi,ta,$a,jc){W(1,"assertOptionalNode")&&ee(ta===void 0||Fi===void 0||ta(Fi),$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} did not pass test '${ut(ta)}'.`,jc||Dt)}t.assertOptionalNode=Dt;function Ft(Fi,ta,$a,jc){W(1,"assertOptionalToken")&&ee(ta===void 0||Fi===void 0||Fi.kind===ta,$a||"Unexpected node.",()=>`Node ${Mn(Fi==null?void 0:Fi.kind)} was not a '${Mn(ta)}' token.`,jc||Ft)}t.assertOptionalToken=Ft;function it(Fi,ta,$a){W(1,"assertMissingNode")&&ee(Fi===void 0,ta||"Unexpected node.",()=>`Node ${Mn(Fi.kind)} was unexpected'.`,$a||it)}t.assertMissingNode=it;function Ye(Fi){}t.type=Ye;function ut(Fi){if(typeof Fi!="function")return"";if(ef(Fi,"name"))return Fi.name;{const ta=Function.prototype.toString.call(Fi),$a=/^function\s+([\w$]+)\s*\(/.exec(ta);return $a?$a[1]:""}}t.getFunctionName=ut;function lt(Fi){return`{ name: ${lf(Fi.escapedName)}; flags: ${Xr(Fi.flags)}; declarations: ${Vn(Fi.declarations,ta=>Mn(ta.kind))} }`}t.formatSymbol=lt;function zt(Fi=0,ta,$a){const jc=tt(ta);if(Fi===0)return jc.length>0&&jc[0][0]===0?jc[0][1]:"0";if($a){const Xu=[];let Lo=Fi;for(const[To,Aa]of jc){if(To>Fi)break;To!==0&&To&Fi&&(Xu.push(Aa),Lo&=~To)}if(Lo===0)return Xu.join("|")}else for(const[Xu,Lo]of jc)if(Xu===Fi)return Lo;return Fi.toString()}t.formatEnum=zt;const Wt=new Map;function tt(Fi){const ta=Wt.get(Fi);if(ta)return ta;const $a=[];for(const Xu in Fi){const Lo=Fi[Xu];typeof Lo=="number"&&$a.push([Lo,Xu])}const jc=nh($a,(Xu,Lo)=>pf(Xu[0],Lo[0]));return Wt.set(Fi,jc),jc}function Mn(Fi){return zt(Fi,kz,!1)}t.formatSyntaxKind=Mn;function kn(Fi){return zt(Fi,DX,!1)}t.formatSnippetKind=kn;function cr(Fi){return zt(Fi,IU,!1)}t.formatScriptKind=cr;function un(Fi){return zt(Fi,_X,!0)}t.formatNodeFlags=un;function on(Fi){return zt(Fi,QO,!0)}t.formatModifierFlags=on;function pn(Fi){return zt(Fi,CX,!0)}t.formatTransformFlags=pn;function Or(Fi){return zt(Fi,IX,!0)}t.formatEmitFlags=Or;function Xr(Fi){return zt(Fi,TX,!0)}t.formatSymbolFlags=Xr;function Ut(Fi){return zt(Fi,SX,!0)}t.formatTypeFlags=Ut;function In(Fi){return zt(Fi,Nz,!0)}t.formatSignatureFlags=In;function gr(Fi){return zt(Fi,CU,!0)}t.formatObjectFlags=gr;function Cr(Fi){return zt(Fi,AU,!0)}t.formatFlowFlags=Cr;function ei(Fi){return zt(Fi,pX,!0)}t.formatRelationComparisonResult=ei;function Gn(Fi){return zt(Fi,Aae,!0)}t.formatCheckMode=Gn;function Ur(Fi){return zt(Fi,Cae,!0)}t.formatSignatureCheckMode=Ur;function so(Fi){return zt(Fi,h$,!0)}t.formatTypeFacts=so;let ho=!1,di;function Nc(Fi){"__debugFlowFlags"in Fi||Object.defineProperties(Fi,{__tsDebuggerDisplay:{value(){const ta=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",$a=this.flags&-2048;return`${ta}${$a?` (${Cr($a)})`:""}`}},__debugFlowFlags:{get(){return zt(this.flags,AU,!0)}},__debugToString:{value(){return Ea(this)}}})}function ha(Fi){ho&&(typeof Object.setPrototypeOf=="function"?(di||(di=Object.create(Object.prototype),Nc(di)),Object.setPrototypeOf(Fi,di)):Nc(Fi))}t.attachFlowNodeDebugInfo=ha;let ro;function Gs(Fi){"__tsDebuggerDisplay"in Fi||Object.defineProperties(Fi,{__tsDebuggerDisplay:{value(ta){return ta=String(ta).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${ta}`}}})}function Oc(Fi){ho&&(typeof Object.setPrototypeOf=="function"?(ro||(ro=Object.create(Array.prototype),Gs(ro)),Object.setPrototypeOf(Fi,ro)):Gs(Fi))}t.attachNodeArrayDebugInfo=Oc;function _u(){if(ho)return;const Fi=new WeakMap,ta=new WeakMap;Object.defineProperties(nv.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const jc=this.flags&33554432?"TransientSymbol":"Symbol",Xu=this.flags&-33554433;return`${jc} '${mp(this)}'${Xu?` (${Xr(Xu)})`:""}`}},__debugFlags:{get(){return Xr(this.flags)}}}),Object.defineProperties(nv.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const jc=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&67359327?`IntrinsicType ${this.intrinsicName}`: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",Xu=this.flags&524288?this.objectFlags&-1344:0;return`${jc}${this.symbol?` '${mp(this.symbol)}'`:""}${Xu?` (${gr(Xu)})`:""}`}},__debugFlags:{get(){return Ut(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?gr(this.objectFlags):""}},__debugTypeToString:{value(){let jc=Fi.get(this);return jc===void 0&&(jc=this.checker.typeToString(this),Fi.set(this,jc)),jc}}}),Object.defineProperties(nv.getSignatureConstructor().prototype,{__debugFlags:{get(){return In(this.flags)}},__debugSignatureToString:{value(){var jc;return(jc=this.checker)==null?void 0:jc.signatureToString(this)}}});const $a=[nv.getNodeConstructor(),nv.getIdentifierConstructor(),nv.getTokenConstructor(),nv.getSourceFileConstructor()];for(const jc of $a)ef(jc.prototype,"__debugKind")||Object.defineProperties(jc.prototype,{__tsDebuggerDisplay:{value(){return`${Om(this)?"GeneratedIdentifier":An(this)?`Identifier '${ec(this)}'`:Gu(this)?`PrivateIdentifier '${ec(this)}'`:Wp(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:nS(this)?`NumericLiteral ${this.text}`:NG(this)?`BigIntLiteral ${this.text}n`:Hh(this)?"TypeParameterDeclaration":Pu(this)?"ParameterDeclaration":pg(this)?"ConstructorDeclaration":tm(this)?"GetAccessorDeclaration":Ep(this)?"SetAccessorDeclaration":Lh(this)?"CallSignatureDeclaration":lE(this)?"ConstructSignatureDeclaration":Xb(this)?"IndexSignatureDeclaration":Y7(this)?"TypePredicateNode":x2(this)?"TypeReferenceNode":Z2(this)?"FunctionTypeNode":mW(this)?"ConstructorTypeNode":uE(this)?"TypeQueryNode":e0(this)?"TypeLiteralNode":RG(this)?"ArrayTypeNode":m6(this)?"TupleTypeNode":GY(this)?"OptionalTypeNode":gW(this)?"RestTypeNode":g6(this)?"UnionTypeNode":MJ(this)?"IntersectionTypeNode":hW(this)?"ConditionalTypeNode":fI(this)?"InferTypeNode":xR(this)?"ParenthesizedTypeNode":Q7(this)?"ThisTypeNode":KN(this)?"TypeOperatorNode":XN(this)?"IndexedAccessTypeNode":yW(this)?"MappedTypeNode":_I(this)?"LiteralTypeNode":rS(this)?"NamedTupleMember":Wx(this)?"ImportTypeNode":Mn(this.kind)}${this.flags?` (${un(this.flags)})`:""}`}},__debugKind:{get(){return Mn(this.kind)}},__debugNodeFlags:{get(){return un(this.flags)}},__debugModifierFlags:{get(){return on(aI(this))}},__debugTransformFlags:{get(){return pn(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uP(this)}},__debugEmitFlags:{get(){return Or(Tp(this))}},__debugGetText:{value(Xu){if(rh(this))return"";let Lo=ta.get(this);if(Lo===void 0){const To=Il(this),Aa=To&&ns(To);Lo=Aa?wd(Aa,To,Xu):"",ta.set(this,Lo)}return Lo}}});ho=!0}t.enableDebugInfo=_u;function Ku(Fi){const ta=Fi&7;let $a=ta===0?"in out":ta===3?"[bivariant]":ta===2?"in":ta===1?"out":ta===4?"[independent]":"";return Fi&8?$a+=" (unmeasurable)":Fi&16&&($a+=" (unreliable)"),$a}t.formatVariance=Ku;class al{__debugToString(){var ta;switch(this.kind){case 3:return((ta=this.debugInfo)==null?void 0:ta.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Zr(this.sources,this.targets||Vn(this.sources,()=>"any"),($a,jc)=>`${$a.__debugTypeToString()} -> ${typeof jc=="string"?jc:jc.__debugTypeToString()}`).join(", ");case 2:return Zr(this.sources,this.targets,($a,jc)=>`${$a.__debugTypeToString()} -> ${jc().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` @@ -30551,7 +30551,7 @@ m2: ${this.mapper2.__debugToString().split(` `)}`;default:return Le(this)}}}t.DebugTypeMapper=al;function Rr(Fi){return t.isDebugging?Object.setPrototypeOf(Fi,al.prototype):Fi}t.attachDebugPrototypeIfDebug=Rr;function mc(Fi){return console.log(Ea(Fi))}t.printControlFlowGraph=mc;function Ea(Fi){let ta=-1;function $a($e){return $e.id||($e.id=ta,ta--),$e.id}let jc;($e=>{$e.lr="─",$e.ud="│",$e.dr="╭",$e.dl="╮",$e.ul="╯",$e.ur="╰",$e.udr="├",$e.udl="┤",$e.dlr="┬",$e.ulr="┴",$e.udlr="╫"})(jc||(jc={}));let Xu;($e=>{$e[$e.None=0]="None",$e[$e.Up=1]="Up",$e[$e.Down=2]="Down",$e[$e.Left=4]="Left",$e[$e.Right=8]="Right",$e[$e.UpDown=3]="UpDown",$e[$e.LeftRight=12]="LeftRight",$e[$e.UpLeft=5]="UpLeft",$e[$e.UpRight=9]="UpRight",$e[$e.DownLeft=6]="DownLeft",$e[$e.DownRight=10]="DownRight",$e[$e.UpDownLeft=7]="UpDownLeft",$e[$e.UpDownRight=11]="UpDownRight",$e[$e.UpLeftRight=13]="UpLeftRight",$e[$e.DownLeftRight=14]="DownLeftRight",$e[$e.UpDownLeftRight=15]="UpDownLeftRight",$e[$e.NoChildren=16]="NoChildren"})(Xu||(Xu={}));const Lo=2032,To=882,Aa=Object.create(null),sl=[],vc=qr(Fi,new Set);for(const $e of sl)$e.text=Ui($e.flowNode,$e.circular),_r($e);const er=Cn(vc),Jr=oi(er);return Qr(vc,0),xu();function li($e){return!!($e.flags&128)}function Ir($e){return!!($e.flags&12)&&!!$e.antecedents}function _o($e){return!!($e.flags&Lo)}function xt($e){return!!($e.flags&To)}function Kn($e){const Zt=[];for(const xe of $e.edges)xe.source===$e&&Zt.push(xe.target);return Zt}function gn($e){const Zt=[];for(const xe of $e.edges)xe.target===$e&&Zt.push(xe.source);return Zt}function qr($e,Zt){const xe=$a($e);let an=Aa[xe];if(an&&Zt.has($e))return an.circular=!0,an={id:-1,flowNode:$e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},sl.push(an),an;if(Zt.add($e),!an)if(Aa[xe]=an={id:xe,flowNode:$e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},sl.push(an),Ir($e))for(const Un of $e.antecedents)mt(an,Un,Zt);else _o($e)&&mt(an,$e.antecedent,Zt);return Zt.delete($e),an}function mt($e,Zt,xe){const an=qr(Zt,xe),Un={source:$e,target:an};$e.edges.push(Un),an.edges.push(Un)}function _r($e){if($e.level!==-1)return $e.level;let Zt=0;for(const xe of gn($e))Zt=Math.max(Zt,_r(xe)+1);return $e.level=Zt}function Cn($e){let Zt=0;for(const xe of Kn($e))Zt=Math.max(Zt,Cn(xe));return Zt+1}function oi($e){const Zt=Re(Array($e),0);for(const xe of sl)Zt[xe.level]=Math.max(Zt[xe.level],xe.text.length);return Zt}function Qr($e,Zt){if($e.lane===-1){$e.lane=Zt,$e.endLane=Zt;const xe=Kn($e);for(let an=0;an0&&Zt++;const Un=xe[an];Qr(Un,Zt),Un.endLane>$e.endLane&&(Zt=Un.endLane)}$e.endLane=Zt}}function co($e){if($e&2)return"Start";if($e&4)return"Branch";if($e&8)return"Loop";if($e&16)return"Assignment";if($e&32)return"True";if($e&64)return"False";if($e&128)return"SwitchClause";if($e&256)return"ArrayMutation";if($e&512)return"Call";if($e&1024)return"ReduceLabel";if($e&1)return"Unreachable";throw new Error}function es($e){const Zt=ns($e);return wd(Zt,$e,!1)}function Ui($e,Zt){let xe=co($e.flags);if(Zt&&(xe=`${xe}#${$a($e)}`),xt($e))$e.node&&(xe+=` (${es($e.node)})`);else if(li($e)){const an=[];for(let Un=$e.clauseStart;Un<$e.clauseEnd;Un++){const rr=$e.switchStatement.caseBlock.clauses[Un];CR(rr)?an.push("default"):an.push(es(rr.expression))}xe+=` (${an.join(", ")})`}return Zt==="circularity"?`Circular(${xe})`:xe}function xu(){const $e=Jr.length,Zt=sl.reduce((mi,Ji)=>Math.max(mi,Ji.lane),0)+1,xe=Re(Array(Zt),""),an=Jr.map(()=>Array(Zt)),Un=Jr.map(()=>Re(Array(Zt),0));for(const mi of sl){an[mi.level][mi.lane]=mi;const Ji=Kn(mi);for(let Ca=0;Ca0&&(Ks|=1),Ca0&&(Ks|=1),Ca0?Un[mi-1][Ji]:0,Ca=Ji>0?Un[mi][Ji-1]:0;let Qa=Un[mi][Ji];Qa||(zo&8&&(Qa|=12),Ca&2&&(Qa|=3),Un[mi][Ji]=Qa)}for(let mi=0;mi<$e;mi++)for(let Ji=0;Ji0?$e.repeat(Zt):"";let xe="";for(;xe.length=",l.version)),tC(m.major)||s.push(tC(m.minor)?Px("<",m.version.increment("major")):tC(m.patch)?Px("<",m.version.increment("minor")):Px("<=",m.version)),!0):!1}function vU(t,r,s){const l=yU(r);if(!l)return!1;const{version:m,major:y,minor:T,patch:D}=l;if(tC(y))(t==="<"||t===">")&&s.push(Px("<",en.zero));else switch(t){case"~":s.push(Px(">=",m)),s.push(Px("<",m.increment(tC(T)?"major":"minor")));break;case"^":s.push(Px(">=",m)),s.push(Px("<",m.increment(m.major>0||tC(T)?"major":m.minor>0||tC(D)?"minor":"patch")));break;case"<":case">=":s.push(tC(T)||tC(D)?Px(t,m.with({prerelease:"0"})):Px(t,m));break;case"<=":case">":s.push(tC(T)?Px(t==="<="?"<":">=",m.increment("major").with({prerelease:"0"})):tC(D)?Px(t==="<="?"<":">=",m.increment("minor").with({prerelease:"0"})):Px(t,m));break;case"=":case void 0:tC(T)||tC(D)?(s.push(Px(">=",m.with({prerelease:"0"}))),s.push(Px("<",m.increment(tC(T)?"major":"minor").with({prerelease:"0"})))):s.push(Px("=",m));break;default:return!1}return!0}function tC(t){return t==="*"||t==="x"||t==="X"}function Px(t,r){return{operator:t,operand:r}}function bU(t,r){if(r.length===0)return!0;for(const s of r)if(KO(t,s))return!0;return!1}function KO(t,r){for(const s of r)if(!TU(t,s.operator,s.operand))return!1;return!0}function TU(t,r,s){const l=t.compareTo(s);switch(r){case"<":return l<0;case"<=":return l<=0;case">":return l>0;case">=":return l>=0;case"=":return l===0;default:return ce.assertNever(r)}}function RVe(t){return Vn(t,Az).join(" || ")||"*"}function Az(t){return Vn(t,XO).join(" ")}function XO(t){return`${t.operator}${t.operand}`}var ZT,yN,Cz,SU,_Me,ds,Qe,en,Ar,eo,Zo,Rc,Af,d1,H_=G({"src/compiler/semver.ts"(){Ad(),ZT=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yN=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Cz=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,SU=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,_Me=/^[a-z0-9-]+$/i,ds=/^(0|[1-9]\d*)$/,Qe=class aRe{constructor(r,s=0,l=0,m="",y=""){typeof r=="string"&&({major:r,minor:s,patch:l,prerelease:m,build:y}=ce.checkDefined(LE(r),"Invalid version")),ce.assert(r>=0,"Invalid argument: major"),ce.assert(s>=0,"Invalid argument: minor"),ce.assert(l>=0,"Invalid argument: patch");const T=m?ls(m)?m:m.split("."):Zn,D=y?ls(y)?y:y.split("."):Zn;ce.assert(jr(T,I=>Cz.test(I)),"Invalid argument: prerelease"),ce.assert(jr(D,I=>_Me.test(I)),"Invalid argument: build"),this.major=r,this.minor=s,this.patch=l,this.prerelease=T,this.build=D}static tryParse(r){const s=LE(r);if(!s)return;const{major:l,minor:m,patch:y,prerelease:T,build:D}=s;return new aRe(l,m,y,T,D)}compareTo(r){return this===r?0:r===void 0?1:pf(this.major,r.major)||pf(this.minor,r.minor)||pf(this.patch,r.patch)||cX(this.prerelease,r.prerelease)}increment(r){switch(r){case"major":return new aRe(this.major+1,0,0);case"minor":return new aRe(this.major,this.minor+1,0);case"patch":return new aRe(this.major,this.minor,this.patch+1);default:return ce.assertNever(r)}}with(r){const{major:s=this.major,minor:l=this.minor,patch:m=this.patch,prerelease:y=this.prerelease,build:T=this.build}=r;return new aRe(s,l,m,y,T)}toString(){let r=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(r+=`-${this.prerelease.join(".")}`),gt(this.build)&&(r+=`+${this.build.join(".")}`),r}},Qe.zero=new Qe(0,0,0,["0"]),en=Qe,Ar=class MIt{constructor(r){this._alternatives=r?ce.checkDefined(lX(r),"Invalid range spec."):Zn}static tryParse(r){const s=lX(r);if(s){const l=new MIt("");return l._alternatives=s,l}}test(r){return typeof r=="string"&&(r=new en(r)),bU(r,this._alternatives)}toString(){return RVe(this._alternatives)}},eo=/\|\|/g,Zo=/\s+/g,Rc=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Af=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,d1=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function eS(t,r){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 r=="function"}function dv(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&eS(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Zh(){if(kM())try{const{performance:t,PerformanceObserver:r}=MC;if(eS(t,r))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:r}}catch{}}function $p(){return uy}var uy,tE,cf,Tb=G({"src/compiler/performanceCore.ts"(){Ad(),uy=dv()||Zh(),tE=uy==null?void 0:uy.performance,cf=tE?()=>tE.now():Date.now?Date.now:()=>+new Date}}),Dz,jD,dMe=G({"src/compiler/perfLogger.ts"(){try{const t=g.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";Dz=Wot(t)}catch{Dz=void 0}jD=Dz!=null&&Dz.logEvent?Dz:void 0}});function yTe(t,r,s,l){return t?qne(r,s,l):Kne}function qne(t,r,s){let l=0;return{enter:m,exit:y};function m(){++l===1&&jf(r)}function y(){--l===0?(jf(s),dd(t,r,s)):l<0&&ce.fail("enter/exit count does not match.")}}function jf(t){if(iP){const r=Iz.get(t)??0;Iz.set(t,r+1),PL.set(t,cf()),Z5==null||Z5.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function dd(t,r,s){if(iP){const l=(s!==void 0?PL.get(s):void 0)??cf(),m=(r!==void 0?PL.get(r):void 0)??ps,y=e9.get(t)||0;e9.set(t,y+(l-m)),Z5==null||Z5.measure(t,r,s)}}function eb(t){return Iz.get(t)||0}function DL(t){return e9.get(t)||0}function IL(t){e9.forEach((r,s)=>t(s,r))}function Q5(t){PL.forEach((r,s)=>t(s))}function vTe(t){t!==void 0?e9.delete(t):e9.clear(),Z5==null||Z5.clearMeasures(t)}function EU(t){t!==void 0?(Iz.delete(t),PL.delete(t)):(Iz.clear(),PL.clear()),Z5==null||Z5.clearMarks(t)}function pMe(){return iP}function xU(t=m0){var r;return iP||(iP=!0,kL||(kL=$p()),kL&&(ps=kL.performance.timeOrigin,(kL.shouldWriteNativeEvents||(r=t==null?void 0:t.cpuProfilingEnabled)!=null&&r.call(t)||t!=null&&t.debugMode)&&(Z5=kL.performance))),!0}function uX(){iP&&(PL.clear(),Iz.clear(),e9.clear(),Z5=void 0,iP=!1)}var kL,Z5,Kne,iP,ps,PL,Iz,e9,Dat=G({"src/compiler/performance.ts"(){Ad(),Kne={enter:ku,exit:ku},iP=!1,ps=cf(),PL=new Map,Iz=new Map,e9=new Map}}),YO={};Oe(YO,{clearMarks:()=>EU,clearMeasures:()=>vTe,createTimer:()=>qne,createTimerIf:()=>yTe,disable:()=>uX,enable:()=>xU,forEachMark:()=>Q5,forEachMeasure:()=>IL,getCount:()=>eb,getDuration:()=>DL,isEnabled:()=>pMe,mark:()=>jf,measure:()=>dd,nullTimer:()=>Kne});var NM=G({"src/compiler/_namespaces/ts.performance.ts"(){Dat()}}),tu,kz,F_e,Xne,W_e=G({"src/compiler/tracing.ts"(){Ad(),NM(),(t=>{let r,s=0,l=0,m;const y=[];let T;const D=[];function I(ht,ke,_t){if(ce.assert(!tu,"Tracing already started"),r===void 0)try{r=MC}catch(ut){throw new Error(`tracing requires having fs +`;function rr(mi,Ji){xe[mi]+=Ji}}function We($e){switch($e){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 Re($e,Zt){if($e.fill)$e.fill(Zt);else for(let xe=0;xe<$e.length;xe++)$e[xe]=Zt;return $e}function wt($e,Zt){if($e.repeat)return Zt>0?$e.repeat(Zt):"";let xe="";for(;xe.length=",l.version)),tC(m.major)||s.push(tC(m.minor)?Px("<",m.version.increment("major")):tC(m.patch)?Px("<",m.version.increment("minor")):Px("<=",m.version)),!0):!1}function vU(t,r,s){const l=yU(r);if(!l)return!1;const{version:m,major:y,minor:T,patch:D}=l;if(tC(y))(t==="<"||t===">")&&s.push(Px("<",en.zero));else switch(t){case"~":s.push(Px(">=",m)),s.push(Px("<",m.increment(tC(T)?"major":"minor")));break;case"^":s.push(Px(">=",m)),s.push(Px("<",m.increment(m.major>0||tC(T)?"major":m.minor>0||tC(D)?"minor":"patch")));break;case"<":case">=":s.push(tC(T)||tC(D)?Px(t,m.with({prerelease:"0"})):Px(t,m));break;case"<=":case">":s.push(tC(T)?Px(t==="<="?"<":">=",m.increment("major").with({prerelease:"0"})):tC(D)?Px(t==="<="?"<":">=",m.increment("minor").with({prerelease:"0"})):Px(t,m));break;case"=":case void 0:tC(T)||tC(D)?(s.push(Px(">=",m.with({prerelease:"0"}))),s.push(Px("<",m.increment(tC(T)?"major":"minor").with({prerelease:"0"})))):s.push(Px("=",m));break;default:return!1}return!0}function tC(t){return t==="*"||t==="x"||t==="X"}function Px(t,r){return{operator:t,operand:r}}function bU(t,r){if(r.length===0)return!0;for(const s of r)if(KO(t,s))return!0;return!1}function KO(t,r){for(const s of r)if(!TU(t,s.operator,s.operand))return!1;return!0}function TU(t,r,s){const l=t.compareTo(s);switch(r){case"<":return l<0;case"<=":return l<=0;case">":return l>0;case">=":return l>=0;case"=":return l===0;default:return ce.assertNever(r)}}function RVe(t){return Vn(t,xz).join(" || ")||"*"}function xz(t){return Vn(t,XO).join(" ")}function XO(t){return`${t.operator}${t.operand}`}var ZT,yN,Az,SU,_Me,ds,Qe,en,Ar,eo,Zo,Rc,Af,d1,H_=G({"src/compiler/semver.ts"(){Ad(),ZT=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yN=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Az=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,SU=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,_Me=/^[a-z0-9-]+$/i,ds=/^(0|[1-9]\d*)$/,Qe=class aRe{constructor(r,s=0,l=0,m="",y=""){typeof r=="string"&&({major:r,minor:s,patch:l,prerelease:m,build:y}=ce.checkDefined(LE(r),"Invalid version")),ce.assert(r>=0,"Invalid argument: major"),ce.assert(s>=0,"Invalid argument: minor"),ce.assert(l>=0,"Invalid argument: patch");const T=m?ls(m)?m:m.split("."):Zn,D=y?ls(y)?y:y.split("."):Zn;ce.assert(jr(T,I=>Az.test(I)),"Invalid argument: prerelease"),ce.assert(jr(D,I=>_Me.test(I)),"Invalid argument: build"),this.major=r,this.minor=s,this.patch=l,this.prerelease=T,this.build=D}static tryParse(r){const s=LE(r);if(!s)return;const{major:l,minor:m,patch:y,prerelease:T,build:D}=s;return new aRe(l,m,y,T,D)}compareTo(r){return this===r?0:r===void 0?1:pf(this.major,r.major)||pf(this.minor,r.minor)||pf(this.patch,r.patch)||cX(this.prerelease,r.prerelease)}increment(r){switch(r){case"major":return new aRe(this.major+1,0,0);case"minor":return new aRe(this.major,this.minor+1,0);case"patch":return new aRe(this.major,this.minor,this.patch+1);default:return ce.assertNever(r)}}with(r){const{major:s=this.major,minor:l=this.minor,patch:m=this.patch,prerelease:y=this.prerelease,build:T=this.build}=r;return new aRe(s,l,m,y,T)}toString(){let r=`${this.major}.${this.minor}.${this.patch}`;return gt(this.prerelease)&&(r+=`-${this.prerelease.join(".")}`),gt(this.build)&&(r+=`+${this.build.join(".")}`),r}},Qe.zero=new Qe(0,0,0,["0"]),en=Qe,Ar=class RIt{constructor(r){this._alternatives=r?ce.checkDefined(lX(r),"Invalid range spec."):Zn}static tryParse(r){const s=lX(r);if(s){const l=new RIt("");return l._alternatives=s,l}}test(r){return typeof r=="string"&&(r=new en(r)),bU(r,this._alternatives)}toString(){return RVe(this._alternatives)}},eo=/\|\|/g,Zo=/\s+/g,Rc=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Af=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,d1=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function eS(t,r){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 r=="function"}function dv(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&eS(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Zh(){if(kM())try{const{performance:t,PerformanceObserver:r}=MC;if(eS(t,r))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:r}}catch{}}function $p(){return ly}var ly,tE,cf,Tb=G({"src/compiler/performanceCore.ts"(){Ad(),ly=dv()||Zh(),tE=ly==null?void 0:ly.performance,cf=tE?()=>tE.now():Date.now?Date.now:()=>+new Date}}),Cz,jD,dMe=G({"src/compiler/perfLogger.ts"(){try{const t=g.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";Cz=Wot(t)}catch{Cz=void 0}jD=Cz!=null&&Cz.logEvent?Cz:void 0}});function yTe(t,r,s,l){return t?qne(r,s,l):Kne}function qne(t,r,s){let l=0;return{enter:m,exit:y};function m(){++l===1&&jf(r)}function y(){--l===0?(jf(s),dd(t,r,s)):l<0&&ce.fail("enter/exit count does not match.")}}function jf(t){if(iP){const r=Dz.get(t)??0;Dz.set(t,r+1),kL.set(t,cf()),Z5==null||Z5.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function dd(t,r,s){if(iP){const l=(s!==void 0?kL.get(s):void 0)??cf(),m=(r!==void 0?kL.get(r):void 0)??ps,y=e9.get(t)||0;e9.set(t,y+(l-m)),Z5==null||Z5.measure(t,r,s)}}function eb(t){return Dz.get(t)||0}function CL(t){return e9.get(t)||0}function DL(t){e9.forEach((r,s)=>t(s,r))}function Q5(t){kL.forEach((r,s)=>t(s))}function vTe(t){t!==void 0?e9.delete(t):e9.clear(),Z5==null||Z5.clearMeasures(t)}function EU(t){t!==void 0?(Dz.delete(t),kL.delete(t)):(Dz.clear(),kL.clear()),Z5==null||Z5.clearMarks(t)}function pMe(){return iP}function xU(t=m0){var r;return iP||(iP=!0,IL||(IL=$p()),IL&&(ps=IL.performance.timeOrigin,(IL.shouldWriteNativeEvents||(r=t==null?void 0:t.cpuProfilingEnabled)!=null&&r.call(t)||t!=null&&t.debugMode)&&(Z5=IL.performance))),!0}function uX(){iP&&(kL.clear(),Dz.clear(),e9.clear(),Z5=void 0,iP=!1)}var IL,Z5,Kne,iP,ps,kL,Dz,e9,Dat=G({"src/compiler/performance.ts"(){Ad(),Kne={enter:ku,exit:ku},iP=!1,ps=cf(),kL=new Map,Dz=new Map,e9=new Map}}),YO={};Oe(YO,{clearMarks:()=>EU,clearMeasures:()=>vTe,createTimer:()=>qne,createTimerIf:()=>yTe,disable:()=>uX,enable:()=>xU,forEachMark:()=>Q5,forEachMeasure:()=>DL,getCount:()=>eb,getDuration:()=>CL,isEnabled:()=>pMe,mark:()=>jf,measure:()=>dd,nullTimer:()=>Kne});var NM=G({"src/compiler/_namespaces/ts.performance.ts"(){Dat()}}),tu,Iz,F_e,Xne,W_e=G({"src/compiler/tracing.ts"(){Ad(),NM(),(t=>{let r,s=0,l=0,m;const y=[];let T;const D=[];function I(ht,ke,_t){if(ce.assert(!tu,"Tracing already started"),r===void 0)try{r=MC}catch(ut){throw new Error(`tracing requires having fs (original error: ${ut.message||ut})`)}m=ht,y.length=0,T===void 0&&(T=tf(ke,"legend.json")),r.existsSync(ke)||r.mkdirSync(ke,{recursive:!0});const Dt=m==="build"?`.${process.pid}-${++s}`:m==="server"?`.${process.pid}`:"",Ft=tf(ke,`trace${Dt}.json`),it=tf(ke,`types${Dt}.json`);D.push({configFilePath:_t,tracePath:Ft,typesPath:it}),l=r.openSync(Ft,"w"),tu=t;const Ye={cat:"__metadata",ph:"M",ts:1e3*cf(),pid:1,tid:1};r.writeSync(l,`[ `+[{name:"process_name",args:{name:"tsc"},...Ye},{name:"thread_name",args:{name:"Main"},...Ye},{name:"TracingStartedInBrowser",...Ye,cat:"disabled-by-default-devtools.timeline"}].map(ut=>JSON.stringify(ut)).join(`, `))}t.startTracing=I;function W(){ce.assert(tu,"Tracing is not in progress"),ce.assert(!!y.length==(m!=="server")),r.writeSync(l,` @@ -30559,13 +30559,13 @@ ${xe.join(` `),r.closeSync(l),tu=void 0,y.length?pt(y):D[D.length-1].typesPath=void 0}t.stopTracing=W;function O(ht){m!=="server"&&y.push(ht)}t.recordType=O,(ht=>{ht.Parse="parse",ht.Program="program",ht.Bind="bind",ht.Check="check",ht.CheckTypes="checkTypes",ht.Emit="emit",ht.Session="session"})(t.Phase||(t.Phase={}));function V(ht,ke,_t){Be("I",ht,ke,_t,'"s":"g"')}t.instant=V;const ee=[];function te(ht,ke,_t,Dt=!1){Dt&&Be("B",ht,ke,_t),ee.push({phase:ht,name:ke,args:_t,time:1e3*cf(),separateBeginAndEnd:Dt})}t.push=te;function oe(ht){ce.assert(ee.length>0),Ne(ee.length-1,1e3*cf(),ht),ee.length--}t.pop=oe;function de(){const ht=1e3*cf();for(let ke=ee.length-1;ke>=0;ke--)Ne(ke,ht);ee.length=0}t.popAll=de;const ue=1e3*10;function Ne(ht,ke,_t){const{phase:Dt,name:Ft,args:it,time:Ye,separateBeginAndEnd:ut}=ee[ht];ut?(ce.assert(!_t,"`results` are not supported for events with `separateBeginAndEnd`"),Be("E",Dt,Ft,it,void 0,ke)):ue-Ye%ue<=ke-Ye&&Be("X",Dt,Ft,{...it,results:_t},`"dur":${ke-Ye}`,Ye)}function Be(ht,ke,_t,Dt,Ft,it=1e3*cf()){m==="server"&&ke==="checkTypes"||(jf("beginTracing"),r.writeSync(l,`, {"pid":1,"tid":1,"ph":"${ht}","cat":"${ke}","ts":${it},"name":"${_t}"`),Ft&&r.writeSync(l,`,${Ft}`),Dt&&r.writeSync(l,`,"args":${JSON.stringify(Dt)}`),r.writeSync(l,"}"),jf("endTracing"),dd("Tracing","beginTracing","endTracing"))}function Ve(ht){const ke=ns(ht);return ke?{path:ke.path,start:_t(Ah(ke,ht.pos)),end:_t(Ah(ke,ht.end))}:void 0;function _t(Dt){return{line:Dt.line+1,character:Dt.character+1}}}function pt(ht){var ke,_t,Dt,Ft,it,Ye,ut,lt,zt,Wt,tt,Mn,kn,cr,un,on,pn,Or,Xr;jf("beginDumpTypes");const Ut=D[D.length-1].typesPath,In=r.openSync(Ut,"w"),gr=new Map;r.writeSync(In,"[");const Cr=ht.length;for(let ei=0;eimc.id),referenceLocation:Ve(Rr.node)}}let ha={};if(Gn.flags&16777216){const Rr=Gn;ha={conditionalCheckType:(Ye=Rr.checkType)==null?void 0:Ye.id,conditionalExtendsType:(ut=Rr.extendsType)==null?void 0:ut.id,conditionalTrueType:((lt=Rr.resolvedTrueType)==null?void 0:lt.id)??-1,conditionalFalseType:((zt=Rr.resolvedFalseType)==null?void 0:zt.id)??-1}}let ro={};if(Gn.flags&33554432){const Rr=Gn;ro={substitutionBaseType:(Wt=Rr.baseType)==null?void 0:Wt.id,constraintType:(tt=Rr.constraint)==null?void 0:tt.id}}let Gs={};if(Ur&1024){const Rr=Gn;Gs={reverseMappedSourceType:(Mn=Rr.source)==null?void 0:Mn.id,reverseMappedMappedType:(kn=Rr.mappedType)==null?void 0:kn.id,reverseMappedConstraintType:(cr=Rr.constraintType)==null?void 0:cr.id}}let Oc={};if(Ur&256){const Rr=Gn;Oc={evolvingArrayElementType:Rr.elementType.id,evolvingArrayFinalType:(un=Rr.finalArrayType)==null?void 0:un.id}}let _u;const Ku=Gn.checker.getRecursionIdentity(Gn);Ku&&(_u=gr.get(Ku),_u||(_u=gr.size,gr.set(Ku,_u)));const al={id:Gn.id,intrinsicName:Gn.intrinsicName,symbolName:(so==null?void 0:so.escapedName)&&lf(so.escapedName),recursionId:_u,isTuple:Ur&8?!0:void 0,unionTypes:Gn.flags&1048576?(on=Gn.types)==null?void 0:on.map(Rr=>Rr.id):void 0,intersectionTypes:Gn.flags&2097152?Gn.types.map(Rr=>Rr.id):void 0,aliasTypeArguments:(pn=Gn.aliasTypeArguments)==null?void 0:pn.map(Rr=>Rr.id),keyofType:Gn.flags&4194304?(Or=Gn.type)==null?void 0:Or.id:void 0,...di,...Nc,...ha,...ro,...Gs,...Oc,destructuringPattern:Ve(Gn.pattern),firstDeclaration:Ve((Xr=so==null?void 0:so.declarations)==null?void 0:Xr[0]),flags:ce.formatTypeFlags(Gn.flags).split("|"),display:ho};r.writeSync(In,JSON.stringify(al)),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.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))(Pz||{}),_X=(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))(_X||{}),QO=(t=>(t[t.None=0]="None",t[t.Export=1]="Export",t[t.Ambient=2]="Ambient",t[t.Public=4]="Public",t[t.Private=8]="Private",t[t.Protected=16]="Protected",t[t.Static=32]="Static",t[t.Readonly=64]="Readonly",t[t.Accessor=128]="Accessor",t[t.Abstract=256]="Abstract",t[t.Async=512]="Async",t[t.Default=1024]="Default",t[t.Const=2048]="Const",t[t.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",t[t.Deprecated=8192]="Deprecated",t[t.Override=16384]="Override",t[t.In=32768]="In",t[t.Out=65536]="Out",t[t.Decorator=131072]="Decorator",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=16476]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=117086]="TypeScriptModifier",t[t.ExportDefault=1025]="ExportDefault",t[t.All=258047]="All",t[t.Modifier=126975]="Modifier",t))(QO||{}),dX=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(dX||{}),pX=(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))(pX||{}),mX=(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))(mX||{}),gX=(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))(gX||{}),AU=(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))(AU||{}),Yne=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(Yne||{}),Nz=class{},hX=(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))(hX||{}),Qne=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(Qne||{}),Zne=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(Zne||{}),ere=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(ere||{}),tre=(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))(tre||{}),nre=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(nre||{}),rre=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(rre||{}),ire=(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))(ire||{}),yX=(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))(yX||{}),ore=(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))(ore||{}),are=(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))(are||{}),sre=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(sre||{}),cre=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(cre||{}),vX=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(vX||{}),bX=(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))(bX||{}),TX=(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))(TX||{}),lre=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(lre||{}),ure=(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))(ure||{}),fre=(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))(fre||{}),_re=(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))(_re||{}),SX=(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=138117121]="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))(SX||{}),CU=(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.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))(CU||{}),dre=(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))(dre||{}),pre=(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))(pre||{}),mre=(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))(mre||{}),gre=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(gre||{}),hre=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(hre||{}),yre=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(yre||{}),wz=(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))(wz||{}),t9=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(t9||{}),vre=(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))(vre||{}),bre=(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))(bre||{}),Tre=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(Tre||{}),Sre=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Sre||{}),Rz=(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))(Rz||{}),DU=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(DU||{}),n9=(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))(n9||{}),Ere=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(Ere||{}),EX=(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))(EX||{}),xre=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(xre||{}),Are=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(Are||{}),Mz=(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))(Mz||{}),Cre=(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))(Cre||{}),Dre=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(Dre||{}),xX=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(xX||{}),IU=(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))(IU||{}),AX=(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))(AX||{}),Ire=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(Ire||{}),kre=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(kre||{}),Pre=(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))(Pre||{}),Nre=(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))(Nre||{}),CX=(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))(CX||{}),DX=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(DX||{}),IX=(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))(IX||{}),wre=(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))(wre||{}),kU=(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))(kU||{}),Rre=(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))(Rre||{}),bTe=(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))(bTe||{}),Lz=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(Lz||{}),TTe=(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))(TTe||{}),ZO=(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.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))(ZO||{}),B_e=(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))(B_e||{}),z_e={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}}}});function G_e(t){let r=5381;for(let s=0;s{Ve.isClosed=!0,IM(r,Ve)}}}function D(ue){const Ne=[];return Ne.pollingInterval=ue,Ne.pollIndex=0,Ne.pollScheduled=!1,Ne}function I(ue,Ne){Ne.pollIndex=O(Ne,Ne.pollingInterval,Ne.pollIndex,V_e[Ne.pollingInterval]),Ne.length?de(Ne.pollingInterval):(ce.assert(Ne.pollIndex===0),Ne.pollScheduled=!1)}function W(ue,Ne){O(s,250,0,s.length),I(ue,Ne),!Ne.pollScheduled&&s.length&&de(250)}function O(ue,Ne,Be,Ve){return j_e(t,ue,Be,Ve,pt);function pt(Le,ht,ke){ke?(Le.unchangedPolls=0,ue!==s&&(ue[ht]=void 0,te(Le))):Le.unchangedPolls!==wU[Ne]?Le.unchangedPolls++:ue===s?(Le.unchangedPolls=1,ue[ht]=void 0,ee(Le,250)):Ne!==2e3&&(Le.unchangedPolls++,ue[ht]=void 0,ee(Le,Ne===250?500:2e3))}}function V(ue){switch(ue){case 250:return l;case 500:return m;case 2e3:return y}}function ee(ue,Ne){V(Ne).push(ue),oe(Ne)}function te(ue){s.push(ue),oe(250)}function oe(ue){V(ue).pollScheduled||de(ue)}function de(ue){V(ue).pollScheduled=t.setTimeout(ue===250?W:I,ue,ue===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",V(ue))}}function gMe(t,r){const s=zg(),l=new Map,m=_v(r);return y;function y(D,I,W,O){const V=m(D);s.add(V,I);const ee=qc(V)||".",te=l.get(ee)||T(qc(D)||".",ee,O);return te.referenceCount++,{close:()=>{te.referenceCount===1?(te.close(),l.delete(ee)):te.referenceCount--,s.remove(V,I)}}}function T(D,I,W){const O=t(D,1,(V,ee,te)=>{if(!As(ee))return;const oe=Su(ee,D),de=oe&&s.get(m(oe));if(de)for(const ue of de)ue(oe,1,te)},!1,500,W);return O.referenceCount=0,l.set(I,O),O}}function Pat(t){const r=[];let s=0,l;return m;function m(D,I){const W={fileName:D,callback:I,mtime:PU(t,D)};return r.push(W),T(),{close:()=>{W.isClosed=!0,IM(r,W)}}}function y(){l=void 0,s=j_e(t,r,s,V_e[250]),T()}function T(){!r.length||l||(l=t.setTimeout(y,2e3,"pollQueue"))}}function MVe(t,r,s,l,m){const T=_v(r)(s),D=t.get(T);return D?D.callbacks.push(l):t.set(T,{watcher:m((I,W,O)=>{var V;return(V=t.get(T))==null?void 0:V.callbacks.slice().forEach(ee=>ee(I,W,O))}),callbacks:[l]}),{close:()=>{const I=t.get(T);I&&(!Yw(I.callbacks,l)||I.callbacks.length||(t.delete(T),dC(I)))}}}function Nat(t,r){const s=t.mtime.getTime(),l=r.getTime();return s!==l?(t.mtime=r,t.callback(t.fileName,hMe(s,l),r),!0):!1}function hMe(t,r){return t===0?0:r===0?2:1}function Lre(t){return nE(t)}function ETe(t){nE=t}function yMe({watchDirectory:t,useCaseSensitiveFileNames:r,getCurrentDirectory:s,getAccessibleSortedChildDirectories:l,fileSystemEntryExists:m,realpath:y,setTimeout:T,clearTimeout:D}){const I=new Map,W=zg(),O=new Map;let V;const ee=Xw(!r),te=_v(r);return(ke,_t,Dt,Ft)=>Dt?oe(ke,Ft,_t):t(ke,_t,Dt,Ft);function oe(ke,_t,Dt){const Ft=te(ke);let it=I.get(Ft);it?it.refCount++:(it={watcher:t(ke,ut=>{Le(ut,_t)||(_t!=null&&_t.synchronousWatchDirectory?(de(Ft,ut),pt(ke,Ft,_t)):ue(ke,Ft,ut,_t))},!1,_t),refCount:1,childWatches:Zn},I.set(Ft,it),pt(ke,Ft,_t));const Ye=Dt&&{dirName:ke,callback:Dt};return Ye&&W.add(Ft,Ye),{dirName:ke,close:()=>{const ut=ce.checkDefined(I.get(Ft));Ye&&W.remove(Ft,Ye),ut.refCount--,!ut.refCount&&(I.delete(Ft),dC(ut),ut.childWatches.forEach(Ib))}}}function de(ke,_t,Dt){let Ft,it;As(_t)?Ft=_t:it=_t,W.forEach((Ye,ut)=>{if(!(it&&it.get(ut)===!0)&&(ut===ke||xf(ke,ut)&&ke[ut.length]===q))if(it)if(Dt){const lt=it.get(ut);lt?lt.push(...Dt):it.set(ut,Dt.slice())}else it.set(ut,!0);else Ye.forEach(({callback:lt})=>lt(Ft))})}function ue(ke,_t,Dt,Ft){const it=I.get(_t);if(it&&m(ke,1)){Ne(ke,_t,Dt,Ft);return}de(_t,Dt),Ve(it)}function Ne(ke,_t,Dt,Ft){const it=O.get(_t);it?it.fileNames.push(Dt):O.set(_t,{dirName:ke,options:Ft,fileNames:[Dt]}),V&&(D(V),V=void 0),V=T(Be,1e3,"timerToUpdateChildWatches")}function Be(){V=void 0,Lre(`sysLog:: onTimerToUpdateChildWatches:: ${O.size}`);const ke=cf(),_t=new Map;for(;!V&&O.size;){const Ft=O.entries().next();ce.assert(!Ft.done);const{value:[it,{dirName:Ye,options:ut,fileNames:lt}]}=Ft;O.delete(it);const zt=pt(Ye,it,ut);de(it,_t,zt?void 0:lt)}Lre(`sysLog:: invokingWatchers:: Elapsed:: ${cf()-ke}ms:: ${O.size}`),W.forEach((Ft,it)=>{const Ye=_t.get(it);Ye&&Ft.forEach(({callback:ut,dirName:lt})=>{ls(Ye)?Ye.forEach(ut):ut(lt)})});const Dt=cf()-ke;Lre(`sysLog:: Elapsed:: ${Dt}ms:: onTimerToUpdateChildWatches:: ${O.size} ${V}`)}function Ve(ke){if(!ke)return;const _t=ke.childWatches;ke.childWatches=Zn;for(const Dt of _t)Dt.close(),Ve(I.get(te(Dt.dirName)))}function pt(ke,_t,Dt){const Ft=I.get(_t);if(!Ft)return!1;let it;const Ye=mTe(m(ke,1)?Qo(l(ke),zt=>{const Wt=Su(zt,ke);return!Le(Wt,Dt)&&ee(Wt,Fd(y(Wt)))===0?Wt:void 0}):Zn,Ft.childWatches,(zt,Wt)=>ee(zt,Wt.dirName),ut,Ib,lt);return Ft.childWatches=it||Zn,Ye;function ut(zt){const Wt=oe(zt,Dt);lt(Wt)}function lt(zt){(it||(it=[])).push(zt)}}function Le(ke,_t){return gt(kX,Dt=>ht(ke,Dt))||Ore(ke,_t,r,s)}function ht(ke,_t){return Ub(ke,_t)?!0:r?!1:Ub(te(ke),_t)}}function LVe(t){return(r,s,l)=>t(s===1?"change":"rename","",l)}function xTe(t,r,s){return(l,m,y)=>{l==="rename"?(y||(y=s(t)||aP),r(t,y!==aP?0:2,y)):r(t,1,y)}}function Ore(t,r,s,l){return((r==null?void 0:r.excludeDirectories)||(r==null?void 0:r.excludeFiles))&&(Fpe(t,r==null?void 0:r.excludeFiles,s,l())||Fpe(t,r==null?void 0:r.excludeDirectories,s,l()))}function oP(t,r,s,l,m){return(y,T)=>{if(y==="rename"){const D=T?Fd(tf(t,T)):t;(!T||!Ore(D,s,l,m))&&r(D)}}}function Fre({pollingWatchFileWorker:t,getModifiedTime:r,setTimeout:s,clearTimeout:l,fsWatchWorker:m,fileSystemEntryExists:y,useCaseSensitiveFileNames:T,getCurrentDirectory:D,fsSupportsRecursiveFsWatch:I,getAccessibleSortedChildDirectories:W,realpath:O,tscWatchFile:V,useNonPollingWatchers:ee,tscWatchDirectory:te,inodeWatching:oe,sysLog:de}){const ue=new Map,Ne=new Map,Be=new Map;let Ve,pt,Le,ht,ke=!1;return{watchFile:_t,watchDirectory:ut};function _t(kn,cr,un,on){on=it(on,ee);const pn=ce.checkDefined(on.watchFile);switch(pn){case 0:return Wt(kn,cr,250,void 0);case 1:return Wt(kn,cr,un,void 0);case 2:return Dt()(kn,cr,un,void 0);case 3:return Ft()(kn,cr,void 0,void 0);case 4:return tt(kn,0,xTe(kn,cr,r),!1,un,jW(on));case 5:return Le||(Le=gMe(tt,T)),Le(kn,cr,un,jW(on));default:ce.assertNever(pn)}}function Dt(){return Ve||(Ve=Mre({getModifiedTime:r,setTimeout:s}))}function Ft(){return pt||(pt=Pat({getModifiedTime:r,setTimeout:s}))}function it(kn,cr){if(kn&&kn.watchFile!==void 0)return kn;switch(V){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ye(4,1,kn);case"UseFsEventsWithFallbackDynamicPolling":return Ye(4,2,kn);case"UseFsEventsOnParentDirectory":cr=!0;default:return cr?Ye(5,1,kn):{watchFile:4}}}function Ye(kn,cr,un){const on=un==null?void 0:un.fallbackPolling;return{watchFile:kn,fallbackPolling:on===void 0?cr:on}}function ut(kn,cr,un,on){return I?tt(kn,1,oP(kn,cr,on,T,D),un,500,jW(on)):(ht||(ht=yMe({useCaseSensitiveFileNames:T,getCurrentDirectory:D,fileSystemEntryExists:y,getAccessibleSortedChildDirectories:W,watchDirectory:lt,realpath:O,setTimeout:s,clearTimeout:l})),ht(kn,cr,un,on))}function lt(kn,cr,un,on){ce.assert(!un);const pn=zt(on),Or=ce.checkDefined(pn.watchDirectory);switch(Or){case 1:return Wt(kn,()=>cr(kn),500,void 0);case 2:return Dt()(kn,()=>cr(kn),500,void 0);case 3:return Ft()(kn,()=>cr(kn),void 0,void 0);case 0:return tt(kn,1,oP(kn,cr,on,T,D),un,500,jW(pn));default:ce.assertNever(Or)}}function zt(kn){if(kn&&kn.watchDirectory!==void 0)return kn;switch(te){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const cr=kn==null?void 0:kn.fallbackPolling;return{watchDirectory:0,fallbackPolling:cr!==void 0?cr:void 0}}}function Wt(kn,cr,un,on){return MVe(ue,T,kn,cr,pn=>t(kn,pn,un,on))}function tt(kn,cr,un,on,pn,Or){return MVe(on?Be:Ne,T,kn,un,Xr=>Mn(kn,cr,Xr,on,pn,Or))}function Mn(kn,cr,un,on,pn,Or){let Xr,Ut;oe&&(Xr=kn.substring(kn.lastIndexOf(q)),Ut=Xr.slice(q.length));let In=y(kn,cr)?Cr():Ur();return{close:()=>{In&&(In.close(),In=void 0)}};function gr(so){In&&(de(`sysLog:: ${kn}:: Changing watcher to ${so===Cr?"Present":"Missing"}FileSystemEntryWatcher`),In.close(),In=so())}function Cr(){if(ke)return de(`sysLog:: ${kn}:: Defaulting to watchFile`),Gn();try{const so=m(kn,on,oe?ei:un);return so.on("error",()=>{un("rename",""),gr(Ur)}),so}catch(so){return ke||(ke=so.code==="ENOSPC"),de(`sysLog:: ${kn}:: Changing to watchFile`),Gn()}}function ei(so,ho){let di;if(ho&&h_(ho,"~")&&(di=ho,ho=ho.slice(0,ho.length-1)),so==="rename"&&(!ho||ho===Ut||h_(ho,Xr))){const Nc=r(kn)||aP;di&&un(so,di,Nc),un(so,ho,Nc),oe?gr(Nc===aP?Ur:Cr):Nc===aP&&gr(Ur)}else di&&un(so,di),un(so,ho)}function Gn(){return _t(kn,LVe(un),pn,Or)}function Ur(){return _t(kn,(so,ho,di)=>{ho===0&&(di||(di=r(kn)||aP),di!==aP&&(un("rename","",di),gr(Cr)))},pn,Or)}}}function Wre(t){const r=t.writeFile;t.writeFile=(s,l,m)=>Lde(s,l,!!m,(y,T,D)=>r.call(t,y,T,D),y=>t.createDirectory(y),y=>t.directoryExists(y))}function Bre(t){m0=t}var NU,zre,aP,w0,V_e,wU,kX,nE,Gre,m0,V2=G({"src/compiler/sys.ts"(){Ad(),NU=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(NU||{}),zre=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(zre||{}),aP=new Date(0),w0={Low:32,Medium:64,High:256},V_e=STe(w0),wU=STe(w0),kX=["/node_modules/.","/.git","/.#"],nE=ku,Gre=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(Gre||{}),m0=(()=>{const t="\uFEFF";function r(){const l=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,m=MC,y=MC,T=MC;let D;try{D=MC}catch{D=void 0}let I,W="./profile.cpuprofile";const O=MC.Buffer,V=process.platform==="linux"||process.platform==="darwin",ee=T.platform(),te=Ft(),oe=m.realpathSync.native?process.platform==="win32"?pn:m.realpathSync.native:m.realpathSync,de=__filename.endsWith("sys.js")?y.join(y.dirname(__dirname),"__fake__.js"):__filename,ue=process.platform==="win32"||process.platform==="darwin",Ne=Pd(()=>process.cwd()),{watchFile:Be,watchDirectory:Ve}=Fre({pollingWatchFileWorker:Ye,getModifiedTime:Xr,setTimeout,clearTimeout,fsWatchWorker:ut,useCaseSensitiveFileNames:te,getCurrentDirectory:Ne,fileSystemEntryExists:kn,fsSupportsRecursiveFsWatch:ue,getAccessibleSortedChildDirectories:Cr=>tt(Cr).directories,realpath:Or,tscWatchFile:g.TSC_WATCHFILE,useNonPollingWatchers:!!g.TSC_NONPOLLING_WATCHER,tscWatchDirectory:g.TSC_WATCHDIRECTORY,inodeWatching:V,sysLog:Lre}),pt={args:process.argv.slice(2),newLine:T.EOL,useCaseSensitiveFileNames:te,write(Cr){process.stdout.write(Cr)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:zt,writeFile:Wt,watchFile:Be,watchDirectory:Ve,resolvePath:Cr=>y.resolve(Cr),fileExists:cr,directoryExists:un,createDirectory(Cr){if(!pt.directoryExists(Cr))try{m.mkdirSync(Cr)}catch(ei){if(ei.code!=="EEXIST")throw ei}},getExecutingFilePath(){return de},getCurrentDirectory:Ne,getDirectories:on,getEnvironmentVariable(Cr){return g[Cr]||""},readDirectory:Mn,getModifiedTime:Xr,setModifiedTime:Ut,deleteFile:In,createHash:D?gr:G_e,createSHA256Hash:D?gr:void 0,getMemoryUsage(){return ORe.gc&&ORe.gc(),process.memoryUsage().heapUsed},getFileSize(Cr){try{const ei=Le(Cr);if(ei!=null&&ei.isFile())return ei.size}catch{}return 0},exit(Cr){_t(()=>process.exit(Cr))},enableCPUProfiler:ht,disableCPUProfiler:_t,cpuProfilingEnabled:()=>!!I||ni(process.execArgv,"--cpu-prof")||ni(process.execArgv,"--prof"),realpath:Or,debugMode:!!g.NODE_INSPECTOR_IPC||!!g.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,Cr=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Cr))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{MC.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var Cr;const ei=(Cr=process.stdout)==null?void 0:Cr._handle;ei&&ei.setBlocking&&ei.setBlocking(!0)},bufferFrom:Dt,base64decode:Cr=>Dt(Cr,"base64").toString("utf8"),base64encode:Cr=>Dt(Cr).toString("base64"),require:(Cr,ei)=>{try{const Gn=ej(ei,Cr,pt);return{module:Wot(Gn),modulePath:Gn,error:void 0}}catch(Gn){return{module:void 0,modulePath:void 0,error:Gn}}}};return pt;function Le(Cr){return m.statSync(Cr,{throwIfNoEntry:!1})}function ht(Cr,ei){if(I)return ei(),!1;const Gn=MC;if(!Gn||!Gn.Session)return ei(),!1;const Ur=new Gn.Session;return Ur.connect(),Ur.post("Profiler.enable",()=>{Ur.post("Profiler.start",()=>{I=Ur,W=Cr,ei()})}),!0}function ke(Cr){let ei=0;const Gn=new Map,Ur=hf(y.dirname(de)),so=`file://${vN(Ur)===1?"":"/"}${Ur}`;for(const ho of Cr.nodes)if(ho.callFrame.url){const di=hf(ho.callFrame.url);GC(so,di,te)?ho.callFrame.url=Fz(so,di,so,_v(te),!0):l.test(di)||(ho.callFrame.url=(Gn.has(di)?Gn:Gn.set(di,`external${ei}.js`)).get(di),ei++)}return Cr}function _t(Cr){if(I&&I!=="stopping"){const ei=I;return I.post("Profiler.stop",(Gn,{profile:Ur})=>{var so;if(!Gn){try{(so=Le(W))!=null&&so.isDirectory()&&(W=y.join(W,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{m.mkdirSync(y.dirname(W),{recursive:!0})}catch{}m.writeFileSync(W,JSON.stringify(ke(Ur)))}I=void 0,ei.disconnect(),Cr()}),I="stopping",!0}else return Cr(),!1}function Dt(Cr,ei){return O.from&&O.from!==Int8Array.from?O.from(Cr,ei):new O(Cr,ei)}function Ft(){return ee==="win32"||ee==="win64"?!1:!cr(it(__filename))}function it(Cr){return Cr.replace(/\w/g,ei=>{const Gn=ei.toUpperCase();return ei===Gn?ei.toLowerCase():Gn})}function Ye(Cr,ei,Gn){m.watchFile(Cr,{persistent:!0,interval:Gn},so);let Ur;return{close:()=>m.unwatchFile(Cr,so)};function so(ho,di){const Nc=+di.mtime==0||Ur===2;if(+ho.mtime==0){if(Nc)return;Ur=2}else if(Nc)Ur=0;else{if(+ho.mtime==+di.mtime)return;Ur=1}ei(Cr,Ur,ho.mtime)}}function ut(Cr,ei,Gn){return m.watch(Cr,ue?{persistent:!0,recursive:!!ei}:{persistent:!0},Gn)}function lt(Cr,ei){let Gn;try{Gn=m.readFileSync(Cr)}catch{return}let Ur=Gn.length;if(Ur>=2&&Gn[0]===254&&Gn[1]===255){Ur&=-2;for(let so=0;so=2&&Gn[0]===255&&Gn[1]===254?Gn.toString("utf16le",2):Ur>=3&&Gn[0]===239&&Gn[1]===187&&Gn[2]===191?Gn.toString("utf8",3):Gn.toString("utf8")}function zt(Cr,ei){var Gn,Ur;(Gn=jD)==null||Gn.logStartReadFile(Cr);const so=lt(Cr);return(Ur=jD)==null||Ur.logStopReadFile(),so}function Wt(Cr,ei,Gn){var Ur;(Ur=jD)==null||Ur.logEvent("WriteFile: "+Cr),Gn&&(ei=t+ei);let so;try{so=m.openSync(Cr,"w"),m.writeSync(so,ei,void 0,"utf8")}finally{so!==void 0&&m.closeSync(so)}}function tt(Cr){var ei;(ei=jD)==null||ei.logEvent("ReadDir: "+(Cr||"."));try{const Gn=m.readdirSync(Cr||".",{withFileTypes:!0}),Ur=[],so=[];for(const ho of Gn){const di=typeof ho=="string"?ho:ho.name;if(di==="."||di==="..")continue;let Nc;if(typeof ho=="string"||ho.isSymbolicLink()){const ha=tf(Cr,di);try{if(Nc=Le(ha),!Nc)continue}catch{continue}}else Nc=ho;Nc.isFile()?Ur.push(di):Nc.isDirectory()&&so.push(di)}return Ur.sort(),so.sort(),{files:Ur,directories:so}}catch{return xG}}function Mn(Cr,ei,Gn,Ur,so){return ioe(Cr,ei,Gn,Ur,te,process.cwd(),so,tt,Or)}function kn(Cr,ei){const Gn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ur=Le(Cr);if(!Ur)return!1;switch(ei){case 0:return Ur.isFile();case 1:return Ur.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Gn}}function cr(Cr){return kn(Cr,0)}function un(Cr){return kn(Cr,1)}function on(Cr){return tt(Cr).directories.slice()}function pn(Cr){return Cr.length<260?m.realpathSync.native(Cr):m.realpathSync(Cr)}function Or(Cr){try{return oe(Cr)}catch{return Cr}}function Xr(Cr){var ei;const Gn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ei=Le(Cr))==null?void 0:ei.mtime}catch{return}finally{Error.stackTraceLimit=Gn}}function Ut(Cr,ei){try{m.utimesSync(Cr,ei,ei)}catch{return}}function In(Cr){try{return m.unlinkSync(Cr)}catch{return}}function gr(Cr){const ei=D.createHash("sha256");return ei.update(Cr),ei.digest("hex")}}let s;return kM()&&(s=r()),s&&Wre(s),s})(),m0&&m0.getEnvironmentVariable&&(kat(m0),ce.setAssertionLevel(/^development$/i.test(m0.getEnvironmentVariable("NODE_ENV"))?1:0)),m0&&m0.debugMode&&(ce.isDebugging=!0)}});function jre(t){return t===47||t===92}function r9(t){return t7(t)<0}function mm(t){return t7(t)>0}function pv(t){const r=t7(t);return r>0&&r===t.length}function VD(t){return t7(t)!==0}function U2(t){return/^\.\.?($|[\\/])/.test(t)}function vMe(t){return!VD(t)&&!U2(t)}function e7(t){return Ub(Iy(t),".")}function Pg(t,r){return t.length>r.length&&h_(t,r)}function ws(t,r){for(const s of r)if(Pg(t,s))return!0;return!1}function Jg(t){return t.length>0&&jre(t.charCodeAt(t.length-1))}function bMe(t){return t>=97&&t<=122||t>=65&&t<=90}function wat(t,r){const s=t.charCodeAt(r);if(s===58)return r+1;if(s===37&&t.charCodeAt(r+1)===51){const l=t.charCodeAt(r+2);if(l===97||l===65)return r+3}return-1}function t7(t){if(!t)return 0;const r=t.charCodeAt(0);if(r===47||r===92){if(t.charCodeAt(1)!==r)return 1;const l=t.indexOf(r===47?q:N,2);return l<0?t.length:l+1}if(bMe(r)&&t.charCodeAt(1)===58){const l=t.charCodeAt(2);if(l===47||l===92)return 3;if(t.length===2)return 2}const s=t.indexOf(SMe);if(s!==-1){const l=s+SMe.length,m=t.indexOf(q,l);if(m!==-1){const y=t.slice(0,s),T=t.slice(l,m);if(y==="file"&&(T===""||T==="localhost")&&bMe(t.charCodeAt(m+1))){const D=wat(t,m+2);if(D!==-1){if(t.charCodeAt(D)===47)return~(D+1);if(D===t.length)return~D}}return~(m+1)}return~t.length}return 0}function vN(t){const r=t7(t);return r<0?~r:r}function qc(t){t=hf(t);const r=vN(t);return r===t.length?t:(t=n7(t),t.slice(0,Math.max(r,t.lastIndexOf(q))))}function Iy(t,r,s){if(t=hf(t),vN(t)===t.length)return"";t=n7(t);const m=t.slice(Math.max(vN(t),t.lastIndexOf(q)+1)),y=r!==void 0&&s!==void 0?vl(m,r,s):void 0;return y?m.slice(0,m.length-y.length):m}function $1(t,r,s){if(xf(r,".")||(r="."+r),t.length>=r.length&&t.charCodeAt(t.length-r.length)===46){const l=t.slice(t.length-r.length);if(s(l,r))return l}}function i9(t,r,s){if(typeof r=="string")return $1(t,r,s)||"";for(const l of r){const m=$1(t,l,s);if(m)return m}return""}function vl(t,r,s){if(r)return i9(n7(t),r,s?pN:ZA);const l=Iy(t),m=l.lastIndexOf(".");return m>=0?l.substring(m):""}function NL(t,r){const s=t.substring(0,r),l=t.substring(r).split(q);return l.length&&!Yf(l)&&l.pop(),[s,...l]}function g0(t,r=""){return t=tf(r,t),NL(t,vN(t))}function vf(t,r){return t.length===0?"":(t[0]&&Rv(t[0]))+t.slice(1,r).join(q)}function hf(t){return t.indexOf("\\")!==-1?t.replace(CT,q):t}function Oz(t){if(!gt(t))return[];const r=[t[0]];for(let s=1;s1){if(r[r.length-1]!==".."){r.pop();continue}}else if(r[0])continue}r.push(l)}}return r}function tf(t,...r){t&&(t=hf(t));for(let s of r)s&&(s=hf(s),!t||vN(s)!==0?t=s:t=Rv(t)+s);return t}function gm(t,...r){return Fd(gt(r)?tf(t,...r):hf(t))}function bN(t,r){return Oz(g0(t,r))}function Su(t,r){return vf(bN(t,r))}function Fd(t){if(t=hf(t),!RX.test(t))return t;const r=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(r!==t&&(t=r,!RX.test(t)))return t;const s=vf(Oz(g0(t)));return s&&Jg(t)?Rv(s):s}function Vre(t){return t.length===0?"":t.slice(1).join(q)}function U_e(t,r){return Vre(bN(t,r))}function _h(t,r,s){const l=mm(t)?Fd(t):Su(t,r);return s(l)}function n7(t){return Jg(t)?t.substr(0,t.length-1):t}function Rv(t){return Jg(t)?t:t+q}function OE(t){return!VD(t)&&!U2(t)?"./"+t:t}function RU(t,r,s,l){const m=s!==void 0&&l!==void 0?vl(t,s,l):vl(t);return m?t.slice(0,t.length-m.length)+(xf(r,".")?r:"."+r):t}function Ure(t,r,s){if(t===r)return 0;if(t===void 0)return-1;if(r===void 0)return 1;const l=t.substring(0,vN(t)),m=r.substring(0,vN(r)),y=Kw(l,m);if(y!==0)return y;const T=t.substring(l.length),D=r.substring(m.length);if(!RX.test(T)&&!RX.test(D))return s(T,D);const I=Oz(g0(t)),W=Oz(g0(r)),O=Math.min(I.length,W.length);for(let V=1;V0==vN(r)>0,"Paths must either both be absolute or both be relative");const y=NX(t,r,(typeof s=="boolean"?s:!1)?pN:ZA,typeof s=="function"?s:Of);return vf(y)}function r7(t,r,s){return mm(t)?Fz(r,t,r,s,!1):t}function wX(t,r,s){return OE(qp(qc(t),r,s))}function Fz(t,r,s,l,m){const y=NX(gm(s,t),gm(s,r),ZA,l),T=y[0];if(m&&mm(T)){const D=T.charAt(0)===q?"file://":"file:///";y[0]=D+T}return vf(y)}function ok(t,r){for(;;){const s=r(t);if(s!==void 0)return s;const l=qc(t);if(l===t)return;t=l}}function TMe(t){return h_(t,"/node_modules")}var q,N,SMe,CT,RX,Hre=G({"src/compiler/path.ts"(){Ad(),q="/",N="\\",SMe="://",CT=/\\/g,RX=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function K(t,r,s,l,m,y,T){return{code:t,category:r,key:s,message:l,reportsUnnecessary:m,elidedInCompatabilityPyramid:y,reportsDeprecated:T}}var w,Rat=G({"src/compiler/diagnosticInformationMap.generated.ts"(){mMe(),w={Unterminated_string_literal:K(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:K(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:K(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:K(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:K(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:K(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:K(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:K(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:K(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:K(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:K(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:K(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:K(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:K(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:K(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:K(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:K(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:K(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:K(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:K(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:K(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:K(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:K(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:K(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:K(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:K(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:K(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:K(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:K(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:K(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:K(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:K(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:K(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:K(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:K(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:K(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:K(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:K(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:K(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:K(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:K(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:K(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:K(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:K(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:K(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:K(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:K(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:K(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:K(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:K(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:K(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:K(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:K(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:K(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:K(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:K(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:K(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:K(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:K(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:K(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:K(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:K(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:K(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:K(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:K(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:K(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:K(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:K(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:K(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:K(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:K(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:K(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:K(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:K(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:K(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:K(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:K(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:K(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:K(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:K(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:K(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:K(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:K(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:K(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:K(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:K(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:K(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:K(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:K(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:K(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:K(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:K(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:K(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:K(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:K(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:K(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:K(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:K(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:K(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:K(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:K(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:K(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:K(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:K(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:K(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:K(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:K(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:K(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:K(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:K(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:K(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:K(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:K(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:K(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:K(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:K(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:K(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:K(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:K(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:K(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:K(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:K(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:K(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:K(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:K(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:K(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:K(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:K(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:K(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:K(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:K(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:K(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:K(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:K(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:K(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:K(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:K(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:K(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:K(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:K(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:K(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:K(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:K(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:K(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:K(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:K(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:K(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:K(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:K(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:K(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:K(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:K(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:K(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:K(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:K(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:K(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_assertion_as_arguments:K(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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:K(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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:K(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:K(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:K(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:K(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:K(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:K(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:K(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:K(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:K(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:K(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:K(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:K(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:K(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:K(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:K(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:K(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:K(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:K(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:K(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:K(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:K(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:K(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:K(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:K(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:K(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:K(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:K(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:K(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:K(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:K(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:K(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:K(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:K(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:K(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:K(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:K(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:K(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:K(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:K(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:K(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:K(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:K(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:K(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:K(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:K(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:K(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:K(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:K(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:K(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:K(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:K(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:K(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:K(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:K(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:K(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:K(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:K(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:K(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:K(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:K(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:K(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:K(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:K(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:K(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:K(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:K(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:K(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:K(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:K(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:K(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:K(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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."),Cannot_find_namespace_0_Did_you_mean_1:K(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:K(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:K(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_transpile_to_commonjs_require_calls:K(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:K(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:K(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:K(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_an_interface_can_only_extend_named_types_and_classes:K(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:K(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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."),Import_declaration_0_is_using_private_name_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:K(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are 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:K(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:K(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:K(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:K(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:K(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:K(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:K(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:K(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:K(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:K(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:K(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:K(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:K(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:K(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:K(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:K(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:K(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:K(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:K(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:K(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:K(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:K(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:K(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:K(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:K(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:K(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:K(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:K(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:K(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:K(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:K(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:K(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:K(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:K(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:K(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:K(6024,3,"options_6024","options"),file:K(6025,3,"file_6025","file"),Examples_Colon_0:K(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:K(6027,3,"Options_Colon_6027","Options:"),Version_0:K(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:K(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:K(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:K(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:K(6034,3,"KIND_6034","KIND"),FILE:K(6035,3,"FILE_6035","FILE"),VERSION:K(6036,3,"VERSION_6036","VERSION"),LOCATION:K(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:K(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:K(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:K(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:K(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:K(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:K(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:K(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:K(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:K(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:K(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:K(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:K(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:K(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:K(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:K(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:K(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:K(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:K(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:K(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:K(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:K(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:K(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:K(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:K(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:K(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:K(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:K(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:K(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:K(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:K(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:K(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:K(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:K(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:K(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:K(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:K(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:K(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:K(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:K(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:K(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:K(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:K(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:K(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:K(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:K(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:K(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:K(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:K(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:K(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:K(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:K(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:K(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:K(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:K(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:K(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:K(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:K(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:K(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:K(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:K(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:K(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:K(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:K(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:K(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:K(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:K(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:K(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:K(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:K(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:K(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:K(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:K(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:K(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:K(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:K(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:K(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:K(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:K(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:K(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:K(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:K(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:K(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:K(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:K(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:K(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:K(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:K(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:K(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:K(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:K(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:K(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:K(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:K(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:K(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:K(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:K(6244,3,"Modules_6244","Modules"),File_Management:K(6245,3,"File_Management_6245","File Management"),Emit:K(6246,3,"Emit_6246","Emit"),JavaScript_Support:K(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:K(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:K(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:K(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:K(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:K(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:K(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:K(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:K(6255,3,"Projects_6255","Projects"),Output_Formatting:K(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:K(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:K(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:K(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:K(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:K(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:K(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:K(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:K(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:K(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:K(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:K(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:K(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:K(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:K(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:K(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:K(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:K(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:K(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:K(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:K(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:K(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:K(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:K(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:K(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:K(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:K(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:K(6902,3,"type_Colon_6902","type:"),default_Colon:K(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:K(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:K(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:K(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:K(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:K(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:K(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:K(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:K(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:K(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:K(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:K(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:K(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:K(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:K(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:K(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:K(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:K(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:K(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:K(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:K(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:K(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:K(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:K(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:K(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:K(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:K(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:K(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:K(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:K(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:K(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:K(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:K(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:K(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:K(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:K(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:K(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:K(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:K(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}'?"),Circularity_detected_while_resolving_configuration_Colon_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:K(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:K(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:K(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:K(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:K(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:K(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:K(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:K(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:K(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:K(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:K(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:K(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:K(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:K(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:K(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:K(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:K(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:K(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:K(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:K(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:K(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:K(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:K(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:K(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:K(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:K(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:K(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:K(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:K(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:K(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:K(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:K(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:K(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:K(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:K(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:K(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:K(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:K(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:K(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:K(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:K(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:K(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:K(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:K(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:K(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:K(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:K(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:K(95005,3,"Extract_function_95005","Extract function"),Extract_constant:K(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:K(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:K(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:K(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:K(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:K(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:K(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:K(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:K(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:K(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:K(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:K(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:K(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:K(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:K(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:K(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:K(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:K(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:K(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:K(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:K(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:K(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:K(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:K(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:K(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:K(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:K(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:K(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:K(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:K(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:K(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:K(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:K(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:K(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:K(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:K(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:K(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:K(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:K(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:K(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:K(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:K(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:K(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:K(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:K(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:K(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:K(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:K(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:K(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:K(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:K(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:K(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:K(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:K(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:K(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:K(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:K(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:K(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:K(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:K(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:K(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:K(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:K(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:K(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:K(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:K(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:K(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:K(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:K(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:K(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:K(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:K(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:K(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:K(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:K(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:K(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:K(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:K(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:K(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:K(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:K(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:K(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:K(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:K(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:K(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:K(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:K(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:K(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:K(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:K(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:K(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:K(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:K(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:K(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:K(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:K(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:K(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:K(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:K(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:K(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:K(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:K(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:K(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:K(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:K(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:K(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:K(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:K(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:K(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:K(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:K(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:K(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:K(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:K(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:K(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:K(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:K(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:K(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:K(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:K(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:K(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:K(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:K(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:K(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:K(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:K(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:K(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:K(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:K(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:K(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:K(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:K(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:K(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:K(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:K(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:K(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:K(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:K(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:K(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:K(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:K(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:K(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:K(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:K(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:K(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:K(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:K(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:K(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:K(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:K(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:K(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:K(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:K(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:K(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:K(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:K(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:K(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:K(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:K(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:K(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:K(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:K(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:K(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:K(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:K(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:K(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:K(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:K(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:K(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:K(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:K(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:K(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:K(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:K(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:K(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:K(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:K(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:K(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:K(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:K(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:K(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:K(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:K(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:K(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 Cf(t){return t>=80}function D8(t){return t===32||Cf(t)}function RM(t,r){if(t=2?RM(t,IMe):r===1?RM(t,CMe):RM(t,xMe)}function H_e(t,r){return r>=2?RM(t,$re):r===1?RM(t,DMe):RM(t,AMe)}function eR(t){const r=[];return t.forEach((s,l)=>{r[s]=l}),r}function Nd(t){return FVe[t]}function TN(t){return DTe.get(t)}function i7(t){const r=[];let s=0,l=0;for(;s127&&Ff(m)&&(r.push(l),l=s);break}}return r.push(l),r}function xm(t,r,s,l){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(r,s,l):cP(q1(t),r,s,t.text,l)}function cP(t,r,s,l,m){(r<0||r>=t.length)&&(m?r=r<0?0:r>=t.length?t.length-1:r:ce.fail(`Bad line number. Line: ${r}, lineStarts.length: ${t.length} , line map is correct? ${l!==void 0?sf(t,i7(l)):"unknown"}`));const y=t[r]+s;return m?y>t[r+1]?t[r+1]:typeof l=="string"&&y>l.length?l.length:y:(r=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Ff(t){return t===10||t===13||t===8232||t===8233}function wL(t){return t>=48&&t<=57}function LX(t){return wL(t)||t>=65&&t<=70||t>=97&&t<=102}function ATe(t){return t<=1114111}function OX(t){return t>=48&&t<=55}function J_e(t,r){const s=t.charCodeAt(r);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 r===0;default:return s>127}}function ep(t,r,s,l,m){if(ab(r))return r;let y=!1;for(;;){const T=t.charCodeAt(r);switch(T){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,s)return r;y=!!m;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(l)break;if(t.charCodeAt(r+1)===47){for(r+=2;r127&&UD(T)){r++;continue}break}return r}}function k8(t,r){if(ce.assert(r>=0),r===0||Ff(t.charCodeAt(r-1))){const s=t.charCodeAt(r);if(r+Kv=0&&s127&&UD(oe)){V&&Ff(oe)&&(O=!0),s++;continue}break e}}return V&&(te=m(D,I,W,O,y,te)),te}function SN(t,r,s,l){return JD(!1,t,r,!1,s,l)}function Bz(t,r,s,l){return JD(!1,t,r,!0,s,l)}function lP(t,r,s,l,m){return JD(!0,t,r,!1,s,l,m)}function RL(t,r,s,l,m){return JD(!0,t,r,!0,s,l,m)}function H2(t,r,s,l,m,y=[]){return y.push({kind:s,pos:t,end:r,hasTrailingNewLine:l}),y}function CS(t,r){return lP(t,r,H2,void 0,void 0)}function Nx(t,r){return RL(t,r,H2,void 0,void 0)}function tR(t){const r=o7.exec(t);if(r)return r[0]}function nR(t,r){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&Wz(t,r)}function ak(t,r,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&&H_e(t,r)}function rE(t,r,s){let l=$D(t,0);if(!nR(l,r))return!1;for(let m=LM(l);mO,getStartPos:()=>O,getTokenEnd:()=>I,getTextPos:()=>I,getToken:()=>ee,getTokenStart:()=>V,getTokenPos:()=>V,getTokenText:()=>D.substring(V,I),getTokenValue:()=>te,hasUnicodeEscape:()=>(oe&1024)!==0,hasExtendedUnicodeEscape:()=>(oe&8)!==0,hasPrecedingLineBreak:()=>(oe&1)!==0,hasPrecedingJSDocComment:()=>(oe&2)!==0,isIdentifier:()=>ee===80||ee>118,isReservedWord:()=>ee>=83&&ee<=118,isUnterminated:()=>(oe&4)!==0,getCommentDirectives:()=>de,getNumericLiteralFlags:()=>oe&25584,getTokenFlags:()=>oe,reScanGreaterToken:pn,reScanAsteriskEqualsToken:Or,reScanSlashToken:Xr,reScanTemplateToken:gr,reScanTemplateHeadOrNoSubstitutionTemplate:Cr,scanJsxIdentifier:di,scanJsxAttributeValue:Nc,reScanJsxAttributeValue:ha,reScanJsxToken:ei,reScanLessThanToken:Gn,reScanHashToken:Ur,reScanQuestionToken:so,reScanInvalidIdentifier:un,scanJsxToken:ho,scanJsDocToken:Gs,scanJSDocCommentTextToken:ro,scan:cr,getText:Rr,clearCommentDirectives:mc,setText:Ea,setScriptTarget:ta,setLanguageVariant:$a,setOnError:Fi,resetTokenState:jc,setTextPos:jc,setInJSDocType:Xu,tryScan:al,lookAhead:Ku,scanRange:_u};return ce.isDebugging&&Object.defineProperty(Ne,"__debugShowCurrentPositionInText",{get:()=>{const Lo=Ne.getText();return Lo.slice(0,Ne.getTokenFullStart())+"║"+Lo.slice(Ne.getTokenFullStart())}}),Ne;function Be(Lo,To=I,Aa,sl){if(m){const vc=I;I=To,m(Lo,Aa||0,sl),I=vc}}function Ve(){let Lo=I,To=!1,Aa=!1,sl="";for(;;){const vc=D.charCodeAt(I);if(vc===95){oe|=512,To?(To=!1,Aa=!0,sl+=D.substring(Lo,I)):(oe|=16384,Be(Aa?w.Multiple_consecutive_numeric_separators_are_not_permitted:w.Numeric_separators_are_not_allowed_here,I,1)),I++,Lo=I;continue}if(wL(vc)){To=!0,Aa=!1,I++;continue}break}return D.charCodeAt(I-1)===95&&(oe|=16384,Be(w.Numeric_separators_are_not_allowed_here,I-1,1)),sl+D.substring(Lo,I)}function pt(){let Lo=I,To;if(D.charCodeAt(I)===48)if(I++,D.charCodeAt(I)===95)oe|=16896,Be(w.Numeric_separators_are_not_allowed_here,I,1),I--,To=Ve();else if(!ht())oe|=8192,To=""+ +te;else if(!te)To="0";else{te=""+parseInt(te,8),oe|=32;const Jr=ee===41,li=(Jr?"-":"")+"0o"+(+te).toString(8);return Jr&&Lo--,Be(w.Octal_literals_are_not_allowed_Use_the_syntax_0,Lo,I-Lo,li),9}else To=Ve();let Aa,sl;D.charCodeAt(I)===46&&(I++,Aa=Ve());let vc=I;if(D.charCodeAt(I)===69||D.charCodeAt(I)===101){I++,oe|=16,(D.charCodeAt(I)===43||D.charCodeAt(I)===45)&&I++;const Jr=I,li=Ve();li?(sl=D.substring(vc,Jr)+li,vc=I):Be(w.Digit_expected)}let er;if(oe&512?(er=To,Aa&&(er+="."+Aa),sl&&(er+=sl)):er=D.substring(Lo,vc),oe&8192)return Be(w.Decimals_with_leading_zeros_are_not_allowed,Lo,vc-Lo),te=""+ +er,9;if(Aa!==void 0||oe&16)return Le(Lo,Aa===void 0&&!!(oe&16)),te=""+ +er,9;{te=er;const Jr=kn();return Le(Lo),Jr}}function Le(Lo,To){if(!nR($D(D,I),t))return;const Aa=I,{length:sl}=Wt();sl===1&&D[Aa]==="n"?Be(To?w.A_bigint_literal_cannot_use_exponential_notation:w.A_bigint_literal_must_be_an_integer,Lo,Aa-Lo+1):(Be(w.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Aa,sl),I=Aa)}function ht(){const Lo=I;let To=!0;for(;wL(D.charCodeAt(I));)OX(D.charCodeAt(I))||(To=!1),I++;return te=D.substring(Lo,I),To}function ke(Lo,To){const Aa=Dt(Lo,!1,To);return Aa?parseInt(Aa,16):-1}function _t(Lo,To){return Dt(Lo,!0,To)}function Dt(Lo,To,Aa){let sl=[],vc=!1,er=!1;for(;sl.length=65&&Jr<=70)Jr+=32;else if(!(Jr>=48&&Jr<=57||Jr>=97&&Jr<=102))break;sl.push(Jr),I++,er=!1}return sl.length=W){Aa+=D.substring(sl,I),oe|=4,Be(w.Unterminated_string_literal);break}const vc=D.charCodeAt(I);if(vc===To){Aa+=D.substring(sl,I),I++;break}if(vc===92&&!Lo){Aa+=D.substring(sl,I),Aa+=Ye(!0),sl=I;continue}if(Ff(vc)&&!Lo){Aa+=D.substring(sl,I),oe|=4,Be(w.Unterminated_string_literal);break}I++}return Aa}function it(Lo){const To=D.charCodeAt(I)===96;I++;let Aa=I,sl="",vc;for(;;){if(I>=W){sl+=D.substring(Aa,I),oe|=4,Be(w.Unterminated_template_literal),vc=To?15:18;break}const er=D.charCodeAt(I);if(er===96){sl+=D.substring(Aa,I),I++,vc=To?15:18;break}if(er===36&&I+1=W)return Be(w.Unexpected_end_of_text),"";const Aa=D.charCodeAt(I);switch(I++,Aa){case 48:if(I>=W||!wL(D.charCodeAt(I)))return"\0";case 49:case 50:case 51:I=W?(oe|=2048,Lo&&Be(w.Unexpected_end_of_text),D.substring(To,I)):D.charCodeAt(I)!==125?(oe|=2048,Lo&&Be(w.Unterminated_Unicode_escape_sequence),D.substring(To,I)):(I++,oe|=8,LU(vc)):(oe|=2048,Lo&&Be(w.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),D.substring(To,I))}for(;I1114111&&(Be(w.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Aa=!0),I>=W?(Be(w.Unexpected_end_of_text),Aa=!0):D.charCodeAt(I)===125?I++:(Be(w.Unterminated_Unicode_escape_sequence),Aa=!0),Aa?"":LU(To)}function lt(){if(I+5=0&&ak(Aa,t)){I+=3,oe|=8,Lo+=ut(),To=I;continue}if(Aa=lt(),!(Aa>=0&&ak(Aa,t)))break;oe|=1024,Lo+=D.substring(To,I),Lo+=LU(Aa),I+=6,To=I}else break}return Lo+=D.substring(To,I),Lo}function tt(){const Lo=te.length;if(Lo>=2&&Lo<=12){const To=te.charCodeAt(0);if(To>=97&&To<=122){const Aa=EMe.get(te);if(Aa!==void 0)return ee=Aa}}return ee=80}function Mn(Lo){let To="",Aa=!1,sl=!1;for(;;){const vc=D.charCodeAt(I);if(vc===95){oe|=512,Aa?(Aa=!1,sl=!0):Be(sl?w.Multiple_consecutive_numeric_separators_are_not_permitted:w.Numeric_separators_are_not_allowed_here,I,1),I++;continue}if(Aa=!0,!wL(vc)||vc-48>=Lo)break;To+=D[I],I++,sl=!1}return D.charCodeAt(I-1)===95&&Be(w.Numeric_separators_are_not_allowed_here,I-1,1),To}function kn(){return D.charCodeAt(I)===110?(te+="n",oe&384&&(te=l3(te)+"n"),I++,10):(te=""+(oe&128?parseInt(te.slice(2),2):oe&256?parseInt(te.slice(2),8):+te),9)}function cr(){O=I,oe=0;let Lo=!1;for(;;){if(V=I,I>=W)return ee=1;const To=$D(D,I);if(I===0){if(To===65533)return Be(w.File_appears_to_be_binary),I=W,ee=8;if(To===35&&$_e(D,I)){if(I=CTe(D,I),r)continue;return ee=6}}switch(To){case 10:case 13:if(oe|=1,r){I++;continue}else return To===13&&I+1=0&&nR(Aa,t))return I+=3,oe|=8,te=ut()+Wt(),ee=tt();const sl=lt();return sl>=0&&nR(sl,t)?(I+=6,oe|=1024,te=String.fromCharCode(sl)+Wt(),ee=tt()):(Be(w.Invalid_character),I++,ee=0);case 35:if(I!==0&&D[I+1]==="!")return Be(w.can_only_be_used_at_the_start_of_a_file),I++,ee=0;const vc=$D(D,I+1);if(vc===92){I++;const li=zt();if(li>=0&&nR(li,t))return I+=3,oe|=8,te="#"+ut()+Wt(),ee=81;const Ir=lt();if(Ir>=0&&nR(Ir,t))return I+=6,oe|=1024,te="#"+String.fromCharCode(Ir)+Wt(),ee=81;I--}return nR(vc,t)?(I++,on(vc,t)):(te="#",Be(w.Invalid_character,I++,LM(To))),ee=81;default:const er=on(To,t);if(er)return ee=er;if(HD(To)){I+=LM(To);continue}else if(Ff(To)){oe|=1,I+=LM(To);continue}const Jr=LM(To);return Be(w.Invalid_character,I,Jr),I+=Jr,ee=0}}}function un(){ce.assert(ee===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),I=V=O,oe=0;const Lo=$D(D,I),To=on(Lo,99);return To?ee=To:(I+=LM(Lo),ee)}function on(Lo,To){let Aa=Lo;if(nR(Aa,To)){for(I+=LM(Aa);I=W)return ee=1;let To=D.charCodeAt(I);if(To===60)return D.charCodeAt(I+1)===47?(I+=2,ee=31):(I++,ee=30);if(To===123)return I++,ee=19;let Aa=0;for(;I0)break;UD(To)||(Aa=I)}I++}return te=D.substring(O,I),Aa===-1?13:12}function di(){if(Cf(ee)){for(;I=W)return ee=1;for(let To=D.charCodeAt(I);I=0&&HD(D.charCodeAt(I-1))&&!(I+1=W)return ee=1;const Lo=$D(D,I);switch(I+=LM(Lo),Lo){case 9:case 11:case 12:case 32:for(;I=0&&nR(To,t))return I+=3,oe|=8,te=ut()+Wt(),ee=tt();const Aa=lt();return Aa>=0&&nR(Aa,t)?(I+=6,oe|=1024,te=String.fromCharCode(Aa)+Wt(),ee=tt()):(I++,ee=0)}if(nR(Lo,t)){let To=Lo;for(;I=0),I=Lo,O=Lo,V=Lo,ee=0,te=void 0,oe=0}function Xu(Lo){ue+=Lo?1:-1}}function LM(t){return t>=65536?2:1}function OVe(t){if(ce.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const r=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(r,s)}function LU(t){return Xy(t)}var Jre,EMe,DTe,xMe,AMe,CMe,DMe,IMe,$re,q_e,kMe,FVe,Kv,o7,$D,Xy,PMe=G({"src/compiler/scanner.ts"(){Ad(),Jre={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},EMe=new Map(Object.entries(Jre)),DTe=new Map(Object.entries({...Jre,"{":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})),xMe=[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],AMe=[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],CMe=[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],DMe=[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],IMe=[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],$re=[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],q_e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,kMe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,FVe=eR(DTe),Kv=7,o7=/^#!.*/,$D=String.prototype.codePointAt?(t,r)=>t.codePointAt(r):function(r,s){const l=r.length;if(s<0||s>=l)return;const m=r.charCodeAt(s);if(m>=55296&&m<=56319&&l>s+1){const y=r.charCodeAt(s+1);if(y>=56320&&y<=57343)return(m-55296)*1024+y-56320+65536}return m},Xy=String.fromCodePoint?t=>String.fromCodePoint(t):OVe}});function tb(t){return U2(t)||mm(t)}function P8(t){return OD(t,o3)}function qre(t){switch(iu(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 K1(t){return t.start+t.length}function ITe(t){return t.length===0}function kTe(t,r){return r>=t.start&&r=t.pos&&r<=t.end}function FX(t,r){return r.start>=t.start&&K1(r)<=K1(t)}function NMe(t,r){return PTe(t,r)!==void 0}function PTe(t,r){const s=WX(t,r);return s&&s.length===0?void 0:s}function p1(t,r){return o9(t.start,t.length,r.start,r.length)}function Yy(t,r,s){return o9(t.start,t.length,r,s)}function o9(t,r,s,l){const m=t+r,y=s+l;return s<=m&&y>=t}function NTe(t,r){return r<=K1(t)&&r>=t.start}function WX(t,r){const s=Math.max(t.start,r.start),l=Math.min(K1(t),K1(r));return s<=l?R0(s,l):void 0}function nb(t,r){if(t<0)throw new Error("start < 0");if(r<0)throw new Error("length < 0");return{start:t,length:r}}function R0(t,r){return nb(t,r-t)}function DT(t){return nb(t.span.start,t.newLength)}function wTe(t){return ITe(t.span)&&t.newLength===0}function BX(t,r){if(r<0)throw new Error("newLength < 0");return{span:t,newLength:r}}function OU(t){if(t.length===0)return BMe;if(t.length===1)return t[0];const r=t[0];let s=r.span.start,l=K1(r.span),m=s+r.newLength;for(let y=1;y=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function lf(t){const r=t;return r.length>=3&&r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===95?r.substr(1):r}function ec(t){return lf(t.escapedText)}function ML(t){const r=TN(t.escapedText);return r?to(r,sE):void 0}function mp(t){return t.valueDeclaration&&Mf(t.valueDeclaration)?ec(t.valueDeclaration.name):lf(t.escapedName)}function Kre(t){const r=t.parent.parent;if(r){if(dl(r))return i_(r);switch(r.kind){case 243:if(r.declarationList&&r.declarationList.declarations[0])return i_(r.declarationList.declarations[0]);break;case 244:let s=r.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const l=s.argumentExpression;if(An(l))return l}break;case 217:return i_(r.expression);case 256:{if(dl(r.statement)||Nr(r.statement))return i_(r.statement);break}}}}function i_(t){const r=o_(t);return r&&An(r)?r:void 0}function FU(t,r){return!!(Xv(t)&&An(t.name)&&ec(t.name)===ec(r)||Dh(t)&>(t.declarationList.declarations,s=>FU(s,r)))}function OM(t){return t.name||Kre(t)}function Xv(t){return!!t.name}function X_e(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(Qy(s)){case 1:case 4:case 5:case 3:return C7(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return OM(t);case 347:return Kre(t);case 277:{const{expression:s}=t;return An(s)?s:void 0}case 212:const r=t;if(_Y(r))return r.argumentExpression}return t.name}function o_(t){if(t!==void 0)return X_e(t)||(Dm(t)||ph(t)||B0(t)?Y_e(t):void 0)}function Y_e(t){if(t.parent){if(Fm(t.parent)||ym(t.parent))return t.parent.name;if(ys(t.parent)&&t===t.parent.right){if(An(t.parent.left))return t.parent.left;if(Kf(t.parent.left))return C7(t.parent.left)}else if(ff(t.parent)&&An(t.parent.name))return t.parent.name}else return}function LL(t){if(Fx(t))return gi(t.modifiers,Qf)}function N8(t){if(il(t,126975))return gi(t.modifiers,bd)}function MTe(t,r){if(t.name)if(An(t.name)){const s=t.name.escapedText;return jX(t.parent,r).filter(l=>AA(l)&&An(l.name)&&l.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);ce.assert(s>-1,"Parameters should always be in their parents' parameter list");const l=jX(t.parent,r).filter(AA);if(sjx(l)&&l.typeParameters.some(m=>m.name.escapedText===s))}function Q_e(t){return OTe(t,!1)}function RMe(t){return OTe(t,!0)}function FTe(t){return!!Hb(t,AA)}function MMe(t){return Hb(t,iF)}function WTe(t){return a9(t,WG)}function BTe(t){return Hb(t,uC)}function LMe(t){return Hb(t,b6)}function OMe(t){return Hb(t,b6,!0)}function FMe(t){return Hb(t,xW)}function zTe(t){return Hb(t,xW,!0)}function GTe(t){return Hb(t,CEe)}function jTe(t){return Hb(t,CEe,!0)}function VTe(t){return Hb(t,_pe)}function Xre(t){return Hb(t,_pe,!0)}function UTe(t){return Hb(t,UY,!0)}function HTe(t){return Hb(t,Woe)}function Z_e(t){return Hb(t,Woe,!0)}function FM(t){return Hb(t,BJ)}function iR(t){return Hb(t,dpe)}function GX(t){return Hb(t,aF)}function Yre(t){return Hb(t,jx)}function WM(t){return Hb(t,CA)}function w8(t){const r=Hb(t,HY);if(r&&r.typeExpression&&r.typeExpression.type)return r}function X1(t){let r=Hb(t,HY);return!r&&Pu(t)&&(r=lr(Gz(t),s=>!!s.typeExpression)),r&&r.typeExpression&&r.typeExpression.type}function WU(t){const r=GX(t);if(r&&r.typeExpression)return r.typeExpression.type;const s=w8(t);if(s&&s.typeExpression){const l=s.typeExpression.type;if(e0(l)){const m=lr(l.members,Lh);return m&&m.type}if(Z2(l)||OG(l))return l.type}}function jX(t,r){var s;if(!YM(t))return Zn;let l=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(l===void 0||r){const m=k7(t,r);ce.assert(m.length<2||m[0]!==m[1]),l=ea(m,y=>Gx(y)?y.tags:y),r||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=l)}return l}function EN(t){return jX(t,!1)}function Mat(t){return jX(t,!0)}function Hb(t,r,s){return lr(jX(t,s),r)}function a9(t,r){return EN(t).filter(r)}function xN(t,r){return EN(t).filter(s=>s.kind===r)}function jz(t){return typeof t=="string"?t:t==null?void 0:t.map(r=>r.kind===328?r.text:ede(r)).join("")}function ede(t){const r=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?oE(t.name):"",l=t.name&&t.text.startsWith("://")?"":" ";return`{@${r} ${s}${l}${t.text}}`}function oR(t){if(Ak(t)){if(FG(t.parent)){const r=pH(t.parent);if(r&&Nt(r.tags))return ea(r.tags,s=>jx(s)?s.typeParameters:void 0)}return Zn}if(T2(t))return ce.assert(t.parent.kind===327),ea(t.parent.tags,r=>jx(r)?r.typeParameters:void 0);if(t.typeParameters||joe(t)&&t.typeParameters)return t.typeParameters;if(Rs(t)){const r=Wie(t);if(r.length)return r;const s=X1(t);if(s&&Z2(s)&&s.typeParameters)return s.typeParameters}return Zn}function AN(t){return t.constraint?t.constraint:jx(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function fy(t){return t.kind===80||t.kind===81}function s9(t){return t.kind===178||t.kind===177}function BU(t){return sa(t)&&!!(t.flags&64)}function Vz(t){return Ed(t)&&!!(t.flags&64)}function R8(t){return el(t)&&!!(t.flags&64)}function ky(t){const r=t.kind;return!!(t.flags&64)&&(r===211||r===212||r===213||r===235)}function h2(t){return ky(t)&&!cC(t)&&!!t.questionDotToken}function zU(t){return h2(t.parent)&&t.parent.expression===t}function M8(t){return!ky(t.parent)||h2(t.parent)||t!==t.parent.expression}function Qre(t){return t.kind===226&&t.operatorToken.kind===61}function CN(t){return x2(t)&&An(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function pA(t){return rv(t,8)}function Uz(t){return cC(t)&&!!(t.flags&64)}function VX(t){return t.kind===252||t.kind===251}function GU(t){return t.kind===280||t.kind===279}function tde(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function a7(t){return tde(t)||t.kind===307||t.kind===311}function BM(t){return t.kind===355||t.kind===348}function UX(t){return aR(t.kind)}function aR(t){return t>=166}function Zre(t){return t>=0&&t<=165}function VC(t){return Zre(t.kind)}function L8(t){return ef(t,"pos")&&ef(t,"end")}function c9(t){return 9<=t&&t<=15}function fP(t){return c9(t.kind)}function HX(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function zM(t){return 15<=t&&t<=18}function O8(t){return zM(t.kind)}function JX(t){const r=t.kind;return r===17||r===18}function l9(t){return oS(t)||Oy(t)}function $g(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 s7(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 sR(t){return $g(t)||s7(t)}function IT(t){return Wp(t)||An(t)}function u9(t){return t.kind===11||zM(t.kind)}function Om(t){var r;return An(t)&&((r=t.emitNode)==null?void 0:r.autoGenerate)!==void 0}function cR(t){var r;return Gu(t)&&((r=t.emitNode)==null?void 0:r.autoGenerate)!==void 0}function jU(t){const r=t.emitNode.autoGenerate.flags;return!!(r&32)&&!!(r&16)&&!!(r&8)}function Mf(t){return(Os(t)||c7(t))&&Gu(t.name)}function kT(t){return sa(t)&&Gu(t.name)}function qg(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 lR(t){return!!(U9(t)&16476)}function F_(t){return lR(t)||t===126||t===164||t===129}function bd(t){return qg(t.kind)}function Vd(t){const r=t.kind;return r===166||r===80}function _y(t){const r=t.kind;return r===80||r===81||r===11||r===9||r===167}function f9(t){const r=t.kind;return r===80||r===206||r===207}function S_(t){return!!t&&xb(t.kind)}function _9(t){return!!t&&(xb(t.kind)||nu(t))}function J_(t){return t&&GM(t.kind)}function Fl(t){return t.kind===112||t.kind===97}function GM(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xb(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return GM(t)}}function nde(t){return tl(t)||z0(t)||E_(t)&&S_(t.parent)}function Mv(t){const r=t.kind;return r===176||r===172||r===174||r===177||r===178||r===181||r===175||r===240}function Jl(t){return t&&(t.kind===263||t.kind===231)}function Am(t){return t&&(t.kind===177||t.kind===178)}function rb(t){return Os(t)&&_k(t)}function c7(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function DN(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function pc(t){return bd(t)||Qf(t)}function l7(t){const r=t.kind;return r===180||r===179||r===171||r===173||r===181||r===177||r===178}function $_(t){return l7(t)||Mv(t)}function KD(t){const r=t.kind;return r===303||r===304||r===305||r===174||r===177||r===178}function Uu(t){return Xie(t.kind)}function $X(t){switch(t.kind){case 184:case 185:return!0}return!1}function ld(t){if(t){const r=t.kind;return r===207||r===206}return!1}function u7(t){const r=t.kind;return r===209||r===210}function qX(t){const r=t.kind;return r===208||r===232}function d9(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function rde(t){return ff(t)||Pu(t)||KX(t)||uR(t)}function p9(t){return ide(t)||eie(t)}function ide(t){switch(t.kind){case 206:case 210:return!0}return!1}function KX(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function eie(t){switch(t.kind){case 207:case 209:return!0}return!1}function uR(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return wy(t,!0)}function sk(t){const r=t.kind;return r===211||r===166||r===205}function Hz(t){const r=t.kind;return r===211||r===166}function ib(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function IN(t){return t.kind===213||t.kind===214}function m9(t){const r=t.kind;return r===228||r===15}function FE(t){return JTe(pA(t).kind)}function JTe(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 ode(t){return kr(pA(t).kind)}function kr(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return JTe(t)}}function WVe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function f7(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return fP(t)}}function Nr(t){return OL(pA(t).kind)}function OL(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 kr(t)}}function _7(t){const r=t.kind;return r===216||r===234}function WMe(t){return my(t)||E3(t)}function kN(t,r){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return r&&kN(t.statement,r)}return!1}function XX(t){return Ly(t)||mh(t)}function Jz(t){return gt(t,XX)}function VU(t){return!z8(t)&&!Ly(t)&&!il(t,1)&&!Ov(t)}function UU(t){return z8(t)||Ly(t)||il(t,1)}function DS(t){return t.kind===249||t.kind===250}function tie(t){return E_(t)||Nr(t)}function $Te(t){return E_(t)}function mA(t){return My(t)||Nr(t)}function ade(t){const r=t.kind;return r===268||r===267||r===80}function nie(t){const r=t.kind;return r===268||r===267}function ck(t){const r=t.kind;return r===80||r===267}function XD(t){const r=t.kind;return r===275||r===274}function sde(t){return t.kind===267||t.kind===266}function YD(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 lk(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 PT(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 cde(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 HU(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 dl(t){return t.kind===168?t.parent&&t.parent.kind!==352||Rs(t):PT(t.kind)}function BVe(t){return cde(t.kind)}function YX(t){return HU(t.kind)}function uf(t){const r=t.kind;return HU(r)||cde(r)||QX(t)}function QX(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!JM(t)}function ZX(t){const r=t.kind;return HU(r)||cde(r)||r===241}function rie(t){const r=t.kind;return r===283||r===166||r===80}function JU(t){const r=t.kind;return r===110||r===80||r===211||r===295}function m1(t){const r=t.kind;return r===284||r===294||r===285||r===12||r===288}function $U(t){const r=t.kind;return r===291||r===293}function $z(t){const r=t.kind;return r===11||r===294}function Y1(t){const r=t.kind;return r===286||r===285}function d7(t){const r=t.kind;return r===296||r===297}function UC(t){return t.kind>=316&&t.kind<=357}function PN(t){return t.kind===327||t.kind===326||t.kind===328||FL(t)||NT(t)||EW(t)||Ak(t)}function NT(t){return t.kind>=334&&t.kind<=357}function _P(t){return t.kind===178}function J2(t){return t.kind===177}function g1(t){if(!YM(t))return!1;const{jsDoc:r}=t;return!!r&&r.length>0}function eY(t){return!!t.type}function NN(t){return!!t.initializer}function p7(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Cm(t){return t.kind===291||t.kind===293||KD(t)}function F8(t){return t.kind===183||t.kind===233}function lde(t){let r=ude;for(const s of t){if(!s.length)continue;let l=0;for(;ls.kind===r)}function Td(t){const r=new Map;if(t)for(const s of t)r.set(s.escapedName,s);return r}function uk(t){return(t.flags&33554432)!==0}function zMe(){var t="";const r=s=>t+=s;return{getText:()=>t,write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(s,l)=>r(s),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&UD(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:ku,decreaseIndent:ku,clear:()=>t=""}}function g9(t,r){return t.configFilePath!==r.configFilePath||qTe(t,r)}function qTe(t,r){return gA(t,r,lQ)}function Jb(t,r){return gA(t,r,nae)}function gA(t,r,s){return t!==r&&s.some(l=>!xY(jH(t,l),jH(r,l)))}function oie(t,r){for(;;){const s=r(t);if(s==="quit")return;if(s!==void 0)return s;if(tl(t))return;t=t.parent}}function wT(t,r){const s=t.entries();for(const[l,m]of s){const y=r(m,l);if(y)return y}}function WL(t,r){const s=t.keys();for(const l of s){const m=r(l);if(m)return m}}function tY(t,r){t.forEach((s,l)=>{r.set(l,s)})}function qU(t){const r=j7.getText();try{return t(j7),j7.getText()}finally{j7.clear(),j7.writeKeyword(r)}}function KU(t){return t.end-t.pos}function XU(t,r,s){var l,m;return(m=(l=t==null?void 0:t.resolvedModules)==null?void 0:l.get(r,s))==null?void 0:m.resolvedModule}function aie(t,r,s,l){t.resolvedModules||(t.resolvedModules=N3()),t.resolvedModules.set(r,l,s)}function jM(t,r,s,l){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=N3()),t.resolvedTypeReferenceDirectiveNames.set(r,l,s)}function GMe(t,r,s){var l,m;return(m=(l=t==null?void 0:t.resolvedTypeReferenceDirectiveNames)==null?void 0:l.get(r,s))==null?void 0:m.resolvedTypeReferenceDirective}function sie(t,r){return t.path===r.path&&!t.prepend==!r.prepend&&!t.circular==!r.circular}function qz(t,r){return t===r||t.resolvedModule===r.resolvedModule||!!t.resolvedModule&&!!r.resolvedModule&&t.resolvedModule.isExternalLibraryImport===r.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===r.resolvedModule.extension&&t.resolvedModule.resolvedFileName===r.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===r.resolvedModule.originalPath&&ts(t.resolvedModule.packageId,r.resolvedModule.packageId)&&t.node10Result===r.node10Result}function jMe(t,r,s,l,m){var y,T;const D=(T=(y=t.resolvedModules)==null?void 0:y.get(s,l))==null?void 0:T.node10Result,I=D?Es(void 0,w.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,D,D.indexOf(ix+"@types/")>-1?`@types/${CQ(m)}`:m):r.typesPackageExists(m)?Es(void 0,w.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,m,CQ(m)):r.packageBundlesTypes(m)?Es(void 0,w.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,m,s):Es(void 0,w.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,CQ(m));return I&&(I.repopulateInfo=()=>({moduleReference:s,mode:l,packageName:m===s?void 0:m})),I}function ts(t,r){return t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version}function YU({name:t,subModuleName:r}){return r?`${t}/${r}`:t}function pP(t){return`${YU(t)}@${t.version}`}function KTe(t,r){return t===r||t.resolvedTypeReferenceDirective===r.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!r.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===r.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!r.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===r.resolvedTypeReferenceDirective.originalPath}function fR(t,r,s,l,m,y){ce.assert(t.length===s.length);for(let T=0;T=0),q1(r)[t]}function GVe(t){const r=ns(t),s=Ah(r,t.pos);return`${r.fileName}(${s.line+1},${s.character+1})`}function lie(t,r){ce.assert(t>=0);const s=q1(r),l=t,m=r.text;if(l+1===s.length)return m.length-1;{const y=s[l];let T=s[l+1]-1;for(ce.assert(Ff(m.charCodeAt(T)));y<=T&&Ff(m.charCodeAt(T));)T--;return T}}function fde(t,r,s){return!(s&&s(r))&&!t.identifiers.has(r)}function Um(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function wx(t){return!Um(t)}function VMe(t,r){return Hh(t)?r===t.expression:nu(t)?r===t.modifiers:Np(t)?r===t.initializer:Os(t)?r===t.questionToken&&rb(t):Fm(t)?r===t.modifiers||r===t.questionToken||r===t.exclamationToken||_R(t.modifiers,r,pc):BT(t)?r===t.equalsToken||r===t.modifiers||r===t.questionToken||r===t.exclamationToken||_R(t.modifiers,r,pc):em(t)?r===t.exclamationToken:pg(t)?r===t.typeParameters||r===t.type||_R(t.typeParameters,r,Hh):tm(t)?r===t.typeParameters||_R(t.typeParameters,r,Hh):Ep(t)?r===t.typeParameters||r===t.type||_R(t.typeParameters,r,Hh):py(t)?r===t.modifiers||_R(t.modifiers,r,pc):!1}function _R(t,r,s){return!t||ls(r)||!s(r)?!1:ni(t,r)}function _de(t,r,s){if(r===void 0||r.length===0)return t;let l=0;for(;l[`${Ah(t,T.range.end).line}`,T])),l=new Map;return{getUnusedExpectations:m,markUsed:y};function m(){return oc(s.entries()).filter(([T,D])=>D.type===0&&!l.get(T)).map(([T,D])=>D)}function y(T){return s.has(`${T}`)?(l.set(`${T}`,!0),!0):!1}}function Xz(t,r,s){return Um(t)?t.pos:UC(t)||t.kind===12?ep((r||ns(t)).text,t.pos,!1,!0):s&&g1(t)?Xz(t.jsDoc[0],r):t.kind===358&&t._children.length>0?Xz(t._children[0],r,s):ep((r||ns(t)).text,t.pos,!1,!1,D9(t))}function y9(t,r){const s=!Um(t)&&nx(t)?ra(t.modifiers,Qf):void 0;return s?ep((r||ns(t)).text,s.end):Xz(t,r)}function wd(t,r,s=!1){return die(t.text,r,s)}function HC(t){return!!Kr(t,pI)}function _ie(t){return!!(mh(t)&&t.exportClause&&AP(t.exportClause)&&t.exportClause.name.escapedText==="default")}function die(t,r,s=!1){if(Um(r))return"";let l=t.substring(s?r.pos:ep(t,r.pos),r.end);return HC(r)&&(l=l.split(/\r\n|\n|\r/).map(m=>Zw(m.replace(/^\s*\*/,""))).join(` -`)),l}function Yv(t,r=!1){return wd(ns(t),t,r)}function UMe(t){return t.pos}function v9(t,r){return ZS(t,r,UMe,pf)}function Tp(t){const r=t.emitNode;return r&&r.flags||0}function dh(t){const r=t.emitNode;return r&&r.internalFlags||0}function rY(){return 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:Zn})),AsyncIterator:new Map(Object.entries({es2015:Zn})),Atomics:new Map(Object.entries({es2017:Zn})),SharedArrayBuffer:new Map(Object.entries({es2017:Zn})),AsyncIterable:new Map(Object.entries({es2018:Zn})),AsyncIterableIterator:new Map(Object.entries({es2018:Zn})),AsyncGenerator:new Map(Object.entries({es2018:Zn})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Zn})),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:Zn,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:Zn})),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:Zn,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Zn,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function dde(t,r,s){if(r&&HMe(t,s))return wd(r,t);switch(t.kind){case 11:{const l=s&2?bY:s&1||Tp(t)&16777216?M7:S2;return t.singleQuote?"'"+l(t.text,39)+"'":'"'+l(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const l=s&1||Tp(t)&16777216?M7:S2,m=t.rawText??Q8(l(t.text,96));switch(t.kind){case 15:return"`"+m+"`";case 16:return"`"+m+"${";case 17:return"}"+m+"${";case 18:return"}"+m+"`"}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 ce.fail(`Literal kind '${t.kind}' not accounted for.`)}function HMe(t,r){if(rh(t)||!t.parent||r&4&&t.isUnterminated)return!1;if(nS(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(r&8)}return!wG(t)}function ZU(t){return As(t)?'"'+S2(t)+'"':""+t}function jVe(t){return Iy(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function pde(t){return(qD(t)&7)!==0||JC(t)}function JC(t){const r=rI(t);return r.kind===260&&r.parent.kind===299}function Ov(t){return xp(t)&&(t.name.kind===11||$C(t))}function iY(t){return xp(t)&&t.name.kind===11}function pie(t){return xp(t)&&Wp(t.name)}function VVe(t){return xp(t)||An(t)}function VM(t){return QTe(t.valueDeclaration)}function QTe(t){return!!t&&t.kind===267&&!t.body}function mde(t){return t.kind===312||t.kind===267||_9(t)}function $C(t){return!!(t.flags&2048)}function BL(t){return Ov(t)&&mie(t)}function mie(t){switch(t.parent.kind){case 312:return Wv(t.parent);case 268:return Ov(t.parent.parent)&&tl(t.parent.parent.parent)&&!Wv(t.parent.parent.parent)}return!1}function W8(t){var r;return(r=t.declarations)==null?void 0:r.find(s=>!BL(s)&&!(xp(s)&&$C(s)))}function JMe(t){return t===1||t===100||t===199}function B8(t,r){return Wv(t)||JMe(Zp(r))&&!!t.commonJsModuleIndicator}function gde(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:hv(r,"alwaysStrict")||vpe(t.statements)?!0:Wv(t)||F0(r)?Zp(r)>=5?!0:!r.noImplicitUseStrict:!1}function eH(t){return!!(t.flags&33554432)||il(t,2)}function gie(t,r){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!_9(r)}return!1}function QD(t){switch(ce.type(t),t.kind){case 345:case 353:case 330:return!0;default:return hde(t)}}function hde(t){switch(ce.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 hm(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function ZTe(t){return hm(t)||pR(t)}function Yz(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 tH(t){return z8(t)||xp(t)||Wx(t)||WE(t)}function z8(t){return hm(t)||mh(t)}function iE(t){return Kr(t.parent,r=>!!(RLe(r)&1))}function Bs(t){return Kr(t.parent,r=>gie(r,r.parent))}function Qz(t,r){let s=Bs(t);for(;s;)r(s),s=Bs(s)}function Ud(t){return!t||KU(t)===0?"(Missing)":Yv(t)}function wN(t){return t.declaration?Ud(t.declaration.parameters[0].name):void 0}function b9(t){return t.kind===167&&!Qv(t.expression)}function nH(t){var r;switch(t.kind){case 80:case 81:return(r=t.emitNode)!=null&&r.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return ty(t.text);case 167:return Qv(t.expression)?ty(t.expression.text):void 0;case 295:return bR(t);default:return ce.assertNever(t)}}function g7(t){return ce.checkDefined(nH(t))}function oE(t){switch(t.kind){case 110:return"this";case 81:case 80:return KU(t)===0?ec(t):Yv(t);case 166:return oE(t.left)+"."+oE(t.right);case 211:return An(t.name)||Gu(t.name)?oE(t.expression)+"."+oE(t.name):ce.assertNever(t.name);case 318:return oE(t.left)+oE(t.right);case 295:return oE(t.namespace)+":"+oE(t.name);default:return ce.assertNever(t)}}function kc(t,r,...s){const l=ns(t);return M0(l,t,r,...s)}function Zz(t,r,s,...l){const m=ep(t.text,r.pos);return Pp(t,m,r.end-m,s,...l)}function M0(t,r,s,...l){const m=UM(t,r);return Pp(t,m.start,m.length,s,...l)}function RN(t,r,s,l){const m=UM(t,r);return aE(t,m.start,m.length,s,l)}function yde(t,r,s,l){const m=ep(t.text,r.pos);return aE(t,m,r.end-m,s,l)}function zL(t,r,s){ce.assertGreaterThanOrEqual(r,0),ce.assertGreaterThanOrEqual(s,0),t&&(ce.assertLessThanOrEqual(r,t.text.length),ce.assertLessThanOrEqual(r+s,t.text.length))}function aE(t,r,s,l,m){return zL(t,r,s),{file:t,start:r,length:s,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:m}}function Rx(t,r,s){return{file:t,start:0,length:0,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:s}}function G8(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function oY(t,r,s){return{file:t,start:r.pos,length:r.end-r.pos,code:s.code,category:s.category,messageText:s.message}}function nC(t,r){const s=MM(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);s.scan();const l=s.getTokenStart();return R0(l,s.getTokenEnd())}function aY(t,r){const s=MM(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);return s.scan(),s.getToken()}function rH(t,r){const s=ep(t.text,r.pos);if(r.body&&r.body.kind===241){const{line:l}=Ah(t,r.body.pos),{line:m}=Ah(t,r.body.end);if(l0?r.statements[0].pos:r.end;return R0(y,T)}case 253:case 229:{const y=ep(t.text,r.pos);return nC(t,y)}case 238:{const y=ep(t.text,r.expression.end);return nC(t,y)}case 357:{const y=ep(t.text,r.tagName.pos);return nC(t,y)}}if(s===void 0)return nC(t,r.pos);ce.assert(!Gx(s));const l=Um(s),m=l||S1(r)?s.pos:ep(t.text,s.pos);return l?(ce.assert(m===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ce.assert(m===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(ce.assert(m>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ce.assert(m<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),R0(m,s.end)}function h1(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function Py(t){return t.scriptKind===6}function gP(t){return!!(Gg(t)&2048)}function MN(t){return!!(Gg(t)&64&&!Eb(t,t.parent))}function $2(t){return(qD(t)&7)===6}function T9(t){return(qD(t)&7)===4}function h7(t){return(qD(t)&7)===2}function eSe(t){return(qD(t)&7)===1}function y7(t){return t.kind===213&&t.expression.kind===108}function WE(t){return t.kind===213&&t.expression.kind===102}function S9(t){return eF(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function BE(t){return Wx(t)&&_I(t.argument)&&Wp(t.argument.literal)}function qC(t){return t.kind===244&&t.expression.kind===11}function dR(t){return!!(Tp(t)&2097152)}function hie(t){return dR(t)&&b0(t)}function tSe(t){return An(t.name)&&!t.initializer}function yie(t){return dR(t)&&Dh(t)&&jr(t.declarationList.declarations,tSe)}function E9(t,r){return t.kind!==12?CS(r.text,t.pos):void 0}function vde(t,r){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?Hi(Nx(r,t.pos),CS(r,t.pos)):CS(r,t.pos);return gi(s,l=>r.charCodeAt(l.pos+1)===42&&r.charCodeAt(l.pos+2)===42&&r.charCodeAt(l.pos+3)!==47)}function rC(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 rT(t.parent)&&!PS(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),ce.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:r}=t;if(r.kind===186)return!1;if(r.kind===205)return!r.isTypeOf;if(182<=r.kind&&r.kind<=205)return!0;switch(r.kind){case 233:return rT(r.parent)&&!PS(r);case 168:return t===r.constraint;case 352:return t===r.constraint;case 172:case 171:case 169:case 260:return t===r.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===r.type;case 179:case 180:case 181:return t===r.type;case 216:return t===r.type;case 213:case 214:case 215:return ni(r.typeArguments,t)}}}return!1}function $Me(t,r){for(;t;){if(t.kind===r)return!0;t=t.parent}return!1}function HM(t,r){return s(t);function s(l){switch(l.kind){case 253:return r(l);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 B_(l,s)}}}function nSe(t,r){return s(t);function s(l){switch(l.kind){case 229:r(l);const m=l.expression;m&&s(m);return;case 266:case 264:case 267:case 265:return;default:if(S_(l)){if(l.name&&l.name.kind===167){s(l.name.expression);return}}else rC(l)||B_(l,s)}}}function bde(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Vb(t.typeArguments):void 0}function Tde(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function hP(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 iC(t){return hP(t)||Am(t)}function x9(t){return t.parent.kind===261&&t.parent.parent.kind===243}function rSe(t){return Rs(t)?Wd(t.parent)&&ys(t.parent.parent)&&Qy(t.parent.parent)===2||Sde(t.parent):!1}function Sde(t){return Rs(t)?ys(t)&&Qy(t)===1:!1}function eG(t){return(ff(t)?h7(t)&&An(t.name)&&x9(t):Os(t)?Cb(t)&&Ny(t):Np(t)&&Cb(t))||Sde(t)}function iSe(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function tG(t,r){for(;;){if(r&&r(t),t.statement.kind!==256)return t.statement;t=t.statement}}function JM(t){return t&&t.kind===241&&S_(t.parent)}function q2(t){return t&&t.kind===174&&t.parent.kind===210}function zE(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function oSe(t){return t&&t.kind===1}function $b(t){return t&&t.kind===0}function nG(t,r,s,l){return Ot(t==null?void 0:t.properties,m=>{if(!Fm(m))return;const y=nH(m.name);return r===y||l&&l===y?s(m):void 0})}function vie(t,r,s){return nG(t,r,l=>Ch(l.initializer)?lr(l.initializer.elements,m=>Wp(m)&&m.text===s):void 0)}function A9(t){if(t&&t.statements.length){const r=t.statements[0].expression;return to(r,Wd)}}function RT(t,r,s){return sY(t,r,l=>Ch(l.initializer)?lr(l.initializer.elements,m=>Wp(m)&&m.text===s):void 0)}function sY(t,r,s){return nG(A9(t),r,s)}function GE(t){return Kr(t.parent,S_)}function aSe(t){return Kr(t.parent,J_)}function h0(t){return Kr(t.parent,Jl)}function v7(t){return Kr(t.parent,r=>Jl(r)||S_(r)?"quit":nu(r))}function Ede(t){return Kr(t.parent,_9)}function MT(t){const r=Kr(t.parent,s=>Jl(s)?"quit":Qf(s));return r&&Jl(r.parent)?h0(r.parent):h0(r??t)}function Q1(t,r,s){for(ce.assert(t.kind!==312);;){if(t=t.parent,!t)return ce.fail();switch(t.kind){case 167:if(s&&Jl(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&Mv(t.parent.parent)?t=t.parent.parent:Mv(t.parent)&&(t=t.parent);break;case 219:if(!r)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 bie(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 Tie(t){An(t)&&(Kc(t.parent)||b0(t.parent))&&t.parent.name===t&&(t=t.parent);const r=Q1(t,!0,!1);return tl(r)}function cY(t){const r=Q1(t,!1,!1);if(r)switch(r.kind){case 176:case 262:case 218:return r}}function rG(t,r){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!r)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&&Mv(t.parent.parent)?t=t.parent.parent:Mv(t.parent)&&(t=t.parent);break}}}function GL(t){if(t.kind===218||t.kind===219){let r=t,s=t.parent;for(;s.kind===217;)r=s,s=s.parent;if(s.kind===213&&s.expression===r)return s}}function lY(t){return t.kind===108||Z1(t)}function Z1(t){const r=t.kind;return(r===211||r===212)&&t.expression.kind===108}function b7(t){const r=t.kind;return(r===211||r===212)&&t.expression.kind===110}function yP(t){var r;return!!t&&ff(t)&&((r=t.initializer)==null?void 0:r.kind)===110}function xde(t){return!!t&&(BT(t)||Fm(t))&&ys(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function iH(t){switch(t.kind){case 183:return t.typeName;case 233:return Uh(t.expression)?t.expression:void 0;case 80:case 166:return t}}function T7(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;default:return t.expression}}function ZD(t,r,s,l){if(t&&Xv(r)&&Gu(r.name))return!1;switch(r.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Kc(s):Jl(s)&&!fk(r)&&!Ode(r));case 177:case 178:case 174:return r.body!==void 0&&s!==void 0&&(t?Kc(s):Jl(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&$L(s)!==r&&l!==void 0&&l.kind===263:!1}return!1}function C9(t,r,s,l){return Fx(r)&&ZD(t,r,s,l)}function iG(t,r,s,l){return C9(t,r,s,l)||oH(t,r,s)}function oH(t,r,s){switch(r.kind){case 263:return gt(r.members,l=>iG(t,l,r,s));case 231:return!t&>(r.members,l=>iG(t,l,r,s));case 174:case 178:case 176:return gt(r.parameters,l=>C9(t,l,r,s));default:return!1}}function Mx(t,r){if(C9(t,r))return!0;const s=E2(r);return!!s&&oH(t,s,r)}function oG(t,r,s){let l;if(Am(r)){const{firstAccessor:m,secondAccessor:y,setAccessor:T}=gG(s.members,r),D=Fx(m)?m:y&&Fx(y)?y:void 0;if(!D||r!==D)return!1;l=T==null?void 0:T.parameters}else em(r)&&(l=r.parameters);if(C9(t,r,s))return!0;if(l){for(const m of l)if(!oI(m)&&C9(t,m,r,s))return!0}return!1}function Sie(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return Sie(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function $M(t){const{parent:r}=t;return r.kind===286||r.kind===285||r.kind===287?r.tagName===t:!1}function Gy(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!rT(t.parent)&&!iF(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||FL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t);case 318:for(;Nu(t.parent);)t=t.parent;return t.parent.kind===186||FL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t);case 81:return ys(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||FL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t))return!0;case 9:case 10:case 11:case 15:case 110:return Ade(t);default:return!1}}function Ade(t){const{parent:r}=t;switch(r.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return r.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return r.expression===t;case 248:const s=r;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const l=r;return l.initializer===t&&l.initializer.kind!==261||l.expression===t;case 216:case 234:return t===r.expression;case 239:return t===r.expression;case 167:return t===r.expression;case 170:case 294:case 293:case 305:return!0;case 233:return r.expression===t&&!rC(r);case 304:return r.objectAssignmentInitializer===t;case 238:return t===r.expression;default:return Gy(r)}}function Cs(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function Eie(t){return AP(t)&&!!t.parent.moduleSpecifier}function qM(t){return t.kind===271&&t.moduleReference.kind===283}function S7(t){return ce.assert(qM(t)),t.moduleReference.expression}function uY(t){return pR(t)&&i3(t.initializer).arguments[0]}function y1(t){return t.kind===271&&t.moduleReference.kind!==283}function v1(t){return Rs(t)}function E7(t){return!Rs(t)}function Rs(t){return!!t&&!!(t.flags&524288)}function Cde(t){return!!t&&!!(t.flags&134217728)}function xie(t){return!Py(t)}function D9(t){return!!t&&!!(t.flags&16777216)}function aH(t){return x2(t)&&An(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function eT(t,r){if(t.kind!==213)return!1;const{expression:s,arguments:l}=t;if(s.kind!==80||s.escapedText!=="require"||l.length!==1)return!1;const m=l[0];return!r||sp(m)}function sH(t){return I9(t,!1)}function pR(t){return I9(t,!0)}function UVe(t){return ym(t)&&pR(t.parent.parent)}function I9(t,r){return ff(t)&&!!t.initializer&&eT(r?i3(t.initializer):t.initializer,!0)}function KM(t){return Dh(t)&&t.declarationList.declarations.length>0&&jr(t.declarationList.declarations,r=>sH(r))}function Dde(t){return t===39||t===34}function Aie(t,r){return wd(r,t).charCodeAt(0)===34}function aG(t){return ys(t)||Kf(t)||An(t)||el(t)}function j8(t){return Rs(t)&&t.initializer&&ys(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&Uh(t.name)&&V8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function k9(t){const r=j8(t);return r&&jE(r,r6(t.name))}function P9(t,r){return Ot(t.properties,s=>Fm(s)&&An(s.name)&&s.name.escapedText==="value"&&s.initializer&&jE(s.initializer,r))}function x7(t){if(t&&t.parent&&ys(t.parent)&&t.parent.operatorToken.kind===64){const r=r6(t.parent.left);return jE(t.parent.right,r)||jy(t.parent.left,t.parent.right,r)}if(t&&el(t)&&cH(t)){const r=P9(t.arguments[2],t.arguments[1].text==="prototype");if(r)return r}}function jE(t,r){if(el(t)){const s=_g(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||Wd(t)&&(t.properties.length===0||r))return t}function jy(t,r,s){const l=ys(r)&&(r.operatorToken.kind===57||r.operatorToken.kind===61)&&jE(r.right,s);if(l&&V8(t,r.left))return l}function A7(t){const r=ff(t.parent)?t.parent.name:ys(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return r&&jE(t.right,r6(r))&&Uh(r)&&V8(r,t.left)}function fY(t){if(ys(t.parent)){const r=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&ys(t.parent.parent)?t.parent.parent:t.parent;if(r.operatorToken.kind===64&&An(r.left))return r.left}else if(ff(t.parent))return t.parent.name}function V8(t,r){return yA(t)&&yA(r)?aC(t)===aC(r):fy(t)&&lH(r)&&(r.expression.kind===110||An(r.expression)&&(r.expression.escapedText==="window"||r.expression.escapedText==="self"||r.expression.escapedText==="global"))?V8(t,dY(r)):lH(t)&&lH(r)?XC(t)===XC(r)&&V8(t.expression,r.expression):!1}function mR(t){for(;wy(t,!0);)t=t.right;return t}function jL(t){return An(t)&&t.escapedText==="exports"}function U8(t){return An(t)&&t.escapedText==="module"}function KC(t){return(sa(t)||eI(t))&&U8(t.expression)&&XC(t)==="exports"}function Qy(t){const r=Cie(t);return r===5||Rs(t)?r:0}function cH(t){return Nt(t.arguments)===3&&sa(t.expression)&&An(t.expression.expression)&&ec(t.expression.expression)==="Object"&&ec(t.expression.name)==="defineProperty"&&Qv(t.arguments[1])&&VL(t.arguments[0],!0)}function lH(t){return sa(t)||eI(t)}function eI(t){return Ed(t)&&Qv(t.argumentExpression)}function XM(t,r){return sa(t)&&(!r&&t.expression.kind===110||An(t.name)&&VL(t.expression,!0))||_Y(t,r)}function _Y(t,r){return eI(t)&&(!r&&t.expression.kind===110||Uh(t.expression)||XM(t.expression,!0))}function VL(t,r){return Uh(t)||XM(t,r)}function dY(t){return sa(t)?t.name:t.argumentExpression}function Cie(t){if(el(t)){if(!cH(t))return 0;const r=t.arguments[0];return jL(r)||KC(r)?8:XM(r)&&XC(r)==="prototype"?9:7}return t.operatorToken.kind!==64||!Kf(t.left)||qMe(mR(t))?0:VL(t.left.expression,!0)&&XC(t.left)==="prototype"&&Wd(w9(t))?6:N9(t.left)}function qMe(t){return $m(t)&&nS(t.expression)&&t.expression.text==="0"}function C7(t){if(sa(t))return t.name;const r=_g(t.argumentExpression);return nS(r)||sp(r)?r:t}function XC(t){const r=C7(t);if(r){if(An(r))return r.escapedText;if(sp(r)||nS(r))return ty(r.text)}}function N9(t){if(t.expression.kind===110)return 4;if(KC(t))return 2;if(VL(t.expression,!0)){if(r6(t.expression))return 3;let r=t;for(;!An(r.expression);)r=r.expression;const s=r.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&XC(r)==="exports")&&XM(t))return 1;if(VL(t,!0)||Ed(t)&&wde(t))return 5}return 0}function w9(t){for(;ys(t.right);)t=t.right;return t.right}function H8(t){return ys(t)&&Qy(t)===3}function R9(t){return Rs(t)&&t.parent&&t.parent.kind===244&&(!Ed(t)||eI(t))&&!!w8(t.parent)}function sG(t,r){const{valueDeclaration:s}=t;(!s||!(r.flags&33554432&&!Rs(r)&&!(s.flags&33554432))&&aG(s)&&!aG(r)||s.kind!==r.kind&&VVe(s))&&(t.valueDeclaration=r)}function M9(t){if(!t||!t.valueDeclaration)return!1;const r=t.valueDeclaration;return r.kind===262||ff(r)&&r.initializer&&S_(r.initializer)}function UL(t){var r,s;switch(t.kind){case 260:case 208:return(r=Kr(t.initializer,l=>eT(l,!0)))==null?void 0:r.arguments[0];case 272:return to(t.moduleSpecifier,sp);case 271:return to((s=to(t.moduleReference,j0))==null?void 0:s.expression,sp);case 273:case 280:return to(t.parent.moduleSpecifier,sp);case 274:case 281:return to(t.parent.parent.moduleSpecifier,sp);case 276:return to(t.parent.parent.parent.moduleSpecifier,sp);default:ce.assertNever(t)}}function b2(t){return L9(t)||ce.failBadSyntaxKind(t.parent)}function L9(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return WE(t.parent)||eT(t.parent,!1)?t.parent:void 0;case 201:return ce.assert(Wp(t)),to(t.parent.parent,Wx);default:return}}function pY(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 BE(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 ce.assertNever(t)}}function uH(t){switch(t.kind){case 272:return t.importClause&&to(t.importClause.namedBindings,QL);case 271:return t;case 278:return t.exportClause&&to(t.exportClause,AP);default:return ce.assertNever(t)}}function D7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function I7(t,r){if(t.name){const s=r(t);if(s)return s}if(t.namedBindings){const s=QL(t.namedBindings)?r(t.namedBindings):Ot(t.namedBindings.elements,r);if(s)return s}}function cG(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 J8(t){const r=OG(t)?pp(t.parameters):void 0,s=to(r&&r.name,An);return!!s&&s.escapedText==="new"}function T2(t){return t.kind===353||t.kind===345||t.kind===347}function fH(t){return T2(t)||mg(t)}function HVe(t){return Ou(t)&&ys(t.expression)&&t.expression.operatorToken.kind===64?mR(t.expression):void 0}function KMe(t){return Ou(t)&&ys(t.expression)&&Qy(t.expression)!==0&&ys(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function Die(t){switch(t.kind){case 243:const r=$8(t);return r&&r.initializer;case 172:return t.initializer;case 303:return t.initializer}}function $8(t){return Dh(t)?pp(t.declarationList.declarations):void 0}function Iie(t){return xp(t)&&t.body&&t.body.kind===267?t.body:void 0}function LN(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 YM(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 k7(t,r){let s;hP(t)&&NN(t)&&g1(t.initializer)&&(s=Oi(s,_H(t,yl(t.initializer.jsDoc))));let l=t;for(;l&&l.parent;){if(g1(l)&&(s=Oi(s,_H(t,yl(l.jsDoc)))),l.kind===169){s=Oi(s,(r?LTe:Gz)(l));break}if(l.kind===168){s=Oi(s,(r?RMe:Q_e)(l));break}l=cSe(l)}return s||Zn}function _H(t,r){if(Gx(r)){const s=gi(r.tags,l=>sSe(t,l));return r.tags===s?[r]:s}return sSe(t,r)?[r]:void 0}function sSe(t,r){return!(HY(r)||CA(r))||!r.parent||!Gx(r.parent)||!sb(r.parent.parent)||r.parent.parent===t}function cSe(t){const r=t.parent;if(r.kind===303||r.kind===277||r.kind===172||r.kind===244&&t.kind===211||r.kind===253||Iie(r)||ys(t)&&t.operatorToken.kind===64)return r;if(r.parent&&($8(r.parent)===t||ys(r)&&r.operatorToken.kind===64))return r.parent;if(r.parent&&r.parent.parent&&($8(r.parent.parent)||Die(r.parent.parent)===t||KMe(r.parent.parent)))return r.parent.parent}function mY(t){if(t.symbol)return t.symbol;if(!An(t.name))return;const r=t.name.escapedText,s=VE(t);if(!s)return;const l=lr(s.parameters,m=>m.name.kind===80&&m.name.escapedText===r);return l&&l.symbol}function q8(t){if(Gx(t.parent)&&t.parent.tags){const r=lr(t.parent.tags,T2);if(r)return r}return VE(t)}function VE(t){const r=dH(t);if(r)return Np(r)&&r.type&&S_(r.type)?r.type:S_(r)?r:void 0}function dH(t){const r=P7(t);if(r)return KMe(r)||HVe(r)||Die(r)||$8(r)||Iie(r)||r}function P7(t){const r=pH(t);if(!r)return;const s=r.parent;if(s&&s.jsDoc&&r===Yf(s.jsDoc))return s}function pH(t){return Kr(t.parent,Gx)}function lSe(t){const r=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&lr(s,l=>l.name.escapedText===r)}function JVe(t){return!!t.typeArguments}function QM(t){let r=t.parent;for(;;){switch(r.kind){case 226:const s=r.operatorToken.kind;return zN(s)&&r.left===t?s===64||W7(s)?1:2:0;case 224:case 225:const l=r.operator;return l===46||l===47?2:0;case 249:case 250:return r.initializer===t?1:0;case 217:case 209:case 230:case 235:t=r;break;case 305:t=r.parent;break;case 304:if(r.name!==t)return 0;t=r.parent;break;case 303:if(r.name===t)return 0;t=r.parent;break;default:return 0}r=t.parent}}function IS(t){return QM(t)!==0}function uSe(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 Ide(t){return Dm(t)||ph(t)||c7(t)||b0(t)||pg(t)}function rg(t,r){for(;t&&t.kind===r;)t=t.parent;return t}function mH(t){return rg(t,196)}function Lx(t){return rg(t,217)}function ON(t){let r;for(;t&&t.kind===196;)r=t,t=t.parent;return[r,t]}function lG(t){for(;xR(t);)t=t.type;return t}function _g(t,r){return rv(t,r?17:1)}function kde(t){return t.kind!==211&&t.kind!==212?!1:(t=Lx(t.parent),t&&t.kind===220)}function N7(t,r){for(;t;){if(t===r)return!0;t=t.parent}return!1}function vP(t){return!tl(t)&&!ld(t)&&dl(t.parent)&&t.parent.name===t}function O9(t){const r=t.parent;switch(t.kind){case 11:case 15:case 9:if(am(r))return r.parent;case 80:if(dl(r))return r.name===t?r:void 0;if(nT(r)){const s=r.parent;return AA(s)&&s.name===r?s:void 0}else{const s=r.parent;return ys(s)&&Qy(s)!==0&&(s.left.symbol||s.symbol)&&o_(s)===t?s:void 0}case 81:return dl(r)&&r.name===t?r:void 0;default:return}}function K8(t){return Qv(t)&&t.parent.kind===167&&dl(t.parent.parent)}function Pde(t){const r=t.parent;switch(r.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return r.name===t;case 166:return r.right===t;case 208:case 276:return r.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function XMe(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&&ZM(t)?!0:Rs(t)&&(ys(t)&&Qy(t)===2&&ZM(t)||sa(t)&&ys(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&gR(t.parent.right))}function YC(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 YC(t)}}function gR(t){return Uh(t)||B0(t)}function ZM(t){const r=uG(t);return gR(r)}function uG(t){return Ly(t)?t.expression:t.right}function gH(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function hA(t){const r=oC(t);if(r&&Rs(t)){const s=MMe(t);if(s)return s.class}return r}function oC(t){const r=_G(t.heritageClauses,96);return r&&r.types.length>0?r.types[0]:void 0}function qb(t){if(Rs(t))return WTe(t).map(r=>r.class);{const r=_G(t.heritageClauses,119);return r==null?void 0:r.types}}function fG(t){return Kp(t)?F9(t)||Zn:Jl(t)&&Hi(zD(hA(t)),qb(t))||Zn}function F9(t){const r=_G(t.heritageClauses,96);return r?r.types:void 0}function _G(t,r){if(t){for(const s of t)if(s.token===r)return s}}function e6(t,r){for(;t;){if(t.kind===r)return t;t=t.parent}}function sE(t){return 83<=t&&t<=165}function w7(t){return 19<=t&&t<=79}function Nde(t){return sE(t)||w7(t)}function hH(t){return 128<=t&&t<=165}function W9(t){return sE(t)&&!hH(t)}function ob(t){return 119<=t&&t<=127}function t6(t){const r=TN(t);return r!==void 0&&W9(r)}function Ox(t){const r=TN(t);return r!==void 0&&sE(r)}function yH(t){const r=ML(t);return!!r&&!hH(r)}function tI(t){return 2<=t&&t<=7}function L0(t){if(!t)return 4;let r=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(r|=1);case 219:il(t,512)&&(r|=2);break}return t.body||(r|=4),r}function FN(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&il(t,512)}return!1}function Qv(t){return sp(t)||nS(t)}function K2(t){return yk(t)&&(t.operator===40||t.operator===41)&&nS(t.operand)}function nI(t){const r=o_(t);return!!r&&wde(r)}function wde(t){if(!(t.kind===167||t.kind===212))return!1;const r=Ed(t)?_g(t.argumentExpression):t.expression;return!Qv(r)&&!K2(r)}function WN(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 9:return ty(t.text);case 167:const r=t.expression;return Qv(r)?ty(r.text):K2(r)?r.operator===41?Nd(r.operator)+r.operand.text:r.operand.text:void 0;case 295:return bR(t);default:return ce.assertNever(t)}}function yA(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function aC(t){return fy(t)?ec(t):dI(t)?g3(t):t.text}function gY(t){return fy(t)?t.escapedText:dI(t)?bR(t):ty(t.text)}function YMe(t){return`__@${Bp(t)}@${t.escapedName}`}function R7(t,r){return`__#${Bp(t)}@${r}`}function vH(t){return xf(t.escapedName,"__@")}function UE(t){return xf(t.escapedName,"__#")}function fSe(t){return t.kind===80&&t.escapedText==="Symbol"}function X8(t){return An(t)?ec(t)==="__proto__":Wp(t)&&t.text==="__proto__"}function vA(t,r){switch(t=rv(t),t.kind){case 231:if(mj(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof r=="function"?r(t):!0}function kie(t){switch(t.kind){case 303:return!X8(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return An(t.name)&&!!t.initializer;case 169:return An(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return An(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 An(t.left)}break;case 277:return!0}return!1}function Hd(t,r){if(!kie(t))return!1;switch(t.kind){case 303:return vA(t.initializer,r);case 304:return vA(t.objectAssignmentInitializer,r);case 260:case 169:case 208:case 172:return vA(t.initializer,r);case 226:return vA(t.right,r);case 277:return vA(t.expression,r)}}function _Se(t){return t.escapedText==="push"||t.escapedText==="unshift"}function Y8(t){return rI(t).kind===169}function rI(t){for(;t.kind===208;)t=t.parent.parent;return t}function dG(t){const r=t.kind;return r===176||r===218||r===262||r===219||r===174||r===177||r===178||r===267||r===312}function rh(t){return ab(t.pos)||ab(t.end)}function Pie(t){return Il(t,tl)||t}function bH(t){const r=QMe(t),s=t.kind===214&&t.arguments!==void 0;return B9(t.kind,r,s)}function B9(t,r,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(r){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 HL(t){const r=QMe(t),s=t.kind===214&&t.arguments!==void 0;return hY(t.kind,r,s)}function QMe(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function hY(t,r,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(r){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 TH(r)}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 TH(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 yY(t){return gi(t,r=>{switch(r.kind){case 294:return!!r.expression;case 12:return!r.containsOnlyTriviaWhiteSpaces;default:return!0}})}function vY(){let t=[];const r=[],s=new Map;let l=!1;return{add:y,lookup:m,getGlobalDiagnostics:T,getDiagnostics:D};function m(I){let W;if(I.file?W=s.get(I.file.fileName):W=t,!W)return;const O=ZS(W,I,Of,FH);if(O>=0)return W[O]}function y(I){let W;I.file?(W=s.get(I.file.fileName),W||(W=[],s.set(I.file.fileName,W),d0(r,I.file.fileName,Fp))):(l&&(l=!1,t=t.slice()),W=t),d0(W,I,FH)}function T(){return l=!0,t}function D(I){if(I)return s.get(I)||[];const W=Lm(r,O=>s.get(O));return t.length&&W.unshift(...t),W}}function Q8(t){return t.replace(Vde,"\\${")}function SH(t){return t&&!!(Sd(t)?t.templateFlags:t.head.templateFlags||gt(t.templateSpans,r=>!!r.literal.templateFlags))}function $Ve(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function Lat(t,r,s){if(t.charCodeAt(0)===0){const l=s.charCodeAt(r+t.length);return l>=48&&l<=57?"\\x00":"\\0"}return p6e.get(t)||$Ve(t.charCodeAt(0))}function M7(t,r){const s=r===96?d6e:r===39?Hde:Ude;return t.replace(s,Lat)}function S2(t,r){return t=M7(t,r),aEe.test(t)?t.replace(aEe,s=>$Ve(s.charCodeAt(0))):t}function Oat(t){return"&#x"+t.toString(16).toUpperCase()+";"}function EH(t){return t.charCodeAt(0)===0?"�":sEe.get(t)||Oat(t.charCodeAt(0))}function bY(t,r){const s=r===39?g6e:m6e;return t.replace(s,EH)}function HE(t){const r=t.length;return r>=2&&t.charCodeAt(0)===t.charCodeAt(r-1)&&Nie(t.charCodeAt(0))?t.substring(1,r-1):t}function Nie(t){return t===39||t===34||t===96}function z9(t){const r=t.charCodeAt(0);return r>=97&&r<=122||Ub(t,"-")}function pG(t){const r=nJ[1];for(let s=nJ.length;s<=t;s++)nJ.push(nJ[s-1]+r);return nJ[t]}function QC(){return nJ[1].length}function mG(){return Ub(At,"-dev")||Ub(At,"-insiders")}function wie(t){var r,s,l,m,y,T=!1;function D(ue){const Ne=i7(ue);Ne.length>1?(m=m+Ne.length-1,y=r.length-ue.length+yl(Ne),l=y-r.length===0):l=!1}function I(ue){ue&&ue.length&&(l&&(ue=pG(s)+ue,l=!1),r+=ue,D(ue))}function W(ue){ue&&(T=!1),I(ue)}function O(ue){ue&&(T=!0),I(ue)}function V(){r="",s=0,l=!0,m=0,y=0,T=!1}function ee(ue){ue!==void 0&&(r+=ue,D(ue),T=!1)}function te(ue){ue&&ue.length&&W(ue)}function oe(ue){(!l||ue)&&(r+=t,m++,y=r.length,l=!0,T=!1)}function de(){return l?r.length:r.length+t.length}return V(),{write:W,rawWrite:ee,writeLiteral:te,writeLine:oe,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>r.length,getLine:()=>m,getColumn:()=>l?s*QC():r.length-y,getText:()=>r,isAtStartOfLine:()=>l,hasTrailingComment:()=>T,hasTrailingWhitespace:()=>!!r.length&&UD(r.charCodeAt(r.length-1)),clear:V,writeKeyword:W,writeOperator:W,writeParameter:W,writeProperty:W,writePunctuation:W,writeSpace:W,writeStringLiteral:W,writeSymbol:(ue,Ne)=>W(ue),writeTrailingSemicolon:W,writeComment:O,getTextPosWithWriteLine:de}}function Rde(t){let r=!1;function s(){r&&(t.writeTrailingSemicolon(";"),r=!1)}return{...t,writeTrailingSemicolon(){r=!0},writeLiteral(l){s(),t.writeLiteral(l)},writeStringLiteral(l){s(),t.writeStringLiteral(l)},writeSymbol(l,m){s(),t.writeSymbol(l,m)},writePunctuation(l){s(),t.writePunctuation(l)},writeKeyword(l){s(),t.writeKeyword(l)},writeOperator(l){s(),t.writeOperator(l)},writeParameter(l){s(),t.writeParameter(l)},writeSpace(l){s(),t.writeSpace(l)},writeProperty(l){s(),t.writeProperty(l)},writeComment(l){s(),t.writeComment(l)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function xH(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function hR(t){return _v(xH(t))}function Rie(t,r,s){return r.moduleName||Mde(t,r.fileName,s&&s.fileName)}function Mie(t,r){return t.getCanonicalFileName(Su(r,t.getCurrentDirectory()))}function TY(t,r,s){const l=r.getExternalModuleFileFromDeclaration(s);if(!l||l.isDeclarationFile)return;const m=pY(s);if(!(m&&sp(m)&&!U2(m.text)&&Mie(t,l.path).indexOf(Mie(t,Rv(t.getCommonSourceDirectory())))===-1))return Rie(t,l)}function Mde(t,r,s){const l=I=>t.getCanonicalFileName(I),m=_h(s?qc(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),l),y=Su(r,t.getCurrentDirectory()),T=Fz(m,y,m,l,!1),D=wg(T);return s?OE(D):D}function Ng(t,r,s){const l=r.getCompilerOptions();let m;return l.outDir?m=wg(j9(t,r,l.outDir)):m=wg(t),m+s}function Lie(t,r){return Oie(t,r.getCompilerOptions(),r.getCurrentDirectory(),r.getCommonSourceDirectory(),s=>r.getCanonicalFileName(s))}function Oie(t,r,s,l,m){const y=r.declarationDir||r.outDir,T=y?Z8(t,y,s,l,m):t,D=JL(T);return wg(T)+D}function JL(t){return ws(t,[".mjs",".mts"])?".d.mts":ws(t,[".cjs",".cts"])?".d.cts":ws(t,[".json"])?".d.json.ts":".d.ts"}function Fie(t){return ws(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:ws(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:ws(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Kg(t){return t.outFile||t.out}function G9(t,r){var s;if(t.paths)return t.baseUrl??ce.checkDefined(t.pathsBasePath||((s=r.getCurrentDirectory)==null?void 0:s.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function dSe(t,r,s){const l=t.getCompilerOptions();if(Kg(l)){const m=Zp(l),y=l.emitDeclarationOnly||m===2||m===4;return gi(t.getSourceFiles(),T=>(y||!Wv(T))&&L7(T,t,s))}else{const m=r===void 0?t.getSourceFiles():[r];return gi(m,y=>L7(y,t,s))}}function L7(t,r,s){return!(r.getCompilerOptions().noEmitForJsFiles&&v1(t))&&!t.isDeclarationFile&&!r.isSourceFileFromExternalLibrary(t)&&(s||!(Py(t)&&r.getResolvedProjectReferenceToRedirect(t.fileName))&&!r.isSourceOfProjectReferenceRedirect(t.fileName))}function j9(t,r,s){return Z8(t,s,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l))}function Z8(t,r,s,l,m){let y=Su(t,s);return y=m(y).indexOf(m(l))===0?y.substring(l.length):y,tf(r,y)}function sC(t,r,s,l,m,y,T){t.writeFile(s,l,m,D=>{r.add(W_(w.Could_not_write_file_0_Colon_1,s,D))},y,T)}function AH(t,r,s){if(t.length>vN(t)&&!s(t)){const l=qc(t);AH(l,r,s),r(t)}}function Lde(t,r,s,l,m,y){try{l(t,r,s)}catch{AH(qc(Fd(t)),m,y),l(t,r,s)}}function BN(t,r){const s=q1(t);return I8(s,r)}function iI(t,r){return I8(t,r)}function E2(t){return lr(t.members,r=>pg(r)&&wx(r.body))}function yR(t){if(t&&t.parameters.length>0){const r=t.parameters.length===2&&oI(t.parameters[0]);return t.parameters[r?1:0]}}function V9(t){const r=yR(t);return r&&r.type}function $L(t){if(t.parameters.length&&!Ak(t)){const r=t.parameters[0];if(oI(r))return r}}function oI(t){return Zy(t.name)}function Zy(t){return!!t&&t.kind===80&&SY(t)}function O7(t){return!!Kr(t,r=>r.kind===186?!0:r.kind===80||r.kind===166?!1:"quit")}function kS(t){if(!Zy(t))return!1;for(;nT(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function SY(t){return t.escapedText==="this"}function gG(t,r){let s,l,m,y;return nI(r)?(s=r,r.kind===177?m=r:r.kind===178?y=r:ce.fail("Accessor has wrong kind")):Ot(t,T=>{if(Am(T)&&e_(T)===e_(r)){const D=WN(T.name),I=WN(r.name);D===I&&(s?l||(l=T):s=T,T.kind===177&&!m&&(m=T),T.kind===178&&!y&&(y=T))}}),{firstAccessor:s,secondAccessor:l,getAccessor:m,setAccessor:y}}function Kb(t){if(!Rs(t)&&b0(t))return;const r=t.type;return r||!Rs(t)?r:BM(t)?t.typeExpression&&t.typeExpression.type:X1(t)}function pSe(t){return t.type}function bA(t){return Ak(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Rs(t)?WU(t):void 0)}function Wie(t){return ea(EN(t),r=>ZMe(r)?r.typeParameters:void 0)}function ZMe(t){return jx(t)&&!(t.parent.kind===327&&(t.parent.tags.some(T2)||t.parent.tags.some(FG)))}function mSe(t){const r=yR(t);return r&&Kb(r)}function hG(t,r,s,l){qVe(t,r,s.pos,l)}function qVe(t,r,s,l){l&&l.length&&s!==l[0].pos&&iI(t,s)!==iI(t,l[0].pos)&&r.writeLine()}function e6e(t,r,s,l){s!==l&&iI(t,s)!==iI(t,l)&&r.writeLine()}function Bie(t,r,s,l,m,y,T,D){if(l&&l.length>0){m&&s.writeSpace(" ");let I=!1;for(const W of l)I&&(s.writeSpace(" "),I=!1),D(t,r,s,W.pos,W.end,T),W.hasTrailingNewLine?s.writeLine():I=!0;I&&y&&s.writeSpace(" ")}}function gSe(t,r,s,l,m,y,T){let D,I;if(T?m.pos===0&&(D=gi(CS(t,m.pos),W)):D=CS(t,m.pos),D){const O=[];let V;for(const ee of D){if(V){const te=iI(r,V.end);if(iI(r,ee.pos)>=te+2)break}O.push(ee),V=ee}if(O.length){const ee=iI(r,yl(O).end);iI(r,ep(t,m.pos))>=ee+2&&(hG(r,s,m,D),Bie(t,r,s,O,!1,!0,y,l),I={nodePos:m.pos,detachedCommentEndPos:yl(O).end})}}return I;function W(O){return h9(t,O.pos)}}function tT(t,r,s,l,m,y){if(t.charCodeAt(l+1)===42){const T=Sb(r,l),D=r.length;let I;for(let W=l,O=T.line;W0){let oe=te%QC();const de=pG((te-oe)/QC());for(s.rawWrite(de);oe;)s.rawWrite(" "),oe--}else s.rawWrite("")}ul(t,m,s,y,W,V),W=V}}else s.writeComment(t.substring(l,m))}function ul(t,r,s,l,m,y){const T=Math.min(r,y-1),D=GD(t.substring(m,T));D?(s.writeComment(D),T!==r&&s.writeLine()):s.rawWrite(l)}function pd(t,r,s){let l=0;for(;r=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=F7(t)|536870912),r&&!(t.modifierFlagsCache&4096)&&(s||Rs(t))&&t.parent&&(t.modifierFlagsCache|=Fde(t)|4096),t.modifierFlagsCache&-536875009)}function tS(t){return n6e(t,!0)}function KVe(t){return n6e(t,!0,!0)}function n6(t){return n6e(t,!1)}function Fde(t){let r=0;return t.parent&&!Pu(t)&&(Rs(t)&&(OMe(t)&&(r|=4),zTe(t)&&(r|=8),jTe(t)&&(r|=16),Xre(t)&&(r|=64),UTe(t)&&(r|=16384)),Z_e(t)&&(r|=8192)),r}function aI(t){return F7(t)|Fde(t)}function F7(t){let r=nx(t)?dk(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(r|=1),r}function dk(t){let r=0;if(t)for(const s of t)r|=U9(s.kind);return r}function U9(t){switch(t){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function CH(t){return t===57||t===56}function Wde(t){return CH(t)||t===54}function W7(t){return t===76||t===77||t===78}function DH(t){return ys(t)&&W7(t.operatorToken.kind)}function pk(t){return CH(t)||t===61}function IH(t){return ys(t)&&pk(t.operatorToken.kind)}function zN(t){return t>=64&&t<=79}function Zv(t){const r=hSe(t);return r&&!r.isImplements?r.class:void 0}function hSe(t){if(WT(t)){if(rT(t.parent)&&Jl(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(iF(t.parent)){const r=dH(t.parent);if(r&&Jl(r))return{class:r,isImplements:!1}}}}function wy(t,r){return ys(t)&&(r?t.operatorToken.kind===64:zN(t.operatorToken.kind))&&FE(t.left)}function Gie(t){return wy(t.parent)&&t.parent.left===t}function Tg(t){if(wy(t,!0)){const r=t.left.kind;return r===210||r===209}return!1}function PS(t){return Zv(t)!==void 0}function Uh(t){return t.kind===80||bP(t)}function NS(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 B7(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&B7(t.expression)||t.kind===217&&B7(t.expression)}function bP(t){return sa(t)&&An(t.name)&&Uh(t.expression)}function z7(t){if(sa(t)){const r=z7(t.expression);if(r!==void 0)return r+"."+oE(t.name)}else if(Ed(t)){const r=z7(t.expression);if(r!==void 0&&_y(t.argumentExpression))return r+"."+WN(t.argumentExpression)}else{if(An(t))return lf(t.escapedText);if(dI(t))return g3(t)}}function r6(t){return XM(t)&&XC(t)==="prototype"}function kH(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 jie(t){return sa(t.parent)&&t.parent.name===t||Ed(t.parent)&&t.parent.argumentExpression===t}function ySe(t){return nT(t.parent)&&t.parent.right===t||sa(t.parent)&&t.parent.name===t||Nu(t.parent)&&t.parent.right===t}function Vie(t){return t.kind===210&&t.properties.length===0}function vSe(t){return t.kind===209&&t.elements.length===0}function i6(t){if(!(!Fat(t)||!t.declarations)){for(const r of t.declarations)if(r.localSymbol)return r.localSymbol}}function Fat(t){return t&&Nt(t.declarations)>0&&il(t.declarations[0],1024)}function PH(t){return lr(TG,r=>Pg(t,r))}function Wat(t){const r=[],s=t.length;for(let l=0;l>6|192),r.push(m&63|128)):m<65536?(r.push(m>>12|224),r.push(m>>6&63|128),r.push(m&63|128)):m<131072?(r.push(m>>18|240),r.push(m>>12&63|128),r.push(m>>6&63|128),r.push(m&63|128)):ce.assert(!1,"Unexpected code point")}return r}function bSe(t){let r="";const s=Wat(t);let l=0;const m=s.length;let y,T,D,I;for(;l>2,T=(s[l]&3)<<4|s[l+1]>>4,D=(s[l+1]&15)<<2|s[l+2]>>6,I=s[l+2]&63,l+1>=m?D=I=64:l+2>=m&&(I=64),r+=V7.charAt(y)+V7.charAt(T)+V7.charAt(D)+V7.charAt(I),l+=3;return r}function Bat(t){let r="",s=0;const l=t.length;for(;s>4&3,O=(T&15)<<4|D>>2&15,V=(D&3)<<6|I&63;O===0&&D!==0?l.push(W):V===0&&I!==0?l.push(W,O):l.push(W,O,V),m+=4}return Bat(l)}function Uie(t,r){const s=As(r)?r:r.readFile(t);if(!s)return;const l=n2e(t,s);return l.error?void 0:l.config}function e3(t,r){return Uie(t,r)||{}}function O0(t,r){return!r.directoryExists||r.directoryExists(t)}function JE(t){switch(t.newLine){case 0:return h6e;case 1:case void 0:return rJ}}function tv(t,r=t){return ce.assert(r>=t||r===-1),{pos:t,end:r}}function NH(t,r){return tv(t.pos,r)}function TA(t,r){return tv(r,t.end)}function $E(t){const r=nx(t)?ra(t.modifiers,Qf):void 0;return r&&!ab(r.end)?TA(t,r.end):t}function Db(t){if(Os(t)||em(t))return TA(t,t.name.pos);const r=nx(t)?Yf(t.modifiers):void 0;return r&&!ab(r.end)?TA(t,r.end):$E(t)}function XVe(t){return t.pos===t.end}function Hie(t,r){return tv(t,t+Nd(r).length)}function mk(t,r){return xSe(t,t,r)}function wH(t,r,s){return mv(t3(t,s,!1),t3(r,s,!1),s)}function ESe(t,r,s){return mv(t.end,r.end,s)}function xSe(t,r,s){return mv(t3(t,s,!1),r.end,s)}function H9(t,r,s){return mv(t.end,t3(r,s,!1),s)}function Jie(t,r,s,l){const m=t3(r,s,l);return MX(s,t.end,m)}function YVe(t,r,s){return MX(s,t.end,r.end)}function ASe(t,r){return!mv(t.pos,t.end,r)}function mv(t,r,s){return MX(s,t,r)===0}function t3(t,r,s){return ab(t.pos)?-1:ep(r.text,t.pos,!1,s)}function CSe(t,r,s,l){const m=ep(s.text,t,!1,l),y=zat(m,r,s);return MX(s,y??r,m)}function DSe(t,r,s,l){const m=ep(s.text,t,!1,l);return MX(s,t,Math.min(r,m))}function zat(t,r=0,s){for(;t-- >r;)if(!UD(s.text.charCodeAt(t)))return t}function $ie(t){const r=Il(t);if(r)switch(r.parent.kind){case 266:case 267:return r===r.parent.name}return!1}function n3(t){return gi(t.declarations,J9)}function J9(t){return ff(t)&&t.initializer!==void 0}function QVe(t){return t.watch&&ef(t,"watch")}function Ib(t){t.close()}function I_(t){return t.flags&33554432?t.links.checkFlags:0}function Vy(t,r=!1){if(t.valueDeclaration){const s=r&&t.declarations&&lr(t.declarations,Ep)||t.flags&32768&&lr(t.declarations,tm)||t.valueDeclaration,l=Gg(s);return t.parent&&t.parent.flags&32?l:l&-29}if(I_(t)&6){const s=t.links.checkFlags,l=s&1024?8:s&256?4:16,m=s&2048?32:0;return l|m}return t.flags&4194304?36:0}function dg(t,r){return t.flags&2097152?r.getAliasedSymbol(t):t}function r3(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function RH(t){return qL(t)===1}function o6(t){return qL(t)!==0}function qL(t){const{parent:r}=t;switch(r==null?void 0:r.kind){case 217:return qL(r);case 225:case 224:const{operator:s}=r;return s===46||s===47?2:0;case 226:const{left:l,operatorToken:m}=r;return l===t&&zN(m.kind)?m.kind===64?1:2:0;case 211:return r.name!==t?0:qL(r);case 303:{const y=qL(r.parent);return t===r.name?Gat(y):y}case 304:return t===r.objectAssignmentInitializer?0:qL(r.parent);case 209:return qL(r);default:return 0}}function Gat(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return ce.assertNever(t)}}function qie(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!qie(t[s],r[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==r[s])return!1;return!0}function Mh(t,r){t.forEach(r),t.clear()}function wS(t,r,s){const{onDeleteValue:l,onExistingValue:m}=s;t.forEach((y,T)=>{const D=r.get(T);D===void 0?(t.delete(T),l(y,T)):m&&m(y,D,T)})}function a6(t,r,s){wS(t,r,s);const{createNewValue:l}=s;r.forEach((m,y)=>{t.has(y)||t.set(y,l(y,m))})}function ISe(t){if(t.flags&32){const r=RS(t);return!!r&&il(r,256)}return!1}function RS(t){var r;return(r=t.declarations)==null?void 0:r.find(Jl)}function ji(t){return t.flags&138117121?t.objectFlags:0}function ZVe(t,r){return!!ok(t,s=>r(s)?!0:void 0)}function MH(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&py(t.declarations[0])}function kSe({moduleSpecifier:t}){return Wp(t)?t.text:Yv(t)}function Kie(t){let r;return B_(t,s=>{wx(s)&&(r=s)},s=>{for(let l=s.length-1;l>=0;l--)if(wx(s[l])){r=s[l];break}}),r}function y0(t,r,s=!0){return t.has(r)?!1:(t.set(r,s),!0)}function GN(t){return Jl(t)||Kp(t)||e0(t)}function Xie(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 Kf(t){return t.kind===211||t.kind===212}function PSe(t){return t.kind===211?t.name:(ce.assert(t.kind===212),t.argumentExpression)}function NSe(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function LH(t){return t.kind===275||t.kind===279}function i3(t){for(;Kf(t);)t=t.expression;return t}function r6e(t,r){if(Kf(t.parent)&&jie(t))return s(t.parent);function s(l){if(l.kind===211){const m=r(l.name);if(m!==void 0)return m}else if(l.kind===212)if(An(l.argumentExpression)||sp(l.argumentExpression)){const m=r(l.argumentExpression);if(m!==void 0)return m}else return;if(Kf(l.expression))return s(l.expression);if(An(l.expression))return r(l.expression)}}function KL(t,r){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(r)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function jat(t,r){this.flags=t,this.escapedName=r,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 Vat(t,r){this.flags=r,(ce.isDebugging||tu)&&(this.checker=t)}function Uat(t,r){this.flags=r,ce.isDebugging&&(this.checker=t)}function Bde(t,r,s){this.pos=r,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 Hat(t,r,s){this.pos=r,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Jat(t,r,s){this.pos=r,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 $at(t,r,s){this.fileName=t,this.text=r,this.skipTrivia=s||(l=>l)}function wSe(t){cEe.push(t),t(nv)}function RSe(t){Object.assign(nv,t),Ot(cEe,r=>r(nv))}function LT(t,r,s=0){return t.replace(/{(\d+)}/g,(l,m)=>""+ce.checkDefined(r[+m+s]))}function MSe(t){Toe=t}function LSe(t){!Toe&&t&&(Toe=t())}function fs(t){return Toe&&Toe[t.key]||t.message}function s6(t,r,s,l){zL(void 0,r,s);let m=fs(l);return arguments.length>4&&(m=LT(m,arguments,4)),{file:void 0,start:r,length:s,messageText:m,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,fileName:t}}function qat(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function i6e(t,r){const s=r.fileName||"",l=r.text.length;ce.assertEqual(t.fileName,s),ce.assertLessThanOrEqual(t.start,l),ce.assertLessThanOrEqual(t.start+t.length,l);const m={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){m.relatedInformation=[];for(const y of t.relatedInformation)qat(y)&&y.fileName===s?(ce.assertLessThanOrEqual(y.start,l),ce.assertLessThanOrEqual(y.start+y.length,l),m.relatedInformation.push(i6e(y,r))):m.relatedInformation.push(y)}return m}function jN(t,r){const s=[];for(const l of t)s.push(i6e(l,r));return s}function Pp(t,r,s,l){zL(t,r,s);let m=fs(l);return arguments.length>4&&(m=LT(m,arguments,4)),{file:t,start:r,length:s,messageText:m,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}function Yie(t,r){let s=fs(r);return arguments.length>2&&(s=LT(s,arguments,2)),s}function W_(t){let r=fs(t);return arguments.length>1&&(r=LT(r,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:r,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function OH(t,r){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Es(t,r){let s=fs(r);return arguments.length>2&&(s=LT(s,arguments,2)),{messageText:s,category:r.category,code:r.code,next:t===void 0||Array.isArray(t)?t:[t]}}function OSe(t,r){let s=t;for(;s.next;)s=s.next[0];s.next=[r]}function o6e(t){return t.file?t.file.path:void 0}function o3(t,r){return FH(t,r)||Kat(t,r)||0}function FH(t,r){return Fp(o6e(t),o6e(r))||pf(t.start,r.start)||pf(t.length,r.length)||pf(t.code,r.code)||a6e(t.messageText,r.messageText)||0}function Kat(t,r){return!t.relatedInformation&&!r.relatedInformation?0:t.relatedInformation&&r.relatedInformation?pf(t.relatedInformation.length,r.relatedInformation.length)||Ot(t.relatedInformation,(s,l)=>{const m=r.relatedInformation[l];return o3(s,m)})||0:t.relatedInformation?-1:1}function a6e(t,r){if(typeof t=="string"&&typeof r=="string")return Fp(t,r);if(typeof t=="string")return-1;if(typeof r=="string")return 1;let s=Fp(t.messageText,r.messageText);if(s)return s;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;const l=Math.min(t.next.length,r.next.length);for(let m=0;mr.next.length?1:0}function $9(t){return t===4||t===2||t===1||t===6?1:0}function s6e(t){if(t.transformFlags&2)return Y1(t)||KE(t)?t:B_(t,s6e)}function Xat(t){return t.isDeclarationFile?void 0:s6e(t)}function Yat(t){return(t.impliedNodeFormat===99||ws(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function q9(t){switch(FSe(t)){case 3:return m=>{m.externalModuleIndicator=S6(m)||!m.isDeclarationFile||void 0};case 1:return m=>{m.externalModuleIndicator=S6(m)};case 2:const r=[S6];(t.jsx===4||t.jsx===5)&&r.push(Xat),r.push(Yat);const s=dA(...r);return m=>void(m.externalModuleIndicator=s(m))}}function iu(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function Zp(t){return typeof t.module=="number"?t.module:iu(t)>=2?5:1}function WH(t){return t>=5&&t<=99}function Jd(t){let r=t.moduleResolution;if(r===void 0)switch(Zp(t)){case 1:r=2;break;case 100:r=3;break;case 199:r=99;break;default:r=1;break}return r}function FSe(t){return t.moduleDetection||(Zp(t)===100||Zp(t)===199?3:2)}function BH(t){switch(Zp(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function F0(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function Qie(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function WSe(t){return t.allowUnreachableCode===!1}function BSe(t){return t.allowUnusedLabels===!1}function zH(t){return!!(gv(t)&&t.declarationMap)}function b1(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(Zp(t)){case 100:case 199:return!0}}function VN(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:b1(t)||Zp(t)===4||Jd(t)===100}function UN(t){return t>=3&&t<=99||t===100}function GH(t){return!!t.noDtsResolution||Jd(t)!==100}function Zie(t){const r=Jd(t);if(!UN(r))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}function eUe(t){const r=Jd(t);if(!UN(r))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}function sI(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:Jd(t)===100}function gv(t){return!!(t.declaration||t.composite)}function gk(t){return!!(t.preserveConstEnums||F0(t))}function K9(t){return!!(t.incremental||t.composite)}function hv(t,r){return t[r]===void 0?!!t.strict:!!t[r]}function TP(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function X9(t){return t.useDefineForClassFields===void 0?iu(t)>=9:t.useDefineForClassFields}function zSe(t){return t.useDefineForClassFields!==!1&&iu(t)>=9}function GSe(t,r){return gA(r,t,o$)}function jSe(t,r){return gA(r,t,a$)}function VSe(t,r){return gA(r,t,tae)}function jH(t,r){return r.strictFlag?hv(t,r.name):t[r.name]}function VH(t){const r=t.jsx;return r===2||r===4||r===5}function UH(t,r){const s=r==null?void 0:r.pragmas.get("jsximportsource"),l=ls(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||l?(l==null?void 0:l.arguments.factory)||t.jsxImportSource||"react":void 0}function HH(t,r){return t?`${t}/${r.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function eoe(t){let r=!1;for(let s=0;sm,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>l,setSymlinkedFile:(D,I)=>(m||(m=new Map)).set(D,I),setSymlinkedDirectory:(D,I)=>{let W=_h(D,t,r);_3(W)||(W=Rv(W),I!==!1&&!(s!=null&&s.has(W))&&(l||(l=zg())).add(Rv(I.realPath),D),(s||(s=new Map)).set(W,I))},setSymlinksFromResolutions(D,I){var W,O;ce.assert(!y),y=!0;for(const V of D)(W=V.resolvedModules)==null||W.forEach(ee=>T(this,ee.resolvedModule)),(O=V.resolvedTypeReferenceDirectiveNames)==null||O.forEach(ee=>T(this,ee.resolvedTypeReferenceDirective));I.forEach(V=>T(this,V.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>y};function T(D,I){if(!I||!I.originalPath||!I.resolvedFileName)return;const{resolvedFileName:W,originalPath:O}=I;D.setSymlinkedFile(_h(O,t,r),W);const[V,ee]=Qat(W,O,t,r)||Zn;V&&ee&&D.setSymlinkedDirectory(ee,{real:V,realPath:_h(V,t,r)})}}function Qat(t,r,s,l){const m=g0(Su(t,s)),y=g0(Su(r,s));let T=!1;for(;m.length>=2&&y.length>=2&&!c6e(m[m.length-2],l)&&!c6e(y[y.length-2],l)&&l(m[m.length-1])===l(y[y.length-1]);)m.pop(),y.pop(),T=!0;return T?[vf(m),vf(y)]:void 0}function c6e(t,r){return t!==void 0&&(r(t)==="node_modules"||xf(t,"@"))}function Zat(t){return jre(t.charCodeAt(0))?t.slice(1):void 0}function toe(t,r,s){const l=C8(t,r,s);return l===void 0?void 0:Zat(l)}function tUe(t){return t.replace(W0,est)}function est(t){return"\\"+t}function a3(t,r,s){const l=JH(t,r,s);return!l||!l.length?void 0:`^(${l.map(T=>`(${T})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function JH(t,r,s){if(!(t===void 0||t.length===0))return ea(t,l=>l&&l6e(l,r,s,Jde[s]))}function noe(t){return!/[.*?]/.test(t)}function roe(t,r,s){const l=t&&l6e(t,r,s,Jde[s]);return l&&`^(${l})${s==="exclude"?"($|/)":"$"}`}function l6e(t,r,s,{singleAsteriskRegexFragment:l,doubleAsteriskRegexFragment:m,replaceWildcardCharacter:y}){let T="",D=!1;const I=bN(t,r),W=yl(I);if(s!=="exclude"&&W==="**")return;I[0]=n7(I[0]),noe(W)&&I.push("**","*");let O=0;for(let V of I){if(V==="**")T+=m;else if(s==="directories"&&(T+="(",O++),D&&(T+=q),s!=="exclude"){let ee="";V.charCodeAt(0)===42?(ee+="([^./]"+l+")?",V=V.substr(1)):V.charCodeAt(0)===63&&(ee+="[^./]",V=V.substr(1)),ee+=V.replace(W0,y),ee!==V&&(T+=IY),T+=ee}else T+=V.replace(W0,y);D=!0}for(;O>0;)T+=")?",O--;return T}function Gde(t,r){return t==="*"?r:t==="?"?"[^/]":"\\"+t}function Y9(t,r,s,l,m){t=Fd(t),m=Fd(m);const y=tf(m,t);return{includeFilePatterns:Vn(JH(s,y,"files"),T=>`^${T}$`),includeFilePattern:a3(s,y,"files"),includeDirectoryPattern:a3(s,y,"directories"),excludePattern:a3(r,y,"exclude"),basePaths:tst(t,s,l)}}function Y2(t,r){return new RegExp(t,r?"":"i")}function ioe(t,r,s,l,m,y,T,D,I){t=Fd(t),y=Fd(y);const W=Y9(t,s,l,m,y),O=W.includeFilePatterns&&W.includeFilePatterns.map(Ne=>Y2(Ne,m)),V=W.includeDirectoryPattern&&Y2(W.includeDirectoryPattern,m),ee=W.excludePattern&&Y2(W.excludePattern,m),te=O?O.map(()=>[]):[[]],oe=new Map,de=_v(m);for(const Ne of W.basePaths)ue(Ne,tf(y,Ne),T);return Gf(te);function ue(Ne,Be,Ve){const pt=de(I(Be));if(oe.has(pt))return;oe.set(pt,!0);const{files:Le,directories:ht}=D(Ne);for(const ke of fN(Le,Fp)){const _t=tf(Ne,ke),Dt=tf(Be,ke);if(!(r&&!ws(_t,r))&&!(ee&&ee.test(Dt)))if(!O)te[0].push(_t);else{const Ft=Ho(O,it=>it.test(Dt));Ft!==-1&&te[Ft].push(_t)}}if(!(Ve!==void 0&&(Ve--,Ve===0)))for(const ke of fN(ht,Fp)){const _t=tf(Ne,ke),Dt=tf(Be,ke);(!V||V.test(Dt))&&(!ee||!ee.test(Dt))&&ue(_t,Dt,Ve)}}}function tst(t,r,s){const l=[t];if(r){const m=[];for(const y of r){const T=mm(y)?y:Fd(tf(t,y));m.push(nst(T))}m.sort(Xw(!s));for(const y of m)jr(l,T=>!GC(T,y,t,!s))&&l.push(y)}return l}function nst(t){const r=Hg(t,lEe);return r<0?e7(t)?n7(qc(t)):t:t.substring(0,t.lastIndexOf(q,r))}function $H(t,r){return r||EY(t)||3}function EY(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 s3(t,r){const s=t&&TP(t);if(!r||r.length===0)return s?Aoe:bG;const l=s?Aoe:bG,m=Gf(l);return[...l,...Qo(r,T=>T.scriptKind===7||s&&rst(T.scriptKind)&&m.indexOf(T.extension)===-1?[T.extension]:void 0)]}function Q9(t,r){return!t||!sI(t)?r:r===Aoe?qde:r===bG?fEe:[...r,[".json"]]}function rst(t){return t===1||t===2}function eD(t){return gt(iJ,r=>Pg(t,r))}function vR(t){return gt($de,r=>Pg(t,r))}function USe({imports:t},r=dA(eD,vR)){return Yr(t,({text:s})=>U2(s)&&!ws(s,Coe)?r(s):void 0)||!1}function ooe(t,r,s,l){if(t==="js"||r===99)return l4(s)&&m()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!l4(s))return USe(l)?2:0;return m();function m(){let y=!1;const T=l.imports.length?l.imports.map(D=>D.text):v1(l)?ist(l).map(D=>D.arguments[0].text):Zn;for(const D of T)if(U2(D)){if(ws(D,Coe))continue;if(vR(D))return 3;eD(D)&&(y=!0)}return y?2:0}}function ist(t){let r=0,s;for(const l of t.statements){if(r>3)break;KM(l)?s=Hi(s,l.declarationList.declarations.map(m=>m.initializer)):Ou(l)&&eT(l.expression,!0)?s=ur(s,l.expression):r++}return s||Zn}function HSe(t,r,s){if(!t)return!1;const l=s3(r,s);for(const m of Gf(Q9(r,l)))if(Pg(t,m))return!0;return!1}function u6e(t){const r=t.match(/\//g);return r?r.length:0}function Z9(t,r){return pf(u6e(t),u6e(r))}function wg(t){for(const r of EG){const s=JSe(t,r);if(s!==void 0)return s}return t}function JSe(t,r){return Pg(t,r)?eW(t,r):void 0}function eW(t,r){return t.substring(0,t.length-r.length)}function SA(t,r){return RU(t,r,EG,!1)}function c6(t){const r=t.indexOf("*");return r===-1?t:t.indexOf("*",r+1)!==-1?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function qH(t){return Qo(ET(t),r=>c6(r))}function ab(t){return!(t>=0)}function KH(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||xf(t,".d.")&&h_(t,".ts")}function G7(t){return KH(t)||t===".json"}function SP(t){const r=OT(t);return r!==void 0?r:ce.fail(`File ${t} has unknown extension.`)}function nUe(t){return OT(t)!==void 0}function OT(t){return lr(EG,r=>Pg(t,r))}function tW(t,r){return t.checkJsDirective?t.checkJsDirective.enabled:r.checkJs}function aoe(t,r){const s=[];for(const l of t){if(l===r)return r;As(l)||s.push(l)}return qf(s,l=>l,r)}function soe(t,r){const s=t.indexOf(r);return ce.assert(s!==-1),t.slice(s)}function ml(t,...r){return r.length&&(t.relatedInformation||(t.relatedInformation=[]),ce.assert(t.relatedInformation!==Zn,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...r)),t}function $Se(t,r){ce.assert(t.length!==0);let s=r(t[0]),l=s;for(let m=1;ml&&(l=y)}return{min:s,max:l}}function coe(t){return{pos:Xz(t),end:t.end}}function loe(t,r){const s=r.pos-1,l=Math.min(t.text.length,ep(t.text,r.end)+1);return{pos:s,end:l}}function c3(t,r,s){return r.skipLibCheck&&t.isDeclarationFile||r.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function xY(t,r){return t===r||typeof t=="object"&&t!==null&&typeof r=="object"&&r!==null&&U5(t,r,xY)}function l3(t){let r;switch(t.charCodeAt(1)){case 98:case 66:r=1;break;case 111:case 79:r=3;break;case 120:case 88:r=4;break;default:const W=t.length-1;let O=0;for(;t.charCodeAt(O)===48;)O++;return t.slice(O,W)||"0"}const s=2,l=t.length-1,m=(l-s)*r,y=new Uint16Array((m>>>4)+(m&15?1:0));for(let W=l-1,O=0;W>=s;W--,O+=r){const V=O>>>4,ee=t.charCodeAt(W),oe=(ee<=57?ee-48:10+ee-(ee<=70?65:97))<<(O&15);y[V]|=oe;const de=oe>>>16;de&&(y[V+1]|=de)}let T="",D=y.length-1,I=!0;for(;I;){let W=0;I=!1;for(let O=D;O>=0;O--){const V=W<<16|y[O],ee=V/10|0;y[O]=ee,W=V-ee*10,ee&&!I&&(D=O,I=!0)}T=W+T}return T}function tD({negative:t,base10Value:r}){return(t&&r!=="0"?"-":"")+r}function qSe(t){if(XH(t,!1))return uoe(t)}function uoe(t){const r=t.startsWith("-"),s=l3(`${r?t.slice(1):t}n`);return{negative:r,base10Value:s}}function XH(t,r){if(t==="")return!1;const s=MM(99,!1);let l=!0;s.setOnError(()=>l=!1),s.setText(t+"n");let m=s.scan();const y=m===41;y&&(m=s.scan());const T=s.getTokenFlags();return l&&m===10&&s.getTokenEnd()===t.length+1&&!(T&512)&&(!r||t===tD({negative:y,base10Value:l3(s.getTokenValue())}))}function EA(t){return!!(t.flags&33554432)||Cs(t)||sst(t)||ast(t)||!(Gy(t)||ost(t))}function ost(t){return An(t)&&BT(t.parent)&&t.parent.name===t}function ast(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(il(t.parent,256))return!0;const r=t.parent.parent.kind;return r===264||r===187}function sst(t){if(t.kind!==80)return!1;const r=Kr(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(r==null?void 0:r.token)===119||(r==null?void 0:r.parent.kind)===264}function KSe(t){return x2(t)&&An(t.typeName)}function XSe(t,r=_1){if(t.length<2)return!0;const s=t[0];for(let l=1,m=t.length;lUb(t,r))}function ZSe(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:l}=t;return I3(l)?l.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:r}=t;if(NT(t))return EW(t.parent)?void 0:t.parent.tags;switch(r.kind){case 187:case 264:return l7(t)?r.members:void 0;case 192:case 193:return r.types;case 189:case 209:case 361:case 275:case 279:return r.elements;case 210:case 292:return r.properties;case 213:case 214:return Uu(t)?r.typeArguments:r.expression===t?void 0:r.arguments;case 284:case 288:return m1(t)?r.children:void 0;case 286:case 285:return Uu(t)?r.typeArguments:void 0;case 241:case 296:case 297:case 268:return r.statements;case 269:return r.clauses;case 263:case 231:return Mv(t)?r.members:void 0;case 266:return Qb(t)?r.members:void 0;case 312:return r.statements}}function YH(t){if(!t.typeParameters){if(gt(t.parameters,r=>!Kb(r)))return!0;if(t.kind!==219){const r=pp(t.parameters);if(!(r&&oI(r)))return!0}}return!1}function d3(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function eEe(t){return t.kind===260&&t.parent.kind===299}function _oe(t){const r=t.valueDeclaration&&rI(t.valueDeclaration);return!!r&&(Pu(r)||eEe(r))}function EP(t){return t.kind===218||t.kind===219}function nD(t){return t.replace(/\$/gm,()=>"\\$")}function FT(t){return(+t).toString()===t}function QH(t,r,s,l){return rE(t,r)?be.createIdentifier(t):!l&&FT(t)&&+t>=0?be.createNumericLiteral(+t):be.createStringLiteral(t,!!s)}function p3(t){return!!(t.flags&262144&&t.isThisType)}function AY(t){let r=0,s=0,l=0,m=0,y;(W=>{W[W.BeforeNodeModules=0]="BeforeNodeModules",W[W.NodeModules=1]="NodeModules",W[W.Scope=2]="Scope",W[W.PackageContent=3]="PackageContent"})(y||(y={}));let T=0,D=0,I=0;for(;D>=0;)switch(T=D,D=t.indexOf("/",T+1),I){case 0:t.indexOf(ix,T)===T&&(r=T,s=D,I=1);break;case 1:case 2:I===1&&t.charAt(T+1)==="@"?I=2:(l=D,I=3);break;case 3:t.indexOf(ix,T)===T?I=1:I=3;break}return m=T,I>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:s,packageRootIndex:l,fileNameIndex:m}:void 0}function rUe(t){var r;return t.kind===348?(r=t.typeExpression)==null?void 0:r.type:t.type}function f6(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 nW(t){return Ih(t)||Dh(t)||b0(t)||Kc(t)||Kp(t)||f6(t)||xp(t)&&!BL(t)&&!$C(t)}function rW(t){if(!BM(t))return!1;const{isBracketed:r,typeExpression:s}=t;return r||!!s&&s.type.kind===323}function doe(t,r){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&nR(t.charCodeAt(1),r):nR(s,r)}function tEe(t){var r;return((r=yEe(t))==null?void 0:r.kind)===0}function iW(t){return Rs(t)&&(t.type&&t.type.kind===323||Gz(t).some(({isBracketed:r,typeExpression:s})=>r||!!s&&s.type.kind===323))}function yG(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||iW(t);case 355:case 348:return rW(t);default:return!1}}function nEe(t){const r=t.kind;return(r===211||r===212)&&cC(t.expression)}function poe(t){return Rs(t)&&sb(t)&&g1(t)&&!!WM(t)}function moe(t){return ce.checkDefined(ZH(t))}function ZH(t){const r=WM(t);return r&&r.typeExpression&&r.typeExpression.type}function m3(t){return An(t)?t.escapedText:bR(t)}function oW(t){return An(t)?ec(t):g3(t)}function rEe(t){const r=t.kind;return r===80||r===295}function bR(t){return`${t.namespace.escapedText}:${ec(t.name)}`}function g3(t){return`${ec(t.namespace)}:${ec(t.name)}`}function goe(t){return An(t)?ec(t):g3(t)}function yv(t){return!!(t.flags&8576)}function vv(t){return t.flags&8192?t.escapedName:t.flags&384?ty(""+t.value):ce.fail()}var eJ,_6,vG,HN,j7,CY,tJ,hoe,jde,yoe,f6e,_6e,voe,iEe,oEe,boe,Vde,Ude,Hde,d6e,p6e,aEe,m6e,g6e,sEe,nJ,V7,h6e,rJ,nv,cEe,Toe,W0,lEe,DY,IY,uEe,Soe,Eoe,Jde,bG,$de,fEe,TG,xoe,iJ,Aoe,qde,h3,SG,Coe,oJ,EG,xG,_Ee=G({"src/compiler/utilities.ts"(){Ad(),eJ=[],_6="tslib",vG=160,HN=1e6,j7=zMe(),CY=(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))(CY||{}),tJ=/^(\/\/\/\s*/,hoe=/^(\/\/\/\s*/,jde=/^(\/\/\/\s*/,yoe=/^(\/\/\/\s*/,f6e=/^\/\/\/\s*/,_6e=/^(\/\/\/\s*/,voe=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(voe||{}),iEe=(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))(iEe||{}),oEe=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(oEe||{}),boe=(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))(boe||{}),Vde=/\$\{/g,Ude=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Hde=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,d6e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,p6e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),aEe=/[^\u0000-\u007F]/g,m6e=/["\u0000-\u001f\u2028\u2029\u0085]/g,g6e=/['\u0000-\u001f\u2028\u2029\u0085]/g,sEe=new Map(Object.entries({'"':""","'":"'"})),nJ=[""," "],V7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h6e=`\r +`),r.closeSync(In),jf("endDumpTypes"),dd("Dump types","beginDumpTypes","endDumpTypes")}function Le(){T&&r.writeFileSync(T,JSON.stringify(D))}t.dumpLegend=Le})(Iz||(Iz={})),F_e=Iz.startTracing,Xne=Iz.dumpLegend}});function fX(t,r=!0){const s=DU[t.category];return r?s.toLowerCase():s}var kz,_X,QO,dX,pX,mX,gX,AU,Yne,Pz,hX,Qne,Zne,ere,tre,nre,rre,ire,yX,ore,are,sre,cre,vX,bX,TX,lre,ure,fre,_re,SX,CU,dre,pre,mre,gre,hre,yre,Nz,t9,vre,bre,Tre,Sre,wz,DU,n9,Ere,EX,xre,Are,Rz,Cre,Dre,xX,IU,AX,Ire,kre,Pre,Nre,CX,DX,IX,wre,kU,Rre,bTe,Mz,TTe,ZO,B_e,z_e,mMe=G({"src/compiler/types.ts"(){kz=(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.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))(kz||{}),_X=(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))(_X||{}),QO=(t=>(t[t.None=0]="None",t[t.Export=1]="Export",t[t.Ambient=2]="Ambient",t[t.Public=4]="Public",t[t.Private=8]="Private",t[t.Protected=16]="Protected",t[t.Static=32]="Static",t[t.Readonly=64]="Readonly",t[t.Accessor=128]="Accessor",t[t.Abstract=256]="Abstract",t[t.Async=512]="Async",t[t.Default=1024]="Default",t[t.Const=2048]="Const",t[t.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",t[t.Deprecated=8192]="Deprecated",t[t.Override=16384]="Override",t[t.In=32768]="In",t[t.Out=65536]="Out",t[t.Decorator=131072]="Decorator",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=28]="AccessibilityModifier",t[t.ParameterPropertyModifier=16476]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=117086]="TypeScriptModifier",t[t.ExportDefault=1025]="ExportDefault",t[t.All=258047]="All",t[t.Modifier=126975]="Modifier",t))(QO||{}),dX=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(dX||{}),pX=(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))(pX||{}),mX=(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))(mX||{}),gX=(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))(gX||{}),AU=(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))(AU||{}),Yne=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(Yne||{}),Pz=class{},hX=(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))(hX||{}),Qne=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(Qne||{}),Zne=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(Zne||{}),ere=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(ere||{}),tre=(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))(tre||{}),nre=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(nre||{}),rre=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(rre||{}),ire=(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))(ire||{}),yX=(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))(yX||{}),ore=(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))(ore||{}),are=(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))(are||{}),sre=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(sre||{}),cre=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(cre||{}),vX=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(vX||{}),bX=(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))(bX||{}),TX=(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))(TX||{}),lre=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(lre||{}),ure=(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))(ure||{}),fre=(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))(fre||{}),_re=(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))(_re||{}),SX=(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=138117121]="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))(SX||{}),CU=(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.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))(CU||{}),dre=(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))(dre||{}),pre=(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))(pre||{}),mre=(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))(mre||{}),gre=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(gre||{}),hre=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(hre||{}),yre=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(yre||{}),Nz=(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))(Nz||{}),t9=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(t9||{}),vre=(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))(vre||{}),bre=(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))(bre||{}),Tre=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(Tre||{}),Sre=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Sre||{}),wz=(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))(wz||{}),DU=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(DU||{}),n9=(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))(n9||{}),Ere=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(Ere||{}),EX=(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))(EX||{}),xre=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(xre||{}),Are=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(Are||{}),Rz=(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))(Rz||{}),Cre=(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))(Cre||{}),Dre=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(Dre||{}),xX=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(xX||{}),IU=(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))(IU||{}),AX=(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))(AX||{}),Ire=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(Ire||{}),kre=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(kre||{}),Pre=(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))(Pre||{}),Nre=(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))(Nre||{}),CX=(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))(CX||{}),DX=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(DX||{}),IX=(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))(IX||{}),wre=(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))(wre||{}),kU=(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))(kU||{}),Rre=(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))(Rre||{}),bTe=(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))(bTe||{}),Mz=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(Mz||{}),TTe=(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))(TTe||{}),ZO=(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.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))(ZO||{}),B_e=(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))(B_e||{}),z_e={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}}}});function G_e(t){let r=5381;for(let s=0;s{Ve.isClosed=!0,IM(r,Ve)}}}function D(ue){const Ne=[];return Ne.pollingInterval=ue,Ne.pollIndex=0,Ne.pollScheduled=!1,Ne}function I(ue,Ne){Ne.pollIndex=O(Ne,Ne.pollingInterval,Ne.pollIndex,V_e[Ne.pollingInterval]),Ne.length?de(Ne.pollingInterval):(ce.assert(Ne.pollIndex===0),Ne.pollScheduled=!1)}function W(ue,Ne){O(s,250,0,s.length),I(ue,Ne),!Ne.pollScheduled&&s.length&&de(250)}function O(ue,Ne,Be,Ve){return j_e(t,ue,Be,Ve,pt);function pt(Le,ht,ke){ke?(Le.unchangedPolls=0,ue!==s&&(ue[ht]=void 0,te(Le))):Le.unchangedPolls!==wU[Ne]?Le.unchangedPolls++:ue===s?(Le.unchangedPolls=1,ue[ht]=void 0,ee(Le,250)):Ne!==2e3&&(Le.unchangedPolls++,ue[ht]=void 0,ee(Le,Ne===250?500:2e3))}}function V(ue){switch(ue){case 250:return l;case 500:return m;case 2e3:return y}}function ee(ue,Ne){V(Ne).push(ue),oe(Ne)}function te(ue){s.push(ue),oe(250)}function oe(ue){V(ue).pollScheduled||de(ue)}function de(ue){V(ue).pollScheduled=t.setTimeout(ue===250?W:I,ue,ue===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",V(ue))}}function gMe(t,r){const s=zg(),l=new Map,m=_v(r);return y;function y(D,I,W,O){const V=m(D);s.add(V,I);const ee=qc(V)||".",te=l.get(ee)||T(qc(D)||".",ee,O);return te.referenceCount++,{close:()=>{te.referenceCount===1?(te.close(),l.delete(ee)):te.referenceCount--,s.remove(V,I)}}}function T(D,I,W){const O=t(D,1,(V,ee,te)=>{if(!As(ee))return;const oe=Su(ee,D),de=oe&&s.get(m(oe));if(de)for(const ue of de)ue(oe,1,te)},!1,500,W);return O.referenceCount=0,l.set(I,O),O}}function Pat(t){const r=[];let s=0,l;return m;function m(D,I){const W={fileName:D,callback:I,mtime:PU(t,D)};return r.push(W),T(),{close:()=>{W.isClosed=!0,IM(r,W)}}}function y(){l=void 0,s=j_e(t,r,s,V_e[250]),T()}function T(){!r.length||l||(l=t.setTimeout(y,2e3,"pollQueue"))}}function MVe(t,r,s,l,m){const T=_v(r)(s),D=t.get(T);return D?D.callbacks.push(l):t.set(T,{watcher:m((I,W,O)=>{var V;return(V=t.get(T))==null?void 0:V.callbacks.slice().forEach(ee=>ee(I,W,O))}),callbacks:[l]}),{close:()=>{const I=t.get(T);I&&(!Yw(I.callbacks,l)||I.callbacks.length||(t.delete(T),dC(I)))}}}function Nat(t,r){const s=t.mtime.getTime(),l=r.getTime();return s!==l?(t.mtime=r,t.callback(t.fileName,hMe(s,l),r),!0):!1}function hMe(t,r){return t===0?0:r===0?2:1}function Lre(t){return nE(t)}function ETe(t){nE=t}function yMe({watchDirectory:t,useCaseSensitiveFileNames:r,getCurrentDirectory:s,getAccessibleSortedChildDirectories:l,fileSystemEntryExists:m,realpath:y,setTimeout:T,clearTimeout:D}){const I=new Map,W=zg(),O=new Map;let V;const ee=Xw(!r),te=_v(r);return(ke,_t,Dt,Ft)=>Dt?oe(ke,Ft,_t):t(ke,_t,Dt,Ft);function oe(ke,_t,Dt){const Ft=te(ke);let it=I.get(Ft);it?it.refCount++:(it={watcher:t(ke,ut=>{Le(ut,_t)||(_t!=null&&_t.synchronousWatchDirectory?(de(Ft,ut),pt(ke,Ft,_t)):ue(ke,Ft,ut,_t))},!1,_t),refCount:1,childWatches:Zn},I.set(Ft,it),pt(ke,Ft,_t));const Ye=Dt&&{dirName:ke,callback:Dt};return Ye&&W.add(Ft,Ye),{dirName:ke,close:()=>{const ut=ce.checkDefined(I.get(Ft));Ye&&W.remove(Ft,Ye),ut.refCount--,!ut.refCount&&(I.delete(Ft),dC(ut),ut.childWatches.forEach(Ib))}}}function de(ke,_t,Dt){let Ft,it;As(_t)?Ft=_t:it=_t,W.forEach((Ye,ut)=>{if(!(it&&it.get(ut)===!0)&&(ut===ke||xf(ke,ut)&&ke[ut.length]===q))if(it)if(Dt){const lt=it.get(ut);lt?lt.push(...Dt):it.set(ut,Dt.slice())}else it.set(ut,!0);else Ye.forEach(({callback:lt})=>lt(Ft))})}function ue(ke,_t,Dt,Ft){const it=I.get(_t);if(it&&m(ke,1)){Ne(ke,_t,Dt,Ft);return}de(_t,Dt),Ve(it)}function Ne(ke,_t,Dt,Ft){const it=O.get(_t);it?it.fileNames.push(Dt):O.set(_t,{dirName:ke,options:Ft,fileNames:[Dt]}),V&&(D(V),V=void 0),V=T(Be,1e3,"timerToUpdateChildWatches")}function Be(){V=void 0,Lre(`sysLog:: onTimerToUpdateChildWatches:: ${O.size}`);const ke=cf(),_t=new Map;for(;!V&&O.size;){const Ft=O.entries().next();ce.assert(!Ft.done);const{value:[it,{dirName:Ye,options:ut,fileNames:lt}]}=Ft;O.delete(it);const zt=pt(Ye,it,ut);de(it,_t,zt?void 0:lt)}Lre(`sysLog:: invokingWatchers:: Elapsed:: ${cf()-ke}ms:: ${O.size}`),W.forEach((Ft,it)=>{const Ye=_t.get(it);Ye&&Ft.forEach(({callback:ut,dirName:lt})=>{ls(Ye)?Ye.forEach(ut):ut(lt)})});const Dt=cf()-ke;Lre(`sysLog:: Elapsed:: ${Dt}ms:: onTimerToUpdateChildWatches:: ${O.size} ${V}`)}function Ve(ke){if(!ke)return;const _t=ke.childWatches;ke.childWatches=Zn;for(const Dt of _t)Dt.close(),Ve(I.get(te(Dt.dirName)))}function pt(ke,_t,Dt){const Ft=I.get(_t);if(!Ft)return!1;let it;const Ye=mTe(m(ke,1)?Qo(l(ke),zt=>{const Wt=Su(zt,ke);return!Le(Wt,Dt)&&ee(Wt,Fd(y(Wt)))===0?Wt:void 0}):Zn,Ft.childWatches,(zt,Wt)=>ee(zt,Wt.dirName),ut,Ib,lt);return Ft.childWatches=it||Zn,Ye;function ut(zt){const Wt=oe(zt,Dt);lt(Wt)}function lt(zt){(it||(it=[])).push(zt)}}function Le(ke,_t){return gt(kX,Dt=>ht(ke,Dt))||Ore(ke,_t,r,s)}function ht(ke,_t){return Ub(ke,_t)?!0:r?!1:Ub(te(ke),_t)}}function LVe(t){return(r,s,l)=>t(s===1?"change":"rename","",l)}function xTe(t,r,s){return(l,m,y)=>{l==="rename"?(y||(y=s(t)||aP),r(t,y!==aP?0:2,y)):r(t,1,y)}}function Ore(t,r,s,l){return((r==null?void 0:r.excludeDirectories)||(r==null?void 0:r.excludeFiles))&&(Fpe(t,r==null?void 0:r.excludeFiles,s,l())||Fpe(t,r==null?void 0:r.excludeDirectories,s,l()))}function oP(t,r,s,l,m){return(y,T)=>{if(y==="rename"){const D=T?Fd(tf(t,T)):t;(!T||!Ore(D,s,l,m))&&r(D)}}}function Fre({pollingWatchFileWorker:t,getModifiedTime:r,setTimeout:s,clearTimeout:l,fsWatchWorker:m,fileSystemEntryExists:y,useCaseSensitiveFileNames:T,getCurrentDirectory:D,fsSupportsRecursiveFsWatch:I,getAccessibleSortedChildDirectories:W,realpath:O,tscWatchFile:V,useNonPollingWatchers:ee,tscWatchDirectory:te,inodeWatching:oe,sysLog:de}){const ue=new Map,Ne=new Map,Be=new Map;let Ve,pt,Le,ht,ke=!1;return{watchFile:_t,watchDirectory:ut};function _t(kn,cr,un,on){on=it(on,ee);const pn=ce.checkDefined(on.watchFile);switch(pn){case 0:return Wt(kn,cr,250,void 0);case 1:return Wt(kn,cr,un,void 0);case 2:return Dt()(kn,cr,un,void 0);case 3:return Ft()(kn,cr,void 0,void 0);case 4:return tt(kn,0,xTe(kn,cr,r),!1,un,jW(on));case 5:return Le||(Le=gMe(tt,T)),Le(kn,cr,un,jW(on));default:ce.assertNever(pn)}}function Dt(){return Ve||(Ve=Mre({getModifiedTime:r,setTimeout:s}))}function Ft(){return pt||(pt=Pat({getModifiedTime:r,setTimeout:s}))}function it(kn,cr){if(kn&&kn.watchFile!==void 0)return kn;switch(V){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return Ye(4,1,kn);case"UseFsEventsWithFallbackDynamicPolling":return Ye(4,2,kn);case"UseFsEventsOnParentDirectory":cr=!0;default:return cr?Ye(5,1,kn):{watchFile:4}}}function Ye(kn,cr,un){const on=un==null?void 0:un.fallbackPolling;return{watchFile:kn,fallbackPolling:on===void 0?cr:on}}function ut(kn,cr,un,on){return I?tt(kn,1,oP(kn,cr,on,T,D),un,500,jW(on)):(ht||(ht=yMe({useCaseSensitiveFileNames:T,getCurrentDirectory:D,fileSystemEntryExists:y,getAccessibleSortedChildDirectories:W,watchDirectory:lt,realpath:O,setTimeout:s,clearTimeout:l})),ht(kn,cr,un,on))}function lt(kn,cr,un,on){ce.assert(!un);const pn=zt(on),Or=ce.checkDefined(pn.watchDirectory);switch(Or){case 1:return Wt(kn,()=>cr(kn),500,void 0);case 2:return Dt()(kn,()=>cr(kn),500,void 0);case 3:return Ft()(kn,()=>cr(kn),void 0,void 0);case 0:return tt(kn,1,oP(kn,cr,on,T,D),un,500,jW(pn));default:ce.assertNever(Or)}}function zt(kn){if(kn&&kn.watchDirectory!==void 0)return kn;switch(te){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const cr=kn==null?void 0:kn.fallbackPolling;return{watchDirectory:0,fallbackPolling:cr!==void 0?cr:void 0}}}function Wt(kn,cr,un,on){return MVe(ue,T,kn,cr,pn=>t(kn,pn,un,on))}function tt(kn,cr,un,on,pn,Or){return MVe(on?Be:Ne,T,kn,un,Xr=>Mn(kn,cr,Xr,on,pn,Or))}function Mn(kn,cr,un,on,pn,Or){let Xr,Ut;oe&&(Xr=kn.substring(kn.lastIndexOf(q)),Ut=Xr.slice(q.length));let In=y(kn,cr)?Cr():Ur();return{close:()=>{In&&(In.close(),In=void 0)}};function gr(so){In&&(de(`sysLog:: ${kn}:: Changing watcher to ${so===Cr?"Present":"Missing"}FileSystemEntryWatcher`),In.close(),In=so())}function Cr(){if(ke)return de(`sysLog:: ${kn}:: Defaulting to watchFile`),Gn();try{const so=m(kn,on,oe?ei:un);return so.on("error",()=>{un("rename",""),gr(Ur)}),so}catch(so){return ke||(ke=so.code==="ENOSPC"),de(`sysLog:: ${kn}:: Changing to watchFile`),Gn()}}function ei(so,ho){let di;if(ho&&h_(ho,"~")&&(di=ho,ho=ho.slice(0,ho.length-1)),so==="rename"&&(!ho||ho===Ut||h_(ho,Xr))){const Nc=r(kn)||aP;di&&un(so,di,Nc),un(so,ho,Nc),oe?gr(Nc===aP?Ur:Cr):Nc===aP&&gr(Ur)}else di&&un(so,di),un(so,ho)}function Gn(){return _t(kn,LVe(un),pn,Or)}function Ur(){return _t(kn,(so,ho,di)=>{ho===0&&(di||(di=r(kn)||aP),di!==aP&&(un("rename","",di),gr(Cr)))},pn,Or)}}}function Wre(t){const r=t.writeFile;t.writeFile=(s,l,m)=>Lde(s,l,!!m,(y,T,D)=>r.call(t,y,T,D),y=>t.createDirectory(y),y=>t.directoryExists(y))}function Bre(t){m0=t}var NU,zre,aP,w0,V_e,wU,kX,nE,Gre,m0,V2=G({"src/compiler/sys.ts"(){Ad(),NU=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(NU||{}),zre=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(zre||{}),aP=new Date(0),w0={Low:32,Medium:64,High:256},V_e=STe(w0),wU=STe(w0),kX=["/node_modules/.","/.git","/.#"],nE=ku,Gre=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(Gre||{}),m0=(()=>{const t="\uFEFF";function r(){const l=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,m=MC,y=MC,T=MC;let D;try{D=MC}catch{D=void 0}let I,W="./profile.cpuprofile";const O=MC.Buffer,V=process.platform==="linux"||process.platform==="darwin",ee=T.platform(),te=Ft(),oe=m.realpathSync.native?process.platform==="win32"?pn:m.realpathSync.native:m.realpathSync,de=__filename.endsWith("sys.js")?y.join(y.dirname(__dirname),"__fake__.js"):__filename,ue=process.platform==="win32"||process.platform==="darwin",Ne=Pd(()=>process.cwd()),{watchFile:Be,watchDirectory:Ve}=Fre({pollingWatchFileWorker:Ye,getModifiedTime:Xr,setTimeout,clearTimeout,fsWatchWorker:ut,useCaseSensitiveFileNames:te,getCurrentDirectory:Ne,fileSystemEntryExists:kn,fsSupportsRecursiveFsWatch:ue,getAccessibleSortedChildDirectories:Cr=>tt(Cr).directories,realpath:Or,tscWatchFile:g.TSC_WATCHFILE,useNonPollingWatchers:!!g.TSC_NONPOLLING_WATCHER,tscWatchDirectory:g.TSC_WATCHDIRECTORY,inodeWatching:V,sysLog:Lre}),pt={args:process.argv.slice(2),newLine:T.EOL,useCaseSensitiveFileNames:te,write(Cr){process.stdout.write(Cr)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:zt,writeFile:Wt,watchFile:Be,watchDirectory:Ve,resolvePath:Cr=>y.resolve(Cr),fileExists:cr,directoryExists:un,createDirectory(Cr){if(!pt.directoryExists(Cr))try{m.mkdirSync(Cr)}catch(ei){if(ei.code!=="EEXIST")throw ei}},getExecutingFilePath(){return de},getCurrentDirectory:Ne,getDirectories:on,getEnvironmentVariable(Cr){return g[Cr]||""},readDirectory:Mn,getModifiedTime:Xr,setModifiedTime:Ut,deleteFile:In,createHash:D?gr:G_e,createSHA256Hash:D?gr:void 0,getMemoryUsage(){return ORe.gc&&ORe.gc(),process.memoryUsage().heapUsed},getFileSize(Cr){try{const ei=Le(Cr);if(ei!=null&&ei.isFile())return ei.size}catch{}return 0},exit(Cr){_t(()=>process.exit(Cr))},enableCPUProfiler:ht,disableCPUProfiler:_t,cpuProfilingEnabled:()=>!!I||ni(process.execArgv,"--cpu-prof")||ni(process.execArgv,"--prof"),realpath:Or,debugMode:!!g.NODE_INSPECTOR_IPC||!!g.VSCODE_INSPECTOR_OPTIONS||gt(process.execArgv,Cr=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Cr))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{MC.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var Cr;const ei=(Cr=process.stdout)==null?void 0:Cr._handle;ei&&ei.setBlocking&&ei.setBlocking(!0)},bufferFrom:Dt,base64decode:Cr=>Dt(Cr,"base64").toString("utf8"),base64encode:Cr=>Dt(Cr).toString("base64"),require:(Cr,ei)=>{try{const Gn=ZG(ei,Cr,pt);return{module:Wot(Gn),modulePath:Gn,error:void 0}}catch(Gn){return{module:void 0,modulePath:void 0,error:Gn}}}};return pt;function Le(Cr){return m.statSync(Cr,{throwIfNoEntry:!1})}function ht(Cr,ei){if(I)return ei(),!1;const Gn=MC;if(!Gn||!Gn.Session)return ei(),!1;const Ur=new Gn.Session;return Ur.connect(),Ur.post("Profiler.enable",()=>{Ur.post("Profiler.start",()=>{I=Ur,W=Cr,ei()})}),!0}function ke(Cr){let ei=0;const Gn=new Map,Ur=hf(y.dirname(de)),so=`file://${vN(Ur)===1?"":"/"}${Ur}`;for(const ho of Cr.nodes)if(ho.callFrame.url){const di=hf(ho.callFrame.url);GC(so,di,te)?ho.callFrame.url=Oz(so,di,so,_v(te),!0):l.test(di)||(ho.callFrame.url=(Gn.has(di)?Gn:Gn.set(di,`external${ei}.js`)).get(di),ei++)}return Cr}function _t(Cr){if(I&&I!=="stopping"){const ei=I;return I.post("Profiler.stop",(Gn,{profile:Ur})=>{var so;if(!Gn){try{(so=Le(W))!=null&&so.isDirectory()&&(W=y.join(W,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{m.mkdirSync(y.dirname(W),{recursive:!0})}catch{}m.writeFileSync(W,JSON.stringify(ke(Ur)))}I=void 0,ei.disconnect(),Cr()}),I="stopping",!0}else return Cr(),!1}function Dt(Cr,ei){return O.from&&O.from!==Int8Array.from?O.from(Cr,ei):new O(Cr,ei)}function Ft(){return ee==="win32"||ee==="win64"?!1:!cr(it(__filename))}function it(Cr){return Cr.replace(/\w/g,ei=>{const Gn=ei.toUpperCase();return ei===Gn?ei.toLowerCase():Gn})}function Ye(Cr,ei,Gn){m.watchFile(Cr,{persistent:!0,interval:Gn},so);let Ur;return{close:()=>m.unwatchFile(Cr,so)};function so(ho,di){const Nc=+di.mtime==0||Ur===2;if(+ho.mtime==0){if(Nc)return;Ur=2}else if(Nc)Ur=0;else{if(+ho.mtime==+di.mtime)return;Ur=1}ei(Cr,Ur,ho.mtime)}}function ut(Cr,ei,Gn){return m.watch(Cr,ue?{persistent:!0,recursive:!!ei}:{persistent:!0},Gn)}function lt(Cr,ei){let Gn;try{Gn=m.readFileSync(Cr)}catch{return}let Ur=Gn.length;if(Ur>=2&&Gn[0]===254&&Gn[1]===255){Ur&=-2;for(let so=0;so=2&&Gn[0]===255&&Gn[1]===254?Gn.toString("utf16le",2):Ur>=3&&Gn[0]===239&&Gn[1]===187&&Gn[2]===191?Gn.toString("utf8",3):Gn.toString("utf8")}function zt(Cr,ei){var Gn,Ur;(Gn=jD)==null||Gn.logStartReadFile(Cr);const so=lt(Cr);return(Ur=jD)==null||Ur.logStopReadFile(),so}function Wt(Cr,ei,Gn){var Ur;(Ur=jD)==null||Ur.logEvent("WriteFile: "+Cr),Gn&&(ei=t+ei);let so;try{so=m.openSync(Cr,"w"),m.writeSync(so,ei,void 0,"utf8")}finally{so!==void 0&&m.closeSync(so)}}function tt(Cr){var ei;(ei=jD)==null||ei.logEvent("ReadDir: "+(Cr||"."));try{const Gn=m.readdirSync(Cr||".",{withFileTypes:!0}),Ur=[],so=[];for(const ho of Gn){const di=typeof ho=="string"?ho:ho.name;if(di==="."||di==="..")continue;let Nc;if(typeof ho=="string"||ho.isSymbolicLink()){const ha=tf(Cr,di);try{if(Nc=Le(ha),!Nc)continue}catch{continue}}else Nc=ho;Nc.isFile()?Ur.push(di):Nc.isDirectory()&&so.push(di)}return Ur.sort(),so.sort(),{files:Ur,directories:so}}catch{return EG}}function Mn(Cr,ei,Gn,Ur,so){return ioe(Cr,ei,Gn,Ur,te,process.cwd(),so,tt,Or)}function kn(Cr,ei){const Gn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ur=Le(Cr);if(!Ur)return!1;switch(ei){case 0:return Ur.isFile();case 1:return Ur.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Gn}}function cr(Cr){return kn(Cr,0)}function un(Cr){return kn(Cr,1)}function on(Cr){return tt(Cr).directories.slice()}function pn(Cr){return Cr.length<260?m.realpathSync.native(Cr):m.realpathSync(Cr)}function Or(Cr){try{return oe(Cr)}catch{return Cr}}function Xr(Cr){var ei;const Gn=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ei=Le(Cr))==null?void 0:ei.mtime}catch{return}finally{Error.stackTraceLimit=Gn}}function Ut(Cr,ei){try{m.utimesSync(Cr,ei,ei)}catch{return}}function In(Cr){try{return m.unlinkSync(Cr)}catch{return}}function gr(Cr){const ei=D.createHash("sha256");return ei.update(Cr),ei.digest("hex")}}let s;return kM()&&(s=r()),s&&Wre(s),s})(),m0&&m0.getEnvironmentVariable&&(kat(m0),ce.setAssertionLevel(/^development$/i.test(m0.getEnvironmentVariable("NODE_ENV"))?1:0)),m0&&m0.debugMode&&(ce.isDebugging=!0)}});function jre(t){return t===47||t===92}function r9(t){return t7(t)<0}function mm(t){return t7(t)>0}function pv(t){const r=t7(t);return r>0&&r===t.length}function VD(t){return t7(t)!==0}function U2(t){return/^\.\.?($|[\\/])/.test(t)}function vMe(t){return!VD(t)&&!U2(t)}function e7(t){return Ub(Iy(t),".")}function Pg(t,r){return t.length>r.length&&h_(t,r)}function ws(t,r){for(const s of r)if(Pg(t,s))return!0;return!1}function Jg(t){return t.length>0&&jre(t.charCodeAt(t.length-1))}function bMe(t){return t>=97&&t<=122||t>=65&&t<=90}function wat(t,r){const s=t.charCodeAt(r);if(s===58)return r+1;if(s===37&&t.charCodeAt(r+1)===51){const l=t.charCodeAt(r+2);if(l===97||l===65)return r+3}return-1}function t7(t){if(!t)return 0;const r=t.charCodeAt(0);if(r===47||r===92){if(t.charCodeAt(1)!==r)return 1;const l=t.indexOf(r===47?q:N,2);return l<0?t.length:l+1}if(bMe(r)&&t.charCodeAt(1)===58){const l=t.charCodeAt(2);if(l===47||l===92)return 3;if(t.length===2)return 2}const s=t.indexOf(SMe);if(s!==-1){const l=s+SMe.length,m=t.indexOf(q,l);if(m!==-1){const y=t.slice(0,s),T=t.slice(l,m);if(y==="file"&&(T===""||T==="localhost")&&bMe(t.charCodeAt(m+1))){const D=wat(t,m+2);if(D!==-1){if(t.charCodeAt(D)===47)return~(D+1);if(D===t.length)return~D}}return~(m+1)}return~t.length}return 0}function vN(t){const r=t7(t);return r<0?~r:r}function qc(t){t=hf(t);const r=vN(t);return r===t.length?t:(t=n7(t),t.slice(0,Math.max(r,t.lastIndexOf(q))))}function Iy(t,r,s){if(t=hf(t),vN(t)===t.length)return"";t=n7(t);const m=t.slice(Math.max(vN(t),t.lastIndexOf(q)+1)),y=r!==void 0&&s!==void 0?vl(m,r,s):void 0;return y?m.slice(0,m.length-y.length):m}function $1(t,r,s){if(xf(r,".")||(r="."+r),t.length>=r.length&&t.charCodeAt(t.length-r.length)===46){const l=t.slice(t.length-r.length);if(s(l,r))return l}}function i9(t,r,s){if(typeof r=="string")return $1(t,r,s)||"";for(const l of r){const m=$1(t,l,s);if(m)return m}return""}function vl(t,r,s){if(r)return i9(n7(t),r,s?pN:ZA);const l=Iy(t),m=l.lastIndexOf(".");return m>=0?l.substring(m):""}function PL(t,r){const s=t.substring(0,r),l=t.substring(r).split(q);return l.length&&!Yf(l)&&l.pop(),[s,...l]}function g0(t,r=""){return t=tf(r,t),PL(t,vN(t))}function vf(t,r){return t.length===0?"":(t[0]&&Rv(t[0]))+t.slice(1,r).join(q)}function hf(t){return t.indexOf("\\")!==-1?t.replace(CT,q):t}function Lz(t){if(!gt(t))return[];const r=[t[0]];for(let s=1;s1){if(r[r.length-1]!==".."){r.pop();continue}}else if(r[0])continue}r.push(l)}}return r}function tf(t,...r){t&&(t=hf(t));for(let s of r)s&&(s=hf(s),!t||vN(s)!==0?t=s:t=Rv(t)+s);return t}function gm(t,...r){return Fd(gt(r)?tf(t,...r):hf(t))}function bN(t,r){return Lz(g0(t,r))}function Su(t,r){return vf(bN(t,r))}function Fd(t){if(t=hf(t),!RX.test(t))return t;const r=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(r!==t&&(t=r,!RX.test(t)))return t;const s=vf(Lz(g0(t)));return s&&Jg(t)?Rv(s):s}function Vre(t){return t.length===0?"":t.slice(1).join(q)}function U_e(t,r){return Vre(bN(t,r))}function _h(t,r,s){const l=mm(t)?Fd(t):Su(t,r);return s(l)}function n7(t){return Jg(t)?t.substr(0,t.length-1):t}function Rv(t){return Jg(t)?t:t+q}function OE(t){return!VD(t)&&!U2(t)?"./"+t:t}function RU(t,r,s,l){const m=s!==void 0&&l!==void 0?vl(t,s,l):vl(t);return m?t.slice(0,t.length-m.length)+(xf(r,".")?r:"."+r):t}function Ure(t,r,s){if(t===r)return 0;if(t===void 0)return-1;if(r===void 0)return 1;const l=t.substring(0,vN(t)),m=r.substring(0,vN(r)),y=Kw(l,m);if(y!==0)return y;const T=t.substring(l.length),D=r.substring(m.length);if(!RX.test(T)&&!RX.test(D))return s(T,D);const I=Lz(g0(t)),W=Lz(g0(r)),O=Math.min(I.length,W.length);for(let V=1;V0==vN(r)>0,"Paths must either both be absolute or both be relative");const y=NX(t,r,(typeof s=="boolean"?s:!1)?pN:ZA,typeof s=="function"?s:Of);return vf(y)}function r7(t,r,s){return mm(t)?Oz(r,t,r,s,!1):t}function wX(t,r,s){return OE(qp(qc(t),r,s))}function Oz(t,r,s,l,m){const y=NX(gm(s,t),gm(s,r),ZA,l),T=y[0];if(m&&mm(T)){const D=T.charAt(0)===q?"file://":"file:///";y[0]=D+T}return vf(y)}function ok(t,r){for(;;){const s=r(t);if(s!==void 0)return s;const l=qc(t);if(l===t)return;t=l}}function TMe(t){return h_(t,"/node_modules")}var q,N,SMe,CT,RX,Hre=G({"src/compiler/path.ts"(){Ad(),q="/",N="\\",SMe="://",CT=/\\/g,RX=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function K(t,r,s,l,m,y,T){return{code:t,category:r,key:s,message:l,reportsUnnecessary:m,elidedInCompatabilityPyramid:y,reportsDeprecated:T}}var w,Rat=G({"src/compiler/diagnosticInformationMap.generated.ts"(){mMe(),w={Unterminated_string_literal:K(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:K(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:K(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:K(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:K(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:K(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:K(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:K(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:K(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:K(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:K(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:K(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:K(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:K(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:K(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:K(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:K(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:K(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:K(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:K(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:K(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:K(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:K(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:K(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:K(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:K(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:K(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:K(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:K(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:K(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:K(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:K(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:K(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:K(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:K(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:K(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:K(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:K(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:K(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:K(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:K(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:K(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:K(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:K(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:K(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:K(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:K(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:K(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:K(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:K(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:K(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:K(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:K(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:K(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:K(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:K(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:K(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:K(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:K(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:K(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:K(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:K(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:K(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:K(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:K(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:K(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:K(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:K(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:K(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:K(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:K(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:K(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:K(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:K(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:K(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:K(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:K(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:K(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:K(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:K(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:K(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:K(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:K(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:K(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:K(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:K(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:K(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:K(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:K(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:K(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:K(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:K(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:K(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:K(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:K(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:K(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:K(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:K(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:K(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:K(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:K(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:K(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:K(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:K(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:K(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:K(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:K(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:K(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:K(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:K(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:K(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:K(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:K(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:K(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:K(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:K(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:K(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:K(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:K(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:K(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:K(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:K(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:K(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:K(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:K(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:K(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:K(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:K(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:K(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:K(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:K(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:K(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:K(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:K(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:K(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:K(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:K(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:K(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:K(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:K(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:K(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:K(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:K(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:K(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:K(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:K(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:K(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:K(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:K(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:K(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:K(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:K(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:K(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:K(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:K(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:K(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_assertion_as_arguments:K(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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:K(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_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:K(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:K(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:K(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:K(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:K(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:K(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:K(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:K(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:K(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:K(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:K(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:K(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:K(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:K(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:K(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:K(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:K(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:K(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:K(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:K(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:K(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:K(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:K(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:K(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:K(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:K(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:K(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:K(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:K(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:K(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:K(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:K(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:K(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:K(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:K(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:K(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:K(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:K(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:K(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:K(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:K(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:K(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:K(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:K(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:K(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:K(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:K(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:K(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:K(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:K(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:K(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:K(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:K(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:K(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:K(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:K(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:K(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:K(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:K(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:K(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:K(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:K(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:K(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:K(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:K(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:K(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:K(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:K(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:K(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:K(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:K(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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."),Cannot_find_namespace_0_Did_you_mean_1:K(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:K(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:K(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_transpile_to_commonjs_require_calls:K(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:K(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:K(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:K(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_an_interface_can_only_extend_named_types_and_classes:K(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:K(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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."),Import_declaration_0_is_using_private_name_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:K(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are 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:K(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:K(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:K(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:K(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:K(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:K(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:K(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:K(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:K(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:K(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:K(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:K(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:K(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:K(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:K(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:K(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:K(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:K(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:K(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:K(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:K(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:K(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:K(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:K(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:K(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:K(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:K(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:K(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:K(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:K(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:K(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:K(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:K(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:K(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:K(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:K(6024,3,"options_6024","options"),file:K(6025,3,"file_6025","file"),Examples_Colon_0:K(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:K(6027,3,"Options_Colon_6027","Options:"),Version_0:K(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:K(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:K(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:K(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:K(6034,3,"KIND_6034","KIND"),FILE:K(6035,3,"FILE_6035","FILE"),VERSION:K(6036,3,"VERSION_6036","VERSION"),LOCATION:K(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:K(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:K(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:K(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:K(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:K(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:K(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:K(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:K(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:K(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:K(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:K(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:K(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:K(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:K(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:K(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:K(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:K(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:K(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:K(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:K(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:K(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:K(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:K(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:K(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:K(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:K(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:K(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:K(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:K(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:K(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:K(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:K(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:K(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:K(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:K(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:K(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:K(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:K(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:K(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:K(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:K(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:K(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:K(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:K(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:K(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:K(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:K(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:K(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:K(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:K(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:K(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:K(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:K(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:K(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:K(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:K(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:K(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:K(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:K(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:K(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:K(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:K(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:K(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:K(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:K(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:K(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:K(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:K(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:K(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:K(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:K(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:K(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:K(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:K(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:K(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:K(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:K(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:K(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:K(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:K(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:K(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:K(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:K(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:K(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:K(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:K(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:K(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:K(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:K(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:K(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:K(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:K(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:K(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:K(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:K(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:K(6244,3,"Modules_6244","Modules"),File_Management:K(6245,3,"File_Management_6245","File Management"),Emit:K(6246,3,"Emit_6246","Emit"),JavaScript_Support:K(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:K(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:K(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:K(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:K(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:K(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:K(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:K(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:K(6255,3,"Projects_6255","Projects"),Output_Formatting:K(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:K(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:K(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:K(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:K(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:K(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:K(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:K(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:K(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:K(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:K(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:K(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:K(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:K(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:K(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:K(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:K(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:K(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:K(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:K(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:K(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:K(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:K(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:K(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:K(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:K(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:K(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:K(6902,3,"type_Colon_6902","type:"),default_Colon:K(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:K(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:K(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:K(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:K(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:K(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:K(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:K(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:K(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:K(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:K(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:K(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:K(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:K(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:K(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:K(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:K(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:K(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:K(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:K(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:K(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:K(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:K(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:K(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:K(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:K(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:K(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:K(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:K(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:K(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:K(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:K(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:K(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:K(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:K(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:K(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:K(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:K(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:K(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}'?"),Circularity_detected_while_resolving_configuration_Colon_0:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:K(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:K(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:K(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:K(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:K(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:K(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:K(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:K(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:K(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:K(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:K(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:K(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:K(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:K(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:K(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:K(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:K(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:K(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:K(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:K(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:K(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:K(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:K(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:K(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:K(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:K(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:K(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:K(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:K(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:K(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:K(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:K(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:K(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:K(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:K(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:K(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:K(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:K(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:K(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:K(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:K(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:K(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:K(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:K(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:K(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:K(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:K(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:K(95005,3,"Extract_function_95005","Extract function"),Extract_constant:K(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:K(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:K(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:K(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:K(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:K(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:K(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:K(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:K(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:K(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:K(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:K(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:K(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:K(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:K(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:K(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:K(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:K(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:K(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:K(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:K(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:K(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:K(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:K(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:K(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:K(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:K(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:K(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:K(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:K(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:K(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:K(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:K(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:K(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:K(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:K(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:K(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:K(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:K(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:K(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:K(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:K(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:K(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:K(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:K(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:K(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:K(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:K(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:K(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:K(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:K(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:K(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:K(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:K(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:K(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:K(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:K(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:K(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:K(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:K(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:K(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:K(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:K(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:K(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:K(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:K(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:K(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:K(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:K(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:K(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:K(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:K(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:K(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:K(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:K(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:K(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:K(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:K(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:K(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:K(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:K(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:K(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:K(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:K(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:K(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:K(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:K(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:K(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:K(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:K(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:K(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:K(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:K(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:K(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:K(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:K(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:K(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:K(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:K(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:K(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:K(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:K(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:K(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:K(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:K(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:K(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:K(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:K(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:K(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:K(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:K(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:K(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:K(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:K(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:K(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:K(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:K(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:K(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:K(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:K(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:K(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:K(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:K(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:K(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:K(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:K(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:K(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:K(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:K(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:K(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:K(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:K(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:K(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:K(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:K(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:K(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:K(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:K(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:K(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:K(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:K(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:K(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:K(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:K(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:K(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:K(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:K(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:K(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:K(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:K(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:K(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:K(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:K(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:K(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:K(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:K(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:K(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:K(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:K(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:K(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:K(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:K(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:K(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:K(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:K(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:K(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:K(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:K(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:K(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:K(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:K(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:K(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:K(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:K(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:K(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:K(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(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:K(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:K(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:K(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:K(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:K(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:K(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:K(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:K(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:K(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 Cf(t){return t>=80}function D8(t){return t===32||Cf(t)}function RM(t,r){if(t=2?RM(t,IMe):r===1?RM(t,CMe):RM(t,xMe)}function H_e(t,r){return r>=2?RM(t,$re):r===1?RM(t,DMe):RM(t,AMe)}function eR(t){const r=[];return t.forEach((s,l)=>{r[s]=l}),r}function Nd(t){return FVe[t]}function TN(t){return DTe.get(t)}function i7(t){const r=[];let s=0,l=0;for(;s127&&Ff(m)&&(r.push(l),l=s);break}}return r.push(l),r}function xm(t,r,s,l){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(r,s,l):cP(q1(t),r,s,t.text,l)}function cP(t,r,s,l,m){(r<0||r>=t.length)&&(m?r=r<0?0:r>=t.length?t.length-1:r:ce.fail(`Bad line number. Line: ${r}, lineStarts.length: ${t.length} , line map is correct? ${l!==void 0?sf(t,i7(l)):"unknown"}`));const y=t[r]+s;return m?y>t[r+1]?t[r+1]:typeof l=="string"&&y>l.length?l.length:y:(r=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Ff(t){return t===10||t===13||t===8232||t===8233}function NL(t){return t>=48&&t<=57}function LX(t){return NL(t)||t>=65&&t<=70||t>=97&&t<=102}function ATe(t){return t<=1114111}function OX(t){return t>=48&&t<=55}function J_e(t,r){const s=t.charCodeAt(r);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 r===0;default:return s>127}}function ep(t,r,s,l,m){if(ab(r))return r;let y=!1;for(;;){const T=t.charCodeAt(r);switch(T){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,s)return r;y=!!m;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(l)break;if(t.charCodeAt(r+1)===47){for(r+=2;r127&&UD(T)){r++;continue}break}return r}}function k8(t,r){if(ce.assert(r>=0),r===0||Ff(t.charCodeAt(r-1))){const s=t.charCodeAt(r);if(r+Kv=0&&s127&&UD(oe)){V&&Ff(oe)&&(O=!0),s++;continue}break e}}return V&&(te=m(D,I,W,O,y,te)),te}function SN(t,r,s,l){return JD(!1,t,r,!1,s,l)}function Wz(t,r,s,l){return JD(!1,t,r,!0,s,l)}function lP(t,r,s,l,m){return JD(!0,t,r,!1,s,l,m)}function wL(t,r,s,l,m){return JD(!0,t,r,!0,s,l,m)}function H2(t,r,s,l,m,y=[]){return y.push({kind:s,pos:t,end:r,hasTrailingNewLine:l}),y}function CS(t,r){return lP(t,r,H2,void 0,void 0)}function Nx(t,r){return wL(t,r,H2,void 0,void 0)}function tR(t){const r=o7.exec(t);if(r)return r[0]}function nR(t,r){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&Fz(t,r)}function ak(t,r,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&&H_e(t,r)}function rE(t,r,s){let l=$D(t,0);if(!nR(l,r))return!1;for(let m=LM(l);mO,getStartPos:()=>O,getTokenEnd:()=>I,getTextPos:()=>I,getToken:()=>ee,getTokenStart:()=>V,getTokenPos:()=>V,getTokenText:()=>D.substring(V,I),getTokenValue:()=>te,hasUnicodeEscape:()=>(oe&1024)!==0,hasExtendedUnicodeEscape:()=>(oe&8)!==0,hasPrecedingLineBreak:()=>(oe&1)!==0,hasPrecedingJSDocComment:()=>(oe&2)!==0,isIdentifier:()=>ee===80||ee>118,isReservedWord:()=>ee>=83&&ee<=118,isUnterminated:()=>(oe&4)!==0,getCommentDirectives:()=>de,getNumericLiteralFlags:()=>oe&25584,getTokenFlags:()=>oe,reScanGreaterToken:pn,reScanAsteriskEqualsToken:Or,reScanSlashToken:Xr,reScanTemplateToken:gr,reScanTemplateHeadOrNoSubstitutionTemplate:Cr,scanJsxIdentifier:di,scanJsxAttributeValue:Nc,reScanJsxAttributeValue:ha,reScanJsxToken:ei,reScanLessThanToken:Gn,reScanHashToken:Ur,reScanQuestionToken:so,reScanInvalidIdentifier:un,scanJsxToken:ho,scanJsDocToken:Gs,scanJSDocCommentTextToken:ro,scan:cr,getText:Rr,clearCommentDirectives:mc,setText:Ea,setScriptTarget:ta,setLanguageVariant:$a,setOnError:Fi,resetTokenState:jc,setTextPos:jc,setInJSDocType:Xu,tryScan:al,lookAhead:Ku,scanRange:_u};return ce.isDebugging&&Object.defineProperty(Ne,"__debugShowCurrentPositionInText",{get:()=>{const Lo=Ne.getText();return Lo.slice(0,Ne.getTokenFullStart())+"║"+Lo.slice(Ne.getTokenFullStart())}}),Ne;function Be(Lo,To=I,Aa,sl){if(m){const vc=I;I=To,m(Lo,Aa||0,sl),I=vc}}function Ve(){let Lo=I,To=!1,Aa=!1,sl="";for(;;){const vc=D.charCodeAt(I);if(vc===95){oe|=512,To?(To=!1,Aa=!0,sl+=D.substring(Lo,I)):(oe|=16384,Be(Aa?w.Multiple_consecutive_numeric_separators_are_not_permitted:w.Numeric_separators_are_not_allowed_here,I,1)),I++,Lo=I;continue}if(NL(vc)){To=!0,Aa=!1,I++;continue}break}return D.charCodeAt(I-1)===95&&(oe|=16384,Be(w.Numeric_separators_are_not_allowed_here,I-1,1)),sl+D.substring(Lo,I)}function pt(){let Lo=I,To;if(D.charCodeAt(I)===48)if(I++,D.charCodeAt(I)===95)oe|=16896,Be(w.Numeric_separators_are_not_allowed_here,I,1),I--,To=Ve();else if(!ht())oe|=8192,To=""+ +te;else if(!te)To="0";else{te=""+parseInt(te,8),oe|=32;const Jr=ee===41,li=(Jr?"-":"")+"0o"+(+te).toString(8);return Jr&&Lo--,Be(w.Octal_literals_are_not_allowed_Use_the_syntax_0,Lo,I-Lo,li),9}else To=Ve();let Aa,sl;D.charCodeAt(I)===46&&(I++,Aa=Ve());let vc=I;if(D.charCodeAt(I)===69||D.charCodeAt(I)===101){I++,oe|=16,(D.charCodeAt(I)===43||D.charCodeAt(I)===45)&&I++;const Jr=I,li=Ve();li?(sl=D.substring(vc,Jr)+li,vc=I):Be(w.Digit_expected)}let er;if(oe&512?(er=To,Aa&&(er+="."+Aa),sl&&(er+=sl)):er=D.substring(Lo,vc),oe&8192)return Be(w.Decimals_with_leading_zeros_are_not_allowed,Lo,vc-Lo),te=""+ +er,9;if(Aa!==void 0||oe&16)return Le(Lo,Aa===void 0&&!!(oe&16)),te=""+ +er,9;{te=er;const Jr=kn();return Le(Lo),Jr}}function Le(Lo,To){if(!nR($D(D,I),t))return;const Aa=I,{length:sl}=Wt();sl===1&&D[Aa]==="n"?Be(To?w.A_bigint_literal_cannot_use_exponential_notation:w.A_bigint_literal_must_be_an_integer,Lo,Aa-Lo+1):(Be(w.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Aa,sl),I=Aa)}function ht(){const Lo=I;let To=!0;for(;NL(D.charCodeAt(I));)OX(D.charCodeAt(I))||(To=!1),I++;return te=D.substring(Lo,I),To}function ke(Lo,To){const Aa=Dt(Lo,!1,To);return Aa?parseInt(Aa,16):-1}function _t(Lo,To){return Dt(Lo,!0,To)}function Dt(Lo,To,Aa){let sl=[],vc=!1,er=!1;for(;sl.length=65&&Jr<=70)Jr+=32;else if(!(Jr>=48&&Jr<=57||Jr>=97&&Jr<=102))break;sl.push(Jr),I++,er=!1}return sl.length=W){Aa+=D.substring(sl,I),oe|=4,Be(w.Unterminated_string_literal);break}const vc=D.charCodeAt(I);if(vc===To){Aa+=D.substring(sl,I),I++;break}if(vc===92&&!Lo){Aa+=D.substring(sl,I),Aa+=Ye(!0),sl=I;continue}if(Ff(vc)&&!Lo){Aa+=D.substring(sl,I),oe|=4,Be(w.Unterminated_string_literal);break}I++}return Aa}function it(Lo){const To=D.charCodeAt(I)===96;I++;let Aa=I,sl="",vc;for(;;){if(I>=W){sl+=D.substring(Aa,I),oe|=4,Be(w.Unterminated_template_literal),vc=To?15:18;break}const er=D.charCodeAt(I);if(er===96){sl+=D.substring(Aa,I),I++,vc=To?15:18;break}if(er===36&&I+1=W)return Be(w.Unexpected_end_of_text),"";const Aa=D.charCodeAt(I);switch(I++,Aa){case 48:if(I>=W||!NL(D.charCodeAt(I)))return"\0";case 49:case 50:case 51:I=W?(oe|=2048,Lo&&Be(w.Unexpected_end_of_text),D.substring(To,I)):D.charCodeAt(I)!==125?(oe|=2048,Lo&&Be(w.Unterminated_Unicode_escape_sequence),D.substring(To,I)):(I++,oe|=8,LU(vc)):(oe|=2048,Lo&&Be(w.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),D.substring(To,I))}for(;I1114111&&(Be(w.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Aa=!0),I>=W?(Be(w.Unexpected_end_of_text),Aa=!0):D.charCodeAt(I)===125?I++:(Be(w.Unterminated_Unicode_escape_sequence),Aa=!0),Aa?"":LU(To)}function lt(){if(I+5=0&&ak(Aa,t)){I+=3,oe|=8,Lo+=ut(),To=I;continue}if(Aa=lt(),!(Aa>=0&&ak(Aa,t)))break;oe|=1024,Lo+=D.substring(To,I),Lo+=LU(Aa),I+=6,To=I}else break}return Lo+=D.substring(To,I),Lo}function tt(){const Lo=te.length;if(Lo>=2&&Lo<=12){const To=te.charCodeAt(0);if(To>=97&&To<=122){const Aa=EMe.get(te);if(Aa!==void 0)return ee=Aa}}return ee=80}function Mn(Lo){let To="",Aa=!1,sl=!1;for(;;){const vc=D.charCodeAt(I);if(vc===95){oe|=512,Aa?(Aa=!1,sl=!0):Be(sl?w.Multiple_consecutive_numeric_separators_are_not_permitted:w.Numeric_separators_are_not_allowed_here,I,1),I++;continue}if(Aa=!0,!NL(vc)||vc-48>=Lo)break;To+=D[I],I++,sl=!1}return D.charCodeAt(I-1)===95&&Be(w.Numeric_separators_are_not_allowed_here,I-1,1),To}function kn(){return D.charCodeAt(I)===110?(te+="n",oe&384&&(te=l3(te)+"n"),I++,10):(te=""+(oe&128?parseInt(te.slice(2),2):oe&256?parseInt(te.slice(2),8):+te),9)}function cr(){O=I,oe=0;let Lo=!1;for(;;){if(V=I,I>=W)return ee=1;const To=$D(D,I);if(I===0){if(To===65533)return Be(w.File_appears_to_be_binary),I=W,ee=8;if(To===35&&$_e(D,I)){if(I=CTe(D,I),r)continue;return ee=6}}switch(To){case 10:case 13:if(oe|=1,r){I++;continue}else return To===13&&I+1=0&&nR(Aa,t))return I+=3,oe|=8,te=ut()+Wt(),ee=tt();const sl=lt();return sl>=0&&nR(sl,t)?(I+=6,oe|=1024,te=String.fromCharCode(sl)+Wt(),ee=tt()):(Be(w.Invalid_character),I++,ee=0);case 35:if(I!==0&&D[I+1]==="!")return Be(w.can_only_be_used_at_the_start_of_a_file),I++,ee=0;const vc=$D(D,I+1);if(vc===92){I++;const li=zt();if(li>=0&&nR(li,t))return I+=3,oe|=8,te="#"+ut()+Wt(),ee=81;const Ir=lt();if(Ir>=0&&nR(Ir,t))return I+=6,oe|=1024,te="#"+String.fromCharCode(Ir)+Wt(),ee=81;I--}return nR(vc,t)?(I++,on(vc,t)):(te="#",Be(w.Invalid_character,I++,LM(To))),ee=81;default:const er=on(To,t);if(er)return ee=er;if(HD(To)){I+=LM(To);continue}else if(Ff(To)){oe|=1,I+=LM(To);continue}const Jr=LM(To);return Be(w.Invalid_character,I,Jr),I+=Jr,ee=0}}}function un(){ce.assert(ee===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),I=V=O,oe=0;const Lo=$D(D,I),To=on(Lo,99);return To?ee=To:(I+=LM(Lo),ee)}function on(Lo,To){let Aa=Lo;if(nR(Aa,To)){for(I+=LM(Aa);I=W)return ee=1;let To=D.charCodeAt(I);if(To===60)return D.charCodeAt(I+1)===47?(I+=2,ee=31):(I++,ee=30);if(To===123)return I++,ee=19;let Aa=0;for(;I0)break;UD(To)||(Aa=I)}I++}return te=D.substring(O,I),Aa===-1?13:12}function di(){if(Cf(ee)){for(;I=W)return ee=1;for(let To=D.charCodeAt(I);I=0&&HD(D.charCodeAt(I-1))&&!(I+1=W)return ee=1;const Lo=$D(D,I);switch(I+=LM(Lo),Lo){case 9:case 11:case 12:case 32:for(;I=0&&nR(To,t))return I+=3,oe|=8,te=ut()+Wt(),ee=tt();const Aa=lt();return Aa>=0&&nR(Aa,t)?(I+=6,oe|=1024,te=String.fromCharCode(Aa)+Wt(),ee=tt()):(I++,ee=0)}if(nR(Lo,t)){let To=Lo;for(;I=0),I=Lo,O=Lo,V=Lo,ee=0,te=void 0,oe=0}function Xu(Lo){ue+=Lo?1:-1}}function LM(t){return t>=65536?2:1}function OVe(t){if(ce.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const r=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(r,s)}function LU(t){return Xy(t)}var Jre,EMe,DTe,xMe,AMe,CMe,DMe,IMe,$re,q_e,kMe,FVe,Kv,o7,$D,Xy,PMe=G({"src/compiler/scanner.ts"(){Ad(),Jre={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},EMe=new Map(Object.entries(Jre)),DTe=new Map(Object.entries({...Jre,"{":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})),xMe=[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],AMe=[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],CMe=[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],DMe=[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],IMe=[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],$re=[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],q_e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,kMe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,FVe=eR(DTe),Kv=7,o7=/^#!.*/,$D=String.prototype.codePointAt?(t,r)=>t.codePointAt(r):function(r,s){const l=r.length;if(s<0||s>=l)return;const m=r.charCodeAt(s);if(m>=55296&&m<=56319&&l>s+1){const y=r.charCodeAt(s+1);if(y>=56320&&y<=57343)return(m-55296)*1024+y-56320+65536}return m},Xy=String.fromCodePoint?t=>String.fromCodePoint(t):OVe}});function tb(t){return U2(t)||mm(t)}function P8(t){return OD(t,o3)}function qre(t){switch(iu(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 K1(t){return t.start+t.length}function ITe(t){return t.length===0}function kTe(t,r){return r>=t.start&&r=t.pos&&r<=t.end}function FX(t,r){return r.start>=t.start&&K1(r)<=K1(t)}function NMe(t,r){return PTe(t,r)!==void 0}function PTe(t,r){const s=WX(t,r);return s&&s.length===0?void 0:s}function p1(t,r){return o9(t.start,t.length,r.start,r.length)}function Yy(t,r,s){return o9(t.start,t.length,r,s)}function o9(t,r,s,l){const m=t+r,y=s+l;return s<=m&&y>=t}function NTe(t,r){return r<=K1(t)&&r>=t.start}function WX(t,r){const s=Math.max(t.start,r.start),l=Math.min(K1(t),K1(r));return s<=l?R0(s,l):void 0}function nb(t,r){if(t<0)throw new Error("start < 0");if(r<0)throw new Error("length < 0");return{start:t,length:r}}function R0(t,r){return nb(t,r-t)}function DT(t){return nb(t.span.start,t.newLength)}function wTe(t){return ITe(t.span)&&t.newLength===0}function BX(t,r){if(r<0)throw new Error("newLength < 0");return{span:t,newLength:r}}function OU(t){if(t.length===0)return BMe;if(t.length===1)return t[0];const r=t[0];let s=r.span.start,l=K1(r.span),m=s+r.newLength;for(let y=1;y=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function lf(t){const r=t;return r.length>=3&&r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===95?r.substr(1):r}function ec(t){return lf(t.escapedText)}function RL(t){const r=TN(t.escapedText);return r?to(r,sE):void 0}function mp(t){return t.valueDeclaration&&Mf(t.valueDeclaration)?ec(t.valueDeclaration.name):lf(t.escapedName)}function Kre(t){const r=t.parent.parent;if(r){if(dl(r))return i_(r);switch(r.kind){case 243:if(r.declarationList&&r.declarationList.declarations[0])return i_(r.declarationList.declarations[0]);break;case 244:let s=r.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const l=s.argumentExpression;if(An(l))return l}break;case 217:return i_(r.expression);case 256:{if(dl(r.statement)||Nr(r.statement))return i_(r.statement);break}}}}function i_(t){const r=o_(t);return r&&An(r)?r:void 0}function FU(t,r){return!!(Xv(t)&&An(t.name)&&ec(t.name)===ec(r)||Dh(t)&>(t.declarationList.declarations,s=>FU(s,r)))}function OM(t){return t.name||Kre(t)}function Xv(t){return!!t.name}function X_e(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(Qy(s)){case 1:case 4:case 5:case 3:return C7(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return OM(t);case 347:return Kre(t);case 277:{const{expression:s}=t;return An(s)?s:void 0}case 212:const r=t;if(_Y(r))return r.argumentExpression}return t.name}function o_(t){if(t!==void 0)return X_e(t)||(Dm(t)||ph(t)||B0(t)?Y_e(t):void 0)}function Y_e(t){if(t.parent){if(Fm(t.parent)||ym(t.parent))return t.parent.name;if(ys(t.parent)&&t===t.parent.right){if(An(t.parent.left))return t.parent.left;if(Kf(t.parent.left))return C7(t.parent.left)}else if(ff(t.parent)&&An(t.parent.name))return t.parent.name}else return}function ML(t){if(Fx(t))return gi(t.modifiers,Qf)}function N8(t){if(il(t,126975))return gi(t.modifiers,bd)}function MTe(t,r){if(t.name)if(An(t.name)){const s=t.name.escapedText;return jX(t.parent,r).filter(l=>AA(l)&&An(l.name)&&l.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);ce.assert(s>-1,"Parameters should always be in their parents' parameter list");const l=jX(t.parent,r).filter(AA);if(sjx(l)&&l.typeParameters.some(m=>m.name.escapedText===s))}function Q_e(t){return OTe(t,!1)}function RMe(t){return OTe(t,!0)}function FTe(t){return!!Hb(t,AA)}function MMe(t){return Hb(t,iF)}function WTe(t){return a9(t,FG)}function BTe(t){return Hb(t,uC)}function LMe(t){return Hb(t,b6)}function OMe(t){return Hb(t,b6,!0)}function FMe(t){return Hb(t,xW)}function zTe(t){return Hb(t,xW,!0)}function GTe(t){return Hb(t,CEe)}function jTe(t){return Hb(t,CEe,!0)}function VTe(t){return Hb(t,_pe)}function Xre(t){return Hb(t,_pe,!0)}function UTe(t){return Hb(t,UY,!0)}function HTe(t){return Hb(t,Woe)}function Z_e(t){return Hb(t,Woe,!0)}function FM(t){return Hb(t,BJ)}function iR(t){return Hb(t,dpe)}function GX(t){return Hb(t,aF)}function Yre(t){return Hb(t,jx)}function WM(t){return Hb(t,CA)}function w8(t){const r=Hb(t,HY);if(r&&r.typeExpression&&r.typeExpression.type)return r}function X1(t){let r=Hb(t,HY);return!r&&Pu(t)&&(r=lr(zz(t),s=>!!s.typeExpression)),r&&r.typeExpression&&r.typeExpression.type}function WU(t){const r=GX(t);if(r&&r.typeExpression)return r.typeExpression.type;const s=w8(t);if(s&&s.typeExpression){const l=s.typeExpression.type;if(e0(l)){const m=lr(l.members,Lh);return m&&m.type}if(Z2(l)||LG(l))return l.type}}function jX(t,r){var s;if(!YM(t))return Zn;let l=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(l===void 0||r){const m=k7(t,r);ce.assert(m.length<2||m[0]!==m[1]),l=ea(m,y=>Gx(y)?y.tags:y),r||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=l)}return l}function EN(t){return jX(t,!1)}function Mat(t){return jX(t,!0)}function Hb(t,r,s){return lr(jX(t,s),r)}function a9(t,r){return EN(t).filter(r)}function xN(t,r){return EN(t).filter(s=>s.kind===r)}function Gz(t){return typeof t=="string"?t:t==null?void 0:t.map(r=>r.kind===328?r.text:ede(r)).join("")}function ede(t){const r=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?oE(t.name):"",l=t.name&&t.text.startsWith("://")?"":" ";return`{@${r} ${s}${l}${t.text}}`}function oR(t){if(Ak(t)){if(OG(t.parent)){const r=pH(t.parent);if(r&&Nt(r.tags))return ea(r.tags,s=>jx(s)?s.typeParameters:void 0)}return Zn}if(T2(t))return ce.assert(t.parent.kind===327),ea(t.parent.tags,r=>jx(r)?r.typeParameters:void 0);if(t.typeParameters||joe(t)&&t.typeParameters)return t.typeParameters;if(Rs(t)){const r=Wie(t);if(r.length)return r;const s=X1(t);if(s&&Z2(s)&&s.typeParameters)return s.typeParameters}return Zn}function AN(t){return t.constraint?t.constraint:jx(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function uy(t){return t.kind===80||t.kind===81}function s9(t){return t.kind===178||t.kind===177}function BU(t){return sa(t)&&!!(t.flags&64)}function jz(t){return Ed(t)&&!!(t.flags&64)}function R8(t){return el(t)&&!!(t.flags&64)}function ky(t){const r=t.kind;return!!(t.flags&64)&&(r===211||r===212||r===213||r===235)}function h2(t){return ky(t)&&!cC(t)&&!!t.questionDotToken}function zU(t){return h2(t.parent)&&t.parent.expression===t}function M8(t){return!ky(t.parent)||h2(t.parent)||t!==t.parent.expression}function Qre(t){return t.kind===226&&t.operatorToken.kind===61}function CN(t){return x2(t)&&An(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function pA(t){return rv(t,8)}function Vz(t){return cC(t)&&!!(t.flags&64)}function VX(t){return t.kind===252||t.kind===251}function GU(t){return t.kind===280||t.kind===279}function tde(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function a7(t){return tde(t)||t.kind===307||t.kind===311}function BM(t){return t.kind===355||t.kind===348}function UX(t){return aR(t.kind)}function aR(t){return t>=166}function Zre(t){return t>=0&&t<=165}function VC(t){return Zre(t.kind)}function L8(t){return ef(t,"pos")&&ef(t,"end")}function c9(t){return 9<=t&&t<=15}function fP(t){return c9(t.kind)}function HX(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function zM(t){return 15<=t&&t<=18}function O8(t){return zM(t.kind)}function JX(t){const r=t.kind;return r===17||r===18}function l9(t){return oS(t)||Oy(t)}function $g(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 s7(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 sR(t){return $g(t)||s7(t)}function IT(t){return Wp(t)||An(t)}function u9(t){return t.kind===11||zM(t.kind)}function Om(t){var r;return An(t)&&((r=t.emitNode)==null?void 0:r.autoGenerate)!==void 0}function cR(t){var r;return Gu(t)&&((r=t.emitNode)==null?void 0:r.autoGenerate)!==void 0}function jU(t){const r=t.emitNode.autoGenerate.flags;return!!(r&32)&&!!(r&16)&&!!(r&8)}function Mf(t){return(Os(t)||c7(t))&&Gu(t.name)}function kT(t){return sa(t)&&Gu(t.name)}function qg(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 lR(t){return!!(U9(t)&16476)}function F_(t){return lR(t)||t===126||t===164||t===129}function bd(t){return qg(t.kind)}function Vd(t){const r=t.kind;return r===166||r===80}function fy(t){const r=t.kind;return r===80||r===81||r===11||r===9||r===167}function f9(t){const r=t.kind;return r===80||r===206||r===207}function S_(t){return!!t&&xb(t.kind)}function _9(t){return!!t&&(xb(t.kind)||nu(t))}function J_(t){return t&&GM(t.kind)}function Fl(t){return t.kind===112||t.kind===97}function GM(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xb(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return GM(t)}}function nde(t){return tl(t)||z0(t)||E_(t)&&S_(t.parent)}function Mv(t){const r=t.kind;return r===176||r===172||r===174||r===177||r===178||r===181||r===175||r===240}function Jl(t){return t&&(t.kind===263||t.kind===231)}function Am(t){return t&&(t.kind===177||t.kind===178)}function rb(t){return Os(t)&&_k(t)}function c7(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function DN(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function pc(t){return bd(t)||Qf(t)}function l7(t){const r=t.kind;return r===180||r===179||r===171||r===173||r===181||r===177||r===178}function $_(t){return l7(t)||Mv(t)}function KD(t){const r=t.kind;return r===303||r===304||r===305||r===174||r===177||r===178}function Uu(t){return Xie(t.kind)}function $X(t){switch(t.kind){case 184:case 185:return!0}return!1}function ld(t){if(t){const r=t.kind;return r===207||r===206}return!1}function u7(t){const r=t.kind;return r===209||r===210}function qX(t){const r=t.kind;return r===208||r===232}function d9(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function rde(t){return ff(t)||Pu(t)||KX(t)||uR(t)}function p9(t){return ide(t)||eie(t)}function ide(t){switch(t.kind){case 206:case 210:return!0}return!1}function KX(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function eie(t){switch(t.kind){case 207:case 209:return!0}return!1}function uR(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return wy(t,!0)}function sk(t){const r=t.kind;return r===211||r===166||r===205}function Uz(t){const r=t.kind;return r===211||r===166}function ib(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function IN(t){return t.kind===213||t.kind===214}function m9(t){const r=t.kind;return r===228||r===15}function FE(t){return JTe(pA(t).kind)}function JTe(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 ode(t){return kr(pA(t).kind)}function kr(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return JTe(t)}}function WVe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function f7(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return fP(t)}}function Nr(t){return LL(pA(t).kind)}function LL(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 kr(t)}}function _7(t){const r=t.kind;return r===216||r===234}function WMe(t){return py(t)||E3(t)}function kN(t,r){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return r&&kN(t.statement,r)}return!1}function XX(t){return Ly(t)||mh(t)}function Hz(t){return gt(t,XX)}function VU(t){return!z8(t)&&!Ly(t)&&!il(t,1)&&!Ov(t)}function UU(t){return z8(t)||Ly(t)||il(t,1)}function DS(t){return t.kind===249||t.kind===250}function tie(t){return E_(t)||Nr(t)}function $Te(t){return E_(t)}function mA(t){return My(t)||Nr(t)}function ade(t){const r=t.kind;return r===268||r===267||r===80}function nie(t){const r=t.kind;return r===268||r===267}function ck(t){const r=t.kind;return r===80||r===267}function XD(t){const r=t.kind;return r===275||r===274}function sde(t){return t.kind===267||t.kind===266}function YD(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 lk(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 PT(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 cde(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 HU(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 dl(t){return t.kind===168?t.parent&&t.parent.kind!==352||Rs(t):PT(t.kind)}function BVe(t){return cde(t.kind)}function YX(t){return HU(t.kind)}function uf(t){const r=t.kind;return HU(r)||cde(r)||QX(t)}function QX(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!JM(t)}function ZX(t){const r=t.kind;return HU(r)||cde(r)||r===241}function rie(t){const r=t.kind;return r===283||r===166||r===80}function JU(t){const r=t.kind;return r===110||r===80||r===211||r===295}function m1(t){const r=t.kind;return r===284||r===294||r===285||r===12||r===288}function $U(t){const r=t.kind;return r===291||r===293}function Jz(t){const r=t.kind;return r===11||r===294}function Y1(t){const r=t.kind;return r===286||r===285}function d7(t){const r=t.kind;return r===296||r===297}function UC(t){return t.kind>=316&&t.kind<=357}function PN(t){return t.kind===327||t.kind===326||t.kind===328||OL(t)||NT(t)||EW(t)||Ak(t)}function NT(t){return t.kind>=334&&t.kind<=357}function _P(t){return t.kind===178}function J2(t){return t.kind===177}function g1(t){if(!YM(t))return!1;const{jsDoc:r}=t;return!!r&&r.length>0}function eY(t){return!!t.type}function NN(t){return!!t.initializer}function p7(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Cm(t){return t.kind===291||t.kind===293||KD(t)}function F8(t){return t.kind===183||t.kind===233}function lde(t){let r=ude;for(const s of t){if(!s.length)continue;let l=0;for(;ls.kind===r)}function Td(t){const r=new Map;if(t)for(const s of t)r.set(s.escapedName,s);return r}function uk(t){return(t.flags&33554432)!==0}function zMe(){var t="";const r=s=>t+=s;return{getText:()=>t,write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(s,l)=>r(s),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&UD(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:ku,decreaseIndent:ku,clear:()=>t=""}}function g9(t,r){return t.configFilePath!==r.configFilePath||qTe(t,r)}function qTe(t,r){return gA(t,r,lQ)}function Jb(t,r){return gA(t,r,nae)}function gA(t,r,s){return t!==r&&s.some(l=>!xY(jH(t,l),jH(r,l)))}function oie(t,r){for(;;){const s=r(t);if(s==="quit")return;if(s!==void 0)return s;if(tl(t))return;t=t.parent}}function wT(t,r){const s=t.entries();for(const[l,m]of s){const y=r(m,l);if(y)return y}}function FL(t,r){const s=t.keys();for(const l of s){const m=r(l);if(m)return m}}function tY(t,r){t.forEach((s,l)=>{r.set(l,s)})}function qU(t){const r=j7.getText();try{return t(j7),j7.getText()}finally{j7.clear(),j7.writeKeyword(r)}}function KU(t){return t.end-t.pos}function XU(t,r,s){var l,m;return(m=(l=t==null?void 0:t.resolvedModules)==null?void 0:l.get(r,s))==null?void 0:m.resolvedModule}function aie(t,r,s,l){t.resolvedModules||(t.resolvedModules=N3()),t.resolvedModules.set(r,l,s)}function jM(t,r,s,l){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=N3()),t.resolvedTypeReferenceDirectiveNames.set(r,l,s)}function GMe(t,r,s){var l,m;return(m=(l=t==null?void 0:t.resolvedTypeReferenceDirectiveNames)==null?void 0:l.get(r,s))==null?void 0:m.resolvedTypeReferenceDirective}function sie(t,r){return t.path===r.path&&!t.prepend==!r.prepend&&!t.circular==!r.circular}function $z(t,r){return t===r||t.resolvedModule===r.resolvedModule||!!t.resolvedModule&&!!r.resolvedModule&&t.resolvedModule.isExternalLibraryImport===r.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===r.resolvedModule.extension&&t.resolvedModule.resolvedFileName===r.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===r.resolvedModule.originalPath&&ts(t.resolvedModule.packageId,r.resolvedModule.packageId)&&t.node10Result===r.node10Result}function jMe(t,r,s,l,m){var y,T;const D=(T=(y=t.resolvedModules)==null?void 0:y.get(s,l))==null?void 0:T.node10Result,I=D?Es(void 0,w.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,D,D.indexOf(ix+"@types/")>-1?`@types/${CQ(m)}`:m):r.typesPackageExists(m)?Es(void 0,w.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,m,CQ(m)):r.packageBundlesTypes(m)?Es(void 0,w.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,m,s):Es(void 0,w.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,CQ(m));return I&&(I.repopulateInfo=()=>({moduleReference:s,mode:l,packageName:m===s?void 0:m})),I}function ts(t,r){return t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version}function YU({name:t,subModuleName:r}){return r?`${t}/${r}`:t}function pP(t){return`${YU(t)}@${t.version}`}function KTe(t,r){return t===r||t.resolvedTypeReferenceDirective===r.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!r.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===r.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!r.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===r.resolvedTypeReferenceDirective.originalPath}function fR(t,r,s,l,m,y){ce.assert(t.length===s.length);for(let T=0;T=0),q1(r)[t]}function GVe(t){const r=ns(t),s=Ah(r,t.pos);return`${r.fileName}(${s.line+1},${s.character+1})`}function lie(t,r){ce.assert(t>=0);const s=q1(r),l=t,m=r.text;if(l+1===s.length)return m.length-1;{const y=s[l];let T=s[l+1]-1;for(ce.assert(Ff(m.charCodeAt(T)));y<=T&&Ff(m.charCodeAt(T));)T--;return T}}function fde(t,r,s){return!(s&&s(r))&&!t.identifiers.has(r)}function Um(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function wx(t){return!Um(t)}function VMe(t,r){return Hh(t)?r===t.expression:nu(t)?r===t.modifiers:Np(t)?r===t.initializer:Os(t)?r===t.questionToken&&rb(t):Fm(t)?r===t.modifiers||r===t.questionToken||r===t.exclamationToken||_R(t.modifiers,r,pc):BT(t)?r===t.equalsToken||r===t.modifiers||r===t.questionToken||r===t.exclamationToken||_R(t.modifiers,r,pc):em(t)?r===t.exclamationToken:pg(t)?r===t.typeParameters||r===t.type||_R(t.typeParameters,r,Hh):tm(t)?r===t.typeParameters||_R(t.typeParameters,r,Hh):Ep(t)?r===t.typeParameters||r===t.type||_R(t.typeParameters,r,Hh):dy(t)?r===t.modifiers||_R(t.modifiers,r,pc):!1}function _R(t,r,s){return!t||ls(r)||!s(r)?!1:ni(t,r)}function _de(t,r,s){if(r===void 0||r.length===0)return t;let l=0;for(;l[`${Ah(t,T.range.end).line}`,T])),l=new Map;return{getUnusedExpectations:m,markUsed:y};function m(){return oc(s.entries()).filter(([T,D])=>D.type===0&&!l.get(T)).map(([T,D])=>D)}function y(T){return s.has(`${T}`)?(l.set(`${T}`,!0),!0):!1}}function Kz(t,r,s){return Um(t)?t.pos:UC(t)||t.kind===12?ep((r||ns(t)).text,t.pos,!1,!0):s&&g1(t)?Kz(t.jsDoc[0],r):t.kind===358&&t._children.length>0?Kz(t._children[0],r,s):ep((r||ns(t)).text,t.pos,!1,!1,D9(t))}function y9(t,r){const s=!Um(t)&&nx(t)?ra(t.modifiers,Qf):void 0;return s?ep((r||ns(t)).text,s.end):Kz(t,r)}function wd(t,r,s=!1){return die(t.text,r,s)}function HC(t){return!!Kr(t,pI)}function _ie(t){return!!(mh(t)&&t.exportClause&&AP(t.exportClause)&&t.exportClause.name.escapedText==="default")}function die(t,r,s=!1){if(Um(r))return"";let l=t.substring(s?r.pos:ep(t,r.pos),r.end);return HC(r)&&(l=l.split(/\r\n|\n|\r/).map(m=>Zw(m.replace(/^\s*\*/,""))).join(` +`)),l}function Yv(t,r=!1){return wd(ns(t),t,r)}function UMe(t){return t.pos}function v9(t,r){return ZS(t,r,UMe,pf)}function Tp(t){const r=t.emitNode;return r&&r.flags||0}function dh(t){const r=t.emitNode;return r&&r.internalFlags||0}function rY(){return 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:Zn})),AsyncIterator:new Map(Object.entries({es2015:Zn})),Atomics:new Map(Object.entries({es2017:Zn})),SharedArrayBuffer:new Map(Object.entries({es2017:Zn})),AsyncIterable:new Map(Object.entries({es2018:Zn})),AsyncIterableIterator:new Map(Object.entries({es2018:Zn})),AsyncGenerator:new Map(Object.entries({es2018:Zn})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Zn})),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:Zn,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:Zn})),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:Zn,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Zn,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function dde(t,r,s){if(r&&HMe(t,s))return wd(r,t);switch(t.kind){case 11:{const l=s&2?bY:s&1||Tp(t)&16777216?M7:S2;return t.singleQuote?"'"+l(t.text,39)+"'":'"'+l(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const l=s&1||Tp(t)&16777216?M7:S2,m=t.rawText??Q8(l(t.text,96));switch(t.kind){case 15:return"`"+m+"`";case 16:return"`"+m+"${";case 17:return"}"+m+"${";case 18:return"}"+m+"`"}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 ce.fail(`Literal kind '${t.kind}' not accounted for.`)}function HMe(t,r){if(rh(t)||!t.parent||r&4&&t.isUnterminated)return!1;if(nS(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(r&8)}return!NG(t)}function ZU(t){return As(t)?'"'+S2(t)+'"':""+t}function jVe(t){return Iy(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function pde(t){return(qD(t)&7)!==0||JC(t)}function JC(t){const r=rI(t);return r.kind===260&&r.parent.kind===299}function Ov(t){return xp(t)&&(t.name.kind===11||$C(t))}function iY(t){return xp(t)&&t.name.kind===11}function pie(t){return xp(t)&&Wp(t.name)}function VVe(t){return xp(t)||An(t)}function VM(t){return QTe(t.valueDeclaration)}function QTe(t){return!!t&&t.kind===267&&!t.body}function mde(t){return t.kind===312||t.kind===267||_9(t)}function $C(t){return!!(t.flags&2048)}function WL(t){return Ov(t)&&mie(t)}function mie(t){switch(t.parent.kind){case 312:return Wv(t.parent);case 268:return Ov(t.parent.parent)&&tl(t.parent.parent.parent)&&!Wv(t.parent.parent.parent)}return!1}function W8(t){var r;return(r=t.declarations)==null?void 0:r.find(s=>!WL(s)&&!(xp(s)&&$C(s)))}function JMe(t){return t===1||t===100||t===199}function B8(t,r){return Wv(t)||JMe(Zp(r))&&!!t.commonJsModuleIndicator}function gde(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:hv(r,"alwaysStrict")||vpe(t.statements)?!0:Wv(t)||F0(r)?Zp(r)>=5?!0:!r.noImplicitUseStrict:!1}function eH(t){return!!(t.flags&33554432)||il(t,2)}function gie(t,r){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!_9(r)}return!1}function QD(t){switch(ce.type(t),t.kind){case 345:case 353:case 330:return!0;default:return hde(t)}}function hde(t){switch(ce.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 hm(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function ZTe(t){return hm(t)||pR(t)}function Xz(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 tH(t){return z8(t)||xp(t)||Wx(t)||WE(t)}function z8(t){return hm(t)||mh(t)}function iE(t){return Kr(t.parent,r=>!!(RLe(r)&1))}function Bs(t){return Kr(t.parent,r=>gie(r,r.parent))}function Yz(t,r){let s=Bs(t);for(;s;)r(s),s=Bs(s)}function Ud(t){return!t||KU(t)===0?"(Missing)":Yv(t)}function wN(t){return t.declaration?Ud(t.declaration.parameters[0].name):void 0}function b9(t){return t.kind===167&&!Qv(t.expression)}function nH(t){var r;switch(t.kind){case 80:case 81:return(r=t.emitNode)!=null&&r.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return ty(t.text);case 167:return Qv(t.expression)?ty(t.expression.text):void 0;case 295:return bR(t);default:return ce.assertNever(t)}}function g7(t){return ce.checkDefined(nH(t))}function oE(t){switch(t.kind){case 110:return"this";case 81:case 80:return KU(t)===0?ec(t):Yv(t);case 166:return oE(t.left)+"."+oE(t.right);case 211:return An(t.name)||Gu(t.name)?oE(t.expression)+"."+oE(t.name):ce.assertNever(t.name);case 318:return oE(t.left)+oE(t.right);case 295:return oE(t.namespace)+":"+oE(t.name);default:return ce.assertNever(t)}}function kc(t,r,...s){const l=ns(t);return M0(l,t,r,...s)}function Qz(t,r,s,...l){const m=ep(t.text,r.pos);return Pp(t,m,r.end-m,s,...l)}function M0(t,r,s,...l){const m=UM(t,r);return Pp(t,m.start,m.length,s,...l)}function RN(t,r,s,l){const m=UM(t,r);return aE(t,m.start,m.length,s,l)}function yde(t,r,s,l){const m=ep(t.text,r.pos);return aE(t,m,r.end-m,s,l)}function BL(t,r,s){ce.assertGreaterThanOrEqual(r,0),ce.assertGreaterThanOrEqual(s,0),t&&(ce.assertLessThanOrEqual(r,t.text.length),ce.assertLessThanOrEqual(r+s,t.text.length))}function aE(t,r,s,l,m){return BL(t,r,s),{file:t,start:r,length:s,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:m}}function Rx(t,r,s){return{file:t,start:0,length:0,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:s}}function G8(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function oY(t,r,s){return{file:t,start:r.pos,length:r.end-r.pos,code:s.code,category:s.category,messageText:s.message}}function nC(t,r){const s=MM(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);s.scan();const l=s.getTokenStart();return R0(l,s.getTokenEnd())}function aY(t,r){const s=MM(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);return s.scan(),s.getToken()}function rH(t,r){const s=ep(t.text,r.pos);if(r.body&&r.body.kind===241){const{line:l}=Ah(t,r.body.pos),{line:m}=Ah(t,r.body.end);if(l0?r.statements[0].pos:r.end;return R0(y,T)}case 253:case 229:{const y=ep(t.text,r.pos);return nC(t,y)}case 238:{const y=ep(t.text,r.expression.end);return nC(t,y)}case 357:{const y=ep(t.text,r.tagName.pos);return nC(t,y)}}if(s===void 0)return nC(t,r.pos);ce.assert(!Gx(s));const l=Um(s),m=l||S1(r)?s.pos:ep(t.text,s.pos);return l?(ce.assert(m===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ce.assert(m===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(ce.assert(m>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ce.assert(m<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),R0(m,s.end)}function h1(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function Py(t){return t.scriptKind===6}function gP(t){return!!(Gg(t)&2048)}function MN(t){return!!(Gg(t)&64&&!Eb(t,t.parent))}function $2(t){return(qD(t)&7)===6}function T9(t){return(qD(t)&7)===4}function h7(t){return(qD(t)&7)===2}function eSe(t){return(qD(t)&7)===1}function y7(t){return t.kind===213&&t.expression.kind===108}function WE(t){return t.kind===213&&t.expression.kind===102}function S9(t){return eF(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function BE(t){return Wx(t)&&_I(t.argument)&&Wp(t.argument.literal)}function qC(t){return t.kind===244&&t.expression.kind===11}function dR(t){return!!(Tp(t)&2097152)}function hie(t){return dR(t)&&b0(t)}function tSe(t){return An(t.name)&&!t.initializer}function yie(t){return dR(t)&&Dh(t)&&jr(t.declarationList.declarations,tSe)}function E9(t,r){return t.kind!==12?CS(r.text,t.pos):void 0}function vde(t,r){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?Hi(Nx(r,t.pos),CS(r,t.pos)):CS(r,t.pos);return gi(s,l=>r.charCodeAt(l.pos+1)===42&&r.charCodeAt(l.pos+2)===42&&r.charCodeAt(l.pos+3)!==47)}function rC(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 rT(t.parent)&&!PS(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),ce.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:r}=t;if(r.kind===186)return!1;if(r.kind===205)return!r.isTypeOf;if(182<=r.kind&&r.kind<=205)return!0;switch(r.kind){case 233:return rT(r.parent)&&!PS(r);case 168:return t===r.constraint;case 352:return t===r.constraint;case 172:case 171:case 169:case 260:return t===r.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===r.type;case 179:case 180:case 181:return t===r.type;case 216:return t===r.type;case 213:case 214:case 215:return ni(r.typeArguments,t)}}}return!1}function $Me(t,r){for(;t;){if(t.kind===r)return!0;t=t.parent}return!1}function HM(t,r){return s(t);function s(l){switch(l.kind){case 253:return r(l);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 B_(l,s)}}}function nSe(t,r){return s(t);function s(l){switch(l.kind){case 229:r(l);const m=l.expression;m&&s(m);return;case 266:case 264:case 267:case 265:return;default:if(S_(l)){if(l.name&&l.name.kind===167){s(l.name.expression);return}}else rC(l)||B_(l,s)}}}function bde(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Vb(t.typeArguments):void 0}function Tde(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function hP(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 iC(t){return hP(t)||Am(t)}function x9(t){return t.parent.kind===261&&t.parent.parent.kind===243}function rSe(t){return Rs(t)?Wd(t.parent)&&ys(t.parent.parent)&&Qy(t.parent.parent)===2||Sde(t.parent):!1}function Sde(t){return Rs(t)?ys(t)&&Qy(t)===1:!1}function Zz(t){return(ff(t)?h7(t)&&An(t.name)&&x9(t):Os(t)?Cb(t)&&Ny(t):Np(t)&&Cb(t))||Sde(t)}function iSe(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function eG(t,r){for(;;){if(r&&r(t),t.statement.kind!==256)return t.statement;t=t.statement}}function JM(t){return t&&t.kind===241&&S_(t.parent)}function q2(t){return t&&t.kind===174&&t.parent.kind===210}function zE(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function oSe(t){return t&&t.kind===1}function $b(t){return t&&t.kind===0}function tG(t,r,s,l){return Ot(t==null?void 0:t.properties,m=>{if(!Fm(m))return;const y=nH(m.name);return r===y||l&&l===y?s(m):void 0})}function vie(t,r,s){return tG(t,r,l=>Ch(l.initializer)?lr(l.initializer.elements,m=>Wp(m)&&m.text===s):void 0)}function A9(t){if(t&&t.statements.length){const r=t.statements[0].expression;return to(r,Wd)}}function RT(t,r,s){return sY(t,r,l=>Ch(l.initializer)?lr(l.initializer.elements,m=>Wp(m)&&m.text===s):void 0)}function sY(t,r,s){return tG(A9(t),r,s)}function GE(t){return Kr(t.parent,S_)}function aSe(t){return Kr(t.parent,J_)}function h0(t){return Kr(t.parent,Jl)}function v7(t){return Kr(t.parent,r=>Jl(r)||S_(r)?"quit":nu(r))}function Ede(t){return Kr(t.parent,_9)}function MT(t){const r=Kr(t.parent,s=>Jl(s)?"quit":Qf(s));return r&&Jl(r.parent)?h0(r.parent):h0(r??t)}function Q1(t,r,s){for(ce.assert(t.kind!==312);;){if(t=t.parent,!t)return ce.fail();switch(t.kind){case 167:if(s&&Jl(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&Mv(t.parent.parent)?t=t.parent.parent:Mv(t.parent)&&(t=t.parent);break;case 219:if(!r)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 bie(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 Tie(t){An(t)&&(Kc(t.parent)||b0(t.parent))&&t.parent.name===t&&(t=t.parent);const r=Q1(t,!0,!1);return tl(r)}function cY(t){const r=Q1(t,!1,!1);if(r)switch(r.kind){case 176:case 262:case 218:return r}}function nG(t,r){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!r)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&&Mv(t.parent.parent)?t=t.parent.parent:Mv(t.parent)&&(t=t.parent);break}}}function zL(t){if(t.kind===218||t.kind===219){let r=t,s=t.parent;for(;s.kind===217;)r=s,s=s.parent;if(s.kind===213&&s.expression===r)return s}}function lY(t){return t.kind===108||Z1(t)}function Z1(t){const r=t.kind;return(r===211||r===212)&&t.expression.kind===108}function b7(t){const r=t.kind;return(r===211||r===212)&&t.expression.kind===110}function yP(t){var r;return!!t&&ff(t)&&((r=t.initializer)==null?void 0:r.kind)===110}function xde(t){return!!t&&(BT(t)||Fm(t))&&ys(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function iH(t){switch(t.kind){case 183:return t.typeName;case 233:return Uh(t.expression)?t.expression:void 0;case 80:case 166:return t}}function T7(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;default:return t.expression}}function ZD(t,r,s,l){if(t&&Xv(r)&&Gu(r.name))return!1;switch(r.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Kc(s):Jl(s)&&!fk(r)&&!Ode(r));case 177:case 178:case 174:return r.body!==void 0&&s!==void 0&&(t?Kc(s):Jl(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&JL(s)!==r&&l!==void 0&&l.kind===263:!1}return!1}function C9(t,r,s,l){return Fx(r)&&ZD(t,r,s,l)}function rG(t,r,s,l){return C9(t,r,s,l)||oH(t,r,s)}function oH(t,r,s){switch(r.kind){case 263:return gt(r.members,l=>rG(t,l,r,s));case 231:return!t&>(r.members,l=>rG(t,l,r,s));case 174:case 178:case 176:return gt(r.parameters,l=>C9(t,l,r,s));default:return!1}}function Mx(t,r){if(C9(t,r))return!0;const s=E2(r);return!!s&&oH(t,s,r)}function iG(t,r,s){let l;if(Am(r)){const{firstAccessor:m,secondAccessor:y,setAccessor:T}=mG(s.members,r),D=Fx(m)?m:y&&Fx(y)?y:void 0;if(!D||r!==D)return!1;l=T==null?void 0:T.parameters}else em(r)&&(l=r.parameters);if(C9(t,r,s))return!0;if(l){for(const m of l)if(!oI(m)&&C9(t,m,r,s))return!0}return!1}function Sie(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return Sie(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function $M(t){const{parent:r}=t;return r.kind===286||r.kind===285||r.kind===287?r.tagName===t:!1}function Gy(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!rT(t.parent)&&!iF(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||OL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t);case 318:for(;Nu(t.parent);)t=t.parent;return t.parent.kind===186||OL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t);case 81:return ys(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||OL(t.parent)||OJ(t.parent)||Nu(t.parent)||$M(t))return!0;case 9:case 10:case 11:case 15:case 110:return Ade(t);default:return!1}}function Ade(t){const{parent:r}=t;switch(r.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return r.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return r.expression===t;case 248:const s=r;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const l=r;return l.initializer===t&&l.initializer.kind!==261||l.expression===t;case 216:case 234:return t===r.expression;case 239:return t===r.expression;case 167:return t===r.expression;case 170:case 294:case 293:case 305:return!0;case 233:return r.expression===t&&!rC(r);case 304:return r.objectAssignmentInitializer===t;case 238:return t===r.expression;default:return Gy(r)}}function Cs(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function Eie(t){return AP(t)&&!!t.parent.moduleSpecifier}function qM(t){return t.kind===271&&t.moduleReference.kind===283}function S7(t){return ce.assert(qM(t)),t.moduleReference.expression}function uY(t){return pR(t)&&i3(t.initializer).arguments[0]}function y1(t){return t.kind===271&&t.moduleReference.kind!==283}function v1(t){return Rs(t)}function E7(t){return!Rs(t)}function Rs(t){return!!t&&!!(t.flags&524288)}function Cde(t){return!!t&&!!(t.flags&134217728)}function xie(t){return!Py(t)}function D9(t){return!!t&&!!(t.flags&16777216)}function aH(t){return x2(t)&&An(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function eT(t,r){if(t.kind!==213)return!1;const{expression:s,arguments:l}=t;if(s.kind!==80||s.escapedText!=="require"||l.length!==1)return!1;const m=l[0];return!r||sp(m)}function sH(t){return I9(t,!1)}function pR(t){return I9(t,!0)}function UVe(t){return ym(t)&&pR(t.parent.parent)}function I9(t,r){return ff(t)&&!!t.initializer&&eT(r?i3(t.initializer):t.initializer,!0)}function KM(t){return Dh(t)&&t.declarationList.declarations.length>0&&jr(t.declarationList.declarations,r=>sH(r))}function Dde(t){return t===39||t===34}function Aie(t,r){return wd(r,t).charCodeAt(0)===34}function oG(t){return ys(t)||Kf(t)||An(t)||el(t)}function j8(t){return Rs(t)&&t.initializer&&ys(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&Uh(t.name)&&V8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function k9(t){const r=j8(t);return r&&jE(r,r6(t.name))}function P9(t,r){return Ot(t.properties,s=>Fm(s)&&An(s.name)&&s.name.escapedText==="value"&&s.initializer&&jE(s.initializer,r))}function x7(t){if(t&&t.parent&&ys(t.parent)&&t.parent.operatorToken.kind===64){const r=r6(t.parent.left);return jE(t.parent.right,r)||jy(t.parent.left,t.parent.right,r)}if(t&&el(t)&&cH(t)){const r=P9(t.arguments[2],t.arguments[1].text==="prototype");if(r)return r}}function jE(t,r){if(el(t)){const s=_g(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||Wd(t)&&(t.properties.length===0||r))return t}function jy(t,r,s){const l=ys(r)&&(r.operatorToken.kind===57||r.operatorToken.kind===61)&&jE(r.right,s);if(l&&V8(t,r.left))return l}function A7(t){const r=ff(t.parent)?t.parent.name:ys(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return r&&jE(t.right,r6(r))&&Uh(r)&&V8(r,t.left)}function fY(t){if(ys(t.parent)){const r=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&ys(t.parent.parent)?t.parent.parent:t.parent;if(r.operatorToken.kind===64&&An(r.left))return r.left}else if(ff(t.parent))return t.parent.name}function V8(t,r){return yA(t)&&yA(r)?aC(t)===aC(r):uy(t)&&lH(r)&&(r.expression.kind===110||An(r.expression)&&(r.expression.escapedText==="window"||r.expression.escapedText==="self"||r.expression.escapedText==="global"))?V8(t,dY(r)):lH(t)&&lH(r)?XC(t)===XC(r)&&V8(t.expression,r.expression):!1}function mR(t){for(;wy(t,!0);)t=t.right;return t}function GL(t){return An(t)&&t.escapedText==="exports"}function U8(t){return An(t)&&t.escapedText==="module"}function KC(t){return(sa(t)||eI(t))&&U8(t.expression)&&XC(t)==="exports"}function Qy(t){const r=Cie(t);return r===5||Rs(t)?r:0}function cH(t){return Nt(t.arguments)===3&&sa(t.expression)&&An(t.expression.expression)&&ec(t.expression.expression)==="Object"&&ec(t.expression.name)==="defineProperty"&&Qv(t.arguments[1])&&jL(t.arguments[0],!0)}function lH(t){return sa(t)||eI(t)}function eI(t){return Ed(t)&&Qv(t.argumentExpression)}function XM(t,r){return sa(t)&&(!r&&t.expression.kind===110||An(t.name)&&jL(t.expression,!0))||_Y(t,r)}function _Y(t,r){return eI(t)&&(!r&&t.expression.kind===110||Uh(t.expression)||XM(t.expression,!0))}function jL(t,r){return Uh(t)||XM(t,r)}function dY(t){return sa(t)?t.name:t.argumentExpression}function Cie(t){if(el(t)){if(!cH(t))return 0;const r=t.arguments[0];return GL(r)||KC(r)?8:XM(r)&&XC(r)==="prototype"?9:7}return t.operatorToken.kind!==64||!Kf(t.left)||qMe(mR(t))?0:jL(t.left.expression,!0)&&XC(t.left)==="prototype"&&Wd(w9(t))?6:N9(t.left)}function qMe(t){return $m(t)&&nS(t.expression)&&t.expression.text==="0"}function C7(t){if(sa(t))return t.name;const r=_g(t.argumentExpression);return nS(r)||sp(r)?r:t}function XC(t){const r=C7(t);if(r){if(An(r))return r.escapedText;if(sp(r)||nS(r))return ty(r.text)}}function N9(t){if(t.expression.kind===110)return 4;if(KC(t))return 2;if(jL(t.expression,!0)){if(r6(t.expression))return 3;let r=t;for(;!An(r.expression);)r=r.expression;const s=r.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&XC(r)==="exports")&&XM(t))return 1;if(jL(t,!0)||Ed(t)&&wde(t))return 5}return 0}function w9(t){for(;ys(t.right);)t=t.right;return t.right}function H8(t){return ys(t)&&Qy(t)===3}function R9(t){return Rs(t)&&t.parent&&t.parent.kind===244&&(!Ed(t)||eI(t))&&!!w8(t.parent)}function aG(t,r){const{valueDeclaration:s}=t;(!s||!(r.flags&33554432&&!Rs(r)&&!(s.flags&33554432))&&oG(s)&&!oG(r)||s.kind!==r.kind&&VVe(s))&&(t.valueDeclaration=r)}function M9(t){if(!t||!t.valueDeclaration)return!1;const r=t.valueDeclaration;return r.kind===262||ff(r)&&r.initializer&&S_(r.initializer)}function VL(t){var r,s;switch(t.kind){case 260:case 208:return(r=Kr(t.initializer,l=>eT(l,!0)))==null?void 0:r.arguments[0];case 272:return to(t.moduleSpecifier,sp);case 271:return to((s=to(t.moduleReference,j0))==null?void 0:s.expression,sp);case 273:case 280:return to(t.parent.moduleSpecifier,sp);case 274:case 281:return to(t.parent.parent.moduleSpecifier,sp);case 276:return to(t.parent.parent.parent.moduleSpecifier,sp);default:ce.assertNever(t)}}function b2(t){return L9(t)||ce.failBadSyntaxKind(t.parent)}function L9(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return WE(t.parent)||eT(t.parent,!1)?t.parent:void 0;case 201:return ce.assert(Wp(t)),to(t.parent.parent,Wx);default:return}}function pY(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 BE(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 ce.assertNever(t)}}function uH(t){switch(t.kind){case 272:return t.importClause&&to(t.importClause.namedBindings,YL);case 271:return t;case 278:return t.exportClause&&to(t.exportClause,AP);default:return ce.assertNever(t)}}function D7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function I7(t,r){if(t.name){const s=r(t);if(s)return s}if(t.namedBindings){const s=YL(t.namedBindings)?r(t.namedBindings):Ot(t.namedBindings.elements,r);if(s)return s}}function sG(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 J8(t){const r=LG(t)?pp(t.parameters):void 0,s=to(r&&r.name,An);return!!s&&s.escapedText==="new"}function T2(t){return t.kind===353||t.kind===345||t.kind===347}function fH(t){return T2(t)||mg(t)}function HVe(t){return Ou(t)&&ys(t.expression)&&t.expression.operatorToken.kind===64?mR(t.expression):void 0}function KMe(t){return Ou(t)&&ys(t.expression)&&Qy(t.expression)!==0&&ys(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function Die(t){switch(t.kind){case 243:const r=$8(t);return r&&r.initializer;case 172:return t.initializer;case 303:return t.initializer}}function $8(t){return Dh(t)?pp(t.declarationList.declarations):void 0}function Iie(t){return xp(t)&&t.body&&t.body.kind===267?t.body:void 0}function LN(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 YM(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 k7(t,r){let s;hP(t)&&NN(t)&&g1(t.initializer)&&(s=Oi(s,_H(t,yl(t.initializer.jsDoc))));let l=t;for(;l&&l.parent;){if(g1(l)&&(s=Oi(s,_H(t,yl(l.jsDoc)))),l.kind===169){s=Oi(s,(r?LTe:zz)(l));break}if(l.kind===168){s=Oi(s,(r?RMe:Q_e)(l));break}l=cSe(l)}return s||Zn}function _H(t,r){if(Gx(r)){const s=gi(r.tags,l=>sSe(t,l));return r.tags===s?[r]:s}return sSe(t,r)?[r]:void 0}function sSe(t,r){return!(HY(r)||CA(r))||!r.parent||!Gx(r.parent)||!sb(r.parent.parent)||r.parent.parent===t}function cSe(t){const r=t.parent;if(r.kind===303||r.kind===277||r.kind===172||r.kind===244&&t.kind===211||r.kind===253||Iie(r)||ys(t)&&t.operatorToken.kind===64)return r;if(r.parent&&($8(r.parent)===t||ys(r)&&r.operatorToken.kind===64))return r.parent;if(r.parent&&r.parent.parent&&($8(r.parent.parent)||Die(r.parent.parent)===t||KMe(r.parent.parent)))return r.parent.parent}function mY(t){if(t.symbol)return t.symbol;if(!An(t.name))return;const r=t.name.escapedText,s=VE(t);if(!s)return;const l=lr(s.parameters,m=>m.name.kind===80&&m.name.escapedText===r);return l&&l.symbol}function q8(t){if(Gx(t.parent)&&t.parent.tags){const r=lr(t.parent.tags,T2);if(r)return r}return VE(t)}function VE(t){const r=dH(t);if(r)return Np(r)&&r.type&&S_(r.type)?r.type:S_(r)?r:void 0}function dH(t){const r=P7(t);if(r)return KMe(r)||HVe(r)||Die(r)||$8(r)||Iie(r)||r}function P7(t){const r=pH(t);if(!r)return;const s=r.parent;if(s&&s.jsDoc&&r===Yf(s.jsDoc))return s}function pH(t){return Kr(t.parent,Gx)}function lSe(t){const r=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&lr(s,l=>l.name.escapedText===r)}function JVe(t){return!!t.typeArguments}function QM(t){let r=t.parent;for(;;){switch(r.kind){case 226:const s=r.operatorToken.kind;return zN(s)&&r.left===t?s===64||W7(s)?1:2:0;case 224:case 225:const l=r.operator;return l===46||l===47?2:0;case 249:case 250:return r.initializer===t?1:0;case 217:case 209:case 230:case 235:t=r;break;case 305:t=r.parent;break;case 304:if(r.name!==t)return 0;t=r.parent;break;case 303:if(r.name===t)return 0;t=r.parent;break;default:return 0}r=t.parent}}function IS(t){return QM(t)!==0}function uSe(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 Ide(t){return Dm(t)||ph(t)||c7(t)||b0(t)||pg(t)}function rg(t,r){for(;t&&t.kind===r;)t=t.parent;return t}function mH(t){return rg(t,196)}function Lx(t){return rg(t,217)}function ON(t){let r;for(;t&&t.kind===196;)r=t,t=t.parent;return[r,t]}function cG(t){for(;xR(t);)t=t.type;return t}function _g(t,r){return rv(t,r?17:1)}function kde(t){return t.kind!==211&&t.kind!==212?!1:(t=Lx(t.parent),t&&t.kind===220)}function N7(t,r){for(;t;){if(t===r)return!0;t=t.parent}return!1}function vP(t){return!tl(t)&&!ld(t)&&dl(t.parent)&&t.parent.name===t}function O9(t){const r=t.parent;switch(t.kind){case 11:case 15:case 9:if(am(r))return r.parent;case 80:if(dl(r))return r.name===t?r:void 0;if(nT(r)){const s=r.parent;return AA(s)&&s.name===r?s:void 0}else{const s=r.parent;return ys(s)&&Qy(s)!==0&&(s.left.symbol||s.symbol)&&o_(s)===t?s:void 0}case 81:return dl(r)&&r.name===t?r:void 0;default:return}}function K8(t){return Qv(t)&&t.parent.kind===167&&dl(t.parent.parent)}function Pde(t){const r=t.parent;switch(r.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return r.name===t;case 166:return r.right===t;case 208:case 276:return r.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function XMe(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&&ZM(t)?!0:Rs(t)&&(ys(t)&&Qy(t)===2&&ZM(t)||sa(t)&&ys(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&gR(t.parent.right))}function YC(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 YC(t)}}function gR(t){return Uh(t)||B0(t)}function ZM(t){const r=lG(t);return gR(r)}function lG(t){return Ly(t)?t.expression:t.right}function gH(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function hA(t){const r=oC(t);if(r&&Rs(t)){const s=MMe(t);if(s)return s.class}return r}function oC(t){const r=fG(t.heritageClauses,96);return r&&r.types.length>0?r.types[0]:void 0}function qb(t){if(Rs(t))return WTe(t).map(r=>r.class);{const r=fG(t.heritageClauses,119);return r==null?void 0:r.types}}function uG(t){return Kp(t)?F9(t)||Zn:Jl(t)&&Hi(zD(hA(t)),qb(t))||Zn}function F9(t){const r=fG(t.heritageClauses,96);return r?r.types:void 0}function fG(t,r){if(t){for(const s of t)if(s.token===r)return s}}function e6(t,r){for(;t;){if(t.kind===r)return t;t=t.parent}}function sE(t){return 83<=t&&t<=165}function w7(t){return 19<=t&&t<=79}function Nde(t){return sE(t)||w7(t)}function hH(t){return 128<=t&&t<=165}function W9(t){return sE(t)&&!hH(t)}function ob(t){return 119<=t&&t<=127}function t6(t){const r=TN(t);return r!==void 0&&W9(r)}function Ox(t){const r=TN(t);return r!==void 0&&sE(r)}function yH(t){const r=RL(t);return!!r&&!hH(r)}function tI(t){return 2<=t&&t<=7}function L0(t){if(!t)return 4;let r=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(r|=1);case 219:il(t,512)&&(r|=2);break}return t.body||(r|=4),r}function FN(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&il(t,512)}return!1}function Qv(t){return sp(t)||nS(t)}function K2(t){return yk(t)&&(t.operator===40||t.operator===41)&&nS(t.operand)}function nI(t){const r=o_(t);return!!r&&wde(r)}function wde(t){if(!(t.kind===167||t.kind===212))return!1;const r=Ed(t)?_g(t.argumentExpression):t.expression;return!Qv(r)&&!K2(r)}function WN(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 9:return ty(t.text);case 167:const r=t.expression;return Qv(r)?ty(r.text):K2(r)?r.operator===41?Nd(r.operator)+r.operand.text:r.operand.text:void 0;case 295:return bR(t);default:return ce.assertNever(t)}}function yA(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function aC(t){return uy(t)?ec(t):dI(t)?g3(t):t.text}function gY(t){return uy(t)?t.escapedText:dI(t)?bR(t):ty(t.text)}function YMe(t){return`__@${Bp(t)}@${t.escapedName}`}function R7(t,r){return`__#${Bp(t)}@${r}`}function vH(t){return xf(t.escapedName,"__@")}function UE(t){return xf(t.escapedName,"__#")}function fSe(t){return t.kind===80&&t.escapedText==="Symbol"}function X8(t){return An(t)?ec(t)==="__proto__":Wp(t)&&t.text==="__proto__"}function vA(t,r){switch(t=rv(t),t.kind){case 231:if(pj(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof r=="function"?r(t):!0}function kie(t){switch(t.kind){case 303:return!X8(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return An(t.name)&&!!t.initializer;case 169:return An(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return An(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 An(t.left)}break;case 277:return!0}return!1}function Hd(t,r){if(!kie(t))return!1;switch(t.kind){case 303:return vA(t.initializer,r);case 304:return vA(t.objectAssignmentInitializer,r);case 260:case 169:case 208:case 172:return vA(t.initializer,r);case 226:return vA(t.right,r);case 277:return vA(t.expression,r)}}function _Se(t){return t.escapedText==="push"||t.escapedText==="unshift"}function Y8(t){return rI(t).kind===169}function rI(t){for(;t.kind===208;)t=t.parent.parent;return t}function _G(t){const r=t.kind;return r===176||r===218||r===262||r===219||r===174||r===177||r===178||r===267||r===312}function rh(t){return ab(t.pos)||ab(t.end)}function Pie(t){return Il(t,tl)||t}function bH(t){const r=QMe(t),s=t.kind===214&&t.arguments!==void 0;return B9(t.kind,r,s)}function B9(t,r,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(r){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 UL(t){const r=QMe(t),s=t.kind===214&&t.arguments!==void 0;return hY(t.kind,r,s)}function QMe(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function hY(t,r,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(r){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 TH(r)}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 TH(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 yY(t){return gi(t,r=>{switch(r.kind){case 294:return!!r.expression;case 12:return!r.containsOnlyTriviaWhiteSpaces;default:return!0}})}function vY(){let t=[];const r=[],s=new Map;let l=!1;return{add:y,lookup:m,getGlobalDiagnostics:T,getDiagnostics:D};function m(I){let W;if(I.file?W=s.get(I.file.fileName):W=t,!W)return;const O=ZS(W,I,Of,FH);if(O>=0)return W[O]}function y(I){let W;I.file?(W=s.get(I.file.fileName),W||(W=[],s.set(I.file.fileName,W),d0(r,I.file.fileName,Fp))):(l&&(l=!1,t=t.slice()),W=t),d0(W,I,FH)}function T(){return l=!0,t}function D(I){if(I)return s.get(I)||[];const W=Lm(r,O=>s.get(O));return t.length&&W.unshift(...t),W}}function Q8(t){return t.replace(Vde,"\\${")}function SH(t){return t&&!!(Sd(t)?t.templateFlags:t.head.templateFlags||gt(t.templateSpans,r=>!!r.literal.templateFlags))}function $Ve(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function Lat(t,r,s){if(t.charCodeAt(0)===0){const l=s.charCodeAt(r+t.length);return l>=48&&l<=57?"\\x00":"\\0"}return p6e.get(t)||$Ve(t.charCodeAt(0))}function M7(t,r){const s=r===96?d6e:r===39?Hde:Ude;return t.replace(s,Lat)}function S2(t,r){return t=M7(t,r),aEe.test(t)?t.replace(aEe,s=>$Ve(s.charCodeAt(0))):t}function Oat(t){return"&#x"+t.toString(16).toUpperCase()+";"}function EH(t){return t.charCodeAt(0)===0?"�":sEe.get(t)||Oat(t.charCodeAt(0))}function bY(t,r){const s=r===39?g6e:m6e;return t.replace(s,EH)}function HE(t){const r=t.length;return r>=2&&t.charCodeAt(0)===t.charCodeAt(r-1)&&Nie(t.charCodeAt(0))?t.substring(1,r-1):t}function Nie(t){return t===39||t===34||t===96}function z9(t){const r=t.charCodeAt(0);return r>=97&&r<=122||Ub(t,"-")}function dG(t){const r=nJ[1];for(let s=nJ.length;s<=t;s++)nJ.push(nJ[s-1]+r);return nJ[t]}function QC(){return nJ[1].length}function pG(){return Ub(At,"-dev")||Ub(At,"-insiders")}function wie(t){var r,s,l,m,y,T=!1;function D(ue){const Ne=i7(ue);Ne.length>1?(m=m+Ne.length-1,y=r.length-ue.length+yl(Ne),l=y-r.length===0):l=!1}function I(ue){ue&&ue.length&&(l&&(ue=dG(s)+ue,l=!1),r+=ue,D(ue))}function W(ue){ue&&(T=!1),I(ue)}function O(ue){ue&&(T=!0),I(ue)}function V(){r="",s=0,l=!0,m=0,y=0,T=!1}function ee(ue){ue!==void 0&&(r+=ue,D(ue),T=!1)}function te(ue){ue&&ue.length&&W(ue)}function oe(ue){(!l||ue)&&(r+=t,m++,y=r.length,l=!0,T=!1)}function de(){return l?r.length:r.length+t.length}return V(),{write:W,rawWrite:ee,writeLiteral:te,writeLine:oe,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>r.length,getLine:()=>m,getColumn:()=>l?s*QC():r.length-y,getText:()=>r,isAtStartOfLine:()=>l,hasTrailingComment:()=>T,hasTrailingWhitespace:()=>!!r.length&&UD(r.charCodeAt(r.length-1)),clear:V,writeKeyword:W,writeOperator:W,writeParameter:W,writeProperty:W,writePunctuation:W,writeSpace:W,writeStringLiteral:W,writeSymbol:(ue,Ne)=>W(ue),writeTrailingSemicolon:W,writeComment:O,getTextPosWithWriteLine:de}}function Rde(t){let r=!1;function s(){r&&(t.writeTrailingSemicolon(";"),r=!1)}return{...t,writeTrailingSemicolon(){r=!0},writeLiteral(l){s(),t.writeLiteral(l)},writeStringLiteral(l){s(),t.writeStringLiteral(l)},writeSymbol(l,m){s(),t.writeSymbol(l,m)},writePunctuation(l){s(),t.writePunctuation(l)},writeKeyword(l){s(),t.writeKeyword(l)},writeOperator(l){s(),t.writeOperator(l)},writeParameter(l){s(),t.writeParameter(l)},writeSpace(l){s(),t.writeSpace(l)},writeProperty(l){s(),t.writeProperty(l)},writeComment(l){s(),t.writeComment(l)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function xH(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function hR(t){return _v(xH(t))}function Rie(t,r,s){return r.moduleName||Mde(t,r.fileName,s&&s.fileName)}function Mie(t,r){return t.getCanonicalFileName(Su(r,t.getCurrentDirectory()))}function TY(t,r,s){const l=r.getExternalModuleFileFromDeclaration(s);if(!l||l.isDeclarationFile)return;const m=pY(s);if(!(m&&sp(m)&&!U2(m.text)&&Mie(t,l.path).indexOf(Mie(t,Rv(t.getCommonSourceDirectory())))===-1))return Rie(t,l)}function Mde(t,r,s){const l=I=>t.getCanonicalFileName(I),m=_h(s?qc(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),l),y=Su(r,t.getCurrentDirectory()),T=Oz(m,y,m,l,!1),D=wg(T);return s?OE(D):D}function Ng(t,r,s){const l=r.getCompilerOptions();let m;return l.outDir?m=wg(j9(t,r,l.outDir)):m=wg(t),m+s}function Lie(t,r){return Oie(t,r.getCompilerOptions(),r.getCurrentDirectory(),r.getCommonSourceDirectory(),s=>r.getCanonicalFileName(s))}function Oie(t,r,s,l,m){const y=r.declarationDir||r.outDir,T=y?Z8(t,y,s,l,m):t,D=HL(T);return wg(T)+D}function HL(t){return ws(t,[".mjs",".mts"])?".d.mts":ws(t,[".cjs",".cts"])?".d.cts":ws(t,[".json"])?".d.json.ts":".d.ts"}function Fie(t){return ws(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:ws(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:ws(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Kg(t){return t.outFile||t.out}function G9(t,r){var s;if(t.paths)return t.baseUrl??ce.checkDefined(t.pathsBasePath||((s=r.getCurrentDirectory)==null?void 0:s.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function dSe(t,r,s){const l=t.getCompilerOptions();if(Kg(l)){const m=Zp(l),y=l.emitDeclarationOnly||m===2||m===4;return gi(t.getSourceFiles(),T=>(y||!Wv(T))&&L7(T,t,s))}else{const m=r===void 0?t.getSourceFiles():[r];return gi(m,y=>L7(y,t,s))}}function L7(t,r,s){return!(r.getCompilerOptions().noEmitForJsFiles&&v1(t))&&!t.isDeclarationFile&&!r.isSourceFileFromExternalLibrary(t)&&(s||!(Py(t)&&r.getResolvedProjectReferenceToRedirect(t.fileName))&&!r.isSourceOfProjectReferenceRedirect(t.fileName))}function j9(t,r,s){return Z8(t,s,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l))}function Z8(t,r,s,l,m){let y=Su(t,s);return y=m(y).indexOf(m(l))===0?y.substring(l.length):y,tf(r,y)}function sC(t,r,s,l,m,y,T){t.writeFile(s,l,m,D=>{r.add(W_(w.Could_not_write_file_0_Colon_1,s,D))},y,T)}function AH(t,r,s){if(t.length>vN(t)&&!s(t)){const l=qc(t);AH(l,r,s),r(t)}}function Lde(t,r,s,l,m,y){try{l(t,r,s)}catch{AH(qc(Fd(t)),m,y),l(t,r,s)}}function BN(t,r){const s=q1(t);return I8(s,r)}function iI(t,r){return I8(t,r)}function E2(t){return lr(t.members,r=>pg(r)&&wx(r.body))}function yR(t){if(t&&t.parameters.length>0){const r=t.parameters.length===2&&oI(t.parameters[0]);return t.parameters[r?1:0]}}function V9(t){const r=yR(t);return r&&r.type}function JL(t){if(t.parameters.length&&!Ak(t)){const r=t.parameters[0];if(oI(r))return r}}function oI(t){return Zy(t.name)}function Zy(t){return!!t&&t.kind===80&&SY(t)}function O7(t){return!!Kr(t,r=>r.kind===186?!0:r.kind===80||r.kind===166?!1:"quit")}function kS(t){if(!Zy(t))return!1;for(;nT(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function SY(t){return t.escapedText==="this"}function mG(t,r){let s,l,m,y;return nI(r)?(s=r,r.kind===177?m=r:r.kind===178?y=r:ce.fail("Accessor has wrong kind")):Ot(t,T=>{if(Am(T)&&e_(T)===e_(r)){const D=WN(T.name),I=WN(r.name);D===I&&(s?l||(l=T):s=T,T.kind===177&&!m&&(m=T),T.kind===178&&!y&&(y=T))}}),{firstAccessor:s,secondAccessor:l,getAccessor:m,setAccessor:y}}function Kb(t){if(!Rs(t)&&b0(t))return;const r=t.type;return r||!Rs(t)?r:BM(t)?t.typeExpression&&t.typeExpression.type:X1(t)}function pSe(t){return t.type}function bA(t){return Ak(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Rs(t)?WU(t):void 0)}function Wie(t){return ea(EN(t),r=>ZMe(r)?r.typeParameters:void 0)}function ZMe(t){return jx(t)&&!(t.parent.kind===327&&(t.parent.tags.some(T2)||t.parent.tags.some(OG)))}function mSe(t){const r=yR(t);return r&&Kb(r)}function gG(t,r,s,l){qVe(t,r,s.pos,l)}function qVe(t,r,s,l){l&&l.length&&s!==l[0].pos&&iI(t,s)!==iI(t,l[0].pos)&&r.writeLine()}function e6e(t,r,s,l){s!==l&&iI(t,s)!==iI(t,l)&&r.writeLine()}function Bie(t,r,s,l,m,y,T,D){if(l&&l.length>0){m&&s.writeSpace(" ");let I=!1;for(const W of l)I&&(s.writeSpace(" "),I=!1),D(t,r,s,W.pos,W.end,T),W.hasTrailingNewLine?s.writeLine():I=!0;I&&y&&s.writeSpace(" ")}}function gSe(t,r,s,l,m,y,T){let D,I;if(T?m.pos===0&&(D=gi(CS(t,m.pos),W)):D=CS(t,m.pos),D){const O=[];let V;for(const ee of D){if(V){const te=iI(r,V.end);if(iI(r,ee.pos)>=te+2)break}O.push(ee),V=ee}if(O.length){const ee=iI(r,yl(O).end);iI(r,ep(t,m.pos))>=ee+2&&(gG(r,s,m,D),Bie(t,r,s,O,!1,!0,y,l),I={nodePos:m.pos,detachedCommentEndPos:yl(O).end})}}return I;function W(O){return h9(t,O.pos)}}function tT(t,r,s,l,m,y){if(t.charCodeAt(l+1)===42){const T=Sb(r,l),D=r.length;let I;for(let W=l,O=T.line;W0){let oe=te%QC();const de=dG((te-oe)/QC());for(s.rawWrite(de);oe;)s.rawWrite(" "),oe--}else s.rawWrite("")}ul(t,m,s,y,W,V),W=V}}else s.writeComment(t.substring(l,m))}function ul(t,r,s,l,m,y){const T=Math.min(r,y-1),D=GD(t.substring(m,T));D?(s.writeComment(D),T!==r&&s.writeLine()):s.rawWrite(l)}function pd(t,r,s){let l=0;for(;r=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=F7(t)|536870912),r&&!(t.modifierFlagsCache&4096)&&(s||Rs(t))&&t.parent&&(t.modifierFlagsCache|=Fde(t)|4096),t.modifierFlagsCache&-536875009)}function tS(t){return n6e(t,!0)}function KVe(t){return n6e(t,!0,!0)}function n6(t){return n6e(t,!1)}function Fde(t){let r=0;return t.parent&&!Pu(t)&&(Rs(t)&&(OMe(t)&&(r|=4),zTe(t)&&(r|=8),jTe(t)&&(r|=16),Xre(t)&&(r|=64),UTe(t)&&(r|=16384)),Z_e(t)&&(r|=8192)),r}function aI(t){return F7(t)|Fde(t)}function F7(t){let r=nx(t)?dk(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(r|=1),r}function dk(t){let r=0;if(t)for(const s of t)r|=U9(s.kind);return r}function U9(t){switch(t){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function CH(t){return t===57||t===56}function Wde(t){return CH(t)||t===54}function W7(t){return t===76||t===77||t===78}function DH(t){return ys(t)&&W7(t.operatorToken.kind)}function pk(t){return CH(t)||t===61}function IH(t){return ys(t)&&pk(t.operatorToken.kind)}function zN(t){return t>=64&&t<=79}function Zv(t){const r=hSe(t);return r&&!r.isImplements?r.class:void 0}function hSe(t){if(WT(t)){if(rT(t.parent)&&Jl(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(iF(t.parent)){const r=dH(t.parent);if(r&&Jl(r))return{class:r,isImplements:!1}}}}function wy(t,r){return ys(t)&&(r?t.operatorToken.kind===64:zN(t.operatorToken.kind))&&FE(t.left)}function Gie(t){return wy(t.parent)&&t.parent.left===t}function Tg(t){if(wy(t,!0)){const r=t.left.kind;return r===210||r===209}return!1}function PS(t){return Zv(t)!==void 0}function Uh(t){return t.kind===80||bP(t)}function NS(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 B7(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&B7(t.expression)||t.kind===217&&B7(t.expression)}function bP(t){return sa(t)&&An(t.name)&&Uh(t.expression)}function z7(t){if(sa(t)){const r=z7(t.expression);if(r!==void 0)return r+"."+oE(t.name)}else if(Ed(t)){const r=z7(t.expression);if(r!==void 0&&fy(t.argumentExpression))return r+"."+WN(t.argumentExpression)}else{if(An(t))return lf(t.escapedText);if(dI(t))return g3(t)}}function r6(t){return XM(t)&&XC(t)==="prototype"}function kH(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 jie(t){return sa(t.parent)&&t.parent.name===t||Ed(t.parent)&&t.parent.argumentExpression===t}function ySe(t){return nT(t.parent)&&t.parent.right===t||sa(t.parent)&&t.parent.name===t||Nu(t.parent)&&t.parent.right===t}function Vie(t){return t.kind===210&&t.properties.length===0}function vSe(t){return t.kind===209&&t.elements.length===0}function i6(t){if(!(!Fat(t)||!t.declarations)){for(const r of t.declarations)if(r.localSymbol)return r.localSymbol}}function Fat(t){return t&&Nt(t.declarations)>0&&il(t.declarations[0],1024)}function PH(t){return lr(bG,r=>Pg(t,r))}function Wat(t){const r=[],s=t.length;for(let l=0;l>6|192),r.push(m&63|128)):m<65536?(r.push(m>>12|224),r.push(m>>6&63|128),r.push(m&63|128)):m<131072?(r.push(m>>18|240),r.push(m>>12&63|128),r.push(m>>6&63|128),r.push(m&63|128)):ce.assert(!1,"Unexpected code point")}return r}function bSe(t){let r="";const s=Wat(t);let l=0;const m=s.length;let y,T,D,I;for(;l>2,T=(s[l]&3)<<4|s[l+1]>>4,D=(s[l+1]&15)<<2|s[l+2]>>6,I=s[l+2]&63,l+1>=m?D=I=64:l+2>=m&&(I=64),r+=V7.charAt(y)+V7.charAt(T)+V7.charAt(D)+V7.charAt(I),l+=3;return r}function Bat(t){let r="",s=0;const l=t.length;for(;s>4&3,O=(T&15)<<4|D>>2&15,V=(D&3)<<6|I&63;O===0&&D!==0?l.push(W):V===0&&I!==0?l.push(W,O):l.push(W,O,V),m+=4}return Bat(l)}function Uie(t,r){const s=As(r)?r:r.readFile(t);if(!s)return;const l=n2e(t,s);return l.error?void 0:l.config}function e3(t,r){return Uie(t,r)||{}}function O0(t,r){return!r.directoryExists||r.directoryExists(t)}function JE(t){switch(t.newLine){case 0:return h6e;case 1:case void 0:return rJ}}function tv(t,r=t){return ce.assert(r>=t||r===-1),{pos:t,end:r}}function NH(t,r){return tv(t.pos,r)}function TA(t,r){return tv(r,t.end)}function $E(t){const r=nx(t)?ra(t.modifiers,Qf):void 0;return r&&!ab(r.end)?TA(t,r.end):t}function Db(t){if(Os(t)||em(t))return TA(t,t.name.pos);const r=nx(t)?Yf(t.modifiers):void 0;return r&&!ab(r.end)?TA(t,r.end):$E(t)}function XVe(t){return t.pos===t.end}function Hie(t,r){return tv(t,t+Nd(r).length)}function mk(t,r){return xSe(t,t,r)}function wH(t,r,s){return mv(t3(t,s,!1),t3(r,s,!1),s)}function ESe(t,r,s){return mv(t.end,r.end,s)}function xSe(t,r,s){return mv(t3(t,s,!1),r.end,s)}function H9(t,r,s){return mv(t.end,t3(r,s,!1),s)}function Jie(t,r,s,l){const m=t3(r,s,l);return MX(s,t.end,m)}function YVe(t,r,s){return MX(s,t.end,r.end)}function ASe(t,r){return!mv(t.pos,t.end,r)}function mv(t,r,s){return MX(s,t,r)===0}function t3(t,r,s){return ab(t.pos)?-1:ep(r.text,t.pos,!1,s)}function CSe(t,r,s,l){const m=ep(s.text,t,!1,l),y=zat(m,r,s);return MX(s,y??r,m)}function DSe(t,r,s,l){const m=ep(s.text,t,!1,l);return MX(s,t,Math.min(r,m))}function zat(t,r=0,s){for(;t-- >r;)if(!UD(s.text.charCodeAt(t)))return t}function $ie(t){const r=Il(t);if(r)switch(r.parent.kind){case 266:case 267:return r===r.parent.name}return!1}function n3(t){return gi(t.declarations,J9)}function J9(t){return ff(t)&&t.initializer!==void 0}function QVe(t){return t.watch&&ef(t,"watch")}function Ib(t){t.close()}function I_(t){return t.flags&33554432?t.links.checkFlags:0}function Vy(t,r=!1){if(t.valueDeclaration){const s=r&&t.declarations&&lr(t.declarations,Ep)||t.flags&32768&&lr(t.declarations,tm)||t.valueDeclaration,l=Gg(s);return t.parent&&t.parent.flags&32?l:l&-29}if(I_(t)&6){const s=t.links.checkFlags,l=s&1024?8:s&256?4:16,m=s&2048?32:0;return l|m}return t.flags&4194304?36:0}function dg(t,r){return t.flags&2097152?r.getAliasedSymbol(t):t}function r3(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function RH(t){return $L(t)===1}function o6(t){return $L(t)!==0}function $L(t){const{parent:r}=t;switch(r==null?void 0:r.kind){case 217:return $L(r);case 225:case 224:const{operator:s}=r;return s===46||s===47?2:0;case 226:const{left:l,operatorToken:m}=r;return l===t&&zN(m.kind)?m.kind===64?1:2:0;case 211:return r.name!==t?0:$L(r);case 303:{const y=$L(r.parent);return t===r.name?Gat(y):y}case 304:return t===r.objectAssignmentInitializer?0:$L(r.parent);case 209:return $L(r);default:return 0}}function Gat(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return ce.assertNever(t)}}function qie(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!qie(t[s],r[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==r[s])return!1;return!0}function Mh(t,r){t.forEach(r),t.clear()}function wS(t,r,s){const{onDeleteValue:l,onExistingValue:m}=s;t.forEach((y,T)=>{const D=r.get(T);D===void 0?(t.delete(T),l(y,T)):m&&m(y,D,T)})}function a6(t,r,s){wS(t,r,s);const{createNewValue:l}=s;r.forEach((m,y)=>{t.has(y)||t.set(y,l(y,m))})}function ISe(t){if(t.flags&32){const r=RS(t);return!!r&&il(r,256)}return!1}function RS(t){var r;return(r=t.declarations)==null?void 0:r.find(Jl)}function ji(t){return t.flags&138117121?t.objectFlags:0}function ZVe(t,r){return!!ok(t,s=>r(s)?!0:void 0)}function MH(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&dy(t.declarations[0])}function kSe({moduleSpecifier:t}){return Wp(t)?t.text:Yv(t)}function Kie(t){let r;return B_(t,s=>{wx(s)&&(r=s)},s=>{for(let l=s.length-1;l>=0;l--)if(wx(s[l])){r=s[l];break}}),r}function y0(t,r,s=!0){return t.has(r)?!1:(t.set(r,s),!0)}function GN(t){return Jl(t)||Kp(t)||e0(t)}function Xie(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 Kf(t){return t.kind===211||t.kind===212}function PSe(t){return t.kind===211?t.name:(ce.assert(t.kind===212),t.argumentExpression)}function NSe(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function LH(t){return t.kind===275||t.kind===279}function i3(t){for(;Kf(t);)t=t.expression;return t}function r6e(t,r){if(Kf(t.parent)&&jie(t))return s(t.parent);function s(l){if(l.kind===211){const m=r(l.name);if(m!==void 0)return m}else if(l.kind===212)if(An(l.argumentExpression)||sp(l.argumentExpression)){const m=r(l.argumentExpression);if(m!==void 0)return m}else return;if(Kf(l.expression))return s(l.expression);if(An(l.expression))return r(l.expression)}}function qL(t,r){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(r)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function jat(t,r){this.flags=t,this.escapedName=r,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 Vat(t,r){this.flags=r,(ce.isDebugging||tu)&&(this.checker=t)}function Uat(t,r){this.flags=r,ce.isDebugging&&(this.checker=t)}function Bde(t,r,s){this.pos=r,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 Hat(t,r,s){this.pos=r,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Jat(t,r,s){this.pos=r,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 $at(t,r,s){this.fileName=t,this.text=r,this.skipTrivia=s||(l=>l)}function wSe(t){cEe.push(t),t(nv)}function RSe(t){Object.assign(nv,t),Ot(cEe,r=>r(nv))}function LT(t,r,s=0){return t.replace(/{(\d+)}/g,(l,m)=>""+ce.checkDefined(r[+m+s]))}function MSe(t){Toe=t}function LSe(t){!Toe&&t&&(Toe=t())}function fs(t){return Toe&&Toe[t.key]||t.message}function s6(t,r,s,l){BL(void 0,r,s);let m=fs(l);return arguments.length>4&&(m=LT(m,arguments,4)),{file:void 0,start:r,length:s,messageText:m,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,fileName:t}}function qat(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function i6e(t,r){const s=r.fileName||"",l=r.text.length;ce.assertEqual(t.fileName,s),ce.assertLessThanOrEqual(t.start,l),ce.assertLessThanOrEqual(t.start+t.length,l);const m={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){m.relatedInformation=[];for(const y of t.relatedInformation)qat(y)&&y.fileName===s?(ce.assertLessThanOrEqual(y.start,l),ce.assertLessThanOrEqual(y.start+y.length,l),m.relatedInformation.push(i6e(y,r))):m.relatedInformation.push(y)}return m}function jN(t,r){const s=[];for(const l of t)s.push(i6e(l,r));return s}function Pp(t,r,s,l){BL(t,r,s);let m=fs(l);return arguments.length>4&&(m=LT(m,arguments,4)),{file:t,start:r,length:s,messageText:m,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}function Yie(t,r){let s=fs(r);return arguments.length>2&&(s=LT(s,arguments,2)),s}function W_(t){let r=fs(t);return arguments.length>1&&(r=LT(r,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:r,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function OH(t,r){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Es(t,r){let s=fs(r);return arguments.length>2&&(s=LT(s,arguments,2)),{messageText:s,category:r.category,code:r.code,next:t===void 0||Array.isArray(t)?t:[t]}}function OSe(t,r){let s=t;for(;s.next;)s=s.next[0];s.next=[r]}function o6e(t){return t.file?t.file.path:void 0}function o3(t,r){return FH(t,r)||Kat(t,r)||0}function FH(t,r){return Fp(o6e(t),o6e(r))||pf(t.start,r.start)||pf(t.length,r.length)||pf(t.code,r.code)||a6e(t.messageText,r.messageText)||0}function Kat(t,r){return!t.relatedInformation&&!r.relatedInformation?0:t.relatedInformation&&r.relatedInformation?pf(t.relatedInformation.length,r.relatedInformation.length)||Ot(t.relatedInformation,(s,l)=>{const m=r.relatedInformation[l];return o3(s,m)})||0:t.relatedInformation?-1:1}function a6e(t,r){if(typeof t=="string"&&typeof r=="string")return Fp(t,r);if(typeof t=="string")return-1;if(typeof r=="string")return 1;let s=Fp(t.messageText,r.messageText);if(s)return s;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;const l=Math.min(t.next.length,r.next.length);for(let m=0;mr.next.length?1:0}function $9(t){return t===4||t===2||t===1||t===6?1:0}function s6e(t){if(t.transformFlags&2)return Y1(t)||KE(t)?t:B_(t,s6e)}function Xat(t){return t.isDeclarationFile?void 0:s6e(t)}function Yat(t){return(t.impliedNodeFormat===99||ws(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function q9(t){switch(FSe(t)){case 3:return m=>{m.externalModuleIndicator=S6(m)||!m.isDeclarationFile||void 0};case 1:return m=>{m.externalModuleIndicator=S6(m)};case 2:const r=[S6];(t.jsx===4||t.jsx===5)&&r.push(Xat),r.push(Yat);const s=dA(...r);return m=>void(m.externalModuleIndicator=s(m))}}function iu(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function Zp(t){return typeof t.module=="number"?t.module:iu(t)>=2?5:1}function WH(t){return t>=5&&t<=99}function Jd(t){let r=t.moduleResolution;if(r===void 0)switch(Zp(t)){case 1:r=2;break;case 100:r=3;break;case 199:r=99;break;default:r=1;break}return r}function FSe(t){return t.moduleDetection||(Zp(t)===100||Zp(t)===199?3:2)}function BH(t){switch(Zp(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function F0(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function Qie(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function WSe(t){return t.allowUnreachableCode===!1}function BSe(t){return t.allowUnusedLabels===!1}function zH(t){return!!(gv(t)&&t.declarationMap)}function b1(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(Zp(t)){case 100:case 199:return!0}}function VN(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:b1(t)||Zp(t)===4||Jd(t)===100}function UN(t){return t>=3&&t<=99||t===100}function GH(t){return!!t.noDtsResolution||Jd(t)!==100}function Zie(t){const r=Jd(t);if(!UN(r))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}function eUe(t){const r=Jd(t);if(!UN(r))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(r){case 3:case 99:case 100:return!0}return!1}function sI(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:Jd(t)===100}function gv(t){return!!(t.declaration||t.composite)}function gk(t){return!!(t.preserveConstEnums||F0(t))}function K9(t){return!!(t.incremental||t.composite)}function hv(t,r){return t[r]===void 0?!!t.strict:!!t[r]}function TP(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function X9(t){return t.useDefineForClassFields===void 0?iu(t)>=9:t.useDefineForClassFields}function zSe(t){return t.useDefineForClassFields!==!1&&iu(t)>=9}function GSe(t,r){return gA(r,t,o$)}function jSe(t,r){return gA(r,t,a$)}function VSe(t,r){return gA(r,t,tae)}function jH(t,r){return r.strictFlag?hv(t,r.name):t[r.name]}function VH(t){const r=t.jsx;return r===2||r===4||r===5}function UH(t,r){const s=r==null?void 0:r.pragmas.get("jsximportsource"),l=ls(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||l?(l==null?void 0:l.arguments.factory)||t.jsxImportSource||"react":void 0}function HH(t,r){return t?`${t}/${r.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function eoe(t){let r=!1;for(let s=0;sm,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>l,setSymlinkedFile:(D,I)=>(m||(m=new Map)).set(D,I),setSymlinkedDirectory:(D,I)=>{let W=_h(D,t,r);_3(W)||(W=Rv(W),I!==!1&&!(s!=null&&s.has(W))&&(l||(l=zg())).add(Rv(I.realPath),D),(s||(s=new Map)).set(W,I))},setSymlinksFromResolutions(D,I){var W,O;ce.assert(!y),y=!0;for(const V of D)(W=V.resolvedModules)==null||W.forEach(ee=>T(this,ee.resolvedModule)),(O=V.resolvedTypeReferenceDirectiveNames)==null||O.forEach(ee=>T(this,ee.resolvedTypeReferenceDirective));I.forEach(V=>T(this,V.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>y};function T(D,I){if(!I||!I.originalPath||!I.resolvedFileName)return;const{resolvedFileName:W,originalPath:O}=I;D.setSymlinkedFile(_h(O,t,r),W);const[V,ee]=Qat(W,O,t,r)||Zn;V&&ee&&D.setSymlinkedDirectory(ee,{real:V,realPath:_h(V,t,r)})}}function Qat(t,r,s,l){const m=g0(Su(t,s)),y=g0(Su(r,s));let T=!1;for(;m.length>=2&&y.length>=2&&!c6e(m[m.length-2],l)&&!c6e(y[y.length-2],l)&&l(m[m.length-1])===l(y[y.length-1]);)m.pop(),y.pop(),T=!0;return T?[vf(m),vf(y)]:void 0}function c6e(t,r){return t!==void 0&&(r(t)==="node_modules"||xf(t,"@"))}function Zat(t){return jre(t.charCodeAt(0))?t.slice(1):void 0}function toe(t,r,s){const l=C8(t,r,s);return l===void 0?void 0:Zat(l)}function tUe(t){return t.replace(W0,est)}function est(t){return"\\"+t}function a3(t,r,s){const l=JH(t,r,s);return!l||!l.length?void 0:`^(${l.map(T=>`(${T})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function JH(t,r,s){if(!(t===void 0||t.length===0))return ea(t,l=>l&&l6e(l,r,s,Jde[s]))}function noe(t){return!/[.*?]/.test(t)}function roe(t,r,s){const l=t&&l6e(t,r,s,Jde[s]);return l&&`^(${l})${s==="exclude"?"($|/)":"$"}`}function l6e(t,r,s,{singleAsteriskRegexFragment:l,doubleAsteriskRegexFragment:m,replaceWildcardCharacter:y}){let T="",D=!1;const I=bN(t,r),W=yl(I);if(s!=="exclude"&&W==="**")return;I[0]=n7(I[0]),noe(W)&&I.push("**","*");let O=0;for(let V of I){if(V==="**")T+=m;else if(s==="directories"&&(T+="(",O++),D&&(T+=q),s!=="exclude"){let ee="";V.charCodeAt(0)===42?(ee+="([^./]"+l+")?",V=V.substr(1)):V.charCodeAt(0)===63&&(ee+="[^./]",V=V.substr(1)),ee+=V.replace(W0,y),ee!==V&&(T+=IY),T+=ee}else T+=V.replace(W0,y);D=!0}for(;O>0;)T+=")?",O--;return T}function Gde(t,r){return t==="*"?r:t==="?"?"[^/]":"\\"+t}function Y9(t,r,s,l,m){t=Fd(t),m=Fd(m);const y=tf(m,t);return{includeFilePatterns:Vn(JH(s,y,"files"),T=>`^${T}$`),includeFilePattern:a3(s,y,"files"),includeDirectoryPattern:a3(s,y,"directories"),excludePattern:a3(r,y,"exclude"),basePaths:tst(t,s,l)}}function Y2(t,r){return new RegExp(t,r?"":"i")}function ioe(t,r,s,l,m,y,T,D,I){t=Fd(t),y=Fd(y);const W=Y9(t,s,l,m,y),O=W.includeFilePatterns&&W.includeFilePatterns.map(Ne=>Y2(Ne,m)),V=W.includeDirectoryPattern&&Y2(W.includeDirectoryPattern,m),ee=W.excludePattern&&Y2(W.excludePattern,m),te=O?O.map(()=>[]):[[]],oe=new Map,de=_v(m);for(const Ne of W.basePaths)ue(Ne,tf(y,Ne),T);return Gf(te);function ue(Ne,Be,Ve){const pt=de(I(Be));if(oe.has(pt))return;oe.set(pt,!0);const{files:Le,directories:ht}=D(Ne);for(const ke of fN(Le,Fp)){const _t=tf(Ne,ke),Dt=tf(Be,ke);if(!(r&&!ws(_t,r))&&!(ee&&ee.test(Dt)))if(!O)te[0].push(_t);else{const Ft=Ho(O,it=>it.test(Dt));Ft!==-1&&te[Ft].push(_t)}}if(!(Ve!==void 0&&(Ve--,Ve===0)))for(const ke of fN(ht,Fp)){const _t=tf(Ne,ke),Dt=tf(Be,ke);(!V||V.test(Dt))&&(!ee||!ee.test(Dt))&&ue(_t,Dt,Ve)}}}function tst(t,r,s){const l=[t];if(r){const m=[];for(const y of r){const T=mm(y)?y:Fd(tf(t,y));m.push(nst(T))}m.sort(Xw(!s));for(const y of m)jr(l,T=>!GC(T,y,t,!s))&&l.push(y)}return l}function nst(t){const r=Hg(t,lEe);return r<0?e7(t)?n7(qc(t)):t:t.substring(0,t.lastIndexOf(q,r))}function $H(t,r){return r||EY(t)||3}function EY(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 s3(t,r){const s=t&&TP(t);if(!r||r.length===0)return s?Aoe:vG;const l=s?Aoe:vG,m=Gf(l);return[...l,...Qo(r,T=>T.scriptKind===7||s&&rst(T.scriptKind)&&m.indexOf(T.extension)===-1?[T.extension]:void 0)]}function Q9(t,r){return!t||!sI(t)?r:r===Aoe?qde:r===vG?fEe:[...r,[".json"]]}function rst(t){return t===1||t===2}function eD(t){return gt(iJ,r=>Pg(t,r))}function vR(t){return gt($de,r=>Pg(t,r))}function USe({imports:t},r=dA(eD,vR)){return Yr(t,({text:s})=>U2(s)&&!ws(s,Coe)?r(s):void 0)||!1}function ooe(t,r,s,l){if(t==="js"||r===99)return c4(s)&&m()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!c4(s))return USe(l)?2:0;return m();function m(){let y=!1;const T=l.imports.length?l.imports.map(D=>D.text):v1(l)?ist(l).map(D=>D.arguments[0].text):Zn;for(const D of T)if(U2(D)){if(ws(D,Coe))continue;if(vR(D))return 3;eD(D)&&(y=!0)}return y?2:0}}function ist(t){let r=0,s;for(const l of t.statements){if(r>3)break;KM(l)?s=Hi(s,l.declarationList.declarations.map(m=>m.initializer)):Ou(l)&&eT(l.expression,!0)?s=ur(s,l.expression):r++}return s||Zn}function HSe(t,r,s){if(!t)return!1;const l=s3(r,s);for(const m of Gf(Q9(r,l)))if(Pg(t,m))return!0;return!1}function u6e(t){const r=t.match(/\//g);return r?r.length:0}function Z9(t,r){return pf(u6e(t),u6e(r))}function wg(t){for(const r of SG){const s=JSe(t,r);if(s!==void 0)return s}return t}function JSe(t,r){return Pg(t,r)?eW(t,r):void 0}function eW(t,r){return t.substring(0,t.length-r.length)}function SA(t,r){return RU(t,r,SG,!1)}function c6(t){const r=t.indexOf("*");return r===-1?t:t.indexOf("*",r+1)!==-1?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function qH(t){return Qo(ET(t),r=>c6(r))}function ab(t){return!(t>=0)}function KH(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||xf(t,".d.")&&h_(t,".ts")}function G7(t){return KH(t)||t===".json"}function SP(t){const r=OT(t);return r!==void 0?r:ce.fail(`File ${t} has unknown extension.`)}function nUe(t){return OT(t)!==void 0}function OT(t){return lr(SG,r=>Pg(t,r))}function tW(t,r){return t.checkJsDirective?t.checkJsDirective.enabled:r.checkJs}function aoe(t,r){const s=[];for(const l of t){if(l===r)return r;As(l)||s.push(l)}return qf(s,l=>l,r)}function soe(t,r){const s=t.indexOf(r);return ce.assert(s!==-1),t.slice(s)}function ml(t,...r){return r.length&&(t.relatedInformation||(t.relatedInformation=[]),ce.assert(t.relatedInformation!==Zn,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...r)),t}function $Se(t,r){ce.assert(t.length!==0);let s=r(t[0]),l=s;for(let m=1;ml&&(l=y)}return{min:s,max:l}}function coe(t){return{pos:Kz(t),end:t.end}}function loe(t,r){const s=r.pos-1,l=Math.min(t.text.length,ep(t.text,r.end)+1);return{pos:s,end:l}}function c3(t,r,s){return r.skipLibCheck&&t.isDeclarationFile||r.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function xY(t,r){return t===r||typeof t=="object"&&t!==null&&typeof r=="object"&&r!==null&&U5(t,r,xY)}function l3(t){let r;switch(t.charCodeAt(1)){case 98:case 66:r=1;break;case 111:case 79:r=3;break;case 120:case 88:r=4;break;default:const W=t.length-1;let O=0;for(;t.charCodeAt(O)===48;)O++;return t.slice(O,W)||"0"}const s=2,l=t.length-1,m=(l-s)*r,y=new Uint16Array((m>>>4)+(m&15?1:0));for(let W=l-1,O=0;W>=s;W--,O+=r){const V=O>>>4,ee=t.charCodeAt(W),oe=(ee<=57?ee-48:10+ee-(ee<=70?65:97))<<(O&15);y[V]|=oe;const de=oe>>>16;de&&(y[V+1]|=de)}let T="",D=y.length-1,I=!0;for(;I;){let W=0;I=!1;for(let O=D;O>=0;O--){const V=W<<16|y[O],ee=V/10|0;y[O]=ee,W=V-ee*10,ee&&!I&&(D=O,I=!0)}T=W+T}return T}function tD({negative:t,base10Value:r}){return(t&&r!=="0"?"-":"")+r}function qSe(t){if(XH(t,!1))return uoe(t)}function uoe(t){const r=t.startsWith("-"),s=l3(`${r?t.slice(1):t}n`);return{negative:r,base10Value:s}}function XH(t,r){if(t==="")return!1;const s=MM(99,!1);let l=!0;s.setOnError(()=>l=!1),s.setText(t+"n");let m=s.scan();const y=m===41;y&&(m=s.scan());const T=s.getTokenFlags();return l&&m===10&&s.getTokenEnd()===t.length+1&&!(T&512)&&(!r||t===tD({negative:y,base10Value:l3(s.getTokenValue())}))}function EA(t){return!!(t.flags&33554432)||Cs(t)||sst(t)||ast(t)||!(Gy(t)||ost(t))}function ost(t){return An(t)&&BT(t.parent)&&t.parent.name===t}function ast(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(il(t.parent,256))return!0;const r=t.parent.parent.kind;return r===264||r===187}function sst(t){if(t.kind!==80)return!1;const r=Kr(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(r==null?void 0:r.token)===119||(r==null?void 0:r.parent.kind)===264}function KSe(t){return x2(t)&&An(t.typeName)}function XSe(t,r=_1){if(t.length<2)return!0;const s=t[0];for(let l=1,m=t.length;lUb(t,r))}function ZSe(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:l}=t;return I3(l)?l.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:r}=t;if(NT(t))return EW(t.parent)?void 0:t.parent.tags;switch(r.kind){case 187:case 264:return l7(t)?r.members:void 0;case 192:case 193:return r.types;case 189:case 209:case 361:case 275:case 279:return r.elements;case 210:case 292:return r.properties;case 213:case 214:return Uu(t)?r.typeArguments:r.expression===t?void 0:r.arguments;case 284:case 288:return m1(t)?r.children:void 0;case 286:case 285:return Uu(t)?r.typeArguments:void 0;case 241:case 296:case 297:case 268:return r.statements;case 269:return r.clauses;case 263:case 231:return Mv(t)?r.members:void 0;case 266:return Qb(t)?r.members:void 0;case 312:return r.statements}}function YH(t){if(!t.typeParameters){if(gt(t.parameters,r=>!Kb(r)))return!0;if(t.kind!==219){const r=pp(t.parameters);if(!(r&&oI(r)))return!0}}return!1}function d3(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function eEe(t){return t.kind===260&&t.parent.kind===299}function _oe(t){const r=t.valueDeclaration&&rI(t.valueDeclaration);return!!r&&(Pu(r)||eEe(r))}function EP(t){return t.kind===218||t.kind===219}function nD(t){return t.replace(/\$/gm,()=>"\\$")}function FT(t){return(+t).toString()===t}function QH(t,r,s,l){return rE(t,r)?be.createIdentifier(t):!l&&FT(t)&&+t>=0?be.createNumericLiteral(+t):be.createStringLiteral(t,!!s)}function p3(t){return!!(t.flags&262144&&t.isThisType)}function AY(t){let r=0,s=0,l=0,m=0,y;(W=>{W[W.BeforeNodeModules=0]="BeforeNodeModules",W[W.NodeModules=1]="NodeModules",W[W.Scope=2]="Scope",W[W.PackageContent=3]="PackageContent"})(y||(y={}));let T=0,D=0,I=0;for(;D>=0;)switch(T=D,D=t.indexOf("/",T+1),I){case 0:t.indexOf(ix,T)===T&&(r=T,s=D,I=1);break;case 1:case 2:I===1&&t.charAt(T+1)==="@"?I=2:(l=D,I=3);break;case 3:t.indexOf(ix,T)===T?I=1:I=3;break}return m=T,I>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:s,packageRootIndex:l,fileNameIndex:m}:void 0}function rUe(t){var r;return t.kind===348?(r=t.typeExpression)==null?void 0:r.type:t.type}function f6(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 nW(t){return Ih(t)||Dh(t)||b0(t)||Kc(t)||Kp(t)||f6(t)||xp(t)&&!WL(t)&&!$C(t)}function rW(t){if(!BM(t))return!1;const{isBracketed:r,typeExpression:s}=t;return r||!!s&&s.type.kind===323}function doe(t,r){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&nR(t.charCodeAt(1),r):nR(s,r)}function tEe(t){var r;return((r=yEe(t))==null?void 0:r.kind)===0}function iW(t){return Rs(t)&&(t.type&&t.type.kind===323||zz(t).some(({isBracketed:r,typeExpression:s})=>r||!!s&&s.type.kind===323))}function hG(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||iW(t);case 355:case 348:return rW(t);default:return!1}}function nEe(t){const r=t.kind;return(r===211||r===212)&&cC(t.expression)}function poe(t){return Rs(t)&&sb(t)&&g1(t)&&!!WM(t)}function moe(t){return ce.checkDefined(ZH(t))}function ZH(t){const r=WM(t);return r&&r.typeExpression&&r.typeExpression.type}function m3(t){return An(t)?t.escapedText:bR(t)}function oW(t){return An(t)?ec(t):g3(t)}function rEe(t){const r=t.kind;return r===80||r===295}function bR(t){return`${t.namespace.escapedText}:${ec(t.name)}`}function g3(t){return`${ec(t.namespace)}:${ec(t.name)}`}function goe(t){return An(t)?ec(t):g3(t)}function yv(t){return!!(t.flags&8576)}function vv(t){return t.flags&8192?t.escapedName:t.flags&384?ty(""+t.value):ce.fail()}var eJ,_6,yG,HN,j7,CY,tJ,hoe,jde,yoe,f6e,_6e,voe,iEe,oEe,boe,Vde,Ude,Hde,d6e,p6e,aEe,m6e,g6e,sEe,nJ,V7,h6e,rJ,nv,cEe,Toe,W0,lEe,DY,IY,uEe,Soe,Eoe,Jde,vG,$de,fEe,bG,xoe,iJ,Aoe,qde,h3,TG,Coe,oJ,SG,EG,_Ee=G({"src/compiler/utilities.ts"(){Ad(),eJ=[],_6="tslib",yG=160,HN=1e6,j7=zMe(),CY=(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))(CY||{}),tJ=/^(\/\/\/\s*/,hoe=/^(\/\/\/\s*/,jde=/^(\/\/\/\s*/,yoe=/^(\/\/\/\s*/,f6e=/^\/\/\/\s*/,_6e=/^(\/\/\/\s*/,voe=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(voe||{}),iEe=(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))(iEe||{}),oEe=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(oEe||{}),boe=(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))(boe||{}),Vde=/\$\{/g,Ude=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Hde=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,d6e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,p6e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),aEe=/[^\u0000-\u007F]/g,m6e=/["\u0000-\u001f\u2028\u2029\u0085]/g,g6e=/['\u0000-\u001f\u2028\u2029\u0085]/g,sEe=new Map(Object.entries({'"':""","'":"'"})),nJ=[""," "],V7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h6e=`\r `,rJ=` -`,nv={getNodeConstructor:()=>Bde,getTokenConstructor:()=>Hat,getIdentifierConstructor:()=>Jat,getPrivateIdentifierConstructor:()=>Bde,getSourceFileConstructor:()=>Bde,getSymbolConstructor:()=>jat,getTypeConstructor:()=>Vat,getSignatureConstructor:()=>Uat,getSourceMapSourceConstructor:()=>$at},cEe=[],W0=/[^\w\s/]/g,lEe=[42,63],DY=["node_modules","bower_components","jspm_packages"],IY=`(?!(${DY.join("|")})(/|$))`,uEe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${IY}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>Gde(t,uEe.singleAsteriskRegexFragment)},Soe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${IY}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>Gde(t,Soe.singleAsteriskRegexFragment)},Eoe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>Gde(t,Eoe.singleAsteriskRegexFragment)},Jde={files:uEe,directories:Soe,exclude:Eoe},bG=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],$de=Gf(bG),fEe=[...bG,[".json"]],TG=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],xoe=[[".js",".jsx"],[".mjs"],[".cjs"]],iJ=Gf(xoe),Aoe=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qde=[...Aoe,[".json"]],h3=[".d.ts",".d.cts",".d.mts"],SG=[".ts",".cts",".mts",".tsx"],Coe=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],oJ=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(oJ||{}),EG=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],xG={files:Zn,directories:Zn}}});function Kde(){let t,r,s,l,m;return{createBaseSourceFileNode:y,createBaseIdentifierNode:T,createBasePrivateIdentifierNode:D,createBaseTokenNode:I,createBaseNode:W};function y(O){return new(m||(m=nv.getSourceFileConstructor()))(O,-1,-1)}function T(O){return new(s||(s=nv.getIdentifierConstructor()))(O,-1,-1)}function D(O){return new(l||(l=nv.getPrivateIdentifierConstructor()))(O,-1,-1)}function I(O){return new(r||(r=nv.getTokenConstructor()))(O,-1,-1)}function W(O){return new(t||(t=nv.getNodeConstructor()))(O,-1,-1)}}var Xde=G({"src/compiler/factory/baseNodeFactory.ts"(){Ad()}});function iUe(t){let r,s;return{getParenthesizeLeftSideOfBinaryForOperator:l,getParenthesizeRightSideOfBinaryForOperator:m,parenthesizeLeftSideOfBinary:W,parenthesizeRightSideOfBinary:O,parenthesizeExpressionOfComputedPropertyName:V,parenthesizeConditionOfConditionalExpression:ee,parenthesizeBranchOfConditionalExpression:te,parenthesizeExpressionOfExportDefault:oe,parenthesizeExpressionOfNew:de,parenthesizeLeftSideOfAccess:ue,parenthesizeOperandOfPostfixUnary:Ne,parenthesizeOperandOfPrefixUnary:Be,parenthesizeExpressionsOfCommaDelimitedList:Ve,parenthesizeExpressionForDisallowedComma:pt,parenthesizeExpressionOfExpressionStatement:Le,parenthesizeConciseBodyOfArrowFunction:ht,parenthesizeCheckTypeOfConditionalType:ke,parenthesizeExtendsTypeOfConditionalType:_t,parenthesizeConstituentTypesOfUnionType:Ft,parenthesizeConstituentTypeOfUnionType:Dt,parenthesizeConstituentTypesOfIntersectionType:Ye,parenthesizeConstituentTypeOfIntersectionType:it,parenthesizeOperandOfTypeOperator:ut,parenthesizeOperandOfReadonlyTypeOperator:lt,parenthesizeNonArrayTypeOfPostfixType:zt,parenthesizeElementTypesOfTupleType:Wt,parenthesizeElementTypeOfTupleType:tt,parenthesizeTypeOfOptionalType:kn,parenthesizeTypeArguments:on,parenthesizeLeadingTypeArgument:cr};function l(pn){r||(r=new Map);let Or=r.get(pn);return Or||(Or=Xr=>W(pn,Xr),r.set(pn,Or)),Or}function m(pn){s||(s=new Map);let Or=s.get(pn);return Or||(Or=Xr=>O(pn,void 0,Xr),s.set(pn,Or)),Or}function y(pn,Or,Xr,Ut){const In=hY(226,pn),gr=B9(226,pn),Cr=pA(Or);if(!Xr&&Or.kind===219&&In>3)return!0;const ei=HL(Cr);switch(pf(ei,In)){case-1:return!(!Xr&&gr===1&&Or.kind===229);case 1:return!1;case 0:if(Xr)return gr===1;if(ys(Cr)&&Cr.operatorToken.kind===pn){if(T(pn))return!1;if(pn===40){const Ur=Ut?D(Ut):0;if(c9(Ur)&&Ur===D(Cr))return!1}}return bH(Cr)===0}}function T(pn){return pn===42||pn===52||pn===51||pn===53||pn===28}function D(pn){if(pn=pA(pn),c9(pn.kind))return pn.kind;if(pn.kind===226&&pn.operatorToken.kind===40){if(pn.cachedLiteralKind!==void 0)return pn.cachedLiteralKind;const Or=D(pn.left),Xr=c9(Or)&&Or===D(pn.right)?Or:0;return pn.cachedLiteralKind=Xr,Xr}return 0}function I(pn,Or,Xr,Ut){return pA(Or).kind===217?Or:y(pn,Or,Xr,Ut)?t.createParenthesizedExpression(Or):Or}function W(pn,Or){return I(pn,Or,!0)}function O(pn,Or,Xr){return I(pn,Xr,!1,Or)}function V(pn){return CW(pn)?t.createParenthesizedExpression(pn):pn}function ee(pn){const Or=hY(227,58),Xr=pA(pn),Ut=HL(Xr);return pf(Ut,Or)!==1?t.createParenthesizedExpression(pn):pn}function te(pn){const Or=pA(pn);return CW(Or)?t.createParenthesizedExpression(pn):pn}function oe(pn){const Or=pA(pn);let Xr=CW(Or);if(!Xr)switch(KL(Or,!1).kind){case 231:case 218:Xr=!0}return Xr?t.createParenthesizedExpression(pn):pn}function de(pn){const Or=KL(pn,!0);switch(Or.kind){case 213:return t.createParenthesizedExpression(pn);case 214:return Or.arguments?pn:t.createParenthesizedExpression(pn)}return ue(pn)}function ue(pn,Or){const Xr=pA(pn);return FE(Xr)&&(Xr.kind!==214||Xr.arguments)&&(Or||!ky(Xr))?pn:vr(t.createParenthesizedExpression(pn),pn)}function Ne(pn){return FE(pn)?pn:vr(t.createParenthesizedExpression(pn),pn)}function Be(pn){return ode(pn)?pn:vr(t.createParenthesizedExpression(pn),pn)}function Ve(pn){const Or=Ol(pn,pt);return vr(t.createNodeArray(Or,pn.hasTrailingComma),pn)}function pt(pn){const Or=pA(pn),Xr=HL(Or),Ut=hY(226,28);return Xr>Ut?pn:vr(t.createParenthesizedExpression(pn),pn)}function Le(pn){const Or=pA(pn);if(el(Or)){const Ut=Or.expression,In=pA(Ut).kind;if(In===218||In===219){const gr=t.updateCallExpression(Or,vr(t.createParenthesizedExpression(Ut),Ut),Or.typeArguments,Or.arguments);return t.restoreOuterExpressions(pn,gr,8)}}const Xr=KL(Or,!1).kind;return Xr===210||Xr===218?vr(t.createParenthesizedExpression(pn),pn):pn}function ht(pn){return!E_(pn)&&(CW(pn)||KL(pn,!1).kind===210)?vr(t.createParenthesizedExpression(pn),pn):pn}function ke(pn){switch(pn.kind){case 184:case 185:case 194:return t.createParenthesizedType(pn)}return pn}function _t(pn){switch(pn.kind){case 194:return t.createParenthesizedType(pn)}return pn}function Dt(pn){switch(pn.kind){case 192:case 193:return t.createParenthesizedType(pn)}return ke(pn)}function Ft(pn){return t.createNodeArray(Ol(pn,Dt))}function it(pn){switch(pn.kind){case 192:case 193:return t.createParenthesizedType(pn)}return Dt(pn)}function Ye(pn){return t.createNodeArray(Ol(pn,it))}function ut(pn){switch(pn.kind){case 193:return t.createParenthesizedType(pn)}return it(pn)}function lt(pn){switch(pn.kind){case 198:return t.createParenthesizedType(pn)}return ut(pn)}function zt(pn){switch(pn.kind){case 195:case 198:case 186:return t.createParenthesizedType(pn)}return ut(pn)}function Wt(pn){return t.createNodeArray(Ol(pn,tt))}function tt(pn){return Mn(pn)?t.createParenthesizedType(pn):pn}function Mn(pn){return LG(pn)?pn.postfix:rS(pn)||Z2(pn)||mW(pn)||KN(pn)?Mn(pn.type):hW(pn)?Mn(pn.falseType):g6(pn)||MJ(pn)?Mn(yl(pn.types)):fI(pn)?!!pn.typeParameter.constraint&&Mn(pn.typeParameter.constraint):!1}function kn(pn){return Mn(pn)?t.createParenthesizedType(pn):zt(pn)}function cr(pn){return $X(pn)&&pn.typeParameters?t.createParenthesizedType(pn):pn}function un(pn,Or){return Or===0?cr(pn):pn}function on(pn){if(gt(pn))return t.createNodeArray(Ol(pn,un))}}var Yde,lst=G({"src/compiler/factory/parenthesizerRules.ts"(){Ad(),Yde={getParenthesizeLeftSideOfBinaryForOperator:t=>Of,getParenthesizeRightSideOfBinaryForOperator:t=>Of,parenthesizeLeftSideOfBinary:(t,r)=>r,parenthesizeRightSideOfBinary:(t,r,s)=>s,parenthesizeExpressionOfComputedPropertyName:Of,parenthesizeConditionOfConditionalExpression:Of,parenthesizeBranchOfConditionalExpression:Of,parenthesizeExpressionOfExportDefault:Of,parenthesizeExpressionOfNew:t=>uc(t,FE),parenthesizeLeftSideOfAccess:t=>uc(t,FE),parenthesizeOperandOfPostfixUnary:t=>uc(t,FE),parenthesizeOperandOfPrefixUnary:t=>uc(t,ode),parenthesizeExpressionsOfCommaDelimitedList:t=>uc(t,L8),parenthesizeExpressionForDisallowedComma:Of,parenthesizeExpressionOfExpressionStatement:Of,parenthesizeConciseBodyOfArrowFunction:Of,parenthesizeCheckTypeOfConditionalType:Of,parenthesizeExtendsTypeOfConditionalType:Of,parenthesizeConstituentTypesOfUnionType:t=>uc(t,L8),parenthesizeConstituentTypeOfUnionType:Of,parenthesizeConstituentTypesOfIntersectionType:t=>uc(t,L8),parenthesizeConstituentTypeOfIntersectionType:Of,parenthesizeOperandOfTypeOperator:Of,parenthesizeOperandOfReadonlyTypeOperator:Of,parenthesizeNonArrayTypeOfPostfixType:Of,parenthesizeElementTypesOfTupleType:t=>uc(t,L8),parenthesizeElementTypeOfTupleType:Of,parenthesizeTypeOfOptionalType:Of,parenthesizeTypeArguments:t=>t&&uc(t,L8),parenthesizeLeadingTypeArgument:Of}}});function dEe(t){return{convertToFunctionBlock:r,convertToFunctionExpression:s,convertToClassExpression:l,convertToArrayAssignmentElement:m,convertToObjectAssignmentElement:y,convertToAssignmentPattern:T,convertToObjectAssignmentPattern:D,convertToArrayAssignmentPattern:I,convertToAssignmentElementTarget:W};function r(O,V){if(E_(O))return O;const ee=t.createReturnStatement(O);vr(ee,O);const te=t.createBlock([ee],V);return vr(te,O),te}function s(O){var V;if(!O.body)return ce.fail("Cannot convert a FunctionDeclaration without a body");const ee=t.createFunctionExpression((V=N8(O))==null?void 0:V.filter(te=>!fW(te)&&!xn(te)),O.asteriskToken,O.name,O.typeParameters,O.parameters,O.type,O.body);return tc(ee,O),vr(ee,O),lp(O)&&epe(ee,!0),ee}function l(O){var V;const ee=t.createClassExpression((V=O.modifiers)==null?void 0:V.filter(te=>!fW(te)&&!xn(te)),O.name,O.typeParameters,O.heritageClauses,O.members);return tc(ee,O),vr(ee,O),lp(O)&&epe(ee,!0),ee}function m(O){if(ym(O)){if(O.dotDotDotToken)return ce.assertNode(O.name,An),tc(vr(t.createSpreadElement(O.name),O),O);const V=W(O.name);return O.initializer?tc(vr(t.createAssignment(V,O.initializer),O),O):V}return uc(O,Nr)}function y(O){if(ym(O)){if(O.dotDotDotToken)return ce.assertNode(O.name,An),tc(vr(t.createSpreadAssignment(O.name),O),O);if(O.propertyName){const V=W(O.name);return tc(vr(t.createPropertyAssignment(O.propertyName,O.initializer?t.createAssignment(V,O.initializer):V),O),O)}return ce.assertNode(O.name,An),tc(vr(t.createShorthandPropertyAssignment(O.name,O.initializer),O),O)}return uc(O,KD)}function T(O){switch(O.kind){case 207:case 209:return I(O);case 206:case 210:return D(O)}}function D(O){return E1(O)?tc(vr(t.createObjectLiteralExpression(Vn(O.elements,y)),O),O):uc(O,Wd)}function I(O){return vW(O)?tc(vr(t.createArrayLiteralExpression(Vn(O.elements,m)),O),O):uc(O,Ch)}function W(O){return ld(O)?T(O):uc(O,Nr)}}var Doe,ust=G({"src/compiler/factory/nodeConverters.ts"(){Ad(),Doe={convertToFunctionBlock:Na,convertToFunctionExpression:Na,convertToClassExpression:Na,convertToArrayAssignmentElement:Na,convertToObjectAssignmentElement:Na,convertToAssignmentPattern:Na,convertToObjectAssignmentPattern:Na,convertToArrayAssignmentPattern:Na,convertToAssignmentElementTarget:Na}}});function y6e(t){E6e.push(t)}function aJ(t,r){const s=t&8?fst:oUe,l=Pd(()=>t&1?Yde:iUe(Ne)),m=Pd(()=>t&2?Doe:dEe(Ne)),y=p0(U=>(le,Ae)=>jn(le,U,Ae)),T=p0(U=>le=>MA(U,le)),D=p0(U=>le=>DI(le,U)),I=p0(U=>()=>Cp(U)),W=p0(U=>le=>xg(U,le)),O=p0(U=>(le,Ae)=>Og(U,le,Ae)),V=p0(U=>(le,Ae)=>Yg(U,le,Ae)),ee=p0(U=>(le,Ae)=>Wy(U,le,Ae)),te=p0(U=>(le,Ae)=>Jt(U,le,Ae)),oe=p0(U=>(le,Ae,rt)=>ci(U,le,Ae,rt)),de=p0(U=>(le,Ae,rt)=>da(U,le,Ae,rt)),ue=p0(U=>(le,Ae,rt,Dn)=>Hu(U,le,Ae,rt,Dn)),Ne={get parenthesizer(){return l()},get converters(){return m()},baseFactory:r,flags:t,createNodeArray:Be,createNumericLiteral:ht,createBigIntLiteral:ke,createStringLiteral:Dt,createStringLiteralFromNode:Ft,createRegularExpressionLiteral:it,createLiteralLikeNode:Ye,createIdentifier:zt,createTempVariable:Wt,createLoopVariable:tt,createUniqueName:Mn,getGeneratedNameForNode:kn,createPrivateIdentifier:un,createUniquePrivateName:pn,getGeneratedPrivateNameForNode:Or,createToken:Ut,createSuper:In,createThis:gr,createNull:Cr,createTrue:ei,createFalse:Gn,createModifier:Ur,createModifiersFromModifierFlags:so,createQualifiedName:ho,updateQualifiedName:di,createComputedPropertyName:Nc,updateComputedPropertyName:ha,createTypeParameterDeclaration:ro,updateTypeParameterDeclaration:Gs,createParameterDeclaration:Oc,updateParameterDeclaration:_u,createDecorator:Ku,updateDecorator:al,createPropertySignature:Rr,updatePropertySignature:mc,createPropertyDeclaration:Fi,updatePropertyDeclaration:ta,createMethodSignature:$a,updateMethodSignature:jc,createMethodDeclaration:Xu,updateMethodDeclaration:Lo,createConstructorDeclaration:er,updateConstructorDeclaration:Jr,createGetAccessorDeclaration:Ir,updateGetAccessorDeclaration:_o,createSetAccessorDeclaration:Kn,updateSetAccessorDeclaration:gn,createCallSignature:mt,updateCallSignature:_r,createConstructSignature:Cn,updateConstructSignature:oi,createIndexSignature:Qr,updateIndexSignature:co,createClassStaticBlockDeclaration:Aa,updateClassStaticBlockDeclaration:sl,createTemplateLiteralTypeSpan:es,updateTemplateLiteralTypeSpan:Ui,createKeywordTypeNode:xu,createTypePredicateNode:We,updateTypePredicateNode:Re,createTypeReferenceNode:wt,updateTypeReferenceNode:$e,createFunctionTypeNode:Zt,updateFunctionTypeNode:xe,createConstructorTypeNode:Un,updateConstructorTypeNode:Ji,createTypeQueryNode:Qa,updateTypeQueryNode:Ks,createTypeLiteralNode:vs,updateTypeLiteralNode:ou,createArrayTypeNode:qd,updateArrayTypeNode:z_,createTupleTypeNode:fp,updateTupleTypeNode:Ha,createNamedTupleMember:mu,updateNamedTupleMember:x_,createOptionalTypeNode:q_,updateOptionalTypeNode:Ma,createRestTypeNode:U0,updateRestTypeNode:c_,createUnionTypeNode:Oh,updateUnionTypeNode:jg,createIntersectionTypeNode:zv,updateIntersectionTypeNode:m_,createConditionalTypeNode:Yu,updateConditionalTypeNode:Tv,createInferTypeNode:Kh,updateInferTypeNode:uS,createImportTypeNode:rd,updateImportTypeNode:Mg,createParenthesizedType:lm,updateParenthesizedType:nm,createThisTypeNode:po,createTypeOperatorNode:hy,updateTypeOperatorNode:fS,createIndexedAccessTypeNode:GT,updateIndexedAccessTypeNode:vE,createMappedTypeNode:oh,updateMappedTypeNode:yy,createLiteralTypeNode:_e,updateLiteralTypeNode:vn,createTemplateLiteralType:H0,updateTemplateLiteralType:fx,createObjectBindingPattern:Qn,updateObjectBindingPattern:hi,createArrayBindingPattern:pa,updateArrayBindingPattern:Zc,createBindingElement:ka,updateBindingElement:bc,createArrayLiteralExpression:gu,updateArrayLiteralExpression:yu,createObjectLiteralExpression:Xm,updateObjectLiteralExpression:Lg,createPropertyAccessExpression:t&4?(U,le)=>Sa(Fh(U,le),262144):Fh,updatePropertyAccessExpression:J0,createPropertyAccessChain:t&4?(U,le,Ae)=>Sa(Eg(U,le,Ae),262144):Eg,updatePropertyAccessChain:Sv,createElementAccessExpression:Ev,updateElementAccessExpression:S0,createElementAccessChain:k1,updateElementAccessChain:tn,createCallExpression:ya,updateCallExpression:bu,createCallChain:K_,updateCallChain:ig,createNewExpression:Fy,updateNewExpression:bt,createTaggedTemplateExpression:ir,updateTaggedTemplateExpression:ii,createTypeAssertion:Si,updateTypeAssertion:Do,createParenthesizedExpression:Za,updateParenthesizedExpression:Qc,createFunctionExpression:Al,updateFunctionExpression:du,createArrowFunction:N_,updateArrowFunction:zp,createDeleteExpression:gh,updateDeleteExpression:Wh,createTypeOfExpression:Gv,updateTypeOfExpression:jv,createVoidExpression:vy,updateVoidExpression:ub,createAwaitExpression:E0,updateAwaitExpression:P2,createPrefixUnaryExpression:MA,updatePrefixUnaryExpression:aw,createPostfixUnaryExpression:DI,updatePostfixUnaryExpression:Me,createBinaryExpression:jn,updateBinaryExpression:js,createConditionalExpression:X_,updateConditionalExpression:$l,createTemplateExpression:y_,updateTemplateExpression:l_,createTemplateHead:e,createTemplateMiddle:n,createTemplateTail:i,createNoSubstitutionTemplateLiteral:c,createTemplateLiteralLikeNode:_S,createYieldExpression:u,updateYieldExpression:d,createSpreadElement:h,updateSpreadElement:S,createClassExpression:E,updateClassExpression:P,createOmittedExpression:k,createExpressionWithTypeArguments:F,updateExpressionWithTypeArguments:$,createAsExpression:J,updateAsExpression:X,createNonNullExpression:ie,updateNonNullExpression:ae,createSatisfiesExpression:ve,updateSatisfiesExpression:we,createNonNullChain:Fe,updateNonNullChain:et,createMetaProperty:Pe,updateMetaProperty:dt,createTemplateSpan:Ie,updateTemplateSpan:ct,createSemicolonClassElement:Ct,createBlock:Lt,updateBlock:Ze,createVariableStatement:Ke,updateVariableStatement:st,createEmptyStatement:It,createExpressionStatement:Yt,updateExpressionStatement:Et,createIfStatement:at,updateIfStatement:Qt,createDoStatement:nn,updateDoStatement:Rn,createWhileStatement:cn,updateWhileStatement:qt,createForStatement:Kt,updateForStatement:wr,createForInStatement:Wr,updateForInStatement:jt,createForOfStatement:En,updateForOfStatement:fr,createContinueStatement:Tr,updateContinueStatement:Vr,createBreakStatement:Pn,updateBreakStatement:Fr,createReturnStatement:Ki,updateReturnStatement:io,createWithStatement:no,updateWithStatement:os,createSwitchStatement:Mo,updateSwitchStatement:$i,createLabeledStatement:ki,updateLabeledStatement:gc,createThrowStatement:Wl,updateThrowStatement:Jc,createTryStatement:au,updateTryStatement:qn,createDebuggerStatement:za,createVariableDeclaration:Ia,updateVariableDeclaration:zi,createVariableDeclarationList:na,updateVariableDeclarationList:_a,createFunctionDeclaration:us,updateFunctionDeclaration:Au,createClassDeclaration:Cu,updateClassDeclaration:yf,createInterfaceDeclaration:w_,updateInterfaceDeclaration:Eu,createTypeAliasDeclaration:He,updateTypeAliasDeclaration:Hn,createEnumDeclaration:dr,updateEnumDeclaration:Mr,createModuleDeclaration:Pr,updateModuleDeclaration:Bt,createModuleBlock:ln,updateModuleBlock:Wn,createCaseBlock:$r,updateCaseBlock:Ge,createNamespaceExportDeclaration:Br,updateNamespaceExportDeclaration:Ei,createImportEqualsDeclaration:Sr,updateImportEqualsDeclaration:yi,createImportDeclaration:go,updateImportDeclaration:Ao,createImportClause:Io,updateImportClause:ze,createAssertClause:Ce,updateAssertClause:kt,createAssertEntry:qe,updateAssertEntry:Mt,createImportTypeAssertionContainer:ge,updateImportTypeAssertionContainer:mn,createNamespaceImport:Jn,updateNamespaceImport:Nn,createNamespaceExport:Lr,updateNamespaceExport:qi,createNamedImports:vo,updateNamedImports:Ro,createImportSpecifier:Ts,updateImportSpecifier:Cc,createExportAssignment:Pc,updateExportAssignment:hc,createExportDeclaration:bl,updateExportDeclaration:Tc,createNamedExports:ma,updateNamedExports:Bl,createExportSpecifier:G_,updateExportSpecifier:u_,createMissingDeclaration:xa,createExternalModuleReference:Ym,updateExternalModuleReference:mf,get createJSDocAllType(){return I(319)},get createJSDocUnknownType(){return I(320)},get createJSDocNonNullableType(){return V(322)},get updateJSDocNonNullableType(){return ee(322)},get createJSDocNullableType(){return V(321)},get updateJSDocNullableType(){return ee(321)},get createJSDocOptionalType(){return W(323)},get updateJSDocOptionalType(){return O(323)},get createJSDocVariadicType(){return W(325)},get updateJSDocVariadicType(){return O(325)},get createJSDocNamepathType(){return W(326)},get updateJSDocNamepathType(){return O(326)},createJSDocFunctionType:pl,updateJSDocFunctionType:R_,createJSDocTypeLiteral:og,updateJSDocTypeLiteral:km,createJSDocTypeExpression:M_,updateJSDocTypeExpression:oy,createJSDocSignature:bE,updateJSDocSignature:hh,createJSDocTemplateTag:Qi,updateJSDocTemplateTag:Pm,createJSDocTypedefTag:Ag,updateJSDocTypedefTag:va,createJSDocParameterTag:x0,updateJSDocParameterTag:Nm,createJSDocPropertyTag:Md,updateJSDocPropertyTag:fe,createJSDocCallbackTag:_n,updateJSDocCallbackTag:Xn,createJSDocOverloadTag:_i,updateJSDocOverloadTag:$o,createJSDocAugmentsTag:Sc,updateJSDocAugmentsTag:xs,createJSDocImplementsTag:Fs,updateJSDocImplementsTag:sg,createJSDocSeeTag:Tl,updateJSDocSeeTag:fc,createJSDocNameReference:Gd,updateJSDocNameReference:ag,createJSDocMemberName:ah,updateJSDocMemberName:bm,createJSDocLink:ay,updateJSDocLink:yp,createJSDocLinkCode:Cg,updateJSDocLinkCode:wp,createJSDocLinkPlain:Xp,updateJSDocLinkPlain:r1,get createJSDocTypeTag(){return de(351)},get updateJSDocTypeTag(){return ue(351)},get createJSDocReturnTag(){return de(349)},get updateJSDocReturnTag(){return ue(349)},get createJSDocThisTag(){return de(350)},get updateJSDocThisTag(){return ue(350)},get createJSDocAuthorTag(){return te(337)},get updateJSDocAuthorTag(){return oe(337)},get createJSDocClassTag(){return te(339)},get updateJSDocClassTag(){return oe(339)},get createJSDocPublicTag(){return te(340)},get updateJSDocPublicTag(){return oe(340)},get createJSDocPrivateTag(){return te(341)},get updateJSDocPrivateTag(){return oe(341)},get createJSDocProtectedTag(){return te(342)},get updateJSDocProtectedTag(){return oe(342)},get createJSDocReadonlyTag(){return te(343)},get updateJSDocReadonlyTag(){return oe(343)},get createJSDocOverrideTag(){return te(344)},get updateJSDocOverrideTag(){return oe(344)},get createJSDocDeprecatedTag(){return te(338)},get updateJSDocDeprecatedTag(){return oe(338)},get createJSDocThrowsTag(){return de(356)},get updateJSDocThrowsTag(){return ue(356)},get createJSDocSatisfiesTag(){return de(357)},get updateJSDocSatisfiesTag(){return ue(357)},createJSDocEnumTag:gd,updateJSDocEnumTag:Dg,createJSDocUnknownTag:t_,updateJSDocUnknownTag:A_,createJSDocText:um,updateJSDocText:Ig,createJSDocComment:P_,updateJSDocComment:Qm,createJsxElement:Bh,updateJsxElement:P1,createJsxSelfClosingElement:VT,updateJsxSelfClosingElement:Zm,createJsxOpeningElement:fb,updateJsxOpeningElement:FS,createJsxClosingElement:dT,updateJsxClosingElement:$0,createJsxFragment:xv,createJsxText:q0,updateJsxText:N1,createJsxOpeningFragment:i0,createJsxJsxClosingFragment:nt,updateJsxFragment:t2,createJsxAttribute:pr,updateJsxAttribute:vi,createJsxAttributes:Di,updateJsxAttributes:Ee,createJsxSpreadAttribute:Gt,updateJsxSpreadAttribute:sr,createJsxExpression:Ii,updateJsxExpression:Ja,createJsxNamespacedName:wa,updateJsxNamespacedName:wi,createCaseClause:Vl,updateCaseClause:Uf,createDefaultClause:Y_,updateDefaultClause:Fg,createHeritageClause:sv,updateHeritageClause:by,createCatchClause:_b,updateCatchClause:f_,createPropertyAssignment:zh,updatePropertyAssignment:i1,createShorthandPropertyAssignment:Vv,updateShorthandPropertyAssignment:su,createSpreadAssignment:eg,updateSpreadAssignment:Uv,createEnumMember:Rk,updateEnumMember:Lb,createSourceFile:fn,updateSourceFile:Oo,createRedirectedSourceFile:$n,createBundle:ca,updateBundle:Fc,createUnparsedSource:ks,createUnparsedPrologue:Vs,createUnparsedPrepend:wu,createUnparsedTextLike:Yp,createUnparsedSyntheticReference:Q,createInputFiles:ft,createSyntheticExpression:br,createSyntaxList:oo,createNotEmittedStatement:Js,createPartiallyEmittedExpression:pu,updatePartiallyEmittedExpression:fl,createCommaListExpression:L_,updateCommaListExpression:Cl,createSyntheticReferenceExpression:o0,updateSyntheticReferenceExpression:oa,cloneNode:WP,get createComma(){return y(28)},get createAssignment(){return y(64)},get createLogicalOr(){return y(57)},get createLogicalAnd(){return y(56)},get createBitwiseOr(){return y(52)},get createBitwiseXor(){return y(53)},get createBitwiseAnd(){return y(51)},get createStrictEquality(){return y(37)},get createStrictInequality(){return y(38)},get createEquality(){return y(35)},get createInequality(){return y(36)},get createLessThan(){return y(30)},get createLessThanEquals(){return y(33)},get createGreaterThan(){return y(32)},get createGreaterThanEquals(){return y(34)},get createLeftShift(){return y(48)},get createRightShift(){return y(49)},get createUnsignedRightShift(){return y(50)},get createAdd(){return y(40)},get createSubtract(){return y(41)},get createMultiply(){return y(42)},get createDivide(){return y(44)},get createModulo(){return y(45)},get createExponent(){return y(43)},get createPrefixPlus(){return T(40)},get createPrefixMinus(){return T(41)},get createPrefixIncrement(){return T(46)},get createPrefixDecrement(){return T(47)},get createBitwiseNot(){return T(55)},get createLogicalNot(){return T(54)},get createPostfixIncrement(){return D(46)},get createPostfixDecrement(){return D(47)},createImmediatelyInvokedFunctionExpression:BP,createImmediatelyInvokedArrowFunction:LA,createVoidZero:OA,createExportDefault:pD,createExternalModuleExport:yC,createTypeCheck:vC,createIsNotTypeCheck:zP,createMethodCall:Xx,createGlobalMethodCall:j_,createFunctionBindCall:dx,createFunctionCallCall:WS,createFunctionApplyCall:px,createArraySliceCall:GP,createArrayConcatCall:oO,createObjectDefinePropertyCall:dS,createObjectGetOwnPropertyDescriptorCall:FA,createReflectGetCall:bC,createReflectSetCall:wm,createPropertyDescriptor:o1,createCallBinding:xi,createAssignmentTargetWrapper:xo,inlineExpressions:Wc,getInternalName:_c,getLocalName:Sl,getExportName:kf,getDeclarationName:Rp,getNamespaceMemberName:hn,getExternalModuleOrNamespaceExportName:v_,restoreOuterExpressions:Vt,restoreEnclosingLabel:zn,createUseStrictPrologue:mx,copyPrologue:yh,copyStandardPrologue:BS,copyCustomPrologue:N2,ensureUseStrict:pS,liftToBlock:jP,mergeLexicalEnvironment:gx,updateModifiers:VP,updateModifierLike:UP};return Ot(E6e,U=>U(Ne)),Ne;function Be(U,le){if(U===void 0||U===Zn)U=[];else if(L8(U)){if(le===void 0||U.hasTrailingComma===le)return U.transformFlags===void 0&&aUe(U),ce.attachNodeArrayDebugInfo(U),U;const Dn=U.slice();return Dn.pos=U.pos,Dn.end=U.end,Dn.hasTrailingComma=le,Dn.transformFlags=U.transformFlags,ce.attachNodeArrayDebugInfo(Dn),Dn}const Ae=U.length,rt=Ae>=1&&Ae<=4?U.slice():U;return rt.pos=-1,rt.end=-1,rt.hasTrailingComma=!!le,rt.transformFlags=0,aUe(rt),ce.attachNodeArrayDebugInfo(rt),rt}function Ve(U){return r.createBaseNode(U)}function pt(U){const le=Ve(U);return le.symbol=void 0,le.localSymbol=void 0,le}function Le(U,le){return U!==le&&(U.typeArguments=le.typeArguments),s(U,le)}function ht(U,le=0){const Ae=pt(9);return Ae.text=typeof U=="number"?U+"":U,Ae.numericLiteralFlags=le,le&384&&(Ae.transformFlags|=1024),Ae}function ke(U){const le=Xr(10);return le.text=typeof U=="string"?U:tD(U)+"n",le.transformFlags|=32,le}function _t(U,le){const Ae=pt(11);return Ae.text=U,Ae.singleQuote=le,Ae}function Dt(U,le,Ae){const rt=_t(U,le);return rt.hasExtendedUnicodeEscape=Ae,Ae&&(rt.transformFlags|=1024),rt}function Ft(U){const le=_t(aC(U),void 0);return le.textSourceNode=U,le}function it(U){const le=Xr(14);return le.text=U,le}function Ye(U,le){switch(U){case 9:return ht(le,0);case 10:return ke(le);case 11:return Dt(le,void 0);case 12:return q0(le,!1);case 13:return q0(le,!0);case 14:return it(le);case 15:return _S(U,le,void 0,0)}}function ut(U){const le=r.createBaseIdentifierNode(80);return le.escapedText=U,le.jsDoc=void 0,le.flowNode=void 0,le.symbol=void 0,le}function lt(U,le,Ae,rt){const Dn=ut(ty(U));return wY(Dn,{flags:le,id:Ls,prefix:Ae,suffix:rt}),Ls++,Dn}function zt(U,le,Ae){le===void 0&&U&&(le=TN(U)),le===80&&(le=void 0);const rt=ut(ty(U));return Ae&&(rt.flags|=256),rt.escapedText==="await"&&(rt.transformFlags|=67108864),rt.flags&256&&(rt.transformFlags|=1024),rt}function Wt(U,le,Ae,rt){let Dn=1;le&&(Dn|=8);const Ci=lt("",Dn,Ae,rt);return U&&U(Ci),Ci}function tt(U){let le=2;return U&&(le|=8),lt("",le,void 0,void 0)}function Mn(U,le=0,Ae,rt){return ce.assert(!(le&7),"Argument out of range: flags"),ce.assert((le&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),lt(U,3|le,Ae,rt)}function kn(U,le=0,Ae,rt){ce.assert(!(le&7),"Argument out of range: flags");const Dn=U?fy(U)?n4(!1,Ae,U,rt,ec):`generated@${Im(U)}`:"";(Ae||rt)&&(le|=16);const Ci=lt(Dn,4|le,Ae,rt);return Ci.original=U,Ci}function cr(U){const le=r.createBasePrivateIdentifierNode(81);return le.escapedText=U,le.transformFlags|=16777216,le}function un(U){return xf(U,"#")||ce.fail("First character of private identifier must be #: "+U),cr(ty(U))}function on(U,le,Ae,rt){const Dn=cr(ty(U));return wY(Dn,{flags:le,id:Ls,prefix:Ae,suffix:rt}),Ls++,Dn}function pn(U,le,Ae){U&&!xf(U,"#")&&ce.fail("First character of private identifier must be #: "+U);const rt=8|(U?3:1);return on(U??"",rt,le,Ae)}function Or(U,le,Ae){const rt=fy(U)?n4(!0,le,U,Ae,ec):`#generated@${Im(U)}`,Ci=on(rt,4|(le||Ae?16:0),le,Ae);return Ci.original=U,Ci}function Xr(U){return r.createBaseTokenNode(U)}function Ut(U){ce.assert(U>=0&&U<=165,"Invalid token"),ce.assert(U<=15||U>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),ce.assert(U<=9||U>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),ce.assert(U!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const le=Xr(U);let Ae=0;switch(U){case 134:Ae=384;break;case 160:Ae=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:Ae=1;break;case 108:Ae=134218752,le.flowNode=void 0;break;case 126:Ae=1024;break;case 129:Ae=16777216;break;case 110:Ae=16384,le.flowNode=void 0;break}return Ae&&(le.transformFlags|=Ae),le}function In(){return Ut(108)}function gr(){return Ut(110)}function Cr(){return Ut(106)}function ei(){return Ut(112)}function Gn(){return Ut(97)}function Ur(U){return Ut(U)}function so(U){const le=[];return U&1&&le.push(Ur(95)),U&2&&le.push(Ur(138)),U&1024&&le.push(Ur(90)),U&2048&&le.push(Ur(87)),U&4&&le.push(Ur(125)),U&8&&le.push(Ur(123)),U&16&&le.push(Ur(124)),U&256&&le.push(Ur(128)),U&32&&le.push(Ur(126)),U&16384&&le.push(Ur(164)),U&64&&le.push(Ur(148)),U&128&&le.push(Ur(129)),U&512&&le.push(Ur(134)),U&32768&&le.push(Ur(103)),U&65536&&le.push(Ur(147)),le.length?le:void 0}function ho(U,le){const Ae=Ve(166);return Ae.left=U,Ae.right=Bm(le),Ae.transformFlags|=ms(Ae.left)|CG(Ae.right),Ae.flowNode=void 0,Ae}function di(U,le,Ae){return U.left!==le||U.right!==Ae?s(ho(le,Ae),U):U}function Nc(U){const le=Ve(167);return le.expression=l().parenthesizeExpressionOfComputedPropertyName(U),le.transformFlags|=ms(le.expression)|1024|131072,le}function ha(U,le){return U.expression!==le?s(Nc(le),U):U}function ro(U,le,Ae,rt){const Dn=pt(168);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.constraint=Ae,Dn.default=rt,Dn.transformFlags=1,Dn.expression=void 0,Dn.jsDoc=void 0,Dn}function Gs(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.constraint!==rt||U.default!==Dn?s(ro(le,Ae,rt,Dn),U):U}function Oc(U,le,Ae,rt,Dn,Ci){const gs=pt(169);return gs.modifiers=Bd(U),gs.dotDotDotToken=le,gs.name=Bm(Ae),gs.questionToken=rt,gs.type=Dn,gs.initializer=TE(Ci),Zy(gs.name)?gs.transformFlags=1:gs.transformFlags=cp(gs.modifiers)|ms(gs.dotDotDotToken)|XL(gs.name)|ms(gs.questionToken)|ms(gs.initializer)|(gs.questionToken??gs.type?1:0)|(gs.dotDotDotToken??gs.initializer?1024:0)|(dk(gs.modifiers)&16476?8192:0),gs.jsDoc=void 0,gs}function _u(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.dotDotDotToken!==Ae||U.name!==rt||U.questionToken!==Dn||U.type!==Ci||U.initializer!==gs?s(Oc(le,Ae,rt,Dn,Ci,gs),U):U}function Ku(U){const le=Ve(170);return le.expression=l().parenthesizeLeftSideOfAccess(U,!1),le.transformFlags|=ms(le.expression)|1|8192|33554432,le}function al(U,le){return U.expression!==le?s(Ku(le),U):U}function Rr(U,le,Ae,rt){const Dn=pt(171);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.type=rt,Dn.questionToken=Ae,Dn.transformFlags=1,Dn.initializer=void 0,Dn.jsDoc=void 0,Dn}function mc(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.questionToken!==rt||U.type!==Dn?Ea(Rr(le,Ae,rt,Dn),U):U}function Ea(U,le){return U!==le&&(U.initializer=le.initializer),s(U,le)}function Fi(U,le,Ae,rt,Dn){const Ci=pt(172);Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.questionToken=Ae&&ER(Ae)?Ae:void 0,Ci.exclamationToken=Ae&&PJ(Ae)?Ae:void 0,Ci.type=rt,Ci.initializer=TE(Dn);const gs=Ci.flags&33554432||dk(Ci.modifiers)&2;return Ci.transformFlags=cp(Ci.modifiers)|XL(Ci.name)|ms(Ci.initializer)|(gs||Ci.questionToken||Ci.exclamationToken||Ci.type?1:0)|(am(Ci.name)||dk(Ci.modifiers)&32&&Ci.initializer?8192:0)|16777216,Ci.jsDoc=void 0,Ci}function ta(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.questionToken!==(rt!==void 0&&ER(rt)?rt:void 0)||U.exclamationToken!==(rt!==void 0&&PJ(rt)?rt:void 0)||U.type!==Dn||U.initializer!==Ci?s(Fi(le,Ae,rt,Dn,Ci),U):U}function $a(U,le,Ae,rt,Dn,Ci){const gs=pt(173);return gs.modifiers=Bd(U),gs.name=Bm(le),gs.questionToken=Ae,gs.typeParameters=Bd(rt),gs.parameters=Bd(Dn),gs.type=Ci,gs.transformFlags=1,gs.jsDoc=void 0,gs.locals=void 0,gs.nextContainer=void 0,gs.typeArguments=void 0,gs}function jc(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.name!==Ae||U.questionToken!==rt||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs?Le($a(le,Ae,rt,Dn,Ci,gs),U):U}function Xu(U,le,Ae,rt,Dn,Ci,gs,Tu){const tg=pt(174);if(tg.modifiers=Bd(U),tg.asteriskToken=le,tg.name=Bm(Ae),tg.questionToken=rt,tg.exclamationToken=void 0,tg.typeParameters=Bd(Dn),tg.parameters=Be(Ci),tg.type=gs,tg.body=Tu,!tg.body)tg.transformFlags=1;else{const mS=dk(tg.modifiers)&512,gg=!!tg.asteriskToken,Nh=mS&≫tg.transformFlags=cp(tg.modifiers)|ms(tg.asteriskToken)|XL(tg.name)|ms(tg.questionToken)|cp(tg.typeParameters)|cp(tg.parameters)|ms(tg.type)|ms(tg.body)&-67108865|(Nh?128:mS?256:gg?2048:0)|(tg.questionToken||tg.typeParameters||tg.type?1:0)|1024}return tg.typeArguments=void 0,tg.jsDoc=void 0,tg.locals=void 0,tg.nextContainer=void 0,tg.flowNode=void 0,tg.endFlowNode=void 0,tg.returnFlowNode=void 0,tg}function Lo(U,le,Ae,rt,Dn,Ci,gs,Tu,tg){return U.modifiers!==le||U.asteriskToken!==Ae||U.name!==rt||U.questionToken!==Dn||U.typeParameters!==Ci||U.parameters!==gs||U.type!==Tu||U.body!==tg?To(Xu(le,Ae,rt,Dn,Ci,gs,Tu,tg),U):U}function To(U,le){return U!==le&&(U.exclamationToken=le.exclamationToken),s(U,le)}function Aa(U){const le=pt(175);return le.body=U,le.transformFlags=ms(U)|16777216,le.modifiers=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.returnFlowNode=void 0,le}function sl(U,le){return U.body!==le?vc(Aa(le),U):U}function vc(U,le){return U!==le&&(U.modifiers=le.modifiers),s(U,le)}function er(U,le,Ae){const rt=pt(176);return rt.modifiers=Bd(U),rt.parameters=Be(le),rt.body=Ae,rt.transformFlags=cp(rt.modifiers)|cp(rt.parameters)|ms(rt.body)&-67108865|1024,rt.typeParameters=void 0,rt.type=void 0,rt.typeArguments=void 0,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.endFlowNode=void 0,rt.returnFlowNode=void 0,rt}function Jr(U,le,Ae,rt){return U.modifiers!==le||U.parameters!==Ae||U.body!==rt?li(er(le,Ae,rt),U):U}function li(U,le){return U!==le&&(U.typeParameters=le.typeParameters,U.type=le.type),Le(U,le)}function Ir(U,le,Ae,rt,Dn){const Ci=pt(177);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.parameters=Be(Ae),Ci.type=rt,Ci.body=Dn,Ci.body?Ci.transformFlags=cp(Ci.modifiers)|XL(Ci.name)|cp(Ci.parameters)|ms(Ci.type)|ms(Ci.body)&-67108865|(Ci.type?1:0):Ci.transformFlags=1,Ci.typeArguments=void 0,Ci.typeParameters=void 0,Ci.jsDoc=void 0,Ci.locals=void 0,Ci.nextContainer=void 0,Ci.flowNode=void 0,Ci.endFlowNode=void 0,Ci.returnFlowNode=void 0,Ci}function _o(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.parameters!==rt||U.type!==Dn||U.body!==Ci?xt(Ir(le,Ae,rt,Dn,Ci),U):U}function xt(U,le){return U!==le&&(U.typeParameters=le.typeParameters),Le(U,le)}function Kn(U,le,Ae,rt){const Dn=pt(178);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.parameters=Be(Ae),Dn.body=rt,Dn.body?Dn.transformFlags=cp(Dn.modifiers)|XL(Dn.name)|cp(Dn.parameters)|ms(Dn.body)&-67108865|(Dn.type?1:0):Dn.transformFlags=1,Dn.typeArguments=void 0,Dn.typeParameters=void 0,Dn.type=void 0,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn.endFlowNode=void 0,Dn.returnFlowNode=void 0,Dn}function gn(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.parameters!==rt||U.body!==Dn?qr(Kn(le,Ae,rt,Dn),U):U}function qr(U,le){return U!==le&&(U.typeParameters=le.typeParameters,U.type=le.type),Le(U,le)}function mt(U,le,Ae){const rt=pt(179);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function _r(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?Le(mt(le,Ae,rt),U):U}function Cn(U,le,Ae){const rt=pt(180);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function oi(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?Le(Cn(le,Ae,rt),U):U}function Qr(U,le,Ae){const rt=pt(181);return rt.modifiers=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function co(U,le,Ae,rt){return U.parameters!==Ae||U.type!==rt||U.modifiers!==le?Le(Qr(le,Ae,rt),U):U}function es(U,le){const Ae=Ve(204);return Ae.type=U,Ae.literal=le,Ae.transformFlags=1,Ae}function Ui(U,le,Ae){return U.type!==le||U.literal!==Ae?s(es(le,Ae),U):U}function xu(U){return Ut(U)}function We(U,le,Ae){const rt=Ve(182);return rt.assertsModifier=U,rt.parameterName=Bm(le),rt.type=Ae,rt.transformFlags=1,rt}function Re(U,le,Ae,rt){return U.assertsModifier!==le||U.parameterName!==Ae||U.type!==rt?s(We(le,Ae,rt),U):U}function wt(U,le){const Ae=Ve(183);return Ae.typeName=Bm(U),Ae.typeArguments=le&&l().parenthesizeTypeArguments(Be(le)),Ae.transformFlags=1,Ae}function $e(U,le,Ae){return U.typeName!==le||U.typeArguments!==Ae?s(wt(le,Ae),U):U}function Zt(U,le,Ae){const rt=pt(184);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.modifiers=void 0,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function xe(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?an(Zt(le,Ae,rt),U):U}function an(U,le){return U!==le&&(U.modifiers=le.modifiers),Le(U,le)}function Un(...U){return U.length===4?rr(...U):U.length===3?mi(...U):ce.fail("Incorrect number of arguments specified.")}function rr(U,le,Ae,rt){const Dn=pt(185);return Dn.modifiers=Bd(U),Dn.typeParameters=Bd(le),Dn.parameters=Bd(Ae),Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.typeArguments=void 0,Dn}function mi(U,le,Ae){return rr(void 0,U,le,Ae)}function Ji(...U){return U.length===5?zo(...U):U.length===4?Ca(...U):ce.fail("Incorrect number of arguments specified.")}function zo(U,le,Ae,rt,Dn){return U.modifiers!==le||U.typeParameters!==Ae||U.parameters!==rt||U.type!==Dn?Le(Un(le,Ae,rt,Dn),U):U}function Ca(U,le,Ae,rt){return zo(U,U.modifiers,le,Ae,rt)}function Qa(U,le){const Ae=Ve(186);return Ae.exprName=U,Ae.typeArguments=le&&l().parenthesizeTypeArguments(le),Ae.transformFlags=1,Ae}function Ks(U,le,Ae){return U.exprName!==le||U.typeArguments!==Ae?s(Qa(le,Ae),U):U}function vs(U){const le=pt(187);return le.members=Be(U),le.transformFlags=1,le}function ou(U,le){return U.members!==le?s(vs(le),U):U}function qd(U){const le=Ve(188);return le.elementType=l().parenthesizeNonArrayTypeOfPostfixType(U),le.transformFlags=1,le}function z_(U,le){return U.elementType!==le?s(qd(le),U):U}function fp(U){const le=Ve(189);return le.elements=Be(l().parenthesizeElementTypesOfTupleType(U)),le.transformFlags=1,le}function Ha(U,le){return U.elements!==le?s(fp(le),U):U}function mu(U,le,Ae,rt){const Dn=pt(202);return Dn.dotDotDotToken=U,Dn.name=le,Dn.questionToken=Ae,Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn}function x_(U,le,Ae,rt,Dn){return U.dotDotDotToken!==le||U.name!==Ae||U.questionToken!==rt||U.type!==Dn?s(mu(le,Ae,rt,Dn),U):U}function q_(U){const le=Ve(190);return le.type=l().parenthesizeTypeOfOptionalType(U),le.transformFlags=1,le}function Ma(U,le){return U.type!==le?s(q_(le),U):U}function U0(U){const le=Ve(191);return le.type=U,le.transformFlags=1,le}function c_(U,le){return U.type!==le?s(U0(le),U):U}function Kd(U,le,Ae){const rt=Ve(U);return rt.types=Ne.createNodeArray(Ae(le)),rt.transformFlags=1,rt}function iy(U,le,Ae){return U.types!==le?s(Kd(U.kind,le,Ae),U):U}function Oh(U){return Kd(192,U,l().parenthesizeConstituentTypesOfUnionType)}function jg(U,le){return iy(U,le,l().parenthesizeConstituentTypesOfUnionType)}function zv(U){return Kd(193,U,l().parenthesizeConstituentTypesOfIntersectionType)}function m_(U,le){return iy(U,le,l().parenthesizeConstituentTypesOfIntersectionType)}function Yu(U,le,Ae,rt){const Dn=Ve(194);return Dn.checkType=l().parenthesizeCheckTypeOfConditionalType(U),Dn.extendsType=l().parenthesizeExtendsTypeOfConditionalType(le),Dn.trueType=Ae,Dn.falseType=rt,Dn.transformFlags=1,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Tv(U,le,Ae,rt,Dn){return U.checkType!==le||U.extendsType!==Ae||U.trueType!==rt||U.falseType!==Dn?s(Yu(le,Ae,rt,Dn),U):U}function Kh(U){const le=Ve(195);return le.typeParameter=U,le.transformFlags=1,le}function uS(U,le){return U.typeParameter!==le?s(Kh(le),U):U}function H0(U,le){const Ae=Ve(203);return Ae.head=U,Ae.templateSpans=Be(le),Ae.transformFlags=1,Ae}function fx(U,le,Ae){return U.head!==le||U.templateSpans!==Ae?s(H0(le,Ae),U):U}function rd(U,le,Ae,rt,Dn=!1){const Ci=Ve(205);return Ci.argument=U,Ci.assertions=le,Ci.qualifier=Ae,Ci.typeArguments=rt&&l().parenthesizeTypeArguments(rt),Ci.isTypeOf=Dn,Ci.transformFlags=1,Ci}function Mg(U,le,Ae,rt,Dn,Ci=U.isTypeOf){return U.argument!==le||U.assertions!==Ae||U.qualifier!==rt||U.typeArguments!==Dn||U.isTypeOf!==Ci?s(rd(le,Ae,rt,Dn,Ci),U):U}function lm(U){const le=Ve(196);return le.type=U,le.transformFlags=1,le}function nm(U,le){return U.type!==le?s(lm(le),U):U}function po(){const U=Ve(197);return U.transformFlags=1,U}function hy(U,le){const Ae=Ve(198);return Ae.operator=U,Ae.type=U===148?l().parenthesizeOperandOfReadonlyTypeOperator(le):l().parenthesizeOperandOfTypeOperator(le),Ae.transformFlags=1,Ae}function fS(U,le){return U.type!==le?s(hy(U.operator,le),U):U}function GT(U,le){const Ae=Ve(199);return Ae.objectType=l().parenthesizeNonArrayTypeOfPostfixType(U),Ae.indexType=le,Ae.transformFlags=1,Ae}function vE(U,le,Ae){return U.objectType!==le||U.indexType!==Ae?s(GT(le,Ae),U):U}function oh(U,le,Ae,rt,Dn,Ci){const gs=pt(200);return gs.readonlyToken=U,gs.typeParameter=le,gs.nameType=Ae,gs.questionToken=rt,gs.type=Dn,gs.members=Ci&&Be(Ci),gs.transformFlags=1,gs.locals=void 0,gs.nextContainer=void 0,gs}function yy(U,le,Ae,rt,Dn,Ci,gs){return U.readonlyToken!==le||U.typeParameter!==Ae||U.nameType!==rt||U.questionToken!==Dn||U.type!==Ci||U.members!==gs?s(oh(le,Ae,rt,Dn,Ci,gs),U):U}function _e(U){const le=Ve(201);return le.literal=U,le.transformFlags=1,le}function vn(U,le){return U.literal!==le?s(_e(le),U):U}function Qn(U){const le=Ve(206);return le.elements=Be(U),le.transformFlags|=cp(le.elements)|1024|524288,le.transformFlags&32768&&(le.transformFlags|=65664),le}function hi(U,le){return U.elements!==le?s(Qn(le),U):U}function pa(U){const le=Ve(207);return le.elements=Be(U),le.transformFlags|=cp(le.elements)|1024|524288,le}function Zc(U,le){return U.elements!==le?s(pa(le),U):U}function ka(U,le,Ae,rt){const Dn=pt(208);return Dn.dotDotDotToken=U,Dn.propertyName=Bm(le),Dn.name=Bm(Ae),Dn.initializer=TE(rt),Dn.transformFlags|=ms(Dn.dotDotDotToken)|XL(Dn.propertyName)|XL(Dn.name)|ms(Dn.initializer)|(Dn.dotDotDotToken?32768:0)|1024,Dn.flowNode=void 0,Dn}function bc(U,le,Ae,rt,Dn){return U.propertyName!==Ae||U.dotDotDotToken!==le||U.name!==rt||U.initializer!==Dn?s(ka(le,Ae,rt,Dn),U):U}function gu(U,le){const Ae=Ve(209),rt=U&&Yf(U),Dn=Be(U,rt&&t0(rt)?!0:void 0);return Ae.elements=l().parenthesizeExpressionsOfCommaDelimitedList(Dn),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.elements),Ae}function yu(U,le){return U.elements!==le?s(gu(le,U.multiLine),U):U}function Xm(U,le){const Ae=pt(210);return Ae.properties=Be(U),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.properties),Ae.jsDoc=void 0,Ae}function Lg(U,le){return U.properties!==le?s(Xm(le,U.multiLine),U):U}function av(U,le,Ae){const rt=pt(211);return rt.expression=U,rt.questionDotToken=le,rt.name=Ae,rt.transformFlags=ms(rt.expression)|ms(rt.questionDotToken)|(An(rt.name)?CG(rt.name):ms(rt.name)|536870912),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Fh(U,le){const Ae=av(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Bm(le));return wJ(U)&&(Ae.transformFlags|=384),Ae}function J0(U,le,Ae){return BU(U)?Sv(U,le,U.questionDotToken,uc(Ae,An)):U.expression!==le||U.name!==Ae?s(Fh(le,Ae),U):U}function Eg(U,le,Ae){const rt=av(l().parenthesizeLeftSideOfAccess(U,!0),le,Bm(Ae));return rt.flags|=64,rt.transformFlags|=32,rt}function Sv(U,le,Ae,rt){return ce.assert(!!(U.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),U.expression!==le||U.questionDotToken!==Ae||U.name!==rt?s(Eg(le,Ae,rt),U):U}function jT(U,le,Ae){const rt=pt(212);return rt.expression=U,rt.questionDotToken=le,rt.argumentExpression=Ae,rt.transformFlags|=ms(rt.expression)|ms(rt.questionDotToken)|ms(rt.argumentExpression),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Ev(U,le){const Ae=jT(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Hv(le));return wJ(U)&&(Ae.transformFlags|=384),Ae}function S0(U,le,Ae){return Vz(U)?tn(U,le,U.questionDotToken,Ae):U.expression!==le||U.argumentExpression!==Ae?s(Ev(le,Ae),U):U}function k1(U,le,Ae){const rt=jT(l().parenthesizeLeftSideOfAccess(U,!0),le,Hv(Ae));return rt.flags|=64,rt.transformFlags|=32,rt}function tn(U,le,Ae,rt){return ce.assert(!!(U.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),U.expression!==le||U.questionDotToken!==Ae||U.argumentExpression!==rt?s(k1(le,Ae,rt),U):U}function fi(U,le,Ae,rt){const Dn=pt(213);return Dn.expression=U,Dn.questionDotToken=le,Dn.typeArguments=Ae,Dn.arguments=rt,Dn.transformFlags|=ms(Dn.expression)|ms(Dn.questionDotToken)|cp(Dn.typeArguments)|cp(Dn.arguments),Dn.typeArguments&&(Dn.transformFlags|=1),Z1(Dn.expression)&&(Dn.transformFlags|=16384),Dn}function ya(U,le,Ae){const rt=fi(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Bd(le),l().parenthesizeExpressionsOfCommaDelimitedList(Be(Ae)));return RJ(rt.expression)&&(rt.transformFlags|=8388608),rt}function bu(U,le,Ae,rt){return R8(U)?ig(U,le,U.questionDotToken,Ae,rt):U.expression!==le||U.typeArguments!==Ae||U.arguments!==rt?s(ya(le,Ae,rt),U):U}function K_(U,le,Ae,rt){const Dn=fi(l().parenthesizeLeftSideOfAccess(U,!0),le,Bd(Ae),l().parenthesizeExpressionsOfCommaDelimitedList(Be(rt)));return Dn.flags|=64,Dn.transformFlags|=32,Dn}function ig(U,le,Ae,rt,Dn){return ce.assert(!!(U.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),U.expression!==le||U.questionDotToken!==Ae||U.typeArguments!==rt||U.arguments!==Dn?s(K_(le,Ae,rt,Dn),U):U}function Fy(U,le,Ae){const rt=pt(214);return rt.expression=l().parenthesizeExpressionOfNew(U),rt.typeArguments=Bd(le),rt.arguments=Ae?l().parenthesizeExpressionsOfCommaDelimitedList(Ae):void 0,rt.transformFlags|=ms(rt.expression)|cp(rt.typeArguments)|cp(rt.arguments)|32,rt.typeArguments&&(rt.transformFlags|=1),rt}function bt(U,le,Ae,rt){return U.expression!==le||U.typeArguments!==Ae||U.arguments!==rt?s(Fy(le,Ae,rt),U):U}function ir(U,le,Ae){const rt=Ve(215);return rt.tag=l().parenthesizeLeftSideOfAccess(U,!1),rt.typeArguments=Bd(le),rt.template=Ae,rt.transformFlags|=ms(rt.tag)|cp(rt.typeArguments)|ms(rt.template)|1024,rt.typeArguments&&(rt.transformFlags|=1),SH(rt.template)&&(rt.transformFlags|=128),rt}function ii(U,le,Ae,rt){return U.tag!==le||U.typeArguments!==Ae||U.template!==rt?s(ir(le,Ae,rt),U):U}function Si(U,le){const Ae=Ve(216);return Ae.expression=l().parenthesizeOperandOfPrefixUnary(le),Ae.type=U,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function Do(U,le,Ae){return U.type!==le||U.expression!==Ae?s(Si(le,Ae),U):U}function Za(U){const le=Ve(217);return le.expression=U,le.transformFlags=ms(le.expression),le.jsDoc=void 0,le}function Qc(U,le){return U.expression!==le?s(Za(le),U):U}function Al(U,le,Ae,rt,Dn,Ci,gs){const Tu=pt(218);Tu.modifiers=Bd(U),Tu.asteriskToken=le,Tu.name=Bm(Ae),Tu.typeParameters=Bd(rt),Tu.parameters=Be(Dn),Tu.type=Ci,Tu.body=gs;const tg=dk(Tu.modifiers)&512,mS=!!Tu.asteriskToken,gg=tg&&mS;return Tu.transformFlags=cp(Tu.modifiers)|ms(Tu.asteriskToken)|XL(Tu.name)|cp(Tu.typeParameters)|cp(Tu.parameters)|ms(Tu.type)|ms(Tu.body)&-67108865|(gg?128:tg?256:mS?2048:0)|(Tu.typeParameters||Tu.type?1:0)|4194304,Tu.typeArguments=void 0,Tu.jsDoc=void 0,Tu.locals=void 0,Tu.nextContainer=void 0,Tu.flowNode=void 0,Tu.endFlowNode=void 0,Tu.returnFlowNode=void 0,Tu}function du(U,le,Ae,rt,Dn,Ci,gs,Tu){return U.name!==rt||U.modifiers!==le||U.asteriskToken!==Ae||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs||U.body!==Tu?Le(Al(le,Ae,rt,Dn,Ci,gs,Tu),U):U}function N_(U,le,Ae,rt,Dn,Ci){const gs=pt(219);gs.modifiers=Bd(U),gs.typeParameters=Bd(le),gs.parameters=Be(Ae),gs.type=rt,gs.equalsGreaterThanToken=Dn??Ut(39),gs.body=l().parenthesizeConciseBodyOfArrowFunction(Ci);const Tu=dk(gs.modifiers)&512;return gs.transformFlags=cp(gs.modifiers)|cp(gs.typeParameters)|cp(gs.parameters)|ms(gs.type)|ms(gs.equalsGreaterThanToken)|ms(gs.body)&-67108865|(gs.typeParameters||gs.type?1:0)|(Tu?16640:0)|1024,gs.typeArguments=void 0,gs.jsDoc=void 0,gs.locals=void 0,gs.nextContainer=void 0,gs.flowNode=void 0,gs.endFlowNode=void 0,gs.returnFlowNode=void 0,gs}function zp(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.typeParameters!==Ae||U.parameters!==rt||U.type!==Dn||U.equalsGreaterThanToken!==Ci||U.body!==gs?Le(N_(le,Ae,rt,Dn,Ci,gs),U):U}function gh(U){const le=Ve(220);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function Wh(U,le){return U.expression!==le?s(gh(le),U):U}function Gv(U){const le=Ve(221);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function jv(U,le){return U.expression!==le?s(Gv(le),U):U}function vy(U){const le=Ve(222);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function ub(U,le){return U.expression!==le?s(vy(le),U):U}function E0(U){const le=Ve(223);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression)|256|128|2097152,le}function P2(U,le){return U.expression!==le?s(E0(le),U):U}function MA(U,le){const Ae=Ve(224);return Ae.operator=U,Ae.operand=l().parenthesizeOperandOfPrefixUnary(le),Ae.transformFlags|=ms(Ae.operand),(U===46||U===47)&&An(Ae.operand)&&!Om(Ae.operand)&&!T6(Ae.operand)&&(Ae.transformFlags|=268435456),Ae}function aw(U,le){return U.operand!==le?s(MA(U.operator,le),U):U}function DI(U,le){const Ae=Ve(225);return Ae.operator=le,Ae.operand=l().parenthesizeOperandOfPostfixUnary(U),Ae.transformFlags|=ms(Ae.operand),An(Ae.operand)&&!Om(Ae.operand)&&!T6(Ae.operand)&&(Ae.transformFlags|=268435456),Ae}function Me(U,le){return U.operand!==le?s(DI(le,U.operator),U):U}function jn(U,le,Ae){const rt=pt(226),Dn=A0(le),Ci=Dn.kind;return rt.left=l().parenthesizeLeftSideOfBinary(Ci,U),rt.operatorToken=Dn,rt.right=l().parenthesizeRightSideOfBinary(Ci,rt.left,Ae),rt.transformFlags|=ms(rt.left)|ms(rt.operatorToken)|ms(rt.right),Ci===61?rt.transformFlags|=32:Ci===64?Wd(rt.left)?rt.transformFlags|=5248|Mi(rt.left):Ch(rt.left)&&(rt.transformFlags|=5120|Mi(rt.left)):Ci===43||Ci===68?rt.transformFlags|=512:W7(Ci)&&(rt.transformFlags|=16),Ci===103&&Gu(rt.left)&&(rt.transformFlags|=536870912),rt.jsDoc=void 0,rt}function Mi(U){return QY(U)?65536:0}function js(U,le,Ae,rt){return U.left!==le||U.operatorToken!==Ae||U.right!==rt?s(jn(le,Ae,rt),U):U}function X_(U,le,Ae,rt,Dn){const Ci=Ve(227);return Ci.condition=l().parenthesizeConditionOfConditionalExpression(U),Ci.questionToken=le??Ut(58),Ci.whenTrue=l().parenthesizeBranchOfConditionalExpression(Ae),Ci.colonToken=rt??Ut(59),Ci.whenFalse=l().parenthesizeBranchOfConditionalExpression(Dn),Ci.transformFlags|=ms(Ci.condition)|ms(Ci.questionToken)|ms(Ci.whenTrue)|ms(Ci.colonToken)|ms(Ci.whenFalse),Ci}function $l(U,le,Ae,rt,Dn,Ci){return U.condition!==le||U.questionToken!==Ae||U.whenTrue!==rt||U.colonToken!==Dn||U.whenFalse!==Ci?s(X_(le,Ae,rt,Dn,Ci),U):U}function y_(U,le){const Ae=Ve(228);return Ae.head=U,Ae.templateSpans=Be(le),Ae.transformFlags|=ms(Ae.head)|cp(Ae.templateSpans)|1024,Ae}function l_(U,le,Ae){return U.head!==le||U.templateSpans!==Ae?s(y_(le,Ae),U):U}function Ph(U,le,Ae,rt=0){ce.assert(!(rt&-7177),"Unsupported template flags.");let Dn;if(Ae!==void 0&&Ae!==le&&(Dn=_st(U,Ae),typeof Dn=="object"))return ce.fail("Invalid raw text");if(le===void 0){if(Dn===void 0)return ce.fail("Arguments 'text' and 'rawText' may not both be undefined.");le=Dn}else Dn!==void 0&&ce.assert(le===Dn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return le}function Ap(U){let le=1024;return U&&(le|=128),le}function Mb(U,le,Ae,rt){const Dn=Xr(U);return Dn.text=le,Dn.rawText=Ae,Dn.templateFlags=rt&7176,Dn.transformFlags=Ap(Dn.templateFlags),Dn}function _x(U,le,Ae,rt){const Dn=pt(U);return Dn.text=le,Dn.rawText=Ae,Dn.templateFlags=rt&7176,Dn.transformFlags=Ap(Dn.templateFlags),Dn}function _S(U,le,Ae,rt){return U===15?_x(U,le,Ae,rt):Mb(U,le,Ae,rt)}function e(U,le,Ae){return U=Ph(16,U,le,Ae),_S(16,U,le,Ae)}function n(U,le,Ae){return U=Ph(16,U,le,Ae),_S(17,U,le,Ae)}function i(U,le,Ae){return U=Ph(16,U,le,Ae),_S(18,U,le,Ae)}function c(U,le,Ae){return U=Ph(16,U,le,Ae),_x(15,U,le,Ae)}function u(U,le){ce.assert(!U||!!le,"A `YieldExpression` with an asteriskToken must have an expression.");const Ae=Ve(229);return Ae.expression=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.asteriskToken=U,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.asteriskToken)|1024|128|1048576,Ae}function d(U,le,Ae){return U.expression!==Ae||U.asteriskToken!==le?s(u(le,Ae),U):U}function h(U){const le=Ve(230);return le.expression=l().parenthesizeExpressionForDisallowedComma(U),le.transformFlags|=ms(le.expression)|1024|32768,le}function S(U,le){return U.expression!==le?s(h(le),U):U}function E(U,le,Ae,rt,Dn){const Ci=pt(231);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),Ci.transformFlags|=cp(Ci.modifiers)|XL(Ci.name)|cp(Ci.typeParameters)|cp(Ci.heritageClauses)|cp(Ci.members)|(Ci.typeParameters?1:0)|1024,Ci.jsDoc=void 0,Ci}function P(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(E(le,Ae,rt,Dn,Ci),U):U}function k(){return Ve(232)}function F(U,le){const Ae=Ve(233);return Ae.expression=l().parenthesizeLeftSideOfAccess(U,!1),Ae.typeArguments=le&&l().parenthesizeTypeArguments(le),Ae.transformFlags|=ms(Ae.expression)|cp(Ae.typeArguments)|1024,Ae}function $(U,le,Ae){return U.expression!==le||U.typeArguments!==Ae?s(F(le,Ae),U):U}function J(U,le){const Ae=Ve(234);return Ae.expression=U,Ae.type=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function X(U,le,Ae){return U.expression!==le||U.type!==Ae?s(J(le,Ae),U):U}function ie(U){const le=Ve(235);return le.expression=l().parenthesizeLeftSideOfAccess(U,!1),le.transformFlags|=ms(le.expression)|1,le}function ae(U,le){return Uz(U)?et(U,le):U.expression!==le?s(ie(le),U):U}function ve(U,le){const Ae=Ve(238);return Ae.expression=U,Ae.type=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function we(U,le,Ae){return U.expression!==le||U.type!==Ae?s(ve(le,Ae),U):U}function Fe(U){const le=Ve(235);return le.flags|=64,le.expression=l().parenthesizeLeftSideOfAccess(U,!0),le.transformFlags|=ms(le.expression)|1,le}function et(U,le){return ce.assert(!!(U.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),U.expression!==le?s(Fe(le),U):U}function Pe(U,le){const Ae=Ve(236);switch(Ae.keywordToken=U,Ae.name=le,Ae.transformFlags|=ms(Ae.name),U){case 105:Ae.transformFlags|=1024;break;case 102:Ae.transformFlags|=32;break;default:return ce.assertNever(U)}return Ae.flowNode=void 0,Ae}function dt(U,le){return U.name!==le?s(Pe(U.keywordToken,le),U):U}function Ie(U,le){const Ae=Ve(239);return Ae.expression=U,Ae.literal=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.literal)|1024,Ae}function ct(U,le,Ae){return U.expression!==le||U.literal!==Ae?s(Ie(le,Ae),U):U}function Ct(){const U=Ve(240);return U.transformFlags|=1024,U}function Lt(U,le){const Ae=Ve(241);return Ae.statements=Be(U),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.statements),Ae.jsDoc=void 0,Ae.locals=void 0,Ae.nextContainer=void 0,Ae}function Ze(U,le){return U.statements!==le?s(Lt(le,U.multiLine),U):U}function Ke(U,le){const Ae=Ve(243);return Ae.modifiers=Bd(U),Ae.declarationList=ls(le)?na(le):le,Ae.transformFlags|=cp(Ae.modifiers)|ms(Ae.declarationList),dk(Ae.modifiers)&2&&(Ae.transformFlags=1),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function st(U,le,Ae){return U.modifiers!==le||U.declarationList!==Ae?s(Ke(le,Ae),U):U}function It(){const U=Ve(242);return U.jsDoc=void 0,U}function Yt(U){const le=Ve(244);return le.expression=l().parenthesizeExpressionOfExpressionStatement(U),le.transformFlags|=ms(le.expression),le.jsDoc=void 0,le.flowNode=void 0,le}function Et(U,le){return U.expression!==le?s(Yt(le),U):U}function at(U,le,Ae){const rt=Ve(245);return rt.expression=U,rt.thenStatement=w2(le),rt.elseStatement=w2(Ae),rt.transformFlags|=ms(rt.expression)|ms(rt.thenStatement)|ms(rt.elseStatement),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Qt(U,le,Ae,rt){return U.expression!==le||U.thenStatement!==Ae||U.elseStatement!==rt?s(at(le,Ae,rt),U):U}function nn(U,le){const Ae=Ve(246);return Ae.statement=w2(U),Ae.expression=le,Ae.transformFlags|=ms(Ae.statement)|ms(Ae.expression),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function Rn(U,le,Ae){return U.statement!==le||U.expression!==Ae?s(nn(le,Ae),U):U}function cn(U,le){const Ae=Ve(247);return Ae.expression=U,Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.expression)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function qt(U,le,Ae){return U.expression!==le||U.statement!==Ae?s(cn(le,Ae),U):U}function Kt(U,le,Ae,rt){const Dn=Ve(248);return Dn.initializer=U,Dn.condition=le,Dn.incrementor=Ae,Dn.statement=w2(rt),Dn.transformFlags|=ms(Dn.initializer)|ms(Dn.condition)|ms(Dn.incrementor)|ms(Dn.statement),Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn}function wr(U,le,Ae,rt,Dn){return U.initializer!==le||U.condition!==Ae||U.incrementor!==rt||U.statement!==Dn?s(Kt(le,Ae,rt,Dn),U):U}function Wr(U,le,Ae){const rt=Ve(249);return rt.initializer=U,rt.expression=le,rt.statement=w2(Ae),rt.transformFlags|=ms(rt.initializer)|ms(rt.expression)|ms(rt.statement),rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.flowNode=void 0,rt}function jt(U,le,Ae,rt){return U.initializer!==le||U.expression!==Ae||U.statement!==rt?s(Wr(le,Ae,rt),U):U}function En(U,le,Ae,rt){const Dn=Ve(250);return Dn.awaitModifier=U,Dn.initializer=le,Dn.expression=l().parenthesizeExpressionForDisallowedComma(Ae),Dn.statement=w2(rt),Dn.transformFlags|=ms(Dn.awaitModifier)|ms(Dn.initializer)|ms(Dn.expression)|ms(Dn.statement)|1024,U&&(Dn.transformFlags|=128),Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn}function fr(U,le,Ae,rt,Dn){return U.awaitModifier!==le||U.initializer!==Ae||U.expression!==rt||U.statement!==Dn?s(En(le,Ae,rt,Dn),U):U}function Tr(U){const le=Ve(251);return le.label=Bm(U),le.transformFlags|=ms(le.label)|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function Vr(U,le){return U.label!==le?s(Tr(le),U):U}function Pn(U){const le=Ve(252);return le.label=Bm(U),le.transformFlags|=ms(le.label)|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function Fr(U,le){return U.label!==le?s(Pn(le),U):U}function Ki(U){const le=Ve(253);return le.expression=U,le.transformFlags|=ms(le.expression)|128|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function io(U,le){return U.expression!==le?s(Ki(le),U):U}function no(U,le){const Ae=Ve(254);return Ae.expression=U,Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.expression)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function os(U,le,Ae){return U.expression!==le||U.statement!==Ae?s(no(le,Ae),U):U}function Mo(U,le){const Ae=Ve(255);return Ae.expression=l().parenthesizeExpressionForDisallowedComma(U),Ae.caseBlock=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.caseBlock),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae.possiblyExhaustive=!1,Ae}function $i(U,le,Ae){return U.expression!==le||U.caseBlock!==Ae?s(Mo(le,Ae),U):U}function ki(U,le){const Ae=Ve(256);return Ae.label=Bm(U),Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.label)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function gc(U,le,Ae){return U.label!==le||U.statement!==Ae?s(ki(le,Ae),U):U}function Wl(U){const le=Ve(257);return le.expression=U,le.transformFlags|=ms(le.expression),le.jsDoc=void 0,le.flowNode=void 0,le}function Jc(U,le){return U.expression!==le?s(Wl(le),U):U}function au(U,le,Ae){const rt=Ve(258);return rt.tryBlock=U,rt.catchClause=le,rt.finallyBlock=Ae,rt.transformFlags|=ms(rt.tryBlock)|ms(rt.catchClause)|ms(rt.finallyBlock),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function qn(U,le,Ae,rt){return U.tryBlock!==le||U.catchClause!==Ae||U.finallyBlock!==rt?s(au(le,Ae,rt),U):U}function za(){const U=Ve(259);return U.jsDoc=void 0,U.flowNode=void 0,U}function Ia(U,le,Ae,rt){const Dn=pt(260);return Dn.name=Bm(U),Dn.exclamationToken=le,Dn.type=Ae,Dn.initializer=TE(rt),Dn.transformFlags|=XL(Dn.name)|ms(Dn.initializer)|(Dn.exclamationToken??Dn.type?1:0),Dn.jsDoc=void 0,Dn}function zi(U,le,Ae,rt,Dn){return U.name!==le||U.type!==rt||U.exclamationToken!==Ae||U.initializer!==Dn?s(Ia(le,Ae,rt,Dn),U):U}function na(U,le=0){const Ae=Ve(261);return Ae.flags|=le&7,Ae.declarations=Be(U),Ae.transformFlags|=cp(Ae.declarations)|4194304,le&7&&(Ae.transformFlags|=263168),le&4&&(Ae.transformFlags|=4),Ae}function _a(U,le){return U.declarations!==le?s(na(le,U.flags),U):U}function us(U,le,Ae,rt,Dn,Ci,gs){const Tu=pt(262);if(Tu.modifiers=Bd(U),Tu.asteriskToken=le,Tu.name=Bm(Ae),Tu.typeParameters=Bd(rt),Tu.parameters=Be(Dn),Tu.type=Ci,Tu.body=gs,!Tu.body||dk(Tu.modifiers)&2)Tu.transformFlags=1;else{const tg=dk(Tu.modifiers)&512,mS=!!Tu.asteriskToken,gg=tg&&mS;Tu.transformFlags=cp(Tu.modifiers)|ms(Tu.asteriskToken)|XL(Tu.name)|cp(Tu.typeParameters)|cp(Tu.parameters)|ms(Tu.type)|ms(Tu.body)&-67108865|(gg?128:tg?256:mS?2048:0)|(Tu.typeParameters||Tu.type?1:0)|4194304}return Tu.typeArguments=void 0,Tu.jsDoc=void 0,Tu.locals=void 0,Tu.nextContainer=void 0,Tu.endFlowNode=void 0,Tu.returnFlowNode=void 0,Tu}function Au(U,le,Ae,rt,Dn,Ci,gs,Tu){return U.modifiers!==le||U.asteriskToken!==Ae||U.name!==rt||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs||U.body!==Tu?Qu(us(le,Ae,rt,Dn,Ci,gs,Tu),U):U}function Qu(U,le){return U!==le&&U.modifiers===le.modifiers&&(U.modifiers=le.modifiers),Le(U,le)}function Cu(U,le,Ae,rt,Dn){const Ci=pt(263);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),dk(Ci.modifiers)&2?Ci.transformFlags=1:(Ci.transformFlags|=cp(Ci.modifiers)|XL(Ci.name)|cp(Ci.typeParameters)|cp(Ci.heritageClauses)|cp(Ci.members)|(Ci.typeParameters?1:0)|1024,Ci.transformFlags&8192&&(Ci.transformFlags|=1)),Ci.jsDoc=void 0,Ci}function yf(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(Cu(le,Ae,rt,Dn,Ci),U):U}function w_(U,le,Ae,rt,Dn){const Ci=pt(264);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),Ci.transformFlags=1,Ci.jsDoc=void 0,Ci}function Eu(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(w_(le,Ae,rt,Dn,Ci),U):U}function He(U,le,Ae,rt){const Dn=pt(265);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.typeParameters=Bd(Ae),Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Hn(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.type!==Dn?s(He(le,Ae,rt,Dn),U):U}function dr(U,le,Ae){const rt=pt(266);return rt.modifiers=Bd(U),rt.name=Bm(le),rt.members=Be(Ae),rt.transformFlags|=cp(rt.modifiers)|ms(rt.name)|cp(rt.members)|1,rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function Mr(U,le,Ae,rt){return U.modifiers!==le||U.name!==Ae||U.members!==rt?s(dr(le,Ae,rt),U):U}function Pr(U,le,Ae,rt=0){const Dn=pt(267);return Dn.modifiers=Bd(U),Dn.flags|=rt&2088,Dn.name=le,Dn.body=Ae,dk(Dn.modifiers)&2?Dn.transformFlags=1:Dn.transformFlags|=cp(Dn.modifiers)|ms(Dn.name)|ms(Dn.body)|1,Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Bt(U,le,Ae,rt){return U.modifiers!==le||U.name!==Ae||U.body!==rt?s(Pr(le,Ae,rt,U.flags),U):U}function ln(U){const le=Ve(268);return le.statements=Be(U),le.transformFlags|=cp(le.statements),le.jsDoc=void 0,le}function Wn(U,le){return U.statements!==le?s(ln(le),U):U}function $r(U){const le=Ve(269);return le.clauses=Be(U),le.transformFlags|=cp(le.clauses),le.locals=void 0,le.nextContainer=void 0,le}function Ge(U,le){return U.clauses!==le?s($r(le),U):U}function Br(U){const le=pt(270);return le.name=Bm(U),le.transformFlags|=CG(le.name)|1,le.modifiers=void 0,le.jsDoc=void 0,le}function Ei(U,le){return U.name!==le?Ln(Br(le),U):U}function Ln(U,le){return U!==le&&(U.modifiers=le.modifiers),s(U,le)}function Sr(U,le,Ae,rt){const Dn=pt(271);return Dn.modifiers=Bd(U),Dn.name=Bm(Ae),Dn.isTypeOnly=le,Dn.moduleReference=rt,Dn.transformFlags|=cp(Dn.modifiers)|CG(Dn.name)|ms(Dn.moduleReference),j0(Dn.moduleReference)||(Dn.transformFlags|=1),Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn}function yi(U,le,Ae,rt,Dn){return U.modifiers!==le||U.isTypeOnly!==Ae||U.name!==rt||U.moduleReference!==Dn?s(Sr(le,Ae,rt,Dn),U):U}function go(U,le,Ae,rt){const Dn=Ve(272);return Dn.modifiers=Bd(U),Dn.importClause=le,Dn.moduleSpecifier=Ae,Dn.assertClause=rt,Dn.transformFlags|=ms(Dn.importClause)|ms(Dn.moduleSpecifier),Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn}function Ao(U,le,Ae,rt,Dn){return U.modifiers!==le||U.importClause!==Ae||U.moduleSpecifier!==rt||U.assertClause!==Dn?s(go(le,Ae,rt,Dn),U):U}function Io(U,le,Ae){const rt=pt(273);return rt.isTypeOnly=U,rt.name=le,rt.namedBindings=Ae,rt.transformFlags|=ms(rt.name)|ms(rt.namedBindings),U&&(rt.transformFlags|=1),rt.transformFlags&=-67108865,rt}function ze(U,le,Ae,rt){return U.isTypeOnly!==le||U.name!==Ae||U.namedBindings!==rt?s(Io(le,Ae,rt),U):U}function Ce(U,le){const Ae=Ve(300);return Ae.elements=Be(U),Ae.multiLine=le,Ae.transformFlags|=4,Ae}function kt(U,le,Ae){return U.elements!==le||U.multiLine!==Ae?s(Ce(le,Ae),U):U}function qe(U,le){const Ae=Ve(301);return Ae.name=U,Ae.value=le,Ae.transformFlags|=4,Ae}function Mt(U,le,Ae){return U.name!==le||U.value!==Ae?s(qe(le,Ae),U):U}function ge(U,le){const Ae=Ve(302);return Ae.assertClause=U,Ae.multiLine=le,Ae}function mn(U,le,Ae){return U.assertClause!==le||U.multiLine!==Ae?s(ge(le,Ae),U):U}function Jn(U){const le=pt(274);return le.name=U,le.transformFlags|=ms(le.name),le.transformFlags&=-67108865,le}function Nn(U,le){return U.name!==le?s(Jn(le),U):U}function Lr(U){const le=pt(280);return le.name=U,le.transformFlags|=ms(le.name)|32,le.transformFlags&=-67108865,le}function qi(U,le){return U.name!==le?s(Lr(le),U):U}function vo(U){const le=Ve(275);return le.elements=Be(U),le.transformFlags|=cp(le.elements),le.transformFlags&=-67108865,le}function Ro(U,le){return U.elements!==le?s(vo(le),U):U}function Ts(U,le,Ae){const rt=pt(276);return rt.isTypeOnly=U,rt.propertyName=le,rt.name=Ae,rt.transformFlags|=ms(rt.propertyName)|ms(rt.name),rt.transformFlags&=-67108865,rt}function Cc(U,le,Ae,rt){return U.isTypeOnly!==le||U.propertyName!==Ae||U.name!==rt?s(Ts(le,Ae,rt),U):U}function Pc(U,le,Ae){const rt=pt(277);return rt.modifiers=Bd(U),rt.isExportEquals=le,rt.expression=le?l().parenthesizeRightSideOfBinary(64,void 0,Ae):l().parenthesizeExpressionOfExportDefault(Ae),rt.transformFlags|=cp(rt.modifiers)|ms(rt.expression),rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function hc(U,le,Ae){return U.modifiers!==le||U.expression!==Ae?s(Pc(le,U.isExportEquals,Ae),U):U}function bl(U,le,Ae,rt,Dn){const Ci=pt(278);return Ci.modifiers=Bd(U),Ci.isTypeOnly=le,Ci.exportClause=Ae,Ci.moduleSpecifier=rt,Ci.assertClause=Dn,Ci.transformFlags|=cp(Ci.modifiers)|ms(Ci.exportClause)|ms(Ci.moduleSpecifier),Ci.transformFlags&=-67108865,Ci.jsDoc=void 0,Ci}function Tc(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.isTypeOnly!==Ae||U.exportClause!==rt||U.moduleSpecifier!==Dn||U.assertClause!==Ci?Tf(bl(le,Ae,rt,Dn,Ci),U):U}function Tf(U,le){return U!==le&&U.modifiers===le.modifiers&&(U.modifiers=le.modifiers),s(U,le)}function ma(U){const le=Ve(279);return le.elements=Be(U),le.transformFlags|=cp(le.elements),le.transformFlags&=-67108865,le}function Bl(U,le){return U.elements!==le?s(ma(le),U):U}function G_(U,le,Ae){const rt=Ve(281);return rt.isTypeOnly=U,rt.propertyName=Bm(le),rt.name=Bm(Ae),rt.transformFlags|=ms(rt.propertyName)|ms(rt.name),rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function u_(U,le,Ae,rt){return U.isTypeOnly!==le||U.propertyName!==Ae||U.name!==rt?s(G_(le,Ae,rt),U):U}function xa(){const U=pt(282);return U.jsDoc=void 0,U}function Ym(U){const le=Ve(283);return le.expression=U,le.transformFlags|=ms(le.expression),le.transformFlags&=-67108865,le}function mf(U,le){return U.expression!==le?s(Ym(le),U):U}function Cp(U){return Ve(U)}function Yg(U,le,Ae=!1){const rt=xg(U,Ae?le&&l().parenthesizeNonArrayTypeOfPostfixType(le):le);return rt.postfix=Ae,rt}function xg(U,le){const Ae=Ve(U);return Ae.type=le,Ae}function Wy(U,le,Ae){return le.type!==Ae?s(Yg(U,Ae,le.postfix),le):le}function Og(U,le,Ae){return le.type!==Ae?s(xg(U,Ae),le):le}function pl(U,le){const Ae=pt(324);return Ae.parameters=Bd(U),Ae.type=le,Ae.transformFlags=cp(Ae.parameters)|(Ae.type?1:0),Ae.jsDoc=void 0,Ae.locals=void 0,Ae.nextContainer=void 0,Ae.typeArguments=void 0,Ae}function R_(U,le,Ae){return U.parameters!==le||U.type!==Ae?s(pl(le,Ae),U):U}function og(U,le=!1){const Ae=pt(329);return Ae.jsDocPropertyTags=Bd(U),Ae.isArrayType=le,Ae}function km(U,le,Ae){return U.jsDocPropertyTags!==le||U.isArrayType!==Ae?s(og(le,Ae),U):U}function M_(U){const le=Ve(316);return le.type=U,le}function oy(U,le){return U.type!==le?s(M_(le),U):U}function bE(U,le,Ae){const rt=pt(330);return rt.typeParameters=Bd(U),rt.parameters=Be(le),rt.type=Ae,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt}function hh(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?s(bE(le,Ae,rt),U):U}function qo(U){const le=AG(U.kind);return U.tagName.escapedText===ty(le)?U.tagName:zt(le)}function d_(U,le,Ae){const rt=Ve(U);return rt.tagName=le,rt.comment=Ae,rt}function Ka(U,le,Ae){const rt=pt(U);return rt.tagName=le,rt.comment=Ae,rt}function Qi(U,le,Ae,rt){const Dn=d_(352,U??zt("template"),rt);return Dn.constraint=le,Dn.typeParameters=Be(Ae),Dn}function Pm(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.constraint!==Ae||U.typeParameters!==rt||U.comment!==Dn?s(Qi(le,Ae,rt,Dn),U):U}function Ag(U,le,Ae,rt){const Dn=Ka(353,U??zt("typedef"),rt);return Dn.typeExpression=le,Dn.fullName=Ae,Dn.name=YY(Ae),Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function va(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.typeExpression!==Ae||U.fullName!==rt||U.comment!==Dn?s(Ag(le,Ae,rt,Dn),U):U}function x0(U,le,Ae,rt,Dn,Ci){const gs=Ka(348,U??zt("param"),Ci);return gs.typeExpression=rt,gs.name=le,gs.isNameFirst=!!Dn,gs.isBracketed=Ae,gs}function Nm(U,le=qo(U),Ae,rt,Dn,Ci,gs){return U.tagName!==le||U.name!==Ae||U.isBracketed!==rt||U.typeExpression!==Dn||U.isNameFirst!==Ci||U.comment!==gs?s(x0(le,Ae,rt,Dn,Ci,gs),U):U}function Md(U,le,Ae,rt,Dn,Ci){const gs=Ka(355,U??zt("prop"),Ci);return gs.typeExpression=rt,gs.name=le,gs.isNameFirst=!!Dn,gs.isBracketed=Ae,gs}function fe(U,le=qo(U),Ae,rt,Dn,Ci,gs){return U.tagName!==le||U.name!==Ae||U.isBracketed!==rt||U.typeExpression!==Dn||U.isNameFirst!==Ci||U.comment!==gs?s(Md(le,Ae,rt,Dn,Ci,gs),U):U}function _n(U,le,Ae,rt){const Dn=Ka(345,U??zt("callback"),rt);return Dn.typeExpression=le,Dn.fullName=Ae,Dn.name=YY(Ae),Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Xn(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.typeExpression!==Ae||U.fullName!==rt||U.comment!==Dn?s(_n(le,Ae,rt,Dn),U):U}function _i(U,le,Ae){const rt=d_(346,U??zt("overload"),Ae);return rt.typeExpression=le,rt}function $o(U,le=qo(U),Ae,rt){return U.tagName!==le||U.typeExpression!==Ae||U.comment!==rt?s(_i(le,Ae,rt),U):U}function Sc(U,le,Ae){const rt=d_(335,U??zt("augments"),Ae);return rt.class=le,rt}function xs(U,le=qo(U),Ae,rt){return U.tagName!==le||U.class!==Ae||U.comment!==rt?s(Sc(le,Ae,rt),U):U}function Fs(U,le,Ae){const rt=d_(336,U??zt("implements"),Ae);return rt.class=le,rt}function Tl(U,le,Ae){const rt=d_(354,U??zt("see"),Ae);return rt.name=le,rt}function fc(U,le,Ae,rt){return U.tagName!==le||U.name!==Ae||U.comment!==rt?s(Tl(le,Ae,rt),U):U}function Gd(U){const le=Ve(317);return le.name=U,le}function ag(U,le){return U.name!==le?s(Gd(le),U):U}function ah(U,le){const Ae=Ve(318);return Ae.left=U,Ae.right=le,Ae.transformFlags|=ms(Ae.left)|ms(Ae.right),Ae}function bm(U,le,Ae){return U.left!==le||U.right!==Ae?s(ah(le,Ae),U):U}function ay(U,le){const Ae=Ve(331);return Ae.name=U,Ae.text=le,Ae}function yp(U,le,Ae){return U.name!==le?s(ay(le,Ae),U):U}function Cg(U,le){const Ae=Ve(332);return Ae.name=U,Ae.text=le,Ae}function wp(U,le,Ae){return U.name!==le?s(Cg(le,Ae),U):U}function Xp(U,le){const Ae=Ve(333);return Ae.name=U,Ae.text=le,Ae}function r1(U,le,Ae){return U.name!==le?s(Xp(le,Ae),U):U}function sg(U,le=qo(U),Ae,rt){return U.tagName!==le||U.class!==Ae||U.comment!==rt?s(Fs(le,Ae,rt),U):U}function Jt(U,le,Ae){return d_(U,le??zt(AG(U)),Ae)}function ci(U,le,Ae=qo(le),rt){return le.tagName!==Ae||le.comment!==rt?s(Jt(U,Ae,rt),le):le}function da(U,le,Ae,rt){const Dn=d_(U,le??zt(AG(U)),rt);return Dn.typeExpression=Ae,Dn}function Hu(U,le,Ae=qo(le),rt,Dn){return le.tagName!==Ae||le.typeExpression!==rt||le.comment!==Dn?s(da(U,Ae,rt,Dn),le):le}function t_(U,le){return d_(334,U,le)}function A_(U,le,Ae){return U.tagName!==le||U.comment!==Ae?s(t_(le,Ae),U):U}function gd(U,le,Ae){const rt=Ka(347,U??zt(AG(347)),Ae);return rt.typeExpression=le,rt.locals=void 0,rt.nextContainer=void 0,rt}function Dg(U,le=qo(U),Ae,rt){return U.tagName!==le||U.typeExpression!==Ae||U.comment!==rt?s(gd(le,Ae,rt),U):U}function um(U){const le=Ve(328);return le.text=U,le}function Ig(U,le){return U.text!==le?s(um(le),U):U}function P_(U,le){const Ae=Ve(327);return Ae.comment=U,Ae.tags=Bd(le),Ae}function Qm(U,le,Ae){return U.comment!==le||U.tags!==Ae?s(P_(le,Ae),U):U}function Bh(U,le,Ae){const rt=Ve(284);return rt.openingElement=U,rt.children=Be(le),rt.closingElement=Ae,rt.transformFlags|=ms(rt.openingElement)|cp(rt.children)|ms(rt.closingElement)|2,rt}function P1(U,le,Ae,rt){return U.openingElement!==le||U.children!==Ae||U.closingElement!==rt?s(Bh(le,Ae,rt),U):U}function VT(U,le,Ae){const rt=Ve(285);return rt.tagName=U,rt.typeArguments=Bd(le),rt.attributes=Ae,rt.transformFlags|=ms(rt.tagName)|cp(rt.typeArguments)|ms(rt.attributes)|2,rt.typeArguments&&(rt.transformFlags|=1),rt}function Zm(U,le,Ae,rt){return U.tagName!==le||U.typeArguments!==Ae||U.attributes!==rt?s(VT(le,Ae,rt),U):U}function fb(U,le,Ae){const rt=Ve(286);return rt.tagName=U,rt.typeArguments=Bd(le),rt.attributes=Ae,rt.transformFlags|=ms(rt.tagName)|cp(rt.typeArguments)|ms(rt.attributes)|2,le&&(rt.transformFlags|=1),rt}function FS(U,le,Ae,rt){return U.tagName!==le||U.typeArguments!==Ae||U.attributes!==rt?s(fb(le,Ae,rt),U):U}function dT(U){const le=Ve(287);return le.tagName=U,le.transformFlags|=ms(le.tagName)|2,le}function $0(U,le){return U.tagName!==le?s(dT(le),U):U}function xv(U,le,Ae){const rt=Ve(288);return rt.openingFragment=U,rt.children=Be(le),rt.closingFragment=Ae,rt.transformFlags|=ms(rt.openingFragment)|cp(rt.children)|ms(rt.closingFragment)|2,rt}function t2(U,le,Ae,rt){return U.openingFragment!==le||U.children!==Ae||U.closingFragment!==rt?s(xv(le,Ae,rt),U):U}function q0(U,le){const Ae=Ve(12);return Ae.text=U,Ae.containsOnlyTriviaWhiteSpaces=!!le,Ae.transformFlags|=2,Ae}function N1(U,le,Ae){return U.text!==le||U.containsOnlyTriviaWhiteSpaces!==Ae?s(q0(le,Ae),U):U}function i0(){const U=Ve(289);return U.transformFlags|=2,U}function nt(){const U=Ve(290);return U.transformFlags|=2,U}function pr(U,le){const Ae=pt(291);return Ae.name=U,Ae.initializer=le,Ae.transformFlags|=ms(Ae.name)|ms(Ae.initializer)|2,Ae}function vi(U,le,Ae){return U.name!==le||U.initializer!==Ae?s(pr(le,Ae),U):U}function Di(U){const le=pt(292);return le.properties=Be(U),le.transformFlags|=cp(le.properties)|2,le}function Ee(U,le){return U.properties!==le?s(Di(le),U):U}function Gt(U){const le=Ve(293);return le.expression=U,le.transformFlags|=ms(le.expression)|2,le}function sr(U,le){return U.expression!==le?s(Gt(le),U):U}function Ii(U,le){const Ae=Ve(294);return Ae.dotDotDotToken=U,Ae.expression=le,Ae.transformFlags|=ms(Ae.dotDotDotToken)|ms(Ae.expression)|2,Ae}function Ja(U,le){return U.expression!==le?s(Ii(U.dotDotDotToken,le),U):U}function wa(U,le){const Ae=Ve(295);return Ae.namespace=U,Ae.name=le,Ae.transformFlags|=ms(Ae.namespace)|ms(Ae.name)|2,Ae}function wi(U,le,Ae){return U.namespace!==le||U.name!==Ae?s(wa(le,Ae),U):U}function Vl(U,le){const Ae=Ve(296);return Ae.expression=l().parenthesizeExpressionForDisallowedComma(U),Ae.statements=Be(le),Ae.transformFlags|=ms(Ae.expression)|cp(Ae.statements),Ae.jsDoc=void 0,Ae}function Uf(U,le,Ae){return U.expression!==le||U.statements!==Ae?s(Vl(le,Ae),U):U}function Y_(U){const le=Ve(297);return le.statements=Be(U),le.transformFlags=cp(le.statements),le}function Fg(U,le){return U.statements!==le?s(Y_(le),U):U}function sv(U,le){const Ae=Ve(298);switch(Ae.token=U,Ae.types=Be(le),Ae.transformFlags|=cp(Ae.types),U){case 96:Ae.transformFlags|=1024;break;case 119:Ae.transformFlags|=1;break;default:return ce.assertNever(U)}return Ae}function by(U,le){return U.types!==le?s(sv(U.token,le),U):U}function _b(U,le){const Ae=Ve(299);return Ae.variableDeclaration=R2(U),Ae.block=le,Ae.transformFlags|=ms(Ae.variableDeclaration)|ms(Ae.block)|(U?0:64),Ae.locals=void 0,Ae.nextContainer=void 0,Ae}function f_(U,le,Ae){return U.variableDeclaration!==le||U.block!==Ae?s(_b(le,Ae),U):U}function zh(U,le){const Ae=pt(303);return Ae.name=Bm(U),Ae.initializer=l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=XL(Ae.name)|ms(Ae.initializer),Ae.modifiers=void 0,Ae.questionToken=void 0,Ae.exclamationToken=void 0,Ae.jsDoc=void 0,Ae}function i1(U,le,Ae){return U.name!==le||U.initializer!==Ae?n2(zh(le,Ae),U):U}function n2(U,le){return U!==le&&(U.modifiers=le.modifiers,U.questionToken=le.questionToken,U.exclamationToken=le.exclamationToken),s(U,le)}function Vv(U,le){const Ae=pt(304);return Ae.name=Bm(U),Ae.objectAssignmentInitializer=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=CG(Ae.name)|ms(Ae.objectAssignmentInitializer)|1024,Ae.equalsToken=void 0,Ae.modifiers=void 0,Ae.questionToken=void 0,Ae.exclamationToken=void 0,Ae.jsDoc=void 0,Ae}function su(U,le,Ae){return U.name!==le||U.objectAssignmentInitializer!==Ae?gC(Vv(le,Ae),U):U}function gC(U,le){return U!==le&&(U.modifiers=le.modifiers,U.questionToken=le.questionToken,U.exclamationToken=le.exclamationToken,U.equalsToken=le.equalsToken),s(U,le)}function eg(U){const le=pt(305);return le.expression=l().parenthesizeExpressionForDisallowedComma(U),le.transformFlags|=ms(le.expression)|128|65536,le.jsDoc=void 0,le}function Uv(U,le){return U.expression!==le?s(eg(le),U):U}function Rk(U,le){const Ae=pt(306);return Ae.name=Bm(U),Ae.initializer=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=ms(Ae.name)|ms(Ae.initializer)|1,Ae.jsDoc=void 0,Ae}function Lb(U,le,Ae){return U.name!==le||U.initializer!==Ae?s(Rk(le,Ae),U):U}function fn(U,le,Ae){const rt=r.createBaseSourceFileNode(312);return rt.statements=Be(U),rt.endOfFileToken=le,rt.flags|=Ae,rt.text="",rt.fileName="",rt.path="",rt.resolvedPath="",rt.originalFileName="",rt.languageVersion=0,rt.languageVariant=0,rt.scriptKind=0,rt.isDeclarationFile=!1,rt.hasNoDefaultLib=!1,rt.transformFlags|=cp(rt.statements)|ms(rt.endOfFileToken),rt.locals=void 0,rt.nextContainer=void 0,rt.endFlowNode=void 0,rt.nodeCount=0,rt.identifierCount=0,rt.symbolCount=0,rt.parseDiagnostics=void 0,rt.bindDiagnostics=void 0,rt.bindSuggestionDiagnostics=void 0,rt.lineMap=void 0,rt.externalModuleIndicator=void 0,rt.setExternalModuleIndicator=void 0,rt.pragmas=void 0,rt.checkJsDirective=void 0,rt.referencedFiles=void 0,rt.typeReferenceDirectives=void 0,rt.libReferenceDirectives=void 0,rt.amdDependencies=void 0,rt.commentDirectives=void 0,rt.identifiers=void 0,rt.packageJsonLocations=void 0,rt.packageJsonScope=void 0,rt.imports=void 0,rt.moduleAugmentations=void 0,rt.ambientModuleNames=void 0,rt.resolvedModules=void 0,rt.classifiableNames=void 0,rt.impliedNodeFormat=void 0,rt}function $n(U){const le=Object.create(U.redirectTarget);return Object.defineProperties(le,{id:{get(){return this.redirectInfo.redirectTarget.id},set(Ae){this.redirectInfo.redirectTarget.id=Ae}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(Ae){this.redirectInfo.redirectTarget.symbol=Ae}}}),le.redirectInfo=U,le}function ri(U){const le=$n(U.redirectInfo);return le.flags|=U.flags&-17,le.fileName=U.fileName,le.path=U.path,le.resolvedPath=U.resolvedPath,le.originalFileName=U.originalFileName,le.packageJsonLocations=U.packageJsonLocations,le.packageJsonScope=U.packageJsonScope,le.emitNode=void 0,le}function Li(U){const le=r.createBaseSourceFileNode(312);le.flags|=U.flags&-17;for(const Ae in U)if(!(ef(le,Ae)||!ef(U,Ae))){if(Ae==="emitNode"){le.emitNode=void 0;continue}le[Ae]=U[Ae]}return le}function yo(U){const le=U.redirectInfo?ri(U):Li(U);return tc(le,U),le}function jo(U,le,Ae,rt,Dn,Ci,gs){const Tu=yo(U);return Tu.statements=Be(le),Tu.isDeclarationFile=Ae,Tu.referencedFiles=rt,Tu.typeReferenceDirectives=Dn,Tu.hasNoDefaultLib=Ci,Tu.libReferenceDirectives=gs,Tu.transformFlags=cp(Tu.statements)|ms(Tu.endOfFileToken),Tu}function Oo(U,le,Ae=U.isDeclarationFile,rt=U.referencedFiles,Dn=U.typeReferenceDirectives,Ci=U.hasNoDefaultLib,gs=U.libReferenceDirectives){return U.statements!==le||U.isDeclarationFile!==Ae||U.referencedFiles!==rt||U.typeReferenceDirectives!==Dn||U.hasNoDefaultLib!==Ci||U.libReferenceDirectives!==gs?s(jo(U,le,Ae,rt,Dn,Ci,gs),U):U}function ca(U,le=Zn){const Ae=Ve(313);return Ae.prepends=le,Ae.sourceFiles=U,Ae.syntheticFileReferences=void 0,Ae.syntheticTypeReferences=void 0,Ae.syntheticLibReferences=void 0,Ae.hasNoDefaultLib=void 0,Ae}function Fc(U,le,Ae=Zn){return U.sourceFiles!==le||U.prepends!==Ae?s(ca(le,Ae),U):U}function ks(U,le,Ae){const rt=Ve(314);return rt.prologues=U,rt.syntheticReferences=le,rt.texts=Ae,rt.fileName="",rt.text="",rt.referencedFiles=Zn,rt.libReferenceDirectives=Zn,rt.getLineAndCharacterOfPosition=Dn=>Ah(rt,Dn),rt}function Xs(U,le){const Ae=Ve(U);return Ae.data=le,Ae}function Vs(U){return Xs(307,U)}function wu(U,le){const Ae=Xs(308,U);return Ae.texts=le,Ae}function Yp(U,le){return Xs(le?310:309,U)}function Q(U){const le=Ve(311);return le.data=U.data,le.section=U,le}function ft(){const U=Ve(315);return U.javascriptText="",U.declarationText="",U}function br(U,le=!1,Ae){const rt=Ve(237);return rt.type=U,rt.isSpread=le,rt.tupleNameSource=Ae,rt}function oo(U){const le=Ve(358);return le._children=U,le}function Js(U){const le=Ve(359);return le.original=U,vr(le,U),le}function pu(U,le){const Ae=Ve(360);return Ae.expression=U,Ae.original=le,Ae.transformFlags|=ms(Ae.expression)|1,vr(Ae,le),Ae}function fl(U,le){return U.expression!==le?s(pu(le,U.original),U):U}function ju(U){if(rh(U)&&!uP(U)&&!U.original&&!U.emitNode&&!U.id){if(x3(U))return U.elements;if(ys(U)&&TEe(U.operatorToken))return[U.left,U.right]}return U}function L_(U){const le=Ve(361);return le.elements=Be(kx(U,ju)),le.transformFlags|=cp(le.elements),le}function Cl(U,le){return U.elements!==le?s(L_(le),U):U}function o0(U,le){const Ae=Ve(362);return Ae.expression=U,Ae.thisArg=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.thisArg),Ae}function oa(U,le,Ae){return U.expression!==le||U.thisArg!==Ae?s(o0(le,Ae),U):U}function dD(U){const le=ut(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),wY(le,{...U.emitNode.autoGenerate}),le}function a0(U){const le=ut(U.escapedText);le.flags|=U.flags&-17,le.jsDoc=U.jsDoc,le.flowNode=U.flowNode,le.symbol=U.symbol,le.transformFlags=U.transformFlags,tc(le,U);const Ae=H7(U);return Ae&&qN(le,Ae),le}function Kx(U){const le=cr(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),wY(le,{...U.emitNode.autoGenerate}),le}function hC(U){const le=cr(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),le}function WP(U){if(U===void 0)return U;if(tl(U))return yo(U);if(Om(U))return dD(U);if(An(U))return a0(U);if(cR(U))return Kx(U);if(Gu(U))return hC(U);const le=aR(U.kind)?r.createBaseNode(U.kind):r.createBaseTokenNode(U.kind);le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U);for(const Ae in U)ef(le,Ae)||!ef(U,Ae)||(le[Ae]=U[Ae]);return le}function BP(U,le,Ae){return ya(Al(void 0,void 0,void 0,void 0,le?[le]:[],void 0,Lt(U,!0)),void 0,Ae?[Ae]:[])}function LA(U,le,Ae){return ya(N_(void 0,void 0,le?[le]:[],void 0,void 0,Lt(U,!0)),void 0,Ae?[Ae]:[])}function OA(){return vy(ht("0"))}function pD(U){return Pc(void 0,!1,U)}function yC(U){return bl(void 0,!1,ma([G_(!1,void 0,U)]))}function vC(U,le){return le==="null"?Ne.createStrictEquality(U,Cr()):le==="undefined"?Ne.createStrictEquality(U,OA()):Ne.createStrictEquality(Gv(U),Dt(le))}function zP(U,le){return le==="null"?Ne.createStrictInequality(U,Cr()):le==="undefined"?Ne.createStrictInequality(U,OA()):Ne.createStrictInequality(Gv(U),Dt(le))}function Xx(U,le,Ae){return R8(U)?K_(Eg(U,void 0,le),void 0,void 0,Ae):ya(Fh(U,le),void 0,Ae)}function dx(U,le,Ae){return Xx(U,"bind",[le,...Ae])}function WS(U,le,Ae){return Xx(U,"call",[le,...Ae])}function px(U,le,Ae){return Xx(U,"apply",[le,Ae])}function j_(U,le,Ae){return Xx(zt(U),le,Ae)}function GP(U,le){return Xx(U,"slice",le===void 0?[]:[Hv(le)])}function oO(U,le){return Xx(U,"concat",le)}function dS(U,le,Ae){return j_("Object","defineProperty",[U,Hv(le),Ae])}function FA(U,le){return j_("Object","getOwnPropertyDescriptor",[U,Hv(le)])}function bC(U,le,Ae){return j_("Reflect","get",Ae?[U,le,Ae]:[U,le])}function wm(U,le,Ae,rt){return j_("Reflect","set",rt?[U,le,Ae,rt]:[U,le,Ae])}function db(U,le,Ae){return Ae?(U.push(zh(le,Ae)),!0):!1}function o1(U,le){const Ae=[];db(Ae,"enumerable",Hv(U.enumerable)),db(Ae,"configurable",Hv(U.configurable));let rt=db(Ae,"writable",Hv(U.writable));rt=db(Ae,"value",U.value)||rt;let Dn=db(Ae,"get",U.get);return Dn=db(Ae,"set",U.set)||Dn,ce.assert(!(rt&&Dn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Xm(Ae,!le)}function Q_(U,le){switch(U.kind){case 217:return Qc(U,le);case 216:return Do(U,U.type,le);case 234:return X(U,le,U.type);case 238:return we(U,le,U.type);case 235:return ae(U,le);case 360:return fl(U,le)}}function je(U){return sb(U)&&rh(U)&&rh(cE(U))&&rh(lI(U))&&!gt(U7(U))&&!gt(y3(U))}function Vt(U,le,Ae=15){return U&&Goe(U,Ae)&&!je(U)?Q_(U,Vt(U.expression,le)):le}function zn(U,le,Ae){if(!le)return U;const rt=gc(le,le.label,iS(le.statement)?zn(U,le.statement):U);return Ae&&Ae(le),rt}function zr(U,le){const Ae=_g(U);switch(Ae.kind){case 80:return le;case 110:case 9:case 10:case 11:return!1;case 209:return Ae.elements.length!==0;case 210:return Ae.properties.length>0;default:return!0}}function xi(U,le,Ae,rt=!1){const Dn=rv(U,15);let Ci,gs;return Z1(Dn)?(Ci=gr(),gs=Dn):wJ(Dn)?(Ci=gr(),gs=Ae!==void 0&&Ae<2?vr(zt("_super"),Dn):Dn):Tp(Dn)&8192?(Ci=OA(),gs=l().parenthesizeLeftSideOfAccess(Dn,!1)):sa(Dn)?zr(Dn.expression,rt)?(Ci=Wt(le),gs=Fh(vr(Ne.createAssignment(Ci,Dn.expression),Dn.expression),Dn.name),vr(gs,Dn)):(Ci=Dn.expression,gs=Dn):Ed(Dn)?zr(Dn.expression,rt)?(Ci=Wt(le),gs=Ev(vr(Ne.createAssignment(Ci,Dn.expression),Dn.expression),Dn.argumentExpression),vr(gs,Dn)):(Ci=Dn.expression,gs=Dn):(Ci=OA(),gs=l().parenthesizeLeftSideOfAccess(U,!1)),{target:gs,thisArg:Ci}}function xo(U,le){return Fh(Za(Xm([Kn(void 0,"value",[Oc(void 0,void 0,U,void 0,void 0,void 0)],Lt([Yt(le)]))])),"value")}function Wc(U){return U.length>10?L_(U):Em(U,Ne.createComma)}function hu(U,le,Ae,rt=0,Dn){const Ci=Dn?U&&X_e(U):o_(U);if(Ci&&An(Ci)&&!Om(Ci)){const gs=kl(vr(WP(Ci),Ci),Ci.parent);return rt|=Tp(Ci),Ae||(rt|=96),le||(rt|=3072),rt&&Sa(gs,rt),gs}return kn(U)}function _c(U,le,Ae){return hu(U,le,Ae,98304)}function Sl(U,le,Ae,rt){return hu(U,le,Ae,32768,rt)}function kf(U,le,Ae){return hu(U,le,Ae,16384)}function Rp(U,le,Ae){return hu(U,le,Ae)}function hn(U,le,Ae,rt){const Dn=Fh(U,rh(le)?le:WP(le));vr(Dn,le);let Ci=0;return rt||(Ci|=96),Ae||(Ci|=3072),Ci&&Sa(Dn,Ci),Dn}function v_(U,le,Ae,rt){return U&&il(le,1)?hn(U,hu(le),Ae,rt):kf(le,Ae,rt)}function yh(U,le,Ae,rt){const Dn=BS(U,le,0,Ae);return N2(U,le,Dn,rt)}function fm(U){return Wp(U.expression)&&U.expression.text==="use strict"}function mx(){return x1(Yt(Dt("use strict")))}function BS(U,le,Ae=0,rt){ce.assert(le.length===0,"Prologue directives should be at the first statement in the target statements array");let Dn=!1;const Ci=U.length;for(;AeTu&&mS.splice(Dn,0,...le.slice(Tu,tg)),Tu>gs&&mS.splice(rt,0,...le.slice(gs,Tu)),gs>Ci&&mS.splice(Ae,0,...le.slice(Ci,gs)),Ci>0)if(Ae===0)mS.splice(0,0,...le.slice(0,Ci));else{const gg=new Map;for(let Nh=0;Nh=0;Nh--){const r2=le[Nh];gg.has(r2.expression.text)||mS.unshift(r2)}}return L8(U)?vr(Be(mS,U.hasTrailingComma),U):U}function VP(U,le){let Ae;return typeof le=="number"?Ae=so(le):Ae=le,Hh(U)?Gs(U,Ae,U.name,U.constraint,U.default):Pu(U)?_u(U,Ae,U.dotDotDotToken,U.name,U.questionToken,U.type,U.initializer):mW(U)?zo(U,Ae,U.typeParameters,U.parameters,U.type):Np(U)?mc(U,Ae,U.name,U.questionToken,U.type):Os(U)?ta(U,Ae,U.name,U.questionToken??U.exclamationToken,U.type,U.initializer):Jh(U)?jc(U,Ae,U.name,U.questionToken,U.typeParameters,U.parameters,U.type):em(U)?Lo(U,Ae,U.asteriskToken,U.name,U.questionToken,U.typeParameters,U.parameters,U.type,U.body):pg(U)?Jr(U,Ae,U.parameters,U.body):tm(U)?_o(U,Ae,U.name,U.parameters,U.type,U.body):Ep(U)?gn(U,Ae,U.name,U.parameters,U.body):Xb(U)?co(U,Ae,U.parameters,U.type):Dm(U)?du(U,Ae,U.asteriskToken,U.name,U.typeParameters,U.parameters,U.type,U.body):ph(U)?zp(U,Ae,U.typeParameters,U.parameters,U.type,U.equalsGreaterThanToken,U.body):B0(U)?P(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):Dh(U)?st(U,Ae,U.declarationList):b0(U)?Au(U,Ae,U.asteriskToken,U.name,U.typeParameters,U.parameters,U.type,U.body):Kc(U)?yf(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):Kp(U)?Eu(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):mg(U)?Hn(U,Ae,U.name,U.typeParameters,U.type):Ih(U)?Mr(U,Ae,U.name,U.members):xp(U)?Bt(U,Ae,U.name,U.body):kh(U)?yi(U,Ae,U.isTypeOnly,U.name,U.moduleReference):Fv(U)?Ao(U,Ae,U.importClause,U.moduleSpecifier,U.assertClause):Ly(U)?hc(U,Ae,U.expression):mh(U)?Tc(U,Ae,U.isTypeOnly,U.exportClause,U.moduleSpecifier,U.assertClause):ce.assertNever(U)}function UP(U,le){return Pu(U)?_u(U,le,U.dotDotDotToken,U.name,U.questionToken,U.type,U.initializer):Os(U)?ta(U,le,U.name,U.questionToken??U.exclamationToken,U.type,U.initializer):em(U)?Lo(U,le,U.asteriskToken,U.name,U.questionToken,U.typeParameters,U.parameters,U.type,U.body):tm(U)?_o(U,le,U.name,U.parameters,U.type,U.body):Ep(U)?gn(U,le,U.name,U.parameters,U.body):B0(U)?P(U,le,U.name,U.typeParameters,U.heritageClauses,U.members):Kc(U)?yf(U,le,U.name,U.typeParameters,U.heritageClauses,U.members):ce.assertNever(U)}function Bd(U){return U?Be(U):void 0}function Bm(U){return typeof U=="string"?zt(U):U}function Hv(U){return typeof U=="string"?Dt(U):typeof U=="number"?ht(U):typeof U=="boolean"?U?ei():Gn():U}function TE(U){return U&&l().parenthesizeExpressionForDisallowedComma(U)}function A0(U){return typeof U=="number"?Ut(U):U}function w2(U){return U&&my(U)?vr(tc(It(),U),U):U}function R2(U){return typeof U=="string"||U&&!ff(U)?Ia(U,void 0,void 0,void 0):U}}function fst(t,r){return t!==r&&vr(t,r),t}function oUe(t,r){return t!==r&&(tc(t,r),vr(t,r)),t}function AG(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 ce.fail(`Unsupported kind: ${ce.formatSyntaxKind(t)}`)}}function _st(t,r){switch(hk||(hk=MM(99,!1,0)),t){case 15:hk.setText("`"+r+"`");break;case 16:hk.setText("`"+r+"${");break;case 17:hk.setText("}"+r+"${");break;case 18:hk.setText("}"+r+"`");break}let s=hk.scan();if(s===20&&(s=hk.reScanTemplateToken(!1)),hk.isUnterminated())return hk.setText(void 0),Ioe;let l;switch(s){case 15:case 16:case 17:case 18:l=hk.getTokenValue();break}return l===void 0||hk.scan()!==1?(hk.setText(void 0),Ioe):(hk.setText(void 0),l)}function XL(t){return t&&An(t)?CG(t):ms(t)}function CG(t){return ms(t)&-67108865}function dst(t,r){return r|t.transformFlags&134234112}function ms(t){if(!t)return 0;const r=t.transformFlags&~qs(t.kind);return Xv(t)&&_y(t.name)?dst(t.name,r):r}function cp(t){return t?t.transformFlags:0}function aUe(t){let r=0;for(const s of t)r|=ms(s);t.transformFlags=r}function qs(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 gp(t){return t.flags|=16,t}function pEe(t,r,s){let l,m,y,T,D,I,W,O,V,ee;As(t)?(y="",T=t,D=t.length,I=r,W=s):(ce.assert(r==="js"||r==="dts"),y=(r==="js"?t.javascriptPath:t.declarationPath)||"",I=r==="js"?t.javascriptMapPath:t.declarationMapPath,O=()=>r==="js"?t.javascriptText:t.declarationText,V=()=>r==="js"?t.javascriptMapText:t.declarationMapText,D=()=>O().length,t.buildInfo&&t.buildInfo.bundle&&(ce.assert(s===void 0||typeof s=="boolean"),l=s,m=r==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,ee=t.oldFileOfCurrentEmit));const te=ee?Qde(ce.checkDefined(m)):v6e(m,l,D);return te.fileName=y,te.sourceMapPath=I,te.oldFileOfCurrentEmit=ee,O&&V?(Object.defineProperty(te,"text",{get:O}),Object.defineProperty(te,"sourceMapText",{get:V})):(ce.assert(!ee),te.text=T??"",te.sourceMapText=W),te}function v6e(t,r,s){let l,m,y,T,D,I,W,O;for(const ee of t?t.sections:Zn)switch(ee.kind){case"prologue":l=ur(l,vr(be.createUnparsedPrologue(ee.data),ee));break;case"emitHelpers":m=ur(m,ipe().get(ee.data));break;case"no-default-lib":O=!0;break;case"reference":y=ur(y,{pos:-1,end:-1,fileName:ee.data});break;case"type":T=ur(T,{pos:-1,end:-1,fileName:ee.data});break;case"type-import":T=ur(T,{pos:-1,end:-1,fileName:ee.data,resolutionMode:99});break;case"type-require":T=ur(T,{pos:-1,end:-1,fileName:ee.data,resolutionMode:1});break;case"lib":D=ur(D,{pos:-1,end:-1,fileName:ee.data});break;case"prepend":let te;for(const oe of ee.texts)(!r||oe.kind!=="internal")&&(te=ur(te,vr(be.createUnparsedTextLike(oe.data,oe.kind==="internal"),oe)));I=Oi(I,te),W=ur(W,be.createUnparsedPrepend(ee.data,te??Zn));break;case"internal":if(r){W||(W=[]);break}case"text":W=ur(W,vr(be.createUnparsedTextLike(ee.data,ee.kind==="internal"),ee));break;default:ce.assertNever(ee)}if(!W){const ee=be.createUnparsedTextLike(void 0,!1);f3(ee,0,typeof s=="function"?s():s),W=[ee]}const V=DP.createUnparsedSource(l??Zn,void 0,W);return u6(l,V),u6(W,V),u6(I,V),V.hasNoDefaultLib=O,V.helpers=m,V.referencedFiles=y||Zn,V.typeReferenceDirectives=T,V.libReferenceDirectives=D||Zn,V}function Qde(t){let r,s;for(const m of t.sections)switch(m.kind){case"internal":case"text":r=ur(r,vr(be.createUnparsedTextLike(m.data,m.kind==="internal"),m));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=ur(s,vr(be.createUnparsedSyntheticReference(m),m));break;case"prologue":case"emitHelpers":case"prepend":break;default:ce.assertNever(m)}const l=be.createUnparsedSource(Zn,s,r??Zn);return u6(s,l),u6(r,l),l.helpers=Vn(t.sources&&t.sources.helpers,m=>ipe().get(m)),l}function mEe(t,r,s,l,m,y){return As(t)?T6e(void 0,t,s,l,void 0,r,m,y):b6e(t,r,s,l,m,y)}function b6e(t,r,s,l,m,y,T,D){const I=DP.createInputFiles();I.javascriptPath=r,I.javascriptMapPath=s,I.declarationPath=l,I.declarationMapPath=m,I.buildInfoPath=y;const W=new Map,O=oe=>{if(oe===void 0)return;let de=W.get(oe);return de===void 0&&(de=t(oe),W.set(oe,de!==void 0?de:!1)),de!==!1?de:void 0},V=oe=>{const de=O(oe);return de!==void 0?de:`/* Input file ${oe} was missing */\r -`};let ee;return Object.defineProperties(I,{javascriptText:{get:()=>V(r)},javascriptMapText:{get:()=>O(s)},declarationText:{get:()=>V(ce.checkDefined(l))},declarationMapText:{get:()=>O(m)},buildInfo:{get:()=>{if(ee===void 0&&y)if(T!=null&&T.getBuildInfo)ee=T.getBuildInfo(y,D.configFilePath)??!1;else{const oe=O(y);ee=oe!==void 0?Ome(y,oe)??!1:!1}return ee||void 0}}}),I}function T6e(t,r,s,l,m,y,T,D,I,W,O){const V=DP.createInputFiles();return V.javascriptPath=t,V.javascriptText=r,V.javascriptMapPath=s,V.javascriptMapText=l,V.declarationPath=m,V.declarationText=y,V.declarationMapPath=T,V.declarationMapText=D,V.buildInfoPath=I,V.buildInfo=W,V.oldFileOfCurrentEmit=O,V}function sUe(t,r,s){return new(kY||(kY=nv.getSourceMapSourceConstructor()))(t,r,s)}function tc(t,r){if(t.original!==r&&(t.original=r,r)){const s=r.emitNode;s&&(t.emitNode=gEe(s,t.emitNode))}return t}function gEe(t,r){const{flags:s,internalFlags:l,leadingComments:m,trailingComments:y,commentRange:T,sourceMapRange:D,tokenSourceMapRanges:I,constantValue:W,helpers:O,startsOnNewLine:V,snippetElement:ee,classThis:te,assignedName:oe}=t;if(r||(r={}),s&&(r.flags=s),l&&(r.internalFlags=l&-9),m&&(r.leadingComments=Oi(m.slice(),r.leadingComments)),y&&(r.trailingComments=Oi(y.slice(),r.trailingComments)),T&&(r.commentRange=T),D&&(r.sourceMapRange=D),I&&(r.tokenSourceMapRanges=cUe(I,r.tokenSourceMapRanges)),W!==void 0&&(r.constantValue=W),O)for(const de of O)r.helpers=ST(r.helpers,de);return V!==void 0&&(r.startsOnNewLine=V),ee!==void 0&&(r.snippetElement=ee),te&&(r.classThis=te),oe&&(r.assignedName=oe),r}function cUe(t,r){r||(r=[]);for(const s in t)r[s]=t[s];return r}var Ls,S6e,E6e,hk,Ioe,sJ,TR,be,kY,lUe=G({"src/compiler/factory/nodeFactory.ts"(){Ad(),Ls=0,S6e=(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))(S6e||{}),E6e=[],Ioe={},sJ=Kde(),TR={createBaseSourceFileNode:t=>gp(sJ.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>gp(sJ.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>gp(sJ.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>gp(sJ.createBaseTokenNode(t)),createBaseNode:t=>gp(sJ.createBaseNode(t))},be=aJ(4,TR)}});function he(t){if(t.emitNode)ce.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(uP(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const r=ns(Il(ns(t)))??ce.fail("Could not determine parsed source file.");he(r).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function hEe(t){var r,s;const l=(s=(r=ns(Il(t)))==null?void 0:r.emitNode)==null?void 0:s.annotatedNodes;if(l)for(const m of l)m.emitNode=void 0}function Zde(t){const r=he(t);return r.flags|=3072,r.leadingComments=void 0,r.trailingComments=void 0,t}function Sa(t,r){return he(t).flags=r,t}function cI(t,r){const s=he(t);return s.flags=s.flags|r,t}function aW(t,r){return he(t).internalFlags=r,t}function _s(t,r){const s=he(t);return s.internalFlags=s.internalFlags|r,t}function cE(t){var r;return((r=t.emitNode)==null?void 0:r.sourceMapRange)??t}function Sp(t,r){return he(t).sourceMapRange=r,t}function DG(t,r){var s,l;return(l=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:l[r]}function YL(t,r,s){const l=he(t),m=l.tokenSourceMapRanges??(l.tokenSourceMapRanges=[]);return m[r]=s,t}function lp(t){var r;return(r=t.emitNode)==null?void 0:r.startsOnNewLine}function epe(t,r){return he(t).startsOnNewLine=r,t}function lI(t){var r;return((r=t.emitNode)==null?void 0:r.commentRange)??t}function Ry(t,r){return he(t).commentRange=r,t}function U7(t){var r;return(r=t.emitNode)==null?void 0:r.leadingComments}function MS(t,r){return he(t).leadingComments=r,t}function dy(t,r,s,l){return MS(t,ur(U7(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:l,text:s}))}function y3(t){var r;return(r=t.emitNode)==null?void 0:r.trailingComments}function uI(t,r){return he(t).trailingComments=r,t}function sW(t,r,s,l){return uI(t,ur(y3(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:l,text:s}))}function PY(t,r){MS(t,U7(r)),uI(t,y3(r));const s=he(r);return s.leadingComments=void 0,s.trailingComments=void 0,t}function cW(t){var r;return(r=t.emitNode)==null?void 0:r.constantValue}function koe(t,r){const s=he(t);return s.constantValue=r,t}function lW(t,r){const s=he(t);return s.helpers=ur(s.helpers,r),t}function JN(t,r){if(gt(r)){const s=he(t);for(const l of r)s.helpers=ST(s.helpers,l)}return t}function x6e(t,r){var s;const l=(s=t.emitNode)==null?void 0:s.helpers;return l?Yw(l,r):!1}function v3(t){var r;return(r=t.emitNode)==null?void 0:r.helpers}function $N(t,r,s){const l=t.emitNode,m=l&&l.helpers;if(!gt(m))return;const y=he(r);let T=0;for(let D=0;D0&&(m[D-T]=I)}T>0&&(m.length-=T)}function yEe(t){var r;return(r=t.emitNode)==null?void 0:r.snippetElement}function NY(t,r){const s=he(t);return s.snippetElement=r,t}function tpe(t){return he(t).internalFlags|=4,t}function npe(t,r){const s=he(t);return s.typeNode=r,t}function rpe(t){var r;return(r=t.emitNode)==null?void 0:r.typeNode}function qN(t,r){return he(t).identifierTypeArguments=r,t}function H7(t){var r;return(r=t.emitNode)==null?void 0:r.identifierTypeArguments}function wY(t,r){return he(t).autoGenerate=r,t}function d6(t){var r;return(r=t.emitNode)==null?void 0:r.autoGenerate}function J7(t,r){return he(t).generatedImportReference=r,t}function RY(t){var r;return(r=t.emitNode)==null?void 0:r.generatedImportReference}var uUe=G({"src/compiler/factory/emitNode.ts"(){Ad()}});function vEe(t){const r=t.factory,s=Pd(()=>aW(r.createTrue(),8)),l=Pd(()=>aW(r.createFalse(),8));return{getUnscopedHelperName:m,createDecorateHelper:y,createMetadataHelper:T,createParamHelper:D,createESDecorateHelper:de,createRunInitializersHelper:ue,createAssignHelper:Ne,createAwaitHelper:Be,createAsyncGeneratorHelper:Ve,createAsyncDelegatorHelper:pt,createAsyncValuesHelper:Le,createRestHelper:ht,createAwaiterHelper:ke,createExtendsHelper:_t,createTemplateObjectHelper:Dt,createSpreadArrayHelper:Ft,createPropKeyHelper:it,createSetFunctionNameHelper:Ye,createValuesHelper:ut,createReadHelper:lt,createGeneratorHelper:zt,createCreateBindingHelper:Wt,createImportStarHelper:tt,createImportStarCallbackHelper:Mn,createImportDefaultHelper:kn,createExportStarHelper:cr,createClassPrivateFieldGetHelper:un,createClassPrivateFieldSetHelper:on,createClassPrivateFieldInHelper:pn,createAddDisposableResourceHelper:Or,createDisposeResourcesHelper:Xr};function m(Ut){return Sa(r.createIdentifier(Ut),8196)}function y(Ut,In,gr,Cr){t.requestEmitHelper(MY);const ei=[];return ei.push(r.createArrayLiteralExpression(Ut,!0)),ei.push(In),gr&&(ei.push(gr),Cr&&ei.push(Cr)),r.createCallExpression(m("__decorate"),void 0,ei)}function T(Ut,In){return t.requestEmitHelper(uW),r.createCallExpression(m("__metadata"),void 0,[r.createStringLiteral(Ut),In])}function D(Ut,In,gr){return t.requestEmitHelper(LY),vr(r.createCallExpression(m("__param"),void 0,[r.createNumericLiteral(In+""),Ut]),gr)}function I(Ut){const In=[r.createPropertyAssignment(r.createIdentifier("kind"),r.createStringLiteral("class")),r.createPropertyAssignment(r.createIdentifier("name"),Ut.name),r.createPropertyAssignment(r.createIdentifier("metadata"),Ut.metadata)];return r.createObjectLiteralExpression(In)}function W(Ut){const In=Ut.computed?r.createElementAccessExpression(r.createIdentifier("obj"),Ut.name):r.createPropertyAccessExpression(r.createIdentifier("obj"),Ut.name);return r.createPropertyAssignment("get",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj"))],void 0,void 0,In))}function O(Ut){const In=Ut.computed?r.createElementAccessExpression(r.createIdentifier("obj"),Ut.name):r.createPropertyAccessExpression(r.createIdentifier("obj"),Ut.name);return r.createPropertyAssignment("set",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj")),r.createParameterDeclaration(void 0,void 0,r.createIdentifier("value"))],void 0,void 0,r.createBlock([r.createExpressionStatement(r.createAssignment(In,r.createIdentifier("value")))])))}function V(Ut){const In=Ut.computed?Ut.name:An(Ut.name)?r.createStringLiteralFromNode(Ut.name):Ut.name;return r.createPropertyAssignment("has",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj"))],void 0,void 0,r.createBinaryExpression(In,103,r.createIdentifier("obj"))))}function ee(Ut,In){const gr=[];return gr.push(V(Ut)),In.get&&gr.push(W(Ut)),In.set&&gr.push(O(Ut)),r.createObjectLiteralExpression(gr)}function te(Ut){const In=[r.createPropertyAssignment(r.createIdentifier("kind"),r.createStringLiteral(Ut.kind)),r.createPropertyAssignment(r.createIdentifier("name"),Ut.name.computed?Ut.name.name:r.createStringLiteralFromNode(Ut.name.name)),r.createPropertyAssignment(r.createIdentifier("static"),Ut.static?r.createTrue():r.createFalse()),r.createPropertyAssignment(r.createIdentifier("private"),Ut.private?r.createTrue():r.createFalse()),r.createPropertyAssignment(r.createIdentifier("access"),ee(Ut.name,Ut.access)),r.createPropertyAssignment(r.createIdentifier("metadata"),Ut.metadata)];return r.createObjectLiteralExpression(In)}function oe(Ut){return Ut.kind==="class"?I(Ut):te(Ut)}function de(Ut,In,gr,Cr,ei,Gn){return t.requestEmitHelper(lJ),r.createCallExpression(m("__esDecorate"),void 0,[Ut??r.createNull(),In??r.createNull(),gr,oe(Cr),ei,Gn])}function ue(Ut,In,gr){return t.requestEmitHelper(uJ),r.createCallExpression(m("__runInitializers"),void 0,gr?[Ut,In,gr]:[Ut,In])}function Ne(Ut){return iu(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,Ut):(t.requestEmitHelper(fJ),r.createCallExpression(m("__assign"),void 0,Ut))}function Be(Ut){return t.requestEmitHelper(b3),r.createCallExpression(m("__await"),void 0,[Ut])}function Ve(Ut,In){return t.requestEmitHelper(b3),t.requestEmitHelper(_J),(Ut.emitNode||(Ut.emitNode={})).flags|=1572864,r.createCallExpression(m("__asyncGenerator"),void 0,[In?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),Ut])}function pt(Ut){return t.requestEmitHelper(b3),t.requestEmitHelper(dJ),r.createCallExpression(m("__asyncDelegator"),void 0,[Ut])}function Le(Ut){return t.requestEmitHelper(T3),r.createCallExpression(m("__asyncValues"),void 0,[Ut])}function ht(Ut,In,gr,Cr){t.requestEmitHelper(pJ);const ei=[];let Gn=0;for(let Ur=0;Ur{let l="";for(let m=0;mt.name))}function cJ(t,r){return el(t)&&An(t.expression)&&(Tp(t.expression)&8192)!==0&&t.expression.escapedText===r}var Poe,MY,uW,LY,lJ,uJ,fJ,b3,_J,dJ,T3,pJ,mJ,gJ,hJ,yJ,vJ,bJ,TJ,SJ,EJ,$7,xJ,IG,q7,AJ,kG,CJ,DJ,IJ,kJ,Noe,PG,NG,fUe=G({"src/compiler/factory/emitHelpers.ts"(){Ad(),Poe=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(Poe||{}),MY={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`,nv={getNodeConstructor:()=>Bde,getTokenConstructor:()=>Hat,getIdentifierConstructor:()=>Jat,getPrivateIdentifierConstructor:()=>Bde,getSourceFileConstructor:()=>Bde,getSymbolConstructor:()=>jat,getTypeConstructor:()=>Vat,getSignatureConstructor:()=>Uat,getSourceMapSourceConstructor:()=>$at},cEe=[],W0=/[^\w\s/]/g,lEe=[42,63],DY=["node_modules","bower_components","jspm_packages"],IY=`(?!(${DY.join("|")})(/|$))`,uEe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${IY}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>Gde(t,uEe.singleAsteriskRegexFragment)},Soe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${IY}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>Gde(t,Soe.singleAsteriskRegexFragment)},Eoe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>Gde(t,Eoe.singleAsteriskRegexFragment)},Jde={files:uEe,directories:Soe,exclude:Eoe},vG=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],$de=Gf(vG),fEe=[...vG,[".json"]],bG=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],xoe=[[".js",".jsx"],[".mjs"],[".cjs"]],iJ=Gf(xoe),Aoe=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qde=[...Aoe,[".json"]],h3=[".d.ts",".d.cts",".d.mts"],TG=[".ts",".cts",".mts",".tsx"],Coe=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],oJ=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(oJ||{}),SG=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],EG={files:Zn,directories:Zn}}});function Kde(){let t,r,s,l,m;return{createBaseSourceFileNode:y,createBaseIdentifierNode:T,createBasePrivateIdentifierNode:D,createBaseTokenNode:I,createBaseNode:W};function y(O){return new(m||(m=nv.getSourceFileConstructor()))(O,-1,-1)}function T(O){return new(s||(s=nv.getIdentifierConstructor()))(O,-1,-1)}function D(O){return new(l||(l=nv.getPrivateIdentifierConstructor()))(O,-1,-1)}function I(O){return new(r||(r=nv.getTokenConstructor()))(O,-1,-1)}function W(O){return new(t||(t=nv.getNodeConstructor()))(O,-1,-1)}}var Xde=G({"src/compiler/factory/baseNodeFactory.ts"(){Ad()}});function iUe(t){let r,s;return{getParenthesizeLeftSideOfBinaryForOperator:l,getParenthesizeRightSideOfBinaryForOperator:m,parenthesizeLeftSideOfBinary:W,parenthesizeRightSideOfBinary:O,parenthesizeExpressionOfComputedPropertyName:V,parenthesizeConditionOfConditionalExpression:ee,parenthesizeBranchOfConditionalExpression:te,parenthesizeExpressionOfExportDefault:oe,parenthesizeExpressionOfNew:de,parenthesizeLeftSideOfAccess:ue,parenthesizeOperandOfPostfixUnary:Ne,parenthesizeOperandOfPrefixUnary:Be,parenthesizeExpressionsOfCommaDelimitedList:Ve,parenthesizeExpressionForDisallowedComma:pt,parenthesizeExpressionOfExpressionStatement:Le,parenthesizeConciseBodyOfArrowFunction:ht,parenthesizeCheckTypeOfConditionalType:ke,parenthesizeExtendsTypeOfConditionalType:_t,parenthesizeConstituentTypesOfUnionType:Ft,parenthesizeConstituentTypeOfUnionType:Dt,parenthesizeConstituentTypesOfIntersectionType:Ye,parenthesizeConstituentTypeOfIntersectionType:it,parenthesizeOperandOfTypeOperator:ut,parenthesizeOperandOfReadonlyTypeOperator:lt,parenthesizeNonArrayTypeOfPostfixType:zt,parenthesizeElementTypesOfTupleType:Wt,parenthesizeElementTypeOfTupleType:tt,parenthesizeTypeOfOptionalType:kn,parenthesizeTypeArguments:on,parenthesizeLeadingTypeArgument:cr};function l(pn){r||(r=new Map);let Or=r.get(pn);return Or||(Or=Xr=>W(pn,Xr),r.set(pn,Or)),Or}function m(pn){s||(s=new Map);let Or=s.get(pn);return Or||(Or=Xr=>O(pn,void 0,Xr),s.set(pn,Or)),Or}function y(pn,Or,Xr,Ut){const In=hY(226,pn),gr=B9(226,pn),Cr=pA(Or);if(!Xr&&Or.kind===219&&In>3)return!0;const ei=UL(Cr);switch(pf(ei,In)){case-1:return!(!Xr&&gr===1&&Or.kind===229);case 1:return!1;case 0:if(Xr)return gr===1;if(ys(Cr)&&Cr.operatorToken.kind===pn){if(T(pn))return!1;if(pn===40){const Ur=Ut?D(Ut):0;if(c9(Ur)&&Ur===D(Cr))return!1}}return bH(Cr)===0}}function T(pn){return pn===42||pn===52||pn===51||pn===53||pn===28}function D(pn){if(pn=pA(pn),c9(pn.kind))return pn.kind;if(pn.kind===226&&pn.operatorToken.kind===40){if(pn.cachedLiteralKind!==void 0)return pn.cachedLiteralKind;const Or=D(pn.left),Xr=c9(Or)&&Or===D(pn.right)?Or:0;return pn.cachedLiteralKind=Xr,Xr}return 0}function I(pn,Or,Xr,Ut){return pA(Or).kind===217?Or:y(pn,Or,Xr,Ut)?t.createParenthesizedExpression(Or):Or}function W(pn,Or){return I(pn,Or,!0)}function O(pn,Or,Xr){return I(pn,Xr,!1,Or)}function V(pn){return CW(pn)?t.createParenthesizedExpression(pn):pn}function ee(pn){const Or=hY(227,58),Xr=pA(pn),Ut=UL(Xr);return pf(Ut,Or)!==1?t.createParenthesizedExpression(pn):pn}function te(pn){const Or=pA(pn);return CW(Or)?t.createParenthesizedExpression(pn):pn}function oe(pn){const Or=pA(pn);let Xr=CW(Or);if(!Xr)switch(qL(Or,!1).kind){case 231:case 218:Xr=!0}return Xr?t.createParenthesizedExpression(pn):pn}function de(pn){const Or=qL(pn,!0);switch(Or.kind){case 213:return t.createParenthesizedExpression(pn);case 214:return Or.arguments?pn:t.createParenthesizedExpression(pn)}return ue(pn)}function ue(pn,Or){const Xr=pA(pn);return FE(Xr)&&(Xr.kind!==214||Xr.arguments)&&(Or||!ky(Xr))?pn:vr(t.createParenthesizedExpression(pn),pn)}function Ne(pn){return FE(pn)?pn:vr(t.createParenthesizedExpression(pn),pn)}function Be(pn){return ode(pn)?pn:vr(t.createParenthesizedExpression(pn),pn)}function Ve(pn){const Or=Ol(pn,pt);return vr(t.createNodeArray(Or,pn.hasTrailingComma),pn)}function pt(pn){const Or=pA(pn),Xr=UL(Or),Ut=hY(226,28);return Xr>Ut?pn:vr(t.createParenthesizedExpression(pn),pn)}function Le(pn){const Or=pA(pn);if(el(Or)){const Ut=Or.expression,In=pA(Ut).kind;if(In===218||In===219){const gr=t.updateCallExpression(Or,vr(t.createParenthesizedExpression(Ut),Ut),Or.typeArguments,Or.arguments);return t.restoreOuterExpressions(pn,gr,8)}}const Xr=qL(Or,!1).kind;return Xr===210||Xr===218?vr(t.createParenthesizedExpression(pn),pn):pn}function ht(pn){return!E_(pn)&&(CW(pn)||qL(pn,!1).kind===210)?vr(t.createParenthesizedExpression(pn),pn):pn}function ke(pn){switch(pn.kind){case 184:case 185:case 194:return t.createParenthesizedType(pn)}return pn}function _t(pn){switch(pn.kind){case 194:return t.createParenthesizedType(pn)}return pn}function Dt(pn){switch(pn.kind){case 192:case 193:return t.createParenthesizedType(pn)}return ke(pn)}function Ft(pn){return t.createNodeArray(Ol(pn,Dt))}function it(pn){switch(pn.kind){case 192:case 193:return t.createParenthesizedType(pn)}return Dt(pn)}function Ye(pn){return t.createNodeArray(Ol(pn,it))}function ut(pn){switch(pn.kind){case 193:return t.createParenthesizedType(pn)}return it(pn)}function lt(pn){switch(pn.kind){case 198:return t.createParenthesizedType(pn)}return ut(pn)}function zt(pn){switch(pn.kind){case 195:case 198:case 186:return t.createParenthesizedType(pn)}return ut(pn)}function Wt(pn){return t.createNodeArray(Ol(pn,tt))}function tt(pn){return Mn(pn)?t.createParenthesizedType(pn):pn}function Mn(pn){return MG(pn)?pn.postfix:rS(pn)||Z2(pn)||mW(pn)||KN(pn)?Mn(pn.type):hW(pn)?Mn(pn.falseType):g6(pn)||MJ(pn)?Mn(yl(pn.types)):fI(pn)?!!pn.typeParameter.constraint&&Mn(pn.typeParameter.constraint):!1}function kn(pn){return Mn(pn)?t.createParenthesizedType(pn):zt(pn)}function cr(pn){return $X(pn)&&pn.typeParameters?t.createParenthesizedType(pn):pn}function un(pn,Or){return Or===0?cr(pn):pn}function on(pn){if(gt(pn))return t.createNodeArray(Ol(pn,un))}}var Yde,lst=G({"src/compiler/factory/parenthesizerRules.ts"(){Ad(),Yde={getParenthesizeLeftSideOfBinaryForOperator:t=>Of,getParenthesizeRightSideOfBinaryForOperator:t=>Of,parenthesizeLeftSideOfBinary:(t,r)=>r,parenthesizeRightSideOfBinary:(t,r,s)=>s,parenthesizeExpressionOfComputedPropertyName:Of,parenthesizeConditionOfConditionalExpression:Of,parenthesizeBranchOfConditionalExpression:Of,parenthesizeExpressionOfExportDefault:Of,parenthesizeExpressionOfNew:t=>uc(t,FE),parenthesizeLeftSideOfAccess:t=>uc(t,FE),parenthesizeOperandOfPostfixUnary:t=>uc(t,FE),parenthesizeOperandOfPrefixUnary:t=>uc(t,ode),parenthesizeExpressionsOfCommaDelimitedList:t=>uc(t,L8),parenthesizeExpressionForDisallowedComma:Of,parenthesizeExpressionOfExpressionStatement:Of,parenthesizeConciseBodyOfArrowFunction:Of,parenthesizeCheckTypeOfConditionalType:Of,parenthesizeExtendsTypeOfConditionalType:Of,parenthesizeConstituentTypesOfUnionType:t=>uc(t,L8),parenthesizeConstituentTypeOfUnionType:Of,parenthesizeConstituentTypesOfIntersectionType:t=>uc(t,L8),parenthesizeConstituentTypeOfIntersectionType:Of,parenthesizeOperandOfTypeOperator:Of,parenthesizeOperandOfReadonlyTypeOperator:Of,parenthesizeNonArrayTypeOfPostfixType:Of,parenthesizeElementTypesOfTupleType:t=>uc(t,L8),parenthesizeElementTypeOfTupleType:Of,parenthesizeTypeOfOptionalType:Of,parenthesizeTypeArguments:t=>t&&uc(t,L8),parenthesizeLeadingTypeArgument:Of}}});function dEe(t){return{convertToFunctionBlock:r,convertToFunctionExpression:s,convertToClassExpression:l,convertToArrayAssignmentElement:m,convertToObjectAssignmentElement:y,convertToAssignmentPattern:T,convertToObjectAssignmentPattern:D,convertToArrayAssignmentPattern:I,convertToAssignmentElementTarget:W};function r(O,V){if(E_(O))return O;const ee=t.createReturnStatement(O);vr(ee,O);const te=t.createBlock([ee],V);return vr(te,O),te}function s(O){var V;if(!O.body)return ce.fail("Cannot convert a FunctionDeclaration without a body");const ee=t.createFunctionExpression((V=N8(O))==null?void 0:V.filter(te=>!fW(te)&&!xn(te)),O.asteriskToken,O.name,O.typeParameters,O.parameters,O.type,O.body);return tc(ee,O),vr(ee,O),lp(O)&&epe(ee,!0),ee}function l(O){var V;const ee=t.createClassExpression((V=O.modifiers)==null?void 0:V.filter(te=>!fW(te)&&!xn(te)),O.name,O.typeParameters,O.heritageClauses,O.members);return tc(ee,O),vr(ee,O),lp(O)&&epe(ee,!0),ee}function m(O){if(ym(O)){if(O.dotDotDotToken)return ce.assertNode(O.name,An),tc(vr(t.createSpreadElement(O.name),O),O);const V=W(O.name);return O.initializer?tc(vr(t.createAssignment(V,O.initializer),O),O):V}return uc(O,Nr)}function y(O){if(ym(O)){if(O.dotDotDotToken)return ce.assertNode(O.name,An),tc(vr(t.createSpreadAssignment(O.name),O),O);if(O.propertyName){const V=W(O.name);return tc(vr(t.createPropertyAssignment(O.propertyName,O.initializer?t.createAssignment(V,O.initializer):V),O),O)}return ce.assertNode(O.name,An),tc(vr(t.createShorthandPropertyAssignment(O.name,O.initializer),O),O)}return uc(O,KD)}function T(O){switch(O.kind){case 207:case 209:return I(O);case 206:case 210:return D(O)}}function D(O){return E1(O)?tc(vr(t.createObjectLiteralExpression(Vn(O.elements,y)),O),O):uc(O,Wd)}function I(O){return vW(O)?tc(vr(t.createArrayLiteralExpression(Vn(O.elements,m)),O),O):uc(O,Ch)}function W(O){return ld(O)?T(O):uc(O,Nr)}}var Doe,ust=G({"src/compiler/factory/nodeConverters.ts"(){Ad(),Doe={convertToFunctionBlock:Na,convertToFunctionExpression:Na,convertToClassExpression:Na,convertToArrayAssignmentElement:Na,convertToObjectAssignmentElement:Na,convertToAssignmentPattern:Na,convertToObjectAssignmentPattern:Na,convertToArrayAssignmentPattern:Na,convertToAssignmentElementTarget:Na}}});function y6e(t){E6e.push(t)}function aJ(t,r){const s=t&8?fst:oUe,l=Pd(()=>t&1?Yde:iUe(Ne)),m=Pd(()=>t&2?Doe:dEe(Ne)),y=p0(U=>(le,Ae)=>jn(le,U,Ae)),T=p0(U=>le=>MA(U,le)),D=p0(U=>le=>DI(le,U)),I=p0(U=>()=>Cp(U)),W=p0(U=>le=>xg(U,le)),O=p0(U=>(le,Ae)=>Og(U,le,Ae)),V=p0(U=>(le,Ae)=>Yg(U,le,Ae)),ee=p0(U=>(le,Ae)=>Wy(U,le,Ae)),te=p0(U=>(le,Ae)=>Jt(U,le,Ae)),oe=p0(U=>(le,Ae,rt)=>ci(U,le,Ae,rt)),de=p0(U=>(le,Ae,rt)=>da(U,le,Ae,rt)),ue=p0(U=>(le,Ae,rt,Dn)=>Hu(U,le,Ae,rt,Dn)),Ne={get parenthesizer(){return l()},get converters(){return m()},baseFactory:r,flags:t,createNodeArray:Be,createNumericLiteral:ht,createBigIntLiteral:ke,createStringLiteral:Dt,createStringLiteralFromNode:Ft,createRegularExpressionLiteral:it,createLiteralLikeNode:Ye,createIdentifier:zt,createTempVariable:Wt,createLoopVariable:tt,createUniqueName:Mn,getGeneratedNameForNode:kn,createPrivateIdentifier:un,createUniquePrivateName:pn,getGeneratedPrivateNameForNode:Or,createToken:Ut,createSuper:In,createThis:gr,createNull:Cr,createTrue:ei,createFalse:Gn,createModifier:Ur,createModifiersFromModifierFlags:so,createQualifiedName:ho,updateQualifiedName:di,createComputedPropertyName:Nc,updateComputedPropertyName:ha,createTypeParameterDeclaration:ro,updateTypeParameterDeclaration:Gs,createParameterDeclaration:Oc,updateParameterDeclaration:_u,createDecorator:Ku,updateDecorator:al,createPropertySignature:Rr,updatePropertySignature:mc,createPropertyDeclaration:Fi,updatePropertyDeclaration:ta,createMethodSignature:$a,updateMethodSignature:jc,createMethodDeclaration:Xu,updateMethodDeclaration:Lo,createConstructorDeclaration:er,updateConstructorDeclaration:Jr,createGetAccessorDeclaration:Ir,updateGetAccessorDeclaration:_o,createSetAccessorDeclaration:Kn,updateSetAccessorDeclaration:gn,createCallSignature:mt,updateCallSignature:_r,createConstructSignature:Cn,updateConstructSignature:oi,createIndexSignature:Qr,updateIndexSignature:co,createClassStaticBlockDeclaration:Aa,updateClassStaticBlockDeclaration:sl,createTemplateLiteralTypeSpan:es,updateTemplateLiteralTypeSpan:Ui,createKeywordTypeNode:xu,createTypePredicateNode:We,updateTypePredicateNode:Re,createTypeReferenceNode:wt,updateTypeReferenceNode:$e,createFunctionTypeNode:Zt,updateFunctionTypeNode:xe,createConstructorTypeNode:Un,updateConstructorTypeNode:Ji,createTypeQueryNode:Qa,updateTypeQueryNode:Ks,createTypeLiteralNode:vs,updateTypeLiteralNode:ou,createArrayTypeNode:qd,updateArrayTypeNode:z_,createTupleTypeNode:fp,updateTupleTypeNode:Ha,createNamedTupleMember:mu,updateNamedTupleMember:x_,createOptionalTypeNode:q_,updateOptionalTypeNode:Ma,createRestTypeNode:U0,updateRestTypeNode:c_,createUnionTypeNode:Oh,updateUnionTypeNode:jg,createIntersectionTypeNode:zv,updateIntersectionTypeNode:m_,createConditionalTypeNode:Yu,updateConditionalTypeNode:Tv,createInferTypeNode:Kh,updateInferTypeNode:uS,createImportTypeNode:rd,updateImportTypeNode:Mg,createParenthesizedType:lm,updateParenthesizedType:nm,createThisTypeNode:po,createTypeOperatorNode:gy,updateTypeOperatorNode:fS,createIndexedAccessTypeNode:GT,updateIndexedAccessTypeNode:vE,createMappedTypeNode:oh,updateMappedTypeNode:hy,createLiteralTypeNode:_e,updateLiteralTypeNode:vn,createTemplateLiteralType:H0,updateTemplateLiteralType:fx,createObjectBindingPattern:Qn,updateObjectBindingPattern:hi,createArrayBindingPattern:pa,updateArrayBindingPattern:Zc,createBindingElement:ka,updateBindingElement:bc,createArrayLiteralExpression:gu,updateArrayLiteralExpression:yu,createObjectLiteralExpression:Xm,updateObjectLiteralExpression:Lg,createPropertyAccessExpression:t&4?(U,le)=>Sa(Fh(U,le),262144):Fh,updatePropertyAccessExpression:J0,createPropertyAccessChain:t&4?(U,le,Ae)=>Sa(Eg(U,le,Ae),262144):Eg,updatePropertyAccessChain:Sv,createElementAccessExpression:Ev,updateElementAccessExpression:S0,createElementAccessChain:k1,updateElementAccessChain:tn,createCallExpression:ya,updateCallExpression:bu,createCallChain:K_,updateCallChain:ig,createNewExpression:Fy,updateNewExpression:bt,createTaggedTemplateExpression:ir,updateTaggedTemplateExpression:ii,createTypeAssertion:Si,updateTypeAssertion:Do,createParenthesizedExpression:Za,updateParenthesizedExpression:Qc,createFunctionExpression:Al,updateFunctionExpression:du,createArrowFunction:N_,updateArrowFunction:zp,createDeleteExpression:gh,updateDeleteExpression:Wh,createTypeOfExpression:Gv,updateTypeOfExpression:jv,createVoidExpression:yy,updateVoidExpression:ub,createAwaitExpression:E0,updateAwaitExpression:P2,createPrefixUnaryExpression:MA,updatePrefixUnaryExpression:aw,createPostfixUnaryExpression:DI,updatePostfixUnaryExpression:Me,createBinaryExpression:jn,updateBinaryExpression:js,createConditionalExpression:X_,updateConditionalExpression:$l,createTemplateExpression:y_,updateTemplateExpression:l_,createTemplateHead:e,createTemplateMiddle:n,createTemplateTail:i,createNoSubstitutionTemplateLiteral:c,createTemplateLiteralLikeNode:_S,createYieldExpression:u,updateYieldExpression:d,createSpreadElement:h,updateSpreadElement:S,createClassExpression:E,updateClassExpression:P,createOmittedExpression:k,createExpressionWithTypeArguments:F,updateExpressionWithTypeArguments:$,createAsExpression:J,updateAsExpression:X,createNonNullExpression:ie,updateNonNullExpression:ae,createSatisfiesExpression:ve,updateSatisfiesExpression:we,createNonNullChain:Fe,updateNonNullChain:et,createMetaProperty:Pe,updateMetaProperty:dt,createTemplateSpan:Ie,updateTemplateSpan:ct,createSemicolonClassElement:Ct,createBlock:Lt,updateBlock:Ze,createVariableStatement:Ke,updateVariableStatement:st,createEmptyStatement:It,createExpressionStatement:Yt,updateExpressionStatement:Et,createIfStatement:at,updateIfStatement:Qt,createDoStatement:nn,updateDoStatement:Rn,createWhileStatement:cn,updateWhileStatement:qt,createForStatement:Kt,updateForStatement:wr,createForInStatement:Wr,updateForInStatement:jt,createForOfStatement:En,updateForOfStatement:fr,createContinueStatement:Tr,updateContinueStatement:Vr,createBreakStatement:Pn,updateBreakStatement:Fr,createReturnStatement:Ki,updateReturnStatement:io,createWithStatement:no,updateWithStatement:os,createSwitchStatement:Mo,updateSwitchStatement:$i,createLabeledStatement:ki,updateLabeledStatement:gc,createThrowStatement:Wl,updateThrowStatement:Jc,createTryStatement:au,updateTryStatement:qn,createDebuggerStatement:za,createVariableDeclaration:Ia,updateVariableDeclaration:zi,createVariableDeclarationList:na,updateVariableDeclarationList:_a,createFunctionDeclaration:us,updateFunctionDeclaration:Au,createClassDeclaration:Cu,updateClassDeclaration:yf,createInterfaceDeclaration:w_,updateInterfaceDeclaration:Eu,createTypeAliasDeclaration:He,updateTypeAliasDeclaration:Hn,createEnumDeclaration:dr,updateEnumDeclaration:Mr,createModuleDeclaration:Pr,updateModuleDeclaration:Bt,createModuleBlock:ln,updateModuleBlock:Wn,createCaseBlock:$r,updateCaseBlock:Ge,createNamespaceExportDeclaration:Br,updateNamespaceExportDeclaration:Ei,createImportEqualsDeclaration:Sr,updateImportEqualsDeclaration:yi,createImportDeclaration:go,updateImportDeclaration:Ao,createImportClause:Io,updateImportClause:ze,createAssertClause:Ce,updateAssertClause:kt,createAssertEntry:qe,updateAssertEntry:Mt,createImportTypeAssertionContainer:ge,updateImportTypeAssertionContainer:mn,createNamespaceImport:Jn,updateNamespaceImport:Nn,createNamespaceExport:Lr,updateNamespaceExport:qi,createNamedImports:vo,updateNamedImports:Ro,createImportSpecifier:Ts,updateImportSpecifier:Cc,createExportAssignment:Pc,updateExportAssignment:hc,createExportDeclaration:bl,updateExportDeclaration:Tc,createNamedExports:ma,updateNamedExports:Bl,createExportSpecifier:G_,updateExportSpecifier:u_,createMissingDeclaration:xa,createExternalModuleReference:Ym,updateExternalModuleReference:mf,get createJSDocAllType(){return I(319)},get createJSDocUnknownType(){return I(320)},get createJSDocNonNullableType(){return V(322)},get updateJSDocNonNullableType(){return ee(322)},get createJSDocNullableType(){return V(321)},get updateJSDocNullableType(){return ee(321)},get createJSDocOptionalType(){return W(323)},get updateJSDocOptionalType(){return O(323)},get createJSDocVariadicType(){return W(325)},get updateJSDocVariadicType(){return O(325)},get createJSDocNamepathType(){return W(326)},get updateJSDocNamepathType(){return O(326)},createJSDocFunctionType:pl,updateJSDocFunctionType:R_,createJSDocTypeLiteral:og,updateJSDocTypeLiteral:km,createJSDocTypeExpression:M_,updateJSDocTypeExpression:oy,createJSDocSignature:bE,updateJSDocSignature:hh,createJSDocTemplateTag:Qi,updateJSDocTemplateTag:Pm,createJSDocTypedefTag:Ag,updateJSDocTypedefTag:va,createJSDocParameterTag:x0,updateJSDocParameterTag:Nm,createJSDocPropertyTag:Md,updateJSDocPropertyTag:fe,createJSDocCallbackTag:_n,updateJSDocCallbackTag:Xn,createJSDocOverloadTag:_i,updateJSDocOverloadTag:$o,createJSDocAugmentsTag:Sc,updateJSDocAugmentsTag:xs,createJSDocImplementsTag:Fs,updateJSDocImplementsTag:sg,createJSDocSeeTag:Tl,updateJSDocSeeTag:fc,createJSDocNameReference:Gd,updateJSDocNameReference:ag,createJSDocMemberName:ah,updateJSDocMemberName:bm,createJSDocLink:ay,updateJSDocLink:yp,createJSDocLinkCode:Cg,updateJSDocLinkCode:wp,createJSDocLinkPlain:Xp,updateJSDocLinkPlain:r1,get createJSDocTypeTag(){return de(351)},get updateJSDocTypeTag(){return ue(351)},get createJSDocReturnTag(){return de(349)},get updateJSDocReturnTag(){return ue(349)},get createJSDocThisTag(){return de(350)},get updateJSDocThisTag(){return ue(350)},get createJSDocAuthorTag(){return te(337)},get updateJSDocAuthorTag(){return oe(337)},get createJSDocClassTag(){return te(339)},get updateJSDocClassTag(){return oe(339)},get createJSDocPublicTag(){return te(340)},get updateJSDocPublicTag(){return oe(340)},get createJSDocPrivateTag(){return te(341)},get updateJSDocPrivateTag(){return oe(341)},get createJSDocProtectedTag(){return te(342)},get updateJSDocProtectedTag(){return oe(342)},get createJSDocReadonlyTag(){return te(343)},get updateJSDocReadonlyTag(){return oe(343)},get createJSDocOverrideTag(){return te(344)},get updateJSDocOverrideTag(){return oe(344)},get createJSDocDeprecatedTag(){return te(338)},get updateJSDocDeprecatedTag(){return oe(338)},get createJSDocThrowsTag(){return de(356)},get updateJSDocThrowsTag(){return ue(356)},get createJSDocSatisfiesTag(){return de(357)},get updateJSDocSatisfiesTag(){return ue(357)},createJSDocEnumTag:gd,updateJSDocEnumTag:Dg,createJSDocUnknownTag:t_,updateJSDocUnknownTag:A_,createJSDocText:um,updateJSDocText:Ig,createJSDocComment:P_,updateJSDocComment:Qm,createJsxElement:Bh,updateJsxElement:P1,createJsxSelfClosingElement:VT,updateJsxSelfClosingElement:Zm,createJsxOpeningElement:fb,updateJsxOpeningElement:FS,createJsxClosingElement:dT,updateJsxClosingElement:$0,createJsxFragment:xv,createJsxText:q0,updateJsxText:N1,createJsxOpeningFragment:i0,createJsxJsxClosingFragment:nt,updateJsxFragment:t2,createJsxAttribute:pr,updateJsxAttribute:vi,createJsxAttributes:Di,updateJsxAttributes:Ee,createJsxSpreadAttribute:Gt,updateJsxSpreadAttribute:sr,createJsxExpression:Ii,updateJsxExpression:Ja,createJsxNamespacedName:wa,updateJsxNamespacedName:wi,createCaseClause:Vl,updateCaseClause:Uf,createDefaultClause:Y_,updateDefaultClause:Fg,createHeritageClause:sv,updateHeritageClause:vy,createCatchClause:_b,updateCatchClause:f_,createPropertyAssignment:zh,updatePropertyAssignment:i1,createShorthandPropertyAssignment:Vv,updateShorthandPropertyAssignment:su,createSpreadAssignment:eg,updateSpreadAssignment:Uv,createEnumMember:Rk,updateEnumMember:Lb,createSourceFile:fn,updateSourceFile:Oo,createRedirectedSourceFile:$n,createBundle:ca,updateBundle:Fc,createUnparsedSource:ks,createUnparsedPrologue:Vs,createUnparsedPrepend:wu,createUnparsedTextLike:Yp,createUnparsedSyntheticReference:Q,createInputFiles:ft,createSyntheticExpression:br,createSyntaxList:oo,createNotEmittedStatement:Js,createPartiallyEmittedExpression:pu,updatePartiallyEmittedExpression:fl,createCommaListExpression:L_,updateCommaListExpression:Cl,createSyntheticReferenceExpression:o0,updateSyntheticReferenceExpression:oa,cloneNode:WP,get createComma(){return y(28)},get createAssignment(){return y(64)},get createLogicalOr(){return y(57)},get createLogicalAnd(){return y(56)},get createBitwiseOr(){return y(52)},get createBitwiseXor(){return y(53)},get createBitwiseAnd(){return y(51)},get createStrictEquality(){return y(37)},get createStrictInequality(){return y(38)},get createEquality(){return y(35)},get createInequality(){return y(36)},get createLessThan(){return y(30)},get createLessThanEquals(){return y(33)},get createGreaterThan(){return y(32)},get createGreaterThanEquals(){return y(34)},get createLeftShift(){return y(48)},get createRightShift(){return y(49)},get createUnsignedRightShift(){return y(50)},get createAdd(){return y(40)},get createSubtract(){return y(41)},get createMultiply(){return y(42)},get createDivide(){return y(44)},get createModulo(){return y(45)},get createExponent(){return y(43)},get createPrefixPlus(){return T(40)},get createPrefixMinus(){return T(41)},get createPrefixIncrement(){return T(46)},get createPrefixDecrement(){return T(47)},get createBitwiseNot(){return T(55)},get createLogicalNot(){return T(54)},get createPostfixIncrement(){return D(46)},get createPostfixDecrement(){return D(47)},createImmediatelyInvokedFunctionExpression:BP,createImmediatelyInvokedArrowFunction:LA,createVoidZero:OA,createExportDefault:pD,createExternalModuleExport:yC,createTypeCheck:vC,createIsNotTypeCheck:zP,createMethodCall:Xx,createGlobalMethodCall:j_,createFunctionBindCall:dx,createFunctionCallCall:WS,createFunctionApplyCall:px,createArraySliceCall:GP,createArrayConcatCall:oO,createObjectDefinePropertyCall:dS,createObjectGetOwnPropertyDescriptorCall:FA,createReflectGetCall:bC,createReflectSetCall:wm,createPropertyDescriptor:o1,createCallBinding:xi,createAssignmentTargetWrapper:xo,inlineExpressions:Wc,getInternalName:_c,getLocalName:Sl,getExportName:kf,getDeclarationName:Rp,getNamespaceMemberName:hn,getExternalModuleOrNamespaceExportName:v_,restoreOuterExpressions:Vt,restoreEnclosingLabel:zn,createUseStrictPrologue:mx,copyPrologue:yh,copyStandardPrologue:BS,copyCustomPrologue:N2,ensureUseStrict:pS,liftToBlock:jP,mergeLexicalEnvironment:gx,updateModifiers:VP,updateModifierLike:UP};return Ot(E6e,U=>U(Ne)),Ne;function Be(U,le){if(U===void 0||U===Zn)U=[];else if(L8(U)){if(le===void 0||U.hasTrailingComma===le)return U.transformFlags===void 0&&aUe(U),ce.attachNodeArrayDebugInfo(U),U;const Dn=U.slice();return Dn.pos=U.pos,Dn.end=U.end,Dn.hasTrailingComma=le,Dn.transformFlags=U.transformFlags,ce.attachNodeArrayDebugInfo(Dn),Dn}const Ae=U.length,rt=Ae>=1&&Ae<=4?U.slice():U;return rt.pos=-1,rt.end=-1,rt.hasTrailingComma=!!le,rt.transformFlags=0,aUe(rt),ce.attachNodeArrayDebugInfo(rt),rt}function Ve(U){return r.createBaseNode(U)}function pt(U){const le=Ve(U);return le.symbol=void 0,le.localSymbol=void 0,le}function Le(U,le){return U!==le&&(U.typeArguments=le.typeArguments),s(U,le)}function ht(U,le=0){const Ae=pt(9);return Ae.text=typeof U=="number"?U+"":U,Ae.numericLiteralFlags=le,le&384&&(Ae.transformFlags|=1024),Ae}function ke(U){const le=Xr(10);return le.text=typeof U=="string"?U:tD(U)+"n",le.transformFlags|=32,le}function _t(U,le){const Ae=pt(11);return Ae.text=U,Ae.singleQuote=le,Ae}function Dt(U,le,Ae){const rt=_t(U,le);return rt.hasExtendedUnicodeEscape=Ae,Ae&&(rt.transformFlags|=1024),rt}function Ft(U){const le=_t(aC(U),void 0);return le.textSourceNode=U,le}function it(U){const le=Xr(14);return le.text=U,le}function Ye(U,le){switch(U){case 9:return ht(le,0);case 10:return ke(le);case 11:return Dt(le,void 0);case 12:return q0(le,!1);case 13:return q0(le,!0);case 14:return it(le);case 15:return _S(U,le,void 0,0)}}function ut(U){const le=r.createBaseIdentifierNode(80);return le.escapedText=U,le.jsDoc=void 0,le.flowNode=void 0,le.symbol=void 0,le}function lt(U,le,Ae,rt){const Dn=ut(ty(U));return wY(Dn,{flags:le,id:Ls,prefix:Ae,suffix:rt}),Ls++,Dn}function zt(U,le,Ae){le===void 0&&U&&(le=TN(U)),le===80&&(le=void 0);const rt=ut(ty(U));return Ae&&(rt.flags|=256),rt.escapedText==="await"&&(rt.transformFlags|=67108864),rt.flags&256&&(rt.transformFlags|=1024),rt}function Wt(U,le,Ae,rt){let Dn=1;le&&(Dn|=8);const Ci=lt("",Dn,Ae,rt);return U&&U(Ci),Ci}function tt(U){let le=2;return U&&(le|=8),lt("",le,void 0,void 0)}function Mn(U,le=0,Ae,rt){return ce.assert(!(le&7),"Argument out of range: flags"),ce.assert((le&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),lt(U,3|le,Ae,rt)}function kn(U,le=0,Ae,rt){ce.assert(!(le&7),"Argument out of range: flags");const Dn=U?uy(U)?t4(!1,Ae,U,rt,ec):`generated@${Im(U)}`:"";(Ae||rt)&&(le|=16);const Ci=lt(Dn,4|le,Ae,rt);return Ci.original=U,Ci}function cr(U){const le=r.createBasePrivateIdentifierNode(81);return le.escapedText=U,le.transformFlags|=16777216,le}function un(U){return xf(U,"#")||ce.fail("First character of private identifier must be #: "+U),cr(ty(U))}function on(U,le,Ae,rt){const Dn=cr(ty(U));return wY(Dn,{flags:le,id:Ls,prefix:Ae,suffix:rt}),Ls++,Dn}function pn(U,le,Ae){U&&!xf(U,"#")&&ce.fail("First character of private identifier must be #: "+U);const rt=8|(U?3:1);return on(U??"",rt,le,Ae)}function Or(U,le,Ae){const rt=uy(U)?t4(!0,le,U,Ae,ec):`#generated@${Im(U)}`,Ci=on(rt,4|(le||Ae?16:0),le,Ae);return Ci.original=U,Ci}function Xr(U){return r.createBaseTokenNode(U)}function Ut(U){ce.assert(U>=0&&U<=165,"Invalid token"),ce.assert(U<=15||U>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),ce.assert(U<=9||U>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),ce.assert(U!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const le=Xr(U);let Ae=0;switch(U){case 134:Ae=384;break;case 160:Ae=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:Ae=1;break;case 108:Ae=134218752,le.flowNode=void 0;break;case 126:Ae=1024;break;case 129:Ae=16777216;break;case 110:Ae=16384,le.flowNode=void 0;break}return Ae&&(le.transformFlags|=Ae),le}function In(){return Ut(108)}function gr(){return Ut(110)}function Cr(){return Ut(106)}function ei(){return Ut(112)}function Gn(){return Ut(97)}function Ur(U){return Ut(U)}function so(U){const le=[];return U&1&&le.push(Ur(95)),U&2&&le.push(Ur(138)),U&1024&&le.push(Ur(90)),U&2048&&le.push(Ur(87)),U&4&&le.push(Ur(125)),U&8&&le.push(Ur(123)),U&16&&le.push(Ur(124)),U&256&&le.push(Ur(128)),U&32&&le.push(Ur(126)),U&16384&&le.push(Ur(164)),U&64&&le.push(Ur(148)),U&128&&le.push(Ur(129)),U&512&&le.push(Ur(134)),U&32768&&le.push(Ur(103)),U&65536&&le.push(Ur(147)),le.length?le:void 0}function ho(U,le){const Ae=Ve(166);return Ae.left=U,Ae.right=Bm(le),Ae.transformFlags|=ms(Ae.left)|AG(Ae.right),Ae.flowNode=void 0,Ae}function di(U,le,Ae){return U.left!==le||U.right!==Ae?s(ho(le,Ae),U):U}function Nc(U){const le=Ve(167);return le.expression=l().parenthesizeExpressionOfComputedPropertyName(U),le.transformFlags|=ms(le.expression)|1024|131072,le}function ha(U,le){return U.expression!==le?s(Nc(le),U):U}function ro(U,le,Ae,rt){const Dn=pt(168);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.constraint=Ae,Dn.default=rt,Dn.transformFlags=1,Dn.expression=void 0,Dn.jsDoc=void 0,Dn}function Gs(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.constraint!==rt||U.default!==Dn?s(ro(le,Ae,rt,Dn),U):U}function Oc(U,le,Ae,rt,Dn,Ci){const gs=pt(169);return gs.modifiers=Bd(U),gs.dotDotDotToken=le,gs.name=Bm(Ae),gs.questionToken=rt,gs.type=Dn,gs.initializer=TE(Ci),Zy(gs.name)?gs.transformFlags=1:gs.transformFlags=cp(gs.modifiers)|ms(gs.dotDotDotToken)|KL(gs.name)|ms(gs.questionToken)|ms(gs.initializer)|(gs.questionToken??gs.type?1:0)|(gs.dotDotDotToken??gs.initializer?1024:0)|(dk(gs.modifiers)&16476?8192:0),gs.jsDoc=void 0,gs}function _u(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.dotDotDotToken!==Ae||U.name!==rt||U.questionToken!==Dn||U.type!==Ci||U.initializer!==gs?s(Oc(le,Ae,rt,Dn,Ci,gs),U):U}function Ku(U){const le=Ve(170);return le.expression=l().parenthesizeLeftSideOfAccess(U,!1),le.transformFlags|=ms(le.expression)|1|8192|33554432,le}function al(U,le){return U.expression!==le?s(Ku(le),U):U}function Rr(U,le,Ae,rt){const Dn=pt(171);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.type=rt,Dn.questionToken=Ae,Dn.transformFlags=1,Dn.initializer=void 0,Dn.jsDoc=void 0,Dn}function mc(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.questionToken!==rt||U.type!==Dn?Ea(Rr(le,Ae,rt,Dn),U):U}function Ea(U,le){return U!==le&&(U.initializer=le.initializer),s(U,le)}function Fi(U,le,Ae,rt,Dn){const Ci=pt(172);Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.questionToken=Ae&&ER(Ae)?Ae:void 0,Ci.exclamationToken=Ae&&PJ(Ae)?Ae:void 0,Ci.type=rt,Ci.initializer=TE(Dn);const gs=Ci.flags&33554432||dk(Ci.modifiers)&2;return Ci.transformFlags=cp(Ci.modifiers)|KL(Ci.name)|ms(Ci.initializer)|(gs||Ci.questionToken||Ci.exclamationToken||Ci.type?1:0)|(am(Ci.name)||dk(Ci.modifiers)&32&&Ci.initializer?8192:0)|16777216,Ci.jsDoc=void 0,Ci}function ta(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.questionToken!==(rt!==void 0&&ER(rt)?rt:void 0)||U.exclamationToken!==(rt!==void 0&&PJ(rt)?rt:void 0)||U.type!==Dn||U.initializer!==Ci?s(Fi(le,Ae,rt,Dn,Ci),U):U}function $a(U,le,Ae,rt,Dn,Ci){const gs=pt(173);return gs.modifiers=Bd(U),gs.name=Bm(le),gs.questionToken=Ae,gs.typeParameters=Bd(rt),gs.parameters=Bd(Dn),gs.type=Ci,gs.transformFlags=1,gs.jsDoc=void 0,gs.locals=void 0,gs.nextContainer=void 0,gs.typeArguments=void 0,gs}function jc(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.name!==Ae||U.questionToken!==rt||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs?Le($a(le,Ae,rt,Dn,Ci,gs),U):U}function Xu(U,le,Ae,rt,Dn,Ci,gs,Tu){const tg=pt(174);if(tg.modifiers=Bd(U),tg.asteriskToken=le,tg.name=Bm(Ae),tg.questionToken=rt,tg.exclamationToken=void 0,tg.typeParameters=Bd(Dn),tg.parameters=Be(Ci),tg.type=gs,tg.body=Tu,!tg.body)tg.transformFlags=1;else{const mS=dk(tg.modifiers)&512,gg=!!tg.asteriskToken,Nh=mS&≫tg.transformFlags=cp(tg.modifiers)|ms(tg.asteriskToken)|KL(tg.name)|ms(tg.questionToken)|cp(tg.typeParameters)|cp(tg.parameters)|ms(tg.type)|ms(tg.body)&-67108865|(Nh?128:mS?256:gg?2048:0)|(tg.questionToken||tg.typeParameters||tg.type?1:0)|1024}return tg.typeArguments=void 0,tg.jsDoc=void 0,tg.locals=void 0,tg.nextContainer=void 0,tg.flowNode=void 0,tg.endFlowNode=void 0,tg.returnFlowNode=void 0,tg}function Lo(U,le,Ae,rt,Dn,Ci,gs,Tu,tg){return U.modifiers!==le||U.asteriskToken!==Ae||U.name!==rt||U.questionToken!==Dn||U.typeParameters!==Ci||U.parameters!==gs||U.type!==Tu||U.body!==tg?To(Xu(le,Ae,rt,Dn,Ci,gs,Tu,tg),U):U}function To(U,le){return U!==le&&(U.exclamationToken=le.exclamationToken),s(U,le)}function Aa(U){const le=pt(175);return le.body=U,le.transformFlags=ms(U)|16777216,le.modifiers=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.returnFlowNode=void 0,le}function sl(U,le){return U.body!==le?vc(Aa(le),U):U}function vc(U,le){return U!==le&&(U.modifiers=le.modifiers),s(U,le)}function er(U,le,Ae){const rt=pt(176);return rt.modifiers=Bd(U),rt.parameters=Be(le),rt.body=Ae,rt.transformFlags=cp(rt.modifiers)|cp(rt.parameters)|ms(rt.body)&-67108865|1024,rt.typeParameters=void 0,rt.type=void 0,rt.typeArguments=void 0,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.endFlowNode=void 0,rt.returnFlowNode=void 0,rt}function Jr(U,le,Ae,rt){return U.modifiers!==le||U.parameters!==Ae||U.body!==rt?li(er(le,Ae,rt),U):U}function li(U,le){return U!==le&&(U.typeParameters=le.typeParameters,U.type=le.type),Le(U,le)}function Ir(U,le,Ae,rt,Dn){const Ci=pt(177);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.parameters=Be(Ae),Ci.type=rt,Ci.body=Dn,Ci.body?Ci.transformFlags=cp(Ci.modifiers)|KL(Ci.name)|cp(Ci.parameters)|ms(Ci.type)|ms(Ci.body)&-67108865|(Ci.type?1:0):Ci.transformFlags=1,Ci.typeArguments=void 0,Ci.typeParameters=void 0,Ci.jsDoc=void 0,Ci.locals=void 0,Ci.nextContainer=void 0,Ci.flowNode=void 0,Ci.endFlowNode=void 0,Ci.returnFlowNode=void 0,Ci}function _o(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.parameters!==rt||U.type!==Dn||U.body!==Ci?xt(Ir(le,Ae,rt,Dn,Ci),U):U}function xt(U,le){return U!==le&&(U.typeParameters=le.typeParameters),Le(U,le)}function Kn(U,le,Ae,rt){const Dn=pt(178);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.parameters=Be(Ae),Dn.body=rt,Dn.body?Dn.transformFlags=cp(Dn.modifiers)|KL(Dn.name)|cp(Dn.parameters)|ms(Dn.body)&-67108865|(Dn.type?1:0):Dn.transformFlags=1,Dn.typeArguments=void 0,Dn.typeParameters=void 0,Dn.type=void 0,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn.endFlowNode=void 0,Dn.returnFlowNode=void 0,Dn}function gn(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.parameters!==rt||U.body!==Dn?qr(Kn(le,Ae,rt,Dn),U):U}function qr(U,le){return U!==le&&(U.typeParameters=le.typeParameters,U.type=le.type),Le(U,le)}function mt(U,le,Ae){const rt=pt(179);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function _r(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?Le(mt(le,Ae,rt),U):U}function Cn(U,le,Ae){const rt=pt(180);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function oi(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?Le(Cn(le,Ae,rt),U):U}function Qr(U,le,Ae){const rt=pt(181);return rt.modifiers=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function co(U,le,Ae,rt){return U.parameters!==Ae||U.type!==rt||U.modifiers!==le?Le(Qr(le,Ae,rt),U):U}function es(U,le){const Ae=Ve(204);return Ae.type=U,Ae.literal=le,Ae.transformFlags=1,Ae}function Ui(U,le,Ae){return U.type!==le||U.literal!==Ae?s(es(le,Ae),U):U}function xu(U){return Ut(U)}function We(U,le,Ae){const rt=Ve(182);return rt.assertsModifier=U,rt.parameterName=Bm(le),rt.type=Ae,rt.transformFlags=1,rt}function Re(U,le,Ae,rt){return U.assertsModifier!==le||U.parameterName!==Ae||U.type!==rt?s(We(le,Ae,rt),U):U}function wt(U,le){const Ae=Ve(183);return Ae.typeName=Bm(U),Ae.typeArguments=le&&l().parenthesizeTypeArguments(Be(le)),Ae.transformFlags=1,Ae}function $e(U,le,Ae){return U.typeName!==le||U.typeArguments!==Ae?s(wt(le,Ae),U):U}function Zt(U,le,Ae){const rt=pt(184);return rt.typeParameters=Bd(U),rt.parameters=Bd(le),rt.type=Ae,rt.transformFlags=1,rt.modifiers=void 0,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.typeArguments=void 0,rt}function xe(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?an(Zt(le,Ae,rt),U):U}function an(U,le){return U!==le&&(U.modifiers=le.modifiers),Le(U,le)}function Un(...U){return U.length===4?rr(...U):U.length===3?mi(...U):ce.fail("Incorrect number of arguments specified.")}function rr(U,le,Ae,rt){const Dn=pt(185);return Dn.modifiers=Bd(U),Dn.typeParameters=Bd(le),Dn.parameters=Bd(Ae),Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.typeArguments=void 0,Dn}function mi(U,le,Ae){return rr(void 0,U,le,Ae)}function Ji(...U){return U.length===5?zo(...U):U.length===4?Ca(...U):ce.fail("Incorrect number of arguments specified.")}function zo(U,le,Ae,rt,Dn){return U.modifiers!==le||U.typeParameters!==Ae||U.parameters!==rt||U.type!==Dn?Le(Un(le,Ae,rt,Dn),U):U}function Ca(U,le,Ae,rt){return zo(U,U.modifiers,le,Ae,rt)}function Qa(U,le){const Ae=Ve(186);return Ae.exprName=U,Ae.typeArguments=le&&l().parenthesizeTypeArguments(le),Ae.transformFlags=1,Ae}function Ks(U,le,Ae){return U.exprName!==le||U.typeArguments!==Ae?s(Qa(le,Ae),U):U}function vs(U){const le=pt(187);return le.members=Be(U),le.transformFlags=1,le}function ou(U,le){return U.members!==le?s(vs(le),U):U}function qd(U){const le=Ve(188);return le.elementType=l().parenthesizeNonArrayTypeOfPostfixType(U),le.transformFlags=1,le}function z_(U,le){return U.elementType!==le?s(qd(le),U):U}function fp(U){const le=Ve(189);return le.elements=Be(l().parenthesizeElementTypesOfTupleType(U)),le.transformFlags=1,le}function Ha(U,le){return U.elements!==le?s(fp(le),U):U}function mu(U,le,Ae,rt){const Dn=pt(202);return Dn.dotDotDotToken=U,Dn.name=le,Dn.questionToken=Ae,Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn}function x_(U,le,Ae,rt,Dn){return U.dotDotDotToken!==le||U.name!==Ae||U.questionToken!==rt||U.type!==Dn?s(mu(le,Ae,rt,Dn),U):U}function q_(U){const le=Ve(190);return le.type=l().parenthesizeTypeOfOptionalType(U),le.transformFlags=1,le}function Ma(U,le){return U.type!==le?s(q_(le),U):U}function U0(U){const le=Ve(191);return le.type=U,le.transformFlags=1,le}function c_(U,le){return U.type!==le?s(U0(le),U):U}function Kd(U,le,Ae){const rt=Ve(U);return rt.types=Ne.createNodeArray(Ae(le)),rt.transformFlags=1,rt}function iy(U,le,Ae){return U.types!==le?s(Kd(U.kind,le,Ae),U):U}function Oh(U){return Kd(192,U,l().parenthesizeConstituentTypesOfUnionType)}function jg(U,le){return iy(U,le,l().parenthesizeConstituentTypesOfUnionType)}function zv(U){return Kd(193,U,l().parenthesizeConstituentTypesOfIntersectionType)}function m_(U,le){return iy(U,le,l().parenthesizeConstituentTypesOfIntersectionType)}function Yu(U,le,Ae,rt){const Dn=Ve(194);return Dn.checkType=l().parenthesizeCheckTypeOfConditionalType(U),Dn.extendsType=l().parenthesizeExtendsTypeOfConditionalType(le),Dn.trueType=Ae,Dn.falseType=rt,Dn.transformFlags=1,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Tv(U,le,Ae,rt,Dn){return U.checkType!==le||U.extendsType!==Ae||U.trueType!==rt||U.falseType!==Dn?s(Yu(le,Ae,rt,Dn),U):U}function Kh(U){const le=Ve(195);return le.typeParameter=U,le.transformFlags=1,le}function uS(U,le){return U.typeParameter!==le?s(Kh(le),U):U}function H0(U,le){const Ae=Ve(203);return Ae.head=U,Ae.templateSpans=Be(le),Ae.transformFlags=1,Ae}function fx(U,le,Ae){return U.head!==le||U.templateSpans!==Ae?s(H0(le,Ae),U):U}function rd(U,le,Ae,rt,Dn=!1){const Ci=Ve(205);return Ci.argument=U,Ci.assertions=le,Ci.qualifier=Ae,Ci.typeArguments=rt&&l().parenthesizeTypeArguments(rt),Ci.isTypeOf=Dn,Ci.transformFlags=1,Ci}function Mg(U,le,Ae,rt,Dn,Ci=U.isTypeOf){return U.argument!==le||U.assertions!==Ae||U.qualifier!==rt||U.typeArguments!==Dn||U.isTypeOf!==Ci?s(rd(le,Ae,rt,Dn,Ci),U):U}function lm(U){const le=Ve(196);return le.type=U,le.transformFlags=1,le}function nm(U,le){return U.type!==le?s(lm(le),U):U}function po(){const U=Ve(197);return U.transformFlags=1,U}function gy(U,le){const Ae=Ve(198);return Ae.operator=U,Ae.type=U===148?l().parenthesizeOperandOfReadonlyTypeOperator(le):l().parenthesizeOperandOfTypeOperator(le),Ae.transformFlags=1,Ae}function fS(U,le){return U.type!==le?s(gy(U.operator,le),U):U}function GT(U,le){const Ae=Ve(199);return Ae.objectType=l().parenthesizeNonArrayTypeOfPostfixType(U),Ae.indexType=le,Ae.transformFlags=1,Ae}function vE(U,le,Ae){return U.objectType!==le||U.indexType!==Ae?s(GT(le,Ae),U):U}function oh(U,le,Ae,rt,Dn,Ci){const gs=pt(200);return gs.readonlyToken=U,gs.typeParameter=le,gs.nameType=Ae,gs.questionToken=rt,gs.type=Dn,gs.members=Ci&&Be(Ci),gs.transformFlags=1,gs.locals=void 0,gs.nextContainer=void 0,gs}function hy(U,le,Ae,rt,Dn,Ci,gs){return U.readonlyToken!==le||U.typeParameter!==Ae||U.nameType!==rt||U.questionToken!==Dn||U.type!==Ci||U.members!==gs?s(oh(le,Ae,rt,Dn,Ci,gs),U):U}function _e(U){const le=Ve(201);return le.literal=U,le.transformFlags=1,le}function vn(U,le){return U.literal!==le?s(_e(le),U):U}function Qn(U){const le=Ve(206);return le.elements=Be(U),le.transformFlags|=cp(le.elements)|1024|524288,le.transformFlags&32768&&(le.transformFlags|=65664),le}function hi(U,le){return U.elements!==le?s(Qn(le),U):U}function pa(U){const le=Ve(207);return le.elements=Be(U),le.transformFlags|=cp(le.elements)|1024|524288,le}function Zc(U,le){return U.elements!==le?s(pa(le),U):U}function ka(U,le,Ae,rt){const Dn=pt(208);return Dn.dotDotDotToken=U,Dn.propertyName=Bm(le),Dn.name=Bm(Ae),Dn.initializer=TE(rt),Dn.transformFlags|=ms(Dn.dotDotDotToken)|KL(Dn.propertyName)|KL(Dn.name)|ms(Dn.initializer)|(Dn.dotDotDotToken?32768:0)|1024,Dn.flowNode=void 0,Dn}function bc(U,le,Ae,rt,Dn){return U.propertyName!==Ae||U.dotDotDotToken!==le||U.name!==rt||U.initializer!==Dn?s(ka(le,Ae,rt,Dn),U):U}function gu(U,le){const Ae=Ve(209),rt=U&&Yf(U),Dn=Be(U,rt&&t0(rt)?!0:void 0);return Ae.elements=l().parenthesizeExpressionsOfCommaDelimitedList(Dn),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.elements),Ae}function yu(U,le){return U.elements!==le?s(gu(le,U.multiLine),U):U}function Xm(U,le){const Ae=pt(210);return Ae.properties=Be(U),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.properties),Ae.jsDoc=void 0,Ae}function Lg(U,le){return U.properties!==le?s(Xm(le,U.multiLine),U):U}function av(U,le,Ae){const rt=pt(211);return rt.expression=U,rt.questionDotToken=le,rt.name=Ae,rt.transformFlags=ms(rt.expression)|ms(rt.questionDotToken)|(An(rt.name)?AG(rt.name):ms(rt.name)|536870912),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Fh(U,le){const Ae=av(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Bm(le));return wJ(U)&&(Ae.transformFlags|=384),Ae}function J0(U,le,Ae){return BU(U)?Sv(U,le,U.questionDotToken,uc(Ae,An)):U.expression!==le||U.name!==Ae?s(Fh(le,Ae),U):U}function Eg(U,le,Ae){const rt=av(l().parenthesizeLeftSideOfAccess(U,!0),le,Bm(Ae));return rt.flags|=64,rt.transformFlags|=32,rt}function Sv(U,le,Ae,rt){return ce.assert(!!(U.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),U.expression!==le||U.questionDotToken!==Ae||U.name!==rt?s(Eg(le,Ae,rt),U):U}function jT(U,le,Ae){const rt=pt(212);return rt.expression=U,rt.questionDotToken=le,rt.argumentExpression=Ae,rt.transformFlags|=ms(rt.expression)|ms(rt.questionDotToken)|ms(rt.argumentExpression),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Ev(U,le){const Ae=jT(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Hv(le));return wJ(U)&&(Ae.transformFlags|=384),Ae}function S0(U,le,Ae){return jz(U)?tn(U,le,U.questionDotToken,Ae):U.expression!==le||U.argumentExpression!==Ae?s(Ev(le,Ae),U):U}function k1(U,le,Ae){const rt=jT(l().parenthesizeLeftSideOfAccess(U,!0),le,Hv(Ae));return rt.flags|=64,rt.transformFlags|=32,rt}function tn(U,le,Ae,rt){return ce.assert(!!(U.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),U.expression!==le||U.questionDotToken!==Ae||U.argumentExpression!==rt?s(k1(le,Ae,rt),U):U}function fi(U,le,Ae,rt){const Dn=pt(213);return Dn.expression=U,Dn.questionDotToken=le,Dn.typeArguments=Ae,Dn.arguments=rt,Dn.transformFlags|=ms(Dn.expression)|ms(Dn.questionDotToken)|cp(Dn.typeArguments)|cp(Dn.arguments),Dn.typeArguments&&(Dn.transformFlags|=1),Z1(Dn.expression)&&(Dn.transformFlags|=16384),Dn}function ya(U,le,Ae){const rt=fi(l().parenthesizeLeftSideOfAccess(U,!1),void 0,Bd(le),l().parenthesizeExpressionsOfCommaDelimitedList(Be(Ae)));return RJ(rt.expression)&&(rt.transformFlags|=8388608),rt}function bu(U,le,Ae,rt){return R8(U)?ig(U,le,U.questionDotToken,Ae,rt):U.expression!==le||U.typeArguments!==Ae||U.arguments!==rt?s(ya(le,Ae,rt),U):U}function K_(U,le,Ae,rt){const Dn=fi(l().parenthesizeLeftSideOfAccess(U,!0),le,Bd(Ae),l().parenthesizeExpressionsOfCommaDelimitedList(Be(rt)));return Dn.flags|=64,Dn.transformFlags|=32,Dn}function ig(U,le,Ae,rt,Dn){return ce.assert(!!(U.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),U.expression!==le||U.questionDotToken!==Ae||U.typeArguments!==rt||U.arguments!==Dn?s(K_(le,Ae,rt,Dn),U):U}function Fy(U,le,Ae){const rt=pt(214);return rt.expression=l().parenthesizeExpressionOfNew(U),rt.typeArguments=Bd(le),rt.arguments=Ae?l().parenthesizeExpressionsOfCommaDelimitedList(Ae):void 0,rt.transformFlags|=ms(rt.expression)|cp(rt.typeArguments)|cp(rt.arguments)|32,rt.typeArguments&&(rt.transformFlags|=1),rt}function bt(U,le,Ae,rt){return U.expression!==le||U.typeArguments!==Ae||U.arguments!==rt?s(Fy(le,Ae,rt),U):U}function ir(U,le,Ae){const rt=Ve(215);return rt.tag=l().parenthesizeLeftSideOfAccess(U,!1),rt.typeArguments=Bd(le),rt.template=Ae,rt.transformFlags|=ms(rt.tag)|cp(rt.typeArguments)|ms(rt.template)|1024,rt.typeArguments&&(rt.transformFlags|=1),SH(rt.template)&&(rt.transformFlags|=128),rt}function ii(U,le,Ae,rt){return U.tag!==le||U.typeArguments!==Ae||U.template!==rt?s(ir(le,Ae,rt),U):U}function Si(U,le){const Ae=Ve(216);return Ae.expression=l().parenthesizeOperandOfPrefixUnary(le),Ae.type=U,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function Do(U,le,Ae){return U.type!==le||U.expression!==Ae?s(Si(le,Ae),U):U}function Za(U){const le=Ve(217);return le.expression=U,le.transformFlags=ms(le.expression),le.jsDoc=void 0,le}function Qc(U,le){return U.expression!==le?s(Za(le),U):U}function Al(U,le,Ae,rt,Dn,Ci,gs){const Tu=pt(218);Tu.modifiers=Bd(U),Tu.asteriskToken=le,Tu.name=Bm(Ae),Tu.typeParameters=Bd(rt),Tu.parameters=Be(Dn),Tu.type=Ci,Tu.body=gs;const tg=dk(Tu.modifiers)&512,mS=!!Tu.asteriskToken,gg=tg&&mS;return Tu.transformFlags=cp(Tu.modifiers)|ms(Tu.asteriskToken)|KL(Tu.name)|cp(Tu.typeParameters)|cp(Tu.parameters)|ms(Tu.type)|ms(Tu.body)&-67108865|(gg?128:tg?256:mS?2048:0)|(Tu.typeParameters||Tu.type?1:0)|4194304,Tu.typeArguments=void 0,Tu.jsDoc=void 0,Tu.locals=void 0,Tu.nextContainer=void 0,Tu.flowNode=void 0,Tu.endFlowNode=void 0,Tu.returnFlowNode=void 0,Tu}function du(U,le,Ae,rt,Dn,Ci,gs,Tu){return U.name!==rt||U.modifiers!==le||U.asteriskToken!==Ae||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs||U.body!==Tu?Le(Al(le,Ae,rt,Dn,Ci,gs,Tu),U):U}function N_(U,le,Ae,rt,Dn,Ci){const gs=pt(219);gs.modifiers=Bd(U),gs.typeParameters=Bd(le),gs.parameters=Be(Ae),gs.type=rt,gs.equalsGreaterThanToken=Dn??Ut(39),gs.body=l().parenthesizeConciseBodyOfArrowFunction(Ci);const Tu=dk(gs.modifiers)&512;return gs.transformFlags=cp(gs.modifiers)|cp(gs.typeParameters)|cp(gs.parameters)|ms(gs.type)|ms(gs.equalsGreaterThanToken)|ms(gs.body)&-67108865|(gs.typeParameters||gs.type?1:0)|(Tu?16640:0)|1024,gs.typeArguments=void 0,gs.jsDoc=void 0,gs.locals=void 0,gs.nextContainer=void 0,gs.flowNode=void 0,gs.endFlowNode=void 0,gs.returnFlowNode=void 0,gs}function zp(U,le,Ae,rt,Dn,Ci,gs){return U.modifiers!==le||U.typeParameters!==Ae||U.parameters!==rt||U.type!==Dn||U.equalsGreaterThanToken!==Ci||U.body!==gs?Le(N_(le,Ae,rt,Dn,Ci,gs),U):U}function gh(U){const le=Ve(220);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function Wh(U,le){return U.expression!==le?s(gh(le),U):U}function Gv(U){const le=Ve(221);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function jv(U,le){return U.expression!==le?s(Gv(le),U):U}function yy(U){const le=Ve(222);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression),le}function ub(U,le){return U.expression!==le?s(yy(le),U):U}function E0(U){const le=Ve(223);return le.expression=l().parenthesizeOperandOfPrefixUnary(U),le.transformFlags|=ms(le.expression)|256|128|2097152,le}function P2(U,le){return U.expression!==le?s(E0(le),U):U}function MA(U,le){const Ae=Ve(224);return Ae.operator=U,Ae.operand=l().parenthesizeOperandOfPrefixUnary(le),Ae.transformFlags|=ms(Ae.operand),(U===46||U===47)&&An(Ae.operand)&&!Om(Ae.operand)&&!T6(Ae.operand)&&(Ae.transformFlags|=268435456),Ae}function aw(U,le){return U.operand!==le?s(MA(U.operator,le),U):U}function DI(U,le){const Ae=Ve(225);return Ae.operator=le,Ae.operand=l().parenthesizeOperandOfPostfixUnary(U),Ae.transformFlags|=ms(Ae.operand),An(Ae.operand)&&!Om(Ae.operand)&&!T6(Ae.operand)&&(Ae.transformFlags|=268435456),Ae}function Me(U,le){return U.operand!==le?s(DI(le,U.operator),U):U}function jn(U,le,Ae){const rt=pt(226),Dn=A0(le),Ci=Dn.kind;return rt.left=l().parenthesizeLeftSideOfBinary(Ci,U),rt.operatorToken=Dn,rt.right=l().parenthesizeRightSideOfBinary(Ci,rt.left,Ae),rt.transformFlags|=ms(rt.left)|ms(rt.operatorToken)|ms(rt.right),Ci===61?rt.transformFlags|=32:Ci===64?Wd(rt.left)?rt.transformFlags|=5248|Mi(rt.left):Ch(rt.left)&&(rt.transformFlags|=5120|Mi(rt.left)):Ci===43||Ci===68?rt.transformFlags|=512:W7(Ci)&&(rt.transformFlags|=16),Ci===103&&Gu(rt.left)&&(rt.transformFlags|=536870912),rt.jsDoc=void 0,rt}function Mi(U){return QY(U)?65536:0}function js(U,le,Ae,rt){return U.left!==le||U.operatorToken!==Ae||U.right!==rt?s(jn(le,Ae,rt),U):U}function X_(U,le,Ae,rt,Dn){const Ci=Ve(227);return Ci.condition=l().parenthesizeConditionOfConditionalExpression(U),Ci.questionToken=le??Ut(58),Ci.whenTrue=l().parenthesizeBranchOfConditionalExpression(Ae),Ci.colonToken=rt??Ut(59),Ci.whenFalse=l().parenthesizeBranchOfConditionalExpression(Dn),Ci.transformFlags|=ms(Ci.condition)|ms(Ci.questionToken)|ms(Ci.whenTrue)|ms(Ci.colonToken)|ms(Ci.whenFalse),Ci}function $l(U,le,Ae,rt,Dn,Ci){return U.condition!==le||U.questionToken!==Ae||U.whenTrue!==rt||U.colonToken!==Dn||U.whenFalse!==Ci?s(X_(le,Ae,rt,Dn,Ci),U):U}function y_(U,le){const Ae=Ve(228);return Ae.head=U,Ae.templateSpans=Be(le),Ae.transformFlags|=ms(Ae.head)|cp(Ae.templateSpans)|1024,Ae}function l_(U,le,Ae){return U.head!==le||U.templateSpans!==Ae?s(y_(le,Ae),U):U}function Ph(U,le,Ae,rt=0){ce.assert(!(rt&-7177),"Unsupported template flags.");let Dn;if(Ae!==void 0&&Ae!==le&&(Dn=_st(U,Ae),typeof Dn=="object"))return ce.fail("Invalid raw text");if(le===void 0){if(Dn===void 0)return ce.fail("Arguments 'text' and 'rawText' may not both be undefined.");le=Dn}else Dn!==void 0&&ce.assert(le===Dn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return le}function Ap(U){let le=1024;return U&&(le|=128),le}function Mb(U,le,Ae,rt){const Dn=Xr(U);return Dn.text=le,Dn.rawText=Ae,Dn.templateFlags=rt&7176,Dn.transformFlags=Ap(Dn.templateFlags),Dn}function _x(U,le,Ae,rt){const Dn=pt(U);return Dn.text=le,Dn.rawText=Ae,Dn.templateFlags=rt&7176,Dn.transformFlags=Ap(Dn.templateFlags),Dn}function _S(U,le,Ae,rt){return U===15?_x(U,le,Ae,rt):Mb(U,le,Ae,rt)}function e(U,le,Ae){return U=Ph(16,U,le,Ae),_S(16,U,le,Ae)}function n(U,le,Ae){return U=Ph(16,U,le,Ae),_S(17,U,le,Ae)}function i(U,le,Ae){return U=Ph(16,U,le,Ae),_S(18,U,le,Ae)}function c(U,le,Ae){return U=Ph(16,U,le,Ae),_x(15,U,le,Ae)}function u(U,le){ce.assert(!U||!!le,"A `YieldExpression` with an asteriskToken must have an expression.");const Ae=Ve(229);return Ae.expression=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.asteriskToken=U,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.asteriskToken)|1024|128|1048576,Ae}function d(U,le,Ae){return U.expression!==Ae||U.asteriskToken!==le?s(u(le,Ae),U):U}function h(U){const le=Ve(230);return le.expression=l().parenthesizeExpressionForDisallowedComma(U),le.transformFlags|=ms(le.expression)|1024|32768,le}function S(U,le){return U.expression!==le?s(h(le),U):U}function E(U,le,Ae,rt,Dn){const Ci=pt(231);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),Ci.transformFlags|=cp(Ci.modifiers)|KL(Ci.name)|cp(Ci.typeParameters)|cp(Ci.heritageClauses)|cp(Ci.members)|(Ci.typeParameters?1:0)|1024,Ci.jsDoc=void 0,Ci}function P(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(E(le,Ae,rt,Dn,Ci),U):U}function k(){return Ve(232)}function F(U,le){const Ae=Ve(233);return Ae.expression=l().parenthesizeLeftSideOfAccess(U,!1),Ae.typeArguments=le&&l().parenthesizeTypeArguments(le),Ae.transformFlags|=ms(Ae.expression)|cp(Ae.typeArguments)|1024,Ae}function $(U,le,Ae){return U.expression!==le||U.typeArguments!==Ae?s(F(le,Ae),U):U}function J(U,le){const Ae=Ve(234);return Ae.expression=U,Ae.type=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function X(U,le,Ae){return U.expression!==le||U.type!==Ae?s(J(le,Ae),U):U}function ie(U){const le=Ve(235);return le.expression=l().parenthesizeLeftSideOfAccess(U,!1),le.transformFlags|=ms(le.expression)|1,le}function ae(U,le){return Vz(U)?et(U,le):U.expression!==le?s(ie(le),U):U}function ve(U,le){const Ae=Ve(238);return Ae.expression=U,Ae.type=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.type)|1,Ae}function we(U,le,Ae){return U.expression!==le||U.type!==Ae?s(ve(le,Ae),U):U}function Fe(U){const le=Ve(235);return le.flags|=64,le.expression=l().parenthesizeLeftSideOfAccess(U,!0),le.transformFlags|=ms(le.expression)|1,le}function et(U,le){return ce.assert(!!(U.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),U.expression!==le?s(Fe(le),U):U}function Pe(U,le){const Ae=Ve(236);switch(Ae.keywordToken=U,Ae.name=le,Ae.transformFlags|=ms(Ae.name),U){case 105:Ae.transformFlags|=1024;break;case 102:Ae.transformFlags|=32;break;default:return ce.assertNever(U)}return Ae.flowNode=void 0,Ae}function dt(U,le){return U.name!==le?s(Pe(U.keywordToken,le),U):U}function Ie(U,le){const Ae=Ve(239);return Ae.expression=U,Ae.literal=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.literal)|1024,Ae}function ct(U,le,Ae){return U.expression!==le||U.literal!==Ae?s(Ie(le,Ae),U):U}function Ct(){const U=Ve(240);return U.transformFlags|=1024,U}function Lt(U,le){const Ae=Ve(241);return Ae.statements=Be(U),Ae.multiLine=le,Ae.transformFlags|=cp(Ae.statements),Ae.jsDoc=void 0,Ae.locals=void 0,Ae.nextContainer=void 0,Ae}function Ze(U,le){return U.statements!==le?s(Lt(le,U.multiLine),U):U}function Ke(U,le){const Ae=Ve(243);return Ae.modifiers=Bd(U),Ae.declarationList=ls(le)?na(le):le,Ae.transformFlags|=cp(Ae.modifiers)|ms(Ae.declarationList),dk(Ae.modifiers)&2&&(Ae.transformFlags=1),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function st(U,le,Ae){return U.modifiers!==le||U.declarationList!==Ae?s(Ke(le,Ae),U):U}function It(){const U=Ve(242);return U.jsDoc=void 0,U}function Yt(U){const le=Ve(244);return le.expression=l().parenthesizeExpressionOfExpressionStatement(U),le.transformFlags|=ms(le.expression),le.jsDoc=void 0,le.flowNode=void 0,le}function Et(U,le){return U.expression!==le?s(Yt(le),U):U}function at(U,le,Ae){const rt=Ve(245);return rt.expression=U,rt.thenStatement=w2(le),rt.elseStatement=w2(Ae),rt.transformFlags|=ms(rt.expression)|ms(rt.thenStatement)|ms(rt.elseStatement),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function Qt(U,le,Ae,rt){return U.expression!==le||U.thenStatement!==Ae||U.elseStatement!==rt?s(at(le,Ae,rt),U):U}function nn(U,le){const Ae=Ve(246);return Ae.statement=w2(U),Ae.expression=le,Ae.transformFlags|=ms(Ae.statement)|ms(Ae.expression),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function Rn(U,le,Ae){return U.statement!==le||U.expression!==Ae?s(nn(le,Ae),U):U}function cn(U,le){const Ae=Ve(247);return Ae.expression=U,Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.expression)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function qt(U,le,Ae){return U.expression!==le||U.statement!==Ae?s(cn(le,Ae),U):U}function Kt(U,le,Ae,rt){const Dn=Ve(248);return Dn.initializer=U,Dn.condition=le,Dn.incrementor=Ae,Dn.statement=w2(rt),Dn.transformFlags|=ms(Dn.initializer)|ms(Dn.condition)|ms(Dn.incrementor)|ms(Dn.statement),Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn}function wr(U,le,Ae,rt,Dn){return U.initializer!==le||U.condition!==Ae||U.incrementor!==rt||U.statement!==Dn?s(Kt(le,Ae,rt,Dn),U):U}function Wr(U,le,Ae){const rt=Ve(249);return rt.initializer=U,rt.expression=le,rt.statement=w2(Ae),rt.transformFlags|=ms(rt.initializer)|ms(rt.expression)|ms(rt.statement),rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt.flowNode=void 0,rt}function jt(U,le,Ae,rt){return U.initializer!==le||U.expression!==Ae||U.statement!==rt?s(Wr(le,Ae,rt),U):U}function En(U,le,Ae,rt){const Dn=Ve(250);return Dn.awaitModifier=U,Dn.initializer=le,Dn.expression=l().parenthesizeExpressionForDisallowedComma(Ae),Dn.statement=w2(rt),Dn.transformFlags|=ms(Dn.awaitModifier)|ms(Dn.initializer)|ms(Dn.expression)|ms(Dn.statement)|1024,U&&(Dn.transformFlags|=128),Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn.flowNode=void 0,Dn}function fr(U,le,Ae,rt,Dn){return U.awaitModifier!==le||U.initializer!==Ae||U.expression!==rt||U.statement!==Dn?s(En(le,Ae,rt,Dn),U):U}function Tr(U){const le=Ve(251);return le.label=Bm(U),le.transformFlags|=ms(le.label)|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function Vr(U,le){return U.label!==le?s(Tr(le),U):U}function Pn(U){const le=Ve(252);return le.label=Bm(U),le.transformFlags|=ms(le.label)|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function Fr(U,le){return U.label!==le?s(Pn(le),U):U}function Ki(U){const le=Ve(253);return le.expression=U,le.transformFlags|=ms(le.expression)|128|4194304,le.jsDoc=void 0,le.flowNode=void 0,le}function io(U,le){return U.expression!==le?s(Ki(le),U):U}function no(U,le){const Ae=Ve(254);return Ae.expression=U,Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.expression)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function os(U,le,Ae){return U.expression!==le||U.statement!==Ae?s(no(le,Ae),U):U}function Mo(U,le){const Ae=Ve(255);return Ae.expression=l().parenthesizeExpressionForDisallowedComma(U),Ae.caseBlock=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.caseBlock),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae.possiblyExhaustive=!1,Ae}function $i(U,le,Ae){return U.expression!==le||U.caseBlock!==Ae?s(Mo(le,Ae),U):U}function ki(U,le){const Ae=Ve(256);return Ae.label=Bm(U),Ae.statement=w2(le),Ae.transformFlags|=ms(Ae.label)|ms(Ae.statement),Ae.jsDoc=void 0,Ae.flowNode=void 0,Ae}function gc(U,le,Ae){return U.label!==le||U.statement!==Ae?s(ki(le,Ae),U):U}function Wl(U){const le=Ve(257);return le.expression=U,le.transformFlags|=ms(le.expression),le.jsDoc=void 0,le.flowNode=void 0,le}function Jc(U,le){return U.expression!==le?s(Wl(le),U):U}function au(U,le,Ae){const rt=Ve(258);return rt.tryBlock=U,rt.catchClause=le,rt.finallyBlock=Ae,rt.transformFlags|=ms(rt.tryBlock)|ms(rt.catchClause)|ms(rt.finallyBlock),rt.jsDoc=void 0,rt.flowNode=void 0,rt}function qn(U,le,Ae,rt){return U.tryBlock!==le||U.catchClause!==Ae||U.finallyBlock!==rt?s(au(le,Ae,rt),U):U}function za(){const U=Ve(259);return U.jsDoc=void 0,U.flowNode=void 0,U}function Ia(U,le,Ae,rt){const Dn=pt(260);return Dn.name=Bm(U),Dn.exclamationToken=le,Dn.type=Ae,Dn.initializer=TE(rt),Dn.transformFlags|=KL(Dn.name)|ms(Dn.initializer)|(Dn.exclamationToken??Dn.type?1:0),Dn.jsDoc=void 0,Dn}function zi(U,le,Ae,rt,Dn){return U.name!==le||U.type!==rt||U.exclamationToken!==Ae||U.initializer!==Dn?s(Ia(le,Ae,rt,Dn),U):U}function na(U,le=0){const Ae=Ve(261);return Ae.flags|=le&7,Ae.declarations=Be(U),Ae.transformFlags|=cp(Ae.declarations)|4194304,le&7&&(Ae.transformFlags|=263168),le&4&&(Ae.transformFlags|=4),Ae}function _a(U,le){return U.declarations!==le?s(na(le,U.flags),U):U}function us(U,le,Ae,rt,Dn,Ci,gs){const Tu=pt(262);if(Tu.modifiers=Bd(U),Tu.asteriskToken=le,Tu.name=Bm(Ae),Tu.typeParameters=Bd(rt),Tu.parameters=Be(Dn),Tu.type=Ci,Tu.body=gs,!Tu.body||dk(Tu.modifiers)&2)Tu.transformFlags=1;else{const tg=dk(Tu.modifiers)&512,mS=!!Tu.asteriskToken,gg=tg&&mS;Tu.transformFlags=cp(Tu.modifiers)|ms(Tu.asteriskToken)|KL(Tu.name)|cp(Tu.typeParameters)|cp(Tu.parameters)|ms(Tu.type)|ms(Tu.body)&-67108865|(gg?128:tg?256:mS?2048:0)|(Tu.typeParameters||Tu.type?1:0)|4194304}return Tu.typeArguments=void 0,Tu.jsDoc=void 0,Tu.locals=void 0,Tu.nextContainer=void 0,Tu.endFlowNode=void 0,Tu.returnFlowNode=void 0,Tu}function Au(U,le,Ae,rt,Dn,Ci,gs,Tu){return U.modifiers!==le||U.asteriskToken!==Ae||U.name!==rt||U.typeParameters!==Dn||U.parameters!==Ci||U.type!==gs||U.body!==Tu?Qu(us(le,Ae,rt,Dn,Ci,gs,Tu),U):U}function Qu(U,le){return U!==le&&U.modifiers===le.modifiers&&(U.modifiers=le.modifiers),Le(U,le)}function Cu(U,le,Ae,rt,Dn){const Ci=pt(263);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),dk(Ci.modifiers)&2?Ci.transformFlags=1:(Ci.transformFlags|=cp(Ci.modifiers)|KL(Ci.name)|cp(Ci.typeParameters)|cp(Ci.heritageClauses)|cp(Ci.members)|(Ci.typeParameters?1:0)|1024,Ci.transformFlags&8192&&(Ci.transformFlags|=1)),Ci.jsDoc=void 0,Ci}function yf(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(Cu(le,Ae,rt,Dn,Ci),U):U}function w_(U,le,Ae,rt,Dn){const Ci=pt(264);return Ci.modifiers=Bd(U),Ci.name=Bm(le),Ci.typeParameters=Bd(Ae),Ci.heritageClauses=Bd(rt),Ci.members=Be(Dn),Ci.transformFlags=1,Ci.jsDoc=void 0,Ci}function Eu(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.heritageClauses!==Dn||U.members!==Ci?s(w_(le,Ae,rt,Dn,Ci),U):U}function He(U,le,Ae,rt){const Dn=pt(265);return Dn.modifiers=Bd(U),Dn.name=Bm(le),Dn.typeParameters=Bd(Ae),Dn.type=rt,Dn.transformFlags=1,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Hn(U,le,Ae,rt,Dn){return U.modifiers!==le||U.name!==Ae||U.typeParameters!==rt||U.type!==Dn?s(He(le,Ae,rt,Dn),U):U}function dr(U,le,Ae){const rt=pt(266);return rt.modifiers=Bd(U),rt.name=Bm(le),rt.members=Be(Ae),rt.transformFlags|=cp(rt.modifiers)|ms(rt.name)|cp(rt.members)|1,rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function Mr(U,le,Ae,rt){return U.modifiers!==le||U.name!==Ae||U.members!==rt?s(dr(le,Ae,rt),U):U}function Pr(U,le,Ae,rt=0){const Dn=pt(267);return Dn.modifiers=Bd(U),Dn.flags|=rt&2088,Dn.name=le,Dn.body=Ae,dk(Dn.modifiers)&2?Dn.transformFlags=1:Dn.transformFlags|=cp(Dn.modifiers)|ms(Dn.name)|ms(Dn.body)|1,Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Bt(U,le,Ae,rt){return U.modifiers!==le||U.name!==Ae||U.body!==rt?s(Pr(le,Ae,rt,U.flags),U):U}function ln(U){const le=Ve(268);return le.statements=Be(U),le.transformFlags|=cp(le.statements),le.jsDoc=void 0,le}function Wn(U,le){return U.statements!==le?s(ln(le),U):U}function $r(U){const le=Ve(269);return le.clauses=Be(U),le.transformFlags|=cp(le.clauses),le.locals=void 0,le.nextContainer=void 0,le}function Ge(U,le){return U.clauses!==le?s($r(le),U):U}function Br(U){const le=pt(270);return le.name=Bm(U),le.transformFlags|=AG(le.name)|1,le.modifiers=void 0,le.jsDoc=void 0,le}function Ei(U,le){return U.name!==le?Ln(Br(le),U):U}function Ln(U,le){return U!==le&&(U.modifiers=le.modifiers),s(U,le)}function Sr(U,le,Ae,rt){const Dn=pt(271);return Dn.modifiers=Bd(U),Dn.name=Bm(Ae),Dn.isTypeOnly=le,Dn.moduleReference=rt,Dn.transformFlags|=cp(Dn.modifiers)|AG(Dn.name)|ms(Dn.moduleReference),j0(Dn.moduleReference)||(Dn.transformFlags|=1),Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn}function yi(U,le,Ae,rt,Dn){return U.modifiers!==le||U.isTypeOnly!==Ae||U.name!==rt||U.moduleReference!==Dn?s(Sr(le,Ae,rt,Dn),U):U}function go(U,le,Ae,rt){const Dn=Ve(272);return Dn.modifiers=Bd(U),Dn.importClause=le,Dn.moduleSpecifier=Ae,Dn.assertClause=rt,Dn.transformFlags|=ms(Dn.importClause)|ms(Dn.moduleSpecifier),Dn.transformFlags&=-67108865,Dn.jsDoc=void 0,Dn}function Ao(U,le,Ae,rt,Dn){return U.modifiers!==le||U.importClause!==Ae||U.moduleSpecifier!==rt||U.assertClause!==Dn?s(go(le,Ae,rt,Dn),U):U}function Io(U,le,Ae){const rt=pt(273);return rt.isTypeOnly=U,rt.name=le,rt.namedBindings=Ae,rt.transformFlags|=ms(rt.name)|ms(rt.namedBindings),U&&(rt.transformFlags|=1),rt.transformFlags&=-67108865,rt}function ze(U,le,Ae,rt){return U.isTypeOnly!==le||U.name!==Ae||U.namedBindings!==rt?s(Io(le,Ae,rt),U):U}function Ce(U,le){const Ae=Ve(300);return Ae.elements=Be(U),Ae.multiLine=le,Ae.transformFlags|=4,Ae}function kt(U,le,Ae){return U.elements!==le||U.multiLine!==Ae?s(Ce(le,Ae),U):U}function qe(U,le){const Ae=Ve(301);return Ae.name=U,Ae.value=le,Ae.transformFlags|=4,Ae}function Mt(U,le,Ae){return U.name!==le||U.value!==Ae?s(qe(le,Ae),U):U}function ge(U,le){const Ae=Ve(302);return Ae.assertClause=U,Ae.multiLine=le,Ae}function mn(U,le,Ae){return U.assertClause!==le||U.multiLine!==Ae?s(ge(le,Ae),U):U}function Jn(U){const le=pt(274);return le.name=U,le.transformFlags|=ms(le.name),le.transformFlags&=-67108865,le}function Nn(U,le){return U.name!==le?s(Jn(le),U):U}function Lr(U){const le=pt(280);return le.name=U,le.transformFlags|=ms(le.name)|32,le.transformFlags&=-67108865,le}function qi(U,le){return U.name!==le?s(Lr(le),U):U}function vo(U){const le=Ve(275);return le.elements=Be(U),le.transformFlags|=cp(le.elements),le.transformFlags&=-67108865,le}function Ro(U,le){return U.elements!==le?s(vo(le),U):U}function Ts(U,le,Ae){const rt=pt(276);return rt.isTypeOnly=U,rt.propertyName=le,rt.name=Ae,rt.transformFlags|=ms(rt.propertyName)|ms(rt.name),rt.transformFlags&=-67108865,rt}function Cc(U,le,Ae,rt){return U.isTypeOnly!==le||U.propertyName!==Ae||U.name!==rt?s(Ts(le,Ae,rt),U):U}function Pc(U,le,Ae){const rt=pt(277);return rt.modifiers=Bd(U),rt.isExportEquals=le,rt.expression=le?l().parenthesizeRightSideOfBinary(64,void 0,Ae):l().parenthesizeExpressionOfExportDefault(Ae),rt.transformFlags|=cp(rt.modifiers)|ms(rt.expression),rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function hc(U,le,Ae){return U.modifiers!==le||U.expression!==Ae?s(Pc(le,U.isExportEquals,Ae),U):U}function bl(U,le,Ae,rt,Dn){const Ci=pt(278);return Ci.modifiers=Bd(U),Ci.isTypeOnly=le,Ci.exportClause=Ae,Ci.moduleSpecifier=rt,Ci.assertClause=Dn,Ci.transformFlags|=cp(Ci.modifiers)|ms(Ci.exportClause)|ms(Ci.moduleSpecifier),Ci.transformFlags&=-67108865,Ci.jsDoc=void 0,Ci}function Tc(U,le,Ae,rt,Dn,Ci){return U.modifiers!==le||U.isTypeOnly!==Ae||U.exportClause!==rt||U.moduleSpecifier!==Dn||U.assertClause!==Ci?Tf(bl(le,Ae,rt,Dn,Ci),U):U}function Tf(U,le){return U!==le&&U.modifiers===le.modifiers&&(U.modifiers=le.modifiers),s(U,le)}function ma(U){const le=Ve(279);return le.elements=Be(U),le.transformFlags|=cp(le.elements),le.transformFlags&=-67108865,le}function Bl(U,le){return U.elements!==le?s(ma(le),U):U}function G_(U,le,Ae){const rt=Ve(281);return rt.isTypeOnly=U,rt.propertyName=Bm(le),rt.name=Bm(Ae),rt.transformFlags|=ms(rt.propertyName)|ms(rt.name),rt.transformFlags&=-67108865,rt.jsDoc=void 0,rt}function u_(U,le,Ae,rt){return U.isTypeOnly!==le||U.propertyName!==Ae||U.name!==rt?s(G_(le,Ae,rt),U):U}function xa(){const U=pt(282);return U.jsDoc=void 0,U}function Ym(U){const le=Ve(283);return le.expression=U,le.transformFlags|=ms(le.expression),le.transformFlags&=-67108865,le}function mf(U,le){return U.expression!==le?s(Ym(le),U):U}function Cp(U){return Ve(U)}function Yg(U,le,Ae=!1){const rt=xg(U,Ae?le&&l().parenthesizeNonArrayTypeOfPostfixType(le):le);return rt.postfix=Ae,rt}function xg(U,le){const Ae=Ve(U);return Ae.type=le,Ae}function Wy(U,le,Ae){return le.type!==Ae?s(Yg(U,Ae,le.postfix),le):le}function Og(U,le,Ae){return le.type!==Ae?s(xg(U,Ae),le):le}function pl(U,le){const Ae=pt(324);return Ae.parameters=Bd(U),Ae.type=le,Ae.transformFlags=cp(Ae.parameters)|(Ae.type?1:0),Ae.jsDoc=void 0,Ae.locals=void 0,Ae.nextContainer=void 0,Ae.typeArguments=void 0,Ae}function R_(U,le,Ae){return U.parameters!==le||U.type!==Ae?s(pl(le,Ae),U):U}function og(U,le=!1){const Ae=pt(329);return Ae.jsDocPropertyTags=Bd(U),Ae.isArrayType=le,Ae}function km(U,le,Ae){return U.jsDocPropertyTags!==le||U.isArrayType!==Ae?s(og(le,Ae),U):U}function M_(U){const le=Ve(316);return le.type=U,le}function oy(U,le){return U.type!==le?s(M_(le),U):U}function bE(U,le,Ae){const rt=pt(330);return rt.typeParameters=Bd(U),rt.parameters=Be(le),rt.type=Ae,rt.jsDoc=void 0,rt.locals=void 0,rt.nextContainer=void 0,rt}function hh(U,le,Ae,rt){return U.typeParameters!==le||U.parameters!==Ae||U.type!==rt?s(bE(le,Ae,rt),U):U}function qo(U){const le=xG(U.kind);return U.tagName.escapedText===ty(le)?U.tagName:zt(le)}function d_(U,le,Ae){const rt=Ve(U);return rt.tagName=le,rt.comment=Ae,rt}function Ka(U,le,Ae){const rt=pt(U);return rt.tagName=le,rt.comment=Ae,rt}function Qi(U,le,Ae,rt){const Dn=d_(352,U??zt("template"),rt);return Dn.constraint=le,Dn.typeParameters=Be(Ae),Dn}function Pm(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.constraint!==Ae||U.typeParameters!==rt||U.comment!==Dn?s(Qi(le,Ae,rt,Dn),U):U}function Ag(U,le,Ae,rt){const Dn=Ka(353,U??zt("typedef"),rt);return Dn.typeExpression=le,Dn.fullName=Ae,Dn.name=YY(Ae),Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function va(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.typeExpression!==Ae||U.fullName!==rt||U.comment!==Dn?s(Ag(le,Ae,rt,Dn),U):U}function x0(U,le,Ae,rt,Dn,Ci){const gs=Ka(348,U??zt("param"),Ci);return gs.typeExpression=rt,gs.name=le,gs.isNameFirst=!!Dn,gs.isBracketed=Ae,gs}function Nm(U,le=qo(U),Ae,rt,Dn,Ci,gs){return U.tagName!==le||U.name!==Ae||U.isBracketed!==rt||U.typeExpression!==Dn||U.isNameFirst!==Ci||U.comment!==gs?s(x0(le,Ae,rt,Dn,Ci,gs),U):U}function Md(U,le,Ae,rt,Dn,Ci){const gs=Ka(355,U??zt("prop"),Ci);return gs.typeExpression=rt,gs.name=le,gs.isNameFirst=!!Dn,gs.isBracketed=Ae,gs}function fe(U,le=qo(U),Ae,rt,Dn,Ci,gs){return U.tagName!==le||U.name!==Ae||U.isBracketed!==rt||U.typeExpression!==Dn||U.isNameFirst!==Ci||U.comment!==gs?s(Md(le,Ae,rt,Dn,Ci,gs),U):U}function _n(U,le,Ae,rt){const Dn=Ka(345,U??zt("callback"),rt);return Dn.typeExpression=le,Dn.fullName=Ae,Dn.name=YY(Ae),Dn.locals=void 0,Dn.nextContainer=void 0,Dn}function Xn(U,le=qo(U),Ae,rt,Dn){return U.tagName!==le||U.typeExpression!==Ae||U.fullName!==rt||U.comment!==Dn?s(_n(le,Ae,rt,Dn),U):U}function _i(U,le,Ae){const rt=d_(346,U??zt("overload"),Ae);return rt.typeExpression=le,rt}function $o(U,le=qo(U),Ae,rt){return U.tagName!==le||U.typeExpression!==Ae||U.comment!==rt?s(_i(le,Ae,rt),U):U}function Sc(U,le,Ae){const rt=d_(335,U??zt("augments"),Ae);return rt.class=le,rt}function xs(U,le=qo(U),Ae,rt){return U.tagName!==le||U.class!==Ae||U.comment!==rt?s(Sc(le,Ae,rt),U):U}function Fs(U,le,Ae){const rt=d_(336,U??zt("implements"),Ae);return rt.class=le,rt}function Tl(U,le,Ae){const rt=d_(354,U??zt("see"),Ae);return rt.name=le,rt}function fc(U,le,Ae,rt){return U.tagName!==le||U.name!==Ae||U.comment!==rt?s(Tl(le,Ae,rt),U):U}function Gd(U){const le=Ve(317);return le.name=U,le}function ag(U,le){return U.name!==le?s(Gd(le),U):U}function ah(U,le){const Ae=Ve(318);return Ae.left=U,Ae.right=le,Ae.transformFlags|=ms(Ae.left)|ms(Ae.right),Ae}function bm(U,le,Ae){return U.left!==le||U.right!==Ae?s(ah(le,Ae),U):U}function ay(U,le){const Ae=Ve(331);return Ae.name=U,Ae.text=le,Ae}function yp(U,le,Ae){return U.name!==le?s(ay(le,Ae),U):U}function Cg(U,le){const Ae=Ve(332);return Ae.name=U,Ae.text=le,Ae}function wp(U,le,Ae){return U.name!==le?s(Cg(le,Ae),U):U}function Xp(U,le){const Ae=Ve(333);return Ae.name=U,Ae.text=le,Ae}function r1(U,le,Ae){return U.name!==le?s(Xp(le,Ae),U):U}function sg(U,le=qo(U),Ae,rt){return U.tagName!==le||U.class!==Ae||U.comment!==rt?s(Fs(le,Ae,rt),U):U}function Jt(U,le,Ae){return d_(U,le??zt(xG(U)),Ae)}function ci(U,le,Ae=qo(le),rt){return le.tagName!==Ae||le.comment!==rt?s(Jt(U,Ae,rt),le):le}function da(U,le,Ae,rt){const Dn=d_(U,le??zt(xG(U)),rt);return Dn.typeExpression=Ae,Dn}function Hu(U,le,Ae=qo(le),rt,Dn){return le.tagName!==Ae||le.typeExpression!==rt||le.comment!==Dn?s(da(U,Ae,rt,Dn),le):le}function t_(U,le){return d_(334,U,le)}function A_(U,le,Ae){return U.tagName!==le||U.comment!==Ae?s(t_(le,Ae),U):U}function gd(U,le,Ae){const rt=Ka(347,U??zt(xG(347)),Ae);return rt.typeExpression=le,rt.locals=void 0,rt.nextContainer=void 0,rt}function Dg(U,le=qo(U),Ae,rt){return U.tagName!==le||U.typeExpression!==Ae||U.comment!==rt?s(gd(le,Ae,rt),U):U}function um(U){const le=Ve(328);return le.text=U,le}function Ig(U,le){return U.text!==le?s(um(le),U):U}function P_(U,le){const Ae=Ve(327);return Ae.comment=U,Ae.tags=Bd(le),Ae}function Qm(U,le,Ae){return U.comment!==le||U.tags!==Ae?s(P_(le,Ae),U):U}function Bh(U,le,Ae){const rt=Ve(284);return rt.openingElement=U,rt.children=Be(le),rt.closingElement=Ae,rt.transformFlags|=ms(rt.openingElement)|cp(rt.children)|ms(rt.closingElement)|2,rt}function P1(U,le,Ae,rt){return U.openingElement!==le||U.children!==Ae||U.closingElement!==rt?s(Bh(le,Ae,rt),U):U}function VT(U,le,Ae){const rt=Ve(285);return rt.tagName=U,rt.typeArguments=Bd(le),rt.attributes=Ae,rt.transformFlags|=ms(rt.tagName)|cp(rt.typeArguments)|ms(rt.attributes)|2,rt.typeArguments&&(rt.transformFlags|=1),rt}function Zm(U,le,Ae,rt){return U.tagName!==le||U.typeArguments!==Ae||U.attributes!==rt?s(VT(le,Ae,rt),U):U}function fb(U,le,Ae){const rt=Ve(286);return rt.tagName=U,rt.typeArguments=Bd(le),rt.attributes=Ae,rt.transformFlags|=ms(rt.tagName)|cp(rt.typeArguments)|ms(rt.attributes)|2,le&&(rt.transformFlags|=1),rt}function FS(U,le,Ae,rt){return U.tagName!==le||U.typeArguments!==Ae||U.attributes!==rt?s(fb(le,Ae,rt),U):U}function dT(U){const le=Ve(287);return le.tagName=U,le.transformFlags|=ms(le.tagName)|2,le}function $0(U,le){return U.tagName!==le?s(dT(le),U):U}function xv(U,le,Ae){const rt=Ve(288);return rt.openingFragment=U,rt.children=Be(le),rt.closingFragment=Ae,rt.transformFlags|=ms(rt.openingFragment)|cp(rt.children)|ms(rt.closingFragment)|2,rt}function t2(U,le,Ae,rt){return U.openingFragment!==le||U.children!==Ae||U.closingFragment!==rt?s(xv(le,Ae,rt),U):U}function q0(U,le){const Ae=Ve(12);return Ae.text=U,Ae.containsOnlyTriviaWhiteSpaces=!!le,Ae.transformFlags|=2,Ae}function N1(U,le,Ae){return U.text!==le||U.containsOnlyTriviaWhiteSpaces!==Ae?s(q0(le,Ae),U):U}function i0(){const U=Ve(289);return U.transformFlags|=2,U}function nt(){const U=Ve(290);return U.transformFlags|=2,U}function pr(U,le){const Ae=pt(291);return Ae.name=U,Ae.initializer=le,Ae.transformFlags|=ms(Ae.name)|ms(Ae.initializer)|2,Ae}function vi(U,le,Ae){return U.name!==le||U.initializer!==Ae?s(pr(le,Ae),U):U}function Di(U){const le=pt(292);return le.properties=Be(U),le.transformFlags|=cp(le.properties)|2,le}function Ee(U,le){return U.properties!==le?s(Di(le),U):U}function Gt(U){const le=Ve(293);return le.expression=U,le.transformFlags|=ms(le.expression)|2,le}function sr(U,le){return U.expression!==le?s(Gt(le),U):U}function Ii(U,le){const Ae=Ve(294);return Ae.dotDotDotToken=U,Ae.expression=le,Ae.transformFlags|=ms(Ae.dotDotDotToken)|ms(Ae.expression)|2,Ae}function Ja(U,le){return U.expression!==le?s(Ii(U.dotDotDotToken,le),U):U}function wa(U,le){const Ae=Ve(295);return Ae.namespace=U,Ae.name=le,Ae.transformFlags|=ms(Ae.namespace)|ms(Ae.name)|2,Ae}function wi(U,le,Ae){return U.namespace!==le||U.name!==Ae?s(wa(le,Ae),U):U}function Vl(U,le){const Ae=Ve(296);return Ae.expression=l().parenthesizeExpressionForDisallowedComma(U),Ae.statements=Be(le),Ae.transformFlags|=ms(Ae.expression)|cp(Ae.statements),Ae.jsDoc=void 0,Ae}function Uf(U,le,Ae){return U.expression!==le||U.statements!==Ae?s(Vl(le,Ae),U):U}function Y_(U){const le=Ve(297);return le.statements=Be(U),le.transformFlags=cp(le.statements),le}function Fg(U,le){return U.statements!==le?s(Y_(le),U):U}function sv(U,le){const Ae=Ve(298);switch(Ae.token=U,Ae.types=Be(le),Ae.transformFlags|=cp(Ae.types),U){case 96:Ae.transformFlags|=1024;break;case 119:Ae.transformFlags|=1;break;default:return ce.assertNever(U)}return Ae}function vy(U,le){return U.types!==le?s(sv(U.token,le),U):U}function _b(U,le){const Ae=Ve(299);return Ae.variableDeclaration=R2(U),Ae.block=le,Ae.transformFlags|=ms(Ae.variableDeclaration)|ms(Ae.block)|(U?0:64),Ae.locals=void 0,Ae.nextContainer=void 0,Ae}function f_(U,le,Ae){return U.variableDeclaration!==le||U.block!==Ae?s(_b(le,Ae),U):U}function zh(U,le){const Ae=pt(303);return Ae.name=Bm(U),Ae.initializer=l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=KL(Ae.name)|ms(Ae.initializer),Ae.modifiers=void 0,Ae.questionToken=void 0,Ae.exclamationToken=void 0,Ae.jsDoc=void 0,Ae}function i1(U,le,Ae){return U.name!==le||U.initializer!==Ae?n2(zh(le,Ae),U):U}function n2(U,le){return U!==le&&(U.modifiers=le.modifiers,U.questionToken=le.questionToken,U.exclamationToken=le.exclamationToken),s(U,le)}function Vv(U,le){const Ae=pt(304);return Ae.name=Bm(U),Ae.objectAssignmentInitializer=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=AG(Ae.name)|ms(Ae.objectAssignmentInitializer)|1024,Ae.equalsToken=void 0,Ae.modifiers=void 0,Ae.questionToken=void 0,Ae.exclamationToken=void 0,Ae.jsDoc=void 0,Ae}function su(U,le,Ae){return U.name!==le||U.objectAssignmentInitializer!==Ae?gC(Vv(le,Ae),U):U}function gC(U,le){return U!==le&&(U.modifiers=le.modifiers,U.questionToken=le.questionToken,U.exclamationToken=le.exclamationToken,U.equalsToken=le.equalsToken),s(U,le)}function eg(U){const le=pt(305);return le.expression=l().parenthesizeExpressionForDisallowedComma(U),le.transformFlags|=ms(le.expression)|128|65536,le.jsDoc=void 0,le}function Uv(U,le){return U.expression!==le?s(eg(le),U):U}function Rk(U,le){const Ae=pt(306);return Ae.name=Bm(U),Ae.initializer=le&&l().parenthesizeExpressionForDisallowedComma(le),Ae.transformFlags|=ms(Ae.name)|ms(Ae.initializer)|1,Ae.jsDoc=void 0,Ae}function Lb(U,le,Ae){return U.name!==le||U.initializer!==Ae?s(Rk(le,Ae),U):U}function fn(U,le,Ae){const rt=r.createBaseSourceFileNode(312);return rt.statements=Be(U),rt.endOfFileToken=le,rt.flags|=Ae,rt.text="",rt.fileName="",rt.path="",rt.resolvedPath="",rt.originalFileName="",rt.languageVersion=0,rt.languageVariant=0,rt.scriptKind=0,rt.isDeclarationFile=!1,rt.hasNoDefaultLib=!1,rt.transformFlags|=cp(rt.statements)|ms(rt.endOfFileToken),rt.locals=void 0,rt.nextContainer=void 0,rt.endFlowNode=void 0,rt.nodeCount=0,rt.identifierCount=0,rt.symbolCount=0,rt.parseDiagnostics=void 0,rt.bindDiagnostics=void 0,rt.bindSuggestionDiagnostics=void 0,rt.lineMap=void 0,rt.externalModuleIndicator=void 0,rt.setExternalModuleIndicator=void 0,rt.pragmas=void 0,rt.checkJsDirective=void 0,rt.referencedFiles=void 0,rt.typeReferenceDirectives=void 0,rt.libReferenceDirectives=void 0,rt.amdDependencies=void 0,rt.commentDirectives=void 0,rt.identifiers=void 0,rt.packageJsonLocations=void 0,rt.packageJsonScope=void 0,rt.imports=void 0,rt.moduleAugmentations=void 0,rt.ambientModuleNames=void 0,rt.resolvedModules=void 0,rt.classifiableNames=void 0,rt.impliedNodeFormat=void 0,rt}function $n(U){const le=Object.create(U.redirectTarget);return Object.defineProperties(le,{id:{get(){return this.redirectInfo.redirectTarget.id},set(Ae){this.redirectInfo.redirectTarget.id=Ae}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(Ae){this.redirectInfo.redirectTarget.symbol=Ae}}}),le.redirectInfo=U,le}function ri(U){const le=$n(U.redirectInfo);return le.flags|=U.flags&-17,le.fileName=U.fileName,le.path=U.path,le.resolvedPath=U.resolvedPath,le.originalFileName=U.originalFileName,le.packageJsonLocations=U.packageJsonLocations,le.packageJsonScope=U.packageJsonScope,le.emitNode=void 0,le}function Li(U){const le=r.createBaseSourceFileNode(312);le.flags|=U.flags&-17;for(const Ae in U)if(!(ef(le,Ae)||!ef(U,Ae))){if(Ae==="emitNode"){le.emitNode=void 0;continue}le[Ae]=U[Ae]}return le}function yo(U){const le=U.redirectInfo?ri(U):Li(U);return tc(le,U),le}function jo(U,le,Ae,rt,Dn,Ci,gs){const Tu=yo(U);return Tu.statements=Be(le),Tu.isDeclarationFile=Ae,Tu.referencedFiles=rt,Tu.typeReferenceDirectives=Dn,Tu.hasNoDefaultLib=Ci,Tu.libReferenceDirectives=gs,Tu.transformFlags=cp(Tu.statements)|ms(Tu.endOfFileToken),Tu}function Oo(U,le,Ae=U.isDeclarationFile,rt=U.referencedFiles,Dn=U.typeReferenceDirectives,Ci=U.hasNoDefaultLib,gs=U.libReferenceDirectives){return U.statements!==le||U.isDeclarationFile!==Ae||U.referencedFiles!==rt||U.typeReferenceDirectives!==Dn||U.hasNoDefaultLib!==Ci||U.libReferenceDirectives!==gs?s(jo(U,le,Ae,rt,Dn,Ci,gs),U):U}function ca(U,le=Zn){const Ae=Ve(313);return Ae.prepends=le,Ae.sourceFiles=U,Ae.syntheticFileReferences=void 0,Ae.syntheticTypeReferences=void 0,Ae.syntheticLibReferences=void 0,Ae.hasNoDefaultLib=void 0,Ae}function Fc(U,le,Ae=Zn){return U.sourceFiles!==le||U.prepends!==Ae?s(ca(le,Ae),U):U}function ks(U,le,Ae){const rt=Ve(314);return rt.prologues=U,rt.syntheticReferences=le,rt.texts=Ae,rt.fileName="",rt.text="",rt.referencedFiles=Zn,rt.libReferenceDirectives=Zn,rt.getLineAndCharacterOfPosition=Dn=>Ah(rt,Dn),rt}function Xs(U,le){const Ae=Ve(U);return Ae.data=le,Ae}function Vs(U){return Xs(307,U)}function wu(U,le){const Ae=Xs(308,U);return Ae.texts=le,Ae}function Yp(U,le){return Xs(le?310:309,U)}function Q(U){const le=Ve(311);return le.data=U.data,le.section=U,le}function ft(){const U=Ve(315);return U.javascriptText="",U.declarationText="",U}function br(U,le=!1,Ae){const rt=Ve(237);return rt.type=U,rt.isSpread=le,rt.tupleNameSource=Ae,rt}function oo(U){const le=Ve(358);return le._children=U,le}function Js(U){const le=Ve(359);return le.original=U,vr(le,U),le}function pu(U,le){const Ae=Ve(360);return Ae.expression=U,Ae.original=le,Ae.transformFlags|=ms(Ae.expression)|1,vr(Ae,le),Ae}function fl(U,le){return U.expression!==le?s(pu(le,U.original),U):U}function ju(U){if(rh(U)&&!uP(U)&&!U.original&&!U.emitNode&&!U.id){if(x3(U))return U.elements;if(ys(U)&&TEe(U.operatorToken))return[U.left,U.right]}return U}function L_(U){const le=Ve(361);return le.elements=Be(kx(U,ju)),le.transformFlags|=cp(le.elements),le}function Cl(U,le){return U.elements!==le?s(L_(le),U):U}function o0(U,le){const Ae=Ve(362);return Ae.expression=U,Ae.thisArg=le,Ae.transformFlags|=ms(Ae.expression)|ms(Ae.thisArg),Ae}function oa(U,le,Ae){return U.expression!==le||U.thisArg!==Ae?s(o0(le,Ae),U):U}function dD(U){const le=ut(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),wY(le,{...U.emitNode.autoGenerate}),le}function a0(U){const le=ut(U.escapedText);le.flags|=U.flags&-17,le.jsDoc=U.jsDoc,le.flowNode=U.flowNode,le.symbol=U.symbol,le.transformFlags=U.transformFlags,tc(le,U);const Ae=H7(U);return Ae&&qN(le,Ae),le}function Kx(U){const le=cr(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),wY(le,{...U.emitNode.autoGenerate}),le}function hC(U){const le=cr(U.escapedText);return le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U),le}function WP(U){if(U===void 0)return U;if(tl(U))return yo(U);if(Om(U))return dD(U);if(An(U))return a0(U);if(cR(U))return Kx(U);if(Gu(U))return hC(U);const le=aR(U.kind)?r.createBaseNode(U.kind):r.createBaseTokenNode(U.kind);le.flags|=U.flags&-17,le.transformFlags=U.transformFlags,tc(le,U);for(const Ae in U)ef(le,Ae)||!ef(U,Ae)||(le[Ae]=U[Ae]);return le}function BP(U,le,Ae){return ya(Al(void 0,void 0,void 0,void 0,le?[le]:[],void 0,Lt(U,!0)),void 0,Ae?[Ae]:[])}function LA(U,le,Ae){return ya(N_(void 0,void 0,le?[le]:[],void 0,void 0,Lt(U,!0)),void 0,Ae?[Ae]:[])}function OA(){return yy(ht("0"))}function pD(U){return Pc(void 0,!1,U)}function yC(U){return bl(void 0,!1,ma([G_(!1,void 0,U)]))}function vC(U,le){return le==="null"?Ne.createStrictEquality(U,Cr()):le==="undefined"?Ne.createStrictEquality(U,OA()):Ne.createStrictEquality(Gv(U),Dt(le))}function zP(U,le){return le==="null"?Ne.createStrictInequality(U,Cr()):le==="undefined"?Ne.createStrictInequality(U,OA()):Ne.createStrictInequality(Gv(U),Dt(le))}function Xx(U,le,Ae){return R8(U)?K_(Eg(U,void 0,le),void 0,void 0,Ae):ya(Fh(U,le),void 0,Ae)}function dx(U,le,Ae){return Xx(U,"bind",[le,...Ae])}function WS(U,le,Ae){return Xx(U,"call",[le,...Ae])}function px(U,le,Ae){return Xx(U,"apply",[le,Ae])}function j_(U,le,Ae){return Xx(zt(U),le,Ae)}function GP(U,le){return Xx(U,"slice",le===void 0?[]:[Hv(le)])}function oO(U,le){return Xx(U,"concat",le)}function dS(U,le,Ae){return j_("Object","defineProperty",[U,Hv(le),Ae])}function FA(U,le){return j_("Object","getOwnPropertyDescriptor",[U,Hv(le)])}function bC(U,le,Ae){return j_("Reflect","get",Ae?[U,le,Ae]:[U,le])}function wm(U,le,Ae,rt){return j_("Reflect","set",rt?[U,le,Ae,rt]:[U,le,Ae])}function db(U,le,Ae){return Ae?(U.push(zh(le,Ae)),!0):!1}function o1(U,le){const Ae=[];db(Ae,"enumerable",Hv(U.enumerable)),db(Ae,"configurable",Hv(U.configurable));let rt=db(Ae,"writable",Hv(U.writable));rt=db(Ae,"value",U.value)||rt;let Dn=db(Ae,"get",U.get);return Dn=db(Ae,"set",U.set)||Dn,ce.assert(!(rt&&Dn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Xm(Ae,!le)}function Q_(U,le){switch(U.kind){case 217:return Qc(U,le);case 216:return Do(U,U.type,le);case 234:return X(U,le,U.type);case 238:return we(U,le,U.type);case 235:return ae(U,le);case 360:return fl(U,le)}}function je(U){return sb(U)&&rh(U)&&rh(cE(U))&&rh(lI(U))&&!gt(U7(U))&&!gt(y3(U))}function Vt(U,le,Ae=15){return U&&Goe(U,Ae)&&!je(U)?Q_(U,Vt(U.expression,le)):le}function zn(U,le,Ae){if(!le)return U;const rt=gc(le,le.label,iS(le.statement)?zn(U,le.statement):U);return Ae&&Ae(le),rt}function zr(U,le){const Ae=_g(U);switch(Ae.kind){case 80:return le;case 110:case 9:case 10:case 11:return!1;case 209:return Ae.elements.length!==0;case 210:return Ae.properties.length>0;default:return!0}}function xi(U,le,Ae,rt=!1){const Dn=rv(U,15);let Ci,gs;return Z1(Dn)?(Ci=gr(),gs=Dn):wJ(Dn)?(Ci=gr(),gs=Ae!==void 0&&Ae<2?vr(zt("_super"),Dn):Dn):Tp(Dn)&8192?(Ci=OA(),gs=l().parenthesizeLeftSideOfAccess(Dn,!1)):sa(Dn)?zr(Dn.expression,rt)?(Ci=Wt(le),gs=Fh(vr(Ne.createAssignment(Ci,Dn.expression),Dn.expression),Dn.name),vr(gs,Dn)):(Ci=Dn.expression,gs=Dn):Ed(Dn)?zr(Dn.expression,rt)?(Ci=Wt(le),gs=Ev(vr(Ne.createAssignment(Ci,Dn.expression),Dn.expression),Dn.argumentExpression),vr(gs,Dn)):(Ci=Dn.expression,gs=Dn):(Ci=OA(),gs=l().parenthesizeLeftSideOfAccess(U,!1)),{target:gs,thisArg:Ci}}function xo(U,le){return Fh(Za(Xm([Kn(void 0,"value",[Oc(void 0,void 0,U,void 0,void 0,void 0)],Lt([Yt(le)]))])),"value")}function Wc(U){return U.length>10?L_(U):Em(U,Ne.createComma)}function hu(U,le,Ae,rt=0,Dn){const Ci=Dn?U&&X_e(U):o_(U);if(Ci&&An(Ci)&&!Om(Ci)){const gs=kl(vr(WP(Ci),Ci),Ci.parent);return rt|=Tp(Ci),Ae||(rt|=96),le||(rt|=3072),rt&&Sa(gs,rt),gs}return kn(U)}function _c(U,le,Ae){return hu(U,le,Ae,98304)}function Sl(U,le,Ae,rt){return hu(U,le,Ae,32768,rt)}function kf(U,le,Ae){return hu(U,le,Ae,16384)}function Rp(U,le,Ae){return hu(U,le,Ae)}function hn(U,le,Ae,rt){const Dn=Fh(U,rh(le)?le:WP(le));vr(Dn,le);let Ci=0;return rt||(Ci|=96),Ae||(Ci|=3072),Ci&&Sa(Dn,Ci),Dn}function v_(U,le,Ae,rt){return U&&il(le,1)?hn(U,hu(le),Ae,rt):kf(le,Ae,rt)}function yh(U,le,Ae,rt){const Dn=BS(U,le,0,Ae);return N2(U,le,Dn,rt)}function fm(U){return Wp(U.expression)&&U.expression.text==="use strict"}function mx(){return x1(Yt(Dt("use strict")))}function BS(U,le,Ae=0,rt){ce.assert(le.length===0,"Prologue directives should be at the first statement in the target statements array");let Dn=!1;const Ci=U.length;for(;AeTu&&mS.splice(Dn,0,...le.slice(Tu,tg)),Tu>gs&&mS.splice(rt,0,...le.slice(gs,Tu)),gs>Ci&&mS.splice(Ae,0,...le.slice(Ci,gs)),Ci>0)if(Ae===0)mS.splice(0,0,...le.slice(0,Ci));else{const gg=new Map;for(let Nh=0;Nh=0;Nh--){const r2=le[Nh];gg.has(r2.expression.text)||mS.unshift(r2)}}return L8(U)?vr(Be(mS,U.hasTrailingComma),U):U}function VP(U,le){let Ae;return typeof le=="number"?Ae=so(le):Ae=le,Hh(U)?Gs(U,Ae,U.name,U.constraint,U.default):Pu(U)?_u(U,Ae,U.dotDotDotToken,U.name,U.questionToken,U.type,U.initializer):mW(U)?zo(U,Ae,U.typeParameters,U.parameters,U.type):Np(U)?mc(U,Ae,U.name,U.questionToken,U.type):Os(U)?ta(U,Ae,U.name,U.questionToken??U.exclamationToken,U.type,U.initializer):Jh(U)?jc(U,Ae,U.name,U.questionToken,U.typeParameters,U.parameters,U.type):em(U)?Lo(U,Ae,U.asteriskToken,U.name,U.questionToken,U.typeParameters,U.parameters,U.type,U.body):pg(U)?Jr(U,Ae,U.parameters,U.body):tm(U)?_o(U,Ae,U.name,U.parameters,U.type,U.body):Ep(U)?gn(U,Ae,U.name,U.parameters,U.body):Xb(U)?co(U,Ae,U.parameters,U.type):Dm(U)?du(U,Ae,U.asteriskToken,U.name,U.typeParameters,U.parameters,U.type,U.body):ph(U)?zp(U,Ae,U.typeParameters,U.parameters,U.type,U.equalsGreaterThanToken,U.body):B0(U)?P(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):Dh(U)?st(U,Ae,U.declarationList):b0(U)?Au(U,Ae,U.asteriskToken,U.name,U.typeParameters,U.parameters,U.type,U.body):Kc(U)?yf(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):Kp(U)?Eu(U,Ae,U.name,U.typeParameters,U.heritageClauses,U.members):mg(U)?Hn(U,Ae,U.name,U.typeParameters,U.type):Ih(U)?Mr(U,Ae,U.name,U.members):xp(U)?Bt(U,Ae,U.name,U.body):kh(U)?yi(U,Ae,U.isTypeOnly,U.name,U.moduleReference):Fv(U)?Ao(U,Ae,U.importClause,U.moduleSpecifier,U.assertClause):Ly(U)?hc(U,Ae,U.expression):mh(U)?Tc(U,Ae,U.isTypeOnly,U.exportClause,U.moduleSpecifier,U.assertClause):ce.assertNever(U)}function UP(U,le){return Pu(U)?_u(U,le,U.dotDotDotToken,U.name,U.questionToken,U.type,U.initializer):Os(U)?ta(U,le,U.name,U.questionToken??U.exclamationToken,U.type,U.initializer):em(U)?Lo(U,le,U.asteriskToken,U.name,U.questionToken,U.typeParameters,U.parameters,U.type,U.body):tm(U)?_o(U,le,U.name,U.parameters,U.type,U.body):Ep(U)?gn(U,le,U.name,U.parameters,U.body):B0(U)?P(U,le,U.name,U.typeParameters,U.heritageClauses,U.members):Kc(U)?yf(U,le,U.name,U.typeParameters,U.heritageClauses,U.members):ce.assertNever(U)}function Bd(U){return U?Be(U):void 0}function Bm(U){return typeof U=="string"?zt(U):U}function Hv(U){return typeof U=="string"?Dt(U):typeof U=="number"?ht(U):typeof U=="boolean"?U?ei():Gn():U}function TE(U){return U&&l().parenthesizeExpressionForDisallowedComma(U)}function A0(U){return typeof U=="number"?Ut(U):U}function w2(U){return U&&py(U)?vr(tc(It(),U),U):U}function R2(U){return typeof U=="string"||U&&!ff(U)?Ia(U,void 0,void 0,void 0):U}}function fst(t,r){return t!==r&&vr(t,r),t}function oUe(t,r){return t!==r&&(tc(t,r),vr(t,r)),t}function xG(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 ce.fail(`Unsupported kind: ${ce.formatSyntaxKind(t)}`)}}function _st(t,r){switch(hk||(hk=MM(99,!1,0)),t){case 15:hk.setText("`"+r+"`");break;case 16:hk.setText("`"+r+"${");break;case 17:hk.setText("}"+r+"${");break;case 18:hk.setText("}"+r+"`");break}let s=hk.scan();if(s===20&&(s=hk.reScanTemplateToken(!1)),hk.isUnterminated())return hk.setText(void 0),Ioe;let l;switch(s){case 15:case 16:case 17:case 18:l=hk.getTokenValue();break}return l===void 0||hk.scan()!==1?(hk.setText(void 0),Ioe):(hk.setText(void 0),l)}function KL(t){return t&&An(t)?AG(t):ms(t)}function AG(t){return ms(t)&-67108865}function dst(t,r){return r|t.transformFlags&134234112}function ms(t){if(!t)return 0;const r=t.transformFlags&~qs(t.kind);return Xv(t)&&fy(t.name)?dst(t.name,r):r}function cp(t){return t?t.transformFlags:0}function aUe(t){let r=0;for(const s of t)r|=ms(s);t.transformFlags=r}function qs(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 gp(t){return t.flags|=16,t}function pEe(t,r,s){let l,m,y,T,D,I,W,O,V,ee;As(t)?(y="",T=t,D=t.length,I=r,W=s):(ce.assert(r==="js"||r==="dts"),y=(r==="js"?t.javascriptPath:t.declarationPath)||"",I=r==="js"?t.javascriptMapPath:t.declarationMapPath,O=()=>r==="js"?t.javascriptText:t.declarationText,V=()=>r==="js"?t.javascriptMapText:t.declarationMapText,D=()=>O().length,t.buildInfo&&t.buildInfo.bundle&&(ce.assert(s===void 0||typeof s=="boolean"),l=s,m=r==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,ee=t.oldFileOfCurrentEmit));const te=ee?Qde(ce.checkDefined(m)):v6e(m,l,D);return te.fileName=y,te.sourceMapPath=I,te.oldFileOfCurrentEmit=ee,O&&V?(Object.defineProperty(te,"text",{get:O}),Object.defineProperty(te,"sourceMapText",{get:V})):(ce.assert(!ee),te.text=T??"",te.sourceMapText=W),te}function v6e(t,r,s){let l,m,y,T,D,I,W,O;for(const ee of t?t.sections:Zn)switch(ee.kind){case"prologue":l=ur(l,vr(be.createUnparsedPrologue(ee.data),ee));break;case"emitHelpers":m=ur(m,ipe().get(ee.data));break;case"no-default-lib":O=!0;break;case"reference":y=ur(y,{pos:-1,end:-1,fileName:ee.data});break;case"type":T=ur(T,{pos:-1,end:-1,fileName:ee.data});break;case"type-import":T=ur(T,{pos:-1,end:-1,fileName:ee.data,resolutionMode:99});break;case"type-require":T=ur(T,{pos:-1,end:-1,fileName:ee.data,resolutionMode:1});break;case"lib":D=ur(D,{pos:-1,end:-1,fileName:ee.data});break;case"prepend":let te;for(const oe of ee.texts)(!r||oe.kind!=="internal")&&(te=ur(te,vr(be.createUnparsedTextLike(oe.data,oe.kind==="internal"),oe)));I=Oi(I,te),W=ur(W,be.createUnparsedPrepend(ee.data,te??Zn));break;case"internal":if(r){W||(W=[]);break}case"text":W=ur(W,vr(be.createUnparsedTextLike(ee.data,ee.kind==="internal"),ee));break;default:ce.assertNever(ee)}if(!W){const ee=be.createUnparsedTextLike(void 0,!1);f3(ee,0,typeof s=="function"?s():s),W=[ee]}const V=DP.createUnparsedSource(l??Zn,void 0,W);return u6(l,V),u6(W,V),u6(I,V),V.hasNoDefaultLib=O,V.helpers=m,V.referencedFiles=y||Zn,V.typeReferenceDirectives=T,V.libReferenceDirectives=D||Zn,V}function Qde(t){let r,s;for(const m of t.sections)switch(m.kind){case"internal":case"text":r=ur(r,vr(be.createUnparsedTextLike(m.data,m.kind==="internal"),m));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=ur(s,vr(be.createUnparsedSyntheticReference(m),m));break;case"prologue":case"emitHelpers":case"prepend":break;default:ce.assertNever(m)}const l=be.createUnparsedSource(Zn,s,r??Zn);return u6(s,l),u6(r,l),l.helpers=Vn(t.sources&&t.sources.helpers,m=>ipe().get(m)),l}function mEe(t,r,s,l,m,y){return As(t)?T6e(void 0,t,s,l,void 0,r,m,y):b6e(t,r,s,l,m,y)}function b6e(t,r,s,l,m,y,T,D){const I=DP.createInputFiles();I.javascriptPath=r,I.javascriptMapPath=s,I.declarationPath=l,I.declarationMapPath=m,I.buildInfoPath=y;const W=new Map,O=oe=>{if(oe===void 0)return;let de=W.get(oe);return de===void 0&&(de=t(oe),W.set(oe,de!==void 0?de:!1)),de!==!1?de:void 0},V=oe=>{const de=O(oe);return de!==void 0?de:`/* Input file ${oe} was missing */\r +`};let ee;return Object.defineProperties(I,{javascriptText:{get:()=>V(r)},javascriptMapText:{get:()=>O(s)},declarationText:{get:()=>V(ce.checkDefined(l))},declarationMapText:{get:()=>O(m)},buildInfo:{get:()=>{if(ee===void 0&&y)if(T!=null&&T.getBuildInfo)ee=T.getBuildInfo(y,D.configFilePath)??!1;else{const oe=O(y);ee=oe!==void 0?Ome(y,oe)??!1:!1}return ee||void 0}}}),I}function T6e(t,r,s,l,m,y,T,D,I,W,O){const V=DP.createInputFiles();return V.javascriptPath=t,V.javascriptText=r,V.javascriptMapPath=s,V.javascriptMapText=l,V.declarationPath=m,V.declarationText=y,V.declarationMapPath=T,V.declarationMapText=D,V.buildInfoPath=I,V.buildInfo=W,V.oldFileOfCurrentEmit=O,V}function sUe(t,r,s){return new(kY||(kY=nv.getSourceMapSourceConstructor()))(t,r,s)}function tc(t,r){if(t.original!==r&&(t.original=r,r)){const s=r.emitNode;s&&(t.emitNode=gEe(s,t.emitNode))}return t}function gEe(t,r){const{flags:s,internalFlags:l,leadingComments:m,trailingComments:y,commentRange:T,sourceMapRange:D,tokenSourceMapRanges:I,constantValue:W,helpers:O,startsOnNewLine:V,snippetElement:ee,classThis:te,assignedName:oe}=t;if(r||(r={}),s&&(r.flags=s),l&&(r.internalFlags=l&-9),m&&(r.leadingComments=Oi(m.slice(),r.leadingComments)),y&&(r.trailingComments=Oi(y.slice(),r.trailingComments)),T&&(r.commentRange=T),D&&(r.sourceMapRange=D),I&&(r.tokenSourceMapRanges=cUe(I,r.tokenSourceMapRanges)),W!==void 0&&(r.constantValue=W),O)for(const de of O)r.helpers=ST(r.helpers,de);return V!==void 0&&(r.startsOnNewLine=V),ee!==void 0&&(r.snippetElement=ee),te&&(r.classThis=te),oe&&(r.assignedName=oe),r}function cUe(t,r){r||(r=[]);for(const s in t)r[s]=t[s];return r}var Ls,S6e,E6e,hk,Ioe,sJ,TR,be,kY,lUe=G({"src/compiler/factory/nodeFactory.ts"(){Ad(),Ls=0,S6e=(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))(S6e||{}),E6e=[],Ioe={},sJ=Kde(),TR={createBaseSourceFileNode:t=>gp(sJ.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>gp(sJ.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>gp(sJ.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>gp(sJ.createBaseTokenNode(t)),createBaseNode:t=>gp(sJ.createBaseNode(t))},be=aJ(4,TR)}});function he(t){if(t.emitNode)ce.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(uP(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const r=ns(Il(ns(t)))??ce.fail("Could not determine parsed source file.");he(r).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function hEe(t){var r,s;const l=(s=(r=ns(Il(t)))==null?void 0:r.emitNode)==null?void 0:s.annotatedNodes;if(l)for(const m of l)m.emitNode=void 0}function Zde(t){const r=he(t);return r.flags|=3072,r.leadingComments=void 0,r.trailingComments=void 0,t}function Sa(t,r){return he(t).flags=r,t}function cI(t,r){const s=he(t);return s.flags=s.flags|r,t}function aW(t,r){return he(t).internalFlags=r,t}function _s(t,r){const s=he(t);return s.internalFlags=s.internalFlags|r,t}function cE(t){var r;return((r=t.emitNode)==null?void 0:r.sourceMapRange)??t}function Sp(t,r){return he(t).sourceMapRange=r,t}function CG(t,r){var s,l;return(l=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:l[r]}function XL(t,r,s){const l=he(t),m=l.tokenSourceMapRanges??(l.tokenSourceMapRanges=[]);return m[r]=s,t}function lp(t){var r;return(r=t.emitNode)==null?void 0:r.startsOnNewLine}function epe(t,r){return he(t).startsOnNewLine=r,t}function lI(t){var r;return((r=t.emitNode)==null?void 0:r.commentRange)??t}function Ry(t,r){return he(t).commentRange=r,t}function U7(t){var r;return(r=t.emitNode)==null?void 0:r.leadingComments}function MS(t,r){return he(t).leadingComments=r,t}function _y(t,r,s,l){return MS(t,ur(U7(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:l,text:s}))}function y3(t){var r;return(r=t.emitNode)==null?void 0:r.trailingComments}function uI(t,r){return he(t).trailingComments=r,t}function sW(t,r,s,l){return uI(t,ur(y3(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:l,text:s}))}function PY(t,r){MS(t,U7(r)),uI(t,y3(r));const s=he(r);return s.leadingComments=void 0,s.trailingComments=void 0,t}function cW(t){var r;return(r=t.emitNode)==null?void 0:r.constantValue}function koe(t,r){const s=he(t);return s.constantValue=r,t}function lW(t,r){const s=he(t);return s.helpers=ur(s.helpers,r),t}function JN(t,r){if(gt(r)){const s=he(t);for(const l of r)s.helpers=ST(s.helpers,l)}return t}function x6e(t,r){var s;const l=(s=t.emitNode)==null?void 0:s.helpers;return l?Yw(l,r):!1}function v3(t){var r;return(r=t.emitNode)==null?void 0:r.helpers}function $N(t,r,s){const l=t.emitNode,m=l&&l.helpers;if(!gt(m))return;const y=he(r);let T=0;for(let D=0;D0&&(m[D-T]=I)}T>0&&(m.length-=T)}function yEe(t){var r;return(r=t.emitNode)==null?void 0:r.snippetElement}function NY(t,r){const s=he(t);return s.snippetElement=r,t}function tpe(t){return he(t).internalFlags|=4,t}function npe(t,r){const s=he(t);return s.typeNode=r,t}function rpe(t){var r;return(r=t.emitNode)==null?void 0:r.typeNode}function qN(t,r){return he(t).identifierTypeArguments=r,t}function H7(t){var r;return(r=t.emitNode)==null?void 0:r.identifierTypeArguments}function wY(t,r){return he(t).autoGenerate=r,t}function d6(t){var r;return(r=t.emitNode)==null?void 0:r.autoGenerate}function J7(t,r){return he(t).generatedImportReference=r,t}function RY(t){var r;return(r=t.emitNode)==null?void 0:r.generatedImportReference}var uUe=G({"src/compiler/factory/emitNode.ts"(){Ad()}});function vEe(t){const r=t.factory,s=Pd(()=>aW(r.createTrue(),8)),l=Pd(()=>aW(r.createFalse(),8));return{getUnscopedHelperName:m,createDecorateHelper:y,createMetadataHelper:T,createParamHelper:D,createESDecorateHelper:de,createRunInitializersHelper:ue,createAssignHelper:Ne,createAwaitHelper:Be,createAsyncGeneratorHelper:Ve,createAsyncDelegatorHelper:pt,createAsyncValuesHelper:Le,createRestHelper:ht,createAwaiterHelper:ke,createExtendsHelper:_t,createTemplateObjectHelper:Dt,createSpreadArrayHelper:Ft,createPropKeyHelper:it,createSetFunctionNameHelper:Ye,createValuesHelper:ut,createReadHelper:lt,createGeneratorHelper:zt,createCreateBindingHelper:Wt,createImportStarHelper:tt,createImportStarCallbackHelper:Mn,createImportDefaultHelper:kn,createExportStarHelper:cr,createClassPrivateFieldGetHelper:un,createClassPrivateFieldSetHelper:on,createClassPrivateFieldInHelper:pn,createAddDisposableResourceHelper:Or,createDisposeResourcesHelper:Xr};function m(Ut){return Sa(r.createIdentifier(Ut),8196)}function y(Ut,In,gr,Cr){t.requestEmitHelper(MY);const ei=[];return ei.push(r.createArrayLiteralExpression(Ut,!0)),ei.push(In),gr&&(ei.push(gr),Cr&&ei.push(Cr)),r.createCallExpression(m("__decorate"),void 0,ei)}function T(Ut,In){return t.requestEmitHelper(uW),r.createCallExpression(m("__metadata"),void 0,[r.createStringLiteral(Ut),In])}function D(Ut,In,gr){return t.requestEmitHelper(LY),vr(r.createCallExpression(m("__param"),void 0,[r.createNumericLiteral(In+""),Ut]),gr)}function I(Ut){const In=[r.createPropertyAssignment(r.createIdentifier("kind"),r.createStringLiteral("class")),r.createPropertyAssignment(r.createIdentifier("name"),Ut.name),r.createPropertyAssignment(r.createIdentifier("metadata"),Ut.metadata)];return r.createObjectLiteralExpression(In)}function W(Ut){const In=Ut.computed?r.createElementAccessExpression(r.createIdentifier("obj"),Ut.name):r.createPropertyAccessExpression(r.createIdentifier("obj"),Ut.name);return r.createPropertyAssignment("get",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj"))],void 0,void 0,In))}function O(Ut){const In=Ut.computed?r.createElementAccessExpression(r.createIdentifier("obj"),Ut.name):r.createPropertyAccessExpression(r.createIdentifier("obj"),Ut.name);return r.createPropertyAssignment("set",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj")),r.createParameterDeclaration(void 0,void 0,r.createIdentifier("value"))],void 0,void 0,r.createBlock([r.createExpressionStatement(r.createAssignment(In,r.createIdentifier("value")))])))}function V(Ut){const In=Ut.computed?Ut.name:An(Ut.name)?r.createStringLiteralFromNode(Ut.name):Ut.name;return r.createPropertyAssignment("has",r.createArrowFunction(void 0,void 0,[r.createParameterDeclaration(void 0,void 0,r.createIdentifier("obj"))],void 0,void 0,r.createBinaryExpression(In,103,r.createIdentifier("obj"))))}function ee(Ut,In){const gr=[];return gr.push(V(Ut)),In.get&&gr.push(W(Ut)),In.set&&gr.push(O(Ut)),r.createObjectLiteralExpression(gr)}function te(Ut){const In=[r.createPropertyAssignment(r.createIdentifier("kind"),r.createStringLiteral(Ut.kind)),r.createPropertyAssignment(r.createIdentifier("name"),Ut.name.computed?Ut.name.name:r.createStringLiteralFromNode(Ut.name.name)),r.createPropertyAssignment(r.createIdentifier("static"),Ut.static?r.createTrue():r.createFalse()),r.createPropertyAssignment(r.createIdentifier("private"),Ut.private?r.createTrue():r.createFalse()),r.createPropertyAssignment(r.createIdentifier("access"),ee(Ut.name,Ut.access)),r.createPropertyAssignment(r.createIdentifier("metadata"),Ut.metadata)];return r.createObjectLiteralExpression(In)}function oe(Ut){return Ut.kind==="class"?I(Ut):te(Ut)}function de(Ut,In,gr,Cr,ei,Gn){return t.requestEmitHelper(lJ),r.createCallExpression(m("__esDecorate"),void 0,[Ut??r.createNull(),In??r.createNull(),gr,oe(Cr),ei,Gn])}function ue(Ut,In,gr){return t.requestEmitHelper(uJ),r.createCallExpression(m("__runInitializers"),void 0,gr?[Ut,In,gr]:[Ut,In])}function Ne(Ut){return iu(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,Ut):(t.requestEmitHelper(fJ),r.createCallExpression(m("__assign"),void 0,Ut))}function Be(Ut){return t.requestEmitHelper(b3),r.createCallExpression(m("__await"),void 0,[Ut])}function Ve(Ut,In){return t.requestEmitHelper(b3),t.requestEmitHelper(_J),(Ut.emitNode||(Ut.emitNode={})).flags|=1572864,r.createCallExpression(m("__asyncGenerator"),void 0,[In?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),Ut])}function pt(Ut){return t.requestEmitHelper(b3),t.requestEmitHelper(dJ),r.createCallExpression(m("__asyncDelegator"),void 0,[Ut])}function Le(Ut){return t.requestEmitHelper(T3),r.createCallExpression(m("__asyncValues"),void 0,[Ut])}function ht(Ut,In,gr,Cr){t.requestEmitHelper(pJ);const ei=[];let Gn=0;for(let Ur=0;Ur{let l="";for(let m=0;mt.name))}function cJ(t,r){return el(t)&&An(t.expression)&&(Tp(t.expression)&8192)!==0&&t.expression.escapedText===r}var Poe,MY,uW,LY,lJ,uJ,fJ,b3,_J,dJ,T3,pJ,mJ,gJ,hJ,yJ,vJ,bJ,TJ,SJ,EJ,$7,xJ,DG,q7,AJ,IG,CJ,DJ,IJ,kJ,Noe,kG,PG,fUe=G({"src/compiler/factory/emitHelpers.ts"(){Ad(),Poe=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(Poe||{}),MY={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); @@ -30772,7 +30772,7 @@ ${xe.join(` Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},IG={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[$7,xJ],priority:2,text:` + });`},DG={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[$7,xJ],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; @@ -30785,7 +30785,7 @@ ${xe.join(` };`},AJ={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[$7],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); - };`},kG={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + };`},IG={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"); @@ -30845,58 +30845,58 @@ ${xe.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; - });`},PG={name:"typescript:async-super",scoped:!0,text:A6e` - const ${"_superIndex"} = name => super[name];`},NG={name:"typescript:advanced-async-super",scoped:!0,text:A6e` + });`},kG={name:"typescript:async-super",scoped:!0,text:A6e` + const ${"_superIndex"} = name => super[name];`},PG={name:"typescript:advanced-async-super",scoped:!0,text:A6e` 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 nS(t){return t.kind===9}function wG(t){return t.kind===10}function Wp(t){return t.kind===11}function S1(t){return t.kind===12}function OY(t){return t.kind===14}function Sd(t){return t.kind===15}function SR(t){return t.kind===16}function ope(t){return t.kind===17}function K7(t){return t.kind===18}function X7(t){return t.kind===26}function TEe(t){return t.kind===28}function woe(t){return t.kind===40}function FY(t){return t.kind===41}function WY(t){return t.kind===42}function PJ(t){return t.kind===54}function ER(t){return t.kind===58}function BY(t){return t.kind===59}function RG(t){return t.kind===29}function p6(t){return t.kind===39}function An(t){return t.kind===80}function Gu(t){return t.kind===81}function fW(t){return t.kind===95}function xn(t){return t.kind===90}function Lu(t){return t.kind===134}function _W(t){return t.kind===131}function zY(t){return t.kind===135}function NJ(t){return t.kind===148}function dW(t){return t.kind===126}function ape(t){return t.kind===128}function SEe(t){return t.kind===164}function pW(t){return t.kind===129}function wJ(t){return t.kind===108}function RJ(t){return t.kind===102}function EEe(t){return t.kind===84}function nT(t){return t.kind===166}function am(t){return t.kind===167}function Hh(t){return t.kind===168}function Pu(t){return t.kind===169}function Qf(t){return t.kind===170}function Np(t){return t.kind===171}function Os(t){return t.kind===172}function Jh(t){return t.kind===173}function em(t){return t.kind===174}function nu(t){return t.kind===175}function pg(t){return t.kind===176}function tm(t){return t.kind===177}function Ep(t){return t.kind===178}function Lh(t){return t.kind===179}function lE(t){return t.kind===180}function Xb(t){return t.kind===181}function Y7(t){return t.kind===182}function x2(t){return t.kind===183}function Z2(t){return t.kind===184}function mW(t){return t.kind===185}function uE(t){return t.kind===186}function e0(t){return t.kind===187}function MG(t){return t.kind===188}function m6(t){return t.kind===189}function rS(t){return t.kind===202}function GY(t){return t.kind===190}function gW(t){return t.kind===191}function g6(t){return t.kind===192}function MJ(t){return t.kind===193}function hW(t){return t.kind===194}function fI(t){return t.kind===195}function xR(t){return t.kind===196}function Q7(t){return t.kind===197}function KN(t){return t.kind===198}function XN(t){return t.kind===199}function yW(t){return t.kind===200}function _I(t){return t.kind===201}function Wx(t){return t.kind===205}function LJ(t){return t.kind===204}function S3(t){return t.kind===203}function E1(t){return t.kind===206}function vW(t){return t.kind===207}function ym(t){return t.kind===208}function Ch(t){return t.kind===209}function Wd(t){return t.kind===210}function sa(t){return t.kind===211}function Ed(t){return t.kind===212}function el(t){return t.kind===213}function Ac(t){return t.kind===214}function Hm(t){return t.kind===215}function xd(t){return t.kind===216}function sb(t){return t.kind===217}function Dm(t){return t.kind===218}function ph(t){return t.kind===219}function fE(t){return t.kind===220}function Jm(t){return t.kind===221}function $m(t){return t.kind===222}function h6(t){return t.kind===223}function yk(t){return t.kind===224}function Z7(t){return t.kind===225}function ys(t){return t.kind===226}function vk(t){return t.kind===227}function jY(t){return t.kind===228}function Ds(t){return t.kind===229}function ex(t){return t.kind===230}function B0(t){return t.kind===231}function t0(t){return t.kind===232}function WT(t){return t.kind===233}function v0(t){return t.kind===234}function cb(t){return t.kind===238}function cC(t){return t.kind===235}function eF(t){return t.kind===236}function C6e(t){return t.kind===237}function E3(t){return t.kind===360}function x3(t){return t.kind===361}function VY(t){return t.kind===239}function Roe(t){return t.kind===240}function E_(t){return t.kind===241}function Dh(t){return t.kind===243}function spe(t){return t.kind===242}function Ou(t){return t.kind===244}function Xg(t){return t.kind===245}function xEe(t){return t.kind===246}function kb(t){return t.kind===247}function bk(t){return t.kind===248}function cpe(t){return t.kind===249}function Moe(t){return t.kind===250}function bW(t){return t.kind===251}function lpe(t){return t.kind===252}function Bx(t){return t.kind===253}function D6e(t){return t.kind===254}function Loe(t){return t.kind===255}function iS(t){return t.kind===256}function upe(t){return t.kind===257}function AR(t){return t.kind===258}function tF(t){return t.kind===259}function ff(t){return t.kind===260}function My(t){return t.kind===261}function b0(t){return t.kind===262}function Kc(t){return t.kind===263}function Kp(t){return t.kind===264}function mg(t){return t.kind===265}function Ih(t){return t.kind===266}function xp(t){return t.kind===267}function z0(t){return t.kind===268}function xP(t){return t.kind===269}function py(t){return t.kind===270}function kh(t){return t.kind===271}function Fv(t){return t.kind===272}function lC(t){return t.kind===273}function Yb(t){return t.kind===302}function n0(t){return t.kind===300}function Tk(t){return t.kind===301}function QL(t){return t.kind===274}function AP(t){return t.kind===280}function y6(t){return t.kind===275}function oS(t){return t.kind===276}function Ly(t){return t.kind===277}function mh(t){return t.kind===278}function G0(t){return t.kind===279}function Oy(t){return t.kind===281}function qE(t){return t.kind===282}function my(t){return t.kind===359}function ry(t){return t.kind===362}function j0(t){return t.kind===283}function gy(t){return t.kind===284}function TW(t){return t.kind===285}function rD(t){return t.kind===286}function Sk(t){return t.kind===287}function KE(t){return t.kind===288}function zx(t){return t.kind===289}function nF(t){return t.kind===290}function Pb(t){return t.kind===291}function iD(t){return t.kind===292}function Ek(t){return t.kind===293}function v6(t){return t.kind===294}function dI(t){return t.kind===295}function tx(t){return t.kind===296}function CR(t){return t.kind===297}function rT(t){return t.kind===298}function CP(t){return t.kind===299}function Fm(t){return t.kind===303}function BT(t){return t.kind===304}function xk(t){return t.kind===305}function Qb(t){return t.kind===306}function A3(t){return t.kind===308}function tl(t){return t.kind===312}function XE(t){return t.kind===313}function xA(t){return t.kind===314}function pI(t){return t.kind===316}function OJ(t){return t.kind===317}function Nu(t){return t.kind===318}function fpe(t){return t.kind===331}function rF(t){return t.kind===332}function SW(t){return t.kind===333}function FJ(t){return t.kind===319}function ZL(t){return t.kind===320}function LG(t){return t.kind===321}function Ooe(t){return t.kind===322}function AEe(t){return t.kind===323}function OG(t){return t.kind===324}function Foe(t){return t.kind===325}function WJ(t){return t.kind===326}function Gx(t){return t.kind===327}function EW(t){return t.kind===329}function Ak(t){return t.kind===330}function iF(t){return t.kind===335}function _Ue(t){return t.kind===337}function uC(t){return t.kind===339}function oF(t){return t.kind===345}function b6(t){return t.kind===340}function xW(t){return t.kind===341}function CEe(t){return t.kind===342}function _pe(t){return t.kind===343}function UY(t){return t.kind===344}function FG(t){return t.kind===346}function Woe(t){return t.kind===338}function DEe(t){return t.kind===354}function BJ(t){return t.kind===347}function AA(t){return t.kind===348}function aF(t){return t.kind===349}function dpe(t){return t.kind===350}function HY(t){return t.kind===351}function jx(t){return t.kind===352}function A2(t){return t.kind===353}function ppe(t){return t.kind===334}function IEe(t){return t.kind===355}function WG(t){return t.kind===336}function CA(t){return t.kind===357}function zJ(t){return t.kind===356}function GJ(t){return t.kind===358}var I6e=G({"src/compiler/factory/nodeTests.ts"(){Ad()}});function jJ(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function e4(t,r,s,l){if(am(s))return vr(t.createElementAccessExpression(r,s.expression),l);{const m=vr(fy(s)?t.createPropertyAccessExpression(r,s):t.createElementAccessExpression(r,s),s);return cI(m,128),m}}function kEe(t,r){const s=DP.createIdentifier(t||"React");return kl(s,Il(r)),s}function AW(t,r,s){if(nT(r)){const l=AW(t,r.left,s),m=t.createIdentifier(ec(r.right));return m.escapedText=r.right.escapedText,t.createPropertyAccessExpression(l,m)}else return kEe(ec(r),s)}function k6e(t,r,s,l){return r?AW(t,r,l):t.createPropertyAccessExpression(kEe(s,l),"createElement")}function Boe(t,r,s,l){return r?AW(t,r,l):t.createPropertyAccessExpression(kEe(s,l),"Fragment")}function sF(t,r,s,l,m,y){const T=[s];if(l&&T.push(l),m&&m.length>0)if(l||T.push(t.createNull()),m.length>1)for(const D of m)x1(D),T.push(D);else T.push(m[0]);return vr(t.createCallExpression(r,void 0,T),y)}function PEe(t,r,s,l,m,y,T){const I=[Boe(t,s,l,y),t.createNull()];if(m&&m.length>0)if(m.length>1)for(const W of m)x1(W),I.push(W);else I.push(m[0]);return vr(t.createCallExpression(k6e(t,r,l,y),void 0,I),T)}function mpe(t,r,s){if(My(r)){const l=Dl(r.declarations),m=t.updateVariableDeclaration(l,l.name,void 0,void 0,s);return vr(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[m])),r)}else{const l=vr(t.createAssignment(r,s),r);return vr(t.createExpressionStatement(l),r)}}function NEe(t,r,s){return E_(r)?t.updateBlock(r,vr(t.createNodeArray([s,...r.statements]),r.statements)):t.createBlock(t.createNodeArray([r,s]),!0)}function gpe(t,r){if(nT(r)){const s=gpe(t,r.left),l=kl(vr(t.cloneNode(r.right),r.right),r.right.parent);return vr(t.createPropertyAccessExpression(s,l),r)}else return kl(vr(t.cloneNode(r),r),r.parent)}function hpe(t,r){return An(r)?t.createStringLiteralFromNode(r):am(r)?kl(vr(t.cloneNode(r.expression),r.expression),r.expression.parent):kl(vr(t.cloneNode(r),r),r.parent)}function P6e(t,r,s,l,m){const{firstAccessor:y,getAccessor:T,setAccessor:D}=gG(r,s);if(s===y)return vr(t.createObjectDefinePropertyCall(l,hpe(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:T&&vr(tc(t.createFunctionExpression(N8(T),void 0,void 0,void 0,T.parameters,void 0,T.body),T),T),set:D&&vr(tc(t.createFunctionExpression(N8(D),void 0,void 0,void 0,D.parameters,void 0,D.body),D),D)},!m)),y)}function wEe(t,r,s){return tc(vr(t.createAssignment(e4(t,s,r.name,r.name),r.initializer),r),r)}function dUe(t,r,s){return tc(vr(t.createAssignment(e4(t,s,r.name,r.name),t.cloneNode(r.name)),r),r)}function zoe(t,r,s){return tc(vr(t.createAssignment(e4(t,s,r.name,r.name),tc(vr(t.createFunctionExpression(N8(r),r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r)}function ype(t,r,s,l){switch(s.name&&Gu(s.name)&&ce.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return P6e(t,r.properties,s,l,!!r.multiLine);case 303:return wEe(t,s,l);case 304:return dUe(t,s,l);case 174:return zoe(t,s,l)}}function REe(t,r,s,l,m){const y=r.operator;ce.assert(y===46||y===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const T=t.createTempVariable(l);s=t.createAssignment(T,s),vr(s,r.operand);let D=yk(r)?t.createPrefixUnaryExpression(y,T):t.createPostfixUnaryExpression(T,y);return vr(D,r),m&&(D=t.createAssignment(m,D),vr(D,r)),s=t.createComma(s,D),vr(s,r),Z7(r)&&(s=t.createComma(s,T),vr(s,r)),s}function N6e(t){return(Tp(t)&65536)!==0}function T6(t){return(Tp(t)&32768)!==0}function MEe(t){return(Tp(t)&16384)!==0}function LEe(t){return Wp(t.expression)&&t.expression.text==="use strict"}function JY(t){for(const r of t)if(qC(r)){if(LEe(r))return r}else break}function vpe(t){const r=pp(t);return r!==void 0&&qC(r)&&LEe(r)}function mI(t){return t.kind===226&&t.operatorToken.kind===28}function CW(t){return mI(t)||x3(t)}function $Y(t){return sb(t)&&Rs(t)&&!!w8(t)}function qY(t){const r=X1(t);return ce.assertIsDefined(r),r}function Goe(t,r=15){switch(t.kind){case 217:return r&16&&$Y(t)?!1:(r&1)!==0;case 216:case 234:case 233:case 238:return(r&2)!==0;case 235:return(r&4)!==0;case 360:return(r&8)!==0}return!1}function rv(t,r=15){for(;Goe(t,r);)t=t.expression;return t}function VJ(t,r=15){let s=t.parent;for(;Goe(s,r);)s=s.parent,ce.assert(s);return s}function KY(t){return rv(t,6)}function x1(t){return epe(t,!0)}function BG(t){const r=Ic(t,tl),s=r&&r.emitNode;return s&&s.externalHelpersModuleName}function iv(t){const r=Ic(t,tl),s=r&&r.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function bpe(t,r,s,l,m,y,T){if(l.importHelpers&&B8(s,l)){let D;const I=Zp(l);if(I>=5&&I<=99||s.impliedNodeFormat===99){const W=v3(s);if(W){const O=[];for(const V of W)if(!V.scoped){const ee=V.importName;ee&&Dy(O,ee)}if(gt(O)){O.sort(Fp),D=t.createNamedImports(Vn(O,te=>fde(s,te)?t.createImportSpecifier(!1,void 0,t.createIdentifier(te)):t.createImportSpecifier(!1,t.createIdentifier(te),r.getUnscopedHelperName(te))));const V=Ic(s,tl),ee=he(V);ee.externalHelpers=!0}}}else{const W=w6e(t,s,l,m,y||T);W&&(D=t.createNamespaceImport(W))}if(D){const W=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,D),t.createStringLiteral(_6),void 0);return _s(W,2),W}}}function w6e(t,r,s,l,m){if(s.importHelpers&&B8(r,s)){const y=BG(r);if(y)return y;const T=Zp(s);let D=(l||b1(s)&&m)&&T!==4&&(T<5||r.impliedNodeFormat===1);if(!D){const I=v3(r);if(I){for(const W of I)if(!W.scoped){D=!0;break}}}if(D){const I=Ic(r,tl),W=he(I);return W.externalHelpersModuleName||(W.externalHelpersModuleName=t.createUniqueName(_6))}}}function lb(t,r,s){const l=uH(r);if(l&&!D7(r)&&!_ie(r)){const m=l.name;return Om(m)?m:t.createIdentifier(wd(s,m)||ec(m))}if(r.kind===272&&r.importClause||r.kind===278&&r.moduleSpecifier)return t.getGeneratedNameForNode(r)}function t4(t,r,s,l,m,y){const T=pY(r);if(T&&Wp(T))return M6e(r,l,t,m,y)||R6e(t,T,s)||t.cloneNode(T)}function R6e(t,r,s){const l=s.renamedDependencies&&s.renamedDependencies.get(r.text);return l?t.createStringLiteral(l):void 0}function UJ(t,r,s,l){if(r){if(r.moduleName)return t.createStringLiteral(r.moduleName);if(!r.isDeclarationFile&&Kg(l))return t.createStringLiteral(Mde(s,r.fileName))}}function M6e(t,r,s,l,m){return UJ(s,l.getExternalModuleFileFromDeclaration(t),r,m)}function C3(t){if(d9(t))return t.initializer;if(Fm(t)){const r=t.initializer;return wy(r,!0)?r.right:void 0}if(BT(t))return t.objectAssignmentInitializer;if(wy(t,!0))return t.right;if(ex(t))return C3(t.expression)}function oD(t){if(d9(t))return t.name;if(KD(t)){switch(t.kind){case 303:return oD(t.initializer);case 304:return t.name;case 305:return oD(t.expression)}return}return wy(t,!0)?oD(t.left):ex(t)?oD(t.expression):t}function OEe(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function HJ(t){const r=FEe(t);return ce.assert(!!r||xk(t),"Invalid property name for binding element."),r}function FEe(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return Gu(s)?ce.failBadSyntaxKind(s):am(s)&&XY(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return Gu(s)?ce.failBadSyntaxKind(s):am(s)&&XY(s.expression)?s.expression:s}break;case 305:return t.name&&Gu(t.name)?ce.failBadSyntaxKind(t.name):t.name}const r=oD(t);if(r&&_y(r))return r}function XY(t){const r=t.kind;return r===11||r===9}function gI(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function YY(t){if(t){let r=t;for(;;){if(An(r)||!r.body)return An(r)?r:r.name;r=r.body}}}function WEe(t){const r=t.kind;return r===176||r===178}function joe(t){const r=t.kind;return r===176||r===177||r===178}function BEe(t){const r=t.kind;return r===303||r===304||r===262||r===176||r===181||r===175||r===282||r===243||r===264||r===265||r===266||r===267||r===271||r===272||r===270||r===278||r===277}function zG(t){const r=t.kind;return r===175||r===303||r===304||r===282||r===270}function Tpe(t){return ER(t)||PJ(t)}function L6e(t){return An(t)||Q7(t)}function zEe(t){return NJ(t)||woe(t)||FY(t)}function Spe(t){return ER(t)||woe(t)||FY(t)}function GEe(t){return An(t)||Wp(t)}function O6e(t){const r=t.kind;return r===106||r===112||r===97||fP(t)||yk(t)}function F6e(t){return t===43}function W6e(t){return t===42||t===44||t===45}function B6e(t){return F6e(t)||W6e(t)}function z6e(t){return t===40||t===41}function pUe(t){return z6e(t)||B6e(t)}function pst(t){return t===48||t===49||t===50}function mst(t){return pst(t)||pUe(t)}function gst(t){return t===30||t===33||t===32||t===34||t===104||t===103}function hst(t){return gst(t)||mst(t)}function yst(t){return t===35||t===37||t===36||t===38}function vst(t){return yst(t)||hst(t)}function jEe(t){return t===51||t===52||t===53}function bst(t){return jEe(t)||vst(t)}function Tst(t){return t===56||t===57}function Sst(t){return Tst(t)||bst(t)}function Est(t){return t===61||Sst(t)||zN(t)}function xst(t){return Est(t)||t===28}function mUe(t){return xst(t.kind)}function VEe(t,r,s,l,m,y){const T=new vUe(t,r,s,l,m,y);return D;function D(I,W){const O={value:void 0},V=[KJ.enter],ee=[I],te=[void 0];let oe=0;for(;V[oe]!==KJ.done;)oe=V[oe](T,oe,V,ee,te,O,W);return ce.assertEqual(oe,0),O.value}}function gUe(t){return t===95||t===90}function Epe(t){const r=t.kind;return gUe(r)}function Ast(t){const r=t.kind;return qg(r)&&!gUe(r)}function UEe(t,r){if(r!==void 0)return r.length===0?r:vr(t.createNodeArray([],r.hasTrailingComma),r)}function GG(t){var r;const s=t.emitNode.autoGenerate;if(s.flags&4){const l=s.id;let m=t,y=m.original;for(;y;){m=y;const T=(r=m.emitNode)==null?void 0:r.autoGenerate;if(fy(m)&&(T===void 0||T.flags&4&&T.id!==l))break;y=m.original}return m}return t}function JJ(t,r){return typeof t=="object"?n4(!1,t.prefix,t.node,t.suffix,r):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function Voe(t,r){return typeof t=="string"?t:hUe(t,ce.checkDefined(r))}function hUe(t,r){return cR(t)?r(t).slice(1):Om(t)?r(t):Gu(t)?t.escapedText.slice(1):ec(t)}function n4(t,r,s,l,m){return r=JJ(r,m),l=JJ(l,m),s=Voe(s,m),`${t?"#":""}${r}${s}${l}`}function $J(t,r,s,l){return t.updatePropertyDeclaration(r,s,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage"),void 0,void 0,l)}function jG(t,r,s,l,m=t.createThis()){return t.createGetAccessorDeclaration(s,l,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage")))]))}function yUe(t,r,s,l,m=t.createThis()){return t.createSetAccessorDeclaration(s,l,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function HEe(t){let r=t.expression;for(;;){if(r=rv(r),x3(r)){r=yl(r.elements);continue}if(mI(r)){r=r.right;continue}if(wy(r,!0)&&Om(r.left))return r;break}}function D3(t){return sb(t)&&rh(t)&&!t.emitNode}function qJ(t,r){if(D3(t))qJ(t.expression,r);else if(mI(t))qJ(t.left,r),qJ(t.right,r);else if(x3(t))for(const s of t.elements)qJ(s,r);else r.push(t)}function JEe(t){const r=[];return qJ(t,r),r}function QY(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const r of gI(t)){const s=oD(r);if(s&&u7(s)&&(s.transformFlags&65536||s.transformFlags&128&&QY(s)))return!0}return!1}var KJ,vUe,xpe=G({"src/compiler/factory/utilities.ts"(){Ad(),(t=>{function r(O,V,ee,te,oe,de,ue){const Ne=V>0?oe[V-1]:void 0;return ce.assertEqual(ee[V],r),oe[V]=O.onEnter(te[V],Ne,ue),ee[V]=D(O,r),V}t.enter=r;function s(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],s),ce.assertIsDefined(O.onLeft),ee[V]=D(O,s);const Ne=O.onLeft(te[V].left,oe[V],te[V]);return Ne?(W(V,te,Ne),I(V,ee,te,oe,Ne)):V}t.left=s;function l(O,V,ee,te,oe,de,ue){return ce.assertEqual(ee[V],l),ce.assertIsDefined(O.onOperator),ee[V]=D(O,l),O.onOperator(te[V].operatorToken,oe[V],te[V]),V}t.operator=l;function m(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],m),ce.assertIsDefined(O.onRight),ee[V]=D(O,m);const Ne=O.onRight(te[V].right,oe[V],te[V]);return Ne?(W(V,te,Ne),I(V,ee,te,oe,Ne)):V}t.right=m;function y(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],y),ee[V]=D(O,y);const Ne=O.onExit(te[V],oe[V]);if(V>0){if(V--,O.foldState){const Be=ee[V]===y?"right":"left";oe[V]=O.foldState(oe[V],Ne,Be)}}else de.value=Ne;return V}t.exit=y;function T(O,V,ee,te,oe,de,ue){return ce.assertEqual(ee[V],T),V}t.done=T;function D(O,V){switch(V){case r:if(O.onLeft)return s;case s:if(O.onOperator)return l;case l:if(O.onRight)return m;case m:return y;case y:return T;case T:return T;default:ce.fail("Invalid state")}}t.nextState=D;function I(O,V,ee,te,oe){return O++,V[O]=r,ee[O]=oe,te[O]=void 0,O}function W(O,V,ee){if(ce.shouldAssert(2))for(;O>=0;)ce.assert(V[O]!==ee,"Circular traversal detected."),O--}})(KJ||(KJ={})),vUe=class{constructor(t,r,s,l,m,y){this.onEnter=t,this.onLeft=r,this.onOperator=s,this.onRight=l,this.onExit=m,this.foldState=y}}}});function vr(t,r){return r?T1(t,r.pos,r.end):t}function nx(t){const r=t.kind;return r===168||r===169||r===171||r===172||r===173||r===174||r===176||r===177||r===178||r===181||r===185||r===218||r===219||r===231||r===243||r===262||r===263||r===264||r===265||r===266||r===267||r===271||r===272||r===277||r===278}function I3(t){const r=t.kind;return r===169||r===172||r===174||r===177||r===178||r===231||r===263}var bUe=G({"src/compiler/factory/utilitiesPublic.ts"(){Ad()}});function Xi(t,r){return r&&t(r)}function Tn(t,r,s){if(s){if(r)return r(s);for(const l of s){const m=t(l);if(m)return m}}}function DA(t,r){return t.charCodeAt(r+1)===42&&t.charCodeAt(r+2)===42&&t.charCodeAt(r+3)!==47}function S6(t){return Ot(t.statements,Cst)||Yi(t)}function Cst(t){return nx(t)&&$Ee(t,95)||kh(t)&&j0(t.moduleReference)||Fv(t)||Ly(t)||mh(t)?t:void 0}function Yi(t){return t.flags&8388608?Bu(t):void 0}function Bu(t){return Uoe(t)?t:B_(t,Bu)}function $Ee(t,r){return gt(t.modifiers,s=>s.kind===r)}function Uoe(t){return eF(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function TUe(t,r,s){return Tn(r,s,t.typeParameters)||Tn(r,s,t.parameters)||Xi(r,t.type)}function SUe(t,r,s){return Tn(r,s,t.types)}function G6e(t,r,s){return Xi(r,t.type)}function EUe(t,r,s){return Tn(r,s,t.elements)}function xUe(t,r,s){return Xi(r,t.expression)||Xi(r,t.questionDotToken)||Tn(r,s,t.typeArguments)||Tn(r,s,t.arguments)}function j6e(t,r,s){return Tn(r,s,t.statements)}function V6e(t,r,s){return Xi(r,t.label)}function U6e(t,r,s){return Tn(r,s,t.modifiers)||Xi(r,t.name)||Tn(r,s,t.typeParameters)||Tn(r,s,t.heritageClauses)||Tn(r,s,t.members)}function H6e(t,r,s){return Tn(r,s,t.elements)}function J6e(t,r,s){return Xi(r,t.propertyName)||Xi(r,t.name)}function $6e(t,r,s){return Xi(r,t.tagName)||Tn(r,s,t.typeArguments)||Xi(r,t.attributes)}function XJ(t,r,s){return Xi(r,t.type)}function q6e(t,r,s){return Xi(r,t.tagName)||(t.isNameFirst?Xi(r,t.name)||Xi(r,t.typeExpression):Xi(r,t.typeExpression)||Xi(r,t.name))||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function YJ(t,r,s){return Xi(r,t.tagName)||Xi(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function qEe(t,r,s){return Xi(r,t.name)}function VG(t,r,s){return Xi(r,t.tagName)||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function ZY(t,r,s){return Xi(r,t.expression)}function B_(t,r,s){if(t===void 0||t.kind<=165)return;const l=X6e[t.kind];return l===void 0?void 0:l(t,r,s)}function k3(t,r,s){const l=KEe(t),m=[];for(;m.length=0;--D)l.push(y[D]),m.push(T)}else{const D=r(y,T);if(D){if(D==="skip")continue;return D}if(y.kind>=166)for(const I of KEe(y))l.push(I),m.push(y)}}}function KEe(t){const r=[];return B_(t,s,s),r;function s(l){r.unshift(l)}}function UG(t){t.externalModuleIndicator=S6(t)}function Ape(t,r,s,l=!1,m){var y,T,D,I;(y=tu)==null||y.push(tu.Phase.Parse,"createSourceFile",{path:t},!0),jf("beforeParse");let W;(T=jD)==null||T.logStartParseSourceFile(t);const{languageVersion:O,setExternalModuleIndicator:V,impliedNodeFormat:ee}=typeof s=="object"?s:{languageVersion:s};if(O===100)W=i4.parseSourceFile(t,r,O,void 0,l,6,ku);else{const te=ee===void 0?V:oe=>(oe.impliedNodeFormat=ee,(V||UG)(oe));W=i4.parseSourceFile(t,r,O,void 0,l,m,te)}return(D=jD)==null||D.logStopParseSourceFile(),jf("afterParse"),dd("Parse","beforeParse","afterParse"),(I=tu)==null||I.pop(),W}function s_(t,r){return i4.parseIsolatedEntityName(t,r)}function cF(t,r){return i4.parseJsonText(t,r)}function Wv(t){return t.externalModuleIndicator!==void 0}function XEe(t,r,s,l=!1){const m=Dpe.updateSourceFile(t,r,s,l);return m.flags|=t.flags&12582912,m}function eQ(t,r,s){const l=i4.JSDocParser.parseIsolatedJSDocComment(t,r,s);return l&&l.jsDoc&&i4.fixupParentReferences(l.jsDoc),l}function HG(t,r,s){return i4.JSDocParser.parseJSDocTypeExpressionForTests(t,r,s)}function iT(t){return ws(t,h3)||Pg(t,".ts")&&Ub(Iy(t),".d.")}function Bv(t,r,s,l){if(t){if(t==="import")return 99;if(t==="require")return 1;l(r,s-r,w.resolution_mode_should_be_either_require_or_import)}}function Hoe(t,r){const s=[];for(const l of CS(r,0)||Zn){const m=r.substring(l.pos,l.end);Zb(s,l,m)}t.pragmas=new Map;for(const l of s){if(t.pragmas.has(l.name)){const m=t.pragmas.get(l.name);m instanceof Array?m.push(l.args):t.pragmas.set(l.name,[m,l.args]);continue}t.pragmas.set(l.name,l.args)}}function Cpe(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,l)=>{switch(l){case"reference":{const m=t.referencedFiles,y=t.typeReferenceDirectives,T=t.libReferenceDirectives;Ot(BC(s),D=>{const{types:I,lib:W,path:O,["resolution-mode"]:V}=D.arguments;if(D.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(I){const ee=Bv(V,I.pos,I.end,r);y.push({pos:I.pos,end:I.end,fileName:I.value,...ee?{resolutionMode:ee}:{}})}else W?T.push({pos:W.pos,end:W.end,fileName:W.value}):O?m.push({pos:O.pos,end:O.end,fileName:O.value}):r(D.range.pos,D.range.end-D.range.pos,w.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Vn(BC(s),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const m of s)t.moduleName&&r(m.range.pos,m.range.end-m.range.pos,w.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=m.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{Ot(BC(s),m=>{(!t.checkJsDirective||m.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:l==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:ce.fail("Unhandled pragma kind")}})}function AUe(t){if(tQ.has(t))return tQ.get(t);const r=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return tQ.set(t,r),r}function Zb(t,r,s){const l=r.kind===2&&Ck.exec(s);if(l){const y=l[1].toLowerCase(),T=z_e[y];if(!T||!(T.kind&1))return;if(T.args){const D={};for(const I of T.args){const O=AUe(I.name).exec(s);if(!O&&!I.optional)return;if(O){const V=O[2]||O[3];if(I.captureSpan){const ee=r.pos+O.index+O[1].length+1;D[I.name]={value:V,pos:ee,end:ee+V.length}}else D[I.name]=V}}t.push({name:y,args:{arguments:D,range:r}})}else t.push({name:y,args:{arguments:{},range:r}});return}const m=r.kind===2&&Y6e.exec(s);if(m)return CUe(t,r,2,m);if(r.kind===3){const y=/@(\S+)(\s+.*)?$/gim;let T;for(;T=y.exec(s);)CUe(t,r,4,T)}}function CUe(t,r,s,l){if(!l)return;const m=l[1].toLowerCase(),y=z_e[m];if(!y||!(y.kind&s))return;const T=l[2],D=YEe(y,T);D!=="fail"&&t.push({name:m,args:{arguments:D,range:r}})}function YEe(t,r){if(!r)return{};if(!t.args)return{};const s=GD(r).split(/\s+/),l={};for(let m=0;mnew(r4||(r4=nv.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(K6e||(K6e=nv.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(kUe||(kUe=nv.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(IUe||(IUe=nv.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(DUe||(DUe=nv.getNodeConstructor()))(t,-1,-1)},DP=aJ(1,QEe),X6e={166:function(r,s,l){return Xi(s,r.left)||Xi(s,r.right)},168:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.constraint)||Xi(s,r.default)||Xi(s,r.expression)},304:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.equalsToken)||Xi(s,r.objectAssignmentInitializer)},305:function(r,s,l){return Xi(s,r.expression)},169:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.dotDotDotToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)||Xi(s,r.initializer)},172:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.type)||Xi(s,r.initializer)},171:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)||Xi(s,r.initializer)},303:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.initializer)},260:function(r,s,l){return Xi(s,r.name)||Xi(s,r.exclamationToken)||Xi(s,r.type)||Xi(s,r.initializer)},208:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.propertyName)||Xi(s,r.name)||Xi(s,r.initializer)},181:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},185:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},184:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},179:TUe,180:TUe,174:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},173:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},176:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},177:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},178:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},262:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},218:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},219:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.equalsGreaterThanToken)||Xi(s,r.body)},175:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.body)},183:function(r,s,l){return Xi(s,r.typeName)||Tn(s,l,r.typeArguments)},182:function(r,s,l){return Xi(s,r.assertsModifier)||Xi(s,r.parameterName)||Xi(s,r.type)},186:function(r,s,l){return Xi(s,r.exprName)||Tn(s,l,r.typeArguments)},187:function(r,s,l){return Tn(s,l,r.members)},188:function(r,s,l){return Xi(s,r.elementType)},189:function(r,s,l){return Tn(s,l,r.elements)},192:SUe,193:SUe,194:function(r,s,l){return Xi(s,r.checkType)||Xi(s,r.extendsType)||Xi(s,r.trueType)||Xi(s,r.falseType)},195:function(r,s,l){return Xi(s,r.typeParameter)},205:function(r,s,l){return Xi(s,r.argument)||Xi(s,r.assertions)||Xi(s,r.qualifier)||Tn(s,l,r.typeArguments)},302:function(r,s,l){return Xi(s,r.assertClause)},196:G6e,198:G6e,199:function(r,s,l){return Xi(s,r.objectType)||Xi(s,r.indexType)},200:function(r,s,l){return Xi(s,r.readonlyToken)||Xi(s,r.typeParameter)||Xi(s,r.nameType)||Xi(s,r.questionToken)||Xi(s,r.type)||Tn(s,l,r.members)},201:function(r,s,l){return Xi(s,r.literal)},202:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)},206:EUe,207:EUe,209:function(r,s,l){return Tn(s,l,r.elements)},210:function(r,s,l){return Tn(s,l,r.properties)},211:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.questionDotToken)||Xi(s,r.name)},212:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.questionDotToken)||Xi(s,r.argumentExpression)},213:xUe,214:xUe,215:function(r,s,l){return Xi(s,r.tag)||Xi(s,r.questionDotToken)||Tn(s,l,r.typeArguments)||Xi(s,r.template)},216:function(r,s,l){return Xi(s,r.type)||Xi(s,r.expression)},217:function(r,s,l){return Xi(s,r.expression)},220:function(r,s,l){return Xi(s,r.expression)},221:function(r,s,l){return Xi(s,r.expression)},222:function(r,s,l){return Xi(s,r.expression)},224:function(r,s,l){return Xi(s,r.operand)},229:function(r,s,l){return Xi(s,r.asteriskToken)||Xi(s,r.expression)},223:function(r,s,l){return Xi(s,r.expression)},225:function(r,s,l){return Xi(s,r.operand)},226:function(r,s,l){return Xi(s,r.left)||Xi(s,r.operatorToken)||Xi(s,r.right)},234:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.type)},235:function(r,s,l){return Xi(s,r.expression)},238:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.type)},236:function(r,s,l){return Xi(s,r.name)},227:function(r,s,l){return Xi(s,r.condition)||Xi(s,r.questionToken)||Xi(s,r.whenTrue)||Xi(s,r.colonToken)||Xi(s,r.whenFalse)},230:function(r,s,l){return Xi(s,r.expression)},241:j6e,268:j6e,312:function(r,s,l){return Tn(s,l,r.statements)||Xi(s,r.endOfFileToken)},243:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.declarationList)},261:function(r,s,l){return Tn(s,l,r.declarations)},244:function(r,s,l){return Xi(s,r.expression)},245:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.thenStatement)||Xi(s,r.elseStatement)},246:function(r,s,l){return Xi(s,r.statement)||Xi(s,r.expression)},247:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.statement)},248:function(r,s,l){return Xi(s,r.initializer)||Xi(s,r.condition)||Xi(s,r.incrementor)||Xi(s,r.statement)},249:function(r,s,l){return Xi(s,r.initializer)||Xi(s,r.expression)||Xi(s,r.statement)},250:function(r,s,l){return Xi(s,r.awaitModifier)||Xi(s,r.initializer)||Xi(s,r.expression)||Xi(s,r.statement)},251:V6e,252:V6e,253:function(r,s,l){return Xi(s,r.expression)},254:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.statement)},255:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.caseBlock)},269:function(r,s,l){return Tn(s,l,r.clauses)},296:function(r,s,l){return Xi(s,r.expression)||Tn(s,l,r.statements)},297:function(r,s,l){return Tn(s,l,r.statements)},256:function(r,s,l){return Xi(s,r.label)||Xi(s,r.statement)},257:function(r,s,l){return Xi(s,r.expression)},258:function(r,s,l){return Xi(s,r.tryBlock)||Xi(s,r.catchClause)||Xi(s,r.finallyBlock)},299:function(r,s,l){return Xi(s,r.variableDeclaration)||Xi(s,r.block)},170:function(r,s,l){return Xi(s,r.expression)},263:U6e,231:U6e,264:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.heritageClauses)||Tn(s,l,r.members)},265:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Xi(s,r.type)},266:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.members)},306:function(r,s,l){return Xi(s,r.name)||Xi(s,r.initializer)},267:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.body)},271:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.moduleReference)},272:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.importClause)||Xi(s,r.moduleSpecifier)||Xi(s,r.assertClause)},273:function(r,s,l){return Xi(s,r.name)||Xi(s,r.namedBindings)},300:function(r,s,l){return Tn(s,l,r.elements)},301:function(r,s,l){return Xi(s,r.name)||Xi(s,r.value)},270:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)},274:function(r,s,l){return Xi(s,r.name)},280:function(r,s,l){return Xi(s,r.name)},275:H6e,279:H6e,278:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.exportClause)||Xi(s,r.moduleSpecifier)||Xi(s,r.assertClause)},276:J6e,281:J6e,277:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.expression)},228:function(r,s,l){return Xi(s,r.head)||Tn(s,l,r.templateSpans)},239:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.literal)},203:function(r,s,l){return Xi(s,r.head)||Tn(s,l,r.templateSpans)},204:function(r,s,l){return Xi(s,r.type)||Xi(s,r.literal)},167:function(r,s,l){return Xi(s,r.expression)},298:function(r,s,l){return Tn(s,l,r.types)},233:function(r,s,l){return Xi(s,r.expression)||Tn(s,l,r.typeArguments)},283:function(r,s,l){return Xi(s,r.expression)},282:function(r,s,l){return Tn(s,l,r.modifiers)},361:function(r,s,l){return Tn(s,l,r.elements)},284:function(r,s,l){return Xi(s,r.openingElement)||Tn(s,l,r.children)||Xi(s,r.closingElement)},288:function(r,s,l){return Xi(s,r.openingFragment)||Tn(s,l,r.children)||Xi(s,r.closingFragment)},285:$6e,286:$6e,292:function(r,s,l){return Tn(s,l,r.properties)},291:function(r,s,l){return Xi(s,r.name)||Xi(s,r.initializer)},293:function(r,s,l){return Xi(s,r.expression)},294:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.expression)},287:function(r,s,l){return Xi(s,r.tagName)},295:function(r,s,l){return Xi(s,r.namespace)||Xi(s,r.name)},190:XJ,191:XJ,316:XJ,322:XJ,321:XJ,323:XJ,325:XJ,324:function(r,s,l){return Tn(s,l,r.parameters)||Xi(s,r.type)},327:function(r,s,l){return(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))||Tn(s,l,r.tags)},354:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.name)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},317:function(r,s,l){return Xi(s,r.name)},318:function(r,s,l){return Xi(s,r.left)||Xi(s,r.right)},348:q6e,355:q6e,337:function(r,s,l){return Xi(s,r.tagName)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},336:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.class)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},335:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.class)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},352:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.constraint)||Tn(s,l,r.typeParameters)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},353:function(r,s,l){return Xi(s,r.tagName)||(r.typeExpression&&r.typeExpression.kind===316?Xi(s,r.typeExpression)||Xi(s,r.fullName)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment)):Xi(s,r.fullName)||Xi(s,r.typeExpression)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment)))},345:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.fullName)||Xi(s,r.typeExpression)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},349:YJ,351:YJ,350:YJ,347:YJ,357:YJ,356:YJ,346:YJ,330:function(r,s,l){return Ot(r.typeParameters,s)||Ot(r.parameters,s)||Xi(s,r.type)},331:qEe,332:qEe,333:qEe,329:function(r,s,l){return Ot(r.jsDocPropertyTags,s)},334:VG,339:VG,340:VG,341:VG,342:VG,343:VG,338:VG,344:VG,360:ZY},(t=>{var r=MM(99,!0),s=40960,l,m,y,T,D;function I(je){return Gn++,je}var W={createBaseSourceFileNode:je=>I(new D(je,0,0)),createBaseIdentifierNode:je=>I(new y(je,0,0)),createBasePrivateIdentifierNode:je=>I(new T(je,0,0)),createBaseTokenNode:je=>I(new m(je,0,0)),createBaseNode:je=>I(new l(je,0,0))},O=aJ(11,W),{createNodeArray:V,createNumericLiteral:ee,createStringLiteral:te,createLiteralLikeNode:oe,createIdentifier:de,createPrivateIdentifier:ue,createToken:Ne,createArrayLiteralExpression:Be,createObjectLiteralExpression:Ve,createPropertyAccessExpression:pt,createPropertyAccessChain:Le,createElementAccessExpression:ht,createElementAccessChain:ke,createCallExpression:_t,createCallChain:Dt,createNewExpression:Ft,createParenthesizedExpression:it,createBlock:Ye,createVariableStatement:ut,createExpressionStatement:lt,createIfStatement:zt,createWhileStatement:Wt,createForStatement:tt,createForOfStatement:Mn,createVariableDeclaration:kn,createVariableDeclarationList:cr}=O,un,on,pn,Or,Xr,Ut,In,gr,Cr,ei,Gn,Ur,so,ho,di,Nc,ha=!0,ro=!1;function Gs(je,Vt,zn,zr,xi=!1,xo,Wc){var hu;if(xo=$H(je,xo),xo===6){const Sl=_u(je,Vt,zn,zr,xi);return Koe(Sl,(hu=Sl.statements[0])==null?void 0:hu.expression,Sl.parseDiagnostics,!1,void 0),Sl.referencedFiles=Zn,Sl.typeReferenceDirectives=Zn,Sl.libReferenceDirectives=Zn,Sl.amdDependencies=Zn,Sl.hasNoDefaultLib=!1,Sl.pragmas=zy,Sl}Ku(je,Vt,zn,zr,xo);const _c=Rr(zn,xi,xo,Wc||UG);return al(),_c}t.parseSourceFile=Gs;function Oc(je,Vt){Ku("",je,Vt,void 0,1),rr();const zn=E0(!0),zr=xe()===1&&!In.length;return al(),zr?zn:void 0}t.parseIsolatedEntityName=Oc;function _u(je,Vt,zn=2,zr,xi=!1){Ku(je,Vt,zn,zr,6),on=Nc,rr();const xo=$e();let Wc,hu;if(xe()===1)Wc=nm([],xo,xo),hu=H0();else{let kf;for(;xe()!==1;){let v_;switch(xe()){case 23:v_=Sc();break;case 112:case 97:case 106:v_=H0();break;case 41:Ha(()=>rr()===9&&rr()!==59)?v_=Lr():v_=Fs();break;case 9:case 11:if(Ha(()=>rr()!==59)){v_=$l();break}default:v_=Fs();break}kf&&ls(kf)?kf.push(v_):kf?kf=[kf,v_]:(kf=v_,xe()!==1&&Ui(w.Unexpected_token))}const Rp=ls(kf)?po(Be(kf),xo):ce.checkDefined(kf),hn=lt(Rp);po(hn,xo),Wc=nm([hn],xo),hu=Kh(1,w.Unexpected_token)}const _c=$a(je,2,6,!1,Wc,hu,on,ku);xi&&ta(_c),_c.nodeCount=Gn,_c.identifierCount=so,_c.identifiers=Ur,_c.parseDiagnostics=jN(In,_c),gr&&(_c.jsDocDiagnostics=jN(gr,_c));const Sl=_c;return al(),Sl}t.parseJsonText=_u;function Ku(je,Vt,zn,zr,xi){switch(l=nv.getNodeConstructor(),m=nv.getTokenConstructor(),y=nv.getIdentifierConstructor(),T=nv.getPrivateIdentifierConstructor(),D=nv.getSourceFileConstructor(),un=Fd(je),pn=Vt,Or=zn,Cr=zr,Xr=xi,Ut=$9(xi),In=[],ho=0,Ur=new Map,so=0,Gn=0,on=0,ha=!0,Xr){case 1:case 2:Nc=524288;break;case 6:Nc=134742016;break;default:Nc=0;break}ro=!1,r.setText(pn),r.setOnError(wt),r.setScriptTarget(Or),r.setLanguageVariant(Ut)}function al(){r.clearCommentDirectives(),r.setText(""),r.setOnError(void 0),pn=void 0,Or=void 0,Cr=void 0,Xr=void 0,Ut=void 0,on=0,In=void 0,gr=void 0,ho=0,Ur=void 0,di=void 0,ha=!0}function Rr(je,Vt,zn,zr){const xi=iT(un);xi&&(Nc|=33554432),on=Nc,rr();const xo=K_(0,nt);ce.assert(xe()===1);const Wc=Zt(),hu=Ea(H0(),Wc),_c=$a(un,je,zn,xi,xo,hu,on,zr);return Hoe(_c,pn),Cpe(_c,Sl),_c.commentDirectives=r.getCommentDirectives(),_c.nodeCount=Gn,_c.identifierCount=so,_c.identifiers=Ur,_c.parseDiagnostics=jN(In,_c),gr&&(_c.jsDocDiagnostics=jN(gr,_c)),Vt&&ta(_c),_c;function Sl(kf,Rp,hn){In.push(s6(un,kf,Rp,hn))}}let mc=!1;function Ea(je,Vt){if(!Vt)return je;ce.assert(!je.jsDoc);const zn=Qo(vde(je,pn),zr=>Q_.parseJSDocComment(je,zr.pos,zr.end-zr.pos));return zn.length&&(je.jsDoc=zn),mc&&(mc=!1,je.flags|=536870912),je}function Fi(je){const Vt=Cr,zn=Dpe.createSyntaxCursor(je);Cr={currentNode:kf};const zr=[],xi=In;In=[];let xo=0,Wc=_c(je.statements,0);for(;Wc!==-1;){const Rp=je.statements[xo],hn=je.statements[Wc];Oi(zr,je.statements,xo,Wc),xo=Sl(je.statements,Wc);const v_=Ho(xi,fm=>fm.start>=Rp.pos),yh=v_>=0?Ho(xi,fm=>fm.start>=hn.pos,v_):-1;v_>=0&&Oi(In,xi,v_,yh>=0?yh:void 0),fp(()=>{const fm=Nc;for(Nc|=65536,r.resetTokenState(hn.pos),rr();xe()!==1;){const mx=r.getTokenFullStart(),BS=ig(0,nt);if(zr.push(BS),mx===r.getTokenFullStart()&&rr(),xo>=0){const N2=je.statements[xo];if(BS.end===N2.pos)break;BS.end>N2.pos&&(xo=Sl(je.statements,xo+1))}}Nc=fm},2),Wc=xo>=0?_c(je.statements,xo):-1}if(xo>=0){const Rp=je.statements[xo];Oi(zr,je.statements,xo);const hn=Ho(xi,v_=>v_.start>=Rp.pos);hn>=0&&Oi(In,xi,hn)}return Cr=Vt,O.updateSourceFile(je,vr(V(zr),je.statements));function hu(Rp){return!(Rp.flags&65536)&&!!(Rp.transformFlags&67108864)}function _c(Rp,hn){for(let v_=hn;v_118}function q_(){return xe()===80?!0:xe()===127&&Cn()||xe()===135&&es()?!1:xe()>118}function Ma(je,Vt,zn=!0){return xe()===je?(zn&&rr(),!0):(Vt?Ui(Vt):Ui(w._0_expected,Nd(je)),!1)}const U0=Object.keys(Jre).filter(je=>je.length>2);function c_(je){if(Hm(je)){We(ep(pn,je.template.pos),je.template.end,w.Module_declaration_names_may_only_use_or_quoted_strings);return}const Vt=An(je)?ec(je):void 0;if(!Vt||!rE(Vt,Or)){Ui(w._0_expected,Nd(27));return}const zn=ep(pn,je.pos);switch(Vt){case"const":case"let":case"var":We(zn,je.end,w.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Kd(w.Interface_name_cannot_be_0,w.Interface_must_be_given_a_name,19);return;case"is":We(zn,r.getTokenStart(),w.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Kd(w.Namespace_name_cannot_be_0,w.Namespace_must_be_given_a_name,19);return;case"type":Kd(w.Type_alias_name_cannot_be_0,w.Type_alias_must_be_given_a_name,64);return}const zr=fh(Vt,U0,xi=>xi)??iy(Vt);if(zr){We(zn,je.end,w.Unknown_keyword_or_identifier_Did_you_mean_0,zr);return}xe()!==0&&We(zn,je.end,w.Unexpected_keyword_or_identifier)}function Kd(je,Vt,zn){xe()===zn?Ui(Vt):Ui(je,r.getTokenValue())}function iy(je){for(const Vt of U0)if(je.length>Vt.length+2&&xf(je,Vt))return`${Vt} ${je.slice(Vt.length)}`}function Oh(je,Vt,zn){if(xe()===60&&!r.hasPrecedingLineBreak()){Ui(w.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(xe()===21){Ui(w.Cannot_start_a_function_call_in_a_type_annotation),rr();return}if(Vt&&!rd()){zn?Ui(w._0_expected,Nd(27)):Ui(w.Expected_for_property_initializer);return}if(!Mg()){if(zn){Ui(w._0_expected,Nd(27));return}c_(je)}}function jg(je){return xe()===je?(mi(),!0):(ce.assert(Nde(je)),Ui(w._0_expected,Nd(je)),!1)}function zv(je,Vt,zn,zr){if(xe()===Vt){rr();return}const xi=Ui(w._0_expected,Nd(Vt));zn&&xi&&ml(xi,s6(un,zr,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Nd(je),Nd(Vt)))}function m_(je){return xe()===je?(rr(),!0):!1}function Yu(je){if(xe()===je)return H0()}function Tv(je){if(xe()===je)return fx()}function Kh(je,Vt,zn){return Yu(je)||hy(je,!1,Vt||w._0_expected,zn||Nd(je))}function uS(je){const Vt=Tv(je);return Vt||(ce.assert(Nde(je)),hy(je,!1,w._0_expected,Nd(je)))}function H0(){const je=$e(),Vt=xe();return rr(),po(Ne(Vt),je)}function fx(){const je=$e(),Vt=xe();return mi(),po(Ne(Vt),je)}function rd(){return xe()===27?!0:xe()===20||xe()===1||r.hasPrecedingLineBreak()}function Mg(){return rd()?(xe()===27&&rr(),!0):!1}function lm(){return Mg()||Ma(27)}function nm(je,Vt,zn,zr){const xi=V(je,zr);return T1(xi,Vt,zn??r.getTokenFullStart()),xi}function po(je,Vt,zn){return T1(je,Vt,zn??r.getTokenFullStart()),Nc&&(je.flags|=Nc),ro&&(ro=!1,je.flags|=262144),je}function hy(je,Vt,zn,...zr){Vt?xu(r.getTokenFullStart(),0,zn,...zr):zn&&Ui(zn,...zr);const xi=$e(),xo=je===80?de("",void 0):zM(je)?O.createTemplateLiteralLikeNode(je,"","",void 0):je===9?ee("",void 0):je===11?te("",void 0):je===282?O.createMissingDeclaration():Ne(je);return po(xo,xi)}function fS(je){let Vt=Ur.get(je);return Vt===void 0&&Ur.set(je,Vt=je),Vt}function GT(je,Vt,zn){if(je){so++;const hu=$e(),_c=xe(),Sl=fS(r.getTokenValue()),kf=r.hasExtendedUnicodeEscape();return an(),po(de(Sl,_c,kf),hu)}if(xe()===81)return Ui(zn||w.Private_identifiers_are_not_allowed_outside_class_bodies),GT(!0);if(xe()===0&&r.tryScan(()=>r.reScanInvalidIdentifier()===80))return GT(!0);so++;const zr=xe()===1,xi=r.isReservedWord(),xo=r.getTokenText(),Wc=xi?w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:w.Identifier_expected;return hy(80,zr,Vt||Wc,xo)}function vE(je){return GT(x_(),void 0,je)}function oh(je,Vt){return GT(q_(),je,Vt)}function yy(je){return GT(Cf(xe()),je)}function _e(){return Cf(xe())||xe()===11||xe()===9}function vn(){return Cf(xe())||xe()===11}function Qn(je){if(xe()===11||xe()===9){const Vt=$l();return Vt.text=fS(Vt.text),Vt}return je&&xe()===23?pa():xe()===81?Zc():yy()}function hi(){return Qn(!0)}function pa(){const je=$e();Ma(23);const Vt=er(Pr);return Ma(24),po(O.createComputedPropertyName(Vt),je)}function Zc(){const je=$e(),Vt=ue(fS(r.getTokenValue()));return rr(),po(Vt,je)}function ka(je){return xe()===je&&mu(gu)}function bc(){return rr(),r.hasPrecedingLineBreak()?!1:av()}function gu(){switch(xe()){case 87:return rr()===94;case 95:return rr(),xe()===90?Ha(Fh):xe()===156?Ha(Xm):yu();case 90:return Fh();case 126:case 139:case 153:return rr(),av();default:return bc()}}function yu(){return xe()===60||xe()!==42&&xe()!==130&&xe()!==19&&av()}function Xm(){return rr(),yu()}function Lg(){return qg(xe())&&mu(gu)}function av(){return xe()===23||xe()===19||xe()===42||xe()===26||_e()}function Fh(){return rr(),xe()===86||xe()===100||xe()===120||xe()===60||xe()===128&&Ha(Qm)||xe()===134&&Ha(Bh)}function J0(je,Vt){if(Fy(je))return!0;switch(je){case 0:case 1:case 3:return!(xe()===27&&Vt)&&fb();case 2:return xe()===84||xe()===90;case 4:return Ha(Ke);case 5:return Ha(Uv)||xe()===27&&!Vt;case 6:return xe()===23||_e();case 12:switch(xe()){case 23:case 42:case 26:case 25:return!0;default:return _e()}case 18:return _e();case 9:return xe()===23||xe()===26||_e();case 24:return vn();case 7:return xe()===19?Ha(Eg):Vt?q_()&&!S0():Hn()&&!S0();case 8:return Uf();case 10:return xe()===28||xe()===26||Uf();case 19:return xe()===103||xe()===87||q_();case 15:switch(xe()){case 28:case 25:return!0}case 11:return xe()===26||dr();case 16:return $(!1);case 17:return $(!0);case 20:case 21:return xe()===28||Mo();case 22:return br();case 23:return xe()===161&&Ha(Gt)?!1:Cf(xe());case 13:return Cf(xe())||xe()===19;case 14:return!0;case 25:return!0;case 26:return ce.fail("ParsingContext.Count used as a context");default:ce.assertNever(je,"Non-exhaustive case in 'isListElement'.")}}function Eg(){if(ce.assert(xe()===19),rr()===20){const je=rr();return je===28||je===19||je===96||je===119}return!0}function Sv(){return rr(),q_()}function jT(){return rr(),Cf(xe())}function Ev(){return rr(),D8(xe())}function S0(){return xe()===119||xe()===96?Ha(k1):!1}function k1(){return rr(),dr()}function tn(){return rr(),Mo()}function fi(je){if(xe()===1)return!0;switch(je){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return xe()===20;case 3:return xe()===20||xe()===84||xe()===90;case 7:return xe()===19||xe()===96||xe()===119;case 8:return ya();case 19:return xe()===32||xe()===21||xe()===19||xe()===96||xe()===119;case 11:return xe()===22||xe()===27;case 15:case 21:case 10:return xe()===24;case 17:case 16:case 18:return xe()===22||xe()===24;case 20:return xe()!==28;case 22:return xe()===19||xe()===20;case 13:return xe()===32||xe()===44;case 14:return xe()===30&&Ha(hC);default:return!1}}function ya(){return!!(rd()||qe(xe())||xe()===39)}function bu(){ce.assert(ho,"Missing parsing context");for(let je=0;je<26;je++)if(ho&1<=0)}function Gv(je){return je===6?w.An_enum_member_name_must_be_followed_by_a_or:void 0}function jv(){const je=nm([],$e());return je.isMissingList=!0,je}function vy(je){return!!je.isMissingList}function ub(je,Vt,zn,zr){if(Ma(zn)){const xi=Wh(je,Vt);return Ma(zr),xi}return jv()}function E0(je,Vt){const zn=$e();let zr=je?yy(Vt):oh(Vt);for(;m_(25)&&xe()!==30;)zr=po(O.createQualifiedName(zr,MA(je,!1)),zn);return zr}function P2(je,Vt){return po(O.createQualifiedName(je,Vt),je.pos)}function MA(je,Vt){if(r.hasPrecedingLineBreak()&&Cf(xe())&&Ha(P_))return hy(80,!0,w.Identifier_expected);if(xe()===81){const zn=Zc();return Vt?zn:hy(80,!0,w.Identifier_expected)}return je?yy():oh()}function aw(je){const Vt=$e(),zn=[];let zr;do zr=X_(je),zn.push(zr);while(zr.literal.kind===17);return nm(zn,Vt)}function DI(je){const Vt=$e();return po(O.createTemplateExpression(y_(je),aw(je)),Vt)}function Me(){const je=$e();return po(O.createTemplateLiteralType(y_(!1),jn()),je)}function jn(){const je=$e(),Vt=[];let zn;do zn=Mi(),Vt.push(zn);while(zn.literal.kind===17);return nm(Vt,je)}function Mi(){const je=$e();return po(O.createTemplateLiteralTypeSpan(Eu(),js(!1)),je)}function js(je){return xe()===20?(Qa(je),l_()):Kh(18,w._0_expected,Nd(20))}function X_(je){const Vt=$e();return po(O.createTemplateSpan(er(Pr),js(je)),Vt)}function $l(){return Ap(xe())}function y_(je){!je&&r.getTokenFlags()&26656&&Qa(!1);const Vt=Ap(xe());return ce.assert(Vt.kind===16,"Template head has wrong token kind"),Vt}function l_(){const je=Ap(xe());return ce.assert(je.kind===17||je.kind===18,"Template fragment has wrong token kind"),je}function Ph(je){const Vt=je===15||je===18,zn=r.getTokenText();return zn.substring(1,zn.length-(r.isUnterminated()?0:Vt?1:2))}function Ap(je){const Vt=$e(),zn=zM(je)?O.createTemplateLiteralLikeNode(je,r.getTokenValue(),Ph(je),r.getTokenFlags()&7176):je===9?ee(r.getTokenValue(),r.getNumericLiteralFlags()):je===11?te(r.getTokenValue(),void 0,r.hasExtendedUnicodeEscape()):c9(je)?oe(je,r.getTokenValue()):ce.fail();return r.hasExtendedUnicodeEscape()&&(zn.hasExtendedUnicodeEscape=!0),r.isUnterminated()&&(zn.isUnterminated=!0),rr(),po(zn,Vt)}function Mb(){return E0(!0,w.Type_expected)}function _x(){if(!r.hasPrecedingLineBreak()&&Ks()===30)return ub(20,Eu,30,32)}function _S(){const je=$e();return po(O.createTypeReferenceNode(Mb(),_x()),je)}function e(je){switch(je.kind){case 183:return Um(je.typeName);case 184:case 185:{const{parameters:Vt,type:zn}=je;return vy(Vt)||e(zn)}case 196:return e(je.type);default:return!1}}function n(je){return rr(),po(O.createTypePredicateNode(void 0,je,Eu()),je.pos)}function i(){const je=$e();return rr(),po(O.createThisTypeNode(),je)}function c(){const je=$e();return rr(),po(O.createJSDocAllType(),je)}function u(){const je=$e();return rr(),po(O.createJSDocNonNullableType(os(),!1),je)}function d(){const je=$e();return rr(),xe()===28||xe()===20||xe()===22||xe()===32||xe()===64||xe()===52?po(O.createJSDocUnknownType(),je):po(O.createJSDocNullableType(Eu(),!1),je)}function h(){const je=$e(),Vt=Zt();if(Ha(a0)){rr();const zn=Pe(36),zr=we(59,!1);return Ea(po(O.createJSDocFunctionType(zn,zr),je),Vt)}return po(O.createTypeReferenceNode(yy(),void 0),je)}function S(){const je=$e();let Vt;return(xe()===110||xe()===105)&&(Vt=yy(),Ma(59)),po(O.createParameterDeclaration(void 0,void 0,Vt,void 0,E(),void 0),je)}function E(){r.setInJSDocType(!0);const je=$e();if(m_(144)){const zr=O.createJSDocNamepathType(void 0);e:for(;;)switch(xe()){case 20:case 1:case 28:case 5:break e;default:mi()}return r.setInJSDocType(!1),po(zr,je)}const Vt=m_(26);let zn=Cu();return r.setInJSDocType(!1),Vt&&(zn=po(O.createJSDocVariadicType(zn),je)),xe()===64?(rr(),po(O.createJSDocOptionalType(zn),je)):zn}function P(){const je=$e();Ma(114);const Vt=E0(!0),zn=r.hasPrecedingLineBreak()?void 0:ft();return po(O.createTypeQueryNode(Vt,zn),je)}function k(){const je=$e(),Vt=Li(!1,!0),zn=oh();let zr,xi;m_(96)&&(Mo()||!dr()?zr=Eu():xi=Pc());const xo=m_(64)?Eu():void 0,Wc=O.createTypeParameterDeclaration(Vt,zn,zr,xo);return Wc.expression=xi,po(Wc,je)}function F(){if(xe()===30)return ub(19,k,30,32)}function $(je){return xe()===26||Uf()||qg(xe())||xe()===60||Mo(!je)}function J(je){const Vt=Y_(w.Private_identifiers_cannot_be_used_as_parameters);return KU(Vt)===0&&!gt(je)&&qg(xe())&&rr(),Vt}function X(){return x_()||xe()===23||xe()===19}function ie(je){return ve(je)}function ae(je){return ve(je,!1)}function ve(je,Vt=!0){const zn=$e(),zr=Zt(),xi=je?Kn(()=>Li(!0)):gn(()=>Li(!0));if(xe()===110){const _c=O.createParameterDeclaration(xi,void 0,GT(!0),void 0,He(),void 0),Sl=pp(xi);return Sl&&Re(Sl,w.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ea(po(_c,zn),zr)}const xo=ha;ha=!1;const Wc=Yu(26);if(!Vt&&!X())return;const hu=Ea(po(O.createParameterDeclaration(xi,Wc,J(xi),Yu(58),He(),Bt()),zn),zr);return ha=xo,hu}function we(je,Vt){if(Fe(je,Vt))return li(Cu)}function Fe(je,Vt){return je===39?(Ma(je),!0):m_(59)?!0:Vt&&xe()===39?(Ui(w._0_expected,Nd(59)),rr(),!0):!1}function et(je,Vt){const zn=Cn(),zr=es();Lo(!!(je&1)),Aa(!!(je&2));const xi=je&32?Wh(17,S):Wh(16,()=>Vt?ie(zr):ae(zr));return Lo(zn),Aa(zr),xi}function Pe(je){if(!Ma(21))return jv();const Vt=et(je,!0);return Ma(22),Vt}function dt(){m_(28)||lm()}function Ie(je){const Vt=$e(),zn=Zt();je===180&&Ma(105);const zr=F(),xi=Pe(4),xo=we(59,!0);dt();const Wc=je===179?O.createCallSignature(zr,xi,xo):O.createConstructSignature(zr,xi,xo);return Ea(po(Wc,Vt),zn)}function ct(){return xe()===23&&Ha(Ct)}function Ct(){if(rr(),xe()===26||xe()===24)return!0;if(qg(xe())){if(rr(),q_())return!0}else if(q_())rr();else return!1;return xe()===59||xe()===28?!0:xe()!==58?!1:(rr(),xe()===59||xe()===28||xe()===24)}function Lt(je,Vt,zn){const zr=ub(16,()=>ie(!1),23,24),xi=He();dt();const xo=O.createIndexSignature(zn,zr,xi);return Ea(po(xo,je),Vt)}function Ze(je,Vt,zn){const zr=hi(),xi=Yu(58);let xo;if(xe()===21||xe()===30){const Wc=F(),hu=Pe(4),_c=we(59,!0);xo=O.createMethodSignature(zn,zr,xi,Wc,hu,_c)}else{const Wc=He();xo=O.createPropertySignature(zn,zr,xi,Wc),xe()===64&&(xo.initializer=Bt())}return dt(),Ea(po(xo,je),Vt)}function Ke(){if(xe()===21||xe()===30||xe()===139||xe()===153)return!0;let je=!1;for(;qg(xe());)je=!0,rr();return xe()===23?!0:(_e()&&(je=!0,rr()),je?xe()===21||xe()===30||xe()===58||xe()===59||xe()===28||rd():!1)}function st(){if(xe()===21||xe()===30)return Ie(179);if(xe()===105&&Ha(It))return Ie(180);const je=$e(),Vt=Zt(),zn=Li(!1);return ka(139)?eg(je,Vt,zn,177,4):ka(153)?eg(je,Vt,zn,178,4):ct()?Lt(je,Vt,zn):Ze(je,Vt,zn)}function It(){return rr(),xe()===21||xe()===30}function Yt(){return rr()===25}function Et(){switch(rr()){case 21:case 30:case 25:return!0}return!1}function at(){const je=$e();return po(O.createTypeLiteralNode(Qt()),je)}function Qt(){let je;return Ma(19)?(je=K_(4,st),Ma(20)):je=jv(),je}function nn(){return rr(),xe()===40||xe()===41?rr()===148:(xe()===148&&rr(),xe()===23&&Sv()&&rr()===103)}function Rn(){const je=$e(),Vt=yy();Ma(103);const zn=Eu();return po(O.createTypeParameterDeclaration(void 0,Vt,zn,void 0),je)}function cn(){const je=$e();Ma(19);let Vt;(xe()===148||xe()===40||xe()===41)&&(Vt=H0(),Vt.kind!==148&&Ma(148)),Ma(23);const zn=Rn(),zr=m_(130)?Eu():void 0;Ma(24);let xi;(xe()===58||xe()===40||xe()===41)&&(xi=H0(),xi.kind!==58&&Ma(58));const xo=He();lm();const Wc=K_(4,st);return Ma(20),po(O.createMappedTypeNode(Vt,zn,zr,xi,xo,Wc),je)}function qt(){const je=$e();if(m_(26))return po(O.createRestTypeNode(Eu()),je);const Vt=Eu();if(LG(Vt)&&Vt.pos===Vt.type.pos){const zn=O.createOptionalTypeNode(Vt.type);return vr(zn,Vt),zn.flags=Vt.flags,zn}return Vt}function Kt(){return rr()===59||xe()===58&&rr()===59}function wr(){return xe()===26?Cf(rr())&&Kt():Cf(xe())&&Kt()}function Wr(){if(Ha(wr)){const je=$e(),Vt=Zt(),zn=Yu(26),zr=yy(),xi=Yu(58);Ma(59);const xo=qt(),Wc=O.createNamedTupleMember(zn,zr,xi,xo);return Ea(po(Wc,je),Vt)}return qt()}function jt(){const je=$e();return po(O.createTupleTypeNode(ub(21,Wr,23,24)),je)}function En(){const je=$e();Ma(21);const Vt=Eu();return Ma(22),po(O.createParenthesizedType(Vt),je)}function fr(){let je;if(xe()===128){const Vt=$e();rr();const zn=po(Ne(128),Vt);je=nm([zn],Vt)}return je}function Tr(){const je=$e(),Vt=Zt(),zn=fr(),zr=m_(105);ce.assert(!zn||zr,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const xi=F(),xo=Pe(4),Wc=we(39,!1),hu=zr?O.createConstructorTypeNode(zn,xi,xo,Wc):O.createFunctionTypeNode(xi,xo,Wc);return Ea(po(hu,je),Vt)}function Vr(){const je=H0();return xe()===25?void 0:je}function Pn(je){const Vt=$e();je&&rr();let zn=xe()===112||xe()===97||xe()===106?H0():Ap(xe());return je&&(zn=po(O.createPrefixUnaryExpression(41,zn),Vt)),po(O.createLiteralTypeNode(zn),Vt)}function Fr(){return rr(),xe()===102}function Ki(){const je=$e(),Vt=r.getTokenStart();Ma(19);const zn=r.hasPrecedingLineBreak();Ma(132),Ma(59);const zr=OA(!0);if(!Ma(20)){const xi=Yf(In);xi&&xi.code===w._0_expected.code&&ml(xi,s6(un,Vt,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return po(O.createImportTypeAssertionContainer(zr,zn),je)}function io(){on|=4194304;const je=$e(),Vt=m_(114);Ma(102),Ma(21);const zn=Eu();let zr;m_(28)&&(zr=Ki()),Ma(22);const xi=m_(25)?Mb():void 0,xo=_x();return po(O.createImportTypeNode(zn,zr,xi,xo,Vt),je)}function no(){return rr(),xe()===9||xe()===10}function os(){switch(xe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return mu(Vr)||_S();case 67:r.reScanAsteriskEqualsToken();case 42:return c();case 61:r.reScanQuestionToken();case 58:return d();case 100:return h();case 54:return u();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Pn();case 41:return Ha(no)?Pn(!0):_S();case 116:return H0();case 110:{const je=i();return xe()===142&&!r.hasPrecedingLineBreak()?n(je):je}case 114:return Ha(Fr)?io():P();case 19:return Ha(nn)?cn():at();case 23:return jt();case 21:return En();case 102:return io();case 131:return Ha(P_)?w_():_S();case 16:return Me();default:return _S()}}function Mo(je){switch(xe()){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!je;case 41:return!je&&Ha(no);case 21:return!je&&Ha($i);default:return q_()}}function $i(){return rr(),xe()===22||$(!1)||Mo()}function ki(){const je=$e();let Vt=os();for(;!r.hasPrecedingLineBreak();)switch(xe()){case 54:rr(),Vt=po(O.createJSDocNonNullableType(Vt,!0),je);break;case 58:if(Ha(tn))return Vt;rr(),Vt=po(O.createJSDocNullableType(Vt,!0),je);break;case 23:if(Ma(23),Mo()){const zn=Eu();Ma(24),Vt=po(O.createIndexedAccessTypeNode(Vt,zn),je)}else Ma(24),Vt=po(O.createArrayTypeNode(Vt),je);break;default:return Vt}return Vt}function gc(je){const Vt=$e();return Ma(je),po(O.createTypeOperatorNode(je,qn()),Vt)}function Wl(){if(m_(96)){const je=Ir(Eu);if(Qr()||xe()!==58)return je}}function Jc(){const je=$e(),Vt=oh(),zn=mu(Wl),zr=O.createTypeParameterDeclaration(void 0,Vt,zn);return po(zr,je)}function au(){const je=$e();return Ma(140),po(O.createInferTypeNode(Jc()),je)}function qn(){const je=xe();switch(je){case 143:case 158:case 148:return gc(je);case 140:return au()}return li(ki)}function za(je){if(us()){const Vt=Tr();let zn;return Z2(Vt)?zn=je?w.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:w.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:zn=je?w.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:w.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(Vt,zn),Vt}}function Ia(je,Vt,zn){const zr=$e(),xi=je===52,xo=m_(je);let Wc=xo&&za(xi)||Vt();if(xe()===je||xo){const hu=[Wc];for(;m_(je);)hu.push(za(xi)||Vt());Wc=po(zn(nm(hu,zr)),zr)}return Wc}function zi(){return Ia(51,qn,O.createIntersectionTypeNode)}function na(){return Ia(52,zi,O.createUnionTypeNode)}function _a(){return rr(),xe()===105}function us(){return xe()===30||xe()===21&&Ha(Qu)?!0:xe()===105||xe()===128&&Ha(_a)}function Au(){if(qg(xe())&&Li(!1),q_()||xe()===110)return rr(),!0;if(xe()===23||xe()===19){const je=In.length;return Y_(),je===In.length}return!1}function Qu(){return rr(),!!(xe()===22||xe()===26||Au()&&(xe()===59||xe()===28||xe()===58||xe()===64||xe()===22&&(rr(),xe()===39)))}function Cu(){const je=$e(),Vt=q_()&&mu(yf),zn=Eu();return Vt?po(O.createTypePredicateNode(void 0,Vt,zn),je):zn}function yf(){const je=oh();if(xe()===142&&!r.hasPrecedingLineBreak())return rr(),je}function w_(){const je=$e(),Vt=Kh(131),zn=xe()===110?i():oh(),zr=m_(142)?Eu():void 0;return po(O.createTypePredicateNode(Vt,zn,zr),je)}function Eu(){if(Nc&81920)return sl(81920,Eu);if(us())return Tr();const je=$e(),Vt=na();if(!Qr()&&!r.hasPrecedingLineBreak()&&m_(96)){const zn=Ir(Eu);Ma(58);const zr=li(Eu);Ma(59);const xi=li(Eu);return po(O.createConditionalTypeNode(Vt,zn,zr,xi),je)}return Vt}function He(){return m_(59)?Eu():void 0}function Hn(){switch(xe()){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 Ha(Et);default:return q_()}}function dr(){if(Hn())return!0;switch(xe()){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 ge()?!0:q_()}}function Mr(){return xe()!==19&&xe()!==100&&xe()!==86&&xe()!==60&&dr()}function Pr(){const je=co();je&&To(!1);const Vt=$e();let zn=ln(!0),zr;for(;zr=Yu(28);)zn=Jn(zn,zr,ln(!0),Vt);return je&&To(!0),zn}function Bt(){return m_(64)?ln(!0):void 0}function ln(je){if(Wn())return Ge();const Vt=Ei(je)||go(je);if(Vt)return Vt;const zn=$e(),zr=Zt(),xi=kt(0);return xi.kind===80&&xe()===39?Br(zn,xi,je,zr,void 0):FE(xi)&&zN(zo())?Jn(xi,H0(),ln(je),zn):Ce(xi,zn,je)}function Wn(){return xe()===127?Cn()?!0:Ha(P1):!1}function $r(){return rr(),!r.hasPrecedingLineBreak()&&q_()}function Ge(){const je=$e();return rr(),!r.hasPrecedingLineBreak()&&(xe()===42||dr())?po(O.createYieldExpression(Yu(42),ln(!0)),je):po(O.createYieldExpression(void 0,void 0),je)}function Br(je,Vt,zn,zr,xi){ce.assert(xe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const xo=O.createParameterDeclaration(void 0,void 0,Vt,void 0,void 0,void 0);po(xo,Vt.pos);const Wc=nm([xo],xo.pos,xo.end),hu=Kh(39),_c=ze(!!xi,zn),Sl=O.createArrowFunction(xi,void 0,Wc,void 0,hu,_c);return Ea(po(Sl,je),zr)}function Ei(je){const Vt=Ln();if(Vt!==0)return Vt===1?Io(!0,!0):mu(()=>yi(je))}function Ln(){return xe()===21||xe()===30||xe()===134?Ha(Sr):xe()===39?1:0}function Sr(){if(xe()===134&&(rr(),r.hasPrecedingLineBreak()||xe()!==21&&xe()!==30))return 0;const je=xe(),Vt=rr();if(je===21){if(Vt===22)switch(rr()){case 39:case 59:case 19:return 1;default:return 0}if(Vt===23||Vt===19)return 2;if(Vt===26)return 1;if(qg(Vt)&&Vt!==134&&Ha(Sv))return rr()===130?0:1;if(!q_()&&Vt!==110)return 0;switch(rr()){case 59:return 1;case 58:return rr(),xe()===59||xe()===28||xe()===64||xe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return ce.assert(je===30),!q_()&&xe()!==87?0:Ut===1?Ha(()=>{m_(87);const zr=rr();if(zr===96)switch(rr()){case 64:case 32:case 44:return!1;default:return!0}else if(zr===28||zr===64)return!0;return!1})?1:0:2}function yi(je){const Vt=r.getTokenStart();if(di!=null&&di.has(Vt))return;const zn=Io(!1,je);return zn||(di||(di=new Set)).add(Vt),zn}function go(je){if(xe()===134&&Ha(Ao)===1){const Vt=$e(),zn=Zt(),zr=yo(),xi=kt(0);return Br(Vt,xi,je,zn,zr)}}function Ao(){if(xe()===134){if(rr(),r.hasPrecedingLineBreak()||xe()===39)return 0;const je=kt(0);if(!r.hasPrecedingLineBreak()&&je.kind===80&&xe()===39)return 1}return 0}function Io(je,Vt){const zn=$e(),zr=Zt(),xi=yo(),xo=gt(xi,Lu)?2:0,Wc=F();let hu;if(Ma(21)){if(je)hu=et(xo,je);else{const mx=et(xo,je);if(!mx)return;hu=mx}if(!Ma(22)&&!je)return}else{if(!je)return;hu=jv()}const _c=xe()===59,Sl=we(59,!1);if(Sl&&!je&&e(Sl))return;let kf=Sl;for(;(kf==null?void 0:kf.kind)===196;)kf=kf.type;const Rp=kf&&OG(kf);if(!je&&xe()!==39&&(Rp||xe()!==19))return;const hn=xe(),v_=Kh(39),yh=hn===39||hn===19?ze(gt(xi,Lu),Vt):oh();if(!Vt&&_c&&xe()!==59)return;const fm=O.createArrowFunction(xi,Wc,hu,Sl,v_,yh);return Ea(po(fm,zn),zr)}function ze(je,Vt){if(xe()===19)return ah(je?2:0);if(xe()!==27&&xe()!==100&&xe()!==86&&fb()&&!Mr())return ah(16|(je?2:0));const zn=ha;ha=!1;const zr=je?Kn(()=>ln(Vt)):gn(()=>ln(Vt));return ha=zn,zr}function Ce(je,Vt,zn){const zr=Yu(58);if(!zr)return je;let xi;return po(O.createConditionalExpression(je,zr,sl(s,()=>ln(!1)),xi=Kh(59),wx(xi)?ln(zn):hy(80,!1,w._0_expected,Nd(59))),Vt)}function kt(je){const Vt=$e(),zn=Pc();return Mt(je,zn,Vt)}function qe(je){return je===103||je===165}function Mt(je,Vt,zn){for(;;){zo();const zr=TH(xe());if(!(xe()===43?zr>=je:zr>je)||xe()===103&&oi())break;if(xe()===130||xe()===152){if(r.hasPrecedingLineBreak())break;{const xo=xe();rr(),Vt=xo===152?mn(Vt,Eu()):Nn(Vt,Eu())}}else Vt=Jn(Vt,H0(),kt(zr),zn)}return Vt}function ge(){return oi()&&xe()===103?!1:TH(xe())>0}function mn(je,Vt){return po(O.createSatisfiesExpression(je,Vt),je.pos)}function Jn(je,Vt,zn,zr){return po(O.createBinaryExpression(je,Vt,zn),zr)}function Nn(je,Vt){return po(O.createAsExpression(je,Vt),je.pos)}function Lr(){const je=$e();return po(O.createPrefixUnaryExpression(xe(),Un(hc)),je)}function qi(){const je=$e();return po(O.createDeleteExpression(Un(hc)),je)}function vo(){const je=$e();return po(O.createTypeOfExpression(Un(hc)),je)}function Ro(){const je=$e();return po(O.createVoidExpression(Un(hc)),je)}function Ts(){return xe()===135?es()?!0:Ha(P1):!1}function Cc(){const je=$e();return po(O.createAwaitExpression(Un(hc)),je)}function Pc(){if(bl()){const zn=$e(),zr=Tc();return xe()===43?Mt(TH(xe()),zr,zn):zr}const je=xe(),Vt=hc();if(xe()===43){const zn=ep(pn,Vt.pos),{end:zr}=Vt;Vt.kind===216?We(zn,zr,w.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(ce.assert(Nde(je)),We(zn,zr,w.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,Nd(je)))}return Vt}function hc(){switch(xe()){case 40:case 41:case 55:case 54:return Lr();case 91:return qi();case 114:return vo();case 116:return Ro();case 30:return Ut===1?G_(!0,void 0,void 0,!0):oy();case 135:if(Ts())return Cc();default:return Tc()}}function bl(){switch(xe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ut!==1)return!1;default:return!0}}function Tc(){if(xe()===46||xe()===47){const Vt=$e();return po(O.createPrefixUnaryExpression(xe(),Un(Tf)),Vt)}else if(Ut===1&&xe()===30&&Ha(Ev))return G_(!0);const je=Tf();if(ce.assert(FE(je)),(xe()===46||xe()===47)&&!r.hasPrecedingLineBreak()){const Vt=xe();return rr(),po(O.createPostfixUnaryExpression(je,Vt),je.pos)}return je}function Tf(){const je=$e();let Vt;return xe()===102?Ha(It)?(on|=4194304,Vt=H0()):Ha(Yt)?(rr(),rr(),Vt=po(O.createMetaProperty(102,yy()),je),on|=8388608):Vt=ma():Vt=xe()===108?Bl():ma(),va(je,Vt)}function ma(){const je=$e(),Vt=fe();return Qi(je,Vt,!0)}function Bl(){const je=$e();let Vt=H0();if(xe()===30){const zn=$e(),zr=mu(Nm);zr!==void 0&&(We(zn,$e(),w.super_may_not_use_type_arguments),Pm()||(Vt=O.createExpressionWithTypeArguments(Vt,zr)))}return xe()===21||xe()===25||xe()===23?Vt:(Kh(25,w.super_must_be_followed_by_an_argument_list_or_member_access),po(pt(Vt,MA(!0,!0)),je))}function G_(je,Vt,zn,zr=!1){const xi=$e(),xo=Cp(je);let Wc;if(xo.kind===286){let hu=Ym(xo),_c;const Sl=hu[hu.length-1];if((Sl==null?void 0:Sl.kind)===284&&!E6(Sl.openingElement.tagName,Sl.closingElement.tagName)&&E6(xo.tagName,Sl.closingElement.tagName)){const kf=Sl.children.end,Rp=po(O.createJsxElement(Sl.openingElement,Sl.children,po(O.createJsxClosingElement(po(de(""),kf,kf)),kf,kf)),Sl.openingElement.pos,kf);hu=nm([...hu.slice(0,hu.length-1),Rp],hu.pos,kf),_c=Sl.closingElement}else _c=km(xo,je),E6(xo.tagName,_c.tagName)||(zn&&rD(zn)&&E6(_c.tagName,zn.tagName)?Re(xo.tagName,w.JSX_element_0_has_no_corresponding_closing_tag,die(pn,xo.tagName)):Re(_c.tagName,w.Expected_corresponding_JSX_closing_tag_for_0,die(pn,xo.tagName)));Wc=po(O.createJsxElement(xo,hu,_c),xi)}else xo.kind===289?Wc=po(O.createJsxFragment(xo,Ym(xo),M_(je)),xi):(ce.assert(xo.kind===285),Wc=xo);if(!zr&&je&&xe()===30){const hu=typeof Vt>"u"?Wc.pos:Vt,_c=mu(()=>G_(!0,hu));if(_c){const Sl=hy(28,!1);return f3(Sl,_c.pos,0),We(ep(pn,hu),_c.end,w.JSX_expressions_must_have_one_parent_element),po(O.createBinaryExpression(Wc,Sl,_c),xi)}}return Wc}function u_(){const je=$e(),Vt=O.createJsxText(r.getTokenValue(),ei===13);return ei=r.scanJsxToken(),po(Vt,je)}function xa(je,Vt){switch(Vt){case 1:if(zx(je))Re(je,w.JSX_fragment_has_no_corresponding_closing_tag);else{const zn=je.tagName,zr=Math.min(ep(pn,zn.pos),zn.end);We(zr,zn.end,w.JSX_element_0_has_no_corresponding_closing_tag,die(pn,je.tagName))}return;case 31:case 7:return;case 12:case 13:return u_();case 19:return Wy(!1);case 30:return G_(!1,void 0,je);default:return ce.assertNever(Vt)}}function Ym(je){const Vt=[],zn=$e(),zr=ho;for(ho|=16384;;){const xi=xa(je,ei=r.reScanJsxToken());if(!xi||(Vt.push(xi),rD(je)&&(xi==null?void 0:xi.kind)===284&&!E6(xi.openingElement.tagName,xi.closingElement.tagName)&&E6(je.tagName,xi.closingElement.tagName)))break}return ho=zr,nm(Vt,zn)}function mf(){const je=$e();return po(O.createJsxAttributes(K_(13,Og)),je)}function Cp(je){const Vt=$e();if(Ma(30),xe()===32)return qd(),po(O.createJsxOpeningFragment(),Vt);const zn=Yg(),zr=Nc&524288?void 0:ft(),xi=mf();let xo;return xe()===32?(qd(),xo=O.createJsxOpeningElement(zn,zr,xi)):(Ma(44),Ma(32,void 0,!1)&&(je?rr():qd()),xo=O.createJsxSelfClosingElement(zn,zr,xi)),po(xo,Vt)}function Yg(){const je=$e(),Vt=xg();if(dI(Vt))return Vt;let zn=Vt;for(;m_(25);)zn=po(pt(zn,MA(!0,!1)),je);return zn}function xg(){const je=$e();ou();const Vt=xe()===110,zn=yy();return m_(59)?(ou(),po(O.createJsxNamespacedName(zn,yy()),je)):Vt?po(O.createToken(110),je):zn}function Wy(je){const Vt=$e();if(!Ma(19))return;let zn,zr;return xe()!==20&&(zn=Yu(26),zr=Pr()),je?Ma(20):Ma(20,void 0,!1)&&qd(),po(O.createJsxExpression(zn,zr),Vt)}function Og(){if(xe()===19)return og();const je=$e();return po(O.createJsxAttribute(R_(),pl()),je)}function pl(){if(xe()===64){if(z_()===11)return $l();if(xe()===19)return Wy(!0);if(xe()===30)return G_(!0);Ui(w.or_JSX_element_expected)}}function R_(){const je=$e();ou();const Vt=yy();return m_(59)?(ou(),po(O.createJsxNamespacedName(Vt,yy()),je)):Vt}function og(){const je=$e();Ma(19),Ma(26);const Vt=Pr();return Ma(20),po(O.createJsxSpreadAttribute(Vt),je)}function km(je,Vt){const zn=$e();Ma(31);const zr=Yg();return Ma(32,void 0,!1)&&(Vt||!E6(je.tagName,zr)?rr():qd()),po(O.createJsxClosingElement(zr),zn)}function M_(je){const Vt=$e();return Ma(31),Ma(32,w.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(je?rr():qd()),po(O.createJsxJsxClosingFragment(),Vt)}function oy(){ce.assert(Ut!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const je=$e();Ma(30);const Vt=Eu();Ma(32);const zn=hc();return po(O.createTypeAssertion(Vt,zn),je)}function bE(){return rr(),Cf(xe())||xe()===23||Pm()}function hh(){return xe()===29&&Ha(bE)}function qo(je){if(je.flags&64)return!0;if(cC(je)){let Vt=je.expression;for(;cC(Vt)&&!(Vt.flags&64);)Vt=Vt.expression;if(Vt.flags&64){for(;cC(je);)je.flags|=64,je=je.expression;return!0}}return!1}function d_(je,Vt,zn){const zr=MA(!0,!0),xi=zn||qo(Vt),xo=xi?Le(Vt,zn,zr):pt(Vt,zr);if(xi&&Gu(xo.name)&&Re(xo.name,w.An_optional_chain_cannot_contain_private_identifiers),WT(Vt)&&Vt.typeArguments){const Wc=Vt.typeArguments.pos-1,hu=ep(pn,Vt.typeArguments.end)+1;We(Wc,hu,w.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return po(xo,je)}function Ka(je,Vt,zn){let zr;if(xe()===24)zr=hy(80,!0,w.An_element_access_expression_should_take_an_argument);else{const xo=er(Pr);Qv(xo)&&(xo.text=fS(xo.text)),zr=xo}Ma(24);const xi=zn||qo(Vt)?ke(Vt,zn,zr):ht(Vt,zr);return po(xi,je)}function Qi(je,Vt,zn){for(;;){let zr,xi=!1;if(zn&&hh()?(zr=Kh(29),xi=Cf(xe())):xi=m_(25),xi){Vt=d_(je,Vt,zr);continue}if((zr||!co())&&m_(23)){Vt=Ka(je,Vt,zr);continue}if(Pm()){Vt=!zr&&Vt.kind===233?Ag(je,Vt.expression,zr,Vt.typeArguments):Ag(je,Vt,zr,void 0);continue}if(!zr){if(xe()===54&&!r.hasPrecedingLineBreak()){rr(),Vt=po(O.createNonNullExpression(Vt),je);continue}const xo=mu(Nm);if(xo){Vt=po(O.createExpressionWithTypeArguments(Vt,xo),je);continue}}return Vt}}function Pm(){return xe()===15||xe()===16}function Ag(je,Vt,zn,zr){const xi=O.createTaggedTemplateExpression(Vt,zr,xe()===15?(Qa(!0),$l()):DI(!0));return(zn||Vt.flags&64)&&(xi.flags|=64),xi.questionDotToken=zn,po(xi,je)}function va(je,Vt){for(;;){Vt=Qi(je,Vt,!0);let zn;const zr=Yu(29);if(zr&&(zn=mu(Nm),Pm())){Vt=Ag(je,Vt,zr,zn);continue}if(zn||xe()===21){!zr&&Vt.kind===233&&(zn=Vt.typeArguments,Vt=Vt.expression);const xi=x0(),xo=zr||qo(Vt)?Dt(Vt,zr,zn,xi):_t(Vt,zn,xi);Vt=po(xo,je);continue}if(zr){const xi=hy(80,!1,w.Identifier_expected);Vt=po(Le(Vt,zr,xi),je)}break}return Vt}function x0(){Ma(21);const je=Wh(11,$o);return Ma(22),je}function Nm(){if(Nc&524288||Ks()!==30)return;rr();const je=Wh(20,Eu);if(zo()===32)return rr(),je&&Md()?je:void 0}function Md(){switch(xe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return r.hasPrecedingLineBreak()||ge()||!dr()}function fe(){switch(xe()){case 15:r.getTokenFlags()&26656&&Qa(!1);case 9:case 10:case 11:return $l();case 110:case 108:case 106:case 112:case 97:return H0();case 21:return _n();case 23:return Sc();case 19:return Fs();case 134:if(!Ha(Bh))break;return Tl();case 60:return Oo();case 86:return ca();case 100:return Tl();case 105:return Gd();case 44:case 69:if(Ca()===14)return $l();break;case 16:return DI(!1);case 81:return Zc()}return oh(w.Expression_expected)}function _n(){const je=$e(),Vt=Zt();Ma(21);const zn=er(Pr);return Ma(22),Ea(po(it(zn),je),Vt)}function Xn(){const je=$e();Ma(26);const Vt=ln(!0);return po(O.createSpreadElement(Vt),je)}function _i(){return xe()===26?Xn():xe()===28?po(O.createOmittedExpression(),$e()):ln(!0)}function $o(){return sl(s,_i)}function Sc(){const je=$e(),Vt=r.getTokenStart(),zn=Ma(23),zr=r.hasPrecedingLineBreak(),xi=Wh(15,_i);return zv(23,24,zn,Vt),po(Be(xi,zr),je)}function xs(){const je=$e(),Vt=Zt();if(Yu(26)){const kf=ln(!0);return Ea(po(O.createSpreadAssignment(kf),je),Vt)}const zn=Li(!0);if(ka(139))return eg(je,Vt,zn,177,0);if(ka(153))return eg(je,Vt,zn,178,0);const zr=Yu(42),xi=q_(),xo=hi(),Wc=Yu(58),hu=Yu(54);if(zr||xe()===21||xe()===30)return Vv(je,Vt,zn,zr,xo,Wc,hu);let _c;if(xi&&xe()!==59){const kf=Yu(64),Rp=kf?er(()=>ln(!0)):void 0;_c=O.createShorthandPropertyAssignment(xo,Rp),_c.equalsToken=kf}else{Ma(59);const kf=er(()=>ln(!0));_c=O.createPropertyAssignment(xo,kf)}return _c.modifiers=zn,_c.questionToken=Wc,_c.exclamationToken=hu,Ea(po(_c,je),Vt)}function Fs(){const je=$e(),Vt=r.getTokenStart(),zn=Ma(19),zr=r.hasPrecedingLineBreak(),xi=Wh(12,xs,!0);return zv(19,20,zn,Vt),po(Ve(xi,zr),je)}function Tl(){const je=co();To(!1);const Vt=$e(),zn=Zt(),zr=Li(!1);Ma(100);const xi=Yu(42),xo=xi?1:0,Wc=gt(zr,Lu)?2:0,hu=xo&&Wc?qr(fc):xo?_o(fc):Wc?Kn(fc):fc(),_c=F(),Sl=Pe(xo|Wc),kf=we(59,!1),Rp=ah(xo|Wc);To(je);const hn=O.createFunctionExpression(zr,xi,hu,_c,Sl,kf,Rp);return Ea(po(hn,Vt),zn)}function fc(){return x_()?vE():void 0}function Gd(){const je=$e();if(Ma(105),m_(25)){const xo=yy();return po(O.createMetaProperty(105,xo),je)}const Vt=$e();let zn=Qi(Vt,fe(),!1),zr;zn.kind===233&&(zr=zn.typeArguments,zn=zn.expression),xe()===29&&Ui(w.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,die(pn,zn));const xi=xe()===21?x0():void 0;return po(Ft(zn,zr,xi),je)}function ag(je,Vt){const zn=$e(),zr=Zt(),xi=r.getTokenStart(),xo=Ma(19,Vt);if(xo||je){const Wc=r.hasPrecedingLineBreak(),hu=K_(1,nt);zv(19,20,xo,xi);const _c=Ea(po(Ye(hu,Wc),zn),zr);return xe()===64&&(Ui(w.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),rr()),_c}else{const Wc=jv();return Ea(po(Ye(Wc,void 0),zn),zr)}}function ah(je,Vt){const zn=Cn();Lo(!!(je&1));const zr=es();Aa(!!(je&2));const xi=ha;ha=!1;const xo=co();xo&&To(!1);const Wc=ag(!!(je&16),Vt);return xo&&To(!0),ha=xi,Lo(zn),Aa(zr),Wc}function bm(){const je=$e(),Vt=Zt();return Ma(27),Ea(po(O.createEmptyStatement(),je),Vt)}function ay(){const je=$e(),Vt=Zt();Ma(101);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=nt(),Wc=m_(93)?nt():void 0;return Ea(po(zt(xi,xo,Wc),je),Vt)}function yp(){const je=$e(),Vt=Zt();Ma(92);const zn=nt();Ma(117);const zr=r.getTokenStart(),xi=Ma(21),xo=er(Pr);return zv(21,22,xi,zr),m_(27),Ea(po(O.createDoStatement(zn,xo),je),Vt)}function Cg(){const je=$e(),Vt=Zt();Ma(117);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=nt();return Ea(po(Wt(xi,xo),je),Vt)}function wp(){const je=$e(),Vt=Zt();Ma(99);const zn=Yu(135);Ma(21);let zr;xe()!==27&&(xe()===115||xe()===121||xe()===87||xe()===160&&Ha($0)||xe()===135&&Ha(q0)?zr=by(!0):zr=Jr(Pr));let xi;if(zn?Ma(165):m_(165)){const xo=er(()=>ln(!0));Ma(22),xi=Mn(zn,zr,xo,nt())}else if(m_(103)){const xo=er(Pr);Ma(22),xi=O.createForInStatement(zr,xo,nt())}else{Ma(27);const xo=xe()!==27&&xe()!==22?er(Pr):void 0;Ma(27);const Wc=xe()!==22?er(Pr):void 0;Ma(22),xi=tt(zr,xo,Wc,nt())}return Ea(po(xi,je),Vt)}function Xp(je){const Vt=$e(),zn=Zt();Ma(je===252?83:88);const zr=rd()?void 0:oh();lm();const xi=je===252?O.createBreakStatement(zr):O.createContinueStatement(zr);return Ea(po(xi,Vt),zn)}function r1(){const je=$e(),Vt=Zt();Ma(107);const zn=rd()?void 0:er(Pr);return lm(),Ea(po(O.createReturnStatement(zn),je),Vt)}function sg(){const je=$e(),Vt=Zt();Ma(118);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=vc(67108864,nt);return Ea(po(O.createWithStatement(xi,xo),je),Vt)}function Jt(){const je=$e(),Vt=Zt();Ma(84);const zn=er(Pr);Ma(59);const zr=K_(3,nt);return Ea(po(O.createCaseClause(zn,zr),je),Vt)}function ci(){const je=$e();Ma(90),Ma(59);const Vt=K_(3,nt);return po(O.createDefaultClause(Vt),je)}function da(){return xe()===84?Jt():ci()}function Hu(){const je=$e();Ma(19);const Vt=K_(2,da);return Ma(20),po(O.createCaseBlock(Vt),je)}function t_(){const je=$e(),Vt=Zt();Ma(109),Ma(21);const zn=er(Pr);Ma(22);const zr=Hu();return Ea(po(O.createSwitchStatement(zn,zr),je),Vt)}function A_(){const je=$e(),Vt=Zt();Ma(111);let zn=r.hasPrecedingLineBreak()?void 0:er(Pr);return zn===void 0&&(so++,zn=po(de(""),$e())),Mg()||c_(zn),Ea(po(O.createThrowStatement(zn),je),Vt)}function gd(){const je=$e(),Vt=Zt();Ma(113);const zn=ag(!1),zr=xe()===85?Dg():void 0;let xi;return(!zr||xe()===98)&&(Ma(98,w.catch_or_finally_expected),xi=ag(!1)),Ea(po(O.createTryStatement(zn,zr,xi),je),Vt)}function Dg(){const je=$e();Ma(85);let Vt;m_(21)?(Vt=sv(),Ma(22)):Vt=void 0;const zn=ag(!1);return po(O.createCatchClause(Vt,zn),je)}function um(){const je=$e(),Vt=Zt();return Ma(89),lm(),Ea(po(O.createDebuggerStatement(),je),Vt)}function Ig(){const je=$e();let Vt=Zt(),zn;const zr=xe()===21,xi=er(Pr);return An(xi)&&m_(59)?zn=O.createLabeledStatement(xi,nt()):(Mg()||c_(xi),zn=lt(xi),zr&&(Vt=!1)),Ea(po(zn,je),Vt)}function P_(){return rr(),Cf(xe())&&!r.hasPrecedingLineBreak()}function Qm(){return rr(),xe()===86&&!r.hasPrecedingLineBreak()}function Bh(){return rr(),xe()===100&&!r.hasPrecedingLineBreak()}function P1(){return rr(),(Cf(xe())||xe()===9||xe()===10||xe()===11)&&!r.hasPrecedingLineBreak()}function VT(){for(;;)switch(xe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return t2();case 135:return i0();case 120:case 156:return $r();case 144:case 145:return sr();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const je=xe();if(rr(),r.hasPrecedingLineBreak())return!1;if(je===138&&xe()===156)return!0;continue;case 162:return rr(),xe()===19||xe()===80||xe()===95;case 102:return rr(),xe()===11||xe()===42||xe()===19||Cf(xe());case 95:let Vt=rr();if(Vt===156&&(Vt=Ha(rr)),Vt===64||Vt===42||Vt===19||Vt===90||Vt===130||Vt===60)return!0;continue;case 126:rr();continue;default:return!1}}function Zm(){return Ha(VT)}function fb(){switch(xe()){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 Zm()||Ha(Et);case 87:case 95:return Zm();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 Zm()||!Ha(P_);default:return dr()}}function FS(){return rr(),x_()||xe()===19||xe()===23}function dT(){return Ha(FS)}function $0(){return xv(!0)}function xv(je){return rr(),je&&xe()===165?!1:(x_()||xe()===19)&&!r.hasPrecedingLineBreak()}function t2(){return Ha(xv)}function q0(){return N1(!0)}function N1(je){return rr()===160?xv(je):!1}function i0(){return Ha(N1)}function nt(){switch(xe()){case 27:return bm();case 19:return ag(!1);case 115:return f_($e(),Zt(),void 0);case 121:if(dT())return f_($e(),Zt(),void 0);break;case 135:if(i0())return f_($e(),Zt(),void 0);break;case 160:if(t2())return f_($e(),Zt(),void 0);break;case 100:return zh($e(),Zt(),void 0);case 86:return Fc($e(),Zt(),void 0);case 101:return ay();case 92:return yp();case 117:return Cg();case 99:return wp();case 88:return Xp(251);case 83:return Xp(252);case 107:return r1();case 118:return sg();case 109:return t_();case 111:return A_();case 113:case 85:case 98:return gd();case 89:return um();case 60:return vi();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(Zm())return vi();break}return Ig()}function pr(je){return je.kind===138}function vi(){const je=$e(),Vt=Zt(),zn=Li(!0);if(gt(zn,pr)){const xi=Di(je);if(xi)return xi;for(const xo of zn)xo.flags|=33554432;return vc(33554432,()=>Ee(je,Vt,zn))}else return Ee(je,Vt,zn)}function Di(je){return vc(33554432,()=>{const Vt=Fy(ho,je);if(Vt)return bt(Vt)})}function Ee(je,Vt,zn){switch(xe()){case 115:case 121:case 87:case 160:case 135:return f_(je,Vt,zn);case 100:return zh(je,Vt,zn);case 86:return Fc(je,Vt,zn);case 120:return Js(je,Vt,zn);case 156:return pu(je,Vt,zn);case 94:return ju(je,Vt,zn);case 162:case 144:case 145:return oa(je,Vt,zn);case 102:return BP(je,Vt,zn);case 95:switch(rr(),xe()){case 90:case 64:return wm(je,Vt,zn);case 130:return WP(je,Vt,zn);default:return bC(je,Vt,zn)}default:if(zn){const zr=hy(282,!0,w.Declaration_expected);return u3(zr,je),zr.modifiers=zn,zr}return}}function Gt(){return rr()===11}function sr(){return rr(),!r.hasPrecedingLineBreak()&&(q_()||xe()===11)}function Ii(je,Vt){if(xe()!==19){if(je&4){dt();return}if(rd()){lm();return}}return ah(je,Vt)}function Ja(){const je=$e();if(xe()===28)return po(O.createOmittedExpression(),je);const Vt=Yu(26),zn=Y_(),zr=Bt();return po(O.createBindingElement(Vt,void 0,zn,zr),je)}function wa(){const je=$e(),Vt=Yu(26),zn=x_();let zr=hi(),xi;zn&&xe()!==59?(xi=zr,zr=void 0):(Ma(59),xi=Y_());const xo=Bt();return po(O.createBindingElement(Vt,zr,xi,xo),je)}function wi(){const je=$e();Ma(19);const Vt=er(()=>Wh(9,wa));return Ma(20),po(O.createObjectBindingPattern(Vt),je)}function Vl(){const je=$e();Ma(23);const Vt=er(()=>Wh(10,Ja));return Ma(24),po(O.createArrayBindingPattern(Vt),je)}function Uf(){return xe()===19||xe()===23||xe()===81||x_()}function Y_(je){return xe()===23?Vl():xe()===19?wi():vE(je)}function Fg(){return sv(!0)}function sv(je){const Vt=$e(),zn=Zt(),zr=Y_(w.Private_identifiers_are_not_allowed_in_variable_declarations);let xi;je&&zr.kind===80&&xe()===54&&!r.hasPrecedingLineBreak()&&(xi=H0());const xo=He(),Wc=qe(xe())?void 0:Bt(),hu=kn(zr,xi,xo,Wc);return Ea(po(hu,Vt),zn)}function by(je){const Vt=$e();let zn=0;switch(xe()){case 115:break;case 121:zn|=1;break;case 87:zn|=2;break;case 160:zn|=4;break;case 135:ce.assert(i0()),zn|=6,rr();break;default:ce.fail()}rr();let zr;if(xe()===165&&Ha(_b))zr=jv();else{const xi=oi();Xu(je),zr=Wh(8,je?sv:Fg),Xu(xi)}return po(cr(zr,zn),Vt)}function _b(){return Sv()&&rr()===22}function f_(je,Vt,zn){const zr=by(!1);lm();const xi=ut(zn,zr);return Ea(po(xi,je),Vt)}function zh(je,Vt,zn){const zr=es(),xi=dk(zn);Ma(100);const xo=Yu(42),Wc=xi&1024?fc():vE(),hu=xo?1:0,_c=xi&512?2:0,Sl=F();xi&1&&Aa(!0);const kf=Pe(hu|_c),Rp=we(59,!1),hn=Ii(hu|_c,w.or_expected);Aa(zr);const v_=O.createFunctionDeclaration(zn,xo,Wc,Sl,kf,Rp,hn);return Ea(po(v_,je),Vt)}function i1(){if(xe()===137)return Ma(137);if(xe()===11&&Ha(rr)===21)return mu(()=>{const je=$l();return je.text==="constructor"?je:void 0})}function n2(je,Vt,zn){return mu(()=>{if(i1()){const zr=F(),xi=Pe(0),xo=we(59,!1),Wc=Ii(0,w.or_expected),hu=O.createConstructorDeclaration(zn,xi,Wc);return hu.typeParameters=zr,hu.type=xo,Ea(po(hu,je),Vt)}})}function Vv(je,Vt,zn,zr,xi,xo,Wc,hu){const _c=zr?1:0,Sl=gt(zn,Lu)?2:0,kf=F(),Rp=Pe(_c|Sl),hn=we(59,!1),v_=Ii(_c|Sl,hu),yh=O.createMethodDeclaration(zn,zr,xi,xo,kf,Rp,hn,v_);return yh.exclamationToken=Wc,Ea(po(yh,je),Vt)}function su(je,Vt,zn,zr,xi){const xo=!xi&&!r.hasPrecedingLineBreak()?Yu(54):void 0,Wc=He(),hu=sl(90112,Bt);Oh(zr,Wc,hu);const _c=O.createPropertyDeclaration(zn,zr,xi||xo,Wc,hu);return Ea(po(_c,je),Vt)}function gC(je,Vt,zn){const zr=Yu(42),xi=hi(),xo=Yu(58);return zr||xe()===21||xe()===30?Vv(je,Vt,zn,zr,xi,xo,void 0,w.or_expected):su(je,Vt,zn,xi,xo)}function eg(je,Vt,zn,zr,xi){const xo=hi(),Wc=F(),hu=Pe(0),_c=we(59,!1),Sl=Ii(xi),kf=zr===177?O.createGetAccessorDeclaration(zn,xo,hu,_c,Sl):O.createSetAccessorDeclaration(zn,xo,hu,Sl);return kf.typeParameters=Wc,Ep(kf)&&(kf.type=_c),Ea(po(kf,je),Vt)}function Uv(){let je;if(xe()===60)return!0;for(;qg(xe());){if(je=xe(),F_(je))return!0;rr()}if(xe()===42||(_e()&&(je=xe(),rr()),xe()===23))return!0;if(je!==void 0){if(!sE(je)||je===153||je===139)return!0;switch(xe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return rd()}}return!1}function Rk(je,Vt,zn){Kh(126);const zr=Lb(),xi=Ea(po(O.createClassStaticBlockDeclaration(zr),je),Vt);return xi.modifiers=zn,xi}function Lb(){const je=Cn(),Vt=es();Lo(!1),Aa(!0);const zn=ag(!1);return Lo(je),Aa(Vt),zn}function fn(){if(es()&&xe()===135){const je=$e(),Vt=oh(w.Expression_expected);rr();const zn=Qi(je,Vt,!0);return va(je,zn)}return Tf()}function $n(){const je=$e();if(!m_(60))return;const Vt=xt(fn);return po(O.createDecorator(Vt),je)}function ri(je,Vt,zn){const zr=$e(),xi=xe();if(xe()===87&&Vt){if(!mu(bc))return}else{if(zn&&xe()===126&&Ha(Kx))return;if(je&&xe()===126)return;if(!Lg())return}return po(Ne(xi),zr)}function Li(je,Vt,zn){const zr=$e();let xi,xo,Wc,hu=!1,_c=!1,Sl=!1;if(je&&xe()===60)for(;xo=$n();)xi=ur(xi,xo);for(;Wc=ri(hu,Vt,zn);)Wc.kind===126&&(hu=!0),xi=ur(xi,Wc),_c=!0;if(_c&&je&&xe()===60)for(;xo=$n();)xi=ur(xi,xo),Sl=!0;if(Sl)for(;Wc=ri(hu,Vt,zn);)Wc.kind===126&&(hu=!0),xi=ur(xi,Wc);return xi&&nm(xi,zr)}function yo(){let je;if(xe()===134){const Vt=$e();rr();const zn=po(Ne(134),Vt);je=nm([zn],Vt)}return je}function jo(){const je=$e(),Vt=Zt();if(xe()===27)return rr(),Ea(po(O.createSemicolonClassElement(),je),Vt);const zn=Li(!0,!0,!0);if(xe()===126&&Ha(Kx))return Rk(je,Vt,zn);if(ka(139))return eg(je,Vt,zn,177,0);if(ka(153))return eg(je,Vt,zn,178,0);if(xe()===137||xe()===11){const zr=n2(je,Vt,zn);if(zr)return zr}if(ct())return Lt(je,Vt,zn);if(Cf(xe())||xe()===11||xe()===9||xe()===42||xe()===23)if(gt(zn,pr)){for(const xi of zn)xi.flags|=33554432;return vc(33554432,()=>gC(je,Vt,zn))}else return gC(je,Vt,zn);if(zn){const zr=hy(80,!0,w.Declaration_expected);return su(je,Vt,zn,zr,void 0)}return ce.fail("Should not have attempted to parse class member declaration.")}function Oo(){const je=$e(),Vt=Zt(),zn=Li(!0);if(xe()===86)return ks(je,Vt,zn,231);const zr=hy(282,!0,w.Expression_expected);return u3(zr,je),zr.modifiers=zn,zr}function ca(){return ks($e(),Zt(),void 0,231)}function Fc(je,Vt,zn){return ks(je,Vt,zn,263)}function ks(je,Vt,zn,zr){const xi=es();Ma(86);const xo=Xs(),Wc=F();gt(zn,fW)&&Aa(!0);const hu=wu();let _c;Ma(19)?(_c=oo(),Ma(20)):_c=jv(),Aa(xi);const Sl=zr===263?O.createClassDeclaration(zn,xo,Wc,hu,_c):O.createClassExpression(zn,xo,Wc,hu,_c);return Ea(po(Sl,je),Vt)}function Xs(){return x_()&&!Vs()?GT(x_()):void 0}function Vs(){return xe()===119&&Ha(jT)}function wu(){if(br())return K_(22,Yp)}function Yp(){const je=$e(),Vt=xe();ce.assert(Vt===96||Vt===119),rr();const zn=Wh(7,Q);return po(O.createHeritageClause(Vt,zn),je)}function Q(){const je=$e(),Vt=Tf();if(Vt.kind===233)return Vt;const zn=ft();return po(O.createExpressionWithTypeArguments(Vt,zn),je)}function ft(){return xe()===30?ub(20,Eu,30,32):void 0}function br(){return xe()===96||xe()===119}function oo(){return K_(5,jo)}function Js(je,Vt,zn){Ma(120);const zr=oh(),xi=F(),xo=wu(),Wc=Qt(),hu=O.createInterfaceDeclaration(zn,zr,xi,xo,Wc);return Ea(po(hu,je),Vt)}function pu(je,Vt,zn){Ma(156),r.hasPrecedingLineBreak()&&Ui(w.Line_break_not_permitted_here);const zr=oh(),xi=F();Ma(64);const xo=xe()===141&&mu(Vr)||Eu();lm();const Wc=O.createTypeAliasDeclaration(zn,zr,xi,xo);return Ea(po(Wc,je),Vt)}function fl(){const je=$e(),Vt=Zt(),zn=hi(),zr=er(Bt);return Ea(po(O.createEnumMember(zn,zr),je),Vt)}function ju(je,Vt,zn){Ma(94);const zr=oh();let xi;Ma(19)?(xi=mt(()=>Wh(6,fl)),Ma(20)):xi=jv();const xo=O.createEnumDeclaration(zn,zr,xi);return Ea(po(xo,je),Vt)}function L_(){const je=$e();let Vt;return Ma(19)?(Vt=K_(1,nt),Ma(20)):Vt=jv(),po(O.createModuleBlock(Vt),je)}function Cl(je,Vt,zn,zr){const xi=zr&32,xo=oh(),Wc=m_(25)?Cl($e(),!1,void 0,8|xi):L_(),hu=O.createModuleDeclaration(zn,xo,Wc,zr);return Ea(po(hu,je),Vt)}function o0(je,Vt,zn){let zr=0,xi;xe()===162?(xi=oh(),zr|=2048):(xi=$l(),xi.text=fS(xi.text));let xo;xe()===19?xo=L_():lm();const Wc=O.createModuleDeclaration(zn,xi,xo,zr);return Ea(po(Wc,je),Vt)}function oa(je,Vt,zn){let zr=0;if(xe()===162)return o0(je,Vt,zn);if(m_(145))zr|=32;else if(Ma(144),xe()===11)return o0(je,Vt,zn);return Cl(je,Vt,zn,zr)}function dD(){return xe()===149&&Ha(a0)}function a0(){return rr()===21}function Kx(){return rr()===19}function hC(){return rr()===44}function WP(je,Vt,zn){Ma(130),Ma(145);const zr=oh();lm();const xi=O.createNamespaceExportDeclaration(zr);return xi.modifiers=zn,Ea(po(xi,je),Vt)}function BP(je,Vt,zn){Ma(102);const zr=r.getTokenFullStart();let xi;q_()&&(xi=oh());let xo=!1;if(xe()!==161&&(xi==null?void 0:xi.escapedText)==="type"&&(q_()||pD())&&(xo=!0,xi=q_()?oh():void 0),xi&&!yC())return vC(je,Vt,zn,xi,xo);let Wc;(xi||xe()===42||xe()===19)&&(Wc=zP(xi,zr,xo),Ma(161));const hu=WS();let _c;xe()===132&&!r.hasPrecedingLineBreak()&&(_c=OA()),lm();const Sl=O.createImportDeclaration(zn,Wc,hu,_c);return Ea(po(Sl,je),Vt)}function LA(){const je=$e(),Vt=Cf(xe())?yy():Ap(11);Ma(59);const zn=ln(!0);return po(O.createAssertEntry(Vt,zn),je)}function OA(je){const Vt=$e();je||Ma(132);const zn=r.getTokenStart();if(Ma(19)){const zr=r.hasPrecedingLineBreak(),xi=Wh(24,LA,!0);if(!Ma(20)){const xo=Yf(In);xo&&xo.code===w._0_expected.code&&ml(xo,s6(un,zn,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return po(O.createAssertClause(xi,zr),Vt)}else{const zr=nm([],$e(),void 0,!1);return po(O.createAssertClause(zr,!1),Vt)}}function pD(){return xe()===42||xe()===19}function yC(){return xe()===28||xe()===161}function vC(je,Vt,zn,zr,xi){Ma(64);const xo=Xx();lm();const Wc=O.createImportEqualsDeclaration(zn,xi,zr,xo);return Ea(po(Wc,je),Vt)}function zP(je,Vt,zn){let zr;return(!je||m_(28))&&(zr=xe()===42?px():j_(275)),po(O.createImportClause(zn,je,zr),Vt)}function Xx(){return dD()?dx():E0(!1)}function dx(){const je=$e();Ma(149),Ma(21);const Vt=WS();return Ma(22),po(O.createExternalModuleReference(Vt),je)}function WS(){if(xe()===11){const je=$l();return je.text=fS(je.text),je}else return Pr()}function px(){const je=$e();Ma(42),Ma(130);const Vt=oh();return po(O.createNamespaceImport(Vt),je)}function j_(je){const Vt=$e(),zn=je===275?O.createNamedImports(ub(23,oO,19,20)):O.createNamedExports(ub(23,GP,19,20));return po(zn,Vt)}function GP(){const je=Zt();return Ea(dS(281),je)}function oO(){return dS(276)}function dS(je){const Vt=$e();let zn=sE(xe())&&!q_(),zr=r.getTokenStart(),xi=r.getTokenEnd(),xo=!1,Wc,hu=!0,_c=yy();if(_c.escapedText==="type")if(xe()===130){const Rp=yy();if(xe()===130){const hn=yy();Cf(xe())?(xo=!0,Wc=Rp,_c=kf(),hu=!1):(Wc=_c,_c=hn,hu=!1)}else Cf(xe())?(Wc=_c,hu=!1,_c=kf()):(xo=!0,_c=Rp)}else Cf(xe())&&(xo=!0,_c=kf());hu&&xe()===130&&(Wc=_c,Ma(130),_c=kf()),je===276&&zn&&We(zr,xi,w.Identifier_expected);const Sl=je===276?O.createImportSpecifier(xo,Wc,_c):O.createExportSpecifier(xo,Wc,_c);return po(Sl,Vt);function kf(){return zn=sE(xe())&&!q_(),zr=r.getTokenStart(),xi=r.getTokenEnd(),yy()}}function FA(je){return po(O.createNamespaceExport(yy()),je)}function bC(je,Vt,zn){const zr=es();Aa(!0);let xi,xo,Wc;const hu=m_(156),_c=$e();m_(42)?(m_(130)&&(xi=FA(_c)),Ma(161),xo=WS()):(xi=j_(279),(xe()===161||xe()===11&&!r.hasPrecedingLineBreak())&&(Ma(161),xo=WS())),xo&&xe()===132&&!r.hasPrecedingLineBreak()&&(Wc=OA()),lm(),Aa(zr);const Sl=O.createExportDeclaration(zn,hu,xi,xo,Wc);return Ea(po(Sl,je),Vt)}function wm(je,Vt,zn){const zr=es();Aa(!0);let xi;m_(64)?xi=!0:Ma(90);const xo=ln(!0);lm(),Aa(zr);const Wc=O.createExportAssignment(zn,xi,xo);return Ea(po(Wc,je),Vt)}let db;(je=>{je[je.SourceElements=0]="SourceElements",je[je.BlockStatements=1]="BlockStatements",je[je.SwitchClauses=2]="SwitchClauses",je[je.SwitchClauseStatements=3]="SwitchClauseStatements",je[je.TypeMembers=4]="TypeMembers",je[je.ClassMembers=5]="ClassMembers",je[je.EnumMembers=6]="EnumMembers",je[je.HeritageClauseElement=7]="HeritageClauseElement",je[je.VariableDeclarations=8]="VariableDeclarations",je[je.ObjectBindingElements=9]="ObjectBindingElements",je[je.ArrayBindingElements=10]="ArrayBindingElements",je[je.ArgumentExpressions=11]="ArgumentExpressions",je[je.ObjectLiteralMembers=12]="ObjectLiteralMembers",je[je.JsxAttributes=13]="JsxAttributes",je[je.JsxChildren=14]="JsxChildren",je[je.ArrayLiteralMembers=15]="ArrayLiteralMembers",je[je.Parameters=16]="Parameters",je[je.JSDocParameters=17]="JSDocParameters",je[je.RestProperties=18]="RestProperties",je[je.TypeParameters=19]="TypeParameters",je[je.TypeArguments=20]="TypeArguments",je[je.TupleElementTypes=21]="TupleElementTypes",je[je.HeritageClauses=22]="HeritageClauses",je[je.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",je[je.AssertEntries=24]="AssertEntries",je[je.JSDocComment=25]="JSDocComment",je[je.Count=26]="Count"})(db||(db={}));let o1;(je=>{je[je.False=0]="False",je[je.True=1]="True",je[je.Unknown=2]="Unknown"})(o1||(o1={}));let Q_;(je=>{function Vt(Sl,kf,Rp){Ku("file.js",Sl,99,void 0,1),r.setText(Sl,kf,Rp),ei=r.scan();const hn=zn(),v_=$a("file.js",99,1,!1,[],Ne(1),0,ku),yh=jN(In,v_);return gr&&(v_.jsDocDiagnostics=jN(gr,v_)),al(),hn?{jsDocTypeExpression:hn,diagnostics:yh}:void 0}je.parseJSDocTypeExpressionForTests=Vt;function zn(Sl){const kf=$e(),Rp=(Sl?m_:Ma)(19),hn=vc(16777216,E);(!Sl||Rp)&&jg(20);const v_=O.createJSDocTypeExpression(hn);return ta(v_),po(v_,kf)}je.parseJSDocTypeExpression=zn;function zr(){const Sl=$e(),kf=m_(19),Rp=$e();let hn=E0(!1);for(;xe()===81;)vs(),mi(),hn=po(O.createJSDocMemberName(hn,oh()),Rp);kf&&jg(20);const v_=O.createJSDocNameReference(hn);return ta(v_),po(v_,Sl)}je.parseJSDocNameReference=zr;function xi(Sl,kf,Rp){Ku("",Sl,99,void 0,1);const hn=vc(16777216,()=>_c(kf,Rp)),yh=jN(In,{languageVariant:0,text:Sl});return al(),hn?{jsDoc:hn,diagnostics:yh}:void 0}je.parseIsolatedJSDocComment=xi;function xo(Sl,kf,Rp){const hn=ei,v_=In.length,yh=ro,fm=vc(16777216,()=>_c(kf,Rp));return kl(fm,Sl),Nc&524288&&(gr||(gr=[]),gr.push(...In)),ei=hn,In.length=v_,ro=yh,fm}je.parseJSDocComment=xo;let Wc;(Sl=>{Sl[Sl.BeginningOfLine=0]="BeginningOfLine",Sl[Sl.SawAsterisk=1]="SawAsterisk",Sl[Sl.SavingComments=2]="SavingComments",Sl[Sl.SavingBackticks=3]="SavingBackticks"})(Wc||(Wc={}));let hu;(Sl=>{Sl[Sl.Property=1]="Property",Sl[Sl.Parameter=2]="Parameter",Sl[Sl.CallbackParameter=4]="CallbackParameter"})(hu||(hu={}));function _c(Sl=0,kf){const Rp=ho;ho|=1<<25;const hn=pn,v_=kf===void 0?hn.length:Sl+kf;if(kf=v_-Sl,ce.assert(Sl>=0),ce.assert(Sl<=v_),ce.assert(v_<=hn.length),!DA(hn,Sl))return;let yh,fm,mx,BS,N2,pS=[];const jP=[],tp=r.scanRange(Sl+3,kf-5,gx);return ho=Rp,tp;function gx(){let ko=1,ac,Ys=Sl-(hn.lastIndexOf(` + })(name => super[name], (name, value) => super[name] = value);`}}});function nS(t){return t.kind===9}function NG(t){return t.kind===10}function Wp(t){return t.kind===11}function S1(t){return t.kind===12}function OY(t){return t.kind===14}function Sd(t){return t.kind===15}function SR(t){return t.kind===16}function ope(t){return t.kind===17}function K7(t){return t.kind===18}function X7(t){return t.kind===26}function TEe(t){return t.kind===28}function woe(t){return t.kind===40}function FY(t){return t.kind===41}function WY(t){return t.kind===42}function PJ(t){return t.kind===54}function ER(t){return t.kind===58}function BY(t){return t.kind===59}function wG(t){return t.kind===29}function p6(t){return t.kind===39}function An(t){return t.kind===80}function Gu(t){return t.kind===81}function fW(t){return t.kind===95}function xn(t){return t.kind===90}function Lu(t){return t.kind===134}function _W(t){return t.kind===131}function zY(t){return t.kind===135}function NJ(t){return t.kind===148}function dW(t){return t.kind===126}function ape(t){return t.kind===128}function SEe(t){return t.kind===164}function pW(t){return t.kind===129}function wJ(t){return t.kind===108}function RJ(t){return t.kind===102}function EEe(t){return t.kind===84}function nT(t){return t.kind===166}function am(t){return t.kind===167}function Hh(t){return t.kind===168}function Pu(t){return t.kind===169}function Qf(t){return t.kind===170}function Np(t){return t.kind===171}function Os(t){return t.kind===172}function Jh(t){return t.kind===173}function em(t){return t.kind===174}function nu(t){return t.kind===175}function pg(t){return t.kind===176}function tm(t){return t.kind===177}function Ep(t){return t.kind===178}function Lh(t){return t.kind===179}function lE(t){return t.kind===180}function Xb(t){return t.kind===181}function Y7(t){return t.kind===182}function x2(t){return t.kind===183}function Z2(t){return t.kind===184}function mW(t){return t.kind===185}function uE(t){return t.kind===186}function e0(t){return t.kind===187}function RG(t){return t.kind===188}function m6(t){return t.kind===189}function rS(t){return t.kind===202}function GY(t){return t.kind===190}function gW(t){return t.kind===191}function g6(t){return t.kind===192}function MJ(t){return t.kind===193}function hW(t){return t.kind===194}function fI(t){return t.kind===195}function xR(t){return t.kind===196}function Q7(t){return t.kind===197}function KN(t){return t.kind===198}function XN(t){return t.kind===199}function yW(t){return t.kind===200}function _I(t){return t.kind===201}function Wx(t){return t.kind===205}function LJ(t){return t.kind===204}function S3(t){return t.kind===203}function E1(t){return t.kind===206}function vW(t){return t.kind===207}function ym(t){return t.kind===208}function Ch(t){return t.kind===209}function Wd(t){return t.kind===210}function sa(t){return t.kind===211}function Ed(t){return t.kind===212}function el(t){return t.kind===213}function Ac(t){return t.kind===214}function Hm(t){return t.kind===215}function xd(t){return t.kind===216}function sb(t){return t.kind===217}function Dm(t){return t.kind===218}function ph(t){return t.kind===219}function fE(t){return t.kind===220}function Jm(t){return t.kind===221}function $m(t){return t.kind===222}function h6(t){return t.kind===223}function yk(t){return t.kind===224}function Z7(t){return t.kind===225}function ys(t){return t.kind===226}function vk(t){return t.kind===227}function jY(t){return t.kind===228}function Ds(t){return t.kind===229}function ex(t){return t.kind===230}function B0(t){return t.kind===231}function t0(t){return t.kind===232}function WT(t){return t.kind===233}function v0(t){return t.kind===234}function cb(t){return t.kind===238}function cC(t){return t.kind===235}function eF(t){return t.kind===236}function C6e(t){return t.kind===237}function E3(t){return t.kind===360}function x3(t){return t.kind===361}function VY(t){return t.kind===239}function Roe(t){return t.kind===240}function E_(t){return t.kind===241}function Dh(t){return t.kind===243}function spe(t){return t.kind===242}function Ou(t){return t.kind===244}function Xg(t){return t.kind===245}function xEe(t){return t.kind===246}function kb(t){return t.kind===247}function bk(t){return t.kind===248}function cpe(t){return t.kind===249}function Moe(t){return t.kind===250}function bW(t){return t.kind===251}function lpe(t){return t.kind===252}function Bx(t){return t.kind===253}function D6e(t){return t.kind===254}function Loe(t){return t.kind===255}function iS(t){return t.kind===256}function upe(t){return t.kind===257}function AR(t){return t.kind===258}function tF(t){return t.kind===259}function ff(t){return t.kind===260}function My(t){return t.kind===261}function b0(t){return t.kind===262}function Kc(t){return t.kind===263}function Kp(t){return t.kind===264}function mg(t){return t.kind===265}function Ih(t){return t.kind===266}function xp(t){return t.kind===267}function z0(t){return t.kind===268}function xP(t){return t.kind===269}function dy(t){return t.kind===270}function kh(t){return t.kind===271}function Fv(t){return t.kind===272}function lC(t){return t.kind===273}function Yb(t){return t.kind===302}function n0(t){return t.kind===300}function Tk(t){return t.kind===301}function YL(t){return t.kind===274}function AP(t){return t.kind===280}function y6(t){return t.kind===275}function oS(t){return t.kind===276}function Ly(t){return t.kind===277}function mh(t){return t.kind===278}function G0(t){return t.kind===279}function Oy(t){return t.kind===281}function qE(t){return t.kind===282}function py(t){return t.kind===359}function ry(t){return t.kind===362}function j0(t){return t.kind===283}function my(t){return t.kind===284}function TW(t){return t.kind===285}function rD(t){return t.kind===286}function Sk(t){return t.kind===287}function KE(t){return t.kind===288}function zx(t){return t.kind===289}function nF(t){return t.kind===290}function Pb(t){return t.kind===291}function iD(t){return t.kind===292}function Ek(t){return t.kind===293}function v6(t){return t.kind===294}function dI(t){return t.kind===295}function tx(t){return t.kind===296}function CR(t){return t.kind===297}function rT(t){return t.kind===298}function CP(t){return t.kind===299}function Fm(t){return t.kind===303}function BT(t){return t.kind===304}function xk(t){return t.kind===305}function Qb(t){return t.kind===306}function A3(t){return t.kind===308}function tl(t){return t.kind===312}function XE(t){return t.kind===313}function xA(t){return t.kind===314}function pI(t){return t.kind===316}function OJ(t){return t.kind===317}function Nu(t){return t.kind===318}function fpe(t){return t.kind===331}function rF(t){return t.kind===332}function SW(t){return t.kind===333}function FJ(t){return t.kind===319}function QL(t){return t.kind===320}function MG(t){return t.kind===321}function Ooe(t){return t.kind===322}function AEe(t){return t.kind===323}function LG(t){return t.kind===324}function Foe(t){return t.kind===325}function WJ(t){return t.kind===326}function Gx(t){return t.kind===327}function EW(t){return t.kind===329}function Ak(t){return t.kind===330}function iF(t){return t.kind===335}function _Ue(t){return t.kind===337}function uC(t){return t.kind===339}function oF(t){return t.kind===345}function b6(t){return t.kind===340}function xW(t){return t.kind===341}function CEe(t){return t.kind===342}function _pe(t){return t.kind===343}function UY(t){return t.kind===344}function OG(t){return t.kind===346}function Woe(t){return t.kind===338}function DEe(t){return t.kind===354}function BJ(t){return t.kind===347}function AA(t){return t.kind===348}function aF(t){return t.kind===349}function dpe(t){return t.kind===350}function HY(t){return t.kind===351}function jx(t){return t.kind===352}function A2(t){return t.kind===353}function ppe(t){return t.kind===334}function IEe(t){return t.kind===355}function FG(t){return t.kind===336}function CA(t){return t.kind===357}function zJ(t){return t.kind===356}function GJ(t){return t.kind===358}var I6e=G({"src/compiler/factory/nodeTests.ts"(){Ad()}});function jJ(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function ZL(t,r,s,l){if(am(s))return vr(t.createElementAccessExpression(r,s.expression),l);{const m=vr(uy(s)?t.createPropertyAccessExpression(r,s):t.createElementAccessExpression(r,s),s);return cI(m,128),m}}function kEe(t,r){const s=DP.createIdentifier(t||"React");return kl(s,Il(r)),s}function AW(t,r,s){if(nT(r)){const l=AW(t,r.left,s),m=t.createIdentifier(ec(r.right));return m.escapedText=r.right.escapedText,t.createPropertyAccessExpression(l,m)}else return kEe(ec(r),s)}function k6e(t,r,s,l){return r?AW(t,r,l):t.createPropertyAccessExpression(kEe(s,l),"createElement")}function Boe(t,r,s,l){return r?AW(t,r,l):t.createPropertyAccessExpression(kEe(s,l),"Fragment")}function sF(t,r,s,l,m,y){const T=[s];if(l&&T.push(l),m&&m.length>0)if(l||T.push(t.createNull()),m.length>1)for(const D of m)x1(D),T.push(D);else T.push(m[0]);return vr(t.createCallExpression(r,void 0,T),y)}function PEe(t,r,s,l,m,y,T){const I=[Boe(t,s,l,y),t.createNull()];if(m&&m.length>0)if(m.length>1)for(const W of m)x1(W),I.push(W);else I.push(m[0]);return vr(t.createCallExpression(k6e(t,r,l,y),void 0,I),T)}function mpe(t,r,s){if(My(r)){const l=Dl(r.declarations),m=t.updateVariableDeclaration(l,l.name,void 0,void 0,s);return vr(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[m])),r)}else{const l=vr(t.createAssignment(r,s),r);return vr(t.createExpressionStatement(l),r)}}function NEe(t,r,s){return E_(r)?t.updateBlock(r,vr(t.createNodeArray([s,...r.statements]),r.statements)):t.createBlock(t.createNodeArray([r,s]),!0)}function gpe(t,r){if(nT(r)){const s=gpe(t,r.left),l=kl(vr(t.cloneNode(r.right),r.right),r.right.parent);return vr(t.createPropertyAccessExpression(s,l),r)}else return kl(vr(t.cloneNode(r),r),r.parent)}function hpe(t,r){return An(r)?t.createStringLiteralFromNode(r):am(r)?kl(vr(t.cloneNode(r.expression),r.expression),r.expression.parent):kl(vr(t.cloneNode(r),r),r.parent)}function P6e(t,r,s,l,m){const{firstAccessor:y,getAccessor:T,setAccessor:D}=mG(r,s);if(s===y)return vr(t.createObjectDefinePropertyCall(l,hpe(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:T&&vr(tc(t.createFunctionExpression(N8(T),void 0,void 0,void 0,T.parameters,void 0,T.body),T),T),set:D&&vr(tc(t.createFunctionExpression(N8(D),void 0,void 0,void 0,D.parameters,void 0,D.body),D),D)},!m)),y)}function wEe(t,r,s){return tc(vr(t.createAssignment(ZL(t,s,r.name,r.name),r.initializer),r),r)}function dUe(t,r,s){return tc(vr(t.createAssignment(ZL(t,s,r.name,r.name),t.cloneNode(r.name)),r),r)}function zoe(t,r,s){return tc(vr(t.createAssignment(ZL(t,s,r.name,r.name),tc(vr(t.createFunctionExpression(N8(r),r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r)}function ype(t,r,s,l){switch(s.name&&Gu(s.name)&&ce.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return P6e(t,r.properties,s,l,!!r.multiLine);case 303:return wEe(t,s,l);case 304:return dUe(t,s,l);case 174:return zoe(t,s,l)}}function REe(t,r,s,l,m){const y=r.operator;ce.assert(y===46||y===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const T=t.createTempVariable(l);s=t.createAssignment(T,s),vr(s,r.operand);let D=yk(r)?t.createPrefixUnaryExpression(y,T):t.createPostfixUnaryExpression(T,y);return vr(D,r),m&&(D=t.createAssignment(m,D),vr(D,r)),s=t.createComma(s,D),vr(s,r),Z7(r)&&(s=t.createComma(s,T),vr(s,r)),s}function N6e(t){return(Tp(t)&65536)!==0}function T6(t){return(Tp(t)&32768)!==0}function MEe(t){return(Tp(t)&16384)!==0}function LEe(t){return Wp(t.expression)&&t.expression.text==="use strict"}function JY(t){for(const r of t)if(qC(r)){if(LEe(r))return r}else break}function vpe(t){const r=pp(t);return r!==void 0&&qC(r)&&LEe(r)}function mI(t){return t.kind===226&&t.operatorToken.kind===28}function CW(t){return mI(t)||x3(t)}function $Y(t){return sb(t)&&Rs(t)&&!!w8(t)}function qY(t){const r=X1(t);return ce.assertIsDefined(r),r}function Goe(t,r=15){switch(t.kind){case 217:return r&16&&$Y(t)?!1:(r&1)!==0;case 216:case 234:case 233:case 238:return(r&2)!==0;case 235:return(r&4)!==0;case 360:return(r&8)!==0}return!1}function rv(t,r=15){for(;Goe(t,r);)t=t.expression;return t}function VJ(t,r=15){let s=t.parent;for(;Goe(s,r);)s=s.parent,ce.assert(s);return s}function KY(t){return rv(t,6)}function x1(t){return epe(t,!0)}function WG(t){const r=Ic(t,tl),s=r&&r.emitNode;return s&&s.externalHelpersModuleName}function iv(t){const r=Ic(t,tl),s=r&&r.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function bpe(t,r,s,l,m,y,T){if(l.importHelpers&&B8(s,l)){let D;const I=Zp(l);if(I>=5&&I<=99||s.impliedNodeFormat===99){const W=v3(s);if(W){const O=[];for(const V of W)if(!V.scoped){const ee=V.importName;ee&&Dy(O,ee)}if(gt(O)){O.sort(Fp),D=t.createNamedImports(Vn(O,te=>fde(s,te)?t.createImportSpecifier(!1,void 0,t.createIdentifier(te)):t.createImportSpecifier(!1,t.createIdentifier(te),r.getUnscopedHelperName(te))));const V=Ic(s,tl),ee=he(V);ee.externalHelpers=!0}}}else{const W=w6e(t,s,l,m,y||T);W&&(D=t.createNamespaceImport(W))}if(D){const W=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,D),t.createStringLiteral(_6),void 0);return _s(W,2),W}}}function w6e(t,r,s,l,m){if(s.importHelpers&&B8(r,s)){const y=WG(r);if(y)return y;const T=Zp(s);let D=(l||b1(s)&&m)&&T!==4&&(T<5||r.impliedNodeFormat===1);if(!D){const I=v3(r);if(I){for(const W of I)if(!W.scoped){D=!0;break}}}if(D){const I=Ic(r,tl),W=he(I);return W.externalHelpersModuleName||(W.externalHelpersModuleName=t.createUniqueName(_6))}}}function lb(t,r,s){const l=uH(r);if(l&&!D7(r)&&!_ie(r)){const m=l.name;return Om(m)?m:t.createIdentifier(wd(s,m)||ec(m))}if(r.kind===272&&r.importClause||r.kind===278&&r.moduleSpecifier)return t.getGeneratedNameForNode(r)}function e4(t,r,s,l,m,y){const T=pY(r);if(T&&Wp(T))return M6e(r,l,t,m,y)||R6e(t,T,s)||t.cloneNode(T)}function R6e(t,r,s){const l=s.renamedDependencies&&s.renamedDependencies.get(r.text);return l?t.createStringLiteral(l):void 0}function UJ(t,r,s,l){if(r){if(r.moduleName)return t.createStringLiteral(r.moduleName);if(!r.isDeclarationFile&&Kg(l))return t.createStringLiteral(Mde(s,r.fileName))}}function M6e(t,r,s,l,m){return UJ(s,l.getExternalModuleFileFromDeclaration(t),r,m)}function C3(t){if(d9(t))return t.initializer;if(Fm(t)){const r=t.initializer;return wy(r,!0)?r.right:void 0}if(BT(t))return t.objectAssignmentInitializer;if(wy(t,!0))return t.right;if(ex(t))return C3(t.expression)}function oD(t){if(d9(t))return t.name;if(KD(t)){switch(t.kind){case 303:return oD(t.initializer);case 304:return t.name;case 305:return oD(t.expression)}return}return wy(t,!0)?oD(t.left):ex(t)?oD(t.expression):t}function OEe(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function HJ(t){const r=FEe(t);return ce.assert(!!r||xk(t),"Invalid property name for binding element."),r}function FEe(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return Gu(s)?ce.failBadSyntaxKind(s):am(s)&&XY(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return Gu(s)?ce.failBadSyntaxKind(s):am(s)&&XY(s.expression)?s.expression:s}break;case 305:return t.name&&Gu(t.name)?ce.failBadSyntaxKind(t.name):t.name}const r=oD(t);if(r&&fy(r))return r}function XY(t){const r=t.kind;return r===11||r===9}function gI(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function YY(t){if(t){let r=t;for(;;){if(An(r)||!r.body)return An(r)?r:r.name;r=r.body}}}function WEe(t){const r=t.kind;return r===176||r===178}function joe(t){const r=t.kind;return r===176||r===177||r===178}function BEe(t){const r=t.kind;return r===303||r===304||r===262||r===176||r===181||r===175||r===282||r===243||r===264||r===265||r===266||r===267||r===271||r===272||r===270||r===278||r===277}function BG(t){const r=t.kind;return r===175||r===303||r===304||r===282||r===270}function Tpe(t){return ER(t)||PJ(t)}function L6e(t){return An(t)||Q7(t)}function zEe(t){return NJ(t)||woe(t)||FY(t)}function Spe(t){return ER(t)||woe(t)||FY(t)}function GEe(t){return An(t)||Wp(t)}function O6e(t){const r=t.kind;return r===106||r===112||r===97||fP(t)||yk(t)}function F6e(t){return t===43}function W6e(t){return t===42||t===44||t===45}function B6e(t){return F6e(t)||W6e(t)}function z6e(t){return t===40||t===41}function pUe(t){return z6e(t)||B6e(t)}function pst(t){return t===48||t===49||t===50}function mst(t){return pst(t)||pUe(t)}function gst(t){return t===30||t===33||t===32||t===34||t===104||t===103}function hst(t){return gst(t)||mst(t)}function yst(t){return t===35||t===37||t===36||t===38}function vst(t){return yst(t)||hst(t)}function jEe(t){return t===51||t===52||t===53}function bst(t){return jEe(t)||vst(t)}function Tst(t){return t===56||t===57}function Sst(t){return Tst(t)||bst(t)}function Est(t){return t===61||Sst(t)||zN(t)}function xst(t){return Est(t)||t===28}function mUe(t){return xst(t.kind)}function VEe(t,r,s,l,m,y){const T=new vUe(t,r,s,l,m,y);return D;function D(I,W){const O={value:void 0},V=[KJ.enter],ee=[I],te=[void 0];let oe=0;for(;V[oe]!==KJ.done;)oe=V[oe](T,oe,V,ee,te,O,W);return ce.assertEqual(oe,0),O.value}}function gUe(t){return t===95||t===90}function Epe(t){const r=t.kind;return gUe(r)}function Ast(t){const r=t.kind;return qg(r)&&!gUe(r)}function UEe(t,r){if(r!==void 0)return r.length===0?r:vr(t.createNodeArray([],r.hasTrailingComma),r)}function zG(t){var r;const s=t.emitNode.autoGenerate;if(s.flags&4){const l=s.id;let m=t,y=m.original;for(;y;){m=y;const T=(r=m.emitNode)==null?void 0:r.autoGenerate;if(uy(m)&&(T===void 0||T.flags&4&&T.id!==l))break;y=m.original}return m}return t}function JJ(t,r){return typeof t=="object"?t4(!1,t.prefix,t.node,t.suffix,r):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function Voe(t,r){return typeof t=="string"?t:hUe(t,ce.checkDefined(r))}function hUe(t,r){return cR(t)?r(t).slice(1):Om(t)?r(t):Gu(t)?t.escapedText.slice(1):ec(t)}function t4(t,r,s,l,m){return r=JJ(r,m),l=JJ(l,m),s=Voe(s,m),`${t?"#":""}${r}${s}${l}`}function $J(t,r,s,l){return t.updatePropertyDeclaration(r,s,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage"),void 0,void 0,l)}function GG(t,r,s,l,m=t.createThis()){return t.createGetAccessorDeclaration(s,l,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage")))]))}function yUe(t,r,s,l,m=t.createThis()){return t.createSetAccessorDeclaration(s,l,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function HEe(t){let r=t.expression;for(;;){if(r=rv(r),x3(r)){r=yl(r.elements);continue}if(mI(r)){r=r.right;continue}if(wy(r,!0)&&Om(r.left))return r;break}}function D3(t){return sb(t)&&rh(t)&&!t.emitNode}function qJ(t,r){if(D3(t))qJ(t.expression,r);else if(mI(t))qJ(t.left,r),qJ(t.right,r);else if(x3(t))for(const s of t.elements)qJ(s,r);else r.push(t)}function JEe(t){const r=[];return qJ(t,r),r}function QY(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const r of gI(t)){const s=oD(r);if(s&&u7(s)&&(s.transformFlags&65536||s.transformFlags&128&&QY(s)))return!0}return!1}var KJ,vUe,xpe=G({"src/compiler/factory/utilities.ts"(){Ad(),(t=>{function r(O,V,ee,te,oe,de,ue){const Ne=V>0?oe[V-1]:void 0;return ce.assertEqual(ee[V],r),oe[V]=O.onEnter(te[V],Ne,ue),ee[V]=D(O,r),V}t.enter=r;function s(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],s),ce.assertIsDefined(O.onLeft),ee[V]=D(O,s);const Ne=O.onLeft(te[V].left,oe[V],te[V]);return Ne?(W(V,te,Ne),I(V,ee,te,oe,Ne)):V}t.left=s;function l(O,V,ee,te,oe,de,ue){return ce.assertEqual(ee[V],l),ce.assertIsDefined(O.onOperator),ee[V]=D(O,l),O.onOperator(te[V].operatorToken,oe[V],te[V]),V}t.operator=l;function m(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],m),ce.assertIsDefined(O.onRight),ee[V]=D(O,m);const Ne=O.onRight(te[V].right,oe[V],te[V]);return Ne?(W(V,te,Ne),I(V,ee,te,oe,Ne)):V}t.right=m;function y(O,V,ee,te,oe,de,ue){ce.assertEqual(ee[V],y),ee[V]=D(O,y);const Ne=O.onExit(te[V],oe[V]);if(V>0){if(V--,O.foldState){const Be=ee[V]===y?"right":"left";oe[V]=O.foldState(oe[V],Ne,Be)}}else de.value=Ne;return V}t.exit=y;function T(O,V,ee,te,oe,de,ue){return ce.assertEqual(ee[V],T),V}t.done=T;function D(O,V){switch(V){case r:if(O.onLeft)return s;case s:if(O.onOperator)return l;case l:if(O.onRight)return m;case m:return y;case y:return T;case T:return T;default:ce.fail("Invalid state")}}t.nextState=D;function I(O,V,ee,te,oe){return O++,V[O]=r,ee[O]=oe,te[O]=void 0,O}function W(O,V,ee){if(ce.shouldAssert(2))for(;O>=0;)ce.assert(V[O]!==ee,"Circular traversal detected."),O--}})(KJ||(KJ={})),vUe=class{constructor(t,r,s,l,m,y){this.onEnter=t,this.onLeft=r,this.onOperator=s,this.onRight=l,this.onExit=m,this.foldState=y}}}});function vr(t,r){return r?T1(t,r.pos,r.end):t}function nx(t){const r=t.kind;return r===168||r===169||r===171||r===172||r===173||r===174||r===176||r===177||r===178||r===181||r===185||r===218||r===219||r===231||r===243||r===262||r===263||r===264||r===265||r===266||r===267||r===271||r===272||r===277||r===278}function I3(t){const r=t.kind;return r===169||r===172||r===174||r===177||r===178||r===231||r===263}var bUe=G({"src/compiler/factory/utilitiesPublic.ts"(){Ad()}});function Xi(t,r){return r&&t(r)}function Tn(t,r,s){if(s){if(r)return r(s);for(const l of s){const m=t(l);if(m)return m}}}function DA(t,r){return t.charCodeAt(r+1)===42&&t.charCodeAt(r+2)===42&&t.charCodeAt(r+3)!==47}function S6(t){return Ot(t.statements,Cst)||Yi(t)}function Cst(t){return nx(t)&&$Ee(t,95)||kh(t)&&j0(t.moduleReference)||Fv(t)||Ly(t)||mh(t)?t:void 0}function Yi(t){return t.flags&8388608?Bu(t):void 0}function Bu(t){return Uoe(t)?t:B_(t,Bu)}function $Ee(t,r){return gt(t.modifiers,s=>s.kind===r)}function Uoe(t){return eF(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function TUe(t,r,s){return Tn(r,s,t.typeParameters)||Tn(r,s,t.parameters)||Xi(r,t.type)}function SUe(t,r,s){return Tn(r,s,t.types)}function G6e(t,r,s){return Xi(r,t.type)}function EUe(t,r,s){return Tn(r,s,t.elements)}function xUe(t,r,s){return Xi(r,t.expression)||Xi(r,t.questionDotToken)||Tn(r,s,t.typeArguments)||Tn(r,s,t.arguments)}function j6e(t,r,s){return Tn(r,s,t.statements)}function V6e(t,r,s){return Xi(r,t.label)}function U6e(t,r,s){return Tn(r,s,t.modifiers)||Xi(r,t.name)||Tn(r,s,t.typeParameters)||Tn(r,s,t.heritageClauses)||Tn(r,s,t.members)}function H6e(t,r,s){return Tn(r,s,t.elements)}function J6e(t,r,s){return Xi(r,t.propertyName)||Xi(r,t.name)}function $6e(t,r,s){return Xi(r,t.tagName)||Tn(r,s,t.typeArguments)||Xi(r,t.attributes)}function XJ(t,r,s){return Xi(r,t.type)}function q6e(t,r,s){return Xi(r,t.tagName)||(t.isNameFirst?Xi(r,t.name)||Xi(r,t.typeExpression):Xi(r,t.typeExpression)||Xi(r,t.name))||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function YJ(t,r,s){return Xi(r,t.tagName)||Xi(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function qEe(t,r,s){return Xi(r,t.name)}function jG(t,r,s){return Xi(r,t.tagName)||(typeof t.comment=="string"?void 0:Tn(r,s,t.comment))}function ZY(t,r,s){return Xi(r,t.expression)}function B_(t,r,s){if(t===void 0||t.kind<=165)return;const l=X6e[t.kind];return l===void 0?void 0:l(t,r,s)}function k3(t,r,s){const l=KEe(t),m=[];for(;m.length=0;--D)l.push(y[D]),m.push(T)}else{const D=r(y,T);if(D){if(D==="skip")continue;return D}if(y.kind>=166)for(const I of KEe(y))l.push(I),m.push(y)}}}function KEe(t){const r=[];return B_(t,s,s),r;function s(l){r.unshift(l)}}function VG(t){t.externalModuleIndicator=S6(t)}function Ape(t,r,s,l=!1,m){var y,T,D,I;(y=tu)==null||y.push(tu.Phase.Parse,"createSourceFile",{path:t},!0),jf("beforeParse");let W;(T=jD)==null||T.logStartParseSourceFile(t);const{languageVersion:O,setExternalModuleIndicator:V,impliedNodeFormat:ee}=typeof s=="object"?s:{languageVersion:s};if(O===100)W=r4.parseSourceFile(t,r,O,void 0,l,6,ku);else{const te=ee===void 0?V:oe=>(oe.impliedNodeFormat=ee,(V||VG)(oe));W=r4.parseSourceFile(t,r,O,void 0,l,m,te)}return(D=jD)==null||D.logStopParseSourceFile(),jf("afterParse"),dd("Parse","beforeParse","afterParse"),(I=tu)==null||I.pop(),W}function s_(t,r){return r4.parseIsolatedEntityName(t,r)}function cF(t,r){return r4.parseJsonText(t,r)}function Wv(t){return t.externalModuleIndicator!==void 0}function XEe(t,r,s,l=!1){const m=Dpe.updateSourceFile(t,r,s,l);return m.flags|=t.flags&12582912,m}function eQ(t,r,s){const l=r4.JSDocParser.parseIsolatedJSDocComment(t,r,s);return l&&l.jsDoc&&r4.fixupParentReferences(l.jsDoc),l}function UG(t,r,s){return r4.JSDocParser.parseJSDocTypeExpressionForTests(t,r,s)}function iT(t){return ws(t,h3)||Pg(t,".ts")&&Ub(Iy(t),".d.")}function Bv(t,r,s,l){if(t){if(t==="import")return 99;if(t==="require")return 1;l(r,s-r,w.resolution_mode_should_be_either_require_or_import)}}function Hoe(t,r){const s=[];for(const l of CS(r,0)||Zn){const m=r.substring(l.pos,l.end);Zb(s,l,m)}t.pragmas=new Map;for(const l of s){if(t.pragmas.has(l.name)){const m=t.pragmas.get(l.name);m instanceof Array?m.push(l.args):t.pragmas.set(l.name,[m,l.args]);continue}t.pragmas.set(l.name,l.args)}}function Cpe(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,l)=>{switch(l){case"reference":{const m=t.referencedFiles,y=t.typeReferenceDirectives,T=t.libReferenceDirectives;Ot(BC(s),D=>{const{types:I,lib:W,path:O,["resolution-mode"]:V}=D.arguments;if(D.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(I){const ee=Bv(V,I.pos,I.end,r);y.push({pos:I.pos,end:I.end,fileName:I.value,...ee?{resolutionMode:ee}:{}})}else W?T.push({pos:W.pos,end:W.end,fileName:W.value}):O?m.push({pos:O.pos,end:O.end,fileName:O.value}):r(D.range.pos,D.range.end-D.range.pos,w.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Vn(BC(s),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const m of s)t.moduleName&&r(m.range.pos,m.range.end-m.range.pos,w.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=m.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{Ot(BC(s),m=>{(!t.checkJsDirective||m.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:l==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:ce.fail("Unhandled pragma kind")}})}function AUe(t){if(tQ.has(t))return tQ.get(t);const r=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return tQ.set(t,r),r}function Zb(t,r,s){const l=r.kind===2&&Ck.exec(s);if(l){const y=l[1].toLowerCase(),T=z_e[y];if(!T||!(T.kind&1))return;if(T.args){const D={};for(const I of T.args){const O=AUe(I.name).exec(s);if(!O&&!I.optional)return;if(O){const V=O[2]||O[3];if(I.captureSpan){const ee=r.pos+O.index+O[1].length+1;D[I.name]={value:V,pos:ee,end:ee+V.length}}else D[I.name]=V}}t.push({name:y,args:{arguments:D,range:r}})}else t.push({name:y,args:{arguments:{},range:r}});return}const m=r.kind===2&&Y6e.exec(s);if(m)return CUe(t,r,2,m);if(r.kind===3){const y=/@(\S+)(\s+.*)?$/gim;let T;for(;T=y.exec(s);)CUe(t,r,4,T)}}function CUe(t,r,s,l){if(!l)return;const m=l[1].toLowerCase(),y=z_e[m];if(!y||!(y.kind&s))return;const T=l[2],D=YEe(y,T);D!=="fail"&&t.push({name:m,args:{arguments:D,range:r}})}function YEe(t,r){if(!r)return{};if(!t.args)return{};const s=GD(r).split(/\s+/),l={};for(let m=0;mnew(n4||(n4=nv.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(K6e||(K6e=nv.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(kUe||(kUe=nv.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(IUe||(IUe=nv.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(DUe||(DUe=nv.getNodeConstructor()))(t,-1,-1)},DP=aJ(1,QEe),X6e={166:function(r,s,l){return Xi(s,r.left)||Xi(s,r.right)},168:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.constraint)||Xi(s,r.default)||Xi(s,r.expression)},304:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.equalsToken)||Xi(s,r.objectAssignmentInitializer)},305:function(r,s,l){return Xi(s,r.expression)},169:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.dotDotDotToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)||Xi(s,r.initializer)},172:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.type)||Xi(s,r.initializer)},171:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)||Xi(s,r.initializer)},303:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Xi(s,r.initializer)},260:function(r,s,l){return Xi(s,r.name)||Xi(s,r.exclamationToken)||Xi(s,r.type)||Xi(s,r.initializer)},208:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.propertyName)||Xi(s,r.name)||Xi(s,r.initializer)},181:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},185:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},184:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},179:TUe,180:TUe,174:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.exclamationToken)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},173:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.questionToken)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)},176:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},177:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},178:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},262:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},218:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.asteriskToken)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.body)},219:function(r,s,l){return Tn(s,l,r.modifiers)||Tn(s,l,r.typeParameters)||Tn(s,l,r.parameters)||Xi(s,r.type)||Xi(s,r.equalsGreaterThanToken)||Xi(s,r.body)},175:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.body)},183:function(r,s,l){return Xi(s,r.typeName)||Tn(s,l,r.typeArguments)},182:function(r,s,l){return Xi(s,r.assertsModifier)||Xi(s,r.parameterName)||Xi(s,r.type)},186:function(r,s,l){return Xi(s,r.exprName)||Tn(s,l,r.typeArguments)},187:function(r,s,l){return Tn(s,l,r.members)},188:function(r,s,l){return Xi(s,r.elementType)},189:function(r,s,l){return Tn(s,l,r.elements)},192:SUe,193:SUe,194:function(r,s,l){return Xi(s,r.checkType)||Xi(s,r.extendsType)||Xi(s,r.trueType)||Xi(s,r.falseType)},195:function(r,s,l){return Xi(s,r.typeParameter)},205:function(r,s,l){return Xi(s,r.argument)||Xi(s,r.assertions)||Xi(s,r.qualifier)||Tn(s,l,r.typeArguments)},302:function(r,s,l){return Xi(s,r.assertClause)},196:G6e,198:G6e,199:function(r,s,l){return Xi(s,r.objectType)||Xi(s,r.indexType)},200:function(r,s,l){return Xi(s,r.readonlyToken)||Xi(s,r.typeParameter)||Xi(s,r.nameType)||Xi(s,r.questionToken)||Xi(s,r.type)||Tn(s,l,r.members)},201:function(r,s,l){return Xi(s,r.literal)},202:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.name)||Xi(s,r.questionToken)||Xi(s,r.type)},206:EUe,207:EUe,209:function(r,s,l){return Tn(s,l,r.elements)},210:function(r,s,l){return Tn(s,l,r.properties)},211:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.questionDotToken)||Xi(s,r.name)},212:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.questionDotToken)||Xi(s,r.argumentExpression)},213:xUe,214:xUe,215:function(r,s,l){return Xi(s,r.tag)||Xi(s,r.questionDotToken)||Tn(s,l,r.typeArguments)||Xi(s,r.template)},216:function(r,s,l){return Xi(s,r.type)||Xi(s,r.expression)},217:function(r,s,l){return Xi(s,r.expression)},220:function(r,s,l){return Xi(s,r.expression)},221:function(r,s,l){return Xi(s,r.expression)},222:function(r,s,l){return Xi(s,r.expression)},224:function(r,s,l){return Xi(s,r.operand)},229:function(r,s,l){return Xi(s,r.asteriskToken)||Xi(s,r.expression)},223:function(r,s,l){return Xi(s,r.expression)},225:function(r,s,l){return Xi(s,r.operand)},226:function(r,s,l){return Xi(s,r.left)||Xi(s,r.operatorToken)||Xi(s,r.right)},234:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.type)},235:function(r,s,l){return Xi(s,r.expression)},238:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.type)},236:function(r,s,l){return Xi(s,r.name)},227:function(r,s,l){return Xi(s,r.condition)||Xi(s,r.questionToken)||Xi(s,r.whenTrue)||Xi(s,r.colonToken)||Xi(s,r.whenFalse)},230:function(r,s,l){return Xi(s,r.expression)},241:j6e,268:j6e,312:function(r,s,l){return Tn(s,l,r.statements)||Xi(s,r.endOfFileToken)},243:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.declarationList)},261:function(r,s,l){return Tn(s,l,r.declarations)},244:function(r,s,l){return Xi(s,r.expression)},245:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.thenStatement)||Xi(s,r.elseStatement)},246:function(r,s,l){return Xi(s,r.statement)||Xi(s,r.expression)},247:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.statement)},248:function(r,s,l){return Xi(s,r.initializer)||Xi(s,r.condition)||Xi(s,r.incrementor)||Xi(s,r.statement)},249:function(r,s,l){return Xi(s,r.initializer)||Xi(s,r.expression)||Xi(s,r.statement)},250:function(r,s,l){return Xi(s,r.awaitModifier)||Xi(s,r.initializer)||Xi(s,r.expression)||Xi(s,r.statement)},251:V6e,252:V6e,253:function(r,s,l){return Xi(s,r.expression)},254:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.statement)},255:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.caseBlock)},269:function(r,s,l){return Tn(s,l,r.clauses)},296:function(r,s,l){return Xi(s,r.expression)||Tn(s,l,r.statements)},297:function(r,s,l){return Tn(s,l,r.statements)},256:function(r,s,l){return Xi(s,r.label)||Xi(s,r.statement)},257:function(r,s,l){return Xi(s,r.expression)},258:function(r,s,l){return Xi(s,r.tryBlock)||Xi(s,r.catchClause)||Xi(s,r.finallyBlock)},299:function(r,s,l){return Xi(s,r.variableDeclaration)||Xi(s,r.block)},170:function(r,s,l){return Xi(s,r.expression)},263:U6e,231:U6e,264:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Tn(s,l,r.heritageClauses)||Tn(s,l,r.members)},265:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.typeParameters)||Xi(s,r.type)},266:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Tn(s,l,r.members)},306:function(r,s,l){return Xi(s,r.name)||Xi(s,r.initializer)},267:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.body)},271:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)||Xi(s,r.moduleReference)},272:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.importClause)||Xi(s,r.moduleSpecifier)||Xi(s,r.assertClause)},273:function(r,s,l){return Xi(s,r.name)||Xi(s,r.namedBindings)},300:function(r,s,l){return Tn(s,l,r.elements)},301:function(r,s,l){return Xi(s,r.name)||Xi(s,r.value)},270:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.name)},274:function(r,s,l){return Xi(s,r.name)},280:function(r,s,l){return Xi(s,r.name)},275:H6e,279:H6e,278:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.exportClause)||Xi(s,r.moduleSpecifier)||Xi(s,r.assertClause)},276:J6e,281:J6e,277:function(r,s,l){return Tn(s,l,r.modifiers)||Xi(s,r.expression)},228:function(r,s,l){return Xi(s,r.head)||Tn(s,l,r.templateSpans)},239:function(r,s,l){return Xi(s,r.expression)||Xi(s,r.literal)},203:function(r,s,l){return Xi(s,r.head)||Tn(s,l,r.templateSpans)},204:function(r,s,l){return Xi(s,r.type)||Xi(s,r.literal)},167:function(r,s,l){return Xi(s,r.expression)},298:function(r,s,l){return Tn(s,l,r.types)},233:function(r,s,l){return Xi(s,r.expression)||Tn(s,l,r.typeArguments)},283:function(r,s,l){return Xi(s,r.expression)},282:function(r,s,l){return Tn(s,l,r.modifiers)},361:function(r,s,l){return Tn(s,l,r.elements)},284:function(r,s,l){return Xi(s,r.openingElement)||Tn(s,l,r.children)||Xi(s,r.closingElement)},288:function(r,s,l){return Xi(s,r.openingFragment)||Tn(s,l,r.children)||Xi(s,r.closingFragment)},285:$6e,286:$6e,292:function(r,s,l){return Tn(s,l,r.properties)},291:function(r,s,l){return Xi(s,r.name)||Xi(s,r.initializer)},293:function(r,s,l){return Xi(s,r.expression)},294:function(r,s,l){return Xi(s,r.dotDotDotToken)||Xi(s,r.expression)},287:function(r,s,l){return Xi(s,r.tagName)},295:function(r,s,l){return Xi(s,r.namespace)||Xi(s,r.name)},190:XJ,191:XJ,316:XJ,322:XJ,321:XJ,323:XJ,325:XJ,324:function(r,s,l){return Tn(s,l,r.parameters)||Xi(s,r.type)},327:function(r,s,l){return(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))||Tn(s,l,r.tags)},354:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.name)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},317:function(r,s,l){return Xi(s,r.name)},318:function(r,s,l){return Xi(s,r.left)||Xi(s,r.right)},348:q6e,355:q6e,337:function(r,s,l){return Xi(s,r.tagName)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},336:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.class)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},335:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.class)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},352:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.constraint)||Tn(s,l,r.typeParameters)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},353:function(r,s,l){return Xi(s,r.tagName)||(r.typeExpression&&r.typeExpression.kind===316?Xi(s,r.typeExpression)||Xi(s,r.fullName)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment)):Xi(s,r.fullName)||Xi(s,r.typeExpression)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment)))},345:function(r,s,l){return Xi(s,r.tagName)||Xi(s,r.fullName)||Xi(s,r.typeExpression)||(typeof r.comment=="string"?void 0:Tn(s,l,r.comment))},349:YJ,351:YJ,350:YJ,347:YJ,357:YJ,356:YJ,346:YJ,330:function(r,s,l){return Ot(r.typeParameters,s)||Ot(r.parameters,s)||Xi(s,r.type)},331:qEe,332:qEe,333:qEe,329:function(r,s,l){return Ot(r.jsDocPropertyTags,s)},334:jG,339:jG,340:jG,341:jG,342:jG,343:jG,338:jG,344:jG,360:ZY},(t=>{var r=MM(99,!0),s=40960,l,m,y,T,D;function I(je){return Gn++,je}var W={createBaseSourceFileNode:je=>I(new D(je,0,0)),createBaseIdentifierNode:je=>I(new y(je,0,0)),createBasePrivateIdentifierNode:je=>I(new T(je,0,0)),createBaseTokenNode:je=>I(new m(je,0,0)),createBaseNode:je=>I(new l(je,0,0))},O=aJ(11,W),{createNodeArray:V,createNumericLiteral:ee,createStringLiteral:te,createLiteralLikeNode:oe,createIdentifier:de,createPrivateIdentifier:ue,createToken:Ne,createArrayLiteralExpression:Be,createObjectLiteralExpression:Ve,createPropertyAccessExpression:pt,createPropertyAccessChain:Le,createElementAccessExpression:ht,createElementAccessChain:ke,createCallExpression:_t,createCallChain:Dt,createNewExpression:Ft,createParenthesizedExpression:it,createBlock:Ye,createVariableStatement:ut,createExpressionStatement:lt,createIfStatement:zt,createWhileStatement:Wt,createForStatement:tt,createForOfStatement:Mn,createVariableDeclaration:kn,createVariableDeclarationList:cr}=O,un,on,pn,Or,Xr,Ut,In,gr,Cr,ei,Gn,Ur,so,ho,di,Nc,ha=!0,ro=!1;function Gs(je,Vt,zn,zr,xi=!1,xo,Wc){var hu;if(xo=$H(je,xo),xo===6){const Sl=_u(je,Vt,zn,zr,xi);return Koe(Sl,(hu=Sl.statements[0])==null?void 0:hu.expression,Sl.parseDiagnostics,!1,void 0),Sl.referencedFiles=Zn,Sl.typeReferenceDirectives=Zn,Sl.libReferenceDirectives=Zn,Sl.amdDependencies=Zn,Sl.hasNoDefaultLib=!1,Sl.pragmas=zy,Sl}Ku(je,Vt,zn,zr,xo);const _c=Rr(zn,xi,xo,Wc||VG);return al(),_c}t.parseSourceFile=Gs;function Oc(je,Vt){Ku("",je,Vt,void 0,1),rr();const zn=E0(!0),zr=xe()===1&&!In.length;return al(),zr?zn:void 0}t.parseIsolatedEntityName=Oc;function _u(je,Vt,zn=2,zr,xi=!1){Ku(je,Vt,zn,zr,6),on=Nc,rr();const xo=$e();let Wc,hu;if(xe()===1)Wc=nm([],xo,xo),hu=H0();else{let kf;for(;xe()!==1;){let v_;switch(xe()){case 23:v_=Sc();break;case 112:case 97:case 106:v_=H0();break;case 41:Ha(()=>rr()===9&&rr()!==59)?v_=Lr():v_=Fs();break;case 9:case 11:if(Ha(()=>rr()!==59)){v_=$l();break}default:v_=Fs();break}kf&&ls(kf)?kf.push(v_):kf?kf=[kf,v_]:(kf=v_,xe()!==1&&Ui(w.Unexpected_token))}const Rp=ls(kf)?po(Be(kf),xo):ce.checkDefined(kf),hn=lt(Rp);po(hn,xo),Wc=nm([hn],xo),hu=Kh(1,w.Unexpected_token)}const _c=$a(je,2,6,!1,Wc,hu,on,ku);xi&&ta(_c),_c.nodeCount=Gn,_c.identifierCount=so,_c.identifiers=Ur,_c.parseDiagnostics=jN(In,_c),gr&&(_c.jsDocDiagnostics=jN(gr,_c));const Sl=_c;return al(),Sl}t.parseJsonText=_u;function Ku(je,Vt,zn,zr,xi){switch(l=nv.getNodeConstructor(),m=nv.getTokenConstructor(),y=nv.getIdentifierConstructor(),T=nv.getPrivateIdentifierConstructor(),D=nv.getSourceFileConstructor(),un=Fd(je),pn=Vt,Or=zn,Cr=zr,Xr=xi,Ut=$9(xi),In=[],ho=0,Ur=new Map,so=0,Gn=0,on=0,ha=!0,Xr){case 1:case 2:Nc=524288;break;case 6:Nc=134742016;break;default:Nc=0;break}ro=!1,r.setText(pn),r.setOnError(wt),r.setScriptTarget(Or),r.setLanguageVariant(Ut)}function al(){r.clearCommentDirectives(),r.setText(""),r.setOnError(void 0),pn=void 0,Or=void 0,Cr=void 0,Xr=void 0,Ut=void 0,on=0,In=void 0,gr=void 0,ho=0,Ur=void 0,di=void 0,ha=!0}function Rr(je,Vt,zn,zr){const xi=iT(un);xi&&(Nc|=33554432),on=Nc,rr();const xo=K_(0,nt);ce.assert(xe()===1);const Wc=Zt(),hu=Ea(H0(),Wc),_c=$a(un,je,zn,xi,xo,hu,on,zr);return Hoe(_c,pn),Cpe(_c,Sl),_c.commentDirectives=r.getCommentDirectives(),_c.nodeCount=Gn,_c.identifierCount=so,_c.identifiers=Ur,_c.parseDiagnostics=jN(In,_c),gr&&(_c.jsDocDiagnostics=jN(gr,_c)),Vt&&ta(_c),_c;function Sl(kf,Rp,hn){In.push(s6(un,kf,Rp,hn))}}let mc=!1;function Ea(je,Vt){if(!Vt)return je;ce.assert(!je.jsDoc);const zn=Qo(vde(je,pn),zr=>Q_.parseJSDocComment(je,zr.pos,zr.end-zr.pos));return zn.length&&(je.jsDoc=zn),mc&&(mc=!1,je.flags|=536870912),je}function Fi(je){const Vt=Cr,zn=Dpe.createSyntaxCursor(je);Cr={currentNode:kf};const zr=[],xi=In;In=[];let xo=0,Wc=_c(je.statements,0);for(;Wc!==-1;){const Rp=je.statements[xo],hn=je.statements[Wc];Oi(zr,je.statements,xo,Wc),xo=Sl(je.statements,Wc);const v_=Ho(xi,fm=>fm.start>=Rp.pos),yh=v_>=0?Ho(xi,fm=>fm.start>=hn.pos,v_):-1;v_>=0&&Oi(In,xi,v_,yh>=0?yh:void 0),fp(()=>{const fm=Nc;for(Nc|=65536,r.resetTokenState(hn.pos),rr();xe()!==1;){const mx=r.getTokenFullStart(),BS=ig(0,nt);if(zr.push(BS),mx===r.getTokenFullStart()&&rr(),xo>=0){const N2=je.statements[xo];if(BS.end===N2.pos)break;BS.end>N2.pos&&(xo=Sl(je.statements,xo+1))}}Nc=fm},2),Wc=xo>=0?_c(je.statements,xo):-1}if(xo>=0){const Rp=je.statements[xo];Oi(zr,je.statements,xo);const hn=Ho(xi,v_=>v_.start>=Rp.pos);hn>=0&&Oi(In,xi,hn)}return Cr=Vt,O.updateSourceFile(je,vr(V(zr),je.statements));function hu(Rp){return!(Rp.flags&65536)&&!!(Rp.transformFlags&67108864)}function _c(Rp,hn){for(let v_=hn;v_118}function q_(){return xe()===80?!0:xe()===127&&Cn()||xe()===135&&es()?!1:xe()>118}function Ma(je,Vt,zn=!0){return xe()===je?(zn&&rr(),!0):(Vt?Ui(Vt):Ui(w._0_expected,Nd(je)),!1)}const U0=Object.keys(Jre).filter(je=>je.length>2);function c_(je){if(Hm(je)){We(ep(pn,je.template.pos),je.template.end,w.Module_declaration_names_may_only_use_or_quoted_strings);return}const Vt=An(je)?ec(je):void 0;if(!Vt||!rE(Vt,Or)){Ui(w._0_expected,Nd(27));return}const zn=ep(pn,je.pos);switch(Vt){case"const":case"let":case"var":We(zn,je.end,w.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Kd(w.Interface_name_cannot_be_0,w.Interface_must_be_given_a_name,19);return;case"is":We(zn,r.getTokenStart(),w.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Kd(w.Namespace_name_cannot_be_0,w.Namespace_must_be_given_a_name,19);return;case"type":Kd(w.Type_alias_name_cannot_be_0,w.Type_alias_must_be_given_a_name,64);return}const zr=fh(Vt,U0,xi=>xi)??iy(Vt);if(zr){We(zn,je.end,w.Unknown_keyword_or_identifier_Did_you_mean_0,zr);return}xe()!==0&&We(zn,je.end,w.Unexpected_keyword_or_identifier)}function Kd(je,Vt,zn){xe()===zn?Ui(Vt):Ui(je,r.getTokenValue())}function iy(je){for(const Vt of U0)if(je.length>Vt.length+2&&xf(je,Vt))return`${Vt} ${je.slice(Vt.length)}`}function Oh(je,Vt,zn){if(xe()===60&&!r.hasPrecedingLineBreak()){Ui(w.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(xe()===21){Ui(w.Cannot_start_a_function_call_in_a_type_annotation),rr();return}if(Vt&&!rd()){zn?Ui(w._0_expected,Nd(27)):Ui(w.Expected_for_property_initializer);return}if(!Mg()){if(zn){Ui(w._0_expected,Nd(27));return}c_(je)}}function jg(je){return xe()===je?(mi(),!0):(ce.assert(Nde(je)),Ui(w._0_expected,Nd(je)),!1)}function zv(je,Vt,zn,zr){if(xe()===Vt){rr();return}const xi=Ui(w._0_expected,Nd(Vt));zn&&xi&&ml(xi,s6(un,zr,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Nd(je),Nd(Vt)))}function m_(je){return xe()===je?(rr(),!0):!1}function Yu(je){if(xe()===je)return H0()}function Tv(je){if(xe()===je)return fx()}function Kh(je,Vt,zn){return Yu(je)||gy(je,!1,Vt||w._0_expected,zn||Nd(je))}function uS(je){const Vt=Tv(je);return Vt||(ce.assert(Nde(je)),gy(je,!1,w._0_expected,Nd(je)))}function H0(){const je=$e(),Vt=xe();return rr(),po(Ne(Vt),je)}function fx(){const je=$e(),Vt=xe();return mi(),po(Ne(Vt),je)}function rd(){return xe()===27?!0:xe()===20||xe()===1||r.hasPrecedingLineBreak()}function Mg(){return rd()?(xe()===27&&rr(),!0):!1}function lm(){return Mg()||Ma(27)}function nm(je,Vt,zn,zr){const xi=V(je,zr);return T1(xi,Vt,zn??r.getTokenFullStart()),xi}function po(je,Vt,zn){return T1(je,Vt,zn??r.getTokenFullStart()),Nc&&(je.flags|=Nc),ro&&(ro=!1,je.flags|=262144),je}function gy(je,Vt,zn,...zr){Vt?xu(r.getTokenFullStart(),0,zn,...zr):zn&&Ui(zn,...zr);const xi=$e(),xo=je===80?de("",void 0):zM(je)?O.createTemplateLiteralLikeNode(je,"","",void 0):je===9?ee("",void 0):je===11?te("",void 0):je===282?O.createMissingDeclaration():Ne(je);return po(xo,xi)}function fS(je){let Vt=Ur.get(je);return Vt===void 0&&Ur.set(je,Vt=je),Vt}function GT(je,Vt,zn){if(je){so++;const hu=$e(),_c=xe(),Sl=fS(r.getTokenValue()),kf=r.hasExtendedUnicodeEscape();return an(),po(de(Sl,_c,kf),hu)}if(xe()===81)return Ui(zn||w.Private_identifiers_are_not_allowed_outside_class_bodies),GT(!0);if(xe()===0&&r.tryScan(()=>r.reScanInvalidIdentifier()===80))return GT(!0);so++;const zr=xe()===1,xi=r.isReservedWord(),xo=r.getTokenText(),Wc=xi?w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:w.Identifier_expected;return gy(80,zr,Vt||Wc,xo)}function vE(je){return GT(x_(),void 0,je)}function oh(je,Vt){return GT(q_(),je,Vt)}function hy(je){return GT(Cf(xe()),je)}function _e(){return Cf(xe())||xe()===11||xe()===9}function vn(){return Cf(xe())||xe()===11}function Qn(je){if(xe()===11||xe()===9){const Vt=$l();return Vt.text=fS(Vt.text),Vt}return je&&xe()===23?pa():xe()===81?Zc():hy()}function hi(){return Qn(!0)}function pa(){const je=$e();Ma(23);const Vt=er(Pr);return Ma(24),po(O.createComputedPropertyName(Vt),je)}function Zc(){const je=$e(),Vt=ue(fS(r.getTokenValue()));return rr(),po(Vt,je)}function ka(je){return xe()===je&&mu(gu)}function bc(){return rr(),r.hasPrecedingLineBreak()?!1:av()}function gu(){switch(xe()){case 87:return rr()===94;case 95:return rr(),xe()===90?Ha(Fh):xe()===156?Ha(Xm):yu();case 90:return Fh();case 126:case 139:case 153:return rr(),av();default:return bc()}}function yu(){return xe()===60||xe()!==42&&xe()!==130&&xe()!==19&&av()}function Xm(){return rr(),yu()}function Lg(){return qg(xe())&&mu(gu)}function av(){return xe()===23||xe()===19||xe()===42||xe()===26||_e()}function Fh(){return rr(),xe()===86||xe()===100||xe()===120||xe()===60||xe()===128&&Ha(Qm)||xe()===134&&Ha(Bh)}function J0(je,Vt){if(Fy(je))return!0;switch(je){case 0:case 1:case 3:return!(xe()===27&&Vt)&&fb();case 2:return xe()===84||xe()===90;case 4:return Ha(Ke);case 5:return Ha(Uv)||xe()===27&&!Vt;case 6:return xe()===23||_e();case 12:switch(xe()){case 23:case 42:case 26:case 25:return!0;default:return _e()}case 18:return _e();case 9:return xe()===23||xe()===26||_e();case 24:return vn();case 7:return xe()===19?Ha(Eg):Vt?q_()&&!S0():Hn()&&!S0();case 8:return Uf();case 10:return xe()===28||xe()===26||Uf();case 19:return xe()===103||xe()===87||q_();case 15:switch(xe()){case 28:case 25:return!0}case 11:return xe()===26||dr();case 16:return $(!1);case 17:return $(!0);case 20:case 21:return xe()===28||Mo();case 22:return br();case 23:return xe()===161&&Ha(Gt)?!1:Cf(xe());case 13:return Cf(xe())||xe()===19;case 14:return!0;case 25:return!0;case 26:return ce.fail("ParsingContext.Count used as a context");default:ce.assertNever(je,"Non-exhaustive case in 'isListElement'.")}}function Eg(){if(ce.assert(xe()===19),rr()===20){const je=rr();return je===28||je===19||je===96||je===119}return!0}function Sv(){return rr(),q_()}function jT(){return rr(),Cf(xe())}function Ev(){return rr(),D8(xe())}function S0(){return xe()===119||xe()===96?Ha(k1):!1}function k1(){return rr(),dr()}function tn(){return rr(),Mo()}function fi(je){if(xe()===1)return!0;switch(je){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return xe()===20;case 3:return xe()===20||xe()===84||xe()===90;case 7:return xe()===19||xe()===96||xe()===119;case 8:return ya();case 19:return xe()===32||xe()===21||xe()===19||xe()===96||xe()===119;case 11:return xe()===22||xe()===27;case 15:case 21:case 10:return xe()===24;case 17:case 16:case 18:return xe()===22||xe()===24;case 20:return xe()!==28;case 22:return xe()===19||xe()===20;case 13:return xe()===32||xe()===44;case 14:return xe()===30&&Ha(hC);default:return!1}}function ya(){return!!(rd()||qe(xe())||xe()===39)}function bu(){ce.assert(ho,"Missing parsing context");for(let je=0;je<26;je++)if(ho&1<=0)}function Gv(je){return je===6?w.An_enum_member_name_must_be_followed_by_a_or:void 0}function jv(){const je=nm([],$e());return je.isMissingList=!0,je}function yy(je){return!!je.isMissingList}function ub(je,Vt,zn,zr){if(Ma(zn)){const xi=Wh(je,Vt);return Ma(zr),xi}return jv()}function E0(je,Vt){const zn=$e();let zr=je?hy(Vt):oh(Vt);for(;m_(25)&&xe()!==30;)zr=po(O.createQualifiedName(zr,MA(je,!1)),zn);return zr}function P2(je,Vt){return po(O.createQualifiedName(je,Vt),je.pos)}function MA(je,Vt){if(r.hasPrecedingLineBreak()&&Cf(xe())&&Ha(P_))return gy(80,!0,w.Identifier_expected);if(xe()===81){const zn=Zc();return Vt?zn:gy(80,!0,w.Identifier_expected)}return je?hy():oh()}function aw(je){const Vt=$e(),zn=[];let zr;do zr=X_(je),zn.push(zr);while(zr.literal.kind===17);return nm(zn,Vt)}function DI(je){const Vt=$e();return po(O.createTemplateExpression(y_(je),aw(je)),Vt)}function Me(){const je=$e();return po(O.createTemplateLiteralType(y_(!1),jn()),je)}function jn(){const je=$e(),Vt=[];let zn;do zn=Mi(),Vt.push(zn);while(zn.literal.kind===17);return nm(Vt,je)}function Mi(){const je=$e();return po(O.createTemplateLiteralTypeSpan(Eu(),js(!1)),je)}function js(je){return xe()===20?(Qa(je),l_()):Kh(18,w._0_expected,Nd(20))}function X_(je){const Vt=$e();return po(O.createTemplateSpan(er(Pr),js(je)),Vt)}function $l(){return Ap(xe())}function y_(je){!je&&r.getTokenFlags()&26656&&Qa(!1);const Vt=Ap(xe());return ce.assert(Vt.kind===16,"Template head has wrong token kind"),Vt}function l_(){const je=Ap(xe());return ce.assert(je.kind===17||je.kind===18,"Template fragment has wrong token kind"),je}function Ph(je){const Vt=je===15||je===18,zn=r.getTokenText();return zn.substring(1,zn.length-(r.isUnterminated()?0:Vt?1:2))}function Ap(je){const Vt=$e(),zn=zM(je)?O.createTemplateLiteralLikeNode(je,r.getTokenValue(),Ph(je),r.getTokenFlags()&7176):je===9?ee(r.getTokenValue(),r.getNumericLiteralFlags()):je===11?te(r.getTokenValue(),void 0,r.hasExtendedUnicodeEscape()):c9(je)?oe(je,r.getTokenValue()):ce.fail();return r.hasExtendedUnicodeEscape()&&(zn.hasExtendedUnicodeEscape=!0),r.isUnterminated()&&(zn.isUnterminated=!0),rr(),po(zn,Vt)}function Mb(){return E0(!0,w.Type_expected)}function _x(){if(!r.hasPrecedingLineBreak()&&Ks()===30)return ub(20,Eu,30,32)}function _S(){const je=$e();return po(O.createTypeReferenceNode(Mb(),_x()),je)}function e(je){switch(je.kind){case 183:return Um(je.typeName);case 184:case 185:{const{parameters:Vt,type:zn}=je;return yy(Vt)||e(zn)}case 196:return e(je.type);default:return!1}}function n(je){return rr(),po(O.createTypePredicateNode(void 0,je,Eu()),je.pos)}function i(){const je=$e();return rr(),po(O.createThisTypeNode(),je)}function c(){const je=$e();return rr(),po(O.createJSDocAllType(),je)}function u(){const je=$e();return rr(),po(O.createJSDocNonNullableType(os(),!1),je)}function d(){const je=$e();return rr(),xe()===28||xe()===20||xe()===22||xe()===32||xe()===64||xe()===52?po(O.createJSDocUnknownType(),je):po(O.createJSDocNullableType(Eu(),!1),je)}function h(){const je=$e(),Vt=Zt();if(Ha(a0)){rr();const zn=Pe(36),zr=we(59,!1);return Ea(po(O.createJSDocFunctionType(zn,zr),je),Vt)}return po(O.createTypeReferenceNode(hy(),void 0),je)}function S(){const je=$e();let Vt;return(xe()===110||xe()===105)&&(Vt=hy(),Ma(59)),po(O.createParameterDeclaration(void 0,void 0,Vt,void 0,E(),void 0),je)}function E(){r.setInJSDocType(!0);const je=$e();if(m_(144)){const zr=O.createJSDocNamepathType(void 0);e:for(;;)switch(xe()){case 20:case 1:case 28:case 5:break e;default:mi()}return r.setInJSDocType(!1),po(zr,je)}const Vt=m_(26);let zn=Cu();return r.setInJSDocType(!1),Vt&&(zn=po(O.createJSDocVariadicType(zn),je)),xe()===64?(rr(),po(O.createJSDocOptionalType(zn),je)):zn}function P(){const je=$e();Ma(114);const Vt=E0(!0),zn=r.hasPrecedingLineBreak()?void 0:ft();return po(O.createTypeQueryNode(Vt,zn),je)}function k(){const je=$e(),Vt=Li(!1,!0),zn=oh();let zr,xi;m_(96)&&(Mo()||!dr()?zr=Eu():xi=Pc());const xo=m_(64)?Eu():void 0,Wc=O.createTypeParameterDeclaration(Vt,zn,zr,xo);return Wc.expression=xi,po(Wc,je)}function F(){if(xe()===30)return ub(19,k,30,32)}function $(je){return xe()===26||Uf()||qg(xe())||xe()===60||Mo(!je)}function J(je){const Vt=Y_(w.Private_identifiers_cannot_be_used_as_parameters);return KU(Vt)===0&&!gt(je)&&qg(xe())&&rr(),Vt}function X(){return x_()||xe()===23||xe()===19}function ie(je){return ve(je)}function ae(je){return ve(je,!1)}function ve(je,Vt=!0){const zn=$e(),zr=Zt(),xi=je?Kn(()=>Li(!0)):gn(()=>Li(!0));if(xe()===110){const _c=O.createParameterDeclaration(xi,void 0,GT(!0),void 0,He(),void 0),Sl=pp(xi);return Sl&&Re(Sl,w.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ea(po(_c,zn),zr)}const xo=ha;ha=!1;const Wc=Yu(26);if(!Vt&&!X())return;const hu=Ea(po(O.createParameterDeclaration(xi,Wc,J(xi),Yu(58),He(),Bt()),zn),zr);return ha=xo,hu}function we(je,Vt){if(Fe(je,Vt))return li(Cu)}function Fe(je,Vt){return je===39?(Ma(je),!0):m_(59)?!0:Vt&&xe()===39?(Ui(w._0_expected,Nd(59)),rr(),!0):!1}function et(je,Vt){const zn=Cn(),zr=es();Lo(!!(je&1)),Aa(!!(je&2));const xi=je&32?Wh(17,S):Wh(16,()=>Vt?ie(zr):ae(zr));return Lo(zn),Aa(zr),xi}function Pe(je){if(!Ma(21))return jv();const Vt=et(je,!0);return Ma(22),Vt}function dt(){m_(28)||lm()}function Ie(je){const Vt=$e(),zn=Zt();je===180&&Ma(105);const zr=F(),xi=Pe(4),xo=we(59,!0);dt();const Wc=je===179?O.createCallSignature(zr,xi,xo):O.createConstructSignature(zr,xi,xo);return Ea(po(Wc,Vt),zn)}function ct(){return xe()===23&&Ha(Ct)}function Ct(){if(rr(),xe()===26||xe()===24)return!0;if(qg(xe())){if(rr(),q_())return!0}else if(q_())rr();else return!1;return xe()===59||xe()===28?!0:xe()!==58?!1:(rr(),xe()===59||xe()===28||xe()===24)}function Lt(je,Vt,zn){const zr=ub(16,()=>ie(!1),23,24),xi=He();dt();const xo=O.createIndexSignature(zn,zr,xi);return Ea(po(xo,je),Vt)}function Ze(je,Vt,zn){const zr=hi(),xi=Yu(58);let xo;if(xe()===21||xe()===30){const Wc=F(),hu=Pe(4),_c=we(59,!0);xo=O.createMethodSignature(zn,zr,xi,Wc,hu,_c)}else{const Wc=He();xo=O.createPropertySignature(zn,zr,xi,Wc),xe()===64&&(xo.initializer=Bt())}return dt(),Ea(po(xo,je),Vt)}function Ke(){if(xe()===21||xe()===30||xe()===139||xe()===153)return!0;let je=!1;for(;qg(xe());)je=!0,rr();return xe()===23?!0:(_e()&&(je=!0,rr()),je?xe()===21||xe()===30||xe()===58||xe()===59||xe()===28||rd():!1)}function st(){if(xe()===21||xe()===30)return Ie(179);if(xe()===105&&Ha(It))return Ie(180);const je=$e(),Vt=Zt(),zn=Li(!1);return ka(139)?eg(je,Vt,zn,177,4):ka(153)?eg(je,Vt,zn,178,4):ct()?Lt(je,Vt,zn):Ze(je,Vt,zn)}function It(){return rr(),xe()===21||xe()===30}function Yt(){return rr()===25}function Et(){switch(rr()){case 21:case 30:case 25:return!0}return!1}function at(){const je=$e();return po(O.createTypeLiteralNode(Qt()),je)}function Qt(){let je;return Ma(19)?(je=K_(4,st),Ma(20)):je=jv(),je}function nn(){return rr(),xe()===40||xe()===41?rr()===148:(xe()===148&&rr(),xe()===23&&Sv()&&rr()===103)}function Rn(){const je=$e(),Vt=hy();Ma(103);const zn=Eu();return po(O.createTypeParameterDeclaration(void 0,Vt,zn,void 0),je)}function cn(){const je=$e();Ma(19);let Vt;(xe()===148||xe()===40||xe()===41)&&(Vt=H0(),Vt.kind!==148&&Ma(148)),Ma(23);const zn=Rn(),zr=m_(130)?Eu():void 0;Ma(24);let xi;(xe()===58||xe()===40||xe()===41)&&(xi=H0(),xi.kind!==58&&Ma(58));const xo=He();lm();const Wc=K_(4,st);return Ma(20),po(O.createMappedTypeNode(Vt,zn,zr,xi,xo,Wc),je)}function qt(){const je=$e();if(m_(26))return po(O.createRestTypeNode(Eu()),je);const Vt=Eu();if(MG(Vt)&&Vt.pos===Vt.type.pos){const zn=O.createOptionalTypeNode(Vt.type);return vr(zn,Vt),zn.flags=Vt.flags,zn}return Vt}function Kt(){return rr()===59||xe()===58&&rr()===59}function wr(){return xe()===26?Cf(rr())&&Kt():Cf(xe())&&Kt()}function Wr(){if(Ha(wr)){const je=$e(),Vt=Zt(),zn=Yu(26),zr=hy(),xi=Yu(58);Ma(59);const xo=qt(),Wc=O.createNamedTupleMember(zn,zr,xi,xo);return Ea(po(Wc,je),Vt)}return qt()}function jt(){const je=$e();return po(O.createTupleTypeNode(ub(21,Wr,23,24)),je)}function En(){const je=$e();Ma(21);const Vt=Eu();return Ma(22),po(O.createParenthesizedType(Vt),je)}function fr(){let je;if(xe()===128){const Vt=$e();rr();const zn=po(Ne(128),Vt);je=nm([zn],Vt)}return je}function Tr(){const je=$e(),Vt=Zt(),zn=fr(),zr=m_(105);ce.assert(!zn||zr,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const xi=F(),xo=Pe(4),Wc=we(39,!1),hu=zr?O.createConstructorTypeNode(zn,xi,xo,Wc):O.createFunctionTypeNode(xi,xo,Wc);return Ea(po(hu,je),Vt)}function Vr(){const je=H0();return xe()===25?void 0:je}function Pn(je){const Vt=$e();je&&rr();let zn=xe()===112||xe()===97||xe()===106?H0():Ap(xe());return je&&(zn=po(O.createPrefixUnaryExpression(41,zn),Vt)),po(O.createLiteralTypeNode(zn),Vt)}function Fr(){return rr(),xe()===102}function Ki(){const je=$e(),Vt=r.getTokenStart();Ma(19);const zn=r.hasPrecedingLineBreak();Ma(132),Ma(59);const zr=OA(!0);if(!Ma(20)){const xi=Yf(In);xi&&xi.code===w._0_expected.code&&ml(xi,s6(un,Vt,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return po(O.createImportTypeAssertionContainer(zr,zn),je)}function io(){on|=4194304;const je=$e(),Vt=m_(114);Ma(102),Ma(21);const zn=Eu();let zr;m_(28)&&(zr=Ki()),Ma(22);const xi=m_(25)?Mb():void 0,xo=_x();return po(O.createImportTypeNode(zn,zr,xi,xo,Vt),je)}function no(){return rr(),xe()===9||xe()===10}function os(){switch(xe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return mu(Vr)||_S();case 67:r.reScanAsteriskEqualsToken();case 42:return c();case 61:r.reScanQuestionToken();case 58:return d();case 100:return h();case 54:return u();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Pn();case 41:return Ha(no)?Pn(!0):_S();case 116:return H0();case 110:{const je=i();return xe()===142&&!r.hasPrecedingLineBreak()?n(je):je}case 114:return Ha(Fr)?io():P();case 19:return Ha(nn)?cn():at();case 23:return jt();case 21:return En();case 102:return io();case 131:return Ha(P_)?w_():_S();case 16:return Me();default:return _S()}}function Mo(je){switch(xe()){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!je;case 41:return!je&&Ha(no);case 21:return!je&&Ha($i);default:return q_()}}function $i(){return rr(),xe()===22||$(!1)||Mo()}function ki(){const je=$e();let Vt=os();for(;!r.hasPrecedingLineBreak();)switch(xe()){case 54:rr(),Vt=po(O.createJSDocNonNullableType(Vt,!0),je);break;case 58:if(Ha(tn))return Vt;rr(),Vt=po(O.createJSDocNullableType(Vt,!0),je);break;case 23:if(Ma(23),Mo()){const zn=Eu();Ma(24),Vt=po(O.createIndexedAccessTypeNode(Vt,zn),je)}else Ma(24),Vt=po(O.createArrayTypeNode(Vt),je);break;default:return Vt}return Vt}function gc(je){const Vt=$e();return Ma(je),po(O.createTypeOperatorNode(je,qn()),Vt)}function Wl(){if(m_(96)){const je=Ir(Eu);if(Qr()||xe()!==58)return je}}function Jc(){const je=$e(),Vt=oh(),zn=mu(Wl),zr=O.createTypeParameterDeclaration(void 0,Vt,zn);return po(zr,je)}function au(){const je=$e();return Ma(140),po(O.createInferTypeNode(Jc()),je)}function qn(){const je=xe();switch(je){case 143:case 158:case 148:return gc(je);case 140:return au()}return li(ki)}function za(je){if(us()){const Vt=Tr();let zn;return Z2(Vt)?zn=je?w.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:w.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:zn=je?w.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:w.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(Vt,zn),Vt}}function Ia(je,Vt,zn){const zr=$e(),xi=je===52,xo=m_(je);let Wc=xo&&za(xi)||Vt();if(xe()===je||xo){const hu=[Wc];for(;m_(je);)hu.push(za(xi)||Vt());Wc=po(zn(nm(hu,zr)),zr)}return Wc}function zi(){return Ia(51,qn,O.createIntersectionTypeNode)}function na(){return Ia(52,zi,O.createUnionTypeNode)}function _a(){return rr(),xe()===105}function us(){return xe()===30||xe()===21&&Ha(Qu)?!0:xe()===105||xe()===128&&Ha(_a)}function Au(){if(qg(xe())&&Li(!1),q_()||xe()===110)return rr(),!0;if(xe()===23||xe()===19){const je=In.length;return Y_(),je===In.length}return!1}function Qu(){return rr(),!!(xe()===22||xe()===26||Au()&&(xe()===59||xe()===28||xe()===58||xe()===64||xe()===22&&(rr(),xe()===39)))}function Cu(){const je=$e(),Vt=q_()&&mu(yf),zn=Eu();return Vt?po(O.createTypePredicateNode(void 0,Vt,zn),je):zn}function yf(){const je=oh();if(xe()===142&&!r.hasPrecedingLineBreak())return rr(),je}function w_(){const je=$e(),Vt=Kh(131),zn=xe()===110?i():oh(),zr=m_(142)?Eu():void 0;return po(O.createTypePredicateNode(Vt,zn,zr),je)}function Eu(){if(Nc&81920)return sl(81920,Eu);if(us())return Tr();const je=$e(),Vt=na();if(!Qr()&&!r.hasPrecedingLineBreak()&&m_(96)){const zn=Ir(Eu);Ma(58);const zr=li(Eu);Ma(59);const xi=li(Eu);return po(O.createConditionalTypeNode(Vt,zn,zr,xi),je)}return Vt}function He(){return m_(59)?Eu():void 0}function Hn(){switch(xe()){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 Ha(Et);default:return q_()}}function dr(){if(Hn())return!0;switch(xe()){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 ge()?!0:q_()}}function Mr(){return xe()!==19&&xe()!==100&&xe()!==86&&xe()!==60&&dr()}function Pr(){const je=co();je&&To(!1);const Vt=$e();let zn=ln(!0),zr;for(;zr=Yu(28);)zn=Jn(zn,zr,ln(!0),Vt);return je&&To(!0),zn}function Bt(){return m_(64)?ln(!0):void 0}function ln(je){if(Wn())return Ge();const Vt=Ei(je)||go(je);if(Vt)return Vt;const zn=$e(),zr=Zt(),xi=kt(0);return xi.kind===80&&xe()===39?Br(zn,xi,je,zr,void 0):FE(xi)&&zN(zo())?Jn(xi,H0(),ln(je),zn):Ce(xi,zn,je)}function Wn(){return xe()===127?Cn()?!0:Ha(P1):!1}function $r(){return rr(),!r.hasPrecedingLineBreak()&&q_()}function Ge(){const je=$e();return rr(),!r.hasPrecedingLineBreak()&&(xe()===42||dr())?po(O.createYieldExpression(Yu(42),ln(!0)),je):po(O.createYieldExpression(void 0,void 0),je)}function Br(je,Vt,zn,zr,xi){ce.assert(xe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const xo=O.createParameterDeclaration(void 0,void 0,Vt,void 0,void 0,void 0);po(xo,Vt.pos);const Wc=nm([xo],xo.pos,xo.end),hu=Kh(39),_c=ze(!!xi,zn),Sl=O.createArrowFunction(xi,void 0,Wc,void 0,hu,_c);return Ea(po(Sl,je),zr)}function Ei(je){const Vt=Ln();if(Vt!==0)return Vt===1?Io(!0,!0):mu(()=>yi(je))}function Ln(){return xe()===21||xe()===30||xe()===134?Ha(Sr):xe()===39?1:0}function Sr(){if(xe()===134&&(rr(),r.hasPrecedingLineBreak()||xe()!==21&&xe()!==30))return 0;const je=xe(),Vt=rr();if(je===21){if(Vt===22)switch(rr()){case 39:case 59:case 19:return 1;default:return 0}if(Vt===23||Vt===19)return 2;if(Vt===26)return 1;if(qg(Vt)&&Vt!==134&&Ha(Sv))return rr()===130?0:1;if(!q_()&&Vt!==110)return 0;switch(rr()){case 59:return 1;case 58:return rr(),xe()===59||xe()===28||xe()===64||xe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return ce.assert(je===30),!q_()&&xe()!==87?0:Ut===1?Ha(()=>{m_(87);const zr=rr();if(zr===96)switch(rr()){case 64:case 32:case 44:return!1;default:return!0}else if(zr===28||zr===64)return!0;return!1})?1:0:2}function yi(je){const Vt=r.getTokenStart();if(di!=null&&di.has(Vt))return;const zn=Io(!1,je);return zn||(di||(di=new Set)).add(Vt),zn}function go(je){if(xe()===134&&Ha(Ao)===1){const Vt=$e(),zn=Zt(),zr=yo(),xi=kt(0);return Br(Vt,xi,je,zn,zr)}}function Ao(){if(xe()===134){if(rr(),r.hasPrecedingLineBreak()||xe()===39)return 0;const je=kt(0);if(!r.hasPrecedingLineBreak()&&je.kind===80&&xe()===39)return 1}return 0}function Io(je,Vt){const zn=$e(),zr=Zt(),xi=yo(),xo=gt(xi,Lu)?2:0,Wc=F();let hu;if(Ma(21)){if(je)hu=et(xo,je);else{const mx=et(xo,je);if(!mx)return;hu=mx}if(!Ma(22)&&!je)return}else{if(!je)return;hu=jv()}const _c=xe()===59,Sl=we(59,!1);if(Sl&&!je&&e(Sl))return;let kf=Sl;for(;(kf==null?void 0:kf.kind)===196;)kf=kf.type;const Rp=kf&&LG(kf);if(!je&&xe()!==39&&(Rp||xe()!==19))return;const hn=xe(),v_=Kh(39),yh=hn===39||hn===19?ze(gt(xi,Lu),Vt):oh();if(!Vt&&_c&&xe()!==59)return;const fm=O.createArrowFunction(xi,Wc,hu,Sl,v_,yh);return Ea(po(fm,zn),zr)}function ze(je,Vt){if(xe()===19)return ah(je?2:0);if(xe()!==27&&xe()!==100&&xe()!==86&&fb()&&!Mr())return ah(16|(je?2:0));const zn=ha;ha=!1;const zr=je?Kn(()=>ln(Vt)):gn(()=>ln(Vt));return ha=zn,zr}function Ce(je,Vt,zn){const zr=Yu(58);if(!zr)return je;let xi;return po(O.createConditionalExpression(je,zr,sl(s,()=>ln(!1)),xi=Kh(59),wx(xi)?ln(zn):gy(80,!1,w._0_expected,Nd(59))),Vt)}function kt(je){const Vt=$e(),zn=Pc();return Mt(je,zn,Vt)}function qe(je){return je===103||je===165}function Mt(je,Vt,zn){for(;;){zo();const zr=TH(xe());if(!(xe()===43?zr>=je:zr>je)||xe()===103&&oi())break;if(xe()===130||xe()===152){if(r.hasPrecedingLineBreak())break;{const xo=xe();rr(),Vt=xo===152?mn(Vt,Eu()):Nn(Vt,Eu())}}else Vt=Jn(Vt,H0(),kt(zr),zn)}return Vt}function ge(){return oi()&&xe()===103?!1:TH(xe())>0}function mn(je,Vt){return po(O.createSatisfiesExpression(je,Vt),je.pos)}function Jn(je,Vt,zn,zr){return po(O.createBinaryExpression(je,Vt,zn),zr)}function Nn(je,Vt){return po(O.createAsExpression(je,Vt),je.pos)}function Lr(){const je=$e();return po(O.createPrefixUnaryExpression(xe(),Un(hc)),je)}function qi(){const je=$e();return po(O.createDeleteExpression(Un(hc)),je)}function vo(){const je=$e();return po(O.createTypeOfExpression(Un(hc)),je)}function Ro(){const je=$e();return po(O.createVoidExpression(Un(hc)),je)}function Ts(){return xe()===135?es()?!0:Ha(P1):!1}function Cc(){const je=$e();return po(O.createAwaitExpression(Un(hc)),je)}function Pc(){if(bl()){const zn=$e(),zr=Tc();return xe()===43?Mt(TH(xe()),zr,zn):zr}const je=xe(),Vt=hc();if(xe()===43){const zn=ep(pn,Vt.pos),{end:zr}=Vt;Vt.kind===216?We(zn,zr,w.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(ce.assert(Nde(je)),We(zn,zr,w.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,Nd(je)))}return Vt}function hc(){switch(xe()){case 40:case 41:case 55:case 54:return Lr();case 91:return qi();case 114:return vo();case 116:return Ro();case 30:return Ut===1?G_(!0,void 0,void 0,!0):oy();case 135:if(Ts())return Cc();default:return Tc()}}function bl(){switch(xe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ut!==1)return!1;default:return!0}}function Tc(){if(xe()===46||xe()===47){const Vt=$e();return po(O.createPrefixUnaryExpression(xe(),Un(Tf)),Vt)}else if(Ut===1&&xe()===30&&Ha(Ev))return G_(!0);const je=Tf();if(ce.assert(FE(je)),(xe()===46||xe()===47)&&!r.hasPrecedingLineBreak()){const Vt=xe();return rr(),po(O.createPostfixUnaryExpression(je,Vt),je.pos)}return je}function Tf(){const je=$e();let Vt;return xe()===102?Ha(It)?(on|=4194304,Vt=H0()):Ha(Yt)?(rr(),rr(),Vt=po(O.createMetaProperty(102,hy()),je),on|=8388608):Vt=ma():Vt=xe()===108?Bl():ma(),va(je,Vt)}function ma(){const je=$e(),Vt=fe();return Qi(je,Vt,!0)}function Bl(){const je=$e();let Vt=H0();if(xe()===30){const zn=$e(),zr=mu(Nm);zr!==void 0&&(We(zn,$e(),w.super_may_not_use_type_arguments),Pm()||(Vt=O.createExpressionWithTypeArguments(Vt,zr)))}return xe()===21||xe()===25||xe()===23?Vt:(Kh(25,w.super_must_be_followed_by_an_argument_list_or_member_access),po(pt(Vt,MA(!0,!0)),je))}function G_(je,Vt,zn,zr=!1){const xi=$e(),xo=Cp(je);let Wc;if(xo.kind===286){let hu=Ym(xo),_c;const Sl=hu[hu.length-1];if((Sl==null?void 0:Sl.kind)===284&&!E6(Sl.openingElement.tagName,Sl.closingElement.tagName)&&E6(xo.tagName,Sl.closingElement.tagName)){const kf=Sl.children.end,Rp=po(O.createJsxElement(Sl.openingElement,Sl.children,po(O.createJsxClosingElement(po(de(""),kf,kf)),kf,kf)),Sl.openingElement.pos,kf);hu=nm([...hu.slice(0,hu.length-1),Rp],hu.pos,kf),_c=Sl.closingElement}else _c=km(xo,je),E6(xo.tagName,_c.tagName)||(zn&&rD(zn)&&E6(_c.tagName,zn.tagName)?Re(xo.tagName,w.JSX_element_0_has_no_corresponding_closing_tag,die(pn,xo.tagName)):Re(_c.tagName,w.Expected_corresponding_JSX_closing_tag_for_0,die(pn,xo.tagName)));Wc=po(O.createJsxElement(xo,hu,_c),xi)}else xo.kind===289?Wc=po(O.createJsxFragment(xo,Ym(xo),M_(je)),xi):(ce.assert(xo.kind===285),Wc=xo);if(!zr&&je&&xe()===30){const hu=typeof Vt>"u"?Wc.pos:Vt,_c=mu(()=>G_(!0,hu));if(_c){const Sl=gy(28,!1);return f3(Sl,_c.pos,0),We(ep(pn,hu),_c.end,w.JSX_expressions_must_have_one_parent_element),po(O.createBinaryExpression(Wc,Sl,_c),xi)}}return Wc}function u_(){const je=$e(),Vt=O.createJsxText(r.getTokenValue(),ei===13);return ei=r.scanJsxToken(),po(Vt,je)}function xa(je,Vt){switch(Vt){case 1:if(zx(je))Re(je,w.JSX_fragment_has_no_corresponding_closing_tag);else{const zn=je.tagName,zr=Math.min(ep(pn,zn.pos),zn.end);We(zr,zn.end,w.JSX_element_0_has_no_corresponding_closing_tag,die(pn,je.tagName))}return;case 31:case 7:return;case 12:case 13:return u_();case 19:return Wy(!1);case 30:return G_(!1,void 0,je);default:return ce.assertNever(Vt)}}function Ym(je){const Vt=[],zn=$e(),zr=ho;for(ho|=16384;;){const xi=xa(je,ei=r.reScanJsxToken());if(!xi||(Vt.push(xi),rD(je)&&(xi==null?void 0:xi.kind)===284&&!E6(xi.openingElement.tagName,xi.closingElement.tagName)&&E6(je.tagName,xi.closingElement.tagName)))break}return ho=zr,nm(Vt,zn)}function mf(){const je=$e();return po(O.createJsxAttributes(K_(13,Og)),je)}function Cp(je){const Vt=$e();if(Ma(30),xe()===32)return qd(),po(O.createJsxOpeningFragment(),Vt);const zn=Yg(),zr=Nc&524288?void 0:ft(),xi=mf();let xo;return xe()===32?(qd(),xo=O.createJsxOpeningElement(zn,zr,xi)):(Ma(44),Ma(32,void 0,!1)&&(je?rr():qd()),xo=O.createJsxSelfClosingElement(zn,zr,xi)),po(xo,Vt)}function Yg(){const je=$e(),Vt=xg();if(dI(Vt))return Vt;let zn=Vt;for(;m_(25);)zn=po(pt(zn,MA(!0,!1)),je);return zn}function xg(){const je=$e();ou();const Vt=xe()===110,zn=hy();return m_(59)?(ou(),po(O.createJsxNamespacedName(zn,hy()),je)):Vt?po(O.createToken(110),je):zn}function Wy(je){const Vt=$e();if(!Ma(19))return;let zn,zr;return xe()!==20&&(zn=Yu(26),zr=Pr()),je?Ma(20):Ma(20,void 0,!1)&&qd(),po(O.createJsxExpression(zn,zr),Vt)}function Og(){if(xe()===19)return og();const je=$e();return po(O.createJsxAttribute(R_(),pl()),je)}function pl(){if(xe()===64){if(z_()===11)return $l();if(xe()===19)return Wy(!0);if(xe()===30)return G_(!0);Ui(w.or_JSX_element_expected)}}function R_(){const je=$e();ou();const Vt=hy();return m_(59)?(ou(),po(O.createJsxNamespacedName(Vt,hy()),je)):Vt}function og(){const je=$e();Ma(19),Ma(26);const Vt=Pr();return Ma(20),po(O.createJsxSpreadAttribute(Vt),je)}function km(je,Vt){const zn=$e();Ma(31);const zr=Yg();return Ma(32,void 0,!1)&&(Vt||!E6(je.tagName,zr)?rr():qd()),po(O.createJsxClosingElement(zr),zn)}function M_(je){const Vt=$e();return Ma(31),Ma(32,w.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(je?rr():qd()),po(O.createJsxJsxClosingFragment(),Vt)}function oy(){ce.assert(Ut!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const je=$e();Ma(30);const Vt=Eu();Ma(32);const zn=hc();return po(O.createTypeAssertion(Vt,zn),je)}function bE(){return rr(),Cf(xe())||xe()===23||Pm()}function hh(){return xe()===29&&Ha(bE)}function qo(je){if(je.flags&64)return!0;if(cC(je)){let Vt=je.expression;for(;cC(Vt)&&!(Vt.flags&64);)Vt=Vt.expression;if(Vt.flags&64){for(;cC(je);)je.flags|=64,je=je.expression;return!0}}return!1}function d_(je,Vt,zn){const zr=MA(!0,!0),xi=zn||qo(Vt),xo=xi?Le(Vt,zn,zr):pt(Vt,zr);if(xi&&Gu(xo.name)&&Re(xo.name,w.An_optional_chain_cannot_contain_private_identifiers),WT(Vt)&&Vt.typeArguments){const Wc=Vt.typeArguments.pos-1,hu=ep(pn,Vt.typeArguments.end)+1;We(Wc,hu,w.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return po(xo,je)}function Ka(je,Vt,zn){let zr;if(xe()===24)zr=gy(80,!0,w.An_element_access_expression_should_take_an_argument);else{const xo=er(Pr);Qv(xo)&&(xo.text=fS(xo.text)),zr=xo}Ma(24);const xi=zn||qo(Vt)?ke(Vt,zn,zr):ht(Vt,zr);return po(xi,je)}function Qi(je,Vt,zn){for(;;){let zr,xi=!1;if(zn&&hh()?(zr=Kh(29),xi=Cf(xe())):xi=m_(25),xi){Vt=d_(je,Vt,zr);continue}if((zr||!co())&&m_(23)){Vt=Ka(je,Vt,zr);continue}if(Pm()){Vt=!zr&&Vt.kind===233?Ag(je,Vt.expression,zr,Vt.typeArguments):Ag(je,Vt,zr,void 0);continue}if(!zr){if(xe()===54&&!r.hasPrecedingLineBreak()){rr(),Vt=po(O.createNonNullExpression(Vt),je);continue}const xo=mu(Nm);if(xo){Vt=po(O.createExpressionWithTypeArguments(Vt,xo),je);continue}}return Vt}}function Pm(){return xe()===15||xe()===16}function Ag(je,Vt,zn,zr){const xi=O.createTaggedTemplateExpression(Vt,zr,xe()===15?(Qa(!0),$l()):DI(!0));return(zn||Vt.flags&64)&&(xi.flags|=64),xi.questionDotToken=zn,po(xi,je)}function va(je,Vt){for(;;){Vt=Qi(je,Vt,!0);let zn;const zr=Yu(29);if(zr&&(zn=mu(Nm),Pm())){Vt=Ag(je,Vt,zr,zn);continue}if(zn||xe()===21){!zr&&Vt.kind===233&&(zn=Vt.typeArguments,Vt=Vt.expression);const xi=x0(),xo=zr||qo(Vt)?Dt(Vt,zr,zn,xi):_t(Vt,zn,xi);Vt=po(xo,je);continue}if(zr){const xi=gy(80,!1,w.Identifier_expected);Vt=po(Le(Vt,zr,xi),je)}break}return Vt}function x0(){Ma(21);const je=Wh(11,$o);return Ma(22),je}function Nm(){if(Nc&524288||Ks()!==30)return;rr();const je=Wh(20,Eu);if(zo()===32)return rr(),je&&Md()?je:void 0}function Md(){switch(xe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return r.hasPrecedingLineBreak()||ge()||!dr()}function fe(){switch(xe()){case 15:r.getTokenFlags()&26656&&Qa(!1);case 9:case 10:case 11:return $l();case 110:case 108:case 106:case 112:case 97:return H0();case 21:return _n();case 23:return Sc();case 19:return Fs();case 134:if(!Ha(Bh))break;return Tl();case 60:return Oo();case 86:return ca();case 100:return Tl();case 105:return Gd();case 44:case 69:if(Ca()===14)return $l();break;case 16:return DI(!1);case 81:return Zc()}return oh(w.Expression_expected)}function _n(){const je=$e(),Vt=Zt();Ma(21);const zn=er(Pr);return Ma(22),Ea(po(it(zn),je),Vt)}function Xn(){const je=$e();Ma(26);const Vt=ln(!0);return po(O.createSpreadElement(Vt),je)}function _i(){return xe()===26?Xn():xe()===28?po(O.createOmittedExpression(),$e()):ln(!0)}function $o(){return sl(s,_i)}function Sc(){const je=$e(),Vt=r.getTokenStart(),zn=Ma(23),zr=r.hasPrecedingLineBreak(),xi=Wh(15,_i);return zv(23,24,zn,Vt),po(Be(xi,zr),je)}function xs(){const je=$e(),Vt=Zt();if(Yu(26)){const kf=ln(!0);return Ea(po(O.createSpreadAssignment(kf),je),Vt)}const zn=Li(!0);if(ka(139))return eg(je,Vt,zn,177,0);if(ka(153))return eg(je,Vt,zn,178,0);const zr=Yu(42),xi=q_(),xo=hi(),Wc=Yu(58),hu=Yu(54);if(zr||xe()===21||xe()===30)return Vv(je,Vt,zn,zr,xo,Wc,hu);let _c;if(xi&&xe()!==59){const kf=Yu(64),Rp=kf?er(()=>ln(!0)):void 0;_c=O.createShorthandPropertyAssignment(xo,Rp),_c.equalsToken=kf}else{Ma(59);const kf=er(()=>ln(!0));_c=O.createPropertyAssignment(xo,kf)}return _c.modifiers=zn,_c.questionToken=Wc,_c.exclamationToken=hu,Ea(po(_c,je),Vt)}function Fs(){const je=$e(),Vt=r.getTokenStart(),zn=Ma(19),zr=r.hasPrecedingLineBreak(),xi=Wh(12,xs,!0);return zv(19,20,zn,Vt),po(Ve(xi,zr),je)}function Tl(){const je=co();To(!1);const Vt=$e(),zn=Zt(),zr=Li(!1);Ma(100);const xi=Yu(42),xo=xi?1:0,Wc=gt(zr,Lu)?2:0,hu=xo&&Wc?qr(fc):xo?_o(fc):Wc?Kn(fc):fc(),_c=F(),Sl=Pe(xo|Wc),kf=we(59,!1),Rp=ah(xo|Wc);To(je);const hn=O.createFunctionExpression(zr,xi,hu,_c,Sl,kf,Rp);return Ea(po(hn,Vt),zn)}function fc(){return x_()?vE():void 0}function Gd(){const je=$e();if(Ma(105),m_(25)){const xo=hy();return po(O.createMetaProperty(105,xo),je)}const Vt=$e();let zn=Qi(Vt,fe(),!1),zr;zn.kind===233&&(zr=zn.typeArguments,zn=zn.expression),xe()===29&&Ui(w.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,die(pn,zn));const xi=xe()===21?x0():void 0;return po(Ft(zn,zr,xi),je)}function ag(je,Vt){const zn=$e(),zr=Zt(),xi=r.getTokenStart(),xo=Ma(19,Vt);if(xo||je){const Wc=r.hasPrecedingLineBreak(),hu=K_(1,nt);zv(19,20,xo,xi);const _c=Ea(po(Ye(hu,Wc),zn),zr);return xe()===64&&(Ui(w.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),rr()),_c}else{const Wc=jv();return Ea(po(Ye(Wc,void 0),zn),zr)}}function ah(je,Vt){const zn=Cn();Lo(!!(je&1));const zr=es();Aa(!!(je&2));const xi=ha;ha=!1;const xo=co();xo&&To(!1);const Wc=ag(!!(je&16),Vt);return xo&&To(!0),ha=xi,Lo(zn),Aa(zr),Wc}function bm(){const je=$e(),Vt=Zt();return Ma(27),Ea(po(O.createEmptyStatement(),je),Vt)}function ay(){const je=$e(),Vt=Zt();Ma(101);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=nt(),Wc=m_(93)?nt():void 0;return Ea(po(zt(xi,xo,Wc),je),Vt)}function yp(){const je=$e(),Vt=Zt();Ma(92);const zn=nt();Ma(117);const zr=r.getTokenStart(),xi=Ma(21),xo=er(Pr);return zv(21,22,xi,zr),m_(27),Ea(po(O.createDoStatement(zn,xo),je),Vt)}function Cg(){const je=$e(),Vt=Zt();Ma(117);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=nt();return Ea(po(Wt(xi,xo),je),Vt)}function wp(){const je=$e(),Vt=Zt();Ma(99);const zn=Yu(135);Ma(21);let zr;xe()!==27&&(xe()===115||xe()===121||xe()===87||xe()===160&&Ha($0)||xe()===135&&Ha(q0)?zr=vy(!0):zr=Jr(Pr));let xi;if(zn?Ma(165):m_(165)){const xo=er(()=>ln(!0));Ma(22),xi=Mn(zn,zr,xo,nt())}else if(m_(103)){const xo=er(Pr);Ma(22),xi=O.createForInStatement(zr,xo,nt())}else{Ma(27);const xo=xe()!==27&&xe()!==22?er(Pr):void 0;Ma(27);const Wc=xe()!==22?er(Pr):void 0;Ma(22),xi=tt(zr,xo,Wc,nt())}return Ea(po(xi,je),Vt)}function Xp(je){const Vt=$e(),zn=Zt();Ma(je===252?83:88);const zr=rd()?void 0:oh();lm();const xi=je===252?O.createBreakStatement(zr):O.createContinueStatement(zr);return Ea(po(xi,Vt),zn)}function r1(){const je=$e(),Vt=Zt();Ma(107);const zn=rd()?void 0:er(Pr);return lm(),Ea(po(O.createReturnStatement(zn),je),Vt)}function sg(){const je=$e(),Vt=Zt();Ma(118);const zn=r.getTokenStart(),zr=Ma(21),xi=er(Pr);zv(21,22,zr,zn);const xo=vc(67108864,nt);return Ea(po(O.createWithStatement(xi,xo),je),Vt)}function Jt(){const je=$e(),Vt=Zt();Ma(84);const zn=er(Pr);Ma(59);const zr=K_(3,nt);return Ea(po(O.createCaseClause(zn,zr),je),Vt)}function ci(){const je=$e();Ma(90),Ma(59);const Vt=K_(3,nt);return po(O.createDefaultClause(Vt),je)}function da(){return xe()===84?Jt():ci()}function Hu(){const je=$e();Ma(19);const Vt=K_(2,da);return Ma(20),po(O.createCaseBlock(Vt),je)}function t_(){const je=$e(),Vt=Zt();Ma(109),Ma(21);const zn=er(Pr);Ma(22);const zr=Hu();return Ea(po(O.createSwitchStatement(zn,zr),je),Vt)}function A_(){const je=$e(),Vt=Zt();Ma(111);let zn=r.hasPrecedingLineBreak()?void 0:er(Pr);return zn===void 0&&(so++,zn=po(de(""),$e())),Mg()||c_(zn),Ea(po(O.createThrowStatement(zn),je),Vt)}function gd(){const je=$e(),Vt=Zt();Ma(113);const zn=ag(!1),zr=xe()===85?Dg():void 0;let xi;return(!zr||xe()===98)&&(Ma(98,w.catch_or_finally_expected),xi=ag(!1)),Ea(po(O.createTryStatement(zn,zr,xi),je),Vt)}function Dg(){const je=$e();Ma(85);let Vt;m_(21)?(Vt=sv(),Ma(22)):Vt=void 0;const zn=ag(!1);return po(O.createCatchClause(Vt,zn),je)}function um(){const je=$e(),Vt=Zt();return Ma(89),lm(),Ea(po(O.createDebuggerStatement(),je),Vt)}function Ig(){const je=$e();let Vt=Zt(),zn;const zr=xe()===21,xi=er(Pr);return An(xi)&&m_(59)?zn=O.createLabeledStatement(xi,nt()):(Mg()||c_(xi),zn=lt(xi),zr&&(Vt=!1)),Ea(po(zn,je),Vt)}function P_(){return rr(),Cf(xe())&&!r.hasPrecedingLineBreak()}function Qm(){return rr(),xe()===86&&!r.hasPrecedingLineBreak()}function Bh(){return rr(),xe()===100&&!r.hasPrecedingLineBreak()}function P1(){return rr(),(Cf(xe())||xe()===9||xe()===10||xe()===11)&&!r.hasPrecedingLineBreak()}function VT(){for(;;)switch(xe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return t2();case 135:return i0();case 120:case 156:return $r();case 144:case 145:return sr();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const je=xe();if(rr(),r.hasPrecedingLineBreak())return!1;if(je===138&&xe()===156)return!0;continue;case 162:return rr(),xe()===19||xe()===80||xe()===95;case 102:return rr(),xe()===11||xe()===42||xe()===19||Cf(xe());case 95:let Vt=rr();if(Vt===156&&(Vt=Ha(rr)),Vt===64||Vt===42||Vt===19||Vt===90||Vt===130||Vt===60)return!0;continue;case 126:rr();continue;default:return!1}}function Zm(){return Ha(VT)}function fb(){switch(xe()){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 Zm()||Ha(Et);case 87:case 95:return Zm();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 Zm()||!Ha(P_);default:return dr()}}function FS(){return rr(),x_()||xe()===19||xe()===23}function dT(){return Ha(FS)}function $0(){return xv(!0)}function xv(je){return rr(),je&&xe()===165?!1:(x_()||xe()===19)&&!r.hasPrecedingLineBreak()}function t2(){return Ha(xv)}function q0(){return N1(!0)}function N1(je){return rr()===160?xv(je):!1}function i0(){return Ha(N1)}function nt(){switch(xe()){case 27:return bm();case 19:return ag(!1);case 115:return f_($e(),Zt(),void 0);case 121:if(dT())return f_($e(),Zt(),void 0);break;case 135:if(i0())return f_($e(),Zt(),void 0);break;case 160:if(t2())return f_($e(),Zt(),void 0);break;case 100:return zh($e(),Zt(),void 0);case 86:return Fc($e(),Zt(),void 0);case 101:return ay();case 92:return yp();case 117:return Cg();case 99:return wp();case 88:return Xp(251);case 83:return Xp(252);case 107:return r1();case 118:return sg();case 109:return t_();case 111:return A_();case 113:case 85:case 98:return gd();case 89:return um();case 60:return vi();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(Zm())return vi();break}return Ig()}function pr(je){return je.kind===138}function vi(){const je=$e(),Vt=Zt(),zn=Li(!0);if(gt(zn,pr)){const xi=Di(je);if(xi)return xi;for(const xo of zn)xo.flags|=33554432;return vc(33554432,()=>Ee(je,Vt,zn))}else return Ee(je,Vt,zn)}function Di(je){return vc(33554432,()=>{const Vt=Fy(ho,je);if(Vt)return bt(Vt)})}function Ee(je,Vt,zn){switch(xe()){case 115:case 121:case 87:case 160:case 135:return f_(je,Vt,zn);case 100:return zh(je,Vt,zn);case 86:return Fc(je,Vt,zn);case 120:return Js(je,Vt,zn);case 156:return pu(je,Vt,zn);case 94:return ju(je,Vt,zn);case 162:case 144:case 145:return oa(je,Vt,zn);case 102:return BP(je,Vt,zn);case 95:switch(rr(),xe()){case 90:case 64:return wm(je,Vt,zn);case 130:return WP(je,Vt,zn);default:return bC(je,Vt,zn)}default:if(zn){const zr=gy(282,!0,w.Declaration_expected);return u3(zr,je),zr.modifiers=zn,zr}return}}function Gt(){return rr()===11}function sr(){return rr(),!r.hasPrecedingLineBreak()&&(q_()||xe()===11)}function Ii(je,Vt){if(xe()!==19){if(je&4){dt();return}if(rd()){lm();return}}return ah(je,Vt)}function Ja(){const je=$e();if(xe()===28)return po(O.createOmittedExpression(),je);const Vt=Yu(26),zn=Y_(),zr=Bt();return po(O.createBindingElement(Vt,void 0,zn,zr),je)}function wa(){const je=$e(),Vt=Yu(26),zn=x_();let zr=hi(),xi;zn&&xe()!==59?(xi=zr,zr=void 0):(Ma(59),xi=Y_());const xo=Bt();return po(O.createBindingElement(Vt,zr,xi,xo),je)}function wi(){const je=$e();Ma(19);const Vt=er(()=>Wh(9,wa));return Ma(20),po(O.createObjectBindingPattern(Vt),je)}function Vl(){const je=$e();Ma(23);const Vt=er(()=>Wh(10,Ja));return Ma(24),po(O.createArrayBindingPattern(Vt),je)}function Uf(){return xe()===19||xe()===23||xe()===81||x_()}function Y_(je){return xe()===23?Vl():xe()===19?wi():vE(je)}function Fg(){return sv(!0)}function sv(je){const Vt=$e(),zn=Zt(),zr=Y_(w.Private_identifiers_are_not_allowed_in_variable_declarations);let xi;je&&zr.kind===80&&xe()===54&&!r.hasPrecedingLineBreak()&&(xi=H0());const xo=He(),Wc=qe(xe())?void 0:Bt(),hu=kn(zr,xi,xo,Wc);return Ea(po(hu,Vt),zn)}function vy(je){const Vt=$e();let zn=0;switch(xe()){case 115:break;case 121:zn|=1;break;case 87:zn|=2;break;case 160:zn|=4;break;case 135:ce.assert(i0()),zn|=6,rr();break;default:ce.fail()}rr();let zr;if(xe()===165&&Ha(_b))zr=jv();else{const xi=oi();Xu(je),zr=Wh(8,je?sv:Fg),Xu(xi)}return po(cr(zr,zn),Vt)}function _b(){return Sv()&&rr()===22}function f_(je,Vt,zn){const zr=vy(!1);lm();const xi=ut(zn,zr);return Ea(po(xi,je),Vt)}function zh(je,Vt,zn){const zr=es(),xi=dk(zn);Ma(100);const xo=Yu(42),Wc=xi&1024?fc():vE(),hu=xo?1:0,_c=xi&512?2:0,Sl=F();xi&1&&Aa(!0);const kf=Pe(hu|_c),Rp=we(59,!1),hn=Ii(hu|_c,w.or_expected);Aa(zr);const v_=O.createFunctionDeclaration(zn,xo,Wc,Sl,kf,Rp,hn);return Ea(po(v_,je),Vt)}function i1(){if(xe()===137)return Ma(137);if(xe()===11&&Ha(rr)===21)return mu(()=>{const je=$l();return je.text==="constructor"?je:void 0})}function n2(je,Vt,zn){return mu(()=>{if(i1()){const zr=F(),xi=Pe(0),xo=we(59,!1),Wc=Ii(0,w.or_expected),hu=O.createConstructorDeclaration(zn,xi,Wc);return hu.typeParameters=zr,hu.type=xo,Ea(po(hu,je),Vt)}})}function Vv(je,Vt,zn,zr,xi,xo,Wc,hu){const _c=zr?1:0,Sl=gt(zn,Lu)?2:0,kf=F(),Rp=Pe(_c|Sl),hn=we(59,!1),v_=Ii(_c|Sl,hu),yh=O.createMethodDeclaration(zn,zr,xi,xo,kf,Rp,hn,v_);return yh.exclamationToken=Wc,Ea(po(yh,je),Vt)}function su(je,Vt,zn,zr,xi){const xo=!xi&&!r.hasPrecedingLineBreak()?Yu(54):void 0,Wc=He(),hu=sl(90112,Bt);Oh(zr,Wc,hu);const _c=O.createPropertyDeclaration(zn,zr,xi||xo,Wc,hu);return Ea(po(_c,je),Vt)}function gC(je,Vt,zn){const zr=Yu(42),xi=hi(),xo=Yu(58);return zr||xe()===21||xe()===30?Vv(je,Vt,zn,zr,xi,xo,void 0,w.or_expected):su(je,Vt,zn,xi,xo)}function eg(je,Vt,zn,zr,xi){const xo=hi(),Wc=F(),hu=Pe(0),_c=we(59,!1),Sl=Ii(xi),kf=zr===177?O.createGetAccessorDeclaration(zn,xo,hu,_c,Sl):O.createSetAccessorDeclaration(zn,xo,hu,Sl);return kf.typeParameters=Wc,Ep(kf)&&(kf.type=_c),Ea(po(kf,je),Vt)}function Uv(){let je;if(xe()===60)return!0;for(;qg(xe());){if(je=xe(),F_(je))return!0;rr()}if(xe()===42||(_e()&&(je=xe(),rr()),xe()===23))return!0;if(je!==void 0){if(!sE(je)||je===153||je===139)return!0;switch(xe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return rd()}}return!1}function Rk(je,Vt,zn){Kh(126);const zr=Lb(),xi=Ea(po(O.createClassStaticBlockDeclaration(zr),je),Vt);return xi.modifiers=zn,xi}function Lb(){const je=Cn(),Vt=es();Lo(!1),Aa(!0);const zn=ag(!1);return Lo(je),Aa(Vt),zn}function fn(){if(es()&&xe()===135){const je=$e(),Vt=oh(w.Expression_expected);rr();const zn=Qi(je,Vt,!0);return va(je,zn)}return Tf()}function $n(){const je=$e();if(!m_(60))return;const Vt=xt(fn);return po(O.createDecorator(Vt),je)}function ri(je,Vt,zn){const zr=$e(),xi=xe();if(xe()===87&&Vt){if(!mu(bc))return}else{if(zn&&xe()===126&&Ha(Kx))return;if(je&&xe()===126)return;if(!Lg())return}return po(Ne(xi),zr)}function Li(je,Vt,zn){const zr=$e();let xi,xo,Wc,hu=!1,_c=!1,Sl=!1;if(je&&xe()===60)for(;xo=$n();)xi=ur(xi,xo);for(;Wc=ri(hu,Vt,zn);)Wc.kind===126&&(hu=!0),xi=ur(xi,Wc),_c=!0;if(_c&&je&&xe()===60)for(;xo=$n();)xi=ur(xi,xo),Sl=!0;if(Sl)for(;Wc=ri(hu,Vt,zn);)Wc.kind===126&&(hu=!0),xi=ur(xi,Wc);return xi&&nm(xi,zr)}function yo(){let je;if(xe()===134){const Vt=$e();rr();const zn=po(Ne(134),Vt);je=nm([zn],Vt)}return je}function jo(){const je=$e(),Vt=Zt();if(xe()===27)return rr(),Ea(po(O.createSemicolonClassElement(),je),Vt);const zn=Li(!0,!0,!0);if(xe()===126&&Ha(Kx))return Rk(je,Vt,zn);if(ka(139))return eg(je,Vt,zn,177,0);if(ka(153))return eg(je,Vt,zn,178,0);if(xe()===137||xe()===11){const zr=n2(je,Vt,zn);if(zr)return zr}if(ct())return Lt(je,Vt,zn);if(Cf(xe())||xe()===11||xe()===9||xe()===42||xe()===23)if(gt(zn,pr)){for(const xi of zn)xi.flags|=33554432;return vc(33554432,()=>gC(je,Vt,zn))}else return gC(je,Vt,zn);if(zn){const zr=gy(80,!0,w.Declaration_expected);return su(je,Vt,zn,zr,void 0)}return ce.fail("Should not have attempted to parse class member declaration.")}function Oo(){const je=$e(),Vt=Zt(),zn=Li(!0);if(xe()===86)return ks(je,Vt,zn,231);const zr=gy(282,!0,w.Expression_expected);return u3(zr,je),zr.modifiers=zn,zr}function ca(){return ks($e(),Zt(),void 0,231)}function Fc(je,Vt,zn){return ks(je,Vt,zn,263)}function ks(je,Vt,zn,zr){const xi=es();Ma(86);const xo=Xs(),Wc=F();gt(zn,fW)&&Aa(!0);const hu=wu();let _c;Ma(19)?(_c=oo(),Ma(20)):_c=jv(),Aa(xi);const Sl=zr===263?O.createClassDeclaration(zn,xo,Wc,hu,_c):O.createClassExpression(zn,xo,Wc,hu,_c);return Ea(po(Sl,je),Vt)}function Xs(){return x_()&&!Vs()?GT(x_()):void 0}function Vs(){return xe()===119&&Ha(jT)}function wu(){if(br())return K_(22,Yp)}function Yp(){const je=$e(),Vt=xe();ce.assert(Vt===96||Vt===119),rr();const zn=Wh(7,Q);return po(O.createHeritageClause(Vt,zn),je)}function Q(){const je=$e(),Vt=Tf();if(Vt.kind===233)return Vt;const zn=ft();return po(O.createExpressionWithTypeArguments(Vt,zn),je)}function ft(){return xe()===30?ub(20,Eu,30,32):void 0}function br(){return xe()===96||xe()===119}function oo(){return K_(5,jo)}function Js(je,Vt,zn){Ma(120);const zr=oh(),xi=F(),xo=wu(),Wc=Qt(),hu=O.createInterfaceDeclaration(zn,zr,xi,xo,Wc);return Ea(po(hu,je),Vt)}function pu(je,Vt,zn){Ma(156),r.hasPrecedingLineBreak()&&Ui(w.Line_break_not_permitted_here);const zr=oh(),xi=F();Ma(64);const xo=xe()===141&&mu(Vr)||Eu();lm();const Wc=O.createTypeAliasDeclaration(zn,zr,xi,xo);return Ea(po(Wc,je),Vt)}function fl(){const je=$e(),Vt=Zt(),zn=hi(),zr=er(Bt);return Ea(po(O.createEnumMember(zn,zr),je),Vt)}function ju(je,Vt,zn){Ma(94);const zr=oh();let xi;Ma(19)?(xi=mt(()=>Wh(6,fl)),Ma(20)):xi=jv();const xo=O.createEnumDeclaration(zn,zr,xi);return Ea(po(xo,je),Vt)}function L_(){const je=$e();let Vt;return Ma(19)?(Vt=K_(1,nt),Ma(20)):Vt=jv(),po(O.createModuleBlock(Vt),je)}function Cl(je,Vt,zn,zr){const xi=zr&32,xo=oh(),Wc=m_(25)?Cl($e(),!1,void 0,8|xi):L_(),hu=O.createModuleDeclaration(zn,xo,Wc,zr);return Ea(po(hu,je),Vt)}function o0(je,Vt,zn){let zr=0,xi;xe()===162?(xi=oh(),zr|=2048):(xi=$l(),xi.text=fS(xi.text));let xo;xe()===19?xo=L_():lm();const Wc=O.createModuleDeclaration(zn,xi,xo,zr);return Ea(po(Wc,je),Vt)}function oa(je,Vt,zn){let zr=0;if(xe()===162)return o0(je,Vt,zn);if(m_(145))zr|=32;else if(Ma(144),xe()===11)return o0(je,Vt,zn);return Cl(je,Vt,zn,zr)}function dD(){return xe()===149&&Ha(a0)}function a0(){return rr()===21}function Kx(){return rr()===19}function hC(){return rr()===44}function WP(je,Vt,zn){Ma(130),Ma(145);const zr=oh();lm();const xi=O.createNamespaceExportDeclaration(zr);return xi.modifiers=zn,Ea(po(xi,je),Vt)}function BP(je,Vt,zn){Ma(102);const zr=r.getTokenFullStart();let xi;q_()&&(xi=oh());let xo=!1;if(xe()!==161&&(xi==null?void 0:xi.escapedText)==="type"&&(q_()||pD())&&(xo=!0,xi=q_()?oh():void 0),xi&&!yC())return vC(je,Vt,zn,xi,xo);let Wc;(xi||xe()===42||xe()===19)&&(Wc=zP(xi,zr,xo),Ma(161));const hu=WS();let _c;xe()===132&&!r.hasPrecedingLineBreak()&&(_c=OA()),lm();const Sl=O.createImportDeclaration(zn,Wc,hu,_c);return Ea(po(Sl,je),Vt)}function LA(){const je=$e(),Vt=Cf(xe())?hy():Ap(11);Ma(59);const zn=ln(!0);return po(O.createAssertEntry(Vt,zn),je)}function OA(je){const Vt=$e();je||Ma(132);const zn=r.getTokenStart();if(Ma(19)){const zr=r.hasPrecedingLineBreak(),xi=Wh(24,LA,!0);if(!Ma(20)){const xo=Yf(In);xo&&xo.code===w._0_expected.code&&ml(xo,s6(un,zn,1,w.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return po(O.createAssertClause(xi,zr),Vt)}else{const zr=nm([],$e(),void 0,!1);return po(O.createAssertClause(zr,!1),Vt)}}function pD(){return xe()===42||xe()===19}function yC(){return xe()===28||xe()===161}function vC(je,Vt,zn,zr,xi){Ma(64);const xo=Xx();lm();const Wc=O.createImportEqualsDeclaration(zn,xi,zr,xo);return Ea(po(Wc,je),Vt)}function zP(je,Vt,zn){let zr;return(!je||m_(28))&&(zr=xe()===42?px():j_(275)),po(O.createImportClause(zn,je,zr),Vt)}function Xx(){return dD()?dx():E0(!1)}function dx(){const je=$e();Ma(149),Ma(21);const Vt=WS();return Ma(22),po(O.createExternalModuleReference(Vt),je)}function WS(){if(xe()===11){const je=$l();return je.text=fS(je.text),je}else return Pr()}function px(){const je=$e();Ma(42),Ma(130);const Vt=oh();return po(O.createNamespaceImport(Vt),je)}function j_(je){const Vt=$e(),zn=je===275?O.createNamedImports(ub(23,oO,19,20)):O.createNamedExports(ub(23,GP,19,20));return po(zn,Vt)}function GP(){const je=Zt();return Ea(dS(281),je)}function oO(){return dS(276)}function dS(je){const Vt=$e();let zn=sE(xe())&&!q_(),zr=r.getTokenStart(),xi=r.getTokenEnd(),xo=!1,Wc,hu=!0,_c=hy();if(_c.escapedText==="type")if(xe()===130){const Rp=hy();if(xe()===130){const hn=hy();Cf(xe())?(xo=!0,Wc=Rp,_c=kf(),hu=!1):(Wc=_c,_c=hn,hu=!1)}else Cf(xe())?(Wc=_c,hu=!1,_c=kf()):(xo=!0,_c=Rp)}else Cf(xe())&&(xo=!0,_c=kf());hu&&xe()===130&&(Wc=_c,Ma(130),_c=kf()),je===276&&zn&&We(zr,xi,w.Identifier_expected);const Sl=je===276?O.createImportSpecifier(xo,Wc,_c):O.createExportSpecifier(xo,Wc,_c);return po(Sl,Vt);function kf(){return zn=sE(xe())&&!q_(),zr=r.getTokenStart(),xi=r.getTokenEnd(),hy()}}function FA(je){return po(O.createNamespaceExport(hy()),je)}function bC(je,Vt,zn){const zr=es();Aa(!0);let xi,xo,Wc;const hu=m_(156),_c=$e();m_(42)?(m_(130)&&(xi=FA(_c)),Ma(161),xo=WS()):(xi=j_(279),(xe()===161||xe()===11&&!r.hasPrecedingLineBreak())&&(Ma(161),xo=WS())),xo&&xe()===132&&!r.hasPrecedingLineBreak()&&(Wc=OA()),lm(),Aa(zr);const Sl=O.createExportDeclaration(zn,hu,xi,xo,Wc);return Ea(po(Sl,je),Vt)}function wm(je,Vt,zn){const zr=es();Aa(!0);let xi;m_(64)?xi=!0:Ma(90);const xo=ln(!0);lm(),Aa(zr);const Wc=O.createExportAssignment(zn,xi,xo);return Ea(po(Wc,je),Vt)}let db;(je=>{je[je.SourceElements=0]="SourceElements",je[je.BlockStatements=1]="BlockStatements",je[je.SwitchClauses=2]="SwitchClauses",je[je.SwitchClauseStatements=3]="SwitchClauseStatements",je[je.TypeMembers=4]="TypeMembers",je[je.ClassMembers=5]="ClassMembers",je[je.EnumMembers=6]="EnumMembers",je[je.HeritageClauseElement=7]="HeritageClauseElement",je[je.VariableDeclarations=8]="VariableDeclarations",je[je.ObjectBindingElements=9]="ObjectBindingElements",je[je.ArrayBindingElements=10]="ArrayBindingElements",je[je.ArgumentExpressions=11]="ArgumentExpressions",je[je.ObjectLiteralMembers=12]="ObjectLiteralMembers",je[je.JsxAttributes=13]="JsxAttributes",je[je.JsxChildren=14]="JsxChildren",je[je.ArrayLiteralMembers=15]="ArrayLiteralMembers",je[je.Parameters=16]="Parameters",je[je.JSDocParameters=17]="JSDocParameters",je[je.RestProperties=18]="RestProperties",je[je.TypeParameters=19]="TypeParameters",je[je.TypeArguments=20]="TypeArguments",je[je.TupleElementTypes=21]="TupleElementTypes",je[je.HeritageClauses=22]="HeritageClauses",je[je.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",je[je.AssertEntries=24]="AssertEntries",je[je.JSDocComment=25]="JSDocComment",je[je.Count=26]="Count"})(db||(db={}));let o1;(je=>{je[je.False=0]="False",je[je.True=1]="True",je[je.Unknown=2]="Unknown"})(o1||(o1={}));let Q_;(je=>{function Vt(Sl,kf,Rp){Ku("file.js",Sl,99,void 0,1),r.setText(Sl,kf,Rp),ei=r.scan();const hn=zn(),v_=$a("file.js",99,1,!1,[],Ne(1),0,ku),yh=jN(In,v_);return gr&&(v_.jsDocDiagnostics=jN(gr,v_)),al(),hn?{jsDocTypeExpression:hn,diagnostics:yh}:void 0}je.parseJSDocTypeExpressionForTests=Vt;function zn(Sl){const kf=$e(),Rp=(Sl?m_:Ma)(19),hn=vc(16777216,E);(!Sl||Rp)&&jg(20);const v_=O.createJSDocTypeExpression(hn);return ta(v_),po(v_,kf)}je.parseJSDocTypeExpression=zn;function zr(){const Sl=$e(),kf=m_(19),Rp=$e();let hn=E0(!1);for(;xe()===81;)vs(),mi(),hn=po(O.createJSDocMemberName(hn,oh()),Rp);kf&&jg(20);const v_=O.createJSDocNameReference(hn);return ta(v_),po(v_,Sl)}je.parseJSDocNameReference=zr;function xi(Sl,kf,Rp){Ku("",Sl,99,void 0,1);const hn=vc(16777216,()=>_c(kf,Rp)),yh=jN(In,{languageVariant:0,text:Sl});return al(),hn?{jsDoc:hn,diagnostics:yh}:void 0}je.parseIsolatedJSDocComment=xi;function xo(Sl,kf,Rp){const hn=ei,v_=In.length,yh=ro,fm=vc(16777216,()=>_c(kf,Rp));return kl(fm,Sl),Nc&524288&&(gr||(gr=[]),gr.push(...In)),ei=hn,In.length=v_,ro=yh,fm}je.parseJSDocComment=xo;let Wc;(Sl=>{Sl[Sl.BeginningOfLine=0]="BeginningOfLine",Sl[Sl.SawAsterisk=1]="SawAsterisk",Sl[Sl.SavingComments=2]="SavingComments",Sl[Sl.SavingBackticks=3]="SavingBackticks"})(Wc||(Wc={}));let hu;(Sl=>{Sl[Sl.Property=1]="Property",Sl[Sl.Parameter=2]="Parameter",Sl[Sl.CallbackParameter=4]="CallbackParameter"})(hu||(hu={}));function _c(Sl=0,kf){const Rp=ho;ho|=1<<25;const hn=pn,v_=kf===void 0?hn.length:Sl+kf;if(kf=v_-Sl,ce.assert(Sl>=0),ce.assert(Sl<=v_),ce.assert(v_<=hn.length),!DA(hn,Sl))return;let yh,fm,mx,BS,N2,pS=[];const jP=[],tp=r.scanRange(Sl+3,kf-5,gx);return ho=Rp,tp;function gx(){let ko=1,ac,Ys=Sl-(hn.lastIndexOf(` `,Sl)+1)+4;function Ni(b_){ac||(ac=Ys),pS.push(b_),Ys+=b_.length}for(mi();rs(5););rs(4)&&(ko=0,Ys=0);e:for(;;){switch(xe()){case 60:UP(pS),N2||(N2=$e()),rt(TE(Ys)),ko=0,ac=void 0;break;case 4:pS.push(r.getTokenText()),ko=0,Ys=0;break;case 42:const b_=r.getTokenText();ko===1?(ko=2,Ni(b_)):(ce.assert(ko===0),ko=1,Ys+=b_.length);break;case 5:ce.assert(ko!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Gp=r.getTokenText();ac!==void 0&&Ys+Gp.length>ac&&pS.push(Gp.slice(ac-Ys)),Ys+=Gp.length;break;case 1:break e;case 82:ko=2,Ni(r.getTokenValue());break;case 19:ko=2;const w1=r.getTokenFullStart(),zS=r.getTokenEnd()-1,SE=R2(zS);if(SE){BS||VP(pS),jP.push(po(O.createJSDocText(pS.join("")),BS??Sl,w1)),jP.push(SE),pS=[],BS=r.getTokenEnd();break}default:ko=2,Ni(r.getTokenText());break}ko===2?Ji(!1):mi()}const Nl=hU(pS.join(""));jP.length&&Nl.length&&jP.push(po(O.createJSDocText(Nl),BS??Sl,N2)),jP.length&&yh&&ce.assertIsDefined(N2,"having parsed tags implies that the end of the comment span should be set");const Xd=yh&&nm(yh,fm,mx);return po(O.createJSDocComment(jP.length?nm(jP,Sl,N2):Nl.length?Nl:void 0,Xd),Sl,v_)}function VP(ko){for(;ko.length&&(ko[0]===` -`||ko[0]==="\r");)ko.shift()}function UP(ko){for(;ko.length;){const ac=hU(ko[ko.length-1]);if(ac==="")ko.pop();else if(ac.lengthGp&&(Ni.push(R1.slice(Gp-ko)),b_=2),ko+=R1.length;break;case 19:b_=2;const JP=r.getTokenFullStart(),RI=r.getTokenEnd()-1,Uy=R2(RI);Uy?(Nl.push(po(O.createJSDocText(Ni.join("")),Xd??Ys,JP)),Nl.push(Uy),Ni=[],Xd=r.getTokenEnd()):w1(r.getTokenText());break;case 62:b_===3?b_=2:b_=3,w1(r.getTokenText());break;case 82:b_!==3&&(b_=2),w1(r.getTokenValue());break;case 42:if(b_===0){b_=1,ko+=1;break}default:b_!==3&&(b_=2),w1(r.getTokenText());break}b_===2||b_===3?zS=Ji(b_===3):zS=mi()}VP(Ni);const SE=hU(Ni.join(""));if(Nl.length)return SE.length&&Nl.push(po(O.createJSDocText(SE),Xd??Ys)),nm(Nl,Ys,r.getTokenEnd());if(SE.length)return SE}function R2(ko){const ac=mu(U);if(!ac)return;mi(),Bm();const Ys=$e();let Ni=Cf(xe())?E0(!0):void 0;if(Ni)for(;xe()===81;)vs(),mi(),Ni=po(O.createJSDocMemberName(Ni,oh()),Ys);const Nl=[];for(;xe()!==20&&xe()!==4&&xe()!==1;)Nl.push(r.getTokenText()),mi();const Xd=ac==="link"?O.createJSDocLink:ac==="linkcode"?O.createJSDocLinkCode:O.createJSDocLinkPlain;return po(Xd(Ni,Nl.join("")),ko,r.getTokenEnd())}function U(){if(Hv(),xe()===19&&mi()===60&&Cf(mi())){const ko=r.getTokenValue();if(le(ko))return ko}}function le(ko){return ko==="link"||ko==="linkcode"||ko==="linkplain"}function Ae(ko,ac,Ys,Ni){return po(O.createJSDocUnknownTag(ac,A0(ko,$e(),Ys,Ni)),ko)}function rt(ko){ko&&(yh?yh.push(ko):(yh=[ko],fm=ko.pos),mx=ko.end)}function Dn(){return Hv(),xe()===19?zn():void 0}function Ci(){const ko=rs(23);ko&&Bm();const ac=rs(62),Ys=Ob();return ac&&uS(62),ko&&(Bm(),Yu(64)&&Pr(),Ma(24)),{name:Ys,isBracketed:ko}}function gs(ko){switch(ko.kind){case 151:return!0;case 188:return gs(ko.elementType);default:return x2(ko)&&An(ko.typeName)&&ko.typeName.escapedText==="Object"&&!ko.typeArguments}}function Tu(ko,ac,Ys,Ni){let Nl=Dn(),Xd=!Nl;Hv();const{name:b_,isBracketed:Gp}=Ci(),w1=Hv();Xd&&!Ha(U)&&(Nl=Dn());const zS=A0(ko,$e(),Ni,w1),SE=tg(Nl,b_,Ys,Ni);SE&&(Nl=SE,Xd=!0);const R1=Ys===1?O.createJSDocPropertyTag(ac,b_,Gp,Nl,Xd,zS):O.createJSDocParameterTag(ac,b_,Gp,Nl,Xd,zS);return po(R1,ko)}function tg(ko,ac,Ys,Ni){if(ko&&gs(ko.type)){const Nl=$e();let Xd,b_;for(;Xd=mu(()=>UT(Ys,Ni,ac));)Xd.kind===348||Xd.kind===355?b_=ur(b_,Xd):Xd.kind===352&&Re(Xd.tagName,w.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(b_){const Gp=po(O.createJSDocTypeLiteral(b_,ko.type.kind===188),Nl);return po(O.createJSDocTypeExpression(Gp),Nl)}}}function mS(ko,ac,Ys,Ni){gt(yh,aF)&&We(ac.pos,r.getTokenStart(),w._0_tag_already_specified,lf(ac.escapedText));const Nl=Dn();return po(O.createJSDocReturnTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function gg(ko,ac,Ys,Ni){gt(yh,HY)&&We(ac.pos,r.getTokenStart(),w._0_tag_already_specified,lf(ac.escapedText));const Nl=zn(!0),Xd=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocTypeTag(ac,Nl,Xd),ko)}function Nh(ko,ac,Ys,Ni){const Xd=xe()===23||Ha(()=>mi()===60&&Cf(mi())&&le(r.getTokenValue()))?void 0:zr(),b_=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocSeeTag(ac,Xd,b_),ko)}function r2(ko,ac,Ys,Ni){const Nl=Dn(),Xd=A0(ko,$e(),Ys,Ni);return po(O.createJSDocThrowsTag(ac,Nl,Xd),ko)}function II(ko,ac,Ys,Ni){const Nl=$e(),Xd=Mk();let b_=r.getTokenFullStart();const Gp=A0(ko,b_,Ys,Ni);Gp||(b_=r.getTokenFullStart());const w1=typeof Gp!="string"?nm(Hi([po(Xd,Nl,b_)],Gp),Nl):Xd.text+Gp;return po(O.createJSDocAuthorTag(ac,w1),ko)}function Mk(){const ko=[];let ac=!1,Ys=r.getToken();for(;Ys!==1&&Ys!==4;){if(Ys===30)ac=!0;else{if(Ys===60&&!ac)break;if(Ys===32&&ac){ko.push(r.getTokenText()),r.resetTokenState(r.getTokenEnd());break}}ko.push(r.getTokenText()),Ys=mi()}return O.createJSDocText(ko.join(""))}function M2(ko,ac,Ys,Ni){const Nl=JR();return po(O.createJSDocImplementsTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function HR(ko,ac,Ys,Ni){const Nl=JR();return po(O.createJSDocAugmentsTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function kI(ko,ac,Ys,Ni){const Nl=zn(!1),Xd=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocSatisfiesTag(ac,Nl,Xd),ko)}function JR(){const ko=m_(19),ac=$e(),Ys=PI();r.setInJSDocType(!0);const Ni=ft();r.setInJSDocType(!1);const Nl=O.createExpressionWithTypeArguments(Ys,Ni),Xd=po(Nl,ac);return ko&&Ma(20),Xd}function PI(){const ko=$e();let ac=gf();for(;m_(25);){const Ys=gf();ac=po(pt(ac,Ys),ko)}return ac}function HP(ko,ac,Ys,Ni,Nl){return po(ac(Ys,A0(ko,$e(),Ni,Nl)),ko)}function mD(ko,ac,Ys,Ni){const Nl=zn(!0);return Bm(),po(O.createJSDocThisTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function NI(ko,ac,Ys,Ni){const Nl=zn(!0);return Bm(),po(O.createJSDocEnumTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function sw(ko,ac,Ys,Ni){let Nl=Dn();Hv();const Xd=cw();Bm();let b_=w2(Ys),Gp;if(!Nl||gs(Nl.type)){let zS,SE,R1,JP=!1;for(;(zS=mu(()=>gD(Ys)))&&zS.kind!==352;)if(JP=!0,zS.kind===351)if(SE){const RI=Ui(w.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);RI&&ml(RI,s6(un,0,0,w.The_tag_was_first_specified_here));break}else SE=zS;else R1=ur(R1,zS);if(JP){const RI=Nl&&Nl.type.kind===188,Uy=O.createJSDocTypeLiteral(R1,RI);Nl=SE&&SE.typeExpression&&!gs(SE.typeExpression.type)?SE.typeExpression:po(Uy,ko),Gp=Nl.end}}Gp=Gp||b_!==void 0?$e():(Xd??Nl??ac).end,b_||(b_=A0(ko,Gp,Ys,Ni));const w1=O.createJSDocTypedefTag(ac,Nl,Xd,b_);return po(w1,ko,Gp)}function cw(ko){const ac=r.getTokenStart();if(!Cf(xe()))return;const Ys=gf();if(m_(25)){const Ni=cw(!0),Nl=O.createModuleDeclaration(void 0,Ys,Ni,ko?8:void 0);return po(Nl,ac)}return ko&&(Ys.flags|=4096),Ys}function aO(ko){const ac=$e();let Ys,Ni;for(;Ys=mu(()=>UT(4,ko));){if(Ys.kind===352){Re(Ys.tagName,w.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ni=ur(Ni,Ys)}return nm(Ni||[],ac)}function yB(ko,ac){const Ys=aO(ac),Ni=mu(()=>{if(rs(60)){const Nl=TE(ac);if(Nl&&Nl.kind===349)return Nl}});return po(O.createJSDocSignature(void 0,Ys,Ni),ko)}function z6(ko,ac,Ys,Ni){const Nl=cw();Bm();let Xd=w2(Ys);const b_=yB(ko,Ys);Xd||(Xd=A0(ko,$e(),Ys,Ni));const Gp=Xd!==void 0?$e():b_.end;return po(O.createJSDocCallbackTag(ac,b_,Nl,Xd),ko,Gp)}function Vo(ko,ac,Ys,Ni){Bm();let Nl=w2(Ys);const Xd=yB(ko,Ys);Nl||(Nl=A0(ko,$e(),Ys,Ni));const b_=Nl!==void 0?$e():Xd.end;return po(O.createJSDocOverloadTag(ac,Xd,Nl),ko,b_)}function WA(ko,ac){for(;!An(ko)||!An(ac);)if(!An(ko)&&!An(ac)&&ko.right.escapedText===ac.right.escapedText)ko=ko.left,ac=ac.left;else return!1;return ko.escapedText===ac.escapedText}function gD(ko){return UT(1,ko)}function UT(ko,ac,Ys){let Ni=!0,Nl=!1;for(;;)switch(mi()){case 60:if(Ni){const Xd=wI(ko,ac);return Xd&&(Xd.kind===348||Xd.kind===355)&&Ys&&(An(Xd.name)||!WA(Ys,Xd.name.left))?!1:Xd}Nl=!1;break;case 4:Ni=!0,Nl=!1;break;case 42:Nl&&(Ni=!1),Nl=!0;break;case 80:Ni=!1;break;case 1:return!1}}function wI(ko,ac){ce.assert(xe()===60);const Ys=r.getTokenFullStart();mi();const Ni=gf(),Nl=Hv();let Xd;switch(Ni.escapedText){case"type":return ko===1&&gg(Ys,Ni);case"prop":case"property":Xd=1;break;case"arg":case"argument":case"param":Xd=6;break;case"template":return G6(Ys,Ni,ac,Nl);default:return!1}return ko&Xd?Tu(Ys,Ni,ko,ac):!1}function P4(){const ko=$e(),ac=rs(23);ac&&Bm();const Ys=gf(w.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Ni;if(ac&&(Bm(),Ma(64),Ni=vc(16777216,E),Ma(24)),!Um(Ys))return po(O.createTypeParameterDeclaration(void 0,Ys,void 0,Ni),ko)}function N4(){const ko=$e(),ac=[];do{Bm();const Ys=P4();Ys!==void 0&&ac.push(Ys),Hv()}while(rs(28));return nm(ac,ko)}function G6(ko,ac,Ys,Ni){const Nl=xe()===19?zn():void 0,Xd=N4();return po(O.createJSDocTemplateTag(ac,Nl,Xd,A0(ko,$e(),Ys,Ni)),ko)}function rs(ko){return xe()===ko?(mi(),!0):!1}function Ob(){let ko=gf();for(m_(23)&&Ma(24);m_(25);){const ac=gf();m_(23)&&Ma(24),ko=P2(ko,ac)}return ko}function gf(ko){if(!Cf(xe()))return hy(80,!ko,ko||w.Identifier_expected);so++;const ac=r.getTokenStart(),Ys=r.getTokenEnd(),Ni=xe(),Nl=fS(r.getTokenValue()),Xd=po(de(Nl,Ni),ac,Ys);return mi(),Xd}}})(Q_=t.JSDocParser||(t.JSDocParser={}))})(i4||(i4={})),(t=>{function r(te,oe,de,ue){if(ue=ue||ce.shouldAssert(2),O(te,oe,de,ue),wTe(de))return te;if(te.statements.length===0)return i4.parseSourceFile(te.fileName,oe,te.languageVersion,void 0,!0,te.scriptKind,te.setExternalModuleIndicator);const Ne=te;ce.assert(!Ne.hasBeenIncrementallyParsed),Ne.hasBeenIncrementallyParsed=!0,i4.fixupParentReferences(Ne);const Be=te.text,Ve=V(te),pt=I(te,de);O(te,oe,pt,ue),ce.assert(pt.span.start<=de.span.start),ce.assert(K1(pt.span)===K1(de.span)),ce.assert(K1(DT(pt))===K1(DT(de)));const Le=DT(pt).length-pt.span.length;D(Ne,pt.span.start,K1(pt.span),K1(DT(pt)),Le,Be,oe,ue);const ht=i4.parseSourceFile(te.fileName,oe,te.languageVersion,Ve,!0,te.scriptKind,te.setExternalModuleIndicator);return ht.commentDirectives=s(te.commentDirectives,ht.commentDirectives,pt.span.start,K1(pt.span),Le,Be,oe,ue),ht.impliedNodeFormat=te.impliedNodeFormat,ht}t.updateSourceFile=r;function s(te,oe,de,ue,Ne,Be,Ve,pt){if(!te)return oe;let Le,ht=!1;for(const _t of te){const{range:Dt,type:Ft}=_t;if(Dt.endue){ke();const it={range:{pos:Dt.pos+Ne,end:Dt.end+Ne},type:Ft};Le=ur(Le,it),pt&&ce.assert(Be.substring(Dt.pos,Dt.end)===Ve.substring(it.range.pos,it.range.end))}}return ke(),Le;function ke(){ht||(ht=!0,Le?oe&&Le.push(...oe):Le=oe)}}function l(te,oe,de,ue,Ne,Be){oe?pt(te):Ve(te);return;function Ve(Le){let ht="";if(Be&&m(Le)&&(ht=ue.substring(Le.pos,Le.end)),Le._children&&(Le._children=void 0),T1(Le,Le.pos+de,Le.end+de),Be&&m(Le)&&ce.assert(ht===Ne.substring(Le.pos,Le.end)),B_(Le,Ve,pt),g1(Le))for(const ke of Le.jsDoc)Ve(ke);T(Le,Be)}function pt(Le){Le._children=void 0,T1(Le,Le.pos+de,Le.end+de);for(const ht of Le)Ve(ht)}}function m(te){switch(te.kind){case 11:case 9:case 80:return!0}return!1}function y(te,oe,de,ue,Ne){ce.assert(te.end>=oe,"Adjusting an element that was entirely before the change range"),ce.assert(te.pos<=de,"Adjusting an element that was entirely after the change range"),ce.assert(te.pos<=te.end);const Be=Math.min(te.pos,ue),Ve=te.end>=de?te.end+Ne:Math.min(te.end,ue);ce.assert(Be<=Ve),te.parent&&(ce.assertGreaterThanOrEqual(Be,te.parent.pos),ce.assertLessThanOrEqual(Ve,te.parent.end)),T1(te,Be,Ve)}function T(te,oe){if(oe){let de=te.pos;const ue=Ne=>{ce.assert(Ne.pos>=de),de=Ne.end};if(g1(te))for(const Ne of te.jsDoc)ue(Ne);B_(te,ue),ce.assert(de<=te.end)}}function D(te,oe,de,ue,Ne,Be,Ve,pt){Le(te);return;function Le(ke){if(ce.assert(ke.pos<=ke.end),ke.pos>de){l(ke,!1,Ne,Be,Ve,pt);return}const _t=ke.end;if(_t>=oe){if(ke.intersectsChange=!0,ke._children=void 0,y(ke,oe,de,ue,Ne),B_(ke,Le,ht),g1(ke))for(const Dt of ke.jsDoc)Le(Dt);T(ke,pt);return}ce.assert(_tde){l(ke,!0,Ne,Be,Ve,pt);return}const _t=ke.end;if(_t>=oe){ke.intersectsChange=!0,ke._children=void 0,y(ke,oe,de,ue,Ne);for(const Dt of ke)Le(Dt);return}ce.assert(_t0&&Ve<=1;Ve++){const pt=W(te,ue);ce.assert(pt.pos<=ue);const Le=pt.pos;ue=Math.max(0,Le-1)}const Ne=R0(ue,K1(oe.span)),Be=oe.newLength+(oe.span.start-ue);return BX(Ne,Be)}function W(te,oe){let de=te,ue;if(B_(te,Be),ue){const Ve=Ne(ue);Ve.pos>de.pos&&(de=Ve)}return de;function Ne(Ve){for(;;){const pt=Kie(Ve);if(pt)Ve=pt;else return Ve}}function Be(Ve){if(!Um(Ve))if(Ve.pos<=oe){if(Ve.pos>=de.pos&&(de=Ve),oeoe),!0}}function O(te,oe,de,ue){const Ne=te.text;if(de&&(ce.assert(Ne.length-de.span.length+de.newLength===oe.length),ue||ce.shouldAssert(3))){const Be=Ne.substr(0,de.span.start),Ve=oe.substr(0,de.span.start);ce.assert(Be===Ve);const pt=Ne.substring(K1(de.span),Ne.length),Le=oe.substring(K1(DT(de)),oe.length);ce.assert(pt===Le)}}function V(te){let oe=te.statements,de=0;ce.assert(de=ht.pos&&Ve=ht.pos&&Ve{te[te.Value=-1]="Value"})(ee||(ee={}))})(Dpe||(Dpe={})),tQ=new Map,Ck=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Y6e=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function nQ(t){const r=new Map,s=new Map;return Ot(t,l=>{r.set(l.name.toLowerCase(),l),l.shortName&&s.set(l.shortName,l.name)}),{optionsNameMap:r,shortOptionNames:s}}function DW(){return jpe||(jpe=nQ(fC))}function Q6e(t){return Z6e(t,W_)}function Z6e(t,r){const s=oc(t.type.keys()),l=(t.deprecatedKeys?s.filter(m=>!t.deprecatedKeys.has(m)):s).map(m=>`'${m}'`).join(", ");return r(w.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,l)}function ZEe(t,r,s){return _2e(t,GD(r||""),s)}function Joe(t,r="",s){if(r=GD(r),xf(r,"-"))return;if(t.type==="listOrElement"&&!Ub(r,","))return KG(t,r,s);if(r==="")return[];const l=r.split(",");switch(t.element.type){case"number":return Qo(l,m=>KG(t.element,parseInt(m),s));case"string":return Qo(l,m=>KG(t.element,m||"",s));case"boolean":case"object":return ce.fail(`List of ${t.element.type} is not yet supported.`);default:return Qo(l,m=>ZEe(t.element,m,s))}}function JG(t){return t.name}function Ipe(t,r,s,l,m){var y;if((y=r.alternateMode)!=null&&y.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return o4(m,l,r.alternateMode.diagnostic,t);const T=fh(t,r.optionDeclarations,JG);return T?o4(m,l,r.unknownDidYouMeanDiagnostic,s||t,T.name):o4(m,l,r.unknownOptionDiagnostic,s||t)}function e2e(t,r,s){const l={};let m;const y=[],T=[];return D(r),{options:l,watchOptions:m,fileNames:y,errors:T};function D(W){let O=0;for(;Om0.readFile(te)));if(!As(O)){T.push(O);return}const V=[];let ee=0;for(;;){for(;ee=O.length)break;const te=ee;if(O.charCodeAt(te)===34){for(ee++;ee32;)ee++;V.push(O.substring(te,ee))}}D(V)}}function $oe(t,r,s,l,m,y){if(l.isTSConfigOnly){const T=t[r];T==="null"?(m[l.name]=void 0,r++):l.type==="boolean"?T==="false"?(m[l.name]=KG(l,!1,y),r++):(T==="true"&&r++,y.push(W_(w.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,l.name))):(y.push(W_(w.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,l.name)),T&&!xf(T,"-")&&r++)}else if(!t[r]&&l.type!=="boolean"&&y.push(W_(s.optionTypeMismatchDiagnostic,l.name,wpe(l))),t[r]!=="null")switch(l.type){case"number":m[l.name]=KG(l,parseInt(t[r]),y),r++;break;case"boolean":const T=t[r];m[l.name]=KG(l,T!=="false",y),(T==="false"||T==="true")&&r++;break;case"string":m[l.name]=KG(l,t[r]||"",y),r++;break;case"list":const D=Joe(l,t[r],y);m[l.name]=D||[],D&&r++;break;case"listOrElement":ce.fail("listOrElement not supported here");break;default:m[l.name]=ZEe(l,t[r],y),r++;break}else m[l.name]=void 0,r++;return r}function eLe(t,r){return e2e(YG,t,r)}function t2e(t,r){return kpe(DW,t,r)}function kpe(t,r,s=!1){r=r.toLowerCase();const{optionsNameMap:l,shortOptionNames:m}=t();if(s){const y=m.get(r);y!==void 0&&(r=y)}return l.get(r)}function Ppe(){return fQ||(fQ=nQ(s$))}function PUe(t){const{options:r,watchOptions:s,fileNames:l,errors:m}=e2e(gLe,t),y=r;return l.length===0&&l.push("."),y.clean&&y.force&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","force")),y.clean&&y.verbose&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","verbose")),y.clean&&y.watch&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","watch")),y.watch&&y.dry&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:y,watchOptions:s,projects:l,errors:m}}function NUe(t,...r){return W_.apply(void 0,arguments).messageText}function QJ(t,r,s,l,m,y){const T=qoe(t,W=>s.readFile(W));if(!As(T)){s.onUnRecoverableConfigFileDiagnostic(T);return}const D=cF(t,T),I=s.getCurrentDirectory();return D.path=_h(t,I,_v(s.useCaseSensitiveFileNames)),D.resolvedPath=D.path,D.originalFileName=D.fileName,Qoe(D,s,Su(qc(t),I),r,Su(t,I),void 0,y,l,m)}function rQ(t,r){const s=qoe(t,r);return As(s)?n2e(t,s):{config:{},error:s}}function n2e(t,r){const s=cF(t,r);return{config:nLe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function tLe(t,r){const s=qoe(t,r);return As(s)?cF(t,s):{fileName:t,parseDiagnostics:[s]}}function qoe(t,r){let s;try{s=r(t)}catch(l){return W_(w.Cannot_read_file_0_Colon_1,t,l.message)}return s===void 0?W_(w.Cannot_read_file_0,t):s}function $G(t){return QT(t,JG)}function iQ(){return dQ||(dQ=nQ(sQ))}function Npe(){return hLe||(hLe=$G(fC))}function r2e(){return yLe||(yLe=$G(sQ))}function ZJ(){return d2e||(d2e=$G(c$))}function i2e(){return g2e===void 0&&(g2e={name:void 0,type:"object",elementOptions:$G([mQ,p2e,m2e,pQ,{name:"references",type:"list",element:{name:"references",type:"object"},category:w.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:w.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:w.File_Management,defaultValueDescription:w.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:w.File_Management,defaultValueDescription:w.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},zpe])}),g2e}function nLe(t,r,s){var l;const m=(l=t.statements[0])==null?void 0:l.expression;if(m&&m.kind!==210){if(r.push(M0(t,m,w.The_root_value_of_a_0_file_must_be_an_object,Iy(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ch(m)){const y=lr(m.elements,Wd);if(y)return Koe(t,y,r,!0,s)}return{}}return Koe(t,m,r,!0,s)}function rLe(t,r){var s;return Koe(t,(s=t.statements[0])==null?void 0:s.expression,r,!0,void 0)}function Koe(t,r,s,l,m){if(!r)return l?{}:void 0;return D(r,m==null?void 0:m.rootOptions);function y(W,O){var V;const ee=l?{}:void 0;for(const te of W.properties){if(te.kind!==303){s.push(M0(t,te,w.Property_assignment_expected));continue}te.questionToken&&s.push(M0(t,te.questionToken,w.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),I(te.name)||s.push(M0(t,te.name,w.String_literal_with_double_quotes_expected));const oe=b9(te.name)?void 0:g7(te.name),de=oe&&lf(oe),ue=de?(V=O==null?void 0:O.elementOptions)==null?void 0:V.get(de):void 0,Ne=D(te.initializer,ue);typeof de<"u"&&(l&&(ee[de]=Ne),m==null||m.onPropertySet(de,Ne,te,O,ue))}return ee}function T(W,O){if(!l){W.forEach(V=>D(V,O));return}return gi(W.map(V=>D(V,O)),V=>V!==void 0)}function D(W,O){switch(W.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return I(W)||s.push(M0(t,W,w.String_literal_with_double_quotes_expected)),W.text;case 9:return Number(W.text);case 224:if(W.operator!==41||W.operand.kind!==9)break;return-Number(W.operand.text);case 210:return y(W,O);case 209:return T(W.elements,O&&O.element)}O?s.push(M0(t,W,w.Compiler_option_0_requires_a_value_of_type_1,O.name,wpe(O))):s.push(M0(t,W,w.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function I(W){return Wp(W)&&Aie(W,t)}}function wpe(t){return t.type==="listOrElement"?`${wpe(t.element)} or Array`:t.type==="list"?"Array":As(t.type)?t.type:"string"}function wUe(t,r){if(t){if(qG(r))return!t.disallowNullOrUndefined;if(t.type==="list")return ls(r);if(t.type==="listOrElement")return ls(r)||wUe(t.element,r);const s=As(t.type)?t.type:"string";return typeof r===s}return!1}function RUe(t,r,s){var l,m,y;const T=_v(s.useCaseSensitiveFileNames),D=Vn(gi(t.fileNames,(m=(l=t.options.configFile)==null?void 0:l.configFileSpecs)!=null&&m.validatedIncludeSpecs?o2e(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):xT),V=>wX(Su(r,s.getCurrentDirectory()),Su(V,s.getCurrentDirectory()),T)),I=Yoe(t.options,{configFilePath:Su(r,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),W=t.watchOptions&&Dst(t.watchOptions);return{compilerOptions:{...Rpe(I),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:W&&Rpe(W),references:Vn(t.projectReferences,V=>({...V,path:V.originalPath?V.originalPath:"",originalPath:void 0})),files:Nt(D)?D:void 0,...(y=t.options.configFile)!=null&&y.configFileSpecs?{include:Xoe(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function Rpe(t){return{...oc(t.entries()).reduce((r,s)=>({...r,[s[0]]:s[1]}),{})}}function Xoe(t){if(Nt(t)){if(Nt(t)!==1)return t;if(t[0]!==QG)return t}}function o2e(t,r,s,l){if(!r)return xT;const m=Y9(t,s,r,l.useCaseSensitiveFileNames,l.getCurrentDirectory()),y=m.excludePattern&&Y2(m.excludePattern,l.useCaseSensitiveFileNames),T=m.includeFilePattern&&Y2(m.includeFilePattern,l.useCaseSensitiveFileNames);return T?y?D=>!(T.test(D)&&!y.test(D)):D=>!T.test(D):y?D=>y.test(D):xT}function iLe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return iLe(t.element);default:return t.type}}function a2e(t,r){return wT(r,(s,l)=>{if(s===t)return l})}function Yoe(t,r){return MUe(t,DW(),r)}function Dst(t){return MUe(t,iQ())}function MUe(t,{optionsNameMap:r},s){const l=new Map,m=s&&_v(s.useCaseSensitiveFileNames);for(const y in t)if(ef(t,y)){if(r.has(y)&&(r.get(y).category===w.Command_line_Options||r.get(y).category===w.Output_Formatting))continue;const T=t[y],D=r.get(y.toLowerCase());if(D){ce.assert(D.type!=="listOrElement");const I=iLe(D);I?D.type==="list"?l.set(y,T.map(W=>a2e(W,I))):l.set(y,a2e(T,I)):s&&D.isFilePath?l.set(y,wX(s.configFilePath,Su(T,qc(s.configFilePath)),m)):l.set(y,T)}}return l}function LUe(t,r){const s=Mpe(t);return m();function l(y){return Array(y+1).join(" ")}function m(){const y=[],T=l(2);return i$.forEach(D=>{if(!s.has(D.name))return;const I=s.get(D.name),W=dLe(D);I!==W?y.push(`${T}${D.name}: ${I}`):ef(uQ,D.name)&&y.push(`${T}${D.name}: ${W}`)}),y.join(r)+r}}function Mpe(t){const r=dN(t,uQ);return Yoe(r)}function s2e(t,r,s){const l=Mpe(t);return T();function m(D){return Array(D+1).join(" ")}function y({category:D,name:I,isCommandLineOnly:W}){const O=[w.Command_line_Options,w.Editor_Support,w.Compiler_Diagnostics,w.Backwards_Compatibility,w.Watch_and_Build_Modes,w.Output_Formatting];return!W&&D!==void 0&&(!O.includes(D)||l.has(I))}function T(){const D=new Map;D.set(w.Projects,[]),D.set(w.Language_and_Environment,[]),D.set(w.Modules,[]),D.set(w.JavaScript_Support,[]),D.set(w.Emit,[]),D.set(w.Interop_Constraints,[]),D.set(w.Type_Checking,[]),D.set(w.Completeness,[]);for(const te of fC)if(y(te)){let oe=D.get(te.category);oe||D.set(te.category,oe=[]),oe.push(te)}let I=0,W=0;const O=[];D.forEach((te,oe)=>{O.length!==0&&O.push({value:""}),O.push({value:`/* ${fs(oe)} */`});for(const de of te){let ue;l.has(de.name)?ue=`"${de.name}": ${JSON.stringify(l.get(de.name))}${(W+=1)===l.size?"":","}`:ue=`// "${de.name}": ${JSON.stringify(dLe(de))},`,O.push({value:ue,description:`/* ${de.description&&fs(de.description)||de.name} */`}),I=Math.max(ue.length,I)}});const V=m(2),ee=[];ee.push("{"),ee.push(`${V}"compilerOptions": {`),ee.push(`${V}${V}/* ${fs(w.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),ee.push("");for(const te of O){const{value:oe,description:de=""}=te;ee.push(oe&&`${V}${V}${oe}${de&&m(I-oe.length+2)+de}`)}if(r.length){ee.push(`${V}},`),ee.push(`${V}"files": [`);for(let te=0;tetypeof Wt=="object","object"),Dt=pt(Le("files"));if(Dt){const Wt=_t==="no-prop"||ls(_t)&&_t.length===0,tt=ef(ee,"extends");if(Dt.length===0&&Wt&&!tt)if(r){const Mn=T||"tsconfig.json",kn=w.The_files_list_in_config_file_0_is_empty,cr=sY(r,"files",on=>on.initializer),un=o4(r,cr,kn,Mn);O.push(un)}else ke(w.The_files_list_in_config_file_0_is_empty,T||"tsconfig.json")}let Ft=pt(Le("include"));const it=Le("exclude");let Ye=!1,ut=pt(it);if(it==="no-prop"&&ee.compilerOptions){const Wt=ee.compilerOptions.outDir,tt=ee.compilerOptions.declarationDir;(Wt||tt)&&(ut=[Wt,tt].filter(Mn=>!!Mn))}Dt===void 0&&Ft===void 0&&(Ft=[QG],Ye=!0);let lt,zt;return Ft&&(lt=t$(Ft,O,!0,r,"include")),ut&&(zt=t$(ut,O,!1,r,"exclude")),{filesSpecs:Dt,includeSpecs:Ft,excludeSpecs:ut,validatedFilesSpec:gi(Dt,As),validatedIncludeSpecs:lt,validatedExcludeSpecs:zt,pathPatterns:void 0,isDefaultIncludeSpec:Ye}}function Be(_t){const Dt=x6(de,_t,te,s,I);return oQ(Dt,eae(ee),D)&&O.push(Lpe(de,T)),Dt}function Ve(_t){let Dt;const Ft=ht("references",it=>typeof it=="object","object");if(ls(Ft))for(const it of Ft)typeof it.path!="string"?ke(w.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Dt||(Dt=[])).push({path:Su(it.path,_t),originalPath:it.path,prepend:it.prepend,circular:it.circular});return Dt}function pt(_t){return ls(_t)?_t:void 0}function Le(_t){return ht(_t,As,"string")}function ht(_t,Dt,Ft){if(ef(ee,_t)&&!qG(ee[_t]))if(ls(ee[_t])){const it=ee[_t];return!r&&!jr(it,Dt)&&O.push(W_(w.Compiler_option_0_requires_a_value_of_type_1,_t,Ft)),it}else return ke(w.Compiler_option_0_requires_a_value_of_type_1,_t,"Array"),"not-array";return"no-prop"}function ke(_t,...Dt){r||O.push(W_(_t,...Dt))}}function Zoe(t){return t.code===w.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Lpe({includeSpecs:t,excludeSpecs:r},s){return W_(w.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(r||[]))}function oQ(t,r,s){return t.length===0&&r&&(!s||s.length===0)}function eae(t){return!ef(t,"files")&&!ef(t,"references")}function l2e(t,r,s,l,m){const y=l.length;return oQ(t,m)?l.push(Lpe(s,r)):vd(l,T=>!Zoe(T)),y!==l.length}function Ist(t){return!!t.options}function sLe(t,r,s,l,m,y,T,D){var I;l=hf(l);const W=Su(m||"",l);if(y.indexOf(W)>=0)return T.push(W_(w.Circularity_detected_while_resolving_configuration_Colon_0,[...y,W].join(" -> "))),{raw:t||rLe(r,T)};const O=t?BUe(t,s,l,m,T):Ope(r,s,l,m,T);if((I=O.options)!=null&&I.paths&&(O.options.pathsBasePath=l),O.extendedConfigPath){y=y.concat([W]);const ee={options:{}};As(O.extendedConfigPath)?V(ee,O.extendedConfigPath):O.extendedConfigPath.forEach(te=>V(ee,te)),!O.raw.include&&ee.include&&(O.raw.include=ee.include),!O.raw.exclude&&ee.exclude&&(O.raw.exclude=ee.exclude),!O.raw.files&&ee.files&&(O.raw.files=ee.files),O.raw.compileOnSave===void 0&&ee.compileOnSave&&(O.raw.compileOnSave=ee.compileOnSave),r&&ee.extendedSourceFiles&&(r.extendedSourceFiles=oc(ee.extendedSourceFiles.keys())),O.options=AS(ee.options,O.options),O.watchOptions=O.watchOptions&&ee.watchOptions?AS(ee.watchOptions,O.watchOptions):O.watchOptions||ee.watchOptions}return O;function V(ee,te){const oe=GUe(r,te,s,y,T,D,ee);if(oe&&Ist(oe)){const de=oe.raw;let ue;const Ne=Be=>{de[Be]&&(ee[Be]=Vn(de[Be],Ve=>mm(Ve)?Ve:tf(ue||(ue=r7(qc(te),l,_v(s.useCaseSensitiveFileNames))),Ve)))};Ne("include"),Ne("exclude"),Ne("files"),de.compileOnSave!==void 0&&(ee.compileOnSave=de.compileOnSave),AS(ee.options,oe.options),ee.watchOptions=ee.watchOptions&&oe.watchOptions?AS({},ee.watchOptions,oe.watchOptions):ee.watchOptions||oe.watchOptions}}}function BUe(t,r,s,l,m){ef(t,"excludes")&&m.push(W_(w.Unknown_option_excludes_Did_you_mean_exclude));const y=VUe(t.compilerOptions,s,m,l),T=lLe(t.typeAcquisition,s,m,l),D=UUe(t.watchOptions,s,m);t.compileOnSave=kst(t,s,m);const I=t.extends||t.extends===""?e$(t.extends,r,s,l,m):void 0;return{raw:t,options:y,watchOptions:D,typeAcquisition:T,extendedConfigPath:I}}function e$(t,r,s,l,m,y,T,D){let I;const W=l?WUe(l,s):s;if(As(t))I=zUe(t,r,W,m,T,D);else if(ls(t)){I=[];for(let O=0;OBe.name===te)&&(W=ur(W,de.name))))}}function zUe(t,r,s,l,m,y){if(t=hf(t),mm(t)||xf(t,"./")||xf(t,"../")){let D=Su(t,s);if(!r.fileExists(D)&&!h_(D,".json")&&(D=`${D}.json`,!r.fileExists(D))){l.push(o4(y,m,w.File_0_not_found,t));return}return D}const T=sHe(t,tf(s,"tsconfig.json"),r);if(T.resolvedModule)return T.resolvedModule.resolvedFileName;t===""?l.push(o4(y,m,w.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):l.push(o4(y,m,w.File_0_not_found,t))}function GUe(t,r,s,l,m,y,T){const D=s.useCaseSensitiveFileNames?r:Q0(r);let I,W,O;if(y&&(I=y.get(D))?{extendedResult:W,extendedConfig:O}=I:(W=tLe(r,V=>s.readFile(V)),W.parseDiagnostics.length||(O=sLe(void 0,W,s,qc(r),Iy(r),l,m,y)),y&&y.set(D,{extendedResult:W,extendedConfig:O})),t&&((T.extendedSourceFiles??(T.extendedSourceFiles=new Set)).add(W.fileName),W.extendedSourceFiles))for(const V of W.extendedSourceFiles)T.extendedSourceFiles.add(V);if(W.parseDiagnostics.length){m.push(...W.parseDiagnostics);return}return O}function kst(t,r,s){if(!ef(t,zpe.name))return!1;const l=lF(zpe,t.compileOnSave,r,s);return typeof l=="boolean"&&l}function jUe(t,r,s){const l=[];return{options:VUe(t,r,l,s),errors:l}}function Pst(t,r,s){const l=[];return{options:lLe(t,r,l,s),errors:l}}function cLe(t){return t&&Iy(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function VUe(t,r,s,l){const m=cLe(l);return f2e(Npe(),t,r,m,YG,s),l&&(m.configFilePath=hf(l)),m}function u2e(t){return{enable:!!t&&Iy(t)==="jsconfig.json",include:[],exclude:[]}}function lLe(t,r,s,l){const m=u2e(l);return f2e(ZJ(),t,r,m,_Q,s),m}function UUe(t,r,s){return f2e(r2e(),t,r,void 0,oae,s)}function f2e(t,r,s,l,m,y){if(r){for(const T in r){const D=t.get(T);D?(l||(l={}))[D.name]=lF(D,r[T],s,y):y.push(Ipe(T,m))}return l}}function o4(t,r,s,...l){return t&&r?M0(t,r,s,...l):W_(s,...l)}function lF(t,r,s,l,m,y,T){if(t.isCommandLineOnly){l.push(o4(T,m==null?void 0:m.name,w.Option_0_can_only_be_specified_on_command_line,t.name));return}if(wUe(t,r)){const D=t.type;if(D==="list"&&ls(r))return a4(t,r,s,l,m,y,T);if(D==="listOrElement")return ls(r)?a4(t,r,s,l,m,y,T):lF(t.element,r,s,l,m,y,T);if(!As(t.type))return _2e(t,r,l,y,T);const I=KG(t,r,l,y,T);return qG(I)?I:HUe(t,s,I)}else l.push(o4(T,y,w.Compiler_option_0_requires_a_value_of_type_1,t.name,wpe(t)))}function HUe(t,r,s){return t.isFilePath&&(s=Su(s,r),s===""&&(s=".")),s}function KG(t,r,s,l,m){var y;if(qG(r))return;const T=(y=t.extraValidation)==null?void 0:y.call(t,r);if(!T)return r;s.push(o4(m,l,...T))}function _2e(t,r,s,l,m){if(qG(r))return;const y=r.toLowerCase(),T=t.type.get(y);if(T!==void 0)return KG(t,T,s,l,m);s.push(Z6e(t,(D,...I)=>o4(m,l,D,...I)))}function a4(t,r,s,l,m,y,T){return gi(Vn(r,(D,I)=>lF(t.element,D,s,l,m,y==null?void 0:y.elements[I],T)),D=>t.listPreserveFalsyValues?!0:!!D)}function x6(t,r,s,l,m=Zn){r=Fd(r);const y=_v(l.useCaseSensitiveFileNames),T=new Map,D=new Map,I=new Map,{validatedFilesSpec:W,validatedIncludeSpecs:O,validatedExcludeSpecs:V}=t,ee=s3(s,m),te=Q9(s,ee);if(W)for(const Ne of W){const Be=Su(Ne,r);T.set(y(Be),Be)}let oe;if(O&&O.length>0)for(const Ne of l.readDirectory(r,Gf(te),V,O,void 0)){if(Pg(Ne,".json")){if(!oe){const pt=O.filter(ht=>h_(ht,".json")),Le=Vn(JH(pt,r,"files"),ht=>`^${ht}$`);oe=Le?Le.map(ht=>Y2(ht,l.useCaseSensitiveFileNames)):Zn}if(Ho(oe,pt=>pt.test(Ne))!==-1){const pt=y(Ne);!T.has(pt)&&!I.has(pt)&&I.set(pt,Ne)}continue}if(qUe(Ne,T,D,ee,y))continue;KUe(Ne,D,ee,y);const Be=y(Ne);!T.has(Be)&&!D.has(Be)&&D.set(Be,Ne)}const de=oc(T.values()),ue=oc(D.values());return de.concat(ue,oc(I.values()))}function JUe(t,r,s,l,m){const{validatedFilesSpec:y,validatedIncludeSpecs:T,validatedExcludeSpecs:D}=r;if(!Nt(T)||!Nt(D))return!1;s=Fd(s);const I=_v(l);if(y){for(const W of y)if(I(Su(W,s))===t)return!1}return uLe(t,D,l,m,s)}function IW(t){const r=xf(t,"**/")?0:t.indexOf("/**/");return r===-1?!1:(h_(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function Fpe(t,r,s,l){return uLe(t,gi(r,m=>!IW(m)),s,l)}function uLe(t,r,s,l,m){const y=a3(r,tf(Fd(l),m),"exclude"),T=y&&Y2(y,s);return T?T.test(t)?!0:!e7(t)&&T.test(Rv(t)):!1}function t$(t,r,s,l,m){return t.filter(T=>{if(!As(T))return!1;const D=Wpe(T,s);return D!==void 0&&r.push(y(...D)),D===void 0});function y(T,D){const I=RT(l,m,D);return o4(l,I,T,D)}}function Wpe(t,r){if(ce.assert(typeof t=="string"),r&&h2e.test(t))return[w.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(IW(t))return[w.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function $Ue({validatedIncludeSpecs:t,validatedExcludeSpecs:r},s,l){const m=a3(r,s,"exclude"),y=m&&new RegExp(m,l?"":"i"),T={};if(t!==void 0){const D=[];for(const I of t){const W=Fd(tf(s,I));if(y&&y.test(W))continue;const O=Bpe(W,l);if(O){const{key:V,flags:ee}=O,te=T[V];(te===void 0||tews(t,T)?T:void 0);if(!y)return!1;for(const T of y){if(Pg(t,T))return!1;const D=m(SA(t,T));if(r.has(D)||s.has(D)){if(T===".d.ts"&&(Pg(t,".js")||Pg(t,".jsx")))continue;return!0}}return!1}function KUe(t,r,s,l){const m=Ot(s,y=>ws(t,y)?y:void 0);if(m)for(let y=m.length-1;y>=0;y--){const T=m[y];if(Pg(t,T))return;const D=l(SA(t,T));r.delete(D)}}function fLe(t){const r={};for(const s in t)if(ef(t,s)){const l=t2e(s);l!==void 0&&(r[s]=_Le(t[s],l))}return r}function _Le(t,r){if(t===void 0)return t;switch(r.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!ls(t))return _Le(t,r.element);case"list":const s=r.element;return ls(t)?Qo(t,l=>_Le(l,s)):"";default:return wT(r.type,(l,m)=>{if(l===t)return m})}}function dLe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const r=t.defaultValueDescription;return t.isFilePath?`./${r&&typeof r=="string"?r:""}`:"";case"list":return[];case"listOrElement":return dLe(t.element);case"object":return{};default:const s=V5(t.type.keys());return s!==void 0?s:ce.fail("Expected 'option.type' to have entries.")}}var zpe,pLe,n$,Gpe,aQ,XG,sQ,uF,cQ,r$,i$,fC,o$,a$,tae,lQ,hI,nae,rae,iae,s$,c$,jpe,Vpe,uQ,YG,fQ,mLe,gLe,_Q,dQ,oae,hLe,yLe,d2e,pQ,mQ,p2e,m2e,g2e,QG,h2e,y2e,vLe=G({"src/compiler/commandLineParser.ts"(){Ad(),zpe={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pLe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),n$=new Map(p_(pLe.entries(),([t,r])=>[""+r,t])),Gpe=[["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"]],aQ=Gpe.map(t=>t[0]),XG=new Map(Gpe),sQ=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:w.Watch_and_Build_Modes,description:w.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:w.Watch_and_Build_Modes,description:w.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:w.Watch_and_Build_Modes,description:w.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:w.Watch_and_Build_Modes,description:w.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:Wpe},category:w.Watch_and_Build_Modes,description:w.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Wpe},category:w.Watch_and_Build_Modes,description:w.Remove_a_list_of_files_from_the_watch_mode_s_processing}],uF=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:w.Command_line_Options,description:w.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:w.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:w.Command_line_Options,description:w.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:w.Output_Formatting,description:w.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:w.Output_Formatting,description:w.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:w.Compiler_Diagnostics,description:w.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:w.Compiler_Diagnostics,description:w.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:w.Compiler_Diagnostics,description:w.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:w.FILE_OR_DIRECTORY,category:w.Compiler_Diagnostics,description:w.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:w.DIRECTORY,category:w.Compiler_Diagnostics,description:w.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:w.Projects,description:w.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:w.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,transpileOptionValue:void 0,description:w.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:w.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:w.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,description:w.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,defaultValueDescription:!1,description:w.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:w.Emit,description:w.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Watch_and_Build_Modes,description:w.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:w.Command_line_Options,isCommandLineOnly:!0,description:w.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:w.Platform_specific}],cQ={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:w.VERSION,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},r$={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})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:w.KIND,showInSimplifiedHelpView:!0,category:w.Modules,description:w.Specify_what_module_code_is_generated,defaultValueDescription:void 0},i$=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:w.Command_line_Options,paramType:w.FILE_OR_DIRECTORY,description:w.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:w.Command_line_Options,description:w.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,isCommandLineOnly:!0,description:w.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:w.Command_line_Options,isCommandLineOnly:!0,description:w.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},cQ,r$,{name:"lib",type:"list",element:{name:"lib",type:XG,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:w.JavaScript_Support,description:w.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,showInSimplifiedHelpView:!0,category:w.JavaScript_Support,description:w.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:pLe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:w.KIND,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.FILE,showInSimplifiedHelpView:!0,category:w.Emit,description:w.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:w.DIRECTORY,showInSimplifiedHelpView:!0,category:w.Emit,description:w.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.LOCATION,category:w.Modules,description:w.Specify_the_root_folder_within_your_source_files,defaultValueDescription:w.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:w.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:w.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:w.FILE,category:w.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:w.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,defaultValueDescription:!1,description:w.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:w.Emit,description:w.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.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:w.Emit,description:w.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:w.Interop_Constraints,description:w.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:w.Interop_Constraints,description:w.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:w.Type_Checking,description:w.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:w.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:w.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:w.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Ensure_use_strict_is_always_emitted,defaultValueDescription:w.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.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:w.Type_Checking,description:w.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.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:w.Type_Checking,description:w.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"]),affectsModuleResolution:!0,paramType:w.STRATEGY,category:w.Modules,description:w.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:w.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:w.Modules,description:w.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:w.Modules,description:w.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:w.Modules,description:w.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:w.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:w.Modules,description:w.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:w.Modules,description:w.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:w.Interop_Constraints,description:w.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:w.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Interop_Constraints,description:w.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:w.Interop_Constraints,description:w.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:w.Modules,description:w.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:w.Modules,description:w.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Modules,description:w.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:w.Modules,description:w.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:w.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:w.Modules,description:w.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:w.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:w.Modules,description:w.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:w.LOCATION,category:w.Emit,description:w.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:w.LOCATION,category:w.Emit,description:w.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:w.Language_and_Environment,description:w.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:w.Language_and_Environment,description:w.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:w.Language_and_Environment,description:w.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:w.Modules,description:w.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:w.Modules,description:w.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:w.Backwards_Compatibility,paramType:w.FILE,transpileOptionValue:void 0,description:w.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:w.Completeness,description:w.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:w.Backwards_Compatibility,description:w.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:w.Emit,description:w.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:w.NEWLINE,category:w.Emit,description:w.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Output_Formatting,description:w.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:w.Language_and_Environment,affectsProgramStructure:!0,description:w.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:w.Modules,description:w.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:w.Emit,description:w.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:w.Editor_Support,description:w.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:w.Projects,description:w.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:w.Projects,description:w.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:w.Projects,description:w.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,transpileOptionValue:void 0,description:w.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.DIRECTORY,category:w.Emit,transpileOptionValue:void 0,description:w.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:w.Completeness,description:w.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:w.Interop_Constraints,description:w.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:w.JavaScript_Support,description:w.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:w.Backwards_Compatibility,description:w.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:w.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:w.Backwards_Compatibility,description:w.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:w.Specify_a_list_of_language_service_plugins_to_include,category:w.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:w.Control_what_method_is_used_to_detect_module_format_JS_files,category:w.Language_and_Environment,defaultValueDescription:w.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}],fC=[...uF,...i$],o$=fC.filter(t=>!!t.affectsSemanticDiagnostics),a$=fC.filter(t=>!!t.affectsEmit),tae=fC.filter(t=>!!t.affectsDeclarationPath),lQ=fC.filter(t=>!!t.affectsModuleResolution),hI=fC.filter(t=>!!t.affectsSourceFile||!!t.affectsModuleResolution||!!t.affectsBindDiagnostics),nae=fC.filter(t=>!!t.affectsProgramStructure),rae=fC.filter(t=>ef(t,"transpileOptionValue")),iae=[{name:"verbose",shortName:"v",category:w.Command_line_Options,description:w.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:w.Command_line_Options,description:w.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:w.Command_line_Options,description:w.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:w.Command_line_Options,description:w.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],s$=[...uF,...iae],c$=[{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}],Vpe={diagnostic:w.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Ppe},uQ={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},YG={alternateMode:Vpe,getOptionsNameMap:DW,optionDeclarations:fC,unknownOptionDiagnostic:w.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:w.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Compiler_option_0_expects_an_argument},mLe={diagnostic:w.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:DW},gLe={alternateMode:mLe,getOptionsNameMap:Ppe,optionDeclarations:s$,unknownOptionDiagnostic:w.Unknown_build_option_0,unknownDidYouMeanDiagnostic:w.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Build_option_0_requires_a_value_of_type_1},_Q={optionDeclarations:c$,unknownOptionDiagnostic:w.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:w.Unknown_type_acquisition_option_0_Did_you_mean_1},oae={getOptionsNameMap:iQ,optionDeclarations:sQ,unknownOptionDiagnostic:w.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:w.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Watch_option_0_requires_a_value_of_type_1},pQ={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:w.File_Management,disallowNullOrUndefined:!0},mQ={name:"compilerOptions",type:"object",elementOptions:Npe(),extraKeyDiagnostics:YG},p2e={name:"watchOptions",type:"object",elementOptions:r2e(),extraKeyDiagnostics:oae},m2e={name:"typeAcquisition",type:"object",elementOptions:ZJ(),extraKeyDiagnostics:_Q},QG="**/*",h2e=/(^|\/)\*\*\/?$/,y2e=/^[^*?]*(?=\/[^/]*[*?])/}});function Vf(t){t.trace(Yie.apply(void 0,arguments))}function Dk(t,r){return!!t.traceResolution&&r.trace!==void 0}function kW(t,r){let s;if(r&&t){const l=t.contents.packageJsonContent;typeof l.name=="string"&&typeof l.version=="string"&&(s={name:l.name,subModuleName:r.path.slice(t.packageDirectory.length+q.length),version:l.version})}return r&&{path:r.path,extension:r.ext,packageId:s,resolvedUsingTsExtension:r.resolvedUsingTsExtension}}function Upe(t){return kW(void 0,t)}function XUe(t){if(t)return ce.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Df(t){const r=[];return t&1&&r.push("TypeScript"),t&2&&r.push("JavaScript"),t&4&&r.push("Declaration"),t&8&&r.push("JSON"),r.join(", ")}function DR(t){const r=[];return t&1&&r.push(...SG),t&2&&r.push(...iJ),t&4&&r.push(...h3),t&8&&r.push(".json"),r}function fF(t){if(t)return ce.assert(KH(t.extension)),{fileName:t.path,packageId:t.packageId}}function Hpe(t,r,s,l,m,y,T,D){if(!T.resultFromCache&&!T.compilerOptions.preserveSymlinks&&r&&s&&!r.originalPath&&!tb(t)){const{resolvedFileName:I,originalPath:W}=ZUe(r.path,T.host,T.traceEnabled);W&&(r={...r,path:I,originalPath:W})}return bLe(r,s,l,m,y,T.resultFromCache,D)}function bLe(t,r,s,l,m,y,T){return y?(y.failedLookupLocations=gQ(y.failedLookupLocations,s),y.affectingLocations=gQ(y.affectingLocations,l),y.resolutionDiagnostics=gQ(y.resolutionDiagnostics,m),y):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:r,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:PW(s),affectingLocations:PW(l),resolutionDiagnostics:PW(m),node10Result:T}}function PW(t){return t.length?t:void 0}function gQ(t,r){return r!=null&&r.length?t!=null&&t.length?(t.push(...r),t):r:t}function v2e(t,r,s,l){if(!ef(t,r)){l.traceEnabled&&Vf(l.host,w.package_json_does_not_have_a_0_field,r);return}const m=t[r];if(typeof m!==s||m===null){l.traceEnabled&&Vf(l.host,w.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,s,m===null?"null":typeof m);return}return m}function Jpe(t,r,s,l){const m=v2e(t,r,"string",l);if(m===void 0)return;if(!m){l.traceEnabled&&Vf(l.host,w.package_json_had_a_falsy_0_field,r);return}const y=Fd(tf(s,m));return l.traceEnabled&&Vf(l.host,w.package_json_has_0_field_1_that_references_2,r,m,y),y}function YUe(t,r,s){return Jpe(t,"typings",r,s)||Jpe(t,"types",r,s)}function hQ(t,r,s){return Jpe(t,"tsconfig",r,s)}function l$(t,r,s){return Jpe(t,"main",r,s)}function TLe(t,r){const s=v2e(t,"typesVersions","object",r);if(s!==void 0)return r.traceEnabled&&Vf(r.host,w.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function QUe(t,r){const s=TLe(t,r);if(s===void 0)return;if(r.traceEnabled)for(const T in s)ef(s,T)&&!Ar.tryParse(T)&&Vf(r.host,w.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,T);const l=yQ(s);if(!l){r.traceEnabled&&Vf(r.host,w.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ot);return}const{version:m,paths:y}=l;if(typeof y!="object"){r.traceEnabled&&Vf(r.host,w.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${m}']`,"object",typeof y);return}return l}function yQ(t){MW||(MW=new en(At));for(const r in t){if(!ef(t,r))continue;const s=Ar.tryParse(r);if(s!==void 0&&s.test(MW))return{version:r,paths:t[r]}}}function $pe(t,r){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=qc(t.configFilePath):r.getCurrentDirectory&&(s=r.getCurrentDirectory()),s!==void 0)return Nst(s)}function Nst(t){let r;return ok(Fd(t),s=>{const l=tf(s,P2e);(r??(r=[])).push(l)}),r}function wst(t,r,s){const l=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return wM(t,r,!l)===0}function ZUe(t,r,s){const l=ELe(t,r,s),m=wst(t,l,r);return{resolvedFileName:m?t:l,originalPath:m?void 0:t}}function eHe(t,r,s){const l=h_(t,"/node_modules/@types")||h_(t,"/node_modules/@types/")?dHe(r,s):r;return tf(t,l)}function vQ(t,r,s,l,m,y,T){ce.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 D=Dk(s,l);m&&(s=m.commandLine.options);const I=r?qc(r):void 0;let W=I?y==null?void 0:y.getFromDirectoryCache(t,T,I,m):void 0;if(!W&&I&&!tb(t)&&(W=y==null?void 0:y.getFromNonRelativeNameCache(t,T,I,m)),W)return D&&(Vf(l,w.Resolving_type_reference_directive_0_containing_file_1,t,r),m&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName),Vf(l,w.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,I),pt(W)),W;const O=$pe(s,l);D&&(r===void 0?O===void 0?Vf(l,w.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Vf(l,w.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,O):O===void 0?Vf(l,w.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,r):Vf(l,w.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,r,O),m&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName));const V=[],ee=[];let te=ZG(s);T===99&&(Jd(s)===3||Jd(s)===99)&&(te|=32);const oe=te&8?u$(s,!!(te&32)):[],de=[],ue={compilerOptions:s,host:l,traceEnabled:D,failedLookupLocations:V,affectingLocations:ee,packageJsonInfoCache:y,features:te,conditions:oe,requestContainingDirectory:I,reportDiagnostic:ke=>void de.push(ke),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let Ne=Le(),Be=!0;Ne||(Ne=ht(),Be=!1);let Ve;if(Ne){const{fileName:ke,packageId:_t}=Ne;let Dt=ke,Ft;s.preserveSymlinks||({resolvedFileName:Dt,originalPath:Ft}=ZUe(ke,l,D)),Ve={primary:Be,resolvedFileName:Dt,originalPath:Ft,packageId:_t,isExternalLibraryImport:NW(ke)}}return W={resolvedTypeReferenceDirective:Ve,failedLookupLocations:PW(V),affectingLocations:PW(ee),resolutionDiagnostics:PW(de)},I&&(y==null||y.getOrCreateCacheForDirectory(I,m).set(t,T,W),tb(t)||y==null||y.getOrCreateCacheForNonRelativeName(t,T,m).set(I,W)),D&&pt(W),W;function pt(ke){var _t;(_t=ke.resolvedTypeReferenceDirective)!=null&&_t.resolvedFileName?ke.resolvedTypeReferenceDirective.packageId?Vf(l,w.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ke.resolvedTypeReferenceDirective.resolvedFileName,pP(ke.resolvedTypeReferenceDirective.packageId),ke.resolvedTypeReferenceDirective.primary):Vf(l,w.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ke.resolvedTypeReferenceDirective.resolvedFileName,ke.resolvedTypeReferenceDirective.primary):Vf(l,w.Type_reference_directive_0_was_not_resolved,t)}function Le(){if(O&&O.length)return D&&Vf(l,w.Resolving_with_primary_search_path_0,O.join(", ")),Yr(O,ke=>{const _t=eHe(ke,t,ue),Dt=O0(ke,l);if(!Dt&&D&&Vf(l,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,ke),s.typeRoots){const Ft=dF(4,_t,!Dt,ue);if(Ft){const it=wW(Ft.path),Ye=it?c4(it,!1,ue):void 0;return fF(kW(Ye,Ft))}}return fF(A2e(4,_t,!Dt,ue))});D&&Vf(l,w.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ht(){const ke=r&&qc(r);if(ke!==void 0){let _t;if(!s.typeRoots||!h_(r,sse))if(D&&Vf(l,w.Looking_up_in_node_modules_folder_initial_location_0,ke),tb(t)){const{path:Dt}=cHe(ke,t);_t=cae(4,Dt,!1,ue,!0)}else{const Dt=_He(4,t,ke,ue,void 0,void 0);_t=Dt&&Dt.value}else D&&Vf(l,w.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return fF(_t)}else D&&Vf(l,w.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function ZG(t){let r=0;switch(Jd(t)){case 3:r=30;break;case 99:r=30;break;case 100:r=30;break}return t.resolvePackageJsonExports?r|=8:t.resolvePackageJsonExports===!1&&(r&=-9),t.resolvePackageJsonImports?r|=2:t.resolvePackageJsonImports===!1&&(r&=-3),r}function u$(t,r){const s=r||Jd(t)===100?["import"]:["require"];return t.noDtsResolution||s.push("types"),Jd(t)!==100&&s.push("node"),Hi(s,t.customConditions)}function Rst(t,r,s,l,m){const y=p$(m==null?void 0:m.getPackageJsonInfoCache(),l,s);return ok(r,T=>{if(Iy(T)!=="node_modules"){const D=tf(T,"node_modules"),I=tf(D,t);return c4(I,!1,y)}})}function qpe(t,r){if(t.types)return t.types;const s=[];if(r.directoryExists&&r.getDirectories){const l=$pe(t,r);if(l){for(const m of l)if(r.directoryExists(m))for(const y of r.getDirectories(m)){const T=Fd(y),D=tf(m,T,"package.json");if(!(r.fileExists(D)&&e3(D,r).typings===null)){const W=Iy(T);W.charCodeAt(0)!==46&&s.push(W)}}}}return s}function b2e(t){var r;if(t===null||typeof t!="object")return""+t;if(ls(t))return`[${(r=t.map(l=>b2e(l)))==null?void 0:r.join(",")}]`;let s="{";for(const l in t)ef(t,l)&&(s+=`${l}: ${b2e(t[l])}`);return s+"}"}function Kpe(t,r){return r.map(s=>b2e(jH(t,s))).join("|")+`|${t.pathsBasePath}`}function Xpe(t){const r=new Map,s=new Map,l=new Map;let m=new Map;return t&&r.set(t,m),{getMapOfCacheRedirects:y,getOrCreateMapOfCacheRedirects:T,update:D,clear:W};function y(V){return V?I(V.commandLine.options,!1):m}function T(V){return V?I(V.commandLine.options,!0):m}function D(V){t!==V&&(t?m=I(V,!0):r.set(V,m),t=V)}function I(V,ee){let te=r.get(V);if(te)return te;const oe=O(V);if(te=l.get(oe),!te){if(t){const de=O(t);de===oe?te=m:l.has(de)||l.set(de,m)}ee&&(te??(te=new Map)),te&&l.set(oe,te)}return te&&r.set(V,te),te}function W(){const V=t&&s.get(t);m.clear(),r.clear(),s.clear(),l.clear(),t&&(V&&s.set(t,V),r.set(t,m))}function O(V){let ee=s.get(V);return ee||s.set(V,ee=Kpe(V,lQ)),ee}}function _F(t,r){let s;return{getPackageJsonInfo:l,setPackageJsonInfo:m,clear:y,entries:T,getInternalMap:D};function l(I){return s==null?void 0:s.get(_h(I,t,r))}function m(I,W){(s||(s=new Map)).set(_h(I,t,r),W)}function y(){s=void 0}function T(){const I=s==null?void 0:s.entries();return I?oc(I):[]}function D(){return s}}function Ype(t,r,s,l){const m=t.getOrCreateMapOfCacheRedirects(r);let y=m.get(s);return y||(y=l(),m.set(s,y)),y}function Qpe(t,r,s){const l=Xpe(s);return{getFromDirectoryCache:D,getOrCreateCacheForDirectory:T,clear:m,update:y};function m(){l.clear()}function y(I){l.update(I)}function T(I,W){const O=_h(I,t,r);return Ype(l,W,O,()=>N3())}function D(I,W,O,V){var ee,te;const oe=_h(O,t,r);return(te=(ee=l.getMapOfCacheRedirects(V))==null?void 0:ee.get(oe))==null?void 0:te.get(I,W)}}function f$(t,r){return r===void 0?t:`${r}|${t}`}function N3(){const t=new Map,r=new Map,s={get(m,y){return t.get(l(m,y))},set(m,y,T){return t.set(l(m,y),T),s},delete(m,y){return t.delete(l(m,y)),s},has(m,y){return t.has(l(m,y))},forEach(m){return t.forEach((y,T)=>{const[D,I]=r.get(T);return m(y,D,I)})},size(){return t.size}};return s;function l(m,y){const T=f$(m,y);return r.set(T,[m,y]),T}}function aae(t,r,s,l){ce.assert(r.length===s.length);const m=N3();for(let y=0;yl,clearAllExceptPackageJsonInfoCache:I};function D(){I(),l.clear()}function I(){y.clear(),T.clear()}function W(O){y.update(O),T.update(O)}}function IR(t,r,s,l){const m=_$(t,r,s,l,Mst);return m.getOrCreateCacheForModuleName=(y,T,D)=>m.getOrCreateCacheForNonRelativeName(y,T,D),m}function T2e(t,r,s,l){return _$(t,r,s,l,tHe)}function SLe(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function S2e(t,r,s,l,m){return s4(t,r,SLe(s),l,m)}function nHe(t,r,s,l){const m=qc(r);return s.getFromDirectoryCache(t,l,m,void 0)}function s4(t,r,s,l,m,y,T){var D,I,W;const O=Dk(s,l);y&&(s=y.commandLine.options),O&&(Vf(l,w.Resolving_module_0_from_1,t,r),y&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,y.sourceFile.fileName));const V=qc(r);let ee=m==null?void 0:m.getFromDirectoryCache(t,T,V,y);if(ee)O&&Vf(l,w.Resolution_for_module_0_was_found_in_cache_from_location_1,t,V);else{let te=s.moduleResolution;if(te===void 0){switch(Zp(s)){case 1:te=2;break;case 100:te=3;break;case 199:te=99;break;default:te=1;break}O&&Vf(l,w.Module_resolution_kind_is_not_specified_using_0,n9[te])}else O&&Vf(l,w.Explicitly_specified_module_resolution_kind_Colon_0,n9[te]);switch((D=jD)==null||D.logStartResolveModule(t),te){case 3:ee=iHe(t,r,s,l,m,y,T);break;case 99:ee=Ost(t,r,s,l,m,y,T);break;case 2:ee=aHe(t,r,s,l,m,y);break;case 1:ee=pae(t,r,s,l,m,y);break;case 100:ee=x2e(t,r,s,l,m,y);break;default:return ce.fail(`Unexpected moduleResolution: ${te}`)}ee&&ee.resolvedModule&&((I=jD)==null||I.logInfoEvent(`Module "${t}" resolved to "${ee.resolvedModule.resolvedFileName}"`)),(W=jD)==null||W.logStopResolveModule(ee&&ee.resolvedModule?""+ee.resolvedModule.resolvedFileName:"null"),m==null||m.getOrCreateCacheForDirectory(V,y).set(t,T,ee),tb(t)||m==null||m.getOrCreateCacheForNonRelativeName(t,T,y).set(V,ee)}return O&&(ee.resolvedModule?ee.resolvedModule.packageId?Vf(l,w.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,ee.resolvedModule.resolvedFileName,pP(ee.resolvedModule.packageId)):Vf(l,w.Module_name_0_was_successfully_resolved_to_1,t,ee.resolvedModule.resolvedFileName):Vf(l,w.Module_name_0_was_not_resolved,t)),ee}function sae(t,r,s,l,m){const y=E2e(t,r,l,m);return y?y.value:tb(r)?Zpe(t,r,s,l,m):rHe(t,r,l,m)}function E2e(t,r,s,l){var m;const{baseUrl:y,paths:T,configFile:D}=l.compilerOptions;if(T&&!U2(r)){l.traceEnabled&&(y&&Vf(l.host,w.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,y,r),Vf(l.host,w.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r));const I=G9(l.compilerOptions,l.host),W=D!=null&&D.configFileSpecs?(m=D.configFileSpecs).pathPatterns||(m.pathPatterns=qH(T)):void 0;return k2e(t,r,I,T,W,s,!1,l)}}function Zpe(t,r,s,l,m){if(!m.compilerOptions.rootDirs)return;m.traceEnabled&&Vf(m.host,w.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);const y=Fd(tf(s,r));let T,D;for(const I of m.compilerOptions.rootDirs){let W=Fd(I);h_(W,q)||(W+=q);const O=xf(y,W)&&(D===void 0||D.lengthvoid Ne.push(ht),isConfigLookup:D,candidateIsFromPackageJsonField:!1};te&&UN(Jd(l))&&Vf(m,w.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",ue.map(ht=>`'${ht}'`).join(", "));let Ve;if(Jd(l)===2){const ht=T&5,ke=T&-6;Ve=ht&&Le(ht,Be)||ke&&Le(ke,Be)||void 0}else Ve=Le(T,Be);let pt;if((W=Ve==null?void 0:Ve.value)!=null&&W.isExternalLibraryImport&&!D&&T&5&&t&8&&!tb(r)&&!m$(5,Ve.value.resolved.extension)&&ue.indexOf("import")>-1){C6(Be,w.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ht={...Be,features:Be.features&-9,reportDiagnostic:ku},ke=Le(T&5,ht);(O=ke==null?void 0:ke.value)!=null&&O.isExternalLibraryImport&&(pt=ke.value.resolved.path)}return Hpe(r,(V=Ve==null?void 0:Ve.value)==null?void 0:V.resolved,(ee=Ve==null?void 0:Ve.value)==null?void 0:ee.isExternalLibraryImport,oe,de,Ne,Be,pt);function Le(ht,ke){const Dt=sae(ht,r,s,(Ft,it,Ye,ut)=>cae(Ft,it,Ye,ut,!0),ke);if(Dt)return rx({resolved:Dt,isExternalLibraryImport:NW(Dt.path)});if(tb(r)){const{path:Ft,parts:it}=cHe(s,r),Ye=cae(ht,Ft,!1,ke,!0);return Ye&&rx({resolved:Ye,isExternalLibraryImport:ni(it,"node_modules")})}else{let Ft;if(t&2&&xf(r,"#")&&(Ft=fae(ht,r,s,ke,y,I)),!Ft&&t&4&&(Ft=Wst(ht,r,s,ke,y,I)),!Ft){if(r.indexOf(":")>-1){te&&Vf(m,w.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,r,Df(ht));return}te&&Vf(m,w.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,r,Df(ht)),Ft=_He(ht,r,s,ke,y,I)}return ht&4&&(Ft??(Ft=nj(r,ke))),Ft&&{value:Ft.value&&{resolved:Ft.value,isExternalLibraryImport:!0}}}}}function cHe(t,r){const s=tf(t,r),l=g0(s),m=Yf(l);return{path:m==="."||m===".."?Rv(Fd(s)):Fd(s),parts:l}}function ELe(t,r,s){if(!r.realpath)return t;const l=Fd(r.realpath(t));return s&&Vf(r,w.Resolving_real_path_for_0_result_1,t,l),ce.assert(r.fileExists(l),`${t} linked to nonexistent file ${l}`),l}function cae(t,r,s,l,m){if(l.traceEnabled&&Vf(l.host,w.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,r,Df(t)),!Jg(r)){if(!s){const T=qc(r);O0(T,l.host)||(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,T),s=!0)}const y=dF(t,r,s,l);if(y){const T=m?wW(y.path):void 0,D=T?c4(T,!1,l):void 0;return kW(D,y)}}if(s||O0(r,l.host)||(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),s=!0),!(l.features&32))return A2e(t,r,s,l,m)}function NW(t){return Ub(t,ix)}function wW(t,r){const s=Fd(t),l=s.lastIndexOf(ix);if(l===-1)return;const m=l+ix.length;let y=xLe(s,m,r);return s.charCodeAt(m)===64&&(y=xLe(s,y,r)),s.slice(0,y)}function xLe(t,r,s){const l=t.indexOf(q,r+1);return l===-1?s?t.length:r:l}function ALe(t,r,s,l){return Upe(dF(t,r,s,l))}function dF(t,r,s,l){const m=RW(t,r,s,l);if(m)return m;if(!(l.features&32)){const y=CLe(r,t,"",s,l);if(y)return y}}function RW(t,r,s,l){if(Iy(r).indexOf(".")===-1)return;let y=wg(r);y===r&&(y=r.substring(0,r.lastIndexOf(".")));const T=r.substring(y.length);return l.traceEnabled&&Vf(l.host,w.File_name_0_has_a_1_extension_stripping_it,r,T),CLe(y,t,T,s,l)}function d$(t,r,s,l){return t&1&&ws(r,SG)||t&4&&ws(r,h3)?TQ(r,s,l)!==void 0?{path:r,ext:PH(r),resolvedUsingTsExtension:void 0}:void 0:l.isConfigLookup&&t===8&&Pg(r,".json")?TQ(r,s,l)!==void 0?{path:r,ext:".json",resolvedUsingTsExtension:void 0}:void 0:RW(t,r,s,l)}function CLe(t,r,s,l,m){if(!l){const T=qc(t);T&&(l=!O0(T,m.host))}switch(s){case".mjs":case".mts":case".d.mts":return r&1&&y(".mts",s===".mts"||s===".d.mts")||r&4&&y(".d.mts",s===".mts"||s===".d.mts")||r&2&&y(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return r&1&&y(".cts",s===".cts"||s===".d.cts")||r&4&&y(".d.cts",s===".cts"||s===".d.cts")||r&2&&y(".cjs")||void 0;case".json":return r&4&&y(".d.json.ts")||r&8&&y(".json")||void 0;case".tsx":case".jsx":return r&1&&(y(".tsx",s===".tsx")||y(".ts",s===".tsx"))||r&4&&y(".d.ts",s===".tsx")||r&2&&(y(".jsx")||y(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return r&1&&(y(".ts",s===".ts"||s===".d.ts")||y(".tsx",s===".ts"||s===".d.ts"))||r&4&&y(".d.ts",s===".ts"||s===".d.ts")||r&2&&(y(".js")||y(".jsx"))||m.isConfigLookup&&y(".json")||void 0;default:return r&4&&!iT(t+s)&&y(`.d${s}.ts`)||void 0}function y(T,D){const I=TQ(t+T,l,m);return I===void 0?void 0:{path:I,ext:T,resolvedUsingTsExtension:!m.candidateIsFromPackageJsonField&&D}}}function TQ(t,r,s){var l;if(!((l=s.compilerOptions.moduleSuffixes)!=null&&l.length))return tj(t,r,s);const m=OT(t)??"",y=m?eW(t,m):t;return Ot(s.compilerOptions.moduleSuffixes,T=>tj(y+T+m,r,s))}function tj(t,r,s){var l;if(!r){if(s.host.fileExists(t))return s.traceEnabled&&Vf(s.host,w.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Vf(s.host,w.File_0_does_not_exist,t)}(l=s.failedLookupLocations)==null||l.push(t)}function A2e(t,r,s,l,m=!0){const y=m?c4(r,s,l):void 0,T=y&&y.contents.packageJsonContent,D=y&&SQ(y,l);return kW(y,C2e(t,r,s,l,T,D))}function DLe(t,r,s,l,m){if(!m&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let y;const T=5|(m?2:0),D=ZG(r),I=p$(l==null?void 0:l.getPackageJsonInfoCache(),s,r);I.conditions=u$(r),I.requestContainingDirectory=t.packageDirectory;const W=C2e(T,t.packageDirectory,!1,I,t.contents.packageJsonContent,SQ(t,I));if(y=ur(y,W==null?void 0:W.path),D&8&&t.contents.packageJsonContent.exports){const O=th([u$(r,!0),u$(r,!1)],fv);for(const V of O){const ee={...I,failedLookupLocations:[],conditions:V,host:s},te=lHe(t,t.contents.packageJsonContent.exports,ee,T);if(te)for(const oe of te)y=ST(y,oe.path)}}return t.contents.resolvedEntrypoints=y||!1}function lHe(t,r,s,l){let m;if(ls(r))for(const T of r)y(T);else if(typeof r=="object"&&r!==null&&A6(r))for(const T in r)y(r[T]);else y(r);return m;function y(T){var D,I;if(typeof T=="string"&&xf(T,"./"))if(T.indexOf("*")>=0&&s.host.readDirectory){if(T.indexOf("*")!==T.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,DR(l),void 0,[RU(T.replace("*","**/*"),JL(T))]).forEach(W=>{m=ST(m,{path:W,ext:vl(W),resolvedUsingTsExtension:void 0})})}else{const W=g0(T).slice(2);if(W.indexOf("..")>=0||W.indexOf(".")>=0||W.indexOf("node_modules")>=0)return!1;const O=tf(t.packageDirectory,T),V=Su(O,(I=(D=s.host).getCurrentDirectory)==null?void 0:I.call(D)),ee=d$(l,V,!1,s);if(ee)return m=ST(m,ee,(te,oe)=>te.path===oe.path),!0}else if(Array.isArray(T)){for(const W of T)if(y(W))return!0}else if(typeof T=="object"&&T!==null)return Ot(ET(T),W=>{if(W==="default"||ni(s.conditions,W)||g$(s.conditions,W))return y(T[W]),!0})}}function p$(t,r,s){return{host:r,compilerOptions:s,traceEnabled:Dk(s,r),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:Zn,requestContainingDirectory:void 0,reportDiagnostic:ku,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function eme(t,r){const s=g0(t);for(s.pop();s.length>0;){const l=c4(vf(s),!1,r);if(l)return l;s.pop()}}function SQ(t,r){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=QUe(t.contents.packageJsonContent,r)||!1),t.contents.versionPaths||void 0}function c4(t,r,s){var l,m,y,T,D,I,W,O;const{host:V,traceEnabled:ee}=s,te=tf(t,"package.json");if(r){(l=s.failedLookupLocations)==null||l.push(te);return}const oe=(m=s.packageJsonInfoCache)==null?void 0:m.getPackageJsonInfo(te);if(oe!==void 0){if(typeof oe!="boolean")return ee&&Vf(V,w.File_0_exists_according_to_earlier_cached_lookups,te),(y=s.affectingLocations)==null||y.push(te),oe.packageDirectory===t?oe:{packageDirectory:t,contents:oe.contents};oe&&ee&&Vf(V,w.File_0_does_not_exist_according_to_earlier_cached_lookups,te),(T=s.failedLookupLocations)==null||T.push(te);return}const de=O0(t,V);if(de&&V.fileExists(te)){const ue=e3(te,V);ee&&Vf(V,w.Found_package_json_at_0,te);const Ne={packageDirectory:t,contents:{packageJsonContent:ue,versionPaths:void 0,resolvedEntrypoints:void 0}};return(D=s.packageJsonInfoCache)==null||D.setPackageJsonInfo(te,Ne),(I=s.affectingLocations)==null||I.push(te),Ne}else de&&ee&&Vf(V,w.File_0_does_not_exist,te),(W=s.packageJsonInfoCache)==null||W.setPackageJsonInfo(te,de),(O=s.failedLookupLocations)==null||O.push(te)}function C2e(t,r,s,l,m,y){let T;m&&(l.isConfigLookup?T=hQ(m,r,l):T=t&4&&YUe(m,r,l)||t&7&&l$(m,r,l)||void 0);const D=(ee,te,oe,de)=>{const ue=TQ(te,oe,de);if(ue){const Le=lae(ee,ue);if(Le)return Upe(Le);de.traceEnabled&&Vf(de.host,w.File_0_has_an_unsupported_extension_so_skipping_it,ue)}const Ne=ee===4?5:ee,Be=de.features,Ve=de.candidateIsFromPackageJsonField;de.candidateIsFromPackageJsonField=!0,(m==null?void 0:m.type)!=="module"&&(de.features&=-33);const pt=cae(Ne,te,oe,de,!1);return de.features=Be,de.candidateIsFromPackageJsonField=Ve,pt},I=T?!O0(qc(T),l.host):void 0,W=s||!O0(r,l.host),O=tf(r,l.isConfigLookup?"tsconfig":"index");if(y&&(!T||GC(r,T))){const ee=qp(r,T||O,!1);l.traceEnabled&&Vf(l.host,w.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,At,ee);const te=k2e(t,ee,r,y.paths,void 0,D,I||W,l);if(te)return XUe(te.value)}const V=T&&XUe(D(t,T,I,l));if(V)return V;if(!(l.features&32))return dF(t,O,W,l)}function lae(t,r,s){const l=OT(r);return l!==void 0&&m$(t,l)?{path:r,ext:l,resolvedUsingTsExtension:s}:void 0}function m$(t,r){return t&2&&(r===".js"||r===".jsx"||r===".mjs"||r===".cjs")||t&1&&(r===".ts"||r===".tsx"||r===".mts"||r===".cts")||t&4&&(r===".d.ts"||r===".d.mts"||r===".d.cts")||t&8&&r===".json"||!1}function EQ(t){let r=t.indexOf(q);return t[0]==="@"&&(r=t.indexOf(q,r+1)),r===-1?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function A6(t){return jr(ET(t),r=>xf(r,"."))}function D2e(t){return!gt(ET(t),r=>xf(r,"."))}function Wst(t,r,s,l,m,y){var T,D;const I=Su(tf(s,"dummy"),(D=(T=l.host).getCurrentDirectory)==null?void 0:D.call(T)),W=eme(I,l);if(!W||!W.contents.packageJsonContent.exports||typeof W.contents.packageJsonContent.name!="string")return;const O=g0(r),V=g0(W.contents.packageJsonContent.name);if(!jr(V,(ue,Ne)=>O[Ne]===ue))return;const ee=O.slice(V.length),te=Nt(ee)?`.${q}${ee.join(q)}`:".";if(TP(l.compilerOptions)&&!NW(s))return uae(W,t,te,l,m,y);const oe=t&5,de=t&-6;return uae(W,oe,te,l,m,y)||uae(W,de,te,l,m,y)}function uae(t,r,s,l,m,y){if(t.contents.packageJsonContent.exports){if(s==="."){let T;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&D2e(t.contents.packageJsonContent.exports)?T=t.contents.packageJsonContent.exports:ef(t.contents.packageJsonContent.exports,".")&&(T=t.contents.packageJsonContent.exports["."]),T)return fHe(r,l,m,y,s,t,!1)(T,"",!1,".")}else if(A6(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return l.traceEnabled&&Vf(l.host,w.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),rx(void 0);const T=uHe(r,l,m,y,s,t.contents.packageJsonContent.exports,t,!1);if(T)return T}return l.traceEnabled&&Vf(l.host,w.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),rx(void 0)}}function fae(t,r,s,l,m,y){var T,D;if(r==="#"||xf(r,"#/"))return l.traceEnabled&&Vf(l.host,w.Invalid_import_specifier_0_has_no_possible_resolutions,r),rx(void 0);const I=Su(tf(s,"dummy"),(D=(T=l.host).getCurrentDirectory)==null?void 0:D.call(T)),W=eme(I,l);if(!W)return l.traceEnabled&&Vf(l.host,w.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,I),rx(void 0);if(!W.contents.packageJsonContent.imports)return l.traceEnabled&&Vf(l.host,w.package_json_scope_0_has_no_imports_defined,W.packageDirectory),rx(void 0);const O=uHe(t,l,m,y,r,W.contents.packageJsonContent.imports,W,!0);return O||(l.traceEnabled&&Vf(l.host,w.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,W.packageDirectory),rx(void 0))}function xQ(t,r){const s=t.indexOf("*"),l=r.indexOf("*"),m=s===-1?t.length:s+1,y=l===-1?r.length:l+1;return m>y?-1:y>m||s===-1?1:l===-1||t.length>r.length?-1:r.length>t.length?1:0}function uHe(t,r,s,l,m,y,T,D){const I=fHe(t,r,s,l,m,T,D);if(!h_(m,q)&&m.indexOf("*")===-1&&ef(y,m)){const V=y[m];return I(V,"",!1,m)}const W=fN(gi(ET(y),V=>V.indexOf("*")!==-1||h_(V,"/")),xQ);for(const V of W)if(r.features&16&&O(V,m)){const ee=y[V],te=V.indexOf("*"),oe=m.substring(V.substring(0,te).length,m.length-(V.length-1-te));return I(ee,oe,!0,V)}else if(h_(V,"*")&&xf(m,V.substring(0,V.length-1))){const ee=y[V],te=m.substring(V.length-1);return I(ee,te,!0,V)}else if(xf(m,V)){const ee=y[V],te=m.substring(V.length);return I(ee,te,!1,V)}function O(V,ee){if(h_(V,"*"))return!1;const te=V.indexOf("*");return te===-1?!1:xf(ee,V.substring(0,te))&&h_(ee,V.substring(te+1))}}function fHe(t,r,s,l,m,y,T){return D;function D(I,W,O,V){if(typeof I=="string"){if(!O&&W.length>0&&!h_(I,"/"))return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);if(!xf(I,"./")){if(T&&!xf(I,"../")&&!xf(I,"/")&&!mm(I)){const Le=O?I.replace(/\*/g,W):I+W;C6(r,w.Using_0_subpath_1_with_target_2,"imports",V,Le),C6(r,w.Resolving_module_0_from_1,Le,y.packageDirectory+"/");const ht=bQ(r.features,Le,y.packageDirectory+"/",r.compilerOptions,r.host,s,t,!1,l);return rx(ht.resolvedModule?{path:ht.resolvedModule.resolvedFileName,extension:ht.resolvedModule.extension,packageId:ht.resolvedModule.packageId,originalPath:ht.resolvedModule.originalPath,resolvedUsingTsExtension:ht.resolvedModule.resolvedUsingTsExtension}:void 0)}return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0)}const ue=(U2(I)?g0(I).slice(1):g0(I)).slice(1);if(ue.indexOf("..")>=0||ue.indexOf(".")>=0||ue.indexOf("node_modules")>=0)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);const Ne=tf(y.packageDirectory,I),Be=g0(W);if(Be.indexOf("..")>=0||Be.indexOf(".")>=0||Be.indexOf("node_modules")>=0)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);r.traceEnabled&&Vf(r.host,w.Using_0_subpath_1_with_target_2,T?"imports":"exports",V,O?I.replace(/\*/g,W):I+W);const Ve=ee(O?Ne.replace(/\*/g,W):Ne+W),pt=oe(Ve,W,tf(y.packageDirectory,"package.json"),T);return pt||rx(kW(y,d$(t,Ve,!1,r)))}else if(typeof I=="object"&&I!==null)if(Array.isArray(I)){if(!Nt(I))return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);for(const de of I){const ue=D(de,W,O,V);if(ue)return ue}}else{C6(r,w.Entering_conditional_exports);for(const de of ET(I))if(de==="default"||r.conditions.indexOf(de)>=0||g$(r.conditions,de)){C6(r,w.Matched_0_condition_1,T?"imports":"exports",de);const ue=I[de],Ne=D(ue,W,O,V);if(Ne)return C6(r,w.Resolved_under_condition_0,de),C6(r,w.Exiting_conditional_exports),Ne;C6(r,w.Failed_to_resolve_under_condition_0,de)}else C6(r,w.Saw_non_matching_condition_0,de);C6(r,w.Exiting_conditional_exports);return}else if(I===null)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_explicitly_maps_specifier_1_to_null,y.packageDirectory,m),rx(void 0);return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);function ee(de){var ue,Ne;return de===void 0?de:Su(de,(Ne=(ue=r.host).getCurrentDirectory)==null?void 0:Ne.call(ue))}function te(de,ue){return Rv(tf(de,ue))}function oe(de,ue,Ne,Be){var Ve,pt,Le,ht;if(!r.isConfigLookup&&(r.compilerOptions.declarationDir||r.compilerOptions.outDir)&&de.indexOf("/node_modules/")===-1&&(!r.compilerOptions.configFile||GC(y.packageDirectory,ee(r.compilerOptions.configFile.fileName),!nme(r)))){const _t=hR({useCaseSensitiveFileNames:()=>nme(r)}),Dt=[];if(r.compilerOptions.rootDir||r.compilerOptions.composite&&r.compilerOptions.configFilePath){const Ft=ee(gF(r.compilerOptions,()=>[],((pt=(Ve=r.host).getCurrentDirectory)==null?void 0:pt.call(Ve))||"",_t));Dt.push(Ft)}else if(r.requestContainingDirectory){const Ft=ee(tf(r.requestContainingDirectory,"index.ts")),it=ee(gF(r.compilerOptions,()=>[Ft,ee(Ne)],((ht=(Le=r.host).getCurrentDirectory)==null?void 0:ht.call(Le))||"",_t));Dt.push(it);let Ye=Rv(it);for(;Ye&&Ye.length>1;){const ut=g0(Ye);ut.pop();const lt=vf(ut);Dt.unshift(lt),Ye=Rv(lt)}}Dt.length>1&&r.reportDiagnostic(W_(Be?w.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:w.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,ue===""?".":ue,Ne));for(const Ft of Dt){const it=ke(Ft);for(const Ye of it)if(GC(Ye,de,!nme(r))){const ut=de.slice(Ye.length+1),lt=tf(Ft,ut),zt=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Wt of zt)if(Pg(lt,Wt)){const tt=Fie(lt);for(const Mn of tt){if(!m$(t,Mn))continue;const kn=RU(lt,Mn,Wt,!nme(r));if(r.host.fileExists(kn))return rx(kW(y,d$(t,kn,!1,r)))}}}}}return;function ke(_t){var Dt,Ft;const it=r.compilerOptions.configFile?((Ft=(Dt=r.host).getCurrentDirectory)==null?void 0:Ft.call(Dt))||"":_t,Ye=[];return r.compilerOptions.declarationDir&&Ye.push(ee(te(it,r.compilerOptions.declarationDir))),r.compilerOptions.outDir&&r.compilerOptions.outDir!==r.compilerOptions.declarationDir&&Ye.push(ee(te(it,r.compilerOptions.outDir))),Ye}}}}function g$(t,r){if(t.indexOf("types")===-1||!xf(r,"types@"))return!1;const s=Ar.tryParse(r.substring(6));return s?s.test(At):!1}function _He(t,r,s,l,m,y){return ILe(t,r,s,l,!1,m,y)}function I2e(t,r,s){return ILe(4,t,r,s,!0,void 0,void 0)}function ILe(t,r,s,l,m,y,T){const D=l.features===0?void 0:l.features&32?99:1,I=t&5,W=t&-6;if(I){C6(l,w.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Df(I));const V=O(I);if(V)return V}if(W&&!m)return C6(l,w.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Df(W)),O(W);function O(V){return ok(hf(s),ee=>{if(Iy(ee)!=="node_modules"){const te=PLe(y,r,D,ee,T,l);return te||rx(kLe(V,r,ee,l,m,y,T))}})}}function kLe(t,r,s,l,m,y,T){const D=tf(s,"node_modules"),I=O0(D,l.host);if(!I&&l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,D),!m){const W=AQ(t,r,D,I,l,y,T);if(W)return W}if(t&4){const W=tf(D,"@types");let O=I;return I&&!O0(W,l.host)&&(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,W),O=!1),AQ(4,dHe(r,l),W,O,l,y,T)}}function AQ(t,r,s,l,m,y,T){var D,I;const W=Fd(tf(s,r)),{packageName:O,rest:V}=EQ(r),ee=tf(s,O);let te,oe=c4(W,!l,m);if(V!==""&&oe&&(!(m.features&8)||!ef(((D=te=c4(ee,!l,m))==null?void 0:D.contents.packageJsonContent)??Zn,"exports"))){const Ne=dF(t,W,!l,m);if(Ne)return Upe(Ne);const Be=C2e(t,W,!l,m,oe.contents.packageJsonContent,SQ(oe,m));return kW(oe,Be)}const de=(Ne,Be,Ve,pt)=>{let Le=(V||!(pt.features&32))&&dF(Ne,Be,Ve,pt)||C2e(Ne,Be,Ve,pt,oe&&oe.contents.packageJsonContent,oe&&SQ(oe,pt));return!Le&&oe&&(oe.contents.packageJsonContent.exports===void 0||oe.contents.packageJsonContent.exports===null)&&pt.features&32&&(Le=dF(Ne,tf(Be,"index.js"),Ve,pt)),kW(oe,Le)};if(V!==""&&(oe=te??c4(ee,!l,m)),oe&&oe.contents.packageJsonContent.exports&&m.features&8)return(I=uae(oe,t,tf(".",V),m,y,T))==null?void 0:I.value;const ue=V!==""&&oe?SQ(oe,m):void 0;if(ue){m.traceEnabled&&Vf(m.host,w.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ue.version,At,V);const Ne=l&&O0(ee,m.host),Be=k2e(t,V,ee,ue.paths,void 0,de,!Ne,m);if(Be)return Be.value}return de(t,W,!l,m)}function k2e(t,r,s,l,m,y,T,D){m||(m=qH(l));const I=aoe(m,r);if(I){const W=As(I)?void 0:CL(I,r),O=As(I)?I:pTe(I);return D.traceEnabled&&Vf(D.host,w.Module_name_0_matched_pattern_1,r,O),{value:Ot(l[O],ee=>{const te=W?ee.replace("*",W):ee,oe=Fd(tf(s,te));D.traceEnabled&&Vf(D.host,w.Trying_substitution_0_candidate_module_location_Colon_1,ee,te);const de=OT(ee);if(de!==void 0){const ue=TQ(oe,T,D);if(ue!==void 0)return Upe({path:ue,ext:de,resolvedUsingTsExtension:void 0})}return y(t,oe,T||!O0(qc(oe),D.host),D)})}}}function dHe(t,r){const s=CQ(t);return r.traceEnabled&&s!==t&&Vf(r.host,w.Scoped_package_detected_looking_in_0,s),s}function tme(t){return`@types/${CQ(t)}`}function CQ(t){if(xf(t,"@")){const r=t.replace(q,IQ);if(r!==t)return r.slice(1)}return t}function _ae(t){const r=Ez(t,"@types/");return r!==t?dae(r):t}function dae(t){return Ub(t,IQ)?"@"+t.replace(IQ,q):t}function PLe(t,r,s,l,m,y){const T=t&&t.getFromNonRelativeNameCache(r,s,l,m);if(T)return y.traceEnabled&&Vf(y.host,w.Resolution_for_module_0_was_found_in_cache_from_location_1,r,l),y.resultFromCache=T,{value:T.resolvedModule&&{path:T.resolvedModule.resolvedFileName,originalPath:T.resolvedModule.originalPath||!0,extension:T.resolvedModule.extension,packageId:T.resolvedModule.packageId,resolvedUsingTsExtension:T.resolvedModule.resolvedUsingTsExtension}}}function pae(t,r,s,l,m,y){const T=Dk(s,l),D=[],I=[],W=qc(r),O=[],V={compilerOptions:s,host:l,traceEnabled:T,failedLookupLocations:D,affectingLocations:I,packageJsonInfoCache:m,features:0,conditions:[],requestContainingDirectory:W,reportDiagnostic:oe=>void O.push(oe),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},ee=te(5)||te(2|(s.resolveJsonModule?8:0));return Hpe(t,ee&&ee.value,(ee==null?void 0:ee.value)&&NW(ee.value.path),D,I,O,V);function te(oe){const de=sae(oe,t,W,ALe,V);if(de)return{value:de};if(tb(t)){const ue=Fd(tf(W,t));return rx(ALe(oe,ue,!1,V))}else{const ue=ok(W,Ne=>{const Be=PLe(m,t,void 0,Ne,y,V);if(Be)return Be;const Ve=Fd(tf(Ne,t));return rx(ALe(oe,Ve,!1,V))});if(ue)return ue;if(oe&5){let Ne=I2e(t,W,V);return oe&4&&(Ne??(Ne=nj(t,V))),Ne}}}}function nj(t,r){if(r.compilerOptions.typeRoots)for(const s of r.compilerOptions.typeRoots){const l=eHe(s,t,r),m=O0(s,r.host);!m&&r.traceEnabled&&Vf(r.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const y=dF(4,l,!m,r);if(y){const D=wW(y.path),I=D?c4(D,!1,r):void 0;return rx(kW(I,y))}const T=A2e(4,l,!m,r);if(T)return rx(T)}}function l4(t,r){return!!t.allowImportingTsExtensions||r&&iT(r)}function DQ(t,r,s,l,m,y){const T=Dk(s,l);T&&Vf(l,w.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,r,t,m);const D=[],I=[],W=[],O={compilerOptions:s,host:l,traceEnabled:T,failedLookupLocations:D,affectingLocations:I,packageJsonInfoCache:y,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:ee=>void W.push(ee),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},V=kLe(4,t,m,O,!1,void 0,void 0);return bLe(V,!0,D,I,W,O.resultFromCache)}function rx(t){return t!==void 0?{value:t}:void 0}function C6(t,r,...s){t.traceEnabled&&Vf(t.host,r,...s)}function nme(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var MW,P2e,C2,ix,IQ,NLe=G({"src/compiler/moduleNameResolver.ts"(){Ad(),P2e=tf("node_modules","@types"),C2=(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))(C2||{}),ix="/node_modules/",IQ="__"}});function kR(t,r){return t.body&&!t.body.parent&&(kl(t.body,t),Q2(t.body,!1)),t.body?mae(t.body,r):1}function mae(t,r=new Map){const s=Im(t);if(r.has(s))return r.get(s)||0;r.set(s,void 0);const l=IP(t,r);return r.set(s,l),l}function IP(t,r){switch(t.kind){case 264:case 265:return 0;case 266:if(gP(t))return 2;break;case 272:case 271:if(!il(t,1))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let l=0;for(const m of s.exportClause.elements){const y=N2e(m,r);if(y>l&&(l=y),l===1)return l}return l}break;case 268:{let l=0;return B_(t,m=>{const y=mae(m,r);switch(y){case 0:return;case 2:l=2;return;case 1:return l=1,!0;default:ce.assertNever(y)}}),l}case 267:return kR(t,r);case 80:if(t.flags&4096)return 0}return 1}function N2e(t,r){const s=t.propertyName||t.name;let l=t.parent;for(;l;){if(E_(l)||z0(l)||tl(l)){const m=l.statements;let y;for(const T of m)if(FU(T,s)){T.parent||(kl(T,l),Q2(T,!1));const D=mae(T,r);if((y===void 0||D>y)&&(y=D),y===1)return y;T.kind===271&&(y=1)}if(y!==void 0)return y}l=l.parent}return 1}function rj(t){return ce.attachFlowNodeDebugInfo(t),t}function YN(t,r){var s,l;jf("beforeBind"),(s=jD)==null||s.logStartBindFile(""+t.fileName),R3(t,r),(l=jD)==null||l.logStopBindFile(),jf("afterBind"),dd("Bind","beforeBind","afterBind")}function wLe(){var t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht=!1,ke=0,_t,Dt,Ft={flags:1},it={flags:1},Ye=We();return lt;function ut(Me,jn,...Mi){return M0(ns(Me)||t,Me,jn,...Mi)}function lt(Me,jn){var Mi,js;t=Me,r=jn,s=iu(r),Le=zt(t,jn),Dt=new Set,ke=0,_t=nv.getSymbolConstructor(),ce.attachFlowNodeDebugInfo(Ft),ce.attachFlowNodeDebugInfo(it),t.locals||((Mi=tu)==null||Mi.push(tu.Phase.Bind,"bindSourceFile",{path:t.path},!0),Qn(t),(js=tu)==null||js.pop(),t.symbolCount=ke,t.classifiableNames=Dt,zv()),t=void 0,r=void 0,s=void 0,l=void 0,m=void 0,y=void 0,T=void 0,D=void 0,I=void 0,W=!1,O=void 0,V=void 0,ee=void 0,te=void 0,oe=void 0,de=void 0,ue=void 0,Be=void 0,Ve=!1,ht=!1,pt=0}function zt(Me,jn){return hv(jn,"alwaysStrict")&&!Me.isDeclarationFile?!0:!!Me.externalModuleIndicator}function Wt(Me,jn){return ke++,new _t(Me,jn)}function tt(Me,jn,Mi){Me.flags|=Mi,jn.symbol=Me,Me.declarations=ST(Me.declarations,jn),Mi&1955&&!Me.exports&&(Me.exports=Td()),Mi&6240&&!Me.members&&(Me.members=Td()),Me.constEnumOnlyModule&&Me.flags&304&&(Me.constEnumOnlyModule=!1),Mi&111551&&sG(Me,jn)}function Mn(Me){if(Me.kind===277)return Me.isExportEquals?"export=":"default";const jn=o_(Me);if(jn){if(Ov(Me)){const Mi=aC(jn);return $C(Me)?"__global":`"${Mi}"`}if(jn.kind===167){const Mi=jn.expression;if(Qv(Mi))return ty(Mi.text);if(K2(Mi))return Nd(Mi.operator)+Mi.operand.text;ce.fail("Only computed properties with literal names have declaration names")}if(Gu(jn)){const Mi=h0(Me);if(!Mi)return;const js=Mi.symbol;return R7(js,jn.escapedText)}return dI(jn)?bR(jn):yA(jn)?gY(jn):void 0}switch(Me.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(Qy(Me)===2)return"export=";ce.fail("Unknown binary declaration kind");break;case 324:return J8(Me)?"__new":"__call";case 169:return ce.assert(Me.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${ce.formatSyntaxKind(Me.parent.kind)}, expected JSDocFunctionType`),"arg"+Me.parent.parameters.indexOf(Me)}}function kn(Me){return Xv(Me)?Ud(Me.name):lf(ce.checkDefined(Mn(Me)))}function cr(Me,jn,Mi,js,X_,$l,y_){ce.assert(y_||!nI(Mi));const l_=il(Mi,1024)||Oy(Mi)&&Mi.name.escapedText==="default",Ph=y_?"__computed":l_&&jn?"default":Mn(Mi);let Ap;if(Ph===void 0)Ap=Wt(0,"__missing");else if(Ap=Me.get(Ph),js&2885600&&Dt.add(Ph),!Ap)Me.set(Ph,Ap=Wt(0,Ph)),$l&&(Ap.isReplaceableByMethod=!0);else{if($l&&!Ap.isReplaceableByMethod)return Ap;if(Ap.flags&X_){if(Ap.isReplaceableByMethod)Me.set(Ph,Ap=Wt(0,Ph));else if(!(js&3&&Ap.flags&67108864)){Xv(Mi)&&kl(Mi.name,Mi);let Mb=Ap.flags&2?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0,_x=!0;(Ap.flags&384||js&384)&&(Mb=w.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_x=!1);let _S=!1;Nt(Ap.declarations)&&(l_||Ap.declarations&&Ap.declarations.length&&Mi.kind===277&&!Mi.isExportEquals)&&(Mb=w.A_module_cannot_have_multiple_default_exports,_x=!1,_S=!0);const e=[];mg(Mi)&&Um(Mi.type)&&il(Mi,1)&&Ap.flags&2887656&&e.push(ut(Mi,w.Did_you_mean_0,`export type { ${lf(Mi.name.escapedText)} }`));const n=o_(Mi)||Mi;Ot(Ap.declarations,(c,u)=>{const d=o_(c)||c,h=_x?ut(d,Mb,kn(c)):ut(d,Mb);t.bindDiagnostics.push(_S?ml(h,ut(n,u===0?w.Another_export_default_is_here:w.and_here)):h),_S&&e.push(ut(d,w.The_first_export_default_is_here))});const i=_x?ut(n,Mb,kn(Mi)):ut(n,Mb);t.bindDiagnostics.push(ml(i,...e)),Ap=Wt(0,Ph)}}}return tt(Ap,Mi,js),Ap.parent?ce.assert(Ap.parent===jn,"Existing symbol parent should match new one"):Ap.parent=jn,Ap}function un(Me,jn,Mi){const js=!!(Gg(Me)&1)||on(Me);if(jn&2097152)return Me.kind===281||Me.kind===271&&js?cr(m.symbol.exports,m.symbol,Me,jn,Mi):(ce.assertNode(m,lk),cr(m.locals,void 0,Me,jn,Mi));if(T2(Me)&&ce.assert(Rs(Me)),!Ov(Me)&&(js||m.flags&128)){if(!lk(m)||!m.locals||il(Me,1024)&&!Mn(Me))return cr(m.symbol.exports,m.symbol,Me,jn,Mi);const X_=jn&111551?1048576:0,$l=cr(m.locals,void 0,Me,X_,Mi);return $l.exportSymbol=cr(m.symbol.exports,m.symbol,Me,jn,Mi),Me.localSymbol=$l,$l}else return ce.assertNode(m,lk),cr(m.locals,void 0,Me,jn,Mi)}function on(Me){if(Me.parent&&xp(Me)&&(Me=Me.parent),!T2(Me))return!1;if(!BJ(Me)&&Me.fullName)return!0;const jn=o_(Me);return jn?!!(bP(jn.parent)&&Do(jn.parent)||dl(jn.parent)&&Gg(jn.parent)&1):!1}function pn(Me,jn){const Mi=m,js=y,X_=T;if(jn&1?(Me.kind!==219&&(y=m),m=T=Me,jn&32&&(m.locals=Td(),qd(m))):jn&2&&(T=Me,jn&32&&(T.locals=void 0)),jn&4){const $l=O,y_=V,l_=ee,Ph=te,Ap=ue,Mb=Be,_x=Ve,_S=jn&16&&!il(Me,512)&&!Me.asteriskToken&&!!GL(Me)||Me.kind===175;_S||(O=rj({flags:2}),jn&144&&(O.node=Me)),te=_S||Me.kind===176||Rs(Me)&&(Me.kind===262||Me.kind===218)?di():void 0,ue=void 0,V=void 0,ee=void 0,Be=void 0,Ve=!1,In(Me),Me.flags&=-5633,!(O.flags&1)&&jn&8&&wx(Me.body)&&(Me.flags|=512,Ve&&(Me.flags|=1024),Me.endFlowNode=O),Me.kind===312&&(Me.flags|=pt,Me.endFlowNode=O),te&&(Gs(te,O),O=Rr(te),(Me.kind===176||Me.kind===175||Rs(Me)&&(Me.kind===262||Me.kind===218))&&(Me.returnFlowNode=O)),_S||(O=$l),V=y_,ee=l_,te=Ph,ue=Ap,Be=Mb,Ve=_x}else jn&64?(W=!1,In(Me),ce.assertNotNode(Me,An),Me.flags=W?Me.flags|256:Me.flags&-257):In(Me);m=Mi,y=js,T=X_}function Or(Me){Xr(Me,jn=>jn.kind===262?Qn(jn):void 0),Xr(Me,jn=>jn.kind!==262?Qn(jn):void 0)}function Xr(Me,jn=Qn){Me!==void 0&&Ot(Me,jn)}function Ut(Me){B_(Me,Qn,Xr)}function In(Me){const jn=ht;if(ht=!1,DI(Me)){Ut(Me),hi(Me),ht=jn;return}switch(Me.kind>=243&&Me.kind<=259&&!r.allowUnreachableCode&&(Me.flowNode=O),Me.kind){case 247:To(Me);break;case 246:Aa(Me);break;case 248:sl(Me);break;case 249:case 250:vc(Me);break;case 245:er(Me);break;case 253:case 257:Jr(Me);break;case 252:case 251:_o(Me);break;case 258:xt(Me);break;case 255:Kn(Me);break;case 269:gn(Me);break;case 296:qr(Me);break;case 244:mt(Me);break;case 256:Cn(Me);break;case 224:es(Me);break;case 225:Ui(Me);break;case 226:if(Tg(Me)){ht=jn,xu(Me);return}Ye(Me);break;case 220:Re(Me);break;case 227:wt(Me);break;case 260:Zt(Me);break;case 211:case 212:vs(Me);break;case 213:ou(Me);break;case 235:Ks(Me);break;case 353:case 345:case 347:rr(Me);break;case 312:{Or(Me.statements),Qn(Me.endOfFileToken);break}case 241:case 268:Or(Me.statements);break;case 208:xe(Me);break;case 169:an(Me);break;case 210:case 209:case 303:case 230:ht=jn;default:Ut(Me);break}hi(Me),ht=jn}function gr(Me){switch(Me.kind){case 80:case 81:case 110:case 211:case 212:return ei(Me);case 213:return Gn(Me);case 217:case 235:return gr(Me.expression);case 226:return so(Me);case 224:return Me.operator===54&&gr(Me.operand);case 221:return gr(Me.expression)}return!1}function Cr(Me){return B7(Me)||(sa(Me)||cC(Me)||sb(Me))&&Cr(Me.expression)||ys(Me)&&Me.operatorToken.kind===28&&Cr(Me.right)||Ed(Me)&&(Qv(Me.argumentExpression)||Uh(Me.argumentExpression))&&Cr(Me.expression)||wy(Me)&&Cr(Me.left)}function ei(Me){return Cr(Me)||ky(Me)&&ei(Me.expression)}function Gn(Me){if(Me.arguments){for(const jn of Me.arguments)if(ei(jn))return!0}return!!(Me.expression.kind===211&&ei(Me.expression.expression))}function Ur(Me,jn){return Jm(Me)&&ho(Me.expression)&&sp(jn)}function so(Me){switch(Me.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(Me.left);case 35:case 36:case 37:case 38:return ho(Me.left)||ho(Me.right)||Ur(Me.right,Me.left)||Ur(Me.left,Me.right);case 104:return ho(Me.left);case 103:return gr(Me.right);case 28:return gr(Me.right)}return!1}function ho(Me){switch(Me.kind){case 217:return ho(Me.expression);case 226:switch(Me.operatorToken.kind){case 64:return ho(Me.left);case 28:return ho(Me.right)}}return ei(Me)}function di(){return rj({flags:4,antecedents:void 0})}function Nc(){return rj({flags:8,antecedents:void 0})}function ha(Me,jn,Mi){return rj({flags:1024,target:Me,antecedents:jn,antecedent:Mi})}function ro(Me){Me.flags|=Me.flags&2048?4096:2048}function Gs(Me,jn){!(jn.flags&1)&&!ni(Me.antecedents,jn)&&((Me.antecedents||(Me.antecedents=[])).push(jn),ro(jn))}function Oc(Me,jn,Mi){return jn.flags&1?jn:Mi?(Mi.kind===112&&Me&64||Mi.kind===97&&Me&32)&&!zU(Mi)&&!Qre(Mi.parent)?Ft:gr(Mi)?(ro(jn),rj({flags:Me,antecedent:jn,node:Mi})):jn:Me&32?jn:Ft}function _u(Me,jn,Mi,js){return ro(Me),rj({flags:128,antecedent:Me,switchStatement:jn,clauseStart:Mi,clauseEnd:js})}function Ku(Me,jn,Mi){ro(jn);const js=rj({flags:Me,antecedent:jn,node:Mi});return ue&&Gs(ue,js),js}function al(Me,jn){return ro(Me),rj({flags:512,antecedent:Me,node:jn})}function Rr(Me){const jn=Me.antecedents;return jn?jn.length===1?jn[0]:Me:Ft}function mc(Me){const jn=Me.parent;switch(jn.kind){case 245:case 247:case 246:return jn.expression===Me;case 248:case 227:return jn.condition===Me}return!1}function Ea(Me){for(;;)if(Me.kind===217)Me=Me.expression;else if(Me.kind===224&&Me.operator===54)Me=Me.operand;else return IH(Me)}function Fi(Me){return DH(_g(Me))}function ta(Me){for(;sb(Me.parent)||yk(Me.parent)&&Me.parent.operator===54;)Me=Me.parent;return!mc(Me)&&!Ea(Me.parent)&&!(ky(Me.parent)&&Me.parent.expression===Me)}function $a(Me,jn,Mi,js){const X_=oe,$l=de;oe=Mi,de=js,Me(jn),oe=X_,de=$l}function jc(Me,jn,Mi){$a(Qn,Me,jn,Mi),(!Me||!Fi(Me)&&!Ea(Me)&&!(ky(Me)&&M8(Me)))&&(Gs(jn,Oc(32,O,Me)),Gs(Mi,Oc(64,O,Me)))}function Xu(Me,jn,Mi){const js=V,X_=ee;V=jn,ee=Mi,Qn(Me),V=js,ee=X_}function Lo(Me,jn){let Mi=Be;for(;Mi&&Me.parent.kind===256;)Mi.continueTarget=jn,Mi=Mi.next,Me=Me.parent;return jn}function To(Me){const jn=Lo(Me,Nc()),Mi=di(),js=di();Gs(jn,O),O=jn,jc(Me.expression,Mi,js),O=Rr(Mi),Xu(Me.statement,js,jn),Gs(jn,O),O=Rr(js)}function Aa(Me){const jn=Nc(),Mi=Lo(Me,di()),js=di();Gs(jn,O),O=jn,Xu(Me.statement,js,Mi),Gs(Mi,O),O=Rr(Mi),jc(Me.expression,jn,js),O=Rr(js)}function sl(Me){const jn=Lo(Me,Nc()),Mi=di(),js=di();Qn(Me.initializer),Gs(jn,O),O=jn,jc(Me.condition,Mi,js),O=Rr(Mi),Xu(Me.statement,js,jn),Qn(Me.incrementor),Gs(jn,O),O=Rr(js)}function vc(Me){const jn=Lo(Me,Nc()),Mi=di();Qn(Me.expression),Gs(jn,O),O=jn,Me.kind===250&&Qn(Me.awaitModifier),Gs(Mi,O),Qn(Me.initializer),Me.initializer.kind!==261&&Qr(Me.initializer),Xu(Me.statement,Mi,jn),Gs(jn,O),O=Rr(Mi)}function er(Me){const jn=di(),Mi=di(),js=di();jc(Me.expression,jn,Mi),O=Rr(jn),Qn(Me.thenStatement),Gs(js,O),O=Rr(Mi),Qn(Me.elseStatement),Gs(js,O),O=Rr(js)}function Jr(Me){Qn(Me.expression),Me.kind===253&&(Ve=!0,te&&Gs(te,O)),O=Ft}function li(Me){for(let jn=Be;jn;jn=jn.next)if(jn.name===Me)return jn}function Ir(Me,jn,Mi){const js=Me.kind===252?jn:Mi;js&&(Gs(js,O),O=Ft)}function _o(Me){if(Qn(Me.label),Me.label){const jn=li(Me.label.escapedText);jn&&(jn.referenced=!0,Ir(Me,jn.breakTarget,jn.continueTarget))}else Ir(Me,V,ee)}function xt(Me){const jn=te,Mi=ue,js=di(),X_=di();let $l=di();if(Me.finallyBlock&&(te=X_),Gs($l,O),ue=$l,Qn(Me.tryBlock),Gs(js,O),Me.catchClause&&(O=Rr($l),$l=di(),Gs($l,O),ue=$l,Qn(Me.catchClause),Gs(js,O)),te=jn,ue=Mi,Me.finallyBlock){const y_=di();y_.antecedents=Hi(Hi(js.antecedents,$l.antecedents),X_.antecedents),O=y_,Qn(Me.finallyBlock),O.flags&1?O=Ft:(te&&X_.antecedents&&Gs(te,ha(y_,X_.antecedents,O)),ue&&$l.antecedents&&Gs(ue,ha(y_,$l.antecedents,O)),O=js.antecedents?ha(y_,js.antecedents,O):Ft)}else O=Rr(js)}function Kn(Me){const jn=di();Qn(Me.expression);const Mi=V,js=Ne;V=jn,Ne=O,Qn(Me.caseBlock),Gs(jn,O);const X_=Ot(Me.caseBlock.clauses,$l=>$l.kind===297);Me.possiblyExhaustive=!X_&&!jn.antecedents,X_||Gs(jn,_u(Ne,Me,0,0)),V=Mi,Ne=js,O=Rr(jn)}function gn(Me){const jn=Me.clauses,Mi=gr(Me.parent.expression);let js=Ft;for(let X_=0;X_mh(Mi)||Ly(Mi))}function x_(Me){Me.flags&33554432&&!mu(Me)?Me.flags|=128:Me.flags&=-129}function q_(Me){if(x_(Me),Ov(Me))if(il(Me,1)&&oh(Me,w.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mie(Me))Ma(Me);else{let jn;if(Me.name.kind===11){const{text:js}=Me.name;jn=c6(js),jn===void 0&&oh(Me.name,w.Pattern_0_can_have_at_most_one_Asterisk_character,js)}const Mi=z_(Me,512,110735);t.patternAmbientModules=ur(t.patternAmbientModules,jn&&!As(jn)?{pattern:jn,symbol:Mi}:void 0)}else{const jn=Ma(Me);if(jn!==0){const{symbol:Mi}=Me;Mi.constEnumOnlyModule=!(Mi.flags&304)&&jn===2&&Mi.constEnumOnlyModule!==!1}}}function Ma(Me){const jn=kR(Me),Mi=jn!==0;return z_(Me,Mi?512:1024,Mi?110735:0),jn}function U0(Me){const jn=Wt(131072,Mn(Me));tt(jn,Me,131072);const Mi=Wt(2048,"__type");tt(Mi,Me,2048),Mi.members=Td(),Mi.members.set(jn.escapedName,jn)}function c_(Me){return Oh(Me,4096,"__object")}function Kd(Me){return Oh(Me,4096,"__jsxAttributes")}function iy(Me,jn,Mi){return z_(Me,jn,Mi)}function Oh(Me,jn,Mi){const js=Wt(jn,Mi);return jn&106508&&(js.parent=m.symbol),tt(js,Me,jn),js}function jg(Me,jn,Mi){switch(T.kind){case 267:un(Me,jn,Mi);break;case 312:if(h1(m)){un(Me,jn,Mi);break}default:ce.assertNode(T,lk),T.locals||(T.locals=Td(),qd(T)),cr(T.locals,void 0,Me,jn,Mi)}}function zv(){if(!I)return;const Me=m,jn=D,Mi=T,js=l,X_=O;for(const $l of I){const y_=$l.parent.parent;m=iE(y_)||t,T=Bs(y_)||t,O=rj({flags:2}),l=$l,Qn($l.typeExpression);const l_=o_($l);if((BJ($l)||!$l.fullName)&&l_&&bP(l_.parent)){const Ph=Do(l_.parent);if(Ph){ii(t.symbol,l_.parent,Ph,!!Kr(l_,Mb=>sa(Mb)&&Mb.name.escapedText==="prototype"),!1);const Ap=m;switch(N9(l_.parent)){case 1:case 2:h1(t)?m=t:m=void 0;break;case 4:m=l_.parent.expression;break;case 3:m=l_.parent.expression.name;break;case 5:m=w3(t,l_.parent.expression)?t:sa(l_.parent.expression)?l_.parent.expression.name:l_.parent.expression;break;case 0:return ce.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}m&&un($l,524288,788968),m=Ap}}else BJ($l)||!$l.fullName||$l.fullName.kind===80?(l=$l.parent,jg($l,524288,788968)):Qn($l.fullName)}m=Me,D=jn,T=Mi,l=js,O=X_}function m_(Me){if(!t.parseDiagnostics.length&&!(Me.flags&33554432)&&!(Me.flags&16777216)&&!Pde(Me)){const jn=ML(Me);if(jn===void 0)return;Le&&jn>=119&&jn<=127?t.bindDiagnostics.push(ut(Me,Yu(Me),Ud(Me))):jn===135?Wv(t)&&Tie(Me)?t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ud(Me))):Me.flags&65536&&t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ud(Me))):jn===127&&Me.flags&16384&&t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ud(Me)))}}function Yu(Me){return h0(Me)?w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:w.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Tv(Me){Me.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(ut(Me,w.constructor_is_a_reserved_word,Ud(Me))))}function Kh(Me){Le&&FE(Me.left)&&zN(Me.operatorToken.kind)&&rd(Me,Me.left)}function uS(Me){Le&&Me.variableDeclaration&&rd(Me,Me.variableDeclaration.name)}function H0(Me){if(Le&&Me.expression.kind===80){const jn=UM(t,Me.expression);t.bindDiagnostics.push(Pp(t,jn.start,jn.length,w.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function fx(Me){return An(Me)&&(Me.escapedText==="eval"||Me.escapedText==="arguments")}function rd(Me,jn){if(jn&&jn.kind===80){const Mi=jn;if(fx(Mi)){const js=UM(t,jn);t.bindDiagnostics.push(Pp(t,js.start,js.length,Mg(Me),ec(Mi)))}}}function Mg(Me){return h0(Me)?w.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?w.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:w.Invalid_use_of_0_in_strict_mode}function lm(Me){Le&&rd(Me,Me.name)}function nm(Me){return h0(Me)?w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function po(Me){if(s<2&&T.kind!==312&&T.kind!==267&&!_9(T)){const jn=UM(t,Me);t.bindDiagnostics.push(Pp(t,jn.start,jn.length,nm(Me)))}}function hy(Me){Le&&rd(Me,Me.operand)}function fS(Me){Le&&(Me.operator===46||Me.operator===47)&&rd(Me,Me.operand)}function GT(Me){Le&&oh(Me,w.with_statements_are_not_allowed_in_strict_mode)}function vE(Me){Le&&iu(r)>=2&&(BVe(Me.statement)||Dh(Me.statement))&&oh(Me.label,w.A_label_is_not_allowed_here)}function oh(Me,jn,...Mi){const js=nC(t,Me.pos);t.bindDiagnostics.push(Pp(t,js.start,js.length,jn,...Mi))}function yy(Me,jn,Mi){_e(Me,jn,jn,Mi)}function _e(Me,jn,Mi,js){vn(Me,{pos:Xz(jn,t),end:Mi.end},js)}function vn(Me,jn,Mi){const js=Pp(t,jn.pos,jn.end-jn.pos,Mi);Me?t.bindDiagnostics.push(js):t.bindSuggestionDiagnostics=ur(t.bindSuggestionDiagnostics,{...js,category:2})}function Qn(Me){if(!Me)return;kl(Me,l),tu&&(Me.tracingPath=t.path);const jn=Le;if(ka(Me),Me.kind>165){const Mi=l;l=Me;const js=RLe(Me);js===0?In(Me):pn(Me,js),l=Mi}else{const Mi=l;Me.kind===1&&(l=Me),hi(Me),l=Mi}Le=jn}function hi(Me){if(g1(Me))if(Rs(Me))for(const jn of Me.jsDoc)Qn(jn);else for(const jn of Me.jsDoc)kl(jn,Me),Q2(jn,!1)}function pa(Me){if(!Le)for(const jn of Me){if(!qC(jn))return;if(Zc(jn)){Le=!0;return}}}function Zc(Me){const jn=wd(t,Me.expression);return jn==='"use strict"'||jn==="'use strict'"}function ka(Me){switch(Me.kind){case 80:if(Me.flags&4096){let y_=Me.parent;for(;y_&&!T2(y_);)y_=y_.parent;jg(y_,524288,788968);break}case 110:return O&&(Nr(Me)||l.kind===304)&&(Me.flowNode=O),m_(Me);case 166:O&&Cs(Me)&&(Me.flowNode=O);break;case 236:case 108:Me.flowNode=O;break;case 81:return Tv(Me);case 211:case 212:const jn=Me;O&&Cr(jn)&&(jn.flowNode=O),R9(jn)&&ya(jn),Rs(jn)&&t.commonJsModuleIndicator&&KC(jn)&&!rme(T,"module")&&cr(t.locals,void 0,jn.expression,134217729,111550);break;case 226:switch(Qy(Me)){case 1:jT(Me);break;case 2:Ev(Me);break;case 3:ig(Me.left,Me);break;case 6:bu(Me);break;case 4:k1(Me);break;case 5:const y_=Me.left.expression;if(Rs(Me)&&An(y_)){const l_=rme(T,y_.escapedText);if(yP(l_==null?void 0:l_.valueDeclaration)){k1(Me);break}}bt(Me);break;case 0:break;default:ce.fail("Unknown binary expression special property assignment kind")}return Kh(Me);case 299:return uS(Me);case 220:return H0(Me);case 225:return hy(Me);case 224:return fS(Me);case 254:return GT(Me);case 256:return vE(Me);case 197:W=!0;return;case 182:break;case 168:return MA(Me);case 169:return jv(Me);case 260:return Gv(Me);case 208:return Me.flowNode=O,Gv(Me);case 172:case 171:return bc(Me);case 303:case 304:return E0(Me,4,0);case 306:return E0(Me,8,900095);case 179:case 180:case 181:return z_(Me,131072,0);case 174:case 173:return E0(Me,8192|(Me.questionToken?16777216:0),q2(Me)?0:103359);case 262:return vy(Me);case 176:return z_(Me,16384,0);case 177:return E0(Me,32768,46015);case 178:return E0(Me,65536,78783);case 184:case 324:case 330:case 185:return U0(Me);case 187:case 329:case 200:return gu(Me);case 339:return mi(Me);case 210:return c_(Me);case 218:case 219:return ub(Me);case 213:switch(Qy(Me)){case 7:return Fy(Me);case 8:return Sv(Me);case 9:return K_(Me);case 0:break;default:return ce.fail("Unknown call expression assignment declaration kind")}Rs(Me)&&zp(Me);break;case 231:case 263:return Le=!0,gh(Me);case 264:return jg(Me,64,788872);case 265:return jg(Me,524288,788968);case 266:return Wh(Me);case 267:return q_(Me);case 292:return Kd(Me);case 291:return iy(Me,4,0);case 271:case 274:case 276:case 281:return z_(Me,2097152,2097152);case 270:return av(Me);case 273:return J0(Me);case 278:return Fh(Me);case 277:return Lg(Me);case 312:return pa(Me.statements),yu();case 241:if(!_9(Me.parent))return;case 268:return pa(Me.statements);case 348:if(Me.parent.kind===330)return jv(Me);if(Me.parent.kind!==329)break;case 355:const X_=Me,$l=X_.isBracketed||X_.typeExpression&&X_.typeExpression.type.kind===323?16777220:4;return z_(X_,$l,0);case 353:case 345:case 347:return(I||(I=[])).push(Me);case 346:return Qn(Me.typeExpression)}}function bc(Me){const jn=rb(Me),Mi=jn?98304:4,js=jn?13247:0;return E0(Me,Mi|(Me.questionToken?16777216:0),js)}function gu(Me){return Oh(Me,2048,"__type")}function yu(){if(x_(t),Wv(t))Xm();else if(Py(t)){Xm();const Me=t.symbol;cr(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Me}}function Xm(){Oh(t,512,`"${wg(t.fileName)}"`)}function Lg(Me){if(!m.symbol||!m.symbol.exports)Oh(Me,111551,Mn(Me));else{const jn=ZM(Me)?2097152:4,Mi=cr(m.symbol.exports,m.symbol,Me,jn,67108863);Me.isExportEquals&&sG(Mi,Me)}}function av(Me){gt(Me.modifiers)&&t.bindDiagnostics.push(ut(Me,w.Modifiers_cannot_appear_here));const jn=tl(Me.parent)?Wv(Me.parent)?Me.parent.isDeclarationFile?void 0:w.Global_module_exports_may_only_appear_in_declaration_files:w.Global_module_exports_may_only_appear_in_module_files:w.Global_module_exports_may_only_appear_at_top_level;jn?t.bindDiagnostics.push(ut(Me,jn)):(t.symbol.globalExports=t.symbol.globalExports||Td(),cr(t.symbol.globalExports,t.symbol,Me,2097152,2097152))}function Fh(Me){!m.symbol||!m.symbol.exports?Oh(Me,8388608,Mn(Me)):Me.exportClause?AP(Me.exportClause)&&(kl(Me.exportClause,Me),cr(m.symbol.exports,m.symbol,Me.exportClause,2097152,2097152)):cr(m.symbol.exports,m.symbol,Me,8388608,0)}function J0(Me){Me.name&&z_(Me,2097152,2097152)}function Eg(Me){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Me,t.externalModuleIndicator||Xm()),!0)}function Sv(Me){if(!Eg(Me))return;const jn=N_(Me.arguments[0],void 0,(Mi,js)=>(js&&tt(js,Mi,67110400),js));jn&&cr(jn.exports,jn,Me,1048580,0)}function jT(Me){if(!Eg(Me))return;const jn=N_(Me.left.expression,void 0,(Mi,js)=>(js&&tt(js,Mi,67110400),js));if(jn){const js=gR(Me.right)&&(jL(Me.left.expression)||KC(Me.left.expression))?2097152:1048580;kl(Me.left,Me),cr(jn.exports,jn,Me.left,js,0)}}function Ev(Me){if(!Eg(Me))return;const jn=mR(Me.right);if(Vie(jn)||m===t&&w3(t,jn))return;if(Wd(jn)&&jr(jn.properties,BT)){Ot(jn.properties,S0);return}const Mi=ZM(Me)?2097152:1049092,js=cr(t.symbol.exports,t.symbol,Me,Mi|67108864,0);sG(js,Me)}function S0(Me){cr(t.symbol.exports,t.symbol,Me,69206016,0)}function k1(Me){if(ce.assert(Rs(Me)),ys(Me)&&sa(Me.left)&&Gu(Me.left.name)||sa(Me)&&Gu(Me.name))return;const Mi=Q1(Me,!1,!1);switch(Mi.kind){case 262:case 218:let js=Mi.symbol;if(ys(Mi.parent)&&Mi.parent.operatorToken.kind===64){const y_=Mi.parent.left;XM(y_)&&r6(y_.expression)&&(js=du(y_.expression.expression,y))}js&&js.valueDeclaration&&(js.members=js.members||Td(),nI(Me)?tn(Me,js,js.members):cr(js.members,js,Me,67108868,0),tt(js,js.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const X_=Mi.parent,$l=e_(Mi)?X_.symbol.exports:X_.symbol.members;nI(Me)?tn(Me,X_.symbol,$l):cr($l,X_.symbol,Me,67108868,0,!0);break;case 312:if(nI(Me))break;Mi.commonJsModuleIndicator?cr(Mi.symbol.exports,Mi.symbol,Me,1048580,0):z_(Me,1,111550);break;case 267:break;default:ce.failBadSyntaxKind(Mi)}}function tn(Me,jn,Mi){cr(Mi,jn,Me,4,0,!0,!0),fi(Me,jn)}function fi(Me,jn){jn&&(jn.assignmentDeclarationMembers||(jn.assignmentDeclarationMembers=new Map)).set(Im(Me),Me)}function ya(Me){Me.expression.kind===110?k1(Me):XM(Me)&&Me.parent.parent.kind===312&&(r6(Me.expression)?ig(Me,Me.parent):ir(Me))}function bu(Me){kl(Me.left,Me),kl(Me.right,Me),Za(Me.left.expression,Me.left,!1,!0)}function K_(Me){const jn=du(Me.arguments[0].expression);jn&&jn.valueDeclaration&&tt(jn,jn.valueDeclaration,32),Si(Me,jn,!0)}function ig(Me,jn){const Mi=Me.expression,js=Mi.expression;kl(js,Mi),kl(Mi,Me),kl(Me,jn),Za(js,Me,!0,!0)}function Fy(Me){let jn=du(Me.arguments[0]);const Mi=Me.parent.parent.kind===312;jn=ii(jn,Me.arguments[0],Mi,!1,!1),Si(Me,jn,!1)}function bt(Me){var jn;const Mi=du(Me.left.expression,m)||du(Me.left.expression,T);if(!Rs(Me)&&!M9(Mi))return;const js=i3(Me.left);if(!(An(js)&&((jn=rme(m,js.escapedText))==null?void 0:jn.flags)&2097152))if(kl(Me.left,Me),kl(Me.right,Me),An(Me.left.expression)&&m===t&&w3(t,Me.left.expression))jT(Me);else if(nI(Me)){Oh(Me,67108868,"__computed");const X_=ii(Mi,Me.left.expression,Do(Me.left),!1,!1);fi(Me,X_)}else ir(uc(Me.left,VL))}function ir(Me){ce.assert(!An(Me)),kl(Me.expression,Me),Za(Me.expression,Me,!1,!1)}function ii(Me,jn,Mi,js,X_){return(Me==null?void 0:Me.flags)&2097152||(Mi&&!js&&(Me=N_(jn,Me,(l_,Ph,Ap)=>{if(Ph)return tt(Ph,l_,67110400),Ph;{const Mb=Ap?Ap.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Td());return cr(Mb,Ap,l_,67110400,110735)}})),X_&&Me&&Me.valueDeclaration&&tt(Me,Me.valueDeclaration,32)),Me}function Si(Me,jn,Mi){if(!jn||!Qc(jn))return;const js=Mi?jn.members||(jn.members=Td()):jn.exports||(jn.exports=Td());let X_=0,$l=0;J_(x7(Me))?(X_=8192,$l=103359):el(Me)&&cH(Me)&&(gt(Me.arguments[2].properties,y_=>{const l_=o_(y_);return!!l_&&An(l_)&&ec(l_)==="set"})&&(X_|=65540,$l|=78783),gt(Me.arguments[2].properties,y_=>{const l_=o_(y_);return!!l_&&An(l_)&&ec(l_)==="get"})&&(X_|=32772,$l|=46015)),X_===0&&(X_=4,$l=0),cr(js,jn,Me,X_|67108864,$l&-67108865)}function Do(Me){return ys(Me.parent)?Al(Me.parent).parent.kind===312:Me.parent.parent.kind===312}function Za(Me,jn,Mi,js){let X_=du(Me,m)||du(Me,T);const $l=Do(jn);X_=ii(X_,jn.expression,$l,Mi,js),Si(jn,X_,Mi)}function Qc(Me){if(Me.flags&1072)return!0;const jn=Me.valueDeclaration;if(jn&&el(jn))return!!x7(jn);let Mi=jn?ff(jn)?jn.initializer:ys(jn)?jn.right:sa(jn)&&ys(jn.parent)?jn.parent.right:void 0:void 0;if(Mi=Mi&&mR(Mi),Mi){const js=r6(ff(jn)?jn.name:ys(jn)?jn.left:jn);return!!jE(ys(Mi)&&(Mi.operatorToken.kind===57||Mi.operatorToken.kind===61)?Mi.right:Mi,js)}return!1}function Al(Me){for(;ys(Me.parent);)Me=Me.parent;return Me.parent}function du(Me,jn=m){if(An(Me))return rme(jn,Me.escapedText);{const Mi=du(Me.expression);return Mi&&Mi.exports&&Mi.exports.get(XC(Me))}}function N_(Me,jn,Mi){if(w3(t,Me))return t.symbol;if(An(Me))return Mi(Me,du(Me),jn);{const js=N_(Me.expression,jn,Mi),X_=dY(Me);return Gu(X_)&&ce.fail("unexpected PrivateIdentifier"),Mi(X_,js&&js.exports&&js.exports.get(XC(Me)),js)}}function zp(Me){!t.commonJsModuleIndicator&&eT(Me,!1)&&Eg(Me)}function gh(Me){if(Me.kind===263)jg(Me,32,899503);else{const X_=Me.name?Me.name.escapedText:"__class";Oh(Me,32,X_),Me.name&&Dt.add(Me.name.escapedText)}const{symbol:jn}=Me,Mi=Wt(4194308,"prototype"),js=jn.exports.get(Mi.escapedName);js&&(Me.name&&kl(Me.name,Me),t.bindDiagnostics.push(ut(js.declarations[0],w.Duplicate_identifier_0,mp(Mi)))),jn.exports.set(Mi.escapedName,Mi),Mi.parent=jn}function Wh(Me){return gP(Me)?jg(Me,128,899967):jg(Me,256,899327)}function Gv(Me){if(Le&&rd(Me,Me.name),!ld(Me.name)){const jn=Me.kind===260?Me:Me.parent.parent;Rs(Me)&&GH(r)&&pR(jn)&&!w8(Me)&&!(Gg(Me)&1)?z_(Me,2097152,2097152):pde(Me)?jg(Me,2,111551):Y8(Me)?z_(Me,1,111551):z_(Me,1,111550)}}function jv(Me){if(!(Me.kind===348&&m.kind!==330)&&(Le&&!(Me.flags&33554432)&&rd(Me,Me.name),ld(Me.name)?Oh(Me,1,"__"+Me.parent.parameters.indexOf(Me)):z_(Me,1,111551),Eb(Me,Me.parent))){const jn=Me.parent.parent;cr(jn.symbol.members,jn.symbol,Me,4|(Me.questionToken?16777216:0),0)}}function vy(Me){!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),lm(Me),Le?(po(Me),jg(Me,16,110991)):z_(Me,16,110991)}function ub(Me){!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),O&&(Me.flowNode=O),lm(Me);const jn=Me.name?Me.name.escapedText:"__function";return Oh(Me,16,jn)}function E0(Me,jn,Mi){return!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),O&&zE(Me)&&(Me.flowNode=O),nI(Me)?Oh(Me,jn,"__computed"):z_(Me,jn,Mi)}function P2(Me){const jn=Kr(Me,Mi=>Mi.parent&&hW(Mi.parent)&&Mi.parent.extendsType===Mi);return jn&&jn.parent}function MA(Me){if(jx(Me.parent)){const jn=q8(Me.parent);jn?(ce.assertNode(jn,lk),jn.locals??(jn.locals=Td()),cr(jn.locals,void 0,Me,262144,526824)):z_(Me,262144,526824)}else if(Me.parent.kind===195){const jn=P2(Me.parent);jn?(ce.assertNode(jn,lk),jn.locals??(jn.locals=Td()),cr(jn.locals,void 0,Me,262144,526824)):Oh(Me,262144,Mn(Me))}else z_(Me,262144,526824)}function aw(Me){const jn=kR(Me);return jn===1||jn===2&&gk(r)}function DI(Me){if(!(O.flags&1))return!1;if(O===Ft&&(YX(Me)&&Me.kind!==242||Me.kind===263||Me.kind===267&&aw(Me))&&(O=it,!r.allowUnreachableCode)){const Mi=WSe(r)&&!(Me.flags&33554432)&&(!Dh(Me)||!!(qD(Me.declarationList)&7)||Me.declarationList.declarations.some(js=>!!js.initializer));Bst(Me,(js,X_)=>_e(Mi,js,X_,w.Unreachable_code_detected))}return!0}}function Bst(t,r){if(uf(t)&&pHe(t)&&E_(t.parent)){const{statements:s}=t.parent,l=soe(s,t);eu(l,pHe,(m,y)=>r(l[m],l[y-1]))}else r(t,t)}function pHe(t){return!b0(t)&&!ij(t)&&!Ih(t)&&!(Dh(t)&&!(qD(t)&7)&&t.declarationList.declarations.some(r=>!r.initializer))}function ij(t){switch(t.kind){case 264:case 265:return!0;case 267:return kR(t)!==1;case 266:return il(t,2048);default:return!1}}function w3(t,r){let s=0;const l=$w();for(l.enqueue(r);!l.isEmpty()&&s<100;){if(s++,r=l.dequeue(),jL(r)||KC(r))return!0;if(An(r)){const m=rme(t,r.escapedText);if(m&&m.valueDeclaration&&ff(m.valueDeclaration)&&m.valueDeclaration.initializer){const y=m.valueDeclaration.initializer;l.enqueue(y),wy(y,!0)&&(l.enqueue(y.left),l.enqueue(y.right))}}}return!1}function RLe(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(zE(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 S_(t.parent)||nu(t.parent)?0:34}return 0}function rme(t,r){var s,l,m,y;const T=(l=(s=to(t,lk))==null?void 0:s.locals)==null?void 0:l.get(r);if(T)return T.exportSymbol??T;if(tl(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r))return t.jsGlobalAugmentations.get(r);if(YD(t))return(y=(m=t.symbol)==null?void 0:m.exports)==null?void 0:y.get(r)}var w2e,MLe,R3,R2e=G({"src/compiler/binder.ts"(){Ad(),NM(),w2e=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(w2e||{}),MLe=(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))(MLe||{}),R3=wLe()}});function gae(t,r,s,l,m,y,T,D,I,W){return O;function O(V=()=>!0){const ee=[],te=[];return{walkType:Dt=>{try{return oe(Dt),{visitedTypes:ik(ee),visitedSymbols:ik(te)}}finally{g_(ee),g_(te)}},walkSymbol:Dt=>{try{return _t(Dt),{visitedTypes:ik(ee),visitedSymbols:ik(te)}}finally{g_(ee),g_(te)}}};function oe(Dt){if(!(!Dt||ee[Dt.id]||(ee[Dt.id]=Dt,_t(Dt.symbol)))){if(Dt.flags&524288){const it=Dt,Ye=it.objectFlags;Ye&4&&de(Dt),Ye&32&&pt(Dt),Ye&3&&ht(Dt),Ye&24&&ke(it)}Dt.flags&262144&&ue(Dt),Dt.flags&3145728&&Ne(Dt),Dt.flags&4194304&&Be(Dt),Dt.flags&8388608&&Ve(Dt)}}function de(Dt){oe(Dt.target),Ot(W(Dt),oe)}function ue(Dt){oe(D(Dt))}function Ne(Dt){Ot(Dt.types,oe)}function Be(Dt){oe(Dt.type)}function Ve(Dt){oe(Dt.objectType),oe(Dt.indexType),oe(Dt.constraint)}function pt(Dt){oe(Dt.typeParameter),oe(Dt.constraintType),oe(Dt.templateType),oe(Dt.modifiersType)}function Le(Dt){const Ft=r(Dt);Ft&&oe(Ft.type),Ot(Dt.typeParameters,oe);for(const it of Dt.parameters)_t(it);oe(t(Dt)),oe(s(Dt))}function ht(Dt){ke(Dt),Ot(Dt.typeParameters,oe),Ot(l(Dt),oe),oe(Dt.thisType)}function ke(Dt){const Ft=m(Dt);for(const it of Ft.indexInfos)oe(it.keyType),oe(it.type);for(const it of Ft.callSignatures)Le(it);for(const it of Ft.constructSignatures)Le(it);for(const it of Ft.properties)_t(it)}function _t(Dt){if(!Dt)return!1;const Ft=Bp(Dt);if(te[Ft])return!1;if(te[Ft]=Dt,!V(Dt))return!0;const it=y(Dt);return oe(it),Dt.exports&&Dt.exports.forEach(_t),Ot(Dt.declarations,Ye=>{if(Ye.type&&Ye.type.kind===186){const ut=Ye.type,lt=T(I(ut.exprName));_t(lt)}}),!1}}}var M2e=G({"src/compiler/symbolWalker.ts"(){Ad()}});function kQ({importModuleSpecifierPreference:t,importModuleSpecifierEnding:r},s,l,m){const y=T();return{relativePreference:m!==void 0?tb(m)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:D=>{if((D??l.impliedNodeFormat)===99)return l4(s,l.fileName)?[3,2]:[2];if(Jd(s)===1)return y===2?[2,1]:[1,2];const I=l4(s,l.fileName);switch(y){case 2:return I?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return I?[1,0,3,2]:[1,0,2];case 0:return I?[0,1,3,2]:[0,1,2];default:ce.assertNever(y)}}};function T(){if(m!==void 0){if(eD(m))return 2;if(h_(m,"/index"))return 1}return ooe(r,l.impliedNodeFormat,s,l)}}function mHe(t,r,s,l,m,y,T={}){const D=gHe(t,r,s,l,m,kQ({},t,r,y),{},T);if(D!==y)return D}function ime(t,r,s,l,m,y={}){return gHe(t,r,s,l,m,kQ({},t,r),{},y)}function LLe(t,r,s,l,m,y={}){const T=OLe(r.path,l),D=BLe(r.path,s,l,m,y);return Yr(D,I=>F2e(I,T,r,l,t,m,!0,y.overrideImportMode))}function gHe(t,r,s,l,m,y,T,D={}){const I=OLe(s,m),W=BLe(s,l,m,T,D);return Yr(W,O=>F2e(O,I,r,m,t,T,void 0,D.overrideImportMode))||FLe(l,I,t,m,D.overrideImportMode||r.impliedNodeFormat,y)}function L2e(t,r,s,l,m={}){return hHe(t,r,s,l,m)[0]}function hHe(t,r,s,l,m={}){var y;const T=ny(t);if(!T)return Zn;const D=(y=s.getModuleSpecifierCache)==null?void 0:y.call(s),I=D==null?void 0:D.get(r.path,T.path,l,m);return[I==null?void 0:I.moduleSpecifiers,T,I==null?void 0:I.modulePaths,D]}function hae(t,r,s,l,m,y,T={}){return yHe(t,r,s,l,m,y,T).moduleSpecifiers}function yHe(t,r,s,l,m,y,T={}){let D=!1;const I=THe(t,r);if(I)return{moduleSpecifiers:[I],computedWithoutCache:D};let[W,O,V,ee]=hHe(t,l,m,y,T);if(W)return{moduleSpecifiers:W,computedWithoutCache:D};if(!O)return{moduleSpecifiers:Zn,computedWithoutCache:D};D=!0,V||(V=vae(l.path,O.originalFileName,m));const te=vHe(V,s,l,m,y,T);return ee==null||ee.set(l.path,O.path,y,T,V,te),{moduleSpecifiers:te,computedWithoutCache:D}}function vHe(t,r,s,l,m,y={}){const T=OLe(s.path,l),D=kQ(m,r,s),I=Ot(t,oe=>Ot(l.getFileIncludeReasons().get(_h(oe.path,l.getCurrentDirectory(),T.getCanonicalFileName)),de=>{if(de.kind!==3||de.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==yxe(s,de.index))return;const ue=k$(s,de.index).text;return D.relativePreference!==1||!U2(ue)?ue:void 0}));if(I)return[I];const W=gt(t,oe=>oe.isInNodeModules);let O,V,ee,te;for(const oe of t){const de=oe.isInNodeModules?F2e(oe,T,s,l,r,m,void 0,y.overrideImportMode):void 0;if(O=ur(O,de),de&&oe.isRedirect)return O;if(!de){const ue=FLe(oe.path,T,r,l,y.overrideImportMode||s.impliedNodeFormat,D,oe.isRedirect);if(!ue)continue;oe.isRedirect?ee=ur(ee,ue):vMe(ue)?V=ur(V,ue):(!W||oe.isInNodeModules)&&(te=ur(te,ue))}}return V!=null&&V.length?V:ee!=null&&ee.length?ee:O!=null&&O.length?O:ce.checkDefined(te)}function OLe(t,r){const s=_v(r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames():!0),l=qc(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:l}}function FLe(t,r,s,l,m,{getAllowedEndingsInPreferredOrder:y,relativePreference:T},D){const{baseUrl:I,paths:W,rootDirs:O}=s;if(D&&!W)return;const{sourceDirectory:V,getCanonicalFileName:ee}=r,te=y(m),oe=O&&SHe(O,t,V,ee,te,s)||oj(OE(qp(V,t,ee)),te,s);if(!I&&!W||T===0)return D?void 0:oe;const de=Su(G9(s,l)||I,l.getCurrentDirectory()),ue=jLe(t,de,ee);if(!ue)return D?void 0:oe;const Ne=W&&zLe(ue,W,te,l,s);if(D)return Ne;const Be=Ne===void 0&&I!==void 0?oj(ue,te,s):Ne;if(!Be)return oe;if(T===1&&!U2(Be))return Be;if(T===3&&!U2(Be)){const Ve=s.configFilePath?_h(qc(s.configFilePath),l.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(l.getCurrentDirectory()),pt=_h(t,Ve,ee),Le=xf(V,Ve),ht=xf(pt,Ve);if(Le&&!ht||!Le&&ht)return Be;const ke=bHe(l,qc(pt));return bHe(l,V)!==ke?Be:oe}return PQ(Be)||yae(oe)t.fileExists(tf(s,"package.json"))?!0:void 0)}function O2e(t,r,s,l,m){var y;const T=hR(s),D=s.getCurrentDirectory(),I=s.isSourceOfProjectReferenceRedirect(r)?s.getProjectReferenceRedirect(r):void 0,W=_h(r,D,T),O=s.redirectTargetsMap.get(W)||Zn,ee=[...I?[I]:Zn,r,...O].map(Ne=>Su(Ne,D));let te=!jr(ee,_3);if(!l){const Ne=Ot(ee,Be=>!(te&&_3(Be))&&m(Be,I===Be));if(Ne)return Ne}const oe=(y=s.getSymlinkCache)==null?void 0:y.call(s).getSymlinkedDirectoriesByRealpath(),de=Su(r,D);return oe&&ok(qc(de),Ne=>{const Be=oe.get(Rv(_h(Ne,D,T)));if(Be)return jC(t,Ne,T)?!1:Ot(ee,Ve=>{if(!jC(Ve,Ne,T))return;const pt=qp(Ne,Ve,T);for(const Le of Be){const ht=gm(Le,pt),ke=m(ht,Ve===I);if(te=!0,ke)return ke}})})||(l?Ot(ee,Ne=>te&&_3(Ne)?void 0:m(Ne,Ne===I)):void 0)}function BLe(t,r,s,l,m={}){var y;const T=_h(r,s.getCurrentDirectory(),hR(s)),D=(y=s.getModuleSpecifierCache)==null?void 0:y.call(s);if(D){const W=D.get(t,T,l,m);if(W!=null&&W.modulePaths)return W.modulePaths}const I=vae(t,r,s);return D&&D.setModulePaths(t,T,l,m,I),I}function vae(t,r,s){const l=hR(s),m=new Map;O2e(t,r,s,!0,(T,D)=>{const I=NW(T);m.set(T,{path:l(T),isRedirect:D,isInNodeModules:I})});const y=[];for(let T=qc(t);m.size!==0;){const D=Rv(T);let I;m.forEach(({path:O,isRedirect:V,isInNodeModules:ee},te)=>{xf(O,D)&&((I||(I=[])).push({path:te,isRedirect:V,isInNodeModules:ee}),m.delete(te))}),I&&(I.length>1&&I.sort(WLe),y.push(...I));const W=qc(T);if(W===T)break;T=W}if(m.size){const T=oc(m.values());T.length>1&&T.sort(WLe),y.push(...T)}return y}function THe(t,r){var s;const l=(s=t.declarations)==null?void 0:s.find(T=>pie(T)&&(!BL(T)||!tb(aC(T.name))));if(l)return l.name.text;const y=Qo(t.declarations,T=>{var D,I,W,O;if(!xp(T))return;const V=de(T);if(!((D=V==null?void 0:V.parent)!=null&&D.parent&&z0(V.parent)&&Ov(V.parent.parent)&&tl(V.parent.parent.parent)))return;const ee=(O=(W=(I=V.parent.parent.symbol.exports)==null?void 0:I.get("export="))==null?void 0:W.valueDeclaration)==null?void 0:O.expression;if(!ee)return;const te=r.getSymbolAtLocation(ee);if(!te)return;if(((te==null?void 0:te.flags)&2097152?r.getAliasedSymbol(te):te)===T.symbol)return V.parent.parent;function de(ue){for(;ue.flags&8;)ue=ue.parent;return ue}})[0];if(y)return y.name.text}function zLe(t,r,s,l,m){for(const T in r)for(const D of r[T]){const I=Fd(D),W=I.indexOf("*"),O=s.map(V=>({ending:V,value:oj(t,[V],m)}));if(OT(I)&&O.push({ending:void 0,value:t}),W!==-1){const V=I.substring(0,W),ee=I.substring(W+1);for(const{ending:te,value:oe}of O)if(oe.length>=V.length+ee.length&&xf(oe,V)&&h_(oe,ee)&&y({ending:te,value:oe})){const de=oe.substring(V.length,oe.length-ee.length);if(!U2(de))return T.replace("*",de)}}else if(gt(O,V=>V.ending!==0&&I===V.value)||gt(O,V=>V.ending===0&&I===V.value&&y(V)))return T}function y({ending:T,value:D}){return T!==0||D===oj(t,[T],m,l)}}function ome(t,r,s,l,m,y,T=0){if(typeof m=="string"){const D=Su(tf(s,m),void 0),I=vR(r)?wg(r)+W2e(r,t):void 0;switch(T){case 0:if(wM(r,D)===0||I&&wM(I,D)===0)return{moduleFileToTry:l};break;case 1:if(GC(D,r)){const ee=qp(D,r,!1);return{moduleFileToTry:Su(tf(tf(l,m),ee),void 0)}}break;case 2:const W=D.indexOf("*"),O=D.slice(0,W),V=D.slice(W+1);if(xf(r,O)&&h_(r,V)){const ee=r.slice(O.length,r.length-V.length);return{moduleFileToTry:l.replace("*",ee)}}if(I&&xf(I,O)&&h_(I,V)){const ee=I.slice(O.length,I.length-V.length);return{moduleFileToTry:l.replace("*",ee)}}break}}else{if(Array.isArray(m))return Ot(m,D=>ome(t,r,s,l,D,y));if(typeof m=="object"&&m!==null){if(A6(m))return Ot(ET(m),D=>{const I=Su(tf(l,D),void 0),W=h_(D,"/")?1:Ub(D,"*")?2:0;return ome(t,r,s,I,m[D],y,W)});for(const D of ET(m))if(D==="default"||y.indexOf(D)>=0||g$(y,D)){const I=m[D],W=ome(t,r,s,l,I,y,T);if(W)return W}}}}function SHe(t,r,s,l,m,y){const T=GLe(r,t,l);if(T===void 0)return;const D=GLe(s,t,l),I=ea(D,O=>Vn(T,V=>OE(qp(O,V,l)))),W=qw(I,Z9);if(W)return oj(W,m,y)}function F2e({path:t,isRedirect:r},{getCanonicalFileName:s,sourceDirectory:l},m,y,T,D,I,W){if(!y.fileExists||!y.readFile)return;const O=AY(t);if(!O)return;const ee=kQ(D,T,m).getAllowedEndingsInPreferredOrder();let te=t,oe=!1;if(!I){let pt=O.packageRootIndex,Le;for(;;){const{moduleFileToTry:ht,packageRootPath:ke,blockedByExports:_t,verbatimFromExports:Dt}=Ve(pt);if(Jd(T)!==1){if(_t)return;if(Dt)return ht}if(ke){te=ke,oe=!0;break}if(Le||(Le=ht),pt=t.indexOf(q,pt+1),pt===-1){te=oj(Le,ee,T,y);break}}}if(r&&!oe)return;const de=y.getGlobalTypingsCacheLocation&&y.getGlobalTypingsCacheLocation(),ue=s(te.substring(0,O.topLevelNodeModulesIndex));if(!(xf(l,ue)||de&&xf(s(de),ue)))return;const Ne=te.substring(O.topLevelPackageNameIndex+1),Be=_ae(Ne);return Jd(T)===1&&Be===Ne?void 0:Be;function Ve(pt){var Le,ht;const ke=t.substring(0,pt),_t=tf(ke,"package.json");let Dt=t,Ft=!1;const it=(ht=(Le=y.getPackageJsonInfoCache)==null?void 0:Le.call(y))==null?void 0:ht.getPackageJsonInfo(_t);if(typeof it=="object"||it===void 0&&y.fileExists(_t)){const Ye=(it==null?void 0:it.contents.packageJsonContent)||JSON.parse(y.readFile(_t)),ut=W||m.impliedNodeFormat;if(Zie(T)){const Wt=ke.substring(O.topLevelPackageNameIndex+1),tt=_ae(Wt),Mn=u$(T,ut===99),kn=Ye.exports?ome(T,t,ke,tt,Ye.exports,Mn):void 0;if(kn)return{...vR(kn.moduleFileToTry)?{moduleFileToTry:wg(kn.moduleFileToTry)+W2e(kn.moduleFileToTry,T)}:kn,verbatimFromExports:!0};if(Ye.exports)return{moduleFileToTry:t,blockedByExports:!0}}const lt=Ye.typesVersions?yQ(Ye.typesVersions):void 0;if(lt){const Wt=t.slice(ke.length+1),tt=zLe(Wt,lt.paths,ee,y,T);tt===void 0?Ft=!0:Dt=tf(ke,tt)}const zt=Ye.typings||Ye.types||Ye.main||"index.js";if(As(zt)&&!(Ft&&aoe(qH(lt.paths),zt))){const Wt=_h(zt,ke,s),tt=s(Dt);if(wg(Wt)===wg(tt))return{packageRootPath:ke,moduleFileToTry:Dt};if(Ye.type!=="module"&&!ws(tt,Coe)&&xf(tt,Wt)&&qc(tt)===n7(Wt)&&wg(Iy(tt))==="index")return{packageRootPath:ke,moduleFileToTry:Dt}}}else{const Ye=s(Dt.substring(O.packageRootIndex+1));if(Ye==="index.d.ts"||Ye==="index.js"||Ye==="index.ts"||Ye==="index.tsx")return{moduleFileToTry:Dt,packageRootPath:ke}}return{moduleFileToTry:Dt}}}function zst(t,r){if(!t.fileExists)return;const s=Gf(s3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const l of s){const m=r+l;if(t.fileExists(m))return m}}function GLe(t,r,s){return Qo(r,l=>{const m=jLe(t,l,s);return m!==void 0&&PQ(m)?void 0:m})}function oj(t,r,s,l){if(ws(t,[".json",".mjs",".cjs"]))return t;const m=wg(t);if(t===m)return t;const y=r.indexOf(2),T=r.indexOf(3);if(ws(t,[".mts",".cts"])&&T!==-1&&TW===0||W===1);return I!==-1&&Iyae,forEachFileNameOfModule:()=>O2e,getModuleSpecifier:()=>ime,getModuleSpecifiers:()=>hae,getModuleSpecifiersWithCacheInfo:()=>yHe,getNodeModulesPackageName:()=>LLe,tryGetJSExtensionForFile:()=>W2e,tryGetModuleSpecifiersFromCache:()=>L2e,tryGetRealFileNameForNonJsDeclarationFileName:()=>EHe,updateModuleSpecifier:()=>mHe});var bae=G({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){VLe()}});function xHe(){this.flags=0}function Im(t){return t.id||(t.id=Sae,Sae++),t.id}function Bp(t){return t.id||(t.id=A1,A1++),t.id}function u4(t,r){const s=kR(t);return s===1||r&&s===2}function B2e(t){var r=[],s=a=>{r.push(a)},l,m=new Set,y,T,D=nv.getSymbolConstructor(),I=nv.getTypeConstructor(),W=nv.getSignatureConstructor(),O=0,V=0,ee=0,te=0,oe=0,de=0,ue,Ne,Be=!1,Ve=Td(),pt=[1],Le=t.getCompilerOptions(),ht=iu(Le),ke=Zp(Le),_t=!!Le.experimentalDecorators,Dt=X9(Le),Ft=zSe(Le),it=VN(Le),Ye=hv(Le,"strictNullChecks"),ut=hv(Le,"strictFunctionTypes"),lt=hv(Le,"strictBindCallApply"),zt=hv(Le,"strictPropertyInitialization"),Wt=hv(Le,"noImplicitAny"),tt=hv(Le,"noImplicitThis"),Mn=hv(Le,"useUnknownInCatchVariables"),kn=!!Le.keyofStringsOnly,cr=kn?1:0,un=Le.suppressExcessPropertyErrors?0:8192,on=Le.exactOptionalPropertyTypes,pn=hnt(),Or=Hvt(),Xr=BP(),Ut=Td(),In=Ge(4,"undefined");In.declarations=[];var gr=Ge(1536,"globalThis",8);gr.exports=Ut,gr.declarations=[],Ut.set(gr.escapedName,gr);var Cr=Ge(4,"arguments"),ei=Ge(4,"require"),Gn=Le.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ur=!Le.verbatimModuleSyntax||!!Le.importsNotUsedAsValues,so,ho,di=0,Nc,ha=0;const ro={getNodeCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.nodeCount,0),getIdentifierCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.identifierCount,0),getSymbolCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.symbolCount,V),getTypeCount:()=>O,getInstantiationCount:()=>ee,getRelationCacheSizes:()=>({assignable:Jc.size,identity:qn.size,subtype:gc.size,strictSubtype:Wl.size}),isUndefinedSymbol:a=>a===In,isArgumentsSymbol:a=>a===Cr,isUnknownSymbol:a=>a===Ir,getMergedSymbol:wa,getDiagnostics:brt,getGlobalDiagnostics:Svt,getRecursionIdentity:c5,getUnmatchedProperties:hBe,getTypeOfSymbolAtLocation:(a,_)=>{const b=Il(_);return b?Jgt(a,b):_r},getTypeOfSymbol:Vo,getSymbolsOfParameterPropertyDeclaration:(a,_)=>{const b=Il(a,Pu);return b===void 0?ce.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(ce.assert(Eb(b,b.parent)),Nn(b,ty(_)))},getDeclaredTypeOfSymbol:Rm,getPropertiesOfType:Vp,getPropertyOfType:(a,_)=>Fn(a,ty(_)),getPrivateIdentifierPropertyOfType:(a,_,b)=>{const C=Il(b);if(!C)return;const M=ty(_),z=Fbe(M,C);return z?PO(a,z):void 0},getTypeOfPropertyOfType:(a,_)=>wm(a,ty(_)),getIndexInfoOfType:(a,_)=>Cd(a,_===0?xe:an),getIndexInfosOfType:T_,getIndexInfosOfIndexSymbol:B0e,getSignaturesOfType:Ti,getIndexTypeOfType:(a,_)=>pb(a,_===0?xe:an),getIndexType:a=>YP(a),getBaseTypes:Gp,getBaseTypeOfLiteralType:Tx,getWidenedType:Bb,getTypeFromTypeNode:a=>{const _=Il(a,Uu);return _?wl(_):_r},getParameterType:$I,getParameterIdentifierInfoAtPosition:Aze,getPromisedTypeOfPromise:Mfe,getAwaitedType:a=>qB(a),getReturnTypeOfSignature:j,isNullableType:wNe,getNullableType:oM,getNonNullableType:aM,getNonOptionalType:jPe,getTypeArguments:Tm,typeToTypeNode:Xr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Xr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Xr.signatureToSignatureDeclaration,symbolToEntityName:Xr.symbolToEntityName,symbolToExpression:Xr.symbolToExpression,symbolToNode:Xr.symbolToNode,symbolToTypeParameterDeclarations:Xr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Xr.symbolToParameterDeclaration,typeParameterToDeclaration:Xr.typeParameterToDeclaration,getSymbolsInScope:(a,_)=>{const b=Il(a);return b?Jfe(b,_):[]},getSymbolAtLocation:a=>{const _=Il(a);return _?CD(_,!0):void 0},getIndexInfosAtLocation:a=>{const _=Il(a);return _?Kfe(_):void 0},getShorthandAssignmentValueSymbol:a=>{const _=Il(a);return _?NGe(_):void 0},getExportSpecifierLocalTargetSymbol:a=>{const _=Il(a,Oy);return _?Srt(_):void 0},getExportSymbolOfSymbol(a){return wa(a.exportSymbol||a)},getTypeAtLocation:a=>{const _=Il(a);return _?YB(_):_r},getTypeOfAssignmentPattern:a=>{const _=Il(a,u7);return _&&Gwe(_)||_r},getPropertySymbolOfDestructuringAssignment:a=>{const _=Il(a,An);return _?Ert(_):void 0},signatureToString:(a,_,b,C)=>o0(a,Il(_),b,C),typeToString:(a,_,b)=>oa(a,Il(_),b),symbolToString:(a,_,b,C)=>Cl(a,Il(_),b,C),typePredicateToString:(a,_,b)=>LA(a,Il(_),b),writeSignature:(a,_,b,C,M)=>o0(a,Il(_),b,C,M),writeType:(a,_,b,C)=>oa(a,Il(_),b,C),writeSymbol:(a,_,b,C,M)=>Cl(a,Il(_),b,C,M),writeTypePredicate:(a,_,b,C)=>LA(a,Il(_),b,C),getAugmentedPropertiesOfType:Xfe,getRootSymbols:xrt,getSymbolOfExpando:gfe,getContextualType:(a,_)=>{const b=Il(a,Nr);if(b)return _&4?Oc(b,()=>PE(b,_)):PE(b,_)},getContextualTypeForObjectLiteralElement:a=>{const _=Il(a,KD);return _?lfe(_,void 0):void 0},getContextualTypeForArgumentAtIndex:(a,_)=>{const b=Il(a,ib);return b&&hK(b,_)},getContextualTypeForJsxAttribute:a=>{const _=Il(a,$U);return _&&ytt(_,void 0)},isContextSensitive:nA,getTypeOfPropertyOfContextualType:oL,getFullyQualifiedName:Dg,getResolvedSignature:(a,_,b)=>_u(a,_,b,0),getResolvedSignatureForStringLiteralCompletions:(a,_,b,C=32)=>C&32?Oc(_,()=>_u(a,b,void 0,C&-33)):Gs(_,()=>_u(a,b,void 0,C&-33)),getResolvedSignatureForSignatureHelp:(a,_,b)=>Gs(a,()=>_u(a,_,b,16)),getExpandedParameters:lO,hasEffectiveRestParameter:Hk,containsArgumentsReference:Up,getConstantValue:a=>{const _=Il(a,LGe);return _?OGe(_):void 0},isValidPropertyAccess:(a,_)=>{const b=Il(a,sk);return!!b&&bht(b,ty(_))},isValidPropertyAccessForCompletions:(a,_,b)=>{const C=Il(a,sa);return!!C&&Gtt(C,_,b)},getSignatureFromDeclaration:a=>{const _=Il(a,S_);return _?Cv(_):void 0},isImplementationOfOverload:a=>{const _=Il(a,S_);return _?RGe(_):void 0},getImmediateAliasedSymbol:eze,getAliasedSymbol:Xp,getEmitResolver:Cu,getExportsOfModule:i0,getExportsAndPropertiesOfModule:nt,forEachExportAndPropertyOfModule:pr,getSymbolWalker:gae(Tt,F2,j,Gp,K0,Vo,ED,Wi,NS,Tm),getAmbientModules:f0t,getJsxIntrinsicTagNamesAt:_ht,isOptionalParameter:a=>{const _=Il(a,Pu);return _?B4(_):!1},tryGetMemberInModuleExports:(a,_)=>vi(ty(a),_),tryGetMemberInModuleExportsAndProperties:(a,_)=>Di(ty(a),_),tryFindAmbientModule:a=>TV(a,!0),tryFindAmbientModuleWithoutAugmentations:a=>TV(a,!1),getApparentType:O1,getUnionType:gl,isTypeAssignableTo:Mp,createAnonymousType:jo,createSignature:i2,createSymbol:Ge,createIndexInfo:yD,getAnyType:()=>gn,getStringType:()=>xe,getStringLiteralType:qv,getNumberType:()=>an,getNumberLiteralType:bD,getBigIntType:()=>Un,createPromiseType:aL,createArrayType:W1,getElementTypeOfArrayType:iBe,getBooleanType:()=>Ca,getFalseType:a=>a?rr:mi,getTrueType:a=>a?Ji:zo,getVoidType:()=>Ks,getUndefinedType:()=>Ui,getNullType:()=>$e,getESSymbolType:()=>Qa,getNeverType:()=>vs,getOptionalType:()=>wt,getPromiseType:()=>CB(!1),getPromiseLikeType:()=>kue(!1),getAsyncIterableType:()=>{const a=pPe(!1);if(a!==rd)return a},isSymbolAccessible:br,isArrayType:UA,isTupleType:_p,isArrayLikeType:iM,isEmptyAnonymousObjectType:By,isTypeInvalidDueToUnionDiscriminant:ne,getExactOptionalProperties:YWe,getAllPossiblePropertiesOfTypes:yt,getSuggestedSymbolForNonexistentProperty:LNe,getSuggestionForNonexistentProperty:lze,getSuggestedSymbolForNonexistentJSXAttribute:Btt,getSuggestedSymbolForNonexistentSymbol:(a,_,b)=>Fte(a,ty(_),b),getSuggestionForNonexistentSymbol:(a,_,b)=>yht(a,ty(_),b),getSuggestedSymbolForNonexistentModule:ONe,getSuggestionForNonexistentExport:ztt,getSuggestedSymbolForNonexistentClassMember:MNe,getBaseConstraintOfType:Co,getDefaultFromTypeParameter:a=>a&&a.flags&262144?LI(a):void 0,resolveName(a,_,b,C){return Ro(_,ty(a),b,void 0,void 0,!1,C)},getJsxNamespace:a=>lf(us(a)),getJsxFragmentFactory:a=>{const _=FGe(a);return _&&lf(NS(_).escapedText)},getAccessibleSymbolChain:ks,getTypePredicateOfSignature:F2,resolveExternalModuleName:a=>{const _=Il(a,Nr);return _&&Zm(_,_,!0)},resolveExternalModuleSymbol:$0,tryGetThisTypeAt:(a,_,b)=>{const C=Il(a);return C&&fNe(C,_,b)},getTypeArgumentConstraint:a=>{const _=Il(a,Uu);return _&&pyt(_)},getSuggestionDiagnostics:(a,_)=>{const b=Il(a,tl)||ce.fail("Could not determine parsed source file.");if(c3(b,Le,t))return Zn;let C;try{return l=_,Hfe(b),ce.assert(!!(ge(b).flags&1)),C=Oi(C,os.getDiagnostics(b.fileName)),iGe(vrt(b),(M,z,Z)=>{!QU(M)&&!yrt(z,!!(M.flags&33554432))&&(C||(C=[])).push({...Z,category:2})}),C||Zn}finally{l=void 0}},runWithCancellationToken:(a,_)=>{try{return l=a,_(ro)}finally{l=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:rs,isDeclarationVisible:WS,isPropertyAccessible:Bte,getTypeOnlyAliasDeclaration:da,getMemberOverrideModifierStatus:evt,isTypeParameterPossiblyReferenced:jue,typeHasCallOrConstructSignatures:BK};function Gs(a,_){const b=[];for(;a;){if(ib(a)){const M=ge(a),z=M.resolvedSignature;b.push([M,z]),M.resolvedSignature=void 0}a=a.parent}const C=_();for(const[M,z]of b)M.resolvedSignature=z;return C}function Oc(a,_){const b=Kr(a,ib);if(b){let M=a;do ge(M).skipDirectInference=!0,M=M.parent;while(M&&M!==b)}Be=!0;const C=Gs(a,_);if(Be=!1,b){let M=a;do ge(M).skipDirectInference=void 0,M=M.parent;while(M&&M!==b)}return C}function _u(a,_,b,C){const M=Il(a,ib);so=b;const z=M?oN(M,_,C):void 0;return so=void 0,z}var Ku=new Map,al=new Map,Rr=new Map,mc=new Map,Ea=new Map,Fi=new Map,ta=new Map,$a=new Map,jc=new Map,Xu=new Map,Lo=new Map,To=new Map,Aa=new Map,sl=new Map,vc=new Map,er=[],Jr=new Map,li=new Set,Ir=Ge(4,"unknown"),_o=Ge(0,"__resolving__"),xt=new Map,Kn=new Map,gn=eg(1,"any"),qr=eg(1,"any",262144),mt=eg(1,"any"),_r=eg(1,"error"),Cn=eg(1,"unresolved"),oi=eg(1,"any",65536),Qr=eg(1,"intrinsic"),co=eg(2,"unknown"),es=eg(2,"unknown"),Ui=eg(32768,"undefined"),xu=Ye?Ui:eg(32768,"undefined",65536),We=eg(32768,"undefined"),Re=on?We:Ui,wt=eg(32768,"undefined"),$e=eg(65536,"null"),Zt=Ye?$e:eg(65536,"null",65536),xe=eg(4,"string"),an=eg(8,"number"),Un=eg(64,"bigint"),rr=eg(512,"false"),mi=eg(512,"false"),Ji=eg(512,"true"),zo=eg(512,"true");Ji.regularType=zo,Ji.freshType=Ji,zo.regularType=zo,zo.freshType=Ji,rr.regularType=mi,rr.freshType=rr,mi.regularType=mi,mi.freshType=rr;var Ca=gl([mi,zo]),Qa=eg(4096,"symbol"),Ks=eg(16384,"void"),vs=eg(131072,"never"),ou=eg(131072,"never",262144),qd=eg(131072,"never"),z_=eg(131072,"never"),fp=eg(67108864,"object"),Ha=gl([xe,an]),mu=gl([xe,an,Qa]),x_=kn?xe:mu,q_=gl([an,Un]),Ma=gl([xe,an,Ca,Un,$e,Ui]),U0=kB(["",""],[an]),c_=Bue(a=>a.flags&262144?hte(a):a,()=>"(restrictive mapper)"),Kd=Bue(a=>a.flags&262144?mt:a,()=>"(permissive mapper)"),iy=eg(131072,"never"),Oh=Bue(a=>a.flags&262144?iy:a,()=>"(unique literal mapper)"),jg,zv=Bue(a=>(jg&&(a===hy||a===fS||a===GT)&&jg(!0),a),()=>"(unmeasurable reporter)"),m_=Bue(a=>(jg&&(a===hy||a===fS||a===GT)&&jg(!1),a),()=>"(unreliable reporter)"),Yu=jo(void 0,Ve,Zn,Zn,Zn),Tv=jo(void 0,Ve,Zn,Zn,Zn);Tv.objectFlags|=2048;var Kh=Ge(2048,"__type");Kh.members=Td();var uS=jo(Kh,Ve,Zn,Zn,Zn),H0=jo(void 0,Ve,Zn,Zn,Zn),fx=Ye?gl([Ui,$e,H0]):co,rd=jo(void 0,Ve,Zn,Zn,Zn);rd.instantiations=new Map;var Mg=jo(void 0,Ve,Zn,Zn,Zn);Mg.objectFlags|=262144;var lm=jo(void 0,Ve,Zn,Zn,Zn),nm=jo(void 0,Ve,Zn,Zn,Zn),po=jo(void 0,Ve,Zn,Zn,Zn),hy=Lb(),fS=Lb();fS.constraint=hy;var GT=Lb(),vE=Lb(),oh=Lb();oh.constraint=vE;var yy=YF(1,"<>",0,gn),_e=i2(void 0,void 0,void 0,Zn,gn,void 0,0,0),vn=i2(void 0,void 0,void 0,Zn,_r,void 0,0,0),Qn=i2(void 0,void 0,void 0,Zn,gn,void 0,0,0),hi=i2(void 0,void 0,void 0,Zn,ou,void 0,0,0),pa=yD(an,xe,!0),Zc=new Map,ka={get yieldType(){return ce.fail("Not supported")},get returnType(){return ce.fail("Not supported")},get nextType(){return ce.fail("Not supported")}},bc=z1(gn,gn,gn),gu=z1(gn,gn,co),yu=z1(vs,gn,Ui),Xm={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:OZe,getGlobalIterableType:pPe,getGlobalIterableIteratorType:bWe,getGlobalGeneratorType:V4,resolveIterationType:(a,_)=>qB(a,_,w.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:w.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:w.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:w.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Lg={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:vx,getGlobalIterableType:Pue,getGlobalIterableIteratorType:FZe,getGlobalGeneratorType:Jmt,resolveIterationType:(a,_)=>a,mustHaveANextMethodDiagnostic:w.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:w.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:w.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},av,Fh=new Map,J0=[],Eg,Sv,jT,Ev,S0,k1,tn,fi,ya,bu,K_,ig,Fy,bt,ir,ii,Si,Do,Za,Qc,Al,du,N_,zp,gh,Wh,Gv,jv,vy,ub,E0,P2,MA,aw,DI,Me,jn,Mi,js,X_,$l,y_,l_,Ph,Ap,Mb,_x,_S,e,n,i,c,u,d,h,S,E=new Map,P=0,k=0,F=0,$=!1,J=0,X,ie,ae,ve=[],we=[],Fe=[],et=0,Pe=[],dt=[],Ie=0,ct=qv(""),Ct=bD(0),Lt=Oue({negative:!1,base10Value:"0"}),Ze=[],Ke=[],st=[],It=0,Yt=!1,Et=0,at=10,Qt=[],nn=[],Rn=[],cn=[],qt=[],Kt=[],wr=[],Wr=[],jt=[],En=[],fr=[],Tr=[],Vr=[],Pn=[],Fr=[],Ki=[],io=[],no=vY(),os=vY(),Mo=Rk(),$i,ki,gc=new Map,Wl=new Map,Jc=new Map,au=new Map,qn=new Map,za=new Map,Ia=Td();Ia.set(In.escapedName,In);var zi=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Le.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Jvt(),ro;function na(a){return a?vc.get(a):void 0}function _a(a,_){return a&&vc.set(a,_),_}function us(a){if(a){const _=ns(a);if(_)if(zx(a)){if(_.localJsxFragmentNamespace)return _.localJsxFragmentNamespace;const b=_.pragmas.get("jsxfrag");if(b){const M=ls(b)?b[0]:b;if(_.localJsxFragmentFactory=s_(M.arguments.factory,ht),nr(_.localJsxFragmentFactory,Qu,Vd),_.localJsxFragmentFactory)return _.localJsxFragmentNamespace=NS(_.localJsxFragmentFactory).escapedText}const C=FGe(a);if(C)return _.localJsxFragmentFactory=C,_.localJsxFragmentNamespace=NS(C).escapedText}else{const b=Au(_);if(b)return _.localJsxNamespace=b}}return $i||($i="React",Le.jsxFactory?(ki=s_(Le.jsxFactory,ht),nr(ki,Qu),ki&&($i=NS(ki).escapedText)):Le.reactNamespace&&($i=ty(Le.reactNamespace))),ki||(ki=be.createQualifiedName(be.createIdentifier(lf($i)),"createElement")),$i}function Au(a){if(a.localJsxNamespace)return a.localJsxNamespace;const _=a.pragmas.get("jsx");if(_){const b=ls(_)?_[0]:_;if(a.localJsxFactory=s_(b.arguments.factory,ht),nr(a.localJsxFactory,Qu,Vd),a.localJsxFactory)return a.localJsxNamespace=NS(a.localJsxFactory).escapedText}}function Qu(a){return T1(a,-1,-1),ia(a,Qu,I6)}function Cu(a,_){return brt(a,_),Or}function yf(a,_,...b){const C=a?kc(a,_,...b):W_(_,...b),M=no.lookup(C);return M||(no.add(C),C)}function w_(a,_,b,...C){const M=He(_,b,...C);return M.skippedOn=a,M}function Eu(a,_,...b){return a?kc(a,_,...b):W_(_,...b)}function He(a,_,...b){const C=Eu(a,_,...b);return no.add(C),C}function Hn(a,_){a?no.add(_):os.add({..._,category:2})}function dr(a,_,b,...C){if(_.pos<0||_.end<0){if(!a)return;const M=ns(_);Hn(a,"message"in b?Pp(M,0,0,b,...C):Rx(M,b));return}Hn(a,"message"in b?kc(_,b,...C):RN(ns(_),_,b))}function Mr(a,_,b,...C){const M=He(a,b,...C);if(_){const z=kc(a,w.Did_you_forget_to_use_await);ml(M,z)}return M}function Pr(a,_){const b=Array.isArray(a)?Ot(a,HTe):HTe(a);return b&&ml(_,kc(b,w.The_declaration_was_marked_as_deprecated_here)),os.add(_),_}function Bt(a){const _=Uf(a);return _&&Nt(a.declarations)>1?_.flags&64?gt(a.declarations,ln):jr(a.declarations,ln):!!a.valueDeclaration&&ln(a.valueDeclaration)||Nt(a.declarations)&&jr(a.declarations,ln)}function ln(a){return!!(x5(a)&536870912)}function Wn(a,_,b){const C=kc(a,w._0_is_deprecated,b);return Pr(_,C)}function $r(a,_,b,C){const M=b?kc(a,w.The_signature_0_of_1_is_deprecated,C,b):kc(a,w._0_is_deprecated,C);return Pr(_,M)}function Ge(a,_,b){V++;const C=new D(a|33554432,_);return C.links=new Dae,C.links.checkFlags=b||0,C}function Br(a,_){const b=Ge(1,a);return b.links.type=_,b}function Ei(a,_){const b=Ge(4,a);return b.links.type=_,b}function Ln(a){let _=0;return a&2&&(_|=111551),a&1&&(_|=111550),a&4&&(_|=0),a&8&&(_|=900095),a&16&&(_|=110991),a&32&&(_|=899503),a&64&&(_|=788872),a&256&&(_|=899327),a&128&&(_|=899967),a&512&&(_|=110735),a&8192&&(_|=103359),a&32768&&(_|=46015),a&65536&&(_|=78783),a&262144&&(_|=526824),a&524288&&(_|=788968),a&2097152&&(_|=2097152),_}function Sr(a,_){_.mergeId||(_.mergeId=HLe,HLe++),Qt[_.mergeId]=a}function yi(a){const _=Ge(a.flags,a.escapedName);return _.declarations=a.declarations?a.declarations.slice():[],_.parent=a.parent,a.valueDeclaration&&(_.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),a.members&&(_.members=new Map(a.members)),a.exports&&(_.exports=new Map(a.exports)),Sr(_,a),_}function go(a,_,b=!1){if(!(a.flags&Ln(_.flags))||(_.flags|a.flags)&67108864){if(_===a)return a;if(!(a.flags&33554432)){const M=wp(a);if(M===Ir)return _;a=yi(M)}_.flags&512&&a.flags&512&&a.constEnumOnlyModule&&!_.constEnumOnlyModule&&(a.constEnumOnlyModule=!1),a.flags|=_.flags,_.valueDeclaration&&sG(a,_.valueDeclaration),Oi(a.declarations,_.declarations),_.members&&(a.members||(a.members=Td()),Ce(a.members,_.members,b)),_.exports&&(a.exports||(a.exports=Td()),Ce(a.exports,_.exports,b)),b||Sr(a,_)}else if(a.flags&1024)a!==gr&&He(_.declarations&&o_(_.declarations[0]),w.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Cl(a));else{const M=!!(a.flags&384||_.flags&384),z=!!(a.flags&2||_.flags&2),Z=M?w.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:z?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0,me=_.declarations&&ns(_.declarations[0]),Se=a.declarations&&ns(a.declarations[0]),Je=y2(me,Le.checkJs),vt=y2(Se,Le.checkJs),Pt=Cl(_);if(me&&Se&&av&&!M&&me!==Se){const dn=wM(me.path,Se.path)===-1?me:Se,yn=dn===me?Se:me,hr=Jw(av,`${dn.path}|${yn.path}`,()=>({firstFile:dn,secondFile:yn,conflictingSymbols:new Map})),bi=Jw(hr.conflictingSymbols,Pt,()=>({isBlockScoped:z,firstFileLocations:[],secondFileLocations:[]}));Je||C(bi.firstFileLocations,_),vt||C(bi.secondFileLocations,a)}else Je||Ao(_,Z,Pt,a),vt||Ao(a,Z,Pt,_)}return a;function C(M,z){if(z.declarations)for(const Z of z.declarations)Dy(M,Z)}}function Ao(a,_,b,C){Ot(a.declarations,M=>{Io(M,_,b,C.declarations)})}function Io(a,_,b,C){const M=(jE(a,!1)?fY(a):o_(a))||a,z=yf(M,_,b);for(const Z of C||Zn){const me=(jE(Z,!1)?fY(Z):o_(Z))||Z;if(me===M)continue;z.relatedInformation=z.relatedInformation||[];const Se=kc(me,w._0_was_also_declared_here,b),Je=kc(me,w.and_here);Nt(z.relatedInformation)>=5||gt(z.relatedInformation,vt=>o3(vt,Je)===0||o3(vt,Se)===0)||ml(z,Nt(z.relatedInformation)?Je:Se)}}function ze(a,_){if(!(a!=null&&a.size))return _;if(!(_!=null&&_.size))return a;const b=Td();return Ce(b,a),Ce(b,_),b}function Ce(a,_,b=!1){_.forEach((C,M)=>{const z=a.get(M);a.set(M,z?go(z,C,b):wa(C))})}function kt(a){var _,b,C;const M=a.parent;if(((_=M.symbol.declarations)==null?void 0:_[0])!==M){ce.assert(M.symbol.declarations.length>1);return}if($C(M))Ce(Ut,M.symbol.exports);else{const z=a.parent.parent.flags&33554432?void 0:w.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let Z=fb(a,a,z,!0);if(!Z)return;if(Z=$0(Z),Z.flags&1920)if(gt(Sv,me=>Z===me.symbol)){const me=go(M.symbol,Z,!0);jT||(jT=new Map),jT.set(a.text,me)}else{if((b=Z.exports)!=null&&b.get("__export")&&((C=M.symbol.exports)!=null&&C.size)){const me=bB(Z,"resolvedExports");for(const[Se,Je]of oc(M.symbol.exports.entries()))me.has(Se)&&!Z.exports.has(Se)&&go(me.get(Se),Je)}go(Z,M.symbol)}else He(a,w.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,a.text)}}function qe(a,_,b){_.forEach((M,z)=>{const Z=a.get(z);Z?Ot(Z.declarations,C(lf(z),b)):a.set(z,M)});function C(M,z){return Z=>no.add(kc(Z,z,M))}}function Mt(a){if(a.flags&33554432)return a.links;const _=Bp(a);return nn[_]??(nn[_]=new Dae)}function ge(a){const _=Im(a);return Rn[_]||(Rn[_]=new xHe)}function mn(a){return a.kind===312&&!h1(a)}function Jn(a,_,b){if(b){const C=wa(a.get(_));if(C&&(ce.assert((I_(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&b||C.flags&2097152&&sg(C)&b))return C}}function Nn(a,_){const b=a.parent,C=a.parent.parent,M=Jn(b.locals,_,111551),z=Jn(BA(C.symbol),_,111551);return M&&z?[M,z]:ce.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Lr(a,_){const b=ns(a),C=ns(_),M=Bs(a);if(b!==C){if(ke&&(b.externalModuleIndicator||C.externalModuleIndicator)||!Kg(Le)||O7(_)||a.flags&33554432||Z(_,a))return!0;const Se=t.getSourceFiles();return Se.indexOf(b)<=Se.indexOf(C)}if(a.pos<=_.pos&&!(Os(a)&&b7(_.parent)&&!a.initializer&&!a.exclamationToken)){if(a.kind===208){const Se=e6(_,208);return Se?Kr(Se,ym)!==Kr(a,ym)||a.posam(Se)&&Se.parent.parent===a);if(Os(a))return!me(a,_,!1);if(Eb(a,a.parent))return!(Ft&&h0(a)===h0(_)&&Z(_,a))}return!0}if(_.parent.kind===281||_.parent.kind===277&&_.parent.isExportEquals||_.kind===277&&_.isExportEquals||_.flags&16777216||O7(_)||efe(_))return!0;if(Z(_,a))return Ft&&h0(a)&&(Os(a)||Eb(a,a.parent))?!me(a,_,!0):!0;return!1;function z(Se,Je){switch(Se.parent.parent.kind){case 243:case 248:case 250:if(pl(Je,Se,M))return!0;break}const vt=Se.parent.parent;return DS(vt)&&pl(Je,vt.expression,M)}function Z(Se,Je){return!!Kr(Se,vt=>{if(vt===M)return"quit";if(S_(vt))return!0;if(nu(vt))return Je.posSe.end?!1:Kr(Je,dn=>{if(dn===Se)return"quit";switch(dn.kind){case 219:return!0;case 172:return vt&&(Os(Se)&&dn.parent===Se.parent||Eb(Se,Se.parent)&&dn.parent===Se.parent.parent)?"quit":!0;case 241:switch(dn.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function qi(a,_,b){const C=iu(Le),M=_;if(Pu(b)&&M.body&&a.valueDeclaration&&a.valueDeclaration.pos>=M.body.pos&&a.valueDeclaration.end<=M.body.end&&C>=2){const me=ge(M);return me.declarationRequiresScopeChange===void 0&&(me.declarationRequiresScopeChange=Ot(M.parameters,z)||!1),!me.declarationRequiresScopeChange}return!1;function z(me){return Z(me.name)||!!me.initializer&&Z(me.initializer)}function Z(me){switch(me.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return Z(me.name);case 172:return Ny(me)?!Ft:Z(me.name);default:return Qre(me)||ky(me)?C<7:ym(me)&&me.dotDotDotToken&&E1(me.parent)?C<4:Uu(me)?!1:B_(me,Z)||!1}}}function vo(a){return _7(a)&&CN(a.type)||HY(a)&&CN(a.typeExpression)}function Ro(a,_,b,C,M,z,Z=!1,me=!0){return Ts(a,_,b,C,M,z,Z,me,Jn)}function Ts(a,_,b,C,M,z,Z,me,Se){var Je,vt,Pt;const dn=a;let yn,hr,bi,Wo,aa,$s=!1;const Ba=a;let lo,Xa=!1;e:for(;a;){if(_==="const"&&vo(a))return;if(sde(a)&&hr&&a.name===hr&&(hr=a,a=a.parent),lk(a)&&a.locals&&!mn(a)&&(yn=Se(a.locals,_,b))){let Pa=!0;if(S_(a)&&hr&&hr!==a.body?(b&yn.flags&788968&&hr.kind!==327&&(Pa=yn.flags&262144?hr===a.type||hr.kind===169||hr.kind===348||hr.kind===349||hr.kind===168:!1),b&yn.flags&3&&(qi(yn,a,hr)?Pa=!1:yn.flags&1&&(Pa=hr.kind===169||hr===a.type&&!!Kr(yn.valueDeclaration,Pu)))):a.kind===194&&(Pa=hr===a.trueType),Pa)break e;yn=void 0}switch($s=$s||Pc(a,hr),a.kind){case 312:if(!h1(a))break;Xa=!0;case 267:const Pa=((Je=wi(a))==null?void 0:Je.exports)||Ve;if(a.kind===312||xp(a)&&a.flags&33554432&&!$C(a)){if(yn=Pa.get("default")){const Ld=i6(yn);if(Ld&&yn.flags&b&&Ld.escapedName===_)break e;yn=void 0}const hs=Pa.get(_);if(hs&&hs.flags===2097152&&(Vm(hs,281)||Vm(hs,280)))break}if(_!=="default"&&(yn=Se(Pa,_,b&2623475)))if(tl(a)&&a.commonJsModuleIndicator&&!((vt=yn.declarations)!=null&&vt.some(T2)))yn=void 0;else break e;break;case 266:if(yn=Se(((Pt=wi(a))==null?void 0:Pt.exports)||Ve,_,b&8)){C&&F0(Le)&&!(a.flags&33554432)&&ns(a)!==ns(yn.valueDeclaration)&&He(Ba,w.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,lf(_),Gn,`${lf(Vl(a).escapedName)}.${lf(_)}`);break e}break;case 172:if(!e_(a)){const hs=n2(a.parent);hs&&hs.locals&&Se(hs.locals,_,b&111551)&&(ce.assertNode(a,Os),Wo=a)}break;case 263:case 231:case 264:if(yn=Se(wi(a).members||Ve,_,b&788968)){if(!Tc(yn,a)){yn=void 0;break}if(hr&&e_(hr)){C&&He(Ba,w.Static_members_cannot_reference_class_type_parameters);return}break e}if(B0(a)&&b&32){const hs=a.name;if(hs&&_===hs.escapedText){yn=a.symbol;break e}}break;case 233:if(hr===a.expression&&a.parent.token===96){const hs=a.parent.parent;if(Jl(hs)&&(yn=Se(wi(hs).members,_,b&788968))){C&&He(Ba,w.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(lo=a.parent.parent,(Jl(lo)||lo.kind===264)&&(yn=Se(wi(lo).members,_,b&788968))){C&&He(Ba,w.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(iu(Le)>=2)break;case 174:case 176:case 177:case 178:case 262:if(b&3&&_==="arguments"){yn=Cr;break e}break;case 218:if(b&3&&_==="arguments"){yn=Cr;break e}if(b&16){const hs=a.name;if(hs&&_===hs.escapedText){yn=a.symbol;break e}}break;case 170:a.parent&&a.parent.kind===169&&(a=a.parent),a.parent&&(Mv(a.parent)||a.parent.kind===263)&&(a=a.parent);break;case 353:case 345:case 347:const Ga=pH(a);Ga&&(a=Ga.parent);break;case 169:hr&&(hr===a.initializer||hr===a.name&&ld(hr))&&(aa||(aa=a));break;case 208:hr&&(hr===a.initializer||hr===a.name&&ld(hr))&&Y8(a)&&!aa&&(aa=a);break;case 195:if(b&262144){const hs=a.typeParameter.name;if(hs&&_===hs.escapedText){yn=a.typeParameter.symbol;break e}}break;case 281:hr&&hr===a.propertyName&&a.parent.parent.moduleSpecifier&&(a=a.parent.parent.parent);break}hc(a)&&(bi=a),hr=a,a=jx(a)?q8(a)||a.parent:(AA(a)||aF(a))&&VE(a)||a.parent}if(z&&yn&&(!bi||yn!==bi.symbol)&&(yn.isReferenced|=b),!yn){if(hr&&(ce.assertNode(hr,tl),hr.commonJsModuleIndicator&&_==="exports"&&b&hr.symbol.flags))return hr.symbol;Z||(yn=Se(Ut,_,b))}if(!yn&&dn&&Rs(dn)&&dn.parent&&eT(dn.parent,!1))return ei;function Go(){return Wo&&!Ft?(He(Ba,Ba&&Wo.type&&zz(Wo.type,Ba.pos)?w.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:w.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ud(Wo.name),bl(M)),!0):!1}if(yn){if(C&&Go())return}else{C&&s(()=>{if(!Ba||Ba.parent.kind!==331&&!Tf(Ba,_,M)&&!Go()&&!ma(Ba)&&!G_(Ba,_,b)&&!Ym(Ba,_)&&!Wy(Ba,_,b)&&!mf(Ba,_,b)&&!u_(Ba,_,b)){let Pa,Ga;if(M&&(Ga=EK(M),Ga&&He(Ba,C,bl(M),Ga)),!Ga&&me&&Et{if(Ba&&(b&2||(b&32||b&384)&&(b&111551)===111551)){const Pa=zh(yn);(Pa.flags&2||Pa.flags&32||Pa.flags&384)&&Og(Pa,Ba)}if(yn&&Xa&&(b&111551)===111551&&!(dn.flags&16777216)){const Pa=wa(yn);Nt(Pa.declarations)&&jr(Pa.declarations,Ga=>py(Ga)||tl(Ga)&&!!Ga.symbol.globalExports)&&dr(!Le.allowUmdGlobalAccess,Ba,w._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,lf(_))}if(yn&&aa&&!$s&&(b&111551)===111551){const Pa=wa($R(yn)),Ga=rI(aa);Pa===wi(aa)?He(Ba,w.Parameter_0_cannot_reference_itself,Ud(aa.name)):Pa.valueDeclaration&&Pa.valueDeclaration.pos>aa.pos&&Ga.parent.locals&&Se(Ga.parent.locals,Pa.escapedName,b)===Pa&&He(Ba,w.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ud(aa.name),Ud(Ba))}if(yn&&Ba&&b&111551&&yn.flags&2097152&&!(yn.flags&111551)&&!EA(Ba)){const Pa=da(yn,111551);if(Pa){const Ga=Pa.kind===281||Pa.kind===278||Pa.kind===280?w._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:w._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,hs=lf(_);Cc(He(Ba,Ga,hs),Pa,hs)}}}),yn}function Cc(a,_,b){return _?ml(a,kc(_,_.kind===281||_.kind===278||_.kind===280?w._0_was_exported_here:w._0_was_imported_here,b)):a}function Pc(a,_){return a.kind!==219&&a.kind!==218?uE(a)||(J_(a)||a.kind===172&&!e_(a))&&(!_||_!==a.name):_&&_===a.name?!1:a.asteriskToken||il(a,512)?!0:!GL(a)}function hc(a){switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function bl(a){return As(a)?lf(a):Ud(a)}function Tc(a,_){if(a.declarations){for(const b of a.declarations)if(b.kind===168&&(jx(b.parent)?P7(b.parent):b.parent)===_)return!(jx(b.parent)&&lr(b.parent.parent.tags,T2))}return!1}function Tf(a,_,b){if(!An(a)||a.escapedText!==_||WK(a)||O7(a))return!1;const C=Q1(a,!1,!1);let M=C;for(;M;){if(Jl(M.parent)){const z=wi(M.parent);if(!z)break;const Z=Vo(z);if(Fn(Z,_))return He(a,w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,bl(b),Cl(z)),!0;if(M===C&&!e_(M)){const me=Rm(z).thisType;if(Fn(me,_))return He(a,w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,bl(b)),!0}}M=M.parent}return!1}function ma(a){const _=Bl(a);return _&&P_(_,64,!0)?(He(a,w.Cannot_extend_an_interface_0_Did_you_mean_implements,Yv(_)),!0):!1}function Bl(a){switch(a.kind){case 80:case 211:return a.parent?Bl(a.parent):void 0;case 233:if(Uh(a.expression))return a.expression;default:return}}function G_(a,_,b){const C=1920|(Rs(a)?111551:0);if(b===C){const M=wp(Ro(a,_,788968&~C,void 0,void 0,!1)),z=a.parent;if(M){if(nT(z)){ce.assert(z.left===a,"Should only be resolving left side of qualified name as a namespace");const Z=z.right.escapedText;if(Fn(Rm(M),Z))return He(z,w.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,lf(_),lf(Z)),!0}return He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,lf(_)),!0}}return!1}function u_(a,_,b){if(b&788584){const C=wp(Ro(a,_,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return He(a,w._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,lf(_)),!0}return!1}function xa(a){return a==="any"||a==="string"||a==="number"||a==="boolean"||a==="never"||a==="unknown"}function Ym(a,_){return xa(_)&&a.parent.kind===281?(He(a,w.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,_),!0):!1}function mf(a,_,b){if(b&111551){if(xa(_))return Cp(a)?He(a,w.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,lf(_)):He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,lf(_)),!0;const C=wp(Ro(a,_,788544,void 0,void 0,!1)),M=C&&sg(C);if(C&&M!==void 0&&!(M&111551)){const z=lf(_);return xg(_)?He(a,w._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,z):Yg(a,C)?He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,z,z==="K"?"P":"K"):He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,z),!0}}return!1}function Cp(a){const _=a.parent.parent,b=_.parent;if(_&&b){const C=rT(_)&&_.token===96,M=Kp(b);return C&&M}return!1}function Yg(a,_){const b=Kr(a.parent,C=>am(C)||Np(C)?!1:e0(C)||"quit");if(b&&b.members.length===1){const C=Rm(_);return!!(C.flags&1048576)&&Cfe(C,384,!0)}return!1}function xg(a){switch(a){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Wy(a,_,b){if(b&111127){if(wp(Ro(a,_,1024,void 0,void 0,!1)))return He(a,w.Cannot_use_namespace_0_as_a_value,lf(_)),!0}else if(b&788544&&wp(Ro(a,_,1536,void 0,void 0,!1)))return He(a,w.Cannot_use_namespace_0_as_a_type,lf(_)),!0;return!1}function Og(a,_){var b;if(ce.assert(!!(a.flags&2||a.flags&32||a.flags&384)),a.flags&67108881&&a.flags&32)return;const C=(b=a.declarations)==null?void 0:b.find(M=>pde(M)||Jl(M)||M.kind===266);if(C===void 0)return ce.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!Lr(C,_)){let M;const z=Ud(o_(C));a.flags&2?M=He(_,w.Block_scoped_variable_0_used_before_its_declaration,z):a.flags&32?M=He(_,w.Class_0_used_before_its_declaration,z):a.flags&256&&(M=He(_,w.Enum_0_used_before_its_declaration,z)),M&&ml(M,kc(C,w._0_is_declared_here,z))}}function pl(a,_,b){return!!_&&!!Kr(a,C=>C===_||(C===b||S_(C)&&(!GL(C)||FN(C))?"quit":!1))}function R_(a){switch(a.kind){case 271:return a;case 273:return a.parent;case 274:return a.parent.parent;case 276:return a.parent.parent.parent;default:return}}function og(a){return a.declarations&&ra(a.declarations,km)}function km(a){return a.kind===271||a.kind===270||a.kind===273&&!!a.name||a.kind===274||a.kind===280||a.kind===276||a.kind===281||a.kind===277&&ZM(a)||ys(a)&&Qy(a)===2&&ZM(a)||Kf(a)&&ys(a.parent)&&a.parent.left===a&&a.parent.operatorToken.kind===64&&M_(a.parent.right)||a.kind===304||a.kind===303&&M_(a.initializer)||a.kind===260&&pR(a)||a.kind===208&&pR(a.parent.parent)}function M_(a){return gR(a)||Dm(a)&&JI(a)}function oy(a,_){const b=fc(a);if(b){const M=i3(b.expression).arguments[0];return An(b.name)?wp(Fn(J6(M),b.name.escapedText)):void 0}if(ff(a)||a.moduleReference.kind===283){const M=Zm(a,uY(a)||S7(a)),z=$0(M);return Jt(a,M,z,!1),z}const C=gd(a.moduleReference,_);return bE(a,C),C}function bE(a,_){if(Jt(a,void 0,_,!1)&&!a.isTypeOnly){const b=da(wi(a)),C=b.kind===281||b.kind===278,M=C?w.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:w.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,z=C?w._0_was_exported_here:w._0_was_imported_here,Z=b.kind===278?"*":lf(b.name.escapedText);ml(He(a.moduleReference,M),kc(b,z,Z))}}function hh(a,_,b,C){const M=a.exports.get("export="),z=M?Fn(Vo(M),_,!0):a.exports.get(_),Z=wp(z,C);return Jt(b,z,Z,!1),Z}function qo(a){return Ly(a)&&!a.isExportEquals||il(a,1024)||Oy(a)}function d_(a){return sp(a)?kA(ns(a),a):void 0}function Ka(a,_){return a===99&&_===1}function Qi(a){return d_(a)===99&&h_(a.text,".json")}function Pm(a,_,b,C){const M=a&&d_(C);if(a&&M!==void 0){const z=Ka(M,a.impliedNodeFormat);if(M===99||z)return z}if(!it)return!1;if(!a||a.isDeclarationFile){const z=hh(_,"default",void 0,!0);return!(z&>(z.declarations,qo)||hh(_,ty("__esModule"),void 0,b))}return v1(a)?typeof a.externalModuleIndicator!="object"&&!hh(_,ty("__esModule"),void 0,b):N1(_)}function Ag(a,_){const b=Zm(a,a.parent.moduleSpecifier);if(b)return va(b,a,_)}function va(a,_,b){var C;let M;VM(a)?M=a:M=hh(a,"default",_,b);const z=(C=a.declarations)==null?void 0:C.find(tl),Z=x0(_);if(!Z)return M;const me=Qi(Z),Se=Pm(z,a,b,Z);if(!M&&!Se&&!me)if(N1(a)&&!it){const Je=ke>=5?"allowSyntheticDefaultImports":"esModuleInterop",Pt=a.exports.get("export=").valueDeclaration,dn=He(_.name,w.Module_0_can_only_be_default_imported_using_the_1_flag,Cl(a),Je);Pt&&ml(dn,kc(Pt,w.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Je))}else lC(_)?Nm(a,_):Sc(a,a,_,l9(_)&&_.propertyName||_.name);else if(Se||me){const Je=$0(a,b)||wp(a,b);return Jt(_,a,Je,!1),Je}return Jt(_,M,void 0,!1),M}function x0(a){switch(a.kind){case 273:return a.parent.moduleSpecifier;case 271:return j0(a.moduleReference)?a.moduleReference.expression:void 0;case 274:return a.parent.parent.moduleSpecifier;case 276:return a.parent.parent.parent.moduleSpecifier;case 281:return a.parent.parent.moduleSpecifier;default:return ce.assertNever(a)}}function Nm(a,_){var b,C,M;if((b=a.exports)!=null&&b.has(_.symbol.escapedName))He(_.name,w.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Cl(a),Cl(_.symbol));else{const z=He(_.name,w.Module_0_has_no_default_export,Cl(a)),Z=(C=a.exports)==null?void 0:C.get("__export");if(Z){const me=(M=Z.declarations)==null?void 0:M.find(Se=>{var Je,vt;return!!(mh(Se)&&Se.moduleSpecifier&&((vt=(Je=Zm(Se,Se.moduleSpecifier))==null?void 0:Je.exports)!=null&&vt.has("default")))});me&&ml(z,kc(me,w.export_Asterisk_does_not_re_export_a_default))}}}function Md(a,_){const b=a.parent.parent.moduleSpecifier,C=Zm(a,b),M=t2(C,b,_,!1);return Jt(a,C,M,!1),M}function fe(a,_){const b=a.parent.moduleSpecifier,C=b&&Zm(a,b),M=b&&t2(C,b,_,!1);return Jt(a,C,M,!1),M}function _n(a,_){if(a===Ir&&_===Ir)return Ir;if(a.flags&790504)return a;const b=Ge(a.flags|_.flags,a.escapedName);return ce.assert(a.declarations||_.declarations),b.declarations=th(Hi(a.declarations,_.declarations),_1),b.parent=a.parent||_.parent,a.valueDeclaration&&(b.valueDeclaration=a.valueDeclaration),_.members&&(b.members=new Map(_.members)),a.exports&&(b.exports=new Map(a.exports)),b}function Xn(a,_,b,C){var M;if(a.flags&1536){const z=Gt(a).get(_.escapedText),Z=wp(z,C),me=(M=Mt(a).typeOnlyExportStarMap)==null?void 0:M.get(_.escapedText);return Jt(b,z,Z,!1,me,_.escapedText),Z}}function _i(a,_){if(a.flags&3){const b=a.valueDeclaration.type;if(b)return wp(Fn(wl(b),_))}}function $o(a,_,b=!1){var C;const M=uY(a)||a.moduleSpecifier,z=Zm(a,M),Z=!sa(_)&&_.propertyName||_.name;if(!An(Z))return;const me=Z.escapedText==="default"&&it,Se=t2(z,M,!1,me);if(Se&&Z.escapedText){if(VM(z))return z;let Je;z&&z.exports&&z.exports.get("export=")?Je=Fn(Vo(Se),Z.escapedText,!0):Je=_i(Se,Z.escapedText),Je=wp(Je,b);let vt=Xn(Se,Z,_,b);if(vt===void 0&&Z.escapedText==="default"){const dn=(C=z.declarations)==null?void 0:C.find(tl);(Qi(M)||Pm(dn,z,b,M))&&(vt=$0(z,b)||wp(z,b))}const Pt=vt&&Je&&vt!==Je?_n(Je,vt):vt||Je;return Pt||Sc(z,Se,a,Z),Pt}}function Sc(a,_,b,C){var M;const z=Dg(a,b),Z=Ud(C),me=ONe(C,_);if(me!==void 0){const Se=Cl(me),Je=He(C,w._0_has_no_exported_member_named_1_Did_you_mean_2,z,Z,Se);me.valueDeclaration&&ml(Je,kc(me.valueDeclaration,w._0_is_declared_here,Se))}else(M=a.exports)!=null&&M.has("default")?He(C,w.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,z,Z):xs(b,C,Z,a,z)}function xs(a,_,b,C,M){var z,Z;const me=(Z=(z=to(C.valueDeclaration,lk))==null?void 0:z.locals)==null?void 0:Z.get(_.escapedText),Se=C.exports;if(me){const Je=Se==null?void 0:Se.get("export=");if(Je)f_(Je,me)?Fs(a,_,b,M):He(_,w.Module_0_has_no_exported_member_1,M,b);else{const vt=Se?lr(KP(Se),dn=>!!f_(dn,me)):void 0,Pt=vt?He(_,w.Module_0_declares_1_locally_but_it_is_exported_as_2,M,b,Cl(vt)):He(_,w.Module_0_declares_1_locally_but_it_is_not_exported,M,b);me.declarations&&ml(Pt,...Vn(me.declarations,(dn,yn)=>kc(dn,yn===0?w._0_is_declared_here:w.and_here,b)))}}else He(_,w.Module_0_has_no_exported_member_1,M,b)}function Fs(a,_,b,C){if(ke>=5){const M=b1(Le)?w._0_can_only_be_imported_by_using_a_default_import:w._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b)}else if(Rs(a)){const M=b1(Le)?w._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:w._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b)}else{const M=b1(Le)?w._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:w._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b,b,C)}}function Tl(a,_){if(oS(a)&&ec(a.propertyName||a.name)==="default"){const Z=x0(a),me=Z&&Zm(a,Z);if(me)return va(me,a,_)}const b=ym(a)?rI(a):a.parent.parent.parent,C=fc(b),M=$o(b,C||a,_),z=a.propertyName||a.name;return C&&M&&An(z)?wp(Fn(Vo(M),z.escapedText),_):(Jt(a,void 0,M,!1),M)}function fc(a){if(ff(a)&&a.initializer&&sa(a.initializer))return a.initializer}function Gd(a,_){if(YD(a.parent)){const b=$0(a.parent.symbol,_);return Jt(a,void 0,b,!1),b}}function ag(a,_,b){if(ec(a.propertyName||a.name)==="default"){const M=x0(a),z=M&&Zm(a,M);if(z)return va(z,a,!!b)}const C=a.parent.parent.moduleSpecifier?$o(a.parent.parent,a,b):P_(a.propertyName||a.name,_,!1,b);return Jt(a,void 0,C,!1),C}function ah(a,_){const b=Ly(a)?a.expression:a.right,C=bm(b,_);return Jt(a,void 0,C,!1),C}function bm(a,_){if(B0(a))return Iv(a).symbol;if(!Vd(a)&&!Uh(a))return;const b=P_(a,901119,!0,_);return b||(Iv(a),ge(a).resolvedSymbol)}function ay(a,_){if(ys(a.parent)&&a.parent.left===a&&a.parent.operatorToken.kind===64)return bm(a.parent.right,_)}function yp(a,_=!1){switch(a.kind){case 271:case 260:return oy(a,_);case 273:return Ag(a,_);case 274:return Md(a,_);case 280:return fe(a,_);case 276:case 208:return Tl(a,_);case 281:return ag(a,901119,_);case 277:case 226:return ah(a,_);case 270:return Gd(a,_);case 304:return P_(a.name,901119,!0,_);case 303:return bm(a.initializer,_);case 212:case 211:return ay(a,_);default:return ce.fail()}}function Cg(a,_=901119){return a?(a.flags&(2097152|_))===2097152||!!(a.flags&2097152&&a.flags&67108864):!1}function wp(a,_){return!_&&Cg(a)?Xp(a):a}function Xp(a){ce.assert((a.flags&2097152)!==0,"Should only get Alias here.");const _=Mt(a);if(_.aliasTarget)_.aliasTarget===_o&&(_.aliasTarget=Ir);else{_.aliasTarget=_o;const b=og(a);if(!b)return ce.fail();const C=yp(b);_.aliasTarget===_o?_.aliasTarget=C||Ir:He(b,w.Circular_definition_of_import_alias_0,Cl(a))}return _.aliasTarget}function r1(a){if(Mt(a).aliasTarget!==_o)return Xp(a)}function sg(a,_,b){const C=_&&da(a),M=C&&mh(C),z=C&&(M?Zm(C.moduleSpecifier,C.moduleSpecifier,!0):Xp(C.symbol)),Z=M&&z?sr(z):void 0;let me=b?0:a.flags,Se;for(;a.flags&2097152;){const Je=zh(Xp(a));if(!M&&Je===z||(Z==null?void 0:Z.get(Je.escapedName))===Je)break;if(Je===Ir)return 67108863;if(Je===a||Se!=null&&Se.has(Je))break;Je.flags&2097152&&(Se?Se.add(Je):Se=new Set([a,Je])),me|=Je.flags,a=Je}return me}function Jt(a,_,b,C,M,z){if(!a||sa(a))return!1;const Z=wi(a);if(sR(a)){const Se=Mt(Z);return Se.typeOnlyDeclaration=a,!0}if(M){const Se=Mt(Z);return Se.typeOnlyDeclaration=M,Z.escapedName!==z&&(Se.typeOnlyExportStarName=z),!0}const me=Mt(Z);return ci(me,_,C)||ci(me,b,C)}function ci(a,_,b){var C;if(_&&(a.typeOnlyDeclaration===void 0||b&&a.typeOnlyDeclaration===!1)){const M=((C=_.exports)==null?void 0:C.get("export="))??_,z=M.declarations&&lr(M.declarations,sR);a.typeOnlyDeclaration=z??Mt(M).typeOnlyDeclaration??!1}return!!a.typeOnlyDeclaration}function da(a,_){if(!(a.flags&2097152))return;const b=Mt(a);if(_===void 0)return b.typeOnlyDeclaration||void 0;if(b.typeOnlyDeclaration){const C=b.typeOnlyDeclaration.kind===278?wp(sr(b.typeOnlyDeclaration.symbol.parent).get(b.typeOnlyExportStarName||a.escapedName)):Xp(b.typeOnlyDeclaration.symbol);return sg(C)&_?b.typeOnlyDeclaration:void 0}}function Hu(a){if(!Ur)return;const _=wi(a),b=Xp(_);b&&(b===Ir||sg(_,!0)&111551&&!qk(b))&&t_(_)}function t_(a){ce.assert(Ur);const _=Mt(a);if(!_.referenced){_.referenced=!0;const b=og(a);if(!b)return ce.fail();y1(b)&&sg(wp(a))&111551&&Iv(b.moduleReference)}}function A_(a){const _=Mt(a);_.constEnumReferenced||(_.constEnumReferenced=!0)}function gd(a,_){return a.kind===80&&kH(a)&&(a=a.parent),a.kind===80||a.parent.kind===166?P_(a,1920,!1,_):(ce.assert(a.parent.kind===271),P_(a,901119,!1,_))}function Dg(a,_){return a.parent?Dg(a.parent,_)+"."+Cl(a):Cl(a,_,void 0,36)}function um(a){for(;nT(a.parent);)a=a.parent;return a}function Ig(a){let _=NS(a),b=Ro(_,_.escapedText,111551,void 0,_,!0);if(b){for(;nT(_.parent);){const C=Vo(b);if(b=Fn(C,_.parent.right.escapedText),!b)return;_=_.parent}return b}}function P_(a,_,b,C,M){if(Um(a))return;const z=1920|(Rs(a)?_&111551:0);let Z;if(a.kind===80){const me=_===z||rh(a)?w.Cannot_find_namespace_0:xBe(NS(a)),Se=Rs(a)&&!rh(a)?Qm(a,_):void 0;if(Z=wa(Ro(M||a,a.escapedText,_,b||Se?void 0:me,a,!0,!1)),!Z)return wa(Se)}else if(a.kind===166||a.kind===211){const me=a.kind===166?a.left:a.expression,Se=a.kind===166?a.right:a.name;let Je=P_(me,z,b,!1,M);if(!Je||Um(Se))return;if(Je===Ir)return Je;if(Je.valueDeclaration&&Rs(Je.valueDeclaration)&&Jd(Le)!==100&&ff(Je.valueDeclaration)&&Je.valueDeclaration.initializer&&Kbe(Je.valueDeclaration.initializer)){const vt=Je.valueDeclaration.initializer.arguments[0],Pt=Zm(vt,vt);if(Pt){const dn=$0(Pt);dn&&(Je=dn)}}if(Z=wa(Jn(Gt(Je),Se.escapedText,_)),!Z&&Je.flags&2097152&&(Z=wa(Jn(Gt(Xp(Je)),Se.escapedText,_))),!Z){if(!b){const vt=Dg(Je),Pt=Ud(Se),dn=ONe(Se,Je);if(dn){He(Se,w._0_has_no_exported_member_named_1_Did_you_mean_2,vt,Pt,Cl(dn));return}const yn=nT(a)&&um(a);if(Ev&&_&788968&&yn&&!Jm(yn.parent)&&Ig(yn)){He(yn,w._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,oE(yn));return}if(_&1920&&nT(a.parent)){const bi=wa(Jn(Gt(Je),Se.escapedText,788968));if(bi){He(a.parent.right,w.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,Cl(bi),lf(a.parent.right.escapedText));return}}He(Se,w.Namespace_0_has_no_exported_member_1,vt,Pt)}return}}else ce.assertNever(a,"Unknown entity name kind.");return ce.assert((I_(Z)&1)===0,"Should never get an instantiated symbol here."),!rh(a)&&Vd(a)&&(Z.flags&2097152||a.parent.kind===277)&&Jt(YC(a),Z,void 0,!0),Z.flags&_||C?Z:Xp(Z)}function Qm(a,_){if(uPe(a.parent)){const b=Bh(a.parent);if(b)return Ro(b,a.escapedText,_,void 0,a,!0)}}function Bh(a){if(Kr(a,M=>UC(M)||M.flags&16777216?T2(M):"quit"))return;const b=P7(a);if(b&&Ou(b)&&H8(b.expression)){const M=wi(b.expression.left);if(M)return P1(M)}if(b&&Dm(b)&&H8(b.parent)&&Ou(b.parent.parent)){const M=wi(b.parent.left);if(M)return P1(M)}if(b&&(q2(b)||Fm(b))&&ys(b.parent.parent)&&Qy(b.parent.parent)===6){const M=wi(b.parent.parent.left);if(M)return P1(M)}const C=dH(a);if(C&&S_(C)){const M=wi(C);return M&&M.valueDeclaration}}function P1(a){const _=a.parent.valueDeclaration;return _?(aG(_)?x7(_):p7(_)?k9(_):void 0)||_:void 0}function VT(a){const _=a.valueDeclaration;if(!_||!Rs(_)||a.flags&524288||jE(_,!1))return;const b=ff(_)?k9(_):x7(_);if(b){const C=Vl(b);if(C)return $be(C,a)}}function Zm(a,_,b){const M=Jd(Le)===1?w.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:w.Cannot_find_module_0_or_its_corresponding_type_declarations;return fb(a,_,b?void 0:M)}function fb(a,_,b,C=!1){return sp(_)?FS(a,_.text,b,_,C):void 0}function FS(a,_,b,C,M=!1){var z,Z,me,Se,Je,vt,Pt,dn,yn,hr;if(xf(_,"@types/")){const Ga=w.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hs=Ez(_,"@types/");He(C,Ga,hs,_)}const bi=TV(_,!0);if(bi)return bi;const Wo=ns(a),aa=sp(a)?a:((z=Kr(a,WE))==null?void 0:z.arguments[0])||((Z=Kr(a,Fv))==null?void 0:Z.moduleSpecifier)||((me=Kr(a,qM))==null?void 0:me.moduleReference.expression)||((Se=Kr(a,mh))==null?void 0:Se.moduleSpecifier)||((Je=xp(a)?a:a.parent&&xp(a.parent)&&a.parent.name===a?a.parent:void 0)==null?void 0:Je.name)||((vt=BE(a)?a:void 0)==null?void 0:vt.argument.literal),$s=aa&&sp(aa)?kA(Wo,aa):Wo.impliedNodeFormat,Ba=Jd(Le),lo=XU(Wo,_,$s),Xa=lo&&nse(Le,lo,Wo),Go=lo&&(!Xa||Xa===w.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(lo.resolvedFileName);if(Go){if(Xa&&He(C,Xa,_,lo.resolvedFileName),lo.resolvedUsingTsExtension&&iT(_)){const Ga=((Pt=Kr(a,Fv))==null?void 0:Pt.importClause)||Kr(a,dA(kh,mh));(Ga&&!Ga.isTypeOnly||Kr(a,WE))&&He(C,w.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Pa(ce.checkDefined(PH(_))))}else if(lo.resolvedUsingTsExtension&&!l4(Le,Wo.fileName)){const Ga=((dn=Kr(a,Fv))==null?void 0:dn.importClause)||Kr(a,dA(kh,mh));if(!(Ga!=null&&Ga.isTypeOnly||Kr(a,Wx))){const hs=ce.checkDefined(PH(_));He(C,w.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hs)}}if(Go.symbol){if(lo.isExternalLibraryImport&&!G7(lo.extension)&&dT(!1,C,Wo,$s,lo,_),Ba===3||Ba===99){const Ga=Wo.impliedNodeFormat===1&&!Kr(a,WE)||!!Kr(a,kh),hs=Kr(a,nl=>Wx(nl)||mh(nl)||Fv(nl)),Ld=hs&&Wx(hs)?(yn=hs.assertions)==null?void 0:yn.assertClause:hs==null?void 0:hs.assertClause;if(Ga&&Go.impliedNodeFormat===99&&!D2(Ld))if(Kr(a,kh))He(C,w.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,_);else{let nl;const id=OT(Wo.fileName);if(id===".ts"||id===".js"||id===".tsx"||id===".jsx"){const $y=Wo.packageJsonScope,l2=id===".ts"?".mts":id===".js"?".mjs":void 0;$y&&!$y.contents.packageJsonContent.type?l2?nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,l2,tf($y.packageDirectory,"package.json")):nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,tf($y.packageDirectory,"package.json")):l2?nl=Es(void 0,w.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,l2):nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}no.add(RN(ns(C),C,Es(nl,w.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,_)))}}return wa(Go.symbol)}b&&He(C,w.File_0_is_not_a_module,Go.fileName);return}if(Sv){const Ga=qf(Sv,hs=>hs.pattern,_);if(Ga){const hs=jT&&jT.get(_);return wa(hs||Ga.symbol)}}if(lo&&!G7(lo.extension)&&Xa===void 0||Xa===w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(M){const Ga=w.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;He(C,Ga,_,lo.resolvedFileName)}else dT(Wt&&!!b,C,Wo,$s,lo,_);return}if(b){if(lo){const Ga=t.getProjectReferenceRedirect(lo.resolvedFileName);if(Ga){He(C,w.Output_file_0_has_not_been_built_from_source_file_1,Ga,lo.resolvedFileName);return}}if(Xa)He(C,Xa,_,lo.resolvedFileName);else{const Ga=U2(_)&&!e7(_),hs=Ba===3||Ba===99;if(!sI(Le)&&Pg(_,".json")&&Ba!==1&&BH(Le))He(C,w.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,_);else if($s===99&&hs&&Ga){const Ld=Su(_,qc(Wo.path)),nl=(hr=zi.find(([id,$y])=>t.fileExists(Ld+id)))==null?void 0:hr[1];nl?He(C,w.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,_+nl):He(C,w.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 He(C,b,_)}}return;function Pa(Ga){const hs=eW(_,Ga);if(WH(ke)||$s===99){const Ld=iT(_)&&l4(Le);return hs+(Ga===".mts"||Ga===".d.mts"?Ld?".mts":".mjs":Ga===".cts"||Ga===".d.mts"?Ld?".cts":".cjs":Ld?".ts":".js")}return hs}}function dT(a,_,b,C,{packageId:M,resolvedFileName:z},Z){let me;!tb(Z)&&M&&(me=jMe(b,t,Z,C,M.name)),dr(a,_,Es(me,w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,Z,z))}function $0(a,_){if(a!=null&&a.exports){const b=wp(a.exports.get("export="),_),C=xv(wa(b),wa(a));return wa(C)||a}}function xv(a,_){if(!a||a===Ir||a===_||_.exports.size===1||a.flags&2097152)return a;const b=Mt(a);if(b.cjsExportMerged)return b.cjsExportMerged;const C=a.flags&33554432?a:yi(a);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=Td()),_.exports.forEach((M,z)=>{z!=="export="&&C.exports.set(z,C.exports.has(z)?go(C.exports.get(z),M):M)}),C===a&&(Mt(C).resolvedExports=void 0,Mt(C).resolvedMembers=void 0),Mt(C).cjsExportMerged=C,b.cjsExportMerged=C}function t2(a,_,b,C){var M;const z=$0(a,b);if(!b&&z){if(!C&&!(z.flags&1539)&&!Vm(z,312)){const me=ke>=5?"allowSyntheticDefaultImports":"esModuleInterop";return He(_,w.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,me),z}const Z=_.parent;if(Fv(Z)&&uH(Z)||WE(Z)){const me=WE(Z)?Z.arguments[0]:Z.moduleSpecifier,Se=Vo(z),Je=c8(Se,z,a,me);if(Je)return q0(z,Je,Z);const vt=(M=a==null?void 0:a.declarations)==null?void 0:M.find(tl),Pt=vt&&Ka(d_(me),vt.impliedNodeFormat);if(b1(Le)||Pt){let dn=Ri(Se,0);if((!dn||!dn.length)&&(dn=Ri(Se,1)),dn&&dn.length||Fn(Se,"default",!0)||Pt){const yn=Se.flags&3670016?qbe(Se,z,a,me):vze(z,z.parent);return q0(z,yn,Z)}}}}return z}function q0(a,_,b){const C=Ge(a.flags,a.escapedName);C.declarations=a.declarations?a.declarations.slice():[],C.parent=a.parent,C.links.target=a,C.links.originatingImport=b,a.valueDeclaration&&(C.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),a.members&&(C.members=new Map(a.members)),a.exports&&(C.exports=new Map(a.exports));const M=K0(_);return C.links.type=jo(C,M.members,Zn,Zn,M.indexInfos),C}function N1(a){return a.exports.get("export=")!==void 0}function i0(a){return KP(sr(a))}function nt(a){const _=i0(a),b=$0(a);if(b!==a){const C=Vo(b);Ee(C)&&Oi(_,Vp(C))}return _}function pr(a,_){sr(a).forEach((M,z)=>{fn(z)||_(M,z)});const C=$0(a);if(C!==a){const M=Vo(C);Ee(M)&&F4(M,(z,Z)=>{_(z,Z)})}}function vi(a,_){const b=sr(_);if(b)return b.get(a)}function Di(a,_){const b=vi(a,_);if(b)return b;const C=$0(_);if(C===_)return;const M=Vo(C);return Ee(M)?Fn(M,a):void 0}function Ee(a){return!(a.flags&402784252||ji(a)&1||UA(a)||_p(a))}function Gt(a){return a.flags&6256?bB(a,"resolvedExports"):a.flags&1536?sr(a):a.exports||Ve}function sr(a){const _=Mt(a);if(!_.resolvedExports){const{exports:b,typeOnlyExportStarMap:C}=Ja(a);_.resolvedExports=b,_.typeOnlyExportStarMap=C}return _.resolvedExports}function Ii(a,_,b,C){_&&_.forEach((M,z)=>{if(z==="default")return;const Z=a.get(z);if(!Z)a.set(z,M),b&&C&&b.set(z,{specifierText:Yv(C.moduleSpecifier)});else if(b&&C&&Z&&wp(Z)!==wp(M)){const me=b.get(z);me.exportsWithDuplicate?me.exportsWithDuplicate.push(C):me.exportsWithDuplicate=[C]}})}function Ja(a){const _=[];let b;const C=new Set;a=$0(a);const M=z(a)||Ve;return b&&C.forEach(Z=>b.delete(Z)),{exports:M,typeOnlyExportStarMap:b};function z(Z,me,Se){if(!Se&&(Z!=null&&Z.exports)&&Z.exports.forEach((Pt,dn)=>C.add(dn)),!(Z&&Z.exports&&Dy(_,Z)))return;const Je=new Map(Z.exports),vt=Z.exports.get("__export");if(vt){const Pt=Td(),dn=new Map;if(vt.declarations)for(const yn of vt.declarations){const hr=Zm(yn,yn.moduleSpecifier),bi=z(hr,yn,Se||yn.isTypeOnly);Ii(Pt,bi,dn,yn)}dn.forEach(({exportsWithDuplicate:yn},hr)=>{if(!(hr==="export="||!(yn&&yn.length)||Je.has(hr)))for(const bi of yn)no.add(kc(bi,w.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,dn.get(hr).specifierText,lf(hr)))}),Ii(Je,Pt)}return me!=null&&me.isTypeOnly&&(b??(b=new Map),Je.forEach((Pt,dn)=>b.set(dn,me))),Je}}function wa(a){let _;return a&&a.mergeId&&(_=Qt[a.mergeId])?_:a}function wi(a){return wa(a.symbol&&$R(a.symbol))}function Vl(a){return YD(a)?wi(a):void 0}function Uf(a){return wa(a.parent&&$R(a.parent))}function Y_(a,_){const b=ns(_),C=Im(b),M=Mt(a);let z;if(M.extendedContainersByFile&&(z=M.extendedContainersByFile.get(C)))return z;if(b&&b.imports){for(const me of b.imports){if(rh(me))continue;const Se=Zm(_,me,!0);!Se||!_b(Se,a)||(z=ur(z,Se))}if(Nt(z))return(M.extendedContainersByFile||(M.extendedContainersByFile=new Map)).set(C,z),z}if(M.extendedContainers)return M.extendedContainers;const Z=t.getSourceFiles();for(const me of Z){if(!Wv(me))continue;const Se=wi(me);_b(Se,a)&&(z=ur(z,Se))}return M.extendedContainers=z||Zn}function Fg(a,_,b){const C=Uf(a);if(C&&!(a.flags&262144)){const Z=Qo(C.declarations,z),me=_&&Y_(a,_),Se=sv(C,b);if(_&&C.flags&Fc(b)&&ks(C,_,1920,!1))return ur(Hi(Hi([C],Z),me),Se);const Je=!(C.flags&Fc(b))&&C.flags&788968&&Rm(C).flags&524288&&b===111551?ca(_,Pt=>wT(Pt,dn=>{if(dn.flags&Fc(b)&&Vo(dn)===Rm(C))return dn})):void 0;let vt=Je?[Je,...Z,C]:[...Z,C];return vt=ur(vt,Se),vt=Oi(vt,me),vt}const M=Qo(a.declarations,Z=>{if(!Ov(Z)&&Z.parent){if(fl(Z.parent))return wi(Z.parent);if(z0(Z.parent)&&Z.parent.parent&&$0(wi(Z.parent.parent))===a)return wi(Z.parent.parent)}if(B0(Z)&&ys(Z.parent)&&Z.parent.operatorToken.kind===64&&Kf(Z.parent.left)&&Uh(Z.parent.left.expression))return KC(Z.parent.left)||jL(Z.parent.left.expression)?wi(ns(Z)):(Iv(Z.parent.left.expression),ge(Z.parent.left.expression).resolvedSymbol)});if(!Nt(M))return;return Qo(M,Z=>_b(Z,a)?Z:void 0);function z(Z){return C&&by(Z,C)}}function sv(a,_){const b=!!Nt(a.declarations)&&Dl(a.declarations);if(_&111551&&b&&b.parent&&ff(b.parent)&&(Wd(b)&&b===b.parent.initializer||e0(b)&&b===b.parent.type))return wi(b.parent)}function by(a,_){const b=Js(a),C=b&&b.exports&&b.exports.get("export=");return C&&f_(C,_)?b:void 0}function _b(a,_){if(a===Uf(_))return _;const b=a.exports&&a.exports.get("export=");if(b&&f_(b,_))return a;const C=Gt(a),M=C.get(_.escapedName);return M&&f_(M,_)?M:wT(C,z=>{if(f_(z,_))return z})}function f_(a,_){if(wa(wp(wa(a)))===wa(wp(wa(_))))return a}function zh(a){return wa(a&&(a.flags&1048576)!==0&&a.exportSymbol||a)}function i1(a,_){return!!(a.flags&111551||a.flags&2097152&&sg(a,!_)&111551)}function n2(a){const _=a.members;for(const b of _)if(b.kind===176&&wx(b.body))return b}function Vv(a){var _;const b=new I(ro,a);return O++,b.id=O,(_=tu)==null||_.recordType(b),b}function su(a,_){const b=Vv(a);return b.symbol=_,b}function gC(a){return new I(ro,a)}function eg(a,_,b=0){const C=Vv(a);return C.intrinsicName=_,C.objectFlags=b|524288|2097152|33554432|16777216,C}function Uv(a,_){const b=su(524288,_);return b.objectFlags=a,b.members=void 0,b.properties=void 0,b.callSignatures=void 0,b.constructSignatures=void 0,b.indexInfos=void 0,b}function Rk(){return gl(oc(xae.keys(),qv))}function Lb(a){return su(262144,a)}function fn(a){return a.charCodeAt(0)===95&&a.charCodeAt(1)===95&&a.charCodeAt(2)!==95&&a.charCodeAt(2)!==64&&a.charCodeAt(2)!==35}function $n(a){let _;return a.forEach((b,C)=>{ri(b,C)&&(_||(_=[])).push(b)}),_||Zn}function ri(a,_){return!fn(_)&&i1(a)}function Li(a){const _=$n(a),b=W0e(a);return b?Hi(_,[b]):_}function yo(a,_,b,C,M){const z=a;return z.members=_,z.properties=Zn,z.callSignatures=b,z.constructSignatures=C,z.indexInfos=M,_!==Ve&&(z.properties=$n(_)),z}function jo(a,_,b,C,M){return yo(Uv(16,a),_,b,C,M)}function Oo(a){if(a.constructSignatures.length===0)return a;if(a.objectTypeWithoutAbstractConstructSignatures)return a.objectTypeWithoutAbstractConstructSignatures;const _=gi(a.constructSignatures,C=>!(C.flags&4));if(a.constructSignatures===_)return a;const b=jo(a.symbol,a.members,a.callSignatures,gt(_)?_:Zn,a.indexInfos);return a.objectTypeWithoutAbstractConstructSignatures=b,b.objectTypeWithoutAbstractConstructSignatures=b,b}function ca(a,_){let b;for(let C=a;C;C=C.parent){if(lk(C)&&C.locals&&!mn(C)&&(b=_(C.locals,void 0,!0,C)))return b;switch(C.kind){case 312:if(!h1(C))break;case 267:const M=wi(C);if(b=_((M==null?void 0:M.exports)||Ve,void 0,!0,C))return b;break;case 263:case 231:case 264:let z;if((wi(C).members||Ve).forEach((Z,me)=>{Z.flags&788968&&(z||(z=Td())).set(me,Z)}),z&&(b=_(z,void 0,!1,C)))return b;break}}return _(Ut,void 0,!0)}function Fc(a){return a===111551?111551:1920}function ks(a,_,b,C,M=new Map){if(!(a&&!Vs(a)))return;const z=Mt(a),Z=z.accessibleChainCache||(z.accessibleChainCache=new Map),me=ca(_,(aa,$s,Ba,lo)=>lo),Se=`${C?0:1}|${me&&Im(me)}|${b}`;if(Z.has(Se))return Z.get(Se);const Je=Bp(a);let vt=M.get(Je);vt||M.set(Je,vt=[]);const Pt=ca(_,dn);return Z.set(Se,Pt),Pt;function dn(aa,$s,Ba){if(!Dy(vt,aa))return;const lo=bi(aa,$s,Ba);return vt.pop(),lo}function yn(aa,$s){return!Xs(aa,_,$s)||!!ks(aa.parent,_,Fc($s),C,M)}function hr(aa,$s,Ba){return(a===($s||aa)||wa(a)===wa($s||aa))&&!gt(aa.declarations,fl)&&(Ba||yn(wa(aa),b))}function bi(aa,$s,Ba){return hr(aa.get(a.escapedName),void 0,$s)?[a]:wT(aa,Xa=>{if(Xa.flags&2097152&&Xa.escapedName!=="export="&&Xa.escapedName!=="default"&&!(MH(Xa)&&_&&Wv(ns(_)))&&(!C||gt(Xa.declarations,qM))&&(!Ba||!gt(Xa.declarations,Eie))&&($s||!Vm(Xa,281))){const Go=Xp(Xa),Pa=Wo(Xa,Go,$s);if(Pa)return Pa}if(Xa.escapedName===a.escapedName&&Xa.exportSymbol&&hr(wa(Xa.exportSymbol),void 0,$s))return[a]})||(aa===Ut?Wo(gr,gr,$s):void 0)}function Wo(aa,$s,Ba){if(hr(aa,$s,Ba))return[aa];const lo=Gt($s),Xa=lo&&dn(lo,!0);if(Xa&&yn(aa,Fc(b)))return[aa].concat(Xa)}}function Xs(a,_,b){let C=!1;return ca(_,M=>{let z=wa(M.get(a.escapedName));if(!z)return!1;if(z===a)return!0;const Z=z.flags&2097152&&!Vm(z,281);return z=Z?Xp(z):z,(Z?sg(z):z.flags)&b?(C=!0,!0):!1}),C}function Vs(a){if(a.declarations&&a.declarations.length){for(const _ of a.declarations)switch(_.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function wu(a,_){return oo(a,_,788968,!1,!0).accessibility===0}function Yp(a,_){return oo(a,_,111551,!1,!0).accessibility===0}function Q(a,_,b){return oo(a,_,b,!1,!1).accessibility===0}function ft(a,_,b,C,M,z){if(!Nt(a))return;let Z,me=!1;for(const Se of a){const Je=ks(Se,_,C,!1);if(Je){Z=Se;const dn=ju(Je[0],M);if(dn)return dn}if(z&>(Se.declarations,fl)){if(M){me=!0;continue}return{accessibility:0}}const vt=Fg(Se,_,C),Pt=ft(vt,_,b,b===Se?Fc(C):C,M,z);if(Pt)return Pt}if(me)return{accessibility:0};if(Z)return{accessibility:1,errorSymbolName:Cl(b,_,C),errorModuleName:Z!==b?Cl(Z,_,1920):void 0}}function br(a,_,b,C){return oo(a,_,b,C,!0)}function oo(a,_,b,C,M){if(a&&_){const z=ft([a],_,a,b,C,M);if(z)return z;const Z=Ot(a.declarations,Js);if(Z){const me=Js(_);if(Z!==me)return{accessibility:2,errorSymbolName:Cl(a,_,b),errorModuleName:Cl(Z),errorNode:Rs(_)?_:void 0}}return{accessibility:1,errorSymbolName:Cl(a,_,b)}}return{accessibility:0}}function Js(a){const _=Kr(a,pu);return _&&wi(_)}function pu(a){return Ov(a)||a.kind===312&&h1(a)}function fl(a){return iY(a)||a.kind===312&&h1(a)}function ju(a,_){let b;if(!jr(gi(a.declarations,z=>z.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:b};function C(z){var Z,me;if(!WS(z)){const Se=R_(z);if(Se&&!il(Se,1)&&WS(Se.parent))return M(z,Se);if(ff(z)&&Dh(z.parent.parent)&&!il(z.parent.parent,1)&&WS(z.parent.parent.parent))return M(z,z.parent.parent);if(Yz(z)&&!il(z,1)&&WS(z.parent))return M(z,z);if(ym(z)){if(a.flags&2097152&&Rs(z)&&((Z=z.parent)!=null&&Z.parent)&&ff(z.parent.parent)&&((me=z.parent.parent.parent)!=null&&me.parent)&&Dh(z.parent.parent.parent.parent)&&!il(z.parent.parent.parent.parent,1)&&z.parent.parent.parent.parent.parent&&WS(z.parent.parent.parent.parent.parent))return M(z,z.parent.parent.parent.parent);if(a.flags&2){const Je=Kr(z,Dh);return il(Je,1)?!0:WS(Je.parent)?M(z,Je):!1}}return!1}return!0}function M(z,Z){return _&&(ge(z).isVisible=!0,b=ST(b,Z)),!0}}function L_(a,_){let b;a.parent.kind===186||a.parent.kind===233&&!rC(a.parent)||a.parent.kind===167?b=1160127:a.kind===166||a.kind===211||a.parent.kind===271?b=1920:b=788968;const C=NS(a),M=Ro(_,C.escapedText,b,void 0,void 0,!1);return M&&M.flags&262144&&b&788968?{accessibility:0}:!M&&Zy(C)&&br(wi(Q1(C,!1,!1)),C,b,!1).accessibility===0?{accessibility:0}:M&&ju(M,!0)||{accessibility:1,errorSymbolName:Yv(C),errorNode:C}}function Cl(a,_,b,C=4,M){let z=70221824;C&2&&(z|=128),C&1&&(z|=512),C&8&&(z|=16384),C&32&&(z|=134217728),C&16&&(z|=1073741824);const Z=C&4?Xr.symbolToNode:Xr.symbolToEntityName;return M?me(M).getText():qU(me);function me(Se){const Je=Z(a,b,_,z),vt=(_==null?void 0:_.kind)===312?P4e():GW(),Pt=_&&ns(_);return vt.writeNode(4,Je,Pt,Se),Se}}function o0(a,_,b=0,C,M){return M?z(M).getText():qU(z);function z(Z){let me;b&262144?me=C===1?185:184:me=C===1?180:179;const Se=Xr.signatureToSignatureDeclaration(a,me,_,hC(b)|70221824|512),Je=jQ(),vt=_&&ns(_);return Je.writeNode(4,Se,vt,Rde(Z)),Z}}function oa(a,_,b=1064960,C=wie("")){const M=Le.noErrorTruncation||b&1,z=Xr.typeToTypeNode(a,_,hC(b)|70221824|(M?1:0));if(z===void 0)return ce.fail("should always get typenode");const Z=a!==Cn?GW():k4e(),me=_&&ns(_);Z.writeNode(4,z,me,C);const Se=C.getText(),Je=M?HN*2:vG*2;return Je&&Se&&Se.length>=Je?Se.substr(0,Je-3)+"...":Se}function dD(a,_){let b=Kx(a.symbol)?oa(a,a.symbol.valueDeclaration):oa(a),C=Kx(_.symbol)?oa(_,_.symbol.valueDeclaration):oa(_);return b===C&&(b=a0(a),C=a0(_)),[b,C]}function a0(a){return oa(a,void 0,64)}function Kx(a){return a&&!!a.valueDeclaration&&Nr(a.valueDeclaration)&&!nA(a.valueDeclaration)}function hC(a=0){return a&848330091}function WP(a){return!!a.symbol&&!!(a.symbol.flags&32)&&(a===Uy(a.symbol)||!!(a.flags&524288)&&!!(ji(a)&16777216))}function BP(){return{typeToTypeNode:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>C(On,Ec)),indexInfoToIndexSignatureDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>vt(On,Ec,void 0)),signatureToSignatureDeclaration:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>Pt(On,Xt,Bc)),symbolToEntityName:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>nl(On,Bc,Xt,!1)),symbolToExpression:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>id(On,Bc,Xt)),symbolToTypeParameterDeclarations:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>Ba(On,Ec)),symbolToParameterDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>bi(On,Ec)),typeParameterToDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>hr(On,Ec)),symbolTableToDeclarationStatements:(On,Xt,bs,as,Ec)=>_(Xt,bs,as,Bc=>$T(On,Bc,Ec)),symbolToNode:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>a(On,Bc,Xt))};function a(On,Xt,bs){if(Xt.flags&1073741824){if(On.valueDeclaration){const Ec=o_(On.valueDeclaration);if(Ec&&am(Ec))return Ec}const as=Mt(On).nameType;if(as&&as.flags&9216)return Xt.enclosingDeclaration=as.symbol.valueDeclaration,be.createComputedPropertyName(id(as.symbol,Xt,bs))}return id(On,Xt,bs)}function _(On,Xt,bs,as){ce.assert(On===void 0||(On.flags&16)===0);const Ec=bs!=null&&bs.trackSymbol?bs.moduleResolverHost:Xt&134217728?AHe(t):void 0,Bc={enclosingDeclaration:On,flags:Xt||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Bc.tracker=new y$(Bc,bs,Ec);const Rf=as(Bc);return Bc.truncating&&Bc.flags&1&&Bc.tracker.reportTruncationError(),Bc.encounteredError?void 0:Rf}function b(On){return On.truncating?On.truncating:On.truncating=On.approximateLength>(On.flags&1?HN:vG)}function C(On,Xt){const bs=Xt.flags,as=M(On,Xt);return Xt.flags=bs,as}function M(On,Xt){var bs,as;l&&l.throwIfCancellationRequested&&l.throwIfCancellationRequested();const Ec=Xt.flags&8388608;if(Xt.flags&=-8388609,!On){if(!(Xt.flags&262144)){Xt.encounteredError=!0;return}return Xt.approximateLength+=3,be.createKeywordTypeNode(133)}if(Xt.flags&536870912||(On=HT(On)),On.flags&1)return On.aliasSymbol?be.createTypeReferenceNode(Pa(On.aliasSymbol),Se(On.aliasTypeArguments,Xt)):On===Cn?dy(be.createKeywordTypeNode(133),3,"unresolved"):(Xt.approximateLength+=3,be.createKeywordTypeNode(On===Qr?141:133));if(On.flags&2)return be.createKeywordTypeNode(159);if(On.flags&4)return Xt.approximateLength+=6,be.createKeywordTypeNode(154);if(On.flags&8)return Xt.approximateLength+=6,be.createKeywordTypeNode(150);if(On.flags&64)return Xt.approximateLength+=6,be.createKeywordTypeNode(163);if(On.flags&16&&!On.aliasSymbol)return Xt.approximateLength+=7,be.createKeywordTypeNode(136);if(On.flags&1056){if(On.symbol.flags&8){const Jo=Uf(On.symbol),rc=Ga(Jo,Xt,788968);if(Rm(Jo)===On)return rc;const Ll=mp(On.symbol);return rE(Ll,0)?rf(rc,be.createTypeReferenceNode(Ll,void 0)):Wx(rc)?(rc.isTypeOf=!0,be.createIndexedAccessTypeNode(rc,be.createLiteralTypeNode(be.createStringLiteral(Ll)))):x2(rc)?be.createIndexedAccessTypeNode(be.createTypeQueryNode(rc.typeName),be.createLiteralTypeNode(be.createStringLiteral(Ll))):ce.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ga(On.symbol,Xt,788968)}if(On.flags&128)return Xt.approximateLength+=On.value.length+2,be.createLiteralTypeNode(Sa(be.createStringLiteral(On.value,!!(Xt.flags&268435456)),16777216));if(On.flags&256){const Jo=On.value;return Xt.approximateLength+=(""+Jo).length,be.createLiteralTypeNode(Jo<0?be.createPrefixUnaryExpression(41,be.createNumericLiteral(-Jo)):be.createNumericLiteral(Jo))}if(On.flags&2048)return Xt.approximateLength+=tD(On.value).length+1,be.createLiteralTypeNode(be.createBigIntLiteral(On.value));if(On.flags&512)return Xt.approximateLength+=On.intrinsicName.length,be.createLiteralTypeNode(On.intrinsicName==="true"?be.createTrue():be.createFalse());if(On.flags&8192){if(!(Xt.flags&1048576)){if(Yp(On.symbol,Xt.enclosingDeclaration))return Xt.approximateLength+=6,Ga(On.symbol,Xt,111551);Xt.tracker.reportInaccessibleUniqueSymbolError&&Xt.tracker.reportInaccessibleUniqueSymbolError()}return Xt.approximateLength+=13,be.createTypeOperatorNode(158,be.createKeywordTypeNode(155))}if(On.flags&16384)return Xt.approximateLength+=4,be.createKeywordTypeNode(116);if(On.flags&32768)return Xt.approximateLength+=9,be.createKeywordTypeNode(157);if(On.flags&65536)return Xt.approximateLength+=4,be.createLiteralTypeNode(be.createNull());if(On.flags&131072)return Xt.approximateLength+=5,be.createKeywordTypeNode(146);if(On.flags&4096)return Xt.approximateLength+=6,be.createKeywordTypeNode(155);if(On.flags&67108864)return Xt.approximateLength+=6,be.createKeywordTypeNode(151);if(p3(On))return Xt.flags&4194304&&(!Xt.encounteredError&&!(Xt.flags&32768)&&(Xt.encounteredError=!0),(as=(bs=Xt.tracker).reportInaccessibleThisError)==null||as.call(bs)),Xt.approximateLength+=4,be.createThisTypeNode();if(!Ec&&On.aliasSymbol&&(Xt.flags&16384||wu(On.aliasSymbol,Xt.enclosingDeclaration))){const Jo=Se(On.aliasTypeArguments,Xt);return fn(On.aliasSymbol.escapedName)&&!(On.aliasSymbol.flags&32)?be.createTypeReferenceNode(be.createIdentifier(""),Jo):Nt(Jo)===1&&On.aliasSymbol===fi.symbol?be.createArrayTypeNode(Jo[0]):Ga(On.aliasSymbol,Xt,788968,Jo)}const Bc=ji(On);if(Bc&4)return ce.assert(!!(On.flags&524288)),On.node?ao(On,ja):ja(On);if(On.flags&262144||Bc&3){if(On.flags&262144&&ni(Xt.inferTypeParameters,On)){Xt.approximateLength+=mp(On.symbol).length+6;let rc;const Ll=Wi(On);if(Ll){const Sf=z0e(On,!0);Sf&&eN(Ll,Sf)||(Xt.approximateLength+=9,rc=Ll&&C(Ll,Xt))}return be.createInferTypeNode(yn(On,Xt,rc))}if(Xt.flags&4&&On.flags&262144&&!wu(On.symbol,Xt.enclosingDeclaration)){const rc=Ld(On,Xt);return Xt.approximateLength+=ec(rc).length,be.createTypeReferenceNode(be.createIdentifier(ec(rc)),void 0)}if(On.symbol)return Ga(On.symbol,Xt,788968);const Jo=(On===vE||On===oh)&&Ne&&Ne.symbol?(On===oh?"sub-":"super-")+mp(Ne.symbol):"?";return be.createTypeReferenceNode(be.createIdentifier(Jo),void 0)}if(On.flags&1048576&&On.origin&&(On=On.origin),On.flags&3145728){const Jo=On.flags&1048576?OA(On.types):On.types;if(Nt(Jo)===1)return C(Jo[0],Xt);const rc=Se(Jo,Xt,!0);if(rc&&rc.length>0)return On.flags&1048576?be.createUnionTypeNode(rc):be.createIntersectionTypeNode(rc);!Xt.encounteredError&&!(Xt.flags&262144)&&(Xt.encounteredError=!0);return}if(Bc&48)return ce.assert(!!(On.flags&524288)),No(On);if(On.flags&4194304){const Jo=On.type;Xt.approximateLength+=6;const rc=C(Jo,Xt);return be.createTypeOperatorNode(143,rc)}if(On.flags&134217728){const Jo=On.texts,rc=On.types,Ll=be.createTemplateHead(Jo[0]),Sf=be.createNodeArray(Vn(rc,(Od,hb)=>be.createTemplateLiteralTypeSpan(C(Od,Xt),(hbRf(Jo));if(On.flags&33554432)return C(On.baseType,Xt);return ce.fail("Should be unreachable.");function Rf(Jo){const rc=C(Jo.checkType,Xt);if(Xt.approximateLength+=15,Xt.flags&4&&Jo.root.isDistributive&&!(Jo.checkType.flags&262144)){const rm=Lb(Ge(262144,"T")),I0=Ld(rm,Xt),yg=be.createTypeReferenceNode(I0);Xt.approximateLength+=37;const or=NB(Jo.root.checkType,rm,Jo.mapper),Hr=Xt.inferTypeParameters;Xt.inferTypeParameters=Jo.root.inferTypeParameters;const fo=C(Nf(Jo.root.extendsType,or),Xt);Xt.inferTypeParameters=Hr;const Oa=Mu(Nf(wl(Jo.root.node.trueType),or)),Qs=Mu(Nf(wl(Jo.root.node.falseType),or));return be.createConditionalTypeNode(rc,be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(yg.typeName))),be.createConditionalTypeNode(be.createTypeReferenceNode(be.cloneNode(I0)),C(Jo.checkType,Xt),be.createConditionalTypeNode(yg,fo,Oa,Qs),be.createKeywordTypeNode(146)),be.createKeywordTypeNode(146))}const Ll=Xt.inferTypeParameters;Xt.inferTypeParameters=Jo.root.inferTypeParameters;const Sf=C(Jo.extendsType,Xt);Xt.inferTypeParameters=Ll;const Od=Mu(QP(Jo)),hb=Mu(X6(Jo));return be.createConditionalTypeNode(rc,Sf,Od,hb)}function Mu(Jo){var rc,Ll,Sf;return Jo.flags&1048576?(rc=Xt.visitedTypes)!=null&&rc.has(Gh(Jo))?(Xt.flags&131072||(Xt.encounteredError=!0,(Sf=(Ll=Xt.tracker)==null?void 0:Ll.reportCyclicStructureError)==null||Sf.call(Ll)),z(Xt)):ao(Jo,Od=>C(Od,Xt)):C(Jo,Xt)}function xc(Jo){return!!PPe(Jo)}function Dr(Jo){return!!Jo.target&&xc(Jo.target)&&!xc(Jo)}function Pi(Jo){var rc;ce.assert(!!(Jo.flags&524288));const Ll=Jo.declaration.readonlyToken?be.createToken(Jo.declaration.readonlyToken.kind):void 0,Sf=Jo.declaration.questionToken?be.createToken(Jo.declaration.questionToken.kind):void 0;let Od,hb;const rm=!O4(Jo)&&!(c0(Jo).flags&2)&&Xt.flags&4&&!(mT(Jo).flags&262144&&((rc=Wi(mT(Jo)))==null?void 0:rc.flags)&4194304);if(O4(Jo)){if(Dr(Jo)&&Xt.flags&4){const Oa=Lb(Ge(262144,"T")),Qs=Ld(Oa,Xt);hb=be.createTypeReferenceNode(Qs)}Od=be.createTypeOperatorNode(143,hb||C(c0(Jo),Xt))}else if(rm){const Oa=Lb(Ge(262144,"T")),Qs=Ld(Oa,Xt);hb=be.createTypeReferenceNode(Qs),Od=hb}else Od=C(mT(Jo),Xt);const I0=yn(L1(Jo),Xt,Od),yg=Jo.declaration.nameType?C(Vg(Jo),Xt):void 0,or=C(l5(SC(Jo),!!(jS(Jo)&4)),Xt),Hr=be.createMappedTypeNode(Ll,I0,yg,Sf,or,void 0);Xt.approximateLength+=10;const fo=Sa(Hr,1);if(Dr(Jo)&&Xt.flags&4){const Oa=Nf(Wi(wl(Jo.declaration.typeParameter.constraint.type))||co,Jo.mapper);return be.createConditionalTypeNode(C(c0(Jo),Xt),be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(hb.typeName),Oa.flags&2?void 0:C(Oa,Xt))),fo,be.createKeywordTypeNode(146))}else if(rm)return be.createConditionalTypeNode(C(mT(Jo),Xt),be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(hb.typeName),be.createTypeOperatorNode(143,C(c0(Jo),Xt)))),fo,be.createKeywordTypeNode(146));return fo}function No(Jo){var rc,Ll;const Sf=Jo.id,Od=Jo.symbol;if(Od){const rm=WP(Jo)?788968:111551;if(JI(Od.valueDeclaration))return Ga(Od,Xt,rm);if(Od.flags&32&&!kI(Od)&&!(Od.valueDeclaration&&Jl(Od.valueDeclaration)&&Xt.flags&2048&&(!Kc(Od.valueDeclaration)||br(Od,Xt.enclosingDeclaration,rm,!1).accessibility!==0))||Od.flags&896||hb())return Ga(Od,Xt,rm);if((rc=Xt.visitedTypes)!=null&&rc.has(Sf)){const I0=yC(Jo);return I0?Ga(I0,Xt,788968):z(Xt)}else return ao(Jo,Bo)}else{if(!!(ji(Jo)&8388608)){const I0=Jo;if(uE(I0.node)){const yg=Lp(Xt,I0.node);if(yg)return yg}return(Ll=Xt.visitedTypes)!=null&&Ll.has(Sf)?z(Xt):ao(Jo,Bo)}return Bo(Jo)}function hb(){var rm;const I0=!!(Od.flags&8192)&>(Od.declarations,or=>e_(or)),yg=!!(Od.flags&16)&&(Od.parent||Ot(Od.declarations,or=>or.parent.kind===312||or.parent.kind===268));if(I0||yg)return(!!(Xt.flags&4096)||((rm=Xt.visitedTypes)==null?void 0:rm.has(Sf)))&&(!(Xt.flags&8)||Yp(Od,Xt.enclosingDeclaration))}}function ao(Jo,rc){var Ll,Sf;const Od=Jo.id,hb=ji(Jo)&16&&Jo.symbol&&Jo.symbol.flags&32,rm=ji(Jo)&4&&Jo.node?"N"+Im(Jo.node):Jo.flags&16777216?"N"+Im(Jo.root.node):Jo.symbol?(hb?"+":"")+Bp(Jo.symbol):void 0;Xt.visitedTypes||(Xt.visitedTypes=new Set),rm&&!Xt.symbolDepth&&(Xt.symbolDepth=new Map);const I0=Xt.enclosingDeclaration&&ge(Xt.enclosingDeclaration),yg=`${Gh(Jo)}|${Xt.flags}`;I0&&(I0.serializedTypes||(I0.serializedTypes=new Map));const or=(Ll=I0==null?void 0:I0.serializedTypes)==null?void 0:Ll.get(yg);if(or)return or.truncating&&(Xt.truncating=!0),Xt.approximateLength+=or.addedLength,Ko(or.node);let Hr;if(rm){if(Hr=Xt.symbolDepth.get(rm)||0,Hr>10)return z(Xt);Xt.symbolDepth.set(rm,Hr+1)}Xt.visitedTypes.add(Od);const fo=Xt.approximateLength,Oa=rc(Jo),Qs=Xt.approximateLength-fo;return!Xt.reportedDiagnostic&&!Xt.encounteredError&&((Sf=I0==null?void 0:I0.serializedTypes)==null||Sf.set(yg,{node:Oa,truncating:Xt.truncating,addedLength:Qs})),Xt.visitedTypes.delete(Od),rm&&Xt.symbolDepth.set(rm,Hr),Oa;function Ko(ll){return!rh(ll)&&Il(ll)===ll?ll:vr(be.cloneNode(ia(ll,Ko,I6,ss)),ll)}function ss(ll,of,C_,nd,kd){return ll&&ll.length===0?vr(be.createNodeArray(void 0,ll.hasTrailingComma),ll):Fa(ll,of,C_,nd,kd)}}function Bo(Jo){if(Ty(Jo)||Jo.containsError)return Pi(Jo);const rc=K0(Jo);if(!rc.properties.length&&!rc.indexInfos.length){if(!rc.callSignatures.length&&!rc.constructSignatures.length)return Xt.approximateLength+=2,Sa(be.createTypeLiteralNode(void 0),1);if(rc.callSignatures.length===1&&!rc.constructSignatures.length){const rm=rc.callSignatures[0];return Pt(rm,184,Xt)}if(rc.constructSignatures.length===1&&!rc.callSignatures.length){const rm=rc.constructSignatures[0];return Pt(rm,185,Xt)}}const Ll=gi(rc.constructSignatures,rm=>!!(rm.flags&4));if(gt(Ll)){const rm=Vn(Ll,WI);return rc.callSignatures.length+(rc.constructSignatures.length-Ll.length)+rc.indexInfos.length+(Xt.flags&2048?dp(rc.properties,yg=>!(yg.flags&4194304)):Nt(rc.properties))&&rm.push(Oo(rc)),C(Dd(rm),Xt)}const Sf=Xt.flags;Xt.flags|=4194304;const Od=td(rc);Xt.flags=Sf;const hb=be.createTypeLiteralNode(Od);return Xt.approximateLength+=2,Sa(hb,Xt.flags&1024?0:1),hb}function ja(Jo){let rc=Tm(Jo);if(Jo.target===fi||Jo.target===ya){if(Xt.flags&2){const Od=C(rc[0],Xt);return be.createTypeReferenceNode(Jo.target===fi?"Array":"ReadonlyArray",[Od])}const Ll=C(rc[0],Xt),Sf=be.createArrayTypeNode(Ll);return Jo.target===fi?Sf:be.createTypeOperatorNode(148,Sf)}else if(Jo.target.objectFlags&8){if(rc=Ol(rc,(Ll,Sf)=>l5(Ll,!!(Jo.target.elementFlags[Sf]&2))),rc.length>0){const Ll=Fo(Jo),Sf=Se(rc.slice(0,Ll),Xt);if(Sf){const{labeledElementDeclarations:Od}=Jo.target;for(let rm=0;rm0){const yg=(Jo.target.typeParameters||Zn).length;hb=Se(rc.slice(Sf,yg),Xt)}const rm=Xt.flags;Xt.flags|=16;const I0=Ga(Jo.symbol,Xt,788968,hb);return Xt.flags=rm,Od?rf(Od,I0):I0}}}function rf(Jo,rc){if(Wx(Jo)){let Ll=Jo.typeArguments,Sf=Jo.qualifier;Sf&&(An(Sf)?Ll!==H7(Sf)&&(Sf=qN(be.cloneNode(Sf),Ll)):Ll!==H7(Sf.right)&&(Sf=be.updateQualifiedName(Sf,Sf.left,qN(be.cloneNode(Sf.right),Ll)))),Ll=rc.typeArguments;const Od=zl(rc);for(const hb of Od)Sf=Sf?be.createQualifiedName(Sf,hb):hb;return be.updateImportTypeNode(Jo,Jo.argument,Jo.assertions,Sf,Ll,Jo.isTypeOf)}else{let Ll=Jo.typeArguments,Sf=Jo.typeName;An(Sf)?Ll!==H7(Sf)&&(Sf=qN(be.cloneNode(Sf),Ll)):Ll!==H7(Sf.right)&&(Sf=be.updateQualifiedName(Sf,Sf.left,qN(be.cloneNode(Sf.right),Ll))),Ll=rc.typeArguments;const Od=zl(rc);for(const hb of Od)Sf=be.createQualifiedName(Sf,hb);return be.updateTypeReferenceNode(Jo,Sf,Ll)}}function zl(Jo){let rc=Jo.typeName;const Ll=[];for(;!An(rc);)Ll.unshift(rc.right),rc=rc.left;return Ll.unshift(rc),Ll}function td(Jo){if(b(Xt))return[be.createPropertySignature(void 0,"...",void 0,void 0)];const rc=[];for(const Od of Jo.callSignatures)rc.push(Pt(Od,179,Xt));for(const Od of Jo.constructSignatures)Od.flags&4||rc.push(Pt(Od,180,Xt));for(const Od of Jo.indexInfos)rc.push(vt(Od,Xt,Jo.objectFlags&1024?z(Xt):void 0));const Ll=Jo.properties;if(!Ll)return rc;let Sf=0;for(const Od of Ll){if(Sf++,Xt.flags&2048){if(Od.flags&4194304)continue;Vy(Od)&24&&Xt.tracker.reportPrivateInBaseOfClassExpression&&Xt.tracker.reportPrivateInBaseOfClassExpression(lf(Od.escapedName))}if(b(Xt)&&Sf+2!(ja.flags&32768)),0);for(const ja of Bo){const rf=Pt(ja,173,Xt,{name:Mu,questionToken:xc});bs.push(ao(rf))}if(Bo.length||!xc)return}let Dr;Z(On,Xt)?Dr=z(Xt):(Ec&&(Xt.reverseMappedStack||(Xt.reverseMappedStack=[]),Xt.reverseMappedStack.push(On)),Dr=Bc?Jf(Xt,Bc,On,Rf):be.createKeywordTypeNode(133),Ec&&Xt.reverseMappedStack.pop());const Pi=KI(On)?[be.createToken(148)]:void 0;Pi&&(Xt.approximateLength+=9);const No=be.createPropertySignature(Pi,Mu,xc,Dr);bs.push(ao(No));function ao(Bo){var ja;if(gt(On.declarations,rf=>rf.kind===355)){const rf=(ja=On.declarations)==null?void 0:ja.find(td=>td.kind===355),zl=jz(rf.comment);zl&&MS(Bo,[{kind:3,text:`* +`||ko[0]==="\r");)ko.shift()}function UP(ko){for(;ko.length;){const ac=hU(ko[ko.length-1]);if(ac==="")ko.pop();else if(ac.lengthGp&&(Ni.push(R1.slice(Gp-ko)),b_=2),ko+=R1.length;break;case 19:b_=2;const JP=r.getTokenFullStart(),RI=r.getTokenEnd()-1,Uy=R2(RI);Uy?(Nl.push(po(O.createJSDocText(Ni.join("")),Xd??Ys,JP)),Nl.push(Uy),Ni=[],Xd=r.getTokenEnd()):w1(r.getTokenText());break;case 62:b_===3?b_=2:b_=3,w1(r.getTokenText());break;case 82:b_!==3&&(b_=2),w1(r.getTokenValue());break;case 42:if(b_===0){b_=1,ko+=1;break}default:b_!==3&&(b_=2),w1(r.getTokenText());break}b_===2||b_===3?zS=Ji(b_===3):zS=mi()}VP(Ni);const SE=hU(Ni.join(""));if(Nl.length)return SE.length&&Nl.push(po(O.createJSDocText(SE),Xd??Ys)),nm(Nl,Ys,r.getTokenEnd());if(SE.length)return SE}function R2(ko){const ac=mu(U);if(!ac)return;mi(),Bm();const Ys=$e();let Ni=Cf(xe())?E0(!0):void 0;if(Ni)for(;xe()===81;)vs(),mi(),Ni=po(O.createJSDocMemberName(Ni,oh()),Ys);const Nl=[];for(;xe()!==20&&xe()!==4&&xe()!==1;)Nl.push(r.getTokenText()),mi();const Xd=ac==="link"?O.createJSDocLink:ac==="linkcode"?O.createJSDocLinkCode:O.createJSDocLinkPlain;return po(Xd(Ni,Nl.join("")),ko,r.getTokenEnd())}function U(){if(Hv(),xe()===19&&mi()===60&&Cf(mi())){const ko=r.getTokenValue();if(le(ko))return ko}}function le(ko){return ko==="link"||ko==="linkcode"||ko==="linkplain"}function Ae(ko,ac,Ys,Ni){return po(O.createJSDocUnknownTag(ac,A0(ko,$e(),Ys,Ni)),ko)}function rt(ko){ko&&(yh?yh.push(ko):(yh=[ko],fm=ko.pos),mx=ko.end)}function Dn(){return Hv(),xe()===19?zn():void 0}function Ci(){const ko=rs(23);ko&&Bm();const ac=rs(62),Ys=Ob();return ac&&uS(62),ko&&(Bm(),Yu(64)&&Pr(),Ma(24)),{name:Ys,isBracketed:ko}}function gs(ko){switch(ko.kind){case 151:return!0;case 188:return gs(ko.elementType);default:return x2(ko)&&An(ko.typeName)&&ko.typeName.escapedText==="Object"&&!ko.typeArguments}}function Tu(ko,ac,Ys,Ni){let Nl=Dn(),Xd=!Nl;Hv();const{name:b_,isBracketed:Gp}=Ci(),w1=Hv();Xd&&!Ha(U)&&(Nl=Dn());const zS=A0(ko,$e(),Ni,w1),SE=tg(Nl,b_,Ys,Ni);SE&&(Nl=SE,Xd=!0);const R1=Ys===1?O.createJSDocPropertyTag(ac,b_,Gp,Nl,Xd,zS):O.createJSDocParameterTag(ac,b_,Gp,Nl,Xd,zS);return po(R1,ko)}function tg(ko,ac,Ys,Ni){if(ko&&gs(ko.type)){const Nl=$e();let Xd,b_;for(;Xd=mu(()=>UT(Ys,Ni,ac));)Xd.kind===348||Xd.kind===355?b_=ur(b_,Xd):Xd.kind===352&&Re(Xd.tagName,w.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(b_){const Gp=po(O.createJSDocTypeLiteral(b_,ko.type.kind===188),Nl);return po(O.createJSDocTypeExpression(Gp),Nl)}}}function mS(ko,ac,Ys,Ni){gt(yh,aF)&&We(ac.pos,r.getTokenStart(),w._0_tag_already_specified,lf(ac.escapedText));const Nl=Dn();return po(O.createJSDocReturnTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function gg(ko,ac,Ys,Ni){gt(yh,HY)&&We(ac.pos,r.getTokenStart(),w._0_tag_already_specified,lf(ac.escapedText));const Nl=zn(!0),Xd=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocTypeTag(ac,Nl,Xd),ko)}function Nh(ko,ac,Ys,Ni){const Xd=xe()===23||Ha(()=>mi()===60&&Cf(mi())&&le(r.getTokenValue()))?void 0:zr(),b_=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocSeeTag(ac,Xd,b_),ko)}function r2(ko,ac,Ys,Ni){const Nl=Dn(),Xd=A0(ko,$e(),Ys,Ni);return po(O.createJSDocThrowsTag(ac,Nl,Xd),ko)}function II(ko,ac,Ys,Ni){const Nl=$e(),Xd=Mk();let b_=r.getTokenFullStart();const Gp=A0(ko,b_,Ys,Ni);Gp||(b_=r.getTokenFullStart());const w1=typeof Gp!="string"?nm(Hi([po(Xd,Nl,b_)],Gp),Nl):Xd.text+Gp;return po(O.createJSDocAuthorTag(ac,w1),ko)}function Mk(){const ko=[];let ac=!1,Ys=r.getToken();for(;Ys!==1&&Ys!==4;){if(Ys===30)ac=!0;else{if(Ys===60&&!ac)break;if(Ys===32&&ac){ko.push(r.getTokenText()),r.resetTokenState(r.getTokenEnd());break}}ko.push(r.getTokenText()),Ys=mi()}return O.createJSDocText(ko.join(""))}function M2(ko,ac,Ys,Ni){const Nl=JR();return po(O.createJSDocImplementsTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function HR(ko,ac,Ys,Ni){const Nl=JR();return po(O.createJSDocAugmentsTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function kI(ko,ac,Ys,Ni){const Nl=zn(!1),Xd=Ys!==void 0&&Ni!==void 0?A0(ko,$e(),Ys,Ni):void 0;return po(O.createJSDocSatisfiesTag(ac,Nl,Xd),ko)}function JR(){const ko=m_(19),ac=$e(),Ys=PI();r.setInJSDocType(!0);const Ni=ft();r.setInJSDocType(!1);const Nl=O.createExpressionWithTypeArguments(Ys,Ni),Xd=po(Nl,ac);return ko&&Ma(20),Xd}function PI(){const ko=$e();let ac=gf();for(;m_(25);){const Ys=gf();ac=po(pt(ac,Ys),ko)}return ac}function HP(ko,ac,Ys,Ni,Nl){return po(ac(Ys,A0(ko,$e(),Ni,Nl)),ko)}function mD(ko,ac,Ys,Ni){const Nl=zn(!0);return Bm(),po(O.createJSDocThisTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function NI(ko,ac,Ys,Ni){const Nl=zn(!0);return Bm(),po(O.createJSDocEnumTag(ac,Nl,A0(ko,$e(),Ys,Ni)),ko)}function sw(ko,ac,Ys,Ni){let Nl=Dn();Hv();const Xd=cw();Bm();let b_=w2(Ys),Gp;if(!Nl||gs(Nl.type)){let zS,SE,R1,JP=!1;for(;(zS=mu(()=>gD(Ys)))&&zS.kind!==352;)if(JP=!0,zS.kind===351)if(SE){const RI=Ui(w.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);RI&&ml(RI,s6(un,0,0,w.The_tag_was_first_specified_here));break}else SE=zS;else R1=ur(R1,zS);if(JP){const RI=Nl&&Nl.type.kind===188,Uy=O.createJSDocTypeLiteral(R1,RI);Nl=SE&&SE.typeExpression&&!gs(SE.typeExpression.type)?SE.typeExpression:po(Uy,ko),Gp=Nl.end}}Gp=Gp||b_!==void 0?$e():(Xd??Nl??ac).end,b_||(b_=A0(ko,Gp,Ys,Ni));const w1=O.createJSDocTypedefTag(ac,Nl,Xd,b_);return po(w1,ko,Gp)}function cw(ko){const ac=r.getTokenStart();if(!Cf(xe()))return;const Ys=gf();if(m_(25)){const Ni=cw(!0),Nl=O.createModuleDeclaration(void 0,Ys,Ni,ko?8:void 0);return po(Nl,ac)}return ko&&(Ys.flags|=4096),Ys}function aO(ko){const ac=$e();let Ys,Ni;for(;Ys=mu(()=>UT(4,ko));){if(Ys.kind===352){Re(Ys.tagName,w.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ni=ur(Ni,Ys)}return nm(Ni||[],ac)}function yB(ko,ac){const Ys=aO(ac),Ni=mu(()=>{if(rs(60)){const Nl=TE(ac);if(Nl&&Nl.kind===349)return Nl}});return po(O.createJSDocSignature(void 0,Ys,Ni),ko)}function z6(ko,ac,Ys,Ni){const Nl=cw();Bm();let Xd=w2(Ys);const b_=yB(ko,Ys);Xd||(Xd=A0(ko,$e(),Ys,Ni));const Gp=Xd!==void 0?$e():b_.end;return po(O.createJSDocCallbackTag(ac,b_,Nl,Xd),ko,Gp)}function Vo(ko,ac,Ys,Ni){Bm();let Nl=w2(Ys);const Xd=yB(ko,Ys);Nl||(Nl=A0(ko,$e(),Ys,Ni));const b_=Nl!==void 0?$e():Xd.end;return po(O.createJSDocOverloadTag(ac,Xd,Nl),ko,b_)}function WA(ko,ac){for(;!An(ko)||!An(ac);)if(!An(ko)&&!An(ac)&&ko.right.escapedText===ac.right.escapedText)ko=ko.left,ac=ac.left;else return!1;return ko.escapedText===ac.escapedText}function gD(ko){return UT(1,ko)}function UT(ko,ac,Ys){let Ni=!0,Nl=!1;for(;;)switch(mi()){case 60:if(Ni){const Xd=wI(ko,ac);return Xd&&(Xd.kind===348||Xd.kind===355)&&Ys&&(An(Xd.name)||!WA(Ys,Xd.name.left))?!1:Xd}Nl=!1;break;case 4:Ni=!0,Nl=!1;break;case 42:Nl&&(Ni=!1),Nl=!0;break;case 80:Ni=!1;break;case 1:return!1}}function wI(ko,ac){ce.assert(xe()===60);const Ys=r.getTokenFullStart();mi();const Ni=gf(),Nl=Hv();let Xd;switch(Ni.escapedText){case"type":return ko===1&&gg(Ys,Ni);case"prop":case"property":Xd=1;break;case"arg":case"argument":case"param":Xd=6;break;case"template":return G6(Ys,Ni,ac,Nl);default:return!1}return ko&Xd?Tu(Ys,Ni,ko,ac):!1}function k4(){const ko=$e(),ac=rs(23);ac&&Bm();const Ys=gf(w.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Ni;if(ac&&(Bm(),Ma(64),Ni=vc(16777216,E),Ma(24)),!Um(Ys))return po(O.createTypeParameterDeclaration(void 0,Ys,void 0,Ni),ko)}function P4(){const ko=$e(),ac=[];do{Bm();const Ys=k4();Ys!==void 0&&ac.push(Ys),Hv()}while(rs(28));return nm(ac,ko)}function G6(ko,ac,Ys,Ni){const Nl=xe()===19?zn():void 0,Xd=P4();return po(O.createJSDocTemplateTag(ac,Nl,Xd,A0(ko,$e(),Ys,Ni)),ko)}function rs(ko){return xe()===ko?(mi(),!0):!1}function Ob(){let ko=gf();for(m_(23)&&Ma(24);m_(25);){const ac=gf();m_(23)&&Ma(24),ko=P2(ko,ac)}return ko}function gf(ko){if(!Cf(xe()))return gy(80,!ko,ko||w.Identifier_expected);so++;const ac=r.getTokenStart(),Ys=r.getTokenEnd(),Ni=xe(),Nl=fS(r.getTokenValue()),Xd=po(de(Nl,Ni),ac,Ys);return mi(),Xd}}})(Q_=t.JSDocParser||(t.JSDocParser={}))})(r4||(r4={})),(t=>{function r(te,oe,de,ue){if(ue=ue||ce.shouldAssert(2),O(te,oe,de,ue),wTe(de))return te;if(te.statements.length===0)return r4.parseSourceFile(te.fileName,oe,te.languageVersion,void 0,!0,te.scriptKind,te.setExternalModuleIndicator);const Ne=te;ce.assert(!Ne.hasBeenIncrementallyParsed),Ne.hasBeenIncrementallyParsed=!0,r4.fixupParentReferences(Ne);const Be=te.text,Ve=V(te),pt=I(te,de);O(te,oe,pt,ue),ce.assert(pt.span.start<=de.span.start),ce.assert(K1(pt.span)===K1(de.span)),ce.assert(K1(DT(pt))===K1(DT(de)));const Le=DT(pt).length-pt.span.length;D(Ne,pt.span.start,K1(pt.span),K1(DT(pt)),Le,Be,oe,ue);const ht=r4.parseSourceFile(te.fileName,oe,te.languageVersion,Ve,!0,te.scriptKind,te.setExternalModuleIndicator);return ht.commentDirectives=s(te.commentDirectives,ht.commentDirectives,pt.span.start,K1(pt.span),Le,Be,oe,ue),ht.impliedNodeFormat=te.impliedNodeFormat,ht}t.updateSourceFile=r;function s(te,oe,de,ue,Ne,Be,Ve,pt){if(!te)return oe;let Le,ht=!1;for(const _t of te){const{range:Dt,type:Ft}=_t;if(Dt.endue){ke();const it={range:{pos:Dt.pos+Ne,end:Dt.end+Ne},type:Ft};Le=ur(Le,it),pt&&ce.assert(Be.substring(Dt.pos,Dt.end)===Ve.substring(it.range.pos,it.range.end))}}return ke(),Le;function ke(){ht||(ht=!0,Le?oe&&Le.push(...oe):Le=oe)}}function l(te,oe,de,ue,Ne,Be){oe?pt(te):Ve(te);return;function Ve(Le){let ht="";if(Be&&m(Le)&&(ht=ue.substring(Le.pos,Le.end)),Le._children&&(Le._children=void 0),T1(Le,Le.pos+de,Le.end+de),Be&&m(Le)&&ce.assert(ht===Ne.substring(Le.pos,Le.end)),B_(Le,Ve,pt),g1(Le))for(const ke of Le.jsDoc)Ve(ke);T(Le,Be)}function pt(Le){Le._children=void 0,T1(Le,Le.pos+de,Le.end+de);for(const ht of Le)Ve(ht)}}function m(te){switch(te.kind){case 11:case 9:case 80:return!0}return!1}function y(te,oe,de,ue,Ne){ce.assert(te.end>=oe,"Adjusting an element that was entirely before the change range"),ce.assert(te.pos<=de,"Adjusting an element that was entirely after the change range"),ce.assert(te.pos<=te.end);const Be=Math.min(te.pos,ue),Ve=te.end>=de?te.end+Ne:Math.min(te.end,ue);ce.assert(Be<=Ve),te.parent&&(ce.assertGreaterThanOrEqual(Be,te.parent.pos),ce.assertLessThanOrEqual(Ve,te.parent.end)),T1(te,Be,Ve)}function T(te,oe){if(oe){let de=te.pos;const ue=Ne=>{ce.assert(Ne.pos>=de),de=Ne.end};if(g1(te))for(const Ne of te.jsDoc)ue(Ne);B_(te,ue),ce.assert(de<=te.end)}}function D(te,oe,de,ue,Ne,Be,Ve,pt){Le(te);return;function Le(ke){if(ce.assert(ke.pos<=ke.end),ke.pos>de){l(ke,!1,Ne,Be,Ve,pt);return}const _t=ke.end;if(_t>=oe){if(ke.intersectsChange=!0,ke._children=void 0,y(ke,oe,de,ue,Ne),B_(ke,Le,ht),g1(ke))for(const Dt of ke.jsDoc)Le(Dt);T(ke,pt);return}ce.assert(_tde){l(ke,!0,Ne,Be,Ve,pt);return}const _t=ke.end;if(_t>=oe){ke.intersectsChange=!0,ke._children=void 0,y(ke,oe,de,ue,Ne);for(const Dt of ke)Le(Dt);return}ce.assert(_t0&&Ve<=1;Ve++){const pt=W(te,ue);ce.assert(pt.pos<=ue);const Le=pt.pos;ue=Math.max(0,Le-1)}const Ne=R0(ue,K1(oe.span)),Be=oe.newLength+(oe.span.start-ue);return BX(Ne,Be)}function W(te,oe){let de=te,ue;if(B_(te,Be),ue){const Ve=Ne(ue);Ve.pos>de.pos&&(de=Ve)}return de;function Ne(Ve){for(;;){const pt=Kie(Ve);if(pt)Ve=pt;else return Ve}}function Be(Ve){if(!Um(Ve))if(Ve.pos<=oe){if(Ve.pos>=de.pos&&(de=Ve),oeoe),!0}}function O(te,oe,de,ue){const Ne=te.text;if(de&&(ce.assert(Ne.length-de.span.length+de.newLength===oe.length),ue||ce.shouldAssert(3))){const Be=Ne.substr(0,de.span.start),Ve=oe.substr(0,de.span.start);ce.assert(Be===Ve);const pt=Ne.substring(K1(de.span),Ne.length),Le=oe.substring(K1(DT(de)),oe.length);ce.assert(pt===Le)}}function V(te){let oe=te.statements,de=0;ce.assert(de=ht.pos&&Ve=ht.pos&&Ve{te[te.Value=-1]="Value"})(ee||(ee={}))})(Dpe||(Dpe={})),tQ=new Map,Ck=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Y6e=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function nQ(t){const r=new Map,s=new Map;return Ot(t,l=>{r.set(l.name.toLowerCase(),l),l.shortName&&s.set(l.shortName,l.name)}),{optionsNameMap:r,shortOptionNames:s}}function DW(){return jpe||(jpe=nQ(fC))}function Q6e(t){return Z6e(t,W_)}function Z6e(t,r){const s=oc(t.type.keys()),l=(t.deprecatedKeys?s.filter(m=>!t.deprecatedKeys.has(m)):s).map(m=>`'${m}'`).join(", ");return r(w.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,l)}function ZEe(t,r,s){return _2e(t,GD(r||""),s)}function Joe(t,r="",s){if(r=GD(r),xf(r,"-"))return;if(t.type==="listOrElement"&&!Ub(r,","))return qG(t,r,s);if(r==="")return[];const l=r.split(",");switch(t.element.type){case"number":return Qo(l,m=>qG(t.element,parseInt(m),s));case"string":return Qo(l,m=>qG(t.element,m||"",s));case"boolean":case"object":return ce.fail(`List of ${t.element.type} is not yet supported.`);default:return Qo(l,m=>ZEe(t.element,m,s))}}function HG(t){return t.name}function Ipe(t,r,s,l,m){var y;if((y=r.alternateMode)!=null&&y.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return i4(m,l,r.alternateMode.diagnostic,t);const T=fh(t,r.optionDeclarations,HG);return T?i4(m,l,r.unknownDidYouMeanDiagnostic,s||t,T.name):i4(m,l,r.unknownOptionDiagnostic,s||t)}function e2e(t,r,s){const l={};let m;const y=[],T=[];return D(r),{options:l,watchOptions:m,fileNames:y,errors:T};function D(W){let O=0;for(;Om0.readFile(te)));if(!As(O)){T.push(O);return}const V=[];let ee=0;for(;;){for(;ee=O.length)break;const te=ee;if(O.charCodeAt(te)===34){for(ee++;ee32;)ee++;V.push(O.substring(te,ee))}}D(V)}}function $oe(t,r,s,l,m,y){if(l.isTSConfigOnly){const T=t[r];T==="null"?(m[l.name]=void 0,r++):l.type==="boolean"?T==="false"?(m[l.name]=qG(l,!1,y),r++):(T==="true"&&r++,y.push(W_(w.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,l.name))):(y.push(W_(w.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,l.name)),T&&!xf(T,"-")&&r++)}else if(!t[r]&&l.type!=="boolean"&&y.push(W_(s.optionTypeMismatchDiagnostic,l.name,wpe(l))),t[r]!=="null")switch(l.type){case"number":m[l.name]=qG(l,parseInt(t[r]),y),r++;break;case"boolean":const T=t[r];m[l.name]=qG(l,T!=="false",y),(T==="false"||T==="true")&&r++;break;case"string":m[l.name]=qG(l,t[r]||"",y),r++;break;case"list":const D=Joe(l,t[r],y);m[l.name]=D||[],D&&r++;break;case"listOrElement":ce.fail("listOrElement not supported here");break;default:m[l.name]=ZEe(l,t[r],y),r++;break}else m[l.name]=void 0,r++;return r}function eLe(t,r){return e2e(XG,t,r)}function t2e(t,r){return kpe(DW,t,r)}function kpe(t,r,s=!1){r=r.toLowerCase();const{optionsNameMap:l,shortOptionNames:m}=t();if(s){const y=m.get(r);y!==void 0&&(r=y)}return l.get(r)}function Ppe(){return fQ||(fQ=nQ(s$))}function PUe(t){const{options:r,watchOptions:s,fileNames:l,errors:m}=e2e(gLe,t),y=r;return l.length===0&&l.push("."),y.clean&&y.force&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","force")),y.clean&&y.verbose&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","verbose")),y.clean&&y.watch&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"clean","watch")),y.watch&&y.dry&&m.push(W_(w.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:y,watchOptions:s,projects:l,errors:m}}function NUe(t,...r){return W_.apply(void 0,arguments).messageText}function QJ(t,r,s,l,m,y){const T=qoe(t,W=>s.readFile(W));if(!As(T)){s.onUnRecoverableConfigFileDiagnostic(T);return}const D=cF(t,T),I=s.getCurrentDirectory();return D.path=_h(t,I,_v(s.useCaseSensitiveFileNames)),D.resolvedPath=D.path,D.originalFileName=D.fileName,Qoe(D,s,Su(qc(t),I),r,Su(t,I),void 0,y,l,m)}function rQ(t,r){const s=qoe(t,r);return As(s)?n2e(t,s):{config:{},error:s}}function n2e(t,r){const s=cF(t,r);return{config:nLe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function tLe(t,r){const s=qoe(t,r);return As(s)?cF(t,s):{fileName:t,parseDiagnostics:[s]}}function qoe(t,r){let s;try{s=r(t)}catch(l){return W_(w.Cannot_read_file_0_Colon_1,t,l.message)}return s===void 0?W_(w.Cannot_read_file_0,t):s}function JG(t){return QT(t,HG)}function iQ(){return dQ||(dQ=nQ(sQ))}function Npe(){return hLe||(hLe=JG(fC))}function r2e(){return yLe||(yLe=JG(sQ))}function ZJ(){return d2e||(d2e=JG(c$))}function i2e(){return g2e===void 0&&(g2e={name:void 0,type:"object",elementOptions:JG([mQ,p2e,m2e,pQ,{name:"references",type:"list",element:{name:"references",type:"object"},category:w.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:w.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:w.File_Management,defaultValueDescription:w.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:w.File_Management,defaultValueDescription:w.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},zpe])}),g2e}function nLe(t,r,s){var l;const m=(l=t.statements[0])==null?void 0:l.expression;if(m&&m.kind!==210){if(r.push(M0(t,m,w.The_root_value_of_a_0_file_must_be_an_object,Iy(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ch(m)){const y=lr(m.elements,Wd);if(y)return Koe(t,y,r,!0,s)}return{}}return Koe(t,m,r,!0,s)}function rLe(t,r){var s;return Koe(t,(s=t.statements[0])==null?void 0:s.expression,r,!0,void 0)}function Koe(t,r,s,l,m){if(!r)return l?{}:void 0;return D(r,m==null?void 0:m.rootOptions);function y(W,O){var V;const ee=l?{}:void 0;for(const te of W.properties){if(te.kind!==303){s.push(M0(t,te,w.Property_assignment_expected));continue}te.questionToken&&s.push(M0(t,te.questionToken,w.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),I(te.name)||s.push(M0(t,te.name,w.String_literal_with_double_quotes_expected));const oe=b9(te.name)?void 0:g7(te.name),de=oe&&lf(oe),ue=de?(V=O==null?void 0:O.elementOptions)==null?void 0:V.get(de):void 0,Ne=D(te.initializer,ue);typeof de<"u"&&(l&&(ee[de]=Ne),m==null||m.onPropertySet(de,Ne,te,O,ue))}return ee}function T(W,O){if(!l){W.forEach(V=>D(V,O));return}return gi(W.map(V=>D(V,O)),V=>V!==void 0)}function D(W,O){switch(W.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return I(W)||s.push(M0(t,W,w.String_literal_with_double_quotes_expected)),W.text;case 9:return Number(W.text);case 224:if(W.operator!==41||W.operand.kind!==9)break;return-Number(W.operand.text);case 210:return y(W,O);case 209:return T(W.elements,O&&O.element)}O?s.push(M0(t,W,w.Compiler_option_0_requires_a_value_of_type_1,O.name,wpe(O))):s.push(M0(t,W,w.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function I(W){return Wp(W)&&Aie(W,t)}}function wpe(t){return t.type==="listOrElement"?`${wpe(t.element)} or Array`:t.type==="list"?"Array":As(t.type)?t.type:"string"}function wUe(t,r){if(t){if($G(r))return!t.disallowNullOrUndefined;if(t.type==="list")return ls(r);if(t.type==="listOrElement")return ls(r)||wUe(t.element,r);const s=As(t.type)?t.type:"string";return typeof r===s}return!1}function RUe(t,r,s){var l,m,y;const T=_v(s.useCaseSensitiveFileNames),D=Vn(gi(t.fileNames,(m=(l=t.options.configFile)==null?void 0:l.configFileSpecs)!=null&&m.validatedIncludeSpecs?o2e(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):xT),V=>wX(Su(r,s.getCurrentDirectory()),Su(V,s.getCurrentDirectory()),T)),I=Yoe(t.options,{configFilePath:Su(r,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),W=t.watchOptions&&Dst(t.watchOptions);return{compilerOptions:{...Rpe(I),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:W&&Rpe(W),references:Vn(t.projectReferences,V=>({...V,path:V.originalPath?V.originalPath:"",originalPath:void 0})),files:Nt(D)?D:void 0,...(y=t.options.configFile)!=null&&y.configFileSpecs?{include:Xoe(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function Rpe(t){return{...oc(t.entries()).reduce((r,s)=>({...r,[s[0]]:s[1]}),{})}}function Xoe(t){if(Nt(t)){if(Nt(t)!==1)return t;if(t[0]!==YG)return t}}function o2e(t,r,s,l){if(!r)return xT;const m=Y9(t,s,r,l.useCaseSensitiveFileNames,l.getCurrentDirectory()),y=m.excludePattern&&Y2(m.excludePattern,l.useCaseSensitiveFileNames),T=m.includeFilePattern&&Y2(m.includeFilePattern,l.useCaseSensitiveFileNames);return T?y?D=>!(T.test(D)&&!y.test(D)):D=>!T.test(D):y?D=>y.test(D):xT}function iLe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return iLe(t.element);default:return t.type}}function a2e(t,r){return wT(r,(s,l)=>{if(s===t)return l})}function Yoe(t,r){return MUe(t,DW(),r)}function Dst(t){return MUe(t,iQ())}function MUe(t,{optionsNameMap:r},s){const l=new Map,m=s&&_v(s.useCaseSensitiveFileNames);for(const y in t)if(ef(t,y)){if(r.has(y)&&(r.get(y).category===w.Command_line_Options||r.get(y).category===w.Output_Formatting))continue;const T=t[y],D=r.get(y.toLowerCase());if(D){ce.assert(D.type!=="listOrElement");const I=iLe(D);I?D.type==="list"?l.set(y,T.map(W=>a2e(W,I))):l.set(y,a2e(T,I)):s&&D.isFilePath?l.set(y,wX(s.configFilePath,Su(T,qc(s.configFilePath)),m)):l.set(y,T)}}return l}function LUe(t,r){const s=Mpe(t);return m();function l(y){return Array(y+1).join(" ")}function m(){const y=[],T=l(2);return i$.forEach(D=>{if(!s.has(D.name))return;const I=s.get(D.name),W=dLe(D);I!==W?y.push(`${T}${D.name}: ${I}`):ef(uQ,D.name)&&y.push(`${T}${D.name}: ${W}`)}),y.join(r)+r}}function Mpe(t){const r=dN(t,uQ);return Yoe(r)}function s2e(t,r,s){const l=Mpe(t);return T();function m(D){return Array(D+1).join(" ")}function y({category:D,name:I,isCommandLineOnly:W}){const O=[w.Command_line_Options,w.Editor_Support,w.Compiler_Diagnostics,w.Backwards_Compatibility,w.Watch_and_Build_Modes,w.Output_Formatting];return!W&&D!==void 0&&(!O.includes(D)||l.has(I))}function T(){const D=new Map;D.set(w.Projects,[]),D.set(w.Language_and_Environment,[]),D.set(w.Modules,[]),D.set(w.JavaScript_Support,[]),D.set(w.Emit,[]),D.set(w.Interop_Constraints,[]),D.set(w.Type_Checking,[]),D.set(w.Completeness,[]);for(const te of fC)if(y(te)){let oe=D.get(te.category);oe||D.set(te.category,oe=[]),oe.push(te)}let I=0,W=0;const O=[];D.forEach((te,oe)=>{O.length!==0&&O.push({value:""}),O.push({value:`/* ${fs(oe)} */`});for(const de of te){let ue;l.has(de.name)?ue=`"${de.name}": ${JSON.stringify(l.get(de.name))}${(W+=1)===l.size?"":","}`:ue=`// "${de.name}": ${JSON.stringify(dLe(de))},`,O.push({value:ue,description:`/* ${de.description&&fs(de.description)||de.name} */`}),I=Math.max(ue.length,I)}});const V=m(2),ee=[];ee.push("{"),ee.push(`${V}"compilerOptions": {`),ee.push(`${V}${V}/* ${fs(w.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),ee.push("");for(const te of O){const{value:oe,description:de=""}=te;ee.push(oe&&`${V}${V}${oe}${de&&m(I-oe.length+2)+de}`)}if(r.length){ee.push(`${V}},`),ee.push(`${V}"files": [`);for(let te=0;tetypeof Wt=="object","object"),Dt=pt(Le("files"));if(Dt){const Wt=_t==="no-prop"||ls(_t)&&_t.length===0,tt=ef(ee,"extends");if(Dt.length===0&&Wt&&!tt)if(r){const Mn=T||"tsconfig.json",kn=w.The_files_list_in_config_file_0_is_empty,cr=sY(r,"files",on=>on.initializer),un=i4(r,cr,kn,Mn);O.push(un)}else ke(w.The_files_list_in_config_file_0_is_empty,T||"tsconfig.json")}let Ft=pt(Le("include"));const it=Le("exclude");let Ye=!1,ut=pt(it);if(it==="no-prop"&&ee.compilerOptions){const Wt=ee.compilerOptions.outDir,tt=ee.compilerOptions.declarationDir;(Wt||tt)&&(ut=[Wt,tt].filter(Mn=>!!Mn))}Dt===void 0&&Ft===void 0&&(Ft=[YG],Ye=!0);let lt,zt;return Ft&&(lt=t$(Ft,O,!0,r,"include")),ut&&(zt=t$(ut,O,!1,r,"exclude")),{filesSpecs:Dt,includeSpecs:Ft,excludeSpecs:ut,validatedFilesSpec:gi(Dt,As),validatedIncludeSpecs:lt,validatedExcludeSpecs:zt,pathPatterns:void 0,isDefaultIncludeSpec:Ye}}function Be(_t){const Dt=x6(de,_t,te,s,I);return oQ(Dt,eae(ee),D)&&O.push(Lpe(de,T)),Dt}function Ve(_t){let Dt;const Ft=ht("references",it=>typeof it=="object","object");if(ls(Ft))for(const it of Ft)typeof it.path!="string"?ke(w.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Dt||(Dt=[])).push({path:Su(it.path,_t),originalPath:it.path,prepend:it.prepend,circular:it.circular});return Dt}function pt(_t){return ls(_t)?_t:void 0}function Le(_t){return ht(_t,As,"string")}function ht(_t,Dt,Ft){if(ef(ee,_t)&&!$G(ee[_t]))if(ls(ee[_t])){const it=ee[_t];return!r&&!jr(it,Dt)&&O.push(W_(w.Compiler_option_0_requires_a_value_of_type_1,_t,Ft)),it}else return ke(w.Compiler_option_0_requires_a_value_of_type_1,_t,"Array"),"not-array";return"no-prop"}function ke(_t,...Dt){r||O.push(W_(_t,...Dt))}}function Zoe(t){return t.code===w.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Lpe({includeSpecs:t,excludeSpecs:r},s){return W_(w.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(r||[]))}function oQ(t,r,s){return t.length===0&&r&&(!s||s.length===0)}function eae(t){return!ef(t,"files")&&!ef(t,"references")}function l2e(t,r,s,l,m){const y=l.length;return oQ(t,m)?l.push(Lpe(s,r)):vd(l,T=>!Zoe(T)),y!==l.length}function Ist(t){return!!t.options}function sLe(t,r,s,l,m,y,T,D){var I;l=hf(l);const W=Su(m||"",l);if(y.indexOf(W)>=0)return T.push(W_(w.Circularity_detected_while_resolving_configuration_Colon_0,[...y,W].join(" -> "))),{raw:t||rLe(r,T)};const O=t?BUe(t,s,l,m,T):Ope(r,s,l,m,T);if((I=O.options)!=null&&I.paths&&(O.options.pathsBasePath=l),O.extendedConfigPath){y=y.concat([W]);const ee={options:{}};As(O.extendedConfigPath)?V(ee,O.extendedConfigPath):O.extendedConfigPath.forEach(te=>V(ee,te)),!O.raw.include&&ee.include&&(O.raw.include=ee.include),!O.raw.exclude&&ee.exclude&&(O.raw.exclude=ee.exclude),!O.raw.files&&ee.files&&(O.raw.files=ee.files),O.raw.compileOnSave===void 0&&ee.compileOnSave&&(O.raw.compileOnSave=ee.compileOnSave),r&&ee.extendedSourceFiles&&(r.extendedSourceFiles=oc(ee.extendedSourceFiles.keys())),O.options=AS(ee.options,O.options),O.watchOptions=O.watchOptions&&ee.watchOptions?AS(ee.watchOptions,O.watchOptions):O.watchOptions||ee.watchOptions}return O;function V(ee,te){const oe=GUe(r,te,s,y,T,D,ee);if(oe&&Ist(oe)){const de=oe.raw;let ue;const Ne=Be=>{de[Be]&&(ee[Be]=Vn(de[Be],Ve=>mm(Ve)?Ve:tf(ue||(ue=r7(qc(te),l,_v(s.useCaseSensitiveFileNames))),Ve)))};Ne("include"),Ne("exclude"),Ne("files"),de.compileOnSave!==void 0&&(ee.compileOnSave=de.compileOnSave),AS(ee.options,oe.options),ee.watchOptions=ee.watchOptions&&oe.watchOptions?AS({},ee.watchOptions,oe.watchOptions):ee.watchOptions||oe.watchOptions}}}function BUe(t,r,s,l,m){ef(t,"excludes")&&m.push(W_(w.Unknown_option_excludes_Did_you_mean_exclude));const y=VUe(t.compilerOptions,s,m,l),T=lLe(t.typeAcquisition,s,m,l),D=UUe(t.watchOptions,s,m);t.compileOnSave=kst(t,s,m);const I=t.extends||t.extends===""?e$(t.extends,r,s,l,m):void 0;return{raw:t,options:y,watchOptions:D,typeAcquisition:T,extendedConfigPath:I}}function e$(t,r,s,l,m,y,T,D){let I;const W=l?WUe(l,s):s;if(As(t))I=zUe(t,r,W,m,T,D);else if(ls(t)){I=[];for(let O=0;OBe.name===te)&&(W=ur(W,de.name))))}}function zUe(t,r,s,l,m,y){if(t=hf(t),mm(t)||xf(t,"./")||xf(t,"../")){let D=Su(t,s);if(!r.fileExists(D)&&!h_(D,".json")&&(D=`${D}.json`,!r.fileExists(D))){l.push(i4(y,m,w.File_0_not_found,t));return}return D}const T=sHe(t,tf(s,"tsconfig.json"),r);if(T.resolvedModule)return T.resolvedModule.resolvedFileName;t===""?l.push(i4(y,m,w.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):l.push(i4(y,m,w.File_0_not_found,t))}function GUe(t,r,s,l,m,y,T){const D=s.useCaseSensitiveFileNames?r:Q0(r);let I,W,O;if(y&&(I=y.get(D))?{extendedResult:W,extendedConfig:O}=I:(W=tLe(r,V=>s.readFile(V)),W.parseDiagnostics.length||(O=sLe(void 0,W,s,qc(r),Iy(r),l,m,y)),y&&y.set(D,{extendedResult:W,extendedConfig:O})),t&&((T.extendedSourceFiles??(T.extendedSourceFiles=new Set)).add(W.fileName),W.extendedSourceFiles))for(const V of W.extendedSourceFiles)T.extendedSourceFiles.add(V);if(W.parseDiagnostics.length){m.push(...W.parseDiagnostics);return}return O}function kst(t,r,s){if(!ef(t,zpe.name))return!1;const l=lF(zpe,t.compileOnSave,r,s);return typeof l=="boolean"&&l}function jUe(t,r,s){const l=[];return{options:VUe(t,r,l,s),errors:l}}function Pst(t,r,s){const l=[];return{options:lLe(t,r,l,s),errors:l}}function cLe(t){return t&&Iy(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function VUe(t,r,s,l){const m=cLe(l);return f2e(Npe(),t,r,m,XG,s),l&&(m.configFilePath=hf(l)),m}function u2e(t){return{enable:!!t&&Iy(t)==="jsconfig.json",include:[],exclude:[]}}function lLe(t,r,s,l){const m=u2e(l);return f2e(ZJ(),t,r,m,_Q,s),m}function UUe(t,r,s){return f2e(r2e(),t,r,void 0,oae,s)}function f2e(t,r,s,l,m,y){if(r){for(const T in r){const D=t.get(T);D?(l||(l={}))[D.name]=lF(D,r[T],s,y):y.push(Ipe(T,m))}return l}}function i4(t,r,s,...l){return t&&r?M0(t,r,s,...l):W_(s,...l)}function lF(t,r,s,l,m,y,T){if(t.isCommandLineOnly){l.push(i4(T,m==null?void 0:m.name,w.Option_0_can_only_be_specified_on_command_line,t.name));return}if(wUe(t,r)){const D=t.type;if(D==="list"&&ls(r))return o4(t,r,s,l,m,y,T);if(D==="listOrElement")return ls(r)?o4(t,r,s,l,m,y,T):lF(t.element,r,s,l,m,y,T);if(!As(t.type))return _2e(t,r,l,y,T);const I=qG(t,r,l,y,T);return $G(I)?I:HUe(t,s,I)}else l.push(i4(T,y,w.Compiler_option_0_requires_a_value_of_type_1,t.name,wpe(t)))}function HUe(t,r,s){return t.isFilePath&&(s=Su(s,r),s===""&&(s=".")),s}function qG(t,r,s,l,m){var y;if($G(r))return;const T=(y=t.extraValidation)==null?void 0:y.call(t,r);if(!T)return r;s.push(i4(m,l,...T))}function _2e(t,r,s,l,m){if($G(r))return;const y=r.toLowerCase(),T=t.type.get(y);if(T!==void 0)return qG(t,T,s,l,m);s.push(Z6e(t,(D,...I)=>i4(m,l,D,...I)))}function o4(t,r,s,l,m,y,T){return gi(Vn(r,(D,I)=>lF(t.element,D,s,l,m,y==null?void 0:y.elements[I],T)),D=>t.listPreserveFalsyValues?!0:!!D)}function x6(t,r,s,l,m=Zn){r=Fd(r);const y=_v(l.useCaseSensitiveFileNames),T=new Map,D=new Map,I=new Map,{validatedFilesSpec:W,validatedIncludeSpecs:O,validatedExcludeSpecs:V}=t,ee=s3(s,m),te=Q9(s,ee);if(W)for(const Ne of W){const Be=Su(Ne,r);T.set(y(Be),Be)}let oe;if(O&&O.length>0)for(const Ne of l.readDirectory(r,Gf(te),V,O,void 0)){if(Pg(Ne,".json")){if(!oe){const pt=O.filter(ht=>h_(ht,".json")),Le=Vn(JH(pt,r,"files"),ht=>`^${ht}$`);oe=Le?Le.map(ht=>Y2(ht,l.useCaseSensitiveFileNames)):Zn}if(Ho(oe,pt=>pt.test(Ne))!==-1){const pt=y(Ne);!T.has(pt)&&!I.has(pt)&&I.set(pt,Ne)}continue}if(qUe(Ne,T,D,ee,y))continue;KUe(Ne,D,ee,y);const Be=y(Ne);!T.has(Be)&&!D.has(Be)&&D.set(Be,Ne)}const de=oc(T.values()),ue=oc(D.values());return de.concat(ue,oc(I.values()))}function JUe(t,r,s,l,m){const{validatedFilesSpec:y,validatedIncludeSpecs:T,validatedExcludeSpecs:D}=r;if(!Nt(T)||!Nt(D))return!1;s=Fd(s);const I=_v(l);if(y){for(const W of y)if(I(Su(W,s))===t)return!1}return uLe(t,D,l,m,s)}function IW(t){const r=xf(t,"**/")?0:t.indexOf("/**/");return r===-1?!1:(h_(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function Fpe(t,r,s,l){return uLe(t,gi(r,m=>!IW(m)),s,l)}function uLe(t,r,s,l,m){const y=a3(r,tf(Fd(l),m),"exclude"),T=y&&Y2(y,s);return T?T.test(t)?!0:!e7(t)&&T.test(Rv(t)):!1}function t$(t,r,s,l,m){return t.filter(T=>{if(!As(T))return!1;const D=Wpe(T,s);return D!==void 0&&r.push(y(...D)),D===void 0});function y(T,D){const I=RT(l,m,D);return i4(l,I,T,D)}}function Wpe(t,r){if(ce.assert(typeof t=="string"),r&&h2e.test(t))return[w.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(IW(t))return[w.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function $Ue({validatedIncludeSpecs:t,validatedExcludeSpecs:r},s,l){const m=a3(r,s,"exclude"),y=m&&new RegExp(m,l?"":"i"),T={};if(t!==void 0){const D=[];for(const I of t){const W=Fd(tf(s,I));if(y&&y.test(W))continue;const O=Bpe(W,l);if(O){const{key:V,flags:ee}=O,te=T[V];(te===void 0||tews(t,T)?T:void 0);if(!y)return!1;for(const T of y){if(Pg(t,T))return!1;const D=m(SA(t,T));if(r.has(D)||s.has(D)){if(T===".d.ts"&&(Pg(t,".js")||Pg(t,".jsx")))continue;return!0}}return!1}function KUe(t,r,s,l){const m=Ot(s,y=>ws(t,y)?y:void 0);if(m)for(let y=m.length-1;y>=0;y--){const T=m[y];if(Pg(t,T))return;const D=l(SA(t,T));r.delete(D)}}function fLe(t){const r={};for(const s in t)if(ef(t,s)){const l=t2e(s);l!==void 0&&(r[s]=_Le(t[s],l))}return r}function _Le(t,r){if(t===void 0)return t;switch(r.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!ls(t))return _Le(t,r.element);case"list":const s=r.element;return ls(t)?Qo(t,l=>_Le(l,s)):"";default:return wT(r.type,(l,m)=>{if(l===t)return m})}}function dLe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const r=t.defaultValueDescription;return t.isFilePath?`./${r&&typeof r=="string"?r:""}`:"";case"list":return[];case"listOrElement":return dLe(t.element);case"object":return{};default:const s=V5(t.type.keys());return s!==void 0?s:ce.fail("Expected 'option.type' to have entries.")}}var zpe,pLe,n$,Gpe,aQ,KG,sQ,uF,cQ,r$,i$,fC,o$,a$,tae,lQ,hI,nae,rae,iae,s$,c$,jpe,Vpe,uQ,XG,fQ,mLe,gLe,_Q,dQ,oae,hLe,yLe,d2e,pQ,mQ,p2e,m2e,g2e,YG,h2e,y2e,vLe=G({"src/compiler/commandLineParser.ts"(){Ad(),zpe={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pLe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),n$=new Map(p_(pLe.entries(),([t,r])=>[""+r,t])),Gpe=[["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"]],aQ=Gpe.map(t=>t[0]),KG=new Map(Gpe),sQ=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:w.Watch_and_Build_Modes,description:w.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:w.Watch_and_Build_Modes,description:w.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:w.Watch_and_Build_Modes,description:w.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:w.Watch_and_Build_Modes,description:w.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:Wpe},category:w.Watch_and_Build_Modes,description:w.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Wpe},category:w.Watch_and_Build_Modes,description:w.Remove_a_list_of_files_from_the_watch_mode_s_processing}],uF=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:w.Command_line_Options,description:w.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:w.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:w.Command_line_Options,description:w.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:w.Output_Formatting,description:w.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:w.Compiler_Diagnostics,description:w.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:w.Output_Formatting,description:w.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:w.Compiler_Diagnostics,description:w.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:w.Compiler_Diagnostics,description:w.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:w.Compiler_Diagnostics,description:w.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:w.FILE_OR_DIRECTORY,category:w.Compiler_Diagnostics,description:w.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:w.DIRECTORY,category:w.Compiler_Diagnostics,description:w.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:w.Projects,description:w.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:w.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,transpileOptionValue:void 0,description:w.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:w.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:w.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,description:w.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,defaultValueDescription:!1,description:w.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:w.Emit,description:w.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Watch_and_Build_Modes,description:w.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:w.Command_line_Options,isCommandLineOnly:!0,description:w.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:w.Platform_specific}],cQ={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:w.VERSION,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},r$={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})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:w.KIND,showInSimplifiedHelpView:!0,category:w.Modules,description:w.Specify_what_module_code_is_generated,defaultValueDescription:void 0},i$=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,description:w.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:w.Command_line_Options,paramType:w.FILE_OR_DIRECTORY,description:w.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:w.Command_line_Options,description:w.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:w.Command_line_Options,isCommandLineOnly:!0,description:w.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:w.Command_line_Options,isCommandLineOnly:!0,description:w.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},cQ,r$,{name:"lib",type:"list",element:{name:"lib",type:KG,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:w.JavaScript_Support,description:w.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,showInSimplifiedHelpView:!0,category:w.JavaScript_Support,description:w.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:pLe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:w.KIND,showInSimplifiedHelpView:!0,category:w.Language_and_Environment,description:w.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.FILE,showInSimplifiedHelpView:!0,category:w.Emit,description:w.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:w.DIRECTORY,showInSimplifiedHelpView:!0,category:w.Emit,description:w.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.LOCATION,category:w.Modules,description:w.Specify_the_root_folder_within_your_source_files,defaultValueDescription:w.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:w.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:w.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:w.FILE,category:w.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:w.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Emit,defaultValueDescription:!1,description:w.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:w.Emit,description:w.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.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:w.Emit,description:w.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:w.Interop_Constraints,description:w.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:w.Interop_Constraints,description:w.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:w.Type_Checking,description:w.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:w.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:w.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:w.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:w.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:w.Type_Checking,description:w.Ensure_use_strict_is_always_emitted,defaultValueDescription:w.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.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:w.Type_Checking,description:w.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.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:w.Type_Checking,description:w.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"]),affectsModuleResolution:!0,paramType:w.STRATEGY,category:w.Modules,description:w.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:w.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:w.Modules,description:w.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:w.Modules,description:w.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:w.Modules,description:w.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:w.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:w.Modules,description:w.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:w.Modules,description:w.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:w.Interop_Constraints,description:w.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:w.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:w.Interop_Constraints,description:w.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:w.Interop_Constraints,description:w.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:w.Modules,description:w.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:w.Modules,description:w.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Modules,description:w.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:w.Modules,description:w.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:w.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:w.Modules,description:w.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:w.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:w.Modules,description:w.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:w.LOCATION,category:w.Emit,description:w.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:w.LOCATION,category:w.Emit,description:w.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:w.Language_and_Environment,description:w.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:w.Language_and_Environment,description:w.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:w.Language_and_Environment,description:w.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:w.Modules,description:w.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:w.Modules,description:w.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:w.Backwards_Compatibility,paramType:w.FILE,transpileOptionValue:void 0,description:w.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:w.Completeness,description:w.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:w.Backwards_Compatibility,description:w.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:w.Emit,description:w.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:w.NEWLINE,category:w.Emit,description:w.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Output_Formatting,description:w.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:w.Language_and_Environment,affectsProgramStructure:!0,description:w.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:w.Modules,description:w.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:w.Emit,description:w.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:w.Editor_Support,description:w.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:w.Projects,description:w.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:w.Projects,description:w.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:w.Projects,description:w.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,transpileOptionValue:void 0,description:w.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:w.DIRECTORY,category:w.Emit,transpileOptionValue:void 0,description:w.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:w.Completeness,description:w.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Type_Checking,description:w.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:w.Backwards_Compatibility,description:w.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:w.Interop_Constraints,description:w.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:w.JavaScript_Support,description:w.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:w.Backwards_Compatibility,description:w.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:w.Language_and_Environment,description:w.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:w.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:w.Emit,description:w.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:w.Backwards_Compatibility,description:w.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:w.Specify_a_list_of_language_service_plugins_to_include,category:w.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:w.Control_what_method_is_used_to_detect_module_format_JS_files,category:w.Language_and_Environment,defaultValueDescription:w.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}],fC=[...uF,...i$],o$=fC.filter(t=>!!t.affectsSemanticDiagnostics),a$=fC.filter(t=>!!t.affectsEmit),tae=fC.filter(t=>!!t.affectsDeclarationPath),lQ=fC.filter(t=>!!t.affectsModuleResolution),hI=fC.filter(t=>!!t.affectsSourceFile||!!t.affectsModuleResolution||!!t.affectsBindDiagnostics),nae=fC.filter(t=>!!t.affectsProgramStructure),rae=fC.filter(t=>ef(t,"transpileOptionValue")),iae=[{name:"verbose",shortName:"v",category:w.Command_line_Options,description:w.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:w.Command_line_Options,description:w.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:w.Command_line_Options,description:w.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:w.Command_line_Options,description:w.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],s$=[...uF,...iae],c$=[{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}],Vpe={diagnostic:w.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Ppe},uQ={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},XG={alternateMode:Vpe,getOptionsNameMap:DW,optionDeclarations:fC,unknownOptionDiagnostic:w.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:w.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Compiler_option_0_expects_an_argument},mLe={diagnostic:w.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:DW},gLe={alternateMode:mLe,getOptionsNameMap:Ppe,optionDeclarations:s$,unknownOptionDiagnostic:w.Unknown_build_option_0,unknownDidYouMeanDiagnostic:w.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Build_option_0_requires_a_value_of_type_1},_Q={optionDeclarations:c$,unknownOptionDiagnostic:w.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:w.Unknown_type_acquisition_option_0_Did_you_mean_1},oae={getOptionsNameMap:iQ,optionDeclarations:sQ,unknownOptionDiagnostic:w.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:w.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:w.Watch_option_0_requires_a_value_of_type_1},pQ={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:w.File_Management,disallowNullOrUndefined:!0},mQ={name:"compilerOptions",type:"object",elementOptions:Npe(),extraKeyDiagnostics:XG},p2e={name:"watchOptions",type:"object",elementOptions:r2e(),extraKeyDiagnostics:oae},m2e={name:"typeAcquisition",type:"object",elementOptions:ZJ(),extraKeyDiagnostics:_Q},YG="**/*",h2e=/(^|\/)\*\*\/?$/,y2e=/^[^*?]*(?=\/[^/]*[*?])/}});function Vf(t){t.trace(Yie.apply(void 0,arguments))}function Dk(t,r){return!!t.traceResolution&&r.trace!==void 0}function kW(t,r){let s;if(r&&t){const l=t.contents.packageJsonContent;typeof l.name=="string"&&typeof l.version=="string"&&(s={name:l.name,subModuleName:r.path.slice(t.packageDirectory.length+q.length),version:l.version})}return r&&{path:r.path,extension:r.ext,packageId:s,resolvedUsingTsExtension:r.resolvedUsingTsExtension}}function Upe(t){return kW(void 0,t)}function XUe(t){if(t)return ce.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Df(t){const r=[];return t&1&&r.push("TypeScript"),t&2&&r.push("JavaScript"),t&4&&r.push("Declaration"),t&8&&r.push("JSON"),r.join(", ")}function DR(t){const r=[];return t&1&&r.push(...TG),t&2&&r.push(...iJ),t&4&&r.push(...h3),t&8&&r.push(".json"),r}function fF(t){if(t)return ce.assert(KH(t.extension)),{fileName:t.path,packageId:t.packageId}}function Hpe(t,r,s,l,m,y,T,D){if(!T.resultFromCache&&!T.compilerOptions.preserveSymlinks&&r&&s&&!r.originalPath&&!tb(t)){const{resolvedFileName:I,originalPath:W}=ZUe(r.path,T.host,T.traceEnabled);W&&(r={...r,path:I,originalPath:W})}return bLe(r,s,l,m,y,T.resultFromCache,D)}function bLe(t,r,s,l,m,y,T){return y?(y.failedLookupLocations=gQ(y.failedLookupLocations,s),y.affectingLocations=gQ(y.affectingLocations,l),y.resolutionDiagnostics=gQ(y.resolutionDiagnostics,m),y):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:r,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:PW(s),affectingLocations:PW(l),resolutionDiagnostics:PW(m),node10Result:T}}function PW(t){return t.length?t:void 0}function gQ(t,r){return r!=null&&r.length?t!=null&&t.length?(t.push(...r),t):r:t}function v2e(t,r,s,l){if(!ef(t,r)){l.traceEnabled&&Vf(l.host,w.package_json_does_not_have_a_0_field,r);return}const m=t[r];if(typeof m!==s||m===null){l.traceEnabled&&Vf(l.host,w.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,s,m===null?"null":typeof m);return}return m}function Jpe(t,r,s,l){const m=v2e(t,r,"string",l);if(m===void 0)return;if(!m){l.traceEnabled&&Vf(l.host,w.package_json_had_a_falsy_0_field,r);return}const y=Fd(tf(s,m));return l.traceEnabled&&Vf(l.host,w.package_json_has_0_field_1_that_references_2,r,m,y),y}function YUe(t,r,s){return Jpe(t,"typings",r,s)||Jpe(t,"types",r,s)}function hQ(t,r,s){return Jpe(t,"tsconfig",r,s)}function l$(t,r,s){return Jpe(t,"main",r,s)}function TLe(t,r){const s=v2e(t,"typesVersions","object",r);if(s!==void 0)return r.traceEnabled&&Vf(r.host,w.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function QUe(t,r){const s=TLe(t,r);if(s===void 0)return;if(r.traceEnabled)for(const T in s)ef(s,T)&&!Ar.tryParse(T)&&Vf(r.host,w.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,T);const l=yQ(s);if(!l){r.traceEnabled&&Vf(r.host,w.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ot);return}const{version:m,paths:y}=l;if(typeof y!="object"){r.traceEnabled&&Vf(r.host,w.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${m}']`,"object",typeof y);return}return l}function yQ(t){MW||(MW=new en(At));for(const r in t){if(!ef(t,r))continue;const s=Ar.tryParse(r);if(s!==void 0&&s.test(MW))return{version:r,paths:t[r]}}}function $pe(t,r){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=qc(t.configFilePath):r.getCurrentDirectory&&(s=r.getCurrentDirectory()),s!==void 0)return Nst(s)}function Nst(t){let r;return ok(Fd(t),s=>{const l=tf(s,P2e);(r??(r=[])).push(l)}),r}function wst(t,r,s){const l=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return wM(t,r,!l)===0}function ZUe(t,r,s){const l=ELe(t,r,s),m=wst(t,l,r);return{resolvedFileName:m?t:l,originalPath:m?void 0:t}}function eHe(t,r,s){const l=h_(t,"/node_modules/@types")||h_(t,"/node_modules/@types/")?dHe(r,s):r;return tf(t,l)}function vQ(t,r,s,l,m,y,T){ce.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 D=Dk(s,l);m&&(s=m.commandLine.options);const I=r?qc(r):void 0;let W=I?y==null?void 0:y.getFromDirectoryCache(t,T,I,m):void 0;if(!W&&I&&!tb(t)&&(W=y==null?void 0:y.getFromNonRelativeNameCache(t,T,I,m)),W)return D&&(Vf(l,w.Resolving_type_reference_directive_0_containing_file_1,t,r),m&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName),Vf(l,w.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,I),pt(W)),W;const O=$pe(s,l);D&&(r===void 0?O===void 0?Vf(l,w.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Vf(l,w.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,O):O===void 0?Vf(l,w.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,r):Vf(l,w.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,r,O),m&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName));const V=[],ee=[];let te=QG(s);T===99&&(Jd(s)===3||Jd(s)===99)&&(te|=32);const oe=te&8?u$(s,!!(te&32)):[],de=[],ue={compilerOptions:s,host:l,traceEnabled:D,failedLookupLocations:V,affectingLocations:ee,packageJsonInfoCache:y,features:te,conditions:oe,requestContainingDirectory:I,reportDiagnostic:ke=>void de.push(ke),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let Ne=Le(),Be=!0;Ne||(Ne=ht(),Be=!1);let Ve;if(Ne){const{fileName:ke,packageId:_t}=Ne;let Dt=ke,Ft;s.preserveSymlinks||({resolvedFileName:Dt,originalPath:Ft}=ZUe(ke,l,D)),Ve={primary:Be,resolvedFileName:Dt,originalPath:Ft,packageId:_t,isExternalLibraryImport:NW(ke)}}return W={resolvedTypeReferenceDirective:Ve,failedLookupLocations:PW(V),affectingLocations:PW(ee),resolutionDiagnostics:PW(de)},I&&(y==null||y.getOrCreateCacheForDirectory(I,m).set(t,T,W),tb(t)||y==null||y.getOrCreateCacheForNonRelativeName(t,T,m).set(I,W)),D&&pt(W),W;function pt(ke){var _t;(_t=ke.resolvedTypeReferenceDirective)!=null&&_t.resolvedFileName?ke.resolvedTypeReferenceDirective.packageId?Vf(l,w.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ke.resolvedTypeReferenceDirective.resolvedFileName,pP(ke.resolvedTypeReferenceDirective.packageId),ke.resolvedTypeReferenceDirective.primary):Vf(l,w.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ke.resolvedTypeReferenceDirective.resolvedFileName,ke.resolvedTypeReferenceDirective.primary):Vf(l,w.Type_reference_directive_0_was_not_resolved,t)}function Le(){if(O&&O.length)return D&&Vf(l,w.Resolving_with_primary_search_path_0,O.join(", ")),Yr(O,ke=>{const _t=eHe(ke,t,ue),Dt=O0(ke,l);if(!Dt&&D&&Vf(l,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,ke),s.typeRoots){const Ft=dF(4,_t,!Dt,ue);if(Ft){const it=wW(Ft.path),Ye=it?s4(it,!1,ue):void 0;return fF(kW(Ye,Ft))}}return fF(A2e(4,_t,!Dt,ue))});D&&Vf(l,w.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ht(){const ke=r&&qc(r);if(ke!==void 0){let _t;if(!s.typeRoots||!h_(r,sse))if(D&&Vf(l,w.Looking_up_in_node_modules_folder_initial_location_0,ke),tb(t)){const{path:Dt}=cHe(ke,t);_t=cae(4,Dt,!1,ue,!0)}else{const Dt=_He(4,t,ke,ue,void 0,void 0);_t=Dt&&Dt.value}else D&&Vf(l,w.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return fF(_t)}else D&&Vf(l,w.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function QG(t){let r=0;switch(Jd(t)){case 3:r=30;break;case 99:r=30;break;case 100:r=30;break}return t.resolvePackageJsonExports?r|=8:t.resolvePackageJsonExports===!1&&(r&=-9),t.resolvePackageJsonImports?r|=2:t.resolvePackageJsonImports===!1&&(r&=-3),r}function u$(t,r){const s=r||Jd(t)===100?["import"]:["require"];return t.noDtsResolution||s.push("types"),Jd(t)!==100&&s.push("node"),Hi(s,t.customConditions)}function Rst(t,r,s,l,m){const y=p$(m==null?void 0:m.getPackageJsonInfoCache(),l,s);return ok(r,T=>{if(Iy(T)!=="node_modules"){const D=tf(T,"node_modules"),I=tf(D,t);return s4(I,!1,y)}})}function qpe(t,r){if(t.types)return t.types;const s=[];if(r.directoryExists&&r.getDirectories){const l=$pe(t,r);if(l){for(const m of l)if(r.directoryExists(m))for(const y of r.getDirectories(m)){const T=Fd(y),D=tf(m,T,"package.json");if(!(r.fileExists(D)&&e3(D,r).typings===null)){const W=Iy(T);W.charCodeAt(0)!==46&&s.push(W)}}}}return s}function b2e(t){var r;if(t===null||typeof t!="object")return""+t;if(ls(t))return`[${(r=t.map(l=>b2e(l)))==null?void 0:r.join(",")}]`;let s="{";for(const l in t)ef(t,l)&&(s+=`${l}: ${b2e(t[l])}`);return s+"}"}function Kpe(t,r){return r.map(s=>b2e(jH(t,s))).join("|")+`|${t.pathsBasePath}`}function Xpe(t){const r=new Map,s=new Map,l=new Map;let m=new Map;return t&&r.set(t,m),{getMapOfCacheRedirects:y,getOrCreateMapOfCacheRedirects:T,update:D,clear:W};function y(V){return V?I(V.commandLine.options,!1):m}function T(V){return V?I(V.commandLine.options,!0):m}function D(V){t!==V&&(t?m=I(V,!0):r.set(V,m),t=V)}function I(V,ee){let te=r.get(V);if(te)return te;const oe=O(V);if(te=l.get(oe),!te){if(t){const de=O(t);de===oe?te=m:l.has(de)||l.set(de,m)}ee&&(te??(te=new Map)),te&&l.set(oe,te)}return te&&r.set(V,te),te}function W(){const V=t&&s.get(t);m.clear(),r.clear(),s.clear(),l.clear(),t&&(V&&s.set(t,V),r.set(t,m))}function O(V){let ee=s.get(V);return ee||s.set(V,ee=Kpe(V,lQ)),ee}}function _F(t,r){let s;return{getPackageJsonInfo:l,setPackageJsonInfo:m,clear:y,entries:T,getInternalMap:D};function l(I){return s==null?void 0:s.get(_h(I,t,r))}function m(I,W){(s||(s=new Map)).set(_h(I,t,r),W)}function y(){s=void 0}function T(){const I=s==null?void 0:s.entries();return I?oc(I):[]}function D(){return s}}function Ype(t,r,s,l){const m=t.getOrCreateMapOfCacheRedirects(r);let y=m.get(s);return y||(y=l(),m.set(s,y)),y}function Qpe(t,r,s){const l=Xpe(s);return{getFromDirectoryCache:D,getOrCreateCacheForDirectory:T,clear:m,update:y};function m(){l.clear()}function y(I){l.update(I)}function T(I,W){const O=_h(I,t,r);return Ype(l,W,O,()=>N3())}function D(I,W,O,V){var ee,te;const oe=_h(O,t,r);return(te=(ee=l.getMapOfCacheRedirects(V))==null?void 0:ee.get(oe))==null?void 0:te.get(I,W)}}function f$(t,r){return r===void 0?t:`${r}|${t}`}function N3(){const t=new Map,r=new Map,s={get(m,y){return t.get(l(m,y))},set(m,y,T){return t.set(l(m,y),T),s},delete(m,y){return t.delete(l(m,y)),s},has(m,y){return t.has(l(m,y))},forEach(m){return t.forEach((y,T)=>{const[D,I]=r.get(T);return m(y,D,I)})},size(){return t.size}};return s;function l(m,y){const T=f$(m,y);return r.set(T,[m,y]),T}}function aae(t,r,s,l){ce.assert(r.length===s.length);const m=N3();for(let y=0;yl,clearAllExceptPackageJsonInfoCache:I};function D(){I(),l.clear()}function I(){y.clear(),T.clear()}function W(O){y.update(O),T.update(O)}}function IR(t,r,s,l){const m=_$(t,r,s,l,Mst);return m.getOrCreateCacheForModuleName=(y,T,D)=>m.getOrCreateCacheForNonRelativeName(y,T,D),m}function T2e(t,r,s,l){return _$(t,r,s,l,tHe)}function SLe(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function S2e(t,r,s,l,m){return a4(t,r,SLe(s),l,m)}function nHe(t,r,s,l){const m=qc(r);return s.getFromDirectoryCache(t,l,m,void 0)}function a4(t,r,s,l,m,y,T){var D,I,W;const O=Dk(s,l);y&&(s=y.commandLine.options),O&&(Vf(l,w.Resolving_module_0_from_1,t,r),y&&Vf(l,w.Using_compiler_options_of_project_reference_redirect_0,y.sourceFile.fileName));const V=qc(r);let ee=m==null?void 0:m.getFromDirectoryCache(t,T,V,y);if(ee)O&&Vf(l,w.Resolution_for_module_0_was_found_in_cache_from_location_1,t,V);else{let te=s.moduleResolution;if(te===void 0){switch(Zp(s)){case 1:te=2;break;case 100:te=3;break;case 199:te=99;break;default:te=1;break}O&&Vf(l,w.Module_resolution_kind_is_not_specified_using_0,n9[te])}else O&&Vf(l,w.Explicitly_specified_module_resolution_kind_Colon_0,n9[te]);switch((D=jD)==null||D.logStartResolveModule(t),te){case 3:ee=iHe(t,r,s,l,m,y,T);break;case 99:ee=Ost(t,r,s,l,m,y,T);break;case 2:ee=aHe(t,r,s,l,m,y);break;case 1:ee=pae(t,r,s,l,m,y);break;case 100:ee=x2e(t,r,s,l,m,y);break;default:return ce.fail(`Unexpected moduleResolution: ${te}`)}ee&&ee.resolvedModule&&((I=jD)==null||I.logInfoEvent(`Module "${t}" resolved to "${ee.resolvedModule.resolvedFileName}"`)),(W=jD)==null||W.logStopResolveModule(ee&&ee.resolvedModule?""+ee.resolvedModule.resolvedFileName:"null"),m==null||m.getOrCreateCacheForDirectory(V,y).set(t,T,ee),tb(t)||m==null||m.getOrCreateCacheForNonRelativeName(t,T,y).set(V,ee)}return O&&(ee.resolvedModule?ee.resolvedModule.packageId?Vf(l,w.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,ee.resolvedModule.resolvedFileName,pP(ee.resolvedModule.packageId)):Vf(l,w.Module_name_0_was_successfully_resolved_to_1,t,ee.resolvedModule.resolvedFileName):Vf(l,w.Module_name_0_was_not_resolved,t)),ee}function sae(t,r,s,l,m){const y=E2e(t,r,l,m);return y?y.value:tb(r)?Zpe(t,r,s,l,m):rHe(t,r,l,m)}function E2e(t,r,s,l){var m;const{baseUrl:y,paths:T,configFile:D}=l.compilerOptions;if(T&&!U2(r)){l.traceEnabled&&(y&&Vf(l.host,w.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,y,r),Vf(l.host,w.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r));const I=G9(l.compilerOptions,l.host),W=D!=null&&D.configFileSpecs?(m=D.configFileSpecs).pathPatterns||(m.pathPatterns=qH(T)):void 0;return k2e(t,r,I,T,W,s,!1,l)}}function Zpe(t,r,s,l,m){if(!m.compilerOptions.rootDirs)return;m.traceEnabled&&Vf(m.host,w.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);const y=Fd(tf(s,r));let T,D;for(const I of m.compilerOptions.rootDirs){let W=Fd(I);h_(W,q)||(W+=q);const O=xf(y,W)&&(D===void 0||D.lengthvoid Ne.push(ht),isConfigLookup:D,candidateIsFromPackageJsonField:!1};te&&UN(Jd(l))&&Vf(m,w.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",ue.map(ht=>`'${ht}'`).join(", "));let Ve;if(Jd(l)===2){const ht=T&5,ke=T&-6;Ve=ht&&Le(ht,Be)||ke&&Le(ke,Be)||void 0}else Ve=Le(T,Be);let pt;if((W=Ve==null?void 0:Ve.value)!=null&&W.isExternalLibraryImport&&!D&&T&5&&t&8&&!tb(r)&&!m$(5,Ve.value.resolved.extension)&&ue.indexOf("import")>-1){C6(Be,w.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ht={...Be,features:Be.features&-9,reportDiagnostic:ku},ke=Le(T&5,ht);(O=ke==null?void 0:ke.value)!=null&&O.isExternalLibraryImport&&(pt=ke.value.resolved.path)}return Hpe(r,(V=Ve==null?void 0:Ve.value)==null?void 0:V.resolved,(ee=Ve==null?void 0:Ve.value)==null?void 0:ee.isExternalLibraryImport,oe,de,Ne,Be,pt);function Le(ht,ke){const Dt=sae(ht,r,s,(Ft,it,Ye,ut)=>cae(Ft,it,Ye,ut,!0),ke);if(Dt)return rx({resolved:Dt,isExternalLibraryImport:NW(Dt.path)});if(tb(r)){const{path:Ft,parts:it}=cHe(s,r),Ye=cae(ht,Ft,!1,ke,!0);return Ye&&rx({resolved:Ye,isExternalLibraryImport:ni(it,"node_modules")})}else{let Ft;if(t&2&&xf(r,"#")&&(Ft=fae(ht,r,s,ke,y,I)),!Ft&&t&4&&(Ft=Wst(ht,r,s,ke,y,I)),!Ft){if(r.indexOf(":")>-1){te&&Vf(m,w.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,r,Df(ht));return}te&&Vf(m,w.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,r,Df(ht)),Ft=_He(ht,r,s,ke,y,I)}return ht&4&&(Ft??(Ft=tj(r,ke))),Ft&&{value:Ft.value&&{resolved:Ft.value,isExternalLibraryImport:!0}}}}}function cHe(t,r){const s=tf(t,r),l=g0(s),m=Yf(l);return{path:m==="."||m===".."?Rv(Fd(s)):Fd(s),parts:l}}function ELe(t,r,s){if(!r.realpath)return t;const l=Fd(r.realpath(t));return s&&Vf(r,w.Resolving_real_path_for_0_result_1,t,l),ce.assert(r.fileExists(l),`${t} linked to nonexistent file ${l}`),l}function cae(t,r,s,l,m){if(l.traceEnabled&&Vf(l.host,w.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,r,Df(t)),!Jg(r)){if(!s){const T=qc(r);O0(T,l.host)||(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,T),s=!0)}const y=dF(t,r,s,l);if(y){const T=m?wW(y.path):void 0,D=T?s4(T,!1,l):void 0;return kW(D,y)}}if(s||O0(r,l.host)||(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),s=!0),!(l.features&32))return A2e(t,r,s,l,m)}function NW(t){return Ub(t,ix)}function wW(t,r){const s=Fd(t),l=s.lastIndexOf(ix);if(l===-1)return;const m=l+ix.length;let y=xLe(s,m,r);return s.charCodeAt(m)===64&&(y=xLe(s,y,r)),s.slice(0,y)}function xLe(t,r,s){const l=t.indexOf(q,r+1);return l===-1?s?t.length:r:l}function ALe(t,r,s,l){return Upe(dF(t,r,s,l))}function dF(t,r,s,l){const m=RW(t,r,s,l);if(m)return m;if(!(l.features&32)){const y=CLe(r,t,"",s,l);if(y)return y}}function RW(t,r,s,l){if(Iy(r).indexOf(".")===-1)return;let y=wg(r);y===r&&(y=r.substring(0,r.lastIndexOf(".")));const T=r.substring(y.length);return l.traceEnabled&&Vf(l.host,w.File_name_0_has_a_1_extension_stripping_it,r,T),CLe(y,t,T,s,l)}function d$(t,r,s,l){return t&1&&ws(r,TG)||t&4&&ws(r,h3)?TQ(r,s,l)!==void 0?{path:r,ext:PH(r),resolvedUsingTsExtension:void 0}:void 0:l.isConfigLookup&&t===8&&Pg(r,".json")?TQ(r,s,l)!==void 0?{path:r,ext:".json",resolvedUsingTsExtension:void 0}:void 0:RW(t,r,s,l)}function CLe(t,r,s,l,m){if(!l){const T=qc(t);T&&(l=!O0(T,m.host))}switch(s){case".mjs":case".mts":case".d.mts":return r&1&&y(".mts",s===".mts"||s===".d.mts")||r&4&&y(".d.mts",s===".mts"||s===".d.mts")||r&2&&y(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return r&1&&y(".cts",s===".cts"||s===".d.cts")||r&4&&y(".d.cts",s===".cts"||s===".d.cts")||r&2&&y(".cjs")||void 0;case".json":return r&4&&y(".d.json.ts")||r&8&&y(".json")||void 0;case".tsx":case".jsx":return r&1&&(y(".tsx",s===".tsx")||y(".ts",s===".tsx"))||r&4&&y(".d.ts",s===".tsx")||r&2&&(y(".jsx")||y(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return r&1&&(y(".ts",s===".ts"||s===".d.ts")||y(".tsx",s===".ts"||s===".d.ts"))||r&4&&y(".d.ts",s===".ts"||s===".d.ts")||r&2&&(y(".js")||y(".jsx"))||m.isConfigLookup&&y(".json")||void 0;default:return r&4&&!iT(t+s)&&y(`.d${s}.ts`)||void 0}function y(T,D){const I=TQ(t+T,l,m);return I===void 0?void 0:{path:I,ext:T,resolvedUsingTsExtension:!m.candidateIsFromPackageJsonField&&D}}}function TQ(t,r,s){var l;if(!((l=s.compilerOptions.moduleSuffixes)!=null&&l.length))return ej(t,r,s);const m=OT(t)??"",y=m?eW(t,m):t;return Ot(s.compilerOptions.moduleSuffixes,T=>ej(y+T+m,r,s))}function ej(t,r,s){var l;if(!r){if(s.host.fileExists(t))return s.traceEnabled&&Vf(s.host,w.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Vf(s.host,w.File_0_does_not_exist,t)}(l=s.failedLookupLocations)==null||l.push(t)}function A2e(t,r,s,l,m=!0){const y=m?s4(r,s,l):void 0,T=y&&y.contents.packageJsonContent,D=y&&SQ(y,l);return kW(y,C2e(t,r,s,l,T,D))}function DLe(t,r,s,l,m){if(!m&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let y;const T=5|(m?2:0),D=QG(r),I=p$(l==null?void 0:l.getPackageJsonInfoCache(),s,r);I.conditions=u$(r),I.requestContainingDirectory=t.packageDirectory;const W=C2e(T,t.packageDirectory,!1,I,t.contents.packageJsonContent,SQ(t,I));if(y=ur(y,W==null?void 0:W.path),D&8&&t.contents.packageJsonContent.exports){const O=th([u$(r,!0),u$(r,!1)],fv);for(const V of O){const ee={...I,failedLookupLocations:[],conditions:V,host:s},te=lHe(t,t.contents.packageJsonContent.exports,ee,T);if(te)for(const oe of te)y=ST(y,oe.path)}}return t.contents.resolvedEntrypoints=y||!1}function lHe(t,r,s,l){let m;if(ls(r))for(const T of r)y(T);else if(typeof r=="object"&&r!==null&&A6(r))for(const T in r)y(r[T]);else y(r);return m;function y(T){var D,I;if(typeof T=="string"&&xf(T,"./"))if(T.indexOf("*")>=0&&s.host.readDirectory){if(T.indexOf("*")!==T.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,DR(l),void 0,[RU(T.replace("*","**/*"),HL(T))]).forEach(W=>{m=ST(m,{path:W,ext:vl(W),resolvedUsingTsExtension:void 0})})}else{const W=g0(T).slice(2);if(W.indexOf("..")>=0||W.indexOf(".")>=0||W.indexOf("node_modules")>=0)return!1;const O=tf(t.packageDirectory,T),V=Su(O,(I=(D=s.host).getCurrentDirectory)==null?void 0:I.call(D)),ee=d$(l,V,!1,s);if(ee)return m=ST(m,ee,(te,oe)=>te.path===oe.path),!0}else if(Array.isArray(T)){for(const W of T)if(y(W))return!0}else if(typeof T=="object"&&T!==null)return Ot(ET(T),W=>{if(W==="default"||ni(s.conditions,W)||g$(s.conditions,W))return y(T[W]),!0})}}function p$(t,r,s){return{host:r,compilerOptions:s,traceEnabled:Dk(s,r),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:Zn,requestContainingDirectory:void 0,reportDiagnostic:ku,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function eme(t,r){const s=g0(t);for(s.pop();s.length>0;){const l=s4(vf(s),!1,r);if(l)return l;s.pop()}}function SQ(t,r){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=QUe(t.contents.packageJsonContent,r)||!1),t.contents.versionPaths||void 0}function s4(t,r,s){var l,m,y,T,D,I,W,O;const{host:V,traceEnabled:ee}=s,te=tf(t,"package.json");if(r){(l=s.failedLookupLocations)==null||l.push(te);return}const oe=(m=s.packageJsonInfoCache)==null?void 0:m.getPackageJsonInfo(te);if(oe!==void 0){if(typeof oe!="boolean")return ee&&Vf(V,w.File_0_exists_according_to_earlier_cached_lookups,te),(y=s.affectingLocations)==null||y.push(te),oe.packageDirectory===t?oe:{packageDirectory:t,contents:oe.contents};oe&&ee&&Vf(V,w.File_0_does_not_exist_according_to_earlier_cached_lookups,te),(T=s.failedLookupLocations)==null||T.push(te);return}const de=O0(t,V);if(de&&V.fileExists(te)){const ue=e3(te,V);ee&&Vf(V,w.Found_package_json_at_0,te);const Ne={packageDirectory:t,contents:{packageJsonContent:ue,versionPaths:void 0,resolvedEntrypoints:void 0}};return(D=s.packageJsonInfoCache)==null||D.setPackageJsonInfo(te,Ne),(I=s.affectingLocations)==null||I.push(te),Ne}else de&&ee&&Vf(V,w.File_0_does_not_exist,te),(W=s.packageJsonInfoCache)==null||W.setPackageJsonInfo(te,de),(O=s.failedLookupLocations)==null||O.push(te)}function C2e(t,r,s,l,m,y){let T;m&&(l.isConfigLookup?T=hQ(m,r,l):T=t&4&&YUe(m,r,l)||t&7&&l$(m,r,l)||void 0);const D=(ee,te,oe,de)=>{const ue=TQ(te,oe,de);if(ue){const Le=lae(ee,ue);if(Le)return Upe(Le);de.traceEnabled&&Vf(de.host,w.File_0_has_an_unsupported_extension_so_skipping_it,ue)}const Ne=ee===4?5:ee,Be=de.features,Ve=de.candidateIsFromPackageJsonField;de.candidateIsFromPackageJsonField=!0,(m==null?void 0:m.type)!=="module"&&(de.features&=-33);const pt=cae(Ne,te,oe,de,!1);return de.features=Be,de.candidateIsFromPackageJsonField=Ve,pt},I=T?!O0(qc(T),l.host):void 0,W=s||!O0(r,l.host),O=tf(r,l.isConfigLookup?"tsconfig":"index");if(y&&(!T||GC(r,T))){const ee=qp(r,T||O,!1);l.traceEnabled&&Vf(l.host,w.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,At,ee);const te=k2e(t,ee,r,y.paths,void 0,D,I||W,l);if(te)return XUe(te.value)}const V=T&&XUe(D(t,T,I,l));if(V)return V;if(!(l.features&32))return dF(t,O,W,l)}function lae(t,r,s){const l=OT(r);return l!==void 0&&m$(t,l)?{path:r,ext:l,resolvedUsingTsExtension:s}:void 0}function m$(t,r){return t&2&&(r===".js"||r===".jsx"||r===".mjs"||r===".cjs")||t&1&&(r===".ts"||r===".tsx"||r===".mts"||r===".cts")||t&4&&(r===".d.ts"||r===".d.mts"||r===".d.cts")||t&8&&r===".json"||!1}function EQ(t){let r=t.indexOf(q);return t[0]==="@"&&(r=t.indexOf(q,r+1)),r===-1?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function A6(t){return jr(ET(t),r=>xf(r,"."))}function D2e(t){return!gt(ET(t),r=>xf(r,"."))}function Wst(t,r,s,l,m,y){var T,D;const I=Su(tf(s,"dummy"),(D=(T=l.host).getCurrentDirectory)==null?void 0:D.call(T)),W=eme(I,l);if(!W||!W.contents.packageJsonContent.exports||typeof W.contents.packageJsonContent.name!="string")return;const O=g0(r),V=g0(W.contents.packageJsonContent.name);if(!jr(V,(ue,Ne)=>O[Ne]===ue))return;const ee=O.slice(V.length),te=Nt(ee)?`.${q}${ee.join(q)}`:".";if(TP(l.compilerOptions)&&!NW(s))return uae(W,t,te,l,m,y);const oe=t&5,de=t&-6;return uae(W,oe,te,l,m,y)||uae(W,de,te,l,m,y)}function uae(t,r,s,l,m,y){if(t.contents.packageJsonContent.exports){if(s==="."){let T;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&D2e(t.contents.packageJsonContent.exports)?T=t.contents.packageJsonContent.exports:ef(t.contents.packageJsonContent.exports,".")&&(T=t.contents.packageJsonContent.exports["."]),T)return fHe(r,l,m,y,s,t,!1)(T,"",!1,".")}else if(A6(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return l.traceEnabled&&Vf(l.host,w.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),rx(void 0);const T=uHe(r,l,m,y,s,t.contents.packageJsonContent.exports,t,!1);if(T)return T}return l.traceEnabled&&Vf(l.host,w.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),rx(void 0)}}function fae(t,r,s,l,m,y){var T,D;if(r==="#"||xf(r,"#/"))return l.traceEnabled&&Vf(l.host,w.Invalid_import_specifier_0_has_no_possible_resolutions,r),rx(void 0);const I=Su(tf(s,"dummy"),(D=(T=l.host).getCurrentDirectory)==null?void 0:D.call(T)),W=eme(I,l);if(!W)return l.traceEnabled&&Vf(l.host,w.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,I),rx(void 0);if(!W.contents.packageJsonContent.imports)return l.traceEnabled&&Vf(l.host,w.package_json_scope_0_has_no_imports_defined,W.packageDirectory),rx(void 0);const O=uHe(t,l,m,y,r,W.contents.packageJsonContent.imports,W,!0);return O||(l.traceEnabled&&Vf(l.host,w.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,W.packageDirectory),rx(void 0))}function xQ(t,r){const s=t.indexOf("*"),l=r.indexOf("*"),m=s===-1?t.length:s+1,y=l===-1?r.length:l+1;return m>y?-1:y>m||s===-1?1:l===-1||t.length>r.length?-1:r.length>t.length?1:0}function uHe(t,r,s,l,m,y,T,D){const I=fHe(t,r,s,l,m,T,D);if(!h_(m,q)&&m.indexOf("*")===-1&&ef(y,m)){const V=y[m];return I(V,"",!1,m)}const W=fN(gi(ET(y),V=>V.indexOf("*")!==-1||h_(V,"/")),xQ);for(const V of W)if(r.features&16&&O(V,m)){const ee=y[V],te=V.indexOf("*"),oe=m.substring(V.substring(0,te).length,m.length-(V.length-1-te));return I(ee,oe,!0,V)}else if(h_(V,"*")&&xf(m,V.substring(0,V.length-1))){const ee=y[V],te=m.substring(V.length-1);return I(ee,te,!0,V)}else if(xf(m,V)){const ee=y[V],te=m.substring(V.length);return I(ee,te,!1,V)}function O(V,ee){if(h_(V,"*"))return!1;const te=V.indexOf("*");return te===-1?!1:xf(ee,V.substring(0,te))&&h_(ee,V.substring(te+1))}}function fHe(t,r,s,l,m,y,T){return D;function D(I,W,O,V){if(typeof I=="string"){if(!O&&W.length>0&&!h_(I,"/"))return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);if(!xf(I,"./")){if(T&&!xf(I,"../")&&!xf(I,"/")&&!mm(I)){const Le=O?I.replace(/\*/g,W):I+W;C6(r,w.Using_0_subpath_1_with_target_2,"imports",V,Le),C6(r,w.Resolving_module_0_from_1,Le,y.packageDirectory+"/");const ht=bQ(r.features,Le,y.packageDirectory+"/",r.compilerOptions,r.host,s,t,!1,l);return rx(ht.resolvedModule?{path:ht.resolvedModule.resolvedFileName,extension:ht.resolvedModule.extension,packageId:ht.resolvedModule.packageId,originalPath:ht.resolvedModule.originalPath,resolvedUsingTsExtension:ht.resolvedModule.resolvedUsingTsExtension}:void 0)}return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0)}const ue=(U2(I)?g0(I).slice(1):g0(I)).slice(1);if(ue.indexOf("..")>=0||ue.indexOf(".")>=0||ue.indexOf("node_modules")>=0)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);const Ne=tf(y.packageDirectory,I),Be=g0(W);if(Be.indexOf("..")>=0||Be.indexOf(".")>=0||Be.indexOf("node_modules")>=0)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);r.traceEnabled&&Vf(r.host,w.Using_0_subpath_1_with_target_2,T?"imports":"exports",V,O?I.replace(/\*/g,W):I+W);const Ve=ee(O?Ne.replace(/\*/g,W):Ne+W),pt=oe(Ve,W,tf(y.packageDirectory,"package.json"),T);return pt||rx(kW(y,d$(t,Ve,!1,r)))}else if(typeof I=="object"&&I!==null)if(Array.isArray(I)){if(!Nt(I))return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);for(const de of I){const ue=D(de,W,O,V);if(ue)return ue}}else{C6(r,w.Entering_conditional_exports);for(const de of ET(I))if(de==="default"||r.conditions.indexOf(de)>=0||g$(r.conditions,de)){C6(r,w.Matched_0_condition_1,T?"imports":"exports",de);const ue=I[de],Ne=D(ue,W,O,V);if(Ne)return C6(r,w.Resolved_under_condition_0,de),C6(r,w.Exiting_conditional_exports),Ne;C6(r,w.Failed_to_resolve_under_condition_0,de)}else C6(r,w.Saw_non_matching_condition_0,de);C6(r,w.Exiting_conditional_exports);return}else if(I===null)return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_explicitly_maps_specifier_1_to_null,y.packageDirectory,m),rx(void 0);return r.traceEnabled&&Vf(r.host,w.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,y.packageDirectory,m),rx(void 0);function ee(de){var ue,Ne;return de===void 0?de:Su(de,(Ne=(ue=r.host).getCurrentDirectory)==null?void 0:Ne.call(ue))}function te(de,ue){return Rv(tf(de,ue))}function oe(de,ue,Ne,Be){var Ve,pt,Le,ht;if(!r.isConfigLookup&&(r.compilerOptions.declarationDir||r.compilerOptions.outDir)&&de.indexOf("/node_modules/")===-1&&(!r.compilerOptions.configFile||GC(y.packageDirectory,ee(r.compilerOptions.configFile.fileName),!nme(r)))){const _t=hR({useCaseSensitiveFileNames:()=>nme(r)}),Dt=[];if(r.compilerOptions.rootDir||r.compilerOptions.composite&&r.compilerOptions.configFilePath){const Ft=ee(gF(r.compilerOptions,()=>[],((pt=(Ve=r.host).getCurrentDirectory)==null?void 0:pt.call(Ve))||"",_t));Dt.push(Ft)}else if(r.requestContainingDirectory){const Ft=ee(tf(r.requestContainingDirectory,"index.ts")),it=ee(gF(r.compilerOptions,()=>[Ft,ee(Ne)],((ht=(Le=r.host).getCurrentDirectory)==null?void 0:ht.call(Le))||"",_t));Dt.push(it);let Ye=Rv(it);for(;Ye&&Ye.length>1;){const ut=g0(Ye);ut.pop();const lt=vf(ut);Dt.unshift(lt),Ye=Rv(lt)}}Dt.length>1&&r.reportDiagnostic(W_(Be?w.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:w.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,ue===""?".":ue,Ne));for(const Ft of Dt){const it=ke(Ft);for(const Ye of it)if(GC(Ye,de,!nme(r))){const ut=de.slice(Ye.length+1),lt=tf(Ft,ut),zt=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Wt of zt)if(Pg(lt,Wt)){const tt=Fie(lt);for(const Mn of tt){if(!m$(t,Mn))continue;const kn=RU(lt,Mn,Wt,!nme(r));if(r.host.fileExists(kn))return rx(kW(y,d$(t,kn,!1,r)))}}}}}return;function ke(_t){var Dt,Ft;const it=r.compilerOptions.configFile?((Ft=(Dt=r.host).getCurrentDirectory)==null?void 0:Ft.call(Dt))||"":_t,Ye=[];return r.compilerOptions.declarationDir&&Ye.push(ee(te(it,r.compilerOptions.declarationDir))),r.compilerOptions.outDir&&r.compilerOptions.outDir!==r.compilerOptions.declarationDir&&Ye.push(ee(te(it,r.compilerOptions.outDir))),Ye}}}}function g$(t,r){if(t.indexOf("types")===-1||!xf(r,"types@"))return!1;const s=Ar.tryParse(r.substring(6));return s?s.test(At):!1}function _He(t,r,s,l,m,y){return ILe(t,r,s,l,!1,m,y)}function I2e(t,r,s){return ILe(4,t,r,s,!0,void 0,void 0)}function ILe(t,r,s,l,m,y,T){const D=l.features===0?void 0:l.features&32?99:1,I=t&5,W=t&-6;if(I){C6(l,w.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Df(I));const V=O(I);if(V)return V}if(W&&!m)return C6(l,w.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Df(W)),O(W);function O(V){return ok(hf(s),ee=>{if(Iy(ee)!=="node_modules"){const te=PLe(y,r,D,ee,T,l);return te||rx(kLe(V,r,ee,l,m,y,T))}})}}function kLe(t,r,s,l,m,y,T){const D=tf(s,"node_modules"),I=O0(D,l.host);if(!I&&l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,D),!m){const W=AQ(t,r,D,I,l,y,T);if(W)return W}if(t&4){const W=tf(D,"@types");let O=I;return I&&!O0(W,l.host)&&(l.traceEnabled&&Vf(l.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,W),O=!1),AQ(4,dHe(r,l),W,O,l,y,T)}}function AQ(t,r,s,l,m,y,T){var D,I;const W=Fd(tf(s,r)),{packageName:O,rest:V}=EQ(r),ee=tf(s,O);let te,oe=s4(W,!l,m);if(V!==""&&oe&&(!(m.features&8)||!ef(((D=te=s4(ee,!l,m))==null?void 0:D.contents.packageJsonContent)??Zn,"exports"))){const Ne=dF(t,W,!l,m);if(Ne)return Upe(Ne);const Be=C2e(t,W,!l,m,oe.contents.packageJsonContent,SQ(oe,m));return kW(oe,Be)}const de=(Ne,Be,Ve,pt)=>{let Le=(V||!(pt.features&32))&&dF(Ne,Be,Ve,pt)||C2e(Ne,Be,Ve,pt,oe&&oe.contents.packageJsonContent,oe&&SQ(oe,pt));return!Le&&oe&&(oe.contents.packageJsonContent.exports===void 0||oe.contents.packageJsonContent.exports===null)&&pt.features&32&&(Le=dF(Ne,tf(Be,"index.js"),Ve,pt)),kW(oe,Le)};if(V!==""&&(oe=te??s4(ee,!l,m)),oe&&oe.contents.packageJsonContent.exports&&m.features&8)return(I=uae(oe,t,tf(".",V),m,y,T))==null?void 0:I.value;const ue=V!==""&&oe?SQ(oe,m):void 0;if(ue){m.traceEnabled&&Vf(m.host,w.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ue.version,At,V);const Ne=l&&O0(ee,m.host),Be=k2e(t,V,ee,ue.paths,void 0,de,!Ne,m);if(Be)return Be.value}return de(t,W,!l,m)}function k2e(t,r,s,l,m,y,T,D){m||(m=qH(l));const I=aoe(m,r);if(I){const W=As(I)?void 0:AL(I,r),O=As(I)?I:pTe(I);return D.traceEnabled&&Vf(D.host,w.Module_name_0_matched_pattern_1,r,O),{value:Ot(l[O],ee=>{const te=W?ee.replace("*",W):ee,oe=Fd(tf(s,te));D.traceEnabled&&Vf(D.host,w.Trying_substitution_0_candidate_module_location_Colon_1,ee,te);const de=OT(ee);if(de!==void 0){const ue=TQ(oe,T,D);if(ue!==void 0)return Upe({path:ue,ext:de,resolvedUsingTsExtension:void 0})}return y(t,oe,T||!O0(qc(oe),D.host),D)})}}}function dHe(t,r){const s=CQ(t);return r.traceEnabled&&s!==t&&Vf(r.host,w.Scoped_package_detected_looking_in_0,s),s}function tme(t){return`@types/${CQ(t)}`}function CQ(t){if(xf(t,"@")){const r=t.replace(q,IQ);if(r!==t)return r.slice(1)}return t}function _ae(t){const r=Sz(t,"@types/");return r!==t?dae(r):t}function dae(t){return Ub(t,IQ)?"@"+t.replace(IQ,q):t}function PLe(t,r,s,l,m,y){const T=t&&t.getFromNonRelativeNameCache(r,s,l,m);if(T)return y.traceEnabled&&Vf(y.host,w.Resolution_for_module_0_was_found_in_cache_from_location_1,r,l),y.resultFromCache=T,{value:T.resolvedModule&&{path:T.resolvedModule.resolvedFileName,originalPath:T.resolvedModule.originalPath||!0,extension:T.resolvedModule.extension,packageId:T.resolvedModule.packageId,resolvedUsingTsExtension:T.resolvedModule.resolvedUsingTsExtension}}}function pae(t,r,s,l,m,y){const T=Dk(s,l),D=[],I=[],W=qc(r),O=[],V={compilerOptions:s,host:l,traceEnabled:T,failedLookupLocations:D,affectingLocations:I,packageJsonInfoCache:m,features:0,conditions:[],requestContainingDirectory:W,reportDiagnostic:oe=>void O.push(oe),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},ee=te(5)||te(2|(s.resolveJsonModule?8:0));return Hpe(t,ee&&ee.value,(ee==null?void 0:ee.value)&&NW(ee.value.path),D,I,O,V);function te(oe){const de=sae(oe,t,W,ALe,V);if(de)return{value:de};if(tb(t)){const ue=Fd(tf(W,t));return rx(ALe(oe,ue,!1,V))}else{const ue=ok(W,Ne=>{const Be=PLe(m,t,void 0,Ne,y,V);if(Be)return Be;const Ve=Fd(tf(Ne,t));return rx(ALe(oe,Ve,!1,V))});if(ue)return ue;if(oe&5){let Ne=I2e(t,W,V);return oe&4&&(Ne??(Ne=tj(t,V))),Ne}}}}function tj(t,r){if(r.compilerOptions.typeRoots)for(const s of r.compilerOptions.typeRoots){const l=eHe(s,t,r),m=O0(s,r.host);!m&&r.traceEnabled&&Vf(r.host,w.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const y=dF(4,l,!m,r);if(y){const D=wW(y.path),I=D?s4(D,!1,r):void 0;return rx(kW(I,y))}const T=A2e(4,l,!m,r);if(T)return rx(T)}}function c4(t,r){return!!t.allowImportingTsExtensions||r&&iT(r)}function DQ(t,r,s,l,m,y){const T=Dk(s,l);T&&Vf(l,w.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,r,t,m);const D=[],I=[],W=[],O={compilerOptions:s,host:l,traceEnabled:T,failedLookupLocations:D,affectingLocations:I,packageJsonInfoCache:y,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:ee=>void W.push(ee),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},V=kLe(4,t,m,O,!1,void 0,void 0);return bLe(V,!0,D,I,W,O.resultFromCache)}function rx(t){return t!==void 0?{value:t}:void 0}function C6(t,r,...s){t.traceEnabled&&Vf(t.host,r,...s)}function nme(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var MW,P2e,C2,ix,IQ,NLe=G({"src/compiler/moduleNameResolver.ts"(){Ad(),P2e=tf("node_modules","@types"),C2=(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))(C2||{}),ix="/node_modules/",IQ="__"}});function kR(t,r){return t.body&&!t.body.parent&&(kl(t.body,t),Q2(t.body,!1)),t.body?mae(t.body,r):1}function mae(t,r=new Map){const s=Im(t);if(r.has(s))return r.get(s)||0;r.set(s,void 0);const l=IP(t,r);return r.set(s,l),l}function IP(t,r){switch(t.kind){case 264:case 265:return 0;case 266:if(gP(t))return 2;break;case 272:case 271:if(!il(t,1))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let l=0;for(const m of s.exportClause.elements){const y=N2e(m,r);if(y>l&&(l=y),l===1)return l}return l}break;case 268:{let l=0;return B_(t,m=>{const y=mae(m,r);switch(y){case 0:return;case 2:l=2;return;case 1:return l=1,!0;default:ce.assertNever(y)}}),l}case 267:return kR(t,r);case 80:if(t.flags&4096)return 0}return 1}function N2e(t,r){const s=t.propertyName||t.name;let l=t.parent;for(;l;){if(E_(l)||z0(l)||tl(l)){const m=l.statements;let y;for(const T of m)if(FU(T,s)){T.parent||(kl(T,l),Q2(T,!1));const D=mae(T,r);if((y===void 0||D>y)&&(y=D),y===1)return y;T.kind===271&&(y=1)}if(y!==void 0)return y}l=l.parent}return 1}function nj(t){return ce.attachFlowNodeDebugInfo(t),t}function YN(t,r){var s,l;jf("beforeBind"),(s=jD)==null||s.logStartBindFile(""+t.fileName),R3(t,r),(l=jD)==null||l.logStopBindFile(),jf("afterBind"),dd("Bind","beforeBind","afterBind")}function wLe(){var t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht=!1,ke=0,_t,Dt,Ft={flags:1},it={flags:1},Ye=We();return lt;function ut(Me,jn,...Mi){return M0(ns(Me)||t,Me,jn,...Mi)}function lt(Me,jn){var Mi,js;t=Me,r=jn,s=iu(r),Le=zt(t,jn),Dt=new Set,ke=0,_t=nv.getSymbolConstructor(),ce.attachFlowNodeDebugInfo(Ft),ce.attachFlowNodeDebugInfo(it),t.locals||((Mi=tu)==null||Mi.push(tu.Phase.Bind,"bindSourceFile",{path:t.path},!0),Qn(t),(js=tu)==null||js.pop(),t.symbolCount=ke,t.classifiableNames=Dt,zv()),t=void 0,r=void 0,s=void 0,l=void 0,m=void 0,y=void 0,T=void 0,D=void 0,I=void 0,W=!1,O=void 0,V=void 0,ee=void 0,te=void 0,oe=void 0,de=void 0,ue=void 0,Be=void 0,Ve=!1,ht=!1,pt=0}function zt(Me,jn){return hv(jn,"alwaysStrict")&&!Me.isDeclarationFile?!0:!!Me.externalModuleIndicator}function Wt(Me,jn){return ke++,new _t(Me,jn)}function tt(Me,jn,Mi){Me.flags|=Mi,jn.symbol=Me,Me.declarations=ST(Me.declarations,jn),Mi&1955&&!Me.exports&&(Me.exports=Td()),Mi&6240&&!Me.members&&(Me.members=Td()),Me.constEnumOnlyModule&&Me.flags&304&&(Me.constEnumOnlyModule=!1),Mi&111551&&aG(Me,jn)}function Mn(Me){if(Me.kind===277)return Me.isExportEquals?"export=":"default";const jn=o_(Me);if(jn){if(Ov(Me)){const Mi=aC(jn);return $C(Me)?"__global":`"${Mi}"`}if(jn.kind===167){const Mi=jn.expression;if(Qv(Mi))return ty(Mi.text);if(K2(Mi))return Nd(Mi.operator)+Mi.operand.text;ce.fail("Only computed properties with literal names have declaration names")}if(Gu(jn)){const Mi=h0(Me);if(!Mi)return;const js=Mi.symbol;return R7(js,jn.escapedText)}return dI(jn)?bR(jn):yA(jn)?gY(jn):void 0}switch(Me.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(Qy(Me)===2)return"export=";ce.fail("Unknown binary declaration kind");break;case 324:return J8(Me)?"__new":"__call";case 169:return ce.assert(Me.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${ce.formatSyntaxKind(Me.parent.kind)}, expected JSDocFunctionType`),"arg"+Me.parent.parameters.indexOf(Me)}}function kn(Me){return Xv(Me)?Ud(Me.name):lf(ce.checkDefined(Mn(Me)))}function cr(Me,jn,Mi,js,X_,$l,y_){ce.assert(y_||!nI(Mi));const l_=il(Mi,1024)||Oy(Mi)&&Mi.name.escapedText==="default",Ph=y_?"__computed":l_&&jn?"default":Mn(Mi);let Ap;if(Ph===void 0)Ap=Wt(0,"__missing");else if(Ap=Me.get(Ph),js&2885600&&Dt.add(Ph),!Ap)Me.set(Ph,Ap=Wt(0,Ph)),$l&&(Ap.isReplaceableByMethod=!0);else{if($l&&!Ap.isReplaceableByMethod)return Ap;if(Ap.flags&X_){if(Ap.isReplaceableByMethod)Me.set(Ph,Ap=Wt(0,Ph));else if(!(js&3&&Ap.flags&67108864)){Xv(Mi)&&kl(Mi.name,Mi);let Mb=Ap.flags&2?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0,_x=!0;(Ap.flags&384||js&384)&&(Mb=w.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_x=!1);let _S=!1;Nt(Ap.declarations)&&(l_||Ap.declarations&&Ap.declarations.length&&Mi.kind===277&&!Mi.isExportEquals)&&(Mb=w.A_module_cannot_have_multiple_default_exports,_x=!1,_S=!0);const e=[];mg(Mi)&&Um(Mi.type)&&il(Mi,1)&&Ap.flags&2887656&&e.push(ut(Mi,w.Did_you_mean_0,`export type { ${lf(Mi.name.escapedText)} }`));const n=o_(Mi)||Mi;Ot(Ap.declarations,(c,u)=>{const d=o_(c)||c,h=_x?ut(d,Mb,kn(c)):ut(d,Mb);t.bindDiagnostics.push(_S?ml(h,ut(n,u===0?w.Another_export_default_is_here:w.and_here)):h),_S&&e.push(ut(d,w.The_first_export_default_is_here))});const i=_x?ut(n,Mb,kn(Mi)):ut(n,Mb);t.bindDiagnostics.push(ml(i,...e)),Ap=Wt(0,Ph)}}}return tt(Ap,Mi,js),Ap.parent?ce.assert(Ap.parent===jn,"Existing symbol parent should match new one"):Ap.parent=jn,Ap}function un(Me,jn,Mi){const js=!!(Gg(Me)&1)||on(Me);if(jn&2097152)return Me.kind===281||Me.kind===271&&js?cr(m.symbol.exports,m.symbol,Me,jn,Mi):(ce.assertNode(m,lk),cr(m.locals,void 0,Me,jn,Mi));if(T2(Me)&&ce.assert(Rs(Me)),!Ov(Me)&&(js||m.flags&128)){if(!lk(m)||!m.locals||il(Me,1024)&&!Mn(Me))return cr(m.symbol.exports,m.symbol,Me,jn,Mi);const X_=jn&111551?1048576:0,$l=cr(m.locals,void 0,Me,X_,Mi);return $l.exportSymbol=cr(m.symbol.exports,m.symbol,Me,jn,Mi),Me.localSymbol=$l,$l}else return ce.assertNode(m,lk),cr(m.locals,void 0,Me,jn,Mi)}function on(Me){if(Me.parent&&xp(Me)&&(Me=Me.parent),!T2(Me))return!1;if(!BJ(Me)&&Me.fullName)return!0;const jn=o_(Me);return jn?!!(bP(jn.parent)&&Do(jn.parent)||dl(jn.parent)&&Gg(jn.parent)&1):!1}function pn(Me,jn){const Mi=m,js=y,X_=T;if(jn&1?(Me.kind!==219&&(y=m),m=T=Me,jn&32&&(m.locals=Td(),qd(m))):jn&2&&(T=Me,jn&32&&(T.locals=void 0)),jn&4){const $l=O,y_=V,l_=ee,Ph=te,Ap=ue,Mb=Be,_x=Ve,_S=jn&16&&!il(Me,512)&&!Me.asteriskToken&&!!zL(Me)||Me.kind===175;_S||(O=nj({flags:2}),jn&144&&(O.node=Me)),te=_S||Me.kind===176||Rs(Me)&&(Me.kind===262||Me.kind===218)?di():void 0,ue=void 0,V=void 0,ee=void 0,Be=void 0,Ve=!1,In(Me),Me.flags&=-5633,!(O.flags&1)&&jn&8&&wx(Me.body)&&(Me.flags|=512,Ve&&(Me.flags|=1024),Me.endFlowNode=O),Me.kind===312&&(Me.flags|=pt,Me.endFlowNode=O),te&&(Gs(te,O),O=Rr(te),(Me.kind===176||Me.kind===175||Rs(Me)&&(Me.kind===262||Me.kind===218))&&(Me.returnFlowNode=O)),_S||(O=$l),V=y_,ee=l_,te=Ph,ue=Ap,Be=Mb,Ve=_x}else jn&64?(W=!1,In(Me),ce.assertNotNode(Me,An),Me.flags=W?Me.flags|256:Me.flags&-257):In(Me);m=Mi,y=js,T=X_}function Or(Me){Xr(Me,jn=>jn.kind===262?Qn(jn):void 0),Xr(Me,jn=>jn.kind!==262?Qn(jn):void 0)}function Xr(Me,jn=Qn){Me!==void 0&&Ot(Me,jn)}function Ut(Me){B_(Me,Qn,Xr)}function In(Me){const jn=ht;if(ht=!1,DI(Me)){Ut(Me),hi(Me),ht=jn;return}switch(Me.kind>=243&&Me.kind<=259&&!r.allowUnreachableCode&&(Me.flowNode=O),Me.kind){case 247:To(Me);break;case 246:Aa(Me);break;case 248:sl(Me);break;case 249:case 250:vc(Me);break;case 245:er(Me);break;case 253:case 257:Jr(Me);break;case 252:case 251:_o(Me);break;case 258:xt(Me);break;case 255:Kn(Me);break;case 269:gn(Me);break;case 296:qr(Me);break;case 244:mt(Me);break;case 256:Cn(Me);break;case 224:es(Me);break;case 225:Ui(Me);break;case 226:if(Tg(Me)){ht=jn,xu(Me);return}Ye(Me);break;case 220:Re(Me);break;case 227:wt(Me);break;case 260:Zt(Me);break;case 211:case 212:vs(Me);break;case 213:ou(Me);break;case 235:Ks(Me);break;case 353:case 345:case 347:rr(Me);break;case 312:{Or(Me.statements),Qn(Me.endOfFileToken);break}case 241:case 268:Or(Me.statements);break;case 208:xe(Me);break;case 169:an(Me);break;case 210:case 209:case 303:case 230:ht=jn;default:Ut(Me);break}hi(Me),ht=jn}function gr(Me){switch(Me.kind){case 80:case 81:case 110:case 211:case 212:return ei(Me);case 213:return Gn(Me);case 217:case 235:return gr(Me.expression);case 226:return so(Me);case 224:return Me.operator===54&&gr(Me.operand);case 221:return gr(Me.expression)}return!1}function Cr(Me){return B7(Me)||(sa(Me)||cC(Me)||sb(Me))&&Cr(Me.expression)||ys(Me)&&Me.operatorToken.kind===28&&Cr(Me.right)||Ed(Me)&&(Qv(Me.argumentExpression)||Uh(Me.argumentExpression))&&Cr(Me.expression)||wy(Me)&&Cr(Me.left)}function ei(Me){return Cr(Me)||ky(Me)&&ei(Me.expression)}function Gn(Me){if(Me.arguments){for(const jn of Me.arguments)if(ei(jn))return!0}return!!(Me.expression.kind===211&&ei(Me.expression.expression))}function Ur(Me,jn){return Jm(Me)&&ho(Me.expression)&&sp(jn)}function so(Me){switch(Me.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(Me.left);case 35:case 36:case 37:case 38:return ho(Me.left)||ho(Me.right)||Ur(Me.right,Me.left)||Ur(Me.left,Me.right);case 104:return ho(Me.left);case 103:return gr(Me.right);case 28:return gr(Me.right)}return!1}function ho(Me){switch(Me.kind){case 217:return ho(Me.expression);case 226:switch(Me.operatorToken.kind){case 64:return ho(Me.left);case 28:return ho(Me.right)}}return ei(Me)}function di(){return nj({flags:4,antecedents:void 0})}function Nc(){return nj({flags:8,antecedents:void 0})}function ha(Me,jn,Mi){return nj({flags:1024,target:Me,antecedents:jn,antecedent:Mi})}function ro(Me){Me.flags|=Me.flags&2048?4096:2048}function Gs(Me,jn){!(jn.flags&1)&&!ni(Me.antecedents,jn)&&((Me.antecedents||(Me.antecedents=[])).push(jn),ro(jn))}function Oc(Me,jn,Mi){return jn.flags&1?jn:Mi?(Mi.kind===112&&Me&64||Mi.kind===97&&Me&32)&&!zU(Mi)&&!Qre(Mi.parent)?Ft:gr(Mi)?(ro(jn),nj({flags:Me,antecedent:jn,node:Mi})):jn:Me&32?jn:Ft}function _u(Me,jn,Mi,js){return ro(Me),nj({flags:128,antecedent:Me,switchStatement:jn,clauseStart:Mi,clauseEnd:js})}function Ku(Me,jn,Mi){ro(jn);const js=nj({flags:Me,antecedent:jn,node:Mi});return ue&&Gs(ue,js),js}function al(Me,jn){return ro(Me),nj({flags:512,antecedent:Me,node:jn})}function Rr(Me){const jn=Me.antecedents;return jn?jn.length===1?jn[0]:Me:Ft}function mc(Me){const jn=Me.parent;switch(jn.kind){case 245:case 247:case 246:return jn.expression===Me;case 248:case 227:return jn.condition===Me}return!1}function Ea(Me){for(;;)if(Me.kind===217)Me=Me.expression;else if(Me.kind===224&&Me.operator===54)Me=Me.operand;else return IH(Me)}function Fi(Me){return DH(_g(Me))}function ta(Me){for(;sb(Me.parent)||yk(Me.parent)&&Me.parent.operator===54;)Me=Me.parent;return!mc(Me)&&!Ea(Me.parent)&&!(ky(Me.parent)&&Me.parent.expression===Me)}function $a(Me,jn,Mi,js){const X_=oe,$l=de;oe=Mi,de=js,Me(jn),oe=X_,de=$l}function jc(Me,jn,Mi){$a(Qn,Me,jn,Mi),(!Me||!Fi(Me)&&!Ea(Me)&&!(ky(Me)&&M8(Me)))&&(Gs(jn,Oc(32,O,Me)),Gs(Mi,Oc(64,O,Me)))}function Xu(Me,jn,Mi){const js=V,X_=ee;V=jn,ee=Mi,Qn(Me),V=js,ee=X_}function Lo(Me,jn){let Mi=Be;for(;Mi&&Me.parent.kind===256;)Mi.continueTarget=jn,Mi=Mi.next,Me=Me.parent;return jn}function To(Me){const jn=Lo(Me,Nc()),Mi=di(),js=di();Gs(jn,O),O=jn,jc(Me.expression,Mi,js),O=Rr(Mi),Xu(Me.statement,js,jn),Gs(jn,O),O=Rr(js)}function Aa(Me){const jn=Nc(),Mi=Lo(Me,di()),js=di();Gs(jn,O),O=jn,Xu(Me.statement,js,Mi),Gs(Mi,O),O=Rr(Mi),jc(Me.expression,jn,js),O=Rr(js)}function sl(Me){const jn=Lo(Me,Nc()),Mi=di(),js=di();Qn(Me.initializer),Gs(jn,O),O=jn,jc(Me.condition,Mi,js),O=Rr(Mi),Xu(Me.statement,js,jn),Qn(Me.incrementor),Gs(jn,O),O=Rr(js)}function vc(Me){const jn=Lo(Me,Nc()),Mi=di();Qn(Me.expression),Gs(jn,O),O=jn,Me.kind===250&&Qn(Me.awaitModifier),Gs(Mi,O),Qn(Me.initializer),Me.initializer.kind!==261&&Qr(Me.initializer),Xu(Me.statement,Mi,jn),Gs(jn,O),O=Rr(Mi)}function er(Me){const jn=di(),Mi=di(),js=di();jc(Me.expression,jn,Mi),O=Rr(jn),Qn(Me.thenStatement),Gs(js,O),O=Rr(Mi),Qn(Me.elseStatement),Gs(js,O),O=Rr(js)}function Jr(Me){Qn(Me.expression),Me.kind===253&&(Ve=!0,te&&Gs(te,O)),O=Ft}function li(Me){for(let jn=Be;jn;jn=jn.next)if(jn.name===Me)return jn}function Ir(Me,jn,Mi){const js=Me.kind===252?jn:Mi;js&&(Gs(js,O),O=Ft)}function _o(Me){if(Qn(Me.label),Me.label){const jn=li(Me.label.escapedText);jn&&(jn.referenced=!0,Ir(Me,jn.breakTarget,jn.continueTarget))}else Ir(Me,V,ee)}function xt(Me){const jn=te,Mi=ue,js=di(),X_=di();let $l=di();if(Me.finallyBlock&&(te=X_),Gs($l,O),ue=$l,Qn(Me.tryBlock),Gs(js,O),Me.catchClause&&(O=Rr($l),$l=di(),Gs($l,O),ue=$l,Qn(Me.catchClause),Gs(js,O)),te=jn,ue=Mi,Me.finallyBlock){const y_=di();y_.antecedents=Hi(Hi(js.antecedents,$l.antecedents),X_.antecedents),O=y_,Qn(Me.finallyBlock),O.flags&1?O=Ft:(te&&X_.antecedents&&Gs(te,ha(y_,X_.antecedents,O)),ue&&$l.antecedents&&Gs(ue,ha(y_,$l.antecedents,O)),O=js.antecedents?ha(y_,js.antecedents,O):Ft)}else O=Rr(js)}function Kn(Me){const jn=di();Qn(Me.expression);const Mi=V,js=Ne;V=jn,Ne=O,Qn(Me.caseBlock),Gs(jn,O);const X_=Ot(Me.caseBlock.clauses,$l=>$l.kind===297);Me.possiblyExhaustive=!X_&&!jn.antecedents,X_||Gs(jn,_u(Ne,Me,0,0)),V=Mi,Ne=js,O=Rr(jn)}function gn(Me){const jn=Me.clauses,Mi=gr(Me.parent.expression);let js=Ft;for(let X_=0;X_mh(Mi)||Ly(Mi))}function x_(Me){Me.flags&33554432&&!mu(Me)?Me.flags|=128:Me.flags&=-129}function q_(Me){if(x_(Me),Ov(Me))if(il(Me,1)&&oh(Me,w.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mie(Me))Ma(Me);else{let jn;if(Me.name.kind===11){const{text:js}=Me.name;jn=c6(js),jn===void 0&&oh(Me.name,w.Pattern_0_can_have_at_most_one_Asterisk_character,js)}const Mi=z_(Me,512,110735);t.patternAmbientModules=ur(t.patternAmbientModules,jn&&!As(jn)?{pattern:jn,symbol:Mi}:void 0)}else{const jn=Ma(Me);if(jn!==0){const{symbol:Mi}=Me;Mi.constEnumOnlyModule=!(Mi.flags&304)&&jn===2&&Mi.constEnumOnlyModule!==!1}}}function Ma(Me){const jn=kR(Me),Mi=jn!==0;return z_(Me,Mi?512:1024,Mi?110735:0),jn}function U0(Me){const jn=Wt(131072,Mn(Me));tt(jn,Me,131072);const Mi=Wt(2048,"__type");tt(Mi,Me,2048),Mi.members=Td(),Mi.members.set(jn.escapedName,jn)}function c_(Me){return Oh(Me,4096,"__object")}function Kd(Me){return Oh(Me,4096,"__jsxAttributes")}function iy(Me,jn,Mi){return z_(Me,jn,Mi)}function Oh(Me,jn,Mi){const js=Wt(jn,Mi);return jn&106508&&(js.parent=m.symbol),tt(js,Me,jn),js}function jg(Me,jn,Mi){switch(T.kind){case 267:un(Me,jn,Mi);break;case 312:if(h1(m)){un(Me,jn,Mi);break}default:ce.assertNode(T,lk),T.locals||(T.locals=Td(),qd(T)),cr(T.locals,void 0,Me,jn,Mi)}}function zv(){if(!I)return;const Me=m,jn=D,Mi=T,js=l,X_=O;for(const $l of I){const y_=$l.parent.parent;m=iE(y_)||t,T=Bs(y_)||t,O=nj({flags:2}),l=$l,Qn($l.typeExpression);const l_=o_($l);if((BJ($l)||!$l.fullName)&&l_&&bP(l_.parent)){const Ph=Do(l_.parent);if(Ph){ii(t.symbol,l_.parent,Ph,!!Kr(l_,Mb=>sa(Mb)&&Mb.name.escapedText==="prototype"),!1);const Ap=m;switch(N9(l_.parent)){case 1:case 2:h1(t)?m=t:m=void 0;break;case 4:m=l_.parent.expression;break;case 3:m=l_.parent.expression.name;break;case 5:m=w3(t,l_.parent.expression)?t:sa(l_.parent.expression)?l_.parent.expression.name:l_.parent.expression;break;case 0:return ce.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}m&&un($l,524288,788968),m=Ap}}else BJ($l)||!$l.fullName||$l.fullName.kind===80?(l=$l.parent,jg($l,524288,788968)):Qn($l.fullName)}m=Me,D=jn,T=Mi,l=js,O=X_}function m_(Me){if(!t.parseDiagnostics.length&&!(Me.flags&33554432)&&!(Me.flags&16777216)&&!Pde(Me)){const jn=RL(Me);if(jn===void 0)return;Le&&jn>=119&&jn<=127?t.bindDiagnostics.push(ut(Me,Yu(Me),Ud(Me))):jn===135?Wv(t)&&Tie(Me)?t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ud(Me))):Me.flags&65536&&t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ud(Me))):jn===127&&Me.flags&16384&&t.bindDiagnostics.push(ut(Me,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ud(Me)))}}function Yu(Me){return h0(Me)?w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:w.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Tv(Me){Me.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(ut(Me,w.constructor_is_a_reserved_word,Ud(Me))))}function Kh(Me){Le&&FE(Me.left)&&zN(Me.operatorToken.kind)&&rd(Me,Me.left)}function uS(Me){Le&&Me.variableDeclaration&&rd(Me,Me.variableDeclaration.name)}function H0(Me){if(Le&&Me.expression.kind===80){const jn=UM(t,Me.expression);t.bindDiagnostics.push(Pp(t,jn.start,jn.length,w.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function fx(Me){return An(Me)&&(Me.escapedText==="eval"||Me.escapedText==="arguments")}function rd(Me,jn){if(jn&&jn.kind===80){const Mi=jn;if(fx(Mi)){const js=UM(t,jn);t.bindDiagnostics.push(Pp(t,js.start,js.length,Mg(Me),ec(Mi)))}}}function Mg(Me){return h0(Me)?w.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?w.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:w.Invalid_use_of_0_in_strict_mode}function lm(Me){Le&&rd(Me,Me.name)}function nm(Me){return h0(Me)?w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:w.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function po(Me){if(s<2&&T.kind!==312&&T.kind!==267&&!_9(T)){const jn=UM(t,Me);t.bindDiagnostics.push(Pp(t,jn.start,jn.length,nm(Me)))}}function gy(Me){Le&&rd(Me,Me.operand)}function fS(Me){Le&&(Me.operator===46||Me.operator===47)&&rd(Me,Me.operand)}function GT(Me){Le&&oh(Me,w.with_statements_are_not_allowed_in_strict_mode)}function vE(Me){Le&&iu(r)>=2&&(BVe(Me.statement)||Dh(Me.statement))&&oh(Me.label,w.A_label_is_not_allowed_here)}function oh(Me,jn,...Mi){const js=nC(t,Me.pos);t.bindDiagnostics.push(Pp(t,js.start,js.length,jn,...Mi))}function hy(Me,jn,Mi){_e(Me,jn,jn,Mi)}function _e(Me,jn,Mi,js){vn(Me,{pos:Kz(jn,t),end:Mi.end},js)}function vn(Me,jn,Mi){const js=Pp(t,jn.pos,jn.end-jn.pos,Mi);Me?t.bindDiagnostics.push(js):t.bindSuggestionDiagnostics=ur(t.bindSuggestionDiagnostics,{...js,category:2})}function Qn(Me){if(!Me)return;kl(Me,l),tu&&(Me.tracingPath=t.path);const jn=Le;if(ka(Me),Me.kind>165){const Mi=l;l=Me;const js=RLe(Me);js===0?In(Me):pn(Me,js),l=Mi}else{const Mi=l;Me.kind===1&&(l=Me),hi(Me),l=Mi}Le=jn}function hi(Me){if(g1(Me))if(Rs(Me))for(const jn of Me.jsDoc)Qn(jn);else for(const jn of Me.jsDoc)kl(jn,Me),Q2(jn,!1)}function pa(Me){if(!Le)for(const jn of Me){if(!qC(jn))return;if(Zc(jn)){Le=!0;return}}}function Zc(Me){const jn=wd(t,Me.expression);return jn==='"use strict"'||jn==="'use strict'"}function ka(Me){switch(Me.kind){case 80:if(Me.flags&4096){let y_=Me.parent;for(;y_&&!T2(y_);)y_=y_.parent;jg(y_,524288,788968);break}case 110:return O&&(Nr(Me)||l.kind===304)&&(Me.flowNode=O),m_(Me);case 166:O&&Cs(Me)&&(Me.flowNode=O);break;case 236:case 108:Me.flowNode=O;break;case 81:return Tv(Me);case 211:case 212:const jn=Me;O&&Cr(jn)&&(jn.flowNode=O),R9(jn)&&ya(jn),Rs(jn)&&t.commonJsModuleIndicator&&KC(jn)&&!rme(T,"module")&&cr(t.locals,void 0,jn.expression,134217729,111550);break;case 226:switch(Qy(Me)){case 1:jT(Me);break;case 2:Ev(Me);break;case 3:ig(Me.left,Me);break;case 6:bu(Me);break;case 4:k1(Me);break;case 5:const y_=Me.left.expression;if(Rs(Me)&&An(y_)){const l_=rme(T,y_.escapedText);if(yP(l_==null?void 0:l_.valueDeclaration)){k1(Me);break}}bt(Me);break;case 0:break;default:ce.fail("Unknown binary expression special property assignment kind")}return Kh(Me);case 299:return uS(Me);case 220:return H0(Me);case 225:return gy(Me);case 224:return fS(Me);case 254:return GT(Me);case 256:return vE(Me);case 197:W=!0;return;case 182:break;case 168:return MA(Me);case 169:return jv(Me);case 260:return Gv(Me);case 208:return Me.flowNode=O,Gv(Me);case 172:case 171:return bc(Me);case 303:case 304:return E0(Me,4,0);case 306:return E0(Me,8,900095);case 179:case 180:case 181:return z_(Me,131072,0);case 174:case 173:return E0(Me,8192|(Me.questionToken?16777216:0),q2(Me)?0:103359);case 262:return yy(Me);case 176:return z_(Me,16384,0);case 177:return E0(Me,32768,46015);case 178:return E0(Me,65536,78783);case 184:case 324:case 330:case 185:return U0(Me);case 187:case 329:case 200:return gu(Me);case 339:return mi(Me);case 210:return c_(Me);case 218:case 219:return ub(Me);case 213:switch(Qy(Me)){case 7:return Fy(Me);case 8:return Sv(Me);case 9:return K_(Me);case 0:break;default:return ce.fail("Unknown call expression assignment declaration kind")}Rs(Me)&&zp(Me);break;case 231:case 263:return Le=!0,gh(Me);case 264:return jg(Me,64,788872);case 265:return jg(Me,524288,788968);case 266:return Wh(Me);case 267:return q_(Me);case 292:return Kd(Me);case 291:return iy(Me,4,0);case 271:case 274:case 276:case 281:return z_(Me,2097152,2097152);case 270:return av(Me);case 273:return J0(Me);case 278:return Fh(Me);case 277:return Lg(Me);case 312:return pa(Me.statements),yu();case 241:if(!_9(Me.parent))return;case 268:return pa(Me.statements);case 348:if(Me.parent.kind===330)return jv(Me);if(Me.parent.kind!==329)break;case 355:const X_=Me,$l=X_.isBracketed||X_.typeExpression&&X_.typeExpression.type.kind===323?16777220:4;return z_(X_,$l,0);case 353:case 345:case 347:return(I||(I=[])).push(Me);case 346:return Qn(Me.typeExpression)}}function bc(Me){const jn=rb(Me),Mi=jn?98304:4,js=jn?13247:0;return E0(Me,Mi|(Me.questionToken?16777216:0),js)}function gu(Me){return Oh(Me,2048,"__type")}function yu(){if(x_(t),Wv(t))Xm();else if(Py(t)){Xm();const Me=t.symbol;cr(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Me}}function Xm(){Oh(t,512,`"${wg(t.fileName)}"`)}function Lg(Me){if(!m.symbol||!m.symbol.exports)Oh(Me,111551,Mn(Me));else{const jn=ZM(Me)?2097152:4,Mi=cr(m.symbol.exports,m.symbol,Me,jn,67108863);Me.isExportEquals&&aG(Mi,Me)}}function av(Me){gt(Me.modifiers)&&t.bindDiagnostics.push(ut(Me,w.Modifiers_cannot_appear_here));const jn=tl(Me.parent)?Wv(Me.parent)?Me.parent.isDeclarationFile?void 0:w.Global_module_exports_may_only_appear_in_declaration_files:w.Global_module_exports_may_only_appear_in_module_files:w.Global_module_exports_may_only_appear_at_top_level;jn?t.bindDiagnostics.push(ut(Me,jn)):(t.symbol.globalExports=t.symbol.globalExports||Td(),cr(t.symbol.globalExports,t.symbol,Me,2097152,2097152))}function Fh(Me){!m.symbol||!m.symbol.exports?Oh(Me,8388608,Mn(Me)):Me.exportClause?AP(Me.exportClause)&&(kl(Me.exportClause,Me),cr(m.symbol.exports,m.symbol,Me.exportClause,2097152,2097152)):cr(m.symbol.exports,m.symbol,Me,8388608,0)}function J0(Me){Me.name&&z_(Me,2097152,2097152)}function Eg(Me){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Me,t.externalModuleIndicator||Xm()),!0)}function Sv(Me){if(!Eg(Me))return;const jn=N_(Me.arguments[0],void 0,(Mi,js)=>(js&&tt(js,Mi,67110400),js));jn&&cr(jn.exports,jn,Me,1048580,0)}function jT(Me){if(!Eg(Me))return;const jn=N_(Me.left.expression,void 0,(Mi,js)=>(js&&tt(js,Mi,67110400),js));if(jn){const js=gR(Me.right)&&(GL(Me.left.expression)||KC(Me.left.expression))?2097152:1048580;kl(Me.left,Me),cr(jn.exports,jn,Me.left,js,0)}}function Ev(Me){if(!Eg(Me))return;const jn=mR(Me.right);if(Vie(jn)||m===t&&w3(t,jn))return;if(Wd(jn)&&jr(jn.properties,BT)){Ot(jn.properties,S0);return}const Mi=ZM(Me)?2097152:1049092,js=cr(t.symbol.exports,t.symbol,Me,Mi|67108864,0);aG(js,Me)}function S0(Me){cr(t.symbol.exports,t.symbol,Me,69206016,0)}function k1(Me){if(ce.assert(Rs(Me)),ys(Me)&&sa(Me.left)&&Gu(Me.left.name)||sa(Me)&&Gu(Me.name))return;const Mi=Q1(Me,!1,!1);switch(Mi.kind){case 262:case 218:let js=Mi.symbol;if(ys(Mi.parent)&&Mi.parent.operatorToken.kind===64){const y_=Mi.parent.left;XM(y_)&&r6(y_.expression)&&(js=du(y_.expression.expression,y))}js&&js.valueDeclaration&&(js.members=js.members||Td(),nI(Me)?tn(Me,js,js.members):cr(js.members,js,Me,67108868,0),tt(js,js.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const X_=Mi.parent,$l=e_(Mi)?X_.symbol.exports:X_.symbol.members;nI(Me)?tn(Me,X_.symbol,$l):cr($l,X_.symbol,Me,67108868,0,!0);break;case 312:if(nI(Me))break;Mi.commonJsModuleIndicator?cr(Mi.symbol.exports,Mi.symbol,Me,1048580,0):z_(Me,1,111550);break;case 267:break;default:ce.failBadSyntaxKind(Mi)}}function tn(Me,jn,Mi){cr(Mi,jn,Me,4,0,!0,!0),fi(Me,jn)}function fi(Me,jn){jn&&(jn.assignmentDeclarationMembers||(jn.assignmentDeclarationMembers=new Map)).set(Im(Me),Me)}function ya(Me){Me.expression.kind===110?k1(Me):XM(Me)&&Me.parent.parent.kind===312&&(r6(Me.expression)?ig(Me,Me.parent):ir(Me))}function bu(Me){kl(Me.left,Me),kl(Me.right,Me),Za(Me.left.expression,Me.left,!1,!0)}function K_(Me){const jn=du(Me.arguments[0].expression);jn&&jn.valueDeclaration&&tt(jn,jn.valueDeclaration,32),Si(Me,jn,!0)}function ig(Me,jn){const Mi=Me.expression,js=Mi.expression;kl(js,Mi),kl(Mi,Me),kl(Me,jn),Za(js,Me,!0,!0)}function Fy(Me){let jn=du(Me.arguments[0]);const Mi=Me.parent.parent.kind===312;jn=ii(jn,Me.arguments[0],Mi,!1,!1),Si(Me,jn,!1)}function bt(Me){var jn;const Mi=du(Me.left.expression,m)||du(Me.left.expression,T);if(!Rs(Me)&&!M9(Mi))return;const js=i3(Me.left);if(!(An(js)&&((jn=rme(m,js.escapedText))==null?void 0:jn.flags)&2097152))if(kl(Me.left,Me),kl(Me.right,Me),An(Me.left.expression)&&m===t&&w3(t,Me.left.expression))jT(Me);else if(nI(Me)){Oh(Me,67108868,"__computed");const X_=ii(Mi,Me.left.expression,Do(Me.left),!1,!1);fi(Me,X_)}else ir(uc(Me.left,jL))}function ir(Me){ce.assert(!An(Me)),kl(Me.expression,Me),Za(Me.expression,Me,!1,!1)}function ii(Me,jn,Mi,js,X_){return(Me==null?void 0:Me.flags)&2097152||(Mi&&!js&&(Me=N_(jn,Me,(l_,Ph,Ap)=>{if(Ph)return tt(Ph,l_,67110400),Ph;{const Mb=Ap?Ap.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Td());return cr(Mb,Ap,l_,67110400,110735)}})),X_&&Me&&Me.valueDeclaration&&tt(Me,Me.valueDeclaration,32)),Me}function Si(Me,jn,Mi){if(!jn||!Qc(jn))return;const js=Mi?jn.members||(jn.members=Td()):jn.exports||(jn.exports=Td());let X_=0,$l=0;J_(x7(Me))?(X_=8192,$l=103359):el(Me)&&cH(Me)&&(gt(Me.arguments[2].properties,y_=>{const l_=o_(y_);return!!l_&&An(l_)&&ec(l_)==="set"})&&(X_|=65540,$l|=78783),gt(Me.arguments[2].properties,y_=>{const l_=o_(y_);return!!l_&&An(l_)&&ec(l_)==="get"})&&(X_|=32772,$l|=46015)),X_===0&&(X_=4,$l=0),cr(js,jn,Me,X_|67108864,$l&-67108865)}function Do(Me){return ys(Me.parent)?Al(Me.parent).parent.kind===312:Me.parent.parent.kind===312}function Za(Me,jn,Mi,js){let X_=du(Me,m)||du(Me,T);const $l=Do(jn);X_=ii(X_,jn.expression,$l,Mi,js),Si(jn,X_,Mi)}function Qc(Me){if(Me.flags&1072)return!0;const jn=Me.valueDeclaration;if(jn&&el(jn))return!!x7(jn);let Mi=jn?ff(jn)?jn.initializer:ys(jn)?jn.right:sa(jn)&&ys(jn.parent)?jn.parent.right:void 0:void 0;if(Mi=Mi&&mR(Mi),Mi){const js=r6(ff(jn)?jn.name:ys(jn)?jn.left:jn);return!!jE(ys(Mi)&&(Mi.operatorToken.kind===57||Mi.operatorToken.kind===61)?Mi.right:Mi,js)}return!1}function Al(Me){for(;ys(Me.parent);)Me=Me.parent;return Me.parent}function du(Me,jn=m){if(An(Me))return rme(jn,Me.escapedText);{const Mi=du(Me.expression);return Mi&&Mi.exports&&Mi.exports.get(XC(Me))}}function N_(Me,jn,Mi){if(w3(t,Me))return t.symbol;if(An(Me))return Mi(Me,du(Me),jn);{const js=N_(Me.expression,jn,Mi),X_=dY(Me);return Gu(X_)&&ce.fail("unexpected PrivateIdentifier"),Mi(X_,js&&js.exports&&js.exports.get(XC(Me)),js)}}function zp(Me){!t.commonJsModuleIndicator&&eT(Me,!1)&&Eg(Me)}function gh(Me){if(Me.kind===263)jg(Me,32,899503);else{const X_=Me.name?Me.name.escapedText:"__class";Oh(Me,32,X_),Me.name&&Dt.add(Me.name.escapedText)}const{symbol:jn}=Me,Mi=Wt(4194308,"prototype"),js=jn.exports.get(Mi.escapedName);js&&(Me.name&&kl(Me.name,Me),t.bindDiagnostics.push(ut(js.declarations[0],w.Duplicate_identifier_0,mp(Mi)))),jn.exports.set(Mi.escapedName,Mi),Mi.parent=jn}function Wh(Me){return gP(Me)?jg(Me,128,899967):jg(Me,256,899327)}function Gv(Me){if(Le&&rd(Me,Me.name),!ld(Me.name)){const jn=Me.kind===260?Me:Me.parent.parent;Rs(Me)&&GH(r)&&pR(jn)&&!w8(Me)&&!(Gg(Me)&1)?z_(Me,2097152,2097152):pde(Me)?jg(Me,2,111551):Y8(Me)?z_(Me,1,111551):z_(Me,1,111550)}}function jv(Me){if(!(Me.kind===348&&m.kind!==330)&&(Le&&!(Me.flags&33554432)&&rd(Me,Me.name),ld(Me.name)?Oh(Me,1,"__"+Me.parent.parameters.indexOf(Me)):z_(Me,1,111551),Eb(Me,Me.parent))){const jn=Me.parent.parent;cr(jn.symbol.members,jn.symbol,Me,4|(Me.questionToken?16777216:0),0)}}function yy(Me){!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),lm(Me),Le?(po(Me),jg(Me,16,110991)):z_(Me,16,110991)}function ub(Me){!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),O&&(Me.flowNode=O),lm(Me);const jn=Me.name?Me.name.escapedText:"__function";return Oh(Me,16,jn)}function E0(Me,jn,Mi){return!t.isDeclarationFile&&!(Me.flags&33554432)&&FN(Me)&&(pt|=4096),O&&zE(Me)&&(Me.flowNode=O),nI(Me)?Oh(Me,jn,"__computed"):z_(Me,jn,Mi)}function P2(Me){const jn=Kr(Me,Mi=>Mi.parent&&hW(Mi.parent)&&Mi.parent.extendsType===Mi);return jn&&jn.parent}function MA(Me){if(jx(Me.parent)){const jn=q8(Me.parent);jn?(ce.assertNode(jn,lk),jn.locals??(jn.locals=Td()),cr(jn.locals,void 0,Me,262144,526824)):z_(Me,262144,526824)}else if(Me.parent.kind===195){const jn=P2(Me.parent);jn?(ce.assertNode(jn,lk),jn.locals??(jn.locals=Td()),cr(jn.locals,void 0,Me,262144,526824)):Oh(Me,262144,Mn(Me))}else z_(Me,262144,526824)}function aw(Me){const jn=kR(Me);return jn===1||jn===2&&gk(r)}function DI(Me){if(!(O.flags&1))return!1;if(O===Ft&&(YX(Me)&&Me.kind!==242||Me.kind===263||Me.kind===267&&aw(Me))&&(O=it,!r.allowUnreachableCode)){const Mi=WSe(r)&&!(Me.flags&33554432)&&(!Dh(Me)||!!(qD(Me.declarationList)&7)||Me.declarationList.declarations.some(js=>!!js.initializer));Bst(Me,(js,X_)=>_e(Mi,js,X_,w.Unreachable_code_detected))}return!0}}function Bst(t,r){if(uf(t)&&pHe(t)&&E_(t.parent)){const{statements:s}=t.parent,l=soe(s,t);eu(l,pHe,(m,y)=>r(l[m],l[y-1]))}else r(t,t)}function pHe(t){return!b0(t)&&!rj(t)&&!Ih(t)&&!(Dh(t)&&!(qD(t)&7)&&t.declarationList.declarations.some(r=>!r.initializer))}function rj(t){switch(t.kind){case 264:case 265:return!0;case 267:return kR(t)!==1;case 266:return il(t,2048);default:return!1}}function w3(t,r){let s=0;const l=$w();for(l.enqueue(r);!l.isEmpty()&&s<100;){if(s++,r=l.dequeue(),GL(r)||KC(r))return!0;if(An(r)){const m=rme(t,r.escapedText);if(m&&m.valueDeclaration&&ff(m.valueDeclaration)&&m.valueDeclaration.initializer){const y=m.valueDeclaration.initializer;l.enqueue(y),wy(y,!0)&&(l.enqueue(y.left),l.enqueue(y.right))}}}return!1}function RLe(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(zE(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 S_(t.parent)||nu(t.parent)?0:34}return 0}function rme(t,r){var s,l,m,y;const T=(l=(s=to(t,lk))==null?void 0:s.locals)==null?void 0:l.get(r);if(T)return T.exportSymbol??T;if(tl(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r))return t.jsGlobalAugmentations.get(r);if(YD(t))return(y=(m=t.symbol)==null?void 0:m.exports)==null?void 0:y.get(r)}var w2e,MLe,R3,R2e=G({"src/compiler/binder.ts"(){Ad(),NM(),w2e=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(w2e||{}),MLe=(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))(MLe||{}),R3=wLe()}});function gae(t,r,s,l,m,y,T,D,I,W){return O;function O(V=()=>!0){const ee=[],te=[];return{walkType:Dt=>{try{return oe(Dt),{visitedTypes:ik(ee),visitedSymbols:ik(te)}}finally{g_(ee),g_(te)}},walkSymbol:Dt=>{try{return _t(Dt),{visitedTypes:ik(ee),visitedSymbols:ik(te)}}finally{g_(ee),g_(te)}}};function oe(Dt){if(!(!Dt||ee[Dt.id]||(ee[Dt.id]=Dt,_t(Dt.symbol)))){if(Dt.flags&524288){const it=Dt,Ye=it.objectFlags;Ye&4&&de(Dt),Ye&32&&pt(Dt),Ye&3&&ht(Dt),Ye&24&&ke(it)}Dt.flags&262144&&ue(Dt),Dt.flags&3145728&&Ne(Dt),Dt.flags&4194304&&Be(Dt),Dt.flags&8388608&&Ve(Dt)}}function de(Dt){oe(Dt.target),Ot(W(Dt),oe)}function ue(Dt){oe(D(Dt))}function Ne(Dt){Ot(Dt.types,oe)}function Be(Dt){oe(Dt.type)}function Ve(Dt){oe(Dt.objectType),oe(Dt.indexType),oe(Dt.constraint)}function pt(Dt){oe(Dt.typeParameter),oe(Dt.constraintType),oe(Dt.templateType),oe(Dt.modifiersType)}function Le(Dt){const Ft=r(Dt);Ft&&oe(Ft.type),Ot(Dt.typeParameters,oe);for(const it of Dt.parameters)_t(it);oe(t(Dt)),oe(s(Dt))}function ht(Dt){ke(Dt),Ot(Dt.typeParameters,oe),Ot(l(Dt),oe),oe(Dt.thisType)}function ke(Dt){const Ft=m(Dt);for(const it of Ft.indexInfos)oe(it.keyType),oe(it.type);for(const it of Ft.callSignatures)Le(it);for(const it of Ft.constructSignatures)Le(it);for(const it of Ft.properties)_t(it)}function _t(Dt){if(!Dt)return!1;const Ft=Bp(Dt);if(te[Ft])return!1;if(te[Ft]=Dt,!V(Dt))return!0;const it=y(Dt);return oe(it),Dt.exports&&Dt.exports.forEach(_t),Ot(Dt.declarations,Ye=>{if(Ye.type&&Ye.type.kind===186){const ut=Ye.type,lt=T(I(ut.exprName));_t(lt)}}),!1}}}var M2e=G({"src/compiler/symbolWalker.ts"(){Ad()}});function kQ({importModuleSpecifierPreference:t,importModuleSpecifierEnding:r},s,l,m){const y=T();return{relativePreference:m!==void 0?tb(m)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:D=>{if((D??l.impliedNodeFormat)===99)return c4(s,l.fileName)?[3,2]:[2];if(Jd(s)===1)return y===2?[2,1]:[1,2];const I=c4(s,l.fileName);switch(y){case 2:return I?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return I?[1,0,3,2]:[1,0,2];case 0:return I?[0,1,3,2]:[0,1,2];default:ce.assertNever(y)}}};function T(){if(m!==void 0){if(eD(m))return 2;if(h_(m,"/index"))return 1}return ooe(r,l.impliedNodeFormat,s,l)}}function mHe(t,r,s,l,m,y,T={}){const D=gHe(t,r,s,l,m,kQ({},t,r,y),{},T);if(D!==y)return D}function ime(t,r,s,l,m,y={}){return gHe(t,r,s,l,m,kQ({},t,r),{},y)}function LLe(t,r,s,l,m,y={}){const T=OLe(r.path,l),D=BLe(r.path,s,l,m,y);return Yr(D,I=>F2e(I,T,r,l,t,m,!0,y.overrideImportMode))}function gHe(t,r,s,l,m,y,T,D={}){const I=OLe(s,m),W=BLe(s,l,m,T,D);return Yr(W,O=>F2e(O,I,r,m,t,T,void 0,D.overrideImportMode))||FLe(l,I,t,m,D.overrideImportMode||r.impliedNodeFormat,y)}function L2e(t,r,s,l,m={}){return hHe(t,r,s,l,m)[0]}function hHe(t,r,s,l,m={}){var y;const T=ny(t);if(!T)return Zn;const D=(y=s.getModuleSpecifierCache)==null?void 0:y.call(s),I=D==null?void 0:D.get(r.path,T.path,l,m);return[I==null?void 0:I.moduleSpecifiers,T,I==null?void 0:I.modulePaths,D]}function hae(t,r,s,l,m,y,T={}){return yHe(t,r,s,l,m,y,T).moduleSpecifiers}function yHe(t,r,s,l,m,y,T={}){let D=!1;const I=THe(t,r);if(I)return{moduleSpecifiers:[I],computedWithoutCache:D};let[W,O,V,ee]=hHe(t,l,m,y,T);if(W)return{moduleSpecifiers:W,computedWithoutCache:D};if(!O)return{moduleSpecifiers:Zn,computedWithoutCache:D};D=!0,V||(V=vae(l.path,O.originalFileName,m));const te=vHe(V,s,l,m,y,T);return ee==null||ee.set(l.path,O.path,y,T,V,te),{moduleSpecifiers:te,computedWithoutCache:D}}function vHe(t,r,s,l,m,y={}){const T=OLe(s.path,l),D=kQ(m,r,s),I=Ot(t,oe=>Ot(l.getFileIncludeReasons().get(_h(oe.path,l.getCurrentDirectory(),T.getCanonicalFileName)),de=>{if(de.kind!==3||de.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==yxe(s,de.index))return;const ue=k$(s,de.index).text;return D.relativePreference!==1||!U2(ue)?ue:void 0}));if(I)return[I];const W=gt(t,oe=>oe.isInNodeModules);let O,V,ee,te;for(const oe of t){const de=oe.isInNodeModules?F2e(oe,T,s,l,r,m,void 0,y.overrideImportMode):void 0;if(O=ur(O,de),de&&oe.isRedirect)return O;if(!de){const ue=FLe(oe.path,T,r,l,y.overrideImportMode||s.impliedNodeFormat,D,oe.isRedirect);if(!ue)continue;oe.isRedirect?ee=ur(ee,ue):vMe(ue)?V=ur(V,ue):(!W||oe.isInNodeModules)&&(te=ur(te,ue))}}return V!=null&&V.length?V:ee!=null&&ee.length?ee:O!=null&&O.length?O:ce.checkDefined(te)}function OLe(t,r){const s=_v(r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames():!0),l=qc(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:l}}function FLe(t,r,s,l,m,{getAllowedEndingsInPreferredOrder:y,relativePreference:T},D){const{baseUrl:I,paths:W,rootDirs:O}=s;if(D&&!W)return;const{sourceDirectory:V,getCanonicalFileName:ee}=r,te=y(m),oe=O&&SHe(O,t,V,ee,te,s)||ij(OE(qp(V,t,ee)),te,s);if(!I&&!W||T===0)return D?void 0:oe;const de=Su(G9(s,l)||I,l.getCurrentDirectory()),ue=jLe(t,de,ee);if(!ue)return D?void 0:oe;const Ne=W&&zLe(ue,W,te,l,s);if(D)return Ne;const Be=Ne===void 0&&I!==void 0?ij(ue,te,s):Ne;if(!Be)return oe;if(T===1&&!U2(Be))return Be;if(T===3&&!U2(Be)){const Ve=s.configFilePath?_h(qc(s.configFilePath),l.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(l.getCurrentDirectory()),pt=_h(t,Ve,ee),Le=xf(V,Ve),ht=xf(pt,Ve);if(Le&&!ht||!Le&&ht)return Be;const ke=bHe(l,qc(pt));return bHe(l,V)!==ke?Be:oe}return PQ(Be)||yae(oe)t.fileExists(tf(s,"package.json"))?!0:void 0)}function O2e(t,r,s,l,m){var y;const T=hR(s),D=s.getCurrentDirectory(),I=s.isSourceOfProjectReferenceRedirect(r)?s.getProjectReferenceRedirect(r):void 0,W=_h(r,D,T),O=s.redirectTargetsMap.get(W)||Zn,ee=[...I?[I]:Zn,r,...O].map(Ne=>Su(Ne,D));let te=!jr(ee,_3);if(!l){const Ne=Ot(ee,Be=>!(te&&_3(Be))&&m(Be,I===Be));if(Ne)return Ne}const oe=(y=s.getSymlinkCache)==null?void 0:y.call(s).getSymlinkedDirectoriesByRealpath(),de=Su(r,D);return oe&&ok(qc(de),Ne=>{const Be=oe.get(Rv(_h(Ne,D,T)));if(Be)return jC(t,Ne,T)?!1:Ot(ee,Ve=>{if(!jC(Ve,Ne,T))return;const pt=qp(Ne,Ve,T);for(const Le of Be){const ht=gm(Le,pt),ke=m(ht,Ve===I);if(te=!0,ke)return ke}})})||(l?Ot(ee,Ne=>te&&_3(Ne)?void 0:m(Ne,Ne===I)):void 0)}function BLe(t,r,s,l,m={}){var y;const T=_h(r,s.getCurrentDirectory(),hR(s)),D=(y=s.getModuleSpecifierCache)==null?void 0:y.call(s);if(D){const W=D.get(t,T,l,m);if(W!=null&&W.modulePaths)return W.modulePaths}const I=vae(t,r,s);return D&&D.setModulePaths(t,T,l,m,I),I}function vae(t,r,s){const l=hR(s),m=new Map;O2e(t,r,s,!0,(T,D)=>{const I=NW(T);m.set(T,{path:l(T),isRedirect:D,isInNodeModules:I})});const y=[];for(let T=qc(t);m.size!==0;){const D=Rv(T);let I;m.forEach(({path:O,isRedirect:V,isInNodeModules:ee},te)=>{xf(O,D)&&((I||(I=[])).push({path:te,isRedirect:V,isInNodeModules:ee}),m.delete(te))}),I&&(I.length>1&&I.sort(WLe),y.push(...I));const W=qc(T);if(W===T)break;T=W}if(m.size){const T=oc(m.values());T.length>1&&T.sort(WLe),y.push(...T)}return y}function THe(t,r){var s;const l=(s=t.declarations)==null?void 0:s.find(T=>pie(T)&&(!WL(T)||!tb(aC(T.name))));if(l)return l.name.text;const y=Qo(t.declarations,T=>{var D,I,W,O;if(!xp(T))return;const V=de(T);if(!((D=V==null?void 0:V.parent)!=null&&D.parent&&z0(V.parent)&&Ov(V.parent.parent)&&tl(V.parent.parent.parent)))return;const ee=(O=(W=(I=V.parent.parent.symbol.exports)==null?void 0:I.get("export="))==null?void 0:W.valueDeclaration)==null?void 0:O.expression;if(!ee)return;const te=r.getSymbolAtLocation(ee);if(!te)return;if(((te==null?void 0:te.flags)&2097152?r.getAliasedSymbol(te):te)===T.symbol)return V.parent.parent;function de(ue){for(;ue.flags&8;)ue=ue.parent;return ue}})[0];if(y)return y.name.text}function zLe(t,r,s,l,m){for(const T in r)for(const D of r[T]){const I=Fd(D),W=I.indexOf("*"),O=s.map(V=>({ending:V,value:ij(t,[V],m)}));if(OT(I)&&O.push({ending:void 0,value:t}),W!==-1){const V=I.substring(0,W),ee=I.substring(W+1);for(const{ending:te,value:oe}of O)if(oe.length>=V.length+ee.length&&xf(oe,V)&&h_(oe,ee)&&y({ending:te,value:oe})){const de=oe.substring(V.length,oe.length-ee.length);if(!U2(de))return T.replace("*",de)}}else if(gt(O,V=>V.ending!==0&&I===V.value)||gt(O,V=>V.ending===0&&I===V.value&&y(V)))return T}function y({ending:T,value:D}){return T!==0||D===ij(t,[T],m,l)}}function ome(t,r,s,l,m,y,T=0){if(typeof m=="string"){const D=Su(tf(s,m),void 0),I=vR(r)?wg(r)+W2e(r,t):void 0;switch(T){case 0:if(wM(r,D)===0||I&&wM(I,D)===0)return{moduleFileToTry:l};break;case 1:if(GC(D,r)){const ee=qp(D,r,!1);return{moduleFileToTry:Su(tf(tf(l,m),ee),void 0)}}break;case 2:const W=D.indexOf("*"),O=D.slice(0,W),V=D.slice(W+1);if(xf(r,O)&&h_(r,V)){const ee=r.slice(O.length,r.length-V.length);return{moduleFileToTry:l.replace("*",ee)}}if(I&&xf(I,O)&&h_(I,V)){const ee=I.slice(O.length,I.length-V.length);return{moduleFileToTry:l.replace("*",ee)}}break}}else{if(Array.isArray(m))return Ot(m,D=>ome(t,r,s,l,D,y));if(typeof m=="object"&&m!==null){if(A6(m))return Ot(ET(m),D=>{const I=Su(tf(l,D),void 0),W=h_(D,"/")?1:Ub(D,"*")?2:0;return ome(t,r,s,I,m[D],y,W)});for(const D of ET(m))if(D==="default"||y.indexOf(D)>=0||g$(y,D)){const I=m[D],W=ome(t,r,s,l,I,y,T);if(W)return W}}}}function SHe(t,r,s,l,m,y){const T=GLe(r,t,l);if(T===void 0)return;const D=GLe(s,t,l),I=ea(D,O=>Vn(T,V=>OE(qp(O,V,l)))),W=qw(I,Z9);if(W)return ij(W,m,y)}function F2e({path:t,isRedirect:r},{getCanonicalFileName:s,sourceDirectory:l},m,y,T,D,I,W){if(!y.fileExists||!y.readFile)return;const O=AY(t);if(!O)return;const ee=kQ(D,T,m).getAllowedEndingsInPreferredOrder();let te=t,oe=!1;if(!I){let pt=O.packageRootIndex,Le;for(;;){const{moduleFileToTry:ht,packageRootPath:ke,blockedByExports:_t,verbatimFromExports:Dt}=Ve(pt);if(Jd(T)!==1){if(_t)return;if(Dt)return ht}if(ke){te=ke,oe=!0;break}if(Le||(Le=ht),pt=t.indexOf(q,pt+1),pt===-1){te=ij(Le,ee,T,y);break}}}if(r&&!oe)return;const de=y.getGlobalTypingsCacheLocation&&y.getGlobalTypingsCacheLocation(),ue=s(te.substring(0,O.topLevelNodeModulesIndex));if(!(xf(l,ue)||de&&xf(s(de),ue)))return;const Ne=te.substring(O.topLevelPackageNameIndex+1),Be=_ae(Ne);return Jd(T)===1&&Be===Ne?void 0:Be;function Ve(pt){var Le,ht;const ke=t.substring(0,pt),_t=tf(ke,"package.json");let Dt=t,Ft=!1;const it=(ht=(Le=y.getPackageJsonInfoCache)==null?void 0:Le.call(y))==null?void 0:ht.getPackageJsonInfo(_t);if(typeof it=="object"||it===void 0&&y.fileExists(_t)){const Ye=(it==null?void 0:it.contents.packageJsonContent)||JSON.parse(y.readFile(_t)),ut=W||m.impliedNodeFormat;if(Zie(T)){const Wt=ke.substring(O.topLevelPackageNameIndex+1),tt=_ae(Wt),Mn=u$(T,ut===99),kn=Ye.exports?ome(T,t,ke,tt,Ye.exports,Mn):void 0;if(kn)return{...vR(kn.moduleFileToTry)?{moduleFileToTry:wg(kn.moduleFileToTry)+W2e(kn.moduleFileToTry,T)}:kn,verbatimFromExports:!0};if(Ye.exports)return{moduleFileToTry:t,blockedByExports:!0}}const lt=Ye.typesVersions?yQ(Ye.typesVersions):void 0;if(lt){const Wt=t.slice(ke.length+1),tt=zLe(Wt,lt.paths,ee,y,T);tt===void 0?Ft=!0:Dt=tf(ke,tt)}const zt=Ye.typings||Ye.types||Ye.main||"index.js";if(As(zt)&&!(Ft&&aoe(qH(lt.paths),zt))){const Wt=_h(zt,ke,s),tt=s(Dt);if(wg(Wt)===wg(tt))return{packageRootPath:ke,moduleFileToTry:Dt};if(Ye.type!=="module"&&!ws(tt,Coe)&&xf(tt,Wt)&&qc(tt)===n7(Wt)&&wg(Iy(tt))==="index")return{packageRootPath:ke,moduleFileToTry:Dt}}}else{const Ye=s(Dt.substring(O.packageRootIndex+1));if(Ye==="index.d.ts"||Ye==="index.js"||Ye==="index.ts"||Ye==="index.tsx")return{moduleFileToTry:Dt,packageRootPath:ke}}return{moduleFileToTry:Dt}}}function zst(t,r){if(!t.fileExists)return;const s=Gf(s3({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const l of s){const m=r+l;if(t.fileExists(m))return m}}function GLe(t,r,s){return Qo(r,l=>{const m=jLe(t,l,s);return m!==void 0&&PQ(m)?void 0:m})}function ij(t,r,s,l){if(ws(t,[".json",".mjs",".cjs"]))return t;const m=wg(t);if(t===m)return t;const y=r.indexOf(2),T=r.indexOf(3);if(ws(t,[".mts",".cts"])&&T!==-1&&TW===0||W===1);return I!==-1&&Iyae,forEachFileNameOfModule:()=>O2e,getModuleSpecifier:()=>ime,getModuleSpecifiers:()=>hae,getModuleSpecifiersWithCacheInfo:()=>yHe,getNodeModulesPackageName:()=>LLe,tryGetJSExtensionForFile:()=>W2e,tryGetModuleSpecifiersFromCache:()=>L2e,tryGetRealFileNameForNonJsDeclarationFileName:()=>EHe,updateModuleSpecifier:()=>mHe});var bae=G({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){VLe()}});function xHe(){this.flags=0}function Im(t){return t.id||(t.id=Sae,Sae++),t.id}function Bp(t){return t.id||(t.id=A1,A1++),t.id}function l4(t,r){const s=kR(t);return s===1||r&&s===2}function B2e(t){var r=[],s=a=>{r.push(a)},l,m=new Set,y,T,D=nv.getSymbolConstructor(),I=nv.getTypeConstructor(),W=nv.getSignatureConstructor(),O=0,V=0,ee=0,te=0,oe=0,de=0,ue,Ne,Be=!1,Ve=Td(),pt=[1],Le=t.getCompilerOptions(),ht=iu(Le),ke=Zp(Le),_t=!!Le.experimentalDecorators,Dt=X9(Le),Ft=zSe(Le),it=VN(Le),Ye=hv(Le,"strictNullChecks"),ut=hv(Le,"strictFunctionTypes"),lt=hv(Le,"strictBindCallApply"),zt=hv(Le,"strictPropertyInitialization"),Wt=hv(Le,"noImplicitAny"),tt=hv(Le,"noImplicitThis"),Mn=hv(Le,"useUnknownInCatchVariables"),kn=!!Le.keyofStringsOnly,cr=kn?1:0,un=Le.suppressExcessPropertyErrors?0:8192,on=Le.exactOptionalPropertyTypes,pn=hnt(),Or=Hvt(),Xr=BP(),Ut=Td(),In=Ge(4,"undefined");In.declarations=[];var gr=Ge(1536,"globalThis",8);gr.exports=Ut,gr.declarations=[],Ut.set(gr.escapedName,gr);var Cr=Ge(4,"arguments"),ei=Ge(4,"require"),Gn=Le.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ur=!Le.verbatimModuleSyntax||!!Le.importsNotUsedAsValues,so,ho,di=0,Nc,ha=0;const ro={getNodeCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.nodeCount,0),getIdentifierCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.identifierCount,0),getSymbolCount:()=>Em(t.getSourceFiles(),(a,_)=>a+_.symbolCount,V),getTypeCount:()=>O,getInstantiationCount:()=>ee,getRelationCacheSizes:()=>({assignable:Jc.size,identity:qn.size,subtype:gc.size,strictSubtype:Wl.size}),isUndefinedSymbol:a=>a===In,isArgumentsSymbol:a=>a===Cr,isUnknownSymbol:a=>a===Ir,getMergedSymbol:wa,getDiagnostics:brt,getGlobalDiagnostics:Svt,getRecursionIdentity:c5,getUnmatchedProperties:hBe,getTypeOfSymbolAtLocation:(a,_)=>{const b=Il(_);return b?Jgt(a,b):_r},getTypeOfSymbol:Vo,getSymbolsOfParameterPropertyDeclaration:(a,_)=>{const b=Il(a,Pu);return b===void 0?ce.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(ce.assert(Eb(b,b.parent)),Nn(b,ty(_)))},getDeclaredTypeOfSymbol:Rm,getPropertiesOfType:Vp,getPropertyOfType:(a,_)=>Fn(a,ty(_)),getPrivateIdentifierPropertyOfType:(a,_,b)=>{const C=Il(b);if(!C)return;const M=ty(_),z=Fbe(M,C);return z?PO(a,z):void 0},getTypeOfPropertyOfType:(a,_)=>wm(a,ty(_)),getIndexInfoOfType:(a,_)=>Cd(a,_===0?xe:an),getIndexInfosOfType:T_,getIndexInfosOfIndexSymbol:B0e,getSignaturesOfType:Ti,getIndexTypeOfType:(a,_)=>pb(a,_===0?xe:an),getIndexType:a=>YP(a),getBaseTypes:Gp,getBaseTypeOfLiteralType:Tx,getWidenedType:Bb,getTypeFromTypeNode:a=>{const _=Il(a,Uu);return _?wl(_):_r},getParameterType:$I,getParameterIdentifierInfoAtPosition:Aze,getPromisedTypeOfPromise:Mfe,getAwaitedType:a=>qB(a),getReturnTypeOfSignature:j,isNullableType:wNe,getNullableType:oM,getNonNullableType:aM,getNonOptionalType:jPe,getTypeArguments:Tm,typeToTypeNode:Xr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Xr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Xr.signatureToSignatureDeclaration,symbolToEntityName:Xr.symbolToEntityName,symbolToExpression:Xr.symbolToExpression,symbolToNode:Xr.symbolToNode,symbolToTypeParameterDeclarations:Xr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Xr.symbolToParameterDeclaration,typeParameterToDeclaration:Xr.typeParameterToDeclaration,getSymbolsInScope:(a,_)=>{const b=Il(a);return b?Jfe(b,_):[]},getSymbolAtLocation:a=>{const _=Il(a);return _?CD(_,!0):void 0},getIndexInfosAtLocation:a=>{const _=Il(a);return _?Kfe(_):void 0},getShorthandAssignmentValueSymbol:a=>{const _=Il(a);return _?NGe(_):void 0},getExportSpecifierLocalTargetSymbol:a=>{const _=Il(a,Oy);return _?Srt(_):void 0},getExportSymbolOfSymbol(a){return wa(a.exportSymbol||a)},getTypeAtLocation:a=>{const _=Il(a);return _?YB(_):_r},getTypeOfAssignmentPattern:a=>{const _=Il(a,u7);return _&&Gwe(_)||_r},getPropertySymbolOfDestructuringAssignment:a=>{const _=Il(a,An);return _?Ert(_):void 0},signatureToString:(a,_,b,C)=>o0(a,Il(_),b,C),typeToString:(a,_,b)=>oa(a,Il(_),b),symbolToString:(a,_,b,C)=>Cl(a,Il(_),b,C),typePredicateToString:(a,_,b)=>LA(a,Il(_),b),writeSignature:(a,_,b,C,M)=>o0(a,Il(_),b,C,M),writeType:(a,_,b,C)=>oa(a,Il(_),b,C),writeSymbol:(a,_,b,C,M)=>Cl(a,Il(_),b,C,M),writeTypePredicate:(a,_,b,C)=>LA(a,Il(_),b,C),getAugmentedPropertiesOfType:Xfe,getRootSymbols:xrt,getSymbolOfExpando:gfe,getContextualType:(a,_)=>{const b=Il(a,Nr);if(b)return _&4?Oc(b,()=>PE(b,_)):PE(b,_)},getContextualTypeForObjectLiteralElement:a=>{const _=Il(a,KD);return _?lfe(_,void 0):void 0},getContextualTypeForArgumentAtIndex:(a,_)=>{const b=Il(a,ib);return b&&hK(b,_)},getContextualTypeForJsxAttribute:a=>{const _=Il(a,$U);return _&&ytt(_,void 0)},isContextSensitive:nA,getTypeOfPropertyOfContextualType:oL,getFullyQualifiedName:Dg,getResolvedSignature:(a,_,b)=>_u(a,_,b,0),getResolvedSignatureForStringLiteralCompletions:(a,_,b,C=32)=>C&32?Oc(_,()=>_u(a,b,void 0,C&-33)):Gs(_,()=>_u(a,b,void 0,C&-33)),getResolvedSignatureForSignatureHelp:(a,_,b)=>Gs(a,()=>_u(a,_,b,16)),getExpandedParameters:lO,hasEffectiveRestParameter:Hk,containsArgumentsReference:Up,getConstantValue:a=>{const _=Il(a,LGe);return _?OGe(_):void 0},isValidPropertyAccess:(a,_)=>{const b=Il(a,sk);return!!b&&bht(b,ty(_))},isValidPropertyAccessForCompletions:(a,_,b)=>{const C=Il(a,sa);return!!C&&Gtt(C,_,b)},getSignatureFromDeclaration:a=>{const _=Il(a,S_);return _?Cv(_):void 0},isImplementationOfOverload:a=>{const _=Il(a,S_);return _?RGe(_):void 0},getImmediateAliasedSymbol:eze,getAliasedSymbol:Xp,getEmitResolver:Cu,getExportsOfModule:i0,getExportsAndPropertiesOfModule:nt,forEachExportAndPropertyOfModule:pr,getSymbolWalker:gae(Tt,F2,j,Gp,K0,Vo,ED,Wi,NS,Tm),getAmbientModules:f0t,getJsxIntrinsicTagNamesAt:_ht,isOptionalParameter:a=>{const _=Il(a,Pu);return _?W4(_):!1},tryGetMemberInModuleExports:(a,_)=>vi(ty(a),_),tryGetMemberInModuleExportsAndProperties:(a,_)=>Di(ty(a),_),tryFindAmbientModule:a=>bV(a,!0),tryFindAmbientModuleWithoutAugmentations:a=>bV(a,!1),getApparentType:O1,getUnionType:gl,isTypeAssignableTo:Mp,createAnonymousType:jo,createSignature:i2,createSymbol:Ge,createIndexInfo:yD,getAnyType:()=>gn,getStringType:()=>xe,getStringLiteralType:qv,getNumberType:()=>an,getNumberLiteralType:bD,getBigIntType:()=>Un,createPromiseType:aL,createArrayType:W1,getElementTypeOfArrayType:iBe,getBooleanType:()=>Ca,getFalseType:a=>a?rr:mi,getTrueType:a=>a?Ji:zo,getVoidType:()=>Ks,getUndefinedType:()=>Ui,getNullType:()=>$e,getESSymbolType:()=>Qa,getNeverType:()=>vs,getOptionalType:()=>wt,getPromiseType:()=>CB(!1),getPromiseLikeType:()=>kue(!1),getAsyncIterableType:()=>{const a=pPe(!1);if(a!==rd)return a},isSymbolAccessible:br,isArrayType:UA,isTupleType:_p,isArrayLikeType:iM,isEmptyAnonymousObjectType:By,isTypeInvalidDueToUnionDiscriminant:ne,getExactOptionalProperties:YWe,getAllPossiblePropertiesOfTypes:yt,getSuggestedSymbolForNonexistentProperty:LNe,getSuggestionForNonexistentProperty:lze,getSuggestedSymbolForNonexistentJSXAttribute:Btt,getSuggestedSymbolForNonexistentSymbol:(a,_,b)=>Fte(a,ty(_),b),getSuggestionForNonexistentSymbol:(a,_,b)=>yht(a,ty(_),b),getSuggestedSymbolForNonexistentModule:ONe,getSuggestionForNonexistentExport:ztt,getSuggestedSymbolForNonexistentClassMember:MNe,getBaseConstraintOfType:Co,getDefaultFromTypeParameter:a=>a&&a.flags&262144?LI(a):void 0,resolveName(a,_,b,C){return Ro(_,ty(a),b,void 0,void 0,!1,C)},getJsxNamespace:a=>lf(us(a)),getJsxFragmentFactory:a=>{const _=FGe(a);return _&&lf(NS(_).escapedText)},getAccessibleSymbolChain:ks,getTypePredicateOfSignature:F2,resolveExternalModuleName:a=>{const _=Il(a,Nr);return _&&Zm(_,_,!0)},resolveExternalModuleSymbol:$0,tryGetThisTypeAt:(a,_,b)=>{const C=Il(a);return C&&fNe(C,_,b)},getTypeArgumentConstraint:a=>{const _=Il(a,Uu);return _&&pyt(_)},getSuggestionDiagnostics:(a,_)=>{const b=Il(a,tl)||ce.fail("Could not determine parsed source file.");if(c3(b,Le,t))return Zn;let C;try{return l=_,Hfe(b),ce.assert(!!(ge(b).flags&1)),C=Oi(C,os.getDiagnostics(b.fileName)),iGe(vrt(b),(M,z,Z)=>{!QU(M)&&!yrt(z,!!(M.flags&33554432))&&(C||(C=[])).push({...Z,category:2})}),C||Zn}finally{l=void 0}},runWithCancellationToken:(a,_)=>{try{return l=a,_(ro)}finally{l=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:rs,isDeclarationVisible:WS,isPropertyAccessible:Bte,getTypeOnlyAliasDeclaration:da,getMemberOverrideModifierStatus:evt,isTypeParameterPossiblyReferenced:jue,typeHasCallOrConstructSignatures:BK};function Gs(a,_){const b=[];for(;a;){if(ib(a)){const M=ge(a),z=M.resolvedSignature;b.push([M,z]),M.resolvedSignature=void 0}a=a.parent}const C=_();for(const[M,z]of b)M.resolvedSignature=z;return C}function Oc(a,_){const b=Kr(a,ib);if(b){let M=a;do ge(M).skipDirectInference=!0,M=M.parent;while(M&&M!==b)}Be=!0;const C=Gs(a,_);if(Be=!1,b){let M=a;do ge(M).skipDirectInference=void 0,M=M.parent;while(M&&M!==b)}return C}function _u(a,_,b,C){const M=Il(a,ib);so=b;const z=M?oN(M,_,C):void 0;return so=void 0,z}var Ku=new Map,al=new Map,Rr=new Map,mc=new Map,Ea=new Map,Fi=new Map,ta=new Map,$a=new Map,jc=new Map,Xu=new Map,Lo=new Map,To=new Map,Aa=new Map,sl=new Map,vc=new Map,er=[],Jr=new Map,li=new Set,Ir=Ge(4,"unknown"),_o=Ge(0,"__resolving__"),xt=new Map,Kn=new Map,gn=eg(1,"any"),qr=eg(1,"any",262144),mt=eg(1,"any"),_r=eg(1,"error"),Cn=eg(1,"unresolved"),oi=eg(1,"any",65536),Qr=eg(1,"intrinsic"),co=eg(2,"unknown"),es=eg(2,"unknown"),Ui=eg(32768,"undefined"),xu=Ye?Ui:eg(32768,"undefined",65536),We=eg(32768,"undefined"),Re=on?We:Ui,wt=eg(32768,"undefined"),$e=eg(65536,"null"),Zt=Ye?$e:eg(65536,"null",65536),xe=eg(4,"string"),an=eg(8,"number"),Un=eg(64,"bigint"),rr=eg(512,"false"),mi=eg(512,"false"),Ji=eg(512,"true"),zo=eg(512,"true");Ji.regularType=zo,Ji.freshType=Ji,zo.regularType=zo,zo.freshType=Ji,rr.regularType=mi,rr.freshType=rr,mi.regularType=mi,mi.freshType=rr;var Ca=gl([mi,zo]),Qa=eg(4096,"symbol"),Ks=eg(16384,"void"),vs=eg(131072,"never"),ou=eg(131072,"never",262144),qd=eg(131072,"never"),z_=eg(131072,"never"),fp=eg(67108864,"object"),Ha=gl([xe,an]),mu=gl([xe,an,Qa]),x_=kn?xe:mu,q_=gl([an,Un]),Ma=gl([xe,an,Ca,Un,$e,Ui]),U0=kB(["",""],[an]),c_=Bue(a=>a.flags&262144?hte(a):a,()=>"(restrictive mapper)"),Kd=Bue(a=>a.flags&262144?mt:a,()=>"(permissive mapper)"),iy=eg(131072,"never"),Oh=Bue(a=>a.flags&262144?iy:a,()=>"(unique literal mapper)"),jg,zv=Bue(a=>(jg&&(a===gy||a===fS||a===GT)&&jg(!0),a),()=>"(unmeasurable reporter)"),m_=Bue(a=>(jg&&(a===gy||a===fS||a===GT)&&jg(!1),a),()=>"(unreliable reporter)"),Yu=jo(void 0,Ve,Zn,Zn,Zn),Tv=jo(void 0,Ve,Zn,Zn,Zn);Tv.objectFlags|=2048;var Kh=Ge(2048,"__type");Kh.members=Td();var uS=jo(Kh,Ve,Zn,Zn,Zn),H0=jo(void 0,Ve,Zn,Zn,Zn),fx=Ye?gl([Ui,$e,H0]):co,rd=jo(void 0,Ve,Zn,Zn,Zn);rd.instantiations=new Map;var Mg=jo(void 0,Ve,Zn,Zn,Zn);Mg.objectFlags|=262144;var lm=jo(void 0,Ve,Zn,Zn,Zn),nm=jo(void 0,Ve,Zn,Zn,Zn),po=jo(void 0,Ve,Zn,Zn,Zn),gy=Lb(),fS=Lb();fS.constraint=gy;var GT=Lb(),vE=Lb(),oh=Lb();oh.constraint=vE;var hy=YF(1,"<>",0,gn),_e=i2(void 0,void 0,void 0,Zn,gn,void 0,0,0),vn=i2(void 0,void 0,void 0,Zn,_r,void 0,0,0),Qn=i2(void 0,void 0,void 0,Zn,gn,void 0,0,0),hi=i2(void 0,void 0,void 0,Zn,ou,void 0,0,0),pa=yD(an,xe,!0),Zc=new Map,ka={get yieldType(){return ce.fail("Not supported")},get returnType(){return ce.fail("Not supported")},get nextType(){return ce.fail("Not supported")}},bc=z1(gn,gn,gn),gu=z1(gn,gn,co),yu=z1(vs,gn,Ui),Xm={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:OZe,getGlobalIterableType:pPe,getGlobalIterableIteratorType:bWe,getGlobalGeneratorType:j4,resolveIterationType:(a,_)=>qB(a,_,w.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:w.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:w.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:w.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Lg={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:vx,getGlobalIterableType:Pue,getGlobalIterableIteratorType:FZe,getGlobalGeneratorType:Jmt,resolveIterationType:(a,_)=>a,mustHaveANextMethodDiagnostic:w.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:w.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:w.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},av,Fh=new Map,J0=[],Eg,Sv,jT,Ev,S0,k1,tn,fi,ya,bu,K_,ig,Fy,bt,ir,ii,Si,Do,Za,Qc,Al,du,N_,zp,gh,Wh,Gv,jv,yy,ub,E0,P2,MA,aw,DI,Me,jn,Mi,js,X_,$l,y_,l_,Ph,Ap,Mb,_x,_S,e,n,i,c,u,d,h,S,E=new Map,P=0,k=0,F=0,$=!1,J=0,X,ie,ae,ve=[],we=[],Fe=[],et=0,Pe=[],dt=[],Ie=0,ct=qv(""),Ct=bD(0),Lt=Oue({negative:!1,base10Value:"0"}),Ze=[],Ke=[],st=[],It=0,Yt=!1,Et=0,at=10,Qt=[],nn=[],Rn=[],cn=[],qt=[],Kt=[],wr=[],Wr=[],jt=[],En=[],fr=[],Tr=[],Vr=[],Pn=[],Fr=[],Ki=[],io=[],no=vY(),os=vY(),Mo=Rk(),$i,ki,gc=new Map,Wl=new Map,Jc=new Map,au=new Map,qn=new Map,za=new Map,Ia=Td();Ia.set(In.escapedName,In);var zi=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Le.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Jvt(),ro;function na(a){return a?vc.get(a):void 0}function _a(a,_){return a&&vc.set(a,_),_}function us(a){if(a){const _=ns(a);if(_)if(zx(a)){if(_.localJsxFragmentNamespace)return _.localJsxFragmentNamespace;const b=_.pragmas.get("jsxfrag");if(b){const M=ls(b)?b[0]:b;if(_.localJsxFragmentFactory=s_(M.arguments.factory,ht),nr(_.localJsxFragmentFactory,Qu,Vd),_.localJsxFragmentFactory)return _.localJsxFragmentNamespace=NS(_.localJsxFragmentFactory).escapedText}const C=FGe(a);if(C)return _.localJsxFragmentFactory=C,_.localJsxFragmentNamespace=NS(C).escapedText}else{const b=Au(_);if(b)return _.localJsxNamespace=b}}return $i||($i="React",Le.jsxFactory?(ki=s_(Le.jsxFactory,ht),nr(ki,Qu),ki&&($i=NS(ki).escapedText)):Le.reactNamespace&&($i=ty(Le.reactNamespace))),ki||(ki=be.createQualifiedName(be.createIdentifier(lf($i)),"createElement")),$i}function Au(a){if(a.localJsxNamespace)return a.localJsxNamespace;const _=a.pragmas.get("jsx");if(_){const b=ls(_)?_[0]:_;if(a.localJsxFactory=s_(b.arguments.factory,ht),nr(a.localJsxFactory,Qu,Vd),a.localJsxFactory)return a.localJsxNamespace=NS(a.localJsxFactory).escapedText}}function Qu(a){return T1(a,-1,-1),ia(a,Qu,I6)}function Cu(a,_){return brt(a,_),Or}function yf(a,_,...b){const C=a?kc(a,_,...b):W_(_,...b),M=no.lookup(C);return M||(no.add(C),C)}function w_(a,_,b,...C){const M=He(_,b,...C);return M.skippedOn=a,M}function Eu(a,_,...b){return a?kc(a,_,...b):W_(_,...b)}function He(a,_,...b){const C=Eu(a,_,...b);return no.add(C),C}function Hn(a,_){a?no.add(_):os.add({..._,category:2})}function dr(a,_,b,...C){if(_.pos<0||_.end<0){if(!a)return;const M=ns(_);Hn(a,"message"in b?Pp(M,0,0,b,...C):Rx(M,b));return}Hn(a,"message"in b?kc(_,b,...C):RN(ns(_),_,b))}function Mr(a,_,b,...C){const M=He(a,b,...C);if(_){const z=kc(a,w.Did_you_forget_to_use_await);ml(M,z)}return M}function Pr(a,_){const b=Array.isArray(a)?Ot(a,HTe):HTe(a);return b&&ml(_,kc(b,w.The_declaration_was_marked_as_deprecated_here)),os.add(_),_}function Bt(a){const _=Uf(a);return _&&Nt(a.declarations)>1?_.flags&64?gt(a.declarations,ln):jr(a.declarations,ln):!!a.valueDeclaration&&ln(a.valueDeclaration)||Nt(a.declarations)&&jr(a.declarations,ln)}function ln(a){return!!(x5(a)&536870912)}function Wn(a,_,b){const C=kc(a,w._0_is_deprecated,b);return Pr(_,C)}function $r(a,_,b,C){const M=b?kc(a,w.The_signature_0_of_1_is_deprecated,C,b):kc(a,w._0_is_deprecated,C);return Pr(_,M)}function Ge(a,_,b){V++;const C=new D(a|33554432,_);return C.links=new Dae,C.links.checkFlags=b||0,C}function Br(a,_){const b=Ge(1,a);return b.links.type=_,b}function Ei(a,_){const b=Ge(4,a);return b.links.type=_,b}function Ln(a){let _=0;return a&2&&(_|=111551),a&1&&(_|=111550),a&4&&(_|=0),a&8&&(_|=900095),a&16&&(_|=110991),a&32&&(_|=899503),a&64&&(_|=788872),a&256&&(_|=899327),a&128&&(_|=899967),a&512&&(_|=110735),a&8192&&(_|=103359),a&32768&&(_|=46015),a&65536&&(_|=78783),a&262144&&(_|=526824),a&524288&&(_|=788968),a&2097152&&(_|=2097152),_}function Sr(a,_){_.mergeId||(_.mergeId=HLe,HLe++),Qt[_.mergeId]=a}function yi(a){const _=Ge(a.flags,a.escapedName);return _.declarations=a.declarations?a.declarations.slice():[],_.parent=a.parent,a.valueDeclaration&&(_.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),a.members&&(_.members=new Map(a.members)),a.exports&&(_.exports=new Map(a.exports)),Sr(_,a),_}function go(a,_,b=!1){if(!(a.flags&Ln(_.flags))||(_.flags|a.flags)&67108864){if(_===a)return a;if(!(a.flags&33554432)){const M=wp(a);if(M===Ir)return _;a=yi(M)}_.flags&512&&a.flags&512&&a.constEnumOnlyModule&&!_.constEnumOnlyModule&&(a.constEnumOnlyModule=!1),a.flags|=_.flags,_.valueDeclaration&&aG(a,_.valueDeclaration),Oi(a.declarations,_.declarations),_.members&&(a.members||(a.members=Td()),Ce(a.members,_.members,b)),_.exports&&(a.exports||(a.exports=Td()),Ce(a.exports,_.exports,b)),b||Sr(a,_)}else if(a.flags&1024)a!==gr&&He(_.declarations&&o_(_.declarations[0]),w.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Cl(a));else{const M=!!(a.flags&384||_.flags&384),z=!!(a.flags&2||_.flags&2),Z=M?w.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:z?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0,me=_.declarations&&ns(_.declarations[0]),Se=a.declarations&&ns(a.declarations[0]),Je=y2(me,Le.checkJs),vt=y2(Se,Le.checkJs),Pt=Cl(_);if(me&&Se&&av&&!M&&me!==Se){const dn=wM(me.path,Se.path)===-1?me:Se,yn=dn===me?Se:me,hr=Jw(av,`${dn.path}|${yn.path}`,()=>({firstFile:dn,secondFile:yn,conflictingSymbols:new Map})),bi=Jw(hr.conflictingSymbols,Pt,()=>({isBlockScoped:z,firstFileLocations:[],secondFileLocations:[]}));Je||C(bi.firstFileLocations,_),vt||C(bi.secondFileLocations,a)}else Je||Ao(_,Z,Pt,a),vt||Ao(a,Z,Pt,_)}return a;function C(M,z){if(z.declarations)for(const Z of z.declarations)Dy(M,Z)}}function Ao(a,_,b,C){Ot(a.declarations,M=>{Io(M,_,b,C.declarations)})}function Io(a,_,b,C){const M=(jE(a,!1)?fY(a):o_(a))||a,z=yf(M,_,b);for(const Z of C||Zn){const me=(jE(Z,!1)?fY(Z):o_(Z))||Z;if(me===M)continue;z.relatedInformation=z.relatedInformation||[];const Se=kc(me,w._0_was_also_declared_here,b),Je=kc(me,w.and_here);Nt(z.relatedInformation)>=5||gt(z.relatedInformation,vt=>o3(vt,Je)===0||o3(vt,Se)===0)||ml(z,Nt(z.relatedInformation)?Je:Se)}}function ze(a,_){if(!(a!=null&&a.size))return _;if(!(_!=null&&_.size))return a;const b=Td();return Ce(b,a),Ce(b,_),b}function Ce(a,_,b=!1){_.forEach((C,M)=>{const z=a.get(M);a.set(M,z?go(z,C,b):wa(C))})}function kt(a){var _,b,C;const M=a.parent;if(((_=M.symbol.declarations)==null?void 0:_[0])!==M){ce.assert(M.symbol.declarations.length>1);return}if($C(M))Ce(Ut,M.symbol.exports);else{const z=a.parent.parent.flags&33554432?void 0:w.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let Z=fb(a,a,z,!0);if(!Z)return;if(Z=$0(Z),Z.flags&1920)if(gt(Sv,me=>Z===me.symbol)){const me=go(M.symbol,Z,!0);jT||(jT=new Map),jT.set(a.text,me)}else{if((b=Z.exports)!=null&&b.get("__export")&&((C=M.symbol.exports)!=null&&C.size)){const me=bB(Z,"resolvedExports");for(const[Se,Je]of oc(M.symbol.exports.entries()))me.has(Se)&&!Z.exports.has(Se)&&go(me.get(Se),Je)}go(Z,M.symbol)}else He(a,w.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,a.text)}}function qe(a,_,b){_.forEach((M,z)=>{const Z=a.get(z);Z?Ot(Z.declarations,C(lf(z),b)):a.set(z,M)});function C(M,z){return Z=>no.add(kc(Z,z,M))}}function Mt(a){if(a.flags&33554432)return a.links;const _=Bp(a);return nn[_]??(nn[_]=new Dae)}function ge(a){const _=Im(a);return Rn[_]||(Rn[_]=new xHe)}function mn(a){return a.kind===312&&!h1(a)}function Jn(a,_,b){if(b){const C=wa(a.get(_));if(C&&(ce.assert((I_(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&b||C.flags&2097152&&sg(C)&b))return C}}function Nn(a,_){const b=a.parent,C=a.parent.parent,M=Jn(b.locals,_,111551),z=Jn(BA(C.symbol),_,111551);return M&&z?[M,z]:ce.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Lr(a,_){const b=ns(a),C=ns(_),M=Bs(a);if(b!==C){if(ke&&(b.externalModuleIndicator||C.externalModuleIndicator)||!Kg(Le)||O7(_)||a.flags&33554432||Z(_,a))return!0;const Se=t.getSourceFiles();return Se.indexOf(b)<=Se.indexOf(C)}if(a.pos<=_.pos&&!(Os(a)&&b7(_.parent)&&!a.initializer&&!a.exclamationToken)){if(a.kind===208){const Se=e6(_,208);return Se?Kr(Se,ym)!==Kr(a,ym)||a.posam(Se)&&Se.parent.parent===a);if(Os(a))return!me(a,_,!1);if(Eb(a,a.parent))return!(Ft&&h0(a)===h0(_)&&Z(_,a))}return!0}if(_.parent.kind===281||_.parent.kind===277&&_.parent.isExportEquals||_.kind===277&&_.isExportEquals||_.flags&16777216||O7(_)||efe(_))return!0;if(Z(_,a))return Ft&&h0(a)&&(Os(a)||Eb(a,a.parent))?!me(a,_,!0):!0;return!1;function z(Se,Je){switch(Se.parent.parent.kind){case 243:case 248:case 250:if(pl(Je,Se,M))return!0;break}const vt=Se.parent.parent;return DS(vt)&&pl(Je,vt.expression,M)}function Z(Se,Je){return!!Kr(Se,vt=>{if(vt===M)return"quit";if(S_(vt))return!0;if(nu(vt))return Je.posSe.end?!1:Kr(Je,dn=>{if(dn===Se)return"quit";switch(dn.kind){case 219:return!0;case 172:return vt&&(Os(Se)&&dn.parent===Se.parent||Eb(Se,Se.parent)&&dn.parent===Se.parent.parent)?"quit":!0;case 241:switch(dn.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function qi(a,_,b){const C=iu(Le),M=_;if(Pu(b)&&M.body&&a.valueDeclaration&&a.valueDeclaration.pos>=M.body.pos&&a.valueDeclaration.end<=M.body.end&&C>=2){const me=ge(M);return me.declarationRequiresScopeChange===void 0&&(me.declarationRequiresScopeChange=Ot(M.parameters,z)||!1),!me.declarationRequiresScopeChange}return!1;function z(me){return Z(me.name)||!!me.initializer&&Z(me.initializer)}function Z(me){switch(me.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return Z(me.name);case 172:return Ny(me)?!Ft:Z(me.name);default:return Qre(me)||ky(me)?C<7:ym(me)&&me.dotDotDotToken&&E1(me.parent)?C<4:Uu(me)?!1:B_(me,Z)||!1}}}function vo(a){return _7(a)&&CN(a.type)||HY(a)&&CN(a.typeExpression)}function Ro(a,_,b,C,M,z,Z=!1,me=!0){return Ts(a,_,b,C,M,z,Z,me,Jn)}function Ts(a,_,b,C,M,z,Z,me,Se){var Je,vt,Pt;const dn=a;let yn,hr,bi,Wo,aa,$s=!1;const Ba=a;let lo,Xa=!1;e:for(;a;){if(_==="const"&&vo(a))return;if(sde(a)&&hr&&a.name===hr&&(hr=a,a=a.parent),lk(a)&&a.locals&&!mn(a)&&(yn=Se(a.locals,_,b))){let Pa=!0;if(S_(a)&&hr&&hr!==a.body?(b&yn.flags&788968&&hr.kind!==327&&(Pa=yn.flags&262144?hr===a.type||hr.kind===169||hr.kind===348||hr.kind===349||hr.kind===168:!1),b&yn.flags&3&&(qi(yn,a,hr)?Pa=!1:yn.flags&1&&(Pa=hr.kind===169||hr===a.type&&!!Kr(yn.valueDeclaration,Pu)))):a.kind===194&&(Pa=hr===a.trueType),Pa)break e;yn=void 0}switch($s=$s||Pc(a,hr),a.kind){case 312:if(!h1(a))break;Xa=!0;case 267:const Pa=((Je=wi(a))==null?void 0:Je.exports)||Ve;if(a.kind===312||xp(a)&&a.flags&33554432&&!$C(a)){if(yn=Pa.get("default")){const Ld=i6(yn);if(Ld&&yn.flags&b&&Ld.escapedName===_)break e;yn=void 0}const hs=Pa.get(_);if(hs&&hs.flags===2097152&&(Vm(hs,281)||Vm(hs,280)))break}if(_!=="default"&&(yn=Se(Pa,_,b&2623475)))if(tl(a)&&a.commonJsModuleIndicator&&!((vt=yn.declarations)!=null&&vt.some(T2)))yn=void 0;else break e;break;case 266:if(yn=Se(((Pt=wi(a))==null?void 0:Pt.exports)||Ve,_,b&8)){C&&F0(Le)&&!(a.flags&33554432)&&ns(a)!==ns(yn.valueDeclaration)&&He(Ba,w.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,lf(_),Gn,`${lf(Vl(a).escapedName)}.${lf(_)}`);break e}break;case 172:if(!e_(a)){const hs=n2(a.parent);hs&&hs.locals&&Se(hs.locals,_,b&111551)&&(ce.assertNode(a,Os),Wo=a)}break;case 263:case 231:case 264:if(yn=Se(wi(a).members||Ve,_,b&788968)){if(!Tc(yn,a)){yn=void 0;break}if(hr&&e_(hr)){C&&He(Ba,w.Static_members_cannot_reference_class_type_parameters);return}break e}if(B0(a)&&b&32){const hs=a.name;if(hs&&_===hs.escapedText){yn=a.symbol;break e}}break;case 233:if(hr===a.expression&&a.parent.token===96){const hs=a.parent.parent;if(Jl(hs)&&(yn=Se(wi(hs).members,_,b&788968))){C&&He(Ba,w.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(lo=a.parent.parent,(Jl(lo)||lo.kind===264)&&(yn=Se(wi(lo).members,_,b&788968))){C&&He(Ba,w.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(iu(Le)>=2)break;case 174:case 176:case 177:case 178:case 262:if(b&3&&_==="arguments"){yn=Cr;break e}break;case 218:if(b&3&&_==="arguments"){yn=Cr;break e}if(b&16){const hs=a.name;if(hs&&_===hs.escapedText){yn=a.symbol;break e}}break;case 170:a.parent&&a.parent.kind===169&&(a=a.parent),a.parent&&(Mv(a.parent)||a.parent.kind===263)&&(a=a.parent);break;case 353:case 345:case 347:const Ga=pH(a);Ga&&(a=Ga.parent);break;case 169:hr&&(hr===a.initializer||hr===a.name&&ld(hr))&&(aa||(aa=a));break;case 208:hr&&(hr===a.initializer||hr===a.name&&ld(hr))&&Y8(a)&&!aa&&(aa=a);break;case 195:if(b&262144){const hs=a.typeParameter.name;if(hs&&_===hs.escapedText){yn=a.typeParameter.symbol;break e}}break;case 281:hr&&hr===a.propertyName&&a.parent.parent.moduleSpecifier&&(a=a.parent.parent.parent);break}hc(a)&&(bi=a),hr=a,a=jx(a)?q8(a)||a.parent:(AA(a)||aF(a))&&VE(a)||a.parent}if(z&&yn&&(!bi||yn!==bi.symbol)&&(yn.isReferenced|=b),!yn){if(hr&&(ce.assertNode(hr,tl),hr.commonJsModuleIndicator&&_==="exports"&&b&hr.symbol.flags))return hr.symbol;Z||(yn=Se(Ut,_,b))}if(!yn&&dn&&Rs(dn)&&dn.parent&&eT(dn.parent,!1))return ei;function Go(){return Wo&&!Ft?(He(Ba,Ba&&Wo.type&&Bz(Wo.type,Ba.pos)?w.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:w.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ud(Wo.name),bl(M)),!0):!1}if(yn){if(C&&Go())return}else{C&&s(()=>{if(!Ba||Ba.parent.kind!==331&&!Tf(Ba,_,M)&&!Go()&&!ma(Ba)&&!G_(Ba,_,b)&&!Ym(Ba,_)&&!Wy(Ba,_,b)&&!mf(Ba,_,b)&&!u_(Ba,_,b)){let Pa,Ga;if(M&&(Ga=EK(M),Ga&&He(Ba,C,bl(M),Ga)),!Ga&&me&&Et{if(Ba&&(b&2||(b&32||b&384)&&(b&111551)===111551)){const Pa=zh(yn);(Pa.flags&2||Pa.flags&32||Pa.flags&384)&&Og(Pa,Ba)}if(yn&&Xa&&(b&111551)===111551&&!(dn.flags&16777216)){const Pa=wa(yn);Nt(Pa.declarations)&&jr(Pa.declarations,Ga=>dy(Ga)||tl(Ga)&&!!Ga.symbol.globalExports)&&dr(!Le.allowUmdGlobalAccess,Ba,w._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,lf(_))}if(yn&&aa&&!$s&&(b&111551)===111551){const Pa=wa($R(yn)),Ga=rI(aa);Pa===wi(aa)?He(Ba,w.Parameter_0_cannot_reference_itself,Ud(aa.name)):Pa.valueDeclaration&&Pa.valueDeclaration.pos>aa.pos&&Ga.parent.locals&&Se(Ga.parent.locals,Pa.escapedName,b)===Pa&&He(Ba,w.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ud(aa.name),Ud(Ba))}if(yn&&Ba&&b&111551&&yn.flags&2097152&&!(yn.flags&111551)&&!EA(Ba)){const Pa=da(yn,111551);if(Pa){const Ga=Pa.kind===281||Pa.kind===278||Pa.kind===280?w._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:w._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,hs=lf(_);Cc(He(Ba,Ga,hs),Pa,hs)}}}),yn}function Cc(a,_,b){return _?ml(a,kc(_,_.kind===281||_.kind===278||_.kind===280?w._0_was_exported_here:w._0_was_imported_here,b)):a}function Pc(a,_){return a.kind!==219&&a.kind!==218?uE(a)||(J_(a)||a.kind===172&&!e_(a))&&(!_||_!==a.name):_&&_===a.name?!1:a.asteriskToken||il(a,512)?!0:!zL(a)}function hc(a){switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function bl(a){return As(a)?lf(a):Ud(a)}function Tc(a,_){if(a.declarations){for(const b of a.declarations)if(b.kind===168&&(jx(b.parent)?P7(b.parent):b.parent)===_)return!(jx(b.parent)&&lr(b.parent.parent.tags,T2))}return!1}function Tf(a,_,b){if(!An(a)||a.escapedText!==_||WK(a)||O7(a))return!1;const C=Q1(a,!1,!1);let M=C;for(;M;){if(Jl(M.parent)){const z=wi(M.parent);if(!z)break;const Z=Vo(z);if(Fn(Z,_))return He(a,w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,bl(b),Cl(z)),!0;if(M===C&&!e_(M)){const me=Rm(z).thisType;if(Fn(me,_))return He(a,w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,bl(b)),!0}}M=M.parent}return!1}function ma(a){const _=Bl(a);return _&&P_(_,64,!0)?(He(a,w.Cannot_extend_an_interface_0_Did_you_mean_implements,Yv(_)),!0):!1}function Bl(a){switch(a.kind){case 80:case 211:return a.parent?Bl(a.parent):void 0;case 233:if(Uh(a.expression))return a.expression;default:return}}function G_(a,_,b){const C=1920|(Rs(a)?111551:0);if(b===C){const M=wp(Ro(a,_,788968&~C,void 0,void 0,!1)),z=a.parent;if(M){if(nT(z)){ce.assert(z.left===a,"Should only be resolving left side of qualified name as a namespace");const Z=z.right.escapedText;if(Fn(Rm(M),Z))return He(z,w.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,lf(_),lf(Z)),!0}return He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,lf(_)),!0}}return!1}function u_(a,_,b){if(b&788584){const C=wp(Ro(a,_,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return He(a,w._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,lf(_)),!0}return!1}function xa(a){return a==="any"||a==="string"||a==="number"||a==="boolean"||a==="never"||a==="unknown"}function Ym(a,_){return xa(_)&&a.parent.kind===281?(He(a,w.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,_),!0):!1}function mf(a,_,b){if(b&111551){if(xa(_))return Cp(a)?He(a,w.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,lf(_)):He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,lf(_)),!0;const C=wp(Ro(a,_,788544,void 0,void 0,!1)),M=C&&sg(C);if(C&&M!==void 0&&!(M&111551)){const z=lf(_);return xg(_)?He(a,w._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,z):Yg(a,C)?He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,z,z==="K"?"P":"K"):He(a,w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,z),!0}}return!1}function Cp(a){const _=a.parent.parent,b=_.parent;if(_&&b){const C=rT(_)&&_.token===96,M=Kp(b);return C&&M}return!1}function Yg(a,_){const b=Kr(a.parent,C=>am(C)||Np(C)?!1:e0(C)||"quit");if(b&&b.members.length===1){const C=Rm(_);return!!(C.flags&1048576)&&Cfe(C,384,!0)}return!1}function xg(a){switch(a){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Wy(a,_,b){if(b&111127){if(wp(Ro(a,_,1024,void 0,void 0,!1)))return He(a,w.Cannot_use_namespace_0_as_a_value,lf(_)),!0}else if(b&788544&&wp(Ro(a,_,1536,void 0,void 0,!1)))return He(a,w.Cannot_use_namespace_0_as_a_type,lf(_)),!0;return!1}function Og(a,_){var b;if(ce.assert(!!(a.flags&2||a.flags&32||a.flags&384)),a.flags&67108881&&a.flags&32)return;const C=(b=a.declarations)==null?void 0:b.find(M=>pde(M)||Jl(M)||M.kind===266);if(C===void 0)return ce.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!Lr(C,_)){let M;const z=Ud(o_(C));a.flags&2?M=He(_,w.Block_scoped_variable_0_used_before_its_declaration,z):a.flags&32?M=He(_,w.Class_0_used_before_its_declaration,z):a.flags&256&&(M=He(_,w.Enum_0_used_before_its_declaration,z)),M&&ml(M,kc(C,w._0_is_declared_here,z))}}function pl(a,_,b){return!!_&&!!Kr(a,C=>C===_||(C===b||S_(C)&&(!zL(C)||FN(C))?"quit":!1))}function R_(a){switch(a.kind){case 271:return a;case 273:return a.parent;case 274:return a.parent.parent;case 276:return a.parent.parent.parent;default:return}}function og(a){return a.declarations&&ra(a.declarations,km)}function km(a){return a.kind===271||a.kind===270||a.kind===273&&!!a.name||a.kind===274||a.kind===280||a.kind===276||a.kind===281||a.kind===277&&ZM(a)||ys(a)&&Qy(a)===2&&ZM(a)||Kf(a)&&ys(a.parent)&&a.parent.left===a&&a.parent.operatorToken.kind===64&&M_(a.parent.right)||a.kind===304||a.kind===303&&M_(a.initializer)||a.kind===260&&pR(a)||a.kind===208&&pR(a.parent.parent)}function M_(a){return gR(a)||Dm(a)&&JI(a)}function oy(a,_){const b=fc(a);if(b){const M=i3(b.expression).arguments[0];return An(b.name)?wp(Fn(J6(M),b.name.escapedText)):void 0}if(ff(a)||a.moduleReference.kind===283){const M=Zm(a,uY(a)||S7(a)),z=$0(M);return Jt(a,M,z,!1),z}const C=gd(a.moduleReference,_);return bE(a,C),C}function bE(a,_){if(Jt(a,void 0,_,!1)&&!a.isTypeOnly){const b=da(wi(a)),C=b.kind===281||b.kind===278,M=C?w.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:w.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,z=C?w._0_was_exported_here:w._0_was_imported_here,Z=b.kind===278?"*":lf(b.name.escapedText);ml(He(a.moduleReference,M),kc(b,z,Z))}}function hh(a,_,b,C){const M=a.exports.get("export="),z=M?Fn(Vo(M),_,!0):a.exports.get(_),Z=wp(z,C);return Jt(b,z,Z,!1),Z}function qo(a){return Ly(a)&&!a.isExportEquals||il(a,1024)||Oy(a)}function d_(a){return sp(a)?kA(ns(a),a):void 0}function Ka(a,_){return a===99&&_===1}function Qi(a){return d_(a)===99&&h_(a.text,".json")}function Pm(a,_,b,C){const M=a&&d_(C);if(a&&M!==void 0){const z=Ka(M,a.impliedNodeFormat);if(M===99||z)return z}if(!it)return!1;if(!a||a.isDeclarationFile){const z=hh(_,"default",void 0,!0);return!(z&>(z.declarations,qo)||hh(_,ty("__esModule"),void 0,b))}return v1(a)?typeof a.externalModuleIndicator!="object"&&!hh(_,ty("__esModule"),void 0,b):N1(_)}function Ag(a,_){const b=Zm(a,a.parent.moduleSpecifier);if(b)return va(b,a,_)}function va(a,_,b){var C;let M;VM(a)?M=a:M=hh(a,"default",_,b);const z=(C=a.declarations)==null?void 0:C.find(tl),Z=x0(_);if(!Z)return M;const me=Qi(Z),Se=Pm(z,a,b,Z);if(!M&&!Se&&!me)if(N1(a)&&!it){const Je=ke>=5?"allowSyntheticDefaultImports":"esModuleInterop",Pt=a.exports.get("export=").valueDeclaration,dn=He(_.name,w.Module_0_can_only_be_default_imported_using_the_1_flag,Cl(a),Je);Pt&&ml(dn,kc(Pt,w.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Je))}else lC(_)?Nm(a,_):Sc(a,a,_,l9(_)&&_.propertyName||_.name);else if(Se||me){const Je=$0(a,b)||wp(a,b);return Jt(_,a,Je,!1),Je}return Jt(_,M,void 0,!1),M}function x0(a){switch(a.kind){case 273:return a.parent.moduleSpecifier;case 271:return j0(a.moduleReference)?a.moduleReference.expression:void 0;case 274:return a.parent.parent.moduleSpecifier;case 276:return a.parent.parent.parent.moduleSpecifier;case 281:return a.parent.parent.moduleSpecifier;default:return ce.assertNever(a)}}function Nm(a,_){var b,C,M;if((b=a.exports)!=null&&b.has(_.symbol.escapedName))He(_.name,w.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Cl(a),Cl(_.symbol));else{const z=He(_.name,w.Module_0_has_no_default_export,Cl(a)),Z=(C=a.exports)==null?void 0:C.get("__export");if(Z){const me=(M=Z.declarations)==null?void 0:M.find(Se=>{var Je,vt;return!!(mh(Se)&&Se.moduleSpecifier&&((vt=(Je=Zm(Se,Se.moduleSpecifier))==null?void 0:Je.exports)!=null&&vt.has("default")))});me&&ml(z,kc(me,w.export_Asterisk_does_not_re_export_a_default))}}}function Md(a,_){const b=a.parent.parent.moduleSpecifier,C=Zm(a,b),M=t2(C,b,_,!1);return Jt(a,C,M,!1),M}function fe(a,_){const b=a.parent.moduleSpecifier,C=b&&Zm(a,b),M=b&&t2(C,b,_,!1);return Jt(a,C,M,!1),M}function _n(a,_){if(a===Ir&&_===Ir)return Ir;if(a.flags&790504)return a;const b=Ge(a.flags|_.flags,a.escapedName);return ce.assert(a.declarations||_.declarations),b.declarations=th(Hi(a.declarations,_.declarations),_1),b.parent=a.parent||_.parent,a.valueDeclaration&&(b.valueDeclaration=a.valueDeclaration),_.members&&(b.members=new Map(_.members)),a.exports&&(b.exports=new Map(a.exports)),b}function Xn(a,_,b,C){var M;if(a.flags&1536){const z=Gt(a).get(_.escapedText),Z=wp(z,C),me=(M=Mt(a).typeOnlyExportStarMap)==null?void 0:M.get(_.escapedText);return Jt(b,z,Z,!1,me,_.escapedText),Z}}function _i(a,_){if(a.flags&3){const b=a.valueDeclaration.type;if(b)return wp(Fn(wl(b),_))}}function $o(a,_,b=!1){var C;const M=uY(a)||a.moduleSpecifier,z=Zm(a,M),Z=!sa(_)&&_.propertyName||_.name;if(!An(Z))return;const me=Z.escapedText==="default"&&it,Se=t2(z,M,!1,me);if(Se&&Z.escapedText){if(VM(z))return z;let Je;z&&z.exports&&z.exports.get("export=")?Je=Fn(Vo(Se),Z.escapedText,!0):Je=_i(Se,Z.escapedText),Je=wp(Je,b);let vt=Xn(Se,Z,_,b);if(vt===void 0&&Z.escapedText==="default"){const dn=(C=z.declarations)==null?void 0:C.find(tl);(Qi(M)||Pm(dn,z,b,M))&&(vt=$0(z,b)||wp(z,b))}const Pt=vt&&Je&&vt!==Je?_n(Je,vt):vt||Je;return Pt||Sc(z,Se,a,Z),Pt}}function Sc(a,_,b,C){var M;const z=Dg(a,b),Z=Ud(C),me=ONe(C,_);if(me!==void 0){const Se=Cl(me),Je=He(C,w._0_has_no_exported_member_named_1_Did_you_mean_2,z,Z,Se);me.valueDeclaration&&ml(Je,kc(me.valueDeclaration,w._0_is_declared_here,Se))}else(M=a.exports)!=null&&M.has("default")?He(C,w.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,z,Z):xs(b,C,Z,a,z)}function xs(a,_,b,C,M){var z,Z;const me=(Z=(z=to(C.valueDeclaration,lk))==null?void 0:z.locals)==null?void 0:Z.get(_.escapedText),Se=C.exports;if(me){const Je=Se==null?void 0:Se.get("export=");if(Je)f_(Je,me)?Fs(a,_,b,M):He(_,w.Module_0_has_no_exported_member_1,M,b);else{const vt=Se?lr(KP(Se),dn=>!!f_(dn,me)):void 0,Pt=vt?He(_,w.Module_0_declares_1_locally_but_it_is_exported_as_2,M,b,Cl(vt)):He(_,w.Module_0_declares_1_locally_but_it_is_not_exported,M,b);me.declarations&&ml(Pt,...Vn(me.declarations,(dn,yn)=>kc(dn,yn===0?w._0_is_declared_here:w.and_here,b)))}}else He(_,w.Module_0_has_no_exported_member_1,M,b)}function Fs(a,_,b,C){if(ke>=5){const M=b1(Le)?w._0_can_only_be_imported_by_using_a_default_import:w._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b)}else if(Rs(a)){const M=b1(Le)?w._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:w._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b)}else{const M=b1(Le)?w._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:w._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;He(_,M,b,b,C)}}function Tl(a,_){if(oS(a)&&ec(a.propertyName||a.name)==="default"){const Z=x0(a),me=Z&&Zm(a,Z);if(me)return va(me,a,_)}const b=ym(a)?rI(a):a.parent.parent.parent,C=fc(b),M=$o(b,C||a,_),z=a.propertyName||a.name;return C&&M&&An(z)?wp(Fn(Vo(M),z.escapedText),_):(Jt(a,void 0,M,!1),M)}function fc(a){if(ff(a)&&a.initializer&&sa(a.initializer))return a.initializer}function Gd(a,_){if(YD(a.parent)){const b=$0(a.parent.symbol,_);return Jt(a,void 0,b,!1),b}}function ag(a,_,b){if(ec(a.propertyName||a.name)==="default"){const M=x0(a),z=M&&Zm(a,M);if(z)return va(z,a,!!b)}const C=a.parent.parent.moduleSpecifier?$o(a.parent.parent,a,b):P_(a.propertyName||a.name,_,!1,b);return Jt(a,void 0,C,!1),C}function ah(a,_){const b=Ly(a)?a.expression:a.right,C=bm(b,_);return Jt(a,void 0,C,!1),C}function bm(a,_){if(B0(a))return Iv(a).symbol;if(!Vd(a)&&!Uh(a))return;const b=P_(a,901119,!0,_);return b||(Iv(a),ge(a).resolvedSymbol)}function ay(a,_){if(ys(a.parent)&&a.parent.left===a&&a.parent.operatorToken.kind===64)return bm(a.parent.right,_)}function yp(a,_=!1){switch(a.kind){case 271:case 260:return oy(a,_);case 273:return Ag(a,_);case 274:return Md(a,_);case 280:return fe(a,_);case 276:case 208:return Tl(a,_);case 281:return ag(a,901119,_);case 277:case 226:return ah(a,_);case 270:return Gd(a,_);case 304:return P_(a.name,901119,!0,_);case 303:return bm(a.initializer,_);case 212:case 211:return ay(a,_);default:return ce.fail()}}function Cg(a,_=901119){return a?(a.flags&(2097152|_))===2097152||!!(a.flags&2097152&&a.flags&67108864):!1}function wp(a,_){return!_&&Cg(a)?Xp(a):a}function Xp(a){ce.assert((a.flags&2097152)!==0,"Should only get Alias here.");const _=Mt(a);if(_.aliasTarget)_.aliasTarget===_o&&(_.aliasTarget=Ir);else{_.aliasTarget=_o;const b=og(a);if(!b)return ce.fail();const C=yp(b);_.aliasTarget===_o?_.aliasTarget=C||Ir:He(b,w.Circular_definition_of_import_alias_0,Cl(a))}return _.aliasTarget}function r1(a){if(Mt(a).aliasTarget!==_o)return Xp(a)}function sg(a,_,b){const C=_&&da(a),M=C&&mh(C),z=C&&(M?Zm(C.moduleSpecifier,C.moduleSpecifier,!0):Xp(C.symbol)),Z=M&&z?sr(z):void 0;let me=b?0:a.flags,Se;for(;a.flags&2097152;){const Je=zh(Xp(a));if(!M&&Je===z||(Z==null?void 0:Z.get(Je.escapedName))===Je)break;if(Je===Ir)return 67108863;if(Je===a||Se!=null&&Se.has(Je))break;Je.flags&2097152&&(Se?Se.add(Je):Se=new Set([a,Je])),me|=Je.flags,a=Je}return me}function Jt(a,_,b,C,M,z){if(!a||sa(a))return!1;const Z=wi(a);if(sR(a)){const Se=Mt(Z);return Se.typeOnlyDeclaration=a,!0}if(M){const Se=Mt(Z);return Se.typeOnlyDeclaration=M,Z.escapedName!==z&&(Se.typeOnlyExportStarName=z),!0}const me=Mt(Z);return ci(me,_,C)||ci(me,b,C)}function ci(a,_,b){var C;if(_&&(a.typeOnlyDeclaration===void 0||b&&a.typeOnlyDeclaration===!1)){const M=((C=_.exports)==null?void 0:C.get("export="))??_,z=M.declarations&&lr(M.declarations,sR);a.typeOnlyDeclaration=z??Mt(M).typeOnlyDeclaration??!1}return!!a.typeOnlyDeclaration}function da(a,_){if(!(a.flags&2097152))return;const b=Mt(a);if(_===void 0)return b.typeOnlyDeclaration||void 0;if(b.typeOnlyDeclaration){const C=b.typeOnlyDeclaration.kind===278?wp(sr(b.typeOnlyDeclaration.symbol.parent).get(b.typeOnlyExportStarName||a.escapedName)):Xp(b.typeOnlyDeclaration.symbol);return sg(C)&_?b.typeOnlyDeclaration:void 0}}function Hu(a){if(!Ur)return;const _=wi(a),b=Xp(_);b&&(b===Ir||sg(_,!0)&111551&&!qk(b))&&t_(_)}function t_(a){ce.assert(Ur);const _=Mt(a);if(!_.referenced){_.referenced=!0;const b=og(a);if(!b)return ce.fail();y1(b)&&sg(wp(a))&111551&&Iv(b.moduleReference)}}function A_(a){const _=Mt(a);_.constEnumReferenced||(_.constEnumReferenced=!0)}function gd(a,_){return a.kind===80&&kH(a)&&(a=a.parent),a.kind===80||a.parent.kind===166?P_(a,1920,!1,_):(ce.assert(a.parent.kind===271),P_(a,901119,!1,_))}function Dg(a,_){return a.parent?Dg(a.parent,_)+"."+Cl(a):Cl(a,_,void 0,36)}function um(a){for(;nT(a.parent);)a=a.parent;return a}function Ig(a){let _=NS(a),b=Ro(_,_.escapedText,111551,void 0,_,!0);if(b){for(;nT(_.parent);){const C=Vo(b);if(b=Fn(C,_.parent.right.escapedText),!b)return;_=_.parent}return b}}function P_(a,_,b,C,M){if(Um(a))return;const z=1920|(Rs(a)?_&111551:0);let Z;if(a.kind===80){const me=_===z||rh(a)?w.Cannot_find_namespace_0:xBe(NS(a)),Se=Rs(a)&&!rh(a)?Qm(a,_):void 0;if(Z=wa(Ro(M||a,a.escapedText,_,b||Se?void 0:me,a,!0,!1)),!Z)return wa(Se)}else if(a.kind===166||a.kind===211){const me=a.kind===166?a.left:a.expression,Se=a.kind===166?a.right:a.name;let Je=P_(me,z,b,!1,M);if(!Je||Um(Se))return;if(Je===Ir)return Je;if(Je.valueDeclaration&&Rs(Je.valueDeclaration)&&Jd(Le)!==100&&ff(Je.valueDeclaration)&&Je.valueDeclaration.initializer&&Kbe(Je.valueDeclaration.initializer)){const vt=Je.valueDeclaration.initializer.arguments[0],Pt=Zm(vt,vt);if(Pt){const dn=$0(Pt);dn&&(Je=dn)}}if(Z=wa(Jn(Gt(Je),Se.escapedText,_)),!Z&&Je.flags&2097152&&(Z=wa(Jn(Gt(Xp(Je)),Se.escapedText,_))),!Z){if(!b){const vt=Dg(Je),Pt=Ud(Se),dn=ONe(Se,Je);if(dn){He(Se,w._0_has_no_exported_member_named_1_Did_you_mean_2,vt,Pt,Cl(dn));return}const yn=nT(a)&&um(a);if(Ev&&_&788968&&yn&&!Jm(yn.parent)&&Ig(yn)){He(yn,w._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,oE(yn));return}if(_&1920&&nT(a.parent)){const bi=wa(Jn(Gt(Je),Se.escapedText,788968));if(bi){He(a.parent.right,w.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,Cl(bi),lf(a.parent.right.escapedText));return}}He(Se,w.Namespace_0_has_no_exported_member_1,vt,Pt)}return}}else ce.assertNever(a,"Unknown entity name kind.");return ce.assert((I_(Z)&1)===0,"Should never get an instantiated symbol here."),!rh(a)&&Vd(a)&&(Z.flags&2097152||a.parent.kind===277)&&Jt(YC(a),Z,void 0,!0),Z.flags&_||C?Z:Xp(Z)}function Qm(a,_){if(uPe(a.parent)){const b=Bh(a.parent);if(b)return Ro(b,a.escapedText,_,void 0,a,!0)}}function Bh(a){if(Kr(a,M=>UC(M)||M.flags&16777216?T2(M):"quit"))return;const b=P7(a);if(b&&Ou(b)&&H8(b.expression)){const M=wi(b.expression.left);if(M)return P1(M)}if(b&&Dm(b)&&H8(b.parent)&&Ou(b.parent.parent)){const M=wi(b.parent.left);if(M)return P1(M)}if(b&&(q2(b)||Fm(b))&&ys(b.parent.parent)&&Qy(b.parent.parent)===6){const M=wi(b.parent.parent.left);if(M)return P1(M)}const C=dH(a);if(C&&S_(C)){const M=wi(C);return M&&M.valueDeclaration}}function P1(a){const _=a.parent.valueDeclaration;return _?(oG(_)?x7(_):p7(_)?k9(_):void 0)||_:void 0}function VT(a){const _=a.valueDeclaration;if(!_||!Rs(_)||a.flags&524288||jE(_,!1))return;const b=ff(_)?k9(_):x7(_);if(b){const C=Vl(b);if(C)return $be(C,a)}}function Zm(a,_,b){const M=Jd(Le)===1?w.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:w.Cannot_find_module_0_or_its_corresponding_type_declarations;return fb(a,_,b?void 0:M)}function fb(a,_,b,C=!1){return sp(_)?FS(a,_.text,b,_,C):void 0}function FS(a,_,b,C,M=!1){var z,Z,me,Se,Je,vt,Pt,dn,yn,hr;if(xf(_,"@types/")){const Ga=w.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hs=Sz(_,"@types/");He(C,Ga,hs,_)}const bi=bV(_,!0);if(bi)return bi;const Wo=ns(a),aa=sp(a)?a:((z=Kr(a,WE))==null?void 0:z.arguments[0])||((Z=Kr(a,Fv))==null?void 0:Z.moduleSpecifier)||((me=Kr(a,qM))==null?void 0:me.moduleReference.expression)||((Se=Kr(a,mh))==null?void 0:Se.moduleSpecifier)||((Je=xp(a)?a:a.parent&&xp(a.parent)&&a.parent.name===a?a.parent:void 0)==null?void 0:Je.name)||((vt=BE(a)?a:void 0)==null?void 0:vt.argument.literal),$s=aa&&sp(aa)?kA(Wo,aa):Wo.impliedNodeFormat,Ba=Jd(Le),lo=XU(Wo,_,$s),Xa=lo&&nse(Le,lo,Wo),Go=lo&&(!Xa||Xa===w.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(lo.resolvedFileName);if(Go){if(Xa&&He(C,Xa,_,lo.resolvedFileName),lo.resolvedUsingTsExtension&&iT(_)){const Ga=((Pt=Kr(a,Fv))==null?void 0:Pt.importClause)||Kr(a,dA(kh,mh));(Ga&&!Ga.isTypeOnly||Kr(a,WE))&&He(C,w.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Pa(ce.checkDefined(PH(_))))}else if(lo.resolvedUsingTsExtension&&!c4(Le,Wo.fileName)){const Ga=((dn=Kr(a,Fv))==null?void 0:dn.importClause)||Kr(a,dA(kh,mh));if(!(Ga!=null&&Ga.isTypeOnly||Kr(a,Wx))){const hs=ce.checkDefined(PH(_));He(C,w.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hs)}}if(Go.symbol){if(lo.isExternalLibraryImport&&!G7(lo.extension)&&dT(!1,C,Wo,$s,lo,_),Ba===3||Ba===99){const Ga=Wo.impliedNodeFormat===1&&!Kr(a,WE)||!!Kr(a,kh),hs=Kr(a,nl=>Wx(nl)||mh(nl)||Fv(nl)),Ld=hs&&Wx(hs)?(yn=hs.assertions)==null?void 0:yn.assertClause:hs==null?void 0:hs.assertClause;if(Ga&&Go.impliedNodeFormat===99&&!D2(Ld))if(Kr(a,kh))He(C,w.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,_);else{let nl;const id=OT(Wo.fileName);if(id===".ts"||id===".js"||id===".tsx"||id===".jsx"){const $y=Wo.packageJsonScope,l2=id===".ts"?".mts":id===".js"?".mjs":void 0;$y&&!$y.contents.packageJsonContent.type?l2?nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,l2,tf($y.packageDirectory,"package.json")):nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,tf($y.packageDirectory,"package.json")):l2?nl=Es(void 0,w.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,l2):nl=Es(void 0,w.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}no.add(RN(ns(C),C,Es(nl,w.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,_)))}}return wa(Go.symbol)}b&&He(C,w.File_0_is_not_a_module,Go.fileName);return}if(Sv){const Ga=qf(Sv,hs=>hs.pattern,_);if(Ga){const hs=jT&&jT.get(_);return wa(hs||Ga.symbol)}}if(lo&&!G7(lo.extension)&&Xa===void 0||Xa===w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(M){const Ga=w.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;He(C,Ga,_,lo.resolvedFileName)}else dT(Wt&&!!b,C,Wo,$s,lo,_);return}if(b){if(lo){const Ga=t.getProjectReferenceRedirect(lo.resolvedFileName);if(Ga){He(C,w.Output_file_0_has_not_been_built_from_source_file_1,Ga,lo.resolvedFileName);return}}if(Xa)He(C,Xa,_,lo.resolvedFileName);else{const Ga=U2(_)&&!e7(_),hs=Ba===3||Ba===99;if(!sI(Le)&&Pg(_,".json")&&Ba!==1&&BH(Le))He(C,w.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,_);else if($s===99&&hs&&Ga){const Ld=Su(_,qc(Wo.path)),nl=(hr=zi.find(([id,$y])=>t.fileExists(Ld+id)))==null?void 0:hr[1];nl?He(C,w.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,_+nl):He(C,w.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 He(C,b,_)}}return;function Pa(Ga){const hs=eW(_,Ga);if(WH(ke)||$s===99){const Ld=iT(_)&&c4(Le);return hs+(Ga===".mts"||Ga===".d.mts"?Ld?".mts":".mjs":Ga===".cts"||Ga===".d.mts"?Ld?".cts":".cjs":Ld?".ts":".js")}return hs}}function dT(a,_,b,C,{packageId:M,resolvedFileName:z},Z){let me;!tb(Z)&&M&&(me=jMe(b,t,Z,C,M.name)),dr(a,_,Es(me,w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,Z,z))}function $0(a,_){if(a!=null&&a.exports){const b=wp(a.exports.get("export="),_),C=xv(wa(b),wa(a));return wa(C)||a}}function xv(a,_){if(!a||a===Ir||a===_||_.exports.size===1||a.flags&2097152)return a;const b=Mt(a);if(b.cjsExportMerged)return b.cjsExportMerged;const C=a.flags&33554432?a:yi(a);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=Td()),_.exports.forEach((M,z)=>{z!=="export="&&C.exports.set(z,C.exports.has(z)?go(C.exports.get(z),M):M)}),C===a&&(Mt(C).resolvedExports=void 0,Mt(C).resolvedMembers=void 0),Mt(C).cjsExportMerged=C,b.cjsExportMerged=C}function t2(a,_,b,C){var M;const z=$0(a,b);if(!b&&z){if(!C&&!(z.flags&1539)&&!Vm(z,312)){const me=ke>=5?"allowSyntheticDefaultImports":"esModuleInterop";return He(_,w.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,me),z}const Z=_.parent;if(Fv(Z)&&uH(Z)||WE(Z)){const me=WE(Z)?Z.arguments[0]:Z.moduleSpecifier,Se=Vo(z),Je=s8(Se,z,a,me);if(Je)return q0(z,Je,Z);const vt=(M=a==null?void 0:a.declarations)==null?void 0:M.find(tl),Pt=vt&&Ka(d_(me),vt.impliedNodeFormat);if(b1(Le)||Pt){let dn=Ri(Se,0);if((!dn||!dn.length)&&(dn=Ri(Se,1)),dn&&dn.length||Fn(Se,"default",!0)||Pt){const yn=Se.flags&3670016?qbe(Se,z,a,me):vze(z,z.parent);return q0(z,yn,Z)}}}}return z}function q0(a,_,b){const C=Ge(a.flags,a.escapedName);C.declarations=a.declarations?a.declarations.slice():[],C.parent=a.parent,C.links.target=a,C.links.originatingImport=b,a.valueDeclaration&&(C.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),a.members&&(C.members=new Map(a.members)),a.exports&&(C.exports=new Map(a.exports));const M=K0(_);return C.links.type=jo(C,M.members,Zn,Zn,M.indexInfos),C}function N1(a){return a.exports.get("export=")!==void 0}function i0(a){return KP(sr(a))}function nt(a){const _=i0(a),b=$0(a);if(b!==a){const C=Vo(b);Ee(C)&&Oi(_,Vp(C))}return _}function pr(a,_){sr(a).forEach((M,z)=>{fn(z)||_(M,z)});const C=$0(a);if(C!==a){const M=Vo(C);Ee(M)&&O4(M,(z,Z)=>{_(z,Z)})}}function vi(a,_){const b=sr(_);if(b)return b.get(a)}function Di(a,_){const b=vi(a,_);if(b)return b;const C=$0(_);if(C===_)return;const M=Vo(C);return Ee(M)?Fn(M,a):void 0}function Ee(a){return!(a.flags&402784252||ji(a)&1||UA(a)||_p(a))}function Gt(a){return a.flags&6256?bB(a,"resolvedExports"):a.flags&1536?sr(a):a.exports||Ve}function sr(a){const _=Mt(a);if(!_.resolvedExports){const{exports:b,typeOnlyExportStarMap:C}=Ja(a);_.resolvedExports=b,_.typeOnlyExportStarMap=C}return _.resolvedExports}function Ii(a,_,b,C){_&&_.forEach((M,z)=>{if(z==="default")return;const Z=a.get(z);if(!Z)a.set(z,M),b&&C&&b.set(z,{specifierText:Yv(C.moduleSpecifier)});else if(b&&C&&Z&&wp(Z)!==wp(M)){const me=b.get(z);me.exportsWithDuplicate?me.exportsWithDuplicate.push(C):me.exportsWithDuplicate=[C]}})}function Ja(a){const _=[];let b;const C=new Set;a=$0(a);const M=z(a)||Ve;return b&&C.forEach(Z=>b.delete(Z)),{exports:M,typeOnlyExportStarMap:b};function z(Z,me,Se){if(!Se&&(Z!=null&&Z.exports)&&Z.exports.forEach((Pt,dn)=>C.add(dn)),!(Z&&Z.exports&&Dy(_,Z)))return;const Je=new Map(Z.exports),vt=Z.exports.get("__export");if(vt){const Pt=Td(),dn=new Map;if(vt.declarations)for(const yn of vt.declarations){const hr=Zm(yn,yn.moduleSpecifier),bi=z(hr,yn,Se||yn.isTypeOnly);Ii(Pt,bi,dn,yn)}dn.forEach(({exportsWithDuplicate:yn},hr)=>{if(!(hr==="export="||!(yn&&yn.length)||Je.has(hr)))for(const bi of yn)no.add(kc(bi,w.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,dn.get(hr).specifierText,lf(hr)))}),Ii(Je,Pt)}return me!=null&&me.isTypeOnly&&(b??(b=new Map),Je.forEach((Pt,dn)=>b.set(dn,me))),Je}}function wa(a){let _;return a&&a.mergeId&&(_=Qt[a.mergeId])?_:a}function wi(a){return wa(a.symbol&&$R(a.symbol))}function Vl(a){return YD(a)?wi(a):void 0}function Uf(a){return wa(a.parent&&$R(a.parent))}function Y_(a,_){const b=ns(_),C=Im(b),M=Mt(a);let z;if(M.extendedContainersByFile&&(z=M.extendedContainersByFile.get(C)))return z;if(b&&b.imports){for(const me of b.imports){if(rh(me))continue;const Se=Zm(_,me,!0);!Se||!_b(Se,a)||(z=ur(z,Se))}if(Nt(z))return(M.extendedContainersByFile||(M.extendedContainersByFile=new Map)).set(C,z),z}if(M.extendedContainers)return M.extendedContainers;const Z=t.getSourceFiles();for(const me of Z){if(!Wv(me))continue;const Se=wi(me);_b(Se,a)&&(z=ur(z,Se))}return M.extendedContainers=z||Zn}function Fg(a,_,b){const C=Uf(a);if(C&&!(a.flags&262144)){const Z=Qo(C.declarations,z),me=_&&Y_(a,_),Se=sv(C,b);if(_&&C.flags&Fc(b)&&ks(C,_,1920,!1))return ur(Hi(Hi([C],Z),me),Se);const Je=!(C.flags&Fc(b))&&C.flags&788968&&Rm(C).flags&524288&&b===111551?ca(_,Pt=>wT(Pt,dn=>{if(dn.flags&Fc(b)&&Vo(dn)===Rm(C))return dn})):void 0;let vt=Je?[Je,...Z,C]:[...Z,C];return vt=ur(vt,Se),vt=Oi(vt,me),vt}const M=Qo(a.declarations,Z=>{if(!Ov(Z)&&Z.parent){if(fl(Z.parent))return wi(Z.parent);if(z0(Z.parent)&&Z.parent.parent&&$0(wi(Z.parent.parent))===a)return wi(Z.parent.parent)}if(B0(Z)&&ys(Z.parent)&&Z.parent.operatorToken.kind===64&&Kf(Z.parent.left)&&Uh(Z.parent.left.expression))return KC(Z.parent.left)||GL(Z.parent.left.expression)?wi(ns(Z)):(Iv(Z.parent.left.expression),ge(Z.parent.left.expression).resolvedSymbol)});if(!Nt(M))return;return Qo(M,Z=>_b(Z,a)?Z:void 0);function z(Z){return C&&vy(Z,C)}}function sv(a,_){const b=!!Nt(a.declarations)&&Dl(a.declarations);if(_&111551&&b&&b.parent&&ff(b.parent)&&(Wd(b)&&b===b.parent.initializer||e0(b)&&b===b.parent.type))return wi(b.parent)}function vy(a,_){const b=Js(a),C=b&&b.exports&&b.exports.get("export=");return C&&f_(C,_)?b:void 0}function _b(a,_){if(a===Uf(_))return _;const b=a.exports&&a.exports.get("export=");if(b&&f_(b,_))return a;const C=Gt(a),M=C.get(_.escapedName);return M&&f_(M,_)?M:wT(C,z=>{if(f_(z,_))return z})}function f_(a,_){if(wa(wp(wa(a)))===wa(wp(wa(_))))return a}function zh(a){return wa(a&&(a.flags&1048576)!==0&&a.exportSymbol||a)}function i1(a,_){return!!(a.flags&111551||a.flags&2097152&&sg(a,!_)&111551)}function n2(a){const _=a.members;for(const b of _)if(b.kind===176&&wx(b.body))return b}function Vv(a){var _;const b=new I(ro,a);return O++,b.id=O,(_=tu)==null||_.recordType(b),b}function su(a,_){const b=Vv(a);return b.symbol=_,b}function gC(a){return new I(ro,a)}function eg(a,_,b=0){const C=Vv(a);return C.intrinsicName=_,C.objectFlags=b|524288|2097152|33554432|16777216,C}function Uv(a,_){const b=su(524288,_);return b.objectFlags=a,b.members=void 0,b.properties=void 0,b.callSignatures=void 0,b.constructSignatures=void 0,b.indexInfos=void 0,b}function Rk(){return gl(oc(xae.keys(),qv))}function Lb(a){return su(262144,a)}function fn(a){return a.charCodeAt(0)===95&&a.charCodeAt(1)===95&&a.charCodeAt(2)!==95&&a.charCodeAt(2)!==64&&a.charCodeAt(2)!==35}function $n(a){let _;return a.forEach((b,C)=>{ri(b,C)&&(_||(_=[])).push(b)}),_||Zn}function ri(a,_){return!fn(_)&&i1(a)}function Li(a){const _=$n(a),b=W0e(a);return b?Hi(_,[b]):_}function yo(a,_,b,C,M){const z=a;return z.members=_,z.properties=Zn,z.callSignatures=b,z.constructSignatures=C,z.indexInfos=M,_!==Ve&&(z.properties=$n(_)),z}function jo(a,_,b,C,M){return yo(Uv(16,a),_,b,C,M)}function Oo(a){if(a.constructSignatures.length===0)return a;if(a.objectTypeWithoutAbstractConstructSignatures)return a.objectTypeWithoutAbstractConstructSignatures;const _=gi(a.constructSignatures,C=>!(C.flags&4));if(a.constructSignatures===_)return a;const b=jo(a.symbol,a.members,a.callSignatures,gt(_)?_:Zn,a.indexInfos);return a.objectTypeWithoutAbstractConstructSignatures=b,b.objectTypeWithoutAbstractConstructSignatures=b,b}function ca(a,_){let b;for(let C=a;C;C=C.parent){if(lk(C)&&C.locals&&!mn(C)&&(b=_(C.locals,void 0,!0,C)))return b;switch(C.kind){case 312:if(!h1(C))break;case 267:const M=wi(C);if(b=_((M==null?void 0:M.exports)||Ve,void 0,!0,C))return b;break;case 263:case 231:case 264:let z;if((wi(C).members||Ve).forEach((Z,me)=>{Z.flags&788968&&(z||(z=Td())).set(me,Z)}),z&&(b=_(z,void 0,!1,C)))return b;break}}return _(Ut,void 0,!0)}function Fc(a){return a===111551?111551:1920}function ks(a,_,b,C,M=new Map){if(!(a&&!Vs(a)))return;const z=Mt(a),Z=z.accessibleChainCache||(z.accessibleChainCache=new Map),me=ca(_,(aa,$s,Ba,lo)=>lo),Se=`${C?0:1}|${me&&Im(me)}|${b}`;if(Z.has(Se))return Z.get(Se);const Je=Bp(a);let vt=M.get(Je);vt||M.set(Je,vt=[]);const Pt=ca(_,dn);return Z.set(Se,Pt),Pt;function dn(aa,$s,Ba){if(!Dy(vt,aa))return;const lo=bi(aa,$s,Ba);return vt.pop(),lo}function yn(aa,$s){return!Xs(aa,_,$s)||!!ks(aa.parent,_,Fc($s),C,M)}function hr(aa,$s,Ba){return(a===($s||aa)||wa(a)===wa($s||aa))&&!gt(aa.declarations,fl)&&(Ba||yn(wa(aa),b))}function bi(aa,$s,Ba){return hr(aa.get(a.escapedName),void 0,$s)?[a]:wT(aa,Xa=>{if(Xa.flags&2097152&&Xa.escapedName!=="export="&&Xa.escapedName!=="default"&&!(MH(Xa)&&_&&Wv(ns(_)))&&(!C||gt(Xa.declarations,qM))&&(!Ba||!gt(Xa.declarations,Eie))&&($s||!Vm(Xa,281))){const Go=Xp(Xa),Pa=Wo(Xa,Go,$s);if(Pa)return Pa}if(Xa.escapedName===a.escapedName&&Xa.exportSymbol&&hr(wa(Xa.exportSymbol),void 0,$s))return[a]})||(aa===Ut?Wo(gr,gr,$s):void 0)}function Wo(aa,$s,Ba){if(hr(aa,$s,Ba))return[aa];const lo=Gt($s),Xa=lo&&dn(lo,!0);if(Xa&&yn(aa,Fc(b)))return[aa].concat(Xa)}}function Xs(a,_,b){let C=!1;return ca(_,M=>{let z=wa(M.get(a.escapedName));if(!z)return!1;if(z===a)return!0;const Z=z.flags&2097152&&!Vm(z,281);return z=Z?Xp(z):z,(Z?sg(z):z.flags)&b?(C=!0,!0):!1}),C}function Vs(a){if(a.declarations&&a.declarations.length){for(const _ of a.declarations)switch(_.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function wu(a,_){return oo(a,_,788968,!1,!0).accessibility===0}function Yp(a,_){return oo(a,_,111551,!1,!0).accessibility===0}function Q(a,_,b){return oo(a,_,b,!1,!1).accessibility===0}function ft(a,_,b,C,M,z){if(!Nt(a))return;let Z,me=!1;for(const Se of a){const Je=ks(Se,_,C,!1);if(Je){Z=Se;const dn=ju(Je[0],M);if(dn)return dn}if(z&>(Se.declarations,fl)){if(M){me=!0;continue}return{accessibility:0}}const vt=Fg(Se,_,C),Pt=ft(vt,_,b,b===Se?Fc(C):C,M,z);if(Pt)return Pt}if(me)return{accessibility:0};if(Z)return{accessibility:1,errorSymbolName:Cl(b,_,C),errorModuleName:Z!==b?Cl(Z,_,1920):void 0}}function br(a,_,b,C){return oo(a,_,b,C,!0)}function oo(a,_,b,C,M){if(a&&_){const z=ft([a],_,a,b,C,M);if(z)return z;const Z=Ot(a.declarations,Js);if(Z){const me=Js(_);if(Z!==me)return{accessibility:2,errorSymbolName:Cl(a,_,b),errorModuleName:Cl(Z),errorNode:Rs(_)?_:void 0}}return{accessibility:1,errorSymbolName:Cl(a,_,b)}}return{accessibility:0}}function Js(a){const _=Kr(a,pu);return _&&wi(_)}function pu(a){return Ov(a)||a.kind===312&&h1(a)}function fl(a){return iY(a)||a.kind===312&&h1(a)}function ju(a,_){let b;if(!jr(gi(a.declarations,z=>z.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:b};function C(z){var Z,me;if(!WS(z)){const Se=R_(z);if(Se&&!il(Se,1)&&WS(Se.parent))return M(z,Se);if(ff(z)&&Dh(z.parent.parent)&&!il(z.parent.parent,1)&&WS(z.parent.parent.parent))return M(z,z.parent.parent);if(Xz(z)&&!il(z,1)&&WS(z.parent))return M(z,z);if(ym(z)){if(a.flags&2097152&&Rs(z)&&((Z=z.parent)!=null&&Z.parent)&&ff(z.parent.parent)&&((me=z.parent.parent.parent)!=null&&me.parent)&&Dh(z.parent.parent.parent.parent)&&!il(z.parent.parent.parent.parent,1)&&z.parent.parent.parent.parent.parent&&WS(z.parent.parent.parent.parent.parent))return M(z,z.parent.parent.parent.parent);if(a.flags&2){const Je=Kr(z,Dh);return il(Je,1)?!0:WS(Je.parent)?M(z,Je):!1}}return!1}return!0}function M(z,Z){return _&&(ge(z).isVisible=!0,b=ST(b,Z)),!0}}function L_(a,_){let b;a.parent.kind===186||a.parent.kind===233&&!rC(a.parent)||a.parent.kind===167?b=1160127:a.kind===166||a.kind===211||a.parent.kind===271?b=1920:b=788968;const C=NS(a),M=Ro(_,C.escapedText,b,void 0,void 0,!1);return M&&M.flags&262144&&b&788968?{accessibility:0}:!M&&Zy(C)&&br(wi(Q1(C,!1,!1)),C,b,!1).accessibility===0?{accessibility:0}:M&&ju(M,!0)||{accessibility:1,errorSymbolName:Yv(C),errorNode:C}}function Cl(a,_,b,C=4,M){let z=70221824;C&2&&(z|=128),C&1&&(z|=512),C&8&&(z|=16384),C&32&&(z|=134217728),C&16&&(z|=1073741824);const Z=C&4?Xr.symbolToNode:Xr.symbolToEntityName;return M?me(M).getText():qU(me);function me(Se){const Je=Z(a,b,_,z),vt=(_==null?void 0:_.kind)===312?P4e():GW(),Pt=_&&ns(_);return vt.writeNode(4,Je,Pt,Se),Se}}function o0(a,_,b=0,C,M){return M?z(M).getText():qU(z);function z(Z){let me;b&262144?me=C===1?185:184:me=C===1?180:179;const Se=Xr.signatureToSignatureDeclaration(a,me,_,hC(b)|70221824|512),Je=jQ(),vt=_&&ns(_);return Je.writeNode(4,Se,vt,Rde(Z)),Z}}function oa(a,_,b=1064960,C=wie("")){const M=Le.noErrorTruncation||b&1,z=Xr.typeToTypeNode(a,_,hC(b)|70221824|(M?1:0));if(z===void 0)return ce.fail("should always get typenode");const Z=a!==Cn?GW():k4e(),me=_&&ns(_);Z.writeNode(4,z,me,C);const Se=C.getText(),Je=M?HN*2:yG*2;return Je&&Se&&Se.length>=Je?Se.substr(0,Je-3)+"...":Se}function dD(a,_){let b=Kx(a.symbol)?oa(a,a.symbol.valueDeclaration):oa(a),C=Kx(_.symbol)?oa(_,_.symbol.valueDeclaration):oa(_);return b===C&&(b=a0(a),C=a0(_)),[b,C]}function a0(a){return oa(a,void 0,64)}function Kx(a){return a&&!!a.valueDeclaration&&Nr(a.valueDeclaration)&&!nA(a.valueDeclaration)}function hC(a=0){return a&848330091}function WP(a){return!!a.symbol&&!!(a.symbol.flags&32)&&(a===Uy(a.symbol)||!!(a.flags&524288)&&!!(ji(a)&16777216))}function BP(){return{typeToTypeNode:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>C(On,Ec)),indexInfoToIndexSignatureDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>vt(On,Ec,void 0)),signatureToSignatureDeclaration:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>Pt(On,Xt,Bc)),symbolToEntityName:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>nl(On,Bc,Xt,!1)),symbolToExpression:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>id(On,Bc,Xt)),symbolToTypeParameterDeclarations:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>Ba(On,Ec)),symbolToParameterDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>bi(On,Ec)),typeParameterToDeclaration:(On,Xt,bs,as)=>_(Xt,bs,as,Ec=>hr(On,Ec)),symbolTableToDeclarationStatements:(On,Xt,bs,as,Ec)=>_(Xt,bs,as,Bc=>$T(On,Bc,Ec)),symbolToNode:(On,Xt,bs,as,Ec)=>_(bs,as,Ec,Bc=>a(On,Bc,Xt))};function a(On,Xt,bs){if(Xt.flags&1073741824){if(On.valueDeclaration){const Ec=o_(On.valueDeclaration);if(Ec&&am(Ec))return Ec}const as=Mt(On).nameType;if(as&&as.flags&9216)return Xt.enclosingDeclaration=as.symbol.valueDeclaration,be.createComputedPropertyName(id(as.symbol,Xt,bs))}return id(On,Xt,bs)}function _(On,Xt,bs,as){ce.assert(On===void 0||(On.flags&16)===0);const Ec=bs!=null&&bs.trackSymbol?bs.moduleResolverHost:Xt&134217728?AHe(t):void 0,Bc={enclosingDeclaration:On,flags:Xt||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Bc.tracker=new y$(Bc,bs,Ec);const Rf=as(Bc);return Bc.truncating&&Bc.flags&1&&Bc.tracker.reportTruncationError(),Bc.encounteredError?void 0:Rf}function b(On){return On.truncating?On.truncating:On.truncating=On.approximateLength>(On.flags&1?HN:yG)}function C(On,Xt){const bs=Xt.flags,as=M(On,Xt);return Xt.flags=bs,as}function M(On,Xt){var bs,as;l&&l.throwIfCancellationRequested&&l.throwIfCancellationRequested();const Ec=Xt.flags&8388608;if(Xt.flags&=-8388609,!On){if(!(Xt.flags&262144)){Xt.encounteredError=!0;return}return Xt.approximateLength+=3,be.createKeywordTypeNode(133)}if(Xt.flags&536870912||(On=HT(On)),On.flags&1)return On.aliasSymbol?be.createTypeReferenceNode(Pa(On.aliasSymbol),Se(On.aliasTypeArguments,Xt)):On===Cn?_y(be.createKeywordTypeNode(133),3,"unresolved"):(Xt.approximateLength+=3,be.createKeywordTypeNode(On===Qr?141:133));if(On.flags&2)return be.createKeywordTypeNode(159);if(On.flags&4)return Xt.approximateLength+=6,be.createKeywordTypeNode(154);if(On.flags&8)return Xt.approximateLength+=6,be.createKeywordTypeNode(150);if(On.flags&64)return Xt.approximateLength+=6,be.createKeywordTypeNode(163);if(On.flags&16&&!On.aliasSymbol)return Xt.approximateLength+=7,be.createKeywordTypeNode(136);if(On.flags&1056){if(On.symbol.flags&8){const Jo=Uf(On.symbol),rc=Ga(Jo,Xt,788968);if(Rm(Jo)===On)return rc;const Ll=mp(On.symbol);return rE(Ll,0)?rf(rc,be.createTypeReferenceNode(Ll,void 0)):Wx(rc)?(rc.isTypeOf=!0,be.createIndexedAccessTypeNode(rc,be.createLiteralTypeNode(be.createStringLiteral(Ll)))):x2(rc)?be.createIndexedAccessTypeNode(be.createTypeQueryNode(rc.typeName),be.createLiteralTypeNode(be.createStringLiteral(Ll))):ce.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ga(On.symbol,Xt,788968)}if(On.flags&128)return Xt.approximateLength+=On.value.length+2,be.createLiteralTypeNode(Sa(be.createStringLiteral(On.value,!!(Xt.flags&268435456)),16777216));if(On.flags&256){const Jo=On.value;return Xt.approximateLength+=(""+Jo).length,be.createLiteralTypeNode(Jo<0?be.createPrefixUnaryExpression(41,be.createNumericLiteral(-Jo)):be.createNumericLiteral(Jo))}if(On.flags&2048)return Xt.approximateLength+=tD(On.value).length+1,be.createLiteralTypeNode(be.createBigIntLiteral(On.value));if(On.flags&512)return Xt.approximateLength+=On.intrinsicName.length,be.createLiteralTypeNode(On.intrinsicName==="true"?be.createTrue():be.createFalse());if(On.flags&8192){if(!(Xt.flags&1048576)){if(Yp(On.symbol,Xt.enclosingDeclaration))return Xt.approximateLength+=6,Ga(On.symbol,Xt,111551);Xt.tracker.reportInaccessibleUniqueSymbolError&&Xt.tracker.reportInaccessibleUniqueSymbolError()}return Xt.approximateLength+=13,be.createTypeOperatorNode(158,be.createKeywordTypeNode(155))}if(On.flags&16384)return Xt.approximateLength+=4,be.createKeywordTypeNode(116);if(On.flags&32768)return Xt.approximateLength+=9,be.createKeywordTypeNode(157);if(On.flags&65536)return Xt.approximateLength+=4,be.createLiteralTypeNode(be.createNull());if(On.flags&131072)return Xt.approximateLength+=5,be.createKeywordTypeNode(146);if(On.flags&4096)return Xt.approximateLength+=6,be.createKeywordTypeNode(155);if(On.flags&67108864)return Xt.approximateLength+=6,be.createKeywordTypeNode(151);if(p3(On))return Xt.flags&4194304&&(!Xt.encounteredError&&!(Xt.flags&32768)&&(Xt.encounteredError=!0),(as=(bs=Xt.tracker).reportInaccessibleThisError)==null||as.call(bs)),Xt.approximateLength+=4,be.createThisTypeNode();if(!Ec&&On.aliasSymbol&&(Xt.flags&16384||wu(On.aliasSymbol,Xt.enclosingDeclaration))){const Jo=Se(On.aliasTypeArguments,Xt);return fn(On.aliasSymbol.escapedName)&&!(On.aliasSymbol.flags&32)?be.createTypeReferenceNode(be.createIdentifier(""),Jo):Nt(Jo)===1&&On.aliasSymbol===fi.symbol?be.createArrayTypeNode(Jo[0]):Ga(On.aliasSymbol,Xt,788968,Jo)}const Bc=ji(On);if(Bc&4)return ce.assert(!!(On.flags&524288)),On.node?ao(On,ja):ja(On);if(On.flags&262144||Bc&3){if(On.flags&262144&&ni(Xt.inferTypeParameters,On)){Xt.approximateLength+=mp(On.symbol).length+6;let rc;const Ll=Wi(On);if(Ll){const Sf=z0e(On,!0);Sf&&eN(Ll,Sf)||(Xt.approximateLength+=9,rc=Ll&&C(Ll,Xt))}return be.createInferTypeNode(yn(On,Xt,rc))}if(Xt.flags&4&&On.flags&262144&&!wu(On.symbol,Xt.enclosingDeclaration)){const rc=Ld(On,Xt);return Xt.approximateLength+=ec(rc).length,be.createTypeReferenceNode(be.createIdentifier(ec(rc)),void 0)}if(On.symbol)return Ga(On.symbol,Xt,788968);const Jo=(On===vE||On===oh)&&Ne&&Ne.symbol?(On===oh?"sub-":"super-")+mp(Ne.symbol):"?";return be.createTypeReferenceNode(be.createIdentifier(Jo),void 0)}if(On.flags&1048576&&On.origin&&(On=On.origin),On.flags&3145728){const Jo=On.flags&1048576?OA(On.types):On.types;if(Nt(Jo)===1)return C(Jo[0],Xt);const rc=Se(Jo,Xt,!0);if(rc&&rc.length>0)return On.flags&1048576?be.createUnionTypeNode(rc):be.createIntersectionTypeNode(rc);!Xt.encounteredError&&!(Xt.flags&262144)&&(Xt.encounteredError=!0);return}if(Bc&48)return ce.assert(!!(On.flags&524288)),No(On);if(On.flags&4194304){const Jo=On.type;Xt.approximateLength+=6;const rc=C(Jo,Xt);return be.createTypeOperatorNode(143,rc)}if(On.flags&134217728){const Jo=On.texts,rc=On.types,Ll=be.createTemplateHead(Jo[0]),Sf=be.createNodeArray(Vn(rc,(Od,hb)=>be.createTemplateLiteralTypeSpan(C(Od,Xt),(hbRf(Jo));if(On.flags&33554432)return C(On.baseType,Xt);return ce.fail("Should be unreachable.");function Rf(Jo){const rc=C(Jo.checkType,Xt);if(Xt.approximateLength+=15,Xt.flags&4&&Jo.root.isDistributive&&!(Jo.checkType.flags&262144)){const rm=Lb(Ge(262144,"T")),I0=Ld(rm,Xt),yg=be.createTypeReferenceNode(I0);Xt.approximateLength+=37;const or=NB(Jo.root.checkType,rm,Jo.mapper),Hr=Xt.inferTypeParameters;Xt.inferTypeParameters=Jo.root.inferTypeParameters;const fo=C(Nf(Jo.root.extendsType,or),Xt);Xt.inferTypeParameters=Hr;const Oa=Mu(Nf(wl(Jo.root.node.trueType),or)),Qs=Mu(Nf(wl(Jo.root.node.falseType),or));return be.createConditionalTypeNode(rc,be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(yg.typeName))),be.createConditionalTypeNode(be.createTypeReferenceNode(be.cloneNode(I0)),C(Jo.checkType,Xt),be.createConditionalTypeNode(yg,fo,Oa,Qs),be.createKeywordTypeNode(146)),be.createKeywordTypeNode(146))}const Ll=Xt.inferTypeParameters;Xt.inferTypeParameters=Jo.root.inferTypeParameters;const Sf=C(Jo.extendsType,Xt);Xt.inferTypeParameters=Ll;const Od=Mu(QP(Jo)),hb=Mu(X6(Jo));return be.createConditionalTypeNode(rc,Sf,Od,hb)}function Mu(Jo){var rc,Ll,Sf;return Jo.flags&1048576?(rc=Xt.visitedTypes)!=null&&rc.has(Gh(Jo))?(Xt.flags&131072||(Xt.encounteredError=!0,(Sf=(Ll=Xt.tracker)==null?void 0:Ll.reportCyclicStructureError)==null||Sf.call(Ll)),z(Xt)):ao(Jo,Od=>C(Od,Xt)):C(Jo,Xt)}function xc(Jo){return!!PPe(Jo)}function Dr(Jo){return!!Jo.target&&xc(Jo.target)&&!xc(Jo)}function Pi(Jo){var rc;ce.assert(!!(Jo.flags&524288));const Ll=Jo.declaration.readonlyToken?be.createToken(Jo.declaration.readonlyToken.kind):void 0,Sf=Jo.declaration.questionToken?be.createToken(Jo.declaration.questionToken.kind):void 0;let Od,hb;const rm=!L4(Jo)&&!(c0(Jo).flags&2)&&Xt.flags&4&&!(mT(Jo).flags&262144&&((rc=Wi(mT(Jo)))==null?void 0:rc.flags)&4194304);if(L4(Jo)){if(Dr(Jo)&&Xt.flags&4){const Oa=Lb(Ge(262144,"T")),Qs=Ld(Oa,Xt);hb=be.createTypeReferenceNode(Qs)}Od=be.createTypeOperatorNode(143,hb||C(c0(Jo),Xt))}else if(rm){const Oa=Lb(Ge(262144,"T")),Qs=Ld(Oa,Xt);hb=be.createTypeReferenceNode(Qs),Od=hb}else Od=C(mT(Jo),Xt);const I0=yn(L1(Jo),Xt,Od),yg=Jo.declaration.nameType?C(Vg(Jo),Xt):void 0,or=C(l5(SC(Jo),!!(jS(Jo)&4)),Xt),Hr=be.createMappedTypeNode(Ll,I0,yg,Sf,or,void 0);Xt.approximateLength+=10;const fo=Sa(Hr,1);if(Dr(Jo)&&Xt.flags&4){const Oa=Nf(Wi(wl(Jo.declaration.typeParameter.constraint.type))||co,Jo.mapper);return be.createConditionalTypeNode(C(c0(Jo),Xt),be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(hb.typeName),Oa.flags&2?void 0:C(Oa,Xt))),fo,be.createKeywordTypeNode(146))}else if(rm)return be.createConditionalTypeNode(C(mT(Jo),Xt),be.createInferTypeNode(be.createTypeParameterDeclaration(void 0,be.cloneNode(hb.typeName),be.createTypeOperatorNode(143,C(c0(Jo),Xt)))),fo,be.createKeywordTypeNode(146));return fo}function No(Jo){var rc,Ll;const Sf=Jo.id,Od=Jo.symbol;if(Od){const rm=WP(Jo)?788968:111551;if(JI(Od.valueDeclaration))return Ga(Od,Xt,rm);if(Od.flags&32&&!kI(Od)&&!(Od.valueDeclaration&&Jl(Od.valueDeclaration)&&Xt.flags&2048&&(!Kc(Od.valueDeclaration)||br(Od,Xt.enclosingDeclaration,rm,!1).accessibility!==0))||Od.flags&896||hb())return Ga(Od,Xt,rm);if((rc=Xt.visitedTypes)!=null&&rc.has(Sf)){const I0=yC(Jo);return I0?Ga(I0,Xt,788968):z(Xt)}else return ao(Jo,Bo)}else{if(!!(ji(Jo)&8388608)){const I0=Jo;if(uE(I0.node)){const yg=Lp(Xt,I0.node);if(yg)return yg}return(Ll=Xt.visitedTypes)!=null&&Ll.has(Sf)?z(Xt):ao(Jo,Bo)}return Bo(Jo)}function hb(){var rm;const I0=!!(Od.flags&8192)&>(Od.declarations,or=>e_(or)),yg=!!(Od.flags&16)&&(Od.parent||Ot(Od.declarations,or=>or.parent.kind===312||or.parent.kind===268));if(I0||yg)return(!!(Xt.flags&4096)||((rm=Xt.visitedTypes)==null?void 0:rm.has(Sf)))&&(!(Xt.flags&8)||Yp(Od,Xt.enclosingDeclaration))}}function ao(Jo,rc){var Ll,Sf;const Od=Jo.id,hb=ji(Jo)&16&&Jo.symbol&&Jo.symbol.flags&32,rm=ji(Jo)&4&&Jo.node?"N"+Im(Jo.node):Jo.flags&16777216?"N"+Im(Jo.root.node):Jo.symbol?(hb?"+":"")+Bp(Jo.symbol):void 0;Xt.visitedTypes||(Xt.visitedTypes=new Set),rm&&!Xt.symbolDepth&&(Xt.symbolDepth=new Map);const I0=Xt.enclosingDeclaration&&ge(Xt.enclosingDeclaration),yg=`${Gh(Jo)}|${Xt.flags}`;I0&&(I0.serializedTypes||(I0.serializedTypes=new Map));const or=(Ll=I0==null?void 0:I0.serializedTypes)==null?void 0:Ll.get(yg);if(or)return or.truncating&&(Xt.truncating=!0),Xt.approximateLength+=or.addedLength,Ko(or.node);let Hr;if(rm){if(Hr=Xt.symbolDepth.get(rm)||0,Hr>10)return z(Xt);Xt.symbolDepth.set(rm,Hr+1)}Xt.visitedTypes.add(Od);const fo=Xt.approximateLength,Oa=rc(Jo),Qs=Xt.approximateLength-fo;return!Xt.reportedDiagnostic&&!Xt.encounteredError&&((Sf=I0==null?void 0:I0.serializedTypes)==null||Sf.set(yg,{node:Oa,truncating:Xt.truncating,addedLength:Qs})),Xt.visitedTypes.delete(Od),rm&&Xt.symbolDepth.set(rm,Hr),Oa;function Ko(ll){return!rh(ll)&&Il(ll)===ll?ll:vr(be.cloneNode(ia(ll,Ko,I6,ss)),ll)}function ss(ll,of,C_,nd,kd){return ll&&ll.length===0?vr(be.createNodeArray(void 0,ll.hasTrailingComma),ll):Fa(ll,of,C_,nd,kd)}}function Bo(Jo){if(by(Jo)||Jo.containsError)return Pi(Jo);const rc=K0(Jo);if(!rc.properties.length&&!rc.indexInfos.length){if(!rc.callSignatures.length&&!rc.constructSignatures.length)return Xt.approximateLength+=2,Sa(be.createTypeLiteralNode(void 0),1);if(rc.callSignatures.length===1&&!rc.constructSignatures.length){const rm=rc.callSignatures[0];return Pt(rm,184,Xt)}if(rc.constructSignatures.length===1&&!rc.callSignatures.length){const rm=rc.constructSignatures[0];return Pt(rm,185,Xt)}}const Ll=gi(rc.constructSignatures,rm=>!!(rm.flags&4));if(gt(Ll)){const rm=Vn(Ll,WI);return rc.callSignatures.length+(rc.constructSignatures.length-Ll.length)+rc.indexInfos.length+(Xt.flags&2048?dp(rc.properties,yg=>!(yg.flags&4194304)):Nt(rc.properties))&&rm.push(Oo(rc)),C(Dd(rm),Xt)}const Sf=Xt.flags;Xt.flags|=4194304;const Od=td(rc);Xt.flags=Sf;const hb=be.createTypeLiteralNode(Od);return Xt.approximateLength+=2,Sa(hb,Xt.flags&1024?0:1),hb}function ja(Jo){let rc=Tm(Jo);if(Jo.target===fi||Jo.target===ya){if(Xt.flags&2){const Od=C(rc[0],Xt);return be.createTypeReferenceNode(Jo.target===fi?"Array":"ReadonlyArray",[Od])}const Ll=C(rc[0],Xt),Sf=be.createArrayTypeNode(Ll);return Jo.target===fi?Sf:be.createTypeOperatorNode(148,Sf)}else if(Jo.target.objectFlags&8){if(rc=Ol(rc,(Ll,Sf)=>l5(Ll,!!(Jo.target.elementFlags[Sf]&2))),rc.length>0){const Ll=Fo(Jo),Sf=Se(rc.slice(0,Ll),Xt);if(Sf){const{labeledElementDeclarations:Od}=Jo.target;for(let rm=0;rm0){const yg=(Jo.target.typeParameters||Zn).length;hb=Se(rc.slice(Sf,yg),Xt)}const rm=Xt.flags;Xt.flags|=16;const I0=Ga(Jo.symbol,Xt,788968,hb);return Xt.flags=rm,Od?rf(Od,I0):I0}}}function rf(Jo,rc){if(Wx(Jo)){let Ll=Jo.typeArguments,Sf=Jo.qualifier;Sf&&(An(Sf)?Ll!==H7(Sf)&&(Sf=qN(be.cloneNode(Sf),Ll)):Ll!==H7(Sf.right)&&(Sf=be.updateQualifiedName(Sf,Sf.left,qN(be.cloneNode(Sf.right),Ll)))),Ll=rc.typeArguments;const Od=zl(rc);for(const hb of Od)Sf=Sf?be.createQualifiedName(Sf,hb):hb;return be.updateImportTypeNode(Jo,Jo.argument,Jo.assertions,Sf,Ll,Jo.isTypeOf)}else{let Ll=Jo.typeArguments,Sf=Jo.typeName;An(Sf)?Ll!==H7(Sf)&&(Sf=qN(be.cloneNode(Sf),Ll)):Ll!==H7(Sf.right)&&(Sf=be.updateQualifiedName(Sf,Sf.left,qN(be.cloneNode(Sf.right),Ll))),Ll=rc.typeArguments;const Od=zl(rc);for(const hb of Od)Sf=be.createQualifiedName(Sf,hb);return be.updateTypeReferenceNode(Jo,Sf,Ll)}}function zl(Jo){let rc=Jo.typeName;const Ll=[];for(;!An(rc);)Ll.unshift(rc.right),rc=rc.left;return Ll.unshift(rc),Ll}function td(Jo){if(b(Xt))return[be.createPropertySignature(void 0,"...",void 0,void 0)];const rc=[];for(const Od of Jo.callSignatures)rc.push(Pt(Od,179,Xt));for(const Od of Jo.constructSignatures)Od.flags&4||rc.push(Pt(Od,180,Xt));for(const Od of Jo.indexInfos)rc.push(vt(Od,Xt,Jo.objectFlags&1024?z(Xt):void 0));const Ll=Jo.properties;if(!Ll)return rc;let Sf=0;for(const Od of Ll){if(Sf++,Xt.flags&2048){if(Od.flags&4194304)continue;Vy(Od)&24&&Xt.tracker.reportPrivateInBaseOfClassExpression&&Xt.tracker.reportPrivateInBaseOfClassExpression(lf(Od.escapedName))}if(b(Xt)&&Sf+2!(ja.flags&32768)),0);for(const ja of Bo){const rf=Pt(ja,173,Xt,{name:Mu,questionToken:xc});bs.push(ao(rf))}if(Bo.length||!xc)return}let Dr;Z(On,Xt)?Dr=z(Xt):(Ec&&(Xt.reverseMappedStack||(Xt.reverseMappedStack=[]),Xt.reverseMappedStack.push(On)),Dr=Bc?Jf(Xt,Bc,On,Rf):be.createKeywordTypeNode(133),Ec&&Xt.reverseMappedStack.pop());const Pi=KI(On)?[be.createToken(148)]:void 0;Pi&&(Xt.approximateLength+=9);const No=be.createPropertySignature(Pi,Mu,xc,Dr);bs.push(ao(No));function ao(Bo){var ja;if(gt(On.declarations,rf=>rf.kind===355)){const rf=(ja=On.declarations)==null?void 0:ja.find(td=>td.kind===355),zl=Gz(rf.comment);zl&&MS(Bo,[{kind:3,text:`* * `+zl.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else On.valueDeclaration&&Ry(Bo,On.valueDeclaration);return Bo}}function Se(On,Xt,bs){if(gt(On)){if(b(Xt))if(bs){if(On.length>2)return[C(On[0],Xt),be.createTypeReferenceNode(`... ${On.length-2} more ...`,void 0),C(On[On.length-1],Xt)]}else return[be.createTypeReferenceNode("...",void 0)];const Ec=!(Xt.flags&64)?zg():void 0,Bc=[];let Rf=0;for(const Mu of On){if(Rf++,b(Xt)&&Rf+2{if(!XSe(xc,([Dr],[Pi])=>Je(Dr,Pi)))for(const[Dr,Pi]of xc)Bc[Pi]=C(Dr,Xt)}),Xt.flags=Mu}return Bc}}function Je(On,Xt){return On===Xt||!!On.symbol&&On.symbol===Xt.symbol||!!On.aliasSymbol&&On.aliasSymbol===Xt.aliasSymbol}function vt(On,Xt,bs){const as=wN(On)||"x",Ec=C(On.keyType,Xt),Bc=be.createParameterDeclaration(void 0,void 0,as,void 0,Ec,void 0);return bs||(bs=C(On.type||gn,Xt)),!On.type&&!(Xt.flags&2097152)&&(Xt.encounteredError=!0),Xt.approximateLength+=as.length+4,be.createIndexSignature(On.isReadonly?[be.createToken(148)]:void 0,[Bc],bs)}function Pt(On,Xt,bs,as){var Ec;const Bc=bs.flags&256;Bc&&(bs.flags&=-257),bs.approximateLength+=3;let Rf,Mu;bs.flags&32&&On.target&&On.mapper&&On.target.typeParameters?Mu=On.target.typeParameters.map(zl=>C(Nf(zl,On.mapper),bs)):Rf=On.typeParameters&&On.typeParameters.map(zl=>hr(zl,bs));const xc=lO(On,!0)[0];let Dr;if(bs.enclosingDeclaration&&On.declaration&&On.declaration!==bs.enclosingDeclaration&&!Rs(On.declaration)&>(xc)){const zl=ge(bs.enclosingDeclaration).fakeScopeForSignatureDeclaration?bs.enclosingDeclaration:void 0;ce.assertOptionalNode(zl,E_);const td=(zl==null?void 0:zl.locals)??Td();let Jo;for(const rc of xc)td.has(rc.escapedName)||(Jo=ur(Jo,rc.escapedName),td.set(rc.escapedName,rc));if(Jo){let rc=function(){Ot(Jo,Ll=>td.delete(Ll))};if(zl)Dr=rc;else{const Ll=DP.createBlock(Zn);ge(Ll).fakeScopeForSignatureDeclaration=!0,Ll.locals=td;const Sf=bs.enclosingDeclaration;kl(Ll,Sf),bs.enclosingDeclaration=Ll,Dr=()=>{bs.enclosingDeclaration=Sf,rc()}}}}const Pi=(gt(xc,zl=>zl!==xc[xc.length-1]&&!!(I_(zl)&32768))?On.parameters:xc).map(zl=>bi(zl,bs,Xt===176,as==null?void 0:as.privateSymbolVisitor,as==null?void 0:as.bundledImports)),No=bs.flags&33554432?void 0:dn(On,bs);No&&Pi.unshift(No);let ao;const Bo=F2(On);if(Bo){const zl=Bo.kind===2||Bo.kind===3?be.createToken(131):void 0,td=Bo.kind===1||Bo.kind===3?Sa(be.createIdentifier(Bo.parameterName),16777216):be.createThisTypeNode(),Jo=Bo.type&&C(Bo.type,bs);ao=be.createTypePredicateNode(zl,td,Jo)}else{const zl=j(On);zl&&!(Bc&&Q_(zl))?ao=Zg(bs,zl,On,as==null?void 0:as.privateSymbolVisitor,as==null?void 0:as.bundledImports):Bc||(ao=be.createKeywordTypeNode(133))}let ja=as==null?void 0:as.modifiers;if(Xt===185&&On.flags&4){const zl=dk(ja);ja=be.createModifiersFromModifierFlags(zl|256)}const rf=Xt===179?be.createCallSignature(Rf,Pi,ao):Xt===180?be.createConstructSignature(Rf,Pi,ao):Xt===173?be.createMethodSignature(ja,(as==null?void 0:as.name)??be.createIdentifier(""),as==null?void 0:as.questionToken,Rf,Pi,ao):Xt===174?be.createMethodDeclaration(ja,void 0,(as==null?void 0:as.name)??be.createIdentifier(""),void 0,Rf,Pi,ao,void 0):Xt===176?be.createConstructorDeclaration(ja,Pi,void 0):Xt===177?be.createGetAccessorDeclaration(ja,(as==null?void 0:as.name)??be.createIdentifier(""),Pi,ao,void 0):Xt===178?be.createSetAccessorDeclaration(ja,(as==null?void 0:as.name)??be.createIdentifier(""),Pi,void 0):Xt===181?be.createIndexSignature(ja,Pi,ao):Xt===324?be.createJSDocFunctionType(Pi,ao):Xt===184?be.createFunctionTypeNode(Rf,Pi,ao??be.createTypeReferenceNode(be.createIdentifier(""))):Xt===185?be.createConstructorTypeNode(ja,Rf,Pi,ao??be.createTypeReferenceNode(be.createIdentifier(""))):Xt===262?be.createFunctionDeclaration(ja,void 0,as!=null&&as.name?uc(as.name,An):be.createIdentifier(""),Rf,Pi,ao,void 0):Xt===218?be.createFunctionExpression(ja,void 0,as!=null&&as.name?uc(as.name,An):be.createIdentifier(""),Rf,Pi,ao,be.createBlock([])):Xt===219?be.createArrowFunction(ja,Rf,Pi,ao,void 0,be.createBlock([])):ce.assertNever(Xt);if(Mu&&(rf.typeArguments=be.createNodeArray(Mu)),((Ec=On.declaration)==null?void 0:Ec.kind)===330&&On.declaration.parent.kind===346){const zl=Yv(On.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(td=>td.replace(/^\s+/," ")).join(` -`);dy(rf,3,zl,!0)}return Dr==null||Dr(),rf}function dn(On,Xt){if(On.thisParameter)return bi(On.thisParameter,Xt);if(On.declaration&&Rs(On.declaration)){const bs=iR(On.declaration);if(bs&&bs.typeExpression)return be.createParameterDeclaration(void 0,void 0,"this",void 0,C(wl(bs.typeExpression),Xt))}}function yn(On,Xt,bs){const as=Xt.flags;Xt.flags&=-513;const Ec=be.createModifiersFromModifierFlags(vp(On)),Bc=Ld(On,Xt),Rf=LI(On),Mu=Rf&&C(Rf,Xt);return Xt.flags=as,be.createTypeParameterDeclaration(Ec,Bc,bs,Mu)}function hr(On,Xt,bs=Wi(On)){const as=bs&&C(bs,Xt);return yn(On,Xt,as)}function bi(On,Xt,bs,as,Ec){let Bc=Vm(On,169);!Bc&&!uk(On)&&(Bc=Vm(On,348));let Rf=Vo(On);Bc&&une(Bc)&&(Rf=eL(Rf));const Mu=Jf(Xt,Rf,On,Xt.enclosingDeclaration,as,Ec),xc=!(Xt.flags&8192)&&bs&&Bc&&nx(Bc)?Vn(N8(Bc),be.cloneNode):void 0,Pi=Bc&&dP(Bc)||I_(On)&32768?be.createToken(26):void 0,No=Bc&&Bc.name?Bc.name.kind===80?Sa(be.cloneNode(Bc.name),16777216):Bc.name.kind===166?Sa(be.cloneNode(Bc.name.right),16777216):rf(Bc.name):mp(On),Bo=Bc&&B4(Bc)||I_(On)&16384?be.createToken(58):void 0,ja=be.createParameterDeclaration(xc,Pi,No,Bo,Mu,void 0);return Xt.approximateLength+=mp(On).length+3,ja;function rf(zl){return td(zl);function td(Jo){Xt.tracker.canTrackSymbol&&am(Jo)&&fw(Jo)&&Wo(Jo.expression,Xt.enclosingDeclaration,Xt);let rc=ia(Jo,td,I6,void 0,td);return ym(rc)&&(rc=be.updateBindingElement(rc,rc.dotDotDotToken,rc.propertyName,rc.name,void 0)),rh(rc)||(rc=be.cloneNode(rc)),Sa(rc,16777217)}}}function Wo(On,Xt,bs){if(!bs.tracker.canTrackSymbol)return;const as=NS(On),Ec=Ro(as,as.escapedText,1160127,void 0,void 0,!0);Ec&&bs.tracker.trackSymbol(Ec,Xt,111551)}function aa(On,Xt,bs,as){return Xt.tracker.trackSymbol(On,Xt.enclosingDeclaration,bs),$s(On,Xt,bs,as)}function $s(On,Xt,bs,as){let Ec;return!(On.flags&262144)&&(Xt.enclosingDeclaration||Xt.flags&64)&&!(Xt.flags&134217728)?(Ec=ce.checkDefined(Rf(On,bs,!0)),ce.assert(Ec&&Ec.length>0)):Ec=[On],Ec;function Rf(Mu,xc,Dr){let Pi=ks(Mu,Xt.enclosingDeclaration,xc,!!(Xt.flags&128)),No;if(!Pi||Xs(Pi[0],Xt.enclosingDeclaration,Pi.length===1?xc:Fc(xc))){const Bo=Fg(Pi?Pi[0]:Mu,Xt.enclosingDeclaration,xc);if(Nt(Bo)){No=Bo.map(zl=>gt(zl.declarations,fl)?Go(zl,Xt):void 0);const ja=Bo.map((zl,td)=>td);ja.sort(ao);const rf=ja.map(zl=>Bo[zl]);for(const zl of rf){const td=Rf(zl,Fc(xc),!1);if(td){if(zl.exports&&zl.exports.get("export=")&&f_(zl.exports.get("export="),Mu)){Pi=td;break}Pi=td.concat(Pi||[_b(zl,Mu)||Mu]);break}}}}if(Pi)return Pi;if(Dr||!(Mu.flags&6144))return!Dr&&!as&&Ot(Mu.declarations,fl)?void 0:[Mu];function ao(Bo,ja){const rf=No[Bo],zl=No[ja];if(rf&&zl){const td=U2(zl);return U2(rf)===td?yae(rf)-yae(zl):td?-1:1}return 0}}}function Ba(On,Xt){let bs;return OK(On).flags&524384&&(bs=be.createNodeArray(Vn(rs(On),Ec=>hr(Ec,Xt)))),bs}function lo(On,Xt,bs){var as;ce.assert(On&&0<=Xt&&Xtq4(Pi,xc.links.mapper)),bs)}else Rf=Ba(Ec,bs)}return Rf}function Xa(On){return XN(On.objectType)?Xa(On.objectType):On}function Go(On,Xt,bs){let as=Vm(On,312);if(!as){const Dr=Yr(On.declarations,Pi=>by(Pi,On));Dr&&(as=Vm(Dr,312))}if(as&&as.moduleName!==void 0)return as.moduleName;if(!as){if(Xt.tracker.trackReferencedAmbientModule){const Dr=gi(On.declarations,Ov);if(Nt(Dr))for(const Pi of Dr)Xt.tracker.trackReferencedAmbientModule(Pi,On)}if(cme.test(On.escapedName))return On.escapedName.substring(1,On.escapedName.length-1)}if(!Xt.enclosingDeclaration||!Xt.tracker.moduleResolverHost)return cme.test(On.escapedName)?On.escapedName.substring(1,On.escapedName.length-1):ns(W8(On)).fileName;const Ec=ns(Ic(Xt.enclosingDeclaration)),Bc=bs||(Ec==null?void 0:Ec.impliedNodeFormat),Rf=f$(Ec.path,Bc),Mu=Mt(On);let xc=Mu.specifierCache&&Mu.specifierCache.get(Rf);if(!xc){const Dr=!!Kg(Le),{moduleResolverHost:Pi}=Xt.tracker,No=Dr?{...Le,baseUrl:Pi.getCommonSourceDirectory()}:Le;xc=Dl(hae(On,ro,No,Ec,Pi,{importModuleSpecifierPreference:Dr?"non-relative":"project-relative",importModuleSpecifierEnding:Dr?"minimal":Bc===99?"js":void 0},{overrideImportMode:bs})),Mu.specifierCache??(Mu.specifierCache=new Map),Mu.specifierCache.set(Rf,xc)}return xc}function Pa(On){const Xt=be.createIdentifier(lf(On.escapedName));return On.parent?be.createQualifiedName(Pa(On.parent),Xt):Xt}function Ga(On,Xt,bs,as){var Ec,Bc,Rf,Mu;const xc=aa(On,Xt,bs,!(Xt.flags&16384)),Dr=bs===111551;if(gt(xc[0].declarations,fl)){const ao=xc.length>1?No(xc,xc.length-1,1):void 0,Bo=as||lo(xc,0,Xt),ja=ns(Ic(Xt.enclosingDeclaration)),rf=ny(xc[0]);let zl,td;if((Jd(Le)===3||Jd(Le)===99)&&(rf==null?void 0:rf.impliedNodeFormat)===99&&rf.impliedNodeFormat!==(ja==null?void 0:ja.impliedNodeFormat)&&(zl=Go(xc[0],Xt,99),td=be.createImportTypeAssertionContainer(be.createAssertClause(be.createNodeArray([be.createAssertEntry(be.createStringLiteral("resolution-mode"),be.createStringLiteral("import"))]))),(Bc=(Ec=Xt.tracker).reportImportTypeNodeResolutionModeOverride)==null||Bc.call(Ec)),zl||(zl=Go(xc[0],Xt)),!(Xt.flags&67108864)&&Jd(Le)!==1&&zl.indexOf("/node_modules/")>=0){const rc=zl;if(Jd(Le)===3||Jd(Le)===99){const Ll=(ja==null?void 0:ja.impliedNodeFormat)===99?1:99;zl=Go(xc[0],Xt,Ll),zl.indexOf("/node_modules/")>=0?zl=rc:(td=be.createImportTypeAssertionContainer(be.createAssertClause(be.createNodeArray([be.createAssertEntry(be.createStringLiteral("resolution-mode"),be.createStringLiteral(Ll===99?"import":"require"))]))),(Mu=(Rf=Xt.tracker).reportImportTypeNodeResolutionModeOverride)==null||Mu.call(Rf))}td||(Xt.encounteredError=!0,Xt.tracker.reportLikelyUnsafeImportRequiredError&&Xt.tracker.reportLikelyUnsafeImportRequiredError(rc))}const Jo=be.createLiteralTypeNode(be.createStringLiteral(zl));if(Xt.tracker.trackExternalModuleSymbolOfImportTypeNode&&Xt.tracker.trackExternalModuleSymbolOfImportTypeNode(xc[0]),Xt.approximateLength+=zl.length+10,!ao||Vd(ao)){if(ao){const rc=An(ao)?ao:ao.right;qN(rc,void 0)}return be.createImportTypeNode(Jo,td,ao,Bo,Dr)}else{const rc=Xa(ao),Ll=rc.objectType.typeName;return be.createIndexedAccessTypeNode(be.createImportTypeNode(Jo,td,Ll,Bo,Dr),rc.indexType)}}const Pi=No(xc,xc.length-1,0);if(XN(Pi))return Pi;if(Dr)return be.createTypeQueryNode(Pi);{const ao=An(Pi)?Pi:Pi.right,Bo=H7(ao);return qN(ao,void 0),be.createTypeReferenceNode(Pi,Bo)}function No(ao,Bo,ja){const rf=Bo===ao.length-1?as:lo(ao,Bo,Xt),zl=ao[Bo],td=ao[Bo-1];let Jo;if(Bo===0)Xt.flags|=16777216,Jo=dx(zl,Xt),Xt.approximateLength+=(Jo?Jo.length:0)+1,Xt.flags^=16777216;else if(td&&Gt(td)){const Ll=Gt(td);wT(Ll,(Sf,Od)=>{if(f_(Sf,zl)&&!s0(Od)&&Od!=="export=")return Jo=lf(Od),!0})}if(Jo===void 0){const Ll=Yr(zl.declarations,o_);if(Ll&&am(Ll)&&Vd(Ll.expression)){const Sf=No(ao,Bo-1,ja);return Vd(Sf)?be.createIndexedAccessTypeNode(be.createParenthesizedType(be.createTypeQueryNode(Sf)),be.createTypeQueryNode(Ll.expression)):Sf}Jo=dx(zl,Xt)}if(Xt.approximateLength+=Jo.length+1,!(Xt.flags&16)&&td&&BA(td)&&BA(td).get(zl.escapedName)&&f_(BA(td).get(zl.escapedName),zl)){const Ll=No(ao,Bo-1,ja);return XN(Ll)?be.createIndexedAccessTypeNode(Ll,be.createLiteralTypeNode(be.createStringLiteral(Jo))):be.createIndexedAccessTypeNode(be.createTypeReferenceNode(Ll,rf),be.createLiteralTypeNode(be.createStringLiteral(Jo)))}const rc=Sa(be.createIdentifier(Jo),16777216);if(rf&&qN(rc,be.createNodeArray(rf)),rc.symbol=zl,Bo>ja){const Ll=No(ao,Bo-1,ja);return Vd(Ll)?be.createQualifiedName(Ll,rc):ce.fail("Impossible construct - an export of an indexed access cannot be reachable")}return rc}}function hs(On,Xt,bs){const as=Ro(Xt.enclosingDeclaration,On,788968,void 0,On,!1);return as?!(as.flags&262144&&as===bs.symbol):!1}function Ld(On,Xt){var bs,as;if(Xt.flags&4&&Xt.typeParameterNames){const Bc=Xt.typeParameterNames.get(Gh(On));if(Bc)return Bc}let Ec=nl(On.symbol,Xt,788968,!0);if(!(Ec.kind&80))return be.createIdentifier("(Missing type parameter)");if(Xt.flags&4){const Bc=Ec.escapedText;let Rf=((bs=Xt.typeParameterNamesByTextNextNameCount)==null?void 0:bs.get(Bc))||0,Mu=Bc;for(;(as=Xt.typeParameterNamesByText)!=null&&as.has(Mu)||hs(Mu,Xt,On);)Rf++,Mu=`${Bc}_${Rf}`;if(Mu!==Bc){const xc=H7(Ec);Ec=be.createIdentifier(Mu),qN(Ec,xc)}(Xt.typeParameterNamesByTextNextNameCount||(Xt.typeParameterNamesByTextNextNameCount=new Map)).set(Bc,Rf),(Xt.typeParameterNames||(Xt.typeParameterNames=new Map)).set(Gh(On),Ec),(Xt.typeParameterNamesByText||(Xt.typeParameterNamesByText=new Set)).add(Bc)}return Ec}function nl(On,Xt,bs,as){const Ec=aa(On,Xt,bs);return as&&Ec.length!==1&&!Xt.encounteredError&&!(Xt.flags&65536)&&(Xt.encounteredError=!0),Bc(Ec,Ec.length-1);function Bc(Rf,Mu){const xc=lo(Rf,Mu,Xt),Dr=Rf[Mu];Mu===0&&(Xt.flags|=16777216);const Pi=dx(Dr,Xt);Mu===0&&(Xt.flags^=16777216);const No=Sa(be.createIdentifier(Pi),16777216);return xc&&qN(No,be.createNodeArray(xc)),No.symbol=Dr,Mu>0?be.createQualifiedName(Bc(Rf,Mu-1),No):No}}function id(On,Xt,bs){const as=aa(On,Xt,bs);return Ec(as,as.length-1);function Ec(Bc,Rf){const Mu=lo(Bc,Rf,Xt),xc=Bc[Rf];Rf===0&&(Xt.flags|=16777216);let Dr=dx(xc,Xt);Rf===0&&(Xt.flags^=16777216);let Pi=Dr.charCodeAt(0);if(Dde(Pi)&>(xc.declarations,fl))return be.createStringLiteral(Go(xc,Xt));if(Rf===0||doe(Dr,ht)){const No=Sa(be.createIdentifier(Dr),16777216);return Mu&&qN(No,be.createNodeArray(Mu)),No.symbol=xc,Rf>0?be.createPropertyAccessExpression(Ec(Bc,Rf-1),No):No}else{Pi===91&&(Dr=Dr.substring(1,Dr.length-1),Pi=Dr.charCodeAt(0));let No;if(Dde(Pi)&&!(xc.flags&8)?No=be.createStringLiteral(HE(Dr).replace(/\\./g,ao=>ao.substring(1)),Pi===39):""+ +Dr===Dr&&(No=be.createNumericLiteral(+Dr)),!No){const ao=Sa(be.createIdentifier(Dr),16777216);Mu&&qN(ao,be.createNodeArray(Mu)),ao.symbol=xc,No=ao}return be.createElementAccessExpression(Ec(Bc,Rf-1),No)}}}function $y(On){const Xt=o_(On);return!!Xt&&Wp(Xt)}function l2(On){const Xt=o_(On);return!!(Xt&&Wp(Xt)&&(Xt.singleQuote||!rh(Xt)&&xf(Yv(Xt,!1),"'")))}function Cx(On,Xt){const bs=!!Nt(On.declarations)&&jr(On.declarations,$y),as=!!Nt(On.declarations)&&jr(On.declarations,l2),Ec=kC(On,Xt,as,bs);if(Ec)return Ec;const Bc=lf(On.escapedName);return QH(Bc,iu(Le),as,bs)}function kC(On,Xt,bs,as){const Ec=Mt(On).nameType;if(Ec){if(Ec.flags&384){const Bc=""+Ec.value;return!rE(Bc,iu(Le))&&(as||!FT(Bc))?be.createStringLiteral(Bc,!!bs):FT(Bc)&&xf(Bc,"-")?be.createComputedPropertyName(be.createNumericLiteral(+Bc)):QH(Bc,iu(Le))}if(Ec.flags&8192)return be.createComputedPropertyName(id(Ec.symbol,Xt,111551))}}function Gi(On){const Xt={...On};return Xt.typeParameterNames&&(Xt.typeParameterNames=new Map(Xt.typeParameterNames)),Xt.typeParameterNamesByText&&(Xt.typeParameterNamesByText=new Set(Xt.typeParameterNamesByText)),Xt.typeParameterSymbolList&&(Xt.typeParameterSymbolList=new Set(Xt.typeParameterSymbolList)),Xt.tracker=new y$(Xt,Xt.tracker.inner,Xt.tracker.moduleResolverHost),Xt}function Ps(On,Xt){return On.declarations&&lr(On.declarations,bs=>!!Kb(bs)&&(!Xt||!!Kr(bs,as=>as===Xt)))}function wf(On,Xt){return!(ji(Xt)&4)||!x2(On)||Nt(On.typeArguments)>=EC(Xt.target.typeParameters)}function od(On){return ge(On).fakeScopeForSignatureDeclaration?On.parent:On}function Jf(On,Xt,bs,as,Ec,Bc){if(!je(Xt)&&as){const xc=Ps(bs,od(as));if(xc&&!J_(xc)&&!tm(xc)){const Dr=Kb(xc);if(dm(Dr,xc,Xt)&&wf(Dr,Xt)){const Pi=Lp(On,Dr,Ec,Bc);if(Pi)return Pi}}}const Rf=On.flags;Xt.flags&8192&&Xt.symbol===bs&&(!On.enclosingDeclaration||gt(bs.declarations,xc=>ns(xc)===ns(On.enclosingDeclaration)))&&(On.flags|=1048576);const Mu=C(Xt,On);return On.flags=Rf,Mu}function dm(On,Xt,bs){const as=wl(On);return as===bs?!0:Pu(Xt)&&Xt.questionToken?JA(bs,524288)===as:!1}function Zg(On,Xt,bs,as,Ec){if(!je(Xt)&&On.enclosingDeclaration){const Bc=bs.declaration&&bA(bs.declaration),Rf=od(On.enclosingDeclaration);if(Kr(Bc,Mu=>Mu===Rf)&&Bc){const Mu=wl(Bc);if((Mu.flags&262144&&Mu.isThisType?Nf(Mu,bs.mapper):Mu)===Xt&&wf(Bc,Xt)){const Dr=Lp(On,Bc,as,Ec);if(Dr)return Dr}}}return C(Xt,On)}function Pv(On,Xt,bs){let as=!1;const Ec=NS(On);if(Rs(On)&&(jL(Ec)||KC(Ec.parent)||nT(Ec.parent)&&U8(Ec.parent.left)&&jL(Ec.parent.right)))return as=!0,{introducesError:as,node:On};const Bc=P_(Ec,67108863,!0,!0);if(Bc&&(br(Bc,Xt.enclosingDeclaration,67108863,!1).accessibility!==0?as=!0:(Xt.tracker.trackSymbol(Bc,Xt.enclosingDeclaration,67108863),bs==null||bs(Bc)),An(On))){const Rf=Rm(Bc),Mu=Bc.flags&262144&&!wu(Rf.symbol,Xt.enclosingDeclaration)?Ld(Rf,Xt):be.cloneNode(On);return Mu.symbol=Bc,{introducesError:as,node:Sa(tc(Mu,On),16777216)}}return{introducesError:as,node:On}}function Lp(On,Xt,bs,as){l&&l.throwIfCancellationRequested&&l.throwIfCancellationRequested();let Ec=!1;const Bc=ns(Xt),Rf=nr(Xt,Mu,Uu);if(Ec)return;return Rf===Xt?vr(be.cloneNode(Xt),Xt):Rf;function Mu(xc){if(FJ(xc)||xc.kind===326)return be.createKeywordTypeNode(133);if(ZL(xc))return be.createKeywordTypeNode(159);if(LG(xc))return be.createUnionTypeNode([nr(xc.type,Mu,Uu),be.createLiteralTypeNode(be.createNull())]);if(AEe(xc))return be.createUnionTypeNode([nr(xc.type,Mu,Uu),be.createKeywordTypeNode(157)]);if(Ooe(xc))return nr(xc.type,Mu);if(Foe(xc))return be.createArrayTypeNode(nr(xc.type,Mu,Uu));if(EW(xc))return be.createTypeLiteralNode(Vn(xc.jsDocPropertyTags,ao=>{const Bo=An(ao.name)?ao.name:ao.name.right,ja=wm(wl(xc),Bo.escapedText),rf=ja&&ao.typeExpression&&wl(ao.typeExpression.type)!==ja?C(ja,On):void 0;return be.createPropertySignature(void 0,Bo,ao.isBracketed||ao.typeExpression&&AEe(ao.typeExpression.type)?be.createToken(58):void 0,rf||ao.typeExpression&&nr(ao.typeExpression.type,Mu,Uu)||be.createKeywordTypeNode(133))}));if(x2(xc)&&An(xc.typeName)&&xc.typeName.escapedText==="")return tc(be.createKeywordTypeNode(133),xc);if((WT(xc)||x2(xc))&&aH(xc))return be.createTypeLiteralNode([be.createIndexSignature(void 0,[be.createParameterDeclaration(void 0,void 0,"x",void 0,nr(xc.typeArguments[0],Mu,Uu))],nr(xc.typeArguments[1],Mu,Uu))]);if(OG(xc))if(J8(xc)){let ao;return be.createConstructorTypeNode(void 0,Fa(xc.typeParameters,Mu,Hh),Qo(xc.parameters,(Bo,ja)=>Bo.name&&An(Bo.name)&&Bo.name.escapedText==="new"?(ao=Bo.type,void 0):be.createParameterDeclaration(void 0,Dr(Bo),Pi(Bo,ja),Bo.questionToken,nr(Bo.type,Mu,Uu),void 0)),nr(ao||xc.type,Mu,Uu)||be.createKeywordTypeNode(133))}else return be.createFunctionTypeNode(Fa(xc.typeParameters,Mu,Hh),Vn(xc.parameters,(ao,Bo)=>be.createParameterDeclaration(void 0,Dr(ao),Pi(ao,Bo),ao.questionToken,nr(ao.type,Mu,Uu),void 0)),nr(xc.type,Mu,Uu)||be.createKeywordTypeNode(133));if(x2(xc)&&D9(xc)&&(!wf(xc,wl(xc))||dWe(xc)||Ir===VA(xc,788968,!0)))return tc(C(wl(xc),On),xc);if(BE(xc)){const ao=ge(xc).resolvedSymbol;return D9(xc)&&ao&&(!xc.isTypeOf&&!(ao.flags&788968)||!(Nt(xc.typeArguments)>=EC(rs(ao))))?tc(C(wl(xc),On),xc):be.updateImportTypeNode(xc,be.updateLiteralTypeNode(xc.argument,No(xc,xc.argument.literal)),xc.assertions,xc.qualifier,Fa(xc.typeArguments,Mu,Uu),xc.isTypeOf)}if(Vd(xc)||Uh(xc)){const{introducesError:ao,node:Bo}=Pv(xc,On,bs);if(Ec=Ec||ao,Bo!==xc)return Bo}return Bc&&m6(xc)&&Ah(Bc,xc.pos).line===Ah(Bc,xc.end).line&&Sa(xc,1),ia(xc,Mu,I6);function Dr(ao){return ao.dotDotDotToken||(ao.type&&Foe(ao.type)?be.createToken(26):void 0)}function Pi(ao,Bo){return ao.name&&An(ao.name)&&ao.name.escapedText==="this"?"this":Dr(ao)?"args":`arg${Bo}`}function No(ao,Bo){if(as){if(On.tracker&&On.tracker.moduleResolverHost){const ja=HV(ao);if(ja){const zl={getCanonicalFileName:_v(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>On.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>On.tracker.moduleResolverHost.getCommonSourceDirectory()},td=Rie(zl,ja);return be.createStringLiteral(td)}}}else if(On.tracker&&On.tracker.trackExternalModuleSymbolOfImportTypeNode){const ja=fb(Bo,Bo,void 0);ja&&On.tracker.trackExternalModuleSymbolOfImportTypeNode(ja)}return Bo}}}function $T(On,Xt,bs){const as=k0(be.createPropertyDeclaration,174,!0),Ec=k0((ai,Vc,Gl,jl)=>be.createPropertySignature(ai,Vc,Gl,jl),173,!1),Bc=Xt.enclosingDeclaration;let Rf=[];const Mu=new Set,xc=[],Dr=Xt;Xt={...Dr,usedSymbolNames:new Set(Dr.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const Pi={...Dr.tracker.inner,trackSymbol:(ai,Vc,Gl)=>{var jl;if(br(ai,Vc,Gl,!1).accessibility===0){const Mm=$s(ai,Xt,Gl);ai.flags&4||rm(Mm[0])}else if((jl=Dr.tracker.inner)!=null&&jl.trackSymbol)return Dr.tracker.inner.trackSymbol(ai,Vc,Gl);return!1}};Xt.tracker=new y$(Xt,Pi,Dr.tracker.moduleResolverHost),wT(On,(ai,Vc)=>{const Gl=lf(Vc);G2(ai,Gl)});let No=!bs;const ao=On.get("export=");return ao&&On.size>1&&ao.flags&2097152&&(On=Td(),On.set("export=",ao)),Sf(On),Jo(Rf);function Bo(ai){return!!ai&&ai.kind===80}function ja(ai){return Dh(ai)?gi(Vn(ai.declarationList.declarations,o_),Bo):gi([o_(ai)],Bo)}function rf(ai){const Vc=lr(ai,Ly),Gl=Ho(ai,xp);let jl=Gl!==-1?ai[Gl]:void 0;if(jl&&Vc&&Vc.isExportEquals&&An(Vc.expression)&&An(jl.name)&&ec(jl.name)===ec(Vc.expression)&&jl.body&&z0(jl.body)){const Yl=gi(ai,$f=>!!(tS($f)&1)),Mm=jl.name;let ud=jl.body;if(Nt(Yl)&&(jl=be.updateModuleDeclaration(jl,jl.modifiers,jl.name,ud=be.updateModuleBlock(ud,be.createNodeArray([...jl.body.statements,be.createExportDeclaration(void 0,!1,be.createNamedExports(Vn(ea(Yl,$f=>ja($f)),$f=>be.createExportSpecifier(!1,void 0,$f))),void 0)]))),ai=[...ai.slice(0,Gl),jl,...ai.slice(Gl+1)]),!lr(ai,$f=>$f!==jl&&FU($f,Mm))){Rf=[];const $f=!gt(ud.statements,ip=>il(ip,1)||Ly(ip)||mh(ip));Ot(ud.statements,ip=>{yg(ip,$f?1:0)}),ai=[...gi(ai,ip=>ip!==jl&&ip!==Vc),...Rf]}}return ai}function zl(ai){const Vc=gi(ai,jl=>mh(jl)&&!jl.moduleSpecifier&&!!jl.exportClause&&G0(jl.exportClause));Nt(Vc)>1&&(ai=[...gi(ai,Yl=>!mh(Yl)||!!Yl.moduleSpecifier||!Yl.exportClause),be.createExportDeclaration(void 0,!1,be.createNamedExports(ea(Vc,Yl=>uc(Yl.exportClause,G0).elements)),void 0)]);const Gl=gi(ai,jl=>mh(jl)&&!!jl.moduleSpecifier&&!!jl.exportClause&&G0(jl.exportClause));if(Nt(Gl)>1){const jl=BD(Gl,Yl=>Wp(Yl.moduleSpecifier)?">"+Yl.moduleSpecifier.text:">");if(jl.length!==Gl.length)for(const Yl of jl)Yl.length>1&&(ai=[...gi(ai,Mm=>Yl.indexOf(Mm)===-1),be.createExportDeclaration(void 0,!1,be.createNamedExports(ea(Yl,Mm=>uc(Mm.exportClause,G0).elements)),Yl[0].moduleSpecifier)])}return ai}function td(ai){const Vc=Ho(ai,Gl=>mh(Gl)&&!Gl.moduleSpecifier&&!Gl.assertClause&&!!Gl.exportClause&&G0(Gl.exportClause));if(Vc>=0){const Gl=ai[Vc],jl=Qo(Gl.exportClause.elements,Yl=>{if(!Yl.propertyName){const Mm=Cy(ai),ud=gi(Mm,$f=>FU(ai[$f],Yl.name));if(Nt(ud)&&jr(ud,$f=>nW(ai[$f]))){for(const $f of ud)ai[$f]=rc(ai[$f]);return}}return Yl});Nt(jl)?ai[Vc]=be.updateExportDeclaration(Gl,Gl.modifiers,Gl.isTypeOnly,be.updateNamedExports(Gl.exportClause,jl),Gl.moduleSpecifier,Gl.assertClause):zC(ai,Vc)}return ai}function Jo(ai){return ai=rf(ai),ai=zl(ai),ai=td(ai),Bc&&(tl(Bc)&&h1(Bc)||xp(Bc))&&(!gt(ai,UU)||!Jz(ai)&>(ai,VU))&&ai.push(jJ(be)),ai}function rc(ai){const Vc=(tS(ai)|1)&-3;return be.updateModifiers(ai,Vc)}function Ll(ai){const Vc=tS(ai)&-2;return be.updateModifiers(ai,Vc)}function Sf(ai,Vc,Gl){Vc||xc.push(new Map),ai.forEach(jl=>{Od(jl,!1,!!Gl)}),Vc||(xc[xc.length-1].forEach(jl=>{Od(jl,!0,!!Gl)}),xc.pop())}function Od(ai,Vc,Gl){const jl=wa(ai);if(Mu.has(Bp(jl)))return;if(Mu.add(Bp(jl)),!Vc||Nt(ai.declarations)&>(ai.declarations,Mm=>!!Kr(Mm,ud=>ud===Bc))){const Mm=Xt;Xt=Gi(Xt),hb(ai,Vc,Gl),Xt.reportedDiagnostic&&(Dr.reportedDiagnostic=Xt.reportedDiagnostic),Xt=Mm}}function hb(ai,Vc,Gl){var jl,Yl,Mm,ud;const $f=lf(ai.escapedName),ip=ai.escapedName==="default";if(Vc&&!(Xt.flags&131072)&&t6($f)&&!ip){Xt.encounteredError=!0;return}let om=ip&&!!(ai.flags&-113||ai.flags&16&&Nt(Vp(Vo(ai))))&&!(ai.flags&2097152),uv=!om&&!Vc&&t6($f)&&!ip;(om||uv)&&(Vc=!0);const l1=(Vc?0:1)|(ip&&!om?1024:0),u2=ai.flags&1536&&ai.flags&7&&ai.escapedName!=="export=",P0=u2&&im(Vo(ai),ai);if((ai.flags&8208||P0)&&ss(Vo(ai),ai,G2(ai,$f),l1),ai.flags&524288&&or(ai,$f,l1),ai.flags&98311&&ai.escapedName!=="export="&&!(ai.flags&4194304)&&!(ai.flags&32)&&!(ai.flags&8192)&&!P0)if(Gl)Ug(ai)&&(uv=!1,om=!1);else{const Wg=Vo(ai),qy=G2(ai,$f);if(!(ai.flags&16)&&im(Wg,ai))ss(Wg,ai,qy,l1);else{const ww=ai.flags&2?LV(ai)?2:1:(jl=ai.parent)!=null&&jl.valueDeclaration&&tl((Yl=ai.parent)==null?void 0:Yl.valueDeclaration)?2:void 0,Qk=om||!(ai.flags&4)?qy:LO(qy,ai);let Rw=ai.declarations&&lr(ai.declarations,u8=>ff(u8));Rw&&My(Rw.parent)&&Rw.parent.declarations.length===1&&(Rw=Rw.parent.parent);const $V=(Mm=ai.declarations)==null?void 0:Mm.find(sa);if($V&&ys($V.parent)&&An($V.parent.right)&&((ud=Wg.symbol)!=null&&ud.valueDeclaration)&&tl(Wg.symbol.valueDeclaration)){const u8=qy===$V.parent.right.escapedText?void 0:$V.parent.right;yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,u8,qy)])),0),Xt.tracker.trackSymbol(Wg.symbol,Xt.enclosingDeclaration,111551)}else{const u8=vr(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Qk,void 0,Jf(Xt,Wg,ai,Bc,rm,bs))],ww)),Rw);yg(u8,Qk!==qy?l1&-2:l1),Qk!==qy&&!Vc&&(yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,Qk,qy)])),0),uv=!1,om=!1)}}}if(ai.flags&384&&Ko(ai,$f,l1),ai.flags&32&&(ai.flags&4&&ai.valueDeclaration&&ys(ai.valueDeclaration.parent)&&B0(ai.valueDeclaration.parent.right)?O_(ai,G2(ai,$f),l1):kd(ai,G2(ai,$f),l1)),(ai.flags&1536&&(!u2||Oa(ai))||P0)&&Qs(ai,$f,l1),ai.flags&64&&!(ai.flags&32)&&Hr(ai,$f,l1),ai.flags&2097152&&O_(ai,G2(ai,$f),l1),ai.flags&4&&ai.escapedName==="export="&&Ug(ai),ai.flags&8388608&&ai.declarations)for(const Wg of ai.declarations){const qy=Zm(Wg,Wg.moduleSpecifier);qy&&yg(be.createExportDeclaration(void 0,Wg.isTypeOnly,void 0,be.createStringLiteral(Go(qy,Xt))),0)}om?yg(be.createExportAssignment(void 0,!1,be.createIdentifier(G2(ai,$f))),0):uv&&yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,G2(ai,$f),$f)])),0)}function rm(ai){if(gt(ai.declarations,Y8))return;ce.assertIsDefined(xc[xc.length-1]),LO(lf(ai.escapedName),ai);const Vc=!!(ai.flags&2097152)&&!gt(ai.declarations,Gl=>!!Kr(Gl,mh)||AP(Gl)||kh(Gl)&&!j0(Gl.moduleReference));xc[Vc?0:xc.length-1].set(Bp(ai),ai)}function I0(ai){return tl(ai)&&(h1(ai)||Py(ai))||Ov(ai)&&!$C(ai)}function yg(ai,Vc){if(nx(ai)){let Gl=0;const jl=Xt.enclosingDeclaration&&(T2(Xt.enclosingDeclaration)?ns(Xt.enclosingDeclaration):Xt.enclosingDeclaration);Vc&1&&jl&&(I0(jl)||xp(jl))&&nW(ai)&&(Gl|=1),No&&!(Gl&1)&&(!jl||!(jl.flags&33554432))&&(Ih(ai)||Dh(ai)||b0(ai)||Kc(ai)||xp(ai))&&(Gl|=2),Vc&1024&&(Kc(ai)||Kp(ai)||b0(ai))&&(Gl|=1024),Gl&&(ai=be.updateModifiers(ai,Gl|tS(ai)))}Rf.push(ai)}function or(ai,Vc,Gl){var jl;const Yl=Lk(ai),Mm=Mt(ai).typeParameters,ud=Vn(Mm,u2=>hr(u2,Xt)),$f=(jl=ai.declarations)==null?void 0:jl.find(T2),ip=jz($f?$f.comment||$f.parent.comment:void 0),om=Xt.flags;Xt.flags|=8388608;const uv=Xt.enclosingDeclaration;Xt.enclosingDeclaration=$f;const l1=$f&&$f.typeExpression&&pI($f.typeExpression)&&Lp(Xt,$f.typeExpression.type,rm,bs)||C(Yl,Xt);yg(MS(be.createTypeAliasDeclaration(void 0,G2(ai,Vc),ud,l1),ip?[{kind:3,text:`* +`);_y(rf,3,zl,!0)}return Dr==null||Dr(),rf}function dn(On,Xt){if(On.thisParameter)return bi(On.thisParameter,Xt);if(On.declaration&&Rs(On.declaration)){const bs=iR(On.declaration);if(bs&&bs.typeExpression)return be.createParameterDeclaration(void 0,void 0,"this",void 0,C(wl(bs.typeExpression),Xt))}}function yn(On,Xt,bs){const as=Xt.flags;Xt.flags&=-513;const Ec=be.createModifiersFromModifierFlags(vp(On)),Bc=Ld(On,Xt),Rf=LI(On),Mu=Rf&&C(Rf,Xt);return Xt.flags=as,be.createTypeParameterDeclaration(Ec,Bc,bs,Mu)}function hr(On,Xt,bs=Wi(On)){const as=bs&&C(bs,Xt);return yn(On,Xt,as)}function bi(On,Xt,bs,as,Ec){let Bc=Vm(On,169);!Bc&&!uk(On)&&(Bc=Vm(On,348));let Rf=Vo(On);Bc&&une(Bc)&&(Rf=eL(Rf));const Mu=Jf(Xt,Rf,On,Xt.enclosingDeclaration,as,Ec),xc=!(Xt.flags&8192)&&bs&&Bc&&nx(Bc)?Vn(N8(Bc),be.cloneNode):void 0,Pi=Bc&&dP(Bc)||I_(On)&32768?be.createToken(26):void 0,No=Bc&&Bc.name?Bc.name.kind===80?Sa(be.cloneNode(Bc.name),16777216):Bc.name.kind===166?Sa(be.cloneNode(Bc.name.right),16777216):rf(Bc.name):mp(On),Bo=Bc&&W4(Bc)||I_(On)&16384?be.createToken(58):void 0,ja=be.createParameterDeclaration(xc,Pi,No,Bo,Mu,void 0);return Xt.approximateLength+=mp(On).length+3,ja;function rf(zl){return td(zl);function td(Jo){Xt.tracker.canTrackSymbol&&am(Jo)&&fw(Jo)&&Wo(Jo.expression,Xt.enclosingDeclaration,Xt);let rc=ia(Jo,td,I6,void 0,td);return ym(rc)&&(rc=be.updateBindingElement(rc,rc.dotDotDotToken,rc.propertyName,rc.name,void 0)),rh(rc)||(rc=be.cloneNode(rc)),Sa(rc,16777217)}}}function Wo(On,Xt,bs){if(!bs.tracker.canTrackSymbol)return;const as=NS(On),Ec=Ro(as,as.escapedText,1160127,void 0,void 0,!0);Ec&&bs.tracker.trackSymbol(Ec,Xt,111551)}function aa(On,Xt,bs,as){return Xt.tracker.trackSymbol(On,Xt.enclosingDeclaration,bs),$s(On,Xt,bs,as)}function $s(On,Xt,bs,as){let Ec;return!(On.flags&262144)&&(Xt.enclosingDeclaration||Xt.flags&64)&&!(Xt.flags&134217728)?(Ec=ce.checkDefined(Rf(On,bs,!0)),ce.assert(Ec&&Ec.length>0)):Ec=[On],Ec;function Rf(Mu,xc,Dr){let Pi=ks(Mu,Xt.enclosingDeclaration,xc,!!(Xt.flags&128)),No;if(!Pi||Xs(Pi[0],Xt.enclosingDeclaration,Pi.length===1?xc:Fc(xc))){const Bo=Fg(Pi?Pi[0]:Mu,Xt.enclosingDeclaration,xc);if(Nt(Bo)){No=Bo.map(zl=>gt(zl.declarations,fl)?Go(zl,Xt):void 0);const ja=Bo.map((zl,td)=>td);ja.sort(ao);const rf=ja.map(zl=>Bo[zl]);for(const zl of rf){const td=Rf(zl,Fc(xc),!1);if(td){if(zl.exports&&zl.exports.get("export=")&&f_(zl.exports.get("export="),Mu)){Pi=td;break}Pi=td.concat(Pi||[_b(zl,Mu)||Mu]);break}}}}if(Pi)return Pi;if(Dr||!(Mu.flags&6144))return!Dr&&!as&&Ot(Mu.declarations,fl)?void 0:[Mu];function ao(Bo,ja){const rf=No[Bo],zl=No[ja];if(rf&&zl){const td=U2(zl);return U2(rf)===td?yae(rf)-yae(zl):td?-1:1}return 0}}}function Ba(On,Xt){let bs;return OK(On).flags&524384&&(bs=be.createNodeArray(Vn(rs(On),Ec=>hr(Ec,Xt)))),bs}function lo(On,Xt,bs){var as;ce.assert(On&&0<=Xt&&Xt$4(Pi,xc.links.mapper)),bs)}else Rf=Ba(Ec,bs)}return Rf}function Xa(On){return XN(On.objectType)?Xa(On.objectType):On}function Go(On,Xt,bs){let as=Vm(On,312);if(!as){const Dr=Yr(On.declarations,Pi=>vy(Pi,On));Dr&&(as=Vm(Dr,312))}if(as&&as.moduleName!==void 0)return as.moduleName;if(!as){if(Xt.tracker.trackReferencedAmbientModule){const Dr=gi(On.declarations,Ov);if(Nt(Dr))for(const Pi of Dr)Xt.tracker.trackReferencedAmbientModule(Pi,On)}if(cme.test(On.escapedName))return On.escapedName.substring(1,On.escapedName.length-1)}if(!Xt.enclosingDeclaration||!Xt.tracker.moduleResolverHost)return cme.test(On.escapedName)?On.escapedName.substring(1,On.escapedName.length-1):ns(W8(On)).fileName;const Ec=ns(Ic(Xt.enclosingDeclaration)),Bc=bs||(Ec==null?void 0:Ec.impliedNodeFormat),Rf=f$(Ec.path,Bc),Mu=Mt(On);let xc=Mu.specifierCache&&Mu.specifierCache.get(Rf);if(!xc){const Dr=!!Kg(Le),{moduleResolverHost:Pi}=Xt.tracker,No=Dr?{...Le,baseUrl:Pi.getCommonSourceDirectory()}:Le;xc=Dl(hae(On,ro,No,Ec,Pi,{importModuleSpecifierPreference:Dr?"non-relative":"project-relative",importModuleSpecifierEnding:Dr?"minimal":Bc===99?"js":void 0},{overrideImportMode:bs})),Mu.specifierCache??(Mu.specifierCache=new Map),Mu.specifierCache.set(Rf,xc)}return xc}function Pa(On){const Xt=be.createIdentifier(lf(On.escapedName));return On.parent?be.createQualifiedName(Pa(On.parent),Xt):Xt}function Ga(On,Xt,bs,as){var Ec,Bc,Rf,Mu;const xc=aa(On,Xt,bs,!(Xt.flags&16384)),Dr=bs===111551;if(gt(xc[0].declarations,fl)){const ao=xc.length>1?No(xc,xc.length-1,1):void 0,Bo=as||lo(xc,0,Xt),ja=ns(Ic(Xt.enclosingDeclaration)),rf=ny(xc[0]);let zl,td;if((Jd(Le)===3||Jd(Le)===99)&&(rf==null?void 0:rf.impliedNodeFormat)===99&&rf.impliedNodeFormat!==(ja==null?void 0:ja.impliedNodeFormat)&&(zl=Go(xc[0],Xt,99),td=be.createImportTypeAssertionContainer(be.createAssertClause(be.createNodeArray([be.createAssertEntry(be.createStringLiteral("resolution-mode"),be.createStringLiteral("import"))]))),(Bc=(Ec=Xt.tracker).reportImportTypeNodeResolutionModeOverride)==null||Bc.call(Ec)),zl||(zl=Go(xc[0],Xt)),!(Xt.flags&67108864)&&Jd(Le)!==1&&zl.indexOf("/node_modules/")>=0){const rc=zl;if(Jd(Le)===3||Jd(Le)===99){const Ll=(ja==null?void 0:ja.impliedNodeFormat)===99?1:99;zl=Go(xc[0],Xt,Ll),zl.indexOf("/node_modules/")>=0?zl=rc:(td=be.createImportTypeAssertionContainer(be.createAssertClause(be.createNodeArray([be.createAssertEntry(be.createStringLiteral("resolution-mode"),be.createStringLiteral(Ll===99?"import":"require"))]))),(Mu=(Rf=Xt.tracker).reportImportTypeNodeResolutionModeOverride)==null||Mu.call(Rf))}td||(Xt.encounteredError=!0,Xt.tracker.reportLikelyUnsafeImportRequiredError&&Xt.tracker.reportLikelyUnsafeImportRequiredError(rc))}const Jo=be.createLiteralTypeNode(be.createStringLiteral(zl));if(Xt.tracker.trackExternalModuleSymbolOfImportTypeNode&&Xt.tracker.trackExternalModuleSymbolOfImportTypeNode(xc[0]),Xt.approximateLength+=zl.length+10,!ao||Vd(ao)){if(ao){const rc=An(ao)?ao:ao.right;qN(rc,void 0)}return be.createImportTypeNode(Jo,td,ao,Bo,Dr)}else{const rc=Xa(ao),Ll=rc.objectType.typeName;return be.createIndexedAccessTypeNode(be.createImportTypeNode(Jo,td,Ll,Bo,Dr),rc.indexType)}}const Pi=No(xc,xc.length-1,0);if(XN(Pi))return Pi;if(Dr)return be.createTypeQueryNode(Pi);{const ao=An(Pi)?Pi:Pi.right,Bo=H7(ao);return qN(ao,void 0),be.createTypeReferenceNode(Pi,Bo)}function No(ao,Bo,ja){const rf=Bo===ao.length-1?as:lo(ao,Bo,Xt),zl=ao[Bo],td=ao[Bo-1];let Jo;if(Bo===0)Xt.flags|=16777216,Jo=dx(zl,Xt),Xt.approximateLength+=(Jo?Jo.length:0)+1,Xt.flags^=16777216;else if(td&&Gt(td)){const Ll=Gt(td);wT(Ll,(Sf,Od)=>{if(f_(Sf,zl)&&!s0(Od)&&Od!=="export=")return Jo=lf(Od),!0})}if(Jo===void 0){const Ll=Yr(zl.declarations,o_);if(Ll&&am(Ll)&&Vd(Ll.expression)){const Sf=No(ao,Bo-1,ja);return Vd(Sf)?be.createIndexedAccessTypeNode(be.createParenthesizedType(be.createTypeQueryNode(Sf)),be.createTypeQueryNode(Ll.expression)):Sf}Jo=dx(zl,Xt)}if(Xt.approximateLength+=Jo.length+1,!(Xt.flags&16)&&td&&BA(td)&&BA(td).get(zl.escapedName)&&f_(BA(td).get(zl.escapedName),zl)){const Ll=No(ao,Bo-1,ja);return XN(Ll)?be.createIndexedAccessTypeNode(Ll,be.createLiteralTypeNode(be.createStringLiteral(Jo))):be.createIndexedAccessTypeNode(be.createTypeReferenceNode(Ll,rf),be.createLiteralTypeNode(be.createStringLiteral(Jo)))}const rc=Sa(be.createIdentifier(Jo),16777216);if(rf&&qN(rc,be.createNodeArray(rf)),rc.symbol=zl,Bo>ja){const Ll=No(ao,Bo-1,ja);return Vd(Ll)?be.createQualifiedName(Ll,rc):ce.fail("Impossible construct - an export of an indexed access cannot be reachable")}return rc}}function hs(On,Xt,bs){const as=Ro(Xt.enclosingDeclaration,On,788968,void 0,On,!1);return as?!(as.flags&262144&&as===bs.symbol):!1}function Ld(On,Xt){var bs,as;if(Xt.flags&4&&Xt.typeParameterNames){const Bc=Xt.typeParameterNames.get(Gh(On));if(Bc)return Bc}let Ec=nl(On.symbol,Xt,788968,!0);if(!(Ec.kind&80))return be.createIdentifier("(Missing type parameter)");if(Xt.flags&4){const Bc=Ec.escapedText;let Rf=((bs=Xt.typeParameterNamesByTextNextNameCount)==null?void 0:bs.get(Bc))||0,Mu=Bc;for(;(as=Xt.typeParameterNamesByText)!=null&&as.has(Mu)||hs(Mu,Xt,On);)Rf++,Mu=`${Bc}_${Rf}`;if(Mu!==Bc){const xc=H7(Ec);Ec=be.createIdentifier(Mu),qN(Ec,xc)}(Xt.typeParameterNamesByTextNextNameCount||(Xt.typeParameterNamesByTextNextNameCount=new Map)).set(Bc,Rf),(Xt.typeParameterNames||(Xt.typeParameterNames=new Map)).set(Gh(On),Ec),(Xt.typeParameterNamesByText||(Xt.typeParameterNamesByText=new Set)).add(Bc)}return Ec}function nl(On,Xt,bs,as){const Ec=aa(On,Xt,bs);return as&&Ec.length!==1&&!Xt.encounteredError&&!(Xt.flags&65536)&&(Xt.encounteredError=!0),Bc(Ec,Ec.length-1);function Bc(Rf,Mu){const xc=lo(Rf,Mu,Xt),Dr=Rf[Mu];Mu===0&&(Xt.flags|=16777216);const Pi=dx(Dr,Xt);Mu===0&&(Xt.flags^=16777216);const No=Sa(be.createIdentifier(Pi),16777216);return xc&&qN(No,be.createNodeArray(xc)),No.symbol=Dr,Mu>0?be.createQualifiedName(Bc(Rf,Mu-1),No):No}}function id(On,Xt,bs){const as=aa(On,Xt,bs);return Ec(as,as.length-1);function Ec(Bc,Rf){const Mu=lo(Bc,Rf,Xt),xc=Bc[Rf];Rf===0&&(Xt.flags|=16777216);let Dr=dx(xc,Xt);Rf===0&&(Xt.flags^=16777216);let Pi=Dr.charCodeAt(0);if(Dde(Pi)&>(xc.declarations,fl))return be.createStringLiteral(Go(xc,Xt));if(Rf===0||doe(Dr,ht)){const No=Sa(be.createIdentifier(Dr),16777216);return Mu&&qN(No,be.createNodeArray(Mu)),No.symbol=xc,Rf>0?be.createPropertyAccessExpression(Ec(Bc,Rf-1),No):No}else{Pi===91&&(Dr=Dr.substring(1,Dr.length-1),Pi=Dr.charCodeAt(0));let No;if(Dde(Pi)&&!(xc.flags&8)?No=be.createStringLiteral(HE(Dr).replace(/\\./g,ao=>ao.substring(1)),Pi===39):""+ +Dr===Dr&&(No=be.createNumericLiteral(+Dr)),!No){const ao=Sa(be.createIdentifier(Dr),16777216);Mu&&qN(ao,be.createNodeArray(Mu)),ao.symbol=xc,No=ao}return be.createElementAccessExpression(Ec(Bc,Rf-1),No)}}}function $y(On){const Xt=o_(On);return!!Xt&&Wp(Xt)}function l2(On){const Xt=o_(On);return!!(Xt&&Wp(Xt)&&(Xt.singleQuote||!rh(Xt)&&xf(Yv(Xt,!1),"'")))}function Cx(On,Xt){const bs=!!Nt(On.declarations)&&jr(On.declarations,$y),as=!!Nt(On.declarations)&&jr(On.declarations,l2),Ec=kC(On,Xt,as,bs);if(Ec)return Ec;const Bc=lf(On.escapedName);return QH(Bc,iu(Le),as,bs)}function kC(On,Xt,bs,as){const Ec=Mt(On).nameType;if(Ec){if(Ec.flags&384){const Bc=""+Ec.value;return!rE(Bc,iu(Le))&&(as||!FT(Bc))?be.createStringLiteral(Bc,!!bs):FT(Bc)&&xf(Bc,"-")?be.createComputedPropertyName(be.createNumericLiteral(+Bc)):QH(Bc,iu(Le))}if(Ec.flags&8192)return be.createComputedPropertyName(id(Ec.symbol,Xt,111551))}}function Gi(On){const Xt={...On};return Xt.typeParameterNames&&(Xt.typeParameterNames=new Map(Xt.typeParameterNames)),Xt.typeParameterNamesByText&&(Xt.typeParameterNamesByText=new Set(Xt.typeParameterNamesByText)),Xt.typeParameterSymbolList&&(Xt.typeParameterSymbolList=new Set(Xt.typeParameterSymbolList)),Xt.tracker=new y$(Xt,Xt.tracker.inner,Xt.tracker.moduleResolverHost),Xt}function Ps(On,Xt){return On.declarations&&lr(On.declarations,bs=>!!Kb(bs)&&(!Xt||!!Kr(bs,as=>as===Xt)))}function wf(On,Xt){return!(ji(Xt)&4)||!x2(On)||Nt(On.typeArguments)>=EC(Xt.target.typeParameters)}function od(On){return ge(On).fakeScopeForSignatureDeclaration?On.parent:On}function Jf(On,Xt,bs,as,Ec,Bc){if(!je(Xt)&&as){const xc=Ps(bs,od(as));if(xc&&!J_(xc)&&!tm(xc)){const Dr=Kb(xc);if(dm(Dr,xc,Xt)&&wf(Dr,Xt)){const Pi=Lp(On,Dr,Ec,Bc);if(Pi)return Pi}}}const Rf=On.flags;Xt.flags&8192&&Xt.symbol===bs&&(!On.enclosingDeclaration||gt(bs.declarations,xc=>ns(xc)===ns(On.enclosingDeclaration)))&&(On.flags|=1048576);const Mu=C(Xt,On);return On.flags=Rf,Mu}function dm(On,Xt,bs){const as=wl(On);return as===bs?!0:Pu(Xt)&&Xt.questionToken?JA(bs,524288)===as:!1}function Zg(On,Xt,bs,as,Ec){if(!je(Xt)&&On.enclosingDeclaration){const Bc=bs.declaration&&bA(bs.declaration),Rf=od(On.enclosingDeclaration);if(Kr(Bc,Mu=>Mu===Rf)&&Bc){const Mu=wl(Bc);if((Mu.flags&262144&&Mu.isThisType?Nf(Mu,bs.mapper):Mu)===Xt&&wf(Bc,Xt)){const Dr=Lp(On,Bc,as,Ec);if(Dr)return Dr}}}return C(Xt,On)}function Pv(On,Xt,bs){let as=!1;const Ec=NS(On);if(Rs(On)&&(GL(Ec)||KC(Ec.parent)||nT(Ec.parent)&&U8(Ec.parent.left)&&GL(Ec.parent.right)))return as=!0,{introducesError:as,node:On};const Bc=P_(Ec,67108863,!0,!0);if(Bc&&(br(Bc,Xt.enclosingDeclaration,67108863,!1).accessibility!==0?as=!0:(Xt.tracker.trackSymbol(Bc,Xt.enclosingDeclaration,67108863),bs==null||bs(Bc)),An(On))){const Rf=Rm(Bc),Mu=Bc.flags&262144&&!wu(Rf.symbol,Xt.enclosingDeclaration)?Ld(Rf,Xt):be.cloneNode(On);return Mu.symbol=Bc,{introducesError:as,node:Sa(tc(Mu,On),16777216)}}return{introducesError:as,node:On}}function Lp(On,Xt,bs,as){l&&l.throwIfCancellationRequested&&l.throwIfCancellationRequested();let Ec=!1;const Bc=ns(Xt),Rf=nr(Xt,Mu,Uu);if(Ec)return;return Rf===Xt?vr(be.cloneNode(Xt),Xt):Rf;function Mu(xc){if(FJ(xc)||xc.kind===326)return be.createKeywordTypeNode(133);if(QL(xc))return be.createKeywordTypeNode(159);if(MG(xc))return be.createUnionTypeNode([nr(xc.type,Mu,Uu),be.createLiteralTypeNode(be.createNull())]);if(AEe(xc))return be.createUnionTypeNode([nr(xc.type,Mu,Uu),be.createKeywordTypeNode(157)]);if(Ooe(xc))return nr(xc.type,Mu);if(Foe(xc))return be.createArrayTypeNode(nr(xc.type,Mu,Uu));if(EW(xc))return be.createTypeLiteralNode(Vn(xc.jsDocPropertyTags,ao=>{const Bo=An(ao.name)?ao.name:ao.name.right,ja=wm(wl(xc),Bo.escapedText),rf=ja&&ao.typeExpression&&wl(ao.typeExpression.type)!==ja?C(ja,On):void 0;return be.createPropertySignature(void 0,Bo,ao.isBracketed||ao.typeExpression&&AEe(ao.typeExpression.type)?be.createToken(58):void 0,rf||ao.typeExpression&&nr(ao.typeExpression.type,Mu,Uu)||be.createKeywordTypeNode(133))}));if(x2(xc)&&An(xc.typeName)&&xc.typeName.escapedText==="")return tc(be.createKeywordTypeNode(133),xc);if((WT(xc)||x2(xc))&&aH(xc))return be.createTypeLiteralNode([be.createIndexSignature(void 0,[be.createParameterDeclaration(void 0,void 0,"x",void 0,nr(xc.typeArguments[0],Mu,Uu))],nr(xc.typeArguments[1],Mu,Uu))]);if(LG(xc))if(J8(xc)){let ao;return be.createConstructorTypeNode(void 0,Fa(xc.typeParameters,Mu,Hh),Qo(xc.parameters,(Bo,ja)=>Bo.name&&An(Bo.name)&&Bo.name.escapedText==="new"?(ao=Bo.type,void 0):be.createParameterDeclaration(void 0,Dr(Bo),Pi(Bo,ja),Bo.questionToken,nr(Bo.type,Mu,Uu),void 0)),nr(ao||xc.type,Mu,Uu)||be.createKeywordTypeNode(133))}else return be.createFunctionTypeNode(Fa(xc.typeParameters,Mu,Hh),Vn(xc.parameters,(ao,Bo)=>be.createParameterDeclaration(void 0,Dr(ao),Pi(ao,Bo),ao.questionToken,nr(ao.type,Mu,Uu),void 0)),nr(xc.type,Mu,Uu)||be.createKeywordTypeNode(133));if(x2(xc)&&D9(xc)&&(!wf(xc,wl(xc))||dWe(xc)||Ir===VA(xc,788968,!0)))return tc(C(wl(xc),On),xc);if(BE(xc)){const ao=ge(xc).resolvedSymbol;return D9(xc)&&ao&&(!xc.isTypeOf&&!(ao.flags&788968)||!(Nt(xc.typeArguments)>=EC(rs(ao))))?tc(C(wl(xc),On),xc):be.updateImportTypeNode(xc,be.updateLiteralTypeNode(xc.argument,No(xc,xc.argument.literal)),xc.assertions,xc.qualifier,Fa(xc.typeArguments,Mu,Uu),xc.isTypeOf)}if(Vd(xc)||Uh(xc)){const{introducesError:ao,node:Bo}=Pv(xc,On,bs);if(Ec=Ec||ao,Bo!==xc)return Bo}return Bc&&m6(xc)&&Ah(Bc,xc.pos).line===Ah(Bc,xc.end).line&&Sa(xc,1),ia(xc,Mu,I6);function Dr(ao){return ao.dotDotDotToken||(ao.type&&Foe(ao.type)?be.createToken(26):void 0)}function Pi(ao,Bo){return ao.name&&An(ao.name)&&ao.name.escapedText==="this"?"this":Dr(ao)?"args":`arg${Bo}`}function No(ao,Bo){if(as){if(On.tracker&&On.tracker.moduleResolverHost){const ja=UV(ao);if(ja){const zl={getCanonicalFileName:_v(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>On.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>On.tracker.moduleResolverHost.getCommonSourceDirectory()},td=Rie(zl,ja);return be.createStringLiteral(td)}}}else if(On.tracker&&On.tracker.trackExternalModuleSymbolOfImportTypeNode){const ja=fb(Bo,Bo,void 0);ja&&On.tracker.trackExternalModuleSymbolOfImportTypeNode(ja)}return Bo}}}function $T(On,Xt,bs){const as=k0(be.createPropertyDeclaration,174,!0),Ec=k0((ai,Vc,Gl,jl)=>be.createPropertySignature(ai,Vc,Gl,jl),173,!1),Bc=Xt.enclosingDeclaration;let Rf=[];const Mu=new Set,xc=[],Dr=Xt;Xt={...Dr,usedSymbolNames:new Set(Dr.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const Pi={...Dr.tracker.inner,trackSymbol:(ai,Vc,Gl)=>{var jl;if(br(ai,Vc,Gl,!1).accessibility===0){const Mm=$s(ai,Xt,Gl);ai.flags&4||rm(Mm[0])}else if((jl=Dr.tracker.inner)!=null&&jl.trackSymbol)return Dr.tracker.inner.trackSymbol(ai,Vc,Gl);return!1}};Xt.tracker=new y$(Xt,Pi,Dr.tracker.moduleResolverHost),wT(On,(ai,Vc)=>{const Gl=lf(Vc);G2(ai,Gl)});let No=!bs;const ao=On.get("export=");return ao&&On.size>1&&ao.flags&2097152&&(On=Td(),On.set("export=",ao)),Sf(On),Jo(Rf);function Bo(ai){return!!ai&&ai.kind===80}function ja(ai){return Dh(ai)?gi(Vn(ai.declarationList.declarations,o_),Bo):gi([o_(ai)],Bo)}function rf(ai){const Vc=lr(ai,Ly),Gl=Ho(ai,xp);let jl=Gl!==-1?ai[Gl]:void 0;if(jl&&Vc&&Vc.isExportEquals&&An(Vc.expression)&&An(jl.name)&&ec(jl.name)===ec(Vc.expression)&&jl.body&&z0(jl.body)){const Yl=gi(ai,$f=>!!(tS($f)&1)),Mm=jl.name;let ud=jl.body;if(Nt(Yl)&&(jl=be.updateModuleDeclaration(jl,jl.modifiers,jl.name,ud=be.updateModuleBlock(ud,be.createNodeArray([...jl.body.statements,be.createExportDeclaration(void 0,!1,be.createNamedExports(Vn(ea(Yl,$f=>ja($f)),$f=>be.createExportSpecifier(!1,void 0,$f))),void 0)]))),ai=[...ai.slice(0,Gl),jl,...ai.slice(Gl+1)]),!lr(ai,$f=>$f!==jl&&FU($f,Mm))){Rf=[];const $f=!gt(ud.statements,ip=>il(ip,1)||Ly(ip)||mh(ip));Ot(ud.statements,ip=>{yg(ip,$f?1:0)}),ai=[...gi(ai,ip=>ip!==jl&&ip!==Vc),...Rf]}}return ai}function zl(ai){const Vc=gi(ai,jl=>mh(jl)&&!jl.moduleSpecifier&&!!jl.exportClause&&G0(jl.exportClause));Nt(Vc)>1&&(ai=[...gi(ai,Yl=>!mh(Yl)||!!Yl.moduleSpecifier||!Yl.exportClause),be.createExportDeclaration(void 0,!1,be.createNamedExports(ea(Vc,Yl=>uc(Yl.exportClause,G0).elements)),void 0)]);const Gl=gi(ai,jl=>mh(jl)&&!!jl.moduleSpecifier&&!!jl.exportClause&&G0(jl.exportClause));if(Nt(Gl)>1){const jl=BD(Gl,Yl=>Wp(Yl.moduleSpecifier)?">"+Yl.moduleSpecifier.text:">");if(jl.length!==Gl.length)for(const Yl of jl)Yl.length>1&&(ai=[...gi(ai,Mm=>Yl.indexOf(Mm)===-1),be.createExportDeclaration(void 0,!1,be.createNamedExports(ea(Yl,Mm=>uc(Mm.exportClause,G0).elements)),Yl[0].moduleSpecifier)])}return ai}function td(ai){const Vc=Ho(ai,Gl=>mh(Gl)&&!Gl.moduleSpecifier&&!Gl.assertClause&&!!Gl.exportClause&&G0(Gl.exportClause));if(Vc>=0){const Gl=ai[Vc],jl=Qo(Gl.exportClause.elements,Yl=>{if(!Yl.propertyName){const Mm=Cy(ai),ud=gi(Mm,$f=>FU(ai[$f],Yl.name));if(Nt(ud)&&jr(ud,$f=>nW(ai[$f]))){for(const $f of ud)ai[$f]=rc(ai[$f]);return}}return Yl});Nt(jl)?ai[Vc]=be.updateExportDeclaration(Gl,Gl.modifiers,Gl.isTypeOnly,be.updateNamedExports(Gl.exportClause,jl),Gl.moduleSpecifier,Gl.assertClause):zC(ai,Vc)}return ai}function Jo(ai){return ai=rf(ai),ai=zl(ai),ai=td(ai),Bc&&(tl(Bc)&&h1(Bc)||xp(Bc))&&(!gt(ai,UU)||!Hz(ai)&>(ai,VU))&&ai.push(jJ(be)),ai}function rc(ai){const Vc=(tS(ai)|1)&-3;return be.updateModifiers(ai,Vc)}function Ll(ai){const Vc=tS(ai)&-2;return be.updateModifiers(ai,Vc)}function Sf(ai,Vc,Gl){Vc||xc.push(new Map),ai.forEach(jl=>{Od(jl,!1,!!Gl)}),Vc||(xc[xc.length-1].forEach(jl=>{Od(jl,!0,!!Gl)}),xc.pop())}function Od(ai,Vc,Gl){const jl=wa(ai);if(Mu.has(Bp(jl)))return;if(Mu.add(Bp(jl)),!Vc||Nt(ai.declarations)&>(ai.declarations,Mm=>!!Kr(Mm,ud=>ud===Bc))){const Mm=Xt;Xt=Gi(Xt),hb(ai,Vc,Gl),Xt.reportedDiagnostic&&(Dr.reportedDiagnostic=Xt.reportedDiagnostic),Xt=Mm}}function hb(ai,Vc,Gl){var jl,Yl,Mm,ud;const $f=lf(ai.escapedName),ip=ai.escapedName==="default";if(Vc&&!(Xt.flags&131072)&&t6($f)&&!ip){Xt.encounteredError=!0;return}let om=ip&&!!(ai.flags&-113||ai.flags&16&&Nt(Vp(Vo(ai))))&&!(ai.flags&2097152),uv=!om&&!Vc&&t6($f)&&!ip;(om||uv)&&(Vc=!0);const l1=(Vc?0:1)|(ip&&!om?1024:0),u2=ai.flags&1536&&ai.flags&7&&ai.escapedName!=="export=",P0=u2&&im(Vo(ai),ai);if((ai.flags&8208||P0)&&ss(Vo(ai),ai,G2(ai,$f),l1),ai.flags&524288&&or(ai,$f,l1),ai.flags&98311&&ai.escapedName!=="export="&&!(ai.flags&4194304)&&!(ai.flags&32)&&!(ai.flags&8192)&&!P0)if(Gl)Ug(ai)&&(uv=!1,om=!1);else{const Wg=Vo(ai),qy=G2(ai,$f);if(!(ai.flags&16)&&im(Wg,ai))ss(Wg,ai,qy,l1);else{const ww=ai.flags&2?MV(ai)?2:1:(jl=ai.parent)!=null&&jl.valueDeclaration&&tl((Yl=ai.parent)==null?void 0:Yl.valueDeclaration)?2:void 0,Qk=om||!(ai.flags&4)?qy:LO(qy,ai);let Rw=ai.declarations&&lr(ai.declarations,l8=>ff(l8));Rw&&My(Rw.parent)&&Rw.parent.declarations.length===1&&(Rw=Rw.parent.parent);const JV=(Mm=ai.declarations)==null?void 0:Mm.find(sa);if(JV&&ys(JV.parent)&&An(JV.parent.right)&&((ud=Wg.symbol)!=null&&ud.valueDeclaration)&&tl(Wg.symbol.valueDeclaration)){const l8=qy===JV.parent.right.escapedText?void 0:JV.parent.right;yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,l8,qy)])),0),Xt.tracker.trackSymbol(Wg.symbol,Xt.enclosingDeclaration,111551)}else{const l8=vr(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Qk,void 0,Jf(Xt,Wg,ai,Bc,rm,bs))],ww)),Rw);yg(l8,Qk!==qy?l1&-2:l1),Qk!==qy&&!Vc&&(yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,Qk,qy)])),0),uv=!1,om=!1)}}}if(ai.flags&384&&Ko(ai,$f,l1),ai.flags&32&&(ai.flags&4&&ai.valueDeclaration&&ys(ai.valueDeclaration.parent)&&B0(ai.valueDeclaration.parent.right)?O_(ai,G2(ai,$f),l1):kd(ai,G2(ai,$f),l1)),(ai.flags&1536&&(!u2||Oa(ai))||P0)&&Qs(ai,$f,l1),ai.flags&64&&!(ai.flags&32)&&Hr(ai,$f,l1),ai.flags&2097152&&O_(ai,G2(ai,$f),l1),ai.flags&4&&ai.escapedName==="export="&&Ug(ai),ai.flags&8388608&&ai.declarations)for(const Wg of ai.declarations){const qy=Zm(Wg,Wg.moduleSpecifier);qy&&yg(be.createExportDeclaration(void 0,Wg.isTypeOnly,void 0,be.createStringLiteral(Go(qy,Xt))),0)}om?yg(be.createExportAssignment(void 0,!1,be.createIdentifier(G2(ai,$f))),0):uv&&yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,G2(ai,$f),$f)])),0)}function rm(ai){if(gt(ai.declarations,Y8))return;ce.assertIsDefined(xc[xc.length-1]),LO(lf(ai.escapedName),ai);const Vc=!!(ai.flags&2097152)&&!gt(ai.declarations,Gl=>!!Kr(Gl,mh)||AP(Gl)||kh(Gl)&&!j0(Gl.moduleReference));xc[Vc?0:xc.length-1].set(Bp(ai),ai)}function I0(ai){return tl(ai)&&(h1(ai)||Py(ai))||Ov(ai)&&!$C(ai)}function yg(ai,Vc){if(nx(ai)){let Gl=0;const jl=Xt.enclosingDeclaration&&(T2(Xt.enclosingDeclaration)?ns(Xt.enclosingDeclaration):Xt.enclosingDeclaration);Vc&1&&jl&&(I0(jl)||xp(jl))&&nW(ai)&&(Gl|=1),No&&!(Gl&1)&&(!jl||!(jl.flags&33554432))&&(Ih(ai)||Dh(ai)||b0(ai)||Kc(ai)||xp(ai))&&(Gl|=2),Vc&1024&&(Kc(ai)||Kp(ai)||b0(ai))&&(Gl|=1024),Gl&&(ai=be.updateModifiers(ai,Gl|tS(ai)))}Rf.push(ai)}function or(ai,Vc,Gl){var jl;const Yl=Lk(ai),Mm=Mt(ai).typeParameters,ud=Vn(Mm,u2=>hr(u2,Xt)),$f=(jl=ai.declarations)==null?void 0:jl.find(T2),ip=Gz($f?$f.comment||$f.parent.comment:void 0),om=Xt.flags;Xt.flags|=8388608;const uv=Xt.enclosingDeclaration;Xt.enclosingDeclaration=$f;const l1=$f&&$f.typeExpression&&pI($f.typeExpression)&&Lp(Xt,$f.typeExpression.type,rm,bs)||C(Yl,Xt);yg(MS(be.createTypeAliasDeclaration(void 0,G2(ai,Vc),ud,l1),ip?[{kind:3,text:`* * `+ip.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Gl),Xt.flags=om,Xt.enclosingDeclaration=uv}function Hr(ai,Vc,Gl){const jl=Uy(ai),Yl=rs(ai),Mm=Vn(Yl,P0=>hr(P0,Xt)),ud=Gp(jl),$f=Nt(ud)?Dd(ud):void 0,ip=ea(Vp(jl),P0=>YI(P0,$f)),om=Yk(0,jl,$f,179),uv=Yk(1,jl,$f,180),l1=A5(jl,$f),u2=Nt(ud)?[be.createHeritageClause(96,Qo(ud,P0=>JV(P0,111551)))]:void 0;yg(be.createInterfaceDeclaration(void 0,G2(ai,Vc),Mm,u2,[...l1,...uv,...om,...ip]),Gl)}function fo(ai){const Vc=Gt(ai);return Vc?gi(oc(Vc.values()),Gl=>C_(Gl)&&rE(Gl.escapedName,99)):[]}function Oa(ai){return jr(fo(ai),Vc=>!(sg(wp(Vc))&111551))}function Qs(ai,Vc,Gl){const jl=fo(ai),Yl=_N(jl,$f=>$f.parent&&$f.parent===ai?"real":"merged"),Mm=Yl.get("real")||Zn,ud=Yl.get("merged")||Zn;if(Nt(Mm)){const $f=G2(ai,Vc);of(Mm,$f,Gl,!!(ai.flags&67108880))}if(Nt(ud)){const $f=ns(Xt.enclosingDeclaration),ip=G2(ai,Vc),om=be.createModuleBlock([be.createExportDeclaration(void 0,!1,be.createNamedExports(Qo(gi(ud,uv=>uv.escapedName!=="export="),uv=>{var l1,u2;const P0=lf(uv.escapedName),Wg=G2(uv,P0),qy=uv.declarations&&og(uv);if($f&&(qy?$f!==ns(qy):!gt(uv.declarations,Rw=>ns(Rw)===$f))){(u2=(l1=Xt.tracker)==null?void 0:l1.reportNonlocalAugmentation)==null||u2.call(l1,$f,ai,uv);return}const ww=qy&&yp(qy,!0);rm(ww||uv);const Qk=ww?G2(ww,lf(ww.escapedName)):Wg;return be.createExportSpecifier(!1,P0===Qk?void 0:Qk,P0)})))]);yg(be.createModuleDeclaration(void 0,be.createIdentifier(ip),om,32),0)}}function Ko(ai,Vc,Gl){yg(be.createEnumDeclaration(be.createModifiersFromModifierFlags(jze(ai)?2048:0),G2(ai,Vc),Vn(gi(Vp(Vo(ai)),jl=>!!(jl.flags&8)),jl=>{const Yl=jl.declarations&&jl.declarations[0]&&Qb(jl.declarations[0])?OGe(jl.declarations[0]):void 0;return be.createEnumMember(lf(jl.escapedName),Yl===void 0?void 0:typeof Yl=="string"?be.createStringLiteral(Yl):be.createNumericLiteral(Yl))})),Gl)}function ss(ai,Vc,Gl,jl){const Yl=Ti(ai,0);for(const Mm of Yl){const ud=Pt(Mm,262,Xt,{name:be.createIdentifier(Gl),privateSymbolVisitor:rm,bundledImports:bs});yg(vr(ud,ll(Mm)),jl)}if(!(Vc.flags&1536&&Vc.exports&&Vc.exports.size)){const Mm=gi(Vp(ai),C_);of(Mm,Gl,jl,!0)}}function ll(ai){if(ai.declaration&&ai.declaration.parent){if(ys(ai.declaration.parent)&&Qy(ai.declaration.parent)===5)return ai.declaration.parent;if(ff(ai.declaration.parent)&&ai.declaration.parent.parent)return ai.declaration.parent.parent}return ai.declaration}function of(ai,Vc,Gl,jl){if(Nt(ai)){const Mm=_N(ai,Wg=>!Nt(Wg.declarations)||gt(Wg.declarations,qy=>ns(qy)===ns(Xt.enclosingDeclaration))?"local":"remote").get("local")||Zn;let ud=DP.createModuleDeclaration(void 0,be.createIdentifier(Vc),be.createModuleBlock([]),32);kl(ud,Bc),ud.locals=Td(ai),ud.symbol=ai[0].parent;const $f=Rf;Rf=[];const ip=No;No=!1;const om={...Xt,enclosingDeclaration:ud},uv=Xt;Xt=om,Sf(Td(Mm),jl,!0),Xt=uv,No=ip;const l1=Rf;Rf=$f;const u2=Vn(l1,Wg=>Ly(Wg)&&!Wg.isExportEquals&&An(Wg.expression)?be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,Wg.expression,be.createIdentifier("default"))])):Wg),P0=jr(u2,Wg=>il(Wg,1))?Vn(u2,Ll):u2;ud=be.updateModuleDeclaration(ud,ud.modifiers,ud.name,be.createModuleBlock(P0)),yg(ud,Gl)}}function C_(ai){return!!(ai.flags&2887656)||!(ai.flags&4194304||ai.escapedName==="prototype"||ai.valueDeclaration&&e_(ai.valueDeclaration)&&Jl(ai.valueDeclaration.parent))}function nd(ai){const Vc=Qo(ai,Gl=>{const jl=Xt.enclosingDeclaration;Xt.enclosingDeclaration=Gl;let Yl=Gl.expression;if(Uh(Yl)){if(An(Yl)&&ec(Yl)==="")return Mm(void 0);let ud;if({introducesError:ud,node:Yl}=Pv(Yl,Xt,rm),ud)return Mm(void 0)}return Mm(be.createExpressionWithTypeArguments(Yl,Vn(Gl.typeArguments,ud=>Lp(Xt,ud,rm,bs)||C(wl(ud),Xt))));function Mm(ud){return Xt.enclosingDeclaration=jl,ud}});if(Vc.length===ai.length)return Vc}function kd(ai,Vc,Gl){var jl,Yl;const Mm=(jl=ai.declarations)==null?void 0:jl.find(Jl),ud=Xt.enclosingDeclaration;Xt.enclosingDeclaration=Mm||ud;const $f=rs(ai),ip=Vn($f,Zk=>hr(Zk,Xt)),om=M1(Uy(ai)),uv=Gp(om),l1=Mm&&qb(Mm),u2=l1&&nd(l1)||Qo(Xd(om),yM),P0=Vo(ai),Wg=!!((Yl=P0.symbol)!=null&&Yl.valueDeclaration)&&Jl(P0.symbol.valueDeclaration),qy=Wg?Nl(P0):gn,ww=[...Nt(uv)?[be.createHeritageClause(96,Vn(uv,Zk=>GK(Zk,qy,Vc)))]:[],...Nt(u2)?[be.createHeritageClause(119,u2)]:[]],Qk=rvt(om,uv,Vp(om)),Rw=gi(Qk,Zk=>{const mne=Zk.valueDeclaration;return!!mne&&!(Xv(mne)&&Gu(mne.name))}),u8=gt(Qk,Zk=>{const mne=Zk.valueDeclaration;return!!mne&&Xv(mne)&&Gu(mne.name)})?[be.createPropertyDeclaration(void 0,be.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Zn,qGe=ea(Rw,Zk=>as(Zk,!1,uv[0])),KGe=ea(gi(Vp(P0),Zk=>!(Zk.flags&4194304)&&Zk.escapedName!=="prototype"&&!C_(Zk)),Zk=>as(Zk,!0,qy)),g0t=!Wg&&!!ai.valueDeclaration&&Rs(ai.valueDeclaration)&&!gt(Ti(P0,1))?[be.createConstructorDeclaration(be.createModifiersFromModifierFlags(8),[],void 0)]:Yk(1,P0,qy,176),h0t=A5(om,uv[0]);Xt.enclosingDeclaration=ud,yg(vr(be.createClassDeclaration(void 0,Vc,ip,ww,[...h0t,...KGe,...g0t,...qGe,...u8]),ai.declarations&&gi(ai.declarations,Zk=>Kc(Zk)||B0(Zk))[0]),Gl)}function lu(ai){return Yr(ai,Vc=>{if(oS(Vc)||Oy(Vc))return ec(Vc.propertyName||Vc.name);if(ys(Vc)||Ly(Vc)){const Gl=Ly(Vc)?Vc.expression:Vc.right;if(sa(Gl))return ec(Gl.name)}if(km(Vc)){const Gl=o_(Vc);if(Gl&&An(Gl))return ec(Gl)}})}function O_(ai,Vc,Gl){var jl,Yl,Mm,ud,$f;const ip=og(ai);if(!ip)return ce.fail();const om=wa(yp(ip,!0));if(!om)return;let uv=VM(om)&&lu(ai.declarations)||lf(om.escapedName);uv==="export="&&it&&(uv="default");const l1=G2(om,uv);switch(rm(om),ip.kind){case 208:if(((Yl=(jl=ip.parent)==null?void 0:jl.parent)==null?void 0:Yl.kind)===260){const Wg=Go(om.parent||om,Xt),{propertyName:qy}=ip;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamedImports([be.createImportSpecifier(!1,qy&&An(qy)?be.createIdentifier(ec(qy)):void 0,be.createIdentifier(Vc))])),be.createStringLiteral(Wg),void 0),0);break}ce.failBadSyntaxKind(((Mm=ip.parent)==null?void 0:Mm.parent)||ip,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:(($f=(ud=ip.parent)==null?void 0:ud.parent)==null?void 0:$f.kind)===226&&rp(lf(ai.escapedName),l1);break;case 260:if(sa(ip.initializer)){const Wg=ip.initializer,qy=be.createUniqueName(Vc),ww=Go(om.parent||om,Xt);yg(be.createImportEqualsDeclaration(void 0,!1,qy,be.createExternalModuleReference(be.createStringLiteral(ww))),0),yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(Vc),be.createQualifiedName(qy,Wg.name)),Gl);break}case 271:if(om.escapedName==="export="&>(om.declarations,Wg=>tl(Wg)&&Py(Wg))){Ug(ai);break}const u2=!(om.flags&512)&&!ff(ip);yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(Vc),u2?nl(om,Xt,67108863,!1):be.createExternalModuleReference(be.createStringLiteral(Go(om,Xt)))),u2?Gl:0);break;case 270:yg(be.createNamespaceExportDeclaration(ec(ip.name)),0);break;case 273:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,be.createIdentifier(Vc),void 0),qy,ip.parent.assertClause),0);break}case 274:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamespaceImport(be.createIdentifier(Vc))),qy,ip.parent.parent.assertClause),0);break}case 280:yg(be.createExportDeclaration(void 0,!1,be.createNamespaceExport(be.createIdentifier(Vc)),be.createStringLiteral(Go(om,Xt))),0);break;case 276:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.parent.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamedImports([be.createImportSpecifier(!1,Vc!==uv?be.createIdentifier(uv):void 0,be.createIdentifier(Vc))])),qy,ip.parent.parent.parent.assertClause),0);break}case 281:const P0=ip.parent.parent.moduleSpecifier;rp(lf(ai.escapedName),P0?uv:l1,P0&&sp(P0)?be.createStringLiteral(P0.text):void 0);break;case 277:Ug(ai);break;case 226:case 211:case 212:ai.escapedName==="default"||ai.escapedName==="export="?Ug(ai):rp(Vc,l1);break;default:return ce.failBadSyntaxKind(ip,"Unhandled alias declaration kind in symbol serializer!")}}function rp(ai,Vc,Gl){yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,ai!==Vc?Vc:void 0,ai)]),Gl),0)}function Ug(ai){var Vc;if(ai.flags&4194304)return!1;const Gl=lf(ai.escapedName),jl=Gl==="export=",Mm=jl||Gl==="default",ud=ai.declarations&&og(ai),$f=ud&&yp(ud,!0);if($f&&Nt($f.declarations)&>($f.declarations,ip=>ns(ip)===ns(Bc))){const ip=ud&&(Ly(ud)||ys(ud)?uG(ud):gH(ud)),om=ip&&Uh(ip)?CGe(ip):void 0,uv=om&&P_(om,67108863,!0,!0,Bc);(uv||$f)&&rm(uv||$f);const l1=Xt.tracker.disableTrackSymbol;if(Xt.tracker.disableTrackSymbol=!0,Mm)Rf.push(be.createExportAssignment(void 0,jl,id($f,Xt,67108863)));else if(om===ip&&om)rp(Gl,ec(om));else if(ip&&B0(ip))rp(Gl,G2($f,mp($f)));else{const u2=LO(Gl,ai);yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(u2),nl($f,Xt,67108863,!1)),0),rp(Gl,u2)}return Xt.tracker.disableTrackSymbol=l1,!0}else{const ip=LO(Gl,ai),om=Bb(Vo(wa(ai)));if(im(om,ai))ss(om,ai,ip,Mm?0:1);else{const uv=be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(ip,void 0,Jf(Xt,om,ai,Bc,rm,bs))],((Vc=Xt.enclosingDeclaration)==null?void 0:Vc.kind)===267?1:2));yg(uv,$f&&$f.flags&4&&$f.escapedName==="export="?2:Gl===ip?1:0)}return Mm?(Rf.push(be.createExportAssignment(void 0,jl,be.createIdentifier(ip))),!0):Gl!==ip?(rp(Gl,ip),!0):!1}}function im(ai,Vc){const Gl=ns(Xt.enclosingDeclaration);return ji(ai)&48&&!Nt(T_(ai))&&!WP(ai)&&!!(Nt(gi(Vp(ai),C_))||Nt(Ti(ai,0)))&&!Nt(Ti(ai,1))&&!Ps(Vc,Bc)&&!(ai.symbol&>(ai.symbol.declarations,jl=>ns(jl)!==Gl))&&!gt(Vp(ai),jl=>s0(jl.escapedName))&&!gt(Vp(ai),jl=>gt(jl.declarations,Yl=>ns(Yl)!==Gl))&&jr(Vp(ai),jl=>rE(mp(jl),ht))}function k0(ai,Vc,Gl){return function(Yl,Mm,ud){var $f,ip,om,uv,l1;const u2=Vy(Yl),P0=!!(u2&8);if(Mm&&Yl.flags&2887656)return[];if(Yl.flags&4194304||Yl.escapedName==="constructor"||ud&&Fn(ud,Yl.escapedName)&&KI(Fn(ud,Yl.escapedName))===KI(Yl)&&(Yl.flags&16777216)===(Fn(ud,Yl.escapedName).flags&16777216)&&eN(Vo(Yl),wm(ud,Yl.escapedName)))return[];const Wg=u2&-513|(Mm?32:0),qy=Cx(Yl,Xt),ww=($f=Yl.declarations)==null?void 0:$f.find(dA(Os,Am,ff,Np,ys,sa));if(Yl.flags&98304&&Gl){const Qk=[];if(Yl.flags&65536&&Qk.push(vr(be.createSetAccessorDeclaration(be.createModifiersFromModifierFlags(Wg),qy,[be.createParameterDeclaration(void 0,void 0,"arg",void 0,P0?void 0:Jf(Xt,Vo(Yl),Yl,Bc,rm,bs))],void 0),((ip=Yl.declarations)==null?void 0:ip.find(_P))||ww)),Yl.flags&32768){const Rw=u2&8;Qk.push(vr(be.createGetAccessorDeclaration(be.createModifiersFromModifierFlags(Wg),qy,[],Rw?void 0:Jf(Xt,Vo(Yl),Yl,Bc,rm,bs),void 0),((om=Yl.declarations)==null?void 0:om.find(J2))||ww))}return Qk}else if(Yl.flags&98311)return vr(ai(be.createModifiersFromModifierFlags((KI(Yl)?64:0)|Wg),qy,Yl.flags&16777216?be.createToken(58):void 0,P0?void 0:Jf(Xt,z6(Yl),Yl,Bc,rm,bs),void 0),((uv=Yl.declarations)==null?void 0:uv.find(dA(Os,ff)))||ww);if(Yl.flags&8208){const Qk=Vo(Yl),Rw=Ti(Qk,0);if(Wg&8)return vr(ai(be.createModifiersFromModifierFlags((KI(Yl)?64:0)|Wg),qy,Yl.flags&16777216?be.createToken(58):void 0,void 0,void 0),((l1=Yl.declarations)==null?void 0:l1.find(J_))||Rw[0]&&Rw[0].declaration||Yl.declarations&&Yl.declarations[0]);const $V=[];for(const u8 of Rw){const qGe=Pt(u8,Vc,Xt,{name:qy,questionToken:Yl.flags&16777216?be.createToken(58):void 0,modifiers:Wg?be.createModifiersFromModifierFlags(Wg):void 0}),KGe=u8.declaration&&H8(u8.declaration.parent)?u8.declaration.parent:u8.declaration;$V.push(vr(qGe,KGe))}return $V}return ce.fail(`Unhandled class member kind! ${Yl.__debugFlags||Yl.flags}`)}}function YI(ai,Vc){return Ec(ai,!1,Vc)}function Yk(ai,Vc,Gl,jl){const Yl=Ti(Vc,ai);if(ai===1){if(!Gl&&jr(Yl,$f=>Nt($f.parameters)===0))return[];if(Gl){const $f=Ti(Gl,1);if(!Nt($f)&&jr(Yl,ip=>Nt(ip.parameters)===0))return[];if($f.length===Yl.length){let ip=!1;for(let om=0;om<$f.length;om++)if(!CC(Yl[om],$f[om],!1,!1,!0,Vue)){ip=!0;break}if(!ip)return[]}}let ud=0;for(const $f of Yl)$f.declaration&&(ud|=ZC($f.declaration,24));if(ud)return[vr(be.createConstructorDeclaration(be.createModifiersFromModifierFlags(ud),[],void 0),Yl[0].declaration)]}const Mm=[];for(const ud of Yl){const $f=Pt(ud,jl,Xt);Mm.push(vr($f,ud.declaration))}return Mm}function A5(ai,Vc){const Gl=[];for(const jl of T_(ai)){if(Vc){const Yl=Cd(Vc,jl.keyType);if(Yl&&eN(jl.type,Yl.type))continue}Gl.push(vt(jl,Xt,void 0))}return Gl}function GK(ai,Vc,Gl){const jl=JV(ai,111551);if(jl)return jl;const Yl=LO(`${Gl}_base`),Mm=be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Yl,void 0,C(Vc,Xt))],2));return yg(Mm,0),be.createExpressionWithTypeArguments(be.createIdentifier(Yl),void 0)}function JV(ai,Vc){let Gl,jl;if(ai.target&&Q(ai.target.symbol,Bc,Vc)?(Gl=Vn(Tm(ai),Yl=>C(Yl,Xt)),jl=id(ai.target.symbol,Xt,788968)):ai.symbol&&Q(ai.symbol,Bc,Vc)&&(jl=id(ai.symbol,Xt,788968)),jl)return be.createExpressionWithTypeArguments(jl,Gl)}function yM(ai){const Vc=JV(ai,788968);if(Vc)return Vc;if(ai.symbol)return be.createExpressionWithTypeArguments(id(ai.symbol,Xt,788968),void 0)}function LO(ai,Vc){var Gl,jl;const Yl=Vc?Bp(Vc):void 0;if(Yl&&Xt.remappedSymbolNames.has(Yl))return Xt.remappedSymbolNames.get(Yl);Vc&&(ai=P1e(Vc,ai));let Mm=0;const ud=ai;for(;(Gl=Xt.usedSymbolNames)!=null&&Gl.has(ai);)Mm++,ai=`${ud}_${Mm}`;return(jl=Xt.usedSymbolNames)==null||jl.add(ai),Yl&&Xt.remappedSymbolNames.set(Yl,ai),ai}function P1e(ai,Vc){if(Vc==="default"||Vc==="__class"||Vc==="__function"){const Gl=Xt.flags;Xt.flags|=16777216;const jl=dx(ai,Xt);Xt.flags=Gl,Vc=jl.length>0&&Dde(jl.charCodeAt(0))?HE(jl):jl}return Vc==="default"?Vc="_default":Vc==="export="&&(Vc="_exports"),Vc=rE(Vc,ht)&&!t6(Vc)?Vc:"_"+Vc.replace(/[^a-zA-Z0-9]/g,"_"),Vc}function G2(ai,Vc){const Gl=Bp(ai);return Xt.remappedSymbolNames.has(Gl)?Xt.remappedSymbolNames.get(Gl):(Vc=P1e(ai,Vc),Xt.remappedSymbolNames.set(Gl,Vc),Vc)}}}function LA(a,_,b=16384,C){return C?M(C).getText():qU(M);function M(z){const Z=be.createTypePredicateNode(a.kind===2||a.kind===3?be.createToken(131):void 0,a.kind===1||a.kind===3?be.createIdentifier(a.parameterName):be.createThisTypeNode(),a.type&&Xr.typeToTypeNode(a.type,_,hC(b)|70221824|512)),me=GW(),Se=_&&ns(_);return me.writeNode(4,Z,Se,z),z}}function OA(a){const _=[];let b=0;for(let C=0;Co_(z)?z:void 0);const M=C&&o_(C);if(C&&M){if(el(C)&&cH(C))return mp(a);if(am(M)&&!(I_(a)&4096)){const z=Mt(a).nameType;if(z&&z.flags&384){const Z=Xx(a,_);if(Z!==void 0)return Z}}return Ud(M)}if(C||(C=a.declarations[0]),C.parent&&C.parent.kind===260)return Ud(C.parent.name);switch(C.kind){case 231:case 218:case 219:return _&&!_.encounteredError&&!(_.flags&131072)&&(_.encounteredError=!0),C.kind===231?"(Anonymous class)":"(Anonymous function)"}}const b=Xx(a,_);return b!==void 0?b:mp(a)}function WS(a){if(a){const b=ge(a);return b.isVisible===void 0&&(b.isVisible=!!_()),b.isVisible}return!1;function _(){switch(a.kind){case 345:case 353:case 347:return!!(a.parent&&a.parent.parent&&a.parent.parent.parent&&tl(a.parent.parent.parent));case 208:return WS(a.parent.parent);case 260:if(ld(a.name)&&!a.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(BL(a))return!0;const b=FA(a);return!(E5(a)&1)&&!(a.kind!==271&&b.kind!==312&&b.flags&33554432)?mn(b):WS(b);case 172:case 171:case 177:case 178:case 174:case 173:if(Ab(a,24))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 WS(a.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 px(a,_){let b;a.parent&&a.parent.kind===277?b=Ro(a,a.escapedText,2998271,void 0,a,!1):a.parent.kind===281&&(b=ag(a.parent,2998271));let C,M;return b&&(M=new Set,M.add(Bp(b)),z(b.declarations)),C;function z(Z){Ot(Z,me=>{const Se=R_(me)||me;if(_?ge(me).isVisible=!0:(C=C||[],Dy(C,Se)),y1(me)){const Je=me.moduleReference,vt=NS(Je),Pt=Ro(me,vt.escapedText,901119,void 0,void 0,!1);Pt&&M&&m2(M,Bp(Pt))&&z(Pt.declarations)}})}}function j_(a,_){const b=GP(a,_);if(b>=0){const{length:C}=Ze;for(let M=b;M=It;b--){if(oO(Ze[b],st[b]))return-1;if(Ze[b]===a&&st[b]===_)return b}return-1}function oO(a,_){switch(_){case 0:return!!Mt(a).type;case 5:return!!ge(a).resolvedEnumType;case 2:return!!Mt(a).declaredType;case 1:return!!a.resolvedBaseConstructorType;case 3:return!!a.resolvedReturnType;case 4:return!!a.immediateBaseConstraint;case 6:return!!a.resolvedTypeArguments;case 7:return!!a.baseTypesResolved;case 8:return!!Mt(a).writeType;case 9:return ge(a).parameterInitializerContainsUndefined!==void 0}return ce.assertNever(_)}function dS(){return Ze.pop(),st.pop(),Ke.pop()}function FA(a){return Kr(rI(a),_=>{switch(_.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function bC(a){const _=Rm(Uf(a));return _.typeParameters?jA(_,Vn(_.typeParameters,b=>gn)):_}function wm(a,_){const b=Fn(a,_);return b?Vo(b):void 0}function db(a,_){var b;return wm(a,_)||((b=yx(a,_))==null?void 0:b.type)||co}function o1(a,_){var b;let C;return wm(a,_)||(C=(b=yx(a,_))==null?void 0:b.type)&&fm(C,!0,!0)}function Q_(a){return a&&(a.flags&1)!==0}function je(a){return a===_r||!!(a.flags&1&&a.aliasSymbol)}function Vt(a,_){if(_!==0)return mx(a,!1,_);const b=wi(a);return b&&Mt(b).type||mx(a,!1,_)}function zn(a,_,b){if(a=D0(a,Se=>!(Se.flags&98304)),a.flags&131072)return Yu;if(a.flags&1048576)return bh(a,Se=>zn(Se,_,b));let C=gl(Vn(_,q6));const M=[],z=[];for(const Se of Vp(a)){const Je=pte(Se,8576);!Mp(Je,C)&&!(Vy(Se)&24)&&Q0e(Se)?M.push(Se):z.push(Je)}if(nM(a)||HS(C)){if(z.length&&(C=gl([C,...z])),C.flags&131072)return a;const Se=zZe();return Se?Mc(Se,[a,C]):_r}const Z=Td();for(const Se of M)Z.set(Se.escapedName,DV(Se,!1));const me=jo(b,Z,Zn,Zn,T_(a));return me.objectFlags|=4194304,me}function zr(a){return!!(a.flags&465829888)&&cy(Co(a)||co,32768)}function xi(a){const _=dM(a,zr)?bh(a,b=>b.flags&465829888?DE(b):b):a;return JA(_,524288)}function xo(a,_){const b=Wc(a);return b?n8(b,_):_}function Wc(a){const _=hu(a);if(_&&LN(_)&&_.flowNode){const b=_c(a);if(b){const C=vr(DP.createStringLiteral(b),a),M=FE(_)?_:DP.createParenthesizedExpression(_),z=vr(DP.createElementAccessExpression(M,C),a);return kl(C,z),kl(z,a),M!==_&&kl(M,z),z.flowNode=_.flowNode,z}}}function hu(a){const _=a.parent.parent;switch(_.kind){case 208:case 303:return Wc(_);case 209:return Wc(a.parent);case 260:return _.initializer;case 226:return _.right}}function _c(a){const _=a.parent;return a.kind===208&&_.kind===206?Sl(a.propertyName||a.name):a.kind===303||a.kind===304?Sl(a.name):""+_.elements.indexOf(a)}function Sl(a){const _=q6(a);return _.flags&384?""+_.value:void 0}function kf(a){const _=a.dotDotDotToken?64:0,b=Vt(a.parent.parent,_);return b&&Rp(a,b)}function Rp(a,_){if(Q_(_))return _;const b=a.parent;Ye&&a.flags&33554432&&Y8(a)?_=aM(_):Ye&&b.parent.initializer&&!(bS(dK(b.parent.initializer))&65536)&&(_=JA(_,524288));let C;if(b.kind===206)if(a.dotDotDotToken){if(_=HT(_),_.flags&2||!Nte(_))return He(a,w.Rest_types_may_only_be_created_from_object_types),_r;const M=[];for(const z of b.elements)z.dotDotDotToken||M.push(z.propertyName||z.name);C=zn(_,M,a.symbol)}else{const M=a.propertyName||a.name,z=q6(M),Z=s2(_,z,32,M);C=xo(a,Z)}else{const M=cL(65|(a.dotDotDotToken?0:128),_,Ui,b),z=b.elements.indexOf(a);if(a.dotDotDotToken){const Z=bh(_,me=>me.flags&58982400?DE(me):me);C=iA(Z,_p)?bh(Z,me=>eM(me,z)):W1(M)}else if(iM(_)){const Z=bD(z),me=32|(GB(a)?16:0),Se=Wb(_,Z,me,a.name)||_r;C=xo(a,Se)}else C=M}return a.initializer?Kb(zX(a))?Ye&&!(bS(DK(a,0))&16777216)?xi(C):C:Ife(a,gl([xi(C),DK(a,0)],2)):C}function hn(a){const _=X1(a);if(_)return wl(_)}function v_(a){const _=_g(a,!0);return _.kind===106||_.kind===80&&ED(_)===In}function yh(a){const _=_g(a,!0);return _.kind===209&&_.elements.length===0}function fm(a,_=!1,b=!0){return Ye&&b?eL(a,_):a}function mx(a,_,b){if(ff(a)&&a.parent.parent.kind===249){const Z=YP(Mte(n_(a.parent.parent.expression,b)));return Z.flags&4456448?SPe(Z):xe}if(ff(a)&&a.parent.parent.kind===250){const Z=a.parent.parent;return zfe(Z)||gn}if(ld(a.parent))return kf(a);const C=Os(a)&&!_k(a)||Np(a)||IEe(a),M=_&&yG(a),z=Tu(a);if(JC(a))return z?Q_(z)||z===co?z:_r:Mn?co:gn;if(z)return fm(z,C,M);if((Wt||Rs(a))&&ff(a)&&!ld(a.name)&&!(E5(a)&1)&&!(a.flags&33554432)){if(!(x5(a)&6)&&(!a.initializer||v_(a.initializer)))return qr;if(a.initializer&&yh(a.initializer))return ii}if(Pu(a)){const Z=a.parent;if(Z.kind===178&&GS(Z)){const Je=Vm(wi(a.parent),177);if(Je){const vt=Cv(Je),Pt=VGe(Z);return Pt&&a===Pt?(ce.assert(!Pt.type),Vo(vt.thisParameter)):j(vt)}}const me=GA(Z,a);if(me)return me;const Se=a.symbol.escapedName==="this"?ptt(Z):Dw(a);if(Se)return fm(Se,!1,M)}if(p7(a)&&a.initializer){if(Rs(a)&&!Pu(a)){const me=Bd(a,wi(a),k9(a));if(me)return me}const Z=Ife(a,DK(a,b));return fm(Z,C,M)}if(Os(a)&&(Wt||Rs(a)))if(Ny(a)){const Z=gi(a.parent.members,nu),me=Z.length?tp(a.symbol,Z):tS(a)&2?zPe(a.symbol):void 0;return me&&fm(me,!0,M)}else{const Z=n2(a.parent),me=Z?gx(a.symbol,Z):tS(a)&2?zPe(a.symbol):void 0;return me&&fm(me,!0,M)}if(Pb(a))return Ji;if(ld(a.name))return Ae(a.name,!1,!0)}function BS(a){if(a.valueDeclaration&&ys(a.valueDeclaration)){const _=Mt(a);return _.isConstructorDeclaredProperty===void 0&&(_.isConstructorDeclaredProperty=!1,_.isConstructorDeclaredProperty=!!pS(a)&&jr(a.declarations,b=>ys(b)&&yNe(b)&&(b.left.kind!==212||Qv(b.left.argumentExpression))&&!Bm(void 0,b,a,b))),_.isConstructorDeclaredProperty}return!1}function N2(a){const _=a.valueDeclaration;return _&&Os(_)&&!Kb(_)&&!_.initializer&&(Wt||Rs(_))}function pS(a){if(a.declarations)for(const _ of a.declarations){const b=Q1(_,!1,!1);if(b&&(b.kind===176||JI(b)))return b}}function jP(a){const _=ns(a.declarations[0]),b=lf(a.escapedName),C=a.declarations.every(z=>Rs(z)&&Kf(z)&&KC(z.expression)),M=C?be.createPropertyAccessExpression(be.createPropertyAccessExpression(be.createIdentifier("module"),be.createIdentifier("exports")),b):be.createPropertyAccessExpression(be.createIdentifier("exports"),b);return C&&kl(M.expression.expression,M.expression),kl(M.expression,M),kl(M,_),M.flowNode=_.endFlowNode,n8(M,qr,Ui)}function tp(a,_){const b=xf(a.escapedName,"__#")?be.createPrivateIdentifier(a.escapedName.split("@")[1]):lf(a.escapedName);for(const C of _){const M=be.createPropertyAccessExpression(be.createThis(),b);kl(M.expression,M),kl(M,C),M.flowNode=C.returnFlowNode;const z=VP(M,a);if(Wt&&(z===qr||z===ii)&&He(a.valueDeclaration,w.Member_0_implicitly_has_an_1_type,Cl(a),oa(z)),!iA(z,wNe))return Bfe(z)}}function gx(a,_){const b=xf(a.escapedName,"__#")?be.createPrivateIdentifier(a.escapedName.split("@")[1]):lf(a.escapedName),C=be.createPropertyAccessExpression(be.createThis(),b);kl(C.expression,C),kl(C,_),C.flowNode=_.returnFlowNode;const M=VP(C,a);return Wt&&(M===qr||M===ii)&&He(a.valueDeclaration,w.Member_0_implicitly_has_an_1_type,Cl(a),oa(M)),iA(M,wNe)?void 0:Bfe(M)}function VP(a,_){const b=(_==null?void 0:_.valueDeclaration)&&(!N2(_)||tS(_.valueDeclaration)&2)&&zPe(_)||Ui;return n8(a,qr,b)}function UP(a,_){const b=x7(a.valueDeclaration);if(b){const me=Rs(b)?w8(b):void 0;return me&&me.typeExpression?wl(me.typeExpression):a.valueDeclaration&&Bd(a.valueDeclaration,a,b)||TO(Iv(b))}let C,M=!1,z=!1;if(BS(a)&&(C=gx(a,pS(a))),!C){let me;if(a.declarations){let Se;for(const Je of a.declarations){const vt=ys(Je)||el(Je)?Je:Kf(Je)?ys(Je.parent)?Je.parent:Je:void 0;if(!vt)continue;const Pt=Kf(vt)?N9(vt):Qy(vt);(Pt===4||ys(vt)&&yNe(vt,Pt))&&(A0(vt)?M=!0:z=!0),el(vt)||(Se=Bm(Se,vt,a,Je)),Se||(me||(me=[])).push(ys(vt)||el(vt)?Hv(a,_,vt,Pt):vs)}C=Se}if(!C){if(!Nt(me))return _r;let Se=M&&a.declarations?w2(me,a.declarations):void 0;if(z){const vt=zPe(a);vt&&((Se||(Se=[])).push(vt),M=!0)}const Je=gt(Se,vt=>!!(vt.flags&-98305))?Se:me;C=gl(Je)}}const Z=Bb(fm(C,!1,z&&!M));return a.valueDeclaration&&Rs(a.valueDeclaration)&&D0(Z,me=>!!(me.flags&-98305))===vs?(sM(a.valueDeclaration,gn),gn):Z}function Bd(a,_,b){var C,M;if(!Rs(a)||!b||!Wd(b)||b.properties.length)return;const z=Td();for(;ys(a)||sa(a);){const Se=Vl(a);(C=Se==null?void 0:Se.exports)!=null&&C.size&&Ce(z,Se.exports),a=ys(a)?a.parent:a.parent.parent}const Z=Vl(a);(M=Z==null?void 0:Z.exports)!=null&&M.size&&Ce(z,Z.exports);const me=jo(_,z,Zn,Zn,Zn);return me.objectFlags|=4096,me}function Bm(a,_,b,C){var M;const z=Kb(_.parent);if(z){const Z=Bb(wl(z));if(a)!je(a)&&!je(Z)&&!eN(a,Z)&&Unt(void 0,a,C,Z);else return Z}if((M=b.parent)!=null&&M.valueDeclaration){const Z=Kb(b.parent.valueDeclaration);if(Z){const me=Fn(wl(Z),b.escapedName);if(me)return WA(me)}}return a}function Hv(a,_,b,C){if(el(b)){if(_)return Vo(_);const Z=Iv(b.arguments[2]),me=wm(Z,"value");if(me)return me;const Se=wm(Z,"get");if(Se){const vt=NO(Se);if(vt)return j(vt)}const Je=wm(Z,"set");if(Je){const vt=NO(Je);if(vt)return Jk(vt)}return gn}if(TE(b.left,b.right))return gn;const M=C===1&&(sa(b.left)||Ed(b.left))&&(KC(b.left.expression)||An(b.left.expression)&&jL(b.left.expression)),z=_?Vo(_):M?B1(Iv(b.right)):TO(Iv(b.right));if(z.flags&524288&&C===2&&a.escapedName==="export="){const Z=K0(z),me=Td();tY(Z.members,me);const Se=me.size;_&&!_.exports&&(_.exports=Td()),(_||a).exports.forEach((vt,Pt)=>{var dn;const yn=me.get(Pt);if(yn&&yn!==vt&&!(vt.flags&2097152))if(vt.flags&111551&&yn.flags&111551){if(vt.valueDeclaration&&yn.valueDeclaration&&ns(vt.valueDeclaration)!==ns(yn.valueDeclaration)){const bi=lf(vt.escapedName),Wo=((dn=to(yn.valueDeclaration,Xv))==null?void 0:dn.name)||yn.valueDeclaration;ml(He(vt.valueDeclaration,w.Duplicate_identifier_0,bi),kc(Wo,w._0_was_also_declared_here,bi)),ml(He(Wo,w.Duplicate_identifier_0,bi),kc(vt.valueDeclaration,w._0_was_also_declared_here,bi))}const hr=Ge(vt.flags|yn.flags,Pt);hr.links.type=gl([Vo(vt),Vo(yn)]),hr.valueDeclaration=yn.valueDeclaration,hr.declarations=Hi(yn.declarations,vt.declarations),me.set(Pt,hr)}else me.set(Pt,go(vt,yn));else me.set(Pt,vt)});const Je=jo(Se!==me.size?void 0:Z.symbol,me,Z.callSignatures,Z.constructSignatures,Z.indexInfos);if(Se===me.size&&(z.aliasSymbol&&(Je.aliasSymbol=z.aliasSymbol,Je.aliasTypeArguments=z.aliasTypeArguments),ji(z)&4)){Je.aliasSymbol=z.symbol;const vt=Tm(z);Je.aliasTypeArguments=Nt(vt)?vt:void 0}return Je.objectFlags|=ji(z)&4096,Je.symbol&&Je.symbol.flags&32&&z===Uy(Je.symbol)&&(Je.objectFlags|=16777216),Je}return PV(z)?(sM(b,ir),ir):z}function TE(a,_){return sa(a)&&a.expression.kind===110&&k3(_,b=>Xh(a,b))}function A0(a){const _=Q1(a,!1,!1);return _.kind===176||_.kind===262||_.kind===218&&!H8(_.parent)}function w2(a,_){return ce.assert(a.length===_.length),a.filter((b,C)=>{const M=_[C],z=ys(M)?M:ys(M.parent)?M.parent:void 0;return z&&A0(z)})}function R2(a,_,b){if(a.initializer){const C=ld(a.name)?Ae(a.name,!0,!1):co;return fm(Ife(a,DK(a,0,C)))}return ld(a.name)?Ae(a.name,_,b):(b&&!gs(a)&&sM(a,gn),_?oi:gn)}function U(a,_,b){const C=Td();let M,z=131200;Ot(a.elements,me=>{const Se=me.propertyName||me.name;if(me.dotDotDotToken){M=yD(xe,gn,!1);return}const Je=q6(Se);if(!yv(Je)){z|=512;return}const vt=vv(Je),Pt=4|(me.initializer?16777216:0),dn=Ge(Pt,vt);dn.links.type=R2(me,_,b),dn.links.bindingElement=me,C.set(dn.escapedName,dn)});const Z=jo(void 0,C,Zn,Zn,M?[M]:Zn);return Z.objectFlags|=z,_&&(Z.pattern=a,Z.objectFlags|=131072),Z}function le(a,_,b){const C=a.elements,M=Yf(C),z=M&&M.kind===208&&M.dotDotDotToken?M:void 0;if(C.length===0||C.length===1&&z)return ht>=2?xWe(gn):ir;const Z=Vn(C,vt=>t0(vt)?gn:R2(vt,_,b)),me=Ms(C,vt=>!(vt===z||t0(vt)||GB(vt)),C.length-1)+1,Se=Vn(C,(vt,Pt)=>vt===z?4:Pt>=me?2:1);let Je=$v(Z,Se);return _&&(Je=yO(Je),Je.pattern=a,Je.objectFlags|=131072),Je}function Ae(a,_=!1,b=!1){return a.kind===206?U(a,_,b):le(a,_,b)}function rt(a,_){return Ci(mx(a,!0,0),a,_)}function Dn(a){const _=Vl(a),b=vWe(!1);return b&&_&&_===b}function Ci(a,_,b){return a?(a.flags&4096&&Dn(_.parent)&&(a=PB(_)),b&&UPe(_,a),a.flags&8192&&(ym(_)||!_.type)&&a.symbol!==wi(_)&&(a=Qa),Bb(a)):(a=Pu(_)&&_.dotDotDotToken?ir:gn,b&&(gs(_)||sM(_,a)),a)}function gs(a){const _=rI(a),b=_.kind===169?_.parent:_;return Xte(b)}function Tu(a){const _=Kb(a);if(_)return wl(_)}function tg(a){let _=a.valueDeclaration;return _?(ym(_)&&(_=zX(_)),Pu(_)?RPe(_.parent):!1):!1}function mS(a){const _=Mt(a);if(!_.type){const b=gg(a);return!_.type&&!tg(a)&&(_.type=b),b}return _.type}function gg(a){if(a.flags&4194304)return bC(a);if(a===ei)return gn;if(a.flags&134217728&&a.valueDeclaration){const C=wi(ns(a.valueDeclaration)),M=Ge(C.flags,"exports");M.declarations=C.declarations?C.declarations.slice():[],M.parent=a,M.links.target=C,C.valueDeclaration&&(M.valueDeclaration=C.valueDeclaration),C.members&&(M.members=new Map(C.members)),C.exports&&(M.exports=new Map(C.exports));const z=Td();return z.set("exports",M),jo(a,z,Zn,Zn,Zn)}ce.assertIsDefined(a.valueDeclaration);const _=a.valueDeclaration;if(tl(_)&&Py(_))return _.statements.length?Bb(TO(n_(_.statements[0].expression))):Yu;if(Am(_))return M2(a);if(!j_(a,0))return a.flags&512&&!(a.flags&67108864)?JR(a):cw(a);let b;if(_.kind===277)b=Ci(Tu(_)||Iv(_.expression),_);else if(ys(_)||Rs(_)&&(el(_)||(sa(_)||_Y(_))&&ys(_.parent)))b=UP(a);else if(sa(_)||Ed(_)||An(_)||sp(_)||nS(_)||Kc(_)||b0(_)||em(_)&&!q2(_)||Jh(_)||tl(_)){if(a.flags&9136)return JR(a);b=ys(_.parent)?UP(a):Tu(_)||gn}else if(Fm(_))b=Tu(_)||kfe(_);else if(Pb(_))b=Tu(_)||p5(_);else if(BT(_))b=Tu(_)||$te(_.name,0);else if(q2(_))b=Tu(_)||Pfe(_,0);else if(Pu(_)||Os(_)||Np(_)||ff(_)||ym(_)||BM(_))b=rt(_,!0);else if(Ih(_))b=JR(a);else if(Qb(_))b=HP(a);else return ce.fail("Unhandled declaration kind! "+ce.formatSyntaxKind(_.kind)+" for "+ce.formatSymbol(a));return dS()?b:a.flags&512&&!(a.flags&67108864)?JR(a):cw(a)}function Nh(a){if(a)switch(a.kind){case 177:return bA(a);case 178:return mSe(a);case 172:return ce.assert(_k(a)),Kb(a)}}function r2(a){const _=Nh(a);return _&&wl(_)}function II(a){const _=VGe(a);return _&&_.symbol}function Mk(a){return xC(Cv(a))}function M2(a){const _=Mt(a);if(!_.type){if(!j_(a,0))return _r;const b=Vm(a,177),C=Vm(a,178),M=to(Vm(a,172),rb);let z=b&&Rs(b)&&hn(b)||r2(b)||r2(C)||r2(M)||b&&b.body&&ewe(b)||M&&M.initializer&&rt(M,!0);z||(C&&!Xte(C)?dr(Wt,C,w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Cl(a)):b&&!Xte(b)?dr(Wt,b,w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Cl(a)):M&&!Xte(M)&&dr(Wt,M,w.Member_0_implicitly_has_an_1_type,Cl(a),"any"),z=gn),dS()||(Nh(b)?He(b,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)):Nh(C)||Nh(M)?He(C,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)):b&&Wt&&He(b,w._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,Cl(a)),z=gn),_.type=z}return _.type}function HR(a){const _=Mt(a);if(!_.writeType){if(!j_(a,8))return _r;const b=Vm(a,178)??to(Vm(a,172),rb);let C=r2(b);dS()||(Nh(b)&&He(b,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)),C=gn),_.writeType=C||M2(a)}return _.writeType}function kI(a){const _=Nl(Uy(a));return _.flags&8650752?_:_.flags&2097152?lr(_.types,b=>!!(b.flags&8650752)):void 0}function JR(a){let _=Mt(a);const b=_;if(!_.type){const C=a.valueDeclaration&&gfe(a.valueDeclaration,!1);if(C){const M=$be(a,C);M&&(a=M,_=M.links)}b.type=_.type=PI(a)}return _.type}function PI(a){const _=a.valueDeclaration;if(a.flags&1536&&VM(a))return gn;if(_&&(_.kind===226||Kf(_)&&_.parent.kind===226))return UP(a);if(a.flags&512&&_&&tl(_)&&_.commonJsModuleIndicator){const C=$0(a);if(C!==a){if(!j_(a,0))return _r;const M=wa(a.exports.get("export=")),z=UP(M,M===C?void 0:C);return dS()?z:cw(a)}}const b=Uv(16,a);if(a.flags&32){const C=kI(a);return C?Dd([b,C]):b}else return Ye&&a.flags&16777216?eL(b,!0):b}function HP(a){const _=Mt(a);return _.type||(_.type=sO(a))}function mD(a){const _=Mt(a);if(!_.type){const b=Xp(a),C=a.declarations&&yp(og(a),!0),M=Yr(C==null?void 0:C.declarations,z=>Ly(z)?Tu(z):void 0);_.type=C!=null&&C.declarations&&Bwe(C.declarations)&&a.declarations.length?jP(C):Bwe(a.declarations)?qr:M||(sg(b)&111551?Vo(b):_r)}return _.type}function NI(a){const _=Mt(a);return _.type||(_.type=Nf(Vo(_.target),_.mapper))}function sw(a){const _=Mt(a);return _.writeType||(_.writeType=Nf(z6(_.target),_.mapper))}function cw(a){const _=a.valueDeclaration;return Kb(_)?(He(a.valueDeclaration,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)),_r):(Wt&&(_.kind!==169||_.initializer)&&He(a.valueDeclaration,w._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Cl(a)),gn)}function aO(a){const _=Mt(a);return _.type||(ce.assertIsDefined(_.deferralParent),ce.assertIsDefined(_.deferralConstituents),_.type=_.deferralParent.flags&1048576?gl(_.deferralConstituents):Dd(_.deferralConstituents)),_.type}function yB(a){const _=Mt(a);return!_.writeType&&_.deferralWriteConstituents&&(ce.assertIsDefined(_.deferralParent),ce.assertIsDefined(_.deferralConstituents),_.writeType=_.deferralParent.flags&1048576?gl(_.deferralWriteConstituents):Dd(_.deferralWriteConstituents)),_.writeType}function z6(a){const _=I_(a);return a.flags&4?_&2?_&65536?yB(a)||aO(a):a.links.writeType||a.links.type:Vo(a):a.flags&98304?_&1?sw(a):HR(a):Vo(a)}function Vo(a){const _=I_(a);return _&65536?aO(a):_&1?NI(a):_&262144?TC(a):_&8192?wgt(a):a.flags&7?mS(a):a.flags&9136?JR(a):a.flags&8?HP(a):a.flags&98304?M2(a):a.flags&2097152?mD(a):_r}function WA(a){return l5(Vo(a),!!(a.flags&16777216))}function gD(a,_){return a!==void 0&&_!==void 0&&(ji(a)&4)!==0&&a.target===_}function UT(a){return ji(a)&4?a.target:a}function wI(a,_){return b(a);function b(C){if(ji(C)&7){const M=UT(C);return M===_||gt(Gp(M),b)}else if(C.flags&2097152)return gt(C.types,b);return!1}}function P4(a,_){for(const b of _)a=ST(a,Ok(wi(b)));return a}function N4(a,_){for(;;){if(a=a.parent,a&&ys(a)){const b=Qy(a);if(b===6||b===3){const C=wi(a.left);C&&C.parent&&!Kr(C.parent.valueDeclaration,M=>a===M)&&(a=C.parent.valueDeclaration)}}if(!a)return;switch(a.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=N4(a,_);if(a.kind===200)return ur(C,Ok(wi(a.typeParameter)));if(a.kind===194)return Hi(C,aet(a));const M=P4(C,oR(a)),z=_&&(a.kind===263||a.kind===231||a.kind===264||JI(a))&&Uy(wi(a)).thisType;return z?ur(M,z):M}case 348:const b=mY(a);b&&(a=b.valueDeclaration);break;case 327:{const C=N4(a,_);return a.tags?P4(C,ea(a.tags,M=>jx(M)?M.typeParameters:void 0)):C}}}}function G6(a){var _;const b=a.flags&32||a.flags&16?a.valueDeclaration:(_=a.declarations)==null?void 0:_.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const M=C.initializer;return!!M&&(M.kind===218||M.kind===219)});return ce.assert(!!b,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),N4(b)}function rs(a){if(!a.declarations)return;let _;for(const b of a.declarations)(b.kind===264||b.kind===263||b.kind===231||JI(b)||fH(b))&&(_=P4(_,oR(b)));return _}function Ob(a){return Hi(G6(a),rs(a))}function gf(a){const _=Ti(a,1);if(_.length===1){const b=_[0];if(!b.typeParameters&&b.parameters.length===1&&oT(b)){const C=Ybe(b.parameters[0]);return Q_(C)||iBe(C)===gn}}return!1}function ko(a){if(Ti(a,1).length>0)return!0;if(a.flags&8650752){const _=Co(a);return!!_&&gf(_)}return!1}function ac(a){const _=RS(a.symbol);return _&&hA(_)}function Ys(a,_,b){const C=Nt(_),M=Rs(b);return gi(Ti(a,1),z=>(M||C>=EC(z.typeParameters))&&C<=Nt(z.typeParameters))}function Ni(a,_,b){const C=Ys(a,_,b),M=Vn(_,wl);return Ol(C,z=>gt(z.typeParameters)?Vi(z,M,Rs(b)):z)}function Nl(a){if(!a.resolvedBaseConstructorType){const _=RS(a.symbol),b=_&&hA(_),C=ac(a);if(!C)return a.resolvedBaseConstructorType=Ui;if(!j_(a,1))return _r;const M=n_(C.expression);if(b&&C!==b&&(ce.assert(!b.typeArguments),n_(b.expression)),M.flags&2621440&&K0(M),!dS())return He(a.symbol.valueDeclaration,w._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Cl(a.symbol)),a.resolvedBaseConstructorType=_r;if(!(M.flags&1)&&M!==Zt&&!ko(M)){const z=He(C.expression,w.Type_0_is_not_a_constructor_function_type,oa(M));if(M.flags&262144){const Z=SV(M);let me=co;if(Z){const Se=Ti(Z,1);Se[0]&&(me=j(Se[0]))}M.symbol.declarations&&ml(z,kc(M.symbol.declarations[0],w.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Cl(M.symbol),oa(me)))}return a.resolvedBaseConstructorType=_r}a.resolvedBaseConstructorType=M}return a.resolvedBaseConstructorType}function Xd(a){let _=Zn;if(a.symbol.declarations)for(const b of a.symbol.declarations){const C=qb(b);if(C)for(const M of C){const z=wl(M);je(z)||(_===Zn?_=[z]:_.push(z))}}return _}function b_(a,_){He(a,w.Type_0_recursively_references_itself_as_a_base_type,oa(_,void 0,2))}function Gp(a){if(!a.baseTypesResolved){if(j_(a,7)&&(a.objectFlags&8?a.resolvedBaseTypes=[w1(a)]:a.symbol.flags&96?(a.symbol.flags&32&&zS(a),a.symbol.flags&64&&JP(a)):ce.fail("type must be class or interface"),!dS()&&a.symbol.declarations))for(const _ of a.symbol.declarations)(_.kind===263||_.kind===264)&&b_(_,a);a.baseTypesResolved=!0}return a.resolvedBaseTypes}function w1(a){const _=Ol(a.typeParameters,(b,C)=>a.elementFlags[C]&8?s2(b,an):b);return W1(gl(_||Zn),a.readonly)}function zS(a){a.resolvedBaseTypes=eJ;const _=O1(Nl(a));if(!(_.flags&2621441))return a.resolvedBaseTypes=Zn;const b=ac(a);let C;const M=_.symbol?Rm(_.symbol):void 0;if(_.symbol&&_.symbol.flags&32&&SE(M))C=cl(b,_.symbol);else if(_.flags&1)C=_;else{const Z=Ni(_,b.typeArguments,b);if(!Z.length)return He(b.expression,w.No_base_constructor_has_the_specified_number_of_type_arguments),a.resolvedBaseTypes=Zn;C=j(Z[0])}if(je(C))return a.resolvedBaseTypes=Zn;const z=HT(C);if(!R1(z)){const Z=bn(void 0,C),me=Es(Z,w.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,oa(z));return no.add(RN(ns(b.expression),b.expression,me)),a.resolvedBaseTypes=Zn}return a===z||wI(z,a)?(He(a.symbol.valueDeclaration,w.Type_0_recursively_references_itself_as_a_base_type,oa(a,void 0,2)),a.resolvedBaseTypes=Zn):(a.resolvedBaseTypes===eJ&&(a.members=void 0),a.resolvedBaseTypes=[z])}function SE(a){const _=a.outerTypeParameters;if(_){const b=_.length-1,C=Tm(a);return _[b].symbol!==C[b].symbol}return!0}function R1(a){if(a.flags&262144){const _=Co(a);if(_)return R1(_)}return!!(a.flags&67633153&&!Ty(a)||a.flags&2097152&&jr(a.types,R1))}function JP(a){if(a.resolvedBaseTypes=a.resolvedBaseTypes||Zn,a.symbol.declarations){for(const _ of a.symbol.declarations)if(_.kind===264&&F9(_))for(const b of F9(_)){const C=HT(wl(b));je(C)||(R1(C)?a!==C&&!wI(C,a)?a.resolvedBaseTypes===Zn?a.resolvedBaseTypes=[C]:a.resolvedBaseTypes.push(C):b_(_,a):He(b,w.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function RI(a){if(!a.declarations)return!0;for(const _ of a.declarations)if(_.kind===264){if(_.flags&256)return!1;const b=F9(_);if(b){for(const C of b)if(Uh(C.expression)){const M=P_(C.expression,788968,!0);if(!M||!(M.flags&64)||Uy(M).thisType)return!1}}}return!0}function Uy(a){let _=Mt(a);const b=_;if(!_.declaredType){const C=a.flags&32?1:2,M=$be(a,a.valueDeclaration&&Lht(a.valueDeclaration));M&&(a=M,_=M.links);const z=b.declaredType=_.declaredType=Uv(C,a),Z=G6(a),me=rs(a);(Z||me||C===1||!RI(a))&&(z.objectFlags|=4,z.typeParameters=Hi(Z,me),z.outerTypeParameters=Z,z.localTypeParameters=me,z.instantiations=new Map,z.instantiations.set(La(z.typeParameters),z),z.target=z,z.resolvedTypeArguments=z.typeParameters,z.thisType=Lb(a),z.thisType.isThisType=!0,z.thisType.constraint=z)}return _.declaredType}function Lk(a){var _;const b=Mt(a);if(!b.declaredType){if(!j_(a,2))return _r;const C=ce.checkDefined((_=a.declarations)==null?void 0:_.find(fH),"Type alias symbol with no valid declaration found"),M=T2(C)?C.typeExpression:C.type;let z=M?wl(M):_r;if(dS()){const Z=rs(a);Z&&(b.typeParameters=Z,b.instantiations=new Map,b.instantiations.set(La(Z),z))}else z=_r,C.kind===347?He(C.typeExpression.type,w.Type_alias_0_circularly_references_itself,Cl(a)):He(Xv(C)&&C.name||C,w.Type_alias_0_circularly_references_itself,Cl(a));b.declaredType=z}return b.declaredType}function w4(a){return a.flags&1056&&a.symbol.flags&8?Rm(Uf(a.symbol)):a}function lw(a){const _=Mt(a);if(!_.declaredType){const b=[];if(a.declarations){for(const M of a.declarations)if(M.kind===266){for(const z of M.members)if(GS(z)){const Z=wi(z),me=ZB(z),Se=ZP(me!==void 0?ch(me,Bp(a),Z):j6(Z));Mt(Z).declaredType=Se,b.push(B1(Se))}}}const C=b.length?gl(b,1,a,void 0):j6(a);C.flags&1048576&&(C.flags|=1024,C.symbol=a),_.declaredType=C}return _.declaredType}function j6(a){const _=su(32,a),b=su(32,a);return _.regularType=_,_.freshType=b,b.regularType=_,b.freshType=b,_}function sO(a){const _=Mt(a);if(!_.declaredType){const b=lw(Uf(a));_.declaredType||(_.declaredType=b)}return _.declaredType}function Ok(a){const _=Mt(a);return _.declaredType||(_.declaredType=Lb(a))}function vB(a){const _=Mt(a);return _.declaredType||(_.declaredType=Rm(Xp(a)))}function Rm(a){return Yx(a)||_r}function Yx(a){if(a.flags&96)return Uy(a);if(a.flags&524288)return Lk(a);if(a.flags&262144)return Ok(a);if(a.flags&384)return lw(a);if(a.flags&8)return sO(a);if(a.flags&2097152)return vB(a)}function uw(a){switch(a.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 uw(a.elementType);case 183:return!a.typeArguments||a.typeArguments.every(uw)}return!1}function Av(a){const _=AN(a);return!_||uw(_)}function C0(a){const _=Kb(a);return _?uw(_):!NN(a)}function gV(a){const _=bA(a),b=oR(a);return(a.kind===176||!!_&&uw(_))&&a.parameters.every(C0)&&b.every(Av)}function pT(a){if(a.declarations&&a.declarations.length===1){const _=a.declarations[0];if(_)switch(_.kind){case 172:case 171:return C0(_);case 174:case 173:case 176:case 177:case 178:return gV(_)}}return!1}function EE(a,_,b){const C=Td();for(const M of a)C.set(M.escapedName,b&&pT(M)?M:kPe(M,_));return C}function cO(a,_){for(const b of _){if(Qx(b))continue;const C=a.get(b.escapedName);(!C||C.valueDeclaration&&ys(C.valueDeclaration)&&!BS(C)&&!v7(C.valueDeclaration))&&(a.set(b.escapedName,b),a.set(b.escapedName,b))}}function Qx(a){return!!a.valueDeclaration&&Mf(a.valueDeclaration)&&e_(a.valueDeclaration)}function V6(a){if(!a.declaredProperties){const _=a.symbol,b=BA(_);a.declaredProperties=$n(b),a.declaredCallSignatures=Zn,a.declaredConstructSignatures=Zn,a.declaredIndexInfos=Zn,a.declaredCallSignatures=vh(b.get("__call")),a.declaredConstructSignatures=vh(b.get("__new")),a.declaredIndexInfos=Due(_)}return a}function fw(a){if(!am(a)&&!Ed(a))return!1;const _=am(a)?a.expression:a.argumentExpression;return Uh(_)&&yv(am(a)?Pw(a):Iv(_))}function s0(a){return a.charCodeAt(0)===95&&a.charCodeAt(1)===95&&a.charCodeAt(2)===64}function U6(a){const _=o_(a);return!!_&&fw(_)}function GS(a){return!nI(a)||U6(a)}function R4(a){return wde(a)&&!fw(a)}function Kq(a,_,b){ce.assert(!!(I_(a)&4096),"Expected a late-bound symbol."),a.flags|=b,Mt(_.symbol).lateSymbol=a,a.declarations?_.symbol.isReplaceableByMethod||a.declarations.push(_):a.declarations=[_],b&111551&&(!a.valueDeclaration||a.valueDeclaration.kind!==_.kind)&&(a.valueDeclaration=_)}function Qg(a,_,b,C){ce.assert(!!C.symbol,"The member is expected to have a symbol.");const M=ge(C);if(!M.resolvedSymbol){M.resolvedSymbol=C.symbol;const z=ys(C)?C.left:C.name,Z=Ed(z)?Iv(z.argumentExpression):Pw(z);if(yv(Z)){const me=vv(Z),Se=C.symbol.flags;let Je=b.get(me);Je||b.set(me,Je=Ge(0,me,4096));const vt=_&&_.get(me);if(Je.flags&Ln(Se)||vt){const Pt=vt?Hi(vt.declarations,Je.declarations):Je.declarations,dn=!(Z.flags&8192)&&lf(me)||Ud(z);Ot(Pt,yn=>He(o_(yn)||yn,w.Property_0_was_also_declared_here,dn)),He(z||C,w.Duplicate_property_0,dn),Je=Ge(0,me,4096)}return Je.links.nameType=Z,Kq(Je,C,Se),Je.parent?ce.assert(Je.parent===a,"Existing symbol parent should match new one"):Je.parent=a,M.resolvedSymbol=Je}}return M.resolvedSymbol}function bB(a,_){var b,C,M;const z=Mt(a);if(!z[_]){const Z=_==="resolvedExports",me=Z?a.flags&1536?Ja(a).exports:a.exports:a.members;z[_]=me||Ve;const Se=Td();for(const vt of a.declarations||Zn){const Pt=Tde(vt);if(Pt)for(const dn of Pt)Z===Ny(dn)&&U6(dn)&&Qg(a,me,Se,dn)}const Je=(((b=a.valueDeclaration)==null?void 0:b.kind)===219||((C=a.valueDeclaration)==null?void 0:C.kind)===218)&&((M=Vl(a.valueDeclaration.parent))==null?void 0:M.assignmentDeclarationMembers)||a.assignmentDeclarationMembers;if(Je){const vt=oc(Je.values());for(const Pt of vt){const dn=Qy(Pt),yn=dn===3||ys(Pt)&&yNe(Pt,dn)||dn===9||dn===6;Z===!yn&&U6(Pt)&&Qg(a,me,Se,Pt)}}z[_]=ze(me,Se)||Ve}return z[_]}function BA(a){return a.flags&6256?bB(a,"resolvedMembers"):a.members||Ve}function $R(a){if(a.flags&106500&&a.escapedName==="__computed"){const _=Mt(a);if(!_.lateSymbol&>(a.declarations,U6)){const b=wa(a.parent);gt(a.declarations,Ny)?Gt(b):BA(b)}return _.lateSymbol||(_.lateSymbol=a)}return a}function M1(a,_,b){if(ji(a)&4){const C=a.target,M=Tm(a);return Nt(C.typeParameters)===Nt(M)?jA(C,Hi(M,[_||C.thisType])):a}else if(a.flags&2097152){const C=Ol(a.types,M=>M1(M,_,b));return C!==a.types?Dd(C):a}return b?O1(a):a}function gS(a,_,b,C){let M,z,Z,me,Se;yz(b,C,0,b.length)?(z=_.symbol?BA(_.symbol):Td(_.declaredProperties),Z=_.declaredCallSignatures,me=_.declaredConstructSignatures,Se=_.declaredIndexInfos):(M=IE(b,C),z=EE(_.declaredProperties,M,b.length===1),Z=Wue(_.declaredCallSignatures,M),me=Wue(_.declaredConstructSignatures,M),Se=LWe(_.declaredIndexInfos,M));const Je=Gp(_);if(Je.length){_.symbol&&z===BA(_.symbol)&&(z=Td(_.declaredProperties)),yo(a,z,Z,me,Se);const vt=Yf(C);for(const Pt of Je){const dn=vt?M1(Nf(Pt,M),vt):Pt;cO(z,Vp(dn)),Z=Hi(Z,Ti(dn,0)),me=Hi(me,Ti(dn,1));const yn=dn!==gn?T_(dn):[yD(xe,gn,!1)];Se=Hi(Se,gi(yn,hr=>!cu(Se,hr.keyType)))}}yo(a,z,Z,me,Se)}function _w(a){gS(a,V6(a),Zn,Zn)}function qR(a){const _=V6(a.target),b=Hi(_.typeParameters,[_.thisType]),C=Tm(a),M=C.length===b.length?C:Hi(C,[a]);gS(a,_,b,M)}function i2(a,_,b,C,M,z,Z,me){const Se=new W(ro,me);return Se.declaration=a,Se.typeParameters=_,Se.parameters=C,Se.thisParameter=b,Se.resolvedReturnType=M,Se.resolvedTypePredicate=z,Se.minArgumentCount=Z,Se.resolvedMinArgumentCount=void 0,Se.target=void 0,Se.mapper=void 0,Se.compositeSignatures=void 0,Se.compositeKind=void 0,Se}function hS(a){const _=i2(a.declaration,a.typeParameters,a.thisParameter,a.parameters,void 0,void 0,a.minArgumentCount,a.flags&167);return _.target=a.target,_.mapper=a.mapper,_.compositeSignatures=a.compositeSignatures,_.compositeKind=a.compositeKind,_}function TB(a,_){const b=hS(a);return b.compositeSignatures=_,b.compositeKind=1048576,b.target=void 0,b.mapper=void 0,b}function M4(a,_){if((a.flags&24)===_)return a;a.optionalCallSignatureCache||(a.optionalCallSignatureCache={});const b=_===8?"inner":"outer";return a.optionalCallSignatureCache[b]||(a.optionalCallSignatureCache[b]=Zx(a,_))}function Zx(a,_){ce.assert(_===8||_===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const b=hS(a);return b.flags|=_,b}function lO(a,_){if(oT(a)){const M=a.parameters.length-1,z=a.parameters[M].escapedName,Z=Vo(a.parameters[M]);if(_p(Z))return[b(Z,M,z)];if(!_&&Z.flags&1048576&&jr(Z.types,_p))return Vn(Z.types,me=>b(me,M,z))}return[a.parameters];function b(M,z,Z){const me=Tm(M),Se=C(M,Z),Je=Vn(me,(vt,Pt)=>{const dn=Se&&Se[Pt]?Se[Pt]:Ute(a,z+Pt,M),yn=M.target.elementFlags[Pt],hr=yn&12?32768:yn&2?16384:0,bi=Ge(1,dn,hr);return bi.links.type=yn&4?W1(vt):vt,bi});return Hi(a.parameters.slice(0,z),Je)}function C(M,z){const Z=new Map;return Vn(M.target.labeledElementDeclarations,(me,Se)=>{const Je=xze(me,Se,z),vt=Z.get(Je);return vt===void 0?(Z.set(Je,1),Je):(Z.set(Je,vt+1),`${Je}_${vt}`)})}}function H6(a){const _=Nl(a),b=Ti(_,1),C=RS(a.symbol),M=!!C&&il(C,256);if(b.length===0)return[i2(void 0,a.localTypeParameters,void 0,Zn,a,void 0,0,M?4:0)];const z=ac(a),Z=Rs(z),me=Iue(z),Se=Nt(me),Je=[];for(const vt of b){const Pt=EC(vt.typeParameters),dn=Nt(vt.typeParameters);if(Z||Se>=Pt&&Se<=dn){const yn=dn?Hf(vt,FI(me,vt.typeParameters,Pt,Z)):hS(vt);yn.typeParameters=a.localTypeParameters,yn.resolvedReturnType=a,yn.flags=M?yn.flags|4:yn.flags&-5,Je.push(yn)}}return Je}function hV(a,_,b,C,M){for(const z of a)if(CC(z,_,b,C,M,b?vgt:Vue))return z}function yV(a,_,b){if(_.typeParameters){if(b>0)return;for(let M=1;M1&&(b=b===void 0?C:-1);for(const M of a[C])if(!_||!hV(_,M,!1,!1,!0)){const z=yV(a,M,C);if(z){let Z=M;if(z.length>1){let me=M.thisParameter;const Se=Ot(z,Je=>Je.thisParameter);if(Se){const Je=Dd(Qo(z,vt=>vt.thisParameter&&Vo(vt.thisParameter)));me=xO(Se,Je)}Z=TB(M,z),Z.thisParameter=me}(_||(_=[])).push(Z)}}}if(!Nt(_)&&b!==-1){const C=a[b!==void 0?b:0];let M=C.slice();for(const z of a)if(z!==C){const Z=z[0];if(ce.assert(!!Z,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),M=Z.typeParameters&>(M,me=>!!me.typeParameters&&!SB(Z.typeParameters,me.typeParameters))?void 0:Vn(M,me=>dw(me,Z)),!M)break}_=M}return _||Zn}function SB(a,_){if(Nt(a)!==Nt(_))return!1;if(!a||!_)return!0;const b=IE(_,a);for(let C=0;C=M?a:_,Z=z===a?_:a,me=z===a?C:M,Se=Hk(a)||Hk(_),Je=Se&&!Hk(z),vt=new Array(me+(Je?1:0));for(let Pt=0;Pt=qI(z)&&Pt>=qI(Z),aa=Pt>=C?void 0:Ute(a,Pt),$s=Pt>=M?void 0:Ute(_,Pt),Ba=aa===$s?aa:aa?$s?void 0:aa:$s,lo=Ge(1|(Wo&&!bi?16777216:0),Ba||`arg${Pt}`);lo.links.type=bi?W1(hr):hr,vt[Pt]=lo}if(Je){const Pt=Ge(1,"args");Pt.links.type=W1($I(Z,me)),Z===_&&(Pt.links.type=Nf(Pt.links.type,b)),vt[me]=Pt}return vt}function dw(a,_){const b=a.typeParameters||_.typeParameters;let C;a.typeParameters&&_.typeParameters&&(C=IE(_.typeParameters,a.typeParameters));const M=a.declaration,z=L2(a,_,C),Z=uO(a.thisParameter,_.thisParameter,C),me=Math.max(a.minArgumentCount,_.minArgumentCount),Se=i2(M,b,Z,z,void 0,void 0,me,(a.flags|_.flags)&167);return Se.compositeKind=1048576,Se.compositeSignatures=Hi(a.compositeKind!==2097152&&a.compositeSignatures||[a],[_]),C&&(Se.mapper=a.compositeKind!==2097152&&a.mapper&&a.compositeSignatures?K4(a.mapper,C):C),Se}function EB(a){const _=T_(a[0]);if(_){const b=[];for(const C of _){const M=C.keyType;jr(a,z=>!!Cd(z,M))&&b.push(yD(M,gl(Vn(a,z=>pb(z,M))),gt(a,z=>Cd(z,M).isReadonly)))}return b}return Zn}function vV(a){const _=JF(Vn(a.types,M=>M===S0?[vn]:Ti(M,0))),b=JF(Vn(a.types,M=>Ti(M,1))),C=EB(a.types);yo(a,Ve,_,b,C)}function jp(a,_){return a?_?Dd([a,_]):a:_}function sc(a){const _=dp(a,C=>Ti(C,1).length>0),b=Vn(a,gf);if(_>0&&_===dp(b,C=>C)){const C=b.indexOf(!0);b[C]=!1}return b}function hx(a,_,b,C){const M=[];for(let z=0;z<_.length;z++)z===C?M.push(a):b[z]&&M.push(j(Ti(_[z],1)[0]));return Dd(M)}function xE(a){let _,b,C;const M=a.types,z=sc(M),Z=dp(z,me=>me);for(let me=0;me0&&(Je=Vn(Je,vt=>{const Pt=hS(vt);return Pt.resolvedReturnType=hx(j(vt),M,z,me),Pt})),b=fO(b,Je)}_=fO(_,Ti(Se,0)),C=Em(T_(Se),(Je,vt)=>bV(Je,vt,!1),C)}yo(a,Ve,_||Zn,b||Zn,C||Zn)}function fO(a,_){for(const b of _)(!a||jr(a,C=>!CC(C,b,!1,!1,!1,Vue)))&&(a=ur(a,b));return a}function bV(a,_,b){if(a)for(let C=0;C{var Se;!(me.flags&418)&&!(me.flags&512&&((Se=me.declarations)!=null&&Se.length)&&jr(me.declarations,Ov))&&Z.set(me.escapedName,me)}),b=Z}let M;if(yo(a,b,Zn,Zn,Zn),_.flags&32){const Z=Uy(_),me=Nl(Z);me.flags&11272192?(b=Td(Li(b)),cO(b,Vp(me))):me===gn&&(M=yD(xe,gn,!1))}const z=W0e(b);if(z?C=B0e(z):(M&&(C=ur(C,M)),_.flags&384&&(Rm(_).flags&32||gt(a.properties,Z=>!!(Vo(Z).flags&296)))&&(C=ur(C,pa))),yo(a,b,Zn,Zn,C||Zn),_.flags&8208&&(a.callSignatures=vh(_)),_.flags&32){const Z=Uy(_);let me=_.members?vh(_.members.get("__constructor")):Zn;_.flags&16&&(me=Oi(me.slice(),Qo(a.callSignatures,Se=>JI(Se.declaration)?i2(Se.declaration,Se.typeParameters,Se.thisParameter,Se.parameters,Z,void 0,Se.minArgumentCount,Se.flags&167):void 0))),me.length||(me=H6(Z)),a.constructSignatures=me}}function $F(a,_,b){return Nf(a,IE([_.indexType,_.objectType],[bD(0),$v([b])]))}function L4(a){const _=Cd(a.source,xe),b=jS(a.mappedType),C=!(b&1),M=b&4?0:16777216,z=_?[yD(xe,lM(_.type,a.mappedType,a.constraintType),C&&_.isReadonly)]:Zn,Z=Td();for(const me of Vp(a.source)){const Se=8192|(C&&KI(me)?8:0),Je=Ge(4|me.flags&M,me.escapedName,Se);if(Je.declarations=me.declarations,Je.links.nameType=Mt(me).nameType,Je.links.propertyType=Vo(me),a.constraintType.type.flags&8388608&&a.constraintType.type.objectType.flags&262144&&a.constraintType.type.indexType.flags&262144){const vt=a.constraintType.type.objectType,Pt=$F(a.mappedType,a.constraintType.type,vt);Je.links.mappedType=Pt,Je.links.constraintType=YP(vt)}else Je.links.mappedType=a.mappedType,Je.links.constraintType=a.constraintType;Z.set(me.escapedName,Je)}yo(a,Z,Zn,Zn,z)}function AE(a){if(a.flags&4194304){const _=O1(a.type);return u0(_)?zk(_):YP(_)}if(a.flags&16777216){if(a.root.isDistributive){const _=a.checkType,b=AE(_);if(b!==_)return GWe(a,NB(a.root.checkType,b,a.mapper))}return a}if(a.flags&1048576)return bh(a,AE,!0);if(a.flags&2097152){const _=a.types;return _.length===2&&_[0].flags&76&&_[1]===uS?a:Dd(Ol(a.types,AE))}return a}function eA(a){return I_(a)&4096}function KR(a,_,b,C){for(const M of Vp(a))C(pte(M,_));if(a.flags&1)C(xe);else for(const M of T_(a))(!b||M.keyType.flags&134217732)&&C(M.keyType)}function hD(a){const _=Td();let b;yo(a,Ve,Zn,Zn,Zn);const C=L1(a),M=mT(a),z=a.target||a,Z=Vg(z),me=!Z||sy(z),Se=SC(z),Je=O1(c0(a)),vt=jS(a),Pt=kn?128:8576;O4(a)?KR(Je,Pt,kn,dn):e8(AE(M),dn),yo(a,_,Zn,Zn,b||Zn);function dn(hr){const bi=Z?Nf(Z,IV(a.mapper,C,hr)):hr;e8(bi,Wo=>yn(hr,Wo))}function yn(hr,bi){if(yv(bi)){const Wo=vv(bi),aa=_.get(Wo);if(aa)aa.links.nameType=gl([aa.links.nameType,bi]),aa.links.keyType=gl([aa.links.keyType,hr]);else{const $s=yv(hr)?Fn(Je,vv(hr)):void 0,Ba=!!(vt&4||!(vt&8)&&$s&&$s.flags&16777216),lo=!!(vt&1||!(vt&2)&&$s&&KI($s)),Xa=Ye&&!Ba&&$s&&$s.flags&16777216,Go=$s?eA($s):0,Pa=Ge(4|(Ba?16777216:0),Wo,Go|262144|(lo?8:0)|(Xa?524288:0));Pa.links.mappedType=a,Pa.links.nameType=bi,Pa.links.keyType=hr,$s&&(Pa.links.syntheticOrigin=$s,Pa.declarations=me?$s.declarations:void 0),_.set(Wo,Pa)}}else if(fte(bi)||bi.flags&33){const Wo=bi.flags&5?xe:bi.flags&40?an:bi,aa=Nf(Se,IV(a.mapper,C,hr)),$s=yD(Wo,aa,!!(vt&1));b=bV(b,$s,!0)}}}function TC(a){if(!a.links.type){const _=a.links.mappedType;if(!j_(a,0))return _.containsError=!0,_r;const b=SC(_.target||_),C=IV(_.mapper,L1(_),a.links.keyType),M=Nf(b,C);let z=Ye&&a.flags&16777216&&!cy(M,49152)?eL(M,!0):a.links.checkFlags&524288?EO(M):M;dS()||(He(ue,w.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Cl(a),oa(_)),z=_r),a.links.type=z}return a.links.type}function L1(a){return a.typeParameter||(a.typeParameter=Ok(wi(a.declaration.typeParameter)))}function mT(a){return a.constraintType||(a.constraintType=Wi(L1(a))||_r)}function Vg(a){return a.declaration.nameType?a.nameType||(a.nameType=Nf(wl(a.declaration.nameType),a.mapper)):void 0}function SC(a){return a.templateType||(a.templateType=a.declaration.type?Nf(fm(wl(a.declaration.type),!0,!!(jS(a)&4)),a.mapper):_r)}function tA(a){return AN(a.declaration.typeParameter)}function O4(a){const _=tA(a);return _.kind===198&&_.operator===143}function c0(a){if(!a.modifiersType)if(O4(a))a.modifiersType=Nf(wl(tA(a).type),a.mapper);else{const _=xPe(a.declaration),b=mT(_),C=b&&b.flags&262144?Wi(b):b;a.modifiersType=C&&C.flags&4194304?Nf(C.type,a.mapper):co}return a.modifiersType}function jS(a){const _=a.declaration;return(_.readonlyToken?_.readonlyToken.kind===41?2:1:0)|(_.questionToken?_.questionToken.kind===41?8:4:0)}function dO(a){const _=jS(a);return _&8?-1:_&4?1:0}function pO(a){const _=dO(a),b=c0(a);return _||(Ty(b)?dO(b):0)}function Xq(a){return!!(ji(a)&32&&jS(a)&4)}function Ty(a){if(ji(a)&32){const _=mT(a);if(HS(_))return!0;const b=Vg(a);if(b&&HS(Nf(b,Q6(L1(a),_))))return!0}return!1}function sy(a){const _=Vg(a);return!!_&&Mp(_,L1(a))}function K0(a){return a.members||(a.flags&524288?a.objectFlags&4?qR(a):a.objectFlags&3?_w(a):a.objectFlags&1024?L4(a):a.objectFlags&16?_O(a):a.objectFlags&32?hD(a):ce.fail("Unhandled object type "+ce.formatObjectFlags(a.objectFlags)):a.flags&1048576?vV(a):a.flags&2097152?xE(a):ce.fail("Unhandled type "+ce.formatTypeFlags(a.flags))),a}function O2(a){return a.flags&524288?K0(a).properties:Zn}function o2(a,_){if(a.flags&524288){const C=K0(a).members.get(_);if(C&&i1(C))return C}}function pw(a){if(!a.resolvedProperties){const _=Td();for(const b of a.types){for(const C of Vp(b))if(!_.has(C.escapedName)){const M=OI(a,C.escapedName);M&&_.set(C.escapedName,M)}if(a.flags&1048576&&T_(b).length===0)break}a.resolvedProperties=$n(_)}return a.resolvedProperties}function Vp(a){return a=W4(a),a.flags&3145728?pw(a):O2(a)}function F4(a,_){a=W4(a),a.flags&3670016&&K0(a).members.forEach((b,C)=>{ri(b,C)&&_(b,C)})}function ne(a,_){return _.properties.some(C=>{const M=C.name&&(dI(C.name)?qv(oW(C.name)):q6(C.name)),z=M&&yv(M)?vv(M):void 0,Z=z===void 0?void 0:wm(a,z);return!!Z&&Ew(Z)&&!Mp(YB(C),Z)})}function yt(a){const _=gl(a);if(!(_.flags&1048576))return Xfe(_);const b=Td();for(const C of a)for(const{escapedName:M}of Xfe(C))if(!b.has(M)){const z=Wk(_,M);z&&b.set(M,z)}return oc(b.values())}function Er(a){return a.flags&262144?Wi(a):a.flags&8388608?Vu(a):a.flags&16777216?ru(a):Co(a)}function Wi(a){return MI(a)?SV(a):void 0}function nc(a,_=0){var b;return _<5&&!!(a&&(a.flags&262144&>((b=a.symbol)==null?void 0:b.declarations,C=>il(C,2048))||a.flags&1048576&>(a.types,C=>nc(C,_))||a.flags&8388608&&nc(a.objectType,_+1)||a.flags&16777216&&nc(ru(a),_+1)||a.flags&33554432&&nc(a.baseType,_)||u0(a)&&Ho(Fb(a),(C,M)=>!!(a.target.elementFlags[M]&8)&&nc(C,_))>=0))}function Vu(a){return MI(a)?Pf(a):void 0}function ql(a){const _=gb(a,!1);return _!==a?_:Er(a)}function Pf(a){if(KF(a)||Ty(a.objectType))return K6(a.objectType,a.indexType);const _=ql(a.indexType);if(_&&_!==a.indexType){const C=Wb(a.objectType,_,a.accessFlags);if(C)return C}const b=ql(a.objectType);if(b&&b!==a.objectType)return Wb(b,a.indexType,a.accessFlags)}function Z_(a){if(!a.resolvedDefaultConstraint){const _=CPe(a),b=X6(a);a.resolvedDefaultConstraint=Q_(_)?b:Q_(b)?_:gl([_,b])}return a.resolvedDefaultConstraint}function CE(a){if(a.resolvedConstraintOfDistributive!==void 0)return a.resolvedConstraintOfDistributive||void 0;if(a.root.isDistributive&&a.restrictiveInstantiation!==a){const _=gb(a.checkType,!1),b=_===a.checkType?Er(_):_;if(b&&b!==a.checkType){const C=GWe(a,NB(a.root.checkType,b,a.mapper));if(!(C.flags&131072))return a.resolvedConstraintOfDistributive=C,C}}a.resolvedConstraintOfDistributive=!1}function a2(a){return CE(a)||Z_(a)}function ru(a){return MI(a)?a2(a):void 0}function Fk(a,_){let b,C=!1;for(const M of a)if(M.flags&465829888){let z=Er(M);for(;z&&z.flags&21233664;)z=Er(z);z&&(b=ur(b,z),_&&(b=ur(b,M)))}else(M.flags&469892092||By(M))&&(C=!0);if(b&&(_||C)){if(C)for(const M of a)(M.flags&469892092||By(M))&&(b=ur(b,M));return obe(Dd(b),!1)}}function Co(a){if(a.flags&464781312||u0(a)){const _=mO(a);return _!==lm&&_!==nm?_:void 0}return a.flags&4194304?x_:void 0}function DE(a){return Co(a)||a}function MI(a){return mO(a)!==nm}function mO(a){if(a.resolvedBaseConstraint)return a.resolvedBaseConstraint;const _=[];return a.resolvedBaseConstraint=b(a);function b(z){if(!z.immediateBaseConstraint){if(!j_(z,4))return nm;let Z;const me=c5(z);if((_.length<10||_.length<50&&!ni(_,me))&&(_.push(me),Z=M(gb(z,!1)),_.pop()),!dS()){if(z.flags&262144){const Se=AB(z);if(Se){const Je=He(Se,w.Type_parameter_0_has_a_circular_constraint,oa(z));ue&&!N7(Se,ue)&&!N7(ue,Se)&&ml(Je,kc(ue,w.Circularity_originates_in_type_at_this_location))}}Z=nm}z.immediateBaseConstraint=Z||lm}return z.immediateBaseConstraint}function C(z){const Z=b(z);return Z!==lm&&Z!==nm?Z:void 0}function M(z){if(z.flags&262144){const Z=SV(z);return z.isThisType||!Z?Z:C(Z)}if(z.flags&3145728){const Z=z.types,me=[];let Se=!1;for(const Je of Z){const vt=C(Je);vt?(vt!==Je&&(Se=!0),me.push(vt)):Se=!0}return Se?z.flags&1048576&&me.length===Z.length?gl(me):z.flags&2097152&&me.length?Dd(me):void 0:z}if(z.flags&4194304)return x_;if(z.flags&134217728){const Z=z.types,me=Qo(Z,C);return me.length===Z.length?kB(z.texts,me):xe}if(z.flags&268435456){const Z=C(z.type);return Z&&Z!==z.type?r5(z.symbol,Z):xe}if(z.flags&8388608){if(KF(z))return C(K6(z.objectType,z.indexType));const Z=C(z.objectType),me=C(z.indexType),Se=Z&&me&&Wb(Z,me,z.accessFlags);return Se&&C(Se)}if(z.flags&16777216){const Z=a2(z);return Z&&C(Z)}if(z.flags&33554432)return C(nK(z));if(u0(z)){const Z=Vn(Fb(z),(me,Se)=>{const Je=me.flags&262144&&z.target.elementFlags[Se]&8&&C(me)||me;return Je!==me&&iA(Je,vt=>GI(vt)&&!u0(vt))?Je:me});return $v(Z,z.target.elementFlags,z.target.readonly,z.target.labeledElementDeclarations)}return z}}function gO(a,_){return a.resolvedApparentType||(a.resolvedApparentType=M1(a,_,!0))}function qF(a){if(a.default)a.default===po&&(a.default=nm);else if(a.target){const _=qF(a.target);a.default=_?Nf(_,a.mapper):lm}else{a.default=po;const _=a.symbol&&Ot(a.symbol.declarations,C=>Hh(C)&&C.default),b=_?wl(_):lm;a.default===po&&(a.default=b)}return a.default}function LI(a){const _=qF(a);return _!==lm&&_!==nm?_:void 0}function $P(a){return qF(a)!==nm}function XR(a){return!!(a.symbol&&Ot(a.symbol.declarations,_=>Hh(_)&&_.default))}function mw(a){return a.resolvedApparentType||(a.resolvedApparentType=Yq(a))}function Yq(a){const _=PPe(a);if(_&&!a.declaration.nameType){const b=Wi(_);if(b&&iA(b,GI))return Nf(a,NB(_,b,a.mapper))}return a}function KF(a){let _;return!!(a.flags&8388608&&ji(_=a.objectType)&32&&!Ty(_)&&HS(a.indexType)&&!(jS(_)&8)&&!_.declaration.nameType)}function O1(a){const _=a.flags&465829888?Co(a)||co:a,b=ji(_);return b&32?mw(_):b&4&&_!==a?M1(_,a):_.flags&2097152?gO(_,a):_.flags&402653316?bu:_.flags&296?K_:_.flags&2112?SWe():_.flags&528?ig:_.flags&12288?dPe():_.flags&67108864?Yu:_.flags&4194304?x_:_.flags&2&&!Ye?Yu:_}function W4(a){return HT(O1(HT(a)))}function Wk(a,_,b){var C,M,z;let Z,me,Se;const Je=a.flags&1048576;let vt,Pt=4,dn=Je?0:8,yn=!1;for(const Pa of a.types){const Ga=O1(Pa);if(!(je(Ga)||Ga.flags&131072)){const hs=Fn(Ga,_,b),Ld=hs?Vy(hs):0;if(hs){if(hs.flags&106500&&(vt??(vt=Je?0:16777216),Je?vt|=hs.flags&16777216:vt&=hs.flags),!Z)Z=hs;else if(hs!==Z)if((OK(hs)||hs)===(OK(Z)||Z)&&rBe(Z,hs,(id,$y)=>id===$y?-1:0)===-1)yn=!!Z.parent&&!!Nt(rs(Z.parent));else{me||(me=new Map,me.set(Bp(Z),Z));const id=Bp(hs);me.has(id)||me.set(id,hs)}Je&&KI(hs)?dn|=8:!Je&&!KI(hs)&&(dn&=-9),dn|=(Ld&24?0:256)|(Ld&16?512:0)|(Ld&8?1024:0)|(Ld&32?2048:0),bK(hs)||(Pt=2)}else if(Je){const nl=!s0(_)&&yx(Ga,_);nl?(dn|=32|(nl.isReadonly?8:0),Se=ur(Se,_p(Ga)?xw(Ga)||Ui:nl.type)):zu(Ga)&&!(ji(Ga)&2097152)?(dn|=32,Se=ur(Se,Ui)):dn|=16}}}if(!Z||Je&&(me||dn&48)&&dn&1536&&!(me&&Qq(me.values())))return;if(!me&&!(dn&16)&&!Se)if(yn){const Pa=(C=to(Z,uk))==null?void 0:C.links,Ga=xO(Z,Pa==null?void 0:Pa.type);return Ga.parent=(z=(M=Z.valueDeclaration)==null?void 0:M.symbol)==null?void 0:z.parent,Ga.links.containingType=a,Ga.links.mapper=Pa==null?void 0:Pa.mapper,Ga}else return Z;const hr=me?oc(me.values()):[Z];let bi,Wo,aa;const $s=[];let Ba,lo,Xa=!1;for(const Pa of hr){lo?Pa.valueDeclaration&&Pa.valueDeclaration!==lo&&(Xa=!0):lo=Pa.valueDeclaration,bi=Oi(bi,Pa.declarations);const Ga=Vo(Pa);Wo||(Wo=Ga,aa=Mt(Pa).nameType);const hs=z6(Pa);Ba||hs!==Ga?Ba=ur(Ba||$s.slice(),hs):Ga!==Wo&&(dn|=64),(Ew(Ga)||H4(Ga))&&(dn|=128),Ga.flags&131072&&Ga!==iy&&(dn|=131072),$s.push(Ga)}Oi($s,Se);const Go=Ge(4|(vt??0),_,Pt|dn);return Go.links.containingType=a,!Xa&&lo&&(Go.valueDeclaration=lo,lo.symbol.parent&&(Go.parent=lo.symbol.parent)),Go.declarations=bi,Go.links.nameType=aa,$s.length>2?(Go.links.checkFlags|=65536,Go.links.deferralParent=a,Go.links.deferralConstituents=$s,Go.links.deferralWriteConstituents=Ba):(Go.links.type=Je?gl($s):Dd($s),Ba&&(Go.links.writeType=Je?gl(Ba):Dd(Ba))),Go}function gw(a,_,b){var C,M;let z=(C=a.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(_)||!b?(M=a.propertyCache)==null?void 0:M.get(_):void 0;return z||(z=Wk(a,_,b),z&&(b?a.propertyCacheWithoutObjectFunctionPropertyAugment||(a.propertyCacheWithoutObjectFunctionPropertyAugment=Td()):a.propertyCache||(a.propertyCache=Td())).set(_,z)),z}function Qq(a){let _;for(const b of a){if(!b.declarations)return;if(!_){_=new Set(b.declarations);continue}if(_.forEach(C=>{ni(b.declarations,C)||_.delete(C)}),_.size===0)return}return _}function OI(a,_,b){const C=gw(a,_,b);return C&&!(I_(C)&16)?C:void 0}function HT(a){return a.flags&1048576&&a.objectFlags&16777216?a.resolvedReducedType||(a.resolvedReducedType=F0e(a)):a.flags&2097152?(a.objectFlags&16777216||(a.objectFlags|=16777216|(gt(pw(a),Bk)?33554432:0)),a.objectFlags&33554432?vs:a):a}function F0e(a){const _=Ol(a.types,HT);if(_===a.types)return a;const b=gl(_);return b.flags&1048576&&(b.resolvedReducedType=b),b}function Bk(a){return XF(a)||ute(a)}function XF(a){return!(a.flags&16777216)&&(I_(a)&131264)===192&&!!(Vo(a).flags&131072)}function ute(a){return!a.valueDeclaration&&!!(I_(a)&1024)}function Xe(a){return!!(a.flags&1048576&&a.objectFlags&16777216&>(a.types,Xe)||a.flags&2097152&&$t(a))}function $t(a){const _=a.uniqueLiteralFilledInstantiation||(a.uniqueLiteralFilledInstantiation=Nf(a,Oh));return HT(_)!==_}function bn(a,_){if(_.flags&2097152&&ji(_)&33554432){const b=lr(pw(_),XF);if(b)return Es(a,w.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,oa(_,void 0,536870912),Cl(b));const C=lr(pw(_),ute);if(C)return Es(a,w.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,oa(_,void 0,536870912),Cl(C))}return a}function Fn(a,_,b,C){if(a=W4(a),a.flags&524288){const M=K0(a),z=M.members.get(_);if(z&&i1(z,C))return z;if(b)return;const Z=M===Mg?S0:M.callSignatures.length?k1:M.constructSignatures.length?tn:void 0;if(Z){const me=o2(Z,_);if(me)return me}return o2(Ev,_)}if(a.flags&3145728)return OI(a,_,b)}function Ri(a,_){if(a.flags&3670016){const b=K0(a);return _===0?b.callSignatures:b.constructSignatures}return Zn}function Ti(a,_){const b=Ri(W4(a),_);if(_===0&&!Nt(b)&&a.flags&1048576){if(a.arrayFallbackSignatures)return a.arrayFallbackSignatures;let C;if(iA(a,M=>{var z;return!!((z=M.symbol)!=null&&z.parent)&&Xc(M.symbol.parent)&&(C?C===M.symbol.escapedName:(C=M.symbol.escapedName,!0))})){const M=bh(a,Z=>q4((Fu(Z.symbol.parent)?ya:fi).typeParameters[0],Z.mapper)),z=W1(M,dM(a,Z=>Fu(Z.symbol.parent)));return a.arrayFallbackSignatures=Ti(wm(z,C),_)}a.arrayFallbackSignatures=b}return b}function Xc(a){return!a||!fi.symbol||!ya.symbol?!1:!!f_(a,fi.symbol)||!!f_(a,ya.symbol)}function Fu(a){return!a||!ya.symbol?!1:!!f_(a,ya.symbol)}function cu(a,_){return lr(a,b=>b.keyType===_)}function Ml(a,_){let b,C,M;for(const z of a)z.keyType===xe?b=z:Zu(_,z.keyType)&&(C?(M||(M=[C])).push(z):C=z);return M?yD(co,Dd(Vn(M,z=>z.type)),Em(M,(z,Z)=>z&&Z.isReadonly,!0)):C||(b&&Zu(_,xe)?b:void 0)}function Zu(a,_){return Mp(a,_)||_===xe&&Mp(a,an)||_===an&&(a===U0||!!(a.flags&128)&&FT(a.value))}function hg(a){return a.flags&3670016?K0(a).indexInfos:Zn}function T_(a){return hg(W4(a))}function Cd(a,_){return cu(T_(a),_)}function pb(a,_){var b;return(b=Cd(a,_))==null?void 0:b.type}function zA(a,_){return T_(a).filter(b=>Zu(_,b.keyType))}function qP(a,_){return Ml(T_(a),_)}function yx(a,_){return qP(a,s0(_)?Qa:qv(lf(_)))}function mb(a){var _;let b;for(const C of oR(a))b=ST(b,Ok(C.symbol));return b!=null&&b.length?b:b0(a)?(_=z4(a))==null?void 0:_.typeParameters:void 0}function KP(a){const _=[];return a.forEach((b,C)=>{fn(C)||_.push(b)}),_}function TV(a,_){if(tb(a))return;const b=Jn(Ut,'"'+a+'"',512);return b&&_?wa(b):b}function B4(a){if(cG(a)||rW(a)||iW(a))return!0;if(a.initializer){const b=Cv(a.parent),C=a.parent.parameters.indexOf(a);return ce.assert(C>=0),C>=qI(b,3)}const _=GL(a.parent);return _?!a.type&&!a.dotDotDotToken&&a.parent.parameters.indexOf(a)>=_.arguments.length:!1}function Zq(a){return Os(a)&&!_k(a)&&a.questionToken}function YF(a,_,b,C){return{kind:a,parameterName:_,parameterIndex:b,type:C}}function EC(a){let _=0;if(a)for(let b=0;b=b&&z<=M){const Z=a?a.slice():[];for(let Se=z;Seme.arguments.length&&!Wo||iW(hr)||(M=b.length)}if((a.kind===177||a.kind===178)&&GS(a)&&(!Z||!z)){const yn=a.kind===177?178:177,hr=Vm(wi(a),yn);hr&&(z=II(hr))}if(Rs(a)){const yn=iR(a);yn&&yn.typeExpression&&(z=xO(Ge(1,"this"),wl(yn.typeExpression)))}const vt=Ak(a)?dH(a):a,Pt=vt&&pg(vt)?Uy(wa(vt.parent.symbol)):void 0,dn=Pt?Pt.localTypeParameters:mb(a);(iie(a)||Rs(a)&&YR(a,b))&&(C|=1),(mW(a)&&il(a,256)||pg(a)&&il(a.parent,256))&&(C|=4),_.resolvedSignature=i2(a,dn,z,b,void 0,void 0,M,C)}return _.resolvedSignature}function YR(a,_){if(Ak(a)||!Up(a))return!1;const b=Yf(a.parameters),C=b?Gz(b):EN(a).filter(AA),M=Yr(C,Z=>Z.typeExpression&&Foe(Z.typeExpression.type)?Z.typeExpression.type:void 0),z=Ge(3,"args",32768);return M?z.links.type=W1(wl(M.type)):(z.links.checkFlags|=65536,z.links.deferralParent=vs,z.links.deferralConstituents=[ir],z.links.deferralWriteConstituents=[ir]),M&&_.pop(),_.push(z),!0}function z4(a){if(!(Rs(a)&&J_(a)))return;const _=w8(a);return(_==null?void 0:_.typeExpression)&&NO(wl(_.typeExpression))}function GA(a,_){const b=z4(a);if(!b)return;const C=a.parameters.indexOf(_);return _.dotDotDotToken?wO(b,C):$I(b,C)}function eK(a){const _=z4(a);return _&&j(_)}function Up(a){const _=ge(a);return _.containsArgumentsReference===void 0&&(_.flags&512?_.containsArgumentsReference=!0:_.containsArgumentsReference=b(a.body)),_.containsArgumentsReference;function b(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===Cr.escapedName&&Yfe(C)===Cr;case 172:case 174:case 177:case 178:return C.name.kind===167&&b(C.name);case 211:case 212:return b(C.expression);case 303:return b(C.initializer);default:return!dG(C)&&!rC(C)&&!!B_(C,b)}}}function vh(a){if(!a||!a.declarations)return Zn;const _=[];for(let b=0;b0&&C.body){const M=a.declarations[b-1];if(C.parent===M.parent&&C.kind===M.kind&&C.pos===M.end)continue}if(Rs(C)&&C.jsDoc){let M=!1;for(const z of C.jsDoc)if(z.tags){for(const Z of z.tags)if(FG(Z)){const me=Z.typeExpression;me.type===void 0&&!pg(C)&&sM(me,gn),_.push(Cv(me)),M=!0}}if(M)continue}_.push(!EP(C)&&!q2(C)&&z4(C)||Cv(C))}}return _}function J6(a){const _=Zm(a,a);if(_){const b=$0(_);if(b)return Vo(b)}return gn}function xC(a){if(a.thisParameter)return Vo(a.thisParameter)}function F2(a){if(!a.resolvedTypePredicate){if(a.target){const _=F2(a.target);a.resolvedTypePredicate=_?pgt(_,a.mapper):yy}else if(a.compositeSignatures)a.resolvedTypePredicate=ogt(a.compositeSignatures,a.compositeKind)||yy;else{const _=a.declaration&&bA(a.declaration);let b;if(!_){const C=z4(a.declaration);C&&a!==C&&(b=F2(C))}a.resolvedTypePredicate=_&&Y7(_)?XP(_,a):b||yy}ce.assert(!!a.resolvedTypePredicate)}return a.resolvedTypePredicate===yy?void 0:a.resolvedTypePredicate}function XP(a,_){const b=a.parameterName,C=a.type&&wl(a.type);return b.kind===197?YF(a.assertsModifier?2:0,void 0,void 0,C):YF(a.assertsModifier?3:1,b.escapedText,Ho(_.parameters,M=>M.escapedName===b.escapedText),C)}function xB(a,_,b){return _!==2097152?gl(a,b):Dd(a)}function j(a){if(!a.resolvedReturnType){if(!j_(a,3))return _r;let _=a.target?Nf(j(a.target),a.mapper):a.compositeSignatures?Nf(xB(Vn(a.compositeSignatures,j),a.compositeKind,2),a.mapper):se(a.declaration)||(Um(a.declaration.body)?gn:ewe(a.declaration));if(a.flags&8?_=jet(_):a.flags&16&&(_=eL(_)),!dS()){if(a.declaration){const b=bA(a.declaration);if(b)He(b,w.Return_type_annotation_circularly_references_itself);else if(Wt){const C=a.declaration,M=o_(C);M?He(M,w._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,Ud(M)):He(C,w.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)}}_=gn}a.resolvedReturnType=_}return a.resolvedReturnType}function se(a){if(a.kind===176)return Uy(wa(a.parent.symbol));const _=bA(a);if(Ak(a)){const b=pH(a);if(b&&pg(b.parent)&&!_)return Uy(wa(b.parent.parent.symbol))}if(J8(a))return wl(a.parameters[0].type);if(_)return wl(_);if(a.kind===177&&GS(a)){const b=Rs(a)&&hn(a);if(b)return b;const C=Vm(wi(a),178),M=r2(C);if(M)return M}return eK(a)}function De(a){return a.compositeSignatures&>(a.compositeSignatures,De)||!a.resolvedReturnType&&GP(a,3)>=0}function Tt(a){return wn(a)||gn}function wn(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]),b=_p(_)?xw(_):_;return b&&pb(b,an)}}function Vi(a,_,b,C){const M=Us(a,FI(_,a.typeParameters,EC(a.typeParameters),b));if(C){const z=_ze(j(M));if(z){const Z=hS(z);Z.typeParameters=C;const me=hS(M);return me.resolvedReturnType=WI(Z),me}}return M}function Us(a,_){const b=a.instantiations||(a.instantiations=new Map),C=La(_);let M=b.get(C);return M||b.set(C,M=Hf(a,_)),M}function Hf(a,_){return cK(a,ng(a,_),!0)}function ng(a,_){return IE(a.typeParameters,_)}function VS(a){return a.typeParameters?a.erasedSignatureCache||(a.erasedSignatureCache=G4(a)):a}function G4(a){return cK(a,Gue(a.typeParameters),!0)}function j4(a){return a.typeParameters?a.canonicalSignatureCache||(a.canonicalSignatureCache=hO(a)):a}function hO(a){return Vi(a,Vn(a.typeParameters,_=>_.target&&!Wi(_.target)?_.target:_),Rs(a.declaration))}function lPe(a){const _=a.typeParameters;if(_){if(a.baseSignatureCache)return a.baseSignatureCache;const b=Gue(_),C=IE(_,Vn(_,z=>Wi(z)||co));let M=Vn(_,z=>Nf(z,C)||co);for(let z=0;z<_.length-1;z++)M=Sw(M,C);return M=Sw(M,b),a.baseSignatureCache=cK(a,IE(_,M),!0)}return a}function WI(a){var _;if(!a.isolatedSignatureType){const b=(_=a.declaration)==null?void 0:_.kind,C=b===void 0||b===176||b===180||b===185,M=Uv(16);M.members=Ve,M.properties=Zn,M.callSignatures=C?Zn:[a],M.constructSignatures=C?[a]:Zn,M.indexInfos=Zn,a.isolatedSignatureType=M}return a.isolatedSignatureType}function tK(a){return a.members?W0e(a.members):void 0}function W0e(a){return a.get("__index")}function yD(a,_,b,C){return{keyType:a,type:_,isReadonly:b,declaration:C}}function Due(a){const _=tK(a);return _?B0e(_):Zn}function B0e(a){if(a.declarations){const _=[];for(const b of a.declarations)if(b.parameters.length===1){const C=b.parameters[0];C.type&&e8(wl(C.type),M=>{fte(M)&&!cu(_,M)&&_.push(yD(M,b.type?wl(b.type):gn,Ab(b,64),b))})}return _}return Zn}function fte(a){return!!(a.flags&4108)||H4(a)||!!(a.flags&2097152)&&!mte(a)&>(a.types,fte)}function AB(a){return Qo(gi(a.symbol&&a.symbol.declarations,Hh),AN)[0]}function z0e(a,_){var b;let C;if((b=a.symbol)!=null&&b.declarations){for(const M of a.symbol.declarations)if(M.parent.kind===195){const[z=M.parent,Z]=ON(M.parent.parent);if(Z.kind===183&&!_){const me=Z,Se=mwe(me);if(Se){const Je=me.typeArguments.indexOf(z);if(Je()=>_yt(me,Se,hr))),dn=Nf(vt,Pt);dn!==a&&(C=ur(C,dn))}}}}else if(Z.kind===169&&Z.dotDotDotToken||Z.kind===191||Z.kind===202&&Z.dotDotDotToken)C=ur(C,W1(co));else if(Z.kind===204)C=ur(C,xe);else if(Z.kind===168&&Z.parent.kind===200)C=ur(C,x_);else if(Z.kind===200&&Z.type&&_g(Z.type)===M.parent&&Z.parent.kind===194&&Z.parent.extendsType===Z&&Z.parent.checkType.kind===200&&Z.parent.checkType.type){const me=Z.parent.checkType,Se=wl(me.type);C=ur(C,Nf(Se,Q6(Ok(wi(me.typeParameter)),me.typeParameter.constraint?wl(me.typeParameter.constraint):x_)))}}}return C&&Dd(C)}function SV(a){if(!a.constraint)if(a.target){const _=Wi(a.target);a.constraint=_?Nf(_,a.mapper):lm}else{const _=AB(a);if(!_)a.constraint=z0e(a)||lm;else{let b=wl(_);b.flags&1&&!je(b)&&(b=_.parent.parent.kind===200?x_:co),a.constraint=b}}return a.constraint===lm?void 0:a.constraint}function QF(a){const _=Vm(a.symbol,168),b=jx(_.parent)?q8(_.parent):_.parent;return b&&Vl(b)}function La(a){let _="";if(a){const b=a.length;let C=0;for(;C1&&(_+=":"+z),C+=z}}return _}function AC(a,_){return a?`@${Bp(a)}`+(_?`:${La(_)}`:""):""}function hw(a,_){let b=0;for(const C of a)(_===void 0||!(C.flags&_))&&(b|=ji(C));return b&458752}function QR(a,_){return gt(_)&&a===rd?co:jA(a,_)}function jA(a,_){const b=La(_);let C=a.instantiations.get(b);return C||(C=Uv(4,a.symbol),a.instantiations.set(b,C),C.objectFlags|=_?hw(_):0,C.target=a,C.resolvedTypeArguments=_),C}function yO(a){const _=su(a.flags,a.symbol);return _.objectFlags=a.objectFlags,_.target=a.target,_.resolvedTypeArguments=a.resolvedTypeArguments,_}function EV(a,_,b,C,M){if(!C){C=bO(_);const Z=bx(C);M=b?Sw(Z,b):Z}const z=Uv(4,a.symbol);return z.target=a,z.node=_,z.mapper=b,z.aliasSymbol=C,z.aliasTypeArguments=M,z}function Tm(a){var _,b;if(!a.resolvedTypeArguments){if(!j_(a,6))return((_=a.target.localTypeParameters)==null?void 0:_.map(()=>_r))||Zn;const C=a.node,M=C?C.kind===183?Hi(a.target.outerTypeParameters,c1e(C,a.target.localTypeParameters)):C.kind===188?[wl(C.elementType)]:Vn(C.elements,wl):Zn;dS()?a.resolvedTypeArguments=a.mapper?Sw(M,a.mapper):M:(a.resolvedTypeArguments=((b=a.target.localTypeParameters)==null?void 0:b.map(()=>_r))||Zn,He(a.node||ue,a.target.symbol?w.Type_arguments_for_0_circularly_reference_themselves:w.Tuple_type_arguments_circularly_reference_themselves,a.target.symbol&&Cl(a.target.symbol)))}return a.resolvedTypeArguments}function Fo(a){return Nt(a.target.typeParameters)}function cl(a,_){const b=Rm(wa(_)),C=b.localTypeParameters;if(C){const M=Nt(a.typeArguments),z=EC(C),Z=Rs(a);if(!(!Wt&&Z)&&(MC.length)){const Je=Z&&WT(a)&&!iF(a.parent),vt=z===C.length?Je?w.Expected_0_type_arguments_provide_these_with_an_extends_tag:w.Generic_type_0_requires_1_type_argument_s:Je?w.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:w.Generic_type_0_requires_between_1_and_2_type_arguments,Pt=oa(b,void 0,2);if(He(a,vt,Pt,z,C.length),!Z)return _r}if(a.kind===183&&mPe(a,Nt(a.typeArguments)!==C.length))return EV(b,a,void 0);const Se=Hi(b.outerTypeParameters,FI(Iue(a),C,z,Z));return jA(b,Se)}return F1(a,_)?b:_r}function Mc(a,_,b,C){const M=Rm(a);if(M===Qr&&aj.has(a.escapedName)&&_&&_.length===1)return r5(a,_[0]);const z=Mt(a),Z=z.typeParameters,me=La(_)+AC(b,C);let Se=z.instantiations.get(me);return Se||z.instantiations.set(me,Se=NPe(M,IE(Z,FI(_,Z,EC(Z),Rs(a.valueDeclaration))),b,C)),Se}function Du(a,_){if(I_(_)&1048576){const M=Iue(a),z=AC(_,M);let Z=Kn.get(z);return Z||(Z=eg(1,"error"),Z.aliasSymbol=_,Z.aliasTypeArguments=M,Kn.set(z,Z)),Z}const b=Rm(_),C=Mt(_).typeParameters;if(C){const M=Nt(a.typeArguments),z=EC(C);if(MC.length)return He(a,z===C.length?w.Generic_type_0_requires_1_type_argument_s:w.Generic_type_0_requires_between_1_and_2_type_arguments,Cl(_),z,C.length),_r;const Z=bO(a);let me=Z&&(Ru(_)||!Ru(Z))?Z:void 0,Se;if(me)Se=bx(me);else if(F8(a)){const Je=VA(a,2097152,!0);if(Je&&Je!==Ir){const vt=Xp(Je);vt&&vt.flags&524288&&(me=vt,Se=Iue(a)||(C?[]:void 0))}}return Mc(_,Iue(a),me,Se)}return F1(a,_)?b:_r}function Ru(a){var _;const b=(_=a.declarations)==null?void 0:_.find(fH);return!!(b&&GE(b))}function _m(a){switch(a.kind){case 183:return a.typeName;case 233:const _=a.expression;if(Uh(_))return _}}function kg(a){return a.parent?`${kg(a.parent)}.${a.escapedName}`:a.escapedName}function cv(a){const b=(a.kind===166?a.right:a.kind===211?a.name:a).escapedText;if(b){const C=a.kind===166?cv(a.left):a.kind===211?cv(a.expression):void 0,M=C?`${kg(C)}.${b}`:b;let z=xt.get(M);return z||(xt.set(M,z=Ge(524288,b,1048576)),z.parent=C,z.links.declaredType=Cn),z}return Ir}function VA(a,_,b){const C=_m(a);if(!C)return Ir;const M=P_(C,_,b);return M&&M!==Ir?M:b?Ir:cv(C)}function vD(a,_){if(_===Ir)return _r;if(_=VT(_)||_,_.flags&96)return cl(a,_);if(_.flags&524288)return Du(a,_);const b=Yx(_);if(b)return F1(a,_)?B1(b):_r;if(_.flags&111551&&uPe(a)){const C=l0(a,_);return C||(VA(a,788968),Vo(_))}return _r}function l0(a,_){const b=ge(a);if(!b.resolvedJSDocType){const C=Vo(_);let M=C;if(_.valueDeclaration){const z=a.kind===205&&a.qualifier;C.symbol&&C.symbol!==_&&z&&(M=vD(a,C.symbol))}b.resolvedJSDocType=M}return b.resolvedJSDocType}function yw(a,_){if(_.flags&3||_===a||a.flags&1)return a;const b=`${Gh(a)}>${Gh(_)}`,C=To.get(b);if(C)return C;const M=Vv(33554432);return M.baseType=a,M.constraint=_,To.set(b,M),M}function nK(a){return Dd([a.constraint,a.baseType])}function xV(a){return a.kind===189&&a.elements.length===1}function ZF(a,_,b){return xV(_)&&xV(b)?ZF(a,_.elements[0],b.elements[0]):np(wl(_))===np(a)?wl(b):void 0}function Vmt(a,_){let b,C=!0;for(;_&&!uf(_)&&_.kind!==327;){const M=_.parent;if(M.kind===169&&(C=!C),(C||a.flags&8650752)&&M.kind===194&&_===M.trueType){const z=ZF(a,M.checkType,M.extendsType);z&&(b=ur(b,z))}else if(a.flags&262144&&M.kind===200&&_===M.type){const z=wl(M);if(L1(z)===np(a)){const Z=PPe(z);if(Z){const me=Wi(Z);me&&iA(me,GI)&&(b=ur(b,gl([an,U0])))}}}_=M}return b?yw(a,Dd(b)):a}function uPe(a){return!!(a.flags&16777216)&&(a.kind===183||a.kind===205)}function F1(a,_){return a.typeArguments?(He(a,w.Type_0_is_not_generic,_?Cl(_):a.typeName?Ud(a.typeName):Tae),!1):!0}function dWe(a){if(An(a.typeName)){const _=a.typeArguments;switch(a.typeName.escapedText){case"String":return F1(a),xe;case"Number":return F1(a),an;case"Boolean":return F1(a),Ca;case"Void":return F1(a),Ks;case"Undefined":return F1(a),Ui;case"Null":return F1(a),$e;case"Function":case"function":return F1(a),S0;case"array":return(!_||!_.length)&&!Wt?ir:void 0;case"promise":return(!_||!_.length)&&!Wt?aL(gn):void 0;case"Object":if(_&&_.length===2){if(aH(a)){const b=wl(_[0]),C=wl(_[1]),M=b===xe||b===an?[yD(b,C,!1)]:Zn;return jo(void 0,Ve,Zn,Zn,M)}return gn}return F1(a),Wt?void 0:gn}}}function fPe(a){const _=wl(a.type);return Ye?oM(_,65536):_}function _Pe(a){const _=ge(a);if(!_.resolvedType){if(CN(a)&&_7(a.parent))return _.resolvedSymbol=Ir,_.resolvedType=Iv(a.parent.expression);let b,C;const M=788968;uPe(a)&&(C=dWe(a),C||(b=VA(a,M,!0),b===Ir?b=VA(a,M|111551):VA(a,M),C=vD(a,b))),C||(b=VA(a,M),C=vD(a,b)),_.resolvedSymbol=b,_.resolvedType=C}return _.resolvedType}function Iue(a){return Vn(a.typeArguments,wl)}function pWe(a){const _=ge(a);if(!_.resolvedType){const b=ont(a);_.resolvedType=B1(Bb(b))}return _.resolvedType}function e5(a,_){function b(M){const z=M.declarations;if(z)for(const Z of z)switch(Z.kind){case 263:case 264:case 266:return Z}}if(!a)return _?rd:Yu;const C=Rm(a);return C.flags&524288?Nt(C.typeParameters)!==_?(He(b(a),w.Global_type_0_must_have_1_type_parameter_s,mp(a),_),_?rd:Yu):C:(He(b(a),w.Global_type_0_must_be_a_class_or_interface_type,mp(a)),_?rd:Yu)}function mWe(a,_){return t5(a,111551,_?w.Cannot_find_global_value_0:void 0)}function sh(a,_){return t5(a,788968,_?w.Cannot_find_global_type_0:void 0)}function G0e(a,_,b){const C=t5(a,788968,b?w.Cannot_find_global_type_0:void 0);if(C&&(Rm(C),Nt(Mt(C).typeParameters)!==_)){const M=C.declarations&&lr(C.declarations,mg);He(M,w.Global_type_0_must_have_1_type_parameter_s,mp(C),_);return}return C}function t5(a,_,b){return Ro(void 0,a,_,b,a,!1,!1,!1)}function Jv(a,_,b){const C=sh(a,b);return C||b?e5(C,_):void 0}function MZe(){return du||(du=Jv("TypedPropertyDescriptor",1,!0)||rd)}function Umt(){return jn||(jn=Jv("TemplateStringsArray",0,!0)||Yu)}function LZe(){return Mi||(Mi=Jv("ImportMeta",0,!0)||Yu)}function gWe(){if(!js){const a=Ge(0,"ImportMetaExpression"),_=LZe(),b=Ge(4,"meta",8);b.parent=a,b.links.type=_;const C=Td([b]);a.members=C,js=jo(a,C,Zn,Zn,Zn)}return js}function hWe(a){return X_||(X_=Jv("ImportCallOptions",0,a))||Yu}function yWe(a){return Za||(Za=mWe("Symbol",a))}function vWe(a){return Qc||(Qc=sh("SymbolConstructor",a))}function dPe(){return Al||(Al=Jv("Symbol",0,!1))||Yu}function CB(a){return N_||(N_=Jv("Promise",1,a))||rd}function kue(a){return zp||(zp=Jv("PromiseLike",1,a))||rd}function DB(a){return gh||(gh=mWe("Promise",a))}function Hmt(a){return Wh||(Wh=Jv("PromiseConstructorLike",0,a))||Yu}function pPe(a){return MA||(MA=Jv("AsyncIterable",1,a))||rd}function OZe(a){return aw||(aw=Jv("AsyncIterator",3,a))||rd}function bWe(a){return DI||(DI=Jv("AsyncIterableIterator",1,a))||rd}function V4(a){return Me||(Me=Jv("AsyncGenerator",3,a))||rd}function Pue(a){return Gv||(Gv=Jv("Iterable",1,a))||rd}function vx(a){return jv||(jv=Jv("Iterator",3,a))||rd}function FZe(a){return vy||(vy=Jv("IterableIterator",1,a))||rd}function Jmt(a){return ub||(ub=Jv("Generator",3,a))||rd}function $mt(a){return E0||(E0=Jv("IteratorYieldResult",1,a))||rd}function vw(a){return P2||(P2=Jv("IteratorReturnResult",1,a))||rd}function _te(a){return $l||($l=Jv("Disposable",0,a))||Yu}function WZe(a){return y_||(y_=Jv("AsyncDisposable",0,a))||Yu}function BZe(a,_=0){const b=t5(a,788968,void 0);return b&&e5(b,_)}function qmt(){return l_||(l_=G0e("Extract",2,!0)||Ir),l_===Ir?void 0:l_}function zZe(){return Ph||(Ph=G0e("Omit",2,!0)||Ir),Ph===Ir?void 0:Ph}function TWe(a){return Ap||(Ap=G0e("Awaited",1,a)||(a?Ir:void 0)),Ap===Ir?void 0:Ap}function SWe(){return Mb||(Mb=Jv("BigInt",0,!1))||Yu}function Kmt(a){return e??(e=Jv("ClassDecoratorContext",1,a))??rd}function EWe(a){return n??(n=Jv("ClassMethodDecoratorContext",2,a))??rd}function GZe(a){return i??(i=Jv("ClassGetterDecoratorContext",2,a))??rd}function Xmt(a){return c??(c=Jv("ClassSetterDecoratorContext",2,a))??rd}function Ymt(a){return u??(u=Jv("ClassAccessorDecoratorContext",2,a))??rd}function Qmt(a){return d??(d=Jv("ClassAccessorDecoratorTarget",2,a))??rd}function jZe(a){return h??(h=Jv("ClassAccessorDecoratorResult",2,a))??rd}function Zmt(a){return S??(S=Jv("ClassFieldDecoratorContext",2,a))??rd}function j0e(){return _x||(_x=mWe("NaN",!1))}function VZe(){return _S||(_S=G0e("Record",2,!0)||Ir),_S===Ir?void 0:_S}function Nue(a,_){return a!==rd?jA(a,_):Yu}function UZe(a){return Nue(MZe(),[a])}function xWe(a){return Nue(Pue(!0),[a])}function W1(a,_){return Nue(_?ya:fi,[a])}function AWe(a){switch(a.kind){case 190:return 2;case 191:return HZe(a);case 202:return a.questionToken?2:a.dotDotDotToken?HZe(a):1;default:return 1}}function HZe(a){return Fue(a.type)?4:8}function egt(a){const _=BI(a.parent);if(Fue(a))return _?ya:fi;const C=Vn(a.elements,AWe);return bw(C,_,Vn(a.elements,V0e))}function V0e(a){return rS(a)||Pu(a)?a:void 0}function mPe(a,_){return!!bO(a)||gPe(a)&&(a.kind===188?U4(a.elementType):a.kind===189?gt(a.elements,U4):_||gt(a.typeArguments,U4))}function gPe(a){const _=a.parent;switch(_.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return gPe(_);case 265:return!0}return!1}function U4(a){switch(a.kind){case 183:return uPe(a)||!!(VA(a,788968).flags&524288);case 186:return!0;case 198:return a.operator!==158&&U4(a.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return U4(a.type);case 191:return a.type.kind!==188||U4(a.type.elementType);case 192:case 193:return gt(a.types,U4);case 199:return U4(a.objectType)||U4(a.indexType);case 194:return U4(a.checkType)||U4(a.extendsType)||U4(a.trueType)||U4(a.falseType)}return!1}function tgt(a){const _=ge(a);if(!_.resolvedType){const b=egt(a);if(b===rd)_.resolvedType=Yu;else if(!(a.kind===189&>(a.elements,C=>!!(AWe(C)&8)))&&mPe(a))_.resolvedType=a.kind===189&&a.elements.length===0?b:EV(b,a,void 0);else{const C=a.kind===188?[wl(a.elementType)]:Vn(a.elements,wl);_.resolvedType=hPe(b,C)}}return _.resolvedType}function BI(a){return KN(a)&&a.operator===148}function $v(a,_,b=!1,C=[]){const M=bw(_||Vn(a,z=>1),b,C);return M===rd?Yu:a.length?hPe(M,a):M}function bw(a,_,b){if(a.length===1&&a[0]&4)return _?ya:fi;const C=Qo(b,Z=>Z?Im(Z):void 0),M=Vn(a,Z=>Z&1?"#":Z&2?"?":Z&4?".":"*").join()+(_?"R":"")+(C.length?","+C.join(","):"");let z=Ku.get(M);return z||Ku.set(M,z=ZR(a,_,b)),z}function ZR(a,_,b){const C=a.length,M=dp(a,Pt=>!!(Pt&9));let z;const Z=[];let me=0;if(C){z=new Array(C);for(let Pt=0;Pt!!(a.elementFlags[bi]&8&&hr.flags&1179648));if(yn>=0)return Rue(Vn(_,(hr,bi)=>a.elementFlags[bi]&8?hr:co))?bh(_[yn],hr=>rK(a,vz(_,yn,hr))):_r}const z=[],Z=[],me=[];let Se=-1,Je=-1,vt=-1;for(let yn=0;yn<_.length;yn++){const hr=_[yn],bi=a.elementFlags[yn];if(bi&8)if(hr.flags&58982400||Ty(hr))dn(hr,8,(b=a.labeledElementDeclarations)==null?void 0:b[yn]);else if(_p(hr)){const Wo=Fb(hr);if(Wo.length+z.length>=1e4)return He(ue,rC(ue)?w.Type_produces_a_tuple_type_that_is_too_large_to_represent:w.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_r;Ot(Wo,(aa,$s)=>{var Ba;return dn(aa,hr.target.elementFlags[$s],(Ba=hr.target.labeledElementDeclarations)==null?void 0:Ba[$s])})}else dn(iM(hr)&&pb(hr,an)||_r,4,(C=a.labeledElementDeclarations)==null?void 0:C[yn]);else dn(hr,bi,(M=a.labeledElementDeclarations)==null?void 0:M[yn])}for(let yn=0;yn=0&&JeZ[Je+hr]&8?s2(yn,an):yn)),z.splice(Je+1,vt-Je),Z.splice(Je+1,vt-Je),me.splice(Je+1,vt-Je));const Pt=bw(Z,a.readonly,me);return Pt===rd?Yu:Z.length?jA(Pt,z):Pt;function dn(yn,hr,bi){hr&1&&(Se=Z.length),hr&4&&Je<0&&(Je=Z.length),hr&6&&(vt=Z.length),z.push(hr&2?fm(yn,!0):yn),Z.push(hr),me.push(bi)}}function eM(a,_,b=0){const C=a.target,M=Fo(a)-b;return _>C.fixedLength?uBe(a)||$v(Zn):$v(Tm(a).slice(_,M),C.elementFlags.slice(_,M),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(_,M))}function zk(a){return gl(ur(bz(a.target.fixedLength,_=>qv(""+_)),YP(a.target.readonly?ya:fi)))}function JZe(a,_){const b=Ho(a.elementFlags,C=>!(C&_));return b>=0?b:a.elementFlags.length}function iK(a,_){return a.elementFlags.length-Ms(a.elementFlags,b=>!(b&_))-1}function CWe(a){return a.fixedLength+iK(a,3)}function Fb(a){const _=Tm(a),b=Fo(a);return _.length===b?_:_.slice(0,b)}function $Ze(a){return fm(wl(a.type),!0)}function Gh(a){return a.id}function W2(a,_){return ZS(a,_,Gh,pf)>=0}function $6(a,_){const b=ZS(a,_,Gh,pf);return b<0?(a.splice(~b,0,_),!0):!1}function U0e(a,_,b){const C=b.flags;if(!(C&131072))if(_|=C&473694207,C&465829888&&(_|=33554432),b===mt&&(_|=8388608),!Ye&&C&98304)ji(b)&65536||(_|=4194304);else{const M=a.length,z=M&&b.id>a[M-1].id?~M:ZS(a,b,Gh,pf);z<0&&a.splice(~z,0,b)}return _}function zm(a,_,b){let C;for(const M of b)M!==C&&(_=M.flags&1048576?zm(a,_|(IB(M)?1048576:0),M.types):U0e(a,_,M),C=M);return _}function ngt(a,_){var b;if(a.length<2)return a;const C=La(a),M=Aa.get(C);if(M)return M;const z=_&>(a,Je=>!!(Je.flags&524288)&&!Ty(Je)&&Z6(K0(Je))),Z=a.length;let me=Z,Se=0;for(;me>0;){me--;const Je=a[me];if(z||Je.flags&469499904){if(Je.flags&262144&&DE(Je).flags&1048576){Vk(Je,gl(Vn(a,dn=>dn===Je?vs:dn)),Wl)&&zC(a,me);continue}const vt=Je.flags&61603840?lr(Vp(Je),dn=>rA(Vo(dn))):void 0,Pt=vt&&B1(Vo(vt));for(const dn of a)if(Je!==dn){if(Se===1e5&&Se/(Z-me)*Z>1e6){(b=tu)==null||b.instant(tu.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:a.map(hr=>hr.id)}),He(ue,w.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Se++,vt&&dn.flags&61603840){const yn=wm(dn,vt.escapedName);if(yn&&rA(yn)&&B1(yn)!==Pt)continue}if(Vk(Je,dn,Wl)&&(!(ji(UT(Je))&1)||!(ji(UT(dn))&1)||s5(Je,dn))){zC(a,me);break}}}}return Aa.set(C,a),a}function rgt(a,_,b){let C=a.length;for(;C>0;){C--;const M=a[C],z=M.flags;(z&402653312&&_&4||z&256&&_&8||z&2048&&_&64||z&8192&&_&4096||b&&z&32768&&_&16384||jk(M)&&W2(a,M.regularType))&&zC(a,C)}}function igt(a){const _=gi(a,b=>!!(b.flags&134217728)&&H4(b));if(_.length){let b=a.length;for(;b>0;){b--;const C=a[b];C.flags&128&>(_,M=>hbe(C,M))&&zC(a,b)}}}function IB(a){return!!(a.flags&1048576&&(a.aliasSymbol||a.origin))}function gT(a,_){for(const b of _)if(b.flags&1048576){const C=b.origin;b.aliasSymbol||C&&!(C.flags&1048576)?Dy(a,b):C&&C.flags&1048576&&gT(a,C.types)}}function n5(a,_){const b=gC(a);return b.types=_,b}function gl(a,_=1,b,C,M){if(a.length===0)return vs;if(a.length===1)return a[0];if(a.length===2&&!M&&(a[0].flags&1048576||a[1].flags&1048576)){const z=_===0?"N":_===2?"S":"L",Z=a[0].id=2&&z[0]===Ui&&z[1]===We&&zC(z,1),(Z&402664352||Z&16384&&Z&32768)&&rgt(z,Z,!!(_&2)),Z&128&&Z&134217728&&igt(z),_===2&&(z=ngt(z,!!(Z&524288)),!z))return _r;if(z.length===0)return Z&65536?Z&4194304?$e:Zt:Z&32768?Z&4194304?Ui:xu:vs}if(!M&&Z&1048576){const Se=[];gT(Se,a);const Je=[];for(const Pt of z)gt(Se,dn=>W2(dn.types,Pt))||Je.push(Pt);if(!b&&Se.length===1&&Je.length===0)return Se[0];if(Em(Se,(Pt,dn)=>Pt+dn.types.length,0)+Je.length===z.length){for(const Pt of Se)$6(Je,Pt);M=n5(1048576,Je)}}const me=(Z&36323331?0:32768)|(Z&2097152?16777216:0);return vPe(z,me,b,C,M)}function ogt(a,_){let b;const C=[];for(const z of a){const Z=F2(z);if(Z){if(Z.kind!==0&&Z.kind!==1||b&&!H0e(b,Z))return;b=Z,C.push(Z.type)}else{const me=_!==2097152?j(z):void 0;if(me!==rr&&me!==mi)return}}if(!b)return;const M=xB(C,_);return YF(b.kind,b.parameterName,b.parameterIndex,M)}function H0e(a,_){return a.kind===_.kind&&a.parameterIndex===_.parameterIndex}function vPe(a,_,b,C,M){if(a.length===0)return vs;if(a.length===1)return a[0];const Z=(M?M.flags&1048576?`|${La(M.types)}`:M.flags&2097152?`&${La(M.types)}`:`#${M.type.id}|${La(a)}`:La(a))+AC(b,C);let me=al.get(Z);return me||(me=Vv(1048576),me.objectFlags=_|hw(a,98304),me.types=a,me.origin=M,me.aliasSymbol=b,me.aliasTypeArguments=C,a.length===2&&a[0].flags&512&&a[1].flags&512&&(me.flags|=16,me.intrinsicName="boolean"),al.set(Z,me)),me}function qZe(a){const _=ge(a);if(!_.resolvedType){const b=bO(a);_.resolvedType=gl(Vn(a.types,wl),1,b,bx(b))}return _.resolvedType}function KZe(a,_,b){const C=b.flags;return C&2097152?XZe(a,_,b.types):(By(b)?_&16777216||(_|=16777216,a.set(b.id.toString(),b)):(C&3?b===mt&&(_|=8388608):(Ye||!(C&98304))&&(b===We&&(_|=262144,b=Ui),a.has(b.id.toString())||(b.flags&109472&&_&109472&&(_|=67108864),a.set(b.id.toString(),b))),_|=C&473694207),_)}function XZe(a,_,b){for(const C of b)_=KZe(a,_,B1(C));return _}function US(a,_){let b=a.length;for(;b>0;){b--;const C=a[b];(C.flags&4&&_&402653312||C.flags&8&&_&256||C.flags&64&&_&2048||C.flags&4096&&_&8192||C.flags&16384&&_&32768||By(C)&&_&470302716)&&zC(a,b)}}function tM(a,_){for(const b of a)if(!W2(b.types,_)){const C=_.flags&128?xe:_.flags&288?an:_.flags&2048?Un:_.flags&8192?Qa:void 0;if(!C||!W2(b.types,C))return!1}return!0}function wue(a){let _=a.length;const b=gi(a,C=>!!(C.flags&128));for(;_>0;){_--;const C=a[_];if(C.flags&134217728){for(const M of b)if(X4(M,C)){zC(a,_);break}else if(H4(C))return!0}}return!1}function bPe(a,_){for(let b=0;b!(C.flags&_))}function agt(a){let _;const b=Ho(a,Z=>!!(ji(Z)&32768));if(b<0)return!1;let C=b+1;for(;C!!(Je.flags&1048576&&Je.types[0].flags&32768))){const Je=gt(Z,Ste)?We:Ui;bPe(Z,32768),Se=gl([Dd(Z),Je],1,_,b)}else if(jr(Z,Je=>!!(Je.flags&1048576&&(Je.types[0].flags&65536||Je.types[1].flags&65536))))bPe(Z,65536),Se=gl([Dd(Z),$e],1,_,b);else{if(!Rue(Z))return _r;const Je=sgt(Z),vt=gt(Je,Pt=>!!(Pt.flags&2097152))&&J0e(Je)>J0e(Z)?n5(2097152,Z):void 0;Se=gl(Je,1,_,b,vt)}else Se=DWe(Z,_,b);mc.set(me,Se)}return Se}function YZe(a){return Em(a,(_,b)=>b.flags&1048576?_*b.types.length:b.flags&131072?0:_,1)}function Rue(a){var _;const b=YZe(a);return b>=1e5?((_=tu)==null||_.instant(tu.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:a.map(C=>C.id),size:b}),He(ue,w.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function sgt(a){const _=YZe(a),b=[];for(let C=0;C<_;C++){const M=a.slice();let z=C;for(let me=a.length-1;me>=0;me--)if(a[me].flags&1048576){const Se=a[me].types,Je=Se.length;M[me]=Se[z%Je],z=Math.floor(z/Je)}const Z=Dd(M);Z.flags&131072||b.push(Z)}return b}function QZe(a){return!(a.flags&3145728)||a.aliasSymbol?1:a.flags&1048576&&a.origin?QZe(a.origin):J0e(a.types)}function J0e(a){return Em(a,(_,b)=>_+QZe(b),0)}function yS(a,_){return!!(a.flags&76)&&_===uS}function dte(a){const _=ge(a);if(!_.resolvedType){const b=bO(a),C=Vn(a.types,wl),M=C.length===2&&(yS(C[0],C[1])||yS(C[1],C[0]));_.resolvedType=Dd(C,b,bx(b),M)}return _.resolvedType}function IWe(a,_){const b=Vv(4194304);return b.type=a,b.indexFlags=_,b}function ZZe(a){const _=gC(4194304);return _.type=a,_}function eet(a,_){return _&1?a.resolvedStringIndexType||(a.resolvedStringIndexType=IWe(a,1)):a.resolvedIndexType||(a.resolvedIndexType=IWe(a,0))}function kWe(a,_){const b=L1(a),C=mT(a),M=Vg(a.target||a);if(!M&&!(_&2))return C;const z=[];if(O4(a)){if(HS(C))return eet(a,_);{const Se=O1(c0(a));KR(Se,8576,!!(_&1),me)}}else e8(AE(C),me);HS(C)&&e8(C,me);const Z=_&2?D0(gl(z),Se=>!(Se.flags&5)):gl(z);if(Z.flags&1048576&&C.flags&1048576&&La(Z.types)===La(C.types))return C;return Z;function me(Se){const Je=M?Nf(M,IV(a.mapper,b,Se)):Se;z.push(Je===xe?Ha:Je)}}function zI(a){const _=L1(a);return b(Vg(a)||_);function b(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===_:C.flags&137363456?jr(C.types,b):C.flags&8388608?b(C.objectType)&&b(C.indexType):C.flags&33554432?b(C.baseType)&&b(C.constraint):C.flags&268435456?b(C.type):!1}}function q6(a){if(Gu(a))return vs;if(nS(a))return B1(n_(a));if(am(a))return B1(Pw(a));const _=WN(a);return _!==void 0?qv(lf(_)):Nr(a)?B1(n_(a)):vs}function pte(a,_,b){if(b||!(Vy(a)&24)){let C=Mt($R(a)).nameType;if(!C){const M=o_(a.valueDeclaration);C=a.escapedName==="default"?qv("default"):M&&q6(M)||(vH(a)?void 0:qv(mp(a)))}if(C&&C.flags&_)return C}return vs}function PWe(a,_){return!!(a.flags&_||a.flags&2097152&>(a.types,b=>PWe(b,_)))}function tet(a,_,b){const C=b&&(ji(a)&7||a.aliasSymbol)?ZZe(a):void 0,M=Vn(Vp(a),Z=>pte(Z,_)),z=Vn(T_(a),Z=>Z!==pa&&PWe(Z.keyType,_)?Z.keyType===xe&&_&8?Ha:Z.keyType:vs);return gl(Hi(M,z),1,void 0,void 0,C)}function TPe(a,_=0){return!!(a.flags&58982400||u0(a)||Ty(a)&&!zI(a)||a.flags&1048576&&!(_&4)&&Xe(a)||a.flags&2097152&&cy(a,465829888)&>(a.types,By))}function YP(a,_=cr){return a=HT(a),TPe(a,_)?eet(a,_):a.flags&1048576?Dd(Vn(a.types,b=>YP(b,_))):a.flags&2097152?gl(Vn(a.types,b=>YP(b,_))):ji(a)&32?kWe(a,_):a===mt?mt:a.flags&2?vs:a.flags&131073?x_:tet(a,(_&2?128:402653316)|(_&1?0:12584),_===cr)}function SPe(a){if(kn)return a;const _=qmt();return _?Mc(_,[a,xe]):xe}function Yd(a){const _=SPe(YP(a));return _.flags&131072?xe:_}function $0e(a){const _=ge(a);if(!_.resolvedType)switch(a.operator){case 143:_.resolvedType=YP(wl(a.type));break;case 158:_.resolvedType=a.type.kind===155?PB(mH(a.parent)):_r;break;case 148:_.resolvedType=wl(a.type);break;default:ce.assertNever(a.operator)}return _.resolvedType}function ed(a){const _=ge(a);return _.resolvedType||(_.resolvedType=kB([a.head.text,...Vn(a.templateSpans,b=>b.literal.text)],Vn(a.templateSpans,b=>wl(b.type)))),_.resolvedType}function kB(a,_){const b=Ho(_,Je=>!!(Je.flags&1179648));if(b>=0)return Rue(_)?bh(_[b],Je=>kB(a,vz(_,b,Je))):_r;if(ni(_,mt))return mt;const C=[],M=[];let z=a[0];if(!Se(a,_))return xe;if(C.length===0)return qv(z);if(M.push(z),jr(M,Je=>Je==="")){if(jr(C,Je=>!!(Je.flags&4)))return xe;if(C.length===1&&H4(C[0]))return C[0]}const Z=`${La(C)}|${Vn(M,Je=>Je.length).join(",")}|${M.join("")}`;let me=Xu.get(Z);return me||Xu.set(Z,me=NWe(M,C)),me;function Se(Je,vt){for(let Pt=0;Ptr5(a,b)):_.flags&128?qv(AV(a,_.value)):_.flags&134217728?kB(...wWe(a,_.texts,_.types)):_.flags&268435456&&a===_.symbol?_:_.flags&268435461||HS(_)?JT(a,_):aK(_)?JT(a,kB(["",""],[_])):_}function AV(a,_){switch(aj.get(a.escapedName)){case 0:return _.toUpperCase();case 1:return _.toLowerCase();case 2:return _.charAt(0).toUpperCase()+_.slice(1);case 3:return _.charAt(0).toLowerCase()+_.slice(1)}return _}function wWe(a,_,b){switch(aj.get(a.escapedName)){case 0:return[_.map(C=>C.toUpperCase()),b.map(C=>r5(a,C))];case 1:return[_.map(C=>C.toLowerCase()),b.map(C=>r5(a,C))];case 2:return[_[0]===""?_:[_[0].charAt(0).toUpperCase()+_[0].slice(1),..._.slice(1)],_[0]===""?[r5(a,b[0]),...b.slice(1)]:b];case 3:return[_[0]===""?_:[_[0].charAt(0).toLowerCase()+_[0].slice(1),..._.slice(1)],_[0]===""?[r5(a,b[0]),...b.slice(1)]:b]}return[_,b]}function JT(a,_){const b=`${Bp(a)},${Gh(_)}`;let C=Lo.get(b);return C||Lo.set(b,C=Tw(a,_)),C}function Tw(a,_){const b=su(268435456,a);return b.type=_,b}function vO(a,_,b,C,M){const z=Vv(8388608);return z.objectType=a,z.indexType=_,z.accessFlags=b,z.aliasSymbol=C,z.aliasTypeArguments=M,z}function oK(a){if(Wt)return!1;if(ji(a)&4096)return!0;if(a.flags&1048576)return jr(a.types,oK);if(a.flags&2097152)return gt(a.types,oK);if(a.flags&465829888){const _=mO(a);return _!==a&&oK(_)}return!1}function CV(a,_){return yv(a)?vv(a):_&&_y(_)?WN(_):void 0}function i5(a,_){if(_.flags&8208){const b=Kr(a.parent,C=>!Kf(C))||a.parent;return ib(b)?IN(b)&&An(a)&&Xet(b,a):jr(_.declarations,C=>!S_(C)||ln(C))}return!0}function RWe(a,_,b,C,M,z){const Z=M&&M.kind===212?M:void 0,me=M&&Gu(M)?void 0:CV(b,M);if(me!==void 0){if(z&256)return oL(_,me)||gn;const Je=Fn(_,me);if(Je){if(z&64&&M&&Je.declarations&&Bt(Je)&&i5(M,Je)){const Pt=(Z==null?void 0:Z.argumentExpression)??(XN(M)?M.indexType:M);Wn(Pt,Je.declarations,me)}if(Z){if(FV(Je,Z,uze(Z.expression,_.symbol)),nwe(Z,Je,QM(Z))){He(Z.argumentExpression,w.Cannot_assign_to_0_because_it_is_a_read_only_property,Cl(Je));return}if(z&8&&(ge(M).resolvedSymbol=Je),Ex(Z,Je))return qr}const vt=Vo(Je);return Z&&QM(Z)!==1?n8(Z,vt):M&&XN(M)&&Ste(vt)?gl([vt,Ui]):vt}if(iA(_,_p)&&FT(me)){const vt=+me;if(M&&iA(_,Pt=>!Pt.target.hasRestElement)&&!(z&16)){const Pt=q0e(M);if(_p(_)){if(vt<0)return He(Pt,w.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ui;He(Pt,w.Tuple_type_0_of_length_1_has_no_element_at_index_2,oa(_),Fo(_),lf(me))}else He(Pt,w.Property_0_does_not_exist_on_type_1,lf(me),oa(_))}if(vt>=0)return Se(Cd(_,an)),lBe(_,vt,z&1?We:void 0)}}if(!(b.flags&98304)&&lh(b,402665900)){if(_.flags&131073)return _;const Je=qP(_,b)||Cd(_,xe);if(Je){if(z&2&&Je.keyType!==an){Z&&He(Z,w.Type_0_cannot_be_used_to_index_type_1,oa(b),oa(a));return}if(M&&Je.keyType===xe&&!lh(b,12)){const vt=q0e(M);return He(vt,w.Type_0_cannot_be_used_as_an_index_type,oa(b)),z&1?gl([Je.type,We]):Je.type}return Se(Je),z&1&&!(_.symbol&&_.symbol.flags&384&&b.symbol&&b.flags&1024&&Uf(b.symbol)===_.symbol)?gl([Je.type,We]):Je.type}if(b.flags&131072)return vs;if(oK(_))return gn;if(Z&&!Dfe(_)){if(zu(_)){if(Wt&&b.flags&384)return no.add(kc(Z,w.Property_0_does_not_exist_on_type_1,b.value,oa(_))),Ui;if(b.flags&12){const vt=Vn(_.properties,Pt=>Vo(Pt));return gl(ur(vt,Ui))}}if(_.symbol===gr&&me!==void 0&&gr.exports.has(me)&&gr.exports.get(me).flags&418)He(Z,w.Property_0_does_not_exist_on_type_1,lf(me),oa(_));else if(Wt&&!Le.suppressImplicitAnyIndexErrors&&!(z&128))if(me!==void 0&&m5(me,_)){const vt=oa(_);He(Z,w.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,me,vt,vt+"["+Yv(Z.argumentExpression)+"]")}else if(pb(_,an))He(Z.argumentExpression,w.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let vt;if(me!==void 0&&(vt=lze(me,_)))vt!==void 0&&He(Z.argumentExpression,w.Property_0_does_not_exist_on_type_1_Did_you_mean_2,me,oa(_),vt);else{const Pt=vht(_,Z,b);if(Pt!==void 0)He(Z,w.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,oa(_),Pt);else{let dn;if(b.flags&1024)dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,"["+oa(b)+"]",oa(_));else if(b.flags&8192){const yn=Dg(b.symbol,Z);dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,"["+yn+"]",oa(_))}else b.flags&128||b.flags&256?dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,b.value,oa(_)):b.flags&12&&(dn=Es(void 0,w.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,oa(b),oa(_)));dn=Es(dn,w.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,oa(C),oa(_)),no.add(RN(ns(Z),Z,dn))}}}return}}if(oK(_))return gn;if(M){const Je=q0e(M);b.flags&384?He(Je,w.Property_0_does_not_exist_on_type_1,""+b.value,oa(_)):b.flags&12?He(Je,w.Type_0_has_no_matching_index_signature_for_type_1,oa(_),oa(b)):He(Je,w.Type_0_cannot_be_used_as_an_index_type,oa(b))}if(Q_(b))return b;return;function Se(Je){Je&&Je.isReadonly&&Z&&(IS(Z)||kde(Z))&&He(Z,w.Index_signature_in_type_0_only_permits_reading,oa(_))}}function q0e(a){return a.kind===212?a.argumentExpression:a.kind===199?a.indexType:a.kind===167?a.expression:a}function aK(a){return a.flags&2097152?gt(a.types,_=>!!(_.flags&101248)||aK(_)):!!(a.flags&77)||H4(a)}function H4(a){return!!(a.flags&134217728)&&jr(a.types,aK)||!!(a.flags&268435456)&&aK(a.type)}function mte(a){return!!Gk(a)}function nM(a){return!!(Gk(a)&4194304)}function HS(a){return!!(Gk(a)&8388608)}function Gk(a){return a.flags&137363456?(a.objectFlags&2097152||(a.objectFlags|=2097152|Em(a.types,(_,b)=>_|Gk(b),0)),a.objectFlags&12582912):a.flags&33554432?(a.objectFlags&2097152||(a.objectFlags|=2097152|Gk(a.baseType)|Gk(a.constraint)),a.objectFlags&12582912):(a.flags&58982400||Ty(a)||u0(a)?4194304:0)|(a.flags&331612160&&!H4(a)?8388608:0)}function gb(a,_){return a.flags&8388608?cgt(a,_):a.flags&16777216?lgt(a,_):a}function ret(a,_,b){if(a.flags&1048576||a.flags&2097152&&!TPe(a)){const C=Vn(a.types,M=>gb(s2(M,_),b));return a.flags&2097152||b?Dd(C):gl(C)}}function gte(a,_,b){if(_.flags&1048576){const C=Vn(_.types,M=>gb(s2(a,M),b));return b?Dd(C):gl(C)}}function cgt(a,_){const b=_?"simplifiedForWriting":"simplifiedForReading";if(a[b])return a[b]===nm?a:a[b];a[b]=nm;const C=gb(a.objectType,_),M=gb(a.indexType,_),z=gte(C,M,_);if(z)return a[b]=z;if(!(M.flags&465829888)){const Z=ret(C,M,_);if(Z)return a[b]=Z}if(u0(C)&&M.flags&296){const Z=jI(C,M.flags&8?0:C.target.fixedLength,0,_);if(Z)return a[b]=Z}return Ty(C)&&(!Vg(C)||sy(C))?a[b]=bh(K6(C,a.indexType),Z=>gb(Z,_)):a[b]=a}function lgt(a,_){const b=a.checkType,C=a.extendsType,M=QP(a),z=X6(a);if(z.flags&131072&&np(M)===np(b)){if(b.flags&1||Mp(wB(b),wB(C)))return gb(M,_);if(EPe(b,C))return vs}else if(M.flags&131072&&np(z)===np(b)){if(!(b.flags&1)&&Mp(wB(b),wB(C)))return vs;if(b.flags&1||EPe(b,C))return gb(z,_)}return a}function EPe(a,_){return!!(gl([jp(a,_),vs]).flags&131072)}function K6(a,_){const b=IE([L1(a)],[_]),C=K4(a.mapper,b);return Nf(SC(a.target||a),C)}function s2(a,_,b=0,C,M,z){return Wb(a,_,b,C,M,z)||(C?_r:co)}function J4(a,_){return iA(a,b=>{if(b.flags&384){const C=vv(b);if(FT(C)){const M=+C;return M>=0&&M<_}}return!1})}function Wb(a,_,b=0,C,M,z){if(a===mt||_===mt)return mt;if(a=HT(a),Aet(a)&&!(_.flags&98304)&&lh(_,12)&&(_=xe),Le.noUncheckedIndexedAccess&&b&32&&(b|=1),HS(_)||(C&&C.kind!==199?u0(a)&&!J4(_,CWe(a.target)):nM(a)&&!(_p(a)&&J4(_,CWe(a.target)))||Xe(a))){if(a.flags&3)return a;const me=b&1,Se=a.id+","+_.id+","+me+AC(M,z);let Je=jc.get(Se);return Je||jc.set(Se,Je=vO(a,_,me,M,z)),Je}const Z=W4(a);if(_.flags&1048576&&!(_.flags&16)){const me=[];let Se=!1;for(const Je of _.types){const vt=RWe(a,Z,Je,_,C,b|(Se?128:0));if(vt)me.push(vt);else if(C)Se=!0;else return}return Se?void 0:b&4?Dd(me,M,z):gl(me,1,M,z)}return RWe(a,Z,_,_,C,b|8|64)}function iet(a){const _=ge(a);if(!_.resolvedType){const b=wl(a.objectType),C=wl(a.indexType),M=bO(a);_.resolvedType=s2(b,C,0,a,M,bx(M))}return _.resolvedType}function xPe(a){const _=ge(a);if(!_.resolvedType){const b=Uv(32,a.symbol);b.declaration=a,b.aliasSymbol=bO(a),b.aliasTypeArguments=bx(b.aliasSymbol),_.resolvedType=b,mT(b)}return _.resolvedType}function np(a){return a.flags&33554432?np(a.baseType):a.flags&8388608&&(a.objectType.flags&33554432||a.indexType.flags&33554432)?s2(np(a.objectType),np(a.indexType)):a}function sK(a){const _=Wi(a);return _&&(nM(_)||HS(_))?Hy(a):a}function K0e(a){return m6(a)&&Nt(a.elements)>0&&!gt(a.elements,_=>GY(_)||gW(_)||rS(_)&&!!(_.questionToken||_.dotDotDotToken))}function oet(a,_){return mte(a)||_&&_p(a)&>(Fb(a),mte)}function APe(a,_,b,C){let M,z,Z=0;for(;;){if(Z===1e3)return He(ue,w.Type_instantiation_is_excessively_deep_and_possibly_infinite),_r;const Se=Nf(np(a.checkType),_),Je=Nf(a.extendsType,_);if(Se===_r||Je===_r)return _r;if(Se===mt||Je===mt)return mt;const vt=K0e(a.node.checkType)&&K0e(a.node.extendsType)&&Nt(a.node.checkType.elements)===Nt(a.node.extendsType.elements),Pt=oet(Se,vt);let dn;if(a.inferTypeParameters){const hr=Ol(a.inferTypeParameters,sK),bi=hr!==a.inferTypeParameters?IE(a.inferTypeParameters,hr):void 0,Wo=_K(hr,void 0,0);if(bi){const $s=K4(_,bi);for(let Ba=0;Baq4(bi,Pt)),yn=IE(vt.outerTypeParameters,dn),hr=vt.isDistributive?q4(vt.checkType,yn):void 0;if(!hr||hr===vt.checkType||!(hr.flags&1179648))return a=vt,_=yn,b=void 0,C=void 0,vt.aliasSymbol&&Z++,!0}}return!1}}function QP(a){return a.resolvedTrueType||(a.resolvedTrueType=Nf(wl(a.root.node.trueType),a.mapper))}function X6(a){return a.resolvedFalseType||(a.resolvedFalseType=Nf(wl(a.root.node.falseType),a.mapper))}function CPe(a){return a.resolvedInferredTrueType||(a.resolvedInferredTrueType=a.combinedMapper?Nf(wl(a.root.node.trueType),a.combinedMapper):QP(a))}function aet(a){let _;return a.locals&&a.locals.forEach(b=>{b.flags&262144&&(_=ur(_,Rm(b)))}),_}function Mue(a){return a.isDistributive&&(jue(a.checkType,a.node.trueType)||jue(a.checkType,a.node.falseType))}function ugt(a){const _=ge(a);if(!_.resolvedType){const b=wl(a.checkType),C=bO(a),M=bx(C),z=N4(a,!0),Z=M?z:gi(z,Se=>jue(Se,a)),me={node:a,checkType:b,extendsType:wl(a.extendsType),isDistributive:!!(b.flags&262144),inferTypeParameters:aet(a),outerTypeParameters:Z,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:M};_.resolvedType=APe(me,void 0),Z&&(me.instantiations=new Map,me.instantiations.set(La(Z),_.resolvedType))}return _.resolvedType}function fgt(a){const _=ge(a);return _.resolvedType||(_.resolvedType=Ok(wi(a.typeParameter))),_.resolvedType}function set(a){return An(a)?[a]:ur(set(a.left),a.right)}function _gt(a){var _;const b=ge(a);if(!b.resolvedType){if(!BE(a))return He(a.argument,w.String_literal_expected),b.resolvedSymbol=Ir,b.resolvedType=_r;const C=a.isTypeOf?111551:a.flags&16777216?900095:788968,M=Zm(a,a.argument.literal);if(!M)return b.resolvedSymbol=Ir,b.resolvedType=_r;const z=!!((_=M.exports)!=null&&_.get("export=")),Z=$0(M,!1);if(Um(a.qualifier))if(Z.flags&C)b.resolvedType=o5(a,b,Z,C);else{const me=C===111551?w.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:w.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;He(a,me,a.argument.literal.text),b.resolvedSymbol=Ir,b.resolvedType=_r}else{const me=set(a.qualifier);let Se=Z,Je;for(;Je=me.shift();){const vt=me.length?1920:C,Pt=wa(wp(Se)),dn=a.isTypeOf||Rs(a)&&z?Fn(Vo(Pt),Je.escapedText,!1,!0):void 0,hr=(a.isTypeOf?void 0:Jn(Gt(Pt),Je.escapedText,vt))??dn;if(!hr)return He(Je,w.Namespace_0_has_no_exported_member_1,Dg(Se),Ud(Je)),b.resolvedType=_r;ge(Je).resolvedSymbol=hr,ge(Je.parent).resolvedSymbol=hr,Se=hr}b.resolvedType=o5(a,b,Se,C)}}return b.resolvedType}function o5(a,_,b,C){const M=wp(b);return _.resolvedSymbol=M,C===111551?Xbe(Vo(b),a):vD(a,M)}function MWe(a){const _=ge(a);if(!_.resolvedType){const b=bO(a);if(BA(a.symbol).size===0&&!b)_.resolvedType=uS;else{let C=Uv(16,a.symbol);C.aliasSymbol=b,C.aliasTypeArguments=bx(b),EW(a)&&a.isArrayType&&(C=W1(C)),_.resolvedType=C}}return _.resolvedType}function bO(a){let _=a.parent;for(;xR(_)||pI(_)||KN(_)&&_.operator===148;)_=_.parent;return fH(_)?wi(_):void 0}function bx(a){return a?rs(a):void 0}function X0e(a){return!!(a.flags&524288)&&!Ty(a)}function Y0e(a){return rM(a)||!!(a.flags&474058748)}function Lue(a,_){if(!(a.flags&1048576))return a;if(jr(a.types,Y0e))return lr(a.types,rM)||Yu;const b=lr(a.types,z=>!Y0e(z));if(!b||lr(a.types,z=>z!==b&&!Y0e(z)))return a;return M(b);function M(z){const Z=Td();for(const Se of Vp(z))if(!(Vy(Se)&24)){if(Q0e(Se)){const Je=Se.flags&65536&&!(Se.flags&32768),Pt=Ge(16777220,Se.escapedName,eA(Se)|(_?8:0));Pt.links.type=Je?Ui:fm(Vo(Se),!0),Pt.declarations=Se.declarations,Pt.links.nameType=Mt(Se).nameType,Pt.links.syntheticOrigin=Se,Z.set(Se.escapedName,Pt)}}const me=jo(z.symbol,Z,Zn,Zn,T_(z));return me.objectFlags|=131200,me}}function $4(a,_,b,C,M){if(a.flags&1||_.flags&1)return gn;if(a.flags&2||_.flags&2)return co;if(a.flags&131072)return _;if(_.flags&131072)return a;if(a=Lue(a,M),a.flags&1048576)return Rue([a,_])?bh(a,Je=>$4(Je,_,b,C,M)):_r;if(_=Lue(_,M),_.flags&1048576)return Rue([a,_])?bh(_,Je=>$4(a,Je,b,C,M)):_r;if(_.flags&473960444)return a;if(nM(a)||nM(_)){if(rM(a))return _;if(a.flags&2097152){const Je=a.types,vt=Je[Je.length-1];if(X0e(vt)&&X0e(_))return Dd(Hi(Je.slice(0,Je.length-1),[$4(vt,_,b,C,M)]))}return Dd([a,_])}const z=Td(),Z=new Set,me=a===Yu?T_(_):EB([a,_]);for(const Je of Vp(_))Vy(Je)&24?Z.add(Je.escapedName):Q0e(Je)&&z.set(Je.escapedName,DV(Je,M));for(const Je of Vp(a))if(!(Z.has(Je.escapedName)||!Q0e(Je)))if(z.has(Je.escapedName)){const vt=z.get(Je.escapedName),Pt=Vo(vt);if(vt.flags&16777216){const dn=Hi(Je.declarations,vt.declarations),yn=4|Je.flags&16777216,hr=Ge(yn,Je.escapedName),bi=Vo(Je),Wo=EO(bi),aa=EO(Pt);hr.links.type=Wo===aa?bi:gl([bi,aa],2),hr.links.leftSpread=Je,hr.links.rightSpread=vt,hr.declarations=dn,hr.links.nameType=Mt(Je).nameType,z.set(Je.escapedName,hr)}}else z.set(Je.escapedName,DV(Je,M));const Se=jo(b,z,Zn,Zn,Ol(me,Je=>cet(Je,M)));return Se.objectFlags|=2228352|C,Se}function Q0e(a){var _;return!gt(a.declarations,Mf)&&(!(a.flags&106496)||!((_=a.declarations)!=null&&_.some(b=>Jl(b.parent))))}function DV(a,_){const b=a.flags&65536&&!(a.flags&32768);if(!b&&_===KI(a))return a;const C=4|a.flags&16777216,M=Ge(C,a.escapedName,eA(a)|(_?8:0));return M.links.type=b?Ui:Vo(a),M.declarations=a.declarations,M.links.nameType=Mt(a).nameType,M.links.syntheticOrigin=a,M}function cet(a,_){return a.isReadonly!==_?yD(a.keyType,a.type,_,a.declaration):a}function B2(a,_,b,C){const M=su(a,b);return M.value=_,M.regularType=C||M,M}function ZP(a){if(a.flags&2976){if(!a.freshType){const _=B2(a.flags,a.value,a.symbol,a);_.freshType=_,a.freshType=_}return a.freshType}return a}function B1(a){return a.flags&2976?a.regularType:a.flags&1048576?a.regularType||(a.regularType=bh(a,B1)):a}function jk(a){return!!(a.flags&2976)&&a.freshType===a}function qv(a){let _;return Ea.get(a)||(Ea.set(a,_=B2(128,a)),_)}function bD(a){let _;return Fi.get(a)||(Fi.set(a,_=B2(256,a)),_)}function Oue(a){let _;const b=tD(a);return ta.get(b)||(ta.set(b,_=B2(2048,a)),_)}function ch(a,_,b){let C;const M=`${_}${typeof a=="string"?"@":"#"}${a}`,z=1024|(typeof a=="string"?128:256);return $a.get(M)||($a.set(M,C=B2(z,a,b)),C)}function Y6(a){if(a.literal.kind===106)return $e;const _=ge(a);return _.resolvedType||(_.resolvedType=B1(n_(a.literal))),_.resolvedType}function uet(a){const _=su(8192,a);return _.escapedName=`__@${_.symbol.escapedName}@${Bp(_.symbol)}`,_}function PB(a){if(eG(a)){const _=Sde(a)?Vl(a.left):Vl(a);if(_){const b=Mt(_);return b.uniqueESSymbolType||(b.uniqueESSymbolType=uet(_))}}return Qa}function dgt(a){const _=Q1(a,!1,!1),b=_&&_.parent;if(b&&(Jl(b)||b.kind===264)&&!e_(_)&&(!pg(_)||N7(a,_.body)))return Uy(wi(b)).thisType;if(b&&Wd(b)&&ys(b.parent)&&Qy(b.parent)===6)return Uy(Vl(b.parent.left).parent).thisType;const C=a.flags&16777216?VE(a):void 0;return C&&Dm(C)&&ys(C.parent)&&Qy(C.parent)===3?Uy(Vl(C.parent.left).parent).thisType:JI(_)&&N7(a,_.body)?Uy(wi(_)).thisType:(He(a,w.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_r)}function Z0e(a){const _=ge(a);return _.resolvedType||(_.resolvedType=dgt(a)),_.resolvedType}function fet(a){return wl(Fue(a.type)||a.type)}function Fue(a){switch(a.kind){case 196:return Fue(a.type);case 189:if(a.elements.length===1&&(a=a.elements[0],a.kind===191||a.kind===202&&a.dotDotDotToken))return Fue(a.type);break;case 188:return a.elementType}}function DPe(a){const _=ge(a);return _.resolvedType||(_.resolvedType=a.dotDotDotToken?fet(a):fm(wl(a.type),!0,!!a.questionToken))}function wl(a){return Vmt(ebe(a),a)}function ebe(a){switch(a.kind){case 133:case 319:case 320:return gn;case 159:return co;case 154:return xe;case 150:return an;case 163:return Un;case 136:return Ca;case 155:return Qa;case 116:return Ks;case 157:return Ui;case 106:return $e;case 146:return vs;case 151:return a.flags&524288&&!Wt?gn:fp;case 141:return Qr;case 197:case 110:return Z0e(a);case 201:return Y6(a);case 183:return _Pe(a);case 182:return a.assertsModifier?Ks:Ca;case 233:return _Pe(a);case 186:return pWe(a);case 188:case 189:return tgt(a);case 190:return $Ze(a);case 192:return qZe(a);case 193:return dte(a);case 321:return fPe(a);case 323:return fm(wl(a.type));case 202:return DPe(a);case 196:case 322:case 316:return wl(a.type);case 191:return fet(a);case 325:return hvt(a);case 184:case 185:case 187:case 329:case 324:case 330:return MWe(a);case 198:return $0e(a);case 199:return iet(a);case 200:return xPe(a);case 194:return ugt(a);case 195:return fgt(a);case 203:return ed(a);case 205:return _gt(a);case 80:case 166:case 211:const _=CD(a);return _?Rm(_):_r;default:return _r}}function IPe(a,_,b){if(a&&a.length)for(let C=0;CC.typeParameter),Vn(b,()=>co))}function K4(a,_){return a?zue(4,a,_):_}function FWe(a,_){return a?zue(5,a,_):_}function NB(a,_,b){return b?zue(5,Q6(a,_),b):Q6(a,_)}function IV(a,_,b){return a?zue(5,a,Q6(_,b)):Q6(_,b)}function hte(a){return!a.constraint&&!AB(a)||a.constraint===lm?a:a.restrictiveInstantiation||(a.restrictiveInstantiation=Lb(a.symbol),a.restrictiveInstantiation.constraint=lm,a.restrictiveInstantiation)}function Hy(a){const _=Lb(a.symbol);return _.target=a,_}function pgt(a,_){return YF(a.kind,a.parameterName,a.parameterIndex,Nf(a.type,_))}function cK(a,_,b){let C;if(a.typeParameters&&!b){C=Vn(a.typeParameters,Hy),_=K4(IE(a.typeParameters,C),_);for(const z of C)z.mapper=_}const M=i2(a.declaration,C,a.thisParameter&&kPe(a.thisParameter,_),IPe(a.parameters,_,kPe),void 0,void 0,a.minArgumentCount,a.flags&167);return M.target=a,M.mapper=_,M}function kPe(a,_){const b=Mt(a);if(b.type&&!X0(b.type))return a;I_(a)&1&&(a=b.target,_=K4(b.mapper,_));const C=Ge(a.flags,a.escapedName,1|I_(a)&53256);return C.declarations=a.declarations,C.parent=a.parent,C.links.target=a,C.links.mapper=_,a.valueDeclaration&&(C.valueDeclaration=a.valueDeclaration),b.nameType&&(C.links.nameType=b.nameType),C}function det(a,_,b,C){const M=a.objectFlags&4||a.objectFlags&8388608?a.node:a.symbol.declarations[0],z=ge(M),Z=a.objectFlags&4?z.resolvedType:a.objectFlags&64?a.target:a;let me=z.outerTypeParameters;if(!me){let Se=N4(M,!0);if(JI(M)){const vt=mb(M);Se=Oi(Se,vt)}me=Se||Zn;const Je=a.objectFlags&8388612?[M]:a.symbol.declarations;me=(Z.objectFlags&8388612||Z.symbol.flags&8192||Z.symbol.flags&2048)&&!Z.aliasTypeArguments?gi(me,vt=>gt(Je,Pt=>jue(vt,Pt))):me,z.outerTypeParameters=me}if(me.length){const Se=K4(a.mapper,_),Je=Vn(me,hr=>q4(hr,Se)),vt=b||a.aliasSymbol,Pt=b?C:Sw(a.aliasTypeArguments,_),dn=La(Je)+AC(vt,Pt);Z.instantiations||(Z.instantiations=new Map,Z.instantiations.set(La(me)+AC(Z.aliasSymbol,Z.aliasTypeArguments),Z));let yn=Z.instantiations.get(dn);if(!yn){const hr=IE(me,Je);yn=Z.objectFlags&4?EV(a.target,a.node,hr,vt,Pt):Z.objectFlags&32?WWe(Z,hr,vt,Pt):zWe(Z,hr,vt,Pt),Z.instantiations.set(dn,yn);const bi=ji(yn);if(yn.flags&138117121&&!(bi&524288)){const Wo=gt(Je,X0);ji(yn)&524288||(bi&52?yn.objectFlags|=524288|(Wo?1048576:0):yn.objectFlags|=Wo?0:524288)}}return yn}return a}function pet(a){return!(a.parent.kind===183&&a.parent.typeArguments&&a===a.parent.typeName||a.parent.kind===205&&a.parent.typeArguments&&a===a.parent.qualifier)}function jue(a,_){if(a.symbol&&a.symbol.declarations&&a.symbol.declarations.length===1){const C=a.symbol.declarations[0].parent;for(let M=_;M!==C;M=M.parent)if(!M||M.kind===241||M.kind===194&&B_(M.extendsType,b))return!0;return b(_)}return!0;function b(C){switch(C.kind){case 197:return!!a.isThisType;case 80:return!a.isThisType&&rC(C)&&pet(C)&&ebe(C)===a;case 186:const M=C.exprName,z=NS(M);if(!Zy(z)){const Z=ED(z),me=a.symbol.declarations[0],Se=me.kind===168?me.parent:a.isThisType?me:void 0;if(Z.declarations&&Se)return gt(Z.declarations,Je=>N7(Je,Se))||gt(C.typeArguments,b)}return!0;case 174:case 173:return!C.type&&!!C.body||gt(C.typeParameters,b)||gt(C.parameters,b)||!!C.type&&b(C.type)}return!!B_(C,b)}}function PPe(a){const _=mT(a);if(_.flags&4194304){const b=np(_.type);if(b.flags&262144)return b}}function WWe(a,_,b,C){const M=PPe(a);if(M){const z=Nf(M,_);if(M!==z)return RBe(HT(z),Z=>{if(Z.flags&61603843&&Z!==mt&&!je(Z)){if(!a.declaration.nameType){let me;if(UA(Z)||Z.flags&1&&GP(M,4)<0&&(me=Wi(M))&&iA(me,GI))return BWe(Z,a,NB(M,Z,_));if(u0(Z))return met(Z,a,M,_);if(_p(Z))return mgt(Z,a,NB(M,Z,_))}return zWe(a,NB(M,Z,_))}return Z},b,C)}return Nf(mT(a),_)===mt?mt:zWe(a,_,b,C)}function yte(a,_){return _&1?!0:_&2?!1:a}function met(a,_,b,C){const M=a.target.elementFlags,z=Vn(Fb(a),(me,Se)=>{const Je=M[Se]&8?me:M[Se]&4?W1(me):$v([me],[M[Se]]);return Je===b?_:WWe(_,NB(b,Je,C))}),Z=yte(a.target.readonly,jS(_));return $v(z,Vn(z,me=>8),Z)}function BWe(a,_,b){const C=tbe(_,an,!0,b);return je(C)?_r:W1(C,yte(Tte(a),jS(_)))}function mgt(a,_,b){const C=a.target.elementFlags,M=Vn(Fb(a),(Se,Je)=>tbe(_,qv(""+Je),!!(C[Je]&2),b)),z=jS(_),Z=z&4?Vn(C,Se=>Se&1?2:Se):z&8?Vn(C,Se=>Se&2?1:Se):C,me=yte(a.target.readonly,z);return ni(M,_r)?_r:$v(M,Z,me,a.target.labeledElementDeclarations)}function tbe(a,_,b,C){const M=IV(C,L1(a),_),z=Nf(SC(a.target||a),M),Z=jS(a);return Ye&&Z&4&&!cy(z,49152)?eL(z,!0):Ye&&Z&8&&b?JA(z,524288):z}function zWe(a,_,b,C){const M=Uv(a.objectFlags&-1572865|64,a.symbol);if(a.objectFlags&32){M.declaration=a.declaration;const z=L1(a),Z=Hy(z);M.typeParameter=Z,_=K4(Q6(z,Z),_),Z.mapper=_}return a.objectFlags&8388608&&(M.node=a.node),M.target=a,M.mapper=_,M.aliasSymbol=b||a.aliasSymbol,M.aliasTypeArguments=b?C:Sw(a.aliasTypeArguments,_),M.objectFlags|=M.aliasTypeArguments?hw(M.aliasTypeArguments):0,M}function GWe(a,_,b,C){const M=a.root;if(M.outerTypeParameters){const z=Vn(M.outerTypeParameters,Se=>q4(Se,_)),Z=La(z)+AC(b,C);let me=M.instantiations.get(Z);if(!me){const Se=IE(M.outerTypeParameters,z),Je=M.checkType,vt=M.isDistributive?q4(Je,Se):void 0;me=vt&&Je!==vt&&vt.flags&1179648?RBe(HT(vt),Pt=>APe(M,NB(Je,Pt,Se)),b,C):APe(M,Se,b,C),M.instantiations.set(Z,me)}return me}return a}function Nf(a,_){return a&&_?NPe(a,_,void 0,void 0):a}function NPe(a,_,b,C){var M;if(!X0(a))return a;if(oe===100||te>=5e6)return(M=tu)==null||M.instant(tu.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:a.id,instantiationDepth:oe,instantiationCount:te}),He(ue,w.Type_instantiation_is_excessively_deep_and_possibly_infinite),_r;ee++,te++,oe++;const z=ggt(a,_,b,C);return oe--,z}function ggt(a,_,b,C){const M=a.flags;if(M&262144)return q4(a,_);if(M&524288){const z=a.objectFlags;if(z&52){if(z&4&&!a.node){const Z=a.resolvedTypeArguments,me=Sw(Z,_);return me!==Z?hPe(a.target,me):a}return z&1024?hgt(a,_):det(a,_,b,C)}return a}if(M&3145728){const z=a.flags&1048576?a.origin:void 0,Z=z&&z.flags&3145728?z.types:a.types,me=Sw(Z,_);if(me===Z&&b===a.aliasSymbol)return a;const Se=b||a.aliasSymbol,Je=b?C:Sw(a.aliasTypeArguments,_);return M&2097152||z&&z.flags&2097152?Dd(me,Se,Je):gl(me,1,Se,Je)}if(M&4194304)return YP(Nf(a.type,_));if(M&134217728)return kB(a.texts,Sw(a.types,_));if(M&268435456)return r5(a.symbol,Nf(a.type,_));if(M&8388608){const z=b||a.aliasSymbol,Z=b?C:Sw(a.aliasTypeArguments,_);return s2(Nf(a.objectType,_),Nf(a.indexType,_),a.accessFlags,void 0,z,Z)}if(M&16777216)return GWe(a,K4(a.mapper,_),b,C);if(M&33554432){const z=Nf(a.baseType,_),Z=Nf(a.constraint,_);return z.flags&8650752&&mte(Z)?yw(z,Z):Z.flags&3||Mp(wB(z),wB(Z))?z:z.flags&8650752?yw(z,Z):Dd([Z,z])}return a}function hgt(a,_){const b=Nf(a.mappedType,_);if(!(ji(b)&32))return a;const C=Nf(a.constraintType,_);if(!(C.flags&4194304))return a;const M=qPe(Nf(a.source,_),b,C);return M||a}function wPe(a){return a.flags&402915327?a:a.permissiveInstantiation||(a.permissiveInstantiation=Nf(a,Kd))}function wB(a){return a.flags&402915327?a:(a.restrictiveInstantiation||(a.restrictiveInstantiation=Nf(a,c_),a.restrictiveInstantiation.restrictiveInstantiation=a.restrictiveInstantiation),a.restrictiveInstantiation)}function ygt(a,_){return yD(a.keyType,Nf(a.type,_),a.isReadonly,a.declaration)}function nA(a){switch(ce.assert(a.kind!==174||q2(a)),a.kind){case 218:case 219:case 174:case 262:return get(a);case 210:return gt(a.properties,nA);case 209:return gt(a.elements,nA);case 227:return nA(a.whenTrue)||nA(a.whenFalse);case 226:return(a.operatorToken.kind===57||a.operatorToken.kind===61)&&(nA(a.left)||nA(a.right));case 303:return nA(a.initializer);case 217:return nA(a.expression);case 292:return gt(a.properties,nA)||rD(a.parent)&>(a.parent.parent.children,nA);case 291:{const{initializer:_}=a;return!!_&&nA(_)}case 294:{const{expression:_}=a;return!!_&&nA(_)}}return!1}function get(a){return YH(a)||het(a)}function het(a){return a.typeParameters||bA(a)||!a.body?!1:a.body.kind!==241?nA(a.body):!!HM(a.body,_=>!!_.expression&&nA(_.expression))}function RPe(a){return(EP(a)||q2(a))&&get(a)}function yet(a){if(a.flags&524288){const _=K0(a);if(_.constructSignatures.length||_.callSignatures.length){const b=Uv(16,a.symbol);return b.members=_.members,b.properties=_.properties,b.callSignatures=Zn,b.constructSignatures=Zn,b.indexInfos=Zn,b}}else if(a.flags&2097152)return Dd(Vn(a.types,yet));return a}function eN(a,_){return Vk(a,_,qn)}function Vue(a,_){return Vk(a,_,qn)?-1:0}function jWe(a,_){return Vk(a,_,Jc)?-1:0}function vgt(a,_){return Vk(a,_,gc)?-1:0}function X4(a,_){return Vk(a,_,gc)}function vet(a,_){return Vk(a,_,Wl)}function Mp(a,_){return Vk(a,_,Jc)}function s5(a,_){return a.flags&1048576?jr(a.types,b=>s5(b,_)):_.flags&1048576?gt(_.types,b=>s5(a,b)):a.flags&2097152?gt(a.types,b=>s5(b,_)):a.flags&58982400?s5(Co(a)||co,_):By(_)?!!(a.flags&67633152):_===Ev?!!(a.flags&67633152)&&!By(a):_===S0?!!(a.flags&524288)&&DBe(a):wI(a,UT(_))||UA(_)&&!Tte(_)&&s5(a,ya)}function MPe(a,_){return Vk(a,_,au)}function nbe(a,_){return MPe(a,_)||MPe(_,a)}function JS(a,_,b,C,M,z){return dc(a,_,Jc,b,C,M,z)}function Y4(a,_,b,C,M,z){return lK(a,_,Jc,b,C,M,z,void 0)}function lK(a,_,b,C,M,z,Z,me){return Vk(a,_,b)?!0:!C||!vte(M,a,_,b,z,Z,me)?dc(a,_,b,C,z,Z,me):!1}function VWe(a){return!!(a.flags&16777216||a.flags&2097152&>(a.types,VWe))}function vte(a,_,b,C,M,z,Z){if(!a||VWe(b))return!1;if(!dc(_,b,C,void 0)&&hT(a,_,b,C,M,z,Z))return!0;switch(a.kind){case 234:if(!vo(a))break;case 294:case 217:return vte(a.expression,_,b,C,M,z,Z);case 226:switch(a.operatorToken.kind){case 64:case 28:return vte(a.right,_,b,C,M,z,Z)}break;case 210:return $We(a,_,b,C,z,Z);case 209:return JWe(a,_,b,C,z,Z);case 292:return bgt(a,_,b,C,z,Z);case 219:return UWe(a,_,b,C,z,Z)}return!1}function hT(a,_,b,C,M,z,Z){const me=Ti(_,0),Se=Ti(_,1);for(const Je of[Se,me])if(gt(Je,vt=>{const Pt=j(vt);return!(Pt.flags&131073)&&dc(Pt,b,C,void 0)})){const vt=Z||{};JS(_,b,a,M,z,vt);const Pt=vt.errors[vt.errors.length-1];return ml(Pt,kc(a,Je===Se?w.Did_you_mean_to_use_new_with_this_expression:w.Did_you_mean_to_call_this_expression)),!0}return!1}function UWe(a,_,b,C,M,z){if(E_(a.body)||gt(a.parameters,eY))return!1;const Z=NO(_);if(!Z)return!1;const me=Ti(b,0);if(!Nt(me))return!1;const Se=a.body,Je=j(Z),vt=gl(Vn(me,j));if(!dc(Je,vt,C,void 0)){const Pt=Se&&vte(Se,Je,vt,C,void 0,M,z);if(Pt)return Pt;const dn=z||{};if(dc(Je,vt,C,Se,void 0,M,dn),dn.errors)return b.symbol&&Nt(b.symbol.declarations)&&ml(dn.errors[dn.errors.length-1],kc(b.symbol.declarations[0],w.The_expected_type_comes_from_the_return_type_of_this_signature)),!(L0(a)&2)&&!wm(Je,"then")&&dc(aL(Je),vt,C,void 0)&&ml(dn.errors[dn.errors.length-1],kc(a,w.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function HWe(a,_,b){const C=Wb(_,b);if(C)return C;if(_.flags&1048576){const M=ket(a,_);if(M)return Wb(M,b)}}function bet(a,_){Iw(a,_,!1);const b=$te(a,1);return kte(),b}function rbe(a,_,b,C,M,z){let Z=!1;for(const me of a){const{errorNode:Se,innerExpression:Je,nameType:vt,errorMessage:Pt}=me;let dn=HWe(_,b,vt);if(!dn||dn.flags&8388608)continue;let yn=Wb(_,vt);if(!yn)continue;const hr=CV(vt,void 0);if(!dc(yn,dn,C,void 0)){const bi=Je&&vte(Je,yn,dn,C,void 0,M,z);if(Z=!0,!bi){const Wo=z||{},aa=Je?bet(Je,yn):yn;if(on&&Jue(aa,dn)){const $s=kc(Se,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,oa(aa),oa(dn));no.add($s),Wo.errors=[$s]}else{const $s=!!(hr&&(Fn(b,hr)||Ir).flags&16777216),Ba=!!(hr&&(Fn(_,hr)||Ir).flags&16777216);dn=l5(dn,$s),yn=l5(yn,$s&&Ba),dc(aa,dn,C,Se,Pt,M,Wo)&&aa!==yn&&dc(yn,dn,C,Se,Pt,M,Wo)}if(Wo.errors){const $s=Wo.errors[Wo.errors.length-1],Ba=yv(vt)?vv(vt):void 0,lo=Ba!==void 0?Fn(b,Ba):void 0;let Xa=!1;if(!lo){const Go=qP(b,vt);Go&&Go.declaration&&!ns(Go.declaration).hasNoDefaultLib&&(Xa=!0,ml($s,kc(Go.declaration,w.The_expected_type_comes_from_this_index_signature)))}if(!Xa&&(lo&&Nt(lo.declarations)||b.symbol&&Nt(b.symbol.declarations))){const Go=lo&&Nt(lo.declarations)?lo.declarations[0]:b.symbol.declarations[0];ns(Go).hasNoDefaultLib||ml($s,kc(Go,w.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ba&&!(vt.flags&8192)?lf(Ba):oa(vt),oa(b)))}}}}}return Z}function Tet(a,_,b,C,M,z){const Z=D0(b,$ue),me=D0(b,vt=>!$ue(vt)),Se=me!==vs?_Ge(13,0,me,void 0):void 0;let Je=!1;for(let vt=a.next();!vt.done;vt=a.next()){const{errorNode:Pt,innerExpression:dn,nameType:yn,errorMessage:hr}=vt.value;let bi=Se;const Wo=Z!==vs?HWe(_,Z,yn):void 0;if(Wo&&!(Wo.flags&8388608)&&(bi=Se?gl([Se,Wo]):Wo),!bi)continue;let aa=Wb(_,yn);if(!aa)continue;const $s=CV(yn,void 0);if(!dc(aa,bi,C,void 0)){const Ba=dn&&vte(dn,aa,bi,C,void 0,M,z);if(Je=!0,!Ba){const lo=z||{},Xa=dn?bet(dn,aa):aa;if(on&&Jue(Xa,bi)){const Go=kc(Pt,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,oa(Xa),oa(bi));no.add(Go),lo.errors=[Go]}else{const Go=!!($s&&(Fn(Z,$s)||Ir).flags&16777216),Pa=!!($s&&(Fn(_,$s)||Ir).flags&16777216);bi=l5(bi,Go),aa=l5(aa,Go&&Pa),dc(Xa,bi,C,Pt,hr,M,lo)&&Xa!==aa&&dc(aa,bi,C,Pt,hr,M,lo)}}}}return Je}function*Eet(a){if(Nt(a.properties))for(const _ of a.properties)Ek(_)||_fe(oW(_.name))||(yield{errorNode:_.name,innerExpression:_.initializer,nameType:qv(oW(_.name))})}function*Q4(a,_){if(!Nt(a.children))return;let b=0;for(let C=0;C1;let Wo,aa;if(Pue(!1)!==rd){const Ba=xWe(gn);Wo=D0(yn,lo=>Mp(lo,Ba)),aa=D0(yn,lo=>!Mp(lo,Ba))}else Wo=D0(yn,$ue),aa=D0(yn,Ba=>!$ue(Ba));if(bi){if(Wo!==vs){const Ba=$v(ANe(Je,0)),lo=Q4(Je,Se);Z=Tet(lo,Ba,Wo,C,M,z)||Z}else if(!Vk(s2(_,dn),yn,C)){Z=!0;const Ba=He(Je.openingElement.tagName,w.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Pt,oa(yn));z&&z.skipLogging&&(z.errors||(z.errors=[])).push(Ba)}}else if(aa!==vs){const Ba=hr[0],lo=xet(Ba,dn,Se);lo&&(Z=rbe(function*(){yield lo}(),_,b,C,M,z)||Z)}else if(!Vk(s2(_,dn),yn,C)){Z=!0;const Ba=He(Je.openingElement.tagName,w.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Pt,oa(yn));z&&z.skipLogging&&(z.errors||(z.errors=[])).push(Ba)}}return Z;function Se(){if(!me){const Je=Yv(a.parent.tagName),vt=pfe(VB(a)),Pt=vt===void 0?"children":lf(vt),dn=s2(b,qv(Pt)),yn=w._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;me={...yn,key:"!!ALREADY FORMATTED!!",message:Yie(void 0,yn,Je,Pt,oa(dn))}}return me}}function*TD(a,_){const b=Nt(a.elements);if(b)for(let C=0;CSe:qI(a)>Se))return C&&!(b&8)&&M(w.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,qI(a),Se),0;a.typeParameters&&a.typeParameters!==_.typeParameters&&(_=j4(_),a=Htt(a,_,void 0,Z));const vt=xx(a),Pt=Tfe(a),dn=Tfe(_);(Pt||dn)&&Nf(Pt||dn,me);const yn=_.declaration?_.declaration.kind:0,hr=!(b&3)&&ut&&yn!==174&&yn!==173&&yn!==176;let bi=-1;const Wo=xC(a);if(Wo&&Wo!==Ks){const Ba=xC(_);if(Ba){const lo=!hr&&Z(Wo,Ba,!1)||Z(Ba,Wo,C);if(!lo)return C&&M(w.The_this_types_of_each_signature_are_incompatible),0;bi&=lo}}const aa=Pt||dn?Math.min(vt,Se):Math.max(vt,Se),$s=Pt||dn?aa-1:-1;for(let Ba=0;Ba=qI(a)&&Ba=3&&_[0].flags&32768&&_[1].flags&65536&>(_,By)?67108864:0)}return!!(a.objectFlags&67108864)}return!1}function kV(a){return!!((a.flags&1048576?a.types[0]:a).flags&32768)}function Aet(a){return a.flags&524288&&!Ty(a)&&Vp(a).length===0&&T_(a).length===1&&!!Cd(a,xe)||a.flags&3145728&&jr(a.types,Aet)||!1}function OPe(a,_,b){const C=a.flags&8?Uf(a):a,M=_.flags&8?Uf(_):_;if(C===M)return!0;if(C.escapedName!==M.escapedName||!(C.flags&256)||!(M.flags&256))return!1;const z=Bp(C)+","+Bp(M),Z=za.get(z);if(Z!==void 0&&!(!(Z&4)&&Z&2&&b))return!!(Z&1);const me=Vo(M);for(const Se of Vp(Vo(C)))if(Se.flags&8){const Je=Fn(me,Se.escapedName);if(!Je||!(Je.flags&8))return b?(b(w.Property_0_is_missing_in_type_1,mp(Se),oa(Rm(M),void 0,64)),za.set(z,6)):za.set(z,2),!1}return za.set(z,1),!0}function Hue(a,_,b,C){const M=a.flags,z=_.flags;return z&1||M&131072||a===mt||z&2&&!(b===Wl&&M&1)?!0:z&131072?!1:!!(M&402653316&&z&4||M&128&&M&1024&&z&128&&!(z&1024)&&a.value===_.value||M&296&&z&8||M&256&&M&1024&&z&256&&!(z&1024)&&a.value===_.value||M&2112&&z&64||M&528&&z&16||M&12288&&z&4096||M&32&&z&32&&a.symbol.escapedName===_.symbol.escapedName&&OPe(a.symbol,_.symbol,C)||M&1024&&z&1024&&(M&1048576&&z&1048576&&OPe(a.symbol,_.symbol,C)||M&2944&&z&2944&&a.value===_.value&&OPe(a.symbol,_.symbol,C))||M&32768&&(!Ye&&!(z&3145728)||z&49152)||M&65536&&(!Ye&&!(z&3145728)||z&65536)||M&524288&&z&67108864&&!(b===Wl&&By(a)&&!(ji(a)&8192))||(b===Jc||b===au)&&(M&1||M&8&&(z&32||z&256&&z&1024)||M&256&&!(M&1024)&&(z&32||z&256&&z&1024&&a.value===_.value)||Z4(_)))}function Vk(a,_,b){if(jk(a)&&(a=a.regularType),jk(_)&&(_=_.regularType),a===_)return!0;if(b!==qn){if(b===au&&!(_.flags&131072)&&Hue(_,a,b)||Hue(a,_,b))return!0}else if(!((a.flags|_.flags)&61865984)){if(a.flags!==_.flags)return!1;if(a.flags&67358815)return!0}if(a.flags&524288&&_.flags&524288){const C=b.get(BPe(a,_,0,b,!1));if(C!==void 0)return!!(C&1)}return a.flags&469499904||_.flags&469499904?dc(a,_,b,void 0):!1}function Cet(a,_){return ji(a)&2048&&_fe(_.escapedName)}function obe(a,_){for(;;){const b=jk(a)?a.regularType:u0(a)?XWe(a,_):ji(a)&4?a.node?jA(a.target,Tm(a)):oBe(a)||a:a.flags&3145728?Det(a,_):a.flags&33554432?_?a.baseType:nK(a):a.flags&25165824?gb(a,_):a;if(b===a)return b;a=b}}function Det(a,_){const b=HT(a);if(b!==a)return b;if(a.flags&2097152&>(a.types,By)){const C=Ol(a.types,M=>obe(M,_));if(C!==a.types)return Dd(C)}return a}function XWe(a,_){const b=Fb(a),C=Ol(b,M=>M.flags&25165824?gb(M,_):M);return b!==C?rK(a.target,C):a}function dc(a,_,b,C,M,z,Z){var me;let Se,Je,vt,Pt,dn,yn,hr=0,bi=0,Wo=0,aa=0,$s=!1,Ba=0,lo,Xa;ce.assert(b!==qn||!C,"no error reporting in identity checking");const Go=Gi(a,_,3,!!C,M);if(Xa&&Ld(),$s){(me=tu)==null||me.instant(tu.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:a.id,targetId:_.id,depth:bi,targetDepth:Wo});const or=He(C||ue,w.Excessive_stack_depth_comparing_types_0_and_1,oa(a),oa(_));Z&&(Z.errors||(Z.errors=[])).push(or)}else if(Se){if(z){const fo=z();fo&&(OSe(fo,Se),Se=fo)}let or;if(M&&C&&!Go&&a.symbol){const fo=Mt(a.symbol);if(fo.originatingImport&&!WE(fo.originatingImport)&&dc(Vo(fo.target),_,b,void 0)){const Qs=kc(fo.originatingImport,w.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);or=ur(or,Qs)}}const Hr=RN(ns(C),C,Se,or);Je&&ml(Hr,...Je),Z&&(Z.errors||(Z.errors=[])).push(Hr),(!Z||!Z.skipLogging)&&no.add(Hr)}return C&&Z&&Z.skipLogging&&Go===0&&ce.assert(!!Z.errors,"missed opportunity to interact with error."),Go!==0;function Pa(or){Se=or.errorInfo,lo=or.lastSkippedInfo,Xa=or.incompatibleStack,Ba=or.overrideNextErrorInfo,Je=or.relatedInfo}function Ga(){return{errorInfo:Se,lastSkippedInfo:lo,incompatibleStack:Xa==null?void 0:Xa.slice(),overrideNextErrorInfo:Ba,relatedInfo:Je==null?void 0:Je.slice()}}function hs(or,...Hr){Ba++,lo=void 0,(Xa||(Xa=[])).push([or,...Hr])}function Ld(){const or=Xa||[];Xa=void 0;const Hr=lo;if(lo=void 0,or.length===1){nl(...or[0]),Hr&&$y(void 0,...Hr);return}let fo="";const Oa=[];for(;or.length;){const[Qs,...Ko]=or.pop();switch(Qs.code){case w.Types_of_property_0_are_incompatible.code:{fo.indexOf("new ")===0&&(fo=`(${fo})`);const ss=""+Ko[0];fo.length===0?fo=`${ss}`:rE(ss,iu(Le))?fo=`${fo}.${ss}`:ss[0]==="["&&ss[ss.length-1]==="]"?fo=`${fo}${ss}`:fo=`${fo}[${ss}]`;break}case w.Call_signature_return_types_0_and_1_are_incompatible.code:case w.Construct_signature_return_types_0_and_1_are_incompatible.code:case w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(fo.length===0){let ss=Qs;Qs.code===w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ss=w.Call_signature_return_types_0_and_1_are_incompatible:Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ss=w.Construct_signature_return_types_0_and_1_are_incompatible),Oa.unshift([ss,Ko[0],Ko[1]])}else{const ss=Qs.code===w.Construct_signature_return_types_0_and_1_are_incompatible.code||Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ll=Qs.code===w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";fo=`${ss}${fo}(${ll})`}break}case w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Oa.unshift([w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ko[0],Ko[1]]);break}case w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Oa.unshift([w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ko[0],Ko[1],Ko[2]]);break}default:return ce.fail(`Unhandled Diagnostic: ${Qs.code}`)}}fo?nl(fo[fo.length-1]===")"?w.The_types_returned_by_0_are_incompatible_between_these_types:w.The_types_of_0_are_incompatible_between_these_types,fo):Oa.shift();for(const[Qs,...Ko]of Oa){const ss=Qs.elidedInCompatabilityPyramid;Qs.elidedInCompatabilityPyramid=!1,nl(Qs,...Ko),Qs.elidedInCompatabilityPyramid=ss}Hr&&$y(void 0,...Hr)}function nl(or,...Hr){ce.assert(!!C),Xa&&Ld(),!or.elidedInCompatabilityPyramid&&(Se=Es(Se,or,...Hr))}function id(or){ce.assert(!!Se),Je?Je.push(or):Je=[or]}function $y(or,Hr,fo){Xa&&Ld();const[Oa,Qs]=dD(Hr,fo);let Ko=Hr,ss=Oa;if(Ew(Hr)&&!FPe(fo)&&(Ko=Tx(Hr),ce.assert(!Mp(Ko,fo),"generalized source shouldn't be assignable"),ss=a0(Ko)),(fo.flags&8388608&&!(Hr.flags&8388608)?fo.objectType.flags:fo.flags)&262144&&fo!==vE&&fo!==oh){const of=Co(fo);let C_;of&&(Mp(Ko,of)||(C_=Mp(Hr,of)))?nl(w._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,C_?Oa:ss,Qs,oa(of)):(Se=void 0,nl(w._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Qs,ss))}if(or)or===w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&on&&Iet(Hr,fo).length&&(or=w.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(b===au)or=w.Type_0_is_not_comparable_to_type_1;else if(Oa===Qs)or=w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(on&&Iet(Hr,fo).length)or=w.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(Hr.flags&128&&fo.flags&1048576){const of=FNe(Hr,fo);if(of){nl(w.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ss,Qs,oa(of));return}}or=w.Type_0_is_not_assignable_to_type_1}nl(or,ss,Qs)}function l2(or,Hr){const fo=Kx(or.symbol)?oa(or,or.symbol.valueDeclaration):oa(or),Oa=Kx(Hr.symbol)?oa(Hr,Hr.symbol.valueDeclaration):oa(Hr);(bu===or&&xe===Hr||K_===or&&an===Hr||ig===or&&Ca===Hr||dPe()===or&&Qa===Hr)&&nl(w._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Oa,fo)}function Cx(or,Hr,fo){return _p(or)?or.target.readonly&&ube(Hr)?(fo&&nl(w.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,oa(or),oa(Hr)),!1):GI(Hr):Tte(or)&&ube(Hr)?(fo&&nl(w.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,oa(or),oa(Hr)),!1):_p(Hr)?UA(or):!0}function kC(or,Hr,fo){return Gi(or,Hr,3,fo)}function Gi(or,Hr,fo=3,Oa=!1,Qs,Ko=0){if(or===Hr)return-1;if(or.flags&524288&&Hr.flags&402784252)return b===au&&!(Hr.flags&131072)&&Hue(Hr,or,b)||Hue(or,Hr,b,Oa?nl:void 0)?-1:(Oa&&Ps(or,Hr,or,Hr,Qs),0);const ss=obe(or,!1);let ll=obe(Hr,!0);if(ss===ll)return-1;if(b===qn)return ss.flags!==ll.flags?0:ss.flags&67358815?-1:(wf(ss,ll),Ec(ss,ll,!1,0,fo));if(ss.flags&262144&&Er(ss)===ll)return-1;if(ss.flags&470302716&&ll.flags&1048576){const of=ll.types,C_=of.length===2&&of[0].flags&98304?of[1]:of.length===3&&of[0].flags&98304&&of[1].flags&98304?of[2]:void 0;if(C_&&!(C_.flags&98304)&&(ll=obe(C_,!0),ss===ll))return-1}if(b===au&&!(ll.flags&131072)&&Hue(ll,ss,b)||Hue(ss,ll,b,Oa?nl:void 0))return-1;if(ss.flags&469499904||ll.flags&469499904){if(!(Ko&2)&&zu(ss)&&ji(ss)&8192&&Jf(ss,ll,Oa))return Oa&&$y(Qs,ss,Hr.aliasSymbol?Hr:ll),0;const C_=(b!==au||rA(ss))&&!(Ko&2)&&ss.flags&405405692&&ss!==Ev&&ll.flags&2621440&&ZWe(ll)&&(Vp(ss).length>0||BK(ss)),nd=!!(ji(ss)&2048);if(C_&&!Sgt(ss,ll,nd)){if(Oa){const O_=oa(or.aliasSymbol?or:ss),rp=oa(Hr.aliasSymbol?Hr:ll),Ug=Ti(ss,0),im=Ti(ss,1);Ug.length>0&&Gi(j(Ug[0]),ll,1,!1)||im.length>0&&Gi(j(im[0]),ll,1,!1)?nl(w.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,O_,rp):nl(w.Type_0_has_no_properties_in_common_with_type_1,O_,rp)}return 0}wf(ss,ll);const lu=ss.flags&1048576&&ss.types.length<4&&!(ll.flags&1048576)||ll.flags&1048576&&ll.types.length<4&&!(ss.flags&469499904)?Zg(ss,ll,Oa,Ko):Ec(ss,ll,Oa,Ko,fo);if(lu)return lu}return Oa&&Ps(or,Hr,ss,ll,Qs),0}function Ps(or,Hr,fo,Oa,Qs){var Ko,ss;const ll=!!oBe(or),of=!!oBe(Hr);fo=or.aliasSymbol||ll?or:fo,Oa=Hr.aliasSymbol||of?Hr:Oa;let C_=Ba>0;if(C_&&Ba--,fo.flags&524288&&Oa.flags&524288){const nd=Se;Cx(fo,Oa,!0),Se!==nd&&(C_=!!Se)}if(fo.flags&524288&&Oa.flags&402784252)l2(fo,Oa);else if(fo.symbol&&fo.flags&524288&&Ev===fo)nl(w.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ji(fo)&2048&&Oa.flags&2097152){const nd=Oa.types,kd=AD(_E.IntrinsicAttributes,C),lu=AD(_E.IntrinsicClassAttributes,C);if(!je(kd)&&!je(lu)&&(ni(nd,kd)||ni(nd,lu)))return}else Se=bn(Se,Hr);if(!Qs&&C_){lo=[fo,Oa];return}if($y(Qs,fo,Oa),fo.flags&262144&&((ss=(Ko=fo.symbol)==null?void 0:Ko.declarations)!=null&&ss[0])&&!Er(fo)){const nd=Hy(fo);if(nd.constraint=Nf(Oa,Q6(fo,nd)),MI(nd)){const kd=oa(Oa,fo.symbol.declarations[0]);id(kc(fo.symbol.declarations[0],w.This_type_parameter_might_need_an_extends_0_constraint,kd))}}}function wf(or,Hr){if(tu&&or.flags&3145728&&Hr.flags&3145728){const fo=or,Oa=Hr;if(fo.objectFlags&Oa.objectFlags&32768)return;const Qs=fo.types.length,Ko=Oa.types.length;Qs*Ko>1e6&&tu.instant(tu.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:or.id,sourceSize:Qs,targetId:Hr.id,targetSize:Ko,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function od(or,Hr){return gl(Em(or,(Oa,Qs)=>{var Ko;Qs=O1(Qs);const ss=Qs.flags&3145728?OI(Qs,Hr):o2(Qs,Hr),ll=ss&&Vo(ss)||((Ko=yx(Qs,Hr))==null?void 0:Ko.type)||Ui;return ur(Oa,ll)},void 0)||Zn)}function Jf(or,Hr,fo){var Oa;if(!Rte(Hr)||!Wt&&ji(Hr)&4096)return!1;const Qs=!!(ji(or)&2048);if((b===Jc||b===au)&&(pK(Ev,Hr)||!Qs&&rM(Hr)))return!1;let Ko=Hr,ss;Hr.flags&1048576&&(Ko=Xrt(or,Hr,Gi)||Krt(Hr),ss=Ko.flags&1048576?Ko.types:[Ko]);for(const ll of Vp(or))if(dm(ll,or.symbol)&&!Cet(or,ll)){if(!kNe(Ko,ll.escapedName,Qs)){if(fo){const of=D0(Ko,Rte);if(!C)return ce.fail();if(iD(C)||Y1(C)||Y1(C.parent)){ll.valueDeclaration&&Pb(ll.valueDeclaration)&&ns(C)===ns(ll.valueDeclaration.name)&&(C=ll.valueDeclaration.name);const C_=Cl(ll),nd=Btt(C_,of),kd=nd?Cl(nd):void 0;kd?nl(w.Property_0_does_not_exist_on_type_1_Did_you_mean_2,C_,oa(of),kd):nl(w.Property_0_does_not_exist_on_type_1,C_,oa(of))}else{const C_=((Oa=or.symbol)==null?void 0:Oa.declarations)&&pp(or.symbol.declarations);let nd;if(ll.valueDeclaration&&Kr(ll.valueDeclaration,kd=>kd===C_)&&ns(C_)===ns(C)){const kd=ll.valueDeclaration;ce.assertNode(kd,KD);const lu=kd.name;C=lu,An(lu)&&(nd=lze(lu,of))}nd!==void 0?nl(w.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Cl(ll),oa(of),nd):nl(w.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Cl(ll),oa(of))}}return!0}if(ss&&!Gi(Vo(ll),od(ss,ll.escapedName),3,fo))return fo&&hs(w.Types_of_property_0_are_incompatible,Cl(ll)),!0}return!1}function dm(or,Hr){return or.valueDeclaration&&Hr.valueDeclaration&&or.valueDeclaration.parent===Hr.valueDeclaration}function Zg(or,Hr,fo,Oa){if(or.flags&1048576)return b===au?On(or,Hr,fo&&!(or.flags&402784252),Oa):bs(or,Hr,fo&&!(or.flags&402784252),Oa);if(Hr.flags&1048576)return Lp(Aw(or),Hr,fo&&!(or.flags&402784252)&&!(Hr.flags&402784252));if(Hr.flags&2097152)return $T(or,Hr,fo,2);if(b===au&&Hr.flags&402784252){const Qs=Ol(or.types,Ko=>Ko.flags&465829888?Co(Ko)||co:Ko);if(Qs!==or.types){if(or=Dd(Qs),or.flags&131072)return 0;if(!(or.flags&2097152))return Gi(or,Hr,1,!1)||Gi(Hr,or,1,!1)}}return On(or,Hr,!1,1)}function Pv(or,Hr){let fo=-1;const Oa=or.types;for(const Qs of Oa){const Ko=Lp(Qs,Hr,!1);if(!Ko)return 0;fo&=Ko}return fo}function Lp(or,Hr,fo){const Oa=Hr.types;if(Hr.flags&1048576){if(W2(Oa,or))return-1;if(b!==au&&ji(Hr)&32768&&!(or.flags&1024)&&(or.flags&2688||(b===gc||b===Wl)&&or.flags&256)){const Ko=or===or.regularType?or.freshType:or.regularType,ss=or.flags&128?xe:or.flags&256?an:or.flags&2048?Un:void 0;return ss&&W2(Oa,ss)||Ko&&W2(Oa,Ko)?-1:0}const Qs=ZPe(Hr,or);if(Qs){const Ko=Gi(or,Qs,2,!1);if(Ko)return Ko}}for(const Qs of Oa){const Ko=Gi(or,Qs,2,!1);if(Ko)return Ko}if(fo){const Qs=ket(or,Hr,Gi);Qs&&Gi(or,Qs,2,!0)}return 0}function $T(or,Hr,fo,Oa){let Qs=-1;const Ko=Hr.types;for(const ss of Ko){const ll=Gi(or,ss,2,fo,void 0,Oa);if(!ll)return 0;Qs&=ll}return Qs}function On(or,Hr,fo,Oa){const Qs=or.types;if(or.flags&1048576&&W2(Qs,Hr))return-1;const Ko=Qs.length;for(let ss=0;ss=ss.types.length&&Ko.length%ss.types.length===0){const nd=Gi(of,ss.types[ll%ss.types.length],3,!1,void 0,Oa);if(nd){Qs&=nd;continue}}const C_=Gi(of,Hr,1,fo,void 0,Oa);if(!C_)return 0;Qs&=C_}return Qs}function as(or=Zn,Hr=Zn,fo=Zn,Oa,Qs){if(or.length!==Hr.length&&b===qn)return 0;const Ko=or.length<=Hr.length?or.length:Hr.length;let ss=-1;for(let ll=0;ll(O_|=im?16:8,lu(im)));let rp;return aa===3?((Ko=tu)==null||Ko.instant(tu.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:or.id,sourceIdStack:dn.map(im=>im.id),targetId:Hr.id,targetIdStack:yn.map(im=>im.id),depth:bi,targetDepth:Wo}),rp=3):((ss=tu)==null||ss.push(tu.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:or.id,targetId:Hr.id}),rp=Bc(or,Hr,fo,Oa),(ll=tu)==null||ll.pop()),jg&&(jg=lu),Qs&1&&bi--,Qs&2&&Wo--,aa=kd,rp?(rp===-1||bi===0&&Wo===0)&&Ug(rp===-1||rp===3):(b.set(of,(fo?4:0)|2|O_),Ug(!1)),rp;function Ug(im){for(let k0=nd;k0ll!==or)&&(Ko=Gi(ss,Hr,1,!1,void 0,Oa))}Ko&&!(Oa&2)&&Hr.flags&2097152&&!nM(Hr)&&or.flags&2621440?(Ko&=Bo(or,Hr,fo,void 0,!1,0),Ko&&zu(or)&&ji(or)&8192&&(Ko&=hb(or,Hr,!1,fo,0))):Ko&&X0e(Hr)&&!GI(Hr)&&or.flags&2097152&&O1(or).flags&3670016&&!gt(or.types,ss=>ss===Hr||!!(ji(ss)&262144))&&(Ko&=Bo(or,Hr,fo,void 0,!0,Oa))}return Ko&&Pa(Qs),Ko}function Rf(or,Hr,fo,Oa,Qs){let Ko,ss,ll=!1,of=or.flags;const C_=Hr.flags;if(b===qn){if(of&3145728){let lu=Pv(or,Hr);return lu&&(lu&=Pv(Hr,or)),lu}if(of&4194304)return Gi(or.type,Hr.type,3,!1);if(of&8388608&&(Ko=Gi(or.objectType,Hr.objectType,3,!1))&&(Ko&=Gi(or.indexType,Hr.indexType,3,!1))||of&16777216&&or.root.isDistributive===Hr.root.isDistributive&&(Ko=Gi(or.checkType,Hr.checkType,3,!1))&&(Ko&=Gi(or.extendsType,Hr.extendsType,3,!1))&&(Ko&=Gi(QP(or),QP(Hr),3,!1))&&(Ko&=Gi(X6(or),X6(Hr),3,!1))||of&33554432&&(Ko=Gi(or.baseType,Hr.baseType,3,!1))&&(Ko&=Gi(or.constraint,Hr.constraint,3,!1)))return Ko;if(!(of&524288))return 0}else if(of&3145728||C_&3145728){if(Ko=Zg(or,Hr,fo,Oa))return Ko;if(!(of&465829888||of&524288&&C_&1048576||of&2097152&&C_&467402752))return 0}if(of&17301504&&or.aliasSymbol&&or.aliasTypeArguments&&or.aliasSymbol===Hr.aliasSymbol&&!(WPe(or)||WPe(Hr))){const lu=Pet(or.aliasSymbol);if(lu===Zn)return 1;const O_=Mt(or.aliasSymbol).typeParameters,rp=EC(O_),Ug=FI(or.aliasTypeArguments,O_,rp,Rs(or.aliasSymbol.valueDeclaration)),im=FI(Hr.aliasTypeArguments,O_,rp,Rs(or.aliasSymbol.valueDeclaration)),k0=kd(Ug,im,lu,Oa);if(k0!==void 0)return k0}if(cBe(or)&&!or.target.readonly&&(Ko=Gi(Tm(or)[0],Hr,1))||cBe(Hr)&&(Hr.target.readonly||ube(Co(or)||or))&&(Ko=Gi(or,Tm(Hr)[0],2)))return Ko;if(C_&262144){if(ji(or)&32&&!or.declaration.nameType&&Gi(YP(Hr),mT(or),3)&&!(jS(or)&4)){const lu=SC(or),O_=s2(Hr,L1(or));if(Ko=Gi(lu,O_,3,fo))return Ko}if(b===au&&of&262144){let lu=Wi(or);if(lu&&MI(or))for(;lu&&dM(lu,O_=>!!(O_.flags&262144));){if(Ko=Gi(lu,Hr,1,!1))return Ko;lu=Wi(lu)}return 0}}else if(C_&4194304){const lu=Hr.type;if(of&4194304&&(Ko=Gi(lu,or.type,3,!1)))return Ko;if(_p(lu)){if(Ko=Gi(or,zk(lu),2,fo))return Ko}else{const O_=ql(lu);if(O_){if(Gi(or,YP(O_,Hr.indexFlags|4),2,fo)===-1)return-1}else if(Ty(lu)){const rp=Vg(lu),Ug=mT(lu);let im;if(rp&&O4(lu)){const k0=O1(c0(lu)),YI=[];KR(k0,8576,!1,Yk=>void YI.push(Nf(rp,IV(lu.mapper,L1(lu),Yk)))),im=gl([...YI,rp])}else im=rp||Ug;if(Gi(or,im,2,fo)===-1)return-1}}}else if(C_&8388608){if(of&8388608){if((Ko=Gi(or.objectType,Hr.objectType,3,fo))&&(Ko&=Gi(or.indexType,Hr.indexType,3,fo)),Ko)return Ko;fo&&(ss=Se)}if(b===Jc||b===au){const lu=Hr.objectType,O_=Hr.indexType,rp=Co(lu)||lu,Ug=Co(O_)||O_;if(!nM(rp)&&!HS(Ug)){const im=4|(rp!==lu?2:0),k0=Wb(rp,Ug,im);if(k0){if(fo&&ss&&Pa(Qs),Ko=Gi(or,k0,2,fo,void 0,Oa))return Ko;fo&&ss&&Se&&(Se=nd([ss])<=nd([Se])?ss:Se)}}}fo&&(ss=void 0)}else if(Ty(Hr)&&b!==qn){const lu=!!Hr.declaration.nameType,O_=SC(Hr),rp=jS(Hr);if(!(rp&8)){if(!lu&&O_.flags&8388608&&O_.objectType===or&&O_.indexType===L1(Hr))return-1;if(!Ty(or)){const Ug=lu?Vg(Hr):mT(Hr),im=YP(or,2),k0=rp&4,YI=k0?jp(Ug,im):void 0;if(k0?!(YI.flags&131072):Gi(Ug,im,3)){const Yk=SC(Hr),A5=L1(Hr),GK=f5(Yk,-98305);if(!lu&&GK.flags&8388608&&GK.indexType===A5){if(Ko=Gi(or,GK.objectType,2,fo))return Ko}else{const JV=lu?YI||Ug:YI?Dd([YI,A5]):A5,yM=s2(or,JV);if(Ko=Gi(yM,Yk,3,fo))return Ko}}ss=Se,Pa(Qs)}}}else if(C_&16777216){if(SD(Hr,yn,Wo,10))return 3;const lu=Hr;if(!lu.root.inferTypeParameters&&!Mue(lu.root)&&!(or.flags&16777216&&or.root===lu.root)){const O_=!Mp(wPe(lu.checkType),wPe(lu.extendsType)),rp=!O_&&Mp(wB(lu.checkType),wB(lu.extendsType));if((Ko=O_?-1:Gi(or,QP(lu),2,!1,void 0,Oa))&&(Ko&=rp?-1:Gi(or,X6(lu),2,!1,void 0,Oa),Ko))return Ko}}else if(C_&134217728){if(of&134217728){if(b===au)return vBe(or,Hr)?0:-1;Nf(or,zv)}if(hbe(or,Hr))return-1}else if(Hr.flags&268435456&&!(or.flags&268435456)&&xte(or,Hr))return-1;if(of&8650752){if(!(of&8388608&&C_&8388608)){const lu=Er(or)||co;if(Ko=Gi(lu,Hr,1,!1,void 0,Oa))return Ko;if(Ko=Gi(M1(lu,or),Hr,1,fo&&lu!==co&&!(C_&of&262144),void 0,Oa))return Ko;if(KF(or)){const O_=Er(or.indexType);if(O_&&(Ko=Gi(s2(or.objectType,O_),Hr,1,fo)))return Ko}}}else if(of&4194304){if(Ko=Gi(x_,Hr,1,fo))return Ko}else if(of&134217728&&!(C_&524288)){if(!(C_&134217728)){const lu=Co(or);if(lu&&lu!==or&&(Ko=Gi(lu,Hr,1,fo)))return Ko}}else if(of&268435456)if(C_&268435456){if(or.symbol!==Hr.symbol)return 0;if(Ko=Gi(or.type,Hr.type,3,fo))return Ko}else{const lu=Co(or);if(lu&&(Ko=Gi(lu,Hr,1,fo)))return Ko}else if(of&16777216){if(SD(or,dn,bi,10))return 3;if(C_&16777216){const O_=or.root.inferTypeParameters;let rp=or.extendsType,Ug;if(O_){const im=_K(O_,void 0,0,kC);uM(im.inferences,Hr.extendsType,rp,1536),rp=Nf(rp,im.mapper),Ug=im.mapper}if(eN(rp,Hr.extendsType)&&(Gi(or.checkType,Hr.checkType,3)||Gi(Hr.checkType,or.checkType,3))&&((Ko=Gi(Nf(QP(or),Ug),QP(Hr),3,fo))&&(Ko&=Gi(X6(or),X6(Hr),3,fo)),Ko))return Ko}else{const O_=MI(or)?CE(or):void 0;if(O_&&(Ko=Gi(O_,Hr,1,fo)))return Ko}const lu=Z_(or);if(lu&&(Ko=Gi(lu,Hr,1,fo)))return Ko}else{if(b!==gc&&b!==Wl&&Xq(Hr)&&rM(or))return-1;if(Ty(Hr))return Ty(or)&&(Ko=Mu(or,Hr,fo))?Ko:0;const lu=!!(of&402784252);if(b!==qn)or=O1(or),of=or.flags;else if(Ty(or))return 0;if(ji(or)&4&&ji(Hr)&4&&or.target===Hr.target&&!_p(or)&&!(WPe(or)||WPe(Hr))){if(PV(or))return-1;const O_=eBe(or.target);if(O_===Zn)return 1;const rp=kd(Tm(or),Tm(Hr),O_,Oa);if(rp!==void 0)return rp}else{if(Tte(Hr)?iA(or,GI):UA(Hr)&&iA(or,O_=>_p(O_)&&!O_.target.readonly))return b!==qn?Gi(pb(or,an)||gn,pb(Hr,an)||gn,3,fo):0;if(u0(or)&&_p(Hr)&&!u0(Hr)){const O_=DE(or);if(O_!==or)return Gi(O_,Hr,1,fo)}else if((b===gc||b===Wl)&&rM(Hr)&&ji(Hr)&8192&&!rM(or))return 0}if(of&2621440&&C_&524288){const O_=fo&&Se===Qs.errorInfo&&!lu;if(Ko=Bo(or,Hr,O_,void 0,!1,Oa),Ko&&(Ko&=rf(or,Hr,0,O_,Oa),Ko&&(Ko&=rf(or,Hr,1,O_,Oa),Ko&&(Ko&=hb(or,Hr,lu,O_,Oa)))),ll&&Ko)Se=ss||Se||Qs.errorInfo;else if(Ko)return Ko}if(of&2621440&&C_&1048576){const O_=f5(Hr,36175872);if(O_.flags&1048576){const rp=xc(or,O_);if(rp)return rp}}}return 0;function nd(lu){return lu?Em(lu,(O_,rp)=>O_+1+nd(rp.next),0):0}function kd(lu,O_,rp,Ug){if(Ko=as(lu,O_,rp,fo,Ug))return Ko;if(gt(rp,k0=>!!(k0&24))){ss=void 0,Pa(Qs);return}const im=O_&&Net(O_,rp);if(ll=!im,rp!==Zn&&!im){if(ll&&!(fo&>(rp,k0=>(k0&7)===0)))return 0;ss=Se,Pa(Qs)}}}function Mu(or,Hr,fo){if(b===au||(b===qn?jS(or)===jS(Hr):pO(or)<=pO(Hr))){let Qs;const Ko=mT(Hr),ss=Nf(mT(or),pO(or)<0?m_:zv);if(Qs=Gi(Ko,ss,3,fo)){const ll=IE([L1(or)],[L1(Hr)]);if(Nf(Vg(or),ll)===Nf(Vg(Hr),ll))return Qs&Gi(Nf(SC(or),ll),SC(Hr),3,fo)}}return 0}function xc(or,Hr){var fo;const Oa=Vp(or),Qs=vbe(Oa,Hr);if(!Qs)return 0;let Ko=1;for(const kd of Qs)if(Ko*=wBe(WA(kd)),Ko>25)return(fo=tu)==null||fo.instant(tu.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:or.id,targetId:Hr.id,numCombinations:Ko}),0;const ss=new Array(Qs.length),ll=new Set;for(let kd=0;kdkd[rp],!1,0,Ye||b===au))continue e}Dy(C_,O_,_1),lu=!0}if(!lu)return 0}let nd=-1;for(const kd of C_)if(nd&=Bo(or,kd,!1,ll,!1,0),nd&&(nd&=rf(or,kd,0,!1,0),nd&&(nd&=rf(or,kd,1,!1,0),nd&&!(_p(or)&&_p(kd))&&(nd&=hb(or,kd,!1,!1,0)))),!nd)return nd;return nd}function Dr(or,Hr){if(!Hr||or.length===0)return or;let fo;for(let Oa=0;Oa5?nl(w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,oa(or),oa(Hr),Vn(Ko.slice(0,4),ss=>Cl(ss)).join(", "),Ko.length-4):nl(w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,oa(or),oa(Hr),Vn(Ko,ss=>Cl(ss)).join(", ")),Qs&&Se&&Ba++)}function Bo(or,Hr,fo,Oa,Qs,Ko){if(b===qn)return ja(or,Hr,Oa);let ss=-1;if(_p(Hr)){if(GI(or)){if(!Hr.target.readonly&&(Tte(or)||_p(or)&&or.target.readonly))return 0;const kd=Fo(or),lu=Fo(Hr),O_=_p(or)?or.target.combinedFlags&4:4,rp=Hr.target.combinedFlags&4,Ug=_p(or)?or.target.minLength:0,im=Hr.target.minLength;if(!O_&&kd=Yk?lu-1-Math.min(P1e,A5):yM,ai=Hr.target.elementFlags[G2];if(ai&8&&!(LO&8))return fo&&nl(w.Source_provides_no_match_for_variadic_element_at_position_0_in_target,G2),0;if(LO&8&&!(ai&12))return fo&&nl(w.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,yM,G2),0;if(ai&1&&!(LO&1))return fo&&nl(w.Source_provides_no_match_for_required_element_at_position_0_in_target,G2),0;if(JV&&((LO&12||ai&12)&&(JV=!1),JV&&(Oa!=null&&Oa.has(""+yM))))continue;const Vc=l5(k0[yM],!!(LO&ai&2)),Gl=YI[G2],jl=LO&8&&ai&4?W1(Gl):l5(Gl,!!(ai&2)),Yl=Gi(Vc,jl,3,fo,void 0,Ko);if(!Yl)return fo&&(lu>1||kd>1)&&(GK&&yM>=Yk&&P1e>=A5&&Yk!==kd-A5-1?hs(w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Yk,kd-A5-1,G2):hs(w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,yM,G2)),0;ss&=Yl}return ss}if(Hr.target.combinedFlags&12)return 0}const ll=(b===gc||b===Wl)&&!zu(or)&&!PV(or)&&!_p(or),of=u5(or,Hr,ll,!1);if(of)return fo&&zl(or,Hr)&&ao(or,Hr,of,ll),0;if(zu(Hr)){for(const kd of Dr(Vp(or),Oa))if(!o2(Hr,kd.escapedName)&&!(Vo(kd).flags&32768))return fo&&nl(w.Property_0_does_not_exist_on_type_1,Cl(kd),oa(Hr)),0}const C_=Vp(Hr),nd=_p(or)&&_p(Hr);for(const kd of Dr(C_,Oa)){const lu=kd.escapedName;if(!(kd.flags&4194304)&&(!nd||FT(lu)||lu==="length")&&(!Qs||kd.flags&16777216)){const O_=Fn(or,lu);if(O_&&O_!==kd){const rp=No(or,Hr,O_,kd,WA,fo,Ko,b===au);if(!rp)return 0;ss&=rp}}}return ss}function ja(or,Hr,fo){if(!(or.flags&524288&&Hr.flags&524288))return 0;const Oa=Dr(O2(or),fo),Qs=Dr(O2(Hr),fo);if(Oa.length!==Qs.length)return 0;let Ko=-1;for(const ss of Oa){const ll=o2(Hr,ss.escapedName);if(!ll)return 0;const of=rBe(ss,ll,Gi);if(!of)return 0;Ko&=of}return Ko}function rf(or,Hr,fo,Oa,Qs){var Ko,ss;if(b===qn)return Ll(or,Hr,fo);if(Hr===Mg||or===Mg)return-1;const ll=or.symbol&&JI(or.symbol.valueDeclaration),of=Hr.symbol&&JI(Hr.symbol.valueDeclaration),C_=Ti(or,ll&&fo===1?0:fo),nd=Ti(Hr,of&&fo===1?0:fo);if(fo===1&&C_.length&&nd.length){const Ug=!!(C_[0].flags&4),im=!!(nd[0].flags&4);if(Ug&&!im)return Oa&&nl(w.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!yg(C_[0],nd[0],Oa))return 0}let kd=-1;const lu=fo===1?Jo:td,O_=ji(or),rp=ji(Hr);if(O_&64&&rp&64&&or.symbol===Hr.symbol||O_&4&&rp&4&&or.target===Hr.target)for(let Ug=0;Ugo0(Yk,void 0,262144,fo);return nl(w.Type_0_is_not_assignable_to_type_1,YI(im),YI(k0)),nl(w.Types_of_construct_signatures_are_incompatible),kd}}else e:for(const Ug of nd){const im=Ga();let k0=Oa;for(const YI of C_){const Yk=rc(YI,Ug,!0,k0,Qs,lu(YI,Ug));if(Yk){kd&=Yk,Pa(im);continue e}k0=!1}return k0&&nl(w.Type_0_provides_no_match_for_the_signature_1,oa(or),o0(Ug,void 0,void 0,fo)),0}return kd}function zl(or,Hr){const fo=Ri(or,0),Oa=Ri(or,1),Qs=O2(or);return(fo.length||Oa.length)&&!Qs.length?!!(Ti(Hr,0).length&&fo.length||Ti(Hr,1).length&&Oa.length):!0}function td(or,Hr){return or.parameters.length===0&&Hr.parameters.length===0?(fo,Oa)=>hs(w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,oa(fo),oa(Oa)):(fo,Oa)=>hs(w.Call_signature_return_types_0_and_1_are_incompatible,oa(fo),oa(Oa))}function Jo(or,Hr){return or.parameters.length===0&&Hr.parameters.length===0?(fo,Oa)=>hs(w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,oa(fo),oa(Oa)):(fo,Oa)=>hs(w.Construct_signature_return_types_0_and_1_are_incompatible,oa(fo),oa(Oa))}function rc(or,Hr,fo,Oa,Qs,Ko){const ss=b===gc?16:b===Wl?24:0;return qWe(fo?VS(or):or,fo?VS(Hr):Hr,ss,Oa,nl,Ko,ll,zv);function ll(of,C_,nd){return Gi(of,C_,3,nd,void 0,Qs)}}function Ll(or,Hr,fo){const Oa=Ti(or,fo),Qs=Ti(Hr,fo);if(Oa.length!==Qs.length)return 0;let Ko=-1;for(let ss=0;ssof.keyType===xe);let ll=-1;for(const of of Ko){const C_=b!==Wl&&!fo&&ss&&of.type.flags&1?-1:Ty(or)&&ss?Gi(SC(or),of.type,3,Oa):rm(or,of,Oa,Qs);if(!C_)return 0;ll&=C_}return ll}function rm(or,Hr,fo,Oa){const Qs=qP(or,Hr.keyType);return Qs?Od(Qs,Hr,fo,Oa):!(Oa&1)&&(b!==Wl||ji(or)&8192)&&Ete(or)?Sf(or,Hr,fo,Oa):(fo&&nl(w.Index_signature_for_type_0_is_missing_in_type_1,oa(Hr.keyType),oa(or)),0)}function I0(or,Hr){const fo=T_(or),Oa=T_(Hr);if(fo.length!==Oa.length)return 0;for(const Qs of Oa){const Ko=Cd(or,Qs.keyType);if(!(Ko&&Gi(Ko.type,Qs.type,3)&&Ko.isReadonly===Qs.isReadonly))return 0}return-1}function yg(or,Hr,fo){if(!or.declaration||!Hr.declaration)return!0;const Oa=ZC(or.declaration,24),Qs=ZC(Hr.declaration,24);return Qs===8||Qs===16&&Oa!==8||Qs!==16&&!Oa?!0:(fo&&nl(w.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pD(Oa),pD(Qs)),!1)}}function FPe(a){if(a.flags&16)return!1;if(a.flags&3145728)return!!Ot(a.types,FPe);if(a.flags&465829888){const _=Er(a);if(_&&_!==a)return FPe(_)}return rA(a)||!!(a.flags&134217728)||!!(a.flags&268435456)}function Iet(a,_){return _p(a)&&_p(_)?Zn:Vp(_).filter(b=>Jue(wm(a,b.escapedName),Vo(b)))}function Jue(a,_){return!!a&&!!_&&cy(a,32768)&&!!Ste(_)}function YWe(a){return Vp(a).filter(_=>Ste(Vo(_)))}function ket(a,_,b=jWe){return Xrt(a,_,b)||Jrt(a,_)||p0t(a,_)||$rt(a,_)||qrt(a,_)}function QWe(a,_,b){const C=a.types,M=C.map(Z=>Z.flags&402784252?0:-1);for(const[Z,me]of _){let Se=!1;for(let Je=0;JeM[me]),0):a;return z.flags&131072?a:z}function ZWe(a){if(a.flags&524288){const _=K0(a);return _.callSignatures.length===0&&_.constructSignatures.length===0&&_.indexInfos.length===0&&_.properties.length>0&&jr(_.properties,b=>!!(b.flags&16777216))}return a.flags&2097152?jr(a.types,ZWe):!1}function Sgt(a,_,b){for(const C of Vp(a))if(kNe(_,C.escapedName,b))return!0;return!1}function eBe(a){return a===fi||a===ya||a.objectFlags&8?pt:tBe(a.symbol,a.typeParameters)}function Pet(a){return tBe(a,Mt(a).typeParameters)}function tBe(a,_=Zn){var b,C;const M=Mt(a);if(!M.variances){(b=tu)==null||b.push(tu.Phase.CheckTypes,"getVariancesWorker",{arity:_.length,id:Gh(Rm(a))});const z=Yt;Yt||(Yt=!0,It=Ze.length),M.variances=Zn;const Z=[];for(const me of _){const Se=vp(me);let Je=Se&65536?Se&32768?0:1:Se&32768?2:void 0;if(Je===void 0){let vt=!1,Pt=!1;const dn=jg;jg=bi=>bi?Pt=!0:vt=!0;const yn=abe(a,me,hy),hr=abe(a,me,fS);Je=(Mp(hr,yn)?1:0)|(Mp(yn,hr)?2:0),Je===3&&Mp(abe(a,me,GT),yn)&&(Je=4),jg=dn,(vt||Pt)&&(vt&&(Je|=8),Pt&&(Je|=16))}Z.push(Je)}z||(Yt=!1,It=0),M.variances=Z,(C=tu)==null||C.pop({variances:Z.map(ce.formatVariance)})}return M.variances}function abe(a,_,b){const C=Q6(_,b),M=Rm(a);if(je(M))return M;const z=a.flags&524288?Mc(a,Sw(Mt(a).typeParameters,C)):jA(M,Sw(M.typeParameters,C));return li.add(Gh(z)),z}function WPe(a){return li.has(Gh(a))}function vp(a){var _;return Em((_=a.symbol)==null?void 0:_.declarations,(b,C)=>b|tS(C),0)&100352}function Net(a,_){for(let b=0;b<_.length;b++)if((_[b]&7)===1&&a[b].flags&16384)return!0;return!1}function sbe(a){return a.flags&262144&&!Wi(a)}function Egt(a){return!!(ji(a)&4)&&!a.node}function cbe(a){return Egt(a)&>(Tm(a),_=>!!(_.flags&262144)||cbe(_))}function nBe(a,_,b,C){const M=[];let z="";const Z=Se(a,0),me=Se(_,0);return`${z}${Z},${me}${b}`;function Se(Je,vt=0){let Pt=""+Je.target.id;for(const dn of Tm(Je)){if(dn.flags&262144){if(C||sbe(dn)){let yn=M.indexOf(dn);yn<0&&(yn=M.length,M.push(dn)),Pt+="="+yn;continue}z="*"}else if(vt<4&&cbe(dn)){Pt+="<"+Se(dn,vt+1)+">";continue}Pt+="-"+dn.id}return Pt}}function BPe(a,_,b,C,M){if(C===qn&&a.id>_.id){const Z=a;a=_,_=Z}const z=b?":"+b:"";return cbe(a)&&cbe(_)?nBe(a,_,z,M):`${a.id},${_.id}${z}`}function lbe(a,_){if(I_(a)&6){for(const b of a.links.containingType.types){const C=Fn(b,a.escapedName),M=C&&lbe(C,_);if(M)return M}return}return _(a)}function RB(a){return a.parent&&a.parent.flags&32?Rm(Uf(a)):void 0}function zPe(a){const _=RB(a),b=_&&Gp(_)[0];return b&&wm(b,a.escapedName)}function wet(a,_){return lbe(a,b=>{const C=RB(b);return C?wI(C,_):!1})}function xgt(a,_){return!lbe(_,b=>Vy(b)&16?!wet(a,RB(b)):!1)}function Ret(a,_,b){return lbe(_,C=>Vy(C,b)&16?!wI(a,RB(C)):!1)?void 0:a}function SD(a,_,b,C=3){if(b>=C){if(a.flags&2097152)return gt(a.types,me=>SD(me,_,b,C));const M=c5(a);let z=0,Z=0;for(let me=0;mec5(Je)===M):c5(Se)===M){if(Se.id>=Z&&(z++,z>=C))return!0;Z=Se.id}}}return!1}function c5(a){if(a.flags&524288&&!XPe(a)){if(ji(a)&4&&a.node)return a.node;if(a.symbol&&!(ji(a)&16&&a.symbol.flags&32))return a.symbol;if(_p(a))return a.target}if(a.flags&262144)return a.symbol;if(a.flags&8388608){do a=a.objectType;while(a.flags&8388608);return a}return a.flags&16777216?a.root:a}function Met(a,_){return rBe(a,_,Vue)!==0}function rBe(a,_,b){if(a===_)return-1;const C=Vy(a)&24,M=Vy(_)&24;if(C!==M)return 0;if(C){if(OK(a)!==OK(_))return 0}else if((a.flags&16777216)!==(_.flags&16777216))return 0;return KI(a)!==KI(_)?0:b(Vo(a),Vo(_))}function Let(a,_,b){const C=xx(a),M=xx(_),z=qI(a),Z=qI(_),me=Hk(a),Se=Hk(_);return!!(C===M&&z===Z&&me===Se||b&&z<=Z)}function CC(a,_,b,C,M,z){if(a===_)return-1;if(!Let(a,_,b)||Nt(a.typeParameters)!==Nt(_.typeParameters))return 0;if(_.typeParameters){const Se=IE(a.typeParameters,_.typeParameters);for(let Je=0;Je<_.typeParameters.length;Je++){const vt=a.typeParameters[Je],Pt=_.typeParameters[Je];if(!(vt===Pt||z(Nf(SV(vt),Se)||co,SV(Pt)||co)&&z(Nf(LI(vt),Se)||co,LI(Pt)||co)))return 0}a=cK(a,Se,!0)}let Z=-1;if(!C){const Se=xC(a);if(Se){const Je=xC(_);if(Je){const vt=z(Se,Je);if(!vt)return 0;Z&=vt}}}const me=xx(_);for(let Se=0;Se_|(b.flags&1048576?Fet(b.types):b.flags),0)}function Cgt(a){if(a.length===1)return a[0];const _=Ye?Ol(a,C=>D0(C,M=>!(M.flags&98304))):a,b=Agt(_)?gl(_):Em(_,(C,M)=>X4(C,M)?M:C);return _===a?b:oM(b,Fet(a)&98304)}function MB(a){return Em(a,(_,b)=>X4(b,_)?b:_)}function UA(a){return!!(ji(a)&4)&&(a.target===fi||a.target===ya)}function Tte(a){return!!(ji(a)&4)&&a.target===ya}function GI(a){return UA(a)||_p(a)}function ube(a){return UA(a)&&!Tte(a)||_p(a)&&!a.target.readonly}function iBe(a){return UA(a)?Tm(a)[0]:void 0}function iM(a){return UA(a)||!(a.flags&98304)&&Mp(a,Si)}function oBe(a){if(!(ji(a)&4)||!(ji(a.target)&3))return;if(ji(a)&33554432)return ji(a)&67108864?a.cachedEquivalentBaseType:void 0;a.objectFlags|=33554432;const _=a.target;if(ji(_)&1){const M=ac(_);if(M&&M.expression.kind!==80&&M.expression.kind!==211)return}const b=Gp(_);if(b.length!==1||BA(a.symbol).size)return;let C=Nt(_.typeParameters)?Nf(b[0],IE(_.typeParameters,Tm(a).slice(0,_.typeParameters.length))):b[0];return Nt(Tm(a))>Nt(_.typeParameters)&&(C=M1(C,yl(Tm(a)))),a.objectFlags|=67108864,a.cachedEquivalentBaseType=C}function Wet(a){return Ye?a===qd:a===xu}function PV(a){const _=iBe(a);return!!_&&Wet(_)}function LB(a){let _;return _p(a)||!!Fn(a,"0")||iM(a)&&!!(_=wm(a,"length"))&&iA(_,b=>!!(b.flags&256))}function $ue(a){return iM(a)||LB(a)}function Bet(a,_){const b=wm(a,""+_);if(b)return b;if(iA(a,_p))return lBe(a,_,Le.noUncheckedIndexedAccess?Ui:void 0)}function aBe(a){return!(a.flags&240544)}function rA(a){return!!(a.flags&109472)}function NV(a){const _=DE(a);return _.flags&2097152?gt(_.types,rA):rA(_)}function uK(a){return a.flags&2097152&&lr(a.types,rA)||a}function Ew(a){return a.flags&16?!0:a.flags&1048576?a.flags&1024?!0:jr(a.types,rA):rA(a)}function Tx(a){return a.flags&1056?w4(a):a.flags&402653312?xe:a.flags&256?an:a.flags&2048?Un:a.flags&512?Ca:a.flags&1048576?que(a):a}function que(a){const _=`B${Gh(a)}`;return na(_)??_a(_,bh(a,Tx))}function tN(a){return a.flags&402653312?xe:a.flags&288?an:a.flags&2048?Un:a.flags&512?Ca:a.flags&1048576?bh(a,tN):a}function TO(a){return a.flags&1056&&jk(a)?w4(a):a.flags&128&&jk(a)?xe:a.flags&256&&jk(a)?an:a.flags&2048&&jk(a)?Un:a.flags&512&&jk(a)?Ca:a.flags&1048576?bh(a,TO):a}function zet(a){return a.flags&8192?Qa:a.flags&1048576?bh(a,zet):a}function sBe(a,_){return swe(a,_)||(a=zet(TO(a))),B1(a)}function Dgt(a,_,b){if(a&&rA(a)){const C=_?b?Mfe(_):_:void 0;a=sBe(a,C)}return a}function GPe(a,_,b,C){if(a&&rA(a)){const M=_?MO(b,_,C):void 0;a=sBe(a,M)}return a}function _p(a){return!!(ji(a)&4&&a.target.objectFlags&8)}function u0(a){return _p(a)&&!!(a.target.combinedFlags&8)}function cBe(a){return u0(a)&&a.target.elementFlags.length===1}function xw(a){return jI(a,a.target.fixedLength)}function lBe(a,_,b){return bh(a,C=>{const M=C,z=xw(M);return z?b&&_>=CWe(M.target)?gl([z,b]):z:Ui})}function uBe(a){const _=xw(a);return _&&W1(_)}function jI(a,_,b=0,C=!1,M=!1){const z=Fo(a)-b;if(_(b&12)===(_.target.elementFlags[C]&12))}function fBe({value:a}){return a.base10Value==="0"}function _Be(a){return D0(a,_=>!!(bS(_)&4194304))}function dBe(a){return bh(a,SO)}function SO(a){return a.flags&4?ct:a.flags&8?Ct:a.flags&64?Lt:a===mi||a===rr||a.flags&114691||a.flags&128&&a.value===""||a.flags&256&&a.value===0||a.flags&2048&&fBe(a)?a:vs}function oM(a,_){const b=_&~a.flags&98304;return b===0?a:gl(b===32768?[a,Ui]:b===65536?[a,$e]:[a,Ui,$e])}function eL(a,_=!1){ce.assert(Ye);const b=_?Re:Ui;return a===b||a.flags&1048576&&a.types[0]===b?a:gl([a,b])}function Get(a){return Do||(Do=t5("NonNullable",524288,void 0)||Ir),Do!==Ir?Mc(Do,[a]):Dd([a,Yu])}function aM(a){return Ye?OB(a,2097152):a}function jet(a){return Ye?gl([a,wt]):a}function jPe(a){return Ye?iNe(a,wt):a}function fbe(a,_,b){return b?M8(_)?eL(a):jet(a):a}function Kue(a,_){return zU(_)?aM(a):ky(_)?jPe(a):a}function l5(a,_){return on&&_?iNe(a,We):a}function Ste(a){return a===We||!!(a.flags&1048576)&&a.types[0]===We}function EO(a){return on?iNe(a,We):JA(a,524288)}function fK(a,_){return(a.flags&524)!==0&&(_.flags&28)!==0}function Ete(a){const _=ji(a);return a.flags&2097152?jr(a.types,Ete):!!(a.symbol&&a.symbol.flags&7040&&!(a.symbol.flags&32)&&!BK(a))||!!(_&4194304)||!!(_&1024&&Ete(a.source))}function xO(a,_){const b=Ge(a.flags,a.escapedName,I_(a)&8);b.declarations=a.declarations,b.parent=a.parent,b.links.type=_,b.links.target=a,a.valueDeclaration&&(b.valueDeclaration=a.valueDeclaration);const C=Mt(a).nameType;return C&&(b.links.nameType=C),b}function pBe(a,_){const b=Td();for(const C of O2(a)){const M=Vo(C),z=_(M);b.set(C.escapedName,z===M?C:xO(C,z))}return b}function Aw(a){if(!(zu(a)&&ji(a)&8192))return a;const _=a.regularType;if(_)return _;const b=a,C=pBe(a,Aw),M=jo(b.symbol,C,b.callSignatures,b.constructSignatures,b.indexInfos);return M.flags=b.flags,M.objectFlags|=b.objectFlags&-8193,a.regularType=M,M}function _be(a,_,b){return{parent:a,propertyName:_,siblings:b,resolvedProperties:void 0}}function VPe(a){if(!a.siblings){const _=[];for(const b of VPe(a.parent))if(zu(b)){const C=o2(b,a.propertyName);C&&e8(Vo(C),M=>{_.push(M)})}a.siblings=_}return a.siblings}function kgt(a){if(!a.resolvedProperties){const _=new Map;for(const b of VPe(a))if(zu(b)&&!(ji(b)&2097152))for(const C of Vp(b))_.set(C.escapedName,C);a.resolvedProperties=oc(_.values())}return a.resolvedProperties}function dbe(a,_){if(!(a.flags&4))return a;const b=Vo(a),C=_&&_be(_,a.escapedName,void 0),M=vS(b,C);return M===b?a:xO(a,M)}function wV(a){const _=Jr.get(a.escapedName);if(_)return _;const b=xO(a,Re);return b.flags|=16777216,Jr.set(a.escapedName,b),b}function $S(a,_){const b=Td();for(const M of O2(a))b.set(M.escapedName,dbe(M,_));if(_)for(const M of kgt(_))b.has(M.escapedName)||b.set(M.escapedName,wV(M));const C=jo(a.symbol,b,Zn,Zn,Ol(T_(a),M=>yD(M.keyType,Bb(M.type),M.isReadonly)));return C.objectFlags|=ji(a)&266240,C}function Bb(a){return vS(a,void 0)}function vS(a,_){if(ji(a)&196608){if(_===void 0&&a.widened)return a.widened;let b;if(a.flags&98305)b=gn;else if(zu(a))b=$S(a,_);else if(a.flags&1048576){const C=_||_be(void 0,void 0,a.types),M=Ol(a.types,z=>z.flags&98304?z:vS(z,C));b=gl(M,gt(M,rM)?2:1)}else a.flags&2097152?b=Dd(Ol(a.types,Bb)):GI(a)&&(b=jA(a.target,Ol(Tm(a),Bb)));return b&&_===void 0&&(a.widened=b),b||a}return a}function HA(a){let _=!1;if(ji(a)&65536){if(a.flags&1048576)if(gt(a.types,rM))_=!0;else for(const b of a.types)HA(b)&&(_=!0);if(GI(a))for(const b of Tm(a))HA(b)&&(_=!0);if(zu(a))for(const b of O2(a)){const C=Vo(b);ji(C)&65536&&(HA(C)||He(b.valueDeclaration,w.Object_literal_s_property_0_implicitly_has_an_1_type,Cl(b),oa(Bb(C))),_=!0)}}return _}function sM(a,_,b){const C=oa(Bb(_));if(Rs(a)&&!tW(ns(a),Le))return;let M;switch(a.kind){case 226:case 172:case 171:M=Wt?w.Member_0_implicitly_has_an_1_type:w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const z=a;if(An(z.name)){const Z=ML(z.name);if((Lh(z.parent)||Jh(z.parent)||Z2(z.parent))&&z.parent.parameters.indexOf(z)>-1&&(Ro(z,z.name.escapedText,788968,void 0,z.name.escapedText,!0)||Z&&Xie(Z))){const me="arg"+z.parent.parameters.indexOf(z),Se=Ud(z.name)+(z.dotDotDotToken?"[]":"");dr(Wt,a,w.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,me,Se);return}}M=a.dotDotDotToken?Wt?w.Rest_parameter_0_implicitly_has_an_any_type:w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Wt?w.Parameter_0_implicitly_has_an_1_type:w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(M=w.Binding_element_0_implicitly_has_an_1_type,!Wt)return;break;case 324:He(a,w.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Wt&&FG(a.parent)&&He(a.parent.tagName,w.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(Wt&&!a.name){b===3?He(a,w.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):He(a,w.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}M=Wt?b===3?w._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Wt&&He(a,w.Mapped_object_type_implicitly_has_an_any_template_type);return;default:M=Wt?w.Variable_0_implicitly_has_an_1_type:w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}dr(Wt,a,M,Ud(o_(a)),C)}function UPe(a,_,b){s(()=>{Wt&&ji(_)&65536&&(!b||!YBe(a))&&(HA(_)||sM(a,_,b))})}function mBe(a,_,b){const C=xx(a),M=xx(_),z=bfe(a),Z=bfe(_),me=Z?M-1:M,Se=z?me:Math.min(C,me),Je=xC(a);if(Je){const vt=xC(_);vt&&b(Je,vt)}for(let vt=0;vt_.typeParameter),Vn(a.inferences,(_,b)=>()=>(_.isFixed||(Uet(a),HPe(a.inferences),_.isFixed=!0),AO(a,b))))}function pbe(a){return OWe(Vn(a.inferences,_=>_.typeParameter),Vn(a.inferences,(_,b)=>()=>AO(a,b)))}function HPe(a){for(const _ of a)_.isFixed||(_.inferredType=void 0)}function Xl(a,_,b){(a.intraExpressionInferenceSites??(a.intraExpressionInferenceSites=[])).push({node:_,type:b})}function Uet(a){if(a.intraExpressionInferenceSites){for(const{node:_,type:b}of a.intraExpressionInferenceSites){const C=_.kind===174?o8(_,2):PE(_,2);C&&uM(a.inferences,b,C)}a.intraExpressionInferenceSites=void 0}}function Yue(a){return{typeParameter:a,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function cM(a){return{typeParameter:a.typeParameter,candidates:a.candidates&&a.candidates.slice(),contraCandidates:a.contraCandidates&&a.contraCandidates.slice(),inferredType:a.inferredType,priority:a.priority,topLevel:a.topLevel,isFixed:a.isFixed,impliedArity:a.impliedArity}}function JPe(a){const _=gi(a.inferences,GV);return _.length?Xue(Vn(_,cM),a.signature,a.flags,a.compareTypes):void 0}function $Pe(a){return a&&a.mapper}function X0(a){const _=ji(a);if(_&524288)return!!(_&1048576);const b=!!(a.flags&465829888||a.flags&524288&&!tL(a)&&(_&4&&(a.node||gt(Tm(a),X0))||_&16&&a.symbol&&a.symbol.flags&14384&&a.symbol.declarations||_&12583968)||a.flags&137363456&&!(a.flags&1024)&&!tL(a)&>(a.types,X0));return a.flags&138117121&&(a.objectFlags|=524288|(b?1048576:0)),b}function tL(a){if(a.aliasSymbol&&!a.aliasTypeArguments){const _=Vm(a.aliasSymbol,265);return!!(_&&Kr(_.parent,b=>b.kind===312?!0:b.kind===267?!1:"quit"))}return!1}function Cw(a,_,b=0){return!!(a===_||a.flags&3145728&>(a.types,C=>Cw(C,_,b))||b<3&&a.flags&16777216&&(Cw(QP(a),_,b+1)||Cw(X6(a),_,b+1)))}function Ngt(a,_){const b=F2(a);return b?!!b.type&&Cw(b.type,_):Cw(j(a),_)}function mbe(a){const _=Td();e8(a,C=>{if(!(C.flags&128))return;const M=ty(C.value),z=Ge(4,M);z.links.type=gn,C.symbol&&(z.declarations=C.symbol.declarations,z.valueDeclaration=C.symbol.valueDeclaration),_.set(M,z)});const b=a.flags&4?[yD(xe,Yu,!1)]:Zn;return jo(void 0,_,Zn,Zn,b)}function qPe(a,_,b){const C=a.id+","+_.id+","+b.id;if(Fh.has(C))return Fh.get(C);const M=a.id+","+(_.target||_).id;if(ni(J0,M))return;J0.push(M);const z=Het(a,_,b);return J0.pop(),Fh.set(C,z),z}function Que(a){return!(ji(a)&262144)||zu(a)&>(Vp(a),_=>Que(Vo(_)))||_p(a)&>(Fb(a),Que)}function Het(a,_,b){if(!(Cd(a,xe)||Vp(a).length!==0&&Que(a)))return;if(UA(a))return W1(lM(Tm(a)[0],_,b),Tte(a));if(_p(a)){const M=Vn(Fb(a),Z=>lM(Z,_,b)),z=jS(_)&4?Ol(a.target.elementFlags,Z=>Z&2?1:Z):a.target.elementFlags;return $v(M,z,a.target.readonly,a.target.labeledElementDeclarations)}const C=Uv(1040,void 0);return C.source=a,C.mappedType=_,C.constraintType=b,C}function wgt(a){const _=Mt(a);return _.type||(_.type=lM(a.links.propertyType,a.links.mappedType,a.links.constraintType)),_.type}function lM(a,_,b){const C=s2(b.type,L1(_)),M=SC(_),z=Yue(C);return uM([z],a,M),gbe(z)||co}function*hBe(a,_,b,C){const M=Vp(_);for(const z of M)if(!Qx(z)&&(b||!(z.flags&16777216||I_(z)&48))){const Z=Fn(a,z.escapedName);if(!Z)yield z;else if(C){const me=Vo(z);if(me.flags&109472){const Se=Vo(Z);Se.flags&1||B1(Se)===B1(me)||(yield z)}}}}function u5(a,_,b,C){return V5(hBe(a,_,b,C))}function Zue(a,_){return!(_.target.combinedFlags&8)&&_.target.minLength>a.target.minLength||!_.target.hasRestElement&&(a.target.hasRestElement||_.target.fixedLengthr5(z,M),a)===a&&xte(a,_)}return!1}function KPe(a,_){if(a===_||_.flags&5)return!0;if(a.flags&128){const b=a.value;return!!(_.flags&8&&Jet(b,!1)||_.flags&64&&XH(b,!1)||_.flags&98816&&b===_.intrinsicName||_.flags&268435456&&xte(qv(b),_))}if(a.flags&134217728){const b=a.texts;return b.length===2&&b[0]===""&&b[1]===""&&Mp(a.types[0],_)}return Mp(a,_)}function bBe(a,_){return a.flags&128?$et([a.value],Zn,_):a.flags&134217728?sf(a.texts,_.texts)?Vn(a.types,Lgt):$et(a.texts,a.types,_):void 0}function hbe(a,_){const b=bBe(a,_);return!!b&&jr(b,(C,M)=>KPe(C,_.types[M]))}function Lgt(a){return a.flags&402653317?a:kB(["",""],[a])}function $et(a,_,b){const C=a.length-1,M=a[0],z=a[C],Z=b.texts,me=Z.length-1,Se=Z[0],Je=Z[me];if(C===0&&M.length0){let $s=dn,Ba=yn;for(;Ba=hr($s).indexOf(aa,Ba),!(Ba>=0);){if($s++,$s===a.length)return;Ba=0}bi($s,Ba),yn+=aa.length}else if(yn!ni(od,dm)):Gi,Jf?gi(Ps,dm=>!ni(Jf,dm)):Ps]}function Ba(Gi,Ps,wf){const od=Gi.length!!Go(Jf));if(!od||Ps&&od!==Ps)return;Ps=od}return Ps}function Ga(Gi,Ps,wf){let od=0;if(wf&1048576){let Jf;const dm=Gi.flags&1048576?Gi.types:[Gi],Zg=new Array(dm.length);let Pv=!1;for(const Lp of Ps)if(Go(Lp))Jf=Lp,od++;else for(let $T=0;$TZg[On]?void 0:$T);if(Lp.length){yn(gl(Lp),Jf);return}}}else for(const Jf of Ps)Go(Jf)?od++:yn(Gi,Jf);if(wf&2097152?od===1:od>0)for(const Jf of Ps)Go(Jf)&&hr(Gi,Jf,1)}function hs(Gi,Ps,wf){if(wf.flags&1048576){let od=!1;for(const Jf of wf.types)od=hs(Gi,Ps,Jf)||od;return od}if(wf.flags&4194304){const od=Go(wf.type);if(od&&!od.isFixed&&!RV(Gi)){const Jf=qPe(Gi,Ps,wf);Jf&&hr(Jf,od.typeParameter,ji(Gi)&262144?16:8)}return!0}if(wf.flags&262144){hr(YP(Gi,Gi.pattern?2:0),wf,32);const od=Er(wf);if(od&&hs(Gi,Ps,od))return!0;const Jf=Vn(Vp(Gi),Vo),dm=Vn(T_(Gi),Zg=>Zg!==pa?Zg.type:vs);return yn(gl(Hi(Jf,dm)),SC(Ps)),!0}return!1}function Ld(Gi,Ps){if(Gi.flags&16777216)yn(Gi.checkType,Ps.checkType),yn(Gi.extendsType,Ps.extendsType),yn(QP(Gi),QP(Ps)),yn(X6(Gi),X6(Ps));else{const wf=[QP(Ps),X6(Ps)];Wo(Gi,wf,Ps.flags,M?64:0)}}function nl(Gi,Ps){const wf=bBe(Gi,Ps),od=Ps.types;if(wf||jr(Ps.texts,Jf=>Jf.length===0))for(let Jf=0;JfXt|bs.flags,0);if(!(On&4)){const Xt=dm.value;On&296&&!Jet(Xt,!0)&&(On&=-297),On&2112&&!XH(Xt,!0)&&(On&=-2113);const bs=Em($T,(as,Ec)=>Ec.flags&On?as.flags&4?as:Ec.flags&4?dm:as.flags&134217728?as:Ec.flags&134217728&&hbe(dm,Ec)?dm:as.flags&268435456?as:Ec.flags&268435456&&Xt===AV(Ec.symbol,Xt)?dm:as.flags&128?as:Ec.flags&128&&Ec.value===Xt?Ec:as.flags&8?as:Ec.flags&8?bD(+Xt):as.flags&32?as:Ec.flags&32?bD(+Xt):as.flags&256?as:Ec.flags&256&&Ec.value===+Xt?Ec:as.flags&64?as:Ec.flags&64?Mgt(Xt):as.flags&2048?as:Ec.flags&2048&&tD(Ec.value)===Xt?Ec:as.flags&16?as:Ec.flags&16?Xt==="true"?Ji:Xt==="false"?rr:Ca:as.flags&512?as:Ec.flags&512&&Ec.intrinsicName===Xt?Ec:as.flags&32768?as:Ec.flags&32768&&Ec.intrinsicName===Xt?Ec:as.flags&65536?as:Ec.flags&65536&&Ec.intrinsicName===Xt?Ec:as:as,vs);if(!(bs.flags&131072)){yn(bs,Zg);continue}}}}yn(dm,Zg)}}function id(Gi,Ps){var wf,od;if(ji(Gi)&4&&ji(Ps)&4&&(Gi.target===Ps.target||UA(Gi)&&UA(Ps))){Ba(Tm(Gi),Tm(Ps),eBe(Gi.target));return}if(Ty(Gi)&&Ty(Ps)){yn(mT(Gi),mT(Ps)),yn(SC(Gi),SC(Ps));const Jf=Vg(Gi),dm=Vg(Ps);Jf&&dm&&yn(Jf,dm)}if(ji(Ps)&32&&!Ps.declaration.nameType){const Jf=mT(Ps);if(hs(Gi,Ps,Jf))return}if(!Rgt(Gi,Ps)){if(GI(Gi)){if(_p(Ps)){const Jf=Fo(Gi),dm=Fo(Ps),Zg=Tm(Ps),Pv=Ps.target.elementFlags;if(_p(Gi)&&Igt(Gi,Ps)){for(let On=0;On1){const _=gi(a,XPe);if(_.length){const b=gl(_,2);return Hi(gi(a,C=>!XPe(C)),[b])}}return a}function Fgt(a){return a.priority&416?Dd(a.contraCandidates):MB(a.contraCandidates)}function YPe(a,_){const b=Ogt(a.candidates),C=SBe(a.typeParameter)||nc(a.typeParameter),M=!C&&a.topLevel&&(a.isFixed||!Ngt(_,a.typeParameter)),z=C?Ol(b,B1):M?Ol(b,TO):b,Z=a.priority&416?gl(z,2):Cgt(z);return Bb(Z)}function AO(a,_){const b=a.inferences[_];if(!b.inferredType){let C,M;if(a.signature){const Z=b.candidates?YPe(b,a.signature):void 0,me=b.contraCandidates?Fgt(b):void 0;if(Z||me){const Se=Z&&(!me||!(Z.flags&131072)&>(b.contraCandidates,Je=>X4(Z,Je))&&jr(a.inferences,Je=>Je!==b&&Wi(Je.typeParameter)!==b.typeParameter||jr(Je.candidates,vt=>X4(vt,Z))));C=Se?Z:me,M=Se?me:Z}else if(a.flags&1)C=ou;else{const Se=LI(b.typeParameter);Se&&(C=Nf(Se,FWe(_et(a,_),a.nonFixingMapper)))}}else C=gbe(b);b.inferredType=C||EBe(!!(a.flags&2));const z=Wi(b.typeParameter);if(z){const Z=Nf(z,a.nonFixingMapper);(!C||C===mt||!a.compareTypes(C,M1(Z,C)))&&(b.inferredType=M&&a.compareTypes(M,M1(Z,M))?M:Z)}}return b.inferredType}function EBe(a){return a?gn:co}function Sx(a){const _=[];for(let b=0;bKp(_)||mg(_)||e0(_)))}function ybe(a,_,b,C){switch(a.kind){case 80:if(!kS(a)){const Z=ED(a);return Z!==Ir?`${C?Im(C):"-1"}|${Gh(_)}|${Gh(b)}|${Bp(Z)}`:void 0}case 110:return`0|${C?Im(C):"-1"}|${Gh(_)}|${Gh(b)}`;case 235:case 217:return ybe(a.expression,_,b,C);case 166:const M=ybe(a.left,_,b,C);return M&&M+"."+a.right.escapedText;case 211:case 212:const z=fM(a);if(z!==void 0){const Z=ybe(a.expression,_,b,C);return Z&&Z+"."+z}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Im(a)}#${Gh(_)}`}}function Xh(a,_){switch(_.kind){case 217:case 235:return Xh(a,_.expression);case 226:return wy(_)&&Xh(a,_.left)||ys(_)&&_.operatorToken.kind===28&&Xh(a,_.right)}switch(a.kind){case 236:return _.kind===236&&a.keywordToken===_.keywordToken&&a.name.escapedText===_.name.escapedText;case 80:case 81:return kS(a)?_.kind===110:_.kind===80&&ED(a)===ED(_)||(ff(_)||ym(_))&&zh(ED(a))===wi(_);case 110:return _.kind===110;case 108:return _.kind===108;case 235:case 217:return Xh(a.expression,_);case 211:case 212:const b=fM(a),C=Kf(_)?fM(_):void 0;return b!==void 0&&C!==void 0&&C===b&&Xh(a.expression,_.expression);case 166:return Kf(_)&&a.right.escapedText===fM(_)&&Xh(a.left,_.expression);case 226:return ys(a)&&a.operatorToken.kind===28&&Xh(a.right,_)}return!1}function fM(a){if(sa(a))return a.name.escapedText;if(Ed(a))return Wgt(a);if(ym(a)){const _=_c(a);return _?ty(_):void 0}if(Pu(a))return""+a.parent.parameters.indexOf(a)}function QPe(a){return a.flags&8192?a.escapedName:a.flags&384?ty(""+a.value):void 0}function Wgt(a){return Qv(a.argumentExpression)?ty(a.argumentExpression.text):Uh(a.argumentExpression)?nL(a.argumentExpression):void 0}function nL(a){const _=P_(a,111551,!0);if(!_||!(LV(_)||_.flags&8))return;const b=_.valueDeclaration;if(b===void 0)return;const C=Tu(b);if(C){const M=QPe(C);if(M!==void 0)return M}if(p7(b)&&Lr(b,a)){const M=j8(b);if(M)return QPe(yT(M));if(Qb(b))return g7(b.name)}}function ABe(a,_){for(;Kf(a);)if(a=a.expression,Xh(a,_))return!0;return!1}function Id(a,_){for(;ky(a);)if(a=a.expression,Xh(a,_))return!0;return!1}function nN(a,_){if(a&&a.flags&1048576){const b=gw(a,_);if(b&&I_(b)&2)return b.links.isDiscriminantProperty===void 0&&(b.links.isDiscriminantProperty=(b.links.checkFlags&192)===192&&!mte(Vo(b))),!!b.links.isDiscriminantProperty}return!1}function vbe(a,_){let b;for(const C of a)if(nN(_,C.escapedName)){if(b){b.push(C);continue}b=[C]}return b}function bbe(a,_){const b=new Map;let C=0;for(const M of a)if(M.flags&61603840){const z=wm(M,_);if(z){if(!Ew(z))return;let Z=!1;e8(z,me=>{const Se=Gh(B1(me)),Je=b.get(Se);Je?Je!==co&&(b.set(Se,co),Z=!0):b.set(Se,M)}),Z||C++}}return C>=10&&C*2>=a.length?b:void 0}function a1(a){const _=a.types;if(!(_.length<10||ji(a)&32768||dp(_,b=>!!(b.flags&59506688))<10)){if(a.keyPropertyName===void 0){const b=Ot(_,M=>M.flags&59506688?Ot(Vp(M),z=>rA(Vo(z))?z.escapedName:void 0):void 0),C=b&&bbe(_,b);a.keyPropertyName=C?b:"",a.constituentMap=C}return a.keyPropertyName.length?a.keyPropertyName:void 0}}function rN(a,_){var b;const C=(b=a.constituentMap)==null?void 0:b.get(Gh(B1(_)));return C!==co?C:void 0}function ZPe(a,_){const b=a1(a),C=b&&wm(_,b);return C&&rN(a,C)}function Ket(a,_){const b=a1(a),C=b&&lr(_.properties,z=>z.symbol&&z.kind===303&&z.symbol.escapedName===b&&Rbe(z.initializer)),M=C&&qA(C.initializer);return M&&rN(a,M)}function Ate(a,_){return Xh(a,_)||ABe(a,_)}function Xet(a,_){if(a.arguments){for(const b of a.arguments)if(Ate(_,b))return!0}return!!(a.expression.kind===211&&Ate(_,a.expression.expression))}function CBe(a){return(!a.id||a.id<0)&&(a.id=Eae,Eae++),a.id}function Yet(a,_){if(!(a.flags&1048576))return Mp(a,_);for(const b of a.types)if(Mp(b,_))return!0;return!1}function Qet(a,_){if(a===_)return a;if(_.flags&131072)return _;const b=`A${Gh(a)},${Gh(_)}`;return na(b)??_a(b,Tbe(a,_))}function Tbe(a,_){const b=D0(a,M=>Yet(_,M)),C=_.flags&512&&jk(_)?bh(b,ZP):b;return Mp(_,C)?C:a}function DBe(a){const _=K0(a);return!!(_.callSignatures.length||_.constructSignatures.length||_.members.get("bind")&&X4(a,S0))}function bS(a){a.flags&467927040&&(a=Co(a)||co);const _=a.flags;if(_&268435460)return Ye?16317953:16776705;if(_&134217856){const b=_&128&&a.value==="";return Ye?b?12123649:7929345:b?12582401:16776705}if(_&40)return Ye?16317698:16776450;if(_&256){const b=a.value===0;return Ye?b?12123394:7929090:b?12582146:16776450}if(_&64)return Ye?16317188:16775940;if(_&2048){const b=fBe(a);return Ye?b?12122884:7928580:b?12581636:16775940}return _&16?Ye?16316168:16774920:_&528?Ye?a===rr||a===mi?12121864:7927560:a===rr||a===mi?12580616:16774920:_&524288?ji(a)&16&&rM(a)?Ye?83427327:83886079:DBe(a)?Ye?7880640:16728e3:Ye?7888800:16736160:_&16384?9830144:_&32768?26607360:_&65536?42917664:_&12288?Ye?7925520:16772880:_&67108864?Ye?7888800:16736160:_&131072?0:_&1048576?Em(a.types,(b,C)=>b|bS(C),0):_&2097152?Bgt(a):83886079}function Bgt(a){const _=cy(a,402784252);let b=0,C=134217727;for(const M of a.types)if(!(_&&M.flags&524288)){const z=bS(M);b|=z,C&=z}return b&8256|C&134209471}function JA(a,_){return D0(a,b=>(bS(b)&_)!==0)}function OB(a,_){const b=IBe(JA(Ye&&a.flags&2?fx:a,_));if(Ye)switch(_){case 524288:return bh(b,C=>bS(C)&65536?Dd([C,bS(C)&131072&&!cy(b,65536)?gl([Yu,$e]):Yu]):C);case 1048576:return bh(b,C=>bS(C)&131072?Dd([C,bS(C)&65536&&!cy(b,32768)?gl([Yu,Ui]):Yu]):C);case 2097152:case 4194304:return bh(b,C=>bS(C)&262144?Get(C):C)}return b}function IBe(a){return a===fx?co:a}function kBe(a,_){return _?gl([xi(a),yT(_)]):a}function Zet(a,_){var b;const C=q6(_);if(!yv(C))return _r;const M=vv(C);return wm(a,M)||Cte((b=yx(a,M))==null?void 0:b.type)||_r}function ett(a,_){return iA(a,LB)&&Bet(a,_)||Cte(cL(65,a,Ui,void 0))||_r}function Cte(a){return a&&(Le.noUncheckedIndexedAccess?gl([a,We]):a)}function ttt(a){return W1(cL(65,a,Ui,void 0)||_r)}function eNe(a){return a.parent.kind===209&&Sbe(a.parent)||a.parent.kind===303&&Sbe(a.parent.parent)?kBe(VI(a),a.right):yT(a.right)}function Sbe(a){return a.parent.kind===226&&a.parent.left===a||a.parent.kind===250&&a.parent.initializer===a}function zgt(a,_){return ett(VI(a),a.elements.indexOf(_))}function Ggt(a){return ttt(VI(a.parent))}function tNe(a){return Zet(VI(a.parent),a.name)}function _M(a){return kBe(tNe(a),a.objectAssignmentInitializer)}function VI(a){const{parent:_}=a;switch(_.kind){case 249:return xe;case 250:return zfe(_)||_r;case 226:return eNe(_);case 220:return Ui;case 209:return zgt(_,a);case 230:return Ggt(_);case 303:return tNe(_);case 304:return _M(_)}return _r}function jgt(a){const _=a.parent,b=nNe(_.parent),C=_.kind===206?Zet(b,a.propertyName||a.name):a.dotDotDotToken?ttt(b):ett(b,_.elements.indexOf(a));return kBe(C,a.initializer)}function dK(a){return ge(a).resolvedType||yT(a)}function ntt(a){return a.initializer?dK(a.initializer):a.parent.parent.kind===249?xe:a.parent.parent.kind===250&&zfe(a.parent.parent)||_r}function nNe(a){return a.kind===260?ntt(a):jgt(a)}function tfe(a){return a.kind===260&&a.initializer&&yh(a.initializer)||a.kind!==208&&a.parent.kind===226&&yh(a.parent.right)}function qS(a){switch(a.kind){case 217:return qS(a.expression);case 226:switch(a.operatorToken.kind){case 64:case 76:case 77:case 78:return qS(a.left);case 28:return qS(a.right)}}return a}function PBe(a){const{parent:_}=a;return _.kind===217||_.kind===226&&_.operatorToken.kind===64&&_.left===a||_.kind===226&&_.operatorToken.kind===28&&_.right===a?PBe(_):a}function Ebe(a){return a.kind===296?B1(yT(a.expression)):vs}function rNe(a){const _=ge(a);if(!_.switchTypes){_.switchTypes=[];for(const b of a.caseBlock.clauses)_.switchTypes.push(Ebe(b))}return _.switchTypes}function rtt(a){if(gt(a.caseBlock.clauses,b=>b.kind===296&&!sp(b.expression)))return;const _=[];for(const b of a.caseBlock.clauses){const C=b.kind===296?b.expression.text:void 0;_.push(C&&!ni(_,C)?C:void 0)}return _}function $A(a,_){return a.flags&1048576?!Ot(a.types,b=>!ni(_,b)):ni(_,a)}function pK(a,_){return!!(a===_||a.flags&131072||_.flags&1048576&&itt(a,_))}function itt(a,_){if(a.flags&1048576){for(const b of a.types)if(!W2(_.types,b))return!1;return!0}return a.flags&1056&&w4(a)===_?!0:W2(_.types,a)}function e8(a,_){return a.flags&1048576?Ot(a.types,_):_(a)}function dM(a,_){return a.flags&1048576?gt(a.types,_):_(a)}function iA(a,_){return a.flags&1048576?jr(a.types,_):_(a)}function NBe(a,_){return a.flags&3145728?jr(a.types,_):_(a)}function D0(a,_){if(a.flags&1048576){const b=a.types,C=gi(b,_);if(C===b)return a;const M=a.origin;let z;if(M&&M.flags&1048576){const Z=M.types,me=gi(Z,Se=>!!(Se.flags&1048576)||_(Se));if(Z.length-me.length===b.length-C.length){if(me.length===1)return me[0];z=n5(1048576,me)}}return vPe(C,a.objectFlags&16809984,void 0,void 0,z)}return a.flags&131072||_(a)?a:vs}function iNe(a,_){return D0(a,b=>b!==_)}function wBe(a){return a.flags&1048576?a.types.length:1}function bh(a,_,b){if(a.flags&131072)return a;if(!(a.flags&1048576))return _(a);const C=a.origin,M=C&&C.flags&1048576?C.types:a.types;let z,Z=!1;for(const me of M){const Se=me.flags&1048576?bh(me,_,b):_(me);Z||(Z=me!==Se),Se&&(z?z.push(Se):z=[Se])}return Z?z&&gl(z,b?0:1):a}function RBe(a,_,b,C){return a.flags&1048576&&b?gl(Vn(a.types,_),1,b,C):bh(a,_)}function f5(a,_){return D0(a,b=>(b.flags&_)!==0)}function xbe(a,_){return cy(a,134217804)&&cy(_,402655616)?bh(a,b=>b.flags&4?f5(_,402653316):H4(b)&&!cy(_,402653188)?f5(_,128):b.flags&8?f5(_,264):b.flags&64?f5(_,2112):b):a}function FB(a){return a.flags===0}function WB(a){return a.flags===0?a.type:a}function mK(a,_){return _?{flags:0,type:a.flags&131072?ou:a}:a}function Vgt(a){const _=Uv(256);return _.elementType=a,_}function nfe(a){return er[a.id]||(er[a.id]=Vgt(a))}function ott(a,_){const b=Aw(Tx(qA(_)));return pK(b,a.elementType)?a:nfe(gl([a.elementType,b]))}function oNe(a){return a.flags&131072?ii:W1(a.flags&1048576?gl(a.types,2):a)}function Abe(a){return a.finalArrayType||(a.finalArrayType=oNe(a.elementType))}function t8(a){return ji(a)&256?Abe(a):a}function aNe(a){return ji(a)&256?a.elementType:vs}function Ugt(a){let _=!1;for(const b of a)if(!(b.flags&131072)){if(!(ji(b)&256))return!1;_=!0}return _}function att(a){const _=PBe(a),b=_.parent,C=sa(b)&&(b.name.escapedText==="length"||b.parent.kind===213&&An(b.name)&&_Se(b.name)),M=b.kind===212&&b.expression===_&&b.parent.kind===226&&b.parent.operatorToken.kind===64&&b.parent.left===b&&!IS(b.parent)&&lh(yT(b.argumentExpression),296);return C||M}function stt(a){return(ff(a)||Os(a)||Np(a)||Pu(a))&&!!(Kb(a)||Rs(a)&&NN(a)&&a.initializer&&EP(a.initializer)&&bA(a.initializer))}function BB(a,_){if(a=wp(a),a.flags&8752)return Vo(a);if(a.flags&7){if(I_(a)&262144){const C=a.links.syntheticOrigin;if(C&&BB(C))return Vo(a)}const b=a.valueDeclaration;if(b){if(stt(b))return Vo(a);if(ff(b)&&b.parent.parent.kind===250){const C=b.parent.parent,M=rfe(C.expression,void 0);if(M){const z=C.awaitModifier?15:13;return cL(z,M,Ui,void 0)}}_&&ml(_,kc(b,w._0_needs_an_explicit_type_annotation,Cl(a)))}}}function rfe(a,_){if(!(a.flags&67108864))switch(a.kind){case 80:const b=zh(ED(a));return BB(b,_);case 110:return Kgt(a);case 108:return _Ne(a);case 211:{const C=rfe(a.expression,_);if(C){const M=a.name;let z;if(Gu(M)){if(!C.symbol)return;z=Fn(C,R7(C.symbol,M.escapedText))}else z=Fn(C,M.escapedText);return z&&BB(z,_)}return}case 217:return rfe(a.expression,_)}}function Cbe(a){const _=ge(a);let b=_.effectsSignature;if(b===void 0){let C;a.parent.kind===244?C=rfe(a.expression,void 0):a.expression.kind!==108&&(ky(a)?C=HI(Kue(n_(a.expression),a.expression),a.expression):C=TK(a.expression));const M=Ti(C&&O1(C)||co,0),z=M.length===1&&!M[0].typeParameters?M[0]:gt(M,Dbe)?oN(a):void 0;b=_.effectsSignature=z&&Dbe(z)?z:vn}return b===vn?void 0:b}function Dbe(a){return!!(F2(a)||a.declaration&&(se(a.declaration)||co).flags&131072)}function Hgt(a,_){if(a.kind===1||a.kind===3)return _.arguments[a.parameterIndex];const b=_g(_.expression);return Kf(b)?_g(b.expression):void 0}function MBe(a){const _=Kr(a,nde),b=ns(a),C=nC(b,_.statements.pos);no.add(Pp(b,C.start,C.length,w.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Ibe(a){const _=sNe(a,!1);return X=a,ie=_,_}function MV(a){const _=_g(a,!0);return _.kind===97||_.kind===226&&(_.operatorToken.kind===56&&(MV(_.left)||MV(_.right))||_.operatorToken.kind===57&&MV(_.left)&&MV(_.right))}function sNe(a,_){for(;;){if(a===X)return ie;const b=a.flags;if(b&4096){if(!_){const C=CBe(a),M=En[C];return M!==void 0?M:En[C]=sNe(a,!0)}_=!1}if(b&368)a=a.antecedent;else if(b&512){const C=Cbe(a.node);if(C){const M=F2(C);if(M&&M.kind===3&&!M.type){const z=a.node.arguments[M.parameterIndex];if(z&&MV(z))return!1}if(j(C).flags&131072)return!1}a=a.antecedent}else{if(b&4)return gt(a.antecedents,C=>sNe(C,!1));if(b&8){const C=a.antecedents;if(C===void 0||C.length===0)return!1;a=C[0]}else if(b&128){if(a.clauseStart===a.clauseEnd&&Lze(a.switchStatement))return!1;a=a.antecedent}else if(b&1024){X=void 0;const C=a.target,M=C.antecedents;C.antecedents=a.antecedents;const z=sNe(a.antecedent,!1);return C.antecedents=M,z}else return!(b&1)}}}function cNe(a,_){for(;;){const b=a.flags;if(b&4096){if(!_){const C=CBe(a),M=fr[C];return M!==void 0?M:fr[C]=cNe(a,!0)}_=!1}if(b&496)a=a.antecedent;else if(b&512){if(a.node.expression.kind===108)return!0;a=a.antecedent}else{if(b&4)return jr(a.antecedents,C=>cNe(C,!1));if(b&8)a=a.antecedents[0];else if(b&1024){const C=a.target,M=C.antecedents;C.antecedents=a.antecedents;const z=cNe(a.antecedent,!1);return C.antecedents=M,z}else return!!(b&1)}}}function LBe(a){switch(a.kind){case 110:return!0;case 80:if(!kS(a)){const _=ED(a);return LV(_)||_oe(_)&&!zB(_)}break;case 211:case 212:return LBe(a.expression)&&KI(ge(a).resolvedSymbol||Ir)}return!1}function n8(a,_,b=_,C,M=(z=>(z=to(a,LN))==null?void 0:z.flowNode)()){let z,Z=!1,me=0;if($)return _r;if(!M)return _;J++;const Se=F,Je=WB(dn(M));F=Se;const vt=ji(Je)&256&&att(a)?ii:t8(Je);if(vt===z_||a.parent&&a.parent.kind===235&&!(vt.flags&131072)&&JA(vt,2097152).flags&131072)return _;return vt===es?co:vt;function Pt(){return Z?z:(Z=!0,z=ybe(a,_,b,C))}function dn(Dr){var Pi;if(me===2e3)return(Pi=tu)==null||Pi.instant(tu.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Dr.id}),$=!0,MBe(a),_r;me++;let No;for(;;){const ao=Dr.flags;if(ao&4096){for(let ja=Se;ja=0&&No.parameterIndex!(ja.flags&163840)):Pi.kind===221&&Id(Pi.expression,a)&&(ao=Jf(ao,Dr.switchStatement,Dr.clauseStart,Dr.clauseEnd,ja=>!(ja.flags&131072||ja.flags&128&&ja.value==="undefined"))));const Bo=Ga(Pi,ao);Bo&&(ao=nl(ao,Bo,Dr.switchStatement,Dr.clauseStart,Dr.clauseEnd))}return mK(ao,FB(No))}function lo(Dr){const Pi=[];let No=!1,ao=!1,Bo;for(const ja of Dr.antecedents){if(!Bo&&ja.flags&128&&ja.clauseStart===ja.clauseEnd){Bo=ja;continue}const rf=dn(ja),zl=WB(rf);if(zl===_&&_===b)return zl;Dy(Pi,zl),pK(zl,b)||(No=!0),FB(rf)&&(ao=!0)}if(Bo){const ja=dn(Bo),rf=WB(ja);if(!(rf.flags&131072)&&!ni(Pi,rf)&&!Lze(Bo.switchStatement)){if(rf===_&&_===b)return rf;Pi.push(rf),pK(rf,b)||(No=!0),FB(ja)&&(ao=!0)}}return mK(Go(Pi,No?2:1),ao)}function Xa(Dr){const Pi=CBe(Dr),No=cn[Pi]||(cn[Pi]=new Map),ao=Pt();if(!ao)return _;const Bo=No.get(ao);if(Bo)return Bo;for(let Jo=P;Jo{const Jo=db(td,ao);return!(Jo.flags&131072)&&!(zl.flags&131072)&&nbe(zl,Jo)})}function Ld(Dr,Pi,No,ao,Bo){if((No===37||No===38)&&Dr.flags&1048576){const ja=a1(Dr);if(ja&&ja===fM(Pi)){const rf=rN(Dr,yT(ao));if(rf)return No===(Bo?37:38)?rf:rA(wm(rf,ja)||co)?iNe(Dr,rf):Dr}}return hs(Dr,Pi,ja=>Ps(ja,No,ao,Bo))}function nl(Dr,Pi,No,ao,Bo){if(aorN(Dr,zl)||co));if(rf!==co)return rf}return hs(Dr,Pi,ja=>dm(ja,No,ao,Bo))}function id(Dr,Pi,No){if(Xh(a,Pi))return OB(Dr,No?4194304:8388608);Ye&&No&&Id(Pi,a)&&(Dr=OB(Dr,2097152));const ao=Ga(Pi,Dr);return ao?hs(Dr,ao,Bo=>JA(Bo,No?4194304:8388608)):Dr}function $y(Dr,Pi,No){const ao=Fn(Dr,Pi);return ao?!!(ao.flags&16777216||I_(ao)&48)||No:!!yx(Dr,Pi)||!No}function l2(Dr,Pi,No){const ao=vv(Pi);if(dM(Dr,ja=>$y(ja,ao,!0)))return D0(Dr,ja=>$y(ja,ao,No));if(No){const ja=VZe();if(ja)return Dd([Dr,Mc(ja,[Pi,co])])}return Dr}function Cx(Dr,Pi,No){switch(Pi.operatorToken.kind){case 64:case 76:case 77:case 78:return id(Mu(Dr,Pi.right,No),Pi.left,No);case 35:case 36:case 37:case 38:const ao=Pi.operatorToken.kind,Bo=qS(Pi.left),ja=qS(Pi.right);if(Bo.kind===221&&sp(ja))return wf(Dr,Bo,ao,ja,No);if(ja.kind===221&&sp(Bo))return wf(Dr,ja,ao,Bo,No);if(Xh(a,Bo))return Ps(Dr,ao,ja,No);if(Xh(a,ja))return Ps(Dr,ao,Bo,No);Ye&&(Id(Bo,a)?Dr=Gi(Dr,ao,ja,No):Id(ja,a)&&(Dr=Gi(Dr,ao,Bo,No)));const rf=Ga(Bo,Dr);if(rf)return Ld(Dr,rf,ao,ja,No);const zl=Ga(ja,Dr);if(zl)return Ld(Dr,zl,ao,Bo,No);if($T(Bo))return On(Dr,ao,ja,No);if($T(ja))return On(Dr,ao,Bo,No);break;case 104:return Xt(Dr,Pi,No);case 103:if(Gu(Pi.left))return kC(Dr,Pi,No);const td=qS(Pi.right);if(Ste(Dr)&&Kf(a)&&Xh(a.expression,td)){const Jo=yT(Pi.left);if(yv(Jo)&&fM(a)===vv(Jo))return JA(Dr,No?524288:65536)}if(Xh(a,td)){const Jo=yT(Pi.left);if(yv(Jo))return l2(Dr,Jo,No)}break;case 28:return Mu(Dr,Pi.right,No);case 56:return No?Mu(Mu(Dr,Pi.left,!0),Pi.right,!0):gl([Mu(Dr,Pi.left,!1),Mu(Dr,Pi.right,!1)]);case 57:return No?gl([Mu(Dr,Pi.left,!0),Mu(Dr,Pi.right,!0)]):Mu(Mu(Dr,Pi.left,!1),Pi.right,!1)}return Dr}function kC(Dr,Pi,No){const ao=qS(Pi.right);if(!Xh(a,ao))return Dr;ce.assertNode(Pi.left,Gu);const Bo=RNe(Pi.left);if(Bo===void 0)return Dr;const ja=Bo.parent,rf=Ny(ce.checkDefined(Bo.valueDeclaration,"should always have a declaration"))?Vo(ja):Rm(ja);return as(Dr,rf,No,!0)}function Gi(Dr,Pi,No,ao){const Bo=Pi===35||Pi===37,ja=Pi===35||Pi===36?98304:32768,rf=yT(No);return Bo!==ao&&iA(rf,td=>!!(td.flags&ja))||Bo===ao&&iA(rf,td=>!(td.flags&(3|ja)))?OB(Dr,2097152):Dr}function Ps(Dr,Pi,No,ao){if(Dr.flags&1)return Dr;(Pi===36||Pi===38)&&(ao=!ao);const Bo=yT(No),ja=Pi===35||Pi===36;if(Bo.flags&98304){if(!Ye)return Dr;const rf=ja?ao?262144:2097152:Bo.flags&65536?ao?131072:1048576:ao?65536:524288;return OB(Dr,rf)}if(ao){if(!ja&&(Dr.flags&2||dM(Dr,By))){if(Bo.flags&469893116||By(Bo))return Bo;if(Bo.flags&524288)return fp}const rf=D0(Dr,zl=>nbe(zl,Bo)||ja&&fK(zl,Bo));return xbe(rf,Bo)}return rA(Bo)?D0(Dr,rf=>!(NV(rf)&&nbe(rf,Bo))):Dr}function wf(Dr,Pi,No,ao,Bo){(No===36||No===38)&&(Bo=!Bo);const ja=qS(Pi.expression);if(!Xh(a,ja)){Ye&&Id(ja,a)&&Bo===(ao.text!=="undefined")&&(Dr=OB(Dr,2097152));const rf=Ga(ja,Dr);return rf?hs(Dr,rf,zl=>od(zl,ao,Bo)):Dr}return od(Dr,ao,Bo)}function od(Dr,Pi,No){return No?Zg(Dr,Pi.text):OB(Dr,xae.get(Pi.text)||32768)}function Jf(Dr,Pi,No,ao,Bo){return No!==ao&&jr(rNe(Pi).slice(No,ao),Bo)?JA(Dr,2097152):Dr}function dm(Dr,Pi,No,ao){const Bo=rNe(Pi);if(!Bo.length)return Dr;const ja=Bo.slice(No,ao),rf=No===ao||ni(ja,vs);if(Dr.flags&2&&!rf){let rc;for(let Ll=0;Llnbe(zl,rc)),zl);if(!rf)return td;const Jo=D0(Dr,rc=>!(NV(rc)&&ni(Bo,B1(uK(rc)))));return td.flags&131072?Jo:gl([td,Jo])}function Zg(Dr,Pi){switch(Pi){case"string":return Pv(Dr,xe,1);case"number":return Pv(Dr,an,2);case"bigint":return Pv(Dr,Un,4);case"boolean":return Pv(Dr,Ca,8);case"symbol":return Pv(Dr,Qa,16);case"object":return Dr.flags&1?Dr:gl([Pv(Dr,fp,32),Pv(Dr,$e,131072)]);case"function":return Dr.flags&1?Dr:Pv(Dr,S0,64);case"undefined":return Pv(Dr,Ui,65536)}return Pv(Dr,fp,128)}function Pv(Dr,Pi,No){return bh(Dr,ao=>Vk(ao,Pi,Wl)?bS(ao)&No?ao:vs:X4(Pi,ao)?Pi:bS(ao)&No?Dd([ao,Pi]):vs)}function Lp(Dr,Pi,No,ao){const Bo=rtt(Pi);if(!Bo)return Dr;const ja=Ho(Pi.caseBlock.clauses,td=>td.kind===297);if(No===ao||ja>=No&&ja(bS(Jo)&td)===td)}const zl=Bo.slice(No,ao);return gl(Vn(zl,td=>td?Zg(Dr,td):vs))}function $T(Dr){return(sa(Dr)&&ec(Dr.name)==="constructor"||Ed(Dr)&&sp(Dr.argumentExpression)&&Dr.argumentExpression.text==="constructor")&&Xh(a,Dr.expression)}function On(Dr,Pi,No,ao){if(ao?Pi!==35&&Pi!==37:Pi!==36&&Pi!==38)return Dr;const Bo=yT(No);if(!Vwe(Bo)&&!ko(Bo))return Dr;const ja=Fn(Bo,"prototype");if(!ja)return Dr;const rf=Vo(ja),zl=Q_(rf)?void 0:rf;if(!zl||zl===Ev||zl===S0)return Dr;if(Q_(Dr))return zl;return D0(Dr,Jo=>td(Jo,zl));function td(Jo,rc){return Jo.flags&524288&&ji(Jo)&1||rc.flags&524288&&ji(rc)&1?Jo.symbol===rc.symbol:X4(Jo,rc)}}function Xt(Dr,Pi,No){const ao=qS(Pi.left);if(!Xh(a,ao))return No&&Ye&&Id(ao,a)?OB(Dr,2097152):Dr;const Bo=yT(Pi.right);if(!s5(Bo,S0))return Dr;const ja=bh(Bo,bs);return Q_(Dr)&&(ja===Ev||ja===S0)||!No&&!(ja.flags&524288&&!By(ja))?Dr:as(Dr,ja,No,!0)}function bs(Dr){const Pi=wm(Dr,"prototype");if(Pi&&!Q_(Pi))return Pi;const No=Ti(Dr,1);return No.length?gl(Vn(No,ao=>j(VS(ao)))):Yu}function as(Dr,Pi,No,ao){const Bo=Dr.flags&1048576?`N${Gh(Dr)},${Gh(Pi)},${(No?1:0)|(ao?2:0)}`:void 0;return na(Bo)??_a(Bo,Ec(Dr,Pi,No,ao))}function Ec(Dr,Pi,No,ao){if(!No){if(ao)return D0(Dr,td=>!s5(td,Pi));const zl=as(Dr,Pi,!0,!1);return D0(Dr,td=>!pK(td,zl))}if(Dr.flags&3)return Pi;const Bo=ao?s5:X4,ja=Dr.flags&1048576?a1(Dr):void 0,rf=bh(Pi,zl=>{const td=ja&&wm(zl,ja),Jo=td&&rN(Dr,td),rc=bh(Jo||Dr,ao?Ll=>s5(Ll,zl)?Ll:s5(zl,Ll)?zl:vs:Ll=>vet(Ll,zl)?Ll:vet(zl,Ll)?zl:X4(Ll,zl)?Ll:X4(zl,Ll)?zl:vs);return rc.flags&131072?bh(Dr,Ll=>cy(Ll,465829888)&&Bo(zl,Co(Ll)||co)?Dd([Ll,zl]):vs):rc});return rf.flags&131072?X4(Pi,Dr)?Pi:Mp(Dr,Pi)?Dr:Mp(Pi,Dr)?Pi:Dd([Dr,Pi]):rf}function Bc(Dr,Pi,No){if(Xet(Pi,a)){const ao=No||!R8(Pi)?Cbe(Pi):void 0,Bo=ao&&F2(ao);if(Bo&&(Bo.kind===0||Bo.kind===1))return Rf(Dr,Bo,Pi,No)}if(Ste(Dr)&&Kf(a)&&sa(Pi.expression)){const ao=Pi.expression;if(Xh(a.expression,qS(ao.expression))&&An(ao.name)&&ao.name.escapedText==="hasOwnProperty"&&Pi.arguments.length===1){const Bo=Pi.arguments[0];if(sp(Bo)&&fM(a)===ty(Bo.text))return JA(Dr,No?524288:65536)}}return Dr}function Rf(Dr,Pi,No,ao){if(Pi.type&&!(Q_(Dr)&&(Pi.type===Ev||Pi.type===S0))){const Bo=Hgt(Pi,No);if(Bo){if(Xh(a,Bo))return as(Dr,Pi.type,ao,!1);Ye&&ao&&Id(Bo,a)&&!(bS(Pi.type)&65536)&&(Dr=OB(Dr,2097152));const ja=Ga(Bo,Dr);if(ja)return hs(Dr,ja,rf=>as(rf,Pi.type,ao,!1))}}return Dr}function Mu(Dr,Pi,No){if(zU(Pi)||ys(Pi.parent)&&(Pi.parent.operatorToken.kind===61||Pi.parent.operatorToken.kind===78)&&Pi.parent.left===Pi)return xc(Dr,Pi,No);switch(Pi.kind){case 80:if(!Xh(a,Pi)&&de<5){const ao=ED(Pi);if(LV(ao)){const Bo=ao.valueDeclaration;if(Bo&&ff(Bo)&&!Bo.type&&Bo.initializer&&LBe(a)){de++;const ja=Mu(Dr,Bo.initializer,No);return de--,ja}}}case 110:case 108:case 211:case 212:return id(Dr,Pi,No);case 213:return Bc(Dr,Pi,No);case 217:case 235:return Mu(Dr,Pi.expression,No);case 226:return Cx(Dr,Pi,No);case 224:if(Pi.operator===54)return Mu(Dr,Pi.operand,!No);break}return Dr}function xc(Dr,Pi,No){if(Xh(a,Pi))return OB(Dr,No?2097152:262144);const ao=Ga(Pi,Dr);return ao?hs(Dr,ao,Bo=>JA(Bo,No?2097152:262144)):Dr}}function Jgt(a,_){if(a=zh(a),(_.kind===80||_.kind===81)&&(kH(_)&&(_=_.parent),Gy(_)&&(!IS(_)||o6(_)))){const b=jPe(yT(_));if(zh(ge(_).resolvedSymbol)===a)return b}return vP(_)&&_P(_.parent)&&Nh(_.parent)?HR(_.parent.symbol):WA(a)}function kE(a){return Kr(a.parent,_=>S_(_)&&!GL(_)||_.kind===268||_.kind===312||_.kind===172)}function zB(a){if(!a.valueDeclaration)return!1;const _=rI(a.valueDeclaration).parent,b=ge(_);return b.flags&131072||(b.flags|=131072,_5(_)||ife(_)),a.isAssigned||!1}function _5(a){return!!Kr(a.parent,_=>(S_(_)||CP(_))&&!!(ge(_).flags&131072))}function ife(a){if(a.kind===80){if(IS(a)){const _=ED(a);_oe(_)&&(_.isAssigned=!0)}}else B_(a,ife)}function LV(a){return a.flags&3&&(PNe(a)&6)!==0}function rL(a){const _=ge(a);if(_.parameterInitializerContainsUndefined===void 0){if(!j_(a,9))return cw(a.symbol),!0;const b=!!(bS(DK(a,0))&16777216);if(!dS())return cw(a.symbol),!0;_.parameterInitializerContainsUndefined=b}return _.parameterInitializerContainsUndefined}function OBe(a,_){return Ye&&_.kind===169&&_.initializer&&bS(a)&16777216&&!rL(_)?JA(a,524288):a}function FBe(a,_){const b=_.parent;return b.kind===211||b.kind===166||b.kind===213&&b.expression===_||b.kind===212&&b.expression===_&&!(dM(a,kbe)&&HS(yT(b.argumentExpression)))}function WBe(a){return a.flags&2097152?gt(a.types,WBe):!!(a.flags&465829888&&DE(a).flags&1146880)}function kbe(a){return a.flags&2097152?gt(a.types,kbe):!!(a.flags&465829888&&!cy(DE(a),98304))}function Dte(a,_){const b=(An(a)||sa(a)||Ed(a))&&!((rD(a.parent)||TW(a.parent))&&a.parent.tagName===a)&&(_&&_&64?PE(a,8):PE(a,void 0));return b&&!mte(b)}function ofe(a,_,b){return!(b&&b&2)&&dM(a,WBe)&&(FBe(a,_)||Dte(_,b))?bh(a,DE):a}function ctt(a){return!!Kr(a,_=>{const b=_.parent;return b===void 0?"quit":Ly(b)?b.expression===_&&Uh(_):Oy(b)?b.name===_||b.propertyName===_:!1})}function lNe(a,_){if(Ur&&Cg(a,111551)&&!O7(_)){const b=Xp(a);sg(a,!0)&1160127&&(F0(Le)||gk(Le)&&ctt(_)||!qk(zh(b))?t_(a):A_(a))}}function UI(a,_){var b;const C=Vo(a),M=a.valueDeclaration;if(M){if(ym(M)&&!M.initializer&&!M.dotDotDotToken&&M.parent.elements.length>=2){const z=M.parent.parent;if(z.kind===260&&x5(M)&6||z.kind===169){const Z=ge(z);if(!(Z.flags&4194304)){Z.flags|=4194304;const me=Vt(z,0),Se=me&&bh(me,DE);if(Z.flags&=-4194305,Se&&Se.flags&1048576&&!(z.kind===169&&zB(a))){const Je=M.parent,vt=n8(Je,Se,Se,void 0,_.flowNode);return vt.flags&131072?vs:Rp(M,vt)}}}}if(Pu(M)&&!M.type&&!M.initializer&&!M.dotDotDotToken){const z=M.parent;if(z.parameters.length>=2&&RPe(z)){const Z=yK(z);if(Z&&Z.parameters.length===1&&oT(Z)){const me=W4(Nf(Vo(Z.parameters[0]),(b=DO(z))==null?void 0:b.nonFixingMapper));if(me.flags&1048576&&iA(me,_p)&&!zB(a)){const Se=n8(z,me,me,void 0,_.flowNode),Je=z.parameters.indexOf(M)-($L(z)?1:0);return s2(Se,bD(Je))}}}}}return C}function ltt(a,_){if(kS(a))return gK(a);const b=ED(a);if(b===Ir)return _r;if(b===Cr){if(Th(a))return He(a,w.arguments_cannot_be_referenced_in_property_initializers),_r;const lo=GE(a);return ht<2&&(lo.kind===219?He(a,w.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):il(lo,512)&&He(a,w.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ge(lo).flags|=512,Vo(b)}afe(a)&&lNe(b,a);const C=zh(b),M=DGe(C,a);Bt(M)&&i5(a,M)&&M.declarations&&Wn(a,M.declarations,a.escapedText);let z=C.valueDeclaration;if(z&&C.flags&32&&Jl(z)&&z.name!==a){let lo=Q1(a,!1,!1);for(;lo.kind!==312&&lo.parent!==z;)lo=Q1(lo,!1,!1);lo.kind!==312&&(ge(z).flags|=262144,ge(lo).flags|=262144,ge(a).flags|=536870912)}d5(a,b);let Z=UI(C,a);const me=QM(a);if(me){if(!(C.flags&3)&&!(Rs(a)&&C.flags&512)){const lo=C.flags&384?w.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?w.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?w.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?w.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?w.Cannot_assign_to_0_because_it_is_an_import:w.Cannot_assign_to_0_because_it_is_not_a_variable;return He(a,lo,Cl(b)),_r}if(KI(C))return C.flags&3?He(a,w.Cannot_assign_to_0_because_it_is_a_constant,Cl(b)):He(a,w.Cannot_assign_to_0_because_it_is_a_read_only_property,Cl(b)),_r}const Se=C.flags&2097152;if(C.flags&3){if(me===1)return Z}else if(Se)z=og(b);else return Z;if(!z)return Z;Z=ofe(Z,a,_);const Je=rI(z).kind===169,vt=kE(z);let Pt=kE(a);const dn=Pt!==vt,yn=a.parent&&a.parent.parent&&xk(a.parent)&&Sbe(a.parent.parent),hr=b.flags&134217728,bi=Z===qr||Z===ii,Wo=bi&&a.parent.kind===235;for(;Pt!==vt&&(Pt.kind===218||Pt.kind===219||zE(Pt))&&(LV(C)&&Z!==ii||Je&&!zB(C));)Pt=kE(Pt);const aa=Je||Se||dn||yn||hr||$gt(a,z)||Z!==qr&&Z!==ii&&(!Ye||(Z.flags&16387)!==0||O7(a)||efe(a)||a.parent.kind===281)||a.parent.kind===235||z.kind===260&&z.exclamationToken||z.flags&33554432,$s=Wo?Ui:aa?Je?OBe(Z,z):Z:bi?Ui:eL(Z),Ba=Wo?aM(n8(a,Z,$s,Pt)):n8(a,Z,$s,Pt);if(!att(a)&&(Z===qr||Z===ii)){if(Ba===qr||Ba===ii)return Wt&&(He(o_(z),w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Cl(b),oa(Ba)),He(a,w.Variable_0_implicitly_has_an_1_type,Cl(b),oa(Ba))),Bfe(Ba)}else if(!aa&&!kV(Z)&&kV(Ba))return He(a,w.Variable_0_is_used_before_being_assigned,Cl(b)),Z;return me?Tx(Ba):Ba}function $gt(a,_){if(ym(_)){const b=Kr(a,ym);return b&&rI(b)===rI(_)}}function afe(a){var _;const b=a.parent;if(b){if(sa(b)&&b.expression===a||Oy(b)&&b.isTypeOnly)return!1;const C=(_=b.parent)==null?void 0:_.parent;if(C&&mh(C)&&C.isTypeOnly)return!1}return!0}function pM(a,_){return!!Kr(a,b=>b===_?"quit":S_(b)||b.parent&&Os(b.parent)&&!Ny(b.parent)&&b.parent.initializer===b)}function qgt(a,_){return Kr(a,b=>b===_?"quit":b===_.initializer||b===_.condition||b===_.incrementor||b===_.statement)}function Pbe(a){return Kr(a,_=>!_||dG(_)?"quit":kN(_,!1))}function d5(a,_){if(ht>=2||!(_.flags&34)||!_.valueDeclaration||tl(_.valueDeclaration)||_.valueDeclaration.parent.kind===299)return;const b=Bs(_.valueDeclaration),C=pM(a,b),M=Pbe(b);if(M){if(C){let z=!0;if(bk(b)){const Z=e6(_.valueDeclaration,261);if(Z&&Z.parent===b){const me=qgt(a.parent,b);if(me){const Se=ge(me);Se.flags|=8192;const Je=Se.capturedBlockScopeBindings||(Se.capturedBlockScopeBindings=[]);Dy(Je,_),me===b.initializer&&(z=!1)}}}z&&(ge(M).flags|=4096)}if(bk(b)){const z=e6(_.valueDeclaration,261);z&&z.parent===b&&BBe(a,b)&&(ge(_.valueDeclaration).flags|=65536)}ge(_.valueDeclaration).flags|=32768}C&&(ge(_.valueDeclaration).flags|=16384)}function utt(a,_){const b=ge(a);return!!b&&ni(b.capturedBlockScopeBindings,wi(_))}function BBe(a,_){let b=a;for(;b.parent.kind===217;)b=b.parent;let C=!1;if(IS(b))C=!0;else if(b.parent.kind===224||b.parent.kind===225){const M=b.parent;C=M.operator===46||M.operator===47}return C?!!Kr(b,M=>M===_?"quit":M===_.statement):!1}function zBe(a,_){if(ge(a).flags|=2,_.kind===172||_.kind===176){const b=_.parent;ge(b).flags|=4}else ge(_).flags|=4}function uNe(a){return y7(a)?a:S_(a)?void 0:B_(a,uNe)}function Dp(a){const _=wi(a),b=Rm(_);return Nl(b)===Zt}function mM(a,_,b){const C=_.parent;oC(C)&&!Dp(C)&&LN(a)&&a.flowNode&&!cNe(a.flowNode,!1)&&He(a,b)}function ftt(a,_){Os(_)&&Ny(_)&&_t&&_.initializer&&zz(_.initializer,a.pos)&&Fx(_.parent)&&He(a,w.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function gK(a){const _=O7(a);let b=Q1(a,!0,!0),C=!1,M=!1;for(b.kind===176&&mM(a,b,w.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(b.kind===219&&(b=Q1(b,!1,!M),C=!0),b.kind===167){b=Q1(b,!C,!1),M=!0;continue}break}if(ftt(a,b),M)He(a,w.this_cannot_be_referenced_in_a_computed_property_name);else switch(b.kind){case 267:He(a,w.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:He(a,w.this_cannot_be_referenced_in_current_location);break;case 176:GBe(a,b)&&He(a,w.this_cannot_be_referenced_in_constructor_arguments);break}!_&&C&&ht<2&&zBe(a,b);const z=fNe(a,!0,b);if(tt){const Z=Vo(gr);if(z===Z&&C)He(a,w.The_containing_arrow_function_captures_the_global_value_of_this);else if(!z){const me=He(a,w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!tl(b)){const Se=fNe(b);Se&&Se!==Z&&ml(me,kc(b,w.An_outer_value_of_this_is_shadowed_by_this_container))}}}return z||gn}function fNe(a,_=!0,b=Q1(a,!1,!1)){const C=Rs(a);if(S_(b)&&(!jBe(a)||$L(b))){let M=Mk(b)||C&&Xgt(b);if(!M){const z=Ite(b);if(C&&z){const Z=n_(z).symbol;Z&&Z.members&&Z.flags&16&&(M=Rm(Z).thisType)}else JI(b)&&(M=Rm(wa(b.symbol)).thisType);M||(M=ptt(b))}if(M)return n8(a,M)}if(Jl(b.parent)){const M=wi(b.parent),z=e_(b)?Vo(M):Rm(M).thisType;return n8(a,z)}if(tl(b))if(b.commonJsModuleIndicator){const M=wi(b);return M&&Vo(M)}else{if(b.externalModuleIndicator)return Ui;if(_)return Vo(gr)}}function Kgt(a){const _=Q1(a,!1,!1);if(S_(_)){const b=Cv(_);if(b.thisParameter)return BB(b.thisParameter)}if(Jl(_.parent)){const b=wi(_.parent);return e_(_)?Vo(b):Rm(b).thisType}}function Ite(a){if(a.kind===218&&ys(a.parent)&&Qy(a.parent)===3)return a.parent.left.expression.expression;if(a.kind===174&&a.parent.kind===210&&ys(a.parent.parent)&&Qy(a.parent.parent)===6)return a.parent.parent.left.expression;if(a.kind===218&&a.parent.kind===303&&a.parent.parent.kind===210&&ys(a.parent.parent.parent)&&Qy(a.parent.parent.parent)===6)return a.parent.parent.parent.left.expression;if(a.kind===218&&Fm(a.parent)&&An(a.parent.name)&&(a.parent.name.escapedText==="value"||a.parent.name.escapedText==="get"||a.parent.name.escapedText==="set")&&Wd(a.parent.parent)&&el(a.parent.parent.parent)&&a.parent.parent.parent.arguments[2]===a.parent.parent&&Qy(a.parent.parent.parent)===9)return a.parent.parent.parent.arguments[0].expression;if(em(a)&&An(a.name)&&(a.name.escapedText==="value"||a.name.escapedText==="get"||a.name.escapedText==="set")&&Wd(a.parent)&&el(a.parent.parent)&&a.parent.parent.arguments[2]===a.parent&&Qy(a.parent.parent)===9)return a.parent.parent.arguments[0].expression}function Xgt(a){const _=iR(a);if(_&&_.typeExpression)return wl(_.typeExpression);const b=z4(a);if(b)return xC(b)}function GBe(a,_){return!!Kr(a,b=>J_(b)?"quit":b.kind===169&&b.parent===_)}function _Ne(a){const _=a.parent.kind===213&&a.parent.expression===a,b=rG(a,!0);let C=b,M=!1,z=!1;if(!_){for(;C&&C.kind===219;)il(C,512)&&(z=!0),C=rG(C,!0),M=ht<2;C&&il(C,512)&&(z=!0)}let Z=0;if(!C||!vt(C)){const Pt=Kr(a,dn=>dn===C?"quit":dn.kind===167);return Pt&&Pt.kind===167?He(a,w.super_cannot_be_referenced_in_a_computed_property_name):_?He(a,w.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(Jl(C.parent)||C.parent.kind===210)?He(a,w.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):He(a,w.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_r}if(!_&&b.kind===176&&mM(a,C,w.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e_(C)||_?(Z=32,!_&&ht>=2&&ht<=8&&(Os(C)||nu(C))&&Qz(a.parent,Pt=>{(!tl(Pt)||h1(Pt))&&(ge(Pt).flags|=2097152)})):Z=16,ge(a).flags|=Z,C.kind===174&&z&&(Z1(a.parent)&&IS(a.parent)?ge(C).flags|=256:ge(C).flags|=128),M&&zBe(a.parent,C),C.parent.kind===210)return ht<2?(He(a,w.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_r):gn;const me=C.parent;if(!oC(me))return He(a,w.super_can_only_be_referenced_in_a_derived_class),_r;const Se=Rm(wi(me)),Je=Se&&Gp(Se)[0];if(!Je)return _r;if(C.kind===176&&GBe(a,C))return He(a,w.super_cannot_be_referenced_in_constructor_arguments),_r;return Z===32?Nl(Se):M1(Je,Se.thisType);function vt(Pt){return _?Pt.kind===176:Jl(Pt.parent)||Pt.parent.kind===210?e_(Pt)?Pt.kind===174||Pt.kind===173||Pt.kind===177||Pt.kind===178||Pt.kind===172||Pt.kind===175:Pt.kind===174||Pt.kind===173||Pt.kind===177||Pt.kind===178||Pt.kind===172||Pt.kind===171||Pt.kind===176:!1}}function _tt(a){return(a.kind===174||a.kind===177||a.kind===178)&&a.parent.kind===210?a.parent:a.kind===218&&a.parent.kind===303?a.parent.parent:void 0}function dtt(a){return ji(a)&4&&a.target===bt?Tm(a)[0]:void 0}function dNe(a){return bh(a,_=>_.flags&2097152?Ot(_.types,dtt):dtt(_))}function iL(a,_){let b=a,C=_;for(;C;){const M=dNe(C);if(M)return M;if(b.parent.kind!==303)break;b=b.parent.parent,C=CO(b,void 0)}}function ptt(a){if(a.kind===219)return;if(RPe(a)){const b=yK(a);if(b){const C=b.thisParameter;if(C)return Vo(C)}}const _=Rs(a);if(tt||_){const b=_tt(a);if(b){const M=CO(b,void 0),z=iL(b,M);return z?Nf(z,$Pe(DO(b))):Bb(M?aM(M):Iv(b))}const C=Lx(a.parent);if(C.kind===226&&C.operatorToken.kind===64){const M=C.left;if(Kf(M)){const{expression:z}=M;if(_&&An(z)){const Z=ns(C);if(Z.commonJsModuleIndicator&&ED(z)===Z.symbol)return}return Bb(Iv(z))}}}}function Dw(a){const _=a.parent;if(!RPe(_))return;const b=GL(_);if(b&&b.arguments){const M=Vbe(b),z=_.parameters.indexOf(a);if(a.dotDotDotToken)return pze(M,z,M.length,gn,void 0,0);const Z=ge(b),me=Z.resolvedSignature;Z.resolvedSignature=_e;const Se=z0)return Ae(b.name,!0,!1)}}function r8(a,_){const b=GE(a);if(b){let C=i8(b,_);if(C){const M=L0(b);if(M&1){const z=(M&2)!==0;C.flags&1048576&&(C=D0(C,me=>!!MO(1,me,z)));const Z=MO(1,C,(M&2)!==0);if(!Z)return;C=Z}if(M&2){const z=bh(C,sL);return z&&gl([z,Rze(z)])}return C}}}function cfe(a,_){const b=PE(a,_);if(b){const C=sL(b);return C&&gl([C,Rze(C)])}}function hNe(a,_){const b=GE(a);if(b){const C=L0(b);let M=i8(b,_);if(M){const z=(C&2)!==0;return!a.asteriskToken&&M.flags&1048576&&(M=D0(M,Z=>!!MO(1,Z,z))),a.asteriskToken?M:MO(0,M,z)}}}function jBe(a){let _=!1;for(;a.parent&&!S_(a.parent);){if(Pu(a.parent)&&(_||a.parent.initializer===a))return!0;ym(a.parent)&&a.parent.initializer===a&&(_=!0),a=a.parent}return!1}function Nbe(a,_){const b=!!(L0(_)&2),C=i8(_,void 0);if(C)return MO(a,C,b)||void 0}function i8(a,_){const b=se(a);if(b)return b;const C=YBe(a);if(C&&!De(C))return j(C);const M=GL(a);if(M)return PE(M,_)}function mtt(a,_){const C=Vbe(a).indexOf(_);return C===-1?void 0:hK(a,C)}function hK(a,_){if(WE(a))return _===0?xe:_===1?hWe(!1):gn;const b=ge(a).resolvedSignature===Qn?Qn:oN(a);if(Y1(a)&&_===0)return TNe(b,a);const C=b.parameters.length-1;return oT(b)&&_>=C?s2(Vo(b.parameters[C]),bD(_-C),256):$I(b,_)}function gtt(a){const _=Zbe(a);return _?WI(_):void 0}function htt(a,_){if(a.parent.kind===215)return mtt(a.parent,_)}function Ygt(a,_){const b=a.parent,{left:C,operatorToken:M,right:z}=b;switch(M.kind){case 64:case 77:case 76:case 78:return a===z?Zgt(b):void 0;case 57:case 61:const Z=PE(b,_);return a===z&&(Z&&Z.pattern||!Z&&!A7(b))?yT(C):Z;case 56:case 28:return a===z?PE(b,_):void 0;default:return}}function Qgt(a){if(YD(a)&&a.symbol)return a.symbol;if(An(a))return ED(a);if(sa(a)){const b=yT(a.expression);return Gu(a.name)?_(b,a.name):Fn(b,a.name.escapedText)}if(Ed(a)){const b=Iv(a.argumentExpression);if(!yv(b))return;const C=yT(a.expression);return Fn(C,vv(b))}return;function _(b,C){const M=Fbe(C.escapedText,C);return M&&PO(b,M)}}function Zgt(a){var _,b;const C=Qy(a);switch(C){case 0:case 4:const M=Qgt(a.left),z=M&&M.valueDeclaration;if(z&&(Os(z)||Np(z))){const Se=Kb(z);return Se&&Nf(wl(Se),Mt(M).mapper)||(Os(z)?z.initializer&&yT(a.left):void 0)}return C===0?yT(a.left):z2(a);case 5:if(yNe(a,C))return z2(a);if(!YD(a.left)||!a.left.symbol)return yT(a.left);{const Se=a.left.symbol.valueDeclaration;if(!Se)return;const Je=uc(a.left,Kf),vt=Kb(Se);if(vt)return wl(vt);if(An(Je.expression)){const Pt=Je.expression,dn=Ro(Pt,Pt.escapedText,111551,void 0,Pt.escapedText,!0);if(dn){const yn=dn.valueDeclaration&&Kb(dn.valueDeclaration);if(yn){const hr=XC(Je);if(hr!==void 0)return oL(wl(yn),hr)}return}}return Rs(Se)||Se===a.left?void 0:yT(a.left)}case 1:case 6:case 3:case 2:let Z;C!==2&&(Z=YD(a.left)?(_=a.left.symbol)==null?void 0:_.valueDeclaration:void 0),Z||(Z=(b=a.symbol)==null?void 0:b.valueDeclaration);const me=Z&&Kb(Z);return me?wl(me):void 0;case 7:case 8:case 9:return ce.fail("Does not apply");default:return ce.assertNever(C)}}function yNe(a,_=Qy(a)){if(_===4)return!0;if(!Rs(a)||_!==5||!An(a.left.expression))return!1;const b=a.left.expression.escapedText,C=Ro(a.left,b,111551,void 0,void 0,!0,!0);return yP(C==null?void 0:C.valueDeclaration)}function z2(a){if(!a.symbol)return yT(a.left);if(a.symbol.valueDeclaration){const M=Kb(a.symbol.valueDeclaration);if(M){const z=wl(M);if(z)return z}}const _=uc(a.left,Kf);if(!q2(Q1(_.expression,!1,!1)))return;const b=gK(_.expression),C=XC(_);return C!==void 0&&oL(b,C)||void 0}function VBe(a){return!!(I_(a)&262144&&!a.links.type&&GP(a,0)>=0)}function oL(a,_,b){return bh(a,C=>{var M;if(Ty(C)&&!C.declaration.nameType){const z=mT(C),Z=Co(z)||z,me=b||qv(lf(_));if(Mp(me,Z))return K6(C,me)}else if(C.flags&3670016){const z=Fn(C,_);if(z)return VBe(z)?void 0:Vo(z);if(_p(C)&&FT(_)&&+_>=0){const Z=jI(C,C.target.fixedLength,0,!1,!0);if(Z)return Z}return(M=Ml(hg(C),b||qv(lf(_))))==null?void 0:M.type}},!0)}function o8(a,_){if(ce.assert(q2(a)),!(a.flags&67108864))return lfe(a,_)}function lfe(a,_){const b=a.parent,C=Fm(a)&&pNe(a,_);if(C)return C;const M=CO(b,_);if(M){if(GS(a)){const z=wi(a);return oL(M,z.escapedName,Mt(z).nameType)}if(nI(a)){const z=o_(a);if(z&&am(z)){const Z=n_(z.expression),me=yv(Z)&&oL(M,vv(Z));if(me)return me}}if(a.name){const z=q6(a.name);return bh(M,Z=>{var me;return(me=Ml(hg(Z),z))==null?void 0:me.type},!0)}}}function UBe(a){let _,b;for(let C=0;C{if(_p(z)){if((C===void 0||_M)?b-_:0,me=Z>0&&z.target.hasRestElement?iK(z.target,3):0;return Z>0&&Z<=me?Tm(z)[Fo(z)-Z]:jI(z,C===void 0?z.target.fixedLength:Math.min(z.target.fixedLength,C),b===void 0||M===void 0?me:Math.min(me,b-M),!1,!0)}return(!C||_iM(Se)?s2(Se,bD(Z)):Se,!0))}function HBe(a,_){const b=a.parent;return $U(b)?PE(a,_):gy(b)?eht(b,a,_):void 0}function ytt(a,_){if(Pb(a)){const b=CO(a.parent,_);return!b||Q_(b)?void 0:oL(b,m3(a.name))}else return PE(a.parent,_)}function Rbe(a){switch(a.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 Rbe(a.expression);case 294:return!a.expression||Rbe(a.expression)}return!1}function vNe(a,_){return Ket(_,a)||QWe(_,Hi(Vn(gi(a.properties,b=>!!b.symbol&&b.kind===303&&Rbe(b.initializer)&&nN(_,b.symbol.escapedName)),b=>[()=>qA(b.initializer),b.symbol.escapedName]),Vn(gi(Vp(_),b=>{var C;return!!(b.flags&16777216)&&!!((C=a==null?void 0:a.symbol)!=null&&C.members)&&!a.symbol.members.has(b.escapedName)&&nN(_,b.escapedName)}),b=>[()=>Ui,b.escapedName])),Mp)}function JBe(a,_){const b=pfe(VB(a));return QWe(_,Hi(Vn(gi(a.properties,C=>!!C.symbol&&C.kind===291&&nN(_,C.symbol.escapedName)&&(!C.initializer||Rbe(C.initializer))),C=>[C.initializer?()=>qA(C.initializer):()=>Ji,C.symbol.escapedName]),Vn(gi(Vp(_),C=>{var M;if(!(C.flags&16777216)||!((M=a==null?void 0:a.symbol)!=null&&M.members))return!1;const z=a.parent.parent;return C.escapedName===b&&gy(z)&&yY(z.children).length?!1:!a.symbol.members.has(C.escapedName)&&nN(_,C.escapedName)}),C=>[()=>Ui,C.escapedName])),Mp)}function CO(a,_){const b=q2(a)?o8(a,_):PE(a,_),C=ffe(b,a,_);if(C&&!(_&&_&2&&C.flags&8650752)){const M=bh(C,z=>ji(z)&32?z:O1(z),!0);return M.flags&1048576&&Wd(a)?vNe(a,M):M.flags&1048576&&iD(a)?JBe(a,M):M}}function ffe(a,_,b){if(a&&cy(a,465829888)){const C=DO(_);if(C&&b&1&>(C.inferences,Hze))return Mbe(a,C.nonFixingMapper);if(C!=null&&C.returnMapper){const M=Mbe(a,C.returnMapper);return M.flags&1048576&&W2(M.types,mi)&&W2(M.types,zo)?D0(M,z=>z!==mi&&z!==zo):M}}return a}function Mbe(a,_){return a.flags&465829888?Nf(a,_):a.flags&1048576?gl(Vn(a.types,b=>Mbe(b,_)),0):a.flags&2097152?Dd(Vn(a.types,b=>Mbe(b,_))):a}function PE(a,_){var b;if(a.flags&67108864)return;const C=Pte(a,!_);if(C>=0)return we[C];const{parent:M}=a;switch(M.kind){case 260:case 169:case 172:case 171:case 208:return sfe(a,_);case 219:case 253:return r8(a,_);case 229:return hNe(M,_);case 223:return cfe(M,_);case 213:case 214:return mtt(M,a);case 170:return gtt(M);case 216:case 234:return CN(M.type)?PE(M,_):wl(M.type);case 226:return Ygt(a,_);case 303:case 304:return lfe(M,_);case 305:return PE(M.parent,_);case 209:{const z=M,Z=CO(z,_),me=v9(z.elements,a),Se=(b=ge(z)).spreadIndices??(b.spreadIndices=UBe(z.elements));return wbe(Z,me,z.elements.length,Se.first,Se.last)}case 227:return ufe(a,_);case 239:return ce.assert(M.parent.kind===228),htt(M.parent,a);case 217:{if(Rs(M)){if(poe(M))return wl(moe(M));const z=w8(M);if(z&&!CN(z.typeExpression.type))return wl(z.typeExpression.type)}return PE(M,_)}case 235:return PE(M,_);case 238:return wl(M.type);case 277:return Tu(M);case 294:return HBe(M,_);case 291:case 293:return ytt(M,_);case 286:case 285:return $Be(M,_)}}function bNe(a){Iw(a,PE(a,void 0),!0)}function Iw(a,_,b){ve[et]=a,we[et]=_,Fe[et]=b,et++}function kte(){et--}function Pte(a,_){for(let b=et-1;b>=0;b--)if(a===ve[b]&&(_||!Fe[b]))return b;return-1}function tht(a,_){Pe[Ie]=a,dt[Ie]=_,Ie++}function nht(){Ie--}function DO(a){for(let _=Ie-1;_>=0;_--)if(N7(a,Pe[_]))return dt[_]}function $Be(a,_){if(rD(a)&&_!==4){const b=Pte(a.parent,!_);if(b>=0)return we[b]}return hK(a,0)}function TNe(a,_){return qtt(_)!==0?rht(a,_):iht(a,_)}function rht(a,_){let b=Cze(a,co);b=ENe(_,VB(_),b);const C=AD(_E.IntrinsicAttributes,_);return je(C)||(b=jp(C,b)),b}function SNe(a,_){if(a.compositeSignatures){const C=[];for(const M of a.compositeSignatures){const z=j(M);if(Q_(z))return z;const Z=wm(z,_);if(!Z)return;C.push(Z)}return Dd(C)}const b=j(a);return Q_(b)?b:wm(b,_)}function qBe(a){if(Dv(a.tagName)){const b=Itt(a),C=qNe(a,b);return WI(C)}const _=Iv(a.tagName);if(_.flags&128){const b=DNe(_,a);if(!b)return _r;const C=qNe(a,b);return WI(C)}return _}function ENe(a,_,b){const C=Lbe(_);if(C){const M=qBe(a),z=INe(C,Rs(a),M,b);if(z)return z}return b}function iht(a,_){const b=VB(_),C=uht(b);let M=C===void 0?Cze(a,co):C===""?j(a):SNe(a,C);if(!M)return C&&Nt(_.attributes.properties)&&He(_,w.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,lf(C)),co;if(M=ENe(_,b,M),Q_(M))return M;{let z=M;const Z=AD(_E.IntrinsicClassAttributes,_);if(!je(Z)){const Se=rs(Z.symbol),Je=j(a);let vt;if(Se){const Pt=FI([Je],Se,EC(Se),Rs(_));vt=Nf(Z,IE(Se,Pt))}else vt=Z;z=jp(vt,z)}const me=AD(_E.IntrinsicAttributes,_);return je(me)||(z=jp(me,z)),z}}function oht(a){return hv(Le,"noImplicitAny")?Em(a,(_,b)=>_===b||!_?_:SB(_.typeParameters,b.typeParameters)?btt(_,b):void 0):void 0}function vtt(a,_,b){if(!a||!_)return a||_;const C=gl([Vo(a),Nf(Vo(_),b)]);return xO(a,C)}function KBe(a,_,b){const C=xx(a),M=xx(_),z=C>=M?a:_,Z=z===a?_:a,me=z===a?C:M,Se=Hk(a)||Hk(_),Je=Se&&!Hk(z),vt=new Array(me+(Je?1:0));for(let Pt=0;Pt=qI(z)&&Pt>=qI(Z),aa=Pt>=C?void 0:Ute(a,Pt),$s=Pt>=M?void 0:Ute(_,Pt),Ba=aa===$s?aa:aa?$s?void 0:aa:$s,lo=Ge(1|(Wo&&!bi?16777216:0),Ba||`arg${Pt}`);lo.links.type=bi?W1(hr):hr,vt[Pt]=lo}if(Je){const Pt=Ge(1,"args");Pt.links.type=W1($I(Z,me)),Z===_&&(Pt.links.type=Nf(Pt.links.type,b)),vt[me]=Pt}return vt}function btt(a,_){const b=a.typeParameters||_.typeParameters;let C;a.typeParameters&&_.typeParameters&&(C=IE(_.typeParameters,a.typeParameters));const M=a.declaration,z=KBe(a,_,C),Z=vtt(a.thisParameter,_.thisParameter,C),me=Math.max(a.minArgumentCount,_.minArgumentCount),Se=i2(M,b,Z,z,void 0,void 0,me,(a.flags|_.flags)&167);return Se.compositeKind=2097152,Se.compositeSignatures=Hi(a.compositeKind===2097152&&a.compositeSignatures||[a],[_]),C&&(Se.mapper=a.compositeKind===2097152&&a.mapper&&a.compositeSignatures?K4(a.mapper,C):C),Se}function XBe(a,_){const b=Ti(a,0),C=gi(b,M=>!Ttt(M,_));return C.length===1?C[0]:oht(C)}function Ttt(a,_){let b=0;for(;b<_.parameters.length;b++){const C=_.parameters[b];if(C.initializer||C.questionToken||C.dotDotDotToken||iW(C))break}return _.parameters.length&&oI(_.parameters[0])&&b--,!Hk(a)&&xx(a)Z[yn]&8?Wb(dn,an)||gn:dn),2):Ye?qd:xu,Se))}function kw(a){if(!(ji(a)&4))return a;let _=a.literalType;return _||(_=a.literalType=yO(a),_.objectFlags|=147456),_}function sht(a){switch(a.kind){case 167:return cht(a);case 80:return FT(a.escapedText);case 9:case 11:return FT(a.text);default:return!1}}function cht(a){return lh(Pw(a),296)}function Pw(a){const _=ge(a.expression);if(!_.resolvedType){if((e0(a.parent.parent)||Jl(a.parent.parent)||Kp(a.parent.parent))&&ys(a.expression)&&a.expression.operatorToken.kind===103&&a.parent.kind!==177&&a.parent.kind!==178)return _.resolvedType=_r;if(_.resolvedType=n_(a.expression),Os(a.parent)&&!Ny(a.parent)&&B0(a.parent.parent)){const b=Bs(a.parent.parent),C=Pbe(b);C&&(ge(C).flags|=4096,ge(a).flags|=32768,ge(a.parent.parent).flags|=32768)}(_.resolvedType.flags&98304||!lh(_.resolvedType,402665900)&&!Mp(_.resolvedType,mu))&&He(a,w.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return _.resolvedType}function IO(a){var _;const b=(_=a.declarations)==null?void 0:_[0];return FT(a.escapedName)||b&&Xv(b)&&sht(b.name)}function xNe(a){var _;const b=(_=a.declarations)==null?void 0:_[0];return vH(a)||b&&Xv(b)&&am(b.name)&&lh(Pw(b.name),4096)}function ZBe(a,_,b,C){const M=[];for(let Z=_;Z0&&(me=$4(me,Xa(),a.symbol,bi,vt),Z=[],z=Td(),aa=!1,$s=!1,Ba=!1);const hs=HT(n_(Go.expression,_&2));if(Nte(hs)){const Ld=Lue(hs,vt);if(M&&Att(Ld,M,Go),lo=Z.length,je(me))continue;me=$4(me,Ld,a.symbol,bi,vt)}else He(Go,w.Spread_types_may_only_be_created_from_object_types),me=_r;continue}else ce.assert(Go.kind===177||Go.kind===178),FK(Go);Ga&&!(Ga.flags&8576)?Mp(Ga,mu)&&(Mp(Ga,an)?$s=!0:Mp(Ga,Qa)?Ba=!0:aa=!0,C&&(Wo=!0)):z.set(Pa.escapedName,Pa),Z.push(Pa)}if(kte(),Je){const Go=Kr(Se.pattern.parent,Ga=>Ga.kind===260||Ga.kind===226||Ga.kind===169);if(Kr(a,Ga=>Ga===Go||Ga.kind===305).kind!==305)for(const Ga of Vp(Se))!z.get(Ga.escapedName)&&!Fn(me,Ga.escapedName)&&(Ga.flags&16777216||He(Ga.valueDeclaration||((b=to(Ga,uk))==null?void 0:b.links.bindingElement),w.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),z.set(Ga.escapedName,Ga),Z.push(Ga))}if(je(me))return _r;if(me!==Yu)return Z.length>0&&(me=$4(me,Xa(),a.symbol,bi,vt),Z=[],z=Td(),aa=!1,$s=!1),bh(me,Go=>Go===Yu?Xa():Go);return Xa();function Xa(){const Go=[];aa&&Go.push(ZBe(a,lo,Z,xe)),$s&&Go.push(ZBe(a,lo,Z,an)),Ba&&Go.push(ZBe(a,lo,Z,Qa));const Pa=jo(a.symbol,z,Zn,Zn,Go);return Pa.objectFlags|=bi|128|131072,hr&&(Pa.objectFlags|=4096),Wo&&(Pa.objectFlags|=512),C&&(Pa.pattern=a),Pa}}function Nte(a){const _=_Be(bh(a,DE));return!!(_.flags&126615553||_.flags&3145728&&jr(_.types,Nte))}function tze(a){kO(a)}function nze(a,_){return FK(a),wte(a)||gn}function xtt(a){kO(a.openingElement),Dv(a.closingElement.tagName)?jB(a.closingElement):n_(a.closingElement.tagName),ANe(a)}function xD(a,_){return FK(a),wte(a)||gn}function rze(a){kO(a.openingFragment);const _=ns(a);return VH(Le)&&(Le.jsxFactory||_.pragmas.has("jsx"))&&!Le.jsxFragmentFactory&&!_.pragmas.has("jsxfrag")&&He(a,Le.jsxFactory?w.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:w.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ANe(a),wte(a)||gn}function _fe(a){return Ub(a,"-")}function Dv(a){return An(a)&&z9(a.escapedText)||dI(a)}function p5(a,_){return a.initializer?$te(a.initializer,_):Ji}function ize(a,_=0){const b=a.attributes,C=PE(b,0),M=Ye?Td():void 0;let z=Td(),Z=Tv,me=!1,Se,Je=!1,vt=2048;const Pt=pfe(VB(a));for(const hr of b.properties){const bi=hr.symbol;if(Pb(hr)){const Wo=p5(hr,_);vt|=ji(Wo)&458752;const aa=Ge(4|bi.flags,bi.escapedName);if(aa.declarations=bi.declarations,aa.parent=bi.parent,bi.valueDeclaration&&(aa.valueDeclaration=bi.valueDeclaration),aa.links.type=Wo,aa.links.target=bi,z.set(aa.escapedName,aa),M==null||M.set(aa.escapedName,aa),m3(hr.name)===Pt&&(Je=!0),C){const $s=Fn(C,bi.escapedName);$s&&$s.declarations&&Bt($s)&&An(hr.name)&&Wn(hr.name,$s.declarations,hr.name.escapedText)}if(C&&_&2&&!(_&4)&&nA(hr)){const $s=DO(b);ce.assert($s);const Ba=hr.initializer.expression;Xl($s,Ba,Wo)}}else{ce.assert(hr.kind===293),z.size>0&&(Z=$4(Z,yn(),b.symbol,vt,!1),z=Td());const Wo=HT(n_(hr.expression,_&2));Q_(Wo)&&(me=!0),Nte(Wo)?(Z=$4(Z,Wo,b.symbol,vt,!1),M&&Att(Wo,M,hr)):(He(hr.expression,w.Spread_types_may_only_be_created_from_object_types),Se=Se?Dd([Se,Wo]):Wo)}}me||z.size>0&&(Z=$4(Z,yn(),b.symbol,vt,!1));const dn=a.parent.kind===284?a.parent:void 0;if(dn&&dn.openingElement===a&&dn.children.length>0){const hr=ANe(dn,_);if(!me&&Pt&&Pt!==""){Je&&He(b,w._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,lf(Pt));const bi=CO(a.attributes,void 0),Wo=bi&&oL(bi,Pt),aa=Ge(4,Pt);aa.links.type=hr.length===1?hr[0]:Wo&&dM(Wo,LB)?$v(hr):W1(gl(hr)),aa.valueDeclaration=be.createPropertySignature(void 0,lf(Pt),void 0,void 0),kl(aa.valueDeclaration,b),aa.valueDeclaration.symbol=aa;const $s=Td();$s.set(Pt,aa),Z=$4(Z,jo(b.symbol,$s,Zn,Zn,Zn),b.symbol,vt,!1)}}if(me)return gn;if(Se&&Z!==Tv)return Dd([Se,Z]);return Se||(Z===Tv?yn():Z);function yn(){vt|=un;const hr=jo(b.symbol,z,Zn,Zn,Zn);return hr.objectFlags|=vt|128|131072,hr}}function ANe(a,_){const b=[];for(const C of a.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||b.push(xe);else{if(C.kind===294&&!C.expression)continue;b.push($te(C,_))}return b}function Att(a,_,b){for(const C of Vp(a))if(!(C.flags&16777216)){const M=_.get(C.escapedName);if(M){const z=He(M.valueDeclaration,w._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,lf(M.escapedName));ml(z,kc(b,w.This_spread_always_overwrites_this_property))}}}function Ctt(a,_){return ize(a.parent,_)}function AD(a,_){const b=VB(_),C=b&&Gt(b),M=C&&Jn(C,a,788968);return M?Rm(M):_r}function jB(a){const _=ge(a);if(!_.resolvedSymbol){const b=AD(_E.IntrinsicElements,a);if(je(b))return Wt&&He(a,w.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,lf(_E.IntrinsicElements)),_.resolvedSymbol=Ir;{if(!An(a.tagName)&&!dI(a.tagName))return ce.fail();const C=Fn(b,dI(a.tagName)?bR(a.tagName):a.tagName.escapedText);return C?(_.jsxFlags|=1,_.resolvedSymbol=C):pb(b,xe)?(_.jsxFlags|=2,_.resolvedSymbol=b.symbol):(He(a,w.Property_0_does_not_exist_on_type_1,goe(a.tagName),"JSX."+_E.IntrinsicElements),_.resolvedSymbol=Ir)}}return _.resolvedSymbol}function CNe(a){const _=a&&ns(a),b=_&&ge(_);if(b&&b.jsxImplicitImportContainer===!1)return;if(b&&b.jsxImplicitImportContainer)return b.jsxImplicitImportContainer;const C=HH(UH(Le,_),Le);if(!C)return;const z=Jd(Le)===1?w.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:w.Cannot_find_module_0_or_its_corresponding_type_declarations,Z=FS(a,C,z,a),me=Z&&Z!==Ir?wa(wp(Z)):void 0;return b&&(b.jsxImplicitImportContainer=me||!1),me}function VB(a){const _=a&&ge(a);if(_&&_.jsxNamespace)return _.jsxNamespace;if(!_||_.jsxNamespace!==!1){let C=CNe(a);if(!C||C===Ir){const M=us(a);C=Ro(a,M,1920,void 0,M,!1)}if(C){const M=wp(Jn(Gt(wp(C)),_E.JSX,1920));if(M&&M!==Ir)return _&&(_.jsxNamespace=M),M}_&&(_.jsxNamespace=!1)}const b=wp(t5(_E.JSX,1920,void 0));if(b!==Ir)return b}function dfe(a,_){const b=_&&Jn(_.exports,a,788968),C=b&&Rm(b),M=C&&Vp(C);if(M){if(M.length===0)return"";if(M.length===1)return M[0].escapedName;M.length>1&&b.declarations&&He(b.declarations[0],w.The_global_type_JSX_0_may_not_have_more_than_one_property,lf(a))}}function Lbe(a){return a&&Jn(a.exports,_E.LibraryManagedAttributes,788968)}function Dtt(a){return a&&Jn(a.exports,_E.ElementType,788968)}function uht(a){return dfe(_E.ElementAttributesPropertyNameContainer,a)}function pfe(a){return dfe(_E.ElementChildrenAttributeNameContainer,a)}function oze(a,_){if(a.flags&4)return[_e];if(a.flags&128){const M=DNe(a,_);return M?[qNe(_,M)]:(He(_,w.Property_0_does_not_exist_on_type_1,a.value,"JSX."+_E.IntrinsicElements),Zn)}const b=O1(a);let C=Ti(b,1);return C.length===0&&(C=Ti(b,0)),C.length===0&&b.flags&1048576&&(C=JF(Vn(b.types,M=>oze(M,_)))),C}function DNe(a,_){const b=AD(_E.IntrinsicElements,_);if(!je(b)){const C=a.value,M=Fn(b,ty(C));if(M)return Vo(M);const z=pb(b,xe);return z||void 0}return gn}function fht(a,_,b){if(a===1){const M=vK(b);M&&dc(_,M,Jc,b.tagName,w.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(a===0){const M=ktt(b);M&&dc(_,M,Jc,b.tagName,w.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const M=vK(b),z=ktt(b);if(!M||!z)return;const Z=gl([M,z]);dc(_,Z,Jc,b.tagName,w.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const M=Yv(b.tagName);return Es(void 0,w._0_cannot_be_used_as_a_JSX_component,M)}}function Itt(a){ce.assert(Dv(a.tagName));const _=ge(a);if(!_.resolvedJsxElementAttributesType){const b=jB(a);return _.jsxFlags&1?_.resolvedJsxElementAttributesType=Vo(b)||_r:_.jsxFlags&2?_.resolvedJsxElementAttributesType=pb(AD(_E.IntrinsicElements,a),xe)||_r:_.resolvedJsxElementAttributesType=_r}return _.resolvedJsxElementAttributesType}function ktt(a){const _=AD(_E.ElementClass,a);if(!je(_))return _}function wte(a){return AD(_E.Element,a)}function vK(a){const _=wte(a);if(_)return gl([_,$e])}function DC(a){const _=VB(a);if(!_)return;const b=Dtt(_);if(!b)return;const C=INe(b,Rs(a));if(!(!C||je(C)))return C}function INe(a,_,...b){const C=Rm(a);if(a.flags&524288){const M=Mt(a).typeParameters;if(Nt(M)>=b.length){const z=FI(b,M,b.length,_);return Nt(z)===0?C:Mc(a,z)}}if(Nt(C.typeParameters)>=b.length){const M=FI(b,C.typeParameters,b.length,_);return jA(C,M)}}function _ht(a){const _=AD(_E.IntrinsicElements,a);return _?Vp(_):Zn}function IC(a){(Le.jsx||0)===0&&He(a,w.Cannot_use_JSX_unless_the_jsx_flag_is_provided),wte(a)===void 0&&Wt&&He(a,w.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function kO(a){const _=Y1(a);if(_&&BGe(a),IC(a),!CNe(a)){const b=no&&Le.jsx===2?w.Cannot_find_name_0:void 0,C=us(a),M=_?a.tagName:a;let z;if(zx(a)&&C==="null"||(z=Ro(M,C,111551,b,C,!0)),z&&(z.isReferenced=67108863,Ur&&z.flags&2097152&&!da(z)&&t_(z)),zx(a)){const Z=ns(a),me=Au(Z);me&&Ro(M,me,111551,b,me,!0)}}if(_){const b=a,C=oN(b);XNe(C,a);const M=DC(b);if(M!==void 0){const z=b.tagName,Z=Dv(z)?qv(goe(z)):n_(z);dc(Z,M,Jc,z,w.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const me=Yv(z);return Es(void 0,w._0_cannot_be_used_as_a_JSX_component,me)})}else fht(qtt(b),j(C),b)}}function kNe(a,_,b){if(a.flags&524288){if(o2(a,_)||yx(a,_)||s0(_)&&Cd(a,xe)||b&&_fe(_))return!0}else if(a.flags&3145728&&Rte(a)){for(const C of a.types)if(kNe(C,_,b))return!0}return!1}function Rte(a){return!!(a.flags&524288&&!(ji(a)&512)||a.flags&67108864||a.flags&1048576&>(a.types,Rte)||a.flags&2097152&&jr(a.types,Rte))}function Ptt(a,_){if(Ort(a),a.expression){const b=n_(a.expression,_);return a.dotDotDotToken&&b!==gn&&!UA(b)&&He(a,w.JSX_spread_child_must_be_an_array_type),b}else return _r}function PNe(a){return a.valueDeclaration?x5(a.valueDeclaration):0}function bK(a){if(a.flags&8192||I_(a)&4)return!0;if(Rs(a.valueDeclaration)){const _=a.valueDeclaration.parent;return _&&ys(_)&&Qy(_)===3}}function NNe(a,_,b,C,M,z=!0){const Z=z?a.kind===166?a.right:a.kind===205?a:a.kind===208&&a.propertyName?a.propertyName:a.name:void 0;return Ntt(a,_,b,C,M,Z)}function Ntt(a,_,b,C,M,z){const Z=Vy(M,b);if(_){if(ht<2&&wtt(M))return z&&He(z,w.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(Z&256)return z&&He(z,w.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Cl(M),oa(RB(M))),!1}if(Z&256&&wtt(M)&&(b7(a)||xde(a)||E1(a.parent)&&yP(a.parent.parent))){const Se=RS(Uf(M));if(Se&&Trt(a))return z&&He(z,w.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Cl(M),aC(Se.name)),!1}if(!(Z&24))return!0;if(Z&8){const Se=RS(Uf(M));return qfe(a,Se)?!0:(z&&He(z,w.Property_0_is_private_and_only_accessible_within_class_1,Cl(M),oa(RB(M))),!1)}if(_)return!0;let me=cne(a,Se=>{const Je=Rm(wi(Se));return Ret(Je,M,b)});return!me&&(me=aze(a),me=me&&Ret(me,M,b),Z&32||!me)?(z&&He(z,w.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Cl(M),oa(RB(M)||C)),!1):Z&32?!0:(C.flags&262144&&(C=C.isThisType?Wi(C):Co(C)),!C||!wI(C,me)?(z&&He(z,w.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Cl(M),oa(me),oa(C)),!1):!0)}function aze(a){const _=dht(a);let b=(_==null?void 0:_.type)&&wl(_.type);if(b&&b.flags&262144&&(b=Wi(b)),b&&ji(b)&7)return UT(b)}function dht(a){const _=Q1(a,!1,!1);return _&&S_(_)?$L(_):void 0}function wtt(a){return!!lbe(a,_=>!(_.flags&8192))}function TK(a){return HI(n_(a),a)}function wNe(a){return!!(bS(a)&50331648)}function Mte(a){return wNe(a)?aM(a):a}function pht(a,_){const b=Uh(a)?oE(a):void 0;if(a.kind===106){He(a,w.The_value_0_cannot_be_used_here,"null");return}if(b!==void 0&&b.length<100){if(An(a)&&b==="undefined"){He(a,w.The_value_0_cannot_be_used_here,"undefined");return}He(a,_&16777216?_&33554432?w._0_is_possibly_null_or_undefined:w._0_is_possibly_undefined:w._0_is_possibly_null,b)}else He(a,_&16777216?_&33554432?w.Object_is_possibly_null_or_undefined:w.Object_is_possibly_undefined:w.Object_is_possibly_null)}function Rtt(a,_){He(a,_&16777216?_&33554432?w.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:w.Cannot_invoke_an_object_which_is_possibly_undefined:w.Cannot_invoke_an_object_which_is_possibly_null)}function Mtt(a,_,b){if(Ye&&a.flags&2){if(Uh(_)){const M=oE(_);if(M.length<100)return He(_,w._0_is_of_type_unknown,M),_r}return He(_,w.Object_is_of_type_unknown),_r}const C=bS(a);if(C&50331648){b(_,C);const M=aM(a);return M.flags&229376?_r:M}return a}function HI(a,_){return Mtt(a,_,pht)}function Ltt(a,_){const b=HI(a,_);if(b.flags&16384){if(Uh(_)){const C=oE(_);if(An(_)&&C==="undefined")return He(_,w.The_value_0_cannot_be_used_here,C),b;if(C.length<100)return He(_,w._0_is_possibly_undefined,C),b}He(_,w.Object_is_possibly_undefined)}return b}function a8(a,_,b){return a.flags&64?Ott(a,_):sze(a,a.expression,TK(a.expression),a.name,_,b)}function Ott(a,_){const b=n_(a.expression),C=Kue(b,a.expression);return fbe(sze(a,a.expression,HI(C,a.expression),a.name,_),a,C!==b)}function Ftt(a,_){const b=Cs(a)&&Zy(a.left)?HI(gK(a.left),a.left):TK(a.left);return sze(a,a.left,b,a.right,_)}function Obe(a){for(;a.parent.kind===217;)a=a.parent;return IN(a.parent)&&a.parent.expression===a}function Fbe(a,_){for(let b=MT(_);b;b=h0(b)){const{symbol:C}=b,M=R7(C,a),z=C.members&&C.members.get(M)||C.exports&&C.exports.get(M);if(z)return z}}function mht(a){if(!h0(a))return Po(a,w.Private_identifiers_are_not_allowed_outside_class_bodies);if(!cpe(a.parent)){if(!Gy(a))return Po(a,w.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 _=ys(a.parent)&&a.parent.operatorToken.kind===103;if(!RNe(a)&&!_)return Po(a,w.Cannot_find_name_0,ec(a))}return!1}function Lte(a){mht(a);const _=RNe(a);return _&&FV(_,void 0,!1),gn}function RNe(a){if(!Gy(a))return;const _=ge(a);return _.resolvedSymbol===void 0&&(_.resolvedSymbol=Fbe(a.escapedText,a)),_.resolvedSymbol}function PO(a,_){return Fn(a,_.escapedName)}function Uk(a,_,b){let C;const M=Vp(a);M&&Ot(M,Z=>{const me=Z.valueDeclaration;if(me&&Xv(me)&&Gu(me.name)&&me.name.escapedText===_.escapedText)return C=Z,!0});const z=bl(_);if(C){const Z=ce.checkDefined(C.valueDeclaration),me=ce.checkDefined(h0(Z));if(b!=null&&b.valueDeclaration){const Se=b.valueDeclaration,Je=h0(Se);if(ce.assert(!!Je),Kr(Je,vt=>me===vt)){const vt=He(_,w.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,z,oa(a));return ml(vt,kc(Se,w.The_shadowing_declaration_of_0_is_defined_here,z),kc(Z,w.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,z)),!0}}return He(_,w.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,z,bl(me.name||Tae)),!0}return!1}function Ex(a,_){return(BS(_)||b7(a)&&N2(_))&&Q1(a,!0,!1)===pS(_)}function sze(a,_,b,C,M,z){const Z=ge(_).resolvedSymbol,me=QM(a),Se=O1(me!==0||Obe(a)?Bb(b):b),Je=Q_(Se)||Se===ou;let vt;if(Gu(C)){ht<99&&(me!==0&&Jy(a,1048576),me!==1&&Jy(a,524288));const dn=Fbe(C.escapedText,C);if(me&&dn&&dn.valueDeclaration&&em(dn.valueDeclaration)&&Po(C,w.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,ec(C)),Je){if(dn)return je(Se)?_r:Se;if(MT(C)===void 0)return Po(C,w.Private_identifiers_are_not_allowed_outside_class_bodies),gn}if(vt=dn&&PO(b,dn),vt===void 0){if(Uk(b,C,dn))return _r;const yn=MT(C);yn&&y2(ns(yn),Le.checkJs)&&Po(C,w.Private_field_0_must_be_declared_in_an_enclosing_class,ec(C))}else vt.flags&65536&&!(vt.flags&32768)&&me!==1&&He(a,w.Private_accessor_was_defined_without_a_getter)}else{if(Je)return An(_)&&Z&&lNe(Z,a),je(Se)?_r:Se;vt=Fn(Se,C.escapedText,!1,a.kind===166)}An(_)&&Z&&(F0(Le)||!(vt&&(qk(vt)||vt.flags&8&&a.parent.kind===306))||gk(Le)&&ctt(a))&&lNe(Z,a);let Pt;if(vt){const dn=DGe(vt,C);if(Bt(dn)&&i5(a,dn)&&dn.declarations&&Wn(C,dn.declarations,C.escapedText),ght(vt,a,C),FV(vt,a,uze(_,Z)),ge(a).resolvedSymbol=vt,NNe(a,_.kind===108,o6(a),Se,vt),nwe(a,vt,me))return He(C,w.Cannot_assign_to_0_because_it_is_a_read_only_property,ec(C)),_r;Pt=Ex(a,vt)?qr:z||RH(a)?z6(vt):Vo(vt)}else{const dn=!Gu(C)&&(me===0||!nM(b)||p3(b))?yx(Se,C.escapedText):void 0;if(!(dn&&dn.type)){const yn=lv(a,b.symbol,!0);return!yn&&oK(b)?gn:b.symbol===gr?(gr.exports.has(C.escapedText)&&gr.exports.get(C.escapedText).flags&418?He(C,w.Property_0_does_not_exist_on_type_1,lf(C.escapedText),oa(b)):Wt&&He(C,w.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,oa(b)),gn):(C.escapedText&&!ma(a)&&cze(C,p3(b)?Se:b,yn),_r)}dn.isReadonly&&(IS(a)||kde(a))&&He(a,w.Index_signature_in_type_0_only_permits_reading,oa(Se)),Pt=Le.noUncheckedIndexedAccess&&!IS(a)?gl([dn.type,We]):dn.type,Le.noPropertyAccessFromIndexSignature&&sa(a)&&He(C,w.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,lf(C.escapedText)),dn.declaration&&ln(dn.declaration)&&Wn(C,[dn.declaration],C.escapedText)}return Wbe(a,vt,Pt,C,M)}function lv(a,_,b){const C=ns(a);if(C&&Le.checkJs===void 0&&C.checkJsDirective===void 0&&(C.scriptKind===1||C.scriptKind===2)){const M=Ot(_==null?void 0:_.declarations,ns);return!(C!==M&&M&&mn(M))&&!(b&&_&&_.flags&32)&&!(a&&b&&sa(a)&&a.expression.kind===110)}return!1}function Wbe(a,_,b,C,M){const z=QM(a);if(z===1)return l5(b,!!(_&&_.flags&16777216));if(_&&!(_.flags&98311)&&!(_.flags&8192&&b.flags&1048576)&&!Bwe(_.declarations))return b;if(b===qr)return VP(a,_);b=ofe(b,a,M);let Z=!1;if(Ye&&zt&&Kf(a)&&a.expression.kind===110){const Se=_&&_.valueDeclaration;if(Se&&s1(Se)&&!e_(Se)){const Je=kE(a);Je.kind===176&&Je.parent===Se.parent&&!(Se.flags&33554432)&&(Z=!0)}}else Ye&&_&&_.valueDeclaration&&sa(_.valueDeclaration)&&N9(_.valueDeclaration)&&kE(a)===kE(_.valueDeclaration)&&(Z=!0);const me=n8(a,b,Z?eL(b):b);return Z&&!kV(b)&&kV(me)?(He(C,w.Property_0_is_used_before_being_assigned,Cl(_)),b):z?Tx(me):me}function ght(a,_,b){const{valueDeclaration:C}=a;if(!C||ns(_).isDeclarationFile)return;let M;const z=ec(b);Th(_)&&!Zq(C)&&!(Kf(_)&&Kf(_.expression))&&!Lr(C,b)&&!(em(C)&&E5(C)&32)&&(Dt||!Wtt(a))?M=He(b,w.Property_0_is_used_before_its_initialization,z):C.kind===263&&_.parent.kind!==183&&!(C.flags&33554432)&&!Lr(C,b)&&(M=He(b,w.Class_0_used_before_its_declaration,z)),M&&ml(M,kc(C,w._0_is_declared_here,z))}function Th(a){return!!Kr(a,_=>{switch(_.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 E_(_.parent)&&nu(_.parent.parent)?!0:"quit";default:return Gy(_)?!1:"quit"}})}function Wtt(a){if(!(a.parent.flags&32))return!1;let _=Vo(a.parent);for(;;){if(_=_.symbol&&Ote(_),!_)return!1;const b=Fn(_,a.escapedName);if(b&&b.valueDeclaration)return!0}}function Ote(a){const _=Gp(a);if(_.length!==0)return Dd(_)}function cze(a,_,b){let C,M;if(!Gu(a)&&_.flags&1048576&&!(_.flags&402784252)){for(const Z of _.types)if(!Fn(Z,a.escapedText)&&!yx(Z,a.escapedText)){C=Es(C,w.Property_0_does_not_exist_on_type_1,Ud(a),oa(Z));break}}if(m5(a.escapedText,_)){const Z=Ud(a),me=oa(_);C=Es(C,w.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Z,me,me+"."+Z)}else{const Z=Mfe(_);if(Z&&Fn(Z,a.escapedText))C=Es(C,w.Property_0_does_not_exist_on_type_1,Ud(a),oa(_)),M=kc(a,w.Did_you_forget_to_use_await);else{const me=Ud(a),Se=oa(_),Je=hht(me,_);if(Je!==void 0)C=Es(C,w.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,me,Se,Je);else{const vt=LNe(a,_);if(vt!==void 0){const Pt=mp(vt),dn=b?w.Property_0_may_not_exist_on_type_1_Did_you_mean_2:w.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=Es(C,dn,me,Se,Pt),M=vt.valueDeclaration&&kc(vt.valueDeclaration,w._0_is_declared_here,Pt)}else{const Pt=SK(_)?w.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:w.Property_0_does_not_exist_on_type_1;C=Es(bn(C,_),Pt,me,Se)}}}}const z=RN(ns(a),a,C);M&&ml(z,M),Hn(!b||C.code!==w.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,z)}function SK(a){return Le.lib&&!Le.lib.includes("dom")&&NBe(a,_=>_.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(lf(_.symbol.escapedName)))&&rM(a)}function m5(a,_){const b=_.symbol&&Fn(Vo(_.symbol),a);return b!==void 0&&!!b.valueDeclaration&&e_(b.valueDeclaration)}function EK(a){const _=bl(a),C=rY().get(_);return C&&sX(C.keys())}function hht(a,_){const b=O1(_).symbol;if(!b)return;const C=mp(b),z=rY().get(C);if(z){for(const[Z,me]of z)if(ni(me,a))return Z}}function MNe(a,_){return OV(a,Vp(_),106500)}function LNe(a,_){let b=Vp(_);if(typeof a!="string"){const C=a.parent;sa(C)&&(b=gi(b,M=>Gtt(C,_,M))),a=ec(a)}return OV(a,b,111551)}function Btt(a,_){const b=As(a)?a:ec(a),C=Vp(_);return(b==="for"?lr(C,z=>mp(z)==="htmlFor"):b==="class"?lr(C,z=>mp(z)==="className"):void 0)??OV(b,C,111551)}function lze(a,_){const b=LNe(a,_);return b&&mp(b)}function Fte(a,_,b){return ce.assert(_!==void 0,"outername should always be defined"),Ts(a,_,b,void 0,_,!1,!1,!0,(M,z,Z)=>{ce.assertEqual(_,z,"name should equal outerName");const me=Jn(M,z,Z);if(me)return me;let Se;return M===Ut?Se=Qo(["string","number","boolean","object","bigint","symbol"],vt=>M.has(vt.charAt(0).toUpperCase()+vt.slice(1))?Ge(524288,vt):void 0).concat(oc(M.values())):Se=oc(M.values()),OV(lf(z),Se,Z)})}function yht(a,_,b){const C=Fte(a,_,b);return C&&mp(C)}function ONe(a,_){return _.exports&&OV(ec(a),i0(_),2623475)}function ztt(a,_){const b=ONe(a,_);return b&&mp(b)}function vht(a,_,b){function C(Z){const me=o2(a,Z);if(me){const Se=NO(Vo(me));return!!Se&&qI(Se)>=1&&Mp(b,$I(Se,0))}return!1}const M=IS(_)?"set":"get";if(!C(M))return;let z=z7(_.expression);return z===void 0?z=M:z+="."+M,z}function FNe(a,_){const b=_.types.filter(C=>!!(C.flags&128));return fh(a.value,b,C=>C.value)}function OV(a,_,b){return fh(a,_,C);function C(M){const z=mp(M);if(!xf(z,'"')){if(M.flags&b)return z;if(M.flags&2097152){const Z=r1(M);if(Z&&Z.flags&b)return z}}}}function FV(a,_,b){const C=a&&a.flags&106500&&a.valueDeclaration;if(!C)return;const M=Ab(C,8),z=a.valueDeclaration&&Xv(a.valueDeclaration)&&Gu(a.valueDeclaration.name);if(!(!M&&!z)&&!(_&&RH(_)&&!(a.flags&65536))){if(b){const Z=Kr(_,J_);if(Z&&Z.symbol===a)return}(I_(a)&1?Mt(a).target:a).isReferenced=67108863}}function uze(a,_){return a.kind===110||!!_&&Uh(a)&&_===ED(NS(a))}function bht(a,_){switch(a.kind){case 211:return Wte(a,a.expression.kind===108,_,Bb(n_(a.expression)));case 166:return Wte(a,!1,_,Bb(n_(a.left)));case 205:return Wte(a,!1,_,wl(a))}}function Gtt(a,_,b){return Bte(a,a.kind===211&&a.expression.kind===108,!1,_,b)}function Wte(a,_,b,C){if(Q_(C))return!0;const M=Fn(C,b);return!!M&&Bte(a,_,!1,C,M)}function Bte(a,_,b,C,M){if(Q_(C))return!0;if(M.valueDeclaration&&Mf(M.valueDeclaration)){const z=h0(M.valueDeclaration);return!ky(a)&&!!Kr(a,Z=>Z===z)}return Ntt(a,_,b,C,M)}function WNe(a){const _=a.initializer;if(_.kind===261){const b=_.declarations[0];if(b&&!ld(b.name))return wi(b)}else if(_.kind===80)return ED(_)}function BNe(a){return T_(a).length===1&&!!Cd(a,an)}function jtt(a){const _=_g(a);if(_.kind===80){const b=ED(_);if(b.flags&3){let C=a,M=a.parent;for(;M;){if(M.kind===249&&C===M.statement&&WNe(M)===b&&BNe(yT(M.expression)))return!0;C=M,M=M.parent}}}return!1}function s8(a,_){return a.flags&64?Tht(a,_):zte(a,TK(a.expression),_)}function Tht(a,_){const b=n_(a.expression),C=Kue(b,a.expression);return fbe(zte(a,HI(C,a.expression),_),a,C!==b)}function zte(a,_,b){const C=QM(a)!==0||Obe(a)?Bb(_):_,M=a.argumentExpression,z=n_(M);if(je(C)||C===ou)return C;if(Dfe(C)&&!sp(M))return He(M,w.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_r;const Z=jtt(M)?an:z,me=IS(a)?4|(nM(C)&&!p3(C)?2:0):32,Se=Wb(C,Z,me,a)||_r;return Lnt(Wbe(a,ge(a).resolvedSymbol,Se,M,b),a)}function Bbe(a){return IN(a)||Hm(a)||Y1(a)}function xK(a){return Bbe(a)&&Ot(a.typeArguments,bp),a.kind===215?n_(a.template):Y1(a)?n_(a.attributes):a.kind!==170&&Ot(a.arguments,_=>{n_(_)}),_e}function iN(a){return xK(a),vn}function Gte(a,_,b){let C,M,z=0,Z,me=-1,Se;ce.assert(!_.length);for(const Je of a){const vt=Je.declaration&&wi(Je.declaration),Pt=Je.declaration&&Je.declaration.parent;!M||vt===M?C&&Pt===C?Z=Z+1:(C=Pt,Z=z):(Z=z=_.length,C=Pt),M=vt,ULe(Je)?(me++,Se=me,z++):Se=Z,_.splice(Se,0,b?M4(Je,b):Je)}}function zNe(a){return!!a&&(a.kind===230||a.kind===237&&a.isSpread)}function GNe(a){return Ho(a,zNe)}function Vtt(a){return!!(a.flags&16384)}function Utt(a){return!!(a.flags&49155)}function zbe(a,_,b,C=!1){let M,z=!1,Z=xx(b),me=qI(b);if(a.kind===215)if(M=_.length,a.template.kind===228){const Se=yl(a.template.templateSpans);z=Um(Se.literal)||!!Se.literal.isUnterminated}else{const Se=a.template;ce.assert(Se.kind===15),z=!!Se.isUnterminated}else if(a.kind===170)M=Xtt(a,b);else if(Y1(a)){if(z=a.attributes.end===a.end,z)return!0;M=me===0?_.length:1,Z=_.length===0?Z:1,me=Math.min(me,1)}else if(a.arguments){M=C?_.length+1:_.length,z=a.arguments.end===a.end;const Se=GNe(_);if(Se>=0)return Se>=qI(b)&&(Hk(b)||SeZ)return!1;if(z||M>=me)return!0;for(let Se=M;Se=C&&_.length<=b}function NO(a){return WV(a,0,!1)}function _ze(a){return WV(a,0,!1)||WV(a,1,!1)}function WV(a,_,b){if(a.flags&524288){const C=K0(a);if(b||C.properties.length===0&&C.indexInfos.length===0){if(_===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(_===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function Htt(a,_,b,C){const M=_K(a.typeParameters,a,0,C),z=bfe(_),Z=b&&(z&&z.flags&262144?b.nonFixingMapper:b.mapper),me=Z?cK(_,Z):_;return mBe(me,a,(Se,Je)=>{uM(M.inferences,Se,Je)}),b||gBe(_,a,(Se,Je)=>{uM(M.inferences,Se,Je,128)}),Vi(a,Sx(M),Rs(_.declaration))}function Sht(a,_,b,C){const M=TNe(_,a),z=JB(a.attributes,M,C,b);return uM(C.inferences,z,M),Sx(C)}function Jtt(a){if(!a)return Ks;const _=n_(a);return h2(a.parent)?aM(_):ky(a.parent)?jPe(_):_}function dze(a,_,b,C,M){if(Y1(a))return Sht(a,_,C,M);if(a.kind!==170){const Se=jr(_.typeParameters,vt=>!!LI(vt)),Je=PE(a,Se?8:0);if(Je){const vt=j(_);if(X0(vt)){const Pt=DO(a);if(!(!Se&&PE(a,8)!==Je)){const bi=$Pe(Pgt(Pt,1)),Wo=Nf(Je,bi),aa=NO(Wo),$s=aa&&aa.typeParameters?WI(Us(aa,aa.typeParameters)):Wo;uM(M.inferences,$s,vt,128)}const yn=_K(_.typeParameters,_,M.flags),hr=Nf(Je,Pt&&Pt.returnMapper);uM(yn.inferences,hr,vt),M.returnMapper=gt(yn.inferences,GV)?$Pe(JPe(yn)):void 0}}}const z=Tfe(_),Z=z?Math.min(xx(_)-1,b.length):b.length;if(z&&z.flags&262144){const Se=lr(M.inferences,Je=>Je.typeParameter===z);Se&&(Se.impliedArity=Ho(b,zNe,Z)<0?b.length-Z:void 0)}const me=xC(_);if(me&&X0(me)){const Se=jNe(a);uM(M.inferences,Jtt(Se),me)}for(let Se=0;Se=b-1){const vt=a[b-1];if(zNe(vt)){const Pt=vt.kind===237?vt.type:JB(vt.expression,C,M,z);return iM(Pt)?$tt(Pt):W1(cL(33,Pt,Ui,vt.kind===230?vt.expression:vt),Z)}}const me=[],Se=[],Je=[];for(let vt=_;vtEs(void 0,w.Type_0_does_not_satisfy_the_constraint_1):void 0,Pt=C||w.Type_0_does_not_satisfy_the_constraint_1;me||(me=IE(z,Z));const dn=Z[Se];if(!JS(dn,M1(Nf(Je,me),dn),b?_[Se]:void 0,Pt,vt))return}}return Z}function qtt(a){if(Dv(a.tagName))return 2;const _=O1(n_(a.tagName));return Nt(Ti(_,1))?0:Nt(Ti(_,0))?1:2}function Eht(a,_,b,C,M,z,Z){const me=TNe(_,a),Se=JB(a.attributes,me,void 0,C),Je=C&4?Aw(Se):Se;return vt()&&lK(Je,me,b,M?a.tagName:void 0,a.attributes,void 0,z,Z);function vt(){var Pt;if(CNe(a))return!0;const dn=(rD(a)||TW(a))&&!(Dv(a.tagName)||dI(a.tagName))?n_(a.tagName):void 0;if(!dn)return!0;const yn=Ti(dn,0);if(!Nt(yn))return!0;const hr=krt(a);if(!hr)return!0;const bi=P_(hr,111551,!0,!1,a);if(!bi)return!0;const Wo=Vo(bi),aa=Ti(Wo,0);if(!Nt(aa))return!0;let $s=!1,Ba=0;for(const Xa of aa){const Go=$I(Xa,0),Pa=Ti(Go,0);if(Nt(Pa))for(const Ga of Pa){if($s=!0,Hk(Ga))return!0;const hs=xx(Ga);hs>Ba&&(Ba=hs)}}if(!$s)return!0;let lo=1/0;for(const Xa of yn){const Go=qI(Xa);Go{M.push(z.expression)}),M}if(a.kind===170)return Ktt(a);if(Y1(a))return a.attributes.properties.length>0||rD(a)&&a.parent.children.length>0?[a.attributes]:Zn;const _=a.arguments||Zn,b=GNe(_);if(b>=0){const C=_.slice(0,b);for(let M=b;M<_.length;M++){const z=_[M],Z=z.kind===230&&(k?n_(z.expression):Iv(z.expression));Z&&_p(Z)?Ot(Fb(Z),(me,Se)=>{var Je;const vt=Z.target.elementFlags[Se],Pt=mfe(z,vt&4?W1(me):me,!!(vt&12),(Je=Z.target.labeledElementDeclarations)==null?void 0:Je[Se]);C.push(Pt)}):C.push(z)}return C}return _}function Ktt(a){const _=a.expression,b=Zbe(a);if(b){const C=[];for(const M of b.parameters){const z=Vo(M);C.push(mfe(_,z))}return C}return ce.fail()}function Xtt(a,_){return Le.experimentalDecorators?Ube(a,_):2}function Ube(a,_){switch(a.parent.kind){case 263:case 231:return 1;case 172:return _k(a.parent)?3:2;case 174:case 177:case 178:return ht===0||_.parameters.length<=2?2:3;case 169:return 3;default:return ce.fail()}}function VNe(a,_){let b,C;const M=ns(a);if(sa(a.expression)){const z=UM(M,a.expression.name);b=z.start,C=_?z.length:a.end-b}else{const z=UM(M,a.expression);b=z.start,C=_?z.length:a.end-b}return{start:b,length:C,sourceFile:M}}function Hbe(a,_,...b){if(el(a)){const{sourceFile:C,start:M,length:z}=VNe(a);return"message"in _?Pp(C,M,z,_,...b):Rx(C,_)}else return"message"in _?kc(a,_,...b):RN(ns(a),a,_)}function xht(a){if(!el(a)||!An(a.expression))return!1;const _=Ro(a.expression,a.expression.escapedText,111551,void 0,void 0,!1),b=_==null?void 0:_.valueDeclaration;if(!b||!Pu(b)||!EP(b.parent)||!Ac(b.parent.parent)||!An(b.parent.parent.expression))return!1;const C=DB(!1);return C?CD(b.parent.parent.expression,!0)===C:!1}function Ytt(a,_,b,C){var M;const z=GNe(b);if(z>-1)return kc(b[z],w.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let Z=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Se=Number.NEGATIVE_INFINITY,Je=Number.POSITIVE_INFINITY,vt;for(const bi of _){const Wo=qI(bi),aa=xx(bi);WoSe&&(Se=Wo),b.lengthM?Z=Math.min(Z,Se):Je1&&($s=Xa(Pt,gc,yn,Ba)),$s||($s=Xa(Pt,Jc,yn,Ba)),$s)return $s;if($s=Ztt(a,Pt,dn,!!b,C),ge(a).resolvedSignature=$s,Je)if(bi)if(bi.length===1||bi.length>3){const Go=bi[bi.length-1];let Pa;bi.length>3&&(Pa=Es(Pa,w.The_last_overload_gave_the_following_error),Pa=Es(Pa,w.No_overload_matches_this_call)),z&&(Pa=Es(Pa,z));const Ga=jbe(a,dn,Go,Jc,0,!0,()=>Pa);if(Ga)for(const hs of Ga)Go.declaration&&bi.length>3&&ml(hs,kc(Go.declaration,w.The_last_overload_is_declared_here)),lo(Go,hs),no.add(hs);else ce.fail("No error for last overload signature")}else{const Go=[];let Pa=0,Ga=Number.MAX_VALUE,hs=0,Ld=0;for(const Cx of bi){const Gi=jbe(a,dn,Cx,Jc,0,!0,()=>Es(void 0,w.Overload_0_of_1_2_gave_the_following_error,Ld+1,Pt.length,o0(Cx)));Gi?(Gi.length<=Ga&&(Ga=Gi.length,hs=Ld),Pa=Math.max(Pa,Gi.length),Go.push(Gi)):ce.fail("No error for 3 or fewer overload signatures"),Ld++}const nl=Pa>1?Go[hs]:Gf(Go);ce.assert(nl.length>0,"No errors reported for 3 or fewer overload signatures");let id=Es(Vn(nl,G8),w.No_overload_matches_this_call);z&&(id=Es(id,z));const $y=[...ea(nl,Cx=>Cx.relatedInformation)];let l2;if(jr(nl,Cx=>Cx.start===nl[0].start&&Cx.length===nl[0].length&&Cx.file===nl[0].file)){const{file:Cx,start:kC,length:Gi}=nl[0];l2={file:Cx,start:kC,length:Gi,code:id.code,category:id.category,messageText:id,relatedInformation:$y}}else l2=RN(ns(a),a,id,$y);lo(bi[0],l2),no.add(l2)}else if(Wo)no.add(Ytt(a,[Wo],dn,z));else if(aa)Gbe(aa,a.typeArguments,!0,z);else{const Go=gi(_,Pa=>fze(Pa,vt));Go.length===0?no.add(Qtt(a,_,vt,z)):no.add(Ytt(a,Go,dn,z))}return $s;function lo(Go,Pa){var Ga,hs;const Ld=bi,nl=Wo,id=aa,$y=((hs=(Ga=Go.declaration)==null?void 0:Ga.symbol)==null?void 0:hs.declarations)||Zn,Cx=$y.length>1?lr($y,kC=>J_(kC)&&wx(kC.body)):void 0;if(Cx){const kC=Cv(Cx),Gi=!kC.typeParameters;Xa([kC],Jc,Gi)&&ml(Pa,kc(Cx,w.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}bi=Ld,Wo=nl,aa=id}function Xa(Go,Pa,Ga,hs=!1){if(bi=void 0,Wo=void 0,aa=void 0,Ga){const Ld=Go[0];if(gt(vt)||!zbe(a,dn,Ld,hs))return;if(jbe(a,dn,Ld,Pa,0,!1,void 0)){bi=[Ld];return}return Ld}for(let Ld=0;Ld0),FK(a),C||_.length===1||_.some(z=>!!z.typeParameters)?tnt(a,_,b,M):ent(_)}function ent(a){const _=Qo(a,Se=>Se.thisParameter);let b;_.length&&(b=mze(_,_.map(Ybe)));const{min:C,max:M}=$Se(a,Aht),z=[];for(let Se=0;SeoT(vt)?SeUB(vt,Se))))}const Z=Qo(a,Se=>oT(Se)?yl(Se.parameters):void 0);let me=128;if(Z.length!==0){const Se=W1(gl(Qo(a,wn),2));z.push(gze(Z,Se)),me|=1}return a.some(ULe)&&(me|=2),i2(a[0].declaration,void 0,b,z,Dd(a.map(j)),void 0,C,me)}function Aht(a){const _=a.parameters.length;return oT(a)?_-1:_}function mze(a,_){return gze(a,gl(_,2))}function gze(a,_){return xO(Dl(a),_)}function tnt(a,_,b,C){const M=Dht(_,so===void 0?b.length:so),z=_[M],{typeParameters:Z}=z;if(!Z)return z;const me=Bbe(a)?a.typeArguments:void 0,Se=me?Hf(z,hze(me,Z,Rs(a))):Cht(a,Z,z,b,C);return _[M]=Se,Se}function hze(a,_,b){const C=a.map(YB);for(;C.length>_.length;)C.pop();for(;C.length<_.length;)C.push(LI(_[C.length])||Wi(_[C.length])||EBe(b));return C}function Cht(a,_,b,C,M){const z=_K(_,b,Rs(a)?2:0),Z=dze(a,b,C,M|4|8,z);return Hf(b,Z)}function Dht(a,_){let b=-1,C=-1;for(let M=0;M=_)return M;Z>C&&(C=Z,b=M)}return b}function Iht(a,_,b){if(a.expression.kind===108){const Se=_Ne(a.expression);if(Q_(Se)){for(const Je of a.arguments)n_(Je);return _e}if(!je(Se)){const Je=hA(h0(a));if(Je){const vt=Ni(Se,Je.typeArguments,Je);return BV(a,vt,_,b,0)}}return xK(a)}let C,M=n_(a.expression);if(R8(a)){const Se=Kue(M,a.expression);C=Se===M?0:M8(a)?16:8,M=Se}else C=0;if(M=Mtt(M,a.expression,Rtt),M===ou)return hi;const z=O1(M);if(je(z))return iN(a);const Z=Ti(z,0),me=Ti(z,1).length;if(UNe(M,z,Z.length,me))return!je(M)&&a.typeArguments&&He(a,w.Untyped_function_calls_may_not_accept_type_arguments),xK(a);if(!Z.length){if(me)He(a,w.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oa(M));else{let Se;if(a.arguments.length===1){const Je=ns(a).text;Ff(Je.charCodeAt(ep(Je,a.expression.end,!0)-1))&&(Se=kc(a.expression,w.Are_you_missing_a_semicolon))}Jbe(a.expression,z,0,Se)}return iN(a)}return b&8&&!a.typeArguments&&Z.some(kht)?(Snt(a,b),Qn):Z.some(Se=>Rs(Se.declaration)&&!!BTe(Se.declaration))?(He(a,w.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oa(M)),iN(a)):BV(a,Z,_,b,C)}function kht(a){return!!(a.typeParameters&&Vwe(j(a)))}function UNe(a,_,b,C){return Q_(a)||Q_(_)&&!!(a.flags&262144)||!b&&!C&&!(_.flags&1048576)&&!(HT(_).flags&131072)&&Mp(a,S0)}function Pht(a,_,b){if(a.arguments&&ht<1){const Z=GNe(a.arguments);Z>=0&&He(a.arguments[Z],w.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=TK(a.expression);if(C===ou)return hi;if(C=O1(C),je(C))return iN(a);if(Q_(C))return a.typeArguments&&He(a,w.Untyped_function_calls_may_not_accept_type_arguments),xK(a);const M=Ti(C,1);if(M.length){if(!$Ne(a,M[0]))return iN(a);if(HNe(M,me=>!!(me.flags&4)))return He(a,w.Cannot_create_an_instance_of_an_abstract_class),iN(a);const Z=C.symbol&&RS(C.symbol);return Z&&il(Z,256)?(He(a,w.Cannot_create_an_instance_of_an_abstract_class),iN(a)):BV(a,M,_,b,0)}const z=Ti(C,0);if(z.length){const Z=BV(a,z,_,b,0);return Wt||(Z.declaration&&!JI(Z.declaration)&&j(Z)!==Ks&&He(a,w.Only_a_void_function_can_be_called_with_the_new_keyword),xC(Z)===Ks&&He(a,w.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Z}return Jbe(a.expression,C,1),iN(a)}function HNe(a,_){return ls(a)?gt(a,b=>HNe(b,_)):a.compositeKind===1048576?gt(a.compositeSignatures,_):_(a)}function JNe(a,_){const b=Gp(_);if(!Nt(b))return!1;const C=b[0];if(C.flags&2097152){const M=C.types,z=sc(M);let Z=0;for(const me of C.types){if(!z[Z]&&ji(me)&3&&(me.symbol===a||JNe(a,me)))return!0;Z++}return!1}return C.symbol===a?!0:JNe(a,C)}function $Ne(a,_){if(!_||!_.declaration)return!0;const b=_.declaration,C=ZC(b,24);if(!C||b.kind!==176)return!0;const M=RS(b.parent.symbol),z=Rm(b.parent.symbol);if(!qfe(a,M)){const Z=h0(a);if(Z&&C&16){const me=YB(Z);if(JNe(b.parent.symbol,me))return!0}return C&8&&He(a,w.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,oa(z)),C&16&&He(a,w.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,oa(z)),!1}return!0}function yze(a,_,b){let C;const M=b===0,z=qB(_),Z=z&&Ti(z,b).length>0;if(_.flags&1048576){const Se=_.types;let Je=!1;for(const vt of Se)if(Ti(vt,b).length!==0){if(Je=!0,C)break}else if(C||(C=Es(C,M?w.Type_0_has_no_call_signatures:w.Type_0_has_no_construct_signatures,oa(vt)),C=Es(C,M?w.Not_all_constituents_of_type_0_are_callable:w.Not_all_constituents_of_type_0_are_constructable,oa(_))),Je)break;Je||(C=Es(void 0,M?w.No_constituent_of_type_0_is_callable:w.No_constituent_of_type_0_is_constructable,oa(_))),C||(C=Es(C,M?w.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:w.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,oa(_)))}else C=Es(C,M?w.Type_0_has_no_call_signatures:w.Type_0_has_no_construct_signatures,oa(_));let me=M?w.This_expression_is_not_callable:w.This_expression_is_not_constructable;if(el(a.parent)&&a.parent.arguments.length===0){const{resolvedSymbol:Se}=ge(a);Se&&Se.flags&32768&&(me=w.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Es(C,me),relatedMessage:Z?w.Did_you_forget_to_use_await:void 0}}function Jbe(a,_,b,C){const{messageChain:M,relatedMessage:z}=yze(a,_,b),Z=RN(ns(a),a,M);if(z&&ml(Z,kc(a,z)),el(a.parent)){const{start:me,length:Se}=VNe(a.parent,!0);Z.start=me,Z.length=Se}no.add(Z),nnt(_,b,C?ml(Z,C):Z)}function nnt(a,_,b){if(!a.symbol)return;const C=Mt(a.symbol).originatingImport;if(C&&!WE(C)){const M=Ti(Vo(Mt(a.symbol).target),_);if(!M||!M.length)return;ml(b,kc(C,w.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 Nht(a,_,b){const C=n_(a.tag),M=O1(C);if(je(M))return iN(a);const z=Ti(M,0),Z=Ti(M,1).length;if(UNe(C,M,z.length,Z))return xK(a);if(!z.length){if(Ch(a.parent)){const me=kc(a.tag,w.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 no.add(me),iN(a)}return Jbe(a.tag,M,0),iN(a)}return BV(a,z,_,b,0)}function wht(a){switch(a.parent.kind){case 263:case 231:return w.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return w.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return w.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return w.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return ce.fail()}}function Rht(a,_,b){const C=n_(a.expression),M=O1(C);if(je(M))return iN(a);const z=Ti(M,0),Z=Ti(M,1).length;if(UNe(C,M,z.length,Z))return xK(a);if(rnt(a,z)&&!sb(a.expression)){const Se=Yv(a.expression,!1);return He(a,w._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Se),iN(a)}const me=wht(a);if(!z.length){const Se=yze(a.expression,M,0),Je=Es(Se.messageChain,me),vt=RN(ns(a.expression),a.expression,Je);return Se.relatedMessage&&ml(vt,kc(a.expression,Se.relatedMessage)),no.add(vt),nnt(M,0,vt),iN(a)}return BV(a,z,_,b,0,me)}function qNe(a,_){const b=VB(a),C=b&&Gt(b),M=C&&Jn(C,_E.Element,788968),z=M&&Xr.symbolToEntityName(M,788968,a),Z=be.createFunctionTypeNode(void 0,[be.createParameterDeclaration(void 0,void 0,"props",void 0,Xr.typeToTypeNode(_,a))],z?be.createTypeReferenceNode(z,void 0):be.createKeywordTypeNode(133)),me=Ge(1,"props");return me.links.type=_,i2(Z,void 0,void 0,[me],M?Rm(M):_r,void 0,1,0)}function KNe(a,_,b){if(Dv(a.tagName)){const Z=Itt(a),me=qNe(a,Z);return Y4(JB(a.attributes,TNe(me,a),void 0,0),Z,a.tagName,a.attributes),Nt(a.typeArguments)&&(Ot(a.typeArguments,bp),no.add(Zz(ns(a),a.typeArguments,w.Expected_0_type_arguments_but_got_1,0,Nt(a.typeArguments)))),me}const C=n_(a.tagName),M=O1(C);if(je(M))return iN(a);const z=oze(C,a);return UNe(C,M,z.length,0)?xK(a):z.length===0?(He(a.tagName,w.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Yv(a.tagName)),iN(a)):BV(a,z,_,b,0)}function rnt(a,_){return _.length&&jr(_,b=>b.minArgumentCount===0&&!oT(b)&&b.parameters.length1?Iv(a.arguments[1]):void 0;for(let z=2;z{const Z=Bb(M);MPe(z,Z)||LPe(M,z,b,w.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 zht(a){const _=n_(a.expression),b=Kue(_,a.expression);return fbe(aM(b),a,b!==_)}function g5(a){return a.flags&64?zht(a):aM(n_(a.expression))}function ont(a){if($we(a),Ot(a.typeArguments,bp),a.kind===233){const b=Lx(a.parent);b.kind===226&&b.operatorToken.kind===104&&N7(a,b.right)&&He(a,w.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const _=a.kind===233?n_(a.expression):Zy(a.exprName)?gK(a.exprName):n_(a.exprName);return Xbe(_,a)}function Xbe(a,_){const b=_.typeArguments;if(a===ou||je(a)||!gt(b))return a;let C=!1,M;const z=me(a),Z=C?M:a;return Z&&no.add(Zz(ns(_),b,w.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,oa(Z))),z;function me(Je){let vt=!1,Pt=!1;const dn=yn(Je);return C||(C=Pt),vt&&!Pt&&(M??(M=Je)),dn;function yn(hr){if(hr.flags&524288){const bi=K0(hr),Wo=Se(bi.callSignatures),aa=Se(bi.constructSignatures);if(vt||(vt=bi.callSignatures.length!==0||bi.constructSignatures.length!==0),Pt||(Pt=Wo.length!==0||aa.length!==0),Wo!==bi.callSignatures||aa!==bi.constructSignatures){const $s=jo(void 0,bi.members,Wo,aa,bi.indexInfos);return $s.objectFlags|=8388608,$s.node=_,$s}}else if(hr.flags&58982400){const bi=Co(hr);if(bi){const Wo=yn(bi);if(Wo!==bi)return Wo}}else{if(hr.flags&1048576)return bh(hr,me);if(hr.flags&2097152)return Dd(Ol(hr.types,yn))}return hr}}function Se(Je){const vt=gi(Je,Pt=>!!Pt.typeParameters&&fze(Pt,b));return Ol(vt,Pt=>{const dn=Gbe(Pt,b,!0);return dn?Vi(Pt,dn,Rs(Pt.declaration)):Pt})}}function Ght(a){return bp(a.type),Tze(a.expression,a.type)}function Tze(a,_,b){const C=n_(a,b),M=wl(_);if(je(M))return M;const z=Kr(_.parent,Z=>Z.kind===238||Z.kind===357);return Y4(C,M,z,a,w.Type_0_does_not_satisfy_the_expected_type_1),C}function jht(a){return a0t(a),a.keywordToken===105?Eze(a):a.keywordToken===102?Vht(a):ce.assertNever(a.keywordToken)}function Sze(a){switch(a.keywordToken){case 102:return gWe();case 105:const _=Eze(a);return je(_)?_r:Xht(_);default:ce.assertNever(a.keywordToken)}}function Eze(a){const _=cY(a);if(_)if(_.kind===176){const b=wi(_.parent);return Vo(b)}else{const b=wi(_);return Vo(b)}else return He(a,w.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_r}function Vht(a){ke===100||ke===199?ns(a).impliedNodeFormat!==99&&He(a,w.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ke<6&&ke!==4&&He(a,w.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const _=ns(a);return ce.assert(!!(_.flags&8388608),"Containing file is missing import meta node flag."),a.name.escapedText==="meta"?LZe():_r}function Ybe(a){const _=Vo(a);if(Ye){const b=a.valueDeclaration;if(b&&NN(b))return eL(_)}return _}function xze(a,_,b="arg"){return a?(ce.assert(An(a.name)),a.name.escapedText):`${b}_${_}`}function Ute(a,_,b){const C=a.parameters.length-(oT(a)?1:0);if(_=b-1)return _===b-1?M:W1(s2(M,an));const z=[],Z=[],me=[];for(let Se=_;Se!(Se&1)),me=Z<0?z.target.fixedLength:Z;me>0&&(M=a.parameters.length-1+me)}}if(M===void 0){if(!b&&a.flags&32)return 0;M=a.minArgumentCount}if(C)return M;for(let z=M-1;z>=0;z--){const Z=$I(a,z);if(D0(Z,Vtt).flags&131072)break;M=z}a.resolvedMinArgumentCount=M}return a.resolvedMinArgumentCount}function Hk(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]);return!_p(_)||_.target.hasRestElement}return!1}function bfe(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]);if(!_p(_))return _;if(_.target.hasRestElement)return eM(_,_.target.fixedLength)}}function Tfe(a){const _=bfe(a);return _&&!UA(_)&&!Q_(_)?_:void 0}function Jk(a){return Cze(a,vs)}function Cze(a,_){return a.parameters.length>0?$I(a,0):_}function Dze(a,_,b){const C=a.parameters.length-(oT(a)?1:0);for(let M=0;M=0);const z=pg(C.parent)?Vo(wi(C.parent.parent)):jwe(C.parent),Z=pg(C.parent)?Ui:wGe(C.parent),me=bD(M),Se=Br("target",z),Je=Br("propertyKey",Z),vt=Br("parameterIndex",me);b.decoratorSignature=Yte(void 0,void 0,[Se,Je,vt],Ks);break}case 174:case 177:case 178:case 172:{const C=_;if(!Jl(C.parent))break;const M=jwe(C),z=Br("target",M),Z=wGe(C),me=Br("propertyKey",Z),Se=Os(C)?Ks:UZe(YB(C));if(ht!==0&&(!Os(_)||_k(_))){const vt=UZe(YB(C)),Pt=Br("descriptor",vt);b.decoratorSignature=Yte(void 0,void 0,[z,me,Pt],gl([Se,Ks]))}else b.decoratorSignature=Yte(void 0,void 0,[z,me],gl([Se,Ks]));break}}return b.decoratorSignature===_e?void 0:b.decoratorSignature}function Zbe(a){return _t?ZNe(a):h5(a)}function aL(a){const _=CB(!0);return _!==rd?(a=sL(Ax(a))||co,jA(_,[a])):co}function Rze(a){const _=kue(!0);return _!==rd?(a=sL(Ax(a))||co,jA(_,[a])):co}function e1e(a,_){const b=aL(_);return b===co?(He(a,WE(a)?w.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:w.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_r):(DB(!0)||He(a,WE(a)?w.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:w.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),b)}function Xht(a){const _=Ge(0,"NewTargetExpression"),b=Ge(4,"target",8);b.parent=_,b.links.type=a;const C=Td([b]);return _.members=C,jo(_,C,Zn,Zn,Zn)}function ewe(a,_){if(!a.body)return _r;const b=L0(a),C=(b&2)!==0,M=(b&1)!==0;let z,Z,me,Se=Ks;if(a.body.kind!==241)z=Iv(a.body,_&&_&-9),C&&(z=Ax(Lfe(z,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(M){const Je=Oze(a,_);Je?Je.length>0&&(z=gl(Je,2)):Se=vs;const{yieldTypes:vt,nextTypes:Pt}=cnt(a,_);Z=gt(vt)?gl(vt,2):void 0,me=gt(Pt)?Dd(Pt):void 0}else{const Je=Oze(a,_);if(!Je)return b&2?e1e(a,vs):vs;if(Je.length===0){const vt=i8(a,void 0),Pt=vt&&(lL(vt,b)||Ks).flags&32768?Ui:Ks;return b&2?e1e(a,Pt):Pt}z=gl(Je,2)}if(z||Z||me){if(Z&&UPe(a,Z,3),z&&UPe(a,z,1),me&&UPe(a,me,2),z&&rA(z)||Z&&rA(Z)||me&&rA(me)){const Je=YBe(a),vt=Je?Je===Cv(a)?M?void 0:z:ffe(j(Je),a,void 0):void 0;M?(Z=GPe(Z,vt,0,C),z=GPe(z,vt,1,C),me=GPe(me,vt,2,C)):z=Dgt(z,vt,C)}Z&&(Z=Bb(Z)),z&&(z=Bb(z)),me&&(me=Bb(me))}return M?Efe(Z||vs,z||Se,me||Nbe(2,a)||co,C):C?aL(z||Se):z||Se}function Efe(a,_,b,C){const M=C?Xm:Lg,z=M.getGlobalGeneratorType(!1);if(a=M.resolveIterationType(a,void 0)||co,_=M.resolveIterationType(_,void 0)||co,b=M.resolveIterationType(b,void 0)||co,z===rd){const Z=M.getGlobalIterableIteratorType(!1),me=Z!==rd?Ynt(Z,M):void 0,Se=me?me.returnType:gn,Je=me?me.nextType:Ui;return Mp(_,Se)&&Mp(Je,b)?Z!==rd?Nue(Z,[a]):(M.getGlobalIterableIteratorType(!0),Yu):(M.getGlobalGeneratorType(!0),Yu)}return Nue(z,[a,_,b])}function cnt(a,_){const b=[],C=[],M=(L0(a)&2)!==0;return nSe(a.body,z=>{const Z=z.expression?n_(z.expression,_):xu;Dy(b,Mze(z,Z,gn,M));let me;if(z.asteriskToken){const Se=Iwe(Z,M?19:17,z.expression);me=Se&&Se.nextType}else me=PE(z,void 0);me&&Dy(C,me)}),{yieldTypes:b,nextTypes:C}}function Mze(a,_,b,C){const M=a.expression||a,z=a.asteriskToken?cL(C?19:17,_,b,M):_;return C?qB(z,M,a.asteriskToken?w.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:w.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):z}function lnt(a,_,b){let C=0;for(let M=0;M=_?b[M]:void 0;C|=z!==void 0?xae.get(z)||32768:0}return C}function Lze(a){const _=ge(a);if(_.isExhaustive===void 0){_.isExhaustive=0;const b=unt(a);_.isExhaustive===0&&(_.isExhaustive=b)}else _.isExhaustive===0&&(_.isExhaustive=!1);return _.isExhaustive}function unt(a){if(a.expression.kind===221){const C=rtt(a);if(!C)return!1;const M=DE(Iv(a.expression.expression)),z=lnt(0,0,C);return M.flags&3?(556800&z)===556800:!dM(M,Z=>(bS(Z)&z)===z)}const _=Iv(a.expression);if(!Ew(_))return!1;const b=rNe(a);return!b.length||gt(b,aBe)?!1:$A(bh(_,B1),b)}function xfe(a){return a.endFlowNode&&Ibe(a.endFlowNode)}function Oze(a,_){const b=L0(a),C=[];let M=xfe(a),z=!1;if(HM(a.body,Z=>{const me=Z.expression;if(me){if(me.kind===213&&me.expression.kind===80&&Iv(me.expression).symbol===a.symbol){z=!0;return}let Se=Iv(me,_&&_&-9);b&2&&(Se=Ax(Lfe(Se,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Se.flags&131072&&(z=!0),Dy(C,Se)}else M=!0}),!(C.length===0&&!M&&(z||Yht(a))))return Ye&&C.length&&M&&!(JI(a)&&C.some(Z=>Z.symbol===a.symbol))&&Dy(C,Ui),C}function Yht(a){switch(a.kind){case 218:case 219:return!0;case 174:return a.parent.kind===210;default:return!1}}function twe(a,_){s(b);return;function b(){const C=L0(a),M=_&&lL(_,C);if(M&&(cy(M,16384)||M.flags&32769)||a.kind===173||Um(a.body)||a.body.kind!==241||!xfe(a))return;const z=a.flags&1024,Z=bA(a)||a;if(M&&M.flags&131072)He(Z,w.A_function_returning_never_cannot_have_a_reachable_end_point);else if(M&&!z)He(Z,w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(M&&Ye&&!Mp(Ui,M))He(Z,w.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Le.noImplicitReturns){if(!M){if(!z)return;const me=j(Cv(a));if(nrt(a,me))return}He(Z,w.Not_all_code_paths_return_a_value)}}}function fnt(a,_){if(ce.assert(a.kind!==174||q2(a)),FK(a),Dm(a)&&tne(a,a.name),_&&_&4&&nA(a)){if(!bA(a)&&!YH(a)){const C=yK(a);if(C&&X0(j(C))){const M=ge(a);if(M.contextFreeType)return M.contextFreeType;const z=ewe(a,_),Z=i2(void 0,void 0,void 0,Zn,z,void 0,0,64),me=jo(a.symbol,Ve,[Z],Zn,Zn);return me.objectFlags|=262144,M.contextFreeType=me}}return Mg}return!Zfe(a)&&a.kind===218&&Xk(a),Qht(a,_),Vo(wi(a))}function Qht(a,_){const b=ge(a);if(!(b.flags&64)){const C=yK(a);if(!(b.flags&64)){b.flags|=64;const M=pp(Ti(Vo(wi(a)),0));if(!M)return;if(nA(a))if(C){const z=DO(a);let Z;if(_&&_&2){Dze(M,C,z);const me=bfe(C);me&&me.flags&262144&&(Z=cK(C,z.nonFixingMapper))}Z||(Z=z?cK(C,z.mapper):C),Ize(M,Z)}else kze(M);else if(C&&!a.typeParameters&&C.parameters.length>a.parameters.length){const z=DO(a);_&&_&2&&Dze(M,C,z)}if(C&&!se(a)&&!M.resolvedReturnType){const z=ewe(a,_);M.resolvedReturnType||(M.resolvedReturnType=z)}Kte(a)}}}function Fze(a){ce.assert(a.kind!==174||q2(a));const _=L0(a),b=se(a);if(twe(a,b),a.body)if(bA(a)||j(Cv(a)),a.body.kind===241)bp(a.body);else{const C=n_(a.body),M=b&&lL(b,_);if(M)if((_&3)===2){const z=Lfe(C,!1,a.body,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Y4(z,M,a.body,a.body)}else Y4(C,M,a.body,a.body)}}function Afe(a,_,b,C=!1){if(!Mp(_,q_)){const M=C&&Rfe(_);return Mr(a,!!M&&Mp(M,q_),b),!1}return!0}function t1e(a){if(!el(a)||!cH(a))return!1;const _=Iv(a.arguments[2]);if(wm(_,"value")){const M=Fn(_,"writable"),z=M&&Vo(M);if(!z||z===rr||z===mi)return!0;if(M&&M.valueDeclaration&&Fm(M.valueDeclaration)){const Z=M.valueDeclaration.initializer,me=n_(Z);if(me===rr||me===mi)return!0}return!1}return!Fn(_,"set")}function KI(a){return!!(I_(a)&8||a.flags&4&&Vy(a)&64||a.flags&3&&PNe(a)&6||a.flags&98304&&!(a.flags&65536)||a.flags&8||gt(a.declarations,t1e))}function nwe(a,_,b){var C,M;if(b===0)return!1;if(KI(_)){if(_.flags&4&&Kf(a)&&a.expression.kind===110){const z=GE(a);if(!(z&&(z.kind===176||JI(z))))return!0;if(_.valueDeclaration){const Z=ys(_.valueDeclaration),me=z.parent===_.valueDeclaration.parent,Se=z===_.valueDeclaration.parent,Je=Z&&((C=_.parent)==null?void 0:C.valueDeclaration)===z.parent,vt=Z&&((M=_.parent)==null?void 0:M.valueDeclaration)===z;return!(me||Se||Je||vt)}}return!0}if(Kf(a)){const z=_g(a.expression);if(z.kind===80){const Z=ge(z).resolvedSymbol;if(Z.flags&2097152){const me=og(Z);return!!me&&me.kind===274}}}return!1}function AK(a,_,b){const C=rv(a,7);return C.kind!==80&&!Kf(C)?(He(a,_),!1):C.flags&64?(He(a,b),!1):!0}function Wze(a){n_(a.expression);const _=_g(a.expression);if(!Kf(_))return He(_,w.The_operand_of_a_delete_operator_must_be_a_property_reference),Ca;sa(_)&&Gu(_.name)&&He(_,w.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const b=ge(_),C=zh(b.resolvedSymbol);return C&&(KI(C)&&He(_,w.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),_nt(_,C)),Ca}function _nt(a,_){const b=Vo(_);Ye&&!(b.flags&131075)&&!(on?_.flags&16777216:bS(b)&16777216)&&He(a,w.The_operand_of_a_delete_operator_must_be_optional)}function Zht(a){return n_(a.expression),Mo}function eyt(a){return n_(a.expression),xu}function Bze(a){let _=!1;const b=Ede(a);if(b&&nu(b)){const C=h6(a)?w.await_expression_cannot_be_used_inside_a_class_static_block:w.await_using_statements_cannot_be_used_inside_a_class_static_block;He(a,C),_=!0}else if(!(a.flags&65536))if(Tie(a)){const C=ns(a);if(!T5(C)){let M;if(!B8(C,Le)){M??(M=nC(C,a.pos));const z=h6(a)?w.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:w.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,Z=Pp(C,M.start,M.length,z);no.add(Z),_=!0}switch(ke){case 100:case 199:if(C.impliedNodeFormat===1){M??(M=nC(C,a.pos)),no.add(Pp(C,M.start,M.length,w.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),_=!0;break}case 7:case 99:case 4:if(ht>=4)break;default:M??(M=nC(C,a.pos));const z=h6(a)?w.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:w.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;no.add(Pp(C,M.start,M.length,z)),_=!0;break}}}else{const C=ns(a);if(!T5(C)){const M=nC(C,a.pos),z=h6(a)?w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,Z=Pp(C,M.start,M.length,z);if(b&&b.kind!==176&&!(L0(b)&2)){const me=kc(b,w.Did_you_mean_to_mark_this_function_as_async);ml(Z,me)}no.add(Z),_=!0}}return h6(a)&&jBe(a)&&(He(a,w.await_expressions_cannot_be_used_in_a_parameter_initializer),_=!0),_}function CK(a){s(()=>Bze(a));const _=n_(a.expression),b=Lfe(_,!0,a,w.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return b===_&&!je(b)&&!(_.flags&3)&&Hn(!1,kc(a,w.await_has_no_effect_on_the_type_of_this_expression)),b}function n1e(a){const _=n_(a.operand);if(_===ou)return ou;switch(a.operand.kind){case 9:switch(a.operator){case 41:return ZP(bD(-a.operand.text));case 40:return ZP(bD(+a.operand.text))}break;case 10:if(a.operator===41)return ZP(Oue({negative:!0,base10Value:l3(a.operand.text)}))}switch(a.operator){case 40:case 41:case 55:return HI(_,a.operand),r1e(_,12288)&&He(a.operand,w.The_0_operator_cannot_be_applied_to_type_symbol,Nd(a.operator)),a.operator===40?(r1e(_,2112)&&He(a.operand,w.Operator_0_cannot_be_applied_to_type_1,Nd(a.operator),oa(Tx(_))),an):Gze(_);case 54:lGe(_,a.operand);const b=bS(_)&12582912;return b===4194304?rr:b===8388608?Ji:Ca;case 46:case 47:return Afe(a.operand,HI(_,a.operand),w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AK(a.operand,w.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,w.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Gze(_)}return _r}function zze(a){const _=n_(a.operand);return _===ou?ou:(Afe(a.operand,HI(_,a.operand),w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AK(a.operand,w.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,w.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Gze(_))}function Gze(a){return cy(a,2112)?lh(a,3)||cy(a,296)?q_:Un:an}function r1e(a,_){if(cy(a,_))return!0;const b=DE(a);return!!b&&cy(b,_)}function cy(a,_){if(a.flags&_)return!0;if(a.flags&3145728){const b=a.types;for(const C of b)if(cy(C,_))return!0}return!1}function lh(a,_,b){return a.flags&_?!0:b&&a.flags&114691?!1:!!(_&296)&&Mp(a,an)||!!(_&2112)&&Mp(a,Un)||!!(_&402653316)&&Mp(a,xe)||!!(_&528)&&Mp(a,Ca)||!!(_&16384)&&Mp(a,Ks)||!!(_&131072)&&Mp(a,vs)||!!(_&65536)&&Mp(a,$e)||!!(_&32768)&&Mp(a,Ui)||!!(_&4096)&&Mp(a,Qa)||!!(_&67108864)&&Mp(a,fp)}function Cfe(a,_,b){return a.flags&1048576?jr(a.types,C=>Cfe(C,_,b)):lh(a,_,b)}function Dfe(a){return!!(ji(a)&16)&&!!a.symbol&&jze(a.symbol)}function jze(a){return(a.flags&128)!==0}function dnt(a,_,b,C){return b===ou||C===ou?ou:(!Q_(b)&&Cfe(b,402784252)&&He(a,w.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Q_(C)||BK(C)||X4(C,S0)||He(_,w.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ca)}function pnt(a){return dM(a,_=>_===H0||!!(_.flags&2097152)&&By(DE(_)))}function rwe(a,_,b,C){if(b===ou||C===ou)return ou;if(Gu(a)){if(ht<99&&Jy(a,2097152),!ge(a).resolvedSymbol&&h0(a)){const M=lv(a,C.symbol,!0);cze(a,C,M)}}else JS(HI(b,a),mu,a);return JS(HI(C,_),fp,_)&&pnt(C)&&He(_,w.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,oa(C)),Ca}function tyt(a,_,b){const C=a.properties;if(Ye&&C.length===0)return HI(_,a);for(let M=0;MeM(Je,b)):W1(C);return HB(me,Se,M)}}}}function HB(a,_,b,C){let M;if(a.kind===304){const z=a;z.objectAssignmentInitializer&&(Ye&&!(bS(n_(z.objectAssignmentInitializer))&16777216)&&(_=JA(_,524288)),ynt(z.name,z.equalsToken,z.objectAssignmentInitializer,b)),M=a.name}else M=a;return M.kind===226&&M.operatorToken.kind===64&&(pn(M,b),M=M.left,Ye&&(_=JA(_,524288))),M.kind===210?tyt(M,_,C):M.kind===209?iwe(M,_,b):gnt(M,_,b)}function gnt(a,_,b){const C=n_(a,b),M=a.parent.kind===305?w.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:w.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,z=a.parent.kind===305?w.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:w.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return AK(a,M,z)&&Y4(_,C,a,a),kT(a)&&Jy(a.parent,1048576),_}function Hte(a){switch(a=_g(a),a.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 Hte(a.whenTrue)&&Hte(a.whenFalse);case 226:return zN(a.operatorToken.kind)?!1:Hte(a.left)&&Hte(a.right);case 224:case 225:switch(a.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function i1e(a,_){return(_.flags&98304)!==0||MPe(a,_)}function hnt(){const a=VEe(_,b,C,M,z,Z);return(dn,yn)=>{const hr=a(dn,yn);return ce.assertIsDefined(hr),hr};function _(dn,yn,hr){return yn?(yn.stackIndex++,yn.skip=!1,Je(yn,void 0),Pt(yn,void 0)):yn={checkMode:hr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Rs(dn)&&x7(dn)?(yn.skip=!0,Pt(yn,n_(dn.right,hr)),yn):(nyt(dn),dn.operatorToken.kind===64&&(dn.left.kind===210||dn.left.kind===209)&&(yn.skip=!0,Pt(yn,HB(dn.left,n_(dn.right,hr),hr,dn.right.kind===110))),yn)}function b(dn,yn,hr){if(!yn.skip)return me(yn,dn)}function C(dn,yn,hr){if(!yn.skip){const bi=vt(yn);ce.assertIsDefined(bi),Je(yn,bi),Pt(yn,void 0);const Wo=dn.kind;if(pk(Wo)){let aa=hr.parent;for(;aa.kind===217||IH(aa);)aa=aa.parent;(Wo===56||Xg(aa))&&Cwe(hr.left,bi,Xg(aa)?aa.thenStatement:void 0),lGe(bi,hr.left)}}}function M(dn,yn,hr){if(!yn.skip)return me(yn,dn)}function z(dn,yn){let hr;if(yn.skip)hr=vt(yn);else{const bi=Se(yn);ce.assertIsDefined(bi);const Wo=vt(yn);ce.assertIsDefined(Wo),hr=vnt(dn.left,dn.operatorToken,dn.right,bi,Wo,yn.checkMode,dn)}return yn.skip=!1,Je(yn,void 0),Pt(yn,void 0),yn.stackIndex--,hr}function Z(dn,yn,hr){return Pt(dn,yn),dn}function me(dn,yn){if(ys(yn))return yn;Pt(dn,n_(yn,dn.checkMode))}function Se(dn){return dn.typeStack[dn.stackIndex]}function Je(dn,yn){dn.typeStack[dn.stackIndex]=yn}function vt(dn){return dn.typeStack[dn.stackIndex+1]}function Pt(dn,yn){dn.typeStack[dn.stackIndex+1]=yn}}function nyt(a){const{left:_,operatorToken:b,right:C}=a;b.kind===61&&(ys(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&Po(_,w._0_and_1_operations_cannot_be_mixed_without_parentheses,Nd(_.operatorToken.kind),Nd(b.kind)),ys(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&Po(C,w._0_and_1_operations_cannot_be_mixed_without_parentheses,Nd(C.operatorToken.kind),Nd(b.kind)))}function ynt(a,_,b,C,M){const z=_.kind;if(z===64&&(a.kind===210||a.kind===209))return HB(a,n_(b,C),C,b.kind===110);let Z;pk(z)?Z=NK(a,C):Z=n_(a,C);const me=n_(b,C);return vnt(a,_,b,Z,me,C,M)}function vnt(a,_,b,C,M,z,Z){const me=_.kind;switch(me){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===ou||M===ou)return ou;C=HI(C,a),M=HI(M,b);let lo;if(C.flags&528&&M.flags&528&&(lo=dn(_.kind))!==void 0)return He(Z||_,w.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Nd(_.kind),Nd(lo)),an;{const Pa=Afe(a,C,w.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ga=Afe(b,M,w.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let hs;if(lh(C,3)&&lh(M,3)||!(cy(C,2112)||cy(M,2112)))hs=an;else if(Se(C,M)){switch(me){case 50:case 73:Wo();break;case 43:case 68:ht<3&&He(Z,w.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}hs=Un}else Wo(Se),hs=_r;return Pa&&Ga&&yn(hs),hs}case 40:case 65:if(C===ou||M===ou)return ou;!lh(C,402653316)&&!lh(M,402653316)&&(C=HI(C,a),M=HI(M,b));let Xa;return lh(C,296,!0)&&lh(M,296,!0)?Xa=an:lh(C,2112,!0)&&lh(M,2112,!0)?Xa=Un:lh(C,402653316,!0)||lh(M,402653316,!0)?Xa=xe:(Q_(C)||Q_(M))&&(Xa=je(C)||je(M)?_r:gn),Xa&&!Pt(me)?Xa:Xa?(me===65&&yn(Xa),Xa):(Wo((Ga,hs)=>lh(Ga,402655727)&&lh(hs,402655727)),gn);case 30:case 32:case 33:case 34:return Pt(me)&&(C=tN(HI(C,a)),M=tN(HI(M,b)),bi((Pa,Ga)=>{if(Q_(Pa)||Q_(Ga))return!0;const hs=Mp(Pa,q_),Ld=Mp(Ga,q_);return hs&&Ld||!hs&&!Ld&&nbe(Pa,Ga)})),Ca;case 35:case 36:case 37:case 38:if(!(z&&z&128)){if((HX(a)||HX(b))&&(!Rs(a)||me===37||me===38)){const Pa=me===35||me===37;He(Z,w.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Pa?"false":"true")}$s(Z,me,a,b),bi((Pa,Ga)=>i1e(Pa,Ga)||i1e(Ga,Pa))}return Ca;case 104:return dnt(a,b,C,M);case 103:return rwe(a,b,C,M);case 56:case 77:{const Pa=bS(C)&4194304?gl([dBe(Ye?C:Tx(M)),M]):C;return me===77&&yn(M),Pa}case 57:case 76:{const Pa=bS(C)&8388608?gl([aM(_Be(C)),M],2):C;return me===76&&yn(M),Pa}case 61:case 78:{const Pa=bS(C)&262144?gl([aM(C),M],2):C;return me===78&&yn(M),Pa}case 64:const Go=ys(a.parent)?Qy(a.parent):0;return Je(Go,M),hr(Go)?((!(M.flags&524288)||Go!==2&&Go!==6&&!rM(M)&&!DBe(M)&&!(ji(M)&1))&&yn(M),C):(yn(M),M);case 28:if(!Le.allowUnreachableCode&&Hte(a)&&!vt(a.parent)){const Pa=ns(a),Ga=Pa.text,hs=ep(Ga,a.pos);Pa.parseDiagnostics.some(nl=>nl.code!==w.JSX_expressions_must_have_one_parent_element.code?!1:kTe(nl,hs))||He(a,w.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return M;default:return ce.fail()}function Se(lo,Xa){return lh(lo,2112)&&lh(Xa,2112)}function Je(lo,Xa){if(lo===2)for(const Go of O2(Xa)){const Pa=Vo(Go);if(Pa.symbol&&Pa.symbol.flags&32){const Ga=Go.escapedName,hs=Ro(Go.valueDeclaration,Ga,788968,void 0,Ga,!1);hs!=null&&hs.declarations&&hs.declarations.some(A2)&&(Ao(hs,w.Duplicate_identifier_0,lf(Ga),Go),Ao(Go,w.Duplicate_identifier_0,lf(Ga),hs))}}}function vt(lo){return lo.parent.kind===217&&nS(lo.left)&&lo.left.text==="0"&&(el(lo.parent.parent)&&lo.parent.parent.expression===lo.parent||lo.parent.parent.kind===215)&&(Kf(lo.right)||An(lo.right)&&lo.right.escapedText==="eval")}function Pt(lo){const Xa=r1e(C,12288)?a:r1e(M,12288)?b:void 0;return Xa?(He(Xa,w.The_0_operator_cannot_be_applied_to_type_symbol,Nd(lo)),!1):!0}function dn(lo){switch(lo){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function yn(lo){zN(me)&&s(Xa);function Xa(){let Go=C;if(cj(_.kind)&&a.kind===211&&(Go=a8(a,void 0,!0)),AK(a,w.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Pa;if(on&&sa(a)&&cy(lo,32768)){const Ga=wm(yT(a.expression),a.name.escapedText);Jue(lo,Ga)&&(Pa=w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Y4(lo,Go,a,b,Pa)}}}function hr(lo){var Xa;switch(lo){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Go=Vl(a),Pa=x7(b);return!!Pa&&Wd(Pa)&&!!((Xa=Go==null?void 0:Go.exports)!=null&&Xa.size);default:return!1}}function bi(lo){return lo(C,M)?!1:(Wo(lo),!0)}function Wo(lo){let Xa=!1;const Go=Z||_;if(lo){const nl=sL(C),id=sL(M);Xa=!(nl===C&&id===M)&&!!(nl&&id)&&lo(nl,id)}let Pa=C,Ga=M;!Xa&&lo&&([Pa,Ga]=ryt(C,M,lo));const[hs,Ld]=dD(Pa,Ga);aa(Go,Xa,hs,Ld)||Mr(Go,Xa,w.Operator_0_cannot_be_applied_to_types_1_and_2,Nd(_.kind),hs,Ld)}function aa(lo,Xa,Go,Pa){switch(_.kind){case 37:case 35:case 38:case 36:return Mr(lo,Xa,w.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Go,Pa);default:return}}function $s(lo,Xa,Go,Pa){const Ga=Ba(_g(Go)),hs=Ba(_g(Pa));if(Ga||hs){const Ld=He(lo,w.This_condition_will_always_return_0,Nd(Xa===37||Xa===35?97:112));if(Ga&&hs)return;const nl=Xa===38||Xa===36?Nd(54):"",id=Ga?Pa:Go,$y=_g(id);ml(Ld,kc(id,w.Did_you_mean_0,`${nl}Number.isNaN(${Uh($y)?oE($y):"..."})`))}}function Ba(lo){if(An(lo)&&lo.escapedText==="NaN"){const Xa=j0e();return!!Xa&&Xa===ED(lo)}return!1}}function ryt(a,_,b){let C=a,M=_;const z=Tx(a),Z=Tx(_);return b(z,Z)||(C=z,M=Z),[C,M]}function bnt(a){s(dn);const _=GE(a);if(!_)return gn;const b=L0(_);if(!(b&1))return gn;const C=(b&2)!==0;a.asteriskToken&&(C&&ht<99&&Jy(a,26624),!C&&ht<2&&Le.downlevelIteration&&Jy(a,256));const M=se(_),z=M&&ert(M,C),Z=z&&z.yieldType||gn,me=z&&z.nextType||gn,Se=C?qB(me)||gn:me,Je=a.expression?n_(a.expression):xu,vt=Mze(a,Je,Se,C);if(M&&vt&&Y4(vt,Z,a.expression||a,a.expression),a.asteriskToken)return _Ge(C?19:17,1,Je,a.expression)||gn;if(M)return MO(2,M,C)||gn;let Pt=Nbe(2,_);return Pt||(Pt=gn,s(()=>{if(Wt&&!QSe(a)){const yn=PE(a,void 0);(!yn||Q_(yn))&&He(a,w.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Pt;function dn(){a.flags&16384||c1(a,w.A_yield_expression_is_only_allowed_in_a_generator_body),jBe(a)&&He(a,w.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function iyt(a,_){const b=NK(a.condition,_);Cwe(a.condition,b,a.whenTrue);const C=n_(a.whenTrue,_),M=n_(a.whenFalse,_);return gl([C,M],2)}function Vze(a){const _=a.parent;return sb(_)&&Vze(_)||Ed(_)&&_.argumentExpression===a}function oyt(a){const _=[a.head.text],b=[];for(const M of a.templateSpans){const z=n_(M.expression);r1e(z,12288)&&He(M.expression,w.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),_.push(M.literal.text),b.push(Mp(z,Ma)?z:xe)}if(Jte(a)||Vze(a)||dM(PE(a,void 0)||co,ayt))return kB(_,b);const C=a.parent.kind!==215&&lrt(a);return C?ZP(qv(C)):xe}function ayt(a){return!!(a.flags&134217856||a.flags&58982400&&cy(Co(a)||co,402653316))}function Tnt(a){return iD(a)&&!TW(a.parent)?a.parent.parent:a}function JB(a,_,b,C){const M=Tnt(a);Iw(M,_,!1),tht(M,b);const z=n_(a,C|1|(b?2:0));b&&b.intraExpressionInferenceSites&&(b.intraExpressionInferenceSites=void 0);const Z=cy(z,2944)&&swe(z,ffe(_,a,void 0))?B1(z):z;return nht(),kte(),Z}function Iv(a,_){if(_)return n_(a,_);const b=ge(a);if(!b.resolvedType){const C=P,M=ae;P=k,ae=void 0,b.resolvedType=n_(a,_),ae=M,P=C}return b.resolvedType}function awe(a){return a=_g(a,!0),a.kind===216||a.kind===234||$Y(a)}function DK(a,_,b){const C=j8(a);if(Rs(a)){const z=ZH(a);if(z)return Tze(C,z,_)}const M=RO(C)||(b?JB(C,b,void 0,_||0):Iv(C,_));return Pu(a)&&a.name.kind===207&&_p(M)&&!M.target.hasRestElement&&Fo(M)swe(a,C))}if(_.flags&58982400){const b=Co(_)||co;return cy(b,4)&&cy(a,128)||cy(b,8)&&cy(a,256)||cy(b,64)&&cy(a,2048)||cy(b,4096)&&cy(a,8192)||swe(a,b)}return!!(_.flags&406847616&&cy(a,128)||_.flags&256&&cy(a,256)||_.flags&2048&&cy(a,2048)||_.flags&512&&cy(a,512)||_.flags&8192&&cy(a,8192))}return!1}function Jte(a){const _=a.parent;return _7(_)&&CN(_.type)||$Y(_)&&CN(qY(_))||jte(a)&&nc(PE(a,0))||(sb(_)||Ch(_)||ex(_))&&Jte(_)||(Fm(_)||BT(_)||VY(_))&&Jte(_.parent)}function $te(a,_,b){const C=n_(a,_,b);return Jte(a)||rSe(a)?B1(C):awe(a)?C:sBe(C,ffe(PE(a,void 0),a,void 0))}function kfe(a,_){return a.name.kind===167&&Pw(a.name),$te(a.initializer,_)}function Pfe(a,_){Wrt(a),a.name.kind===167&&Pw(a.name);const b=fnt(a,_);return Uze(a,b,_)}function Uze(a,_,b){if(b&&b&10){const C=WV(_,0,!0),M=WV(_,1,!0),z=C||M;if(z&&z.typeParameters){const Z=CO(a,2);if(Z){const me=WV(aM(Z),C?0:1,!1);if(me&&!me.typeParameters){if(b&8)return Snt(a,b),Mg;const Se=DO(a),Je=Se.signature&&j(Se.signature),vt=Je&&_ze(Je);if(vt&&!vt.typeParameters&&!jr(Se.inferences,GV)){const Pt=lyt(Se,z.typeParameters),dn=Us(z,Pt),yn=Vn(Se.inferences,hr=>Yue(hr.typeParameter));if(mBe(dn,me,(hr,bi)=>{uM(yn,hr,bi,0,!0)}),gt(yn,GV)&&(gBe(dn,me,(hr,bi)=>{uM(yn,hr,bi)}),!Jze(Se.inferences,yn)))return cyt(Se.inferences,yn),Se.inferredTypeParameters=Hi(Se.inferredTypeParameters,Pt),WI(dn)}return WI(Htt(z,me,Se))}}}}return _}function Snt(a,_){if(_&2){const b=DO(a);b.flags|=4}}function GV(a){return!!(a.candidates||a.contraCandidates)}function Hze(a){return!!(a.candidates||a.contraCandidates||XR(a.typeParameter))}function Jze(a,_){for(let b=0;bb.symbol.escapedName===_)}function uyt(a,_){let b=_.length;for(;b>1&&_.charCodeAt(b-1)>=48&&_.charCodeAt(b-1)<=57;)b--;const C=_.slice(0,b);for(let M=1;;M++){const z=C+M;if(!$ze(a,z))return z}}function Ent(a){const _=NO(a);if(_&&!_.typeParameters)return j(_)}function xnt(a){const _=n_(a.expression),b=Kue(_,a.expression),C=Ent(_);return C&&fbe(C,a,b!==_)}function yT(a){const _=RO(a);if(_)return _;if(a.flags&268435456&&ae){const M=ae[Im(a)];if(M)return M}const b=J,C=n_(a,128);if(J!==b){const M=ae||(ae=[]);M[Im(a)]=C,YSe(a,a.flags|268435456)}return C}function RO(a){let _=_g(a,!0);if($Y(_)){const b=qY(_);if(!CN(b))return wl(b)}if(_=_g(a),h6(_)){const b=RO(_.expression);return b?qB(b):void 0}if(el(_)&&_.expression.kind!==108&&!eT(_,!0)&&!yfe(_))return R8(_)?xnt(_):Ent(TK(_.expression));if(_7(_)&&!CN(_.type))return wl(_.type);if(fP(a)||Fl(a))return n_(a)}function qA(a){const _=ge(a);if(_.contextFreeType)return _.contextFreeType;Iw(a,gn,!1);const b=_.contextFreeType=n_(a,4);return kte(),b}function n_(a,_,b){var C,M;(C=tu)==null||C.push(tu.Phase.Check,"checkExpression",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath});const z=ue;ue=a,te=0;const Z=Ant(a,_,b),me=Uze(a,Z,_);return Dfe(me)&&cwe(a,me),ue=z,(M=tu)==null||M.pop(),me}function cwe(a,_){a.parent.kind===211&&a.parent.expression===a||a.parent.kind===212&&a.parent.expression===a||(a.kind===80||a.kind===166)&&S1e(a)||a.parent.kind===186&&a.parent.exprName===a||a.parent.kind===281||He(a,w.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),F0(Le)&&(ce.assert(!!(_.symbol.flags&128)),_.symbol.valueDeclaration.flags&33554432&&!EA(a)&&He(a,w.Cannot_access_ambient_const_enums_when_0_is_enabled,Gn))}function lwe(a,_){if(g1(a)){if(poe(a))return Tze(a.expression,moe(a),_);if($Y(a))return Vte(a,_)}return n_(a.expression,_)}function Ant(a,_,b){const C=a.kind;if(l)switch(C){case 231:case 218:case 219:l.throwIfCancellationRequested()}switch(C){case 80:return ltt(a,_);case 81:return Lte(a);case 110:return gK(a);case 108:return _Ne(a);case 106:return Zt;case 15:case 11:return yBe(a)?mt:ZP(qv(a.text));case 9:return Kwe(a),ZP(bD(+a.text));case 10:return Vrt(a),ZP(Oue({negative:!1,base10Value:l3(a.text)}));case 112:return Ji;case 97:return rr;case 228:return oyt(a);case 14:return Fy;case 209:return QBe(a,_,b);case 210:return lht(a,_);case 211:return a8(a,_);case 166:return Ftt(a,_);case 212:return s8(a,_);case 213:if(a.expression.kind===102)return Wht(a);case 214:return Fht(a,_);case 215:return NE(a);case 217:return lwe(a,_);case 231:return vGe(a);case 218:case 219:return fnt(a,_);case 221:return Zht(a);case 216:case 234:return int(a,_);case 235:return g5(a);case 233:return ont(a);case 238:return Ght(a);case 236:return jht(a);case 220:return Wze(a);case 222:return eyt(a);case 223:return CK(a);case 224:return n1e(a);case 225:return zze(a);case 226:return pn(a,_);case 227:return iyt(a,_);case 230:return Stt(a,_);case 232:return xu;case 229:return bnt(a);case 237:return Ett(a);case 294:return Ptt(a,_);case 284:return xD(a);case 285:return nze(a);case 288:return rze(a);case 292:return Ctt(a,_);case 286:ce.fail("Shouldn't ever directly check a JsxOpeningElement")}return _r}function Cnt(a){aN(a),a.expression&&c1(a.expression,w.Type_expected),bp(a.constraint),bp(a.default);const _=Ok(wi(a));Co(_),$P(_)||He(a.default,w.Type_parameter_0_has_a_circular_default,oa(_));const b=Wi(_),C=LI(_);b&&C&&JS(C,M1(Nf(b,Q6(_,C)),C),a.default,w.Type_0_does_not_satisfy_the_constraint_1),FK(a),s(()=>wK(a.name,w.Type_parameter_name_cannot_be_0))}function uwe(a){var _,b;if(Kp(a.parent)||Jl(a.parent)||mg(a.parent)){const C=Ok(wi(a)),M=vp(C)&98304;if(M){const z=wi(a.parent);if(mg(a.parent)&&!(ji(Rm(z))&48))He(a,w.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(M===32768||M===65536){(_=tu)==null||_.push(tu.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Gh(Rm(z)),id:Gh(C)});const Z=abe(z,C,M===65536?oh:vE),me=abe(z,C,M===65536?vE:oh),Se=C;Ne=C,JS(Z,me,a,w.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Ne=Se,(b=tu)==null||b.pop()}}}}function fwe(a){aN(a),nne(a);const _=GE(a);il(a,16476)&&(_.kind===176&&wx(_.body)||He(a,w.A_parameter_property_is_only_allowed_in_a_constructor_implementation),_.kind===176&&An(a.name)&&a.name.escapedText==="constructor"&&He(a.name,w.constructor_cannot_be_used_as_a_parameter_property_name)),!a.initializer&&yG(a)&&ld(a.name)&&_.body&&He(a,w.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),a.name&&An(a.name)&&(a.name.escapedText==="this"||a.name.escapedText==="new")&&(_.parameters.indexOf(a)!==0&&He(a,w.A_0_parameter_must_be_the_first_parameter,a.name.escapedText),(_.kind===176||_.kind===180||_.kind===185)&&He(a,w.A_constructor_cannot_have_a_this_parameter),_.kind===219&&He(a,w.An_arrow_function_cannot_have_a_this_parameter),(_.kind===177||_.kind===178)&&He(a,w.get_and_set_accessors_cannot_declare_this_parameters)),a.dotDotDotToken&&!ld(a.name)&&!Mp(HT(Vo(a.symbol)),Si)&&He(a,w.A_rest_parameter_must_be_of_an_array_type)}function $B(a){const _=Dnt(a);if(!_){He(a,w.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const b=Cv(_),C=F2(b);if(!C)return;bp(a.type);const{parameterName:M}=a;if(C.kind===0||C.kind===2)Z0e(M);else if(C.parameterIndex>=0){if(oT(b)&&C.parameterIndex===b.parameters.length-1)He(M,w.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const z=()=>Es(void 0,w.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);JS(C.type,Vo(b.parameters[C.parameterIndex]),a.type,void 0,z)}}else if(M){let z=!1;for(const{name:Z}of _.parameters)if(ld(Z)&&qte(Z,M,C.parameterName)){z=!0;break}z||He(a.parameterName,w.Cannot_find_parameter_0,C.parameterName)}}function Dnt(a){switch(a.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const _=a.parent;if(a===_.type)return _}}function qte(a,_,b){for(const C of a.elements){if(t0(C))continue;const M=C.name;if(M.kind===80&&M.escapedText===b)return He(_,w.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,b),!0;if((M.kind===207||M.kind===206)&&qte(M,_,b))return!0}}function Kte(a){a.kind===181?n0t(a):(a.kind===184||a.kind===262||a.kind===185||a.kind===179||a.kind===176||a.kind===180)&&Zfe(a);const _=L0(a);_&4||((_&3)===3&&ht<99&&Jy(a,6144),(_&3)===2&&ht<4&&Jy(a,64),_&3&&ht<2&&Jy(a,128)),b1e(oR(a)),Qyt(a),Ot(a.parameters,fwe),a.type&&bp(a.type),s(b);function b(){p1e(a);let C=bA(a),M=C;if(Rs(a)){const z=w8(a);if(z&&z.typeExpression&&x2(z.typeExpression.type)){const Z=NO(wl(z.typeExpression));Z&&Z.declaration&&(C=bA(Z.declaration),M=z.typeExpression.type)}}if(Wt&&!C)switch(a.kind){case 180:He(a,w.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:He(a,w.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&M){const z=L0(a);if((z&5)===1){const Z=wl(C);if(Z===Ks)He(M,w.A_generator_cannot_have_a_void_type_annotation);else{const me=MO(0,Z,(z&2)!==0)||gn,Se=MO(1,Z,(z&2)!==0)||me,Je=MO(2,Z,(z&2)!==0)||co,vt=Efe(me,Se,Je,!!(z&2));JS(vt,Z,M)}}else(z&3)===2&&bwe(a,C,M)}a.kind!==181&&a.kind!==324&&l8(a)}}function fyt(a){const _=new Map,b=new Map,C=new Map;for(const z of a.members)if(z.kind===176)for(const Z of z.parameters)Eb(Z,z)&&!ld(Z.name)&&M(_,Z.name,Z.name.escapedText,3);else{const Z=e_(z),me=z.name;if(!me)continue;const Se=Gu(me),Je=Se&&Z?16:0,vt=Se?C:Z?b:_,Pt=me&&WN(me);if(Pt)switch(z.kind){case 177:M(vt,me,Pt,1|Je);break;case 178:M(vt,me,Pt,2|Je);break;case 172:M(vt,me,Pt,3|Je);break;case 174:M(vt,me,Pt,8|Je);break}}function M(z,Z,me,Se){const Je=z.get(me);if(Je)if((Je&16)!==(Se&16))He(Z,w.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Yv(Z));else{const vt=!!(Je&8),Pt=!!(Se&8);vt||Pt?vt!==Pt&&He(Z,w.Duplicate_identifier_0,Yv(Z)):Je&Se&-17?He(Z,w.Duplicate_identifier_0,Yv(Z)):z.set(me,Je|Se)}else z.set(me,Se)}}function Int(a){for(const _ of a.members){const b=_.name;if(e_(_)&&b){const M=WN(b);switch(M){case"name":case"length":case"caller":case"arguments":if(Dt)break;case"prototype":const z=w.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Z=dx(wi(a));He(b,z,M,Z);break}}}}function _we(a){const _=new Map;for(const b of a.members)if(b.kind===171){let C;const M=b.name;switch(M.kind){case 11:case 9:C=M.text;break;case 80:C=ec(M);break;default:continue}_.get(C)?(He(o_(b.symbol.valueDeclaration),w.Duplicate_identifier_0,C),He(b.name,w.Duplicate_identifier_0,C)):_.set(C,!0)}}function dwe(a){if(a.kind===264){const b=wi(a);if(b.declarations&&b.declarations.length>0&&b.declarations[0]!==a)return}const _=tK(wi(a));if(_!=null&&_.declarations){const b=new Map;for(const C of _.declarations)C.parameters.length===1&&C.parameters[0].type&&e8(wl(C.parameters[0].type),M=>{const z=b.get(Gh(M));z?z.declarations.push(C):b.set(Gh(M),{type:M,declarations:[C]})});b.forEach(C=>{if(C.declarations.length>1)for(const M of C.declarations)He(M,w.Duplicate_index_signature_for_type_0,oa(C.type))})}}function pwe(a){!aN(a)&&!pne(a)&&_ne(a.name),nne(a),Kze(a),il(a,256)&&a.kind===172&&a.initializer&&He(a,w.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ud(a.name))}function qze(a){return Gu(a.name)&&He(a,w.Private_identifiers_are_not_allowed_outside_class_bodies),pwe(a)}function knt(a){Wrt(a)||_ne(a.name),em(a)&&a.asteriskToken&&An(a.name)&&ec(a.name)==="constructor"&&He(a.name,w.Class_constructor_may_not_be_a_generator),kK(a),il(a,256)&&a.kind===174&&a.body&&He(a,w.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ud(a.name)),Gu(a.name)&&!h0(a)&&He(a,w.Private_identifiers_are_not_allowed_outside_class_bodies),Kze(a)}function Kze(a){if(Gu(a.name)&&ht<99){for(let _=Bs(a);_;_=Bs(_))ge(_).flags|=1048576;if(B0(a.parent)){const _=Pbe(a.parent);_&&(ge(a.name).flags|=32768,ge(_).flags|=4096)}}}function o1e(a){aN(a),B_(a,bp)}function Pnt(a){Kte(a),jrt(a)||c0t(a),bp(a.body);const _=wi(a),b=Vm(_,a.kind);if(a===b&&gwe(_),Um(a.body))return;s(M);return;function C(z){return Mf(z)?!0:z.kind===172&&!e_(z)&&!!z.initializer}function M(){const z=a.parent;if(oC(z)){zBe(a.parent,z);const Z=Dp(z),me=uNe(a.body);if(me){if(Z&&He(me,w.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ft&&(gt(a.parent.members,C)||gt(a.parameters,Je=>il(Je,16476))))if(!a1e(me,a.body))He(me,w.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 Je;for(const vt of a.body.statements){if(Ou(vt)&&y7(rv(vt.expression))){Je=vt;break}if(s1e(vt))break}Je===void 0&&He(a,w.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 Z||He(a,w.Constructors_for_derived_classes_must_contain_a_super_call)}}}function a1e(a,_){const b=Lx(a.parent);return Ou(b)&&b.parent===_}function s1e(a){return a.kind===108||a.kind===110?!0:bie(a)?!1:!!B_(a,s1e)}function Nnt(a){An(a.name)&&ec(a.name)==="constructor"&&Jl(a.parent)&&He(a.name,w.Class_constructor_may_not_be_an_accessor),s(_),bp(a.body),Kze(a);function _(){if(!Zfe(a)&&!GGe(a)&&_ne(a.name),Ofe(a),Kte(a),a.kind===177&&!(a.flags&33554432)&&wx(a.body)&&a.flags&512&&(a.flags&1024||He(a.name,w.A_get_accessor_must_return_a_value)),a.name.kind===167&&Pw(a.name),GS(a)){const C=wi(a),M=Vm(C,177),z=Vm(C,178);if(M&&z&&!(QB(M)&1)){ge(M).flags|=1;const Z=tS(M),me=tS(z);(Z&256)!==(me&256)&&(He(M.name,w.Accessors_must_both_be_abstract_or_non_abstract),He(z.name,w.Accessors_must_both_be_abstract_or_non_abstract)),(Z&16&&!(me&24)||Z&8&&!(me&8))&&(He(M.name,w.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),He(z.name,w.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const b=M2(wi(a));a.kind===177&&twe(a,b)}}function wnt(a){Ofe(a)}function _yt(a,_,b){return a.typeArguments&&b{const C=mwe(a);C&&Nfe(a,C)});const b=ge(a).resolvedSymbol;b&>(b.declarations,C=>f6(C)&&!!(C.flags&536870912))&&Wn(hfe(a),b.declarations,b.escapedName)}}function pyt(a){const _=to(a.parent,F8);if(!_)return;const b=mwe(_);if(!b)return;const C=Wi(b[_.typeArguments.indexOf(a)]);return C&&Nf(C,IE(b,c1e(_,b)))}function myt(a){pWe(a)}function gyt(a){Ot(a.members,bp),s(_);function _(){const b=MWe(a);wwe(b,b.symbol),dwe(a),_we(a)}}function Rnt(a){bp(a.elementType)}function Mnt(a){const _=a.elements;let b=!1,C=!1;for(const M of _){const z=AWe(M);if(z&8){const Z=wl(M.type);if(!iM(Z)){He(M,w.A_rest_element_type_must_be_an_array_type);break}(UA(Z)||_p(Z)&&Z.target.combinedFlags&4)&&(C=!0)}else if(z&4){if(C){Po(M,w.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(z&2){if(C){Po(M,w.An_optional_element_cannot_follow_a_rest_element);break}b=!0}else if(b){Po(M,w.A_required_element_cannot_follow_an_optional_element);break}}Ot(a.elements,bp),wl(a)}function hyt(a){Ot(a.types,bp),wl(a)}function Lnt(a,_){if(!(a.flags&8388608))return a;const b=a.objectType,C=a.indexType;if(Mp(C,YP(b,0)))return _.kind===212&&IS(_)&&ji(b)&32&&jS(b)&1&&He(_,w.Index_signature_in_type_0_only_permits_reading,oa(b)),a;const M=O1(b);if(Cd(M,an)&&lh(C,296))return a;if(nM(b)){const z=CV(C,_);if(z){const Z=e8(M,me=>Fn(me,z));if(Z&&Vy(Z)&24)return He(_,w.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,lf(z)),_r}}return He(_,w.Type_0_cannot_be_used_to_index_type_1,oa(C),oa(b)),_r}function yyt(a){bp(a.objectType),bp(a.indexType),Lnt(iet(a),a)}function vyt(a){byt(a),bp(a.typeParameter),bp(a.nameType),bp(a.type),a.type||sM(a,gn);const _=xPe(a),b=Vg(_);if(b)JS(b,x_,a.nameType);else{const C=mT(_);JS(C,x_,AN(a.typeParameter))}}function byt(a){var _;if((_=a.members)!=null&&_.length)return Po(a.members[0],w.A_mapped_type_may_not_declare_properties_or_methods)}function Tyt(a){Z0e(a)}function l1e(a){Frt(a),bp(a.type)}function Syt(a){B_(a,bp)}function Ont(a){Kr(a,b=>b.parent&&b.parent.kind===194&&b.parent.extendsType===b)||Po(a,w.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),bp(a.typeParameter);const _=wi(a.typeParameter);if(_.declarations&&_.declarations.length>1){const b=Mt(_);if(!b.typeParametersChecked){b.typeParametersChecked=!0;const C=Ok(_),M=zVe(_,168);if(!yGe(M,[C],z=>[z])){const z=Cl(_);for(const Z of M)He(Z.name,w.All_declarations_of_0_must_have_identical_constraints,z)}}}l8(a)}function Yze(a){for(const _ of a.templateSpans){bp(_.type);const b=wl(_.type);JS(b,Ma,_.type)}wl(a)}function Eyt(a){bp(a.argument),a.assertions&&D2(a.assertions.assertClause,Po)&&(mG()||Po(a.assertions.assertClause,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Jd(Le)!==3&&Jd(Le)!==99&&Po(a.assertions.assertClause,w.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),jV(a)}function Fnt(a){a.dotDotDotToken&&a.questionToken&&Po(a,w.A_tuple_member_cannot_be_both_optional_and_rest),a.type.kind===190&&Po(a.type,w.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.type.kind===191&&Po(a.type,w.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),bp(a.type),wl(a)}function Xte(a){return(Ab(a,8)||Mf(a))&&!!(a.flags&33554432)}function u1e(a,_){let b=E5(a);if(a.parent.kind!==264&&a.parent.kind!==263&&a.parent.kind!==231&&a.flags&33554432){const C=iE(a);C&&C.flags&128&&!(b&2)&&!(z0(a.parent)&&xp(a.parent.parent)&&$C(a.parent.parent))&&(b|=1),b|=2}return b&_}function gwe(a){s(()=>xyt(a))}function xyt(a){function _(lo,Xa){return Xa!==void 0&&Xa.parent===lo[0].parent?Xa:lo[0]}function b(lo,Xa,Go,Pa,Ga){if((Pa^Ga)!==0){const Ld=u1e(_(lo,Xa),Go);Ot(lo,nl=>{const id=u1e(nl,Go)^Ld;id&1?He(o_(nl),w.Overload_signatures_must_all_be_exported_or_non_exported):id&2?He(o_(nl),w.Overload_signatures_must_all_be_ambient_or_non_ambient):id&24?He(o_(nl)||nl,w.Overload_signatures_must_all_be_public_private_or_protected):id&256&&He(o_(nl),w.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(lo,Xa,Go,Pa){if(Go!==Pa){const Ga=cG(_(lo,Xa));Ot(lo,hs=>{cG(hs)!==Ga&&He(o_(hs),w.Overload_signatures_must_all_be_optional_or_required)})}}const M=283;let z=0,Z=M,me=!1,Se=!0,Je=!1,vt,Pt,dn;const yn=a.declarations,hr=(a.flags&16384)!==0;function bi(lo){if(lo.name&&Um(lo.name))return;let Xa=!1;const Go=B_(lo.parent,Ga=>{if(Xa)return Ga;Xa=Ga===lo});if(Go&&Go.pos===lo.end&&Go.kind===lo.kind){const Ga=Go.name||Go,hs=Go.name;if(lo.name&&hs&&(Gu(lo.name)&&Gu(hs)&&lo.name.escapedText===hs.escapedText||am(lo.name)&&am(hs)&&eN(Pw(lo.name),Pw(hs))||yA(lo.name)&&yA(hs)&&gY(lo.name)===gY(hs))){if((lo.kind===174||lo.kind===173)&&e_(lo)!==e_(Go)){const nl=e_(lo)?w.Function_overload_must_be_static:w.Function_overload_must_not_be_static;He(Ga,nl)}return}if(wx(Go.body)){He(Ga,w.Function_implementation_name_must_be_0,Ud(lo.name));return}}const Pa=lo.name||lo;hr?He(Pa,w.Constructor_implementation_is_missing):il(lo,256)?He(Pa,w.All_declarations_of_an_abstract_method_must_be_consecutive):He(Pa,w.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Wo=!1,aa=!1,$s=!1;const Ba=[];if(yn)for(const lo of yn){const Xa=lo,Go=Xa.flags&33554432,Pa=Xa.parent&&(Xa.parent.kind===264||Xa.parent.kind===187)||Go;if(Pa&&(dn=void 0),(Xa.kind===263||Xa.kind===231)&&!Go&&($s=!0),Xa.kind===262||Xa.kind===174||Xa.kind===173||Xa.kind===176){Ba.push(Xa);const Ga=u1e(Xa,M);z|=Ga,Z&=Ga,me=me||cG(Xa),Se=Se&&cG(Xa);const hs=wx(Xa.body);hs&&vt?hr?aa=!0:Wo=!0:(dn==null?void 0:dn.parent)===Xa.parent&&dn.end!==Xa.pos&&bi(dn),hs?vt||(vt=Xa):Je=!0,dn=Xa,Pa||(Pt=Xa)}if(Rs(lo)&&S_(lo)&&lo.jsDoc){for(const Ga of lo.jsDoc)if(Ga.tags)for(const hs of Ga.tags)FG(hs)&&(Je=!0)}}if(aa&&Ot(Ba,lo=>{He(lo,w.Multiple_constructor_implementations_are_not_allowed)}),Wo&&Ot(Ba,lo=>{He(o_(lo)||lo,w.Duplicate_function_implementation)}),$s&&!hr&&a.flags&16&&yn){const lo=gi(yn,Xa=>Xa.kind===263).map(Xa=>kc(Xa,w.Consider_adding_a_declare_modifier_to_this_class));Ot(yn,Xa=>{const Go=Xa.kind===263?w.Class_declaration_cannot_implement_overload_list_for_0:Xa.kind===262?w.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Go&&ml(He(o_(Xa)||Xa,Go,mp(a)),...lo)})}if(Pt&&!Pt.body&&!il(Pt,256)&&!Pt.questionToken&&bi(Pt),Je&&(yn&&(b(yn,vt,M,z,Z),C(yn,vt,me,Se)),vt)){const lo=vh(a),Xa=Cv(vt);for(const Go of lo)if(!KWe(Xa,Go)){const Pa=Go.declaration&&Ak(Go.declaration)?Go.declaration.parent.tagName:Go.declaration;ml(He(Pa,w.This_overload_signature_is_not_compatible_with_its_implementation_signature),kc(vt,w.The_implementation_signature_is_declared_here));break}}}function wfe(a){s(()=>hwe(a))}function hwe(a){let _=a.localSymbol;if(!_&&(_=wi(a),!_.exportSymbol)||Vm(_,a.kind)!==a)return;let b=0,C=0,M=0;for(const Je of _.declarations){const vt=Se(Je),Pt=u1e(Je,1025);Pt&1?Pt&1024?M|=vt:b|=vt:C|=vt}const z=b|C,Z=b&C,me=M&z;if(Z||me)for(const Je of _.declarations){const vt=Se(Je),Pt=o_(Je);vt&me?He(Pt,w.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ud(Pt)):vt&Z&&He(Pt,w.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ud(Pt))}function Se(Je){let vt=Je;switch(vt.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Ov(vt)||kR(vt)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Pt=vt,dn=Ly(Pt)?Pt.expression:Pt.right;if(!Uh(dn))return 1;vt=dn;case 271:case 274:case 273:let yn=0;const hr=Xp(wi(vt));return Ot(hr.declarations,bi=>{yn|=Se(bi)}),yn;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return ce.failBadSyntaxKind(vt)}}}function Rfe(a,_,b,...C){const M=Mfe(a,_);return M&&qB(M,_,b,...C)}function Mfe(a,_,b){if(Q_(a))return;const C=a;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(gD(a,CB(!1)))return C.promisedTypeOfPromise=Tm(a)[0];if(Cfe(DE(a),402915324))return;const M=wm(a,"then");if(Q_(M))return;const z=M?Ti(M,0):Zn;if(z.length===0){_&&He(_,w.A_promise_must_have_a_then_method);return}let Z,me;for(const vt of z){const Pt=xC(vt);Pt&&Pt!==Ks&&!Vk(a,Pt,gc)?Z=Pt:me=ur(me,vt)}if(!me){ce.assertIsDefined(Z),b&&(b.value=Z),_&&He(_,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,oa(a),oa(Z));return}const Se=JA(gl(Vn(me,Jk)),2097152);if(Q_(Se))return;const Je=Ti(Se,0);if(Je.length===0){_&&He(_,w.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=gl(Vn(Je,Jk),2)}function Lfe(a,_,b,C,...M){return(_?qB(a,b,C,...M):sL(a,b,C,...M))||_r}function Wnt(a){if(Cfe(DE(a),402915324))return!1;const _=wm(a,"then");return!!_&&Ti(JA(_,2097152),0).length>0}function y5(a){var _;if(a.flags&16777216){const b=TWe(!1);return!!b&&a.aliasSymbol===b&&((_=a.aliasTypeArguments)==null?void 0:_.length)===1}return!1}function Ax(a){return a.flags&1048576?bh(a,Ax):y5(a)?a.aliasTypeArguments[0]:a}function ywe(a){if(Q_(a)||y5(a))return!1;if(nM(a)){const _=Co(a);if(_?_.flags&3||rM(_)||dM(_,Wnt):cy(a,8650752))return!0}return!1}function Ayt(a){const _=TWe(!0);if(_)return Mc(_,[Ax(a)])}function vwe(a){if(ywe(a)){const _=Ayt(a);if(_)return _}return ce.assert(y5(a)||Mfe(a)===void 0,"type provided should not be a non-generic 'promise'-like."),a}function qB(a,_,b,...C){const M=sL(a,_,b,...C);return M&&vwe(M)}function sL(a,_,b,...C){if(Q_(a)||y5(a))return a;const M=a;if(M.awaitedTypeOfType)return M.awaitedTypeOfType;if(a.flags&1048576){if(io.lastIndexOf(a.id)>=0){_&&He(_,w.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const me=_?Je=>sL(Je,_,b,...C):sL;io.push(a.id);const Se=bh(a,me);return io.pop(),M.awaitedTypeOfType=Se}if(ywe(a))return M.awaitedTypeOfType=a;const z={value:void 0},Z=Mfe(a,void 0,z);if(Z){if(a.id===Z.id||io.lastIndexOf(Z.id)>=0){_&&He(_,w.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}io.push(a.id);const me=sL(Z,_,b,...C);return io.pop(),me?M.awaitedTypeOfType=me:void 0}if(Wnt(a)){if(_){ce.assertIsDefined(b);let me;z.value&&(me=Es(me,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,oa(a),oa(z.value))),me=Es(me,b,...C),no.add(RN(ns(_),_,me))}return}return M.awaitedTypeOfType=a}function bwe(a,_,b){const C=wl(_);if(ht>=2){if(je(C))return;const z=CB(!0);if(z!==rd&&!gD(C,z)){M(w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,_,b,oa(sL(C)||Ks));return}}else{if(Bnt(_),je(C))return;const z=iH(_);if(z===void 0){M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oa(C));return}const Z=P_(z,111551,!0),me=Z?Vo(Z):_r;if(je(me)){z.kind===80&&z.escapedText==="Promise"&&UT(C)===CB(!1)?He(b,w.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):M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oE(z));return}const Se=Hmt(!0);if(Se===Yu){M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oE(z));return}const Je=w.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(!JS(me,Se,b,Je,()=>_===b?void 0:Es(void 0,w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Pt=z&&NS(z),dn=Jn(a.locals,Pt.escapedText,111551);if(dn){He(dn.valueDeclaration,w.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,ec(Pt),oE(z));return}}Lfe(C,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function M(z,Z,me,Se){if(Z===me)He(me,z,Se);else{const Je=He(me,w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ml(Je,kc(Z,z,Se))}}}function f1e(a){const _=oN(a);XNe(_,a);const b=j(_);if(b.flags&1)return;const C=Zbe(a);if(!(C!=null&&C.resolvedReturnType))return;let M;const z=C.resolvedReturnType;switch(a.parent.kind){case 263:case 231:M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!_t){M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:M=w.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return ce.failBadSyntaxKind(a.parent)}JS(b,z,a.expression,M)}function Yte(a,_,b,C,M,z=b.length,Z=0){const me=be.createFunctionTypeNode(void 0,Zn,be.createKeywordTypeNode(133));return i2(me,a,_,b,C,M,z,Z)}function Qze(a,_,b,C,M,z,Z){const me=Yte(a,_,b,C,M,z,Z);return WI(me)}function Twe(a){return Qze(void 0,void 0,Zn,a)}function Zze(a){const _=Br("value",a);return Qze(void 0,void 0,[_],Ks)}function Bnt(a){eGe(a&&iH(a),!1)}function eGe(a,_){if(!a)return;const b=NS(a),C=(a.kind===80?788968:1920)|2097152,M=Ro(b,b.escapedText,C,void 0,void 0,!0);if(M&&M.flags&2097152){if(Ur&&i1(M)&&!qk(Xp(M))&&!da(M))t_(M);else if(_&&F0(Le)&&Zp(Le)>=5&&!i1(M)&&!gt(M.declarations,sR)){const z=He(a,w.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),Z=lr(M.declarations||Zn,km);Z&&ml(z,kc(Z,w._0_was_imported_here,ec(b)))}}}function IK(a){const _=tGe(a);_&&Vd(_)&&eGe(_,!0)}function tGe(a){if(a)switch(a.kind){case 193:case 192:return Swe(a.types);case 194:return Swe([a.trueType,a.falseType]);case 196:case 202:return tGe(a.type);case 183:return a.typeName}}function Swe(a){let _;for(let b of a){for(;b.kind===196||b.kind===202;)b=b.type;if(b.kind===146||!Ye&&(b.kind===201&&b.literal.kind===106||b.kind===157))continue;const C=tGe(b);if(!C)return;if(_){if(!An(_)||!An(C)||_.escapedText!==C.escapedText)return}else _=C}return _}function _1e(a){const _=Kb(a);return dP(a)?bde(_):_}function Ofe(a){if(!I3(a)||!Fx(a)||!a.modifiers||!ZD(_t,a,a.parent,a.parent.parent))return;const _=lr(a.modifiers,Qf);if(_){if(_t?(Jy(_,8),a.kind===169&&Jy(_,32)):ht<99&&(Jy(_,8),Kc(a)?a.name?ine(a)&&Jy(_,8388608):Jy(_,8388608):B0(a)||(Gu(a.name)&&(em(a)||Am(a)||rb(a))&&Jy(_,8388608),am(a.name)&&Jy(_,16777216))),Le.emitDecoratorMetadata)switch(Jy(_,16),a.kind){case 263:const b=E2(a);if(b)for(const Z of b.parameters)IK(_1e(Z));break;case 177:case 178:const C=a.kind===177?178:177,M=Vm(wi(a),C);IK(Nh(a)||M&&Nh(M));break;case 174:for(const Z of a.parameters)IK(_1e(Z));IK(bA(a));break;case 172:IK(Kb(a));break;case 169:IK(_1e(a));const z=a.parent;for(const Z of z.parameters)IK(_1e(Z));IK(bA(z));break}for(const b of a.modifiers)Qf(b)&&f1e(b)}}function Cyt(a){s(_);function _(){kK(a),Xk(a),tne(a,a.name)}}function Dyt(a){a.typeExpression||He(a.name,w.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),a.name&&wK(a.name,w.Type_alias_name_cannot_be_0),bp(a.typeExpression),b1e(oR(a))}function Iyt(a){bp(a.constraint);for(const _ of a.typeParameters)bp(_)}function znt(a){bp(a.typeExpression)}function Gnt(a){bp(a.typeExpression);const _=dH(a);if(_){const b=a9(_,CA);if(Nt(b)>1)for(let C=1;C0),b.length>1&&He(b[1],w.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=Ewe(a.class.expression),M=oC(_);if(M){const z=Ewe(M.expression);z&&C.escapedText!==z.escapedText&&He(C,w.JSDoc_0_1_does_not_match_the_extends_2_clause,ec(a.tagName),ec(C),ec(z))}}function d1e(a){const _=P7(a);_&&Mf(_)&&He(a,w.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Ewe(a){switch(a.kind){case 80:return a;case 211:return a.name;default:return}}function kK(a){var _;Ofe(a),Kte(a);const b=L0(a);if(a.name&&a.name.kind===167&&Pw(a.name),GS(a)){const z=wi(a),Z=a.localSymbol||z,me=(_=Z.declarations)==null?void 0:_.find(Se=>Se.kind===a.kind&&!(Se.flags&524288));a===me&&gwe(Z),z.parent&&gwe(z)}const C=a.kind===173?void 0:a.body;if(bp(C),twe(a,se(a)),s(M),Rs(a)){const z=w8(a);z&&z.typeExpression&&!XBe(wl(z.typeExpression),a)&&He(z.typeExpression.type,w.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function M(){bA(a)||(Um(C)&&!Xte(a)&&sM(a,gn),b&1&&wx(C)&&j(Cv(a)))}}function l8(a){s(_);function _(){const b=ns(a);let C=E.get(b.path);C||(C=[],E.set(b.path,C)),C.push(a)}}function iGe(a,_){for(const b of a)switch(b.kind){case 263:case 231:XI(b,_),PK(b,_);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:Qte(b,_);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:b.body&&Qte(b,_),PK(b,_);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:PK(b,_);break;case 195:KB(b,_);break;default:ce.assertNever(b,"Node should not have been registered for unused identifiers check")}}function oGe(a,_,b){const C=o_(a)||a,M=f6(a)?w._0_is_declared_but_never_used:w._0_is_declared_but_its_value_is_never_read;b(a,0,kc(C,M,_))}function Ffe(a){return An(a)&&ec(a).charCodeAt(0)===95}function XI(a,_){for(const b of a.members)switch(b.kind){case 174:case 172:case 177:case 178:if(b.kind===178&&b.symbol.flags&32768)break;const C=wi(b);!C.isReferenced&&(Ab(b,8)||Xv(b)&&Gu(b.name))&&!(b.flags&33554432)&&_(b,0,kc(b.name,w._0_is_declared_but_its_value_is_never_read,Cl(C)));break;case 176:for(const M of b.parameters)!M.symbol.isReferenced&&il(M,8)&&_(M,0,kc(M.name,w.Property_0_is_declared_but_its_value_is_never_read,mp(M.symbol)));break;case 181:case 240:case 175:break;default:ce.fail("Unexpected class member")}}function KB(a,_){const{typeParameter:b}=a;c2(b)&&_(a,1,kc(a,w._0_is_declared_but_its_value_is_never_read,ec(b.name)))}function PK(a,_){const b=wi(a).declarations;if(!b||yl(b)!==a)return;const C=oR(a),M=new Set;for(const z of C){if(!c2(z))continue;const Z=ec(z.name),{parent:me}=z;if(me.kind!==195&&me.typeParameters.every(c2)){if(m2(M,me)){const Se=ns(me),Je=jx(me)?coe(me):loe(Se,me.typeParameters),Pt=me.typeParameters.length===1?[w._0_is_declared_but_its_value_is_never_read,Z]:[w.All_type_parameters_are_unused];_(z,1,Pp(Se,Je.pos,Je.end-Je.pos,...Pt))}}else _(z,1,kc(z,w._0_is_declared_but_its_value_is_never_read,Z))}}function c2(a){return!(wa(a.symbol).isReferenced&262144)&&!Ffe(a.name)}function KA(a,_,b,C){const M=String(C(_)),z=a.get(M);z?z[1].push(b):a.set(M,[_,[b]])}function $k(a){return to(rI(a),Pu)}function Wfe(a){return ym(a)?E1(a.parent)?!!(a.propertyName&&Ffe(a.name)):Ffe(a.name):Ov(a)||(ff(a)&&DS(a.parent.parent)||sGe(a))&&Ffe(a.name)}function Qte(a,_){const b=new Map,C=new Map,M=new Map;a.locals.forEach(z=>{if(!(z.flags&262144?!(z.flags&3&&!(z.isReferenced&3)):z.isReferenced||z.exportSymbol)&&z.declarations){for(const Z of z.declarations)if(!Wfe(Z))if(sGe(Z))KA(b,wyt(Z),Z,Im);else if(ym(Z)&&E1(Z.parent)){const me=yl(Z.parent.elements);(Z===me||!yl(Z.parent.elements).dotDotDotToken)&&KA(C,Z.parent,Z,Im)}else if(ff(Z)){const me=x5(Z)&7,Se=o_(Z);(me!==4&&me!==6||!Se||!Ffe(Se))&&KA(M,Z.parent,Z,Im)}else{const me=z.valueDeclaration&&$k(z.valueDeclaration),Se=z.valueDeclaration&&o_(z.valueDeclaration);me&&Se?!Eb(me,me.parent)&&!oI(me)&&!Ffe(Se)&&(ym(Z)&&vW(Z.parent)?KA(C,Z.parent,Z,Im):_(me,1,kc(Se,w._0_is_declared_but_its_value_is_never_read,mp(z)))):oGe(Z,mp(z),_)}}}),b.forEach(([z,Z])=>{const me=z.parent;if((z.name?1:0)+(z.namedBindings?z.namedBindings.kind===274?1:z.namedBindings.elements.length:0)===Z.length)_(me,0,Z.length===1?kc(me,w._0_is_declared_but_its_value_is_never_read,ec(Dl(Z).name)):kc(me,w.All_imports_in_import_declaration_are_unused));else for(const Je of Z)oGe(Je,ec(Je.name),_)}),C.forEach(([z,Z])=>{const me=$k(z.parent)?1:0;if(z.elements.length===Z.length)Z.length===1&&z.parent.kind===260&&z.parent.parent.kind===261?KA(M,z.parent.parent,z.parent,Im):_(z,me,Z.length===1?kc(z,w._0_is_declared_but_its_value_is_never_read,Zte(Dl(Z).name)):kc(z,w.All_destructured_elements_are_unused));else for(const Se of Z)_(Se,me,kc(Se,w._0_is_declared_but_its_value_is_never_read,Zte(Se.name)))}),M.forEach(([z,Z])=>{if(z.declarations.length===Z.length)_(z,0,Z.length===1?kc(Dl(Z).name,w._0_is_declared_but_its_value_is_never_read,Zte(Dl(Z).name)):kc(z.parent.kind===243?z.parent:z,w.All_variables_are_unused));else for(const me of Z)_(me,0,kc(me,w._0_is_declared_but_its_value_is_never_read,Zte(me.name)))})}function aGe(){var a;for(const _ of Ki)if(!((a=wi(_))!=null&&a.isReferenced)){const b=zX(_);ce.assert(Y8(b),"Only parameter declaration should be checked here");const C=kc(_.name,w._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ud(_.name),Ud(_.propertyName));b.type||ml(C,Pp(ns(b),b.end,1,w.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ud(_.propertyName))),no.add(C)}}function Zte(a){switch(a.kind){case 80:return ec(a);case 207:case 206:return Zte(uc(Dl(a.elements),ym).name);default:return ce.assertNever(a)}}function sGe(a){return a.kind===273||a.kind===276||a.kind===274}function wyt(a){return a.kind===273?a:a.kind===274?a.parent:a.parent.parent}function xwe(a){if(a.kind===241&&hM(a),nde(a)){const _=$;Ot(a.statements,bp),$=_}else Ot(a.statements,bp);a.locals&&l8(a)}function p1e(a){ht>=2||!iie(a)||a.flags&33554432||Um(a.body)||Ot(a.parameters,_=>{_.name&&!ld(_.name)&&_.name.escapedText===Cr.escapedName&&w_("noEmit",_,w.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function ene(a,_,b){if((_==null?void 0:_.escapedText)!==b||a.kind===172||a.kind===171||a.kind===174||a.kind===173||a.kind===177||a.kind===178||a.kind===303||a.flags&33554432||(lC(a)||kh(a)||oS(a))&&sR(a))return!1;const C=rI(a);return!(Pu(C)&&Um(C.parent.body))}function Ryt(a){Kr(a,_=>QB(_)&4?(a.kind!==80?He(o_(a),w.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):He(a,w.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Myt(a){Kr(a,_=>QB(_)&8?(a.kind!==80?He(o_(a),w.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):He(a,w.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Lyt(a,_){if(ke>=5&&!(ke>=100&&ns(a).impliedNodeFormat===1)||!_||!ene(a,_,"require")&&!ene(a,_,"exports")||xp(a)&&kR(a)!==1)return;const b=FA(a);b.kind===312&&h1(b)&&w_("noEmit",_,w.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ud(_),Ud(_))}function Oyt(a,_){if(!_||ht>=4||!ene(a,_,"Promise")||xp(a)&&kR(a)!==1)return;const b=FA(a);b.kind===312&&h1(b)&&b.flags&4096&&w_("noEmit",_,w.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ud(_),Ud(_))}function Fyt(a,_){ht<=8&&(ene(a,_,"WeakMap")||ene(a,_,"WeakSet"))&&Pn.push(a)}function Wyt(a){const _=Bs(a);QB(_)&1048576&&(ce.assert(Xv(a)&&An(a.name)&&typeof a.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),w_("noEmit",a,w.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,a.name.escapedText))}function Byt(a,_){_&&ht>=2&&ht<=8&&ene(a,_,"Reflect")&&Fr.push(a)}function Vnt(a){let _=!1;if(B0(a)){for(const b of a.members)if(QB(b)&2097152){_=!0;break}}else if(Dm(a))QB(a)&2097152&&(_=!0);else{const b=Bs(a);b&&QB(b)&2097152&&(_=!0)}_&&(ce.assert(Xv(a)&&An(a.name),"The target of a Reflect collision check should be an identifier"),w_("noEmit",a,w.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ud(a.name),"Reflect"))}function tne(a,_){_&&(Lyt(a,_),Oyt(a,_),Fyt(a,_),Byt(a,_),Jl(a)?(wK(_,w.Class_name_cannot_be_0),a.flags&33554432||Yyt(_)):Ih(a)&&wK(_,w.Enum_name_cannot_be_0))}function zyt(a){if(x5(a)&7||Y8(a))return;const _=wi(a);if(_.flags&1){if(!An(a.name))return ce.fail();const b=Ro(a,a.name.escapedText,3,void 0,void 0,!1);if(b&&b!==_&&b.flags&2&&PNe(b)&7){const C=e6(b.valueDeclaration,261),M=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(M&&(M.kind===241&&S_(M.parent)||M.kind===268||M.kind===267||M.kind===312))){const Z=Cl(b);He(a,w.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,Z,Z)}}}}function Bfe(a){return a===qr?gn:a===ii?ir:a}function nne(a){var _;if(Ofe(a),ym(a)||bp(a.type),!a.name)return;if(a.name.kind===167&&(Pw(a.name),p7(a)&&a.initializer&&Iv(a.initializer)),ym(a)){if(a.propertyName&&An(a.name)&&Y8(a)&&Um(GE(a).body)){Ki.push(a);return}E1(a.parent)&&a.dotDotDotToken&&ht<5&&Jy(a,4),a.propertyName&&a.propertyName.kind===167&&Pw(a.propertyName);const M=a.parent.parent,z=a.dotDotDotToken?64:0,Z=Vt(M,z),me=a.propertyName||a.name;if(Z&&!ld(me)){const Se=q6(me);if(yv(Se)){const Je=vv(Se),vt=Fn(Z,Je);vt&&(FV(vt,void 0,!1),NNe(a,!!M.initializer&&M.initializer.kind===108,!1,Z,vt))}}}if(ld(a.name)&&(a.name.kind===207&&ht<2&&Le.downlevelIteration&&Jy(a,512),Ot(a.name.elements,bp)),Pu(a)&&a.initializer&&Um(GE(a).body)){He(a,w.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ld(a.name)){if(efe(a))return;const M=p7(a)&&a.initializer&&a.parent.parent.kind!==249,z=!gt(a.name.elements,gN(t0));if(M||z){const Z=rt(a);if(M){const me=Iv(a.initializer);Ye&&z?Ltt(me,a):Y4(me,rt(a),a,a.initializer)}z&&(vW(a.name)?cL(65,Z,Ui,a):Ye&&Ltt(Z,a))}return}const b=wi(a);if(b.flags&2097152&&(pR(a)||UVe(a))){Fwe(a);return}const C=Bfe(Vo(b));if(a===b.valueDeclaration){const M=p7(a)&&j8(a);if(M&&!(Rs(a)&&Wd(M)&&(M.properties.length===0||r6(a.name))&&!!((_=b.exports)!=null&&_.size))&&a.parent.parent.kind!==249){const Z=Iv(M);Y4(Z,C,a,M,void 0);const me=x5(a)&7;if(me===6){const Se=WZe(!0),Je=_te(!0);if(Se!==Yu&&Je!==Yu){const vt=gl([Se,Je,$e,Ui]);JS(Z,vt,M,w.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(me===4){const Se=_te(!0);if(Se!==Yu){const Je=gl([Se,$e,Ui]);JS(Z,Je,M,w.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}b.declarations&&b.declarations.length>1&>(b.declarations,z=>z!==a&&hP(z)&&!Hnt(z,a))&&He(a.name,w.All_declarations_of_0_must_have_identical_modifiers,Ud(a.name))}else{const M=Bfe(rt(a));!je(C)&&!je(M)&&!eN(C,M)&&!(b.flags&67108864)&&Unt(b.valueDeclaration,C,a,M),p7(a)&&a.initializer&&Y4(Iv(a.initializer),M,a,a.initializer,void 0),b.valueDeclaration&&!Hnt(a,b.valueDeclaration)&&He(a.name,w.All_declarations_of_0_must_have_identical_modifiers,Ud(a.name))}a.kind!==172&&a.kind!==171&&(wfe(a),(a.kind===260||a.kind===208)&&zyt(a),tne(a,a.name))}function Unt(a,_,b,C){const M=o_(b),z=b.kind===172||b.kind===171?w.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:w.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Z=Ud(M),me=He(M,z,Z,oa(_),oa(C));a&&ml(me,kc(a,w._0_was_also_declared_here,Z))}function Hnt(a,_){if(a.kind===169&&_.kind===260||a.kind===260&&_.kind===169)return!0;if(cG(a)!==cG(_))return!1;const b=888;return ZC(a,b)===ZC(_,b)}function cGe(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkVariableDeclaration",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath}),b5(a),nne(a),(b=tu)==null||b.pop()}function m1e(a){return r0t(a),nne(a)}function g1e(a){const _=qD(a)&7;(_===4||_===6)&&Jy(a,33554432),Ot(a.declarations,bp)}function h1e(a){!aN(a)&&!dne(a.declarationList)&&o0t(a),g1e(a.declarationList)}function Gyt(a){hM(a),n_(a.expression)}function Awe(a){hM(a);const _=NK(a.expression);Cwe(a.expression,_,a.thenStatement),bp(a.thenStatement),a.thenStatement.kind===242&&He(a.thenStatement,w.The_body_of_an_if_statement_cannot_be_the_empty_statement),bp(a.elseStatement)}function Cwe(a,_,b){if(!Ye)return;C(a,b);function C(z,Z){for(z=_g(z),M(z,Z);ys(z)&&(z.operatorToken.kind===57||z.operatorToken.kind===61);)z=_g(z.left),M(z,Z)}function M(z,Z){const me=IH(z)?_g(z.right):z;if(KC(me))return;if(IH(me)){C(me,Z);return}const Se=me===z?_:NK(me),Je=sa(me)&&awe(me.expression);if(!(bS(Se)&4194304)||Je)return;const vt=Ti(Se,0),Pt=!!Rfe(Se);if(vt.length===0&&!Pt)return;const dn=An(me)?me:sa(me)?me.name:void 0,yn=dn&&CD(dn);if(!yn&&!Pt)return;yn&&ys(z.parent)&&Jnt(z.parent,yn)||yn&&Z&&jyt(z,Z,dn,yn)||(Pt?Mr(me,!0,w.This_condition_will_always_return_true_since_this_0_is_always_defined,a0(Se)):He(me,w.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function jyt(a,_,b,C){return!!B_(_,function M(z){if(An(z)){const Z=CD(z);if(Z&&Z===C){if(An(a)||An(b)&&ys(b.parent))return!0;let me=b.parent,Se=z.parent;for(;me&&Se;){if(An(me)&&An(Se)||me.kind===110&&Se.kind===110)return CD(me)===CD(Se);if(sa(me)&&sa(Se)){if(CD(me.name)!==CD(Se.name))return!1;Se=Se.expression,me=me.expression}else if(el(me)&&el(Se))Se=Se.expression,me=me.expression;else return!1}}}return B_(z,M)})}function Jnt(a,_){for(;ys(a)&&a.operatorToken.kind===56;){if(B_(a.right,function C(M){if(An(M)){const z=CD(M);if(z&&z===_)return!0}return B_(M,C)}))return!0;a=a.parent}return!1}function $nt(a){hM(a),bp(a.statement),NK(a.expression)}function qnt(a){hM(a),NK(a.expression),bp(a.statement)}function lGe(a,_){return a.flags&16384&&He(_,w.An_expression_of_type_void_cannot_be_tested_for_truthiness),a}function NK(a,_){return lGe(n_(a,_),a)}function Knt(a){hM(a)||a.initializer&&a.initializer.kind===261&&dne(a.initializer),a.initializer&&(a.initializer.kind===261?g1e(a.initializer):n_(a.initializer)),a.condition&&NK(a.condition),a.incrementor&&n_(a.incrementor),bp(a.statement),a.locals&&l8(a)}function Vyt(a){zGe(a);const _=Ede(a);if(a.awaitModifier?_&&nu(_)?Po(a.awaitModifier,w.for_await_loops_cannot_be_used_inside_a_class_static_block):(L0(_)&6)===2&&ht<99&&Jy(a,16384):Le.downlevelIteration&&ht<2&&Jy(a,256),a.initializer.kind===261)g1e(a.initializer);else{const b=a.initializer,C=zfe(a);if(b.kind===209||b.kind===210)HB(b,C||_r);else{const M=n_(b);AK(b,w.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&Y4(C,M,b,a.expression)}}bp(a.statement),a.locals&&l8(a)}function uGe(a){zGe(a);const _=Mte(n_(a.expression));if(a.initializer.kind===261){const b=a.initializer.declarations[0];b&&ld(b.name)&&He(b.name,w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),g1e(a.initializer)}else{const b=a.initializer,C=n_(b);b.kind===209||b.kind===210?He(b,w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Mp(Yd(_),C)?AK(b,w.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):He(b,w.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(_===vs||!lh(_,126091264))&&He(a.expression,w.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,oa(_)),bp(a.statement),a.locals&&l8(a)}function zfe(a){const _=a.awaitModifier?15:13;return cL(_,TK(a.expression),Ui,a.expression)}function cL(a,_,b,C){return Q_(_)?_:fGe(a,_,b,C,!0)||gn}function fGe(a,_,b,C,M){const z=(a&2)!==0;if(_===vs){rne(C,_,z);return}const Z=ht>=2,me=!Z&&Le.downlevelIteration,Se=Le.noUncheckedIndexedAccess&&!!(a&128);if(Z||me||z){const hr=Iwe(_,a,Z?C:void 0);if(M&&hr){const bi=a&8?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:a&32?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:a&64?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:a&16?w.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;bi&&JS(b,hr.nextType,C,bi)}if(hr||Z)return Se?Cte(hr&&hr.yieldType):hr&&hr.yieldType}let Je=_,vt=!1,Pt=!1;if(a&4){if(Je.flags&1048576){const hr=_.types,bi=gi(hr,Wo=>!(Wo.flags&402653316));bi!==hr&&(Je=gl(bi,2))}else Je.flags&402653316&&(Je=vs);if(Pt=Je!==_,Pt&&(ht<1&&C&&(He(C,w.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),vt=!0),Je.flags&131072))return Se?Cte(xe):xe}if(!iM(Je)){if(C&&!vt){const hr=!!(a&4)&&!Pt,[bi,Wo]=yn(hr,me);Mr(C,Wo&&!!Rfe(Je),bi,oa(Je))}return Pt?Se?Cte(xe):xe:void 0}const dn=pb(Je,an);if(Pt&&dn)return dn.flags&402653316&&!Le.noUncheckedIndexedAccess?xe:gl(Se?[dn,xe,Ui]:[dn,xe],2);return a&128?Cte(dn):dn;function yn(hr,bi){var Wo;return bi?hr?[w.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[w.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_Ge(a,0,_,void 0)?[w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Dwe((Wo=_.symbol)==null?void 0:Wo.escapedName)?[w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:hr?[w.Type_0_is_not_an_array_type_or_a_string_type,!0]:[w.Type_0_is_not_an_array_type,!0]}}function Dwe(a){switch(a){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 _Ge(a,_,b,C){if(Q_(b))return;const M=Iwe(b,a,C);return M&&M[sme(_)]}function z1(a=vs,_=vs,b=co){if(a.flags&67359327&&_.flags&180227&&b.flags&180227){const C=La([a,_,b]);let M=Zc.get(C);return M||(M={yieldType:a,returnType:_,nextType:b},Zc.set(C,M)),M}return{yieldType:a,returnType:_,nextType:b}}function dGe(a){let _,b,C;for(const M of a)if(!(M===void 0||M===ka)){if(M===bc)return bc;_=ur(_,M.yieldType),b=ur(b,M.returnType),C=ur(C,M.nextType)}return _||b||C?z1(_&&gl(_),b&&gl(b),C&&Dd(C)):ka}function VV(a,_){return a[_]}function Nw(a,_,b){return a[_]=b}function Iwe(a,_,b){var C,M;if(Q_(a))return bc;if(!(a.flags&1048576)){const Je=b?{errors:void 0}:void 0,vt=Xnt(a,_,b,Je);if(vt===ka){if(b){const Pt=rne(b,a,!!(_&2));Je!=null&&Je.errors&&ml(Pt,...Je.errors)}return}else if((C=Je==null?void 0:Je.errors)!=null&&C.length)for(const Pt of Je.errors)no.add(Pt);return vt}const z=_&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",Z=VV(a,z);if(Z)return Z===ka?void 0:Z;let me;for(const Je of a.types){const vt=b?{errors:void 0}:void 0,Pt=Xnt(Je,_,b,vt);if(Pt===ka){if(b){const dn=rne(b,a,!!(_&2));vt!=null&&vt.errors&&ml(dn,...vt.errors)}Nw(a,z,ka);return}else if((M=vt==null?void 0:vt.errors)!=null&&M.length)for(const dn of vt.errors)no.add(dn);me=ur(me,Pt)}const Se=me?dGe(me):ka;return Nw(a,z,Se),Se===ka?void 0:Se}function pGe(a,_){if(a===ka)return ka;if(a===bc)return bc;const{yieldType:b,returnType:C,nextType:M}=a;return _&&TWe(!0),z1(qB(b,_)||gn,qB(C,_)||gn,M)}function Xnt(a,_,b,C){if(Q_(a))return bc;let M=!1;if(_&2){const z=kwe(a,Xm)||Qnt(a,Xm);if(z)if(z===ka&&b)M=!0;else return _&8?pGe(z,b):z}if(_&1){let z=kwe(a,Lg)||Qnt(a,Lg);if(z)if(z===ka&&b)M=!0;else if(_&2){if(z!==ka)return z=pGe(z,b),M?z:Nw(a,"iterationTypesOfAsyncIterable",z)}else return z}if(_&2){const z=y1e(a,Xm,b,C,M);if(z!==ka)return z}if(_&1){let z=y1e(a,Lg,b,C,M);if(z!==ka)return _&2?(z=pGe(z,b),M?z:Nw(a,"iterationTypesOfAsyncIterable",z)):z}return ka}function kwe(a,_){return VV(a,_.iterableCacheKey)}function Ynt(a,_){const b=kwe(a,_)||y1e(a,_,void 0,void 0,!1);return b===ka?yu:b}function Qnt(a,_){let b;if(gD(a,b=_.getGlobalIterableType(!1))||gD(a,b=_.getGlobalIterableIteratorType(!1))){const[C]=Tm(a),{returnType:M,nextType:z}=Ynt(b,_);return Nw(a,_.iterableCacheKey,z1(_.resolveIterationType(C,void 0)||C,_.resolveIterationType(M,void 0)||M,z))}if(gD(a,_.getGlobalGeneratorType(!1))){const[C,M,z]=Tm(a);return Nw(a,_.iterableCacheKey,z1(_.resolveIterationType(C,void 0)||C,_.resolveIterationType(M,void 0)||M,z))}}function Uyt(a){const _=yWe(!1),b=_&&wm(Vo(_),ty(a));return b&&yv(b)?vv(b):`__@${a}`}function y1e(a,_,b,C,M){const z=Fn(a,Uyt(_.iteratorSymbolName)),Z=z&&!(z.flags&16777216)?Vo(z):void 0;if(Q_(Z))return M?bc:Nw(a,_.iterableCacheKey,bc);const me=Z?Ti(Z,0):void 0;if(!gt(me))return M?ka:Nw(a,_.iterableCacheKey,ka);const Se=Dd(Vn(me,j)),Je=zb(Se,_,b,C,M)??ka;return M?Je:Nw(a,_.iterableCacheKey,Je)}function rne(a,_,b){const C=b?w.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:w.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,M=!!Rfe(_)||!b&&Moe(a.parent)&&a.parent.expression===a&&pPe(!1)!==rd&&Mp(_,pPe(!1));return Mr(a,M,C,oa(_))}function Sy(a,_,b,C){return zb(a,_,b,C,!1)}function zb(a,_,b,C,M){if(Q_(a))return bc;let z=Gfe(a,_)||Pwe(a,_);return z===ka&&b&&(z=void 0,M=!0),z??(z=Znt(a,_,b,C,M)),z===ka?void 0:z}function Gfe(a,_){return VV(a,_.iteratorCacheKey)}function Pwe(a,_){const b=_.getGlobalIterableIteratorType(!1);if(gD(a,b)){const[C]=Tm(a),M=Gfe(b,_)||Znt(b,_,void 0,void 0,!1),{returnType:z,nextType:Z}=M===ka?yu:M;return Nw(a,_.iteratorCacheKey,z1(C,z,Z))}if(gD(a,_.getGlobalIteratorType(!1))||gD(a,_.getGlobalGeneratorType(!1))){const[C,M,z]=Tm(a);return Nw(a,_.iteratorCacheKey,z1(C,M,z))}}function Nwe(a,_){const b=wm(a,"done")||rr;return Mp(_===0?rr:Ji,b)}function mGe(a){return Nwe(a,0)}function Hyt(a){return Nwe(a,1)}function Jyt(a){if(Q_(a))return bc;const _=VV(a,"iterationTypesOfIteratorResult");if(_)return _;if(gD(a,$mt(!1))){const Z=Tm(a)[0];return Nw(a,"iterationTypesOfIteratorResult",z1(Z,void 0,void 0))}if(gD(a,vw(!1))){const Z=Tm(a)[0];return Nw(a,"iterationTypesOfIteratorResult",z1(void 0,Z,void 0))}const b=D0(a,mGe),C=b!==vs?wm(b,"value"):void 0,M=D0(a,Hyt),z=M!==vs?wm(M,"value"):void 0;return!C&&!z?Nw(a,"iterationTypesOfIteratorResult",ka):Nw(a,"iterationTypesOfIteratorResult",z1(C,z||Ks,void 0))}function gGe(a,_,b,C,M){var z,Z,me,Se;const Je=Fn(a,b);if(!Je&&b!=="next")return;const vt=Je&&!(b==="next"&&Je.flags&16777216)?b==="next"?Vo(Je):JA(Vo(Je),2097152):void 0;if(Q_(vt))return b==="next"?bc:gu;const Pt=vt?Ti(vt,0):Zn;if(Pt.length===0){if(C){const lo=b==="next"?_.mustHaveANextMethodDiagnostic:_.mustBeAMethodDiagnostic;M?(M.errors??(M.errors=[]),M.errors.push(kc(C,lo,b))):He(C,lo,b)}return b==="next"?ka:void 0}if(vt!=null&&vt.symbol&&Pt.length===1){const lo=_.getGlobalGeneratorType(!1),Xa=_.getGlobalIteratorType(!1),Go=((Z=(z=lo.symbol)==null?void 0:z.members)==null?void 0:Z.get(b))===vt.symbol,Pa=!Go&&((Se=(me=Xa.symbol)==null?void 0:me.members)==null?void 0:Se.get(b))===vt.symbol;if(Go||Pa){const Ga=Go?lo:Xa,{mapper:hs}=vt;return z1(q4(Ga.typeParameters[0],hs),q4(Ga.typeParameters[1],hs),b==="next"?q4(Ga.typeParameters[2],hs):void 0)}}let dn,yn;for(const lo of Pt)b!=="throw"&>(lo.parameters)&&(dn=ur(dn,$I(lo,0))),yn=ur(yn,j(lo));let hr,bi;if(b!=="throw"){const lo=dn?gl(dn):co;if(b==="next")bi=lo;else if(b==="return"){const Xa=_.resolveIterationType(lo,C)||gn;hr=ur(hr,Xa)}}let Wo;const aa=yn?Dd(yn):vs,$s=_.resolveIterationType(aa,C)||gn,Ba=Jyt($s);return Ba===ka?(C&&(M?(M.errors??(M.errors=[]),M.errors.push(kc(C,_.mustHaveAValueDiagnostic,b))):He(C,_.mustHaveAValueDiagnostic,b)),Wo=gn,hr=ur(hr,gn)):(Wo=Ba.yieldType,hr=ur(hr,Ba.returnType)),z1(Wo,gl(hr),bi)}function Znt(a,_,b,C,M){const z=dGe([gGe(a,_,"next",b,C),gGe(a,_,"return",b,C),gGe(a,_,"throw",b,C)]);return M?z:Nw(a,_.iteratorCacheKey,z)}function MO(a,_,b){if(Q_(_))return;const C=ert(_,b);return C&&C[sme(a)]}function ert(a,_){if(Q_(a))return bc;const b=_?2:1,C=_?Xm:Lg;return Iwe(a,b,void 0)||Sy(a,C,void 0,void 0)}function trt(a){hM(a)||Brt(a)}function lL(a,_){const b=!!(_&1),C=!!(_&2);if(b){const M=MO(1,a,C);return M?C?sL(Ax(M)):M:_r}return C?sL(a)||_r:a}function nrt(a,_){const b=lL(_,L0(a));return!!(b&&(cy(b,16384)||b.flags&32769))}function v1e(a){if(hM(a))return;const _=Ede(a);if(_&&nu(_)){c1(a,w.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!_){c1(a,w.A_return_statement_can_only_be_used_within_a_function_body);return}const b=Cv(_),C=j(b),M=L0(_);if(Ye||a.expression||C.flags&131072){const z=a.expression?Iv(a.expression):Ui;if(_.kind===178)a.expression&&He(a,w.Setters_cannot_return_a_value);else if(_.kind===176)a.expression&&!Y4(z,C,a,a.expression)&&He(a,w.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(se(_)){const Z=lL(C,M)??C,me=M&2?Lfe(z,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):z;Z&&Y4(me,Z,a,a.expression)}}else _.kind!==176&&Le.noImplicitReturns&&!nrt(_,C)&&He(a,w.Not_all_code_paths_return_a_value)}function hGe(a){hM(a)||a.flags&65536&&c1(a,w.with_statements_are_not_allowed_in_an_async_function_block),n_(a.expression);const _=ns(a);if(!T5(_)){const b=nC(_,a.pos).start,C=a.statement.pos;S5(_,b,C-b,w.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function $yt(a){hM(a);let _,b=!1;const C=n_(a.expression);Ot(a.caseBlock.clauses,M=>{M.kind===297&&!b&&(_===void 0?_=M:(Po(M,w.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),b=!0)),M.kind===296&&s(z(M)),Ot(M.statements,bp),Le.noFallthroughCasesInSwitch&&M.fallthroughFlowNode&&Ibe(M.fallthroughFlowNode)&&He(M,w.Fallthrough_case_in_switch);function z(Z){return()=>{const me=n_(Z.expression);i1e(C,me)||LPe(me,C,Z.expression,void 0)}}}),a.caseBlock.locals&&l8(a.caseBlock)}function qyt(a){hM(a)||Kr(a.parent,_=>S_(_)?"quit":_.kind===256&&_.label.escapedText===a.label.escapedText?(Po(a.label,w.Duplicate_label_0,Yv(a.label)),!0):!1),bp(a.statement)}function Kyt(a){hM(a)||An(a.expression)&&!a.expression.escapedText&&Urt(a,w.Line_break_not_permitted_here),a.expression&&n_(a.expression)}function rrt(a){hM(a),xwe(a.tryBlock);const _=a.catchClause;if(_){if(_.variableDeclaration){const b=_.variableDeclaration;nne(b);const C=Kb(b);if(C){const M=wl(C);M&&!(M.flags&3)&&c1(C,w.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(b.initializer)c1(b.initializer,w.Catch_clause_variable_cannot_have_an_initializer);else{const M=_.block.locals;M&&WL(_.locals,z=>{const Z=M.get(z);Z!=null&&Z.valueDeclaration&&Z.flags&2&&Po(Z.valueDeclaration,w.Cannot_redeclare_identifier_0_in_catch_clause,lf(z))})}}xwe(_.block)}a.finallyBlock&&xwe(a.finallyBlock)}function wwe(a,_,b){const C=T_(a);if(C.length===0)return;for(const z of O2(a))b&&z.flags&4194304||irt(a,z,pte(z,8576,!0),WA(z));const M=_.valueDeclaration;if(M&&Jl(M)){for(const z of M.members)if(!e_(z)&&!GS(z)){const Z=wi(z);irt(a,Z,yT(z.name.expression),WA(Z))}}if(C.length>1)for(const z of C)Xyt(a,z)}function irt(a,_,b,C){const M=_.valueDeclaration,z=o_(M);if(z&&Gu(z))return;const Z=zA(a,b),me=ji(a)&2?Vm(a.symbol,264):void 0,Se=M&&M.kind===226||z&&z.kind===167?M:void 0,Je=Uf(_)===a.symbol?M:void 0;for(const vt of Z){const Pt=vt.declaration&&Uf(wi(vt.declaration))===a.symbol?vt.declaration:void 0,dn=Je||Pt||(me&&!gt(Gp(a),yn=>!!o2(yn,_.escapedName)&&!!pb(yn,vt.keyType))?me:void 0);if(dn&&!Mp(C,vt.type)){const yn=Eu(dn,w.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Cl(_),oa(C),oa(vt.keyType),oa(vt.type));Se&&dn!==Se&&ml(yn,kc(Se,w._0_is_declared_here,Cl(_))),no.add(yn)}}}function Xyt(a,_){const b=_.declaration,C=zA(a,_.keyType),M=ji(a)&2?Vm(a.symbol,264):void 0,z=b&&Uf(wi(b))===a.symbol?b:void 0;for(const Z of C){if(Z===_)continue;const me=Z.declaration&&Uf(wi(Z.declaration))===a.symbol?Z.declaration:void 0,Se=z||me||(M&&!gt(Gp(a),Je=>!!Cd(Je,_.keyType)&&!!pb(Je,Z.keyType))?M:void 0);Se&&!Mp(_.type,Z.type)&&He(Se,w._0_index_type_1_is_not_assignable_to_2_index_type_3,oa(_.keyType),oa(_.type),oa(Z.keyType),oa(Z.type))}}function wK(a,_){switch(a.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":He(a,_,a.escapedText)}}function Yyt(a){ht>=1&&a.escapedText==="Object"&&(ke<5||ns(a).impliedNodeFormat===1)&&He(a,w.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Mz[ke])}function Qyt(a){const _=gi(EN(a),AA);if(!Nt(_))return;const b=Rs(a),C=new Set,M=new Set;if(Ot(a.parameters,({name:Z},me)=>{An(Z)&&C.add(Z.escapedText),ld(Z)&&M.add(me)}),Up(a)){const Z=_.length-1,me=_[Z];b&&me&&An(me.name)&&me.typeExpression&&me.typeExpression.type&&!C.has(me.name.escapedText)&&!M.has(Z)&&!UA(wl(me.typeExpression.type))&&He(me.name,w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,ec(me.name))}else Ot(_,({name:Z,isNameFirst:me},Se)=>{M.has(Se)||An(Z)&&C.has(Z.escapedText)||(nT(Z)?b&&He(Z,w.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,oE(Z),oE(Z.left)):me||dr(b,Z,w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,ec(Z)))})}function b1e(a){let _=!1;if(a)for(let C=0;C{C.default?(_=!0,RK(C.default,a,M)):_&&He(C,w.Required_type_parameters_may_not_follow_optional_type_parameters);for(let z=0;zC)return!1;for(let Se=0;SeNy(b)&&Mf(b))&&Po(_,w.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!a.name&&!il(a,1024)&&c1(a,w.A_class_declaration_without_the_default_modifier_must_have_a_name),MK(a),Ot(a.members,bp),l8(a)}function MK(a){fne(a),Ofe(a),tne(a,a.name),b1e(oR(a)),wfe(a);const _=wi(a),b=Rm(_),C=M1(b),M=Vo(_);kv(_),gwe(_),fyt(a),!!(a.flags&33554432)||Int(a);const Z=hA(a);if(Z){Ot(Z.typeArguments,bp),ht<2&&Jy(Z.parent,1);const Je=oC(a);Je&&Je!==Z&&n_(Je.expression);const vt=Gp(b);vt.length&&s(()=>{const Pt=vt[0],dn=Nl(b),yn=O1(dn);if(LK(yn,Z),bp(Z.expression),gt(Z.typeArguments)){Ot(Z.typeArguments,bp);for(const bi of Ys(yn,Z.typeArguments,Z))if(!Nfe(Z,bi.typeParameters))break}const hr=M1(Pt,b.thisType);if(JS(C,hr,void 0)?JS(M,yet(yn),a.name||a,w.Class_static_side_0_incorrectly_extends_base_class_static_side_1):SGe(a,C,hr,w.Class_0_incorrectly_extends_base_class_1),dn.flags&8650752&&(gf(M)?Ti(dn,1).some(Wo=>Wo.flags&4)&&!il(a,256)&&He(a.name||a,w.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):He(a.name||a,w.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(yn.symbol&&yn.symbol.flags&32)&&!(dn.flags&8650752)){const bi=Ni(yn,Z.typeArguments,Z);Ot(bi,Wo=>!JI(Wo.declaration)&&!eN(j(Wo),Pt))&&He(Z.expression,w.Base_constructors_must_all_have_the_same_return_type)}nvt(b,Pt)})}ort(a,b,C,M);const me=qb(a);if(me)for(const Je of me)(!Uh(Je.expression)||ky(Je.expression))&&He(Je.expression,w.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Xze(Je),s(Se(Je));s(()=>{wwe(b,_),wwe(M,_,!0),dwe(a),ivt(a)});function Se(Je){return()=>{const vt=HT(wl(Je));if(!je(vt))if(R1(vt)){const Pt=vt.symbol&&vt.symbol.flags&32?w.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:w.Class_0_incorrectly_implements_interface_1,dn=M1(vt,b.thisType);JS(C,dn,void 0)||SGe(a,C,dn,Pt)}else He(Je,w.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function ort(a,_,b,C){const z=hA(a)&&Gp(_),Z=z!=null&&z.length?M1(Dl(z),_.thisType):void 0,me=Nl(_);for(const Se of a.members)Ode(Se)||(pg(Se)&&Ot(Se.parameters,Je=>{Eb(Je,Se)&&bGe(a,C,me,Z,_,b,Je,!0)}),bGe(a,C,me,Z,_,b,Se,!1))}function bGe(a,_,b,C,M,z,Z,me,Se=!0){const Je=Z.name&&CD(Z.name)||CD(Z);return Je?TGe(a,_,b,C,M,z,X2(Z),fk(Z),e_(Z),me,mp(Je),Se?Z:void 0):0}function TGe(a,_,b,C,M,z,Z,me,Se,Je,vt,Pt){const dn=Rs(a),yn=!!(a.flags&33554432);if(C&&(Z||Le.noImplicitOverride)){const hr=ty(vt),bi=Se?_:z,Wo=Se?b:C,aa=Fn(bi,hr),$s=Fn(Wo,hr),Ba=oa(C);if(aa&&!$s&&Z){if(Pt){const lo=MNe(vt,Wo);lo?He(Pt,dn?w.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:w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Ba,Cl(lo)):He(Pt,dn?w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Ba)}return 2}else if(aa&&($s!=null&&$s.declarations)&&Le.noImplicitOverride&&!yn){const lo=gt($s.declarations,fk);if(Z)return 0;if(lo){if(me&&lo)return Pt&&He(Pt,w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Ba),1}else{if(Pt){const Xa=Je?dn?w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:dn?w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;He(Pt,Xa,Ba)}return 1}}}else if(Z){if(Pt){const hr=oa(M);He(Pt,dn?w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,hr)}return 2}return 0}function SGe(a,_,b,C){let M=!1;for(const z of a.members){if(e_(z))continue;const Z=z.name&&CD(z.name)||CD(z);if(Z){const me=Fn(_,Z.escapedName),Se=Fn(b,Z.escapedName);if(me&&Se){const Je=()=>Es(void 0,w.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Cl(Z),oa(_),oa(b));JS(Vo(me),Vo(Se),z.name||z,void 0,Je)||(M=!0)}}}M||JS(_,b,a.name||a,C)}function LK(a,_){const b=Ti(a,1);if(b.length){const C=b[0].declaration;if(C&&Ab(C,8)){const M=RS(a.symbol);qfe(_,M)||He(_,w.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Dg(a.symbol))}}}function evt(a,_,b){if(!_.name)return 0;const C=wi(a),M=Rm(C),z=M1(M),Z=Vo(C),Se=hA(a)&&Gp(M),Je=Se!=null&&Se.length?M1(Dl(Se),M.thisType):void 0,vt=Nl(M),Pt=_.parent?X2(_):il(_,16384);return TGe(a,Z,vt,Je,M,z,Pt,fk(_),e_(_),!1,mp(b))}function OK(a){return I_(a)&1?a.links.target:a}function tvt(a){return gi(a.declarations,_=>_.kind===263||_.kind===264)}function nvt(a,_){var b,C,M,z;const Z=Vp(_);let me;e:for(const Se of Z){const Je=OK(Se);if(Je.flags&4194304)continue;const vt=o2(a,Je.escapedName);if(!vt)continue;const Pt=OK(vt),dn=Vy(Je);if(ce.assert(!!Pt,"derived should point to something, even if it is the base class' declaration."),Pt===Je){const yn=RS(a.symbol);if(dn&256&&(!yn||!il(yn,256))){for(const hr of Gp(a)){if(hr===_)continue;const bi=o2(hr,Je.escapedName),Wo=bi&&OK(bi);if(Wo&&Wo!==Je)continue e}me||(me=He(yn,w.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,oa(a),oa(_))),yn.kind===231?ml(me,kc(Se.valueDeclaration??(Se.declarations&&Dl(Se.declarations))??yn,w.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Cl(Se),oa(_))):ml(me,kc(Se.valueDeclaration??(Se.declarations&&Dl(Se.declarations))??yn,w.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,oa(a),Cl(Se),oa(_)))}}else{const yn=Vy(Pt);if(dn&8||yn&8)continue;let hr;const bi=Je.flags&98308,Wo=Pt.flags&98308;if(bi&&Wo){if((I_(Je)&6?(b=Je.declarations)!=null&&b.some(Ba=>Mwe(Ba,dn)):(C=Je.declarations)!=null&&C.every(Ba=>Mwe(Ba,dn)))||I_(Je)&262144||Pt.valueDeclaration&&ys(Pt.valueDeclaration))continue;const aa=bi!==4&&Wo===4;if(aa||bi===4&&Wo!==4){const Ba=aa?w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,Ba,Cl(Je),oa(_),oa(a))}else if(Dt){const Ba=(M=Pt.declarations)==null?void 0:M.find(lo=>lo.kind===172&&!lo.initializer);if(Ba&&!(Pt.flags&33554432)&&!(dn&256)&&!(yn&256)&&!((z=Pt.declarations)!=null&&z.some(lo=>!!(lo.flags&33554432)))){const lo=n2(RS(a.symbol)),Xa=Ba.name;if(Ba.exclamationToken||!lo||!An(Xa)||!Ye||!jfe(Xa,a,lo)){const Go=w.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;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,Go,Cl(Je),oa(_))}}}continue}else if(bK(Je)){if(bK(Pt)||Pt.flags&4)continue;ce.assert(!!(Pt.flags&98304)),hr=w.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Je.flags&98304?hr=w.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:hr=w.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,hr,oa(_),Cl(Je),oa(a))}}}function Mwe(a,_){return _&256&&(!Os(a)||!a.initializer)||Kp(a.parent)}function rvt(a,_,b){if(!Nt(_))return b;const C=new Map;Ot(b,M=>{C.set(M.escapedName,M)});for(const M of _){const z=Vp(M1(M,a.thisType));for(const Z of z){const me=C.get(Z.escapedName);me&&Z.parent===me.parent&&C.delete(Z.escapedName)}}return oc(C.values())}function art(a,_){const b=Gp(a);if(b.length<2)return!0;const C=new Map;Ot(V6(a).declaredProperties,z=>{C.set(z.escapedName,{prop:z,containingType:a})});let M=!0;for(const z of b){const Z=Vp(M1(z,a.thisType));for(const me of Z){const Se=C.get(me.escapedName);if(!Se)C.set(me.escapedName,{prop:me,containingType:z});else if(Se.containingType!==a&&!Met(Se.prop,me)){M=!1;const vt=oa(Se.containingType),Pt=oa(z);let dn=Es(void 0,w.Named_property_0_of_types_1_and_2_are_not_identical,Cl(me),vt,Pt);dn=Es(dn,w.Interface_0_cannot_simultaneously_extend_types_1_and_2,oa(a),vt,Pt),no.add(RN(ns(_),_,dn))}}}return M}function ivt(a){if(!Ye||!zt||a.flags&33554432)return;const _=n2(a);for(const b of a.members)if(!(tS(b)&2)&&!e_(b)&&s1(b)){const C=b.name;if(An(C)||Gu(C)||am(C)){const M=Vo(wi(b));M.flags&3||kV(M)||(!_||!jfe(C,M,_))&&He(b.name,w.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ud(C))}}}function s1(a){return a.kind===172&&!fk(a)&&!a.exclamationToken&&!a.initializer}function EGe(a,_,b,C,M){for(const z of b)if(z.pos>=C&&z.pos<=M){const Z=be.createPropertyAccessExpression(be.createThis(),a);kl(Z.expression,Z),kl(Z,z),Z.flowNode=z.returnFlowNode;const me=n8(Z,_,eL(_));if(!kV(me))return!0}return!1}function jfe(a,_,b){const C=am(a)?be.createElementAccessExpression(be.createThis(),a.expression):be.createPropertyAccessExpression(be.createThis(),a);kl(C.expression,C),kl(C,b),C.flowNode=b.returnFlowNode;const M=n8(C,_,eL(_));return!kV(M)}function Bf(a){aN(a)||Rrt(a),b1e(a.typeParameters),s(()=>{wK(a.name,w.Interface_name_cannot_be_0),wfe(a);const _=wi(a);kv(_);const b=Vm(_,264);if(a===b){const C=Rm(_),M=M1(C);if(art(C,a.name)){for(const z of Gp(C))JS(M,M1(z,C.thisType),a.name,w.Interface_0_incorrectly_extends_interface_1);wwe(C,_)}}_we(a)}),Ot(F9(a),_=>{(!Uh(_.expression)||ky(_.expression))&&He(_.expression,w.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Xze(_)}),Ot(a.members,bp),s(()=>{dwe(a),l8(a)})}function ovt(a){aN(a),wK(a.name,w.Type_alias_name_cannot_be_0),wfe(a),b1e(a.typeParameters),a.type.kind===141?(!aj.has(a.name.escapedText)||Nt(a.typeParameters)!==1)&&He(a.type,w.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(bp(a.type),l8(a))}function srt(a){const _=ge(a);if(!(_.flags&1024)){_.flags|=1024;let b=0;for(const C of a.members){const M=avt(C,b);ge(C).enumMemberValue=M,b=typeof M=="number"?M+1:void 0}}}function avt(a,_){if(b9(a.name))He(a.name,w.Computed_property_names_are_not_allowed_in_enums);else{const b=g7(a.name);FT(b)&&!d3(b)&&He(a.name,w.An_enum_member_cannot_have_a_numeric_name)}if(a.initializer)return crt(a);if(!(a.parent.flags&33554432&&!gP(a.parent))){if(_!==void 0)return _;He(a.name,w.Enum_member_must_have_initializer)}}function crt(a){const _=gP(a.parent),b=a.initializer,C=ane(b,a);return C!==void 0?_&&typeof C=="number"&&!isFinite(C)&&He(b,isNaN(C)?w.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:w.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):_?He(b,w.const_enum_member_initializers_must_be_constant_expressions):a.parent.flags&33554432?He(b,w.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):JS(n_(b),an,b,w.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function ane(a,_){switch(a.kind){case 224:const b=ane(a.operand,_);if(typeof b=="number")switch(a.operator){case 40:return b;case 41:return-b;case 55:return~b}break;case 226:const C=ane(a.left,_),M=ane(a.right,_);if(typeof C=="number"&&typeof M=="number")switch(a.operatorToken.kind){case 52:return C|M;case 51:return C&M;case 49:return C>>M;case 50:return C>>>M;case 48:return C<urt(a))}function urt(a){aN(a),tne(a,a.name),wfe(a),a.members.forEach(Vfe),srt(a);const _=wi(a),b=Vm(_,a.kind);if(a===b){if(_.declarations&&_.declarations.length>1){const M=gP(a);Ot(_.declarations,z=>{Ih(z)&&gP(z)!==M&&He(o_(z),w.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;Ot(_.declarations,M=>{if(M.kind!==266)return!1;const z=M;if(!z.members.length)return!1;const Z=z.members[0];Z.initializer||(C?He(Z.name,w.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function Vfe(a){Gu(a.name)&&He(a,w.An_enum_member_cannot_be_named_with_a_private_identifier),a.initializer&&n_(a.initializer)}function AGe(a){const _=a.declarations;if(_){for(const b of _)if((b.kind===263||b.kind===262&&wx(b.body))&&!(b.flags&33554432))return b}}function cvt(a,_){const b=Bs(a),C=Bs(_);return mn(b)?mn(C):mn(C)?!1:b===C}function lvt(a){a.body&&(bp(a.body),$C(a)||l8(a)),s(_);function _(){var b,C;const M=$C(a),z=a.flags&33554432;M&&!z&&He(a.name,w.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const Z=Ov(a),me=Z?w.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:w.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(T1e(a,me))return;aN(a)||!z&&a.name.kind===11&&Po(a.name,w.Only_ambient_modules_can_use_quoted_names),An(a.name)&&tne(a,a.name),wfe(a);const Se=wi(a);if(Se.flags&512&&!z&&u4(a,gk(Le))){if(F0(Le)&&!ns(a).externalModuleIndicator&&He(a.name,w.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,Gn),((b=Se.declarations)==null?void 0:b.length)>1){const Je=AGe(Se);Je&&(ns(a)!==ns(Je)?He(a.name,w.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):a.posvt.kind===95);Je&&He(Je,w.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(Z)if(BL(a)){if((M||wi(a).flags&33554432)&&a.body)for(const vt of a.body.statements)Lwe(vt,M)}else mn(a.parent)?M?He(a.name,w.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):tb(aC(a.name))&&He(a.name,w.Ambient_module_declaration_cannot_specify_relative_module_name):M?He(a.name,w.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):He(a.name,w.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Lwe(a,_){switch(a.kind){case 243:for(const C of a.declarationList.declarations)Lwe(C,_);break;case 277:case 278:c1(a,w.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:c1(a,w.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const b=a.name;if(ld(b)){for(const C of b.elements)Lwe(C,_);break}case 263:case 266:case 262:case 264:case 267:case 265:if(_)return;break}}function CGe(a){switch(a.kind){case 80:return a;case 166:do a=a.left;while(a.kind!==80);return a;case 211:do{if(KC(a.expression)&&!Gu(a.name))return a.name;a=a.expression}while(a.kind!==80);return a}}function Owe(a){const _=pY(a);if(!_||Um(_))return!1;if(!Wp(_))return He(_,w.String_literal_expected),!1;const b=a.parent.kind===268&&Ov(a.parent.parent);if(a.parent.kind!==312&&!b)return He(_,a.kind===278?w.Export_declarations_are_not_permitted_in_a_namespace:w.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(b&&tb(_.text)&&!vC(a))return He(a,w.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!kh(a)&&a.assertClause){let C=!1;for(const M of a.assertClause.elements)Wp(M.value)||(C=!0,He(M.value,w.Import_assertion_values_must_be_string_literal_expressions));return!C}return!0}function Fwe(a){var _,b,C,M;let z=wi(a);const Z=Xp(z);if(Z!==Ir){if(z=wa(z.exportSymbol||z),Rs(a)&&!(Z.flags&111551)&&!sR(a)){const Je=l9(a)?a.propertyName||a.name:Xv(a)?a.name:a;if(ce.assert(a.kind!==280),a.kind===281){const vt=He(Je,w.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Pt=(b=(_=ns(a).symbol)==null?void 0:_.exports)==null?void 0:b.get((a.propertyName||a.name).escapedText);if(Pt===Z){const dn=(C=Pt.declarations)==null?void 0:C.find(UC);dn&&ml(vt,kc(dn,w._0_is_automatically_exported_here,lf(Pt.escapedName)))}}else{ce.assert(a.kind!==260);const vt=Kr(a,dA(Fv,kh)),Pt=(vt&&((M=UL(vt))==null?void 0:M.text))??"...",dn=lf(An(Je)?Je.escapedText:z.escapedName);He(Je,w._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,dn,`import("${Pt}").${dn}`)}return}const me=sg(Z),Se=(z.flags&1160127?111551:0)|(z.flags&788968?788968:0)|(z.flags&1920?1920:0);if(me&Se){const Je=a.kind===281?w.Export_declaration_conflicts_with_exported_declaration_of_0:w.Import_declaration_conflicts_with_local_declaration_of_0;He(a,Je,Cl(z))}if(F0(Le)&&!sR(a)&&!(a.flags&33554432)){const Je=da(z),vt=!(me&111551);if(vt||Je)switch(a.kind){case 273:case 276:case 271:{if(Le.preserveValueImports||Le.verbatimModuleSyntax){ce.assertIsDefined(a.name,"An ImportClause with a symbol should have a name");const Pt=Le.verbatimModuleSyntax&&y1(a)?w.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:vt?Le.verbatimModuleSyntax?w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Le.verbatimModuleSyntax?w._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:w._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,dn=ec(a.kind===276&&a.propertyName||a.name);Cc(He(a,Pt,dn),vt?void 0:Je,dn)}vt&&a.kind===271&&Ab(a,1)&&He(a,w.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Gn);break}case 281:if(Le.verbatimModuleSyntax||ns(Je)!==ns(a)){const Pt=ec(a.propertyName||a.name),dn=vt?He(a,w.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Gn):He(a,w._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Pt,Gn);Cc(dn,vt?void 0:Je,Pt);break}}Le.verbatimModuleSyntax&&a.kind!==271&&!Rs(a)&&(ke===1||ns(a).impliedNodeFormat===1)&&He(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(oS(a)){const Je=DGe(z,a);Bt(Je)&&Je.declarations&&Wn(a,Je.declarations,Je.escapedName)}}}function DGe(a,_){if(!(a.flags&2097152)||Bt(a)||!og(a))return a;const b=Xp(a);if(b===Ir)return b;for(;a.flags&2097152;){const C=eze(a);if(C){if(C===b)break;if(C.declarations&&Nt(C.declarations))if(Bt(C)){Wn(_,C.declarations,C.escapedName);break}else{if(a===b)break;a=C}}else break}return b}function Ufe(a){tne(a,a.name),Fwe(a),a.kind===276&&ec(a.propertyName||a.name)==="default"&&b1(Le)&&ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&Jy(a,131072)}function frt(a){var _;if(a.assertClause){const b=qae(a),C=D2(a.assertClause,b?Po:void 0);if(b&&C)return mG()||Po(a.assertClause,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Jd(Le)!==3&&Jd(Le)!==99?Po(a.assertClause,w.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((ke===199&&a.moduleSpecifier&&d_(a.moduleSpecifier))!==99&&ke!==99)return Po(a.assertClause,ke===199?w.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:w.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(Fv(a)?(_=a.importClause)!=null&&_.isTypeOnly:a.isTypeOnly)return Po(a.assertClause,w.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(C)return Po(a.assertClause,w.resolution_mode_can_only_be_set_for_type_only_imports)}}function uvt(a){if(!T1e(a,Rs(a)?w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!aN(a)&&ev(a)&&c1(a,w.An_import_declaration_cannot_have_modifiers),Owe(a)){const _=a.importClause;_&&!_0t(_)&&(_.name&&Ufe(_),_.namedBindings&&(_.namedBindings.kind===274?(Ufe(_.namedBindings),ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&b1(Le)&&Jy(a,65536)):Zm(a,a.moduleSpecifier)&&Ot(_.namedBindings.elements,Ufe)))}frt(a)}}function fvt(a){if(!T1e(a,Rs(a)?w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(aN(a),y1(a)||Owe(a)))if(Ufe(a),il(a,1)&&Hu(a),a.moduleReference.kind!==283){const _=Xp(wi(a));if(_!==Ir){const b=sg(_);if(b&111551){const C=NS(a.moduleReference);P_(C,112575).flags&1920||He(C,w.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ud(C))}b&788968&&wK(a.name,w.Import_name_cannot_be_0)}a.isTypeOnly&&Po(a,w.An_import_alias_cannot_use_import_type)}else ke>=5&&ns(a).impliedNodeFormat===void 0&&!a.isTypeOnly&&!(a.flags&33554432)&&Po(a,w.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 _rt(a){if(!T1e(a,Rs(a)?w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!aN(a)&&zie(a)&&c1(a,w.An_export_declaration_cannot_have_modifiers),a.moduleSpecifier&&a.exportClause&&G0(a.exportClause)&&Nt(a.exportClause.elements)&&ht===0&&Jy(a,4194304),drt(a),!a.moduleSpecifier||Owe(a))if(a.exportClause&&!AP(a.exportClause)){Ot(a.exportClause.elements,kGe);const _=a.parent.kind===268&&Ov(a.parent.parent),b=!_&&a.parent.kind===268&&!a.moduleSpecifier&&a.flags&33554432;a.parent.kind!==312&&!_&&!b&&He(a,w.Export_declarations_are_not_permitted_in_a_namespace)}else{const _=Zm(a,a.moduleSpecifier);_&&N1(_)?He(a.moduleSpecifier,w.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Cl(_)):a.exportClause&&Fwe(a.exportClause),ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&(a.exportClause?b1(Le)&&Jy(a,65536):Jy(a,32768))}frt(a)}}function drt(a){var _;return a.isTypeOnly&&((_=a.exportClause)==null?void 0:_.kind)===279?Hrt(a.exportClause):!1}function T1e(a,_){const b=a.parent.kind===312||a.parent.kind===268||a.parent.kind===267;return b||c1(a,_),!b}function _vt(a){return I7(a,_=>!!wi(_).isReferenced)}function Wwe(a){return I7(a,_=>!!Mt(wi(_)).constEnumReferenced)}function prt(a){return Fv(a)&&a.importClause&&!a.importClause.isTypeOnly&&_vt(a.importClause)&&!A1e(a.importClause,!0)&&!Wwe(a.importClause)}function dvt(a){return kh(a)&&j0(a.moduleReference)&&!a.isTypeOnly&&wi(a).isReferenced&&!A1e(a,!1)&&!Mt(wi(a)).constEnumReferenced}function IGe(a){if(Ur)for(const _ of a.statements)(prt(_)||dvt(_))&&He(_,w.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function kGe(a){if(Fwe(a),gv(Le)&&px(a.propertyName||a.name,!0),a.parent.parent.moduleSpecifier)b1(Le)&&ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&ec(a.propertyName||a.name)==="default"&&Jy(a,131072);else{const _=a.propertyName||a.name,b=Ro(_,_.escapedText,2998271,void 0,void 0,!0);if(b&&(b===In||b===gr||b.declarations&&mn(FA(b.declarations[0]))))He(_,w.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,ec(_));else{!a.isTypeOnly&&!a.parent.parent.isTypeOnly&&Hu(a);const C=b&&(b.flags&2097152?Xp(b):b);(!C||sg(C)&111551)&&Iv(a.propertyName||a.name)}}}function mrt(a){const _=a.isExportEquals?w.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:w.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(T1e(a,_))return;const b=a.parent.kind===312?a.parent:a.parent.parent;if(b.kind===267&&!Ov(b)){a.isExportEquals?He(a,w.An_export_assignment_cannot_be_used_in_a_namespace):He(a,w.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!aN(a)&&ev(a)&&c1(a,w.An_export_assignment_cannot_have_modifiers);const C=Kb(a);C&&JS(Iv(a.expression),wl(C),a.expression);const M=!a.isExportEquals&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&(ke===1||ns(a).impliedNodeFormat===1);if(a.expression.kind===80){const z=a.expression,Z=zh(P_(z,67108863,!0,!0,a));Z?(lNe(Z,z),sg(Z)&111551?(Iv(z),!M&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&da(Z,111551)&&He(z,a.isExportEquals?w.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:w.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,ec(z))):!M&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&He(z,a.isExportEquals?w.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:w.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,ec(z))):Iv(z),gv(Le)&&px(z,!0)}else Iv(a.expression);M&&He(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),grt(b),a.flags&33554432&&!Uh(a.expression)&&Po(a.expression,w.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),a.isExportEquals&&(ke>=5&&(a.flags&33554432&&ns(a).impliedNodeFormat===99||!(a.flags&33554432)&&ns(a).impliedNodeFormat!==1)?Po(a,w.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ke===4&&!(a.flags&33554432)&&Po(a,w.Export_assignment_is_not_supported_when_module_flag_is_system))}function pvt(a){return wT(a.exports,(_,b)=>b!=="export=")}function grt(a){const _=wi(a),b=Mt(_);if(!b.exportsChecked){const C=_.exports.get("export=");if(C&&pvt(_)){const z=og(C)||C.valueDeclaration;z&&!vC(z)&&!Rs(z)&&He(z,w.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const M=sr(_);M&&M.forEach(({declarations:z,flags:Z},me)=>{if(me==="__export"||Z&1920)return;const Se=dp(z,bb(z2e,gN(Kp)));if(!(Z&524288&&Se<=2)&&Se>1&&!Bwe(z))for(const Je of z)vm(Je)&&no.add(kc(Je,w.Cannot_redeclare_exported_variable_0,lf(me)))}),b.exportsChecked=!0}}function Bwe(a){return a&&a.length>1&&a.every(_=>Rs(_)&&Kf(_)&&(jL(_.expression)||KC(_.expression)))}function bp(a){if(a){const _=ue;ue=a,te=0,mvt(a),ue=_}}function mvt(a){YM(a)&&Ot(a.jsDoc,({comment:b,tags:C})=>{hrt(b),Ot(C,M=>{hrt(M.comment),Rs(a)&&bp(M)})});const _=a.kind;if(l)switch(_){case 267:case 263:case 264:case 262:l.throwIfCancellationRequested()}switch(_>=243&&_<=259&&LN(a)&&a.flowNode&&!Ibe(a.flowNode)&&dr(Le.allowUnreachableCode===!1,a,w.Unreachable_code_detected),_){case 168:return Cnt(a);case 169:return fwe(a);case 172:return pwe(a);case 171:return qze(a);case 185:case 184:case 179:case 180:case 181:return Kte(a);case 174:case 173:return knt(a);case 175:return o1e(a);case 176:return Pnt(a);case 177:case 178:return Nnt(a);case 183:return Xze(a);case 182:return $B(a);case 186:return myt(a);case 187:return gyt(a);case 188:return Rnt(a);case 189:return Mnt(a);case 192:case 193:return hyt(a);case 196:case 190:case 191:return bp(a.type);case 197:return Tyt(a);case 198:return l1e(a);case 194:return Syt(a);case 195:return Ont(a);case 203:return Yze(a);case 205:return Eyt(a);case 202:return Fnt(a);case 335:return Nyt(a);case 336:return rGe(a);case 353:case 345:case 347:return Dyt(a);case 352:return Iyt(a);case 351:return znt(a);case 331:case 332:case 333:return kyt(a);case 348:return nGe(a);case 355:return Pyt(a);case 324:jnt(a);case 322:case 321:case 319:case 320:case 329:PGe(a),B_(a,bp);return;case 325:gvt(a);return;case 316:return bp(a.type);case 340:case 342:case 341:return d1e(a);case 357:return Gnt(a);case 199:return yyt(a);case 200:return vyt(a);case 262:return Cyt(a);case 241:case 268:return xwe(a);case 243:return h1e(a);case 244:return Gyt(a);case 245:return Awe(a);case 246:return $nt(a);case 247:return qnt(a);case 248:return Knt(a);case 249:return uGe(a);case 250:return Vyt(a);case 251:case 252:return trt(a);case 253:return v1e(a);case 254:return hGe(a);case 255:return $yt(a);case 256:return qyt(a);case 257:return Kyt(a);case 258:return rrt(a);case 260:return cGe(a);case 208:return m1e(a);case 263:return one(a);case 264:return Bf(a);case 265:return ovt(a);case 266:return svt(a);case 267:return lvt(a);case 272:return uvt(a);case 271:return fvt(a);case 278:return _rt(a);case 277:return mrt(a);case 242:case 259:hM(a);return;case 282:return wnt(a)}}function hrt(a){ls(a)&&Ot(a,_=>{FL(_)&&bp(_)})}function PGe(a){if(!Rs(a))if(Ooe(a)||LG(a)){const _=Nd(Ooe(a)?54:58),b=a.postfix?w._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:w._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=a.type,M=wl(C);Po(a,b,_,oa(LG(a)&&!(M===vs||M===Ks)?gl(ur([M,Ui],a.postfix?void 0:$e)):M))}else Po(a,w.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gvt(a){PGe(a),bp(a.type);const{parent:_}=a;if(Pu(_)&&OG(_.parent)){yl(_.parent.parameters)!==_&&He(a,w.A_rest_parameter_must_be_last_in_a_parameter_list);return}pI(_)||He(a,w.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const b=a.parent.parent;if(!AA(b)){He(a,w.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=mY(b);if(!C)return;const M=VE(b);(!M||yl(M.parameters).symbol!==C)&&He(a,w.A_rest_parameter_must_be_last_in_a_parameter_list)}function hvt(a){const _=wl(a.type),{parent:b}=a,C=a.parent.parent;if(pI(a.parent)&&AA(C)){const M=VE(C),z=oF(C.parent.parent);if(M||z){const Z=Yf(z?C.parent.parent.typeExpression.parameters:M.parameters),me=mY(C);if(!Z||me&&Z.symbol===me&&dP(Z))return W1(_)}}return Pu(b)&&OG(b.parent)?W1(_):fm(_)}function FK(a){const _=ns(a),b=ge(_);b.flags&1?ce.assert(!b.deferredNodes,"A type-checked file should have no deferred nodes."):(b.deferredNodes||(b.deferredNodes=new Set),b.deferredNodes.add(a))}function yvt(a){const _=ge(a);_.deferredNodes&&_.deferredNodes.forEach(vvt),_.deferredNodes=void 0}function vvt(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkDeferredNode",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath});const C=ue;switch(ue=a,te=0,a.kind){case 213:case 214:case 215:case 170:case 286:xK(a);break;case 218:case 219:case 174:case 173:Fze(a);break;case 177:case 178:Nnt(a);break;case 231:Rwe(a);break;case 168:uwe(a);break;case 285:tze(a);break;case 284:xtt(a);break;case 216:case 234:case 217:Bht(a)}ue=C,(b=tu)==null||b.pop()}function bvt(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkSourceFile",{path:a.path},!0),jf("beforeCheck"),Tvt(a),jf("afterCheck"),dd("Check","beforeCheck","afterCheck"),(b=tu)==null||b.pop()}function yrt(a,_){if(_)return!1;switch(a){case 0:return!!Le.noUnusedLocals;case 1:return!!Le.noUnusedParameters;default:return ce.assertNever(a)}}function vrt(a){return E.get(a.path)||Zn}function Tvt(a){const _=ge(a);if(!(_.flags&1)){if(c3(a,Le,t))return;k1e(a),g_(Tr),g_(Vr),g_(Pn),g_(Fr),g_(Ki),Ot(a.statements,bp),bp(a.endOfFileToken),yvt(a),h1(a)&&l8(a),s(()=>{!a.isDeclarationFile&&(Le.noUnusedLocals||Le.noUnusedParameters)&&iGe(vrt(a),(b,C,M)=>{!QU(b)&&yrt(C,!!(b.flags&33554432))&&no.add(M)}),a.isDeclarationFile||aGe()}),Le.importsNotUsedAsValues===2&&!a.isDeclarationFile&&Wv(a)&&IGe(a),h1(a)&&grt(a),Tr.length&&(Ot(Tr,Ryt),g_(Tr)),Vr.length&&(Ot(Vr,Myt),g_(Vr)),Pn.length&&(Ot(Pn,Wyt),g_(Pn)),Fr.length&&(Ot(Fr,Vnt),g_(Fr)),_.flags|=1}}function brt(a,_){try{return l=_,zwe(a)}finally{l=void 0}}function sne(){for(const a of r)a();r=[]}function Hfe(a){sne();const _=s;s=b=>b(),bvt(a),s=_}function zwe(a){if(a){sne();const _=no.getGlobalDiagnostics(),b=_.length;Hfe(a);const C=no.getDiagnostics(a.fileName),M=no.getGlobalDiagnostics();if(M!==_){const z=b8(_,M,o3);return Hi(z,C)}else if(b===0&&M.length>0)return Hi(M,C);return C}return Ot(t.getSourceFiles(),Hfe),no.getDiagnostics()}function Svt(){return sne(),no.getGlobalDiagnostics()}function Jfe(a,_){if(a.flags&67108864)return[];const b=Td();let C=!1;return M(),b.delete("this"),KP(b);function M(){for(;a;){switch(lk(a)&&a.locals&&!mn(a)&&Z(a.locals,_),a.kind){case 312:if(!Wv(a))break;case 267:me(wi(a).exports,_&2623475);break;case 266:Z(wi(a).exports,_&8);break;case 231:a.name&&z(a.symbol,_);case 263:case 264:C||Z(BA(wi(a)),_&788968);break;case 218:a.name&&z(a.symbol,_);break}iSe(a)&&z(Cr,_),C=e_(a),a=a.parent}Z(Ut,_)}function z(Se,Je){if(r3(Se)&Je){const vt=Se.escapedName;b.has(vt)||b.set(vt,Se)}}function Z(Se,Je){Je&&Se.forEach(vt=>{z(vt,Je)})}function me(Se,Je){Je&&Se.forEach(vt=>{!Vm(vt,281)&&!Vm(vt,280)&&vt.escapedName!=="default"&&z(vt,Je)})}}function Evt(a){return a.kind===80&&f6(a.parent)&&o_(a.parent)===a}function WK(a){for(;a.parent.kind===166;)a=a.parent;return a.parent.kind===183}function $fe(a){for(;a.parent.kind===211;)a=a.parent;return a.parent.kind===233}function cne(a,_){let b,C=h0(a);for(;C&&!(b=_(C));)C=h0(C);return b}function Trt(a){return!!Kr(a,_=>pg(_)&&wx(_.body)||Os(_)?!0:Jl(_)||J_(_)?"quit":!1)}function qfe(a,_){return!!cne(a,b=>b===_)}function lne(a){for(;a.parent.kind===166;)a=a.parent;if(a.parent.kind===271)return a.parent.moduleReference===a?a.parent:void 0;if(a.parent.kind===277)return a.parent.expression===a?a.parent:void 0}function S1e(a){return lne(a)!==void 0}function xvt(a){switch(Qy(a.parent.parent)){case 1:case 3:return Vl(a.parent);case 4:case 2:case 5:return wi(a.parent.parent)}}function Avt(a){let _=a.parent;for(;nT(_);)a=_,_=_.parent;if(_&&_.kind===205&&_.qualifier===a)return _}function XB(a){if(a.expression.kind===110){const _=Q1(a,!1,!1);if(S_(_)){const b=_tt(_);if(b){const C=CO(b,void 0),M=iL(b,C);return M&&!Q_(M)}}}}function gM(a){if(vP(a))return Vl(a.parent);if(Rs(a)&&a.parent.kind===211&&a.parent===a.parent.parent.left&&!Gu(a)&&!Nu(a)&&!XB(a.parent)){const _=xvt(a);if(_)return _}if(a.parent.kind===277&&Uh(a)){const _=P_(a,2998271,!0);if(_&&_!==Ir)return _}else if(Vd(a)&&S1e(a)){const _=e6(a,271);return ce.assert(_!==void 0),gd(a,!0)}if(Vd(a)){const _=Avt(a);if(_){wl(_);const b=ge(a).resolvedSymbol;return b===Ir?void 0:b}}for(;ySe(a);)a=a.parent;if($fe(a)){let _=0;a.parent.kind===233?(_=rC(a)?788968:111551,PS(a.parent)&&(_|=111551)):_=1920,_|=2097152;const b=Uh(a)?P_(a,_,!0):void 0;if(b)return b}if(a.parent.kind===348)return mY(a.parent);if(a.parent.kind===168&&a.parent.parent.kind===352){ce.assert(!Rs(a));const _=lSe(a.parent);return _&&_.symbol}if(Gy(a)){if(Um(a))return;const _=Kr(a,dA(FL,OJ,Nu)),b=_?901119:111551;if(a.kind===80){if($M(a)&&Dv(a)){const M=jB(a.parent);return M===Ir?void 0:M}const C=P_(a,b,!0,!0,VE(a));if(!C&&_){const M=Kr(a,dA(Jl,Kp));if(M)return E1e(a,!0,wi(M))}if(C&&_){const M=P7(a);if(M&&Qb(M)&&M===C.valueDeclaration)return P_(a,b,!0,!0,ns(M))||C}return C}else{if(Gu(a))return RNe(a);if(a.kind===211||a.kind===166){const C=ge(a);if(C.resolvedSymbol)return C.resolvedSymbol;if(a.kind===211){if(a8(a,0),!C.resolvedSymbol){const M=Iv(a.expression),z=zA(M,q6(a.name));if(z.length&&M.members){const me=K0(M).members.get("__index");if(z===T_(M))C.resolvedSymbol=me;else if(me){const Se=Mt(me),Je=Qo(z,Pt=>Pt.declaration),vt=Vn(Je,Im).join(",");if(Se.filteredIndexSymbolCache||(Se.filteredIndexSymbolCache=new Map),Se.filteredIndexSymbolCache.has(vt))C.resolvedSymbol=Se.filteredIndexSymbolCache.get(vt);else{const Pt=Ge(131072,"__index");Pt.declarations=Qo(z,dn=>dn.declaration),Pt.parent=M.aliasSymbol?M.aliasSymbol:M.symbol?M.symbol:CD(Pt.declarations[0].parent),Se.filteredIndexSymbolCache.set(vt,Pt),C.resolvedSymbol=Se.filteredIndexSymbolCache.get(vt)}}}}}else Ftt(a,0);return!C.resolvedSymbol&&_&&nT(a)?E1e(a):C.resolvedSymbol}else if(Nu(a))return E1e(a)}}else if(WK(a)){const _=a.parent.kind===183?788968:1920,b=P_(a,_,!1,!0);return b&&b!==Ir?b:cv(a)}if(a.parent.kind===182)return P_(a,1)}function E1e(a,_,b){if(Vd(a)){let Z=P_(a,901119,_,!0,VE(a));if(!Z&&An(a)&&b&&(Z=wa(Jn(Gt(b),a.escapedText,901119))),Z)return Z}const C=An(a)?b:E1e(a.left,_,b),M=An(a)?a.escapedText:a.right.escapedText;if(C){const z=C.flags&111551&&Fn(Vo(C),"prototype"),Z=z?Vo(z):Rm(C);return Fn(Z,M)}}function CD(a,_){if(tl(a))return Wv(a)?wa(a.symbol):void 0;const{parent:b}=a,C=b.parent;if(!(a.flags&67108864)){if($d(a)){const M=wi(b);return l9(a.parent)&&a.parent.propertyName===a?eze(M):M}else if(K8(a))return wi(b.parent);if(a.kind===80){if(S1e(a))return gM(a);if(b.kind===208&&C.kind===206&&a===b.propertyName){const M=YB(C),z=Fn(M,a.escapedText);if(z)return z}else if(eF(b)&&b.name===a)return b.keywordToken===105&&ec(a)==="target"?Eze(b).symbol:b.keywordToken===102&&ec(a)==="meta"?gWe().members.get("meta"):void 0}switch(a.kind){case 80:case 81:case 211:case 166:if(!kS(a))return gM(a);case 110:const M=Q1(a,!1,!1);if(S_(M)){const me=Cv(M);if(me.thisParameter)return me.thisParameter}if(Ade(a))return n_(a).symbol;case 197:return Z0e(a).symbol;case 108:return n_(a).symbol;case 137:const z=a.parent;return z&&z.kind===176?z.parent.symbol:void 0;case 11:case 15:if(qM(a.parent.parent)&&S7(a.parent.parent)===a||(a.parent.kind===272||a.parent.kind===278)&&a.parent.moduleSpecifier===a||Rs(a)&&Jd(Le)!==100&&eT(a.parent,!1)||WE(a.parent)||_I(a.parent)&&BE(a.parent.parent)&&a.parent.parent.argument===a.parent)return Zm(a,a,_);if(el(b)&&cH(b)&&b.arguments[1]===a)return wi(b);case 9:const Z=Ed(b)?b.argumentExpression===a?yT(b.expression):void 0:_I(b)&&XN(C)?wl(C.objectType):void 0;return Z&&Fn(Z,ty(a.text));case 90:case 100:case 39:case 86:return Vl(a.parent);case 205:return BE(a)?CD(a.argument.literal,_):void 0;case 95:return Ly(a.parent)?ce.checkDefined(a.parent.symbol):void 0;case 102:case 105:return eF(a.parent)?Sze(a.parent).symbol:void 0;case 236:return n_(a).symbol;case 295:if($M(a)&&Dv(a)){const me=jB(a.parent);return me===Ir?void 0:me}default:return}}}function Kfe(a){if(An(a)&&sa(a.parent)&&a.parent.name===a){const _=q6(a),b=yT(a.parent.expression),C=b.flags&1048576?b.types:[b];return ea(C,M=>gi(T_(M),z=>Zu(_,z.keyType)))}}function NGe(a){if(a&&a.kind===304)return P_(a.name,2208703)}function Srt(a){return Oy(a)?a.parent.parent.moduleSpecifier?$o(a.parent.parent,a):P_(a.propertyName||a.name,2998271):P_(a,2998271)}function YB(a){if(tl(a)&&!Wv(a)||a.flags&67108864)return _r;const _=hSe(a),b=_&&Uy(wi(_.class));if(rC(a)){const C=wl(a);return b?M1(C,b.thisType):C}if(Gy(a))return UV(a);if(b&&!_.isImplements){const C=pp(Gp(b));return C?M1(C,b.thisType):_r}if(f6(a)){const C=wi(a);return Rm(C)}if(Evt(a)){const C=CD(a);return C?Rm(C):_r}if(ym(a))return mx(a,!0,0)||_r;if(dl(a)){const C=wi(a);return C?Vo(C):_r}if($d(a)){const C=CD(a);return C?Vo(C):_r}if(ld(a))return mx(a.parent,!0,0)||_r;if(S1e(a)){const C=CD(a);if(C){const M=Rm(C);return je(M)?Vo(C):M}}return eF(a.parent)&&a.parent.keywordToken===a.kind?Sze(a.parent):_r}function Gwe(a){if(ce.assert(a.kind===210||a.kind===209),a.parent.kind===250){const M=zfe(a.parent);return HB(a,M||_r)}if(a.parent.kind===226){const M=yT(a.parent.right);return HB(a,M||_r)}if(a.parent.kind===303){const M=uc(a.parent.parent,Wd),z=Gwe(M)||_r,Z=v9(M.properties,a.parent);return mnt(M,z,Z)}const _=uc(a.parent,Ch),b=Gwe(_)||_r,C=cL(65,b,Ui,a.parent)||_r;return owe(_,b,_.elements.indexOf(a),C)}function Ert(a){const _=Gwe(uc(a.parent.parent,u7));return _&&Fn(_,a.escapedText)}function UV(a){return kH(a)&&(a=a.parent),B1(yT(a))}function jwe(a){const _=Vl(a.parent);return e_(a)?Vo(_):Rm(_)}function wGe(a){const _=a.name;switch(_.kind){case 80:return qv(ec(_));case 9:case 11:return qv(_.text);case 167:const b=Pw(_);return lh(b,12288)?b:xe;default:return ce.fail("Unsupported property name.")}}function Xfe(a){a=O1(a);const _=Td(Vp(a)),b=Ti(a,0).length?k1:Ti(a,1).length?tn:void 0;return b&&Ot(Vp(b),C=>{_.has(C.escapedName)||_.set(C.escapedName,C)}),$n(_)}function BK(a){return Ti(a,0).length!==0||Ti(a,1).length!==0}function xrt(a){const _=Cvt(a);return _?ea(_,xrt):[a]}function Cvt(a){if(I_(a)&6)return Qo(Mt(a).containingType.types,_=>Fn(_,a.escapedName));if(a.flags&33554432){const{links:{leftSpread:_,rightSpread:b,syntheticOrigin:C}}=a;return _?[_,b]:C?[C]:zD(Dvt(a))}}function Dvt(a){let _,b=a;for(;b=Mt(b).target;)_=b;return _}function Ivt(a){if(Om(a))return!1;const _=Il(a,An);if(!_)return!1;const b=_.parent;return b?!((sa(b)||Fm(b))&&b.name===_)&&Yfe(_)===Cr:!1}function kvt(a){let _=Zm(a.parent,a);if(!_||VM(_))return!0;const b=N1(_);_=$0(_);const C=Mt(_);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=b?!!(_.flags&111551):wT(sr(_),M)),C.exportsSomeValue;function M(z){return z=wp(z),z&&!!(sg(z)&111551)}}function Pvt(a){return sde(a.parent)&&a===a.parent.name}function Nvt(a,_){var b;const C=Il(a,An);if(C){let M=Yfe(C,Pvt(C));if(M){if(M.flags&1048576){const Z=wa(M.exportSymbol);if(!_&&Z.flags&944&&!(Z.flags&3))return;M=Z}const z=Uf(M);if(z){if(z.flags&512&&((b=z.valueDeclaration)==null?void 0:b.kind)===312){const Z=z.valueDeclaration,me=ns(C);return Z!==me?void 0:Z}return Kr(C.parent,Z=>sde(Z)&&wi(Z)===z)}}}}function wvt(a){const _=RY(a);if(_)return _;const b=Il(a,An);if(b){const C=Qfe(b);if(Cg(C,111551)&&!da(C,111551))return og(C)}}function Rvt(a){return a.valueDeclaration&&ym(a.valueDeclaration)&&zX(a.valueDeclaration).parent.kind===299}function Art(a){if(a.flags&418&&a.valueDeclaration&&!tl(a.valueDeclaration)){const _=Mt(a);if(_.isDeclarationWithCollidingName===void 0){const b=Bs(a.valueDeclaration);if(XTe(b)||Rvt(a)){const C=ge(a.valueDeclaration);if(Ro(b.parent,a.escapedName,111551,void 0,void 0,!1))_.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const M=C.flags&32768,z=kN(b,!1),Z=b.kind===241&&kN(b.parent,!1);_.isDeclarationWithCollidingName=!mde(b)&&(!M||!z&&!Z)}else _.isDeclarationWithCollidingName=!1}}return _.isDeclarationWithCollidingName}return!1}function Mvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b&&Art(b))return b.valueDeclaration}}}function Lvt(a){const _=Il(a,dl);if(_){const b=wi(_);if(b)return Art(b)}return!1}function Crt(a){switch(ce.assert(Ur),a.kind){case 271:return x1e(wi(a));case 273:case 274:case 276:case 281:const _=wi(a);return!!_&&x1e(_,!0);case 278:const b=a.exportClause;return!!b&&(AP(b)||gt(b.elements,Crt));case 277:return a.expression&&a.expression.kind===80?x1e(wi(a)):!0}return!1}function Drt(a){const _=Il(a,kh);return _===void 0||_.parent.kind!==312||!y1(_)?!1:x1e(wi(_))&&_.moduleReference&&!Um(_.moduleReference)}function x1e(a,_){if(!a)return!1;const b=zh(Xp(a));return b===Ir?!0:!!(sg(a,_,!0)&111551)&&(gk(Le)||!qk(b))}function qk(a){return jze(a)||!!a.constEnumOnlyModule}function A1e(a,_){if(ce.assert(Ur),km(a)){const b=wi(a),C=b&&Mt(b);if(C!=null&&C.referenced)return!0;const M=Mt(b).aliasTarget;if(M&&tS(a)&1&&sg(M)&111551&&(gk(Le)||!qk(M)))return!0}return _?!!B_(a,b=>A1e(b,_)):!1}function RGe(a){if(wx(a.body)){if(J2(a)||_P(a))return!1;const _=wi(a),b=vh(_);return b.length>1||b.length===1&&b[0].declaration!==a}return!1}function une(a){return!!Ye&&!B4(a)&&!AA(a)&&!!a.initializer&&!il(a,16476)}function Ovt(a){return Ye&&B4(a)&&!a.initializer&&il(a,16476)}function Fvt(a){const _=Il(a,b0);if(!_)return!1;const b=wi(_);return!b||!(b.flags&16)?!1:!!wT(Gt(b),C=>C.flags&111551&&C.valueDeclaration&&sa(C.valueDeclaration))}function MGe(a){const _=Il(a,b0);if(!_)return Zn;const b=wi(_);return b&&Vp(Vo(b))||Zn}function QB(a){var _;const b=a.id||0;return b<0||b>=Rn.length?0:((_=Rn[b])==null?void 0:_.flags)||0}function ZB(a){return srt(a.parent),ge(a).enumMemberValue}function LGe(a){switch(a.kind){case 306:case 211:case 212:return!0}return!1}function OGe(a){if(a.kind===306)return ZB(a);const _=ge(a).resolvedSymbol;if(_&&_.flags&8){const b=_.valueDeclaration;if(gP(b.parent))return ZB(b)}}function Vwe(a){return!!(a.flags&524288)&&Ti(a,0).length>0}function Wvt(a,_){var b;const C=Il(a,Vd);if(!C||_&&(_=Il(_),!_))return 0;let M=!1;if(nT(C)){const Je=P_(NS(C),111551,!0,!0,_);M=!!((b=Je==null?void 0:Je.declarations)!=null&&b.every(sR))}const z=P_(C,111551,!0,!0,_),Z=z&&z.flags&2097152?Xp(z):z;M||(M=!!(z&&da(z,111551)));const me=P_(C,788968,!0,!1,_);if(Z&&Z===me){const Je=DB(!1);if(Je&&Z===Je)return 9;const vt=Vo(Z);if(vt&&ko(vt))return M?10:1}if(!me)return M?11:0;const Se=Rm(me);return je(Se)?M?11:0:Se.flags&3?11:lh(Se,245760)?2:lh(Se,528)?6:lh(Se,296)?3:lh(Se,2112)?4:lh(Se,402653316)?5:_p(Se)?7:lh(Se,12288)?8:Vwe(Se)?10:UA(Se)?7:11}function C1e(a,_,b,C,M){const z=Il(a,iC);if(!z)return be.createToken(133);const Z=wi(z);let me=Z&&!(Z.flags&133120)?TO(Vo(Z)):_r;return me.flags&8192&&me.symbol===Z&&(b|=1048576),M&&(me=eL(me)),Xr.typeToTypeNode(me,_,b|1024,C)}function Irt(a,_,b,C){const M=Il(a,S_);if(!M)return be.createToken(133);const z=Cv(M);return Xr.typeToTypeNode(j(z),_,b|1024,C)}function Bvt(a,_,b,C){const M=Il(a,Nr);if(!M)return be.createToken(133);const z=Bb(UV(M));return Xr.typeToTypeNode(z,_,b|1024,C)}function Uwe(a){return Ut.has(ty(a))}function Yfe(a,_){const b=ge(a).resolvedSymbol;if(b)return b;let C=a;if(_){const M=a.parent;dl(M)&&a===M.name&&(C=FA(M))}return Ro(C,a.escapedText,3257279,void 0,void 0,!0)}function Qfe(a){const _=ge(a).resolvedSymbol;return _&&_!==Ir?_:Ro(a,a.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function zvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b)return zh(b).valueDeclaration}}}function Gvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b)return gi(zh(b).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 jvt(a){return MN(a)||ff(a)&&Xwe(a)?jk(Vo(wi(a))):!1}function Vvt(a,_,b){const C=a.flags&1056?Xr.symbolToExpression(a.symbol,111551,_,void 0,b):a===Ji?be.createTrue():a===rr&&be.createFalse();if(C)return C;const M=a.value;return typeof M=="object"?be.createBigIntLiteral(M):typeof M=="number"?be.createNumericLiteral(M):be.createStringLiteral(M)}function Uvt(a,_){const b=Vo(wi(a));return Vvt(b,a,_)}function krt(a){return a?(us(a),ns(a).localJsxFactory||ki):ki}function FGe(a){if(a){const _=ns(a);if(_){if(_.localJsxFragmentFactory)return _.localJsxFragmentFactory;const b=_.pragmas.get("jsxfrag"),C=ls(b)?b[0]:b;if(C)return _.localJsxFragmentFactory=s_(C.arguments.factory,ht),_.localJsxFragmentFactory}}if(Le.jsxFragmentFactory)return s_(Le.jsxFragmentFactory,ht)}function Hvt(){const a=t.getResolvedTypeReferenceDirectives();let _;return a&&(_=new Map,a.forEach(({resolvedTypeReferenceDirective:Se},Je,vt)=>{if(!(Se!=null&&Se.resolvedFileName))return;const Pt=t.getSourceFile(Se.resolvedFileName);Pt&&me(Pt,Je,vt)})),{getReferencedExportContainer:Nvt,getReferencedImportDeclaration:wvt,getReferencedDeclarationWithCollidingName:Mvt,isDeclarationWithCollidingName:Lvt,isValueAliasDeclaration:Se=>{const Je=Il(Se);return Je&&Ur?Crt(Je):!0},hasGlobalName:Uwe,isReferencedAliasDeclaration:(Se,Je)=>{const vt=Il(Se);return vt&&Ur?A1e(vt,Je):!0},getNodeCheckFlags:Se=>{const Je=Il(Se);return Je?QB(Je):0},isTopLevelValueImportEqualsWithEntityName:Drt,isDeclarationVisible:WS,isImplementationOfOverload:RGe,isRequiredInitializedParameter:une,isOptionalUninitializedParameterProperty:Ovt,isExpandoFunctionDeclaration:Fvt,getPropertiesOfContainerFunction:MGe,createTypeOfDeclaration:C1e,createReturnTypeOfSignatureDeclaration:Irt,createTypeOfExpression:Bvt,createLiteralConstValue:Uvt,isSymbolAccessible:br,isEntityNameVisible:L_,getConstantValue:Se=>{const Je=Il(Se,LGe);return Je?OGe(Je):void 0},collectLinkedAliases:px,getReferencedValueDeclaration:zvt,getReferencedValueDeclarations:Gvt,getTypeReferenceSerializationKind:Wvt,isOptionalParameter:B4,moduleExportsSomeValue:kvt,isArgumentsLocalBinding:Ivt,getExternalModuleFileFromDeclaration:Se=>{const Je=Il(Se,tH);return Je&&HV(Je)},getTypeReferenceDirectivesForEntityName:M,getTypeReferenceDirectivesForSymbol:z,isLiteralConstDeclaration:jvt,isLateBound:Se=>{const Je=Il(Se,dl),vt=Je&&wi(Je);return!!(vt&&I_(vt)&4096)},getJsxFactoryEntity:krt,getJsxFragmentFactoryEntity:FGe,getAllAccessorDeclarations(Se){Se=Il(Se,s9);const Je=Se.kind===178?177:178,vt=Vm(wi(Se),Je),Pt=vt&&vt.posfb(Se,Se,void 0),isBindingCapturedByNode:(Se,Je)=>{const vt=Il(Se),Pt=Il(Je);return!!vt&&!!Pt&&(ff(Pt)||ym(Pt))&&utt(vt,Pt)},getDeclarationStatementsForSourceFile:(Se,Je,vt,Pt)=>{const dn=Il(Se);ce.assert(dn&&dn.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const yn=wi(Se);return yn?yn.exports?Xr.symbolTableToDeclarationStatements(yn.exports,Se,Je,vt,Pt):[]:Se.locals?Xr.symbolTableToDeclarationStatements(Se.locals,Se,Je,vt,Pt):[]},isImportRequiredByAugmentation:b};function b(Se){const Je=ns(Se);if(!Je.symbol)return!1;const vt=HV(Se);if(!vt||vt===Je)return!1;const Pt=sr(Je.symbol);for(const dn of oc(Pt.values()))if(dn.mergeId){const yn=wa(dn);if(yn.declarations){for(const hr of yn.declarations)if(ns(hr)===vt)return!0}}return!1}function C(Se){return Se.parent&&Se.parent.kind===233&&Se.parent.parent&&Se.parent.parent.kind===298}function M(Se){if(!_)return;let Je;Se.parent.kind===167?Je=1160127:(Je=790504,(Se.kind===80&&O7(Se)||Se.kind===211&&!C(Se))&&(Je=1160127));const vt=P_(Se,Je,!0);return vt&&vt!==Ir?z(vt,Je):void 0}function z(Se,Je){if(!_||!Z(Se))return;let vt;for(const Pt of Se.declarations)if(Pt.symbol&&Pt.symbol.flags&Je){const dn=ns(Pt),yn=_.get(dn.path);if(yn)(vt||(vt=[])).push(yn);else return}return vt}function Z(Se){if(!Se.declarations)return!1;let Je=Se;for(;;){const vt=Uf(Je);if(vt)Je=vt;else break}if(Je.valueDeclaration&&Je.valueDeclaration.kind===312&&Je.flags&512)return!1;for(const vt of Se.declarations){const Pt=ns(vt);if(_.has(Pt.path))return!0}return!1}function me(Se,Je,vt){if(!_.has(Se.path)){_.set(Se.path,[Je,vt]);for(const{fileName:Pt,resolutionMode:dn}of Se.referencedFiles){const yn=YE(Pt,Se.fileName),hr=t.getSourceFile(yn);hr&&me(hr,Je,dn||Se.impliedNodeFormat)}}}}function HV(a){const _=a.kind===267?to(a.name,Wp):pY(a),b=fb(_,_,void 0);if(b)return Vm(b,312)}function Jvt(){for(const _ of t.getSourceFiles())YN(_,Le);av=new Map;let a;for(const _ of t.getSourceFiles())if(!_.redirectInfo){if(!h1(_)){const b=_.locals.get("globalThis");if(b!=null&&b.declarations)for(const C of b.declarations)no.add(kc(C,w.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Ce(Ut,_.locals)}_.jsGlobalAugmentations&&Ce(Ut,_.jsGlobalAugmentations),_.patternAmbientModules&&_.patternAmbientModules.length&&(Sv=Hi(Sv,_.patternAmbientModules)),_.moduleAugmentations.length&&(a||(a=[])).push(_.moduleAugmentations),_.symbol&&_.symbol.globalExports&&_.symbol.globalExports.forEach((C,M)=>{Ut.has(M)||Ut.set(M,C)})}if(a)for(const _ of a)for(const b of _)$C(b.parent)&&kt(b);if(qe(Ut,Ia,w.Declaration_name_conflicts_with_built_in_global_identifier_0),Mt(In).type=xu,Mt(Cr).type=Jv("IArguments",0,!0),Mt(Ir).type=_r,Mt(gr).type=Uv(16,gr),fi=Jv("Array",1,!0),Ev=Jv("Object",0,!0),S0=Jv("Function",0,!0),k1=lt&&Jv("CallableFunction",0,!0)||S0,tn=lt&&Jv("NewableFunction",0,!0)||S0,bu=Jv("String",0,!0),K_=Jv("Number",0,!0),ig=Jv("Boolean",0,!0),Fy=Jv("RegExp",0,!0),ir=W1(gn),ii=W1(qr),ii===Yu&&(ii=jo(void 0,Ve,Zn,Zn,Zn)),ya=BZe("ReadonlyArray",1)||fi,Si=ya?Nue(ya,[gn]):ir,bt=BZe("ThisType",1),a)for(const _ of a)for(const b of _)$C(b.parent)||kt(b);av.forEach(({firstFile:_,secondFile:b,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:M,firstFileLocations:z,secondFileLocations:Z},me)=>{const Se=M?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0;for(const Je of z)Io(Je,Se,me,Z);for(const Je of Z)Io(Je,Se,me,z)});else{const M=oc(C.keys()).join(", ");no.add(ml(kc(_,w.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,M),kc(b,w.Conflicts_are_in_this_file))),no.add(ml(kc(b,w.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,M),kc(_,w.Conflicts_are_in_this_file)))}}),av=void 0}function Jy(a,_){if((y&_)!==_&&Le.importHelpers){const b=ns(a);if(B8(b,Le)&&!(a.flags&33554432)){const C=Prt(b,a);if(C!==Ir){const M=_&~y;for(let z=1;z<=33554432;z<<=1)if(M&z)for(const Z of D1e(z)){if(m.has(Z))continue;m.add(Z);const me=wp(Jn(sr(C),ty(Z),111551));me?z&524288?gt(vh(me),Se=>xx(Se)>3)||He(a,w.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,_6,Z,4):z&1048576?gt(vh(me),Se=>xx(Se)>4)||He(a,w.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,_6,Z,5):z&1024&&(gt(vh(me),Se=>xx(Se)>2)||He(a,w.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,_6,Z,3)):He(a,w.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_6,Z)}}y|=_}}}function D1e(a){switch(a){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return _t?["__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 ce.fail("Unrecognized helper")}}function Prt(a,_){return T||(T=FS(a,_6,w.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,_)||Ir),T}function aN(a){const _=qvt(a)||$vt(a);if(_!==void 0)return _;if(Pu(a)&&oI(a))return c1(a,w.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const b=Dh(a)?a.declarationList.flags&7:0;let C,M,z,Z,me,Se=0,Je=!1,vt=!1;for(const Pt of a.modifiers)if(Qf(Pt)){if(ZD(_t,a,a.parent,a.parent.parent)){if(_t&&(a.kind===177||a.kind===178)){const dn=gG(a.parent.members,a);if(Fx(dn.firstAccessor)&&a===dn.secondAccessor)return c1(a,w.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return a.kind===174&&!wx(a.body)?c1(a,w.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):c1(a,w.Decorators_are_not_valid_here);if(Se&-132098)return Po(Pt,w.Decorators_are_not_valid_here);if(vt&&Se&126975){ce.assertIsDefined(me);const dn=ns(Pt);return T5(dn)?!1:(ml(He(Pt,w.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),kc(me,w.Decorator_used_before_export_here)),!0)}Se|=131072,Se&126975?Se&1&&(Je=!0):vt=!0,me??(me=Pt)}else{if(Pt.kind!==148){if(a.kind===171||a.kind===173)return Po(Pt,w._0_modifier_cannot_appear_on_a_type_member,Nd(Pt.kind));if(a.kind===181&&(Pt.kind!==126||!Jl(a.parent)))return Po(Pt,w._0_modifier_cannot_appear_on_an_index_signature,Nd(Pt.kind))}if(Pt.kind!==103&&Pt.kind!==147&&Pt.kind!==87&&a.kind===168)return Po(Pt,w._0_modifier_cannot_appear_on_a_type_parameter,Nd(Pt.kind));switch(Pt.kind){case 87:if(a.kind!==266&&a.kind!==168)return Po(a,w.A_class_member_cannot_have_the_0_keyword,Nd(87));const dn=a.parent;if(a.kind===168&&!(J_(dn)||Jl(dn)||Z2(dn)||mW(dn)||Lh(dn)||lE(dn)||Jh(dn)))return Po(Pt,w._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Nd(Pt.kind));break;case 164:if(Se&16384)return Po(Pt,w._0_modifier_already_seen,"override");if(Se&2)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","readonly");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","accessor");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","async");Se|=16384,Z=Pt;break;case 125:case 124:case 123:const yn=pD(U9(Pt.kind));if(Se&28)return Po(Pt,w.Accessibility_modifier_already_seen);if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"override");if(Se&32)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"static");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"accessor");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"readonly");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"async");if(a.parent.kind===268||a.parent.kind===312)return Po(Pt,w._0_modifier_cannot_appear_on_a_module_or_namespace_element,yn);if(Se&256)return Pt.kind===123?Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,yn,"abstract"):Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"abstract");if(Mf(a))return Po(Pt,w.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Se|=U9(Pt.kind);break;case 126:if(Se&32)return Po(Pt,w._0_modifier_already_seen,"static");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","readonly");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","async");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","accessor");if(a.parent.kind===268||a.parent.kind===312)return Po(Pt,w._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"static");if(Se&256)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","override");Se|=32,C=Pt;break;case 129:if(Se&128)return Po(Pt,w._0_modifier_already_seen,"accessor");if(Se&64)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Se&2)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(a.kind!==172)return Po(Pt,w.accessor_modifier_can_only_appear_on_a_property_declaration);Se|=128;break;case 148:if(Se&64)return Po(Pt,w._0_modifier_already_seen,"readonly");if(a.kind!==172&&a.kind!==171&&a.kind!==181&&a.kind!==169)return Po(Pt,w.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Se&128)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Se|=64;break;case 95:if(Le.verbatimModuleSyntax&&!(a.flags&33554432)&&a.kind!==265&&a.kind!==264&&a.kind!==267&&a.parent.kind===312&&(ke===1||ns(a).impliedNodeFormat===1))return Po(Pt,w.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Se&1)return Po(Pt,w._0_modifier_already_seen,"export");if(Se&2)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","declare");if(Se&256)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","abstract");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","async");if(Jl(a.parent))return Po(Pt,w._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"export");if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"export");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Se|=1;break;case 90:const hr=a.parent.kind===312?a.parent:a.parent.parent;if(hr.kind===267&&!Ov(hr))return Po(Pt,w.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"default");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Se&1){if(Je)return Po(me,w.Decorators_are_not_valid_here)}else return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","default");Se|=1024;break;case 138:if(Se&2)return Po(Pt,w._0_modifier_already_seen,"declare");if(Se&512)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Se&16384)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Jl(a.parent)&&!Os(a))return Po(Pt,w._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"declare");if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(a.parent.flags&33554432&&a.parent.kind===268)return Po(Pt,w.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Mf(a))return Po(Pt,w._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Se&128)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Se|=2,M=Pt;break;case 128:if(Se&256)return Po(Pt,w._0_modifier_already_seen,"abstract");if(a.kind!==263&&a.kind!==185){if(a.kind!==174&&a.kind!==172&&a.kind!==177&&a.kind!==178)return Po(Pt,w.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(a.parent.kind===263&&il(a.parent,256))){const aa=a.kind===172?w.Abstract_properties_can_only_appear_within_an_abstract_class:w.Abstract_methods_can_only_appear_within_an_abstract_class;return Po(Pt,aa)}if(Se&32)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Se&8)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Se&512&&z)return Po(z,w._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,"abstract","override");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Xv(a)&&a.name.kind===81)return Po(Pt,w._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Se|=256;break;case 134:if(Se&512)return Po(Pt,w._0_modifier_already_seen,"async");if(Se&2||a.parent.flags&33554432)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"async");if(Se&256)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Se|=512,z=Pt;break;case 103:case 147:const bi=Pt.kind===103?32768:65536,Wo=Pt.kind===103?"in":"out";if(a.kind!==168||!(Kp(a.parent)||Jl(a.parent)||mg(a.parent)))return Po(Pt,w._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Wo);if(Se&bi)return Po(Pt,w._0_modifier_already_seen,Wo);if(bi&32768&&Se&65536)return Po(Pt,w._0_modifier_must_precede_1_modifier,"in","out");Se|=bi;break}}return a.kind===176?Se&32?Po(C,w._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Se&16384?Po(Z,w._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Se&512?Po(z,w._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(a.kind===272||a.kind===271)&&Se&2?Po(M,w.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):a.kind===169&&Se&16476&&ld(a.name)?Po(a,w.A_parameter_property_may_not_be_declared_using_a_binding_pattern):a.kind===169&&Se&16476&&a.dotDotDotToken?Po(a,w.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Se&512?Xvt(a,z):!1}function $vt(a){if(!a.modifiers)return!1;const _=Jwe(a);return _&&c1(_,w.Modifiers_cannot_appear_here)}function Hwe(a,_){const b=lr(a.modifiers,bd);return b&&b.kind!==_?b:void 0}function Jwe(a){switch(a.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 lr(a.modifiers,bd);default:if(a.parent.kind===268||a.parent.kind===312)return;switch(a.kind){case 262:return Hwe(a,134);case 263:case 185:return Hwe(a,128);case 231:case 264:case 265:return lr(a.modifiers,bd);case 243:return a.declarationList.flags&4?Hwe(a,135):lr(a.modifiers,bd);case 266:return Hwe(a,87);default:ce.assertNever(a)}}}function qvt(a){const _=Kvt(a);return _&&c1(_,w.Decorators_are_not_valid_here)}function Kvt(a){return BEe(a)?lr(a.modifiers,Qf):void 0}function Xvt(a,_){switch(a.kind){case 174:case 262:case 218:case 219:return!1}return Po(_,w._0_modifier_cannot_be_used_here,"async")}function v5(a,_=w.Trailing_comma_not_allowed){return a&&a.hasTrailingComma?S5(a[0],a.end-1,1,_):!1}function Nrt(a,_){if(a&&a.length===0){const b=a.pos-1,C=ep(_.text,a.end)+1;return S5(_,b,C-b,w.Type_parameter_list_cannot_be_empty)}return!1}function Yvt(a){let _=!1;const b=a.length;for(let C=0;C!!_.initializer||ld(_.name)||dP(_))}function Zvt(a){if(ht>=3){const _=a.body&&E_(a.body)&&JY(a.body.statements);if(_){const b=Qvt(a.parameters);if(Nt(b)){Ot(b,M=>{ml(He(M,w.This_parameter_is_not_allowed_with_use_strict_directive),kc(_,w.use_strict_directive_used_here))});const C=b.map((M,z)=>z===0?kc(M,w.Non_simple_parameter_declared_here):kc(M,w.and_here));return ml(He(_,w.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function Zfe(a){const _=ns(a);return aN(a)||Nrt(a.typeParameters,_)||Yvt(a.parameters)||e0t(a,_)||J_(a)&&Zvt(a)}function fne(a){const _=ns(a);return uL(a)||Nrt(a.typeParameters,_)}function e0t(a,_){if(!ph(a))return!1;a.typeParameters&&!(Nt(a.typeParameters)>1||a.typeParameters.hasTrailingComma||a.typeParameters[0].constraint)&&_&&ws(_.fileName,[".mts",".cts"])&&Po(a.typeParameters[0],w.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:b}=a,C=Ah(_,b.pos).line,M=Ah(_,b.end).line;return C!==M&&Po(b,w.Line_terminator_not_permitted_before_arrow)}function t0t(a){const _=a.parameters[0];if(a.parameters.length!==1)return Po(_?_.name:a,w.An_index_signature_must_have_exactly_one_parameter);if(v5(a.parameters,w.An_index_signature_cannot_have_a_trailing_comma),_.dotDotDotToken)return Po(_.dotDotDotToken,w.An_index_signature_cannot_have_a_rest_parameter);if(ev(_))return Po(_.name,w.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(_.questionToken)return Po(_.questionToken,w.An_index_signature_parameter_cannot_have_a_question_mark);if(_.initializer)return Po(_.name,w.An_index_signature_parameter_cannot_have_an_initializer);if(!_.type)return Po(_.name,w.An_index_signature_parameter_must_have_a_type_annotation);const b=wl(_.type);return dM(b,C=>!!(C.flags&8576))||mte(b)?Po(_.name,w.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):iA(b,fte)?a.type?!1:Po(a,w.An_index_signature_must_have_a_type_annotation):Po(_.name,w.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function n0t(a){return aN(a)||t0t(a)}function I1e(a,_){if(_&&_.length===0){const b=ns(a),C=_.pos-1,M=ep(b.text,_.end)+1;return S5(b,C,M-C,w.Type_argument_list_cannot_be_empty)}return!1}function Kk(a,_){return v5(_)||I1e(a,_)}function WGe(a){return a.questionDotToken||a.flags&64?Po(a.template,w.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function wrt(a){const _=a.types;if(v5(_))return!0;if(_&&_.length===0){const b=Nd(a.token);return S5(a,_.pos,0,w._0_list_cannot_be_empty,b)}return gt(_,$we)}function $we(a){return WT(a)&&RJ(a.expression)&&a.typeArguments?Po(a,w.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Kk(a,a.typeArguments)}function uL(a){let _=!1,b=!1;if(!aN(a)&&a.heritageClauses)for(const C of a.heritageClauses){if(C.token===96){if(_)return c1(C,w.extends_clause_already_seen);if(b)return c1(C,w.extends_clause_must_precede_implements_clause);if(C.types.length>1)return c1(C.types[1],w.Classes_can_only_extend_a_single_class);_=!0}else{if(ce.assert(C.token===119),b)return c1(C,w.implements_clause_already_seen);b=!0}wrt(C)}}function Rrt(a){let _=!1;if(a.heritageClauses)for(const b of a.heritageClauses){if(b.token===96){if(_)return c1(b,w.extends_clause_already_seen);_=!0}else return ce.assert(b.token===119),c1(b,w.Interface_declaration_cannot_have_implements_clause);wrt(b)}return!1}function _ne(a){if(a.kind!==167)return!1;const _=a;return _.expression.kind===226&&_.expression.operatorToken.kind===28?Po(_.expression,w.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Xk(a){if(a.asteriskToken){if(ce.assert(a.kind===262||a.kind===218||a.kind===174),a.flags&33554432)return Po(a.asteriskToken,w.Generators_are_not_allowed_in_an_ambient_context);if(!a.body)return Po(a.asteriskToken,w.An_overload_signature_cannot_be_declared_as_a_generator)}}function e_e(a,_){return!!a&&Po(a,_)}function qwe(a,_){return!!a&&Po(a,_)}function Mrt(a,_){const b=new Map;for(const C of a.properties){if(C.kind===305){if(_){const Z=_g(C.expression);if(Ch(Z)||Wd(Z))return Po(C.expression,w.A_rest_element_cannot_contain_a_binding_pattern)}continue}const M=C.name;if(M.kind===167&&_ne(M),C.kind===304&&!_&&C.objectAssignmentInitializer&&Po(C.equalsToken,w.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),M.kind===81&&Po(M,w.Private_identifiers_are_not_allowed_outside_class_bodies),nx(C)&&C.modifiers)for(const Z of C.modifiers)bd(Z)&&(Z.kind!==134||C.kind!==174)&&Po(Z,w._0_modifier_cannot_be_used_here,Yv(Z));else if(zG(C)&&C.modifiers)for(const Z of C.modifiers)bd(Z)&&Po(Z,w._0_modifier_cannot_be_used_here,Yv(Z));let z;switch(C.kind){case 304:case 303:qwe(C.exclamationToken,w.A_definite_assignment_assertion_is_not_permitted_in_this_context),e_e(C.questionToken,w.An_object_member_cannot_be_declared_optional),M.kind===9&&Kwe(M),z=4;break;case 174:z=8;break;case 177:z=1;break;case 178:z=2;break;default:ce.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!_){const Z=m0t(M);if(Z===void 0)continue;const me=b.get(Z);if(!me)b.set(Z,z);else if(z&8&&me&8)Po(M,w.Duplicate_identifier_0,Yv(M));else if(z&4&&me&4)Po(M,w.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Yv(M));else if(z&3&&me&3)if(me!==3&&z!==me)b.set(Z,z|me);else return Po(M,w.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Po(M,w.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function BGe(a){Lrt(a.tagName),Kk(a,a.typeArguments);const _=new Map;for(const b of a.attributes.properties){if(b.kind===293)continue;const{name:C,initializer:M}=b,z=m3(C);if(!_.get(z))_.set(z,!0);else return Po(C,w.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(M&&M.kind===294&&!M.expression)return Po(M,w.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Lrt(a){if(sa(a)&&dI(a.expression))return Po(a.expression,w.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(dI(a)&&VH(Le)&&!z9(a.namespace.escapedText))return Po(a,w.React_components_cannot_include_JSX_namespace_names)}function Ort(a){if(a.expression&&CW(a.expression))return Po(a.expression,w.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function zGe(a){if(hM(a))return!0;if(a.kind===250&&a.awaitModifier&&!(a.flags&65536)){const _=ns(a);if(Tie(a)){if(!T5(_))switch(B8(_,Le)||no.add(kc(a.awaitModifier,w.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)),ke){case 100:case 199:if(_.impliedNodeFormat===1){no.add(kc(a.awaitModifier,w.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ht>=4)break;default:no.add(kc(a.awaitModifier,w.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(!T5(_)){const b=kc(a.awaitModifier,w.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=GE(a);if(C&&C.kind!==176){ce.assert((L0(C)&2)===0,"Enclosing function should never be an async function.");const M=kc(C,w.Did_you_mean_to_mark_this_function_as_async);ml(b,M)}return no.add(b),!0}return!1}if(Moe(a)&&!(a.flags&65536)&&An(a.initializer)&&a.initializer.escapedText==="async")return Po(a.initializer,w.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(a.initializer.kind===261){const _=a.initializer;if(!dne(_)){const b=_.declarations;if(!b.length)return!1;if(b.length>1){const M=a.kind===249?w.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:w.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return c1(_.declarations[1],M)}const C=b[0];if(C.initializer){const M=a.kind===249?w.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:w.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Po(C.name,M)}if(C.type){const M=a.kind===249?w.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:w.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Po(C,M)}}}return!1}function GGe(a){if(!(a.flags&33554432)&&a.parent.kind!==187&&a.parent.kind!==264){if(ht<1)return Po(a.name,w.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(a.body===void 0&&!il(a,256))return S5(a,a.end-1,1,w._0_expected,"{")}if(a.body){if(il(a,256))return Po(a,w.An_abstract_accessor_cannot_have_an_implementation);if(a.parent.kind===187||a.parent.kind===264)return Po(a.body,w.An_implementation_cannot_be_declared_in_ambient_contexts)}if(a.typeParameters)return Po(a.name,w.An_accessor_cannot_have_type_parameters);if(!jGe(a))return Po(a.name,a.kind===177?w.A_get_accessor_cannot_have_parameters:w.A_set_accessor_must_have_exactly_one_parameter);if(a.kind===178){if(a.type)return Po(a.name,w.A_set_accessor_cannot_have_a_return_type_annotation);const _=ce.checkDefined(yR(a),"Return value does not match parameter count assertion.");if(_.dotDotDotToken)return Po(_.dotDotDotToken,w.A_set_accessor_cannot_have_rest_parameter);if(_.questionToken)return Po(_.questionToken,w.A_set_accessor_cannot_have_an_optional_parameter);if(_.initializer)return Po(a.name,w.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function jGe(a){return VGe(a)||a.parameters.length===(a.kind===177?0:1)}function VGe(a){if(a.parameters.length===(a.kind===177?1:2))return $L(a)}function Frt(a){if(a.operator===158){if(a.type.kind!==155)return Po(a.type,w._0_expected,Nd(155));let _=mH(a.parent);if(Rs(_)&&pI(_)){const b=P7(_);b&&(_=$8(b)||b)}switch(_.kind){case 260:const b=_;if(b.name.kind!==80)return Po(a,w.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!x9(b))return Po(a,w.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(b.parent.flags&2))return Po(_.name,w.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!e_(_)||!Cb(_))return Po(_.name,w.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!il(_,64))return Po(_.name,w.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Po(a,w.unique_symbol_types_are_not_allowed_here)}}else if(a.operator===148&&a.type.kind!==188&&a.type.kind!==189)return c1(a,w.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Nd(155))}function zK(a,_){if(R4(a))return Po(a,_)}function Wrt(a){if(Zfe(a))return!0;if(a.kind===174){if(a.parent.kind===210){if(a.modifiers&&!(a.modifiers.length===1&&Dl(a.modifiers).kind===134))return c1(a,w.Modifiers_cannot_appear_here);if(e_e(a.questionToken,w.An_object_member_cannot_be_declared_optional))return!0;if(qwe(a.exclamationToken,w.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(a.body===void 0)return S5(a,a.end-1,1,w._0_expected,"{")}if(Xk(a))return!0}if(Jl(a.parent)){if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(a.flags&33554432)return zK(a.name,w.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(a.kind===174&&!a.body)return zK(a.name,w.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(a.parent.kind===264)return zK(a.name,w.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(a.parent.kind===187)return zK(a.name,w.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 Brt(a){let _=a;for(;_;){if(_9(_))return Po(a,w.Jump_target_cannot_cross_function_boundary);switch(_.kind){case 256:if(a.label&&_.label.escapedText===a.label.escapedText)return a.kind===251&&!kN(_.statement,!0)?Po(a,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(a.kind===252&&!a.label)return!1;break;default:if(kN(_,!1)&&!a.label)return!1;break}_=_.parent}if(a.label){const b=a.kind===252?w.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Po(a,b)}else{const b=a.kind===252?w.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:w.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Po(a,b)}}function r0t(a){if(a.dotDotDotToken){const _=a.parent.elements;if(a!==yl(_))return Po(a,w.A_rest_element_must_be_last_in_a_destructuring_pattern);if(v5(_,w.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.propertyName)return Po(a.name,w.A_rest_element_cannot_have_a_property_name)}if(a.dotDotDotToken&&a.initializer)return S5(a,a.initializer.pos-1,1,w.A_rest_element_cannot_have_an_initializer)}function zrt(a){return Qv(a)||a.kind===224&&a.operator===41&&a.operand.kind===9}function i0t(a){return a.kind===10||a.kind===224&&a.operator===41&&a.operand.kind===10}function UGe(a){if((sa(a)||Ed(a)&&zrt(a.argumentExpression))&&Uh(a.expression))return!!(Iv(a).flags&1056)}function HGe(a){const _=a.initializer;if(_){const b=!(zrt(_)||UGe(_)||_.kind===112||_.kind===97||i0t(_));if((MN(a)||ff(a)&&Xwe(a))&&!a.type){if(b)return Po(_,w.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Po(_,w.Initializers_are_not_allowed_in_ambient_contexts)}}function b5(a){const _=x5(a),b=_&7;if(ld(a.name))switch(b){case 6:return Po(a,w._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Po(a,w._0_declarations_may_not_have_binding_patterns,"using")}if(a.parent.parent.kind!==249&&a.parent.parent.kind!==250){if(_&33554432)HGe(a);else if(!a.initializer){if(ld(a.name)&&!ld(a.parent))return Po(a,w.A_destructuring_declaration_must_have_an_initializer);switch(b){case 6:return Po(a,w._0_declarations_must_be_initialized,"await using");case 4:return Po(a,w._0_declarations_must_be_initialized,"using");case 2:return Po(a,w._0_declarations_must_be_initialized,"const")}}}if(a.exclamationToken&&(a.parent.parent.kind!==243||!a.type||a.initializer||_&33554432)){const C=a.initializer?w.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a.type?w.A_definite_assignment_assertion_is_not_permitted_in_this_context:w.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Po(a.exclamationToken,C)}return(ke<5||ns(a).impliedNodeFormat===1)&&ke!==4&&!(a.parent.parent.flags&33554432)&&il(a.parent.parent,1)&&JGe(a.name),!!b&&Grt(a.name)}function JGe(a){if(a.kind===80){if(ec(a)==="__esModule")return s0t("noEmit",a,w.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const _=a.elements;for(const b of _)if(!t0(b))return JGe(b.name)}return!1}function Grt(a){if(a.kind===80){if(a.escapedText==="let")return Po(a,w.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const _=a.elements;for(const b of _)t0(b)||Grt(b.name)}return!1}function dne(a){const _=a.declarations;if(v5(a.declarations))return!0;if(!a.declarations.length)return S5(a,_.pos,_.end-_.pos,w.Variable_declaration_list_cannot_be_empty);const b=a.flags&7;return(b===4||b===6)&&cpe(a.parent)?Po(a,b===4?w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:w.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):b===6?Bze(a):!1}function $Ge(a){switch(a.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return $Ge(a.parent)}return!0}function o0t(a){if(!$Ge(a.parent)){const _=x5(a.declarationList)&7;if(_){const b=_===1?"let":_===2?"const":_===4?"using":_===6?"await using":ce.fail("Unknown BlockScope flag");return Po(a,w._0_declarations_can_only_be_declared_inside_a_block,b)}}}function a0t(a){const _=a.name.escapedText;switch(a.keywordToken){case 105:if(_!=="target")return Po(a.name,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,lf(a.name.escapedText),Nd(a.keywordToken),"target");break;case 102:if(_!=="meta")return Po(a.name,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,lf(a.name.escapedText),Nd(a.keywordToken),"meta");break}}function T5(a){return a.parseDiagnostics.length>0}function c1(a,_,...b){const C=ns(a);if(!T5(C)){const M=nC(C,a.pos);return no.add(Pp(C,M.start,M.length,_,...b)),!0}return!1}function S5(a,_,b,C,...M){const z=ns(a);return T5(z)?!1:(no.add(Pp(z,_,b,C,...M)),!0)}function s0t(a,_,b,...C){const M=ns(_);return T5(M)?!1:(w_(a,_,b,...C),!0)}function Po(a,_,...b){const C=ns(a);return T5(C)?!1:(no.add(kc(a,_,...b)),!0)}function jrt(a){const _=Rs(a)?Wie(a):void 0,b=a.typeParameters||_&&pp(_);if(b){const C=b.pos===b.end?b.pos:ep(ns(a).text,b.pos);return S5(a,C,b.end-C,w.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function c0t(a){const _=a.type||bA(a);if(_)return Po(_,w.Type_annotation_cannot_appear_on_a_constructor_declaration)}function pne(a){if(am(a.name)&&ys(a.name.expression)&&a.name.expression.operatorToken.kind===103)return Po(a.parent.members[0],w.A_mapped_type_may_not_declare_properties_or_methods);if(Jl(a.parent)){if(Wp(a.name)&&a.name.text==="constructor")return Po(a.name,w.Classes_may_not_have_a_field_named_constructor);if(zK(a.name,w.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ht<2&&rb(a))return Po(a.name,w.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(rb(a)&&e_e(a.questionToken,w.An_accessor_property_cannot_be_declared_optional))return!0}else if(a.parent.kind===264){if(zK(a.name,w.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(ce.assertNode(a,Np),a.initializer)return Po(a.initializer,w.An_interface_property_cannot_have_an_initializer)}else if(e0(a.parent)){if(zK(a.name,w.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(ce.assertNode(a,Np),a.initializer)return Po(a.initializer,w.A_type_literal_property_cannot_have_an_initializer)}if(a.flags&33554432&&HGe(a),Os(a)&&a.exclamationToken&&(!Jl(a.parent)||!a.type||a.initializer||a.flags&33554432||e_(a)||fk(a))){const _=a.initializer?w.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a.type?w.A_definite_assignment_assertion_is_not_permitted_in_this_context:w.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Po(a.exclamationToken,_)}}function l0t(a){return a.kind===264||a.kind===265||a.kind===272||a.kind===271||a.kind===278||a.kind===277||a.kind===270||il(a,1027)?!1:c1(a,w.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function u0t(a){for(const _ of a.statements)if((dl(_)||_.kind===243)&&l0t(_))return!0;return!1}function k1e(a){return!!(a.flags&33554432)&&u0t(a)}function hM(a){if(a.flags&33554432){if(!ge(a).hasReportedStatementInAmbientContext&&(S_(a.parent)||Am(a.parent)))return ge(a).hasReportedStatementInAmbientContext=c1(a,w.An_implementation_cannot_be_declared_in_ambient_contexts);if(a.parent.kind===241||a.parent.kind===268||a.parent.kind===312){const b=ge(a.parent);if(!b.hasReportedStatementInAmbientContext)return b.hasReportedStatementInAmbientContext=c1(a,w.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Kwe(a){const _=Yv(a).indexOf(".")!==-1,b=a.numericLiteralFlags&16;_||b||+a.text<=9007199254740991||Hn(!1,kc(a,w.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Vrt(a){return!!(!(_I(a.parent)||yk(a.parent)&&_I(a.parent.parent))&&ht<7&&Po(a,w.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Urt(a,_,...b){const C=ns(a);if(!T5(C)){const M=nC(C,a.pos);return no.add(Pp(C,K1(M),0,_,...b)),!0}return!1}function f0t(){return Eg||(Eg=[],Ut.forEach((a,_)=>{cme.test(_)&&Eg.push(a)})),Eg}function _0t(a){var _;return a.isTypeOnly&&a.name&&a.namedBindings?Po(a,w.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):a.isTypeOnly&&((_=a.namedBindings)==null?void 0:_.kind)===275?Hrt(a.namedBindings):!1}function Hrt(a){return!!Ot(a.elements,_=>{if(_.isTypeOnly)return c1(_,_.kind===276?w.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:w.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function d0t(a){if(Le.verbatimModuleSyntax&&ke===1)return Po(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ke===5)return Po(a,w.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(a.typeArguments)return Po(a,w.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const _=a.arguments;if(ke!==99&&ke!==199&&ke!==100&&(v5(_),_.length>1)){const C=_[1];return Po(C,w.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(_.length===0||_.length>2)return Po(a,w.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const b=lr(_,ex);return b?Po(b,w.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Jrt(a,_){const b=ji(a);if(b&20&&_.flags&1048576)return lr(_.types,C=>{if(C.flags&524288){const M=b&ji(C);if(M&4)return a.target===C.target;if(M&16)return!!a.aliasSymbol&&a.aliasSymbol===C.aliasSymbol}return!1})}function p0t(a,_){if(ji(a)&128&&dM(_,iM))return lr(_.types,b=>!iM(b))}function $rt(a,_){let b=0;if(Ti(a,b).length>0||(b=1,Ti(a,b).length>0))return lr(_.types,M=>Ti(M,b).length>0)}function qrt(a,_){let b;if(!(a.flags&406978556)){let C=0;for(const M of _.types)if(!(M.flags&406978556)){const z=Dd([YP(a),YP(M)]);if(z.flags&4194304)return M;if(rA(z)||z.flags&1048576){const Z=z.flags&1048576?dp(z.types,rA):1;Z>=C&&(b=M,C=Z)}}}return b}function Krt(a){if(cy(a,67108864)){const _=D0(a,b=>!(b.flags&402784252));if(!(_.flags&131072))return _}return a}function Xrt(a,_,b){if(_.flags&1048576&&a.flags&2621440){const C=ZPe(_,a);if(C)return C;const M=Vp(a);if(M){const z=vbe(M,_);if(z){const Z=QWe(_,Vn(z,me=>[()=>Vo(me),me.escapedName]),b);if(Z!==_)return Z}}}}function m0t(a){const _=WN(a);return _||(am(a)&&Uh(a.expression)?nL(a.expression):void 0)}function E5(a){return Nc===a||(Nc=a,ha=Gg(a)),ha}function x5(a){return ho===a||(ho=a,di=qD(a)),di}function Xwe(a){const _=x5(a)&7;return _===2||_===4||_===6}}function Gst(t){return!Am(t)}function vm(t){return t.kind!==262&&t.kind!==174||!!t.body}function $d(t){switch(t.parent.kind){case 276:case 281:return An(t);default:return vP(t)}}function sme(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function oT(t){return!!(t.flags&1)}function ULe(t){return!!(t.flags&2)}function AHe(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:wc(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var r;return(r=t.getPackageJsonInfoCache)==null?void 0:r.call(t)},useCaseSensitiveFileNames:wc(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:r=>t.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>t.isSourceOfProjectReferenceRedirect(r),fileExists:r=>t.fileExists(r),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?r=>t.readFile(r):void 0}}var cme,Tae,A1,Sae,HLe,Eae,h$,xae,Aae,Cae,z2e,aj,Dae,_E,y$,CHe=G({"src/compiler/checker.ts"(){Ad(),bae(),NM(),cme=/^".+"$/,Tae="(anonymous)",A1=1,Sae=1,HLe=1,Eae=1,h$=(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))(h$||{}),xae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),Aae=(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.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",t[t.RestBindingElement=64]="RestBindingElement",t[t.TypeOnly=128]="TypeOnly",t))(Aae||{}),Cae=(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))(Cae||{}),z2e=bb(vm,Gst),aj=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),Dae=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"})(_E||(_E={})),y$=class LIt{constructor(r,s,l){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var m;s instanceof LIt;)s=s.inner;this.inner=s,this.moduleResolverHost=l,this.context=r,this.canTrackSymbol=!!((m=this.inner)!=null&&m.trackSymbol)}trackSymbol(r,s,l){var m;return(m=this.inner)!=null&&m.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(r,s,l)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var r;(r=this.inner)!=null&&r.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(r){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(r))}reportInaccessibleUniqueSymbolError(){var r;(r=this.inner)!=null&&r.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var r;(r=this.inner)!=null&&r.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(r){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(r))}reportTruncationError(){var r;(r=this.inner)!=null&&r.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(r,s){var l;(l=this.inner)!=null&&l.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(r,s))}trackExternalModuleSymbolOfImportTypeNode(r){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(r))}reportNonlocalAugmentation(r,s,l){var m;(m=this.inner)!=null&&m.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(r,s,l))}reportNonSerializableProperty(r){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(r))}reportImportTypeNodeResolutionModeOverride(){var r;(r=this.inner)!=null&&r.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function nr(t,r,s,l){if(t===void 0)return t;const m=r(t);let y;if(m!==void 0)return ls(m)?y=(l||jst)(m):y=m,ce.assertNode(y,s),y}function Fa(t,r,s,l,m){if(t===void 0)return t;const y=t.length;(l===void 0||l<0)&&(l=0),(m===void 0||m>y-l)&&(m=y-l);let T,D=-1,I=-1;l>0||my-l)&&(m=y-l),lme(t,r,s,l,m)}function lme(t,r,s,l,m){let y;const T=t.length;(l>0||m=2&&(m=Wa(m,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),m}function Wa(t,r){let s;for(let l=0;l{const T=lD,addSource:zt,setSourceContent:Wt,addName:tt,addMapping:cr,appendSourceMap:un,toJSON:Ut,toString:()=>JSON.stringify(Ut())};function zt(gr){y();const Cr=Fz(l,gr,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ei=W.get(Cr);return ei===void 0&&(ei=I.length,I.push(Cr),D.push(gr),W.set(Cr,ei)),T(),ei}function Wt(gr,Cr){if(y(),Cr!==null){for(O||(O=[]);O.lengthCr||Dt===Cr&&Ft>ei)}function cr(gr,Cr,ei,Gn,Ur,so){ce.assert(gr>=ht,"generatedLine cannot backtrack"),ce.assert(Cr>=0,"generatedCharacter cannot be negative"),ce.assert(ei===void 0||ei>=0,"sourceIndex cannot be negative"),ce.assert(Gn===void 0||Gn>=0,"sourceLine cannot be negative"),ce.assert(Ur===void 0||Ur>=0,"sourceCharacter cannot be negative"),y(),(Mn(gr,Cr)||kn(ei,Gn,Ur))&&(Or(),ht=gr,ke=Cr,ut=!1,lt=!1,Ye=!0),ei!==void 0&&Gn!==void 0&&Ur!==void 0&&(_t=ei,Dt=Gn,Ft=Ur,ut=!0,so!==void 0&&(it=so,lt=!0)),T()}function un(gr,Cr,ei,Gn,Ur,so){ce.assert(gr>=ht,"generatedLine cannot backtrack"),ce.assert(Cr>=0,"generatedCharacter cannot be negative"),y();const ho=[];let di;const Nc=kae(ei.mappings);for(const ha of Nc){if(so&&(ha.generatedLine>so.line||ha.generatedLine===so.line&&ha.generatedCharacter>so.character))break;if(Ur&&(ha.generatedLine=1024&&Xr()}function Or(){if(!(!Ye||!on())){if(y(),de0&&(oe+=String.fromCharCode.apply(void 0,te),te.length=0)}function Ut(){return Or(),Xr(),{version:3,file:r,sourceRoot:s,sources:I,names:V,mappings:oe,sourcesContent:O}}function In(gr){gr<0?gr=(-gr<<1)+1:gr=gr<<1;do{let Cr=gr&31;gr=gr>>5,gr>0&&(Cr=Cr|32),pn($Le(Cr))}while(gr>0)}}function Xo(t,r){return{getLineCount:()=>r.length,getLineText:s=>t.substring(r[s],r[s+1])}}function IHe(t){for(let r=t.getLineCount()-1;r>=0;r--){const s=t.getLineText(r),l=V2e.exec(s);if(l)return hU(l[1]);if(!s.match(U2e))break}}function kHe(t){return typeof t=="string"||t===null}function PHe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&ls(t.sources)&&jr(t.sources,As)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||ls(t.sourcesContent)&&jr(t.sourcesContent,kHe))&&(t.names===void 0||t.names===null||ls(t.names)&&jr(t.names,As))}function _me(t){try{const r=JSON.parse(t);if(PHe(r))return r}catch{}}function kae(t){let r=!1,s=0,l=0,m=0,y=0,T=0,D=0,I=0,W;return{get pos(){return s},get error(){return W},get state(){return O(!0,!0)},next(){for(;!r&&s=t.length)return ee("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const pt=j2e(t.charCodeAt(s));if(pt===-1)return ee("Invalid character in VLQ"),-1;Ne=(pt&32)!==0,Ve=Ve|(pt&31)<>1,Ve=-Ve):Ve=Ve>>1,Ve}}function JLe(t,r){return t===r||t.generatedLine===r.generatedLine&&t.generatedCharacter===r.generatedCharacter&&t.sourceIndex===r.sourceIndex&&t.sourceLine===r.sourceLine&&t.sourceCharacter===r.sourceCharacter&&t.nameIndex===r.nameIndex}function NHe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function $Le(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:ce.fail(`${t}: not a base64 value`)}function j2e(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 dme(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function qLe(t,r){return t.generatedPosition===r.generatedPosition&&t.sourceIndex===r.sourceIndex&&t.sourcePosition===r.sourcePosition}function KLe(t,r){return ce.assert(t.sourceIndex===r.sourceIndex),pf(t.sourcePosition,r.sourcePosition)}function Vst(t,r){return pf(t.generatedPosition,r.generatedPosition)}function Ust(t){return t.sourcePosition}function wHe(t){return t.generatedPosition}function XLe(t,r,s){const l=qc(s),m=r.sourceRoot?Su(r.sourceRoot,l):l,y=Su(r.file,l),T=t.getSourceFileLike(y),D=r.sources.map(Be=>Su(Be,m)),I=new Map(D.map((Be,Ve)=>[t.getCanonicalFileName(Be),Ve]));let W,O,V;return{getSourcePosition:Ne,getGeneratedPosition:ue};function ee(Be){const Ve=T!==void 0?xm(T,Be.generatedLine,Be.generatedCharacter,!0):-1;let pt,Le;if(NHe(Be)){const ht=t.getSourceFileLike(D[Be.sourceIndex]);pt=r.sources[Be.sourceIndex],Le=ht!==void 0?xm(ht,Be.sourceLine,Be.sourceCharacter,!0):-1}return{generatedPosition:Ve,source:pt,sourceIndex:Be.sourceIndex,sourcePosition:Le,nameIndex:Be.nameIndex}}function te(){if(W===void 0){const Be=kae(r.mappings),Ve=oc(Be,ee);Be.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${Be.error}`),W=Zn):W=Ve}return W}function oe(Be){if(V===void 0){const Ve=[];for(const pt of te()){if(!dme(pt))continue;let Le=Ve[pt.sourceIndex];Le||(Ve[pt.sourceIndex]=Le=[]),Le.push(pt)}V=Ve.map(pt=>OD(pt,KLe,qLe))}return V[Be]}function de(){if(O===void 0){const Be=[];for(const Ve of te())Be.push(Ve);O=OD(Be,Vst,qLe)}return O}function ue(Be){const Ve=I.get(t.getCanonicalFileName(Be.fileName));if(Ve===void 0)return Be;const pt=oe(Ve);if(!gt(pt))return Be;let Le=WD(pt,Be.pos,Ust,pf);Le<0&&(Le=~Le);const ht=pt[Le];return ht===void 0||ht.sourceIndex!==Ve?Be:{fileName:y,pos:ht.generatedPosition}}function Ne(Be){const Ve=de();if(!gt(Ve))return Be;let pt=WD(Ve,Be.pos,wHe,pf);pt<0&&(pt=~pt);const Le=Ve[pt];return Le===void 0||!dme(Le)?Be:{fileName:D[Le.sourceIndex],pos:Le.sourcePosition}}}var YLe,V2e,U2e,H2e,QLe=G({"src/compiler/sourcemap.ts"(){Ad(),NM(),YLe=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,V2e=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,U2e=/^\s*(\/\/[@#] .*)?$/,H2e={getSourcePosition:Of,getGeneratedPosition:Of}}});function e1(t){return t=Ic(t),t?Im(t):0}function pme(t){return!t||!y6(t)?!1:gt(t.elements,Pae)}function Pae(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function Vx(t,r){return s;function s(m){return m.kind===312?r(m):l(m)}function l(m){return t.factory.createBundle(Vn(m.sourceFiles,r),m.prepends)}}function RHe(t){return!!uH(t)}function Nb(t){if(uH(t))return!0;const r=t.importClause&&t.importClause.namedBindings;if(!r||!y6(r))return!1;let s=0;for(const l of r.elements)Pae(l)&&s++;return s>0&&s!==r.elements.length||!!(r.elements.length-s)&&D7(t)}function ZLe(t){return!Nb(t)&&(D7(t)||!!t.importClause&&y6(t.importClause.namedBindings)&&pme(t.importClause.namedBindings))}function J2e(t,r){const s=t.getEmitResolver(),l=t.getCompilerOptions(),m=[],y=new hme,T=[],D=new Map;let I,W=!1,O,V=!1,ee=!1,te=!1;for(const ue of r.statements)switch(ue.kind){case 272:m.push(ue),!ee&&Nb(ue)&&(ee=!0),!te&&ZLe(ue)&&(te=!0);break;case 271:ue.moduleReference.kind===283&&m.push(ue);break;case 278:if(ue.moduleSpecifier)if(!ue.exportClause)m.push(ue),V=!0;else if(m.push(ue),G0(ue.exportClause))de(ue);else{const Ne=ue.exportClause.name;D.get(ec(Ne))||(sj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne)),ee=!0}else de(ue);break;case 277:ue.isExportEquals&&!O&&(O=ue);break;case 243:if(il(ue,1))for(const Ne of ue.declarationList.declarations)I=_C(Ne,D,I,T);break;case 262:if(il(ue,1))if(il(ue,1024))W||(sj(T,e1(ue),t.factory.getDeclarationName(ue)),W=!0);else{const Ne=ue.name;D.get(ec(Ne))||(sj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne))}break;case 263:if(il(ue,1))if(il(ue,1024))W||(sj(T,e1(ue),t.factory.getDeclarationName(ue)),W=!0);else{const Ne=ue.name;Ne&&!D.get(ec(Ne))&&(sj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne))}break}const oe=bpe(t.factory,t.getEmitHelperFactory(),r,l,V,ee,te);return oe&&m.unshift(oe),{externalImports:m,exportSpecifiers:y,exportEquals:O,hasExportStarsToExportValues:V,exportedBindings:T,exportedNames:I,externalHelpersImportDeclaration:oe};function de(ue){for(const Ne of uc(ue.exportClause,G0).elements)if(!D.get(ec(Ne.name))){const Be=Ne.propertyName||Ne.name;ue.moduleSpecifier||y.add(Be,Ne);const Ve=s.getReferencedImportDeclaration(Be)||s.getReferencedValueDeclaration(Be);Ve&&sj(T,e1(Ve),Ne.name),D.set(ec(Ne.name),!0),I=ur(I,Ne.name)}}}function _C(t,r,s,l){if(ld(t.name))for(const m of t.name.elements)t0(m)||(s=_C(m,r,s,l));else if(!Om(t.name)){const m=ec(t.name);r.get(m)||(r.set(m,!0),s=ur(s,t.name),T6(t.name)&&sj(l,e1(t),t.name))}return s}function sj(t,r,s){let l=t[r];return l?l.push(s):t[r]=l=[s],l}function D6(t){return sp(t)||t.kind===9||sE(t.kind)||An(t)}function aD(t){return!An(t)&&D6(t)}function cj(t){return t>=65&&t<=79}function wQ(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 lj(t){if(!Ou(t))return;const r=_g(t.expression);return y7(r)?r:void 0}function L3(t,r,s){for(let l=r;lMHe(l,r,s))}function RQ(t){return mme(t)||nu(t)}function v$(t){return gi(t.members,RQ)}function MHe(t,r,s){return Os(t)&&(!!t.initializer||!r)&&Ny(t)===s}function mme(t){return Os(t)&&Ny(t)}function b$(t){return t.kind===172&&t.initializer!==void 0}function LHe(t){return!e_(t)&&(c7(t)||rb(t))&&Gu(t.name)}function MQ(t){let r;if(t){const s=t.parameters,l=s.length>0&&oI(s[0]),m=l?1:0,y=l?s.length-1:s.length;for(let T=0;Tn4e(s.privateEnv,r))}var OW,hme,K2e=G({"src/compiler/transformers/utilities.ts"(){Ad(),OW=class o_e{constructor(){this._map=new Map}get size(){return this._map.size}has(r){return this._map.has(o_e.toKey(r))}get(r){return this._map.get(o_e.toKey(r))}set(r,s){return this._map.set(o_e.toKey(r),s),this}delete(r){var s;return((s=this._map)==null?void 0:s.delete(o_e.toKey(r)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(r){if(cR(r)||Om(r)){const s=r.emitNode.autoGenerate;if((s.flags&7)===4){const l=GG(r),m=fy(l)&&l!==r?o_e.toKey(l):`(generated@${Im(l)})`;return n4(!1,s.prefix,m,s.suffix,o_e.toKey)}else{const l=`(auto@${s.id})`;return n4(!1,s.prefix,l,s.suffix,o_e.toKey)}}return Gu(r)?ec(r).slice(1):ec(r)}},hme=class extends OW{add(t,r){let s=this.get(t);return s?s.push(r):this.set(t,s=[r]),s}remove(t,r){const s=this.get(t);s&&(IM(s,r),s.length||this.delete(t))}}}});function Ik(t,r,s,l,m,y){let T=t,D;if(Tg(t))for(D=t.right;vSe(t.left)||Vie(t.left);)if(Tg(D))T=t=D,D=t.right;else return ce.checkDefined(nr(D,r,Nr));let I;const W={context:s,level:l,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:O,emitBindingOrAssignment:V,createArrayBindingOrAssignmentPattern:ee=>WHe(s.factory,ee),createObjectBindingOrAssignmentPattern:ee=>Kst(s.factory,ee),createArrayBindingOrAssignmentElement:Xst,visitor:r};if(D&&(D=nr(D,r,Nr),ce.assert(D),An(D)&&yme(t,D.escapedText)||Rae(t)?D=dj(W,D,!1,T):m?D=dj(W,D,!0,T):rh(t)&&(T=D)),_j(W,t,D,T,Tg(t)),D&&m){if(!gt(I))return D;I.push(D)}return s.factory.inlineExpressions(I)||s.factory.createOmittedExpression();function O(ee){I=ur(I,ee)}function V(ee,te,oe,de){ce.assertNode(ee,y?An:Nr);const ue=y?y(ee,te,oe):vr(s.factory.createAssignment(ce.checkDefined(nr(ee,r,Nr)),te),oe);ue.original=de,O(ue)}}function yme(t,r){const s=oD(t);return p9(s)?fj(s,r):An(s)?s.escapedText===r:!1}function fj(t,r){const s=gI(t);for(const l of s)if(yme(l,r))return!0;return!1}function Rae(t){const r=FEe(t);if(r&&am(r)&&!fP(r.expression))return!0;const s=oD(t);return!!s&&p9(s)&&Hst(s)}function Hst(t){return!!Ot(gI(t),Rae)}function yI(t,r,s,l,m,y=!1,T){let D;const I=[],W=[],O={context:s,level:l,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:y,emitExpression:V,emitBindingOrAssignment:ee,createArrayBindingOrAssignmentPattern:te=>$st(s.factory,te),createObjectBindingOrAssignmentPattern:te=>qst(s.factory,te),createArrayBindingOrAssignmentElement:te=>pj(s.factory,te),visitor:r};if(ff(t)){let te=C3(t);te&&(An(te)&&yme(t,te.escapedText)||Rae(t))&&(te=dj(O,ce.checkDefined(nr(te,O.visitor,Nr)),!1,te),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,te))}if(_j(O,t,m,t,T),D){const te=s.factory.createTempVariable(void 0);if(y){const oe=s.factory.inlineExpressions(D);D=void 0,ee(te,oe,void 0,void 0)}else{s.hoistVariableDeclaration(te);const oe=yl(I);oe.pendingExpressions=ur(oe.pendingExpressions,s.factory.createAssignment(te,oe.value)),Oi(oe.pendingExpressions,D),oe.value=te}}for(const{pendingExpressions:te,name:oe,value:de,location:ue,original:Ne}of I){const Be=s.factory.createVariableDeclaration(oe,void 0,void 0,te?s.factory.inlineExpressions(ur(te,de)):de);Be.original=Ne,vr(Be,ue),W.push(Be)}return W;function V(te){D=ur(D,te)}function ee(te,oe,de,ue){ce.assertNode(te,f9),D&&(oe=s.factory.inlineExpressions(ur(D,oe)),D=void 0),I.push({pendingExpressions:D,name:te,value:oe,location:de,original:ue})}}function _j(t,r,s,l,m){const y=oD(r);if(!m){const T=nr(C3(r),t.visitor,Nr);T?s?(s=pF(t,s,T,l),!aD(T)&&p9(y)&&(s=dj(t,s,!0,l))):s=T:s||(s=t.context.factory.createVoidZero())}ide(y)?Jst(t,r,y,s,l):eie(y)?r4e(t,r,y,s,l):t.emitBindingOrAssignment(y,s,l,r)}function Jst(t,r,s,l,m){const y=gI(s),T=y.length;if(T!==1){const W=!d9(r)||T!==0;l=dj(t,l,W,m)}let D,I;for(let W=0;W=1&&!(O.transformFlags&98304)&&!(oD(O).transformFlags&98304)&&!am(V))D=ur(D,nr(O,t.visitor,rde));else{D&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(D),l,m,s),D=void 0);const ee=LQ(t,l,V);am(V)&&(I=ur(I,ee.argumentExpression)),_j(t,O,ee,O)}}}D&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(D),l,m,s)}function r4e(t,r,s,l,m){const y=gI(s),T=y.length;if(t.level<1&&t.downlevelIteration)l=dj(t,vr(t.context.getEmitHelperFactory().createReadHelper(l,T>0&&OEe(y[T-1])?void 0:T),m),!1,m);else if(T!==1&&(t.level<1||T===0)||jr(y,t0)){const W=!d9(r)||T!==0;l=dj(t,l,W,m)}let D,I;for(let W=0;W=1)if(O.transformFlags&65536||t.hasTransformedPriorElement&&!FHe(O)){t.hasTransformedPriorElement=!0;const V=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(V),I=ur(I,[V,O]),D=ur(D,t.createArrayBindingOrAssignmentElement(V))}else D=ur(D,O);else{if(t0(O))continue;if(OEe(O)){if(W===T-1){const V=t.context.factory.createArraySliceCall(l,W);_j(t,O,V,O)}}else{const V=t.context.factory.createElementAccessExpression(l,W);_j(t,O,V,O)}}}if(D&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(D),l,m,s),I)for(const[W,O]of I)_j(t,O,W,O)}function FHe(t){const r=oD(t);if(!r||t0(r))return!0;const s=FEe(t);if(s&&!yA(s))return!1;const l=C3(t);return l&&!aD(l)?!1:p9(r)?jr(gI(r),FHe):An(r)}function pF(t,r,s,l){return r=dj(t,r,!0,l),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(r,"undefined"),void 0,s,void 0,r)}function LQ(t,r,s){const{factory:l}=t.context;if(am(s)){const m=dj(t,ce.checkDefined(nr(s.expression,t.visitor,Nr)),!1,s);return t.context.factory.createElementAccessExpression(r,m)}else if(Qv(s)){const m=l.cloneNode(s);return t.context.factory.createElementAccessExpression(r,m)}else{const m=t.context.factory.createIdentifier(ec(s));return t.context.factory.createPropertyAccessExpression(r,m)}}function dj(t,r,s,l){if(An(r)&&s)return r;{const m=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(m),t.emitExpression(vr(t.context.factory.createAssignment(m,r),l))):t.emitBindingOrAssignment(m,r,l,void 0),m}}function $st(t,r){return ce.assertEachNode(r,qX),t.createArrayBindingPattern(r)}function WHe(t,r){return ce.assertEachNode(r,uR),t.createArrayLiteralExpression(Vn(r,t.converters.convertToArrayAssignmentElement))}function qst(t,r){return ce.assertEachNode(r,ym),t.createObjectBindingPattern(r)}function Kst(t,r){return ce.assertEachNode(r,KX),t.createObjectLiteralExpression(Vn(r,t.converters.convertToObjectAssignmentElement))}function pj(t,r){return t.createBindingElement(void 0,void 0,r)}function Xst(t){return t}var i4e,Yst=G({"src/compiler/transformers/destructuring.ts"(){Ad(),i4e=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(i4e||{})}});function BHe(t,r,s=t.createThis()){const l=t.createAssignment(r,s),m=t.createExpressionStatement(l),y=t.createBlock([m],!1),T=t.createClassStaticBlockDeclaration(y);return he(T).classThis=r,T}function Mae(t){var r;if(!nu(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Ou(s)&&wy(s.expression,!0)&&An(s.expression.left)&&((r=t.emitNode)==null?void 0:r.classThis)===s.expression.left&&s.expression.right.kind===110}function o4e(t){var r;return!!((r=t.emitNode)!=null&&r.classThis)&>(t.members,Mae)}function vme(t,r,s,l){if(o4e(r))return r;const m=BHe(t,s,l);r.name&&Sp(m.body.statements[0],r.name);const y=t.createNodeArray([m,...r.members]);vr(y,r.members);const T=Kc(r)?t.updateClassDeclaration(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,y):t.updateClassExpression(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,y);return he(T).classThis=s,T}var Qst=G({"src/compiler/transformers/classThis.ts"(){Ad()}});function T$(t,r,s){const l=Ic(rv(s));return(Kc(l)||b0(l))&&!l.name&&il(l,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(r)}function S$(t,r,s){const{factory:l}=t;if(s!==void 0)return{assignedName:l.createStringLiteral(s),name:r};if(yA(r)||Gu(r))return{assignedName:l.createStringLiteralFromNode(r),name:r};if(yA(r.expression)&&!An(r.expression))return{assignedName:l.createStringLiteralFromNode(r.expression),name:r};const m=l.getGeneratedNameForNode(r);t.hoistVariableDeclaration(m);const y=t.getEmitHelperFactory().createPropKeyHelper(r.expression),T=l.createAssignment(m,y),D=l.updateComputedPropertyName(r,T);return{assignedName:m,name:D}}function bme(t,r,s=t.factory.createThis()){const{factory:l}=t,m=t.getEmitHelperFactory().createSetFunctionNameHelper(s,r),y=l.createExpressionStatement(m),T=l.createBlock([y],!1),D=l.createClassStaticBlockDeclaration(T);return he(D).assignedName=r,D}function FW(t){var r;if(!nu(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Ou(s)&&cJ(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((r=t.emitNode)==null?void 0:r.assignedName)}function X2e(t){var r;return!!((r=t.emitNode)!=null&&r.assignedName)&>(t.members,FW)}function mj(t){return!!t.name||X2e(t)}function Tme(t,r,s,l){if(X2e(r))return r;const{factory:m}=t,y=bme(t,s,l);r.name&&Sp(y.body.statements[0],r.name);const T=Ho(r.members,Mae)+1,D=r.members.slice(0,T),I=r.members.slice(T),W=m.createNodeArray([...D,y,...I]);return vr(W,r.members),r=Kc(r)?m.updateClassDeclaration(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,W):m.updateClassExpression(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,W),he(r).assignedName=s,r}function WW(t,r,s,l){if(l&&Wp(s)&&Sie(s))return r;const{factory:m}=t,y=rv(r),T=B0(y)?uc(Tme(t,y,s),B0):t.getEmitHelperFactory().createSetFunctionNameHelper(y,s);return m.restoreOuterExpressions(r,T)}function gj(t,r,s,l){const{factory:m}=t,{assignedName:y,name:T}=S$(t,r.name,l),D=WW(t,r.initializer,y,s);return m.updatePropertyAssignment(r,T,D)}function Sme(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.objectAssignmentInitializer),T=WW(t,r.objectAssignmentInitializer,y,s);return m.updateShorthandPropertyAssignment(r,r.name,T)}function Y2e(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateVariableDeclaration(r,r.name,r.exclamationToken,r.type,T)}function Eme(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateParameterDeclaration(r,r.modifiers,r.dotDotDotToken,r.name,r.questionToken,r.type,T)}function E$(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,T)}function Zst(t,r,s,l){const{factory:m}=t,{assignedName:y,name:T}=S$(t,r.name,l),D=WW(t,r.initializer,y,s);return m.updatePropertyDeclaration(r,r.modifiers,T,r.questionToken??r.exclamationToken,r.type,D)}function ect(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.left,r.right),T=WW(t,r.right,y,s);return m.updateBinaryExpression(r,r.left,r.operatorToken,T)}function tct(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):m.createStringLiteral(r.isExportEquals?"":"default"),T=WW(t,r.expression,y,s);return m.updateExportAssignment(r,r.modifiers,T)}function ax(t,r,s,l){switch(r.kind){case 303:return gj(t,r,s,l);case 304:return Sme(t,r,s,l);case 260:return Y2e(t,r,s,l);case 169:return Eme(t,r,s,l);case 208:return E$(t,r,s,l);case 172:return Zst(t,r,s,l);case 226:return ect(t,r,s,l);case 277:return tct(t,r,s,l)}}var nct=G({"src/compiler/transformers/namedEvaluation.ts"(){Ad()}});function a4e(t,r,s,l,m,y){const T=nr(r.tag,s,Nr);ce.assert(T);const D=[void 0],I=[],W=[],O=r.template;if(y===0&&!SH(O))return ia(r,s,t);const{factory:V}=t;if(Sd(O))I.push(s4e(V,O)),W.push(c4e(V,O,l));else{I.push(s4e(V,O.head)),W.push(c4e(V,O.head,l));for(const te of O.templateSpans)I.push(s4e(V,te.literal)),W.push(c4e(V,te.literal,l)),D.push(ce.checkDefined(nr(te.expression,s,Nr)))}const ee=t.getEmitHelperFactory().createTemplateObjectHelper(V.createArrayLiteralExpression(I),V.createArrayLiteralExpression(W));if(Wv(l)){const te=V.createUniqueName("templateObject");m(te),D[0]=V.createLogicalOr(te,V.createAssignment(te,ee))}else D[0]=ee;return V.createCallExpression(T,void 0,D)}function s4e(t,r){return r.templateFlags&26656?t.createVoidZero():t.createStringLiteral(r.text)}function c4e(t,r,s){let l=r.rawText;if(l===void 0){ce.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),l=wd(s,r);const m=r.kind===15||r.kind===18;l=l.substring(1,l.length-(m?1:2))}return l=l.replace(/\r\n?/g,` -`),vr(t.createStringLiteral(l),r)}var mE,rct=G({"src/compiler/transformers/taggedTemplate.ts"(){Ad(),mE=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(mE||{})}});function xme(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,resumeLexicalEnvironment:m,endLexicalEnvironment:y,hoistVariableDeclaration:T}=t,D=t.getEmitResolver(),I=t.getCompilerOptions(),W=iu(I),O=Zp(I),V=!!I.experimentalDecorators,ee=I.emitDecoratorMetadata?GHe(t):void 0,te=t.onEmitNode,oe=t.onSubstituteNode;t.onEmitNode=fx,t.onSubstituteNode=rd,t.enableSubstitution(211),t.enableSubstitution(212);let de,ue,Ne,Be,Ve,pt,Le,ht;return ke;function ke(_e){return _e.kind===313?_t(_e):Dt(_e)}function _t(_e){return r.createBundle(_e.sourceFiles.map(Dt),Qo(_e.prepends,vn=>vn.kind===315?pEe(vn,"js"):vn))}function Dt(_e){if(_e.isDeclarationFile)return _e;de=_e;const vn=Ft(_e,In);return JN(vn,t.readEmitHelpers()),de=void 0,vn}function Ft(_e,vn){const Qn=Be,hi=Ve,pa=pt;it(_e);const Zc=vn(_e);return Be!==Qn&&(Ve=hi),Be=Qn,pt=pa,Zc}function it(_e){switch(_e.kind){case 312:case 269:case 268:case 241:Be=_e,Ve=void 0;break;case 263:case 262:if(il(_e,2))break;_e.name?Zt(_e):ce.assert(_e.kind===263||il(_e,1024));break}}function Ye(_e){return Ft(_e,ut)}function ut(_e){return _e.transformFlags&1?Ut(_e):_e}function lt(_e){return Ft(_e,zt)}function zt(_e){switch(_e.kind){case 272:case 271:case 277:case 278:return Wt(_e);default:return ut(_e)}}function Wt(_e){if(Il(_e)!==_e)return _e.transformFlags&1?ia(_e,Ye,t):_e;switch(_e.kind){case 272:return zo(_e);case 271:return x_(_e);case 277:return vs(_e);case 278:return ou(_e);default:ce.fail("Unhandled ellided statement")}}function tt(_e){return Ft(_e,Mn)}function Mn(_e){if(!(_e.kind===278||_e.kind===272||_e.kind===273||_e.kind===271&&_e.moduleReference.kind===283))return _e.transformFlags&1||il(_e,1)?Ut(_e):_e}function kn(_e){return vn=>Ft(vn,Qn=>cr(Qn,_e))}function cr(_e,vn){switch(_e.kind){case 176:return $a(_e);case 172:return ta(_e,vn);case 177:return sl(_e,vn);case 178:return vc(_e,vn);case 174:return To(_e,vn);case 175:return ia(_e,Ye,t);case 240:return _e;case 181:return;default:return ce.failBadSyntaxKind(_e)}}function un(_e){return vn=>Ft(vn,Qn=>on(Qn,_e))}function on(_e,vn){switch(_e.kind){case 303:case 304:case 305:return Ye(_e);case 177:return sl(_e,vn);case 178:return vc(_e,vn);case 174:return To(_e,vn);default:return ce.failBadSyntaxKind(_e)}}function pn(_e){return Qf(_e)?void 0:Ye(_e)}function Or(_e){return bd(_e)?void 0:Ye(_e)}function Xr(_e){if(!Qf(_e)&&!(U9(_e.kind)&117086)&&!(ue&&_e.kind===95))return _e}function Ut(_e){if(uf(_e)&&il(_e,2))return r.createNotEmittedStatement(_e);switch(_e.kind){case 95:case 90:return ue?void 0:_e;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 r.createNotEmittedStatement(_e);case 270:return;case 264:return r.createNotEmittedStatement(_e);case 263:return Ur(_e);case 231:return so(_e);case 298:return mc(_e);case 233:return Ea(_e);case 210:return gr(_e);case 176:case 172:case 174:case 177:case 178:case 175:return ce.fail("Class and object literal elements must be visited with their respective visitors");case 262:return er(_e);case 218:return Jr(_e);case 219:return li(_e);case 169:return Ir(_e);case 217:return gn(_e);case 216:case 234:return qr(_e);case 238:return _r(_e);case 213:return Cn(_e);case 214:return oi(_e);case 215:return Qr(_e);case 235:return mt(_e);case 266:return xu(_e);case 243:return _o(_e);case 260:return Kn(_e);case 267:return rr(_e);case 271:return x_(_e);case 285:return co(_e);case 286:return es(_e);default:return ia(_e,Ye,t)}}function In(_e){const vn=hv(I,"alwaysStrict")&&!(Wv(_e)&&O>=5)&&!Py(_e);return r.updateSourceFile(_e,G2e(_e.statements,lt,t,0,vn))}function gr(_e){return r.updateObjectLiteralExpression(_e,Fa(_e.properties,un(_e),KD))}function Cr(_e){let vn=0;gt(uj(_e,!0,!0))&&(vn|=1);const Qn=hA(_e);return Qn&&rv(Qn.expression).kind!==106&&(vn|=64),Mx(V,_e)&&(vn|=2),oH(V,_e)&&(vn|=4),q_(_e)?vn|=8:c_(_e)?vn|=32:U0(_e)&&(vn|=16),vn}function ei(_e){return!!(_e.transformFlags&8192)}function Gn(_e){return Fx(_e)||gt(_e.typeParameters)||gt(_e.heritageClauses,ei)||gt(_e.members,ei)}function Ur(_e){const vn=Cr(_e),Qn=W<=1&&!!(vn&7);if(!Gn(_e)&&!Mx(V,_e)&&!q_(_e))return r.updateClassDeclaration(_e,Fa(_e.modifiers,Xr,bd),_e.name,void 0,Fa(_e.heritageClauses,Ye,rT),Fa(_e.members,kn(_e),Mv));Qn&&t.startLexicalEnvironment();const hi=Qn||vn&8;let pa=hi?Fa(_e.modifiers,Or,pc):Fa(_e.modifiers,Ye,pc);vn&2&&(pa=di(pa,_e));const ka=hi&&!_e.name||vn&4||vn&1?_e.name??r.getGeneratedNameForNode(_e):_e.name,bc=r.updateClassDeclaration(_e,pa,ka,void 0,Fa(_e.heritageClauses,Ye,rT),ho(_e));let gu=Tp(_e);vn&1&&(gu|=64),Sa(bc,gu);let yu;if(Qn){const Xm=[bc],Lg=Hie(ep(de.text,_e.members.end),20),av=r.getInternalName(_e),Fh=r.createPartiallyEmittedExpression(av);l6(Fh,Lg.end),Sa(Fh,3072);const J0=r.createReturnStatement(Fh);u3(J0,Lg.pos),Sa(J0,3840),Xm.push(J0),v2(Xm,t.endLexicalEnvironment());const Eg=r.createImmediatelyInvokedArrowFunction(Xm);aW(Eg,1);const Sv=r.createVariableDeclaration(r.getLocalName(_e,!1,!1),void 0,void 0,Eg);tc(Sv,_e);const jT=r.createVariableStatement(void 0,r.createVariableDeclarationList([Sv],1));tc(jT,_e),Ry(jT,_e),Sp(jT,$E(_e)),x1(jT),yu=jT}else yu=bc;if(hi){if(vn&8)return[yu,Kd(_e)];if(vn&32)return[yu,r.createExportDefault(r.getLocalName(_e,!1,!0))];if(vn&16)return[yu,r.createExternalModuleExport(r.getDeclarationName(_e,!1,!0))]}return yu}function so(_e){let vn=Fa(_e.modifiers,Or,pc);return Mx(V,_e)&&(vn=di(vn,_e)),r.updateClassExpression(_e,vn,_e.name,void 0,Fa(_e.heritageClauses,Ye,rT),ho(_e))}function ho(_e){const vn=Fa(_e.members,kn(_e),Mv);let Qn;const hi=E2(_e),pa=hi&&gi(hi.parameters,Zc=>Eb(Zc,hi));if(pa)for(const Zc of pa){const ka=r.createPropertyDeclaration(void 0,Zc.name,void 0,void 0,void 0);tc(ka,Zc),Qn=ur(Qn,ka)}return Qn?(Qn=Oi(Qn,vn),vr(r.createNodeArray(Qn),_e.members)):vn}function di(_e,vn){const Qn=ha(vn,vn);if(gt(Qn)){const hi=[];Oi(hi,Yn(_e,Epe)),Oi(hi,gi(_e,Qf)),Oi(hi,Qn),Oi(hi,gi(ME(_e,Epe),bd)),_e=vr(r.createNodeArray(hi),_e)}return _e}function Nc(_e,vn,Qn){if(Jl(Qn)&&oG(V,vn,Qn)){const hi=ha(vn,Qn);if(gt(hi)){const pa=[];Oi(pa,gi(_e,Qf)),Oi(pa,hi),Oi(pa,gi(_e,bd)),_e=vr(r.createNodeArray(pa),_e)}}return _e}function ha(_e,vn){if(V)return Q2e?Gs(_e,vn):ro(_e,vn)}function ro(_e,vn){if(ee){let Qn;if(Oc(_e)){const hi=s().createMetadataHelper("design:type",ee.serializeTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e));Qn=ur(Qn,r.createDecorator(hi))}if(Ku(_e)){const hi=s().createMetadataHelper("design:paramtypes",ee.serializeParameterTypesOfNode({currentLexicalScope:Be,currentNameScope:vn},_e,vn));Qn=ur(Qn,r.createDecorator(hi))}if(_u(_e)){const hi=s().createMetadataHelper("design:returntype",ee.serializeReturnTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e));Qn=ur(Qn,r.createDecorator(hi))}return Qn}}function Gs(_e,vn){if(ee){let Qn;if(Oc(_e)){const hi=r.createPropertyAssignment("type",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e)));Qn=ur(Qn,hi)}if(Ku(_e)){const hi=r.createPropertyAssignment("paramTypes",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeParameterTypesOfNode({currentLexicalScope:Be,currentNameScope:vn},_e,vn)));Qn=ur(Qn,hi)}if(_u(_e)){const hi=r.createPropertyAssignment("returnType",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeReturnTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e)));Qn=ur(Qn,hi)}if(Qn){const hi=s().createMetadataHelper("design:typeinfo",r.createObjectLiteralExpression(Qn,!0));return[r.createDecorator(hi)]}}}function Oc(_e){const vn=_e.kind;return vn===174||vn===177||vn===178||vn===172}function _u(_e){return _e.kind===174}function Ku(_e){switch(_e.kind){case 263:case 231:return E2(_e)!==void 0;case 174:case 177:case 178:return!0}return!1}function al(_e,vn){const Qn=_e.name;return Gu(Qn)?r.createIdentifier(""):am(Qn)?vn&&!aD(Qn.expression)?r.getGeneratedNameForNode(Qn):Qn.expression:An(Qn)?r.createStringLiteral(ec(Qn)):r.cloneNode(Qn)}function Rr(_e){const vn=_e.name;if(am(vn)&&(!Ny(_e)&&pt||Fx(_e)&&V)){const Qn=nr(vn.expression,Ye,Nr);ce.assert(Qn);const hi=pA(Qn);if(!aD(hi)){const pa=r.getGeneratedNameForNode(vn);return T(pa),r.updateComputedPropertyName(vn,r.createAssignment(pa,Qn))}}return ce.checkDefined(nr(vn,Ye,_y))}function mc(_e){if(_e.token!==119)return ia(_e,Ye,t)}function Ea(_e){return r.updateExpressionWithTypeArguments(_e,ce.checkDefined(nr(_e.expression,Ye,FE)),void 0)}function Fi(_e){return!Um(_e.body)}function ta(_e,vn){const Qn=_e.flags&33554432||il(_e,256);if(Qn&&!(V&&Fx(_e)))return;let hi=Jl(vn)?Qn?Fa(_e.modifiers,Or,pc):Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return hi=Nc(hi,_e,vn),Qn?r.updatePropertyDeclaration(_e,Hi(hi,r.createModifiersFromModifierFlags(2)),ce.checkDefined(nr(_e.name,Ye,_y)),void 0,void 0,void 0):r.updatePropertyDeclaration(_e,hi,Rr(_e),void 0,void 0,nr(_e.initializer,Ye,Nr))}function $a(_e){if(Fi(_e))return r.updateConstructorDeclaration(_e,void 0,Bn(_e.parameters,Ye,t),Xu(_e.body,_e))}function jc(_e,vn,Qn,hi,pa,Zc){const ka=hi[pa],bc=vn[ka];if(Oi(_e,Fa(vn,Ye,uf,Qn,ka-Qn)),AR(bc)){const gu=[];jc(gu,bc.tryBlock.statements,0,hi,pa+1,Zc);const yu=r.createNodeArray(gu);vr(yu,bc.tryBlock.statements),_e.push(r.updateTryStatement(bc,r.updateBlock(bc.tryBlock,gu),nr(bc.catchClause,Ye,CP),nr(bc.finallyBlock,Ye,E_)))}else Oi(_e,Fa(vn,Ye,uf,ka,1)),Oi(_e,Zc);Oi(_e,Fa(vn,Ye,uf,ka+1))}function Xu(_e,vn){const Qn=vn&&gi(vn.parameters,gu=>Eb(gu,vn));if(!gt(Qn))return sm(_e,Ye,t);let hi=[];m();const pa=r.copyPrologue(_e.statements,hi,!1,Ye),Zc=IA(_e.statements,pa),ka=Qo(Qn,Lo);Zc.length?jc(hi,_e.statements,pa,Zc,0,ka):(Oi(hi,ka),Oi(hi,Fa(_e.statements,Ye,uf,pa))),hi=r.mergeLexicalEnvironment(hi,y());const bc=r.createBlock(vr(r.createNodeArray(hi),_e.statements),!0);return vr(bc,_e),tc(bc,_e),bc}function Lo(_e){const vn=_e.name;if(!An(vn))return;const Qn=kl(vr(r.cloneNode(vn),vn),vn.parent);Sa(Qn,3168);const hi=kl(vr(r.cloneNode(vn),vn),vn.parent);return Sa(hi,3072),x1(Zde(vr(tc(r.createExpressionStatement(r.createAssignment(vr(r.createPropertyAccessExpression(r.createThis(),Qn),_e.name),hi)),_e),TA(_e,-1))))}function To(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Fi(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateMethodDeclaration(_e,Qn,_e.asteriskToken,Rr(_e),void 0,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t))}function Aa(_e){return!(Um(_e.body)&&il(_e,256))}function sl(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Aa(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateGetAccessorDeclaration(_e,Qn,Rr(_e),Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([]))}function vc(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Aa(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateSetAccessorDeclaration(_e,Qn,Rr(_e),Bn(_e.parameters,Ye,t),sm(_e.body,Ye,t)||r.createBlock([]))}function er(_e){if(!Fi(_e))return r.createNotEmittedStatement(_e);const vn=r.updateFunctionDeclaration(_e,Fa(_e.modifiers,Xr,bd),_e.asteriskToken,_e.name,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([]));if(q_(_e)){const Qn=[vn];return iy(Qn,_e),Qn}return vn}function Jr(_e){return Fi(_e)?r.updateFunctionExpression(_e,Fa(_e.modifiers,Xr,bd),_e.asteriskToken,_e.name,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([])):r.createOmittedExpression()}function li(_e){return r.updateArrowFunction(_e,Fa(_e.modifiers,Xr,bd),void 0,Bn(_e.parameters,Ye,t),void 0,_e.equalsGreaterThanToken,sm(_e.body,Ye,t))}function Ir(_e){if(oI(_e))return;const vn=r.updateParameterDeclaration(_e,Fa(_e.modifiers,Qn=>Qf(Qn)?Ye(Qn):void 0,pc),_e.dotDotDotToken,ce.checkDefined(nr(_e.name,Ye,f9)),void 0,void 0,nr(_e.initializer,Ye,Nr));return vn!==_e&&(Ry(vn,_e),vr(vn,Db(_e)),Sp(vn,Db(_e)),Sa(vn.name,64)),vn}function _o(_e){if(q_(_e)){const vn=n3(_e.declarationList);return vn.length===0?void 0:vr(r.createExpressionStatement(r.inlineExpressions(Vn(vn,xt))),_e)}else return ia(_e,Ye,t)}function xt(_e){const vn=_e.name;return ld(vn)?Ik(_e,Ye,t,0,!1,jg):vr(r.createAssignment(zv(vn),ce.checkDefined(nr(_e.initializer,Ye,Nr))),_e)}function Kn(_e){const vn=r.updateVariableDeclaration(_e,ce.checkDefined(nr(_e.name,Ye,f9)),void 0,void 0,nr(_e.initializer,Ye,Nr));return _e.type&&npe(vn.name,_e.type),vn}function gn(_e){const vn=rv(_e.expression,-7);if(_7(vn)){const Qn=nr(_e.expression,Ye,Nr);return ce.assert(Qn),r.createPartiallyEmittedExpression(Qn,_e)}return ia(_e,Ye,t)}function qr(_e){const vn=nr(_e.expression,Ye,Nr);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function mt(_e){const vn=nr(_e.expression,Ye,FE);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function _r(_e){const vn=nr(_e.expression,Ye,Nr);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function Cn(_e){return r.updateCallExpression(_e,ce.checkDefined(nr(_e.expression,Ye,Nr)),void 0,Fa(_e.arguments,Ye,Nr))}function oi(_e){return r.updateNewExpression(_e,ce.checkDefined(nr(_e.expression,Ye,Nr)),void 0,Fa(_e.arguments,Ye,Nr))}function Qr(_e){return r.updateTaggedTemplateExpression(_e,ce.checkDefined(nr(_e.tag,Ye,Nr)),void 0,ce.checkDefined(nr(_e.template,Ye,m9)))}function co(_e){return r.updateJsxSelfClosingElement(_e,ce.checkDefined(nr(_e.tagName,Ye,JU)),void 0,ce.checkDefined(nr(_e.attributes,Ye,iD)))}function es(_e){return r.updateJsxOpeningElement(_e,ce.checkDefined(nr(_e.tagName,Ye,JU)),void 0,ce.checkDefined(nr(_e.attributes,Ye,iD)))}function Ui(_e){return!gP(_e)||gk(I)}function xu(_e){if(!Ui(_e))return r.createNotEmittedStatement(_e);const vn=[];let Qn=4;const hi=Un(vn,_e);hi&&(O!==4||Be!==de)&&(Qn|=1024);const pa=m_(_e),Zc=Yu(_e),ka=q_(_e)?r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0):r.getDeclarationName(_e,!1,!0);let bc=r.createLogicalOr(ka,r.createAssignment(ka,r.createObjectLiteralExpression()));if(q_(_e)){const yu=r.getLocalName(_e,!1,!0);bc=r.createAssignment(yu,bc)}const gu=r.createExpressionStatement(r.createCallExpression(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,pa)],void 0,We(_e,Zc)),void 0,[bc]));return tc(gu,_e),hi&&(MS(gu,void 0),uI(gu,void 0)),vr(gu,_e),cI(gu,Qn),vn.push(gu),vn}function We(_e,vn){const Qn=Ne;Ne=vn;const hi=[];l();const pa=Vn(_e.members,Re);return v2(hi,y()),Oi(hi,pa),Ne=Qn,r.createBlock(vr(r.createNodeArray(hi),_e.members),!0)}function Re(_e){const vn=al(_e,!1),Qn=wt(_e),hi=r.createAssignment(r.createElementAccessExpression(Ne,vn),Qn),pa=Qn.kind===11?hi:r.createAssignment(r.createElementAccessExpression(Ne,hi),vn);return vr(r.createExpressionStatement(vr(pa,_e)),_e)}function wt(_e){const vn=D.getConstantValue(_e);return vn!==void 0?typeof vn=="string"?r.createStringLiteral(vn):r.createNumericLiteral(vn):(Tv(),_e.initializer?ce.checkDefined(nr(_e.initializer,Ye,Nr)):r.createVoidZero())}function $e(_e){const vn=Il(_e,xp);return vn?u4(vn,gk(I)):!0}function Zt(_e){Ve||(Ve=new Map);const vn=an(_e);Ve.has(vn)||Ve.set(vn,_e)}function xe(_e){if(Ve){const vn=an(_e);return Ve.get(vn)===_e}return!0}function an(_e){return ce.assertNode(_e.name,An),_e.name.escapedText}function Un(_e,vn){const Qn=r.createVariableDeclaration(r.getLocalName(vn,!1,!0)),hi=Be.kind===312?0:1,pa=r.createVariableStatement(Fa(vn.modifiers,Xr,bd),r.createVariableDeclarationList([Qn],hi));return tc(Qn,vn),MS(Qn,void 0),uI(Qn,void 0),tc(pa,vn),Zt(vn),xe(vn)?(vn.kind===266?Sp(pa.declarationList,vn):Sp(pa,vn),Ry(pa,vn),cI(pa,2048),_e.push(pa),!0):!1}function rr(_e){if(!$e(_e))return r.createNotEmittedStatement(_e);ce.assertNode(_e.name,An,"A TypeScript namespace should have an Identifier name."),Kh();const vn=[];let Qn=4;const hi=Un(vn,_e);hi&&(O!==4||Be!==de)&&(Qn|=1024);const pa=m_(_e),Zc=Yu(_e),ka=q_(_e)?r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0):r.getDeclarationName(_e,!1,!0);let bc=r.createLogicalOr(ka,r.createAssignment(ka,r.createObjectLiteralExpression()));if(q_(_e)){const yu=r.getLocalName(_e,!1,!0);bc=r.createAssignment(yu,bc)}const gu=r.createExpressionStatement(r.createCallExpression(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,pa)],void 0,mi(_e,Zc)),void 0,[bc]));return tc(gu,_e),hi&&(MS(gu,void 0),uI(gu,void 0)),vr(gu,_e),cI(gu,Qn),vn.push(gu),vn}function mi(_e,vn){const Qn=Ne,hi=ue,pa=Ve;Ne=vn,ue=_e,Ve=void 0;const Zc=[];l();let ka,bc;if(_e.body)if(_e.body.kind===268)Ft(_e.body,yu=>Oi(Zc,Fa(yu.statements,tt,uf))),ka=_e.body.statements,bc=_e.body;else{const yu=rr(_e.body);yu&&(ls(yu)?Oi(Zc,yu):Zc.push(yu));const Xm=Ji(_e).body;ka=TA(Xm.statements,-1)}v2(Zc,y()),Ne=Qn,ue=hi,Ve=pa;const gu=r.createBlock(vr(r.createNodeArray(Zc),ka),!0);return vr(gu,bc),(!_e.body||_e.body.kind!==268)&&Sa(gu,Tp(gu)|3072),gu}function Ji(_e){if(_e.body.kind===267)return Ji(_e.body)||_e.body}function zo(_e){if(!_e.importClause)return _e;if(_e.importClause.isTypeOnly)return;const vn=nr(_e.importClause,Ca,lC);return vn||I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2?r.updateImportDeclaration(_e,void 0,vn,_e.moduleSpecifier,_e.assertClause):void 0}function Ca(_e){ce.assert(!_e.isTypeOnly);const vn=yy(_e)?_e.name:void 0,Qn=nr(_e.namedBindings,Qa,XD);return vn||Qn?r.updateImportClause(_e,!1,vn,Qn):void 0}function Qa(_e){if(_e.kind===274)return yy(_e)?_e:void 0;{const vn=I.verbatimModuleSyntax||I.preserveValueImports&&(I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2),Qn=Fa(_e.elements,Ks,oS);return vn||gt(Qn)?r.updateNamedImports(_e,Qn):void 0}}function Ks(_e){return!_e.isTypeOnly&&yy(_e)?_e:void 0}function vs(_e){return I.verbatimModuleSyntax||D.isValueAliasDeclaration(_e)?ia(_e,Ye,t):void 0}function ou(_e){if(_e.isTypeOnly)return;if(!_e.exportClause||AP(_e.exportClause))return _e;const vn=I.verbatimModuleSyntax||!!_e.moduleSpecifier&&(I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2),Qn=nr(_e.exportClause,hi=>fp(hi,vn),GU);return Qn?r.updateExportDeclaration(_e,void 0,_e.isTypeOnly,Qn,_e.moduleSpecifier,_e.assertClause):void 0}function qd(_e,vn){const Qn=Fa(_e.elements,Ha,Oy);return vn||gt(Qn)?r.updateNamedExports(_e,Qn):void 0}function z_(_e){return r.updateNamespaceExport(_e,ce.checkDefined(nr(_e.name,Ye,An)))}function fp(_e,vn){return AP(_e)?z_(_e):qd(_e,vn)}function Ha(_e){return!_e.isTypeOnly&&(I.verbatimModuleSyntax||D.isValueAliasDeclaration(_e))?_e:void 0}function mu(_e){return yy(_e)||!Wv(de)&&D.isTopLevelValueImportEqualsWithEntityName(_e)}function x_(_e){if(_e.isTypeOnly)return;if(qM(_e)){const Qn=yy(_e);return!Qn&&I.importsNotUsedAsValues===1?tc(vr(r.createImportDeclaration(void 0,void 0,_e.moduleReference.expression,void 0),_e),_e):Qn?ia(_e,Ye,t):void 0}if(!mu(_e))return;const vn=gpe(r,_e.moduleReference);return Sa(vn,7168),U0(_e)||!q_(_e)?tc(vr(r.createVariableStatement(Fa(_e.modifiers,Xr,bd),r.createVariableDeclarationList([tc(r.createVariableDeclaration(_e.name,void 0,void 0,vn),_e)])),_e),_e):tc(Oh(_e.name,vn,_e),_e)}function q_(_e){return ue!==void 0&&il(_e,1)}function Ma(_e){return ue===void 0&&il(_e,1)}function U0(_e){return Ma(_e)&&!il(_e,1024)}function c_(_e){return Ma(_e)&&il(_e,1024)}function Kd(_e){const vn=r.createAssignment(r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0),r.getLocalName(_e));Sp(vn,tv(_e.name?_e.name.pos:_e.pos,_e.end));const Qn=r.createExpressionStatement(vn);return Sp(Qn,tv(-1,_e.end)),Qn}function iy(_e,vn){_e.push(Kd(vn))}function Oh(_e,vn,Qn){return vr(r.createExpressionStatement(r.createAssignment(r.getNamespaceMemberName(Ne,_e,!1,!0),vn)),Qn)}function jg(_e,vn,Qn){return vr(r.createAssignment(zv(_e),vn),Qn)}function zv(_e){return r.getNamespaceMemberName(Ne,_e,!1,!0)}function m_(_e){const vn=r.getGeneratedNameForNode(_e);return Sp(vn,_e.name),vn}function Yu(_e){return r.getGeneratedNameForNode(_e)}function Tv(){Le&8||(Le|=8,t.enableSubstitution(80))}function Kh(){Le&2||(Le|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function uS(_e){return Ic(_e).kind===267}function H0(_e){return Ic(_e).kind===266}function fx(_e,vn,Qn){const hi=ht,pa=de;tl(vn)&&(de=vn),Le&2&&uS(vn)&&(ht|=2),Le&8&&H0(vn)&&(ht|=8),te(_e,vn,Qn),ht=hi,de=pa}function rd(_e,vn){return vn=oe(_e,vn),_e===1?lm(vn):BT(vn)?Mg(vn):vn}function Mg(_e){if(Le&2){const vn=_e.name,Qn=po(vn);if(Qn){if(_e.objectAssignmentInitializer){const hi=r.createAssignment(Qn,_e.objectAssignmentInitializer);return vr(r.createPropertyAssignment(vn,hi),_e)}return vr(r.createPropertyAssignment(vn,Qn),_e)}}return _e}function lm(_e){switch(_e.kind){case 80:return nm(_e);case 211:return hy(_e);case 212:return fS(_e)}return _e}function nm(_e){return po(_e)||_e}function po(_e){if(Le&ht&&!Om(_e)&&!T6(_e)){const vn=D.getReferencedExportContainer(_e,!1);if(vn&&vn.kind!==312&&(ht&2&&vn.kind===267||ht&8&&vn.kind===266))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode(vn),_e),_e)}}function hy(_e){return vE(_e)}function fS(_e){return vE(_e)}function GT(_e){return _e.replace(/\*\//g,"*_/")}function vE(_e){const vn=oh(_e);if(vn!==void 0){koe(_e,vn);const Qn=typeof vn=="string"?r.createStringLiteral(vn):vn<0?r.createPrefixUnaryExpression(41,r.createNumericLiteral(Math.abs(vn))):r.createNumericLiteral(vn);if(!I.removeComments){const hi=Ic(_e,Kf);sW(Qn,3,` ${GT(Yv(hi))} `)}return Qn}return _e}function oh(_e){if(!F0(I))return sa(_e)||Ed(_e)?D.getConstantValue(_e):void 0}function yy(_e){return I.verbatimModuleSyntax||Rs(_e)||(I.preserveValueImports?D.isValueAliasDeclaration(_e):D.isReferencedAliasDeclaration(_e))}}var Q2e,l4e=G({"src/compiler/transformers/ts.ts"(){Ad(),Q2e=!1}});function Ame(t){const{factory:r,getEmitHelperFactory:s,hoistVariableDeclaration:l,endLexicalEnvironment:m,startLexicalEnvironment:y,resumeLexicalEnvironment:T,addBlockScopedVariable:D}=t,I=t.getEmitResolver(),W=t.getCompilerOptions(),O=iu(W),V=X9(W),ee=!!W.experimentalDecorators,te=!V,oe=V&&O<9,de=te||oe,ue=O<9,Ne=O<99?-1:V?0:3,Be=O<9,Ve=Be&&O>=2,pt=de||ue||Ne===-1,Le=t.onSubstituteNode;t.onSubstituteNode=fS;const ht=t.onEmitNode;t.onEmitNode=hy;let ke=!1,_t,Dt,Ft,it,Ye;const ut=new Map,lt=new Set;let zt,Wt,tt=!1,Mn=!1;return Vx(t,kn);function kn(_e){if(_e.isDeclarationFile||(Ye=void 0,ke=!!(dh(_e)&32),!pt&&!ke))return _e;const vn=ia(_e,un,t);return JN(vn,t.readEmitHelpers()),vn}function cr(_e){switch(_e.kind){case 129:return $a()?void 0:_e;default:return to(_e,bd)}}function un(_e){if(!(_e.transformFlags&16777216)&&!(_e.transformFlags&134234112))return _e;switch(_e.kind){case 129:return ce.fail("Use `modifierVisitor` instead.");case 263:return Ui(_e);case 231:return We(_e);case 175:case 172:return ce.fail("Use `classElementVisitor` instead.");case 303:return Gn(_e);case 243:return Ur(_e);case 260:return so(_e);case 169:return ho(_e);case 208:return di(_e);case 277:return Nc(_e);case 81:return Cr(_e);case 211:return sl(_e);case 212:return vc(_e);case 224:case 225:return er(_e,!1);case 226:return qr(_e,!1);case 217:return _r(_e,!1);case 213:return _o(_e);case 244:return li(_e);case 215:return xt(_e);case 248:return Jr(_e);case 110:return $e(_e);case 262:case 218:return Ku(void 0,on,_e);case 176:case 174:case 177:case 178:return Ku(_e,on,_e);default:return on(_e)}}function on(_e){return ia(_e,un,t)}function pn(_e){switch(_e.kind){case 224:case 225:return er(_e,!0);case 226:return qr(_e,!0);case 361:return mt(_e,!0);case 217:return _r(_e,!0);default:return un(_e)}}function Or(_e){switch(_e.kind){case 298:return ia(_e,Or,t);case 233:return co(_e);default:return un(_e)}}function Xr(_e){switch(_e.kind){case 210:case 209:return po(_e);default:return un(_e)}}function Ut(_e){switch(_e.kind){case 176:return Ku(_e,Gs,_e);case 177:case 178:case 174:return Ku(_e,_u,_e);case 172:return Ku(_e,jc,_e);case 175:return Ku(_e,wt,_e);case 167:return ro(_e);case 240:return _e;default:return pc(_e)?cr(_e):un(_e)}}function In(_e){switch(_e.kind){case 167:return ro(_e);default:return un(_e)}}function gr(_e){switch(_e.kind){case 172:return ta(_e);case 177:case 178:return Ut(_e);default:ce.assertMissingNode(_e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Cr(_e){return!ue||uf(_e.parent)?_e:tc(r.createIdentifier(""),_e)}function ei(_e){const vn=Yu(_e.left);if(vn){const Qn=nr(_e.right,un,Nr);return tc(s().createClassPrivateFieldInHelper(vn.brandCheckIdentifier,Qn),_e)}return ia(_e,un,t)}function Gn(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function Ur(_e){const vn=it;it=[];const Qn=ia(_e,un,t),hi=gt(it)?[Qn,...it]:Qn;return it=vn,hi}function so(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function ho(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function di(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function Nc(_e){return Hd(_e,gn)&&(_e=ax(t,_e,!0,_e.isExportEquals?"":"default")),ia(_e,un,t)}function ha(_e){return gt(Ft)&&(sb(_e)?(Ft.push(_e.expression),_e=r.updateParenthesizedExpression(_e,r.inlineExpressions(Ft))):(Ft.push(_e),_e=r.inlineExpressions(Ft)),Ft=void 0),_e}function ro(_e){const vn=nr(_e.expression,un,Nr);return r.updateComputedPropertyName(_e,ha(vn))}function Gs(_e){return zt?an(_e,zt):on(_e)}function Oc(_e){return!!(ue||Ny(_e)&&dh(_e)&32)}function _u(_e){if(ce.assert(!Fx(_e)),!Mf(_e)||!Oc(_e))return ia(_e,Ut,t);const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),!vn.isValid)return _e;const Qn=al(_e);Qn&&q_().push(r.createAssignment(Qn,r.createFunctionExpression(gi(_e.modifiers,hi=>bd(hi)&&!dW(hi)&&!pW(hi)),_e.asteriskToken,Qn,void 0,Bn(_e.parameters,un,t),void 0,sm(_e.body,un,t))))}function Ku(_e,vn,Qn){if(_e!==Wt){const hi=Wt;Wt=_e;const pa=vn(Qn);return Wt=hi,pa}return vn(Qn)}function al(_e){ce.assert(Gu(_e.name));const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),vn.kind==="m")return vn.methodName;if(vn.kind==="a"){if(J2(_e))return vn.getterName;if(_P(_e))return vn.setterName}}function Rr(){const _e=mu(),vn=_e.classThis??_e.classConstructor??(zt==null?void 0:zt.name);return ce.checkDefined(vn)}function mc(_e){const vn=lI(_e),Qn=cE(_e),hi=_e.name;let pa=hi,Zc=hi;if(am(hi)&&!aD(hi.expression)){const av=HEe(hi);if(av)pa=r.updateComputedPropertyName(hi,nr(hi.expression,un,Nr)),Zc=r.updateComputedPropertyName(hi,av.left);else{const Fh=r.createTempVariable(l);Sp(Fh,hi.expression);const J0=nr(hi.expression,un,Nr),Eg=r.createAssignment(Fh,J0);Sp(Eg,hi.expression),pa=r.updateComputedPropertyName(hi,Eg),Zc=r.updateComputedPropertyName(hi,Fh)}}const ka=Fa(_e.modifiers,cr,bd),bc=$J(r,_e,ka,_e.initializer);tc(bc,_e),Sa(bc,3072),Sp(bc,Qn);const gu=e_(_e)?Rr():r.createThis(),yu=jG(r,_e,ka,pa,gu);tc(yu,_e),Ry(yu,vn),Sp(yu,Qn);const Xm=r.createModifiersFromModifierFlags(dk(ka)),Lg=yUe(r,_e,Xm,Zc,gu);return tc(Lg,_e),Sa(Lg,3072),Sp(Lg,Qn),dE([bc,yu,Lg],gr,Mv)}function Ea(_e){if(Oc(_e)){const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),!vn.isValid)return _e;if(vn.isStatic&&!ue){const Qn=Ji(_e,r.createThis());if(Qn)return r.createClassStaticBlockDeclaration(r.createBlock([Qn],!0))}return}return te&&!e_(_e)&&(Ye!=null&&Ye.data)&&Ye.data.facts&16?r.updatePropertyDeclaration(_e,Fa(_e.modifiers,un,pc),_e.name,void 0,void 0,void 0):(Hd(_e,gn)&&(_e=ax(t,_e)),r.updatePropertyDeclaration(_e,Fa(_e.modifiers,cr,bd),nr(_e.name,In,_y),void 0,void 0,nr(_e.initializer,un,Nr)))}function Fi(_e){if(de&&!rb(_e)){const vn=z_(_e.name,!!_e.initializer||V);if(vn&&q_().push(...JEe(vn)),e_(_e)&&!ue){const Qn=Ji(_e,r.createThis());if(Qn){const hi=r.createClassStaticBlockDeclaration(r.createBlock([Qn]));return tc(hi,_e),Ry(hi,_e),Ry(Qn,{pos:-1,end:-1}),MS(Qn,void 0),uI(Qn,void 0),hi}}return}return r.updatePropertyDeclaration(_e,Fa(_e.modifiers,cr,bd),nr(_e.name,In,_y),void 0,void 0,nr(_e.initializer,un,Nr))}function ta(_e){return ce.assert(!Fx(_e),"Decorators should already have been transformed and elided."),Mf(_e)?Ea(_e):Fi(_e)}function $a(){return Ne===-1||Ne===3&&!!(Ye!=null&&Ye.data)&&!!(Ye.data.facts&16)}function jc(_e){return rb(_e)&&($a()||Ny(_e)&&dh(_e)&32)?mc(_e):ta(_e)}function Xu(){return!!Wt&&Ny(Wt)&&Am(Wt)&&rb(Ic(Wt))}function Lo(_e){if(Xu()){const vn=rv(_e);vn.kind===110&<.add(vn)}}function To(_e,vn){return vn=nr(vn,un,Nr),Lo(vn),Aa(_e,vn)}function Aa(_e,vn){switch(Ry(vn,TA(vn,-1)),_e.kind){case"a":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.getterName);case"m":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.methodName);case"f":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return ce.fail("Access helpers should not be created for untransformed private elements");default:ce.assertNever(_e,"Unknown private element type")}}function sl(_e){if(Gu(_e.name)){const vn=Yu(_e.name);if(vn)return vr(tc(To(vn,_e.expression),_e),_e)}if(Ve&&Wt&&Z1(_e)&&An(_e.name)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=r.createReflectGetCall(Qn,r.createStringLiteralFromNode(_e.name),vn);return tc(pa,_e.expression),vr(pa,_e.expression),pa}}return ia(_e,un,t)}function vc(_e){if(Ve&&Wt&&Z1(_e)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=r.createReflectGetCall(Qn,nr(_e.argumentExpression,un,Nr),vn);return tc(pa,_e.expression),vr(pa,_e.expression),pa}}return ia(_e,un,t)}function er(_e,vn){if(_e.operator===46||_e.operator===47){const Qn=_g(_e.operand);if(kT(Qn)){let hi;if(hi=Yu(Qn.name)){const pa=nr(Qn.expression,un,Nr);Lo(pa);const{readExpression:Zc,initializeExpression:ka}=Ir(pa);let bc=To(hi,Zc);const gu=yk(_e)||vn?void 0:r.createTempVariable(l);return bc=REe(r,_e,bc,l,gu),bc=Cn(hi,ka||Zc,bc,64),tc(bc,_e),vr(bc,_e),gu&&(bc=r.createComma(bc,gu),vr(bc,_e)),bc}}else if(Ve&&Wt&&Z1(Qn)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:hi,superClassReference:pa,facts:Zc}=Ye.data;if(Zc&1){const ka=qd(Qn);return yk(_e)?r.updatePrefixUnaryExpression(_e,ka):r.updatePostfixUnaryExpression(_e,ka)}if(hi&&pa){let ka,bc;if(sa(Qn)?An(Qn.name)&&(bc=ka=r.createStringLiteralFromNode(Qn.name)):aD(Qn.argumentExpression)?bc=ka=Qn.argumentExpression:(bc=r.createTempVariable(l),ka=r.createAssignment(bc,nr(Qn.argumentExpression,un,Nr))),ka&&bc){let gu=r.createReflectGetCall(pa,bc,hi);vr(gu,Qn);const yu=vn?void 0:r.createTempVariable(l);return gu=REe(r,_e,gu,l,yu),gu=r.createReflectSetCall(pa,ka,gu,hi),tc(gu,_e),vr(gu,_e),yu&&(gu=r.createComma(gu,yu),vr(gu,_e)),gu}}}}return ia(_e,un,t)}function Jr(_e){return r.updateForStatement(_e,nr(_e.initializer,pn,mA),nr(_e.condition,un,Nr),nr(_e.incrementor,pn,Nr),pE(_e.statement,un,t))}function li(_e){return r.updateExpressionStatement(_e,nr(_e.expression,pn,Nr))}function Ir(_e){const vn=rh(_e)?_e:r.cloneNode(_e);if(_e.kind===110&<.has(_e)&<.add(vn),aD(_e))return{readExpression:vn,initializeExpression:void 0};const Qn=r.createTempVariable(l),hi=r.createAssignment(Qn,vn);return{readExpression:Qn,initializeExpression:hi}}function _o(_e){var vn;if(kT(_e.expression)&&Yu(_e.expression.name)){const{thisArg:Qn,target:hi}=r.createCallBinding(_e.expression,l,O);return R8(_e)?r.updateCallChain(_e,r.createPropertyAccessChain(nr(hi,un,Nr),_e.questionDotToken,"call"),void 0,void 0,[nr(Qn,un,Nr),...Fa(_e.arguments,un,Nr)]):r.updateCallExpression(_e,r.createPropertyAccessExpression(nr(hi,un,Nr),"call"),void 0,[nr(Qn,un,Nr),...Fa(_e.arguments,un,Nr)])}if(Ve&&Wt&&Z1(_e.expression)&&OQ(Wt)&&((vn=Ye==null?void 0:Ye.data)!=null&&vn.classConstructor)){const Qn=r.createFunctionCallCall(nr(_e.expression,un,Nr),Ye.data.classConstructor,Fa(_e.arguments,un,Nr));return tc(Qn,_e),vr(Qn,_e),Qn}return ia(_e,un,t)}function xt(_e){var vn;if(kT(_e.tag)&&Yu(_e.tag.name)){const{thisArg:Qn,target:hi}=r.createCallBinding(_e.tag,l,O);return r.updateTaggedTemplateExpression(_e,r.createCallExpression(r.createPropertyAccessExpression(nr(hi,un,Nr),"bind"),void 0,[nr(Qn,un,Nr)]),void 0,nr(_e.template,un,m9))}if(Ve&&Wt&&Z1(_e.tag)&&OQ(Wt)&&((vn=Ye==null?void 0:Ye.data)!=null&&vn.classConstructor)){const Qn=r.createFunctionBindCall(nr(_e.tag,un,Nr),Ye.data.classConstructor,[]);return tc(Qn,_e),vr(Qn,_e),r.updateTaggedTemplateExpression(_e,Qn,void 0,nr(_e.template,un,m9))}return ia(_e,un,t)}function Kn(_e){if(Ye&&ut.set(Ic(_e),Ye),ue){if(Mae(_e)){const hi=nr(_e.body.statements[0].expression,un,Nr);return wy(hi,!0)&&hi.left===hi.right?void 0:hi}if(FW(_e))return nr(_e.body.statements[0].expression,un,Nr);y();let vn=Ku(_e,hi=>Fa(hi,un,uf),_e.body.statements);vn=r.mergeLexicalEnvironment(vn,m());const Qn=r.createImmediatelyInvokedArrowFunction(vn);return tc(_g(Qn.expression),_e),cI(_g(Qn.expression),4),tc(Qn,_e),vr(Qn,_e),Qn}}function gn(_e){if(B0(_e)&&!_e.name){const vn=v$(_e);return gt(vn,FW)?!1:(ue||!!dh(_e))&>(vn,hi=>nu(hi)||Mf(hi)||de&&b$(hi))}return!1}function qr(_e,vn){if(Tg(_e)){const Qn=Ft;Ft=void 0,_e=r.updateBinaryExpression(_e,nr(_e.left,Xr,Nr),_e.operatorToken,nr(_e.right,un,Nr));const hi=gt(Ft)?r.inlineExpressions(uN([...Ft,_e])):_e;return Ft=Qn,hi}if(wy(_e)){Hd(_e,gn)&&(_e=ax(t,_e),ce.assertNode(_e,wy));const Qn=rv(_e.left,9);if(kT(Qn)){const hi=Yu(Qn.name);if(hi)return vr(tc(Cn(hi,Qn.expression,_e.right,_e.operatorToken.kind),_e),_e)}else if(Ve&&Wt&&Z1(_e.left)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:hi,superClassReference:pa,facts:Zc}=Ye.data;if(Zc&1)return r.updateBinaryExpression(_e,qd(_e.left),_e.operatorToken,nr(_e.right,un,Nr));if(hi&&pa){let ka=Ed(_e.left)?nr(_e.left.argumentExpression,un,Nr):An(_e.left.name)?r.createStringLiteralFromNode(_e.left.name):void 0;if(ka){let bc=nr(_e.right,un,Nr);if(cj(_e.operatorToken.kind)){let yu=ka;aD(ka)||(yu=r.createTempVariable(l),ka=r.createAssignment(yu,ka));const Xm=r.createReflectGetCall(pa,yu,hi);tc(Xm,_e.left),vr(Xm,_e.left),bc=r.createBinaryExpression(Xm,wQ(_e.operatorToken.kind),bc),vr(bc,_e)}const gu=vn?void 0:r.createTempVariable(l);return gu&&(bc=r.createAssignment(gu,bc),vr(gu,_e)),bc=r.createReflectSetCall(pa,ka,bc,hi),tc(bc,_e),vr(bc,_e),gu&&(bc=r.createComma(bc,gu),vr(bc,_e)),bc}}}}return f4e(_e)?ei(_e):ia(_e,un,t)}function mt(_e,vn){const Qn=vn?fme(_e.elements,pn):fme(_e.elements,un,pn);return r.updateCommaListExpression(_e,Qn)}function _r(_e,vn){const Qn=vn?pn:un,hi=nr(_e.expression,Qn,Nr);return r.updateParenthesizedExpression(_e,hi)}function Cn(_e,vn,Qn,hi){if(vn=nr(vn,un,Nr),Qn=nr(Qn,un,Nr),Lo(vn),cj(hi)){const{readExpression:pa,initializeExpression:Zc}=Ir(vn);vn=Zc||pa,Qn=r.createBinaryExpression(Aa(_e,pa),wQ(hi),Qn)}switch(Ry(vn,TA(vn,-1)),_e.kind){case"a":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,_e.setterName);case"m":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return ce.fail("Access helpers should not be created for untransformed private elements");default:ce.assertNever(_e,"Unknown private element type")}}function oi(_e){return gi(_e.members,LHe)}function Qr(_e){var vn;let Qn=0;const hi=Ic(_e);Kc(hi)&&Mx(ee,hi)&&(Qn|=1),ue&&(o4e(_e)||X2e(_e))&&(Qn|=2);let pa=!1,Zc=!1,ka=!1,bc=!1;for(const yu of _e.members)e_(yu)?((yu.name&&(Gu(yu.name)||rb(yu))&&ue||rb(yu)&&Ne===-1&&!_e.name&&!((vn=_e.emitNode)!=null&&vn.classThis))&&(Qn|=2),(Os(yu)||nu(yu))&&(Be&&yu.transformFlags&16384&&(Qn|=8,Qn&1||(Qn|=2)),Ve&&yu.transformFlags&134217728&&(Qn&1||(Qn|=6)))):fk(Ic(yu))||(rb(yu)?(bc=!0,ka||(ka=Mf(yu))):Mf(yu)?(ka=!0,I.getNodeCheckFlags(yu)&262144&&(Qn|=2)):Os(yu)&&(pa=!0,Zc||(Zc=!!yu.initializer)));return(oe&&pa||te&&Zc||ue&&ka||ue&&bc&&Ne===-1)&&(Qn|=16),Qn}function co(_e){var vn;if((((vn=Ye==null?void 0:Ye.data)==null?void 0:vn.facts)||0)&4){const hi=r.createTempVariable(l,!0);return mu().superClassReference=hi,r.updateExpressionWithTypeArguments(_e,r.createAssignment(hi,nr(_e.expression,un,Nr)),void 0)}return ia(_e,un,t)}function es(_e,vn){var Qn;const hi=zt,pa=Ft,Zc=Ye;zt=_e,Ft=void 0,fp();const ka=dh(_e)&32;if(ue||ka){const yu=o_(_e);if(yu&&An(yu))x_().data.className=yu;else if((Qn=_e.emitNode)!=null&&Qn.assignedName&&Wp(_e.emitNode.assignedName)){if(_e.emitNode.assignedName.textSourceNode&&An(_e.emitNode.assignedName.textSourceNode))x_().data.className=_e.emitNode.assignedName.textSourceNode;else if(rE(_e.emitNode.assignedName.text,O)){const Xm=r.createIdentifier(_e.emitNode.assignedName.text);x_().data.className=Xm}}}if(ue){const yu=oi(_e);gt(yu)&&(x_().data.weakSetName=zv("instances",yu[0].name))}const bc=Qr(_e);bc&&(mu().facts=bc),bc&8&&vs();const gu=vn(_e,bc);return Ha(),ce.assert(Ye===Zc),zt=hi,Ft=pa,gu}function Ui(_e){return es(_e,xu)}function xu(_e,vn){var Qn,hi;let pa;if(vn&2)if(ue&&((Qn=_e.emitNode)!=null&&Qn.classThis))mu().classConstructor=_e.emitNode.classThis,pa=r.createAssignment(_e.emitNode.classThis,r.getInternalName(_e));else{const Eg=r.createTempVariable(l,!0);mu().classConstructor=r.cloneNode(Eg),pa=r.createAssignment(Eg,r.getInternalName(_e))}(hi=_e.emitNode)!=null&&hi.classThis&&(mu().classThis=_e.emitNode.classThis);const Zc=I.getNodeCheckFlags(_e)&262144,ka=il(_e,1),bc=il(_e,1024);let gu=Fa(_e.modifiers,cr,bd);const yu=Fa(_e.heritageClauses,Or,rT),{members:Xm,prologue:Lg}=Zt(_e),av=[];if(pa&&q_().unshift(pa),gt(Ft)&&av.push(r.createExpressionStatement(r.inlineExpressions(Ft))),te||ue||dh(_e)&32){const Eg=v$(_e);gt(Eg)&&mi(av,Eg,r.getInternalName(_e))}av.length>0&&ka&&bc&&(gu=Fa(gu,Eg=>Epe(Eg)?void 0:Eg,bd),av.push(r.createExportAssignment(void 0,!1,r.getLocalName(_e,!1,!0))));const Fh=mu().classConstructor;Zc&&Fh&&(Ks(),Dt[e1(_e)]=Fh);const J0=r.updateClassDeclaration(_e,gu,_e.name,void 0,yu,Xm);return av.unshift(J0),Lg&&av.unshift(r.createExpressionStatement(Lg)),av}function We(_e){return es(_e,Re)}function Re(_e,vn){var Qn,hi,pa;const Zc=!!(vn&1),ka=v$(_e),bc=I.getNodeCheckFlags(_e),gu=bc&262144;let yu;function Xm(){var Ev;if(ue&&((Ev=_e.emitNode)!=null&&Ev.classThis))return mu().classConstructor=_e.emitNode.classThis;const S0=bc&32768,k1=r.createTempVariable(S0?D:l,!0);return mu().classConstructor=r.cloneNode(k1),k1}(Qn=_e.emitNode)!=null&&Qn.classThis&&(mu().classThis=_e.emitNode.classThis),vn&2&&(yu??(yu=Xm()));const Lg=Fa(_e.modifiers,cr,bd),av=Fa(_e.heritageClauses,Or,rT),{members:Fh,prologue:J0}=Zt(_e),Eg=r.updateClassExpression(_e,Lg,_e.name,void 0,av,Fh),Sv=[];if(J0&&Sv.push(J0),(ue||dh(_e)&32)&>(ka,Ev=>nu(Ev)||Mf(Ev)||de&&b$(Ev))||gt(Ft))if(Zc)ce.assertIsDefined(it,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(Ft)&&Oi(it,Vn(Ft,r.createExpressionStatement)),gt(ka)&&mi(it,ka,((hi=_e.emitNode)==null?void 0:hi.classThis)??r.getInternalName(_e)),yu?Sv.push(r.createAssignment(yu,Eg)):ue&&((pa=_e.emitNode)!=null&&pa.classThis)?Sv.push(r.createAssignment(_e.emitNode.classThis,Eg)):Sv.push(Eg);else{if(yu??(yu=Xm()),gu){Ks();const Ev=r.cloneNode(yu);Ev.emitNode.autoGenerate.flags&=-9,Dt[e1(_e)]=Ev}Sv.push(r.createAssignment(yu,Eg)),Oi(Sv,Ft),Oi(Sv,zo(ka,yu)),Sv.push(r.cloneNode(yu))}else Sv.push(Eg);return Sv.length>1&&(cI(Eg,131072),Sv.forEach(x1)),r.inlineExpressions(Sv)}function wt(_e){if(!ue)return ia(_e,un,t)}function $e(_e){if(Be&&Wt&&nu(Wt)&&(Ye!=null&&Ye.data)){const{classThis:vn,classConstructor:Qn}=Ye.data;return vn??Qn??_e}return _e}function Zt(_e){const vn=!!(dh(_e)&32);if(ue||ke){for(const ka of _e.members)if(Mf(ka))if(Oc(ka))jg(ka,ka.name,Ma);else{const bc=x_();LW(bc,ka.name,{kind:"untransformed"})}if(ue&>(oi(_e))&&xe(),$a()){for(const ka of _e.members)if(rb(ka)){const bc=r.getGeneratedPrivateNameForNode(ka.name,void 0,"_accessor_storage");if(ue||vn&&Ny(ka))jg(ka,bc,U0);else{const gu=x_();LW(gu,bc,{kind:"untransformed"})}}}}let Qn=Fa(_e.members,Ut,Mv),hi;gt(Qn,pg)||(hi=an(void 0,_e));let pa,Zc;if(!ue&>(Ft)){let ka=r.createExpressionStatement(r.inlineExpressions(Ft));if(ka.transformFlags&134234112){const gu=r.createTempVariable(l),yu=r.createArrowFunction(void 0,void 0,[],void 0,void 0,r.createBlock([ka]));pa=r.createAssignment(gu,yu),ka=r.createExpressionStatement(r.createCallExpression(gu,void 0,[]))}const bc=r.createBlock([ka]);Zc=r.createClassStaticBlockDeclaration(bc),Ft=void 0}if(hi||Zc){let ka;const bc=lr(Qn,Mae),gu=lr(Qn,FW);ka=ur(ka,bc),ka=ur(ka,gu),ka=ur(ka,hi),ka=ur(ka,Zc);const yu=bc||gu?gi(Qn,Xm=>Xm!==bc&&Xm!==gu):Qn;ka=Oi(ka,yu),Qn=vr(r.createNodeArray(ka),_e.members)}return{members:Qn,prologue:pa}}function xe(){const{weakSetName:_e}=x_().data;ce.assert(_e,"weakSetName should be set in private identifier environment"),q_().push(r.createAssignment(_e,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[])))}function an(_e,vn){if(_e=nr(_e,un,pg),!(Ye!=null&&Ye.data)||!(Ye.data.facts&16))return _e;const Qn=hA(vn),hi=!!(Qn&&rv(Qn.expression).kind!==106),pa=Bn(_e?_e.parameters:void 0,un,t),Zc=rr(vn,_e,hi);return Zc?_e?(ce.assert(pa),r.updateConstructorDeclaration(_e,void 0,pa,Zc)):x1(tc(vr(r.createConstructorDeclaration(void 0,pa??[],Zc),_e||vn),_e)):_e}function Un(_e,vn,Qn,hi,pa,Zc,ka){const bc=hi[pa],gu=vn[bc];if(Oi(_e,Fa(vn,un,uf,Qn,bc-Qn)),Qn=bc+1,AR(gu)){const yu=[];Un(yu,gu.tryBlock.statements,0,hi,pa+1,Zc,ka);const Xm=r.createNodeArray(yu);vr(Xm,gu.tryBlock.statements),_e.push(r.updateTryStatement(gu,r.updateBlock(gu.tryBlock,yu),nr(gu.catchClause,un,CP),nr(gu.finallyBlock,un,E_)))}else{for(Oi(_e,Fa(vn,un,uf,bc,1));Qn!!Fh.initializer||Gu(Fh.name)||_k(Fh)));const Zc=oi(_e),ka=gt(pa)||gt(Zc);if(!vn&&!ka)return sm(void 0,un,t);T();const bc=!vn&&Qn;let gu=0,yu=[];const Xm=[],Lg=r.createThis();if(ou(Xm,Zc,Lg),vn){const Fh=gi(hi,Eg=>Eb(Ic(Eg),vn)),J0=gi(pa,Eg=>!Eb(Ic(Eg),vn));mi(Xm,Fh,Lg),mi(Xm,J0,Lg)}else mi(Xm,pa,Lg);if(vn!=null&&vn.body){gu=r.copyPrologue(vn.body.statements,yu,!1,un);const Fh=IA(vn.body.statements,gu);if(Fh.length)Un(yu,vn.body.statements,gu,Fh,0,Xm,vn);else{for(;gu=yu.length?vn.body.multiLine??yu.length>0:yu.length>0;return vr(r.createBlock(vr(r.createNodeArray(yu),vn?vn.body.statements:_e.members),av),vn?vn.body:void 0)}function mi(_e,vn,Qn){for(const hi of vn){if(e_(hi)&&!ue)continue;const pa=Ji(hi,Qn);pa&&_e.push(pa)}}function Ji(_e,vn){const Qn=nu(_e)?Ku(_e,Kn,_e):Ca(_e,vn);if(!Qn)return;const hi=r.createExpressionStatement(Qn);tc(hi,_e),cI(hi,Tp(_e)&3072),Ry(hi,_e);const pa=Ic(_e);return Pu(pa)?(Sp(hi,pa),Zde(hi)):Sp(hi,Db(_e)),MS(Qn,void 0),uI(Qn,void 0),_k(pa)&&cI(hi,3072),hi}function zo(_e,vn){const Qn=[];for(const hi of _e){const pa=nu(hi)?Ku(hi,Kn,hi):Ku(hi,()=>Ca(hi,vn),void 0);pa&&(x1(pa),tc(pa,hi),cI(pa,Tp(hi)&3072),Sp(pa,Db(hi)),Ry(pa,hi),Qn.push(pa))}return Qn}function Ca(_e,vn){var Qn;const hi=Wt,pa=Qa(_e,vn);return pa&&Ny(_e)&&((Qn=Ye==null?void 0:Ye.data)!=null&&Qn.facts)&&(tc(pa,_e),cI(pa,4),Sp(pa,cE(_e.name)),ut.set(Ic(_e),Ye)),Wt=hi,pa}function Qa(_e,vn){const Qn=!V;Hd(_e,gn)&&(_e=ax(t,_e));const hi=_k(_e)?r.getGeneratedPrivateNameForNode(_e.name):am(_e.name)&&!aD(_e.name.expression)?r.updateComputedPropertyName(_e.name,r.getGeneratedNameForNode(_e.name)):_e.name;if(Ny(_e)&&(Wt=_e),Gu(hi)&&Oc(_e)){const ka=Yu(hi);if(ka)return ka.kind==="f"?ka.isStatic?ict(r,ka.variableName,nr(_e.initializer,un,Nr)):u4e(r,vn,nr(_e.initializer,un,Nr),ka.brandCheckIdentifier):void 0;ce.fail("Undeclared private name for property declaration.")}if((Gu(hi)||Ny(_e))&&!_e.initializer)return;const pa=Ic(_e);if(il(pa,256))return;let Zc=nr(_e.initializer,un,Nr);if(Eb(pa,pa.parent)&&An(hi)){const ka=r.cloneNode(hi);Zc?(sb(Zc)&&mI(Zc.expression)&&cJ(Zc.expression.left,"___runInitializers")&&$m(Zc.expression.right)&&nS(Zc.expression.right.expression)&&(Zc=Zc.expression.left),Zc=r.inlineExpressions([Zc,ka])):Zc=ka,Sa(hi,3168),Sp(ka,pa.name),Sa(ka,3072)}else Zc??(Zc=r.createVoidZero());if(Qn||Gu(hi)){const ka=e4(r,vn,hi,hi);return cI(ka,1024),r.createAssignment(ka,Zc)}else{const ka=am(hi)?hi.expression:An(hi)?r.createStringLiteral(lf(hi.escapedText)):hi,bc=r.createPropertyDescriptor({value:Zc,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(vn,ka,bc)}}function Ks(){_t&1||(_t|=1,t.enableSubstitution(80),Dt=[])}function vs(){_t&2||(_t|=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 ou(_e,vn,Qn){if(!ue||!gt(vn))return;const{weakSetName:hi}=x_().data;ce.assert(hi,"weakSetName should be set in private identifier environment"),_e.push(r.createExpressionStatement(zHe(r,Qn,hi)))}function qd(_e){return sa(_e)?r.updatePropertyAccessExpression(_e,r.createVoidZero(),_e.name):r.updateElementAccessExpression(_e,r.createVoidZero(),nr(_e.argumentExpression,un,Nr))}function z_(_e,vn){if(am(_e)){const Qn=HEe(_e),hi=nr(_e.expression,un,Nr),pa=pA(hi),Zc=aD(pa);if(!(!!Qn||wy(pa)&&Om(pa.left))&&!Zc&&vn){const bc=r.getGeneratedNameForNode(_e);return I.getNodeCheckFlags(_e)&32768?D(bc):l(bc),r.createAssignment(bc,hi)}return Zc||An(pa)?void 0:hi}}function fp(){Ye={previous:Ye,data:void 0}}function Ha(){Ye=Ye==null?void 0:Ye.previous}function mu(){return ce.assert(Ye),Ye.data??(Ye.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function x_(){return ce.assert(Ye),Ye.privateEnv??(Ye.privateEnv=wae({className:void 0,weakSetName:void 0}))}function q_(){return Ft??(Ft=[])}function Ma(_e,vn,Qn,hi,pa,Zc,ka){rb(_e)?Oh(_e,vn,Qn,hi,pa,Zc):Os(_e)?U0(_e,vn,Qn,hi,pa,Zc):em(_e)?c_(_e,vn,Qn,hi,pa,Zc):tm(_e)?Kd(_e,vn,Qn,hi,pa,Zc,ka):Ep(_e)&&iy(_e,vn,Qn,hi,pa,Zc,ka)}function U0(_e,vn,Qn,hi,pa,Zc,ka){if(pa){const bc=ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"),gu=m_(vn);LW(hi,vn,{kind:"f",isStatic:!0,brandCheckIdentifier:bc,variableName:gu,isValid:Zc})}else{const bc=m_(vn);LW(hi,vn,{kind:"f",isStatic:!1,brandCheckIdentifier:bc,isValid:Zc}),q_().push(r.createAssignment(bc,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}}function c_(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");LW(hi,vn,{kind:"m",methodName:bc,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function Kd(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_get"),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ka==null?void 0:ka.kind)==="a"&&ka.isStatic===pa&&!ka.getterName?ka.getterName=bc:LW(hi,vn,{kind:"a",getterName:bc,setterName:void 0,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function iy(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_set"),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ka==null?void 0:ka.kind)==="a"&&ka.isStatic===pa&&!ka.setterName?ka.setterName=bc:LW(hi,vn,{kind:"a",getterName:void 0,setterName:bc,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function Oh(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_get"),gu=m_(vn,"_set"),yu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");LW(hi,vn,{kind:"a",getterName:bc,setterName:gu,brandCheckIdentifier:yu,isStatic:pa,isValid:Zc})}function jg(_e,vn,Qn){const hi=mu(),pa=x_(),Zc=n4e(pa,vn),ka=Ny(_e),bc=!oct(vn)&&Zc===void 0;Qn(_e,vn,hi,pa,ka,bc,Zc)}function zv(_e,vn,Qn){const{className:hi}=x_().data,pa=hi?{prefix:"_",node:hi,suffix:"_"}:"_",Zc=typeof _e=="object"?r.getGeneratedNameForNode(_e,24,pa,Qn):typeof _e=="string"?r.createUniqueName(_e,16,pa,Qn):r.createTempVariable(void 0,!0,pa,Qn);return I.getNodeCheckFlags(vn)&32768?D(Zc):l(Zc),Zc}function m_(_e,vn){const Qn=nH(_e);return zv((Qn==null?void 0:Qn.substring(1))??_e,_e,vn)}function Yu(_e){const vn=OHe(Ye,_e);return(vn==null?void 0:vn.kind)==="untransformed"?void 0:vn}function Tv(_e){const vn=r.getGeneratedNameForNode(_e),Qn=Yu(_e.name);if(!Qn)return ia(_e,un,t);let hi=_e.expression;return(b7(_e)||Z1(_e)||!D6(_e.expression))&&(hi=r.createTempVariable(l,!0),q_().push(r.createBinaryExpression(hi,64,nr(_e.expression,un,Nr)))),r.createAssignmentTargetWrapper(vn,Cn(Qn,hi,vn,64))}function Kh(_e){if(Wd(_e)||Ch(_e))return po(_e);if(kT(_e))return Tv(_e);if(Ve&&Wt&&Z1(_e)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=Ed(_e)?nr(_e.argumentExpression,un,Nr):An(_e.name)?r.createStringLiteralFromNode(_e.name):void 0;if(pa){const Zc=r.createTempVariable(void 0);return r.createAssignmentTargetWrapper(Zc,r.createReflectSetCall(Qn,pa,Zc,vn))}}}return ia(_e,un,t)}function uS(_e){if(Hd(_e,gn)&&(_e=ax(t,_e)),wy(_e,!0)){const vn=Kh(_e.left),Qn=nr(_e.right,un,Nr);return r.updateBinaryExpression(_e,vn,_e.operatorToken,Qn)}return Kh(_e)}function H0(_e){if(FE(_e.expression)){const vn=Kh(_e.expression);return r.updateSpreadElement(_e,vn)}return ia(_e,un,t)}function fx(_e){if(uR(_e)){if(ex(_e))return H0(_e);if(!t0(_e))return uS(_e)}return ia(_e,un,t)}function rd(_e){const vn=nr(_e.name,un,_y);if(wy(_e.initializer,!0)){const Qn=uS(_e.initializer);return r.updatePropertyAssignment(_e,vn,Qn)}if(FE(_e.initializer)){const Qn=Kh(_e.initializer);return r.updatePropertyAssignment(_e,vn,Qn)}return ia(_e,un,t)}function Mg(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function lm(_e){if(FE(_e.expression)){const vn=Kh(_e.expression);return r.updateSpreadAssignment(_e,vn)}return ia(_e,un,t)}function nm(_e){return ce.assertNode(_e,KX),xk(_e)?lm(_e):BT(_e)?Mg(_e):Fm(_e)?rd(_e):ia(_e,un,t)}function po(_e){return Ch(_e)?r.updateArrayLiteralExpression(_e,Fa(_e.elements,fx,Nr)):r.updateObjectLiteralExpression(_e,Fa(_e.properties,nm,KD))}function hy(_e,vn,Qn){const hi=Ic(vn),pa=ut.get(hi);if(pa){const Zc=Ye,ka=Mn;Ye=pa,Mn=tt,tt=!nu(hi)||!(dh(hi)&32),ht(_e,vn,Qn),tt=Mn,Mn=ka,Ye=Zc;return}switch(vn.kind){case 218:if(ph(hi)||Tp(vn)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Zc=Ye,ka=Mn;Ye=void 0,Mn=tt,tt=!1,ht(_e,vn,Qn),tt=Mn,Mn=ka,Ye=Zc;return}case 167:{const Zc=Ye,ka=tt;Ye=Ye==null?void 0:Ye.previous,tt=Mn,ht(_e,vn,Qn),tt=ka,Ye=Zc;return}}ht(_e,vn,Qn)}function fS(_e,vn){return vn=Le(_e,vn),_e===1?GT(vn):vn}function GT(_e){switch(_e.kind){case 80:return oh(_e);case 110:return vE(_e)}return _e}function vE(_e){if(_t&2&&(Ye!=null&&Ye.data)&&!lt.has(_e)){const{facts:vn,classConstructor:Qn,classThis:hi}=Ye.data,pa=tt?hi??Qn:Qn;if(pa)return vr(tc(r.cloneNode(pa),_e),_e);if(vn&1&&ee)return r.createParenthesizedExpression(r.createVoidZero())}return _e}function oh(_e){return yy(_e)||_e}function yy(_e){if(_t&1&&I.getNodeCheckFlags(_e)&536870912){const vn=I.getReferencedValueDeclaration(_e);if(vn){const Qn=Dt[vn.id];if(Qn){const hi=r.cloneNode(Qn);return Sp(hi,_e),Ry(hi,_e),hi}}}}}function ict(t,r,s){return t.createAssignment(r,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function u4e(t,r,s,l){return t.createCallExpression(t.createPropertyAccessExpression(l,"set"),void 0,[r,s||t.createVoidZero()])}function zHe(t,r,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[r])}function oct(t){return!cR(t)&&t.escapedText==="#constructor"}function f4e(t){return Gu(t.left)&&t.operatorToken.kind===103}function act(t){return Os(t)&&Ny(t)}function OQ(t){return nu(t)||act(t)}var sct=G({"src/compiler/transformers/classFields.ts"(){Ad()}});function GHe(t){const{factory:r,hoistVariableDeclaration:s}=t,l=t.getEmitResolver(),m=t.getCompilerOptions(),y=iu(m),T=hv(m,"strictNullChecks");let D,I;return{serializeTypeNode:(Ft,it)=>W(Ft,de,it),serializeTypeOfNode:(Ft,it)=>W(Ft,V,it),serializeParameterTypesOfNode:(Ft,it,Ye)=>W(Ft,ee,it,Ye),serializeReturnTypeOfNode:(Ft,it)=>W(Ft,oe,it)};function W(Ft,it,Ye,ut){const lt=D,zt=I;D=Ft.currentLexicalScope,I=Ft.currentNameScope;const Wt=ut===void 0?it(Ye):it(Ye,ut);return D=lt,I=zt,Wt}function O(Ft){const it=l.getAllAccessorDeclarations(Ft);return it.setAccessor&&V9(it.setAccessor)||it.getAccessor&&bA(it.getAccessor)}function V(Ft){switch(Ft.kind){case 172:case 169:return de(Ft.type);case 178:case 177:return de(O(Ft));case 263:case 231:case 174:return r.createIdentifier("Function");default:return r.createVoidZero()}}function ee(Ft,it){const Ye=Jl(Ft)?E2(Ft):S_(Ft)&&wx(Ft.body)?Ft:void 0,ut=[];if(Ye){const lt=te(Ye,it),zt=lt.length;for(let Wt=0;Wtlt.parent&&hW(lt.parent)&&(lt.parent.trueType===lt||lt.parent.falseType===lt)))return r.createIdentifier("Object");const Ye=Le(Ft.typeName),ut=r.createTempVariable(s);return r.createConditionalExpression(r.createTypeCheck(r.createAssignment(ut,Ye),"function"),void 0,ut,void 0,r.createIdentifier("Object"));case 1:return ht(Ft.typeName);case 2:return r.createVoidZero();case 4:return Dt("BigInt",7);case 6:return r.createIdentifier("Boolean");case 3:return r.createIdentifier("Number");case 5:return r.createIdentifier("String");case 7:return r.createIdentifier("Array");case 8:return Dt("Symbol",2);case 10:return r.createIdentifier("Function");case 9:return r.createIdentifier("Promise");case 11:return r.createIdentifier("Object");default:return ce.assertNever(it)}}function pt(Ft,it){return r.createLogicalAnd(r.createStrictInequality(r.createTypeOfExpression(Ft),r.createStringLiteral("undefined")),it)}function Le(Ft){if(Ft.kind===80){const ut=ht(Ft);return pt(ut,ut)}if(Ft.left.kind===80)return pt(ht(Ft.left),ht(Ft));const it=Le(Ft.left),Ye=r.createTempVariable(s);return r.createLogicalAnd(r.createLogicalAnd(it.left,r.createStrictInequality(r.createAssignment(Ye,it.right),r.createVoidZero())),r.createPropertyAccessExpression(Ye,Ft.right))}function ht(Ft){switch(Ft.kind){case 80:const it=kl(vr(DP.cloneNode(Ft),Ft),Ft.parent);return it.original=void 0,kl(it,Il(D)),it;case 166:return ke(Ft)}}function ke(Ft){return r.createPropertyAccessExpression(ht(Ft.left),Ft.right)}function _t(Ft){return r.createConditionalExpression(r.createTypeCheck(r.createIdentifier(Ft),"function"),void 0,r.createIdentifier(Ft),void 0,r.createIdentifier("Object"))}function Dt(Ft,it){return yEpe($a)||Qf($a)?void 0:$a,pc),Nc=Db(Gn),ha=Or(Gn),ro=T<2?r.getInternalName(Gn,!1,!0):r.getLocalName(Gn,!1,!0),Gs=Fa(Gn.heritageClauses,V,rT);let Oc=Fa(Gn.members,V,Mv),_u=[];({members:Oc,decorationStatements:_u}=ue(Gn,Oc));const Ku=T>=9&&!!ha&>(Oc,$a=>Os($a)&&il($a,32)||nu($a));Ku&&(Oc=vr(r.createNodeArray([r.createClassStaticBlockDeclaration(r.createBlock([r.createExpressionStatement(r.createAssignment(ha,r.createThis()))])),...Oc]),Oc));const al=r.createClassExpression(di,Ur&&Om(Ur)?void 0:Ur,void 0,Gs,Oc);tc(al,Gn),vr(al,Nc);const Rr=ha&&!Ku?r.createAssignment(ha,al):al,mc=r.createVariableDeclaration(ro,void 0,void 0,Rr);tc(mc,Gn);const Ea=r.createVariableDeclarationList([mc],1),Fi=r.createVariableStatement(void 0,Ea);tc(Fi,Gn),vr(Fi,Nc),Ry(Fi,Gn);const ta=[Fi];if(Oi(ta,_u),Mn(ta,Gn),so)if(ho){const $a=r.createExportDefault(ro);ta.push($a)}else{const $a=r.createExternalModuleExport(r.getDeclarationName(Gn));ta.push($a)}return ta}function Ve(Gn){return r.updateClassExpression(Gn,Fa(Gn.modifiers,O,bd),Gn.name,void 0,Fa(Gn.heritageClauses,V,rT),Fa(Gn.members,V,Mv))}function pt(Gn){return r.updateConstructorDeclaration(Gn,Fa(Gn.modifiers,O,bd),Fa(Gn.parameters,V,Pu),nr(Gn.body,V,E_))}function Le(Gn,Ur){return Gn!==Ur&&(Ry(Gn,Ur),Sp(Gn,Db(Ur))),Gn}function ht(Gn){return Le(r.updateMethodDeclaration(Gn,Fa(Gn.modifiers,O,bd),Gn.asteriskToken,ce.checkDefined(nr(Gn.name,V,_y)),void 0,void 0,Fa(Gn.parameters,V,Pu),void 0,nr(Gn.body,V,E_)),Gn)}function ke(Gn){return Le(r.updateGetAccessorDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,_y)),Fa(Gn.parameters,V,Pu),void 0,nr(Gn.body,V,E_)),Gn)}function _t(Gn){return Le(r.updateSetAccessorDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,_y)),Fa(Gn.parameters,V,Pu),nr(Gn.body,V,E_)),Gn)}function Dt(Gn){if(!(Gn.flags&33554432||il(Gn,2)))return Le(r.updatePropertyDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,_y)),void 0,void 0,nr(Gn.initializer,V,Nr)),Gn)}function Ft(Gn){const Ur=r.updateParameterDeclaration(Gn,UEe(r,Gn.modifiers),Gn.dotDotDotToken,ce.checkDefined(nr(Gn.name,V,f9)),void 0,void 0,nr(Gn.initializer,V,Nr));return Ur!==Gn&&(Ry(Ur,Gn),vr(Ur,Db(Gn)),Sp(Ur,Db(Gn)),Sa(Ur.name,64)),Ur}function it(Gn){return cJ(Gn.expression,"___metadata")}function Ye(Gn){if(!Gn)return;const{false:Ur,true:so}=H5(Gn.decorators,it),ho=[];return Oi(ho,Vn(Ur,cr)),Oi(ho,ea(Gn.parameters,un)),Oi(ho,Vn(so,cr)),ho}function ut(Gn,Ur,so){Oi(Gn,Vn(Wt(Ur,so),ho=>r.createExpressionStatement(ho)))}function lt(Gn,Ur,so){return iG(!0,Gn,so)&&Ur===e_(Gn)}function zt(Gn,Ur){return gi(Gn.members,so=>lt(so,Ur,Gn))}function Wt(Gn,Ur){const so=zt(Gn,Ur);let ho;for(const di of so)ho=ur(ho,tt(Gn,di));return ho}function tt(Gn,Ur){const so=$2e(Ur,Gn,!0),ho=Ye(so);if(!ho)return;const di=Ut(Gn,Ur),Nc=on(Ur,!il(Ur,2)),ha=T>0?Os(Ur)&&!_k(Ur)?r.createVoidZero():r.createNull():void 0,ro=s().createDecorateHelper(ho,di,Nc,ha);return Sa(ro,3072),Sp(ro,Db(Ur)),ro}function Mn(Gn,Ur){const so=kn(Ur);so&&Gn.push(tc(r.createExpressionStatement(so),Ur))}function kn(Gn){const Ur=e4e(Gn),so=Ye(Ur);if(!so)return;const ho=I&&I[e1(Gn)],di=T<2?r.getInternalName(Gn,!1,!0):r.getDeclarationName(Gn,!1,!0),Nc=s().createDecorateHelper(so,di),ha=r.createAssignment(di,ho?r.createAssignment(ho,Nc):Nc);return Sa(ha,3072),Sp(ha,Db(Gn)),ha}function cr(Gn){return ce.checkDefined(nr(Gn.expression,V,Nr))}function un(Gn,Ur){let so;if(Gn){so=[];for(const ho of Gn){const di=s().createParamHelper(cr(ho),Ur);vr(di,ho.expression),Sa(di,3072),so.push(di)}}return so}function on(Gn,Ur){const so=Gn.name;return Gu(so)?r.createIdentifier(""):am(so)?Ur&&!aD(so.expression)?r.getGeneratedNameForNode(so):so.expression:An(so)?r.createStringLiteral(ec(so)):r.cloneNode(so)}function pn(){I||(t.enableSubstitution(80),I=[])}function Or(Gn){if(m.getNodeCheckFlags(Gn)&262144){pn();const Ur=r.createUniqueName(Gn.name&&!Om(Gn.name)?ec(Gn.name):"default");return I[e1(Gn)]=Ur,l(Ur),Ur}}function Xr(Gn){return r.createPropertyAccessExpression(r.getDeclarationName(Gn),"prototype")}function Ut(Gn,Ur){return e_(Ur)?r.getDeclarationName(Gn):Xr(Gn)}function In(Gn,Ur){return Ur=D(Gn,Ur),Gn===1?gr(Ur):Ur}function gr(Gn){switch(Gn.kind){case 80:return Cr(Gn)}return Gn}function Cr(Gn){return ei(Gn)??Gn}function ei(Gn){if(I&&m.getNodeCheckFlags(Gn)&536870912){const Ur=m.getReferencedValueDeclaration(Gn);if(Ur){const so=I[Ur.id];if(so){const ho=r.cloneNode(so);return Sp(ho,Gn),Ry(ho,Gn),ho}}}}}var FQ=G({"src/compiler/transformers/legacyDecorators.ts"(){Ad()}});function VHe(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=iu(t.getCompilerOptions());let D,I,W,O,V,ee;return Vx(t,te);function te(Re){D=void 0,ee=!1;const wt=ia(Re,_t,t);return JN(wt,t.readEmitHelpers()),ee&&(_s(wt,32),ee=!1),wt}function oe(){switch(I=void 0,W=void 0,O=void 0,D==null?void 0:D.kind){case"class":I=D.classInfo;break;case"class-element":I=D.next.classInfo,W=D.classThis,O=D.classSuper;break;case"name":const Re=D.next.next.next;(Re==null?void 0:Re.kind)==="class-element"&&(I=Re.next.classInfo,W=Re.classThis,O=Re.classSuper);break}}function de(Re){D={kind:"class",next:D,classInfo:Re,savedPendingExpressions:V},V=void 0,oe()}function ue(){ce.assert((D==null?void 0:D.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${D==null?void 0:D.kind}' instead.`),V=D.savedPendingExpressions,D=D.next,oe()}function Ne(Re){var wt,$e;ce.assert((D==null?void 0:D.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${D==null?void 0:D.kind}' instead.`),D={kind:"class-element",next:D},(nu(Re)||Os(Re)&&Ny(Re))&&(D.classThis=(wt=D.next.classInfo)==null?void 0:wt.classThis,D.classSuper=($e=D.next.classInfo)==null?void 0:$e.classSuper),oe()}function Be(){var Re;ce.assert((D==null?void 0:D.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${D==null?void 0:D.kind}' instead.`),ce.assert(((Re=D.next)==null?void 0:Re.kind)==="class","Incorrect value for top.next.kind.",()=>{var wt;return`Expected top.next.kind to be 'class' but got '${(wt=D.next)==null?void 0:wt.kind}' instead.`}),D=D.next,oe()}function Ve(){ce.assert((D==null?void 0:D.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${D==null?void 0:D.kind}' instead.`),D={kind:"name",next:D},oe()}function pt(){ce.assert((D==null?void 0:D.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${D==null?void 0:D.kind}' instead.`),D=D.next,oe()}function Le(){(D==null?void 0:D.kind)==="other"?(ce.assert(!V),D.depth++):(D={kind:"other",next:D,depth:0,savedPendingExpressions:V},V=void 0,oe())}function ht(){ce.assert((D==null?void 0:D.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${D==null?void 0:D.kind}' instead.`),D.depth>0?(ce.assert(!V),D.depth--):(V=D.savedPendingExpressions,D=D.next,oe())}function ke(Re){return!!(Re.transformFlags&33554432)||!!W&&!!(Re.transformFlags&16384)||!!W&&!!O&&!!(Re.transformFlags&134217728)}function _t(Re){if(!ke(Re))return Re;switch(Re.kind){case 170:return ce.fail("Use `modifierVisitor` instead.");case 263:return kn(Re);case 231:return cr(Re);case 176:case 172:case 175:return ce.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Nc(Re);case 226:return _u(Re,!1);case 303:return Fi(Re);case 260:return ta(Re);case 208:return $a(Re);case 277:return li(Re);case 110:return Gn(Re);case 248:return Gs(Re);case 244:return Oc(Re);case 361:return al(Re,!1);case 217:return Ir(Re,!1);case 360:return _o(Re,!1);case 213:return Ur(Re);case 215:return so(Re);case 224:case 225:return Ku(Re,!1);case 211:return ho(Re);case 212:return di(Re);case 167:return Ea(Re);case 174:case 178:case 177:case 218:case 262:{Le();const wt=ia(Re,Dt,t);return ht(),wt}default:return ia(Re,Dt,t)}}function Dt(Re){switch(Re.kind){case 170:return;default:return _t(Re)}}function Ft(Re){switch(Re.kind){case 170:return;default:return Re}}function it(Re){switch(Re.kind){case 176:return pn(Re);case 174:return Ut(Re);case 177:return In(Re);case 178:return gr(Re);case 172:return ei(Re);case 175:return Cr(Re);default:return _t(Re)}}function Ye(Re){switch(Re.kind){case 224:case 225:return Ku(Re,!0);case 226:return _u(Re,!0);case 361:return al(Re,!0);case 217:return Ir(Re,!0);default:return _t(Re)}}function ut(Re){let wt=Re.name&&An(Re.name)&&!Om(Re.name)?ec(Re.name):Re.name&&Gu(Re.name)&&!Om(Re.name)?ec(Re.name).slice(1):Re.name&&Wp(Re.name)&&rE(Re.name.text,99)?Re.name.text:Jl(Re)?"class":"member";return J2(Re)&&(wt=`get_${wt}`),_P(Re)&&(wt=`set_${wt}`),Re.name&&Gu(Re.name)&&(wt=`private_${wt}`),e_(Re)&&(wt=`static_${wt}`),"_"+wt}function lt(Re,wt){return r.createUniqueName(`${ut(Re)}_${wt}`,24)}function zt(Re,wt){return r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Re,void 0,void 0,wt)],1))}function Wt(Re){const wt=r.createUniqueName("_metadata",48);let $e,Zt,xe=!1,an=!1,Un=!1;for(const rr of Re.members)if(DN(rr)&&iG(!1,rr,Re)&&(Ny(rr)?Zt??(Zt=r.createUniqueName("_staticExtraInitializers",48)):$e??($e=r.createUniqueName("_instanceExtraInitializers",48))),nu(rr)?FW(rr)||(xe=!0):Os(rr)&&(Ny(rr)?xe||(xe=!!rr.initializer||Fx(rr)):an||(an=!eH(rr))),(Mf(rr)||rb(rr))&&Ny(rr)&&(Un=!0),Zt&&$e&&xe&&an&&Un)break;return{class:Re,metadataReference:wt,instanceExtraInitializersName:$e,staticExtraInitializersName:Zt,hasStaticInitializers:xe,hasNonAmbientInstanceFields:an,hasStaticPrivateClassElements:Un}}function tt(Re){l(),!mj(Re)&&Mx(!1,Re)&&(Re=Tme(t,Re,r.createStringLiteral("")));const wt=r.getLocalName(Re,!1,!1,!0),$e=Wt(Re),Zt=[];let xe,an,Un,rr,mi=!1;const Ji=Kn(e4e(Re));if(Ji){$e.classDecoratorsName=r.createUniqueName("_classDecorators",48),$e.classDescriptorName=r.createUniqueName("_classDescriptor",48),$e.classExtraInitializersName=r.createUniqueName("_classExtraInitializers",48);const Ha=gt(Re.members,mu=>(Mf(mu)||rb(mu))&&Ny(mu));$e.classThis=r.createUniqueName("_classThis",Ha?24:48),Zt.push(zt($e.classDecoratorsName,r.createArrayLiteralExpression(Ji)),zt($e.classDescriptorName),zt($e.classExtraInitializersName,r.createArrayLiteralExpression()),zt($e.classThis)),$e.hasStaticPrivateClassElements&&(mi=!0,ee=!0)}const zo=_G(Re.heritageClauses,96),Ca=zo&&pp(zo.types),Qa=Ca&&nr(Ca.expression,_t,Nr);if(Qa){$e.classSuper=r.createUniqueName("_classSuper",48);const Ha=rv(Qa),mu=B0(Ha)&&!Ha.name||Dm(Ha)&&!Ha.name||ph(Ha)?r.createComma(r.createNumericLiteral(0),Qa):Qa;Zt.push(zt($e.classSuper,mu));const x_=r.updateExpressionWithTypeArguments(Ca,$e.classSuper,void 0),q_=r.updateHeritageClause(zo,[x_]);rr=r.createNodeArray([q_])}const Ks=$e.classThis??r.createThis();de($e),xe=ur(xe,Ui($e.metadataReference,$e.classSuper));let vs=Fa(Re.members,it,Mv);if(V){let Ha;for(let mu of V){mu=nr(mu,function q_(Ma){if(!(Ma.transformFlags&16384))return Ma;switch(Ma.kind){case 110:return Ha||(Ha=r.createUniqueName("_outerThis",16),Zt.unshift(zt(Ha,r.createThis()))),Ha;default:return ia(Ma,q_,t)}},Nr);const x_=r.createExpressionStatement(mu);xe=ur(xe,x_)}V=void 0}if(ue(),$e.instanceExtraInitializersName&&!E2(Re)){const Ha=un(Re,$e);if(Ha){const mu=hA(Re),x_=!!(mu&&rv(mu.expression).kind!==106),q_=[];if(x_){const U0=r.createSpreadElement(r.createIdentifier("arguments")),c_=r.createCallExpression(r.createSuper(),void 0,[U0]);q_.push(r.createExpressionStatement(c_))}Oi(q_,Ha);const Ma=r.createBlock(q_,!0);Un=r.createConstructorDeclaration(void 0,[],Ma)}}if($e.staticExtraInitializersName&&Zt.push(zt($e.staticExtraInitializersName,r.createArrayLiteralExpression())),$e.instanceExtraInitializersName&&Zt.push(zt($e.instanceExtraInitializersName,r.createArrayLiteralExpression())),$e.memberInfos&&wT($e.memberInfos,(Ha,mu)=>{e_(mu)&&(Zt.push(zt(Ha.memberDecoratorsName)),Ha.memberInitializersName&&Zt.push(zt(Ha.memberInitializersName,r.createArrayLiteralExpression())),Ha.memberDescriptorName&&Zt.push(zt(Ha.memberDescriptorName)))}),$e.memberInfos&&wT($e.memberInfos,(Ha,mu)=>{e_(mu)||(Zt.push(zt(Ha.memberDecoratorsName)),Ha.memberInitializersName&&Zt.push(zt(Ha.memberInitializersName,r.createArrayLiteralExpression())),Ha.memberDescriptorName&&Zt.push(zt(Ha.memberDescriptorName)))}),xe=Oi(xe,$e.staticNonFieldDecorationStatements),xe=Oi(xe,$e.nonStaticNonFieldDecorationStatements),xe=Oi(xe,$e.staticFieldDecorationStatements),xe=Oi(xe,$e.nonStaticFieldDecorationStatements),$e.classDescriptorName&&$e.classDecoratorsName&&$e.classExtraInitializersName&&$e.classThis){xe??(xe=[]);const Ha=r.createPropertyAssignment("value",Ks),mu=r.createObjectLiteralExpression([Ha]),x_=r.createAssignment($e.classDescriptorName,mu),q_=r.createPropertyAccessExpression(Ks,"name"),Ma=s().createESDecorateHelper(r.createNull(),x_,$e.classDecoratorsName,{kind:"class",name:q_,metadata:$e.metadataReference},r.createNull(),$e.classExtraInitializersName),U0=r.createExpressionStatement(Ma);Sp(U0,$E(Re)),xe.push(U0);const c_=r.createPropertyAccessExpression($e.classDescriptorName,"value"),Kd=r.createAssignment($e.classThis,c_),iy=r.createAssignment(wt,Kd);xe.push(r.createExpressionStatement(iy))}if(xe.push(xu(Ks,$e.metadataReference)),$e.staticExtraInitializersName){const Ha=s().createRunInitializersHelper(Ks,$e.staticExtraInitializersName),mu=r.createExpressionStatement(Ha);Sp(mu,Re.name??$E(Re)),xe=ur(xe,mu)}if($e.classExtraInitializersName){const Ha=s().createRunInitializersHelper(Ks,$e.classExtraInitializersName),mu=r.createExpressionStatement(Ha);Sp(mu,Re.name??$E(Re)),an=ur(an,mu)}xe&&an&&!$e.hasStaticInitializers&&(Oi(xe,an),an=void 0);const ou=xe&&r.createClassStaticBlockDeclaration(r.createBlock(xe,!0));ou&&mi&&aW(ou,32);const qd=an&&r.createClassStaticBlockDeclaration(r.createBlock(an,!0));if(ou||Un||qd){const Ha=[],mu=vs.findIndex(FW);ou?(Oi(Ha,vs,0,mu+1),Ha.push(ou),Oi(Ha,vs,mu+1)):Oi(Ha,vs),Un&&Ha.push(Un),qd&&Ha.push(qd),vs=vr(r.createNodeArray(Ha),vs)}const z_=m();let fp;if(Ji){fp=r.createClassExpression(void 0,void 0,void 0,rr,vs),$e.classThis&&(fp=vme(r,fp,$e.classThis));const Ha=r.createVariableDeclaration(wt,void 0,void 0,fp),mu=r.createVariableDeclarationList([Ha]),x_=$e.classThis?r.createAssignment(wt,$e.classThis):wt;Zt.push(r.createVariableStatement(void 0,mu),r.createReturnStatement(x_))}else fp=r.createClassExpression(void 0,Re.name,void 0,rr,vs),Zt.push(r.createReturnStatement(fp));if(mi){_s(fp,32);for(const Ha of fp.members)(Mf(Ha)||rb(Ha))&&Ny(Ha)&&_s(Ha,32)}return tc(fp,Re),r.createImmediatelyInvokedArrowFunction(r.mergeLexicalEnvironment(Zt,z_))}function Mn(Re){return Mx(!1,Re)||oH(!1,Re)}function kn(Re){if(Mn(Re)){const wt=[],$e=Ic(Re,Jl)??Re,Zt=$e.name?r.createStringLiteralFromNode($e.name):r.createStringLiteral("default"),xe=il(Re,1),an=il(Re,1024);if(Re.name||(Re=Tme(t,Re,Zt)),xe&&an){const Un=tt(Re);if(Re.name){const rr=r.createVariableDeclaration(r.getLocalName(Re),void 0,void 0,Un);tc(rr,Re);const mi=r.createVariableDeclarationList([rr],1),Ji=r.createVariableStatement(void 0,mi);wt.push(Ji);const zo=r.createExportDefault(r.getDeclarationName(Re));tc(zo,Re),Ry(zo,lI(Re)),Sp(zo,$E(Re)),wt.push(zo)}else{const rr=r.createExportDefault(Un);tc(rr,Re),Ry(rr,lI(Re)),Sp(rr,$E(Re)),wt.push(rr)}}else{ce.assertIsDefined(Re.name,"A class declaration that is not a default export must have a name.");const Un=tt(Re),rr=xe?Ks=>fW(Ks)?void 0:Ft(Ks):Ft,mi=Fa(Re.modifiers,rr,bd),Ji=r.getLocalName(Re,!1,!0),zo=r.createVariableDeclaration(Ji,void 0,void 0,Un);tc(zo,Re);const Ca=r.createVariableDeclarationList([zo],1),Qa=r.createVariableStatement(mi,Ca);if(tc(Qa,Re),Ry(Qa,lI(Re)),wt.push(Qa),xe){const Ks=r.createExternalModuleExport(Ji);tc(Ks,Re),wt.push(Ks)}}return N0(wt)}else{const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.heritageClauses,_t,rT);de(void 0);const Zt=Fa(Re.members,it,Mv);return ue(),r.updateClassDeclaration(Re,wt,Re.name,void 0,$e,Zt)}}function cr(Re){if(Mn(Re)){const wt=tt(Re);return tc(wt,Re),wt}else{const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.heritageClauses,_t,rT);de(void 0);const Zt=Fa(Re.members,it,Mv);return ue(),r.updateClassExpression(Re,wt,Re.name,void 0,$e,Zt)}}function un(Re,wt){if(wt.instanceExtraInitializersName&&!wt.hasNonAmbientInstanceFields){const $e=[];return $e.push(r.createExpressionStatement(s().createRunInitializersHelper(r.createThis(),wt.instanceExtraInitializersName))),$e}}function on(Re,wt,$e,Zt,xe,an){const Un=Zt[xe],rr=wt[Un];if(Oi(Re,Fa(wt,_t,uf,$e,Un-$e)),AR(rr)){const mi=[];on(mi,rr.tryBlock.statements,0,Zt,xe+1,an);const Ji=r.createNodeArray(mi);vr(Ji,rr.tryBlock.statements),Re.push(r.updateTryStatement(rr,r.updateBlock(rr.tryBlock,mi),nr(rr.catchClause,_t,CP),nr(rr.finallyBlock,_t,E_)))}else Oi(Re,Fa(wt,_t,uf,Un,1)),Oi(Re,an);Oi(Re,Fa(wt,_t,uf,Un+1))}function pn(Re){Ne(Re);const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.parameters,_t,Pu);let Zt;if(Re.body&&I){const xe=un(I.class,I);if(xe){const an=[],Un=r.copyPrologue(Re.body.statements,an,!1,_t),rr=IA(Re.body.statements,Un);rr.length>0?on(an,Re.body.statements,Un,rr,0,xe):(Oi(an,xe),Oi(an,Fa(Re.body.statements,_t,uf))),Zt=r.createBlock(an,!0),tc(Zt,Re.body),vr(Zt,Re.body)}}return Zt??(Zt=nr(Re.body,_t,E_)),Be(),r.updateConstructorDeclaration(Re,wt,$e,Zt)}function Or(Re,wt){return Re!==wt&&(Ry(Re,wt),Sp(Re,$E(wt))),Re}function Xr(Re,wt,$e){let Zt,xe,an,Un,rr;if(!wt){const zo=Fa(Re.modifiers,Ft,bd);return Ve(),xe=mc(Re.name),pt(),{modifiers:zo,referencedName:Zt,name:xe,initializersName:an,descriptorName:rr,thisArg:Un}}const mi=Kn($2e(Re,wt.class,!1)),Ji=Fa(Re.modifiers,Ft,bd);if(mi){const zo=lt(Re,"decorators"),Ca=r.createArrayLiteralExpression(mi),Qa=r.createAssignment(zo,Ca),Ks={memberDecoratorsName:zo};wt.memberInfos??(wt.memberInfos=new Map),wt.memberInfos.set(Re,Ks),V??(V=[]),V.push(Qa);const vs=c7(Re)||rb(Re)?e_(Re)?wt.staticNonFieldDecorationStatements??(wt.staticNonFieldDecorationStatements=[]):wt.nonStaticNonFieldDecorationStatements??(wt.nonStaticNonFieldDecorationStatements=[]):Os(Re)&&!rb(Re)?e_(Re)?wt.staticFieldDecorationStatements??(wt.staticFieldDecorationStatements=[]):wt.nonStaticFieldDecorationStatements??(wt.nonStaticFieldDecorationStatements=[]):ce.fail(),ou=tm(Re)?"getter":Ep(Re)?"setter":em(Re)?"method":rb(Re)?"accessor":Os(Re)?"field":ce.fail();let qd;if(An(Re.name)||Gu(Re.name))qd={computed:!1,name:Re.name};else if(yA(Re.name))qd={computed:!0,name:r.createStringLiteralFromNode(Re.name)};else{const Ha=Re.name.expression;yA(Ha)&&!An(Ha)?qd={computed:!0,name:r.createStringLiteralFromNode(Ha)}:(Ve(),{referencedName:Zt,name:xe}=Rr(Re.name),qd={computed:!0,name:Zt},pt())}const z_={kind:ou,name:qd,static:e_(Re),private:Gu(Re.name),access:{get:Os(Re)||tm(Re)||em(Re),set:Os(Re)||Ep(Re)},metadata:wt.metadataReference},fp=e_(Re)?wt.staticExtraInitializersName??(wt.staticExtraInitializersName=r.createUniqueName("_staticExtraInitializers",48)):wt.instanceExtraInitializersName??(wt.instanceExtraInitializersName=r.createUniqueName("_instanceExtraInitializers",48));if(c7(Re)){let Ha;Mf(Re)&&$e&&(Ha=$e(Re,Fa(Ji,q_=>to(q_,Lu),bd)),Ks.memberDescriptorName=rr=lt(Re,"descriptor"),Ha=r.createAssignment(rr,Ha));const mu=s().createESDecorateHelper(r.createThis(),Ha??r.createNull(),zo,z_,r.createNull(),fp),x_=r.createExpressionStatement(mu);Sp(x_,$E(Re)),vs.push(x_)}else if(Os(Re)){an=Ks.memberInitializersName??(Ks.memberInitializersName=lt(Re,"initializers")),e_(Re)&&(Un=wt.classThis);let Ha;Mf(Re)&&_k(Re)&&$e&&(Ha=$e(Re,void 0),Ks.memberDescriptorName=rr=lt(Re,"descriptor"),Ha=r.createAssignment(rr,Ha));const mu=s().createESDecorateHelper(rb(Re)?r.createThis():r.createNull(),Ha??r.createNull(),zo,z_,an,fp),x_=r.createExpressionStatement(mu);Sp(x_,$E(Re)),vs.push(x_)}}return xe===void 0&&(Ve(),xe=mc(Re.name),pt()),!gt(Ji)&&(em(Re)||Os(Re))&&Sa(xe,1024),{modifiers:Ji,referencedName:Zt,name:xe,initializersName:an,descriptorName:rr,thisArg:Un}}function Ut(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,mt);if(Zt)return Be(),Or(Qr(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateMethodDeclaration(Re,wt,Re.asteriskToken,$e,void 0,void 0,xe,void 0,an),Re)}}function In(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,_r);if(Zt)return Be(),Or(co(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateGetAccessorDeclaration(Re,wt,$e,xe,void 0,an),Re)}}function gr(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,Cn);if(Zt)return Be(),Or(es(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateSetAccessorDeclaration(Re,wt,$e,xe,an),Re)}}function Cr(Re){Ne(Re);let wt;if(FW(Re))wt=ia(Re,_t,t);else if(Mae(Re)){const $e=W;W=void 0,wt=ia(Re,_t,t),W=$e}else I&&(I.hasStaticInitializers=!0),wt=ia(Re,_t,t);return Be(),wt}function ei(Re){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),Ne(Re),ce.assert(!eH(Re),"Not yet implemented.");const{modifiers:wt,name:$e,initializersName:Zt,descriptorName:xe,thisArg:an}=Xr(Re,I,_k(Re)?oi:void 0);l();let Un=nr(Re.initializer,_t,Nr);Zt&&(Un=s().createRunInitializersHelper(an??r.createThis(),Zt,Un??r.createVoidZero())),!e_(Re)&&(I!=null&&I.instanceExtraInitializersName)&&!(I!=null&&I.hasInjectedInstanceInitializers)&&(I.hasInjectedInstanceInitializers=!0,Un??(Un=r.createVoidZero()),Un=r.createParenthesizedExpression(r.createComma(s().createRunInitializersHelper(r.createThis(),I.instanceExtraInitializersName),Un))),e_(Re)&&I&&Un&&(I.hasStaticInitializers=!0);const rr=m();if(gt(rr)&&(Un=r.createImmediatelyInvokedArrowFunction([...rr,r.createReturnStatement(Un)])),Be(),_k(Re)&&xe){const mi=lI(Re),Ji=cE(Re),zo=Re.name;let Ca=zo,Qa=zo;if(am(zo)&&!aD(zo.expression)){const z_=HEe(zo);if(z_)Ca=r.updateComputedPropertyName(zo,nr(zo.expression,_t,Nr)),Qa=r.updateComputedPropertyName(zo,z_.left);else{const fp=r.createTempVariable(y);Sp(fp,zo.expression);const Ha=nr(zo.expression,_t,Nr),mu=r.createAssignment(fp,Ha);Sp(mu,zo.expression),Ca=r.updateComputedPropertyName(zo,mu),Qa=r.updateComputedPropertyName(zo,fp)}}const Ks=Fa(wt,z_=>z_.kind!==129?z_:void 0,bd),vs=$J(r,Re,Ks,Un);tc(vs,Re),Sa(vs,3072),Sp(vs,Ji),Sp(vs.name,Re.name);const ou=co(Ks,Ca,xe);tc(ou,Re),Ry(ou,mi),Sp(ou,Ji);const qd=es(Ks,Qa,xe);return tc(qd,Re),Sa(qd,3072),Sp(qd,Ji),[vs,ou,qd]}return Or(r.updatePropertyDeclaration(Re,wt,$e,void 0,void 0,Un),Re)}function Gn(Re){return W??Re}function Ur(Re){if(Z1(Re.expression)&&W){const wt=nr(Re.expression,_t,Nr),$e=Fa(Re.arguments,_t,Nr),Zt=r.createFunctionCallCall(wt,W,$e);return tc(Zt,Re),vr(Zt,Re),Zt}return ia(Re,_t,t)}function so(Re){if(Z1(Re.tag)&&W){const wt=nr(Re.tag,_t,Nr),$e=r.createFunctionBindCall(wt,W,[]);tc($e,Re),vr($e,Re);const Zt=nr(Re.template,_t,m9);return r.updateTaggedTemplateExpression(Re,$e,void 0,Zt)}return ia(Re,_t,t)}function ho(Re){if(Z1(Re)&&An(Re.name)&&W&&O){const wt=r.createStringLiteralFromNode(Re.name),$e=r.createReflectGetCall(O,wt,W);return tc($e,Re.expression),vr($e,Re.expression),$e}return ia(Re,_t,t)}function di(Re){if(Z1(Re)&&W&&O){const wt=nr(Re.argumentExpression,_t,Nr),$e=r.createReflectGetCall(O,wt,W);return tc($e,Re.expression),vr($e,Re.expression),$e}return ia(Re,_t,t)}function Nc(Re){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer)));const wt=r.updateParameterDeclaration(Re,void 0,Re.dotDotDotToken,nr(Re.name,_t,f9),void 0,void 0,nr(Re.initializer,_t,Nr));return wt!==Re&&(Ry(wt,Re),vr(wt,Db(Re)),Sp(wt,Db(Re)),Sa(wt.name,64)),wt}function ha(Re){return B0(Re)&&!Re.name&&Mn(Re)}function ro(Re){const wt=rv(Re);return B0(wt)&&!wt.name&&!Mx(!1,wt)}function Gs(Re){return r.updateForStatement(Re,nr(Re.initializer,Ye,mA),nr(Re.condition,_t,Nr),nr(Re.incrementor,Ye,Nr),pE(Re.statement,_t,t))}function Oc(Re){return ia(Re,Ye,t)}function _u(Re,wt){if(Tg(Re)){const $e=Jr(Re.left),Zt=nr(Re.right,_t,Nr);return r.updateBinaryExpression(Re,$e,Re.operatorToken,Zt)}if(wy(Re)){if(Hd(Re,ha))return Re=ax(t,Re,ro(Re.right)),ia(Re,_t,t);if(Z1(Re.left)&&W&&O){let $e=Ed(Re.left)?nr(Re.left.argumentExpression,_t,Nr):An(Re.left.name)?r.createStringLiteralFromNode(Re.left.name):void 0;if($e){let Zt=nr(Re.right,_t,Nr);if(cj(Re.operatorToken.kind)){let an=$e;aD($e)||(an=r.createTempVariable(y),$e=r.createAssignment(an,$e));const Un=r.createReflectGetCall(O,an,W);tc(Un,Re.left),vr(Un,Re.left),Zt=r.createBinaryExpression(Un,wQ(Re.operatorToken.kind),Zt),vr(Zt,Re)}const xe=wt?void 0:r.createTempVariable(y);return xe&&(Zt=r.createAssignment(xe,Zt),vr(xe,Re)),Zt=r.createReflectSetCall(O,$e,Zt,W),tc(Zt,Re),vr(Zt,Re),xe&&(Zt=r.createComma(Zt,xe),vr(Zt,Re)),Zt}}}if(Re.operatorToken.kind===28){const $e=nr(Re.left,Ye,Nr),Zt=nr(Re.right,wt?Ye:_t,Nr);return r.updateBinaryExpression(Re,$e,Re.operatorToken,Zt)}return ia(Re,_t,t)}function Ku(Re,wt){if(Re.operator===46||Re.operator===47){const $e=_g(Re.operand);if(Z1($e)&&W&&O){let Zt=Ed($e)?nr($e.argumentExpression,_t,Nr):An($e.name)?r.createStringLiteralFromNode($e.name):void 0;if(Zt){let xe=Zt;aD(Zt)||(xe=r.createTempVariable(y),Zt=r.createAssignment(xe,Zt));let an=r.createReflectGetCall(O,xe,W);tc(an,Re),vr(an,Re);const Un=wt?void 0:r.createTempVariable(y);return an=REe(r,Re,an,y,Un),an=r.createReflectSetCall(O,Zt,an,W),tc(an,Re),vr(an,Re),Un&&(an=r.createComma(an,Un),vr(an,Re)),an}}}return ia(Re,_t,t)}function al(Re,wt){const $e=wt?fme(Re.elements,Ye):fme(Re.elements,_t,Ye);return r.updateCommaListExpression(Re,$e)}function Rr(Re){if(yA(Re)||Gu(Re)){const an=r.createStringLiteralFromNode(Re),Un=nr(Re,_t,_y);return{referencedName:an,name:Un}}if(yA(Re.expression)&&!An(Re.expression)){const an=r.createStringLiteralFromNode(Re.expression),Un=nr(Re,_t,_y);return{referencedName:an,name:Un}}const wt=r.getGeneratedNameForNode(Re);y(wt);const $e=s().createPropKeyHelper(nr(Re.expression,_t,Nr)),Zt=r.createAssignment(wt,$e),xe=r.updateComputedPropertyName(Re,xt(Zt));return{referencedName:wt,name:xe}}function mc(Re){return am(Re)?Ea(Re):nr(Re,_t,_y)}function Ea(Re){let wt=nr(Re.expression,_t,Nr);return aD(wt)||(wt=xt(wt)),r.updateComputedPropertyName(Re,wt)}function Fi(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function ta(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function $a(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function jc(Re){if(Wd(Re)||Ch(Re))return Jr(Re);if(Z1(Re)&&W&&O){const wt=Ed(Re)?nr(Re.argumentExpression,_t,Nr):An(Re.name)?r.createStringLiteralFromNode(Re.name):void 0;if(wt){const $e=r.createTempVariable(void 0),Zt=r.createAssignmentTargetWrapper($e,r.createReflectSetCall(O,wt,$e,W));return tc(Zt,Re),vr(Zt,Re),Zt}}return ia(Re,_t,t)}function Xu(Re){if(wy(Re,!0)){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.right)));const wt=jc(Re.left),$e=nr(Re.right,_t,Nr);return r.updateBinaryExpression(Re,wt,Re.operatorToken,$e)}else return jc(Re)}function Lo(Re){if(FE(Re.expression)){const wt=jc(Re.expression);return r.updateSpreadElement(Re,wt)}return ia(Re,_t,t)}function To(Re){return ce.assertNode(Re,uR),ex(Re)?Lo(Re):t0(Re)?ia(Re,_t,t):Xu(Re)}function Aa(Re){const wt=nr(Re.name,_t,_y);if(wy(Re.initializer,!0)){const $e=Xu(Re.initializer);return r.updatePropertyAssignment(Re,wt,$e)}if(FE(Re.initializer)){const $e=jc(Re.initializer);return r.updatePropertyAssignment(Re,wt,$e)}return ia(Re,_t,t)}function sl(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.objectAssignmentInitializer))),ia(Re,_t,t)}function vc(Re){if(FE(Re.expression)){const wt=jc(Re.expression);return r.updateSpreadAssignment(Re,wt)}return ia(Re,_t,t)}function er(Re){return ce.assertNode(Re,KX),xk(Re)?vc(Re):BT(Re)?sl(Re):Fm(Re)?Aa(Re):ia(Re,_t,t)}function Jr(Re){if(Ch(Re)){const wt=Fa(Re.elements,To,Nr);return r.updateArrayLiteralExpression(Re,wt)}else{const wt=Fa(Re.properties,er,KD);return r.updateObjectLiteralExpression(Re,wt)}}function li(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.expression))),ia(Re,_t,t)}function Ir(Re,wt){const $e=wt?Ye:_t,Zt=nr(Re.expression,$e,Nr);return r.updateParenthesizedExpression(Re,Zt)}function _o(Re,wt){const $e=wt?Ye:_t,Zt=nr(Re.expression,$e,Nr);return r.updatePartiallyEmittedExpression(Re,Zt)}function xt(Re){return gt(V)&&(sb(Re)?(V.push(Re.expression),Re=r.updateParenthesizedExpression(Re,r.inlineExpressions(V))):(V.push(Re),Re=r.inlineExpressions(V)),V=void 0),Re}function Kn(Re){if(!Re)return;const wt=[];return Oi(wt,Vn(Re.decorators,gn)),wt}function gn(Re){const wt=nr(Re.expression,_t,Nr);Sa(wt,3072);const $e=rv(wt);if(Kf($e)){const{target:Zt,thisArg:xe}=r.createCallBinding(wt,y,T,!0);return r.restoreOuterExpressions(wt,r.createFunctionBindCall(Zt,xe,[]))}return wt}function qr(Re,wt,$e,Zt,xe,an,Un){const rr=r.createFunctionExpression($e,Zt,void 0,void 0,an,void 0,Un??r.createBlock([]));tc(rr,Re),Sp(rr,$E(Re)),Sa(rr,3072);const mi=xe==="get"||xe==="set"?xe:void 0,Ji=r.createStringLiteralFromNode(wt,void 0),zo=s().createSetFunctionNameHelper(rr,Ji,mi),Ca=r.createPropertyAssignment(r.createIdentifier(xe),zo);return tc(Ca,Re),Sp(Ca,$E(Re)),Sa(Ca,3072),Ca}function mt(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,Re.asteriskToken,"value",Fa(Re.parameters,_t,Pu),nr(Re.body,_t,E_))])}function _r(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"get",[],nr(Re.body,_t,E_))])}function Cn(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"set",Fa(Re.parameters,_t,Pu),nr(Re.body,_t,E_))])}function oi(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"get",[],r.createBlock([r.createReturnStatement(r.createPropertyAccessExpression(r.createThis(),r.getGeneratedPrivateNameForNode(Re.name)))])),qr(Re,Re.name,wt,void 0,"set",[r.createParameterDeclaration(void 0,void 0,"value")],r.createBlock([r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createThis(),r.getGeneratedPrivateNameForNode(Re.name)),r.createIdentifier("value")))]))])}function Qr(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createGetAccessorDeclaration(Re,wt,[],void 0,r.createBlock([r.createReturnStatement(r.createPropertyAccessExpression($e,r.createIdentifier("value")))]))}function co(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createGetAccessorDeclaration(Re,wt,[],void 0,r.createBlock([r.createReturnStatement(r.createFunctionCallCall(r.createPropertyAccessExpression($e,r.createIdentifier("get")),r.createThis(),[]))]))}function es(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createSetAccessorDeclaration(Re,wt,[r.createParameterDeclaration(void 0,void 0,"value")],r.createBlock([r.createReturnStatement(r.createFunctionCallCall(r.createPropertyAccessExpression($e,r.createIdentifier("set")),r.createThis(),[r.createIdentifier("value")]))]))}function Ui(Re,wt){const $e=r.createVariableDeclaration(Re,void 0,void 0,r.createConditionalExpression(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("Symbol"),"function"),r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata")),r.createToken(58),r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"create"),void 0,[wt?We(wt):r.createNull()]),r.createToken(59),r.createVoidZero()));return r.createVariableStatement(void 0,r.createVariableDeclarationList([$e],2))}function xu(Re,wt){const $e=r.createObjectDefinePropertyCall(Re,r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata"),r.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:wt},!0));return Sa(r.createIfStatement(wt,r.createExpressionStatement($e)),1)}function We(Re){return r.createBinaryExpression(r.createElementAccessExpression(Re,r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata")),61,r.createNull())}}var _4e=G({"src/compiler/transformers/esDecorators.ts"(){Ad()}});function UHe(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=t.getEmitResolver(),D=t.getCompilerOptions(),I=iu(D);let W,O=0,V,ee,te;const oe=[];let de=0;const ue=t.onEmitNode,Ne=t.onSubstituteNode;return t.onEmitNode=Nc,t.onSubstituteNode=ha,Vx(t,Be);function Be(Rr){if(Rr.isDeclarationFile)return Rr;Ve(1,!1),Ve(2,!gde(Rr,D));const mc=ia(Rr,Dt,t);return JN(mc,t.readEmitHelpers()),mc}function Ve(Rr,mc){de=mc?de|Rr:de&~Rr}function pt(Rr){return(de&Rr)!==0}function Le(){return!pt(1)}function ht(){return pt(2)}function ke(Rr,mc,Ea){const Fi=Rr&~de;if(Fi){Ve(Fi,!0);const ta=mc(Ea);return Ve(Fi,!1),ta}return mc(Ea)}function _t(Rr){return ia(Rr,Dt,t)}function Dt(Rr){if(!(Rr.transformFlags&256))return Rr;switch(Rr.kind){case 134:return;case 223:return Wt(Rr);case 174:return ke(3,Mn,Rr);case 262:return ke(3,un,Rr);case 218:return ke(3,on,Rr);case 219:return ke(1,pn,Rr);case 211:return ee&&sa(Rr)&&Rr.expression.kind===108&&ee.add(Rr.name.escapedText),ia(Rr,Dt,t);case 212:return ee&&Rr.expression.kind===108&&(te=!0),ia(Rr,Dt,t);case 177:return ke(3,kn,Rr);case 178:return ke(3,cr,Rr);case 176:return ke(3,tt,Rr);case 263:case 231:return ke(3,_t,Rr);default:return ia(Rr,Dt,t)}}function Ft(Rr){if(uSe(Rr))switch(Rr.kind){case 243:return Ye(Rr);case 248:return zt(Rr);case 249:return ut(Rr);case 250:return lt(Rr);case 299:return it(Rr);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return ia(Rr,Ft,t);default:return ce.assertNever(Rr,"Unhandled node.")}return Dt(Rr)}function it(Rr){const mc=new Set;Or(Rr.variableDeclaration,mc);let Ea;if(mc.forEach((Fi,ta)=>{V.has(ta)&&(Ea||(Ea=new Set(V)),Ea.delete(ta))}),Ea){const Fi=V;V=Ea;const ta=ia(Rr,Ft,t);return V=Fi,ta}else return ia(Rr,Ft,t)}function Ye(Rr){if(Xr(Rr.declarationList)){const mc=Ut(Rr.declarationList,!1);return mc?r.createExpressionStatement(mc):void 0}return ia(Rr,Dt,t)}function ut(Rr){return r.updateForInStatement(Rr,Xr(Rr.initializer)?Ut(Rr.initializer,!0):ce.checkDefined(nr(Rr.initializer,Dt,mA)),ce.checkDefined(nr(Rr.expression,Dt,Nr)),pE(Rr.statement,Ft,t))}function lt(Rr){return r.updateForOfStatement(Rr,nr(Rr.awaitModifier,Dt,zY),Xr(Rr.initializer)?Ut(Rr.initializer,!0):ce.checkDefined(nr(Rr.initializer,Dt,mA)),ce.checkDefined(nr(Rr.expression,Dt,Nr)),pE(Rr.statement,Ft,t))}function zt(Rr){const mc=Rr.initializer;return r.updateForStatement(Rr,Xr(mc)?Ut(mc,!1):nr(Rr.initializer,Dt,mA),nr(Rr.condition,Dt,Nr),nr(Rr.incrementor,Dt,Nr),pE(Rr.statement,Ft,t))}function Wt(Rr){return Le()?ia(Rr,Dt,t):tc(vr(r.createYieldExpression(void 0,nr(Rr.expression,Dt,Nr)),Rr),Rr)}function tt(Rr){return r.updateConstructorDeclaration(Rr,Fa(Rr.modifiers,Dt,bd),Bn(Rr.parameters,Dt,t),Gn(Rr))}function Mn(Rr){return r.updateMethodDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.asteriskToken,Rr.name,void 0,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):Gn(Rr))}function kn(Rr){return r.updateGetAccessorDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.name,Bn(Rr.parameters,Dt,t),void 0,Gn(Rr))}function cr(Rr){return r.updateSetAccessorDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.name,Bn(Rr.parameters,Dt,t),Gn(Rr))}function un(Rr){return r.updateFunctionDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.asteriskToken,Rr.name,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function on(Rr){return r.updateFunctionExpression(Rr,Fa(Rr.modifiers,Dt,bd),Rr.asteriskToken,Rr.name,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function pn(Rr){return r.updateArrowFunction(Rr,Fa(Rr.modifiers,Dt,bd),void 0,Bn(Rr.parameters,Dt,t),void 0,Rr.equalsGreaterThanToken,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function Or({name:Rr},mc){if(An(Rr))mc.add(Rr.escapedText);else for(const Ea of Rr.elements)t0(Ea)||Or(Ea,mc)}function Xr(Rr){return!!Rr&&My(Rr)&&!(Rr.flags&7)&&Rr.declarations.some(ei)}function Ut(Rr,mc){In(Rr);const Ea=n3(Rr);return Ea.length===0?mc?nr(r.converters.convertToAssignmentElementTarget(Rr.declarations[0].name),Dt,Nr):void 0:r.inlineExpressions(Vn(Ea,Cr))}function In(Rr){Ot(Rr.declarations,gr)}function gr({name:Rr}){if(An(Rr))y(Rr);else for(const mc of Rr.elements)t0(mc)||gr(mc)}function Cr(Rr){const mc=Sp(r.createAssignment(r.converters.convertToAssignmentElementTarget(Rr.name),Rr.initializer),Rr);return ce.checkDefined(nr(mc,Dt,Nr))}function ei({name:Rr}){if(An(Rr))return V.has(Rr.escapedText);for(const mc of Rr.elements)if(!t0(mc)&&ei(mc))return!0;return!1}function Gn(Rr){ce.assertIsDefined(Rr.body);const mc=ee,Ea=te;ee=new Set,te=!1;let Fi=sm(Rr.body,Dt,t);const ta=Ic(Rr,J_);if(I>=2&&T.getNodeCheckFlags(Rr)&384&&(L0(ta)&3)!==3){if(di(),ee.size){const jc=Lae(r,T,Rr,ee);oe[Im(jc)]=!0;const Xu=Fi.statements.slice();v2(Xu,[jc]),Fi=r.updateBlock(Fi,Xu)}te&&(T.getNodeCheckFlags(Rr)&256?lW(Fi,NG):T.getNodeCheckFlags(Rr)&128&&lW(Fi,PG))}return ee=mc,te=Ea,Fi}function Ur(Rr){l();const Ea=Ic(Rr,S_).type,Fi=I<2?ho(Ea):void 0,ta=Rr.kind===219,$a=(T.getNodeCheckFlags(Rr)&512)!==0,jc=V;V=new Set;for(const Aa of Rr.parameters)Or(Aa,V);const Xu=ee,Lo=te;ta||(ee=new Set,te=!1);let To;if(ta){const Aa=s().createAwaiterHelper(ht(),$a,Fi,so(Rr.body)),sl=m();if(gt(sl)){const vc=r.converters.convertToFunctionBlock(Aa);To=r.updateBlock(vc,vr(r.createNodeArray(Hi(sl,vc.statements)),vc.statements))}else To=Aa}else{const Aa=[],sl=r.copyPrologue(Rr.body.statements,Aa,!1,Dt);Aa.push(r.createReturnStatement(s().createAwaiterHelper(ht(),$a,Fi,so(Rr.body,sl)))),v2(Aa,m());const vc=I>=2&&T.getNodeCheckFlags(Rr)&384;if(vc&&(di(),ee.size)){const Jr=Lae(r,T,Rr,ee);oe[Im(Jr)]=!0,v2(Aa,[Jr])}const er=r.createBlock(Aa,!0);vr(er,Rr.body),vc&&te&&(T.getNodeCheckFlags(Rr)&256?lW(er,NG):T.getNodeCheckFlags(Rr)&128&&lW(er,PG)),To=er}return V=jc,ta||(ee=Xu,te=Lo),To}function so(Rr,mc){return E_(Rr)?r.updateBlock(Rr,Fa(Rr.statements,Ft,uf,mc)):r.converters.convertToFunctionBlock(ce.checkDefined(nr(Rr,Ft,tie)))}function ho(Rr){const mc=Rr&&iH(Rr);if(mc&&Vd(mc)){const Ea=T.getTypeReferenceSerializationKind(mc);if(Ea===1||Ea===0)return mc}}function di(){W&1||(W|=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 Nc(Rr,mc,Ea){if(W&1&&Ku(mc)){const Fi=T.getNodeCheckFlags(mc)&384;if(Fi!==O){const ta=O;O=Fi,ue(Rr,mc,Ea),O=ta;return}}else if(W&&oe[Im(mc)]){const Fi=O;O=0,ue(Rr,mc,Ea),O=Fi;return}ue(Rr,mc,Ea)}function ha(Rr,mc){return mc=Ne(Rr,mc),Rr===1&&O?ro(mc):mc}function ro(Rr){switch(Rr.kind){case 211:return Gs(Rr);case 212:return Oc(Rr);case 213:return _u(Rr)}return Rr}function Gs(Rr){return Rr.expression.kind===108?vr(r.createPropertyAccessExpression(r.createUniqueName("_super",48),Rr.name),Rr):Rr}function Oc(Rr){return Rr.expression.kind===108?al(Rr.argumentExpression,Rr):Rr}function _u(Rr){const mc=Rr.expression;if(Z1(mc)){const Ea=sa(mc)?Gs(mc):Oc(mc);return r.createCallExpression(r.createPropertyAccessExpression(Ea,"call"),void 0,[r.createThis(),...Rr.arguments])}return Rr}function Ku(Rr){const mc=Rr.kind;return mc===263||mc===176||mc===174||mc===177||mc===178}function al(Rr,mc){return O&256?vr(r.createPropertyAccessExpression(r.createCallExpression(r.createUniqueName("_superIndex",48),void 0,[Rr]),"value"),mc):vr(r.createCallExpression(r.createUniqueName("_superIndex",48),void 0,[Rr]),mc)}}function Lae(t,r,s,l){const m=(r.getNodeCheckFlags(s)&256)!==0,y=[];return l.forEach((T,D)=>{const I=lf(D),W=[];W.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Sa(t.createPropertyAccessExpression(Sa(t.createSuper(),8),I),8)))),m&&W.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(Sa(t.createPropertyAccessExpression(Sa(t.createSuper(),8),I),8),t.createIdentifier("v"))))),y.push(t.createPropertyAssignment(I,t.createObjectLiteralExpression(W)))}),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(y,!0)]))],2))}var lct=G({"src/compiler/transformers/es2017.ts"(){Ad()}});function Z2e(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=t.getEmitResolver(),D=t.getCompilerOptions(),I=iu(D),W=t.onEmitNode;t.onEmitNode=Aa;const O=t.onSubstituteNode;t.onSubstituteNode=sl;let V=!1,ee,te,oe,de=0,ue=0,Ne,Be,Ve,pt;const Le=[];return Vx(t,Ft);function ht(xt,Kn){return ue!==(ue&~xt|Kn)}function ke(xt,Kn){const gn=ue;return ue=(ue&~xt|Kn)&3,gn}function _t(xt){ue=xt}function Dt(xt){Be=ur(Be,r.createVariableDeclaration(xt))}function Ft(xt){if(xt.isDeclarationFile)return xt;Ne=xt;const Kn=Xr(xt);return JN(Kn,t.readEmitHelpers()),Ne=void 0,Be=void 0,Kn}function it(xt){return Wt(xt,!1)}function Ye(xt){return Wt(xt,!0)}function ut(xt){if(xt.kind!==134)return xt}function lt(xt,Kn,gn,qr){if(ht(gn,qr)){const mt=ke(gn,qr),_r=xt(Kn);return _t(mt),_r}return xt(Kn)}function zt(xt){return ia(xt,it,t)}function Wt(xt,Kn){if(!(xt.transformFlags&128))return xt;switch(xt.kind){case 223:return tt(xt);case 229:return Mn(xt);case 253:return kn(xt);case 256:return cr(xt);case 210:return on(xt);case 226:return In(xt,Kn);case 361:return gr(xt,Kn);case 299:return Cr(xt);case 243:return ei(xt);case 260:return Gn(xt);case 246:case 247:case 249:return lt(zt,xt,0,2);case 250:return di(xt,void 0);case 248:return lt(so,xt,0,2);case 222:return ho(xt);case 176:return lt(al,xt,2,1);case 174:return lt(Ea,xt,2,1);case 177:return lt(Rr,xt,2,1);case 178:return lt(mc,xt,2,1);case 262:return lt(Fi,xt,2,1);case 218:return lt($a,xt,2,1);case 219:return lt(ta,xt,2,0);case 169:return _u(xt);case 244:return pn(xt);case 217:return Or(xt,Kn);case 215:return Ut(xt);case 211:return Ve&&sa(xt)&&xt.expression.kind===108&&Ve.add(xt.name.escapedText),ia(xt,it,t);case 212:return Ve&&xt.expression.kind===108&&(pt=!0),ia(xt,it,t);case 263:case 231:return lt(zt,xt,2,1);default:return ia(xt,it,t)}}function tt(xt){return te&2&&te&1?tc(vr(r.createYieldExpression(void 0,s().createAwaitHelper(nr(xt.expression,it,Nr))),xt),xt):ia(xt,it,t)}function Mn(xt){if(te&2&&te&1){if(xt.asteriskToken){const Kn=nr(ce.checkDefined(xt.expression),it,Nr);return tc(vr(r.createYieldExpression(void 0,s().createAwaitHelper(r.updateYieldExpression(xt,xt.asteriskToken,vr(s().createAsyncDelegatorHelper(vr(s().createAsyncValuesHelper(Kn),Kn)),Kn)))),xt),xt)}return tc(vr(r.createYieldExpression(void 0,ro(xt.expression?nr(xt.expression,it,Nr):r.createVoidZero())),xt),xt)}return ia(xt,it,t)}function kn(xt){return te&2&&te&1?r.updateReturnStatement(xt,ro(xt.expression?nr(xt.expression,it,Nr):r.createVoidZero())):ia(xt,it,t)}function cr(xt){if(te&2){const Kn=tG(xt);return Kn.kind===250&&Kn.awaitModifier?di(Kn,xt):r.restoreEnclosingLabel(nr(Kn,it,uf,r.liftToBlock),xt)}return ia(xt,it,t)}function un(xt){let Kn;const gn=[];for(const qr of xt)if(qr.kind===305){Kn&&(gn.push(r.createObjectLiteralExpression(Kn)),Kn=void 0);const mt=qr.expression;gn.push(nr(mt,it,Nr))}else Kn=ur(Kn,qr.kind===303?r.createPropertyAssignment(qr.name,nr(qr.initializer,it,Nr)):nr(qr,it,KD));return Kn&&gn.push(r.createObjectLiteralExpression(Kn)),gn}function on(xt){if(xt.transformFlags&65536){const Kn=un(xt.properties);Kn.length&&Kn[0].kind!==210&&Kn.unshift(r.createObjectLiteralExpression());let gn=Kn[0];if(Kn.length>1){for(let qr=1;qr=2&&T.getNodeCheckFlags(xt)&384;if(Cn){To();const Qr=Lae(r,T,xt,Ve);Le[Im(Qr)]=!0,v2(Kn,[Qr])}Kn.push(_r),v2(Kn,m());const oi=r.updateBlock(xt.body,Kn);return Cn&&pt&&(T.getNodeCheckFlags(xt)&256?lW(oi,NG):T.getNodeCheckFlags(xt)&128&&lW(oi,PG)),Ve=qr,pt=mt,oi}function Xu(xt){l();let Kn=0;const gn=[],qr=nr(xt.body,it,tie)??r.createBlock([]);E_(qr)&&(Kn=r.copyPrologue(qr.statements,gn,!1,it)),Oi(gn,Lo(void 0,xt));const mt=m();if(Kn>0||gt(gn)||gt(mt)){const _r=r.converters.convertToFunctionBlock(qr,!0);return v2(gn,mt),Oi(gn,_r.statements.slice(Kn)),r.updateBlock(_r,vr(r.createNodeArray(gn),_r.statements))}return qr}function Lo(xt,Kn){let gn=!1;for(const qr of Kn.parameters)if(gn){if(ld(qr.name)){if(qr.name.elements.length>0){const mt=yI(qr,it,t,0,r.getGeneratedNameForNode(qr));if(gt(mt)){const _r=r.createVariableDeclarationList(mt),Cn=r.createVariableStatement(void 0,_r);Sa(Cn,2097152),xt=ur(xt,Cn)}}else if(qr.initializer){const mt=r.getGeneratedNameForNode(qr),_r=nr(qr.initializer,it,Nr),Cn=r.createAssignment(mt,_r),oi=r.createExpressionStatement(Cn);Sa(oi,2097152),xt=ur(xt,oi)}}else if(qr.initializer){const mt=r.cloneNode(qr.name);vr(mt,qr.name),Sa(mt,96);const _r=nr(qr.initializer,it,Nr);cI(_r,3168);const Cn=r.createAssignment(mt,_r);vr(Cn,qr),Sa(Cn,3072);const oi=r.createBlock([r.createExpressionStatement(Cn)]);vr(oi,qr),Sa(oi,3905);const Qr=r.createTypeCheck(r.cloneNode(qr.name),"undefined"),co=r.createIfStatement(Qr,oi);x1(co),vr(co,qr),Sa(co,2101056),xt=ur(xt,co)}}else if(qr.transformFlags&65536){gn=!0;const mt=yI(qr,it,t,1,r.getGeneratedNameForNode(qr),!1,!0);if(gt(mt)){const _r=r.createVariableDeclarationList(mt),Cn=r.createVariableStatement(void 0,_r);Sa(Cn,2097152),xt=ur(xt,Cn)}}return xt}function To(){ee&1||(ee|=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 Aa(xt,Kn,gn){if(ee&1&&Ir(Kn)){const qr=T.getNodeCheckFlags(Kn)&384;if(qr!==de){const mt=de;de=qr,W(xt,Kn,gn),de=mt;return}}else if(ee&&Le[Im(Kn)]){const qr=de;de=0,W(xt,Kn,gn),de=qr;return}W(xt,Kn,gn)}function sl(xt,Kn){return Kn=O(xt,Kn),xt===1&&de?vc(Kn):Kn}function vc(xt){switch(xt.kind){case 211:return er(xt);case 212:return Jr(xt);case 213:return li(xt)}return xt}function er(xt){return xt.expression.kind===108?vr(r.createPropertyAccessExpression(r.createUniqueName("_super",48),xt.name),xt):xt}function Jr(xt){return xt.expression.kind===108?_o(xt.argumentExpression,xt):xt}function li(xt){const Kn=xt.expression;if(Z1(Kn)){const gn=sa(Kn)?er(Kn):Jr(Kn);return r.createCallExpression(r.createPropertyAccessExpression(gn,"call"),void 0,[r.createThis(),...xt.arguments])}return xt}function Ir(xt){const Kn=xt.kind;return Kn===263||Kn===176||Kn===174||Kn===177||Kn===178}function _o(xt,Kn){return de&256?vr(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[xt]),"value"),Kn):vr(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[xt]),Kn)}}var uct=G({"src/compiler/transformers/es2018.ts"(){Ad()}});function exe(t){const r=t.factory;return Vx(t,s);function s(y){return y.isDeclarationFile?y:ia(y,l,t)}function l(y){if(!(y.transformFlags&64))return y;switch(y.kind){case 299:return m(y);default:return ia(y,l,t)}}function m(y){return y.variableDeclaration?ia(y,l,t):r.updateCatchClause(y,r.createVariableDeclaration(r.createTempVariable(void 0)),nr(y.block,l,E_))}}var Cme=G({"src/compiler/transformers/es2019.ts"(){Ad()}});function HHe(t){const{factory:r,hoistVariableDeclaration:s}=t;return Vx(t,l);function l(oe){return oe.isDeclarationFile?oe:ia(oe,m,t)}function m(oe){if(!(oe.transformFlags&32))return oe;switch(oe.kind){case 213:{const de=I(oe,!1);return ce.assertNotNode(de,ry),de}case 211:case 212:if(ky(oe)){const de=O(oe,!1,!1);return ce.assertNotNode(de,ry),de}return ia(oe,m,t);case 226:return oe.operatorToken.kind===61?ee(oe):ia(oe,m,t);case 220:return te(oe);default:return ia(oe,m,t)}}function y(oe){ce.assertNotNode(oe,Uz);const de=[oe];for(;!oe.questionDotToken&&!Hm(oe);)oe=uc(pA(oe.expression),ky),ce.assertNotNode(oe,Uz),de.unshift(oe);return{expression:oe.expression,chain:de}}function T(oe,de,ue){const Ne=W(oe.expression,de,ue);return ry(Ne)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(oe,Ne.expression),Ne.thisArg):r.updateParenthesizedExpression(oe,Ne)}function D(oe,de,ue){if(ky(oe))return O(oe,de,ue);let Ne=nr(oe.expression,m,Nr);ce.assertNotNode(Ne,ry);let Be;return de&&(D6(Ne)?Be=Ne:(Be=r.createTempVariable(s),Ne=r.createAssignment(Be,Ne))),Ne=oe.kind===211?r.updatePropertyAccessExpression(oe,Ne,nr(oe.name,m,An)):r.updateElementAccessExpression(oe,Ne,nr(oe.argumentExpression,m,Nr)),Be?r.createSyntheticReferenceExpression(Ne,Be):Ne}function I(oe,de){if(ky(oe))return O(oe,de,!1);if(sb(oe.expression)&&ky(_g(oe.expression))){const ue=T(oe.expression,!0,!1),Ne=Fa(oe.arguments,m,Nr);return ry(ue)?vr(r.createFunctionCallCall(ue.expression,ue.thisArg,Ne),oe):r.updateCallExpression(oe,ue,void 0,Ne)}return ia(oe,m,t)}function W(oe,de,ue){switch(oe.kind){case 217:return T(oe,de,ue);case 211:case 212:return D(oe,de,ue);case 213:return I(oe,de);default:return nr(oe,m,Nr)}}function O(oe,de,ue){const{expression:Ne,chain:Be}=y(oe),Ve=W(pA(Ne),R8(Be[0]),!1);let pt=ry(Ve)?Ve.thisArg:void 0,Le=ry(Ve)?Ve.expression:Ve,ht=r.restoreOuterExpressions(Ne,Le,8);D6(Le)||(Le=r.createTempVariable(s),ht=r.createAssignment(Le,ht));let ke=Le,_t;for(let Ft=0;FtWt&&Oi(tt,Fa(lt.statements,V,uf,Wt,Mn-Wt));break}Mn++}ce.assert(Mnue(tt,Wt))))],Wt,zt===2)}return ia(lt,V,t)}function Be(lt,zt,Wt,tt,Mn){const kn=[];for(let on=zt;onr&&(r=l)}return r}function g4e(t){let r=0;for(const s of t){const l=kme(s.statements);if(l===2)return 2;l>r&&(r=l)}return r}var h4e=G({"src/compiler/transformers/esnext.ts"(){Ad()}});function qHe(t){const{factory:r,getEmitHelperFactory:s}=t,l=t.getCompilerOptions();let m,y;return Vx(t,V);function T(){if(y.filenameDeclaration)return y.filenameDeclaration.name;const Ut=r.createVariableDeclaration(r.createUniqueName("_jsxFileName",48),void 0,void 0,r.createStringLiteral(m.fileName));return y.filenameDeclaration=Ut,y.filenameDeclaration.name}function D(Ut){return l.jsx===5?"jsxDEV":Ut?"jsxs":"jsx"}function I(Ut){const In=D(Ut);return O(In)}function W(){return O("Fragment")}function O(Ut){var In,gr;const Cr=Ut==="createElement"?y.importSpecifier:HH(y.importSpecifier,l),ei=(gr=(In=y.utilizedImplicitRuntimeImports)==null?void 0:In.get(Cr))==null?void 0:gr.get(Ut);if(ei)return ei.name;y.utilizedImplicitRuntimeImports||(y.utilizedImplicitRuntimeImports=new Map);let Gn=y.utilizedImplicitRuntimeImports.get(Cr);Gn||(Gn=new Map,y.utilizedImplicitRuntimeImports.set(Cr,Gn));const Ur=r.createUniqueName(`_${Ut}`,112),so=r.createImportSpecifier(!1,r.createIdentifier(Ut),Ur);return J7(Ur,so),Gn.set(Ut,so),Ur}function V(Ut){if(Ut.isDeclarationFile)return Ut;m=Ut,y={},y.importSpecifier=UH(l,Ut);let In=ia(Ut,ee,t);JN(In,t.readEmitHelpers());let gr=In.statements;if(y.filenameDeclaration&&(gr=Kz(gr.slice(),r.createVariableStatement(void 0,r.createVariableDeclarationList([y.filenameDeclaration],2)))),y.utilizedImplicitRuntimeImports){for(const[Cr,ei]of oc(y.utilizedImplicitRuntimeImports.entries()))if(Wv(Ut)){const Gn=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamedImports(oc(ei.values()))),r.createStringLiteral(Cr),void 0);Q2(Gn,!1),gr=Kz(gr.slice(),Gn)}else if(h1(Ut)){const Gn=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createObjectBindingPattern(oc(ei.values(),Ur=>r.createBindingElement(void 0,Ur.propertyName,Ur.name))),void 0,void 0,r.createCallExpression(r.createIdentifier("require"),void 0,[r.createStringLiteral(Cr)]))],2));Q2(Gn,!1),gr=Kz(gr.slice(),Gn)}}return gr!==In.statements&&(In=r.updateSourceFile(In,gr)),y=void 0,In}function ee(Ut){return Ut.transformFlags&2?te(Ut):Ut}function te(Ut){switch(Ut.kind){case 284:return Be(Ut,!1);case 285:return Ve(Ut,!1);case 288:return pt(Ut,!1);case 294:return Xr(Ut);default:return ia(Ut,ee,t)}}function oe(Ut){switch(Ut.kind){case 12:return Mn(Ut);case 294:return Xr(Ut);case 284:return Be(Ut,!0);case 285:return Ve(Ut,!0);case 288:return pt(Ut,!0);default:return ce.failBadSyntaxKind(Ut)}}function de(Ut){return Ut.properties.some(In=>Fm(In)&&(An(In.name)&&ec(In.name)==="__proto__"||Wp(In.name)&&In.name.text==="__proto__"))}function ue(Ut){let In=!1;for(const gr of Ut.attributes.properties)if(Ek(gr)&&(!Wd(gr.expression)||gr.expression.properties.some(xk)))In=!0;else if(In&&Pb(gr)&&An(gr.name)&&gr.name.escapedText==="key")return!0;return!1}function Ne(Ut){return y.importSpecifier===void 0||ue(Ut)}function Be(Ut,In){return(Ne(Ut.openingElement)?Dt:ke)(Ut.openingElement,Ut.children,In,Ut)}function Ve(Ut,In){return(Ne(Ut)?Dt:ke)(Ut,void 0,In,Ut)}function pt(Ut,In){return(y.importSpecifier===void 0?it:Ft)(Ut.openingFragment,Ut.children,In,Ut)}function Le(Ut){const In=ht(Ut);return In&&r.createObjectLiteralExpression([In])}function ht(Ut){const In=yY(Ut);if(Nt(In)===1&&!In[0].dotDotDotToken){const Cr=oe(In[0]);return Cr&&r.createPropertyAssignment("children",Cr)}const gr=Qo(Ut,oe);return Nt(gr)?r.createPropertyAssignment("children",r.createArrayLiteralExpression(gr)):void 0}function ke(Ut,In,gr,Cr){const ei=pn(Ut),Gn=In&&In.length?ht(In):void 0,Ur=lr(Ut.attributes.properties,di=>!!di.name&&An(di.name)&&di.name.escapedText==="key"),so=Ur?gi(Ut.attributes.properties,di=>di!==Ur):Ut.attributes.properties,ho=Nt(so)?ut(so,Gn):r.createObjectLiteralExpression(Gn?[Gn]:Zn);return _t(ei,ho,Ur,In||Zn,gr,Cr)}function _t(Ut,In,gr,Cr,ei,Gn){var Ur;const so=yY(Cr),ho=Nt(so)>1||!!((Ur=so[0])!=null&&Ur.dotDotDotToken),di=[Ut,In];if(gr&&di.push(tt(gr.initializer)),l.jsx===5){const ha=Ic(m);if(ha&&tl(ha)){gr===void 0&&di.push(r.createVoidZero()),di.push(ho?r.createTrue():r.createFalse());const ro=Ah(ha,Gn.pos);di.push(r.createObjectLiteralExpression([r.createPropertyAssignment("fileName",T()),r.createPropertyAssignment("lineNumber",r.createNumericLiteral(ro.line+1)),r.createPropertyAssignment("columnNumber",r.createNumericLiteral(ro.character+1))])),di.push(r.createThis())}}const Nc=vr(r.createCallExpression(I(ho),void 0,di),Gn);return ei&&x1(Nc),Nc}function Dt(Ut,In,gr,Cr){const ei=pn(Ut),Gn=Ut.attributes.properties,Ur=Nt(Gn)?ut(Gn):r.createNull(),so=y.importSpecifier===void 0?k6e(r,t.getEmitResolver().getJsxFactoryEntity(m),l.reactNamespace,Ut):O("createElement"),ho=sF(r,so,ei,Ur,Qo(In,oe),Cr);return gr&&x1(ho),ho}function Ft(Ut,In,gr,Cr){let ei;if(In&&In.length){const Gn=Le(In);Gn&&(ei=Gn)}return _t(W(),ei||r.createObjectLiteralExpression([]),void 0,In,gr,Cr)}function it(Ut,In,gr,Cr){const ei=PEe(r,t.getEmitResolver().getJsxFactoryEntity(m),t.getEmitResolver().getJsxFragmentFactoryEntity(m),l.reactNamespace,Qo(In,oe),Ut,Cr);return gr&&x1(ei),ei}function Ye(Ut){return Wd(Ut.expression)&&!de(Ut.expression)?Ut.expression.properties:r.createSpreadAssignment(ce.checkDefined(nr(Ut.expression,ee,Nr)))}function ut(Ut,In){const gr=iu(l);return gr&&gr>=5?r.createObjectLiteralExpression(lt(Ut,In)):zt(Ut,In)}function lt(Ut,In){const gr=Gf(fa(Ut,Ek,(Cr,ei)=>Gf(Vn(Cr,Gn=>ei?Ye(Gn):Wt(Gn)))));return In&&gr.push(In),gr}function zt(Ut,In){const gr=[];let Cr=[];for(const Gn of Ut){if(Ek(Gn)){if(Wd(Gn.expression)&&!de(Gn.expression)){for(const Ur of Gn.expression.properties){if(xk(Ur)){ei(),gr.push(ce.checkDefined(nr(Ur.expression,ee,Nr)));continue}Cr.push(ce.checkDefined(nr(Ur,ee)))}continue}ei(),gr.push(ce.checkDefined(nr(Gn.expression,ee,Nr)));continue}Cr.push(Wt(Gn))}return In&&Cr.push(In),ei(),gr.length&&!Wd(gr[0])&&gr.unshift(r.createObjectLiteralExpression()),Vb(gr)||s().createAssignHelper(gr);function ei(){Cr.length&&(gr.push(r.createObjectLiteralExpression(Cr)),Cr=[])}}function Wt(Ut){const In=Or(Ut),gr=tt(Ut.initializer);return r.createPropertyAssignment(In,gr)}function tt(Ut){if(Ut===void 0)return r.createTrue();if(Ut.kind===11){const In=Ut.singleQuote!==void 0?Ut.singleQuote:!Aie(Ut,m),gr=r.createStringLiteral(on(Ut.text)||Ut.text,In);return vr(gr,Ut)}return Ut.kind===294?Ut.expression===void 0?r.createTrue():ce.checkDefined(nr(Ut.expression,ee,Nr)):gy(Ut)?Be(Ut,!1):TW(Ut)?Ve(Ut,!1):KE(Ut)?pt(Ut,!1):ce.failBadSyntaxKind(Ut)}function Mn(Ut){const In=kn(Ut.text);return In===void 0?void 0:r.createStringLiteral(In)}function kn(Ut){let In,gr=0,Cr=-1;for(let ei=0;ei{if(Gn)return LU(parseInt(Gn,10));if(Ur)return LU(parseInt(Ur,16));{const ho=nxe.get(so);return ho?LU(ho):In}})}function on(Ut){const In=un(Ut);return In===Ut?void 0:In}function pn(Ut){if(Ut.kind===284)return pn(Ut.openingElement);{const In=Ut.tagName;return An(In)&&z9(In.escapedText)?r.createStringLiteral(ec(In)):dI(In)?r.createStringLiteral(ec(In.namespace)+":"+ec(In.name)):gpe(r,In)}}function Or(Ut){const In=Ut.name;if(An(In)){const gr=ec(In);return/^[A-Za-z_]\w*$/.test(gr)?In:r.createStringLiteral(gr)}return r.createStringLiteral(ec(In.namespace)+":"+ec(In.name))}function Xr(Ut){const In=nr(Ut.expression,ee,Nr);return Ut.dotDotDotToken?r.createSpreadElement(In):In}}var nxe,rxe=G({"src/compiler/transformers/jsx.ts"(){Ad(),nxe=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 KHe(t){const{factory:r,hoistVariableDeclaration:s}=t;return Vx(t,l);function l(I){return I.isDeclarationFile?I:ia(I,m,t)}function m(I){if(!(I.transformFlags&512))return I;switch(I.kind){case 226:return y(I);default:return ia(I,m,t)}}function y(I){switch(I.operatorToken.kind){case 68:return T(I);case 43:return D(I);default:return ia(I,m,t)}}function T(I){let W,O;const V=nr(I.left,m,Nr),ee=nr(I.right,m,Nr);if(Ed(V)){const te=r.createTempVariable(s),oe=r.createTempVariable(s);W=vr(r.createElementAccessExpression(vr(r.createAssignment(te,V.expression),V.expression),vr(r.createAssignment(oe,V.argumentExpression),V.argumentExpression)),V),O=vr(r.createElementAccessExpression(te,oe),V)}else if(sa(V)){const te=r.createTempVariable(s);W=vr(r.createPropertyAccessExpression(vr(r.createAssignment(te,V.expression),V.expression),V.name),V),O=vr(r.createPropertyAccessExpression(te,V.name),V)}else W=V,O=V;return vr(r.createAssignment(W,vr(r.createGlobalMethodCall("Math","pow",[O,ee]),I)),I)}function D(I){const W=nr(I.left,m,Nr),O=nr(I.right,m,Nr);return vr(r.createGlobalMethodCall("Math","pow",[W,O]),I)}}var _ct=G({"src/compiler/transformers/es2016.ts"(){Ad()}});function ixe(t,r){return{kind:t,expression:r}}function y4e(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,resumeLexicalEnvironment:m,endLexicalEnvironment:y,hoistVariableDeclaration:T}=t,D=t.getCompilerOptions(),I=t.getEmitResolver(),W=t.onSubstituteNode,O=t.onEmitNode;t.onEmitNode=Sv,t.onSubstituteNode=S0;let V,ee,te,oe;function de(bt){oe=ur(oe,r.createVariableDeclaration(bt))}let ue,Ne;return Vx(t,Be);function Be(bt){if(bt.isDeclarationFile)return bt;V=bt,ee=bt.text;const ir=ut(bt);return JN(ir,t.readEmitHelpers()),V=void 0,ee=void 0,oe=void 0,te=0,ir}function Ve(bt,ir){const ii=te;return te=(te&~bt|ir)&32767,ii}function pt(bt,ir,ii){te=(te&~ir|ii)&-32768|bt}function Le(bt){return(te&8192)!==0&&bt.kind===253&&!bt.expression}function ht(bt){return bt.transformFlags&4194304&&(Bx(bt)||Xg(bt)||D6e(bt)||Loe(bt)||xP(bt)||tx(bt)||CR(bt)||AR(bt)||CP(bt)||iS(bt)||kN(bt,!1)||E_(bt))}function ke(bt){return(bt.transformFlags&1024)!==0||ue!==void 0||te&8192&&ht(bt)||kN(bt,!1)&&Ks(bt)||(dh(bt)&1)!==0}function _t(bt){return ke(bt)?Ye(bt,!1):bt}function Dt(bt){return ke(bt)?Ye(bt,!0):bt}function Ft(bt){if(ke(bt)){const ir=Ic(bt);if(Os(ir)&&Ny(ir)){const ii=Ve(32670,16449),Si=Ye(bt,!1);return pt(ii,98304,0),Si}return Ye(bt,!1)}return bt}function it(bt){return bt.kind===108?J0(!0):_t(bt)}function Ye(bt,ir){switch(bt.kind){case 126:return;case 263:return on(bt);case 231:return pn(bt);case 169:return ha(bt);case 262:return sl(bt);case 219:return To(bt);case 218:return Aa(bt);case 260:return oi(bt);case 80:return cr(bt);case 261:return qr(bt);case 255:return lt(bt);case 269:return zt(bt);case 241:return Jr(bt,!1);case 252:case 251:return un(bt);case 256:return es(bt);case 246:case 247:return We(bt,void 0);case 248:return Re(bt,void 0);case 249:return $e(bt,void 0);case 250:return Zt(bt,void 0);case 244:return li(bt);case 210:return mi(bt);case 299:return Mg(bt);case 304:return hy(bt);case 167:return fS(bt);case 209:return vE(bt);case 213:return oh(bt);case 214:return Qn(bt);case 217:return Ir(bt,ir);case 226:return _o(bt,ir);case 361:return xt(bt,ir);case 15:case 16:case 17:case 18:return yu(bt);case 11:return Xm(bt);case 9:return Lg(bt);case 215:return av(bt);case 228:return Fh(bt);case 229:return GT(bt);case 230:return gu(bt);case 108:return J0(!1);case 110:return Mn(bt);case 236:return Eg(bt);case 174:return nm(bt);case 177:case 178:return po(bt);case 243:return gn(bt);case 253:return tt(bt);case 222:return kn(bt);default:return ia(bt,_t,t)}}function ut(bt){const ir=Ve(8064,64),ii=[],Si=[];l();const Do=r.copyPrologue(bt.statements,ii,!1,_t);return Oi(Si,Fa(bt.statements,_t,uf,Do)),oe&&Si.push(r.createVariableStatement(void 0,r.createVariableDeclarationList(oe))),r.mergeLexicalEnvironment(ii,y()),Rr(ii,bt),pt(ir,0,0),r.updateSourceFile(bt,vr(r.createNodeArray(Hi(ii,Si)),bt.statements))}function lt(bt){if(ue!==void 0){const ir=ue.allowedNonLabeledJumps;ue.allowedNonLabeledJumps|=2;const ii=ia(bt,_t,t);return ue.allowedNonLabeledJumps=ir,ii}return ia(bt,_t,t)}function zt(bt){const ir=Ve(7104,0),ii=ia(bt,_t,t);return pt(ir,0,0),ii}function Wt(bt){return tc(r.createReturnStatement(r.createUniqueName("_this",48)),bt)}function tt(bt){return ue?(ue.nonLocalJumps|=8,Le(bt)&&(bt=Wt(bt)),r.createReturnStatement(r.createObjectLiteralExpression([r.createPropertyAssignment(r.createIdentifier("value"),bt.expression?ce.checkDefined(nr(bt.expression,_t,Nr)):r.createVoidZero())]))):Le(bt)?Wt(bt):ia(bt,_t,t)}function Mn(bt){return te&2&&!(te&16384)&&(te|=65536),ue?te&2?(ue.containsLexicalThis=!0,bt):ue.thisName||(ue.thisName=r.createUniqueName("this")):bt}function kn(bt){return ia(bt,Dt,t)}function cr(bt){return ue&&I.isArgumentsLocalBinding(bt)?ue.argumentsName||(ue.argumentsName=r.createUniqueName("arguments")):bt.flags&256?tc(vr(r.createIdentifier(lf(bt.escapedText)),bt),bt):bt}function un(bt){if(ue){const ir=bt.kind===252?2:4;if(!(bt.label&&ue.labels&&ue.labels.get(ec(bt.label))||!bt.label&&ue.allowedNonLabeledJumps&ir)){let Si;const Do=bt.label;Do?bt.kind===252?(Si=`break-${Do.escapedText}`,Yu(ue,!0,ec(Do),Si)):(Si=`continue-${Do.escapedText}`,Yu(ue,!1,ec(Do),Si)):bt.kind===252?(ue.nonLocalJumps|=2,Si="break"):(ue.nonLocalJumps|=4,Si="continue");let Za=r.createStringLiteral(Si);if(ue.loopOutParameters.length){const Qc=ue.loopOutParameters;let Al;for(let du=0;du=0?gh:ii.length;if(N_&&gh>=0){let jv=Si;for(;N_&&jv=0?ii[gh]:void 0;if(Gv&&AR(Gv)){const jv=[];zp=ei(bt,jv,Gv.tryBlock.statements,0,Do,Za+1,Qc,Al,du,N_);const vy=r.createNodeArray(jv);vr(vy,Gv.tryBlock.statements),ir.push(r.updateTryStatement(Gv,r.updateBlock(Gv.tryBlock,jv),nr(Gv.catchClause,_t,CP),nr(Gv.finallyBlock,_t,E_)))}else{const jv=Gv&&lj(Gv);let vy;if(du?(vy=Nc(),te|=8192):jv&&(vy=_e(jv),te|=8192),Al||vy)if(vy&&gh===ii.length-1&&!(Qc.body.transformFlags&16384)){const ub=uc(uc(vy,ys).left,el),E0=r.createReturnStatement(vy);return Ry(E0,lI(ub)),Sa(ub,3072),ir.push(E0),!1}else N_?Ea(ir,Qc,vy||di()):(Ea(bt,Qc,di()),vy&&mc(ir,vy)),zp=!0;else Rr(bt,Qc)}return gh>=0&&Oi(ir,Fa(ii,_t,uf,gh+1)),zp}function Gn(bt){return Dh(bt)&&jr(bt.declarationList.declarations,ir=>An(ir.name)&&!ir.initializer)}function Ur(bt){if(!Dh(bt)||bt.declarationList.declarations.length!==1)return!1;const ir=bt.declarationList.declarations[0];if(!An(ir.name)||!ir.initializer)return!1;const ii=ir.initializer;if(!Wd(ii)||ii.properties.length!==3)return!1;const[Si,Do,Za]=ii.properties;return!(!Fm(Si)||!An(Si.name)||ec(Si.name)!=="stack"||!Ch(Si.initializer)||!Fm(Do)||!An(Do.name)||ec(Do.name)!=="error"||!$m(Do.initializer)||!nS(Do.initializer.expression)||!Fm(Za)||!An(Za.name)||ec(Za.name)!=="hasError"||Za.initializer.kind!==97)}function so(bt,ir,ii,Si){const Do=!!ii&&rv(ii.expression).kind!==106;if(!bt)return Cr(ir,Do);const Za=[],Qc=[];m();const Al=r.copyStandardPrologue(bt.body.statements,Za,0),du=IA(bt.body.statements,Al);(Si||du.length>0)&&(te|=8192);const N_=ei(Za,Qc,bt.body.statements,Al,du,0,bt,Do,Si,!0);Gs(Za,bt),al(Za,bt,Si),Fi(Za,bt),r.mergeLexicalEnvironment(Za,y()),N_&&!ho(bt.body)&&Qc.push(r.createReturnStatement(r.createUniqueName("_this",48)));const zp=r.createBlock(vr(r.createNodeArray([...Za,...Qc]),bt.body.statements),!0);return vr(zp,bt.body),zp}function ho(bt){if(bt.kind===253)return!0;if(bt.kind===245){const ir=bt;if(ir.elseStatement)return ho(ir.thenStatement)&&ho(ir.elseStatement)}else if(bt.kind===241){const ir=Yf(bt.statements);if(ir&&ho(ir))return!0}return!1}function di(){return Sa(r.createThis(),8)}function Nc(){return r.createLogicalOr(r.createLogicalAnd(r.createStrictInequality(r.createUniqueName("_super",48),r.createNull()),r.createFunctionApplyCall(r.createUniqueName("_super",48),di(),r.createIdentifier("arguments"))),di())}function ha(bt){if(!bt.dotDotDotToken)return ld(bt.name)?tc(vr(r.createParameterDeclaration(void 0,void 0,r.getGeneratedNameForNode(bt),void 0,void 0,void 0),bt),bt):bt.initializer?tc(vr(r.createParameterDeclaration(void 0,void 0,bt.name,void 0,void 0,void 0),bt),bt):bt}function ro(bt){return bt.initializer!==void 0||ld(bt.name)}function Gs(bt,ir){if(!gt(ir.parameters,ro))return!1;let ii=!1;for(const Si of ir.parameters){const{name:Do,initializer:Za,dotDotDotToken:Qc}=Si;Qc||(ld(Do)?ii=Oc(bt,Si,Do,Za)||ii:Za&&(_u(bt,Si,Do,Za),ii=!0))}return ii}function Oc(bt,ir,ii,Si){return ii.elements.length>0?(Kz(bt,Sa(r.createVariableStatement(void 0,r.createVariableDeclarationList(yI(ir,_t,t,0,r.getGeneratedNameForNode(ir)))),2097152)),!0):Si?(Kz(bt,Sa(r.createExpressionStatement(r.createAssignment(r.getGeneratedNameForNode(ir),ce.checkDefined(nr(Si,_t,Nr)))),2097152)),!0):!1}function _u(bt,ir,ii,Si){Si=ce.checkDefined(nr(Si,_t,Nr));const Do=r.createIfStatement(r.createTypeCheck(r.cloneNode(ii),"undefined"),Sa(vr(r.createBlock([r.createExpressionStatement(Sa(vr(r.createAssignment(Sa(kl(vr(r.cloneNode(ii),ii),ii.parent),96),Sa(Si,96|Tp(Si)|3072)),ir),3072))]),ir),3905));x1(Do),vr(Do,ir),Sa(Do,2101056),Kz(bt,Do)}function Ku(bt,ir){return!!(bt&&bt.dotDotDotToken&&!ir)}function al(bt,ir,ii){const Si=[],Do=Yf(ir.parameters);if(!Ku(Do,ii))return!1;const Za=Do.name.kind===80?kl(vr(r.cloneNode(Do.name),Do.name),Do.name.parent):r.createTempVariable(void 0);Sa(Za,96);const Qc=Do.name.kind===80?r.cloneNode(Do.name):Za,Al=ir.parameters.length-1,du=r.createLoopVariable();Si.push(Sa(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Za,void 0,void 0,r.createArrayLiteralExpression([]))])),Do),2097152));const N_=r.createForStatement(vr(r.createVariableDeclarationList([r.createVariableDeclaration(du,void 0,void 0,r.createNumericLiteral(Al))]),Do),vr(r.createLessThan(du,r.createPropertyAccessExpression(r.createIdentifier("arguments"),"length")),Do),vr(r.createPostfixIncrement(du),Do),r.createBlock([x1(vr(r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(Qc,Al===0?du:r.createSubtract(du,r.createNumericLiteral(Al))),r.createElementAccessExpression(r.createIdentifier("arguments"),du))),Do))]));return Sa(N_,2097152),x1(N_),Si.push(N_),Do.name.kind!==80&&Si.push(Sa(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList(yI(Do,_t,t,0,Qc))),Do),2097152)),fie(bt,Si),!0}function Rr(bt,ir){return te&65536&&ir.kind!==219?(Ea(bt,ir,r.createThis()),!0):!1}function mc(bt,ir){Ev();const ii=r.createExpressionStatement(r.createBinaryExpression(r.createThis(),64,ir));bt.push(ii),Ry(ii,Ic(ir).parent)}function Ea(bt,ir,ii){Ev();const Si=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_this",48),void 0,void 0,ii)]));Sa(Si,2100224),Sp(Si,ir),Kz(bt,Si)}function Fi(bt,ir){if(te&32768){let ii;switch(ir.kind){case 219:return bt;case 174:case 177:case 178:ii=r.createVoidZero();break;case 176:ii=r.createPropertyAccessExpression(Sa(r.createThis(),8),"constructor");break;case 262:case 218:ii=r.createConditionalExpression(r.createLogicalAnd(Sa(r.createThis(),8),r.createBinaryExpression(Sa(r.createThis(),8),104,r.getLocalName(ir))),void 0,r.createPropertyAccessExpression(Sa(r.createThis(),8),"constructor"),void 0,r.createVoidZero());break;default:return ce.failBadSyntaxKind(ir)}const Si=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_newTarget",48),void 0,void 0,ii)]));Sa(Si,2100224),Kz(bt,Si)}return bt}function ta(bt,ir){for(const ii of ir.members)switch(ii.kind){case 240:bt.push($a(ii));break;case 174:bt.push(jc(ig(ir,ii),ii,ir));break;case 177:case 178:const Si=gG(ir.members,ii);ii===Si.firstAccessor&&bt.push(Xu(ig(ir,ii),Si,ir));break;case 176:case 175:break;default:ce.failBadSyntaxKind(ii,V&&V.fileName);break}}function $a(bt){return vr(r.createEmptyStatement(),bt)}function jc(bt,ir,ii){const Si=lI(ir),Do=cE(ir),Za=vc(ir,ir,void 0,ii),Qc=nr(ir.name,_t,_y);ce.assert(Qc);let Al;if(!Gu(Qc)&&X9(t.getCompilerOptions())){const N_=am(Qc)?Qc.expression:An(Qc)?r.createStringLiteral(lf(Qc.escapedText)):Qc;Al=r.createObjectDefinePropertyCall(bt,N_,r.createPropertyDescriptor({value:Za,enumerable:!1,writable:!0,configurable:!0}))}else{const N_=e4(r,bt,Qc,ir.name);Al=r.createAssignment(N_,Za)}Sa(Za,3072),Sp(Za,Do);const du=vr(r.createExpressionStatement(Al),ir);return tc(du,ir),Ry(du,Si),Sa(du,96),du}function Xu(bt,ir,ii){const Si=r.createExpressionStatement(Lo(bt,ir,ii,!1));return Sa(Si,3072),Sp(Si,cE(ir.firstAccessor)),Si}function Lo(bt,{firstAccessor:ir,getAccessor:ii,setAccessor:Si},Do,Za){const Qc=kl(vr(r.cloneNode(bt),bt),bt.parent);Sa(Qc,3136),Sp(Qc,ir.name);const Al=nr(ir.name,_t,_y);if(ce.assert(Al),Gu(Al))return ce.failBadSyntaxKind(Al,"Encountered unhandled private identifier while transforming ES2015.");const du=hpe(r,Al);Sa(du,3104),Sp(du,ir.name);const N_=[];if(ii){const gh=vc(ii,void 0,void 0,Do);Sp(gh,cE(ii)),Sa(gh,1024);const Wh=r.createPropertyAssignment("get",gh);Ry(Wh,lI(ii)),N_.push(Wh)}if(Si){const gh=vc(Si,void 0,void 0,Do);Sp(gh,cE(Si)),Sa(gh,1024);const Wh=r.createPropertyAssignment("set",gh);Ry(Wh,lI(Si)),N_.push(Wh)}N_.push(r.createPropertyAssignment("enumerable",ii||Si?r.createFalse():r.createTrue()),r.createPropertyAssignment("configurable",r.createTrue()));const zp=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[Qc,du,r.createObjectLiteralExpression(N_,!0)]);return Za&&x1(zp),zp}function To(bt){bt.transformFlags&16384&&!(te&16384)&&(te|=65536);const ir=ue;ue=void 0;const ii=Ve(15232,66),Si=r.createFunctionExpression(void 0,void 0,void 0,void 0,Bn(bt.parameters,_t,t),void 0,er(bt));return vr(Si,bt),tc(Si,bt),Sa(Si,16),pt(ii,0,0),ue=ir,Si}function Aa(bt){const ir=Tp(bt)&524288?Ve(32662,69):Ve(32670,65),ii=ue;ue=void 0;const Si=Bn(bt.parameters,_t,t),Do=er(bt),Za=te&32768?r.getLocalName(bt):bt.name;return pt(ir,98304,0),ue=ii,r.updateFunctionExpression(bt,void 0,bt.asteriskToken,Za,void 0,Si,void 0,Do)}function sl(bt){const ir=ue;ue=void 0;const ii=Ve(32670,65),Si=Bn(bt.parameters,_t,t),Do=er(bt),Za=te&32768?r.getLocalName(bt):bt.name;return pt(ii,98304,0),ue=ir,r.updateFunctionDeclaration(bt,Fa(bt.modifiers,_t,bd),bt.asteriskToken,Za,void 0,Si,void 0,Do)}function vc(bt,ir,ii,Si){const Do=ue;ue=void 0;const Za=Si&&Jl(Si)&&!e_(bt)?Ve(32670,73):Ve(32670,65),Qc=Bn(bt.parameters,_t,t),Al=er(bt);return te&32768&&!ii&&(bt.kind===262||bt.kind===218)&&(ii=r.getGeneratedNameForNode(bt)),pt(Za,98304,0),ue=Do,tc(vr(r.createFunctionExpression(void 0,bt.asteriskToken,ii,void 0,Qc,void 0,Al),ir),bt)}function er(bt){let ir=!1,ii=!1,Si,Do;const Za=[],Qc=[],Al=bt.body;let du;if(m(),E_(Al)&&(du=r.copyStandardPrologue(Al.statements,Za,0,!1),du=r.copyCustomPrologue(Al.statements,Qc,du,_t,hie),du=r.copyCustomPrologue(Al.statements,Qc,du,_t,yie)),ir=Gs(Qc,bt)||ir,ir=al(Qc,bt,!1)||ir,E_(Al))du=r.copyCustomPrologue(Al.statements,Qc,du,_t),Si=Al.statements,Oi(Qc,Fa(Al.statements,_t,uf,du)),!ir&&Al.multiLine&&(ir=!0);else{ce.assert(bt.kind===219),Si=NH(Al,-1);const zp=bt.equalsGreaterThanToken;!rh(zp)&&!rh(Al)&&(H9(zp,Al,V)?ii=!0:ir=!0);const gh=nr(Al,_t,Nr),Wh=r.createReturnStatement(gh);vr(Wh,Al),PY(Wh,Al),Sa(Wh,2880),Qc.push(Wh),Do=Al}if(r.mergeLexicalEnvironment(Za,y()),Fi(Za,bt),Rr(Za,bt),gt(Za)&&(ir=!0),Qc.unshift(...Za),E_(Al)&&fv(Qc,Al.statements))return Al;const N_=r.createBlock(vr(r.createNodeArray(Qc),Si),ir);return vr(N_,bt.body),!ir&&ii&&Sa(N_,1),Do&&YL(N_,20,Do),tc(N_,bt.body),N_}function Jr(bt,ir){if(ir)return ia(bt,_t,t);const ii=te&256?Ve(7104,512):Ve(6976,128),Si=ia(bt,_t,t);return pt(ii,0,0),Si}function li(bt){return ia(bt,Dt,t)}function Ir(bt,ir){return ia(bt,ir?Dt:_t,t)}function _o(bt,ir){return Tg(bt)?Ik(bt,_t,t,0,!ir):bt.operatorToken.kind===28?r.updateBinaryExpression(bt,ce.checkDefined(nr(bt.left,Dt,Nr)),bt.operatorToken,ce.checkDefined(nr(bt.right,ir?Dt:_t,Nr))):ia(bt,_t,t)}function xt(bt,ir){if(ir)return ia(bt,Dt,t);let ii;for(let Do=0;Dodu.name)),Al=Si?r.createYieldExpression(r.createToken(42),Sa(Qc,8388608)):Qc;if(Za)Do.push(r.createExpressionStatement(Al)),jg(ir.loopOutParameters,1,0,Do);else{const du=r.createUniqueName("state"),N_=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(du,void 0,void 0,Al)]));if(Do.push(N_),jg(ir.loopOutParameters,1,0,Do),ir.nonLocalJumps&8){let zp;ii?(ii.nonLocalJumps|=8,zp=r.createReturnStatement(du)):zp=r.createReturnStatement(r.createPropertyAccessExpression(du,"value")),Do.push(r.createIfStatement(r.createTypeCheck(du,"object"),zp))}if(ir.nonLocalJumps&2&&Do.push(r.createIfStatement(r.createStrictEquality(du,r.createStringLiteral("break")),r.createBreakStatement())),ir.labeledNonLocalBreaks||ir.labeledNonLocalContinues){const zp=[];Tv(ir.labeledNonLocalBreaks,!0,du,ii,zp),Tv(ir.labeledNonLocalContinues,!1,du,ii,zp),Do.push(r.createSwitchStatement(du,r.createCaseBlock(zp)))}}return Do}function Yu(bt,ir,ii,Si){ir?(bt.labeledNonLocalBreaks||(bt.labeledNonLocalBreaks=new Map),bt.labeledNonLocalBreaks.set(ii,Si)):(bt.labeledNonLocalContinues||(bt.labeledNonLocalContinues=new Map),bt.labeledNonLocalContinues.set(ii,Si))}function Tv(bt,ir,ii,Si,Do){bt&&bt.forEach((Za,Qc)=>{const Al=[];if(!Si||Si.labels&&Si.labels.get(Qc)){const du=r.createIdentifier(Qc);Al.push(ir?r.createBreakStatement(du):r.createContinueStatement(du))}else Yu(Si,ir,Qc,Za),Al.push(r.createReturnStatement(ii));Do.push(r.createCaseClause(r.createStringLiteral(Za),Al))})}function Kh(bt,ir,ii,Si,Do){const Za=ir.name;if(ld(Za))for(const Qc of Za.elements)t0(Qc)||Kh(bt,Qc,ii,Si,Do);else{ii.push(r.createParameterDeclaration(void 0,void 0,Za));const Qc=I.getNodeCheckFlags(ir);if(Qc&65536||Do){const Al=r.createUniqueName("out_"+ec(Za));let du=0;Qc&65536&&(du|=1),bk(bt)&&(bt.initializer&&I.isBindingCapturedByNode(bt.initializer,ir)&&(du|=2),(bt.condition&&I.isBindingCapturedByNode(bt.condition,ir)||bt.incrementor&&I.isBindingCapturedByNode(bt.incrementor,ir))&&(du|=1)),Si.push({flags:du,originalName:Za,outParamName:Al})}}}function uS(bt,ir,ii,Si){const Do=ir.properties,Za=Do.length;for(let Qc=Si;QcDh(P2)&&!!Dl(P2.declarationList.declarations).initializer,Si=ue;ue=void 0;const Do=Fa(ir.statements,Ft,uf);ue=Si;const Za=gi(Do,ii),Qc=gi(Do,P2=>!ii(P2)),du=uc(Dl(Za),Dh).declarationList.declarations[0],N_=rv(du.initializer);let zp=to(N_,wy);!zp&&ys(N_)&&N_.operatorToken.kind===28&&(zp=to(N_.left,wy));const gh=uc(zp?rv(zp.right):N_,el),Wh=uc(rv(gh.expression),Dm),Gv=Wh.body.statements;let jv=0,vy=-1;const ub=[];if(zp){const P2=to(Gv[jv],Ou);P2&&(ub.push(P2),jv++),ub.push(Gv[jv]),jv++,ub.push(r.createExpressionStatement(r.createAssignment(zp.left,uc(du.name,An))))}for(;!Bx(PM(Gv,vy));)vy--;Oi(ub,Gv,jv,vy),vy<-1&&Oi(ub,Gv,vy+1);const E0=to(PM(Gv,vy),Bx);for(const P2 of Qc)Bx(P2)&&(E0!=null&&E0.expression)&&!An(E0.expression)?ub.push(E0):ub.push(P2);return Oi(ub,Za,1),r.restoreOuterExpressions(bt.expression,r.restoreOuterExpressions(du.initializer,r.restoreOuterExpressions(zp&&zp.right,r.updateCallExpression(gh,r.restoreOuterExpressions(gh.expression,r.updateFunctionExpression(Wh,void 0,void 0,void 0,void 0,Wh.parameters,void 0,r.updateBlock(Wh.body,ub))),void 0,gh.arguments))))}function _e(bt){return vn(bt,!1)}function vn(bt,ir){if(bt.transformFlags&32768||bt.expression.kind===108||Z1(rv(bt.expression))){const{target:ii,thisArg:Si}=r.createCallBinding(bt.expression,T);bt.expression.kind===108&&Sa(Si,8);let Do;if(bt.transformFlags&32768?Do=r.createFunctionApplyCall(ce.checkDefined(nr(ii,it,Nr)),bt.expression.kind===108?Si:ce.checkDefined(nr(Si,_t,Nr)),hi(bt.arguments,!0,!1,!1)):Do=vr(r.createFunctionCallCall(ce.checkDefined(nr(ii,it,Nr)),bt.expression.kind===108?Si:ce.checkDefined(nr(Si,_t,Nr)),Fa(bt.arguments,_t,Nr)),bt),bt.expression.kind===108){const Za=r.createLogicalOr(Do,di());Do=ir?r.createAssignment(r.createUniqueName("_this",48),Za):Za}return tc(Do,bt)}return ia(bt,_t,t)}function Qn(bt){if(gt(bt.arguments,ex)){const{target:ir,thisArg:ii}=r.createCallBinding(r.createPropertyAccessExpression(bt.expression,"bind"),T);return r.createNewExpression(r.createFunctionApplyCall(ce.checkDefined(nr(ir,_t,Nr)),ii,hi(r.createNodeArray([r.createVoidZero(),...bt.arguments]),!0,!1,!1)),void 0,[])}return ia(bt,_t,t)}function hi(bt,ir,ii,Si){const Do=bt.length,Za=Gf(fa(bt,pa,(N_,zp,gh,Wh)=>zp(N_,ii,Si&&Wh===Do)));if(Za.length===1){const N_=Za[0];if(ir&&!D.downlevelIteration||foe(N_.expression)||cJ(N_.expression,"___spreadArray"))return N_.expression}const Qc=s(),Al=Za[0].kind!==0;let du=Al?r.createArrayLiteralExpression():Za[0].expression;for(let N_=Al?0:1;N_0&&Si.push(r.createStringLiteral(ii.literal.text)),ir=r.createCallExpression(r.createPropertyAccessExpression(ir,"concat"),void 0,Si)}return vr(ir,bt)}function J0(bt){return te&8&&!bt?r.createPropertyAccessExpression(r.createUniqueName("_super",48),"prototype"):r.createUniqueName("_super",48)}function Eg(bt){return bt.keywordToken===105&&bt.name.escapedText==="target"?(te|=32768,r.createUniqueName("_newTarget",48)):bt}function Sv(bt,ir,ii){if(Ne&1&&S_(ir)){const Si=Ve(32670,Tp(ir)&16?81:65);O(bt,ir,ii),pt(Si,0,0);return}O(bt,ir,ii)}function jT(){Ne&2||(Ne|=2,t.enableSubstitution(80))}function Ev(){Ne&1||(Ne|=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 S0(bt,ir){return ir=W(bt,ir),bt===1?fi(ir):An(ir)?k1(ir):ir}function k1(bt){if(Ne&2&&!N6e(bt)){const ir=Il(bt,An);if(ir&&tn(ir))return vr(r.getGeneratedNameForNode(ir),bt)}return bt}function tn(bt){switch(bt.parent.kind){case 208:case 263:case 266:case 260:return bt.parent.name===bt&&I.isDeclarationWithCollidingName(bt.parent)}return!1}function fi(bt){switch(bt.kind){case 80:return ya(bt);case 110:return K_(bt)}return bt}function ya(bt){if(Ne&2&&!N6e(bt)){const ir=I.getReferencedDeclarationWithCollidingName(bt);if(ir&&!(Jl(ir)&&bu(ir,bt)))return vr(r.getGeneratedNameForNode(o_(ir)),bt)}return bt}function bu(bt,ir){let ii=Il(ir);if(!ii||ii===bt||ii.end<=bt.pos||ii.pos>=bt.end)return!1;const Si=Bs(bt);for(;ii;){if(ii===Si||ii===bt)return!1;if(Mv(ii)&&ii.parent===bt)return!0;ii=ii.parent}return!1}function K_(bt){return Ne&1&&te&16?vr(r.createUniqueName("_this",48),bt):bt}function ig(bt,ir){return e_(ir)?r.getInternalName(bt):r.createPropertyAccessExpression(r.getInternalName(bt),"prototype")}function Fy(bt,ir){if(!bt||!ir||gt(bt.parameters))return!1;const ii=pp(bt.body.statements);if(!ii||!rh(ii)||ii.kind!==244)return!1;const Si=ii.expression;if(!rh(Si)||Si.kind!==213)return!1;const Do=Si.expression;if(!rh(Do)||Do.kind!==108)return!1;const Za=Vb(Si.arguments);if(!Za||!rh(Za)||Za.kind!==230)return!1;const Qc=Za.expression;return An(Qc)&&Qc.escapedText==="arguments"}}var dct=G({"src/compiler/transformers/es2015.ts"(){Ad()}});function oxe(t){const{factory:r}=t,s=t.getCompilerOptions();let l,m;(s.jsx===1||s.jsx===3)&&(l=t.onEmitNode,t.onEmitNode=D,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),m=[]);const y=t.onSubstituteNode;return t.onSubstituteNode=I,t.enableSubstitution(211),t.enableSubstitution(303),Vx(t,T);function T(ee){return ee}function D(ee,te,oe){switch(te.kind){case 286:case 287:case 285:const de=te.tagName;m[e1(de)]=!0;break}l(ee,te,oe)}function I(ee,te){return te.id&&m&&m[te.id]?y(ee,te):(te=y(ee,te),sa(te)?W(te):Fm(te)?O(te):te)}function W(ee){if(Gu(ee.name))return ee;const te=V(ee.name);return te?vr(r.createElementAccessExpression(ee.expression,te),ee):ee}function O(ee){const te=An(ee.name)&&V(ee.name);return te?r.updatePropertyAssignment(ee,te,ee.initializer):ee}function V(ee){const te=ML(ee);if(te!==void 0&&te>=83&&te<=118)return vr(r.createStringLiteralFromNode(ee),ee)}}var pct=G({"src/compiler/transformers/es5.ts"(){Ad()}});function XHe(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 axe(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistFunctionDeclaration:y,hoistVariableDeclaration:T}=t,D=t.getCompilerOptions(),I=iu(D),W=t.getEmitResolver(),O=t.onSubstituteNode;t.onSubstituteNode=wt;let V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le=1,ht,ke,_t,Dt,Ft=0,it=0,Ye,ut,lt,zt,Wt,tt,Mn,kn;return Vx(t,cr);function cr(tn){if(tn.isDeclarationFile||!(tn.transformFlags&2048))return tn;const fi=ia(tn,un,t);return JN(fi,t.readEmitHelpers()),fi}function un(tn){const fi=tn.transformFlags;return oe?on(tn):te?pn(tn):J_(tn)&&tn.asteriskToken?Xr(tn):fi&2048?ia(tn,un,t):tn}function on(tn){switch(tn.kind){case 246:return sl(tn);case 247:return er(tn);case 255:return Qr(tn);case 256:return es(tn);default:return pn(tn)}}function pn(tn){switch(tn.kind){case 262:return Ut(tn);case 218:return In(tn);case 177:case 178:return gr(tn);case 243:return ei(tn);case 248:return li(tn);case 249:return _o(tn);case 252:return qr(tn);case 251:return Kn(tn);case 253:return _r(tn);default:return tn.transformFlags&1048576?Or(tn):tn.transformFlags&4196352?ia(tn,un,t):tn}}function Or(tn){switch(tn.kind){case 226:return Gn(tn);case 361:return di(tn);case 227:return ha(tn);case 229:return ro(tn);case 209:return Gs(tn);case 210:return _u(tn);case 212:return Ku(tn);case 213:return al(tn);case 214:return Rr(tn);default:return ia(tn,un,t)}}function Xr(tn){switch(tn.kind){case 262:return Ut(tn);case 218:return In(tn);default:return ce.failBadSyntaxKind(tn)}}function Ut(tn){if(tn.asteriskToken)tn=tc(vr(r.createFunctionDeclaration(tn.modifiers,void 0,tn.name,void 0,Bn(tn.parameters,un,t),void 0,Cr(tn.body)),tn),tn);else{const fi=te,ya=oe;te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya}if(te){y(tn);return}else return tn}function In(tn){if(tn.asteriskToken)tn=tc(vr(r.createFunctionExpression(void 0,void 0,tn.name,void 0,Bn(tn.parameters,un,t),void 0,Cr(tn.body)),tn),tn);else{const fi=te,ya=oe;te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya}return tn}function gr(tn){const fi=te,ya=oe;return te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya,tn}function Cr(tn){const fi=[],ya=te,bu=oe,K_=de,ig=ue,Fy=Ne,bt=Be,ir=Ve,ii=pt,Si=Le,Do=ht,Za=ke,Qc=_t,Al=Dt;te=!0,oe=!1,de=void 0,ue=void 0,Ne=void 0,Be=void 0,Ve=void 0,pt=void 0,Le=1,ht=void 0,ke=void 0,_t=void 0,Dt=r.createTempVariable(void 0),l();const du=r.copyPrologue(tn.statements,fi,!1,un);mc(tn.statements,du);const N_=vn();return v2(fi,m()),fi.push(r.createReturnStatement(N_)),te=ya,oe=bu,de=K_,ue=ig,Ne=Fy,Be=bt,Ve=ir,pt=ii,Le=Si,ht=Do,ke=Za,_t=Qc,Dt=Al,vr(r.createBlock(fi,tn.multiLine),tn)}function ei(tn){if(tn.transformFlags&1048576){Xu(tn.declarationList);return}else{if(Tp(tn)&2097152)return tn;for(const ya of tn.declarationList.declarations)T(ya.name);const fi=n3(tn.declarationList);return fi.length===0?void 0:Sp(r.createExpressionStatement(r.inlineExpressions(Vn(fi,Lo))),tn)}}function Gn(tn){const fi=bH(tn);switch(fi){case 0:return so(tn);case 1:return Ur(tn);default:return ce.assertNever(fi)}}function Ur(tn){const{left:fi,right:ya}=tn;if(We(ya)){let bu;switch(fi.kind){case 211:bu=r.updatePropertyAccessExpression(fi,xe(ce.checkDefined(nr(fi.expression,un,FE))),fi.name);break;case 212:bu=r.updateElementAccessExpression(fi,xe(ce.checkDefined(nr(fi.expression,un,FE))),xe(ce.checkDefined(nr(fi.argumentExpression,un,Nr))));break;default:bu=ce.checkDefined(nr(fi,un,Nr));break}const K_=tn.operatorToken.kind;return cj(K_)?vr(r.createAssignment(bu,vr(r.createBinaryExpression(xe(bu),wQ(K_),ce.checkDefined(nr(ya,un,Nr))),tn)),tn):r.updateBinaryExpression(tn,bu,tn.operatorToken,ce.checkDefined(nr(ya,un,Nr)))}return ia(tn,un,t)}function so(tn){return We(tn.right)?Wde(tn.operatorToken.kind)?Nc(tn):tn.operatorToken.kind===28?ho(tn):r.updateBinaryExpression(tn,xe(ce.checkDefined(nr(tn.left,un,Nr))),tn.operatorToken,ce.checkDefined(nr(tn.right,un,Nr))):ia(tn,un,t)}function ho(tn){let fi=[];return ya(tn.left),ya(tn.right),r.inlineExpressions(fi);function ya(bu){ys(bu)&&bu.operatorToken.kind===28?(ya(bu.left),ya(bu.right)):(We(bu)&&fi.length>0&&(_e(1,[r.createExpressionStatement(r.inlineExpressions(fi))]),fi=[]),fi.push(ce.checkDefined(nr(bu,un,Nr))))}}function di(tn){let fi=[];for(const ya of tn.elements)ys(ya)&&ya.operatorToken.kind===28?fi.push(ho(ya)):(We(ya)&&fi.length>0&&(_e(1,[r.createExpressionStatement(r.inlineExpressions(fi))]),fi=[]),fi.push(ce.checkDefined(nr(ya,un,Nr))));return r.inlineExpressions(fi)}function Nc(tn){const fi=Un(),ya=an();return lm(ya,ce.checkDefined(nr(tn.left,un,Nr)),tn.left),tn.operatorToken.kind===56?hy(fi,ya,tn.left):po(fi,ya,tn.left),lm(ya,ce.checkDefined(nr(tn.right,un,Nr)),tn.right),rr(fi),ya}function ha(tn){if(We(tn.whenTrue)||We(tn.whenFalse)){const fi=Un(),ya=Un(),bu=an();return hy(fi,ce.checkDefined(nr(tn.condition,un,Nr)),tn.condition),lm(bu,ce.checkDefined(nr(tn.whenTrue,un,Nr)),tn.whenTrue),nm(ya),rr(fi),lm(bu,ce.checkDefined(nr(tn.whenFalse,un,Nr)),tn.whenFalse),rr(ya),bu}return ia(tn,un,t)}function ro(tn){const fi=Un(),ya=nr(tn.expression,un,Nr);if(tn.asteriskToken){const bu=Tp(tn.expression)&8388608?ya:vr(s().createValuesHelper(ya),tn);fS(bu,tn)}else GT(ya,tn);return rr(fi),fx(tn)}function Gs(tn){return Oc(tn.elements,void 0,void 0,tn.multiLine)}function Oc(tn,fi,ya,bu){const K_=Re(tn);let ig;if(K_>0){ig=an();const ir=Fa(tn,un,Nr,0,K_);lm(ig,r.createArrayLiteralExpression(fi?[fi,...ir]:ir)),fi=void 0}const Fy=Em(tn,bt,[],K_);return ig?r.createArrayConcatCall(ig,[r.createArrayLiteralExpression(Fy,bu)]):vr(r.createArrayLiteralExpression(fi?[fi,...Fy]:Fy,bu),ya);function bt(ir,ii){if(We(ii)&&ir.length>0){const Si=ig!==void 0;ig||(ig=an()),lm(ig,Si?r.createArrayConcatCall(ig,[r.createArrayLiteralExpression(ir,bu)]):r.createArrayLiteralExpression(fi?[fi,...ir]:ir,bu)),fi=void 0,ir=[]}return ir.push(ce.checkDefined(nr(ii,un,Nr))),ir}}function _u(tn){const fi=tn.properties,ya=tn.multiLine,bu=Re(fi),K_=an();lm(K_,r.createObjectLiteralExpression(Fa(fi,un,KD,0,bu),ya));const ig=Em(fi,Fy,[],bu);return ig.push(ya?x1(kl(vr(r.cloneNode(K_),K_),K_.parent)):K_),r.inlineExpressions(ig);function Fy(bt,ir){We(ir)&&bt.length>0&&(Mg(r.createExpressionStatement(r.inlineExpressions(bt))),bt=[]);const ii=ype(r,tn,ir,K_),Si=nr(ii,un,Nr);return Si&&(ya&&x1(Si),bt.push(Si)),bt}}function Ku(tn){return We(tn.argumentExpression)?r.updateElementAccessExpression(tn,xe(ce.checkDefined(nr(tn.expression,un,FE))),ce.checkDefined(nr(tn.argumentExpression,un,Nr))):ia(tn,un,t)}function al(tn){if(!WE(tn)&&Ot(tn.arguments,We)){const{target:fi,thisArg:ya}=r.createCallBinding(tn.expression,T,I,!0);return tc(vr(r.createFunctionApplyCall(xe(ce.checkDefined(nr(fi,un,FE))),ya,Oc(tn.arguments)),tn),tn)}return ia(tn,un,t)}function Rr(tn){if(Ot(tn.arguments,We)){const{target:fi,thisArg:ya}=r.createCallBinding(r.createPropertyAccessExpression(tn.expression,"bind"),T);return tc(vr(r.createNewExpression(r.createFunctionApplyCall(xe(ce.checkDefined(nr(fi,un,Nr))),ya,Oc(tn.arguments,r.createVoidZero())),void 0,[]),tn),tn)}return ia(tn,un,t)}function mc(tn,fi=0){const ya=tn.length;for(let bu=fi;bu0)break;K_.push(Lo(Fy))}K_.length&&(Mg(r.createExpressionStatement(r.inlineExpressions(K_))),bu+=K_.length,K_=[])}}function Lo(tn){return Sp(r.createAssignment(Sp(r.cloneNode(tn.name),tn.name),ce.checkDefined(nr(tn.initializer,un,Nr))),tn)}function To(tn){if(We(tn))if(We(tn.thenStatement)||We(tn.elseStatement)){const fi=Un(),ya=tn.elseStatement?Un():void 0;hy(tn.elseStatement?ya:fi,ce.checkDefined(nr(tn.expression,un,Nr)),tn.expression),Ea(tn.thenStatement),tn.elseStatement&&(nm(fi),rr(ya),Ea(tn.elseStatement)),rr(fi)}else Mg(nr(tn,un,uf));else Mg(nr(tn,un,uf))}function Aa(tn){if(We(tn)){const fi=Un(),ya=Un();Ha(fi),rr(ya),Ea(tn.statement),rr(fi),po(ya,ce.checkDefined(nr(tn.expression,un,Nr))),mu()}else Mg(nr(tn,un,uf))}function sl(tn){return oe?(fp(),tn=ia(tn,un,t),mu(),tn):ia(tn,un,t)}function vc(tn){if(We(tn)){const fi=Un(),ya=Ha(fi);rr(fi),hy(ya,ce.checkDefined(nr(tn.expression,un,Nr))),Ea(tn.statement),nm(fi),mu()}else Mg(nr(tn,un,uf))}function er(tn){return oe?(fp(),tn=ia(tn,un,t),mu(),tn):ia(tn,un,t)}function Jr(tn){if(We(tn)){const fi=Un(),ya=Un(),bu=Ha(ya);if(tn.initializer){const K_=tn.initializer;My(K_)?Xu(K_):Mg(vr(r.createExpressionStatement(ce.checkDefined(nr(K_,un,Nr))),K_))}rr(fi),tn.condition&&hy(bu,ce.checkDefined(nr(tn.condition,un,Nr))),Ea(tn.statement),rr(ya),tn.incrementor&&Mg(vr(r.createExpressionStatement(ce.checkDefined(nr(tn.incrementor,un,Nr))),tn.incrementor)),nm(fi),mu()}else Mg(nr(tn,un,uf))}function li(tn){oe&&fp();const fi=tn.initializer;if(fi&&My(fi)){for(const bu of fi.declarations)T(bu.name);const ya=n3(fi);tn=r.updateForStatement(tn,ya.length>0?r.inlineExpressions(Vn(ya,Lo)):void 0,nr(tn.condition,un,Nr),nr(tn.incrementor,un,Nr),pE(tn.statement,un,t))}else tn=ia(tn,un,t);return oe&&mu(),tn}function Ir(tn){if(We(tn)){const fi=an(),ya=an(),bu=an(),K_=r.createLoopVariable(),ig=tn.initializer;T(K_),lm(fi,ce.checkDefined(nr(tn.expression,un,Nr))),lm(ya,r.createArrayLiteralExpression()),Mg(r.createForInStatement(bu,fi,r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(ya,"push"),void 0,[bu])))),lm(K_,r.createNumericLiteral(0));const Fy=Un(),bt=Un(),ir=Ha(bt);rr(Fy),hy(ir,r.createLessThan(K_,r.createPropertyAccessExpression(ya,"length"))),lm(bu,r.createElementAccessExpression(ya,K_)),hy(bt,r.createBinaryExpression(bu,103,fi));let ii;if(My(ig)){for(const Si of ig.declarations)T(Si.name);ii=r.cloneNode(ig.declarations[0].name)}else ii=ce.checkDefined(nr(ig,un,Nr)),ce.assert(FE(ii));lm(ii,bu),Ea(tn.statement),rr(bt),Mg(r.createExpressionStatement(r.createPostfixIncrement(K_))),nm(Fy),mu()}else Mg(nr(tn,un,uf))}function _o(tn){oe&&fp();const fi=tn.initializer;if(My(fi)){for(const ya of fi.declarations)T(ya.name);tn=r.updateForInStatement(tn,fi.declarations[0].name,ce.checkDefined(nr(tn.expression,un,Nr)),ce.checkDefined(nr(tn.statement,un,uf,r.liftToBlock)))}else tn=ia(tn,un,t);return oe&&mu(),tn}function xt(tn){const fi=Yu(tn.label?ec(tn.label):void 0);fi>0?nm(fi,tn):Mg(tn)}function Kn(tn){if(oe){const fi=Yu(tn.label&&ec(tn.label));if(fi>0)return uS(fi,tn)}return ia(tn,un,t)}function gn(tn){const fi=m_(tn.label?ec(tn.label):void 0);fi>0?nm(fi,tn):Mg(tn)}function qr(tn){if(oe){const fi=m_(tn.label&&ec(tn.label));if(fi>0)return uS(fi,tn)}return ia(tn,un,t)}function mt(tn){vE(nr(tn.expression,un,Nr),tn)}function _r(tn){return H0(nr(tn.expression,un,Nr),tn)}function Cn(tn){We(tn)?(Qa(xe(ce.checkDefined(nr(tn.expression,un,Nr)))),Ea(tn.statement),Ks()):Mg(nr(tn,un,uf))}function oi(tn){if(We(tn.caseBlock)){const fi=tn.caseBlock,ya=fi.clauses.length,bu=q_(),K_=xe(ce.checkDefined(nr(tn.expression,un,Nr))),ig=[];let Fy=-1;for(let ii=0;ii0)break;ir.push(r.createCaseClause(ce.checkDefined(nr(Do.expression,un,Nr)),[uS(ig[Si],Do.expression)]))}else ii++}ir.length&&(Mg(r.createSwitchStatement(K_,r.createCaseBlock(ir))),bt+=ir.length,ir=[]),ii>0&&(bt+=ii,ii=0)}Fy>=0?nm(ig[Fy]):nm(bu);for(let ii=0;ii=0;ya--){const bu=Be[ya];if(Oh(bu)){if(bu.labelText===tn)return!0}else break}return!1}function m_(tn){if(Be)if(tn)for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(Oh(ya)&&ya.labelText===tn)return ya.breakLabel;if(iy(ya)&&zv(tn,fi-1))return ya.breakLabel}else for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(iy(ya))return ya.breakLabel}return 0}function Yu(tn){if(Be)if(tn)for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(jg(ya)&&zv(tn,fi-1))return ya.continueLabel}else for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(jg(ya))return ya.continueLabel}return 0}function Tv(tn){if(tn!==void 0&&tn>0){pt===void 0&&(pt=[]);const fi=r.createNumericLiteral(-1);return pt[tn]===void 0?pt[tn]=[fi]:pt[tn].push(fi),fi}return r.createOmittedExpression()}function Kh(tn){const fi=r.createNumericLiteral(tn);return sW(fi,3,XHe(tn)),fi}function uS(tn,fi){return ce.assertLessThan(0,tn,"Invalid label"),vr(r.createReturnStatement(r.createArrayLiteralExpression([Kh(3),Tv(tn)])),fi)}function H0(tn,fi){return vr(r.createReturnStatement(r.createArrayLiteralExpression(tn?[Kh(2),tn]:[Kh(2)])),fi)}function fx(tn){return vr(r.createCallExpression(r.createPropertyAccessExpression(Dt,"sent"),void 0,[]),tn)}function rd(){_e(0)}function Mg(tn){tn?_e(1,[tn]):rd()}function lm(tn,fi,ya){_e(2,[tn,fi],ya)}function nm(tn,fi){_e(3,[tn],fi)}function po(tn,fi,ya){_e(4,[tn,fi],ya)}function hy(tn,fi,ya){_e(5,[tn,fi],ya)}function fS(tn,fi){_e(7,[tn],fi)}function GT(tn,fi){_e(6,[tn],fi)}function vE(tn,fi){_e(8,[tn],fi)}function oh(tn,fi){_e(9,[tn],fi)}function yy(){_e(10)}function _e(tn,fi,ya){ht===void 0&&(ht=[],ke=[],_t=[]),Ve===void 0&&rr(Un());const bu=ht.length;ht[bu]=tn,ke[bu]=fi,_t[bu]=ya}function vn(){Ft=0,it=0,Ye=void 0,ut=!1,lt=!1,zt=void 0,Wt=void 0,tt=void 0,Mn=void 0,kn=void 0;const tn=Qn();return s().createGeneratorHelper(Sa(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,Dt)],void 0,r.createBlock(tn,tn.length>0)),1048576))}function Qn(){if(ht){for(let tn=0;tn=0;fi--){const ya=kn[fi];Wt=[r.createWithStatement(ya.expression,r.createBlock(Wt))]}if(Mn){const{startLabel:fi,catchLabel:ya,finallyLabel:bu,endLabel:K_}=Mn;Wt.unshift(r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createPropertyAccessExpression(Dt,"trys"),"push"),void 0,[r.createArrayLiteralExpression([Tv(fi),Tv(ya),Tv(bu),Tv(K_)])]))),Mn=void 0}tn&&Wt.push(r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(Dt,"label"),r.createNumericLiteral(it+1))))}zt.push(r.createCaseClause(r.createNumericLiteral(it),Wt||[])),Wt=void 0}function bc(tn){if(Ve)for(let fi=0;fis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(ec(rr))),Un),s.createVoidZero())));ur(Re,nr(ue.externalHelpersImportDeclaration,Ye,uf)),Oi(Re,Fa(We.statements,Ye,uf,$e)),it(Re,!1),v2(Re,y());const Zt=s.updateSourceFile(We,vr(s.createNodeArray(Re),We.statements));return JN(Zt,t.readEmitHelpers()),Zt}function ht(We){const Re=s.createIdentifier("define"),wt=UJ(s,We,W,D),$e=Py(We)&&We,{aliasedModuleNames:Zt,unaliasedModuleNames:xe,importAliasNames:an}=_t(We,!0),Un=s.updateSourceFile(We,vr(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(Re,void 0,[...wt?[wt]:[],s.createArrayLiteralExpression($e?Zn:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...Zt,...xe]),$e?$e.statements.length?$e.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"),...an],void 0,Ft(We))]))]),We.statements));return JN(Un,t.readEmitHelpers()),Un}function ke(We){const{aliasedModuleNames:Re,unaliasedModuleNames:wt,importAliasNames:$e}=_t(We,!1),Zt=UJ(s,We,W,D),xe=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,vr(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")]))]),Sa(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,[...Zt?[Zt]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...Re,...wt]),s.createIdentifier("factory")]))])))],!0),void 0)),an=s.updateSourceFile(We,vr(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(xe,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"),...$e],void 0,Ft(We))]))]),We.statements));return JN(an,t.readEmitHelpers()),an}function _t(We,Re){const wt=[],$e=[],Zt=[];for(const xe of We.amdDependencies)xe.name?(wt.push(s.createStringLiteral(xe.path)),Zt.push(s.createParameterDeclaration(void 0,void 0,xe.name))):$e.push(s.createStringLiteral(xe.path));for(const xe of ue.externalImports){const an=t4(s,xe,de,W,I,D),Un=lb(s,xe,de);an&&(Re&&Un?(Sa(Un,8),wt.push(an),Zt.push(s.createParameterDeclaration(void 0,void 0,Un))):$e.push(an))}return{aliasedModuleNames:wt,unaliasedModuleNames:$e,importAliasNames:Zt}}function Dt(We){if(kh(We)||mh(We)||!t4(s,We,de,W,I,D))return;const Re=lb(s,We,de),wt=al(We,Re);if(wt!==Re)return s.createExpressionStatement(s.createAssignment(Re,wt))}function Ft(We){m();const Re=[],wt=s.copyPrologue(We.statements,Re,!D.noImplicitUseStrict,Ye);pt()&&ur(Re,xt()),Nt(ue.exportedNames)&&ur(Re,s.createExpressionStatement(Em(ue.exportedNames,(Zt,xe)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(ec(xe))),Zt),s.createVoidZero()))),ur(Re,nr(ue.externalHelpersImportDeclaration,Ye,uf)),V===2&&Oi(Re,Qo(ue.externalImports,Dt)),Oi(Re,Fa(We.statements,Ye,uf,wt)),it(Re,!0),v2(Re,y());const $e=s.createBlock(Re,!0);return Be&&lW($e,YHe),$e}function it(We,Re){if(ue.exportEquals){const wt=nr(ue.exportEquals.expression,zt,Nr);if(wt)if(Re){const $e=s.createReturnStatement(wt);vr($e,ue.exportEquals),Sa($e,3840),We.push($e)}else{const $e=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),wt));vr($e,ue.exportEquals),Sa($e,3072),We.push($e)}}}function Ye(We){switch(We.kind){case 272:return Rr(We);case 271:return Ea(We);case 278:return Fi(We);case 277:return ta(We);default:return ut(We)}}function ut(We){switch(We.kind){case 243:return Xu(We);case 262:return $a(We);case 263:return jc(We);case 248:return kn(We,!0);case 249:return cr(We);case 250:return un(We);case 246:return on(We);case 247:return pn(We);case 256:return Or(We);case 254:return Xr(We);case 245:return Ut(We);case 255:return In(We);case 269:return gr(We);case 296:return Cr(We);case 297:return ei(We);case 258:return Gn(We);case 299:return Ur(We);case 241:return so(We);default:return zt(We)}}function lt(We,Re){if(!(We.transformFlags&276828160))return We;switch(We.kind){case 248:return kn(We,!1);case 244:return ho(We);case 217:return di(We,Re);case 360:return Nc(We,Re);case 213:if(WE(We)&&de.impliedNodeFormat===void 0)return ro(We);break;case 226:if(Tg(We))return Mn(We,Re);break;case 224:case 225:return ha(We,Re)}return ia(We,zt,t)}function zt(We){return lt(We,!1)}function Wt(We){return lt(We,!0)}function tt(We){if(Wd(We))for(const Re of We.properties)switch(Re.kind){case 303:if(tt(Re.initializer))return!0;break;case 304:if(tt(Re.name))return!0;break;case 305:if(tt(Re.expression))return!0;break;case 174:case 177:case 178:return!1;default:ce.assertNever(Re,"Unhandled object member kind")}else if(Ch(We)){for(const Re of We.elements)if(ex(Re)){if(tt(Re.expression))return!0}else if(tt(Re))return!0}else if(An(We))return Nt(xu(We))>(MEe(We)?1:0);return!1}function Mn(We,Re){return tt(We.left)?Ik(We,zt,t,0,!Re,Lo):ia(We,zt,t)}function kn(We,Re){if(Re&&We.initializer&&My(We.initializer)&&!(We.initializer.flags&7)){const wt=er(void 0,We.initializer,!1);if(wt){const $e=[],Zt=nr(We.initializer,Wt,My),xe=s.createVariableStatement(void 0,Zt);$e.push(xe),Oi($e,wt);const an=nr(We.condition,zt,Nr),Un=nr(We.incrementor,Wt,Nr),rr=pE(We.statement,Re?ut:zt,t);return $e.push(s.updateForStatement(We,void 0,an,Un,rr)),$e}}return s.updateForStatement(We,nr(We.initializer,Wt,mA),nr(We.condition,zt,Nr),nr(We.incrementor,Wt,Nr),pE(We.statement,Re?ut:zt,t))}function cr(We){if(My(We.initializer)&&!(We.initializer.flags&7)){const Re=er(void 0,We.initializer,!0);if(gt(Re)){const wt=nr(We.initializer,Wt,mA),$e=nr(We.expression,zt,Nr),Zt=pE(We.statement,ut,t),xe=E_(Zt)?s.updateBlock(Zt,[...Re,...Zt.statements]):s.createBlock([...Re,Zt],!0);return s.updateForInStatement(We,wt,$e,xe)}}return s.updateForInStatement(We,nr(We.initializer,Wt,mA),nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function un(We){if(My(We.initializer)&&!(We.initializer.flags&7)){const Re=er(void 0,We.initializer,!0),wt=nr(We.initializer,Wt,mA),$e=nr(We.expression,zt,Nr);let Zt=pE(We.statement,ut,t);return gt(Re)&&(Zt=E_(Zt)?s.updateBlock(Zt,[...Re,...Zt.statements]):s.createBlock([...Re,Zt],!0)),s.updateForOfStatement(We,We.awaitModifier,wt,$e,Zt)}return s.updateForOfStatement(We,We.awaitModifier,nr(We.initializer,Wt,mA),nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function on(We){return s.updateDoStatement(We,pE(We.statement,ut,t),nr(We.expression,zt,Nr))}function pn(We){return s.updateWhileStatement(We,nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function Or(We){return s.updateLabeledStatement(We,We.label,ce.checkDefined(nr(We.statement,ut,uf,s.liftToBlock)))}function Xr(We){return s.updateWithStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.statement,ut,uf,s.liftToBlock)))}function Ut(We){return s.updateIfStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.thenStatement,ut,uf,s.liftToBlock)),nr(We.elseStatement,ut,uf,s.liftToBlock))}function In(We){return s.updateSwitchStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.caseBlock,ut,xP)))}function gr(We){return s.updateCaseBlock(We,Fa(We.clauses,ut,d7))}function Cr(We){return s.updateCaseClause(We,nr(We.expression,zt,Nr),Fa(We.statements,ut,uf))}function ei(We){return ia(We,ut,t)}function Gn(We){return ia(We,ut,t)}function Ur(We){return s.updateCatchClause(We,We.variableDeclaration,ce.checkDefined(nr(We.block,ut,E_)))}function so(We){return We=ia(We,ut,t),We}function ho(We){return s.updateExpressionStatement(We,nr(We.expression,Wt,Nr))}function di(We,Re){return s.updateParenthesizedExpression(We,nr(We.expression,Re?Wt:zt,Nr))}function Nc(We,Re){return s.updatePartiallyEmittedExpression(We,nr(We.expression,Re?Wt:zt,Nr))}function ha(We,Re){if((We.operator===46||We.operator===47)&&An(We.operand)&&!Om(We.operand)&&!T6(We.operand)&&!$ie(We.operand)){const wt=xu(We.operand);if(wt){let $e,Zt=nr(We.operand,zt,Nr);yk(We)?Zt=s.updatePrefixUnaryExpression(We,Zt):(Zt=s.updatePostfixUnaryExpression(We,Zt),Re||($e=s.createTempVariable(T),Zt=s.createAssignment($e,Zt),vr(Zt,We)),Zt=s.createComma(Zt,s.cloneNode(We.operand)),vr(Zt,We));for(const xe of wt)Ne[Im(Zt)]=!0,Zt=gn(xe,Zt),vr(Zt,We);return $e&&(Ne[Im(Zt)]=!0,Zt=s.createComma(Zt,$e),vr(Zt,We)),Zt}}return ia(We,zt,t)}function ro(We){if(V===0&&O>=7)return ia(We,zt,t);const Re=t4(s,We,de,W,I,D),wt=nr(pp(We.arguments),zt,Nr),$e=Re&&(!wt||!Wp(wt)||wt.text!==Re.text)?Re:wt,Zt=!!(We.transformFlags&16384);switch(D.module){case 2:return Oc($e,Zt);case 3:return Gs($e??s.createVoidZero(),Zt);case 1:default:return _u($e)}}function Gs(We,Re){if(Be=!0,D6(We)){const wt=Om(We)?We:Wp(We)?s.createStringLiteralFromNode(We):Sa(vr(s.cloneNode(We),We),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,_u(We),void 0,Oc(wt,Re))}else{const wt=s.createTempVariable(T);return s.createComma(s.createAssignment(wt,We),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,_u(wt,!0),void 0,Oc(wt,Re)))}}function Oc(We,Re){const wt=s.createUniqueName("resolve"),$e=s.createUniqueName("reject"),Zt=[s.createParameterDeclaration(void 0,void 0,wt),s.createParameterDeclaration(void 0,void 0,$e)],xe=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([We||s.createOmittedExpression()]),wt,$e]))]);let an;O>=2?an=s.createArrowFunction(void 0,void 0,Zt,void 0,void 0,xe):(an=s.createFunctionExpression(void 0,void 0,void 0,void 0,Zt,void 0,xe),Re&&Sa(an,16));const Un=s.createNewExpression(s.createIdentifier("Promise"),void 0,[an]);return b1(D)?s.createCallExpression(s.createPropertyAccessExpression(Un,s.createIdentifier("then")),void 0,[l().createImportStarCallbackHelper()]):Un}function _u(We,Re){const wt=We&&!aD(We)&&!Re,$e=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,wt?O>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(We,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[We])]:[]);let Zt=s.createCallExpression(s.createIdentifier("require"),void 0,wt?[s.createIdentifier("s")]:We?[We]:[]);b1(D)&&(Zt=l().createImportStarHelper(Zt));const xe=wt?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let an;return O>=2?an=s.createArrowFunction(void 0,void 0,xe,void 0,void 0,Zt):an=s.createFunctionExpression(void 0,void 0,void 0,void 0,xe,void 0,s.createBlock([s.createReturnStatement(Zt)])),s.createCallExpression(s.createPropertyAccessExpression($e,"then"),void 0,[an])}function Ku(We,Re){return!b1(D)||dh(We)&2?Re:RHe(We)?l().createImportStarHelper(Re):Re}function al(We,Re){return!b1(D)||dh(We)&2?Re:Nb(We)?l().createImportStarHelper(Re):ZLe(We)?l().createImportDefaultHelper(Re):Re}function Rr(We){let Re;const wt=uH(We);if(V!==2)if(We.importClause){const $e=[];wt&&!D7(We)?$e.push(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,al(We,mc(We)))):($e.push(s.createVariableDeclaration(s.getGeneratedNameForNode(We),void 0,void 0,al(We,mc(We)))),wt&&D7(We)&&$e.push(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,s.getGeneratedNameForNode(We)))),Re=ur(Re,tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList($e,O>=2?2:0)),We),We))}else return tc(vr(s.createExpressionStatement(mc(We)),We),We);else wt&&D7(We)&&(Re=ur(Re,s.createVariableStatement(void 0,s.createVariableDeclarationList([tc(vr(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,s.getGeneratedNameForNode(We)),We),We)],O>=2?2:0))));return Re=Aa(Re,We),N0(Re)}function mc(We){const Re=t4(s,We,de,W,I,D),wt=[];return Re&&wt.push(Re),s.createCallExpression(s.createIdentifier("require"),void 0,wt)}function Ea(We){ce.assert(qM(We),"import= for internal module references should be handled in an earlier transformer.");let Re;return V!==2?il(We,1)?Re=ur(Re,tc(vr(s.createExpressionStatement(gn(We.name,mc(We))),We),We)):Re=ur(Re,tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(We.name),void 0,void 0,mc(We))],O>=2?2:0)),We),We)):il(We,1)&&(Re=ur(Re,tc(vr(s.createExpressionStatement(gn(s.getExportName(We),s.getLocalName(We))),We),We))),Re=sl(Re,We),N0(Re)}function Fi(We){if(!We.moduleSpecifier)return;const Re=s.getGeneratedNameForNode(We);if(We.exportClause&&G0(We.exportClause)){const wt=[];V!==2&&wt.push(tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(Re,void 0,void 0,mc(We))])),We),We));for(const $e of We.exportClause.elements)if(O===0)wt.push(tc(vr(s.createExpressionStatement(l().createCreateBindingHelper(Re,s.createStringLiteralFromNode($e.propertyName||$e.name),$e.propertyName?s.createStringLiteralFromNode($e.name):void 0)),$e),$e));else{const Zt=!!b1(D)&&!(dh(We)&2)&&ec($e.propertyName||$e.name)==="default",xe=s.createPropertyAccessExpression(Zt?l().createImportDefaultHelper(Re):Re,$e.propertyName||$e.name);wt.push(tc(vr(s.createExpressionStatement(gn(s.getExportName($e),xe,void 0,!0)),$e),$e))}return N0(wt)}else if(We.exportClause){const wt=[];return wt.push(tc(vr(s.createExpressionStatement(gn(s.cloneNode(We.exportClause.name),Ku(We,V!==2?mc(We):_ie(We)?Re:s.createIdentifier(ec(We.exportClause.name))))),We),We)),N0(wt)}else return tc(vr(s.createExpressionStatement(l().createExportStarHelper(V!==2?mc(We):Re)),We),We)}function ta(We){if(!We.isExportEquals)return Kn(s.createIdentifier("default"),nr(We.expression,zt,Nr),We,!0)}function $a(We){let Re;return il(We,1)?Re=ur(Re,tc(vr(s.createFunctionDeclaration(Fa(We.modifiers,qr,bd),We.asteriskToken,s.getDeclarationName(We,!0,!0),void 0,Fa(We.parameters,zt,Pu),void 0,ia(We.body,zt,t)),We),We)):Re=ur(Re,ia(We,zt,t)),Re=li(Re,We),N0(Re)}function jc(We){let Re;return il(We,1)?Re=ur(Re,tc(vr(s.createClassDeclaration(Fa(We.modifiers,qr,pc),s.getDeclarationName(We,!0,!0),void 0,Fa(We.heritageClauses,zt,rT),Fa(We.members,zt,Mv)),We),We)):Re=ur(Re,ia(We,zt,t)),Re=li(Re,We),N0(Re)}function Xu(We){let Re,wt,$e;if(il(We,1)){let Zt,xe=!1;for(const an of We.declarationList.declarations)if(An(an.name)&&T6(an.name))if(Zt||(Zt=Fa(We.modifiers,qr,bd)),an.initializer){const Un=s.updateVariableDeclaration(an,an.name,void 0,void 0,gn(an.name,nr(an.initializer,zt,Nr)));wt=ur(wt,Un)}else wt=ur(wt,an);else if(an.initializer)if(!ld(an.name)&&(ph(an.initializer)||Dm(an.initializer)||B0(an.initializer))){const Un=s.createAssignment(vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),an.name),an.name),s.createIdentifier(aC(an.name))),rr=s.createVariableDeclaration(an.name,an.exclamationToken,an.type,nr(an.initializer,zt,Nr));wt=ur(wt,rr),$e=ur($e,Un),xe=!0}else $e=ur($e,To(an));if(wt&&(Re=ur(Re,s.updateVariableStatement(We,Zt,s.updateVariableDeclarationList(We.declarationList,wt)))),$e){const an=tc(vr(s.createExpressionStatement(s.inlineExpressions($e)),We),We);xe&&Zde(an),Re=ur(Re,an)}}else Re=ur(Re,ia(We,zt,t));return Re=vc(Re,We),N0(Re)}function Lo(We,Re,wt){const $e=xu(We);if($e){let Zt=MEe(We)?Re:s.createAssignment(We,Re);for(const xe of $e)Sa(Zt,8),Zt=gn(xe,Zt,wt);return Zt}return s.createAssignment(We,Re)}function To(We){return ld(We.name)?Ik(nr(We,zt,J9),zt,t,0,!1,Lo):s.createAssignment(vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),We.name),We.name),We.initializer?nr(We.initializer,zt,Nr):s.createVoidZero())}function Aa(We,Re){if(ue.exportEquals)return We;const wt=Re.importClause;if(!wt)return We;const $e=new OW;wt.name&&(We=Ir(We,$e,wt));const Zt=wt.namedBindings;if(Zt)switch(Zt.kind){case 274:We=Ir(We,$e,Zt);break;case 275:for(const xe of Zt.elements)We=Ir(We,$e,xe,!0);break}return We}function sl(We,Re){return ue.exportEquals?We:Ir(We,new OW,Re)}function vc(We,Re){return er(We,Re.declarationList,!1)}function er(We,Re,wt){if(ue.exportEquals)return We;for(const $e of Re.declarations)We=Jr(We,$e,wt);return We}function Jr(We,Re,wt){if(ue.exportEquals)return We;if(ld(Re.name))for(const $e of Re.name.elements)t0($e)||(We=Jr(We,$e,wt));else!Om(Re.name)&&(!ff(Re)||Re.initializer||wt)&&(We=Ir(We,new OW,Re));return We}function li(We,Re){if(ue.exportEquals)return We;const wt=new OW;if(il(Re,1)){const $e=il(Re,1024)?s.createIdentifier("default"):s.getDeclarationName(Re);We=_o(We,wt,$e,s.getLocalName(Re),Re)}return Re.name&&(We=Ir(We,wt,Re)),We}function Ir(We,Re,wt,$e){const Zt=s.getDeclarationName(wt),xe=ue.exportSpecifiers.get(Zt);if(xe)for(const an of xe)We=_o(We,Re,an.name,Zt,an.name,void 0,$e);return We}function _o(We,Re,wt,$e,Zt,xe,an){return Re.has(wt)||(Re.set(wt,!0),We=ur(We,Kn(wt,$e,Zt,xe,an))),We}function xt(){let We;return O===0?We=s.createExpressionStatement(gn(s.createIdentifier("__esModule"),s.createTrue())):We=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())])])),Sa(We,2097152),We}function Kn(We,Re,wt,$e,Zt){const xe=vr(s.createExpressionStatement(gn(We,Re,void 0,Zt)),wt);return x1(xe),$e||Sa(xe,3072),xe}function gn(We,Re,wt,$e){return vr($e&&O!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(We),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(Re)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(We)),Re),wt)}function qr(We){switch(We.kind){case 95:case 90:return}return We}function mt(We,Re,wt){Re.kind===312?(de=Re,ue=oe[e1(de)],te(We,Re,wt),de=void 0,ue=void 0):te(We,Re,wt)}function _r(We,Re){return Re=ee(We,Re),Re.id&&Ne[Re.id]?Re:We===1?oi(Re):BT(Re)?Cn(Re):Re}function Cn(We){const Re=We.name,wt=es(Re);if(wt!==Re){if(We.objectAssignmentInitializer){const $e=s.createAssignment(wt,We.objectAssignmentInitializer);return vr(s.createPropertyAssignment(Re,$e),We)}return vr(s.createPropertyAssignment(Re,wt),We)}return We}function oi(We){switch(We.kind){case 80:return es(We);case 213:return Qr(We);case 215:return co(We);case 226:return Ui(We)}return We}function Qr(We){if(An(We.expression)){const Re=es(We.expression);if(Ne[Im(Re)]=!0,!An(Re)&&!(Tp(We.expression)&8192))return _s(s.updateCallExpression(We,Re,void 0,We.arguments),16)}return We}function co(We){if(An(We.tag)){const Re=es(We.tag);if(Ne[Im(Re)]=!0,!An(Re)&&!(Tp(We.tag)&8192))return _s(s.updateTaggedTemplateExpression(We,Re,void 0,We.template),16)}return We}function es(We){var Re,wt;if(Tp(We)&8192){const $e=BG(de);return $e?s.createPropertyAccessExpression($e,We):We}else if(!(Om(We)&&!(We.emitNode.autoGenerate.flags&64))&&!T6(We)){const $e=I.getReferencedExportContainer(We,MEe(We));if($e&&$e.kind===312)return vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(We)),We);const Zt=I.getReferencedImportDeclaration(We);if(Zt){if(lC(Zt))return vr(s.createPropertyAccessExpression(s.getGeneratedNameForNode(Zt.parent),s.createIdentifier("default")),We);if(oS(Zt)){const xe=Zt.propertyName||Zt.name;return vr(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((wt=(Re=Zt.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||Zt),s.cloneNode(xe)),We)}}}return We}function Ui(We){if(zN(We.operatorToken.kind)&&An(We.left)&&(!Om(We.left)||jU(We.left))&&!T6(We.left)){const Re=xu(We.left);if(Re){let wt=We;for(const $e of Re)Ne[Im(wt)]=!0,wt=gn($e,wt,We);return wt}}return We}function xu(We){if(Om(We)){if(jU(We)){const Re=ue==null?void 0:ue.exportSpecifiers.get(We);if(Re){const wt=[];for(const $e of Re)wt.push($e.name);return wt}}}else{const Re=I.getReferencedImportDeclaration(We);if(Re)return ue==null?void 0:ue.exportedBindings[e1(Re)];const wt=new Set,$e=I.getReferencedValueDeclarations(We);if($e){for(const Zt of $e){const xe=ue==null?void 0:ue.exportedBindings[e1(Zt)];if(xe)for(const an of xe)wt.add(an)}if(wt.size)return oc(wt)}}}}var YHe,gct=G({"src/compiler/transformers/module/module.ts"(){Ad(),YHe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function sxe(t){const{factory:r,startLexicalEnvironment:s,endLexicalEnvironment:l,hoistVariableDeclaration:m}=t,y=t.getCompilerOptions(),T=t.getEmitResolver(),D=t.getEmitHost(),I=t.onSubstituteNode,W=t.onEmitNode;t.onSubstituteNode=gn,t.onEmitNode=Kn,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const O=[],V=[],ee=[],te=[];let oe,de,ue,Ne,Be,Ve,pt;return Vx(t,Le);function Le(We){if(We.isDeclarationFile||!(B8(We,y)||We.transformFlags&8388608))return We;const Re=e1(We);oe=We,Ve=We,de=O[Re]=J2e(t,We),ue=r.createUniqueName("exports"),V[Re]=ue,Ne=te[Re]=r.createUniqueName("context");const wt=ht(de.externalImports),$e=ke(We,wt),Zt=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,ue),r.createParameterDeclaration(void 0,void 0,Ne)],void 0,$e),xe=UJ(r,We,D,y),an=r.createArrayLiteralExpression(Vn(wt,rr=>rr.name)),Un=Sa(r.updateSourceFile(We,vr(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,xe?[xe,an,Zt]:[an,Zt]))]),We.statements)),2048);return Kg(y)||$N(Un,$e,rr=>!rr.scoped),pt&&(ee[Re]=pt,pt=void 0),oe=void 0,de=void 0,ue=void 0,Ne=void 0,Be=void 0,Ve=void 0,Un}function ht(We){const Re=new Map,wt=[];for(const $e of We){const Zt=t4(r,$e,oe,D,T,y);if(Zt){const xe=Zt.text,an=Re.get(xe);an!==void 0?wt[an].externalImports.push($e):(Re.set(xe,wt.length),wt.push({name:Zt,externalImports:[$e]}))}}return wt}function ke(We,Re){const wt=[];s();const $e=hv(y,"alwaysStrict")||!y.noImplicitUseStrict&&Wv(oe),Zt=r.copyPrologue(We.statements,wt,$e,it);wt.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(Ne,r.createPropertyAccessExpression(Ne,"id")))]))),nr(de.externalHelpersImportDeclaration,it,uf);const xe=Fa(We.statements,it,uf,Zt);Oi(wt,Be),v2(wt,l());const an=_t(wt),Un=We.transformFlags&2097152?r.createModifiersFromModifierFlags(512):void 0,rr=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",Ft(an,Re)),r.createPropertyAssignment("execute",r.createFunctionExpression(Un,void 0,void 0,void 0,[],void 0,r.createBlock(xe,!0)))],!0);return wt.push(r.createReturnStatement(rr)),r.createBlock(wt,!0)}function _t(We){if(!de.hasExportStarsToExportValues)return;if(!de.exportedNames&&de.exportSpecifiers.size===0){let Zt=!1;for(const xe of de.externalImports)if(xe.kind===278&&xe.exportClause){Zt=!0;break}if(!Zt){const xe=Dt(void 0);return We.push(xe),xe.name}}const Re=[];if(de.exportedNames)for(const Zt of de.exportedNames)Zt.escapedText!=="default"&&Re.push(r.createPropertyAssignment(r.createStringLiteralFromNode(Zt),r.createTrue()));const wt=r.createUniqueName("exportedNames");We.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(wt,void 0,void 0,r.createObjectLiteralExpression(Re,!0))])));const $e=Dt(wt);return We.push($e),$e.name}function Dt(We){const Re=r.createUniqueName("exportStar"),wt=r.createIdentifier("m"),$e=r.createIdentifier("n"),Zt=r.createIdentifier("exports");let xe=r.createStrictInequality($e,r.createStringLiteral("default"));return We&&(xe=r.createLogicalAnd(xe,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(We,"hasOwnProperty"),void 0,[$e])))),r.createFunctionDeclaration(void 0,void 0,Re,void 0,[r.createParameterDeclaration(void 0,void 0,wt)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Zt,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration($e)]),wt,r.createBlock([Sa(r.createIfStatement(xe,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(Zt,$e),r.createElementAccessExpression(wt,$e)))),1)])),r.createExpressionStatement(r.createCallExpression(ue,void 0,[Zt]))],!0))}function Ft(We,Re){const wt=[];for(const $e of Re){const Zt=Ot($e.externalImports,Un=>lb(r,Un,oe)),xe=Zt?r.getGeneratedNameForNode(Zt):r.createUniqueName(""),an=[];for(const Un of $e.externalImports){const rr=lb(r,Un,oe);switch(Un.kind){case 272:if(!Un.importClause)break;case 271:ce.assert(rr!==void 0),an.push(r.createExpressionStatement(r.createAssignment(rr,xe))),il(Un,1)&&an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createStringLiteral(ec(rr)),xe])));break;case 278:if(ce.assert(rr!==void 0),Un.exportClause)if(G0(Un.exportClause)){const mi=[];for(const Ji of Un.exportClause.elements)mi.push(r.createPropertyAssignment(r.createStringLiteral(ec(Ji.name)),r.createElementAccessExpression(xe,r.createStringLiteral(ec(Ji.propertyName||Ji.name)))));an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createObjectLiteralExpression(mi,!0)])))}else an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createStringLiteral(ec(Un.exportClause.name)),xe])));else an.push(r.createExpressionStatement(r.createCallExpression(We,void 0,[xe])));break}}wt.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,xe)],void 0,r.createBlock(an,!0)))}return r.createArrayLiteralExpression(wt,!0)}function it(We){switch(We.kind){case 272:return Ye(We);case 271:return lt(We);case 278:return ut(We);case 277:return zt(We);default:return ho(We)}}function Ye(We){let Re;return We.importClause&&m(lb(r,We,oe)),N0(Xr(Re,We))}function ut(We){ce.assertIsDefined(We)}function lt(We){ce.assert(qM(We),"import= for internal module references should be handled in an earlier transformer.");let Re;return m(lb(r,We,oe)),N0(Ut(Re,We))}function zt(We){if(We.isExportEquals)return;const Re=nr(We.expression,To,Nr);return Ur(r.createIdentifier("default"),Re,!0)}function Wt(We){il(We,1)?Be=ur(Be,r.updateFunctionDeclaration(We,Fa(We.modifiers,xt,pc),We.asteriskToken,r.getDeclarationName(We,!0,!0),void 0,Fa(We.parameters,To,Pu),void 0,nr(We.body,To,E_))):Be=ur(Be,ia(We,To,t)),Be=Cr(Be,We)}function tt(We){let Re;const wt=r.getLocalName(We);return m(wt),Re=ur(Re,vr(r.createExpressionStatement(r.createAssignment(wt,vr(r.createClassExpression(Fa(We.modifiers,xt,pc),We.name,void 0,Fa(We.heritageClauses,To,rT),Fa(We.members,To,Mv)),We))),We)),Re=Cr(Re,We),N0(Re)}function Mn(We){if(!cr(We.declarationList))return nr(We,To,uf);let Re;if(T9(We.declarationList)||$2(We.declarationList)){const wt=Fa(We.modifiers,xt,pc),$e=[];for(const xe of We.declarationList.declarations)$e.push(r.updateVariableDeclaration(xe,r.getGeneratedNameForNode(xe.name),void 0,void 0,un(xe,!1)));const Zt=r.updateVariableDeclarationList(We.declarationList,$e);Re=ur(Re,r.updateVariableStatement(We,wt,Zt))}else{let wt;const $e=il(We,1);for(const Zt of We.declarationList.declarations)Zt.initializer?wt=ur(wt,un(Zt,$e)):kn(Zt);wt&&(Re=ur(Re,vr(r.createExpressionStatement(r.inlineExpressions(wt)),We)))}return Re=In(Re,We,!1),N0(Re)}function kn(We){if(ld(We.name))for(const Re of We.name.elements)t0(Re)||kn(Re);else m(r.cloneNode(We.name))}function cr(We){return(Tp(We)&4194304)===0&&(Ve.kind===312||(Ic(We).flags&7)===0)}function un(We,Re){const wt=Re?on:pn;return ld(We.name)?Ik(We,To,t,0,!1,wt):We.initializer?wt(We.name,nr(We.initializer,To,Nr)):We.name}function on(We,Re,wt){return Or(We,Re,wt,!0)}function pn(We,Re,wt){return Or(We,Re,wt,!1)}function Or(We,Re,wt,$e){return m(r.cloneNode(We)),$e?so(We,Ui(vr(r.createAssignment(We,Re),wt))):Ui(vr(r.createAssignment(We,Re),wt))}function Xr(We,Re){if(de.exportEquals)return We;const wt=Re.importClause;if(!wt)return We;wt.name&&(We=ei(We,wt));const $e=wt.namedBindings;if($e)switch($e.kind){case 274:We=ei(We,$e);break;case 275:for(const Zt of $e.elements)We=ei(We,Zt);break}return We}function Ut(We,Re){return de.exportEquals?We:ei(We,Re)}function In(We,Re,wt){if(de.exportEquals)return We;for(const $e of Re.declarationList.declarations)($e.initializer||wt)&&(We=gr(We,$e,wt));return We}function gr(We,Re,wt){if(de.exportEquals)return We;if(ld(Re.name))for(const $e of Re.name.elements)t0($e)||(We=gr(We,$e,wt));else if(!Om(Re.name)){let $e;wt&&(We=Gn(We,Re.name,r.getLocalName(Re)),$e=ec(Re.name)),We=ei(We,Re,$e)}return We}function Cr(We,Re){if(de.exportEquals)return We;let wt;if(il(Re,1)){const $e=il(Re,1024)?r.createStringLiteral("default"):Re.name;We=Gn(We,$e,r.getLocalName(Re)),wt=aC($e)}return Re.name&&(We=ei(We,Re,wt)),We}function ei(We,Re,wt){if(de.exportEquals)return We;const $e=r.getDeclarationName(Re),Zt=de.exportSpecifiers.get($e);if(Zt)for(const xe of Zt)xe.name.escapedText!==wt&&(We=Gn(We,xe.name,$e));return We}function Gn(We,Re,wt,$e){return We=ur(We,Ur(Re,wt,$e)),We}function Ur(We,Re,wt){const $e=r.createExpressionStatement(so(We,Re));return x1($e),wt||Sa($e,3072),$e}function so(We,Re){const wt=An(We)?r.createStringLiteralFromNode(We):We;return Sa(Re,Tp(Re)|3072),Ry(r.createCallExpression(ue,void 0,[wt,Re]),Re)}function ho(We){switch(We.kind){case 243:return Mn(We);case 262:return Wt(We);case 263:return tt(We);case 248:return di(We,!0);case 249:return Nc(We);case 250:return ha(We);case 246:return Oc(We);case 247:return _u(We);case 256:return Ku(We);case 254:return al(We);case 245:return Rr(We);case 255:return mc(We);case 269:return Ea(We);case 296:return Fi(We);case 297:return ta(We);case 258:return $a(We);case 299:return jc(We);case 241:return Xu(We);default:return To(We)}}function di(We,Re){const wt=Ve;return Ve=We,We=r.updateForStatement(We,nr(We.initializer,Re?Gs:Aa,mA),nr(We.condition,To,Nr),nr(We.incrementor,Aa,Nr),pE(We.statement,Re?ho:To,t)),Ve=wt,We}function Nc(We){const Re=Ve;return Ve=We,We=r.updateForInStatement(We,Gs(We.initializer),nr(We.expression,To,Nr),pE(We.statement,ho,t)),Ve=Re,We}function ha(We){const Re=Ve;return Ve=We,We=r.updateForOfStatement(We,We.awaitModifier,Gs(We.initializer),nr(We.expression,To,Nr),pE(We.statement,ho,t)),Ve=Re,We}function ro(We){return My(We)&&cr(We)}function Gs(We){if(ro(We)){let Re;for(const wt of We.declarations)Re=ur(Re,un(wt,!1)),wt.initializer||kn(wt);return Re?r.inlineExpressions(Re):r.createOmittedExpression()}else return nr(We,Aa,mA)}function Oc(We){return r.updateDoStatement(We,pE(We.statement,ho,t),nr(We.expression,To,Nr))}function _u(We){return r.updateWhileStatement(We,nr(We.expression,To,Nr),pE(We.statement,ho,t))}function Ku(We){return r.updateLabeledStatement(We,We.label,ce.checkDefined(nr(We.statement,ho,uf,r.liftToBlock)))}function al(We){return r.updateWithStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.statement,ho,uf,r.liftToBlock)))}function Rr(We){return r.updateIfStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.thenStatement,ho,uf,r.liftToBlock)),nr(We.elseStatement,ho,uf,r.liftToBlock))}function mc(We){return r.updateSwitchStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.caseBlock,ho,xP)))}function Ea(We){const Re=Ve;return Ve=We,We=r.updateCaseBlock(We,Fa(We.clauses,ho,d7)),Ve=Re,We}function Fi(We){return r.updateCaseClause(We,nr(We.expression,To,Nr),Fa(We.statements,ho,uf))}function ta(We){return ia(We,ho,t)}function $a(We){return ia(We,ho,t)}function jc(We){const Re=Ve;return Ve=We,We=r.updateCatchClause(We,We.variableDeclaration,ce.checkDefined(nr(We.block,ho,E_))),Ve=Re,We}function Xu(We){const Re=Ve;return Ve=We,We=ia(We,ho,t),Ve=Re,We}function Lo(We,Re){if(!(We.transformFlags&276828160))return We;switch(We.kind){case 248:return di(We,!1);case 244:return sl(We);case 217:return vc(We,Re);case 360:return er(We,Re);case 226:if(Tg(We))return li(We,Re);break;case 213:if(WE(We))return Jr(We);break;case 224:case 225:return _o(We,Re)}return ia(We,To,t)}function To(We){return Lo(We,!1)}function Aa(We){return Lo(We,!0)}function sl(We){return r.updateExpressionStatement(We,nr(We.expression,Aa,Nr))}function vc(We,Re){return r.updateParenthesizedExpression(We,nr(We.expression,Re?Aa:To,Nr))}function er(We,Re){return r.updatePartiallyEmittedExpression(We,nr(We.expression,Re?Aa:To,Nr))}function Jr(We){const Re=t4(r,We,oe,D,T,y),wt=nr(pp(We.arguments),To,Nr),$e=Re&&(!wt||!Wp(wt)||wt.text!==Re.text)?Re:wt;return r.createCallExpression(r.createPropertyAccessExpression(Ne,r.createIdentifier("import")),void 0,$e?[$e]:[])}function li(We,Re){return Ir(We.left)?Ik(We,To,t,0,!Re):ia(We,To,t)}function Ir(We){if(wy(We,!0))return Ir(We.left);if(ex(We))return Ir(We.expression);if(Wd(We))return gt(We.properties,Ir);if(Ch(We))return gt(We.elements,Ir);if(BT(We))return Ir(We.name);if(Fm(We))return Ir(We.initializer);if(An(We)){const Re=T.getReferencedExportContainer(We);return Re!==void 0&&Re.kind===312}else return!1}function _o(We,Re){if((We.operator===46||We.operator===47)&&An(We.operand)&&!Om(We.operand)&&!T6(We.operand)&&!$ie(We.operand)){const wt=co(We.operand);if(wt){let $e,Zt=nr(We.operand,To,Nr);yk(We)?Zt=r.updatePrefixUnaryExpression(We,Zt):(Zt=r.updatePostfixUnaryExpression(We,Zt),Re||($e=r.createTempVariable(m),Zt=r.createAssignment($e,Zt),vr(Zt,We)),Zt=r.createComma(Zt,r.cloneNode(We.operand)),vr(Zt,We));for(const xe of wt)Zt=so(xe,Ui(Zt));return $e&&(Zt=r.createComma(Zt,$e),vr(Zt,We)),Zt}}return ia(We,To,t)}function xt(We){switch(We.kind){case 95:case 90:return}return We}function Kn(We,Re,wt){if(Re.kind===312){const $e=e1(Re);oe=Re,de=O[$e],ue=V[$e],pt=ee[$e],Ne=te[$e],pt&&delete ee[$e],W(We,Re,wt),oe=void 0,de=void 0,ue=void 0,Ne=void 0,pt=void 0}else W(We,Re,wt)}function gn(We,Re){return Re=I(We,Re),xu(Re)?Re:We===1?_r(Re):We===4?qr(Re):Re}function qr(We){switch(We.kind){case 304:return mt(We)}return We}function mt(We){var Re,wt;const $e=We.name;if(!Om($e)&&!T6($e)){const Zt=T.getReferencedImportDeclaration($e);if(Zt){if(lC(Zt))return vr(r.createPropertyAssignment(r.cloneNode($e),r.createPropertyAccessExpression(r.getGeneratedNameForNode(Zt.parent),r.createIdentifier("default"))),We);if(oS(Zt))return vr(r.createPropertyAssignment(r.cloneNode($e),r.createPropertyAccessExpression(r.getGeneratedNameForNode(((wt=(Re=Zt.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||Zt),r.cloneNode(Zt.propertyName||Zt.name))),We)}}return We}function _r(We){switch(We.kind){case 80:return Cn(We);case 226:return oi(We);case 236:return Qr(We)}return We}function Cn(We){var Re,wt;if(Tp(We)&8192){const $e=BG(oe);return $e?r.createPropertyAccessExpression($e,We):We}if(!Om(We)&&!T6(We)){const $e=T.getReferencedImportDeclaration(We);if($e){if(lC($e))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode($e.parent),r.createIdentifier("default")),We);if(oS($e))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((wt=(Re=$e.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||$e),r.cloneNode($e.propertyName||$e.name)),We)}}return We}function oi(We){if(zN(We.operatorToken.kind)&&An(We.left)&&(!Om(We.left)||jU(We.left))&&!T6(We.left)){const Re=co(We.left);if(Re){let wt=We;for(const $e of Re)wt=so($e,Ui(wt));return wt}}return We}function Qr(We){return S9(We)?r.createPropertyAccessExpression(Ne,r.createIdentifier("meta")):We}function co(We){let Re;const wt=es(We);if(wt){const $e=T.getReferencedExportContainer(We,!1);$e&&$e.kind===312&&(Re=ur(Re,r.getDeclarationName(wt))),Re=Oi(Re,de==null?void 0:de.exportedBindings[e1(wt)])}else if(Om(We)&&jU(We)){const $e=de==null?void 0:de.exportSpecifiers.get(We);if($e){const Zt=[];for(const xe of $e)Zt.push(xe.name);return Zt}}return Re}function es(We){if(!Om(We)){const Re=T.getReferencedImportDeclaration(We);if(Re)return Re;const wt=T.getReferencedValueDeclaration(We);if(wt&&(de!=null&&de.exportedBindings[e1(wt)]))return wt;const $e=T.getReferencedValueDeclarations(We);if($e){for(const Zt of $e)if(Zt!==wt&&(de!=null&&de.exportedBindings[e1(Zt)]))return Zt}return wt}}function Ui(We){return pt===void 0&&(pt=[]),pt[Im(We)]=!0,We}function xu(We){return pt&&We.id&&pt[We.id]}}var hct=G({"src/compiler/transformers/module/system.ts"(){Ad()}});function Oae(t){const{factory:r,getEmitHelperFactory:s}=t,l=t.getEmitHost(),m=t.getEmitResolver(),y=t.getCompilerOptions(),T=iu(y),D=t.onEmitNode,I=t.onSubstituteNode;t.onEmitNode=pt,t.onSubstituteNode=Le,t.enableEmitNotification(312),t.enableSubstitution(80);let W,O,V;return Vx(t,ee);function ee(ke){if(ke.isDeclarationFile)return ke;if(Wv(ke)||F0(y)){O=ke,V=void 0;let _t=te(ke);return O=void 0,V&&(_t=r.updateSourceFile(_t,vr(r.createNodeArray(fie(_t.statements.slice(),V)),_t.statements))),!Wv(ke)||gt(_t.statements,UU)?_t:r.updateSourceFile(_t,vr(r.createNodeArray([..._t.statements,jJ(r)]),_t.statements))}return ke}function te(ke){const _t=bpe(r,s(),ke,y);if(_t){const Dt=[],Ft=r.copyPrologue(ke.statements,Dt);return ur(Dt,_t),Oi(Dt,Fa(ke.statements,oe,uf,Ft)),r.updateSourceFile(ke,vr(r.createNodeArray(Dt),ke.statements))}else return ia(ke,oe,t)}function oe(ke){switch(ke.kind){case 271:return Zp(y)>=100?ue(ke):void 0;case 277:return Be(ke);case 278:return Ve(ke)}return ke}function de(ke){const _t=t4(r,ke,ce.checkDefined(O),l,m,y),Dt=[];if(_t&&Dt.push(_t),!V){const it=r.createUniqueName("_createRequire",48),Ye=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamedImports([r.createImportSpecifier(!1,r.createIdentifier("createRequire"),it)])),r.createStringLiteral("module")),ut=r.createUniqueName("__require",48),lt=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(ut,void 0,void 0,r.createCallExpression(r.cloneNode(it),void 0,[r.createPropertyAccessExpression(r.createMetaProperty(102,r.createIdentifier("meta")),r.createIdentifier("url"))]))],T>=2?2:0));V=[Ye,lt]}const Ft=V[1].declarationList.declarations[0].name;return ce.assertNode(Ft,An),r.createCallExpression(r.cloneNode(Ft),void 0,Dt)}function ue(ke){ce.assert(qM(ke),"import= for internal module references should be handled in an earlier transformer.");let _t;return _t=ur(_t,tc(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ke.name),void 0,void 0,de(ke))],T>=2?2:0)),ke),ke)),_t=Ne(_t,ke),N0(_t)}function Ne(ke,_t){return il(_t,1)&&(ke=ur(ke,r.createExportDeclaration(void 0,_t.isTypeOnly,r.createNamedExports([r.createExportSpecifier(!1,void 0,ec(_t.name))])))),ke}function Be(ke){return ke.isExportEquals?void 0:ke}function Ve(ke){if(y.module!==void 0&&y.module>5||!ke.exportClause||!AP(ke.exportClause)||!ke.moduleSpecifier)return ke;const _t=ke.exportClause.name,Dt=r.getGeneratedNameForNode(_t),Ft=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(Dt)),ke.moduleSpecifier,ke.assertClause);tc(Ft,ke.exportClause);const it=_ie(ke)?r.createExportDefault(Dt):r.createExportDeclaration(void 0,!1,r.createNamedExports([r.createExportSpecifier(!1,Dt,_t)]));return tc(it,ke),[Ft,it]}function pt(ke,_t,Dt){tl(_t)?((Wv(_t)||F0(y))&&y.importHelpers&&(W=new Map),D(ke,_t,Dt),W=void 0):D(ke,_t,Dt)}function Le(ke,_t){return _t=I(ke,_t),W&&An(_t)&&Tp(_t)&8192?ht(_t):_t}function ht(ke){const _t=ec(ke);let Dt=W.get(_t);return Dt||W.set(_t,Dt=r.createUniqueName(_t,48)),Dt}}var QHe=G({"src/compiler/transformers/module/esnextAnd2015.ts"(){Ad()}});function ZHe(t){const r=t.onSubstituteNode,s=t.onEmitNode,l=Oae(t),m=t.onSubstituteNode,y=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=s;const T=Pme(t),D=t.onSubstituteNode,I=t.onEmitNode;t.onSubstituteNode=O,t.onEmitNode=V,t.enableSubstitution(312),t.enableEmitNotification(312);let W;return oe;function O(ue,Ne){return tl(Ne)?(W=Ne,r(ue,Ne)):W?W.impliedNodeFormat===99?m(ue,Ne):D(ue,Ne):r(ue,Ne)}function V(ue,Ne,Be){return tl(Ne)&&(W=Ne),W?W.impliedNodeFormat===99?y(ue,Ne,Be):I(ue,Ne,Be):s(ue,Ne,Be)}function ee(ue){return ue.impliedNodeFormat===99?l:T}function te(ue){if(ue.isDeclarationFile)return ue;W=ue;const Ne=ee(ue)(ue);return W=void 0,ce.assert(tl(Ne)),Ne}function oe(ue){return ue.kind===312?te(ue):de(ue)}function de(ue){return t.factory.createBundle(Vn(ue.sourceFiles,te),ue.prepends)}}var v4e=G({"src/compiler/transformers/module/node.ts"(){Ad()}});function cxe(t){return ff(t)||Os(t)||Np(t)||ym(t)||_P(t)||J2(t)||lE(t)||Lh(t)||em(t)||Jh(t)||b0(t)||Pu(t)||Hh(t)||WT(t)||kh(t)||mg(t)||pg(t)||Xb(t)||sa(t)||Ed(t)||ys(t)||T2(t)}function Nme(t){if(_P(t)||J2(t))return r;return Jh(t)||em(t)?l:f4(t);function r(y){const T=s(y);return T!==void 0?{diagnosticMessage:T,errorNode:t,typeName:t.name}:void 0}function s(y){return e_(t)?y.errorModuleName?y.accessibility===2?w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?y.errorModuleName?y.accessibility===2?w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?w.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Property_0_of_exported_interface_has_or_is_using_private_name_1}function l(y){const T=m(y);return T!==void 0?{diagnosticMessage:T,errorNode:t,typeName:t.name}:void 0}function m(y){return e_(t)?y.errorModuleName?y.accessibility===2?w.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?y.errorModuleName?y.accessibility===2?w.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_method_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?w.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function f4(t){if(ff(t)||Os(t)||Np(t)||sa(t)||Ed(t)||ys(t)||ym(t)||pg(t))return s;return _P(t)||J2(t)?l:lE(t)||Lh(t)||em(t)||Jh(t)||b0(t)||Xb(t)?m:Pu(t)?Eb(t,t.parent)&&il(t.parent,8)?s:y:Hh(t)?D:WT(t)?I:kh(t)?W:mg(t)||T2(t)?O:ce.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${ce.formatSyntaxKind(t.kind)}`);function r(V){if(t.kind===260||t.kind===208)return V.errorModuleName?V.accessibility===2?w.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:w.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&&il(t.parent,8))return e_(t)?V.errorModuleName?V.accessibility===2?w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?V.errorModuleName?V.accessibility===2?w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_property_0_of_exported_class_has_or_is_using_private_name_1:V.errorModuleName?w.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(V){const ee=r(V);return ee!==void 0?{diagnosticMessage:ee,errorNode:t,typeName:t.name}:void 0}function l(V){let ee;return t.kind===178?e_(t)?ee=V.errorModuleName?w.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ee=V.errorModuleName?w.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e_(t)?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:ee,errorNode:t.name,typeName:t.name}}function m(V){let ee;switch(t.kind){case 180:ee=V.errorModuleName?w.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:ee=V.errorModuleName?w.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:ee=V.errorModuleName?w.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:e_(t)?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ee=V.errorModuleName?w.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return ce.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:ee,errorNode:t.name||t}}function y(V){const ee=T(V);return ee!==void 0?{diagnosticMessage:ee,errorNode:t,typeName:t.name}:void 0}function T(V){switch(t.parent.kind){case 176:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return V.errorModuleName?w.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return V.errorModuleName?w.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return V.errorModuleName?w.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return e_(t.parent)?V.errorModuleName?V.accessibility===2?w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?V.errorModuleName?V.accessibility===2?w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:V.errorModuleName?w.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return ce.fail(`Unknown parent for parameter: ${ce.formatSyntaxKind(t.parent.kind)}`)}}function D(){let V;switch(t.parent.kind){case 263:V=w.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:V=w.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:V=w.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:V=w.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:V=w.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:e_(t.parent)?V=w.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?V=w.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:V=w.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:V=w.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:V=w.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:V=w.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return ce.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:V,errorNode:t,typeName:t.name}}function I(){let V;return Kc(t.parent.parent)?V=rT(t.parent)&&t.parent.token===119?w.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?w.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:w.extends_clause_of_exported_class_has_or_is_using_private_name_0:V=w.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:V,errorNode:t,typeName:o_(t.parent.parent)}}function W(){return{diagnosticMessage:w.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function O(V){return{diagnosticMessage:V.errorModuleName?w.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:w.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:T2(t)?ce.checkDefined(t.typeExpression):t.type,typeName:T2(t)?o_(t):t.name}}}var b4e=G({"src/compiler/transformers/declarations/diagnostics.ts"(){Ad()}});function eJe(t,r,s){const l=t.getCompilerOptions();return zae(r,t,be,l,s?[s]:gi(t.getSourceFiles(),xie),[QN],!1).diagnostics}function Fae(t,r){const s=r.text.substring(t.pos,t.end);return Ub(s,"@internal")}function wme(t,r){const s=Il(t);if(s&&s.kind===169){const m=s.parent.parameters.indexOf(s),y=m>0?s.parent.parameters[m-1]:void 0,T=r.text,D=y?Hi(Nx(T,ep(T,y.end+1,!1,!0)),CS(T,t.pos)):Nx(T,ep(T,t.pos,!1,!0));return D&&D.length&&Fae(yl(D),r)}const l=s&&E9(s,r);return!!Ot(l,m=>Fae(m,r))}function QN(t){const r=()=>ce.fail("Diagnostic emitted without context");let s=r,l=!0,m=!1,y=!1,T=!1,D=!1,I,W,O,V,ee,te;const{factory:oe}=t,de=t.getEmitHost(),ue={trackSymbol:zt,reportInaccessibleThisError:cr,reportInaccessibleUniqueSymbolError:Mn,reportCyclicStructureError:kn,reportPrivateInBaseOfClassExpression:Wt,reportLikelyUnsafeImportRequiredError:un,reportTruncationError:on,moduleResolverHost:de,trackReferencedAmbientModule:Ye,trackExternalModuleSymbolOfImportTypeNode:lt,reportNonlocalAugmentation:pn,reportNonSerializableProperty:Or,reportImportTypeNodeResolutionModeOverride:Xr};let Ne,Be,Ve,pt,Le,ht;const ke=t.getEmitResolver(),_t=t.getCompilerOptions(),{noResolve:Dt,stripInternal:Ft}=_t;return In;function it(mt){if(mt){W=W||new Set;for(const _r of mt)W.add(_r)}}function Ye(mt,_r){const Cn=ke.getTypeReferenceDirectivesForSymbol(_r,67108863);if(Nt(Cn))return it(Cn);const oi=ns(mt);pt.set(e1(oi),oi)}function ut(mt){if(mt.accessibility===0){if(mt&&mt.aliasesToMakeVisible)if(!O)O=mt.aliasesToMakeVisible;else for(const _r of mt.aliasesToMakeVisible)Dy(O,_r)}else{const _r=s(mt);if(_r)return _r.typeName?t.addDiagnostic(kc(mt.errorNode||_r.errorNode,_r.diagnosticMessage,Yv(_r.typeName),mt.errorSymbolName,mt.errorModuleName)):t.addDiagnostic(kc(mt.errorNode||_r.errorNode,_r.diagnosticMessage,mt.errorSymbolName,mt.errorModuleName)),!0}return!1}function lt(mt){m||(te||(te=[])).push(mt)}function zt(mt,_r,Cn){if(mt.flags&262144)return!1;const oi=ut(ke.isSymbolAccessible(mt,_r,Cn,!0));return it(ke.getTypeReferenceDirectivesForSymbol(mt,Cn)),oi}function Wt(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.Property_0_of_exported_class_expression_may_not_be_private_or_protected,mt))}function tt(){return Ne?Ud(Ne):Be&&o_(Be)?Ud(o_(Be)):Be&&Ly(Be)?Be.isExportEquals?"export=":"default":"(Missing)"}function Mn(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,tt(),"unique symbol"))}function kn(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,tt()))}function cr(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,tt(),"this"))}function un(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,tt(),mt))}function on(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function pn(mt,_r,Cn){var oi;const Qr=(oi=_r.declarations)==null?void 0:oi.find(es=>ns(es)===mt),co=gi(Cn.declarations,es=>ns(es)!==mt);if(Qr&&co)for(const es of co)t.addDiagnostic(ml(kc(es,w.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),kc(Qr,w.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Or(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,mt))}function Xr(){!mG()&&(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Ut(mt,_r){const Cn=s;s=Qr=>Qr.errorNode&&cxe(Qr.errorNode)?f4(Qr.errorNode)(Qr):{diagnosticMessage:Qr.errorModuleName?w.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:w.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Qr.errorNode||mt};const oi=ke.getDeclarationStatementsForSourceFile(mt,mF,ue,_r);return s=Cn,oi}function In(mt){if(mt.kind===312&&mt.isDeclarationFile)return mt;if(mt.kind===313){m=!0,pt=new Map,Le=new Map;let Re=!1;const wt=oe.createBundle(Vn(mt.sourceFiles,xe=>{if(xe.isDeclarationFile)return;if(Re=Re||xe.hasNoDefaultLib,Ve=xe,I=xe,O=void 0,ee=!1,V=new Map,s=r,T=!1,D=!1,gr(xe,pt),Cr(xe,Le),h1(xe)||Py(xe)){y=!1,l=!1;const Un=v1(xe)?oe.createNodeArray(Ut(xe,!0)):Fa(xe.statements,Xu,uf);return oe.updateSourceFile(xe,[oe.createModuleDeclaration([oe.createModifier(138)],oe.createStringLiteral(Rie(t.getEmitHost(),xe)),oe.createModuleBlock(vr(oe.createNodeArray(ta(Un)),xe.statements)))],!0,[],[],!1,[])}l=!0;const an=v1(xe)?oe.createNodeArray(Ut(xe)):Fa(xe.statements,Xu,uf);return oe.updateSourceFile(xe,ta(an),!0,[],[],!1,[])}),Qo(mt.prepends,xe=>{if(xe.kind===315){const an=pEe(xe,"dts",Ft);return Re=Re||!!an.hasNoDefaultLib,gr(an,pt),it(Vn(an.typeReferenceDirectives,Un=>[Un.fileName,Un.resolutionMode])),Cr(an,Le),an}return xe}));wt.syntheticFileReferences=[],wt.syntheticTypeReferences=Ui(),wt.syntheticLibReferences=es(),wt.hasNoDefaultLib=Re;const $e=qc(hf(Gae(mt,de,!0).declarationFilePath)),Zt=We(wt.syntheticFileReferences,$e);return pt.forEach(Zt),wt}l=!0,T=!1,D=!1,I=mt,Ve=mt,s=r,m=!1,y=!1,ee=!1,O=void 0,V=new Map,W=void 0,pt=gr(Ve,new Map),Le=Cr(Ve,new Map);const _r=[],Cn=qc(hf(Gae(mt,de,!0).declarationFilePath)),oi=We(_r,Cn);let Qr;if(v1(Ve))Qr=oe.createNodeArray(Ut(mt)),pt.forEach(oi),ht=gi(Qr,hm);else{const Re=Fa(mt.statements,Xu,uf);Qr=vr(oe.createNodeArray(ta(Re)),mt.statements),pt.forEach(oi),ht=gi(Qr,hm),Wv(mt)&&(!y||T&&!D)&&(Qr=vr(oe.createNodeArray([...Qr,jJ(oe)]),Qr))}const co=oe.updateSourceFile(mt,Qr,!0,_r,Ui(),mt.hasNoDefaultLib,es());return co.exportedModulesFromDeclarationEmit=te,co;function es(){return oc(Le.keys(),Re=>({fileName:Re,pos:-1,end:-1}))}function Ui(){return W?Qo(oc(W.keys()),xu):[]}function xu([Re,wt]){if(ht){for(const $e of ht)if(kh($e)&&j0($e.moduleReference)){const Zt=$e.moduleReference.expression;if(sp(Zt)&&Zt.text===Re)return}else if(Fv($e)&&Wp($e.moduleSpecifier)&&$e.moduleSpecifier.text===Re)return}return{fileName:Re,pos:-1,end:-1,...wt?{resolutionMode:wt}:void 0}}function We(Re,wt){return $e=>{let Zt;if($e.isDeclarationFile)Zt=$e.fileName;else{if(m&&ni(mt.sourceFiles,$e))return;const xe=Gae($e,de,!0);Zt=xe.declarationFilePath||xe.jsFilePath||$e.fileName}if(Zt){const xe=ime(_t,Ve,_h(wt,de.getCurrentDirectory(),de.getCanonicalFileName),_h(Zt,de.getCurrentDirectory(),de.getCanonicalFileName),de);if(!U2(xe)){it([[xe,void 0]]);return}let an=Fz(wt,Zt,de.getCurrentDirectory(),de.getCanonicalFileName,!1);if(xf(an,"./")&&e7(an)&&(an=an.substring(2)),xf(an,"node_modules/")||NW(an))return;Re.push({pos:-1,end:-1,fileName:an})}}}}function gr(mt,_r){return Dt||!xA(mt)&&v1(mt)||Ot(mt.referencedFiles,Cn=>{const oi=de.getSourceFileFromReference(mt,Cn);oi&&_r.set(e1(oi),oi)}),_r}function Cr(mt,_r){return Ot(mt.libReferenceDirectives,Cn=>{de.getLibFileFromReference(Cn)&&_r.set(Q0(Cn.fileName),!0)}),_r}function ei(mt){if(mt.kind===80)return mt;return mt.kind===207?oe.updateArrayBindingPattern(mt,Fa(mt.elements,_r,qX)):oe.updateObjectBindingPattern(mt,Fa(mt.elements,_r,ym));function _r(Cn){return Cn.kind===232?Cn:Cn.propertyName&&An(Cn.propertyName)&&An(Cn.name)&&!Cn.symbol.isReferenced&&!yH(Cn.propertyName)?oe.updateBindingElement(Cn,Cn.dotDotDotToken,void 0,Cn.propertyName,Ur(Cn)?Cn.initializer:void 0):oe.updateBindingElement(Cn,Cn.dotDotDotToken,Cn.propertyName,ei(Cn.name),Ur(Cn)?Cn.initializer:void 0)}}function Gn(mt,_r,Cn){let oi;ee||(oi=s,s=f4(mt));const Qr=oe.updateParameterDeclaration(mt,T4e(oe,mt,_r),mt.dotDotDotToken,ei(mt.name),ke.isOptionalParameter(mt)?mt.questionToken||oe.createToken(58):void 0,ho(mt,Cn||mt.type,!0),so(mt));return ee||(s=oi),Qr}function Ur(mt){return lxe(mt)&&ke.isLiteralConstDeclaration(Il(mt))}function so(mt){if(Ur(mt))return ke.createLiteralConstValue(Il(mt),ue)}function ho(mt,_r,Cn){if(!Cn&&Ab(mt,8)||Ur(mt))return;const oi=mt.kind===169&&(ke.isRequiredInitializedParameter(mt)||ke.isOptionalUninitializedParameterProperty(mt));if(_r&&!oi)return nr(_r,$a,Uu);if(!Il(mt))return _r?nr(_r,$a,Uu):oe.createKeywordTypeNode(133);if(mt.kind===178)return oe.createKeywordTypeNode(133);Ne=mt.name;let Qr;if(ee||(Qr=s,s=f4(mt)),mt.kind===260||mt.kind===208)return co(ke.createTypeOfDeclaration(mt,I,mF,ue));if(mt.kind===169||mt.kind===172||mt.kind===171)return Np(mt)||!mt.initializer?co(ke.createTypeOfDeclaration(mt,I,mF,ue,oi)):co(ke.createTypeOfDeclaration(mt,I,mF,ue,oi)||ke.createTypeOfExpression(mt.initializer,I,mF,ue));return co(ke.createReturnTypeOfSignatureDeclaration(mt,I,mF,ue));function co(es){return Ne=void 0,ee||(s=Qr),es||oe.createKeywordTypeNode(133)}}function di(mt){switch(mt=Il(mt),mt.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ke.isDeclarationVisible(mt);case 260:return!ha(mt);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Nc(mt){var _r;if(mt.body)return!0;const Cn=(_r=mt.symbol.declarations)==null?void 0:_r.filter(oi=>b0(oi)&&!oi.body);return!Cn||Cn.indexOf(mt)===Cn.length-1}function ha(mt){return t0(mt)?!1:ld(mt.name)?gt(mt.name.elements,ha):ke.isDeclarationVisible(mt)}function ro(mt,_r,Cn){if(Ab(mt,8))return oe.createNodeArray();const oi=Vn(_r,Qr=>Gn(Qr,Cn));return oi?oe.createNodeArray(oi,_r.hasTrailingComma):oe.createNodeArray()}function Gs(mt,_r){let Cn;if(!_r){const oi=$L(mt);oi&&(Cn=[Gn(oi)])}if(Ep(mt)){let oi;if(!_r){const Qr=yR(mt);if(Qr){const co=gn(mt,ke.getAllAccessorDeclarations(mt));oi=Gn(Qr,void 0,co)}}oi||(oi=oe.createParameterDeclaration(void 0,void 0,"value")),Cn=ur(Cn,oi)}return oe.createNodeArray(Cn||Zn)}function Oc(mt,_r){return Ab(mt,8)?void 0:Fa(_r,$a,Hh)}function _u(mt){return tl(mt)||mg(mt)||xp(mt)||Kc(mt)||Kp(mt)||S_(mt)||Xb(mt)||yW(mt)}function Ku(mt,_r){const Cn=ke.isEntityNameVisible(mt,_r);ut(Cn),it(ke.getTypeReferenceDirectivesForEntityName(mt))}function al(mt,_r){return g1(mt)&&g1(_r)&&(mt.jsDoc=_r.jsDoc),Ry(mt,lI(_r))}function Rr(mt,_r){if(_r){if(y=y||mt.kind!==267&&mt.kind!==205,sp(_r))if(m){const Cn=TY(t.getEmitHost(),ke,mt);if(Cn)return oe.createStringLiteral(Cn)}else{const Cn=ke.getSymbolOfExternalModuleSpecifier(_r);Cn&&(te||(te=[])).push(Cn)}return _r}}function mc(mt){if(ke.isDeclarationVisible(mt))if(mt.moduleReference.kind===283){const _r=S7(mt);return oe.updateImportEqualsDeclaration(mt,mt.modifiers,mt.isTypeOnly,mt.name,oe.updateExternalModuleReference(mt.moduleReference,Rr(mt,_r)))}else{const _r=s;return s=f4(mt),Ku(mt.moduleReference,I),s=_r,mt}}function Ea(mt){if(!mt.importClause)return oe.updateImportDeclaration(mt,mt.modifiers,mt.importClause,Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));const _r=mt.importClause&&mt.importClause.name&&ke.isDeclarationVisible(mt.importClause)?mt.importClause.name:void 0;if(!mt.importClause.namedBindings)return _r&&oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,void 0),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));if(mt.importClause.namedBindings.kind===274){const oi=ke.isDeclarationVisible(mt.importClause.namedBindings)?mt.importClause.namedBindings:void 0;return _r||oi?oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,oi),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause)):void 0}const Cn=Qo(mt.importClause.namedBindings.elements,oi=>ke.isDeclarationVisible(oi)?oi:void 0);if(Cn&&Cn.length||_r)return oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,Cn&&Cn.length?oe.updateNamedImports(mt.importClause.namedBindings,Cn):void 0),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));if(ke.isImportRequiredByAugmentation(mt))return oe.updateImportDeclaration(mt,mt.modifiers,void 0,Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause))}function Fi(mt){if(D2(mt)!==void 0)return mG()||t.addDiagnostic(kc(mt,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),mt}function ta(mt){for(;Nt(O);){const Cn=O.shift();if(!Yz(Cn))return ce.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${ce.formatSyntaxKind(Cn.kind)}`);const oi=l;l=Cn.parent&&tl(Cn.parent)&&!(Wv(Cn.parent)&&m);const Qr=Aa(Cn);l=oi,V.set(e1(Cn),Qr)}return Fa(mt,_r,uf);function _r(Cn){if(Yz(Cn)){const oi=e1(Cn);if(V.has(oi)){const Qr=V.get(oi);return V.delete(oi),Qr&&((ls(Qr)?gt(Qr,VU):VU(Qr))&&(T=!0),tl(Cn.parent)&&(ls(Qr)?gt(Qr,UU):UU(Qr))&&(y=!0)),Qr}}return Cn}}function $a(mt){if(li(mt)||dl(mt)&&(di(mt)||nI(mt)&&!ke.isLateBound(Il(mt)))||S_(mt)&&ke.isImplementationOfOverload(mt)||Roe(mt))return;let _r;_u(mt)&&(_r=I,I=mt);const Cn=s,oi=cxe(mt),Qr=ee;let co=(mt.kind===187||mt.kind===200)&&mt.parent.kind!==265;if((em(mt)||Jh(mt))&&Ab(mt,8))return mt.symbol&&mt.symbol.declarations&&mt.symbol.declarations[0]!==mt?void 0:es(oe.createPropertyDeclaration(xt(mt),mt.name,void 0,void 0,void 0));if(oi&&!ee&&(s=f4(mt)),uE(mt)&&Ku(mt.exprName,I),co&&(ee=!0),bct(mt))switch(mt.kind){case 233:{(Vd(mt.expression)||Uh(mt.expression))&&Ku(mt.expression,I);const Ui=ia(mt,$a,t);return es(oe.updateExpressionWithTypeArguments(Ui,Ui.expression,Ui.typeArguments))}case 183:{Ku(mt.typeName,I);const Ui=ia(mt,$a,t);return es(oe.updateTypeReferenceNode(Ui,Ui.typeName,Ui.typeArguments))}case 180:return es(oe.updateConstructSignature(mt,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 176:{const Ui=oe.createConstructorDeclaration(xt(mt),ro(mt,mt.parameters,0),void 0);return es(Ui)}case 174:{if(Gu(mt.name))return es(void 0);const Ui=oe.createMethodDeclaration(xt(mt),void 0,mt.name,mt.questionToken,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type),void 0);return es(Ui)}case 177:{if(Gu(mt.name))return es(void 0);const Ui=gn(mt,ke.getAllAccessorDeclarations(mt));return es(oe.updateGetAccessorDeclaration(mt,xt(mt),mt.name,Gs(mt,Ab(mt,8)),ho(mt,Ui),void 0))}case 178:return Gu(mt.name)?es(void 0):es(oe.updateSetAccessorDeclaration(mt,xt(mt),mt.name,Gs(mt,Ab(mt,8)),void 0));case 172:return Gu(mt.name)?es(void 0):es(oe.updatePropertyDeclaration(mt,xt(mt),mt.name,mt.questionToken,ho(mt,mt.type),so(mt)));case 171:return Gu(mt.name)?es(void 0):es(oe.updatePropertySignature(mt,xt(mt),mt.name,mt.questionToken,ho(mt,mt.type)));case 173:return Gu(mt.name)?es(void 0):es(oe.updateMethodSignature(mt,xt(mt),mt.name,mt.questionToken,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 179:return es(oe.updateCallSignature(mt,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 181:return es(oe.updateIndexSignature(mt,xt(mt),ro(mt,mt.parameters),nr(mt.type,$a,Uu)||oe.createKeywordTypeNode(133)));case 260:return ld(mt.name)?vc(mt.name):(co=!0,ee=!0,es(oe.updateVariableDeclaration(mt,mt.name,void 0,ho(mt,mt.type),so(mt))));case 168:return jc(mt)&&(mt.default||mt.constraint)?es(oe.updateTypeParameterDeclaration(mt,mt.modifiers,mt.name,void 0,void 0)):es(ia(mt,$a,t));case 194:{const Ui=nr(mt.checkType,$a,Uu),xu=nr(mt.extendsType,$a,Uu),We=I;I=mt.trueType;const Re=nr(mt.trueType,$a,Uu);I=We;const wt=nr(mt.falseType,$a,Uu);return ce.assert(Ui),ce.assert(xu),ce.assert(Re),ce.assert(wt),es(oe.updateConditionalTypeNode(mt,Ui,xu,Re,wt))}case 184:return es(oe.updateFunctionTypeNode(mt,Fa(mt.typeParameters,$a,Hh),ro(mt,mt.parameters),ce.checkDefined(nr(mt.type,$a,Uu))));case 185:return es(oe.updateConstructorTypeNode(mt,xt(mt),Fa(mt.typeParameters,$a,Hh),ro(mt,mt.parameters),ce.checkDefined(nr(mt.type,$a,Uu))));case 205:return BE(mt)?es(oe.updateImportTypeNode(mt,oe.updateLiteralTypeNode(mt.argument,Rr(mt,mt.argument.literal)),mt.assertions,mt.qualifier,Fa(mt.typeArguments,$a,Uu),mt.isTypeOf)):es(mt);default:ce.assertNever(mt,`Attempted to process unhandled node kind: ${ce.formatSyntaxKind(mt.kind)}`)}return m6(mt)&&Ah(Ve,mt.pos).line===Ah(Ve,mt.end).line&&Sa(mt,1),es(ia(mt,$a,t));function es(Ui){return Ui&&oi&&nI(mt)&&Jr(mt),_u(mt)&&(I=_r),oi&&!ee&&(s=Cn),co&&(ee=Qr),Ui===mt?Ui:Ui&&tc(al(Ui,mt),mt)}}function jc(mt){return mt.parent.kind===174&&Ab(mt.parent,8)}function Xu(mt){if(!vct(mt)||li(mt))return;switch(mt.kind){case 278:return tl(mt.parent)&&(y=!0),D=!0,oe.updateExportDeclaration(mt,mt.modifiers,mt.isTypeOnly,mt.exportClause,Rr(mt,mt.moduleSpecifier),D2(mt.assertClause)?mt.assertClause:void 0);case 277:{if(tl(mt.parent)&&(y=!0),D=!0,mt.expression.kind===80)return mt;{const Cn=oe.createUniqueName("_default",16);s=()=>({diagnosticMessage:w.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:mt}),Be=mt;const oi=oe.createVariableDeclaration(Cn,void 0,ke.createTypeOfExpression(mt.expression,mt,mF,ue),void 0);Be=void 0;const Qr=oe.createVariableStatement(l?[oe.createModifier(138)]:[],oe.createVariableDeclarationList([oi],2));return al(Qr,mt),Zde(mt),[Qr,oe.updateExportAssignment(mt,mt.modifiers,Cn)]}}}const _r=Aa(mt);return V.set(e1(mt),_r),mt}function Lo(mt){if(kh(mt)||Ab(mt,1024)||!nx(mt))return mt;const _r=oe.createModifiersFromModifierFlags(tS(mt)&258046);return oe.updateModifiers(mt,_r)}function To(mt,_r,Cn,oi){const Qr=oe.updateModuleDeclaration(mt,_r,Cn,oi);if(Ov(Qr)||Qr.flags&32)return Qr;const co=oe.createModuleDeclaration(Qr.modifiers,Qr.name,Qr.body,Qr.flags|32);return tc(co,Qr),vr(co,Qr),co}function Aa(mt){if(O)for(;Yw(O,mt););if(li(mt))return;switch(mt.kind){case 271:return mc(mt);case 272:return Ea(mt)}if(dl(mt)&&di(mt)||S_(mt)&&ke.isImplementationOfOverload(mt))return;let _r;_u(mt)&&(_r=I,I=mt);const Cn=cxe(mt),oi=s;Cn&&(s=f4(mt));const Qr=l;switch(mt.kind){case 265:{l=!1;const es=co(oe.updateTypeAliasDeclaration(mt,xt(mt),mt.name,Fa(mt.typeParameters,$a,Hh),ce.checkDefined(nr(mt.type,$a,Uu))));return l=Qr,es}case 264:return co(oe.updateInterfaceDeclaration(mt,xt(mt),mt.name,Oc(mt,mt.typeParameters),qr(mt.heritageClauses),Fa(mt.members,$a,l7)));case 262:{const es=co(oe.updateFunctionDeclaration(mt,xt(mt),void 0,mt.name,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type),void 0));if(es&&ke.isExpandoFunctionDeclaration(mt)&&Nc(mt)){const Ui=ke.getPropertiesOfContainerFunction(mt),xu=DP.createModuleDeclaration(void 0,es.name||oe.createIdentifier("_default"),oe.createModuleBlock([]),32);kl(xu,I),xu.locals=Td(Ui),xu.symbol=Ui[0].parent;const We=[];let Re=Qo(Ui,Un=>{if(!Un.valueDeclaration||!(sa(Un.valueDeclaration)||Ed(Un.valueDeclaration)||ys(Un.valueDeclaration)))return;const rr=lf(Un.escapedName);if(!rE(rr,99))return;s=f4(Un.valueDeclaration);const mi=ke.createTypeOfDeclaration(Un.valueDeclaration,xu,mF,ue);s=oi;const Ji=t6(rr),zo=Ji?oe.getGeneratedNameForNode(Un.valueDeclaration):oe.createIdentifier(rr);Ji&&We.push([zo,rr]);const Ca=oe.createVariableDeclaration(zo,void 0,mi,void 0);return oe.createVariableStatement(Ji?void 0:[oe.createToken(95)],oe.createVariableDeclarationList([Ca]))});We.length?Re.push(oe.createExportDeclaration(void 0,!1,oe.createNamedExports(Vn(We,([Un,rr])=>oe.createExportSpecifier(!1,Un,rr))))):Re=Qo(Re,Un=>oe.updateModifiers(Un,0));const wt=oe.createModuleDeclaration(xt(mt),mt.name,oe.createModuleBlock(Re),32);if(!Ab(es,1024))return[es,wt];const $e=oe.createModifiersFromModifierFlags(tS(es)&-1026|2),Zt=oe.updateFunctionDeclaration(es,$e,void 0,es.name,es.typeParameters,es.parameters,es.type,void 0),xe=oe.updateModuleDeclaration(wt,$e,wt.name,wt.body),an=oe.createExportAssignment(void 0,!1,wt.name);return tl(mt.parent)&&(y=!0),D=!0,[Zt,xe,an]}else return es}case 267:{l=!1;const es=mt.body;if(es&&es.kind===268){const Ui=T,xu=D;D=!1,T=!1;const We=Fa(es.statements,Xu,uf);let Re=ta(We);mt.flags&33554432&&(T=!1),!$C(mt)&&!_o(Re)&&!D&&(T?Re=oe.createNodeArray([...Re,jJ(oe)]):Re=Fa(Re,Lo,uf));const wt=oe.updateModuleBlock(es,Re);l=Qr,T=Ui,D=xu;const $e=xt(mt);return co(To(mt,$e,BL(mt)?Rr(mt,mt.name):mt.name,wt))}else{l=Qr;const Ui=xt(mt);l=!1,nr(es,Xu);const xu=e1(es),We=V.get(xu);return V.delete(xu),co(To(mt,Ui,mt.name,We))}}case 263:{Ne=mt.name,Be=mt;const es=oe.createNodeArray(xt(mt)),Ui=Oc(mt,mt.typeParameters),xu=E2(mt);let We;if(xu){const an=s;We=uN(ea(xu.parameters,Un=>{if(!il(Un,16476)||li(Un))return;if(s=f4(Un),Un.name.kind===80)return al(oe.createPropertyDeclaration(xt(Un),Un.name,Un.questionToken,ho(Un,Un.type),so(Un)),Un);return rr(Un.name);function rr(mi){let Ji;for(const zo of mi.elements)t0(zo)||(ld(zo.name)&&(Ji=Hi(Ji,rr(zo.name))),Ji=Ji||[],Ji.push(oe.createPropertyDeclaration(xt(Un),zo.name,void 0,ho(zo,void 0),void 0)));return Ji}})),s=an}const wt=gt(mt.members,an=>!!an.name&&Gu(an.name))?[oe.createPropertyDeclaration(void 0,oe.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,$e=Hi(Hi(wt,We),Fa(mt.members,$a,Mv)),Zt=oe.createNodeArray($e),xe=hA(mt);if(xe&&!Uh(xe.expression)&&xe.expression.kind!==106){const an=mt.name?lf(mt.name.escapedText):"default",Un=oe.createUniqueName(`${an}_base`,16);s=()=>({diagnosticMessage:w.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:xe,typeName:mt.name});const rr=oe.createVariableDeclaration(Un,void 0,ke.createTypeOfExpression(xe.expression,mt,mF,ue),void 0),mi=oe.createVariableStatement(l?[oe.createModifier(138)]:[],oe.createVariableDeclarationList([rr],2)),Ji=oe.createNodeArray(Vn(mt.heritageClauses,zo=>{if(zo.token===96){const Ca=s;s=f4(zo.types[0]);const Qa=oe.updateHeritageClause(zo,Vn(zo.types,Ks=>oe.updateExpressionWithTypeArguments(Ks,Un,Fa(Ks.typeArguments,$a,Uu))));return s=Ca,Qa}return oe.updateHeritageClause(zo,Fa(oe.createNodeArray(gi(zo.types,Ca=>Uh(Ca.expression)||Ca.expression.kind===106)),$a,WT))}));return[mi,co(oe.updateClassDeclaration(mt,es,mt.name,Ui,Ji,Zt))]}else{const an=qr(mt.heritageClauses);return co(oe.updateClassDeclaration(mt,es,mt.name,Ui,an,Zt))}}case 243:return co(sl(mt));case 266:return co(oe.updateEnumDeclaration(mt,oe.createNodeArray(xt(mt)),mt.name,oe.createNodeArray(Qo(mt.members,es=>{if(li(es))return;const Ui=ke.getConstantValue(es);return al(oe.updateEnumMember(es,es.name,Ui!==void 0?typeof Ui=="string"?oe.createStringLiteral(Ui):oe.createNumericLiteral(Ui):void 0),es)}))))}return ce.assertNever(mt,`Unhandled top-level node in declaration emit: ${ce.formatSyntaxKind(mt.kind)}`);function co(es){return _u(mt)&&(I=_r),Cn&&(s=oi),mt.kind===267&&(l=Qr),es===mt?es:(Be=void 0,Ne=void 0,es&&tc(al(es,mt),mt))}}function sl(mt){if(!Ot(mt.declarationList.declarations,ha))return;const _r=Fa(mt.declarationList.declarations,$a,ff);if(!Nt(_r))return;const Cn=oe.createNodeArray(xt(mt));let oi;return T9(mt.declarationList)||$2(mt.declarationList)?(oi=oe.createVariableDeclarationList(_r,2),tc(oi,mt.declarationList),vr(oi,mt.declarationList),Ry(oi,mt.declarationList)):oi=oe.updateVariableDeclarationList(mt.declarationList,_r),oe.updateVariableStatement(mt,Cn,oi)}function vc(mt){return Gf(Qo(mt.elements,_r=>er(_r)))}function er(mt){if(mt.kind!==232&&mt.name)return ha(mt)?ld(mt.name)?vc(mt.name):oe.createVariableDeclaration(mt.name,void 0,ho(mt,void 0),void 0):void 0}function Jr(mt){let _r;ee||(_r=s,s=Nme(mt)),Ne=mt.name,ce.assert(ke.isLateBound(Il(mt)));const oi=mt.name.expression;Ku(oi,I),ee||(s=_r),Ne=void 0}function li(mt){return!!Ft&&!!mt&&wme(mt,Ve)}function Ir(mt){return Ly(mt)||mh(mt)}function _o(mt){return gt(mt,Ir)}function xt(mt){const _r=tS(mt),Cn=Kn(mt);return _r===Cn?dE(mt.modifiers,oi=>to(oi,bd),bd):oe.createModifiersFromModifierFlags(Cn)}function Kn(mt){let _r=241147,Cn=l&&!yct(mt)?2:0;const oi=mt.parent.kind===312;return(!oi||m&&oi&&Wv(mt.parent))&&(_r^=2,Cn=0),S4e(mt,_r,Cn)}function gn(mt,_r){let Cn=Wae(mt);return!Cn&&mt!==_r.firstAccessor&&(Cn=Wae(_r.firstAccessor),s=f4(_r.firstAccessor)),!Cn&&_r.secondAccessor&&mt!==_r.secondAccessor&&(Cn=Wae(_r.secondAccessor),s=f4(_r.secondAccessor)),Cn}function qr(mt){return oe.createNodeArray(gi(Vn(mt,_r=>oe.updateHeritageClause(_r,Fa(oe.createNodeArray(gi(_r.types,Cn=>Uh(Cn.expression)||_r.token===96&&Cn.expression.kind===106)),$a,WT))),_r=>_r.types&&!!_r.types.length))}}function yct(t){return t.kind===264}function T4e(t,r,s,l){return t.createModifiersFromModifierFlags(S4e(r,s,l))}function S4e(t,r=258043,s=0){let l=tS(t)&r|s;return l&1024&&!(l&1)&&(l^=1),l&1024&&l&2&&(l^=2),l}function Wae(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function lxe(t){switch(t.kind){case 172:case 171:return!Ab(t,8);case 169:case 260:return!0}return!1}function vct(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 bct(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 mF,E4e=G({"src/compiler/transformers/declarations.ts"(){Ad(),bae(),mF=531469}});function Tct(t){switch(t){case 99:case 7:case 6:case 5:return Oae;case 4:return sxe;case 100:case 199:return ZHe;default:return Pme}}function x4e(t,r,s){return{scriptTransformers:Sct(t,r,s),declarationTransformers:BW(r)}}function Sct(t,r,s){if(s)return Zn;const l=iu(t),m=Zp(t),y=X9(t),T=[];return Oi(T,r&&Vn(r.before,Rme)),T.push(xme),t.experimentalDecorators&&T.push(jHe),VH(t)&&T.push(qHe),l<99&&T.push($He),!t.experimentalDecorators&&(l<99||!y)&&T.push(VHe),T.push(Ame),l<8&&T.push(JHe),l<7&&T.push(HHe),l<6&&T.push(exe),l<5&&T.push(Z2e),l<4&&T.push(UHe),l<3&&T.push(KHe),l<2&&(T.push(y4e),T.push(axe)),T.push(Tct(m)),l<1&&T.push(oxe),Oi(T,r&&Vn(r.after,Rme)),T}function BW(t){const r=[];return r.push(QN),Oi(r,t&&Vn(t.afterDeclarations,xct)),r}function Ect(t){return r=>XE(r)?t.transformBundle(r):t.transformSourceFile(r)}function tJe(t,r){return s=>{const l=t(s);return typeof l=="function"?r(s,l):Ect(l)}}function Rme(t){return tJe(t,Vx)}function xct(t){return tJe(t,(r,s)=>s)}function Bae(t,r){return r}function Mme(t,r,s){s(t,r)}function zae(t,r,s,l,m,y,T){var D,I;const W=new Array(363);let O,V,ee,te=0,oe=[],de=[],ue=[],Ne=[],Be=0,Ve=!1,pt=[],Le=0,ht,ke,_t=Bae,Dt=Mme,Ft=0;const it=[],Ye={factory:s,getCompilerOptions:()=>l,getEmitResolver:()=>t,getEmitHost:()=>r,getEmitHelperFactory:Pd(()=>vEe(Ye)),startLexicalEnvironment:Ut,suspendLexicalEnvironment:In,resumeLexicalEnvironment:gr,endLexicalEnvironment:Cr,setLexicalEnvironmentFlags:ei,getLexicalEnvironmentFlags:Gn,hoistVariableDeclaration:pn,hoistFunctionDeclaration:Or,addInitializationStatement:Xr,startBlockScope:Ur,endBlockScope:so,addBlockScopedVariable:ho,requestEmitHelper:di,readEmitHelpers:Nc,enableSubstitution:tt,enableEmitNotification:cr,isSubstitutionEnabled:Mn,isEmitNotificationEnabled:un,get onSubstituteNode(){return _t},set onSubstituteNode(ro){ce.assert(Ft<1,"Cannot modify transformation hooks after initialization has completed."),ce.assert(ro!==void 0,"Value must not be 'undefined'"),_t=ro},get onEmitNode(){return Dt},set onEmitNode(ro){ce.assert(Ft<1,"Cannot modify transformation hooks after initialization has completed."),ce.assert(ro!==void 0,"Value must not be 'undefined'"),Dt=ro},addDiagnostic(ro){it.push(ro)}};for(const ro of m)hEe(ns(Il(ro)));jf("beforeTransform");const ut=y.map(ro=>ro(Ye)),lt=ro=>{for(const Gs of ut)ro=Gs(ro);return ro};Ft=1;const zt=[];for(const ro of m)(D=tu)==null||D.push(tu.Phase.Emit,"transformNodes",ro.kind===312?{path:ro.path}:{kind:ro.kind,pos:ro.pos,end:ro.end}),zt.push((T?lt:Wt)(ro)),(I=tu)==null||I.pop();return Ft=2,jf("afterTransform"),dd("transformTime","beforeTransform","afterTransform"),{transformed:zt,substituteNode:kn,emitNodeWithNotification:on,isEmitNotificationEnabled:un,dispose:ha,diagnostics:it};function Wt(ro){return ro&&(!tl(ro)||!ro.isDeclarationFile)?lt(ro):ro}function tt(ro){ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),W[ro]|=1}function Mn(ro){return(W[ro.kind]&1)!==0&&(Tp(ro)&8)===0}function kn(ro,Gs){return ce.assert(Ft<3,"Cannot substitute a node after the result is disposed."),Gs&&Mn(Gs)&&_t(ro,Gs)||Gs}function cr(ro){ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),W[ro]|=2}function un(ro){return(W[ro.kind]&2)!==0||(Tp(ro)&4)!==0}function on(ro,Gs,Oc){ce.assert(Ft<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Gs&&(un(Gs)?Dt(ro,Gs,Oc):Oc(ro,Gs))}function pn(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed.");const Gs=Sa(s.createVariableDeclaration(ro),128);O?O.push(Gs):O=[Gs],te&1&&(te|=2)}function Or(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),Sa(ro,2097152),V?V.push(ro):V=[ro]}function Xr(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),Sa(ro,2097152),ee?ee.push(ro):ee=[ro]}function Ut(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is suspended."),oe[Be]=O,de[Be]=V,ue[Be]=ee,Ne[Be]=te,Be++,O=void 0,V=void 0,ee=void 0,te=0}function In(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is already suspended."),Ve=!0}function gr(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(Ve,"Lexical environment is not suspended."),Ve=!1}function Cr(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is suspended.");let ro;if(O||V||ee){if(V&&(ro=[...V]),O){const Gs=s.createVariableStatement(void 0,s.createVariableDeclarationList(O));Sa(Gs,2097152),ro?ro.push(Gs):ro=[Gs]}ee&&(ro?ro=[...ro,...ee]:ro=[...ee])}return Be--,O=oe[Be],V=de[Be],ee=ue[Be],te=Ne[Be],Be===0&&(oe=[],de=[],ue=[],Ne=[]),ro}function ei(ro,Gs){te=Gs?te|ro:te&~ro}function Gn(){return te}function Ur(){ce.assert(Ft>0,"Cannot start a block scope during initialization."),ce.assert(Ft<2,"Cannot start a block scope after transformation has completed."),pt[Le]=ht,Le++,ht=void 0}function so(){ce.assert(Ft>0,"Cannot end a block scope during initialization."),ce.assert(Ft<2,"Cannot end a block scope after transformation has completed.");const ro=gt(ht)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(ht.map(Gs=>s.createVariableDeclaration(Gs)),1))]:void 0;return Le--,ht=pt[Le],Le===0&&(pt=[]),ro}function ho(ro){ce.assert(Le>0,"Cannot add a block scoped variable outside of an iteration body."),(ht||(ht=[])).push(ro)}function di(ro){if(ce.assert(Ft>0,"Cannot modify the transformation context during initialization."),ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),ce.assert(!ro.scoped,"Cannot request a scoped emit helper."),ro.dependencies)for(const Gs of ro.dependencies)di(Gs);ke=ur(ke,ro)}function Nc(){ce.assert(Ft>0,"Cannot modify the transformation context during initialization."),ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed.");const ro=ke;return ke=void 0,ro}function ha(){if(Ft<3){for(const ro of m)hEe(ns(Il(ro)));O=void 0,oe=void 0,V=void 0,de=void 0,_t=void 0,Dt=void 0,ke=void 0,Ft=3}}}var uxe,I6,WQ=G({"src/compiler/transformer.ts"(){Ad(),NM(),uxe={scriptTransformers:Zn,declarationTransformers:Zn},I6={factory:be,getCompilerOptions:()=>({}),getEmitResolver:Na,getEmitHost:Na,getEmitHelperFactory:Na,startLexicalEnvironment:ku,resumeLexicalEnvironment:ku,suspendLexicalEnvironment:ku,endLexicalEnvironment:eE,setLexicalEnvironmentFlags:ku,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ku,hoistFunctionDeclaration:ku,addInitializationStatement:ku,startBlockScope:ku,endBlockScope:eE,addBlockScopedVariable:ku,requestEmitHelper:ku,readEmitHelpers:Na,enableSubstitution:ku,enableEmitNotification:ku,isSubstitutionEnabled:Na,isEmitNotificationEnabled:Na,onSubstituteNode:Bae,onEmitNode:Mme,addDiagnostic:ku}}});function BQ(t){return Pg(t,".tsbuildinfo")}function x$(t,r,s,l=!1,m,y){const T=ls(s)?s:dSe(t,s,l),D=t.getCompilerOptions();if(Kg(D)){const I=t.getPrependNodes();if(T.length||I.length){const W=be.createBundle(T,I),O=r(Gae(W,t,l),W);if(O)return O}}else{if(!m)for(const I of T){const W=r(Gae(I,t,l),I);if(W)return W}if(y){const I=ZN(D);if(I)return r({buildInfoPath:I},void 0)}}}function ZN(t){const r=t.configFilePath;if(!K9(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=Kg(t);let l;if(s)l=wg(s);else{if(!r)return;const m=wg(r);l=t.outDir?t.rootDir?gm(t.outDir,qp(t.rootDir,m,!0)):tf(t.outDir,Iy(m)):m}return l+".tsbuildinfo"}function sx(t,r){const s=Kg(t),l=t.emitDeclarationOnly?void 0:s,m=l&&fxe(l,t),y=r||gv(t)?wg(s)+".d.ts":void 0,T=y&&zH(t)?y+".map":void 0,D=ZN(t);return{jsFilePath:l,sourceMapFilePath:m,declarationFilePath:y,declarationMapPath:T,buildInfoPath:D}}function Gae(t,r,s){const l=r.getCompilerOptions();if(t.kind===313)return sx(l,s);{const m=Ng(t.fileName,r,zQ(t.fileName,l)),y=Py(t),T=y&&wM(t.fileName,m,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames())===0,D=l.emitDeclarationOnly||T?void 0:m,I=!D||Py(t)?void 0:fxe(D,l),W=s||gv(l)&&!y?Lie(t.fileName,r):void 0,O=W&&zH(l)?W+".map":void 0;return{jsFilePath:D,sourceMapFilePath:I,declarationFilePath:W,declarationMapPath:O,buildInfoPath:void 0}}}function fxe(t,r){return r.sourceMap&&!r.inlineSourceMap?t+".map":void 0}function zQ(t,r){return Pg(t,".json")?".json":r.jsx===1&&ws(t,[".jsx",".tsx"])?".jsx":ws(t,[".mts",".mjs"])?".mjs":ws(t,[".cts",".cjs"])?".cjs":".js"}function PR(t,r,s,l,m){return l?gm(l,qp(m?m():GQ(r,s),t,s)):t}function O3(t,r,s,l){return SA(PR(t,r,s,r.options.declarationDir||r.options.outDir,l),JL(t))}function A$(t,r,s,l){if(r.options.emitDeclarationOnly)return;const m=Pg(t,".json"),y=SA(PR(t,r,s,r.options.outDir,l),zQ(t,r.options));return!m||wM(t,y,ce.checkDefined(r.options.configFilePath),s)!==0?y:void 0}function A4e(){let t;return{addOutput:r,getOutputs:s};function r(l){l&&(t||(t=[])).push(l)}function s(){return t||Zn}}function jae(t,r){const{jsFilePath:s,sourceMapFilePath:l,declarationFilePath:m,declarationMapPath:y,buildInfoPath:T}=sx(t.options,!1);r(s),r(l),r(m),r(y),r(T)}function C4e(t,r,s,l,m){if(iT(r))return;const y=A$(r,t,s,m);if(l(y),!Pg(r,".json")&&(y&&t.options.sourceMap&&l(`${y}.map`),gv(t.options))){const T=O3(r,t,s,m);l(T),t.options.declarationMap&&l(`${T}.map`)}}function gF(t,r,s,l,m){let y;return t.rootDir?(y=Su(t.rootDir,s),m==null||m(t.rootDir)):t.composite&&t.configFilePath?(y=qc(hf(t.configFilePath)),m==null||m(y)):y=Ume(r(),s,l),y&&y[y.length-1]!==q&&(y+=q),y}function GQ({options:t,fileNames:r},s){return gF(t,()=>gi(r,l=>!(t.noEmitForJsFiles&&ws(l,iJ))&&!iT(l)),qc(hf(ce.checkDefined(t.configFilePath))),_v(!s))}function Lme(t,r){const{addOutput:s,getOutputs:l}=A4e();if(Kg(t.options))jae(t,s);else{const m=Pd(()=>GQ(t,r));for(const y of t.fileNames)C4e(t,y,r,s,m);s(ZN(t.options))}return l()}function nJe(t,r,s){r=Fd(r),ce.assert(ni(t.fileNames,r),"Expected fileName to be present in command line");const{addOutput:l,getOutputs:m}=A4e();return Kg(t.options)?jae(t,l):C4e(t,r,s,l),m()}function _xe(t,r){if(Kg(t.options)){const{jsFilePath:m,declarationFilePath:y}=sx(t.options,!1);return ce.checkDefined(m||y,`project ${t.options.configFilePath} expected to have at least one output`)}const s=Pd(()=>GQ(t,r));for(const m of t.fileNames){if(iT(m))continue;const y=A$(m,t,r,s);if(y)return y;if(!Pg(m,".json")&&gv(t.options))return O3(m,t,r,s)}const l=ZN(t.options);return l||ce.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function zW(t,r,s,{scriptTransformers:l,declarationTransformers:m},y,T,D){var I=r.getCompilerOptions(),W=I.sourceMap||I.inlineSourceMap||zH(I)?[]:void 0,O=I.listEmittedFiles?[]:void 0,V=vY(),ee=JE(I),te=wie(ee),{enter:oe,exit:de}=qne("printTime","beforePrint","afterPrint"),ue,Ne=!1;return oe(),x$(r,Be,dSe(r,s,D),D,T,!s),de(),{emitSkipped:Ne,diagnostics:V.getDiagnostics(),emittedFiles:O,sourceMaps:W};function Be({jsFilePath:Ye,sourceMapFilePath:ut,declarationFilePath:lt,declarationMapPath:zt,buildInfoPath:Wt},tt){var Mn,kn,cr,un,on,pn;let Or;Wt&&tt&&XE(tt)&&(Or=qc(Su(Wt,r.getCurrentDirectory())),ue={commonSourceDirectory:Xr(r.getCommonSourceDirectory()),sourceFiles:tt.sourceFiles.map(Ut=>Xr(Su(Ut.fileName,r.getCurrentDirectory())))}),(Mn=tu)==null||Mn.push(tu.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ye}),pt(tt,Ye,ut,Xr),(kn=tu)==null||kn.pop(),(cr=tu)==null||cr.push(tu.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:lt}),Le(tt,lt,zt,Xr),(un=tu)==null||un.pop(),(on=tu)==null||on.push(tu.Phase.Emit,"emitBuildInfo",{buildInfoPath:Wt}),Ve(ue,Wt),(pn=tu)==null||pn.pop(),!Ne&&O&&(y||(Ye&&O.push(Ye),ut&&O.push(ut),Wt&&O.push(Wt)),y!==0&&(lt&&O.push(lt),zt&&O.push(zt)));function Xr(Ut){return OE(qp(Or,Ut,r.getCanonicalFileName))}}function Ve(Ye,ut){if(!ut||s||Ne)return;if(r.isEmitBlocked(ut)){Ne=!0;return}const lt=r.getBuildInfo(Ye)||hF(void 0,Ye);sC(r,V,ut,Vae(lt),!1,void 0,{buildInfo:lt})}function pt(Ye,ut,lt,zt){if(!Ye||y||!ut)return;if(r.isEmitBlocked(ut)||I.noEmit){Ne=!0;return}const Wt=zae(t,r,be,I,[Ye],l,!1),tt={removeComments:I.removeComments,newLine:I.newLine,noEmitHelpers:I.noEmitHelpers,module:I.module,target:I.target,sourceMap:I.sourceMap,inlineSourceMap:I.inlineSourceMap,inlineSources:I.inlineSources,extendedDiagnostics:I.extendedDiagnostics,writeBundleFileInfo:!!ue,relativeToBuildInfo:zt},Mn=_4(tt,{hasGlobalName:t.hasGlobalName,onEmitNode:Wt.emitNodeWithNotification,isEmitNotificationEnabled:Wt.isEmitNotificationEnabled,substituteNode:Wt.substituteNode});ce.assert(Wt.transformed.length===1,"Should only see one output from the transform"),ke(ut,lt,Wt,Mn,I),Wt.dispose(),ue&&(ue.js=Mn.bundleFileInfo)}function Le(Ye,ut,lt,zt){if(!Ye||y===0)return;if(!ut){(y||I.emitDeclarationOnly)&&(Ne=!0);return}const Wt=tl(Ye)?[Ye]:Ye.sourceFiles,tt=D?Wt:gi(Wt,xie),Mn=Kg(I)?[be.createBundle(tt,tl(Ye)?void 0:Ye.prepends)]:tt;y&&!gv(I)&&tt.forEach(ht);const kn=zae(t,r,be,I,Mn,m,!1);if(Nt(kn.diagnostics))for(const pn of kn.diagnostics)V.add(pn);const cr={removeComments:I.removeComments,newLine:I.newLine,noEmitHelpers:!0,module:I.module,target:I.target,sourceMap:!D&&I.declarationMap,inlineSourceMap:I.inlineSourceMap,extendedDiagnostics:I.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!ue,recordInternalSection:!!ue,relativeToBuildInfo:zt},un=_4(cr,{hasGlobalName:t.hasGlobalName,onEmitNode:kn.emitNodeWithNotification,isEmitNotificationEnabled:kn.isEmitNotificationEnabled,substituteNode:kn.substituteNode}),on=!!kn.diagnostics&&!!kn.diagnostics.length||!!r.isEmitBlocked(ut)||!!I.noEmit;Ne=Ne||on,(!on||D)&&(ce.assert(kn.transformed.length===1,"Should only see one output from the decl transform"),ke(ut,lt,kn,un,{sourceMap:cr.sourceMap,sourceRoot:I.sourceRoot,mapRoot:I.mapRoot,extendedDiagnostics:I.extendedDiagnostics})),kn.dispose(),ue&&(ue.dts=un.bundleFileInfo)}function ht(Ye){if(Ly(Ye)){Ye.expression.kind===80&&t.collectLinkedAliases(Ye.expression,!0);return}else if(Oy(Ye)){t.collectLinkedAliases(Ye.propertyName||Ye.name,!0);return}B_(Ye,ht)}function ke(Ye,ut,lt,zt,Wt){const tt=lt.transformed[0],Mn=tt.kind===313?tt:void 0,kn=tt.kind===312?tt:void 0,cr=Mn?Mn.sourceFiles:[kn];let un;_t(Wt,tt)&&(un=NQ(r,Iy(hf(Ye)),Dt(Wt),Ft(Wt,Ye,kn),Wt)),Mn?zt.writeBundle(Mn,te,un):zt.writeFile(kn,te,un);let on;if(un){W&&W.push({inputSourceFileNames:un.getSources(),sourceMap:un.toJSON()});const Or=it(Wt,un,Ye,ut,kn);if(Or&&(te.isAtStartOfLine()||te.rawWrite(ee),on=te.getTextPos(),te.writeComment(`//# sourceMappingURL=${Or}`)),ut){const Xr=un.toString();sC(r,V,ut,Xr,!1,cr),zt.bundleFileInfo&&(zt.bundleFileInfo.mapHash=bF(Xr,r))}}else te.writeLine();const pn=te.getText();sC(r,V,Ye,pn,!!I.emitBOM,cr,{sourceMapUrlPos:on,diagnostics:lt.diagnostics}),zt.bundleFileInfo&&(zt.bundleFileInfo.hash=bF(pn,r)),te.clear()}function _t(Ye,ut){return(Ye.sourceMap||Ye.inlineSourceMap)&&(ut.kind!==312||!Pg(ut.fileName,".json"))}function Dt(Ye){const ut=hf(Ye.sourceRoot||"");return ut&&Rv(ut)}function Ft(Ye,ut,lt){if(Ye.sourceRoot)return r.getCommonSourceDirectory();if(Ye.mapRoot){let zt=hf(Ye.mapRoot);return lt&&(zt=qc(j9(lt.fileName,r,zt))),vN(zt)===0&&(zt=tf(r.getCommonSourceDirectory(),zt)),zt}return qc(Fd(ut))}function it(Ye,ut,lt,zt,Wt){if(Ye.inlineSourceMap){const Mn=ut.toString();return`data:application/json;base64,${TSe(m0,Mn)}`}const tt=Iy(hf(ce.checkDefined(zt)));if(Ye.mapRoot){let Mn=hf(Ye.mapRoot);return Wt&&(Mn=qc(j9(Wt.fileName,r,Mn))),vN(Mn)===0?(Mn=tf(r.getCommonSourceDirectory(),Mn),encodeURI(Fz(qc(Fd(lt)),tf(Mn,tt),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(tf(Mn,tt))}return encodeURI(tt)}}function hF(t,r){return{bundle:r,program:t,version:At}}function Vae(t){return JSON.stringify(t)}function Ome(t,r){return Uie(t,r)}function dxe(t,r,s){var l;const m=ce.checkDefined(t.js),y=((l=m.sources)==null?void 0:l.prologues)&&QT(m.sources.prologues,T=>T.file);return t.sourceFiles.map((T,D)=>{const I=y==null?void 0:y.get(D),W=I==null?void 0:I.directives.map(ee=>{const te=vr(be.createStringLiteral(ee.expression.text),ee.expression),oe=vr(be.createExpressionStatement(te),ee);return kl(te,oe),oe}),O=be.createToken(1),V=be.createSourceFile(W??[],O,0);return V.fileName=qp(s.getCurrentDirectory(),Su(T,r),!s.useCaseSensitiveFileNames()),V.text=(I==null?void 0:I.text)??"",f3(V,0,(I==null?void 0:I.text.length)??0),u6(V.statements,V),f3(O,V.end,0),kl(O,V),V})}function Uae(t,r,s,l){var m,y;(m=tu)==null||m.push(tu.Phase.Emit,"emitUsingBuildInfo",{},!0),jf("beforeEmit");const T=Hae(t,r,s,l);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),(y=tu)==null||y.pop(),T}function Hae(t,r,s,l){const{buildInfoPath:m,jsFilePath:y,sourceMapFilePath:T,declarationFilePath:D,declarationMapPath:I}=sx(t.options,!1),W=r.getBuildInfo(m,t.options.configFilePath);if(!W||!W.bundle||!W.bundle.js||D&&!W.bundle.dts)return m;const O=r.readFile(ce.checkDefined(y));if(!O||bF(O,r)!==W.bundle.js.hash)return y;const V=T&&r.readFile(T);if(T&&!V||t.options.inlineSourceMap)return T||"inline sourcemap decoding";if(T&&bF(V,r)!==W.bundle.js.mapHash)return T;const ee=D&&r.readFile(D);if(D&&!ee||D&&bF(ee,r)!==W.bundle.dts.hash)return D;const te=I&&r.readFile(I);if(I&&!te||t.options.inlineSourceMap)return I||"inline sourcemap decoding";if(I&&bF(te,r)!==W.bundle.dts.mapHash)return I;const oe=qc(Su(m,r.getCurrentDirectory())),de=T6e(y,O,T,V,D,ee,I,te,m,W,!0),ue=[],Ne=YQ(t.projectReferences,s,ht=>r.readFile(ht),r),Be=dxe(W.bundle,oe,r);let Ve,pt;const Le={getPrependNodes:Pd(()=>[...Ne,de]),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:()=>Su(W.bundle.commonSourceDirectory,oe),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>r.getCurrentDirectory(),getSourceFile:eE,getSourceFileByPath:eE,getSourceFiles:()=>Be,getLibFileFromReference:Na,isSourceFileFromExternalLibrary:bg,getResolvedProjectReferenceToRedirect:eE,getProjectReferenceRedirect:eE,isSourceOfProjectReferenceRedirect:bg,writeFile:(ht,ke,_t,Dt,Ft,it)=>{switch(ht){case y:if(O===ke)return;break;case T:if(V===ke)return;break;case m:break;case D:if(ee===ke)return;Ve=ke,pt=it;break;case I:if(te===ke)return;break;default:ce.fail(`Unexpected path: ${ht}`)}ue.push({name:ht,text:ke,writeByteOrderMark:_t,data:it})},isEmitBlocked:bg,readFile:ht=>r.readFile(ht),fileExists:ht=>r.fileExists(ht),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames(),getBuildInfo:ht=>{const ke=W.program;ke&&Ve!==void 0&&t.options.composite&&(ke.outSignature=bF(Ve,r,pt));const{js:_t,dts:Dt,sourceFiles:Ft}=W.bundle;return ht.js.sources=_t.sources,Dt&&(ht.dts.sources=Dt.sources),ht.sourceFiles=Ft,hF(ke,ht)},getSourceFileFromReference:eE,redirectTargetsMap:zg(),getFileIncludeReasons:Na,createHash:wc(r,r.createHash)};return zW(pxe,Le,void 0,x4e(t.options,l)),ue}function _4(t={},r={}){var{hasGlobalName:s,onEmitNode:l=Mme,isEmitNotificationEnabled:m,substituteNode:y=Bae,onBeforeEmitNode:T,onAfterEmitNode:D,onBeforeEmitNodeArray:I,onAfterEmitNodeArray:W,onBeforeEmitToken:O,onAfterEmitToken:V}=r,ee=!!t.extendedDiagnostics,te=JE(t),oe=Zp(t),de=new Map,ue,Ne,Be,Ve,pt,Le,ht,ke,_t,Dt,Ft,it,Ye,ut,lt,zt=t.preserveSourceNewlines,Wt,tt,Mn,kn=bE,cr,un=t.writeBundleFileInfo?{sections:[]}:void 0,on=un?ce.checkDefined(t.relativeToBuildInfo):void 0,pn=t.recordInternalSection,Or=0,Xr="text",Ut=!0,In,gr,Cr=-1,ei,Gn=-1,Ur=-1,so=-1,ho=-1,di,Nc,ha=!1,ro=!!t.removeComments,Gs,Oc,{enter:_u,exit:Ku}=yTe(ee,"commentTime","beforeComment","afterComment"),al=be.parenthesizer,Rr={select:Q=>Q===0?al.parenthesizeLeadingTypeArgument:void 0},mc=Gv();return mt(),{printNode:Ea,printList:Fi,printFile:$a,printBundle:ta,writeNode:Xu,writeList:Lo,writeFile:Ir,writeBundle:Jr,bundleFileInfo:un};function Ea(Q,ft,br){switch(Q){case 0:ce.assert(tl(ft),"Expected a SourceFile node.");break;case 2:ce.assert(An(ft),"Expected an Identifier node.");break;case 1:ce.assert(Nr(ft),"Expected an Expression node.");break}switch(ft.kind){case 312:return $a(ft);case 313:return ta(ft);case 314:return jc(ft)}return Xu(Q,ft,br,_o()),xt()}function Fi(Q,ft,br){return Lo(Q,ft,br,_o()),xt()}function ta(Q){return Jr(Q,_o(),void 0),xt()}function $a(Q){return Ir(Q,_o(),void 0),xt()}function jc(Q){return li(Q,_o()),xt()}function Xu(Q,ft,br,oo){const Js=tt;qr(oo,void 0),Kn(Q,ft,br),mt(),tt=Js}function Lo(Q,ft,br,oo){const Js=tt;qr(oo,void 0),br&&gn(br),pl(void 0,ft,Q),mt(),tt=Js}function To(){return tt.getTextPosWithWriteLine?tt.getTextPosWithWriteLine():tt.getTextPos()}function Aa(Q,ft,br){const oo=Yf(un.sections);oo&&oo.kind===br?oo.end=ft:un.sections.push({pos:Q,end:ft,kind:br})}function sl(Q){if(pn&&un&&ue&&(dl(Q)||Dh(Q))&&wme(Q,ue)&&Xr!=="internal"){const ft=Xr;return er(tt.getTextPos()),Or=To(),Xr="internal",ft}}function vc(Q){Q&&(er(tt.getTextPos()),Or=To(),Xr=Q)}function er(Q){return Orce.assert(NSe(L_))),un.sections.push({pos:pu,end:tt.getTextPos(),kind:"prepend",data:on(Js.fileName),texts:ju}))}}Or=To();for(const Js of Q.sourceFiles)Kn(0,Js,Js);if(un&&Q.sourceFiles.length){const Js=tt.getTextPos();if(er(Js)){const pu=Ro(Q);pu&&(un.sources||(un.sources={}),un.sources.prologues=pu);const fl=mi(Q);fl&&(un.sources||(un.sources={}),un.sources.helpers=fl)}}mt(),tt=oo}function li(Q,ft){const br=tt;qr(ft,void 0),Kn(4,Q,void 0),mt(),tt=br}function Ir(Q,ft,br){cr=!0;const oo=tt;qr(ft,br),Ts(Q),vo(Q),Kn(0,Q,Q),mt(),tt=oo}function _o(){return Mn||(Mn=wie(te))}function xt(){const Q=Mn.getText();return Mn.clear(),Q}function Kn(Q,ft,br){br&&gn(br),xu(Q,ft,void 0)}function gn(Q){ue=Q,di=void 0,Nc=void 0,Q&&Vs(Q)}function qr(Q,ft){Q&&t.omitTrailingSemicolon&&(Q=Rde(Q)),tt=Q,In=ft,Ut=!tt||!In}function mt(){Ne=[],Be=[],Ve=[],pt=new Set,Le=[],ht=new Map,ke=[],_t=0,Dt=[],Ft=0,it=[],Ye=void 0,ut=[],lt=void 0,ue=void 0,di=void 0,Nc=void 0,qr(void 0,void 0)}function _r(){return di||(di=q1(ce.checkDefined(ue)))}function Cn(Q,ft){if(Q===void 0)return;const br=sl(Q);xu(4,Q,ft),vc(br)}function oi(Q){Q!==void 0&&xu(2,Q,void 0)}function Qr(Q,ft){Q!==void 0&&xu(1,Q,ft)}function co(Q){xu(Wp(Q)?6:4,Q)}function es(Q){zt&&dh(Q)&4&&(zt=!1)}function Ui(Q){zt=Q}function xu(Q,ft,br){Oc=br,wt(0,Q,ft)(Q,ft),Oc=void 0}function We(Q){return!ro&&!tl(Q)}function Re(Q){return!Ut&&!tl(Q)&&!Cde(Q)&&!xA(Q)&&!A3(Q)}function wt(Q,ft,br){switch(Q){case 0:if(l!==Mme&&(!m||m(br)))return Zt;case 1:if(y!==Bae&&(Gs=y(ft,br)||br)!==br)return Oc&&(Gs=Oc(Gs)),rr;case 2:if(We(br))return vi;case 3:if(Re(br))return yo;case 4:return xe;default:return ce.assertNever(Q)}}function $e(Q,ft,br){return wt(Q+1,ft,br)}function Zt(Q,ft){const br=$e(0,Q,ft);l(Q,ft,br)}function xe(Q,ft){if(T==null||T(ft),zt){const br=zt;es(ft),an(Q,ft),Ui(br)}else an(Q,ft);D==null||D(ft),Oc=void 0}function an(Q,ft,br=!0){if(br){const oo=yEe(ft);if(oo)return z_(Q,ft,oo)}if(Q===0)return kt(uc(ft,tl));if(Q===2)return mu(uc(ft,An));if(Q===6)return Qa(uc(ft,Wp),!0);if(Q===3)return Un(uc(ft,Hh));if(Q===5)return ce.assertNode(ft,spe),y_(!0);if(Q===4){switch(ft.kind){case 16:case 17:case 18:return Qa(ft,!1);case 80:return mu(ft);case 81:return x_(ft);case 166:return q_(ft);case 167:return U0(ft);case 168:return c_(ft);case 169:return Kd(ft);case 170:return iy(ft);case 171:return Oh(ft);case 172:return jg(ft);case 173:return zv(ft);case 174:return m_(ft);case 175:return Yu(ft);case 176:return Tv(ft);case 177:case 178:return Kh(ft);case 179:return uS(ft);case 180:return H0(ft);case 181:return fx(ft);case 182:return lm(ft);case 183:return nm(ft);case 184:return po(ft);case 185:return oh(ft);case 186:return yy(ft);case 187:return _e(ft);case 188:return vn(ft);case 189:return hi(ft);case 190:return Zc(ft);case 192:return ka(ft);case 193:return bc(ft);case 194:return gu(ft);case 195:return yu(ft);case 196:return Xm(ft);case 233:return MA(ft);case 197:return Lg();case 198:return av(ft);case 199:return Fh(ft);case 200:return J0(ft);case 201:return Eg(ft);case 202:return pa(ft);case 203:return Sv(ft);case 204:return rd(ft);case 205:return jT(ft);case 206:return Ev(ft);case 207:return S0(ft);case 208:return k1(ft);case 239:return Mi(ft);case 240:return Mg();case 241:return js(ft);case 243:return $l(ft);case 242:return y_(!1);case 244:return l_(ft);case 245:return Ph(ft);case 246:return Mb(ft);case 247:return _x(ft);case 248:return _S(ft);case 249:return e(ft);case 250:return n(ft);case 251:return c(ft);case 252:return u(ft);case 253:return k(ft);case 254:return F(ft);case 255:return $(ft);case 256:return J(ft);case 257:return X(ft);case 258:return ie(ft);case 259:return ae(ft);case 260:return ve(ft);case 261:return we(ft);case 262:return Fe(ft);case 263:return Ze(ft);case 264:return st(ft);case 265:return It(ft);case 266:return Yt(ft);case 267:return Et(ft);case 268:return at(ft);case 269:return Qt(ft);case 270:return Vr(ft);case 271:return nn(ft);case 272:return cn(ft);case 273:return qt(ft);case 274:return Kt(ft);case 280:return Pn(ft);case 275:return wr(ft);case 276:return Wr(ft);case 277:return jt(ft);case 278:return En(ft);case 279:return Fr(ft);case 281:return Ki(ft);case 300:return fr(ft);case 301:return Tr(ft);case 282:return;case 283:return os(ft);case 12:return Wl(ft);case 286:case 289:return gc(ft);case 287:case 290:return Jc(ft);case 291:return qn(ft);case 292:return au(ft);case 293:return za(ft);case 294:return _a(ft);case 295:return us(ft);case 296:return Qu(ft);case 297:return Cu(ft);case 298:return w_(ft);case 299:return Eu(ft);case 303:return He(ft);case 304:return Hn(ft);case 305:return dr(ft);case 306:return Mr(ft);case 307:return vs(ft);case 314:case 308:return Ks(ft);case 309:case 310:return ou(ft);case 311:return qd(ft);case 312:return kt(ft);case 313:return ce.fail("Bundles should be printed using printBundle");case 315:return ce.fail("InputFiles should not be printed");case 316:return Ce(ft);case 317:return Wn(ft);case 319:return qo("*");case 320:return qo("?");case 321:return fS(ft);case 322:return GT(ft);case 323:return vE(ft);case 324:return hy(ft);case 191:case 325:return Qn(ft);case 326:return;case 327:return Pr(ft);case 329:return yi(ft);case 330:return go(ft);case 334:case 339:case 344:return Sr(ft);case 335:case 336:return $r(ft);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ei(ft);case 346:return Ln(ft);case 348:case 355:return Ao(ft);case 347:case 349:case 350:case 351:case 356:case 357:return Bt(ft);case 352:return Ge(ft);case 353:return Br(ft);case 354:return ln(ft);case 359:return}if(Nr(ft)&&(Q=1,y!==Bae)){const oo=y(Q,ft)||ft;oo!==ft&&(ft=oo,Oc&&(ft=Oc(ft)))}}if(Q===1)switch(ft.kind){case 9:case 10:return Ca(ft);case 11:case 14:case 15:return Qa(ft,!1);case 80:return mu(ft);case 81:return x_(ft);case 209:return tn(ft);case 210:return fi(ft);case 211:return ya(ft);case 212:return K_(ft);case 213:return ig(ft);case 214:return Fy(ft);case 215:return bt(ft);case 216:return ir(ft);case 217:return ii(ft);case 218:return Si(ft);case 219:return Do(ft);case 220:return Qc(ft);case 221:return Al(ft);case 222:return du(ft);case 223:return N_(ft);case 224:return zp(ft);case 225:return Wh(ft);case 226:return mc(ft);case 227:return jv(ft);case 228:return vy(ft);case 229:return ub(ft);case 230:return E0(ft);case 231:return P2(ft);case 232:return;case 234:return aw(ft);case 235:return DI(ft);case 233:return MA(ft);case 238:return Me(ft);case 236:return jn(ft);case 237:return ce.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Mo(ft);case 285:return $i(ft);case 288:return ki(ft);case 358:return ce.fail("SyntaxList should not be printed");case 359:return;case 360:return Jn(ft);case 361:return Nn(ft);case 362:return ce.fail("SyntheticReferenceExpression should not be printed")}if(sE(ft.kind))return _i(ft,Ka);if(Zre(ft.kind))return _i(ft,qo);ce.fail(`Unhandled SyntaxKind: ${ce.formatSyntaxKind(ft.kind)}.`)}function Un(Q){Cn(Q.name),va(),Ka("in"),va(),Cn(Q.constraint)}function rr(Q,ft){const br=$e(1,Q,ft);ce.assertIsDefined(Gs),ft=Gs,Gs=void 0,br(Q,ft)}function mi(Q){let ft;if(oe===0||t.noEmitHelpers)return;const br=new Map;for(const oo of Q.sourceFiles){const Js=BG(oo)!==void 0,pu=zo(oo);if(pu)for(const fl of pu)!fl.scoped&&!Js&&!br.get(fl.name)&&(br.set(fl.name,!0),(ft||(ft=[])).push(fl.name))}return ft}function Ji(Q){let ft=!1;const br=Q.kind===313?Q:void 0;if(br&&oe===0)return;const oo=br?br.prepends.length:0,Js=br?br.sourceFiles.length+oo:1;for(let pu=0;pu"),va(),Cn(Q.type),ci(Q)}function hy(Q){Ka("function"),Cp(Q,Q.parameters),qo(":"),Cn(Q.type)}function fS(Q){qo("?"),Cn(Q.type)}function GT(Q){qo("!"),Cn(Q.type)}function vE(Q){Cn(Q.type),qo("=")}function oh(Q){Jt(Q),hc(Q,Q.modifiers),Ka("new"),va(),mf(Q,Q.typeParameters),Cp(Q,Q.parameters),va(),qo("=>"),va(),Cn(Q.type),ci(Q)}function yy(Q){Ka("typeof"),va(),Cn(Q.exprName),Ym(Q,Q.typeArguments)}function _e(Q){Hu(0,void 0),qo("{");const ft=Tp(Q)&1?768:32897;pl(Q,Q.members,ft|524288),qo("}"),t_()}function vn(Q){Cn(Q.elementType,al.parenthesizeNonArrayTypeOfPostfixType),qo("["),qo("]")}function Qn(Q){qo("..."),Cn(Q.type)}function hi(Q){d(23,Q.pos,qo,Q);const ft=Tp(Q)&1?528:657;pl(Q,Q.elements,ft|524288,al.parenthesizeElementTypeOfTupleType),d(24,Q.elements.end,qo,Q)}function pa(Q){Cn(Q.dotDotDotToken),Cn(Q.name),Cn(Q.questionToken),d(59,Q.name.end,qo,Q),va(),Cn(Q.type)}function Zc(Q){Cn(Q.type,al.parenthesizeTypeOfOptionalType),qo("?")}function ka(Q){pl(Q,Q.types,516,al.parenthesizeConstituentTypeOfUnionType)}function bc(Q){pl(Q,Q.types,520,al.parenthesizeConstituentTypeOfIntersectionType)}function gu(Q){Cn(Q.checkType,al.parenthesizeCheckTypeOfConditionalType),va(),Ka("extends"),va(),Cn(Q.extendsType,al.parenthesizeExtendsTypeOfConditionalType),va(),qo("?"),va(),Cn(Q.trueType),va(),qo(":"),va(),Cn(Q.falseType)}function yu(Q){Ka("infer"),va(),Cn(Q.typeParameter)}function Xm(Q){qo("("),Cn(Q.type),qo(")")}function Lg(){Ka("this")}function av(Q){$o(Q.operator,Ka),va();const ft=Q.operator===148?al.parenthesizeOperandOfReadonlyTypeOperator:al.parenthesizeOperandOfTypeOperator;Cn(Q.type,ft)}function Fh(Q){Cn(Q.objectType,al.parenthesizeNonArrayTypeOfPostfixType),qo("["),Cn(Q.indexType),qo("]")}function J0(Q){const ft=Tp(Q);qo("{"),ft&1?va():(Md(),fe()),Q.readonlyToken&&(Cn(Q.readonlyToken),Q.readonlyToken.kind!==148&&Ka("readonly"),va()),qo("["),xu(3,Q.typeParameter),Q.nameType&&(va(),Ka("as"),va(),Cn(Q.nameType)),qo("]"),Q.questionToken&&(Cn(Q.questionToken),Q.questionToken.kind!==58&&qo("?")),qo(":"),va(),Cn(Q.type),d_(),ft&1?va():(Md(),_n()),pl(Q,Q.members,2),qo("}")}function Eg(Q){Qr(Q.literal)}function Sv(Q){Cn(Q.head),pl(Q,Q.templateSpans,262144)}function jT(Q){if(Q.isTypeOf&&(Ka("typeof"),va()),Ka("import"),qo("("),Cn(Q.argument),Q.assertions){qo(","),va(),qo("{"),va(),Ka("assert"),qo(":"),va();const ft=Q.assertions.assertClause.elements;pl(Q.assertions.assertClause,ft,526226),va(),qo("}")}qo(")"),Q.qualifier&&(qo("."),Cn(Q.qualifier)),Ym(Q,Q.typeArguments)}function Ev(Q){qo("{"),pl(Q,Q.elements,525136),qo("}")}function S0(Q){qo("["),pl(Q,Q.elements,524880),qo("]")}function k1(Q){Cn(Q.dotDotDotToken),Q.propertyName&&(Cn(Q.propertyName),qo(":"),va()),Cn(Q.name),Tc(Q.initializer,Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function tn(Q){const ft=Q.elements,br=Q.multiLine?65536:0;R_(Q,ft,8914|br,al.parenthesizeExpressionForDisallowedComma)}function fi(Q){Hu(0,void 0),Ot(Q.properties,Dg);const ft=Tp(Q)&131072;ft&&fe();const br=Q.multiLine?65536:0,oo=ue&&ue.languageVersion>=1&&!Py(ue)?64:0;pl(Q,Q.properties,526226|oo|br),ft&&_n(),t_()}function ya(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess);const ft=Q.questionDotToken||T1(be.createToken(25),Q.expression.end,Q.name.pos),br=Cg(Q,Q.expression,ft),oo=Cg(Q,ft,Q.name);Fs(br,!1),ft.kind!==29&&bu(Q.expression)&&!tt.hasTrailingComment()&&!tt.hasTrailingWhitespace()&&qo("."),Q.questionDotToken?Cn(ft):d(ft.kind,Q.expression.end,qo,Q),Fs(oo,!1),Cn(Q.name),Tl(br,oo)}function bu(Q){if(Q=pA(Q),nS(Q)){const ft=sg(Q,!0,!1);return!(Q.numericLiteralFlags&448)&&!Ub(ft,Nd(25))&&!Ub(ft,"E")&&!Ub(ft,"e")}else if(Kf(Q)){const ft=cW(Q);return typeof ft=="number"&&isFinite(ft)&&ft>=0&&Math.floor(ft)===ft}}function K_(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Cn(Q.questionDotToken),d(23,Q.expression.end,qo,Q),Qr(Q.argumentExpression),d(24,Q.argumentExpression.end,qo,Q)}function ig(Q){const ft=dh(Q)&16;ft&&(qo("("),M_("0"),qo(","),va()),Qr(Q.expression,al.parenthesizeLeftSideOfAccess),ft&&qo(")"),Cn(Q.questionDotToken),Ym(Q,Q.typeArguments),R_(Q,Q.arguments,2576,al.parenthesizeExpressionForDisallowedComma)}function Fy(Q){d(105,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeExpressionOfNew),Ym(Q,Q.typeArguments),R_(Q,Q.arguments,18960,al.parenthesizeExpressionForDisallowedComma)}function bt(Q){const ft=dh(Q)&16;ft&&(qo("("),M_("0"),qo(","),va()),Qr(Q.tag,al.parenthesizeLeftSideOfAccess),ft&&qo(")"),Ym(Q,Q.typeArguments),va(),Qr(Q.template)}function ir(Q){qo("<"),Cn(Q.type),qo(">"),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function ii(Q){const ft=d(21,Q.pos,qo,Q),br=bm(Q.expression,Q);Qr(Q.expression,void 0),ay(Q.expression,Q),Tl(br),d(22,Q.expression?Q.expression.end:ft,qo,Q)}function Si(Q){um(Q.name),et(Q)}function Do(Q){hc(Q,Q.modifiers),Pe(Q,Za)}function Za(Q){mf(Q,Q.typeParameters),xg(Q,Q.parameters),bl(Q.type),va(),Cn(Q.equalsGreaterThanToken)}function Qc(Q){d(91,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function Al(Q){d(114,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function du(Q){d(116,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function N_(Q){d(135,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function zp(Q){$o(Q.operator,Qi),gh(Q)&&va(),Qr(Q.operand,al.parenthesizeOperandOfPrefixUnary)}function gh(Q){const ft=Q.operand;return ft.kind===224&&(Q.operator===40&&(ft.operator===40||ft.operator===46)||Q.operator===41&&(ft.operator===41||ft.operator===47))}function Wh(Q){Qr(Q.operand,al.parenthesizeOperandOfPostfixUnary),$o(Q.operator,Qi)}function Gv(){return VEe(Q,ft,br,oo,Js,void 0);function Q(fl,ju){if(ju){ju.stackIndex++,ju.preserveSourceNewlinesStack[ju.stackIndex]=zt,ju.containerPosStack[ju.stackIndex]=Ur,ju.containerEndStack[ju.stackIndex]=so,ju.declarationListContainerEndStack[ju.stackIndex]=ho;const L_=ju.shouldEmitCommentsStack[ju.stackIndex]=We(fl),Cl=ju.shouldEmitSourceMapsStack[ju.stackIndex]=Re(fl);T==null||T(fl),L_&&Di(fl),Cl&&jo(fl),es(fl)}else ju={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ju}function ft(fl,ju,L_){return pu(fl,L_,"left")}function br(fl,ju,L_){const Cl=fl.kind!==28,o0=Cg(L_,L_.left,fl),oa=Cg(L_,fl,L_.right);Fs(o0,Cl),zh(fl.pos),_i(fl,fl.kind===103?Ka:Qi),Vv(fl.end,!0),Fs(oa,!0)}function oo(fl,ju,L_){return pu(fl,L_,"right")}function Js(fl,ju){const L_=Cg(fl,fl.left,fl.operatorToken),Cl=Cg(fl,fl.operatorToken,fl.right);if(Tl(L_,Cl),ju.stackIndex>0){const o0=ju.preserveSourceNewlinesStack[ju.stackIndex],oa=ju.containerPosStack[ju.stackIndex],dD=ju.containerEndStack[ju.stackIndex],a0=ju.declarationListContainerEndStack[ju.stackIndex],Kx=ju.shouldEmitCommentsStack[ju.stackIndex],hC=ju.shouldEmitSourceMapsStack[ju.stackIndex];Ui(o0),hC&&Oo(fl),Kx&&Ee(fl,oa,dD,a0),D==null||D(fl),ju.stackIndex--}}function pu(fl,ju,L_){const Cl=L_==="left"?al.getParenthesizeLeftSideOfBinaryForOperator(ju.operatorToken.kind):al.getParenthesizeRightSideOfBinaryForOperator(ju.operatorToken.kind);let o0=wt(0,1,fl);if(o0===rr&&(ce.assertIsDefined(Gs),fl=Cl(uc(Gs,Nr)),o0=$e(1,1,fl),Gs=void 0),(o0===vi||o0===yo||o0===xe)&&ys(fl))return fl;Oc=Cl,o0(1,fl)}}function jv(Q){const ft=Cg(Q,Q.condition,Q.questionToken),br=Cg(Q,Q.questionToken,Q.whenTrue),oo=Cg(Q,Q.whenTrue,Q.colonToken),Js=Cg(Q,Q.colonToken,Q.whenFalse);Qr(Q.condition,al.parenthesizeConditionOfConditionalExpression),Fs(ft,!0),Cn(Q.questionToken),Fs(br,!0),Qr(Q.whenTrue,al.parenthesizeBranchOfConditionalExpression),Tl(ft,br),Fs(oo,!0),Cn(Q.colonToken),Fs(Js,!0),Qr(Q.whenFalse,al.parenthesizeBranchOfConditionalExpression),Tl(oo,Js)}function vy(Q){Cn(Q.head),pl(Q,Q.templateSpans,262144)}function ub(Q){d(127,Q.pos,Ka,Q),Cn(Q.asteriskToken),Bl(Q.expression&&E(Q.expression),P)}function E0(Q){d(26,Q.pos,qo,Q),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma)}function P2(Q){um(Q.name),Ke(Q)}function MA(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Ym(Q,Q.typeArguments)}function aw(Q){Qr(Q.expression,void 0),Q.type&&(va(),Ka("as"),va(),Cn(Q.type))}function DI(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Qi("!")}function Me(Q){Qr(Q.expression,void 0),Q.type&&(va(),Ka("satisfies"),va(),Cn(Q.type))}function jn(Q){Xn(Q.keywordToken,Q.pos,qo),qo("."),Cn(Q.name)}function Mi(Q){Qr(Q.expression),Cn(Q.literal)}function js(Q){X_(Q,!Q.multiLine&&wp(Q))}function X_(Q,ft){d(19,Q.pos,qo,Q);const br=ft||Tp(Q)&1?768:129;pl(Q,Q.statements,br),d(20,Q.statements.end,qo,Q,!!(br&1))}function $l(Q){Pc(Q,Q.modifiers,!1),Cn(Q.declarationList),d_()}function y_(Q){Q?qo(";"):d_()}function l_(Q){Qr(Q.expression,al.parenthesizeExpressionOfExpressionStatement),(!ue||!Py(ue)||rh(Q.expression))&&d_()}function Ph(Q){const ft=d(101,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.thenStatement),Q.elseStatement&&(Sc(Q,Q.thenStatement,Q.elseStatement),d(93,Q.thenStatement.end,Ka,Q),Q.elseStatement.kind===245?(va(),Cn(Q.elseStatement)):u_(Q,Q.elseStatement))}function Ap(Q,ft){const br=d(117,ft,Ka,Q);va(),d(21,br,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q)}function Mb(Q){d(92,Q.pos,Ka,Q),u_(Q,Q.statement),E_(Q.statement)&&!zt?va():Sc(Q,Q.statement,Q.expression),Ap(Q,Q.statement.end),d_()}function _x(Q){Ap(Q,Q.pos),u_(Q,Q.statement)}function _S(Q){const ft=d(99,Q.pos,Ka,Q);va();let br=d(21,ft,qo,Q);i(Q.initializer),br=d(27,Q.initializer?Q.initializer.end:br,qo,Q),Bl(Q.condition),br=d(27,Q.condition?Q.condition.end:br,qo,Q),Bl(Q.incrementor),d(22,Q.incrementor?Q.incrementor.end:br,qo,Q),u_(Q,Q.statement)}function e(Q){const ft=d(99,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),i(Q.initializer),va(),d(103,Q.initializer.end,Ka,Q),va(),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function n(Q){const ft=d(99,Q.pos,Ka,Q);va(),G_(Q.awaitModifier),d(21,ft,qo,Q),i(Q.initializer),va(),d(165,Q.initializer.end,Ka,Q),va(),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function i(Q){Q!==void 0&&(Q.kind===261?Cn(Q):Qr(Q))}function c(Q){d(88,Q.pos,Ka,Q),ma(Q.label),d_()}function u(Q){d(83,Q.pos,Ka,Q),ma(Q.label),d_()}function d(Q,ft,br,oo,Js){const pu=Il(oo),fl=pu&&pu.kind===oo.kind,ju=ft;if(fl&&ue&&(ft=ep(ue.text,ft)),fl&&oo.pos!==ju){const L_=Js&&ue&&!mv(ju,ft,ue);L_&&fe(),zh(ju),L_&&_n()}if(ft=$o(Q,br,ft),fl&&oo.end!==ft){const L_=oo.kind===294;Vv(ft,!L_,L_)}return ft}function h(Q){return Q.kind===2||!!Q.hasTrailingNewLine}function S(Q){return ue?gt(CS(ue.text,Q.pos),h)||gt(U7(Q),h)?!0:E3(Q)?Q.pos!==Q.expression.pos&>(Nx(ue.text,Q.expression.pos),h)?!0:S(Q.expression):!1:!1}function E(Q){if(!ro&&E3(Q)&&S(Q)){const ft=Il(Q);if(ft&&sb(ft)){const br=be.createParenthesizedExpression(Q.expression);return tc(br,Q),vr(br,ft),br}return be.createParenthesizedExpression(Q)}return Q}function P(Q){return E(al.parenthesizeExpressionForDisallowedComma(Q))}function k(Q){d(107,Q.pos,Ka,Q),Bl(Q.expression&&E(Q.expression),E),d_()}function F(Q){const ft=d(118,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function $(Q){const ft=d(109,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),va(),Cn(Q.caseBlock)}function J(Q){Cn(Q.label),d(59,Q.label.end,qo,Q),va(),Cn(Q.statement)}function X(Q){d(111,Q.pos,Ka,Q),Bl(E(Q.expression),E),d_()}function ie(Q){d(113,Q.pos,Ka,Q),va(),Cn(Q.tryBlock),Q.catchClause&&(Sc(Q,Q.tryBlock,Q.catchClause),Cn(Q.catchClause)),Q.finallyBlock&&(Sc(Q,Q.catchClause||Q.tryBlock,Q.finallyBlock),d(98,(Q.catchClause||Q.tryBlock).end,Ka,Q),va(),Cn(Q.finallyBlock))}function ae(Q){Xn(89,Q.pos,Ka),d_()}function ve(Q){var ft,br,oo;Cn(Q.name),Cn(Q.exclamationToken),bl(Q.type),Tc(Q.initializer,((ft=Q.type)==null?void 0:ft.end)??((oo=(br=Q.name.emitNode)==null?void 0:br.typeNode)==null?void 0:oo.end)??Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function we(Q){if($2(Q))Ka("await"),va(),Ka("using");else{const ft=eSe(Q)?"let":h7(Q)?"const":T9(Q)?"using":"var";Ka(ft)}va(),pl(Q,Q.declarations,528)}function Fe(Q){et(Q)}function et(Q){Pc(Q,Q.modifiers,!1),Ka("function"),Cn(Q.asteriskToken),va(),oi(Q.name),Pe(Q,dt)}function Pe(Q,ft){const br=Q.body;if(br)if(E_(br)){const oo=Tp(Q)&131072;oo&&fe(),Jt(Q),Ot(Q.parameters,gd),gd(Q.body),ft(Q),ct(br),ci(Q),oo&&_n()}else ft(Q),va(),Qr(br,al.parenthesizeConciseBodyOfArrowFunction);else ft(Q),d_()}function dt(Q){mf(Q,Q.typeParameters),Cp(Q,Q.parameters),bl(Q.type)}function Ie(Q){if(Tp(Q)&1)return!0;if(Q.multiLine||!rh(Q)&&ue&&!mk(Q,ue)||fc(Q,pp(Q.statements),2)||ag(Q,Yf(Q.statements),2,Q.statements))return!1;let ft;for(const br of Q.statements){if(Gd(ft,br,2)>0)return!1;ft=br}return!0}function ct(Q){T==null||T(Q),va(),qo("{"),fe();const ft=Ie(Q)?Ct:Lt;Vl(Q,Q.statements,ft),_n(),Xn(20,Q.statements.end,qo,Q),D==null||D(Q)}function Ct(Q){Lt(Q,!0)}function Lt(Q,ft){const br=Lr(Q.statements),oo=tt.getTextPos();Ji(Q),br===0&&oo===tt.getTextPos()&&ft?(_n(),pl(Q,Q.statements,768),fe()):pl(Q,Q.statements,1,void 0,br)}function Ze(Q){Ke(Q)}function Ke(Q){Hu(0,void 0),Ot(Q.members,Dg),Pc(Q,Q.modifiers,!0),d(86,Db(Q).pos,Ka,Q),Q.name&&(va(),oi(Q.name));const ft=Tp(Q)&131072;ft&&fe(),mf(Q,Q.typeParameters),pl(Q,Q.heritageClauses,0),va(),qo("{"),pl(Q,Q.members,129),qo("}"),ft&&_n(),t_()}function st(Q){Hu(0,void 0),Pc(Q,Q.modifiers,!1),Ka("interface"),va(),Cn(Q.name),mf(Q,Q.typeParameters),pl(Q,Q.heritageClauses,512),va(),qo("{"),pl(Q,Q.members,129),qo("}"),t_()}function It(Q){Pc(Q,Q.modifiers,!1),Ka("type"),va(),Cn(Q.name),mf(Q,Q.typeParameters),va(),qo("="),va(),Cn(Q.type),d_()}function Yt(Q){Pc(Q,Q.modifiers,!1),Ka("enum"),va(),Cn(Q.name),va(),qo("{"),pl(Q,Q.members,145),qo("}")}function Et(Q){Pc(Q,Q.modifiers,!1),~Q.flags&2048&&(Ka(Q.flags&32?"namespace":"module"),va()),Cn(Q.name);let ft=Q.body;if(!ft)return d_();for(;ft&&xp(ft);)qo("."),Cn(ft.name),ft=ft.body;va(),Cn(ft)}function at(Q){Jt(Q),Ot(Q.statements,gd),X_(Q,wp(Q)),ci(Q)}function Qt(Q){d(19,Q.pos,qo,Q),pl(Q,Q.clauses,129),d(20,Q.clauses.end,qo,Q,!0)}function nn(Q){Pc(Q,Q.modifiers,!1),d(102,Q.modifiers?Q.modifiers.end:Q.pos,Ka,Q),va(),Q.isTypeOnly&&(d(156,Q.pos,Ka,Q),va()),Cn(Q.name),va(),d(64,Q.name.end,qo,Q),va(),Rn(Q.moduleReference),d_()}function Rn(Q){Q.kind===80?Qr(Q):Cn(Q)}function cn(Q){Pc(Q,Q.modifiers,!1),d(102,Q.modifiers?Q.modifiers.end:Q.pos,Ka,Q),va(),Q.importClause&&(Cn(Q.importClause),va(),d(161,Q.importClause.end,Ka,Q),va()),Qr(Q.moduleSpecifier),Q.assertClause&&ma(Q.assertClause),d_()}function qt(Q){Q.isTypeOnly&&(d(156,Q.pos,Ka,Q),va()),Cn(Q.name),Q.name&&Q.namedBindings&&(d(28,Q.name.end,qo,Q),va()),Cn(Q.namedBindings)}function Kt(Q){const ft=d(42,Q.pos,qo,Q);va(),d(130,ft,Ka,Q),va(),Cn(Q.name)}function wr(Q){io(Q)}function Wr(Q){no(Q)}function jt(Q){const ft=d(95,Q.pos,Ka,Q);va(),Q.isExportEquals?d(64,ft,Qi,Q):d(90,ft,Ka,Q),va(),Qr(Q.expression,Q.isExportEquals?al.getParenthesizeRightSideOfBinaryForOperator(64):al.parenthesizeExpressionOfExportDefault),d_()}function En(Q){Pc(Q,Q.modifiers,!1);let ft=d(95,Q.pos,Ka,Q);if(va(),Q.isTypeOnly&&(ft=d(156,ft,Ka,Q),va()),Q.exportClause?Cn(Q.exportClause):ft=d(42,ft,qo,Q),Q.moduleSpecifier){va();const br=Q.exportClause?Q.exportClause.end:ft;d(161,br,Ka,Q),va(),Qr(Q.moduleSpecifier)}Q.assertClause&&ma(Q.assertClause),d_()}function fr(Q){d(132,Q.pos,Ka,Q),va();const ft=Q.elements;pl(Q,ft,526226)}function Tr(Q){Cn(Q.name),qo(":"),va();const ft=Q.value;if(!(Tp(ft)&1024)){const br=lI(ft);Vv(br.pos)}Cn(ft)}function Vr(Q){let ft=d(95,Q.pos,Ka,Q);va(),ft=d(130,ft,Ka,Q),va(),ft=d(145,ft,Ka,Q),va(),Cn(Q.name),d_()}function Pn(Q){const ft=d(42,Q.pos,qo,Q);va(),d(130,ft,Ka,Q),va(),Cn(Q.name)}function Fr(Q){io(Q)}function Ki(Q){no(Q)}function io(Q){qo("{"),pl(Q,Q.elements,525136),qo("}")}function no(Q){Q.isTypeOnly&&(Ka("type"),va()),Q.propertyName&&(Cn(Q.propertyName),va(),d(130,Q.propertyName.end,Ka,Q),va()),Cn(Q.name)}function os(Q){Ka("require"),qo("("),Qr(Q.expression),qo(")")}function Mo(Q){Cn(Q.openingElement),pl(Q,Q.children,262144),Cn(Q.closingElement)}function $i(Q){qo("<"),Au(Q.tagName),Ym(Q,Q.typeArguments),va(),Cn(Q.attributes),qo("/>")}function ki(Q){Cn(Q.openingFragment),pl(Q,Q.children,262144),Cn(Q.closingFragment)}function gc(Q){if(qo("<"),rD(Q)){const ft=bm(Q.tagName,Q);Au(Q.tagName),Ym(Q,Q.typeArguments),Q.attributes.properties&&Q.attributes.properties.length>0&&va(),Cn(Q.attributes),ay(Q.attributes,Q),Tl(ft)}qo(">")}function Wl(Q){tt.writeLiteral(Q.text)}function Jc(Q){qo("")}function au(Q){pl(Q,Q.properties,262656)}function qn(Q){Cn(Q.name),Tf("=",qo,Q.initializer,co)}function za(Q){qo("{..."),Qr(Q.expression),qo("}")}function Ia(Q){let ft=!1;return Bz((ue==null?void 0:ue.text)||"",Q+1,()=>ft=!0),ft}function zi(Q){let ft=!1;return SN((ue==null?void 0:ue.text)||"",Q+1,()=>ft=!0),ft}function na(Q){return Ia(Q)||zi(Q)}function _a(Q){var ft;if(Q.expression||!ro&&!rh(Q)&&na(Q.pos)){const br=ue&&!rh(Q)&&Ah(ue,Q.pos).line!==Ah(ue,Q.end).line;br&&tt.increaseIndent();const oo=d(19,Q.pos,qo,Q);Cn(Q.dotDotDotToken),Qr(Q.expression),d(20,((ft=Q.expression)==null?void 0:ft.end)||oo,qo,Q),br&&tt.decreaseIndent()}}function us(Q){oi(Q.namespace),qo(":"),oi(Q.name)}function Au(Q){Q.kind===80?Qr(Q):Cn(Q)}function Qu(Q){d(84,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma),yf(Q,Q.statements,Q.expression.end)}function Cu(Q){const ft=d(90,Q.pos,Ka,Q);yf(Q,Q.statements,ft)}function yf(Q,ft,br){const oo=ft.length===1&&(!ue||rh(Q)||rh(ft[0])||wH(Q,ft[0],ue));let Js=163969;oo?(Xn(59,br,qo,Q),va(),Js&=-130):d(59,br,qo,Q),pl(Q,ft,Js)}function w_(Q){va(),$o(Q.token,Ka),va(),pl(Q,Q.types,528)}function Eu(Q){const ft=d(85,Q.pos,Ka,Q);va(),Q.variableDeclaration&&(d(21,ft,qo,Q),Cn(Q.variableDeclaration),d(22,Q.variableDeclaration.end,qo,Q),va()),Cn(Q.block)}function He(Q){Cn(Q.name),qo(":"),va();const ft=Q.initializer;if(!(Tp(ft)&1024)){const br=lI(ft);Vv(br.pos)}Qr(ft,al.parenthesizeExpressionForDisallowedComma)}function Hn(Q){Cn(Q.name),Q.objectAssignmentInitializer&&(va(),qo("="),va(),Qr(Q.objectAssignmentInitializer,al.parenthesizeExpressionForDisallowedComma))}function dr(Q){Q.expression&&(d(26,Q.pos,qo,Q),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma))}function Mr(Q){Cn(Q.name),Tc(Q.initializer,Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function Pr(Q){if(kn("/**"),Q.comment){const ft=jz(Q.comment);if(ft){const br=ft.split(/\r\n?|\n/g);for(const oo of br)Md(),va(),qo("*"),va(),kn(oo)}}Q.tags&&(Q.tags.length===1&&Q.tags[0].kind===351&&!Q.comment?(va(),Cn(Q.tags[0])):pl(Q,Q.tags,33)),va(),kn("*/")}function Bt(Q){Io(Q.tagName),Ce(Q.typeExpression),ze(Q.comment)}function ln(Q){Io(Q.tagName),Cn(Q.name),ze(Q.comment)}function Wn(Q){va(),qo("{"),Cn(Q.name),qo("}")}function $r(Q){Io(Q.tagName),va(),qo("{"),Cn(Q.class),qo("}"),ze(Q.comment)}function Ge(Q){Io(Q.tagName),Ce(Q.constraint),va(),pl(Q,Q.typeParameters,528),ze(Q.comment)}function Br(Q){Io(Q.tagName),Q.typeExpression&&(Q.typeExpression.kind===316?Ce(Q.typeExpression):(va(),qo("{"),kn("Object"),Q.typeExpression.isArrayType&&(qo("["),qo("]")),qo("}"))),Q.fullName&&(va(),Cn(Q.fullName)),ze(Q.comment),Q.typeExpression&&Q.typeExpression.kind===329&&yi(Q.typeExpression)}function Ei(Q){Io(Q.tagName),Q.name&&(va(),Cn(Q.name)),ze(Q.comment),go(Q.typeExpression)}function Ln(Q){ze(Q.comment),go(Q.typeExpression)}function Sr(Q){Io(Q.tagName),ze(Q.comment)}function yi(Q){pl(Q,be.createNodeArray(Q.jsDocPropertyTags),33)}function go(Q){Q.typeParameters&&pl(Q,be.createNodeArray(Q.typeParameters),33),Q.parameters&&pl(Q,be.createNodeArray(Q.parameters),33),Q.type&&(Md(),va(),qo("*"),va(),Cn(Q.type))}function Ao(Q){Io(Q.tagName),Ce(Q.typeExpression),va(),Q.isBracketed&&qo("["),Cn(Q.name),Q.isBracketed&&qo("]"),ze(Q.comment)}function Io(Q){qo("@"),Cn(Q)}function ze(Q){const ft=jz(Q);ft&&(va(),kn(ft))}function Ce(Q){Q&&(va(),qo("{"),Cn(Q.type),qo("}"))}function kt(Q){Md();const ft=Q.statements;if(ft.length===0||!qC(ft[0])||rh(ft[0])){Vl(Q,ft,mn);return}mn(Q)}function qe(Q){ge(!!Q.hasNoDefaultLib,Q.syntheticFileReferences||[],Q.syntheticTypeReferences||[],Q.syntheticLibReferences||[]);for(const ft of Q.prepends)if(xA(ft)&&ft.syntheticReferences)for(const br of ft.syntheticReferences)Cn(br),Md()}function Mt(Q){Q.isDeclarationFile&&ge(Q.hasNoDefaultLib,Q.referencedFiles,Q.typeReferenceDirectives,Q.libReferenceDirectives)}function ge(Q,ft,br,oo){if(Q){const Js=tt.getTextPos();Ag('/// '),un&&un.sections.push({pos:Js,end:tt.getTextPos(),kind:"no-default-lib"}),Md()}if(ue&&ue.moduleName&&(Ag(`/// `),Md()),ue&&ue.amdDependencies)for(const Js of ue.amdDependencies)Js.name?Ag(`/// `):Ag(`/// `),Md();for(const Js of ft){const pu=tt.getTextPos();Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:"reference",data:Js.fileName}),Md()}for(const Js of br){const pu=tt.getTextPos(),fl=Js.resolutionMode&&Js.resolutionMode!==(ue==null?void 0:ue.impliedNodeFormat)?`resolution-mode="${Js.resolutionMode===99?"import":"require"}"`:"";Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:Js.resolutionMode?Js.resolutionMode===99?"type-import":"type-require":"type",data:Js.fileName}),Md()}for(const Js of oo){const pu=tt.getTextPos();Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:"lib",data:Js.fileName}),Md()}}function mn(Q){const ft=Q.statements;Jt(Q),Ot(Q.statements,gd),Ji(Q);const br=Ho(ft,oo=>!qC(oo));Mt(Q),pl(Q,ft,1,void 0,br===-1?ft.length:br),ci(Q)}function Jn(Q){const ft=Tp(Q);!(ft&1024)&&Q.pos!==Q.expression.pos&&Vv(Q.expression.pos),Qr(Q.expression),!(ft&2048)&&Q.end!==Q.expression.end&&zh(Q.expression.end)}function Nn(Q){R_(Q,Q.elements,528,void 0)}function Lr(Q,ft,br,oo){let Js=!!ft;for(let pu=0;pu=br.length||fl===0;if(L_&&oo&32768){I==null||I(br),W==null||W(br);return}oo&15360&&(qo(Act(oo)),L_&&br&&Vv(br.pos,!0)),I==null||I(br),L_?oo&1&&!(zt&&(!ft||ue&&mk(ft,ue)))?Md():oo&256&&!(oo&524288)&&va():km(Q,ft,br,oo,Js,pu,fl,br.hasTrailingComma,br),W==null||W(br),oo&15360&&(L_&&br&&zh(br.end),qo(D4e(oo)))}function km(Q,ft,br,oo,Js,pu,fl,ju,L_){const Cl=(oo&262144)===0;let o0=Cl;const oa=fc(ft,br[pu],oo);oa?(Md(oa),o0=!1):oo&256&&va(),oo&128&&fe();const dD=Ict(Q,Js);let a0,Kx,hC=!1;for(let pD=0;pD0?(oo&131||(fe(),hC=!0),Md(vC),o0=!1):a0&&oo&512&&va()}if(Kx=sl(yC),o0){const vC=lI(yC);Vv(vC.pos)}else o0=Cl;Wt=yC.pos,dD(yC,Q,Js,pD),hC&&(_n(),hC=!1),a0=yC}const WP=a0?Tp(a0):0,BP=ro||!!(WP&2048),LA=ju&&oo&64&&oo&16;LA&&(a0&&!BP?d(28,a0.end,qo,a0):qo(",")),a0&&(ft?ft.end:-1)!==a0.end&&oo&60&&!BP&&zh(LA&&(L_!=null&&L_.end)?L_.end:a0.end),oo&128&&_n(),vc(Kx);const OA=ag(ft,br[pu+fl-1],oo,L_);OA?Md(OA):oo&2097408&&va()}function M_(Q){tt.writeLiteral(Q)}function oy(Q){tt.writeStringLiteral(Q)}function bE(Q){tt.write(Q)}function hh(Q,ft){tt.writeSymbol(Q,ft)}function qo(Q){tt.writePunctuation(Q)}function d_(){tt.writeTrailingSemicolon(";")}function Ka(Q){tt.writeKeyword(Q)}function Qi(Q){tt.writeOperator(Q)}function Pm(Q){tt.writeParameter(Q)}function Ag(Q){tt.writeComment(Q)}function va(){tt.writeSpace(" ")}function x0(Q){tt.writeProperty(Q)}function Nm(Q){tt.nonEscapingWrite?tt.nonEscapingWrite(Q):tt.write(Q)}function Md(Q=1){for(let ft=0;ft0)}function fe(){tt.increaseIndent()}function _n(){tt.decreaseIndent()}function Xn(Q,ft,br,oo){return Ut?$o(Q,br,ft):Xs(oo,Q,br,ft,$o)}function _i(Q,ft){O&&O(Q),ft(Nd(Q.kind)),V&&V(Q)}function $o(Q,ft,br){const oo=Nd(Q);return ft(oo),br<0?br:br+oo.length}function Sc(Q,ft,br){if(Tp(Q)&1)va();else if(zt){const oo=Cg(Q,ft,br);oo?Md(oo):va()}else Md()}function xs(Q){const ft=Q.split(/\r\n?|\n/g),br=lde(ft);for(const oo of ft){const Js=br?oo.slice(br):oo;Js.length&&(Md(),kn(Js))}}function Fs(Q,ft){Q?(fe(),Md(Q)):ft&&va()}function Tl(Q,ft){Q&&_n(),ft&&_n()}function fc(Q,ft,br){if(br&2||zt){if(br&65536)return 1;if(ft===void 0)return!Q||ue&&mk(Q,ue)?0:1;if(ft.pos===Wt||ft.kind===12)return 0;if(ue&&Q&&!ab(Q.pos)&&!rh(ft)&&(!ft.parent||Ic(ft.parent)===Ic(Q)))return zt?ah(oo=>CSe(ft.pos,Q.pos,ue,oo)):wH(Q,ft,ue)?0:1;if(yp(ft,br))return 1}return br&1?1:0}function Gd(Q,ft,br){if(br&2||zt){if(Q===void 0||ft===void 0||ft.kind===12)return 0;if(ue&&!rh(Q)&&!rh(ft))return zt&&Y_(Q,ft)?ah(oo=>Jie(Q,ft,ue,oo)):!zt&&Uf(Q,ft)?H9(Q,ft,ue)?0:1:br&65536?1:0;if(yp(Q,br)||yp(ft,br))return 1}else if(lp(ft))return 1;return br&1?1:0}function ag(Q,ft,br,oo){if(br&2||zt){if(br&65536)return 1;if(ft===void 0)return!Q||ue&&mk(Q,ue)?0:1;if(ue&&Q&&!ab(Q.pos)&&!rh(ft)&&(!ft.parent||ft.parent===Q)){if(zt){const Js=oo&&!ab(oo.end)?oo.end:ft.end;return ah(pu=>DSe(Js,Q.end,ue,pu))}return ESe(Q,ft,ue)?0:1}if(yp(ft,br))return 1}return br&1&&!(br&131072)?1:0}function ah(Q){ce.assert(!!zt);const ft=Q(!0);return ft===0?Q(!1):ft}function bm(Q,ft){const br=zt&&fc(ft,Q,0);return br&&Fs(br,!1),!!br}function ay(Q,ft){const br=zt&&ag(ft,Q,0,void 0);br&&Md(br)}function yp(Q,ft){if(rh(Q)){const br=lp(Q);return br===void 0?(ft&65536)!==0:br}return(ft&65536)!==0}function Cg(Q,ft,br){return Tp(Q)&262144?0:(Q=Xp(Q),ft=Xp(ft),br=Xp(br),lp(br)?1:ue&&!rh(Q)&&!rh(ft)&&!rh(br)?zt?ah(oo=>Jie(ft,br,ue,oo)):H9(ft,br,ue)?0:1:0)}function wp(Q){return Q.statements.length===0&&(!ue||H9(Q,Q,ue))}function Xp(Q){for(;Q.kind===217&&rh(Q);)Q=Q.expression;return Q}function r1(Q,ft){if(Om(Q)||cR(Q))return Ig(Q);if(Wp(Q)&&Q.textSourceNode)return r1(Q.textSourceNode,ft);const br=ue,oo=!!br&&!!Q.parent&&!rh(Q);if(fy(Q)){if(!oo||ns(Q)!==Ic(br))return ec(Q)}else if(dI(Q)){if(!oo||ns(Q)!==Ic(br))return g3(Q)}else if(ce.assertNode(Q,fP),!oo)return Q.text;return wd(br,Q,ft)}function sg(Q,ft,br){if(Q.kind===11&&Q.textSourceNode){const Js=Q.textSourceNode;if(An(Js)||Gu(Js)||nS(Js)||dI(Js)){const pu=nS(Js)?Js.text:r1(Js);return br?`"${bY(pu)}"`:ft||Tp(Q)&16777216?`"${M7(pu)}"`:`"${S2(pu)}"`}else return sg(Js,ft,br)}const oo=(ft?1:0)|(br?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return dde(Q,ue,oo)}function Jt(Q){Q&&Tp(Q)&1048576||(Dt.push(Ft),Ft=0,Le.push(ht),ht=void 0,it.push(Ye))}function ci(Q){Q&&Tp(Q)&1048576||(Ft=Dt.pop(),ht=Le.pop(),Ye=it.pop())}function da(Q){(!Ye||Ye===Yf(it))&&(Ye=new Set),Ye.add(Q)}function Hu(Q,ft){ke.push(_t),_t=Q,ut.push(Ye),lt=ft}function t_(){_t=ke.pop(),lt=ut.pop()}function A_(Q){(!lt||lt===Yf(ut))&&(lt=new Set),lt.add(Q)}function gd(Q){if(Q)switch(Q.kind){case 241:Ot(Q.statements,gd);break;case 256:case 254:case 246:case 247:gd(Q.statement);break;case 245:gd(Q.thenStatement),gd(Q.elseStatement);break;case 248:case 250:case 249:gd(Q.initializer),gd(Q.statement);break;case 255:gd(Q.caseBlock);break;case 269:Ot(Q.clauses,gd);break;case 296:case 297:Ot(Q.statements,gd);break;case 258:gd(Q.tryBlock),gd(Q.catchClause),gd(Q.finallyBlock);break;case 299:gd(Q.variableDeclaration),gd(Q.block);break;case 243:gd(Q.declarationList);break;case 261:Ot(Q.declarations,gd);break;case 260:case 169:case 208:case 263:um(Q.name);break;case 262:um(Q.name),Tp(Q)&1048576&&(Ot(Q.parameters,gd),gd(Q.body));break;case 206:case 207:Ot(Q.elements,gd);break;case 272:gd(Q.importClause);break;case 273:um(Q.name),gd(Q.namedBindings);break;case 274:um(Q.name);break;case 280:um(Q.name);break;case 275:Ot(Q.elements,gd);break;case 276:um(Q.propertyName||Q.name);break}}function Dg(Q){if(Q)switch(Q.kind){case 303:case 304:case 172:case 174:case 177:case 178:um(Q.name);break}}function um(Q){Q&&(Om(Q)||cR(Q)?Ig(Q):ld(Q)&&gd(Q))}function Ig(Q){const ft=Q.emitNode.autoGenerate;if((ft.flags&7)===4)return P_(GG(Q),Gu(Q),ft.flags,ft.prefix,ft.suffix);{const br=ft.id;return Ve[br]||(Ve[br]=pr(Q))}}function P_(Q,ft,br,oo,Js){const pu=Im(Q),fl=ft?Be:Ne;return fl[pu]||(fl[pu]=nt(Q,ft,br??0,JJ(oo,Ig),JJ(Js)))}function Qm(Q,ft){return P1(Q)&&!Bh(Q,ft)&&!pt.has(Q)}function Bh(Q,ft){return ft?!!(lt!=null&<.has(Q)):!!(Ye!=null&&Ye.has(Q))}function P1(Q,ft){return ue?fde(ue,Q,s):!0}function VT(Q,ft){for(let br=ft;br&&N7(br,ft);br=br.nextContainer)if(lk(br)&&br.locals){const oo=br.locals.get(ty(Q));if(oo&&oo.flags&3257279)return!1}return!0}function Zm(Q){switch(Q){case"":return Ft;case"#":return _t;default:return(ht==null?void 0:ht.get(Q))??0}}function fb(Q,ft){switch(Q){case"":Ft=ft;break;case"#":_t=ft;break;default:ht??(ht=new Map),ht.set(Q,ft);break}}function FS(Q,ft,br,oo,Js){oo.length>0&&oo.charCodeAt(0)===35&&(oo=oo.slice(1));const pu=n4(br,oo,"",Js);let fl=Zm(pu);if(Q&&!(fl&Q)){const L_=n4(br,oo,Q===268435456?"_i":"_n",Js);if(Qm(L_,br))return fl|=Q,br?A_(L_):ft&&da(L_),fb(pu,fl),L_}for(;;){const ju=fl&268435455;if(fl++,ju!==8&&ju!==13){const L_=ju<26?"_"+String.fromCharCode(97+ju):"_"+(ju-26),Cl=n4(br,oo,L_,Js);if(Qm(Cl,br))return br?A_(Cl):ft&&da(Cl),fb(pu,fl),Cl}}}function dT(Q,ft=Qm,br,oo,Js,pu,fl){if(Q.length>0&&Q.charCodeAt(0)===35&&(Q=Q.slice(1)),pu.length>0&&pu.charCodeAt(0)===35&&(pu=pu.slice(1)),br){const L_=n4(Js,pu,Q,fl);if(ft(L_,Js))return Js?A_(L_):oo?da(L_):pt.add(L_),L_}Q.charCodeAt(Q.length-1)!==95&&(Q+="_");let ju=1;for(;;){const L_=n4(Js,pu,Q+ju,fl);if(ft(L_,Js))return Js?A_(L_):oo?da(L_):pt.add(L_),L_;ju++}}function $0(Q){return dT(Q,P1,!0,!1,!1,"","")}function xv(Q){const ft=r1(Q.name);return VT(ft,to(Q,lk))?ft:dT(ft,Qm,!1,!1,!1,"","")}function t2(Q){const ft=pY(Q),br=Wp(ft)?jVe(ft.text):"module";return dT(br,Qm,!1,!1,!1,"","")}function q0(){return dT("default",Qm,!1,!1,!1,"","")}function N1(){return dT("class",Qm,!1,!1,!1,"","")}function i0(Q,ft,br,oo){return An(Q.name)?P_(Q.name,ft):FS(0,!1,ft,br,oo)}function nt(Q,ft,br,oo,Js){switch(Q.kind){case 80:case 81:return dT(r1(Q),Qm,!!(br&16),!!(br&8),ft,oo,Js);case 267:case 266:return ce.assert(!oo&&!Js&&!ft),xv(Q);case 272:case 278:return ce.assert(!oo&&!Js&&!ft),t2(Q);case 262:case 263:{ce.assert(!oo&&!Js&&!ft);const pu=Q.name;return pu&&!Om(pu)?nt(pu,!1,br,oo,Js):q0()}case 277:return ce.assert(!oo&&!Js&&!ft),q0();case 231:return ce.assert(!oo&&!Js&&!ft),N1();case 174:case 177:case 178:return i0(Q,ft,oo,Js);case 167:return FS(0,!0,ft,oo,Js);default:return FS(0,!1,ft,oo,Js)}}function pr(Q){const ft=Q.emitNode.autoGenerate,br=JJ(ft.prefix,Ig),oo=JJ(ft.suffix);switch(ft.flags&7){case 1:return FS(0,!!(ft.flags&8),Gu(Q),br,oo);case 2:return ce.assertNode(Q,An),FS(268435456,!!(ft.flags&8),!1,br,oo);case 3:return dT(ec(Q),ft.flags&32?P1:Qm,!!(ft.flags&16),!!(ft.flags&8),Gu(Q),br,oo)}return ce.fail(`Unsupported GeneratedIdentifierKind: ${ce.formatEnum(ft.flags&7,mX,!0)}.`)}function vi(Q,ft){const br=$e(2,Q,ft),oo=Ur,Js=so,pu=ho;Di(ft),br(Q,ft),Ee(ft,oo,Js,pu)}function Di(Q){const ft=Tp(Q),br=lI(Q);Gt(Q,ft,br.pos,br.end),ft&4096&&(ro=!0)}function Ee(Q,ft,br,oo){const Js=Tp(Q),pu=lI(Q);Js&4096&&(ro=!1),sr(Q,Js,pu.pos,pu.end,ft,br,oo);const fl=rpe(Q);fl&&sr(Q,Js,fl.pos,fl.end,ft,br,oo)}function Gt(Q,ft,br,oo){_u(),ha=!1;const Js=br<0||(ft&1024)!==0||Q.kind===12,pu=oo<0||(ft&2048)!==0||Q.kind===12;(br>0||oo>0)&&br!==oo&&(Js||Fg(br,Q.kind!==359),(!Js||br>=0&&ft&1024)&&(Ur=br),(!pu||oo>=0&&ft&2048)&&(so=oo,Q.kind===261&&(ho=oo))),Ot(U7(Q),Ii),Ku()}function sr(Q,ft,br,oo,Js,pu,fl){_u();const ju=oo<0||(ft&2048)!==0||Q.kind===12;Ot(y3(Q),Ja),(br>0||oo>0)&&br!==oo&&(Ur=Js,so=pu,ho=fl,!ju&&Q.kind!==359&&i1(oo)),Ku()}function Ii(Q){(Q.hasLeadingNewline||Q.kind===2)&&tt.writeLine(),wa(Q),Q.hasTrailingNewLine||Q.kind===2?tt.writeLine():tt.writeSpace(" ")}function Ja(Q){tt.isAtStartOfLine()||tt.writeSpace(" "),wa(Q),Q.hasTrailingNewLine&&tt.writeLine()}function wa(Q){const ft=wi(Q),br=Q.kind===3?i7(ft):void 0;tT(ft,br,tt,0,ft.length,te)}function wi(Q){return Q.kind===3?`/*${Q.text}*/`:`//${Q.text}`}function Vl(Q,ft,br){_u();const{pos:oo,end:Js}=ft,pu=Tp(Q),fl=oo<0||(pu&1024)!==0,ju=ro||Js<0||(pu&2048)!==0;fl||fn(ft),Ku(),pu&4096&&!ro?(ro=!0,br(Q),ro=!1):br(Q),_u(),ju||(Fg(ft.end,!0),ha&&!tt.isAtStartOfLine()&&tt.writeLine()),Ku()}function Uf(Q,ft){return Q=Ic(Q),Q.parent&&Q.parent===Ic(ft).parent}function Y_(Q,ft){if(ft.pos-1&&oo.indexOf(ft)===Js+1}function Fg(Q,ft){ha=!1,ft?Q===0&&(ue!=null&&ue.isDeclarationFile)?eg(Q,by):eg(Q,f_):Q===0&&eg(Q,sv)}function sv(Q,ft,br,oo,Js){ri(Q,ft)&&f_(Q,ft,br,oo,Js)}function by(Q,ft,br,oo,Js){ri(Q,ft)||f_(Q,ft,br,oo,Js)}function _b(Q,ft){return t.onlyPrintJsDocStyle?DA(Q,ft)||h9(Q,ft):!0}function f_(Q,ft,br,oo,Js){!ue||!_b(ue.text,Q)||(ha||(e6e(_r(),tt,Js,Q),ha=!0),Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo?tt.writeLine():br===3&&tt.writeSpace(" "))}function zh(Q){ro||Q===-1||Fg(Q,!0)}function i1(Q){Uv(Q,n2)}function n2(Q,ft,br,oo){!ue||!_b(ue.text,Q)||(tt.isAtStartOfLine()||tt.writeSpace(" "),Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo&&tt.writeLine())}function Vv(Q,ft,br){ro||(_u(),Uv(Q,ft?n2:br?su:gC),Ku())}function su(Q,ft,br){ue&&(Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),br===2&&tt.writeLine())}function gC(Q,ft,br,oo){ue&&(Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo?tt.writeLine():tt.writeSpace(" "))}function eg(Q,ft){ue&&(Ur===-1||Q!==Ur)&&(Rk(Q)?Lb(ft):SN(ue.text,Q,ft,Q))}function Uv(Q,ft){ue&&(so===-1||Q!==so&&Q!==ho)&&Bz(ue.text,Q,ft)}function Rk(Q){return Nc!==void 0&&yl(Nc).nodePos===Q}function Lb(Q){if(!ue)return;const ft=yl(Nc).detachedCommentEndPos;Nc.length-1?Nc.pop():Nc=void 0,SN(ue.text,ft,Q,ft)}function fn(Q){const ft=ue&&gSe(ue.text,_r(),tt,$n,Q,te,ro);ft&&(Nc?Nc.push(ft):Nc=[ft])}function $n(Q,ft,br,oo,Js,pu){!ue||!_b(ue.text,oo)||(Fc(oo),tT(Q,ft,br,oo,Js,pu),Fc(Js))}function ri(Q,ft){return!!ue&&nY(ue.text,Q,ft)}function Li(Q){return Q.parsedSourceMap===void 0&&Q.sourceMapText!==void 0&&(Q.parsedSourceMap=_me(Q.sourceMapText)||!1),Q.parsedSourceMap||void 0}function yo(Q,ft){const br=$e(3,Q,ft);jo(ft),br(Q,ft),Oo(ft)}function jo(Q){const ft=Tp(Q),br=cE(Q);if(a7(Q)){ce.assertIsDefined(Q.parent,"UnparsedNodes must have parent pointers");const oo=Li(Q.parent);oo&&In&&In.appendSourceMap(tt.getLine(),tt.getColumn(),oo,Q.parent.sourceMapPath,Q.parent.getLineAndCharacterOfPosition(Q.pos),Q.parent.getLineAndCharacterOfPosition(Q.end))}else{const oo=br.source||gr;Q.kind!==359&&!(ft&32)&&br.pos>=0&&ks(br.source||gr,ca(oo,br.pos)),ft&128&&(Ut=!0)}}function Oo(Q){const ft=Tp(Q),br=cE(Q);a7(Q)||(ft&128&&(Ut=!1),Q.kind!==359&&!(ft&64)&&br.end>=0&&ks(br.source||gr,br.end))}function ca(Q,ft){return Q.skipTrivia?Q.skipTrivia(ft):ep(Q.text,ft)}function Fc(Q){if(Ut||ab(Q)||Yp(gr))return;const{line:ft,character:br}=Ah(gr,Q);In.addMapping(tt.getLine(),tt.getColumn(),Cr,ft,br,void 0)}function ks(Q,ft){if(Q!==gr){const br=gr,oo=Cr;Vs(Q),Fc(ft),wu(br,oo)}else Fc(ft)}function Xs(Q,ft,br,oo,Js){if(Ut||Q&&Cde(Q))return Js(ft,br,oo);const pu=Q&&Q.emitNode,fl=pu&&pu.flags||0,ju=pu&&pu.tokenSourceMapRanges&&pu.tokenSourceMapRanges[ft],L_=ju&&ju.source||gr;return oo=ca(L_,ju?ju.pos:oo),!(fl&256)&&oo>=0&&ks(L_,oo),oo=Js(ft,br,oo),ju&&(oo=ju.end),!(fl&512)&&oo>=0&&ks(L_,oo),oo}function Vs(Q){if(!Ut){if(gr=Q,Q===ei){Cr=Gn;return}Yp(Q)||(Cr=In.addSource(Q.fileName),t.inlineSources&&In.setSourceContent(Cr,Q.text),ei=Q,Gn=Cr)}}function wu(Q,ft){gr=Q,Cr=ft}function Yp(Q){return Pg(Q.fileName,".json")}}function Fme(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function Act(t){return I4e[t&15360][0]}function D4e(t){return I4e[t&15360][1]}function Cct(t,r,s,l){r(t)}function F3(t,r,s,l){r(t,s.select(l))}function Dct(t,r,s,l){r(t,s)}function Ict(t,r){return t.length===1?Cct:typeof r=="object"?F3:Dct}var I4e,pxe,k4e,GW,P4e,jQ,Wme=G({"src/compiler/emitter.ts"(){Ad(),Ad(),NM(),I4e=Fme(),pxe={hasGlobalName:Na,getReferencedExportContainer:Na,getReferencedImportDeclaration:Na,getReferencedDeclarationWithCollidingName:Na,isDeclarationWithCollidingName:Na,isValueAliasDeclaration:Na,isReferencedAliasDeclaration:Na,isTopLevelValueImportEqualsWithEntityName:Na,getNodeCheckFlags:Na,isDeclarationVisible:Na,isLateBound:t=>!1,collectLinkedAliases:Na,isImplementationOfOverload:Na,isRequiredInitializedParameter:Na,isOptionalUninitializedParameterProperty:Na,isExpandoFunctionDeclaration:Na,getPropertiesOfContainerFunction:Na,createTypeOfDeclaration:Na,createReturnTypeOfSignatureDeclaration:Na,createTypeOfExpression:Na,createLiteralConstValue:Na,isSymbolAccessible:Na,isEntityNameVisible:Na,getConstantValue:Na,getReferencedValueDeclaration:Na,getReferencedValueDeclarations:Na,getTypeReferenceSerializationKind:Na,isOptionalParameter:Na,moduleExportsSomeValue:Na,isArgumentsLocalBinding:Na,getExternalModuleFileFromDeclaration:Na,getTypeReferenceDirectivesForEntityName:Na,getTypeReferenceDirectivesForSymbol:Na,isLiteralConstDeclaration:Na,getJsxFactoryEntity:Na,getJsxFragmentFactoryEntity:Na,getAllAccessorDeclarations:Na,getSymbolOfExternalModuleSpecifier:Na,isBindingCapturedByNode:Na,getDeclarationStatementsForSourceFile:Na,isImportRequiredByAugmentation:Na},k4e=Pd(()=>_4({})),GW=Pd(()=>_4({removeComments:!0})),P4e=Pd(()=>_4({removeComments:!0,neverAsciiEscape:!0})),jQ=Pd(()=>_4({removeComments:!0,omitTrailingSemicolon:!0}))}});function Bme(t,r,s){if(!t.getDirectories||!t.readDirectory)return;const l=new Map,m=_v(s);return{useCaseSensitiveFileNames:s,fileExists:te,readFile:(ke,_t)=>t.readFile(ke,_t),directoryExists:t.directoryExists&&oe,getDirectories:ue,readDirectory:Ne,createDirectory:t.createDirectory&&de,writeFile:t.writeFile&&ee,addOrDeleteFileOrDirectory:Ve,addOrDeleteFile:pt,clearCache:ht,realpath:t.realpath&&Be};function y(ke){return _h(ke,r,m)}function T(ke){return l.get(Rv(ke))}function D(ke){const _t=T(qc(ke));return _t&&(_t.sortedAndCanonicalizedFiles||(_t.sortedAndCanonicalizedFiles=_t.files.map(m).sort(),_t.sortedAndCanonicalizedDirectories=_t.directories.map(m).sort()),_t)}function I(ke){return Iy(Fd(ke))}function W(ke,_t){var Dt;if(!t.realpath||Rv(y(t.realpath(ke)))===_t){const Ft={files:Vn(t.readDirectory(ke,void 0,void 0,["*.*"]),I)||[],directories:t.getDirectories(ke)||[]};return l.set(Rv(_t),Ft),Ft}if((Dt=t.directoryExists)!=null&&Dt.call(t,ke))return l.set(_t,!1),!1}function O(ke,_t){_t=Rv(_t);const Dt=T(_t);if(Dt)return Dt;try{return W(ke,_t)}catch{ce.assert(!l.has(Rv(_t)));return}}function V(ke,_t){return ZS(ke,_t,Of,Fp)>=0}function ee(ke,_t,Dt){const Ft=y(ke),it=D(Ft);return it&&Le(it,I(ke),!0),t.writeFile(ke,_t,Dt)}function te(ke){const _t=y(ke),Dt=D(_t);return Dt&&V(Dt.sortedAndCanonicalizedFiles,m(I(ke)))||t.fileExists(ke)}function oe(ke){const _t=y(ke);return l.has(Rv(_t))||t.directoryExists(ke)}function de(ke){const _t=y(ke),Dt=D(_t);if(Dt){const Ft=I(ke),it=m(Ft),Ye=Dt.sortedAndCanonicalizedDirectories;d0(Ye,it,Fp)&&Dt.directories.push(Ft)}t.createDirectory(ke)}function ue(ke){const _t=y(ke),Dt=O(ke,_t);return Dt?Dt.directories.slice():t.getDirectories(ke)}function Ne(ke,_t,Dt,Ft,it){const Ye=y(ke),ut=O(ke,Ye);let lt;if(ut!==void 0)return ioe(ke,_t,Dt,Ft,s,r,it,zt,Be);return t.readDirectory(ke,_t,Dt,Ft,it);function zt(tt){const Mn=y(tt);if(Mn===Ye)return ut||Wt(tt,Mn);const kn=O(tt,Mn);return kn!==void 0?kn||Wt(tt,Mn):xG}function Wt(tt,Mn){if(lt&&Mn===Ye)return lt;const kn={files:Vn(t.readDirectory(tt,void 0,void 0,["*.*"]),I)||Zn,directories:t.getDirectories(tt)||Zn};return Mn===Ye&&(lt=kn),kn}}function Be(ke){return t.realpath?t.realpath(ke):ke}function Ve(ke,_t){if(T(_t)!==void 0){ht();return}const Ft=D(_t);if(!Ft)return;if(!t.directoryExists){ht();return}const it=I(ke),Ye={fileExists:t.fileExists(_t),directoryExists:t.directoryExists(_t)};return Ye.directoryExists||V(Ft.sortedAndCanonicalizedDirectories,m(it))?ht():Le(Ft,it,Ye.fileExists),Ye}function pt(ke,_t,Dt){if(Dt===1)return;const Ft=D(_t);Ft&&Le(Ft,I(ke),Dt===0)}function Le(ke,_t,Dt){const Ft=ke.sortedAndCanonicalizedFiles,it=m(_t);if(Dt)d0(Ft,it,Fp)&&ke.files.push(_t);else{const Ye=ZS(Ft,it,Of,Fp);if(Ye>=0){Ft.splice(Ye,1);const ut=ke.files.findIndex(lt=>m(lt)===it);ke.files.splice(ut,1)}}}function ht(){l.clear()}}function d4(t,r,s,l,m){var y;const T=QT(((y=r==null?void 0:r.configFile)==null?void 0:y.extendedSourceFiles)||Zn,m);s.forEach((D,I)=>{T.has(I)||(D.projects.delete(t),D.close())}),T.forEach((D,I)=>{const W=s.get(I);W?W.projects.add(t):s.set(I,{projects:new Set([t]),watcher:l(D,I),close:()=>{const O=s.get(I);!O||O.projects.size!==0||(O.watcher.close(),s.delete(I))}})})}function zme(t,r){r.forEach(s=>{s.projects.delete(t)&&s.close()})}function C$(t,r,s){t.delete(r)&&t.forEach(({extendedResult:l},m)=>{var y;(y=l.extendedSourceFiles)!=null&&y.some(T=>s(T)===r)&&C$(t,m,s)})}function kct(t,r,s){const l=new Map(t);a6(r,l,{createNewValue:s,onDeleteValue:Ib})}function Jae(t,r,s){const l=t.getMissingFilePaths(),m=QT(l,Of,xT);a6(r,m,{createNewValue:s,onDeleteValue:Ib})}function D$(t,r,s){a6(t,r,{createNewValue:l,onDeleteValue:dC,onExistingValue:m});function l(y,T){return{watcher:s(y,T),flags:T}}function m(y,T,D){y.flags!==T&&(y.watcher.close(),t.set(D,l(D,T)))}}function VQ({watchedDirPath:t,fileOrDirectory:r,fileOrDirectoryPath:s,configFileName:l,options:m,program:y,extraFileExtensions:T,currentDirectory:D,useCaseSensitiveFileNames:I,writeLog:W,toPath:O}){const V=H4e(s);if(!V)return W(`Project: ${l} Detected ignored path: ${r}`),!0;if(s=V,s===t)return!1;if(e7(s)&&!HSe(r,m,T))return W(`Project: ${l} Detected file add/remove of non supported extension: ${r}`),!0;if(JUe(r,m.configFile.configFileSpecs,Su(qc(l),D),I,D))return W(`Project: ${l} Detected excluded file: ${r}`),!0;if(!y||Kg(m)||m.outDir)return!1;if(iT(s)){if(m.declarationDir)return!1}else if(!ws(s,iJ))return!1;const ee=wg(s),te=ls(y)?void 0:Gme(y)?y.getProgramOrUndefined():y,oe=!te&&!ls(y)?y:void 0;if(de(ee+".ts")||de(ee+".tsx"))return W(`Project: ${l} Detected output file: ${r}`),!0;return!1;function de(ue){return te?!!te.getSourceFileByPath(ue):oe?oe.getState().fileInfos.has(ue):!!lr(y,Ne=>O(Ne)===ue)}}function Gme(t){return!!t.getState}function N4e(t,r){return t?t.isEmittedFile(r):!1}function jme(t,r,s,l){ETe(r===2?s:ku);const m={watchFile:(de,ue,Ne,Be)=>t.watchFile(de,ue,Ne,Be),watchDirectory:(de,ue,Ne,Be)=>t.watchDirectory(de,ue,(Ne&1)!==0,Be)},y=r!==0?{watchFile:te("watchFile"),watchDirectory:te("watchDirectory")}:void 0,T=r===2?{watchFile:V,watchDirectory:ee}:y||m,D=r===2?O:Tse;return{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")};function I(de){return(ue,Ne,Be,Ve,pt,Le)=>{var ht;return Fpe(ue,de==="watchFile"?Ve==null?void 0:Ve.excludeFiles:Ve==null?void 0:Ve.excludeDirectories,W(),((ht=t.getCurrentDirectory)==null?void 0:ht.call(t))||"")?D(ue,Be,Ve,pt,Le):T[de].call(void 0,ue,Ne,Be,Ve,pt,Le)}}function W(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function O(de,ue,Ne,Be,Ve){return s(`ExcludeWatcher:: Added:: ${oe(de,ue,Ne,Be,Ve,l)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${oe(de,ue,Ne,Be,Ve,l)}`)}}function V(de,ue,Ne,Be,Ve,pt){s(`FileWatcher:: Added:: ${oe(de,Ne,Be,Ve,pt,l)}`);const Le=y.watchFile(de,ue,Ne,Be,Ve,pt);return{close:()=>{s(`FileWatcher:: Close:: ${oe(de,Ne,Be,Ve,pt,l)}`),Le.close()}}}function ee(de,ue,Ne,Be,Ve,pt){const Le=`DirectoryWatcher:: Added:: ${oe(de,Ne,Be,Ve,pt,l)}`;s(Le);const ht=cf(),ke=y.watchDirectory(de,ue,Ne,Be,Ve,pt),_t=cf()-ht;return s(`Elapsed:: ${_t}ms ${Le}`),{close:()=>{const Dt=`DirectoryWatcher:: Close:: ${oe(de,Ne,Be,Ve,pt,l)}`;s(Dt);const Ft=cf();ke.close();const it=cf()-Ft;s(`Elapsed:: ${it}ms ${Dt}`)}}}function te(de){return(ue,Ne,Be,Ve,pt,Le)=>m[de].call(void 0,ue,(...ht)=>{const ke=`${de==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ht[0]} ${ht[1]!==void 0?ht[1]:""}:: ${oe(ue,Be,Ve,pt,Le,l)}`;s(ke);const _t=cf();Ne.call(void 0,...ht);const Dt=cf()-_t;s(`Elapsed:: ${Dt}ms ${ke}`)},Be,Ve,pt,Le)}function oe(de,ue,Ne,Be,Ve,pt){return`WatchInfo: ${de} ${ue} ${JSON.stringify(Ne)} ${pt?pt(Be,Ve):Ve===void 0?Be:`${Be} ${Ve}`}`}}function jW(t){const r=t==null?void 0:t.fallbackPolling;return{watchFile:r!==void 0?r:1}}function dC(t){t.watcher.close()}var w4e,Vme,mxe=G({"src/compiler/watchUtilities.ts"(){Ad(),w4e=(t=>(t[t.None=0]="None",t[t.Partial=1]="Partial",t[t.Full=2]="Full",t))(w4e||{}),Vme=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(Vme||{})}});function UQ(t,r,s="tsconfig.json"){return ok(t,l=>{const m=tf(l,s);return r(m)?m:void 0})}function YE(t,r){const s=qc(r),l=mm(t)?t:tf(s,t);return Fd(l)}function Ume(t,r,s){let l;return Ot(t,y=>{const T=bN(y,r);if(T.pop(),!l){l=T;return}const D=Math.min(l.length,T.length);for(let I=0;I{let T;try{jf("beforeIORead"),T=t(l,r().charset),jf("afterIORead"),dd("I/O Read","beforeIORead","afterIORead")}catch(D){y&&y(D.message),T=""}return T!==void 0?Ape(l,T,m,s):void 0}}function Jme(t,r,s){return(l,m,y,T)=>{try{jf("beforeIOWrite"),Lde(l,m,y,t,r,s),jf("afterIOWrite"),dd("I/O Write","beforeIOWrite","afterIOWrite")}catch(D){T&&T(D.message)}}}function HQ(t,r,s=m0){const l=new Map,m=_v(s.useCaseSensitiveFileNames);function y(O){return l.has(O)?!0:(W.directoryExists||s.directoryExists)(O)?(l.set(O,!0),!0):!1}function T(){return qc(Fd(s.getExecutingFilePath()))}const D=JE(t),I=s.realpath&&(O=>s.realpath(O)),W={getSourceFile:R4e(O=>W.readFile(O),()=>t,r),getDefaultLibLocation:T,getDefaultLibFileName:O=>tf(T(),qre(O)),writeFile:Jme((O,V,ee)=>s.writeFile(O,V,ee),O=>(W.createDirectory||s.createDirectory)(O),O=>y(O)),getCurrentDirectory:Pd(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:m,getNewLine:()=>D,fileExists:O=>s.fileExists(O),readFile:O=>s.readFile(O),trace:O=>s.write(O+D),directoryExists:O=>s.directoryExists(O),getEnvironmentVariable:O=>s.getEnvironmentVariable?s.getEnvironmentVariable(O):"",getDirectories:O=>s.getDirectories(O),realpath:I,readDirectory:(O,V,ee,te,oe)=>s.readDirectory(O,V,ee,te,oe),createDirectory:O=>s.createDirectory(O),createHash:wc(s,s.createHash)};return W}function JQ(t,r,s){const l=t.readFile,m=t.fileExists,y=t.directoryExists,T=t.createDirectory,D=t.writeFile,I=new Map,W=new Map,O=new Map,V=new Map,ee=de=>{const ue=r(de),Ne=I.get(ue);return Ne!==void 0?Ne!==!1?Ne:void 0:te(ue,de)},te=(de,ue)=>{const Ne=l.call(t,ue);return I.set(de,Ne!==void 0?Ne:!1),Ne};t.readFile=de=>{const ue=r(de),Ne=I.get(ue);return Ne!==void 0?Ne!==!1?Ne:void 0:!Pg(de,".json")&&!BQ(de)?l.call(t,de):te(ue,de)};const oe=s?(de,ue,Ne,Be)=>{const Ve=r(de),pt=typeof ue=="object"?ue.impliedNodeFormat:void 0,Le=V.get(pt),ht=Le==null?void 0:Le.get(Ve);if(ht)return ht;const ke=s(de,ue,Ne,Be);return ke&&(iT(de)||Pg(de,".json"))&&V.set(pt,(Le||new Map).set(Ve,ke)),ke}:void 0;return t.fileExists=de=>{const ue=r(de),Ne=W.get(ue);if(Ne!==void 0)return Ne;const Be=m.call(t,de);return W.set(ue,!!Be),Be},D&&(t.writeFile=(de,ue,...Ne)=>{const Be=r(de);W.delete(Be);const Ve=I.get(Be);Ve!==void 0&&Ve!==ue?(I.delete(Be),V.forEach(pt=>pt.delete(Be))):oe&&V.forEach(pt=>{const Le=pt.get(Be);Le&&Le.text!==ue&&pt.delete(Be)}),D.call(t,de,ue,...Ne)}),y&&(t.directoryExists=de=>{const ue=r(de),Ne=O.get(ue);if(Ne!==void 0)return Ne;const Be=y.call(t,de);return O.set(ue,!!Be),Be},T&&(t.createDirectory=de=>{const ue=r(de);O.delete(ue),T.call(t,de)})),{originalReadFile:l,originalFileExists:m,originalDirectoryExists:y,originalCreateDirectory:T,originalWriteFile:D,getSourceFileWithCache:oe,readFileWithCache:ee}}function M4e(t,r,s){let l;return l=Oi(l,t.getConfigFileParsingDiagnostics()),l=Oi(l,t.getOptionsDiagnostics(s)),l=Oi(l,t.getSyntacticDiagnostics(r,s)),l=Oi(l,t.getGlobalDiagnostics(s)),l=Oi(l,t.getSemanticDiagnostics(r,s)),gv(t.getCompilerOptions())&&(l=Oi(l,t.getDeclarationDiagnostics(r,s))),P8(l||Zn)}function gxe(t,r){let s="";for(const l of t)s+=$ae(l,r);return s}function $ae(t,r){const s=`${fX(t)} TS${t.code}: ${p4(t.messageText,r.getNewLine())}${r.getNewLine()}`;if(t.file){const{line:l,character:m}=Ah(t.file,t.start),y=t.file.fileName;return`${r7(y,r.getCurrentDirectory(),D=>r.getCanonicalFileName(D))}(${l+1},${m+1}): `+s}return s}function $me(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return ce.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function NR(t,r){return r+t+Exe}function L4e(t,r,s,l,m,y){const{line:T,character:D}=Ah(t,r),{line:I,character:W}=Ah(t,r+s),O=Ah(t,t.text.length).line,V=I-T>=4;let ee=(I+1+"").length;V&&(ee=Math.max(ZQ.length,ee));let te="";for(let oe=T;oe<=I;oe++){te+=y.getNewLine(),V&&T+1s.getCanonicalFileName(I)):t.fileName;let D="";return D+=l(T,"\x1B[96m"),D+=":",D+=l(`${m+1}`,"\x1B[93m"),D+=":",D+=l(`${y+1}`,"\x1B[93m"),D}function qme(t,r){let s="";for(const l of t){if(l.file){const{file:m,start:y}=l;s+=hxe(m,y,r),s+=" - "}if(s+=NR(fX(l),$me(l.category)),s+=NR(` TS${l.code}: `,"\x1B[90m"),s+=p4(l.messageText,r.getNewLine()),l.file&&l.code!==w.File_appears_to_be_binary.code&&(s+=r.getNewLine(),s+=L4e(l.file,l.start,l.length,"",$me(l.category),r)),l.relatedInformation){s+=r.getNewLine();for(const{file:m,start:y,length:T,messageText:D}of l.relatedInformation)m&&(s+=r.getNewLine(),s+=Kme+hxe(m,y,r),s+=L4e(m,y,T,ose,"\x1B[96m",r)),s+=r.getNewLine(),s+=ose+p4(D,r.getNewLine())}s+=r.getNewLine()}return s}function p4(t,r,s=0){if(As(t))return t;if(t===void 0)return"";let l="";if(s){l+=r;for(let m=0;ms4(y,t,s,l,m,r,T)}}function qQ(t){return As(t)?t:Q0(t.fileName)}function PA(t,r,s,l,m){return{nameAndMode:eZ,resolve:(y,T)=>vQ(y,t,s,l,r,m,T)}}function W3(t,r,s,l,m,y,T,D){if(t.length===0)return Zn;const I=[],W=new Map,O=D(r,s,l,y,T);for(const V of t){const ee=O.nameAndMode.getName(V),te=O.nameAndMode.getMode(V,m),oe=f$(ee,te);let de=W.get(oe);de||W.set(oe,de=O.resolve(ee,te)),I.push(de)}return I}function vxe(t,r){return I$(void 0,t,(s,l)=>s&&r(s,l))}function I$(t,r,s,l){let m;return y(t,r,void 0);function y(T,D,I){if(l){const W=l(T,I);if(W)return W}return Ot(D,(W,O)=>{if(W&&(m!=null&&m.has(W.sourceFile.path)))return;const V=s(W,I,O);return V||!W?V:((m||(m=new Set)).add(W.sourceFile.path),y(W.commandLine.projectReferences,W.references,W))})}}function Xae(t,r,s){const l=t.configFilePath?qc(t.configFilePath):r;return tf(l,`__lib_node_modules_lookup_${s}__.ts`)}function Yae(t){const r=t.split(".");let s=r[1],l=2;for(;r[l]&&r[l]!=="d";)s+=(l===2?"/":"-")+r[l],l++;return"@typescript/lib-"+s}function KQ(t){const r=Q0(t.fileName),s=XG.get(r);return{libName:r,libFileName:s}}function k6(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function yF(t){return t.pos!==void 0}function VW(t,r){var s,l,m,y,T,D;const I=ce.checkDefined(t(r.file)),{kind:W,index:O}=r;let V,ee,te,oe;switch(W){case 3:const de=k$(I,O);if(te=(m=(l=(s=I.resolvedModules)==null?void 0:s.get(de.text,yxe(I,O)))==null?void 0:l.resolvedModule)==null?void 0:m.packageId,de.pos===-1)return{file:I,packageId:te,text:de.text};V=ep(I.text,de.pos),ee=de.end;break;case 4:({pos:V,end:ee}=I.referencedFiles[O]);break;case 5:({pos:V,end:ee,resolutionMode:oe}=I.typeReferenceDirectives[O]),te=(D=(T=(y=I.resolvedTypeReferenceDirectiveNames)==null?void 0:y.get(Q0(I.typeReferenceDirectives[O].fileName),oe||I.impliedNodeFormat))==null?void 0:T.resolvedTypeReferenceDirective)==null?void 0:D.packageId;break;case 7:({pos:V,end:ee}=I.libReferenceDirectives[O]);break;default:return ce.assertNever(W)}return{file:I,pos:V,end:ee,packageId:te}}function Qae(t,r,s,l,m,y,T,D,I,W){if(!t||D!=null&&D()||!fv(t.getRootFileNames(),r))return!1;let O;if(!fv(t.getProjectReferences(),W,oe)||t.getSourceFiles().some(ee)||t.getMissingFilePaths().some(m))return!1;const V=t.getCompilerOptions();if(!qie(V,s)||t.resolvedLibReferences&&wT(t.resolvedLibReferences,(ue,Ne)=>T(Ne)))return!1;if(V.configFile&&s.configFile)return V.configFile.text===s.configFile.text;return!0;function ee(ue){return!te(ue)||y(ue.path)}function te(ue){return ue.version===l(ue.resolvedPath,ue.fileName)}function oe(ue,Ne,Be){return sie(ue,Ne)&&de(t.getResolvedProjectReferences()[Be],ue)}function de(ue,Ne){if(ue){if(ni(O,ue))return!0;const Ve=tse(Ne),pt=I(Ve);return!pt||ue.commandLine.options.configFile!==pt.options.configFile||!fv(ue.commandLine.fileNames,pt.fileNames)?!1:((O||(O=[])).push(ue),!Ot(ue.references,(Le,ht)=>!de(Le,ue.commandLine.projectReferences[ht])))}const Be=tse(Ne);return!I(Be)}}function UW(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function ew(t,r,s,l){const m=HW(t,r,s,l);return typeof m=="object"?m.impliedNodeFormat:m}function HW(t,r,s,l){switch(Jd(l)){case 3:case 99:return ws(t,[".d.mts",".mts",".mjs"])?99:ws(t,[".d.cts",".cts",".cjs"])?1:ws(t,[".d.ts",".ts",".tsx",".js",".jsx"])?m():void 0;default:return}function m(){const y=p$(r,s,l),T=[];y.failedLookupLocations=T,y.affectingLocations=T;const D=eme(t,y);return{impliedNodeFormat:(D==null?void 0:D.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:T,packageJsonScope:D}}}function XQ(t,r){return t?gA(t.getCompilerOptions(),r,hI):!1}function bxe(t,r,s,l,m,y){return{rootNames:t,options:r,host:s,oldProgram:l,configFileParsingDiagnostics:m,typeScriptVersion:y}}function m4(t,r,s,l,m){var y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt;const Le=ls(t)?bxe(t,r,s,l,m):t,{rootNames:ht,options:ke,configFileParsingDiagnostics:_t,projectReferences:Dt,typeScriptVersion:Ft}=Le;let{oldProgram:it}=Le;const Ye=Pd(()=>y_("ignoreDeprecations",w.Invalid_value_for_ignoreDeprecations));let ut,lt,zt,Wt,tt,Mn,kn;const cr=new Map;let un=zg();const on={},pn={};let Or=N3(),Xr,Ut,In,gr,Cr,ei;const Gn=typeof ke.maxNodeModuleJsDepth=="number"?ke.maxNodeModuleJsDepth:0;let Ur=0;const so=new Map,ho=new Map;(y=tu)==null||y.push(tu.Phase.Program,"createProgram",{configFilePath:ke.configFilePath,rootDir:ke.rootDir},!0),jf("beforeProgram");const di=Le.host||Hme(ke),Nc=Sxe(di);let ha=ke.noLib;const ro=Pd(()=>di.getDefaultLibFileName(ke)),Gs=di.getDefaultLibLocation?di.getDefaultLibLocation():qc(ro()),Oc=vY(),_u=di.getCurrentDirectory(),Ku=s3(ke),al=Q9(ke,Ku),Rr=new Map;let mc,Ea,Fi;const ta=di.hasInvalidatedResolutions||bg;di.resolveModuleNameLiterals?(Fi=di.resolveModuleNameLiterals.bind(di),Ea=(T=di.getModuleResolutionCache)==null?void 0:T.call(di)):di.resolveModuleNames?(Fi=(c,u,d,h,S,E)=>di.resolveModuleNames(c.map($Q),u,E==null?void 0:E.map($Q),d,h,S).map(P=>P?P.extension!==void 0?{resolvedModule:P}:{resolvedModule:{...P,extension:SP(P.resolvedFileName)}}:ase),Ea=(D=di.getModuleResolutionCache)==null?void 0:D.call(di)):(Ea=IR(_u,Al,ke),Fi=(c,u,d,h,S)=>W3(c,u,d,h,S,di,Ea,Kae));let $a;if(di.resolveTypeReferenceDirectiveReferences)$a=di.resolveTypeReferenceDirectiveReferences.bind(di);else if(di.resolveTypeReferenceDirectives)$a=(c,u,d,h,S)=>di.resolveTypeReferenceDirectives(c.map(qQ),u,d,h,S==null?void 0:S.impliedNodeFormat).map(E=>({resolvedTypeReferenceDirective:E}));else{const c=T2e(_u,Al,void 0,Ea==null?void 0:Ea.getPackageJsonInfoCache());$a=(u,d,h,S,E)=>W3(u,d,h,S,E,di,c,PA)}const jc=di.hasInvalidatedLibResolutions||bg;let Xu;if(di.resolveLibrary)Xu=di.resolveLibrary.bind(di);else{const c=IR(_u,Al,ke,Ea==null?void 0:Ea.getPackageJsonInfoCache());Xu=(u,d,h)=>S2e(u,d,h,di,c)}const Lo=new Map;let To=new Map,Aa=zg(),sl=!1;const vc=new Map;let er;const Jr=di.useCaseSensitiveFileNames()?new Map:void 0;let li,Ir,_o,xt;const Kn=!!((I=di.useSourceOfProjectReferenceRedirect)!=null&&I.call(di))&&!ke.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:gn,fileExists:qr,directoryExists:mt}=Zae({compilerHost:di,getSymlinkCache:i,useSourceOfProjectReferenceRedirect:Kn,toPath:Un,getResolvedProjectReferences:qd,getSourceOfProjectReferenceRedirect:K_,forEachResolvedProjectReference:bu}),_r=di.readFile.bind(di);(W=tu)==null||W.push(tu.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!it});const Cn=XQ(it,ke);(O=tu)==null||O.pop();let oi;if((V=tu)==null||V.push(tu.Phase.Program,"tryReuseStructureFromOldProgram",{}),oi=Qa(),(ee=tu)==null||ee.pop(),oi!==2){if(ut=[],lt=[],Dt&&(li||(li=Dt.map(zp)),ht.length&&(li==null||li.forEach((c,u)=>{if(!c)return;const d=Kg(c.commandLine.options);if(Kn){if(d||Zp(c.commandLine.options)===0)for(const h of c.commandLine.fileNames)av(h,{kind:1,index:u})}else if(d)av(SA(d,".d.ts"),{kind:2,index:u});else if(Zp(c.commandLine.options)===0){const h=Pd(()=>GQ(c.commandLine,!di.useCaseSensitiveFileNames()));for(const S of c.commandLine.fileNames)!iT(S)&&!Pg(S,".json")&&av(O3(S,c.commandLine,!di.useCaseSensitiveFileNames(),h),{kind:2,index:u})}}))),(te=tu)==null||te.push(tu.Phase.Program,"processRootFiles",{count:ht.length}),Ot(ht,(c,u)=>hi(c,!1,!1,{kind:0,index:u})),(oe=tu)==null||oe.pop(),Ut??(Ut=ht.length?qpe(ke,di):Zn),In=N3(),Ut.length){(de=tu)==null||de.push(tu.Phase.Program,"processTypeReferences",{count:Ut.length});const c=ke.configFilePath?qc(ke.configFilePath):_u,u=tf(c,sse),d=zo(Ut,u);for(let h=0;h{hi(Do(u),!0,!1,{kind:6,index:d})})}er=oc(p2(vc.entries(),([c,u])=>u===void 0?c:void 0)),zt=nh(ut,xe).concat(lt),ut=void 0,lt=void 0}if(ce.assert(!!er),it&&di.onReleaseOldSourceFile){const c=it.getSourceFiles();for(const u of c){const d=Kd(u.resolvedPath);(Cn||!d||d.impliedNodeFormat!==u.impliedNodeFormat||u.resolvedPath===u.path&&d.resolvedPath!==u.path)&&di.onReleaseOldSourceFile(u,it.getCompilerOptions(),!!Kd(u.path))}di.getParsedCommandLine||it.forEachResolvedProjectReference(u=>{Fy(u.sourceFile.path)||di.onReleaseOldSourceFile(u.sourceFile,it.getCompilerOptions(),!1)})}it&&di.onReleaseParsedCommandLine&&I$(it.getProjectReferences(),it.getResolvedProjectReferences(),(c,u,d)=>{const h=(u==null?void 0:u.commandLine.projectReferences[d])||it.getProjectReferences()[d],S=tse(h);Ir!=null&&Ir.has(Un(S))||di.onReleaseParsedCommandLine(S,c,it.getCompilerOptions())}),it=void 0,Cr=void 0;const Qr={getRootFileNames:()=>ht,getSourceFile:c_,getSourceFileByPath:Kd,getSourceFiles:()=>zt,getMissingFilePaths:()=>er,getModuleResolutionCache:()=>Ea,getFilesByNameMap:()=>vc,getCompilerOptions:()=>ke,getSyntacticDiagnostics:Oh,getOptionsDiagnostics:yy,getGlobalDiagnostics:vn,getSemanticDiagnostics:jg,getCachedSemanticDiagnostics:zv,getSuggestionDiagnostics:nm,getDeclarationDiagnostics:Tv,getBindAndCheckDiagnostics:m_,getProgramDiagnostics:Yu,getTypeChecker:x_,getClassifiableNames:mi,getCommonSourceDirectory:rr,emit:q_,getCurrentDirectory:()=>_u,getNodeCount:()=>x_().getNodeCount(),getIdentifierCount:()=>x_().getIdentifierCount(),getSymbolCount:()=>x_().getSymbolCount(),getTypeCount:()=>x_().getTypeCount(),getInstantiationCount:()=>x_().getInstantiationCount(),getRelationCacheSizes:()=>x_().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Xr,getResolvedTypeReferenceDirectives:()=>Or,getAutomaticTypeDirectiveNames:()=>Ut,getAutomaticTypeDirectiveResolutions:()=>In,isSourceFileFromExternalLibrary:Ha,isSourceFileDefaultLibrary:mu,getSourceFileFromReference:yu,getLibFileFromReference:gu,sourceFileToPackageName:To,redirectTargetsMap:Aa,usesUriStyleNodeCoreModules:sl,resolvedLibReferences:gr,getCurrentPackagesMap:()=>ei,typesPackageExists:es,packageBundlesTypes:Ui,isEmittedFile:e,getConfigFileParsingDiagnostics:Qn,getProjectReferences:z_,getResolvedProjectReferences:qd,getProjectReferenceRedirect:k1,getResolvedProjectReferenceToRedirect:ya,getResolvedProjectReferenceByPath:Fy,forEachResolvedProjectReference:bu,isSourceOfProjectReferenceRedirect:ig,emitBuildInfo:ou,fileExists:qr,readFile:_r,directoryExists:mt,getSymlinkCache:i,realpath:(Ve=di.realpath)==null?void 0:Ve.bind(di),useCaseSensitiveFileNames:()=>di.useCaseSensitiveFileNames(),getCanonicalFileName:Al,getFileIncludeReasons:()=>un,structureIsReused:oi,writeFile:vs};return gn(),Xr==null||Xr.forEach(c=>{switch(c.kind){case 1:return Oc.add(ub(c.file&&Kd(c.file),c.fileProcessingReason,c.diagnostic,c.args||Zn));case 0:const{file:u,pos:d,end:h}=VW(Kd,c.reason);return Oc.add(Pp(u,ce.checkDefined(d),ce.checkDefined(h)-d,c.diagnostic,...c.args||Zn));case 2:return c.diagnostics.forEach(S=>Oc.add(S));default:ce.assertNever(c)}}),gh(),jf("afterProgram"),dd("Program","beforeProgram","afterProgram"),(pt=tu)==null||pt.pop(),Qr;function co(){return ei||(ei=new Map,zt.forEach(c=>{c.resolvedModules&&c.resolvedModules.forEach(({resolvedModule:u})=>{u!=null&&u.packageId&&ei.set(u.packageId.name,u.extension===".d.ts"||!!ei.get(u.packageId.name))})}),ei)}function es(c){return co().has(tme(c))}function Ui(c){return!!co().get(c)}function xu(c){var u;(u=c.resolutionDiagnostics)!=null&&u.length&&(Xr??(Xr=[])).push({kind:2,diagnostics:c.resolutionDiagnostics})}function We(c,u,d,h){if(di.resolveModuleNameLiterals||!di.resolveModuleNames)return xu(d);if(!Ea||tb(u))return;const S=Su(c.originalFileName,_u),E=qc(S),P=$e(c),k=Ea.getFromNonRelativeNameCache(u,h,E,P);k&&xu(k)}function Re(c,u,d){var h,S;if(!c.length)return Zn;const E=Su(u.originalFileName,_u),P=$e(u);(h=tu)==null||h.push(tu.Phase.Program,"resolveModuleNamesWorker",{containingFileName:E}),jf("beforeResolveModule");const k=Fi(c,E,P,ke,u,d);return jf("afterResolveModule"),dd("ResolveModule","beforeResolveModule","afterResolveModule"),(S=tu)==null||S.pop(),k}function wt(c,u,d){var h,S;if(!c.length)return[];const E=As(u)?void 0:u,P=As(u)?u:Su(u.originalFileName,_u),k=E&&$e(E);(h=tu)==null||h.push(tu.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:P}),jf("beforeResolveTypeReference");const F=$a(c,P,k,ke,E,d);return jf("afterResolveTypeReference"),dd("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(S=tu)==null||S.pop(),F}function $e(c){const u=ya(c.originalFileName);if(u||!iT(c.originalFileName))return u;const d=Zt(c.path);if(d)return d;if(!di.realpath||!ke.preserveSymlinks||!Ub(c.originalFileName,ix))return;const h=Un(di.realpath(c.originalFileName));return h===c.path?void 0:Zt(h)}function Zt(c){const u=K_(c);if(As(u))return ya(u);if(u)return bu(d=>{const h=Kg(d.commandLine.options);if(h)return Un(h)===c?d:void 0})}function xe(c,u){return pf(an(c),an(u))}function an(c){if(GC(Gs,c.fileName,!1)){const u=Iy(c.fileName);if(u==="lib.d.ts"||u==="lib.es6.d.ts")return 0;const d=DM(Ez(u,"lib."),".d.ts"),h=aQ.indexOf(d);if(h!==-1)return h+1}return aQ.length+2}function Un(c){return _h(c,_u,Al)}function rr(){if(tt===void 0){const c=gi(zt,u=>L7(u,Qr));tt=gF(ke,()=>Qo(c,u=>u.isDeclarationFile?void 0:u.fileName),_u,Al,u=>N_(c,u))}return tt}function mi(){var c;if(!kn){x_(),kn=new Set;for(const u of zt)(c=u.classifiableNames)==null||c.forEach(d=>kn.add(d))}return kn}function Ji(c,u){var d;if(oi===0&&!u.ambientModuleNames.length)return Re(c,u,void 0);const h=it&&it.getSourceFile(u.fileName);if(h!==u&&u.resolvedModules){const X=[];for(const ie of c){const ae=u.resolvedModules.get(ie.text,kA(u,ie));X.push(ae)}return X}let S,E,P;const k=ase;for(let X=0;X{const h=(u?u.commandLine.projectReferences:Dt)[d],S=zp(h);return c?!S||S.sourceFile!==c.sourceFile||!fv(c.commandLine.fileNames,S.commandLine.fileNames):S!==void 0},(c,u)=>{const d=u?Fy(u.sourceFile.path).commandLine.projectReferences:Dt;return!fv(c,d,sie)})}function Qa(){var c;if(!it)return 0;const u=it.getCompilerOptions();if(g9(u,ke))return 0;const d=it.getRootFileNames();if(!fv(d,ht)||!Ca())return 0;Dt&&(li=Dt.map(zp));const h=[],S=[];if(oi=2,it.getMissingFilePaths().some(J=>di.fileExists(J)))return 0;const E=it.getSourceFiles();let P;(J=>{J[J.Exists=0]="Exists",J[J.Modified=1]="Modified"})(P||(P={}));const k=new Map;for(const J of E){const X=Sv(J.fileName,Ea,di,ke);let ie=di.getSourceFileByPath?di.getSourceFileByPath(J.fileName,J.resolvedPath,X,void 0,Cn):di.getSourceFile(J.fileName,X,void 0,Cn);if(!ie)return 0;ie.packageJsonLocations=(c=X.packageJsonLocations)!=null&&c.length?X.packageJsonLocations:void 0,ie.packageJsonScope=X.packageJsonScope,ce.assert(!ie.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ae;if(J.redirectInfo){if(ie!==J.redirectInfo.unredirected)return 0;ae=!1,ie=J}else if(it.redirectTargetsMap.has(J.path)){if(ie!==J)return 0;ae=!1}else ae=ie!==J;ie.path=J.path,ie.originalFileName=J.originalFileName,ie.resolvedPath=J.resolvedPath,ie.fileName=J.fileName;const ve=it.sourceFileToPackageName.get(J.path);if(ve!==void 0){const we=k.get(ve),Fe=ae?1:0;if(we!==void 0&&Fe===1||we===1)return 0;k.set(ve,Fe)}ae?(J.impliedNodeFormat!==ie.impliedNodeFormat?oi=1:fv(J.libReferenceDirectives,ie.libReferenceDirectives,pa)?J.hasNoDefaultLib!==ie.hasNoDefaultLib?oi=1:fv(J.referencedFiles,ie.referencedFiles,pa)?(bc(ie),fv(J.imports,ie.imports,Zc)&&fv(J.moduleAugmentations,ie.moduleAugmentations,Zc)?(J.flags&12582912)!==(ie.flags&12582912)?oi=1:fv(J.typeReferenceDirectives,ie.typeReferenceDirectives,pa)||(oi=1):oi=1):oi=1:oi=1,S.push({oldFile:J,newFile:ie})):ta(J.path)&&(oi=1,S.push({oldFile:J,newFile:ie})),h.push(ie)}if(oi!==2)return oi;const F=S.map(J=>J.oldFile);for(const J of E)if(!ni(F,J))for(const X of J.ambientModuleNames)cr.set(X,J.fileName);for(const{oldFile:J,newFile:X}of S){const ie=rse(X),ae=Ji(ie,X);fR(ie,X,ae,J.resolvedModules,qz,P$)?(oi=1,X.resolvedModules=aae(X,ie,ae,P$)):X.resolvedModules=J.resolvedModules;const we=X.typeReferenceDirectives,Fe=zo(we,X);fR(we,X,Fe,J.resolvedTypeReferenceDirectiveNames,KTe,eZ)?(oi=1,X.resolvedTypeReferenceDirectiveNames=aae(X,we,Fe,eZ)):X.resolvedTypeReferenceDirectiveNames=J.resolvedTypeReferenceDirectiveNames}if(oi!==2)return oi;if(Jb(u,ke)||it.resolvedLibReferences&&wT(it.resolvedLibReferences,(J,X)=>Za(X).actual!==J.actual))return 1;if(di.hasChangedAutomaticTypeDirectiveNames){if(di.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ut=qpe(ke,di),!fv(it.getAutomaticTypeDirectiveNames(),Ut))return 1;er=it.getMissingFilePaths(),ce.assert(h.length===it.getSourceFiles().length);for(const J of h)vc.set(J.path,J);return it.getFilesByNameMap().forEach((J,X)=>{if(!J){vc.set(X,J);return}if(J.path===X){it.isSourceFileFromExternalLibrary(J)&&ho.set(J.path,!0);return}vc.set(X,vc.get(J.path))}),zt=h,un=it.getFileIncludeReasons(),Xr=it.getFileProcessingDiagnostics(),Or=it.getResolvedTypeReferenceDirectives(),Ut=it.getAutomaticTypeDirectiveNames(),In=it.getAutomaticTypeDirectiveResolutions(),To=it.sourceFileToPackageName,Aa=it.redirectTargetsMap,sl=it.usesUriStyleNodeCoreModules,gr=it.resolvedLibReferences,ei=it.getCurrentPackagesMap(),2}function Ks(c){return{getPrependNodes:fp,getCanonicalFileName:Al,getCommonSourceDirectory:Qr.getCommonSourceDirectory,getCompilerOptions:Qr.getCompilerOptions,getCurrentDirectory:()=>_u,getSourceFile:Qr.getSourceFile,getSourceFileByPath:Qr.getSourceFileByPath,getSourceFiles:Qr.getSourceFiles,getLibFileFromReference:Qr.getLibFileFromReference,isSourceFileFromExternalLibrary:Ha,getResolvedProjectReferenceToRedirect:ya,getProjectReferenceRedirect:k1,isSourceOfProjectReferenceRedirect:ig,getSymlinkCache:i,writeFile:c||vs,isEmitBlocked:Ma,readFile:u=>di.readFile(u),fileExists:u=>{const d=Un(u);return Kd(d)?!0:ni(er,d)?!1:di.fileExists(u)},useCaseSensitiveFileNames:()=>di.useCaseSensitiveFileNames(),getBuildInfo:u=>{var d;return(d=Qr.getBuildInfo)==null?void 0:d.call(Qr,u)},getSourceFileFromReference:(u,d)=>Qr.getSourceFileFromReference(u,d),redirectTargetsMap:Aa,getFileIncludeReasons:Qr.getFileIncludeReasons,createHash:wc(di,di.createHash)}}function vs(c,u,d,h,S,E){di.writeFile(c,u,d,h,S,E)}function ou(c){var u,d;ce.assert(!Kg(ke)),(u=tu)==null||u.push(tu.Phase.Emit,"emitBuildInfo",{},!0),jf("beforeEmit");const h=zW(pxe,Ks(c),void 0,uxe,!1,!0);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),(d=tu)==null||d.pop(),h}function qd(){return li}function z_(){return Dt}function fp(){return YQ(Dt,(c,u)=>{var d;return(d=li[u])==null?void 0:d.commandLine},c=>{const u=Un(c),d=Kd(u);return d?d.text:vc.has(u)?void 0:di.readFile(u)},di)}function Ha(c){return!!ho.get(c.path)}function mu(c){if(!c.isDeclarationFile)return!1;if(c.hasNoDefaultLib)return!0;if(!ke.noLib)return!1;const u=di.useCaseSensitiveFileNames()?ZA:pN;return ke.lib?gt(ke.lib,d=>u(c.fileName,gr.get(d).actual)):u(c.fileName,ro())}function x_(){return Mn||(Mn=B2e(Qr))}function q_(c,u,d,h,S,E){var P,k;(P=tu)==null||P.push(tu.Phase.Emit,"emit",{path:c==null?void 0:c.path},!0);const F=uS(()=>U0(Qr,c,u,d,h,S,E));return(k=tu)==null||k.pop(),F}function Ma(c){return Rr.has(Un(c))}function U0(c,u,d,h,S,E,P){if(!P){const $=ese(c,u,d,h);if($)return $}const k=x_().getEmitResolver(Kg(ke)?void 0:u,h);jf("beforeEmit");const F=zW(k,Ks(d),u,x4e(ke,E,S),S,!1,P);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),F}function c_(c){return Kd(Un(c))}function Kd(c){return vc.get(c)||void 0}function iy(c,u,d){return P8(c?u(c,d):ea(Qr.getSourceFiles(),h=>(d&&d.throwIfCancellationRequested(),u(h,d))))}function Oh(c,u){return iy(c,Kh,u)}function jg(c,u){return iy(c,H0,u)}function zv(c){var u;return c?(u=on.perFile)==null?void 0:u.get(c.path):on.allDiagnostics}function m_(c,u){return fx(c,u)}function Yu(c){var u;if(c3(c,ke,Qr))return Zn;const d=Oc.getDiagnostics(c.fileName);return(u=c.commentDirectives)!=null&&u.length?lm(c,c.commentDirectives,d).diagnostics:d}function Tv(c,u){const d=Qr.getCompilerOptions();return!c||Kg(d)?fS(c,u):iy(c,oh,u)}function Kh(c){return v1(c)?(c.additionalSyntacticDiagnostics||(c.additionalSyntacticDiagnostics=hy(c)),Hi(c.additionalSyntacticDiagnostics,c.parseDiagnostics)):c.parseDiagnostics}function uS(c){try{return c()}catch(u){throw u instanceof Nz&&(Mn=void 0),u}}function H0(c,u){return Hi(Txe(fx(c,u),ke),Yu(c))}function fx(c,u){return vE(c,u,on,rd)}function rd(c,u){return uS(()=>{if(c3(c,ke,Qr))return Zn;const d=x_();ce.assert(!!c.bindDiagnostics);const S=(c.scriptKind===1||c.scriptKind===2)&&tW(c,ke),E=y2(c,ke.checkJs),k=!(!!c.checkJsDirective&&c.checkJsDirective.enabled===!1)&&(c.scriptKind===3||c.scriptKind===4||c.scriptKind===5||E||S||c.scriptKind===7);let F=k?c.bindDiagnostics:Zn,$=k?d.getDiagnostics(c,u):Zn;return E&&(F=gi(F,J=>cse.has(J.code)),$=gi($,J=>cse.has(J.code))),Mg(c,k&&!E,F,$,S?c.jsDocDiagnostics:void 0)})}function Mg(c,u,...d){var h;const S=Gf(d);if(!u||!((h=c.commentDirectives)!=null&&h.length))return S;const{diagnostics:E,directives:P}=lm(c,c.commentDirectives,S);for(const k of P.getUnusedExpectations())E.push(oY(c,k.range,w.Unused_ts_expect_error_directive));return E}function lm(c,u,d){const h=Lv(c,u);return{diagnostics:d.filter(E=>po(E,h)===-1),directives:h}}function nm(c,u){return uS(()=>x_().getSuggestionDiagnostics(c,u))}function po(c,u){const{file:d,start:h}=c;if(!d)return-1;const S=q1(d);let E=Sb(S,h).line-1;for(;E>=0;){if(u.markUsed(E))return E;const P=d.text.slice(S[E],S[E+1]).trim();if(P!==""&&!/^(\s*)\/\/(.*)$/.test(P))return-1;E--}return-1}function hy(c){return uS(()=>{const u=[];return d(c,c),k3(c,d,h),u;function d(k,F){switch(F.kind){case 169:case 172:case 174:if(F.questionToken===k)return u.push(P(k,w.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(F.type===k)return u.push(P(k,w.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(k.kind){case 273:if(k.isTypeOnly)return u.push(P(F,w._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(k.isTypeOnly)return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(k.isTypeOnly)return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,oS(k)?"import...type":"export...type")),"skip";break;case 271:return u.push(P(k,w.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(k.isExportEquals)return u.push(P(k,w.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(k.token===119)return u.push(P(k,w.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const J=Nd(120);return ce.assertIsDefined(J),u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,J)),"skip";case 267:const X=k.flags&32?Nd(145):Nd(144);return ce.assertIsDefined(X),u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,X)),"skip";case 265:return u.push(P(k,w.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return k.body?void 0:(u.push(P(k,w.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const ie=ce.checkDefined(Nd(94));return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,ie)),"skip";case 235:return u.push(P(k,w.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return u.push(P(k.type,w.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return u.push(P(k.type,w.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:ce.fail()}}function h(k,F){if(BEe(F)){const $=lr(F.modifiers,Qf);$&&u.push(P($,w.Decorators_are_not_valid_here))}else if(I3(F)&&F.modifiers){const $=Ho(F.modifiers,Qf);if($>=0){if(Pu(F)&&!ke.experimentalDecorators)u.push(P(F.modifiers[$],w.Decorators_are_not_valid_here));else if(Kc(F)){const J=Ho(F.modifiers,fW);if(J>=0){const X=Ho(F.modifiers,xn);if($>J&&X>=0&&$=0&&$=0&&u.push(ml(P(F.modifiers[ie],w.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),P(F.modifiers[$],w.Decorator_used_before_export_here)))}}}}}switch(F.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(k===F.typeParameters)return u.push(E(k,w.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(k===F.modifiers)return S(F.modifiers,F.kind===243),"skip";break;case 172:if(k===F.modifiers){for(const $ of k)bd($)&&$.kind!==126&&$.kind!==129&&u.push(P($,w.The_0_modifier_can_only_be_used_in_TypeScript_files,Nd($.kind)));return"skip"}break;case 169:if(k===F.modifiers&>(k,bd))return u.push(E(k,w.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(k===F.typeArguments)return u.push(E(k,w.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function S(k,F){for(const $ of k)switch($.kind){case 87:if(F)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:u.push(P($,w.The_0_modifier_can_only_be_used_in_TypeScript_files,Nd($.kind)));break;case 126:case 95:case 90:case 129:}}function E(k,F,...$){const J=k.pos;return Pp(c,J,k.end-J,F,...$)}function P(k,F,...$){return M0(c,k,F,...$)}})}function fS(c,u){return vE(c,u,pn,GT)}function GT(c,u){return uS(()=>{const d=x_().getEmitResolver(c,u);return eJe(Ks(ku),d,c)||Zn})}function vE(c,u,d,h){var S;const E=c?(S=d.perFile)==null?void 0:S.get(c.path):d.allDiagnostics;if(E)return E;const P=h(c,u);return c?(d.perFile||(d.perFile=new Map)).set(c.path,P):d.allDiagnostics=P,P}function oh(c,u){return c.isDeclarationFile?[]:fS(c,u)}function yy(){return P8(Hi(Oc.getGlobalDiagnostics(),_e()))}function _e(){if(!ke.configFile)return Zn;let c=Oc.getDiagnostics(ke.configFile.fileName);return bu(u=>{c=Hi(c,Oc.getDiagnostics(u.sourceFile.fileName))}),c}function vn(){return ht.length?P8(x_().getGlobalDiagnostics().slice()):Zn}function Qn(){return _t||Zn}function hi(c,u,d,h){Lg(Fd(c),u,d,void 0,h)}function pa(c,u){return c.fileName===u.fileName}function Zc(c,u){return c.kind===80?u.kind===80&&c.escapedText===u.escapedText:u.kind===11&&c.text===u.text}function ka(c,u){const d=be.createStringLiteral(c),h=be.createImportDeclaration(void 0,void 0,d,void 0);return _s(h,2),kl(d,h),kl(h,u),d.flags&=-17,h.flags&=-17,d}function bc(c){if(c.imports)return;const u=v1(c),d=Wv(c);let h,S,E;if((F0(ke)||d)&&!c.isDeclarationFile){ke.importHelpers&&(h=[ka(_6,c)]);const J=HH(UH(ke,c),ke);J&&(h||(h=[])).push(ka(J,c))}for(const J of c.statements)k(J,!1);const P=u&&GH(ke);(c.flags&4194304||P)&&F(c),c.imports=h||Zn,c.moduleAugmentations=S||Zn,c.ambientModuleNames=E||Zn;return;function k(J,X){if(z8(J)){const ie=pY(J);ie&&Wp(ie)&&ie.text&&(!X||!tb(ie.text))&&(Q2(J,!1),h=ur(h,ie),!sl&&Ur===0&&!c.isDeclarationFile&&(sl=xf(ie.text,"node:")))}else if(xp(J)&&Ov(J)&&(X||il(J,2)||c.isDeclarationFile)){J.name.parent=J;const ie=aC(J.name);if(d||X&&!tb(ie))(S||(S=[])).push(J.name);else if(!X){c.isDeclarationFile&&(E||(E=[])).push(ie);const ae=J.body;if(ae)for(const ve of ae.statements)k(ve,!0)}}}function F(J){const X=/import|require/g;for(;X.exec(J.text)!==null;){const ie=$(J,X.lastIndex);P&&eT(ie,!0)||WE(ie)&&ie.arguments.length>=1&&sp(ie.arguments[0])?(Q2(ie,!1),h=ur(h,ie.arguments[0])):BE(ie)&&(Q2(ie,!1),h=ur(h,ie.argument.literal))}}function $(J,X){let ie=J;const ae=ve=>{if(ve.pos<=X&&(XPg(S,P))){d&&(eD(S)?d(w.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,c):d(w.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,c,"'"+Gf(Ku).join("', '")+"'"));return}const E=u(c);if(d)if(E)k6(h)&&S===di.getCanonicalFileName(Kd(h.file).fileName)&&d(w.A_file_cannot_have_a_reference_to_itself);else{const P=k1(c);P?d(w.Output_file_0_has_not_been_built_from_source_file_1,P,c):d(w.File_0_not_found,c)}return E}else{const S=ke.allowNonTsExtensions&&u(c);if(S)return S;if(d&&ke.allowNonTsExtensions){d(w.File_0_not_found,c);return}const E=Ot(Ku[0],P=>u(c+P));return d&&!E&&d(w.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,c,"'"+Gf(Ku).join("', '")+"'"),E}}function Lg(c,u,d,h,S){Xm(c,E=>Eg(E,u,d,S,h),(E,...P)=>E0(void 0,S,E,P),S)}function av(c,u){return Lg(c,!1,!1,void 0,u)}function Fh(c,u,d){!k6(d)&>(un.get(u.path),k6)?E0(u,d,w.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[u.fileName,c]):E0(u,d,w.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[c,u.fileName])}function J0(c,u,d,h,S,E,P){var k;const F=DP.createRedirectedSourceFile({redirectTarget:c,unredirected:u});return F.fileName=d,F.path=h,F.resolvedPath=S,F.originalFileName=E,F.packageJsonLocations=(k=P.packageJsonLocations)!=null&&k.length?P.packageJsonLocations:void 0,F.packageJsonScope=P.packageJsonScope,ho.set(h,Ur>0),F}function Eg(c,u,d,h,S){var E,P;(E=tu)==null||E.push(tu.Phase.Program,"findSourceFile",{fileName:c,isDefaultLib:u||void 0,fileIncludeKind:hX[h.kind]});const k=jT(c,u,d,h,S);return(P=tu)==null||P.pop(),k}function Sv(c,u,d,h){const S=HW(Su(c,_u),u==null?void 0:u.getPackageJsonInfoCache(),d,h),E=iu(h),P=q9(h);return typeof S=="object"?{...S,languageVersion:E,setExternalModuleIndicator:P}:{languageVersion:E,impliedNodeFormat:S,setExternalModuleIndicator:P}}function jT(c,u,d,h,S){var E;const P=Un(c);if(Kn){let X=K_(P);if(!X&&di.realpath&&ke.preserveSymlinks&&iT(c)&&Ub(c,ix)){const ie=Un(di.realpath(c));ie!==P&&(X=K_(ie))}if(X){const ie=As(X)?Eg(X,u,d,h,S):void 0;return ie&&S0(ie,P,void 0),ie}}const k=c;if(vc.has(P)){const X=vc.get(P);if(Ev(X||void 0,h),X&&ke.forceConsistentCasingInFileNames!==!1){const ie=X.fileName;Un(ie)!==Un(c)&&(c=k1(c)||c);const ve=U_e(ie,_u),we=U_e(c,_u);ve!==we&&Fh(c,X,h)}return X&&ho.get(X.path)&&Ur===0?(ho.set(X.path,!1),ke.noResolve||(bt(X,u),ir(X)),ke.noLib||Qc(X),so.set(X.path,!1),du(X)):X&&so.get(X.path)&&UrE0(void 0,h,w.Cannot_read_file_0_Colon_1,[c,X]),Cn);if(S){const X=pP(S),ie=Lo.get(X);if(ie){const ae=J0(ie,J,c,P,Un(c),k,$);return Aa.add(ie.path,c),S0(ae,P,F),Ev(ae,h),To.set(P,YU(S)),lt.push(ae),ae}else J&&(Lo.set(X,J),To.set(P,YU(S)))}if(S0(J,P,F),J){if(ho.set(P,Ur>0),J.fileName=c,J.path=P,J.resolvedPath=Un(c),J.originalFileName=k,J.packageJsonLocations=(E=$.packageJsonLocations)!=null&&E.length?$.packageJsonLocations:void 0,J.packageJsonScope=$.packageJsonScope,Ev(J,h),di.useCaseSensitiveFileNames()){const X=Q0(P),ie=Jr.get(X);ie?Fh(c,ie,h):Jr.set(X,J)}ha=ha||J.hasNoDefaultLib&&!d,ke.noResolve||(bt(J,u),ir(J)),ke.noLib||Qc(J),du(J),u?ut.push(J):lt.push(J)}return J}function Ev(c,u){c&&un.add(c.path,u)}function S0(c,u,d){d?(vc.set(d,c),vc.set(u,c||!1)):vc.set(u,c)}function k1(c){const u=tn(c);return u&&fi(u,c)}function tn(c){if(!(!li||!li.length||iT(c)||Pg(c,".json")))return ya(c)}function fi(c,u){const d=Kg(c.commandLine.options);return d?SA(d,".d.ts"):O3(u,c.commandLine,!di.useCaseSensitiveFileNames())}function ya(c){_o===void 0&&(_o=new Map,bu(d=>{Un(ke.configFilePath)!==d.sourceFile.path&&d.commandLine.fileNames.forEach(h=>_o.set(Un(h),d.sourceFile.path))}));const u=_o.get(Un(c));return u&&Fy(u)}function bu(c){return vxe(li,c)}function K_(c){if(iT(c))return xt===void 0&&(xt=new Map,bu(u=>{const d=Kg(u.commandLine.options);if(d){const h=SA(d,".d.ts");xt.set(Un(h),!0)}else{const h=Pd(()=>GQ(u.commandLine,!di.useCaseSensitiveFileNames()));Ot(u.commandLine.fileNames,S=>{if(!iT(S)&&!Pg(S,".json")){const E=O3(S,u.commandLine,!di.useCaseSensitiveFileNames(),h);xt.set(Un(E),S)}})}})),xt.get(c)}function ig(c){return Kn&&!!ya(c)}function Fy(c){if(Ir)return Ir.get(c)||void 0}function bt(c,u){Ot(c.referencedFiles,(d,h)=>{Lg(YE(d.fileName,c.fileName),u,!1,void 0,{kind:4,file:c.path,index:h})})}function ir(c){const u=c.typeReferenceDirectives;if(!u.length){c.resolvedTypeReferenceDirectiveNames=void 0;return}const d=zo(u,c);for(let h=0;h{const{libName:h,libFileName:S}=KQ(u);if(S)hi(Do(S),!0,!0,{kind:7,file:c.path,index:d});else{const E=DM(Ez(h,"lib."),".d.ts"),P=fh(E,aQ,Of),k=P?w.Cannot_find_lib_definition_for_0_Did_you_mean_1:w.Cannot_find_lib_definition_for_0,F=P?[h,P]:[h];(Xr||(Xr=[])).push({kind:0,reason:{kind:7,file:c.path,index:d},diagnostic:k,args:F})}})}function Al(c){return di.getCanonicalFileName(c)}function du(c){var u;if(bc(c),c.imports.length||c.moduleAugmentations.length){const d=rse(c),h=Ji(d,c);ce.assert(h.length===d.length);const S=(Kn?(u=$e(c))==null?void 0:u.commandLine.options:void 0)||ke;for(let E=0;EGn,ve=ie&&!nse(S,P,c)&&!S.noResolve&&EWv(P)&&!P.isDeclarationFile);if(ke.isolatedModules||ke.verbatimModuleSyntax)ke.module===0&&u<2&&ke.isolatedModules&&$l(w.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ke.preserveConstEnums===!1&&$l(w.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ke.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(d&&u<2&&ke.module===0){const P=UM(d,typeof d.externalModuleIndicator=="boolean"?d:d.externalModuleIndicator);Oc.add(Pp(d,P.start,P.length,w.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(c&&!ke.emitDeclarationOnly){if(ke.module&&!(ke.module===2||ke.module===4))$l(w.Only_amd_and_system_modules_are_supported_alongside_0,ke.out?"out":"outFile","module");else if(ke.module===void 0&&d){const P=UM(d,typeof d.externalModuleIndicator=="boolean"?d:d.externalModuleIndicator);Oc.add(Pp(d,P.start,P.length,w.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ke.out?"out":"outFile"))}}if(sI(ke)&&(Jd(ke)===1?$l(w.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):BH(ke)||$l(w.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ke.outDir||ke.rootDir||ke.sourceRoot||ke.mapRoot){const P=rr();ke.outDir&&P===""&&zt.some(k=>vN(k.fileName)>1)&&$l(w.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ke.useDefineForClassFields&&u===0&&$l(w.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ke.checkJs&&!TP(ke)&&Oc.add(W_(w.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ke.emitDeclarationOnly&&(gv(ke)||$l(w.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ke.noEmit&&$l(w.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ke.emitDecoratorMetadata&&!ke.experimentalDecorators&&$l(w.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ke.jsxFactory?(ke.reactNamespace&&$l(w.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",n$.get(""+ke.jsx)),s_(ke.jsxFactory,u)||y_("jsxFactory",w.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ke.jsxFactory)):ke.reactNamespace&&!rE(ke.reactNamespace,u)&&y_("reactNamespace",w.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ke.reactNamespace),ke.jsxFragmentFactory&&(ke.jsxFactory||$l(w.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",n$.get(""+ke.jsx)),s_(ke.jsxFragmentFactory,u)||y_("jsxFragmentFactory",w.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ke.jsxFragmentFactory)),ke.reactNamespace&&(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",n$.get(""+ke.jsx)),ke.jsxImportSource&&ke.jsx===2&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",n$.get(""+ke.jsx)),ke.preserveValueImports&&Zp(ke)<5&&$l(w.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const h=Zp(ke);ke.verbatimModuleSyntax&&((h===2||h===3||h===4)&&$l(w.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ke.preserveValueImports&&_x("preserveValueImports","verbatimModuleSyntax"),ke.importsNotUsedAsValues&&_x("importsNotUsedAsValues","verbatimModuleSyntax")),ke.allowImportingTsExtensions&&!(ke.noEmit||ke.emitDeclarationOnly)&&y_("allowImportingTsExtensions",w.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const S=Jd(ke);if(ke.resolvePackageJsonExports&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ke.resolvePackageJsonImports&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ke.customConditions&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),S===100&&!WH(h)&&y_("moduleResolution",w.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),Mz[h]&&100<=h&&h<=199&&!(3<=S&&S<=99)){const P=Mz[h];y_("moduleResolution",w.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,P,P)}else if(n9[S]&&3<=S&&S<=99&&!(100<=h&&h<=199)){const P=n9[S];y_("module",w.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,P,P)}if(!ke.noEmit&&!ke.suppressOutputPathCheck){const P=Ks(),k=new Set;x$(P,F=>{ke.emitDeclarationOnly||E(F.jsFilePath,k),E(F.declarationFilePath,k)})}function E(P,k){if(P){const F=Un(P);if(vc.has(F)){let J;ke.configFilePath||(J=Es(void 0,w.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)),J=Es(J,w.Cannot_write_file_0_because_it_would_overwrite_input_file,P),_S(P,OH(J))}const $=di.useCaseSensitiveFileNames()?F:Q0(F);k.has($)?_S(P,W_(w.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,P)):k.add($)}}}function Wh(){const c=ke.ignoreDeprecations;if(c){if(c==="5.0")return new en(c);Ye()}return en.zero}function Gv(c,u,d,h){const S=new en(c),E=new en(u),P=new en(Ft||ot),k=Wh(),F=E.compareTo(P)!==1,$=!F&&k.compareTo(S)===-1;(F||$)&&h((J,X,ie)=>{F?X===void 0?d(J,X,ie,w.Option_0_has_been_removed_Please_remove_it_from_your_configuration,J):d(J,X,ie,w.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,J,X):X===void 0?d(J,X,ie,w.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,J,u,c):d(J,X,ie,w.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,J,X,u,c)})}function jv(){function c(u,d,h,S,...E){if(h){const P=Es(void 0,w.Use_0_instead,h),k=Es(P,S,...E);Ph(!d,u,void 0,k)}else Ph(!d,u,void 0,S,...E)}Gv("5.0","5.5",c,u=>{ke.target===0&&u("target","ES3"),ke.noImplicitUseStrict&&u("noImplicitUseStrict"),ke.keyofStringsOnly&&u("keyofStringsOnly"),ke.suppressExcessPropertyErrors&&u("suppressExcessPropertyErrors"),ke.suppressImplicitAnyIndexErrors&&u("suppressImplicitAnyIndexErrors"),ke.noStrictGenericChecks&&u("noStrictGenericChecks"),ke.charset&&u("charset"),ke.out&&u("out",void 0,"outFile"),ke.importsNotUsedAsValues&&u("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ke.preserveValueImports&&u("preserveValueImports",void 0,"verbatimModuleSyntax")})}function vy(c,u,d){function h(S,E,P,k,...F){l_(u,d,k,...F)}Gv("5.0","5.5",h,S=>{c.prepend&&S("prepend")})}function ub(c,u,d,h){var S;let E,P,k=k6(u)?u:void 0;c&&((S=un.get(c.path))==null||S.forEach(ie)),u&&ie(u),k&&(E==null?void 0:E.length)===1&&(E=void 0);const F=k&&VW(Kd,k),$=E&&Es(E,w.The_file_is_in_the_program_because_Colon),J=c&&aZ(c),X=Es(J?$?[$,...J]:J:$,d,...h||Zn);return F&&yF(F)?aE(F.file,F.pos,F.end-F.pos,X,P):OH(X,P);function ie(ae){(E||(E=[])).push(uge(Qr,ae)),!k&&k6(ae)?k=ae:k!==ae&&(P=ur(P,MA(ae))),ae===u&&(u=void 0)}}function E0(c,u,d,h){(Xr||(Xr=[])).push({kind:1,file:c&&c.path,fileProcessingReason:u,diagnostic:d,args:h})}function P2(c,u,d){Oc.add(ub(c,void 0,u,d))}function MA(c){if(k6(c)){const h=VW(Kd,c);let S;switch(c.kind){case 3:S=w.File_is_included_via_import_here;break;case 4:S=w.File_is_included_via_reference_here;break;case 5:S=w.File_is_included_via_type_library_reference_here;break;case 7:S=w.File_is_included_via_library_reference_here;break;default:ce.assertNever(c)}return yF(h)?Pp(h.file,h.pos,h.end-h.pos,S):void 0}if(!ke.configFile)return;let u,d;switch(c.kind){case 0:if(!ke.configFile.configFileSpecs)return;const h=Su(ht[c.index],_u),S=mse(Qr,h);if(S){u=RT(ke.configFile,"files",S),d=w.File_is_matched_by_files_list_specified_here;break}const E=Vxe(Qr,h);if(!E||!As(E))return;u=RT(ke.configFile,"include",E),d=w.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const P=ce.checkDefined(li==null?void 0:li[c.index]),k=I$(Dt,li,(ie,ae,ve)=>ie===P?{sourceFile:(ae==null?void 0:ae.sourceFile)||ke.configFile,index:ve}:void 0);if(!k)return;const{sourceFile:F,index:$}=k,J=sY(F,"references",ie=>Ch(ie.initializer)?ie.initializer:void 0);return J&&J.elements.length>$?M0(F,J.elements[$],c.kind===2?w.File_is_output_from_referenced_project_specified_here:w.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ke.types)return;u=X_("types",c.typeReference),d=w.File_is_entry_point_of_type_library_specified_here;break;case 6:if(c.index!==void 0){u=X_("lib",ke.lib[c.index]),d=w.File_is_library_specified_here;break}const X=wT(cQ.type,(ie,ae)=>ie===iu(ke)?ae:void 0);u=X?js("target",X):void 0,d=w.File_is_default_library_for_target_specified_here;break;default:ce.assertNever(c)}return u&&M0(ke.configFile,u,d)}function aw(){const c=ke.suppressOutputPathCheck?void 0:ZN(ke);I$(Dt,li,(u,d,h)=>{const S=(d?d.commandLine.projectReferences:Dt)[h],E=d&&d.sourceFile;if(vy(S,E,h),!u){l_(E,h,w.File_0_not_found,S.path);return}const P=u.commandLine.options;if((!P.composite||P.noEmit)&&(d?d.commandLine.fileNames:ht).length&&(P.composite||l_(E,h,w.Referenced_project_0_must_have_setting_composite_Colon_true,S.path),P.noEmit&&l_(E,h,w.Referenced_project_0_may_not_disable_emit,S.path)),S.prepend){const k=Kg(P);k?di.fileExists(k)||l_(E,h,w.Output_file_0_from_project_1_does_not_exist,k,S.path):l_(E,h,w.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,S.path)}!d&&c&&c===ZN(P)&&(l_(E,h,w.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,c,S.path),Rr.set(Un(c),!0))})}function DI(c,u,d,...h){let S=!0;Mi(E=>{Wd(E.initializer)&&nG(E.initializer,c,P=>{const k=P.initializer;Ch(k)&&k.elements.length>u&&(Oc.add(M0(ke.configFile,k.elements[u],d,...h)),S=!1)})}),S&&Oc.add(W_(d,...h))}function Me(c,u,d,...h){let S=!0;Mi(E=>{Wd(E.initializer)&&Mb(E.initializer,c,u,void 0,d,...h)&&(S=!1)}),S&&Oc.add(W_(d,...h))}function jn(c,u){return nG(Ap(),c,u)}function Mi(c){return jn("paths",c)}function js(c,u){return jn(c,d=>Wp(d.initializer)&&d.initializer.text===u?d.initializer:void 0)}function X_(c,u){const d=Ap();return d&&vie(d,c,u)}function $l(c,u,d,h){Ph(!0,u,d,c,u,d,h)}function y_(c,u,...d){Ph(!1,c,void 0,u,...d)}function l_(c,u,d,...h){const S=sY(c||ke.configFile,"references",E=>Ch(E.initializer)?E.initializer:void 0);S&&S.elements.length>u?Oc.add(M0(c||ke.configFile,S.elements[u],d,...h)):Oc.add(W_(d,...h))}function Ph(c,u,d,h,...S){const E=Ap();(!E||!Mb(E,c,u,d,h,...S))&&("messageText"in h?Oc.add(OH(h)):Oc.add(W_(h,...S)))}function Ap(){return mc===void 0&&(mc=nG(A9(ke.configFile),"compilerOptions",c=>Wd(c.initializer)?c.initializer:void 0)||!1),mc||void 0}function Mb(c,u,d,h,S,...E){let P=!1;return nG(c,d,k=>{"messageText"in S?Oc.add(RN(ke.configFile,u?k.name:k.initializer,S)):Oc.add(M0(ke.configFile,u?k.name:k.initializer,S,...E)),P=!0},h),P}function _x(c,u){const d=Ap();d?Mb(d,!0,c,void 0,w.Option_0_is_redundant_and_cannot_be_specified_with_option_1,c,u):$l(w.Option_0_is_redundant_and_cannot_be_specified_with_option_1,c,u)}function _S(c,u){Rr.set(Un(c),!0),Oc.add(u)}function e(c){if(ke.noEmit)return!1;const u=Un(c);if(Kd(u))return!1;const d=Kg(ke);if(d)return n(u,d)||n(u,wg(d)+".d.ts");if(ke.declarationDir&&GC(ke.declarationDir,u,_u,!di.useCaseSensitiveFileNames()))return!0;if(ke.outDir)return GC(ke.outDir,u,_u,!di.useCaseSensitiveFileNames());if(ws(u,iJ)||iT(u)){const h=wg(u);return!!Kd(h+".ts")||!!Kd(h+".tsx")}return!1}function n(c,u){return wM(c,u,_u,!di.useCaseSensitiveFileNames())===0}function i(){return di.getSymlinkCache?di.getSymlinkCache():(Wt||(Wt=zde(_u,Al)),zt&&In&&!Wt.hasProcessedResolutions()&&Wt.setSymlinksFromResolutions(zt,In),Wt)}}function Zae(t){let r;const s=t.compilerHost.fileExists,l=t.compilerHost.directoryExists,m=t.compilerHost.getDirectories,y=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ku,fileExists:I};t.compilerHost.fileExists=I;let T;return l&&(T=t.compilerHost.directoryExists=te=>l.call(t.compilerHost,te)?(V(te),!0):t.getResolvedProjectReferences()?(r||(r=new Set,t.forEachResolvedProjectReference(oe=>{const de=Kg(oe.commandLine.options);if(de)r.add(qc(t.toPath(de)));else{const ue=oe.commandLine.options.declarationDir||oe.commandLine.options.outDir;ue&&r.add(t.toPath(ue))}})),ee(te,!1)):!1),m&&(t.compilerHost.getDirectories=te=>!t.getResolvedProjectReferences()||l&&l.call(t.compilerHost,te)?m.call(t.compilerHost,te):[]),y&&(t.compilerHost.realpath=te=>{var oe;return((oe=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:oe.get(t.toPath(te)))||y.call(t.compilerHost,te)}),{onProgramCreateComplete:D,fileExists:I,directoryExists:T};function D(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=l,t.compilerHost.getDirectories=m}function I(te){return s.call(t.compilerHost,te)?!0:!t.getResolvedProjectReferences()||!iT(te)?!1:ee(te,!0)}function W(te){const oe=t.getSourceOfProjectReferenceRedirect(t.toPath(te));return oe!==void 0?As(oe)?s.call(t.compilerHost,oe):!0:void 0}function O(te){const oe=t.toPath(te),de=`${oe}${q}`;return WL(r,ue=>oe===ue||xf(ue,de)||xf(oe,`${ue}/`))}function V(te){var oe;if(!t.getResolvedProjectReferences()||_3(te)||!y||!Ub(te,ix))return;const de=t.getSymlinkCache(),ue=Rv(t.toPath(te));if((oe=de.getSymlinkedDirectories())!=null&&oe.has(ue))return;const Ne=Fd(y.call(t.compilerHost,te));let Be;if(Ne===te||(Be=Rv(t.toPath(Ne)))===ue){de.setSymlinkedDirectory(ue,!1);return}de.setSymlinkedDirectory(te,{real:Rv(Ne),realPath:Be})}function ee(te,oe){var de;const ue=oe?Le=>W(Le):Le=>O(Le),Ne=ue(te);if(Ne!==void 0)return Ne;const Be=t.getSymlinkCache(),Ve=Be.getSymlinkedDirectories();if(!Ve)return!1;const pt=t.toPath(te);return Ub(pt,ix)?oe&&((de=Be.getSymlinkedFiles())!=null&&de.has(pt))?!0:Ns(Ve.entries(),([Le,ht])=>{if(!ht||!xf(pt,Le))return;const ke=ue(pt.replace(Le,ht.realPath));if(oe&&ke){const _t=Su(te,t.compilerHost.getCurrentDirectory());Be.setSymlinkedFile(pt,`${ht.real}${_t.replace(new RegExp(Le,"i"),"")}`)}return ke})||!1:!1}}function ese(t,r,s,l){const m=t.getCompilerOptions();if(m.noEmit)return t.getSemanticDiagnostics(r,l),r||Kg(m)?lse:t.emitBuildInfo(s,l);if(!m.noEmitOnError)return;let y=[...t.getOptionsDiagnostics(l),...t.getSyntacticDiagnostics(r,l),...t.getGlobalDiagnostics(l),...t.getSemanticDiagnostics(r,l)];if(y.length===0&&gv(t.getCompilerOptions())&&(y=t.getDeclarationDiagnostics(void 0,l)),!y.length)return;let T;if(!r&&!Kg(m)){const D=t.emitBuildInfo(s,l);D.diagnostics&&(y=[...y,...D.diagnostics]),T=D.emittedFiles}return{diagnostics:y,sourceMaps:void 0,emittedFiles:T,emitSkipped:!0}}function Txe(t,r){return gi(t,s=>!s.skippedOn||!r[s.skippedOn])}function Sxe(t,r=t){return{fileExists:s=>r.fileExists(s),readDirectory(s,l,m,y,T){return ce.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(s,l,m,y,T)},readFile:s=>r.readFile(s),directoryExists:wc(r,r.directoryExists),getDirectories:wc(r,r.getDirectories),realpath:wc(r,r.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||eE,trace:t.trace?s=>t.trace(s):void 0}}function YQ(t,r,s,l){if(!t)return Zn;let m;for(let y=0;yl);for(const l of r)l.kind===11&&s.push(l);return s}function k$({imports:t,moduleAugmentations:r},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(ise||{}),vF="\x1B[7m",QQ=" ",Exe="\x1B[0m",ZQ="...",Kme=" ",ose=" ",ase={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},P$={getName:$Q,getMode:(t,r)=>kA(r,t)},eZ={getName:qQ,getMode:(t,r)=>wR(t,r==null?void 0:r.impliedNodeFormat)},sse="__inferred type names__.ts",cse=new Set([w.Cannot_redeclare_block_scoped_variable_0.code,w.A_module_cannot_have_multiple_default_exports.code,w.Another_export_default_is_here.code,w.The_first_export_default_is_here.code,w.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,w.constructor_is_a_reserved_word.code,w.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,w.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,w.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,w.Invalid_use_of_0_in_strict_mode.code,w.A_label_is_not_allowed_here.code,w.with_statements_are_not_allowed_in_strict_mode.code,w.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,w.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,w.A_class_declaration_without_the_default_modifier_must_have_a_name.code,w.A_class_member_cannot_have_the_0_keyword.code,w.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,w.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,w.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,w.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,w.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,w.A_destructuring_declaration_must_have_an_initializer.code,w.A_get_accessor_cannot_have_parameters.code,w.A_rest_element_cannot_contain_a_binding_pattern.code,w.A_rest_element_cannot_have_a_property_name.code,w.A_rest_element_cannot_have_an_initializer.code,w.A_rest_element_must_be_last_in_a_destructuring_pattern.code,w.A_rest_parameter_cannot_have_an_initializer.code,w.A_rest_parameter_must_be_last_in_a_parameter_list.code,w.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,w.A_return_statement_cannot_be_used_inside_a_class_static_block.code,w.A_set_accessor_cannot_have_rest_parameter.code,w.A_set_accessor_must_have_exactly_one_parameter.code,w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,w.An_export_declaration_cannot_have_modifiers.code,w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,w.An_import_declaration_cannot_have_modifiers.code,w.An_object_member_cannot_be_declared_optional.code,w.Argument_of_dynamic_import_cannot_be_spread_element.code,w.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,w.Cannot_redeclare_identifier_0_in_catch_clause.code,w.Catch_clause_variable_cannot_have_an_initializer.code,w.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,w.Classes_can_only_extend_a_single_class.code,w.Classes_may_not_have_a_field_named_constructor.code,w.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,w.Duplicate_label_0.code,w.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,w.for_await_loops_cannot_be_used_inside_a_class_static_block.code,w.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,w.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,w.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,w.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,w.Jump_target_cannot_cross_function_boundary.code,w.Line_terminator_not_permitted_before_arrow.code,w.Modifiers_cannot_appear_here.code,w.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,w.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,w.Private_identifiers_are_not_allowed_outside_class_bodies.code,w.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,w.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,w.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,w.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,w.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,w.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,w.Trailing_comma_not_allowed.code,w.Variable_declaration_list_cannot_be_empty.code,w._0_and_1_operations_cannot_be_mixed_without_parentheses.code,w._0_expected.code,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,w._0_list_cannot_be_empty.code,w._0_modifier_already_seen.code,w._0_modifier_cannot_appear_on_a_constructor_declaration.code,w._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,w._0_modifier_cannot_appear_on_a_parameter.code,w._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,w._0_modifier_cannot_be_used_here.code,w._0_modifier_must_precede_1_modifier.code,w._0_declarations_can_only_be_declared_inside_a_block.code,w._0_declarations_must_be_initialized.code,w.extends_clause_already_seen.code,w.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,w.Class_constructor_may_not_be_a_generator.code,w.Class_constructor_may_not_be_an_accessor.code,w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.Private_field_0_must_be_declared_in_an_enclosing_class.code,w.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),lse={diagnostics:Zn,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),Xme=G({"src/compiler/builderStatePublic.ts"(){}});function hj(t,r,s,l,m,y){const T=[],{emitSkipped:D,diagnostics:I}=t.emit(r,W,l,s,m,y);return{outputFiles:T,emitSkipped:D,diagnostics:I};function W(O,V,ee){T.push({name:O,writeByteOrderMark:ee,text:V})}}var sD,Yme=G({"src/compiler/builderState.ts"(){Ad(),(t=>{function r(){function it(Ye,ut,lt){const zt={getKeys:Wt=>ut.get(Wt),getValues:Wt=>Ye.get(Wt),keys:()=>Ye.keys(),deleteKey:Wt=>{(lt||(lt=new Set)).add(Wt);const tt=Ye.get(Wt);return tt?(tt.forEach(Mn=>l(ut,Mn,Wt)),Ye.delete(Wt),!0):!1},set:(Wt,tt)=>{lt==null||lt.delete(Wt);const Mn=Ye.get(Wt);return Ye.set(Wt,tt),Mn==null||Mn.forEach(kn=>{tt.has(kn)||l(ut,kn,Wt)}),tt.forEach(kn=>{Mn!=null&&Mn.has(kn)||s(ut,kn,Wt)}),zt}};return zt}return it(new Map,new Map,void 0)}t.createManyToManyPathMap=r;function s(it,Ye,ut){let lt=it.get(Ye);lt||(lt=new Set,it.set(Ye,lt)),lt.add(ut)}function l(it,Ye,ut){const lt=it.get(Ye);return lt!=null&<.delete(ut)?(lt.size||it.delete(Ye),!0):!1}function m(it){return Qo(it.declarations,Ye=>{var ut;return(ut=ns(Ye))==null?void 0:ut.resolvedPath})}function y(it,Ye){const ut=it.getSymbolAtLocation(Ye);return ut&&m(ut)}function T(it,Ye,ut,lt){return _h(it.getProjectReferenceRedirect(Ye)||Ye,ut,lt)}function D(it,Ye,ut){let lt;if(Ye.imports&&Ye.imports.length>0){const Mn=it.getTypeChecker();for(const kn of Ye.imports){const cr=y(Mn,kn);cr==null||cr.forEach(tt)}}const zt=qc(Ye.resolvedPath);if(Ye.referencedFiles&&Ye.referencedFiles.length>0)for(const Mn of Ye.referencedFiles){const kn=T(it,Mn.fileName,zt,ut);tt(kn)}if(Ye.resolvedTypeReferenceDirectiveNames&&Ye.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Mn})=>{if(!Mn)return;const kn=Mn.resolvedFileName,cr=T(it,kn,zt,ut);tt(cr)}),Ye.moduleAugmentations.length){const Mn=it.getTypeChecker();for(const kn of Ye.moduleAugmentations){if(!Wp(kn))continue;const cr=Mn.getSymbolAtLocation(kn);cr&&Wt(cr)}}for(const Mn of it.getTypeChecker().getAmbientModules())Mn.declarations&&Mn.declarations.length>1&&Wt(Mn);return lt;function Wt(Mn){if(Mn.declarations)for(const kn of Mn.declarations){const cr=ns(kn);cr&&cr!==Ye&&tt(cr.resolvedPath)}}function tt(Mn){(lt||(lt=new Set)).add(Mn)}}function I(it,Ye){return Ye&&!Ye.referencedMap==!it}t.canReuseOldState=I;function W(it,Ye,ut){var lt,zt,Wt;const tt=new Map,Mn=it.getCompilerOptions(),kn=Kg(Mn),cr=Mn.module!==0&&!kn?r():void 0,un=cr?r():void 0,on=I(cr,Ye);it.getTypeChecker();for(const pn of it.getSourceFiles()){const Or=ce.checkDefined(pn.version,"Program intended to be used with Builder should have source files with versions set"),Xr=on?(lt=Ye.oldSignatures)==null?void 0:lt.get(pn.resolvedPath):void 0,Ut=Xr===void 0?on?(zt=Ye.fileInfos.get(pn.resolvedPath))==null?void 0:zt.signature:void 0:Xr||void 0;if(cr){const In=D(it,pn,it.getCanonicalFileName);if(In&&cr.set(pn.resolvedPath,In),on){const gr=(Wt=Ye.oldExportedModulesMap)==null?void 0:Wt.get(pn.resolvedPath),Cr=gr===void 0?Ye.exportedModulesMap.getValues(pn.resolvedPath):gr||void 0;Cr&&un.set(pn.resolvedPath,Cr)}}tt.set(pn.resolvedPath,{version:Or,signature:Ut,affectsGlobalScope:kn?void 0:ke(pn)||void 0,impliedFormat:pn.impliedNodeFormat})}return{fileInfos:tt,referencedMap:cr,exportedModulesMap:un,useFileVersionAsSignature:!ut&&!on}}t.create=W;function O(it){it.allFilesExcludingDefaultLibraryFile=void 0,it.allFileNames=void 0}t.releaseCache=O;function V(it,Ye,ut,lt,zt){var Wt,tt;const Mn=ee(it,Ye,ut,lt,zt);return(Wt=it.oldSignatures)==null||Wt.clear(),(tt=it.oldExportedModulesMap)==null||tt.clear(),Mn}t.getFilesAffectedBy=V;function ee(it,Ye,ut,lt,zt){const Wt=Ye.getSourceFileByPath(ut);return Wt?de(it,Ye,Wt,lt,zt)?(it.referencedMap?Ft:Dt)(it,Ye,Wt,lt,zt):[Wt]:Zn}t.getFilesAffectedByWithOldState=ee;function te(it,Ye,ut){it.fileInfos.get(ut).signature=Ye,(it.hasCalledUpdateShapeSignature||(it.hasCalledUpdateShapeSignature=new Set)).add(ut)}t.updateSignatureOfFile=te;function oe(it,Ye,ut,lt,zt){it.emit(Ye,(Wt,tt,Mn,kn,cr,un)=>{ce.assert(iT(Wt),`File extension for signature expected to be dts: Got:: ${Wt}`),zt(Dxe(it,Ye,tt,lt,un),cr)},ut,!0,void 0,!0)}t.computeDtsSignature=oe;function de(it,Ye,ut,lt,zt,Wt=it.useFileVersionAsSignature){var tt;if((tt=it.hasCalledUpdateShapeSignature)!=null&&tt.has(ut.resolvedPath))return!1;const Mn=it.fileInfos.get(ut.resolvedPath),kn=Mn.signature;let cr;if(!ut.isDeclarationFile&&!Wt&&oe(Ye,ut,lt,zt,(un,on)=>{cr=un,cr!==kn&&ue(it,ut,on[0].exportedModulesFromDeclarationEmit)}),cr===void 0&&(cr=ut.version,it.exportedModulesMap&&cr!==kn)){(it.oldExportedModulesMap||(it.oldExportedModulesMap=new Map)).set(ut.resolvedPath,it.exportedModulesMap.getValues(ut.resolvedPath)||!1);const un=it.referencedMap?it.referencedMap.getValues(ut.resolvedPath):void 0;un?it.exportedModulesMap.set(ut.resolvedPath,un):it.exportedModulesMap.deleteKey(ut.resolvedPath)}return(it.oldSignatures||(it.oldSignatures=new Map)).set(ut.resolvedPath,kn||!1),(it.hasCalledUpdateShapeSignature||(it.hasCalledUpdateShapeSignature=new Set)).add(ut.resolvedPath),Mn.signature=cr,cr!==kn}t.updateShapeSignature=de;function ue(it,Ye,ut){if(!it.exportedModulesMap)return;(it.oldExportedModulesMap||(it.oldExportedModulesMap=new Map)).set(Ye.resolvedPath,it.exportedModulesMap.getValues(Ye.resolvedPath)||!1);const lt=Ne(ut);lt?it.exportedModulesMap.set(Ye.resolvedPath,lt):it.exportedModulesMap.deleteKey(Ye.resolvedPath)}t.updateExportedModules=ue;function Ne(it){let Ye;return it==null||it.forEach(ut=>m(ut).forEach(lt=>(Ye??(Ye=new Set)).add(lt))),Ye}t.getExportedModules=Ne;function Be(it,Ye,ut){const lt=Ye.getCompilerOptions();if(Kg(lt)||!it.referencedMap||ke(ut))return Ve(it,Ye);const zt=new Set,Wt=[ut.resolvedPath];for(;Wt.length;){const tt=Wt.pop();if(!zt.has(tt)){zt.add(tt);const Mn=it.referencedMap.getValues(tt);if(Mn)for(const kn of Mn.keys())Wt.push(kn)}}return oc(p2(zt.keys(),tt=>{var Mn;return((Mn=Ye.getSourceFileByPath(tt))==null?void 0:Mn.fileName)??tt}))}t.getAllDependencies=Be;function Ve(it,Ye){if(!it.allFileNames){const ut=Ye.getSourceFiles();it.allFileNames=ut===Zn?Zn:ut.map(lt=>lt.fileName)}return it.allFileNames}function pt(it,Ye){const ut=it.referencedMap.getKeys(Ye);return ut?oc(ut.keys()):[]}t.getReferencedByPaths=pt;function Le(it){for(const Ye of it.statements)if(!iY(Ye))return!1;return!0}function ht(it){return gt(it.moduleAugmentations,Ye=>$C(Ye.parent))}function ke(it){return ht(it)||!h1(it)&&!Py(it)&&!Le(it)}function _t(it,Ye,ut){if(it.allFilesExcludingDefaultLibraryFile)return it.allFilesExcludingDefaultLibraryFile;let lt;ut&&zt(ut);for(const Wt of Ye.getSourceFiles())Wt!==ut&&zt(Wt);return it.allFilesExcludingDefaultLibraryFile=lt||Zn,it.allFilesExcludingDefaultLibraryFile;function zt(Wt){Ye.isSourceFileDefaultLibrary(Wt)||(lt||(lt=[])).push(Wt)}}t.getAllFilesExcludingDefaultLibraryFile=_t;function Dt(it,Ye,ut){const lt=Ye.getCompilerOptions();return lt&&Kg(lt)?[ut]:_t(it,Ye,ut)}function Ft(it,Ye,ut,lt,zt){if(ke(ut))return _t(it,Ye,ut);const Wt=Ye.getCompilerOptions();if(Wt&&(F0(Wt)||Kg(Wt)))return[ut];const tt=new Map;tt.set(ut.resolvedPath,ut);const Mn=pt(it,ut.resolvedPath);for(;Mn.length>0;){const kn=Mn.pop();if(!tt.has(kn)){const cr=Ye.getSourceFileByPath(kn);tt.set(kn,cr),cr&&de(it,Ye,cr,lt,zt)&&Mn.push(...pt(it,cr.resolvedPath))}}return oc(p2(tt.values(),kn=>kn))}})(sD||(sD={}))}});function B3(t){let r=1;return t.sourceMap&&(r=r|2),t.inlineSourceMap&&(r=r|4),gv(t)&&(r=r|8),t.declarationMap&&(r=r|16),t.emitDeclarationOnly&&(r=r&24),r}function tZ(t,r){const s=r&&(U1(r)?r:B3(r)),l=U1(t)?t:B3(t);if(s===l)return 0;if(!s||!l)return l;const m=s^l;let y=0;return m&7&&(y=l&7),m&24&&(y=y|l&24),y}function O4e(t,r){return t===r||t!==void 0&&r!==void 0&&t.size===r.size&&!WL(t,s=>!r.has(s))}function cD(t,r){var s,l;const m=sD.create(t,r,!1);m.program=t;const y=t.getCompilerOptions();m.compilerOptions=y;const T=Kg(y);T?y.composite&&(r!=null&&r.outSignature)&&T===Kg(r==null?void 0:r.compilerOptions)&&(m.outSignature=r.outSignature&&P6(y,r.compilerOptions,r.outSignature)):m.semanticDiagnosticsPerFile=new Map,m.changedFilesSet=new Set,m.latestChangedDtsFile=y.composite?r==null?void 0:r.latestChangedDtsFile:void 0;const D=sD.canReuseOldState(m.referencedMap,r),I=D?r.compilerOptions:void 0,W=D&&r.semanticDiagnosticsPerFile&&!!m.semanticDiagnosticsPerFile&&!GSe(y,I),O=y.composite&&(r==null?void 0:r.emitSignatures)&&!T&&!VSe(y,r.compilerOptions);D?((s=r.changedFilesSet)==null||s.forEach(de=>m.changedFilesSet.add(de)),!T&&((l=r.affectedFilesPendingEmit)!=null&&l.size)&&(m.affectedFilesPendingEmit=new Map(r.affectedFilesPendingEmit),m.seenAffectedFiles=new Set),m.programEmitPending=r.programEmitPending):m.buildInfoEmitPending=!0;const V=m.referencedMap,ee=D?r.referencedMap:void 0,te=W&&!y.skipLibCheck==!I.skipLibCheck,oe=te&&!y.skipDefaultLibCheck==!I.skipDefaultLibCheck;if(m.fileInfos.forEach((de,ue)=>{let Ne,Be;if(!D||!(Ne=r.fileInfos.get(ue))||Ne.version!==de.version||Ne.impliedFormat!==de.impliedFormat||!O4e(Be=V&&V.getValues(ue),ee&&ee.getValues(ue))||Be&&WL(Be,Ve=>!m.fileInfos.has(Ve)&&r.fileInfos.has(Ve)))rJe(m,ue);else if(W){const Ve=t.getSourceFileByPath(ue);if(Ve.isDeclarationFile&&!te||Ve.hasNoDefaultLib&&!oe)return;const pt=r.semanticDiagnosticsPerFile.get(ue);pt&&(m.semanticDiagnosticsPerFile.set(ue,r.hasReusableDiagnostic?oJe(pt,t):N$(pt,t)),m.semanticDiagnosticsFromOldState||(m.semanticDiagnosticsFromOldState=new Set),m.semanticDiagnosticsFromOldState.add(ue))}if(O){const Ve=r.emitSignatures.get(ue);Ve&&(m.emitSignatures??(m.emitSignatures=new Map)).set(ue,P6(y,r.compilerOptions,Ve))}}),D&&wT(r.fileInfos,(de,ue)=>m.fileInfos.has(ue)?!1:T||de.affectsGlobalScope?!0:(m.buildInfoEmitPending=!0,!1)))sD.getAllFilesExcludingDefaultLibraryFile(m,t,void 0).forEach(de=>rJe(m,de.resolvedPath));else if(I){const de=jSe(y,I)?B3(y):tZ(y,I);de!==0&&(T?m.programEmitPending=m.programEmitPending?m.programEmitPending|de:de:(t.getSourceFiles().forEach(ue=>{m.changedFilesSet.has(ue.resolvedPath)||nZ(m,ue.resolvedPath,de)}),ce.assert(!m.seenAffectedFiles||!m.seenAffectedFiles.size),m.seenAffectedFiles=m.seenAffectedFiles||new Set,m.buildInfoEmitPending=!0))}return T&&!m.changedFilesSet.size&&(D&&(m.bundle=r.bundle),gt(t.getProjectReferences(),de=>!!de.prepend)&&(m.programEmitPending=B3(y))),m}function rJe(t,r){t.changedFilesSet.add(r),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function P6(t,r,s){return!!t.declarationMap==!!r.declarationMap?s:As(s)?[s]:s[0]}function N$(t,r){return t.length?Ol(t,s=>{if(As(s.messageText))return s;const l=F4e(s.messageText,s.file,r,m=>{var y;return(y=m.repopulateInfo)==null?void 0:y.call(m)});return l===s.messageText?s:{...s,messageText:l}}):t}function F4e(t,r,s,l){const m=l(t);if(m)return{...jMe(r,s,m.moduleReference,m.mode,m.packageName||m.moduleReference),next:iJe(t.next,r,s,l)};const y=iJe(t.next,r,s,l);return y===t.next?t:{...t,next:y}}function iJe(t,r,s,l){return Ol(t,m=>F4e(m,r,s,l))}function oJe(t,r){if(!t.length)return Zn;let s;return t.map(m=>{const y=W4e(m,r,l);y.reportsUnnecessary=m.reportsUnnecessary,y.reportsDeprecated=m.reportDeprecated,y.source=m.source,y.skippedOn=m.skippedOn;const{relatedInformation:T}=m;return y.relatedInformation=T?T.length?T.map(D=>W4e(D,r,l)):[]:void 0,y});function l(m){return s??(s=qc(Su(ZN(r.getCompilerOptions()),r.getCurrentDirectory()))),_h(m,s,r.getCanonicalFileName)}}function W4e(t,r,s){const{file:l}=t,m=l?r.getSourceFileByPath(s(l)):void 0;return{...t,file:m,messageText:As(t.messageText)?t.messageText:F4e(t.messageText,m,r,y=>y.info)}}function Pct(t){sD.releaseCache(t),t.program=void 0}function B4e(t){const r=Kg(t.compilerOptions);return ce.assert(!t.changedFilesSet.size||r),{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:r?new Set(t.changedFilesSet):void 0}}function aJe(t,r){t.affectedFilesPendingEmit=r.affectedFilesPendingEmit,t.seenEmittedFiles=r.seenEmittedFiles,t.programEmitPending=r.programEmitPending,t.emitSignatures=r.emitSignatures,t.outSignature=r.outSignature,t.latestChangedDtsFile=r.latestChangedDtsFile,t.hasChangedEmitSignature=r.hasChangedEmitSignature,r.changedFilesSet&&(t.changedFilesSet=r.changedFilesSet)}function sJe(t,r){ce.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function z4e(t,r,s){for(var l,m;;){const{affectedFiles:y}=t;if(y){const W=t.seenAffectedFiles;let O=t.affectedFilesIndex;for(;O{const y=l&7;y?t.affectedFilesPendingEmit.set(m,y):t.affectedFilesPendingEmit.delete(m)})}}function wct(t,r){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return wT(t.affectedFilesPendingEmit,(l,m)=>{var y;const T=t.program.getSourceFileByPath(m);if(!T||!L7(T,t.program)){t.affectedFilesPendingEmit.delete(m);return}const D=(y=t.seenEmittedFiles)==null?void 0:y.get(T.resolvedPath);let I=tZ(l,D);if(r&&(I=I&24),I)return{affectedFile:T,emitKind:I}})}function cJe(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const r=ce.checkDefined(t.program),s=r.getCompilerOptions();Ot(r.getSourceFiles(),l=>r.isSourceFileDefaultLibrary(l)&&!c3(l,s,r)&&G4e(t,l.resolvedPath))}}function lJe(t,r,s,l){if(G4e(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){cJe(t),sD.updateShapeSignature(t,ce.checkDefined(t.program),r,s,l);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Rct(t,r,s,l)}function Qme(t,r,s,l){if(G4e(t,r),!t.changedFilesSet.has(r)){const m=ce.checkDefined(t.program),y=m.getSourceFileByPath(r);y&&(sD.updateShapeSignature(t,m,y,s,l,!0),gv(t.compilerOptions)&&nZ(t,r,t.compilerOptions.declarationMap?24:8))}}function G4e(t,r){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(r),t.semanticDiagnosticsPerFile.delete(r),!t.semanticDiagnosticsFromOldState.size):!0}function uJe(t,r){const s=ce.checkDefined(t.oldSignatures).get(r)||void 0;return ce.checkDefined(t.fileInfos.get(r)).signature!==s}function xxe(t,r,s,l){var m;return(m=t.fileInfos.get(r))!=null&&m.affectsGlobalScope?(sD.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(y=>Qme(t,y.resolvedPath,s,l)),cJe(t),!0):!1}function Rct(t,r,s,l){var m;if(!t.exportedModulesMap||!t.changedFilesSet.has(r.resolvedPath)||!uJe(t,r.resolvedPath))return;if(F0(t.compilerOptions)){const T=new Map;T.set(r.resolvedPath,!0);const D=sD.getReferencedByPaths(t,r.resolvedPath);for(;D.length>0;){const I=D.pop();if(!T.has(I)){if(T.set(I,!0),xxe(t,I,s,l))return;if(Qme(t,I,s,l),uJe(t,I)){const W=ce.checkDefined(t.program).getSourceFileByPath(I);D.push(...sD.getReferencedByPaths(t,W.resolvedPath))}}}}const y=new Set;(m=t.exportedModulesMap.getKeys(r.resolvedPath))==null||m.forEach(T=>{if(xxe(t,T,s,l))return!0;const D=t.referencedMap.getKeys(T);return D&&WL(D,I=>Zme(t,I,y,s,l))})}function Zme(t,r,s,l,m){var y,T;if(m2(s,r)){if(xxe(t,r,l,m))return!0;Qme(t,r,l,m),(y=t.exportedModulesMap.getKeys(r))==null||y.forEach(D=>Zme(t,D,s,l,m)),(T=t.referencedMap.getKeys(r))==null||T.forEach(D=>!s.has(D)&&Qme(t,D,l,m))}}function ege(t,r,s){return Hi(fJe(t,r,s),ce.checkDefined(t.program).getProgramDiagnostics(r))}function fJe(t,r,s){const l=r.resolvedPath;if(t.semanticDiagnosticsPerFile){const y=t.semanticDiagnosticsPerFile.get(l);if(y)return Txe(y,t.compilerOptions)}const m=ce.checkDefined(t.program).getBindAndCheckDiagnostics(r,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(l,m),Txe(m,t.compilerOptions)}function Axe(t){return!!Kg(t.options||{})}function Mct(t,r){var s,l,m;const y=ce.checkDefined(t.program).getCurrentDirectory(),T=qc(Su(ZN(t.compilerOptions),y)),D=t.latestChangedDtsFile?Le(t.latestChangedDtsFile):void 0,I=[],W=new Map,O=[];if(Kg(t.compilerOptions)){const it=oc(t.fileInfos.entries(),([tt,Mn])=>{const kn=ke(tt);return Dt(tt,kn),Mn.impliedFormat?{version:Mn.version,impliedFormat:Mn.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Mn.version}),Ye={fileNames:I,fileInfos:it,root:O,options:Ft(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:D,pendingEmit:t.programEmitPending?t.programEmitPending===B3(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:ut,dts:lt,commonSourceDirectory:zt,sourceFiles:Wt}=r;return t.bundle=r={commonSourceDirectory:zt,sourceFiles:Wt,js:ut||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:lt||(gv(t.compilerOptions)?(l=t.bundle)==null?void 0:l.dts:void 0)},hF(Ye,r)}let V,ee,te;const oe=oc(t.fileInfos.entries(),([it,Ye])=>{var ut,lt;const zt=ke(it);Dt(it,zt),ce.assert(I[zt-1]===ht(it));const Wt=(ut=t.oldSignatures)==null?void 0:ut.get(it),tt=Wt!==void 0?Wt||void 0:Ye.signature;if(t.compilerOptions.composite){const Mn=t.program.getSourceFileByPath(it);if(!Py(Mn)&&L7(Mn,t.program)){const kn=(lt=t.emitSignatures)==null?void 0:lt.get(it);kn!==tt&&(te||(te=[])).push(kn===void 0?zt:[zt,!As(kn)&&kn[0]===tt?Zn:kn])}}return Ye.version===tt?Ye.affectsGlobalScope||Ye.impliedFormat?{version:Ye.version,signature:void 0,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}:Ye.version:tt!==void 0?Wt===void 0?Ye:{version:Ye.version,signature:tt,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}:{version:Ye.version,signature:!1,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}});let de;t.referencedMap&&(de=oc(t.referencedMap.keys()).sort(Fp).map(it=>[ke(it),_t(t.referencedMap.getValues(it))]));let ue;t.exportedModulesMap&&(ue=Qo(oc(t.exportedModulesMap.keys()).sort(Fp),it=>{var Ye;const ut=(Ye=t.oldExportedModulesMap)==null?void 0:Ye.get(it);if(ut===void 0)return[ke(it),_t(t.exportedModulesMap.getValues(it))];if(ut)return[ke(it),_t(ut)]}));let Ne;if(t.semanticDiagnosticsPerFile)for(const it of oc(t.semanticDiagnosticsPerFile.keys()).sort(Fp)){const Ye=t.semanticDiagnosticsPerFile.get(it);(Ne||(Ne=[])).push(Ye.length?[ke(it),j4e(Ye,ht)]:ke(it))}let Be;if((m=t.affectedFilesPendingEmit)!=null&&m.size){const it=B3(t.compilerOptions),Ye=new Set;for(const ut of oc(t.affectedFilesPendingEmit.keys()).sort(Fp))if(m2(Ye,ut)){const lt=t.program.getSourceFileByPath(ut);if(!lt||!L7(lt,t.program))continue;const zt=ke(ut),Wt=t.affectedFilesPendingEmit.get(ut);(Be||(Be=[])).push(Wt===it?zt:Wt===8?[zt]:[zt,Wt])}}let Ve;if(t.changedFilesSet.size)for(const it of oc(t.changedFilesSet.keys()).sort(Fp))(Ve||(Ve=[])).push(ke(it));const pt={fileNames:I,fileInfos:oe,root:O,options:Ft(t.compilerOptions),fileIdsList:V,referencedMap:de,exportedModulesMap:ue,semanticDiagnosticsPerFile:Ne,affectedFilesPendingEmit:Be,changeFileSet:Ve,emitSignatures:te,latestChangedDtsFile:D};return hF(pt,r);function Le(it){return ht(Su(it,y))}function ht(it){return OE(qp(T,it,t.program.getCanonicalFileName))}function ke(it){let Ye=W.get(it);return Ye===void 0&&(I.push(ht(it)),W.set(it,Ye=I.length)),Ye}function _t(it){const Ye=oc(it.keys(),ke).sort(pf),ut=Ye.join();let lt=ee==null?void 0:ee.get(ut);return lt===void 0&&((V||(V=[])).push(Ye),(ee||(ee=new Map)).set(ut,lt=V.length)),lt}function Dt(it,Ye){const ut=t.program.getSourceFile(it);if(!t.program.getFileIncludeReasons().get(ut.path).some(tt=>tt.kind===0))return;if(!O.length)return O.push(Ye);const lt=O[O.length-1],zt=ls(lt);if(zt&<[1]===Ye-1)return lt[1]=Ye;if(zt||O.length===1||lt!==Ye-1)return O.push(Ye);const Wt=O[O.length-2];return!U1(Wt)||Wt!==lt-1?O.push(Ye):(O[O.length-2]=[Wt,Ye],O.length=O.length-1)}function Ft(it){let Ye;const{optionsNameMap:ut}=DW();for(const lt of ET(it).sort(Fp)){const zt=ut.get(lt.toLowerCase());zt!=null&&zt.affectsBuildInfo&&((Ye||(Ye={}))[lt]=_Je(zt,it[lt],Le))}return Ye}}function _Je(t,r,s){if(t){if(ce.assert(t.type!=="listOrElement"),t.type==="list"){const l=r;if(t.element.isFilePath&&l.length)return l.map(s)}else if(t.isFilePath)return s(r)}return r}function j4e(t,r){return ce.assert(!!t.length),t.map(s=>{const l=dJe(s,r);l.reportsUnnecessary=s.reportsUnnecessary,l.reportDeprecated=s.reportsDeprecated,l.source=s.source,l.skippedOn=s.skippedOn;const{relatedInformation:m}=s;return l.relatedInformation=m?m.length?m.map(y=>dJe(y,r)):[]:void 0,l})}function dJe(t,r){const{file:s}=t;return{...t,file:s?r(s.resolvedPath):void 0,messageText:As(t.messageText)?t.messageText:tge(t.messageText)}}function tge(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:pJe(t.next)};const r=pJe(t.next);return r===t.next?t:{...t,next:r}}function pJe(t){return t&&(Ot(t,(r,s)=>{const l=tge(r);if(r===l)return;const m=s>0?t.slice(0,s-1):[];m.push(l);for(let y=s+1;y`${I(W)}${DU[W.category]}${W.code}: ${D(W.messageText)}`).join(` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Gl),Xt.flags=om,Xt.enclosingDeclaration=uv}function Hr(ai,Vc,Gl){const jl=Uy(ai),Yl=rs(ai),Mm=Vn(Yl,P0=>hr(P0,Xt)),ud=Gp(jl),$f=Nt(ud)?Dd(ud):void 0,ip=ea(Vp(jl),P0=>YI(P0,$f)),om=Yk(0,jl,$f,179),uv=Yk(1,jl,$f,180),l1=A5(jl,$f),u2=Nt(ud)?[be.createHeritageClause(96,Qo(ud,P0=>HV(P0,111551)))]:void 0;yg(be.createInterfaceDeclaration(void 0,G2(ai,Vc),Mm,u2,[...l1,...uv,...om,...ip]),Gl)}function fo(ai){const Vc=Gt(ai);return Vc?gi(oc(Vc.values()),Gl=>C_(Gl)&&rE(Gl.escapedName,99)):[]}function Oa(ai){return jr(fo(ai),Vc=>!(sg(wp(Vc))&111551))}function Qs(ai,Vc,Gl){const jl=fo(ai),Yl=_N(jl,$f=>$f.parent&&$f.parent===ai?"real":"merged"),Mm=Yl.get("real")||Zn,ud=Yl.get("merged")||Zn;if(Nt(Mm)){const $f=G2(ai,Vc);of(Mm,$f,Gl,!!(ai.flags&67108880))}if(Nt(ud)){const $f=ns(Xt.enclosingDeclaration),ip=G2(ai,Vc),om=be.createModuleBlock([be.createExportDeclaration(void 0,!1,be.createNamedExports(Qo(gi(ud,uv=>uv.escapedName!=="export="),uv=>{var l1,u2;const P0=lf(uv.escapedName),Wg=G2(uv,P0),qy=uv.declarations&&og(uv);if($f&&(qy?$f!==ns(qy):!gt(uv.declarations,Rw=>ns(Rw)===$f))){(u2=(l1=Xt.tracker)==null?void 0:l1.reportNonlocalAugmentation)==null||u2.call(l1,$f,ai,uv);return}const ww=qy&&yp(qy,!0);rm(ww||uv);const Qk=ww?G2(ww,lf(ww.escapedName)):Wg;return be.createExportSpecifier(!1,P0===Qk?void 0:Qk,P0)})))]);yg(be.createModuleDeclaration(void 0,be.createIdentifier(ip),om,32),0)}}function Ko(ai,Vc,Gl){yg(be.createEnumDeclaration(be.createModifiersFromModifierFlags(jze(ai)?2048:0),G2(ai,Vc),Vn(gi(Vp(Vo(ai)),jl=>!!(jl.flags&8)),jl=>{const Yl=jl.declarations&&jl.declarations[0]&&Qb(jl.declarations[0])?OGe(jl.declarations[0]):void 0;return be.createEnumMember(lf(jl.escapedName),Yl===void 0?void 0:typeof Yl=="string"?be.createStringLiteral(Yl):be.createNumericLiteral(Yl))})),Gl)}function ss(ai,Vc,Gl,jl){const Yl=Ti(ai,0);for(const Mm of Yl){const ud=Pt(Mm,262,Xt,{name:be.createIdentifier(Gl),privateSymbolVisitor:rm,bundledImports:bs});yg(vr(ud,ll(Mm)),jl)}if(!(Vc.flags&1536&&Vc.exports&&Vc.exports.size)){const Mm=gi(Vp(ai),C_);of(Mm,Gl,jl,!0)}}function ll(ai){if(ai.declaration&&ai.declaration.parent){if(ys(ai.declaration.parent)&&Qy(ai.declaration.parent)===5)return ai.declaration.parent;if(ff(ai.declaration.parent)&&ai.declaration.parent.parent)return ai.declaration.parent.parent}return ai.declaration}function of(ai,Vc,Gl,jl){if(Nt(ai)){const Mm=_N(ai,Wg=>!Nt(Wg.declarations)||gt(Wg.declarations,qy=>ns(qy)===ns(Xt.enclosingDeclaration))?"local":"remote").get("local")||Zn;let ud=DP.createModuleDeclaration(void 0,be.createIdentifier(Vc),be.createModuleBlock([]),32);kl(ud,Bc),ud.locals=Td(ai),ud.symbol=ai[0].parent;const $f=Rf;Rf=[];const ip=No;No=!1;const om={...Xt,enclosingDeclaration:ud},uv=Xt;Xt=om,Sf(Td(Mm),jl,!0),Xt=uv,No=ip;const l1=Rf;Rf=$f;const u2=Vn(l1,Wg=>Ly(Wg)&&!Wg.isExportEquals&&An(Wg.expression)?be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,Wg.expression,be.createIdentifier("default"))])):Wg),P0=jr(u2,Wg=>il(Wg,1))?Vn(u2,Ll):u2;ud=be.updateModuleDeclaration(ud,ud.modifiers,ud.name,be.createModuleBlock(P0)),yg(ud,Gl)}}function C_(ai){return!!(ai.flags&2887656)||!(ai.flags&4194304||ai.escapedName==="prototype"||ai.valueDeclaration&&e_(ai.valueDeclaration)&&Jl(ai.valueDeclaration.parent))}function nd(ai){const Vc=Qo(ai,Gl=>{const jl=Xt.enclosingDeclaration;Xt.enclosingDeclaration=Gl;let Yl=Gl.expression;if(Uh(Yl)){if(An(Yl)&&ec(Yl)==="")return Mm(void 0);let ud;if({introducesError:ud,node:Yl}=Pv(Yl,Xt,rm),ud)return Mm(void 0)}return Mm(be.createExpressionWithTypeArguments(Yl,Vn(Gl.typeArguments,ud=>Lp(Xt,ud,rm,bs)||C(wl(ud),Xt))));function Mm(ud){return Xt.enclosingDeclaration=jl,ud}});if(Vc.length===ai.length)return Vc}function kd(ai,Vc,Gl){var jl,Yl;const Mm=(jl=ai.declarations)==null?void 0:jl.find(Jl),ud=Xt.enclosingDeclaration;Xt.enclosingDeclaration=Mm||ud;const $f=rs(ai),ip=Vn($f,Zk=>hr(Zk,Xt)),om=M1(Uy(ai)),uv=Gp(om),l1=Mm&&qb(Mm),u2=l1&&nd(l1)||Qo(Xd(om),yM),P0=Vo(ai),Wg=!!((Yl=P0.symbol)!=null&&Yl.valueDeclaration)&&Jl(P0.symbol.valueDeclaration),qy=Wg?Nl(P0):gn,ww=[...Nt(uv)?[be.createHeritageClause(96,Vn(uv,Zk=>GK(Zk,qy,Vc)))]:[],...Nt(u2)?[be.createHeritageClause(119,u2)]:[]],Qk=rvt(om,uv,Vp(om)),Rw=gi(Qk,Zk=>{const mne=Zk.valueDeclaration;return!!mne&&!(Xv(mne)&&Gu(mne.name))}),l8=gt(Qk,Zk=>{const mne=Zk.valueDeclaration;return!!mne&&Xv(mne)&&Gu(mne.name)})?[be.createPropertyDeclaration(void 0,be.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Zn,qGe=ea(Rw,Zk=>as(Zk,!1,uv[0])),KGe=ea(gi(Vp(P0),Zk=>!(Zk.flags&4194304)&&Zk.escapedName!=="prototype"&&!C_(Zk)),Zk=>as(Zk,!0,qy)),g0t=!Wg&&!!ai.valueDeclaration&&Rs(ai.valueDeclaration)&&!gt(Ti(P0,1))?[be.createConstructorDeclaration(be.createModifiersFromModifierFlags(8),[],void 0)]:Yk(1,P0,qy,176),h0t=A5(om,uv[0]);Xt.enclosingDeclaration=ud,yg(vr(be.createClassDeclaration(void 0,Vc,ip,ww,[...h0t,...KGe,...g0t,...qGe,...l8]),ai.declarations&&gi(ai.declarations,Zk=>Kc(Zk)||B0(Zk))[0]),Gl)}function lu(ai){return Yr(ai,Vc=>{if(oS(Vc)||Oy(Vc))return ec(Vc.propertyName||Vc.name);if(ys(Vc)||Ly(Vc)){const Gl=Ly(Vc)?Vc.expression:Vc.right;if(sa(Gl))return ec(Gl.name)}if(km(Vc)){const Gl=o_(Vc);if(Gl&&An(Gl))return ec(Gl)}})}function O_(ai,Vc,Gl){var jl,Yl,Mm,ud,$f;const ip=og(ai);if(!ip)return ce.fail();const om=wa(yp(ip,!0));if(!om)return;let uv=VM(om)&&lu(ai.declarations)||lf(om.escapedName);uv==="export="&&it&&(uv="default");const l1=G2(om,uv);switch(rm(om),ip.kind){case 208:if(((Yl=(jl=ip.parent)==null?void 0:jl.parent)==null?void 0:Yl.kind)===260){const Wg=Go(om.parent||om,Xt),{propertyName:qy}=ip;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamedImports([be.createImportSpecifier(!1,qy&&An(qy)?be.createIdentifier(ec(qy)):void 0,be.createIdentifier(Vc))])),be.createStringLiteral(Wg),void 0),0);break}ce.failBadSyntaxKind(((Mm=ip.parent)==null?void 0:Mm.parent)||ip,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:(($f=(ud=ip.parent)==null?void 0:ud.parent)==null?void 0:$f.kind)===226&&rp(lf(ai.escapedName),l1);break;case 260:if(sa(ip.initializer)){const Wg=ip.initializer,qy=be.createUniqueName(Vc),ww=Go(om.parent||om,Xt);yg(be.createImportEqualsDeclaration(void 0,!1,qy,be.createExternalModuleReference(be.createStringLiteral(ww))),0),yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(Vc),be.createQualifiedName(qy,Wg.name)),Gl);break}case 271:if(om.escapedName==="export="&>(om.declarations,Wg=>tl(Wg)&&Py(Wg))){Ug(ai);break}const u2=!(om.flags&512)&&!ff(ip);yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(Vc),u2?nl(om,Xt,67108863,!1):be.createExternalModuleReference(be.createStringLiteral(Go(om,Xt)))),u2?Gl:0);break;case 270:yg(be.createNamespaceExportDeclaration(ec(ip.name)),0);break;case 273:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,be.createIdentifier(Vc),void 0),qy,ip.parent.assertClause),0);break}case 274:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamespaceImport(be.createIdentifier(Vc))),qy,ip.parent.parent.assertClause),0);break}case 280:yg(be.createExportDeclaration(void 0,!1,be.createNamespaceExport(be.createIdentifier(Vc)),be.createStringLiteral(Go(om,Xt))),0);break;case 276:{const Wg=Go(om.parent||om,Xt),qy=bs?be.createStringLiteral(Wg):ip.parent.parent.parent.moduleSpecifier;yg(be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamedImports([be.createImportSpecifier(!1,Vc!==uv?be.createIdentifier(uv):void 0,be.createIdentifier(Vc))])),qy,ip.parent.parent.parent.assertClause),0);break}case 281:const P0=ip.parent.parent.moduleSpecifier;rp(lf(ai.escapedName),P0?uv:l1,P0&&sp(P0)?be.createStringLiteral(P0.text):void 0);break;case 277:Ug(ai);break;case 226:case 211:case 212:ai.escapedName==="default"||ai.escapedName==="export="?Ug(ai):rp(Vc,l1);break;default:return ce.failBadSyntaxKind(ip,"Unhandled alias declaration kind in symbol serializer!")}}function rp(ai,Vc,Gl){yg(be.createExportDeclaration(void 0,!1,be.createNamedExports([be.createExportSpecifier(!1,ai!==Vc?Vc:void 0,ai)]),Gl),0)}function Ug(ai){var Vc;if(ai.flags&4194304)return!1;const Gl=lf(ai.escapedName),jl=Gl==="export=",Mm=jl||Gl==="default",ud=ai.declarations&&og(ai),$f=ud&&yp(ud,!0);if($f&&Nt($f.declarations)&>($f.declarations,ip=>ns(ip)===ns(Bc))){const ip=ud&&(Ly(ud)||ys(ud)?lG(ud):gH(ud)),om=ip&&Uh(ip)?CGe(ip):void 0,uv=om&&P_(om,67108863,!0,!0,Bc);(uv||$f)&&rm(uv||$f);const l1=Xt.tracker.disableTrackSymbol;if(Xt.tracker.disableTrackSymbol=!0,Mm)Rf.push(be.createExportAssignment(void 0,jl,id($f,Xt,67108863)));else if(om===ip&&om)rp(Gl,ec(om));else if(ip&&B0(ip))rp(Gl,G2($f,mp($f)));else{const u2=LO(Gl,ai);yg(be.createImportEqualsDeclaration(void 0,!1,be.createIdentifier(u2),nl($f,Xt,67108863,!1)),0),rp(Gl,u2)}return Xt.tracker.disableTrackSymbol=l1,!0}else{const ip=LO(Gl,ai),om=Bb(Vo(wa(ai)));if(im(om,ai))ss(om,ai,ip,Mm?0:1);else{const uv=be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(ip,void 0,Jf(Xt,om,ai,Bc,rm,bs))],((Vc=Xt.enclosingDeclaration)==null?void 0:Vc.kind)===267?1:2));yg(uv,$f&&$f.flags&4&&$f.escapedName==="export="?2:Gl===ip?1:0)}return Mm?(Rf.push(be.createExportAssignment(void 0,jl,be.createIdentifier(ip))),!0):Gl!==ip?(rp(Gl,ip),!0):!1}}function im(ai,Vc){const Gl=ns(Xt.enclosingDeclaration);return ji(ai)&48&&!Nt(T_(ai))&&!WP(ai)&&!!(Nt(gi(Vp(ai),C_))||Nt(Ti(ai,0)))&&!Nt(Ti(ai,1))&&!Ps(Vc,Bc)&&!(ai.symbol&>(ai.symbol.declarations,jl=>ns(jl)!==Gl))&&!gt(Vp(ai),jl=>s0(jl.escapedName))&&!gt(Vp(ai),jl=>gt(jl.declarations,Yl=>ns(Yl)!==Gl))&&jr(Vp(ai),jl=>rE(mp(jl),ht))}function k0(ai,Vc,Gl){return function(Yl,Mm,ud){var $f,ip,om,uv,l1;const u2=Vy(Yl),P0=!!(u2&8);if(Mm&&Yl.flags&2887656)return[];if(Yl.flags&4194304||Yl.escapedName==="constructor"||ud&&Fn(ud,Yl.escapedName)&&KI(Fn(ud,Yl.escapedName))===KI(Yl)&&(Yl.flags&16777216)===(Fn(ud,Yl.escapedName).flags&16777216)&&eN(Vo(Yl),wm(ud,Yl.escapedName)))return[];const Wg=u2&-513|(Mm?32:0),qy=Cx(Yl,Xt),ww=($f=Yl.declarations)==null?void 0:$f.find(dA(Os,Am,ff,Np,ys,sa));if(Yl.flags&98304&&Gl){const Qk=[];if(Yl.flags&65536&&Qk.push(vr(be.createSetAccessorDeclaration(be.createModifiersFromModifierFlags(Wg),qy,[be.createParameterDeclaration(void 0,void 0,"arg",void 0,P0?void 0:Jf(Xt,Vo(Yl),Yl,Bc,rm,bs))],void 0),((ip=Yl.declarations)==null?void 0:ip.find(_P))||ww)),Yl.flags&32768){const Rw=u2&8;Qk.push(vr(be.createGetAccessorDeclaration(be.createModifiersFromModifierFlags(Wg),qy,[],Rw?void 0:Jf(Xt,Vo(Yl),Yl,Bc,rm,bs),void 0),((om=Yl.declarations)==null?void 0:om.find(J2))||ww))}return Qk}else if(Yl.flags&98311)return vr(ai(be.createModifiersFromModifierFlags((KI(Yl)?64:0)|Wg),qy,Yl.flags&16777216?be.createToken(58):void 0,P0?void 0:Jf(Xt,z6(Yl),Yl,Bc,rm,bs),void 0),((uv=Yl.declarations)==null?void 0:uv.find(dA(Os,ff)))||ww);if(Yl.flags&8208){const Qk=Vo(Yl),Rw=Ti(Qk,0);if(Wg&8)return vr(ai(be.createModifiersFromModifierFlags((KI(Yl)?64:0)|Wg),qy,Yl.flags&16777216?be.createToken(58):void 0,void 0,void 0),((l1=Yl.declarations)==null?void 0:l1.find(J_))||Rw[0]&&Rw[0].declaration||Yl.declarations&&Yl.declarations[0]);const JV=[];for(const l8 of Rw){const qGe=Pt(l8,Vc,Xt,{name:qy,questionToken:Yl.flags&16777216?be.createToken(58):void 0,modifiers:Wg?be.createModifiersFromModifierFlags(Wg):void 0}),KGe=l8.declaration&&H8(l8.declaration.parent)?l8.declaration.parent:l8.declaration;JV.push(vr(qGe,KGe))}return JV}return ce.fail(`Unhandled class member kind! ${Yl.__debugFlags||Yl.flags}`)}}function YI(ai,Vc){return Ec(ai,!1,Vc)}function Yk(ai,Vc,Gl,jl){const Yl=Ti(Vc,ai);if(ai===1){if(!Gl&&jr(Yl,$f=>Nt($f.parameters)===0))return[];if(Gl){const $f=Ti(Gl,1);if(!Nt($f)&&jr(Yl,ip=>Nt(ip.parameters)===0))return[];if($f.length===Yl.length){let ip=!1;for(let om=0;om<$f.length;om++)if(!CC(Yl[om],$f[om],!1,!1,!0,Vue)){ip=!0;break}if(!ip)return[]}}let ud=0;for(const $f of Yl)$f.declaration&&(ud|=ZC($f.declaration,24));if(ud)return[vr(be.createConstructorDeclaration(be.createModifiersFromModifierFlags(ud),[],void 0),Yl[0].declaration)]}const Mm=[];for(const ud of Yl){const $f=Pt(ud,jl,Xt);Mm.push(vr($f,ud.declaration))}return Mm}function A5(ai,Vc){const Gl=[];for(const jl of T_(ai)){if(Vc){const Yl=Cd(Vc,jl.keyType);if(Yl&&eN(jl.type,Yl.type))continue}Gl.push(vt(jl,Xt,void 0))}return Gl}function GK(ai,Vc,Gl){const jl=HV(ai,111551);if(jl)return jl;const Yl=LO(`${Gl}_base`),Mm=be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Yl,void 0,C(Vc,Xt))],2));return yg(Mm,0),be.createExpressionWithTypeArguments(be.createIdentifier(Yl),void 0)}function HV(ai,Vc){let Gl,jl;if(ai.target&&Q(ai.target.symbol,Bc,Vc)?(Gl=Vn(Tm(ai),Yl=>C(Yl,Xt)),jl=id(ai.target.symbol,Xt,788968)):ai.symbol&&Q(ai.symbol,Bc,Vc)&&(jl=id(ai.symbol,Xt,788968)),jl)return be.createExpressionWithTypeArguments(jl,Gl)}function yM(ai){const Vc=HV(ai,788968);if(Vc)return Vc;if(ai.symbol)return be.createExpressionWithTypeArguments(id(ai.symbol,Xt,788968),void 0)}function LO(ai,Vc){var Gl,jl;const Yl=Vc?Bp(Vc):void 0;if(Yl&&Xt.remappedSymbolNames.has(Yl))return Xt.remappedSymbolNames.get(Yl);Vc&&(ai=P1e(Vc,ai));let Mm=0;const ud=ai;for(;(Gl=Xt.usedSymbolNames)!=null&&Gl.has(ai);)Mm++,ai=`${ud}_${Mm}`;return(jl=Xt.usedSymbolNames)==null||jl.add(ai),Yl&&Xt.remappedSymbolNames.set(Yl,ai),ai}function P1e(ai,Vc){if(Vc==="default"||Vc==="__class"||Vc==="__function"){const Gl=Xt.flags;Xt.flags|=16777216;const jl=dx(ai,Xt);Xt.flags=Gl,Vc=jl.length>0&&Dde(jl.charCodeAt(0))?HE(jl):jl}return Vc==="default"?Vc="_default":Vc==="export="&&(Vc="_exports"),Vc=rE(Vc,ht)&&!t6(Vc)?Vc:"_"+Vc.replace(/[^a-zA-Z0-9]/g,"_"),Vc}function G2(ai,Vc){const Gl=Bp(ai);return Xt.remappedSymbolNames.has(Gl)?Xt.remappedSymbolNames.get(Gl):(Vc=P1e(ai,Vc),Xt.remappedSymbolNames.set(Gl,Vc),Vc)}}}function LA(a,_,b=16384,C){return C?M(C).getText():qU(M);function M(z){const Z=be.createTypePredicateNode(a.kind===2||a.kind===3?be.createToken(131):void 0,a.kind===1||a.kind===3?be.createIdentifier(a.parameterName):be.createThisTypeNode(),a.type&&Xr.typeToTypeNode(a.type,_,hC(b)|70221824|512)),me=GW(),Se=_&&ns(_);return me.writeNode(4,Z,Se,z),z}}function OA(a){const _=[];let b=0;for(let C=0;Co_(z)?z:void 0);const M=C&&o_(C);if(C&&M){if(el(C)&&cH(C))return mp(a);if(am(M)&&!(I_(a)&4096)){const z=Mt(a).nameType;if(z&&z.flags&384){const Z=Xx(a,_);if(Z!==void 0)return Z}}return Ud(M)}if(C||(C=a.declarations[0]),C.parent&&C.parent.kind===260)return Ud(C.parent.name);switch(C.kind){case 231:case 218:case 219:return _&&!_.encounteredError&&!(_.flags&131072)&&(_.encounteredError=!0),C.kind===231?"(Anonymous class)":"(Anonymous function)"}}const b=Xx(a,_);return b!==void 0?b:mp(a)}function WS(a){if(a){const b=ge(a);return b.isVisible===void 0&&(b.isVisible=!!_()),b.isVisible}return!1;function _(){switch(a.kind){case 345:case 353:case 347:return!!(a.parent&&a.parent.parent&&a.parent.parent.parent&&tl(a.parent.parent.parent));case 208:return WS(a.parent.parent);case 260:if(ld(a.name)&&!a.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(WL(a))return!0;const b=FA(a);return!(E5(a)&1)&&!(a.kind!==271&&b.kind!==312&&b.flags&33554432)?mn(b):WS(b);case 172:case 171:case 177:case 178:case 174:case 173:if(Ab(a,24))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 WS(a.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 px(a,_){let b;a.parent&&a.parent.kind===277?b=Ro(a,a.escapedText,2998271,void 0,a,!1):a.parent.kind===281&&(b=ag(a.parent,2998271));let C,M;return b&&(M=new Set,M.add(Bp(b)),z(b.declarations)),C;function z(Z){Ot(Z,me=>{const Se=R_(me)||me;if(_?ge(me).isVisible=!0:(C=C||[],Dy(C,Se)),y1(me)){const Je=me.moduleReference,vt=NS(Je),Pt=Ro(me,vt.escapedText,901119,void 0,void 0,!1);Pt&&M&&m2(M,Bp(Pt))&&z(Pt.declarations)}})}}function j_(a,_){const b=GP(a,_);if(b>=0){const{length:C}=Ze;for(let M=b;M=It;b--){if(oO(Ze[b],st[b]))return-1;if(Ze[b]===a&&st[b]===_)return b}return-1}function oO(a,_){switch(_){case 0:return!!Mt(a).type;case 5:return!!ge(a).resolvedEnumType;case 2:return!!Mt(a).declaredType;case 1:return!!a.resolvedBaseConstructorType;case 3:return!!a.resolvedReturnType;case 4:return!!a.immediateBaseConstraint;case 6:return!!a.resolvedTypeArguments;case 7:return!!a.baseTypesResolved;case 8:return!!Mt(a).writeType;case 9:return ge(a).parameterInitializerContainsUndefined!==void 0}return ce.assertNever(_)}function dS(){return Ze.pop(),st.pop(),Ke.pop()}function FA(a){return Kr(rI(a),_=>{switch(_.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function bC(a){const _=Rm(Uf(a));return _.typeParameters?jA(_,Vn(_.typeParameters,b=>gn)):_}function wm(a,_){const b=Fn(a,_);return b?Vo(b):void 0}function db(a,_){var b;return wm(a,_)||((b=yx(a,_))==null?void 0:b.type)||co}function o1(a,_){var b;let C;return wm(a,_)||(C=(b=yx(a,_))==null?void 0:b.type)&&fm(C,!0,!0)}function Q_(a){return a&&(a.flags&1)!==0}function je(a){return a===_r||!!(a.flags&1&&a.aliasSymbol)}function Vt(a,_){if(_!==0)return mx(a,!1,_);const b=wi(a);return b&&Mt(b).type||mx(a,!1,_)}function zn(a,_,b){if(a=D0(a,Se=>!(Se.flags&98304)),a.flags&131072)return Yu;if(a.flags&1048576)return bh(a,Se=>zn(Se,_,b));let C=gl(Vn(_,q6));const M=[],z=[];for(const Se of Vp(a)){const Je=pte(Se,8576);!Mp(Je,C)&&!(Vy(Se)&24)&&Q0e(Se)?M.push(Se):z.push(Je)}if(nM(a)||HS(C)){if(z.length&&(C=gl([C,...z])),C.flags&131072)return a;const Se=zZe();return Se?Mc(Se,[a,C]):_r}const Z=Td();for(const Se of M)Z.set(Se.escapedName,CV(Se,!1));const me=jo(b,Z,Zn,Zn,T_(a));return me.objectFlags|=4194304,me}function zr(a){return!!(a.flags&465829888)&&cy(Co(a)||co,32768)}function xi(a){const _=dM(a,zr)?bh(a,b=>b.flags&465829888?DE(b):b):a;return JA(_,524288)}function xo(a,_){const b=Wc(a);return b?t8(b,_):_}function Wc(a){const _=hu(a);if(_&&LN(_)&&_.flowNode){const b=_c(a);if(b){const C=vr(DP.createStringLiteral(b),a),M=FE(_)?_:DP.createParenthesizedExpression(_),z=vr(DP.createElementAccessExpression(M,C),a);return kl(C,z),kl(z,a),M!==_&&kl(M,z),z.flowNode=_.flowNode,z}}}function hu(a){const _=a.parent.parent;switch(_.kind){case 208:case 303:return Wc(_);case 209:return Wc(a.parent);case 260:return _.initializer;case 226:return _.right}}function _c(a){const _=a.parent;return a.kind===208&&_.kind===206?Sl(a.propertyName||a.name):a.kind===303||a.kind===304?Sl(a.name):""+_.elements.indexOf(a)}function Sl(a){const _=q6(a);return _.flags&384?""+_.value:void 0}function kf(a){const _=a.dotDotDotToken?64:0,b=Vt(a.parent.parent,_);return b&&Rp(a,b)}function Rp(a,_){if(Q_(_))return _;const b=a.parent;Ye&&a.flags&33554432&&Y8(a)?_=aM(_):Ye&&b.parent.initializer&&!(bS(dK(b.parent.initializer))&65536)&&(_=JA(_,524288));let C;if(b.kind===206)if(a.dotDotDotToken){if(_=HT(_),_.flags&2||!Nte(_))return He(a,w.Rest_types_may_only_be_created_from_object_types),_r;const M=[];for(const z of b.elements)z.dotDotDotToken||M.push(z.propertyName||z.name);C=zn(_,M,a.symbol)}else{const M=a.propertyName||a.name,z=q6(M),Z=s2(_,z,32,M);C=xo(a,Z)}else{const M=cL(65|(a.dotDotDotToken?0:128),_,Ui,b),z=b.elements.indexOf(a);if(a.dotDotDotToken){const Z=bh(_,me=>me.flags&58982400?DE(me):me);C=iA(Z,_p)?bh(Z,me=>eM(me,z)):W1(M)}else if(iM(_)){const Z=bD(z),me=32|(GB(a)?16:0),Se=Wb(_,Z,me,a.name)||_r;C=xo(a,Se)}else C=M}return a.initializer?Kb(zX(a))?Ye&&!(bS(DK(a,0))&16777216)?xi(C):C:Ife(a,gl([xi(C),DK(a,0)],2)):C}function hn(a){const _=X1(a);if(_)return wl(_)}function v_(a){const _=_g(a,!0);return _.kind===106||_.kind===80&&ED(_)===In}function yh(a){const _=_g(a,!0);return _.kind===209&&_.elements.length===0}function fm(a,_=!1,b=!0){return Ye&&b?eL(a,_):a}function mx(a,_,b){if(ff(a)&&a.parent.parent.kind===249){const Z=YP(Mte(n_(a.parent.parent.expression,b)));return Z.flags&4456448?SPe(Z):xe}if(ff(a)&&a.parent.parent.kind===250){const Z=a.parent.parent;return zfe(Z)||gn}if(ld(a.parent))return kf(a);const C=Os(a)&&!_k(a)||Np(a)||IEe(a),M=_&&hG(a),z=Tu(a);if(JC(a))return z?Q_(z)||z===co?z:_r:Mn?co:gn;if(z)return fm(z,C,M);if((Wt||Rs(a))&&ff(a)&&!ld(a.name)&&!(E5(a)&1)&&!(a.flags&33554432)){if(!(x5(a)&6)&&(!a.initializer||v_(a.initializer)))return qr;if(a.initializer&&yh(a.initializer))return ii}if(Pu(a)){const Z=a.parent;if(Z.kind===178&&GS(Z)){const Je=Vm(wi(a.parent),177);if(Je){const vt=Cv(Je),Pt=VGe(Z);return Pt&&a===Pt?(ce.assert(!Pt.type),Vo(vt.thisParameter)):j(vt)}}const me=GA(Z,a);if(me)return me;const Se=a.symbol.escapedName==="this"?ptt(Z):Dw(a);if(Se)return fm(Se,!1,M)}if(p7(a)&&a.initializer){if(Rs(a)&&!Pu(a)){const me=Bd(a,wi(a),k9(a));if(me)return me}const Z=Ife(a,DK(a,b));return fm(Z,C,M)}if(Os(a)&&(Wt||Rs(a)))if(Ny(a)){const Z=gi(a.parent.members,nu),me=Z.length?tp(a.symbol,Z):tS(a)&2?zPe(a.symbol):void 0;return me&&fm(me,!0,M)}else{const Z=n2(a.parent),me=Z?gx(a.symbol,Z):tS(a)&2?zPe(a.symbol):void 0;return me&&fm(me,!0,M)}if(Pb(a))return Ji;if(ld(a.name))return Ae(a.name,!1,!0)}function BS(a){if(a.valueDeclaration&&ys(a.valueDeclaration)){const _=Mt(a);return _.isConstructorDeclaredProperty===void 0&&(_.isConstructorDeclaredProperty=!1,_.isConstructorDeclaredProperty=!!pS(a)&&jr(a.declarations,b=>ys(b)&&yNe(b)&&(b.left.kind!==212||Qv(b.left.argumentExpression))&&!Bm(void 0,b,a,b))),_.isConstructorDeclaredProperty}return!1}function N2(a){const _=a.valueDeclaration;return _&&Os(_)&&!Kb(_)&&!_.initializer&&(Wt||Rs(_))}function pS(a){if(a.declarations)for(const _ of a.declarations){const b=Q1(_,!1,!1);if(b&&(b.kind===176||JI(b)))return b}}function jP(a){const _=ns(a.declarations[0]),b=lf(a.escapedName),C=a.declarations.every(z=>Rs(z)&&Kf(z)&&KC(z.expression)),M=C?be.createPropertyAccessExpression(be.createPropertyAccessExpression(be.createIdentifier("module"),be.createIdentifier("exports")),b):be.createPropertyAccessExpression(be.createIdentifier("exports"),b);return C&&kl(M.expression.expression,M.expression),kl(M.expression,M),kl(M,_),M.flowNode=_.endFlowNode,t8(M,qr,Ui)}function tp(a,_){const b=xf(a.escapedName,"__#")?be.createPrivateIdentifier(a.escapedName.split("@")[1]):lf(a.escapedName);for(const C of _){const M=be.createPropertyAccessExpression(be.createThis(),b);kl(M.expression,M),kl(M,C),M.flowNode=C.returnFlowNode;const z=VP(M,a);if(Wt&&(z===qr||z===ii)&&He(a.valueDeclaration,w.Member_0_implicitly_has_an_1_type,Cl(a),oa(z)),!iA(z,wNe))return Bfe(z)}}function gx(a,_){const b=xf(a.escapedName,"__#")?be.createPrivateIdentifier(a.escapedName.split("@")[1]):lf(a.escapedName),C=be.createPropertyAccessExpression(be.createThis(),b);kl(C.expression,C),kl(C,_),C.flowNode=_.returnFlowNode;const M=VP(C,a);return Wt&&(M===qr||M===ii)&&He(a.valueDeclaration,w.Member_0_implicitly_has_an_1_type,Cl(a),oa(M)),iA(M,wNe)?void 0:Bfe(M)}function VP(a,_){const b=(_==null?void 0:_.valueDeclaration)&&(!N2(_)||tS(_.valueDeclaration)&2)&&zPe(_)||Ui;return t8(a,qr,b)}function UP(a,_){const b=x7(a.valueDeclaration);if(b){const me=Rs(b)?w8(b):void 0;return me&&me.typeExpression?wl(me.typeExpression):a.valueDeclaration&&Bd(a.valueDeclaration,a,b)||TO(Iv(b))}let C,M=!1,z=!1;if(BS(a)&&(C=gx(a,pS(a))),!C){let me;if(a.declarations){let Se;for(const Je of a.declarations){const vt=ys(Je)||el(Je)?Je:Kf(Je)?ys(Je.parent)?Je.parent:Je:void 0;if(!vt)continue;const Pt=Kf(vt)?N9(vt):Qy(vt);(Pt===4||ys(vt)&&yNe(vt,Pt))&&(A0(vt)?M=!0:z=!0),el(vt)||(Se=Bm(Se,vt,a,Je)),Se||(me||(me=[])).push(ys(vt)||el(vt)?Hv(a,_,vt,Pt):vs)}C=Se}if(!C){if(!Nt(me))return _r;let Se=M&&a.declarations?w2(me,a.declarations):void 0;if(z){const vt=zPe(a);vt&&((Se||(Se=[])).push(vt),M=!0)}const Je=gt(Se,vt=>!!(vt.flags&-98305))?Se:me;C=gl(Je)}}const Z=Bb(fm(C,!1,z&&!M));return a.valueDeclaration&&Rs(a.valueDeclaration)&&D0(Z,me=>!!(me.flags&-98305))===vs?(sM(a.valueDeclaration,gn),gn):Z}function Bd(a,_,b){var C,M;if(!Rs(a)||!b||!Wd(b)||b.properties.length)return;const z=Td();for(;ys(a)||sa(a);){const Se=Vl(a);(C=Se==null?void 0:Se.exports)!=null&&C.size&&Ce(z,Se.exports),a=ys(a)?a.parent:a.parent.parent}const Z=Vl(a);(M=Z==null?void 0:Z.exports)!=null&&M.size&&Ce(z,Z.exports);const me=jo(_,z,Zn,Zn,Zn);return me.objectFlags|=4096,me}function Bm(a,_,b,C){var M;const z=Kb(_.parent);if(z){const Z=Bb(wl(z));if(a)!je(a)&&!je(Z)&&!eN(a,Z)&&Unt(void 0,a,C,Z);else return Z}if((M=b.parent)!=null&&M.valueDeclaration){const Z=Kb(b.parent.valueDeclaration);if(Z){const me=Fn(wl(Z),b.escapedName);if(me)return WA(me)}}return a}function Hv(a,_,b,C){if(el(b)){if(_)return Vo(_);const Z=Iv(b.arguments[2]),me=wm(Z,"value");if(me)return me;const Se=wm(Z,"get");if(Se){const vt=NO(Se);if(vt)return j(vt)}const Je=wm(Z,"set");if(Je){const vt=NO(Je);if(vt)return Jk(vt)}return gn}if(TE(b.left,b.right))return gn;const M=C===1&&(sa(b.left)||Ed(b.left))&&(KC(b.left.expression)||An(b.left.expression)&&GL(b.left.expression)),z=_?Vo(_):M?B1(Iv(b.right)):TO(Iv(b.right));if(z.flags&524288&&C===2&&a.escapedName==="export="){const Z=K0(z),me=Td();tY(Z.members,me);const Se=me.size;_&&!_.exports&&(_.exports=Td()),(_||a).exports.forEach((vt,Pt)=>{var dn;const yn=me.get(Pt);if(yn&&yn!==vt&&!(vt.flags&2097152))if(vt.flags&111551&&yn.flags&111551){if(vt.valueDeclaration&&yn.valueDeclaration&&ns(vt.valueDeclaration)!==ns(yn.valueDeclaration)){const bi=lf(vt.escapedName),Wo=((dn=to(yn.valueDeclaration,Xv))==null?void 0:dn.name)||yn.valueDeclaration;ml(He(vt.valueDeclaration,w.Duplicate_identifier_0,bi),kc(Wo,w._0_was_also_declared_here,bi)),ml(He(Wo,w.Duplicate_identifier_0,bi),kc(vt.valueDeclaration,w._0_was_also_declared_here,bi))}const hr=Ge(vt.flags|yn.flags,Pt);hr.links.type=gl([Vo(vt),Vo(yn)]),hr.valueDeclaration=yn.valueDeclaration,hr.declarations=Hi(yn.declarations,vt.declarations),me.set(Pt,hr)}else me.set(Pt,go(vt,yn));else me.set(Pt,vt)});const Je=jo(Se!==me.size?void 0:Z.symbol,me,Z.callSignatures,Z.constructSignatures,Z.indexInfos);if(Se===me.size&&(z.aliasSymbol&&(Je.aliasSymbol=z.aliasSymbol,Je.aliasTypeArguments=z.aliasTypeArguments),ji(z)&4)){Je.aliasSymbol=z.symbol;const vt=Tm(z);Je.aliasTypeArguments=Nt(vt)?vt:void 0}return Je.objectFlags|=ji(z)&4096,Je.symbol&&Je.symbol.flags&32&&z===Uy(Je.symbol)&&(Je.objectFlags|=16777216),Je}return kV(z)?(sM(b,ir),ir):z}function TE(a,_){return sa(a)&&a.expression.kind===110&&k3(_,b=>Xh(a,b))}function A0(a){const _=Q1(a,!1,!1);return _.kind===176||_.kind===262||_.kind===218&&!H8(_.parent)}function w2(a,_){return ce.assert(a.length===_.length),a.filter((b,C)=>{const M=_[C],z=ys(M)?M:ys(M.parent)?M.parent:void 0;return z&&A0(z)})}function R2(a,_,b){if(a.initializer){const C=ld(a.name)?Ae(a.name,!0,!1):co;return fm(Ife(a,DK(a,0,C)))}return ld(a.name)?Ae(a.name,_,b):(b&&!gs(a)&&sM(a,gn),_?oi:gn)}function U(a,_,b){const C=Td();let M,z=131200;Ot(a.elements,me=>{const Se=me.propertyName||me.name;if(me.dotDotDotToken){M=yD(xe,gn,!1);return}const Je=q6(Se);if(!yv(Je)){z|=512;return}const vt=vv(Je),Pt=4|(me.initializer?16777216:0),dn=Ge(Pt,vt);dn.links.type=R2(me,_,b),dn.links.bindingElement=me,C.set(dn.escapedName,dn)});const Z=jo(void 0,C,Zn,Zn,M?[M]:Zn);return Z.objectFlags|=z,_&&(Z.pattern=a,Z.objectFlags|=131072),Z}function le(a,_,b){const C=a.elements,M=Yf(C),z=M&&M.kind===208&&M.dotDotDotToken?M:void 0;if(C.length===0||C.length===1&&z)return ht>=2?xWe(gn):ir;const Z=Vn(C,vt=>t0(vt)?gn:R2(vt,_,b)),me=Ms(C,vt=>!(vt===z||t0(vt)||GB(vt)),C.length-1)+1,Se=Vn(C,(vt,Pt)=>vt===z?4:Pt>=me?2:1);let Je=$v(Z,Se);return _&&(Je=yO(Je),Je.pattern=a,Je.objectFlags|=131072),Je}function Ae(a,_=!1,b=!1){return a.kind===206?U(a,_,b):le(a,_,b)}function rt(a,_){return Ci(mx(a,!0,0),a,_)}function Dn(a){const _=Vl(a),b=vWe(!1);return b&&_&&_===b}function Ci(a,_,b){return a?(a.flags&4096&&Dn(_.parent)&&(a=PB(_)),b&&UPe(_,a),a.flags&8192&&(ym(_)||!_.type)&&a.symbol!==wi(_)&&(a=Qa),Bb(a)):(a=Pu(_)&&_.dotDotDotToken?ir:gn,b&&(gs(_)||sM(_,a)),a)}function gs(a){const _=rI(a),b=_.kind===169?_.parent:_;return Xte(b)}function Tu(a){const _=Kb(a);if(_)return wl(_)}function tg(a){let _=a.valueDeclaration;return _?(ym(_)&&(_=zX(_)),Pu(_)?RPe(_.parent):!1):!1}function mS(a){const _=Mt(a);if(!_.type){const b=gg(a);return!_.type&&!tg(a)&&(_.type=b),b}return _.type}function gg(a){if(a.flags&4194304)return bC(a);if(a===ei)return gn;if(a.flags&134217728&&a.valueDeclaration){const C=wi(ns(a.valueDeclaration)),M=Ge(C.flags,"exports");M.declarations=C.declarations?C.declarations.slice():[],M.parent=a,M.links.target=C,C.valueDeclaration&&(M.valueDeclaration=C.valueDeclaration),C.members&&(M.members=new Map(C.members)),C.exports&&(M.exports=new Map(C.exports));const z=Td();return z.set("exports",M),jo(a,z,Zn,Zn,Zn)}ce.assertIsDefined(a.valueDeclaration);const _=a.valueDeclaration;if(tl(_)&&Py(_))return _.statements.length?Bb(TO(n_(_.statements[0].expression))):Yu;if(Am(_))return M2(a);if(!j_(a,0))return a.flags&512&&!(a.flags&67108864)?JR(a):cw(a);let b;if(_.kind===277)b=Ci(Tu(_)||Iv(_.expression),_);else if(ys(_)||Rs(_)&&(el(_)||(sa(_)||_Y(_))&&ys(_.parent)))b=UP(a);else if(sa(_)||Ed(_)||An(_)||sp(_)||nS(_)||Kc(_)||b0(_)||em(_)&&!q2(_)||Jh(_)||tl(_)){if(a.flags&9136)return JR(a);b=ys(_.parent)?UP(a):Tu(_)||gn}else if(Fm(_))b=Tu(_)||kfe(_);else if(Pb(_))b=Tu(_)||p5(_);else if(BT(_))b=Tu(_)||$te(_.name,0);else if(q2(_))b=Tu(_)||Pfe(_,0);else if(Pu(_)||Os(_)||Np(_)||ff(_)||ym(_)||BM(_))b=rt(_,!0);else if(Ih(_))b=JR(a);else if(Qb(_))b=HP(a);else return ce.fail("Unhandled declaration kind! "+ce.formatSyntaxKind(_.kind)+" for "+ce.formatSymbol(a));return dS()?b:a.flags&512&&!(a.flags&67108864)?JR(a):cw(a)}function Nh(a){if(a)switch(a.kind){case 177:return bA(a);case 178:return mSe(a);case 172:return ce.assert(_k(a)),Kb(a)}}function r2(a){const _=Nh(a);return _&&wl(_)}function II(a){const _=VGe(a);return _&&_.symbol}function Mk(a){return xC(Cv(a))}function M2(a){const _=Mt(a);if(!_.type){if(!j_(a,0))return _r;const b=Vm(a,177),C=Vm(a,178),M=to(Vm(a,172),rb);let z=b&&Rs(b)&&hn(b)||r2(b)||r2(C)||r2(M)||b&&b.body&&ewe(b)||M&&M.initializer&&rt(M,!0);z||(C&&!Xte(C)?dr(Wt,C,w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Cl(a)):b&&!Xte(b)?dr(Wt,b,w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Cl(a)):M&&!Xte(M)&&dr(Wt,M,w.Member_0_implicitly_has_an_1_type,Cl(a),"any"),z=gn),dS()||(Nh(b)?He(b,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)):Nh(C)||Nh(M)?He(C,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)):b&&Wt&&He(b,w._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,Cl(a)),z=gn),_.type=z}return _.type}function HR(a){const _=Mt(a);if(!_.writeType){if(!j_(a,8))return _r;const b=Vm(a,178)??to(Vm(a,172),rb);let C=r2(b);dS()||(Nh(b)&&He(b,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)),C=gn),_.writeType=C||M2(a)}return _.writeType}function kI(a){const _=Nl(Uy(a));return _.flags&8650752?_:_.flags&2097152?lr(_.types,b=>!!(b.flags&8650752)):void 0}function JR(a){let _=Mt(a);const b=_;if(!_.type){const C=a.valueDeclaration&&gfe(a.valueDeclaration,!1);if(C){const M=$be(a,C);M&&(a=M,_=M.links)}b.type=_.type=PI(a)}return _.type}function PI(a){const _=a.valueDeclaration;if(a.flags&1536&&VM(a))return gn;if(_&&(_.kind===226||Kf(_)&&_.parent.kind===226))return UP(a);if(a.flags&512&&_&&tl(_)&&_.commonJsModuleIndicator){const C=$0(a);if(C!==a){if(!j_(a,0))return _r;const M=wa(a.exports.get("export=")),z=UP(M,M===C?void 0:C);return dS()?z:cw(a)}}const b=Uv(16,a);if(a.flags&32){const C=kI(a);return C?Dd([b,C]):b}else return Ye&&a.flags&16777216?eL(b,!0):b}function HP(a){const _=Mt(a);return _.type||(_.type=sO(a))}function mD(a){const _=Mt(a);if(!_.type){const b=Xp(a),C=a.declarations&&yp(og(a),!0),M=Yr(C==null?void 0:C.declarations,z=>Ly(z)?Tu(z):void 0);_.type=C!=null&&C.declarations&&Bwe(C.declarations)&&a.declarations.length?jP(C):Bwe(a.declarations)?qr:M||(sg(b)&111551?Vo(b):_r)}return _.type}function NI(a){const _=Mt(a);return _.type||(_.type=Nf(Vo(_.target),_.mapper))}function sw(a){const _=Mt(a);return _.writeType||(_.writeType=Nf(z6(_.target),_.mapper))}function cw(a){const _=a.valueDeclaration;return Kb(_)?(He(a.valueDeclaration,w._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cl(a)),_r):(Wt&&(_.kind!==169||_.initializer)&&He(a.valueDeclaration,w._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Cl(a)),gn)}function aO(a){const _=Mt(a);return _.type||(ce.assertIsDefined(_.deferralParent),ce.assertIsDefined(_.deferralConstituents),_.type=_.deferralParent.flags&1048576?gl(_.deferralConstituents):Dd(_.deferralConstituents)),_.type}function yB(a){const _=Mt(a);return!_.writeType&&_.deferralWriteConstituents&&(ce.assertIsDefined(_.deferralParent),ce.assertIsDefined(_.deferralConstituents),_.writeType=_.deferralParent.flags&1048576?gl(_.deferralWriteConstituents):Dd(_.deferralWriteConstituents)),_.writeType}function z6(a){const _=I_(a);return a.flags&4?_&2?_&65536?yB(a)||aO(a):a.links.writeType||a.links.type:Vo(a):a.flags&98304?_&1?sw(a):HR(a):Vo(a)}function Vo(a){const _=I_(a);return _&65536?aO(a):_&1?NI(a):_&262144?TC(a):_&8192?wgt(a):a.flags&7?mS(a):a.flags&9136?JR(a):a.flags&8?HP(a):a.flags&98304?M2(a):a.flags&2097152?mD(a):_r}function WA(a){return l5(Vo(a),!!(a.flags&16777216))}function gD(a,_){return a!==void 0&&_!==void 0&&(ji(a)&4)!==0&&a.target===_}function UT(a){return ji(a)&4?a.target:a}function wI(a,_){return b(a);function b(C){if(ji(C)&7){const M=UT(C);return M===_||gt(Gp(M),b)}else if(C.flags&2097152)return gt(C.types,b);return!1}}function k4(a,_){for(const b of _)a=ST(a,Ok(wi(b)));return a}function P4(a,_){for(;;){if(a=a.parent,a&&ys(a)){const b=Qy(a);if(b===6||b===3){const C=wi(a.left);C&&C.parent&&!Kr(C.parent.valueDeclaration,M=>a===M)&&(a=C.parent.valueDeclaration)}}if(!a)return;switch(a.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=P4(a,_);if(a.kind===200)return ur(C,Ok(wi(a.typeParameter)));if(a.kind===194)return Hi(C,aet(a));const M=k4(C,oR(a)),z=_&&(a.kind===263||a.kind===231||a.kind===264||JI(a))&&Uy(wi(a)).thisType;return z?ur(M,z):M}case 348:const b=mY(a);b&&(a=b.valueDeclaration);break;case 327:{const C=P4(a,_);return a.tags?k4(C,ea(a.tags,M=>jx(M)?M.typeParameters:void 0)):C}}}}function G6(a){var _;const b=a.flags&32||a.flags&16?a.valueDeclaration:(_=a.declarations)==null?void 0:_.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const M=C.initializer;return!!M&&(M.kind===218||M.kind===219)});return ce.assert(!!b,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),P4(b)}function rs(a){if(!a.declarations)return;let _;for(const b of a.declarations)(b.kind===264||b.kind===263||b.kind===231||JI(b)||fH(b))&&(_=k4(_,oR(b)));return _}function Ob(a){return Hi(G6(a),rs(a))}function gf(a){const _=Ti(a,1);if(_.length===1){const b=_[0];if(!b.typeParameters&&b.parameters.length===1&&oT(b)){const C=Ybe(b.parameters[0]);return Q_(C)||iBe(C)===gn}}return!1}function ko(a){if(Ti(a,1).length>0)return!0;if(a.flags&8650752){const _=Co(a);return!!_&&gf(_)}return!1}function ac(a){const _=RS(a.symbol);return _&&hA(_)}function Ys(a,_,b){const C=Nt(_),M=Rs(b);return gi(Ti(a,1),z=>(M||C>=EC(z.typeParameters))&&C<=Nt(z.typeParameters))}function Ni(a,_,b){const C=Ys(a,_,b),M=Vn(_,wl);return Ol(C,z=>gt(z.typeParameters)?Vi(z,M,Rs(b)):z)}function Nl(a){if(!a.resolvedBaseConstructorType){const _=RS(a.symbol),b=_&&hA(_),C=ac(a);if(!C)return a.resolvedBaseConstructorType=Ui;if(!j_(a,1))return _r;const M=n_(C.expression);if(b&&C!==b&&(ce.assert(!b.typeArguments),n_(b.expression)),M.flags&2621440&&K0(M),!dS())return He(a.symbol.valueDeclaration,w._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Cl(a.symbol)),a.resolvedBaseConstructorType=_r;if(!(M.flags&1)&&M!==Zt&&!ko(M)){const z=He(C.expression,w.Type_0_is_not_a_constructor_function_type,oa(M));if(M.flags&262144){const Z=TV(M);let me=co;if(Z){const Se=Ti(Z,1);Se[0]&&(me=j(Se[0]))}M.symbol.declarations&&ml(z,kc(M.symbol.declarations[0],w.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Cl(M.symbol),oa(me)))}return a.resolvedBaseConstructorType=_r}a.resolvedBaseConstructorType=M}return a.resolvedBaseConstructorType}function Xd(a){let _=Zn;if(a.symbol.declarations)for(const b of a.symbol.declarations){const C=qb(b);if(C)for(const M of C){const z=wl(M);je(z)||(_===Zn?_=[z]:_.push(z))}}return _}function b_(a,_){He(a,w.Type_0_recursively_references_itself_as_a_base_type,oa(_,void 0,2))}function Gp(a){if(!a.baseTypesResolved){if(j_(a,7)&&(a.objectFlags&8?a.resolvedBaseTypes=[w1(a)]:a.symbol.flags&96?(a.symbol.flags&32&&zS(a),a.symbol.flags&64&&JP(a)):ce.fail("type must be class or interface"),!dS()&&a.symbol.declarations))for(const _ of a.symbol.declarations)(_.kind===263||_.kind===264)&&b_(_,a);a.baseTypesResolved=!0}return a.resolvedBaseTypes}function w1(a){const _=Ol(a.typeParameters,(b,C)=>a.elementFlags[C]&8?s2(b,an):b);return W1(gl(_||Zn),a.readonly)}function zS(a){a.resolvedBaseTypes=eJ;const _=O1(Nl(a));if(!(_.flags&2621441))return a.resolvedBaseTypes=Zn;const b=ac(a);let C;const M=_.symbol?Rm(_.symbol):void 0;if(_.symbol&&_.symbol.flags&32&&SE(M))C=cl(b,_.symbol);else if(_.flags&1)C=_;else{const Z=Ni(_,b.typeArguments,b);if(!Z.length)return He(b.expression,w.No_base_constructor_has_the_specified_number_of_type_arguments),a.resolvedBaseTypes=Zn;C=j(Z[0])}if(je(C))return a.resolvedBaseTypes=Zn;const z=HT(C);if(!R1(z)){const Z=bn(void 0,C),me=Es(Z,w.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,oa(z));return no.add(RN(ns(b.expression),b.expression,me)),a.resolvedBaseTypes=Zn}return a===z||wI(z,a)?(He(a.symbol.valueDeclaration,w.Type_0_recursively_references_itself_as_a_base_type,oa(a,void 0,2)),a.resolvedBaseTypes=Zn):(a.resolvedBaseTypes===eJ&&(a.members=void 0),a.resolvedBaseTypes=[z])}function SE(a){const _=a.outerTypeParameters;if(_){const b=_.length-1,C=Tm(a);return _[b].symbol!==C[b].symbol}return!0}function R1(a){if(a.flags&262144){const _=Co(a);if(_)return R1(_)}return!!(a.flags&67633153&&!by(a)||a.flags&2097152&&jr(a.types,R1))}function JP(a){if(a.resolvedBaseTypes=a.resolvedBaseTypes||Zn,a.symbol.declarations){for(const _ of a.symbol.declarations)if(_.kind===264&&F9(_))for(const b of F9(_)){const C=HT(wl(b));je(C)||(R1(C)?a!==C&&!wI(C,a)?a.resolvedBaseTypes===Zn?a.resolvedBaseTypes=[C]:a.resolvedBaseTypes.push(C):b_(_,a):He(b,w.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function RI(a){if(!a.declarations)return!0;for(const _ of a.declarations)if(_.kind===264){if(_.flags&256)return!1;const b=F9(_);if(b){for(const C of b)if(Uh(C.expression)){const M=P_(C.expression,788968,!0);if(!M||!(M.flags&64)||Uy(M).thisType)return!1}}}return!0}function Uy(a){let _=Mt(a);const b=_;if(!_.declaredType){const C=a.flags&32?1:2,M=$be(a,a.valueDeclaration&&Lht(a.valueDeclaration));M&&(a=M,_=M.links);const z=b.declaredType=_.declaredType=Uv(C,a),Z=G6(a),me=rs(a);(Z||me||C===1||!RI(a))&&(z.objectFlags|=4,z.typeParameters=Hi(Z,me),z.outerTypeParameters=Z,z.localTypeParameters=me,z.instantiations=new Map,z.instantiations.set(La(z.typeParameters),z),z.target=z,z.resolvedTypeArguments=z.typeParameters,z.thisType=Lb(a),z.thisType.isThisType=!0,z.thisType.constraint=z)}return _.declaredType}function Lk(a){var _;const b=Mt(a);if(!b.declaredType){if(!j_(a,2))return _r;const C=ce.checkDefined((_=a.declarations)==null?void 0:_.find(fH),"Type alias symbol with no valid declaration found"),M=T2(C)?C.typeExpression:C.type;let z=M?wl(M):_r;if(dS()){const Z=rs(a);Z&&(b.typeParameters=Z,b.instantiations=new Map,b.instantiations.set(La(Z),z))}else z=_r,C.kind===347?He(C.typeExpression.type,w.Type_alias_0_circularly_references_itself,Cl(a)):He(Xv(C)&&C.name||C,w.Type_alias_0_circularly_references_itself,Cl(a));b.declaredType=z}return b.declaredType}function N4(a){return a.flags&1056&&a.symbol.flags&8?Rm(Uf(a.symbol)):a}function lw(a){const _=Mt(a);if(!_.declaredType){const b=[];if(a.declarations){for(const M of a.declarations)if(M.kind===266){for(const z of M.members)if(GS(z)){const Z=wi(z),me=ZB(z),Se=ZP(me!==void 0?ch(me,Bp(a),Z):j6(Z));Mt(Z).declaredType=Se,b.push(B1(Se))}}}const C=b.length?gl(b,1,a,void 0):j6(a);C.flags&1048576&&(C.flags|=1024,C.symbol=a),_.declaredType=C}return _.declaredType}function j6(a){const _=su(32,a),b=su(32,a);return _.regularType=_,_.freshType=b,b.regularType=_,b.freshType=b,_}function sO(a){const _=Mt(a);if(!_.declaredType){const b=lw(Uf(a));_.declaredType||(_.declaredType=b)}return _.declaredType}function Ok(a){const _=Mt(a);return _.declaredType||(_.declaredType=Lb(a))}function vB(a){const _=Mt(a);return _.declaredType||(_.declaredType=Rm(Xp(a)))}function Rm(a){return Yx(a)||_r}function Yx(a){if(a.flags&96)return Uy(a);if(a.flags&524288)return Lk(a);if(a.flags&262144)return Ok(a);if(a.flags&384)return lw(a);if(a.flags&8)return sO(a);if(a.flags&2097152)return vB(a)}function uw(a){switch(a.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 uw(a.elementType);case 183:return!a.typeArguments||a.typeArguments.every(uw)}return!1}function Av(a){const _=AN(a);return!_||uw(_)}function C0(a){const _=Kb(a);return _?uw(_):!NN(a)}function mV(a){const _=bA(a),b=oR(a);return(a.kind===176||!!_&&uw(_))&&a.parameters.every(C0)&&b.every(Av)}function pT(a){if(a.declarations&&a.declarations.length===1){const _=a.declarations[0];if(_)switch(_.kind){case 172:case 171:return C0(_);case 174:case 173:case 176:case 177:case 178:return mV(_)}}return!1}function EE(a,_,b){const C=Td();for(const M of a)C.set(M.escapedName,b&&pT(M)?M:kPe(M,_));return C}function cO(a,_){for(const b of _){if(Qx(b))continue;const C=a.get(b.escapedName);(!C||C.valueDeclaration&&ys(C.valueDeclaration)&&!BS(C)&&!v7(C.valueDeclaration))&&(a.set(b.escapedName,b),a.set(b.escapedName,b))}}function Qx(a){return!!a.valueDeclaration&&Mf(a.valueDeclaration)&&e_(a.valueDeclaration)}function V6(a){if(!a.declaredProperties){const _=a.symbol,b=BA(_);a.declaredProperties=$n(b),a.declaredCallSignatures=Zn,a.declaredConstructSignatures=Zn,a.declaredIndexInfos=Zn,a.declaredCallSignatures=vh(b.get("__call")),a.declaredConstructSignatures=vh(b.get("__new")),a.declaredIndexInfos=Due(_)}return a}function fw(a){if(!am(a)&&!Ed(a))return!1;const _=am(a)?a.expression:a.argumentExpression;return Uh(_)&&yv(am(a)?Pw(a):Iv(_))}function s0(a){return a.charCodeAt(0)===95&&a.charCodeAt(1)===95&&a.charCodeAt(2)===64}function U6(a){const _=o_(a);return!!_&&fw(_)}function GS(a){return!nI(a)||U6(a)}function w4(a){return wde(a)&&!fw(a)}function Kq(a,_,b){ce.assert(!!(I_(a)&4096),"Expected a late-bound symbol."),a.flags|=b,Mt(_.symbol).lateSymbol=a,a.declarations?_.symbol.isReplaceableByMethod||a.declarations.push(_):a.declarations=[_],b&111551&&(!a.valueDeclaration||a.valueDeclaration.kind!==_.kind)&&(a.valueDeclaration=_)}function Qg(a,_,b,C){ce.assert(!!C.symbol,"The member is expected to have a symbol.");const M=ge(C);if(!M.resolvedSymbol){M.resolvedSymbol=C.symbol;const z=ys(C)?C.left:C.name,Z=Ed(z)?Iv(z.argumentExpression):Pw(z);if(yv(Z)){const me=vv(Z),Se=C.symbol.flags;let Je=b.get(me);Je||b.set(me,Je=Ge(0,me,4096));const vt=_&&_.get(me);if(Je.flags&Ln(Se)||vt){const Pt=vt?Hi(vt.declarations,Je.declarations):Je.declarations,dn=!(Z.flags&8192)&&lf(me)||Ud(z);Ot(Pt,yn=>He(o_(yn)||yn,w.Property_0_was_also_declared_here,dn)),He(z||C,w.Duplicate_property_0,dn),Je=Ge(0,me,4096)}return Je.links.nameType=Z,Kq(Je,C,Se),Je.parent?ce.assert(Je.parent===a,"Existing symbol parent should match new one"):Je.parent=a,M.resolvedSymbol=Je}}return M.resolvedSymbol}function bB(a,_){var b,C,M;const z=Mt(a);if(!z[_]){const Z=_==="resolvedExports",me=Z?a.flags&1536?Ja(a).exports:a.exports:a.members;z[_]=me||Ve;const Se=Td();for(const vt of a.declarations||Zn){const Pt=Tde(vt);if(Pt)for(const dn of Pt)Z===Ny(dn)&&U6(dn)&&Qg(a,me,Se,dn)}const Je=(((b=a.valueDeclaration)==null?void 0:b.kind)===219||((C=a.valueDeclaration)==null?void 0:C.kind)===218)&&((M=Vl(a.valueDeclaration.parent))==null?void 0:M.assignmentDeclarationMembers)||a.assignmentDeclarationMembers;if(Je){const vt=oc(Je.values());for(const Pt of vt){const dn=Qy(Pt),yn=dn===3||ys(Pt)&&yNe(Pt,dn)||dn===9||dn===6;Z===!yn&&U6(Pt)&&Qg(a,me,Se,Pt)}}z[_]=ze(me,Se)||Ve}return z[_]}function BA(a){return a.flags&6256?bB(a,"resolvedMembers"):a.members||Ve}function $R(a){if(a.flags&106500&&a.escapedName==="__computed"){const _=Mt(a);if(!_.lateSymbol&>(a.declarations,U6)){const b=wa(a.parent);gt(a.declarations,Ny)?Gt(b):BA(b)}return _.lateSymbol||(_.lateSymbol=a)}return a}function M1(a,_,b){if(ji(a)&4){const C=a.target,M=Tm(a);return Nt(C.typeParameters)===Nt(M)?jA(C,Hi(M,[_||C.thisType])):a}else if(a.flags&2097152){const C=Ol(a.types,M=>M1(M,_,b));return C!==a.types?Dd(C):a}return b?O1(a):a}function gS(a,_,b,C){let M,z,Z,me,Se;hz(b,C,0,b.length)?(z=_.symbol?BA(_.symbol):Td(_.declaredProperties),Z=_.declaredCallSignatures,me=_.declaredConstructSignatures,Se=_.declaredIndexInfos):(M=IE(b,C),z=EE(_.declaredProperties,M,b.length===1),Z=Wue(_.declaredCallSignatures,M),me=Wue(_.declaredConstructSignatures,M),Se=LWe(_.declaredIndexInfos,M));const Je=Gp(_);if(Je.length){_.symbol&&z===BA(_.symbol)&&(z=Td(_.declaredProperties)),yo(a,z,Z,me,Se);const vt=Yf(C);for(const Pt of Je){const dn=vt?M1(Nf(Pt,M),vt):Pt;cO(z,Vp(dn)),Z=Hi(Z,Ti(dn,0)),me=Hi(me,Ti(dn,1));const yn=dn!==gn?T_(dn):[yD(xe,gn,!1)];Se=Hi(Se,gi(yn,hr=>!cu(Se,hr.keyType)))}}yo(a,z,Z,me,Se)}function _w(a){gS(a,V6(a),Zn,Zn)}function qR(a){const _=V6(a.target),b=Hi(_.typeParameters,[_.thisType]),C=Tm(a),M=C.length===b.length?C:Hi(C,[a]);gS(a,_,b,M)}function i2(a,_,b,C,M,z,Z,me){const Se=new W(ro,me);return Se.declaration=a,Se.typeParameters=_,Se.parameters=C,Se.thisParameter=b,Se.resolvedReturnType=M,Se.resolvedTypePredicate=z,Se.minArgumentCount=Z,Se.resolvedMinArgumentCount=void 0,Se.target=void 0,Se.mapper=void 0,Se.compositeSignatures=void 0,Se.compositeKind=void 0,Se}function hS(a){const _=i2(a.declaration,a.typeParameters,a.thisParameter,a.parameters,void 0,void 0,a.minArgumentCount,a.flags&167);return _.target=a.target,_.mapper=a.mapper,_.compositeSignatures=a.compositeSignatures,_.compositeKind=a.compositeKind,_}function TB(a,_){const b=hS(a);return b.compositeSignatures=_,b.compositeKind=1048576,b.target=void 0,b.mapper=void 0,b}function R4(a,_){if((a.flags&24)===_)return a;a.optionalCallSignatureCache||(a.optionalCallSignatureCache={});const b=_===8?"inner":"outer";return a.optionalCallSignatureCache[b]||(a.optionalCallSignatureCache[b]=Zx(a,_))}function Zx(a,_){ce.assert(_===8||_===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const b=hS(a);return b.flags|=_,b}function lO(a,_){if(oT(a)){const M=a.parameters.length-1,z=a.parameters[M].escapedName,Z=Vo(a.parameters[M]);if(_p(Z))return[b(Z,M,z)];if(!_&&Z.flags&1048576&&jr(Z.types,_p))return Vn(Z.types,me=>b(me,M,z))}return[a.parameters];function b(M,z,Z){const me=Tm(M),Se=C(M,Z),Je=Vn(me,(vt,Pt)=>{const dn=Se&&Se[Pt]?Se[Pt]:Ute(a,z+Pt,M),yn=M.target.elementFlags[Pt],hr=yn&12?32768:yn&2?16384:0,bi=Ge(1,dn,hr);return bi.links.type=yn&4?W1(vt):vt,bi});return Hi(a.parameters.slice(0,z),Je)}function C(M,z){const Z=new Map;return Vn(M.target.labeledElementDeclarations,(me,Se)=>{const Je=xze(me,Se,z),vt=Z.get(Je);return vt===void 0?(Z.set(Je,1),Je):(Z.set(Je,vt+1),`${Je}_${vt}`)})}}function H6(a){const _=Nl(a),b=Ti(_,1),C=RS(a.symbol),M=!!C&&il(C,256);if(b.length===0)return[i2(void 0,a.localTypeParameters,void 0,Zn,a,void 0,0,M?4:0)];const z=ac(a),Z=Rs(z),me=Iue(z),Se=Nt(me),Je=[];for(const vt of b){const Pt=EC(vt.typeParameters),dn=Nt(vt.typeParameters);if(Z||Se>=Pt&&Se<=dn){const yn=dn?Hf(vt,FI(me,vt.typeParameters,Pt,Z)):hS(vt);yn.typeParameters=a.localTypeParameters,yn.resolvedReturnType=a,yn.flags=M?yn.flags|4:yn.flags&-5,Je.push(yn)}}return Je}function gV(a,_,b,C,M){for(const z of a)if(CC(z,_,b,C,M,b?vgt:Vue))return z}function hV(a,_,b){if(_.typeParameters){if(b>0)return;for(let M=1;M1&&(b=b===void 0?C:-1);for(const M of a[C])if(!_||!gV(_,M,!1,!1,!0)){const z=hV(a,M,C);if(z){let Z=M;if(z.length>1){let me=M.thisParameter;const Se=Ot(z,Je=>Je.thisParameter);if(Se){const Je=Dd(Qo(z,vt=>vt.thisParameter&&Vo(vt.thisParameter)));me=xO(Se,Je)}Z=TB(M,z),Z.thisParameter=me}(_||(_=[])).push(Z)}}}if(!Nt(_)&&b!==-1){const C=a[b!==void 0?b:0];let M=C.slice();for(const z of a)if(z!==C){const Z=z[0];if(ce.assert(!!Z,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),M=Z.typeParameters&>(M,me=>!!me.typeParameters&&!SB(Z.typeParameters,me.typeParameters))?void 0:Vn(M,me=>dw(me,Z)),!M)break}_=M}return _||Zn}function SB(a,_){if(Nt(a)!==Nt(_))return!1;if(!a||!_)return!0;const b=IE(_,a);for(let C=0;C=M?a:_,Z=z===a?_:a,me=z===a?C:M,Se=Hk(a)||Hk(_),Je=Se&&!Hk(z),vt=new Array(me+(Je?1:0));for(let Pt=0;Pt=qI(z)&&Pt>=qI(Z),aa=Pt>=C?void 0:Ute(a,Pt),$s=Pt>=M?void 0:Ute(_,Pt),Ba=aa===$s?aa:aa?$s?void 0:aa:$s,lo=Ge(1|(Wo&&!bi?16777216:0),Ba||`arg${Pt}`);lo.links.type=bi?W1(hr):hr,vt[Pt]=lo}if(Je){const Pt=Ge(1,"args");Pt.links.type=W1($I(Z,me)),Z===_&&(Pt.links.type=Nf(Pt.links.type,b)),vt[me]=Pt}return vt}function dw(a,_){const b=a.typeParameters||_.typeParameters;let C;a.typeParameters&&_.typeParameters&&(C=IE(_.typeParameters,a.typeParameters));const M=a.declaration,z=L2(a,_,C),Z=uO(a.thisParameter,_.thisParameter,C),me=Math.max(a.minArgumentCount,_.minArgumentCount),Se=i2(M,b,Z,z,void 0,void 0,me,(a.flags|_.flags)&167);return Se.compositeKind=1048576,Se.compositeSignatures=Hi(a.compositeKind!==2097152&&a.compositeSignatures||[a],[_]),C&&(Se.mapper=a.compositeKind!==2097152&&a.mapper&&a.compositeSignatures?q4(a.mapper,C):C),Se}function EB(a){const _=T_(a[0]);if(_){const b=[];for(const C of _){const M=C.keyType;jr(a,z=>!!Cd(z,M))&&b.push(yD(M,gl(Vn(a,z=>pb(z,M))),gt(a,z=>Cd(z,M).isReadonly)))}return b}return Zn}function yV(a){const _=JF(Vn(a.types,M=>M===S0?[vn]:Ti(M,0))),b=JF(Vn(a.types,M=>Ti(M,1))),C=EB(a.types);yo(a,Ve,_,b,C)}function jp(a,_){return a?_?Dd([a,_]):a:_}function sc(a){const _=dp(a,C=>Ti(C,1).length>0),b=Vn(a,gf);if(_>0&&_===dp(b,C=>C)){const C=b.indexOf(!0);b[C]=!1}return b}function hx(a,_,b,C){const M=[];for(let z=0;z<_.length;z++)z===C?M.push(a):b[z]&&M.push(j(Ti(_[z],1)[0]));return Dd(M)}function xE(a){let _,b,C;const M=a.types,z=sc(M),Z=dp(z,me=>me);for(let me=0;me0&&(Je=Vn(Je,vt=>{const Pt=hS(vt);return Pt.resolvedReturnType=hx(j(vt),M,z,me),Pt})),b=fO(b,Je)}_=fO(_,Ti(Se,0)),C=Em(T_(Se),(Je,vt)=>vV(Je,vt,!1),C)}yo(a,Ve,_||Zn,b||Zn,C||Zn)}function fO(a,_){for(const b of _)(!a||jr(a,C=>!CC(C,b,!1,!1,!1,Vue)))&&(a=ur(a,b));return a}function vV(a,_,b){if(a)for(let C=0;C{var Se;!(me.flags&418)&&!(me.flags&512&&((Se=me.declarations)!=null&&Se.length)&&jr(me.declarations,Ov))&&Z.set(me.escapedName,me)}),b=Z}let M;if(yo(a,b,Zn,Zn,Zn),_.flags&32){const Z=Uy(_),me=Nl(Z);me.flags&11272192?(b=Td(Li(b)),cO(b,Vp(me))):me===gn&&(M=yD(xe,gn,!1))}const z=W0e(b);if(z?C=B0e(z):(M&&(C=ur(C,M)),_.flags&384&&(Rm(_).flags&32||gt(a.properties,Z=>!!(Vo(Z).flags&296)))&&(C=ur(C,pa))),yo(a,b,Zn,Zn,C||Zn),_.flags&8208&&(a.callSignatures=vh(_)),_.flags&32){const Z=Uy(_);let me=_.members?vh(_.members.get("__constructor")):Zn;_.flags&16&&(me=Oi(me.slice(),Qo(a.callSignatures,Se=>JI(Se.declaration)?i2(Se.declaration,Se.typeParameters,Se.thisParameter,Se.parameters,Z,void 0,Se.minArgumentCount,Se.flags&167):void 0))),me.length||(me=H6(Z)),a.constructSignatures=me}}function $F(a,_,b){return Nf(a,IE([_.indexType,_.objectType],[bD(0),$v([b])]))}function M4(a){const _=Cd(a.source,xe),b=jS(a.mappedType),C=!(b&1),M=b&4?0:16777216,z=_?[yD(xe,lM(_.type,a.mappedType,a.constraintType),C&&_.isReadonly)]:Zn,Z=Td();for(const me of Vp(a.source)){const Se=8192|(C&&KI(me)?8:0),Je=Ge(4|me.flags&M,me.escapedName,Se);if(Je.declarations=me.declarations,Je.links.nameType=Mt(me).nameType,Je.links.propertyType=Vo(me),a.constraintType.type.flags&8388608&&a.constraintType.type.objectType.flags&262144&&a.constraintType.type.indexType.flags&262144){const vt=a.constraintType.type.objectType,Pt=$F(a.mappedType,a.constraintType.type,vt);Je.links.mappedType=Pt,Je.links.constraintType=YP(vt)}else Je.links.mappedType=a.mappedType,Je.links.constraintType=a.constraintType;Z.set(me.escapedName,Je)}yo(a,Z,Zn,Zn,z)}function AE(a){if(a.flags&4194304){const _=O1(a.type);return u0(_)?zk(_):YP(_)}if(a.flags&16777216){if(a.root.isDistributive){const _=a.checkType,b=AE(_);if(b!==_)return GWe(a,NB(a.root.checkType,b,a.mapper))}return a}if(a.flags&1048576)return bh(a,AE,!0);if(a.flags&2097152){const _=a.types;return _.length===2&&_[0].flags&76&&_[1]===uS?a:Dd(Ol(a.types,AE))}return a}function eA(a){return I_(a)&4096}function KR(a,_,b,C){for(const M of Vp(a))C(pte(M,_));if(a.flags&1)C(xe);else for(const M of T_(a))(!b||M.keyType.flags&134217732)&&C(M.keyType)}function hD(a){const _=Td();let b;yo(a,Ve,Zn,Zn,Zn);const C=L1(a),M=mT(a),z=a.target||a,Z=Vg(z),me=!Z||sy(z),Se=SC(z),Je=O1(c0(a)),vt=jS(a),Pt=kn?128:8576;L4(a)?KR(Je,Pt,kn,dn):Z4(AE(M),dn),yo(a,_,Zn,Zn,b||Zn);function dn(hr){const bi=Z?Nf(Z,DV(a.mapper,C,hr)):hr;Z4(bi,Wo=>yn(hr,Wo))}function yn(hr,bi){if(yv(bi)){const Wo=vv(bi),aa=_.get(Wo);if(aa)aa.links.nameType=gl([aa.links.nameType,bi]),aa.links.keyType=gl([aa.links.keyType,hr]);else{const $s=yv(hr)?Fn(Je,vv(hr)):void 0,Ba=!!(vt&4||!(vt&8)&&$s&&$s.flags&16777216),lo=!!(vt&1||!(vt&2)&&$s&&KI($s)),Xa=Ye&&!Ba&&$s&&$s.flags&16777216,Go=$s?eA($s):0,Pa=Ge(4|(Ba?16777216:0),Wo,Go|262144|(lo?8:0)|(Xa?524288:0));Pa.links.mappedType=a,Pa.links.nameType=bi,Pa.links.keyType=hr,$s&&(Pa.links.syntheticOrigin=$s,Pa.declarations=me?$s.declarations:void 0),_.set(Wo,Pa)}}else if(fte(bi)||bi.flags&33){const Wo=bi.flags&5?xe:bi.flags&40?an:bi,aa=Nf(Se,DV(a.mapper,C,hr)),$s=yD(Wo,aa,!!(vt&1));b=vV(b,$s,!0)}}}function TC(a){if(!a.links.type){const _=a.links.mappedType;if(!j_(a,0))return _.containsError=!0,_r;const b=SC(_.target||_),C=DV(_.mapper,L1(_),a.links.keyType),M=Nf(b,C);let z=Ye&&a.flags&16777216&&!cy(M,49152)?eL(M,!0):a.links.checkFlags&524288?EO(M):M;dS()||(He(ue,w.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Cl(a),oa(_)),z=_r),a.links.type=z}return a.links.type}function L1(a){return a.typeParameter||(a.typeParameter=Ok(wi(a.declaration.typeParameter)))}function mT(a){return a.constraintType||(a.constraintType=Wi(L1(a))||_r)}function Vg(a){return a.declaration.nameType?a.nameType||(a.nameType=Nf(wl(a.declaration.nameType),a.mapper)):void 0}function SC(a){return a.templateType||(a.templateType=a.declaration.type?Nf(fm(wl(a.declaration.type),!0,!!(jS(a)&4)),a.mapper):_r)}function tA(a){return AN(a.declaration.typeParameter)}function L4(a){const _=tA(a);return _.kind===198&&_.operator===143}function c0(a){if(!a.modifiersType)if(L4(a))a.modifiersType=Nf(wl(tA(a).type),a.mapper);else{const _=xPe(a.declaration),b=mT(_),C=b&&b.flags&262144?Wi(b):b;a.modifiersType=C&&C.flags&4194304?Nf(C.type,a.mapper):co}return a.modifiersType}function jS(a){const _=a.declaration;return(_.readonlyToken?_.readonlyToken.kind===41?2:1:0)|(_.questionToken?_.questionToken.kind===41?8:4:0)}function dO(a){const _=jS(a);return _&8?-1:_&4?1:0}function pO(a){const _=dO(a),b=c0(a);return _||(by(b)?dO(b):0)}function Xq(a){return!!(ji(a)&32&&jS(a)&4)}function by(a){if(ji(a)&32){const _=mT(a);if(HS(_))return!0;const b=Vg(a);if(b&&HS(Nf(b,Q6(L1(a),_))))return!0}return!1}function sy(a){const _=Vg(a);return!!_&&Mp(_,L1(a))}function K0(a){return a.members||(a.flags&524288?a.objectFlags&4?qR(a):a.objectFlags&3?_w(a):a.objectFlags&1024?M4(a):a.objectFlags&16?_O(a):a.objectFlags&32?hD(a):ce.fail("Unhandled object type "+ce.formatObjectFlags(a.objectFlags)):a.flags&1048576?yV(a):a.flags&2097152?xE(a):ce.fail("Unhandled type "+ce.formatTypeFlags(a.flags))),a}function O2(a){return a.flags&524288?K0(a).properties:Zn}function o2(a,_){if(a.flags&524288){const C=K0(a).members.get(_);if(C&&i1(C))return C}}function pw(a){if(!a.resolvedProperties){const _=Td();for(const b of a.types){for(const C of Vp(b))if(!_.has(C.escapedName)){const M=OI(a,C.escapedName);M&&_.set(C.escapedName,M)}if(a.flags&1048576&&T_(b).length===0)break}a.resolvedProperties=$n(_)}return a.resolvedProperties}function Vp(a){return a=F4(a),a.flags&3145728?pw(a):O2(a)}function O4(a,_){a=F4(a),a.flags&3670016&&K0(a).members.forEach((b,C)=>{ri(b,C)&&_(b,C)})}function ne(a,_){return _.properties.some(C=>{const M=C.name&&(dI(C.name)?qv(oW(C.name)):q6(C.name)),z=M&&yv(M)?vv(M):void 0,Z=z===void 0?void 0:wm(a,z);return!!Z&&Ew(Z)&&!Mp(YB(C),Z)})}function yt(a){const _=gl(a);if(!(_.flags&1048576))return Xfe(_);const b=Td();for(const C of a)for(const{escapedName:M}of Xfe(C))if(!b.has(M)){const z=Wk(_,M);z&&b.set(M,z)}return oc(b.values())}function Er(a){return a.flags&262144?Wi(a):a.flags&8388608?Vu(a):a.flags&16777216?ru(a):Co(a)}function Wi(a){return MI(a)?TV(a):void 0}function nc(a,_=0){var b;return _<5&&!!(a&&(a.flags&262144&>((b=a.symbol)==null?void 0:b.declarations,C=>il(C,2048))||a.flags&1048576&>(a.types,C=>nc(C,_))||a.flags&8388608&&nc(a.objectType,_+1)||a.flags&16777216&&nc(ru(a),_+1)||a.flags&33554432&&nc(a.baseType,_)||u0(a)&&Ho(Fb(a),(C,M)=>!!(a.target.elementFlags[M]&8)&&nc(C,_))>=0))}function Vu(a){return MI(a)?Pf(a):void 0}function ql(a){const _=gb(a,!1);return _!==a?_:Er(a)}function Pf(a){if(KF(a)||by(a.objectType))return K6(a.objectType,a.indexType);const _=ql(a.indexType);if(_&&_!==a.indexType){const C=Wb(a.objectType,_,a.accessFlags);if(C)return C}const b=ql(a.objectType);if(b&&b!==a.objectType)return Wb(b,a.indexType,a.accessFlags)}function Z_(a){if(!a.resolvedDefaultConstraint){const _=CPe(a),b=X6(a);a.resolvedDefaultConstraint=Q_(_)?b:Q_(b)?_:gl([_,b])}return a.resolvedDefaultConstraint}function CE(a){if(a.resolvedConstraintOfDistributive!==void 0)return a.resolvedConstraintOfDistributive||void 0;if(a.root.isDistributive&&a.restrictiveInstantiation!==a){const _=gb(a.checkType,!1),b=_===a.checkType?Er(_):_;if(b&&b!==a.checkType){const C=GWe(a,NB(a.root.checkType,b,a.mapper));if(!(C.flags&131072))return a.resolvedConstraintOfDistributive=C,C}}a.resolvedConstraintOfDistributive=!1}function a2(a){return CE(a)||Z_(a)}function ru(a){return MI(a)?a2(a):void 0}function Fk(a,_){let b,C=!1;for(const M of a)if(M.flags&465829888){let z=Er(M);for(;z&&z.flags&21233664;)z=Er(z);z&&(b=ur(b,z),_&&(b=ur(b,M)))}else(M.flags&469892092||By(M))&&(C=!0);if(b&&(_||C)){if(C)for(const M of a)(M.flags&469892092||By(M))&&(b=ur(b,M));return obe(Dd(b),!1)}}function Co(a){if(a.flags&464781312||u0(a)){const _=mO(a);return _!==lm&&_!==nm?_:void 0}return a.flags&4194304?x_:void 0}function DE(a){return Co(a)||a}function MI(a){return mO(a)!==nm}function mO(a){if(a.resolvedBaseConstraint)return a.resolvedBaseConstraint;const _=[];return a.resolvedBaseConstraint=b(a);function b(z){if(!z.immediateBaseConstraint){if(!j_(z,4))return nm;let Z;const me=c5(z);if((_.length<10||_.length<50&&!ni(_,me))&&(_.push(me),Z=M(gb(z,!1)),_.pop()),!dS()){if(z.flags&262144){const Se=AB(z);if(Se){const Je=He(Se,w.Type_parameter_0_has_a_circular_constraint,oa(z));ue&&!N7(Se,ue)&&!N7(ue,Se)&&ml(Je,kc(ue,w.Circularity_originates_in_type_at_this_location))}}Z=nm}z.immediateBaseConstraint=Z||lm}return z.immediateBaseConstraint}function C(z){const Z=b(z);return Z!==lm&&Z!==nm?Z:void 0}function M(z){if(z.flags&262144){const Z=TV(z);return z.isThisType||!Z?Z:C(Z)}if(z.flags&3145728){const Z=z.types,me=[];let Se=!1;for(const Je of Z){const vt=C(Je);vt?(vt!==Je&&(Se=!0),me.push(vt)):Se=!0}return Se?z.flags&1048576&&me.length===Z.length?gl(me):z.flags&2097152&&me.length?Dd(me):void 0:z}if(z.flags&4194304)return x_;if(z.flags&134217728){const Z=z.types,me=Qo(Z,C);return me.length===Z.length?kB(z.texts,me):xe}if(z.flags&268435456){const Z=C(z.type);return Z&&Z!==z.type?r5(z.symbol,Z):xe}if(z.flags&8388608){if(KF(z))return C(K6(z.objectType,z.indexType));const Z=C(z.objectType),me=C(z.indexType),Se=Z&&me&&Wb(Z,me,z.accessFlags);return Se&&C(Se)}if(z.flags&16777216){const Z=a2(z);return Z&&C(Z)}if(z.flags&33554432)return C(nK(z));if(u0(z)){const Z=Vn(Fb(z),(me,Se)=>{const Je=me.flags&262144&&z.target.elementFlags[Se]&8&&C(me)||me;return Je!==me&&iA(Je,vt=>GI(vt)&&!u0(vt))?Je:me});return $v(Z,z.target.elementFlags,z.target.readonly,z.target.labeledElementDeclarations)}return z}}function gO(a,_){return a.resolvedApparentType||(a.resolvedApparentType=M1(a,_,!0))}function qF(a){if(a.default)a.default===po&&(a.default=nm);else if(a.target){const _=qF(a.target);a.default=_?Nf(_,a.mapper):lm}else{a.default=po;const _=a.symbol&&Ot(a.symbol.declarations,C=>Hh(C)&&C.default),b=_?wl(_):lm;a.default===po&&(a.default=b)}return a.default}function LI(a){const _=qF(a);return _!==lm&&_!==nm?_:void 0}function $P(a){return qF(a)!==nm}function XR(a){return!!(a.symbol&&Ot(a.symbol.declarations,_=>Hh(_)&&_.default))}function mw(a){return a.resolvedApparentType||(a.resolvedApparentType=Yq(a))}function Yq(a){const _=PPe(a);if(_&&!a.declaration.nameType){const b=Wi(_);if(b&&iA(b,GI))return Nf(a,NB(_,b,a.mapper))}return a}function KF(a){let _;return!!(a.flags&8388608&&ji(_=a.objectType)&32&&!by(_)&&HS(a.indexType)&&!(jS(_)&8)&&!_.declaration.nameType)}function O1(a){const _=a.flags&465829888?Co(a)||co:a,b=ji(_);return b&32?mw(_):b&4&&_!==a?M1(_,a):_.flags&2097152?gO(_,a):_.flags&402653316?bu:_.flags&296?K_:_.flags&2112?SWe():_.flags&528?ig:_.flags&12288?dPe():_.flags&67108864?Yu:_.flags&4194304?x_:_.flags&2&&!Ye?Yu:_}function F4(a){return HT(O1(HT(a)))}function Wk(a,_,b){var C,M,z;let Z,me,Se;const Je=a.flags&1048576;let vt,Pt=4,dn=Je?0:8,yn=!1;for(const Pa of a.types){const Ga=O1(Pa);if(!(je(Ga)||Ga.flags&131072)){const hs=Fn(Ga,_,b),Ld=hs?Vy(hs):0;if(hs){if(hs.flags&106500&&(vt??(vt=Je?0:16777216),Je?vt|=hs.flags&16777216:vt&=hs.flags),!Z)Z=hs;else if(hs!==Z)if((OK(hs)||hs)===(OK(Z)||Z)&&rBe(Z,hs,(id,$y)=>id===$y?-1:0)===-1)yn=!!Z.parent&&!!Nt(rs(Z.parent));else{me||(me=new Map,me.set(Bp(Z),Z));const id=Bp(hs);me.has(id)||me.set(id,hs)}Je&&KI(hs)?dn|=8:!Je&&!KI(hs)&&(dn&=-9),dn|=(Ld&24?0:256)|(Ld&16?512:0)|(Ld&8?1024:0)|(Ld&32?2048:0),bK(hs)||(Pt=2)}else if(Je){const nl=!s0(_)&&yx(Ga,_);nl?(dn|=32|(nl.isReadonly?8:0),Se=ur(Se,_p(Ga)?xw(Ga)||Ui:nl.type)):zu(Ga)&&!(ji(Ga)&2097152)?(dn|=32,Se=ur(Se,Ui)):dn|=16}}}if(!Z||Je&&(me||dn&48)&&dn&1536&&!(me&&Qq(me.values())))return;if(!me&&!(dn&16)&&!Se)if(yn){const Pa=(C=to(Z,uk))==null?void 0:C.links,Ga=xO(Z,Pa==null?void 0:Pa.type);return Ga.parent=(z=(M=Z.valueDeclaration)==null?void 0:M.symbol)==null?void 0:z.parent,Ga.links.containingType=a,Ga.links.mapper=Pa==null?void 0:Pa.mapper,Ga}else return Z;const hr=me?oc(me.values()):[Z];let bi,Wo,aa;const $s=[];let Ba,lo,Xa=!1;for(const Pa of hr){lo?Pa.valueDeclaration&&Pa.valueDeclaration!==lo&&(Xa=!0):lo=Pa.valueDeclaration,bi=Oi(bi,Pa.declarations);const Ga=Vo(Pa);Wo||(Wo=Ga,aa=Mt(Pa).nameType);const hs=z6(Pa);Ba||hs!==Ga?Ba=ur(Ba||$s.slice(),hs):Ga!==Wo&&(dn|=64),(Ew(Ga)||U4(Ga))&&(dn|=128),Ga.flags&131072&&Ga!==iy&&(dn|=131072),$s.push(Ga)}Oi($s,Se);const Go=Ge(4|(vt??0),_,Pt|dn);return Go.links.containingType=a,!Xa&&lo&&(Go.valueDeclaration=lo,lo.symbol.parent&&(Go.parent=lo.symbol.parent)),Go.declarations=bi,Go.links.nameType=aa,$s.length>2?(Go.links.checkFlags|=65536,Go.links.deferralParent=a,Go.links.deferralConstituents=$s,Go.links.deferralWriteConstituents=Ba):(Go.links.type=Je?gl($s):Dd($s),Ba&&(Go.links.writeType=Je?gl(Ba):Dd(Ba))),Go}function gw(a,_,b){var C,M;let z=(C=a.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(_)||!b?(M=a.propertyCache)==null?void 0:M.get(_):void 0;return z||(z=Wk(a,_,b),z&&(b?a.propertyCacheWithoutObjectFunctionPropertyAugment||(a.propertyCacheWithoutObjectFunctionPropertyAugment=Td()):a.propertyCache||(a.propertyCache=Td())).set(_,z)),z}function Qq(a){let _;for(const b of a){if(!b.declarations)return;if(!_){_=new Set(b.declarations);continue}if(_.forEach(C=>{ni(b.declarations,C)||_.delete(C)}),_.size===0)return}return _}function OI(a,_,b){const C=gw(a,_,b);return C&&!(I_(C)&16)?C:void 0}function HT(a){return a.flags&1048576&&a.objectFlags&16777216?a.resolvedReducedType||(a.resolvedReducedType=F0e(a)):a.flags&2097152?(a.objectFlags&16777216||(a.objectFlags|=16777216|(gt(pw(a),Bk)?33554432:0)),a.objectFlags&33554432?vs:a):a}function F0e(a){const _=Ol(a.types,HT);if(_===a.types)return a;const b=gl(_);return b.flags&1048576&&(b.resolvedReducedType=b),b}function Bk(a){return XF(a)||ute(a)}function XF(a){return!(a.flags&16777216)&&(I_(a)&131264)===192&&!!(Vo(a).flags&131072)}function ute(a){return!a.valueDeclaration&&!!(I_(a)&1024)}function Xe(a){return!!(a.flags&1048576&&a.objectFlags&16777216&>(a.types,Xe)||a.flags&2097152&&$t(a))}function $t(a){const _=a.uniqueLiteralFilledInstantiation||(a.uniqueLiteralFilledInstantiation=Nf(a,Oh));return HT(_)!==_}function bn(a,_){if(_.flags&2097152&&ji(_)&33554432){const b=lr(pw(_),XF);if(b)return Es(a,w.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,oa(_,void 0,536870912),Cl(b));const C=lr(pw(_),ute);if(C)return Es(a,w.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,oa(_,void 0,536870912),Cl(C))}return a}function Fn(a,_,b,C){if(a=F4(a),a.flags&524288){const M=K0(a),z=M.members.get(_);if(z&&i1(z,C))return z;if(b)return;const Z=M===Mg?S0:M.callSignatures.length?k1:M.constructSignatures.length?tn:void 0;if(Z){const me=o2(Z,_);if(me)return me}return o2(Ev,_)}if(a.flags&3145728)return OI(a,_,b)}function Ri(a,_){if(a.flags&3670016){const b=K0(a);return _===0?b.callSignatures:b.constructSignatures}return Zn}function Ti(a,_){const b=Ri(F4(a),_);if(_===0&&!Nt(b)&&a.flags&1048576){if(a.arrayFallbackSignatures)return a.arrayFallbackSignatures;let C;if(iA(a,M=>{var z;return!!((z=M.symbol)!=null&&z.parent)&&Xc(M.symbol.parent)&&(C?C===M.symbol.escapedName:(C=M.symbol.escapedName,!0))})){const M=bh(a,Z=>$4((Fu(Z.symbol.parent)?ya:fi).typeParameters[0],Z.mapper)),z=W1(M,dM(a,Z=>Fu(Z.symbol.parent)));return a.arrayFallbackSignatures=Ti(wm(z,C),_)}a.arrayFallbackSignatures=b}return b}function Xc(a){return!a||!fi.symbol||!ya.symbol?!1:!!f_(a,fi.symbol)||!!f_(a,ya.symbol)}function Fu(a){return!a||!ya.symbol?!1:!!f_(a,ya.symbol)}function cu(a,_){return lr(a,b=>b.keyType===_)}function Ml(a,_){let b,C,M;for(const z of a)z.keyType===xe?b=z:Zu(_,z.keyType)&&(C?(M||(M=[C])).push(z):C=z);return M?yD(co,Dd(Vn(M,z=>z.type)),Em(M,(z,Z)=>z&&Z.isReadonly,!0)):C||(b&&Zu(_,xe)?b:void 0)}function Zu(a,_){return Mp(a,_)||_===xe&&Mp(a,an)||_===an&&(a===U0||!!(a.flags&128)&&FT(a.value))}function hg(a){return a.flags&3670016?K0(a).indexInfos:Zn}function T_(a){return hg(F4(a))}function Cd(a,_){return cu(T_(a),_)}function pb(a,_){var b;return(b=Cd(a,_))==null?void 0:b.type}function zA(a,_){return T_(a).filter(b=>Zu(_,b.keyType))}function qP(a,_){return Ml(T_(a),_)}function yx(a,_){return qP(a,s0(_)?Qa:qv(lf(_)))}function mb(a){var _;let b;for(const C of oR(a))b=ST(b,Ok(C.symbol));return b!=null&&b.length?b:b0(a)?(_=B4(a))==null?void 0:_.typeParameters:void 0}function KP(a){const _=[];return a.forEach((b,C)=>{fn(C)||_.push(b)}),_}function bV(a,_){if(tb(a))return;const b=Jn(Ut,'"'+a+'"',512);return b&&_?wa(b):b}function W4(a){if(sG(a)||rW(a)||iW(a))return!0;if(a.initializer){const b=Cv(a.parent),C=a.parent.parameters.indexOf(a);return ce.assert(C>=0),C>=qI(b,3)}const _=zL(a.parent);return _?!a.type&&!a.dotDotDotToken&&a.parent.parameters.indexOf(a)>=_.arguments.length:!1}function Zq(a){return Os(a)&&!_k(a)&&a.questionToken}function YF(a,_,b,C){return{kind:a,parameterName:_,parameterIndex:b,type:C}}function EC(a){let _=0;if(a)for(let b=0;b=b&&z<=M){const Z=a?a.slice():[];for(let Se=z;Seme.arguments.length&&!Wo||iW(hr)||(M=b.length)}if((a.kind===177||a.kind===178)&&GS(a)&&(!Z||!z)){const yn=a.kind===177?178:177,hr=Vm(wi(a),yn);hr&&(z=II(hr))}if(Rs(a)){const yn=iR(a);yn&&yn.typeExpression&&(z=xO(Ge(1,"this"),wl(yn.typeExpression)))}const vt=Ak(a)?dH(a):a,Pt=vt&&pg(vt)?Uy(wa(vt.parent.symbol)):void 0,dn=Pt?Pt.localTypeParameters:mb(a);(iie(a)||Rs(a)&&YR(a,b))&&(C|=1),(mW(a)&&il(a,256)||pg(a)&&il(a.parent,256))&&(C|=4),_.resolvedSignature=i2(a,dn,z,b,void 0,void 0,M,C)}return _.resolvedSignature}function YR(a,_){if(Ak(a)||!Up(a))return!1;const b=Yf(a.parameters),C=b?zz(b):EN(a).filter(AA),M=Yr(C,Z=>Z.typeExpression&&Foe(Z.typeExpression.type)?Z.typeExpression.type:void 0),z=Ge(3,"args",32768);return M?z.links.type=W1(wl(M.type)):(z.links.checkFlags|=65536,z.links.deferralParent=vs,z.links.deferralConstituents=[ir],z.links.deferralWriteConstituents=[ir]),M&&_.pop(),_.push(z),!0}function B4(a){if(!(Rs(a)&&J_(a)))return;const _=w8(a);return(_==null?void 0:_.typeExpression)&&NO(wl(_.typeExpression))}function GA(a,_){const b=B4(a);if(!b)return;const C=a.parameters.indexOf(_);return _.dotDotDotToken?wO(b,C):$I(b,C)}function eK(a){const _=B4(a);return _&&j(_)}function Up(a){const _=ge(a);return _.containsArgumentsReference===void 0&&(_.flags&512?_.containsArgumentsReference=!0:_.containsArgumentsReference=b(a.body)),_.containsArgumentsReference;function b(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===Cr.escapedName&&Yfe(C)===Cr;case 172:case 174:case 177:case 178:return C.name.kind===167&&b(C.name);case 211:case 212:return b(C.expression);case 303:return b(C.initializer);default:return!_G(C)&&!rC(C)&&!!B_(C,b)}}}function vh(a){if(!a||!a.declarations)return Zn;const _=[];for(let b=0;b0&&C.body){const M=a.declarations[b-1];if(C.parent===M.parent&&C.kind===M.kind&&C.pos===M.end)continue}if(Rs(C)&&C.jsDoc){let M=!1;for(const z of C.jsDoc)if(z.tags){for(const Z of z.tags)if(OG(Z)){const me=Z.typeExpression;me.type===void 0&&!pg(C)&&sM(me,gn),_.push(Cv(me)),M=!0}}if(M)continue}_.push(!EP(C)&&!q2(C)&&B4(C)||Cv(C))}}return _}function J6(a){const _=Zm(a,a);if(_){const b=$0(_);if(b)return Vo(b)}return gn}function xC(a){if(a.thisParameter)return Vo(a.thisParameter)}function F2(a){if(!a.resolvedTypePredicate){if(a.target){const _=F2(a.target);a.resolvedTypePredicate=_?pgt(_,a.mapper):hy}else if(a.compositeSignatures)a.resolvedTypePredicate=ogt(a.compositeSignatures,a.compositeKind)||hy;else{const _=a.declaration&&bA(a.declaration);let b;if(!_){const C=B4(a.declaration);C&&a!==C&&(b=F2(C))}a.resolvedTypePredicate=_&&Y7(_)?XP(_,a):b||hy}ce.assert(!!a.resolvedTypePredicate)}return a.resolvedTypePredicate===hy?void 0:a.resolvedTypePredicate}function XP(a,_){const b=a.parameterName,C=a.type&&wl(a.type);return b.kind===197?YF(a.assertsModifier?2:0,void 0,void 0,C):YF(a.assertsModifier?3:1,b.escapedText,Ho(_.parameters,M=>M.escapedName===b.escapedText),C)}function xB(a,_,b){return _!==2097152?gl(a,b):Dd(a)}function j(a){if(!a.resolvedReturnType){if(!j_(a,3))return _r;let _=a.target?Nf(j(a.target),a.mapper):a.compositeSignatures?Nf(xB(Vn(a.compositeSignatures,j),a.compositeKind,2),a.mapper):se(a.declaration)||(Um(a.declaration.body)?gn:ewe(a.declaration));if(a.flags&8?_=jet(_):a.flags&16&&(_=eL(_)),!dS()){if(a.declaration){const b=bA(a.declaration);if(b)He(b,w.Return_type_annotation_circularly_references_itself);else if(Wt){const C=a.declaration,M=o_(C);M?He(M,w._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,Ud(M)):He(C,w.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)}}_=gn}a.resolvedReturnType=_}return a.resolvedReturnType}function se(a){if(a.kind===176)return Uy(wa(a.parent.symbol));const _=bA(a);if(Ak(a)){const b=pH(a);if(b&&pg(b.parent)&&!_)return Uy(wa(b.parent.parent.symbol))}if(J8(a))return wl(a.parameters[0].type);if(_)return wl(_);if(a.kind===177&&GS(a)){const b=Rs(a)&&hn(a);if(b)return b;const C=Vm(wi(a),178),M=r2(C);if(M)return M}return eK(a)}function De(a){return a.compositeSignatures&>(a.compositeSignatures,De)||!a.resolvedReturnType&&GP(a,3)>=0}function Tt(a){return wn(a)||gn}function wn(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]),b=_p(_)?xw(_):_;return b&&pb(b,an)}}function Vi(a,_,b,C){const M=Us(a,FI(_,a.typeParameters,EC(a.typeParameters),b));if(C){const z=_ze(j(M));if(z){const Z=hS(z);Z.typeParameters=C;const me=hS(M);return me.resolvedReturnType=WI(Z),me}}return M}function Us(a,_){const b=a.instantiations||(a.instantiations=new Map),C=La(_);let M=b.get(C);return M||b.set(C,M=Hf(a,_)),M}function Hf(a,_){return cK(a,ng(a,_),!0)}function ng(a,_){return IE(a.typeParameters,_)}function VS(a){return a.typeParameters?a.erasedSignatureCache||(a.erasedSignatureCache=z4(a)):a}function z4(a){return cK(a,Gue(a.typeParameters),!0)}function G4(a){return a.typeParameters?a.canonicalSignatureCache||(a.canonicalSignatureCache=hO(a)):a}function hO(a){return Vi(a,Vn(a.typeParameters,_=>_.target&&!Wi(_.target)?_.target:_),Rs(a.declaration))}function lPe(a){const _=a.typeParameters;if(_){if(a.baseSignatureCache)return a.baseSignatureCache;const b=Gue(_),C=IE(_,Vn(_,z=>Wi(z)||co));let M=Vn(_,z=>Nf(z,C)||co);for(let z=0;z<_.length-1;z++)M=Sw(M,C);return M=Sw(M,b),a.baseSignatureCache=cK(a,IE(_,M),!0)}return a}function WI(a){var _;if(!a.isolatedSignatureType){const b=(_=a.declaration)==null?void 0:_.kind,C=b===void 0||b===176||b===180||b===185,M=Uv(16);M.members=Ve,M.properties=Zn,M.callSignatures=C?Zn:[a],M.constructSignatures=C?[a]:Zn,M.indexInfos=Zn,a.isolatedSignatureType=M}return a.isolatedSignatureType}function tK(a){return a.members?W0e(a.members):void 0}function W0e(a){return a.get("__index")}function yD(a,_,b,C){return{keyType:a,type:_,isReadonly:b,declaration:C}}function Due(a){const _=tK(a);return _?B0e(_):Zn}function B0e(a){if(a.declarations){const _=[];for(const b of a.declarations)if(b.parameters.length===1){const C=b.parameters[0];C.type&&Z4(wl(C.type),M=>{fte(M)&&!cu(_,M)&&_.push(yD(M,b.type?wl(b.type):gn,Ab(b,64),b))})}return _}return Zn}function fte(a){return!!(a.flags&4108)||U4(a)||!!(a.flags&2097152)&&!mte(a)&>(a.types,fte)}function AB(a){return Qo(gi(a.symbol&&a.symbol.declarations,Hh),AN)[0]}function z0e(a,_){var b;let C;if((b=a.symbol)!=null&&b.declarations){for(const M of a.symbol.declarations)if(M.parent.kind===195){const[z=M.parent,Z]=ON(M.parent.parent);if(Z.kind===183&&!_){const me=Z,Se=mwe(me);if(Se){const Je=me.typeArguments.indexOf(z);if(Je()=>_yt(me,Se,hr))),dn=Nf(vt,Pt);dn!==a&&(C=ur(C,dn))}}}}else if(Z.kind===169&&Z.dotDotDotToken||Z.kind===191||Z.kind===202&&Z.dotDotDotToken)C=ur(C,W1(co));else if(Z.kind===204)C=ur(C,xe);else if(Z.kind===168&&Z.parent.kind===200)C=ur(C,x_);else if(Z.kind===200&&Z.type&&_g(Z.type)===M.parent&&Z.parent.kind===194&&Z.parent.extendsType===Z&&Z.parent.checkType.kind===200&&Z.parent.checkType.type){const me=Z.parent.checkType,Se=wl(me.type);C=ur(C,Nf(Se,Q6(Ok(wi(me.typeParameter)),me.typeParameter.constraint?wl(me.typeParameter.constraint):x_)))}}}return C&&Dd(C)}function TV(a){if(!a.constraint)if(a.target){const _=Wi(a.target);a.constraint=_?Nf(_,a.mapper):lm}else{const _=AB(a);if(!_)a.constraint=z0e(a)||lm;else{let b=wl(_);b.flags&1&&!je(b)&&(b=_.parent.parent.kind===200?x_:co),a.constraint=b}}return a.constraint===lm?void 0:a.constraint}function QF(a){const _=Vm(a.symbol,168),b=jx(_.parent)?q8(_.parent):_.parent;return b&&Vl(b)}function La(a){let _="";if(a){const b=a.length;let C=0;for(;C1&&(_+=":"+z),C+=z}}return _}function AC(a,_){return a?`@${Bp(a)}`+(_?`:${La(_)}`:""):""}function hw(a,_){let b=0;for(const C of a)(_===void 0||!(C.flags&_))&&(b|=ji(C));return b&458752}function QR(a,_){return gt(_)&&a===rd?co:jA(a,_)}function jA(a,_){const b=La(_);let C=a.instantiations.get(b);return C||(C=Uv(4,a.symbol),a.instantiations.set(b,C),C.objectFlags|=_?hw(_):0,C.target=a,C.resolvedTypeArguments=_),C}function yO(a){const _=su(a.flags,a.symbol);return _.objectFlags=a.objectFlags,_.target=a.target,_.resolvedTypeArguments=a.resolvedTypeArguments,_}function SV(a,_,b,C,M){if(!C){C=bO(_);const Z=bx(C);M=b?Sw(Z,b):Z}const z=Uv(4,a.symbol);return z.target=a,z.node=_,z.mapper=b,z.aliasSymbol=C,z.aliasTypeArguments=M,z}function Tm(a){var _,b;if(!a.resolvedTypeArguments){if(!j_(a,6))return((_=a.target.localTypeParameters)==null?void 0:_.map(()=>_r))||Zn;const C=a.node,M=C?C.kind===183?Hi(a.target.outerTypeParameters,c1e(C,a.target.localTypeParameters)):C.kind===188?[wl(C.elementType)]:Vn(C.elements,wl):Zn;dS()?a.resolvedTypeArguments=a.mapper?Sw(M,a.mapper):M:(a.resolvedTypeArguments=((b=a.target.localTypeParameters)==null?void 0:b.map(()=>_r))||Zn,He(a.node||ue,a.target.symbol?w.Type_arguments_for_0_circularly_reference_themselves:w.Tuple_type_arguments_circularly_reference_themselves,a.target.symbol&&Cl(a.target.symbol)))}return a.resolvedTypeArguments}function Fo(a){return Nt(a.target.typeParameters)}function cl(a,_){const b=Rm(wa(_)),C=b.localTypeParameters;if(C){const M=Nt(a.typeArguments),z=EC(C),Z=Rs(a);if(!(!Wt&&Z)&&(MC.length)){const Je=Z&&WT(a)&&!iF(a.parent),vt=z===C.length?Je?w.Expected_0_type_arguments_provide_these_with_an_extends_tag:w.Generic_type_0_requires_1_type_argument_s:Je?w.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:w.Generic_type_0_requires_between_1_and_2_type_arguments,Pt=oa(b,void 0,2);if(He(a,vt,Pt,z,C.length),!Z)return _r}if(a.kind===183&&mPe(a,Nt(a.typeArguments)!==C.length))return SV(b,a,void 0);const Se=Hi(b.outerTypeParameters,FI(Iue(a),C,z,Z));return jA(b,Se)}return F1(a,_)?b:_r}function Mc(a,_,b,C){const M=Rm(a);if(M===Qr&&oj.has(a.escapedName)&&_&&_.length===1)return r5(a,_[0]);const z=Mt(a),Z=z.typeParameters,me=La(_)+AC(b,C);let Se=z.instantiations.get(me);return Se||z.instantiations.set(me,Se=NPe(M,IE(Z,FI(_,Z,EC(Z),Rs(a.valueDeclaration))),b,C)),Se}function Du(a,_){if(I_(_)&1048576){const M=Iue(a),z=AC(_,M);let Z=Kn.get(z);return Z||(Z=eg(1,"error"),Z.aliasSymbol=_,Z.aliasTypeArguments=M,Kn.set(z,Z)),Z}const b=Rm(_),C=Mt(_).typeParameters;if(C){const M=Nt(a.typeArguments),z=EC(C);if(MC.length)return He(a,z===C.length?w.Generic_type_0_requires_1_type_argument_s:w.Generic_type_0_requires_between_1_and_2_type_arguments,Cl(_),z,C.length),_r;const Z=bO(a);let me=Z&&(Ru(_)||!Ru(Z))?Z:void 0,Se;if(me)Se=bx(me);else if(F8(a)){const Je=VA(a,2097152,!0);if(Je&&Je!==Ir){const vt=Xp(Je);vt&&vt.flags&524288&&(me=vt,Se=Iue(a)||(C?[]:void 0))}}return Mc(_,Iue(a),me,Se)}return F1(a,_)?b:_r}function Ru(a){var _;const b=(_=a.declarations)==null?void 0:_.find(fH);return!!(b&&GE(b))}function _m(a){switch(a.kind){case 183:return a.typeName;case 233:const _=a.expression;if(Uh(_))return _}}function kg(a){return a.parent?`${kg(a.parent)}.${a.escapedName}`:a.escapedName}function cv(a){const b=(a.kind===166?a.right:a.kind===211?a.name:a).escapedText;if(b){const C=a.kind===166?cv(a.left):a.kind===211?cv(a.expression):void 0,M=C?`${kg(C)}.${b}`:b;let z=xt.get(M);return z||(xt.set(M,z=Ge(524288,b,1048576)),z.parent=C,z.links.declaredType=Cn),z}return Ir}function VA(a,_,b){const C=_m(a);if(!C)return Ir;const M=P_(C,_,b);return M&&M!==Ir?M:b?Ir:cv(C)}function vD(a,_){if(_===Ir)return _r;if(_=VT(_)||_,_.flags&96)return cl(a,_);if(_.flags&524288)return Du(a,_);const b=Yx(_);if(b)return F1(a,_)?B1(b):_r;if(_.flags&111551&&uPe(a)){const C=l0(a,_);return C||(VA(a,788968),Vo(_))}return _r}function l0(a,_){const b=ge(a);if(!b.resolvedJSDocType){const C=Vo(_);let M=C;if(_.valueDeclaration){const z=a.kind===205&&a.qualifier;C.symbol&&C.symbol!==_&&z&&(M=vD(a,C.symbol))}b.resolvedJSDocType=M}return b.resolvedJSDocType}function yw(a,_){if(_.flags&3||_===a||a.flags&1)return a;const b=`${Gh(a)}>${Gh(_)}`,C=To.get(b);if(C)return C;const M=Vv(33554432);return M.baseType=a,M.constraint=_,To.set(b,M),M}function nK(a){return Dd([a.constraint,a.baseType])}function EV(a){return a.kind===189&&a.elements.length===1}function ZF(a,_,b){return EV(_)&&EV(b)?ZF(a,_.elements[0],b.elements[0]):np(wl(_))===np(a)?wl(b):void 0}function Vmt(a,_){let b,C=!0;for(;_&&!uf(_)&&_.kind!==327;){const M=_.parent;if(M.kind===169&&(C=!C),(C||a.flags&8650752)&&M.kind===194&&_===M.trueType){const z=ZF(a,M.checkType,M.extendsType);z&&(b=ur(b,z))}else if(a.flags&262144&&M.kind===200&&_===M.type){const z=wl(M);if(L1(z)===np(a)){const Z=PPe(z);if(Z){const me=Wi(Z);me&&iA(me,GI)&&(b=ur(b,gl([an,U0])))}}}_=M}return b?yw(a,Dd(b)):a}function uPe(a){return!!(a.flags&16777216)&&(a.kind===183||a.kind===205)}function F1(a,_){return a.typeArguments?(He(a,w.Type_0_is_not_generic,_?Cl(_):a.typeName?Ud(a.typeName):Tae),!1):!0}function dWe(a){if(An(a.typeName)){const _=a.typeArguments;switch(a.typeName.escapedText){case"String":return F1(a),xe;case"Number":return F1(a),an;case"Boolean":return F1(a),Ca;case"Void":return F1(a),Ks;case"Undefined":return F1(a),Ui;case"Null":return F1(a),$e;case"Function":case"function":return F1(a),S0;case"array":return(!_||!_.length)&&!Wt?ir:void 0;case"promise":return(!_||!_.length)&&!Wt?aL(gn):void 0;case"Object":if(_&&_.length===2){if(aH(a)){const b=wl(_[0]),C=wl(_[1]),M=b===xe||b===an?[yD(b,C,!1)]:Zn;return jo(void 0,Ve,Zn,Zn,M)}return gn}return F1(a),Wt?void 0:gn}}}function fPe(a){const _=wl(a.type);return Ye?oM(_,65536):_}function _Pe(a){const _=ge(a);if(!_.resolvedType){if(CN(a)&&_7(a.parent))return _.resolvedSymbol=Ir,_.resolvedType=Iv(a.parent.expression);let b,C;const M=788968;uPe(a)&&(C=dWe(a),C||(b=VA(a,M,!0),b===Ir?b=VA(a,M|111551):VA(a,M),C=vD(a,b))),C||(b=VA(a,M),C=vD(a,b)),_.resolvedSymbol=b,_.resolvedType=C}return _.resolvedType}function Iue(a){return Vn(a.typeArguments,wl)}function pWe(a){const _=ge(a);if(!_.resolvedType){const b=ont(a);_.resolvedType=B1(Bb(b))}return _.resolvedType}function e5(a,_){function b(M){const z=M.declarations;if(z)for(const Z of z)switch(Z.kind){case 263:case 264:case 266:return Z}}if(!a)return _?rd:Yu;const C=Rm(a);return C.flags&524288?Nt(C.typeParameters)!==_?(He(b(a),w.Global_type_0_must_have_1_type_parameter_s,mp(a),_),_?rd:Yu):C:(He(b(a),w.Global_type_0_must_be_a_class_or_interface_type,mp(a)),_?rd:Yu)}function mWe(a,_){return t5(a,111551,_?w.Cannot_find_global_value_0:void 0)}function sh(a,_){return t5(a,788968,_?w.Cannot_find_global_type_0:void 0)}function G0e(a,_,b){const C=t5(a,788968,b?w.Cannot_find_global_type_0:void 0);if(C&&(Rm(C),Nt(Mt(C).typeParameters)!==_)){const M=C.declarations&&lr(C.declarations,mg);He(M,w.Global_type_0_must_have_1_type_parameter_s,mp(C),_);return}return C}function t5(a,_,b){return Ro(void 0,a,_,b,a,!1,!1,!1)}function Jv(a,_,b){const C=sh(a,b);return C||b?e5(C,_):void 0}function MZe(){return du||(du=Jv("TypedPropertyDescriptor",1,!0)||rd)}function Umt(){return jn||(jn=Jv("TemplateStringsArray",0,!0)||Yu)}function LZe(){return Mi||(Mi=Jv("ImportMeta",0,!0)||Yu)}function gWe(){if(!js){const a=Ge(0,"ImportMetaExpression"),_=LZe(),b=Ge(4,"meta",8);b.parent=a,b.links.type=_;const C=Td([b]);a.members=C,js=jo(a,C,Zn,Zn,Zn)}return js}function hWe(a){return X_||(X_=Jv("ImportCallOptions",0,a))||Yu}function yWe(a){return Za||(Za=mWe("Symbol",a))}function vWe(a){return Qc||(Qc=sh("SymbolConstructor",a))}function dPe(){return Al||(Al=Jv("Symbol",0,!1))||Yu}function CB(a){return N_||(N_=Jv("Promise",1,a))||rd}function kue(a){return zp||(zp=Jv("PromiseLike",1,a))||rd}function DB(a){return gh||(gh=mWe("Promise",a))}function Hmt(a){return Wh||(Wh=Jv("PromiseConstructorLike",0,a))||Yu}function pPe(a){return MA||(MA=Jv("AsyncIterable",1,a))||rd}function OZe(a){return aw||(aw=Jv("AsyncIterator",3,a))||rd}function bWe(a){return DI||(DI=Jv("AsyncIterableIterator",1,a))||rd}function j4(a){return Me||(Me=Jv("AsyncGenerator",3,a))||rd}function Pue(a){return Gv||(Gv=Jv("Iterable",1,a))||rd}function vx(a){return jv||(jv=Jv("Iterator",3,a))||rd}function FZe(a){return yy||(yy=Jv("IterableIterator",1,a))||rd}function Jmt(a){return ub||(ub=Jv("Generator",3,a))||rd}function $mt(a){return E0||(E0=Jv("IteratorYieldResult",1,a))||rd}function vw(a){return P2||(P2=Jv("IteratorReturnResult",1,a))||rd}function _te(a){return $l||($l=Jv("Disposable",0,a))||Yu}function WZe(a){return y_||(y_=Jv("AsyncDisposable",0,a))||Yu}function BZe(a,_=0){const b=t5(a,788968,void 0);return b&&e5(b,_)}function qmt(){return l_||(l_=G0e("Extract",2,!0)||Ir),l_===Ir?void 0:l_}function zZe(){return Ph||(Ph=G0e("Omit",2,!0)||Ir),Ph===Ir?void 0:Ph}function TWe(a){return Ap||(Ap=G0e("Awaited",1,a)||(a?Ir:void 0)),Ap===Ir?void 0:Ap}function SWe(){return Mb||(Mb=Jv("BigInt",0,!1))||Yu}function Kmt(a){return e??(e=Jv("ClassDecoratorContext",1,a))??rd}function EWe(a){return n??(n=Jv("ClassMethodDecoratorContext",2,a))??rd}function GZe(a){return i??(i=Jv("ClassGetterDecoratorContext",2,a))??rd}function Xmt(a){return c??(c=Jv("ClassSetterDecoratorContext",2,a))??rd}function Ymt(a){return u??(u=Jv("ClassAccessorDecoratorContext",2,a))??rd}function Qmt(a){return d??(d=Jv("ClassAccessorDecoratorTarget",2,a))??rd}function jZe(a){return h??(h=Jv("ClassAccessorDecoratorResult",2,a))??rd}function Zmt(a){return S??(S=Jv("ClassFieldDecoratorContext",2,a))??rd}function j0e(){return _x||(_x=mWe("NaN",!1))}function VZe(){return _S||(_S=G0e("Record",2,!0)||Ir),_S===Ir?void 0:_S}function Nue(a,_){return a!==rd?jA(a,_):Yu}function UZe(a){return Nue(MZe(),[a])}function xWe(a){return Nue(Pue(!0),[a])}function W1(a,_){return Nue(_?ya:fi,[a])}function AWe(a){switch(a.kind){case 190:return 2;case 191:return HZe(a);case 202:return a.questionToken?2:a.dotDotDotToken?HZe(a):1;default:return 1}}function HZe(a){return Fue(a.type)?4:8}function egt(a){const _=BI(a.parent);if(Fue(a))return _?ya:fi;const C=Vn(a.elements,AWe);return bw(C,_,Vn(a.elements,V0e))}function V0e(a){return rS(a)||Pu(a)?a:void 0}function mPe(a,_){return!!bO(a)||gPe(a)&&(a.kind===188?V4(a.elementType):a.kind===189?gt(a.elements,V4):_||gt(a.typeArguments,V4))}function gPe(a){const _=a.parent;switch(_.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return gPe(_);case 265:return!0}return!1}function V4(a){switch(a.kind){case 183:return uPe(a)||!!(VA(a,788968).flags&524288);case 186:return!0;case 198:return a.operator!==158&&V4(a.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return V4(a.type);case 191:return a.type.kind!==188||V4(a.type.elementType);case 192:case 193:return gt(a.types,V4);case 199:return V4(a.objectType)||V4(a.indexType);case 194:return V4(a.checkType)||V4(a.extendsType)||V4(a.trueType)||V4(a.falseType)}return!1}function tgt(a){const _=ge(a);if(!_.resolvedType){const b=egt(a);if(b===rd)_.resolvedType=Yu;else if(!(a.kind===189&>(a.elements,C=>!!(AWe(C)&8)))&&mPe(a))_.resolvedType=a.kind===189&&a.elements.length===0?b:SV(b,a,void 0);else{const C=a.kind===188?[wl(a.elementType)]:Vn(a.elements,wl);_.resolvedType=hPe(b,C)}}return _.resolvedType}function BI(a){return KN(a)&&a.operator===148}function $v(a,_,b=!1,C=[]){const M=bw(_||Vn(a,z=>1),b,C);return M===rd?Yu:a.length?hPe(M,a):M}function bw(a,_,b){if(a.length===1&&a[0]&4)return _?ya:fi;const C=Qo(b,Z=>Z?Im(Z):void 0),M=Vn(a,Z=>Z&1?"#":Z&2?"?":Z&4?".":"*").join()+(_?"R":"")+(C.length?","+C.join(","):"");let z=Ku.get(M);return z||Ku.set(M,z=ZR(a,_,b)),z}function ZR(a,_,b){const C=a.length,M=dp(a,Pt=>!!(Pt&9));let z;const Z=[];let me=0;if(C){z=new Array(C);for(let Pt=0;Pt!!(a.elementFlags[bi]&8&&hr.flags&1179648));if(yn>=0)return Rue(Vn(_,(hr,bi)=>a.elementFlags[bi]&8?hr:co))?bh(_[yn],hr=>rK(a,yz(_,yn,hr))):_r}const z=[],Z=[],me=[];let Se=-1,Je=-1,vt=-1;for(let yn=0;yn<_.length;yn++){const hr=_[yn],bi=a.elementFlags[yn];if(bi&8)if(hr.flags&58982400||by(hr))dn(hr,8,(b=a.labeledElementDeclarations)==null?void 0:b[yn]);else if(_p(hr)){const Wo=Fb(hr);if(Wo.length+z.length>=1e4)return He(ue,rC(ue)?w.Type_produces_a_tuple_type_that_is_too_large_to_represent:w.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_r;Ot(Wo,(aa,$s)=>{var Ba;return dn(aa,hr.target.elementFlags[$s],(Ba=hr.target.labeledElementDeclarations)==null?void 0:Ba[$s])})}else dn(iM(hr)&&pb(hr,an)||_r,4,(C=a.labeledElementDeclarations)==null?void 0:C[yn]);else dn(hr,bi,(M=a.labeledElementDeclarations)==null?void 0:M[yn])}for(let yn=0;yn=0&&JeZ[Je+hr]&8?s2(yn,an):yn)),z.splice(Je+1,vt-Je),Z.splice(Je+1,vt-Je),me.splice(Je+1,vt-Je));const Pt=bw(Z,a.readonly,me);return Pt===rd?Yu:Z.length?jA(Pt,z):Pt;function dn(yn,hr,bi){hr&1&&(Se=Z.length),hr&4&&Je<0&&(Je=Z.length),hr&6&&(vt=Z.length),z.push(hr&2?fm(yn,!0):yn),Z.push(hr),me.push(bi)}}function eM(a,_,b=0){const C=a.target,M=Fo(a)-b;return _>C.fixedLength?uBe(a)||$v(Zn):$v(Tm(a).slice(_,M),C.elementFlags.slice(_,M),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(_,M))}function zk(a){return gl(ur(vz(a.target.fixedLength,_=>qv(""+_)),YP(a.target.readonly?ya:fi)))}function JZe(a,_){const b=Ho(a.elementFlags,C=>!(C&_));return b>=0?b:a.elementFlags.length}function iK(a,_){return a.elementFlags.length-Ms(a.elementFlags,b=>!(b&_))-1}function CWe(a){return a.fixedLength+iK(a,3)}function Fb(a){const _=Tm(a),b=Fo(a);return _.length===b?_:_.slice(0,b)}function $Ze(a){return fm(wl(a.type),!0)}function Gh(a){return a.id}function W2(a,_){return ZS(a,_,Gh,pf)>=0}function $6(a,_){const b=ZS(a,_,Gh,pf);return b<0?(a.splice(~b,0,_),!0):!1}function U0e(a,_,b){const C=b.flags;if(!(C&131072))if(_|=C&473694207,C&465829888&&(_|=33554432),b===mt&&(_|=8388608),!Ye&&C&98304)ji(b)&65536||(_|=4194304);else{const M=a.length,z=M&&b.id>a[M-1].id?~M:ZS(a,b,Gh,pf);z<0&&a.splice(~z,0,b)}return _}function zm(a,_,b){let C;for(const M of b)M!==C&&(_=M.flags&1048576?zm(a,_|(IB(M)?1048576:0),M.types):U0e(a,_,M),C=M);return _}function ngt(a,_){var b;if(a.length<2)return a;const C=La(a),M=Aa.get(C);if(M)return M;const z=_&>(a,Je=>!!(Je.flags&524288)&&!by(Je)&&Z6(K0(Je))),Z=a.length;let me=Z,Se=0;for(;me>0;){me--;const Je=a[me];if(z||Je.flags&469499904){if(Je.flags&262144&&DE(Je).flags&1048576){Vk(Je,gl(Vn(a,dn=>dn===Je?vs:dn)),Wl)&&zC(a,me);continue}const vt=Je.flags&61603840?lr(Vp(Je),dn=>rA(Vo(dn))):void 0,Pt=vt&&B1(Vo(vt));for(const dn of a)if(Je!==dn){if(Se===1e5&&Se/(Z-me)*Z>1e6){(b=tu)==null||b.instant(tu.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:a.map(hr=>hr.id)}),He(ue,w.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Se++,vt&&dn.flags&61603840){const yn=wm(dn,vt.escapedName);if(yn&&rA(yn)&&B1(yn)!==Pt)continue}if(Vk(Je,dn,Wl)&&(!(ji(UT(Je))&1)||!(ji(UT(dn))&1)||s5(Je,dn))){zC(a,me);break}}}}return Aa.set(C,a),a}function rgt(a,_,b){let C=a.length;for(;C>0;){C--;const M=a[C],z=M.flags;(z&402653312&&_&4||z&256&&_&8||z&2048&&_&64||z&8192&&_&4096||b&&z&32768&&_&16384||jk(M)&&W2(a,M.regularType))&&zC(a,C)}}function igt(a){const _=gi(a,b=>!!(b.flags&134217728)&&U4(b));if(_.length){let b=a.length;for(;b>0;){b--;const C=a[b];C.flags&128&>(_,M=>hbe(C,M))&&zC(a,b)}}}function IB(a){return!!(a.flags&1048576&&(a.aliasSymbol||a.origin))}function gT(a,_){for(const b of _)if(b.flags&1048576){const C=b.origin;b.aliasSymbol||C&&!(C.flags&1048576)?Dy(a,b):C&&C.flags&1048576&&gT(a,C.types)}}function n5(a,_){const b=gC(a);return b.types=_,b}function gl(a,_=1,b,C,M){if(a.length===0)return vs;if(a.length===1)return a[0];if(a.length===2&&!M&&(a[0].flags&1048576||a[1].flags&1048576)){const z=_===0?"N":_===2?"S":"L",Z=a[0].id=2&&z[0]===Ui&&z[1]===We&&zC(z,1),(Z&402664352||Z&16384&&Z&32768)&&rgt(z,Z,!!(_&2)),Z&128&&Z&134217728&&igt(z),_===2&&(z=ngt(z,!!(Z&524288)),!z))return _r;if(z.length===0)return Z&65536?Z&4194304?$e:Zt:Z&32768?Z&4194304?Ui:xu:vs}if(!M&&Z&1048576){const Se=[];gT(Se,a);const Je=[];for(const Pt of z)gt(Se,dn=>W2(dn.types,Pt))||Je.push(Pt);if(!b&&Se.length===1&&Je.length===0)return Se[0];if(Em(Se,(Pt,dn)=>Pt+dn.types.length,0)+Je.length===z.length){for(const Pt of Se)$6(Je,Pt);M=n5(1048576,Je)}}const me=(Z&36323331?0:32768)|(Z&2097152?16777216:0);return vPe(z,me,b,C,M)}function ogt(a,_){let b;const C=[];for(const z of a){const Z=F2(z);if(Z){if(Z.kind!==0&&Z.kind!==1||b&&!H0e(b,Z))return;b=Z,C.push(Z.type)}else{const me=_!==2097152?j(z):void 0;if(me!==rr&&me!==mi)return}}if(!b)return;const M=xB(C,_);return YF(b.kind,b.parameterName,b.parameterIndex,M)}function H0e(a,_){return a.kind===_.kind&&a.parameterIndex===_.parameterIndex}function vPe(a,_,b,C,M){if(a.length===0)return vs;if(a.length===1)return a[0];const Z=(M?M.flags&1048576?`|${La(M.types)}`:M.flags&2097152?`&${La(M.types)}`:`#${M.type.id}|${La(a)}`:La(a))+AC(b,C);let me=al.get(Z);return me||(me=Vv(1048576),me.objectFlags=_|hw(a,98304),me.types=a,me.origin=M,me.aliasSymbol=b,me.aliasTypeArguments=C,a.length===2&&a[0].flags&512&&a[1].flags&512&&(me.flags|=16,me.intrinsicName="boolean"),al.set(Z,me)),me}function qZe(a){const _=ge(a);if(!_.resolvedType){const b=bO(a);_.resolvedType=gl(Vn(a.types,wl),1,b,bx(b))}return _.resolvedType}function KZe(a,_,b){const C=b.flags;return C&2097152?XZe(a,_,b.types):(By(b)?_&16777216||(_|=16777216,a.set(b.id.toString(),b)):(C&3?b===mt&&(_|=8388608):(Ye||!(C&98304))&&(b===We&&(_|=262144,b=Ui),a.has(b.id.toString())||(b.flags&109472&&_&109472&&(_|=67108864),a.set(b.id.toString(),b))),_|=C&473694207),_)}function XZe(a,_,b){for(const C of b)_=KZe(a,_,B1(C));return _}function US(a,_){let b=a.length;for(;b>0;){b--;const C=a[b];(C.flags&4&&_&402653312||C.flags&8&&_&256||C.flags&64&&_&2048||C.flags&4096&&_&8192||C.flags&16384&&_&32768||By(C)&&_&470302716)&&zC(a,b)}}function tM(a,_){for(const b of a)if(!W2(b.types,_)){const C=_.flags&128?xe:_.flags&288?an:_.flags&2048?Un:_.flags&8192?Qa:void 0;if(!C||!W2(b.types,C))return!1}return!0}function wue(a){let _=a.length;const b=gi(a,C=>!!(C.flags&128));for(;_>0;){_--;const C=a[_];if(C.flags&134217728){for(const M of b)if(K4(M,C)){zC(a,_);break}else if(U4(C))return!0}}return!1}function bPe(a,_){for(let b=0;b!(C.flags&_))}function agt(a){let _;const b=Ho(a,Z=>!!(ji(Z)&32768));if(b<0)return!1;let C=b+1;for(;C!!(Je.flags&1048576&&Je.types[0].flags&32768))){const Je=gt(Z,Ste)?We:Ui;bPe(Z,32768),Se=gl([Dd(Z),Je],1,_,b)}else if(jr(Z,Je=>!!(Je.flags&1048576&&(Je.types[0].flags&65536||Je.types[1].flags&65536))))bPe(Z,65536),Se=gl([Dd(Z),$e],1,_,b);else{if(!Rue(Z))return _r;const Je=sgt(Z),vt=gt(Je,Pt=>!!(Pt.flags&2097152))&&J0e(Je)>J0e(Z)?n5(2097152,Z):void 0;Se=gl(Je,1,_,b,vt)}else Se=DWe(Z,_,b);mc.set(me,Se)}return Se}function YZe(a){return Em(a,(_,b)=>b.flags&1048576?_*b.types.length:b.flags&131072?0:_,1)}function Rue(a){var _;const b=YZe(a);return b>=1e5?((_=tu)==null||_.instant(tu.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:a.map(C=>C.id),size:b}),He(ue,w.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function sgt(a){const _=YZe(a),b=[];for(let C=0;C<_;C++){const M=a.slice();let z=C;for(let me=a.length-1;me>=0;me--)if(a[me].flags&1048576){const Se=a[me].types,Je=Se.length;M[me]=Se[z%Je],z=Math.floor(z/Je)}const Z=Dd(M);Z.flags&131072||b.push(Z)}return b}function QZe(a){return!(a.flags&3145728)||a.aliasSymbol?1:a.flags&1048576&&a.origin?QZe(a.origin):J0e(a.types)}function J0e(a){return Em(a,(_,b)=>_+QZe(b),0)}function yS(a,_){return!!(a.flags&76)&&_===uS}function dte(a){const _=ge(a);if(!_.resolvedType){const b=bO(a),C=Vn(a.types,wl),M=C.length===2&&(yS(C[0],C[1])||yS(C[1],C[0]));_.resolvedType=Dd(C,b,bx(b),M)}return _.resolvedType}function IWe(a,_){const b=Vv(4194304);return b.type=a,b.indexFlags=_,b}function ZZe(a){const _=gC(4194304);return _.type=a,_}function eet(a,_){return _&1?a.resolvedStringIndexType||(a.resolvedStringIndexType=IWe(a,1)):a.resolvedIndexType||(a.resolvedIndexType=IWe(a,0))}function kWe(a,_){const b=L1(a),C=mT(a),M=Vg(a.target||a);if(!M&&!(_&2))return C;const z=[];if(L4(a)){if(HS(C))return eet(a,_);{const Se=O1(c0(a));KR(Se,8576,!!(_&1),me)}}else Z4(AE(C),me);HS(C)&&Z4(C,me);const Z=_&2?D0(gl(z),Se=>!(Se.flags&5)):gl(z);if(Z.flags&1048576&&C.flags&1048576&&La(Z.types)===La(C.types))return C;return Z;function me(Se){const Je=M?Nf(M,DV(a.mapper,b,Se)):Se;z.push(Je===xe?Ha:Je)}}function zI(a){const _=L1(a);return b(Vg(a)||_);function b(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===_:C.flags&137363456?jr(C.types,b):C.flags&8388608?b(C.objectType)&&b(C.indexType):C.flags&33554432?b(C.baseType)&&b(C.constraint):C.flags&268435456?b(C.type):!1}}function q6(a){if(Gu(a))return vs;if(nS(a))return B1(n_(a));if(am(a))return B1(Pw(a));const _=WN(a);return _!==void 0?qv(lf(_)):Nr(a)?B1(n_(a)):vs}function pte(a,_,b){if(b||!(Vy(a)&24)){let C=Mt($R(a)).nameType;if(!C){const M=o_(a.valueDeclaration);C=a.escapedName==="default"?qv("default"):M&&q6(M)||(vH(a)?void 0:qv(mp(a)))}if(C&&C.flags&_)return C}return vs}function PWe(a,_){return!!(a.flags&_||a.flags&2097152&>(a.types,b=>PWe(b,_)))}function tet(a,_,b){const C=b&&(ji(a)&7||a.aliasSymbol)?ZZe(a):void 0,M=Vn(Vp(a),Z=>pte(Z,_)),z=Vn(T_(a),Z=>Z!==pa&&PWe(Z.keyType,_)?Z.keyType===xe&&_&8?Ha:Z.keyType:vs);return gl(Hi(M,z),1,void 0,void 0,C)}function TPe(a,_=0){return!!(a.flags&58982400||u0(a)||by(a)&&!zI(a)||a.flags&1048576&&!(_&4)&&Xe(a)||a.flags&2097152&&cy(a,465829888)&>(a.types,By))}function YP(a,_=cr){return a=HT(a),TPe(a,_)?eet(a,_):a.flags&1048576?Dd(Vn(a.types,b=>YP(b,_))):a.flags&2097152?gl(Vn(a.types,b=>YP(b,_))):ji(a)&32?kWe(a,_):a===mt?mt:a.flags&2?vs:a.flags&131073?x_:tet(a,(_&2?128:402653316)|(_&1?0:12584),_===cr)}function SPe(a){if(kn)return a;const _=qmt();return _?Mc(_,[a,xe]):xe}function Yd(a){const _=SPe(YP(a));return _.flags&131072?xe:_}function $0e(a){const _=ge(a);if(!_.resolvedType)switch(a.operator){case 143:_.resolvedType=YP(wl(a.type));break;case 158:_.resolvedType=a.type.kind===155?PB(mH(a.parent)):_r;break;case 148:_.resolvedType=wl(a.type);break;default:ce.assertNever(a.operator)}return _.resolvedType}function ed(a){const _=ge(a);return _.resolvedType||(_.resolvedType=kB([a.head.text,...Vn(a.templateSpans,b=>b.literal.text)],Vn(a.templateSpans,b=>wl(b.type)))),_.resolvedType}function kB(a,_){const b=Ho(_,Je=>!!(Je.flags&1179648));if(b>=0)return Rue(_)?bh(_[b],Je=>kB(a,yz(_,b,Je))):_r;if(ni(_,mt))return mt;const C=[],M=[];let z=a[0];if(!Se(a,_))return xe;if(C.length===0)return qv(z);if(M.push(z),jr(M,Je=>Je==="")){if(jr(C,Je=>!!(Je.flags&4)))return xe;if(C.length===1&&U4(C[0]))return C[0]}const Z=`${La(C)}|${Vn(M,Je=>Je.length).join(",")}|${M.join("")}`;let me=Xu.get(Z);return me||Xu.set(Z,me=NWe(M,C)),me;function Se(Je,vt){for(let Pt=0;Ptr5(a,b)):_.flags&128?qv(xV(a,_.value)):_.flags&134217728?kB(...wWe(a,_.texts,_.types)):_.flags&268435456&&a===_.symbol?_:_.flags&268435461||HS(_)?JT(a,_):aK(_)?JT(a,kB(["",""],[_])):_}function xV(a,_){switch(oj.get(a.escapedName)){case 0:return _.toUpperCase();case 1:return _.toLowerCase();case 2:return _.charAt(0).toUpperCase()+_.slice(1);case 3:return _.charAt(0).toLowerCase()+_.slice(1)}return _}function wWe(a,_,b){switch(oj.get(a.escapedName)){case 0:return[_.map(C=>C.toUpperCase()),b.map(C=>r5(a,C))];case 1:return[_.map(C=>C.toLowerCase()),b.map(C=>r5(a,C))];case 2:return[_[0]===""?_:[_[0].charAt(0).toUpperCase()+_[0].slice(1),..._.slice(1)],_[0]===""?[r5(a,b[0]),...b.slice(1)]:b];case 3:return[_[0]===""?_:[_[0].charAt(0).toLowerCase()+_[0].slice(1),..._.slice(1)],_[0]===""?[r5(a,b[0]),...b.slice(1)]:b]}return[_,b]}function JT(a,_){const b=`${Bp(a)},${Gh(_)}`;let C=Lo.get(b);return C||Lo.set(b,C=Tw(a,_)),C}function Tw(a,_){const b=su(268435456,a);return b.type=_,b}function vO(a,_,b,C,M){const z=Vv(8388608);return z.objectType=a,z.indexType=_,z.accessFlags=b,z.aliasSymbol=C,z.aliasTypeArguments=M,z}function oK(a){if(Wt)return!1;if(ji(a)&4096)return!0;if(a.flags&1048576)return jr(a.types,oK);if(a.flags&2097152)return gt(a.types,oK);if(a.flags&465829888){const _=mO(a);return _!==a&&oK(_)}return!1}function AV(a,_){return yv(a)?vv(a):_&&fy(_)?WN(_):void 0}function i5(a,_){if(_.flags&8208){const b=Kr(a.parent,C=>!Kf(C))||a.parent;return ib(b)?IN(b)&&An(a)&&Xet(b,a):jr(_.declarations,C=>!S_(C)||ln(C))}return!0}function RWe(a,_,b,C,M,z){const Z=M&&M.kind===212?M:void 0,me=M&&Gu(M)?void 0:AV(b,M);if(me!==void 0){if(z&256)return oL(_,me)||gn;const Je=Fn(_,me);if(Je){if(z&64&&M&&Je.declarations&&Bt(Je)&&i5(M,Je)){const Pt=(Z==null?void 0:Z.argumentExpression)??(XN(M)?M.indexType:M);Wn(Pt,Je.declarations,me)}if(Z){if(OV(Je,Z,uze(Z.expression,_.symbol)),nwe(Z,Je,QM(Z))){He(Z.argumentExpression,w.Cannot_assign_to_0_because_it_is_a_read_only_property,Cl(Je));return}if(z&8&&(ge(M).resolvedSymbol=Je),Ex(Z,Je))return qr}const vt=Vo(Je);return Z&&QM(Z)!==1?t8(Z,vt):M&&XN(M)&&Ste(vt)?gl([vt,Ui]):vt}if(iA(_,_p)&&FT(me)){const vt=+me;if(M&&iA(_,Pt=>!Pt.target.hasRestElement)&&!(z&16)){const Pt=q0e(M);if(_p(_)){if(vt<0)return He(Pt,w.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ui;He(Pt,w.Tuple_type_0_of_length_1_has_no_element_at_index_2,oa(_),Fo(_),lf(me))}else He(Pt,w.Property_0_does_not_exist_on_type_1,lf(me),oa(_))}if(vt>=0)return Se(Cd(_,an)),lBe(_,vt,z&1?We:void 0)}}if(!(b.flags&98304)&&lh(b,402665900)){if(_.flags&131073)return _;const Je=qP(_,b)||Cd(_,xe);if(Je){if(z&2&&Je.keyType!==an){Z&&He(Z,w.Type_0_cannot_be_used_to_index_type_1,oa(b),oa(a));return}if(M&&Je.keyType===xe&&!lh(b,12)){const vt=q0e(M);return He(vt,w.Type_0_cannot_be_used_as_an_index_type,oa(b)),z&1?gl([Je.type,We]):Je.type}return Se(Je),z&1&&!(_.symbol&&_.symbol.flags&384&&b.symbol&&b.flags&1024&&Uf(b.symbol)===_.symbol)?gl([Je.type,We]):Je.type}if(b.flags&131072)return vs;if(oK(_))return gn;if(Z&&!Dfe(_)){if(zu(_)){if(Wt&&b.flags&384)return no.add(kc(Z,w.Property_0_does_not_exist_on_type_1,b.value,oa(_))),Ui;if(b.flags&12){const vt=Vn(_.properties,Pt=>Vo(Pt));return gl(ur(vt,Ui))}}if(_.symbol===gr&&me!==void 0&&gr.exports.has(me)&&gr.exports.get(me).flags&418)He(Z,w.Property_0_does_not_exist_on_type_1,lf(me),oa(_));else if(Wt&&!Le.suppressImplicitAnyIndexErrors&&!(z&128))if(me!==void 0&&m5(me,_)){const vt=oa(_);He(Z,w.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,me,vt,vt+"["+Yv(Z.argumentExpression)+"]")}else if(pb(_,an))He(Z.argumentExpression,w.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let vt;if(me!==void 0&&(vt=lze(me,_)))vt!==void 0&&He(Z.argumentExpression,w.Property_0_does_not_exist_on_type_1_Did_you_mean_2,me,oa(_),vt);else{const Pt=vht(_,Z,b);if(Pt!==void 0)He(Z,w.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,oa(_),Pt);else{let dn;if(b.flags&1024)dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,"["+oa(b)+"]",oa(_));else if(b.flags&8192){const yn=Dg(b.symbol,Z);dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,"["+yn+"]",oa(_))}else b.flags&128||b.flags&256?dn=Es(void 0,w.Property_0_does_not_exist_on_type_1,b.value,oa(_)):b.flags&12&&(dn=Es(void 0,w.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,oa(b),oa(_)));dn=Es(dn,w.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,oa(C),oa(_)),no.add(RN(ns(Z),Z,dn))}}}return}}if(oK(_))return gn;if(M){const Je=q0e(M);b.flags&384?He(Je,w.Property_0_does_not_exist_on_type_1,""+b.value,oa(_)):b.flags&12?He(Je,w.Type_0_has_no_matching_index_signature_for_type_1,oa(_),oa(b)):He(Je,w.Type_0_cannot_be_used_as_an_index_type,oa(b))}if(Q_(b))return b;return;function Se(Je){Je&&Je.isReadonly&&Z&&(IS(Z)||kde(Z))&&He(Z,w.Index_signature_in_type_0_only_permits_reading,oa(_))}}function q0e(a){return a.kind===212?a.argumentExpression:a.kind===199?a.indexType:a.kind===167?a.expression:a}function aK(a){return a.flags&2097152?gt(a.types,_=>!!(_.flags&101248)||aK(_)):!!(a.flags&77)||U4(a)}function U4(a){return!!(a.flags&134217728)&&jr(a.types,aK)||!!(a.flags&268435456)&&aK(a.type)}function mte(a){return!!Gk(a)}function nM(a){return!!(Gk(a)&4194304)}function HS(a){return!!(Gk(a)&8388608)}function Gk(a){return a.flags&137363456?(a.objectFlags&2097152||(a.objectFlags|=2097152|Em(a.types,(_,b)=>_|Gk(b),0)),a.objectFlags&12582912):a.flags&33554432?(a.objectFlags&2097152||(a.objectFlags|=2097152|Gk(a.baseType)|Gk(a.constraint)),a.objectFlags&12582912):(a.flags&58982400||by(a)||u0(a)?4194304:0)|(a.flags&331612160&&!U4(a)?8388608:0)}function gb(a,_){return a.flags&8388608?cgt(a,_):a.flags&16777216?lgt(a,_):a}function ret(a,_,b){if(a.flags&1048576||a.flags&2097152&&!TPe(a)){const C=Vn(a.types,M=>gb(s2(M,_),b));return a.flags&2097152||b?Dd(C):gl(C)}}function gte(a,_,b){if(_.flags&1048576){const C=Vn(_.types,M=>gb(s2(a,M),b));return b?Dd(C):gl(C)}}function cgt(a,_){const b=_?"simplifiedForWriting":"simplifiedForReading";if(a[b])return a[b]===nm?a:a[b];a[b]=nm;const C=gb(a.objectType,_),M=gb(a.indexType,_),z=gte(C,M,_);if(z)return a[b]=z;if(!(M.flags&465829888)){const Z=ret(C,M,_);if(Z)return a[b]=Z}if(u0(C)&&M.flags&296){const Z=jI(C,M.flags&8?0:C.target.fixedLength,0,_);if(Z)return a[b]=Z}return by(C)&&(!Vg(C)||sy(C))?a[b]=bh(K6(C,a.indexType),Z=>gb(Z,_)):a[b]=a}function lgt(a,_){const b=a.checkType,C=a.extendsType,M=QP(a),z=X6(a);if(z.flags&131072&&np(M)===np(b)){if(b.flags&1||Mp(wB(b),wB(C)))return gb(M,_);if(EPe(b,C))return vs}else if(M.flags&131072&&np(z)===np(b)){if(!(b.flags&1)&&Mp(wB(b),wB(C)))return vs;if(b.flags&1||EPe(b,C))return gb(z,_)}return a}function EPe(a,_){return!!(gl([jp(a,_),vs]).flags&131072)}function K6(a,_){const b=IE([L1(a)],[_]),C=q4(a.mapper,b);return Nf(SC(a.target||a),C)}function s2(a,_,b=0,C,M,z){return Wb(a,_,b,C,M,z)||(C?_r:co)}function H4(a,_){return iA(a,b=>{if(b.flags&384){const C=vv(b);if(FT(C)){const M=+C;return M>=0&&M<_}}return!1})}function Wb(a,_,b=0,C,M,z){if(a===mt||_===mt)return mt;if(a=HT(a),Aet(a)&&!(_.flags&98304)&&lh(_,12)&&(_=xe),Le.noUncheckedIndexedAccess&&b&32&&(b|=1),HS(_)||(C&&C.kind!==199?u0(a)&&!H4(_,CWe(a.target)):nM(a)&&!(_p(a)&&H4(_,CWe(a.target)))||Xe(a))){if(a.flags&3)return a;const me=b&1,Se=a.id+","+_.id+","+me+AC(M,z);let Je=jc.get(Se);return Je||jc.set(Se,Je=vO(a,_,me,M,z)),Je}const Z=F4(a);if(_.flags&1048576&&!(_.flags&16)){const me=[];let Se=!1;for(const Je of _.types){const vt=RWe(a,Z,Je,_,C,b|(Se?128:0));if(vt)me.push(vt);else if(C)Se=!0;else return}return Se?void 0:b&4?Dd(me,M,z):gl(me,1,M,z)}return RWe(a,Z,_,_,C,b|8|64)}function iet(a){const _=ge(a);if(!_.resolvedType){const b=wl(a.objectType),C=wl(a.indexType),M=bO(a);_.resolvedType=s2(b,C,0,a,M,bx(M))}return _.resolvedType}function xPe(a){const _=ge(a);if(!_.resolvedType){const b=Uv(32,a.symbol);b.declaration=a,b.aliasSymbol=bO(a),b.aliasTypeArguments=bx(b.aliasSymbol),_.resolvedType=b,mT(b)}return _.resolvedType}function np(a){return a.flags&33554432?np(a.baseType):a.flags&8388608&&(a.objectType.flags&33554432||a.indexType.flags&33554432)?s2(np(a.objectType),np(a.indexType)):a}function sK(a){const _=Wi(a);return _&&(nM(_)||HS(_))?Hy(a):a}function K0e(a){return m6(a)&&Nt(a.elements)>0&&!gt(a.elements,_=>GY(_)||gW(_)||rS(_)&&!!(_.questionToken||_.dotDotDotToken))}function oet(a,_){return mte(a)||_&&_p(a)&>(Fb(a),mte)}function APe(a,_,b,C){let M,z,Z=0;for(;;){if(Z===1e3)return He(ue,w.Type_instantiation_is_excessively_deep_and_possibly_infinite),_r;const Se=Nf(np(a.checkType),_),Je=Nf(a.extendsType,_);if(Se===_r||Je===_r)return _r;if(Se===mt||Je===mt)return mt;const vt=K0e(a.node.checkType)&&K0e(a.node.extendsType)&&Nt(a.node.checkType.elements)===Nt(a.node.extendsType.elements),Pt=oet(Se,vt);let dn;if(a.inferTypeParameters){const hr=Ol(a.inferTypeParameters,sK),bi=hr!==a.inferTypeParameters?IE(a.inferTypeParameters,hr):void 0,Wo=_K(hr,void 0,0);if(bi){const $s=q4(_,bi);for(let Ba=0;Ba$4(bi,Pt)),yn=IE(vt.outerTypeParameters,dn),hr=vt.isDistributive?$4(vt.checkType,yn):void 0;if(!hr||hr===vt.checkType||!(hr.flags&1179648))return a=vt,_=yn,b=void 0,C=void 0,vt.aliasSymbol&&Z++,!0}}return!1}}function QP(a){return a.resolvedTrueType||(a.resolvedTrueType=Nf(wl(a.root.node.trueType),a.mapper))}function X6(a){return a.resolvedFalseType||(a.resolvedFalseType=Nf(wl(a.root.node.falseType),a.mapper))}function CPe(a){return a.resolvedInferredTrueType||(a.resolvedInferredTrueType=a.combinedMapper?Nf(wl(a.root.node.trueType),a.combinedMapper):QP(a))}function aet(a){let _;return a.locals&&a.locals.forEach(b=>{b.flags&262144&&(_=ur(_,Rm(b)))}),_}function Mue(a){return a.isDistributive&&(jue(a.checkType,a.node.trueType)||jue(a.checkType,a.node.falseType))}function ugt(a){const _=ge(a);if(!_.resolvedType){const b=wl(a.checkType),C=bO(a),M=bx(C),z=P4(a,!0),Z=M?z:gi(z,Se=>jue(Se,a)),me={node:a,checkType:b,extendsType:wl(a.extendsType),isDistributive:!!(b.flags&262144),inferTypeParameters:aet(a),outerTypeParameters:Z,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:M};_.resolvedType=APe(me,void 0),Z&&(me.instantiations=new Map,me.instantiations.set(La(Z),_.resolvedType))}return _.resolvedType}function fgt(a){const _=ge(a);return _.resolvedType||(_.resolvedType=Ok(wi(a.typeParameter))),_.resolvedType}function set(a){return An(a)?[a]:ur(set(a.left),a.right)}function _gt(a){var _;const b=ge(a);if(!b.resolvedType){if(!BE(a))return He(a.argument,w.String_literal_expected),b.resolvedSymbol=Ir,b.resolvedType=_r;const C=a.isTypeOf?111551:a.flags&16777216?900095:788968,M=Zm(a,a.argument.literal);if(!M)return b.resolvedSymbol=Ir,b.resolvedType=_r;const z=!!((_=M.exports)!=null&&_.get("export=")),Z=$0(M,!1);if(Um(a.qualifier))if(Z.flags&C)b.resolvedType=o5(a,b,Z,C);else{const me=C===111551?w.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:w.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;He(a,me,a.argument.literal.text),b.resolvedSymbol=Ir,b.resolvedType=_r}else{const me=set(a.qualifier);let Se=Z,Je;for(;Je=me.shift();){const vt=me.length?1920:C,Pt=wa(wp(Se)),dn=a.isTypeOf||Rs(a)&&z?Fn(Vo(Pt),Je.escapedText,!1,!0):void 0,hr=(a.isTypeOf?void 0:Jn(Gt(Pt),Je.escapedText,vt))??dn;if(!hr)return He(Je,w.Namespace_0_has_no_exported_member_1,Dg(Se),Ud(Je)),b.resolvedType=_r;ge(Je).resolvedSymbol=hr,ge(Je.parent).resolvedSymbol=hr,Se=hr}b.resolvedType=o5(a,b,Se,C)}}return b.resolvedType}function o5(a,_,b,C){const M=wp(b);return _.resolvedSymbol=M,C===111551?Xbe(Vo(b),a):vD(a,M)}function MWe(a){const _=ge(a);if(!_.resolvedType){const b=bO(a);if(BA(a.symbol).size===0&&!b)_.resolvedType=uS;else{let C=Uv(16,a.symbol);C.aliasSymbol=b,C.aliasTypeArguments=bx(b),EW(a)&&a.isArrayType&&(C=W1(C)),_.resolvedType=C}}return _.resolvedType}function bO(a){let _=a.parent;for(;xR(_)||pI(_)||KN(_)&&_.operator===148;)_=_.parent;return fH(_)?wi(_):void 0}function bx(a){return a?rs(a):void 0}function X0e(a){return!!(a.flags&524288)&&!by(a)}function Y0e(a){return rM(a)||!!(a.flags&474058748)}function Lue(a,_){if(!(a.flags&1048576))return a;if(jr(a.types,Y0e))return lr(a.types,rM)||Yu;const b=lr(a.types,z=>!Y0e(z));if(!b||lr(a.types,z=>z!==b&&!Y0e(z)))return a;return M(b);function M(z){const Z=Td();for(const Se of Vp(z))if(!(Vy(Se)&24)){if(Q0e(Se)){const Je=Se.flags&65536&&!(Se.flags&32768),Pt=Ge(16777220,Se.escapedName,eA(Se)|(_?8:0));Pt.links.type=Je?Ui:fm(Vo(Se),!0),Pt.declarations=Se.declarations,Pt.links.nameType=Mt(Se).nameType,Pt.links.syntheticOrigin=Se,Z.set(Se.escapedName,Pt)}}const me=jo(z.symbol,Z,Zn,Zn,T_(z));return me.objectFlags|=131200,me}}function J4(a,_,b,C,M){if(a.flags&1||_.flags&1)return gn;if(a.flags&2||_.flags&2)return co;if(a.flags&131072)return _;if(_.flags&131072)return a;if(a=Lue(a,M),a.flags&1048576)return Rue([a,_])?bh(a,Je=>J4(Je,_,b,C,M)):_r;if(_=Lue(_,M),_.flags&1048576)return Rue([a,_])?bh(_,Je=>J4(a,Je,b,C,M)):_r;if(_.flags&473960444)return a;if(nM(a)||nM(_)){if(rM(a))return _;if(a.flags&2097152){const Je=a.types,vt=Je[Je.length-1];if(X0e(vt)&&X0e(_))return Dd(Hi(Je.slice(0,Je.length-1),[J4(vt,_,b,C,M)]))}return Dd([a,_])}const z=Td(),Z=new Set,me=a===Yu?T_(_):EB([a,_]);for(const Je of Vp(_))Vy(Je)&24?Z.add(Je.escapedName):Q0e(Je)&&z.set(Je.escapedName,CV(Je,M));for(const Je of Vp(a))if(!(Z.has(Je.escapedName)||!Q0e(Je)))if(z.has(Je.escapedName)){const vt=z.get(Je.escapedName),Pt=Vo(vt);if(vt.flags&16777216){const dn=Hi(Je.declarations,vt.declarations),yn=4|Je.flags&16777216,hr=Ge(yn,Je.escapedName),bi=Vo(Je),Wo=EO(bi),aa=EO(Pt);hr.links.type=Wo===aa?bi:gl([bi,aa],2),hr.links.leftSpread=Je,hr.links.rightSpread=vt,hr.declarations=dn,hr.links.nameType=Mt(Je).nameType,z.set(Je.escapedName,hr)}}else z.set(Je.escapedName,CV(Je,M));const Se=jo(b,z,Zn,Zn,Ol(me,Je=>cet(Je,M)));return Se.objectFlags|=2228352|C,Se}function Q0e(a){var _;return!gt(a.declarations,Mf)&&(!(a.flags&106496)||!((_=a.declarations)!=null&&_.some(b=>Jl(b.parent))))}function CV(a,_){const b=a.flags&65536&&!(a.flags&32768);if(!b&&_===KI(a))return a;const C=4|a.flags&16777216,M=Ge(C,a.escapedName,eA(a)|(_?8:0));return M.links.type=b?Ui:Vo(a),M.declarations=a.declarations,M.links.nameType=Mt(a).nameType,M.links.syntheticOrigin=a,M}function cet(a,_){return a.isReadonly!==_?yD(a.keyType,a.type,_,a.declaration):a}function B2(a,_,b,C){const M=su(a,b);return M.value=_,M.regularType=C||M,M}function ZP(a){if(a.flags&2976){if(!a.freshType){const _=B2(a.flags,a.value,a.symbol,a);_.freshType=_,a.freshType=_}return a.freshType}return a}function B1(a){return a.flags&2976?a.regularType:a.flags&1048576?a.regularType||(a.regularType=bh(a,B1)):a}function jk(a){return!!(a.flags&2976)&&a.freshType===a}function qv(a){let _;return Ea.get(a)||(Ea.set(a,_=B2(128,a)),_)}function bD(a){let _;return Fi.get(a)||(Fi.set(a,_=B2(256,a)),_)}function Oue(a){let _;const b=tD(a);return ta.get(b)||(ta.set(b,_=B2(2048,a)),_)}function ch(a,_,b){let C;const M=`${_}${typeof a=="string"?"@":"#"}${a}`,z=1024|(typeof a=="string"?128:256);return $a.get(M)||($a.set(M,C=B2(z,a,b)),C)}function Y6(a){if(a.literal.kind===106)return $e;const _=ge(a);return _.resolvedType||(_.resolvedType=B1(n_(a.literal))),_.resolvedType}function uet(a){const _=su(8192,a);return _.escapedName=`__@${_.symbol.escapedName}@${Bp(_.symbol)}`,_}function PB(a){if(Zz(a)){const _=Sde(a)?Vl(a.left):Vl(a);if(_){const b=Mt(_);return b.uniqueESSymbolType||(b.uniqueESSymbolType=uet(_))}}return Qa}function dgt(a){const _=Q1(a,!1,!1),b=_&&_.parent;if(b&&(Jl(b)||b.kind===264)&&!e_(_)&&(!pg(_)||N7(a,_.body)))return Uy(wi(b)).thisType;if(b&&Wd(b)&&ys(b.parent)&&Qy(b.parent)===6)return Uy(Vl(b.parent.left).parent).thisType;const C=a.flags&16777216?VE(a):void 0;return C&&Dm(C)&&ys(C.parent)&&Qy(C.parent)===3?Uy(Vl(C.parent.left).parent).thisType:JI(_)&&N7(a,_.body)?Uy(wi(_)).thisType:(He(a,w.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_r)}function Z0e(a){const _=ge(a);return _.resolvedType||(_.resolvedType=dgt(a)),_.resolvedType}function fet(a){return wl(Fue(a.type)||a.type)}function Fue(a){switch(a.kind){case 196:return Fue(a.type);case 189:if(a.elements.length===1&&(a=a.elements[0],a.kind===191||a.kind===202&&a.dotDotDotToken))return Fue(a.type);break;case 188:return a.elementType}}function DPe(a){const _=ge(a);return _.resolvedType||(_.resolvedType=a.dotDotDotToken?fet(a):fm(wl(a.type),!0,!!a.questionToken))}function wl(a){return Vmt(ebe(a),a)}function ebe(a){switch(a.kind){case 133:case 319:case 320:return gn;case 159:return co;case 154:return xe;case 150:return an;case 163:return Un;case 136:return Ca;case 155:return Qa;case 116:return Ks;case 157:return Ui;case 106:return $e;case 146:return vs;case 151:return a.flags&524288&&!Wt?gn:fp;case 141:return Qr;case 197:case 110:return Z0e(a);case 201:return Y6(a);case 183:return _Pe(a);case 182:return a.assertsModifier?Ks:Ca;case 233:return _Pe(a);case 186:return pWe(a);case 188:case 189:return tgt(a);case 190:return $Ze(a);case 192:return qZe(a);case 193:return dte(a);case 321:return fPe(a);case 323:return fm(wl(a.type));case 202:return DPe(a);case 196:case 322:case 316:return wl(a.type);case 191:return fet(a);case 325:return hvt(a);case 184:case 185:case 187:case 329:case 324:case 330:return MWe(a);case 198:return $0e(a);case 199:return iet(a);case 200:return xPe(a);case 194:return ugt(a);case 195:return fgt(a);case 203:return ed(a);case 205:return _gt(a);case 80:case 166:case 211:const _=CD(a);return _?Rm(_):_r;default:return _r}}function IPe(a,_,b){if(a&&a.length)for(let C=0;CC.typeParameter),Vn(b,()=>co))}function q4(a,_){return a?zue(4,a,_):_}function FWe(a,_){return a?zue(5,a,_):_}function NB(a,_,b){return b?zue(5,Q6(a,_),b):Q6(a,_)}function DV(a,_,b){return a?zue(5,a,Q6(_,b)):Q6(_,b)}function hte(a){return!a.constraint&&!AB(a)||a.constraint===lm?a:a.restrictiveInstantiation||(a.restrictiveInstantiation=Lb(a.symbol),a.restrictiveInstantiation.constraint=lm,a.restrictiveInstantiation)}function Hy(a){const _=Lb(a.symbol);return _.target=a,_}function pgt(a,_){return YF(a.kind,a.parameterName,a.parameterIndex,Nf(a.type,_))}function cK(a,_,b){let C;if(a.typeParameters&&!b){C=Vn(a.typeParameters,Hy),_=q4(IE(a.typeParameters,C),_);for(const z of C)z.mapper=_}const M=i2(a.declaration,C,a.thisParameter&&kPe(a.thisParameter,_),IPe(a.parameters,_,kPe),void 0,void 0,a.minArgumentCount,a.flags&167);return M.target=a,M.mapper=_,M}function kPe(a,_){const b=Mt(a);if(b.type&&!X0(b.type))return a;I_(a)&1&&(a=b.target,_=q4(b.mapper,_));const C=Ge(a.flags,a.escapedName,1|I_(a)&53256);return C.declarations=a.declarations,C.parent=a.parent,C.links.target=a,C.links.mapper=_,a.valueDeclaration&&(C.valueDeclaration=a.valueDeclaration),b.nameType&&(C.links.nameType=b.nameType),C}function det(a,_,b,C){const M=a.objectFlags&4||a.objectFlags&8388608?a.node:a.symbol.declarations[0],z=ge(M),Z=a.objectFlags&4?z.resolvedType:a.objectFlags&64?a.target:a;let me=z.outerTypeParameters;if(!me){let Se=P4(M,!0);if(JI(M)){const vt=mb(M);Se=Oi(Se,vt)}me=Se||Zn;const Je=a.objectFlags&8388612?[M]:a.symbol.declarations;me=(Z.objectFlags&8388612||Z.symbol.flags&8192||Z.symbol.flags&2048)&&!Z.aliasTypeArguments?gi(me,vt=>gt(Je,Pt=>jue(vt,Pt))):me,z.outerTypeParameters=me}if(me.length){const Se=q4(a.mapper,_),Je=Vn(me,hr=>$4(hr,Se)),vt=b||a.aliasSymbol,Pt=b?C:Sw(a.aliasTypeArguments,_),dn=La(Je)+AC(vt,Pt);Z.instantiations||(Z.instantiations=new Map,Z.instantiations.set(La(me)+AC(Z.aliasSymbol,Z.aliasTypeArguments),Z));let yn=Z.instantiations.get(dn);if(!yn){const hr=IE(me,Je);yn=Z.objectFlags&4?SV(a.target,a.node,hr,vt,Pt):Z.objectFlags&32?WWe(Z,hr,vt,Pt):zWe(Z,hr,vt,Pt),Z.instantiations.set(dn,yn);const bi=ji(yn);if(yn.flags&138117121&&!(bi&524288)){const Wo=gt(Je,X0);ji(yn)&524288||(bi&52?yn.objectFlags|=524288|(Wo?1048576:0):yn.objectFlags|=Wo?0:524288)}}return yn}return a}function pet(a){return!(a.parent.kind===183&&a.parent.typeArguments&&a===a.parent.typeName||a.parent.kind===205&&a.parent.typeArguments&&a===a.parent.qualifier)}function jue(a,_){if(a.symbol&&a.symbol.declarations&&a.symbol.declarations.length===1){const C=a.symbol.declarations[0].parent;for(let M=_;M!==C;M=M.parent)if(!M||M.kind===241||M.kind===194&&B_(M.extendsType,b))return!0;return b(_)}return!0;function b(C){switch(C.kind){case 197:return!!a.isThisType;case 80:return!a.isThisType&&rC(C)&&pet(C)&&ebe(C)===a;case 186:const M=C.exprName,z=NS(M);if(!Zy(z)){const Z=ED(z),me=a.symbol.declarations[0],Se=me.kind===168?me.parent:a.isThisType?me:void 0;if(Z.declarations&&Se)return gt(Z.declarations,Je=>N7(Je,Se))||gt(C.typeArguments,b)}return!0;case 174:case 173:return!C.type&&!!C.body||gt(C.typeParameters,b)||gt(C.parameters,b)||!!C.type&&b(C.type)}return!!B_(C,b)}}function PPe(a){const _=mT(a);if(_.flags&4194304){const b=np(_.type);if(b.flags&262144)return b}}function WWe(a,_,b,C){const M=PPe(a);if(M){const z=Nf(M,_);if(M!==z)return RBe(HT(z),Z=>{if(Z.flags&61603843&&Z!==mt&&!je(Z)){if(!a.declaration.nameType){let me;if(UA(Z)||Z.flags&1&&GP(M,4)<0&&(me=Wi(M))&&iA(me,GI))return BWe(Z,a,NB(M,Z,_));if(u0(Z))return met(Z,a,M,_);if(_p(Z))return mgt(Z,a,NB(M,Z,_))}return zWe(a,NB(M,Z,_))}return Z},b,C)}return Nf(mT(a),_)===mt?mt:zWe(a,_,b,C)}function yte(a,_){return _&1?!0:_&2?!1:a}function met(a,_,b,C){const M=a.target.elementFlags,z=Vn(Fb(a),(me,Se)=>{const Je=M[Se]&8?me:M[Se]&4?W1(me):$v([me],[M[Se]]);return Je===b?_:WWe(_,NB(b,Je,C))}),Z=yte(a.target.readonly,jS(_));return $v(z,Vn(z,me=>8),Z)}function BWe(a,_,b){const C=tbe(_,an,!0,b);return je(C)?_r:W1(C,yte(Tte(a),jS(_)))}function mgt(a,_,b){const C=a.target.elementFlags,M=Vn(Fb(a),(Se,Je)=>tbe(_,qv(""+Je),!!(C[Je]&2),b)),z=jS(_),Z=z&4?Vn(C,Se=>Se&1?2:Se):z&8?Vn(C,Se=>Se&2?1:Se):C,me=yte(a.target.readonly,z);return ni(M,_r)?_r:$v(M,Z,me,a.target.labeledElementDeclarations)}function tbe(a,_,b,C){const M=DV(C,L1(a),_),z=Nf(SC(a.target||a),M),Z=jS(a);return Ye&&Z&4&&!cy(z,49152)?eL(z,!0):Ye&&Z&8&&b?JA(z,524288):z}function zWe(a,_,b,C){const M=Uv(a.objectFlags&-1572865|64,a.symbol);if(a.objectFlags&32){M.declaration=a.declaration;const z=L1(a),Z=Hy(z);M.typeParameter=Z,_=q4(Q6(z,Z),_),Z.mapper=_}return a.objectFlags&8388608&&(M.node=a.node),M.target=a,M.mapper=_,M.aliasSymbol=b||a.aliasSymbol,M.aliasTypeArguments=b?C:Sw(a.aliasTypeArguments,_),M.objectFlags|=M.aliasTypeArguments?hw(M.aliasTypeArguments):0,M}function GWe(a,_,b,C){const M=a.root;if(M.outerTypeParameters){const z=Vn(M.outerTypeParameters,Se=>$4(Se,_)),Z=La(z)+AC(b,C);let me=M.instantiations.get(Z);if(!me){const Se=IE(M.outerTypeParameters,z),Je=M.checkType,vt=M.isDistributive?$4(Je,Se):void 0;me=vt&&Je!==vt&&vt.flags&1179648?RBe(HT(vt),Pt=>APe(M,NB(Je,Pt,Se)),b,C):APe(M,Se,b,C),M.instantiations.set(Z,me)}return me}return a}function Nf(a,_){return a&&_?NPe(a,_,void 0,void 0):a}function NPe(a,_,b,C){var M;if(!X0(a))return a;if(oe===100||te>=5e6)return(M=tu)==null||M.instant(tu.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:a.id,instantiationDepth:oe,instantiationCount:te}),He(ue,w.Type_instantiation_is_excessively_deep_and_possibly_infinite),_r;ee++,te++,oe++;const z=ggt(a,_,b,C);return oe--,z}function ggt(a,_,b,C){const M=a.flags;if(M&262144)return $4(a,_);if(M&524288){const z=a.objectFlags;if(z&52){if(z&4&&!a.node){const Z=a.resolvedTypeArguments,me=Sw(Z,_);return me!==Z?hPe(a.target,me):a}return z&1024?hgt(a,_):det(a,_,b,C)}return a}if(M&3145728){const z=a.flags&1048576?a.origin:void 0,Z=z&&z.flags&3145728?z.types:a.types,me=Sw(Z,_);if(me===Z&&b===a.aliasSymbol)return a;const Se=b||a.aliasSymbol,Je=b?C:Sw(a.aliasTypeArguments,_);return M&2097152||z&&z.flags&2097152?Dd(me,Se,Je):gl(me,1,Se,Je)}if(M&4194304)return YP(Nf(a.type,_));if(M&134217728)return kB(a.texts,Sw(a.types,_));if(M&268435456)return r5(a.symbol,Nf(a.type,_));if(M&8388608){const z=b||a.aliasSymbol,Z=b?C:Sw(a.aliasTypeArguments,_);return s2(Nf(a.objectType,_),Nf(a.indexType,_),a.accessFlags,void 0,z,Z)}if(M&16777216)return GWe(a,q4(a.mapper,_),b,C);if(M&33554432){const z=Nf(a.baseType,_),Z=Nf(a.constraint,_);return z.flags&8650752&&mte(Z)?yw(z,Z):Z.flags&3||Mp(wB(z),wB(Z))?z:z.flags&8650752?yw(z,Z):Dd([Z,z])}return a}function hgt(a,_){const b=Nf(a.mappedType,_);if(!(ji(b)&32))return a;const C=Nf(a.constraintType,_);if(!(C.flags&4194304))return a;const M=qPe(Nf(a.source,_),b,C);return M||a}function wPe(a){return a.flags&402915327?a:a.permissiveInstantiation||(a.permissiveInstantiation=Nf(a,Kd))}function wB(a){return a.flags&402915327?a:(a.restrictiveInstantiation||(a.restrictiveInstantiation=Nf(a,c_),a.restrictiveInstantiation.restrictiveInstantiation=a.restrictiveInstantiation),a.restrictiveInstantiation)}function ygt(a,_){return yD(a.keyType,Nf(a.type,_),a.isReadonly,a.declaration)}function nA(a){switch(ce.assert(a.kind!==174||q2(a)),a.kind){case 218:case 219:case 174:case 262:return get(a);case 210:return gt(a.properties,nA);case 209:return gt(a.elements,nA);case 227:return nA(a.whenTrue)||nA(a.whenFalse);case 226:return(a.operatorToken.kind===57||a.operatorToken.kind===61)&&(nA(a.left)||nA(a.right));case 303:return nA(a.initializer);case 217:return nA(a.expression);case 292:return gt(a.properties,nA)||rD(a.parent)&>(a.parent.parent.children,nA);case 291:{const{initializer:_}=a;return!!_&&nA(_)}case 294:{const{expression:_}=a;return!!_&&nA(_)}}return!1}function get(a){return YH(a)||het(a)}function het(a){return a.typeParameters||bA(a)||!a.body?!1:a.body.kind!==241?nA(a.body):!!HM(a.body,_=>!!_.expression&&nA(_.expression))}function RPe(a){return(EP(a)||q2(a))&&get(a)}function yet(a){if(a.flags&524288){const _=K0(a);if(_.constructSignatures.length||_.callSignatures.length){const b=Uv(16,a.symbol);return b.members=_.members,b.properties=_.properties,b.callSignatures=Zn,b.constructSignatures=Zn,b.indexInfos=Zn,b}}else if(a.flags&2097152)return Dd(Vn(a.types,yet));return a}function eN(a,_){return Vk(a,_,qn)}function Vue(a,_){return Vk(a,_,qn)?-1:0}function jWe(a,_){return Vk(a,_,Jc)?-1:0}function vgt(a,_){return Vk(a,_,gc)?-1:0}function K4(a,_){return Vk(a,_,gc)}function vet(a,_){return Vk(a,_,Wl)}function Mp(a,_){return Vk(a,_,Jc)}function s5(a,_){return a.flags&1048576?jr(a.types,b=>s5(b,_)):_.flags&1048576?gt(_.types,b=>s5(a,b)):a.flags&2097152?gt(a.types,b=>s5(b,_)):a.flags&58982400?s5(Co(a)||co,_):By(_)?!!(a.flags&67633152):_===Ev?!!(a.flags&67633152)&&!By(a):_===S0?!!(a.flags&524288)&&DBe(a):wI(a,UT(_))||UA(_)&&!Tte(_)&&s5(a,ya)}function MPe(a,_){return Vk(a,_,au)}function nbe(a,_){return MPe(a,_)||MPe(_,a)}function JS(a,_,b,C,M,z){return dc(a,_,Jc,b,C,M,z)}function X4(a,_,b,C,M,z){return lK(a,_,Jc,b,C,M,z,void 0)}function lK(a,_,b,C,M,z,Z,me){return Vk(a,_,b)?!0:!C||!vte(M,a,_,b,z,Z,me)?dc(a,_,b,C,z,Z,me):!1}function VWe(a){return!!(a.flags&16777216||a.flags&2097152&>(a.types,VWe))}function vte(a,_,b,C,M,z,Z){if(!a||VWe(b))return!1;if(!dc(_,b,C,void 0)&&hT(a,_,b,C,M,z,Z))return!0;switch(a.kind){case 234:if(!vo(a))break;case 294:case 217:return vte(a.expression,_,b,C,M,z,Z);case 226:switch(a.operatorToken.kind){case 64:case 28:return vte(a.right,_,b,C,M,z,Z)}break;case 210:return $We(a,_,b,C,z,Z);case 209:return JWe(a,_,b,C,z,Z);case 292:return bgt(a,_,b,C,z,Z);case 219:return UWe(a,_,b,C,z,Z)}return!1}function hT(a,_,b,C,M,z,Z){const me=Ti(_,0),Se=Ti(_,1);for(const Je of[Se,me])if(gt(Je,vt=>{const Pt=j(vt);return!(Pt.flags&131073)&&dc(Pt,b,C,void 0)})){const vt=Z||{};JS(_,b,a,M,z,vt);const Pt=vt.errors[vt.errors.length-1];return ml(Pt,kc(a,Je===Se?w.Did_you_mean_to_use_new_with_this_expression:w.Did_you_mean_to_call_this_expression)),!0}return!1}function UWe(a,_,b,C,M,z){if(E_(a.body)||gt(a.parameters,eY))return!1;const Z=NO(_);if(!Z)return!1;const me=Ti(b,0);if(!Nt(me))return!1;const Se=a.body,Je=j(Z),vt=gl(Vn(me,j));if(!dc(Je,vt,C,void 0)){const Pt=Se&&vte(Se,Je,vt,C,void 0,M,z);if(Pt)return Pt;const dn=z||{};if(dc(Je,vt,C,Se,void 0,M,dn),dn.errors)return b.symbol&&Nt(b.symbol.declarations)&&ml(dn.errors[dn.errors.length-1],kc(b.symbol.declarations[0],w.The_expected_type_comes_from_the_return_type_of_this_signature)),!(L0(a)&2)&&!wm(Je,"then")&&dc(aL(Je),vt,C,void 0)&&ml(dn.errors[dn.errors.length-1],kc(a,w.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function HWe(a,_,b){const C=Wb(_,b);if(C)return C;if(_.flags&1048576){const M=ket(a,_);if(M)return Wb(M,b)}}function bet(a,_){Iw(a,_,!1);const b=$te(a,1);return kte(),b}function rbe(a,_,b,C,M,z){let Z=!1;for(const me of a){const{errorNode:Se,innerExpression:Je,nameType:vt,errorMessage:Pt}=me;let dn=HWe(_,b,vt);if(!dn||dn.flags&8388608)continue;let yn=Wb(_,vt);if(!yn)continue;const hr=AV(vt,void 0);if(!dc(yn,dn,C,void 0)){const bi=Je&&vte(Je,yn,dn,C,void 0,M,z);if(Z=!0,!bi){const Wo=z||{},aa=Je?bet(Je,yn):yn;if(on&&Jue(aa,dn)){const $s=kc(Se,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,oa(aa),oa(dn));no.add($s),Wo.errors=[$s]}else{const $s=!!(hr&&(Fn(b,hr)||Ir).flags&16777216),Ba=!!(hr&&(Fn(_,hr)||Ir).flags&16777216);dn=l5(dn,$s),yn=l5(yn,$s&&Ba),dc(aa,dn,C,Se,Pt,M,Wo)&&aa!==yn&&dc(yn,dn,C,Se,Pt,M,Wo)}if(Wo.errors){const $s=Wo.errors[Wo.errors.length-1],Ba=yv(vt)?vv(vt):void 0,lo=Ba!==void 0?Fn(b,Ba):void 0;let Xa=!1;if(!lo){const Go=qP(b,vt);Go&&Go.declaration&&!ns(Go.declaration).hasNoDefaultLib&&(Xa=!0,ml($s,kc(Go.declaration,w.The_expected_type_comes_from_this_index_signature)))}if(!Xa&&(lo&&Nt(lo.declarations)||b.symbol&&Nt(b.symbol.declarations))){const Go=lo&&Nt(lo.declarations)?lo.declarations[0]:b.symbol.declarations[0];ns(Go).hasNoDefaultLib||ml($s,kc(Go,w.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ba&&!(vt.flags&8192)?lf(Ba):oa(vt),oa(b)))}}}}}return Z}function Tet(a,_,b,C,M,z){const Z=D0(b,$ue),me=D0(b,vt=>!$ue(vt)),Se=me!==vs?_Ge(13,0,me,void 0):void 0;let Je=!1;for(let vt=a.next();!vt.done;vt=a.next()){const{errorNode:Pt,innerExpression:dn,nameType:yn,errorMessage:hr}=vt.value;let bi=Se;const Wo=Z!==vs?HWe(_,Z,yn):void 0;if(Wo&&!(Wo.flags&8388608)&&(bi=Se?gl([Se,Wo]):Wo),!bi)continue;let aa=Wb(_,yn);if(!aa)continue;const $s=AV(yn,void 0);if(!dc(aa,bi,C,void 0)){const Ba=dn&&vte(dn,aa,bi,C,void 0,M,z);if(Je=!0,!Ba){const lo=z||{},Xa=dn?bet(dn,aa):aa;if(on&&Jue(Xa,bi)){const Go=kc(Pt,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,oa(Xa),oa(bi));no.add(Go),lo.errors=[Go]}else{const Go=!!($s&&(Fn(Z,$s)||Ir).flags&16777216),Pa=!!($s&&(Fn(_,$s)||Ir).flags&16777216);bi=l5(bi,Go),aa=l5(aa,Go&&Pa),dc(Xa,bi,C,Pt,hr,M,lo)&&Xa!==aa&&dc(aa,bi,C,Pt,hr,M,lo)}}}}return Je}function*Eet(a){if(Nt(a.properties))for(const _ of a.properties)Ek(_)||_fe(oW(_.name))||(yield{errorNode:_.name,innerExpression:_.initializer,nameType:qv(oW(_.name))})}function*Y4(a,_){if(!Nt(a.children))return;let b=0;for(let C=0;C1;let Wo,aa;if(Pue(!1)!==rd){const Ba=xWe(gn);Wo=D0(yn,lo=>Mp(lo,Ba)),aa=D0(yn,lo=>!Mp(lo,Ba))}else Wo=D0(yn,$ue),aa=D0(yn,Ba=>!$ue(Ba));if(bi){if(Wo!==vs){const Ba=$v(ANe(Je,0)),lo=Y4(Je,Se);Z=Tet(lo,Ba,Wo,C,M,z)||Z}else if(!Vk(s2(_,dn),yn,C)){Z=!0;const Ba=He(Je.openingElement.tagName,w.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Pt,oa(yn));z&&z.skipLogging&&(z.errors||(z.errors=[])).push(Ba)}}else if(aa!==vs){const Ba=hr[0],lo=xet(Ba,dn,Se);lo&&(Z=rbe(function*(){yield lo}(),_,b,C,M,z)||Z)}else if(!Vk(s2(_,dn),yn,C)){Z=!0;const Ba=He(Je.openingElement.tagName,w.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Pt,oa(yn));z&&z.skipLogging&&(z.errors||(z.errors=[])).push(Ba)}}return Z;function Se(){if(!me){const Je=Yv(a.parent.tagName),vt=pfe(VB(a)),Pt=vt===void 0?"children":lf(vt),dn=s2(b,qv(Pt)),yn=w._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;me={...yn,key:"!!ALREADY FORMATTED!!",message:Yie(void 0,yn,Je,Pt,oa(dn))}}return me}}function*TD(a,_){const b=Nt(a.elements);if(b)for(let C=0;CSe:qI(a)>Se))return C&&!(b&8)&&M(w.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,qI(a),Se),0;a.typeParameters&&a.typeParameters!==_.typeParameters&&(_=G4(_),a=Htt(a,_,void 0,Z));const vt=xx(a),Pt=Tfe(a),dn=Tfe(_);(Pt||dn)&&Nf(Pt||dn,me);const yn=_.declaration?_.declaration.kind:0,hr=!(b&3)&&ut&&yn!==174&&yn!==173&&yn!==176;let bi=-1;const Wo=xC(a);if(Wo&&Wo!==Ks){const Ba=xC(_);if(Ba){const lo=!hr&&Z(Wo,Ba,!1)||Z(Ba,Wo,C);if(!lo)return C&&M(w.The_this_types_of_each_signature_are_incompatible),0;bi&=lo}}const aa=Pt||dn?Math.min(vt,Se):Math.max(vt,Se),$s=Pt||dn?aa-1:-1;for(let Ba=0;Ba=qI(a)&&Ba=3&&_[0].flags&32768&&_[1].flags&65536&>(_,By)?67108864:0)}return!!(a.objectFlags&67108864)}return!1}function IV(a){return!!((a.flags&1048576?a.types[0]:a).flags&32768)}function Aet(a){return a.flags&524288&&!by(a)&&Vp(a).length===0&&T_(a).length===1&&!!Cd(a,xe)||a.flags&3145728&&jr(a.types,Aet)||!1}function OPe(a,_,b){const C=a.flags&8?Uf(a):a,M=_.flags&8?Uf(_):_;if(C===M)return!0;if(C.escapedName!==M.escapedName||!(C.flags&256)||!(M.flags&256))return!1;const z=Bp(C)+","+Bp(M),Z=za.get(z);if(Z!==void 0&&!(!(Z&4)&&Z&2&&b))return!!(Z&1);const me=Vo(M);for(const Se of Vp(Vo(C)))if(Se.flags&8){const Je=Fn(me,Se.escapedName);if(!Je||!(Je.flags&8))return b?(b(w.Property_0_is_missing_in_type_1,mp(Se),oa(Rm(M),void 0,64)),za.set(z,6)):za.set(z,2),!1}return za.set(z,1),!0}function Hue(a,_,b,C){const M=a.flags,z=_.flags;return z&1||M&131072||a===mt||z&2&&!(b===Wl&&M&1)?!0:z&131072?!1:!!(M&402653316&&z&4||M&128&&M&1024&&z&128&&!(z&1024)&&a.value===_.value||M&296&&z&8||M&256&&M&1024&&z&256&&!(z&1024)&&a.value===_.value||M&2112&&z&64||M&528&&z&16||M&12288&&z&4096||M&32&&z&32&&a.symbol.escapedName===_.symbol.escapedName&&OPe(a.symbol,_.symbol,C)||M&1024&&z&1024&&(M&1048576&&z&1048576&&OPe(a.symbol,_.symbol,C)||M&2944&&z&2944&&a.value===_.value&&OPe(a.symbol,_.symbol,C))||M&32768&&(!Ye&&!(z&3145728)||z&49152)||M&65536&&(!Ye&&!(z&3145728)||z&65536)||M&524288&&z&67108864&&!(b===Wl&&By(a)&&!(ji(a)&8192))||(b===Jc||b===au)&&(M&1||M&8&&(z&32||z&256&&z&1024)||M&256&&!(M&1024)&&(z&32||z&256&&z&1024&&a.value===_.value)||Q4(_)))}function Vk(a,_,b){if(jk(a)&&(a=a.regularType),jk(_)&&(_=_.regularType),a===_)return!0;if(b!==qn){if(b===au&&!(_.flags&131072)&&Hue(_,a,b)||Hue(a,_,b))return!0}else if(!((a.flags|_.flags)&61865984)){if(a.flags!==_.flags)return!1;if(a.flags&67358815)return!0}if(a.flags&524288&&_.flags&524288){const C=b.get(BPe(a,_,0,b,!1));if(C!==void 0)return!!(C&1)}return a.flags&469499904||_.flags&469499904?dc(a,_,b,void 0):!1}function Cet(a,_){return ji(a)&2048&&_fe(_.escapedName)}function obe(a,_){for(;;){const b=jk(a)?a.regularType:u0(a)?XWe(a,_):ji(a)&4?a.node?jA(a.target,Tm(a)):oBe(a)||a:a.flags&3145728?Det(a,_):a.flags&33554432?_?a.baseType:nK(a):a.flags&25165824?gb(a,_):a;if(b===a)return b;a=b}}function Det(a,_){const b=HT(a);if(b!==a)return b;if(a.flags&2097152&>(a.types,By)){const C=Ol(a.types,M=>obe(M,_));if(C!==a.types)return Dd(C)}return a}function XWe(a,_){const b=Fb(a),C=Ol(b,M=>M.flags&25165824?gb(M,_):M);return b!==C?rK(a.target,C):a}function dc(a,_,b,C,M,z,Z){var me;let Se,Je,vt,Pt,dn,yn,hr=0,bi=0,Wo=0,aa=0,$s=!1,Ba=0,lo,Xa;ce.assert(b!==qn||!C,"no error reporting in identity checking");const Go=Gi(a,_,3,!!C,M);if(Xa&&Ld(),$s){(me=tu)==null||me.instant(tu.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:a.id,targetId:_.id,depth:bi,targetDepth:Wo});const or=He(C||ue,w.Excessive_stack_depth_comparing_types_0_and_1,oa(a),oa(_));Z&&(Z.errors||(Z.errors=[])).push(or)}else if(Se){if(z){const fo=z();fo&&(OSe(fo,Se),Se=fo)}let or;if(M&&C&&!Go&&a.symbol){const fo=Mt(a.symbol);if(fo.originatingImport&&!WE(fo.originatingImport)&&dc(Vo(fo.target),_,b,void 0)){const Qs=kc(fo.originatingImport,w.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);or=ur(or,Qs)}}const Hr=RN(ns(C),C,Se,or);Je&&ml(Hr,...Je),Z&&(Z.errors||(Z.errors=[])).push(Hr),(!Z||!Z.skipLogging)&&no.add(Hr)}return C&&Z&&Z.skipLogging&&Go===0&&ce.assert(!!Z.errors,"missed opportunity to interact with error."),Go!==0;function Pa(or){Se=or.errorInfo,lo=or.lastSkippedInfo,Xa=or.incompatibleStack,Ba=or.overrideNextErrorInfo,Je=or.relatedInfo}function Ga(){return{errorInfo:Se,lastSkippedInfo:lo,incompatibleStack:Xa==null?void 0:Xa.slice(),overrideNextErrorInfo:Ba,relatedInfo:Je==null?void 0:Je.slice()}}function hs(or,...Hr){Ba++,lo=void 0,(Xa||(Xa=[])).push([or,...Hr])}function Ld(){const or=Xa||[];Xa=void 0;const Hr=lo;if(lo=void 0,or.length===1){nl(...or[0]),Hr&&$y(void 0,...Hr);return}let fo="";const Oa=[];for(;or.length;){const[Qs,...Ko]=or.pop();switch(Qs.code){case w.Types_of_property_0_are_incompatible.code:{fo.indexOf("new ")===0&&(fo=`(${fo})`);const ss=""+Ko[0];fo.length===0?fo=`${ss}`:rE(ss,iu(Le))?fo=`${fo}.${ss}`:ss[0]==="["&&ss[ss.length-1]==="]"?fo=`${fo}${ss}`:fo=`${fo}[${ss}]`;break}case w.Call_signature_return_types_0_and_1_are_incompatible.code:case w.Construct_signature_return_types_0_and_1_are_incompatible.code:case w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(fo.length===0){let ss=Qs;Qs.code===w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ss=w.Call_signature_return_types_0_and_1_are_incompatible:Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ss=w.Construct_signature_return_types_0_and_1_are_incompatible),Oa.unshift([ss,Ko[0],Ko[1]])}else{const ss=Qs.code===w.Construct_signature_return_types_0_and_1_are_incompatible.code||Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ll=Qs.code===w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Qs.code===w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";fo=`${ss}${fo}(${ll})`}break}case w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Oa.unshift([w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ko[0],Ko[1]]);break}case w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Oa.unshift([w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ko[0],Ko[1],Ko[2]]);break}default:return ce.fail(`Unhandled Diagnostic: ${Qs.code}`)}}fo?nl(fo[fo.length-1]===")"?w.The_types_returned_by_0_are_incompatible_between_these_types:w.The_types_of_0_are_incompatible_between_these_types,fo):Oa.shift();for(const[Qs,...Ko]of Oa){const ss=Qs.elidedInCompatabilityPyramid;Qs.elidedInCompatabilityPyramid=!1,nl(Qs,...Ko),Qs.elidedInCompatabilityPyramid=ss}Hr&&$y(void 0,...Hr)}function nl(or,...Hr){ce.assert(!!C),Xa&&Ld(),!or.elidedInCompatabilityPyramid&&(Se=Es(Se,or,...Hr))}function id(or){ce.assert(!!Se),Je?Je.push(or):Je=[or]}function $y(or,Hr,fo){Xa&&Ld();const[Oa,Qs]=dD(Hr,fo);let Ko=Hr,ss=Oa;if(Ew(Hr)&&!FPe(fo)&&(Ko=Tx(Hr),ce.assert(!Mp(Ko,fo),"generalized source shouldn't be assignable"),ss=a0(Ko)),(fo.flags&8388608&&!(Hr.flags&8388608)?fo.objectType.flags:fo.flags)&262144&&fo!==vE&&fo!==oh){const of=Co(fo);let C_;of&&(Mp(Ko,of)||(C_=Mp(Hr,of)))?nl(w._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,C_?Oa:ss,Qs,oa(of)):(Se=void 0,nl(w._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Qs,ss))}if(or)or===w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&on&&Iet(Hr,fo).length&&(or=w.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(b===au)or=w.Type_0_is_not_comparable_to_type_1;else if(Oa===Qs)or=w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(on&&Iet(Hr,fo).length)or=w.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(Hr.flags&128&&fo.flags&1048576){const of=FNe(Hr,fo);if(of){nl(w.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ss,Qs,oa(of));return}}or=w.Type_0_is_not_assignable_to_type_1}nl(or,ss,Qs)}function l2(or,Hr){const fo=Kx(or.symbol)?oa(or,or.symbol.valueDeclaration):oa(or),Oa=Kx(Hr.symbol)?oa(Hr,Hr.symbol.valueDeclaration):oa(Hr);(bu===or&&xe===Hr||K_===or&&an===Hr||ig===or&&Ca===Hr||dPe()===or&&Qa===Hr)&&nl(w._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Oa,fo)}function Cx(or,Hr,fo){return _p(or)?or.target.readonly&&ube(Hr)?(fo&&nl(w.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,oa(or),oa(Hr)),!1):GI(Hr):Tte(or)&&ube(Hr)?(fo&&nl(w.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,oa(or),oa(Hr)),!1):_p(Hr)?UA(or):!0}function kC(or,Hr,fo){return Gi(or,Hr,3,fo)}function Gi(or,Hr,fo=3,Oa=!1,Qs,Ko=0){if(or===Hr)return-1;if(or.flags&524288&&Hr.flags&402784252)return b===au&&!(Hr.flags&131072)&&Hue(Hr,or,b)||Hue(or,Hr,b,Oa?nl:void 0)?-1:(Oa&&Ps(or,Hr,or,Hr,Qs),0);const ss=obe(or,!1);let ll=obe(Hr,!0);if(ss===ll)return-1;if(b===qn)return ss.flags!==ll.flags?0:ss.flags&67358815?-1:(wf(ss,ll),Ec(ss,ll,!1,0,fo));if(ss.flags&262144&&Er(ss)===ll)return-1;if(ss.flags&470302716&&ll.flags&1048576){const of=ll.types,C_=of.length===2&&of[0].flags&98304?of[1]:of.length===3&&of[0].flags&98304&&of[1].flags&98304?of[2]:void 0;if(C_&&!(C_.flags&98304)&&(ll=obe(C_,!0),ss===ll))return-1}if(b===au&&!(ll.flags&131072)&&Hue(ll,ss,b)||Hue(ss,ll,b,Oa?nl:void 0))return-1;if(ss.flags&469499904||ll.flags&469499904){if(!(Ko&2)&&zu(ss)&&ji(ss)&8192&&Jf(ss,ll,Oa))return Oa&&$y(Qs,ss,Hr.aliasSymbol?Hr:ll),0;const C_=(b!==au||rA(ss))&&!(Ko&2)&&ss.flags&405405692&&ss!==Ev&&ll.flags&2621440&&ZWe(ll)&&(Vp(ss).length>0||BK(ss)),nd=!!(ji(ss)&2048);if(C_&&!Sgt(ss,ll,nd)){if(Oa){const O_=oa(or.aliasSymbol?or:ss),rp=oa(Hr.aliasSymbol?Hr:ll),Ug=Ti(ss,0),im=Ti(ss,1);Ug.length>0&&Gi(j(Ug[0]),ll,1,!1)||im.length>0&&Gi(j(im[0]),ll,1,!1)?nl(w.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,O_,rp):nl(w.Type_0_has_no_properties_in_common_with_type_1,O_,rp)}return 0}wf(ss,ll);const lu=ss.flags&1048576&&ss.types.length<4&&!(ll.flags&1048576)||ll.flags&1048576&&ll.types.length<4&&!(ss.flags&469499904)?Zg(ss,ll,Oa,Ko):Ec(ss,ll,Oa,Ko,fo);if(lu)return lu}return Oa&&Ps(or,Hr,ss,ll,Qs),0}function Ps(or,Hr,fo,Oa,Qs){var Ko,ss;const ll=!!oBe(or),of=!!oBe(Hr);fo=or.aliasSymbol||ll?or:fo,Oa=Hr.aliasSymbol||of?Hr:Oa;let C_=Ba>0;if(C_&&Ba--,fo.flags&524288&&Oa.flags&524288){const nd=Se;Cx(fo,Oa,!0),Se!==nd&&(C_=!!Se)}if(fo.flags&524288&&Oa.flags&402784252)l2(fo,Oa);else if(fo.symbol&&fo.flags&524288&&Ev===fo)nl(w.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ji(fo)&2048&&Oa.flags&2097152){const nd=Oa.types,kd=AD(_E.IntrinsicAttributes,C),lu=AD(_E.IntrinsicClassAttributes,C);if(!je(kd)&&!je(lu)&&(ni(nd,kd)||ni(nd,lu)))return}else Se=bn(Se,Hr);if(!Qs&&C_){lo=[fo,Oa];return}if($y(Qs,fo,Oa),fo.flags&262144&&((ss=(Ko=fo.symbol)==null?void 0:Ko.declarations)!=null&&ss[0])&&!Er(fo)){const nd=Hy(fo);if(nd.constraint=Nf(Oa,Q6(fo,nd)),MI(nd)){const kd=oa(Oa,fo.symbol.declarations[0]);id(kc(fo.symbol.declarations[0],w.This_type_parameter_might_need_an_extends_0_constraint,kd))}}}function wf(or,Hr){if(tu&&or.flags&3145728&&Hr.flags&3145728){const fo=or,Oa=Hr;if(fo.objectFlags&Oa.objectFlags&32768)return;const Qs=fo.types.length,Ko=Oa.types.length;Qs*Ko>1e6&&tu.instant(tu.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:or.id,sourceSize:Qs,targetId:Hr.id,targetSize:Ko,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function od(or,Hr){return gl(Em(or,(Oa,Qs)=>{var Ko;Qs=O1(Qs);const ss=Qs.flags&3145728?OI(Qs,Hr):o2(Qs,Hr),ll=ss&&Vo(ss)||((Ko=yx(Qs,Hr))==null?void 0:Ko.type)||Ui;return ur(Oa,ll)},void 0)||Zn)}function Jf(or,Hr,fo){var Oa;if(!Rte(Hr)||!Wt&&ji(Hr)&4096)return!1;const Qs=!!(ji(or)&2048);if((b===Jc||b===au)&&(pK(Ev,Hr)||!Qs&&rM(Hr)))return!1;let Ko=Hr,ss;Hr.flags&1048576&&(Ko=Xrt(or,Hr,Gi)||Krt(Hr),ss=Ko.flags&1048576?Ko.types:[Ko]);for(const ll of Vp(or))if(dm(ll,or.symbol)&&!Cet(or,ll)){if(!kNe(Ko,ll.escapedName,Qs)){if(fo){const of=D0(Ko,Rte);if(!C)return ce.fail();if(iD(C)||Y1(C)||Y1(C.parent)){ll.valueDeclaration&&Pb(ll.valueDeclaration)&&ns(C)===ns(ll.valueDeclaration.name)&&(C=ll.valueDeclaration.name);const C_=Cl(ll),nd=Btt(C_,of),kd=nd?Cl(nd):void 0;kd?nl(w.Property_0_does_not_exist_on_type_1_Did_you_mean_2,C_,oa(of),kd):nl(w.Property_0_does_not_exist_on_type_1,C_,oa(of))}else{const C_=((Oa=or.symbol)==null?void 0:Oa.declarations)&&pp(or.symbol.declarations);let nd;if(ll.valueDeclaration&&Kr(ll.valueDeclaration,kd=>kd===C_)&&ns(C_)===ns(C)){const kd=ll.valueDeclaration;ce.assertNode(kd,KD);const lu=kd.name;C=lu,An(lu)&&(nd=lze(lu,of))}nd!==void 0?nl(w.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Cl(ll),oa(of),nd):nl(w.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Cl(ll),oa(of))}}return!0}if(ss&&!Gi(Vo(ll),od(ss,ll.escapedName),3,fo))return fo&&hs(w.Types_of_property_0_are_incompatible,Cl(ll)),!0}return!1}function dm(or,Hr){return or.valueDeclaration&&Hr.valueDeclaration&&or.valueDeclaration.parent===Hr.valueDeclaration}function Zg(or,Hr,fo,Oa){if(or.flags&1048576)return b===au?On(or,Hr,fo&&!(or.flags&402784252),Oa):bs(or,Hr,fo&&!(or.flags&402784252),Oa);if(Hr.flags&1048576)return Lp(Aw(or),Hr,fo&&!(or.flags&402784252)&&!(Hr.flags&402784252));if(Hr.flags&2097152)return $T(or,Hr,fo,2);if(b===au&&Hr.flags&402784252){const Qs=Ol(or.types,Ko=>Ko.flags&465829888?Co(Ko)||co:Ko);if(Qs!==or.types){if(or=Dd(Qs),or.flags&131072)return 0;if(!(or.flags&2097152))return Gi(or,Hr,1,!1)||Gi(Hr,or,1,!1)}}return On(or,Hr,!1,1)}function Pv(or,Hr){let fo=-1;const Oa=or.types;for(const Qs of Oa){const Ko=Lp(Qs,Hr,!1);if(!Ko)return 0;fo&=Ko}return fo}function Lp(or,Hr,fo){const Oa=Hr.types;if(Hr.flags&1048576){if(W2(Oa,or))return-1;if(b!==au&&ji(Hr)&32768&&!(or.flags&1024)&&(or.flags&2688||(b===gc||b===Wl)&&or.flags&256)){const Ko=or===or.regularType?or.freshType:or.regularType,ss=or.flags&128?xe:or.flags&256?an:or.flags&2048?Un:void 0;return ss&&W2(Oa,ss)||Ko&&W2(Oa,Ko)?-1:0}const Qs=ZPe(Hr,or);if(Qs){const Ko=Gi(or,Qs,2,!1);if(Ko)return Ko}}for(const Qs of Oa){const Ko=Gi(or,Qs,2,!1);if(Ko)return Ko}if(fo){const Qs=ket(or,Hr,Gi);Qs&&Gi(or,Qs,2,!0)}return 0}function $T(or,Hr,fo,Oa){let Qs=-1;const Ko=Hr.types;for(const ss of Ko){const ll=Gi(or,ss,2,fo,void 0,Oa);if(!ll)return 0;Qs&=ll}return Qs}function On(or,Hr,fo,Oa){const Qs=or.types;if(or.flags&1048576&&W2(Qs,Hr))return-1;const Ko=Qs.length;for(let ss=0;ss=ss.types.length&&Ko.length%ss.types.length===0){const nd=Gi(of,ss.types[ll%ss.types.length],3,!1,void 0,Oa);if(nd){Qs&=nd;continue}}const C_=Gi(of,Hr,1,fo,void 0,Oa);if(!C_)return 0;Qs&=C_}return Qs}function as(or=Zn,Hr=Zn,fo=Zn,Oa,Qs){if(or.length!==Hr.length&&b===qn)return 0;const Ko=or.length<=Hr.length?or.length:Hr.length;let ss=-1;for(let ll=0;ll(O_|=im?16:8,lu(im)));let rp;return aa===3?((Ko=tu)==null||Ko.instant(tu.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:or.id,sourceIdStack:dn.map(im=>im.id),targetId:Hr.id,targetIdStack:yn.map(im=>im.id),depth:bi,targetDepth:Wo}),rp=3):((ss=tu)==null||ss.push(tu.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:or.id,targetId:Hr.id}),rp=Bc(or,Hr,fo,Oa),(ll=tu)==null||ll.pop()),jg&&(jg=lu),Qs&1&&bi--,Qs&2&&Wo--,aa=kd,rp?(rp===-1||bi===0&&Wo===0)&&Ug(rp===-1||rp===3):(b.set(of,(fo?4:0)|2|O_),Ug(!1)),rp;function Ug(im){for(let k0=nd;k0ll!==or)&&(Ko=Gi(ss,Hr,1,!1,void 0,Oa))}Ko&&!(Oa&2)&&Hr.flags&2097152&&!nM(Hr)&&or.flags&2621440?(Ko&=Bo(or,Hr,fo,void 0,!1,0),Ko&&zu(or)&&ji(or)&8192&&(Ko&=hb(or,Hr,!1,fo,0))):Ko&&X0e(Hr)&&!GI(Hr)&&or.flags&2097152&&O1(or).flags&3670016&&!gt(or.types,ss=>ss===Hr||!!(ji(ss)&262144))&&(Ko&=Bo(or,Hr,fo,void 0,!0,Oa))}return Ko&&Pa(Qs),Ko}function Rf(or,Hr,fo,Oa,Qs){let Ko,ss,ll=!1,of=or.flags;const C_=Hr.flags;if(b===qn){if(of&3145728){let lu=Pv(or,Hr);return lu&&(lu&=Pv(Hr,or)),lu}if(of&4194304)return Gi(or.type,Hr.type,3,!1);if(of&8388608&&(Ko=Gi(or.objectType,Hr.objectType,3,!1))&&(Ko&=Gi(or.indexType,Hr.indexType,3,!1))||of&16777216&&or.root.isDistributive===Hr.root.isDistributive&&(Ko=Gi(or.checkType,Hr.checkType,3,!1))&&(Ko&=Gi(or.extendsType,Hr.extendsType,3,!1))&&(Ko&=Gi(QP(or),QP(Hr),3,!1))&&(Ko&=Gi(X6(or),X6(Hr),3,!1))||of&33554432&&(Ko=Gi(or.baseType,Hr.baseType,3,!1))&&(Ko&=Gi(or.constraint,Hr.constraint,3,!1)))return Ko;if(!(of&524288))return 0}else if(of&3145728||C_&3145728){if(Ko=Zg(or,Hr,fo,Oa))return Ko;if(!(of&465829888||of&524288&&C_&1048576||of&2097152&&C_&467402752))return 0}if(of&17301504&&or.aliasSymbol&&or.aliasTypeArguments&&or.aliasSymbol===Hr.aliasSymbol&&!(WPe(or)||WPe(Hr))){const lu=Pet(or.aliasSymbol);if(lu===Zn)return 1;const O_=Mt(or.aliasSymbol).typeParameters,rp=EC(O_),Ug=FI(or.aliasTypeArguments,O_,rp,Rs(or.aliasSymbol.valueDeclaration)),im=FI(Hr.aliasTypeArguments,O_,rp,Rs(or.aliasSymbol.valueDeclaration)),k0=kd(Ug,im,lu,Oa);if(k0!==void 0)return k0}if(cBe(or)&&!or.target.readonly&&(Ko=Gi(Tm(or)[0],Hr,1))||cBe(Hr)&&(Hr.target.readonly||ube(Co(or)||or))&&(Ko=Gi(or,Tm(Hr)[0],2)))return Ko;if(C_&262144){if(ji(or)&32&&!or.declaration.nameType&&Gi(YP(Hr),mT(or),3)&&!(jS(or)&4)){const lu=SC(or),O_=s2(Hr,L1(or));if(Ko=Gi(lu,O_,3,fo))return Ko}if(b===au&&of&262144){let lu=Wi(or);if(lu&&MI(or))for(;lu&&dM(lu,O_=>!!(O_.flags&262144));){if(Ko=Gi(lu,Hr,1,!1))return Ko;lu=Wi(lu)}return 0}}else if(C_&4194304){const lu=Hr.type;if(of&4194304&&(Ko=Gi(lu,or.type,3,!1)))return Ko;if(_p(lu)){if(Ko=Gi(or,zk(lu),2,fo))return Ko}else{const O_=ql(lu);if(O_){if(Gi(or,YP(O_,Hr.indexFlags|4),2,fo)===-1)return-1}else if(by(lu)){const rp=Vg(lu),Ug=mT(lu);let im;if(rp&&L4(lu)){const k0=O1(c0(lu)),YI=[];KR(k0,8576,!1,Yk=>void YI.push(Nf(rp,DV(lu.mapper,L1(lu),Yk)))),im=gl([...YI,rp])}else im=rp||Ug;if(Gi(or,im,2,fo)===-1)return-1}}}else if(C_&8388608){if(of&8388608){if((Ko=Gi(or.objectType,Hr.objectType,3,fo))&&(Ko&=Gi(or.indexType,Hr.indexType,3,fo)),Ko)return Ko;fo&&(ss=Se)}if(b===Jc||b===au){const lu=Hr.objectType,O_=Hr.indexType,rp=Co(lu)||lu,Ug=Co(O_)||O_;if(!nM(rp)&&!HS(Ug)){const im=4|(rp!==lu?2:0),k0=Wb(rp,Ug,im);if(k0){if(fo&&ss&&Pa(Qs),Ko=Gi(or,k0,2,fo,void 0,Oa))return Ko;fo&&ss&&Se&&(Se=nd([ss])<=nd([Se])?ss:Se)}}}fo&&(ss=void 0)}else if(by(Hr)&&b!==qn){const lu=!!Hr.declaration.nameType,O_=SC(Hr),rp=jS(Hr);if(!(rp&8)){if(!lu&&O_.flags&8388608&&O_.objectType===or&&O_.indexType===L1(Hr))return-1;if(!by(or)){const Ug=lu?Vg(Hr):mT(Hr),im=YP(or,2),k0=rp&4,YI=k0?jp(Ug,im):void 0;if(k0?!(YI.flags&131072):Gi(Ug,im,3)){const Yk=SC(Hr),A5=L1(Hr),GK=f5(Yk,-98305);if(!lu&&GK.flags&8388608&&GK.indexType===A5){if(Ko=Gi(or,GK.objectType,2,fo))return Ko}else{const HV=lu?YI||Ug:YI?Dd([YI,A5]):A5,yM=s2(or,HV);if(Ko=Gi(yM,Yk,3,fo))return Ko}}ss=Se,Pa(Qs)}}}else if(C_&16777216){if(SD(Hr,yn,Wo,10))return 3;const lu=Hr;if(!lu.root.inferTypeParameters&&!Mue(lu.root)&&!(or.flags&16777216&&or.root===lu.root)){const O_=!Mp(wPe(lu.checkType),wPe(lu.extendsType)),rp=!O_&&Mp(wB(lu.checkType),wB(lu.extendsType));if((Ko=O_?-1:Gi(or,QP(lu),2,!1,void 0,Oa))&&(Ko&=rp?-1:Gi(or,X6(lu),2,!1,void 0,Oa),Ko))return Ko}}else if(C_&134217728){if(of&134217728){if(b===au)return vBe(or,Hr)?0:-1;Nf(or,zv)}if(hbe(or,Hr))return-1}else if(Hr.flags&268435456&&!(or.flags&268435456)&&xte(or,Hr))return-1;if(of&8650752){if(!(of&8388608&&C_&8388608)){const lu=Er(or)||co;if(Ko=Gi(lu,Hr,1,!1,void 0,Oa))return Ko;if(Ko=Gi(M1(lu,or),Hr,1,fo&&lu!==co&&!(C_&of&262144),void 0,Oa))return Ko;if(KF(or)){const O_=Er(or.indexType);if(O_&&(Ko=Gi(s2(or.objectType,O_),Hr,1,fo)))return Ko}}}else if(of&4194304){if(Ko=Gi(x_,Hr,1,fo))return Ko}else if(of&134217728&&!(C_&524288)){if(!(C_&134217728)){const lu=Co(or);if(lu&&lu!==or&&(Ko=Gi(lu,Hr,1,fo)))return Ko}}else if(of&268435456)if(C_&268435456){if(or.symbol!==Hr.symbol)return 0;if(Ko=Gi(or.type,Hr.type,3,fo))return Ko}else{const lu=Co(or);if(lu&&(Ko=Gi(lu,Hr,1,fo)))return Ko}else if(of&16777216){if(SD(or,dn,bi,10))return 3;if(C_&16777216){const O_=or.root.inferTypeParameters;let rp=or.extendsType,Ug;if(O_){const im=_K(O_,void 0,0,kC);uM(im.inferences,Hr.extendsType,rp,1536),rp=Nf(rp,im.mapper),Ug=im.mapper}if(eN(rp,Hr.extendsType)&&(Gi(or.checkType,Hr.checkType,3)||Gi(Hr.checkType,or.checkType,3))&&((Ko=Gi(Nf(QP(or),Ug),QP(Hr),3,fo))&&(Ko&=Gi(X6(or),X6(Hr),3,fo)),Ko))return Ko}else{const O_=MI(or)?CE(or):void 0;if(O_&&(Ko=Gi(O_,Hr,1,fo)))return Ko}const lu=Z_(or);if(lu&&(Ko=Gi(lu,Hr,1,fo)))return Ko}else{if(b!==gc&&b!==Wl&&Xq(Hr)&&rM(or))return-1;if(by(Hr))return by(or)&&(Ko=Mu(or,Hr,fo))?Ko:0;const lu=!!(of&402784252);if(b!==qn)or=O1(or),of=or.flags;else if(by(or))return 0;if(ji(or)&4&&ji(Hr)&4&&or.target===Hr.target&&!_p(or)&&!(WPe(or)||WPe(Hr))){if(kV(or))return-1;const O_=eBe(or.target);if(O_===Zn)return 1;const rp=kd(Tm(or),Tm(Hr),O_,Oa);if(rp!==void 0)return rp}else{if(Tte(Hr)?iA(or,GI):UA(Hr)&&iA(or,O_=>_p(O_)&&!O_.target.readonly))return b!==qn?Gi(pb(or,an)||gn,pb(Hr,an)||gn,3,fo):0;if(u0(or)&&_p(Hr)&&!u0(Hr)){const O_=DE(or);if(O_!==or)return Gi(O_,Hr,1,fo)}else if((b===gc||b===Wl)&&rM(Hr)&&ji(Hr)&8192&&!rM(or))return 0}if(of&2621440&&C_&524288){const O_=fo&&Se===Qs.errorInfo&&!lu;if(Ko=Bo(or,Hr,O_,void 0,!1,Oa),Ko&&(Ko&=rf(or,Hr,0,O_,Oa),Ko&&(Ko&=rf(or,Hr,1,O_,Oa),Ko&&(Ko&=hb(or,Hr,lu,O_,Oa)))),ll&&Ko)Se=ss||Se||Qs.errorInfo;else if(Ko)return Ko}if(of&2621440&&C_&1048576){const O_=f5(Hr,36175872);if(O_.flags&1048576){const rp=xc(or,O_);if(rp)return rp}}}return 0;function nd(lu){return lu?Em(lu,(O_,rp)=>O_+1+nd(rp.next),0):0}function kd(lu,O_,rp,Ug){if(Ko=as(lu,O_,rp,fo,Ug))return Ko;if(gt(rp,k0=>!!(k0&24))){ss=void 0,Pa(Qs);return}const im=O_&&Net(O_,rp);if(ll=!im,rp!==Zn&&!im){if(ll&&!(fo&>(rp,k0=>(k0&7)===0)))return 0;ss=Se,Pa(Qs)}}}function Mu(or,Hr,fo){if(b===au||(b===qn?jS(or)===jS(Hr):pO(or)<=pO(Hr))){let Qs;const Ko=mT(Hr),ss=Nf(mT(or),pO(or)<0?m_:zv);if(Qs=Gi(Ko,ss,3,fo)){const ll=IE([L1(or)],[L1(Hr)]);if(Nf(Vg(or),ll)===Nf(Vg(Hr),ll))return Qs&Gi(Nf(SC(or),ll),SC(Hr),3,fo)}}return 0}function xc(or,Hr){var fo;const Oa=Vp(or),Qs=vbe(Oa,Hr);if(!Qs)return 0;let Ko=1;for(const kd of Qs)if(Ko*=wBe(WA(kd)),Ko>25)return(fo=tu)==null||fo.instant(tu.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:or.id,targetId:Hr.id,numCombinations:Ko}),0;const ss=new Array(Qs.length),ll=new Set;for(let kd=0;kdkd[rp],!1,0,Ye||b===au))continue e}Dy(C_,O_,_1),lu=!0}if(!lu)return 0}let nd=-1;for(const kd of C_)if(nd&=Bo(or,kd,!1,ll,!1,0),nd&&(nd&=rf(or,kd,0,!1,0),nd&&(nd&=rf(or,kd,1,!1,0),nd&&!(_p(or)&&_p(kd))&&(nd&=hb(or,kd,!1,!1,0)))),!nd)return nd;return nd}function Dr(or,Hr){if(!Hr||or.length===0)return or;let fo;for(let Oa=0;Oa5?nl(w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,oa(or),oa(Hr),Vn(Ko.slice(0,4),ss=>Cl(ss)).join(", "),Ko.length-4):nl(w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,oa(or),oa(Hr),Vn(Ko,ss=>Cl(ss)).join(", ")),Qs&&Se&&Ba++)}function Bo(or,Hr,fo,Oa,Qs,Ko){if(b===qn)return ja(or,Hr,Oa);let ss=-1;if(_p(Hr)){if(GI(or)){if(!Hr.target.readonly&&(Tte(or)||_p(or)&&or.target.readonly))return 0;const kd=Fo(or),lu=Fo(Hr),O_=_p(or)?or.target.combinedFlags&4:4,rp=Hr.target.combinedFlags&4,Ug=_p(or)?or.target.minLength:0,im=Hr.target.minLength;if(!O_&&kd=Yk?lu-1-Math.min(P1e,A5):yM,ai=Hr.target.elementFlags[G2];if(ai&8&&!(LO&8))return fo&&nl(w.Source_provides_no_match_for_variadic_element_at_position_0_in_target,G2),0;if(LO&8&&!(ai&12))return fo&&nl(w.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,yM,G2),0;if(ai&1&&!(LO&1))return fo&&nl(w.Source_provides_no_match_for_required_element_at_position_0_in_target,G2),0;if(HV&&((LO&12||ai&12)&&(HV=!1),HV&&(Oa!=null&&Oa.has(""+yM))))continue;const Vc=l5(k0[yM],!!(LO&ai&2)),Gl=YI[G2],jl=LO&8&&ai&4?W1(Gl):l5(Gl,!!(ai&2)),Yl=Gi(Vc,jl,3,fo,void 0,Ko);if(!Yl)return fo&&(lu>1||kd>1)&&(GK&&yM>=Yk&&P1e>=A5&&Yk!==kd-A5-1?hs(w.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Yk,kd-A5-1,G2):hs(w.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,yM,G2)),0;ss&=Yl}return ss}if(Hr.target.combinedFlags&12)return 0}const ll=(b===gc||b===Wl)&&!zu(or)&&!kV(or)&&!_p(or),of=u5(or,Hr,ll,!1);if(of)return fo&&zl(or,Hr)&&ao(or,Hr,of,ll),0;if(zu(Hr)){for(const kd of Dr(Vp(or),Oa))if(!o2(Hr,kd.escapedName)&&!(Vo(kd).flags&32768))return fo&&nl(w.Property_0_does_not_exist_on_type_1,Cl(kd),oa(Hr)),0}const C_=Vp(Hr),nd=_p(or)&&_p(Hr);for(const kd of Dr(C_,Oa)){const lu=kd.escapedName;if(!(kd.flags&4194304)&&(!nd||FT(lu)||lu==="length")&&(!Qs||kd.flags&16777216)){const O_=Fn(or,lu);if(O_&&O_!==kd){const rp=No(or,Hr,O_,kd,WA,fo,Ko,b===au);if(!rp)return 0;ss&=rp}}}return ss}function ja(or,Hr,fo){if(!(or.flags&524288&&Hr.flags&524288))return 0;const Oa=Dr(O2(or),fo),Qs=Dr(O2(Hr),fo);if(Oa.length!==Qs.length)return 0;let Ko=-1;for(const ss of Oa){const ll=o2(Hr,ss.escapedName);if(!ll)return 0;const of=rBe(ss,ll,Gi);if(!of)return 0;Ko&=of}return Ko}function rf(or,Hr,fo,Oa,Qs){var Ko,ss;if(b===qn)return Ll(or,Hr,fo);if(Hr===Mg||or===Mg)return-1;const ll=or.symbol&&JI(or.symbol.valueDeclaration),of=Hr.symbol&&JI(Hr.symbol.valueDeclaration),C_=Ti(or,ll&&fo===1?0:fo),nd=Ti(Hr,of&&fo===1?0:fo);if(fo===1&&C_.length&&nd.length){const Ug=!!(C_[0].flags&4),im=!!(nd[0].flags&4);if(Ug&&!im)return Oa&&nl(w.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!yg(C_[0],nd[0],Oa))return 0}let kd=-1;const lu=fo===1?Jo:td,O_=ji(or),rp=ji(Hr);if(O_&64&&rp&64&&or.symbol===Hr.symbol||O_&4&&rp&4&&or.target===Hr.target)for(let Ug=0;Ugo0(Yk,void 0,262144,fo);return nl(w.Type_0_is_not_assignable_to_type_1,YI(im),YI(k0)),nl(w.Types_of_construct_signatures_are_incompatible),kd}}else e:for(const Ug of nd){const im=Ga();let k0=Oa;for(const YI of C_){const Yk=rc(YI,Ug,!0,k0,Qs,lu(YI,Ug));if(Yk){kd&=Yk,Pa(im);continue e}k0=!1}return k0&&nl(w.Type_0_provides_no_match_for_the_signature_1,oa(or),o0(Ug,void 0,void 0,fo)),0}return kd}function zl(or,Hr){const fo=Ri(or,0),Oa=Ri(or,1),Qs=O2(or);return(fo.length||Oa.length)&&!Qs.length?!!(Ti(Hr,0).length&&fo.length||Ti(Hr,1).length&&Oa.length):!0}function td(or,Hr){return or.parameters.length===0&&Hr.parameters.length===0?(fo,Oa)=>hs(w.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,oa(fo),oa(Oa)):(fo,Oa)=>hs(w.Call_signature_return_types_0_and_1_are_incompatible,oa(fo),oa(Oa))}function Jo(or,Hr){return or.parameters.length===0&&Hr.parameters.length===0?(fo,Oa)=>hs(w.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,oa(fo),oa(Oa)):(fo,Oa)=>hs(w.Construct_signature_return_types_0_and_1_are_incompatible,oa(fo),oa(Oa))}function rc(or,Hr,fo,Oa,Qs,Ko){const ss=b===gc?16:b===Wl?24:0;return qWe(fo?VS(or):or,fo?VS(Hr):Hr,ss,Oa,nl,Ko,ll,zv);function ll(of,C_,nd){return Gi(of,C_,3,nd,void 0,Qs)}}function Ll(or,Hr,fo){const Oa=Ti(or,fo),Qs=Ti(Hr,fo);if(Oa.length!==Qs.length)return 0;let Ko=-1;for(let ss=0;ssof.keyType===xe);let ll=-1;for(const of of Ko){const C_=b!==Wl&&!fo&&ss&&of.type.flags&1?-1:by(or)&&ss?Gi(SC(or),of.type,3,Oa):rm(or,of,Oa,Qs);if(!C_)return 0;ll&=C_}return ll}function rm(or,Hr,fo,Oa){const Qs=qP(or,Hr.keyType);return Qs?Od(Qs,Hr,fo,Oa):!(Oa&1)&&(b!==Wl||ji(or)&8192)&&Ete(or)?Sf(or,Hr,fo,Oa):(fo&&nl(w.Index_signature_for_type_0_is_missing_in_type_1,oa(Hr.keyType),oa(or)),0)}function I0(or,Hr){const fo=T_(or),Oa=T_(Hr);if(fo.length!==Oa.length)return 0;for(const Qs of Oa){const Ko=Cd(or,Qs.keyType);if(!(Ko&&Gi(Ko.type,Qs.type,3)&&Ko.isReadonly===Qs.isReadonly))return 0}return-1}function yg(or,Hr,fo){if(!or.declaration||!Hr.declaration)return!0;const Oa=ZC(or.declaration,24),Qs=ZC(Hr.declaration,24);return Qs===8||Qs===16&&Oa!==8||Qs!==16&&!Oa?!0:(fo&&nl(w.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pD(Oa),pD(Qs)),!1)}}function FPe(a){if(a.flags&16)return!1;if(a.flags&3145728)return!!Ot(a.types,FPe);if(a.flags&465829888){const _=Er(a);if(_&&_!==a)return FPe(_)}return rA(a)||!!(a.flags&134217728)||!!(a.flags&268435456)}function Iet(a,_){return _p(a)&&_p(_)?Zn:Vp(_).filter(b=>Jue(wm(a,b.escapedName),Vo(b)))}function Jue(a,_){return!!a&&!!_&&cy(a,32768)&&!!Ste(_)}function YWe(a){return Vp(a).filter(_=>Ste(Vo(_)))}function ket(a,_,b=jWe){return Xrt(a,_,b)||Jrt(a,_)||p0t(a,_)||$rt(a,_)||qrt(a,_)}function QWe(a,_,b){const C=a.types,M=C.map(Z=>Z.flags&402784252?0:-1);for(const[Z,me]of _){let Se=!1;for(let Je=0;JeM[me]),0):a;return z.flags&131072?a:z}function ZWe(a){if(a.flags&524288){const _=K0(a);return _.callSignatures.length===0&&_.constructSignatures.length===0&&_.indexInfos.length===0&&_.properties.length>0&&jr(_.properties,b=>!!(b.flags&16777216))}return a.flags&2097152?jr(a.types,ZWe):!1}function Sgt(a,_,b){for(const C of Vp(a))if(kNe(_,C.escapedName,b))return!0;return!1}function eBe(a){return a===fi||a===ya||a.objectFlags&8?pt:tBe(a.symbol,a.typeParameters)}function Pet(a){return tBe(a,Mt(a).typeParameters)}function tBe(a,_=Zn){var b,C;const M=Mt(a);if(!M.variances){(b=tu)==null||b.push(tu.Phase.CheckTypes,"getVariancesWorker",{arity:_.length,id:Gh(Rm(a))});const z=Yt;Yt||(Yt=!0,It=Ze.length),M.variances=Zn;const Z=[];for(const me of _){const Se=vp(me);let Je=Se&65536?Se&32768?0:1:Se&32768?2:void 0;if(Je===void 0){let vt=!1,Pt=!1;const dn=jg;jg=bi=>bi?Pt=!0:vt=!0;const yn=abe(a,me,gy),hr=abe(a,me,fS);Je=(Mp(hr,yn)?1:0)|(Mp(yn,hr)?2:0),Je===3&&Mp(abe(a,me,GT),yn)&&(Je=4),jg=dn,(vt||Pt)&&(vt&&(Je|=8),Pt&&(Je|=16))}Z.push(Je)}z||(Yt=!1,It=0),M.variances=Z,(C=tu)==null||C.pop({variances:Z.map(ce.formatVariance)})}return M.variances}function abe(a,_,b){const C=Q6(_,b),M=Rm(a);if(je(M))return M;const z=a.flags&524288?Mc(a,Sw(Mt(a).typeParameters,C)):jA(M,Sw(M.typeParameters,C));return li.add(Gh(z)),z}function WPe(a){return li.has(Gh(a))}function vp(a){var _;return Em((_=a.symbol)==null?void 0:_.declarations,(b,C)=>b|tS(C),0)&100352}function Net(a,_){for(let b=0;b<_.length;b++)if((_[b]&7)===1&&a[b].flags&16384)return!0;return!1}function sbe(a){return a.flags&262144&&!Wi(a)}function Egt(a){return!!(ji(a)&4)&&!a.node}function cbe(a){return Egt(a)&>(Tm(a),_=>!!(_.flags&262144)||cbe(_))}function nBe(a,_,b,C){const M=[];let z="";const Z=Se(a,0),me=Se(_,0);return`${z}${Z},${me}${b}`;function Se(Je,vt=0){let Pt=""+Je.target.id;for(const dn of Tm(Je)){if(dn.flags&262144){if(C||sbe(dn)){let yn=M.indexOf(dn);yn<0&&(yn=M.length,M.push(dn)),Pt+="="+yn;continue}z="*"}else if(vt<4&&cbe(dn)){Pt+="<"+Se(dn,vt+1)+">";continue}Pt+="-"+dn.id}return Pt}}function BPe(a,_,b,C,M){if(C===qn&&a.id>_.id){const Z=a;a=_,_=Z}const z=b?":"+b:"";return cbe(a)&&cbe(_)?nBe(a,_,z,M):`${a.id},${_.id}${z}`}function lbe(a,_){if(I_(a)&6){for(const b of a.links.containingType.types){const C=Fn(b,a.escapedName),M=C&&lbe(C,_);if(M)return M}return}return _(a)}function RB(a){return a.parent&&a.parent.flags&32?Rm(Uf(a)):void 0}function zPe(a){const _=RB(a),b=_&&Gp(_)[0];return b&&wm(b,a.escapedName)}function wet(a,_){return lbe(a,b=>{const C=RB(b);return C?wI(C,_):!1})}function xgt(a,_){return!lbe(_,b=>Vy(b)&16?!wet(a,RB(b)):!1)}function Ret(a,_,b){return lbe(_,C=>Vy(C,b)&16?!wI(a,RB(C)):!1)?void 0:a}function SD(a,_,b,C=3){if(b>=C){if(a.flags&2097152)return gt(a.types,me=>SD(me,_,b,C));const M=c5(a);let z=0,Z=0;for(let me=0;mec5(Je)===M):c5(Se)===M){if(Se.id>=Z&&(z++,z>=C))return!0;Z=Se.id}}}return!1}function c5(a){if(a.flags&524288&&!XPe(a)){if(ji(a)&4&&a.node)return a.node;if(a.symbol&&!(ji(a)&16&&a.symbol.flags&32))return a.symbol;if(_p(a))return a.target}if(a.flags&262144)return a.symbol;if(a.flags&8388608){do a=a.objectType;while(a.flags&8388608);return a}return a.flags&16777216?a.root:a}function Met(a,_){return rBe(a,_,Vue)!==0}function rBe(a,_,b){if(a===_)return-1;const C=Vy(a)&24,M=Vy(_)&24;if(C!==M)return 0;if(C){if(OK(a)!==OK(_))return 0}else if((a.flags&16777216)!==(_.flags&16777216))return 0;return KI(a)!==KI(_)?0:b(Vo(a),Vo(_))}function Let(a,_,b){const C=xx(a),M=xx(_),z=qI(a),Z=qI(_),me=Hk(a),Se=Hk(_);return!!(C===M&&z===Z&&me===Se||b&&z<=Z)}function CC(a,_,b,C,M,z){if(a===_)return-1;if(!Let(a,_,b)||Nt(a.typeParameters)!==Nt(_.typeParameters))return 0;if(_.typeParameters){const Se=IE(a.typeParameters,_.typeParameters);for(let Je=0;Je<_.typeParameters.length;Je++){const vt=a.typeParameters[Je],Pt=_.typeParameters[Je];if(!(vt===Pt||z(Nf(TV(vt),Se)||co,TV(Pt)||co)&&z(Nf(LI(vt),Se)||co,LI(Pt)||co)))return 0}a=cK(a,Se,!0)}let Z=-1;if(!C){const Se=xC(a);if(Se){const Je=xC(_);if(Je){const vt=z(Se,Je);if(!vt)return 0;Z&=vt}}}const me=xx(_);for(let Se=0;Se_|(b.flags&1048576?Fet(b.types):b.flags),0)}function Cgt(a){if(a.length===1)return a[0];const _=Ye?Ol(a,C=>D0(C,M=>!(M.flags&98304))):a,b=Agt(_)?gl(_):Em(_,(C,M)=>K4(C,M)?M:C);return _===a?b:oM(b,Fet(a)&98304)}function MB(a){return Em(a,(_,b)=>K4(b,_)?b:_)}function UA(a){return!!(ji(a)&4)&&(a.target===fi||a.target===ya)}function Tte(a){return!!(ji(a)&4)&&a.target===ya}function GI(a){return UA(a)||_p(a)}function ube(a){return UA(a)&&!Tte(a)||_p(a)&&!a.target.readonly}function iBe(a){return UA(a)?Tm(a)[0]:void 0}function iM(a){return UA(a)||!(a.flags&98304)&&Mp(a,Si)}function oBe(a){if(!(ji(a)&4)||!(ji(a.target)&3))return;if(ji(a)&33554432)return ji(a)&67108864?a.cachedEquivalentBaseType:void 0;a.objectFlags|=33554432;const _=a.target;if(ji(_)&1){const M=ac(_);if(M&&M.expression.kind!==80&&M.expression.kind!==211)return}const b=Gp(_);if(b.length!==1||BA(a.symbol).size)return;let C=Nt(_.typeParameters)?Nf(b[0],IE(_.typeParameters,Tm(a).slice(0,_.typeParameters.length))):b[0];return Nt(Tm(a))>Nt(_.typeParameters)&&(C=M1(C,yl(Tm(a)))),a.objectFlags|=67108864,a.cachedEquivalentBaseType=C}function Wet(a){return Ye?a===qd:a===xu}function kV(a){const _=iBe(a);return!!_&&Wet(_)}function LB(a){let _;return _p(a)||!!Fn(a,"0")||iM(a)&&!!(_=wm(a,"length"))&&iA(_,b=>!!(b.flags&256))}function $ue(a){return iM(a)||LB(a)}function Bet(a,_){const b=wm(a,""+_);if(b)return b;if(iA(a,_p))return lBe(a,_,Le.noUncheckedIndexedAccess?Ui:void 0)}function aBe(a){return!(a.flags&240544)}function rA(a){return!!(a.flags&109472)}function PV(a){const _=DE(a);return _.flags&2097152?gt(_.types,rA):rA(_)}function uK(a){return a.flags&2097152&&lr(a.types,rA)||a}function Ew(a){return a.flags&16?!0:a.flags&1048576?a.flags&1024?!0:jr(a.types,rA):rA(a)}function Tx(a){return a.flags&1056?N4(a):a.flags&402653312?xe:a.flags&256?an:a.flags&2048?Un:a.flags&512?Ca:a.flags&1048576?que(a):a}function que(a){const _=`B${Gh(a)}`;return na(_)??_a(_,bh(a,Tx))}function tN(a){return a.flags&402653312?xe:a.flags&288?an:a.flags&2048?Un:a.flags&512?Ca:a.flags&1048576?bh(a,tN):a}function TO(a){return a.flags&1056&&jk(a)?N4(a):a.flags&128&&jk(a)?xe:a.flags&256&&jk(a)?an:a.flags&2048&&jk(a)?Un:a.flags&512&&jk(a)?Ca:a.flags&1048576?bh(a,TO):a}function zet(a){return a.flags&8192?Qa:a.flags&1048576?bh(a,zet):a}function sBe(a,_){return swe(a,_)||(a=zet(TO(a))),B1(a)}function Dgt(a,_,b){if(a&&rA(a)){const C=_?b?Mfe(_):_:void 0;a=sBe(a,C)}return a}function GPe(a,_,b,C){if(a&&rA(a)){const M=_?MO(b,_,C):void 0;a=sBe(a,M)}return a}function _p(a){return!!(ji(a)&4&&a.target.objectFlags&8)}function u0(a){return _p(a)&&!!(a.target.combinedFlags&8)}function cBe(a){return u0(a)&&a.target.elementFlags.length===1}function xw(a){return jI(a,a.target.fixedLength)}function lBe(a,_,b){return bh(a,C=>{const M=C,z=xw(M);return z?b&&_>=CWe(M.target)?gl([z,b]):z:Ui})}function uBe(a){const _=xw(a);return _&&W1(_)}function jI(a,_,b=0,C=!1,M=!1){const z=Fo(a)-b;if(_(b&12)===(_.target.elementFlags[C]&12))}function fBe({value:a}){return a.base10Value==="0"}function _Be(a){return D0(a,_=>!!(bS(_)&4194304))}function dBe(a){return bh(a,SO)}function SO(a){return a.flags&4?ct:a.flags&8?Ct:a.flags&64?Lt:a===mi||a===rr||a.flags&114691||a.flags&128&&a.value===""||a.flags&256&&a.value===0||a.flags&2048&&fBe(a)?a:vs}function oM(a,_){const b=_&~a.flags&98304;return b===0?a:gl(b===32768?[a,Ui]:b===65536?[a,$e]:[a,Ui,$e])}function eL(a,_=!1){ce.assert(Ye);const b=_?Re:Ui;return a===b||a.flags&1048576&&a.types[0]===b?a:gl([a,b])}function Get(a){return Do||(Do=t5("NonNullable",524288,void 0)||Ir),Do!==Ir?Mc(Do,[a]):Dd([a,Yu])}function aM(a){return Ye?OB(a,2097152):a}function jet(a){return Ye?gl([a,wt]):a}function jPe(a){return Ye?iNe(a,wt):a}function fbe(a,_,b){return b?M8(_)?eL(a):jet(a):a}function Kue(a,_){return zU(_)?aM(a):ky(_)?jPe(a):a}function l5(a,_){return on&&_?iNe(a,We):a}function Ste(a){return a===We||!!(a.flags&1048576)&&a.types[0]===We}function EO(a){return on?iNe(a,We):JA(a,524288)}function fK(a,_){return(a.flags&524)!==0&&(_.flags&28)!==0}function Ete(a){const _=ji(a);return a.flags&2097152?jr(a.types,Ete):!!(a.symbol&&a.symbol.flags&7040&&!(a.symbol.flags&32)&&!BK(a))||!!(_&4194304)||!!(_&1024&&Ete(a.source))}function xO(a,_){const b=Ge(a.flags,a.escapedName,I_(a)&8);b.declarations=a.declarations,b.parent=a.parent,b.links.type=_,b.links.target=a,a.valueDeclaration&&(b.valueDeclaration=a.valueDeclaration);const C=Mt(a).nameType;return C&&(b.links.nameType=C),b}function pBe(a,_){const b=Td();for(const C of O2(a)){const M=Vo(C),z=_(M);b.set(C.escapedName,z===M?C:xO(C,z))}return b}function Aw(a){if(!(zu(a)&&ji(a)&8192))return a;const _=a.regularType;if(_)return _;const b=a,C=pBe(a,Aw),M=jo(b.symbol,C,b.callSignatures,b.constructSignatures,b.indexInfos);return M.flags=b.flags,M.objectFlags|=b.objectFlags&-8193,a.regularType=M,M}function _be(a,_,b){return{parent:a,propertyName:_,siblings:b,resolvedProperties:void 0}}function VPe(a){if(!a.siblings){const _=[];for(const b of VPe(a.parent))if(zu(b)){const C=o2(b,a.propertyName);C&&Z4(Vo(C),M=>{_.push(M)})}a.siblings=_}return a.siblings}function kgt(a){if(!a.resolvedProperties){const _=new Map;for(const b of VPe(a))if(zu(b)&&!(ji(b)&2097152))for(const C of Vp(b))_.set(C.escapedName,C);a.resolvedProperties=oc(_.values())}return a.resolvedProperties}function dbe(a,_){if(!(a.flags&4))return a;const b=Vo(a),C=_&&_be(_,a.escapedName,void 0),M=vS(b,C);return M===b?a:xO(a,M)}function NV(a){const _=Jr.get(a.escapedName);if(_)return _;const b=xO(a,Re);return b.flags|=16777216,Jr.set(a.escapedName,b),b}function $S(a,_){const b=Td();for(const M of O2(a))b.set(M.escapedName,dbe(M,_));if(_)for(const M of kgt(_))b.has(M.escapedName)||b.set(M.escapedName,NV(M));const C=jo(a.symbol,b,Zn,Zn,Ol(T_(a),M=>yD(M.keyType,Bb(M.type),M.isReadonly)));return C.objectFlags|=ji(a)&266240,C}function Bb(a){return vS(a,void 0)}function vS(a,_){if(ji(a)&196608){if(_===void 0&&a.widened)return a.widened;let b;if(a.flags&98305)b=gn;else if(zu(a))b=$S(a,_);else if(a.flags&1048576){const C=_||_be(void 0,void 0,a.types),M=Ol(a.types,z=>z.flags&98304?z:vS(z,C));b=gl(M,gt(M,rM)?2:1)}else a.flags&2097152?b=Dd(Ol(a.types,Bb)):GI(a)&&(b=jA(a.target,Ol(Tm(a),Bb)));return b&&_===void 0&&(a.widened=b),b||a}return a}function HA(a){let _=!1;if(ji(a)&65536){if(a.flags&1048576)if(gt(a.types,rM))_=!0;else for(const b of a.types)HA(b)&&(_=!0);if(GI(a))for(const b of Tm(a))HA(b)&&(_=!0);if(zu(a))for(const b of O2(a)){const C=Vo(b);ji(C)&65536&&(HA(C)||He(b.valueDeclaration,w.Object_literal_s_property_0_implicitly_has_an_1_type,Cl(b),oa(Bb(C))),_=!0)}}return _}function sM(a,_,b){const C=oa(Bb(_));if(Rs(a)&&!tW(ns(a),Le))return;let M;switch(a.kind){case 226:case 172:case 171:M=Wt?w.Member_0_implicitly_has_an_1_type:w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const z=a;if(An(z.name)){const Z=RL(z.name);if((Lh(z.parent)||Jh(z.parent)||Z2(z.parent))&&z.parent.parameters.indexOf(z)>-1&&(Ro(z,z.name.escapedText,788968,void 0,z.name.escapedText,!0)||Z&&Xie(Z))){const me="arg"+z.parent.parameters.indexOf(z),Se=Ud(z.name)+(z.dotDotDotToken?"[]":"");dr(Wt,a,w.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,me,Se);return}}M=a.dotDotDotToken?Wt?w.Rest_parameter_0_implicitly_has_an_any_type:w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Wt?w.Parameter_0_implicitly_has_an_1_type:w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(M=w.Binding_element_0_implicitly_has_an_1_type,!Wt)return;break;case 324:He(a,w.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Wt&&OG(a.parent)&&He(a.parent.tagName,w.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(Wt&&!a.name){b===3?He(a,w.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):He(a,w.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}M=Wt?b===3?w._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Wt&&He(a,w.Mapped_object_type_implicitly_has_an_any_template_type);return;default:M=Wt?w.Variable_0_implicitly_has_an_1_type:w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}dr(Wt,a,M,Ud(o_(a)),C)}function UPe(a,_,b){s(()=>{Wt&&ji(_)&65536&&(!b||!YBe(a))&&(HA(_)||sM(a,_,b))})}function mBe(a,_,b){const C=xx(a),M=xx(_),z=bfe(a),Z=bfe(_),me=Z?M-1:M,Se=z?me:Math.min(C,me),Je=xC(a);if(Je){const vt=xC(_);vt&&b(Je,vt)}for(let vt=0;vt_.typeParameter),Vn(a.inferences,(_,b)=>()=>(_.isFixed||(Uet(a),HPe(a.inferences),_.isFixed=!0),AO(a,b))))}function pbe(a){return OWe(Vn(a.inferences,_=>_.typeParameter),Vn(a.inferences,(_,b)=>()=>AO(a,b)))}function HPe(a){for(const _ of a)_.isFixed||(_.inferredType=void 0)}function Xl(a,_,b){(a.intraExpressionInferenceSites??(a.intraExpressionInferenceSites=[])).push({node:_,type:b})}function Uet(a){if(a.intraExpressionInferenceSites){for(const{node:_,type:b}of a.intraExpressionInferenceSites){const C=_.kind===174?i8(_,2):PE(_,2);C&&uM(a.inferences,b,C)}a.intraExpressionInferenceSites=void 0}}function Yue(a){return{typeParameter:a,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function cM(a){return{typeParameter:a.typeParameter,candidates:a.candidates&&a.candidates.slice(),contraCandidates:a.contraCandidates&&a.contraCandidates.slice(),inferredType:a.inferredType,priority:a.priority,topLevel:a.topLevel,isFixed:a.isFixed,impliedArity:a.impliedArity}}function JPe(a){const _=gi(a.inferences,zV);return _.length?Xue(Vn(_,cM),a.signature,a.flags,a.compareTypes):void 0}function $Pe(a){return a&&a.mapper}function X0(a){const _=ji(a);if(_&524288)return!!(_&1048576);const b=!!(a.flags&465829888||a.flags&524288&&!tL(a)&&(_&4&&(a.node||gt(Tm(a),X0))||_&16&&a.symbol&&a.symbol.flags&14384&&a.symbol.declarations||_&12583968)||a.flags&137363456&&!(a.flags&1024)&&!tL(a)&>(a.types,X0));return a.flags&138117121&&(a.objectFlags|=524288|(b?1048576:0)),b}function tL(a){if(a.aliasSymbol&&!a.aliasTypeArguments){const _=Vm(a.aliasSymbol,265);return!!(_&&Kr(_.parent,b=>b.kind===312?!0:b.kind===267?!1:"quit"))}return!1}function Cw(a,_,b=0){return!!(a===_||a.flags&3145728&>(a.types,C=>Cw(C,_,b))||b<3&&a.flags&16777216&&(Cw(QP(a),_,b+1)||Cw(X6(a),_,b+1)))}function Ngt(a,_){const b=F2(a);return b?!!b.type&&Cw(b.type,_):Cw(j(a),_)}function mbe(a){const _=Td();Z4(a,C=>{if(!(C.flags&128))return;const M=ty(C.value),z=Ge(4,M);z.links.type=gn,C.symbol&&(z.declarations=C.symbol.declarations,z.valueDeclaration=C.symbol.valueDeclaration),_.set(M,z)});const b=a.flags&4?[yD(xe,Yu,!1)]:Zn;return jo(void 0,_,Zn,Zn,b)}function qPe(a,_,b){const C=a.id+","+_.id+","+b.id;if(Fh.has(C))return Fh.get(C);const M=a.id+","+(_.target||_).id;if(ni(J0,M))return;J0.push(M);const z=Het(a,_,b);return J0.pop(),Fh.set(C,z),z}function Que(a){return!(ji(a)&262144)||zu(a)&>(Vp(a),_=>Que(Vo(_)))||_p(a)&>(Fb(a),Que)}function Het(a,_,b){if(!(Cd(a,xe)||Vp(a).length!==0&&Que(a)))return;if(UA(a))return W1(lM(Tm(a)[0],_,b),Tte(a));if(_p(a)){const M=Vn(Fb(a),Z=>lM(Z,_,b)),z=jS(_)&4?Ol(a.target.elementFlags,Z=>Z&2?1:Z):a.target.elementFlags;return $v(M,z,a.target.readonly,a.target.labeledElementDeclarations)}const C=Uv(1040,void 0);return C.source=a,C.mappedType=_,C.constraintType=b,C}function wgt(a){const _=Mt(a);return _.type||(_.type=lM(a.links.propertyType,a.links.mappedType,a.links.constraintType)),_.type}function lM(a,_,b){const C=s2(b.type,L1(_)),M=SC(_),z=Yue(C);return uM([z],a,M),gbe(z)||co}function*hBe(a,_,b,C){const M=Vp(_);for(const z of M)if(!Qx(z)&&(b||!(z.flags&16777216||I_(z)&48))){const Z=Fn(a,z.escapedName);if(!Z)yield z;else if(C){const me=Vo(z);if(me.flags&109472){const Se=Vo(Z);Se.flags&1||B1(Se)===B1(me)||(yield z)}}}}function u5(a,_,b,C){return V5(hBe(a,_,b,C))}function Zue(a,_){return!(_.target.combinedFlags&8)&&_.target.minLength>a.target.minLength||!_.target.hasRestElement&&(a.target.hasRestElement||_.target.fixedLengthr5(z,M),a)===a&&xte(a,_)}return!1}function KPe(a,_){if(a===_||_.flags&5)return!0;if(a.flags&128){const b=a.value;return!!(_.flags&8&&Jet(b,!1)||_.flags&64&&XH(b,!1)||_.flags&98816&&b===_.intrinsicName||_.flags&268435456&&xte(qv(b),_))}if(a.flags&134217728){const b=a.texts;return b.length===2&&b[0]===""&&b[1]===""&&Mp(a.types[0],_)}return Mp(a,_)}function bBe(a,_){return a.flags&128?$et([a.value],Zn,_):a.flags&134217728?sf(a.texts,_.texts)?Vn(a.types,Lgt):$et(a.texts,a.types,_):void 0}function hbe(a,_){const b=bBe(a,_);return!!b&&jr(b,(C,M)=>KPe(C,_.types[M]))}function Lgt(a){return a.flags&402653317?a:kB(["",""],[a])}function $et(a,_,b){const C=a.length-1,M=a[0],z=a[C],Z=b.texts,me=Z.length-1,Se=Z[0],Je=Z[me];if(C===0&&M.length0){let $s=dn,Ba=yn;for(;Ba=hr($s).indexOf(aa,Ba),!(Ba>=0);){if($s++,$s===a.length)return;Ba=0}bi($s,Ba),yn+=aa.length}else if(yn!ni(od,dm)):Gi,Jf?gi(Ps,dm=>!ni(Jf,dm)):Ps]}function Ba(Gi,Ps,wf){const od=Gi.length!!Go(Jf));if(!od||Ps&&od!==Ps)return;Ps=od}return Ps}function Ga(Gi,Ps,wf){let od=0;if(wf&1048576){let Jf;const dm=Gi.flags&1048576?Gi.types:[Gi],Zg=new Array(dm.length);let Pv=!1;for(const Lp of Ps)if(Go(Lp))Jf=Lp,od++;else for(let $T=0;$TZg[On]?void 0:$T);if(Lp.length){yn(gl(Lp),Jf);return}}}else for(const Jf of Ps)Go(Jf)?od++:yn(Gi,Jf);if(wf&2097152?od===1:od>0)for(const Jf of Ps)Go(Jf)&&hr(Gi,Jf,1)}function hs(Gi,Ps,wf){if(wf.flags&1048576){let od=!1;for(const Jf of wf.types)od=hs(Gi,Ps,Jf)||od;return od}if(wf.flags&4194304){const od=Go(wf.type);if(od&&!od.isFixed&&!wV(Gi)){const Jf=qPe(Gi,Ps,wf);Jf&&hr(Jf,od.typeParameter,ji(Gi)&262144?16:8)}return!0}if(wf.flags&262144){hr(YP(Gi,Gi.pattern?2:0),wf,32);const od=Er(wf);if(od&&hs(Gi,Ps,od))return!0;const Jf=Vn(Vp(Gi),Vo),dm=Vn(T_(Gi),Zg=>Zg!==pa?Zg.type:vs);return yn(gl(Hi(Jf,dm)),SC(Ps)),!0}return!1}function Ld(Gi,Ps){if(Gi.flags&16777216)yn(Gi.checkType,Ps.checkType),yn(Gi.extendsType,Ps.extendsType),yn(QP(Gi),QP(Ps)),yn(X6(Gi),X6(Ps));else{const wf=[QP(Ps),X6(Ps)];Wo(Gi,wf,Ps.flags,M?64:0)}}function nl(Gi,Ps){const wf=bBe(Gi,Ps),od=Ps.types;if(wf||jr(Ps.texts,Jf=>Jf.length===0))for(let Jf=0;JfXt|bs.flags,0);if(!(On&4)){const Xt=dm.value;On&296&&!Jet(Xt,!0)&&(On&=-297),On&2112&&!XH(Xt,!0)&&(On&=-2113);const bs=Em($T,(as,Ec)=>Ec.flags&On?as.flags&4?as:Ec.flags&4?dm:as.flags&134217728?as:Ec.flags&134217728&&hbe(dm,Ec)?dm:as.flags&268435456?as:Ec.flags&268435456&&Xt===xV(Ec.symbol,Xt)?dm:as.flags&128?as:Ec.flags&128&&Ec.value===Xt?Ec:as.flags&8?as:Ec.flags&8?bD(+Xt):as.flags&32?as:Ec.flags&32?bD(+Xt):as.flags&256?as:Ec.flags&256&&Ec.value===+Xt?Ec:as.flags&64?as:Ec.flags&64?Mgt(Xt):as.flags&2048?as:Ec.flags&2048&&tD(Ec.value)===Xt?Ec:as.flags&16?as:Ec.flags&16?Xt==="true"?Ji:Xt==="false"?rr:Ca:as.flags&512?as:Ec.flags&512&&Ec.intrinsicName===Xt?Ec:as.flags&32768?as:Ec.flags&32768&&Ec.intrinsicName===Xt?Ec:as.flags&65536?as:Ec.flags&65536&&Ec.intrinsicName===Xt?Ec:as:as,vs);if(!(bs.flags&131072)){yn(bs,Zg);continue}}}}yn(dm,Zg)}}function id(Gi,Ps){var wf,od;if(ji(Gi)&4&&ji(Ps)&4&&(Gi.target===Ps.target||UA(Gi)&&UA(Ps))){Ba(Tm(Gi),Tm(Ps),eBe(Gi.target));return}if(by(Gi)&&by(Ps)){yn(mT(Gi),mT(Ps)),yn(SC(Gi),SC(Ps));const Jf=Vg(Gi),dm=Vg(Ps);Jf&&dm&&yn(Jf,dm)}if(ji(Ps)&32&&!Ps.declaration.nameType){const Jf=mT(Ps);if(hs(Gi,Ps,Jf))return}if(!Rgt(Gi,Ps)){if(GI(Gi)){if(_p(Ps)){const Jf=Fo(Gi),dm=Fo(Ps),Zg=Tm(Ps),Pv=Ps.target.elementFlags;if(_p(Gi)&&Igt(Gi,Ps)){for(let On=0;On1){const _=gi(a,XPe);if(_.length){const b=gl(_,2);return Hi(gi(a,C=>!XPe(C)),[b])}}return a}function Fgt(a){return a.priority&416?Dd(a.contraCandidates):MB(a.contraCandidates)}function YPe(a,_){const b=Ogt(a.candidates),C=SBe(a.typeParameter)||nc(a.typeParameter),M=!C&&a.topLevel&&(a.isFixed||!Ngt(_,a.typeParameter)),z=C?Ol(b,B1):M?Ol(b,TO):b,Z=a.priority&416?gl(z,2):Cgt(z);return Bb(Z)}function AO(a,_){const b=a.inferences[_];if(!b.inferredType){let C,M;if(a.signature){const Z=b.candidates?YPe(b,a.signature):void 0,me=b.contraCandidates?Fgt(b):void 0;if(Z||me){const Se=Z&&(!me||!(Z.flags&131072)&>(b.contraCandidates,Je=>K4(Z,Je))&&jr(a.inferences,Je=>Je!==b&&Wi(Je.typeParameter)!==b.typeParameter||jr(Je.candidates,vt=>K4(vt,Z))));C=Se?Z:me,M=Se?me:Z}else if(a.flags&1)C=ou;else{const Se=LI(b.typeParameter);Se&&(C=Nf(Se,FWe(_et(a,_),a.nonFixingMapper)))}}else C=gbe(b);b.inferredType=C||EBe(!!(a.flags&2));const z=Wi(b.typeParameter);if(z){const Z=Nf(z,a.nonFixingMapper);(!C||C===mt||!a.compareTypes(C,M1(Z,C)))&&(b.inferredType=M&&a.compareTypes(M,M1(Z,M))?M:Z)}}return b.inferredType}function EBe(a){return a?gn:co}function Sx(a){const _=[];for(let b=0;bKp(_)||mg(_)||e0(_)))}function ybe(a,_,b,C){switch(a.kind){case 80:if(!kS(a)){const Z=ED(a);return Z!==Ir?`${C?Im(C):"-1"}|${Gh(_)}|${Gh(b)}|${Bp(Z)}`:void 0}case 110:return`0|${C?Im(C):"-1"}|${Gh(_)}|${Gh(b)}`;case 235:case 217:return ybe(a.expression,_,b,C);case 166:const M=ybe(a.left,_,b,C);return M&&M+"."+a.right.escapedText;case 211:case 212:const z=fM(a);if(z!==void 0){const Z=ybe(a.expression,_,b,C);return Z&&Z+"."+z}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Im(a)}#${Gh(_)}`}}function Xh(a,_){switch(_.kind){case 217:case 235:return Xh(a,_.expression);case 226:return wy(_)&&Xh(a,_.left)||ys(_)&&_.operatorToken.kind===28&&Xh(a,_.right)}switch(a.kind){case 236:return _.kind===236&&a.keywordToken===_.keywordToken&&a.name.escapedText===_.name.escapedText;case 80:case 81:return kS(a)?_.kind===110:_.kind===80&&ED(a)===ED(_)||(ff(_)||ym(_))&&zh(ED(a))===wi(_);case 110:return _.kind===110;case 108:return _.kind===108;case 235:case 217:return Xh(a.expression,_);case 211:case 212:const b=fM(a),C=Kf(_)?fM(_):void 0;return b!==void 0&&C!==void 0&&C===b&&Xh(a.expression,_.expression);case 166:return Kf(_)&&a.right.escapedText===fM(_)&&Xh(a.left,_.expression);case 226:return ys(a)&&a.operatorToken.kind===28&&Xh(a.right,_)}return!1}function fM(a){if(sa(a))return a.name.escapedText;if(Ed(a))return Wgt(a);if(ym(a)){const _=_c(a);return _?ty(_):void 0}if(Pu(a))return""+a.parent.parameters.indexOf(a)}function QPe(a){return a.flags&8192?a.escapedName:a.flags&384?ty(""+a.value):void 0}function Wgt(a){return Qv(a.argumentExpression)?ty(a.argumentExpression.text):Uh(a.argumentExpression)?nL(a.argumentExpression):void 0}function nL(a){const _=P_(a,111551,!0);if(!_||!(MV(_)||_.flags&8))return;const b=_.valueDeclaration;if(b===void 0)return;const C=Tu(b);if(C){const M=QPe(C);if(M!==void 0)return M}if(p7(b)&&Lr(b,a)){const M=j8(b);if(M)return QPe(yT(M));if(Qb(b))return g7(b.name)}}function ABe(a,_){for(;Kf(a);)if(a=a.expression,Xh(a,_))return!0;return!1}function Id(a,_){for(;ky(a);)if(a=a.expression,Xh(a,_))return!0;return!1}function nN(a,_){if(a&&a.flags&1048576){const b=gw(a,_);if(b&&I_(b)&2)return b.links.isDiscriminantProperty===void 0&&(b.links.isDiscriminantProperty=(b.links.checkFlags&192)===192&&!mte(Vo(b))),!!b.links.isDiscriminantProperty}return!1}function vbe(a,_){let b;for(const C of a)if(nN(_,C.escapedName)){if(b){b.push(C);continue}b=[C]}return b}function bbe(a,_){const b=new Map;let C=0;for(const M of a)if(M.flags&61603840){const z=wm(M,_);if(z){if(!Ew(z))return;let Z=!1;Z4(z,me=>{const Se=Gh(B1(me)),Je=b.get(Se);Je?Je!==co&&(b.set(Se,co),Z=!0):b.set(Se,M)}),Z||C++}}return C>=10&&C*2>=a.length?b:void 0}function a1(a){const _=a.types;if(!(_.length<10||ji(a)&32768||dp(_,b=>!!(b.flags&59506688))<10)){if(a.keyPropertyName===void 0){const b=Ot(_,M=>M.flags&59506688?Ot(Vp(M),z=>rA(Vo(z))?z.escapedName:void 0):void 0),C=b&&bbe(_,b);a.keyPropertyName=C?b:"",a.constituentMap=C}return a.keyPropertyName.length?a.keyPropertyName:void 0}}function rN(a,_){var b;const C=(b=a.constituentMap)==null?void 0:b.get(Gh(B1(_)));return C!==co?C:void 0}function ZPe(a,_){const b=a1(a),C=b&&wm(_,b);return C&&rN(a,C)}function Ket(a,_){const b=a1(a),C=b&&lr(_.properties,z=>z.symbol&&z.kind===303&&z.symbol.escapedName===b&&Rbe(z.initializer)),M=C&&qA(C.initializer);return M&&rN(a,M)}function Ate(a,_){return Xh(a,_)||ABe(a,_)}function Xet(a,_){if(a.arguments){for(const b of a.arguments)if(Ate(_,b))return!0}return!!(a.expression.kind===211&&Ate(_,a.expression.expression))}function CBe(a){return(!a.id||a.id<0)&&(a.id=Eae,Eae++),a.id}function Yet(a,_){if(!(a.flags&1048576))return Mp(a,_);for(const b of a.types)if(Mp(b,_))return!0;return!1}function Qet(a,_){if(a===_)return a;if(_.flags&131072)return _;const b=`A${Gh(a)},${Gh(_)}`;return na(b)??_a(b,Tbe(a,_))}function Tbe(a,_){const b=D0(a,M=>Yet(_,M)),C=_.flags&512&&jk(_)?bh(b,ZP):b;return Mp(_,C)?C:a}function DBe(a){const _=K0(a);return!!(_.callSignatures.length||_.constructSignatures.length||_.members.get("bind")&&K4(a,S0))}function bS(a){a.flags&467927040&&(a=Co(a)||co);const _=a.flags;if(_&268435460)return Ye?16317953:16776705;if(_&134217856){const b=_&128&&a.value==="";return Ye?b?12123649:7929345:b?12582401:16776705}if(_&40)return Ye?16317698:16776450;if(_&256){const b=a.value===0;return Ye?b?12123394:7929090:b?12582146:16776450}if(_&64)return Ye?16317188:16775940;if(_&2048){const b=fBe(a);return Ye?b?12122884:7928580:b?12581636:16775940}return _&16?Ye?16316168:16774920:_&528?Ye?a===rr||a===mi?12121864:7927560:a===rr||a===mi?12580616:16774920:_&524288?ji(a)&16&&rM(a)?Ye?83427327:83886079:DBe(a)?Ye?7880640:16728e3:Ye?7888800:16736160:_&16384?9830144:_&32768?26607360:_&65536?42917664:_&12288?Ye?7925520:16772880:_&67108864?Ye?7888800:16736160:_&131072?0:_&1048576?Em(a.types,(b,C)=>b|bS(C),0):_&2097152?Bgt(a):83886079}function Bgt(a){const _=cy(a,402784252);let b=0,C=134217727;for(const M of a.types)if(!(_&&M.flags&524288)){const z=bS(M);b|=z,C&=z}return b&8256|C&134209471}function JA(a,_){return D0(a,b=>(bS(b)&_)!==0)}function OB(a,_){const b=IBe(JA(Ye&&a.flags&2?fx:a,_));if(Ye)switch(_){case 524288:return bh(b,C=>bS(C)&65536?Dd([C,bS(C)&131072&&!cy(b,65536)?gl([Yu,$e]):Yu]):C);case 1048576:return bh(b,C=>bS(C)&131072?Dd([C,bS(C)&65536&&!cy(b,32768)?gl([Yu,Ui]):Yu]):C);case 2097152:case 4194304:return bh(b,C=>bS(C)&262144?Get(C):C)}return b}function IBe(a){return a===fx?co:a}function kBe(a,_){return _?gl([xi(a),yT(_)]):a}function Zet(a,_){var b;const C=q6(_);if(!yv(C))return _r;const M=vv(C);return wm(a,M)||Cte((b=yx(a,M))==null?void 0:b.type)||_r}function ett(a,_){return iA(a,LB)&&Bet(a,_)||Cte(cL(65,a,Ui,void 0))||_r}function Cte(a){return a&&(Le.noUncheckedIndexedAccess?gl([a,We]):a)}function ttt(a){return W1(cL(65,a,Ui,void 0)||_r)}function eNe(a){return a.parent.kind===209&&Sbe(a.parent)||a.parent.kind===303&&Sbe(a.parent.parent)?kBe(VI(a),a.right):yT(a.right)}function Sbe(a){return a.parent.kind===226&&a.parent.left===a||a.parent.kind===250&&a.parent.initializer===a}function zgt(a,_){return ett(VI(a),a.elements.indexOf(_))}function Ggt(a){return ttt(VI(a.parent))}function tNe(a){return Zet(VI(a.parent),a.name)}function _M(a){return kBe(tNe(a),a.objectAssignmentInitializer)}function VI(a){const{parent:_}=a;switch(_.kind){case 249:return xe;case 250:return zfe(_)||_r;case 226:return eNe(_);case 220:return Ui;case 209:return zgt(_,a);case 230:return Ggt(_);case 303:return tNe(_);case 304:return _M(_)}return _r}function jgt(a){const _=a.parent,b=nNe(_.parent),C=_.kind===206?Zet(b,a.propertyName||a.name):a.dotDotDotToken?ttt(b):ett(b,_.elements.indexOf(a));return kBe(C,a.initializer)}function dK(a){return ge(a).resolvedType||yT(a)}function ntt(a){return a.initializer?dK(a.initializer):a.parent.parent.kind===249?xe:a.parent.parent.kind===250&&zfe(a.parent.parent)||_r}function nNe(a){return a.kind===260?ntt(a):jgt(a)}function tfe(a){return a.kind===260&&a.initializer&&yh(a.initializer)||a.kind!==208&&a.parent.kind===226&&yh(a.parent.right)}function qS(a){switch(a.kind){case 217:return qS(a.expression);case 226:switch(a.operatorToken.kind){case 64:case 76:case 77:case 78:return qS(a.left);case 28:return qS(a.right)}}return a}function PBe(a){const{parent:_}=a;return _.kind===217||_.kind===226&&_.operatorToken.kind===64&&_.left===a||_.kind===226&&_.operatorToken.kind===28&&_.right===a?PBe(_):a}function Ebe(a){return a.kind===296?B1(yT(a.expression)):vs}function rNe(a){const _=ge(a);if(!_.switchTypes){_.switchTypes=[];for(const b of a.caseBlock.clauses)_.switchTypes.push(Ebe(b))}return _.switchTypes}function rtt(a){if(gt(a.caseBlock.clauses,b=>b.kind===296&&!sp(b.expression)))return;const _=[];for(const b of a.caseBlock.clauses){const C=b.kind===296?b.expression.text:void 0;_.push(C&&!ni(_,C)?C:void 0)}return _}function $A(a,_){return a.flags&1048576?!Ot(a.types,b=>!ni(_,b)):ni(_,a)}function pK(a,_){return!!(a===_||a.flags&131072||_.flags&1048576&&itt(a,_))}function itt(a,_){if(a.flags&1048576){for(const b of a.types)if(!W2(_.types,b))return!1;return!0}return a.flags&1056&&N4(a)===_?!0:W2(_.types,a)}function Z4(a,_){return a.flags&1048576?Ot(a.types,_):_(a)}function dM(a,_){return a.flags&1048576?gt(a.types,_):_(a)}function iA(a,_){return a.flags&1048576?jr(a.types,_):_(a)}function NBe(a,_){return a.flags&3145728?jr(a.types,_):_(a)}function D0(a,_){if(a.flags&1048576){const b=a.types,C=gi(b,_);if(C===b)return a;const M=a.origin;let z;if(M&&M.flags&1048576){const Z=M.types,me=gi(Z,Se=>!!(Se.flags&1048576)||_(Se));if(Z.length-me.length===b.length-C.length){if(me.length===1)return me[0];z=n5(1048576,me)}}return vPe(C,a.objectFlags&16809984,void 0,void 0,z)}return a.flags&131072||_(a)?a:vs}function iNe(a,_){return D0(a,b=>b!==_)}function wBe(a){return a.flags&1048576?a.types.length:1}function bh(a,_,b){if(a.flags&131072)return a;if(!(a.flags&1048576))return _(a);const C=a.origin,M=C&&C.flags&1048576?C.types:a.types;let z,Z=!1;for(const me of M){const Se=me.flags&1048576?bh(me,_,b):_(me);Z||(Z=me!==Se),Se&&(z?z.push(Se):z=[Se])}return Z?z&&gl(z,b?0:1):a}function RBe(a,_,b,C){return a.flags&1048576&&b?gl(Vn(a.types,_),1,b,C):bh(a,_)}function f5(a,_){return D0(a,b=>(b.flags&_)!==0)}function xbe(a,_){return cy(a,134217804)&&cy(_,402655616)?bh(a,b=>b.flags&4?f5(_,402653316):U4(b)&&!cy(_,402653188)?f5(_,128):b.flags&8?f5(_,264):b.flags&64?f5(_,2112):b):a}function FB(a){return a.flags===0}function WB(a){return a.flags===0?a.type:a}function mK(a,_){return _?{flags:0,type:a.flags&131072?ou:a}:a}function Vgt(a){const _=Uv(256);return _.elementType=a,_}function nfe(a){return er[a.id]||(er[a.id]=Vgt(a))}function ott(a,_){const b=Aw(Tx(qA(_)));return pK(b,a.elementType)?a:nfe(gl([a.elementType,b]))}function oNe(a){return a.flags&131072?ii:W1(a.flags&1048576?gl(a.types,2):a)}function Abe(a){return a.finalArrayType||(a.finalArrayType=oNe(a.elementType))}function e8(a){return ji(a)&256?Abe(a):a}function aNe(a){return ji(a)&256?a.elementType:vs}function Ugt(a){let _=!1;for(const b of a)if(!(b.flags&131072)){if(!(ji(b)&256))return!1;_=!0}return _}function att(a){const _=PBe(a),b=_.parent,C=sa(b)&&(b.name.escapedText==="length"||b.parent.kind===213&&An(b.name)&&_Se(b.name)),M=b.kind===212&&b.expression===_&&b.parent.kind===226&&b.parent.operatorToken.kind===64&&b.parent.left===b&&!IS(b.parent)&&lh(yT(b.argumentExpression),296);return C||M}function stt(a){return(ff(a)||Os(a)||Np(a)||Pu(a))&&!!(Kb(a)||Rs(a)&&NN(a)&&a.initializer&&EP(a.initializer)&&bA(a.initializer))}function BB(a,_){if(a=wp(a),a.flags&8752)return Vo(a);if(a.flags&7){if(I_(a)&262144){const C=a.links.syntheticOrigin;if(C&&BB(C))return Vo(a)}const b=a.valueDeclaration;if(b){if(stt(b))return Vo(a);if(ff(b)&&b.parent.parent.kind===250){const C=b.parent.parent,M=rfe(C.expression,void 0);if(M){const z=C.awaitModifier?15:13;return cL(z,M,Ui,void 0)}}_&&ml(_,kc(b,w._0_needs_an_explicit_type_annotation,Cl(a)))}}}function rfe(a,_){if(!(a.flags&67108864))switch(a.kind){case 80:const b=zh(ED(a));return BB(b,_);case 110:return Kgt(a);case 108:return _Ne(a);case 211:{const C=rfe(a.expression,_);if(C){const M=a.name;let z;if(Gu(M)){if(!C.symbol)return;z=Fn(C,R7(C.symbol,M.escapedText))}else z=Fn(C,M.escapedText);return z&&BB(z,_)}return}case 217:return rfe(a.expression,_)}}function Cbe(a){const _=ge(a);let b=_.effectsSignature;if(b===void 0){let C;a.parent.kind===244?C=rfe(a.expression,void 0):a.expression.kind!==108&&(ky(a)?C=HI(Kue(n_(a.expression),a.expression),a.expression):C=TK(a.expression));const M=Ti(C&&O1(C)||co,0),z=M.length===1&&!M[0].typeParameters?M[0]:gt(M,Dbe)?oN(a):void 0;b=_.effectsSignature=z&&Dbe(z)?z:vn}return b===vn?void 0:b}function Dbe(a){return!!(F2(a)||a.declaration&&(se(a.declaration)||co).flags&131072)}function Hgt(a,_){if(a.kind===1||a.kind===3)return _.arguments[a.parameterIndex];const b=_g(_.expression);return Kf(b)?_g(b.expression):void 0}function MBe(a){const _=Kr(a,nde),b=ns(a),C=nC(b,_.statements.pos);no.add(Pp(b,C.start,C.length,w.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Ibe(a){const _=sNe(a,!1);return X=a,ie=_,_}function RV(a){const _=_g(a,!0);return _.kind===97||_.kind===226&&(_.operatorToken.kind===56&&(RV(_.left)||RV(_.right))||_.operatorToken.kind===57&&RV(_.left)&&RV(_.right))}function sNe(a,_){for(;;){if(a===X)return ie;const b=a.flags;if(b&4096){if(!_){const C=CBe(a),M=En[C];return M!==void 0?M:En[C]=sNe(a,!0)}_=!1}if(b&368)a=a.antecedent;else if(b&512){const C=Cbe(a.node);if(C){const M=F2(C);if(M&&M.kind===3&&!M.type){const z=a.node.arguments[M.parameterIndex];if(z&&RV(z))return!1}if(j(C).flags&131072)return!1}a=a.antecedent}else{if(b&4)return gt(a.antecedents,C=>sNe(C,!1));if(b&8){const C=a.antecedents;if(C===void 0||C.length===0)return!1;a=C[0]}else if(b&128){if(a.clauseStart===a.clauseEnd&&Lze(a.switchStatement))return!1;a=a.antecedent}else if(b&1024){X=void 0;const C=a.target,M=C.antecedents;C.antecedents=a.antecedents;const z=sNe(a.antecedent,!1);return C.antecedents=M,z}else return!(b&1)}}}function cNe(a,_){for(;;){const b=a.flags;if(b&4096){if(!_){const C=CBe(a),M=fr[C];return M!==void 0?M:fr[C]=cNe(a,!0)}_=!1}if(b&496)a=a.antecedent;else if(b&512){if(a.node.expression.kind===108)return!0;a=a.antecedent}else{if(b&4)return jr(a.antecedents,C=>cNe(C,!1));if(b&8)a=a.antecedents[0];else if(b&1024){const C=a.target,M=C.antecedents;C.antecedents=a.antecedents;const z=cNe(a.antecedent,!1);return C.antecedents=M,z}else return!!(b&1)}}}function LBe(a){switch(a.kind){case 110:return!0;case 80:if(!kS(a)){const _=ED(a);return MV(_)||_oe(_)&&!zB(_)}break;case 211:case 212:return LBe(a.expression)&&KI(ge(a).resolvedSymbol||Ir)}return!1}function t8(a,_,b=_,C,M=(z=>(z=to(a,LN))==null?void 0:z.flowNode)()){let z,Z=!1,me=0;if($)return _r;if(!M)return _;J++;const Se=F,Je=WB(dn(M));F=Se;const vt=ji(Je)&256&&att(a)?ii:e8(Je);if(vt===z_||a.parent&&a.parent.kind===235&&!(vt.flags&131072)&&JA(vt,2097152).flags&131072)return _;return vt===es?co:vt;function Pt(){return Z?z:(Z=!0,z=ybe(a,_,b,C))}function dn(Dr){var Pi;if(me===2e3)return(Pi=tu)==null||Pi.instant(tu.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Dr.id}),$=!0,MBe(a),_r;me++;let No;for(;;){const ao=Dr.flags;if(ao&4096){for(let ja=Se;ja=0&&No.parameterIndex!(ja.flags&163840)):Pi.kind===221&&Id(Pi.expression,a)&&(ao=Jf(ao,Dr.switchStatement,Dr.clauseStart,Dr.clauseEnd,ja=>!(ja.flags&131072||ja.flags&128&&ja.value==="undefined"))));const Bo=Ga(Pi,ao);Bo&&(ao=nl(ao,Bo,Dr.switchStatement,Dr.clauseStart,Dr.clauseEnd))}return mK(ao,FB(No))}function lo(Dr){const Pi=[];let No=!1,ao=!1,Bo;for(const ja of Dr.antecedents){if(!Bo&&ja.flags&128&&ja.clauseStart===ja.clauseEnd){Bo=ja;continue}const rf=dn(ja),zl=WB(rf);if(zl===_&&_===b)return zl;Dy(Pi,zl),pK(zl,b)||(No=!0),FB(rf)&&(ao=!0)}if(Bo){const ja=dn(Bo),rf=WB(ja);if(!(rf.flags&131072)&&!ni(Pi,rf)&&!Lze(Bo.switchStatement)){if(rf===_&&_===b)return rf;Pi.push(rf),pK(rf,b)||(No=!0),FB(ja)&&(ao=!0)}}return mK(Go(Pi,No?2:1),ao)}function Xa(Dr){const Pi=CBe(Dr),No=cn[Pi]||(cn[Pi]=new Map),ao=Pt();if(!ao)return _;const Bo=No.get(ao);if(Bo)return Bo;for(let Jo=P;Jo{const Jo=db(td,ao);return!(Jo.flags&131072)&&!(zl.flags&131072)&&nbe(zl,Jo)})}function Ld(Dr,Pi,No,ao,Bo){if((No===37||No===38)&&Dr.flags&1048576){const ja=a1(Dr);if(ja&&ja===fM(Pi)){const rf=rN(Dr,yT(ao));if(rf)return No===(Bo?37:38)?rf:rA(wm(rf,ja)||co)?iNe(Dr,rf):Dr}}return hs(Dr,Pi,ja=>Ps(ja,No,ao,Bo))}function nl(Dr,Pi,No,ao,Bo){if(aorN(Dr,zl)||co));if(rf!==co)return rf}return hs(Dr,Pi,ja=>dm(ja,No,ao,Bo))}function id(Dr,Pi,No){if(Xh(a,Pi))return OB(Dr,No?4194304:8388608);Ye&&No&&Id(Pi,a)&&(Dr=OB(Dr,2097152));const ao=Ga(Pi,Dr);return ao?hs(Dr,ao,Bo=>JA(Bo,No?4194304:8388608)):Dr}function $y(Dr,Pi,No){const ao=Fn(Dr,Pi);return ao?!!(ao.flags&16777216||I_(ao)&48)||No:!!yx(Dr,Pi)||!No}function l2(Dr,Pi,No){const ao=vv(Pi);if(dM(Dr,ja=>$y(ja,ao,!0)))return D0(Dr,ja=>$y(ja,ao,No));if(No){const ja=VZe();if(ja)return Dd([Dr,Mc(ja,[Pi,co])])}return Dr}function Cx(Dr,Pi,No){switch(Pi.operatorToken.kind){case 64:case 76:case 77:case 78:return id(Mu(Dr,Pi.right,No),Pi.left,No);case 35:case 36:case 37:case 38:const ao=Pi.operatorToken.kind,Bo=qS(Pi.left),ja=qS(Pi.right);if(Bo.kind===221&&sp(ja))return wf(Dr,Bo,ao,ja,No);if(ja.kind===221&&sp(Bo))return wf(Dr,ja,ao,Bo,No);if(Xh(a,Bo))return Ps(Dr,ao,ja,No);if(Xh(a,ja))return Ps(Dr,ao,Bo,No);Ye&&(Id(Bo,a)?Dr=Gi(Dr,ao,ja,No):Id(ja,a)&&(Dr=Gi(Dr,ao,Bo,No)));const rf=Ga(Bo,Dr);if(rf)return Ld(Dr,rf,ao,ja,No);const zl=Ga(ja,Dr);if(zl)return Ld(Dr,zl,ao,Bo,No);if($T(Bo))return On(Dr,ao,ja,No);if($T(ja))return On(Dr,ao,Bo,No);break;case 104:return Xt(Dr,Pi,No);case 103:if(Gu(Pi.left))return kC(Dr,Pi,No);const td=qS(Pi.right);if(Ste(Dr)&&Kf(a)&&Xh(a.expression,td)){const Jo=yT(Pi.left);if(yv(Jo)&&fM(a)===vv(Jo))return JA(Dr,No?524288:65536)}if(Xh(a,td)){const Jo=yT(Pi.left);if(yv(Jo))return l2(Dr,Jo,No)}break;case 28:return Mu(Dr,Pi.right,No);case 56:return No?Mu(Mu(Dr,Pi.left,!0),Pi.right,!0):gl([Mu(Dr,Pi.left,!1),Mu(Dr,Pi.right,!1)]);case 57:return No?gl([Mu(Dr,Pi.left,!0),Mu(Dr,Pi.right,!0)]):Mu(Mu(Dr,Pi.left,!1),Pi.right,!1)}return Dr}function kC(Dr,Pi,No){const ao=qS(Pi.right);if(!Xh(a,ao))return Dr;ce.assertNode(Pi.left,Gu);const Bo=RNe(Pi.left);if(Bo===void 0)return Dr;const ja=Bo.parent,rf=Ny(ce.checkDefined(Bo.valueDeclaration,"should always have a declaration"))?Vo(ja):Rm(ja);return as(Dr,rf,No,!0)}function Gi(Dr,Pi,No,ao){const Bo=Pi===35||Pi===37,ja=Pi===35||Pi===36?98304:32768,rf=yT(No);return Bo!==ao&&iA(rf,td=>!!(td.flags&ja))||Bo===ao&&iA(rf,td=>!(td.flags&(3|ja)))?OB(Dr,2097152):Dr}function Ps(Dr,Pi,No,ao){if(Dr.flags&1)return Dr;(Pi===36||Pi===38)&&(ao=!ao);const Bo=yT(No),ja=Pi===35||Pi===36;if(Bo.flags&98304){if(!Ye)return Dr;const rf=ja?ao?262144:2097152:Bo.flags&65536?ao?131072:1048576:ao?65536:524288;return OB(Dr,rf)}if(ao){if(!ja&&(Dr.flags&2||dM(Dr,By))){if(Bo.flags&469893116||By(Bo))return Bo;if(Bo.flags&524288)return fp}const rf=D0(Dr,zl=>nbe(zl,Bo)||ja&&fK(zl,Bo));return xbe(rf,Bo)}return rA(Bo)?D0(Dr,rf=>!(PV(rf)&&nbe(rf,Bo))):Dr}function wf(Dr,Pi,No,ao,Bo){(No===36||No===38)&&(Bo=!Bo);const ja=qS(Pi.expression);if(!Xh(a,ja)){Ye&&Id(ja,a)&&Bo===(ao.text!=="undefined")&&(Dr=OB(Dr,2097152));const rf=Ga(ja,Dr);return rf?hs(Dr,rf,zl=>od(zl,ao,Bo)):Dr}return od(Dr,ao,Bo)}function od(Dr,Pi,No){return No?Zg(Dr,Pi.text):OB(Dr,xae.get(Pi.text)||32768)}function Jf(Dr,Pi,No,ao,Bo){return No!==ao&&jr(rNe(Pi).slice(No,ao),Bo)?JA(Dr,2097152):Dr}function dm(Dr,Pi,No,ao){const Bo=rNe(Pi);if(!Bo.length)return Dr;const ja=Bo.slice(No,ao),rf=No===ao||ni(ja,vs);if(Dr.flags&2&&!rf){let rc;for(let Ll=0;Llnbe(zl,rc)),zl);if(!rf)return td;const Jo=D0(Dr,rc=>!(PV(rc)&&ni(Bo,B1(uK(rc)))));return td.flags&131072?Jo:gl([td,Jo])}function Zg(Dr,Pi){switch(Pi){case"string":return Pv(Dr,xe,1);case"number":return Pv(Dr,an,2);case"bigint":return Pv(Dr,Un,4);case"boolean":return Pv(Dr,Ca,8);case"symbol":return Pv(Dr,Qa,16);case"object":return Dr.flags&1?Dr:gl([Pv(Dr,fp,32),Pv(Dr,$e,131072)]);case"function":return Dr.flags&1?Dr:Pv(Dr,S0,64);case"undefined":return Pv(Dr,Ui,65536)}return Pv(Dr,fp,128)}function Pv(Dr,Pi,No){return bh(Dr,ao=>Vk(ao,Pi,Wl)?bS(ao)&No?ao:vs:K4(Pi,ao)?Pi:bS(ao)&No?Dd([ao,Pi]):vs)}function Lp(Dr,Pi,No,ao){const Bo=rtt(Pi);if(!Bo)return Dr;const ja=Ho(Pi.caseBlock.clauses,td=>td.kind===297);if(No===ao||ja>=No&&ja(bS(Jo)&td)===td)}const zl=Bo.slice(No,ao);return gl(Vn(zl,td=>td?Zg(Dr,td):vs))}function $T(Dr){return(sa(Dr)&&ec(Dr.name)==="constructor"||Ed(Dr)&&sp(Dr.argumentExpression)&&Dr.argumentExpression.text==="constructor")&&Xh(a,Dr.expression)}function On(Dr,Pi,No,ao){if(ao?Pi!==35&&Pi!==37:Pi!==36&&Pi!==38)return Dr;const Bo=yT(No);if(!Vwe(Bo)&&!ko(Bo))return Dr;const ja=Fn(Bo,"prototype");if(!ja)return Dr;const rf=Vo(ja),zl=Q_(rf)?void 0:rf;if(!zl||zl===Ev||zl===S0)return Dr;if(Q_(Dr))return zl;return D0(Dr,Jo=>td(Jo,zl));function td(Jo,rc){return Jo.flags&524288&&ji(Jo)&1||rc.flags&524288&&ji(rc)&1?Jo.symbol===rc.symbol:K4(Jo,rc)}}function Xt(Dr,Pi,No){const ao=qS(Pi.left);if(!Xh(a,ao))return No&&Ye&&Id(ao,a)?OB(Dr,2097152):Dr;const Bo=yT(Pi.right);if(!s5(Bo,S0))return Dr;const ja=bh(Bo,bs);return Q_(Dr)&&(ja===Ev||ja===S0)||!No&&!(ja.flags&524288&&!By(ja))?Dr:as(Dr,ja,No,!0)}function bs(Dr){const Pi=wm(Dr,"prototype");if(Pi&&!Q_(Pi))return Pi;const No=Ti(Dr,1);return No.length?gl(Vn(No,ao=>j(VS(ao)))):Yu}function as(Dr,Pi,No,ao){const Bo=Dr.flags&1048576?`N${Gh(Dr)},${Gh(Pi)},${(No?1:0)|(ao?2:0)}`:void 0;return na(Bo)??_a(Bo,Ec(Dr,Pi,No,ao))}function Ec(Dr,Pi,No,ao){if(!No){if(ao)return D0(Dr,td=>!s5(td,Pi));const zl=as(Dr,Pi,!0,!1);return D0(Dr,td=>!pK(td,zl))}if(Dr.flags&3)return Pi;const Bo=ao?s5:K4,ja=Dr.flags&1048576?a1(Dr):void 0,rf=bh(Pi,zl=>{const td=ja&&wm(zl,ja),Jo=td&&rN(Dr,td),rc=bh(Jo||Dr,ao?Ll=>s5(Ll,zl)?Ll:s5(zl,Ll)?zl:vs:Ll=>vet(Ll,zl)?Ll:vet(zl,Ll)?zl:K4(Ll,zl)?Ll:K4(zl,Ll)?zl:vs);return rc.flags&131072?bh(Dr,Ll=>cy(Ll,465829888)&&Bo(zl,Co(Ll)||co)?Dd([Ll,zl]):vs):rc});return rf.flags&131072?K4(Pi,Dr)?Pi:Mp(Dr,Pi)?Dr:Mp(Pi,Dr)?Pi:Dd([Dr,Pi]):rf}function Bc(Dr,Pi,No){if(Xet(Pi,a)){const ao=No||!R8(Pi)?Cbe(Pi):void 0,Bo=ao&&F2(ao);if(Bo&&(Bo.kind===0||Bo.kind===1))return Rf(Dr,Bo,Pi,No)}if(Ste(Dr)&&Kf(a)&&sa(Pi.expression)){const ao=Pi.expression;if(Xh(a.expression,qS(ao.expression))&&An(ao.name)&&ao.name.escapedText==="hasOwnProperty"&&Pi.arguments.length===1){const Bo=Pi.arguments[0];if(sp(Bo)&&fM(a)===ty(Bo.text))return JA(Dr,No?524288:65536)}}return Dr}function Rf(Dr,Pi,No,ao){if(Pi.type&&!(Q_(Dr)&&(Pi.type===Ev||Pi.type===S0))){const Bo=Hgt(Pi,No);if(Bo){if(Xh(a,Bo))return as(Dr,Pi.type,ao,!1);Ye&&ao&&Id(Bo,a)&&!(bS(Pi.type)&65536)&&(Dr=OB(Dr,2097152));const ja=Ga(Bo,Dr);if(ja)return hs(Dr,ja,rf=>as(rf,Pi.type,ao,!1))}}return Dr}function Mu(Dr,Pi,No){if(zU(Pi)||ys(Pi.parent)&&(Pi.parent.operatorToken.kind===61||Pi.parent.operatorToken.kind===78)&&Pi.parent.left===Pi)return xc(Dr,Pi,No);switch(Pi.kind){case 80:if(!Xh(a,Pi)&&de<5){const ao=ED(Pi);if(MV(ao)){const Bo=ao.valueDeclaration;if(Bo&&ff(Bo)&&!Bo.type&&Bo.initializer&&LBe(a)){de++;const ja=Mu(Dr,Bo.initializer,No);return de--,ja}}}case 110:case 108:case 211:case 212:return id(Dr,Pi,No);case 213:return Bc(Dr,Pi,No);case 217:case 235:return Mu(Dr,Pi.expression,No);case 226:return Cx(Dr,Pi,No);case 224:if(Pi.operator===54)return Mu(Dr,Pi.operand,!No);break}return Dr}function xc(Dr,Pi,No){if(Xh(a,Pi))return OB(Dr,No?2097152:262144);const ao=Ga(Pi,Dr);return ao?hs(Dr,ao,Bo=>JA(Bo,No?2097152:262144)):Dr}}function Jgt(a,_){if(a=zh(a),(_.kind===80||_.kind===81)&&(kH(_)&&(_=_.parent),Gy(_)&&(!IS(_)||o6(_)))){const b=jPe(yT(_));if(zh(ge(_).resolvedSymbol)===a)return b}return vP(_)&&_P(_.parent)&&Nh(_.parent)?HR(_.parent.symbol):WA(a)}function kE(a){return Kr(a.parent,_=>S_(_)&&!zL(_)||_.kind===268||_.kind===312||_.kind===172)}function zB(a){if(!a.valueDeclaration)return!1;const _=rI(a.valueDeclaration).parent,b=ge(_);return b.flags&131072||(b.flags|=131072,_5(_)||ife(_)),a.isAssigned||!1}function _5(a){return!!Kr(a.parent,_=>(S_(_)||CP(_))&&!!(ge(_).flags&131072))}function ife(a){if(a.kind===80){if(IS(a)){const _=ED(a);_oe(_)&&(_.isAssigned=!0)}}else B_(a,ife)}function MV(a){return a.flags&3&&(PNe(a)&6)!==0}function rL(a){const _=ge(a);if(_.parameterInitializerContainsUndefined===void 0){if(!j_(a,9))return cw(a.symbol),!0;const b=!!(bS(DK(a,0))&16777216);if(!dS())return cw(a.symbol),!0;_.parameterInitializerContainsUndefined=b}return _.parameterInitializerContainsUndefined}function OBe(a,_){return Ye&&_.kind===169&&_.initializer&&bS(a)&16777216&&!rL(_)?JA(a,524288):a}function FBe(a,_){const b=_.parent;return b.kind===211||b.kind===166||b.kind===213&&b.expression===_||b.kind===212&&b.expression===_&&!(dM(a,kbe)&&HS(yT(b.argumentExpression)))}function WBe(a){return a.flags&2097152?gt(a.types,WBe):!!(a.flags&465829888&&DE(a).flags&1146880)}function kbe(a){return a.flags&2097152?gt(a.types,kbe):!!(a.flags&465829888&&!cy(DE(a),98304))}function Dte(a,_){const b=(An(a)||sa(a)||Ed(a))&&!((rD(a.parent)||TW(a.parent))&&a.parent.tagName===a)&&(_&&_&64?PE(a,8):PE(a,void 0));return b&&!mte(b)}function ofe(a,_,b){return!(b&&b&2)&&dM(a,WBe)&&(FBe(a,_)||Dte(_,b))?bh(a,DE):a}function ctt(a){return!!Kr(a,_=>{const b=_.parent;return b===void 0?"quit":Ly(b)?b.expression===_&&Uh(_):Oy(b)?b.name===_||b.propertyName===_:!1})}function lNe(a,_){if(Ur&&Cg(a,111551)&&!O7(_)){const b=Xp(a);sg(a,!0)&1160127&&(F0(Le)||gk(Le)&&ctt(_)||!qk(zh(b))?t_(a):A_(a))}}function UI(a,_){var b;const C=Vo(a),M=a.valueDeclaration;if(M){if(ym(M)&&!M.initializer&&!M.dotDotDotToken&&M.parent.elements.length>=2){const z=M.parent.parent;if(z.kind===260&&x5(M)&6||z.kind===169){const Z=ge(z);if(!(Z.flags&4194304)){Z.flags|=4194304;const me=Vt(z,0),Se=me&&bh(me,DE);if(Z.flags&=-4194305,Se&&Se.flags&1048576&&!(z.kind===169&&zB(a))){const Je=M.parent,vt=t8(Je,Se,Se,void 0,_.flowNode);return vt.flags&131072?vs:Rp(M,vt)}}}}if(Pu(M)&&!M.type&&!M.initializer&&!M.dotDotDotToken){const z=M.parent;if(z.parameters.length>=2&&RPe(z)){const Z=yK(z);if(Z&&Z.parameters.length===1&&oT(Z)){const me=F4(Nf(Vo(Z.parameters[0]),(b=DO(z))==null?void 0:b.nonFixingMapper));if(me.flags&1048576&&iA(me,_p)&&!zB(a)){const Se=t8(z,me,me,void 0,_.flowNode),Je=z.parameters.indexOf(M)-(JL(z)?1:0);return s2(Se,bD(Je))}}}}}return C}function ltt(a,_){if(kS(a))return gK(a);const b=ED(a);if(b===Ir)return _r;if(b===Cr){if(Th(a))return He(a,w.arguments_cannot_be_referenced_in_property_initializers),_r;const lo=GE(a);return ht<2&&(lo.kind===219?He(a,w.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):il(lo,512)&&He(a,w.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ge(lo).flags|=512,Vo(b)}afe(a)&&lNe(b,a);const C=zh(b),M=DGe(C,a);Bt(M)&&i5(a,M)&&M.declarations&&Wn(a,M.declarations,a.escapedText);let z=C.valueDeclaration;if(z&&C.flags&32&&Jl(z)&&z.name!==a){let lo=Q1(a,!1,!1);for(;lo.kind!==312&&lo.parent!==z;)lo=Q1(lo,!1,!1);lo.kind!==312&&(ge(z).flags|=262144,ge(lo).flags|=262144,ge(a).flags|=536870912)}d5(a,b);let Z=UI(C,a);const me=QM(a);if(me){if(!(C.flags&3)&&!(Rs(a)&&C.flags&512)){const lo=C.flags&384?w.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?w.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?w.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?w.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?w.Cannot_assign_to_0_because_it_is_an_import:w.Cannot_assign_to_0_because_it_is_not_a_variable;return He(a,lo,Cl(b)),_r}if(KI(C))return C.flags&3?He(a,w.Cannot_assign_to_0_because_it_is_a_constant,Cl(b)):He(a,w.Cannot_assign_to_0_because_it_is_a_read_only_property,Cl(b)),_r}const Se=C.flags&2097152;if(C.flags&3){if(me===1)return Z}else if(Se)z=og(b);else return Z;if(!z)return Z;Z=ofe(Z,a,_);const Je=rI(z).kind===169,vt=kE(z);let Pt=kE(a);const dn=Pt!==vt,yn=a.parent&&a.parent.parent&&xk(a.parent)&&Sbe(a.parent.parent),hr=b.flags&134217728,bi=Z===qr||Z===ii,Wo=bi&&a.parent.kind===235;for(;Pt!==vt&&(Pt.kind===218||Pt.kind===219||zE(Pt))&&(MV(C)&&Z!==ii||Je&&!zB(C));)Pt=kE(Pt);const aa=Je||Se||dn||yn||hr||$gt(a,z)||Z!==qr&&Z!==ii&&(!Ye||(Z.flags&16387)!==0||O7(a)||efe(a)||a.parent.kind===281)||a.parent.kind===235||z.kind===260&&z.exclamationToken||z.flags&33554432,$s=Wo?Ui:aa?Je?OBe(Z,z):Z:bi?Ui:eL(Z),Ba=Wo?aM(t8(a,Z,$s,Pt)):t8(a,Z,$s,Pt);if(!att(a)&&(Z===qr||Z===ii)){if(Ba===qr||Ba===ii)return Wt&&(He(o_(z),w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Cl(b),oa(Ba)),He(a,w.Variable_0_implicitly_has_an_1_type,Cl(b),oa(Ba))),Bfe(Ba)}else if(!aa&&!IV(Z)&&IV(Ba))return He(a,w.Variable_0_is_used_before_being_assigned,Cl(b)),Z;return me?Tx(Ba):Ba}function $gt(a,_){if(ym(_)){const b=Kr(a,ym);return b&&rI(b)===rI(_)}}function afe(a){var _;const b=a.parent;if(b){if(sa(b)&&b.expression===a||Oy(b)&&b.isTypeOnly)return!1;const C=(_=b.parent)==null?void 0:_.parent;if(C&&mh(C)&&C.isTypeOnly)return!1}return!0}function pM(a,_){return!!Kr(a,b=>b===_?"quit":S_(b)||b.parent&&Os(b.parent)&&!Ny(b.parent)&&b.parent.initializer===b)}function qgt(a,_){return Kr(a,b=>b===_?"quit":b===_.initializer||b===_.condition||b===_.incrementor||b===_.statement)}function Pbe(a){return Kr(a,_=>!_||_G(_)?"quit":kN(_,!1))}function d5(a,_){if(ht>=2||!(_.flags&34)||!_.valueDeclaration||tl(_.valueDeclaration)||_.valueDeclaration.parent.kind===299)return;const b=Bs(_.valueDeclaration),C=pM(a,b),M=Pbe(b);if(M){if(C){let z=!0;if(bk(b)){const Z=e6(_.valueDeclaration,261);if(Z&&Z.parent===b){const me=qgt(a.parent,b);if(me){const Se=ge(me);Se.flags|=8192;const Je=Se.capturedBlockScopeBindings||(Se.capturedBlockScopeBindings=[]);Dy(Je,_),me===b.initializer&&(z=!1)}}}z&&(ge(M).flags|=4096)}if(bk(b)){const z=e6(_.valueDeclaration,261);z&&z.parent===b&&BBe(a,b)&&(ge(_.valueDeclaration).flags|=65536)}ge(_.valueDeclaration).flags|=32768}C&&(ge(_.valueDeclaration).flags|=16384)}function utt(a,_){const b=ge(a);return!!b&&ni(b.capturedBlockScopeBindings,wi(_))}function BBe(a,_){let b=a;for(;b.parent.kind===217;)b=b.parent;let C=!1;if(IS(b))C=!0;else if(b.parent.kind===224||b.parent.kind===225){const M=b.parent;C=M.operator===46||M.operator===47}return C?!!Kr(b,M=>M===_?"quit":M===_.statement):!1}function zBe(a,_){if(ge(a).flags|=2,_.kind===172||_.kind===176){const b=_.parent;ge(b).flags|=4}else ge(_).flags|=4}function uNe(a){return y7(a)?a:S_(a)?void 0:B_(a,uNe)}function Dp(a){const _=wi(a),b=Rm(_);return Nl(b)===Zt}function mM(a,_,b){const C=_.parent;oC(C)&&!Dp(C)&&LN(a)&&a.flowNode&&!cNe(a.flowNode,!1)&&He(a,b)}function ftt(a,_){Os(_)&&Ny(_)&&_t&&_.initializer&&Bz(_.initializer,a.pos)&&Fx(_.parent)&&He(a,w.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function gK(a){const _=O7(a);let b=Q1(a,!0,!0),C=!1,M=!1;for(b.kind===176&&mM(a,b,w.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(b.kind===219&&(b=Q1(b,!1,!M),C=!0),b.kind===167){b=Q1(b,!C,!1),M=!0;continue}break}if(ftt(a,b),M)He(a,w.this_cannot_be_referenced_in_a_computed_property_name);else switch(b.kind){case 267:He(a,w.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:He(a,w.this_cannot_be_referenced_in_current_location);break;case 176:GBe(a,b)&&He(a,w.this_cannot_be_referenced_in_constructor_arguments);break}!_&&C&&ht<2&&zBe(a,b);const z=fNe(a,!0,b);if(tt){const Z=Vo(gr);if(z===Z&&C)He(a,w.The_containing_arrow_function_captures_the_global_value_of_this);else if(!z){const me=He(a,w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!tl(b)){const Se=fNe(b);Se&&Se!==Z&&ml(me,kc(b,w.An_outer_value_of_this_is_shadowed_by_this_container))}}}return z||gn}function fNe(a,_=!0,b=Q1(a,!1,!1)){const C=Rs(a);if(S_(b)&&(!jBe(a)||JL(b))){let M=Mk(b)||C&&Xgt(b);if(!M){const z=Ite(b);if(C&&z){const Z=n_(z).symbol;Z&&Z.members&&Z.flags&16&&(M=Rm(Z).thisType)}else JI(b)&&(M=Rm(wa(b.symbol)).thisType);M||(M=ptt(b))}if(M)return t8(a,M)}if(Jl(b.parent)){const M=wi(b.parent),z=e_(b)?Vo(M):Rm(M).thisType;return t8(a,z)}if(tl(b))if(b.commonJsModuleIndicator){const M=wi(b);return M&&Vo(M)}else{if(b.externalModuleIndicator)return Ui;if(_)return Vo(gr)}}function Kgt(a){const _=Q1(a,!1,!1);if(S_(_)){const b=Cv(_);if(b.thisParameter)return BB(b.thisParameter)}if(Jl(_.parent)){const b=wi(_.parent);return e_(_)?Vo(b):Rm(b).thisType}}function Ite(a){if(a.kind===218&&ys(a.parent)&&Qy(a.parent)===3)return a.parent.left.expression.expression;if(a.kind===174&&a.parent.kind===210&&ys(a.parent.parent)&&Qy(a.parent.parent)===6)return a.parent.parent.left.expression;if(a.kind===218&&a.parent.kind===303&&a.parent.parent.kind===210&&ys(a.parent.parent.parent)&&Qy(a.parent.parent.parent)===6)return a.parent.parent.parent.left.expression;if(a.kind===218&&Fm(a.parent)&&An(a.parent.name)&&(a.parent.name.escapedText==="value"||a.parent.name.escapedText==="get"||a.parent.name.escapedText==="set")&&Wd(a.parent.parent)&&el(a.parent.parent.parent)&&a.parent.parent.parent.arguments[2]===a.parent.parent&&Qy(a.parent.parent.parent)===9)return a.parent.parent.parent.arguments[0].expression;if(em(a)&&An(a.name)&&(a.name.escapedText==="value"||a.name.escapedText==="get"||a.name.escapedText==="set")&&Wd(a.parent)&&el(a.parent.parent)&&a.parent.parent.arguments[2]===a.parent&&Qy(a.parent.parent)===9)return a.parent.parent.arguments[0].expression}function Xgt(a){const _=iR(a);if(_&&_.typeExpression)return wl(_.typeExpression);const b=B4(a);if(b)return xC(b)}function GBe(a,_){return!!Kr(a,b=>J_(b)?"quit":b.kind===169&&b.parent===_)}function _Ne(a){const _=a.parent.kind===213&&a.parent.expression===a,b=nG(a,!0);let C=b,M=!1,z=!1;if(!_){for(;C&&C.kind===219;)il(C,512)&&(z=!0),C=nG(C,!0),M=ht<2;C&&il(C,512)&&(z=!0)}let Z=0;if(!C||!vt(C)){const Pt=Kr(a,dn=>dn===C?"quit":dn.kind===167);return Pt&&Pt.kind===167?He(a,w.super_cannot_be_referenced_in_a_computed_property_name):_?He(a,w.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(Jl(C.parent)||C.parent.kind===210)?He(a,w.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):He(a,w.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_r}if(!_&&b.kind===176&&mM(a,C,w.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e_(C)||_?(Z=32,!_&&ht>=2&&ht<=8&&(Os(C)||nu(C))&&Yz(a.parent,Pt=>{(!tl(Pt)||h1(Pt))&&(ge(Pt).flags|=2097152)})):Z=16,ge(a).flags|=Z,C.kind===174&&z&&(Z1(a.parent)&&IS(a.parent)?ge(C).flags|=256:ge(C).flags|=128),M&&zBe(a.parent,C),C.parent.kind===210)return ht<2?(He(a,w.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_r):gn;const me=C.parent;if(!oC(me))return He(a,w.super_can_only_be_referenced_in_a_derived_class),_r;const Se=Rm(wi(me)),Je=Se&&Gp(Se)[0];if(!Je)return _r;if(C.kind===176&&GBe(a,C))return He(a,w.super_cannot_be_referenced_in_constructor_arguments),_r;return Z===32?Nl(Se):M1(Je,Se.thisType);function vt(Pt){return _?Pt.kind===176:Jl(Pt.parent)||Pt.parent.kind===210?e_(Pt)?Pt.kind===174||Pt.kind===173||Pt.kind===177||Pt.kind===178||Pt.kind===172||Pt.kind===175:Pt.kind===174||Pt.kind===173||Pt.kind===177||Pt.kind===178||Pt.kind===172||Pt.kind===171||Pt.kind===176:!1}}function _tt(a){return(a.kind===174||a.kind===177||a.kind===178)&&a.parent.kind===210?a.parent:a.kind===218&&a.parent.kind===303?a.parent.parent:void 0}function dtt(a){return ji(a)&4&&a.target===bt?Tm(a)[0]:void 0}function dNe(a){return bh(a,_=>_.flags&2097152?Ot(_.types,dtt):dtt(_))}function iL(a,_){let b=a,C=_;for(;C;){const M=dNe(C);if(M)return M;if(b.parent.kind!==303)break;b=b.parent.parent,C=CO(b,void 0)}}function ptt(a){if(a.kind===219)return;if(RPe(a)){const b=yK(a);if(b){const C=b.thisParameter;if(C)return Vo(C)}}const _=Rs(a);if(tt||_){const b=_tt(a);if(b){const M=CO(b,void 0),z=iL(b,M);return z?Nf(z,$Pe(DO(b))):Bb(M?aM(M):Iv(b))}const C=Lx(a.parent);if(C.kind===226&&C.operatorToken.kind===64){const M=C.left;if(Kf(M)){const{expression:z}=M;if(_&&An(z)){const Z=ns(C);if(Z.commonJsModuleIndicator&&ED(z)===Z.symbol)return}return Bb(Iv(z))}}}}function Dw(a){const _=a.parent;if(!RPe(_))return;const b=zL(_);if(b&&b.arguments){const M=Vbe(b),z=_.parameters.indexOf(a);if(a.dotDotDotToken)return pze(M,z,M.length,gn,void 0,0);const Z=ge(b),me=Z.resolvedSignature;Z.resolvedSignature=_e;const Se=z0)return Ae(b.name,!0,!1)}}function n8(a,_){const b=GE(a);if(b){let C=r8(b,_);if(C){const M=L0(b);if(M&1){const z=(M&2)!==0;C.flags&1048576&&(C=D0(C,me=>!!MO(1,me,z)));const Z=MO(1,C,(M&2)!==0);if(!Z)return;C=Z}if(M&2){const z=bh(C,sL);return z&&gl([z,Rze(z)])}return C}}}function cfe(a,_){const b=PE(a,_);if(b){const C=sL(b);return C&&gl([C,Rze(C)])}}function hNe(a,_){const b=GE(a);if(b){const C=L0(b);let M=r8(b,_);if(M){const z=(C&2)!==0;return!a.asteriskToken&&M.flags&1048576&&(M=D0(M,Z=>!!MO(1,Z,z))),a.asteriskToken?M:MO(0,M,z)}}}function jBe(a){let _=!1;for(;a.parent&&!S_(a.parent);){if(Pu(a.parent)&&(_||a.parent.initializer===a))return!0;ym(a.parent)&&a.parent.initializer===a&&(_=!0),a=a.parent}return!1}function Nbe(a,_){const b=!!(L0(_)&2),C=r8(_,void 0);if(C)return MO(a,C,b)||void 0}function r8(a,_){const b=se(a);if(b)return b;const C=YBe(a);if(C&&!De(C))return j(C);const M=zL(a);if(M)return PE(M,_)}function mtt(a,_){const C=Vbe(a).indexOf(_);return C===-1?void 0:hK(a,C)}function hK(a,_){if(WE(a))return _===0?xe:_===1?hWe(!1):gn;const b=ge(a).resolvedSignature===Qn?Qn:oN(a);if(Y1(a)&&_===0)return TNe(b,a);const C=b.parameters.length-1;return oT(b)&&_>=C?s2(Vo(b.parameters[C]),bD(_-C),256):$I(b,_)}function gtt(a){const _=Zbe(a);return _?WI(_):void 0}function htt(a,_){if(a.parent.kind===215)return mtt(a.parent,_)}function Ygt(a,_){const b=a.parent,{left:C,operatorToken:M,right:z}=b;switch(M.kind){case 64:case 77:case 76:case 78:return a===z?Zgt(b):void 0;case 57:case 61:const Z=PE(b,_);return a===z&&(Z&&Z.pattern||!Z&&!A7(b))?yT(C):Z;case 56:case 28:return a===z?PE(b,_):void 0;default:return}}function Qgt(a){if(YD(a)&&a.symbol)return a.symbol;if(An(a))return ED(a);if(sa(a)){const b=yT(a.expression);return Gu(a.name)?_(b,a.name):Fn(b,a.name.escapedText)}if(Ed(a)){const b=Iv(a.argumentExpression);if(!yv(b))return;const C=yT(a.expression);return Fn(C,vv(b))}return;function _(b,C){const M=Fbe(C.escapedText,C);return M&&PO(b,M)}}function Zgt(a){var _,b;const C=Qy(a);switch(C){case 0:case 4:const M=Qgt(a.left),z=M&&M.valueDeclaration;if(z&&(Os(z)||Np(z))){const Se=Kb(z);return Se&&Nf(wl(Se),Mt(M).mapper)||(Os(z)?z.initializer&&yT(a.left):void 0)}return C===0?yT(a.left):z2(a);case 5:if(yNe(a,C))return z2(a);if(!YD(a.left)||!a.left.symbol)return yT(a.left);{const Se=a.left.symbol.valueDeclaration;if(!Se)return;const Je=uc(a.left,Kf),vt=Kb(Se);if(vt)return wl(vt);if(An(Je.expression)){const Pt=Je.expression,dn=Ro(Pt,Pt.escapedText,111551,void 0,Pt.escapedText,!0);if(dn){const yn=dn.valueDeclaration&&Kb(dn.valueDeclaration);if(yn){const hr=XC(Je);if(hr!==void 0)return oL(wl(yn),hr)}return}}return Rs(Se)||Se===a.left?void 0:yT(a.left)}case 1:case 6:case 3:case 2:let Z;C!==2&&(Z=YD(a.left)?(_=a.left.symbol)==null?void 0:_.valueDeclaration:void 0),Z||(Z=(b=a.symbol)==null?void 0:b.valueDeclaration);const me=Z&&Kb(Z);return me?wl(me):void 0;case 7:case 8:case 9:return ce.fail("Does not apply");default:return ce.assertNever(C)}}function yNe(a,_=Qy(a)){if(_===4)return!0;if(!Rs(a)||_!==5||!An(a.left.expression))return!1;const b=a.left.expression.escapedText,C=Ro(a.left,b,111551,void 0,void 0,!0,!0);return yP(C==null?void 0:C.valueDeclaration)}function z2(a){if(!a.symbol)return yT(a.left);if(a.symbol.valueDeclaration){const M=Kb(a.symbol.valueDeclaration);if(M){const z=wl(M);if(z)return z}}const _=uc(a.left,Kf);if(!q2(Q1(_.expression,!1,!1)))return;const b=gK(_.expression),C=XC(_);return C!==void 0&&oL(b,C)||void 0}function VBe(a){return!!(I_(a)&262144&&!a.links.type&&GP(a,0)>=0)}function oL(a,_,b){return bh(a,C=>{var M;if(by(C)&&!C.declaration.nameType){const z=mT(C),Z=Co(z)||z,me=b||qv(lf(_));if(Mp(me,Z))return K6(C,me)}else if(C.flags&3670016){const z=Fn(C,_);if(z)return VBe(z)?void 0:Vo(z);if(_p(C)&&FT(_)&&+_>=0){const Z=jI(C,C.target.fixedLength,0,!1,!0);if(Z)return Z}return(M=Ml(hg(C),b||qv(lf(_))))==null?void 0:M.type}},!0)}function i8(a,_){if(ce.assert(q2(a)),!(a.flags&67108864))return lfe(a,_)}function lfe(a,_){const b=a.parent,C=Fm(a)&&pNe(a,_);if(C)return C;const M=CO(b,_);if(M){if(GS(a)){const z=wi(a);return oL(M,z.escapedName,Mt(z).nameType)}if(nI(a)){const z=o_(a);if(z&&am(z)){const Z=n_(z.expression),me=yv(Z)&&oL(M,vv(Z));if(me)return me}}if(a.name){const z=q6(a.name);return bh(M,Z=>{var me;return(me=Ml(hg(Z),z))==null?void 0:me.type},!0)}}}function UBe(a){let _,b;for(let C=0;C{if(_p(z)){if((C===void 0||_M)?b-_:0,me=Z>0&&z.target.hasRestElement?iK(z.target,3):0;return Z>0&&Z<=me?Tm(z)[Fo(z)-Z]:jI(z,C===void 0?z.target.fixedLength:Math.min(z.target.fixedLength,C),b===void 0||M===void 0?me:Math.min(me,b-M),!1,!0)}return(!C||_iM(Se)?s2(Se,bD(Z)):Se,!0))}function HBe(a,_){const b=a.parent;return $U(b)?PE(a,_):my(b)?eht(b,a,_):void 0}function ytt(a,_){if(Pb(a)){const b=CO(a.parent,_);return!b||Q_(b)?void 0:oL(b,m3(a.name))}else return PE(a.parent,_)}function Rbe(a){switch(a.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 Rbe(a.expression);case 294:return!a.expression||Rbe(a.expression)}return!1}function vNe(a,_){return Ket(_,a)||QWe(_,Hi(Vn(gi(a.properties,b=>!!b.symbol&&b.kind===303&&Rbe(b.initializer)&&nN(_,b.symbol.escapedName)),b=>[()=>qA(b.initializer),b.symbol.escapedName]),Vn(gi(Vp(_),b=>{var C;return!!(b.flags&16777216)&&!!((C=a==null?void 0:a.symbol)!=null&&C.members)&&!a.symbol.members.has(b.escapedName)&&nN(_,b.escapedName)}),b=>[()=>Ui,b.escapedName])),Mp)}function JBe(a,_){const b=pfe(VB(a));return QWe(_,Hi(Vn(gi(a.properties,C=>!!C.symbol&&C.kind===291&&nN(_,C.symbol.escapedName)&&(!C.initializer||Rbe(C.initializer))),C=>[C.initializer?()=>qA(C.initializer):()=>Ji,C.symbol.escapedName]),Vn(gi(Vp(_),C=>{var M;if(!(C.flags&16777216)||!((M=a==null?void 0:a.symbol)!=null&&M.members))return!1;const z=a.parent.parent;return C.escapedName===b&&my(z)&&yY(z.children).length?!1:!a.symbol.members.has(C.escapedName)&&nN(_,C.escapedName)}),C=>[()=>Ui,C.escapedName])),Mp)}function CO(a,_){const b=q2(a)?i8(a,_):PE(a,_),C=ffe(b,a,_);if(C&&!(_&&_&2&&C.flags&8650752)){const M=bh(C,z=>ji(z)&32?z:O1(z),!0);return M.flags&1048576&&Wd(a)?vNe(a,M):M.flags&1048576&&iD(a)?JBe(a,M):M}}function ffe(a,_,b){if(a&&cy(a,465829888)){const C=DO(_);if(C&&b&1&>(C.inferences,Hze))return Mbe(a,C.nonFixingMapper);if(C!=null&&C.returnMapper){const M=Mbe(a,C.returnMapper);return M.flags&1048576&&W2(M.types,mi)&&W2(M.types,zo)?D0(M,z=>z!==mi&&z!==zo):M}}return a}function Mbe(a,_){return a.flags&465829888?Nf(a,_):a.flags&1048576?gl(Vn(a.types,b=>Mbe(b,_)),0):a.flags&2097152?Dd(Vn(a.types,b=>Mbe(b,_))):a}function PE(a,_){var b;if(a.flags&67108864)return;const C=Pte(a,!_);if(C>=0)return we[C];const{parent:M}=a;switch(M.kind){case 260:case 169:case 172:case 171:case 208:return sfe(a,_);case 219:case 253:return n8(a,_);case 229:return hNe(M,_);case 223:return cfe(M,_);case 213:case 214:return mtt(M,a);case 170:return gtt(M);case 216:case 234:return CN(M.type)?PE(M,_):wl(M.type);case 226:return Ygt(a,_);case 303:case 304:return lfe(M,_);case 305:return PE(M.parent,_);case 209:{const z=M,Z=CO(z,_),me=v9(z.elements,a),Se=(b=ge(z)).spreadIndices??(b.spreadIndices=UBe(z.elements));return wbe(Z,me,z.elements.length,Se.first,Se.last)}case 227:return ufe(a,_);case 239:return ce.assert(M.parent.kind===228),htt(M.parent,a);case 217:{if(Rs(M)){if(poe(M))return wl(moe(M));const z=w8(M);if(z&&!CN(z.typeExpression.type))return wl(z.typeExpression.type)}return PE(M,_)}case 235:return PE(M,_);case 238:return wl(M.type);case 277:return Tu(M);case 294:return HBe(M,_);case 291:case 293:return ytt(M,_);case 286:case 285:return $Be(M,_)}}function bNe(a){Iw(a,PE(a,void 0),!0)}function Iw(a,_,b){ve[et]=a,we[et]=_,Fe[et]=b,et++}function kte(){et--}function Pte(a,_){for(let b=et-1;b>=0;b--)if(a===ve[b]&&(_||!Fe[b]))return b;return-1}function tht(a,_){Pe[Ie]=a,dt[Ie]=_,Ie++}function nht(){Ie--}function DO(a){for(let _=Ie-1;_>=0;_--)if(N7(a,Pe[_]))return dt[_]}function $Be(a,_){if(rD(a)&&_!==4){const b=Pte(a.parent,!_);if(b>=0)return we[b]}return hK(a,0)}function TNe(a,_){return qtt(_)!==0?rht(a,_):iht(a,_)}function rht(a,_){let b=Cze(a,co);b=ENe(_,VB(_),b);const C=AD(_E.IntrinsicAttributes,_);return je(C)||(b=jp(C,b)),b}function SNe(a,_){if(a.compositeSignatures){const C=[];for(const M of a.compositeSignatures){const z=j(M);if(Q_(z))return z;const Z=wm(z,_);if(!Z)return;C.push(Z)}return Dd(C)}const b=j(a);return Q_(b)?b:wm(b,_)}function qBe(a){if(Dv(a.tagName)){const b=Itt(a),C=qNe(a,b);return WI(C)}const _=Iv(a.tagName);if(_.flags&128){const b=DNe(_,a);if(!b)return _r;const C=qNe(a,b);return WI(C)}return _}function ENe(a,_,b){const C=Lbe(_);if(C){const M=qBe(a),z=INe(C,Rs(a),M,b);if(z)return z}return b}function iht(a,_){const b=VB(_),C=uht(b);let M=C===void 0?Cze(a,co):C===""?j(a):SNe(a,C);if(!M)return C&&Nt(_.attributes.properties)&&He(_,w.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,lf(C)),co;if(M=ENe(_,b,M),Q_(M))return M;{let z=M;const Z=AD(_E.IntrinsicClassAttributes,_);if(!je(Z)){const Se=rs(Z.symbol),Je=j(a);let vt;if(Se){const Pt=FI([Je],Se,EC(Se),Rs(_));vt=Nf(Z,IE(Se,Pt))}else vt=Z;z=jp(vt,z)}const me=AD(_E.IntrinsicAttributes,_);return je(me)||(z=jp(me,z)),z}}function oht(a){return hv(Le,"noImplicitAny")?Em(a,(_,b)=>_===b||!_?_:SB(_.typeParameters,b.typeParameters)?btt(_,b):void 0):void 0}function vtt(a,_,b){if(!a||!_)return a||_;const C=gl([Vo(a),Nf(Vo(_),b)]);return xO(a,C)}function KBe(a,_,b){const C=xx(a),M=xx(_),z=C>=M?a:_,Z=z===a?_:a,me=z===a?C:M,Se=Hk(a)||Hk(_),Je=Se&&!Hk(z),vt=new Array(me+(Je?1:0));for(let Pt=0;Pt=qI(z)&&Pt>=qI(Z),aa=Pt>=C?void 0:Ute(a,Pt),$s=Pt>=M?void 0:Ute(_,Pt),Ba=aa===$s?aa:aa?$s?void 0:aa:$s,lo=Ge(1|(Wo&&!bi?16777216:0),Ba||`arg${Pt}`);lo.links.type=bi?W1(hr):hr,vt[Pt]=lo}if(Je){const Pt=Ge(1,"args");Pt.links.type=W1($I(Z,me)),Z===_&&(Pt.links.type=Nf(Pt.links.type,b)),vt[me]=Pt}return vt}function btt(a,_){const b=a.typeParameters||_.typeParameters;let C;a.typeParameters&&_.typeParameters&&(C=IE(_.typeParameters,a.typeParameters));const M=a.declaration,z=KBe(a,_,C),Z=vtt(a.thisParameter,_.thisParameter,C),me=Math.max(a.minArgumentCount,_.minArgumentCount),Se=i2(M,b,Z,z,void 0,void 0,me,(a.flags|_.flags)&167);return Se.compositeKind=2097152,Se.compositeSignatures=Hi(a.compositeKind===2097152&&a.compositeSignatures||[a],[_]),C&&(Se.mapper=a.compositeKind===2097152&&a.mapper&&a.compositeSignatures?q4(a.mapper,C):C),Se}function XBe(a,_){const b=Ti(a,0),C=gi(b,M=>!Ttt(M,_));return C.length===1?C[0]:oht(C)}function Ttt(a,_){let b=0;for(;b<_.parameters.length;b++){const C=_.parameters[b];if(C.initializer||C.questionToken||C.dotDotDotToken||iW(C))break}return _.parameters.length&&oI(_.parameters[0])&&b--,!Hk(a)&&xx(a)Z[yn]&8?Wb(dn,an)||gn:dn),2):Ye?qd:xu,Se))}function kw(a){if(!(ji(a)&4))return a;let _=a.literalType;return _||(_=a.literalType=yO(a),_.objectFlags|=147456),_}function sht(a){switch(a.kind){case 167:return cht(a);case 80:return FT(a.escapedText);case 9:case 11:return FT(a.text);default:return!1}}function cht(a){return lh(Pw(a),296)}function Pw(a){const _=ge(a.expression);if(!_.resolvedType){if((e0(a.parent.parent)||Jl(a.parent.parent)||Kp(a.parent.parent))&&ys(a.expression)&&a.expression.operatorToken.kind===103&&a.parent.kind!==177&&a.parent.kind!==178)return _.resolvedType=_r;if(_.resolvedType=n_(a.expression),Os(a.parent)&&!Ny(a.parent)&&B0(a.parent.parent)){const b=Bs(a.parent.parent),C=Pbe(b);C&&(ge(C).flags|=4096,ge(a).flags|=32768,ge(a.parent.parent).flags|=32768)}(_.resolvedType.flags&98304||!lh(_.resolvedType,402665900)&&!Mp(_.resolvedType,mu))&&He(a,w.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return _.resolvedType}function IO(a){var _;const b=(_=a.declarations)==null?void 0:_[0];return FT(a.escapedName)||b&&Xv(b)&&sht(b.name)}function xNe(a){var _;const b=(_=a.declarations)==null?void 0:_[0];return vH(a)||b&&Xv(b)&&am(b.name)&&lh(Pw(b.name),4096)}function ZBe(a,_,b,C){const M=[];for(let Z=_;Z0&&(me=J4(me,Xa(),a.symbol,bi,vt),Z=[],z=Td(),aa=!1,$s=!1,Ba=!1);const hs=HT(n_(Go.expression,_&2));if(Nte(hs)){const Ld=Lue(hs,vt);if(M&&Att(Ld,M,Go),lo=Z.length,je(me))continue;me=J4(me,Ld,a.symbol,bi,vt)}else He(Go,w.Spread_types_may_only_be_created_from_object_types),me=_r;continue}else ce.assert(Go.kind===177||Go.kind===178),FK(Go);Ga&&!(Ga.flags&8576)?Mp(Ga,mu)&&(Mp(Ga,an)?$s=!0:Mp(Ga,Qa)?Ba=!0:aa=!0,C&&(Wo=!0)):z.set(Pa.escapedName,Pa),Z.push(Pa)}if(kte(),Je){const Go=Kr(Se.pattern.parent,Ga=>Ga.kind===260||Ga.kind===226||Ga.kind===169);if(Kr(a,Ga=>Ga===Go||Ga.kind===305).kind!==305)for(const Ga of Vp(Se))!z.get(Ga.escapedName)&&!Fn(me,Ga.escapedName)&&(Ga.flags&16777216||He(Ga.valueDeclaration||((b=to(Ga,uk))==null?void 0:b.links.bindingElement),w.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),z.set(Ga.escapedName,Ga),Z.push(Ga))}if(je(me))return _r;if(me!==Yu)return Z.length>0&&(me=J4(me,Xa(),a.symbol,bi,vt),Z=[],z=Td(),aa=!1,$s=!1),bh(me,Go=>Go===Yu?Xa():Go);return Xa();function Xa(){const Go=[];aa&&Go.push(ZBe(a,lo,Z,xe)),$s&&Go.push(ZBe(a,lo,Z,an)),Ba&&Go.push(ZBe(a,lo,Z,Qa));const Pa=jo(a.symbol,z,Zn,Zn,Go);return Pa.objectFlags|=bi|128|131072,hr&&(Pa.objectFlags|=4096),Wo&&(Pa.objectFlags|=512),C&&(Pa.pattern=a),Pa}}function Nte(a){const _=_Be(bh(a,DE));return!!(_.flags&126615553||_.flags&3145728&&jr(_.types,Nte))}function tze(a){kO(a)}function nze(a,_){return FK(a),wte(a)||gn}function xtt(a){kO(a.openingElement),Dv(a.closingElement.tagName)?jB(a.closingElement):n_(a.closingElement.tagName),ANe(a)}function xD(a,_){return FK(a),wte(a)||gn}function rze(a){kO(a.openingFragment);const _=ns(a);return VH(Le)&&(Le.jsxFactory||_.pragmas.has("jsx"))&&!Le.jsxFragmentFactory&&!_.pragmas.has("jsxfrag")&&He(a,Le.jsxFactory?w.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:w.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ANe(a),wte(a)||gn}function _fe(a){return Ub(a,"-")}function Dv(a){return An(a)&&z9(a.escapedText)||dI(a)}function p5(a,_){return a.initializer?$te(a.initializer,_):Ji}function ize(a,_=0){const b=a.attributes,C=PE(b,0),M=Ye?Td():void 0;let z=Td(),Z=Tv,me=!1,Se,Je=!1,vt=2048;const Pt=pfe(VB(a));for(const hr of b.properties){const bi=hr.symbol;if(Pb(hr)){const Wo=p5(hr,_);vt|=ji(Wo)&458752;const aa=Ge(4|bi.flags,bi.escapedName);if(aa.declarations=bi.declarations,aa.parent=bi.parent,bi.valueDeclaration&&(aa.valueDeclaration=bi.valueDeclaration),aa.links.type=Wo,aa.links.target=bi,z.set(aa.escapedName,aa),M==null||M.set(aa.escapedName,aa),m3(hr.name)===Pt&&(Je=!0),C){const $s=Fn(C,bi.escapedName);$s&&$s.declarations&&Bt($s)&&An(hr.name)&&Wn(hr.name,$s.declarations,hr.name.escapedText)}if(C&&_&2&&!(_&4)&&nA(hr)){const $s=DO(b);ce.assert($s);const Ba=hr.initializer.expression;Xl($s,Ba,Wo)}}else{ce.assert(hr.kind===293),z.size>0&&(Z=J4(Z,yn(),b.symbol,vt,!1),z=Td());const Wo=HT(n_(hr.expression,_&2));Q_(Wo)&&(me=!0),Nte(Wo)?(Z=J4(Z,Wo,b.symbol,vt,!1),M&&Att(Wo,M,hr)):(He(hr.expression,w.Spread_types_may_only_be_created_from_object_types),Se=Se?Dd([Se,Wo]):Wo)}}me||z.size>0&&(Z=J4(Z,yn(),b.symbol,vt,!1));const dn=a.parent.kind===284?a.parent:void 0;if(dn&&dn.openingElement===a&&dn.children.length>0){const hr=ANe(dn,_);if(!me&&Pt&&Pt!==""){Je&&He(b,w._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,lf(Pt));const bi=CO(a.attributes,void 0),Wo=bi&&oL(bi,Pt),aa=Ge(4,Pt);aa.links.type=hr.length===1?hr[0]:Wo&&dM(Wo,LB)?$v(hr):W1(gl(hr)),aa.valueDeclaration=be.createPropertySignature(void 0,lf(Pt),void 0,void 0),kl(aa.valueDeclaration,b),aa.valueDeclaration.symbol=aa;const $s=Td();$s.set(Pt,aa),Z=J4(Z,jo(b.symbol,$s,Zn,Zn,Zn),b.symbol,vt,!1)}}if(me)return gn;if(Se&&Z!==Tv)return Dd([Se,Z]);return Se||(Z===Tv?yn():Z);function yn(){vt|=un;const hr=jo(b.symbol,z,Zn,Zn,Zn);return hr.objectFlags|=vt|128|131072,hr}}function ANe(a,_){const b=[];for(const C of a.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||b.push(xe);else{if(C.kind===294&&!C.expression)continue;b.push($te(C,_))}return b}function Att(a,_,b){for(const C of Vp(a))if(!(C.flags&16777216)){const M=_.get(C.escapedName);if(M){const z=He(M.valueDeclaration,w._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,lf(M.escapedName));ml(z,kc(b,w.This_spread_always_overwrites_this_property))}}}function Ctt(a,_){return ize(a.parent,_)}function AD(a,_){const b=VB(_),C=b&&Gt(b),M=C&&Jn(C,a,788968);return M?Rm(M):_r}function jB(a){const _=ge(a);if(!_.resolvedSymbol){const b=AD(_E.IntrinsicElements,a);if(je(b))return Wt&&He(a,w.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,lf(_E.IntrinsicElements)),_.resolvedSymbol=Ir;{if(!An(a.tagName)&&!dI(a.tagName))return ce.fail();const C=Fn(b,dI(a.tagName)?bR(a.tagName):a.tagName.escapedText);return C?(_.jsxFlags|=1,_.resolvedSymbol=C):pb(b,xe)?(_.jsxFlags|=2,_.resolvedSymbol=b.symbol):(He(a,w.Property_0_does_not_exist_on_type_1,goe(a.tagName),"JSX."+_E.IntrinsicElements),_.resolvedSymbol=Ir)}}return _.resolvedSymbol}function CNe(a){const _=a&&ns(a),b=_&&ge(_);if(b&&b.jsxImplicitImportContainer===!1)return;if(b&&b.jsxImplicitImportContainer)return b.jsxImplicitImportContainer;const C=HH(UH(Le,_),Le);if(!C)return;const z=Jd(Le)===1?w.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:w.Cannot_find_module_0_or_its_corresponding_type_declarations,Z=FS(a,C,z,a),me=Z&&Z!==Ir?wa(wp(Z)):void 0;return b&&(b.jsxImplicitImportContainer=me||!1),me}function VB(a){const _=a&&ge(a);if(_&&_.jsxNamespace)return _.jsxNamespace;if(!_||_.jsxNamespace!==!1){let C=CNe(a);if(!C||C===Ir){const M=us(a);C=Ro(a,M,1920,void 0,M,!1)}if(C){const M=wp(Jn(Gt(wp(C)),_E.JSX,1920));if(M&&M!==Ir)return _&&(_.jsxNamespace=M),M}_&&(_.jsxNamespace=!1)}const b=wp(t5(_E.JSX,1920,void 0));if(b!==Ir)return b}function dfe(a,_){const b=_&&Jn(_.exports,a,788968),C=b&&Rm(b),M=C&&Vp(C);if(M){if(M.length===0)return"";if(M.length===1)return M[0].escapedName;M.length>1&&b.declarations&&He(b.declarations[0],w.The_global_type_JSX_0_may_not_have_more_than_one_property,lf(a))}}function Lbe(a){return a&&Jn(a.exports,_E.LibraryManagedAttributes,788968)}function Dtt(a){return a&&Jn(a.exports,_E.ElementType,788968)}function uht(a){return dfe(_E.ElementAttributesPropertyNameContainer,a)}function pfe(a){return dfe(_E.ElementChildrenAttributeNameContainer,a)}function oze(a,_){if(a.flags&4)return[_e];if(a.flags&128){const M=DNe(a,_);return M?[qNe(_,M)]:(He(_,w.Property_0_does_not_exist_on_type_1,a.value,"JSX."+_E.IntrinsicElements),Zn)}const b=O1(a);let C=Ti(b,1);return C.length===0&&(C=Ti(b,0)),C.length===0&&b.flags&1048576&&(C=JF(Vn(b.types,M=>oze(M,_)))),C}function DNe(a,_){const b=AD(_E.IntrinsicElements,_);if(!je(b)){const C=a.value,M=Fn(b,ty(C));if(M)return Vo(M);const z=pb(b,xe);return z||void 0}return gn}function fht(a,_,b){if(a===1){const M=vK(b);M&&dc(_,M,Jc,b.tagName,w.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(a===0){const M=ktt(b);M&&dc(_,M,Jc,b.tagName,w.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const M=vK(b),z=ktt(b);if(!M||!z)return;const Z=gl([M,z]);dc(_,Z,Jc,b.tagName,w.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const M=Yv(b.tagName);return Es(void 0,w._0_cannot_be_used_as_a_JSX_component,M)}}function Itt(a){ce.assert(Dv(a.tagName));const _=ge(a);if(!_.resolvedJsxElementAttributesType){const b=jB(a);return _.jsxFlags&1?_.resolvedJsxElementAttributesType=Vo(b)||_r:_.jsxFlags&2?_.resolvedJsxElementAttributesType=pb(AD(_E.IntrinsicElements,a),xe)||_r:_.resolvedJsxElementAttributesType=_r}return _.resolvedJsxElementAttributesType}function ktt(a){const _=AD(_E.ElementClass,a);if(!je(_))return _}function wte(a){return AD(_E.Element,a)}function vK(a){const _=wte(a);if(_)return gl([_,$e])}function DC(a){const _=VB(a);if(!_)return;const b=Dtt(_);if(!b)return;const C=INe(b,Rs(a));if(!(!C||je(C)))return C}function INe(a,_,...b){const C=Rm(a);if(a.flags&524288){const M=Mt(a).typeParameters;if(Nt(M)>=b.length){const z=FI(b,M,b.length,_);return Nt(z)===0?C:Mc(a,z)}}if(Nt(C.typeParameters)>=b.length){const M=FI(b,C.typeParameters,b.length,_);return jA(C,M)}}function _ht(a){const _=AD(_E.IntrinsicElements,a);return _?Vp(_):Zn}function IC(a){(Le.jsx||0)===0&&He(a,w.Cannot_use_JSX_unless_the_jsx_flag_is_provided),wte(a)===void 0&&Wt&&He(a,w.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function kO(a){const _=Y1(a);if(_&&BGe(a),IC(a),!CNe(a)){const b=no&&Le.jsx===2?w.Cannot_find_name_0:void 0,C=us(a),M=_?a.tagName:a;let z;if(zx(a)&&C==="null"||(z=Ro(M,C,111551,b,C,!0)),z&&(z.isReferenced=67108863,Ur&&z.flags&2097152&&!da(z)&&t_(z)),zx(a)){const Z=ns(a),me=Au(Z);me&&Ro(M,me,111551,b,me,!0)}}if(_){const b=a,C=oN(b);XNe(C,a);const M=DC(b);if(M!==void 0){const z=b.tagName,Z=Dv(z)?qv(goe(z)):n_(z);dc(Z,M,Jc,z,w.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const me=Yv(z);return Es(void 0,w._0_cannot_be_used_as_a_JSX_component,me)})}else fht(qtt(b),j(C),b)}}function kNe(a,_,b){if(a.flags&524288){if(o2(a,_)||yx(a,_)||s0(_)&&Cd(a,xe)||b&&_fe(_))return!0}else if(a.flags&3145728&&Rte(a)){for(const C of a.types)if(kNe(C,_,b))return!0}return!1}function Rte(a){return!!(a.flags&524288&&!(ji(a)&512)||a.flags&67108864||a.flags&1048576&>(a.types,Rte)||a.flags&2097152&&jr(a.types,Rte))}function Ptt(a,_){if(Ort(a),a.expression){const b=n_(a.expression,_);return a.dotDotDotToken&&b!==gn&&!UA(b)&&He(a,w.JSX_spread_child_must_be_an_array_type),b}else return _r}function PNe(a){return a.valueDeclaration?x5(a.valueDeclaration):0}function bK(a){if(a.flags&8192||I_(a)&4)return!0;if(Rs(a.valueDeclaration)){const _=a.valueDeclaration.parent;return _&&ys(_)&&Qy(_)===3}}function NNe(a,_,b,C,M,z=!0){const Z=z?a.kind===166?a.right:a.kind===205?a:a.kind===208&&a.propertyName?a.propertyName:a.name:void 0;return Ntt(a,_,b,C,M,Z)}function Ntt(a,_,b,C,M,z){const Z=Vy(M,b);if(_){if(ht<2&&wtt(M))return z&&He(z,w.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(Z&256)return z&&He(z,w.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Cl(M),oa(RB(M))),!1}if(Z&256&&wtt(M)&&(b7(a)||xde(a)||E1(a.parent)&&yP(a.parent.parent))){const Se=RS(Uf(M));if(Se&&Trt(a))return z&&He(z,w.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Cl(M),aC(Se.name)),!1}if(!(Z&24))return!0;if(Z&8){const Se=RS(Uf(M));return qfe(a,Se)?!0:(z&&He(z,w.Property_0_is_private_and_only_accessible_within_class_1,Cl(M),oa(RB(M))),!1)}if(_)return!0;let me=cne(a,Se=>{const Je=Rm(wi(Se));return Ret(Je,M,b)});return!me&&(me=aze(a),me=me&&Ret(me,M,b),Z&32||!me)?(z&&He(z,w.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Cl(M),oa(RB(M)||C)),!1):Z&32?!0:(C.flags&262144&&(C=C.isThisType?Wi(C):Co(C)),!C||!wI(C,me)?(z&&He(z,w.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Cl(M),oa(me),oa(C)),!1):!0)}function aze(a){const _=dht(a);let b=(_==null?void 0:_.type)&&wl(_.type);if(b&&b.flags&262144&&(b=Wi(b)),b&&ji(b)&7)return UT(b)}function dht(a){const _=Q1(a,!1,!1);return _&&S_(_)?JL(_):void 0}function wtt(a){return!!lbe(a,_=>!(_.flags&8192))}function TK(a){return HI(n_(a),a)}function wNe(a){return!!(bS(a)&50331648)}function Mte(a){return wNe(a)?aM(a):a}function pht(a,_){const b=Uh(a)?oE(a):void 0;if(a.kind===106){He(a,w.The_value_0_cannot_be_used_here,"null");return}if(b!==void 0&&b.length<100){if(An(a)&&b==="undefined"){He(a,w.The_value_0_cannot_be_used_here,"undefined");return}He(a,_&16777216?_&33554432?w._0_is_possibly_null_or_undefined:w._0_is_possibly_undefined:w._0_is_possibly_null,b)}else He(a,_&16777216?_&33554432?w.Object_is_possibly_null_or_undefined:w.Object_is_possibly_undefined:w.Object_is_possibly_null)}function Rtt(a,_){He(a,_&16777216?_&33554432?w.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:w.Cannot_invoke_an_object_which_is_possibly_undefined:w.Cannot_invoke_an_object_which_is_possibly_null)}function Mtt(a,_,b){if(Ye&&a.flags&2){if(Uh(_)){const M=oE(_);if(M.length<100)return He(_,w._0_is_of_type_unknown,M),_r}return He(_,w.Object_is_of_type_unknown),_r}const C=bS(a);if(C&50331648){b(_,C);const M=aM(a);return M.flags&229376?_r:M}return a}function HI(a,_){return Mtt(a,_,pht)}function Ltt(a,_){const b=HI(a,_);if(b.flags&16384){if(Uh(_)){const C=oE(_);if(An(_)&&C==="undefined")return He(_,w.The_value_0_cannot_be_used_here,C),b;if(C.length<100)return He(_,w._0_is_possibly_undefined,C),b}He(_,w.Object_is_possibly_undefined)}return b}function o8(a,_,b){return a.flags&64?Ott(a,_):sze(a,a.expression,TK(a.expression),a.name,_,b)}function Ott(a,_){const b=n_(a.expression),C=Kue(b,a.expression);return fbe(sze(a,a.expression,HI(C,a.expression),a.name,_),a,C!==b)}function Ftt(a,_){const b=Cs(a)&&Zy(a.left)?HI(gK(a.left),a.left):TK(a.left);return sze(a,a.left,b,a.right,_)}function Obe(a){for(;a.parent.kind===217;)a=a.parent;return IN(a.parent)&&a.parent.expression===a}function Fbe(a,_){for(let b=MT(_);b;b=h0(b)){const{symbol:C}=b,M=R7(C,a),z=C.members&&C.members.get(M)||C.exports&&C.exports.get(M);if(z)return z}}function mht(a){if(!h0(a))return Po(a,w.Private_identifiers_are_not_allowed_outside_class_bodies);if(!cpe(a.parent)){if(!Gy(a))return Po(a,w.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 _=ys(a.parent)&&a.parent.operatorToken.kind===103;if(!RNe(a)&&!_)return Po(a,w.Cannot_find_name_0,ec(a))}return!1}function Lte(a){mht(a);const _=RNe(a);return _&&OV(_,void 0,!1),gn}function RNe(a){if(!Gy(a))return;const _=ge(a);return _.resolvedSymbol===void 0&&(_.resolvedSymbol=Fbe(a.escapedText,a)),_.resolvedSymbol}function PO(a,_){return Fn(a,_.escapedName)}function Uk(a,_,b){let C;const M=Vp(a);M&&Ot(M,Z=>{const me=Z.valueDeclaration;if(me&&Xv(me)&&Gu(me.name)&&me.name.escapedText===_.escapedText)return C=Z,!0});const z=bl(_);if(C){const Z=ce.checkDefined(C.valueDeclaration),me=ce.checkDefined(h0(Z));if(b!=null&&b.valueDeclaration){const Se=b.valueDeclaration,Je=h0(Se);if(ce.assert(!!Je),Kr(Je,vt=>me===vt)){const vt=He(_,w.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,z,oa(a));return ml(vt,kc(Se,w.The_shadowing_declaration_of_0_is_defined_here,z),kc(Z,w.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,z)),!0}}return He(_,w.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,z,bl(me.name||Tae)),!0}return!1}function Ex(a,_){return(BS(_)||b7(a)&&N2(_))&&Q1(a,!0,!1)===pS(_)}function sze(a,_,b,C,M,z){const Z=ge(_).resolvedSymbol,me=QM(a),Se=O1(me!==0||Obe(a)?Bb(b):b),Je=Q_(Se)||Se===ou;let vt;if(Gu(C)){ht<99&&(me!==0&&Jy(a,1048576),me!==1&&Jy(a,524288));const dn=Fbe(C.escapedText,C);if(me&&dn&&dn.valueDeclaration&&em(dn.valueDeclaration)&&Po(C,w.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,ec(C)),Je){if(dn)return je(Se)?_r:Se;if(MT(C)===void 0)return Po(C,w.Private_identifiers_are_not_allowed_outside_class_bodies),gn}if(vt=dn&&PO(b,dn),vt===void 0){if(Uk(b,C,dn))return _r;const yn=MT(C);yn&&y2(ns(yn),Le.checkJs)&&Po(C,w.Private_field_0_must_be_declared_in_an_enclosing_class,ec(C))}else vt.flags&65536&&!(vt.flags&32768)&&me!==1&&He(a,w.Private_accessor_was_defined_without_a_getter)}else{if(Je)return An(_)&&Z&&lNe(Z,a),je(Se)?_r:Se;vt=Fn(Se,C.escapedText,!1,a.kind===166)}An(_)&&Z&&(F0(Le)||!(vt&&(qk(vt)||vt.flags&8&&a.parent.kind===306))||gk(Le)&&ctt(a))&&lNe(Z,a);let Pt;if(vt){const dn=DGe(vt,C);if(Bt(dn)&&i5(a,dn)&&dn.declarations&&Wn(C,dn.declarations,C.escapedText),ght(vt,a,C),OV(vt,a,uze(_,Z)),ge(a).resolvedSymbol=vt,NNe(a,_.kind===108,o6(a),Se,vt),nwe(a,vt,me))return He(C,w.Cannot_assign_to_0_because_it_is_a_read_only_property,ec(C)),_r;Pt=Ex(a,vt)?qr:z||RH(a)?z6(vt):Vo(vt)}else{const dn=!Gu(C)&&(me===0||!nM(b)||p3(b))?yx(Se,C.escapedText):void 0;if(!(dn&&dn.type)){const yn=lv(a,b.symbol,!0);return!yn&&oK(b)?gn:b.symbol===gr?(gr.exports.has(C.escapedText)&&gr.exports.get(C.escapedText).flags&418?He(C,w.Property_0_does_not_exist_on_type_1,lf(C.escapedText),oa(b)):Wt&&He(C,w.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,oa(b)),gn):(C.escapedText&&!ma(a)&&cze(C,p3(b)?Se:b,yn),_r)}dn.isReadonly&&(IS(a)||kde(a))&&He(a,w.Index_signature_in_type_0_only_permits_reading,oa(Se)),Pt=Le.noUncheckedIndexedAccess&&!IS(a)?gl([dn.type,We]):dn.type,Le.noPropertyAccessFromIndexSignature&&sa(a)&&He(C,w.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,lf(C.escapedText)),dn.declaration&&ln(dn.declaration)&&Wn(C,[dn.declaration],C.escapedText)}return Wbe(a,vt,Pt,C,M)}function lv(a,_,b){const C=ns(a);if(C&&Le.checkJs===void 0&&C.checkJsDirective===void 0&&(C.scriptKind===1||C.scriptKind===2)){const M=Ot(_==null?void 0:_.declarations,ns);return!(C!==M&&M&&mn(M))&&!(b&&_&&_.flags&32)&&!(a&&b&&sa(a)&&a.expression.kind===110)}return!1}function Wbe(a,_,b,C,M){const z=QM(a);if(z===1)return l5(b,!!(_&&_.flags&16777216));if(_&&!(_.flags&98311)&&!(_.flags&8192&&b.flags&1048576)&&!Bwe(_.declarations))return b;if(b===qr)return VP(a,_);b=ofe(b,a,M);let Z=!1;if(Ye&&zt&&Kf(a)&&a.expression.kind===110){const Se=_&&_.valueDeclaration;if(Se&&s1(Se)&&!e_(Se)){const Je=kE(a);Je.kind===176&&Je.parent===Se.parent&&!(Se.flags&33554432)&&(Z=!0)}}else Ye&&_&&_.valueDeclaration&&sa(_.valueDeclaration)&&N9(_.valueDeclaration)&&kE(a)===kE(_.valueDeclaration)&&(Z=!0);const me=t8(a,b,Z?eL(b):b);return Z&&!IV(b)&&IV(me)?(He(C,w.Property_0_is_used_before_being_assigned,Cl(_)),b):z?Tx(me):me}function ght(a,_,b){const{valueDeclaration:C}=a;if(!C||ns(_).isDeclarationFile)return;let M;const z=ec(b);Th(_)&&!Zq(C)&&!(Kf(_)&&Kf(_.expression))&&!Lr(C,b)&&!(em(C)&&E5(C)&32)&&(Dt||!Wtt(a))?M=He(b,w.Property_0_is_used_before_its_initialization,z):C.kind===263&&_.parent.kind!==183&&!(C.flags&33554432)&&!Lr(C,b)&&(M=He(b,w.Class_0_used_before_its_declaration,z)),M&&ml(M,kc(C,w._0_is_declared_here,z))}function Th(a){return!!Kr(a,_=>{switch(_.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 E_(_.parent)&&nu(_.parent.parent)?!0:"quit";default:return Gy(_)?!1:"quit"}})}function Wtt(a){if(!(a.parent.flags&32))return!1;let _=Vo(a.parent);for(;;){if(_=_.symbol&&Ote(_),!_)return!1;const b=Fn(_,a.escapedName);if(b&&b.valueDeclaration)return!0}}function Ote(a){const _=Gp(a);if(_.length!==0)return Dd(_)}function cze(a,_,b){let C,M;if(!Gu(a)&&_.flags&1048576&&!(_.flags&402784252)){for(const Z of _.types)if(!Fn(Z,a.escapedText)&&!yx(Z,a.escapedText)){C=Es(C,w.Property_0_does_not_exist_on_type_1,Ud(a),oa(Z));break}}if(m5(a.escapedText,_)){const Z=Ud(a),me=oa(_);C=Es(C,w.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Z,me,me+"."+Z)}else{const Z=Mfe(_);if(Z&&Fn(Z,a.escapedText))C=Es(C,w.Property_0_does_not_exist_on_type_1,Ud(a),oa(_)),M=kc(a,w.Did_you_forget_to_use_await);else{const me=Ud(a),Se=oa(_),Je=hht(me,_);if(Je!==void 0)C=Es(C,w.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,me,Se,Je);else{const vt=LNe(a,_);if(vt!==void 0){const Pt=mp(vt),dn=b?w.Property_0_may_not_exist_on_type_1_Did_you_mean_2:w.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=Es(C,dn,me,Se,Pt),M=vt.valueDeclaration&&kc(vt.valueDeclaration,w._0_is_declared_here,Pt)}else{const Pt=SK(_)?w.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:w.Property_0_does_not_exist_on_type_1;C=Es(bn(C,_),Pt,me,Se)}}}}const z=RN(ns(a),a,C);M&&ml(z,M),Hn(!b||C.code!==w.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,z)}function SK(a){return Le.lib&&!Le.lib.includes("dom")&&NBe(a,_=>_.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(lf(_.symbol.escapedName)))&&rM(a)}function m5(a,_){const b=_.symbol&&Fn(Vo(_.symbol),a);return b!==void 0&&!!b.valueDeclaration&&e_(b.valueDeclaration)}function EK(a){const _=bl(a),C=rY().get(_);return C&&sX(C.keys())}function hht(a,_){const b=O1(_).symbol;if(!b)return;const C=mp(b),z=rY().get(C);if(z){for(const[Z,me]of z)if(ni(me,a))return Z}}function MNe(a,_){return LV(a,Vp(_),106500)}function LNe(a,_){let b=Vp(_);if(typeof a!="string"){const C=a.parent;sa(C)&&(b=gi(b,M=>Gtt(C,_,M))),a=ec(a)}return LV(a,b,111551)}function Btt(a,_){const b=As(a)?a:ec(a),C=Vp(_);return(b==="for"?lr(C,z=>mp(z)==="htmlFor"):b==="class"?lr(C,z=>mp(z)==="className"):void 0)??LV(b,C,111551)}function lze(a,_){const b=LNe(a,_);return b&&mp(b)}function Fte(a,_,b){return ce.assert(_!==void 0,"outername should always be defined"),Ts(a,_,b,void 0,_,!1,!1,!0,(M,z,Z)=>{ce.assertEqual(_,z,"name should equal outerName");const me=Jn(M,z,Z);if(me)return me;let Se;return M===Ut?Se=Qo(["string","number","boolean","object","bigint","symbol"],vt=>M.has(vt.charAt(0).toUpperCase()+vt.slice(1))?Ge(524288,vt):void 0).concat(oc(M.values())):Se=oc(M.values()),LV(lf(z),Se,Z)})}function yht(a,_,b){const C=Fte(a,_,b);return C&&mp(C)}function ONe(a,_){return _.exports&&LV(ec(a),i0(_),2623475)}function ztt(a,_){const b=ONe(a,_);return b&&mp(b)}function vht(a,_,b){function C(Z){const me=o2(a,Z);if(me){const Se=NO(Vo(me));return!!Se&&qI(Se)>=1&&Mp(b,$I(Se,0))}return!1}const M=IS(_)?"set":"get";if(!C(M))return;let z=z7(_.expression);return z===void 0?z=M:z+="."+M,z}function FNe(a,_){const b=_.types.filter(C=>!!(C.flags&128));return fh(a.value,b,C=>C.value)}function LV(a,_,b){return fh(a,_,C);function C(M){const z=mp(M);if(!xf(z,'"')){if(M.flags&b)return z;if(M.flags&2097152){const Z=r1(M);if(Z&&Z.flags&b)return z}}}}function OV(a,_,b){const C=a&&a.flags&106500&&a.valueDeclaration;if(!C)return;const M=Ab(C,8),z=a.valueDeclaration&&Xv(a.valueDeclaration)&&Gu(a.valueDeclaration.name);if(!(!M&&!z)&&!(_&&RH(_)&&!(a.flags&65536))){if(b){const Z=Kr(_,J_);if(Z&&Z.symbol===a)return}(I_(a)&1?Mt(a).target:a).isReferenced=67108863}}function uze(a,_){return a.kind===110||!!_&&Uh(a)&&_===ED(NS(a))}function bht(a,_){switch(a.kind){case 211:return Wte(a,a.expression.kind===108,_,Bb(n_(a.expression)));case 166:return Wte(a,!1,_,Bb(n_(a.left)));case 205:return Wte(a,!1,_,wl(a))}}function Gtt(a,_,b){return Bte(a,a.kind===211&&a.expression.kind===108,!1,_,b)}function Wte(a,_,b,C){if(Q_(C))return!0;const M=Fn(C,b);return!!M&&Bte(a,_,!1,C,M)}function Bte(a,_,b,C,M){if(Q_(C))return!0;if(M.valueDeclaration&&Mf(M.valueDeclaration)){const z=h0(M.valueDeclaration);return!ky(a)&&!!Kr(a,Z=>Z===z)}return Ntt(a,_,b,C,M)}function WNe(a){const _=a.initializer;if(_.kind===261){const b=_.declarations[0];if(b&&!ld(b.name))return wi(b)}else if(_.kind===80)return ED(_)}function BNe(a){return T_(a).length===1&&!!Cd(a,an)}function jtt(a){const _=_g(a);if(_.kind===80){const b=ED(_);if(b.flags&3){let C=a,M=a.parent;for(;M;){if(M.kind===249&&C===M.statement&&WNe(M)===b&&BNe(yT(M.expression)))return!0;C=M,M=M.parent}}}return!1}function a8(a,_){return a.flags&64?Tht(a,_):zte(a,TK(a.expression),_)}function Tht(a,_){const b=n_(a.expression),C=Kue(b,a.expression);return fbe(zte(a,HI(C,a.expression),_),a,C!==b)}function zte(a,_,b){const C=QM(a)!==0||Obe(a)?Bb(_):_,M=a.argumentExpression,z=n_(M);if(je(C)||C===ou)return C;if(Dfe(C)&&!sp(M))return He(M,w.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_r;const Z=jtt(M)?an:z,me=IS(a)?4|(nM(C)&&!p3(C)?2:0):32,Se=Wb(C,Z,me,a)||_r;return Lnt(Wbe(a,ge(a).resolvedSymbol,Se,M,b),a)}function Bbe(a){return IN(a)||Hm(a)||Y1(a)}function xK(a){return Bbe(a)&&Ot(a.typeArguments,bp),a.kind===215?n_(a.template):Y1(a)?n_(a.attributes):a.kind!==170&&Ot(a.arguments,_=>{n_(_)}),_e}function iN(a){return xK(a),vn}function Gte(a,_,b){let C,M,z=0,Z,me=-1,Se;ce.assert(!_.length);for(const Je of a){const vt=Je.declaration&&wi(Je.declaration),Pt=Je.declaration&&Je.declaration.parent;!M||vt===M?C&&Pt===C?Z=Z+1:(C=Pt,Z=z):(Z=z=_.length,C=Pt),M=vt,ULe(Je)?(me++,Se=me,z++):Se=Z,_.splice(Se,0,b?R4(Je,b):Je)}}function zNe(a){return!!a&&(a.kind===230||a.kind===237&&a.isSpread)}function GNe(a){return Ho(a,zNe)}function Vtt(a){return!!(a.flags&16384)}function Utt(a){return!!(a.flags&49155)}function zbe(a,_,b,C=!1){let M,z=!1,Z=xx(b),me=qI(b);if(a.kind===215)if(M=_.length,a.template.kind===228){const Se=yl(a.template.templateSpans);z=Um(Se.literal)||!!Se.literal.isUnterminated}else{const Se=a.template;ce.assert(Se.kind===15),z=!!Se.isUnterminated}else if(a.kind===170)M=Xtt(a,b);else if(Y1(a)){if(z=a.attributes.end===a.end,z)return!0;M=me===0?_.length:1,Z=_.length===0?Z:1,me=Math.min(me,1)}else if(a.arguments){M=C?_.length+1:_.length,z=a.arguments.end===a.end;const Se=GNe(_);if(Se>=0)return Se>=qI(b)&&(Hk(b)||SeZ)return!1;if(z||M>=me)return!0;for(let Se=M;Se=C&&_.length<=b}function NO(a){return FV(a,0,!1)}function _ze(a){return FV(a,0,!1)||FV(a,1,!1)}function FV(a,_,b){if(a.flags&524288){const C=K0(a);if(b||C.properties.length===0&&C.indexInfos.length===0){if(_===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(_===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function Htt(a,_,b,C){const M=_K(a.typeParameters,a,0,C),z=bfe(_),Z=b&&(z&&z.flags&262144?b.nonFixingMapper:b.mapper),me=Z?cK(_,Z):_;return mBe(me,a,(Se,Je)=>{uM(M.inferences,Se,Je)}),b||gBe(_,a,(Se,Je)=>{uM(M.inferences,Se,Je,128)}),Vi(a,Sx(M),Rs(_.declaration))}function Sht(a,_,b,C){const M=TNe(_,a),z=JB(a.attributes,M,C,b);return uM(C.inferences,z,M),Sx(C)}function Jtt(a){if(!a)return Ks;const _=n_(a);return h2(a.parent)?aM(_):ky(a.parent)?jPe(_):_}function dze(a,_,b,C,M){if(Y1(a))return Sht(a,_,C,M);if(a.kind!==170){const Se=jr(_.typeParameters,vt=>!!LI(vt)),Je=PE(a,Se?8:0);if(Je){const vt=j(_);if(X0(vt)){const Pt=DO(a);if(!(!Se&&PE(a,8)!==Je)){const bi=$Pe(Pgt(Pt,1)),Wo=Nf(Je,bi),aa=NO(Wo),$s=aa&&aa.typeParameters?WI(Us(aa,aa.typeParameters)):Wo;uM(M.inferences,$s,vt,128)}const yn=_K(_.typeParameters,_,M.flags),hr=Nf(Je,Pt&&Pt.returnMapper);uM(yn.inferences,hr,vt),M.returnMapper=gt(yn.inferences,zV)?$Pe(JPe(yn)):void 0}}}const z=Tfe(_),Z=z?Math.min(xx(_)-1,b.length):b.length;if(z&&z.flags&262144){const Se=lr(M.inferences,Je=>Je.typeParameter===z);Se&&(Se.impliedArity=Ho(b,zNe,Z)<0?b.length-Z:void 0)}const me=xC(_);if(me&&X0(me)){const Se=jNe(a);uM(M.inferences,Jtt(Se),me)}for(let Se=0;Se=b-1){const vt=a[b-1];if(zNe(vt)){const Pt=vt.kind===237?vt.type:JB(vt.expression,C,M,z);return iM(Pt)?$tt(Pt):W1(cL(33,Pt,Ui,vt.kind===230?vt.expression:vt),Z)}}const me=[],Se=[],Je=[];for(let vt=_;vtEs(void 0,w.Type_0_does_not_satisfy_the_constraint_1):void 0,Pt=C||w.Type_0_does_not_satisfy_the_constraint_1;me||(me=IE(z,Z));const dn=Z[Se];if(!JS(dn,M1(Nf(Je,me),dn),b?_[Se]:void 0,Pt,vt))return}}return Z}function qtt(a){if(Dv(a.tagName))return 2;const _=O1(n_(a.tagName));return Nt(Ti(_,1))?0:Nt(Ti(_,0))?1:2}function Eht(a,_,b,C,M,z,Z){const me=TNe(_,a),Se=JB(a.attributes,me,void 0,C),Je=C&4?Aw(Se):Se;return vt()&&lK(Je,me,b,M?a.tagName:void 0,a.attributes,void 0,z,Z);function vt(){var Pt;if(CNe(a))return!0;const dn=(rD(a)||TW(a))&&!(Dv(a.tagName)||dI(a.tagName))?n_(a.tagName):void 0;if(!dn)return!0;const yn=Ti(dn,0);if(!Nt(yn))return!0;const hr=krt(a);if(!hr)return!0;const bi=P_(hr,111551,!0,!1,a);if(!bi)return!0;const Wo=Vo(bi),aa=Ti(Wo,0);if(!Nt(aa))return!0;let $s=!1,Ba=0;for(const Xa of aa){const Go=$I(Xa,0),Pa=Ti(Go,0);if(Nt(Pa))for(const Ga of Pa){if($s=!0,Hk(Ga))return!0;const hs=xx(Ga);hs>Ba&&(Ba=hs)}}if(!$s)return!0;let lo=1/0;for(const Xa of yn){const Go=qI(Xa);Go{M.push(z.expression)}),M}if(a.kind===170)return Ktt(a);if(Y1(a))return a.attributes.properties.length>0||rD(a)&&a.parent.children.length>0?[a.attributes]:Zn;const _=a.arguments||Zn,b=GNe(_);if(b>=0){const C=_.slice(0,b);for(let M=b;M<_.length;M++){const z=_[M],Z=z.kind===230&&(k?n_(z.expression):Iv(z.expression));Z&&_p(Z)?Ot(Fb(Z),(me,Se)=>{var Je;const vt=Z.target.elementFlags[Se],Pt=mfe(z,vt&4?W1(me):me,!!(vt&12),(Je=Z.target.labeledElementDeclarations)==null?void 0:Je[Se]);C.push(Pt)}):C.push(z)}return C}return _}function Ktt(a){const _=a.expression,b=Zbe(a);if(b){const C=[];for(const M of b.parameters){const z=Vo(M);C.push(mfe(_,z))}return C}return ce.fail()}function Xtt(a,_){return Le.experimentalDecorators?Ube(a,_):2}function Ube(a,_){switch(a.parent.kind){case 263:case 231:return 1;case 172:return _k(a.parent)?3:2;case 174:case 177:case 178:return ht===0||_.parameters.length<=2?2:3;case 169:return 3;default:return ce.fail()}}function VNe(a,_){let b,C;const M=ns(a);if(sa(a.expression)){const z=UM(M,a.expression.name);b=z.start,C=_?z.length:a.end-b}else{const z=UM(M,a.expression);b=z.start,C=_?z.length:a.end-b}return{start:b,length:C,sourceFile:M}}function Hbe(a,_,...b){if(el(a)){const{sourceFile:C,start:M,length:z}=VNe(a);return"message"in _?Pp(C,M,z,_,...b):Rx(C,_)}else return"message"in _?kc(a,_,...b):RN(ns(a),a,_)}function xht(a){if(!el(a)||!An(a.expression))return!1;const _=Ro(a.expression,a.expression.escapedText,111551,void 0,void 0,!1),b=_==null?void 0:_.valueDeclaration;if(!b||!Pu(b)||!EP(b.parent)||!Ac(b.parent.parent)||!An(b.parent.parent.expression))return!1;const C=DB(!1);return C?CD(b.parent.parent.expression,!0)===C:!1}function Ytt(a,_,b,C){var M;const z=GNe(b);if(z>-1)return kc(b[z],w.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let Z=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Se=Number.NEGATIVE_INFINITY,Je=Number.POSITIVE_INFINITY,vt;for(const bi of _){const Wo=qI(bi),aa=xx(bi);WoSe&&(Se=Wo),b.lengthM?Z=Math.min(Z,Se):Je1&&($s=Xa(Pt,gc,yn,Ba)),$s||($s=Xa(Pt,Jc,yn,Ba)),$s)return $s;if($s=Ztt(a,Pt,dn,!!b,C),ge(a).resolvedSignature=$s,Je)if(bi)if(bi.length===1||bi.length>3){const Go=bi[bi.length-1];let Pa;bi.length>3&&(Pa=Es(Pa,w.The_last_overload_gave_the_following_error),Pa=Es(Pa,w.No_overload_matches_this_call)),z&&(Pa=Es(Pa,z));const Ga=jbe(a,dn,Go,Jc,0,!0,()=>Pa);if(Ga)for(const hs of Ga)Go.declaration&&bi.length>3&&ml(hs,kc(Go.declaration,w.The_last_overload_is_declared_here)),lo(Go,hs),no.add(hs);else ce.fail("No error for last overload signature")}else{const Go=[];let Pa=0,Ga=Number.MAX_VALUE,hs=0,Ld=0;for(const Cx of bi){const Gi=jbe(a,dn,Cx,Jc,0,!0,()=>Es(void 0,w.Overload_0_of_1_2_gave_the_following_error,Ld+1,Pt.length,o0(Cx)));Gi?(Gi.length<=Ga&&(Ga=Gi.length,hs=Ld),Pa=Math.max(Pa,Gi.length),Go.push(Gi)):ce.fail("No error for 3 or fewer overload signatures"),Ld++}const nl=Pa>1?Go[hs]:Gf(Go);ce.assert(nl.length>0,"No errors reported for 3 or fewer overload signatures");let id=Es(Vn(nl,G8),w.No_overload_matches_this_call);z&&(id=Es(id,z));const $y=[...ea(nl,Cx=>Cx.relatedInformation)];let l2;if(jr(nl,Cx=>Cx.start===nl[0].start&&Cx.length===nl[0].length&&Cx.file===nl[0].file)){const{file:Cx,start:kC,length:Gi}=nl[0];l2={file:Cx,start:kC,length:Gi,code:id.code,category:id.category,messageText:id,relatedInformation:$y}}else l2=RN(ns(a),a,id,$y);lo(bi[0],l2),no.add(l2)}else if(Wo)no.add(Ytt(a,[Wo],dn,z));else if(aa)Gbe(aa,a.typeArguments,!0,z);else{const Go=gi(_,Pa=>fze(Pa,vt));Go.length===0?no.add(Qtt(a,_,vt,z)):no.add(Ytt(a,Go,dn,z))}return $s;function lo(Go,Pa){var Ga,hs;const Ld=bi,nl=Wo,id=aa,$y=((hs=(Ga=Go.declaration)==null?void 0:Ga.symbol)==null?void 0:hs.declarations)||Zn,Cx=$y.length>1?lr($y,kC=>J_(kC)&&wx(kC.body)):void 0;if(Cx){const kC=Cv(Cx),Gi=!kC.typeParameters;Xa([kC],Jc,Gi)&&ml(Pa,kc(Cx,w.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}bi=Ld,Wo=nl,aa=id}function Xa(Go,Pa,Ga,hs=!1){if(bi=void 0,Wo=void 0,aa=void 0,Ga){const Ld=Go[0];if(gt(vt)||!zbe(a,dn,Ld,hs))return;if(jbe(a,dn,Ld,Pa,0,!1,void 0)){bi=[Ld];return}return Ld}for(let Ld=0;Ld0),FK(a),C||_.length===1||_.some(z=>!!z.typeParameters)?tnt(a,_,b,M):ent(_)}function ent(a){const _=Qo(a,Se=>Se.thisParameter);let b;_.length&&(b=mze(_,_.map(Ybe)));const{min:C,max:M}=$Se(a,Aht),z=[];for(let Se=0;SeoT(vt)?SeUB(vt,Se))))}const Z=Qo(a,Se=>oT(Se)?yl(Se.parameters):void 0);let me=128;if(Z.length!==0){const Se=W1(gl(Qo(a,wn),2));z.push(gze(Z,Se)),me|=1}return a.some(ULe)&&(me|=2),i2(a[0].declaration,void 0,b,z,Dd(a.map(j)),void 0,C,me)}function Aht(a){const _=a.parameters.length;return oT(a)?_-1:_}function mze(a,_){return gze(a,gl(_,2))}function gze(a,_){return xO(Dl(a),_)}function tnt(a,_,b,C){const M=Dht(_,so===void 0?b.length:so),z=_[M],{typeParameters:Z}=z;if(!Z)return z;const me=Bbe(a)?a.typeArguments:void 0,Se=me?Hf(z,hze(me,Z,Rs(a))):Cht(a,Z,z,b,C);return _[M]=Se,Se}function hze(a,_,b){const C=a.map(YB);for(;C.length>_.length;)C.pop();for(;C.length<_.length;)C.push(LI(_[C.length])||Wi(_[C.length])||EBe(b));return C}function Cht(a,_,b,C,M){const z=_K(_,b,Rs(a)?2:0),Z=dze(a,b,C,M|4|8,z);return Hf(b,Z)}function Dht(a,_){let b=-1,C=-1;for(let M=0;M=_)return M;Z>C&&(C=Z,b=M)}return b}function Iht(a,_,b){if(a.expression.kind===108){const Se=_Ne(a.expression);if(Q_(Se)){for(const Je of a.arguments)n_(Je);return _e}if(!je(Se)){const Je=hA(h0(a));if(Je){const vt=Ni(Se,Je.typeArguments,Je);return WV(a,vt,_,b,0)}}return xK(a)}let C,M=n_(a.expression);if(R8(a)){const Se=Kue(M,a.expression);C=Se===M?0:M8(a)?16:8,M=Se}else C=0;if(M=Mtt(M,a.expression,Rtt),M===ou)return hi;const z=O1(M);if(je(z))return iN(a);const Z=Ti(z,0),me=Ti(z,1).length;if(UNe(M,z,Z.length,me))return!je(M)&&a.typeArguments&&He(a,w.Untyped_function_calls_may_not_accept_type_arguments),xK(a);if(!Z.length){if(me)He(a,w.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oa(M));else{let Se;if(a.arguments.length===1){const Je=ns(a).text;Ff(Je.charCodeAt(ep(Je,a.expression.end,!0)-1))&&(Se=kc(a.expression,w.Are_you_missing_a_semicolon))}Jbe(a.expression,z,0,Se)}return iN(a)}return b&8&&!a.typeArguments&&Z.some(kht)?(Snt(a,b),Qn):Z.some(Se=>Rs(Se.declaration)&&!!BTe(Se.declaration))?(He(a,w.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oa(M)),iN(a)):WV(a,Z,_,b,C)}function kht(a){return!!(a.typeParameters&&Vwe(j(a)))}function UNe(a,_,b,C){return Q_(a)||Q_(_)&&!!(a.flags&262144)||!b&&!C&&!(_.flags&1048576)&&!(HT(_).flags&131072)&&Mp(a,S0)}function Pht(a,_,b){if(a.arguments&&ht<1){const Z=GNe(a.arguments);Z>=0&&He(a.arguments[Z],w.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=TK(a.expression);if(C===ou)return hi;if(C=O1(C),je(C))return iN(a);if(Q_(C))return a.typeArguments&&He(a,w.Untyped_function_calls_may_not_accept_type_arguments),xK(a);const M=Ti(C,1);if(M.length){if(!$Ne(a,M[0]))return iN(a);if(HNe(M,me=>!!(me.flags&4)))return He(a,w.Cannot_create_an_instance_of_an_abstract_class),iN(a);const Z=C.symbol&&RS(C.symbol);return Z&&il(Z,256)?(He(a,w.Cannot_create_an_instance_of_an_abstract_class),iN(a)):WV(a,M,_,b,0)}const z=Ti(C,0);if(z.length){const Z=WV(a,z,_,b,0);return Wt||(Z.declaration&&!JI(Z.declaration)&&j(Z)!==Ks&&He(a,w.Only_a_void_function_can_be_called_with_the_new_keyword),xC(Z)===Ks&&He(a,w.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Z}return Jbe(a.expression,C,1),iN(a)}function HNe(a,_){return ls(a)?gt(a,b=>HNe(b,_)):a.compositeKind===1048576?gt(a.compositeSignatures,_):_(a)}function JNe(a,_){const b=Gp(_);if(!Nt(b))return!1;const C=b[0];if(C.flags&2097152){const M=C.types,z=sc(M);let Z=0;for(const me of C.types){if(!z[Z]&&ji(me)&3&&(me.symbol===a||JNe(a,me)))return!0;Z++}return!1}return C.symbol===a?!0:JNe(a,C)}function $Ne(a,_){if(!_||!_.declaration)return!0;const b=_.declaration,C=ZC(b,24);if(!C||b.kind!==176)return!0;const M=RS(b.parent.symbol),z=Rm(b.parent.symbol);if(!qfe(a,M)){const Z=h0(a);if(Z&&C&16){const me=YB(Z);if(JNe(b.parent.symbol,me))return!0}return C&8&&He(a,w.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,oa(z)),C&16&&He(a,w.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,oa(z)),!1}return!0}function yze(a,_,b){let C;const M=b===0,z=qB(_),Z=z&&Ti(z,b).length>0;if(_.flags&1048576){const Se=_.types;let Je=!1;for(const vt of Se)if(Ti(vt,b).length!==0){if(Je=!0,C)break}else if(C||(C=Es(C,M?w.Type_0_has_no_call_signatures:w.Type_0_has_no_construct_signatures,oa(vt)),C=Es(C,M?w.Not_all_constituents_of_type_0_are_callable:w.Not_all_constituents_of_type_0_are_constructable,oa(_))),Je)break;Je||(C=Es(void 0,M?w.No_constituent_of_type_0_is_callable:w.No_constituent_of_type_0_is_constructable,oa(_))),C||(C=Es(C,M?w.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:w.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,oa(_)))}else C=Es(C,M?w.Type_0_has_no_call_signatures:w.Type_0_has_no_construct_signatures,oa(_));let me=M?w.This_expression_is_not_callable:w.This_expression_is_not_constructable;if(el(a.parent)&&a.parent.arguments.length===0){const{resolvedSymbol:Se}=ge(a);Se&&Se.flags&32768&&(me=w.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Es(C,me),relatedMessage:Z?w.Did_you_forget_to_use_await:void 0}}function Jbe(a,_,b,C){const{messageChain:M,relatedMessage:z}=yze(a,_,b),Z=RN(ns(a),a,M);if(z&&ml(Z,kc(a,z)),el(a.parent)){const{start:me,length:Se}=VNe(a.parent,!0);Z.start=me,Z.length=Se}no.add(Z),nnt(_,b,C?ml(Z,C):Z)}function nnt(a,_,b){if(!a.symbol)return;const C=Mt(a.symbol).originatingImport;if(C&&!WE(C)){const M=Ti(Vo(Mt(a.symbol).target),_);if(!M||!M.length)return;ml(b,kc(C,w.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 Nht(a,_,b){const C=n_(a.tag),M=O1(C);if(je(M))return iN(a);const z=Ti(M,0),Z=Ti(M,1).length;if(UNe(C,M,z.length,Z))return xK(a);if(!z.length){if(Ch(a.parent)){const me=kc(a.tag,w.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 no.add(me),iN(a)}return Jbe(a.tag,M,0),iN(a)}return WV(a,z,_,b,0)}function wht(a){switch(a.parent.kind){case 263:case 231:return w.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return w.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return w.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return w.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return ce.fail()}}function Rht(a,_,b){const C=n_(a.expression),M=O1(C);if(je(M))return iN(a);const z=Ti(M,0),Z=Ti(M,1).length;if(UNe(C,M,z.length,Z))return xK(a);if(rnt(a,z)&&!sb(a.expression)){const Se=Yv(a.expression,!1);return He(a,w._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Se),iN(a)}const me=wht(a);if(!z.length){const Se=yze(a.expression,M,0),Je=Es(Se.messageChain,me),vt=RN(ns(a.expression),a.expression,Je);return Se.relatedMessage&&ml(vt,kc(a.expression,Se.relatedMessage)),no.add(vt),nnt(M,0,vt),iN(a)}return WV(a,z,_,b,0,me)}function qNe(a,_){const b=VB(a),C=b&&Gt(b),M=C&&Jn(C,_E.Element,788968),z=M&&Xr.symbolToEntityName(M,788968,a),Z=be.createFunctionTypeNode(void 0,[be.createParameterDeclaration(void 0,void 0,"props",void 0,Xr.typeToTypeNode(_,a))],z?be.createTypeReferenceNode(z,void 0):be.createKeywordTypeNode(133)),me=Ge(1,"props");return me.links.type=_,i2(Z,void 0,void 0,[me],M?Rm(M):_r,void 0,1,0)}function KNe(a,_,b){if(Dv(a.tagName)){const Z=Itt(a),me=qNe(a,Z);return X4(JB(a.attributes,TNe(me,a),void 0,0),Z,a.tagName,a.attributes),Nt(a.typeArguments)&&(Ot(a.typeArguments,bp),no.add(Qz(ns(a),a.typeArguments,w.Expected_0_type_arguments_but_got_1,0,Nt(a.typeArguments)))),me}const C=n_(a.tagName),M=O1(C);if(je(M))return iN(a);const z=oze(C,a);return UNe(C,M,z.length,0)?xK(a):z.length===0?(He(a.tagName,w.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Yv(a.tagName)),iN(a)):WV(a,z,_,b,0)}function rnt(a,_){return _.length&&jr(_,b=>b.minArgumentCount===0&&!oT(b)&&b.parameters.length1?Iv(a.arguments[1]):void 0;for(let z=2;z{const Z=Bb(M);MPe(z,Z)||LPe(M,z,b,w.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 zht(a){const _=n_(a.expression),b=Kue(_,a.expression);return fbe(aM(b),a,b!==_)}function g5(a){return a.flags&64?zht(a):aM(n_(a.expression))}function ont(a){if($we(a),Ot(a.typeArguments,bp),a.kind===233){const b=Lx(a.parent);b.kind===226&&b.operatorToken.kind===104&&N7(a,b.right)&&He(a,w.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const _=a.kind===233?n_(a.expression):Zy(a.exprName)?gK(a.exprName):n_(a.exprName);return Xbe(_,a)}function Xbe(a,_){const b=_.typeArguments;if(a===ou||je(a)||!gt(b))return a;let C=!1,M;const z=me(a),Z=C?M:a;return Z&&no.add(Qz(ns(_),b,w.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,oa(Z))),z;function me(Je){let vt=!1,Pt=!1;const dn=yn(Je);return C||(C=Pt),vt&&!Pt&&(M??(M=Je)),dn;function yn(hr){if(hr.flags&524288){const bi=K0(hr),Wo=Se(bi.callSignatures),aa=Se(bi.constructSignatures);if(vt||(vt=bi.callSignatures.length!==0||bi.constructSignatures.length!==0),Pt||(Pt=Wo.length!==0||aa.length!==0),Wo!==bi.callSignatures||aa!==bi.constructSignatures){const $s=jo(void 0,bi.members,Wo,aa,bi.indexInfos);return $s.objectFlags|=8388608,$s.node=_,$s}}else if(hr.flags&58982400){const bi=Co(hr);if(bi){const Wo=yn(bi);if(Wo!==bi)return Wo}}else{if(hr.flags&1048576)return bh(hr,me);if(hr.flags&2097152)return Dd(Ol(hr.types,yn))}return hr}}function Se(Je){const vt=gi(Je,Pt=>!!Pt.typeParameters&&fze(Pt,b));return Ol(vt,Pt=>{const dn=Gbe(Pt,b,!0);return dn?Vi(Pt,dn,Rs(Pt.declaration)):Pt})}}function Ght(a){return bp(a.type),Tze(a.expression,a.type)}function Tze(a,_,b){const C=n_(a,b),M=wl(_);if(je(M))return M;const z=Kr(_.parent,Z=>Z.kind===238||Z.kind===357);return X4(C,M,z,a,w.Type_0_does_not_satisfy_the_expected_type_1),C}function jht(a){return a0t(a),a.keywordToken===105?Eze(a):a.keywordToken===102?Vht(a):ce.assertNever(a.keywordToken)}function Sze(a){switch(a.keywordToken){case 102:return gWe();case 105:const _=Eze(a);return je(_)?_r:Xht(_);default:ce.assertNever(a.keywordToken)}}function Eze(a){const _=cY(a);if(_)if(_.kind===176){const b=wi(_.parent);return Vo(b)}else{const b=wi(_);return Vo(b)}else return He(a,w.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_r}function Vht(a){ke===100||ke===199?ns(a).impliedNodeFormat!==99&&He(a,w.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ke<6&&ke!==4&&He(a,w.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const _=ns(a);return ce.assert(!!(_.flags&8388608),"Containing file is missing import meta node flag."),a.name.escapedText==="meta"?LZe():_r}function Ybe(a){const _=Vo(a);if(Ye){const b=a.valueDeclaration;if(b&&NN(b))return eL(_)}return _}function xze(a,_,b="arg"){return a?(ce.assert(An(a.name)),a.name.escapedText):`${b}_${_}`}function Ute(a,_,b){const C=a.parameters.length-(oT(a)?1:0);if(_=b-1)return _===b-1?M:W1(s2(M,an));const z=[],Z=[],me=[];for(let Se=_;Se!(Se&1)),me=Z<0?z.target.fixedLength:Z;me>0&&(M=a.parameters.length-1+me)}}if(M===void 0){if(!b&&a.flags&32)return 0;M=a.minArgumentCount}if(C)return M;for(let z=M-1;z>=0;z--){const Z=$I(a,z);if(D0(Z,Vtt).flags&131072)break;M=z}a.resolvedMinArgumentCount=M}return a.resolvedMinArgumentCount}function Hk(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]);return!_p(_)||_.target.hasRestElement}return!1}function bfe(a){if(oT(a)){const _=Vo(a.parameters[a.parameters.length-1]);if(!_p(_))return _;if(_.target.hasRestElement)return eM(_,_.target.fixedLength)}}function Tfe(a){const _=bfe(a);return _&&!UA(_)&&!Q_(_)?_:void 0}function Jk(a){return Cze(a,vs)}function Cze(a,_){return a.parameters.length>0?$I(a,0):_}function Dze(a,_,b){const C=a.parameters.length-(oT(a)?1:0);for(let M=0;M=0);const z=pg(C.parent)?Vo(wi(C.parent.parent)):jwe(C.parent),Z=pg(C.parent)?Ui:wGe(C.parent),me=bD(M),Se=Br("target",z),Je=Br("propertyKey",Z),vt=Br("parameterIndex",me);b.decoratorSignature=Yte(void 0,void 0,[Se,Je,vt],Ks);break}case 174:case 177:case 178:case 172:{const C=_;if(!Jl(C.parent))break;const M=jwe(C),z=Br("target",M),Z=wGe(C),me=Br("propertyKey",Z),Se=Os(C)?Ks:UZe(YB(C));if(ht!==0&&(!Os(_)||_k(_))){const vt=UZe(YB(C)),Pt=Br("descriptor",vt);b.decoratorSignature=Yte(void 0,void 0,[z,me,Pt],gl([Se,Ks]))}else b.decoratorSignature=Yte(void 0,void 0,[z,me],gl([Se,Ks]));break}}return b.decoratorSignature===_e?void 0:b.decoratorSignature}function Zbe(a){return _t?ZNe(a):h5(a)}function aL(a){const _=CB(!0);return _!==rd?(a=sL(Ax(a))||co,jA(_,[a])):co}function Rze(a){const _=kue(!0);return _!==rd?(a=sL(Ax(a))||co,jA(_,[a])):co}function e1e(a,_){const b=aL(_);return b===co?(He(a,WE(a)?w.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:w.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_r):(DB(!0)||He(a,WE(a)?w.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:w.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),b)}function Xht(a){const _=Ge(0,"NewTargetExpression"),b=Ge(4,"target",8);b.parent=_,b.links.type=a;const C=Td([b]);return _.members=C,jo(_,C,Zn,Zn,Zn)}function ewe(a,_){if(!a.body)return _r;const b=L0(a),C=(b&2)!==0,M=(b&1)!==0;let z,Z,me,Se=Ks;if(a.body.kind!==241)z=Iv(a.body,_&&_&-9),C&&(z=Ax(Lfe(z,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(M){const Je=Oze(a,_);Je?Je.length>0&&(z=gl(Je,2)):Se=vs;const{yieldTypes:vt,nextTypes:Pt}=cnt(a,_);Z=gt(vt)?gl(vt,2):void 0,me=gt(Pt)?Dd(Pt):void 0}else{const Je=Oze(a,_);if(!Je)return b&2?e1e(a,vs):vs;if(Je.length===0){const vt=r8(a,void 0),Pt=vt&&(lL(vt,b)||Ks).flags&32768?Ui:Ks;return b&2?e1e(a,Pt):Pt}z=gl(Je,2)}if(z||Z||me){if(Z&&UPe(a,Z,3),z&&UPe(a,z,1),me&&UPe(a,me,2),z&&rA(z)||Z&&rA(Z)||me&&rA(me)){const Je=YBe(a),vt=Je?Je===Cv(a)?M?void 0:z:ffe(j(Je),a,void 0):void 0;M?(Z=GPe(Z,vt,0,C),z=GPe(z,vt,1,C),me=GPe(me,vt,2,C)):z=Dgt(z,vt,C)}Z&&(Z=Bb(Z)),z&&(z=Bb(z)),me&&(me=Bb(me))}return M?Efe(Z||vs,z||Se,me||Nbe(2,a)||co,C):C?aL(z||Se):z||Se}function Efe(a,_,b,C){const M=C?Xm:Lg,z=M.getGlobalGeneratorType(!1);if(a=M.resolveIterationType(a,void 0)||co,_=M.resolveIterationType(_,void 0)||co,b=M.resolveIterationType(b,void 0)||co,z===rd){const Z=M.getGlobalIterableIteratorType(!1),me=Z!==rd?Ynt(Z,M):void 0,Se=me?me.returnType:gn,Je=me?me.nextType:Ui;return Mp(_,Se)&&Mp(Je,b)?Z!==rd?Nue(Z,[a]):(M.getGlobalIterableIteratorType(!0),Yu):(M.getGlobalGeneratorType(!0),Yu)}return Nue(z,[a,_,b])}function cnt(a,_){const b=[],C=[],M=(L0(a)&2)!==0;return nSe(a.body,z=>{const Z=z.expression?n_(z.expression,_):xu;Dy(b,Mze(z,Z,gn,M));let me;if(z.asteriskToken){const Se=Iwe(Z,M?19:17,z.expression);me=Se&&Se.nextType}else me=PE(z,void 0);me&&Dy(C,me)}),{yieldTypes:b,nextTypes:C}}function Mze(a,_,b,C){const M=a.expression||a,z=a.asteriskToken?cL(C?19:17,_,b,M):_;return C?qB(z,M,a.asteriskToken?w.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:w.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):z}function lnt(a,_,b){let C=0;for(let M=0;M=_?b[M]:void 0;C|=z!==void 0?xae.get(z)||32768:0}return C}function Lze(a){const _=ge(a);if(_.isExhaustive===void 0){_.isExhaustive=0;const b=unt(a);_.isExhaustive===0&&(_.isExhaustive=b)}else _.isExhaustive===0&&(_.isExhaustive=!1);return _.isExhaustive}function unt(a){if(a.expression.kind===221){const C=rtt(a);if(!C)return!1;const M=DE(Iv(a.expression.expression)),z=lnt(0,0,C);return M.flags&3?(556800&z)===556800:!dM(M,Z=>(bS(Z)&z)===z)}const _=Iv(a.expression);if(!Ew(_))return!1;const b=rNe(a);return!b.length||gt(b,aBe)?!1:$A(bh(_,B1),b)}function xfe(a){return a.endFlowNode&&Ibe(a.endFlowNode)}function Oze(a,_){const b=L0(a),C=[];let M=xfe(a),z=!1;if(HM(a.body,Z=>{const me=Z.expression;if(me){if(me.kind===213&&me.expression.kind===80&&Iv(me.expression).symbol===a.symbol){z=!0;return}let Se=Iv(me,_&&_&-9);b&2&&(Se=Ax(Lfe(Se,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Se.flags&131072&&(z=!0),Dy(C,Se)}else M=!0}),!(C.length===0&&!M&&(z||Yht(a))))return Ye&&C.length&&M&&!(JI(a)&&C.some(Z=>Z.symbol===a.symbol))&&Dy(C,Ui),C}function Yht(a){switch(a.kind){case 218:case 219:return!0;case 174:return a.parent.kind===210;default:return!1}}function twe(a,_){s(b);return;function b(){const C=L0(a),M=_&&lL(_,C);if(M&&(cy(M,16384)||M.flags&32769)||a.kind===173||Um(a.body)||a.body.kind!==241||!xfe(a))return;const z=a.flags&1024,Z=bA(a)||a;if(M&&M.flags&131072)He(Z,w.A_function_returning_never_cannot_have_a_reachable_end_point);else if(M&&!z)He(Z,w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(M&&Ye&&!Mp(Ui,M))He(Z,w.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Le.noImplicitReturns){if(!M){if(!z)return;const me=j(Cv(a));if(nrt(a,me))return}He(Z,w.Not_all_code_paths_return_a_value)}}}function fnt(a,_){if(ce.assert(a.kind!==174||q2(a)),FK(a),Dm(a)&&tne(a,a.name),_&&_&4&&nA(a)){if(!bA(a)&&!YH(a)){const C=yK(a);if(C&&X0(j(C))){const M=ge(a);if(M.contextFreeType)return M.contextFreeType;const z=ewe(a,_),Z=i2(void 0,void 0,void 0,Zn,z,void 0,0,64),me=jo(a.symbol,Ve,[Z],Zn,Zn);return me.objectFlags|=262144,M.contextFreeType=me}}return Mg}return!Zfe(a)&&a.kind===218&&Xk(a),Qht(a,_),Vo(wi(a))}function Qht(a,_){const b=ge(a);if(!(b.flags&64)){const C=yK(a);if(!(b.flags&64)){b.flags|=64;const M=pp(Ti(Vo(wi(a)),0));if(!M)return;if(nA(a))if(C){const z=DO(a);let Z;if(_&&_&2){Dze(M,C,z);const me=bfe(C);me&&me.flags&262144&&(Z=cK(C,z.nonFixingMapper))}Z||(Z=z?cK(C,z.mapper):C),Ize(M,Z)}else kze(M);else if(C&&!a.typeParameters&&C.parameters.length>a.parameters.length){const z=DO(a);_&&_&2&&Dze(M,C,z)}if(C&&!se(a)&&!M.resolvedReturnType){const z=ewe(a,_);M.resolvedReturnType||(M.resolvedReturnType=z)}Kte(a)}}}function Fze(a){ce.assert(a.kind!==174||q2(a));const _=L0(a),b=se(a);if(twe(a,b),a.body)if(bA(a)||j(Cv(a)),a.body.kind===241)bp(a.body);else{const C=n_(a.body),M=b&&lL(b,_);if(M)if((_&3)===2){const z=Lfe(C,!1,a.body,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);X4(z,M,a.body,a.body)}else X4(C,M,a.body,a.body)}}function Afe(a,_,b,C=!1){if(!Mp(_,q_)){const M=C&&Rfe(_);return Mr(a,!!M&&Mp(M,q_),b),!1}return!0}function t1e(a){if(!el(a)||!cH(a))return!1;const _=Iv(a.arguments[2]);if(wm(_,"value")){const M=Fn(_,"writable"),z=M&&Vo(M);if(!z||z===rr||z===mi)return!0;if(M&&M.valueDeclaration&&Fm(M.valueDeclaration)){const Z=M.valueDeclaration.initializer,me=n_(Z);if(me===rr||me===mi)return!0}return!1}return!Fn(_,"set")}function KI(a){return!!(I_(a)&8||a.flags&4&&Vy(a)&64||a.flags&3&&PNe(a)&6||a.flags&98304&&!(a.flags&65536)||a.flags&8||gt(a.declarations,t1e))}function nwe(a,_,b){var C,M;if(b===0)return!1;if(KI(_)){if(_.flags&4&&Kf(a)&&a.expression.kind===110){const z=GE(a);if(!(z&&(z.kind===176||JI(z))))return!0;if(_.valueDeclaration){const Z=ys(_.valueDeclaration),me=z.parent===_.valueDeclaration.parent,Se=z===_.valueDeclaration.parent,Je=Z&&((C=_.parent)==null?void 0:C.valueDeclaration)===z.parent,vt=Z&&((M=_.parent)==null?void 0:M.valueDeclaration)===z;return!(me||Se||Je||vt)}}return!0}if(Kf(a)){const z=_g(a.expression);if(z.kind===80){const Z=ge(z).resolvedSymbol;if(Z.flags&2097152){const me=og(Z);return!!me&&me.kind===274}}}return!1}function AK(a,_,b){const C=rv(a,7);return C.kind!==80&&!Kf(C)?(He(a,_),!1):C.flags&64?(He(a,b),!1):!0}function Wze(a){n_(a.expression);const _=_g(a.expression);if(!Kf(_))return He(_,w.The_operand_of_a_delete_operator_must_be_a_property_reference),Ca;sa(_)&&Gu(_.name)&&He(_,w.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const b=ge(_),C=zh(b.resolvedSymbol);return C&&(KI(C)&&He(_,w.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),_nt(_,C)),Ca}function _nt(a,_){const b=Vo(_);Ye&&!(b.flags&131075)&&!(on?_.flags&16777216:bS(b)&16777216)&&He(a,w.The_operand_of_a_delete_operator_must_be_optional)}function Zht(a){return n_(a.expression),Mo}function eyt(a){return n_(a.expression),xu}function Bze(a){let _=!1;const b=Ede(a);if(b&&nu(b)){const C=h6(a)?w.await_expression_cannot_be_used_inside_a_class_static_block:w.await_using_statements_cannot_be_used_inside_a_class_static_block;He(a,C),_=!0}else if(!(a.flags&65536))if(Tie(a)){const C=ns(a);if(!T5(C)){let M;if(!B8(C,Le)){M??(M=nC(C,a.pos));const z=h6(a)?w.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:w.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,Z=Pp(C,M.start,M.length,z);no.add(Z),_=!0}switch(ke){case 100:case 199:if(C.impliedNodeFormat===1){M??(M=nC(C,a.pos)),no.add(Pp(C,M.start,M.length,w.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),_=!0;break}case 7:case 99:case 4:if(ht>=4)break;default:M??(M=nC(C,a.pos));const z=h6(a)?w.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:w.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;no.add(Pp(C,M.start,M.length,z)),_=!0;break}}}else{const C=ns(a);if(!T5(C)){const M=nC(C,a.pos),z=h6(a)?w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,Z=Pp(C,M.start,M.length,z);if(b&&b.kind!==176&&!(L0(b)&2)){const me=kc(b,w.Did_you_mean_to_mark_this_function_as_async);ml(Z,me)}no.add(Z),_=!0}}return h6(a)&&jBe(a)&&(He(a,w.await_expressions_cannot_be_used_in_a_parameter_initializer),_=!0),_}function CK(a){s(()=>Bze(a));const _=n_(a.expression),b=Lfe(_,!0,a,w.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return b===_&&!je(b)&&!(_.flags&3)&&Hn(!1,kc(a,w.await_has_no_effect_on_the_type_of_this_expression)),b}function n1e(a){const _=n_(a.operand);if(_===ou)return ou;switch(a.operand.kind){case 9:switch(a.operator){case 41:return ZP(bD(-a.operand.text));case 40:return ZP(bD(+a.operand.text))}break;case 10:if(a.operator===41)return ZP(Oue({negative:!0,base10Value:l3(a.operand.text)}))}switch(a.operator){case 40:case 41:case 55:return HI(_,a.operand),r1e(_,12288)&&He(a.operand,w.The_0_operator_cannot_be_applied_to_type_symbol,Nd(a.operator)),a.operator===40?(r1e(_,2112)&&He(a.operand,w.Operator_0_cannot_be_applied_to_type_1,Nd(a.operator),oa(Tx(_))),an):Gze(_);case 54:lGe(_,a.operand);const b=bS(_)&12582912;return b===4194304?rr:b===8388608?Ji:Ca;case 46:case 47:return Afe(a.operand,HI(_,a.operand),w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AK(a.operand,w.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,w.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Gze(_)}return _r}function zze(a){const _=n_(a.operand);return _===ou?ou:(Afe(a.operand,HI(_,a.operand),w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AK(a.operand,w.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,w.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Gze(_))}function Gze(a){return cy(a,2112)?lh(a,3)||cy(a,296)?q_:Un:an}function r1e(a,_){if(cy(a,_))return!0;const b=DE(a);return!!b&&cy(b,_)}function cy(a,_){if(a.flags&_)return!0;if(a.flags&3145728){const b=a.types;for(const C of b)if(cy(C,_))return!0}return!1}function lh(a,_,b){return a.flags&_?!0:b&&a.flags&114691?!1:!!(_&296)&&Mp(a,an)||!!(_&2112)&&Mp(a,Un)||!!(_&402653316)&&Mp(a,xe)||!!(_&528)&&Mp(a,Ca)||!!(_&16384)&&Mp(a,Ks)||!!(_&131072)&&Mp(a,vs)||!!(_&65536)&&Mp(a,$e)||!!(_&32768)&&Mp(a,Ui)||!!(_&4096)&&Mp(a,Qa)||!!(_&67108864)&&Mp(a,fp)}function Cfe(a,_,b){return a.flags&1048576?jr(a.types,C=>Cfe(C,_,b)):lh(a,_,b)}function Dfe(a){return!!(ji(a)&16)&&!!a.symbol&&jze(a.symbol)}function jze(a){return(a.flags&128)!==0}function dnt(a,_,b,C){return b===ou||C===ou?ou:(!Q_(b)&&Cfe(b,402784252)&&He(a,w.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Q_(C)||BK(C)||K4(C,S0)||He(_,w.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ca)}function pnt(a){return dM(a,_=>_===H0||!!(_.flags&2097152)&&By(DE(_)))}function rwe(a,_,b,C){if(b===ou||C===ou)return ou;if(Gu(a)){if(ht<99&&Jy(a,2097152),!ge(a).resolvedSymbol&&h0(a)){const M=lv(a,C.symbol,!0);cze(a,C,M)}}else JS(HI(b,a),mu,a);return JS(HI(C,_),fp,_)&&pnt(C)&&He(_,w.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,oa(C)),Ca}function tyt(a,_,b){const C=a.properties;if(Ye&&C.length===0)return HI(_,a);for(let M=0;MeM(Je,b)):W1(C);return HB(me,Se,M)}}}}function HB(a,_,b,C){let M;if(a.kind===304){const z=a;z.objectAssignmentInitializer&&(Ye&&!(bS(n_(z.objectAssignmentInitializer))&16777216)&&(_=JA(_,524288)),ynt(z.name,z.equalsToken,z.objectAssignmentInitializer,b)),M=a.name}else M=a;return M.kind===226&&M.operatorToken.kind===64&&(pn(M,b),M=M.left,Ye&&(_=JA(_,524288))),M.kind===210?tyt(M,_,C):M.kind===209?iwe(M,_,b):gnt(M,_,b)}function gnt(a,_,b){const C=n_(a,b),M=a.parent.kind===305?w.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:w.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,z=a.parent.kind===305?w.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:w.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return AK(a,M,z)&&X4(_,C,a,a),kT(a)&&Jy(a.parent,1048576),_}function Hte(a){switch(a=_g(a),a.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 Hte(a.whenTrue)&&Hte(a.whenFalse);case 226:return zN(a.operatorToken.kind)?!1:Hte(a.left)&&Hte(a.right);case 224:case 225:switch(a.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function i1e(a,_){return(_.flags&98304)!==0||MPe(a,_)}function hnt(){const a=VEe(_,b,C,M,z,Z);return(dn,yn)=>{const hr=a(dn,yn);return ce.assertIsDefined(hr),hr};function _(dn,yn,hr){return yn?(yn.stackIndex++,yn.skip=!1,Je(yn,void 0),Pt(yn,void 0)):yn={checkMode:hr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Rs(dn)&&x7(dn)?(yn.skip=!0,Pt(yn,n_(dn.right,hr)),yn):(nyt(dn),dn.operatorToken.kind===64&&(dn.left.kind===210||dn.left.kind===209)&&(yn.skip=!0,Pt(yn,HB(dn.left,n_(dn.right,hr),hr,dn.right.kind===110))),yn)}function b(dn,yn,hr){if(!yn.skip)return me(yn,dn)}function C(dn,yn,hr){if(!yn.skip){const bi=vt(yn);ce.assertIsDefined(bi),Je(yn,bi),Pt(yn,void 0);const Wo=dn.kind;if(pk(Wo)){let aa=hr.parent;for(;aa.kind===217||IH(aa);)aa=aa.parent;(Wo===56||Xg(aa))&&Cwe(hr.left,bi,Xg(aa)?aa.thenStatement:void 0),lGe(bi,hr.left)}}}function M(dn,yn,hr){if(!yn.skip)return me(yn,dn)}function z(dn,yn){let hr;if(yn.skip)hr=vt(yn);else{const bi=Se(yn);ce.assertIsDefined(bi);const Wo=vt(yn);ce.assertIsDefined(Wo),hr=vnt(dn.left,dn.operatorToken,dn.right,bi,Wo,yn.checkMode,dn)}return yn.skip=!1,Je(yn,void 0),Pt(yn,void 0),yn.stackIndex--,hr}function Z(dn,yn,hr){return Pt(dn,yn),dn}function me(dn,yn){if(ys(yn))return yn;Pt(dn,n_(yn,dn.checkMode))}function Se(dn){return dn.typeStack[dn.stackIndex]}function Je(dn,yn){dn.typeStack[dn.stackIndex]=yn}function vt(dn){return dn.typeStack[dn.stackIndex+1]}function Pt(dn,yn){dn.typeStack[dn.stackIndex+1]=yn}}function nyt(a){const{left:_,operatorToken:b,right:C}=a;b.kind===61&&(ys(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&Po(_,w._0_and_1_operations_cannot_be_mixed_without_parentheses,Nd(_.operatorToken.kind),Nd(b.kind)),ys(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&Po(C,w._0_and_1_operations_cannot_be_mixed_without_parentheses,Nd(C.operatorToken.kind),Nd(b.kind)))}function ynt(a,_,b,C,M){const z=_.kind;if(z===64&&(a.kind===210||a.kind===209))return HB(a,n_(b,C),C,b.kind===110);let Z;pk(z)?Z=NK(a,C):Z=n_(a,C);const me=n_(b,C);return vnt(a,_,b,Z,me,C,M)}function vnt(a,_,b,C,M,z,Z){const me=_.kind;switch(me){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===ou||M===ou)return ou;C=HI(C,a),M=HI(M,b);let lo;if(C.flags&528&&M.flags&528&&(lo=dn(_.kind))!==void 0)return He(Z||_,w.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Nd(_.kind),Nd(lo)),an;{const Pa=Afe(a,C,w.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ga=Afe(b,M,w.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let hs;if(lh(C,3)&&lh(M,3)||!(cy(C,2112)||cy(M,2112)))hs=an;else if(Se(C,M)){switch(me){case 50:case 73:Wo();break;case 43:case 68:ht<3&&He(Z,w.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}hs=Un}else Wo(Se),hs=_r;return Pa&&Ga&&yn(hs),hs}case 40:case 65:if(C===ou||M===ou)return ou;!lh(C,402653316)&&!lh(M,402653316)&&(C=HI(C,a),M=HI(M,b));let Xa;return lh(C,296,!0)&&lh(M,296,!0)?Xa=an:lh(C,2112,!0)&&lh(M,2112,!0)?Xa=Un:lh(C,402653316,!0)||lh(M,402653316,!0)?Xa=xe:(Q_(C)||Q_(M))&&(Xa=je(C)||je(M)?_r:gn),Xa&&!Pt(me)?Xa:Xa?(me===65&&yn(Xa),Xa):(Wo((Ga,hs)=>lh(Ga,402655727)&&lh(hs,402655727)),gn);case 30:case 32:case 33:case 34:return Pt(me)&&(C=tN(HI(C,a)),M=tN(HI(M,b)),bi((Pa,Ga)=>{if(Q_(Pa)||Q_(Ga))return!0;const hs=Mp(Pa,q_),Ld=Mp(Ga,q_);return hs&&Ld||!hs&&!Ld&&nbe(Pa,Ga)})),Ca;case 35:case 36:case 37:case 38:if(!(z&&z&128)){if((HX(a)||HX(b))&&(!Rs(a)||me===37||me===38)){const Pa=me===35||me===37;He(Z,w.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Pa?"false":"true")}$s(Z,me,a,b),bi((Pa,Ga)=>i1e(Pa,Ga)||i1e(Ga,Pa))}return Ca;case 104:return dnt(a,b,C,M);case 103:return rwe(a,b,C,M);case 56:case 77:{const Pa=bS(C)&4194304?gl([dBe(Ye?C:Tx(M)),M]):C;return me===77&&yn(M),Pa}case 57:case 76:{const Pa=bS(C)&8388608?gl([aM(_Be(C)),M],2):C;return me===76&&yn(M),Pa}case 61:case 78:{const Pa=bS(C)&262144?gl([aM(C),M],2):C;return me===78&&yn(M),Pa}case 64:const Go=ys(a.parent)?Qy(a.parent):0;return Je(Go,M),hr(Go)?((!(M.flags&524288)||Go!==2&&Go!==6&&!rM(M)&&!DBe(M)&&!(ji(M)&1))&&yn(M),C):(yn(M),M);case 28:if(!Le.allowUnreachableCode&&Hte(a)&&!vt(a.parent)){const Pa=ns(a),Ga=Pa.text,hs=ep(Ga,a.pos);Pa.parseDiagnostics.some(nl=>nl.code!==w.JSX_expressions_must_have_one_parent_element.code?!1:kTe(nl,hs))||He(a,w.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return M;default:return ce.fail()}function Se(lo,Xa){return lh(lo,2112)&&lh(Xa,2112)}function Je(lo,Xa){if(lo===2)for(const Go of O2(Xa)){const Pa=Vo(Go);if(Pa.symbol&&Pa.symbol.flags&32){const Ga=Go.escapedName,hs=Ro(Go.valueDeclaration,Ga,788968,void 0,Ga,!1);hs!=null&&hs.declarations&&hs.declarations.some(A2)&&(Ao(hs,w.Duplicate_identifier_0,lf(Ga),Go),Ao(Go,w.Duplicate_identifier_0,lf(Ga),hs))}}}function vt(lo){return lo.parent.kind===217&&nS(lo.left)&&lo.left.text==="0"&&(el(lo.parent.parent)&&lo.parent.parent.expression===lo.parent||lo.parent.parent.kind===215)&&(Kf(lo.right)||An(lo.right)&&lo.right.escapedText==="eval")}function Pt(lo){const Xa=r1e(C,12288)?a:r1e(M,12288)?b:void 0;return Xa?(He(Xa,w.The_0_operator_cannot_be_applied_to_type_symbol,Nd(lo)),!1):!0}function dn(lo){switch(lo){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function yn(lo){zN(me)&&s(Xa);function Xa(){let Go=C;if(sj(_.kind)&&a.kind===211&&(Go=o8(a,void 0,!0)),AK(a,w.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Pa;if(on&&sa(a)&&cy(lo,32768)){const Ga=wm(yT(a.expression),a.name.escapedText);Jue(lo,Ga)&&(Pa=w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}X4(lo,Go,a,b,Pa)}}}function hr(lo){var Xa;switch(lo){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Go=Vl(a),Pa=x7(b);return!!Pa&&Wd(Pa)&&!!((Xa=Go==null?void 0:Go.exports)!=null&&Xa.size);default:return!1}}function bi(lo){return lo(C,M)?!1:(Wo(lo),!0)}function Wo(lo){let Xa=!1;const Go=Z||_;if(lo){const nl=sL(C),id=sL(M);Xa=!(nl===C&&id===M)&&!!(nl&&id)&&lo(nl,id)}let Pa=C,Ga=M;!Xa&&lo&&([Pa,Ga]=ryt(C,M,lo));const[hs,Ld]=dD(Pa,Ga);aa(Go,Xa,hs,Ld)||Mr(Go,Xa,w.Operator_0_cannot_be_applied_to_types_1_and_2,Nd(_.kind),hs,Ld)}function aa(lo,Xa,Go,Pa){switch(_.kind){case 37:case 35:case 38:case 36:return Mr(lo,Xa,w.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Go,Pa);default:return}}function $s(lo,Xa,Go,Pa){const Ga=Ba(_g(Go)),hs=Ba(_g(Pa));if(Ga||hs){const Ld=He(lo,w.This_condition_will_always_return_0,Nd(Xa===37||Xa===35?97:112));if(Ga&&hs)return;const nl=Xa===38||Xa===36?Nd(54):"",id=Ga?Pa:Go,$y=_g(id);ml(Ld,kc(id,w.Did_you_mean_0,`${nl}Number.isNaN(${Uh($y)?oE($y):"..."})`))}}function Ba(lo){if(An(lo)&&lo.escapedText==="NaN"){const Xa=j0e();return!!Xa&&Xa===ED(lo)}return!1}}function ryt(a,_,b){let C=a,M=_;const z=Tx(a),Z=Tx(_);return b(z,Z)||(C=z,M=Z),[C,M]}function bnt(a){s(dn);const _=GE(a);if(!_)return gn;const b=L0(_);if(!(b&1))return gn;const C=(b&2)!==0;a.asteriskToken&&(C&&ht<99&&Jy(a,26624),!C&&ht<2&&Le.downlevelIteration&&Jy(a,256));const M=se(_),z=M&&ert(M,C),Z=z&&z.yieldType||gn,me=z&&z.nextType||gn,Se=C?qB(me)||gn:me,Je=a.expression?n_(a.expression):xu,vt=Mze(a,Je,Se,C);if(M&&vt&&X4(vt,Z,a.expression||a,a.expression),a.asteriskToken)return _Ge(C?19:17,1,Je,a.expression)||gn;if(M)return MO(2,M,C)||gn;let Pt=Nbe(2,_);return Pt||(Pt=gn,s(()=>{if(Wt&&!QSe(a)){const yn=PE(a,void 0);(!yn||Q_(yn))&&He(a,w.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Pt;function dn(){a.flags&16384||c1(a,w.A_yield_expression_is_only_allowed_in_a_generator_body),jBe(a)&&He(a,w.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function iyt(a,_){const b=NK(a.condition,_);Cwe(a.condition,b,a.whenTrue);const C=n_(a.whenTrue,_),M=n_(a.whenFalse,_);return gl([C,M],2)}function Vze(a){const _=a.parent;return sb(_)&&Vze(_)||Ed(_)&&_.argumentExpression===a}function oyt(a){const _=[a.head.text],b=[];for(const M of a.templateSpans){const z=n_(M.expression);r1e(z,12288)&&He(M.expression,w.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),_.push(M.literal.text),b.push(Mp(z,Ma)?z:xe)}if(Jte(a)||Vze(a)||dM(PE(a,void 0)||co,ayt))return kB(_,b);const C=a.parent.kind!==215&&lrt(a);return C?ZP(qv(C)):xe}function ayt(a){return!!(a.flags&134217856||a.flags&58982400&&cy(Co(a)||co,402653316))}function Tnt(a){return iD(a)&&!TW(a.parent)?a.parent.parent:a}function JB(a,_,b,C){const M=Tnt(a);Iw(M,_,!1),tht(M,b);const z=n_(a,C|1|(b?2:0));b&&b.intraExpressionInferenceSites&&(b.intraExpressionInferenceSites=void 0);const Z=cy(z,2944)&&swe(z,ffe(_,a,void 0))?B1(z):z;return nht(),kte(),Z}function Iv(a,_){if(_)return n_(a,_);const b=ge(a);if(!b.resolvedType){const C=P,M=ae;P=k,ae=void 0,b.resolvedType=n_(a,_),ae=M,P=C}return b.resolvedType}function awe(a){return a=_g(a,!0),a.kind===216||a.kind===234||$Y(a)}function DK(a,_,b){const C=j8(a);if(Rs(a)){const z=ZH(a);if(z)return Tze(C,z,_)}const M=RO(C)||(b?JB(C,b,void 0,_||0):Iv(C,_));return Pu(a)&&a.name.kind===207&&_p(M)&&!M.target.hasRestElement&&Fo(M)swe(a,C))}if(_.flags&58982400){const b=Co(_)||co;return cy(b,4)&&cy(a,128)||cy(b,8)&&cy(a,256)||cy(b,64)&&cy(a,2048)||cy(b,4096)&&cy(a,8192)||swe(a,b)}return!!(_.flags&406847616&&cy(a,128)||_.flags&256&&cy(a,256)||_.flags&2048&&cy(a,2048)||_.flags&512&&cy(a,512)||_.flags&8192&&cy(a,8192))}return!1}function Jte(a){const _=a.parent;return _7(_)&&CN(_.type)||$Y(_)&&CN(qY(_))||jte(a)&&nc(PE(a,0))||(sb(_)||Ch(_)||ex(_))&&Jte(_)||(Fm(_)||BT(_)||VY(_))&&Jte(_.parent)}function $te(a,_,b){const C=n_(a,_,b);return Jte(a)||rSe(a)?B1(C):awe(a)?C:sBe(C,ffe(PE(a,void 0),a,void 0))}function kfe(a,_){return a.name.kind===167&&Pw(a.name),$te(a.initializer,_)}function Pfe(a,_){Wrt(a),a.name.kind===167&&Pw(a.name);const b=fnt(a,_);return Uze(a,b,_)}function Uze(a,_,b){if(b&&b&10){const C=FV(_,0,!0),M=FV(_,1,!0),z=C||M;if(z&&z.typeParameters){const Z=CO(a,2);if(Z){const me=FV(aM(Z),C?0:1,!1);if(me&&!me.typeParameters){if(b&8)return Snt(a,b),Mg;const Se=DO(a),Je=Se.signature&&j(Se.signature),vt=Je&&_ze(Je);if(vt&&!vt.typeParameters&&!jr(Se.inferences,zV)){const Pt=lyt(Se,z.typeParameters),dn=Us(z,Pt),yn=Vn(Se.inferences,hr=>Yue(hr.typeParameter));if(mBe(dn,me,(hr,bi)=>{uM(yn,hr,bi,0,!0)}),gt(yn,zV)&&(gBe(dn,me,(hr,bi)=>{uM(yn,hr,bi)}),!Jze(Se.inferences,yn)))return cyt(Se.inferences,yn),Se.inferredTypeParameters=Hi(Se.inferredTypeParameters,Pt),WI(dn)}return WI(Htt(z,me,Se))}}}}return _}function Snt(a,_){if(_&2){const b=DO(a);b.flags|=4}}function zV(a){return!!(a.candidates||a.contraCandidates)}function Hze(a){return!!(a.candidates||a.contraCandidates||XR(a.typeParameter))}function Jze(a,_){for(let b=0;bb.symbol.escapedName===_)}function uyt(a,_){let b=_.length;for(;b>1&&_.charCodeAt(b-1)>=48&&_.charCodeAt(b-1)<=57;)b--;const C=_.slice(0,b);for(let M=1;;M++){const z=C+M;if(!$ze(a,z))return z}}function Ent(a){const _=NO(a);if(_&&!_.typeParameters)return j(_)}function xnt(a){const _=n_(a.expression),b=Kue(_,a.expression),C=Ent(_);return C&&fbe(C,a,b!==_)}function yT(a){const _=RO(a);if(_)return _;if(a.flags&268435456&&ae){const M=ae[Im(a)];if(M)return M}const b=J,C=n_(a,128);if(J!==b){const M=ae||(ae=[]);M[Im(a)]=C,YSe(a,a.flags|268435456)}return C}function RO(a){let _=_g(a,!0);if($Y(_)){const b=qY(_);if(!CN(b))return wl(b)}if(_=_g(a),h6(_)){const b=RO(_.expression);return b?qB(b):void 0}if(el(_)&&_.expression.kind!==108&&!eT(_,!0)&&!yfe(_))return R8(_)?xnt(_):Ent(TK(_.expression));if(_7(_)&&!CN(_.type))return wl(_.type);if(fP(a)||Fl(a))return n_(a)}function qA(a){const _=ge(a);if(_.contextFreeType)return _.contextFreeType;Iw(a,gn,!1);const b=_.contextFreeType=n_(a,4);return kte(),b}function n_(a,_,b){var C,M;(C=tu)==null||C.push(tu.Phase.Check,"checkExpression",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath});const z=ue;ue=a,te=0;const Z=Ant(a,_,b),me=Uze(a,Z,_);return Dfe(me)&&cwe(a,me),ue=z,(M=tu)==null||M.pop(),me}function cwe(a,_){a.parent.kind===211&&a.parent.expression===a||a.parent.kind===212&&a.parent.expression===a||(a.kind===80||a.kind===166)&&S1e(a)||a.parent.kind===186&&a.parent.exprName===a||a.parent.kind===281||He(a,w.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),F0(Le)&&(ce.assert(!!(_.symbol.flags&128)),_.symbol.valueDeclaration.flags&33554432&&!EA(a)&&He(a,w.Cannot_access_ambient_const_enums_when_0_is_enabled,Gn))}function lwe(a,_){if(g1(a)){if(poe(a))return Tze(a.expression,moe(a),_);if($Y(a))return Vte(a,_)}return n_(a.expression,_)}function Ant(a,_,b){const C=a.kind;if(l)switch(C){case 231:case 218:case 219:l.throwIfCancellationRequested()}switch(C){case 80:return ltt(a,_);case 81:return Lte(a);case 110:return gK(a);case 108:return _Ne(a);case 106:return Zt;case 15:case 11:return yBe(a)?mt:ZP(qv(a.text));case 9:return Kwe(a),ZP(bD(+a.text));case 10:return Vrt(a),ZP(Oue({negative:!1,base10Value:l3(a.text)}));case 112:return Ji;case 97:return rr;case 228:return oyt(a);case 14:return Fy;case 209:return QBe(a,_,b);case 210:return lht(a,_);case 211:return o8(a,_);case 166:return Ftt(a,_);case 212:return a8(a,_);case 213:if(a.expression.kind===102)return Wht(a);case 214:return Fht(a,_);case 215:return NE(a);case 217:return lwe(a,_);case 231:return vGe(a);case 218:case 219:return fnt(a,_);case 221:return Zht(a);case 216:case 234:return int(a,_);case 235:return g5(a);case 233:return ont(a);case 238:return Ght(a);case 236:return jht(a);case 220:return Wze(a);case 222:return eyt(a);case 223:return CK(a);case 224:return n1e(a);case 225:return zze(a);case 226:return pn(a,_);case 227:return iyt(a,_);case 230:return Stt(a,_);case 232:return xu;case 229:return bnt(a);case 237:return Ett(a);case 294:return Ptt(a,_);case 284:return xD(a);case 285:return nze(a);case 288:return rze(a);case 292:return Ctt(a,_);case 286:ce.fail("Shouldn't ever directly check a JsxOpeningElement")}return _r}function Cnt(a){aN(a),a.expression&&c1(a.expression,w.Type_expected),bp(a.constraint),bp(a.default);const _=Ok(wi(a));Co(_),$P(_)||He(a.default,w.Type_parameter_0_has_a_circular_default,oa(_));const b=Wi(_),C=LI(_);b&&C&&JS(C,M1(Nf(b,Q6(_,C)),C),a.default,w.Type_0_does_not_satisfy_the_constraint_1),FK(a),s(()=>wK(a.name,w.Type_parameter_name_cannot_be_0))}function uwe(a){var _,b;if(Kp(a.parent)||Jl(a.parent)||mg(a.parent)){const C=Ok(wi(a)),M=vp(C)&98304;if(M){const z=wi(a.parent);if(mg(a.parent)&&!(ji(Rm(z))&48))He(a,w.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(M===32768||M===65536){(_=tu)==null||_.push(tu.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Gh(Rm(z)),id:Gh(C)});const Z=abe(z,C,M===65536?oh:vE),me=abe(z,C,M===65536?vE:oh),Se=C;Ne=C,JS(Z,me,a,w.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Ne=Se,(b=tu)==null||b.pop()}}}}function fwe(a){aN(a),nne(a);const _=GE(a);il(a,16476)&&(_.kind===176&&wx(_.body)||He(a,w.A_parameter_property_is_only_allowed_in_a_constructor_implementation),_.kind===176&&An(a.name)&&a.name.escapedText==="constructor"&&He(a.name,w.constructor_cannot_be_used_as_a_parameter_property_name)),!a.initializer&&hG(a)&&ld(a.name)&&_.body&&He(a,w.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),a.name&&An(a.name)&&(a.name.escapedText==="this"||a.name.escapedText==="new")&&(_.parameters.indexOf(a)!==0&&He(a,w.A_0_parameter_must_be_the_first_parameter,a.name.escapedText),(_.kind===176||_.kind===180||_.kind===185)&&He(a,w.A_constructor_cannot_have_a_this_parameter),_.kind===219&&He(a,w.An_arrow_function_cannot_have_a_this_parameter),(_.kind===177||_.kind===178)&&He(a,w.get_and_set_accessors_cannot_declare_this_parameters)),a.dotDotDotToken&&!ld(a.name)&&!Mp(HT(Vo(a.symbol)),Si)&&He(a,w.A_rest_parameter_must_be_of_an_array_type)}function $B(a){const _=Dnt(a);if(!_){He(a,w.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const b=Cv(_),C=F2(b);if(!C)return;bp(a.type);const{parameterName:M}=a;if(C.kind===0||C.kind===2)Z0e(M);else if(C.parameterIndex>=0){if(oT(b)&&C.parameterIndex===b.parameters.length-1)He(M,w.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const z=()=>Es(void 0,w.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);JS(C.type,Vo(b.parameters[C.parameterIndex]),a.type,void 0,z)}}else if(M){let z=!1;for(const{name:Z}of _.parameters)if(ld(Z)&&qte(Z,M,C.parameterName)){z=!0;break}z||He(a.parameterName,w.Cannot_find_parameter_0,C.parameterName)}}function Dnt(a){switch(a.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const _=a.parent;if(a===_.type)return _}}function qte(a,_,b){for(const C of a.elements){if(t0(C))continue;const M=C.name;if(M.kind===80&&M.escapedText===b)return He(_,w.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,b),!0;if((M.kind===207||M.kind===206)&&qte(M,_,b))return!0}}function Kte(a){a.kind===181?n0t(a):(a.kind===184||a.kind===262||a.kind===185||a.kind===179||a.kind===176||a.kind===180)&&Zfe(a);const _=L0(a);_&4||((_&3)===3&&ht<99&&Jy(a,6144),(_&3)===2&&ht<4&&Jy(a,64),_&3&&ht<2&&Jy(a,128)),b1e(oR(a)),Qyt(a),Ot(a.parameters,fwe),a.type&&bp(a.type),s(b);function b(){p1e(a);let C=bA(a),M=C;if(Rs(a)){const z=w8(a);if(z&&z.typeExpression&&x2(z.typeExpression.type)){const Z=NO(wl(z.typeExpression));Z&&Z.declaration&&(C=bA(Z.declaration),M=z.typeExpression.type)}}if(Wt&&!C)switch(a.kind){case 180:He(a,w.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:He(a,w.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&M){const z=L0(a);if((z&5)===1){const Z=wl(C);if(Z===Ks)He(M,w.A_generator_cannot_have_a_void_type_annotation);else{const me=MO(0,Z,(z&2)!==0)||gn,Se=MO(1,Z,(z&2)!==0)||me,Je=MO(2,Z,(z&2)!==0)||co,vt=Efe(me,Se,Je,!!(z&2));JS(vt,Z,M)}}else(z&3)===2&&bwe(a,C,M)}a.kind!==181&&a.kind!==324&&c8(a)}}function fyt(a){const _=new Map,b=new Map,C=new Map;for(const z of a.members)if(z.kind===176)for(const Z of z.parameters)Eb(Z,z)&&!ld(Z.name)&&M(_,Z.name,Z.name.escapedText,3);else{const Z=e_(z),me=z.name;if(!me)continue;const Se=Gu(me),Je=Se&&Z?16:0,vt=Se?C:Z?b:_,Pt=me&&WN(me);if(Pt)switch(z.kind){case 177:M(vt,me,Pt,1|Je);break;case 178:M(vt,me,Pt,2|Je);break;case 172:M(vt,me,Pt,3|Je);break;case 174:M(vt,me,Pt,8|Je);break}}function M(z,Z,me,Se){const Je=z.get(me);if(Je)if((Je&16)!==(Se&16))He(Z,w.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Yv(Z));else{const vt=!!(Je&8),Pt=!!(Se&8);vt||Pt?vt!==Pt&&He(Z,w.Duplicate_identifier_0,Yv(Z)):Je&Se&-17?He(Z,w.Duplicate_identifier_0,Yv(Z)):z.set(me,Je|Se)}else z.set(me,Se)}}function Int(a){for(const _ of a.members){const b=_.name;if(e_(_)&&b){const M=WN(b);switch(M){case"name":case"length":case"caller":case"arguments":if(Dt)break;case"prototype":const z=w.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Z=dx(wi(a));He(b,z,M,Z);break}}}}function _we(a){const _=new Map;for(const b of a.members)if(b.kind===171){let C;const M=b.name;switch(M.kind){case 11:case 9:C=M.text;break;case 80:C=ec(M);break;default:continue}_.get(C)?(He(o_(b.symbol.valueDeclaration),w.Duplicate_identifier_0,C),He(b.name,w.Duplicate_identifier_0,C)):_.set(C,!0)}}function dwe(a){if(a.kind===264){const b=wi(a);if(b.declarations&&b.declarations.length>0&&b.declarations[0]!==a)return}const _=tK(wi(a));if(_!=null&&_.declarations){const b=new Map;for(const C of _.declarations)C.parameters.length===1&&C.parameters[0].type&&Z4(wl(C.parameters[0].type),M=>{const z=b.get(Gh(M));z?z.declarations.push(C):b.set(Gh(M),{type:M,declarations:[C]})});b.forEach(C=>{if(C.declarations.length>1)for(const M of C.declarations)He(M,w.Duplicate_index_signature_for_type_0,oa(C.type))})}}function pwe(a){!aN(a)&&!pne(a)&&_ne(a.name),nne(a),Kze(a),il(a,256)&&a.kind===172&&a.initializer&&He(a,w.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ud(a.name))}function qze(a){return Gu(a.name)&&He(a,w.Private_identifiers_are_not_allowed_outside_class_bodies),pwe(a)}function knt(a){Wrt(a)||_ne(a.name),em(a)&&a.asteriskToken&&An(a.name)&&ec(a.name)==="constructor"&&He(a.name,w.Class_constructor_may_not_be_a_generator),kK(a),il(a,256)&&a.kind===174&&a.body&&He(a,w.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ud(a.name)),Gu(a.name)&&!h0(a)&&He(a,w.Private_identifiers_are_not_allowed_outside_class_bodies),Kze(a)}function Kze(a){if(Gu(a.name)&&ht<99){for(let _=Bs(a);_;_=Bs(_))ge(_).flags|=1048576;if(B0(a.parent)){const _=Pbe(a.parent);_&&(ge(a.name).flags|=32768,ge(_).flags|=4096)}}}function o1e(a){aN(a),B_(a,bp)}function Pnt(a){Kte(a),jrt(a)||c0t(a),bp(a.body);const _=wi(a),b=Vm(_,a.kind);if(a===b&&gwe(_),Um(a.body))return;s(M);return;function C(z){return Mf(z)?!0:z.kind===172&&!e_(z)&&!!z.initializer}function M(){const z=a.parent;if(oC(z)){zBe(a.parent,z);const Z=Dp(z),me=uNe(a.body);if(me){if(Z&&He(me,w.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ft&&(gt(a.parent.members,C)||gt(a.parameters,Je=>il(Je,16476))))if(!a1e(me,a.body))He(me,w.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 Je;for(const vt of a.body.statements){if(Ou(vt)&&y7(rv(vt.expression))){Je=vt;break}if(s1e(vt))break}Je===void 0&&He(a,w.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 Z||He(a,w.Constructors_for_derived_classes_must_contain_a_super_call)}}}function a1e(a,_){const b=Lx(a.parent);return Ou(b)&&b.parent===_}function s1e(a){return a.kind===108||a.kind===110?!0:bie(a)?!1:!!B_(a,s1e)}function Nnt(a){An(a.name)&&ec(a.name)==="constructor"&&Jl(a.parent)&&He(a.name,w.Class_constructor_may_not_be_an_accessor),s(_),bp(a.body),Kze(a);function _(){if(!Zfe(a)&&!GGe(a)&&_ne(a.name),Ofe(a),Kte(a),a.kind===177&&!(a.flags&33554432)&&wx(a.body)&&a.flags&512&&(a.flags&1024||He(a.name,w.A_get_accessor_must_return_a_value)),a.name.kind===167&&Pw(a.name),GS(a)){const C=wi(a),M=Vm(C,177),z=Vm(C,178);if(M&&z&&!(QB(M)&1)){ge(M).flags|=1;const Z=tS(M),me=tS(z);(Z&256)!==(me&256)&&(He(M.name,w.Accessors_must_both_be_abstract_or_non_abstract),He(z.name,w.Accessors_must_both_be_abstract_or_non_abstract)),(Z&16&&!(me&24)||Z&8&&!(me&8))&&(He(M.name,w.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),He(z.name,w.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const b=M2(wi(a));a.kind===177&&twe(a,b)}}function wnt(a){Ofe(a)}function _yt(a,_,b){return a.typeArguments&&b{const C=mwe(a);C&&Nfe(a,C)});const b=ge(a).resolvedSymbol;b&>(b.declarations,C=>f6(C)&&!!(C.flags&536870912))&&Wn(hfe(a),b.declarations,b.escapedName)}}function pyt(a){const _=to(a.parent,F8);if(!_)return;const b=mwe(_);if(!b)return;const C=Wi(b[_.typeArguments.indexOf(a)]);return C&&Nf(C,IE(b,c1e(_,b)))}function myt(a){pWe(a)}function gyt(a){Ot(a.members,bp),s(_);function _(){const b=MWe(a);wwe(b,b.symbol),dwe(a),_we(a)}}function Rnt(a){bp(a.elementType)}function Mnt(a){const _=a.elements;let b=!1,C=!1;for(const M of _){const z=AWe(M);if(z&8){const Z=wl(M.type);if(!iM(Z)){He(M,w.A_rest_element_type_must_be_an_array_type);break}(UA(Z)||_p(Z)&&Z.target.combinedFlags&4)&&(C=!0)}else if(z&4){if(C){Po(M,w.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(z&2){if(C){Po(M,w.An_optional_element_cannot_follow_a_rest_element);break}b=!0}else if(b){Po(M,w.A_required_element_cannot_follow_an_optional_element);break}}Ot(a.elements,bp),wl(a)}function hyt(a){Ot(a.types,bp),wl(a)}function Lnt(a,_){if(!(a.flags&8388608))return a;const b=a.objectType,C=a.indexType;if(Mp(C,YP(b,0)))return _.kind===212&&IS(_)&&ji(b)&32&&jS(b)&1&&He(_,w.Index_signature_in_type_0_only_permits_reading,oa(b)),a;const M=O1(b);if(Cd(M,an)&&lh(C,296))return a;if(nM(b)){const z=AV(C,_);if(z){const Z=Z4(M,me=>Fn(me,z));if(Z&&Vy(Z)&24)return He(_,w.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,lf(z)),_r}}return He(_,w.Type_0_cannot_be_used_to_index_type_1,oa(C),oa(b)),_r}function yyt(a){bp(a.objectType),bp(a.indexType),Lnt(iet(a),a)}function vyt(a){byt(a),bp(a.typeParameter),bp(a.nameType),bp(a.type),a.type||sM(a,gn);const _=xPe(a),b=Vg(_);if(b)JS(b,x_,a.nameType);else{const C=mT(_);JS(C,x_,AN(a.typeParameter))}}function byt(a){var _;if((_=a.members)!=null&&_.length)return Po(a.members[0],w.A_mapped_type_may_not_declare_properties_or_methods)}function Tyt(a){Z0e(a)}function l1e(a){Frt(a),bp(a.type)}function Syt(a){B_(a,bp)}function Ont(a){Kr(a,b=>b.parent&&b.parent.kind===194&&b.parent.extendsType===b)||Po(a,w.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),bp(a.typeParameter);const _=wi(a.typeParameter);if(_.declarations&&_.declarations.length>1){const b=Mt(_);if(!b.typeParametersChecked){b.typeParametersChecked=!0;const C=Ok(_),M=zVe(_,168);if(!yGe(M,[C],z=>[z])){const z=Cl(_);for(const Z of M)He(Z.name,w.All_declarations_of_0_must_have_identical_constraints,z)}}}c8(a)}function Yze(a){for(const _ of a.templateSpans){bp(_.type);const b=wl(_.type);JS(b,Ma,_.type)}wl(a)}function Eyt(a){bp(a.argument),a.assertions&&D2(a.assertions.assertClause,Po)&&(pG()||Po(a.assertions.assertClause,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Jd(Le)!==3&&Jd(Le)!==99&&Po(a.assertions.assertClause,w.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),GV(a)}function Fnt(a){a.dotDotDotToken&&a.questionToken&&Po(a,w.A_tuple_member_cannot_be_both_optional_and_rest),a.type.kind===190&&Po(a.type,w.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.type.kind===191&&Po(a.type,w.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),bp(a.type),wl(a)}function Xte(a){return(Ab(a,8)||Mf(a))&&!!(a.flags&33554432)}function u1e(a,_){let b=E5(a);if(a.parent.kind!==264&&a.parent.kind!==263&&a.parent.kind!==231&&a.flags&33554432){const C=iE(a);C&&C.flags&128&&!(b&2)&&!(z0(a.parent)&&xp(a.parent.parent)&&$C(a.parent.parent))&&(b|=1),b|=2}return b&_}function gwe(a){s(()=>xyt(a))}function xyt(a){function _(lo,Xa){return Xa!==void 0&&Xa.parent===lo[0].parent?Xa:lo[0]}function b(lo,Xa,Go,Pa,Ga){if((Pa^Ga)!==0){const Ld=u1e(_(lo,Xa),Go);Ot(lo,nl=>{const id=u1e(nl,Go)^Ld;id&1?He(o_(nl),w.Overload_signatures_must_all_be_exported_or_non_exported):id&2?He(o_(nl),w.Overload_signatures_must_all_be_ambient_or_non_ambient):id&24?He(o_(nl)||nl,w.Overload_signatures_must_all_be_public_private_or_protected):id&256&&He(o_(nl),w.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(lo,Xa,Go,Pa){if(Go!==Pa){const Ga=sG(_(lo,Xa));Ot(lo,hs=>{sG(hs)!==Ga&&He(o_(hs),w.Overload_signatures_must_all_be_optional_or_required)})}}const M=283;let z=0,Z=M,me=!1,Se=!0,Je=!1,vt,Pt,dn;const yn=a.declarations,hr=(a.flags&16384)!==0;function bi(lo){if(lo.name&&Um(lo.name))return;let Xa=!1;const Go=B_(lo.parent,Ga=>{if(Xa)return Ga;Xa=Ga===lo});if(Go&&Go.pos===lo.end&&Go.kind===lo.kind){const Ga=Go.name||Go,hs=Go.name;if(lo.name&&hs&&(Gu(lo.name)&&Gu(hs)&&lo.name.escapedText===hs.escapedText||am(lo.name)&&am(hs)&&eN(Pw(lo.name),Pw(hs))||yA(lo.name)&&yA(hs)&&gY(lo.name)===gY(hs))){if((lo.kind===174||lo.kind===173)&&e_(lo)!==e_(Go)){const nl=e_(lo)?w.Function_overload_must_be_static:w.Function_overload_must_not_be_static;He(Ga,nl)}return}if(wx(Go.body)){He(Ga,w.Function_implementation_name_must_be_0,Ud(lo.name));return}}const Pa=lo.name||lo;hr?He(Pa,w.Constructor_implementation_is_missing):il(lo,256)?He(Pa,w.All_declarations_of_an_abstract_method_must_be_consecutive):He(Pa,w.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Wo=!1,aa=!1,$s=!1;const Ba=[];if(yn)for(const lo of yn){const Xa=lo,Go=Xa.flags&33554432,Pa=Xa.parent&&(Xa.parent.kind===264||Xa.parent.kind===187)||Go;if(Pa&&(dn=void 0),(Xa.kind===263||Xa.kind===231)&&!Go&&($s=!0),Xa.kind===262||Xa.kind===174||Xa.kind===173||Xa.kind===176){Ba.push(Xa);const Ga=u1e(Xa,M);z|=Ga,Z&=Ga,me=me||sG(Xa),Se=Se&&sG(Xa);const hs=wx(Xa.body);hs&&vt?hr?aa=!0:Wo=!0:(dn==null?void 0:dn.parent)===Xa.parent&&dn.end!==Xa.pos&&bi(dn),hs?vt||(vt=Xa):Je=!0,dn=Xa,Pa||(Pt=Xa)}if(Rs(lo)&&S_(lo)&&lo.jsDoc){for(const Ga of lo.jsDoc)if(Ga.tags)for(const hs of Ga.tags)OG(hs)&&(Je=!0)}}if(aa&&Ot(Ba,lo=>{He(lo,w.Multiple_constructor_implementations_are_not_allowed)}),Wo&&Ot(Ba,lo=>{He(o_(lo)||lo,w.Duplicate_function_implementation)}),$s&&!hr&&a.flags&16&&yn){const lo=gi(yn,Xa=>Xa.kind===263).map(Xa=>kc(Xa,w.Consider_adding_a_declare_modifier_to_this_class));Ot(yn,Xa=>{const Go=Xa.kind===263?w.Class_declaration_cannot_implement_overload_list_for_0:Xa.kind===262?w.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Go&&ml(He(o_(Xa)||Xa,Go,mp(a)),...lo)})}if(Pt&&!Pt.body&&!il(Pt,256)&&!Pt.questionToken&&bi(Pt),Je&&(yn&&(b(yn,vt,M,z,Z),C(yn,vt,me,Se)),vt)){const lo=vh(a),Xa=Cv(vt);for(const Go of lo)if(!KWe(Xa,Go)){const Pa=Go.declaration&&Ak(Go.declaration)?Go.declaration.parent.tagName:Go.declaration;ml(He(Pa,w.This_overload_signature_is_not_compatible_with_its_implementation_signature),kc(vt,w.The_implementation_signature_is_declared_here));break}}}function wfe(a){s(()=>hwe(a))}function hwe(a){let _=a.localSymbol;if(!_&&(_=wi(a),!_.exportSymbol)||Vm(_,a.kind)!==a)return;let b=0,C=0,M=0;for(const Je of _.declarations){const vt=Se(Je),Pt=u1e(Je,1025);Pt&1?Pt&1024?M|=vt:b|=vt:C|=vt}const z=b|C,Z=b&C,me=M&z;if(Z||me)for(const Je of _.declarations){const vt=Se(Je),Pt=o_(Je);vt&me?He(Pt,w.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ud(Pt)):vt&Z&&He(Pt,w.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ud(Pt))}function Se(Je){let vt=Je;switch(vt.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Ov(vt)||kR(vt)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Pt=vt,dn=Ly(Pt)?Pt.expression:Pt.right;if(!Uh(dn))return 1;vt=dn;case 271:case 274:case 273:let yn=0;const hr=Xp(wi(vt));return Ot(hr.declarations,bi=>{yn|=Se(bi)}),yn;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return ce.failBadSyntaxKind(vt)}}}function Rfe(a,_,b,...C){const M=Mfe(a,_);return M&&qB(M,_,b,...C)}function Mfe(a,_,b){if(Q_(a))return;const C=a;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(gD(a,CB(!1)))return C.promisedTypeOfPromise=Tm(a)[0];if(Cfe(DE(a),402915324))return;const M=wm(a,"then");if(Q_(M))return;const z=M?Ti(M,0):Zn;if(z.length===0){_&&He(_,w.A_promise_must_have_a_then_method);return}let Z,me;for(const vt of z){const Pt=xC(vt);Pt&&Pt!==Ks&&!Vk(a,Pt,gc)?Z=Pt:me=ur(me,vt)}if(!me){ce.assertIsDefined(Z),b&&(b.value=Z),_&&He(_,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,oa(a),oa(Z));return}const Se=JA(gl(Vn(me,Jk)),2097152);if(Q_(Se))return;const Je=Ti(Se,0);if(Je.length===0){_&&He(_,w.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=gl(Vn(Je,Jk),2)}function Lfe(a,_,b,C,...M){return(_?qB(a,b,C,...M):sL(a,b,C,...M))||_r}function Wnt(a){if(Cfe(DE(a),402915324))return!1;const _=wm(a,"then");return!!_&&Ti(JA(_,2097152),0).length>0}function y5(a){var _;if(a.flags&16777216){const b=TWe(!1);return!!b&&a.aliasSymbol===b&&((_=a.aliasTypeArguments)==null?void 0:_.length)===1}return!1}function Ax(a){return a.flags&1048576?bh(a,Ax):y5(a)?a.aliasTypeArguments[0]:a}function ywe(a){if(Q_(a)||y5(a))return!1;if(nM(a)){const _=Co(a);if(_?_.flags&3||rM(_)||dM(_,Wnt):cy(a,8650752))return!0}return!1}function Ayt(a){const _=TWe(!0);if(_)return Mc(_,[Ax(a)])}function vwe(a){if(ywe(a)){const _=Ayt(a);if(_)return _}return ce.assert(y5(a)||Mfe(a)===void 0,"type provided should not be a non-generic 'promise'-like."),a}function qB(a,_,b,...C){const M=sL(a,_,b,...C);return M&&vwe(M)}function sL(a,_,b,...C){if(Q_(a)||y5(a))return a;const M=a;if(M.awaitedTypeOfType)return M.awaitedTypeOfType;if(a.flags&1048576){if(io.lastIndexOf(a.id)>=0){_&&He(_,w.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const me=_?Je=>sL(Je,_,b,...C):sL;io.push(a.id);const Se=bh(a,me);return io.pop(),M.awaitedTypeOfType=Se}if(ywe(a))return M.awaitedTypeOfType=a;const z={value:void 0},Z=Mfe(a,void 0,z);if(Z){if(a.id===Z.id||io.lastIndexOf(Z.id)>=0){_&&He(_,w.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}io.push(a.id);const me=sL(Z,_,b,...C);return io.pop(),me?M.awaitedTypeOfType=me:void 0}if(Wnt(a)){if(_){ce.assertIsDefined(b);let me;z.value&&(me=Es(me,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,oa(a),oa(z.value))),me=Es(me,b,...C),no.add(RN(ns(_),_,me))}return}return M.awaitedTypeOfType=a}function bwe(a,_,b){const C=wl(_);if(ht>=2){if(je(C))return;const z=CB(!0);if(z!==rd&&!gD(C,z)){M(w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,_,b,oa(sL(C)||Ks));return}}else{if(Bnt(_),je(C))return;const z=iH(_);if(z===void 0){M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oa(C));return}const Z=P_(z,111551,!0),me=Z?Vo(Z):_r;if(je(me)){z.kind===80&&z.escapedText==="Promise"&&UT(C)===CB(!1)?He(b,w.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):M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oE(z));return}const Se=Hmt(!0);if(Se===Yu){M(w.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,_,b,oE(z));return}const Je=w.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(!JS(me,Se,b,Je,()=>_===b?void 0:Es(void 0,w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Pt=z&&NS(z),dn=Jn(a.locals,Pt.escapedText,111551);if(dn){He(dn.valueDeclaration,w.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,ec(Pt),oE(z));return}}Lfe(C,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function M(z,Z,me,Se){if(Z===me)He(me,z,Se);else{const Je=He(me,w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ml(Je,kc(Z,z,Se))}}}function f1e(a){const _=oN(a);XNe(_,a);const b=j(_);if(b.flags&1)return;const C=Zbe(a);if(!(C!=null&&C.resolvedReturnType))return;let M;const z=C.resolvedReturnType;switch(a.parent.kind){case 263:case 231:M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!_t){M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:M=w.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:M=w.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return ce.failBadSyntaxKind(a.parent)}JS(b,z,a.expression,M)}function Yte(a,_,b,C,M,z=b.length,Z=0){const me=be.createFunctionTypeNode(void 0,Zn,be.createKeywordTypeNode(133));return i2(me,a,_,b,C,M,z,Z)}function Qze(a,_,b,C,M,z,Z){const me=Yte(a,_,b,C,M,z,Z);return WI(me)}function Twe(a){return Qze(void 0,void 0,Zn,a)}function Zze(a){const _=Br("value",a);return Qze(void 0,void 0,[_],Ks)}function Bnt(a){eGe(a&&iH(a),!1)}function eGe(a,_){if(!a)return;const b=NS(a),C=(a.kind===80?788968:1920)|2097152,M=Ro(b,b.escapedText,C,void 0,void 0,!0);if(M&&M.flags&2097152){if(Ur&&i1(M)&&!qk(Xp(M))&&!da(M))t_(M);else if(_&&F0(Le)&&Zp(Le)>=5&&!i1(M)&&!gt(M.declarations,sR)){const z=He(a,w.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),Z=lr(M.declarations||Zn,km);Z&&ml(z,kc(Z,w._0_was_imported_here,ec(b)))}}}function IK(a){const _=tGe(a);_&&Vd(_)&&eGe(_,!0)}function tGe(a){if(a)switch(a.kind){case 193:case 192:return Swe(a.types);case 194:return Swe([a.trueType,a.falseType]);case 196:case 202:return tGe(a.type);case 183:return a.typeName}}function Swe(a){let _;for(let b of a){for(;b.kind===196||b.kind===202;)b=b.type;if(b.kind===146||!Ye&&(b.kind===201&&b.literal.kind===106||b.kind===157))continue;const C=tGe(b);if(!C)return;if(_){if(!An(_)||!An(C)||_.escapedText!==C.escapedText)return}else _=C}return _}function _1e(a){const _=Kb(a);return dP(a)?bde(_):_}function Ofe(a){if(!I3(a)||!Fx(a)||!a.modifiers||!ZD(_t,a,a.parent,a.parent.parent))return;const _=lr(a.modifiers,Qf);if(_){if(_t?(Jy(_,8),a.kind===169&&Jy(_,32)):ht<99&&(Jy(_,8),Kc(a)?a.name?ine(a)&&Jy(_,8388608):Jy(_,8388608):B0(a)||(Gu(a.name)&&(em(a)||Am(a)||rb(a))&&Jy(_,8388608),am(a.name)&&Jy(_,16777216))),Le.emitDecoratorMetadata)switch(Jy(_,16),a.kind){case 263:const b=E2(a);if(b)for(const Z of b.parameters)IK(_1e(Z));break;case 177:case 178:const C=a.kind===177?178:177,M=Vm(wi(a),C);IK(Nh(a)||M&&Nh(M));break;case 174:for(const Z of a.parameters)IK(_1e(Z));IK(bA(a));break;case 172:IK(Kb(a));break;case 169:IK(_1e(a));const z=a.parent;for(const Z of z.parameters)IK(_1e(Z));IK(bA(z));break}for(const b of a.modifiers)Qf(b)&&f1e(b)}}function Cyt(a){s(_);function _(){kK(a),Xk(a),tne(a,a.name)}}function Dyt(a){a.typeExpression||He(a.name,w.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),a.name&&wK(a.name,w.Type_alias_name_cannot_be_0),bp(a.typeExpression),b1e(oR(a))}function Iyt(a){bp(a.constraint);for(const _ of a.typeParameters)bp(_)}function znt(a){bp(a.typeExpression)}function Gnt(a){bp(a.typeExpression);const _=dH(a);if(_){const b=a9(_,CA);if(Nt(b)>1)for(let C=1;C0),b.length>1&&He(b[1],w.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=Ewe(a.class.expression),M=oC(_);if(M){const z=Ewe(M.expression);z&&C.escapedText!==z.escapedText&&He(C,w.JSDoc_0_1_does_not_match_the_extends_2_clause,ec(a.tagName),ec(C),ec(z))}}function d1e(a){const _=P7(a);_&&Mf(_)&&He(a,w.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Ewe(a){switch(a.kind){case 80:return a;case 211:return a.name;default:return}}function kK(a){var _;Ofe(a),Kte(a);const b=L0(a);if(a.name&&a.name.kind===167&&Pw(a.name),GS(a)){const z=wi(a),Z=a.localSymbol||z,me=(_=Z.declarations)==null?void 0:_.find(Se=>Se.kind===a.kind&&!(Se.flags&524288));a===me&&gwe(Z),z.parent&&gwe(z)}const C=a.kind===173?void 0:a.body;if(bp(C),twe(a,se(a)),s(M),Rs(a)){const z=w8(a);z&&z.typeExpression&&!XBe(wl(z.typeExpression),a)&&He(z.typeExpression.type,w.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function M(){bA(a)||(Um(C)&&!Xte(a)&&sM(a,gn),b&1&&wx(C)&&j(Cv(a)))}}function c8(a){s(_);function _(){const b=ns(a);let C=E.get(b.path);C||(C=[],E.set(b.path,C)),C.push(a)}}function iGe(a,_){for(const b of a)switch(b.kind){case 263:case 231:XI(b,_),PK(b,_);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:Qte(b,_);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:b.body&&Qte(b,_),PK(b,_);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:PK(b,_);break;case 195:KB(b,_);break;default:ce.assertNever(b,"Node should not have been registered for unused identifiers check")}}function oGe(a,_,b){const C=o_(a)||a,M=f6(a)?w._0_is_declared_but_never_used:w._0_is_declared_but_its_value_is_never_read;b(a,0,kc(C,M,_))}function Ffe(a){return An(a)&&ec(a).charCodeAt(0)===95}function XI(a,_){for(const b of a.members)switch(b.kind){case 174:case 172:case 177:case 178:if(b.kind===178&&b.symbol.flags&32768)break;const C=wi(b);!C.isReferenced&&(Ab(b,8)||Xv(b)&&Gu(b.name))&&!(b.flags&33554432)&&_(b,0,kc(b.name,w._0_is_declared_but_its_value_is_never_read,Cl(C)));break;case 176:for(const M of b.parameters)!M.symbol.isReferenced&&il(M,8)&&_(M,0,kc(M.name,w.Property_0_is_declared_but_its_value_is_never_read,mp(M.symbol)));break;case 181:case 240:case 175:break;default:ce.fail("Unexpected class member")}}function KB(a,_){const{typeParameter:b}=a;c2(b)&&_(a,1,kc(a,w._0_is_declared_but_its_value_is_never_read,ec(b.name)))}function PK(a,_){const b=wi(a).declarations;if(!b||yl(b)!==a)return;const C=oR(a),M=new Set;for(const z of C){if(!c2(z))continue;const Z=ec(z.name),{parent:me}=z;if(me.kind!==195&&me.typeParameters.every(c2)){if(m2(M,me)){const Se=ns(me),Je=jx(me)?coe(me):loe(Se,me.typeParameters),Pt=me.typeParameters.length===1?[w._0_is_declared_but_its_value_is_never_read,Z]:[w.All_type_parameters_are_unused];_(z,1,Pp(Se,Je.pos,Je.end-Je.pos,...Pt))}}else _(z,1,kc(z,w._0_is_declared_but_its_value_is_never_read,Z))}}function c2(a){return!(wa(a.symbol).isReferenced&262144)&&!Ffe(a.name)}function KA(a,_,b,C){const M=String(C(_)),z=a.get(M);z?z[1].push(b):a.set(M,[_,[b]])}function $k(a){return to(rI(a),Pu)}function Wfe(a){return ym(a)?E1(a.parent)?!!(a.propertyName&&Ffe(a.name)):Ffe(a.name):Ov(a)||(ff(a)&&DS(a.parent.parent)||sGe(a))&&Ffe(a.name)}function Qte(a,_){const b=new Map,C=new Map,M=new Map;a.locals.forEach(z=>{if(!(z.flags&262144?!(z.flags&3&&!(z.isReferenced&3)):z.isReferenced||z.exportSymbol)&&z.declarations){for(const Z of z.declarations)if(!Wfe(Z))if(sGe(Z))KA(b,wyt(Z),Z,Im);else if(ym(Z)&&E1(Z.parent)){const me=yl(Z.parent.elements);(Z===me||!yl(Z.parent.elements).dotDotDotToken)&&KA(C,Z.parent,Z,Im)}else if(ff(Z)){const me=x5(Z)&7,Se=o_(Z);(me!==4&&me!==6||!Se||!Ffe(Se))&&KA(M,Z.parent,Z,Im)}else{const me=z.valueDeclaration&&$k(z.valueDeclaration),Se=z.valueDeclaration&&o_(z.valueDeclaration);me&&Se?!Eb(me,me.parent)&&!oI(me)&&!Ffe(Se)&&(ym(Z)&&vW(Z.parent)?KA(C,Z.parent,Z,Im):_(me,1,kc(Se,w._0_is_declared_but_its_value_is_never_read,mp(z)))):oGe(Z,mp(z),_)}}}),b.forEach(([z,Z])=>{const me=z.parent;if((z.name?1:0)+(z.namedBindings?z.namedBindings.kind===274?1:z.namedBindings.elements.length:0)===Z.length)_(me,0,Z.length===1?kc(me,w._0_is_declared_but_its_value_is_never_read,ec(Dl(Z).name)):kc(me,w.All_imports_in_import_declaration_are_unused));else for(const Je of Z)oGe(Je,ec(Je.name),_)}),C.forEach(([z,Z])=>{const me=$k(z.parent)?1:0;if(z.elements.length===Z.length)Z.length===1&&z.parent.kind===260&&z.parent.parent.kind===261?KA(M,z.parent.parent,z.parent,Im):_(z,me,Z.length===1?kc(z,w._0_is_declared_but_its_value_is_never_read,Zte(Dl(Z).name)):kc(z,w.All_destructured_elements_are_unused));else for(const Se of Z)_(Se,me,kc(Se,w._0_is_declared_but_its_value_is_never_read,Zte(Se.name)))}),M.forEach(([z,Z])=>{if(z.declarations.length===Z.length)_(z,0,Z.length===1?kc(Dl(Z).name,w._0_is_declared_but_its_value_is_never_read,Zte(Dl(Z).name)):kc(z.parent.kind===243?z.parent:z,w.All_variables_are_unused));else for(const me of Z)_(me,0,kc(me,w._0_is_declared_but_its_value_is_never_read,Zte(me.name)))})}function aGe(){var a;for(const _ of Ki)if(!((a=wi(_))!=null&&a.isReferenced)){const b=zX(_);ce.assert(Y8(b),"Only parameter declaration should be checked here");const C=kc(_.name,w._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ud(_.name),Ud(_.propertyName));b.type||ml(C,Pp(ns(b),b.end,1,w.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ud(_.propertyName))),no.add(C)}}function Zte(a){switch(a.kind){case 80:return ec(a);case 207:case 206:return Zte(uc(Dl(a.elements),ym).name);default:return ce.assertNever(a)}}function sGe(a){return a.kind===273||a.kind===276||a.kind===274}function wyt(a){return a.kind===273?a:a.kind===274?a.parent:a.parent.parent}function xwe(a){if(a.kind===241&&hM(a),nde(a)){const _=$;Ot(a.statements,bp),$=_}else Ot(a.statements,bp);a.locals&&c8(a)}function p1e(a){ht>=2||!iie(a)||a.flags&33554432||Um(a.body)||Ot(a.parameters,_=>{_.name&&!ld(_.name)&&_.name.escapedText===Cr.escapedName&&w_("noEmit",_,w.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function ene(a,_,b){if((_==null?void 0:_.escapedText)!==b||a.kind===172||a.kind===171||a.kind===174||a.kind===173||a.kind===177||a.kind===178||a.kind===303||a.flags&33554432||(lC(a)||kh(a)||oS(a))&&sR(a))return!1;const C=rI(a);return!(Pu(C)&&Um(C.parent.body))}function Ryt(a){Kr(a,_=>QB(_)&4?(a.kind!==80?He(o_(a),w.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):He(a,w.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Myt(a){Kr(a,_=>QB(_)&8?(a.kind!==80?He(o_(a),w.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):He(a,w.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Lyt(a,_){if(ke>=5&&!(ke>=100&&ns(a).impliedNodeFormat===1)||!_||!ene(a,_,"require")&&!ene(a,_,"exports")||xp(a)&&kR(a)!==1)return;const b=FA(a);b.kind===312&&h1(b)&&w_("noEmit",_,w.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ud(_),Ud(_))}function Oyt(a,_){if(!_||ht>=4||!ene(a,_,"Promise")||xp(a)&&kR(a)!==1)return;const b=FA(a);b.kind===312&&h1(b)&&b.flags&4096&&w_("noEmit",_,w.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ud(_),Ud(_))}function Fyt(a,_){ht<=8&&(ene(a,_,"WeakMap")||ene(a,_,"WeakSet"))&&Pn.push(a)}function Wyt(a){const _=Bs(a);QB(_)&1048576&&(ce.assert(Xv(a)&&An(a.name)&&typeof a.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),w_("noEmit",a,w.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,a.name.escapedText))}function Byt(a,_){_&&ht>=2&&ht<=8&&ene(a,_,"Reflect")&&Fr.push(a)}function Vnt(a){let _=!1;if(B0(a)){for(const b of a.members)if(QB(b)&2097152){_=!0;break}}else if(Dm(a))QB(a)&2097152&&(_=!0);else{const b=Bs(a);b&&QB(b)&2097152&&(_=!0)}_&&(ce.assert(Xv(a)&&An(a.name),"The target of a Reflect collision check should be an identifier"),w_("noEmit",a,w.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ud(a.name),"Reflect"))}function tne(a,_){_&&(Lyt(a,_),Oyt(a,_),Fyt(a,_),Byt(a,_),Jl(a)?(wK(_,w.Class_name_cannot_be_0),a.flags&33554432||Yyt(_)):Ih(a)&&wK(_,w.Enum_name_cannot_be_0))}function zyt(a){if(x5(a)&7||Y8(a))return;const _=wi(a);if(_.flags&1){if(!An(a.name))return ce.fail();const b=Ro(a,a.name.escapedText,3,void 0,void 0,!1);if(b&&b!==_&&b.flags&2&&PNe(b)&7){const C=e6(b.valueDeclaration,261),M=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(M&&(M.kind===241&&S_(M.parent)||M.kind===268||M.kind===267||M.kind===312))){const Z=Cl(b);He(a,w.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,Z,Z)}}}}function Bfe(a){return a===qr?gn:a===ii?ir:a}function nne(a){var _;if(Ofe(a),ym(a)||bp(a.type),!a.name)return;if(a.name.kind===167&&(Pw(a.name),p7(a)&&a.initializer&&Iv(a.initializer)),ym(a)){if(a.propertyName&&An(a.name)&&Y8(a)&&Um(GE(a).body)){Ki.push(a);return}E1(a.parent)&&a.dotDotDotToken&&ht<5&&Jy(a,4),a.propertyName&&a.propertyName.kind===167&&Pw(a.propertyName);const M=a.parent.parent,z=a.dotDotDotToken?64:0,Z=Vt(M,z),me=a.propertyName||a.name;if(Z&&!ld(me)){const Se=q6(me);if(yv(Se)){const Je=vv(Se),vt=Fn(Z,Je);vt&&(OV(vt,void 0,!1),NNe(a,!!M.initializer&&M.initializer.kind===108,!1,Z,vt))}}}if(ld(a.name)&&(a.name.kind===207&&ht<2&&Le.downlevelIteration&&Jy(a,512),Ot(a.name.elements,bp)),Pu(a)&&a.initializer&&Um(GE(a).body)){He(a,w.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ld(a.name)){if(efe(a))return;const M=p7(a)&&a.initializer&&a.parent.parent.kind!==249,z=!gt(a.name.elements,gN(t0));if(M||z){const Z=rt(a);if(M){const me=Iv(a.initializer);Ye&&z?Ltt(me,a):X4(me,rt(a),a,a.initializer)}z&&(vW(a.name)?cL(65,Z,Ui,a):Ye&&Ltt(Z,a))}return}const b=wi(a);if(b.flags&2097152&&(pR(a)||UVe(a))){Fwe(a);return}const C=Bfe(Vo(b));if(a===b.valueDeclaration){const M=p7(a)&&j8(a);if(M&&!(Rs(a)&&Wd(M)&&(M.properties.length===0||r6(a.name))&&!!((_=b.exports)!=null&&_.size))&&a.parent.parent.kind!==249){const Z=Iv(M);X4(Z,C,a,M,void 0);const me=x5(a)&7;if(me===6){const Se=WZe(!0),Je=_te(!0);if(Se!==Yu&&Je!==Yu){const vt=gl([Se,Je,$e,Ui]);JS(Z,vt,M,w.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(me===4){const Se=_te(!0);if(Se!==Yu){const Je=gl([Se,$e,Ui]);JS(Z,Je,M,w.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}b.declarations&&b.declarations.length>1&>(b.declarations,z=>z!==a&&hP(z)&&!Hnt(z,a))&&He(a.name,w.All_declarations_of_0_must_have_identical_modifiers,Ud(a.name))}else{const M=Bfe(rt(a));!je(C)&&!je(M)&&!eN(C,M)&&!(b.flags&67108864)&&Unt(b.valueDeclaration,C,a,M),p7(a)&&a.initializer&&X4(Iv(a.initializer),M,a,a.initializer,void 0),b.valueDeclaration&&!Hnt(a,b.valueDeclaration)&&He(a.name,w.All_declarations_of_0_must_have_identical_modifiers,Ud(a.name))}a.kind!==172&&a.kind!==171&&(wfe(a),(a.kind===260||a.kind===208)&&zyt(a),tne(a,a.name))}function Unt(a,_,b,C){const M=o_(b),z=b.kind===172||b.kind===171?w.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:w.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Z=Ud(M),me=He(M,z,Z,oa(_),oa(C));a&&ml(me,kc(a,w._0_was_also_declared_here,Z))}function Hnt(a,_){if(a.kind===169&&_.kind===260||a.kind===260&&_.kind===169)return!0;if(sG(a)!==sG(_))return!1;const b=888;return ZC(a,b)===ZC(_,b)}function cGe(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkVariableDeclaration",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath}),b5(a),nne(a),(b=tu)==null||b.pop()}function m1e(a){return r0t(a),nne(a)}function g1e(a){const _=qD(a)&7;(_===4||_===6)&&Jy(a,33554432),Ot(a.declarations,bp)}function h1e(a){!aN(a)&&!dne(a.declarationList)&&o0t(a),g1e(a.declarationList)}function Gyt(a){hM(a),n_(a.expression)}function Awe(a){hM(a);const _=NK(a.expression);Cwe(a.expression,_,a.thenStatement),bp(a.thenStatement),a.thenStatement.kind===242&&He(a.thenStatement,w.The_body_of_an_if_statement_cannot_be_the_empty_statement),bp(a.elseStatement)}function Cwe(a,_,b){if(!Ye)return;C(a,b);function C(z,Z){for(z=_g(z),M(z,Z);ys(z)&&(z.operatorToken.kind===57||z.operatorToken.kind===61);)z=_g(z.left),M(z,Z)}function M(z,Z){const me=IH(z)?_g(z.right):z;if(KC(me))return;if(IH(me)){C(me,Z);return}const Se=me===z?_:NK(me),Je=sa(me)&&awe(me.expression);if(!(bS(Se)&4194304)||Je)return;const vt=Ti(Se,0),Pt=!!Rfe(Se);if(vt.length===0&&!Pt)return;const dn=An(me)?me:sa(me)?me.name:void 0,yn=dn&&CD(dn);if(!yn&&!Pt)return;yn&&ys(z.parent)&&Jnt(z.parent,yn)||yn&&Z&&jyt(z,Z,dn,yn)||(Pt?Mr(me,!0,w.This_condition_will_always_return_true_since_this_0_is_always_defined,a0(Se)):He(me,w.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function jyt(a,_,b,C){return!!B_(_,function M(z){if(An(z)){const Z=CD(z);if(Z&&Z===C){if(An(a)||An(b)&&ys(b.parent))return!0;let me=b.parent,Se=z.parent;for(;me&&Se;){if(An(me)&&An(Se)||me.kind===110&&Se.kind===110)return CD(me)===CD(Se);if(sa(me)&&sa(Se)){if(CD(me.name)!==CD(Se.name))return!1;Se=Se.expression,me=me.expression}else if(el(me)&&el(Se))Se=Se.expression,me=me.expression;else return!1}}}return B_(z,M)})}function Jnt(a,_){for(;ys(a)&&a.operatorToken.kind===56;){if(B_(a.right,function C(M){if(An(M)){const z=CD(M);if(z&&z===_)return!0}return B_(M,C)}))return!0;a=a.parent}return!1}function $nt(a){hM(a),bp(a.statement),NK(a.expression)}function qnt(a){hM(a),NK(a.expression),bp(a.statement)}function lGe(a,_){return a.flags&16384&&He(_,w.An_expression_of_type_void_cannot_be_tested_for_truthiness),a}function NK(a,_){return lGe(n_(a,_),a)}function Knt(a){hM(a)||a.initializer&&a.initializer.kind===261&&dne(a.initializer),a.initializer&&(a.initializer.kind===261?g1e(a.initializer):n_(a.initializer)),a.condition&&NK(a.condition),a.incrementor&&n_(a.incrementor),bp(a.statement),a.locals&&c8(a)}function Vyt(a){zGe(a);const _=Ede(a);if(a.awaitModifier?_&&nu(_)?Po(a.awaitModifier,w.for_await_loops_cannot_be_used_inside_a_class_static_block):(L0(_)&6)===2&&ht<99&&Jy(a,16384):Le.downlevelIteration&&ht<2&&Jy(a,256),a.initializer.kind===261)g1e(a.initializer);else{const b=a.initializer,C=zfe(a);if(b.kind===209||b.kind===210)HB(b,C||_r);else{const M=n_(b);AK(b,w.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&X4(C,M,b,a.expression)}}bp(a.statement),a.locals&&c8(a)}function uGe(a){zGe(a);const _=Mte(n_(a.expression));if(a.initializer.kind===261){const b=a.initializer.declarations[0];b&&ld(b.name)&&He(b.name,w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),g1e(a.initializer)}else{const b=a.initializer,C=n_(b);b.kind===209||b.kind===210?He(b,w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Mp(Yd(_),C)?AK(b,w.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,w.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):He(b,w.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(_===vs||!lh(_,126091264))&&He(a.expression,w.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,oa(_)),bp(a.statement),a.locals&&c8(a)}function zfe(a){const _=a.awaitModifier?15:13;return cL(_,TK(a.expression),Ui,a.expression)}function cL(a,_,b,C){return Q_(_)?_:fGe(a,_,b,C,!0)||gn}function fGe(a,_,b,C,M){const z=(a&2)!==0;if(_===vs){rne(C,_,z);return}const Z=ht>=2,me=!Z&&Le.downlevelIteration,Se=Le.noUncheckedIndexedAccess&&!!(a&128);if(Z||me||z){const hr=Iwe(_,a,Z?C:void 0);if(M&&hr){const bi=a&8?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:a&32?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:a&64?w.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:a&16?w.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;bi&&JS(b,hr.nextType,C,bi)}if(hr||Z)return Se?Cte(hr&&hr.yieldType):hr&&hr.yieldType}let Je=_,vt=!1,Pt=!1;if(a&4){if(Je.flags&1048576){const hr=_.types,bi=gi(hr,Wo=>!(Wo.flags&402653316));bi!==hr&&(Je=gl(bi,2))}else Je.flags&402653316&&(Je=vs);if(Pt=Je!==_,Pt&&(ht<1&&C&&(He(C,w.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),vt=!0),Je.flags&131072))return Se?Cte(xe):xe}if(!iM(Je)){if(C&&!vt){const hr=!!(a&4)&&!Pt,[bi,Wo]=yn(hr,me);Mr(C,Wo&&!!Rfe(Je),bi,oa(Je))}return Pt?Se?Cte(xe):xe:void 0}const dn=pb(Je,an);if(Pt&&dn)return dn.flags&402653316&&!Le.noUncheckedIndexedAccess?xe:gl(Se?[dn,xe,Ui]:[dn,xe],2);return a&128?Cte(dn):dn;function yn(hr,bi){var Wo;return bi?hr?[w.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[w.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_Ge(a,0,_,void 0)?[w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Dwe((Wo=_.symbol)==null?void 0:Wo.escapedName)?[w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:hr?[w.Type_0_is_not_an_array_type_or_a_string_type,!0]:[w.Type_0_is_not_an_array_type,!0]}}function Dwe(a){switch(a){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 _Ge(a,_,b,C){if(Q_(b))return;const M=Iwe(b,a,C);return M&&M[sme(_)]}function z1(a=vs,_=vs,b=co){if(a.flags&67359327&&_.flags&180227&&b.flags&180227){const C=La([a,_,b]);let M=Zc.get(C);return M||(M={yieldType:a,returnType:_,nextType:b},Zc.set(C,M)),M}return{yieldType:a,returnType:_,nextType:b}}function dGe(a){let _,b,C;for(const M of a)if(!(M===void 0||M===ka)){if(M===bc)return bc;_=ur(_,M.yieldType),b=ur(b,M.returnType),C=ur(C,M.nextType)}return _||b||C?z1(_&&gl(_),b&&gl(b),C&&Dd(C)):ka}function jV(a,_){return a[_]}function Nw(a,_,b){return a[_]=b}function Iwe(a,_,b){var C,M;if(Q_(a))return bc;if(!(a.flags&1048576)){const Je=b?{errors:void 0}:void 0,vt=Xnt(a,_,b,Je);if(vt===ka){if(b){const Pt=rne(b,a,!!(_&2));Je!=null&&Je.errors&&ml(Pt,...Je.errors)}return}else if((C=Je==null?void 0:Je.errors)!=null&&C.length)for(const Pt of Je.errors)no.add(Pt);return vt}const z=_&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",Z=jV(a,z);if(Z)return Z===ka?void 0:Z;let me;for(const Je of a.types){const vt=b?{errors:void 0}:void 0,Pt=Xnt(Je,_,b,vt);if(Pt===ka){if(b){const dn=rne(b,a,!!(_&2));vt!=null&&vt.errors&&ml(dn,...vt.errors)}Nw(a,z,ka);return}else if((M=vt==null?void 0:vt.errors)!=null&&M.length)for(const dn of vt.errors)no.add(dn);me=ur(me,Pt)}const Se=me?dGe(me):ka;return Nw(a,z,Se),Se===ka?void 0:Se}function pGe(a,_){if(a===ka)return ka;if(a===bc)return bc;const{yieldType:b,returnType:C,nextType:M}=a;return _&&TWe(!0),z1(qB(b,_)||gn,qB(C,_)||gn,M)}function Xnt(a,_,b,C){if(Q_(a))return bc;let M=!1;if(_&2){const z=kwe(a,Xm)||Qnt(a,Xm);if(z)if(z===ka&&b)M=!0;else return _&8?pGe(z,b):z}if(_&1){let z=kwe(a,Lg)||Qnt(a,Lg);if(z)if(z===ka&&b)M=!0;else if(_&2){if(z!==ka)return z=pGe(z,b),M?z:Nw(a,"iterationTypesOfAsyncIterable",z)}else return z}if(_&2){const z=y1e(a,Xm,b,C,M);if(z!==ka)return z}if(_&1){let z=y1e(a,Lg,b,C,M);if(z!==ka)return _&2?(z=pGe(z,b),M?z:Nw(a,"iterationTypesOfAsyncIterable",z)):z}return ka}function kwe(a,_){return jV(a,_.iterableCacheKey)}function Ynt(a,_){const b=kwe(a,_)||y1e(a,_,void 0,void 0,!1);return b===ka?yu:b}function Qnt(a,_){let b;if(gD(a,b=_.getGlobalIterableType(!1))||gD(a,b=_.getGlobalIterableIteratorType(!1))){const[C]=Tm(a),{returnType:M,nextType:z}=Ynt(b,_);return Nw(a,_.iterableCacheKey,z1(_.resolveIterationType(C,void 0)||C,_.resolveIterationType(M,void 0)||M,z))}if(gD(a,_.getGlobalGeneratorType(!1))){const[C,M,z]=Tm(a);return Nw(a,_.iterableCacheKey,z1(_.resolveIterationType(C,void 0)||C,_.resolveIterationType(M,void 0)||M,z))}}function Uyt(a){const _=yWe(!1),b=_&&wm(Vo(_),ty(a));return b&&yv(b)?vv(b):`__@${a}`}function y1e(a,_,b,C,M){const z=Fn(a,Uyt(_.iteratorSymbolName)),Z=z&&!(z.flags&16777216)?Vo(z):void 0;if(Q_(Z))return M?bc:Nw(a,_.iterableCacheKey,bc);const me=Z?Ti(Z,0):void 0;if(!gt(me))return M?ka:Nw(a,_.iterableCacheKey,ka);const Se=Dd(Vn(me,j)),Je=zb(Se,_,b,C,M)??ka;return M?Je:Nw(a,_.iterableCacheKey,Je)}function rne(a,_,b){const C=b?w.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:w.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,M=!!Rfe(_)||!b&&Moe(a.parent)&&a.parent.expression===a&&pPe(!1)!==rd&&Mp(_,pPe(!1));return Mr(a,M,C,oa(_))}function Ty(a,_,b,C){return zb(a,_,b,C,!1)}function zb(a,_,b,C,M){if(Q_(a))return bc;let z=Gfe(a,_)||Pwe(a,_);return z===ka&&b&&(z=void 0,M=!0),z??(z=Znt(a,_,b,C,M)),z===ka?void 0:z}function Gfe(a,_){return jV(a,_.iteratorCacheKey)}function Pwe(a,_){const b=_.getGlobalIterableIteratorType(!1);if(gD(a,b)){const[C]=Tm(a),M=Gfe(b,_)||Znt(b,_,void 0,void 0,!1),{returnType:z,nextType:Z}=M===ka?yu:M;return Nw(a,_.iteratorCacheKey,z1(C,z,Z))}if(gD(a,_.getGlobalIteratorType(!1))||gD(a,_.getGlobalGeneratorType(!1))){const[C,M,z]=Tm(a);return Nw(a,_.iteratorCacheKey,z1(C,M,z))}}function Nwe(a,_){const b=wm(a,"done")||rr;return Mp(_===0?rr:Ji,b)}function mGe(a){return Nwe(a,0)}function Hyt(a){return Nwe(a,1)}function Jyt(a){if(Q_(a))return bc;const _=jV(a,"iterationTypesOfIteratorResult");if(_)return _;if(gD(a,$mt(!1))){const Z=Tm(a)[0];return Nw(a,"iterationTypesOfIteratorResult",z1(Z,void 0,void 0))}if(gD(a,vw(!1))){const Z=Tm(a)[0];return Nw(a,"iterationTypesOfIteratorResult",z1(void 0,Z,void 0))}const b=D0(a,mGe),C=b!==vs?wm(b,"value"):void 0,M=D0(a,Hyt),z=M!==vs?wm(M,"value"):void 0;return!C&&!z?Nw(a,"iterationTypesOfIteratorResult",ka):Nw(a,"iterationTypesOfIteratorResult",z1(C,z||Ks,void 0))}function gGe(a,_,b,C,M){var z,Z,me,Se;const Je=Fn(a,b);if(!Je&&b!=="next")return;const vt=Je&&!(b==="next"&&Je.flags&16777216)?b==="next"?Vo(Je):JA(Vo(Je),2097152):void 0;if(Q_(vt))return b==="next"?bc:gu;const Pt=vt?Ti(vt,0):Zn;if(Pt.length===0){if(C){const lo=b==="next"?_.mustHaveANextMethodDiagnostic:_.mustBeAMethodDiagnostic;M?(M.errors??(M.errors=[]),M.errors.push(kc(C,lo,b))):He(C,lo,b)}return b==="next"?ka:void 0}if(vt!=null&&vt.symbol&&Pt.length===1){const lo=_.getGlobalGeneratorType(!1),Xa=_.getGlobalIteratorType(!1),Go=((Z=(z=lo.symbol)==null?void 0:z.members)==null?void 0:Z.get(b))===vt.symbol,Pa=!Go&&((Se=(me=Xa.symbol)==null?void 0:me.members)==null?void 0:Se.get(b))===vt.symbol;if(Go||Pa){const Ga=Go?lo:Xa,{mapper:hs}=vt;return z1($4(Ga.typeParameters[0],hs),$4(Ga.typeParameters[1],hs),b==="next"?$4(Ga.typeParameters[2],hs):void 0)}}let dn,yn;for(const lo of Pt)b!=="throw"&>(lo.parameters)&&(dn=ur(dn,$I(lo,0))),yn=ur(yn,j(lo));let hr,bi;if(b!=="throw"){const lo=dn?gl(dn):co;if(b==="next")bi=lo;else if(b==="return"){const Xa=_.resolveIterationType(lo,C)||gn;hr=ur(hr,Xa)}}let Wo;const aa=yn?Dd(yn):vs,$s=_.resolveIterationType(aa,C)||gn,Ba=Jyt($s);return Ba===ka?(C&&(M?(M.errors??(M.errors=[]),M.errors.push(kc(C,_.mustHaveAValueDiagnostic,b))):He(C,_.mustHaveAValueDiagnostic,b)),Wo=gn,hr=ur(hr,gn)):(Wo=Ba.yieldType,hr=ur(hr,Ba.returnType)),z1(Wo,gl(hr),bi)}function Znt(a,_,b,C,M){const z=dGe([gGe(a,_,"next",b,C),gGe(a,_,"return",b,C),gGe(a,_,"throw",b,C)]);return M?z:Nw(a,_.iteratorCacheKey,z)}function MO(a,_,b){if(Q_(_))return;const C=ert(_,b);return C&&C[sme(a)]}function ert(a,_){if(Q_(a))return bc;const b=_?2:1,C=_?Xm:Lg;return Iwe(a,b,void 0)||Ty(a,C,void 0,void 0)}function trt(a){hM(a)||Brt(a)}function lL(a,_){const b=!!(_&1),C=!!(_&2);if(b){const M=MO(1,a,C);return M?C?sL(Ax(M)):M:_r}return C?sL(a)||_r:a}function nrt(a,_){const b=lL(_,L0(a));return!!(b&&(cy(b,16384)||b.flags&32769))}function v1e(a){if(hM(a))return;const _=Ede(a);if(_&&nu(_)){c1(a,w.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!_){c1(a,w.A_return_statement_can_only_be_used_within_a_function_body);return}const b=Cv(_),C=j(b),M=L0(_);if(Ye||a.expression||C.flags&131072){const z=a.expression?Iv(a.expression):Ui;if(_.kind===178)a.expression&&He(a,w.Setters_cannot_return_a_value);else if(_.kind===176)a.expression&&!X4(z,C,a,a.expression)&&He(a,w.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(se(_)){const Z=lL(C,M)??C,me=M&2?Lfe(z,!1,a,w.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):z;Z&&X4(me,Z,a,a.expression)}}else _.kind!==176&&Le.noImplicitReturns&&!nrt(_,C)&&He(a,w.Not_all_code_paths_return_a_value)}function hGe(a){hM(a)||a.flags&65536&&c1(a,w.with_statements_are_not_allowed_in_an_async_function_block),n_(a.expression);const _=ns(a);if(!T5(_)){const b=nC(_,a.pos).start,C=a.statement.pos;S5(_,b,C-b,w.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function $yt(a){hM(a);let _,b=!1;const C=n_(a.expression);Ot(a.caseBlock.clauses,M=>{M.kind===297&&!b&&(_===void 0?_=M:(Po(M,w.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),b=!0)),M.kind===296&&s(z(M)),Ot(M.statements,bp),Le.noFallthroughCasesInSwitch&&M.fallthroughFlowNode&&Ibe(M.fallthroughFlowNode)&&He(M,w.Fallthrough_case_in_switch);function z(Z){return()=>{const me=n_(Z.expression);i1e(C,me)||LPe(me,C,Z.expression,void 0)}}}),a.caseBlock.locals&&c8(a.caseBlock)}function qyt(a){hM(a)||Kr(a.parent,_=>S_(_)?"quit":_.kind===256&&_.label.escapedText===a.label.escapedText?(Po(a.label,w.Duplicate_label_0,Yv(a.label)),!0):!1),bp(a.statement)}function Kyt(a){hM(a)||An(a.expression)&&!a.expression.escapedText&&Urt(a,w.Line_break_not_permitted_here),a.expression&&n_(a.expression)}function rrt(a){hM(a),xwe(a.tryBlock);const _=a.catchClause;if(_){if(_.variableDeclaration){const b=_.variableDeclaration;nne(b);const C=Kb(b);if(C){const M=wl(C);M&&!(M.flags&3)&&c1(C,w.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(b.initializer)c1(b.initializer,w.Catch_clause_variable_cannot_have_an_initializer);else{const M=_.block.locals;M&&FL(_.locals,z=>{const Z=M.get(z);Z!=null&&Z.valueDeclaration&&Z.flags&2&&Po(Z.valueDeclaration,w.Cannot_redeclare_identifier_0_in_catch_clause,lf(z))})}}xwe(_.block)}a.finallyBlock&&xwe(a.finallyBlock)}function wwe(a,_,b){const C=T_(a);if(C.length===0)return;for(const z of O2(a))b&&z.flags&4194304||irt(a,z,pte(z,8576,!0),WA(z));const M=_.valueDeclaration;if(M&&Jl(M)){for(const z of M.members)if(!e_(z)&&!GS(z)){const Z=wi(z);irt(a,Z,yT(z.name.expression),WA(Z))}}if(C.length>1)for(const z of C)Xyt(a,z)}function irt(a,_,b,C){const M=_.valueDeclaration,z=o_(M);if(z&&Gu(z))return;const Z=zA(a,b),me=ji(a)&2?Vm(a.symbol,264):void 0,Se=M&&M.kind===226||z&&z.kind===167?M:void 0,Je=Uf(_)===a.symbol?M:void 0;for(const vt of Z){const Pt=vt.declaration&&Uf(wi(vt.declaration))===a.symbol?vt.declaration:void 0,dn=Je||Pt||(me&&!gt(Gp(a),yn=>!!o2(yn,_.escapedName)&&!!pb(yn,vt.keyType))?me:void 0);if(dn&&!Mp(C,vt.type)){const yn=Eu(dn,w.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Cl(_),oa(C),oa(vt.keyType),oa(vt.type));Se&&dn!==Se&&ml(yn,kc(Se,w._0_is_declared_here,Cl(_))),no.add(yn)}}}function Xyt(a,_){const b=_.declaration,C=zA(a,_.keyType),M=ji(a)&2?Vm(a.symbol,264):void 0,z=b&&Uf(wi(b))===a.symbol?b:void 0;for(const Z of C){if(Z===_)continue;const me=Z.declaration&&Uf(wi(Z.declaration))===a.symbol?Z.declaration:void 0,Se=z||me||(M&&!gt(Gp(a),Je=>!!Cd(Je,_.keyType)&&!!pb(Je,Z.keyType))?M:void 0);Se&&!Mp(_.type,Z.type)&&He(Se,w._0_index_type_1_is_not_assignable_to_2_index_type_3,oa(_.keyType),oa(_.type),oa(Z.keyType),oa(Z.type))}}function wK(a,_){switch(a.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":He(a,_,a.escapedText)}}function Yyt(a){ht>=1&&a.escapedText==="Object"&&(ke<5||ns(a).impliedNodeFormat===1)&&He(a,w.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Rz[ke])}function Qyt(a){const _=gi(EN(a),AA);if(!Nt(_))return;const b=Rs(a),C=new Set,M=new Set;if(Ot(a.parameters,({name:Z},me)=>{An(Z)&&C.add(Z.escapedText),ld(Z)&&M.add(me)}),Up(a)){const Z=_.length-1,me=_[Z];b&&me&&An(me.name)&&me.typeExpression&&me.typeExpression.type&&!C.has(me.name.escapedText)&&!M.has(Z)&&!UA(wl(me.typeExpression.type))&&He(me.name,w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,ec(me.name))}else Ot(_,({name:Z,isNameFirst:me},Se)=>{M.has(Se)||An(Z)&&C.has(Z.escapedText)||(nT(Z)?b&&He(Z,w.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,oE(Z),oE(Z.left)):me||dr(b,Z,w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,ec(Z)))})}function b1e(a){let _=!1;if(a)for(let C=0;C{C.default?(_=!0,RK(C.default,a,M)):_&&He(C,w.Required_type_parameters_may_not_follow_optional_type_parameters);for(let z=0;zC)return!1;for(let Se=0;SeNy(b)&&Mf(b))&&Po(_,w.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!a.name&&!il(a,1024)&&c1(a,w.A_class_declaration_without_the_default_modifier_must_have_a_name),MK(a),Ot(a.members,bp),c8(a)}function MK(a){fne(a),Ofe(a),tne(a,a.name),b1e(oR(a)),wfe(a);const _=wi(a),b=Rm(_),C=M1(b),M=Vo(_);kv(_),gwe(_),fyt(a),!!(a.flags&33554432)||Int(a);const Z=hA(a);if(Z){Ot(Z.typeArguments,bp),ht<2&&Jy(Z.parent,1);const Je=oC(a);Je&&Je!==Z&&n_(Je.expression);const vt=Gp(b);vt.length&&s(()=>{const Pt=vt[0],dn=Nl(b),yn=O1(dn);if(LK(yn,Z),bp(Z.expression),gt(Z.typeArguments)){Ot(Z.typeArguments,bp);for(const bi of Ys(yn,Z.typeArguments,Z))if(!Nfe(Z,bi.typeParameters))break}const hr=M1(Pt,b.thisType);if(JS(C,hr,void 0)?JS(M,yet(yn),a.name||a,w.Class_static_side_0_incorrectly_extends_base_class_static_side_1):SGe(a,C,hr,w.Class_0_incorrectly_extends_base_class_1),dn.flags&8650752&&(gf(M)?Ti(dn,1).some(Wo=>Wo.flags&4)&&!il(a,256)&&He(a.name||a,w.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):He(a.name||a,w.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(yn.symbol&&yn.symbol.flags&32)&&!(dn.flags&8650752)){const bi=Ni(yn,Z.typeArguments,Z);Ot(bi,Wo=>!JI(Wo.declaration)&&!eN(j(Wo),Pt))&&He(Z.expression,w.Base_constructors_must_all_have_the_same_return_type)}nvt(b,Pt)})}ort(a,b,C,M);const me=qb(a);if(me)for(const Je of me)(!Uh(Je.expression)||ky(Je.expression))&&He(Je.expression,w.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Xze(Je),s(Se(Je));s(()=>{wwe(b,_),wwe(M,_,!0),dwe(a),ivt(a)});function Se(Je){return()=>{const vt=HT(wl(Je));if(!je(vt))if(R1(vt)){const Pt=vt.symbol&&vt.symbol.flags&32?w.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:w.Class_0_incorrectly_implements_interface_1,dn=M1(vt,b.thisType);JS(C,dn,void 0)||SGe(a,C,dn,Pt)}else He(Je,w.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function ort(a,_,b,C){const z=hA(a)&&Gp(_),Z=z!=null&&z.length?M1(Dl(z),_.thisType):void 0,me=Nl(_);for(const Se of a.members)Ode(Se)||(pg(Se)&&Ot(Se.parameters,Je=>{Eb(Je,Se)&&bGe(a,C,me,Z,_,b,Je,!0)}),bGe(a,C,me,Z,_,b,Se,!1))}function bGe(a,_,b,C,M,z,Z,me,Se=!0){const Je=Z.name&&CD(Z.name)||CD(Z);return Je?TGe(a,_,b,C,M,z,X2(Z),fk(Z),e_(Z),me,mp(Je),Se?Z:void 0):0}function TGe(a,_,b,C,M,z,Z,me,Se,Je,vt,Pt){const dn=Rs(a),yn=!!(a.flags&33554432);if(C&&(Z||Le.noImplicitOverride)){const hr=ty(vt),bi=Se?_:z,Wo=Se?b:C,aa=Fn(bi,hr),$s=Fn(Wo,hr),Ba=oa(C);if(aa&&!$s&&Z){if(Pt){const lo=MNe(vt,Wo);lo?He(Pt,dn?w.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:w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Ba,Cl(lo)):He(Pt,dn?w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Ba)}return 2}else if(aa&&($s!=null&&$s.declarations)&&Le.noImplicitOverride&&!yn){const lo=gt($s.declarations,fk);if(Z)return 0;if(lo){if(me&&lo)return Pt&&He(Pt,w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Ba),1}else{if(Pt){const Xa=Je?dn?w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:dn?w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;He(Pt,Xa,Ba)}return 1}}}else if(Z){if(Pt){const hr=oa(M);He(Pt,dn?w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,hr)}return 2}return 0}function SGe(a,_,b,C){let M=!1;for(const z of a.members){if(e_(z))continue;const Z=z.name&&CD(z.name)||CD(z);if(Z){const me=Fn(_,Z.escapedName),Se=Fn(b,Z.escapedName);if(me&&Se){const Je=()=>Es(void 0,w.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Cl(Z),oa(_),oa(b));JS(Vo(me),Vo(Se),z.name||z,void 0,Je)||(M=!0)}}}M||JS(_,b,a.name||a,C)}function LK(a,_){const b=Ti(a,1);if(b.length){const C=b[0].declaration;if(C&&Ab(C,8)){const M=RS(a.symbol);qfe(_,M)||He(_,w.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Dg(a.symbol))}}}function evt(a,_,b){if(!_.name)return 0;const C=wi(a),M=Rm(C),z=M1(M),Z=Vo(C),Se=hA(a)&&Gp(M),Je=Se!=null&&Se.length?M1(Dl(Se),M.thisType):void 0,vt=Nl(M),Pt=_.parent?X2(_):il(_,16384);return TGe(a,Z,vt,Je,M,z,Pt,fk(_),e_(_),!1,mp(b))}function OK(a){return I_(a)&1?a.links.target:a}function tvt(a){return gi(a.declarations,_=>_.kind===263||_.kind===264)}function nvt(a,_){var b,C,M,z;const Z=Vp(_);let me;e:for(const Se of Z){const Je=OK(Se);if(Je.flags&4194304)continue;const vt=o2(a,Je.escapedName);if(!vt)continue;const Pt=OK(vt),dn=Vy(Je);if(ce.assert(!!Pt,"derived should point to something, even if it is the base class' declaration."),Pt===Je){const yn=RS(a.symbol);if(dn&256&&(!yn||!il(yn,256))){for(const hr of Gp(a)){if(hr===_)continue;const bi=o2(hr,Je.escapedName),Wo=bi&&OK(bi);if(Wo&&Wo!==Je)continue e}me||(me=He(yn,w.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,oa(a),oa(_))),yn.kind===231?ml(me,kc(Se.valueDeclaration??(Se.declarations&&Dl(Se.declarations))??yn,w.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Cl(Se),oa(_))):ml(me,kc(Se.valueDeclaration??(Se.declarations&&Dl(Se.declarations))??yn,w.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,oa(a),Cl(Se),oa(_)))}}else{const yn=Vy(Pt);if(dn&8||yn&8)continue;let hr;const bi=Je.flags&98308,Wo=Pt.flags&98308;if(bi&&Wo){if((I_(Je)&6?(b=Je.declarations)!=null&&b.some(Ba=>Mwe(Ba,dn)):(C=Je.declarations)!=null&&C.every(Ba=>Mwe(Ba,dn)))||I_(Je)&262144||Pt.valueDeclaration&&ys(Pt.valueDeclaration))continue;const aa=bi!==4&&Wo===4;if(aa||bi===4&&Wo!==4){const Ba=aa?w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,Ba,Cl(Je),oa(_),oa(a))}else if(Dt){const Ba=(M=Pt.declarations)==null?void 0:M.find(lo=>lo.kind===172&&!lo.initializer);if(Ba&&!(Pt.flags&33554432)&&!(dn&256)&&!(yn&256)&&!((z=Pt.declarations)!=null&&z.some(lo=>!!(lo.flags&33554432)))){const lo=n2(RS(a.symbol)),Xa=Ba.name;if(Ba.exclamationToken||!lo||!An(Xa)||!Ye||!jfe(Xa,a,lo)){const Go=w.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;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,Go,Cl(Je),oa(_))}}}continue}else if(bK(Je)){if(bK(Pt)||Pt.flags&4)continue;ce.assert(!!(Pt.flags&98304)),hr=w.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Je.flags&98304?hr=w.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:hr=w.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;He(o_(Pt.valueDeclaration)||Pt.valueDeclaration,hr,oa(_),Cl(Je),oa(a))}}}function Mwe(a,_){return _&256&&(!Os(a)||!a.initializer)||Kp(a.parent)}function rvt(a,_,b){if(!Nt(_))return b;const C=new Map;Ot(b,M=>{C.set(M.escapedName,M)});for(const M of _){const z=Vp(M1(M,a.thisType));for(const Z of z){const me=C.get(Z.escapedName);me&&Z.parent===me.parent&&C.delete(Z.escapedName)}}return oc(C.values())}function art(a,_){const b=Gp(a);if(b.length<2)return!0;const C=new Map;Ot(V6(a).declaredProperties,z=>{C.set(z.escapedName,{prop:z,containingType:a})});let M=!0;for(const z of b){const Z=Vp(M1(z,a.thisType));for(const me of Z){const Se=C.get(me.escapedName);if(!Se)C.set(me.escapedName,{prop:me,containingType:z});else if(Se.containingType!==a&&!Met(Se.prop,me)){M=!1;const vt=oa(Se.containingType),Pt=oa(z);let dn=Es(void 0,w.Named_property_0_of_types_1_and_2_are_not_identical,Cl(me),vt,Pt);dn=Es(dn,w.Interface_0_cannot_simultaneously_extend_types_1_and_2,oa(a),vt,Pt),no.add(RN(ns(_),_,dn))}}}return M}function ivt(a){if(!Ye||!zt||a.flags&33554432)return;const _=n2(a);for(const b of a.members)if(!(tS(b)&2)&&!e_(b)&&s1(b)){const C=b.name;if(An(C)||Gu(C)||am(C)){const M=Vo(wi(b));M.flags&3||IV(M)||(!_||!jfe(C,M,_))&&He(b.name,w.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ud(C))}}}function s1(a){return a.kind===172&&!fk(a)&&!a.exclamationToken&&!a.initializer}function EGe(a,_,b,C,M){for(const z of b)if(z.pos>=C&&z.pos<=M){const Z=be.createPropertyAccessExpression(be.createThis(),a);kl(Z.expression,Z),kl(Z,z),Z.flowNode=z.returnFlowNode;const me=t8(Z,_,eL(_));if(!IV(me))return!0}return!1}function jfe(a,_,b){const C=am(a)?be.createElementAccessExpression(be.createThis(),a.expression):be.createPropertyAccessExpression(be.createThis(),a);kl(C.expression,C),kl(C,b),C.flowNode=b.returnFlowNode;const M=t8(C,_,eL(_));return!IV(M)}function Bf(a){aN(a)||Rrt(a),b1e(a.typeParameters),s(()=>{wK(a.name,w.Interface_name_cannot_be_0),wfe(a);const _=wi(a);kv(_);const b=Vm(_,264);if(a===b){const C=Rm(_),M=M1(C);if(art(C,a.name)){for(const z of Gp(C))JS(M,M1(z,C.thisType),a.name,w.Interface_0_incorrectly_extends_interface_1);wwe(C,_)}}_we(a)}),Ot(F9(a),_=>{(!Uh(_.expression)||ky(_.expression))&&He(_.expression,w.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Xze(_)}),Ot(a.members,bp),s(()=>{dwe(a),c8(a)})}function ovt(a){aN(a),wK(a.name,w.Type_alias_name_cannot_be_0),wfe(a),b1e(a.typeParameters),a.type.kind===141?(!oj.has(a.name.escapedText)||Nt(a.typeParameters)!==1)&&He(a.type,w.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(bp(a.type),c8(a))}function srt(a){const _=ge(a);if(!(_.flags&1024)){_.flags|=1024;let b=0;for(const C of a.members){const M=avt(C,b);ge(C).enumMemberValue=M,b=typeof M=="number"?M+1:void 0}}}function avt(a,_){if(b9(a.name))He(a.name,w.Computed_property_names_are_not_allowed_in_enums);else{const b=g7(a.name);FT(b)&&!d3(b)&&He(a.name,w.An_enum_member_cannot_have_a_numeric_name)}if(a.initializer)return crt(a);if(!(a.parent.flags&33554432&&!gP(a.parent))){if(_!==void 0)return _;He(a.name,w.Enum_member_must_have_initializer)}}function crt(a){const _=gP(a.parent),b=a.initializer,C=ane(b,a);return C!==void 0?_&&typeof C=="number"&&!isFinite(C)&&He(b,isNaN(C)?w.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:w.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):_?He(b,w.const_enum_member_initializers_must_be_constant_expressions):a.parent.flags&33554432?He(b,w.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):JS(n_(b),an,b,w.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function ane(a,_){switch(a.kind){case 224:const b=ane(a.operand,_);if(typeof b=="number")switch(a.operator){case 40:return b;case 41:return-b;case 55:return~b}break;case 226:const C=ane(a.left,_),M=ane(a.right,_);if(typeof C=="number"&&typeof M=="number")switch(a.operatorToken.kind){case 52:return C|M;case 51:return C&M;case 49:return C>>M;case 50:return C>>>M;case 48:return C<urt(a))}function urt(a){aN(a),tne(a,a.name),wfe(a),a.members.forEach(Vfe),srt(a);const _=wi(a),b=Vm(_,a.kind);if(a===b){if(_.declarations&&_.declarations.length>1){const M=gP(a);Ot(_.declarations,z=>{Ih(z)&&gP(z)!==M&&He(o_(z),w.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;Ot(_.declarations,M=>{if(M.kind!==266)return!1;const z=M;if(!z.members.length)return!1;const Z=z.members[0];Z.initializer||(C?He(Z.name,w.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function Vfe(a){Gu(a.name)&&He(a,w.An_enum_member_cannot_be_named_with_a_private_identifier),a.initializer&&n_(a.initializer)}function AGe(a){const _=a.declarations;if(_){for(const b of _)if((b.kind===263||b.kind===262&&wx(b.body))&&!(b.flags&33554432))return b}}function cvt(a,_){const b=Bs(a),C=Bs(_);return mn(b)?mn(C):mn(C)?!1:b===C}function lvt(a){a.body&&(bp(a.body),$C(a)||c8(a)),s(_);function _(){var b,C;const M=$C(a),z=a.flags&33554432;M&&!z&&He(a.name,w.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const Z=Ov(a),me=Z?w.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:w.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(T1e(a,me))return;aN(a)||!z&&a.name.kind===11&&Po(a.name,w.Only_ambient_modules_can_use_quoted_names),An(a.name)&&tne(a,a.name),wfe(a);const Se=wi(a);if(Se.flags&512&&!z&&l4(a,gk(Le))){if(F0(Le)&&!ns(a).externalModuleIndicator&&He(a.name,w.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,Gn),((b=Se.declarations)==null?void 0:b.length)>1){const Je=AGe(Se);Je&&(ns(a)!==ns(Je)?He(a.name,w.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):a.posvt.kind===95);Je&&He(Je,w.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(Z)if(WL(a)){if((M||wi(a).flags&33554432)&&a.body)for(const vt of a.body.statements)Lwe(vt,M)}else mn(a.parent)?M?He(a.name,w.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):tb(aC(a.name))&&He(a.name,w.Ambient_module_declaration_cannot_specify_relative_module_name):M?He(a.name,w.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):He(a.name,w.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Lwe(a,_){switch(a.kind){case 243:for(const C of a.declarationList.declarations)Lwe(C,_);break;case 277:case 278:c1(a,w.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:c1(a,w.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const b=a.name;if(ld(b)){for(const C of b.elements)Lwe(C,_);break}case 263:case 266:case 262:case 264:case 267:case 265:if(_)return;break}}function CGe(a){switch(a.kind){case 80:return a;case 166:do a=a.left;while(a.kind!==80);return a;case 211:do{if(KC(a.expression)&&!Gu(a.name))return a.name;a=a.expression}while(a.kind!==80);return a}}function Owe(a){const _=pY(a);if(!_||Um(_))return!1;if(!Wp(_))return He(_,w.String_literal_expected),!1;const b=a.parent.kind===268&&Ov(a.parent.parent);if(a.parent.kind!==312&&!b)return He(_,a.kind===278?w.Export_declarations_are_not_permitted_in_a_namespace:w.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(b&&tb(_.text)&&!vC(a))return He(a,w.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!kh(a)&&a.assertClause){let C=!1;for(const M of a.assertClause.elements)Wp(M.value)||(C=!0,He(M.value,w.Import_assertion_values_must_be_string_literal_expressions));return!C}return!0}function Fwe(a){var _,b,C,M;let z=wi(a);const Z=Xp(z);if(Z!==Ir){if(z=wa(z.exportSymbol||z),Rs(a)&&!(Z.flags&111551)&&!sR(a)){const Je=l9(a)?a.propertyName||a.name:Xv(a)?a.name:a;if(ce.assert(a.kind!==280),a.kind===281){const vt=He(Je,w.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Pt=(b=(_=ns(a).symbol)==null?void 0:_.exports)==null?void 0:b.get((a.propertyName||a.name).escapedText);if(Pt===Z){const dn=(C=Pt.declarations)==null?void 0:C.find(UC);dn&&ml(vt,kc(dn,w._0_is_automatically_exported_here,lf(Pt.escapedName)))}}else{ce.assert(a.kind!==260);const vt=Kr(a,dA(Fv,kh)),Pt=(vt&&((M=VL(vt))==null?void 0:M.text))??"...",dn=lf(An(Je)?Je.escapedText:z.escapedName);He(Je,w._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,dn,`import("${Pt}").${dn}`)}return}const me=sg(Z),Se=(z.flags&1160127?111551:0)|(z.flags&788968?788968:0)|(z.flags&1920?1920:0);if(me&Se){const Je=a.kind===281?w.Export_declaration_conflicts_with_exported_declaration_of_0:w.Import_declaration_conflicts_with_local_declaration_of_0;He(a,Je,Cl(z))}if(F0(Le)&&!sR(a)&&!(a.flags&33554432)){const Je=da(z),vt=!(me&111551);if(vt||Je)switch(a.kind){case 273:case 276:case 271:{if(Le.preserveValueImports||Le.verbatimModuleSyntax){ce.assertIsDefined(a.name,"An ImportClause with a symbol should have a name");const Pt=Le.verbatimModuleSyntax&&y1(a)?w.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:vt?Le.verbatimModuleSyntax?w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Le.verbatimModuleSyntax?w._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:w._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,dn=ec(a.kind===276&&a.propertyName||a.name);Cc(He(a,Pt,dn),vt?void 0:Je,dn)}vt&&a.kind===271&&Ab(a,1)&&He(a,w.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Gn);break}case 281:if(Le.verbatimModuleSyntax||ns(Je)!==ns(a)){const Pt=ec(a.propertyName||a.name),dn=vt?He(a,w.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Gn):He(a,w._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Pt,Gn);Cc(dn,vt?void 0:Je,Pt);break}}Le.verbatimModuleSyntax&&a.kind!==271&&!Rs(a)&&(ke===1||ns(a).impliedNodeFormat===1)&&He(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(oS(a)){const Je=DGe(z,a);Bt(Je)&&Je.declarations&&Wn(a,Je.declarations,Je.escapedName)}}}function DGe(a,_){if(!(a.flags&2097152)||Bt(a)||!og(a))return a;const b=Xp(a);if(b===Ir)return b;for(;a.flags&2097152;){const C=eze(a);if(C){if(C===b)break;if(C.declarations&&Nt(C.declarations))if(Bt(C)){Wn(_,C.declarations,C.escapedName);break}else{if(a===b)break;a=C}}else break}return b}function Ufe(a){tne(a,a.name),Fwe(a),a.kind===276&&ec(a.propertyName||a.name)==="default"&&b1(Le)&&ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&Jy(a,131072)}function frt(a){var _;if(a.assertClause){const b=qae(a),C=D2(a.assertClause,b?Po:void 0);if(b&&C)return pG()||Po(a.assertClause,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Jd(Le)!==3&&Jd(Le)!==99?Po(a.assertClause,w.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((ke===199&&a.moduleSpecifier&&d_(a.moduleSpecifier))!==99&&ke!==99)return Po(a.assertClause,ke===199?w.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:w.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(Fv(a)?(_=a.importClause)!=null&&_.isTypeOnly:a.isTypeOnly)return Po(a.assertClause,w.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(C)return Po(a.assertClause,w.resolution_mode_can_only_be_set_for_type_only_imports)}}function uvt(a){if(!T1e(a,Rs(a)?w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!aN(a)&&ev(a)&&c1(a,w.An_import_declaration_cannot_have_modifiers),Owe(a)){const _=a.importClause;_&&!_0t(_)&&(_.name&&Ufe(_),_.namedBindings&&(_.namedBindings.kind===274?(Ufe(_.namedBindings),ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&b1(Le)&&Jy(a,65536)):Zm(a,a.moduleSpecifier)&&Ot(_.namedBindings.elements,Ufe)))}frt(a)}}function fvt(a){if(!T1e(a,Rs(a)?w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(aN(a),y1(a)||Owe(a)))if(Ufe(a),il(a,1)&&Hu(a),a.moduleReference.kind!==283){const _=Xp(wi(a));if(_!==Ir){const b=sg(_);if(b&111551){const C=NS(a.moduleReference);P_(C,112575).flags&1920||He(C,w.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ud(C))}b&788968&&wK(a.name,w.Import_name_cannot_be_0)}a.isTypeOnly&&Po(a,w.An_import_alias_cannot_use_import_type)}else ke>=5&&ns(a).impliedNodeFormat===void 0&&!a.isTypeOnly&&!(a.flags&33554432)&&Po(a,w.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 _rt(a){if(!T1e(a,Rs(a)?w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!aN(a)&&zie(a)&&c1(a,w.An_export_declaration_cannot_have_modifiers),a.moduleSpecifier&&a.exportClause&&G0(a.exportClause)&&Nt(a.exportClause.elements)&&ht===0&&Jy(a,4194304),drt(a),!a.moduleSpecifier||Owe(a))if(a.exportClause&&!AP(a.exportClause)){Ot(a.exportClause.elements,kGe);const _=a.parent.kind===268&&Ov(a.parent.parent),b=!_&&a.parent.kind===268&&!a.moduleSpecifier&&a.flags&33554432;a.parent.kind!==312&&!_&&!b&&He(a,w.Export_declarations_are_not_permitted_in_a_namespace)}else{const _=Zm(a,a.moduleSpecifier);_&&N1(_)?He(a.moduleSpecifier,w.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Cl(_)):a.exportClause&&Fwe(a.exportClause),ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&(a.exportClause?b1(Le)&&Jy(a,65536):Jy(a,32768))}frt(a)}}function drt(a){var _;return a.isTypeOnly&&((_=a.exportClause)==null?void 0:_.kind)===279?Hrt(a.exportClause):!1}function T1e(a,_){const b=a.parent.kind===312||a.parent.kind===268||a.parent.kind===267;return b||c1(a,_),!b}function _vt(a){return I7(a,_=>!!wi(_).isReferenced)}function Wwe(a){return I7(a,_=>!!Mt(wi(_)).constEnumReferenced)}function prt(a){return Fv(a)&&a.importClause&&!a.importClause.isTypeOnly&&_vt(a.importClause)&&!A1e(a.importClause,!0)&&!Wwe(a.importClause)}function dvt(a){return kh(a)&&j0(a.moduleReference)&&!a.isTypeOnly&&wi(a).isReferenced&&!A1e(a,!1)&&!Mt(wi(a)).constEnumReferenced}function IGe(a){if(Ur)for(const _ of a.statements)(prt(_)||dvt(_))&&He(_,w.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function kGe(a){if(Fwe(a),gv(Le)&&px(a.propertyName||a.name,!0),a.parent.parent.moduleSpecifier)b1(Le)&&ke!==4&&(ke<5||ns(a).impliedNodeFormat===1)&&ec(a.propertyName||a.name)==="default"&&Jy(a,131072);else{const _=a.propertyName||a.name,b=Ro(_,_.escapedText,2998271,void 0,void 0,!0);if(b&&(b===In||b===gr||b.declarations&&mn(FA(b.declarations[0]))))He(_,w.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,ec(_));else{!a.isTypeOnly&&!a.parent.parent.isTypeOnly&&Hu(a);const C=b&&(b.flags&2097152?Xp(b):b);(!C||sg(C)&111551)&&Iv(a.propertyName||a.name)}}}function mrt(a){const _=a.isExportEquals?w.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:w.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(T1e(a,_))return;const b=a.parent.kind===312?a.parent:a.parent.parent;if(b.kind===267&&!Ov(b)){a.isExportEquals?He(a,w.An_export_assignment_cannot_be_used_in_a_namespace):He(a,w.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!aN(a)&&ev(a)&&c1(a,w.An_export_assignment_cannot_have_modifiers);const C=Kb(a);C&&JS(Iv(a.expression),wl(C),a.expression);const M=!a.isExportEquals&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&(ke===1||ns(a).impliedNodeFormat===1);if(a.expression.kind===80){const z=a.expression,Z=zh(P_(z,67108863,!0,!0,a));Z?(lNe(Z,z),sg(Z)&111551?(Iv(z),!M&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&da(Z,111551)&&He(z,a.isExportEquals?w.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:w.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,ec(z))):!M&&!(a.flags&33554432)&&Le.verbatimModuleSyntax&&He(z,a.isExportEquals?w.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:w.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,ec(z))):Iv(z),gv(Le)&&px(z,!0)}else Iv(a.expression);M&&He(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),grt(b),a.flags&33554432&&!Uh(a.expression)&&Po(a.expression,w.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),a.isExportEquals&&(ke>=5&&(a.flags&33554432&&ns(a).impliedNodeFormat===99||!(a.flags&33554432)&&ns(a).impliedNodeFormat!==1)?Po(a,w.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ke===4&&!(a.flags&33554432)&&Po(a,w.Export_assignment_is_not_supported_when_module_flag_is_system))}function pvt(a){return wT(a.exports,(_,b)=>b!=="export=")}function grt(a){const _=wi(a),b=Mt(_);if(!b.exportsChecked){const C=_.exports.get("export=");if(C&&pvt(_)){const z=og(C)||C.valueDeclaration;z&&!vC(z)&&!Rs(z)&&He(z,w.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const M=sr(_);M&&M.forEach(({declarations:z,flags:Z},me)=>{if(me==="__export"||Z&1920)return;const Se=dp(z,bb(z2e,gN(Kp)));if(!(Z&524288&&Se<=2)&&Se>1&&!Bwe(z))for(const Je of z)vm(Je)&&no.add(kc(Je,w.Cannot_redeclare_exported_variable_0,lf(me)))}),b.exportsChecked=!0}}function Bwe(a){return a&&a.length>1&&a.every(_=>Rs(_)&&Kf(_)&&(GL(_.expression)||KC(_.expression)))}function bp(a){if(a){const _=ue;ue=a,te=0,mvt(a),ue=_}}function mvt(a){YM(a)&&Ot(a.jsDoc,({comment:b,tags:C})=>{hrt(b),Ot(C,M=>{hrt(M.comment),Rs(a)&&bp(M)})});const _=a.kind;if(l)switch(_){case 267:case 263:case 264:case 262:l.throwIfCancellationRequested()}switch(_>=243&&_<=259&&LN(a)&&a.flowNode&&!Ibe(a.flowNode)&&dr(Le.allowUnreachableCode===!1,a,w.Unreachable_code_detected),_){case 168:return Cnt(a);case 169:return fwe(a);case 172:return pwe(a);case 171:return qze(a);case 185:case 184:case 179:case 180:case 181:return Kte(a);case 174:case 173:return knt(a);case 175:return o1e(a);case 176:return Pnt(a);case 177:case 178:return Nnt(a);case 183:return Xze(a);case 182:return $B(a);case 186:return myt(a);case 187:return gyt(a);case 188:return Rnt(a);case 189:return Mnt(a);case 192:case 193:return hyt(a);case 196:case 190:case 191:return bp(a.type);case 197:return Tyt(a);case 198:return l1e(a);case 194:return Syt(a);case 195:return Ont(a);case 203:return Yze(a);case 205:return Eyt(a);case 202:return Fnt(a);case 335:return Nyt(a);case 336:return rGe(a);case 353:case 345:case 347:return Dyt(a);case 352:return Iyt(a);case 351:return znt(a);case 331:case 332:case 333:return kyt(a);case 348:return nGe(a);case 355:return Pyt(a);case 324:jnt(a);case 322:case 321:case 319:case 320:case 329:PGe(a),B_(a,bp);return;case 325:gvt(a);return;case 316:return bp(a.type);case 340:case 342:case 341:return d1e(a);case 357:return Gnt(a);case 199:return yyt(a);case 200:return vyt(a);case 262:return Cyt(a);case 241:case 268:return xwe(a);case 243:return h1e(a);case 244:return Gyt(a);case 245:return Awe(a);case 246:return $nt(a);case 247:return qnt(a);case 248:return Knt(a);case 249:return uGe(a);case 250:return Vyt(a);case 251:case 252:return trt(a);case 253:return v1e(a);case 254:return hGe(a);case 255:return $yt(a);case 256:return qyt(a);case 257:return Kyt(a);case 258:return rrt(a);case 260:return cGe(a);case 208:return m1e(a);case 263:return one(a);case 264:return Bf(a);case 265:return ovt(a);case 266:return svt(a);case 267:return lvt(a);case 272:return uvt(a);case 271:return fvt(a);case 278:return _rt(a);case 277:return mrt(a);case 242:case 259:hM(a);return;case 282:return wnt(a)}}function hrt(a){ls(a)&&Ot(a,_=>{OL(_)&&bp(_)})}function PGe(a){if(!Rs(a))if(Ooe(a)||MG(a)){const _=Nd(Ooe(a)?54:58),b=a.postfix?w._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:w._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=a.type,M=wl(C);Po(a,b,_,oa(MG(a)&&!(M===vs||M===Ks)?gl(ur([M,Ui],a.postfix?void 0:$e)):M))}else Po(a,w.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gvt(a){PGe(a),bp(a.type);const{parent:_}=a;if(Pu(_)&&LG(_.parent)){yl(_.parent.parameters)!==_&&He(a,w.A_rest_parameter_must_be_last_in_a_parameter_list);return}pI(_)||He(a,w.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const b=a.parent.parent;if(!AA(b)){He(a,w.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=mY(b);if(!C)return;const M=VE(b);(!M||yl(M.parameters).symbol!==C)&&He(a,w.A_rest_parameter_must_be_last_in_a_parameter_list)}function hvt(a){const _=wl(a.type),{parent:b}=a,C=a.parent.parent;if(pI(a.parent)&&AA(C)){const M=VE(C),z=oF(C.parent.parent);if(M||z){const Z=Yf(z?C.parent.parent.typeExpression.parameters:M.parameters),me=mY(C);if(!Z||me&&Z.symbol===me&&dP(Z))return W1(_)}}return Pu(b)&&LG(b.parent)?W1(_):fm(_)}function FK(a){const _=ns(a),b=ge(_);b.flags&1?ce.assert(!b.deferredNodes,"A type-checked file should have no deferred nodes."):(b.deferredNodes||(b.deferredNodes=new Set),b.deferredNodes.add(a))}function yvt(a){const _=ge(a);_.deferredNodes&&_.deferredNodes.forEach(vvt),_.deferredNodes=void 0}function vvt(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkDeferredNode",{kind:a.kind,pos:a.pos,end:a.end,path:a.tracingPath});const C=ue;switch(ue=a,te=0,a.kind){case 213:case 214:case 215:case 170:case 286:xK(a);break;case 218:case 219:case 174:case 173:Fze(a);break;case 177:case 178:Nnt(a);break;case 231:Rwe(a);break;case 168:uwe(a);break;case 285:tze(a);break;case 284:xtt(a);break;case 216:case 234:case 217:Bht(a)}ue=C,(b=tu)==null||b.pop()}function bvt(a){var _,b;(_=tu)==null||_.push(tu.Phase.Check,"checkSourceFile",{path:a.path},!0),jf("beforeCheck"),Tvt(a),jf("afterCheck"),dd("Check","beforeCheck","afterCheck"),(b=tu)==null||b.pop()}function yrt(a,_){if(_)return!1;switch(a){case 0:return!!Le.noUnusedLocals;case 1:return!!Le.noUnusedParameters;default:return ce.assertNever(a)}}function vrt(a){return E.get(a.path)||Zn}function Tvt(a){const _=ge(a);if(!(_.flags&1)){if(c3(a,Le,t))return;k1e(a),g_(Tr),g_(Vr),g_(Pn),g_(Fr),g_(Ki),Ot(a.statements,bp),bp(a.endOfFileToken),yvt(a),h1(a)&&c8(a),s(()=>{!a.isDeclarationFile&&(Le.noUnusedLocals||Le.noUnusedParameters)&&iGe(vrt(a),(b,C,M)=>{!QU(b)&&yrt(C,!!(b.flags&33554432))&&no.add(M)}),a.isDeclarationFile||aGe()}),Le.importsNotUsedAsValues===2&&!a.isDeclarationFile&&Wv(a)&&IGe(a),h1(a)&&grt(a),Tr.length&&(Ot(Tr,Ryt),g_(Tr)),Vr.length&&(Ot(Vr,Myt),g_(Vr)),Pn.length&&(Ot(Pn,Wyt),g_(Pn)),Fr.length&&(Ot(Fr,Vnt),g_(Fr)),_.flags|=1}}function brt(a,_){try{return l=_,zwe(a)}finally{l=void 0}}function sne(){for(const a of r)a();r=[]}function Hfe(a){sne();const _=s;s=b=>b(),bvt(a),s=_}function zwe(a){if(a){sne();const _=no.getGlobalDiagnostics(),b=_.length;Hfe(a);const C=no.getDiagnostics(a.fileName),M=no.getGlobalDiagnostics();if(M!==_){const z=b8(_,M,o3);return Hi(z,C)}else if(b===0&&M.length>0)return Hi(M,C);return C}return Ot(t.getSourceFiles(),Hfe),no.getDiagnostics()}function Svt(){return sne(),no.getGlobalDiagnostics()}function Jfe(a,_){if(a.flags&67108864)return[];const b=Td();let C=!1;return M(),b.delete("this"),KP(b);function M(){for(;a;){switch(lk(a)&&a.locals&&!mn(a)&&Z(a.locals,_),a.kind){case 312:if(!Wv(a))break;case 267:me(wi(a).exports,_&2623475);break;case 266:Z(wi(a).exports,_&8);break;case 231:a.name&&z(a.symbol,_);case 263:case 264:C||Z(BA(wi(a)),_&788968);break;case 218:a.name&&z(a.symbol,_);break}iSe(a)&&z(Cr,_),C=e_(a),a=a.parent}Z(Ut,_)}function z(Se,Je){if(r3(Se)&Je){const vt=Se.escapedName;b.has(vt)||b.set(vt,Se)}}function Z(Se,Je){Je&&Se.forEach(vt=>{z(vt,Je)})}function me(Se,Je){Je&&Se.forEach(vt=>{!Vm(vt,281)&&!Vm(vt,280)&&vt.escapedName!=="default"&&z(vt,Je)})}}function Evt(a){return a.kind===80&&f6(a.parent)&&o_(a.parent)===a}function WK(a){for(;a.parent.kind===166;)a=a.parent;return a.parent.kind===183}function $fe(a){for(;a.parent.kind===211;)a=a.parent;return a.parent.kind===233}function cne(a,_){let b,C=h0(a);for(;C&&!(b=_(C));)C=h0(C);return b}function Trt(a){return!!Kr(a,_=>pg(_)&&wx(_.body)||Os(_)?!0:Jl(_)||J_(_)?"quit":!1)}function qfe(a,_){return!!cne(a,b=>b===_)}function lne(a){for(;a.parent.kind===166;)a=a.parent;if(a.parent.kind===271)return a.parent.moduleReference===a?a.parent:void 0;if(a.parent.kind===277)return a.parent.expression===a?a.parent:void 0}function S1e(a){return lne(a)!==void 0}function xvt(a){switch(Qy(a.parent.parent)){case 1:case 3:return Vl(a.parent);case 4:case 2:case 5:return wi(a.parent.parent)}}function Avt(a){let _=a.parent;for(;nT(_);)a=_,_=_.parent;if(_&&_.kind===205&&_.qualifier===a)return _}function XB(a){if(a.expression.kind===110){const _=Q1(a,!1,!1);if(S_(_)){const b=_tt(_);if(b){const C=CO(b,void 0),M=iL(b,C);return M&&!Q_(M)}}}}function gM(a){if(vP(a))return Vl(a.parent);if(Rs(a)&&a.parent.kind===211&&a.parent===a.parent.parent.left&&!Gu(a)&&!Nu(a)&&!XB(a.parent)){const _=xvt(a);if(_)return _}if(a.parent.kind===277&&Uh(a)){const _=P_(a,2998271,!0);if(_&&_!==Ir)return _}else if(Vd(a)&&S1e(a)){const _=e6(a,271);return ce.assert(_!==void 0),gd(a,!0)}if(Vd(a)){const _=Avt(a);if(_){wl(_);const b=ge(a).resolvedSymbol;return b===Ir?void 0:b}}for(;ySe(a);)a=a.parent;if($fe(a)){let _=0;a.parent.kind===233?(_=rC(a)?788968:111551,PS(a.parent)&&(_|=111551)):_=1920,_|=2097152;const b=Uh(a)?P_(a,_,!0):void 0;if(b)return b}if(a.parent.kind===348)return mY(a.parent);if(a.parent.kind===168&&a.parent.parent.kind===352){ce.assert(!Rs(a));const _=lSe(a.parent);return _&&_.symbol}if(Gy(a)){if(Um(a))return;const _=Kr(a,dA(OL,OJ,Nu)),b=_?901119:111551;if(a.kind===80){if($M(a)&&Dv(a)){const M=jB(a.parent);return M===Ir?void 0:M}const C=P_(a,b,!0,!0,VE(a));if(!C&&_){const M=Kr(a,dA(Jl,Kp));if(M)return E1e(a,!0,wi(M))}if(C&&_){const M=P7(a);if(M&&Qb(M)&&M===C.valueDeclaration)return P_(a,b,!0,!0,ns(M))||C}return C}else{if(Gu(a))return RNe(a);if(a.kind===211||a.kind===166){const C=ge(a);if(C.resolvedSymbol)return C.resolvedSymbol;if(a.kind===211){if(o8(a,0),!C.resolvedSymbol){const M=Iv(a.expression),z=zA(M,q6(a.name));if(z.length&&M.members){const me=K0(M).members.get("__index");if(z===T_(M))C.resolvedSymbol=me;else if(me){const Se=Mt(me),Je=Qo(z,Pt=>Pt.declaration),vt=Vn(Je,Im).join(",");if(Se.filteredIndexSymbolCache||(Se.filteredIndexSymbolCache=new Map),Se.filteredIndexSymbolCache.has(vt))C.resolvedSymbol=Se.filteredIndexSymbolCache.get(vt);else{const Pt=Ge(131072,"__index");Pt.declarations=Qo(z,dn=>dn.declaration),Pt.parent=M.aliasSymbol?M.aliasSymbol:M.symbol?M.symbol:CD(Pt.declarations[0].parent),Se.filteredIndexSymbolCache.set(vt,Pt),C.resolvedSymbol=Se.filteredIndexSymbolCache.get(vt)}}}}}else Ftt(a,0);return!C.resolvedSymbol&&_&&nT(a)?E1e(a):C.resolvedSymbol}else if(Nu(a))return E1e(a)}}else if(WK(a)){const _=a.parent.kind===183?788968:1920,b=P_(a,_,!1,!0);return b&&b!==Ir?b:cv(a)}if(a.parent.kind===182)return P_(a,1)}function E1e(a,_,b){if(Vd(a)){let Z=P_(a,901119,_,!0,VE(a));if(!Z&&An(a)&&b&&(Z=wa(Jn(Gt(b),a.escapedText,901119))),Z)return Z}const C=An(a)?b:E1e(a.left,_,b),M=An(a)?a.escapedText:a.right.escapedText;if(C){const z=C.flags&111551&&Fn(Vo(C),"prototype"),Z=z?Vo(z):Rm(C);return Fn(Z,M)}}function CD(a,_){if(tl(a))return Wv(a)?wa(a.symbol):void 0;const{parent:b}=a,C=b.parent;if(!(a.flags&67108864)){if($d(a)){const M=wi(b);return l9(a.parent)&&a.parent.propertyName===a?eze(M):M}else if(K8(a))return wi(b.parent);if(a.kind===80){if(S1e(a))return gM(a);if(b.kind===208&&C.kind===206&&a===b.propertyName){const M=YB(C),z=Fn(M,a.escapedText);if(z)return z}else if(eF(b)&&b.name===a)return b.keywordToken===105&&ec(a)==="target"?Eze(b).symbol:b.keywordToken===102&&ec(a)==="meta"?gWe().members.get("meta"):void 0}switch(a.kind){case 80:case 81:case 211:case 166:if(!kS(a))return gM(a);case 110:const M=Q1(a,!1,!1);if(S_(M)){const me=Cv(M);if(me.thisParameter)return me.thisParameter}if(Ade(a))return n_(a).symbol;case 197:return Z0e(a).symbol;case 108:return n_(a).symbol;case 137:const z=a.parent;return z&&z.kind===176?z.parent.symbol:void 0;case 11:case 15:if(qM(a.parent.parent)&&S7(a.parent.parent)===a||(a.parent.kind===272||a.parent.kind===278)&&a.parent.moduleSpecifier===a||Rs(a)&&Jd(Le)!==100&&eT(a.parent,!1)||WE(a.parent)||_I(a.parent)&&BE(a.parent.parent)&&a.parent.parent.argument===a.parent)return Zm(a,a,_);if(el(b)&&cH(b)&&b.arguments[1]===a)return wi(b);case 9:const Z=Ed(b)?b.argumentExpression===a?yT(b.expression):void 0:_I(b)&&XN(C)?wl(C.objectType):void 0;return Z&&Fn(Z,ty(a.text));case 90:case 100:case 39:case 86:return Vl(a.parent);case 205:return BE(a)?CD(a.argument.literal,_):void 0;case 95:return Ly(a.parent)?ce.checkDefined(a.parent.symbol):void 0;case 102:case 105:return eF(a.parent)?Sze(a.parent).symbol:void 0;case 236:return n_(a).symbol;case 295:if($M(a)&&Dv(a)){const me=jB(a.parent);return me===Ir?void 0:me}default:return}}}function Kfe(a){if(An(a)&&sa(a.parent)&&a.parent.name===a){const _=q6(a),b=yT(a.parent.expression),C=b.flags&1048576?b.types:[b];return ea(C,M=>gi(T_(M),z=>Zu(_,z.keyType)))}}function NGe(a){if(a&&a.kind===304)return P_(a.name,2208703)}function Srt(a){return Oy(a)?a.parent.parent.moduleSpecifier?$o(a.parent.parent,a):P_(a.propertyName||a.name,2998271):P_(a,2998271)}function YB(a){if(tl(a)&&!Wv(a)||a.flags&67108864)return _r;const _=hSe(a),b=_&&Uy(wi(_.class));if(rC(a)){const C=wl(a);return b?M1(C,b.thisType):C}if(Gy(a))return VV(a);if(b&&!_.isImplements){const C=pp(Gp(b));return C?M1(C,b.thisType):_r}if(f6(a)){const C=wi(a);return Rm(C)}if(Evt(a)){const C=CD(a);return C?Rm(C):_r}if(ym(a))return mx(a,!0,0)||_r;if(dl(a)){const C=wi(a);return C?Vo(C):_r}if($d(a)){const C=CD(a);return C?Vo(C):_r}if(ld(a))return mx(a.parent,!0,0)||_r;if(S1e(a)){const C=CD(a);if(C){const M=Rm(C);return je(M)?Vo(C):M}}return eF(a.parent)&&a.parent.keywordToken===a.kind?Sze(a.parent):_r}function Gwe(a){if(ce.assert(a.kind===210||a.kind===209),a.parent.kind===250){const M=zfe(a.parent);return HB(a,M||_r)}if(a.parent.kind===226){const M=yT(a.parent.right);return HB(a,M||_r)}if(a.parent.kind===303){const M=uc(a.parent.parent,Wd),z=Gwe(M)||_r,Z=v9(M.properties,a.parent);return mnt(M,z,Z)}const _=uc(a.parent,Ch),b=Gwe(_)||_r,C=cL(65,b,Ui,a.parent)||_r;return owe(_,b,_.elements.indexOf(a),C)}function Ert(a){const _=Gwe(uc(a.parent.parent,u7));return _&&Fn(_,a.escapedText)}function VV(a){return kH(a)&&(a=a.parent),B1(yT(a))}function jwe(a){const _=Vl(a.parent);return e_(a)?Vo(_):Rm(_)}function wGe(a){const _=a.name;switch(_.kind){case 80:return qv(ec(_));case 9:case 11:return qv(_.text);case 167:const b=Pw(_);return lh(b,12288)?b:xe;default:return ce.fail("Unsupported property name.")}}function Xfe(a){a=O1(a);const _=Td(Vp(a)),b=Ti(a,0).length?k1:Ti(a,1).length?tn:void 0;return b&&Ot(Vp(b),C=>{_.has(C.escapedName)||_.set(C.escapedName,C)}),$n(_)}function BK(a){return Ti(a,0).length!==0||Ti(a,1).length!==0}function xrt(a){const _=Cvt(a);return _?ea(_,xrt):[a]}function Cvt(a){if(I_(a)&6)return Qo(Mt(a).containingType.types,_=>Fn(_,a.escapedName));if(a.flags&33554432){const{links:{leftSpread:_,rightSpread:b,syntheticOrigin:C}}=a;return _?[_,b]:C?[C]:zD(Dvt(a))}}function Dvt(a){let _,b=a;for(;b=Mt(b).target;)_=b;return _}function Ivt(a){if(Om(a))return!1;const _=Il(a,An);if(!_)return!1;const b=_.parent;return b?!((sa(b)||Fm(b))&&b.name===_)&&Yfe(_)===Cr:!1}function kvt(a){let _=Zm(a.parent,a);if(!_||VM(_))return!0;const b=N1(_);_=$0(_);const C=Mt(_);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=b?!!(_.flags&111551):wT(sr(_),M)),C.exportsSomeValue;function M(z){return z=wp(z),z&&!!(sg(z)&111551)}}function Pvt(a){return sde(a.parent)&&a===a.parent.name}function Nvt(a,_){var b;const C=Il(a,An);if(C){let M=Yfe(C,Pvt(C));if(M){if(M.flags&1048576){const Z=wa(M.exportSymbol);if(!_&&Z.flags&944&&!(Z.flags&3))return;M=Z}const z=Uf(M);if(z){if(z.flags&512&&((b=z.valueDeclaration)==null?void 0:b.kind)===312){const Z=z.valueDeclaration,me=ns(C);return Z!==me?void 0:Z}return Kr(C.parent,Z=>sde(Z)&&wi(Z)===z)}}}}function wvt(a){const _=RY(a);if(_)return _;const b=Il(a,An);if(b){const C=Qfe(b);if(Cg(C,111551)&&!da(C,111551))return og(C)}}function Rvt(a){return a.valueDeclaration&&ym(a.valueDeclaration)&&zX(a.valueDeclaration).parent.kind===299}function Art(a){if(a.flags&418&&a.valueDeclaration&&!tl(a.valueDeclaration)){const _=Mt(a);if(_.isDeclarationWithCollidingName===void 0){const b=Bs(a.valueDeclaration);if(XTe(b)||Rvt(a)){const C=ge(a.valueDeclaration);if(Ro(b.parent,a.escapedName,111551,void 0,void 0,!1))_.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const M=C.flags&32768,z=kN(b,!1),Z=b.kind===241&&kN(b.parent,!1);_.isDeclarationWithCollidingName=!mde(b)&&(!M||!z&&!Z)}else _.isDeclarationWithCollidingName=!1}}return _.isDeclarationWithCollidingName}return!1}function Mvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b&&Art(b))return b.valueDeclaration}}}function Lvt(a){const _=Il(a,dl);if(_){const b=wi(_);if(b)return Art(b)}return!1}function Crt(a){switch(ce.assert(Ur),a.kind){case 271:return x1e(wi(a));case 273:case 274:case 276:case 281:const _=wi(a);return!!_&&x1e(_,!0);case 278:const b=a.exportClause;return!!b&&(AP(b)||gt(b.elements,Crt));case 277:return a.expression&&a.expression.kind===80?x1e(wi(a)):!0}return!1}function Drt(a){const _=Il(a,kh);return _===void 0||_.parent.kind!==312||!y1(_)?!1:x1e(wi(_))&&_.moduleReference&&!Um(_.moduleReference)}function x1e(a,_){if(!a)return!1;const b=zh(Xp(a));return b===Ir?!0:!!(sg(a,_,!0)&111551)&&(gk(Le)||!qk(b))}function qk(a){return jze(a)||!!a.constEnumOnlyModule}function A1e(a,_){if(ce.assert(Ur),km(a)){const b=wi(a),C=b&&Mt(b);if(C!=null&&C.referenced)return!0;const M=Mt(b).aliasTarget;if(M&&tS(a)&1&&sg(M)&111551&&(gk(Le)||!qk(M)))return!0}return _?!!B_(a,b=>A1e(b,_)):!1}function RGe(a){if(wx(a.body)){if(J2(a)||_P(a))return!1;const _=wi(a),b=vh(_);return b.length>1||b.length===1&&b[0].declaration!==a}return!1}function une(a){return!!Ye&&!W4(a)&&!AA(a)&&!!a.initializer&&!il(a,16476)}function Ovt(a){return Ye&&W4(a)&&!a.initializer&&il(a,16476)}function Fvt(a){const _=Il(a,b0);if(!_)return!1;const b=wi(_);return!b||!(b.flags&16)?!1:!!wT(Gt(b),C=>C.flags&111551&&C.valueDeclaration&&sa(C.valueDeclaration))}function MGe(a){const _=Il(a,b0);if(!_)return Zn;const b=wi(_);return b&&Vp(Vo(b))||Zn}function QB(a){var _;const b=a.id||0;return b<0||b>=Rn.length?0:((_=Rn[b])==null?void 0:_.flags)||0}function ZB(a){return srt(a.parent),ge(a).enumMemberValue}function LGe(a){switch(a.kind){case 306:case 211:case 212:return!0}return!1}function OGe(a){if(a.kind===306)return ZB(a);const _=ge(a).resolvedSymbol;if(_&&_.flags&8){const b=_.valueDeclaration;if(gP(b.parent))return ZB(b)}}function Vwe(a){return!!(a.flags&524288)&&Ti(a,0).length>0}function Wvt(a,_){var b;const C=Il(a,Vd);if(!C||_&&(_=Il(_),!_))return 0;let M=!1;if(nT(C)){const Je=P_(NS(C),111551,!0,!0,_);M=!!((b=Je==null?void 0:Je.declarations)!=null&&b.every(sR))}const z=P_(C,111551,!0,!0,_),Z=z&&z.flags&2097152?Xp(z):z;M||(M=!!(z&&da(z,111551)));const me=P_(C,788968,!0,!1,_);if(Z&&Z===me){const Je=DB(!1);if(Je&&Z===Je)return 9;const vt=Vo(Z);if(vt&&ko(vt))return M?10:1}if(!me)return M?11:0;const Se=Rm(me);return je(Se)?M?11:0:Se.flags&3?11:lh(Se,245760)?2:lh(Se,528)?6:lh(Se,296)?3:lh(Se,2112)?4:lh(Se,402653316)?5:_p(Se)?7:lh(Se,12288)?8:Vwe(Se)?10:UA(Se)?7:11}function C1e(a,_,b,C,M){const z=Il(a,iC);if(!z)return be.createToken(133);const Z=wi(z);let me=Z&&!(Z.flags&133120)?TO(Vo(Z)):_r;return me.flags&8192&&me.symbol===Z&&(b|=1048576),M&&(me=eL(me)),Xr.typeToTypeNode(me,_,b|1024,C)}function Irt(a,_,b,C){const M=Il(a,S_);if(!M)return be.createToken(133);const z=Cv(M);return Xr.typeToTypeNode(j(z),_,b|1024,C)}function Bvt(a,_,b,C){const M=Il(a,Nr);if(!M)return be.createToken(133);const z=Bb(VV(M));return Xr.typeToTypeNode(z,_,b|1024,C)}function Uwe(a){return Ut.has(ty(a))}function Yfe(a,_){const b=ge(a).resolvedSymbol;if(b)return b;let C=a;if(_){const M=a.parent;dl(M)&&a===M.name&&(C=FA(M))}return Ro(C,a.escapedText,3257279,void 0,void 0,!0)}function Qfe(a){const _=ge(a).resolvedSymbol;return _&&_!==Ir?_:Ro(a,a.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function zvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b)return zh(b).valueDeclaration}}}function Gvt(a){if(!Om(a)){const _=Il(a,An);if(_){const b=Yfe(_);if(b)return gi(zh(b).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 jvt(a){return MN(a)||ff(a)&&Xwe(a)?jk(Vo(wi(a))):!1}function Vvt(a,_,b){const C=a.flags&1056?Xr.symbolToExpression(a.symbol,111551,_,void 0,b):a===Ji?be.createTrue():a===rr&&be.createFalse();if(C)return C;const M=a.value;return typeof M=="object"?be.createBigIntLiteral(M):typeof M=="number"?be.createNumericLiteral(M):be.createStringLiteral(M)}function Uvt(a,_){const b=Vo(wi(a));return Vvt(b,a,_)}function krt(a){return a?(us(a),ns(a).localJsxFactory||ki):ki}function FGe(a){if(a){const _=ns(a);if(_){if(_.localJsxFragmentFactory)return _.localJsxFragmentFactory;const b=_.pragmas.get("jsxfrag"),C=ls(b)?b[0]:b;if(C)return _.localJsxFragmentFactory=s_(C.arguments.factory,ht),_.localJsxFragmentFactory}}if(Le.jsxFragmentFactory)return s_(Le.jsxFragmentFactory,ht)}function Hvt(){const a=t.getResolvedTypeReferenceDirectives();let _;return a&&(_=new Map,a.forEach(({resolvedTypeReferenceDirective:Se},Je,vt)=>{if(!(Se!=null&&Se.resolvedFileName))return;const Pt=t.getSourceFile(Se.resolvedFileName);Pt&&me(Pt,Je,vt)})),{getReferencedExportContainer:Nvt,getReferencedImportDeclaration:wvt,getReferencedDeclarationWithCollidingName:Mvt,isDeclarationWithCollidingName:Lvt,isValueAliasDeclaration:Se=>{const Je=Il(Se);return Je&&Ur?Crt(Je):!0},hasGlobalName:Uwe,isReferencedAliasDeclaration:(Se,Je)=>{const vt=Il(Se);return vt&&Ur?A1e(vt,Je):!0},getNodeCheckFlags:Se=>{const Je=Il(Se);return Je?QB(Je):0},isTopLevelValueImportEqualsWithEntityName:Drt,isDeclarationVisible:WS,isImplementationOfOverload:RGe,isRequiredInitializedParameter:une,isOptionalUninitializedParameterProperty:Ovt,isExpandoFunctionDeclaration:Fvt,getPropertiesOfContainerFunction:MGe,createTypeOfDeclaration:C1e,createReturnTypeOfSignatureDeclaration:Irt,createTypeOfExpression:Bvt,createLiteralConstValue:Uvt,isSymbolAccessible:br,isEntityNameVisible:L_,getConstantValue:Se=>{const Je=Il(Se,LGe);return Je?OGe(Je):void 0},collectLinkedAliases:px,getReferencedValueDeclaration:zvt,getReferencedValueDeclarations:Gvt,getTypeReferenceSerializationKind:Wvt,isOptionalParameter:W4,moduleExportsSomeValue:kvt,isArgumentsLocalBinding:Ivt,getExternalModuleFileFromDeclaration:Se=>{const Je=Il(Se,tH);return Je&&UV(Je)},getTypeReferenceDirectivesForEntityName:M,getTypeReferenceDirectivesForSymbol:z,isLiteralConstDeclaration:jvt,isLateBound:Se=>{const Je=Il(Se,dl),vt=Je&&wi(Je);return!!(vt&&I_(vt)&4096)},getJsxFactoryEntity:krt,getJsxFragmentFactoryEntity:FGe,getAllAccessorDeclarations(Se){Se=Il(Se,s9);const Je=Se.kind===178?177:178,vt=Vm(wi(Se),Je),Pt=vt&&vt.posfb(Se,Se,void 0),isBindingCapturedByNode:(Se,Je)=>{const vt=Il(Se),Pt=Il(Je);return!!vt&&!!Pt&&(ff(Pt)||ym(Pt))&&utt(vt,Pt)},getDeclarationStatementsForSourceFile:(Se,Je,vt,Pt)=>{const dn=Il(Se);ce.assert(dn&&dn.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const yn=wi(Se);return yn?yn.exports?Xr.symbolTableToDeclarationStatements(yn.exports,Se,Je,vt,Pt):[]:Se.locals?Xr.symbolTableToDeclarationStatements(Se.locals,Se,Je,vt,Pt):[]},isImportRequiredByAugmentation:b};function b(Se){const Je=ns(Se);if(!Je.symbol)return!1;const vt=UV(Se);if(!vt||vt===Je)return!1;const Pt=sr(Je.symbol);for(const dn of oc(Pt.values()))if(dn.mergeId){const yn=wa(dn);if(yn.declarations){for(const hr of yn.declarations)if(ns(hr)===vt)return!0}}return!1}function C(Se){return Se.parent&&Se.parent.kind===233&&Se.parent.parent&&Se.parent.parent.kind===298}function M(Se){if(!_)return;let Je;Se.parent.kind===167?Je=1160127:(Je=790504,(Se.kind===80&&O7(Se)||Se.kind===211&&!C(Se))&&(Je=1160127));const vt=P_(Se,Je,!0);return vt&&vt!==Ir?z(vt,Je):void 0}function z(Se,Je){if(!_||!Z(Se))return;let vt;for(const Pt of Se.declarations)if(Pt.symbol&&Pt.symbol.flags&Je){const dn=ns(Pt),yn=_.get(dn.path);if(yn)(vt||(vt=[])).push(yn);else return}return vt}function Z(Se){if(!Se.declarations)return!1;let Je=Se;for(;;){const vt=Uf(Je);if(vt)Je=vt;else break}if(Je.valueDeclaration&&Je.valueDeclaration.kind===312&&Je.flags&512)return!1;for(const vt of Se.declarations){const Pt=ns(vt);if(_.has(Pt.path))return!0}return!1}function me(Se,Je,vt){if(!_.has(Se.path)){_.set(Se.path,[Je,vt]);for(const{fileName:Pt,resolutionMode:dn}of Se.referencedFiles){const yn=YE(Pt,Se.fileName),hr=t.getSourceFile(yn);hr&&me(hr,Je,dn||Se.impliedNodeFormat)}}}}function UV(a){const _=a.kind===267?to(a.name,Wp):pY(a),b=fb(_,_,void 0);if(b)return Vm(b,312)}function Jvt(){for(const _ of t.getSourceFiles())YN(_,Le);av=new Map;let a;for(const _ of t.getSourceFiles())if(!_.redirectInfo){if(!h1(_)){const b=_.locals.get("globalThis");if(b!=null&&b.declarations)for(const C of b.declarations)no.add(kc(C,w.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Ce(Ut,_.locals)}_.jsGlobalAugmentations&&Ce(Ut,_.jsGlobalAugmentations),_.patternAmbientModules&&_.patternAmbientModules.length&&(Sv=Hi(Sv,_.patternAmbientModules)),_.moduleAugmentations.length&&(a||(a=[])).push(_.moduleAugmentations),_.symbol&&_.symbol.globalExports&&_.symbol.globalExports.forEach((C,M)=>{Ut.has(M)||Ut.set(M,C)})}if(a)for(const _ of a)for(const b of _)$C(b.parent)&&kt(b);if(qe(Ut,Ia,w.Declaration_name_conflicts_with_built_in_global_identifier_0),Mt(In).type=xu,Mt(Cr).type=Jv("IArguments",0,!0),Mt(Ir).type=_r,Mt(gr).type=Uv(16,gr),fi=Jv("Array",1,!0),Ev=Jv("Object",0,!0),S0=Jv("Function",0,!0),k1=lt&&Jv("CallableFunction",0,!0)||S0,tn=lt&&Jv("NewableFunction",0,!0)||S0,bu=Jv("String",0,!0),K_=Jv("Number",0,!0),ig=Jv("Boolean",0,!0),Fy=Jv("RegExp",0,!0),ir=W1(gn),ii=W1(qr),ii===Yu&&(ii=jo(void 0,Ve,Zn,Zn,Zn)),ya=BZe("ReadonlyArray",1)||fi,Si=ya?Nue(ya,[gn]):ir,bt=BZe("ThisType",1),a)for(const _ of a)for(const b of _)$C(b.parent)||kt(b);av.forEach(({firstFile:_,secondFile:b,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:M,firstFileLocations:z,secondFileLocations:Z},me)=>{const Se=M?w.Cannot_redeclare_block_scoped_variable_0:w.Duplicate_identifier_0;for(const Je of z)Io(Je,Se,me,Z);for(const Je of Z)Io(Je,Se,me,z)});else{const M=oc(C.keys()).join(", ");no.add(ml(kc(_,w.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,M),kc(b,w.Conflicts_are_in_this_file))),no.add(ml(kc(b,w.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,M),kc(_,w.Conflicts_are_in_this_file)))}}),av=void 0}function Jy(a,_){if((y&_)!==_&&Le.importHelpers){const b=ns(a);if(B8(b,Le)&&!(a.flags&33554432)){const C=Prt(b,a);if(C!==Ir){const M=_&~y;for(let z=1;z<=33554432;z<<=1)if(M&z)for(const Z of D1e(z)){if(m.has(Z))continue;m.add(Z);const me=wp(Jn(sr(C),ty(Z),111551));me?z&524288?gt(vh(me),Se=>xx(Se)>3)||He(a,w.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,_6,Z,4):z&1048576?gt(vh(me),Se=>xx(Se)>4)||He(a,w.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,_6,Z,5):z&1024&&(gt(vh(me),Se=>xx(Se)>2)||He(a,w.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,_6,Z,3)):He(a,w.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_6,Z)}}y|=_}}}function D1e(a){switch(a){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return _t?["__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 ce.fail("Unrecognized helper")}}function Prt(a,_){return T||(T=FS(a,_6,w.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,_)||Ir),T}function aN(a){const _=qvt(a)||$vt(a);if(_!==void 0)return _;if(Pu(a)&&oI(a))return c1(a,w.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const b=Dh(a)?a.declarationList.flags&7:0;let C,M,z,Z,me,Se=0,Je=!1,vt=!1;for(const Pt of a.modifiers)if(Qf(Pt)){if(ZD(_t,a,a.parent,a.parent.parent)){if(_t&&(a.kind===177||a.kind===178)){const dn=mG(a.parent.members,a);if(Fx(dn.firstAccessor)&&a===dn.secondAccessor)return c1(a,w.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return a.kind===174&&!wx(a.body)?c1(a,w.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):c1(a,w.Decorators_are_not_valid_here);if(Se&-132098)return Po(Pt,w.Decorators_are_not_valid_here);if(vt&&Se&126975){ce.assertIsDefined(me);const dn=ns(Pt);return T5(dn)?!1:(ml(He(Pt,w.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),kc(me,w.Decorator_used_before_export_here)),!0)}Se|=131072,Se&126975?Se&1&&(Je=!0):vt=!0,me??(me=Pt)}else{if(Pt.kind!==148){if(a.kind===171||a.kind===173)return Po(Pt,w._0_modifier_cannot_appear_on_a_type_member,Nd(Pt.kind));if(a.kind===181&&(Pt.kind!==126||!Jl(a.parent)))return Po(Pt,w._0_modifier_cannot_appear_on_an_index_signature,Nd(Pt.kind))}if(Pt.kind!==103&&Pt.kind!==147&&Pt.kind!==87&&a.kind===168)return Po(Pt,w._0_modifier_cannot_appear_on_a_type_parameter,Nd(Pt.kind));switch(Pt.kind){case 87:if(a.kind!==266&&a.kind!==168)return Po(a,w.A_class_member_cannot_have_the_0_keyword,Nd(87));const dn=a.parent;if(a.kind===168&&!(J_(dn)||Jl(dn)||Z2(dn)||mW(dn)||Lh(dn)||lE(dn)||Jh(dn)))return Po(Pt,w._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Nd(Pt.kind));break;case 164:if(Se&16384)return Po(Pt,w._0_modifier_already_seen,"override");if(Se&2)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","readonly");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","accessor");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"override","async");Se|=16384,Z=Pt;break;case 125:case 124:case 123:const yn=pD(U9(Pt.kind));if(Se&28)return Po(Pt,w.Accessibility_modifier_already_seen);if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"override");if(Se&32)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"static");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"accessor");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"readonly");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"async");if(a.parent.kind===268||a.parent.kind===312)return Po(Pt,w._0_modifier_cannot_appear_on_a_module_or_namespace_element,yn);if(Se&256)return Pt.kind===123?Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,yn,"abstract"):Po(Pt,w._0_modifier_must_precede_1_modifier,yn,"abstract");if(Mf(a))return Po(Pt,w.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Se|=U9(Pt.kind);break;case 126:if(Se&32)return Po(Pt,w._0_modifier_already_seen,"static");if(Se&64)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","readonly");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","async");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","accessor");if(a.parent.kind===268||a.parent.kind===312)return Po(Pt,w._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"static");if(Se&256)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,"static","override");Se|=32,C=Pt;break;case 129:if(Se&128)return Po(Pt,w._0_modifier_already_seen,"accessor");if(Se&64)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Se&2)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(a.kind!==172)return Po(Pt,w.accessor_modifier_can_only_appear_on_a_property_declaration);Se|=128;break;case 148:if(Se&64)return Po(Pt,w._0_modifier_already_seen,"readonly");if(a.kind!==172&&a.kind!==171&&a.kind!==181&&a.kind!==169)return Po(Pt,w.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Se&128)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Se|=64;break;case 95:if(Le.verbatimModuleSyntax&&!(a.flags&33554432)&&a.kind!==265&&a.kind!==264&&a.kind!==267&&a.parent.kind===312&&(ke===1||ns(a).impliedNodeFormat===1))return Po(Pt,w.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Se&1)return Po(Pt,w._0_modifier_already_seen,"export");if(Se&2)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","declare");if(Se&256)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","abstract");if(Se&512)return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","async");if(Jl(a.parent))return Po(Pt,w._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"export");if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"export");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Se|=1;break;case 90:const hr=a.parent.kind===312?a.parent:a.parent.parent;if(hr.kind===267&&!Ov(hr))return Po(Pt,w.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"default");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Se&1){if(Je)return Po(me,w.Decorators_are_not_valid_here)}else return Po(Pt,w._0_modifier_must_precede_1_modifier,"export","default");Se|=1024;break;case 138:if(Se&2)return Po(Pt,w._0_modifier_already_seen,"declare");if(Se&512)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Se&16384)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Jl(a.parent)&&!Os(a))return Po(Pt,w._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"declare");if(b===4)return Po(Pt,w._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(b===6)return Po(Pt,w._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(a.parent.flags&33554432&&a.parent.kind===268)return Po(Pt,w.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Mf(a))return Po(Pt,w._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Se&128)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Se|=2,M=Pt;break;case 128:if(Se&256)return Po(Pt,w._0_modifier_already_seen,"abstract");if(a.kind!==263&&a.kind!==185){if(a.kind!==174&&a.kind!==172&&a.kind!==177&&a.kind!==178)return Po(Pt,w.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(a.parent.kind===263&&il(a.parent,256))){const aa=a.kind===172?w.Abstract_properties_can_only_appear_within_an_abstract_class:w.Abstract_methods_can_only_appear_within_an_abstract_class;return Po(Pt,aa)}if(Se&32)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Se&8)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Se&512&&z)return Po(z,w._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Se&16384)return Po(Pt,w._0_modifier_must_precede_1_modifier,"abstract","override");if(Se&128)return Po(Pt,w._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Xv(a)&&a.name.kind===81)return Po(Pt,w._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Se|=256;break;case 134:if(Se&512)return Po(Pt,w._0_modifier_already_seen,"async");if(Se&2||a.parent.flags&33554432)return Po(Pt,w._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(a.kind===169)return Po(Pt,w._0_modifier_cannot_appear_on_a_parameter,"async");if(Se&256)return Po(Pt,w._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Se|=512,z=Pt;break;case 103:case 147:const bi=Pt.kind===103?32768:65536,Wo=Pt.kind===103?"in":"out";if(a.kind!==168||!(Kp(a.parent)||Jl(a.parent)||mg(a.parent)))return Po(Pt,w._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Wo);if(Se&bi)return Po(Pt,w._0_modifier_already_seen,Wo);if(bi&32768&&Se&65536)return Po(Pt,w._0_modifier_must_precede_1_modifier,"in","out");Se|=bi;break}}return a.kind===176?Se&32?Po(C,w._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Se&16384?Po(Z,w._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Se&512?Po(z,w._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(a.kind===272||a.kind===271)&&Se&2?Po(M,w.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):a.kind===169&&Se&16476&&ld(a.name)?Po(a,w.A_parameter_property_may_not_be_declared_using_a_binding_pattern):a.kind===169&&Se&16476&&a.dotDotDotToken?Po(a,w.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Se&512?Xvt(a,z):!1}function $vt(a){if(!a.modifiers)return!1;const _=Jwe(a);return _&&c1(_,w.Modifiers_cannot_appear_here)}function Hwe(a,_){const b=lr(a.modifiers,bd);return b&&b.kind!==_?b:void 0}function Jwe(a){switch(a.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 lr(a.modifiers,bd);default:if(a.parent.kind===268||a.parent.kind===312)return;switch(a.kind){case 262:return Hwe(a,134);case 263:case 185:return Hwe(a,128);case 231:case 264:case 265:return lr(a.modifiers,bd);case 243:return a.declarationList.flags&4?Hwe(a,135):lr(a.modifiers,bd);case 266:return Hwe(a,87);default:ce.assertNever(a)}}}function qvt(a){const _=Kvt(a);return _&&c1(_,w.Decorators_are_not_valid_here)}function Kvt(a){return BEe(a)?lr(a.modifiers,Qf):void 0}function Xvt(a,_){switch(a.kind){case 174:case 262:case 218:case 219:return!1}return Po(_,w._0_modifier_cannot_be_used_here,"async")}function v5(a,_=w.Trailing_comma_not_allowed){return a&&a.hasTrailingComma?S5(a[0],a.end-1,1,_):!1}function Nrt(a,_){if(a&&a.length===0){const b=a.pos-1,C=ep(_.text,a.end)+1;return S5(_,b,C-b,w.Type_parameter_list_cannot_be_empty)}return!1}function Yvt(a){let _=!1;const b=a.length;for(let C=0;C!!_.initializer||ld(_.name)||dP(_))}function Zvt(a){if(ht>=3){const _=a.body&&E_(a.body)&&JY(a.body.statements);if(_){const b=Qvt(a.parameters);if(Nt(b)){Ot(b,M=>{ml(He(M,w.This_parameter_is_not_allowed_with_use_strict_directive),kc(_,w.use_strict_directive_used_here))});const C=b.map((M,z)=>z===0?kc(M,w.Non_simple_parameter_declared_here):kc(M,w.and_here));return ml(He(_,w.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function Zfe(a){const _=ns(a);return aN(a)||Nrt(a.typeParameters,_)||Yvt(a.parameters)||e0t(a,_)||J_(a)&&Zvt(a)}function fne(a){const _=ns(a);return uL(a)||Nrt(a.typeParameters,_)}function e0t(a,_){if(!ph(a))return!1;a.typeParameters&&!(Nt(a.typeParameters)>1||a.typeParameters.hasTrailingComma||a.typeParameters[0].constraint)&&_&&ws(_.fileName,[".mts",".cts"])&&Po(a.typeParameters[0],w.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:b}=a,C=Ah(_,b.pos).line,M=Ah(_,b.end).line;return C!==M&&Po(b,w.Line_terminator_not_permitted_before_arrow)}function t0t(a){const _=a.parameters[0];if(a.parameters.length!==1)return Po(_?_.name:a,w.An_index_signature_must_have_exactly_one_parameter);if(v5(a.parameters,w.An_index_signature_cannot_have_a_trailing_comma),_.dotDotDotToken)return Po(_.dotDotDotToken,w.An_index_signature_cannot_have_a_rest_parameter);if(ev(_))return Po(_.name,w.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(_.questionToken)return Po(_.questionToken,w.An_index_signature_parameter_cannot_have_a_question_mark);if(_.initializer)return Po(_.name,w.An_index_signature_parameter_cannot_have_an_initializer);if(!_.type)return Po(_.name,w.An_index_signature_parameter_must_have_a_type_annotation);const b=wl(_.type);return dM(b,C=>!!(C.flags&8576))||mte(b)?Po(_.name,w.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):iA(b,fte)?a.type?!1:Po(a,w.An_index_signature_must_have_a_type_annotation):Po(_.name,w.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function n0t(a){return aN(a)||t0t(a)}function I1e(a,_){if(_&&_.length===0){const b=ns(a),C=_.pos-1,M=ep(b.text,_.end)+1;return S5(b,C,M-C,w.Type_argument_list_cannot_be_empty)}return!1}function Kk(a,_){return v5(_)||I1e(a,_)}function WGe(a){return a.questionDotToken||a.flags&64?Po(a.template,w.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function wrt(a){const _=a.types;if(v5(_))return!0;if(_&&_.length===0){const b=Nd(a.token);return S5(a,_.pos,0,w._0_list_cannot_be_empty,b)}return gt(_,$we)}function $we(a){return WT(a)&&RJ(a.expression)&&a.typeArguments?Po(a,w.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Kk(a,a.typeArguments)}function uL(a){let _=!1,b=!1;if(!aN(a)&&a.heritageClauses)for(const C of a.heritageClauses){if(C.token===96){if(_)return c1(C,w.extends_clause_already_seen);if(b)return c1(C,w.extends_clause_must_precede_implements_clause);if(C.types.length>1)return c1(C.types[1],w.Classes_can_only_extend_a_single_class);_=!0}else{if(ce.assert(C.token===119),b)return c1(C,w.implements_clause_already_seen);b=!0}wrt(C)}}function Rrt(a){let _=!1;if(a.heritageClauses)for(const b of a.heritageClauses){if(b.token===96){if(_)return c1(b,w.extends_clause_already_seen);_=!0}else return ce.assert(b.token===119),c1(b,w.Interface_declaration_cannot_have_implements_clause);wrt(b)}return!1}function _ne(a){if(a.kind!==167)return!1;const _=a;return _.expression.kind===226&&_.expression.operatorToken.kind===28?Po(_.expression,w.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Xk(a){if(a.asteriskToken){if(ce.assert(a.kind===262||a.kind===218||a.kind===174),a.flags&33554432)return Po(a.asteriskToken,w.Generators_are_not_allowed_in_an_ambient_context);if(!a.body)return Po(a.asteriskToken,w.An_overload_signature_cannot_be_declared_as_a_generator)}}function e_e(a,_){return!!a&&Po(a,_)}function qwe(a,_){return!!a&&Po(a,_)}function Mrt(a,_){const b=new Map;for(const C of a.properties){if(C.kind===305){if(_){const Z=_g(C.expression);if(Ch(Z)||Wd(Z))return Po(C.expression,w.A_rest_element_cannot_contain_a_binding_pattern)}continue}const M=C.name;if(M.kind===167&&_ne(M),C.kind===304&&!_&&C.objectAssignmentInitializer&&Po(C.equalsToken,w.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),M.kind===81&&Po(M,w.Private_identifiers_are_not_allowed_outside_class_bodies),nx(C)&&C.modifiers)for(const Z of C.modifiers)bd(Z)&&(Z.kind!==134||C.kind!==174)&&Po(Z,w._0_modifier_cannot_be_used_here,Yv(Z));else if(BG(C)&&C.modifiers)for(const Z of C.modifiers)bd(Z)&&Po(Z,w._0_modifier_cannot_be_used_here,Yv(Z));let z;switch(C.kind){case 304:case 303:qwe(C.exclamationToken,w.A_definite_assignment_assertion_is_not_permitted_in_this_context),e_e(C.questionToken,w.An_object_member_cannot_be_declared_optional),M.kind===9&&Kwe(M),z=4;break;case 174:z=8;break;case 177:z=1;break;case 178:z=2;break;default:ce.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!_){const Z=m0t(M);if(Z===void 0)continue;const me=b.get(Z);if(!me)b.set(Z,z);else if(z&8&&me&8)Po(M,w.Duplicate_identifier_0,Yv(M));else if(z&4&&me&4)Po(M,w.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Yv(M));else if(z&3&&me&3)if(me!==3&&z!==me)b.set(Z,z|me);else return Po(M,w.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Po(M,w.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function BGe(a){Lrt(a.tagName),Kk(a,a.typeArguments);const _=new Map;for(const b of a.attributes.properties){if(b.kind===293)continue;const{name:C,initializer:M}=b,z=m3(C);if(!_.get(z))_.set(z,!0);else return Po(C,w.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(M&&M.kind===294&&!M.expression)return Po(M,w.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Lrt(a){if(sa(a)&&dI(a.expression))return Po(a.expression,w.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(dI(a)&&VH(Le)&&!z9(a.namespace.escapedText))return Po(a,w.React_components_cannot_include_JSX_namespace_names)}function Ort(a){if(a.expression&&CW(a.expression))return Po(a.expression,w.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function zGe(a){if(hM(a))return!0;if(a.kind===250&&a.awaitModifier&&!(a.flags&65536)){const _=ns(a);if(Tie(a)){if(!T5(_))switch(B8(_,Le)||no.add(kc(a.awaitModifier,w.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)),ke){case 100:case 199:if(_.impliedNodeFormat===1){no.add(kc(a.awaitModifier,w.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ht>=4)break;default:no.add(kc(a.awaitModifier,w.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(!T5(_)){const b=kc(a.awaitModifier,w.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=GE(a);if(C&&C.kind!==176){ce.assert((L0(C)&2)===0,"Enclosing function should never be an async function.");const M=kc(C,w.Did_you_mean_to_mark_this_function_as_async);ml(b,M)}return no.add(b),!0}return!1}if(Moe(a)&&!(a.flags&65536)&&An(a.initializer)&&a.initializer.escapedText==="async")return Po(a.initializer,w.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(a.initializer.kind===261){const _=a.initializer;if(!dne(_)){const b=_.declarations;if(!b.length)return!1;if(b.length>1){const M=a.kind===249?w.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:w.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return c1(_.declarations[1],M)}const C=b[0];if(C.initializer){const M=a.kind===249?w.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:w.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Po(C.name,M)}if(C.type){const M=a.kind===249?w.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:w.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Po(C,M)}}}return!1}function GGe(a){if(!(a.flags&33554432)&&a.parent.kind!==187&&a.parent.kind!==264){if(ht<1)return Po(a.name,w.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(a.body===void 0&&!il(a,256))return S5(a,a.end-1,1,w._0_expected,"{")}if(a.body){if(il(a,256))return Po(a,w.An_abstract_accessor_cannot_have_an_implementation);if(a.parent.kind===187||a.parent.kind===264)return Po(a.body,w.An_implementation_cannot_be_declared_in_ambient_contexts)}if(a.typeParameters)return Po(a.name,w.An_accessor_cannot_have_type_parameters);if(!jGe(a))return Po(a.name,a.kind===177?w.A_get_accessor_cannot_have_parameters:w.A_set_accessor_must_have_exactly_one_parameter);if(a.kind===178){if(a.type)return Po(a.name,w.A_set_accessor_cannot_have_a_return_type_annotation);const _=ce.checkDefined(yR(a),"Return value does not match parameter count assertion.");if(_.dotDotDotToken)return Po(_.dotDotDotToken,w.A_set_accessor_cannot_have_rest_parameter);if(_.questionToken)return Po(_.questionToken,w.A_set_accessor_cannot_have_an_optional_parameter);if(_.initializer)return Po(a.name,w.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function jGe(a){return VGe(a)||a.parameters.length===(a.kind===177?0:1)}function VGe(a){if(a.parameters.length===(a.kind===177?1:2))return JL(a)}function Frt(a){if(a.operator===158){if(a.type.kind!==155)return Po(a.type,w._0_expected,Nd(155));let _=mH(a.parent);if(Rs(_)&&pI(_)){const b=P7(_);b&&(_=$8(b)||b)}switch(_.kind){case 260:const b=_;if(b.name.kind!==80)return Po(a,w.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!x9(b))return Po(a,w.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(b.parent.flags&2))return Po(_.name,w.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!e_(_)||!Cb(_))return Po(_.name,w.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!il(_,64))return Po(_.name,w.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Po(a,w.unique_symbol_types_are_not_allowed_here)}}else if(a.operator===148&&a.type.kind!==188&&a.type.kind!==189)return c1(a,w.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Nd(155))}function zK(a,_){if(w4(a))return Po(a,_)}function Wrt(a){if(Zfe(a))return!0;if(a.kind===174){if(a.parent.kind===210){if(a.modifiers&&!(a.modifiers.length===1&&Dl(a.modifiers).kind===134))return c1(a,w.Modifiers_cannot_appear_here);if(e_e(a.questionToken,w.An_object_member_cannot_be_declared_optional))return!0;if(qwe(a.exclamationToken,w.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(a.body===void 0)return S5(a,a.end-1,1,w._0_expected,"{")}if(Xk(a))return!0}if(Jl(a.parent)){if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(a.flags&33554432)return zK(a.name,w.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(a.kind===174&&!a.body)return zK(a.name,w.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(a.parent.kind===264)return zK(a.name,w.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(a.parent.kind===187)return zK(a.name,w.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 Brt(a){let _=a;for(;_;){if(_9(_))return Po(a,w.Jump_target_cannot_cross_function_boundary);switch(_.kind){case 256:if(a.label&&_.label.escapedText===a.label.escapedText)return a.kind===251&&!kN(_.statement,!0)?Po(a,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(a.kind===252&&!a.label)return!1;break;default:if(kN(_,!1)&&!a.label)return!1;break}_=_.parent}if(a.label){const b=a.kind===252?w.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Po(a,b)}else{const b=a.kind===252?w.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:w.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Po(a,b)}}function r0t(a){if(a.dotDotDotToken){const _=a.parent.elements;if(a!==yl(_))return Po(a,w.A_rest_element_must_be_last_in_a_destructuring_pattern);if(v5(_,w.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.propertyName)return Po(a.name,w.A_rest_element_cannot_have_a_property_name)}if(a.dotDotDotToken&&a.initializer)return S5(a,a.initializer.pos-1,1,w.A_rest_element_cannot_have_an_initializer)}function zrt(a){return Qv(a)||a.kind===224&&a.operator===41&&a.operand.kind===9}function i0t(a){return a.kind===10||a.kind===224&&a.operator===41&&a.operand.kind===10}function UGe(a){if((sa(a)||Ed(a)&&zrt(a.argumentExpression))&&Uh(a.expression))return!!(Iv(a).flags&1056)}function HGe(a){const _=a.initializer;if(_){const b=!(zrt(_)||UGe(_)||_.kind===112||_.kind===97||i0t(_));if((MN(a)||ff(a)&&Xwe(a))&&!a.type){if(b)return Po(_,w.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Po(_,w.Initializers_are_not_allowed_in_ambient_contexts)}}function b5(a){const _=x5(a),b=_&7;if(ld(a.name))switch(b){case 6:return Po(a,w._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Po(a,w._0_declarations_may_not_have_binding_patterns,"using")}if(a.parent.parent.kind!==249&&a.parent.parent.kind!==250){if(_&33554432)HGe(a);else if(!a.initializer){if(ld(a.name)&&!ld(a.parent))return Po(a,w.A_destructuring_declaration_must_have_an_initializer);switch(b){case 6:return Po(a,w._0_declarations_must_be_initialized,"await using");case 4:return Po(a,w._0_declarations_must_be_initialized,"using");case 2:return Po(a,w._0_declarations_must_be_initialized,"const")}}}if(a.exclamationToken&&(a.parent.parent.kind!==243||!a.type||a.initializer||_&33554432)){const C=a.initializer?w.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a.type?w.A_definite_assignment_assertion_is_not_permitted_in_this_context:w.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Po(a.exclamationToken,C)}return(ke<5||ns(a).impliedNodeFormat===1)&&ke!==4&&!(a.parent.parent.flags&33554432)&&il(a.parent.parent,1)&&JGe(a.name),!!b&&Grt(a.name)}function JGe(a){if(a.kind===80){if(ec(a)==="__esModule")return s0t("noEmit",a,w.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const _=a.elements;for(const b of _)if(!t0(b))return JGe(b.name)}return!1}function Grt(a){if(a.kind===80){if(a.escapedText==="let")return Po(a,w.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const _=a.elements;for(const b of _)t0(b)||Grt(b.name)}return!1}function dne(a){const _=a.declarations;if(v5(a.declarations))return!0;if(!a.declarations.length)return S5(a,_.pos,_.end-_.pos,w.Variable_declaration_list_cannot_be_empty);const b=a.flags&7;return(b===4||b===6)&&cpe(a.parent)?Po(a,b===4?w.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:w.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):b===6?Bze(a):!1}function $Ge(a){switch(a.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return $Ge(a.parent)}return!0}function o0t(a){if(!$Ge(a.parent)){const _=x5(a.declarationList)&7;if(_){const b=_===1?"let":_===2?"const":_===4?"using":_===6?"await using":ce.fail("Unknown BlockScope flag");return Po(a,w._0_declarations_can_only_be_declared_inside_a_block,b)}}}function a0t(a){const _=a.name.escapedText;switch(a.keywordToken){case 105:if(_!=="target")return Po(a.name,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,lf(a.name.escapedText),Nd(a.keywordToken),"target");break;case 102:if(_!=="meta")return Po(a.name,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,lf(a.name.escapedText),Nd(a.keywordToken),"meta");break}}function T5(a){return a.parseDiagnostics.length>0}function c1(a,_,...b){const C=ns(a);if(!T5(C)){const M=nC(C,a.pos);return no.add(Pp(C,M.start,M.length,_,...b)),!0}return!1}function S5(a,_,b,C,...M){const z=ns(a);return T5(z)?!1:(no.add(Pp(z,_,b,C,...M)),!0)}function s0t(a,_,b,...C){const M=ns(_);return T5(M)?!1:(w_(a,_,b,...C),!0)}function Po(a,_,...b){const C=ns(a);return T5(C)?!1:(no.add(kc(a,_,...b)),!0)}function jrt(a){const _=Rs(a)?Wie(a):void 0,b=a.typeParameters||_&&pp(_);if(b){const C=b.pos===b.end?b.pos:ep(ns(a).text,b.pos);return S5(a,C,b.end-C,w.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function c0t(a){const _=a.type||bA(a);if(_)return Po(_,w.Type_annotation_cannot_appear_on_a_constructor_declaration)}function pne(a){if(am(a.name)&&ys(a.name.expression)&&a.name.expression.operatorToken.kind===103)return Po(a.parent.members[0],w.A_mapped_type_may_not_declare_properties_or_methods);if(Jl(a.parent)){if(Wp(a.name)&&a.name.text==="constructor")return Po(a.name,w.Classes_may_not_have_a_field_named_constructor);if(zK(a.name,w.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ht<2&&Gu(a.name))return Po(a.name,w.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ht<2&&rb(a))return Po(a.name,w.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(rb(a)&&e_e(a.questionToken,w.An_accessor_property_cannot_be_declared_optional))return!0}else if(a.parent.kind===264){if(zK(a.name,w.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(ce.assertNode(a,Np),a.initializer)return Po(a.initializer,w.An_interface_property_cannot_have_an_initializer)}else if(e0(a.parent)){if(zK(a.name,w.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(ce.assertNode(a,Np),a.initializer)return Po(a.initializer,w.A_type_literal_property_cannot_have_an_initializer)}if(a.flags&33554432&&HGe(a),Os(a)&&a.exclamationToken&&(!Jl(a.parent)||!a.type||a.initializer||a.flags&33554432||e_(a)||fk(a))){const _=a.initializer?w.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a.type?w.A_definite_assignment_assertion_is_not_permitted_in_this_context:w.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Po(a.exclamationToken,_)}}function l0t(a){return a.kind===264||a.kind===265||a.kind===272||a.kind===271||a.kind===278||a.kind===277||a.kind===270||il(a,1027)?!1:c1(a,w.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function u0t(a){for(const _ of a.statements)if((dl(_)||_.kind===243)&&l0t(_))return!0;return!1}function k1e(a){return!!(a.flags&33554432)&&u0t(a)}function hM(a){if(a.flags&33554432){if(!ge(a).hasReportedStatementInAmbientContext&&(S_(a.parent)||Am(a.parent)))return ge(a).hasReportedStatementInAmbientContext=c1(a,w.An_implementation_cannot_be_declared_in_ambient_contexts);if(a.parent.kind===241||a.parent.kind===268||a.parent.kind===312){const b=ge(a.parent);if(!b.hasReportedStatementInAmbientContext)return b.hasReportedStatementInAmbientContext=c1(a,w.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Kwe(a){const _=Yv(a).indexOf(".")!==-1,b=a.numericLiteralFlags&16;_||b||+a.text<=9007199254740991||Hn(!1,kc(a,w.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Vrt(a){return!!(!(_I(a.parent)||yk(a.parent)&&_I(a.parent.parent))&&ht<7&&Po(a,w.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Urt(a,_,...b){const C=ns(a);if(!T5(C)){const M=nC(C,a.pos);return no.add(Pp(C,K1(M),0,_,...b)),!0}return!1}function f0t(){return Eg||(Eg=[],Ut.forEach((a,_)=>{cme.test(_)&&Eg.push(a)})),Eg}function _0t(a){var _;return a.isTypeOnly&&a.name&&a.namedBindings?Po(a,w.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):a.isTypeOnly&&((_=a.namedBindings)==null?void 0:_.kind)===275?Hrt(a.namedBindings):!1}function Hrt(a){return!!Ot(a.elements,_=>{if(_.isTypeOnly)return c1(_,_.kind===276?w.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:w.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function d0t(a){if(Le.verbatimModuleSyntax&&ke===1)return Po(a,w.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ke===5)return Po(a,w.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(a.typeArguments)return Po(a,w.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const _=a.arguments;if(ke!==99&&ke!==199&&ke!==100&&(v5(_),_.length>1)){const C=_[1];return Po(C,w.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(_.length===0||_.length>2)return Po(a,w.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const b=lr(_,ex);return b?Po(b,w.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Jrt(a,_){const b=ji(a);if(b&20&&_.flags&1048576)return lr(_.types,C=>{if(C.flags&524288){const M=b&ji(C);if(M&4)return a.target===C.target;if(M&16)return!!a.aliasSymbol&&a.aliasSymbol===C.aliasSymbol}return!1})}function p0t(a,_){if(ji(a)&128&&dM(_,iM))return lr(_.types,b=>!iM(b))}function $rt(a,_){let b=0;if(Ti(a,b).length>0||(b=1,Ti(a,b).length>0))return lr(_.types,M=>Ti(M,b).length>0)}function qrt(a,_){let b;if(!(a.flags&406978556)){let C=0;for(const M of _.types)if(!(M.flags&406978556)){const z=Dd([YP(a),YP(M)]);if(z.flags&4194304)return M;if(rA(z)||z.flags&1048576){const Z=z.flags&1048576?dp(z.types,rA):1;Z>=C&&(b=M,C=Z)}}}return b}function Krt(a){if(cy(a,67108864)){const _=D0(a,b=>!(b.flags&402784252));if(!(_.flags&131072))return _}return a}function Xrt(a,_,b){if(_.flags&1048576&&a.flags&2621440){const C=ZPe(_,a);if(C)return C;const M=Vp(a);if(M){const z=vbe(M,_);if(z){const Z=QWe(_,Vn(z,me=>[()=>Vo(me),me.escapedName]),b);if(Z!==_)return Z}}}}function m0t(a){const _=WN(a);return _||(am(a)&&Uh(a.expression)?nL(a.expression):void 0)}function E5(a){return Nc===a||(Nc=a,ha=Gg(a)),ha}function x5(a){return ho===a||(ho=a,di=qD(a)),di}function Xwe(a){const _=x5(a)&7;return _===2||_===4||_===6}}function Gst(t){return!Am(t)}function vm(t){return t.kind!==262&&t.kind!==174||!!t.body}function $d(t){switch(t.parent.kind){case 276:case 281:return An(t);default:return vP(t)}}function sme(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function oT(t){return!!(t.flags&1)}function ULe(t){return!!(t.flags&2)}function AHe(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:wc(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var r;return(r=t.getPackageJsonInfoCache)==null?void 0:r.call(t)},useCaseSensitiveFileNames:wc(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:r=>t.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>t.isSourceOfProjectReferenceRedirect(r),fileExists:r=>t.fileExists(r),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?r=>t.readFile(r):void 0}}var cme,Tae,A1,Sae,HLe,Eae,h$,xae,Aae,Cae,z2e,oj,Dae,_E,y$,CHe=G({"src/compiler/checker.ts"(){Ad(),bae(),NM(),cme=/^".+"$/,Tae="(anonymous)",A1=1,Sae=1,HLe=1,Eae=1,h$=(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))(h$||{}),xae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),Aae=(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.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",t[t.RestBindingElement=64]="RestBindingElement",t[t.TypeOnly=128]="TypeOnly",t))(Aae||{}),Cae=(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))(Cae||{}),z2e=bb(vm,Gst),oj=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),Dae=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"})(_E||(_E={})),y$=class MIt{constructor(r,s,l){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var m;s instanceof MIt;)s=s.inner;this.inner=s,this.moduleResolverHost=l,this.context=r,this.canTrackSymbol=!!((m=this.inner)!=null&&m.trackSymbol)}trackSymbol(r,s,l){var m;return(m=this.inner)!=null&&m.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(r,s,l)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var r;(r=this.inner)!=null&&r.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(r){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(r))}reportInaccessibleUniqueSymbolError(){var r;(r=this.inner)!=null&&r.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var r;(r=this.inner)!=null&&r.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(r){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(r))}reportTruncationError(){var r;(r=this.inner)!=null&&r.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(r,s){var l;(l=this.inner)!=null&&l.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(r,s))}trackExternalModuleSymbolOfImportTypeNode(r){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(r))}reportNonlocalAugmentation(r,s,l){var m;(m=this.inner)!=null&&m.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(r,s,l))}reportNonSerializableProperty(r){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(r))}reportImportTypeNodeResolutionModeOverride(){var r;(r=this.inner)!=null&&r.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function nr(t,r,s,l){if(t===void 0)return t;const m=r(t);let y;if(m!==void 0)return ls(m)?y=(l||jst)(m):y=m,ce.assertNode(y,s),y}function Fa(t,r,s,l,m){if(t===void 0)return t;const y=t.length;(l===void 0||l<0)&&(l=0),(m===void 0||m>y-l)&&(m=y-l);let T,D=-1,I=-1;l>0||my-l)&&(m=y-l),lme(t,r,s,l,m)}function lme(t,r,s,l,m){let y;const T=t.length;(l>0||m=2&&(m=Wa(m,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),m}function Wa(t,r){let s;for(let l=0;l{const T=lD,addSource:zt,setSourceContent:Wt,addName:tt,addMapping:cr,appendSourceMap:un,toJSON:Ut,toString:()=>JSON.stringify(Ut())};function zt(gr){y();const Cr=Oz(l,gr,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ei=W.get(Cr);return ei===void 0&&(ei=I.length,I.push(Cr),D.push(gr),W.set(Cr,ei)),T(),ei}function Wt(gr,Cr){if(y(),Cr!==null){for(O||(O=[]);O.lengthCr||Dt===Cr&&Ft>ei)}function cr(gr,Cr,ei,Gn,Ur,so){ce.assert(gr>=ht,"generatedLine cannot backtrack"),ce.assert(Cr>=0,"generatedCharacter cannot be negative"),ce.assert(ei===void 0||ei>=0,"sourceIndex cannot be negative"),ce.assert(Gn===void 0||Gn>=0,"sourceLine cannot be negative"),ce.assert(Ur===void 0||Ur>=0,"sourceCharacter cannot be negative"),y(),(Mn(gr,Cr)||kn(ei,Gn,Ur))&&(Or(),ht=gr,ke=Cr,ut=!1,lt=!1,Ye=!0),ei!==void 0&&Gn!==void 0&&Ur!==void 0&&(_t=ei,Dt=Gn,Ft=Ur,ut=!0,so!==void 0&&(it=so,lt=!0)),T()}function un(gr,Cr,ei,Gn,Ur,so){ce.assert(gr>=ht,"generatedLine cannot backtrack"),ce.assert(Cr>=0,"generatedCharacter cannot be negative"),y();const ho=[];let di;const Nc=kae(ei.mappings);for(const ha of Nc){if(so&&(ha.generatedLine>so.line||ha.generatedLine===so.line&&ha.generatedCharacter>so.character))break;if(Ur&&(ha.generatedLine=1024&&Xr()}function Or(){if(!(!Ye||!on())){if(y(),de0&&(oe+=String.fromCharCode.apply(void 0,te),te.length=0)}function Ut(){return Or(),Xr(),{version:3,file:r,sourceRoot:s,sources:I,names:V,mappings:oe,sourcesContent:O}}function In(gr){gr<0?gr=(-gr<<1)+1:gr=gr<<1;do{let Cr=gr&31;gr=gr>>5,gr>0&&(Cr=Cr|32),pn($Le(Cr))}while(gr>0)}}function Xo(t,r){return{getLineCount:()=>r.length,getLineText:s=>t.substring(r[s],r[s+1])}}function IHe(t){for(let r=t.getLineCount()-1;r>=0;r--){const s=t.getLineText(r),l=V2e.exec(s);if(l)return hU(l[1]);if(!s.match(U2e))break}}function kHe(t){return typeof t=="string"||t===null}function PHe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&ls(t.sources)&&jr(t.sources,As)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||ls(t.sourcesContent)&&jr(t.sourcesContent,kHe))&&(t.names===void 0||t.names===null||ls(t.names)&&jr(t.names,As))}function _me(t){try{const r=JSON.parse(t);if(PHe(r))return r}catch{}}function kae(t){let r=!1,s=0,l=0,m=0,y=0,T=0,D=0,I=0,W;return{get pos(){return s},get error(){return W},get state(){return O(!0,!0)},next(){for(;!r&&s=t.length)return ee("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const pt=j2e(t.charCodeAt(s));if(pt===-1)return ee("Invalid character in VLQ"),-1;Ne=(pt&32)!==0,Ve=Ve|(pt&31)<>1,Ve=-Ve):Ve=Ve>>1,Ve}}function JLe(t,r){return t===r||t.generatedLine===r.generatedLine&&t.generatedCharacter===r.generatedCharacter&&t.sourceIndex===r.sourceIndex&&t.sourceLine===r.sourceLine&&t.sourceCharacter===r.sourceCharacter&&t.nameIndex===r.nameIndex}function NHe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function $Le(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:ce.fail(`${t}: not a base64 value`)}function j2e(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 dme(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function qLe(t,r){return t.generatedPosition===r.generatedPosition&&t.sourceIndex===r.sourceIndex&&t.sourcePosition===r.sourcePosition}function KLe(t,r){return ce.assert(t.sourceIndex===r.sourceIndex),pf(t.sourcePosition,r.sourcePosition)}function Vst(t,r){return pf(t.generatedPosition,r.generatedPosition)}function Ust(t){return t.sourcePosition}function wHe(t){return t.generatedPosition}function XLe(t,r,s){const l=qc(s),m=r.sourceRoot?Su(r.sourceRoot,l):l,y=Su(r.file,l),T=t.getSourceFileLike(y),D=r.sources.map(Be=>Su(Be,m)),I=new Map(D.map((Be,Ve)=>[t.getCanonicalFileName(Be),Ve]));let W,O,V;return{getSourcePosition:Ne,getGeneratedPosition:ue};function ee(Be){const Ve=T!==void 0?xm(T,Be.generatedLine,Be.generatedCharacter,!0):-1;let pt,Le;if(NHe(Be)){const ht=t.getSourceFileLike(D[Be.sourceIndex]);pt=r.sources[Be.sourceIndex],Le=ht!==void 0?xm(ht,Be.sourceLine,Be.sourceCharacter,!0):-1}return{generatedPosition:Ve,source:pt,sourceIndex:Be.sourceIndex,sourcePosition:Le,nameIndex:Be.nameIndex}}function te(){if(W===void 0){const Be=kae(r.mappings),Ve=oc(Be,ee);Be.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${Be.error}`),W=Zn):W=Ve}return W}function oe(Be){if(V===void 0){const Ve=[];for(const pt of te()){if(!dme(pt))continue;let Le=Ve[pt.sourceIndex];Le||(Ve[pt.sourceIndex]=Le=[]),Le.push(pt)}V=Ve.map(pt=>OD(pt,KLe,qLe))}return V[Be]}function de(){if(O===void 0){const Be=[];for(const Ve of te())Be.push(Ve);O=OD(Be,Vst,qLe)}return O}function ue(Be){const Ve=I.get(t.getCanonicalFileName(Be.fileName));if(Ve===void 0)return Be;const pt=oe(Ve);if(!gt(pt))return Be;let Le=WD(pt,Be.pos,Ust,pf);Le<0&&(Le=~Le);const ht=pt[Le];return ht===void 0||ht.sourceIndex!==Ve?Be:{fileName:y,pos:ht.generatedPosition}}function Ne(Be){const Ve=de();if(!gt(Ve))return Be;let pt=WD(Ve,Be.pos,wHe,pf);pt<0&&(pt=~pt);const Le=Ve[pt];return Le===void 0||!dme(Le)?Be:{fileName:D[Le.sourceIndex],pos:Le.sourcePosition}}}var YLe,V2e,U2e,H2e,QLe=G({"src/compiler/sourcemap.ts"(){Ad(),NM(),YLe=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,V2e=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,U2e=/^\s*(\/\/[@#] .*)?$/,H2e={getSourcePosition:Of,getGeneratedPosition:Of}}});function e1(t){return t=Ic(t),t?Im(t):0}function pme(t){return!t||!y6(t)?!1:gt(t.elements,Pae)}function Pae(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function Vx(t,r){return s;function s(m){return m.kind===312?r(m):l(m)}function l(m){return t.factory.createBundle(Vn(m.sourceFiles,r),m.prepends)}}function RHe(t){return!!uH(t)}function Nb(t){if(uH(t))return!0;const r=t.importClause&&t.importClause.namedBindings;if(!r||!y6(r))return!1;let s=0;for(const l of r.elements)Pae(l)&&s++;return s>0&&s!==r.elements.length||!!(r.elements.length-s)&&D7(t)}function ZLe(t){return!Nb(t)&&(D7(t)||!!t.importClause&&y6(t.importClause.namedBindings)&&pme(t.importClause.namedBindings))}function J2e(t,r){const s=t.getEmitResolver(),l=t.getCompilerOptions(),m=[],y=new hme,T=[],D=new Map;let I,W=!1,O,V=!1,ee=!1,te=!1;for(const ue of r.statements)switch(ue.kind){case 272:m.push(ue),!ee&&Nb(ue)&&(ee=!0),!te&&ZLe(ue)&&(te=!0);break;case 271:ue.moduleReference.kind===283&&m.push(ue);break;case 278:if(ue.moduleSpecifier)if(!ue.exportClause)m.push(ue),V=!0;else if(m.push(ue),G0(ue.exportClause))de(ue);else{const Ne=ue.exportClause.name;D.get(ec(Ne))||(aj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne)),ee=!0}else de(ue);break;case 277:ue.isExportEquals&&!O&&(O=ue);break;case 243:if(il(ue,1))for(const Ne of ue.declarationList.declarations)I=_C(Ne,D,I,T);break;case 262:if(il(ue,1))if(il(ue,1024))W||(aj(T,e1(ue),t.factory.getDeclarationName(ue)),W=!0);else{const Ne=ue.name;D.get(ec(Ne))||(aj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne))}break;case 263:if(il(ue,1))if(il(ue,1024))W||(aj(T,e1(ue),t.factory.getDeclarationName(ue)),W=!0);else{const Ne=ue.name;Ne&&!D.get(ec(Ne))&&(aj(T,e1(ue),Ne),D.set(ec(Ne),!0),I=ur(I,Ne))}break}const oe=bpe(t.factory,t.getEmitHelperFactory(),r,l,V,ee,te);return oe&&m.unshift(oe),{externalImports:m,exportSpecifiers:y,exportEquals:O,hasExportStarsToExportValues:V,exportedBindings:T,exportedNames:I,externalHelpersImportDeclaration:oe};function de(ue){for(const Ne of uc(ue.exportClause,G0).elements)if(!D.get(ec(Ne.name))){const Be=Ne.propertyName||Ne.name;ue.moduleSpecifier||y.add(Be,Ne);const Ve=s.getReferencedImportDeclaration(Be)||s.getReferencedValueDeclaration(Be);Ve&&aj(T,e1(Ve),Ne.name),D.set(ec(Ne.name),!0),I=ur(I,Ne.name)}}}function _C(t,r,s,l){if(ld(t.name))for(const m of t.name.elements)t0(m)||(s=_C(m,r,s,l));else if(!Om(t.name)){const m=ec(t.name);r.get(m)||(r.set(m,!0),s=ur(s,t.name),T6(t.name)&&aj(l,e1(t),t.name))}return s}function aj(t,r,s){let l=t[r];return l?l.push(s):t[r]=l=[s],l}function D6(t){return sp(t)||t.kind===9||sE(t.kind)||An(t)}function aD(t){return!An(t)&&D6(t)}function sj(t){return t>=65&&t<=79}function wQ(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 cj(t){if(!Ou(t))return;const r=_g(t.expression);return y7(r)?r:void 0}function L3(t,r,s){for(let l=r;lMHe(l,r,s))}function RQ(t){return mme(t)||nu(t)}function v$(t){return gi(t.members,RQ)}function MHe(t,r,s){return Os(t)&&(!!t.initializer||!r)&&Ny(t)===s}function mme(t){return Os(t)&&Ny(t)}function b$(t){return t.kind===172&&t.initializer!==void 0}function LHe(t){return!e_(t)&&(c7(t)||rb(t))&&Gu(t.name)}function MQ(t){let r;if(t){const s=t.parameters,l=s.length>0&&oI(s[0]),m=l?1:0,y=l?s.length-1:s.length;for(let T=0;Tn4e(s.privateEnv,r))}var OW,hme,K2e=G({"src/compiler/transformers/utilities.ts"(){Ad(),OW=class o_e{constructor(){this._map=new Map}get size(){return this._map.size}has(r){return this._map.has(o_e.toKey(r))}get(r){return this._map.get(o_e.toKey(r))}set(r,s){return this._map.set(o_e.toKey(r),s),this}delete(r){var s;return((s=this._map)==null?void 0:s.delete(o_e.toKey(r)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(r){if(cR(r)||Om(r)){const s=r.emitNode.autoGenerate;if((s.flags&7)===4){const l=zG(r),m=uy(l)&&l!==r?o_e.toKey(l):`(generated@${Im(l)})`;return t4(!1,s.prefix,m,s.suffix,o_e.toKey)}else{const l=`(auto@${s.id})`;return t4(!1,s.prefix,l,s.suffix,o_e.toKey)}}return Gu(r)?ec(r).slice(1):ec(r)}},hme=class extends OW{add(t,r){let s=this.get(t);return s?s.push(r):this.set(t,s=[r]),s}remove(t,r){const s=this.get(t);s&&(IM(s,r),s.length||this.delete(t))}}}});function Ik(t,r,s,l,m,y){let T=t,D;if(Tg(t))for(D=t.right;vSe(t.left)||Vie(t.left);)if(Tg(D))T=t=D,D=t.right;else return ce.checkDefined(nr(D,r,Nr));let I;const W={context:s,level:l,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:O,emitBindingOrAssignment:V,createArrayBindingOrAssignmentPattern:ee=>WHe(s.factory,ee),createObjectBindingOrAssignmentPattern:ee=>Kst(s.factory,ee),createArrayBindingOrAssignmentElement:Xst,visitor:r};if(D&&(D=nr(D,r,Nr),ce.assert(D),An(D)&&yme(t,D.escapedText)||Rae(t)?D=_j(W,D,!1,T):m?D=_j(W,D,!0,T):rh(t)&&(T=D)),fj(W,t,D,T,Tg(t)),D&&m){if(!gt(I))return D;I.push(D)}return s.factory.inlineExpressions(I)||s.factory.createOmittedExpression();function O(ee){I=ur(I,ee)}function V(ee,te,oe,de){ce.assertNode(ee,y?An:Nr);const ue=y?y(ee,te,oe):vr(s.factory.createAssignment(ce.checkDefined(nr(ee,r,Nr)),te),oe);ue.original=de,O(ue)}}function yme(t,r){const s=oD(t);return p9(s)?uj(s,r):An(s)?s.escapedText===r:!1}function uj(t,r){const s=gI(t);for(const l of s)if(yme(l,r))return!0;return!1}function Rae(t){const r=FEe(t);if(r&&am(r)&&!fP(r.expression))return!0;const s=oD(t);return!!s&&p9(s)&&Hst(s)}function Hst(t){return!!Ot(gI(t),Rae)}function yI(t,r,s,l,m,y=!1,T){let D;const I=[],W=[],O={context:s,level:l,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:y,emitExpression:V,emitBindingOrAssignment:ee,createArrayBindingOrAssignmentPattern:te=>$st(s.factory,te),createObjectBindingOrAssignmentPattern:te=>qst(s.factory,te),createArrayBindingOrAssignmentElement:te=>dj(s.factory,te),visitor:r};if(ff(t)){let te=C3(t);te&&(An(te)&&yme(t,te.escapedText)||Rae(t))&&(te=_j(O,ce.checkDefined(nr(te,O.visitor,Nr)),!1,te),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,te))}if(fj(O,t,m,t,T),D){const te=s.factory.createTempVariable(void 0);if(y){const oe=s.factory.inlineExpressions(D);D=void 0,ee(te,oe,void 0,void 0)}else{s.hoistVariableDeclaration(te);const oe=yl(I);oe.pendingExpressions=ur(oe.pendingExpressions,s.factory.createAssignment(te,oe.value)),Oi(oe.pendingExpressions,D),oe.value=te}}for(const{pendingExpressions:te,name:oe,value:de,location:ue,original:Ne}of I){const Be=s.factory.createVariableDeclaration(oe,void 0,void 0,te?s.factory.inlineExpressions(ur(te,de)):de);Be.original=Ne,vr(Be,ue),W.push(Be)}return W;function V(te){D=ur(D,te)}function ee(te,oe,de,ue){ce.assertNode(te,f9),D&&(oe=s.factory.inlineExpressions(ur(D,oe)),D=void 0),I.push({pendingExpressions:D,name:te,value:oe,location:de,original:ue})}}function fj(t,r,s,l,m){const y=oD(r);if(!m){const T=nr(C3(r),t.visitor,Nr);T?s?(s=pF(t,s,T,l),!aD(T)&&p9(y)&&(s=_j(t,s,!0,l))):s=T:s||(s=t.context.factory.createVoidZero())}ide(y)?Jst(t,r,y,s,l):eie(y)?r4e(t,r,y,s,l):t.emitBindingOrAssignment(y,s,l,r)}function Jst(t,r,s,l,m){const y=gI(s),T=y.length;if(T!==1){const W=!d9(r)||T!==0;l=_j(t,l,W,m)}let D,I;for(let W=0;W=1&&!(O.transformFlags&98304)&&!(oD(O).transformFlags&98304)&&!am(V))D=ur(D,nr(O,t.visitor,rde));else{D&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(D),l,m,s),D=void 0);const ee=LQ(t,l,V);am(V)&&(I=ur(I,ee.argumentExpression)),fj(t,O,ee,O)}}}D&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(D),l,m,s)}function r4e(t,r,s,l,m){const y=gI(s),T=y.length;if(t.level<1&&t.downlevelIteration)l=_j(t,vr(t.context.getEmitHelperFactory().createReadHelper(l,T>0&&OEe(y[T-1])?void 0:T),m),!1,m);else if(T!==1&&(t.level<1||T===0)||jr(y,t0)){const W=!d9(r)||T!==0;l=_j(t,l,W,m)}let D,I;for(let W=0;W=1)if(O.transformFlags&65536||t.hasTransformedPriorElement&&!FHe(O)){t.hasTransformedPriorElement=!0;const V=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(V),I=ur(I,[V,O]),D=ur(D,t.createArrayBindingOrAssignmentElement(V))}else D=ur(D,O);else{if(t0(O))continue;if(OEe(O)){if(W===T-1){const V=t.context.factory.createArraySliceCall(l,W);fj(t,O,V,O)}}else{const V=t.context.factory.createElementAccessExpression(l,W);fj(t,O,V,O)}}}if(D&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(D),l,m,s),I)for(const[W,O]of I)fj(t,O,W,O)}function FHe(t){const r=oD(t);if(!r||t0(r))return!0;const s=FEe(t);if(s&&!yA(s))return!1;const l=C3(t);return l&&!aD(l)?!1:p9(r)?jr(gI(r),FHe):An(r)}function pF(t,r,s,l){return r=_j(t,r,!0,l),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(r,"undefined"),void 0,s,void 0,r)}function LQ(t,r,s){const{factory:l}=t.context;if(am(s)){const m=_j(t,ce.checkDefined(nr(s.expression,t.visitor,Nr)),!1,s);return t.context.factory.createElementAccessExpression(r,m)}else if(Qv(s)){const m=l.cloneNode(s);return t.context.factory.createElementAccessExpression(r,m)}else{const m=t.context.factory.createIdentifier(ec(s));return t.context.factory.createPropertyAccessExpression(r,m)}}function _j(t,r,s,l){if(An(r)&&s)return r;{const m=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(m),t.emitExpression(vr(t.context.factory.createAssignment(m,r),l))):t.emitBindingOrAssignment(m,r,l,void 0),m}}function $st(t,r){return ce.assertEachNode(r,qX),t.createArrayBindingPattern(r)}function WHe(t,r){return ce.assertEachNode(r,uR),t.createArrayLiteralExpression(Vn(r,t.converters.convertToArrayAssignmentElement))}function qst(t,r){return ce.assertEachNode(r,ym),t.createObjectBindingPattern(r)}function Kst(t,r){return ce.assertEachNode(r,KX),t.createObjectLiteralExpression(Vn(r,t.converters.convertToObjectAssignmentElement))}function dj(t,r){return t.createBindingElement(void 0,void 0,r)}function Xst(t){return t}var i4e,Yst=G({"src/compiler/transformers/destructuring.ts"(){Ad(),i4e=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(i4e||{})}});function BHe(t,r,s=t.createThis()){const l=t.createAssignment(r,s),m=t.createExpressionStatement(l),y=t.createBlock([m],!1),T=t.createClassStaticBlockDeclaration(y);return he(T).classThis=r,T}function Mae(t){var r;if(!nu(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Ou(s)&&wy(s.expression,!0)&&An(s.expression.left)&&((r=t.emitNode)==null?void 0:r.classThis)===s.expression.left&&s.expression.right.kind===110}function o4e(t){var r;return!!((r=t.emitNode)!=null&&r.classThis)&>(t.members,Mae)}function vme(t,r,s,l){if(o4e(r))return r;const m=BHe(t,s,l);r.name&&Sp(m.body.statements[0],r.name);const y=t.createNodeArray([m,...r.members]);vr(y,r.members);const T=Kc(r)?t.updateClassDeclaration(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,y):t.updateClassExpression(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,y);return he(T).classThis=s,T}var Qst=G({"src/compiler/transformers/classThis.ts"(){Ad()}});function T$(t,r,s){const l=Ic(rv(s));return(Kc(l)||b0(l))&&!l.name&&il(l,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(r)}function S$(t,r,s){const{factory:l}=t;if(s!==void 0)return{assignedName:l.createStringLiteral(s),name:r};if(yA(r)||Gu(r))return{assignedName:l.createStringLiteralFromNode(r),name:r};if(yA(r.expression)&&!An(r.expression))return{assignedName:l.createStringLiteralFromNode(r.expression),name:r};const m=l.getGeneratedNameForNode(r);t.hoistVariableDeclaration(m);const y=t.getEmitHelperFactory().createPropKeyHelper(r.expression),T=l.createAssignment(m,y),D=l.updateComputedPropertyName(r,T);return{assignedName:m,name:D}}function bme(t,r,s=t.factory.createThis()){const{factory:l}=t,m=t.getEmitHelperFactory().createSetFunctionNameHelper(s,r),y=l.createExpressionStatement(m),T=l.createBlock([y],!1),D=l.createClassStaticBlockDeclaration(T);return he(D).assignedName=r,D}function FW(t){var r;if(!nu(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Ou(s)&&cJ(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((r=t.emitNode)==null?void 0:r.assignedName)}function X2e(t){var r;return!!((r=t.emitNode)!=null&&r.assignedName)&>(t.members,FW)}function pj(t){return!!t.name||X2e(t)}function Tme(t,r,s,l){if(X2e(r))return r;const{factory:m}=t,y=bme(t,s,l);r.name&&Sp(y.body.statements[0],r.name);const T=Ho(r.members,Mae)+1,D=r.members.slice(0,T),I=r.members.slice(T),W=m.createNodeArray([...D,y,...I]);return vr(W,r.members),r=Kc(r)?m.updateClassDeclaration(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,W):m.updateClassExpression(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,W),he(r).assignedName=s,r}function WW(t,r,s,l){if(l&&Wp(s)&&Sie(s))return r;const{factory:m}=t,y=rv(r),T=B0(y)?uc(Tme(t,y,s),B0):t.getEmitHelperFactory().createSetFunctionNameHelper(y,s);return m.restoreOuterExpressions(r,T)}function mj(t,r,s,l){const{factory:m}=t,{assignedName:y,name:T}=S$(t,r.name,l),D=WW(t,r.initializer,y,s);return m.updatePropertyAssignment(r,T,D)}function Sme(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.objectAssignmentInitializer),T=WW(t,r.objectAssignmentInitializer,y,s);return m.updateShorthandPropertyAssignment(r,r.name,T)}function Y2e(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateVariableDeclaration(r,r.name,r.exclamationToken,r.type,T)}function Eme(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateParameterDeclaration(r,r.modifiers,r.dotDotDotToken,r.name,r.questionToken,r.type,T)}function E$(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.name,r.initializer),T=WW(t,r.initializer,y,s);return m.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,T)}function Zst(t,r,s,l){const{factory:m}=t,{assignedName:y,name:T}=S$(t,r.name,l),D=WW(t,r.initializer,y,s);return m.updatePropertyDeclaration(r,r.modifiers,T,r.questionToken??r.exclamationToken,r.type,D)}function ect(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):T$(m,r.left,r.right),T=WW(t,r.right,y,s);return m.updateBinaryExpression(r,r.left,r.operatorToken,T)}function tct(t,r,s,l){const{factory:m}=t,y=l!==void 0?m.createStringLiteral(l):m.createStringLiteral(r.isExportEquals?"":"default"),T=WW(t,r.expression,y,s);return m.updateExportAssignment(r,r.modifiers,T)}function ax(t,r,s,l){switch(r.kind){case 303:return mj(t,r,s,l);case 304:return Sme(t,r,s,l);case 260:return Y2e(t,r,s,l);case 169:return Eme(t,r,s,l);case 208:return E$(t,r,s,l);case 172:return Zst(t,r,s,l);case 226:return ect(t,r,s,l);case 277:return tct(t,r,s,l)}}var nct=G({"src/compiler/transformers/namedEvaluation.ts"(){Ad()}});function a4e(t,r,s,l,m,y){const T=nr(r.tag,s,Nr);ce.assert(T);const D=[void 0],I=[],W=[],O=r.template;if(y===0&&!SH(O))return ia(r,s,t);const{factory:V}=t;if(Sd(O))I.push(s4e(V,O)),W.push(c4e(V,O,l));else{I.push(s4e(V,O.head)),W.push(c4e(V,O.head,l));for(const te of O.templateSpans)I.push(s4e(V,te.literal)),W.push(c4e(V,te.literal,l)),D.push(ce.checkDefined(nr(te.expression,s,Nr)))}const ee=t.getEmitHelperFactory().createTemplateObjectHelper(V.createArrayLiteralExpression(I),V.createArrayLiteralExpression(W));if(Wv(l)){const te=V.createUniqueName("templateObject");m(te),D[0]=V.createLogicalOr(te,V.createAssignment(te,ee))}else D[0]=ee;return V.createCallExpression(T,void 0,D)}function s4e(t,r){return r.templateFlags&26656?t.createVoidZero():t.createStringLiteral(r.text)}function c4e(t,r,s){let l=r.rawText;if(l===void 0){ce.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),l=wd(s,r);const m=r.kind===15||r.kind===18;l=l.substring(1,l.length-(m?1:2))}return l=l.replace(/\r\n?/g,` +`),vr(t.createStringLiteral(l),r)}var mE,rct=G({"src/compiler/transformers/taggedTemplate.ts"(){Ad(),mE=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(mE||{})}});function xme(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,resumeLexicalEnvironment:m,endLexicalEnvironment:y,hoistVariableDeclaration:T}=t,D=t.getEmitResolver(),I=t.getCompilerOptions(),W=iu(I),O=Zp(I),V=!!I.experimentalDecorators,ee=I.emitDecoratorMetadata?GHe(t):void 0,te=t.onEmitNode,oe=t.onSubstituteNode;t.onEmitNode=fx,t.onSubstituteNode=rd,t.enableSubstitution(211),t.enableSubstitution(212);let de,ue,Ne,Be,Ve,pt,Le,ht;return ke;function ke(_e){return _e.kind===313?_t(_e):Dt(_e)}function _t(_e){return r.createBundle(_e.sourceFiles.map(Dt),Qo(_e.prepends,vn=>vn.kind===315?pEe(vn,"js"):vn))}function Dt(_e){if(_e.isDeclarationFile)return _e;de=_e;const vn=Ft(_e,In);return JN(vn,t.readEmitHelpers()),de=void 0,vn}function Ft(_e,vn){const Qn=Be,hi=Ve,pa=pt;it(_e);const Zc=vn(_e);return Be!==Qn&&(Ve=hi),Be=Qn,pt=pa,Zc}function it(_e){switch(_e.kind){case 312:case 269:case 268:case 241:Be=_e,Ve=void 0;break;case 263:case 262:if(il(_e,2))break;_e.name?Zt(_e):ce.assert(_e.kind===263||il(_e,1024));break}}function Ye(_e){return Ft(_e,ut)}function ut(_e){return _e.transformFlags&1?Ut(_e):_e}function lt(_e){return Ft(_e,zt)}function zt(_e){switch(_e.kind){case 272:case 271:case 277:case 278:return Wt(_e);default:return ut(_e)}}function Wt(_e){if(Il(_e)!==_e)return _e.transformFlags&1?ia(_e,Ye,t):_e;switch(_e.kind){case 272:return zo(_e);case 271:return x_(_e);case 277:return vs(_e);case 278:return ou(_e);default:ce.fail("Unhandled ellided statement")}}function tt(_e){return Ft(_e,Mn)}function Mn(_e){if(!(_e.kind===278||_e.kind===272||_e.kind===273||_e.kind===271&&_e.moduleReference.kind===283))return _e.transformFlags&1||il(_e,1)?Ut(_e):_e}function kn(_e){return vn=>Ft(vn,Qn=>cr(Qn,_e))}function cr(_e,vn){switch(_e.kind){case 176:return $a(_e);case 172:return ta(_e,vn);case 177:return sl(_e,vn);case 178:return vc(_e,vn);case 174:return To(_e,vn);case 175:return ia(_e,Ye,t);case 240:return _e;case 181:return;default:return ce.failBadSyntaxKind(_e)}}function un(_e){return vn=>Ft(vn,Qn=>on(Qn,_e))}function on(_e,vn){switch(_e.kind){case 303:case 304:case 305:return Ye(_e);case 177:return sl(_e,vn);case 178:return vc(_e,vn);case 174:return To(_e,vn);default:return ce.failBadSyntaxKind(_e)}}function pn(_e){return Qf(_e)?void 0:Ye(_e)}function Or(_e){return bd(_e)?void 0:Ye(_e)}function Xr(_e){if(!Qf(_e)&&!(U9(_e.kind)&117086)&&!(ue&&_e.kind===95))return _e}function Ut(_e){if(uf(_e)&&il(_e,2))return r.createNotEmittedStatement(_e);switch(_e.kind){case 95:case 90:return ue?void 0:_e;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 r.createNotEmittedStatement(_e);case 270:return;case 264:return r.createNotEmittedStatement(_e);case 263:return Ur(_e);case 231:return so(_e);case 298:return mc(_e);case 233:return Ea(_e);case 210:return gr(_e);case 176:case 172:case 174:case 177:case 178:case 175:return ce.fail("Class and object literal elements must be visited with their respective visitors");case 262:return er(_e);case 218:return Jr(_e);case 219:return li(_e);case 169:return Ir(_e);case 217:return gn(_e);case 216:case 234:return qr(_e);case 238:return _r(_e);case 213:return Cn(_e);case 214:return oi(_e);case 215:return Qr(_e);case 235:return mt(_e);case 266:return xu(_e);case 243:return _o(_e);case 260:return Kn(_e);case 267:return rr(_e);case 271:return x_(_e);case 285:return co(_e);case 286:return es(_e);default:return ia(_e,Ye,t)}}function In(_e){const vn=hv(I,"alwaysStrict")&&!(Wv(_e)&&O>=5)&&!Py(_e);return r.updateSourceFile(_e,G2e(_e.statements,lt,t,0,vn))}function gr(_e){return r.updateObjectLiteralExpression(_e,Fa(_e.properties,un(_e),KD))}function Cr(_e){let vn=0;gt(lj(_e,!0,!0))&&(vn|=1);const Qn=hA(_e);return Qn&&rv(Qn.expression).kind!==106&&(vn|=64),Mx(V,_e)&&(vn|=2),oH(V,_e)&&(vn|=4),q_(_e)?vn|=8:c_(_e)?vn|=32:U0(_e)&&(vn|=16),vn}function ei(_e){return!!(_e.transformFlags&8192)}function Gn(_e){return Fx(_e)||gt(_e.typeParameters)||gt(_e.heritageClauses,ei)||gt(_e.members,ei)}function Ur(_e){const vn=Cr(_e),Qn=W<=1&&!!(vn&7);if(!Gn(_e)&&!Mx(V,_e)&&!q_(_e))return r.updateClassDeclaration(_e,Fa(_e.modifiers,Xr,bd),_e.name,void 0,Fa(_e.heritageClauses,Ye,rT),Fa(_e.members,kn(_e),Mv));Qn&&t.startLexicalEnvironment();const hi=Qn||vn&8;let pa=hi?Fa(_e.modifiers,Or,pc):Fa(_e.modifiers,Ye,pc);vn&2&&(pa=di(pa,_e));const ka=hi&&!_e.name||vn&4||vn&1?_e.name??r.getGeneratedNameForNode(_e):_e.name,bc=r.updateClassDeclaration(_e,pa,ka,void 0,Fa(_e.heritageClauses,Ye,rT),ho(_e));let gu=Tp(_e);vn&1&&(gu|=64),Sa(bc,gu);let yu;if(Qn){const Xm=[bc],Lg=Hie(ep(de.text,_e.members.end),20),av=r.getInternalName(_e),Fh=r.createPartiallyEmittedExpression(av);l6(Fh,Lg.end),Sa(Fh,3072);const J0=r.createReturnStatement(Fh);u3(J0,Lg.pos),Sa(J0,3840),Xm.push(J0),v2(Xm,t.endLexicalEnvironment());const Eg=r.createImmediatelyInvokedArrowFunction(Xm);aW(Eg,1);const Sv=r.createVariableDeclaration(r.getLocalName(_e,!1,!1),void 0,void 0,Eg);tc(Sv,_e);const jT=r.createVariableStatement(void 0,r.createVariableDeclarationList([Sv],1));tc(jT,_e),Ry(jT,_e),Sp(jT,$E(_e)),x1(jT),yu=jT}else yu=bc;if(hi){if(vn&8)return[yu,Kd(_e)];if(vn&32)return[yu,r.createExportDefault(r.getLocalName(_e,!1,!0))];if(vn&16)return[yu,r.createExternalModuleExport(r.getDeclarationName(_e,!1,!0))]}return yu}function so(_e){let vn=Fa(_e.modifiers,Or,pc);return Mx(V,_e)&&(vn=di(vn,_e)),r.updateClassExpression(_e,vn,_e.name,void 0,Fa(_e.heritageClauses,Ye,rT),ho(_e))}function ho(_e){const vn=Fa(_e.members,kn(_e),Mv);let Qn;const hi=E2(_e),pa=hi&&gi(hi.parameters,Zc=>Eb(Zc,hi));if(pa)for(const Zc of pa){const ka=r.createPropertyDeclaration(void 0,Zc.name,void 0,void 0,void 0);tc(ka,Zc),Qn=ur(Qn,ka)}return Qn?(Qn=Oi(Qn,vn),vr(r.createNodeArray(Qn),_e.members)):vn}function di(_e,vn){const Qn=ha(vn,vn);if(gt(Qn)){const hi=[];Oi(hi,Yn(_e,Epe)),Oi(hi,gi(_e,Qf)),Oi(hi,Qn),Oi(hi,gi(ME(_e,Epe),bd)),_e=vr(r.createNodeArray(hi),_e)}return _e}function Nc(_e,vn,Qn){if(Jl(Qn)&&iG(V,vn,Qn)){const hi=ha(vn,Qn);if(gt(hi)){const pa=[];Oi(pa,gi(_e,Qf)),Oi(pa,hi),Oi(pa,gi(_e,bd)),_e=vr(r.createNodeArray(pa),_e)}}return _e}function ha(_e,vn){if(V)return Q2e?Gs(_e,vn):ro(_e,vn)}function ro(_e,vn){if(ee){let Qn;if(Oc(_e)){const hi=s().createMetadataHelper("design:type",ee.serializeTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e));Qn=ur(Qn,r.createDecorator(hi))}if(Ku(_e)){const hi=s().createMetadataHelper("design:paramtypes",ee.serializeParameterTypesOfNode({currentLexicalScope:Be,currentNameScope:vn},_e,vn));Qn=ur(Qn,r.createDecorator(hi))}if(_u(_e)){const hi=s().createMetadataHelper("design:returntype",ee.serializeReturnTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e));Qn=ur(Qn,r.createDecorator(hi))}return Qn}}function Gs(_e,vn){if(ee){let Qn;if(Oc(_e)){const hi=r.createPropertyAssignment("type",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e)));Qn=ur(Qn,hi)}if(Ku(_e)){const hi=r.createPropertyAssignment("paramTypes",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeParameterTypesOfNode({currentLexicalScope:Be,currentNameScope:vn},_e,vn)));Qn=ur(Qn,hi)}if(_u(_e)){const hi=r.createPropertyAssignment("returnType",r.createArrowFunction(void 0,void 0,[],void 0,r.createToken(39),ee.serializeReturnTypeOfNode({currentLexicalScope:Be,currentNameScope:vn},_e)));Qn=ur(Qn,hi)}if(Qn){const hi=s().createMetadataHelper("design:typeinfo",r.createObjectLiteralExpression(Qn,!0));return[r.createDecorator(hi)]}}}function Oc(_e){const vn=_e.kind;return vn===174||vn===177||vn===178||vn===172}function _u(_e){return _e.kind===174}function Ku(_e){switch(_e.kind){case 263:case 231:return E2(_e)!==void 0;case 174:case 177:case 178:return!0}return!1}function al(_e,vn){const Qn=_e.name;return Gu(Qn)?r.createIdentifier(""):am(Qn)?vn&&!aD(Qn.expression)?r.getGeneratedNameForNode(Qn):Qn.expression:An(Qn)?r.createStringLiteral(ec(Qn)):r.cloneNode(Qn)}function Rr(_e){const vn=_e.name;if(am(vn)&&(!Ny(_e)&&pt||Fx(_e)&&V)){const Qn=nr(vn.expression,Ye,Nr);ce.assert(Qn);const hi=pA(Qn);if(!aD(hi)){const pa=r.getGeneratedNameForNode(vn);return T(pa),r.updateComputedPropertyName(vn,r.createAssignment(pa,Qn))}}return ce.checkDefined(nr(vn,Ye,fy))}function mc(_e){if(_e.token!==119)return ia(_e,Ye,t)}function Ea(_e){return r.updateExpressionWithTypeArguments(_e,ce.checkDefined(nr(_e.expression,Ye,FE)),void 0)}function Fi(_e){return!Um(_e.body)}function ta(_e,vn){const Qn=_e.flags&33554432||il(_e,256);if(Qn&&!(V&&Fx(_e)))return;let hi=Jl(vn)?Qn?Fa(_e.modifiers,Or,pc):Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return hi=Nc(hi,_e,vn),Qn?r.updatePropertyDeclaration(_e,Hi(hi,r.createModifiersFromModifierFlags(2)),ce.checkDefined(nr(_e.name,Ye,fy)),void 0,void 0,void 0):r.updatePropertyDeclaration(_e,hi,Rr(_e),void 0,void 0,nr(_e.initializer,Ye,Nr))}function $a(_e){if(Fi(_e))return r.updateConstructorDeclaration(_e,void 0,Bn(_e.parameters,Ye,t),Xu(_e.body,_e))}function jc(_e,vn,Qn,hi,pa,Zc){const ka=hi[pa],bc=vn[ka];if(Oi(_e,Fa(vn,Ye,uf,Qn,ka-Qn)),AR(bc)){const gu=[];jc(gu,bc.tryBlock.statements,0,hi,pa+1,Zc);const yu=r.createNodeArray(gu);vr(yu,bc.tryBlock.statements),_e.push(r.updateTryStatement(bc,r.updateBlock(bc.tryBlock,gu),nr(bc.catchClause,Ye,CP),nr(bc.finallyBlock,Ye,E_)))}else Oi(_e,Fa(vn,Ye,uf,ka,1)),Oi(_e,Zc);Oi(_e,Fa(vn,Ye,uf,ka+1))}function Xu(_e,vn){const Qn=vn&&gi(vn.parameters,gu=>Eb(gu,vn));if(!gt(Qn))return sm(_e,Ye,t);let hi=[];m();const pa=r.copyPrologue(_e.statements,hi,!1,Ye),Zc=IA(_e.statements,pa),ka=Qo(Qn,Lo);Zc.length?jc(hi,_e.statements,pa,Zc,0,ka):(Oi(hi,ka),Oi(hi,Fa(_e.statements,Ye,uf,pa))),hi=r.mergeLexicalEnvironment(hi,y());const bc=r.createBlock(vr(r.createNodeArray(hi),_e.statements),!0);return vr(bc,_e),tc(bc,_e),bc}function Lo(_e){const vn=_e.name;if(!An(vn))return;const Qn=kl(vr(r.cloneNode(vn),vn),vn.parent);Sa(Qn,3168);const hi=kl(vr(r.cloneNode(vn),vn),vn.parent);return Sa(hi,3072),x1(Zde(vr(tc(r.createExpressionStatement(r.createAssignment(vr(r.createPropertyAccessExpression(r.createThis(),Qn),_e.name),hi)),_e),TA(_e,-1))))}function To(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Fi(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateMethodDeclaration(_e,Qn,_e.asteriskToken,Rr(_e),void 0,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t))}function Aa(_e){return!(Um(_e.body)&&il(_e,256))}function sl(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Aa(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateGetAccessorDeclaration(_e,Qn,Rr(_e),Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([]))}function vc(_e,vn){if(!(_e.transformFlags&1))return _e;if(!Aa(_e))return;let Qn=Jl(vn)?Fa(_e.modifiers,Ye,pc):Fa(_e.modifiers,pn,pc);return Qn=Nc(Qn,_e,vn),r.updateSetAccessorDeclaration(_e,Qn,Rr(_e),Bn(_e.parameters,Ye,t),sm(_e.body,Ye,t)||r.createBlock([]))}function er(_e){if(!Fi(_e))return r.createNotEmittedStatement(_e);const vn=r.updateFunctionDeclaration(_e,Fa(_e.modifiers,Xr,bd),_e.asteriskToken,_e.name,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([]));if(q_(_e)){const Qn=[vn];return iy(Qn,_e),Qn}return vn}function Jr(_e){return Fi(_e)?r.updateFunctionExpression(_e,Fa(_e.modifiers,Xr,bd),_e.asteriskToken,_e.name,void 0,Bn(_e.parameters,Ye,t),void 0,sm(_e.body,Ye,t)||r.createBlock([])):r.createOmittedExpression()}function li(_e){return r.updateArrowFunction(_e,Fa(_e.modifiers,Xr,bd),void 0,Bn(_e.parameters,Ye,t),void 0,_e.equalsGreaterThanToken,sm(_e.body,Ye,t))}function Ir(_e){if(oI(_e))return;const vn=r.updateParameterDeclaration(_e,Fa(_e.modifiers,Qn=>Qf(Qn)?Ye(Qn):void 0,pc),_e.dotDotDotToken,ce.checkDefined(nr(_e.name,Ye,f9)),void 0,void 0,nr(_e.initializer,Ye,Nr));return vn!==_e&&(Ry(vn,_e),vr(vn,Db(_e)),Sp(vn,Db(_e)),Sa(vn.name,64)),vn}function _o(_e){if(q_(_e)){const vn=n3(_e.declarationList);return vn.length===0?void 0:vr(r.createExpressionStatement(r.inlineExpressions(Vn(vn,xt))),_e)}else return ia(_e,Ye,t)}function xt(_e){const vn=_e.name;return ld(vn)?Ik(_e,Ye,t,0,!1,jg):vr(r.createAssignment(zv(vn),ce.checkDefined(nr(_e.initializer,Ye,Nr))),_e)}function Kn(_e){const vn=r.updateVariableDeclaration(_e,ce.checkDefined(nr(_e.name,Ye,f9)),void 0,void 0,nr(_e.initializer,Ye,Nr));return _e.type&&npe(vn.name,_e.type),vn}function gn(_e){const vn=rv(_e.expression,-7);if(_7(vn)){const Qn=nr(_e.expression,Ye,Nr);return ce.assert(Qn),r.createPartiallyEmittedExpression(Qn,_e)}return ia(_e,Ye,t)}function qr(_e){const vn=nr(_e.expression,Ye,Nr);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function mt(_e){const vn=nr(_e.expression,Ye,FE);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function _r(_e){const vn=nr(_e.expression,Ye,Nr);return ce.assert(vn),r.createPartiallyEmittedExpression(vn,_e)}function Cn(_e){return r.updateCallExpression(_e,ce.checkDefined(nr(_e.expression,Ye,Nr)),void 0,Fa(_e.arguments,Ye,Nr))}function oi(_e){return r.updateNewExpression(_e,ce.checkDefined(nr(_e.expression,Ye,Nr)),void 0,Fa(_e.arguments,Ye,Nr))}function Qr(_e){return r.updateTaggedTemplateExpression(_e,ce.checkDefined(nr(_e.tag,Ye,Nr)),void 0,ce.checkDefined(nr(_e.template,Ye,m9)))}function co(_e){return r.updateJsxSelfClosingElement(_e,ce.checkDefined(nr(_e.tagName,Ye,JU)),void 0,ce.checkDefined(nr(_e.attributes,Ye,iD)))}function es(_e){return r.updateJsxOpeningElement(_e,ce.checkDefined(nr(_e.tagName,Ye,JU)),void 0,ce.checkDefined(nr(_e.attributes,Ye,iD)))}function Ui(_e){return!gP(_e)||gk(I)}function xu(_e){if(!Ui(_e))return r.createNotEmittedStatement(_e);const vn=[];let Qn=4;const hi=Un(vn,_e);hi&&(O!==4||Be!==de)&&(Qn|=1024);const pa=m_(_e),Zc=Yu(_e),ka=q_(_e)?r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0):r.getDeclarationName(_e,!1,!0);let bc=r.createLogicalOr(ka,r.createAssignment(ka,r.createObjectLiteralExpression()));if(q_(_e)){const yu=r.getLocalName(_e,!1,!0);bc=r.createAssignment(yu,bc)}const gu=r.createExpressionStatement(r.createCallExpression(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,pa)],void 0,We(_e,Zc)),void 0,[bc]));return tc(gu,_e),hi&&(MS(gu,void 0),uI(gu,void 0)),vr(gu,_e),cI(gu,Qn),vn.push(gu),vn}function We(_e,vn){const Qn=Ne;Ne=vn;const hi=[];l();const pa=Vn(_e.members,Re);return v2(hi,y()),Oi(hi,pa),Ne=Qn,r.createBlock(vr(r.createNodeArray(hi),_e.members),!0)}function Re(_e){const vn=al(_e,!1),Qn=wt(_e),hi=r.createAssignment(r.createElementAccessExpression(Ne,vn),Qn),pa=Qn.kind===11?hi:r.createAssignment(r.createElementAccessExpression(Ne,hi),vn);return vr(r.createExpressionStatement(vr(pa,_e)),_e)}function wt(_e){const vn=D.getConstantValue(_e);return vn!==void 0?typeof vn=="string"?r.createStringLiteral(vn):r.createNumericLiteral(vn):(Tv(),_e.initializer?ce.checkDefined(nr(_e.initializer,Ye,Nr)):r.createVoidZero())}function $e(_e){const vn=Il(_e,xp);return vn?l4(vn,gk(I)):!0}function Zt(_e){Ve||(Ve=new Map);const vn=an(_e);Ve.has(vn)||Ve.set(vn,_e)}function xe(_e){if(Ve){const vn=an(_e);return Ve.get(vn)===_e}return!0}function an(_e){return ce.assertNode(_e.name,An),_e.name.escapedText}function Un(_e,vn){const Qn=r.createVariableDeclaration(r.getLocalName(vn,!1,!0)),hi=Be.kind===312?0:1,pa=r.createVariableStatement(Fa(vn.modifiers,Xr,bd),r.createVariableDeclarationList([Qn],hi));return tc(Qn,vn),MS(Qn,void 0),uI(Qn,void 0),tc(pa,vn),Zt(vn),xe(vn)?(vn.kind===266?Sp(pa.declarationList,vn):Sp(pa,vn),Ry(pa,vn),cI(pa,2048),_e.push(pa),!0):!1}function rr(_e){if(!$e(_e))return r.createNotEmittedStatement(_e);ce.assertNode(_e.name,An,"A TypeScript namespace should have an Identifier name."),Kh();const vn=[];let Qn=4;const hi=Un(vn,_e);hi&&(O!==4||Be!==de)&&(Qn|=1024);const pa=m_(_e),Zc=Yu(_e),ka=q_(_e)?r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0):r.getDeclarationName(_e,!1,!0);let bc=r.createLogicalOr(ka,r.createAssignment(ka,r.createObjectLiteralExpression()));if(q_(_e)){const yu=r.getLocalName(_e,!1,!0);bc=r.createAssignment(yu,bc)}const gu=r.createExpressionStatement(r.createCallExpression(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,pa)],void 0,mi(_e,Zc)),void 0,[bc]));return tc(gu,_e),hi&&(MS(gu,void 0),uI(gu,void 0)),vr(gu,_e),cI(gu,Qn),vn.push(gu),vn}function mi(_e,vn){const Qn=Ne,hi=ue,pa=Ve;Ne=vn,ue=_e,Ve=void 0;const Zc=[];l();let ka,bc;if(_e.body)if(_e.body.kind===268)Ft(_e.body,yu=>Oi(Zc,Fa(yu.statements,tt,uf))),ka=_e.body.statements,bc=_e.body;else{const yu=rr(_e.body);yu&&(ls(yu)?Oi(Zc,yu):Zc.push(yu));const Xm=Ji(_e).body;ka=TA(Xm.statements,-1)}v2(Zc,y()),Ne=Qn,ue=hi,Ve=pa;const gu=r.createBlock(vr(r.createNodeArray(Zc),ka),!0);return vr(gu,bc),(!_e.body||_e.body.kind!==268)&&Sa(gu,Tp(gu)|3072),gu}function Ji(_e){if(_e.body.kind===267)return Ji(_e.body)||_e.body}function zo(_e){if(!_e.importClause)return _e;if(_e.importClause.isTypeOnly)return;const vn=nr(_e.importClause,Ca,lC);return vn||I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2?r.updateImportDeclaration(_e,void 0,vn,_e.moduleSpecifier,_e.assertClause):void 0}function Ca(_e){ce.assert(!_e.isTypeOnly);const vn=hy(_e)?_e.name:void 0,Qn=nr(_e.namedBindings,Qa,XD);return vn||Qn?r.updateImportClause(_e,!1,vn,Qn):void 0}function Qa(_e){if(_e.kind===274)return hy(_e)?_e:void 0;{const vn=I.verbatimModuleSyntax||I.preserveValueImports&&(I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2),Qn=Fa(_e.elements,Ks,oS);return vn||gt(Qn)?r.updateNamedImports(_e,Qn):void 0}}function Ks(_e){return!_e.isTypeOnly&&hy(_e)?_e:void 0}function vs(_e){return I.verbatimModuleSyntax||D.isValueAliasDeclaration(_e)?ia(_e,Ye,t):void 0}function ou(_e){if(_e.isTypeOnly)return;if(!_e.exportClause||AP(_e.exportClause))return _e;const vn=I.verbatimModuleSyntax||!!_e.moduleSpecifier&&(I.importsNotUsedAsValues===1||I.importsNotUsedAsValues===2),Qn=nr(_e.exportClause,hi=>fp(hi,vn),GU);return Qn?r.updateExportDeclaration(_e,void 0,_e.isTypeOnly,Qn,_e.moduleSpecifier,_e.assertClause):void 0}function qd(_e,vn){const Qn=Fa(_e.elements,Ha,Oy);return vn||gt(Qn)?r.updateNamedExports(_e,Qn):void 0}function z_(_e){return r.updateNamespaceExport(_e,ce.checkDefined(nr(_e.name,Ye,An)))}function fp(_e,vn){return AP(_e)?z_(_e):qd(_e,vn)}function Ha(_e){return!_e.isTypeOnly&&(I.verbatimModuleSyntax||D.isValueAliasDeclaration(_e))?_e:void 0}function mu(_e){return hy(_e)||!Wv(de)&&D.isTopLevelValueImportEqualsWithEntityName(_e)}function x_(_e){if(_e.isTypeOnly)return;if(qM(_e)){const Qn=hy(_e);return!Qn&&I.importsNotUsedAsValues===1?tc(vr(r.createImportDeclaration(void 0,void 0,_e.moduleReference.expression,void 0),_e),_e):Qn?ia(_e,Ye,t):void 0}if(!mu(_e))return;const vn=gpe(r,_e.moduleReference);return Sa(vn,7168),U0(_e)||!q_(_e)?tc(vr(r.createVariableStatement(Fa(_e.modifiers,Xr,bd),r.createVariableDeclarationList([tc(r.createVariableDeclaration(_e.name,void 0,void 0,vn),_e)])),_e),_e):tc(Oh(_e.name,vn,_e),_e)}function q_(_e){return ue!==void 0&&il(_e,1)}function Ma(_e){return ue===void 0&&il(_e,1)}function U0(_e){return Ma(_e)&&!il(_e,1024)}function c_(_e){return Ma(_e)&&il(_e,1024)}function Kd(_e){const vn=r.createAssignment(r.getExternalModuleOrNamespaceExportName(Ne,_e,!1,!0),r.getLocalName(_e));Sp(vn,tv(_e.name?_e.name.pos:_e.pos,_e.end));const Qn=r.createExpressionStatement(vn);return Sp(Qn,tv(-1,_e.end)),Qn}function iy(_e,vn){_e.push(Kd(vn))}function Oh(_e,vn,Qn){return vr(r.createExpressionStatement(r.createAssignment(r.getNamespaceMemberName(Ne,_e,!1,!0),vn)),Qn)}function jg(_e,vn,Qn){return vr(r.createAssignment(zv(_e),vn),Qn)}function zv(_e){return r.getNamespaceMemberName(Ne,_e,!1,!0)}function m_(_e){const vn=r.getGeneratedNameForNode(_e);return Sp(vn,_e.name),vn}function Yu(_e){return r.getGeneratedNameForNode(_e)}function Tv(){Le&8||(Le|=8,t.enableSubstitution(80))}function Kh(){Le&2||(Le|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function uS(_e){return Ic(_e).kind===267}function H0(_e){return Ic(_e).kind===266}function fx(_e,vn,Qn){const hi=ht,pa=de;tl(vn)&&(de=vn),Le&2&&uS(vn)&&(ht|=2),Le&8&&H0(vn)&&(ht|=8),te(_e,vn,Qn),ht=hi,de=pa}function rd(_e,vn){return vn=oe(_e,vn),_e===1?lm(vn):BT(vn)?Mg(vn):vn}function Mg(_e){if(Le&2){const vn=_e.name,Qn=po(vn);if(Qn){if(_e.objectAssignmentInitializer){const hi=r.createAssignment(Qn,_e.objectAssignmentInitializer);return vr(r.createPropertyAssignment(vn,hi),_e)}return vr(r.createPropertyAssignment(vn,Qn),_e)}}return _e}function lm(_e){switch(_e.kind){case 80:return nm(_e);case 211:return gy(_e);case 212:return fS(_e)}return _e}function nm(_e){return po(_e)||_e}function po(_e){if(Le&ht&&!Om(_e)&&!T6(_e)){const vn=D.getReferencedExportContainer(_e,!1);if(vn&&vn.kind!==312&&(ht&2&&vn.kind===267||ht&8&&vn.kind===266))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode(vn),_e),_e)}}function gy(_e){return vE(_e)}function fS(_e){return vE(_e)}function GT(_e){return _e.replace(/\*\//g,"*_/")}function vE(_e){const vn=oh(_e);if(vn!==void 0){koe(_e,vn);const Qn=typeof vn=="string"?r.createStringLiteral(vn):vn<0?r.createPrefixUnaryExpression(41,r.createNumericLiteral(Math.abs(vn))):r.createNumericLiteral(vn);if(!I.removeComments){const hi=Ic(_e,Kf);sW(Qn,3,` ${GT(Yv(hi))} `)}return Qn}return _e}function oh(_e){if(!F0(I))return sa(_e)||Ed(_e)?D.getConstantValue(_e):void 0}function hy(_e){return I.verbatimModuleSyntax||Rs(_e)||(I.preserveValueImports?D.isValueAliasDeclaration(_e):D.isReferencedAliasDeclaration(_e))}}var Q2e,l4e=G({"src/compiler/transformers/ts.ts"(){Ad(),Q2e=!1}});function Ame(t){const{factory:r,getEmitHelperFactory:s,hoistVariableDeclaration:l,endLexicalEnvironment:m,startLexicalEnvironment:y,resumeLexicalEnvironment:T,addBlockScopedVariable:D}=t,I=t.getEmitResolver(),W=t.getCompilerOptions(),O=iu(W),V=X9(W),ee=!!W.experimentalDecorators,te=!V,oe=V&&O<9,de=te||oe,ue=O<9,Ne=O<99?-1:V?0:3,Be=O<9,Ve=Be&&O>=2,pt=de||ue||Ne===-1,Le=t.onSubstituteNode;t.onSubstituteNode=fS;const ht=t.onEmitNode;t.onEmitNode=gy;let ke=!1,_t,Dt,Ft,it,Ye;const ut=new Map,lt=new Set;let zt,Wt,tt=!1,Mn=!1;return Vx(t,kn);function kn(_e){if(_e.isDeclarationFile||(Ye=void 0,ke=!!(dh(_e)&32),!pt&&!ke))return _e;const vn=ia(_e,un,t);return JN(vn,t.readEmitHelpers()),vn}function cr(_e){switch(_e.kind){case 129:return $a()?void 0:_e;default:return to(_e,bd)}}function un(_e){if(!(_e.transformFlags&16777216)&&!(_e.transformFlags&134234112))return _e;switch(_e.kind){case 129:return ce.fail("Use `modifierVisitor` instead.");case 263:return Ui(_e);case 231:return We(_e);case 175:case 172:return ce.fail("Use `classElementVisitor` instead.");case 303:return Gn(_e);case 243:return Ur(_e);case 260:return so(_e);case 169:return ho(_e);case 208:return di(_e);case 277:return Nc(_e);case 81:return Cr(_e);case 211:return sl(_e);case 212:return vc(_e);case 224:case 225:return er(_e,!1);case 226:return qr(_e,!1);case 217:return _r(_e,!1);case 213:return _o(_e);case 244:return li(_e);case 215:return xt(_e);case 248:return Jr(_e);case 110:return $e(_e);case 262:case 218:return Ku(void 0,on,_e);case 176:case 174:case 177:case 178:return Ku(_e,on,_e);default:return on(_e)}}function on(_e){return ia(_e,un,t)}function pn(_e){switch(_e.kind){case 224:case 225:return er(_e,!0);case 226:return qr(_e,!0);case 361:return mt(_e,!0);case 217:return _r(_e,!0);default:return un(_e)}}function Or(_e){switch(_e.kind){case 298:return ia(_e,Or,t);case 233:return co(_e);default:return un(_e)}}function Xr(_e){switch(_e.kind){case 210:case 209:return po(_e);default:return un(_e)}}function Ut(_e){switch(_e.kind){case 176:return Ku(_e,Gs,_e);case 177:case 178:case 174:return Ku(_e,_u,_e);case 172:return Ku(_e,jc,_e);case 175:return Ku(_e,wt,_e);case 167:return ro(_e);case 240:return _e;default:return pc(_e)?cr(_e):un(_e)}}function In(_e){switch(_e.kind){case 167:return ro(_e);default:return un(_e)}}function gr(_e){switch(_e.kind){case 172:return ta(_e);case 177:case 178:return Ut(_e);default:ce.assertMissingNode(_e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Cr(_e){return!ue||uf(_e.parent)?_e:tc(r.createIdentifier(""),_e)}function ei(_e){const vn=Yu(_e.left);if(vn){const Qn=nr(_e.right,un,Nr);return tc(s().createClassPrivateFieldInHelper(vn.brandCheckIdentifier,Qn),_e)}return ia(_e,un,t)}function Gn(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function Ur(_e){const vn=it;it=[];const Qn=ia(_e,un,t),hi=gt(it)?[Qn,...it]:Qn;return it=vn,hi}function so(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function ho(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function di(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function Nc(_e){return Hd(_e,gn)&&(_e=ax(t,_e,!0,_e.isExportEquals?"":"default")),ia(_e,un,t)}function ha(_e){return gt(Ft)&&(sb(_e)?(Ft.push(_e.expression),_e=r.updateParenthesizedExpression(_e,r.inlineExpressions(Ft))):(Ft.push(_e),_e=r.inlineExpressions(Ft)),Ft=void 0),_e}function ro(_e){const vn=nr(_e.expression,un,Nr);return r.updateComputedPropertyName(_e,ha(vn))}function Gs(_e){return zt?an(_e,zt):on(_e)}function Oc(_e){return!!(ue||Ny(_e)&&dh(_e)&32)}function _u(_e){if(ce.assert(!Fx(_e)),!Mf(_e)||!Oc(_e))return ia(_e,Ut,t);const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),!vn.isValid)return _e;const Qn=al(_e);Qn&&q_().push(r.createAssignment(Qn,r.createFunctionExpression(gi(_e.modifiers,hi=>bd(hi)&&!dW(hi)&&!pW(hi)),_e.asteriskToken,Qn,void 0,Bn(_e.parameters,un,t),void 0,sm(_e.body,un,t))))}function Ku(_e,vn,Qn){if(_e!==Wt){const hi=Wt;Wt=_e;const pa=vn(Qn);return Wt=hi,pa}return vn(Qn)}function al(_e){ce.assert(Gu(_e.name));const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),vn.kind==="m")return vn.methodName;if(vn.kind==="a"){if(J2(_e))return vn.getterName;if(_P(_e))return vn.setterName}}function Rr(){const _e=mu(),vn=_e.classThis??_e.classConstructor??(zt==null?void 0:zt.name);return ce.checkDefined(vn)}function mc(_e){const vn=lI(_e),Qn=cE(_e),hi=_e.name;let pa=hi,Zc=hi;if(am(hi)&&!aD(hi.expression)){const av=HEe(hi);if(av)pa=r.updateComputedPropertyName(hi,nr(hi.expression,un,Nr)),Zc=r.updateComputedPropertyName(hi,av.left);else{const Fh=r.createTempVariable(l);Sp(Fh,hi.expression);const J0=nr(hi.expression,un,Nr),Eg=r.createAssignment(Fh,J0);Sp(Eg,hi.expression),pa=r.updateComputedPropertyName(hi,Eg),Zc=r.updateComputedPropertyName(hi,Fh)}}const ka=Fa(_e.modifiers,cr,bd),bc=$J(r,_e,ka,_e.initializer);tc(bc,_e),Sa(bc,3072),Sp(bc,Qn);const gu=e_(_e)?Rr():r.createThis(),yu=GG(r,_e,ka,pa,gu);tc(yu,_e),Ry(yu,vn),Sp(yu,Qn);const Xm=r.createModifiersFromModifierFlags(dk(ka)),Lg=yUe(r,_e,Xm,Zc,gu);return tc(Lg,_e),Sa(Lg,3072),Sp(Lg,Qn),dE([bc,yu,Lg],gr,Mv)}function Ea(_e){if(Oc(_e)){const vn=Yu(_e.name);if(ce.assert(vn,"Undeclared private name for property declaration."),!vn.isValid)return _e;if(vn.isStatic&&!ue){const Qn=Ji(_e,r.createThis());if(Qn)return r.createClassStaticBlockDeclaration(r.createBlock([Qn],!0))}return}return te&&!e_(_e)&&(Ye!=null&&Ye.data)&&Ye.data.facts&16?r.updatePropertyDeclaration(_e,Fa(_e.modifiers,un,pc),_e.name,void 0,void 0,void 0):(Hd(_e,gn)&&(_e=ax(t,_e)),r.updatePropertyDeclaration(_e,Fa(_e.modifiers,cr,bd),nr(_e.name,In,fy),void 0,void 0,nr(_e.initializer,un,Nr)))}function Fi(_e){if(de&&!rb(_e)){const vn=z_(_e.name,!!_e.initializer||V);if(vn&&q_().push(...JEe(vn)),e_(_e)&&!ue){const Qn=Ji(_e,r.createThis());if(Qn){const hi=r.createClassStaticBlockDeclaration(r.createBlock([Qn]));return tc(hi,_e),Ry(hi,_e),Ry(Qn,{pos:-1,end:-1}),MS(Qn,void 0),uI(Qn,void 0),hi}}return}return r.updatePropertyDeclaration(_e,Fa(_e.modifiers,cr,bd),nr(_e.name,In,fy),void 0,void 0,nr(_e.initializer,un,Nr))}function ta(_e){return ce.assert(!Fx(_e),"Decorators should already have been transformed and elided."),Mf(_e)?Ea(_e):Fi(_e)}function $a(){return Ne===-1||Ne===3&&!!(Ye!=null&&Ye.data)&&!!(Ye.data.facts&16)}function jc(_e){return rb(_e)&&($a()||Ny(_e)&&dh(_e)&32)?mc(_e):ta(_e)}function Xu(){return!!Wt&&Ny(Wt)&&Am(Wt)&&rb(Ic(Wt))}function Lo(_e){if(Xu()){const vn=rv(_e);vn.kind===110&<.add(vn)}}function To(_e,vn){return vn=nr(vn,un,Nr),Lo(vn),Aa(_e,vn)}function Aa(_e,vn){switch(Ry(vn,TA(vn,-1)),_e.kind){case"a":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.getterName);case"m":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.methodName);case"f":return s().createClassPrivateFieldGetHelper(vn,_e.brandCheckIdentifier,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return ce.fail("Access helpers should not be created for untransformed private elements");default:ce.assertNever(_e,"Unknown private element type")}}function sl(_e){if(Gu(_e.name)){const vn=Yu(_e.name);if(vn)return vr(tc(To(vn,_e.expression),_e),_e)}if(Ve&&Wt&&Z1(_e)&&An(_e.name)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=r.createReflectGetCall(Qn,r.createStringLiteralFromNode(_e.name),vn);return tc(pa,_e.expression),vr(pa,_e.expression),pa}}return ia(_e,un,t)}function vc(_e){if(Ve&&Wt&&Z1(_e)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=r.createReflectGetCall(Qn,nr(_e.argumentExpression,un,Nr),vn);return tc(pa,_e.expression),vr(pa,_e.expression),pa}}return ia(_e,un,t)}function er(_e,vn){if(_e.operator===46||_e.operator===47){const Qn=_g(_e.operand);if(kT(Qn)){let hi;if(hi=Yu(Qn.name)){const pa=nr(Qn.expression,un,Nr);Lo(pa);const{readExpression:Zc,initializeExpression:ka}=Ir(pa);let bc=To(hi,Zc);const gu=yk(_e)||vn?void 0:r.createTempVariable(l);return bc=REe(r,_e,bc,l,gu),bc=Cn(hi,ka||Zc,bc,64),tc(bc,_e),vr(bc,_e),gu&&(bc=r.createComma(bc,gu),vr(bc,_e)),bc}}else if(Ve&&Wt&&Z1(Qn)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:hi,superClassReference:pa,facts:Zc}=Ye.data;if(Zc&1){const ka=qd(Qn);return yk(_e)?r.updatePrefixUnaryExpression(_e,ka):r.updatePostfixUnaryExpression(_e,ka)}if(hi&&pa){let ka,bc;if(sa(Qn)?An(Qn.name)&&(bc=ka=r.createStringLiteralFromNode(Qn.name)):aD(Qn.argumentExpression)?bc=ka=Qn.argumentExpression:(bc=r.createTempVariable(l),ka=r.createAssignment(bc,nr(Qn.argumentExpression,un,Nr))),ka&&bc){let gu=r.createReflectGetCall(pa,bc,hi);vr(gu,Qn);const yu=vn?void 0:r.createTempVariable(l);return gu=REe(r,_e,gu,l,yu),gu=r.createReflectSetCall(pa,ka,gu,hi),tc(gu,_e),vr(gu,_e),yu&&(gu=r.createComma(gu,yu),vr(gu,_e)),gu}}}}return ia(_e,un,t)}function Jr(_e){return r.updateForStatement(_e,nr(_e.initializer,pn,mA),nr(_e.condition,un,Nr),nr(_e.incrementor,pn,Nr),pE(_e.statement,un,t))}function li(_e){return r.updateExpressionStatement(_e,nr(_e.expression,pn,Nr))}function Ir(_e){const vn=rh(_e)?_e:r.cloneNode(_e);if(_e.kind===110&<.has(_e)&<.add(vn),aD(_e))return{readExpression:vn,initializeExpression:void 0};const Qn=r.createTempVariable(l),hi=r.createAssignment(Qn,vn);return{readExpression:Qn,initializeExpression:hi}}function _o(_e){var vn;if(kT(_e.expression)&&Yu(_e.expression.name)){const{thisArg:Qn,target:hi}=r.createCallBinding(_e.expression,l,O);return R8(_e)?r.updateCallChain(_e,r.createPropertyAccessChain(nr(hi,un,Nr),_e.questionDotToken,"call"),void 0,void 0,[nr(Qn,un,Nr),...Fa(_e.arguments,un,Nr)]):r.updateCallExpression(_e,r.createPropertyAccessExpression(nr(hi,un,Nr),"call"),void 0,[nr(Qn,un,Nr),...Fa(_e.arguments,un,Nr)])}if(Ve&&Wt&&Z1(_e.expression)&&OQ(Wt)&&((vn=Ye==null?void 0:Ye.data)!=null&&vn.classConstructor)){const Qn=r.createFunctionCallCall(nr(_e.expression,un,Nr),Ye.data.classConstructor,Fa(_e.arguments,un,Nr));return tc(Qn,_e),vr(Qn,_e),Qn}return ia(_e,un,t)}function xt(_e){var vn;if(kT(_e.tag)&&Yu(_e.tag.name)){const{thisArg:Qn,target:hi}=r.createCallBinding(_e.tag,l,O);return r.updateTaggedTemplateExpression(_e,r.createCallExpression(r.createPropertyAccessExpression(nr(hi,un,Nr),"bind"),void 0,[nr(Qn,un,Nr)]),void 0,nr(_e.template,un,m9))}if(Ve&&Wt&&Z1(_e.tag)&&OQ(Wt)&&((vn=Ye==null?void 0:Ye.data)!=null&&vn.classConstructor)){const Qn=r.createFunctionBindCall(nr(_e.tag,un,Nr),Ye.data.classConstructor,[]);return tc(Qn,_e),vr(Qn,_e),r.updateTaggedTemplateExpression(_e,Qn,void 0,nr(_e.template,un,m9))}return ia(_e,un,t)}function Kn(_e){if(Ye&&ut.set(Ic(_e),Ye),ue){if(Mae(_e)){const hi=nr(_e.body.statements[0].expression,un,Nr);return wy(hi,!0)&&hi.left===hi.right?void 0:hi}if(FW(_e))return nr(_e.body.statements[0].expression,un,Nr);y();let vn=Ku(_e,hi=>Fa(hi,un,uf),_e.body.statements);vn=r.mergeLexicalEnvironment(vn,m());const Qn=r.createImmediatelyInvokedArrowFunction(vn);return tc(_g(Qn.expression),_e),cI(_g(Qn.expression),4),tc(Qn,_e),vr(Qn,_e),Qn}}function gn(_e){if(B0(_e)&&!_e.name){const vn=v$(_e);return gt(vn,FW)?!1:(ue||!!dh(_e))&>(vn,hi=>nu(hi)||Mf(hi)||de&&b$(hi))}return!1}function qr(_e,vn){if(Tg(_e)){const Qn=Ft;Ft=void 0,_e=r.updateBinaryExpression(_e,nr(_e.left,Xr,Nr),_e.operatorToken,nr(_e.right,un,Nr));const hi=gt(Ft)?r.inlineExpressions(uN([...Ft,_e])):_e;return Ft=Qn,hi}if(wy(_e)){Hd(_e,gn)&&(_e=ax(t,_e),ce.assertNode(_e,wy));const Qn=rv(_e.left,9);if(kT(Qn)){const hi=Yu(Qn.name);if(hi)return vr(tc(Cn(hi,Qn.expression,_e.right,_e.operatorToken.kind),_e),_e)}else if(Ve&&Wt&&Z1(_e.left)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:hi,superClassReference:pa,facts:Zc}=Ye.data;if(Zc&1)return r.updateBinaryExpression(_e,qd(_e.left),_e.operatorToken,nr(_e.right,un,Nr));if(hi&&pa){let ka=Ed(_e.left)?nr(_e.left.argumentExpression,un,Nr):An(_e.left.name)?r.createStringLiteralFromNode(_e.left.name):void 0;if(ka){let bc=nr(_e.right,un,Nr);if(sj(_e.operatorToken.kind)){let yu=ka;aD(ka)||(yu=r.createTempVariable(l),ka=r.createAssignment(yu,ka));const Xm=r.createReflectGetCall(pa,yu,hi);tc(Xm,_e.left),vr(Xm,_e.left),bc=r.createBinaryExpression(Xm,wQ(_e.operatorToken.kind),bc),vr(bc,_e)}const gu=vn?void 0:r.createTempVariable(l);return gu&&(bc=r.createAssignment(gu,bc),vr(gu,_e)),bc=r.createReflectSetCall(pa,ka,bc,hi),tc(bc,_e),vr(bc,_e),gu&&(bc=r.createComma(bc,gu),vr(bc,_e)),bc}}}}return f4e(_e)?ei(_e):ia(_e,un,t)}function mt(_e,vn){const Qn=vn?fme(_e.elements,pn):fme(_e.elements,un,pn);return r.updateCommaListExpression(_e,Qn)}function _r(_e,vn){const Qn=vn?pn:un,hi=nr(_e.expression,Qn,Nr);return r.updateParenthesizedExpression(_e,hi)}function Cn(_e,vn,Qn,hi){if(vn=nr(vn,un,Nr),Qn=nr(Qn,un,Nr),Lo(vn),sj(hi)){const{readExpression:pa,initializeExpression:Zc}=Ir(vn);vn=Zc||pa,Qn=r.createBinaryExpression(Aa(_e,pa),wQ(hi),Qn)}switch(Ry(vn,TA(vn,-1)),_e.kind){case"a":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,_e.setterName);case"m":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(vn,_e.brandCheckIdentifier,Qn,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return ce.fail("Access helpers should not be created for untransformed private elements");default:ce.assertNever(_e,"Unknown private element type")}}function oi(_e){return gi(_e.members,LHe)}function Qr(_e){var vn;let Qn=0;const hi=Ic(_e);Kc(hi)&&Mx(ee,hi)&&(Qn|=1),ue&&(o4e(_e)||X2e(_e))&&(Qn|=2);let pa=!1,Zc=!1,ka=!1,bc=!1;for(const yu of _e.members)e_(yu)?((yu.name&&(Gu(yu.name)||rb(yu))&&ue||rb(yu)&&Ne===-1&&!_e.name&&!((vn=_e.emitNode)!=null&&vn.classThis))&&(Qn|=2),(Os(yu)||nu(yu))&&(Be&&yu.transformFlags&16384&&(Qn|=8,Qn&1||(Qn|=2)),Ve&&yu.transformFlags&134217728&&(Qn&1||(Qn|=6)))):fk(Ic(yu))||(rb(yu)?(bc=!0,ka||(ka=Mf(yu))):Mf(yu)?(ka=!0,I.getNodeCheckFlags(yu)&262144&&(Qn|=2)):Os(yu)&&(pa=!0,Zc||(Zc=!!yu.initializer)));return(oe&&pa||te&&Zc||ue&&ka||ue&&bc&&Ne===-1)&&(Qn|=16),Qn}function co(_e){var vn;if((((vn=Ye==null?void 0:Ye.data)==null?void 0:vn.facts)||0)&4){const hi=r.createTempVariable(l,!0);return mu().superClassReference=hi,r.updateExpressionWithTypeArguments(_e,r.createAssignment(hi,nr(_e.expression,un,Nr)),void 0)}return ia(_e,un,t)}function es(_e,vn){var Qn;const hi=zt,pa=Ft,Zc=Ye;zt=_e,Ft=void 0,fp();const ka=dh(_e)&32;if(ue||ka){const yu=o_(_e);if(yu&&An(yu))x_().data.className=yu;else if((Qn=_e.emitNode)!=null&&Qn.assignedName&&Wp(_e.emitNode.assignedName)){if(_e.emitNode.assignedName.textSourceNode&&An(_e.emitNode.assignedName.textSourceNode))x_().data.className=_e.emitNode.assignedName.textSourceNode;else if(rE(_e.emitNode.assignedName.text,O)){const Xm=r.createIdentifier(_e.emitNode.assignedName.text);x_().data.className=Xm}}}if(ue){const yu=oi(_e);gt(yu)&&(x_().data.weakSetName=zv("instances",yu[0].name))}const bc=Qr(_e);bc&&(mu().facts=bc),bc&8&&vs();const gu=vn(_e,bc);return Ha(),ce.assert(Ye===Zc),zt=hi,Ft=pa,gu}function Ui(_e){return es(_e,xu)}function xu(_e,vn){var Qn,hi;let pa;if(vn&2)if(ue&&((Qn=_e.emitNode)!=null&&Qn.classThis))mu().classConstructor=_e.emitNode.classThis,pa=r.createAssignment(_e.emitNode.classThis,r.getInternalName(_e));else{const Eg=r.createTempVariable(l,!0);mu().classConstructor=r.cloneNode(Eg),pa=r.createAssignment(Eg,r.getInternalName(_e))}(hi=_e.emitNode)!=null&&hi.classThis&&(mu().classThis=_e.emitNode.classThis);const Zc=I.getNodeCheckFlags(_e)&262144,ka=il(_e,1),bc=il(_e,1024);let gu=Fa(_e.modifiers,cr,bd);const yu=Fa(_e.heritageClauses,Or,rT),{members:Xm,prologue:Lg}=Zt(_e),av=[];if(pa&&q_().unshift(pa),gt(Ft)&&av.push(r.createExpressionStatement(r.inlineExpressions(Ft))),te||ue||dh(_e)&32){const Eg=v$(_e);gt(Eg)&&mi(av,Eg,r.getInternalName(_e))}av.length>0&&ka&&bc&&(gu=Fa(gu,Eg=>Epe(Eg)?void 0:Eg,bd),av.push(r.createExportAssignment(void 0,!1,r.getLocalName(_e,!1,!0))));const Fh=mu().classConstructor;Zc&&Fh&&(Ks(),Dt[e1(_e)]=Fh);const J0=r.updateClassDeclaration(_e,gu,_e.name,void 0,yu,Xm);return av.unshift(J0),Lg&&av.unshift(r.createExpressionStatement(Lg)),av}function We(_e){return es(_e,Re)}function Re(_e,vn){var Qn,hi,pa;const Zc=!!(vn&1),ka=v$(_e),bc=I.getNodeCheckFlags(_e),gu=bc&262144;let yu;function Xm(){var Ev;if(ue&&((Ev=_e.emitNode)!=null&&Ev.classThis))return mu().classConstructor=_e.emitNode.classThis;const S0=bc&32768,k1=r.createTempVariable(S0?D:l,!0);return mu().classConstructor=r.cloneNode(k1),k1}(Qn=_e.emitNode)!=null&&Qn.classThis&&(mu().classThis=_e.emitNode.classThis),vn&2&&(yu??(yu=Xm()));const Lg=Fa(_e.modifiers,cr,bd),av=Fa(_e.heritageClauses,Or,rT),{members:Fh,prologue:J0}=Zt(_e),Eg=r.updateClassExpression(_e,Lg,_e.name,void 0,av,Fh),Sv=[];if(J0&&Sv.push(J0),(ue||dh(_e)&32)&>(ka,Ev=>nu(Ev)||Mf(Ev)||de&&b$(Ev))||gt(Ft))if(Zc)ce.assertIsDefined(it,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(Ft)&&Oi(it,Vn(Ft,r.createExpressionStatement)),gt(ka)&&mi(it,ka,((hi=_e.emitNode)==null?void 0:hi.classThis)??r.getInternalName(_e)),yu?Sv.push(r.createAssignment(yu,Eg)):ue&&((pa=_e.emitNode)!=null&&pa.classThis)?Sv.push(r.createAssignment(_e.emitNode.classThis,Eg)):Sv.push(Eg);else{if(yu??(yu=Xm()),gu){Ks();const Ev=r.cloneNode(yu);Ev.emitNode.autoGenerate.flags&=-9,Dt[e1(_e)]=Ev}Sv.push(r.createAssignment(yu,Eg)),Oi(Sv,Ft),Oi(Sv,zo(ka,yu)),Sv.push(r.cloneNode(yu))}else Sv.push(Eg);return Sv.length>1&&(cI(Eg,131072),Sv.forEach(x1)),r.inlineExpressions(Sv)}function wt(_e){if(!ue)return ia(_e,un,t)}function $e(_e){if(Be&&Wt&&nu(Wt)&&(Ye!=null&&Ye.data)){const{classThis:vn,classConstructor:Qn}=Ye.data;return vn??Qn??_e}return _e}function Zt(_e){const vn=!!(dh(_e)&32);if(ue||ke){for(const ka of _e.members)if(Mf(ka))if(Oc(ka))jg(ka,ka.name,Ma);else{const bc=x_();LW(bc,ka.name,{kind:"untransformed"})}if(ue&>(oi(_e))&&xe(),$a()){for(const ka of _e.members)if(rb(ka)){const bc=r.getGeneratedPrivateNameForNode(ka.name,void 0,"_accessor_storage");if(ue||vn&&Ny(ka))jg(ka,bc,U0);else{const gu=x_();LW(gu,bc,{kind:"untransformed"})}}}}let Qn=Fa(_e.members,Ut,Mv),hi;gt(Qn,pg)||(hi=an(void 0,_e));let pa,Zc;if(!ue&>(Ft)){let ka=r.createExpressionStatement(r.inlineExpressions(Ft));if(ka.transformFlags&134234112){const gu=r.createTempVariable(l),yu=r.createArrowFunction(void 0,void 0,[],void 0,void 0,r.createBlock([ka]));pa=r.createAssignment(gu,yu),ka=r.createExpressionStatement(r.createCallExpression(gu,void 0,[]))}const bc=r.createBlock([ka]);Zc=r.createClassStaticBlockDeclaration(bc),Ft=void 0}if(hi||Zc){let ka;const bc=lr(Qn,Mae),gu=lr(Qn,FW);ka=ur(ka,bc),ka=ur(ka,gu),ka=ur(ka,hi),ka=ur(ka,Zc);const yu=bc||gu?gi(Qn,Xm=>Xm!==bc&&Xm!==gu):Qn;ka=Oi(ka,yu),Qn=vr(r.createNodeArray(ka),_e.members)}return{members:Qn,prologue:pa}}function xe(){const{weakSetName:_e}=x_().data;ce.assert(_e,"weakSetName should be set in private identifier environment"),q_().push(r.createAssignment(_e,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[])))}function an(_e,vn){if(_e=nr(_e,un,pg),!(Ye!=null&&Ye.data)||!(Ye.data.facts&16))return _e;const Qn=hA(vn),hi=!!(Qn&&rv(Qn.expression).kind!==106),pa=Bn(_e?_e.parameters:void 0,un,t),Zc=rr(vn,_e,hi);return Zc?_e?(ce.assert(pa),r.updateConstructorDeclaration(_e,void 0,pa,Zc)):x1(tc(vr(r.createConstructorDeclaration(void 0,pa??[],Zc),_e||vn),_e)):_e}function Un(_e,vn,Qn,hi,pa,Zc,ka){const bc=hi[pa],gu=vn[bc];if(Oi(_e,Fa(vn,un,uf,Qn,bc-Qn)),Qn=bc+1,AR(gu)){const yu=[];Un(yu,gu.tryBlock.statements,0,hi,pa+1,Zc,ka);const Xm=r.createNodeArray(yu);vr(Xm,gu.tryBlock.statements),_e.push(r.updateTryStatement(gu,r.updateBlock(gu.tryBlock,yu),nr(gu.catchClause,un,CP),nr(gu.finallyBlock,un,E_)))}else{for(Oi(_e,Fa(vn,un,uf,bc,1));Qn!!Fh.initializer||Gu(Fh.name)||_k(Fh)));const Zc=oi(_e),ka=gt(pa)||gt(Zc);if(!vn&&!ka)return sm(void 0,un,t);T();const bc=!vn&&Qn;let gu=0,yu=[];const Xm=[],Lg=r.createThis();if(ou(Xm,Zc,Lg),vn){const Fh=gi(hi,Eg=>Eb(Ic(Eg),vn)),J0=gi(pa,Eg=>!Eb(Ic(Eg),vn));mi(Xm,Fh,Lg),mi(Xm,J0,Lg)}else mi(Xm,pa,Lg);if(vn!=null&&vn.body){gu=r.copyPrologue(vn.body.statements,yu,!1,un);const Fh=IA(vn.body.statements,gu);if(Fh.length)Un(yu,vn.body.statements,gu,Fh,0,Xm,vn);else{for(;gu=yu.length?vn.body.multiLine??yu.length>0:yu.length>0;return vr(r.createBlock(vr(r.createNodeArray(yu),vn?vn.body.statements:_e.members),av),vn?vn.body:void 0)}function mi(_e,vn,Qn){for(const hi of vn){if(e_(hi)&&!ue)continue;const pa=Ji(hi,Qn);pa&&_e.push(pa)}}function Ji(_e,vn){const Qn=nu(_e)?Ku(_e,Kn,_e):Ca(_e,vn);if(!Qn)return;const hi=r.createExpressionStatement(Qn);tc(hi,_e),cI(hi,Tp(_e)&3072),Ry(hi,_e);const pa=Ic(_e);return Pu(pa)?(Sp(hi,pa),Zde(hi)):Sp(hi,Db(_e)),MS(Qn,void 0),uI(Qn,void 0),_k(pa)&&cI(hi,3072),hi}function zo(_e,vn){const Qn=[];for(const hi of _e){const pa=nu(hi)?Ku(hi,Kn,hi):Ku(hi,()=>Ca(hi,vn),void 0);pa&&(x1(pa),tc(pa,hi),cI(pa,Tp(hi)&3072),Sp(pa,Db(hi)),Ry(pa,hi),Qn.push(pa))}return Qn}function Ca(_e,vn){var Qn;const hi=Wt,pa=Qa(_e,vn);return pa&&Ny(_e)&&((Qn=Ye==null?void 0:Ye.data)!=null&&Qn.facts)&&(tc(pa,_e),cI(pa,4),Sp(pa,cE(_e.name)),ut.set(Ic(_e),Ye)),Wt=hi,pa}function Qa(_e,vn){const Qn=!V;Hd(_e,gn)&&(_e=ax(t,_e));const hi=_k(_e)?r.getGeneratedPrivateNameForNode(_e.name):am(_e.name)&&!aD(_e.name.expression)?r.updateComputedPropertyName(_e.name,r.getGeneratedNameForNode(_e.name)):_e.name;if(Ny(_e)&&(Wt=_e),Gu(hi)&&Oc(_e)){const ka=Yu(hi);if(ka)return ka.kind==="f"?ka.isStatic?ict(r,ka.variableName,nr(_e.initializer,un,Nr)):u4e(r,vn,nr(_e.initializer,un,Nr),ka.brandCheckIdentifier):void 0;ce.fail("Undeclared private name for property declaration.")}if((Gu(hi)||Ny(_e))&&!_e.initializer)return;const pa=Ic(_e);if(il(pa,256))return;let Zc=nr(_e.initializer,un,Nr);if(Eb(pa,pa.parent)&&An(hi)){const ka=r.cloneNode(hi);Zc?(sb(Zc)&&mI(Zc.expression)&&cJ(Zc.expression.left,"___runInitializers")&&$m(Zc.expression.right)&&nS(Zc.expression.right.expression)&&(Zc=Zc.expression.left),Zc=r.inlineExpressions([Zc,ka])):Zc=ka,Sa(hi,3168),Sp(ka,pa.name),Sa(ka,3072)}else Zc??(Zc=r.createVoidZero());if(Qn||Gu(hi)){const ka=ZL(r,vn,hi,hi);return cI(ka,1024),r.createAssignment(ka,Zc)}else{const ka=am(hi)?hi.expression:An(hi)?r.createStringLiteral(lf(hi.escapedText)):hi,bc=r.createPropertyDescriptor({value:Zc,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(vn,ka,bc)}}function Ks(){_t&1||(_t|=1,t.enableSubstitution(80),Dt=[])}function vs(){_t&2||(_t|=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 ou(_e,vn,Qn){if(!ue||!gt(vn))return;const{weakSetName:hi}=x_().data;ce.assert(hi,"weakSetName should be set in private identifier environment"),_e.push(r.createExpressionStatement(zHe(r,Qn,hi)))}function qd(_e){return sa(_e)?r.updatePropertyAccessExpression(_e,r.createVoidZero(),_e.name):r.updateElementAccessExpression(_e,r.createVoidZero(),nr(_e.argumentExpression,un,Nr))}function z_(_e,vn){if(am(_e)){const Qn=HEe(_e),hi=nr(_e.expression,un,Nr),pa=pA(hi),Zc=aD(pa);if(!(!!Qn||wy(pa)&&Om(pa.left))&&!Zc&&vn){const bc=r.getGeneratedNameForNode(_e);return I.getNodeCheckFlags(_e)&32768?D(bc):l(bc),r.createAssignment(bc,hi)}return Zc||An(pa)?void 0:hi}}function fp(){Ye={previous:Ye,data:void 0}}function Ha(){Ye=Ye==null?void 0:Ye.previous}function mu(){return ce.assert(Ye),Ye.data??(Ye.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function x_(){return ce.assert(Ye),Ye.privateEnv??(Ye.privateEnv=wae({className:void 0,weakSetName:void 0}))}function q_(){return Ft??(Ft=[])}function Ma(_e,vn,Qn,hi,pa,Zc,ka){rb(_e)?Oh(_e,vn,Qn,hi,pa,Zc):Os(_e)?U0(_e,vn,Qn,hi,pa,Zc):em(_e)?c_(_e,vn,Qn,hi,pa,Zc):tm(_e)?Kd(_e,vn,Qn,hi,pa,Zc,ka):Ep(_e)&&iy(_e,vn,Qn,hi,pa,Zc,ka)}function U0(_e,vn,Qn,hi,pa,Zc,ka){if(pa){const bc=ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"),gu=m_(vn);LW(hi,vn,{kind:"f",isStatic:!0,brandCheckIdentifier:bc,variableName:gu,isValid:Zc})}else{const bc=m_(vn);LW(hi,vn,{kind:"f",isStatic:!1,brandCheckIdentifier:bc,isValid:Zc}),q_().push(r.createAssignment(bc,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}}function c_(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");LW(hi,vn,{kind:"m",methodName:bc,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function Kd(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_get"),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ka==null?void 0:ka.kind)==="a"&&ka.isStatic===pa&&!ka.getterName?ka.getterName=bc:LW(hi,vn,{kind:"a",getterName:bc,setterName:void 0,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function iy(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_set"),gu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ka==null?void 0:ka.kind)==="a"&&ka.isStatic===pa&&!ka.setterName?ka.setterName=bc:LW(hi,vn,{kind:"a",getterName:void 0,setterName:bc,brandCheckIdentifier:gu,isStatic:pa,isValid:Zc})}function Oh(_e,vn,Qn,hi,pa,Zc,ka){const bc=m_(vn,"_get"),gu=m_(vn,"_set"),yu=pa?ce.checkDefined(Qn.classThis??Qn.classConstructor,"classConstructor should be set in private identifier environment"):ce.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");LW(hi,vn,{kind:"a",getterName:bc,setterName:gu,brandCheckIdentifier:yu,isStatic:pa,isValid:Zc})}function jg(_e,vn,Qn){const hi=mu(),pa=x_(),Zc=n4e(pa,vn),ka=Ny(_e),bc=!oct(vn)&&Zc===void 0;Qn(_e,vn,hi,pa,ka,bc,Zc)}function zv(_e,vn,Qn){const{className:hi}=x_().data,pa=hi?{prefix:"_",node:hi,suffix:"_"}:"_",Zc=typeof _e=="object"?r.getGeneratedNameForNode(_e,24,pa,Qn):typeof _e=="string"?r.createUniqueName(_e,16,pa,Qn):r.createTempVariable(void 0,!0,pa,Qn);return I.getNodeCheckFlags(vn)&32768?D(Zc):l(Zc),Zc}function m_(_e,vn){const Qn=nH(_e);return zv((Qn==null?void 0:Qn.substring(1))??_e,_e,vn)}function Yu(_e){const vn=OHe(Ye,_e);return(vn==null?void 0:vn.kind)==="untransformed"?void 0:vn}function Tv(_e){const vn=r.getGeneratedNameForNode(_e),Qn=Yu(_e.name);if(!Qn)return ia(_e,un,t);let hi=_e.expression;return(b7(_e)||Z1(_e)||!D6(_e.expression))&&(hi=r.createTempVariable(l,!0),q_().push(r.createBinaryExpression(hi,64,nr(_e.expression,un,Nr)))),r.createAssignmentTargetWrapper(vn,Cn(Qn,hi,vn,64))}function Kh(_e){if(Wd(_e)||Ch(_e))return po(_e);if(kT(_e))return Tv(_e);if(Ve&&Wt&&Z1(_e)&&OQ(Wt)&&(Ye!=null&&Ye.data)){const{classConstructor:vn,superClassReference:Qn,facts:hi}=Ye.data;if(hi&1)return qd(_e);if(vn&&Qn){const pa=Ed(_e)?nr(_e.argumentExpression,un,Nr):An(_e.name)?r.createStringLiteralFromNode(_e.name):void 0;if(pa){const Zc=r.createTempVariable(void 0);return r.createAssignmentTargetWrapper(Zc,r.createReflectSetCall(Qn,pa,Zc,vn))}}}return ia(_e,un,t)}function uS(_e){if(Hd(_e,gn)&&(_e=ax(t,_e)),wy(_e,!0)){const vn=Kh(_e.left),Qn=nr(_e.right,un,Nr);return r.updateBinaryExpression(_e,vn,_e.operatorToken,Qn)}return Kh(_e)}function H0(_e){if(FE(_e.expression)){const vn=Kh(_e.expression);return r.updateSpreadElement(_e,vn)}return ia(_e,un,t)}function fx(_e){if(uR(_e)){if(ex(_e))return H0(_e);if(!t0(_e))return uS(_e)}return ia(_e,un,t)}function rd(_e){const vn=nr(_e.name,un,fy);if(wy(_e.initializer,!0)){const Qn=uS(_e.initializer);return r.updatePropertyAssignment(_e,vn,Qn)}if(FE(_e.initializer)){const Qn=Kh(_e.initializer);return r.updatePropertyAssignment(_e,vn,Qn)}return ia(_e,un,t)}function Mg(_e){return Hd(_e,gn)&&(_e=ax(t,_e)),ia(_e,un,t)}function lm(_e){if(FE(_e.expression)){const vn=Kh(_e.expression);return r.updateSpreadAssignment(_e,vn)}return ia(_e,un,t)}function nm(_e){return ce.assertNode(_e,KX),xk(_e)?lm(_e):BT(_e)?Mg(_e):Fm(_e)?rd(_e):ia(_e,un,t)}function po(_e){return Ch(_e)?r.updateArrayLiteralExpression(_e,Fa(_e.elements,fx,Nr)):r.updateObjectLiteralExpression(_e,Fa(_e.properties,nm,KD))}function gy(_e,vn,Qn){const hi=Ic(vn),pa=ut.get(hi);if(pa){const Zc=Ye,ka=Mn;Ye=pa,Mn=tt,tt=!nu(hi)||!(dh(hi)&32),ht(_e,vn,Qn),tt=Mn,Mn=ka,Ye=Zc;return}switch(vn.kind){case 218:if(ph(hi)||Tp(vn)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Zc=Ye,ka=Mn;Ye=void 0,Mn=tt,tt=!1,ht(_e,vn,Qn),tt=Mn,Mn=ka,Ye=Zc;return}case 167:{const Zc=Ye,ka=tt;Ye=Ye==null?void 0:Ye.previous,tt=Mn,ht(_e,vn,Qn),tt=ka,Ye=Zc;return}}ht(_e,vn,Qn)}function fS(_e,vn){return vn=Le(_e,vn),_e===1?GT(vn):vn}function GT(_e){switch(_e.kind){case 80:return oh(_e);case 110:return vE(_e)}return _e}function vE(_e){if(_t&2&&(Ye!=null&&Ye.data)&&!lt.has(_e)){const{facts:vn,classConstructor:Qn,classThis:hi}=Ye.data,pa=tt?hi??Qn:Qn;if(pa)return vr(tc(r.cloneNode(pa),_e),_e);if(vn&1&&ee)return r.createParenthesizedExpression(r.createVoidZero())}return _e}function oh(_e){return hy(_e)||_e}function hy(_e){if(_t&1&&I.getNodeCheckFlags(_e)&536870912){const vn=I.getReferencedValueDeclaration(_e);if(vn){const Qn=Dt[vn.id];if(Qn){const hi=r.cloneNode(Qn);return Sp(hi,_e),Ry(hi,_e),hi}}}}}function ict(t,r,s){return t.createAssignment(r,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function u4e(t,r,s,l){return t.createCallExpression(t.createPropertyAccessExpression(l,"set"),void 0,[r,s||t.createVoidZero()])}function zHe(t,r,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[r])}function oct(t){return!cR(t)&&t.escapedText==="#constructor"}function f4e(t){return Gu(t.left)&&t.operatorToken.kind===103}function act(t){return Os(t)&&Ny(t)}function OQ(t){return nu(t)||act(t)}var sct=G({"src/compiler/transformers/classFields.ts"(){Ad()}});function GHe(t){const{factory:r,hoistVariableDeclaration:s}=t,l=t.getEmitResolver(),m=t.getCompilerOptions(),y=iu(m),T=hv(m,"strictNullChecks");let D,I;return{serializeTypeNode:(Ft,it)=>W(Ft,de,it),serializeTypeOfNode:(Ft,it)=>W(Ft,V,it),serializeParameterTypesOfNode:(Ft,it,Ye)=>W(Ft,ee,it,Ye),serializeReturnTypeOfNode:(Ft,it)=>W(Ft,oe,it)};function W(Ft,it,Ye,ut){const lt=D,zt=I;D=Ft.currentLexicalScope,I=Ft.currentNameScope;const Wt=ut===void 0?it(Ye):it(Ye,ut);return D=lt,I=zt,Wt}function O(Ft){const it=l.getAllAccessorDeclarations(Ft);return it.setAccessor&&V9(it.setAccessor)||it.getAccessor&&bA(it.getAccessor)}function V(Ft){switch(Ft.kind){case 172:case 169:return de(Ft.type);case 178:case 177:return de(O(Ft));case 263:case 231:case 174:return r.createIdentifier("Function");default:return r.createVoidZero()}}function ee(Ft,it){const Ye=Jl(Ft)?E2(Ft):S_(Ft)&&wx(Ft.body)?Ft:void 0,ut=[];if(Ye){const lt=te(Ye,it),zt=lt.length;for(let Wt=0;Wtlt.parent&&hW(lt.parent)&&(lt.parent.trueType===lt||lt.parent.falseType===lt)))return r.createIdentifier("Object");const Ye=Le(Ft.typeName),ut=r.createTempVariable(s);return r.createConditionalExpression(r.createTypeCheck(r.createAssignment(ut,Ye),"function"),void 0,ut,void 0,r.createIdentifier("Object"));case 1:return ht(Ft.typeName);case 2:return r.createVoidZero();case 4:return Dt("BigInt",7);case 6:return r.createIdentifier("Boolean");case 3:return r.createIdentifier("Number");case 5:return r.createIdentifier("String");case 7:return r.createIdentifier("Array");case 8:return Dt("Symbol",2);case 10:return r.createIdentifier("Function");case 9:return r.createIdentifier("Promise");case 11:return r.createIdentifier("Object");default:return ce.assertNever(it)}}function pt(Ft,it){return r.createLogicalAnd(r.createStrictInequality(r.createTypeOfExpression(Ft),r.createStringLiteral("undefined")),it)}function Le(Ft){if(Ft.kind===80){const ut=ht(Ft);return pt(ut,ut)}if(Ft.left.kind===80)return pt(ht(Ft.left),ht(Ft));const it=Le(Ft.left),Ye=r.createTempVariable(s);return r.createLogicalAnd(r.createLogicalAnd(it.left,r.createStrictInequality(r.createAssignment(Ye,it.right),r.createVoidZero())),r.createPropertyAccessExpression(Ye,Ft.right))}function ht(Ft){switch(Ft.kind){case 80:const it=kl(vr(DP.cloneNode(Ft),Ft),Ft.parent);return it.original=void 0,kl(it,Il(D)),it;case 166:return ke(Ft)}}function ke(Ft){return r.createPropertyAccessExpression(ht(Ft.left),Ft.right)}function _t(Ft){return r.createConditionalExpression(r.createTypeCheck(r.createIdentifier(Ft),"function"),void 0,r.createIdentifier(Ft),void 0,r.createIdentifier("Object"))}function Dt(Ft,it){return yEpe($a)||Qf($a)?void 0:$a,pc),Nc=Db(Gn),ha=Or(Gn),ro=T<2?r.getInternalName(Gn,!1,!0):r.getLocalName(Gn,!1,!0),Gs=Fa(Gn.heritageClauses,V,rT);let Oc=Fa(Gn.members,V,Mv),_u=[];({members:Oc,decorationStatements:_u}=ue(Gn,Oc));const Ku=T>=9&&!!ha&>(Oc,$a=>Os($a)&&il($a,32)||nu($a));Ku&&(Oc=vr(r.createNodeArray([r.createClassStaticBlockDeclaration(r.createBlock([r.createExpressionStatement(r.createAssignment(ha,r.createThis()))])),...Oc]),Oc));const al=r.createClassExpression(di,Ur&&Om(Ur)?void 0:Ur,void 0,Gs,Oc);tc(al,Gn),vr(al,Nc);const Rr=ha&&!Ku?r.createAssignment(ha,al):al,mc=r.createVariableDeclaration(ro,void 0,void 0,Rr);tc(mc,Gn);const Ea=r.createVariableDeclarationList([mc],1),Fi=r.createVariableStatement(void 0,Ea);tc(Fi,Gn),vr(Fi,Nc),Ry(Fi,Gn);const ta=[Fi];if(Oi(ta,_u),Mn(ta,Gn),so)if(ho){const $a=r.createExportDefault(ro);ta.push($a)}else{const $a=r.createExternalModuleExport(r.getDeclarationName(Gn));ta.push($a)}return ta}function Ve(Gn){return r.updateClassExpression(Gn,Fa(Gn.modifiers,O,bd),Gn.name,void 0,Fa(Gn.heritageClauses,V,rT),Fa(Gn.members,V,Mv))}function pt(Gn){return r.updateConstructorDeclaration(Gn,Fa(Gn.modifiers,O,bd),Fa(Gn.parameters,V,Pu),nr(Gn.body,V,E_))}function Le(Gn,Ur){return Gn!==Ur&&(Ry(Gn,Ur),Sp(Gn,Db(Ur))),Gn}function ht(Gn){return Le(r.updateMethodDeclaration(Gn,Fa(Gn.modifiers,O,bd),Gn.asteriskToken,ce.checkDefined(nr(Gn.name,V,fy)),void 0,void 0,Fa(Gn.parameters,V,Pu),void 0,nr(Gn.body,V,E_)),Gn)}function ke(Gn){return Le(r.updateGetAccessorDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,fy)),Fa(Gn.parameters,V,Pu),void 0,nr(Gn.body,V,E_)),Gn)}function _t(Gn){return Le(r.updateSetAccessorDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,fy)),Fa(Gn.parameters,V,Pu),nr(Gn.body,V,E_)),Gn)}function Dt(Gn){if(!(Gn.flags&33554432||il(Gn,2)))return Le(r.updatePropertyDeclaration(Gn,Fa(Gn.modifiers,O,bd),ce.checkDefined(nr(Gn.name,V,fy)),void 0,void 0,nr(Gn.initializer,V,Nr)),Gn)}function Ft(Gn){const Ur=r.updateParameterDeclaration(Gn,UEe(r,Gn.modifiers),Gn.dotDotDotToken,ce.checkDefined(nr(Gn.name,V,f9)),void 0,void 0,nr(Gn.initializer,V,Nr));return Ur!==Gn&&(Ry(Ur,Gn),vr(Ur,Db(Gn)),Sp(Ur,Db(Gn)),Sa(Ur.name,64)),Ur}function it(Gn){return cJ(Gn.expression,"___metadata")}function Ye(Gn){if(!Gn)return;const{false:Ur,true:so}=H5(Gn.decorators,it),ho=[];return Oi(ho,Vn(Ur,cr)),Oi(ho,ea(Gn.parameters,un)),Oi(ho,Vn(so,cr)),ho}function ut(Gn,Ur,so){Oi(Gn,Vn(Wt(Ur,so),ho=>r.createExpressionStatement(ho)))}function lt(Gn,Ur,so){return rG(!0,Gn,so)&&Ur===e_(Gn)}function zt(Gn,Ur){return gi(Gn.members,so=>lt(so,Ur,Gn))}function Wt(Gn,Ur){const so=zt(Gn,Ur);let ho;for(const di of so)ho=ur(ho,tt(Gn,di));return ho}function tt(Gn,Ur){const so=$2e(Ur,Gn,!0),ho=Ye(so);if(!ho)return;const di=Ut(Gn,Ur),Nc=on(Ur,!il(Ur,2)),ha=T>0?Os(Ur)&&!_k(Ur)?r.createVoidZero():r.createNull():void 0,ro=s().createDecorateHelper(ho,di,Nc,ha);return Sa(ro,3072),Sp(ro,Db(Ur)),ro}function Mn(Gn,Ur){const so=kn(Ur);so&&Gn.push(tc(r.createExpressionStatement(so),Ur))}function kn(Gn){const Ur=e4e(Gn),so=Ye(Ur);if(!so)return;const ho=I&&I[e1(Gn)],di=T<2?r.getInternalName(Gn,!1,!0):r.getDeclarationName(Gn,!1,!0),Nc=s().createDecorateHelper(so,di),ha=r.createAssignment(di,ho?r.createAssignment(ho,Nc):Nc);return Sa(ha,3072),Sp(ha,Db(Gn)),ha}function cr(Gn){return ce.checkDefined(nr(Gn.expression,V,Nr))}function un(Gn,Ur){let so;if(Gn){so=[];for(const ho of Gn){const di=s().createParamHelper(cr(ho),Ur);vr(di,ho.expression),Sa(di,3072),so.push(di)}}return so}function on(Gn,Ur){const so=Gn.name;return Gu(so)?r.createIdentifier(""):am(so)?Ur&&!aD(so.expression)?r.getGeneratedNameForNode(so):so.expression:An(so)?r.createStringLiteral(ec(so)):r.cloneNode(so)}function pn(){I||(t.enableSubstitution(80),I=[])}function Or(Gn){if(m.getNodeCheckFlags(Gn)&262144){pn();const Ur=r.createUniqueName(Gn.name&&!Om(Gn.name)?ec(Gn.name):"default");return I[e1(Gn)]=Ur,l(Ur),Ur}}function Xr(Gn){return r.createPropertyAccessExpression(r.getDeclarationName(Gn),"prototype")}function Ut(Gn,Ur){return e_(Ur)?r.getDeclarationName(Gn):Xr(Gn)}function In(Gn,Ur){return Ur=D(Gn,Ur),Gn===1?gr(Ur):Ur}function gr(Gn){switch(Gn.kind){case 80:return Cr(Gn)}return Gn}function Cr(Gn){return ei(Gn)??Gn}function ei(Gn){if(I&&m.getNodeCheckFlags(Gn)&536870912){const Ur=m.getReferencedValueDeclaration(Gn);if(Ur){const so=I[Ur.id];if(so){const ho=r.cloneNode(so);return Sp(ho,Gn),Ry(ho,Gn),ho}}}}}var FQ=G({"src/compiler/transformers/legacyDecorators.ts"(){Ad()}});function VHe(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=iu(t.getCompilerOptions());let D,I,W,O,V,ee;return Vx(t,te);function te(Re){D=void 0,ee=!1;const wt=ia(Re,_t,t);return JN(wt,t.readEmitHelpers()),ee&&(_s(wt,32),ee=!1),wt}function oe(){switch(I=void 0,W=void 0,O=void 0,D==null?void 0:D.kind){case"class":I=D.classInfo;break;case"class-element":I=D.next.classInfo,W=D.classThis,O=D.classSuper;break;case"name":const Re=D.next.next.next;(Re==null?void 0:Re.kind)==="class-element"&&(I=Re.next.classInfo,W=Re.classThis,O=Re.classSuper);break}}function de(Re){D={kind:"class",next:D,classInfo:Re,savedPendingExpressions:V},V=void 0,oe()}function ue(){ce.assert((D==null?void 0:D.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${D==null?void 0:D.kind}' instead.`),V=D.savedPendingExpressions,D=D.next,oe()}function Ne(Re){var wt,$e;ce.assert((D==null?void 0:D.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${D==null?void 0:D.kind}' instead.`),D={kind:"class-element",next:D},(nu(Re)||Os(Re)&&Ny(Re))&&(D.classThis=(wt=D.next.classInfo)==null?void 0:wt.classThis,D.classSuper=($e=D.next.classInfo)==null?void 0:$e.classSuper),oe()}function Be(){var Re;ce.assert((D==null?void 0:D.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${D==null?void 0:D.kind}' instead.`),ce.assert(((Re=D.next)==null?void 0:Re.kind)==="class","Incorrect value for top.next.kind.",()=>{var wt;return`Expected top.next.kind to be 'class' but got '${(wt=D.next)==null?void 0:wt.kind}' instead.`}),D=D.next,oe()}function Ve(){ce.assert((D==null?void 0:D.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${D==null?void 0:D.kind}' instead.`),D={kind:"name",next:D},oe()}function pt(){ce.assert((D==null?void 0:D.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${D==null?void 0:D.kind}' instead.`),D=D.next,oe()}function Le(){(D==null?void 0:D.kind)==="other"?(ce.assert(!V),D.depth++):(D={kind:"other",next:D,depth:0,savedPendingExpressions:V},V=void 0,oe())}function ht(){ce.assert((D==null?void 0:D.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${D==null?void 0:D.kind}' instead.`),D.depth>0?(ce.assert(!V),D.depth--):(V=D.savedPendingExpressions,D=D.next,oe())}function ke(Re){return!!(Re.transformFlags&33554432)||!!W&&!!(Re.transformFlags&16384)||!!W&&!!O&&!!(Re.transformFlags&134217728)}function _t(Re){if(!ke(Re))return Re;switch(Re.kind){case 170:return ce.fail("Use `modifierVisitor` instead.");case 263:return kn(Re);case 231:return cr(Re);case 176:case 172:case 175:return ce.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Nc(Re);case 226:return _u(Re,!1);case 303:return Fi(Re);case 260:return ta(Re);case 208:return $a(Re);case 277:return li(Re);case 110:return Gn(Re);case 248:return Gs(Re);case 244:return Oc(Re);case 361:return al(Re,!1);case 217:return Ir(Re,!1);case 360:return _o(Re,!1);case 213:return Ur(Re);case 215:return so(Re);case 224:case 225:return Ku(Re,!1);case 211:return ho(Re);case 212:return di(Re);case 167:return Ea(Re);case 174:case 178:case 177:case 218:case 262:{Le();const wt=ia(Re,Dt,t);return ht(),wt}default:return ia(Re,Dt,t)}}function Dt(Re){switch(Re.kind){case 170:return;default:return _t(Re)}}function Ft(Re){switch(Re.kind){case 170:return;default:return Re}}function it(Re){switch(Re.kind){case 176:return pn(Re);case 174:return Ut(Re);case 177:return In(Re);case 178:return gr(Re);case 172:return ei(Re);case 175:return Cr(Re);default:return _t(Re)}}function Ye(Re){switch(Re.kind){case 224:case 225:return Ku(Re,!0);case 226:return _u(Re,!0);case 361:return al(Re,!0);case 217:return Ir(Re,!0);default:return _t(Re)}}function ut(Re){let wt=Re.name&&An(Re.name)&&!Om(Re.name)?ec(Re.name):Re.name&&Gu(Re.name)&&!Om(Re.name)?ec(Re.name).slice(1):Re.name&&Wp(Re.name)&&rE(Re.name.text,99)?Re.name.text:Jl(Re)?"class":"member";return J2(Re)&&(wt=`get_${wt}`),_P(Re)&&(wt=`set_${wt}`),Re.name&&Gu(Re.name)&&(wt=`private_${wt}`),e_(Re)&&(wt=`static_${wt}`),"_"+wt}function lt(Re,wt){return r.createUniqueName(`${ut(Re)}_${wt}`,24)}function zt(Re,wt){return r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Re,void 0,void 0,wt)],1))}function Wt(Re){const wt=r.createUniqueName("_metadata",48);let $e,Zt,xe=!1,an=!1,Un=!1;for(const rr of Re.members)if(DN(rr)&&rG(!1,rr,Re)&&(Ny(rr)?Zt??(Zt=r.createUniqueName("_staticExtraInitializers",48)):$e??($e=r.createUniqueName("_instanceExtraInitializers",48))),nu(rr)?FW(rr)||(xe=!0):Os(rr)&&(Ny(rr)?xe||(xe=!!rr.initializer||Fx(rr)):an||(an=!eH(rr))),(Mf(rr)||rb(rr))&&Ny(rr)&&(Un=!0),Zt&&$e&&xe&&an&&Un)break;return{class:Re,metadataReference:wt,instanceExtraInitializersName:$e,staticExtraInitializersName:Zt,hasStaticInitializers:xe,hasNonAmbientInstanceFields:an,hasStaticPrivateClassElements:Un}}function tt(Re){l(),!pj(Re)&&Mx(!1,Re)&&(Re=Tme(t,Re,r.createStringLiteral("")));const wt=r.getLocalName(Re,!1,!1,!0),$e=Wt(Re),Zt=[];let xe,an,Un,rr,mi=!1;const Ji=Kn(e4e(Re));if(Ji){$e.classDecoratorsName=r.createUniqueName("_classDecorators",48),$e.classDescriptorName=r.createUniqueName("_classDescriptor",48),$e.classExtraInitializersName=r.createUniqueName("_classExtraInitializers",48);const Ha=gt(Re.members,mu=>(Mf(mu)||rb(mu))&&Ny(mu));$e.classThis=r.createUniqueName("_classThis",Ha?24:48),Zt.push(zt($e.classDecoratorsName,r.createArrayLiteralExpression(Ji)),zt($e.classDescriptorName),zt($e.classExtraInitializersName,r.createArrayLiteralExpression()),zt($e.classThis)),$e.hasStaticPrivateClassElements&&(mi=!0,ee=!0)}const zo=fG(Re.heritageClauses,96),Ca=zo&&pp(zo.types),Qa=Ca&&nr(Ca.expression,_t,Nr);if(Qa){$e.classSuper=r.createUniqueName("_classSuper",48);const Ha=rv(Qa),mu=B0(Ha)&&!Ha.name||Dm(Ha)&&!Ha.name||ph(Ha)?r.createComma(r.createNumericLiteral(0),Qa):Qa;Zt.push(zt($e.classSuper,mu));const x_=r.updateExpressionWithTypeArguments(Ca,$e.classSuper,void 0),q_=r.updateHeritageClause(zo,[x_]);rr=r.createNodeArray([q_])}const Ks=$e.classThis??r.createThis();de($e),xe=ur(xe,Ui($e.metadataReference,$e.classSuper));let vs=Fa(Re.members,it,Mv);if(V){let Ha;for(let mu of V){mu=nr(mu,function q_(Ma){if(!(Ma.transformFlags&16384))return Ma;switch(Ma.kind){case 110:return Ha||(Ha=r.createUniqueName("_outerThis",16),Zt.unshift(zt(Ha,r.createThis()))),Ha;default:return ia(Ma,q_,t)}},Nr);const x_=r.createExpressionStatement(mu);xe=ur(xe,x_)}V=void 0}if(ue(),$e.instanceExtraInitializersName&&!E2(Re)){const Ha=un(Re,$e);if(Ha){const mu=hA(Re),x_=!!(mu&&rv(mu.expression).kind!==106),q_=[];if(x_){const U0=r.createSpreadElement(r.createIdentifier("arguments")),c_=r.createCallExpression(r.createSuper(),void 0,[U0]);q_.push(r.createExpressionStatement(c_))}Oi(q_,Ha);const Ma=r.createBlock(q_,!0);Un=r.createConstructorDeclaration(void 0,[],Ma)}}if($e.staticExtraInitializersName&&Zt.push(zt($e.staticExtraInitializersName,r.createArrayLiteralExpression())),$e.instanceExtraInitializersName&&Zt.push(zt($e.instanceExtraInitializersName,r.createArrayLiteralExpression())),$e.memberInfos&&wT($e.memberInfos,(Ha,mu)=>{e_(mu)&&(Zt.push(zt(Ha.memberDecoratorsName)),Ha.memberInitializersName&&Zt.push(zt(Ha.memberInitializersName,r.createArrayLiteralExpression())),Ha.memberDescriptorName&&Zt.push(zt(Ha.memberDescriptorName)))}),$e.memberInfos&&wT($e.memberInfos,(Ha,mu)=>{e_(mu)||(Zt.push(zt(Ha.memberDecoratorsName)),Ha.memberInitializersName&&Zt.push(zt(Ha.memberInitializersName,r.createArrayLiteralExpression())),Ha.memberDescriptorName&&Zt.push(zt(Ha.memberDescriptorName)))}),xe=Oi(xe,$e.staticNonFieldDecorationStatements),xe=Oi(xe,$e.nonStaticNonFieldDecorationStatements),xe=Oi(xe,$e.staticFieldDecorationStatements),xe=Oi(xe,$e.nonStaticFieldDecorationStatements),$e.classDescriptorName&&$e.classDecoratorsName&&$e.classExtraInitializersName&&$e.classThis){xe??(xe=[]);const Ha=r.createPropertyAssignment("value",Ks),mu=r.createObjectLiteralExpression([Ha]),x_=r.createAssignment($e.classDescriptorName,mu),q_=r.createPropertyAccessExpression(Ks,"name"),Ma=s().createESDecorateHelper(r.createNull(),x_,$e.classDecoratorsName,{kind:"class",name:q_,metadata:$e.metadataReference},r.createNull(),$e.classExtraInitializersName),U0=r.createExpressionStatement(Ma);Sp(U0,$E(Re)),xe.push(U0);const c_=r.createPropertyAccessExpression($e.classDescriptorName,"value"),Kd=r.createAssignment($e.classThis,c_),iy=r.createAssignment(wt,Kd);xe.push(r.createExpressionStatement(iy))}if(xe.push(xu(Ks,$e.metadataReference)),$e.staticExtraInitializersName){const Ha=s().createRunInitializersHelper(Ks,$e.staticExtraInitializersName),mu=r.createExpressionStatement(Ha);Sp(mu,Re.name??$E(Re)),xe=ur(xe,mu)}if($e.classExtraInitializersName){const Ha=s().createRunInitializersHelper(Ks,$e.classExtraInitializersName),mu=r.createExpressionStatement(Ha);Sp(mu,Re.name??$E(Re)),an=ur(an,mu)}xe&&an&&!$e.hasStaticInitializers&&(Oi(xe,an),an=void 0);const ou=xe&&r.createClassStaticBlockDeclaration(r.createBlock(xe,!0));ou&&mi&&aW(ou,32);const qd=an&&r.createClassStaticBlockDeclaration(r.createBlock(an,!0));if(ou||Un||qd){const Ha=[],mu=vs.findIndex(FW);ou?(Oi(Ha,vs,0,mu+1),Ha.push(ou),Oi(Ha,vs,mu+1)):Oi(Ha,vs),Un&&Ha.push(Un),qd&&Ha.push(qd),vs=vr(r.createNodeArray(Ha),vs)}const z_=m();let fp;if(Ji){fp=r.createClassExpression(void 0,void 0,void 0,rr,vs),$e.classThis&&(fp=vme(r,fp,$e.classThis));const Ha=r.createVariableDeclaration(wt,void 0,void 0,fp),mu=r.createVariableDeclarationList([Ha]),x_=$e.classThis?r.createAssignment(wt,$e.classThis):wt;Zt.push(r.createVariableStatement(void 0,mu),r.createReturnStatement(x_))}else fp=r.createClassExpression(void 0,Re.name,void 0,rr,vs),Zt.push(r.createReturnStatement(fp));if(mi){_s(fp,32);for(const Ha of fp.members)(Mf(Ha)||rb(Ha))&&Ny(Ha)&&_s(Ha,32)}return tc(fp,Re),r.createImmediatelyInvokedArrowFunction(r.mergeLexicalEnvironment(Zt,z_))}function Mn(Re){return Mx(!1,Re)||oH(!1,Re)}function kn(Re){if(Mn(Re)){const wt=[],$e=Ic(Re,Jl)??Re,Zt=$e.name?r.createStringLiteralFromNode($e.name):r.createStringLiteral("default"),xe=il(Re,1),an=il(Re,1024);if(Re.name||(Re=Tme(t,Re,Zt)),xe&&an){const Un=tt(Re);if(Re.name){const rr=r.createVariableDeclaration(r.getLocalName(Re),void 0,void 0,Un);tc(rr,Re);const mi=r.createVariableDeclarationList([rr],1),Ji=r.createVariableStatement(void 0,mi);wt.push(Ji);const zo=r.createExportDefault(r.getDeclarationName(Re));tc(zo,Re),Ry(zo,lI(Re)),Sp(zo,$E(Re)),wt.push(zo)}else{const rr=r.createExportDefault(Un);tc(rr,Re),Ry(rr,lI(Re)),Sp(rr,$E(Re)),wt.push(rr)}}else{ce.assertIsDefined(Re.name,"A class declaration that is not a default export must have a name.");const Un=tt(Re),rr=xe?Ks=>fW(Ks)?void 0:Ft(Ks):Ft,mi=Fa(Re.modifiers,rr,bd),Ji=r.getLocalName(Re,!1,!0),zo=r.createVariableDeclaration(Ji,void 0,void 0,Un);tc(zo,Re);const Ca=r.createVariableDeclarationList([zo],1),Qa=r.createVariableStatement(mi,Ca);if(tc(Qa,Re),Ry(Qa,lI(Re)),wt.push(Qa),xe){const Ks=r.createExternalModuleExport(Ji);tc(Ks,Re),wt.push(Ks)}}return N0(wt)}else{const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.heritageClauses,_t,rT);de(void 0);const Zt=Fa(Re.members,it,Mv);return ue(),r.updateClassDeclaration(Re,wt,Re.name,void 0,$e,Zt)}}function cr(Re){if(Mn(Re)){const wt=tt(Re);return tc(wt,Re),wt}else{const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.heritageClauses,_t,rT);de(void 0);const Zt=Fa(Re.members,it,Mv);return ue(),r.updateClassExpression(Re,wt,Re.name,void 0,$e,Zt)}}function un(Re,wt){if(wt.instanceExtraInitializersName&&!wt.hasNonAmbientInstanceFields){const $e=[];return $e.push(r.createExpressionStatement(s().createRunInitializersHelper(r.createThis(),wt.instanceExtraInitializersName))),$e}}function on(Re,wt,$e,Zt,xe,an){const Un=Zt[xe],rr=wt[Un];if(Oi(Re,Fa(wt,_t,uf,$e,Un-$e)),AR(rr)){const mi=[];on(mi,rr.tryBlock.statements,0,Zt,xe+1,an);const Ji=r.createNodeArray(mi);vr(Ji,rr.tryBlock.statements),Re.push(r.updateTryStatement(rr,r.updateBlock(rr.tryBlock,mi),nr(rr.catchClause,_t,CP),nr(rr.finallyBlock,_t,E_)))}else Oi(Re,Fa(wt,_t,uf,Un,1)),Oi(Re,an);Oi(Re,Fa(wt,_t,uf,Un+1))}function pn(Re){Ne(Re);const wt=Fa(Re.modifiers,Ft,bd),$e=Fa(Re.parameters,_t,Pu);let Zt;if(Re.body&&I){const xe=un(I.class,I);if(xe){const an=[],Un=r.copyPrologue(Re.body.statements,an,!1,_t),rr=IA(Re.body.statements,Un);rr.length>0?on(an,Re.body.statements,Un,rr,0,xe):(Oi(an,xe),Oi(an,Fa(Re.body.statements,_t,uf))),Zt=r.createBlock(an,!0),tc(Zt,Re.body),vr(Zt,Re.body)}}return Zt??(Zt=nr(Re.body,_t,E_)),Be(),r.updateConstructorDeclaration(Re,wt,$e,Zt)}function Or(Re,wt){return Re!==wt&&(Ry(Re,wt),Sp(Re,$E(wt))),Re}function Xr(Re,wt,$e){let Zt,xe,an,Un,rr;if(!wt){const zo=Fa(Re.modifiers,Ft,bd);return Ve(),xe=mc(Re.name),pt(),{modifiers:zo,referencedName:Zt,name:xe,initializersName:an,descriptorName:rr,thisArg:Un}}const mi=Kn($2e(Re,wt.class,!1)),Ji=Fa(Re.modifiers,Ft,bd);if(mi){const zo=lt(Re,"decorators"),Ca=r.createArrayLiteralExpression(mi),Qa=r.createAssignment(zo,Ca),Ks={memberDecoratorsName:zo};wt.memberInfos??(wt.memberInfos=new Map),wt.memberInfos.set(Re,Ks),V??(V=[]),V.push(Qa);const vs=c7(Re)||rb(Re)?e_(Re)?wt.staticNonFieldDecorationStatements??(wt.staticNonFieldDecorationStatements=[]):wt.nonStaticNonFieldDecorationStatements??(wt.nonStaticNonFieldDecorationStatements=[]):Os(Re)&&!rb(Re)?e_(Re)?wt.staticFieldDecorationStatements??(wt.staticFieldDecorationStatements=[]):wt.nonStaticFieldDecorationStatements??(wt.nonStaticFieldDecorationStatements=[]):ce.fail(),ou=tm(Re)?"getter":Ep(Re)?"setter":em(Re)?"method":rb(Re)?"accessor":Os(Re)?"field":ce.fail();let qd;if(An(Re.name)||Gu(Re.name))qd={computed:!1,name:Re.name};else if(yA(Re.name))qd={computed:!0,name:r.createStringLiteralFromNode(Re.name)};else{const Ha=Re.name.expression;yA(Ha)&&!An(Ha)?qd={computed:!0,name:r.createStringLiteralFromNode(Ha)}:(Ve(),{referencedName:Zt,name:xe}=Rr(Re.name),qd={computed:!0,name:Zt},pt())}const z_={kind:ou,name:qd,static:e_(Re),private:Gu(Re.name),access:{get:Os(Re)||tm(Re)||em(Re),set:Os(Re)||Ep(Re)},metadata:wt.metadataReference},fp=e_(Re)?wt.staticExtraInitializersName??(wt.staticExtraInitializersName=r.createUniqueName("_staticExtraInitializers",48)):wt.instanceExtraInitializersName??(wt.instanceExtraInitializersName=r.createUniqueName("_instanceExtraInitializers",48));if(c7(Re)){let Ha;Mf(Re)&&$e&&(Ha=$e(Re,Fa(Ji,q_=>to(q_,Lu),bd)),Ks.memberDescriptorName=rr=lt(Re,"descriptor"),Ha=r.createAssignment(rr,Ha));const mu=s().createESDecorateHelper(r.createThis(),Ha??r.createNull(),zo,z_,r.createNull(),fp),x_=r.createExpressionStatement(mu);Sp(x_,$E(Re)),vs.push(x_)}else if(Os(Re)){an=Ks.memberInitializersName??(Ks.memberInitializersName=lt(Re,"initializers")),e_(Re)&&(Un=wt.classThis);let Ha;Mf(Re)&&_k(Re)&&$e&&(Ha=$e(Re,void 0),Ks.memberDescriptorName=rr=lt(Re,"descriptor"),Ha=r.createAssignment(rr,Ha));const mu=s().createESDecorateHelper(rb(Re)?r.createThis():r.createNull(),Ha??r.createNull(),zo,z_,an,fp),x_=r.createExpressionStatement(mu);Sp(x_,$E(Re)),vs.push(x_)}}return xe===void 0&&(Ve(),xe=mc(Re.name),pt()),!gt(Ji)&&(em(Re)||Os(Re))&&Sa(xe,1024),{modifiers:Ji,referencedName:Zt,name:xe,initializersName:an,descriptorName:rr,thisArg:Un}}function Ut(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,mt);if(Zt)return Be(),Or(Qr(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateMethodDeclaration(Re,wt,Re.asteriskToken,$e,void 0,void 0,xe,void 0,an),Re)}}function In(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,_r);if(Zt)return Be(),Or(co(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateGetAccessorDeclaration(Re,wt,$e,xe,void 0,an),Re)}}function gr(Re){Ne(Re);const{modifiers:wt,name:$e,descriptorName:Zt}=Xr(Re,I,Cn);if(Zt)return Be(),Or(es(wt,$e,Zt),Re);{const xe=Fa(Re.parameters,_t,Pu),an=nr(Re.body,_t,E_);return Be(),Or(r.updateSetAccessorDeclaration(Re,wt,$e,xe,an),Re)}}function Cr(Re){Ne(Re);let wt;if(FW(Re))wt=ia(Re,_t,t);else if(Mae(Re)){const $e=W;W=void 0,wt=ia(Re,_t,t),W=$e}else I&&(I.hasStaticInitializers=!0),wt=ia(Re,_t,t);return Be(),wt}function ei(Re){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),Ne(Re),ce.assert(!eH(Re),"Not yet implemented.");const{modifiers:wt,name:$e,initializersName:Zt,descriptorName:xe,thisArg:an}=Xr(Re,I,_k(Re)?oi:void 0);l();let Un=nr(Re.initializer,_t,Nr);Zt&&(Un=s().createRunInitializersHelper(an??r.createThis(),Zt,Un??r.createVoidZero())),!e_(Re)&&(I!=null&&I.instanceExtraInitializersName)&&!(I!=null&&I.hasInjectedInstanceInitializers)&&(I.hasInjectedInstanceInitializers=!0,Un??(Un=r.createVoidZero()),Un=r.createParenthesizedExpression(r.createComma(s().createRunInitializersHelper(r.createThis(),I.instanceExtraInitializersName),Un))),e_(Re)&&I&&Un&&(I.hasStaticInitializers=!0);const rr=m();if(gt(rr)&&(Un=r.createImmediatelyInvokedArrowFunction([...rr,r.createReturnStatement(Un)])),Be(),_k(Re)&&xe){const mi=lI(Re),Ji=cE(Re),zo=Re.name;let Ca=zo,Qa=zo;if(am(zo)&&!aD(zo.expression)){const z_=HEe(zo);if(z_)Ca=r.updateComputedPropertyName(zo,nr(zo.expression,_t,Nr)),Qa=r.updateComputedPropertyName(zo,z_.left);else{const fp=r.createTempVariable(y);Sp(fp,zo.expression);const Ha=nr(zo.expression,_t,Nr),mu=r.createAssignment(fp,Ha);Sp(mu,zo.expression),Ca=r.updateComputedPropertyName(zo,mu),Qa=r.updateComputedPropertyName(zo,fp)}}const Ks=Fa(wt,z_=>z_.kind!==129?z_:void 0,bd),vs=$J(r,Re,Ks,Un);tc(vs,Re),Sa(vs,3072),Sp(vs,Ji),Sp(vs.name,Re.name);const ou=co(Ks,Ca,xe);tc(ou,Re),Ry(ou,mi),Sp(ou,Ji);const qd=es(Ks,Qa,xe);return tc(qd,Re),Sa(qd,3072),Sp(qd,Ji),[vs,ou,qd]}return Or(r.updatePropertyDeclaration(Re,wt,$e,void 0,void 0,Un),Re)}function Gn(Re){return W??Re}function Ur(Re){if(Z1(Re.expression)&&W){const wt=nr(Re.expression,_t,Nr),$e=Fa(Re.arguments,_t,Nr),Zt=r.createFunctionCallCall(wt,W,$e);return tc(Zt,Re),vr(Zt,Re),Zt}return ia(Re,_t,t)}function so(Re){if(Z1(Re.tag)&&W){const wt=nr(Re.tag,_t,Nr),$e=r.createFunctionBindCall(wt,W,[]);tc($e,Re),vr($e,Re);const Zt=nr(Re.template,_t,m9);return r.updateTaggedTemplateExpression(Re,$e,void 0,Zt)}return ia(Re,_t,t)}function ho(Re){if(Z1(Re)&&An(Re.name)&&W&&O){const wt=r.createStringLiteralFromNode(Re.name),$e=r.createReflectGetCall(O,wt,W);return tc($e,Re.expression),vr($e,Re.expression),$e}return ia(Re,_t,t)}function di(Re){if(Z1(Re)&&W&&O){const wt=nr(Re.argumentExpression,_t,Nr),$e=r.createReflectGetCall(O,wt,W);return tc($e,Re.expression),vr($e,Re.expression),$e}return ia(Re,_t,t)}function Nc(Re){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer)));const wt=r.updateParameterDeclaration(Re,void 0,Re.dotDotDotToken,nr(Re.name,_t,f9),void 0,void 0,nr(Re.initializer,_t,Nr));return wt!==Re&&(Ry(wt,Re),vr(wt,Db(Re)),Sp(wt,Db(Re)),Sa(wt.name,64)),wt}function ha(Re){return B0(Re)&&!Re.name&&Mn(Re)}function ro(Re){const wt=rv(Re);return B0(wt)&&!wt.name&&!Mx(!1,wt)}function Gs(Re){return r.updateForStatement(Re,nr(Re.initializer,Ye,mA),nr(Re.condition,_t,Nr),nr(Re.incrementor,Ye,Nr),pE(Re.statement,_t,t))}function Oc(Re){return ia(Re,Ye,t)}function _u(Re,wt){if(Tg(Re)){const $e=Jr(Re.left),Zt=nr(Re.right,_t,Nr);return r.updateBinaryExpression(Re,$e,Re.operatorToken,Zt)}if(wy(Re)){if(Hd(Re,ha))return Re=ax(t,Re,ro(Re.right)),ia(Re,_t,t);if(Z1(Re.left)&&W&&O){let $e=Ed(Re.left)?nr(Re.left.argumentExpression,_t,Nr):An(Re.left.name)?r.createStringLiteralFromNode(Re.left.name):void 0;if($e){let Zt=nr(Re.right,_t,Nr);if(sj(Re.operatorToken.kind)){let an=$e;aD($e)||(an=r.createTempVariable(y),$e=r.createAssignment(an,$e));const Un=r.createReflectGetCall(O,an,W);tc(Un,Re.left),vr(Un,Re.left),Zt=r.createBinaryExpression(Un,wQ(Re.operatorToken.kind),Zt),vr(Zt,Re)}const xe=wt?void 0:r.createTempVariable(y);return xe&&(Zt=r.createAssignment(xe,Zt),vr(xe,Re)),Zt=r.createReflectSetCall(O,$e,Zt,W),tc(Zt,Re),vr(Zt,Re),xe&&(Zt=r.createComma(Zt,xe),vr(Zt,Re)),Zt}}}if(Re.operatorToken.kind===28){const $e=nr(Re.left,Ye,Nr),Zt=nr(Re.right,wt?Ye:_t,Nr);return r.updateBinaryExpression(Re,$e,Re.operatorToken,Zt)}return ia(Re,_t,t)}function Ku(Re,wt){if(Re.operator===46||Re.operator===47){const $e=_g(Re.operand);if(Z1($e)&&W&&O){let Zt=Ed($e)?nr($e.argumentExpression,_t,Nr):An($e.name)?r.createStringLiteralFromNode($e.name):void 0;if(Zt){let xe=Zt;aD(Zt)||(xe=r.createTempVariable(y),Zt=r.createAssignment(xe,Zt));let an=r.createReflectGetCall(O,xe,W);tc(an,Re),vr(an,Re);const Un=wt?void 0:r.createTempVariable(y);return an=REe(r,Re,an,y,Un),an=r.createReflectSetCall(O,Zt,an,W),tc(an,Re),vr(an,Re),Un&&(an=r.createComma(an,Un),vr(an,Re)),an}}}return ia(Re,_t,t)}function al(Re,wt){const $e=wt?fme(Re.elements,Ye):fme(Re.elements,_t,Ye);return r.updateCommaListExpression(Re,$e)}function Rr(Re){if(yA(Re)||Gu(Re)){const an=r.createStringLiteralFromNode(Re),Un=nr(Re,_t,fy);return{referencedName:an,name:Un}}if(yA(Re.expression)&&!An(Re.expression)){const an=r.createStringLiteralFromNode(Re.expression),Un=nr(Re,_t,fy);return{referencedName:an,name:Un}}const wt=r.getGeneratedNameForNode(Re);y(wt);const $e=s().createPropKeyHelper(nr(Re.expression,_t,Nr)),Zt=r.createAssignment(wt,$e),xe=r.updateComputedPropertyName(Re,xt(Zt));return{referencedName:wt,name:xe}}function mc(Re){return am(Re)?Ea(Re):nr(Re,_t,fy)}function Ea(Re){let wt=nr(Re.expression,_t,Nr);return aD(wt)||(wt=xt(wt)),r.updateComputedPropertyName(Re,wt)}function Fi(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function ta(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function $a(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.initializer))),ia(Re,_t,t)}function jc(Re){if(Wd(Re)||Ch(Re))return Jr(Re);if(Z1(Re)&&W&&O){const wt=Ed(Re)?nr(Re.argumentExpression,_t,Nr):An(Re.name)?r.createStringLiteralFromNode(Re.name):void 0;if(wt){const $e=r.createTempVariable(void 0),Zt=r.createAssignmentTargetWrapper($e,r.createReflectSetCall(O,wt,$e,W));return tc(Zt,Re),vr(Zt,Re),Zt}}return ia(Re,_t,t)}function Xu(Re){if(wy(Re,!0)){Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.right)));const wt=jc(Re.left),$e=nr(Re.right,_t,Nr);return r.updateBinaryExpression(Re,wt,Re.operatorToken,$e)}else return jc(Re)}function Lo(Re){if(FE(Re.expression)){const wt=jc(Re.expression);return r.updateSpreadElement(Re,wt)}return ia(Re,_t,t)}function To(Re){return ce.assertNode(Re,uR),ex(Re)?Lo(Re):t0(Re)?ia(Re,_t,t):Xu(Re)}function Aa(Re){const wt=nr(Re.name,_t,fy);if(wy(Re.initializer,!0)){const $e=Xu(Re.initializer);return r.updatePropertyAssignment(Re,wt,$e)}if(FE(Re.initializer)){const $e=jc(Re.initializer);return r.updatePropertyAssignment(Re,wt,$e)}return ia(Re,_t,t)}function sl(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.objectAssignmentInitializer))),ia(Re,_t,t)}function vc(Re){if(FE(Re.expression)){const wt=jc(Re.expression);return r.updateSpreadAssignment(Re,wt)}return ia(Re,_t,t)}function er(Re){return ce.assertNode(Re,KX),xk(Re)?vc(Re):BT(Re)?sl(Re):Fm(Re)?Aa(Re):ia(Re,_t,t)}function Jr(Re){if(Ch(Re)){const wt=Fa(Re.elements,To,Nr);return r.updateArrayLiteralExpression(Re,wt)}else{const wt=Fa(Re.properties,er,KD);return r.updateObjectLiteralExpression(Re,wt)}}function li(Re){return Hd(Re,ha)&&(Re=ax(t,Re,ro(Re.expression))),ia(Re,_t,t)}function Ir(Re,wt){const $e=wt?Ye:_t,Zt=nr(Re.expression,$e,Nr);return r.updateParenthesizedExpression(Re,Zt)}function _o(Re,wt){const $e=wt?Ye:_t,Zt=nr(Re.expression,$e,Nr);return r.updatePartiallyEmittedExpression(Re,Zt)}function xt(Re){return gt(V)&&(sb(Re)?(V.push(Re.expression),Re=r.updateParenthesizedExpression(Re,r.inlineExpressions(V))):(V.push(Re),Re=r.inlineExpressions(V)),V=void 0),Re}function Kn(Re){if(!Re)return;const wt=[];return Oi(wt,Vn(Re.decorators,gn)),wt}function gn(Re){const wt=nr(Re.expression,_t,Nr);Sa(wt,3072);const $e=rv(wt);if(Kf($e)){const{target:Zt,thisArg:xe}=r.createCallBinding(wt,y,T,!0);return r.restoreOuterExpressions(wt,r.createFunctionBindCall(Zt,xe,[]))}return wt}function qr(Re,wt,$e,Zt,xe,an,Un){const rr=r.createFunctionExpression($e,Zt,void 0,void 0,an,void 0,Un??r.createBlock([]));tc(rr,Re),Sp(rr,$E(Re)),Sa(rr,3072);const mi=xe==="get"||xe==="set"?xe:void 0,Ji=r.createStringLiteralFromNode(wt,void 0),zo=s().createSetFunctionNameHelper(rr,Ji,mi),Ca=r.createPropertyAssignment(r.createIdentifier(xe),zo);return tc(Ca,Re),Sp(Ca,$E(Re)),Sa(Ca,3072),Ca}function mt(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,Re.asteriskToken,"value",Fa(Re.parameters,_t,Pu),nr(Re.body,_t,E_))])}function _r(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"get",[],nr(Re.body,_t,E_))])}function Cn(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"set",Fa(Re.parameters,_t,Pu),nr(Re.body,_t,E_))])}function oi(Re,wt){return r.createObjectLiteralExpression([qr(Re,Re.name,wt,void 0,"get",[],r.createBlock([r.createReturnStatement(r.createPropertyAccessExpression(r.createThis(),r.getGeneratedPrivateNameForNode(Re.name)))])),qr(Re,Re.name,wt,void 0,"set",[r.createParameterDeclaration(void 0,void 0,"value")],r.createBlock([r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createThis(),r.getGeneratedPrivateNameForNode(Re.name)),r.createIdentifier("value")))]))])}function Qr(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createGetAccessorDeclaration(Re,wt,[],void 0,r.createBlock([r.createReturnStatement(r.createPropertyAccessExpression($e,r.createIdentifier("value")))]))}function co(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createGetAccessorDeclaration(Re,wt,[],void 0,r.createBlock([r.createReturnStatement(r.createFunctionCallCall(r.createPropertyAccessExpression($e,r.createIdentifier("get")),r.createThis(),[]))]))}function es(Re,wt,$e){return Re=Fa(Re,Zt=>dW(Zt)?Zt:void 0,bd),r.createSetAccessorDeclaration(Re,wt,[r.createParameterDeclaration(void 0,void 0,"value")],r.createBlock([r.createReturnStatement(r.createFunctionCallCall(r.createPropertyAccessExpression($e,r.createIdentifier("set")),r.createThis(),[r.createIdentifier("value")]))]))}function Ui(Re,wt){const $e=r.createVariableDeclaration(Re,void 0,void 0,r.createConditionalExpression(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("Symbol"),"function"),r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata")),r.createToken(58),r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"create"),void 0,[wt?We(wt):r.createNull()]),r.createToken(59),r.createVoidZero()));return r.createVariableStatement(void 0,r.createVariableDeclarationList([$e],2))}function xu(Re,wt){const $e=r.createObjectDefinePropertyCall(Re,r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata"),r.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:wt},!0));return Sa(r.createIfStatement(wt,r.createExpressionStatement($e)),1)}function We(Re){return r.createBinaryExpression(r.createElementAccessExpression(Re,r.createPropertyAccessExpression(r.createIdentifier("Symbol"),"metadata")),61,r.createNull())}}var _4e=G({"src/compiler/transformers/esDecorators.ts"(){Ad()}});function UHe(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=t.getEmitResolver(),D=t.getCompilerOptions(),I=iu(D);let W,O=0,V,ee,te;const oe=[];let de=0;const ue=t.onEmitNode,Ne=t.onSubstituteNode;return t.onEmitNode=Nc,t.onSubstituteNode=ha,Vx(t,Be);function Be(Rr){if(Rr.isDeclarationFile)return Rr;Ve(1,!1),Ve(2,!gde(Rr,D));const mc=ia(Rr,Dt,t);return JN(mc,t.readEmitHelpers()),mc}function Ve(Rr,mc){de=mc?de|Rr:de&~Rr}function pt(Rr){return(de&Rr)!==0}function Le(){return!pt(1)}function ht(){return pt(2)}function ke(Rr,mc,Ea){const Fi=Rr&~de;if(Fi){Ve(Fi,!0);const ta=mc(Ea);return Ve(Fi,!1),ta}return mc(Ea)}function _t(Rr){return ia(Rr,Dt,t)}function Dt(Rr){if(!(Rr.transformFlags&256))return Rr;switch(Rr.kind){case 134:return;case 223:return Wt(Rr);case 174:return ke(3,Mn,Rr);case 262:return ke(3,un,Rr);case 218:return ke(3,on,Rr);case 219:return ke(1,pn,Rr);case 211:return ee&&sa(Rr)&&Rr.expression.kind===108&&ee.add(Rr.name.escapedText),ia(Rr,Dt,t);case 212:return ee&&Rr.expression.kind===108&&(te=!0),ia(Rr,Dt,t);case 177:return ke(3,kn,Rr);case 178:return ke(3,cr,Rr);case 176:return ke(3,tt,Rr);case 263:case 231:return ke(3,_t,Rr);default:return ia(Rr,Dt,t)}}function Ft(Rr){if(uSe(Rr))switch(Rr.kind){case 243:return Ye(Rr);case 248:return zt(Rr);case 249:return ut(Rr);case 250:return lt(Rr);case 299:return it(Rr);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return ia(Rr,Ft,t);default:return ce.assertNever(Rr,"Unhandled node.")}return Dt(Rr)}function it(Rr){const mc=new Set;Or(Rr.variableDeclaration,mc);let Ea;if(mc.forEach((Fi,ta)=>{V.has(ta)&&(Ea||(Ea=new Set(V)),Ea.delete(ta))}),Ea){const Fi=V;V=Ea;const ta=ia(Rr,Ft,t);return V=Fi,ta}else return ia(Rr,Ft,t)}function Ye(Rr){if(Xr(Rr.declarationList)){const mc=Ut(Rr.declarationList,!1);return mc?r.createExpressionStatement(mc):void 0}return ia(Rr,Dt,t)}function ut(Rr){return r.updateForInStatement(Rr,Xr(Rr.initializer)?Ut(Rr.initializer,!0):ce.checkDefined(nr(Rr.initializer,Dt,mA)),ce.checkDefined(nr(Rr.expression,Dt,Nr)),pE(Rr.statement,Ft,t))}function lt(Rr){return r.updateForOfStatement(Rr,nr(Rr.awaitModifier,Dt,zY),Xr(Rr.initializer)?Ut(Rr.initializer,!0):ce.checkDefined(nr(Rr.initializer,Dt,mA)),ce.checkDefined(nr(Rr.expression,Dt,Nr)),pE(Rr.statement,Ft,t))}function zt(Rr){const mc=Rr.initializer;return r.updateForStatement(Rr,Xr(mc)?Ut(mc,!1):nr(Rr.initializer,Dt,mA),nr(Rr.condition,Dt,Nr),nr(Rr.incrementor,Dt,Nr),pE(Rr.statement,Ft,t))}function Wt(Rr){return Le()?ia(Rr,Dt,t):tc(vr(r.createYieldExpression(void 0,nr(Rr.expression,Dt,Nr)),Rr),Rr)}function tt(Rr){return r.updateConstructorDeclaration(Rr,Fa(Rr.modifiers,Dt,bd),Bn(Rr.parameters,Dt,t),Gn(Rr))}function Mn(Rr){return r.updateMethodDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.asteriskToken,Rr.name,void 0,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):Gn(Rr))}function kn(Rr){return r.updateGetAccessorDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.name,Bn(Rr.parameters,Dt,t),void 0,Gn(Rr))}function cr(Rr){return r.updateSetAccessorDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.name,Bn(Rr.parameters,Dt,t),Gn(Rr))}function un(Rr){return r.updateFunctionDeclaration(Rr,Fa(Rr.modifiers,Dt,pc),Rr.asteriskToken,Rr.name,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function on(Rr){return r.updateFunctionExpression(Rr,Fa(Rr.modifiers,Dt,bd),Rr.asteriskToken,Rr.name,void 0,Bn(Rr.parameters,Dt,t),void 0,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function pn(Rr){return r.updateArrowFunction(Rr,Fa(Rr.modifiers,Dt,bd),void 0,Bn(Rr.parameters,Dt,t),void 0,Rr.equalsGreaterThanToken,L0(Rr)&2?Ur(Rr):sm(Rr.body,Dt,t))}function Or({name:Rr},mc){if(An(Rr))mc.add(Rr.escapedText);else for(const Ea of Rr.elements)t0(Ea)||Or(Ea,mc)}function Xr(Rr){return!!Rr&&My(Rr)&&!(Rr.flags&7)&&Rr.declarations.some(ei)}function Ut(Rr,mc){In(Rr);const Ea=n3(Rr);return Ea.length===0?mc?nr(r.converters.convertToAssignmentElementTarget(Rr.declarations[0].name),Dt,Nr):void 0:r.inlineExpressions(Vn(Ea,Cr))}function In(Rr){Ot(Rr.declarations,gr)}function gr({name:Rr}){if(An(Rr))y(Rr);else for(const mc of Rr.elements)t0(mc)||gr(mc)}function Cr(Rr){const mc=Sp(r.createAssignment(r.converters.convertToAssignmentElementTarget(Rr.name),Rr.initializer),Rr);return ce.checkDefined(nr(mc,Dt,Nr))}function ei({name:Rr}){if(An(Rr))return V.has(Rr.escapedText);for(const mc of Rr.elements)if(!t0(mc)&&ei(mc))return!0;return!1}function Gn(Rr){ce.assertIsDefined(Rr.body);const mc=ee,Ea=te;ee=new Set,te=!1;let Fi=sm(Rr.body,Dt,t);const ta=Ic(Rr,J_);if(I>=2&&T.getNodeCheckFlags(Rr)&384&&(L0(ta)&3)!==3){if(di(),ee.size){const jc=Lae(r,T,Rr,ee);oe[Im(jc)]=!0;const Xu=Fi.statements.slice();v2(Xu,[jc]),Fi=r.updateBlock(Fi,Xu)}te&&(T.getNodeCheckFlags(Rr)&256?lW(Fi,PG):T.getNodeCheckFlags(Rr)&128&&lW(Fi,kG))}return ee=mc,te=Ea,Fi}function Ur(Rr){l();const Ea=Ic(Rr,S_).type,Fi=I<2?ho(Ea):void 0,ta=Rr.kind===219,$a=(T.getNodeCheckFlags(Rr)&512)!==0,jc=V;V=new Set;for(const Aa of Rr.parameters)Or(Aa,V);const Xu=ee,Lo=te;ta||(ee=new Set,te=!1);let To;if(ta){const Aa=s().createAwaiterHelper(ht(),$a,Fi,so(Rr.body)),sl=m();if(gt(sl)){const vc=r.converters.convertToFunctionBlock(Aa);To=r.updateBlock(vc,vr(r.createNodeArray(Hi(sl,vc.statements)),vc.statements))}else To=Aa}else{const Aa=[],sl=r.copyPrologue(Rr.body.statements,Aa,!1,Dt);Aa.push(r.createReturnStatement(s().createAwaiterHelper(ht(),$a,Fi,so(Rr.body,sl)))),v2(Aa,m());const vc=I>=2&&T.getNodeCheckFlags(Rr)&384;if(vc&&(di(),ee.size)){const Jr=Lae(r,T,Rr,ee);oe[Im(Jr)]=!0,v2(Aa,[Jr])}const er=r.createBlock(Aa,!0);vr(er,Rr.body),vc&&te&&(T.getNodeCheckFlags(Rr)&256?lW(er,PG):T.getNodeCheckFlags(Rr)&128&&lW(er,kG)),To=er}return V=jc,ta||(ee=Xu,te=Lo),To}function so(Rr,mc){return E_(Rr)?r.updateBlock(Rr,Fa(Rr.statements,Ft,uf,mc)):r.converters.convertToFunctionBlock(ce.checkDefined(nr(Rr,Ft,tie)))}function ho(Rr){const mc=Rr&&iH(Rr);if(mc&&Vd(mc)){const Ea=T.getTypeReferenceSerializationKind(mc);if(Ea===1||Ea===0)return mc}}function di(){W&1||(W|=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 Nc(Rr,mc,Ea){if(W&1&&Ku(mc)){const Fi=T.getNodeCheckFlags(mc)&384;if(Fi!==O){const ta=O;O=Fi,ue(Rr,mc,Ea),O=ta;return}}else if(W&&oe[Im(mc)]){const Fi=O;O=0,ue(Rr,mc,Ea),O=Fi;return}ue(Rr,mc,Ea)}function ha(Rr,mc){return mc=Ne(Rr,mc),Rr===1&&O?ro(mc):mc}function ro(Rr){switch(Rr.kind){case 211:return Gs(Rr);case 212:return Oc(Rr);case 213:return _u(Rr)}return Rr}function Gs(Rr){return Rr.expression.kind===108?vr(r.createPropertyAccessExpression(r.createUniqueName("_super",48),Rr.name),Rr):Rr}function Oc(Rr){return Rr.expression.kind===108?al(Rr.argumentExpression,Rr):Rr}function _u(Rr){const mc=Rr.expression;if(Z1(mc)){const Ea=sa(mc)?Gs(mc):Oc(mc);return r.createCallExpression(r.createPropertyAccessExpression(Ea,"call"),void 0,[r.createThis(),...Rr.arguments])}return Rr}function Ku(Rr){const mc=Rr.kind;return mc===263||mc===176||mc===174||mc===177||mc===178}function al(Rr,mc){return O&256?vr(r.createPropertyAccessExpression(r.createCallExpression(r.createUniqueName("_superIndex",48),void 0,[Rr]),"value"),mc):vr(r.createCallExpression(r.createUniqueName("_superIndex",48),void 0,[Rr]),mc)}}function Lae(t,r,s,l){const m=(r.getNodeCheckFlags(s)&256)!==0,y=[];return l.forEach((T,D)=>{const I=lf(D),W=[];W.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Sa(t.createPropertyAccessExpression(Sa(t.createSuper(),8),I),8)))),m&&W.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(Sa(t.createPropertyAccessExpression(Sa(t.createSuper(),8),I),8),t.createIdentifier("v"))))),y.push(t.createPropertyAssignment(I,t.createObjectLiteralExpression(W)))}),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(y,!0)]))],2))}var lct=G({"src/compiler/transformers/es2017.ts"(){Ad()}});function Z2e(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistVariableDeclaration:y}=t,T=t.getEmitResolver(),D=t.getCompilerOptions(),I=iu(D),W=t.onEmitNode;t.onEmitNode=Aa;const O=t.onSubstituteNode;t.onSubstituteNode=sl;let V=!1,ee,te,oe,de=0,ue=0,Ne,Be,Ve,pt;const Le=[];return Vx(t,Ft);function ht(xt,Kn){return ue!==(ue&~xt|Kn)}function ke(xt,Kn){const gn=ue;return ue=(ue&~xt|Kn)&3,gn}function _t(xt){ue=xt}function Dt(xt){Be=ur(Be,r.createVariableDeclaration(xt))}function Ft(xt){if(xt.isDeclarationFile)return xt;Ne=xt;const Kn=Xr(xt);return JN(Kn,t.readEmitHelpers()),Ne=void 0,Be=void 0,Kn}function it(xt){return Wt(xt,!1)}function Ye(xt){return Wt(xt,!0)}function ut(xt){if(xt.kind!==134)return xt}function lt(xt,Kn,gn,qr){if(ht(gn,qr)){const mt=ke(gn,qr),_r=xt(Kn);return _t(mt),_r}return xt(Kn)}function zt(xt){return ia(xt,it,t)}function Wt(xt,Kn){if(!(xt.transformFlags&128))return xt;switch(xt.kind){case 223:return tt(xt);case 229:return Mn(xt);case 253:return kn(xt);case 256:return cr(xt);case 210:return on(xt);case 226:return In(xt,Kn);case 361:return gr(xt,Kn);case 299:return Cr(xt);case 243:return ei(xt);case 260:return Gn(xt);case 246:case 247:case 249:return lt(zt,xt,0,2);case 250:return di(xt,void 0);case 248:return lt(so,xt,0,2);case 222:return ho(xt);case 176:return lt(al,xt,2,1);case 174:return lt(Ea,xt,2,1);case 177:return lt(Rr,xt,2,1);case 178:return lt(mc,xt,2,1);case 262:return lt(Fi,xt,2,1);case 218:return lt($a,xt,2,1);case 219:return lt(ta,xt,2,0);case 169:return _u(xt);case 244:return pn(xt);case 217:return Or(xt,Kn);case 215:return Ut(xt);case 211:return Ve&&sa(xt)&&xt.expression.kind===108&&Ve.add(xt.name.escapedText),ia(xt,it,t);case 212:return Ve&&xt.expression.kind===108&&(pt=!0),ia(xt,it,t);case 263:case 231:return lt(zt,xt,2,1);default:return ia(xt,it,t)}}function tt(xt){return te&2&&te&1?tc(vr(r.createYieldExpression(void 0,s().createAwaitHelper(nr(xt.expression,it,Nr))),xt),xt):ia(xt,it,t)}function Mn(xt){if(te&2&&te&1){if(xt.asteriskToken){const Kn=nr(ce.checkDefined(xt.expression),it,Nr);return tc(vr(r.createYieldExpression(void 0,s().createAwaitHelper(r.updateYieldExpression(xt,xt.asteriskToken,vr(s().createAsyncDelegatorHelper(vr(s().createAsyncValuesHelper(Kn),Kn)),Kn)))),xt),xt)}return tc(vr(r.createYieldExpression(void 0,ro(xt.expression?nr(xt.expression,it,Nr):r.createVoidZero())),xt),xt)}return ia(xt,it,t)}function kn(xt){return te&2&&te&1?r.updateReturnStatement(xt,ro(xt.expression?nr(xt.expression,it,Nr):r.createVoidZero())):ia(xt,it,t)}function cr(xt){if(te&2){const Kn=eG(xt);return Kn.kind===250&&Kn.awaitModifier?di(Kn,xt):r.restoreEnclosingLabel(nr(Kn,it,uf,r.liftToBlock),xt)}return ia(xt,it,t)}function un(xt){let Kn;const gn=[];for(const qr of xt)if(qr.kind===305){Kn&&(gn.push(r.createObjectLiteralExpression(Kn)),Kn=void 0);const mt=qr.expression;gn.push(nr(mt,it,Nr))}else Kn=ur(Kn,qr.kind===303?r.createPropertyAssignment(qr.name,nr(qr.initializer,it,Nr)):nr(qr,it,KD));return Kn&&gn.push(r.createObjectLiteralExpression(Kn)),gn}function on(xt){if(xt.transformFlags&65536){const Kn=un(xt.properties);Kn.length&&Kn[0].kind!==210&&Kn.unshift(r.createObjectLiteralExpression());let gn=Kn[0];if(Kn.length>1){for(let qr=1;qr=2&&T.getNodeCheckFlags(xt)&384;if(Cn){To();const Qr=Lae(r,T,xt,Ve);Le[Im(Qr)]=!0,v2(Kn,[Qr])}Kn.push(_r),v2(Kn,m());const oi=r.updateBlock(xt.body,Kn);return Cn&&pt&&(T.getNodeCheckFlags(xt)&256?lW(oi,PG):T.getNodeCheckFlags(xt)&128&&lW(oi,kG)),Ve=qr,pt=mt,oi}function Xu(xt){l();let Kn=0;const gn=[],qr=nr(xt.body,it,tie)??r.createBlock([]);E_(qr)&&(Kn=r.copyPrologue(qr.statements,gn,!1,it)),Oi(gn,Lo(void 0,xt));const mt=m();if(Kn>0||gt(gn)||gt(mt)){const _r=r.converters.convertToFunctionBlock(qr,!0);return v2(gn,mt),Oi(gn,_r.statements.slice(Kn)),r.updateBlock(_r,vr(r.createNodeArray(gn),_r.statements))}return qr}function Lo(xt,Kn){let gn=!1;for(const qr of Kn.parameters)if(gn){if(ld(qr.name)){if(qr.name.elements.length>0){const mt=yI(qr,it,t,0,r.getGeneratedNameForNode(qr));if(gt(mt)){const _r=r.createVariableDeclarationList(mt),Cn=r.createVariableStatement(void 0,_r);Sa(Cn,2097152),xt=ur(xt,Cn)}}else if(qr.initializer){const mt=r.getGeneratedNameForNode(qr),_r=nr(qr.initializer,it,Nr),Cn=r.createAssignment(mt,_r),oi=r.createExpressionStatement(Cn);Sa(oi,2097152),xt=ur(xt,oi)}}else if(qr.initializer){const mt=r.cloneNode(qr.name);vr(mt,qr.name),Sa(mt,96);const _r=nr(qr.initializer,it,Nr);cI(_r,3168);const Cn=r.createAssignment(mt,_r);vr(Cn,qr),Sa(Cn,3072);const oi=r.createBlock([r.createExpressionStatement(Cn)]);vr(oi,qr),Sa(oi,3905);const Qr=r.createTypeCheck(r.cloneNode(qr.name),"undefined"),co=r.createIfStatement(Qr,oi);x1(co),vr(co,qr),Sa(co,2101056),xt=ur(xt,co)}}else if(qr.transformFlags&65536){gn=!0;const mt=yI(qr,it,t,1,r.getGeneratedNameForNode(qr),!1,!0);if(gt(mt)){const _r=r.createVariableDeclarationList(mt),Cn=r.createVariableStatement(void 0,_r);Sa(Cn,2097152),xt=ur(xt,Cn)}}return xt}function To(){ee&1||(ee|=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 Aa(xt,Kn,gn){if(ee&1&&Ir(Kn)){const qr=T.getNodeCheckFlags(Kn)&384;if(qr!==de){const mt=de;de=qr,W(xt,Kn,gn),de=mt;return}}else if(ee&&Le[Im(Kn)]){const qr=de;de=0,W(xt,Kn,gn),de=qr;return}W(xt,Kn,gn)}function sl(xt,Kn){return Kn=O(xt,Kn),xt===1&&de?vc(Kn):Kn}function vc(xt){switch(xt.kind){case 211:return er(xt);case 212:return Jr(xt);case 213:return li(xt)}return xt}function er(xt){return xt.expression.kind===108?vr(r.createPropertyAccessExpression(r.createUniqueName("_super",48),xt.name),xt):xt}function Jr(xt){return xt.expression.kind===108?_o(xt.argumentExpression,xt):xt}function li(xt){const Kn=xt.expression;if(Z1(Kn)){const gn=sa(Kn)?er(Kn):Jr(Kn);return r.createCallExpression(r.createPropertyAccessExpression(gn,"call"),void 0,[r.createThis(),...xt.arguments])}return xt}function Ir(xt){const Kn=xt.kind;return Kn===263||Kn===176||Kn===174||Kn===177||Kn===178}function _o(xt,Kn){return de&256?vr(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[xt]),"value"),Kn):vr(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[xt]),Kn)}}var uct=G({"src/compiler/transformers/es2018.ts"(){Ad()}});function exe(t){const r=t.factory;return Vx(t,s);function s(y){return y.isDeclarationFile?y:ia(y,l,t)}function l(y){if(!(y.transformFlags&64))return y;switch(y.kind){case 299:return m(y);default:return ia(y,l,t)}}function m(y){return y.variableDeclaration?ia(y,l,t):r.updateCatchClause(y,r.createVariableDeclaration(r.createTempVariable(void 0)),nr(y.block,l,E_))}}var Cme=G({"src/compiler/transformers/es2019.ts"(){Ad()}});function HHe(t){const{factory:r,hoistVariableDeclaration:s}=t;return Vx(t,l);function l(oe){return oe.isDeclarationFile?oe:ia(oe,m,t)}function m(oe){if(!(oe.transformFlags&32))return oe;switch(oe.kind){case 213:{const de=I(oe,!1);return ce.assertNotNode(de,ry),de}case 211:case 212:if(ky(oe)){const de=O(oe,!1,!1);return ce.assertNotNode(de,ry),de}return ia(oe,m,t);case 226:return oe.operatorToken.kind===61?ee(oe):ia(oe,m,t);case 220:return te(oe);default:return ia(oe,m,t)}}function y(oe){ce.assertNotNode(oe,Vz);const de=[oe];for(;!oe.questionDotToken&&!Hm(oe);)oe=uc(pA(oe.expression),ky),ce.assertNotNode(oe,Vz),de.unshift(oe);return{expression:oe.expression,chain:de}}function T(oe,de,ue){const Ne=W(oe.expression,de,ue);return ry(Ne)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(oe,Ne.expression),Ne.thisArg):r.updateParenthesizedExpression(oe,Ne)}function D(oe,de,ue){if(ky(oe))return O(oe,de,ue);let Ne=nr(oe.expression,m,Nr);ce.assertNotNode(Ne,ry);let Be;return de&&(D6(Ne)?Be=Ne:(Be=r.createTempVariable(s),Ne=r.createAssignment(Be,Ne))),Ne=oe.kind===211?r.updatePropertyAccessExpression(oe,Ne,nr(oe.name,m,An)):r.updateElementAccessExpression(oe,Ne,nr(oe.argumentExpression,m,Nr)),Be?r.createSyntheticReferenceExpression(Ne,Be):Ne}function I(oe,de){if(ky(oe))return O(oe,de,!1);if(sb(oe.expression)&&ky(_g(oe.expression))){const ue=T(oe.expression,!0,!1),Ne=Fa(oe.arguments,m,Nr);return ry(ue)?vr(r.createFunctionCallCall(ue.expression,ue.thisArg,Ne),oe):r.updateCallExpression(oe,ue,void 0,Ne)}return ia(oe,m,t)}function W(oe,de,ue){switch(oe.kind){case 217:return T(oe,de,ue);case 211:case 212:return D(oe,de,ue);case 213:return I(oe,de);default:return nr(oe,m,Nr)}}function O(oe,de,ue){const{expression:Ne,chain:Be}=y(oe),Ve=W(pA(Ne),R8(Be[0]),!1);let pt=ry(Ve)?Ve.thisArg:void 0,Le=ry(Ve)?Ve.expression:Ve,ht=r.restoreOuterExpressions(Ne,Le,8);D6(Le)||(Le=r.createTempVariable(s),ht=r.createAssignment(Le,ht));let ke=Le,_t;for(let Ft=0;FtWt&&Oi(tt,Fa(lt.statements,V,uf,Wt,Mn-Wt));break}Mn++}ce.assert(Mnue(tt,Wt))))],Wt,zt===2)}return ia(lt,V,t)}function Be(lt,zt,Wt,tt,Mn){const kn=[];for(let on=zt;onr&&(r=l)}return r}function g4e(t){let r=0;for(const s of t){const l=kme(s.statements);if(l===2)return 2;l>r&&(r=l)}return r}var h4e=G({"src/compiler/transformers/esnext.ts"(){Ad()}});function qHe(t){const{factory:r,getEmitHelperFactory:s}=t,l=t.getCompilerOptions();let m,y;return Vx(t,V);function T(){if(y.filenameDeclaration)return y.filenameDeclaration.name;const Ut=r.createVariableDeclaration(r.createUniqueName("_jsxFileName",48),void 0,void 0,r.createStringLiteral(m.fileName));return y.filenameDeclaration=Ut,y.filenameDeclaration.name}function D(Ut){return l.jsx===5?"jsxDEV":Ut?"jsxs":"jsx"}function I(Ut){const In=D(Ut);return O(In)}function W(){return O("Fragment")}function O(Ut){var In,gr;const Cr=Ut==="createElement"?y.importSpecifier:HH(y.importSpecifier,l),ei=(gr=(In=y.utilizedImplicitRuntimeImports)==null?void 0:In.get(Cr))==null?void 0:gr.get(Ut);if(ei)return ei.name;y.utilizedImplicitRuntimeImports||(y.utilizedImplicitRuntimeImports=new Map);let Gn=y.utilizedImplicitRuntimeImports.get(Cr);Gn||(Gn=new Map,y.utilizedImplicitRuntimeImports.set(Cr,Gn));const Ur=r.createUniqueName(`_${Ut}`,112),so=r.createImportSpecifier(!1,r.createIdentifier(Ut),Ur);return J7(Ur,so),Gn.set(Ut,so),Ur}function V(Ut){if(Ut.isDeclarationFile)return Ut;m=Ut,y={},y.importSpecifier=UH(l,Ut);let In=ia(Ut,ee,t);JN(In,t.readEmitHelpers());let gr=In.statements;if(y.filenameDeclaration&&(gr=qz(gr.slice(),r.createVariableStatement(void 0,r.createVariableDeclarationList([y.filenameDeclaration],2)))),y.utilizedImplicitRuntimeImports){for(const[Cr,ei]of oc(y.utilizedImplicitRuntimeImports.entries()))if(Wv(Ut)){const Gn=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamedImports(oc(ei.values()))),r.createStringLiteral(Cr),void 0);Q2(Gn,!1),gr=qz(gr.slice(),Gn)}else if(h1(Ut)){const Gn=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createObjectBindingPattern(oc(ei.values(),Ur=>r.createBindingElement(void 0,Ur.propertyName,Ur.name))),void 0,void 0,r.createCallExpression(r.createIdentifier("require"),void 0,[r.createStringLiteral(Cr)]))],2));Q2(Gn,!1),gr=qz(gr.slice(),Gn)}}return gr!==In.statements&&(In=r.updateSourceFile(In,gr)),y=void 0,In}function ee(Ut){return Ut.transformFlags&2?te(Ut):Ut}function te(Ut){switch(Ut.kind){case 284:return Be(Ut,!1);case 285:return Ve(Ut,!1);case 288:return pt(Ut,!1);case 294:return Xr(Ut);default:return ia(Ut,ee,t)}}function oe(Ut){switch(Ut.kind){case 12:return Mn(Ut);case 294:return Xr(Ut);case 284:return Be(Ut,!0);case 285:return Ve(Ut,!0);case 288:return pt(Ut,!0);default:return ce.failBadSyntaxKind(Ut)}}function de(Ut){return Ut.properties.some(In=>Fm(In)&&(An(In.name)&&ec(In.name)==="__proto__"||Wp(In.name)&&In.name.text==="__proto__"))}function ue(Ut){let In=!1;for(const gr of Ut.attributes.properties)if(Ek(gr)&&(!Wd(gr.expression)||gr.expression.properties.some(xk)))In=!0;else if(In&&Pb(gr)&&An(gr.name)&&gr.name.escapedText==="key")return!0;return!1}function Ne(Ut){return y.importSpecifier===void 0||ue(Ut)}function Be(Ut,In){return(Ne(Ut.openingElement)?Dt:ke)(Ut.openingElement,Ut.children,In,Ut)}function Ve(Ut,In){return(Ne(Ut)?Dt:ke)(Ut,void 0,In,Ut)}function pt(Ut,In){return(y.importSpecifier===void 0?it:Ft)(Ut.openingFragment,Ut.children,In,Ut)}function Le(Ut){const In=ht(Ut);return In&&r.createObjectLiteralExpression([In])}function ht(Ut){const In=yY(Ut);if(Nt(In)===1&&!In[0].dotDotDotToken){const Cr=oe(In[0]);return Cr&&r.createPropertyAssignment("children",Cr)}const gr=Qo(Ut,oe);return Nt(gr)?r.createPropertyAssignment("children",r.createArrayLiteralExpression(gr)):void 0}function ke(Ut,In,gr,Cr){const ei=pn(Ut),Gn=In&&In.length?ht(In):void 0,Ur=lr(Ut.attributes.properties,di=>!!di.name&&An(di.name)&&di.name.escapedText==="key"),so=Ur?gi(Ut.attributes.properties,di=>di!==Ur):Ut.attributes.properties,ho=Nt(so)?ut(so,Gn):r.createObjectLiteralExpression(Gn?[Gn]:Zn);return _t(ei,ho,Ur,In||Zn,gr,Cr)}function _t(Ut,In,gr,Cr,ei,Gn){var Ur;const so=yY(Cr),ho=Nt(so)>1||!!((Ur=so[0])!=null&&Ur.dotDotDotToken),di=[Ut,In];if(gr&&di.push(tt(gr.initializer)),l.jsx===5){const ha=Ic(m);if(ha&&tl(ha)){gr===void 0&&di.push(r.createVoidZero()),di.push(ho?r.createTrue():r.createFalse());const ro=Ah(ha,Gn.pos);di.push(r.createObjectLiteralExpression([r.createPropertyAssignment("fileName",T()),r.createPropertyAssignment("lineNumber",r.createNumericLiteral(ro.line+1)),r.createPropertyAssignment("columnNumber",r.createNumericLiteral(ro.character+1))])),di.push(r.createThis())}}const Nc=vr(r.createCallExpression(I(ho),void 0,di),Gn);return ei&&x1(Nc),Nc}function Dt(Ut,In,gr,Cr){const ei=pn(Ut),Gn=Ut.attributes.properties,Ur=Nt(Gn)?ut(Gn):r.createNull(),so=y.importSpecifier===void 0?k6e(r,t.getEmitResolver().getJsxFactoryEntity(m),l.reactNamespace,Ut):O("createElement"),ho=sF(r,so,ei,Ur,Qo(In,oe),Cr);return gr&&x1(ho),ho}function Ft(Ut,In,gr,Cr){let ei;if(In&&In.length){const Gn=Le(In);Gn&&(ei=Gn)}return _t(W(),ei||r.createObjectLiteralExpression([]),void 0,In,gr,Cr)}function it(Ut,In,gr,Cr){const ei=PEe(r,t.getEmitResolver().getJsxFactoryEntity(m),t.getEmitResolver().getJsxFragmentFactoryEntity(m),l.reactNamespace,Qo(In,oe),Ut,Cr);return gr&&x1(ei),ei}function Ye(Ut){return Wd(Ut.expression)&&!de(Ut.expression)?Ut.expression.properties:r.createSpreadAssignment(ce.checkDefined(nr(Ut.expression,ee,Nr)))}function ut(Ut,In){const gr=iu(l);return gr&&gr>=5?r.createObjectLiteralExpression(lt(Ut,In)):zt(Ut,In)}function lt(Ut,In){const gr=Gf(fa(Ut,Ek,(Cr,ei)=>Gf(Vn(Cr,Gn=>ei?Ye(Gn):Wt(Gn)))));return In&&gr.push(In),gr}function zt(Ut,In){const gr=[];let Cr=[];for(const Gn of Ut){if(Ek(Gn)){if(Wd(Gn.expression)&&!de(Gn.expression)){for(const Ur of Gn.expression.properties){if(xk(Ur)){ei(),gr.push(ce.checkDefined(nr(Ur.expression,ee,Nr)));continue}Cr.push(ce.checkDefined(nr(Ur,ee)))}continue}ei(),gr.push(ce.checkDefined(nr(Gn.expression,ee,Nr)));continue}Cr.push(Wt(Gn))}return In&&Cr.push(In),ei(),gr.length&&!Wd(gr[0])&&gr.unshift(r.createObjectLiteralExpression()),Vb(gr)||s().createAssignHelper(gr);function ei(){Cr.length&&(gr.push(r.createObjectLiteralExpression(Cr)),Cr=[])}}function Wt(Ut){const In=Or(Ut),gr=tt(Ut.initializer);return r.createPropertyAssignment(In,gr)}function tt(Ut){if(Ut===void 0)return r.createTrue();if(Ut.kind===11){const In=Ut.singleQuote!==void 0?Ut.singleQuote:!Aie(Ut,m),gr=r.createStringLiteral(on(Ut.text)||Ut.text,In);return vr(gr,Ut)}return Ut.kind===294?Ut.expression===void 0?r.createTrue():ce.checkDefined(nr(Ut.expression,ee,Nr)):my(Ut)?Be(Ut,!1):TW(Ut)?Ve(Ut,!1):KE(Ut)?pt(Ut,!1):ce.failBadSyntaxKind(Ut)}function Mn(Ut){const In=kn(Ut.text);return In===void 0?void 0:r.createStringLiteral(In)}function kn(Ut){let In,gr=0,Cr=-1;for(let ei=0;ei{if(Gn)return LU(parseInt(Gn,10));if(Ur)return LU(parseInt(Ur,16));{const ho=nxe.get(so);return ho?LU(ho):In}})}function on(Ut){const In=un(Ut);return In===Ut?void 0:In}function pn(Ut){if(Ut.kind===284)return pn(Ut.openingElement);{const In=Ut.tagName;return An(In)&&z9(In.escapedText)?r.createStringLiteral(ec(In)):dI(In)?r.createStringLiteral(ec(In.namespace)+":"+ec(In.name)):gpe(r,In)}}function Or(Ut){const In=Ut.name;if(An(In)){const gr=ec(In);return/^[A-Za-z_]\w*$/.test(gr)?In:r.createStringLiteral(gr)}return r.createStringLiteral(ec(In.namespace)+":"+ec(In.name))}function Xr(Ut){const In=nr(Ut.expression,ee,Nr);return Ut.dotDotDotToken?r.createSpreadElement(In):In}}var nxe,rxe=G({"src/compiler/transformers/jsx.ts"(){Ad(),nxe=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 KHe(t){const{factory:r,hoistVariableDeclaration:s}=t;return Vx(t,l);function l(I){return I.isDeclarationFile?I:ia(I,m,t)}function m(I){if(!(I.transformFlags&512))return I;switch(I.kind){case 226:return y(I);default:return ia(I,m,t)}}function y(I){switch(I.operatorToken.kind){case 68:return T(I);case 43:return D(I);default:return ia(I,m,t)}}function T(I){let W,O;const V=nr(I.left,m,Nr),ee=nr(I.right,m,Nr);if(Ed(V)){const te=r.createTempVariable(s),oe=r.createTempVariable(s);W=vr(r.createElementAccessExpression(vr(r.createAssignment(te,V.expression),V.expression),vr(r.createAssignment(oe,V.argumentExpression),V.argumentExpression)),V),O=vr(r.createElementAccessExpression(te,oe),V)}else if(sa(V)){const te=r.createTempVariable(s);W=vr(r.createPropertyAccessExpression(vr(r.createAssignment(te,V.expression),V.expression),V.name),V),O=vr(r.createPropertyAccessExpression(te,V.name),V)}else W=V,O=V;return vr(r.createAssignment(W,vr(r.createGlobalMethodCall("Math","pow",[O,ee]),I)),I)}function D(I){const W=nr(I.left,m,Nr),O=nr(I.right,m,Nr);return vr(r.createGlobalMethodCall("Math","pow",[W,O]),I)}}var _ct=G({"src/compiler/transformers/es2016.ts"(){Ad()}});function ixe(t,r){return{kind:t,expression:r}}function y4e(t){const{factory:r,getEmitHelperFactory:s,startLexicalEnvironment:l,resumeLexicalEnvironment:m,endLexicalEnvironment:y,hoistVariableDeclaration:T}=t,D=t.getCompilerOptions(),I=t.getEmitResolver(),W=t.onSubstituteNode,O=t.onEmitNode;t.onEmitNode=Sv,t.onSubstituteNode=S0;let V,ee,te,oe;function de(bt){oe=ur(oe,r.createVariableDeclaration(bt))}let ue,Ne;return Vx(t,Be);function Be(bt){if(bt.isDeclarationFile)return bt;V=bt,ee=bt.text;const ir=ut(bt);return JN(ir,t.readEmitHelpers()),V=void 0,ee=void 0,oe=void 0,te=0,ir}function Ve(bt,ir){const ii=te;return te=(te&~bt|ir)&32767,ii}function pt(bt,ir,ii){te=(te&~ir|ii)&-32768|bt}function Le(bt){return(te&8192)!==0&&bt.kind===253&&!bt.expression}function ht(bt){return bt.transformFlags&4194304&&(Bx(bt)||Xg(bt)||D6e(bt)||Loe(bt)||xP(bt)||tx(bt)||CR(bt)||AR(bt)||CP(bt)||iS(bt)||kN(bt,!1)||E_(bt))}function ke(bt){return(bt.transformFlags&1024)!==0||ue!==void 0||te&8192&&ht(bt)||kN(bt,!1)&&Ks(bt)||(dh(bt)&1)!==0}function _t(bt){return ke(bt)?Ye(bt,!1):bt}function Dt(bt){return ke(bt)?Ye(bt,!0):bt}function Ft(bt){if(ke(bt)){const ir=Ic(bt);if(Os(ir)&&Ny(ir)){const ii=Ve(32670,16449),Si=Ye(bt,!1);return pt(ii,98304,0),Si}return Ye(bt,!1)}return bt}function it(bt){return bt.kind===108?J0(!0):_t(bt)}function Ye(bt,ir){switch(bt.kind){case 126:return;case 263:return on(bt);case 231:return pn(bt);case 169:return ha(bt);case 262:return sl(bt);case 219:return To(bt);case 218:return Aa(bt);case 260:return oi(bt);case 80:return cr(bt);case 261:return qr(bt);case 255:return lt(bt);case 269:return zt(bt);case 241:return Jr(bt,!1);case 252:case 251:return un(bt);case 256:return es(bt);case 246:case 247:return We(bt,void 0);case 248:return Re(bt,void 0);case 249:return $e(bt,void 0);case 250:return Zt(bt,void 0);case 244:return li(bt);case 210:return mi(bt);case 299:return Mg(bt);case 304:return gy(bt);case 167:return fS(bt);case 209:return vE(bt);case 213:return oh(bt);case 214:return Qn(bt);case 217:return Ir(bt,ir);case 226:return _o(bt,ir);case 361:return xt(bt,ir);case 15:case 16:case 17:case 18:return yu(bt);case 11:return Xm(bt);case 9:return Lg(bt);case 215:return av(bt);case 228:return Fh(bt);case 229:return GT(bt);case 230:return gu(bt);case 108:return J0(!1);case 110:return Mn(bt);case 236:return Eg(bt);case 174:return nm(bt);case 177:case 178:return po(bt);case 243:return gn(bt);case 253:return tt(bt);case 222:return kn(bt);default:return ia(bt,_t,t)}}function ut(bt){const ir=Ve(8064,64),ii=[],Si=[];l();const Do=r.copyPrologue(bt.statements,ii,!1,_t);return Oi(Si,Fa(bt.statements,_t,uf,Do)),oe&&Si.push(r.createVariableStatement(void 0,r.createVariableDeclarationList(oe))),r.mergeLexicalEnvironment(ii,y()),Rr(ii,bt),pt(ir,0,0),r.updateSourceFile(bt,vr(r.createNodeArray(Hi(ii,Si)),bt.statements))}function lt(bt){if(ue!==void 0){const ir=ue.allowedNonLabeledJumps;ue.allowedNonLabeledJumps|=2;const ii=ia(bt,_t,t);return ue.allowedNonLabeledJumps=ir,ii}return ia(bt,_t,t)}function zt(bt){const ir=Ve(7104,0),ii=ia(bt,_t,t);return pt(ir,0,0),ii}function Wt(bt){return tc(r.createReturnStatement(r.createUniqueName("_this",48)),bt)}function tt(bt){return ue?(ue.nonLocalJumps|=8,Le(bt)&&(bt=Wt(bt)),r.createReturnStatement(r.createObjectLiteralExpression([r.createPropertyAssignment(r.createIdentifier("value"),bt.expression?ce.checkDefined(nr(bt.expression,_t,Nr)):r.createVoidZero())]))):Le(bt)?Wt(bt):ia(bt,_t,t)}function Mn(bt){return te&2&&!(te&16384)&&(te|=65536),ue?te&2?(ue.containsLexicalThis=!0,bt):ue.thisName||(ue.thisName=r.createUniqueName("this")):bt}function kn(bt){return ia(bt,Dt,t)}function cr(bt){return ue&&I.isArgumentsLocalBinding(bt)?ue.argumentsName||(ue.argumentsName=r.createUniqueName("arguments")):bt.flags&256?tc(vr(r.createIdentifier(lf(bt.escapedText)),bt),bt):bt}function un(bt){if(ue){const ir=bt.kind===252?2:4;if(!(bt.label&&ue.labels&&ue.labels.get(ec(bt.label))||!bt.label&&ue.allowedNonLabeledJumps&ir)){let Si;const Do=bt.label;Do?bt.kind===252?(Si=`break-${Do.escapedText}`,Yu(ue,!0,ec(Do),Si)):(Si=`continue-${Do.escapedText}`,Yu(ue,!1,ec(Do),Si)):bt.kind===252?(ue.nonLocalJumps|=2,Si="break"):(ue.nonLocalJumps|=4,Si="continue");let Za=r.createStringLiteral(Si);if(ue.loopOutParameters.length){const Qc=ue.loopOutParameters;let Al;for(let du=0;du=0?gh:ii.length;if(N_&&gh>=0){let jv=Si;for(;N_&&jv=0?ii[gh]:void 0;if(Gv&&AR(Gv)){const jv=[];zp=ei(bt,jv,Gv.tryBlock.statements,0,Do,Za+1,Qc,Al,du,N_);const yy=r.createNodeArray(jv);vr(yy,Gv.tryBlock.statements),ir.push(r.updateTryStatement(Gv,r.updateBlock(Gv.tryBlock,jv),nr(Gv.catchClause,_t,CP),nr(Gv.finallyBlock,_t,E_)))}else{const jv=Gv&&cj(Gv);let yy;if(du?(yy=Nc(),te|=8192):jv&&(yy=_e(jv),te|=8192),Al||yy)if(yy&&gh===ii.length-1&&!(Qc.body.transformFlags&16384)){const ub=uc(uc(yy,ys).left,el),E0=r.createReturnStatement(yy);return Ry(E0,lI(ub)),Sa(ub,3072),ir.push(E0),!1}else N_?Ea(ir,Qc,yy||di()):(Ea(bt,Qc,di()),yy&&mc(ir,yy)),zp=!0;else Rr(bt,Qc)}return gh>=0&&Oi(ir,Fa(ii,_t,uf,gh+1)),zp}function Gn(bt){return Dh(bt)&&jr(bt.declarationList.declarations,ir=>An(ir.name)&&!ir.initializer)}function Ur(bt){if(!Dh(bt)||bt.declarationList.declarations.length!==1)return!1;const ir=bt.declarationList.declarations[0];if(!An(ir.name)||!ir.initializer)return!1;const ii=ir.initializer;if(!Wd(ii)||ii.properties.length!==3)return!1;const[Si,Do,Za]=ii.properties;return!(!Fm(Si)||!An(Si.name)||ec(Si.name)!=="stack"||!Ch(Si.initializer)||!Fm(Do)||!An(Do.name)||ec(Do.name)!=="error"||!$m(Do.initializer)||!nS(Do.initializer.expression)||!Fm(Za)||!An(Za.name)||ec(Za.name)!=="hasError"||Za.initializer.kind!==97)}function so(bt,ir,ii,Si){const Do=!!ii&&rv(ii.expression).kind!==106;if(!bt)return Cr(ir,Do);const Za=[],Qc=[];m();const Al=r.copyStandardPrologue(bt.body.statements,Za,0),du=IA(bt.body.statements,Al);(Si||du.length>0)&&(te|=8192);const N_=ei(Za,Qc,bt.body.statements,Al,du,0,bt,Do,Si,!0);Gs(Za,bt),al(Za,bt,Si),Fi(Za,bt),r.mergeLexicalEnvironment(Za,y()),N_&&!ho(bt.body)&&Qc.push(r.createReturnStatement(r.createUniqueName("_this",48)));const zp=r.createBlock(vr(r.createNodeArray([...Za,...Qc]),bt.body.statements),!0);return vr(zp,bt.body),zp}function ho(bt){if(bt.kind===253)return!0;if(bt.kind===245){const ir=bt;if(ir.elseStatement)return ho(ir.thenStatement)&&ho(ir.elseStatement)}else if(bt.kind===241){const ir=Yf(bt.statements);if(ir&&ho(ir))return!0}return!1}function di(){return Sa(r.createThis(),8)}function Nc(){return r.createLogicalOr(r.createLogicalAnd(r.createStrictInequality(r.createUniqueName("_super",48),r.createNull()),r.createFunctionApplyCall(r.createUniqueName("_super",48),di(),r.createIdentifier("arguments"))),di())}function ha(bt){if(!bt.dotDotDotToken)return ld(bt.name)?tc(vr(r.createParameterDeclaration(void 0,void 0,r.getGeneratedNameForNode(bt),void 0,void 0,void 0),bt),bt):bt.initializer?tc(vr(r.createParameterDeclaration(void 0,void 0,bt.name,void 0,void 0,void 0),bt),bt):bt}function ro(bt){return bt.initializer!==void 0||ld(bt.name)}function Gs(bt,ir){if(!gt(ir.parameters,ro))return!1;let ii=!1;for(const Si of ir.parameters){const{name:Do,initializer:Za,dotDotDotToken:Qc}=Si;Qc||(ld(Do)?ii=Oc(bt,Si,Do,Za)||ii:Za&&(_u(bt,Si,Do,Za),ii=!0))}return ii}function Oc(bt,ir,ii,Si){return ii.elements.length>0?(qz(bt,Sa(r.createVariableStatement(void 0,r.createVariableDeclarationList(yI(ir,_t,t,0,r.getGeneratedNameForNode(ir)))),2097152)),!0):Si?(qz(bt,Sa(r.createExpressionStatement(r.createAssignment(r.getGeneratedNameForNode(ir),ce.checkDefined(nr(Si,_t,Nr)))),2097152)),!0):!1}function _u(bt,ir,ii,Si){Si=ce.checkDefined(nr(Si,_t,Nr));const Do=r.createIfStatement(r.createTypeCheck(r.cloneNode(ii),"undefined"),Sa(vr(r.createBlock([r.createExpressionStatement(Sa(vr(r.createAssignment(Sa(kl(vr(r.cloneNode(ii),ii),ii.parent),96),Sa(Si,96|Tp(Si)|3072)),ir),3072))]),ir),3905));x1(Do),vr(Do,ir),Sa(Do,2101056),qz(bt,Do)}function Ku(bt,ir){return!!(bt&&bt.dotDotDotToken&&!ir)}function al(bt,ir,ii){const Si=[],Do=Yf(ir.parameters);if(!Ku(Do,ii))return!1;const Za=Do.name.kind===80?kl(vr(r.cloneNode(Do.name),Do.name),Do.name.parent):r.createTempVariable(void 0);Sa(Za,96);const Qc=Do.name.kind===80?r.cloneNode(Do.name):Za,Al=ir.parameters.length-1,du=r.createLoopVariable();Si.push(Sa(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Za,void 0,void 0,r.createArrayLiteralExpression([]))])),Do),2097152));const N_=r.createForStatement(vr(r.createVariableDeclarationList([r.createVariableDeclaration(du,void 0,void 0,r.createNumericLiteral(Al))]),Do),vr(r.createLessThan(du,r.createPropertyAccessExpression(r.createIdentifier("arguments"),"length")),Do),vr(r.createPostfixIncrement(du),Do),r.createBlock([x1(vr(r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(Qc,Al===0?du:r.createSubtract(du,r.createNumericLiteral(Al))),r.createElementAccessExpression(r.createIdentifier("arguments"),du))),Do))]));return Sa(N_,2097152),x1(N_),Si.push(N_),Do.name.kind!==80&&Si.push(Sa(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList(yI(Do,_t,t,0,Qc))),Do),2097152)),fie(bt,Si),!0}function Rr(bt,ir){return te&65536&&ir.kind!==219?(Ea(bt,ir,r.createThis()),!0):!1}function mc(bt,ir){Ev();const ii=r.createExpressionStatement(r.createBinaryExpression(r.createThis(),64,ir));bt.push(ii),Ry(ii,Ic(ir).parent)}function Ea(bt,ir,ii){Ev();const Si=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_this",48),void 0,void 0,ii)]));Sa(Si,2100224),Sp(Si,ir),qz(bt,Si)}function Fi(bt,ir){if(te&32768){let ii;switch(ir.kind){case 219:return bt;case 174:case 177:case 178:ii=r.createVoidZero();break;case 176:ii=r.createPropertyAccessExpression(Sa(r.createThis(),8),"constructor");break;case 262:case 218:ii=r.createConditionalExpression(r.createLogicalAnd(Sa(r.createThis(),8),r.createBinaryExpression(Sa(r.createThis(),8),104,r.getLocalName(ir))),void 0,r.createPropertyAccessExpression(Sa(r.createThis(),8),"constructor"),void 0,r.createVoidZero());break;default:return ce.failBadSyntaxKind(ir)}const Si=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_newTarget",48),void 0,void 0,ii)]));Sa(Si,2100224),qz(bt,Si)}return bt}function ta(bt,ir){for(const ii of ir.members)switch(ii.kind){case 240:bt.push($a(ii));break;case 174:bt.push(jc(ig(ir,ii),ii,ir));break;case 177:case 178:const Si=mG(ir.members,ii);ii===Si.firstAccessor&&bt.push(Xu(ig(ir,ii),Si,ir));break;case 176:case 175:break;default:ce.failBadSyntaxKind(ii,V&&V.fileName);break}}function $a(bt){return vr(r.createEmptyStatement(),bt)}function jc(bt,ir,ii){const Si=lI(ir),Do=cE(ir),Za=vc(ir,ir,void 0,ii),Qc=nr(ir.name,_t,fy);ce.assert(Qc);let Al;if(!Gu(Qc)&&X9(t.getCompilerOptions())){const N_=am(Qc)?Qc.expression:An(Qc)?r.createStringLiteral(lf(Qc.escapedText)):Qc;Al=r.createObjectDefinePropertyCall(bt,N_,r.createPropertyDescriptor({value:Za,enumerable:!1,writable:!0,configurable:!0}))}else{const N_=ZL(r,bt,Qc,ir.name);Al=r.createAssignment(N_,Za)}Sa(Za,3072),Sp(Za,Do);const du=vr(r.createExpressionStatement(Al),ir);return tc(du,ir),Ry(du,Si),Sa(du,96),du}function Xu(bt,ir,ii){const Si=r.createExpressionStatement(Lo(bt,ir,ii,!1));return Sa(Si,3072),Sp(Si,cE(ir.firstAccessor)),Si}function Lo(bt,{firstAccessor:ir,getAccessor:ii,setAccessor:Si},Do,Za){const Qc=kl(vr(r.cloneNode(bt),bt),bt.parent);Sa(Qc,3136),Sp(Qc,ir.name);const Al=nr(ir.name,_t,fy);if(ce.assert(Al),Gu(Al))return ce.failBadSyntaxKind(Al,"Encountered unhandled private identifier while transforming ES2015.");const du=hpe(r,Al);Sa(du,3104),Sp(du,ir.name);const N_=[];if(ii){const gh=vc(ii,void 0,void 0,Do);Sp(gh,cE(ii)),Sa(gh,1024);const Wh=r.createPropertyAssignment("get",gh);Ry(Wh,lI(ii)),N_.push(Wh)}if(Si){const gh=vc(Si,void 0,void 0,Do);Sp(gh,cE(Si)),Sa(gh,1024);const Wh=r.createPropertyAssignment("set",gh);Ry(Wh,lI(Si)),N_.push(Wh)}N_.push(r.createPropertyAssignment("enumerable",ii||Si?r.createFalse():r.createTrue()),r.createPropertyAssignment("configurable",r.createTrue()));const zp=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[Qc,du,r.createObjectLiteralExpression(N_,!0)]);return Za&&x1(zp),zp}function To(bt){bt.transformFlags&16384&&!(te&16384)&&(te|=65536);const ir=ue;ue=void 0;const ii=Ve(15232,66),Si=r.createFunctionExpression(void 0,void 0,void 0,void 0,Bn(bt.parameters,_t,t),void 0,er(bt));return vr(Si,bt),tc(Si,bt),Sa(Si,16),pt(ii,0,0),ue=ir,Si}function Aa(bt){const ir=Tp(bt)&524288?Ve(32662,69):Ve(32670,65),ii=ue;ue=void 0;const Si=Bn(bt.parameters,_t,t),Do=er(bt),Za=te&32768?r.getLocalName(bt):bt.name;return pt(ir,98304,0),ue=ii,r.updateFunctionExpression(bt,void 0,bt.asteriskToken,Za,void 0,Si,void 0,Do)}function sl(bt){const ir=ue;ue=void 0;const ii=Ve(32670,65),Si=Bn(bt.parameters,_t,t),Do=er(bt),Za=te&32768?r.getLocalName(bt):bt.name;return pt(ii,98304,0),ue=ir,r.updateFunctionDeclaration(bt,Fa(bt.modifiers,_t,bd),bt.asteriskToken,Za,void 0,Si,void 0,Do)}function vc(bt,ir,ii,Si){const Do=ue;ue=void 0;const Za=Si&&Jl(Si)&&!e_(bt)?Ve(32670,73):Ve(32670,65),Qc=Bn(bt.parameters,_t,t),Al=er(bt);return te&32768&&!ii&&(bt.kind===262||bt.kind===218)&&(ii=r.getGeneratedNameForNode(bt)),pt(Za,98304,0),ue=Do,tc(vr(r.createFunctionExpression(void 0,bt.asteriskToken,ii,void 0,Qc,void 0,Al),ir),bt)}function er(bt){let ir=!1,ii=!1,Si,Do;const Za=[],Qc=[],Al=bt.body;let du;if(m(),E_(Al)&&(du=r.copyStandardPrologue(Al.statements,Za,0,!1),du=r.copyCustomPrologue(Al.statements,Qc,du,_t,hie),du=r.copyCustomPrologue(Al.statements,Qc,du,_t,yie)),ir=Gs(Qc,bt)||ir,ir=al(Qc,bt,!1)||ir,E_(Al))du=r.copyCustomPrologue(Al.statements,Qc,du,_t),Si=Al.statements,Oi(Qc,Fa(Al.statements,_t,uf,du)),!ir&&Al.multiLine&&(ir=!0);else{ce.assert(bt.kind===219),Si=NH(Al,-1);const zp=bt.equalsGreaterThanToken;!rh(zp)&&!rh(Al)&&(H9(zp,Al,V)?ii=!0:ir=!0);const gh=nr(Al,_t,Nr),Wh=r.createReturnStatement(gh);vr(Wh,Al),PY(Wh,Al),Sa(Wh,2880),Qc.push(Wh),Do=Al}if(r.mergeLexicalEnvironment(Za,y()),Fi(Za,bt),Rr(Za,bt),gt(Za)&&(ir=!0),Qc.unshift(...Za),E_(Al)&&fv(Qc,Al.statements))return Al;const N_=r.createBlock(vr(r.createNodeArray(Qc),Si),ir);return vr(N_,bt.body),!ir&&ii&&Sa(N_,1),Do&&XL(N_,20,Do),tc(N_,bt.body),N_}function Jr(bt,ir){if(ir)return ia(bt,_t,t);const ii=te&256?Ve(7104,512):Ve(6976,128),Si=ia(bt,_t,t);return pt(ii,0,0),Si}function li(bt){return ia(bt,Dt,t)}function Ir(bt,ir){return ia(bt,ir?Dt:_t,t)}function _o(bt,ir){return Tg(bt)?Ik(bt,_t,t,0,!ir):bt.operatorToken.kind===28?r.updateBinaryExpression(bt,ce.checkDefined(nr(bt.left,Dt,Nr)),bt.operatorToken,ce.checkDefined(nr(bt.right,ir?Dt:_t,Nr))):ia(bt,_t,t)}function xt(bt,ir){if(ir)return ia(bt,Dt,t);let ii;for(let Do=0;Dodu.name)),Al=Si?r.createYieldExpression(r.createToken(42),Sa(Qc,8388608)):Qc;if(Za)Do.push(r.createExpressionStatement(Al)),jg(ir.loopOutParameters,1,0,Do);else{const du=r.createUniqueName("state"),N_=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(du,void 0,void 0,Al)]));if(Do.push(N_),jg(ir.loopOutParameters,1,0,Do),ir.nonLocalJumps&8){let zp;ii?(ii.nonLocalJumps|=8,zp=r.createReturnStatement(du)):zp=r.createReturnStatement(r.createPropertyAccessExpression(du,"value")),Do.push(r.createIfStatement(r.createTypeCheck(du,"object"),zp))}if(ir.nonLocalJumps&2&&Do.push(r.createIfStatement(r.createStrictEquality(du,r.createStringLiteral("break")),r.createBreakStatement())),ir.labeledNonLocalBreaks||ir.labeledNonLocalContinues){const zp=[];Tv(ir.labeledNonLocalBreaks,!0,du,ii,zp),Tv(ir.labeledNonLocalContinues,!1,du,ii,zp),Do.push(r.createSwitchStatement(du,r.createCaseBlock(zp)))}}return Do}function Yu(bt,ir,ii,Si){ir?(bt.labeledNonLocalBreaks||(bt.labeledNonLocalBreaks=new Map),bt.labeledNonLocalBreaks.set(ii,Si)):(bt.labeledNonLocalContinues||(bt.labeledNonLocalContinues=new Map),bt.labeledNonLocalContinues.set(ii,Si))}function Tv(bt,ir,ii,Si,Do){bt&&bt.forEach((Za,Qc)=>{const Al=[];if(!Si||Si.labels&&Si.labels.get(Qc)){const du=r.createIdentifier(Qc);Al.push(ir?r.createBreakStatement(du):r.createContinueStatement(du))}else Yu(Si,ir,Qc,Za),Al.push(r.createReturnStatement(ii));Do.push(r.createCaseClause(r.createStringLiteral(Za),Al))})}function Kh(bt,ir,ii,Si,Do){const Za=ir.name;if(ld(Za))for(const Qc of Za.elements)t0(Qc)||Kh(bt,Qc,ii,Si,Do);else{ii.push(r.createParameterDeclaration(void 0,void 0,Za));const Qc=I.getNodeCheckFlags(ir);if(Qc&65536||Do){const Al=r.createUniqueName("out_"+ec(Za));let du=0;Qc&65536&&(du|=1),bk(bt)&&(bt.initializer&&I.isBindingCapturedByNode(bt.initializer,ir)&&(du|=2),(bt.condition&&I.isBindingCapturedByNode(bt.condition,ir)||bt.incrementor&&I.isBindingCapturedByNode(bt.incrementor,ir))&&(du|=1)),Si.push({flags:du,originalName:Za,outParamName:Al})}}}function uS(bt,ir,ii,Si){const Do=ir.properties,Za=Do.length;for(let Qc=Si;QcDh(P2)&&!!Dl(P2.declarationList.declarations).initializer,Si=ue;ue=void 0;const Do=Fa(ir.statements,Ft,uf);ue=Si;const Za=gi(Do,ii),Qc=gi(Do,P2=>!ii(P2)),du=uc(Dl(Za),Dh).declarationList.declarations[0],N_=rv(du.initializer);let zp=to(N_,wy);!zp&&ys(N_)&&N_.operatorToken.kind===28&&(zp=to(N_.left,wy));const gh=uc(zp?rv(zp.right):N_,el),Wh=uc(rv(gh.expression),Dm),Gv=Wh.body.statements;let jv=0,yy=-1;const ub=[];if(zp){const P2=to(Gv[jv],Ou);P2&&(ub.push(P2),jv++),ub.push(Gv[jv]),jv++,ub.push(r.createExpressionStatement(r.createAssignment(zp.left,uc(du.name,An))))}for(;!Bx(PM(Gv,yy));)yy--;Oi(ub,Gv,jv,yy),yy<-1&&Oi(ub,Gv,yy+1);const E0=to(PM(Gv,yy),Bx);for(const P2 of Qc)Bx(P2)&&(E0!=null&&E0.expression)&&!An(E0.expression)?ub.push(E0):ub.push(P2);return Oi(ub,Za,1),r.restoreOuterExpressions(bt.expression,r.restoreOuterExpressions(du.initializer,r.restoreOuterExpressions(zp&&zp.right,r.updateCallExpression(gh,r.restoreOuterExpressions(gh.expression,r.updateFunctionExpression(Wh,void 0,void 0,void 0,void 0,Wh.parameters,void 0,r.updateBlock(Wh.body,ub))),void 0,gh.arguments))))}function _e(bt){return vn(bt,!1)}function vn(bt,ir){if(bt.transformFlags&32768||bt.expression.kind===108||Z1(rv(bt.expression))){const{target:ii,thisArg:Si}=r.createCallBinding(bt.expression,T);bt.expression.kind===108&&Sa(Si,8);let Do;if(bt.transformFlags&32768?Do=r.createFunctionApplyCall(ce.checkDefined(nr(ii,it,Nr)),bt.expression.kind===108?Si:ce.checkDefined(nr(Si,_t,Nr)),hi(bt.arguments,!0,!1,!1)):Do=vr(r.createFunctionCallCall(ce.checkDefined(nr(ii,it,Nr)),bt.expression.kind===108?Si:ce.checkDefined(nr(Si,_t,Nr)),Fa(bt.arguments,_t,Nr)),bt),bt.expression.kind===108){const Za=r.createLogicalOr(Do,di());Do=ir?r.createAssignment(r.createUniqueName("_this",48),Za):Za}return tc(Do,bt)}return ia(bt,_t,t)}function Qn(bt){if(gt(bt.arguments,ex)){const{target:ir,thisArg:ii}=r.createCallBinding(r.createPropertyAccessExpression(bt.expression,"bind"),T);return r.createNewExpression(r.createFunctionApplyCall(ce.checkDefined(nr(ir,_t,Nr)),ii,hi(r.createNodeArray([r.createVoidZero(),...bt.arguments]),!0,!1,!1)),void 0,[])}return ia(bt,_t,t)}function hi(bt,ir,ii,Si){const Do=bt.length,Za=Gf(fa(bt,pa,(N_,zp,gh,Wh)=>zp(N_,ii,Si&&Wh===Do)));if(Za.length===1){const N_=Za[0];if(ir&&!D.downlevelIteration||foe(N_.expression)||cJ(N_.expression,"___spreadArray"))return N_.expression}const Qc=s(),Al=Za[0].kind!==0;let du=Al?r.createArrayLiteralExpression():Za[0].expression;for(let N_=Al?0:1;N_0&&Si.push(r.createStringLiteral(ii.literal.text)),ir=r.createCallExpression(r.createPropertyAccessExpression(ir,"concat"),void 0,Si)}return vr(ir,bt)}function J0(bt){return te&8&&!bt?r.createPropertyAccessExpression(r.createUniqueName("_super",48),"prototype"):r.createUniqueName("_super",48)}function Eg(bt){return bt.keywordToken===105&&bt.name.escapedText==="target"?(te|=32768,r.createUniqueName("_newTarget",48)):bt}function Sv(bt,ir,ii){if(Ne&1&&S_(ir)){const Si=Ve(32670,Tp(ir)&16?81:65);O(bt,ir,ii),pt(Si,0,0);return}O(bt,ir,ii)}function jT(){Ne&2||(Ne|=2,t.enableSubstitution(80))}function Ev(){Ne&1||(Ne|=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 S0(bt,ir){return ir=W(bt,ir),bt===1?fi(ir):An(ir)?k1(ir):ir}function k1(bt){if(Ne&2&&!N6e(bt)){const ir=Il(bt,An);if(ir&&tn(ir))return vr(r.getGeneratedNameForNode(ir),bt)}return bt}function tn(bt){switch(bt.parent.kind){case 208:case 263:case 266:case 260:return bt.parent.name===bt&&I.isDeclarationWithCollidingName(bt.parent)}return!1}function fi(bt){switch(bt.kind){case 80:return ya(bt);case 110:return K_(bt)}return bt}function ya(bt){if(Ne&2&&!N6e(bt)){const ir=I.getReferencedDeclarationWithCollidingName(bt);if(ir&&!(Jl(ir)&&bu(ir,bt)))return vr(r.getGeneratedNameForNode(o_(ir)),bt)}return bt}function bu(bt,ir){let ii=Il(ir);if(!ii||ii===bt||ii.end<=bt.pos||ii.pos>=bt.end)return!1;const Si=Bs(bt);for(;ii;){if(ii===Si||ii===bt)return!1;if(Mv(ii)&&ii.parent===bt)return!0;ii=ii.parent}return!1}function K_(bt){return Ne&1&&te&16?vr(r.createUniqueName("_this",48),bt):bt}function ig(bt,ir){return e_(ir)?r.getInternalName(bt):r.createPropertyAccessExpression(r.getInternalName(bt),"prototype")}function Fy(bt,ir){if(!bt||!ir||gt(bt.parameters))return!1;const ii=pp(bt.body.statements);if(!ii||!rh(ii)||ii.kind!==244)return!1;const Si=ii.expression;if(!rh(Si)||Si.kind!==213)return!1;const Do=Si.expression;if(!rh(Do)||Do.kind!==108)return!1;const Za=Vb(Si.arguments);if(!Za||!rh(Za)||Za.kind!==230)return!1;const Qc=Za.expression;return An(Qc)&&Qc.escapedText==="arguments"}}var dct=G({"src/compiler/transformers/es2015.ts"(){Ad()}});function oxe(t){const{factory:r}=t,s=t.getCompilerOptions();let l,m;(s.jsx===1||s.jsx===3)&&(l=t.onEmitNode,t.onEmitNode=D,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),m=[]);const y=t.onSubstituteNode;return t.onSubstituteNode=I,t.enableSubstitution(211),t.enableSubstitution(303),Vx(t,T);function T(ee){return ee}function D(ee,te,oe){switch(te.kind){case 286:case 287:case 285:const de=te.tagName;m[e1(de)]=!0;break}l(ee,te,oe)}function I(ee,te){return te.id&&m&&m[te.id]?y(ee,te):(te=y(ee,te),sa(te)?W(te):Fm(te)?O(te):te)}function W(ee){if(Gu(ee.name))return ee;const te=V(ee.name);return te?vr(r.createElementAccessExpression(ee.expression,te),ee):ee}function O(ee){const te=An(ee.name)&&V(ee.name);return te?r.updatePropertyAssignment(ee,te,ee.initializer):ee}function V(ee){const te=RL(ee);if(te!==void 0&&te>=83&&te<=118)return vr(r.createStringLiteralFromNode(ee),ee)}}var pct=G({"src/compiler/transformers/es5.ts"(){Ad()}});function XHe(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 axe(t){const{factory:r,getEmitHelperFactory:s,resumeLexicalEnvironment:l,endLexicalEnvironment:m,hoistFunctionDeclaration:y,hoistVariableDeclaration:T}=t,D=t.getCompilerOptions(),I=iu(D),W=t.getEmitResolver(),O=t.onSubstituteNode;t.onSubstituteNode=wt;let V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le=1,ht,ke,_t,Dt,Ft=0,it=0,Ye,ut,lt,zt,Wt,tt,Mn,kn;return Vx(t,cr);function cr(tn){if(tn.isDeclarationFile||!(tn.transformFlags&2048))return tn;const fi=ia(tn,un,t);return JN(fi,t.readEmitHelpers()),fi}function un(tn){const fi=tn.transformFlags;return oe?on(tn):te?pn(tn):J_(tn)&&tn.asteriskToken?Xr(tn):fi&2048?ia(tn,un,t):tn}function on(tn){switch(tn.kind){case 246:return sl(tn);case 247:return er(tn);case 255:return Qr(tn);case 256:return es(tn);default:return pn(tn)}}function pn(tn){switch(tn.kind){case 262:return Ut(tn);case 218:return In(tn);case 177:case 178:return gr(tn);case 243:return ei(tn);case 248:return li(tn);case 249:return _o(tn);case 252:return qr(tn);case 251:return Kn(tn);case 253:return _r(tn);default:return tn.transformFlags&1048576?Or(tn):tn.transformFlags&4196352?ia(tn,un,t):tn}}function Or(tn){switch(tn.kind){case 226:return Gn(tn);case 361:return di(tn);case 227:return ha(tn);case 229:return ro(tn);case 209:return Gs(tn);case 210:return _u(tn);case 212:return Ku(tn);case 213:return al(tn);case 214:return Rr(tn);default:return ia(tn,un,t)}}function Xr(tn){switch(tn.kind){case 262:return Ut(tn);case 218:return In(tn);default:return ce.failBadSyntaxKind(tn)}}function Ut(tn){if(tn.asteriskToken)tn=tc(vr(r.createFunctionDeclaration(tn.modifiers,void 0,tn.name,void 0,Bn(tn.parameters,un,t),void 0,Cr(tn.body)),tn),tn);else{const fi=te,ya=oe;te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya}if(te){y(tn);return}else return tn}function In(tn){if(tn.asteriskToken)tn=tc(vr(r.createFunctionExpression(void 0,void 0,tn.name,void 0,Bn(tn.parameters,un,t),void 0,Cr(tn.body)),tn),tn);else{const fi=te,ya=oe;te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya}return tn}function gr(tn){const fi=te,ya=oe;return te=!1,oe=!1,tn=ia(tn,un,t),te=fi,oe=ya,tn}function Cr(tn){const fi=[],ya=te,bu=oe,K_=de,ig=ue,Fy=Ne,bt=Be,ir=Ve,ii=pt,Si=Le,Do=ht,Za=ke,Qc=_t,Al=Dt;te=!0,oe=!1,de=void 0,ue=void 0,Ne=void 0,Be=void 0,Ve=void 0,pt=void 0,Le=1,ht=void 0,ke=void 0,_t=void 0,Dt=r.createTempVariable(void 0),l();const du=r.copyPrologue(tn.statements,fi,!1,un);mc(tn.statements,du);const N_=vn();return v2(fi,m()),fi.push(r.createReturnStatement(N_)),te=ya,oe=bu,de=K_,ue=ig,Ne=Fy,Be=bt,Ve=ir,pt=ii,Le=Si,ht=Do,ke=Za,_t=Qc,Dt=Al,vr(r.createBlock(fi,tn.multiLine),tn)}function ei(tn){if(tn.transformFlags&1048576){Xu(tn.declarationList);return}else{if(Tp(tn)&2097152)return tn;for(const ya of tn.declarationList.declarations)T(ya.name);const fi=n3(tn.declarationList);return fi.length===0?void 0:Sp(r.createExpressionStatement(r.inlineExpressions(Vn(fi,Lo))),tn)}}function Gn(tn){const fi=bH(tn);switch(fi){case 0:return so(tn);case 1:return Ur(tn);default:return ce.assertNever(fi)}}function Ur(tn){const{left:fi,right:ya}=tn;if(We(ya)){let bu;switch(fi.kind){case 211:bu=r.updatePropertyAccessExpression(fi,xe(ce.checkDefined(nr(fi.expression,un,FE))),fi.name);break;case 212:bu=r.updateElementAccessExpression(fi,xe(ce.checkDefined(nr(fi.expression,un,FE))),xe(ce.checkDefined(nr(fi.argumentExpression,un,Nr))));break;default:bu=ce.checkDefined(nr(fi,un,Nr));break}const K_=tn.operatorToken.kind;return sj(K_)?vr(r.createAssignment(bu,vr(r.createBinaryExpression(xe(bu),wQ(K_),ce.checkDefined(nr(ya,un,Nr))),tn)),tn):r.updateBinaryExpression(tn,bu,tn.operatorToken,ce.checkDefined(nr(ya,un,Nr)))}return ia(tn,un,t)}function so(tn){return We(tn.right)?Wde(tn.operatorToken.kind)?Nc(tn):tn.operatorToken.kind===28?ho(tn):r.updateBinaryExpression(tn,xe(ce.checkDefined(nr(tn.left,un,Nr))),tn.operatorToken,ce.checkDefined(nr(tn.right,un,Nr))):ia(tn,un,t)}function ho(tn){let fi=[];return ya(tn.left),ya(tn.right),r.inlineExpressions(fi);function ya(bu){ys(bu)&&bu.operatorToken.kind===28?(ya(bu.left),ya(bu.right)):(We(bu)&&fi.length>0&&(_e(1,[r.createExpressionStatement(r.inlineExpressions(fi))]),fi=[]),fi.push(ce.checkDefined(nr(bu,un,Nr))))}}function di(tn){let fi=[];for(const ya of tn.elements)ys(ya)&&ya.operatorToken.kind===28?fi.push(ho(ya)):(We(ya)&&fi.length>0&&(_e(1,[r.createExpressionStatement(r.inlineExpressions(fi))]),fi=[]),fi.push(ce.checkDefined(nr(ya,un,Nr))));return r.inlineExpressions(fi)}function Nc(tn){const fi=Un(),ya=an();return lm(ya,ce.checkDefined(nr(tn.left,un,Nr)),tn.left),tn.operatorToken.kind===56?gy(fi,ya,tn.left):po(fi,ya,tn.left),lm(ya,ce.checkDefined(nr(tn.right,un,Nr)),tn.right),rr(fi),ya}function ha(tn){if(We(tn.whenTrue)||We(tn.whenFalse)){const fi=Un(),ya=Un(),bu=an();return gy(fi,ce.checkDefined(nr(tn.condition,un,Nr)),tn.condition),lm(bu,ce.checkDefined(nr(tn.whenTrue,un,Nr)),tn.whenTrue),nm(ya),rr(fi),lm(bu,ce.checkDefined(nr(tn.whenFalse,un,Nr)),tn.whenFalse),rr(ya),bu}return ia(tn,un,t)}function ro(tn){const fi=Un(),ya=nr(tn.expression,un,Nr);if(tn.asteriskToken){const bu=Tp(tn.expression)&8388608?ya:vr(s().createValuesHelper(ya),tn);fS(bu,tn)}else GT(ya,tn);return rr(fi),fx(tn)}function Gs(tn){return Oc(tn.elements,void 0,void 0,tn.multiLine)}function Oc(tn,fi,ya,bu){const K_=Re(tn);let ig;if(K_>0){ig=an();const ir=Fa(tn,un,Nr,0,K_);lm(ig,r.createArrayLiteralExpression(fi?[fi,...ir]:ir)),fi=void 0}const Fy=Em(tn,bt,[],K_);return ig?r.createArrayConcatCall(ig,[r.createArrayLiteralExpression(Fy,bu)]):vr(r.createArrayLiteralExpression(fi?[fi,...Fy]:Fy,bu),ya);function bt(ir,ii){if(We(ii)&&ir.length>0){const Si=ig!==void 0;ig||(ig=an()),lm(ig,Si?r.createArrayConcatCall(ig,[r.createArrayLiteralExpression(ir,bu)]):r.createArrayLiteralExpression(fi?[fi,...ir]:ir,bu)),fi=void 0,ir=[]}return ir.push(ce.checkDefined(nr(ii,un,Nr))),ir}}function _u(tn){const fi=tn.properties,ya=tn.multiLine,bu=Re(fi),K_=an();lm(K_,r.createObjectLiteralExpression(Fa(fi,un,KD,0,bu),ya));const ig=Em(fi,Fy,[],bu);return ig.push(ya?x1(kl(vr(r.cloneNode(K_),K_),K_.parent)):K_),r.inlineExpressions(ig);function Fy(bt,ir){We(ir)&&bt.length>0&&(Mg(r.createExpressionStatement(r.inlineExpressions(bt))),bt=[]);const ii=ype(r,tn,ir,K_),Si=nr(ii,un,Nr);return Si&&(ya&&x1(Si),bt.push(Si)),bt}}function Ku(tn){return We(tn.argumentExpression)?r.updateElementAccessExpression(tn,xe(ce.checkDefined(nr(tn.expression,un,FE))),ce.checkDefined(nr(tn.argumentExpression,un,Nr))):ia(tn,un,t)}function al(tn){if(!WE(tn)&&Ot(tn.arguments,We)){const{target:fi,thisArg:ya}=r.createCallBinding(tn.expression,T,I,!0);return tc(vr(r.createFunctionApplyCall(xe(ce.checkDefined(nr(fi,un,FE))),ya,Oc(tn.arguments)),tn),tn)}return ia(tn,un,t)}function Rr(tn){if(Ot(tn.arguments,We)){const{target:fi,thisArg:ya}=r.createCallBinding(r.createPropertyAccessExpression(tn.expression,"bind"),T);return tc(vr(r.createNewExpression(r.createFunctionApplyCall(xe(ce.checkDefined(nr(fi,un,Nr))),ya,Oc(tn.arguments,r.createVoidZero())),void 0,[]),tn),tn)}return ia(tn,un,t)}function mc(tn,fi=0){const ya=tn.length;for(let bu=fi;bu0)break;K_.push(Lo(Fy))}K_.length&&(Mg(r.createExpressionStatement(r.inlineExpressions(K_))),bu+=K_.length,K_=[])}}function Lo(tn){return Sp(r.createAssignment(Sp(r.cloneNode(tn.name),tn.name),ce.checkDefined(nr(tn.initializer,un,Nr))),tn)}function To(tn){if(We(tn))if(We(tn.thenStatement)||We(tn.elseStatement)){const fi=Un(),ya=tn.elseStatement?Un():void 0;gy(tn.elseStatement?ya:fi,ce.checkDefined(nr(tn.expression,un,Nr)),tn.expression),Ea(tn.thenStatement),tn.elseStatement&&(nm(fi),rr(ya),Ea(tn.elseStatement)),rr(fi)}else Mg(nr(tn,un,uf));else Mg(nr(tn,un,uf))}function Aa(tn){if(We(tn)){const fi=Un(),ya=Un();Ha(fi),rr(ya),Ea(tn.statement),rr(fi),po(ya,ce.checkDefined(nr(tn.expression,un,Nr))),mu()}else Mg(nr(tn,un,uf))}function sl(tn){return oe?(fp(),tn=ia(tn,un,t),mu(),tn):ia(tn,un,t)}function vc(tn){if(We(tn)){const fi=Un(),ya=Ha(fi);rr(fi),gy(ya,ce.checkDefined(nr(tn.expression,un,Nr))),Ea(tn.statement),nm(fi),mu()}else Mg(nr(tn,un,uf))}function er(tn){return oe?(fp(),tn=ia(tn,un,t),mu(),tn):ia(tn,un,t)}function Jr(tn){if(We(tn)){const fi=Un(),ya=Un(),bu=Ha(ya);if(tn.initializer){const K_=tn.initializer;My(K_)?Xu(K_):Mg(vr(r.createExpressionStatement(ce.checkDefined(nr(K_,un,Nr))),K_))}rr(fi),tn.condition&&gy(bu,ce.checkDefined(nr(tn.condition,un,Nr))),Ea(tn.statement),rr(ya),tn.incrementor&&Mg(vr(r.createExpressionStatement(ce.checkDefined(nr(tn.incrementor,un,Nr))),tn.incrementor)),nm(fi),mu()}else Mg(nr(tn,un,uf))}function li(tn){oe&&fp();const fi=tn.initializer;if(fi&&My(fi)){for(const bu of fi.declarations)T(bu.name);const ya=n3(fi);tn=r.updateForStatement(tn,ya.length>0?r.inlineExpressions(Vn(ya,Lo)):void 0,nr(tn.condition,un,Nr),nr(tn.incrementor,un,Nr),pE(tn.statement,un,t))}else tn=ia(tn,un,t);return oe&&mu(),tn}function Ir(tn){if(We(tn)){const fi=an(),ya=an(),bu=an(),K_=r.createLoopVariable(),ig=tn.initializer;T(K_),lm(fi,ce.checkDefined(nr(tn.expression,un,Nr))),lm(ya,r.createArrayLiteralExpression()),Mg(r.createForInStatement(bu,fi,r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(ya,"push"),void 0,[bu])))),lm(K_,r.createNumericLiteral(0));const Fy=Un(),bt=Un(),ir=Ha(bt);rr(Fy),gy(ir,r.createLessThan(K_,r.createPropertyAccessExpression(ya,"length"))),lm(bu,r.createElementAccessExpression(ya,K_)),gy(bt,r.createBinaryExpression(bu,103,fi));let ii;if(My(ig)){for(const Si of ig.declarations)T(Si.name);ii=r.cloneNode(ig.declarations[0].name)}else ii=ce.checkDefined(nr(ig,un,Nr)),ce.assert(FE(ii));lm(ii,bu),Ea(tn.statement),rr(bt),Mg(r.createExpressionStatement(r.createPostfixIncrement(K_))),nm(Fy),mu()}else Mg(nr(tn,un,uf))}function _o(tn){oe&&fp();const fi=tn.initializer;if(My(fi)){for(const ya of fi.declarations)T(ya.name);tn=r.updateForInStatement(tn,fi.declarations[0].name,ce.checkDefined(nr(tn.expression,un,Nr)),ce.checkDefined(nr(tn.statement,un,uf,r.liftToBlock)))}else tn=ia(tn,un,t);return oe&&mu(),tn}function xt(tn){const fi=Yu(tn.label?ec(tn.label):void 0);fi>0?nm(fi,tn):Mg(tn)}function Kn(tn){if(oe){const fi=Yu(tn.label&&ec(tn.label));if(fi>0)return uS(fi,tn)}return ia(tn,un,t)}function gn(tn){const fi=m_(tn.label?ec(tn.label):void 0);fi>0?nm(fi,tn):Mg(tn)}function qr(tn){if(oe){const fi=m_(tn.label&&ec(tn.label));if(fi>0)return uS(fi,tn)}return ia(tn,un,t)}function mt(tn){vE(nr(tn.expression,un,Nr),tn)}function _r(tn){return H0(nr(tn.expression,un,Nr),tn)}function Cn(tn){We(tn)?(Qa(xe(ce.checkDefined(nr(tn.expression,un,Nr)))),Ea(tn.statement),Ks()):Mg(nr(tn,un,uf))}function oi(tn){if(We(tn.caseBlock)){const fi=tn.caseBlock,ya=fi.clauses.length,bu=q_(),K_=xe(ce.checkDefined(nr(tn.expression,un,Nr))),ig=[];let Fy=-1;for(let ii=0;ii0)break;ir.push(r.createCaseClause(ce.checkDefined(nr(Do.expression,un,Nr)),[uS(ig[Si],Do.expression)]))}else ii++}ir.length&&(Mg(r.createSwitchStatement(K_,r.createCaseBlock(ir))),bt+=ir.length,ir=[]),ii>0&&(bt+=ii,ii=0)}Fy>=0?nm(ig[Fy]):nm(bu);for(let ii=0;ii=0;ya--){const bu=Be[ya];if(Oh(bu)){if(bu.labelText===tn)return!0}else break}return!1}function m_(tn){if(Be)if(tn)for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(Oh(ya)&&ya.labelText===tn)return ya.breakLabel;if(iy(ya)&&zv(tn,fi-1))return ya.breakLabel}else for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(iy(ya))return ya.breakLabel}return 0}function Yu(tn){if(Be)if(tn)for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(jg(ya)&&zv(tn,fi-1))return ya.continueLabel}else for(let fi=Be.length-1;fi>=0;fi--){const ya=Be[fi];if(jg(ya))return ya.continueLabel}return 0}function Tv(tn){if(tn!==void 0&&tn>0){pt===void 0&&(pt=[]);const fi=r.createNumericLiteral(-1);return pt[tn]===void 0?pt[tn]=[fi]:pt[tn].push(fi),fi}return r.createOmittedExpression()}function Kh(tn){const fi=r.createNumericLiteral(tn);return sW(fi,3,XHe(tn)),fi}function uS(tn,fi){return ce.assertLessThan(0,tn,"Invalid label"),vr(r.createReturnStatement(r.createArrayLiteralExpression([Kh(3),Tv(tn)])),fi)}function H0(tn,fi){return vr(r.createReturnStatement(r.createArrayLiteralExpression(tn?[Kh(2),tn]:[Kh(2)])),fi)}function fx(tn){return vr(r.createCallExpression(r.createPropertyAccessExpression(Dt,"sent"),void 0,[]),tn)}function rd(){_e(0)}function Mg(tn){tn?_e(1,[tn]):rd()}function lm(tn,fi,ya){_e(2,[tn,fi],ya)}function nm(tn,fi){_e(3,[tn],fi)}function po(tn,fi,ya){_e(4,[tn,fi],ya)}function gy(tn,fi,ya){_e(5,[tn,fi],ya)}function fS(tn,fi){_e(7,[tn],fi)}function GT(tn,fi){_e(6,[tn],fi)}function vE(tn,fi){_e(8,[tn],fi)}function oh(tn,fi){_e(9,[tn],fi)}function hy(){_e(10)}function _e(tn,fi,ya){ht===void 0&&(ht=[],ke=[],_t=[]),Ve===void 0&&rr(Un());const bu=ht.length;ht[bu]=tn,ke[bu]=fi,_t[bu]=ya}function vn(){Ft=0,it=0,Ye=void 0,ut=!1,lt=!1,zt=void 0,Wt=void 0,tt=void 0,Mn=void 0,kn=void 0;const tn=Qn();return s().createGeneratorHelper(Sa(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,Dt)],void 0,r.createBlock(tn,tn.length>0)),1048576))}function Qn(){if(ht){for(let tn=0;tn=0;fi--){const ya=kn[fi];Wt=[r.createWithStatement(ya.expression,r.createBlock(Wt))]}if(Mn){const{startLabel:fi,catchLabel:ya,finallyLabel:bu,endLabel:K_}=Mn;Wt.unshift(r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createPropertyAccessExpression(Dt,"trys"),"push"),void 0,[r.createArrayLiteralExpression([Tv(fi),Tv(ya),Tv(bu),Tv(K_)])]))),Mn=void 0}tn&&Wt.push(r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(Dt,"label"),r.createNumericLiteral(it+1))))}zt.push(r.createCaseClause(r.createNumericLiteral(it),Wt||[])),Wt=void 0}function bc(tn){if(Ve)for(let fi=0;fis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(ec(rr))),Un),s.createVoidZero())));ur(Re,nr(ue.externalHelpersImportDeclaration,Ye,uf)),Oi(Re,Fa(We.statements,Ye,uf,$e)),it(Re,!1),v2(Re,y());const Zt=s.updateSourceFile(We,vr(s.createNodeArray(Re),We.statements));return JN(Zt,t.readEmitHelpers()),Zt}function ht(We){const Re=s.createIdentifier("define"),wt=UJ(s,We,W,D),$e=Py(We)&&We,{aliasedModuleNames:Zt,unaliasedModuleNames:xe,importAliasNames:an}=_t(We,!0),Un=s.updateSourceFile(We,vr(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(Re,void 0,[...wt?[wt]:[],s.createArrayLiteralExpression($e?Zn:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...Zt,...xe]),$e?$e.statements.length?$e.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"),...an],void 0,Ft(We))]))]),We.statements));return JN(Un,t.readEmitHelpers()),Un}function ke(We){const{aliasedModuleNames:Re,unaliasedModuleNames:wt,importAliasNames:$e}=_t(We,!1),Zt=UJ(s,We,W,D),xe=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,vr(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")]))]),Sa(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,[...Zt?[Zt]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...Re,...wt]),s.createIdentifier("factory")]))])))],!0),void 0)),an=s.updateSourceFile(We,vr(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(xe,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"),...$e],void 0,Ft(We))]))]),We.statements));return JN(an,t.readEmitHelpers()),an}function _t(We,Re){const wt=[],$e=[],Zt=[];for(const xe of We.amdDependencies)xe.name?(wt.push(s.createStringLiteral(xe.path)),Zt.push(s.createParameterDeclaration(void 0,void 0,xe.name))):$e.push(s.createStringLiteral(xe.path));for(const xe of ue.externalImports){const an=e4(s,xe,de,W,I,D),Un=lb(s,xe,de);an&&(Re&&Un?(Sa(Un,8),wt.push(an),Zt.push(s.createParameterDeclaration(void 0,void 0,Un))):$e.push(an))}return{aliasedModuleNames:wt,unaliasedModuleNames:$e,importAliasNames:Zt}}function Dt(We){if(kh(We)||mh(We)||!e4(s,We,de,W,I,D))return;const Re=lb(s,We,de),wt=al(We,Re);if(wt!==Re)return s.createExpressionStatement(s.createAssignment(Re,wt))}function Ft(We){m();const Re=[],wt=s.copyPrologue(We.statements,Re,!D.noImplicitUseStrict,Ye);pt()&&ur(Re,xt()),Nt(ue.exportedNames)&&ur(Re,s.createExpressionStatement(Em(ue.exportedNames,(Zt,xe)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(ec(xe))),Zt),s.createVoidZero()))),ur(Re,nr(ue.externalHelpersImportDeclaration,Ye,uf)),V===2&&Oi(Re,Qo(ue.externalImports,Dt)),Oi(Re,Fa(We.statements,Ye,uf,wt)),it(Re,!0),v2(Re,y());const $e=s.createBlock(Re,!0);return Be&&lW($e,YHe),$e}function it(We,Re){if(ue.exportEquals){const wt=nr(ue.exportEquals.expression,zt,Nr);if(wt)if(Re){const $e=s.createReturnStatement(wt);vr($e,ue.exportEquals),Sa($e,3840),We.push($e)}else{const $e=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),wt));vr($e,ue.exportEquals),Sa($e,3072),We.push($e)}}}function Ye(We){switch(We.kind){case 272:return Rr(We);case 271:return Ea(We);case 278:return Fi(We);case 277:return ta(We);default:return ut(We)}}function ut(We){switch(We.kind){case 243:return Xu(We);case 262:return $a(We);case 263:return jc(We);case 248:return kn(We,!0);case 249:return cr(We);case 250:return un(We);case 246:return on(We);case 247:return pn(We);case 256:return Or(We);case 254:return Xr(We);case 245:return Ut(We);case 255:return In(We);case 269:return gr(We);case 296:return Cr(We);case 297:return ei(We);case 258:return Gn(We);case 299:return Ur(We);case 241:return so(We);default:return zt(We)}}function lt(We,Re){if(!(We.transformFlags&276828160))return We;switch(We.kind){case 248:return kn(We,!1);case 244:return ho(We);case 217:return di(We,Re);case 360:return Nc(We,Re);case 213:if(WE(We)&&de.impliedNodeFormat===void 0)return ro(We);break;case 226:if(Tg(We))return Mn(We,Re);break;case 224:case 225:return ha(We,Re)}return ia(We,zt,t)}function zt(We){return lt(We,!1)}function Wt(We){return lt(We,!0)}function tt(We){if(Wd(We))for(const Re of We.properties)switch(Re.kind){case 303:if(tt(Re.initializer))return!0;break;case 304:if(tt(Re.name))return!0;break;case 305:if(tt(Re.expression))return!0;break;case 174:case 177:case 178:return!1;default:ce.assertNever(Re,"Unhandled object member kind")}else if(Ch(We)){for(const Re of We.elements)if(ex(Re)){if(tt(Re.expression))return!0}else if(tt(Re))return!0}else if(An(We))return Nt(xu(We))>(MEe(We)?1:0);return!1}function Mn(We,Re){return tt(We.left)?Ik(We,zt,t,0,!Re,Lo):ia(We,zt,t)}function kn(We,Re){if(Re&&We.initializer&&My(We.initializer)&&!(We.initializer.flags&7)){const wt=er(void 0,We.initializer,!1);if(wt){const $e=[],Zt=nr(We.initializer,Wt,My),xe=s.createVariableStatement(void 0,Zt);$e.push(xe),Oi($e,wt);const an=nr(We.condition,zt,Nr),Un=nr(We.incrementor,Wt,Nr),rr=pE(We.statement,Re?ut:zt,t);return $e.push(s.updateForStatement(We,void 0,an,Un,rr)),$e}}return s.updateForStatement(We,nr(We.initializer,Wt,mA),nr(We.condition,zt,Nr),nr(We.incrementor,Wt,Nr),pE(We.statement,Re?ut:zt,t))}function cr(We){if(My(We.initializer)&&!(We.initializer.flags&7)){const Re=er(void 0,We.initializer,!0);if(gt(Re)){const wt=nr(We.initializer,Wt,mA),$e=nr(We.expression,zt,Nr),Zt=pE(We.statement,ut,t),xe=E_(Zt)?s.updateBlock(Zt,[...Re,...Zt.statements]):s.createBlock([...Re,Zt],!0);return s.updateForInStatement(We,wt,$e,xe)}}return s.updateForInStatement(We,nr(We.initializer,Wt,mA),nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function un(We){if(My(We.initializer)&&!(We.initializer.flags&7)){const Re=er(void 0,We.initializer,!0),wt=nr(We.initializer,Wt,mA),$e=nr(We.expression,zt,Nr);let Zt=pE(We.statement,ut,t);return gt(Re)&&(Zt=E_(Zt)?s.updateBlock(Zt,[...Re,...Zt.statements]):s.createBlock([...Re,Zt],!0)),s.updateForOfStatement(We,We.awaitModifier,wt,$e,Zt)}return s.updateForOfStatement(We,We.awaitModifier,nr(We.initializer,Wt,mA),nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function on(We){return s.updateDoStatement(We,pE(We.statement,ut,t),nr(We.expression,zt,Nr))}function pn(We){return s.updateWhileStatement(We,nr(We.expression,zt,Nr),pE(We.statement,ut,t))}function Or(We){return s.updateLabeledStatement(We,We.label,ce.checkDefined(nr(We.statement,ut,uf,s.liftToBlock)))}function Xr(We){return s.updateWithStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.statement,ut,uf,s.liftToBlock)))}function Ut(We){return s.updateIfStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.thenStatement,ut,uf,s.liftToBlock)),nr(We.elseStatement,ut,uf,s.liftToBlock))}function In(We){return s.updateSwitchStatement(We,nr(We.expression,zt,Nr),ce.checkDefined(nr(We.caseBlock,ut,xP)))}function gr(We){return s.updateCaseBlock(We,Fa(We.clauses,ut,d7))}function Cr(We){return s.updateCaseClause(We,nr(We.expression,zt,Nr),Fa(We.statements,ut,uf))}function ei(We){return ia(We,ut,t)}function Gn(We){return ia(We,ut,t)}function Ur(We){return s.updateCatchClause(We,We.variableDeclaration,ce.checkDefined(nr(We.block,ut,E_)))}function so(We){return We=ia(We,ut,t),We}function ho(We){return s.updateExpressionStatement(We,nr(We.expression,Wt,Nr))}function di(We,Re){return s.updateParenthesizedExpression(We,nr(We.expression,Re?Wt:zt,Nr))}function Nc(We,Re){return s.updatePartiallyEmittedExpression(We,nr(We.expression,Re?Wt:zt,Nr))}function ha(We,Re){if((We.operator===46||We.operator===47)&&An(We.operand)&&!Om(We.operand)&&!T6(We.operand)&&!$ie(We.operand)){const wt=xu(We.operand);if(wt){let $e,Zt=nr(We.operand,zt,Nr);yk(We)?Zt=s.updatePrefixUnaryExpression(We,Zt):(Zt=s.updatePostfixUnaryExpression(We,Zt),Re||($e=s.createTempVariable(T),Zt=s.createAssignment($e,Zt),vr(Zt,We)),Zt=s.createComma(Zt,s.cloneNode(We.operand)),vr(Zt,We));for(const xe of wt)Ne[Im(Zt)]=!0,Zt=gn(xe,Zt),vr(Zt,We);return $e&&(Ne[Im(Zt)]=!0,Zt=s.createComma(Zt,$e),vr(Zt,We)),Zt}}return ia(We,zt,t)}function ro(We){if(V===0&&O>=7)return ia(We,zt,t);const Re=e4(s,We,de,W,I,D),wt=nr(pp(We.arguments),zt,Nr),$e=Re&&(!wt||!Wp(wt)||wt.text!==Re.text)?Re:wt,Zt=!!(We.transformFlags&16384);switch(D.module){case 2:return Oc($e,Zt);case 3:return Gs($e??s.createVoidZero(),Zt);case 1:default:return _u($e)}}function Gs(We,Re){if(Be=!0,D6(We)){const wt=Om(We)?We:Wp(We)?s.createStringLiteralFromNode(We):Sa(vr(s.cloneNode(We),We),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,_u(We),void 0,Oc(wt,Re))}else{const wt=s.createTempVariable(T);return s.createComma(s.createAssignment(wt,We),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,_u(wt,!0),void 0,Oc(wt,Re)))}}function Oc(We,Re){const wt=s.createUniqueName("resolve"),$e=s.createUniqueName("reject"),Zt=[s.createParameterDeclaration(void 0,void 0,wt),s.createParameterDeclaration(void 0,void 0,$e)],xe=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([We||s.createOmittedExpression()]),wt,$e]))]);let an;O>=2?an=s.createArrowFunction(void 0,void 0,Zt,void 0,void 0,xe):(an=s.createFunctionExpression(void 0,void 0,void 0,void 0,Zt,void 0,xe),Re&&Sa(an,16));const Un=s.createNewExpression(s.createIdentifier("Promise"),void 0,[an]);return b1(D)?s.createCallExpression(s.createPropertyAccessExpression(Un,s.createIdentifier("then")),void 0,[l().createImportStarCallbackHelper()]):Un}function _u(We,Re){const wt=We&&!aD(We)&&!Re,$e=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,wt?O>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(We,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[We])]:[]);let Zt=s.createCallExpression(s.createIdentifier("require"),void 0,wt?[s.createIdentifier("s")]:We?[We]:[]);b1(D)&&(Zt=l().createImportStarHelper(Zt));const xe=wt?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let an;return O>=2?an=s.createArrowFunction(void 0,void 0,xe,void 0,void 0,Zt):an=s.createFunctionExpression(void 0,void 0,void 0,void 0,xe,void 0,s.createBlock([s.createReturnStatement(Zt)])),s.createCallExpression(s.createPropertyAccessExpression($e,"then"),void 0,[an])}function Ku(We,Re){return!b1(D)||dh(We)&2?Re:RHe(We)?l().createImportStarHelper(Re):Re}function al(We,Re){return!b1(D)||dh(We)&2?Re:Nb(We)?l().createImportStarHelper(Re):ZLe(We)?l().createImportDefaultHelper(Re):Re}function Rr(We){let Re;const wt=uH(We);if(V!==2)if(We.importClause){const $e=[];wt&&!D7(We)?$e.push(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,al(We,mc(We)))):($e.push(s.createVariableDeclaration(s.getGeneratedNameForNode(We),void 0,void 0,al(We,mc(We)))),wt&&D7(We)&&$e.push(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,s.getGeneratedNameForNode(We)))),Re=ur(Re,tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList($e,O>=2?2:0)),We),We))}else return tc(vr(s.createExpressionStatement(mc(We)),We),We);else wt&&D7(We)&&(Re=ur(Re,s.createVariableStatement(void 0,s.createVariableDeclarationList([tc(vr(s.createVariableDeclaration(s.cloneNode(wt.name),void 0,void 0,s.getGeneratedNameForNode(We)),We),We)],O>=2?2:0))));return Re=Aa(Re,We),N0(Re)}function mc(We){const Re=e4(s,We,de,W,I,D),wt=[];return Re&&wt.push(Re),s.createCallExpression(s.createIdentifier("require"),void 0,wt)}function Ea(We){ce.assert(qM(We),"import= for internal module references should be handled in an earlier transformer.");let Re;return V!==2?il(We,1)?Re=ur(Re,tc(vr(s.createExpressionStatement(gn(We.name,mc(We))),We),We)):Re=ur(Re,tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(We.name),void 0,void 0,mc(We))],O>=2?2:0)),We),We)):il(We,1)&&(Re=ur(Re,tc(vr(s.createExpressionStatement(gn(s.getExportName(We),s.getLocalName(We))),We),We))),Re=sl(Re,We),N0(Re)}function Fi(We){if(!We.moduleSpecifier)return;const Re=s.getGeneratedNameForNode(We);if(We.exportClause&&G0(We.exportClause)){const wt=[];V!==2&&wt.push(tc(vr(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(Re,void 0,void 0,mc(We))])),We),We));for(const $e of We.exportClause.elements)if(O===0)wt.push(tc(vr(s.createExpressionStatement(l().createCreateBindingHelper(Re,s.createStringLiteralFromNode($e.propertyName||$e.name),$e.propertyName?s.createStringLiteralFromNode($e.name):void 0)),$e),$e));else{const Zt=!!b1(D)&&!(dh(We)&2)&&ec($e.propertyName||$e.name)==="default",xe=s.createPropertyAccessExpression(Zt?l().createImportDefaultHelper(Re):Re,$e.propertyName||$e.name);wt.push(tc(vr(s.createExpressionStatement(gn(s.getExportName($e),xe,void 0,!0)),$e),$e))}return N0(wt)}else if(We.exportClause){const wt=[];return wt.push(tc(vr(s.createExpressionStatement(gn(s.cloneNode(We.exportClause.name),Ku(We,V!==2?mc(We):_ie(We)?Re:s.createIdentifier(ec(We.exportClause.name))))),We),We)),N0(wt)}else return tc(vr(s.createExpressionStatement(l().createExportStarHelper(V!==2?mc(We):Re)),We),We)}function ta(We){if(!We.isExportEquals)return Kn(s.createIdentifier("default"),nr(We.expression,zt,Nr),We,!0)}function $a(We){let Re;return il(We,1)?Re=ur(Re,tc(vr(s.createFunctionDeclaration(Fa(We.modifiers,qr,bd),We.asteriskToken,s.getDeclarationName(We,!0,!0),void 0,Fa(We.parameters,zt,Pu),void 0,ia(We.body,zt,t)),We),We)):Re=ur(Re,ia(We,zt,t)),Re=li(Re,We),N0(Re)}function jc(We){let Re;return il(We,1)?Re=ur(Re,tc(vr(s.createClassDeclaration(Fa(We.modifiers,qr,pc),s.getDeclarationName(We,!0,!0),void 0,Fa(We.heritageClauses,zt,rT),Fa(We.members,zt,Mv)),We),We)):Re=ur(Re,ia(We,zt,t)),Re=li(Re,We),N0(Re)}function Xu(We){let Re,wt,$e;if(il(We,1)){let Zt,xe=!1;for(const an of We.declarationList.declarations)if(An(an.name)&&T6(an.name))if(Zt||(Zt=Fa(We.modifiers,qr,bd)),an.initializer){const Un=s.updateVariableDeclaration(an,an.name,void 0,void 0,gn(an.name,nr(an.initializer,zt,Nr)));wt=ur(wt,Un)}else wt=ur(wt,an);else if(an.initializer)if(!ld(an.name)&&(ph(an.initializer)||Dm(an.initializer)||B0(an.initializer))){const Un=s.createAssignment(vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),an.name),an.name),s.createIdentifier(aC(an.name))),rr=s.createVariableDeclaration(an.name,an.exclamationToken,an.type,nr(an.initializer,zt,Nr));wt=ur(wt,rr),$e=ur($e,Un),xe=!0}else $e=ur($e,To(an));if(wt&&(Re=ur(Re,s.updateVariableStatement(We,Zt,s.updateVariableDeclarationList(We.declarationList,wt)))),$e){const an=tc(vr(s.createExpressionStatement(s.inlineExpressions($e)),We),We);xe&&Zde(an),Re=ur(Re,an)}}else Re=ur(Re,ia(We,zt,t));return Re=vc(Re,We),N0(Re)}function Lo(We,Re,wt){const $e=xu(We);if($e){let Zt=MEe(We)?Re:s.createAssignment(We,Re);for(const xe of $e)Sa(Zt,8),Zt=gn(xe,Zt,wt);return Zt}return s.createAssignment(We,Re)}function To(We){return ld(We.name)?Ik(nr(We,zt,J9),zt,t,0,!1,Lo):s.createAssignment(vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),We.name),We.name),We.initializer?nr(We.initializer,zt,Nr):s.createVoidZero())}function Aa(We,Re){if(ue.exportEquals)return We;const wt=Re.importClause;if(!wt)return We;const $e=new OW;wt.name&&(We=Ir(We,$e,wt));const Zt=wt.namedBindings;if(Zt)switch(Zt.kind){case 274:We=Ir(We,$e,Zt);break;case 275:for(const xe of Zt.elements)We=Ir(We,$e,xe,!0);break}return We}function sl(We,Re){return ue.exportEquals?We:Ir(We,new OW,Re)}function vc(We,Re){return er(We,Re.declarationList,!1)}function er(We,Re,wt){if(ue.exportEquals)return We;for(const $e of Re.declarations)We=Jr(We,$e,wt);return We}function Jr(We,Re,wt){if(ue.exportEquals)return We;if(ld(Re.name))for(const $e of Re.name.elements)t0($e)||(We=Jr(We,$e,wt));else!Om(Re.name)&&(!ff(Re)||Re.initializer||wt)&&(We=Ir(We,new OW,Re));return We}function li(We,Re){if(ue.exportEquals)return We;const wt=new OW;if(il(Re,1)){const $e=il(Re,1024)?s.createIdentifier("default"):s.getDeclarationName(Re);We=_o(We,wt,$e,s.getLocalName(Re),Re)}return Re.name&&(We=Ir(We,wt,Re)),We}function Ir(We,Re,wt,$e){const Zt=s.getDeclarationName(wt),xe=ue.exportSpecifiers.get(Zt);if(xe)for(const an of xe)We=_o(We,Re,an.name,Zt,an.name,void 0,$e);return We}function _o(We,Re,wt,$e,Zt,xe,an){return Re.has(wt)||(Re.set(wt,!0),We=ur(We,Kn(wt,$e,Zt,xe,an))),We}function xt(){let We;return O===0?We=s.createExpressionStatement(gn(s.createIdentifier("__esModule"),s.createTrue())):We=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())])])),Sa(We,2097152),We}function Kn(We,Re,wt,$e,Zt){const xe=vr(s.createExpressionStatement(gn(We,Re,void 0,Zt)),wt);return x1(xe),$e||Sa(xe,3072),xe}function gn(We,Re,wt,$e){return vr($e&&O!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(We),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(Re)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(We)),Re),wt)}function qr(We){switch(We.kind){case 95:case 90:return}return We}function mt(We,Re,wt){Re.kind===312?(de=Re,ue=oe[e1(de)],te(We,Re,wt),de=void 0,ue=void 0):te(We,Re,wt)}function _r(We,Re){return Re=ee(We,Re),Re.id&&Ne[Re.id]?Re:We===1?oi(Re):BT(Re)?Cn(Re):Re}function Cn(We){const Re=We.name,wt=es(Re);if(wt!==Re){if(We.objectAssignmentInitializer){const $e=s.createAssignment(wt,We.objectAssignmentInitializer);return vr(s.createPropertyAssignment(Re,$e),We)}return vr(s.createPropertyAssignment(Re,wt),We)}return We}function oi(We){switch(We.kind){case 80:return es(We);case 213:return Qr(We);case 215:return co(We);case 226:return Ui(We)}return We}function Qr(We){if(An(We.expression)){const Re=es(We.expression);if(Ne[Im(Re)]=!0,!An(Re)&&!(Tp(We.expression)&8192))return _s(s.updateCallExpression(We,Re,void 0,We.arguments),16)}return We}function co(We){if(An(We.tag)){const Re=es(We.tag);if(Ne[Im(Re)]=!0,!An(Re)&&!(Tp(We.tag)&8192))return _s(s.updateTaggedTemplateExpression(We,Re,void 0,We.template),16)}return We}function es(We){var Re,wt;if(Tp(We)&8192){const $e=WG(de);return $e?s.createPropertyAccessExpression($e,We):We}else if(!(Om(We)&&!(We.emitNode.autoGenerate.flags&64))&&!T6(We)){const $e=I.getReferencedExportContainer(We,MEe(We));if($e&&$e.kind===312)return vr(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(We)),We);const Zt=I.getReferencedImportDeclaration(We);if(Zt){if(lC(Zt))return vr(s.createPropertyAccessExpression(s.getGeneratedNameForNode(Zt.parent),s.createIdentifier("default")),We);if(oS(Zt)){const xe=Zt.propertyName||Zt.name;return vr(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((wt=(Re=Zt.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||Zt),s.cloneNode(xe)),We)}}}return We}function Ui(We){if(zN(We.operatorToken.kind)&&An(We.left)&&(!Om(We.left)||jU(We.left))&&!T6(We.left)){const Re=xu(We.left);if(Re){let wt=We;for(const $e of Re)Ne[Im(wt)]=!0,wt=gn($e,wt,We);return wt}}return We}function xu(We){if(Om(We)){if(jU(We)){const Re=ue==null?void 0:ue.exportSpecifiers.get(We);if(Re){const wt=[];for(const $e of Re)wt.push($e.name);return wt}}}else{const Re=I.getReferencedImportDeclaration(We);if(Re)return ue==null?void 0:ue.exportedBindings[e1(Re)];const wt=new Set,$e=I.getReferencedValueDeclarations(We);if($e){for(const Zt of $e){const xe=ue==null?void 0:ue.exportedBindings[e1(Zt)];if(xe)for(const an of xe)wt.add(an)}if(wt.size)return oc(wt)}}}}var YHe,gct=G({"src/compiler/transformers/module/module.ts"(){Ad(),YHe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function sxe(t){const{factory:r,startLexicalEnvironment:s,endLexicalEnvironment:l,hoistVariableDeclaration:m}=t,y=t.getCompilerOptions(),T=t.getEmitResolver(),D=t.getEmitHost(),I=t.onSubstituteNode,W=t.onEmitNode;t.onSubstituteNode=gn,t.onEmitNode=Kn,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const O=[],V=[],ee=[],te=[];let oe,de,ue,Ne,Be,Ve,pt;return Vx(t,Le);function Le(We){if(We.isDeclarationFile||!(B8(We,y)||We.transformFlags&8388608))return We;const Re=e1(We);oe=We,Ve=We,de=O[Re]=J2e(t,We),ue=r.createUniqueName("exports"),V[Re]=ue,Ne=te[Re]=r.createUniqueName("context");const wt=ht(de.externalImports),$e=ke(We,wt),Zt=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,ue),r.createParameterDeclaration(void 0,void 0,Ne)],void 0,$e),xe=UJ(r,We,D,y),an=r.createArrayLiteralExpression(Vn(wt,rr=>rr.name)),Un=Sa(r.updateSourceFile(We,vr(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,xe?[xe,an,Zt]:[an,Zt]))]),We.statements)),2048);return Kg(y)||$N(Un,$e,rr=>!rr.scoped),pt&&(ee[Re]=pt,pt=void 0),oe=void 0,de=void 0,ue=void 0,Ne=void 0,Be=void 0,Ve=void 0,Un}function ht(We){const Re=new Map,wt=[];for(const $e of We){const Zt=e4(r,$e,oe,D,T,y);if(Zt){const xe=Zt.text,an=Re.get(xe);an!==void 0?wt[an].externalImports.push($e):(Re.set(xe,wt.length),wt.push({name:Zt,externalImports:[$e]}))}}return wt}function ke(We,Re){const wt=[];s();const $e=hv(y,"alwaysStrict")||!y.noImplicitUseStrict&&Wv(oe),Zt=r.copyPrologue(We.statements,wt,$e,it);wt.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(Ne,r.createPropertyAccessExpression(Ne,"id")))]))),nr(de.externalHelpersImportDeclaration,it,uf);const xe=Fa(We.statements,it,uf,Zt);Oi(wt,Be),v2(wt,l());const an=_t(wt),Un=We.transformFlags&2097152?r.createModifiersFromModifierFlags(512):void 0,rr=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",Ft(an,Re)),r.createPropertyAssignment("execute",r.createFunctionExpression(Un,void 0,void 0,void 0,[],void 0,r.createBlock(xe,!0)))],!0);return wt.push(r.createReturnStatement(rr)),r.createBlock(wt,!0)}function _t(We){if(!de.hasExportStarsToExportValues)return;if(!de.exportedNames&&de.exportSpecifiers.size===0){let Zt=!1;for(const xe of de.externalImports)if(xe.kind===278&&xe.exportClause){Zt=!0;break}if(!Zt){const xe=Dt(void 0);return We.push(xe),xe.name}}const Re=[];if(de.exportedNames)for(const Zt of de.exportedNames)Zt.escapedText!=="default"&&Re.push(r.createPropertyAssignment(r.createStringLiteralFromNode(Zt),r.createTrue()));const wt=r.createUniqueName("exportedNames");We.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(wt,void 0,void 0,r.createObjectLiteralExpression(Re,!0))])));const $e=Dt(wt);return We.push($e),$e.name}function Dt(We){const Re=r.createUniqueName("exportStar"),wt=r.createIdentifier("m"),$e=r.createIdentifier("n"),Zt=r.createIdentifier("exports");let xe=r.createStrictInequality($e,r.createStringLiteral("default"));return We&&(xe=r.createLogicalAnd(xe,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(We,"hasOwnProperty"),void 0,[$e])))),r.createFunctionDeclaration(void 0,void 0,Re,void 0,[r.createParameterDeclaration(void 0,void 0,wt)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Zt,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration($e)]),wt,r.createBlock([Sa(r.createIfStatement(xe,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(Zt,$e),r.createElementAccessExpression(wt,$e)))),1)])),r.createExpressionStatement(r.createCallExpression(ue,void 0,[Zt]))],!0))}function Ft(We,Re){const wt=[];for(const $e of Re){const Zt=Ot($e.externalImports,Un=>lb(r,Un,oe)),xe=Zt?r.getGeneratedNameForNode(Zt):r.createUniqueName(""),an=[];for(const Un of $e.externalImports){const rr=lb(r,Un,oe);switch(Un.kind){case 272:if(!Un.importClause)break;case 271:ce.assert(rr!==void 0),an.push(r.createExpressionStatement(r.createAssignment(rr,xe))),il(Un,1)&&an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createStringLiteral(ec(rr)),xe])));break;case 278:if(ce.assert(rr!==void 0),Un.exportClause)if(G0(Un.exportClause)){const mi=[];for(const Ji of Un.exportClause.elements)mi.push(r.createPropertyAssignment(r.createStringLiteral(ec(Ji.name)),r.createElementAccessExpression(xe,r.createStringLiteral(ec(Ji.propertyName||Ji.name)))));an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createObjectLiteralExpression(mi,!0)])))}else an.push(r.createExpressionStatement(r.createCallExpression(ue,void 0,[r.createStringLiteral(ec(Un.exportClause.name)),xe])));else an.push(r.createExpressionStatement(r.createCallExpression(We,void 0,[xe])));break}}wt.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,xe)],void 0,r.createBlock(an,!0)))}return r.createArrayLiteralExpression(wt,!0)}function it(We){switch(We.kind){case 272:return Ye(We);case 271:return lt(We);case 278:return ut(We);case 277:return zt(We);default:return ho(We)}}function Ye(We){let Re;return We.importClause&&m(lb(r,We,oe)),N0(Xr(Re,We))}function ut(We){ce.assertIsDefined(We)}function lt(We){ce.assert(qM(We),"import= for internal module references should be handled in an earlier transformer.");let Re;return m(lb(r,We,oe)),N0(Ut(Re,We))}function zt(We){if(We.isExportEquals)return;const Re=nr(We.expression,To,Nr);return Ur(r.createIdentifier("default"),Re,!0)}function Wt(We){il(We,1)?Be=ur(Be,r.updateFunctionDeclaration(We,Fa(We.modifiers,xt,pc),We.asteriskToken,r.getDeclarationName(We,!0,!0),void 0,Fa(We.parameters,To,Pu),void 0,nr(We.body,To,E_))):Be=ur(Be,ia(We,To,t)),Be=Cr(Be,We)}function tt(We){let Re;const wt=r.getLocalName(We);return m(wt),Re=ur(Re,vr(r.createExpressionStatement(r.createAssignment(wt,vr(r.createClassExpression(Fa(We.modifiers,xt,pc),We.name,void 0,Fa(We.heritageClauses,To,rT),Fa(We.members,To,Mv)),We))),We)),Re=Cr(Re,We),N0(Re)}function Mn(We){if(!cr(We.declarationList))return nr(We,To,uf);let Re;if(T9(We.declarationList)||$2(We.declarationList)){const wt=Fa(We.modifiers,xt,pc),$e=[];for(const xe of We.declarationList.declarations)$e.push(r.updateVariableDeclaration(xe,r.getGeneratedNameForNode(xe.name),void 0,void 0,un(xe,!1)));const Zt=r.updateVariableDeclarationList(We.declarationList,$e);Re=ur(Re,r.updateVariableStatement(We,wt,Zt))}else{let wt;const $e=il(We,1);for(const Zt of We.declarationList.declarations)Zt.initializer?wt=ur(wt,un(Zt,$e)):kn(Zt);wt&&(Re=ur(Re,vr(r.createExpressionStatement(r.inlineExpressions(wt)),We)))}return Re=In(Re,We,!1),N0(Re)}function kn(We){if(ld(We.name))for(const Re of We.name.elements)t0(Re)||kn(Re);else m(r.cloneNode(We.name))}function cr(We){return(Tp(We)&4194304)===0&&(Ve.kind===312||(Ic(We).flags&7)===0)}function un(We,Re){const wt=Re?on:pn;return ld(We.name)?Ik(We,To,t,0,!1,wt):We.initializer?wt(We.name,nr(We.initializer,To,Nr)):We.name}function on(We,Re,wt){return Or(We,Re,wt,!0)}function pn(We,Re,wt){return Or(We,Re,wt,!1)}function Or(We,Re,wt,$e){return m(r.cloneNode(We)),$e?so(We,Ui(vr(r.createAssignment(We,Re),wt))):Ui(vr(r.createAssignment(We,Re),wt))}function Xr(We,Re){if(de.exportEquals)return We;const wt=Re.importClause;if(!wt)return We;wt.name&&(We=ei(We,wt));const $e=wt.namedBindings;if($e)switch($e.kind){case 274:We=ei(We,$e);break;case 275:for(const Zt of $e.elements)We=ei(We,Zt);break}return We}function Ut(We,Re){return de.exportEquals?We:ei(We,Re)}function In(We,Re,wt){if(de.exportEquals)return We;for(const $e of Re.declarationList.declarations)($e.initializer||wt)&&(We=gr(We,$e,wt));return We}function gr(We,Re,wt){if(de.exportEquals)return We;if(ld(Re.name))for(const $e of Re.name.elements)t0($e)||(We=gr(We,$e,wt));else if(!Om(Re.name)){let $e;wt&&(We=Gn(We,Re.name,r.getLocalName(Re)),$e=ec(Re.name)),We=ei(We,Re,$e)}return We}function Cr(We,Re){if(de.exportEquals)return We;let wt;if(il(Re,1)){const $e=il(Re,1024)?r.createStringLiteral("default"):Re.name;We=Gn(We,$e,r.getLocalName(Re)),wt=aC($e)}return Re.name&&(We=ei(We,Re,wt)),We}function ei(We,Re,wt){if(de.exportEquals)return We;const $e=r.getDeclarationName(Re),Zt=de.exportSpecifiers.get($e);if(Zt)for(const xe of Zt)xe.name.escapedText!==wt&&(We=Gn(We,xe.name,$e));return We}function Gn(We,Re,wt,$e){return We=ur(We,Ur(Re,wt,$e)),We}function Ur(We,Re,wt){const $e=r.createExpressionStatement(so(We,Re));return x1($e),wt||Sa($e,3072),$e}function so(We,Re){const wt=An(We)?r.createStringLiteralFromNode(We):We;return Sa(Re,Tp(Re)|3072),Ry(r.createCallExpression(ue,void 0,[wt,Re]),Re)}function ho(We){switch(We.kind){case 243:return Mn(We);case 262:return Wt(We);case 263:return tt(We);case 248:return di(We,!0);case 249:return Nc(We);case 250:return ha(We);case 246:return Oc(We);case 247:return _u(We);case 256:return Ku(We);case 254:return al(We);case 245:return Rr(We);case 255:return mc(We);case 269:return Ea(We);case 296:return Fi(We);case 297:return ta(We);case 258:return $a(We);case 299:return jc(We);case 241:return Xu(We);default:return To(We)}}function di(We,Re){const wt=Ve;return Ve=We,We=r.updateForStatement(We,nr(We.initializer,Re?Gs:Aa,mA),nr(We.condition,To,Nr),nr(We.incrementor,Aa,Nr),pE(We.statement,Re?ho:To,t)),Ve=wt,We}function Nc(We){const Re=Ve;return Ve=We,We=r.updateForInStatement(We,Gs(We.initializer),nr(We.expression,To,Nr),pE(We.statement,ho,t)),Ve=Re,We}function ha(We){const Re=Ve;return Ve=We,We=r.updateForOfStatement(We,We.awaitModifier,Gs(We.initializer),nr(We.expression,To,Nr),pE(We.statement,ho,t)),Ve=Re,We}function ro(We){return My(We)&&cr(We)}function Gs(We){if(ro(We)){let Re;for(const wt of We.declarations)Re=ur(Re,un(wt,!1)),wt.initializer||kn(wt);return Re?r.inlineExpressions(Re):r.createOmittedExpression()}else return nr(We,Aa,mA)}function Oc(We){return r.updateDoStatement(We,pE(We.statement,ho,t),nr(We.expression,To,Nr))}function _u(We){return r.updateWhileStatement(We,nr(We.expression,To,Nr),pE(We.statement,ho,t))}function Ku(We){return r.updateLabeledStatement(We,We.label,ce.checkDefined(nr(We.statement,ho,uf,r.liftToBlock)))}function al(We){return r.updateWithStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.statement,ho,uf,r.liftToBlock)))}function Rr(We){return r.updateIfStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.thenStatement,ho,uf,r.liftToBlock)),nr(We.elseStatement,ho,uf,r.liftToBlock))}function mc(We){return r.updateSwitchStatement(We,nr(We.expression,To,Nr),ce.checkDefined(nr(We.caseBlock,ho,xP)))}function Ea(We){const Re=Ve;return Ve=We,We=r.updateCaseBlock(We,Fa(We.clauses,ho,d7)),Ve=Re,We}function Fi(We){return r.updateCaseClause(We,nr(We.expression,To,Nr),Fa(We.statements,ho,uf))}function ta(We){return ia(We,ho,t)}function $a(We){return ia(We,ho,t)}function jc(We){const Re=Ve;return Ve=We,We=r.updateCatchClause(We,We.variableDeclaration,ce.checkDefined(nr(We.block,ho,E_))),Ve=Re,We}function Xu(We){const Re=Ve;return Ve=We,We=ia(We,ho,t),Ve=Re,We}function Lo(We,Re){if(!(We.transformFlags&276828160))return We;switch(We.kind){case 248:return di(We,!1);case 244:return sl(We);case 217:return vc(We,Re);case 360:return er(We,Re);case 226:if(Tg(We))return li(We,Re);break;case 213:if(WE(We))return Jr(We);break;case 224:case 225:return _o(We,Re)}return ia(We,To,t)}function To(We){return Lo(We,!1)}function Aa(We){return Lo(We,!0)}function sl(We){return r.updateExpressionStatement(We,nr(We.expression,Aa,Nr))}function vc(We,Re){return r.updateParenthesizedExpression(We,nr(We.expression,Re?Aa:To,Nr))}function er(We,Re){return r.updatePartiallyEmittedExpression(We,nr(We.expression,Re?Aa:To,Nr))}function Jr(We){const Re=e4(r,We,oe,D,T,y),wt=nr(pp(We.arguments),To,Nr),$e=Re&&(!wt||!Wp(wt)||wt.text!==Re.text)?Re:wt;return r.createCallExpression(r.createPropertyAccessExpression(Ne,r.createIdentifier("import")),void 0,$e?[$e]:[])}function li(We,Re){return Ir(We.left)?Ik(We,To,t,0,!Re):ia(We,To,t)}function Ir(We){if(wy(We,!0))return Ir(We.left);if(ex(We))return Ir(We.expression);if(Wd(We))return gt(We.properties,Ir);if(Ch(We))return gt(We.elements,Ir);if(BT(We))return Ir(We.name);if(Fm(We))return Ir(We.initializer);if(An(We)){const Re=T.getReferencedExportContainer(We);return Re!==void 0&&Re.kind===312}else return!1}function _o(We,Re){if((We.operator===46||We.operator===47)&&An(We.operand)&&!Om(We.operand)&&!T6(We.operand)&&!$ie(We.operand)){const wt=co(We.operand);if(wt){let $e,Zt=nr(We.operand,To,Nr);yk(We)?Zt=r.updatePrefixUnaryExpression(We,Zt):(Zt=r.updatePostfixUnaryExpression(We,Zt),Re||($e=r.createTempVariable(m),Zt=r.createAssignment($e,Zt),vr(Zt,We)),Zt=r.createComma(Zt,r.cloneNode(We.operand)),vr(Zt,We));for(const xe of wt)Zt=so(xe,Ui(Zt));return $e&&(Zt=r.createComma(Zt,$e),vr(Zt,We)),Zt}}return ia(We,To,t)}function xt(We){switch(We.kind){case 95:case 90:return}return We}function Kn(We,Re,wt){if(Re.kind===312){const $e=e1(Re);oe=Re,de=O[$e],ue=V[$e],pt=ee[$e],Ne=te[$e],pt&&delete ee[$e],W(We,Re,wt),oe=void 0,de=void 0,ue=void 0,Ne=void 0,pt=void 0}else W(We,Re,wt)}function gn(We,Re){return Re=I(We,Re),xu(Re)?Re:We===1?_r(Re):We===4?qr(Re):Re}function qr(We){switch(We.kind){case 304:return mt(We)}return We}function mt(We){var Re,wt;const $e=We.name;if(!Om($e)&&!T6($e)){const Zt=T.getReferencedImportDeclaration($e);if(Zt){if(lC(Zt))return vr(r.createPropertyAssignment(r.cloneNode($e),r.createPropertyAccessExpression(r.getGeneratedNameForNode(Zt.parent),r.createIdentifier("default"))),We);if(oS(Zt))return vr(r.createPropertyAssignment(r.cloneNode($e),r.createPropertyAccessExpression(r.getGeneratedNameForNode(((wt=(Re=Zt.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||Zt),r.cloneNode(Zt.propertyName||Zt.name))),We)}}return We}function _r(We){switch(We.kind){case 80:return Cn(We);case 226:return oi(We);case 236:return Qr(We)}return We}function Cn(We){var Re,wt;if(Tp(We)&8192){const $e=WG(oe);return $e?r.createPropertyAccessExpression($e,We):We}if(!Om(We)&&!T6(We)){const $e=T.getReferencedImportDeclaration(We);if($e){if(lC($e))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode($e.parent),r.createIdentifier("default")),We);if(oS($e))return vr(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((wt=(Re=$e.parent)==null?void 0:Re.parent)==null?void 0:wt.parent)||$e),r.cloneNode($e.propertyName||$e.name)),We)}}return We}function oi(We){if(zN(We.operatorToken.kind)&&An(We.left)&&(!Om(We.left)||jU(We.left))&&!T6(We.left)){const Re=co(We.left);if(Re){let wt=We;for(const $e of Re)wt=so($e,Ui(wt));return wt}}return We}function Qr(We){return S9(We)?r.createPropertyAccessExpression(Ne,r.createIdentifier("meta")):We}function co(We){let Re;const wt=es(We);if(wt){const $e=T.getReferencedExportContainer(We,!1);$e&&$e.kind===312&&(Re=ur(Re,r.getDeclarationName(wt))),Re=Oi(Re,de==null?void 0:de.exportedBindings[e1(wt)])}else if(Om(We)&&jU(We)){const $e=de==null?void 0:de.exportSpecifiers.get(We);if($e){const Zt=[];for(const xe of $e)Zt.push(xe.name);return Zt}}return Re}function es(We){if(!Om(We)){const Re=T.getReferencedImportDeclaration(We);if(Re)return Re;const wt=T.getReferencedValueDeclaration(We);if(wt&&(de!=null&&de.exportedBindings[e1(wt)]))return wt;const $e=T.getReferencedValueDeclarations(We);if($e){for(const Zt of $e)if(Zt!==wt&&(de!=null&&de.exportedBindings[e1(Zt)]))return Zt}return wt}}function Ui(We){return pt===void 0&&(pt=[]),pt[Im(We)]=!0,We}function xu(We){return pt&&We.id&&pt[We.id]}}var hct=G({"src/compiler/transformers/module/system.ts"(){Ad()}});function Oae(t){const{factory:r,getEmitHelperFactory:s}=t,l=t.getEmitHost(),m=t.getEmitResolver(),y=t.getCompilerOptions(),T=iu(y),D=t.onEmitNode,I=t.onSubstituteNode;t.onEmitNode=pt,t.onSubstituteNode=Le,t.enableEmitNotification(312),t.enableSubstitution(80);let W,O,V;return Vx(t,ee);function ee(ke){if(ke.isDeclarationFile)return ke;if(Wv(ke)||F0(y)){O=ke,V=void 0;let _t=te(ke);return O=void 0,V&&(_t=r.updateSourceFile(_t,vr(r.createNodeArray(fie(_t.statements.slice(),V)),_t.statements))),!Wv(ke)||gt(_t.statements,UU)?_t:r.updateSourceFile(_t,vr(r.createNodeArray([..._t.statements,jJ(r)]),_t.statements))}return ke}function te(ke){const _t=bpe(r,s(),ke,y);if(_t){const Dt=[],Ft=r.copyPrologue(ke.statements,Dt);return ur(Dt,_t),Oi(Dt,Fa(ke.statements,oe,uf,Ft)),r.updateSourceFile(ke,vr(r.createNodeArray(Dt),ke.statements))}else return ia(ke,oe,t)}function oe(ke){switch(ke.kind){case 271:return Zp(y)>=100?ue(ke):void 0;case 277:return Be(ke);case 278:return Ve(ke)}return ke}function de(ke){const _t=e4(r,ke,ce.checkDefined(O),l,m,y),Dt=[];if(_t&&Dt.push(_t),!V){const it=r.createUniqueName("_createRequire",48),Ye=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamedImports([r.createImportSpecifier(!1,r.createIdentifier("createRequire"),it)])),r.createStringLiteral("module")),ut=r.createUniqueName("__require",48),lt=r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(ut,void 0,void 0,r.createCallExpression(r.cloneNode(it),void 0,[r.createPropertyAccessExpression(r.createMetaProperty(102,r.createIdentifier("meta")),r.createIdentifier("url"))]))],T>=2?2:0));V=[Ye,lt]}const Ft=V[1].declarationList.declarations[0].name;return ce.assertNode(Ft,An),r.createCallExpression(r.cloneNode(Ft),void 0,Dt)}function ue(ke){ce.assert(qM(ke),"import= for internal module references should be handled in an earlier transformer.");let _t;return _t=ur(_t,tc(vr(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ke.name),void 0,void 0,de(ke))],T>=2?2:0)),ke),ke)),_t=Ne(_t,ke),N0(_t)}function Ne(ke,_t){return il(_t,1)&&(ke=ur(ke,r.createExportDeclaration(void 0,_t.isTypeOnly,r.createNamedExports([r.createExportSpecifier(!1,void 0,ec(_t.name))])))),ke}function Be(ke){return ke.isExportEquals?void 0:ke}function Ve(ke){if(y.module!==void 0&&y.module>5||!ke.exportClause||!AP(ke.exportClause)||!ke.moduleSpecifier)return ke;const _t=ke.exportClause.name,Dt=r.getGeneratedNameForNode(_t),Ft=r.createImportDeclaration(void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(Dt)),ke.moduleSpecifier,ke.assertClause);tc(Ft,ke.exportClause);const it=_ie(ke)?r.createExportDefault(Dt):r.createExportDeclaration(void 0,!1,r.createNamedExports([r.createExportSpecifier(!1,Dt,_t)]));return tc(it,ke),[Ft,it]}function pt(ke,_t,Dt){tl(_t)?((Wv(_t)||F0(y))&&y.importHelpers&&(W=new Map),D(ke,_t,Dt),W=void 0):D(ke,_t,Dt)}function Le(ke,_t){return _t=I(ke,_t),W&&An(_t)&&Tp(_t)&8192?ht(_t):_t}function ht(ke){const _t=ec(ke);let Dt=W.get(_t);return Dt||W.set(_t,Dt=r.createUniqueName(_t,48)),Dt}}var QHe=G({"src/compiler/transformers/module/esnextAnd2015.ts"(){Ad()}});function ZHe(t){const r=t.onSubstituteNode,s=t.onEmitNode,l=Oae(t),m=t.onSubstituteNode,y=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=s;const T=Pme(t),D=t.onSubstituteNode,I=t.onEmitNode;t.onSubstituteNode=O,t.onEmitNode=V,t.enableSubstitution(312),t.enableEmitNotification(312);let W;return oe;function O(ue,Ne){return tl(Ne)?(W=Ne,r(ue,Ne)):W?W.impliedNodeFormat===99?m(ue,Ne):D(ue,Ne):r(ue,Ne)}function V(ue,Ne,Be){return tl(Ne)&&(W=Ne),W?W.impliedNodeFormat===99?y(ue,Ne,Be):I(ue,Ne,Be):s(ue,Ne,Be)}function ee(ue){return ue.impliedNodeFormat===99?l:T}function te(ue){if(ue.isDeclarationFile)return ue;W=ue;const Ne=ee(ue)(ue);return W=void 0,ce.assert(tl(Ne)),Ne}function oe(ue){return ue.kind===312?te(ue):de(ue)}function de(ue){return t.factory.createBundle(Vn(ue.sourceFiles,te),ue.prepends)}}var v4e=G({"src/compiler/transformers/module/node.ts"(){Ad()}});function cxe(t){return ff(t)||Os(t)||Np(t)||ym(t)||_P(t)||J2(t)||lE(t)||Lh(t)||em(t)||Jh(t)||b0(t)||Pu(t)||Hh(t)||WT(t)||kh(t)||mg(t)||pg(t)||Xb(t)||sa(t)||Ed(t)||ys(t)||T2(t)}function Nme(t){if(_P(t)||J2(t))return r;return Jh(t)||em(t)?l:u4(t);function r(y){const T=s(y);return T!==void 0?{diagnosticMessage:T,errorNode:t,typeName:t.name}:void 0}function s(y){return e_(t)?y.errorModuleName?y.accessibility===2?w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?y.errorModuleName?y.accessibility===2?w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?w.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Property_0_of_exported_interface_has_or_is_using_private_name_1}function l(y){const T=m(y);return T!==void 0?{diagnosticMessage:T,errorNode:t,typeName:t.name}:void 0}function m(y){return e_(t)?y.errorModuleName?y.accessibility===2?w.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?y.errorModuleName?y.accessibility===2?w.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_method_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?w.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function u4(t){if(ff(t)||Os(t)||Np(t)||sa(t)||Ed(t)||ys(t)||ym(t)||pg(t))return s;return _P(t)||J2(t)?l:lE(t)||Lh(t)||em(t)||Jh(t)||b0(t)||Xb(t)?m:Pu(t)?Eb(t,t.parent)&&il(t.parent,8)?s:y:Hh(t)?D:WT(t)?I:kh(t)?W:mg(t)||T2(t)?O:ce.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${ce.formatSyntaxKind(t.kind)}`);function r(V){if(t.kind===260||t.kind===208)return V.errorModuleName?V.accessibility===2?w.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:w.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&&il(t.parent,8))return e_(t)?V.errorModuleName?V.accessibility===2?w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?V.errorModuleName?V.accessibility===2?w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:w.Public_property_0_of_exported_class_has_or_is_using_private_name_1:V.errorModuleName?w.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(V){const ee=r(V);return ee!==void 0?{diagnosticMessage:ee,errorNode:t,typeName:t.name}:void 0}function l(V){let ee;return t.kind===178?e_(t)?ee=V.errorModuleName?w.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ee=V.errorModuleName?w.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e_(t)?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:ee,errorNode:t.name,typeName:t.name}}function m(V){let ee;switch(t.kind){case 180:ee=V.errorModuleName?w.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:ee=V.errorModuleName?w.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:ee=V.errorModuleName?w.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:e_(t)?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ee=V.errorModuleName?w.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:ee=V.errorModuleName?V.accessibility===2?w.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:w.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:w.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return ce.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:ee,errorNode:t.name||t}}function y(V){const ee=T(V);return ee!==void 0?{diagnosticMessage:ee,errorNode:t,typeName:t.name}:void 0}function T(V){switch(t.parent.kind){case 176:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return V.errorModuleName?w.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return V.errorModuleName?w.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return V.errorModuleName?w.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return e_(t.parent)?V.errorModuleName?V.accessibility===2?w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?V.errorModuleName?V.accessibility===2?w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:V.errorModuleName?w.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return V.errorModuleName?V.accessibility===2?w.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:w.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:w.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return ce.fail(`Unknown parent for parameter: ${ce.formatSyntaxKind(t.parent.kind)}`)}}function D(){let V;switch(t.parent.kind){case 263:V=w.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:V=w.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:V=w.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:V=w.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:V=w.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:e_(t.parent)?V=w.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?V=w.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:V=w.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:V=w.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:V=w.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:V=w.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return ce.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:V,errorNode:t,typeName:t.name}}function I(){let V;return Kc(t.parent.parent)?V=rT(t.parent)&&t.parent.token===119?w.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?w.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:w.extends_clause_of_exported_class_has_or_is_using_private_name_0:V=w.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:V,errorNode:t,typeName:o_(t.parent.parent)}}function W(){return{diagnosticMessage:w.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function O(V){return{diagnosticMessage:V.errorModuleName?w.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:w.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:T2(t)?ce.checkDefined(t.typeExpression):t.type,typeName:T2(t)?o_(t):t.name}}}var b4e=G({"src/compiler/transformers/declarations/diagnostics.ts"(){Ad()}});function eJe(t,r,s){const l=t.getCompilerOptions();return zae(r,t,be,l,s?[s]:gi(t.getSourceFiles(),xie),[QN],!1).diagnostics}function Fae(t,r){const s=r.text.substring(t.pos,t.end);return Ub(s,"@internal")}function wme(t,r){const s=Il(t);if(s&&s.kind===169){const m=s.parent.parameters.indexOf(s),y=m>0?s.parent.parameters[m-1]:void 0,T=r.text,D=y?Hi(Nx(T,ep(T,y.end+1,!1,!0)),CS(T,t.pos)):Nx(T,ep(T,t.pos,!1,!0));return D&&D.length&&Fae(yl(D),r)}const l=s&&E9(s,r);return!!Ot(l,m=>Fae(m,r))}function QN(t){const r=()=>ce.fail("Diagnostic emitted without context");let s=r,l=!0,m=!1,y=!1,T=!1,D=!1,I,W,O,V,ee,te;const{factory:oe}=t,de=t.getEmitHost(),ue={trackSymbol:zt,reportInaccessibleThisError:cr,reportInaccessibleUniqueSymbolError:Mn,reportCyclicStructureError:kn,reportPrivateInBaseOfClassExpression:Wt,reportLikelyUnsafeImportRequiredError:un,reportTruncationError:on,moduleResolverHost:de,trackReferencedAmbientModule:Ye,trackExternalModuleSymbolOfImportTypeNode:lt,reportNonlocalAugmentation:pn,reportNonSerializableProperty:Or,reportImportTypeNodeResolutionModeOverride:Xr};let Ne,Be,Ve,pt,Le,ht;const ke=t.getEmitResolver(),_t=t.getCompilerOptions(),{noResolve:Dt,stripInternal:Ft}=_t;return In;function it(mt){if(mt){W=W||new Set;for(const _r of mt)W.add(_r)}}function Ye(mt,_r){const Cn=ke.getTypeReferenceDirectivesForSymbol(_r,67108863);if(Nt(Cn))return it(Cn);const oi=ns(mt);pt.set(e1(oi),oi)}function ut(mt){if(mt.accessibility===0){if(mt&&mt.aliasesToMakeVisible)if(!O)O=mt.aliasesToMakeVisible;else for(const _r of mt.aliasesToMakeVisible)Dy(O,_r)}else{const _r=s(mt);if(_r)return _r.typeName?t.addDiagnostic(kc(mt.errorNode||_r.errorNode,_r.diagnosticMessage,Yv(_r.typeName),mt.errorSymbolName,mt.errorModuleName)):t.addDiagnostic(kc(mt.errorNode||_r.errorNode,_r.diagnosticMessage,mt.errorSymbolName,mt.errorModuleName)),!0}return!1}function lt(mt){m||(te||(te=[])).push(mt)}function zt(mt,_r,Cn){if(mt.flags&262144)return!1;const oi=ut(ke.isSymbolAccessible(mt,_r,Cn,!0));return it(ke.getTypeReferenceDirectivesForSymbol(mt,Cn)),oi}function Wt(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.Property_0_of_exported_class_expression_may_not_be_private_or_protected,mt))}function tt(){return Ne?Ud(Ne):Be&&o_(Be)?Ud(o_(Be)):Be&&Ly(Be)?Be.isExportEquals?"export=":"default":"(Missing)"}function Mn(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,tt(),"unique symbol"))}function kn(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,tt()))}function cr(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,tt(),"this"))}function un(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,tt(),mt))}function on(){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function pn(mt,_r,Cn){var oi;const Qr=(oi=_r.declarations)==null?void 0:oi.find(es=>ns(es)===mt),co=gi(Cn.declarations,es=>ns(es)!==mt);if(Qr&&co)for(const es of co)t.addDiagnostic(ml(kc(es,w.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),kc(Qr,w.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Or(mt){(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,mt))}function Xr(){!pG()&&(Ne||Be)&&t.addDiagnostic(kc(Ne||Be,w.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Ut(mt,_r){const Cn=s;s=Qr=>Qr.errorNode&&cxe(Qr.errorNode)?u4(Qr.errorNode)(Qr):{diagnosticMessage:Qr.errorModuleName?w.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:w.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Qr.errorNode||mt};const oi=ke.getDeclarationStatementsForSourceFile(mt,mF,ue,_r);return s=Cn,oi}function In(mt){if(mt.kind===312&&mt.isDeclarationFile)return mt;if(mt.kind===313){m=!0,pt=new Map,Le=new Map;let Re=!1;const wt=oe.createBundle(Vn(mt.sourceFiles,xe=>{if(xe.isDeclarationFile)return;if(Re=Re||xe.hasNoDefaultLib,Ve=xe,I=xe,O=void 0,ee=!1,V=new Map,s=r,T=!1,D=!1,gr(xe,pt),Cr(xe,Le),h1(xe)||Py(xe)){y=!1,l=!1;const Un=v1(xe)?oe.createNodeArray(Ut(xe,!0)):Fa(xe.statements,Xu,uf);return oe.updateSourceFile(xe,[oe.createModuleDeclaration([oe.createModifier(138)],oe.createStringLiteral(Rie(t.getEmitHost(),xe)),oe.createModuleBlock(vr(oe.createNodeArray(ta(Un)),xe.statements)))],!0,[],[],!1,[])}l=!0;const an=v1(xe)?oe.createNodeArray(Ut(xe)):Fa(xe.statements,Xu,uf);return oe.updateSourceFile(xe,ta(an),!0,[],[],!1,[])}),Qo(mt.prepends,xe=>{if(xe.kind===315){const an=pEe(xe,"dts",Ft);return Re=Re||!!an.hasNoDefaultLib,gr(an,pt),it(Vn(an.typeReferenceDirectives,Un=>[Un.fileName,Un.resolutionMode])),Cr(an,Le),an}return xe}));wt.syntheticFileReferences=[],wt.syntheticTypeReferences=Ui(),wt.syntheticLibReferences=es(),wt.hasNoDefaultLib=Re;const $e=qc(hf(Gae(mt,de,!0).declarationFilePath)),Zt=We(wt.syntheticFileReferences,$e);return pt.forEach(Zt),wt}l=!0,T=!1,D=!1,I=mt,Ve=mt,s=r,m=!1,y=!1,ee=!1,O=void 0,V=new Map,W=void 0,pt=gr(Ve,new Map),Le=Cr(Ve,new Map);const _r=[],Cn=qc(hf(Gae(mt,de,!0).declarationFilePath)),oi=We(_r,Cn);let Qr;if(v1(Ve))Qr=oe.createNodeArray(Ut(mt)),pt.forEach(oi),ht=gi(Qr,hm);else{const Re=Fa(mt.statements,Xu,uf);Qr=vr(oe.createNodeArray(ta(Re)),mt.statements),pt.forEach(oi),ht=gi(Qr,hm),Wv(mt)&&(!y||T&&!D)&&(Qr=vr(oe.createNodeArray([...Qr,jJ(oe)]),Qr))}const co=oe.updateSourceFile(mt,Qr,!0,_r,Ui(),mt.hasNoDefaultLib,es());return co.exportedModulesFromDeclarationEmit=te,co;function es(){return oc(Le.keys(),Re=>({fileName:Re,pos:-1,end:-1}))}function Ui(){return W?Qo(oc(W.keys()),xu):[]}function xu([Re,wt]){if(ht){for(const $e of ht)if(kh($e)&&j0($e.moduleReference)){const Zt=$e.moduleReference.expression;if(sp(Zt)&&Zt.text===Re)return}else if(Fv($e)&&Wp($e.moduleSpecifier)&&$e.moduleSpecifier.text===Re)return}return{fileName:Re,pos:-1,end:-1,...wt?{resolutionMode:wt}:void 0}}function We(Re,wt){return $e=>{let Zt;if($e.isDeclarationFile)Zt=$e.fileName;else{if(m&&ni(mt.sourceFiles,$e))return;const xe=Gae($e,de,!0);Zt=xe.declarationFilePath||xe.jsFilePath||$e.fileName}if(Zt){const xe=ime(_t,Ve,_h(wt,de.getCurrentDirectory(),de.getCanonicalFileName),_h(Zt,de.getCurrentDirectory(),de.getCanonicalFileName),de);if(!U2(xe)){it([[xe,void 0]]);return}let an=Oz(wt,Zt,de.getCurrentDirectory(),de.getCanonicalFileName,!1);if(xf(an,"./")&&e7(an)&&(an=an.substring(2)),xf(an,"node_modules/")||NW(an))return;Re.push({pos:-1,end:-1,fileName:an})}}}}function gr(mt,_r){return Dt||!xA(mt)&&v1(mt)||Ot(mt.referencedFiles,Cn=>{const oi=de.getSourceFileFromReference(mt,Cn);oi&&_r.set(e1(oi),oi)}),_r}function Cr(mt,_r){return Ot(mt.libReferenceDirectives,Cn=>{de.getLibFileFromReference(Cn)&&_r.set(Q0(Cn.fileName),!0)}),_r}function ei(mt){if(mt.kind===80)return mt;return mt.kind===207?oe.updateArrayBindingPattern(mt,Fa(mt.elements,_r,qX)):oe.updateObjectBindingPattern(mt,Fa(mt.elements,_r,ym));function _r(Cn){return Cn.kind===232?Cn:Cn.propertyName&&An(Cn.propertyName)&&An(Cn.name)&&!Cn.symbol.isReferenced&&!yH(Cn.propertyName)?oe.updateBindingElement(Cn,Cn.dotDotDotToken,void 0,Cn.propertyName,Ur(Cn)?Cn.initializer:void 0):oe.updateBindingElement(Cn,Cn.dotDotDotToken,Cn.propertyName,ei(Cn.name),Ur(Cn)?Cn.initializer:void 0)}}function Gn(mt,_r,Cn){let oi;ee||(oi=s,s=u4(mt));const Qr=oe.updateParameterDeclaration(mt,T4e(oe,mt,_r),mt.dotDotDotToken,ei(mt.name),ke.isOptionalParameter(mt)?mt.questionToken||oe.createToken(58):void 0,ho(mt,Cn||mt.type,!0),so(mt));return ee||(s=oi),Qr}function Ur(mt){return lxe(mt)&&ke.isLiteralConstDeclaration(Il(mt))}function so(mt){if(Ur(mt))return ke.createLiteralConstValue(Il(mt),ue)}function ho(mt,_r,Cn){if(!Cn&&Ab(mt,8)||Ur(mt))return;const oi=mt.kind===169&&(ke.isRequiredInitializedParameter(mt)||ke.isOptionalUninitializedParameterProperty(mt));if(_r&&!oi)return nr(_r,$a,Uu);if(!Il(mt))return _r?nr(_r,$a,Uu):oe.createKeywordTypeNode(133);if(mt.kind===178)return oe.createKeywordTypeNode(133);Ne=mt.name;let Qr;if(ee||(Qr=s,s=u4(mt)),mt.kind===260||mt.kind===208)return co(ke.createTypeOfDeclaration(mt,I,mF,ue));if(mt.kind===169||mt.kind===172||mt.kind===171)return Np(mt)||!mt.initializer?co(ke.createTypeOfDeclaration(mt,I,mF,ue,oi)):co(ke.createTypeOfDeclaration(mt,I,mF,ue,oi)||ke.createTypeOfExpression(mt.initializer,I,mF,ue));return co(ke.createReturnTypeOfSignatureDeclaration(mt,I,mF,ue));function co(es){return Ne=void 0,ee||(s=Qr),es||oe.createKeywordTypeNode(133)}}function di(mt){switch(mt=Il(mt),mt.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ke.isDeclarationVisible(mt);case 260:return!ha(mt);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Nc(mt){var _r;if(mt.body)return!0;const Cn=(_r=mt.symbol.declarations)==null?void 0:_r.filter(oi=>b0(oi)&&!oi.body);return!Cn||Cn.indexOf(mt)===Cn.length-1}function ha(mt){return t0(mt)?!1:ld(mt.name)?gt(mt.name.elements,ha):ke.isDeclarationVisible(mt)}function ro(mt,_r,Cn){if(Ab(mt,8))return oe.createNodeArray();const oi=Vn(_r,Qr=>Gn(Qr,Cn));return oi?oe.createNodeArray(oi,_r.hasTrailingComma):oe.createNodeArray()}function Gs(mt,_r){let Cn;if(!_r){const oi=JL(mt);oi&&(Cn=[Gn(oi)])}if(Ep(mt)){let oi;if(!_r){const Qr=yR(mt);if(Qr){const co=gn(mt,ke.getAllAccessorDeclarations(mt));oi=Gn(Qr,void 0,co)}}oi||(oi=oe.createParameterDeclaration(void 0,void 0,"value")),Cn=ur(Cn,oi)}return oe.createNodeArray(Cn||Zn)}function Oc(mt,_r){return Ab(mt,8)?void 0:Fa(_r,$a,Hh)}function _u(mt){return tl(mt)||mg(mt)||xp(mt)||Kc(mt)||Kp(mt)||S_(mt)||Xb(mt)||yW(mt)}function Ku(mt,_r){const Cn=ke.isEntityNameVisible(mt,_r);ut(Cn),it(ke.getTypeReferenceDirectivesForEntityName(mt))}function al(mt,_r){return g1(mt)&&g1(_r)&&(mt.jsDoc=_r.jsDoc),Ry(mt,lI(_r))}function Rr(mt,_r){if(_r){if(y=y||mt.kind!==267&&mt.kind!==205,sp(_r))if(m){const Cn=TY(t.getEmitHost(),ke,mt);if(Cn)return oe.createStringLiteral(Cn)}else{const Cn=ke.getSymbolOfExternalModuleSpecifier(_r);Cn&&(te||(te=[])).push(Cn)}return _r}}function mc(mt){if(ke.isDeclarationVisible(mt))if(mt.moduleReference.kind===283){const _r=S7(mt);return oe.updateImportEqualsDeclaration(mt,mt.modifiers,mt.isTypeOnly,mt.name,oe.updateExternalModuleReference(mt.moduleReference,Rr(mt,_r)))}else{const _r=s;return s=u4(mt),Ku(mt.moduleReference,I),s=_r,mt}}function Ea(mt){if(!mt.importClause)return oe.updateImportDeclaration(mt,mt.modifiers,mt.importClause,Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));const _r=mt.importClause&&mt.importClause.name&&ke.isDeclarationVisible(mt.importClause)?mt.importClause.name:void 0;if(!mt.importClause.namedBindings)return _r&&oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,void 0),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));if(mt.importClause.namedBindings.kind===274){const oi=ke.isDeclarationVisible(mt.importClause.namedBindings)?mt.importClause.namedBindings:void 0;return _r||oi?oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,oi),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause)):void 0}const Cn=Qo(mt.importClause.namedBindings.elements,oi=>ke.isDeclarationVisible(oi)?oi:void 0);if(Cn&&Cn.length||_r)return oe.updateImportDeclaration(mt,mt.modifiers,oe.updateImportClause(mt.importClause,mt.importClause.isTypeOnly,_r,Cn&&Cn.length?oe.updateNamedImports(mt.importClause.namedBindings,Cn):void 0),Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause));if(ke.isImportRequiredByAugmentation(mt))return oe.updateImportDeclaration(mt,mt.modifiers,void 0,Rr(mt,mt.moduleSpecifier),Fi(mt.assertClause))}function Fi(mt){if(D2(mt)!==void 0)return pG()||t.addDiagnostic(kc(mt,w.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),mt}function ta(mt){for(;Nt(O);){const Cn=O.shift();if(!Xz(Cn))return ce.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${ce.formatSyntaxKind(Cn.kind)}`);const oi=l;l=Cn.parent&&tl(Cn.parent)&&!(Wv(Cn.parent)&&m);const Qr=Aa(Cn);l=oi,V.set(e1(Cn),Qr)}return Fa(mt,_r,uf);function _r(Cn){if(Xz(Cn)){const oi=e1(Cn);if(V.has(oi)){const Qr=V.get(oi);return V.delete(oi),Qr&&((ls(Qr)?gt(Qr,VU):VU(Qr))&&(T=!0),tl(Cn.parent)&&(ls(Qr)?gt(Qr,UU):UU(Qr))&&(y=!0)),Qr}}return Cn}}function $a(mt){if(li(mt)||dl(mt)&&(di(mt)||nI(mt)&&!ke.isLateBound(Il(mt)))||S_(mt)&&ke.isImplementationOfOverload(mt)||Roe(mt))return;let _r;_u(mt)&&(_r=I,I=mt);const Cn=s,oi=cxe(mt),Qr=ee;let co=(mt.kind===187||mt.kind===200)&&mt.parent.kind!==265;if((em(mt)||Jh(mt))&&Ab(mt,8))return mt.symbol&&mt.symbol.declarations&&mt.symbol.declarations[0]!==mt?void 0:es(oe.createPropertyDeclaration(xt(mt),mt.name,void 0,void 0,void 0));if(oi&&!ee&&(s=u4(mt)),uE(mt)&&Ku(mt.exprName,I),co&&(ee=!0),bct(mt))switch(mt.kind){case 233:{(Vd(mt.expression)||Uh(mt.expression))&&Ku(mt.expression,I);const Ui=ia(mt,$a,t);return es(oe.updateExpressionWithTypeArguments(Ui,Ui.expression,Ui.typeArguments))}case 183:{Ku(mt.typeName,I);const Ui=ia(mt,$a,t);return es(oe.updateTypeReferenceNode(Ui,Ui.typeName,Ui.typeArguments))}case 180:return es(oe.updateConstructSignature(mt,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 176:{const Ui=oe.createConstructorDeclaration(xt(mt),ro(mt,mt.parameters,0),void 0);return es(Ui)}case 174:{if(Gu(mt.name))return es(void 0);const Ui=oe.createMethodDeclaration(xt(mt),void 0,mt.name,mt.questionToken,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type),void 0);return es(Ui)}case 177:{if(Gu(mt.name))return es(void 0);const Ui=gn(mt,ke.getAllAccessorDeclarations(mt));return es(oe.updateGetAccessorDeclaration(mt,xt(mt),mt.name,Gs(mt,Ab(mt,8)),ho(mt,Ui),void 0))}case 178:return Gu(mt.name)?es(void 0):es(oe.updateSetAccessorDeclaration(mt,xt(mt),mt.name,Gs(mt,Ab(mt,8)),void 0));case 172:return Gu(mt.name)?es(void 0):es(oe.updatePropertyDeclaration(mt,xt(mt),mt.name,mt.questionToken,ho(mt,mt.type),so(mt)));case 171:return Gu(mt.name)?es(void 0):es(oe.updatePropertySignature(mt,xt(mt),mt.name,mt.questionToken,ho(mt,mt.type)));case 173:return Gu(mt.name)?es(void 0):es(oe.updateMethodSignature(mt,xt(mt),mt.name,mt.questionToken,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 179:return es(oe.updateCallSignature(mt,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type)));case 181:return es(oe.updateIndexSignature(mt,xt(mt),ro(mt,mt.parameters),nr(mt.type,$a,Uu)||oe.createKeywordTypeNode(133)));case 260:return ld(mt.name)?vc(mt.name):(co=!0,ee=!0,es(oe.updateVariableDeclaration(mt,mt.name,void 0,ho(mt,mt.type),so(mt))));case 168:return jc(mt)&&(mt.default||mt.constraint)?es(oe.updateTypeParameterDeclaration(mt,mt.modifiers,mt.name,void 0,void 0)):es(ia(mt,$a,t));case 194:{const Ui=nr(mt.checkType,$a,Uu),xu=nr(mt.extendsType,$a,Uu),We=I;I=mt.trueType;const Re=nr(mt.trueType,$a,Uu);I=We;const wt=nr(mt.falseType,$a,Uu);return ce.assert(Ui),ce.assert(xu),ce.assert(Re),ce.assert(wt),es(oe.updateConditionalTypeNode(mt,Ui,xu,Re,wt))}case 184:return es(oe.updateFunctionTypeNode(mt,Fa(mt.typeParameters,$a,Hh),ro(mt,mt.parameters),ce.checkDefined(nr(mt.type,$a,Uu))));case 185:return es(oe.updateConstructorTypeNode(mt,xt(mt),Fa(mt.typeParameters,$a,Hh),ro(mt,mt.parameters),ce.checkDefined(nr(mt.type,$a,Uu))));case 205:return BE(mt)?es(oe.updateImportTypeNode(mt,oe.updateLiteralTypeNode(mt.argument,Rr(mt,mt.argument.literal)),mt.assertions,mt.qualifier,Fa(mt.typeArguments,$a,Uu),mt.isTypeOf)):es(mt);default:ce.assertNever(mt,`Attempted to process unhandled node kind: ${ce.formatSyntaxKind(mt.kind)}`)}return m6(mt)&&Ah(Ve,mt.pos).line===Ah(Ve,mt.end).line&&Sa(mt,1),es(ia(mt,$a,t));function es(Ui){return Ui&&oi&&nI(mt)&&Jr(mt),_u(mt)&&(I=_r),oi&&!ee&&(s=Cn),co&&(ee=Qr),Ui===mt?Ui:Ui&&tc(al(Ui,mt),mt)}}function jc(mt){return mt.parent.kind===174&&Ab(mt.parent,8)}function Xu(mt){if(!vct(mt)||li(mt))return;switch(mt.kind){case 278:return tl(mt.parent)&&(y=!0),D=!0,oe.updateExportDeclaration(mt,mt.modifiers,mt.isTypeOnly,mt.exportClause,Rr(mt,mt.moduleSpecifier),D2(mt.assertClause)?mt.assertClause:void 0);case 277:{if(tl(mt.parent)&&(y=!0),D=!0,mt.expression.kind===80)return mt;{const Cn=oe.createUniqueName("_default",16);s=()=>({diagnosticMessage:w.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:mt}),Be=mt;const oi=oe.createVariableDeclaration(Cn,void 0,ke.createTypeOfExpression(mt.expression,mt,mF,ue),void 0);Be=void 0;const Qr=oe.createVariableStatement(l?[oe.createModifier(138)]:[],oe.createVariableDeclarationList([oi],2));return al(Qr,mt),Zde(mt),[Qr,oe.updateExportAssignment(mt,mt.modifiers,Cn)]}}}const _r=Aa(mt);return V.set(e1(mt),_r),mt}function Lo(mt){if(kh(mt)||Ab(mt,1024)||!nx(mt))return mt;const _r=oe.createModifiersFromModifierFlags(tS(mt)&258046);return oe.updateModifiers(mt,_r)}function To(mt,_r,Cn,oi){const Qr=oe.updateModuleDeclaration(mt,_r,Cn,oi);if(Ov(Qr)||Qr.flags&32)return Qr;const co=oe.createModuleDeclaration(Qr.modifiers,Qr.name,Qr.body,Qr.flags|32);return tc(co,Qr),vr(co,Qr),co}function Aa(mt){if(O)for(;Yw(O,mt););if(li(mt))return;switch(mt.kind){case 271:return mc(mt);case 272:return Ea(mt)}if(dl(mt)&&di(mt)||S_(mt)&&ke.isImplementationOfOverload(mt))return;let _r;_u(mt)&&(_r=I,I=mt);const Cn=cxe(mt),oi=s;Cn&&(s=u4(mt));const Qr=l;switch(mt.kind){case 265:{l=!1;const es=co(oe.updateTypeAliasDeclaration(mt,xt(mt),mt.name,Fa(mt.typeParameters,$a,Hh),ce.checkDefined(nr(mt.type,$a,Uu))));return l=Qr,es}case 264:return co(oe.updateInterfaceDeclaration(mt,xt(mt),mt.name,Oc(mt,mt.typeParameters),qr(mt.heritageClauses),Fa(mt.members,$a,l7)));case 262:{const es=co(oe.updateFunctionDeclaration(mt,xt(mt),void 0,mt.name,Oc(mt,mt.typeParameters),ro(mt,mt.parameters),ho(mt,mt.type),void 0));if(es&&ke.isExpandoFunctionDeclaration(mt)&&Nc(mt)){const Ui=ke.getPropertiesOfContainerFunction(mt),xu=DP.createModuleDeclaration(void 0,es.name||oe.createIdentifier("_default"),oe.createModuleBlock([]),32);kl(xu,I),xu.locals=Td(Ui),xu.symbol=Ui[0].parent;const We=[];let Re=Qo(Ui,Un=>{if(!Un.valueDeclaration||!(sa(Un.valueDeclaration)||Ed(Un.valueDeclaration)||ys(Un.valueDeclaration)))return;const rr=lf(Un.escapedName);if(!rE(rr,99))return;s=u4(Un.valueDeclaration);const mi=ke.createTypeOfDeclaration(Un.valueDeclaration,xu,mF,ue);s=oi;const Ji=t6(rr),zo=Ji?oe.getGeneratedNameForNode(Un.valueDeclaration):oe.createIdentifier(rr);Ji&&We.push([zo,rr]);const Ca=oe.createVariableDeclaration(zo,void 0,mi,void 0);return oe.createVariableStatement(Ji?void 0:[oe.createToken(95)],oe.createVariableDeclarationList([Ca]))});We.length?Re.push(oe.createExportDeclaration(void 0,!1,oe.createNamedExports(Vn(We,([Un,rr])=>oe.createExportSpecifier(!1,Un,rr))))):Re=Qo(Re,Un=>oe.updateModifiers(Un,0));const wt=oe.createModuleDeclaration(xt(mt),mt.name,oe.createModuleBlock(Re),32);if(!Ab(es,1024))return[es,wt];const $e=oe.createModifiersFromModifierFlags(tS(es)&-1026|2),Zt=oe.updateFunctionDeclaration(es,$e,void 0,es.name,es.typeParameters,es.parameters,es.type,void 0),xe=oe.updateModuleDeclaration(wt,$e,wt.name,wt.body),an=oe.createExportAssignment(void 0,!1,wt.name);return tl(mt.parent)&&(y=!0),D=!0,[Zt,xe,an]}else return es}case 267:{l=!1;const es=mt.body;if(es&&es.kind===268){const Ui=T,xu=D;D=!1,T=!1;const We=Fa(es.statements,Xu,uf);let Re=ta(We);mt.flags&33554432&&(T=!1),!$C(mt)&&!_o(Re)&&!D&&(T?Re=oe.createNodeArray([...Re,jJ(oe)]):Re=Fa(Re,Lo,uf));const wt=oe.updateModuleBlock(es,Re);l=Qr,T=Ui,D=xu;const $e=xt(mt);return co(To(mt,$e,WL(mt)?Rr(mt,mt.name):mt.name,wt))}else{l=Qr;const Ui=xt(mt);l=!1,nr(es,Xu);const xu=e1(es),We=V.get(xu);return V.delete(xu),co(To(mt,Ui,mt.name,We))}}case 263:{Ne=mt.name,Be=mt;const es=oe.createNodeArray(xt(mt)),Ui=Oc(mt,mt.typeParameters),xu=E2(mt);let We;if(xu){const an=s;We=uN(ea(xu.parameters,Un=>{if(!il(Un,16476)||li(Un))return;if(s=u4(Un),Un.name.kind===80)return al(oe.createPropertyDeclaration(xt(Un),Un.name,Un.questionToken,ho(Un,Un.type),so(Un)),Un);return rr(Un.name);function rr(mi){let Ji;for(const zo of mi.elements)t0(zo)||(ld(zo.name)&&(Ji=Hi(Ji,rr(zo.name))),Ji=Ji||[],Ji.push(oe.createPropertyDeclaration(xt(Un),zo.name,void 0,ho(zo,void 0),void 0)));return Ji}})),s=an}const wt=gt(mt.members,an=>!!an.name&&Gu(an.name))?[oe.createPropertyDeclaration(void 0,oe.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,$e=Hi(Hi(wt,We),Fa(mt.members,$a,Mv)),Zt=oe.createNodeArray($e),xe=hA(mt);if(xe&&!Uh(xe.expression)&&xe.expression.kind!==106){const an=mt.name?lf(mt.name.escapedText):"default",Un=oe.createUniqueName(`${an}_base`,16);s=()=>({diagnosticMessage:w.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:xe,typeName:mt.name});const rr=oe.createVariableDeclaration(Un,void 0,ke.createTypeOfExpression(xe.expression,mt,mF,ue),void 0),mi=oe.createVariableStatement(l?[oe.createModifier(138)]:[],oe.createVariableDeclarationList([rr],2)),Ji=oe.createNodeArray(Vn(mt.heritageClauses,zo=>{if(zo.token===96){const Ca=s;s=u4(zo.types[0]);const Qa=oe.updateHeritageClause(zo,Vn(zo.types,Ks=>oe.updateExpressionWithTypeArguments(Ks,Un,Fa(Ks.typeArguments,$a,Uu))));return s=Ca,Qa}return oe.updateHeritageClause(zo,Fa(oe.createNodeArray(gi(zo.types,Ca=>Uh(Ca.expression)||Ca.expression.kind===106)),$a,WT))}));return[mi,co(oe.updateClassDeclaration(mt,es,mt.name,Ui,Ji,Zt))]}else{const an=qr(mt.heritageClauses);return co(oe.updateClassDeclaration(mt,es,mt.name,Ui,an,Zt))}}case 243:return co(sl(mt));case 266:return co(oe.updateEnumDeclaration(mt,oe.createNodeArray(xt(mt)),mt.name,oe.createNodeArray(Qo(mt.members,es=>{if(li(es))return;const Ui=ke.getConstantValue(es);return al(oe.updateEnumMember(es,es.name,Ui!==void 0?typeof Ui=="string"?oe.createStringLiteral(Ui):oe.createNumericLiteral(Ui):void 0),es)}))))}return ce.assertNever(mt,`Unhandled top-level node in declaration emit: ${ce.formatSyntaxKind(mt.kind)}`);function co(es){return _u(mt)&&(I=_r),Cn&&(s=oi),mt.kind===267&&(l=Qr),es===mt?es:(Be=void 0,Ne=void 0,es&&tc(al(es,mt),mt))}}function sl(mt){if(!Ot(mt.declarationList.declarations,ha))return;const _r=Fa(mt.declarationList.declarations,$a,ff);if(!Nt(_r))return;const Cn=oe.createNodeArray(xt(mt));let oi;return T9(mt.declarationList)||$2(mt.declarationList)?(oi=oe.createVariableDeclarationList(_r,2),tc(oi,mt.declarationList),vr(oi,mt.declarationList),Ry(oi,mt.declarationList)):oi=oe.updateVariableDeclarationList(mt.declarationList,_r),oe.updateVariableStatement(mt,Cn,oi)}function vc(mt){return Gf(Qo(mt.elements,_r=>er(_r)))}function er(mt){if(mt.kind!==232&&mt.name)return ha(mt)?ld(mt.name)?vc(mt.name):oe.createVariableDeclaration(mt.name,void 0,ho(mt,void 0),void 0):void 0}function Jr(mt){let _r;ee||(_r=s,s=Nme(mt)),Ne=mt.name,ce.assert(ke.isLateBound(Il(mt)));const oi=mt.name.expression;Ku(oi,I),ee||(s=_r),Ne=void 0}function li(mt){return!!Ft&&!!mt&&wme(mt,Ve)}function Ir(mt){return Ly(mt)||mh(mt)}function _o(mt){return gt(mt,Ir)}function xt(mt){const _r=tS(mt),Cn=Kn(mt);return _r===Cn?dE(mt.modifiers,oi=>to(oi,bd),bd):oe.createModifiersFromModifierFlags(Cn)}function Kn(mt){let _r=241147,Cn=l&&!yct(mt)?2:0;const oi=mt.parent.kind===312;return(!oi||m&&oi&&Wv(mt.parent))&&(_r^=2,Cn=0),S4e(mt,_r,Cn)}function gn(mt,_r){let Cn=Wae(mt);return!Cn&&mt!==_r.firstAccessor&&(Cn=Wae(_r.firstAccessor),s=u4(_r.firstAccessor)),!Cn&&_r.secondAccessor&&mt!==_r.secondAccessor&&(Cn=Wae(_r.secondAccessor),s=u4(_r.secondAccessor)),Cn}function qr(mt){return oe.createNodeArray(gi(Vn(mt,_r=>oe.updateHeritageClause(_r,Fa(oe.createNodeArray(gi(_r.types,Cn=>Uh(Cn.expression)||_r.token===96&&Cn.expression.kind===106)),$a,WT))),_r=>_r.types&&!!_r.types.length))}}function yct(t){return t.kind===264}function T4e(t,r,s,l){return t.createModifiersFromModifierFlags(S4e(r,s,l))}function S4e(t,r=258043,s=0){let l=tS(t)&r|s;return l&1024&&!(l&1)&&(l^=1),l&1024&&l&2&&(l^=2),l}function Wae(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function lxe(t){switch(t.kind){case 172:case 171:return!Ab(t,8);case 169:case 260:return!0}return!1}function vct(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 bct(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 mF,E4e=G({"src/compiler/transformers/declarations.ts"(){Ad(),bae(),mF=531469}});function Tct(t){switch(t){case 99:case 7:case 6:case 5:return Oae;case 4:return sxe;case 100:case 199:return ZHe;default:return Pme}}function x4e(t,r,s){return{scriptTransformers:Sct(t,r,s),declarationTransformers:BW(r)}}function Sct(t,r,s){if(s)return Zn;const l=iu(t),m=Zp(t),y=X9(t),T=[];return Oi(T,r&&Vn(r.before,Rme)),T.push(xme),t.experimentalDecorators&&T.push(jHe),VH(t)&&T.push(qHe),l<99&&T.push($He),!t.experimentalDecorators&&(l<99||!y)&&T.push(VHe),T.push(Ame),l<8&&T.push(JHe),l<7&&T.push(HHe),l<6&&T.push(exe),l<5&&T.push(Z2e),l<4&&T.push(UHe),l<3&&T.push(KHe),l<2&&(T.push(y4e),T.push(axe)),T.push(Tct(m)),l<1&&T.push(oxe),Oi(T,r&&Vn(r.after,Rme)),T}function BW(t){const r=[];return r.push(QN),Oi(r,t&&Vn(t.afterDeclarations,xct)),r}function Ect(t){return r=>XE(r)?t.transformBundle(r):t.transformSourceFile(r)}function tJe(t,r){return s=>{const l=t(s);return typeof l=="function"?r(s,l):Ect(l)}}function Rme(t){return tJe(t,Vx)}function xct(t){return tJe(t,(r,s)=>s)}function Bae(t,r){return r}function Mme(t,r,s){s(t,r)}function zae(t,r,s,l,m,y,T){var D,I;const W=new Array(363);let O,V,ee,te=0,oe=[],de=[],ue=[],Ne=[],Be=0,Ve=!1,pt=[],Le=0,ht,ke,_t=Bae,Dt=Mme,Ft=0;const it=[],Ye={factory:s,getCompilerOptions:()=>l,getEmitResolver:()=>t,getEmitHost:()=>r,getEmitHelperFactory:Pd(()=>vEe(Ye)),startLexicalEnvironment:Ut,suspendLexicalEnvironment:In,resumeLexicalEnvironment:gr,endLexicalEnvironment:Cr,setLexicalEnvironmentFlags:ei,getLexicalEnvironmentFlags:Gn,hoistVariableDeclaration:pn,hoistFunctionDeclaration:Or,addInitializationStatement:Xr,startBlockScope:Ur,endBlockScope:so,addBlockScopedVariable:ho,requestEmitHelper:di,readEmitHelpers:Nc,enableSubstitution:tt,enableEmitNotification:cr,isSubstitutionEnabled:Mn,isEmitNotificationEnabled:un,get onSubstituteNode(){return _t},set onSubstituteNode(ro){ce.assert(Ft<1,"Cannot modify transformation hooks after initialization has completed."),ce.assert(ro!==void 0,"Value must not be 'undefined'"),_t=ro},get onEmitNode(){return Dt},set onEmitNode(ro){ce.assert(Ft<1,"Cannot modify transformation hooks after initialization has completed."),ce.assert(ro!==void 0,"Value must not be 'undefined'"),Dt=ro},addDiagnostic(ro){it.push(ro)}};for(const ro of m)hEe(ns(Il(ro)));jf("beforeTransform");const ut=y.map(ro=>ro(Ye)),lt=ro=>{for(const Gs of ut)ro=Gs(ro);return ro};Ft=1;const zt=[];for(const ro of m)(D=tu)==null||D.push(tu.Phase.Emit,"transformNodes",ro.kind===312?{path:ro.path}:{kind:ro.kind,pos:ro.pos,end:ro.end}),zt.push((T?lt:Wt)(ro)),(I=tu)==null||I.pop();return Ft=2,jf("afterTransform"),dd("transformTime","beforeTransform","afterTransform"),{transformed:zt,substituteNode:kn,emitNodeWithNotification:on,isEmitNotificationEnabled:un,dispose:ha,diagnostics:it};function Wt(ro){return ro&&(!tl(ro)||!ro.isDeclarationFile)?lt(ro):ro}function tt(ro){ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),W[ro]|=1}function Mn(ro){return(W[ro.kind]&1)!==0&&(Tp(ro)&8)===0}function kn(ro,Gs){return ce.assert(Ft<3,"Cannot substitute a node after the result is disposed."),Gs&&Mn(Gs)&&_t(ro,Gs)||Gs}function cr(ro){ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),W[ro]|=2}function un(ro){return(W[ro.kind]&2)!==0||(Tp(ro)&4)!==0}function on(ro,Gs,Oc){ce.assert(Ft<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Gs&&(un(Gs)?Dt(ro,Gs,Oc):Oc(ro,Gs))}function pn(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed.");const Gs=Sa(s.createVariableDeclaration(ro),128);O?O.push(Gs):O=[Gs],te&1&&(te|=2)}function Or(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),Sa(ro,2097152),V?V.push(ro):V=[ro]}function Xr(ro){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),Sa(ro,2097152),ee?ee.push(ro):ee=[ro]}function Ut(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is suspended."),oe[Be]=O,de[Be]=V,ue[Be]=ee,Ne[Be]=te,Be++,O=void 0,V=void 0,ee=void 0,te=0}function In(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is already suspended."),Ve=!0}function gr(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(Ve,"Lexical environment is not suspended."),Ve=!1}function Cr(){ce.assert(Ft>0,"Cannot modify the lexical environment during initialization."),ce.assert(Ft<2,"Cannot modify the lexical environment after transformation has completed."),ce.assert(!Ve,"Lexical environment is suspended.");let ro;if(O||V||ee){if(V&&(ro=[...V]),O){const Gs=s.createVariableStatement(void 0,s.createVariableDeclarationList(O));Sa(Gs,2097152),ro?ro.push(Gs):ro=[Gs]}ee&&(ro?ro=[...ro,...ee]:ro=[...ee])}return Be--,O=oe[Be],V=de[Be],ee=ue[Be],te=Ne[Be],Be===0&&(oe=[],de=[],ue=[],Ne=[]),ro}function ei(ro,Gs){te=Gs?te|ro:te&~ro}function Gn(){return te}function Ur(){ce.assert(Ft>0,"Cannot start a block scope during initialization."),ce.assert(Ft<2,"Cannot start a block scope after transformation has completed."),pt[Le]=ht,Le++,ht=void 0}function so(){ce.assert(Ft>0,"Cannot end a block scope during initialization."),ce.assert(Ft<2,"Cannot end a block scope after transformation has completed.");const ro=gt(ht)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(ht.map(Gs=>s.createVariableDeclaration(Gs)),1))]:void 0;return Le--,ht=pt[Le],Le===0&&(pt=[]),ro}function ho(ro){ce.assert(Le>0,"Cannot add a block scoped variable outside of an iteration body."),(ht||(ht=[])).push(ro)}function di(ro){if(ce.assert(Ft>0,"Cannot modify the transformation context during initialization."),ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed."),ce.assert(!ro.scoped,"Cannot request a scoped emit helper."),ro.dependencies)for(const Gs of ro.dependencies)di(Gs);ke=ur(ke,ro)}function Nc(){ce.assert(Ft>0,"Cannot modify the transformation context during initialization."),ce.assert(Ft<2,"Cannot modify the transformation context after transformation has completed.");const ro=ke;return ke=void 0,ro}function ha(){if(Ft<3){for(const ro of m)hEe(ns(Il(ro)));O=void 0,oe=void 0,V=void 0,de=void 0,_t=void 0,Dt=void 0,ke=void 0,Ft=3}}}var uxe,I6,WQ=G({"src/compiler/transformer.ts"(){Ad(),NM(),uxe={scriptTransformers:Zn,declarationTransformers:Zn},I6={factory:be,getCompilerOptions:()=>({}),getEmitResolver:Na,getEmitHost:Na,getEmitHelperFactory:Na,startLexicalEnvironment:ku,resumeLexicalEnvironment:ku,suspendLexicalEnvironment:ku,endLexicalEnvironment:eE,setLexicalEnvironmentFlags:ku,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ku,hoistFunctionDeclaration:ku,addInitializationStatement:ku,startBlockScope:ku,endBlockScope:eE,addBlockScopedVariable:ku,requestEmitHelper:ku,readEmitHelpers:Na,enableSubstitution:ku,enableEmitNotification:ku,isSubstitutionEnabled:Na,isEmitNotificationEnabled:Na,onSubstituteNode:Bae,onEmitNode:Mme,addDiagnostic:ku}}});function BQ(t){return Pg(t,".tsbuildinfo")}function x$(t,r,s,l=!1,m,y){const T=ls(s)?s:dSe(t,s,l),D=t.getCompilerOptions();if(Kg(D)){const I=t.getPrependNodes();if(T.length||I.length){const W=be.createBundle(T,I),O=r(Gae(W,t,l),W);if(O)return O}}else{if(!m)for(const I of T){const W=r(Gae(I,t,l),I);if(W)return W}if(y){const I=ZN(D);if(I)return r({buildInfoPath:I},void 0)}}}function ZN(t){const r=t.configFilePath;if(!K9(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=Kg(t);let l;if(s)l=wg(s);else{if(!r)return;const m=wg(r);l=t.outDir?t.rootDir?gm(t.outDir,qp(t.rootDir,m,!0)):tf(t.outDir,Iy(m)):m}return l+".tsbuildinfo"}function sx(t,r){const s=Kg(t),l=t.emitDeclarationOnly?void 0:s,m=l&&fxe(l,t),y=r||gv(t)?wg(s)+".d.ts":void 0,T=y&&zH(t)?y+".map":void 0,D=ZN(t);return{jsFilePath:l,sourceMapFilePath:m,declarationFilePath:y,declarationMapPath:T,buildInfoPath:D}}function Gae(t,r,s){const l=r.getCompilerOptions();if(t.kind===313)return sx(l,s);{const m=Ng(t.fileName,r,zQ(t.fileName,l)),y=Py(t),T=y&&wM(t.fileName,m,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames())===0,D=l.emitDeclarationOnly||T?void 0:m,I=!D||Py(t)?void 0:fxe(D,l),W=s||gv(l)&&!y?Lie(t.fileName,r):void 0,O=W&&zH(l)?W+".map":void 0;return{jsFilePath:D,sourceMapFilePath:I,declarationFilePath:W,declarationMapPath:O,buildInfoPath:void 0}}}function fxe(t,r){return r.sourceMap&&!r.inlineSourceMap?t+".map":void 0}function zQ(t,r){return Pg(t,".json")?".json":r.jsx===1&&ws(t,[".jsx",".tsx"])?".jsx":ws(t,[".mts",".mjs"])?".mjs":ws(t,[".cts",".cjs"])?".cjs":".js"}function PR(t,r,s,l,m){return l?gm(l,qp(m?m():GQ(r,s),t,s)):t}function O3(t,r,s,l){return SA(PR(t,r,s,r.options.declarationDir||r.options.outDir,l),HL(t))}function A$(t,r,s,l){if(r.options.emitDeclarationOnly)return;const m=Pg(t,".json"),y=SA(PR(t,r,s,r.options.outDir,l),zQ(t,r.options));return!m||wM(t,y,ce.checkDefined(r.options.configFilePath),s)!==0?y:void 0}function A4e(){let t;return{addOutput:r,getOutputs:s};function r(l){l&&(t||(t=[])).push(l)}function s(){return t||Zn}}function jae(t,r){const{jsFilePath:s,sourceMapFilePath:l,declarationFilePath:m,declarationMapPath:y,buildInfoPath:T}=sx(t.options,!1);r(s),r(l),r(m),r(y),r(T)}function C4e(t,r,s,l,m){if(iT(r))return;const y=A$(r,t,s,m);if(l(y),!Pg(r,".json")&&(y&&t.options.sourceMap&&l(`${y}.map`),gv(t.options))){const T=O3(r,t,s,m);l(T),t.options.declarationMap&&l(`${T}.map`)}}function gF(t,r,s,l,m){let y;return t.rootDir?(y=Su(t.rootDir,s),m==null||m(t.rootDir)):t.composite&&t.configFilePath?(y=qc(hf(t.configFilePath)),m==null||m(y)):y=Ume(r(),s,l),y&&y[y.length-1]!==q&&(y+=q),y}function GQ({options:t,fileNames:r},s){return gF(t,()=>gi(r,l=>!(t.noEmitForJsFiles&&ws(l,iJ))&&!iT(l)),qc(hf(ce.checkDefined(t.configFilePath))),_v(!s))}function Lme(t,r){const{addOutput:s,getOutputs:l}=A4e();if(Kg(t.options))jae(t,s);else{const m=Pd(()=>GQ(t,r));for(const y of t.fileNames)C4e(t,y,r,s,m);s(ZN(t.options))}return l()}function nJe(t,r,s){r=Fd(r),ce.assert(ni(t.fileNames,r),"Expected fileName to be present in command line");const{addOutput:l,getOutputs:m}=A4e();return Kg(t.options)?jae(t,l):C4e(t,r,s,l),m()}function _xe(t,r){if(Kg(t.options)){const{jsFilePath:m,declarationFilePath:y}=sx(t.options,!1);return ce.checkDefined(m||y,`project ${t.options.configFilePath} expected to have at least one output`)}const s=Pd(()=>GQ(t,r));for(const m of t.fileNames){if(iT(m))continue;const y=A$(m,t,r,s);if(y)return y;if(!Pg(m,".json")&&gv(t.options))return O3(m,t,r,s)}const l=ZN(t.options);return l||ce.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function zW(t,r,s,{scriptTransformers:l,declarationTransformers:m},y,T,D){var I=r.getCompilerOptions(),W=I.sourceMap||I.inlineSourceMap||zH(I)?[]:void 0,O=I.listEmittedFiles?[]:void 0,V=vY(),ee=JE(I),te=wie(ee),{enter:oe,exit:de}=qne("printTime","beforePrint","afterPrint"),ue,Ne=!1;return oe(),x$(r,Be,dSe(r,s,D),D,T,!s),de(),{emitSkipped:Ne,diagnostics:V.getDiagnostics(),emittedFiles:O,sourceMaps:W};function Be({jsFilePath:Ye,sourceMapFilePath:ut,declarationFilePath:lt,declarationMapPath:zt,buildInfoPath:Wt},tt){var Mn,kn,cr,un,on,pn;let Or;Wt&&tt&&XE(tt)&&(Or=qc(Su(Wt,r.getCurrentDirectory())),ue={commonSourceDirectory:Xr(r.getCommonSourceDirectory()),sourceFiles:tt.sourceFiles.map(Ut=>Xr(Su(Ut.fileName,r.getCurrentDirectory())))}),(Mn=tu)==null||Mn.push(tu.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Ye}),pt(tt,Ye,ut,Xr),(kn=tu)==null||kn.pop(),(cr=tu)==null||cr.push(tu.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:lt}),Le(tt,lt,zt,Xr),(un=tu)==null||un.pop(),(on=tu)==null||on.push(tu.Phase.Emit,"emitBuildInfo",{buildInfoPath:Wt}),Ve(ue,Wt),(pn=tu)==null||pn.pop(),!Ne&&O&&(y||(Ye&&O.push(Ye),ut&&O.push(ut),Wt&&O.push(Wt)),y!==0&&(lt&&O.push(lt),zt&&O.push(zt)));function Xr(Ut){return OE(qp(Or,Ut,r.getCanonicalFileName))}}function Ve(Ye,ut){if(!ut||s||Ne)return;if(r.isEmitBlocked(ut)){Ne=!0;return}const lt=r.getBuildInfo(Ye)||hF(void 0,Ye);sC(r,V,ut,Vae(lt),!1,void 0,{buildInfo:lt})}function pt(Ye,ut,lt,zt){if(!Ye||y||!ut)return;if(r.isEmitBlocked(ut)||I.noEmit){Ne=!0;return}const Wt=zae(t,r,be,I,[Ye],l,!1),tt={removeComments:I.removeComments,newLine:I.newLine,noEmitHelpers:I.noEmitHelpers,module:I.module,target:I.target,sourceMap:I.sourceMap,inlineSourceMap:I.inlineSourceMap,inlineSources:I.inlineSources,extendedDiagnostics:I.extendedDiagnostics,writeBundleFileInfo:!!ue,relativeToBuildInfo:zt},Mn=f4(tt,{hasGlobalName:t.hasGlobalName,onEmitNode:Wt.emitNodeWithNotification,isEmitNotificationEnabled:Wt.isEmitNotificationEnabled,substituteNode:Wt.substituteNode});ce.assert(Wt.transformed.length===1,"Should only see one output from the transform"),ke(ut,lt,Wt,Mn,I),Wt.dispose(),ue&&(ue.js=Mn.bundleFileInfo)}function Le(Ye,ut,lt,zt){if(!Ye||y===0)return;if(!ut){(y||I.emitDeclarationOnly)&&(Ne=!0);return}const Wt=tl(Ye)?[Ye]:Ye.sourceFiles,tt=D?Wt:gi(Wt,xie),Mn=Kg(I)?[be.createBundle(tt,tl(Ye)?void 0:Ye.prepends)]:tt;y&&!gv(I)&&tt.forEach(ht);const kn=zae(t,r,be,I,Mn,m,!1);if(Nt(kn.diagnostics))for(const pn of kn.diagnostics)V.add(pn);const cr={removeComments:I.removeComments,newLine:I.newLine,noEmitHelpers:!0,module:I.module,target:I.target,sourceMap:!D&&I.declarationMap,inlineSourceMap:I.inlineSourceMap,extendedDiagnostics:I.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!ue,recordInternalSection:!!ue,relativeToBuildInfo:zt},un=f4(cr,{hasGlobalName:t.hasGlobalName,onEmitNode:kn.emitNodeWithNotification,isEmitNotificationEnabled:kn.isEmitNotificationEnabled,substituteNode:kn.substituteNode}),on=!!kn.diagnostics&&!!kn.diagnostics.length||!!r.isEmitBlocked(ut)||!!I.noEmit;Ne=Ne||on,(!on||D)&&(ce.assert(kn.transformed.length===1,"Should only see one output from the decl transform"),ke(ut,lt,kn,un,{sourceMap:cr.sourceMap,sourceRoot:I.sourceRoot,mapRoot:I.mapRoot,extendedDiagnostics:I.extendedDiagnostics})),kn.dispose(),ue&&(ue.dts=un.bundleFileInfo)}function ht(Ye){if(Ly(Ye)){Ye.expression.kind===80&&t.collectLinkedAliases(Ye.expression,!0);return}else if(Oy(Ye)){t.collectLinkedAliases(Ye.propertyName||Ye.name,!0);return}B_(Ye,ht)}function ke(Ye,ut,lt,zt,Wt){const tt=lt.transformed[0],Mn=tt.kind===313?tt:void 0,kn=tt.kind===312?tt:void 0,cr=Mn?Mn.sourceFiles:[kn];let un;_t(Wt,tt)&&(un=NQ(r,Iy(hf(Ye)),Dt(Wt),Ft(Wt,Ye,kn),Wt)),Mn?zt.writeBundle(Mn,te,un):zt.writeFile(kn,te,un);let on;if(un){W&&W.push({inputSourceFileNames:un.getSources(),sourceMap:un.toJSON()});const Or=it(Wt,un,Ye,ut,kn);if(Or&&(te.isAtStartOfLine()||te.rawWrite(ee),on=te.getTextPos(),te.writeComment(`//# sourceMappingURL=${Or}`)),ut){const Xr=un.toString();sC(r,V,ut,Xr,!1,cr),zt.bundleFileInfo&&(zt.bundleFileInfo.mapHash=bF(Xr,r))}}else te.writeLine();const pn=te.getText();sC(r,V,Ye,pn,!!I.emitBOM,cr,{sourceMapUrlPos:on,diagnostics:lt.diagnostics}),zt.bundleFileInfo&&(zt.bundleFileInfo.hash=bF(pn,r)),te.clear()}function _t(Ye,ut){return(Ye.sourceMap||Ye.inlineSourceMap)&&(ut.kind!==312||!Pg(ut.fileName,".json"))}function Dt(Ye){const ut=hf(Ye.sourceRoot||"");return ut&&Rv(ut)}function Ft(Ye,ut,lt){if(Ye.sourceRoot)return r.getCommonSourceDirectory();if(Ye.mapRoot){let zt=hf(Ye.mapRoot);return lt&&(zt=qc(j9(lt.fileName,r,zt))),vN(zt)===0&&(zt=tf(r.getCommonSourceDirectory(),zt)),zt}return qc(Fd(ut))}function it(Ye,ut,lt,zt,Wt){if(Ye.inlineSourceMap){const Mn=ut.toString();return`data:application/json;base64,${TSe(m0,Mn)}`}const tt=Iy(hf(ce.checkDefined(zt)));if(Ye.mapRoot){let Mn=hf(Ye.mapRoot);return Wt&&(Mn=qc(j9(Wt.fileName,r,Mn))),vN(Mn)===0?(Mn=tf(r.getCommonSourceDirectory(),Mn),encodeURI(Oz(qc(Fd(lt)),tf(Mn,tt),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(tf(Mn,tt))}return encodeURI(tt)}}function hF(t,r){return{bundle:r,program:t,version:At}}function Vae(t){return JSON.stringify(t)}function Ome(t,r){return Uie(t,r)}function dxe(t,r,s){var l;const m=ce.checkDefined(t.js),y=((l=m.sources)==null?void 0:l.prologues)&&QT(m.sources.prologues,T=>T.file);return t.sourceFiles.map((T,D)=>{const I=y==null?void 0:y.get(D),W=I==null?void 0:I.directives.map(ee=>{const te=vr(be.createStringLiteral(ee.expression.text),ee.expression),oe=vr(be.createExpressionStatement(te),ee);return kl(te,oe),oe}),O=be.createToken(1),V=be.createSourceFile(W??[],O,0);return V.fileName=qp(s.getCurrentDirectory(),Su(T,r),!s.useCaseSensitiveFileNames()),V.text=(I==null?void 0:I.text)??"",f3(V,0,(I==null?void 0:I.text.length)??0),u6(V.statements,V),f3(O,V.end,0),kl(O,V),V})}function Uae(t,r,s,l){var m,y;(m=tu)==null||m.push(tu.Phase.Emit,"emitUsingBuildInfo",{},!0),jf("beforeEmit");const T=Hae(t,r,s,l);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),(y=tu)==null||y.pop(),T}function Hae(t,r,s,l){const{buildInfoPath:m,jsFilePath:y,sourceMapFilePath:T,declarationFilePath:D,declarationMapPath:I}=sx(t.options,!1),W=r.getBuildInfo(m,t.options.configFilePath);if(!W||!W.bundle||!W.bundle.js||D&&!W.bundle.dts)return m;const O=r.readFile(ce.checkDefined(y));if(!O||bF(O,r)!==W.bundle.js.hash)return y;const V=T&&r.readFile(T);if(T&&!V||t.options.inlineSourceMap)return T||"inline sourcemap decoding";if(T&&bF(V,r)!==W.bundle.js.mapHash)return T;const ee=D&&r.readFile(D);if(D&&!ee||D&&bF(ee,r)!==W.bundle.dts.hash)return D;const te=I&&r.readFile(I);if(I&&!te||t.options.inlineSourceMap)return I||"inline sourcemap decoding";if(I&&bF(te,r)!==W.bundle.dts.mapHash)return I;const oe=qc(Su(m,r.getCurrentDirectory())),de=T6e(y,O,T,V,D,ee,I,te,m,W,!0),ue=[],Ne=YQ(t.projectReferences,s,ht=>r.readFile(ht),r),Be=dxe(W.bundle,oe,r);let Ve,pt;const Le={getPrependNodes:Pd(()=>[...Ne,de]),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:()=>Su(W.bundle.commonSourceDirectory,oe),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>r.getCurrentDirectory(),getSourceFile:eE,getSourceFileByPath:eE,getSourceFiles:()=>Be,getLibFileFromReference:Na,isSourceFileFromExternalLibrary:bg,getResolvedProjectReferenceToRedirect:eE,getProjectReferenceRedirect:eE,isSourceOfProjectReferenceRedirect:bg,writeFile:(ht,ke,_t,Dt,Ft,it)=>{switch(ht){case y:if(O===ke)return;break;case T:if(V===ke)return;break;case m:break;case D:if(ee===ke)return;Ve=ke,pt=it;break;case I:if(te===ke)return;break;default:ce.fail(`Unexpected path: ${ht}`)}ue.push({name:ht,text:ke,writeByteOrderMark:_t,data:it})},isEmitBlocked:bg,readFile:ht=>r.readFile(ht),fileExists:ht=>r.fileExists(ht),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames(),getBuildInfo:ht=>{const ke=W.program;ke&&Ve!==void 0&&t.options.composite&&(ke.outSignature=bF(Ve,r,pt));const{js:_t,dts:Dt,sourceFiles:Ft}=W.bundle;return ht.js.sources=_t.sources,Dt&&(ht.dts.sources=Dt.sources),ht.sourceFiles=Ft,hF(ke,ht)},getSourceFileFromReference:eE,redirectTargetsMap:zg(),getFileIncludeReasons:Na,createHash:wc(r,r.createHash)};return zW(pxe,Le,void 0,x4e(t.options,l)),ue}function f4(t={},r={}){var{hasGlobalName:s,onEmitNode:l=Mme,isEmitNotificationEnabled:m,substituteNode:y=Bae,onBeforeEmitNode:T,onAfterEmitNode:D,onBeforeEmitNodeArray:I,onAfterEmitNodeArray:W,onBeforeEmitToken:O,onAfterEmitToken:V}=r,ee=!!t.extendedDiagnostics,te=JE(t),oe=Zp(t),de=new Map,ue,Ne,Be,Ve,pt,Le,ht,ke,_t,Dt,Ft,it,Ye,ut,lt,zt=t.preserveSourceNewlines,Wt,tt,Mn,kn=bE,cr,un=t.writeBundleFileInfo?{sections:[]}:void 0,on=un?ce.checkDefined(t.relativeToBuildInfo):void 0,pn=t.recordInternalSection,Or=0,Xr="text",Ut=!0,In,gr,Cr=-1,ei,Gn=-1,Ur=-1,so=-1,ho=-1,di,Nc,ha=!1,ro=!!t.removeComments,Gs,Oc,{enter:_u,exit:Ku}=yTe(ee,"commentTime","beforeComment","afterComment"),al=be.parenthesizer,Rr={select:Q=>Q===0?al.parenthesizeLeadingTypeArgument:void 0},mc=Gv();return mt(),{printNode:Ea,printList:Fi,printFile:$a,printBundle:ta,writeNode:Xu,writeList:Lo,writeFile:Ir,writeBundle:Jr,bundleFileInfo:un};function Ea(Q,ft,br){switch(Q){case 0:ce.assert(tl(ft),"Expected a SourceFile node.");break;case 2:ce.assert(An(ft),"Expected an Identifier node.");break;case 1:ce.assert(Nr(ft),"Expected an Expression node.");break}switch(ft.kind){case 312:return $a(ft);case 313:return ta(ft);case 314:return jc(ft)}return Xu(Q,ft,br,_o()),xt()}function Fi(Q,ft,br){return Lo(Q,ft,br,_o()),xt()}function ta(Q){return Jr(Q,_o(),void 0),xt()}function $a(Q){return Ir(Q,_o(),void 0),xt()}function jc(Q){return li(Q,_o()),xt()}function Xu(Q,ft,br,oo){const Js=tt;qr(oo,void 0),Kn(Q,ft,br),mt(),tt=Js}function Lo(Q,ft,br,oo){const Js=tt;qr(oo,void 0),br&&gn(br),pl(void 0,ft,Q),mt(),tt=Js}function To(){return tt.getTextPosWithWriteLine?tt.getTextPosWithWriteLine():tt.getTextPos()}function Aa(Q,ft,br){const oo=Yf(un.sections);oo&&oo.kind===br?oo.end=ft:un.sections.push({pos:Q,end:ft,kind:br})}function sl(Q){if(pn&&un&&ue&&(dl(Q)||Dh(Q))&&wme(Q,ue)&&Xr!=="internal"){const ft=Xr;return er(tt.getTextPos()),Or=To(),Xr="internal",ft}}function vc(Q){Q&&(er(tt.getTextPos()),Or=To(),Xr=Q)}function er(Q){return Orce.assert(NSe(L_))),un.sections.push({pos:pu,end:tt.getTextPos(),kind:"prepend",data:on(Js.fileName),texts:ju}))}}Or=To();for(const Js of Q.sourceFiles)Kn(0,Js,Js);if(un&&Q.sourceFiles.length){const Js=tt.getTextPos();if(er(Js)){const pu=Ro(Q);pu&&(un.sources||(un.sources={}),un.sources.prologues=pu);const fl=mi(Q);fl&&(un.sources||(un.sources={}),un.sources.helpers=fl)}}mt(),tt=oo}function li(Q,ft){const br=tt;qr(ft,void 0),Kn(4,Q,void 0),mt(),tt=br}function Ir(Q,ft,br){cr=!0;const oo=tt;qr(ft,br),Ts(Q),vo(Q),Kn(0,Q,Q),mt(),tt=oo}function _o(){return Mn||(Mn=wie(te))}function xt(){const Q=Mn.getText();return Mn.clear(),Q}function Kn(Q,ft,br){br&&gn(br),xu(Q,ft,void 0)}function gn(Q){ue=Q,di=void 0,Nc=void 0,Q&&Vs(Q)}function qr(Q,ft){Q&&t.omitTrailingSemicolon&&(Q=Rde(Q)),tt=Q,In=ft,Ut=!tt||!In}function mt(){Ne=[],Be=[],Ve=[],pt=new Set,Le=[],ht=new Map,ke=[],_t=0,Dt=[],Ft=0,it=[],Ye=void 0,ut=[],lt=void 0,ue=void 0,di=void 0,Nc=void 0,qr(void 0,void 0)}function _r(){return di||(di=q1(ce.checkDefined(ue)))}function Cn(Q,ft){if(Q===void 0)return;const br=sl(Q);xu(4,Q,ft),vc(br)}function oi(Q){Q!==void 0&&xu(2,Q,void 0)}function Qr(Q,ft){Q!==void 0&&xu(1,Q,ft)}function co(Q){xu(Wp(Q)?6:4,Q)}function es(Q){zt&&dh(Q)&4&&(zt=!1)}function Ui(Q){zt=Q}function xu(Q,ft,br){Oc=br,wt(0,Q,ft)(Q,ft),Oc=void 0}function We(Q){return!ro&&!tl(Q)}function Re(Q){return!Ut&&!tl(Q)&&!Cde(Q)&&!xA(Q)&&!A3(Q)}function wt(Q,ft,br){switch(Q){case 0:if(l!==Mme&&(!m||m(br)))return Zt;case 1:if(y!==Bae&&(Gs=y(ft,br)||br)!==br)return Oc&&(Gs=Oc(Gs)),rr;case 2:if(We(br))return vi;case 3:if(Re(br))return yo;case 4:return xe;default:return ce.assertNever(Q)}}function $e(Q,ft,br){return wt(Q+1,ft,br)}function Zt(Q,ft){const br=$e(0,Q,ft);l(Q,ft,br)}function xe(Q,ft){if(T==null||T(ft),zt){const br=zt;es(ft),an(Q,ft),Ui(br)}else an(Q,ft);D==null||D(ft),Oc=void 0}function an(Q,ft,br=!0){if(br){const oo=yEe(ft);if(oo)return z_(Q,ft,oo)}if(Q===0)return kt(uc(ft,tl));if(Q===2)return mu(uc(ft,An));if(Q===6)return Qa(uc(ft,Wp),!0);if(Q===3)return Un(uc(ft,Hh));if(Q===5)return ce.assertNode(ft,spe),y_(!0);if(Q===4){switch(ft.kind){case 16:case 17:case 18:return Qa(ft,!1);case 80:return mu(ft);case 81:return x_(ft);case 166:return q_(ft);case 167:return U0(ft);case 168:return c_(ft);case 169:return Kd(ft);case 170:return iy(ft);case 171:return Oh(ft);case 172:return jg(ft);case 173:return zv(ft);case 174:return m_(ft);case 175:return Yu(ft);case 176:return Tv(ft);case 177:case 178:return Kh(ft);case 179:return uS(ft);case 180:return H0(ft);case 181:return fx(ft);case 182:return lm(ft);case 183:return nm(ft);case 184:return po(ft);case 185:return oh(ft);case 186:return hy(ft);case 187:return _e(ft);case 188:return vn(ft);case 189:return hi(ft);case 190:return Zc(ft);case 192:return ka(ft);case 193:return bc(ft);case 194:return gu(ft);case 195:return yu(ft);case 196:return Xm(ft);case 233:return MA(ft);case 197:return Lg();case 198:return av(ft);case 199:return Fh(ft);case 200:return J0(ft);case 201:return Eg(ft);case 202:return pa(ft);case 203:return Sv(ft);case 204:return rd(ft);case 205:return jT(ft);case 206:return Ev(ft);case 207:return S0(ft);case 208:return k1(ft);case 239:return Mi(ft);case 240:return Mg();case 241:return js(ft);case 243:return $l(ft);case 242:return y_(!1);case 244:return l_(ft);case 245:return Ph(ft);case 246:return Mb(ft);case 247:return _x(ft);case 248:return _S(ft);case 249:return e(ft);case 250:return n(ft);case 251:return c(ft);case 252:return u(ft);case 253:return k(ft);case 254:return F(ft);case 255:return $(ft);case 256:return J(ft);case 257:return X(ft);case 258:return ie(ft);case 259:return ae(ft);case 260:return ve(ft);case 261:return we(ft);case 262:return Fe(ft);case 263:return Ze(ft);case 264:return st(ft);case 265:return It(ft);case 266:return Yt(ft);case 267:return Et(ft);case 268:return at(ft);case 269:return Qt(ft);case 270:return Vr(ft);case 271:return nn(ft);case 272:return cn(ft);case 273:return qt(ft);case 274:return Kt(ft);case 280:return Pn(ft);case 275:return wr(ft);case 276:return Wr(ft);case 277:return jt(ft);case 278:return En(ft);case 279:return Fr(ft);case 281:return Ki(ft);case 300:return fr(ft);case 301:return Tr(ft);case 282:return;case 283:return os(ft);case 12:return Wl(ft);case 286:case 289:return gc(ft);case 287:case 290:return Jc(ft);case 291:return qn(ft);case 292:return au(ft);case 293:return za(ft);case 294:return _a(ft);case 295:return us(ft);case 296:return Qu(ft);case 297:return Cu(ft);case 298:return w_(ft);case 299:return Eu(ft);case 303:return He(ft);case 304:return Hn(ft);case 305:return dr(ft);case 306:return Mr(ft);case 307:return vs(ft);case 314:case 308:return Ks(ft);case 309:case 310:return ou(ft);case 311:return qd(ft);case 312:return kt(ft);case 313:return ce.fail("Bundles should be printed using printBundle");case 315:return ce.fail("InputFiles should not be printed");case 316:return Ce(ft);case 317:return Wn(ft);case 319:return qo("*");case 320:return qo("?");case 321:return fS(ft);case 322:return GT(ft);case 323:return vE(ft);case 324:return gy(ft);case 191:case 325:return Qn(ft);case 326:return;case 327:return Pr(ft);case 329:return yi(ft);case 330:return go(ft);case 334:case 339:case 344:return Sr(ft);case 335:case 336:return $r(ft);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ei(ft);case 346:return Ln(ft);case 348:case 355:return Ao(ft);case 347:case 349:case 350:case 351:case 356:case 357:return Bt(ft);case 352:return Ge(ft);case 353:return Br(ft);case 354:return ln(ft);case 359:return}if(Nr(ft)&&(Q=1,y!==Bae)){const oo=y(Q,ft)||ft;oo!==ft&&(ft=oo,Oc&&(ft=Oc(ft)))}}if(Q===1)switch(ft.kind){case 9:case 10:return Ca(ft);case 11:case 14:case 15:return Qa(ft,!1);case 80:return mu(ft);case 81:return x_(ft);case 209:return tn(ft);case 210:return fi(ft);case 211:return ya(ft);case 212:return K_(ft);case 213:return ig(ft);case 214:return Fy(ft);case 215:return bt(ft);case 216:return ir(ft);case 217:return ii(ft);case 218:return Si(ft);case 219:return Do(ft);case 220:return Qc(ft);case 221:return Al(ft);case 222:return du(ft);case 223:return N_(ft);case 224:return zp(ft);case 225:return Wh(ft);case 226:return mc(ft);case 227:return jv(ft);case 228:return yy(ft);case 229:return ub(ft);case 230:return E0(ft);case 231:return P2(ft);case 232:return;case 234:return aw(ft);case 235:return DI(ft);case 233:return MA(ft);case 238:return Me(ft);case 236:return jn(ft);case 237:return ce.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Mo(ft);case 285:return $i(ft);case 288:return ki(ft);case 358:return ce.fail("SyntaxList should not be printed");case 359:return;case 360:return Jn(ft);case 361:return Nn(ft);case 362:return ce.fail("SyntheticReferenceExpression should not be printed")}if(sE(ft.kind))return _i(ft,Ka);if(Zre(ft.kind))return _i(ft,qo);ce.fail(`Unhandled SyntaxKind: ${ce.formatSyntaxKind(ft.kind)}.`)}function Un(Q){Cn(Q.name),va(),Ka("in"),va(),Cn(Q.constraint)}function rr(Q,ft){const br=$e(1,Q,ft);ce.assertIsDefined(Gs),ft=Gs,Gs=void 0,br(Q,ft)}function mi(Q){let ft;if(oe===0||t.noEmitHelpers)return;const br=new Map;for(const oo of Q.sourceFiles){const Js=WG(oo)!==void 0,pu=zo(oo);if(pu)for(const fl of pu)!fl.scoped&&!Js&&!br.get(fl.name)&&(br.set(fl.name,!0),(ft||(ft=[])).push(fl.name))}return ft}function Ji(Q){let ft=!1;const br=Q.kind===313?Q:void 0;if(br&&oe===0)return;const oo=br?br.prepends.length:0,Js=br?br.sourceFiles.length+oo:1;for(let pu=0;pu"),va(),Cn(Q.type),ci(Q)}function gy(Q){Ka("function"),Cp(Q,Q.parameters),qo(":"),Cn(Q.type)}function fS(Q){qo("?"),Cn(Q.type)}function GT(Q){qo("!"),Cn(Q.type)}function vE(Q){Cn(Q.type),qo("=")}function oh(Q){Jt(Q),hc(Q,Q.modifiers),Ka("new"),va(),mf(Q,Q.typeParameters),Cp(Q,Q.parameters),va(),qo("=>"),va(),Cn(Q.type),ci(Q)}function hy(Q){Ka("typeof"),va(),Cn(Q.exprName),Ym(Q,Q.typeArguments)}function _e(Q){Hu(0,void 0),qo("{");const ft=Tp(Q)&1?768:32897;pl(Q,Q.members,ft|524288),qo("}"),t_()}function vn(Q){Cn(Q.elementType,al.parenthesizeNonArrayTypeOfPostfixType),qo("["),qo("]")}function Qn(Q){qo("..."),Cn(Q.type)}function hi(Q){d(23,Q.pos,qo,Q);const ft=Tp(Q)&1?528:657;pl(Q,Q.elements,ft|524288,al.parenthesizeElementTypeOfTupleType),d(24,Q.elements.end,qo,Q)}function pa(Q){Cn(Q.dotDotDotToken),Cn(Q.name),Cn(Q.questionToken),d(59,Q.name.end,qo,Q),va(),Cn(Q.type)}function Zc(Q){Cn(Q.type,al.parenthesizeTypeOfOptionalType),qo("?")}function ka(Q){pl(Q,Q.types,516,al.parenthesizeConstituentTypeOfUnionType)}function bc(Q){pl(Q,Q.types,520,al.parenthesizeConstituentTypeOfIntersectionType)}function gu(Q){Cn(Q.checkType,al.parenthesizeCheckTypeOfConditionalType),va(),Ka("extends"),va(),Cn(Q.extendsType,al.parenthesizeExtendsTypeOfConditionalType),va(),qo("?"),va(),Cn(Q.trueType),va(),qo(":"),va(),Cn(Q.falseType)}function yu(Q){Ka("infer"),va(),Cn(Q.typeParameter)}function Xm(Q){qo("("),Cn(Q.type),qo(")")}function Lg(){Ka("this")}function av(Q){$o(Q.operator,Ka),va();const ft=Q.operator===148?al.parenthesizeOperandOfReadonlyTypeOperator:al.parenthesizeOperandOfTypeOperator;Cn(Q.type,ft)}function Fh(Q){Cn(Q.objectType,al.parenthesizeNonArrayTypeOfPostfixType),qo("["),Cn(Q.indexType),qo("]")}function J0(Q){const ft=Tp(Q);qo("{"),ft&1?va():(Md(),fe()),Q.readonlyToken&&(Cn(Q.readonlyToken),Q.readonlyToken.kind!==148&&Ka("readonly"),va()),qo("["),xu(3,Q.typeParameter),Q.nameType&&(va(),Ka("as"),va(),Cn(Q.nameType)),qo("]"),Q.questionToken&&(Cn(Q.questionToken),Q.questionToken.kind!==58&&qo("?")),qo(":"),va(),Cn(Q.type),d_(),ft&1?va():(Md(),_n()),pl(Q,Q.members,2),qo("}")}function Eg(Q){Qr(Q.literal)}function Sv(Q){Cn(Q.head),pl(Q,Q.templateSpans,262144)}function jT(Q){if(Q.isTypeOf&&(Ka("typeof"),va()),Ka("import"),qo("("),Cn(Q.argument),Q.assertions){qo(","),va(),qo("{"),va(),Ka("assert"),qo(":"),va();const ft=Q.assertions.assertClause.elements;pl(Q.assertions.assertClause,ft,526226),va(),qo("}")}qo(")"),Q.qualifier&&(qo("."),Cn(Q.qualifier)),Ym(Q,Q.typeArguments)}function Ev(Q){qo("{"),pl(Q,Q.elements,525136),qo("}")}function S0(Q){qo("["),pl(Q,Q.elements,524880),qo("]")}function k1(Q){Cn(Q.dotDotDotToken),Q.propertyName&&(Cn(Q.propertyName),qo(":"),va()),Cn(Q.name),Tc(Q.initializer,Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function tn(Q){const ft=Q.elements,br=Q.multiLine?65536:0;R_(Q,ft,8914|br,al.parenthesizeExpressionForDisallowedComma)}function fi(Q){Hu(0,void 0),Ot(Q.properties,Dg);const ft=Tp(Q)&131072;ft&&fe();const br=Q.multiLine?65536:0,oo=ue&&ue.languageVersion>=1&&!Py(ue)?64:0;pl(Q,Q.properties,526226|oo|br),ft&&_n(),t_()}function ya(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess);const ft=Q.questionDotToken||T1(be.createToken(25),Q.expression.end,Q.name.pos),br=Cg(Q,Q.expression,ft),oo=Cg(Q,ft,Q.name);Fs(br,!1),ft.kind!==29&&bu(Q.expression)&&!tt.hasTrailingComment()&&!tt.hasTrailingWhitespace()&&qo("."),Q.questionDotToken?Cn(ft):d(ft.kind,Q.expression.end,qo,Q),Fs(oo,!1),Cn(Q.name),Tl(br,oo)}function bu(Q){if(Q=pA(Q),nS(Q)){const ft=sg(Q,!0,!1);return!(Q.numericLiteralFlags&448)&&!Ub(ft,Nd(25))&&!Ub(ft,"E")&&!Ub(ft,"e")}else if(Kf(Q)){const ft=cW(Q);return typeof ft=="number"&&isFinite(ft)&&ft>=0&&Math.floor(ft)===ft}}function K_(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Cn(Q.questionDotToken),d(23,Q.expression.end,qo,Q),Qr(Q.argumentExpression),d(24,Q.argumentExpression.end,qo,Q)}function ig(Q){const ft=dh(Q)&16;ft&&(qo("("),M_("0"),qo(","),va()),Qr(Q.expression,al.parenthesizeLeftSideOfAccess),ft&&qo(")"),Cn(Q.questionDotToken),Ym(Q,Q.typeArguments),R_(Q,Q.arguments,2576,al.parenthesizeExpressionForDisallowedComma)}function Fy(Q){d(105,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeExpressionOfNew),Ym(Q,Q.typeArguments),R_(Q,Q.arguments,18960,al.parenthesizeExpressionForDisallowedComma)}function bt(Q){const ft=dh(Q)&16;ft&&(qo("("),M_("0"),qo(","),va()),Qr(Q.tag,al.parenthesizeLeftSideOfAccess),ft&&qo(")"),Ym(Q,Q.typeArguments),va(),Qr(Q.template)}function ir(Q){qo("<"),Cn(Q.type),qo(">"),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function ii(Q){const ft=d(21,Q.pos,qo,Q),br=bm(Q.expression,Q);Qr(Q.expression,void 0),ay(Q.expression,Q),Tl(br),d(22,Q.expression?Q.expression.end:ft,qo,Q)}function Si(Q){um(Q.name),et(Q)}function Do(Q){hc(Q,Q.modifiers),Pe(Q,Za)}function Za(Q){mf(Q,Q.typeParameters),xg(Q,Q.parameters),bl(Q.type),va(),Cn(Q.equalsGreaterThanToken)}function Qc(Q){d(91,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function Al(Q){d(114,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function du(Q){d(116,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function N_(Q){d(135,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeOperandOfPrefixUnary)}function zp(Q){$o(Q.operator,Qi),gh(Q)&&va(),Qr(Q.operand,al.parenthesizeOperandOfPrefixUnary)}function gh(Q){const ft=Q.operand;return ft.kind===224&&(Q.operator===40&&(ft.operator===40||ft.operator===46)||Q.operator===41&&(ft.operator===41||ft.operator===47))}function Wh(Q){Qr(Q.operand,al.parenthesizeOperandOfPostfixUnary),$o(Q.operator,Qi)}function Gv(){return VEe(Q,ft,br,oo,Js,void 0);function Q(fl,ju){if(ju){ju.stackIndex++,ju.preserveSourceNewlinesStack[ju.stackIndex]=zt,ju.containerPosStack[ju.stackIndex]=Ur,ju.containerEndStack[ju.stackIndex]=so,ju.declarationListContainerEndStack[ju.stackIndex]=ho;const L_=ju.shouldEmitCommentsStack[ju.stackIndex]=We(fl),Cl=ju.shouldEmitSourceMapsStack[ju.stackIndex]=Re(fl);T==null||T(fl),L_&&Di(fl),Cl&&jo(fl),es(fl)}else ju={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ju}function ft(fl,ju,L_){return pu(fl,L_,"left")}function br(fl,ju,L_){const Cl=fl.kind!==28,o0=Cg(L_,L_.left,fl),oa=Cg(L_,fl,L_.right);Fs(o0,Cl),zh(fl.pos),_i(fl,fl.kind===103?Ka:Qi),Vv(fl.end,!0),Fs(oa,!0)}function oo(fl,ju,L_){return pu(fl,L_,"right")}function Js(fl,ju){const L_=Cg(fl,fl.left,fl.operatorToken),Cl=Cg(fl,fl.operatorToken,fl.right);if(Tl(L_,Cl),ju.stackIndex>0){const o0=ju.preserveSourceNewlinesStack[ju.stackIndex],oa=ju.containerPosStack[ju.stackIndex],dD=ju.containerEndStack[ju.stackIndex],a0=ju.declarationListContainerEndStack[ju.stackIndex],Kx=ju.shouldEmitCommentsStack[ju.stackIndex],hC=ju.shouldEmitSourceMapsStack[ju.stackIndex];Ui(o0),hC&&Oo(fl),Kx&&Ee(fl,oa,dD,a0),D==null||D(fl),ju.stackIndex--}}function pu(fl,ju,L_){const Cl=L_==="left"?al.getParenthesizeLeftSideOfBinaryForOperator(ju.operatorToken.kind):al.getParenthesizeRightSideOfBinaryForOperator(ju.operatorToken.kind);let o0=wt(0,1,fl);if(o0===rr&&(ce.assertIsDefined(Gs),fl=Cl(uc(Gs,Nr)),o0=$e(1,1,fl),Gs=void 0),(o0===vi||o0===yo||o0===xe)&&ys(fl))return fl;Oc=Cl,o0(1,fl)}}function jv(Q){const ft=Cg(Q,Q.condition,Q.questionToken),br=Cg(Q,Q.questionToken,Q.whenTrue),oo=Cg(Q,Q.whenTrue,Q.colonToken),Js=Cg(Q,Q.colonToken,Q.whenFalse);Qr(Q.condition,al.parenthesizeConditionOfConditionalExpression),Fs(ft,!0),Cn(Q.questionToken),Fs(br,!0),Qr(Q.whenTrue,al.parenthesizeBranchOfConditionalExpression),Tl(ft,br),Fs(oo,!0),Cn(Q.colonToken),Fs(Js,!0),Qr(Q.whenFalse,al.parenthesizeBranchOfConditionalExpression),Tl(oo,Js)}function yy(Q){Cn(Q.head),pl(Q,Q.templateSpans,262144)}function ub(Q){d(127,Q.pos,Ka,Q),Cn(Q.asteriskToken),Bl(Q.expression&&E(Q.expression),P)}function E0(Q){d(26,Q.pos,qo,Q),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma)}function P2(Q){um(Q.name),Ke(Q)}function MA(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Ym(Q,Q.typeArguments)}function aw(Q){Qr(Q.expression,void 0),Q.type&&(va(),Ka("as"),va(),Cn(Q.type))}function DI(Q){Qr(Q.expression,al.parenthesizeLeftSideOfAccess),Qi("!")}function Me(Q){Qr(Q.expression,void 0),Q.type&&(va(),Ka("satisfies"),va(),Cn(Q.type))}function jn(Q){Xn(Q.keywordToken,Q.pos,qo),qo("."),Cn(Q.name)}function Mi(Q){Qr(Q.expression),Cn(Q.literal)}function js(Q){X_(Q,!Q.multiLine&&wp(Q))}function X_(Q,ft){d(19,Q.pos,qo,Q);const br=ft||Tp(Q)&1?768:129;pl(Q,Q.statements,br),d(20,Q.statements.end,qo,Q,!!(br&1))}function $l(Q){Pc(Q,Q.modifiers,!1),Cn(Q.declarationList),d_()}function y_(Q){Q?qo(";"):d_()}function l_(Q){Qr(Q.expression,al.parenthesizeExpressionOfExpressionStatement),(!ue||!Py(ue)||rh(Q.expression))&&d_()}function Ph(Q){const ft=d(101,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.thenStatement),Q.elseStatement&&(Sc(Q,Q.thenStatement,Q.elseStatement),d(93,Q.thenStatement.end,Ka,Q),Q.elseStatement.kind===245?(va(),Cn(Q.elseStatement)):u_(Q,Q.elseStatement))}function Ap(Q,ft){const br=d(117,ft,Ka,Q);va(),d(21,br,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q)}function Mb(Q){d(92,Q.pos,Ka,Q),u_(Q,Q.statement),E_(Q.statement)&&!zt?va():Sc(Q,Q.statement,Q.expression),Ap(Q,Q.statement.end),d_()}function _x(Q){Ap(Q,Q.pos),u_(Q,Q.statement)}function _S(Q){const ft=d(99,Q.pos,Ka,Q);va();let br=d(21,ft,qo,Q);i(Q.initializer),br=d(27,Q.initializer?Q.initializer.end:br,qo,Q),Bl(Q.condition),br=d(27,Q.condition?Q.condition.end:br,qo,Q),Bl(Q.incrementor),d(22,Q.incrementor?Q.incrementor.end:br,qo,Q),u_(Q,Q.statement)}function e(Q){const ft=d(99,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),i(Q.initializer),va(),d(103,Q.initializer.end,Ka,Q),va(),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function n(Q){const ft=d(99,Q.pos,Ka,Q);va(),G_(Q.awaitModifier),d(21,ft,qo,Q),i(Q.initializer),va(),d(165,Q.initializer.end,Ka,Q),va(),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function i(Q){Q!==void 0&&(Q.kind===261?Cn(Q):Qr(Q))}function c(Q){d(88,Q.pos,Ka,Q),ma(Q.label),d_()}function u(Q){d(83,Q.pos,Ka,Q),ma(Q.label),d_()}function d(Q,ft,br,oo,Js){const pu=Il(oo),fl=pu&&pu.kind===oo.kind,ju=ft;if(fl&&ue&&(ft=ep(ue.text,ft)),fl&&oo.pos!==ju){const L_=Js&&ue&&!mv(ju,ft,ue);L_&&fe(),zh(ju),L_&&_n()}if(ft=$o(Q,br,ft),fl&&oo.end!==ft){const L_=oo.kind===294;Vv(ft,!L_,L_)}return ft}function h(Q){return Q.kind===2||!!Q.hasTrailingNewLine}function S(Q){return ue?gt(CS(ue.text,Q.pos),h)||gt(U7(Q),h)?!0:E3(Q)?Q.pos!==Q.expression.pos&>(Nx(ue.text,Q.expression.pos),h)?!0:S(Q.expression):!1:!1}function E(Q){if(!ro&&E3(Q)&&S(Q)){const ft=Il(Q);if(ft&&sb(ft)){const br=be.createParenthesizedExpression(Q.expression);return tc(br,Q),vr(br,ft),br}return be.createParenthesizedExpression(Q)}return Q}function P(Q){return E(al.parenthesizeExpressionForDisallowedComma(Q))}function k(Q){d(107,Q.pos,Ka,Q),Bl(Q.expression&&E(Q.expression),E),d_()}function F(Q){const ft=d(118,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),u_(Q,Q.statement)}function $(Q){const ft=d(109,Q.pos,Ka,Q);va(),d(21,ft,qo,Q),Qr(Q.expression),d(22,Q.expression.end,qo,Q),va(),Cn(Q.caseBlock)}function J(Q){Cn(Q.label),d(59,Q.label.end,qo,Q),va(),Cn(Q.statement)}function X(Q){d(111,Q.pos,Ka,Q),Bl(E(Q.expression),E),d_()}function ie(Q){d(113,Q.pos,Ka,Q),va(),Cn(Q.tryBlock),Q.catchClause&&(Sc(Q,Q.tryBlock,Q.catchClause),Cn(Q.catchClause)),Q.finallyBlock&&(Sc(Q,Q.catchClause||Q.tryBlock,Q.finallyBlock),d(98,(Q.catchClause||Q.tryBlock).end,Ka,Q),va(),Cn(Q.finallyBlock))}function ae(Q){Xn(89,Q.pos,Ka),d_()}function ve(Q){var ft,br,oo;Cn(Q.name),Cn(Q.exclamationToken),bl(Q.type),Tc(Q.initializer,((ft=Q.type)==null?void 0:ft.end)??((oo=(br=Q.name.emitNode)==null?void 0:br.typeNode)==null?void 0:oo.end)??Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function we(Q){if($2(Q))Ka("await"),va(),Ka("using");else{const ft=eSe(Q)?"let":h7(Q)?"const":T9(Q)?"using":"var";Ka(ft)}va(),pl(Q,Q.declarations,528)}function Fe(Q){et(Q)}function et(Q){Pc(Q,Q.modifiers,!1),Ka("function"),Cn(Q.asteriskToken),va(),oi(Q.name),Pe(Q,dt)}function Pe(Q,ft){const br=Q.body;if(br)if(E_(br)){const oo=Tp(Q)&131072;oo&&fe(),Jt(Q),Ot(Q.parameters,gd),gd(Q.body),ft(Q),ct(br),ci(Q),oo&&_n()}else ft(Q),va(),Qr(br,al.parenthesizeConciseBodyOfArrowFunction);else ft(Q),d_()}function dt(Q){mf(Q,Q.typeParameters),Cp(Q,Q.parameters),bl(Q.type)}function Ie(Q){if(Tp(Q)&1)return!0;if(Q.multiLine||!rh(Q)&&ue&&!mk(Q,ue)||fc(Q,pp(Q.statements),2)||ag(Q,Yf(Q.statements),2,Q.statements))return!1;let ft;for(const br of Q.statements){if(Gd(ft,br,2)>0)return!1;ft=br}return!0}function ct(Q){T==null||T(Q),va(),qo("{"),fe();const ft=Ie(Q)?Ct:Lt;Vl(Q,Q.statements,ft),_n(),Xn(20,Q.statements.end,qo,Q),D==null||D(Q)}function Ct(Q){Lt(Q,!0)}function Lt(Q,ft){const br=Lr(Q.statements),oo=tt.getTextPos();Ji(Q),br===0&&oo===tt.getTextPos()&&ft?(_n(),pl(Q,Q.statements,768),fe()):pl(Q,Q.statements,1,void 0,br)}function Ze(Q){Ke(Q)}function Ke(Q){Hu(0,void 0),Ot(Q.members,Dg),Pc(Q,Q.modifiers,!0),d(86,Db(Q).pos,Ka,Q),Q.name&&(va(),oi(Q.name));const ft=Tp(Q)&131072;ft&&fe(),mf(Q,Q.typeParameters),pl(Q,Q.heritageClauses,0),va(),qo("{"),pl(Q,Q.members,129),qo("}"),ft&&_n(),t_()}function st(Q){Hu(0,void 0),Pc(Q,Q.modifiers,!1),Ka("interface"),va(),Cn(Q.name),mf(Q,Q.typeParameters),pl(Q,Q.heritageClauses,512),va(),qo("{"),pl(Q,Q.members,129),qo("}"),t_()}function It(Q){Pc(Q,Q.modifiers,!1),Ka("type"),va(),Cn(Q.name),mf(Q,Q.typeParameters),va(),qo("="),va(),Cn(Q.type),d_()}function Yt(Q){Pc(Q,Q.modifiers,!1),Ka("enum"),va(),Cn(Q.name),va(),qo("{"),pl(Q,Q.members,145),qo("}")}function Et(Q){Pc(Q,Q.modifiers,!1),~Q.flags&2048&&(Ka(Q.flags&32?"namespace":"module"),va()),Cn(Q.name);let ft=Q.body;if(!ft)return d_();for(;ft&&xp(ft);)qo("."),Cn(ft.name),ft=ft.body;va(),Cn(ft)}function at(Q){Jt(Q),Ot(Q.statements,gd),X_(Q,wp(Q)),ci(Q)}function Qt(Q){d(19,Q.pos,qo,Q),pl(Q,Q.clauses,129),d(20,Q.clauses.end,qo,Q,!0)}function nn(Q){Pc(Q,Q.modifiers,!1),d(102,Q.modifiers?Q.modifiers.end:Q.pos,Ka,Q),va(),Q.isTypeOnly&&(d(156,Q.pos,Ka,Q),va()),Cn(Q.name),va(),d(64,Q.name.end,qo,Q),va(),Rn(Q.moduleReference),d_()}function Rn(Q){Q.kind===80?Qr(Q):Cn(Q)}function cn(Q){Pc(Q,Q.modifiers,!1),d(102,Q.modifiers?Q.modifiers.end:Q.pos,Ka,Q),va(),Q.importClause&&(Cn(Q.importClause),va(),d(161,Q.importClause.end,Ka,Q),va()),Qr(Q.moduleSpecifier),Q.assertClause&&ma(Q.assertClause),d_()}function qt(Q){Q.isTypeOnly&&(d(156,Q.pos,Ka,Q),va()),Cn(Q.name),Q.name&&Q.namedBindings&&(d(28,Q.name.end,qo,Q),va()),Cn(Q.namedBindings)}function Kt(Q){const ft=d(42,Q.pos,qo,Q);va(),d(130,ft,Ka,Q),va(),Cn(Q.name)}function wr(Q){io(Q)}function Wr(Q){no(Q)}function jt(Q){const ft=d(95,Q.pos,Ka,Q);va(),Q.isExportEquals?d(64,ft,Qi,Q):d(90,ft,Ka,Q),va(),Qr(Q.expression,Q.isExportEquals?al.getParenthesizeRightSideOfBinaryForOperator(64):al.parenthesizeExpressionOfExportDefault),d_()}function En(Q){Pc(Q,Q.modifiers,!1);let ft=d(95,Q.pos,Ka,Q);if(va(),Q.isTypeOnly&&(ft=d(156,ft,Ka,Q),va()),Q.exportClause?Cn(Q.exportClause):ft=d(42,ft,qo,Q),Q.moduleSpecifier){va();const br=Q.exportClause?Q.exportClause.end:ft;d(161,br,Ka,Q),va(),Qr(Q.moduleSpecifier)}Q.assertClause&&ma(Q.assertClause),d_()}function fr(Q){d(132,Q.pos,Ka,Q),va();const ft=Q.elements;pl(Q,ft,526226)}function Tr(Q){Cn(Q.name),qo(":"),va();const ft=Q.value;if(!(Tp(ft)&1024)){const br=lI(ft);Vv(br.pos)}Cn(ft)}function Vr(Q){let ft=d(95,Q.pos,Ka,Q);va(),ft=d(130,ft,Ka,Q),va(),ft=d(145,ft,Ka,Q),va(),Cn(Q.name),d_()}function Pn(Q){const ft=d(42,Q.pos,qo,Q);va(),d(130,ft,Ka,Q),va(),Cn(Q.name)}function Fr(Q){io(Q)}function Ki(Q){no(Q)}function io(Q){qo("{"),pl(Q,Q.elements,525136),qo("}")}function no(Q){Q.isTypeOnly&&(Ka("type"),va()),Q.propertyName&&(Cn(Q.propertyName),va(),d(130,Q.propertyName.end,Ka,Q),va()),Cn(Q.name)}function os(Q){Ka("require"),qo("("),Qr(Q.expression),qo(")")}function Mo(Q){Cn(Q.openingElement),pl(Q,Q.children,262144),Cn(Q.closingElement)}function $i(Q){qo("<"),Au(Q.tagName),Ym(Q,Q.typeArguments),va(),Cn(Q.attributes),qo("/>")}function ki(Q){Cn(Q.openingFragment),pl(Q,Q.children,262144),Cn(Q.closingFragment)}function gc(Q){if(qo("<"),rD(Q)){const ft=bm(Q.tagName,Q);Au(Q.tagName),Ym(Q,Q.typeArguments),Q.attributes.properties&&Q.attributes.properties.length>0&&va(),Cn(Q.attributes),ay(Q.attributes,Q),Tl(ft)}qo(">")}function Wl(Q){tt.writeLiteral(Q.text)}function Jc(Q){qo("")}function au(Q){pl(Q,Q.properties,262656)}function qn(Q){Cn(Q.name),Tf("=",qo,Q.initializer,co)}function za(Q){qo("{..."),Qr(Q.expression),qo("}")}function Ia(Q){let ft=!1;return Wz((ue==null?void 0:ue.text)||"",Q+1,()=>ft=!0),ft}function zi(Q){let ft=!1;return SN((ue==null?void 0:ue.text)||"",Q+1,()=>ft=!0),ft}function na(Q){return Ia(Q)||zi(Q)}function _a(Q){var ft;if(Q.expression||!ro&&!rh(Q)&&na(Q.pos)){const br=ue&&!rh(Q)&&Ah(ue,Q.pos).line!==Ah(ue,Q.end).line;br&&tt.increaseIndent();const oo=d(19,Q.pos,qo,Q);Cn(Q.dotDotDotToken),Qr(Q.expression),d(20,((ft=Q.expression)==null?void 0:ft.end)||oo,qo,Q),br&&tt.decreaseIndent()}}function us(Q){oi(Q.namespace),qo(":"),oi(Q.name)}function Au(Q){Q.kind===80?Qr(Q):Cn(Q)}function Qu(Q){d(84,Q.pos,Ka,Q),va(),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma),yf(Q,Q.statements,Q.expression.end)}function Cu(Q){const ft=d(90,Q.pos,Ka,Q);yf(Q,Q.statements,ft)}function yf(Q,ft,br){const oo=ft.length===1&&(!ue||rh(Q)||rh(ft[0])||wH(Q,ft[0],ue));let Js=163969;oo?(Xn(59,br,qo,Q),va(),Js&=-130):d(59,br,qo,Q),pl(Q,ft,Js)}function w_(Q){va(),$o(Q.token,Ka),va(),pl(Q,Q.types,528)}function Eu(Q){const ft=d(85,Q.pos,Ka,Q);va(),Q.variableDeclaration&&(d(21,ft,qo,Q),Cn(Q.variableDeclaration),d(22,Q.variableDeclaration.end,qo,Q),va()),Cn(Q.block)}function He(Q){Cn(Q.name),qo(":"),va();const ft=Q.initializer;if(!(Tp(ft)&1024)){const br=lI(ft);Vv(br.pos)}Qr(ft,al.parenthesizeExpressionForDisallowedComma)}function Hn(Q){Cn(Q.name),Q.objectAssignmentInitializer&&(va(),qo("="),va(),Qr(Q.objectAssignmentInitializer,al.parenthesizeExpressionForDisallowedComma))}function dr(Q){Q.expression&&(d(26,Q.pos,qo,Q),Qr(Q.expression,al.parenthesizeExpressionForDisallowedComma))}function Mr(Q){Cn(Q.name),Tc(Q.initializer,Q.name.end,Q,al.parenthesizeExpressionForDisallowedComma)}function Pr(Q){if(kn("/**"),Q.comment){const ft=Gz(Q.comment);if(ft){const br=ft.split(/\r\n?|\n/g);for(const oo of br)Md(),va(),qo("*"),va(),kn(oo)}}Q.tags&&(Q.tags.length===1&&Q.tags[0].kind===351&&!Q.comment?(va(),Cn(Q.tags[0])):pl(Q,Q.tags,33)),va(),kn("*/")}function Bt(Q){Io(Q.tagName),Ce(Q.typeExpression),ze(Q.comment)}function ln(Q){Io(Q.tagName),Cn(Q.name),ze(Q.comment)}function Wn(Q){va(),qo("{"),Cn(Q.name),qo("}")}function $r(Q){Io(Q.tagName),va(),qo("{"),Cn(Q.class),qo("}"),ze(Q.comment)}function Ge(Q){Io(Q.tagName),Ce(Q.constraint),va(),pl(Q,Q.typeParameters,528),ze(Q.comment)}function Br(Q){Io(Q.tagName),Q.typeExpression&&(Q.typeExpression.kind===316?Ce(Q.typeExpression):(va(),qo("{"),kn("Object"),Q.typeExpression.isArrayType&&(qo("["),qo("]")),qo("}"))),Q.fullName&&(va(),Cn(Q.fullName)),ze(Q.comment),Q.typeExpression&&Q.typeExpression.kind===329&&yi(Q.typeExpression)}function Ei(Q){Io(Q.tagName),Q.name&&(va(),Cn(Q.name)),ze(Q.comment),go(Q.typeExpression)}function Ln(Q){ze(Q.comment),go(Q.typeExpression)}function Sr(Q){Io(Q.tagName),ze(Q.comment)}function yi(Q){pl(Q,be.createNodeArray(Q.jsDocPropertyTags),33)}function go(Q){Q.typeParameters&&pl(Q,be.createNodeArray(Q.typeParameters),33),Q.parameters&&pl(Q,be.createNodeArray(Q.parameters),33),Q.type&&(Md(),va(),qo("*"),va(),Cn(Q.type))}function Ao(Q){Io(Q.tagName),Ce(Q.typeExpression),va(),Q.isBracketed&&qo("["),Cn(Q.name),Q.isBracketed&&qo("]"),ze(Q.comment)}function Io(Q){qo("@"),Cn(Q)}function ze(Q){const ft=Gz(Q);ft&&(va(),kn(ft))}function Ce(Q){Q&&(va(),qo("{"),Cn(Q.type),qo("}"))}function kt(Q){Md();const ft=Q.statements;if(ft.length===0||!qC(ft[0])||rh(ft[0])){Vl(Q,ft,mn);return}mn(Q)}function qe(Q){ge(!!Q.hasNoDefaultLib,Q.syntheticFileReferences||[],Q.syntheticTypeReferences||[],Q.syntheticLibReferences||[]);for(const ft of Q.prepends)if(xA(ft)&&ft.syntheticReferences)for(const br of ft.syntheticReferences)Cn(br),Md()}function Mt(Q){Q.isDeclarationFile&&ge(Q.hasNoDefaultLib,Q.referencedFiles,Q.typeReferenceDirectives,Q.libReferenceDirectives)}function ge(Q,ft,br,oo){if(Q){const Js=tt.getTextPos();Ag('/// '),un&&un.sections.push({pos:Js,end:tt.getTextPos(),kind:"no-default-lib"}),Md()}if(ue&&ue.moduleName&&(Ag(`/// `),Md()),ue&&ue.amdDependencies)for(const Js of ue.amdDependencies)Js.name?Ag(`/// `):Ag(`/// `),Md();for(const Js of ft){const pu=tt.getTextPos();Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:"reference",data:Js.fileName}),Md()}for(const Js of br){const pu=tt.getTextPos(),fl=Js.resolutionMode&&Js.resolutionMode!==(ue==null?void 0:ue.impliedNodeFormat)?`resolution-mode="${Js.resolutionMode===99?"import":"require"}"`:"";Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:Js.resolutionMode?Js.resolutionMode===99?"type-import":"type-require":"type",data:Js.fileName}),Md()}for(const Js of oo){const pu=tt.getTextPos();Ag(`/// `),un&&un.sections.push({pos:pu,end:tt.getTextPos(),kind:"lib",data:Js.fileName}),Md()}}function mn(Q){const ft=Q.statements;Jt(Q),Ot(Q.statements,gd),Ji(Q);const br=Ho(ft,oo=>!qC(oo));Mt(Q),pl(Q,ft,1,void 0,br===-1?ft.length:br),ci(Q)}function Jn(Q){const ft=Tp(Q);!(ft&1024)&&Q.pos!==Q.expression.pos&&Vv(Q.expression.pos),Qr(Q.expression),!(ft&2048)&&Q.end!==Q.expression.end&&zh(Q.expression.end)}function Nn(Q){R_(Q,Q.elements,528,void 0)}function Lr(Q,ft,br,oo){let Js=!!ft;for(let pu=0;pu=br.length||fl===0;if(L_&&oo&32768){I==null||I(br),W==null||W(br);return}oo&15360&&(qo(Act(oo)),L_&&br&&Vv(br.pos,!0)),I==null||I(br),L_?oo&1&&!(zt&&(!ft||ue&&mk(ft,ue)))?Md():oo&256&&!(oo&524288)&&va():km(Q,ft,br,oo,Js,pu,fl,br.hasTrailingComma,br),W==null||W(br),oo&15360&&(L_&&br&&zh(br.end),qo(D4e(oo)))}function km(Q,ft,br,oo,Js,pu,fl,ju,L_){const Cl=(oo&262144)===0;let o0=Cl;const oa=fc(ft,br[pu],oo);oa?(Md(oa),o0=!1):oo&256&&va(),oo&128&&fe();const dD=Ict(Q,Js);let a0,Kx,hC=!1;for(let pD=0;pD0?(oo&131||(fe(),hC=!0),Md(vC),o0=!1):a0&&oo&512&&va()}if(Kx=sl(yC),o0){const vC=lI(yC);Vv(vC.pos)}else o0=Cl;Wt=yC.pos,dD(yC,Q,Js,pD),hC&&(_n(),hC=!1),a0=yC}const WP=a0?Tp(a0):0,BP=ro||!!(WP&2048),LA=ju&&oo&64&&oo&16;LA&&(a0&&!BP?d(28,a0.end,qo,a0):qo(",")),a0&&(ft?ft.end:-1)!==a0.end&&oo&60&&!BP&&zh(LA&&(L_!=null&&L_.end)?L_.end:a0.end),oo&128&&_n(),vc(Kx);const OA=ag(ft,br[pu+fl-1],oo,L_);OA?Md(OA):oo&2097408&&va()}function M_(Q){tt.writeLiteral(Q)}function oy(Q){tt.writeStringLiteral(Q)}function bE(Q){tt.write(Q)}function hh(Q,ft){tt.writeSymbol(Q,ft)}function qo(Q){tt.writePunctuation(Q)}function d_(){tt.writeTrailingSemicolon(";")}function Ka(Q){tt.writeKeyword(Q)}function Qi(Q){tt.writeOperator(Q)}function Pm(Q){tt.writeParameter(Q)}function Ag(Q){tt.writeComment(Q)}function va(){tt.writeSpace(" ")}function x0(Q){tt.writeProperty(Q)}function Nm(Q){tt.nonEscapingWrite?tt.nonEscapingWrite(Q):tt.write(Q)}function Md(Q=1){for(let ft=0;ft0)}function fe(){tt.increaseIndent()}function _n(){tt.decreaseIndent()}function Xn(Q,ft,br,oo){return Ut?$o(Q,br,ft):Xs(oo,Q,br,ft,$o)}function _i(Q,ft){O&&O(Q),ft(Nd(Q.kind)),V&&V(Q)}function $o(Q,ft,br){const oo=Nd(Q);return ft(oo),br<0?br:br+oo.length}function Sc(Q,ft,br){if(Tp(Q)&1)va();else if(zt){const oo=Cg(Q,ft,br);oo?Md(oo):va()}else Md()}function xs(Q){const ft=Q.split(/\r\n?|\n/g),br=lde(ft);for(const oo of ft){const Js=br?oo.slice(br):oo;Js.length&&(Md(),kn(Js))}}function Fs(Q,ft){Q?(fe(),Md(Q)):ft&&va()}function Tl(Q,ft){Q&&_n(),ft&&_n()}function fc(Q,ft,br){if(br&2||zt){if(br&65536)return 1;if(ft===void 0)return!Q||ue&&mk(Q,ue)?0:1;if(ft.pos===Wt||ft.kind===12)return 0;if(ue&&Q&&!ab(Q.pos)&&!rh(ft)&&(!ft.parent||Ic(ft.parent)===Ic(Q)))return zt?ah(oo=>CSe(ft.pos,Q.pos,ue,oo)):wH(Q,ft,ue)?0:1;if(yp(ft,br))return 1}return br&1?1:0}function Gd(Q,ft,br){if(br&2||zt){if(Q===void 0||ft===void 0||ft.kind===12)return 0;if(ue&&!rh(Q)&&!rh(ft))return zt&&Y_(Q,ft)?ah(oo=>Jie(Q,ft,ue,oo)):!zt&&Uf(Q,ft)?H9(Q,ft,ue)?0:1:br&65536?1:0;if(yp(Q,br)||yp(ft,br))return 1}else if(lp(ft))return 1;return br&1?1:0}function ag(Q,ft,br,oo){if(br&2||zt){if(br&65536)return 1;if(ft===void 0)return!Q||ue&&mk(Q,ue)?0:1;if(ue&&Q&&!ab(Q.pos)&&!rh(ft)&&(!ft.parent||ft.parent===Q)){if(zt){const Js=oo&&!ab(oo.end)?oo.end:ft.end;return ah(pu=>DSe(Js,Q.end,ue,pu))}return ESe(Q,ft,ue)?0:1}if(yp(ft,br))return 1}return br&1&&!(br&131072)?1:0}function ah(Q){ce.assert(!!zt);const ft=Q(!0);return ft===0?Q(!1):ft}function bm(Q,ft){const br=zt&&fc(ft,Q,0);return br&&Fs(br,!1),!!br}function ay(Q,ft){const br=zt&&ag(ft,Q,0,void 0);br&&Md(br)}function yp(Q,ft){if(rh(Q)){const br=lp(Q);return br===void 0?(ft&65536)!==0:br}return(ft&65536)!==0}function Cg(Q,ft,br){return Tp(Q)&262144?0:(Q=Xp(Q),ft=Xp(ft),br=Xp(br),lp(br)?1:ue&&!rh(Q)&&!rh(ft)&&!rh(br)?zt?ah(oo=>Jie(ft,br,ue,oo)):H9(ft,br,ue)?0:1:0)}function wp(Q){return Q.statements.length===0&&(!ue||H9(Q,Q,ue))}function Xp(Q){for(;Q.kind===217&&rh(Q);)Q=Q.expression;return Q}function r1(Q,ft){if(Om(Q)||cR(Q))return Ig(Q);if(Wp(Q)&&Q.textSourceNode)return r1(Q.textSourceNode,ft);const br=ue,oo=!!br&&!!Q.parent&&!rh(Q);if(uy(Q)){if(!oo||ns(Q)!==Ic(br))return ec(Q)}else if(dI(Q)){if(!oo||ns(Q)!==Ic(br))return g3(Q)}else if(ce.assertNode(Q,fP),!oo)return Q.text;return wd(br,Q,ft)}function sg(Q,ft,br){if(Q.kind===11&&Q.textSourceNode){const Js=Q.textSourceNode;if(An(Js)||Gu(Js)||nS(Js)||dI(Js)){const pu=nS(Js)?Js.text:r1(Js);return br?`"${bY(pu)}"`:ft||Tp(Q)&16777216?`"${M7(pu)}"`:`"${S2(pu)}"`}else return sg(Js,ft,br)}const oo=(ft?1:0)|(br?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return dde(Q,ue,oo)}function Jt(Q){Q&&Tp(Q)&1048576||(Dt.push(Ft),Ft=0,Le.push(ht),ht=void 0,it.push(Ye))}function ci(Q){Q&&Tp(Q)&1048576||(Ft=Dt.pop(),ht=Le.pop(),Ye=it.pop())}function da(Q){(!Ye||Ye===Yf(it))&&(Ye=new Set),Ye.add(Q)}function Hu(Q,ft){ke.push(_t),_t=Q,ut.push(Ye),lt=ft}function t_(){_t=ke.pop(),lt=ut.pop()}function A_(Q){(!lt||lt===Yf(ut))&&(lt=new Set),lt.add(Q)}function gd(Q){if(Q)switch(Q.kind){case 241:Ot(Q.statements,gd);break;case 256:case 254:case 246:case 247:gd(Q.statement);break;case 245:gd(Q.thenStatement),gd(Q.elseStatement);break;case 248:case 250:case 249:gd(Q.initializer),gd(Q.statement);break;case 255:gd(Q.caseBlock);break;case 269:Ot(Q.clauses,gd);break;case 296:case 297:Ot(Q.statements,gd);break;case 258:gd(Q.tryBlock),gd(Q.catchClause),gd(Q.finallyBlock);break;case 299:gd(Q.variableDeclaration),gd(Q.block);break;case 243:gd(Q.declarationList);break;case 261:Ot(Q.declarations,gd);break;case 260:case 169:case 208:case 263:um(Q.name);break;case 262:um(Q.name),Tp(Q)&1048576&&(Ot(Q.parameters,gd),gd(Q.body));break;case 206:case 207:Ot(Q.elements,gd);break;case 272:gd(Q.importClause);break;case 273:um(Q.name),gd(Q.namedBindings);break;case 274:um(Q.name);break;case 280:um(Q.name);break;case 275:Ot(Q.elements,gd);break;case 276:um(Q.propertyName||Q.name);break}}function Dg(Q){if(Q)switch(Q.kind){case 303:case 304:case 172:case 174:case 177:case 178:um(Q.name);break}}function um(Q){Q&&(Om(Q)||cR(Q)?Ig(Q):ld(Q)&&gd(Q))}function Ig(Q){const ft=Q.emitNode.autoGenerate;if((ft.flags&7)===4)return P_(zG(Q),Gu(Q),ft.flags,ft.prefix,ft.suffix);{const br=ft.id;return Ve[br]||(Ve[br]=pr(Q))}}function P_(Q,ft,br,oo,Js){const pu=Im(Q),fl=ft?Be:Ne;return fl[pu]||(fl[pu]=nt(Q,ft,br??0,JJ(oo,Ig),JJ(Js)))}function Qm(Q,ft){return P1(Q)&&!Bh(Q,ft)&&!pt.has(Q)}function Bh(Q,ft){return ft?!!(lt!=null&<.has(Q)):!!(Ye!=null&&Ye.has(Q))}function P1(Q,ft){return ue?fde(ue,Q,s):!0}function VT(Q,ft){for(let br=ft;br&&N7(br,ft);br=br.nextContainer)if(lk(br)&&br.locals){const oo=br.locals.get(ty(Q));if(oo&&oo.flags&3257279)return!1}return!0}function Zm(Q){switch(Q){case"":return Ft;case"#":return _t;default:return(ht==null?void 0:ht.get(Q))??0}}function fb(Q,ft){switch(Q){case"":Ft=ft;break;case"#":_t=ft;break;default:ht??(ht=new Map),ht.set(Q,ft);break}}function FS(Q,ft,br,oo,Js){oo.length>0&&oo.charCodeAt(0)===35&&(oo=oo.slice(1));const pu=t4(br,oo,"",Js);let fl=Zm(pu);if(Q&&!(fl&Q)){const L_=t4(br,oo,Q===268435456?"_i":"_n",Js);if(Qm(L_,br))return fl|=Q,br?A_(L_):ft&&da(L_),fb(pu,fl),L_}for(;;){const ju=fl&268435455;if(fl++,ju!==8&&ju!==13){const L_=ju<26?"_"+String.fromCharCode(97+ju):"_"+(ju-26),Cl=t4(br,oo,L_,Js);if(Qm(Cl,br))return br?A_(Cl):ft&&da(Cl),fb(pu,fl),Cl}}}function dT(Q,ft=Qm,br,oo,Js,pu,fl){if(Q.length>0&&Q.charCodeAt(0)===35&&(Q=Q.slice(1)),pu.length>0&&pu.charCodeAt(0)===35&&(pu=pu.slice(1)),br){const L_=t4(Js,pu,Q,fl);if(ft(L_,Js))return Js?A_(L_):oo?da(L_):pt.add(L_),L_}Q.charCodeAt(Q.length-1)!==95&&(Q+="_");let ju=1;for(;;){const L_=t4(Js,pu,Q+ju,fl);if(ft(L_,Js))return Js?A_(L_):oo?da(L_):pt.add(L_),L_;ju++}}function $0(Q){return dT(Q,P1,!0,!1,!1,"","")}function xv(Q){const ft=r1(Q.name);return VT(ft,to(Q,lk))?ft:dT(ft,Qm,!1,!1,!1,"","")}function t2(Q){const ft=pY(Q),br=Wp(ft)?jVe(ft.text):"module";return dT(br,Qm,!1,!1,!1,"","")}function q0(){return dT("default",Qm,!1,!1,!1,"","")}function N1(){return dT("class",Qm,!1,!1,!1,"","")}function i0(Q,ft,br,oo){return An(Q.name)?P_(Q.name,ft):FS(0,!1,ft,br,oo)}function nt(Q,ft,br,oo,Js){switch(Q.kind){case 80:case 81:return dT(r1(Q),Qm,!!(br&16),!!(br&8),ft,oo,Js);case 267:case 266:return ce.assert(!oo&&!Js&&!ft),xv(Q);case 272:case 278:return ce.assert(!oo&&!Js&&!ft),t2(Q);case 262:case 263:{ce.assert(!oo&&!Js&&!ft);const pu=Q.name;return pu&&!Om(pu)?nt(pu,!1,br,oo,Js):q0()}case 277:return ce.assert(!oo&&!Js&&!ft),q0();case 231:return ce.assert(!oo&&!Js&&!ft),N1();case 174:case 177:case 178:return i0(Q,ft,oo,Js);case 167:return FS(0,!0,ft,oo,Js);default:return FS(0,!1,ft,oo,Js)}}function pr(Q){const ft=Q.emitNode.autoGenerate,br=JJ(ft.prefix,Ig),oo=JJ(ft.suffix);switch(ft.flags&7){case 1:return FS(0,!!(ft.flags&8),Gu(Q),br,oo);case 2:return ce.assertNode(Q,An),FS(268435456,!!(ft.flags&8),!1,br,oo);case 3:return dT(ec(Q),ft.flags&32?P1:Qm,!!(ft.flags&16),!!(ft.flags&8),Gu(Q),br,oo)}return ce.fail(`Unsupported GeneratedIdentifierKind: ${ce.formatEnum(ft.flags&7,mX,!0)}.`)}function vi(Q,ft){const br=$e(2,Q,ft),oo=Ur,Js=so,pu=ho;Di(ft),br(Q,ft),Ee(ft,oo,Js,pu)}function Di(Q){const ft=Tp(Q),br=lI(Q);Gt(Q,ft,br.pos,br.end),ft&4096&&(ro=!0)}function Ee(Q,ft,br,oo){const Js=Tp(Q),pu=lI(Q);Js&4096&&(ro=!1),sr(Q,Js,pu.pos,pu.end,ft,br,oo);const fl=rpe(Q);fl&&sr(Q,Js,fl.pos,fl.end,ft,br,oo)}function Gt(Q,ft,br,oo){_u(),ha=!1;const Js=br<0||(ft&1024)!==0||Q.kind===12,pu=oo<0||(ft&2048)!==0||Q.kind===12;(br>0||oo>0)&&br!==oo&&(Js||Fg(br,Q.kind!==359),(!Js||br>=0&&ft&1024)&&(Ur=br),(!pu||oo>=0&&ft&2048)&&(so=oo,Q.kind===261&&(ho=oo))),Ot(U7(Q),Ii),Ku()}function sr(Q,ft,br,oo,Js,pu,fl){_u();const ju=oo<0||(ft&2048)!==0||Q.kind===12;Ot(y3(Q),Ja),(br>0||oo>0)&&br!==oo&&(Ur=Js,so=pu,ho=fl,!ju&&Q.kind!==359&&i1(oo)),Ku()}function Ii(Q){(Q.hasLeadingNewline||Q.kind===2)&&tt.writeLine(),wa(Q),Q.hasTrailingNewLine||Q.kind===2?tt.writeLine():tt.writeSpace(" ")}function Ja(Q){tt.isAtStartOfLine()||tt.writeSpace(" "),wa(Q),Q.hasTrailingNewLine&&tt.writeLine()}function wa(Q){const ft=wi(Q),br=Q.kind===3?i7(ft):void 0;tT(ft,br,tt,0,ft.length,te)}function wi(Q){return Q.kind===3?`/*${Q.text}*/`:`//${Q.text}`}function Vl(Q,ft,br){_u();const{pos:oo,end:Js}=ft,pu=Tp(Q),fl=oo<0||(pu&1024)!==0,ju=ro||Js<0||(pu&2048)!==0;fl||fn(ft),Ku(),pu&4096&&!ro?(ro=!0,br(Q),ro=!1):br(Q),_u(),ju||(Fg(ft.end,!0),ha&&!tt.isAtStartOfLine()&&tt.writeLine()),Ku()}function Uf(Q,ft){return Q=Ic(Q),Q.parent&&Q.parent===Ic(ft).parent}function Y_(Q,ft){if(ft.pos-1&&oo.indexOf(ft)===Js+1}function Fg(Q,ft){ha=!1,ft?Q===0&&(ue!=null&&ue.isDeclarationFile)?eg(Q,vy):eg(Q,f_):Q===0&&eg(Q,sv)}function sv(Q,ft,br,oo,Js){ri(Q,ft)&&f_(Q,ft,br,oo,Js)}function vy(Q,ft,br,oo,Js){ri(Q,ft)||f_(Q,ft,br,oo,Js)}function _b(Q,ft){return t.onlyPrintJsDocStyle?DA(Q,ft)||h9(Q,ft):!0}function f_(Q,ft,br,oo,Js){!ue||!_b(ue.text,Q)||(ha||(e6e(_r(),tt,Js,Q),ha=!0),Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo?tt.writeLine():br===3&&tt.writeSpace(" "))}function zh(Q){ro||Q===-1||Fg(Q,!0)}function i1(Q){Uv(Q,n2)}function n2(Q,ft,br,oo){!ue||!_b(ue.text,Q)||(tt.isAtStartOfLine()||tt.writeSpace(" "),Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo&&tt.writeLine())}function Vv(Q,ft,br){ro||(_u(),Uv(Q,ft?n2:br?su:gC),Ku())}function su(Q,ft,br){ue&&(Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),br===2&&tt.writeLine())}function gC(Q,ft,br,oo){ue&&(Fc(Q),tT(ue.text,_r(),tt,Q,ft,te),Fc(ft),oo?tt.writeLine():tt.writeSpace(" "))}function eg(Q,ft){ue&&(Ur===-1||Q!==Ur)&&(Rk(Q)?Lb(ft):SN(ue.text,Q,ft,Q))}function Uv(Q,ft){ue&&(so===-1||Q!==so&&Q!==ho)&&Wz(ue.text,Q,ft)}function Rk(Q){return Nc!==void 0&&yl(Nc).nodePos===Q}function Lb(Q){if(!ue)return;const ft=yl(Nc).detachedCommentEndPos;Nc.length-1?Nc.pop():Nc=void 0,SN(ue.text,ft,Q,ft)}function fn(Q){const ft=ue&&gSe(ue.text,_r(),tt,$n,Q,te,ro);ft&&(Nc?Nc.push(ft):Nc=[ft])}function $n(Q,ft,br,oo,Js,pu){!ue||!_b(ue.text,oo)||(Fc(oo),tT(Q,ft,br,oo,Js,pu),Fc(Js))}function ri(Q,ft){return!!ue&&nY(ue.text,Q,ft)}function Li(Q){return Q.parsedSourceMap===void 0&&Q.sourceMapText!==void 0&&(Q.parsedSourceMap=_me(Q.sourceMapText)||!1),Q.parsedSourceMap||void 0}function yo(Q,ft){const br=$e(3,Q,ft);jo(ft),br(Q,ft),Oo(ft)}function jo(Q){const ft=Tp(Q),br=cE(Q);if(a7(Q)){ce.assertIsDefined(Q.parent,"UnparsedNodes must have parent pointers");const oo=Li(Q.parent);oo&&In&&In.appendSourceMap(tt.getLine(),tt.getColumn(),oo,Q.parent.sourceMapPath,Q.parent.getLineAndCharacterOfPosition(Q.pos),Q.parent.getLineAndCharacterOfPosition(Q.end))}else{const oo=br.source||gr;Q.kind!==359&&!(ft&32)&&br.pos>=0&&ks(br.source||gr,ca(oo,br.pos)),ft&128&&(Ut=!0)}}function Oo(Q){const ft=Tp(Q),br=cE(Q);a7(Q)||(ft&128&&(Ut=!1),Q.kind!==359&&!(ft&64)&&br.end>=0&&ks(br.source||gr,br.end))}function ca(Q,ft){return Q.skipTrivia?Q.skipTrivia(ft):ep(Q.text,ft)}function Fc(Q){if(Ut||ab(Q)||Yp(gr))return;const{line:ft,character:br}=Ah(gr,Q);In.addMapping(tt.getLine(),tt.getColumn(),Cr,ft,br,void 0)}function ks(Q,ft){if(Q!==gr){const br=gr,oo=Cr;Vs(Q),Fc(ft),wu(br,oo)}else Fc(ft)}function Xs(Q,ft,br,oo,Js){if(Ut||Q&&Cde(Q))return Js(ft,br,oo);const pu=Q&&Q.emitNode,fl=pu&&pu.flags||0,ju=pu&&pu.tokenSourceMapRanges&&pu.tokenSourceMapRanges[ft],L_=ju&&ju.source||gr;return oo=ca(L_,ju?ju.pos:oo),!(fl&256)&&oo>=0&&ks(L_,oo),oo=Js(ft,br,oo),ju&&(oo=ju.end),!(fl&512)&&oo>=0&&ks(L_,oo),oo}function Vs(Q){if(!Ut){if(gr=Q,Q===ei){Cr=Gn;return}Yp(Q)||(Cr=In.addSource(Q.fileName),t.inlineSources&&In.setSourceContent(Cr,Q.text),ei=Q,Gn=Cr)}}function wu(Q,ft){gr=Q,Cr=ft}function Yp(Q){return Pg(Q.fileName,".json")}}function Fme(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function Act(t){return I4e[t&15360][0]}function D4e(t){return I4e[t&15360][1]}function Cct(t,r,s,l){r(t)}function F3(t,r,s,l){r(t,s.select(l))}function Dct(t,r,s,l){r(t,s)}function Ict(t,r){return t.length===1?Cct:typeof r=="object"?F3:Dct}var I4e,pxe,k4e,GW,P4e,jQ,Wme=G({"src/compiler/emitter.ts"(){Ad(),Ad(),NM(),I4e=Fme(),pxe={hasGlobalName:Na,getReferencedExportContainer:Na,getReferencedImportDeclaration:Na,getReferencedDeclarationWithCollidingName:Na,isDeclarationWithCollidingName:Na,isValueAliasDeclaration:Na,isReferencedAliasDeclaration:Na,isTopLevelValueImportEqualsWithEntityName:Na,getNodeCheckFlags:Na,isDeclarationVisible:Na,isLateBound:t=>!1,collectLinkedAliases:Na,isImplementationOfOverload:Na,isRequiredInitializedParameter:Na,isOptionalUninitializedParameterProperty:Na,isExpandoFunctionDeclaration:Na,getPropertiesOfContainerFunction:Na,createTypeOfDeclaration:Na,createReturnTypeOfSignatureDeclaration:Na,createTypeOfExpression:Na,createLiteralConstValue:Na,isSymbolAccessible:Na,isEntityNameVisible:Na,getConstantValue:Na,getReferencedValueDeclaration:Na,getReferencedValueDeclarations:Na,getTypeReferenceSerializationKind:Na,isOptionalParameter:Na,moduleExportsSomeValue:Na,isArgumentsLocalBinding:Na,getExternalModuleFileFromDeclaration:Na,getTypeReferenceDirectivesForEntityName:Na,getTypeReferenceDirectivesForSymbol:Na,isLiteralConstDeclaration:Na,getJsxFactoryEntity:Na,getJsxFragmentFactoryEntity:Na,getAllAccessorDeclarations:Na,getSymbolOfExternalModuleSpecifier:Na,isBindingCapturedByNode:Na,getDeclarationStatementsForSourceFile:Na,isImportRequiredByAugmentation:Na},k4e=Pd(()=>f4({})),GW=Pd(()=>f4({removeComments:!0})),P4e=Pd(()=>f4({removeComments:!0,neverAsciiEscape:!0})),jQ=Pd(()=>f4({removeComments:!0,omitTrailingSemicolon:!0}))}});function Bme(t,r,s){if(!t.getDirectories||!t.readDirectory)return;const l=new Map,m=_v(s);return{useCaseSensitiveFileNames:s,fileExists:te,readFile:(ke,_t)=>t.readFile(ke,_t),directoryExists:t.directoryExists&&oe,getDirectories:ue,readDirectory:Ne,createDirectory:t.createDirectory&&de,writeFile:t.writeFile&&ee,addOrDeleteFileOrDirectory:Ve,addOrDeleteFile:pt,clearCache:ht,realpath:t.realpath&&Be};function y(ke){return _h(ke,r,m)}function T(ke){return l.get(Rv(ke))}function D(ke){const _t=T(qc(ke));return _t&&(_t.sortedAndCanonicalizedFiles||(_t.sortedAndCanonicalizedFiles=_t.files.map(m).sort(),_t.sortedAndCanonicalizedDirectories=_t.directories.map(m).sort()),_t)}function I(ke){return Iy(Fd(ke))}function W(ke,_t){var Dt;if(!t.realpath||Rv(y(t.realpath(ke)))===_t){const Ft={files:Vn(t.readDirectory(ke,void 0,void 0,["*.*"]),I)||[],directories:t.getDirectories(ke)||[]};return l.set(Rv(_t),Ft),Ft}if((Dt=t.directoryExists)!=null&&Dt.call(t,ke))return l.set(_t,!1),!1}function O(ke,_t){_t=Rv(_t);const Dt=T(_t);if(Dt)return Dt;try{return W(ke,_t)}catch{ce.assert(!l.has(Rv(_t)));return}}function V(ke,_t){return ZS(ke,_t,Of,Fp)>=0}function ee(ke,_t,Dt){const Ft=y(ke),it=D(Ft);return it&&Le(it,I(ke),!0),t.writeFile(ke,_t,Dt)}function te(ke){const _t=y(ke),Dt=D(_t);return Dt&&V(Dt.sortedAndCanonicalizedFiles,m(I(ke)))||t.fileExists(ke)}function oe(ke){const _t=y(ke);return l.has(Rv(_t))||t.directoryExists(ke)}function de(ke){const _t=y(ke),Dt=D(_t);if(Dt){const Ft=I(ke),it=m(Ft),Ye=Dt.sortedAndCanonicalizedDirectories;d0(Ye,it,Fp)&&Dt.directories.push(Ft)}t.createDirectory(ke)}function ue(ke){const _t=y(ke),Dt=O(ke,_t);return Dt?Dt.directories.slice():t.getDirectories(ke)}function Ne(ke,_t,Dt,Ft,it){const Ye=y(ke),ut=O(ke,Ye);let lt;if(ut!==void 0)return ioe(ke,_t,Dt,Ft,s,r,it,zt,Be);return t.readDirectory(ke,_t,Dt,Ft,it);function zt(tt){const Mn=y(tt);if(Mn===Ye)return ut||Wt(tt,Mn);const kn=O(tt,Mn);return kn!==void 0?kn||Wt(tt,Mn):EG}function Wt(tt,Mn){if(lt&&Mn===Ye)return lt;const kn={files:Vn(t.readDirectory(tt,void 0,void 0,["*.*"]),I)||Zn,directories:t.getDirectories(tt)||Zn};return Mn===Ye&&(lt=kn),kn}}function Be(ke){return t.realpath?t.realpath(ke):ke}function Ve(ke,_t){if(T(_t)!==void 0){ht();return}const Ft=D(_t);if(!Ft)return;if(!t.directoryExists){ht();return}const it=I(ke),Ye={fileExists:t.fileExists(_t),directoryExists:t.directoryExists(_t)};return Ye.directoryExists||V(Ft.sortedAndCanonicalizedDirectories,m(it))?ht():Le(Ft,it,Ye.fileExists),Ye}function pt(ke,_t,Dt){if(Dt===1)return;const Ft=D(_t);Ft&&Le(Ft,I(ke),Dt===0)}function Le(ke,_t,Dt){const Ft=ke.sortedAndCanonicalizedFiles,it=m(_t);if(Dt)d0(Ft,it,Fp)&&ke.files.push(_t);else{const Ye=ZS(Ft,it,Of,Fp);if(Ye>=0){Ft.splice(Ye,1);const ut=ke.files.findIndex(lt=>m(lt)===it);ke.files.splice(ut,1)}}}function ht(){l.clear()}}function _4(t,r,s,l,m){var y;const T=QT(((y=r==null?void 0:r.configFile)==null?void 0:y.extendedSourceFiles)||Zn,m);s.forEach((D,I)=>{T.has(I)||(D.projects.delete(t),D.close())}),T.forEach((D,I)=>{const W=s.get(I);W?W.projects.add(t):s.set(I,{projects:new Set([t]),watcher:l(D,I),close:()=>{const O=s.get(I);!O||O.projects.size!==0||(O.watcher.close(),s.delete(I))}})})}function zme(t,r){r.forEach(s=>{s.projects.delete(t)&&s.close()})}function C$(t,r,s){t.delete(r)&&t.forEach(({extendedResult:l},m)=>{var y;(y=l.extendedSourceFiles)!=null&&y.some(T=>s(T)===r)&&C$(t,m,s)})}function kct(t,r,s){const l=new Map(t);a6(r,l,{createNewValue:s,onDeleteValue:Ib})}function Jae(t,r,s){const l=t.getMissingFilePaths(),m=QT(l,Of,xT);a6(r,m,{createNewValue:s,onDeleteValue:Ib})}function D$(t,r,s){a6(t,r,{createNewValue:l,onDeleteValue:dC,onExistingValue:m});function l(y,T){return{watcher:s(y,T),flags:T}}function m(y,T,D){y.flags!==T&&(y.watcher.close(),t.set(D,l(D,T)))}}function VQ({watchedDirPath:t,fileOrDirectory:r,fileOrDirectoryPath:s,configFileName:l,options:m,program:y,extraFileExtensions:T,currentDirectory:D,useCaseSensitiveFileNames:I,writeLog:W,toPath:O}){const V=H4e(s);if(!V)return W(`Project: ${l} Detected ignored path: ${r}`),!0;if(s=V,s===t)return!1;if(e7(s)&&!HSe(r,m,T))return W(`Project: ${l} Detected file add/remove of non supported extension: ${r}`),!0;if(JUe(r,m.configFile.configFileSpecs,Su(qc(l),D),I,D))return W(`Project: ${l} Detected excluded file: ${r}`),!0;if(!y||Kg(m)||m.outDir)return!1;if(iT(s)){if(m.declarationDir)return!1}else if(!ws(s,iJ))return!1;const ee=wg(s),te=ls(y)?void 0:Gme(y)?y.getProgramOrUndefined():y,oe=!te&&!ls(y)?y:void 0;if(de(ee+".ts")||de(ee+".tsx"))return W(`Project: ${l} Detected output file: ${r}`),!0;return!1;function de(ue){return te?!!te.getSourceFileByPath(ue):oe?oe.getState().fileInfos.has(ue):!!lr(y,Ne=>O(Ne)===ue)}}function Gme(t){return!!t.getState}function N4e(t,r){return t?t.isEmittedFile(r):!1}function jme(t,r,s,l){ETe(r===2?s:ku);const m={watchFile:(de,ue,Ne,Be)=>t.watchFile(de,ue,Ne,Be),watchDirectory:(de,ue,Ne,Be)=>t.watchDirectory(de,ue,(Ne&1)!==0,Be)},y=r!==0?{watchFile:te("watchFile"),watchDirectory:te("watchDirectory")}:void 0,T=r===2?{watchFile:V,watchDirectory:ee}:y||m,D=r===2?O:Tse;return{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")};function I(de){return(ue,Ne,Be,Ve,pt,Le)=>{var ht;return Fpe(ue,de==="watchFile"?Ve==null?void 0:Ve.excludeFiles:Ve==null?void 0:Ve.excludeDirectories,W(),((ht=t.getCurrentDirectory)==null?void 0:ht.call(t))||"")?D(ue,Be,Ve,pt,Le):T[de].call(void 0,ue,Ne,Be,Ve,pt,Le)}}function W(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function O(de,ue,Ne,Be,Ve){return s(`ExcludeWatcher:: Added:: ${oe(de,ue,Ne,Be,Ve,l)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${oe(de,ue,Ne,Be,Ve,l)}`)}}function V(de,ue,Ne,Be,Ve,pt){s(`FileWatcher:: Added:: ${oe(de,Ne,Be,Ve,pt,l)}`);const Le=y.watchFile(de,ue,Ne,Be,Ve,pt);return{close:()=>{s(`FileWatcher:: Close:: ${oe(de,Ne,Be,Ve,pt,l)}`),Le.close()}}}function ee(de,ue,Ne,Be,Ve,pt){const Le=`DirectoryWatcher:: Added:: ${oe(de,Ne,Be,Ve,pt,l)}`;s(Le);const ht=cf(),ke=y.watchDirectory(de,ue,Ne,Be,Ve,pt),_t=cf()-ht;return s(`Elapsed:: ${_t}ms ${Le}`),{close:()=>{const Dt=`DirectoryWatcher:: Close:: ${oe(de,Ne,Be,Ve,pt,l)}`;s(Dt);const Ft=cf();ke.close();const it=cf()-Ft;s(`Elapsed:: ${it}ms ${Dt}`)}}}function te(de){return(ue,Ne,Be,Ve,pt,Le)=>m[de].call(void 0,ue,(...ht)=>{const ke=`${de==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ht[0]} ${ht[1]!==void 0?ht[1]:""}:: ${oe(ue,Be,Ve,pt,Le,l)}`;s(ke);const _t=cf();Ne.call(void 0,...ht);const Dt=cf()-_t;s(`Elapsed:: ${Dt}ms ${ke}`)},Be,Ve,pt,Le)}function oe(de,ue,Ne,Be,Ve,pt){return`WatchInfo: ${de} ${ue} ${JSON.stringify(Ne)} ${pt?pt(Be,Ve):Ve===void 0?Be:`${Be} ${Ve}`}`}}function jW(t){const r=t==null?void 0:t.fallbackPolling;return{watchFile:r!==void 0?r:1}}function dC(t){t.watcher.close()}var w4e,Vme,mxe=G({"src/compiler/watchUtilities.ts"(){Ad(),w4e=(t=>(t[t.None=0]="None",t[t.Partial=1]="Partial",t[t.Full=2]="Full",t))(w4e||{}),Vme=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(Vme||{})}});function UQ(t,r,s="tsconfig.json"){return ok(t,l=>{const m=tf(l,s);return r(m)?m:void 0})}function YE(t,r){const s=qc(r),l=mm(t)?t:tf(s,t);return Fd(l)}function Ume(t,r,s){let l;return Ot(t,y=>{const T=bN(y,r);if(T.pop(),!l){l=T;return}const D=Math.min(l.length,T.length);for(let I=0;I{let T;try{jf("beforeIORead"),T=t(l,r().charset),jf("afterIORead"),dd("I/O Read","beforeIORead","afterIORead")}catch(D){y&&y(D.message),T=""}return T!==void 0?Ape(l,T,m,s):void 0}}function Jme(t,r,s){return(l,m,y,T)=>{try{jf("beforeIOWrite"),Lde(l,m,y,t,r,s),jf("afterIOWrite"),dd("I/O Write","beforeIOWrite","afterIOWrite")}catch(D){T&&T(D.message)}}}function HQ(t,r,s=m0){const l=new Map,m=_v(s.useCaseSensitiveFileNames);function y(O){return l.has(O)?!0:(W.directoryExists||s.directoryExists)(O)?(l.set(O,!0),!0):!1}function T(){return qc(Fd(s.getExecutingFilePath()))}const D=JE(t),I=s.realpath&&(O=>s.realpath(O)),W={getSourceFile:R4e(O=>W.readFile(O),()=>t,r),getDefaultLibLocation:T,getDefaultLibFileName:O=>tf(T(),qre(O)),writeFile:Jme((O,V,ee)=>s.writeFile(O,V,ee),O=>(W.createDirectory||s.createDirectory)(O),O=>y(O)),getCurrentDirectory:Pd(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:m,getNewLine:()=>D,fileExists:O=>s.fileExists(O),readFile:O=>s.readFile(O),trace:O=>s.write(O+D),directoryExists:O=>s.directoryExists(O),getEnvironmentVariable:O=>s.getEnvironmentVariable?s.getEnvironmentVariable(O):"",getDirectories:O=>s.getDirectories(O),realpath:I,readDirectory:(O,V,ee,te,oe)=>s.readDirectory(O,V,ee,te,oe),createDirectory:O=>s.createDirectory(O),createHash:wc(s,s.createHash)};return W}function JQ(t,r,s){const l=t.readFile,m=t.fileExists,y=t.directoryExists,T=t.createDirectory,D=t.writeFile,I=new Map,W=new Map,O=new Map,V=new Map,ee=de=>{const ue=r(de),Ne=I.get(ue);return Ne!==void 0?Ne!==!1?Ne:void 0:te(ue,de)},te=(de,ue)=>{const Ne=l.call(t,ue);return I.set(de,Ne!==void 0?Ne:!1),Ne};t.readFile=de=>{const ue=r(de),Ne=I.get(ue);return Ne!==void 0?Ne!==!1?Ne:void 0:!Pg(de,".json")&&!BQ(de)?l.call(t,de):te(ue,de)};const oe=s?(de,ue,Ne,Be)=>{const Ve=r(de),pt=typeof ue=="object"?ue.impliedNodeFormat:void 0,Le=V.get(pt),ht=Le==null?void 0:Le.get(Ve);if(ht)return ht;const ke=s(de,ue,Ne,Be);return ke&&(iT(de)||Pg(de,".json"))&&V.set(pt,(Le||new Map).set(Ve,ke)),ke}:void 0;return t.fileExists=de=>{const ue=r(de),Ne=W.get(ue);if(Ne!==void 0)return Ne;const Be=m.call(t,de);return W.set(ue,!!Be),Be},D&&(t.writeFile=(de,ue,...Ne)=>{const Be=r(de);W.delete(Be);const Ve=I.get(Be);Ve!==void 0&&Ve!==ue?(I.delete(Be),V.forEach(pt=>pt.delete(Be))):oe&&V.forEach(pt=>{const Le=pt.get(Be);Le&&Le.text!==ue&&pt.delete(Be)}),D.call(t,de,ue,...Ne)}),y&&(t.directoryExists=de=>{const ue=r(de),Ne=O.get(ue);if(Ne!==void 0)return Ne;const Be=y.call(t,de);return O.set(ue,!!Be),Be},T&&(t.createDirectory=de=>{const ue=r(de);O.delete(ue),T.call(t,de)})),{originalReadFile:l,originalFileExists:m,originalDirectoryExists:y,originalCreateDirectory:T,originalWriteFile:D,getSourceFileWithCache:oe,readFileWithCache:ee}}function M4e(t,r,s){let l;return l=Oi(l,t.getConfigFileParsingDiagnostics()),l=Oi(l,t.getOptionsDiagnostics(s)),l=Oi(l,t.getSyntacticDiagnostics(r,s)),l=Oi(l,t.getGlobalDiagnostics(s)),l=Oi(l,t.getSemanticDiagnostics(r,s)),gv(t.getCompilerOptions())&&(l=Oi(l,t.getDeclarationDiagnostics(r,s))),P8(l||Zn)}function gxe(t,r){let s="";for(const l of t)s+=$ae(l,r);return s}function $ae(t,r){const s=`${fX(t)} TS${t.code}: ${d4(t.messageText,r.getNewLine())}${r.getNewLine()}`;if(t.file){const{line:l,character:m}=Ah(t.file,t.start),y=t.file.fileName;return`${r7(y,r.getCurrentDirectory(),D=>r.getCanonicalFileName(D))}(${l+1},${m+1}): `+s}return s}function $me(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return ce.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function NR(t,r){return r+t+Exe}function L4e(t,r,s,l,m,y){const{line:T,character:D}=Ah(t,r),{line:I,character:W}=Ah(t,r+s),O=Ah(t,t.text.length).line,V=I-T>=4;let ee=(I+1+"").length;V&&(ee=Math.max(ZQ.length,ee));let te="";for(let oe=T;oe<=I;oe++){te+=y.getNewLine(),V&&T+1s.getCanonicalFileName(I)):t.fileName;let D="";return D+=l(T,"\x1B[96m"),D+=":",D+=l(`${m+1}`,"\x1B[93m"),D+=":",D+=l(`${y+1}`,"\x1B[93m"),D}function qme(t,r){let s="";for(const l of t){if(l.file){const{file:m,start:y}=l;s+=hxe(m,y,r),s+=" - "}if(s+=NR(fX(l),$me(l.category)),s+=NR(` TS${l.code}: `,"\x1B[90m"),s+=d4(l.messageText,r.getNewLine()),l.file&&l.code!==w.File_appears_to_be_binary.code&&(s+=r.getNewLine(),s+=L4e(l.file,l.start,l.length,"",$me(l.category),r)),l.relatedInformation){s+=r.getNewLine();for(const{file:m,start:y,length:T,messageText:D}of l.relatedInformation)m&&(s+=r.getNewLine(),s+=Kme+hxe(m,y,r),s+=L4e(m,y,T,ose,"\x1B[96m",r)),s+=r.getNewLine(),s+=ose+d4(D,r.getNewLine())}s+=r.getNewLine()}return s}function d4(t,r,s=0){if(As(t))return t;if(t===void 0)return"";let l="";if(s){l+=r;for(let m=0;ma4(y,t,s,l,m,r,T)}}function qQ(t){return As(t)?t:Q0(t.fileName)}function PA(t,r,s,l,m){return{nameAndMode:eZ,resolve:(y,T)=>vQ(y,t,s,l,r,m,T)}}function W3(t,r,s,l,m,y,T,D){if(t.length===0)return Zn;const I=[],W=new Map,O=D(r,s,l,y,T);for(const V of t){const ee=O.nameAndMode.getName(V),te=O.nameAndMode.getMode(V,m),oe=f$(ee,te);let de=W.get(oe);de||W.set(oe,de=O.resolve(ee,te)),I.push(de)}return I}function vxe(t,r){return I$(void 0,t,(s,l)=>s&&r(s,l))}function I$(t,r,s,l){let m;return y(t,r,void 0);function y(T,D,I){if(l){const W=l(T,I);if(W)return W}return Ot(D,(W,O)=>{if(W&&(m!=null&&m.has(W.sourceFile.path)))return;const V=s(W,I,O);return V||!W?V:((m||(m=new Set)).add(W.sourceFile.path),y(W.commandLine.projectReferences,W.references,W))})}}function Xae(t,r,s){const l=t.configFilePath?qc(t.configFilePath):r;return tf(l,`__lib_node_modules_lookup_${s}__.ts`)}function Yae(t){const r=t.split(".");let s=r[1],l=2;for(;r[l]&&r[l]!=="d";)s+=(l===2?"/":"-")+r[l],l++;return"@typescript/lib-"+s}function KQ(t){const r=Q0(t.fileName),s=KG.get(r);return{libName:r,libFileName:s}}function k6(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function yF(t){return t.pos!==void 0}function VW(t,r){var s,l,m,y,T,D;const I=ce.checkDefined(t(r.file)),{kind:W,index:O}=r;let V,ee,te,oe;switch(W){case 3:const de=k$(I,O);if(te=(m=(l=(s=I.resolvedModules)==null?void 0:s.get(de.text,yxe(I,O)))==null?void 0:l.resolvedModule)==null?void 0:m.packageId,de.pos===-1)return{file:I,packageId:te,text:de.text};V=ep(I.text,de.pos),ee=de.end;break;case 4:({pos:V,end:ee}=I.referencedFiles[O]);break;case 5:({pos:V,end:ee,resolutionMode:oe}=I.typeReferenceDirectives[O]),te=(D=(T=(y=I.resolvedTypeReferenceDirectiveNames)==null?void 0:y.get(Q0(I.typeReferenceDirectives[O].fileName),oe||I.impliedNodeFormat))==null?void 0:T.resolvedTypeReferenceDirective)==null?void 0:D.packageId;break;case 7:({pos:V,end:ee}=I.libReferenceDirectives[O]);break;default:return ce.assertNever(W)}return{file:I,pos:V,end:ee,packageId:te}}function Qae(t,r,s,l,m,y,T,D,I,W){if(!t||D!=null&&D()||!fv(t.getRootFileNames(),r))return!1;let O;if(!fv(t.getProjectReferences(),W,oe)||t.getSourceFiles().some(ee)||t.getMissingFilePaths().some(m))return!1;const V=t.getCompilerOptions();if(!qie(V,s)||t.resolvedLibReferences&&wT(t.resolvedLibReferences,(ue,Ne)=>T(Ne)))return!1;if(V.configFile&&s.configFile)return V.configFile.text===s.configFile.text;return!0;function ee(ue){return!te(ue)||y(ue.path)}function te(ue){return ue.version===l(ue.resolvedPath,ue.fileName)}function oe(ue,Ne,Be){return sie(ue,Ne)&&de(t.getResolvedProjectReferences()[Be],ue)}function de(ue,Ne){if(ue){if(ni(O,ue))return!0;const Ve=tse(Ne),pt=I(Ve);return!pt||ue.commandLine.options.configFile!==pt.options.configFile||!fv(ue.commandLine.fileNames,pt.fileNames)?!1:((O||(O=[])).push(ue),!Ot(ue.references,(Le,ht)=>!de(Le,ue.commandLine.projectReferences[ht])))}const Be=tse(Ne);return!I(Be)}}function UW(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function ew(t,r,s,l){const m=HW(t,r,s,l);return typeof m=="object"?m.impliedNodeFormat:m}function HW(t,r,s,l){switch(Jd(l)){case 3:case 99:return ws(t,[".d.mts",".mts",".mjs"])?99:ws(t,[".d.cts",".cts",".cjs"])?1:ws(t,[".d.ts",".ts",".tsx",".js",".jsx"])?m():void 0;default:return}function m(){const y=p$(r,s,l),T=[];y.failedLookupLocations=T,y.affectingLocations=T;const D=eme(t,y);return{impliedNodeFormat:(D==null?void 0:D.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:T,packageJsonScope:D}}}function XQ(t,r){return t?gA(t.getCompilerOptions(),r,hI):!1}function bxe(t,r,s,l,m,y){return{rootNames:t,options:r,host:s,oldProgram:l,configFileParsingDiagnostics:m,typeScriptVersion:y}}function p4(t,r,s,l,m){var y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt;const Le=ls(t)?bxe(t,r,s,l,m):t,{rootNames:ht,options:ke,configFileParsingDiagnostics:_t,projectReferences:Dt,typeScriptVersion:Ft}=Le;let{oldProgram:it}=Le;const Ye=Pd(()=>y_("ignoreDeprecations",w.Invalid_value_for_ignoreDeprecations));let ut,lt,zt,Wt,tt,Mn,kn;const cr=new Map;let un=zg();const on={},pn={};let Or=N3(),Xr,Ut,In,gr,Cr,ei;const Gn=typeof ke.maxNodeModuleJsDepth=="number"?ke.maxNodeModuleJsDepth:0;let Ur=0;const so=new Map,ho=new Map;(y=tu)==null||y.push(tu.Phase.Program,"createProgram",{configFilePath:ke.configFilePath,rootDir:ke.rootDir},!0),jf("beforeProgram");const di=Le.host||Hme(ke),Nc=Sxe(di);let ha=ke.noLib;const ro=Pd(()=>di.getDefaultLibFileName(ke)),Gs=di.getDefaultLibLocation?di.getDefaultLibLocation():qc(ro()),Oc=vY(),_u=di.getCurrentDirectory(),Ku=s3(ke),al=Q9(ke,Ku),Rr=new Map;let mc,Ea,Fi;const ta=di.hasInvalidatedResolutions||bg;di.resolveModuleNameLiterals?(Fi=di.resolveModuleNameLiterals.bind(di),Ea=(T=di.getModuleResolutionCache)==null?void 0:T.call(di)):di.resolveModuleNames?(Fi=(c,u,d,h,S,E)=>di.resolveModuleNames(c.map($Q),u,E==null?void 0:E.map($Q),d,h,S).map(P=>P?P.extension!==void 0?{resolvedModule:P}:{resolvedModule:{...P,extension:SP(P.resolvedFileName)}}:ase),Ea=(D=di.getModuleResolutionCache)==null?void 0:D.call(di)):(Ea=IR(_u,Al,ke),Fi=(c,u,d,h,S)=>W3(c,u,d,h,S,di,Ea,Kae));let $a;if(di.resolveTypeReferenceDirectiveReferences)$a=di.resolveTypeReferenceDirectiveReferences.bind(di);else if(di.resolveTypeReferenceDirectives)$a=(c,u,d,h,S)=>di.resolveTypeReferenceDirectives(c.map(qQ),u,d,h,S==null?void 0:S.impliedNodeFormat).map(E=>({resolvedTypeReferenceDirective:E}));else{const c=T2e(_u,Al,void 0,Ea==null?void 0:Ea.getPackageJsonInfoCache());$a=(u,d,h,S,E)=>W3(u,d,h,S,E,di,c,PA)}const jc=di.hasInvalidatedLibResolutions||bg;let Xu;if(di.resolveLibrary)Xu=di.resolveLibrary.bind(di);else{const c=IR(_u,Al,ke,Ea==null?void 0:Ea.getPackageJsonInfoCache());Xu=(u,d,h)=>S2e(u,d,h,di,c)}const Lo=new Map;let To=new Map,Aa=zg(),sl=!1;const vc=new Map;let er;const Jr=di.useCaseSensitiveFileNames()?new Map:void 0;let li,Ir,_o,xt;const Kn=!!((I=di.useSourceOfProjectReferenceRedirect)!=null&&I.call(di))&&!ke.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:gn,fileExists:qr,directoryExists:mt}=Zae({compilerHost:di,getSymlinkCache:i,useSourceOfProjectReferenceRedirect:Kn,toPath:Un,getResolvedProjectReferences:qd,getSourceOfProjectReferenceRedirect:K_,forEachResolvedProjectReference:bu}),_r=di.readFile.bind(di);(W=tu)==null||W.push(tu.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!it});const Cn=XQ(it,ke);(O=tu)==null||O.pop();let oi;if((V=tu)==null||V.push(tu.Phase.Program,"tryReuseStructureFromOldProgram",{}),oi=Qa(),(ee=tu)==null||ee.pop(),oi!==2){if(ut=[],lt=[],Dt&&(li||(li=Dt.map(zp)),ht.length&&(li==null||li.forEach((c,u)=>{if(!c)return;const d=Kg(c.commandLine.options);if(Kn){if(d||Zp(c.commandLine.options)===0)for(const h of c.commandLine.fileNames)av(h,{kind:1,index:u})}else if(d)av(SA(d,".d.ts"),{kind:2,index:u});else if(Zp(c.commandLine.options)===0){const h=Pd(()=>GQ(c.commandLine,!di.useCaseSensitiveFileNames()));for(const S of c.commandLine.fileNames)!iT(S)&&!Pg(S,".json")&&av(O3(S,c.commandLine,!di.useCaseSensitiveFileNames(),h),{kind:2,index:u})}}))),(te=tu)==null||te.push(tu.Phase.Program,"processRootFiles",{count:ht.length}),Ot(ht,(c,u)=>hi(c,!1,!1,{kind:0,index:u})),(oe=tu)==null||oe.pop(),Ut??(Ut=ht.length?qpe(ke,di):Zn),In=N3(),Ut.length){(de=tu)==null||de.push(tu.Phase.Program,"processTypeReferences",{count:Ut.length});const c=ke.configFilePath?qc(ke.configFilePath):_u,u=tf(c,sse),d=zo(Ut,u);for(let h=0;h{hi(Do(u),!0,!1,{kind:6,index:d})})}er=oc(p2(vc.entries(),([c,u])=>u===void 0?c:void 0)),zt=nh(ut,xe).concat(lt),ut=void 0,lt=void 0}if(ce.assert(!!er),it&&di.onReleaseOldSourceFile){const c=it.getSourceFiles();for(const u of c){const d=Kd(u.resolvedPath);(Cn||!d||d.impliedNodeFormat!==u.impliedNodeFormat||u.resolvedPath===u.path&&d.resolvedPath!==u.path)&&di.onReleaseOldSourceFile(u,it.getCompilerOptions(),!!Kd(u.path))}di.getParsedCommandLine||it.forEachResolvedProjectReference(u=>{Fy(u.sourceFile.path)||di.onReleaseOldSourceFile(u.sourceFile,it.getCompilerOptions(),!1)})}it&&di.onReleaseParsedCommandLine&&I$(it.getProjectReferences(),it.getResolvedProjectReferences(),(c,u,d)=>{const h=(u==null?void 0:u.commandLine.projectReferences[d])||it.getProjectReferences()[d],S=tse(h);Ir!=null&&Ir.has(Un(S))||di.onReleaseParsedCommandLine(S,c,it.getCompilerOptions())}),it=void 0,Cr=void 0;const Qr={getRootFileNames:()=>ht,getSourceFile:c_,getSourceFileByPath:Kd,getSourceFiles:()=>zt,getMissingFilePaths:()=>er,getModuleResolutionCache:()=>Ea,getFilesByNameMap:()=>vc,getCompilerOptions:()=>ke,getSyntacticDiagnostics:Oh,getOptionsDiagnostics:hy,getGlobalDiagnostics:vn,getSemanticDiagnostics:jg,getCachedSemanticDiagnostics:zv,getSuggestionDiagnostics:nm,getDeclarationDiagnostics:Tv,getBindAndCheckDiagnostics:m_,getProgramDiagnostics:Yu,getTypeChecker:x_,getClassifiableNames:mi,getCommonSourceDirectory:rr,emit:q_,getCurrentDirectory:()=>_u,getNodeCount:()=>x_().getNodeCount(),getIdentifierCount:()=>x_().getIdentifierCount(),getSymbolCount:()=>x_().getSymbolCount(),getTypeCount:()=>x_().getTypeCount(),getInstantiationCount:()=>x_().getInstantiationCount(),getRelationCacheSizes:()=>x_().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Xr,getResolvedTypeReferenceDirectives:()=>Or,getAutomaticTypeDirectiveNames:()=>Ut,getAutomaticTypeDirectiveResolutions:()=>In,isSourceFileFromExternalLibrary:Ha,isSourceFileDefaultLibrary:mu,getSourceFileFromReference:yu,getLibFileFromReference:gu,sourceFileToPackageName:To,redirectTargetsMap:Aa,usesUriStyleNodeCoreModules:sl,resolvedLibReferences:gr,getCurrentPackagesMap:()=>ei,typesPackageExists:es,packageBundlesTypes:Ui,isEmittedFile:e,getConfigFileParsingDiagnostics:Qn,getProjectReferences:z_,getResolvedProjectReferences:qd,getProjectReferenceRedirect:k1,getResolvedProjectReferenceToRedirect:ya,getResolvedProjectReferenceByPath:Fy,forEachResolvedProjectReference:bu,isSourceOfProjectReferenceRedirect:ig,emitBuildInfo:ou,fileExists:qr,readFile:_r,directoryExists:mt,getSymlinkCache:i,realpath:(Ve=di.realpath)==null?void 0:Ve.bind(di),useCaseSensitiveFileNames:()=>di.useCaseSensitiveFileNames(),getCanonicalFileName:Al,getFileIncludeReasons:()=>un,structureIsReused:oi,writeFile:vs};return gn(),Xr==null||Xr.forEach(c=>{switch(c.kind){case 1:return Oc.add(ub(c.file&&Kd(c.file),c.fileProcessingReason,c.diagnostic,c.args||Zn));case 0:const{file:u,pos:d,end:h}=VW(Kd,c.reason);return Oc.add(Pp(u,ce.checkDefined(d),ce.checkDefined(h)-d,c.diagnostic,...c.args||Zn));case 2:return c.diagnostics.forEach(S=>Oc.add(S));default:ce.assertNever(c)}}),gh(),jf("afterProgram"),dd("Program","beforeProgram","afterProgram"),(pt=tu)==null||pt.pop(),Qr;function co(){return ei||(ei=new Map,zt.forEach(c=>{c.resolvedModules&&c.resolvedModules.forEach(({resolvedModule:u})=>{u!=null&&u.packageId&&ei.set(u.packageId.name,u.extension===".d.ts"||!!ei.get(u.packageId.name))})}),ei)}function es(c){return co().has(tme(c))}function Ui(c){return!!co().get(c)}function xu(c){var u;(u=c.resolutionDiagnostics)!=null&&u.length&&(Xr??(Xr=[])).push({kind:2,diagnostics:c.resolutionDiagnostics})}function We(c,u,d,h){if(di.resolveModuleNameLiterals||!di.resolveModuleNames)return xu(d);if(!Ea||tb(u))return;const S=Su(c.originalFileName,_u),E=qc(S),P=$e(c),k=Ea.getFromNonRelativeNameCache(u,h,E,P);k&&xu(k)}function Re(c,u,d){var h,S;if(!c.length)return Zn;const E=Su(u.originalFileName,_u),P=$e(u);(h=tu)==null||h.push(tu.Phase.Program,"resolveModuleNamesWorker",{containingFileName:E}),jf("beforeResolveModule");const k=Fi(c,E,P,ke,u,d);return jf("afterResolveModule"),dd("ResolveModule","beforeResolveModule","afterResolveModule"),(S=tu)==null||S.pop(),k}function wt(c,u,d){var h,S;if(!c.length)return[];const E=As(u)?void 0:u,P=As(u)?u:Su(u.originalFileName,_u),k=E&&$e(E);(h=tu)==null||h.push(tu.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:P}),jf("beforeResolveTypeReference");const F=$a(c,P,k,ke,E,d);return jf("afterResolveTypeReference"),dd("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(S=tu)==null||S.pop(),F}function $e(c){const u=ya(c.originalFileName);if(u||!iT(c.originalFileName))return u;const d=Zt(c.path);if(d)return d;if(!di.realpath||!ke.preserveSymlinks||!Ub(c.originalFileName,ix))return;const h=Un(di.realpath(c.originalFileName));return h===c.path?void 0:Zt(h)}function Zt(c){const u=K_(c);if(As(u))return ya(u);if(u)return bu(d=>{const h=Kg(d.commandLine.options);if(h)return Un(h)===c?d:void 0})}function xe(c,u){return pf(an(c),an(u))}function an(c){if(GC(Gs,c.fileName,!1)){const u=Iy(c.fileName);if(u==="lib.d.ts"||u==="lib.es6.d.ts")return 0;const d=DM(Sz(u,"lib."),".d.ts"),h=aQ.indexOf(d);if(h!==-1)return h+1}return aQ.length+2}function Un(c){return _h(c,_u,Al)}function rr(){if(tt===void 0){const c=gi(zt,u=>L7(u,Qr));tt=gF(ke,()=>Qo(c,u=>u.isDeclarationFile?void 0:u.fileName),_u,Al,u=>N_(c,u))}return tt}function mi(){var c;if(!kn){x_(),kn=new Set;for(const u of zt)(c=u.classifiableNames)==null||c.forEach(d=>kn.add(d))}return kn}function Ji(c,u){var d;if(oi===0&&!u.ambientModuleNames.length)return Re(c,u,void 0);const h=it&&it.getSourceFile(u.fileName);if(h!==u&&u.resolvedModules){const X=[];for(const ie of c){const ae=u.resolvedModules.get(ie.text,kA(u,ie));X.push(ae)}return X}let S,E,P;const k=ase;for(let X=0;X{const h=(u?u.commandLine.projectReferences:Dt)[d],S=zp(h);return c?!S||S.sourceFile!==c.sourceFile||!fv(c.commandLine.fileNames,S.commandLine.fileNames):S!==void 0},(c,u)=>{const d=u?Fy(u.sourceFile.path).commandLine.projectReferences:Dt;return!fv(c,d,sie)})}function Qa(){var c;if(!it)return 0;const u=it.getCompilerOptions();if(g9(u,ke))return 0;const d=it.getRootFileNames();if(!fv(d,ht)||!Ca())return 0;Dt&&(li=Dt.map(zp));const h=[],S=[];if(oi=2,it.getMissingFilePaths().some(J=>di.fileExists(J)))return 0;const E=it.getSourceFiles();let P;(J=>{J[J.Exists=0]="Exists",J[J.Modified=1]="Modified"})(P||(P={}));const k=new Map;for(const J of E){const X=Sv(J.fileName,Ea,di,ke);let ie=di.getSourceFileByPath?di.getSourceFileByPath(J.fileName,J.resolvedPath,X,void 0,Cn):di.getSourceFile(J.fileName,X,void 0,Cn);if(!ie)return 0;ie.packageJsonLocations=(c=X.packageJsonLocations)!=null&&c.length?X.packageJsonLocations:void 0,ie.packageJsonScope=X.packageJsonScope,ce.assert(!ie.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ae;if(J.redirectInfo){if(ie!==J.redirectInfo.unredirected)return 0;ae=!1,ie=J}else if(it.redirectTargetsMap.has(J.path)){if(ie!==J)return 0;ae=!1}else ae=ie!==J;ie.path=J.path,ie.originalFileName=J.originalFileName,ie.resolvedPath=J.resolvedPath,ie.fileName=J.fileName;const ve=it.sourceFileToPackageName.get(J.path);if(ve!==void 0){const we=k.get(ve),Fe=ae?1:0;if(we!==void 0&&Fe===1||we===1)return 0;k.set(ve,Fe)}ae?(J.impliedNodeFormat!==ie.impliedNodeFormat?oi=1:fv(J.libReferenceDirectives,ie.libReferenceDirectives,pa)?J.hasNoDefaultLib!==ie.hasNoDefaultLib?oi=1:fv(J.referencedFiles,ie.referencedFiles,pa)?(bc(ie),fv(J.imports,ie.imports,Zc)&&fv(J.moduleAugmentations,ie.moduleAugmentations,Zc)?(J.flags&12582912)!==(ie.flags&12582912)?oi=1:fv(J.typeReferenceDirectives,ie.typeReferenceDirectives,pa)||(oi=1):oi=1):oi=1:oi=1,S.push({oldFile:J,newFile:ie})):ta(J.path)&&(oi=1,S.push({oldFile:J,newFile:ie})),h.push(ie)}if(oi!==2)return oi;const F=S.map(J=>J.oldFile);for(const J of E)if(!ni(F,J))for(const X of J.ambientModuleNames)cr.set(X,J.fileName);for(const{oldFile:J,newFile:X}of S){const ie=rse(X),ae=Ji(ie,X);fR(ie,X,ae,J.resolvedModules,$z,P$)?(oi=1,X.resolvedModules=aae(X,ie,ae,P$)):X.resolvedModules=J.resolvedModules;const we=X.typeReferenceDirectives,Fe=zo(we,X);fR(we,X,Fe,J.resolvedTypeReferenceDirectiveNames,KTe,eZ)?(oi=1,X.resolvedTypeReferenceDirectiveNames=aae(X,we,Fe,eZ)):X.resolvedTypeReferenceDirectiveNames=J.resolvedTypeReferenceDirectiveNames}if(oi!==2)return oi;if(Jb(u,ke)||it.resolvedLibReferences&&wT(it.resolvedLibReferences,(J,X)=>Za(X).actual!==J.actual))return 1;if(di.hasChangedAutomaticTypeDirectiveNames){if(di.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ut=qpe(ke,di),!fv(it.getAutomaticTypeDirectiveNames(),Ut))return 1;er=it.getMissingFilePaths(),ce.assert(h.length===it.getSourceFiles().length);for(const J of h)vc.set(J.path,J);return it.getFilesByNameMap().forEach((J,X)=>{if(!J){vc.set(X,J);return}if(J.path===X){it.isSourceFileFromExternalLibrary(J)&&ho.set(J.path,!0);return}vc.set(X,vc.get(J.path))}),zt=h,un=it.getFileIncludeReasons(),Xr=it.getFileProcessingDiagnostics(),Or=it.getResolvedTypeReferenceDirectives(),Ut=it.getAutomaticTypeDirectiveNames(),In=it.getAutomaticTypeDirectiveResolutions(),To=it.sourceFileToPackageName,Aa=it.redirectTargetsMap,sl=it.usesUriStyleNodeCoreModules,gr=it.resolvedLibReferences,ei=it.getCurrentPackagesMap(),2}function Ks(c){return{getPrependNodes:fp,getCanonicalFileName:Al,getCommonSourceDirectory:Qr.getCommonSourceDirectory,getCompilerOptions:Qr.getCompilerOptions,getCurrentDirectory:()=>_u,getSourceFile:Qr.getSourceFile,getSourceFileByPath:Qr.getSourceFileByPath,getSourceFiles:Qr.getSourceFiles,getLibFileFromReference:Qr.getLibFileFromReference,isSourceFileFromExternalLibrary:Ha,getResolvedProjectReferenceToRedirect:ya,getProjectReferenceRedirect:k1,isSourceOfProjectReferenceRedirect:ig,getSymlinkCache:i,writeFile:c||vs,isEmitBlocked:Ma,readFile:u=>di.readFile(u),fileExists:u=>{const d=Un(u);return Kd(d)?!0:ni(er,d)?!1:di.fileExists(u)},useCaseSensitiveFileNames:()=>di.useCaseSensitiveFileNames(),getBuildInfo:u=>{var d;return(d=Qr.getBuildInfo)==null?void 0:d.call(Qr,u)},getSourceFileFromReference:(u,d)=>Qr.getSourceFileFromReference(u,d),redirectTargetsMap:Aa,getFileIncludeReasons:Qr.getFileIncludeReasons,createHash:wc(di,di.createHash)}}function vs(c,u,d,h,S,E){di.writeFile(c,u,d,h,S,E)}function ou(c){var u,d;ce.assert(!Kg(ke)),(u=tu)==null||u.push(tu.Phase.Emit,"emitBuildInfo",{},!0),jf("beforeEmit");const h=zW(pxe,Ks(c),void 0,uxe,!1,!0);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),(d=tu)==null||d.pop(),h}function qd(){return li}function z_(){return Dt}function fp(){return YQ(Dt,(c,u)=>{var d;return(d=li[u])==null?void 0:d.commandLine},c=>{const u=Un(c),d=Kd(u);return d?d.text:vc.has(u)?void 0:di.readFile(u)},di)}function Ha(c){return!!ho.get(c.path)}function mu(c){if(!c.isDeclarationFile)return!1;if(c.hasNoDefaultLib)return!0;if(!ke.noLib)return!1;const u=di.useCaseSensitiveFileNames()?ZA:pN;return ke.lib?gt(ke.lib,d=>u(c.fileName,gr.get(d).actual)):u(c.fileName,ro())}function x_(){return Mn||(Mn=B2e(Qr))}function q_(c,u,d,h,S,E){var P,k;(P=tu)==null||P.push(tu.Phase.Emit,"emit",{path:c==null?void 0:c.path},!0);const F=uS(()=>U0(Qr,c,u,d,h,S,E));return(k=tu)==null||k.pop(),F}function Ma(c){return Rr.has(Un(c))}function U0(c,u,d,h,S,E,P){if(!P){const $=ese(c,u,d,h);if($)return $}const k=x_().getEmitResolver(Kg(ke)?void 0:u,h);jf("beforeEmit");const F=zW(k,Ks(d),u,x4e(ke,E,S),S,!1,P);return jf("afterEmit"),dd("Emit","beforeEmit","afterEmit"),F}function c_(c){return Kd(Un(c))}function Kd(c){return vc.get(c)||void 0}function iy(c,u,d){return P8(c?u(c,d):ea(Qr.getSourceFiles(),h=>(d&&d.throwIfCancellationRequested(),u(h,d))))}function Oh(c,u){return iy(c,Kh,u)}function jg(c,u){return iy(c,H0,u)}function zv(c){var u;return c?(u=on.perFile)==null?void 0:u.get(c.path):on.allDiagnostics}function m_(c,u){return fx(c,u)}function Yu(c){var u;if(c3(c,ke,Qr))return Zn;const d=Oc.getDiagnostics(c.fileName);return(u=c.commentDirectives)!=null&&u.length?lm(c,c.commentDirectives,d).diagnostics:d}function Tv(c,u){const d=Qr.getCompilerOptions();return!c||Kg(d)?fS(c,u):iy(c,oh,u)}function Kh(c){return v1(c)?(c.additionalSyntacticDiagnostics||(c.additionalSyntacticDiagnostics=gy(c)),Hi(c.additionalSyntacticDiagnostics,c.parseDiagnostics)):c.parseDiagnostics}function uS(c){try{return c()}catch(u){throw u instanceof Pz&&(Mn=void 0),u}}function H0(c,u){return Hi(Txe(fx(c,u),ke),Yu(c))}function fx(c,u){return vE(c,u,on,rd)}function rd(c,u){return uS(()=>{if(c3(c,ke,Qr))return Zn;const d=x_();ce.assert(!!c.bindDiagnostics);const S=(c.scriptKind===1||c.scriptKind===2)&&tW(c,ke),E=y2(c,ke.checkJs),k=!(!!c.checkJsDirective&&c.checkJsDirective.enabled===!1)&&(c.scriptKind===3||c.scriptKind===4||c.scriptKind===5||E||S||c.scriptKind===7);let F=k?c.bindDiagnostics:Zn,$=k?d.getDiagnostics(c,u):Zn;return E&&(F=gi(F,J=>cse.has(J.code)),$=gi($,J=>cse.has(J.code))),Mg(c,k&&!E,F,$,S?c.jsDocDiagnostics:void 0)})}function Mg(c,u,...d){var h;const S=Gf(d);if(!u||!((h=c.commentDirectives)!=null&&h.length))return S;const{diagnostics:E,directives:P}=lm(c,c.commentDirectives,S);for(const k of P.getUnusedExpectations())E.push(oY(c,k.range,w.Unused_ts_expect_error_directive));return E}function lm(c,u,d){const h=Lv(c,u);return{diagnostics:d.filter(E=>po(E,h)===-1),directives:h}}function nm(c,u){return uS(()=>x_().getSuggestionDiagnostics(c,u))}function po(c,u){const{file:d,start:h}=c;if(!d)return-1;const S=q1(d);let E=Sb(S,h).line-1;for(;E>=0;){if(u.markUsed(E))return E;const P=d.text.slice(S[E],S[E+1]).trim();if(P!==""&&!/^(\s*)\/\/(.*)$/.test(P))return-1;E--}return-1}function gy(c){return uS(()=>{const u=[];return d(c,c),k3(c,d,h),u;function d(k,F){switch(F.kind){case 169:case 172:case 174:if(F.questionToken===k)return u.push(P(k,w.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(F.type===k)return u.push(P(k,w.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(k.kind){case 273:if(k.isTypeOnly)return u.push(P(F,w._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(k.isTypeOnly)return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(k.isTypeOnly)return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,oS(k)?"import...type":"export...type")),"skip";break;case 271:return u.push(P(k,w.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(k.isExportEquals)return u.push(P(k,w.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(k.token===119)return u.push(P(k,w.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const J=Nd(120);return ce.assertIsDefined(J),u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,J)),"skip";case 267:const X=k.flags&32?Nd(145):Nd(144);return ce.assertIsDefined(X),u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,X)),"skip";case 265:return u.push(P(k,w.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return k.body?void 0:(u.push(P(k,w.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const ie=ce.checkDefined(Nd(94));return u.push(P(k,w._0_declarations_can_only_be_used_in_TypeScript_files,ie)),"skip";case 235:return u.push(P(k,w.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return u.push(P(k.type,w.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return u.push(P(k.type,w.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:ce.fail()}}function h(k,F){if(BEe(F)){const $=lr(F.modifiers,Qf);$&&u.push(P($,w.Decorators_are_not_valid_here))}else if(I3(F)&&F.modifiers){const $=Ho(F.modifiers,Qf);if($>=0){if(Pu(F)&&!ke.experimentalDecorators)u.push(P(F.modifiers[$],w.Decorators_are_not_valid_here));else if(Kc(F)){const J=Ho(F.modifiers,fW);if(J>=0){const X=Ho(F.modifiers,xn);if($>J&&X>=0&&$=0&&$=0&&u.push(ml(P(F.modifiers[ie],w.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),P(F.modifiers[$],w.Decorator_used_before_export_here)))}}}}}switch(F.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(k===F.typeParameters)return u.push(E(k,w.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(k===F.modifiers)return S(F.modifiers,F.kind===243),"skip";break;case 172:if(k===F.modifiers){for(const $ of k)bd($)&&$.kind!==126&&$.kind!==129&&u.push(P($,w.The_0_modifier_can_only_be_used_in_TypeScript_files,Nd($.kind)));return"skip"}break;case 169:if(k===F.modifiers&>(k,bd))return u.push(E(k,w.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(k===F.typeArguments)return u.push(E(k,w.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function S(k,F){for(const $ of k)switch($.kind){case 87:if(F)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:u.push(P($,w.The_0_modifier_can_only_be_used_in_TypeScript_files,Nd($.kind)));break;case 126:case 95:case 90:case 129:}}function E(k,F,...$){const J=k.pos;return Pp(c,J,k.end-J,F,...$)}function P(k,F,...$){return M0(c,k,F,...$)}})}function fS(c,u){return vE(c,u,pn,GT)}function GT(c,u){return uS(()=>{const d=x_().getEmitResolver(c,u);return eJe(Ks(ku),d,c)||Zn})}function vE(c,u,d,h){var S;const E=c?(S=d.perFile)==null?void 0:S.get(c.path):d.allDiagnostics;if(E)return E;const P=h(c,u);return c?(d.perFile||(d.perFile=new Map)).set(c.path,P):d.allDiagnostics=P,P}function oh(c,u){return c.isDeclarationFile?[]:fS(c,u)}function hy(){return P8(Hi(Oc.getGlobalDiagnostics(),_e()))}function _e(){if(!ke.configFile)return Zn;let c=Oc.getDiagnostics(ke.configFile.fileName);return bu(u=>{c=Hi(c,Oc.getDiagnostics(u.sourceFile.fileName))}),c}function vn(){return ht.length?P8(x_().getGlobalDiagnostics().slice()):Zn}function Qn(){return _t||Zn}function hi(c,u,d,h){Lg(Fd(c),u,d,void 0,h)}function pa(c,u){return c.fileName===u.fileName}function Zc(c,u){return c.kind===80?u.kind===80&&c.escapedText===u.escapedText:u.kind===11&&c.text===u.text}function ka(c,u){const d=be.createStringLiteral(c),h=be.createImportDeclaration(void 0,void 0,d,void 0);return _s(h,2),kl(d,h),kl(h,u),d.flags&=-17,h.flags&=-17,d}function bc(c){if(c.imports)return;const u=v1(c),d=Wv(c);let h,S,E;if((F0(ke)||d)&&!c.isDeclarationFile){ke.importHelpers&&(h=[ka(_6,c)]);const J=HH(UH(ke,c),ke);J&&(h||(h=[])).push(ka(J,c))}for(const J of c.statements)k(J,!1);const P=u&&GH(ke);(c.flags&4194304||P)&&F(c),c.imports=h||Zn,c.moduleAugmentations=S||Zn,c.ambientModuleNames=E||Zn;return;function k(J,X){if(z8(J)){const ie=pY(J);ie&&Wp(ie)&&ie.text&&(!X||!tb(ie.text))&&(Q2(J,!1),h=ur(h,ie),!sl&&Ur===0&&!c.isDeclarationFile&&(sl=xf(ie.text,"node:")))}else if(xp(J)&&Ov(J)&&(X||il(J,2)||c.isDeclarationFile)){J.name.parent=J;const ie=aC(J.name);if(d||X&&!tb(ie))(S||(S=[])).push(J.name);else if(!X){c.isDeclarationFile&&(E||(E=[])).push(ie);const ae=J.body;if(ae)for(const ve of ae.statements)k(ve,!0)}}}function F(J){const X=/import|require/g;for(;X.exec(J.text)!==null;){const ie=$(J,X.lastIndex);P&&eT(ie,!0)||WE(ie)&&ie.arguments.length>=1&&sp(ie.arguments[0])?(Q2(ie,!1),h=ur(h,ie.arguments[0])):BE(ie)&&(Q2(ie,!1),h=ur(h,ie.argument.literal))}}function $(J,X){let ie=J;const ae=ve=>{if(ve.pos<=X&&(XPg(S,P))){d&&(eD(S)?d(w.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,c):d(w.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,c,"'"+Gf(Ku).join("', '")+"'"));return}const E=u(c);if(d)if(E)k6(h)&&S===di.getCanonicalFileName(Kd(h.file).fileName)&&d(w.A_file_cannot_have_a_reference_to_itself);else{const P=k1(c);P?d(w.Output_file_0_has_not_been_built_from_source_file_1,P,c):d(w.File_0_not_found,c)}return E}else{const S=ke.allowNonTsExtensions&&u(c);if(S)return S;if(d&&ke.allowNonTsExtensions){d(w.File_0_not_found,c);return}const E=Ot(Ku[0],P=>u(c+P));return d&&!E&&d(w.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,c,"'"+Gf(Ku).join("', '")+"'"),E}}function Lg(c,u,d,h,S){Xm(c,E=>Eg(E,u,d,S,h),(E,...P)=>E0(void 0,S,E,P),S)}function av(c,u){return Lg(c,!1,!1,void 0,u)}function Fh(c,u,d){!k6(d)&>(un.get(u.path),k6)?E0(u,d,w.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[u.fileName,c]):E0(u,d,w.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[c,u.fileName])}function J0(c,u,d,h,S,E,P){var k;const F=DP.createRedirectedSourceFile({redirectTarget:c,unredirected:u});return F.fileName=d,F.path=h,F.resolvedPath=S,F.originalFileName=E,F.packageJsonLocations=(k=P.packageJsonLocations)!=null&&k.length?P.packageJsonLocations:void 0,F.packageJsonScope=P.packageJsonScope,ho.set(h,Ur>0),F}function Eg(c,u,d,h,S){var E,P;(E=tu)==null||E.push(tu.Phase.Program,"findSourceFile",{fileName:c,isDefaultLib:u||void 0,fileIncludeKind:hX[h.kind]});const k=jT(c,u,d,h,S);return(P=tu)==null||P.pop(),k}function Sv(c,u,d,h){const S=HW(Su(c,_u),u==null?void 0:u.getPackageJsonInfoCache(),d,h),E=iu(h),P=q9(h);return typeof S=="object"?{...S,languageVersion:E,setExternalModuleIndicator:P}:{languageVersion:E,impliedNodeFormat:S,setExternalModuleIndicator:P}}function jT(c,u,d,h,S){var E;const P=Un(c);if(Kn){let X=K_(P);if(!X&&di.realpath&&ke.preserveSymlinks&&iT(c)&&Ub(c,ix)){const ie=Un(di.realpath(c));ie!==P&&(X=K_(ie))}if(X){const ie=As(X)?Eg(X,u,d,h,S):void 0;return ie&&S0(ie,P,void 0),ie}}const k=c;if(vc.has(P)){const X=vc.get(P);if(Ev(X||void 0,h),X&&ke.forceConsistentCasingInFileNames!==!1){const ie=X.fileName;Un(ie)!==Un(c)&&(c=k1(c)||c);const ve=U_e(ie,_u),we=U_e(c,_u);ve!==we&&Fh(c,X,h)}return X&&ho.get(X.path)&&Ur===0?(ho.set(X.path,!1),ke.noResolve||(bt(X,u),ir(X)),ke.noLib||Qc(X),so.set(X.path,!1),du(X)):X&&so.get(X.path)&&UrE0(void 0,h,w.Cannot_read_file_0_Colon_1,[c,X]),Cn);if(S){const X=pP(S),ie=Lo.get(X);if(ie){const ae=J0(ie,J,c,P,Un(c),k,$);return Aa.add(ie.path,c),S0(ae,P,F),Ev(ae,h),To.set(P,YU(S)),lt.push(ae),ae}else J&&(Lo.set(X,J),To.set(P,YU(S)))}if(S0(J,P,F),J){if(ho.set(P,Ur>0),J.fileName=c,J.path=P,J.resolvedPath=Un(c),J.originalFileName=k,J.packageJsonLocations=(E=$.packageJsonLocations)!=null&&E.length?$.packageJsonLocations:void 0,J.packageJsonScope=$.packageJsonScope,Ev(J,h),di.useCaseSensitiveFileNames()){const X=Q0(P),ie=Jr.get(X);ie?Fh(c,ie,h):Jr.set(X,J)}ha=ha||J.hasNoDefaultLib&&!d,ke.noResolve||(bt(J,u),ir(J)),ke.noLib||Qc(J),du(J),u?ut.push(J):lt.push(J)}return J}function Ev(c,u){c&&un.add(c.path,u)}function S0(c,u,d){d?(vc.set(d,c),vc.set(u,c||!1)):vc.set(u,c)}function k1(c){const u=tn(c);return u&&fi(u,c)}function tn(c){if(!(!li||!li.length||iT(c)||Pg(c,".json")))return ya(c)}function fi(c,u){const d=Kg(c.commandLine.options);return d?SA(d,".d.ts"):O3(u,c.commandLine,!di.useCaseSensitiveFileNames())}function ya(c){_o===void 0&&(_o=new Map,bu(d=>{Un(ke.configFilePath)!==d.sourceFile.path&&d.commandLine.fileNames.forEach(h=>_o.set(Un(h),d.sourceFile.path))}));const u=_o.get(Un(c));return u&&Fy(u)}function bu(c){return vxe(li,c)}function K_(c){if(iT(c))return xt===void 0&&(xt=new Map,bu(u=>{const d=Kg(u.commandLine.options);if(d){const h=SA(d,".d.ts");xt.set(Un(h),!0)}else{const h=Pd(()=>GQ(u.commandLine,!di.useCaseSensitiveFileNames()));Ot(u.commandLine.fileNames,S=>{if(!iT(S)&&!Pg(S,".json")){const E=O3(S,u.commandLine,!di.useCaseSensitiveFileNames(),h);xt.set(Un(E),S)}})}})),xt.get(c)}function ig(c){return Kn&&!!ya(c)}function Fy(c){if(Ir)return Ir.get(c)||void 0}function bt(c,u){Ot(c.referencedFiles,(d,h)=>{Lg(YE(d.fileName,c.fileName),u,!1,void 0,{kind:4,file:c.path,index:h})})}function ir(c){const u=c.typeReferenceDirectives;if(!u.length){c.resolvedTypeReferenceDirectiveNames=void 0;return}const d=zo(u,c);for(let h=0;h{const{libName:h,libFileName:S}=KQ(u);if(S)hi(Do(S),!0,!0,{kind:7,file:c.path,index:d});else{const E=DM(Sz(h,"lib."),".d.ts"),P=fh(E,aQ,Of),k=P?w.Cannot_find_lib_definition_for_0_Did_you_mean_1:w.Cannot_find_lib_definition_for_0,F=P?[h,P]:[h];(Xr||(Xr=[])).push({kind:0,reason:{kind:7,file:c.path,index:d},diagnostic:k,args:F})}})}function Al(c){return di.getCanonicalFileName(c)}function du(c){var u;if(bc(c),c.imports.length||c.moduleAugmentations.length){const d=rse(c),h=Ji(d,c);ce.assert(h.length===d.length);const S=(Kn?(u=$e(c))==null?void 0:u.commandLine.options:void 0)||ke;for(let E=0;EGn,ve=ie&&!nse(S,P,c)&&!S.noResolve&&EWv(P)&&!P.isDeclarationFile);if(ke.isolatedModules||ke.verbatimModuleSyntax)ke.module===0&&u<2&&ke.isolatedModules&&$l(w.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ke.preserveConstEnums===!1&&$l(w.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ke.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(d&&u<2&&ke.module===0){const P=UM(d,typeof d.externalModuleIndicator=="boolean"?d:d.externalModuleIndicator);Oc.add(Pp(d,P.start,P.length,w.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(c&&!ke.emitDeclarationOnly){if(ke.module&&!(ke.module===2||ke.module===4))$l(w.Only_amd_and_system_modules_are_supported_alongside_0,ke.out?"out":"outFile","module");else if(ke.module===void 0&&d){const P=UM(d,typeof d.externalModuleIndicator=="boolean"?d:d.externalModuleIndicator);Oc.add(Pp(d,P.start,P.length,w.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ke.out?"out":"outFile"))}}if(sI(ke)&&(Jd(ke)===1?$l(w.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):BH(ke)||$l(w.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ke.outDir||ke.rootDir||ke.sourceRoot||ke.mapRoot){const P=rr();ke.outDir&&P===""&&zt.some(k=>vN(k.fileName)>1)&&$l(w.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ke.useDefineForClassFields&&u===0&&$l(w.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ke.checkJs&&!TP(ke)&&Oc.add(W_(w.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ke.emitDeclarationOnly&&(gv(ke)||$l(w.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ke.noEmit&&$l(w.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ke.emitDecoratorMetadata&&!ke.experimentalDecorators&&$l(w.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ke.jsxFactory?(ke.reactNamespace&&$l(w.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",n$.get(""+ke.jsx)),s_(ke.jsxFactory,u)||y_("jsxFactory",w.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ke.jsxFactory)):ke.reactNamespace&&!rE(ke.reactNamespace,u)&&y_("reactNamespace",w.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ke.reactNamespace),ke.jsxFragmentFactory&&(ke.jsxFactory||$l(w.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",n$.get(""+ke.jsx)),s_(ke.jsxFragmentFactory,u)||y_("jsxFragmentFactory",w.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ke.jsxFragmentFactory)),ke.reactNamespace&&(ke.jsx===4||ke.jsx===5)&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",n$.get(""+ke.jsx)),ke.jsxImportSource&&ke.jsx===2&&$l(w.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",n$.get(""+ke.jsx)),ke.preserveValueImports&&Zp(ke)<5&&$l(w.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const h=Zp(ke);ke.verbatimModuleSyntax&&((h===2||h===3||h===4)&&$l(w.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ke.preserveValueImports&&_x("preserveValueImports","verbatimModuleSyntax"),ke.importsNotUsedAsValues&&_x("importsNotUsedAsValues","verbatimModuleSyntax")),ke.allowImportingTsExtensions&&!(ke.noEmit||ke.emitDeclarationOnly)&&y_("allowImportingTsExtensions",w.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const S=Jd(ke);if(ke.resolvePackageJsonExports&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ke.resolvePackageJsonImports&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ke.customConditions&&!UN(S)&&$l(w.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),S===100&&!WH(h)&&y_("moduleResolution",w.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),Rz[h]&&100<=h&&h<=199&&!(3<=S&&S<=99)){const P=Rz[h];y_("moduleResolution",w.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,P,P)}else if(n9[S]&&3<=S&&S<=99&&!(100<=h&&h<=199)){const P=n9[S];y_("module",w.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,P,P)}if(!ke.noEmit&&!ke.suppressOutputPathCheck){const P=Ks(),k=new Set;x$(P,F=>{ke.emitDeclarationOnly||E(F.jsFilePath,k),E(F.declarationFilePath,k)})}function E(P,k){if(P){const F=Un(P);if(vc.has(F)){let J;ke.configFilePath||(J=Es(void 0,w.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)),J=Es(J,w.Cannot_write_file_0_because_it_would_overwrite_input_file,P),_S(P,OH(J))}const $=di.useCaseSensitiveFileNames()?F:Q0(F);k.has($)?_S(P,W_(w.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,P)):k.add($)}}}function Wh(){const c=ke.ignoreDeprecations;if(c){if(c==="5.0")return new en(c);Ye()}return en.zero}function Gv(c,u,d,h){const S=new en(c),E=new en(u),P=new en(Ft||ot),k=Wh(),F=E.compareTo(P)!==1,$=!F&&k.compareTo(S)===-1;(F||$)&&h((J,X,ie)=>{F?X===void 0?d(J,X,ie,w.Option_0_has_been_removed_Please_remove_it_from_your_configuration,J):d(J,X,ie,w.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,J,X):X===void 0?d(J,X,ie,w.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,J,u,c):d(J,X,ie,w.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,J,X,u,c)})}function jv(){function c(u,d,h,S,...E){if(h){const P=Es(void 0,w.Use_0_instead,h),k=Es(P,S,...E);Ph(!d,u,void 0,k)}else Ph(!d,u,void 0,S,...E)}Gv("5.0","5.5",c,u=>{ke.target===0&&u("target","ES3"),ke.noImplicitUseStrict&&u("noImplicitUseStrict"),ke.keyofStringsOnly&&u("keyofStringsOnly"),ke.suppressExcessPropertyErrors&&u("suppressExcessPropertyErrors"),ke.suppressImplicitAnyIndexErrors&&u("suppressImplicitAnyIndexErrors"),ke.noStrictGenericChecks&&u("noStrictGenericChecks"),ke.charset&&u("charset"),ke.out&&u("out",void 0,"outFile"),ke.importsNotUsedAsValues&&u("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ke.preserveValueImports&&u("preserveValueImports",void 0,"verbatimModuleSyntax")})}function yy(c,u,d){function h(S,E,P,k,...F){l_(u,d,k,...F)}Gv("5.0","5.5",h,S=>{c.prepend&&S("prepend")})}function ub(c,u,d,h){var S;let E,P,k=k6(u)?u:void 0;c&&((S=un.get(c.path))==null||S.forEach(ie)),u&&ie(u),k&&(E==null?void 0:E.length)===1&&(E=void 0);const F=k&&VW(Kd,k),$=E&&Es(E,w.The_file_is_in_the_program_because_Colon),J=c&&aZ(c),X=Es(J?$?[$,...J]:J:$,d,...h||Zn);return F&&yF(F)?aE(F.file,F.pos,F.end-F.pos,X,P):OH(X,P);function ie(ae){(E||(E=[])).push(uge(Qr,ae)),!k&&k6(ae)?k=ae:k!==ae&&(P=ur(P,MA(ae))),ae===u&&(u=void 0)}}function E0(c,u,d,h){(Xr||(Xr=[])).push({kind:1,file:c&&c.path,fileProcessingReason:u,diagnostic:d,args:h})}function P2(c,u,d){Oc.add(ub(c,void 0,u,d))}function MA(c){if(k6(c)){const h=VW(Kd,c);let S;switch(c.kind){case 3:S=w.File_is_included_via_import_here;break;case 4:S=w.File_is_included_via_reference_here;break;case 5:S=w.File_is_included_via_type_library_reference_here;break;case 7:S=w.File_is_included_via_library_reference_here;break;default:ce.assertNever(c)}return yF(h)?Pp(h.file,h.pos,h.end-h.pos,S):void 0}if(!ke.configFile)return;let u,d;switch(c.kind){case 0:if(!ke.configFile.configFileSpecs)return;const h=Su(ht[c.index],_u),S=mse(Qr,h);if(S){u=RT(ke.configFile,"files",S),d=w.File_is_matched_by_files_list_specified_here;break}const E=Vxe(Qr,h);if(!E||!As(E))return;u=RT(ke.configFile,"include",E),d=w.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const P=ce.checkDefined(li==null?void 0:li[c.index]),k=I$(Dt,li,(ie,ae,ve)=>ie===P?{sourceFile:(ae==null?void 0:ae.sourceFile)||ke.configFile,index:ve}:void 0);if(!k)return;const{sourceFile:F,index:$}=k,J=sY(F,"references",ie=>Ch(ie.initializer)?ie.initializer:void 0);return J&&J.elements.length>$?M0(F,J.elements[$],c.kind===2?w.File_is_output_from_referenced_project_specified_here:w.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ke.types)return;u=X_("types",c.typeReference),d=w.File_is_entry_point_of_type_library_specified_here;break;case 6:if(c.index!==void 0){u=X_("lib",ke.lib[c.index]),d=w.File_is_library_specified_here;break}const X=wT(cQ.type,(ie,ae)=>ie===iu(ke)?ae:void 0);u=X?js("target",X):void 0,d=w.File_is_default_library_for_target_specified_here;break;default:ce.assertNever(c)}return u&&M0(ke.configFile,u,d)}function aw(){const c=ke.suppressOutputPathCheck?void 0:ZN(ke);I$(Dt,li,(u,d,h)=>{const S=(d?d.commandLine.projectReferences:Dt)[h],E=d&&d.sourceFile;if(yy(S,E,h),!u){l_(E,h,w.File_0_not_found,S.path);return}const P=u.commandLine.options;if((!P.composite||P.noEmit)&&(d?d.commandLine.fileNames:ht).length&&(P.composite||l_(E,h,w.Referenced_project_0_must_have_setting_composite_Colon_true,S.path),P.noEmit&&l_(E,h,w.Referenced_project_0_may_not_disable_emit,S.path)),S.prepend){const k=Kg(P);k?di.fileExists(k)||l_(E,h,w.Output_file_0_from_project_1_does_not_exist,k,S.path):l_(E,h,w.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,S.path)}!d&&c&&c===ZN(P)&&(l_(E,h,w.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,c,S.path),Rr.set(Un(c),!0))})}function DI(c,u,d,...h){let S=!0;Mi(E=>{Wd(E.initializer)&&tG(E.initializer,c,P=>{const k=P.initializer;Ch(k)&&k.elements.length>u&&(Oc.add(M0(ke.configFile,k.elements[u],d,...h)),S=!1)})}),S&&Oc.add(W_(d,...h))}function Me(c,u,d,...h){let S=!0;Mi(E=>{Wd(E.initializer)&&Mb(E.initializer,c,u,void 0,d,...h)&&(S=!1)}),S&&Oc.add(W_(d,...h))}function jn(c,u){return tG(Ap(),c,u)}function Mi(c){return jn("paths",c)}function js(c,u){return jn(c,d=>Wp(d.initializer)&&d.initializer.text===u?d.initializer:void 0)}function X_(c,u){const d=Ap();return d&&vie(d,c,u)}function $l(c,u,d,h){Ph(!0,u,d,c,u,d,h)}function y_(c,u,...d){Ph(!1,c,void 0,u,...d)}function l_(c,u,d,...h){const S=sY(c||ke.configFile,"references",E=>Ch(E.initializer)?E.initializer:void 0);S&&S.elements.length>u?Oc.add(M0(c||ke.configFile,S.elements[u],d,...h)):Oc.add(W_(d,...h))}function Ph(c,u,d,h,...S){const E=Ap();(!E||!Mb(E,c,u,d,h,...S))&&("messageText"in h?Oc.add(OH(h)):Oc.add(W_(h,...S)))}function Ap(){return mc===void 0&&(mc=tG(A9(ke.configFile),"compilerOptions",c=>Wd(c.initializer)?c.initializer:void 0)||!1),mc||void 0}function Mb(c,u,d,h,S,...E){let P=!1;return tG(c,d,k=>{"messageText"in S?Oc.add(RN(ke.configFile,u?k.name:k.initializer,S)):Oc.add(M0(ke.configFile,u?k.name:k.initializer,S,...E)),P=!0},h),P}function _x(c,u){const d=Ap();d?Mb(d,!0,c,void 0,w.Option_0_is_redundant_and_cannot_be_specified_with_option_1,c,u):$l(w.Option_0_is_redundant_and_cannot_be_specified_with_option_1,c,u)}function _S(c,u){Rr.set(Un(c),!0),Oc.add(u)}function e(c){if(ke.noEmit)return!1;const u=Un(c);if(Kd(u))return!1;const d=Kg(ke);if(d)return n(u,d)||n(u,wg(d)+".d.ts");if(ke.declarationDir&&GC(ke.declarationDir,u,_u,!di.useCaseSensitiveFileNames()))return!0;if(ke.outDir)return GC(ke.outDir,u,_u,!di.useCaseSensitiveFileNames());if(ws(u,iJ)||iT(u)){const h=wg(u);return!!Kd(h+".ts")||!!Kd(h+".tsx")}return!1}function n(c,u){return wM(c,u,_u,!di.useCaseSensitiveFileNames())===0}function i(){return di.getSymlinkCache?di.getSymlinkCache():(Wt||(Wt=zde(_u,Al)),zt&&In&&!Wt.hasProcessedResolutions()&&Wt.setSymlinksFromResolutions(zt,In),Wt)}}function Zae(t){let r;const s=t.compilerHost.fileExists,l=t.compilerHost.directoryExists,m=t.compilerHost.getDirectories,y=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ku,fileExists:I};t.compilerHost.fileExists=I;let T;return l&&(T=t.compilerHost.directoryExists=te=>l.call(t.compilerHost,te)?(V(te),!0):t.getResolvedProjectReferences()?(r||(r=new Set,t.forEachResolvedProjectReference(oe=>{const de=Kg(oe.commandLine.options);if(de)r.add(qc(t.toPath(de)));else{const ue=oe.commandLine.options.declarationDir||oe.commandLine.options.outDir;ue&&r.add(t.toPath(ue))}})),ee(te,!1)):!1),m&&(t.compilerHost.getDirectories=te=>!t.getResolvedProjectReferences()||l&&l.call(t.compilerHost,te)?m.call(t.compilerHost,te):[]),y&&(t.compilerHost.realpath=te=>{var oe;return((oe=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:oe.get(t.toPath(te)))||y.call(t.compilerHost,te)}),{onProgramCreateComplete:D,fileExists:I,directoryExists:T};function D(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=l,t.compilerHost.getDirectories=m}function I(te){return s.call(t.compilerHost,te)?!0:!t.getResolvedProjectReferences()||!iT(te)?!1:ee(te,!0)}function W(te){const oe=t.getSourceOfProjectReferenceRedirect(t.toPath(te));return oe!==void 0?As(oe)?s.call(t.compilerHost,oe):!0:void 0}function O(te){const oe=t.toPath(te),de=`${oe}${q}`;return FL(r,ue=>oe===ue||xf(ue,de)||xf(oe,`${ue}/`))}function V(te){var oe;if(!t.getResolvedProjectReferences()||_3(te)||!y||!Ub(te,ix))return;const de=t.getSymlinkCache(),ue=Rv(t.toPath(te));if((oe=de.getSymlinkedDirectories())!=null&&oe.has(ue))return;const Ne=Fd(y.call(t.compilerHost,te));let Be;if(Ne===te||(Be=Rv(t.toPath(Ne)))===ue){de.setSymlinkedDirectory(ue,!1);return}de.setSymlinkedDirectory(te,{real:Rv(Ne),realPath:Be})}function ee(te,oe){var de;const ue=oe?Le=>W(Le):Le=>O(Le),Ne=ue(te);if(Ne!==void 0)return Ne;const Be=t.getSymlinkCache(),Ve=Be.getSymlinkedDirectories();if(!Ve)return!1;const pt=t.toPath(te);return Ub(pt,ix)?oe&&((de=Be.getSymlinkedFiles())!=null&&de.has(pt))?!0:Ns(Ve.entries(),([Le,ht])=>{if(!ht||!xf(pt,Le))return;const ke=ue(pt.replace(Le,ht.realPath));if(oe&&ke){const _t=Su(te,t.compilerHost.getCurrentDirectory());Be.setSymlinkedFile(pt,`${ht.real}${_t.replace(new RegExp(Le,"i"),"")}`)}return ke})||!1:!1}}function ese(t,r,s,l){const m=t.getCompilerOptions();if(m.noEmit)return t.getSemanticDiagnostics(r,l),r||Kg(m)?lse:t.emitBuildInfo(s,l);if(!m.noEmitOnError)return;let y=[...t.getOptionsDiagnostics(l),...t.getSyntacticDiagnostics(r,l),...t.getGlobalDiagnostics(l),...t.getSemanticDiagnostics(r,l)];if(y.length===0&&gv(t.getCompilerOptions())&&(y=t.getDeclarationDiagnostics(void 0,l)),!y.length)return;let T;if(!r&&!Kg(m)){const D=t.emitBuildInfo(s,l);D.diagnostics&&(y=[...y,...D.diagnostics]),T=D.emittedFiles}return{diagnostics:y,sourceMaps:void 0,emittedFiles:T,emitSkipped:!0}}function Txe(t,r){return gi(t,s=>!s.skippedOn||!r[s.skippedOn])}function Sxe(t,r=t){return{fileExists:s=>r.fileExists(s),readDirectory(s,l,m,y,T){return ce.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(s,l,m,y,T)},readFile:s=>r.readFile(s),directoryExists:wc(r,r.directoryExists),getDirectories:wc(r,r.getDirectories),realpath:wc(r,r.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||eE,trace:t.trace?s=>t.trace(s):void 0}}function YQ(t,r,s,l){if(!t)return Zn;let m;for(let y=0;yl);for(const l of r)l.kind===11&&s.push(l);return s}function k$({imports:t,moduleAugmentations:r},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(ise||{}),vF="\x1B[7m",QQ=" ",Exe="\x1B[0m",ZQ="...",Kme=" ",ose=" ",ase={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},P$={getName:$Q,getMode:(t,r)=>kA(r,t)},eZ={getName:qQ,getMode:(t,r)=>wR(t,r==null?void 0:r.impliedNodeFormat)},sse="__inferred type names__.ts",cse=new Set([w.Cannot_redeclare_block_scoped_variable_0.code,w.A_module_cannot_have_multiple_default_exports.code,w.Another_export_default_is_here.code,w.The_first_export_default_is_here.code,w.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,w.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,w.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,w.constructor_is_a_reserved_word.code,w.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,w.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,w.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,w.Invalid_use_of_0_in_strict_mode.code,w.A_label_is_not_allowed_here.code,w.with_statements_are_not_allowed_in_strict_mode.code,w.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,w.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,w.A_class_declaration_without_the_default_modifier_must_have_a_name.code,w.A_class_member_cannot_have_the_0_keyword.code,w.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,w.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,w.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,w.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,w.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,w.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,w.A_destructuring_declaration_must_have_an_initializer.code,w.A_get_accessor_cannot_have_parameters.code,w.A_rest_element_cannot_contain_a_binding_pattern.code,w.A_rest_element_cannot_have_a_property_name.code,w.A_rest_element_cannot_have_an_initializer.code,w.A_rest_element_must_be_last_in_a_destructuring_pattern.code,w.A_rest_parameter_cannot_have_an_initializer.code,w.A_rest_parameter_must_be_last_in_a_parameter_list.code,w.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,w.A_return_statement_cannot_be_used_inside_a_class_static_block.code,w.A_set_accessor_cannot_have_rest_parameter.code,w.A_set_accessor_must_have_exactly_one_parameter.code,w.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,w.An_export_declaration_cannot_have_modifiers.code,w.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,w.An_import_declaration_cannot_have_modifiers.code,w.An_object_member_cannot_be_declared_optional.code,w.Argument_of_dynamic_import_cannot_be_spread_element.code,w.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,w.Cannot_redeclare_identifier_0_in_catch_clause.code,w.Catch_clause_variable_cannot_have_an_initializer.code,w.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,w.Classes_can_only_extend_a_single_class.code,w.Classes_may_not_have_a_field_named_constructor.code,w.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,w.Duplicate_label_0.code,w.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,w.for_await_loops_cannot_be_used_inside_a_class_static_block.code,w.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,w.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,w.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,w.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,w.Jump_target_cannot_cross_function_boundary.code,w.Line_terminator_not_permitted_before_arrow.code,w.Modifiers_cannot_appear_here.code,w.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,w.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,w.Private_identifiers_are_not_allowed_outside_class_bodies.code,w.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,w.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,w.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,w.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,w.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,w.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,w.Trailing_comma_not_allowed.code,w.Variable_declaration_list_cannot_be_empty.code,w._0_and_1_operations_cannot_be_mixed_without_parentheses.code,w._0_expected.code,w._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,w._0_list_cannot_be_empty.code,w._0_modifier_already_seen.code,w._0_modifier_cannot_appear_on_a_constructor_declaration.code,w._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,w._0_modifier_cannot_appear_on_a_parameter.code,w._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,w._0_modifier_cannot_be_used_here.code,w._0_modifier_must_precede_1_modifier.code,w._0_declarations_can_only_be_declared_inside_a_block.code,w._0_declarations_must_be_initialized.code,w.extends_clause_already_seen.code,w.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,w.Class_constructor_may_not_be_a_generator.code,w.Class_constructor_may_not_be_an_accessor.code,w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.Private_field_0_must_be_declared_in_an_enclosing_class.code,w.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),lse={diagnostics:Zn,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),Xme=G({"src/compiler/builderStatePublic.ts"(){}});function gj(t,r,s,l,m,y){const T=[],{emitSkipped:D,diagnostics:I}=t.emit(r,W,l,s,m,y);return{outputFiles:T,emitSkipped:D,diagnostics:I};function W(O,V,ee){T.push({name:O,writeByteOrderMark:ee,text:V})}}var sD,Yme=G({"src/compiler/builderState.ts"(){Ad(),(t=>{function r(){function it(Ye,ut,lt){const zt={getKeys:Wt=>ut.get(Wt),getValues:Wt=>Ye.get(Wt),keys:()=>Ye.keys(),deleteKey:Wt=>{(lt||(lt=new Set)).add(Wt);const tt=Ye.get(Wt);return tt?(tt.forEach(Mn=>l(ut,Mn,Wt)),Ye.delete(Wt),!0):!1},set:(Wt,tt)=>{lt==null||lt.delete(Wt);const Mn=Ye.get(Wt);return Ye.set(Wt,tt),Mn==null||Mn.forEach(kn=>{tt.has(kn)||l(ut,kn,Wt)}),tt.forEach(kn=>{Mn!=null&&Mn.has(kn)||s(ut,kn,Wt)}),zt}};return zt}return it(new Map,new Map,void 0)}t.createManyToManyPathMap=r;function s(it,Ye,ut){let lt=it.get(Ye);lt||(lt=new Set,it.set(Ye,lt)),lt.add(ut)}function l(it,Ye,ut){const lt=it.get(Ye);return lt!=null&<.delete(ut)?(lt.size||it.delete(Ye),!0):!1}function m(it){return Qo(it.declarations,Ye=>{var ut;return(ut=ns(Ye))==null?void 0:ut.resolvedPath})}function y(it,Ye){const ut=it.getSymbolAtLocation(Ye);return ut&&m(ut)}function T(it,Ye,ut,lt){return _h(it.getProjectReferenceRedirect(Ye)||Ye,ut,lt)}function D(it,Ye,ut){let lt;if(Ye.imports&&Ye.imports.length>0){const Mn=it.getTypeChecker();for(const kn of Ye.imports){const cr=y(Mn,kn);cr==null||cr.forEach(tt)}}const zt=qc(Ye.resolvedPath);if(Ye.referencedFiles&&Ye.referencedFiles.length>0)for(const Mn of Ye.referencedFiles){const kn=T(it,Mn.fileName,zt,ut);tt(kn)}if(Ye.resolvedTypeReferenceDirectiveNames&&Ye.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Mn})=>{if(!Mn)return;const kn=Mn.resolvedFileName,cr=T(it,kn,zt,ut);tt(cr)}),Ye.moduleAugmentations.length){const Mn=it.getTypeChecker();for(const kn of Ye.moduleAugmentations){if(!Wp(kn))continue;const cr=Mn.getSymbolAtLocation(kn);cr&&Wt(cr)}}for(const Mn of it.getTypeChecker().getAmbientModules())Mn.declarations&&Mn.declarations.length>1&&Wt(Mn);return lt;function Wt(Mn){if(Mn.declarations)for(const kn of Mn.declarations){const cr=ns(kn);cr&&cr!==Ye&&tt(cr.resolvedPath)}}function tt(Mn){(lt||(lt=new Set)).add(Mn)}}function I(it,Ye){return Ye&&!Ye.referencedMap==!it}t.canReuseOldState=I;function W(it,Ye,ut){var lt,zt,Wt;const tt=new Map,Mn=it.getCompilerOptions(),kn=Kg(Mn),cr=Mn.module!==0&&!kn?r():void 0,un=cr?r():void 0,on=I(cr,Ye);it.getTypeChecker();for(const pn of it.getSourceFiles()){const Or=ce.checkDefined(pn.version,"Program intended to be used with Builder should have source files with versions set"),Xr=on?(lt=Ye.oldSignatures)==null?void 0:lt.get(pn.resolvedPath):void 0,Ut=Xr===void 0?on?(zt=Ye.fileInfos.get(pn.resolvedPath))==null?void 0:zt.signature:void 0:Xr||void 0;if(cr){const In=D(it,pn,it.getCanonicalFileName);if(In&&cr.set(pn.resolvedPath,In),on){const gr=(Wt=Ye.oldExportedModulesMap)==null?void 0:Wt.get(pn.resolvedPath),Cr=gr===void 0?Ye.exportedModulesMap.getValues(pn.resolvedPath):gr||void 0;Cr&&un.set(pn.resolvedPath,Cr)}}tt.set(pn.resolvedPath,{version:Or,signature:Ut,affectsGlobalScope:kn?void 0:ke(pn)||void 0,impliedFormat:pn.impliedNodeFormat})}return{fileInfos:tt,referencedMap:cr,exportedModulesMap:un,useFileVersionAsSignature:!ut&&!on}}t.create=W;function O(it){it.allFilesExcludingDefaultLibraryFile=void 0,it.allFileNames=void 0}t.releaseCache=O;function V(it,Ye,ut,lt,zt){var Wt,tt;const Mn=ee(it,Ye,ut,lt,zt);return(Wt=it.oldSignatures)==null||Wt.clear(),(tt=it.oldExportedModulesMap)==null||tt.clear(),Mn}t.getFilesAffectedBy=V;function ee(it,Ye,ut,lt,zt){const Wt=Ye.getSourceFileByPath(ut);return Wt?de(it,Ye,Wt,lt,zt)?(it.referencedMap?Ft:Dt)(it,Ye,Wt,lt,zt):[Wt]:Zn}t.getFilesAffectedByWithOldState=ee;function te(it,Ye,ut){it.fileInfos.get(ut).signature=Ye,(it.hasCalledUpdateShapeSignature||(it.hasCalledUpdateShapeSignature=new Set)).add(ut)}t.updateSignatureOfFile=te;function oe(it,Ye,ut,lt,zt){it.emit(Ye,(Wt,tt,Mn,kn,cr,un)=>{ce.assert(iT(Wt),`File extension for signature expected to be dts: Got:: ${Wt}`),zt(Dxe(it,Ye,tt,lt,un),cr)},ut,!0,void 0,!0)}t.computeDtsSignature=oe;function de(it,Ye,ut,lt,zt,Wt=it.useFileVersionAsSignature){var tt;if((tt=it.hasCalledUpdateShapeSignature)!=null&&tt.has(ut.resolvedPath))return!1;const Mn=it.fileInfos.get(ut.resolvedPath),kn=Mn.signature;let cr;if(!ut.isDeclarationFile&&!Wt&&oe(Ye,ut,lt,zt,(un,on)=>{cr=un,cr!==kn&&ue(it,ut,on[0].exportedModulesFromDeclarationEmit)}),cr===void 0&&(cr=ut.version,it.exportedModulesMap&&cr!==kn)){(it.oldExportedModulesMap||(it.oldExportedModulesMap=new Map)).set(ut.resolvedPath,it.exportedModulesMap.getValues(ut.resolvedPath)||!1);const un=it.referencedMap?it.referencedMap.getValues(ut.resolvedPath):void 0;un?it.exportedModulesMap.set(ut.resolvedPath,un):it.exportedModulesMap.deleteKey(ut.resolvedPath)}return(it.oldSignatures||(it.oldSignatures=new Map)).set(ut.resolvedPath,kn||!1),(it.hasCalledUpdateShapeSignature||(it.hasCalledUpdateShapeSignature=new Set)).add(ut.resolvedPath),Mn.signature=cr,cr!==kn}t.updateShapeSignature=de;function ue(it,Ye,ut){if(!it.exportedModulesMap)return;(it.oldExportedModulesMap||(it.oldExportedModulesMap=new Map)).set(Ye.resolvedPath,it.exportedModulesMap.getValues(Ye.resolvedPath)||!1);const lt=Ne(ut);lt?it.exportedModulesMap.set(Ye.resolvedPath,lt):it.exportedModulesMap.deleteKey(Ye.resolvedPath)}t.updateExportedModules=ue;function Ne(it){let Ye;return it==null||it.forEach(ut=>m(ut).forEach(lt=>(Ye??(Ye=new Set)).add(lt))),Ye}t.getExportedModules=Ne;function Be(it,Ye,ut){const lt=Ye.getCompilerOptions();if(Kg(lt)||!it.referencedMap||ke(ut))return Ve(it,Ye);const zt=new Set,Wt=[ut.resolvedPath];for(;Wt.length;){const tt=Wt.pop();if(!zt.has(tt)){zt.add(tt);const Mn=it.referencedMap.getValues(tt);if(Mn)for(const kn of Mn.keys())Wt.push(kn)}}return oc(p2(zt.keys(),tt=>{var Mn;return((Mn=Ye.getSourceFileByPath(tt))==null?void 0:Mn.fileName)??tt}))}t.getAllDependencies=Be;function Ve(it,Ye){if(!it.allFileNames){const ut=Ye.getSourceFiles();it.allFileNames=ut===Zn?Zn:ut.map(lt=>lt.fileName)}return it.allFileNames}function pt(it,Ye){const ut=it.referencedMap.getKeys(Ye);return ut?oc(ut.keys()):[]}t.getReferencedByPaths=pt;function Le(it){for(const Ye of it.statements)if(!iY(Ye))return!1;return!0}function ht(it){return gt(it.moduleAugmentations,Ye=>$C(Ye.parent))}function ke(it){return ht(it)||!h1(it)&&!Py(it)&&!Le(it)}function _t(it,Ye,ut){if(it.allFilesExcludingDefaultLibraryFile)return it.allFilesExcludingDefaultLibraryFile;let lt;ut&&zt(ut);for(const Wt of Ye.getSourceFiles())Wt!==ut&&zt(Wt);return it.allFilesExcludingDefaultLibraryFile=lt||Zn,it.allFilesExcludingDefaultLibraryFile;function zt(Wt){Ye.isSourceFileDefaultLibrary(Wt)||(lt||(lt=[])).push(Wt)}}t.getAllFilesExcludingDefaultLibraryFile=_t;function Dt(it,Ye,ut){const lt=Ye.getCompilerOptions();return lt&&Kg(lt)?[ut]:_t(it,Ye,ut)}function Ft(it,Ye,ut,lt,zt){if(ke(ut))return _t(it,Ye,ut);const Wt=Ye.getCompilerOptions();if(Wt&&(F0(Wt)||Kg(Wt)))return[ut];const tt=new Map;tt.set(ut.resolvedPath,ut);const Mn=pt(it,ut.resolvedPath);for(;Mn.length>0;){const kn=Mn.pop();if(!tt.has(kn)){const cr=Ye.getSourceFileByPath(kn);tt.set(kn,cr),cr&&de(it,Ye,cr,lt,zt)&&Mn.push(...pt(it,cr.resolvedPath))}}return oc(p2(tt.values(),kn=>kn))}})(sD||(sD={}))}});function B3(t){let r=1;return t.sourceMap&&(r=r|2),t.inlineSourceMap&&(r=r|4),gv(t)&&(r=r|8),t.declarationMap&&(r=r|16),t.emitDeclarationOnly&&(r=r&24),r}function tZ(t,r){const s=r&&(U1(r)?r:B3(r)),l=U1(t)?t:B3(t);if(s===l)return 0;if(!s||!l)return l;const m=s^l;let y=0;return m&7&&(y=l&7),m&24&&(y=y|l&24),y}function O4e(t,r){return t===r||t!==void 0&&r!==void 0&&t.size===r.size&&!FL(t,s=>!r.has(s))}function cD(t,r){var s,l;const m=sD.create(t,r,!1);m.program=t;const y=t.getCompilerOptions();m.compilerOptions=y;const T=Kg(y);T?y.composite&&(r!=null&&r.outSignature)&&T===Kg(r==null?void 0:r.compilerOptions)&&(m.outSignature=r.outSignature&&P6(y,r.compilerOptions,r.outSignature)):m.semanticDiagnosticsPerFile=new Map,m.changedFilesSet=new Set,m.latestChangedDtsFile=y.composite?r==null?void 0:r.latestChangedDtsFile:void 0;const D=sD.canReuseOldState(m.referencedMap,r),I=D?r.compilerOptions:void 0,W=D&&r.semanticDiagnosticsPerFile&&!!m.semanticDiagnosticsPerFile&&!GSe(y,I),O=y.composite&&(r==null?void 0:r.emitSignatures)&&!T&&!VSe(y,r.compilerOptions);D?((s=r.changedFilesSet)==null||s.forEach(de=>m.changedFilesSet.add(de)),!T&&((l=r.affectedFilesPendingEmit)!=null&&l.size)&&(m.affectedFilesPendingEmit=new Map(r.affectedFilesPendingEmit),m.seenAffectedFiles=new Set),m.programEmitPending=r.programEmitPending):m.buildInfoEmitPending=!0;const V=m.referencedMap,ee=D?r.referencedMap:void 0,te=W&&!y.skipLibCheck==!I.skipLibCheck,oe=te&&!y.skipDefaultLibCheck==!I.skipDefaultLibCheck;if(m.fileInfos.forEach((de,ue)=>{let Ne,Be;if(!D||!(Ne=r.fileInfos.get(ue))||Ne.version!==de.version||Ne.impliedFormat!==de.impliedFormat||!O4e(Be=V&&V.getValues(ue),ee&&ee.getValues(ue))||Be&&FL(Be,Ve=>!m.fileInfos.has(Ve)&&r.fileInfos.has(Ve)))rJe(m,ue);else if(W){const Ve=t.getSourceFileByPath(ue);if(Ve.isDeclarationFile&&!te||Ve.hasNoDefaultLib&&!oe)return;const pt=r.semanticDiagnosticsPerFile.get(ue);pt&&(m.semanticDiagnosticsPerFile.set(ue,r.hasReusableDiagnostic?oJe(pt,t):N$(pt,t)),m.semanticDiagnosticsFromOldState||(m.semanticDiagnosticsFromOldState=new Set),m.semanticDiagnosticsFromOldState.add(ue))}if(O){const Ve=r.emitSignatures.get(ue);Ve&&(m.emitSignatures??(m.emitSignatures=new Map)).set(ue,P6(y,r.compilerOptions,Ve))}}),D&&wT(r.fileInfos,(de,ue)=>m.fileInfos.has(ue)?!1:T||de.affectsGlobalScope?!0:(m.buildInfoEmitPending=!0,!1)))sD.getAllFilesExcludingDefaultLibraryFile(m,t,void 0).forEach(de=>rJe(m,de.resolvedPath));else if(I){const de=jSe(y,I)?B3(y):tZ(y,I);de!==0&&(T?m.programEmitPending=m.programEmitPending?m.programEmitPending|de:de:(t.getSourceFiles().forEach(ue=>{m.changedFilesSet.has(ue.resolvedPath)||nZ(m,ue.resolvedPath,de)}),ce.assert(!m.seenAffectedFiles||!m.seenAffectedFiles.size),m.seenAffectedFiles=m.seenAffectedFiles||new Set,m.buildInfoEmitPending=!0))}return T&&!m.changedFilesSet.size&&(D&&(m.bundle=r.bundle),gt(t.getProjectReferences(),de=>!!de.prepend)&&(m.programEmitPending=B3(y))),m}function rJe(t,r){t.changedFilesSet.add(r),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function P6(t,r,s){return!!t.declarationMap==!!r.declarationMap?s:As(s)?[s]:s[0]}function N$(t,r){return t.length?Ol(t,s=>{if(As(s.messageText))return s;const l=F4e(s.messageText,s.file,r,m=>{var y;return(y=m.repopulateInfo)==null?void 0:y.call(m)});return l===s.messageText?s:{...s,messageText:l}}):t}function F4e(t,r,s,l){const m=l(t);if(m)return{...jMe(r,s,m.moduleReference,m.mode,m.packageName||m.moduleReference),next:iJe(t.next,r,s,l)};const y=iJe(t.next,r,s,l);return y===t.next?t:{...t,next:y}}function iJe(t,r,s,l){return Ol(t,m=>F4e(m,r,s,l))}function oJe(t,r){if(!t.length)return Zn;let s;return t.map(m=>{const y=W4e(m,r,l);y.reportsUnnecessary=m.reportsUnnecessary,y.reportsDeprecated=m.reportDeprecated,y.source=m.source,y.skippedOn=m.skippedOn;const{relatedInformation:T}=m;return y.relatedInformation=T?T.length?T.map(D=>W4e(D,r,l)):[]:void 0,y});function l(m){return s??(s=qc(Su(ZN(r.getCompilerOptions()),r.getCurrentDirectory()))),_h(m,s,r.getCanonicalFileName)}}function W4e(t,r,s){const{file:l}=t,m=l?r.getSourceFileByPath(s(l)):void 0;return{...t,file:m,messageText:As(t.messageText)?t.messageText:F4e(t.messageText,m,r,y=>y.info)}}function Pct(t){sD.releaseCache(t),t.program=void 0}function B4e(t){const r=Kg(t.compilerOptions);return ce.assert(!t.changedFilesSet.size||r),{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:r?new Set(t.changedFilesSet):void 0}}function aJe(t,r){t.affectedFilesPendingEmit=r.affectedFilesPendingEmit,t.seenEmittedFiles=r.seenEmittedFiles,t.programEmitPending=r.programEmitPending,t.emitSignatures=r.emitSignatures,t.outSignature=r.outSignature,t.latestChangedDtsFile=r.latestChangedDtsFile,t.hasChangedEmitSignature=r.hasChangedEmitSignature,r.changedFilesSet&&(t.changedFilesSet=r.changedFilesSet)}function sJe(t,r){ce.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function z4e(t,r,s){for(var l,m;;){const{affectedFiles:y}=t;if(y){const W=t.seenAffectedFiles;let O=t.affectedFilesIndex;for(;O{const y=l&7;y?t.affectedFilesPendingEmit.set(m,y):t.affectedFilesPendingEmit.delete(m)})}}function wct(t,r){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return wT(t.affectedFilesPendingEmit,(l,m)=>{var y;const T=t.program.getSourceFileByPath(m);if(!T||!L7(T,t.program)){t.affectedFilesPendingEmit.delete(m);return}const D=(y=t.seenEmittedFiles)==null?void 0:y.get(T.resolvedPath);let I=tZ(l,D);if(r&&(I=I&24),I)return{affectedFile:T,emitKind:I}})}function cJe(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const r=ce.checkDefined(t.program),s=r.getCompilerOptions();Ot(r.getSourceFiles(),l=>r.isSourceFileDefaultLibrary(l)&&!c3(l,s,r)&&G4e(t,l.resolvedPath))}}function lJe(t,r,s,l){if(G4e(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){cJe(t),sD.updateShapeSignature(t,ce.checkDefined(t.program),r,s,l);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Rct(t,r,s,l)}function Qme(t,r,s,l){if(G4e(t,r),!t.changedFilesSet.has(r)){const m=ce.checkDefined(t.program),y=m.getSourceFileByPath(r);y&&(sD.updateShapeSignature(t,m,y,s,l,!0),gv(t.compilerOptions)&&nZ(t,r,t.compilerOptions.declarationMap?24:8))}}function G4e(t,r){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(r),t.semanticDiagnosticsPerFile.delete(r),!t.semanticDiagnosticsFromOldState.size):!0}function uJe(t,r){const s=ce.checkDefined(t.oldSignatures).get(r)||void 0;return ce.checkDefined(t.fileInfos.get(r)).signature!==s}function xxe(t,r,s,l){var m;return(m=t.fileInfos.get(r))!=null&&m.affectsGlobalScope?(sD.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(y=>Qme(t,y.resolvedPath,s,l)),cJe(t),!0):!1}function Rct(t,r,s,l){var m;if(!t.exportedModulesMap||!t.changedFilesSet.has(r.resolvedPath)||!uJe(t,r.resolvedPath))return;if(F0(t.compilerOptions)){const T=new Map;T.set(r.resolvedPath,!0);const D=sD.getReferencedByPaths(t,r.resolvedPath);for(;D.length>0;){const I=D.pop();if(!T.has(I)){if(T.set(I,!0),xxe(t,I,s,l))return;if(Qme(t,I,s,l),uJe(t,I)){const W=ce.checkDefined(t.program).getSourceFileByPath(I);D.push(...sD.getReferencedByPaths(t,W.resolvedPath))}}}}const y=new Set;(m=t.exportedModulesMap.getKeys(r.resolvedPath))==null||m.forEach(T=>{if(xxe(t,T,s,l))return!0;const D=t.referencedMap.getKeys(T);return D&&FL(D,I=>Zme(t,I,y,s,l))})}function Zme(t,r,s,l,m){var y,T;if(m2(s,r)){if(xxe(t,r,l,m))return!0;Qme(t,r,l,m),(y=t.exportedModulesMap.getKeys(r))==null||y.forEach(D=>Zme(t,D,s,l,m)),(T=t.referencedMap.getKeys(r))==null||T.forEach(D=>!s.has(D)&&Qme(t,D,l,m))}}function ege(t,r,s){return Hi(fJe(t,r,s),ce.checkDefined(t.program).getProgramDiagnostics(r))}function fJe(t,r,s){const l=r.resolvedPath;if(t.semanticDiagnosticsPerFile){const y=t.semanticDiagnosticsPerFile.get(l);if(y)return Txe(y,t.compilerOptions)}const m=ce.checkDefined(t.program).getBindAndCheckDiagnostics(r,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(l,m),Txe(m,t.compilerOptions)}function Axe(t){return!!Kg(t.options||{})}function Mct(t,r){var s,l,m;const y=ce.checkDefined(t.program).getCurrentDirectory(),T=qc(Su(ZN(t.compilerOptions),y)),D=t.latestChangedDtsFile?Le(t.latestChangedDtsFile):void 0,I=[],W=new Map,O=[];if(Kg(t.compilerOptions)){const it=oc(t.fileInfos.entries(),([tt,Mn])=>{const kn=ke(tt);return Dt(tt,kn),Mn.impliedFormat?{version:Mn.version,impliedFormat:Mn.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Mn.version}),Ye={fileNames:I,fileInfos:it,root:O,options:Ft(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:D,pendingEmit:t.programEmitPending?t.programEmitPending===B3(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:ut,dts:lt,commonSourceDirectory:zt,sourceFiles:Wt}=r;return t.bundle=r={commonSourceDirectory:zt,sourceFiles:Wt,js:ut||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:lt||(gv(t.compilerOptions)?(l=t.bundle)==null?void 0:l.dts:void 0)},hF(Ye,r)}let V,ee,te;const oe=oc(t.fileInfos.entries(),([it,Ye])=>{var ut,lt;const zt=ke(it);Dt(it,zt),ce.assert(I[zt-1]===ht(it));const Wt=(ut=t.oldSignatures)==null?void 0:ut.get(it),tt=Wt!==void 0?Wt||void 0:Ye.signature;if(t.compilerOptions.composite){const Mn=t.program.getSourceFileByPath(it);if(!Py(Mn)&&L7(Mn,t.program)){const kn=(lt=t.emitSignatures)==null?void 0:lt.get(it);kn!==tt&&(te||(te=[])).push(kn===void 0?zt:[zt,!As(kn)&&kn[0]===tt?Zn:kn])}}return Ye.version===tt?Ye.affectsGlobalScope||Ye.impliedFormat?{version:Ye.version,signature:void 0,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}:Ye.version:tt!==void 0?Wt===void 0?Ye:{version:Ye.version,signature:tt,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}:{version:Ye.version,signature:!1,affectsGlobalScope:Ye.affectsGlobalScope,impliedFormat:Ye.impliedFormat}});let de;t.referencedMap&&(de=oc(t.referencedMap.keys()).sort(Fp).map(it=>[ke(it),_t(t.referencedMap.getValues(it))]));let ue;t.exportedModulesMap&&(ue=Qo(oc(t.exportedModulesMap.keys()).sort(Fp),it=>{var Ye;const ut=(Ye=t.oldExportedModulesMap)==null?void 0:Ye.get(it);if(ut===void 0)return[ke(it),_t(t.exportedModulesMap.getValues(it))];if(ut)return[ke(it),_t(ut)]}));let Ne;if(t.semanticDiagnosticsPerFile)for(const it of oc(t.semanticDiagnosticsPerFile.keys()).sort(Fp)){const Ye=t.semanticDiagnosticsPerFile.get(it);(Ne||(Ne=[])).push(Ye.length?[ke(it),j4e(Ye,ht)]:ke(it))}let Be;if((m=t.affectedFilesPendingEmit)!=null&&m.size){const it=B3(t.compilerOptions),Ye=new Set;for(const ut of oc(t.affectedFilesPendingEmit.keys()).sort(Fp))if(m2(Ye,ut)){const lt=t.program.getSourceFileByPath(ut);if(!lt||!L7(lt,t.program))continue;const zt=ke(ut),Wt=t.affectedFilesPendingEmit.get(ut);(Be||(Be=[])).push(Wt===it?zt:Wt===8?[zt]:[zt,Wt])}}let Ve;if(t.changedFilesSet.size)for(const it of oc(t.changedFilesSet.keys()).sort(Fp))(Ve||(Ve=[])).push(ke(it));const pt={fileNames:I,fileInfos:oe,root:O,options:Ft(t.compilerOptions),fileIdsList:V,referencedMap:de,exportedModulesMap:ue,semanticDiagnosticsPerFile:Ne,affectedFilesPendingEmit:Be,changeFileSet:Ve,emitSignatures:te,latestChangedDtsFile:D};return hF(pt,r);function Le(it){return ht(Su(it,y))}function ht(it){return OE(qp(T,it,t.program.getCanonicalFileName))}function ke(it){let Ye=W.get(it);return Ye===void 0&&(I.push(ht(it)),W.set(it,Ye=I.length)),Ye}function _t(it){const Ye=oc(it.keys(),ke).sort(pf),ut=Ye.join();let lt=ee==null?void 0:ee.get(ut);return lt===void 0&&((V||(V=[])).push(Ye),(ee||(ee=new Map)).set(ut,lt=V.length)),lt}function Dt(it,Ye){const ut=t.program.getSourceFile(it);if(!t.program.getFileIncludeReasons().get(ut.path).some(tt=>tt.kind===0))return;if(!O.length)return O.push(Ye);const lt=O[O.length-1],zt=ls(lt);if(zt&<[1]===Ye-1)return lt[1]=Ye;if(zt||O.length===1||lt!==Ye-1)return O.push(Ye);const Wt=O[O.length-2];return!U1(Wt)||Wt!==lt-1?O.push(Ye):(O[O.length-2]=[Wt,Ye],O.length=O.length-1)}function Ft(it){let Ye;const{optionsNameMap:ut}=DW();for(const lt of ET(it).sort(Fp)){const zt=ut.get(lt.toLowerCase());zt!=null&&zt.affectsBuildInfo&&((Ye||(Ye={}))[lt]=_Je(zt,it[lt],Le))}return Ye}}function _Je(t,r,s){if(t){if(ce.assert(t.type!=="listOrElement"),t.type==="list"){const l=r;if(t.element.isFilePath&&l.length)return l.map(s)}else if(t.isFilePath)return s(r)}return r}function j4e(t,r){return ce.assert(!!t.length),t.map(s=>{const l=dJe(s,r);l.reportsUnnecessary=s.reportsUnnecessary,l.reportDeprecated=s.reportsDeprecated,l.source=s.source,l.skippedOn=s.skippedOn;const{relatedInformation:m}=s;return l.relatedInformation=m?m.length?m.map(y=>dJe(y,r)):[]:void 0,l})}function dJe(t,r){const{file:s}=t;return{...t,file:s?r(s.resolvedPath):void 0,messageText:As(t.messageText)?t.messageText:tge(t.messageText)}}function tge(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:pJe(t.next)};const r=pJe(t.next);return r===t.next?t:{...t,next:r}}function pJe(t){return t&&(Ot(t,(r,s)=>{const l=tge(r);if(r===l)return;const m=s>0?t.slice(0,s-1):[];m.push(l);for(let y=s+1;y`${I(W)}${DU[W.category]}${W.code}: ${D(W.messageText)}`).join(` `)),(l.createHash??G_e)(s);function D(W){return As(W)?W:W===void 0?"":W.next?W.messageText+W.next.map(D).join(` -`):W.messageText}function I(W){return W.file.resolvedPath===r.resolvedPath?`(${W.start},${W.length})`:(T===void 0&&(T=qc(r.resolvedPath)),`${OE(qp(T,W.file.resolvedPath,t.getCanonicalFileName))}(${W.start},${W.length})`)}}function bF(t,r,s){return(r.createHash??G_e)(mJe(t,s))}function Ixe(t,{newProgram:r,host:s,oldProgram:l,configFileParsingDiagnostics:m}){let y=l&&l.getState();if(y&&r===y.program&&m===r.getConfigFileParsingDiagnostics())return r=void 0,y=void 0,l;const T=cD(r,y);r.getBuildInfo=de=>Mct(T,de),r=void 0,l=void 0,y=void 0;const D=()=>T,I=oge(D,m);return I.getState=D,I.saveEmitState=()=>B4e(T),I.restoreEmitState=de=>aJe(T,de),I.hasChangedEmitSignature=()=>!!T.hasChangedEmitSignature,I.getAllDependencies=de=>sD.getAllDependencies(T,ce.checkDefined(T.program),de),I.getSemanticDiagnostics=oe,I.emit=ee,I.releaseProgram=()=>Pct(T),t===0?I.getSemanticDiagnosticsOfNextAffectedFile=te:t===1?(I.getSemanticDiagnosticsOfNextAffectedFile=te,I.emitNextAffectedFile=O,I.emitBuildInfo=W):Na(),I;function W(de,ue){if(T.buildInfoEmitPending){const Ne=ce.checkDefined(T.program).emitBuildInfo(de||wc(s,s.writeFile),ue);return T.buildInfoEmitPending=!1,Ne}return lse}function O(de,ue,Ne,Be){var Ve,pt,Le;let ht=z4e(T,ue,s);const ke=B3(T.compilerOptions);let _t=Ne?ke&24:ke;if(!ht)if(Kg(T.compilerOptions)){if(!T.programEmitPending||(_t=T.programEmitPending,Ne&&(_t=_t&24),!_t))return;ht=T.program}else{const it=wct(T,Ne);if(!it){if(!T.buildInfoEmitPending)return;const Ye=T.program,ut=Ye.emitBuildInfo(de||wc(s,s.writeFile),ue);return T.buildInfoEmitPending=!1,{result:ut,affected:Ye}}({affectedFile:ht,emitKind:_t}=it)}let Dt;_t&7&&(Dt=0),_t&24&&(Dt=Dt===void 0?1:void 0),ht===T.program&&(T.programEmitPending=T.changedFilesSet.size?tZ(ke,_t):T.programEmitPending?tZ(T.programEmitPending,_t):void 0);const Ft=T.program.emit(ht===T.program?void 0:ht,V(de,Be),ue,Dt,Be);if(ht!==T.program){const it=ht;T.seenAffectedFiles.add(it.resolvedPath),T.affectedFilesIndex!==void 0&&T.affectedFilesIndex++,T.buildInfoEmitPending=!0;const Ye=((Ve=T.seenEmittedFiles)==null?void 0:Ve.get(it.resolvedPath))||0;(T.seenEmittedFiles??(T.seenEmittedFiles=new Map)).set(it.resolvedPath,_t|Ye);const ut=((pt=T.affectedFilesPendingEmit)==null?void 0:pt.get(it.resolvedPath))||ke,lt=tZ(ut,_t|Ye);lt?(T.affectedFilesPendingEmit??(T.affectedFilesPendingEmit=new Map)).set(it.resolvedPath,lt):(Le=T.affectedFilesPendingEmit)==null||Le.delete(it.resolvedPath)}else T.changedFilesSet.clear();return{result:Ft,affected:ht}}function V(de,ue){return gv(T.compilerOptions)?(Ne,Be,Ve,pt,Le,ht)=>{var ke,_t,Dt,Ft;if(iT(Ne))if(Kg(T.compilerOptions)){if(T.compilerOptions.composite){const Ye=it(T.outSignature,void 0);if(!Ye)return;T.outSignature=Ye}}else{ce.assert((Le==null?void 0:Le.length)===1);let Ye;if(!ue){const ut=Le[0],lt=T.fileInfos.get(ut.resolvedPath);if(lt.signature===ut.version){const zt=Dxe(T.program,ut,Be,s,ht);(ke=ht==null?void 0:ht.diagnostics)!=null&&ke.length||(Ye=zt),zt!==ut.version&&(s.storeFilesChangingSignatureDuringEmit&&(T.filesChangingSignature??(T.filesChangingSignature=new Set)).add(ut.resolvedPath),T.exportedModulesMap&&sD.updateExportedModules(T,ut,ut.exportedModulesFromDeclarationEmit),T.affectedFiles?(((_t=T.oldSignatures)==null?void 0:_t.get(ut.resolvedPath))===void 0&&(T.oldSignatures??(T.oldSignatures=new Map)).set(ut.resolvedPath,lt.signature||!1),lt.signature=zt):(lt.signature=zt,(Dt=T.oldExportedModulesMap)==null||Dt.clear()))}}if(T.compilerOptions.composite){const ut=Le[0].resolvedPath;if(Ye=it((Ft=T.emitSignatures)==null?void 0:Ft.get(ut),Ye),!Ye)return;(T.emitSignatures??(T.emitSignatures=new Map)).set(ut,Ye)}}de?de(Ne,Be,Ve,pt,Le,ht):s.writeFile?s.writeFile(Ne,Be,Ve,pt,Le,ht):T.program.writeFile(Ne,Be,Ve,pt,Le,ht);function it(Ye,ut){const lt=!Ye||As(Ye)?Ye:Ye[0];if(ut??(ut=bF(Be,s,ht)),ut===lt){if(Ye===lt)return;ht?ht.differsOnlyInMap=!0:ht={differsOnlyInMap:!0}}else T.hasChangedEmitSignature=!0,T.latestChangedDtsFile=Ne;return ut}}:de||wc(s,s.writeFile)}function ee(de,ue,Ne,Be,Ve){t===1&&sJe(T,de);const pt=ese(I,de,ue,Ne);if(pt)return pt;if(!de)if(t===1){let Le=[],ht=!1,ke,_t=[],Dt;for(;Dt=O(ue,Ne,Be,Ve);)ht=ht||Dt.result.emitSkipped,ke=Oi(ke,Dt.result.diagnostics),_t=Oi(_t,Dt.result.emittedFiles),Le=Oi(Le,Dt.result.sourceMaps);return{emitSkipped:ht,diagnostics:ke||Zn,emittedFiles:_t,sourceMaps:Le}}else Nct(T,Be);return ce.checkDefined(T.program).emit(de,V(ue,Ve),Ne,Be,Ve)}function te(de,ue){for(;;){const Ne=z4e(T,de,s);let Be;if(Ne)if(Ne!==T.program){const Ve=Ne;if((!ue||!ue(Ve))&&(Be=ege(T,Ve,de)),T.seenAffectedFiles.add(Ve.resolvedPath),T.affectedFilesIndex++,T.buildInfoEmitPending=!0,!Be)continue}else Be=T.program.getSemanticDiagnostics(void 0,de),T.changedFilesSet.clear(),T.programEmitPending=B3(T.compilerOptions);else return;return{result:Be,affected:Ne}}}function oe(de,ue){sJe(T,de);const Ne=ce.checkDefined(T.program).getCompilerOptions();if(Kg(Ne))return ce.assert(!T.semanticDiagnosticsPerFile),ce.checkDefined(T.program).getSemanticDiagnostics(de,ue);if(de)return ege(T,de,ue);for(;te(ue););let Be;for(const Ve of ce.checkDefined(T.program).getSourceFiles())Be=Oi(Be,ege(T,Ve,ue));return Be||Zn}}function nZ(t,r,s){var l;const m=((l=t.affectedFilesPendingEmit)==null?void 0:l.get(r))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(r,m|s)}function V4e(t){return As(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:As(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function nge(t,r){return U1(t)?r:t[1]||8}function TF(t,r){return t||B3(r||{})}function rge(t,r,s){var l,m,y,T;const D=t.program,I=qc(Su(r,s.getCurrentDirectory())),W=_v(s.useCaseSensitiveFileNames());let O;const V=(l=D.fileNames)==null?void 0:l.map(oe);let ee;const te=D.latestChangedDtsFile?de(D.latestChangedDtsFile):void 0;if(Axe(D)){const Ve=new Map;D.fileInfos.forEach((pt,Le)=>{const ht=ue(Le+1);Ve.set(ht,As(pt)?{version:pt,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:pt)}),O={fileInfos:Ve,compilerOptions:D.options?oLe(D.options,de):{},latestChangedDtsFile:te,outSignature:D.outSignature,programEmitPending:D.pendingEmit===void 0?void 0:TF(D.pendingEmit,D.options),bundle:t.bundle}}else{ee=(m=D.fileIdsList)==null?void 0:m.map(ht=>new Set(ht.map(ue)));const Ve=new Map,pt=(y=D.options)!=null&&y.composite&&!Kg(D.options)?new Map:void 0;D.fileInfos.forEach((ht,ke)=>{const _t=ue(ke+1),Dt=V4e(ht);Ve.set(_t,Dt),pt&&Dt.signature&&pt.set(_t,Dt.signature)}),(T=D.emitSignatures)==null||T.forEach(ht=>{if(U1(ht))pt.delete(ue(ht));else{const ke=ue(ht[0]);pt.set(ke,!As(ht[1])&&!ht[1].length?[pt.get(ke)]:ht[1])}});const Le=D.affectedFilesPendingEmit?B3(D.options||{}):void 0;O={fileInfos:Ve,compilerOptions:D.options?oLe(D.options,de):{},referencedMap:Be(D.referencedMap),exportedModulesMap:Be(D.exportedModulesMap),semanticDiagnosticsPerFile:D.semanticDiagnosticsPerFile&&QT(D.semanticDiagnosticsPerFile,ht=>ue(U1(ht)?ht:ht[0]),ht=>U1(ht)?Zn:ht[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:D.affectedFilesPendingEmit&&QT(D.affectedFilesPendingEmit,ht=>ue(U1(ht)?ht:ht[0]),ht=>nge(ht,Le)),changedFilesSet:new Set(Vn(D.changeFileSet,ue)),latestChangedDtsFile:te,emitSignatures:pt!=null&&pt.size?pt:void 0}}return{getState:()=>O,saveEmitState:ku,restoreEmitState:ku,getProgram:Na,getProgramOrUndefined:eE,releaseProgram:ku,getCompilerOptions:()=>O.compilerOptions,getSourceFile:Na,getSourceFiles:Na,getOptionsDiagnostics:Na,getGlobalDiagnostics:Na,getConfigFileParsingDiagnostics:Na,getSyntacticDiagnostics:Na,getDeclarationDiagnostics:Na,getSemanticDiagnostics:Na,emit:Na,getAllDependencies:Na,getCurrentDirectory:Na,emitNextAffectedFile:Na,getSemanticDiagnosticsOfNextAffectedFile:Na,emitBuildInfo:Na,close:ku,hasChangedEmitSignature:bg};function oe(Ve){return _h(Ve,I,W)}function de(Ve){return Su(Ve,I)}function ue(Ve){return V[Ve-1]}function Ne(Ve){return ee[Ve-1]}function Be(Ve){if(!Ve)return;const pt=sD.createManyToManyPathMap();return Ve.forEach(([Le,ht])=>pt.set(ue(Le),Ne(ht))),pt}}function ige(t,r,s){const l=qc(Su(r,s.getCurrentDirectory())),m=_v(s.useCaseSensitiveFileNames()),y=new Map;let T=0;const D=[];return t.fileInfos.forEach((I,W)=>{const O=_h(t.fileNames[W],l,m),V=As(I)?I:I.version;if(y.set(O,V),Tt().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:l=>s().getSourceFile(l),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:l=>s().getOptionsDiagnostics(l),getGlobalDiagnostics:l=>s().getGlobalDiagnostics(l),getConfigFileParsingDiagnostics:()=>r,getSyntacticDiagnostics:(l,m)=>s().getSyntacticDiagnostics(l,m),getDeclarationDiagnostics:(l,m)=>s().getDeclarationDiagnostics(l,m),getSemanticDiagnostics:(l,m)=>s().getSemanticDiagnostics(l,m),emit:(l,m,y,T,D)=>s().emit(l,m,y,T,D),emitBuildInfo:(l,m)=>s().emitBuildInfo(l,m),getAllDependencies:Na,getCurrentDirectory:()=>s().getCurrentDirectory(),close:ku};function s(){return ce.checkDefined(t().program)}}var age,sge,U4e=G({"src/compiler/builder.ts"(){Ad(),age=(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))(age||{}),sge=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(sge||{})}});function kxe(t,r,s,l,m,y){return Ixe(0,Cxe(t,r,s,l,m,y))}function fse(t,r,s,l,m,y){return Ixe(1,Cxe(t,r,s,l,m,y))}function Pxe(t,r,s,l,m,y){const{newProgram:T,configFileParsingDiagnostics:D}=Cxe(t,r,s,l,m,y);return oge(()=>({program:T,compilerOptions:T.getCompilerOptions()}),D)}var Nxe=G({"src/compiler/builderPublic.ts"(){Ad()}});function H4e(t){return h_(t,"/node_modules/.staging")?DM(t,"/.staging"):gt(kX,r=>Ub(t,r))?void 0:t}function wxe(t,r){if(r<=1)return 1;let s=1,l=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==q&&!l&&t[1].search(/[a-zA-Z]\$$/)===0){if(r===2)return 2;s=2,l=!0}return l&&!t[s].match(/^users$/i)?s:s+2}function cge(t,r){if(r===void 0&&(r=t.length),r<=2)return!1;const s=wxe(t,r);return r>s+1}function J4e(t){return _se(qc(t))}function gJe(t,r){if(r.lengthm.length+1?Lxe(D,T,Math.max(m.length+1,I+1)):{dir:s,dirPath:l,nonRecursive:!0}:Mxe(D,T,T.length-1,I,W,m)}function Mxe(t,r,s,l,m,y){if(m!==-1)return Lxe(t,r,m+1);let T=!0,D=s;for(let I=0;It.getCurrentDirectory()),Ve=t.getCachedDirectoryStructureHost(),pt=new Map,Le=IR(Be(),t.getCanonicalFileName,t.getCompilationSettings()),ht=new Map,ke=T2e(Be(),t.getCanonicalFileName,t.getCompilationSettings(),Le.getPackageJsonInfoCache()),_t=new Map,Dt=IR(Be(),t.getCanonicalFileName,SLe(t.getCompilationSettings()),Le.getPackageJsonInfoCache()),Ft=new Map,it=new Map,Ye=Oxe(r,Be),ut=t.toPath(Ye),lt=g0(ut),zt=new Map;return{getModuleResolutionCache:()=>Le,startRecordingFilesWithChangedResolutions:cr,finishRecordingFilesWithChangedResolutions:un,startCachingPerDirectoryResolution:Or,finishCachingPerDirectoryResolution:Ut,resolveModuleNameLiterals:Gn,resolveTypeReferenceDirectiveReferences:ei,resolveLibrary:Ur,resolveSingleModuleNameWithoutWatching:so,removeResolutionsFromProjectReferenceRedirects:Fi,removeResolutionsOfFile:ta,hasChangedAutomaticTypeDirectiveNames:()=>V,invalidateResolutionOfFile:jc,invalidateResolutionsOfFailedLookupLocations:Aa,setFilesWithInvalidatedNonRelativeUnresolvedImports:Xu,createHasInvalidatedResolutions:pn,isFileWithInvalidatedNonRelativeUnresolvedImports:on,updateTypeRootsWatch:Ir,closeTypeRootsWatch:Jr,clear:Mn,onChangesAffectModuleResolution:kn};function Wt(xt){return xt.resolvedModule}function tt(xt){return xt.resolvedTypeReferenceDirective}function Mn(){Mh(Ft,dC),Mh(it,dC),T.clear(),Jr(),pt.clear(),ht.clear(),W.clear(),D.clear(),I.clear(),oe=void 0,de=void 0,ue=void 0,te=void 0,ee=void 0,Ne=!1,Le.clear(),ke.clear(),Le.update(t.getCompilationSettings()),ke.update(t.getCompilationSettings()),Dt.clear(),O.clear(),_t.clear(),V=!1}function kn(){Ne=!0,Le.clearAllExceptPackageJsonInfoCache(),ke.clearAllExceptPackageJsonInfoCache(),Le.update(t.getCompilationSettings()),ke.update(t.getCompilationSettings())}function cr(){l=[]}function un(){const xt=l;return l=void 0,xt}function on(xt){if(!y)return!1;const Kn=y.get(xt);return!!Kn&&!!Kn.length}function pn(xt,Kn){Aa();const gn=m;return m=void 0,{hasInvalidatedResolutions:qr=>xt(qr)||Ne||!!(gn!=null&&gn.has(qr))||on(qr),hasInvalidatedLibResolutions:qr=>{var mt;return Kn(qr)||!!((mt=_t==null?void 0:_t.get(qr))!=null&&mt.isInvalidated)}}}function Or(){Le.clearAllExceptPackageJsonInfoCache(),ke.clearAllExceptPackageJsonInfoCache(),Dt.clearAllExceptPackageJsonInfoCache(),T.forEach(Oc),T.clear()}function Xr(xt){_t.forEach((Kn,gn)=>{var qr;(qr=xt==null?void 0:xt.resolvedLibReferences)!=null&&qr.has(gn)||(al(Kn,t.toPath(Xae(xt.getCompilerOptions(),Be(),gn)),Wt),_t.delete(gn))})}function Ut(xt,Kn){y=void 0,Ne=!1,T.forEach(Oc),T.clear(),xt!==Kn&&(Xr(xt),xt==null||xt.getSourceFiles().forEach(gn=>{var qr;const mt=h1(gn)?((qr=gn.packageJsonLocations)==null?void 0:qr.length)??0:0,_r=O.get(gn.path)??Zn;for(let Cn=_r.length;Cnmt)for(let Cn=mt;Cn<_r.length;Cn++)it.get(_r[Cn]).files--;mt?O.set(gn.path,gn.packageJsonLocations):O.delete(gn.path)}),O.forEach((gn,qr)=>{xt!=null&&xt.getSourceFileByPath(qr)||(gn.forEach(mt=>it.get(mt).files--),O.delete(qr))})),Ft.forEach((gn,qr)=>{gn.refCount===0&&(Ft.delete(qr),gn.watcher.close())}),it.forEach((gn,qr)=>{gn.files===0&&gn.resolutions===0&&(it.delete(qr),gn.watcher.close())}),V=!1}function In(xt,Kn,gn,qr,mt){var _r;const Cn=((_r=t.getCompilerHost)==null?void 0:_r.call(t))||t,oi=s4(xt,Kn,gn,Cn,Le,qr,mt);if(!t.getGlobalCache)return oi;const Qr=t.getGlobalCache();if(Qr!==void 0&&!tb(xt)&&!(oi.resolvedModule&&KH(oi.resolvedModule.extension))){const{resolvedModule:co,failedLookupLocations:es,affectingLocations:Ui,resolutionDiagnostics:xu}=DQ(ce.checkDefined(t.globalCacheResolutionModuleName)(xt),t.projectName,gn,Cn,Qr,Le);if(co)return oi.resolvedModule=co,oi.failedLookupLocations=gQ(oi.failedLookupLocations,es),oi.affectingLocations=gQ(oi.affectingLocations,Ui),oi.resolutionDiagnostics=gQ(oi.resolutionDiagnostics,xu),oi}return oi}function gr(xt,Kn,gn){return{nameAndMode:P$,resolve:(qr,mt)=>In(qr,xt,gn,Kn,mt)}}function Cr({entries:xt,containingFile:Kn,containingSourceFile:gn,redirectedReference:qr,options:mt,perFileCache:_r,reusedNames:Cn,loader:oi,getResolutionWithResolvedFileName:Qr,deferWatchingNonRelativeResolution:co,shouldRetryResolution:es,logChanges:Ui}){var xu;const We=t.toPath(Kn),Re=_r.get(We)||_r.set(We,N3()).get(We),wt=[],$e=Ui&&on(We),Zt=t.getCurrentProgram(),xe=Zt&&Zt.getResolvedProjectReferenceToRedirect(Kn),an=xe?!qr||qr.sourceFile.path!==xe.sourceFile.path:!!qr,Un=N3();for(const mi of xt){const Ji=oi.nameAndMode.getName(mi),zo=oi.nameAndMode.getMode(mi,gn);let Ca=Re.get(Ji,zo);if(!Un.has(Ji,zo)&&(Ne||an||!Ca||Ca.isInvalidated||$e&&!tb(Ji)&&es(Ca))){const Qa=Ca;Ca=oi.resolve(Ji,zo),t.onDiscoveredSymlink&&K4e(Ca)&&t.onDiscoveredSymlink(),Re.set(Ji,zo,Ca),di(Ji,Ca,We,Qr,co),Qa&&al(Qa,We,Qr),Ui&&l&&!rr(Qa,Ca)&&(l.push(We),Ui=!1)}else{const Qa=((xu=t.getCompilerHost)==null?void 0:xu.call(t))||t;if(Dk(mt,Qa)&&!Un.has(Ji,zo)){const Ks=Qr(Ca);Vf(Qa,_r===pt?Ks!=null&&Ks.resolvedFileName?Ks.packageId?w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ks!=null&&Ks.resolvedFileName?Ks.packageId?w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ji,Kn,Ks==null?void 0:Ks.resolvedFileName,(Ks==null?void 0:Ks.packageId)&&pP(Ks.packageId))}}ce.assert(Ca!==void 0&&!Ca.isInvalidated),Un.set(Ji,zo,!0),wt.push(Ca)}return Cn==null||Cn.forEach(mi=>Un.set(oi.nameAndMode.getName(mi),oi.nameAndMode.getMode(mi,gn),!0)),Re.size()!==Un.size()&&Re.forEach((mi,Ji,zo)=>{Un.has(Ji,zo)||(al(mi,We,Qr),Re.delete(Ji,zo))}),wt;function rr(mi,Ji){if(mi===Ji)return!0;if(!mi||!Ji)return!1;const zo=Qr(mi),Ca=Qr(Ji);return zo===Ca?!0:!zo||!Ca?!1:zo.resolvedFileName===Ca.resolvedFileName}}function ei(xt,Kn,gn,qr,mt,_r){var Cn;return Cr({entries:xt,containingFile:Kn,containingSourceFile:mt,redirectedReference:gn,options:qr,reusedNames:_r,perFileCache:ht,loader:PA(Kn,gn,qr,((Cn=t.getCompilerHost)==null?void 0:Cn.call(t))||t,ke),getResolutionWithResolvedFileName:tt,shouldRetryResolution:oi=>oi.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Gn(xt,Kn,gn,qr,mt,_r){return Cr({entries:xt,containingFile:Kn,containingSourceFile:mt,redirectedReference:gn,options:qr,reusedNames:_r,perFileCache:pt,loader:gr(Kn,gn,qr),getResolutionWithResolvedFileName:Wt,shouldRetryResolution:Cn=>!Cn.resolvedModule||!G7(Cn.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ur(xt,Kn,gn,qr){var mt;const _r=((mt=t.getCompilerHost)==null?void 0:mt.call(t))||t;let Cn=_t==null?void 0:_t.get(qr);if(!Cn||Cn.isInvalidated){const oi=Cn;Cn=S2e(xt,Kn,gn,_r,Dt);const Qr=t.toPath(Kn);di(xt,Cn,Qr,Wt,!1),_t.set(qr,Cn),oi&&al(oi,Qr,Wt)}else if(Dk(gn,_r)){const oi=Wt(Cn);Vf(_r,oi!=null&&oi.resolvedFileName?oi.packageId?w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,xt,Kn,oi==null?void 0:oi.resolvedFileName,(oi==null?void 0:oi.packageId)&&pP(oi.packageId))}return Cn}function so(xt,Kn){const gn=t.toPath(Kn),qr=pt.get(gn),mt=qr==null?void 0:qr.get(xt,void 0);return mt&&!mt.isInvalidated?mt:In(xt,Kn,t.getCompilationSettings())}function ho(xt){return h_(xt,"/node_modules/@types")}function di(xt,Kn,gn,qr,mt){var _r;if(Kn.refCount)Kn.refCount++,ce.assertIsDefined(Kn.files);else{Kn.refCount=1,ce.assert(!((_r=Kn.files)!=null&&_r.size)),!mt||tb(xt)?ha(Kn):T.add(xt,Kn);const Cn=qr(Kn);if(Cn&&Cn.resolvedFileName){const oi=t.toPath(Cn.resolvedFileName);let Qr=W.get(oi);Qr||W.set(oi,Qr=new Set),Qr.add(Kn)}}(Kn.files??(Kn.files=new Set)).add(gn)}function Nc(xt,Kn){const gn=t.toPath(xt),qr=rZ(xt,gn,Ye,ut,lt,Be);if(qr){const{dir:mt,dirPath:_r,nonRecursive:Cn}=qr;_r===ut?(ce.assert(Cn),Kn=!0):_u(mt,_r,Cn)}return Kn}function ha(xt){ce.assert(!!xt.refCount);const{failedLookupLocations:Kn,affectingLocations:gn,node10Result:qr}=xt;if(!(Kn!=null&&Kn.length)&&!(gn!=null&&gn.length)&&!qr)return;(Kn!=null&&Kn.length||qr)&&D.add(xt);let mt=!1;if(Kn)for(const _r of Kn)mt=Nc(_r,mt);qr&&(mt=Nc(qr,mt)),mt&&_u(Ye,ut,!0),ro(xt,!(Kn!=null&&Kn.length)&&!qr)}function ro(xt,Kn){ce.assert(!!xt.refCount);const{affectingLocations:gn}=xt;if(gn!=null&&gn.length){Kn&&I.add(xt);for(const qr of gn)Gs(qr,!0)}}function Gs(xt,Kn){const gn=it.get(xt);if(gn){Kn?gn.resolutions++:gn.files++;return}let qr=xt;if(t.realpath&&(qr=t.realpath(xt),xt!==qr)){const oi=it.get(qr);if(oi){Kn?oi.resolutions++:oi.files++,oi.paths.add(xt),it.set(xt,oi);return}}const mt=new Set;mt.add(qr);let _r=Rxe(t.toPath(qr))?t.watchAffectingFileLocation(qr,(oi,Qr)=>{Ve==null||Ve.addOrDeleteFile(oi,t.toPath(qr),Qr);const co=Le.getPackageJsonInfoCache().getInternalMap();mt.forEach(es=>{Cn.resolutions&&(te??(te=new Set)).add(es),Cn.files&&(ee??(ee=new Set)).add(es),co==null||co.delete(t.toPath(es))}),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):SF;const Cn={watcher:_r!==SF?{close:()=>{_r.close(),_r=SF}}:_r,resolutions:Kn?1:0,files:Kn?0:1,paths:mt};it.set(qr,Cn),xt!==qr&&(it.set(xt,Cn),mt.add(xt))}function Oc(xt,Kn){const gn=t.getCurrentProgram();!gn||!gn.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Kn)?xt.forEach(ha):xt.forEach(qr=>ro(qr,!0))}function _u(xt,Kn,gn){const qr=Ft.get(Kn);qr?(ce.assert(!!gn==!!qr.nonRecursive),qr.refCount++):Ft.set(Kn,{watcher:mc(xt,Kn,gn),refCount:1,nonRecursive:gn})}function Ku(xt,Kn){const gn=t.toPath(xt),qr=rZ(xt,gn,Ye,ut,lt,Be);if(qr){const{dirPath:mt}=qr;mt===ut?Kn=!0:Rr(mt)}return Kn}function al(xt,Kn,gn){if(ce.checkDefined(xt.files).delete(Kn),xt.refCount--,xt.refCount)return;const qr=gn(xt);if(qr&&qr.resolvedFileName){const oi=t.toPath(qr.resolvedFileName),Qr=W.get(oi);Qr!=null&&Qr.delete(xt)&&!Qr.size&&W.delete(oi)}const{failedLookupLocations:mt,affectingLocations:_r,node10Result:Cn}=xt;if(D.delete(xt)){let oi=!1;if(mt)for(const Qr of mt)oi=Ku(Qr,oi);Cn&&(oi=Ku(Cn,oi)),oi&&Rr(ut)}else _r!=null&&_r.length&&I.delete(xt);if(_r)for(const oi of _r){const Qr=it.get(oi);Qr.resolutions--}}function Rr(xt){const Kn=Ft.get(xt);Kn.refCount--}function mc(xt,Kn,gn){return t.watchDirectoryOfFailedLookupLocation(xt,qr=>{const mt=t.toPath(qr);Ve&&Ve.addOrDeleteFileOrDirectory(qr,mt),Lo(mt,Kn===mt)},gn?0:1)}function Ea(xt,Kn,gn){const qr=xt.get(Kn);qr&&(qr.forEach(mt=>al(mt,Kn,gn)),xt.delete(Kn))}function Fi(xt){if(!Pg(xt,".json"))return;const Kn=t.getCurrentProgram();if(!Kn)return;const gn=Kn.getResolvedProjectReferenceByPath(xt);gn&&gn.commandLine.fileNames.forEach(qr=>ta(t.toPath(qr)))}function ta(xt){Ea(pt,xt,Wt),Ea(ht,xt,tt)}function $a(xt,Kn){if(!xt)return!1;let gn=!1;return xt.forEach(qr=>{if(!(qr.isInvalidated||!Kn(qr))){qr.isInvalidated=gn=!0;for(const mt of ce.checkDefined(qr.files))(m??(m=new Set)).add(mt),V=V||h_(mt,sse)}}),gn}function jc(xt){ta(xt);const Kn=V;$a(W.get(xt),xT)&&V&&!Kn&&t.onChangedAutomaticTypeDirectiveNames()}function Xu(xt){ce.assert(y===xt||y===void 0),y=xt}function Lo(xt,Kn){if(Kn)(ue||(ue=new Set)).add(xt);else{const gn=H4e(xt);if(!gn||(xt=gn,t.fileIsOpen(xt)))return!1;const qr=qc(xt);if(ho(xt)||TMe(xt)||ho(qr)||TMe(qr))(oe||(oe=new Set)).add(xt),(de||(de=new Set)).add(xt);else{if(N4e(t.getCurrentProgram(),xt)||Pg(xt,".map"))return!1;(oe||(oe=new Set)).add(xt);const mt=wW(xt,!0);mt&&(de||(de=new Set)).add(mt)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function To(){const xt=Le.getPackageJsonInfoCache().getInternalMap();xt&&(oe||de||ue)&&xt.forEach((Kn,gn)=>vc(gn)?xt.delete(gn):void 0)}function Aa(){var xt;if(Ne)return ee=void 0,To(),(oe||de||ue||te)&&$a(_t,sl),oe=void 0,de=void 0,ue=void 0,te=void 0,!0;let Kn=!1;return ee&&((xt=t.getCurrentProgram())==null||xt.getSourceFiles().forEach(gn=>{gt(gn.packageJsonLocations,qr=>ee.has(qr))&&((m??(m=new Set)).add(gn.path),Kn=!0)}),ee=void 0),!oe&&!de&&!ue&&!te||(Kn=$a(D,sl)||Kn,To(),oe=void 0,de=void 0,ue=void 0,Kn=$a(I,er)||Kn,te=void 0),Kn}function sl(xt){var Kn;return er(xt)?!0:!oe&&!de&&!ue?!1:((Kn=xt.failedLookupLocations)==null?void 0:Kn.some(gn=>vc(t.toPath(gn))))||!!xt.node10Result&&vc(t.toPath(xt.node10Result))}function vc(xt){return(oe==null?void 0:oe.has(xt))||Ns((de==null?void 0:de.keys())||[],Kn=>xf(xt,Kn)?!0:void 0)||Ns((ue==null?void 0:ue.keys())||[],Kn=>xt.length>Kn.length&&xf(xt,Kn)&&(pv(Kn)||xt[Kn.length]===q)?!0:void 0)}function er(xt){var Kn;return!!te&&((Kn=xt.affectingLocations)==null?void 0:Kn.some(gn=>te.has(gn)))}function Jr(){Mh(zt,Ib)}function li(xt,Kn){return _o(xt)?t.watchTypeRootsDirectory(Kn,gn=>{const qr=t.toPath(gn);Ve&&Ve.addOrDeleteFileOrDirectory(gn,qr),V=!0,t.onChangedAutomaticTypeDirectiveNames();const mt=$4e(Kn,xt,ut,lt,Be,_r=>Ft.has(_r));mt&&Lo(qr,mt===qr)},1):SF}function Ir(){const xt=t.getCompilationSettings();if(xt.types){Jr();return}const Kn=$pe(xt,{getCurrentDirectory:Be});Kn?a6(zt,QT(Kn,gn=>t.toPath(gn)),{createNewValue:li,onDeleteValue:Ib}):Jr()}function _o(xt){return t.getCompilationSettings().typeRoots?!0:J4e(t.toPath(xt))}}function K4e(t){var r,s;return!!((r=t.resolvedModule)!=null&&r.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var X4e=G({"src/compiler/resolutionCache.ts"(){Ad()}});function iZ(t,r){const s=t===m0&&lZ?lZ:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:_v(t.useCaseSensitiveFileNames)};if(!r)return m=>t.write($ae(m,s));const l=new Array(1);return m=>{l[0]=m,t.write(qme(l,s)+s.getNewLine()),l[0]=void 0}}function Y4e(t,r,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&ni(M$,r.code)?(t.clearScreen(),!0):!1}function lge(t,r){return ni(M$,t.code)?r+r:r}function oZ(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function hJe(t,r){return r?(s,l,m)=>{Y4e(t,s,m);let y=`[${NR(oZ(t),"\x1B[90m")}] `;y+=`${p4(s.messageText,t.newLine)}${l+l}`,t.write(y)}:(s,l,m)=>{let y="";Y4e(t,s,m)||(y+=l),y+=`${oZ(t)} - `,y+=`${p4(s.messageText,t.newLine)}${lge(s,l)}`,t.write(y)}}function Wxe(t,r,s,l,m,y){const T=m;T.onUnRecoverableConfigFileDiagnostic=I=>Uxe(m,y,I);const D=QJ(t,r,T,s,l);return T.onUnRecoverableConfigFileDiagnostic=void 0,D}function Bxe(t){return dp(t,r=>r.category===1)}function zxe(t){return gi(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const l=lr(t,m=>m.file!==void 0&&m.file.fileName===s);if(l!==void 0){const{line:m}=Ah(l.file,l.start);return{fileName:s,line:m+1}}})}function w$(t){return t===1?w.Found_1_error_Watching_for_file_changes:w.Found_0_errors_Watching_for_file_changes}function Q4e(t,r){const s=NR(":"+t.line,"\x1B[90m");return VD(t.fileName)&&VD(r)?qp(r,t.fileName,!1)+s:t.fileName+s}function yJe(t,r,s,l){if(t===0)return"";const m=r.filter(O=>O!==void 0),y=m.map(O=>`${O.fileName}:${O.line}`).filter((O,V,ee)=>ee.indexOf(O)===V),T=m[0]&&Q4e(m[0],l.getCurrentDirectory());let D;t===1?D=r[0]!==void 0?[w.Found_1_error_in_0,T]:[w.Found_1_error]:D=y.length===0?[w.Found_0_errors,t]:y.length===1?[w.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,T]:[w.Found_0_errors_in_1_files,t,y.length];const I=W_(...D),W=y.length>1?dse(m,l):"";return`${s}${p4(I.messageText,s)}${s}${s}${W}`}function dse(t,r){const s=t.filter((V,ee,te)=>ee===te.findIndex(oe=>(oe==null?void 0:oe.fileName)===(V==null?void 0:V.fileName)));if(s.length===0)return"";const l=V=>Math.log(V)*Math.LOG10E+1,m=s.map(V=>[V,dp(t,ee=>ee.fileName===V.fileName)]),y=m.reduce((V,ee)=>Math.max(V,ee[1]||0),0),T=w.Errors_Files.message,D=T.split(" ")[0].length,I=Math.max(D,l(y)),W=Math.max(l(y)-D,0);let O="";return O+=" ".repeat(W)+T+` +`):W.messageText}function I(W){return W.file.resolvedPath===r.resolvedPath?`(${W.start},${W.length})`:(T===void 0&&(T=qc(r.resolvedPath)),`${OE(qp(T,W.file.resolvedPath,t.getCanonicalFileName))}(${W.start},${W.length})`)}}function bF(t,r,s){return(r.createHash??G_e)(mJe(t,s))}function Ixe(t,{newProgram:r,host:s,oldProgram:l,configFileParsingDiagnostics:m}){let y=l&&l.getState();if(y&&r===y.program&&m===r.getConfigFileParsingDiagnostics())return r=void 0,y=void 0,l;const T=cD(r,y);r.getBuildInfo=de=>Mct(T,de),r=void 0,l=void 0,y=void 0;const D=()=>T,I=oge(D,m);return I.getState=D,I.saveEmitState=()=>B4e(T),I.restoreEmitState=de=>aJe(T,de),I.hasChangedEmitSignature=()=>!!T.hasChangedEmitSignature,I.getAllDependencies=de=>sD.getAllDependencies(T,ce.checkDefined(T.program),de),I.getSemanticDiagnostics=oe,I.emit=ee,I.releaseProgram=()=>Pct(T),t===0?I.getSemanticDiagnosticsOfNextAffectedFile=te:t===1?(I.getSemanticDiagnosticsOfNextAffectedFile=te,I.emitNextAffectedFile=O,I.emitBuildInfo=W):Na(),I;function W(de,ue){if(T.buildInfoEmitPending){const Ne=ce.checkDefined(T.program).emitBuildInfo(de||wc(s,s.writeFile),ue);return T.buildInfoEmitPending=!1,Ne}return lse}function O(de,ue,Ne,Be){var Ve,pt,Le;let ht=z4e(T,ue,s);const ke=B3(T.compilerOptions);let _t=Ne?ke&24:ke;if(!ht)if(Kg(T.compilerOptions)){if(!T.programEmitPending||(_t=T.programEmitPending,Ne&&(_t=_t&24),!_t))return;ht=T.program}else{const it=wct(T,Ne);if(!it){if(!T.buildInfoEmitPending)return;const Ye=T.program,ut=Ye.emitBuildInfo(de||wc(s,s.writeFile),ue);return T.buildInfoEmitPending=!1,{result:ut,affected:Ye}}({affectedFile:ht,emitKind:_t}=it)}let Dt;_t&7&&(Dt=0),_t&24&&(Dt=Dt===void 0?1:void 0),ht===T.program&&(T.programEmitPending=T.changedFilesSet.size?tZ(ke,_t):T.programEmitPending?tZ(T.programEmitPending,_t):void 0);const Ft=T.program.emit(ht===T.program?void 0:ht,V(de,Be),ue,Dt,Be);if(ht!==T.program){const it=ht;T.seenAffectedFiles.add(it.resolvedPath),T.affectedFilesIndex!==void 0&&T.affectedFilesIndex++,T.buildInfoEmitPending=!0;const Ye=((Ve=T.seenEmittedFiles)==null?void 0:Ve.get(it.resolvedPath))||0;(T.seenEmittedFiles??(T.seenEmittedFiles=new Map)).set(it.resolvedPath,_t|Ye);const ut=((pt=T.affectedFilesPendingEmit)==null?void 0:pt.get(it.resolvedPath))||ke,lt=tZ(ut,_t|Ye);lt?(T.affectedFilesPendingEmit??(T.affectedFilesPendingEmit=new Map)).set(it.resolvedPath,lt):(Le=T.affectedFilesPendingEmit)==null||Le.delete(it.resolvedPath)}else T.changedFilesSet.clear();return{result:Ft,affected:ht}}function V(de,ue){return gv(T.compilerOptions)?(Ne,Be,Ve,pt,Le,ht)=>{var ke,_t,Dt,Ft;if(iT(Ne))if(Kg(T.compilerOptions)){if(T.compilerOptions.composite){const Ye=it(T.outSignature,void 0);if(!Ye)return;T.outSignature=Ye}}else{ce.assert((Le==null?void 0:Le.length)===1);let Ye;if(!ue){const ut=Le[0],lt=T.fileInfos.get(ut.resolvedPath);if(lt.signature===ut.version){const zt=Dxe(T.program,ut,Be,s,ht);(ke=ht==null?void 0:ht.diagnostics)!=null&&ke.length||(Ye=zt),zt!==ut.version&&(s.storeFilesChangingSignatureDuringEmit&&(T.filesChangingSignature??(T.filesChangingSignature=new Set)).add(ut.resolvedPath),T.exportedModulesMap&&sD.updateExportedModules(T,ut,ut.exportedModulesFromDeclarationEmit),T.affectedFiles?(((_t=T.oldSignatures)==null?void 0:_t.get(ut.resolvedPath))===void 0&&(T.oldSignatures??(T.oldSignatures=new Map)).set(ut.resolvedPath,lt.signature||!1),lt.signature=zt):(lt.signature=zt,(Dt=T.oldExportedModulesMap)==null||Dt.clear()))}}if(T.compilerOptions.composite){const ut=Le[0].resolvedPath;if(Ye=it((Ft=T.emitSignatures)==null?void 0:Ft.get(ut),Ye),!Ye)return;(T.emitSignatures??(T.emitSignatures=new Map)).set(ut,Ye)}}de?de(Ne,Be,Ve,pt,Le,ht):s.writeFile?s.writeFile(Ne,Be,Ve,pt,Le,ht):T.program.writeFile(Ne,Be,Ve,pt,Le,ht);function it(Ye,ut){const lt=!Ye||As(Ye)?Ye:Ye[0];if(ut??(ut=bF(Be,s,ht)),ut===lt){if(Ye===lt)return;ht?ht.differsOnlyInMap=!0:ht={differsOnlyInMap:!0}}else T.hasChangedEmitSignature=!0,T.latestChangedDtsFile=Ne;return ut}}:de||wc(s,s.writeFile)}function ee(de,ue,Ne,Be,Ve){t===1&&sJe(T,de);const pt=ese(I,de,ue,Ne);if(pt)return pt;if(!de)if(t===1){let Le=[],ht=!1,ke,_t=[],Dt;for(;Dt=O(ue,Ne,Be,Ve);)ht=ht||Dt.result.emitSkipped,ke=Oi(ke,Dt.result.diagnostics),_t=Oi(_t,Dt.result.emittedFiles),Le=Oi(Le,Dt.result.sourceMaps);return{emitSkipped:ht,diagnostics:ke||Zn,emittedFiles:_t,sourceMaps:Le}}else Nct(T,Be);return ce.checkDefined(T.program).emit(de,V(ue,Ve),Ne,Be,Ve)}function te(de,ue){for(;;){const Ne=z4e(T,de,s);let Be;if(Ne)if(Ne!==T.program){const Ve=Ne;if((!ue||!ue(Ve))&&(Be=ege(T,Ve,de)),T.seenAffectedFiles.add(Ve.resolvedPath),T.affectedFilesIndex++,T.buildInfoEmitPending=!0,!Be)continue}else Be=T.program.getSemanticDiagnostics(void 0,de),T.changedFilesSet.clear(),T.programEmitPending=B3(T.compilerOptions);else return;return{result:Be,affected:Ne}}}function oe(de,ue){sJe(T,de);const Ne=ce.checkDefined(T.program).getCompilerOptions();if(Kg(Ne))return ce.assert(!T.semanticDiagnosticsPerFile),ce.checkDefined(T.program).getSemanticDiagnostics(de,ue);if(de)return ege(T,de,ue);for(;te(ue););let Be;for(const Ve of ce.checkDefined(T.program).getSourceFiles())Be=Oi(Be,ege(T,Ve,ue));return Be||Zn}}function nZ(t,r,s){var l;const m=((l=t.affectedFilesPendingEmit)==null?void 0:l.get(r))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(r,m|s)}function V4e(t){return As(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:As(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function nge(t,r){return U1(t)?r:t[1]||8}function TF(t,r){return t||B3(r||{})}function rge(t,r,s){var l,m,y,T;const D=t.program,I=qc(Su(r,s.getCurrentDirectory())),W=_v(s.useCaseSensitiveFileNames());let O;const V=(l=D.fileNames)==null?void 0:l.map(oe);let ee;const te=D.latestChangedDtsFile?de(D.latestChangedDtsFile):void 0;if(Axe(D)){const Ve=new Map;D.fileInfos.forEach((pt,Le)=>{const ht=ue(Le+1);Ve.set(ht,As(pt)?{version:pt,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:pt)}),O={fileInfos:Ve,compilerOptions:D.options?oLe(D.options,de):{},latestChangedDtsFile:te,outSignature:D.outSignature,programEmitPending:D.pendingEmit===void 0?void 0:TF(D.pendingEmit,D.options),bundle:t.bundle}}else{ee=(m=D.fileIdsList)==null?void 0:m.map(ht=>new Set(ht.map(ue)));const Ve=new Map,pt=(y=D.options)!=null&&y.composite&&!Kg(D.options)?new Map:void 0;D.fileInfos.forEach((ht,ke)=>{const _t=ue(ke+1),Dt=V4e(ht);Ve.set(_t,Dt),pt&&Dt.signature&&pt.set(_t,Dt.signature)}),(T=D.emitSignatures)==null||T.forEach(ht=>{if(U1(ht))pt.delete(ue(ht));else{const ke=ue(ht[0]);pt.set(ke,!As(ht[1])&&!ht[1].length?[pt.get(ke)]:ht[1])}});const Le=D.affectedFilesPendingEmit?B3(D.options||{}):void 0;O={fileInfos:Ve,compilerOptions:D.options?oLe(D.options,de):{},referencedMap:Be(D.referencedMap),exportedModulesMap:Be(D.exportedModulesMap),semanticDiagnosticsPerFile:D.semanticDiagnosticsPerFile&&QT(D.semanticDiagnosticsPerFile,ht=>ue(U1(ht)?ht:ht[0]),ht=>U1(ht)?Zn:ht[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:D.affectedFilesPendingEmit&&QT(D.affectedFilesPendingEmit,ht=>ue(U1(ht)?ht:ht[0]),ht=>nge(ht,Le)),changedFilesSet:new Set(Vn(D.changeFileSet,ue)),latestChangedDtsFile:te,emitSignatures:pt!=null&&pt.size?pt:void 0}}return{getState:()=>O,saveEmitState:ku,restoreEmitState:ku,getProgram:Na,getProgramOrUndefined:eE,releaseProgram:ku,getCompilerOptions:()=>O.compilerOptions,getSourceFile:Na,getSourceFiles:Na,getOptionsDiagnostics:Na,getGlobalDiagnostics:Na,getConfigFileParsingDiagnostics:Na,getSyntacticDiagnostics:Na,getDeclarationDiagnostics:Na,getSemanticDiagnostics:Na,emit:Na,getAllDependencies:Na,getCurrentDirectory:Na,emitNextAffectedFile:Na,getSemanticDiagnosticsOfNextAffectedFile:Na,emitBuildInfo:Na,close:ku,hasChangedEmitSignature:bg};function oe(Ve){return _h(Ve,I,W)}function de(Ve){return Su(Ve,I)}function ue(Ve){return V[Ve-1]}function Ne(Ve){return ee[Ve-1]}function Be(Ve){if(!Ve)return;const pt=sD.createManyToManyPathMap();return Ve.forEach(([Le,ht])=>pt.set(ue(Le),Ne(ht))),pt}}function ige(t,r,s){const l=qc(Su(r,s.getCurrentDirectory())),m=_v(s.useCaseSensitiveFileNames()),y=new Map;let T=0;const D=[];return t.fileInfos.forEach((I,W)=>{const O=_h(t.fileNames[W],l,m),V=As(I)?I:I.version;if(y.set(O,V),Tt().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:l=>s().getSourceFile(l),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:l=>s().getOptionsDiagnostics(l),getGlobalDiagnostics:l=>s().getGlobalDiagnostics(l),getConfigFileParsingDiagnostics:()=>r,getSyntacticDiagnostics:(l,m)=>s().getSyntacticDiagnostics(l,m),getDeclarationDiagnostics:(l,m)=>s().getDeclarationDiagnostics(l,m),getSemanticDiagnostics:(l,m)=>s().getSemanticDiagnostics(l,m),emit:(l,m,y,T,D)=>s().emit(l,m,y,T,D),emitBuildInfo:(l,m)=>s().emitBuildInfo(l,m),getAllDependencies:Na,getCurrentDirectory:()=>s().getCurrentDirectory(),close:ku};function s(){return ce.checkDefined(t().program)}}var age,sge,U4e=G({"src/compiler/builder.ts"(){Ad(),age=(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))(age||{}),sge=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(sge||{})}});function kxe(t,r,s,l,m,y){return Ixe(0,Cxe(t,r,s,l,m,y))}function fse(t,r,s,l,m,y){return Ixe(1,Cxe(t,r,s,l,m,y))}function Pxe(t,r,s,l,m,y){const{newProgram:T,configFileParsingDiagnostics:D}=Cxe(t,r,s,l,m,y);return oge(()=>({program:T,compilerOptions:T.getCompilerOptions()}),D)}var Nxe=G({"src/compiler/builderPublic.ts"(){Ad()}});function H4e(t){return h_(t,"/node_modules/.staging")?DM(t,"/.staging"):gt(kX,r=>Ub(t,r))?void 0:t}function wxe(t,r){if(r<=1)return 1;let s=1,l=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==q&&!l&&t[1].search(/[a-zA-Z]\$$/)===0){if(r===2)return 2;s=2,l=!0}return l&&!t[s].match(/^users$/i)?s:s+2}function cge(t,r){if(r===void 0&&(r=t.length),r<=2)return!1;const s=wxe(t,r);return r>s+1}function J4e(t){return _se(qc(t))}function gJe(t,r){if(r.lengthm.length+1?Lxe(D,T,Math.max(m.length+1,I+1)):{dir:s,dirPath:l,nonRecursive:!0}:Mxe(D,T,T.length-1,I,W,m)}function Mxe(t,r,s,l,m,y){if(m!==-1)return Lxe(t,r,m+1);let T=!0,D=s;for(let I=0;It.getCurrentDirectory()),Ve=t.getCachedDirectoryStructureHost(),pt=new Map,Le=IR(Be(),t.getCanonicalFileName,t.getCompilationSettings()),ht=new Map,ke=T2e(Be(),t.getCanonicalFileName,t.getCompilationSettings(),Le.getPackageJsonInfoCache()),_t=new Map,Dt=IR(Be(),t.getCanonicalFileName,SLe(t.getCompilationSettings()),Le.getPackageJsonInfoCache()),Ft=new Map,it=new Map,Ye=Oxe(r,Be),ut=t.toPath(Ye),lt=g0(ut),zt=new Map;return{getModuleResolutionCache:()=>Le,startRecordingFilesWithChangedResolutions:cr,finishRecordingFilesWithChangedResolutions:un,startCachingPerDirectoryResolution:Or,finishCachingPerDirectoryResolution:Ut,resolveModuleNameLiterals:Gn,resolveTypeReferenceDirectiveReferences:ei,resolveLibrary:Ur,resolveSingleModuleNameWithoutWatching:so,removeResolutionsFromProjectReferenceRedirects:Fi,removeResolutionsOfFile:ta,hasChangedAutomaticTypeDirectiveNames:()=>V,invalidateResolutionOfFile:jc,invalidateResolutionsOfFailedLookupLocations:Aa,setFilesWithInvalidatedNonRelativeUnresolvedImports:Xu,createHasInvalidatedResolutions:pn,isFileWithInvalidatedNonRelativeUnresolvedImports:on,updateTypeRootsWatch:Ir,closeTypeRootsWatch:Jr,clear:Mn,onChangesAffectModuleResolution:kn};function Wt(xt){return xt.resolvedModule}function tt(xt){return xt.resolvedTypeReferenceDirective}function Mn(){Mh(Ft,dC),Mh(it,dC),T.clear(),Jr(),pt.clear(),ht.clear(),W.clear(),D.clear(),I.clear(),oe=void 0,de=void 0,ue=void 0,te=void 0,ee=void 0,Ne=!1,Le.clear(),ke.clear(),Le.update(t.getCompilationSettings()),ke.update(t.getCompilationSettings()),Dt.clear(),O.clear(),_t.clear(),V=!1}function kn(){Ne=!0,Le.clearAllExceptPackageJsonInfoCache(),ke.clearAllExceptPackageJsonInfoCache(),Le.update(t.getCompilationSettings()),ke.update(t.getCompilationSettings())}function cr(){l=[]}function un(){const xt=l;return l=void 0,xt}function on(xt){if(!y)return!1;const Kn=y.get(xt);return!!Kn&&!!Kn.length}function pn(xt,Kn){Aa();const gn=m;return m=void 0,{hasInvalidatedResolutions:qr=>xt(qr)||Ne||!!(gn!=null&&gn.has(qr))||on(qr),hasInvalidatedLibResolutions:qr=>{var mt;return Kn(qr)||!!((mt=_t==null?void 0:_t.get(qr))!=null&&mt.isInvalidated)}}}function Or(){Le.clearAllExceptPackageJsonInfoCache(),ke.clearAllExceptPackageJsonInfoCache(),Dt.clearAllExceptPackageJsonInfoCache(),T.forEach(Oc),T.clear()}function Xr(xt){_t.forEach((Kn,gn)=>{var qr;(qr=xt==null?void 0:xt.resolvedLibReferences)!=null&&qr.has(gn)||(al(Kn,t.toPath(Xae(xt.getCompilerOptions(),Be(),gn)),Wt),_t.delete(gn))})}function Ut(xt,Kn){y=void 0,Ne=!1,T.forEach(Oc),T.clear(),xt!==Kn&&(Xr(xt),xt==null||xt.getSourceFiles().forEach(gn=>{var qr;const mt=h1(gn)?((qr=gn.packageJsonLocations)==null?void 0:qr.length)??0:0,_r=O.get(gn.path)??Zn;for(let Cn=_r.length;Cnmt)for(let Cn=mt;Cn<_r.length;Cn++)it.get(_r[Cn]).files--;mt?O.set(gn.path,gn.packageJsonLocations):O.delete(gn.path)}),O.forEach((gn,qr)=>{xt!=null&&xt.getSourceFileByPath(qr)||(gn.forEach(mt=>it.get(mt).files--),O.delete(qr))})),Ft.forEach((gn,qr)=>{gn.refCount===0&&(Ft.delete(qr),gn.watcher.close())}),it.forEach((gn,qr)=>{gn.files===0&&gn.resolutions===0&&(it.delete(qr),gn.watcher.close())}),V=!1}function In(xt,Kn,gn,qr,mt){var _r;const Cn=((_r=t.getCompilerHost)==null?void 0:_r.call(t))||t,oi=a4(xt,Kn,gn,Cn,Le,qr,mt);if(!t.getGlobalCache)return oi;const Qr=t.getGlobalCache();if(Qr!==void 0&&!tb(xt)&&!(oi.resolvedModule&&KH(oi.resolvedModule.extension))){const{resolvedModule:co,failedLookupLocations:es,affectingLocations:Ui,resolutionDiagnostics:xu}=DQ(ce.checkDefined(t.globalCacheResolutionModuleName)(xt),t.projectName,gn,Cn,Qr,Le);if(co)return oi.resolvedModule=co,oi.failedLookupLocations=gQ(oi.failedLookupLocations,es),oi.affectingLocations=gQ(oi.affectingLocations,Ui),oi.resolutionDiagnostics=gQ(oi.resolutionDiagnostics,xu),oi}return oi}function gr(xt,Kn,gn){return{nameAndMode:P$,resolve:(qr,mt)=>In(qr,xt,gn,Kn,mt)}}function Cr({entries:xt,containingFile:Kn,containingSourceFile:gn,redirectedReference:qr,options:mt,perFileCache:_r,reusedNames:Cn,loader:oi,getResolutionWithResolvedFileName:Qr,deferWatchingNonRelativeResolution:co,shouldRetryResolution:es,logChanges:Ui}){var xu;const We=t.toPath(Kn),Re=_r.get(We)||_r.set(We,N3()).get(We),wt=[],$e=Ui&&on(We),Zt=t.getCurrentProgram(),xe=Zt&&Zt.getResolvedProjectReferenceToRedirect(Kn),an=xe?!qr||qr.sourceFile.path!==xe.sourceFile.path:!!qr,Un=N3();for(const mi of xt){const Ji=oi.nameAndMode.getName(mi),zo=oi.nameAndMode.getMode(mi,gn);let Ca=Re.get(Ji,zo);if(!Un.has(Ji,zo)&&(Ne||an||!Ca||Ca.isInvalidated||$e&&!tb(Ji)&&es(Ca))){const Qa=Ca;Ca=oi.resolve(Ji,zo),t.onDiscoveredSymlink&&K4e(Ca)&&t.onDiscoveredSymlink(),Re.set(Ji,zo,Ca),di(Ji,Ca,We,Qr,co),Qa&&al(Qa,We,Qr),Ui&&l&&!rr(Qa,Ca)&&(l.push(We),Ui=!1)}else{const Qa=((xu=t.getCompilerHost)==null?void 0:xu.call(t))||t;if(Dk(mt,Qa)&&!Un.has(Ji,zo)){const Ks=Qr(Ca);Vf(Qa,_r===pt?Ks!=null&&Ks.resolvedFileName?Ks.packageId?w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ks!=null&&Ks.resolvedFileName?Ks.packageId?w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ji,Kn,Ks==null?void 0:Ks.resolvedFileName,(Ks==null?void 0:Ks.packageId)&&pP(Ks.packageId))}}ce.assert(Ca!==void 0&&!Ca.isInvalidated),Un.set(Ji,zo,!0),wt.push(Ca)}return Cn==null||Cn.forEach(mi=>Un.set(oi.nameAndMode.getName(mi),oi.nameAndMode.getMode(mi,gn),!0)),Re.size()!==Un.size()&&Re.forEach((mi,Ji,zo)=>{Un.has(Ji,zo)||(al(mi,We,Qr),Re.delete(Ji,zo))}),wt;function rr(mi,Ji){if(mi===Ji)return!0;if(!mi||!Ji)return!1;const zo=Qr(mi),Ca=Qr(Ji);return zo===Ca?!0:!zo||!Ca?!1:zo.resolvedFileName===Ca.resolvedFileName}}function ei(xt,Kn,gn,qr,mt,_r){var Cn;return Cr({entries:xt,containingFile:Kn,containingSourceFile:mt,redirectedReference:gn,options:qr,reusedNames:_r,perFileCache:ht,loader:PA(Kn,gn,qr,((Cn=t.getCompilerHost)==null?void 0:Cn.call(t))||t,ke),getResolutionWithResolvedFileName:tt,shouldRetryResolution:oi=>oi.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Gn(xt,Kn,gn,qr,mt,_r){return Cr({entries:xt,containingFile:Kn,containingSourceFile:mt,redirectedReference:gn,options:qr,reusedNames:_r,perFileCache:pt,loader:gr(Kn,gn,qr),getResolutionWithResolvedFileName:Wt,shouldRetryResolution:Cn=>!Cn.resolvedModule||!G7(Cn.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ur(xt,Kn,gn,qr){var mt;const _r=((mt=t.getCompilerHost)==null?void 0:mt.call(t))||t;let Cn=_t==null?void 0:_t.get(qr);if(!Cn||Cn.isInvalidated){const oi=Cn;Cn=S2e(xt,Kn,gn,_r,Dt);const Qr=t.toPath(Kn);di(xt,Cn,Qr,Wt,!1),_t.set(qr,Cn),oi&&al(oi,Qr,Wt)}else if(Dk(gn,_r)){const oi=Wt(Cn);Vf(_r,oi!=null&&oi.resolvedFileName?oi.packageId?w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:w.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,xt,Kn,oi==null?void 0:oi.resolvedFileName,(oi==null?void 0:oi.packageId)&&pP(oi.packageId))}return Cn}function so(xt,Kn){const gn=t.toPath(Kn),qr=pt.get(gn),mt=qr==null?void 0:qr.get(xt,void 0);return mt&&!mt.isInvalidated?mt:In(xt,Kn,t.getCompilationSettings())}function ho(xt){return h_(xt,"/node_modules/@types")}function di(xt,Kn,gn,qr,mt){var _r;if(Kn.refCount)Kn.refCount++,ce.assertIsDefined(Kn.files);else{Kn.refCount=1,ce.assert(!((_r=Kn.files)!=null&&_r.size)),!mt||tb(xt)?ha(Kn):T.add(xt,Kn);const Cn=qr(Kn);if(Cn&&Cn.resolvedFileName){const oi=t.toPath(Cn.resolvedFileName);let Qr=W.get(oi);Qr||W.set(oi,Qr=new Set),Qr.add(Kn)}}(Kn.files??(Kn.files=new Set)).add(gn)}function Nc(xt,Kn){const gn=t.toPath(xt),qr=rZ(xt,gn,Ye,ut,lt,Be);if(qr){const{dir:mt,dirPath:_r,nonRecursive:Cn}=qr;_r===ut?(ce.assert(Cn),Kn=!0):_u(mt,_r,Cn)}return Kn}function ha(xt){ce.assert(!!xt.refCount);const{failedLookupLocations:Kn,affectingLocations:gn,node10Result:qr}=xt;if(!(Kn!=null&&Kn.length)&&!(gn!=null&&gn.length)&&!qr)return;(Kn!=null&&Kn.length||qr)&&D.add(xt);let mt=!1;if(Kn)for(const _r of Kn)mt=Nc(_r,mt);qr&&(mt=Nc(qr,mt)),mt&&_u(Ye,ut,!0),ro(xt,!(Kn!=null&&Kn.length)&&!qr)}function ro(xt,Kn){ce.assert(!!xt.refCount);const{affectingLocations:gn}=xt;if(gn!=null&&gn.length){Kn&&I.add(xt);for(const qr of gn)Gs(qr,!0)}}function Gs(xt,Kn){const gn=it.get(xt);if(gn){Kn?gn.resolutions++:gn.files++;return}let qr=xt;if(t.realpath&&(qr=t.realpath(xt),xt!==qr)){const oi=it.get(qr);if(oi){Kn?oi.resolutions++:oi.files++,oi.paths.add(xt),it.set(xt,oi);return}}const mt=new Set;mt.add(qr);let _r=Rxe(t.toPath(qr))?t.watchAffectingFileLocation(qr,(oi,Qr)=>{Ve==null||Ve.addOrDeleteFile(oi,t.toPath(qr),Qr);const co=Le.getPackageJsonInfoCache().getInternalMap();mt.forEach(es=>{Cn.resolutions&&(te??(te=new Set)).add(es),Cn.files&&(ee??(ee=new Set)).add(es),co==null||co.delete(t.toPath(es))}),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):SF;const Cn={watcher:_r!==SF?{close:()=>{_r.close(),_r=SF}}:_r,resolutions:Kn?1:0,files:Kn?0:1,paths:mt};it.set(qr,Cn),xt!==qr&&(it.set(xt,Cn),mt.add(xt))}function Oc(xt,Kn){const gn=t.getCurrentProgram();!gn||!gn.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Kn)?xt.forEach(ha):xt.forEach(qr=>ro(qr,!0))}function _u(xt,Kn,gn){const qr=Ft.get(Kn);qr?(ce.assert(!!gn==!!qr.nonRecursive),qr.refCount++):Ft.set(Kn,{watcher:mc(xt,Kn,gn),refCount:1,nonRecursive:gn})}function Ku(xt,Kn){const gn=t.toPath(xt),qr=rZ(xt,gn,Ye,ut,lt,Be);if(qr){const{dirPath:mt}=qr;mt===ut?Kn=!0:Rr(mt)}return Kn}function al(xt,Kn,gn){if(ce.checkDefined(xt.files).delete(Kn),xt.refCount--,xt.refCount)return;const qr=gn(xt);if(qr&&qr.resolvedFileName){const oi=t.toPath(qr.resolvedFileName),Qr=W.get(oi);Qr!=null&&Qr.delete(xt)&&!Qr.size&&W.delete(oi)}const{failedLookupLocations:mt,affectingLocations:_r,node10Result:Cn}=xt;if(D.delete(xt)){let oi=!1;if(mt)for(const Qr of mt)oi=Ku(Qr,oi);Cn&&(oi=Ku(Cn,oi)),oi&&Rr(ut)}else _r!=null&&_r.length&&I.delete(xt);if(_r)for(const oi of _r){const Qr=it.get(oi);Qr.resolutions--}}function Rr(xt){const Kn=Ft.get(xt);Kn.refCount--}function mc(xt,Kn,gn){return t.watchDirectoryOfFailedLookupLocation(xt,qr=>{const mt=t.toPath(qr);Ve&&Ve.addOrDeleteFileOrDirectory(qr,mt),Lo(mt,Kn===mt)},gn?0:1)}function Ea(xt,Kn,gn){const qr=xt.get(Kn);qr&&(qr.forEach(mt=>al(mt,Kn,gn)),xt.delete(Kn))}function Fi(xt){if(!Pg(xt,".json"))return;const Kn=t.getCurrentProgram();if(!Kn)return;const gn=Kn.getResolvedProjectReferenceByPath(xt);gn&&gn.commandLine.fileNames.forEach(qr=>ta(t.toPath(qr)))}function ta(xt){Ea(pt,xt,Wt),Ea(ht,xt,tt)}function $a(xt,Kn){if(!xt)return!1;let gn=!1;return xt.forEach(qr=>{if(!(qr.isInvalidated||!Kn(qr))){qr.isInvalidated=gn=!0;for(const mt of ce.checkDefined(qr.files))(m??(m=new Set)).add(mt),V=V||h_(mt,sse)}}),gn}function jc(xt){ta(xt);const Kn=V;$a(W.get(xt),xT)&&V&&!Kn&&t.onChangedAutomaticTypeDirectiveNames()}function Xu(xt){ce.assert(y===xt||y===void 0),y=xt}function Lo(xt,Kn){if(Kn)(ue||(ue=new Set)).add(xt);else{const gn=H4e(xt);if(!gn||(xt=gn,t.fileIsOpen(xt)))return!1;const qr=qc(xt);if(ho(xt)||TMe(xt)||ho(qr)||TMe(qr))(oe||(oe=new Set)).add(xt),(de||(de=new Set)).add(xt);else{if(N4e(t.getCurrentProgram(),xt)||Pg(xt,".map"))return!1;(oe||(oe=new Set)).add(xt);const mt=wW(xt,!0);mt&&(de||(de=new Set)).add(mt)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function To(){const xt=Le.getPackageJsonInfoCache().getInternalMap();xt&&(oe||de||ue)&&xt.forEach((Kn,gn)=>vc(gn)?xt.delete(gn):void 0)}function Aa(){var xt;if(Ne)return ee=void 0,To(),(oe||de||ue||te)&&$a(_t,sl),oe=void 0,de=void 0,ue=void 0,te=void 0,!0;let Kn=!1;return ee&&((xt=t.getCurrentProgram())==null||xt.getSourceFiles().forEach(gn=>{gt(gn.packageJsonLocations,qr=>ee.has(qr))&&((m??(m=new Set)).add(gn.path),Kn=!0)}),ee=void 0),!oe&&!de&&!ue&&!te||(Kn=$a(D,sl)||Kn,To(),oe=void 0,de=void 0,ue=void 0,Kn=$a(I,er)||Kn,te=void 0),Kn}function sl(xt){var Kn;return er(xt)?!0:!oe&&!de&&!ue?!1:((Kn=xt.failedLookupLocations)==null?void 0:Kn.some(gn=>vc(t.toPath(gn))))||!!xt.node10Result&&vc(t.toPath(xt.node10Result))}function vc(xt){return(oe==null?void 0:oe.has(xt))||Ns((de==null?void 0:de.keys())||[],Kn=>xf(xt,Kn)?!0:void 0)||Ns((ue==null?void 0:ue.keys())||[],Kn=>xt.length>Kn.length&&xf(xt,Kn)&&(pv(Kn)||xt[Kn.length]===q)?!0:void 0)}function er(xt){var Kn;return!!te&&((Kn=xt.affectingLocations)==null?void 0:Kn.some(gn=>te.has(gn)))}function Jr(){Mh(zt,Ib)}function li(xt,Kn){return _o(xt)?t.watchTypeRootsDirectory(Kn,gn=>{const qr=t.toPath(gn);Ve&&Ve.addOrDeleteFileOrDirectory(gn,qr),V=!0,t.onChangedAutomaticTypeDirectiveNames();const mt=$4e(Kn,xt,ut,lt,Be,_r=>Ft.has(_r));mt&&Lo(qr,mt===qr)},1):SF}function Ir(){const xt=t.getCompilationSettings();if(xt.types){Jr();return}const Kn=$pe(xt,{getCurrentDirectory:Be});Kn?a6(zt,QT(Kn,gn=>t.toPath(gn)),{createNewValue:li,onDeleteValue:Ib}):Jr()}function _o(xt){return t.getCompilationSettings().typeRoots?!0:J4e(t.toPath(xt))}}function K4e(t){var r,s;return!!((r=t.resolvedModule)!=null&&r.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var X4e=G({"src/compiler/resolutionCache.ts"(){Ad()}});function iZ(t,r){const s=t===m0&&lZ?lZ:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:_v(t.useCaseSensitiveFileNames)};if(!r)return m=>t.write($ae(m,s));const l=new Array(1);return m=>{l[0]=m,t.write(qme(l,s)+s.getNewLine()),l[0]=void 0}}function Y4e(t,r,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&ni(M$,r.code)?(t.clearScreen(),!0):!1}function lge(t,r){return ni(M$,t.code)?r+r:r}function oZ(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function hJe(t,r){return r?(s,l,m)=>{Y4e(t,s,m);let y=`[${NR(oZ(t),"\x1B[90m")}] `;y+=`${d4(s.messageText,t.newLine)}${l+l}`,t.write(y)}:(s,l,m)=>{let y="";Y4e(t,s,m)||(y+=l),y+=`${oZ(t)} - `,y+=`${d4(s.messageText,t.newLine)}${lge(s,l)}`,t.write(y)}}function Wxe(t,r,s,l,m,y){const T=m;T.onUnRecoverableConfigFileDiagnostic=I=>Uxe(m,y,I);const D=QJ(t,r,T,s,l);return T.onUnRecoverableConfigFileDiagnostic=void 0,D}function Bxe(t){return dp(t,r=>r.category===1)}function zxe(t){return gi(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const l=lr(t,m=>m.file!==void 0&&m.file.fileName===s);if(l!==void 0){const{line:m}=Ah(l.file,l.start);return{fileName:s,line:m+1}}})}function w$(t){return t===1?w.Found_1_error_Watching_for_file_changes:w.Found_0_errors_Watching_for_file_changes}function Q4e(t,r){const s=NR(":"+t.line,"\x1B[90m");return VD(t.fileName)&&VD(r)?qp(r,t.fileName,!1)+s:t.fileName+s}function yJe(t,r,s,l){if(t===0)return"";const m=r.filter(O=>O!==void 0),y=m.map(O=>`${O.fileName}:${O.line}`).filter((O,V,ee)=>ee.indexOf(O)===V),T=m[0]&&Q4e(m[0],l.getCurrentDirectory());let D;t===1?D=r[0]!==void 0?[w.Found_1_error_in_0,T]:[w.Found_1_error]:D=y.length===0?[w.Found_0_errors,t]:y.length===1?[w.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,T]:[w.Found_0_errors_in_1_files,t,y.length];const I=W_(...D),W=y.length>1?dse(m,l):"";return`${s}${d4(I.messageText,s)}${s}${s}${W}`}function dse(t,r){const s=t.filter((V,ee,te)=>ee===te.findIndex(oe=>(oe==null?void 0:oe.fileName)===(V==null?void 0:V.fileName)));if(s.length===0)return"";const l=V=>Math.log(V)*Math.LOG10E+1,m=s.map(V=>[V,dp(t,ee=>ee.fileName===V.fileName)]),y=m.reduce((V,ee)=>Math.max(V,ee[1]||0),0),T=w.Errors_Files.message,D=T.split(" ")[0].length,I=Math.max(D,l(y)),W=Math.max(l(y)-D,0);let O="";return O+=" ".repeat(W)+T+` `,m.forEach(V=>{const[ee,te]=V,oe=Math.log(te)*Math.LOG10E+1|0,de=oe{r(l.fileName)})}function pse(t,r){var s,l;const m=t.getFileIncludeReasons(),y=T=>r7(T,t.getCurrentDirectory(),t.getCanonicalFileName);for(const T of t.getSourceFiles())r(`${R$(T,y)}`),(s=m.get(T.path))==null||s.forEach(D=>r(` ${uge(t,D,y).messageText}`)),(l=aZ(T,y))==null||l.forEach(D=>r(` ${D.messageText}`))}function aZ(t,r){var s;let l;if(t.path!==t.resolvedPath&&(l??(l=[])).push(Es(void 0,w.File_is_output_of_project_reference_source_0,R$(t.originalFileName,r))),t.redirectInfo&&(l??(l=[])).push(Es(void 0,w.File_redirects_to_file_0,R$(t.redirectInfo.redirectTarget,r))),h1(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(l??(l=[])).push(Es(void 0,w.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,R$(yl(t.packageJsonLocations),r)));break;case 1:t.packageJsonScope?(l??(l=[])).push(Es(void 0,t.packageJsonScope.contents.packageJsonContent.type?w.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:w.File_is_CommonJS_module_because_0_does_not_have_field_type,R$(yl(t.packageJsonLocations),r))):(s=t.packageJsonLocations)!=null&&s.length&&(l??(l=[])).push(Es(void 0,w.File_is_CommonJS_module_because_package_json_was_not_found));break}return l}function mse(t,r){var s;const l=t.getCompilerOptions().configFile;if(!((s=l==null?void 0:l.configFileSpecs)!=null&&s.validatedFilesSpec))return;const m=t.getCanonicalFileName(r),y=qc(Su(l.fileName,t.getCurrentDirectory()));return lr(l.configFileSpecs.validatedFilesSpec,T=>t.getCanonicalFileName(Su(T,y))===m)}function Vxe(t,r){var s,l;const m=t.getCompilerOptions().configFile;if(!((s=m==null?void 0:m.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(m.configFileSpecs.isDefaultIncludeSpec)return!0;const y=Pg(r,".json"),T=qc(Su(m.fileName,t.getCurrentDirectory())),D=t.useCaseSensitiveFileNames();return lr((l=m==null?void 0:m.configFileSpecs)==null?void 0:l.validatedIncludeSpecs,I=>{if(y&&!h_(I,".json"))return!1;const W=roe(I,T,"files");return!!W&&Y2(`(${W})$`,D).test(r)})}function uge(t,r,s){var l,m;const y=t.getCompilerOptions();if(k6(r)){const T=VW(W=>t.getSourceFileByPath(W),r),D=yF(T)?T.file.text.substring(T.pos,T.end):`"${T.text}"`;let I;switch(ce.assert(yF(T)||r.kind===3,"Only synthetic references are imports"),r.kind){case 3:yF(T)?I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2:w.Imported_via_0_from_file_1:T.text===_6?I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:w.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:w.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:ce.assert(!T.packageId),I=w.Referenced_via_0_from_file_1;break;case 5:I=T.packageId?w.Type_library_referenced_via_0_from_file_1_with_packageId_2:w.Type_library_referenced_via_0_from_file_1;break;case 7:ce.assert(!T.packageId),I=w.Library_referenced_via_0_from_file_1;break;default:ce.assertNever(r)}return Es(void 0,I,D,R$(T.file,s),T.packageId&&pP(T.packageId))}switch(r.kind){case 0:if(!((l=y.configFile)!=null&&l.configFileSpecs))return Es(void 0,w.Root_file_specified_for_compilation);const T=Su(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(mse(t,T))return Es(void 0,w.Part_of_files_list_in_tsconfig_json);const I=Vxe(t,T);return As(I)?Es(void 0,w.Matched_by_include_pattern_0_in_1,I,R$(y.configFile,s)):Es(void 0,I?w.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:w.Root_file_specified_for_compilation);case 1:case 2:const W=r.kind===2,O=ce.checkDefined((m=t.getResolvedProjectReferences())==null?void 0:m[r.index]);return Es(void 0,Kg(y)?W?w.Output_from_referenced_project_0_included_because_1_specified:w.Source_from_referenced_project_0_included_because_1_specified:W?w.Output_from_referenced_project_0_included_because_module_is_specified_as_none:w.Source_from_referenced_project_0_included_because_module_is_specified_as_none,R$(O.sourceFile.fileName,s),y.outFile?"--outFile":"--out");case 8:{const V=y.types?r.packageId?[w.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,r.typeReference,pP(r.packageId)]:[w.Entry_point_of_type_library_0_specified_in_compilerOptions,r.typeReference]:r.packageId?[w.Entry_point_for_implicit_type_library_0_with_packageId_1,r.typeReference,pP(r.packageId)]:[w.Entry_point_for_implicit_type_library_0,r.typeReference];return Es(void 0,...V)}case 6:{if(r.index!==void 0)return Es(void 0,w.Library_0_specified_in_compilerOptions,y.lib[r.index]);const V=wT(cQ.type,(te,oe)=>te===iu(y)?oe:void 0),ee=V?[w.Default_library_for_target_0,V]:[w.Default_library];return Es(void 0,...ee)}default:ce.assertNever(r)}}function R$(t,r){const s=As(t)?t:t.fileName;return r?r(s):s}function gse(t,r,s,l,m,y,T,D){const I=!!t.getCompilerOptions().listFilesOnly,W=t.getConfigFileParsingDiagnostics().slice(),O=W.length;Oi(W,t.getSyntacticDiagnostics(void 0,y)),W.length===O&&(Oi(W,t.getOptionsDiagnostics(y)),I||(Oi(W,t.getGlobalDiagnostics(y)),W.length===O&&Oi(W,t.getSemanticDiagnostics(void 0,y))));const V=I?{emitSkipped:!0,diagnostics:Zn}:t.emit(void 0,m,y,T,D),{emittedFiles:ee,diagnostics:te}=V;Oi(W,te);const oe=P8(W);if(oe.forEach(r),s){const de=t.getCurrentDirectory();Ot(ee,ue=>{const Ne=Su(ue,de);s(`TSFILE: ${Ne}`)}),jxe(t,s)}return l&&l(Bxe(oe),zxe(oe)),{emitResult:V,diagnostics:oe}}function fge(t,r,s,l,m,y,T,D){const{emitResult:I,diagnostics:W}=gse(t,r,s,l,m,y,T,D);return I.emitSkipped&&W.length>0?1:W.length>0?2:0}function hse(t=m0,r){return{onWatchStatusChange:r||hJe(t),watchFile:wc(t,t.watchFile)||Tse,watchDirectory:wc(t,t.watchDirectory)||Tse,setTimeout:wc(t,t.setTimeout)||ku,clearTimeout:wc(t,t.clearTimeout)||ku}}function yse(t,r){const s=t.trace?r.extendedDiagnostics?2:r.diagnostics?1:0:0,l=s!==0?y=>t.trace(y):ku,m=jme(t,s,l);return m.writeLog=l,m}function vse(t,r,s=t){const l=t.useCaseSensitiveFileNames(),m={getSourceFile:R4e((y,T)=>T?t.readFile(y,T):m.readFile(y),r,void 0),getDefaultLibLocation:wc(t,t.getDefaultLibLocation),getDefaultLibFileName:y=>t.getDefaultLibFileName(y),writeFile:Jme((y,T,D)=>t.writeFile(y,T,D),y=>t.createDirectory(y),y=>t.directoryExists(y)),getCurrentDirectory:Pd(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>l,getCanonicalFileName:_v(l),getNewLine:()=>JE(r()),fileExists:y=>t.fileExists(y),readFile:y=>t.readFile(y),trace:wc(t,t.trace),directoryExists:wc(s,s.directoryExists),getDirectories:wc(s,s.getDirectories),realpath:wc(t,t.realpath),getEnvironmentVariable:wc(t,t.getEnvironmentVariable)||(()=>""),createHash:wc(t,t.createHash),readDirectory:wc(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return m}function sZ(t,r){if(r.match(YLe)){let s=r.length,l=s;for(let m=s-1;m>=0;m--){const y=r.charCodeAt(m);switch(y){case 10:m&&r.charCodeAt(m-1)===13&&m--;case 13:break;default:if(y<127||!Ff(y)){l=m;continue}break}const T=r.substring(l,s);if(T.match(V2e)){r=r.substring(0,l);break}else if(!T.match(U2e))break;s=l}}return(t.createHash||G_e)(r)}function cZ(t){const r=t.getSourceFile;t.getSourceFile=(...s)=>{const l=r.call(t,...s);return l&&(l.version=sZ(t,l.text)),l}}function JW(t,r){const s=Pd(()=>qc(Fd(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Pd(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:l=>tf(s(),qre(l)),fileExists:l=>t.fileExists(l),readFile:(l,m)=>t.readFile(l,m),directoryExists:l=>t.directoryExists(l),getDirectories:l=>t.getDirectories(l),readDirectory:(l,m,y,T,D)=>t.readDirectory(l,m,y,T,D),realpath:wc(t,t.realpath),getEnvironmentVariable:wc(t,t.getEnvironmentVariable),trace:l=>t.write(l+t.newLine),createDirectory:l=>t.createDirectory(l),writeFile:(l,m,y)=>t.writeFile(l,m,y),createHash:wc(t,t.createHash),createProgram:r||fse,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:wc(t,t.now)}}function bse(t=m0,r,s,l){const m=T=>t.write(T+t.newLine),y=JW(t,r);return E8(y,hse(t,l)),y.afterProgramCreate=T=>{const D=T.getCompilerOptions(),I=JE(D);gse(T,s,m,W=>y.onWatchStatusChange(W_(w$(W),W),I,D,W))},y}function Uxe(t,r,s){r(s),t.exit(1)}function _ge({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:l,system:m,createProgram:y,reportDiagnostic:T,reportWatchStatus:D}){const I=T||iZ(m),W=bse(m,y,I,D);return W.onUnRecoverableConfigFileDiagnostic=O=>Uxe(m,I,O),W.configFileName=t,W.optionsToExtend=r,W.watchOptionsToExtend=s,W.extraFileExtensions=l,W}function dge({rootFiles:t,options:r,watchOptions:s,projectReferences:l,system:m,createProgram:y,reportDiagnostic:T,reportWatchStatus:D}){const I=bse(m,y,T||iZ(m),D);return I.rootFiles=t,I.options=r,I.watchOptions=s,I.projectReferences=l,I}function Hxe(t){const r=t.system||m0,s=t.host||(t.host=Jxe(t.options,r)),l=$xe(t),m=fge(l,t.reportDiagnostic||iZ(r),y=>s.trace&&s.trace(y),t.reportErrorSummary||t.options.pretty?(y,T)=>r.write(yJe(y,T,r.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(l),m}var lZ,M$,SF,Tse,pC,Z4e=G({"src/compiler/watch.ts"(){Ad(),lZ=m0?{getCurrentDirectory:()=>m0.getCurrentDirectory(),getNewLine:()=>m0.newLine,getCanonicalFileName:_v(m0.useCaseSensitiveFileNames)}:void 0,M$=[w.Starting_compilation_in_watch_mode.code,w.File_change_detected_Starting_incremental_compilation.code],SF={close:ku},Tse=()=>SF,pC={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 Sse(t,r){const s=ZN(t);if(!s)return;let l;if(r.getBuildInfo)l=r.getBuildInfo(s,t.configFilePath);else{const m=r.readFile(s);if(!m)return;l=Ome(s,m)}if(!(!l||l.version!==At||!l.program))return rge(l,s,r)}function Jxe(t,r=m0){const s=HQ(t,void 0,r);return s.createHash=wc(r,r.createHash),s.storeFilesChangingSignatureDuringEmit=r.storeFilesChangingSignatureDuringEmit,cZ(s),JQ(s,l=>_h(l,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function $xe({rootNames:t,options:r,configFileParsingDiagnostics:s,projectReferences:l,host:m,createProgram:y}){m=m||Jxe(r),y=y||fse;const T=Sse(r,m);return y(t,r,m,T,s,l)}function pge(t,r,s,l,m,y,T,D){return ls(t)?dge({rootFiles:t,options:r,watchOptions:D,projectReferences:T,system:s,createProgram:l,reportDiagnostic:m,reportWatchStatus:y}):_ge({configFileName:t,optionsToExtend:r,watchOptionsToExtend:T,extraFileExtensions:D,system:s,createProgram:l,reportDiagnostic:m,reportWatchStatus:y})}function L$(t){let r,s,l,m,y,T,D,I,W=t.extendedConfigCache,O=!1;const V=new Map;let ee,te=!1;const oe=t.useCaseSensitiveFileNames(),de=t.getCurrentDirectory(),{configFileName:ue,optionsToExtend:Ne={},watchOptionsToExtend:Be,extraFileExtensions:Ve,createProgram:pt}=t;let{rootFiles:Le,options:ht,watchOptions:ke,projectReferences:_t}=t,Dt,Ft,it=!1,Ye=!1;const ut=ue===void 0?void 0:Bme(t,de,oe),lt=ut||t,zt=Sxe(t,lt);let Wt=ho();ue&&t.configFileParsingResult&&(sl(t.configFileParsingResult),Wt=ho()),al(w.Starting_compilation_in_watch_mode),ue&&!t.configFileParsingResult&&(Wt=JE(Ne),ce.assert(!Le),Aa(),Wt=ho()),ce.assert(ht),ce.assert(Le);const{watchFile:tt,watchDirectory:Mn,writeLog:kn}=yse(t,ht),cr=_v(oe);kn(`Current directory: ${de} CaseSensitiveFileNames: ${oe}`);let un;ue&&(un=tt(ue,$a,2e3,ke,pC.ConfigFile));const on=vse(t,()=>ht,lt);cZ(on);const pn=on.getSourceFile;on.getSourceFile=(Cn,...oi)=>Gs(Cn,di(Cn),...oi),on.getSourceFileByPath=Gs,on.getNewLine=()=>Wt,on.fileExists=ro,on.onReleaseOldSourceFile=Ku,on.onReleaseParsedCommandLine=Jr,on.toPath=di,on.getCompilationSettings=()=>ht,on.useSourceOfProjectReferenceRedirect=wc(t,t.useSourceOfProjectReferenceRedirect),on.watchDirectoryOfFailedLookupLocation=(Cn,oi,Qr)=>Mn(Cn,oi,Qr,ke,pC.FailedLookupLocations),on.watchAffectingFileLocation=(Cn,oi)=>tt(Cn,oi,2e3,ke,pC.AffectingFileLocation),on.watchTypeRootsDirectory=(Cn,oi,Qr)=>Mn(Cn,oi,Qr,ke,pC.TypeRoots),on.getCachedDirectoryStructureHost=()=>ut,on.scheduleInvalidateResolutionsOfFailedLookupLocations=Ea,on.onInvalidatedResolution=ta,on.onChangedAutomaticTypeDirectiveNames=ta,on.fileIsOpen=bg,on.getCurrentProgram=ei,on.writeLog=kn,on.getParsedCommandLine=vc;const Or=q4e(on,ue?qc(Su(ue,de)):de,!1);on.resolveModuleNameLiterals=wc(t,t.resolveModuleNameLiterals),on.resolveModuleNames=wc(t,t.resolveModuleNames),!on.resolveModuleNameLiterals&&!on.resolveModuleNames&&(on.resolveModuleNameLiterals=Or.resolveModuleNameLiterals.bind(Or)),on.resolveTypeReferenceDirectiveReferences=wc(t,t.resolveTypeReferenceDirectiveReferences),on.resolveTypeReferenceDirectives=wc(t,t.resolveTypeReferenceDirectives),!on.resolveTypeReferenceDirectiveReferences&&!on.resolveTypeReferenceDirectives&&(on.resolveTypeReferenceDirectiveReferences=Or.resolveTypeReferenceDirectiveReferences.bind(Or)),on.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Or.resolveLibrary.bind(Or),on.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?wc(t,t.getModuleResolutionCache):()=>Or.getModuleResolutionCache();const Ut=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?wc(t,t.hasInvalidatedResolutions)||xT:bg,In=t.resolveLibrary?wc(t,t.hasInvalidatedLibResolutions)||xT:bg;return r=Sse(ht,on),Gn(),gn(),ue&&mt(di(ue),ht,ke,pC.ExtendedConfigFile),ue?{getCurrentProgram:Cr,getProgram:Xu,close:gr}:{getCurrentProgram:Cr,getProgram:Xu,updateRootFileNames:so,close:gr};function gr(){mc(),Or.clear(),Mh(V,Cn=>{Cn&&Cn.fileWatcher&&(Cn.fileWatcher.close(),Cn.fileWatcher=void 0)}),un&&(un.close(),un=void 0),W==null||W.clear(),W=void 0,I&&(Mh(I,dC),I=void 0),m&&(Mh(m,dC),m=void 0),l&&(Mh(l,Ib),l=void 0),D&&(Mh(D,Cn=>{var oi;(oi=Cn.watcher)==null||oi.close(),Cn.watcher=void 0,Cn.watchedDirectories&&Mh(Cn.watchedDirectories,dC),Cn.watchedDirectories=void 0}),D=void 0)}function Cr(){return r}function ei(){return r&&r.getProgramOrUndefined()}function Gn(){kn("Synchronizing program"),ce.assert(ht),ce.assert(Le),mc();const Cn=Cr();te&&(Wt=ho(),Cn&&g9(Cn.getCompilerOptions(),ht)&&Or.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:oi,hasInvalidatedLibResolutions:Qr}=Or.createHasInvalidatedResolutions(Ut,In),{originalReadFile:co,originalFileExists:es,originalDirectoryExists:Ui,originalCreateDirectory:xu,originalWriteFile:We,readFileWithCache:Re}=JQ(on,di);return Qae(ei(),Le,ht,wt=>_u(wt,Re),wt=>on.fileExists(wt),oi,Qr,Rr,vc,_t)?Ye&&(O&&al(w.File_change_detected_Starting_incremental_compilation),r=pt(void 0,void 0,on,r,Ft,_t),Ye=!1):(O&&al(w.File_change_detected_Starting_incremental_compilation),Ur(oi,Qr)),O=!1,t.afterProgramCreate&&Cn!==r&&t.afterProgramCreate(r),on.readFile=co,on.fileExists=es,on.directoryExists=Ui,on.createDirectory=xu,on.writeFile=We,r}function Ur(Cn,oi){kn("CreatingProgramWith::"),kn(` roots: ${JSON.stringify(Le)}`),kn(` options: ${JSON.stringify(ht)}`),_t&&kn(` projectReferences: ${JSON.stringify(_t)}`);const Qr=te||!ei();te=!1,Ye=!1,Or.startCachingPerDirectoryResolution(),on.hasInvalidatedResolutions=Cn,on.hasInvalidatedLibResolutions=oi,on.hasChangedAutomaticTypeDirectiveNames=Rr;const co=ei();if(r=pt(Le,ht,on,r,Ft,_t),Or.finishCachingPerDirectoryResolution(r.getProgram(),co),Jae(r.getProgram(),l||(l=new Map),xt),Qr&&Or.updateTypeRootsWatch(),ee){for(const es of ee)l.has(es)||V.delete(es);ee=void 0}}function so(Cn){ce.assert(!ue,"Cannot update root file names with config file watch mode"),Le=Cn,ta()}function ho(){return JE(ht||Ne)}function di(Cn){return _h(Cn,de,cr)}function Nc(Cn){return typeof Cn=="boolean"}function ha(Cn){return typeof Cn.version=="boolean"}function ro(Cn){const oi=di(Cn);return Nc(V.get(oi))?!1:lt.fileExists(Cn)}function Gs(Cn,oi,Qr,co,es){const Ui=V.get(oi);if(Nc(Ui))return;const xu=typeof Qr=="object"?Qr.impliedNodeFormat:void 0;if(Ui===void 0||es||ha(Ui)||Ui.sourceFile.impliedNodeFormat!==xu){const We=pn(Cn,Qr,co);if(Ui)We?(Ui.sourceFile=We,Ui.version=We.version,Ui.fileWatcher||(Ui.fileWatcher=li(oi,Cn,Ir,250,ke,pC.SourceFile))):(Ui.fileWatcher&&Ui.fileWatcher.close(),V.set(oi,!1));else if(We){const Re=li(oi,Cn,Ir,250,ke,pC.SourceFile);V.set(oi,{sourceFile:We,version:We.version,fileWatcher:Re})}else V.set(oi,!1);return We}return Ui.sourceFile}function Oc(Cn){const oi=V.get(Cn);oi!==void 0&&(Nc(oi)?V.set(Cn,{version:!1}):oi.version=!1)}function _u(Cn,oi){const Qr=V.get(Cn);if(!Qr)return;if(Qr.version)return Qr.version;const co=oi(Cn);return co!==void 0?sZ(on,co):void 0}function Ku(Cn,oi,Qr){const co=V.get(Cn.resolvedPath);co!==void 0&&(Nc(co)?(ee||(ee=[])).push(Cn.path):co.sourceFile===Cn&&(co.fileWatcher&&co.fileWatcher.close(),V.delete(Cn.resolvedPath),Qr||Or.removeResolutionsOfFile(Cn.path)))}function al(Cn){t.onWatchStatusChange&&t.onWatchStatusChange(W_(Cn),Wt,ht||Ne)}function Rr(){return Or.hasChangedAutomaticTypeDirectiveNames()}function mc(){return T?(t.clearTimeout(T),T=void 0,!0):!1}function Ea(){if(!t.setTimeout||!t.clearTimeout)return Or.invalidateResolutionsOfFailedLookupLocations();const Cn=mc();kn(`Scheduling invalidateFailedLookup${Cn?", Cancelled earlier one":""}`),T=t.setTimeout(Fi,250,"timerToInvalidateFailedLookupResolutions")}function Fi(){T=void 0,Or.invalidateResolutionsOfFailedLookupLocations()&&ta()}function ta(){!t.setTimeout||!t.clearTimeout||(y&&t.clearTimeout(y),kn("Scheduling update"),y=t.setTimeout(jc,250,"timerToUpdateProgram"))}function $a(){ce.assert(!!ue),s=2,ta()}function jc(){y=void 0,O=!0,Xu()}function Xu(){var Cn,oi,Qr,co;switch(s){case 1:(Cn=jD)==null||Cn.logStartUpdateProgram("PartialConfigReload"),Lo();break;case 2:(oi=jD)==null||oi.logStartUpdateProgram("FullConfigReload"),To();break;default:(Qr=jD)==null||Qr.logStartUpdateProgram("SynchronizeProgram"),Gn();break}return(co=jD)==null||co.logStopUpdateProgram("Done"),Cr()}function Lo(){kn("Reloading new file names and options"),ce.assert(ht),ce.assert(ue),s=0,Le=x6(ht.configFile.configFileSpecs,Su(qc(ue),de),ht,zt,Ve),l2e(Le,Su(ue,de),ht.configFile.configFileSpecs,Ft,it)&&(Ye=!0),Gn()}function To(){ce.assert(ue),kn(`Reloading config file: ${ue}`),s=0,ut&&ut.clearCache(),Aa(),te=!0,Gn(),gn(),mt(di(ue),ht,ke,pC.ExtendedConfigFile)}function Aa(){ce.assert(ue),sl(QJ(ue,Ne,zt,W||(W=new Map),Be,Ve))}function sl(Cn){Le=Cn.fileNames,ht=Cn.options,ke=Cn.watchOptions,_t=Cn.projectReferences,Dt=Cn.wildcardDirectories,Ft=UW(Cn).slice(),it=eae(Cn.raw),Ye=!0}function vc(Cn){const oi=di(Cn);let Qr=D==null?void 0:D.get(oi);if(Qr){if(!Qr.reloadLevel)return Qr.parsedCommandLine;if(Qr.parsedCommandLine&&Qr.reloadLevel===1&&!t.getParsedCommandLine){kn("Reloading new file names and options"),ce.assert(ht);const es=x6(Qr.parsedCommandLine.options.configFile.configFileSpecs,Su(qc(Cn),de),ht,zt);return Qr.parsedCommandLine={...Qr.parsedCommandLine,fileNames:es},Qr.reloadLevel=void 0,Qr.parsedCommandLine}}kn(`Loading config file: ${Cn}`);const co=t.getParsedCommandLine?t.getParsedCommandLine(Cn):er(Cn);return Qr?(Qr.parsedCommandLine=co,Qr.reloadLevel=void 0):(D||(D=new Map)).set(oi,Qr={parsedCommandLine:co}),_r(Cn,oi,Qr),co}function er(Cn){const oi=zt.onUnRecoverableConfigFileDiagnostic;zt.onUnRecoverableConfigFileDiagnostic=ku;const Qr=QJ(Cn,void 0,zt,W||(W=new Map),Be);return zt.onUnRecoverableConfigFileDiagnostic=oi,Qr}function Jr(Cn){var oi;const Qr=di(Cn),co=D==null?void 0:D.get(Qr);co&&(D.delete(Qr),co.watchedDirectories&&Mh(co.watchedDirectories,dC),(oi=co.watcher)==null||oi.close(),zme(Qr,I))}function li(Cn,oi,Qr,co,es,Ui){return tt(oi,(xu,We)=>Qr(xu,We,Cn),co,es,Ui)}function Ir(Cn,oi,Qr){_o(Cn,Qr,oi),oi===2&&V.has(Qr)&&Or.invalidateResolutionOfFile(Qr),Oc(Qr),ta()}function _o(Cn,oi,Qr){ut&&ut.addOrDeleteFile(Cn,oi,Qr)}function xt(Cn){return D!=null&&D.has(Cn)?SF:li(Cn,Cn,Kn,500,ke,pC.MissingFile)}function Kn(Cn,oi,Qr){_o(Cn,Qr,oi),oi===0&&l.has(Qr)&&(l.get(Qr).close(),l.delete(Qr),Oc(Qr),ta())}function gn(){Dt?D$(m||(m=new Map),new Map(Object.entries(Dt)),qr):m&&Mh(m,dC)}function qr(Cn,oi){return Mn(Cn,Qr=>{ce.assert(ue),ce.assert(ht);const co=di(Qr);ut&&ut.addOrDeleteFileOrDirectory(Qr,co),Oc(co),!VQ({watchedDirPath:di(Cn),fileOrDirectory:Qr,fileOrDirectoryPath:co,configFileName:ue,extraFileExtensions:Ve,options:ht,program:Cr()||Le,currentDirectory:de,useCaseSensitiveFileNames:oe,writeLog:kn,toPath:di})&&s!==2&&(s=1,ta())},oi,ke,pC.WildcardDirectory)}function mt(Cn,oi,Qr,co){d4(Cn,oi,I||(I=new Map),(es,Ui)=>tt(es,(xu,We)=>{var Re;_o(es,Ui,We),W&&C$(W,Ui,di);const wt=(Re=I.get(Ui))==null?void 0:Re.projects;wt!=null&&wt.size&&wt.forEach($e=>{if(ue&&di(ue)===$e)s=2;else{const Zt=D==null?void 0:D.get($e);Zt&&(Zt.reloadLevel=2),Or.removeResolutionsFromProjectReferenceRedirects($e)}ta()})},2e3,Qr,co),di)}function _r(Cn,oi,Qr){var co,es,Ui,xu,We;Qr.watcher||(Qr.watcher=tt(Cn,(Re,wt)=>{_o(Cn,oi,wt);const $e=D==null?void 0:D.get(oi);$e&&($e.reloadLevel=2),Or.removeResolutionsFromProjectReferenceRedirects(oi),ta()},2e3,((co=Qr.parsedCommandLine)==null?void 0:co.watchOptions)||ke,pC.ConfigFileOfReferencedProject)),(es=Qr.parsedCommandLine)!=null&&es.wildcardDirectories?D$(Qr.watchedDirectories||(Qr.watchedDirectories=new Map),new Map(Object.entries((Ui=Qr.parsedCommandLine)==null?void 0:Ui.wildcardDirectories)),(Re,wt)=>{var $e;return Mn(Re,Zt=>{const xe=di(Zt);ut&&ut.addOrDeleteFileOrDirectory(Zt,xe),Oc(xe);const an=D==null?void 0:D.get(oi);an!=null&&an.parsedCommandLine&&(VQ({watchedDirPath:di(Re),fileOrDirectory:Zt,fileOrDirectoryPath:xe,configFileName:Cn,options:an.parsedCommandLine.options,program:an.parsedCommandLine.fileNames,currentDirectory:de,useCaseSensitiveFileNames:oe,writeLog:kn,toPath:di})||an.reloadLevel!==2&&(an.reloadLevel=1,ta()))},wt,(($e=Qr.parsedCommandLine)==null?void 0:$e.watchOptions)||ke,pC.WildcardDirectoryOfReferencedProject)}):Qr.watchedDirectories&&(Mh(Qr.watchedDirectories,dC),Qr.watchedDirectories=void 0),mt(oi,(xu=Qr.parsedCommandLine)==null?void 0:xu.options,((We=Qr.parsedCommandLine)==null?void 0:We.watchOptions)||ke,pC.ExtendedConfigOfReferencedProject)}}var O$=G({"src/compiler/watchPublic.ts"(){Ad()}});function r0(t){return Pg(t,".json")?t:tf(t,"tsconfig.json")}var e8e,mge=G({"src/compiler/tsbuild.ts"(){Ad(),e8e=(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))(e8e||{})}});function qxe(t,r,s){const l=t.get(r);let m;return l||(m=s(),t.set(r,m)),l||m}function gge(t,r){return qxe(t,r,()=>new Map)}function Ese(t){return t.now?t.now():new Date}function yj(t){return!!t&&!!t.buildOrder}function Kxe(t){return yj(t)?t.buildOrder:t}function hge(t,r){return s=>{let l=r?`[${NR(oZ(t),"\x1B[90m")}] `:`${oZ(t)} - `;l+=`${p4(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(l)}}function yge(t,r,s,l){const m=JW(t,r);return m.getModifiedTime=t.getModifiedTime?y=>t.getModifiedTime(y):eE,m.setModifiedTime=t.setModifiedTime?(y,T)=>t.setModifiedTime(y,T):ku,m.deleteFile=t.deleteFile?y=>t.deleteFile(y):ku,m.reportDiagnostic=s||iZ(t),m.reportSolutionBuilderStatus=l||hge(t),m.now=wc(t,t.now),m}function Lct(t=m0,r,s,l,m){const y=yge(t,r,s,l);return y.reportErrorSummary=m,y}function Oct(t=m0,r,s,l,m){const y=yge(t,r,s,l),T=hse(t,m);return E8(y,T),y}function t8e(t){const r={};return uF.forEach(s=>{ef(t,s.name)&&(r[s.name]=t[s.name])}),r}function xse(t,r,s){return kJe(!1,t,r,s)}function vj(t,r,s,l){return kJe(!0,t,r,s,l)}function vge(t,r,s,l,m){const y=r,T=r,D=t8e(l),I=vse(y,()=>de.projectCompilerOptions);cZ(I),I.getParsedCommandLine=ue=>bj(de,ue,vI(de,ue)),I.resolveModuleNameLiterals=wc(y,y.resolveModuleNameLiterals),I.resolveTypeReferenceDirectiveReferences=wc(y,y.resolveTypeReferenceDirectiveReferences),I.resolveLibrary=wc(y,y.resolveLibrary),I.resolveModuleNames=wc(y,y.resolveModuleNames),I.resolveTypeReferenceDirectives=wc(y,y.resolveTypeReferenceDirectives),I.getModuleResolutionCache=wc(y,y.getModuleResolutionCache);let W,O;!I.resolveModuleNameLiterals&&!I.resolveModuleNames&&(W=IR(I.getCurrentDirectory(),I.getCanonicalFileName),I.resolveModuleNameLiterals=(ue,Ne,Be,Ve,pt)=>W3(ue,Ne,Be,Ve,pt,y,W,Kae),I.getModuleResolutionCache=()=>W),!I.resolveTypeReferenceDirectiveReferences&&!I.resolveTypeReferenceDirectives&&(O=T2e(I.getCurrentDirectory(),I.getCanonicalFileName,void 0,W==null?void 0:W.getPackageJsonInfoCache()),I.resolveTypeReferenceDirectiveReferences=(ue,Ne,Be,Ve,pt)=>W3(ue,Ne,Be,Ve,pt,y,O,PA));let V;I.resolveLibrary||(V=IR(I.getCurrentDirectory(),I.getCanonicalFileName,void 0,W==null?void 0:W.getPackageJsonInfoCache()),I.resolveLibrary=(ue,Ne,Be)=>S2e(ue,Ne,Be,y,V)),I.getBuildInfo=(ue,Ne)=>tAe(de,ue,vI(de,Ne),void 0);const{watchFile:ee,watchDirectory:te,writeLog:oe}=yse(T,l),de={host:y,hostWithWatch:T,parseConfigFileHost:Sxe(y),write:wc(y,y.trace),options:l,baseCompilerOptions:D,rootNames:s,baseWatchOptions:m,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:I,moduleResolutionCache:W,typeReferenceDirectiveResolutionCache:O,libraryResolutionCache:V,buildOrder:void 0,readFileWithCache:ue=>y.readFile(ue),projectCompilerOptions:D,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:ee,watchDirectory:te,writeLog:oe};return de}function QE(t,r){return _h(r,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function vI(t,r){const{resolvedConfigFilePaths:s}=t,l=s.get(r);if(l!==void 0)return l;const m=QE(t,r);return s.set(r,m),m}function n8e(t){return!!t.options}function vJe(t,r){const s=t.configFileCache.get(r);return s&&n8e(s)?s:void 0}function bj(t,r,s){const{configFileCache:l}=t,m=l.get(s);if(m)return n8e(m)?m:void 0;jf("SolutionBuilder::beforeConfigFileParsing");let y;const{parseConfigFileHost:T,baseCompilerOptions:D,baseWatchOptions:I,extendedConfigCache:W,host:O}=t;let V;return O.getParsedCommandLine?(V=O.getParsedCommandLine(r),V||(y=W_(w.File_0_not_found,r))):(T.onUnRecoverableConfigFileDiagnostic=ee=>y=ee,V=QJ(r,D,T,W,I),T.onUnRecoverableConfigFileDiagnostic=ku),l.set(s,V||y),jf("SolutionBuilder::afterConfigFileParsing"),dd("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),V}function F$(t,r){return r0(gm(t.compilerHost.getCurrentDirectory(),r))}function r8e(t,r){const s=new Map,l=new Map,m=[];let y,T;for(const I of r)D(I);return T?{buildOrder:y||Zn,circularDiagnostics:T}:y||Zn;function D(I,W){const O=vI(t,I);if(l.has(O))return;if(s.has(O)){W||(T||(T=[])).push(W_(w.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,m.join(`\r -`)));return}s.set(O,!0),m.push(I);const V=bj(t,I,O);if(V&&V.projectReferences)for(const ee of V.projectReferences){const te=F$(t,ee.path);D(te,W||ee.circular)}m.pop(),l.set(O,!0),(y||(y=[])).push(I)}}function bge(t){return t.buildOrder||cx(t)}function cx(t){const r=r8e(t,t.rootNames.map(m=>F$(t,m)));t.resolvedConfigFilePaths.clear();const s=new Map(Kxe(r).map(m=>[vI(t,m),!0])),l={onDeleteValue:ku};return wS(t.configFileCache,s,l),wS(t.projectStatus,s,l),wS(t.builderPrograms,s,l),wS(t.diagnostics,s,l),wS(t.projectPendingBuild,s,l),wS(t.projectErrorsReported,s,l),wS(t.buildInfoCache,s,l),wS(t.outputTimeStamps,s,l),t.watch&&(wS(t.allWatchedConfigFiles,s,{onDeleteValue:Ib}),t.allWatchedExtendedConfigFiles.forEach(m=>{m.projects.forEach(y=>{s.has(y)||m.projects.delete(y)}),m.close()}),wS(t.allWatchedWildcardDirectories,s,{onDeleteValue:m=>m.forEach(dC)}),wS(t.allWatchedInputFiles,s,{onDeleteValue:m=>m.forEach(Ib)}),wS(t.allWatchedPackageJsonFiles,s,{onDeleteValue:m=>m.forEach(Ib)})),t.buildOrder=r}function bI(t,r,s){const l=r&&F$(t,r),m=bge(t);if(yj(m))return m;if(l){const T=vI(t,l);if(Ho(m,I=>vI(t,I)===T)===-1)return}const y=l?r8e(t,[l]):m;return ce.assert(!yj(y)),ce.assert(!s||l!==void 0),ce.assert(!s||y[y.length-1]===l),s?y.slice(0,y.length-1):y}function i8e(t){t.cache&&o8e(t);const{compilerHost:r,host:s}=t,l=t.readFileWithCache,m=r.getSourceFile,{originalReadFile:y,originalFileExists:T,originalDirectoryExists:D,originalCreateDirectory:I,originalWriteFile:W,getSourceFileWithCache:O,readFileWithCache:V}=JQ(s,ee=>QE(t,ee),(...ee)=>m.call(r,...ee));t.readFileWithCache=V,r.getSourceFile=O,t.cache={originalReadFile:y,originalFileExists:T,originalDirectoryExists:D,originalCreateDirectory:I,originalWriteFile:W,originalReadFileWithCache:l,originalGetSourceFile:m}}function o8e(t){if(!t.cache)return;const{cache:r,host:s,compilerHost:l,extendedConfigCache:m,moduleResolutionCache:y,typeReferenceDirectiveResolutionCache:T,libraryResolutionCache:D}=t;s.readFile=r.originalReadFile,s.fileExists=r.originalFileExists,s.directoryExists=r.originalDirectoryExists,s.createDirectory=r.originalCreateDirectory,s.writeFile=r.originalWriteFile,l.getSourceFile=r.originalGetSourceFile,t.readFileWithCache=r.originalReadFileWithCache,m.clear(),y==null||y.clear(),T==null||T.clear(),D==null||D.clear(),t.cache=void 0}function $W(t,r){t.projectStatus.delete(r),t.diagnostics.delete(r)}function W$({projectPendingBuild:t},r,s){const l=t.get(r);(l===void 0||lt.projectPendingBuild.set(vI(t,l),0)),r&&r.throwIfCancellationRequested()}function Ase(t,r){return t.projectPendingBuild.delete(r),t.diagnostics.has(r)?1:0}function Fct(t,r,s,l,m){let y=!0;return{kind:2,project:r,projectPath:s,buildOrder:m,getCompilerOptions:()=>l.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{iAe(t,l,s),y=!1},done:()=>(y&&iAe(t,l,s),jf("SolutionBuilder::Timestamps only updates"),Ase(t,s))}}function s8e(t,r,s,l,m,y,T){let D=t===0?0:4,I,W,O;return t===0?{kind:t,project:s,projectPath:l,buildOrder:T,getCompilerOptions:()=>y.options,getCurrentDirectory:()=>r.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>ee(Of),getProgram:()=>ee(ke=>ke.getProgramOrUndefined()),getSourceFile:ke=>ee(_t=>_t.getSourceFile(ke)),getSourceFiles:()=>te(ke=>ke.getSourceFiles()),getOptionsDiagnostics:ke=>te(_t=>_t.getOptionsDiagnostics(ke)),getGlobalDiagnostics:ke=>te(_t=>_t.getGlobalDiagnostics(ke)),getConfigFileParsingDiagnostics:()=>te(ke=>ke.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ke,_t)=>te(Dt=>Dt.getSyntacticDiagnostics(ke,_t)),getAllDependencies:ke=>te(_t=>_t.getAllDependencies(ke)),getSemanticDiagnostics:(ke,_t)=>te(Dt=>Dt.getSemanticDiagnostics(ke,_t)),getSemanticDiagnosticsOfNextAffectedFile:(ke,_t)=>ee(Dt=>Dt.getSemanticDiagnosticsOfNextAffectedFile&&Dt.getSemanticDiagnosticsOfNextAffectedFile(ke,_t)),emit:(ke,_t,Dt,Ft,it)=>{if(ke||Ft)return ee(Ye=>{var ut,lt;return Ye.emit(ke,_t,Dt,Ft,it||((lt=(ut=r.host).getCustomTransformers)==null?void 0:lt.call(ut,s)))});if(ht(2,Dt),D===5)return Ve(_t,Dt);if(D===3)return Be(_t,Dt,it)},done:V}:{kind:t,project:s,projectPath:l,buildOrder:T,getCompilerOptions:()=>y.options,getCurrentDirectory:()=>r.compilerHost.getCurrentDirectory(),emit:(ke,_t)=>D!==4?O:Le(ke,_t),done:V};function V(ke,_t,Dt){return ht(8,ke,_t,Dt),jf(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Ase(r,l)}function ee(ke){return ht(0),I&&ke(I)}function te(ke){return ee(ke)||Zn}function oe(){var ke,_t;if(ce.assert(I===void 0),r.options.dry){aS(r,w.A_non_dry_build_would_build_project_0,s),W=1,D=7;return}if(r.options.verbose&&aS(r,w.Building_project_0,s),y.fileNames.length===0){Tj(r,l,UW(y)),W=0,D=7;return}const{host:Dt,compilerHost:Ft}=r;r.projectCompilerOptions=y.options,(ke=r.moduleResolutionCache)==null||ke.update(y.options),(_t=r.typeReferenceDirectiveResolutionCache)==null||_t.update(y.options),I=Dt.createProgram(y.fileNames,y.options,Ft,TJe(r,l,y),UW(y),y.projectReferences),r.watch&&(r.lastCachedPackageJsonLookups.set(l,r.moduleResolutionCache&&Vn(r.moduleResolutionCache.getPackageJsonInfoCache().entries(),([it,Ye])=>[r.host.realpath&&Ye?QE(r,r.host.realpath(it)):it,Ye])),r.builderPrograms.set(l,I)),D++}function de(ke,_t,Dt){ke.length?{buildResult:W,step:D}=Qxe(r,l,I,y,ke,_t,Dt):D++}function ue(ke){ce.assertIsDefined(I),de([...I.getConfigFileParsingDiagnostics(),...I.getOptionsDiagnostics(ke),...I.getGlobalDiagnostics(ke),...I.getSyntacticDiagnostics(void 0,ke)],8,"Syntactic")}function Ne(ke){de(ce.checkDefined(I).getSemanticDiagnostics(void 0,ke),16,"Semantic")}function Be(ke,_t,Dt){var Ft,it,Ye;ce.assertIsDefined(I),ce.assert(D===3);const ut=I.saveEmitState();let lt;const zt=In=>(lt||(lt=[])).push(In),Wt=[],{emitResult:tt}=gse(I,zt,void 0,void 0,(In,gr,Cr,ei,Gn,Ur)=>Wt.push({name:In,text:gr,writeByteOrderMark:Cr,data:Ur}),_t,!1,Dt||((it=(Ft=r.host).getCustomTransformers)==null?void 0:it.call(Ft,s)));if(lt)return I.restoreEmitState(ut),{buildResult:W,step:D}=Qxe(r,l,I,y,lt,32,"Declaration file"),{emitSkipped:!0,diagnostics:tt.diagnostics};const{host:Mn,compilerHost:kn}=r,cr=(Ye=I.hasChangedEmitSignature)!=null&&Ye.call(I)?0:2,un=vY(),on=new Map,pn=I.getCompilerOptions(),Or=K9(pn);let Xr,Ut;return Wt.forEach(({name:In,text:gr,writeByteOrderMark:Cr,data:ei})=>{const Gn=QE(r,In);on.set(QE(r,In),In),ei!=null&&ei.buildInfo&&eAe(r,ei.buildInfo,l,pn,cr);const Ur=ei!=null&&ei.differsOnlyInMap?PU(r.host,In):void 0;sC(ke?{writeFile:ke}:kn,un,In,gr,Cr),ei!=null&&ei.differsOnlyInMap?r.host.setModifiedTime(In,Ur):!Or&&r.watch&&(Xr||(Xr=Sge(r,l))).set(Gn,Ut||(Ut=Ese(r.host)))}),pt(un,on,Wt.length?Wt[0].name:_xe(y,!Mn.useCaseSensitiveFileNames()),cr),tt}function Ve(ke,_t){ce.assertIsDefined(I),ce.assert(D===5);const Dt=I.emitBuildInfo((Ft,it,Ye,ut,lt,zt)=>{zt!=null&&zt.buildInfo&&eAe(r,zt.buildInfo,l,I.getCompilerOptions(),2),ke?ke(Ft,it,Ye,ut,lt,zt):r.compilerHost.writeFile(Ft,it,Ye,ut,lt,zt)},_t);return Dt.diagnostics.length&&(fZ(r,Dt.diagnostics),r.diagnostics.set(l,[...r.diagnostics.get(l),...Dt.diagnostics]),W=64&W),Dt.emittedFiles&&r.write&&Dt.emittedFiles.forEach(Ft=>l8e(r,y,Ft)),u8e(r,I,y),D=7,Dt}function pt(ke,_t,Dt,Ft){const it=ke.getDiagnostics();return it.length?({buildResult:W,step:D}=Qxe(r,l,I,y,it,64,"Emit"),it):(r.write&&_t.forEach(Ye=>l8e(r,y,Ye)),rAe(r,y,l,w.Updating_unchanged_output_timestamps_of_project_0,_t),r.diagnostics.delete(l),r.projectStatus.set(l,{type:1,oldestOutputFileName:Dt}),u8e(r,I,y),D=7,W=Ft,it)}function Le(ke,_t){var Dt,Ft,it,Ye;if(ce.assert(t===1),r.options.dry){aS(r,w.A_non_dry_build_would_update_output_of_project_0,s),W=1,D=7;return}r.options.verbose&&aS(r,w.Updating_output_of_project_0,s);const{compilerHost:ut}=r;r.projectCompilerOptions=y.options,(Ft=(Dt=r.host).beforeEmitBundle)==null||Ft.call(Dt,y);const lt=Uae(y,ut,cr=>{const un=F$(r,cr.path);return bj(r,un,vI(r,un))},_t||((Ye=(it=r.host).getCustomTransformers)==null?void 0:Ye.call(it,s)));if(As(lt))return aS(r,w.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,wb(r,lt)),D=6,O=s8e(0,r,s,l,m,y,T);ce.assert(!!lt.length);const zt=vY(),Wt=new Map;let tt=2;const Mn=r.buildInfoCache.get(l).buildInfo||void 0;return lt.forEach(({name:cr,text:un,writeByteOrderMark:on,data:pn})=>{var Or,Xr;Wt.set(QE(r,cr),cr),pn!=null&&pn.buildInfo&&(((Or=pn.buildInfo.program)==null?void 0:Or.outSignature)!==((Xr=Mn==null?void 0:Mn.program)==null?void 0:Xr.outSignature)&&(tt&=-3),eAe(r,pn.buildInfo,l,y.options,tt)),sC(ke?{writeFile:ke}:ut,zt,cr,un,on)}),{emitSkipped:!1,diagnostics:pt(zt,Wt,lt[0].name,tt)}}function ht(ke,_t,Dt,Ft){for(;D<=ke&&D<8;){const it=D;switch(D){case 0:oe();break;case 1:ue(_t);break;case 2:Ne(_t);break;case 3:Be(Dt,_t,Ft);break;case 5:Ve(Dt,_t);break;case 4:Le(Dt,Ft);break;case 6:ce.checkDefined(O).done(_t,Dt,Ft),D=8;break;case 7:EJe(r,s,l,m,y,T,ce.checkDefined(W)),D++;break}ce.assert(D>it)}}}function bJe({options:t},r,s){return r.type!==3||t.force?!0:s.fileNames.length===0||!!UW(s).length||!K9(s.options)}function Xxe(t,r,s){if(!t.projectPendingBuild.size||yj(r))return;const{options:l,projectPendingBuild:m}=t;for(let y=0;y{const te=ce.checkDefined(t.filesWatched.get(D));ce.assert(Zxe(te)),te.modifiedTime=ee,te.callbacks.forEach(oe=>oe(O,V,ee))},l,m,y,T);t.filesWatched.set(D,{callbacks:[s],watcher:W,modifiedTime:I})}return{close:()=>{const W=ce.checkDefined(t.filesWatched.get(D));ce.assert(Zxe(W)),W.callbacks.length===1?(t.filesWatched.delete(D),dC(W)):IM(W.callbacks,s)}}}function Sge(t,r){if(!t.watch)return;let s=t.outputTimeStamps.get(r);return s||t.outputTimeStamps.set(r,s=new Map),s}function eAe(t,r,s,l,m){const y=ZN(l),T=_8e(t,y,s),D=Ese(t.host);T?(T.buildInfo=r,T.modifiedTime=D,m&2||(T.latestChangedDtsTime=D)):t.buildInfoCache.set(s,{path:QE(t,y),buildInfo:r,modifiedTime:D,latestChangedDtsTime:m&2?void 0:D})}function _8e(t,r,s){const l=QE(t,r),m=t.buildInfoCache.get(s);return(m==null?void 0:m.path)===l?m:void 0}function tAe(t,r,s,l){const m=QE(t,r),y=t.buildInfoCache.get(s);if(y!==void 0&&y.path===m)return y.buildInfo||void 0;const T=t.readFileWithCache(r),D=T?Ome(r,T):void 0;return t.buildInfoCache.set(s,{path:m,buildInfo:D||!1,modifiedTime:l||aP}),D}function Ege(t,r,s,l){const m=f8e(t,r);if(sde&&(oe=Dt,de=Ft),ee&&Ne.add(QE(t,Dt))}if(ee){te||(te=ige(ee,I,D));for(const Dt of te.roots)if(!Ne.has(Dt))return{type:10,buildInfoFile:I,inputFile:Dt}}if(!I){const Dt=Lme(r,!D.useCaseSensitiveFileNames()),Ft=Sge(t,s);for(const it of Dt){const Ye=QE(t,it);let ut=Ft==null?void 0:Ft.get(Ye);if(ut||(ut=PU(t.host,it),Ft==null||Ft.set(Ye,ut)),ut===aP)return{type:4,missingOutputFileName:it};if(utEge(t,Dt,O,W));if(ke)return ke;const _t=Ot(t.lastCachedPackageJsonLookups.get(s)||Zn,([Dt])=>Ege(t,Dt,O,W));return _t||(pt&&Ve?{type:3,outOfDateOutputFileName:W,newerProjectName:Le}:{type:Ve?2:ue?15:1,newestInputFileTime:de,newestInputFileName:oe,oldestOutputFileName:W})}function SJe(t,r,s){return t.buildInfoCache.get(s).path===r.path}function Cse(t,r,s){if(r===void 0)return{type:0,reason:"File deleted mid-build"};const l=t.projectStatus.get(s);if(l!==void 0)return l;jf("SolutionBuilder::beforeUpToDateCheck");const m=nAe(t,r,s);return jf("SolutionBuilder::afterUpToDateCheck"),dd("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,m),m}function rAe(t,r,s,l,m){if(r.options.noEmit)return;let y;const T=ZN(r.options);if(T){m!=null&&m.has(QE(t,T))||(t.options.verbose&&aS(t,l,r.options.configFilePath),t.host.setModifiedTime(T,y=Ese(t.host)),_8e(t,T,s).modifiedTime=y),t.outputTimeStamps.delete(s);return}const{host:D}=t,I=Lme(r,!D.useCaseSensitiveFileNames()),W=Sge(t,s),O=W?new Set:void 0;if(!m||I.length!==m.size){let V=!!t.options.verbose;for(const ee of I){const te=QE(t,ee);m!=null&&m.has(te)||(V&&(V=!1,aS(t,l,r.options.configFilePath)),D.setModifiedTime(ee,y||(y=Ese(t.host))),W&&(W.set(te,y),O.add(te)))}}W==null||W.forEach((V,ee)=>{!(m!=null&&m.has(ee))&&!O.has(ee)&&W.delete(ee)})}function d8e(t,r,s){if(!r.composite)return;const l=ce.checkDefined(t.buildInfoCache.get(s));if(l.latestChangedDtsTime!==void 0)return l.latestChangedDtsTime||void 0;const m=l.buildInfo&&l.buildInfo.program&&l.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime(Su(l.buildInfo.program.latestChangedDtsFile,qc(l.path))):void 0;return l.latestChangedDtsTime=m||!1,m}function iAe(t,r,s){if(t.options.dry)return aS(t,w.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);rAe(t,r,s,w.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:_xe(r,!t.host.useCaseSensitiveFileNames())})}function EJe(t,r,s,l,m,y,T){if(!(T&124)&&m.options.composite)for(let D=l+1;Dt.diagnostics.has(vI(t,W)))?I?2:1:0}function xJe(t,r,s){jf("SolutionBuilder::beforeClean");const l=p8e(t,r,s);return jf("SolutionBuilder::afterClean"),dd("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),l}function p8e(t,r,s){const l=bI(t,r,s);if(!l)return 3;if(yj(l))return fZ(t,l.circularDiagnostics),4;const{options:m,host:y}=t,T=m.dry?[]:void 0;for(const D of l){const I=vI(t,D),W=bj(t,D,I);if(W===void 0){PJe(t,I);continue}const O=Lme(W,!y.useCaseSensitiveFileNames());if(!O.length)continue;const V=new Set(W.fileNames.map(ee=>QE(t,ee)));for(const ee of O)V.has(QE(t,ee))||y.fileExists(ee)&&(T?T.push(ee):(y.deleteFile(ee),aAe(t,I,0)))}return T&&aS(t,w.A_non_dry_build_would_delete_the_following_files_Colon_0,T.map(D=>`\r - * ${D}`).join("")),0}function aAe(t,r,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,$W(t,r),W$(t,r,s),i8e(t)}function xge(t,r,s){t.reportFileChangeDetected=!0,aAe(t,r,s),m8e(t,250,!0)}function m8e(t,r,s){const{hostWithWatch:l}=t;!l.setTimeout||!l.clearTimeout||(t.timerToBuildInvalidatedProject&&l.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=l.setTimeout(Bct,r,"timerToBuildInvalidatedProject",t,s))}function Bct(t,r,s){jf("SolutionBuilder::beforeBuild");const l=AJe(r,s);jf("SolutionBuilder::afterBuild"),dd("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l&&NJe(r,l)}function AJe(t,r){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),sAe(t,w.File_change_detected_Starting_incremental_compilation));let s=0;const l=bge(t),m=Yxe(t,l,!1);if(m)for(m.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const y=Xxe(t,l,!1);if(!y)break;if(y.kind!==2&&(r||s===5)){m8e(t,100,!1);return}c8e(t,y,l).done(),y.kind!==2&&s++}return o8e(t),l}function CJe(t,r,s,l){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,Tge(t,r,()=>xge(t,s,2),2e3,l==null?void 0:l.watchOptions,pC.ConfigFile,r))}function g8e(t,r,s){d4(r,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(l,m)=>Tge(t,l,()=>{var y;return(y=t.allWatchedExtendedConfigFiles.get(m))==null?void 0:y.projects.forEach(T=>xge(t,T,2))},2e3,s==null?void 0:s.watchOptions,pC.ExtendedConfigFile),l=>QE(t,l))}function DJe(t,r,s,l){t.watch&&D$(gge(t.allWatchedWildcardDirectories,s),new Map(Object.entries(l.wildcardDirectories)),(m,y)=>t.watchDirectory(m,T=>{var D;VQ({watchedDirPath:QE(t,m),fileOrDirectory:T,fileOrDirectoryPath:QE(t,T),configFileName:r,currentDirectory:t.compilerHost.getCurrentDirectory(),options:l.options,program:t.builderPrograms.get(s)||((D=vJe(t,s))==null?void 0:D.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:I=>t.writeLog(I),toPath:I=>QE(t,I)})||xge(t,s,1)},y,l==null?void 0:l.watchOptions,pC.WildcardDirectory,r))}function Age(t,r,s,l){t.watch&&a6(gge(t.allWatchedInputFiles,s),QT(l.fileNames,m=>QE(t,m)),{createNewValue:(m,y)=>Tge(t,y,()=>xge(t,s,0),250,l==null?void 0:l.watchOptions,pC.SourceFile,r),onDeleteValue:Ib})}function uZ(t,r,s,l){!t.watch||!t.lastCachedPackageJsonLookups||a6(gge(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(m,y)=>Tge(t,m,()=>xge(t,s,0),2e3,l==null?void 0:l.watchOptions,pC.PackageJson,r),onDeleteValue:Ib})}function IJe(t,r){if(t.watchAllProjectsPending){jf("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of Kxe(r)){const l=vI(t,s),m=bj(t,s,l);CJe(t,s,l,m),g8e(t,l,m),m&&(DJe(t,s,l,m),Age(t,s,l,m),uZ(t,s,l,m))}jf("SolutionBuilder::afterWatcherCreation"),dd("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function zct(t){Mh(t.allWatchedConfigFiles,Ib),Mh(t.allWatchedExtendedConfigFiles,dC),Mh(t.allWatchedWildcardDirectories,r=>Mh(r,dC)),Mh(t.allWatchedInputFiles,r=>Mh(r,Ib)),Mh(t.allWatchedPackageJsonFiles,r=>Mh(r,Ib))}function kJe(t,r,s,l,m){const y=vge(t,r,s,l,m);return{build:(T,D,I,W)=>oAe(y,T,D,I,W),clean:T=>xJe(y,T),buildReferences:(T,D,I,W)=>oAe(y,T,D,I,W,!0),cleanReferences:T=>xJe(y,T,!0),getNextInvalidatedProject:T=>(a8e(y,T),Yxe(y,bge(y),!1)),getBuildOrder:()=>bge(y),getUpToDateStatusOfProject:T=>{const D=F$(y,T),I=vI(y,D);return Cse(y,bj(y,D,I),I)},invalidateProject:(T,D)=>aAe(y,T,D||0),close:()=>zct(y)}}function wb(t,r){return r7(r,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function aS(t,r,...s){t.host.reportSolutionBuilderStatus(W_(r,...s))}function sAe(t,r,...s){var l,m;(m=(l=t.hostWithWatch).onWatchStatusChange)==null||m.call(l,W_(r,...s),t.host.getNewLine(),t.baseCompilerOptions)}function fZ({host:t},r){r.forEach(s=>t.reportDiagnostic(s))}function Tj(t,r,s){fZ(t,s),t.projectErrorsReported.set(r,!0),s.length&&t.diagnostics.set(r,s)}function PJe(t,r){Tj(t,r,[t.configFileCache.get(r)])}function NJe(t,r){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:l}=t;let m=0,y=[];yj(r)?(h8e(t,r.buildOrder),fZ(t,r.circularDiagnostics),s&&(m+=Bxe(r.circularDiagnostics)),s&&(y=[...y,...zxe(r.circularDiagnostics)])):(r.forEach(T=>{const D=vI(t,T);t.projectErrorsReported.has(D)||fZ(t,l.get(D)||Zn)}),s&&l.forEach(T=>m+=Bxe(T)),s&&l.forEach(T=>[...y,...zxe(T)])),t.watch?sAe(t,w$(m),m):t.host.reportErrorSummary&&t.host.reportErrorSummary(m,y)}function h8e(t,r){t.options.verbose&&aS(t,w.Projects_in_this_build_Colon_0,r.map(s=>`\r - * `+wb(t,s)).join(""))}function t1(t,r,s){switch(s.type){case 6:return aS(t,w.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,wb(t,r),wb(t,s.outOfDateOutputFileName),wb(t,s.newerInputFileName));case 7:return aS(t,w.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,wb(t,r),wb(t,s.outOfDateOutputFileName),wb(t,s.newerProjectName));case 4:return aS(t,w.Project_0_is_out_of_date_because_output_file_1_does_not_exist,wb(t,r),wb(t,s.missingOutputFileName));case 5:return aS(t,w.Project_0_is_out_of_date_because_there_was_error_reading_file_1,wb(t,r),wb(t,s.fileName));case 8:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,wb(t,r),wb(t,s.buildInfoFile));case 9:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,wb(t,r),wb(t,s.buildInfoFile));case 10:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,wb(t,r),wb(t,s.buildInfoFile),wb(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return aS(t,w.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,wb(t,r),wb(t,s.newestInputFileName||""),wb(t,s.oldestOutputFileName||""));break;case 3:return aS(t,w.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,wb(t,r),wb(t,s.newerProjectName));case 2:return aS(t,w.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,wb(t,r));case 15:return aS(t,w.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,wb(t,r));case 11:return aS(t,w.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,wb(t,r),wb(t,s.upstreamProjectName));case 12:return aS(t,s.upstreamProjectBlocked?w.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:w.Project_0_can_t_be_built_because_its_dependency_1_has_errors,wb(t,r),wb(t,s.upstreamProjectName));case 0:return aS(t,w.Failed_to_parse_file_0_Colon_1,wb(t,r),s.reason);case 14:return aS(t,w.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,wb(t,r),s.version,At);case 17:return aS(t,w.Project_0_is_being_forcibly_rebuilt,wb(t,r))}}function aT(t,r,s){t.options.verbose&&t1(t,r,s)}var cAe,Dse,Sj,wJe=G({"src/compiler/tsbuildPublic.ts"(){Ad(),NM(),cAe=new Date(-864e13),Dse=new Date(864e13),Sj=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(Sj||{})}}),Ad=G({"src/compiler/_namespaces/ts.ts"(){tr(),fMe(),J1(),H_(),Tb(),dMe(),W_e(),mMe(),V2(),Hre(),Rat(),PMe(),zd(),_Ee(),Xde(),lst(),ust(),lUe(),uUe(),fUe(),I6e(),xpe(),bUe(),P3(),vLe(),NLe(),R2e(),M2e(),CHe(),LS(),QLe(),K2e(),Yst(),Qst(),nct(),rct(),l4e(),sct(),cct(),FQ(),_4e(),lct(),uct(),Cme(),d4e(),p4e(),h4e(),rxe(),_ct(),dct(),pct(),mct(),gct(),hct(),QHe(),v4e(),b4e(),E4e(),WQ(),Wme(),mxe(),use(),Xme(),Yme(),U4e(),Nxe(),X4e(),Z4e(),O$(),mge(),wJe(),bae(),NM()}});function y8e(t,r){return new en(T8(r,`ts${ot}`)||T8(r,"latest")).compareTo(t.version)<=0}function RJe(t){return qW.has(t)?"node":t}function lAe(t,r){const s=rQ(r,l=>t.readFile(l));return new Map(Object.entries(s.config))}function MJe(t,r){var s;const l=rQ(r,m=>t.readFile(m));if((s=l.config)!=null&&s.simpleMap)return new Map(Object.entries(l.config.simpleMap))}function LJe(t,r,s,l,m,y,T,D,I,W){if(!T||!T.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const O=new Map;s=Qo(s,pt=>{const Le=Fd(pt);if(eD(Le))return Le});const V=[];T.include&&Ne(T.include,"Explicitly included types");const ee=T.exclude||[];if(!W.types){const pt=new Set(s.map(qc));pt.add(l),pt.forEach(Le=>{Be(Le,"bower.json","bower_components",V),Be(Le,"package.json","node_modules",V)})}if(T.disableFilenameBasedTypeAcquisition||Ve(s),D){const pt=th(D.map(RJe),ZA,Fp);Ne(pt,"Inferred typings from unresolved imports")}y.forEach((pt,Le)=>{const ht=I.get(Le);O.has(Le)&&O.get(Le)===void 0&&ht!==void 0&&y8e(pt,ht)&&O.set(Le,pt.typingLocation)});for(const pt of ee)O.delete(pt)&&r&&r(`Typing for ${pt} is in exclude list, will be ignored.`);const te=[],oe=[];O.forEach((pt,Le)=>{pt!==void 0?oe.push(pt):te.push(Le)});const de={cachedTypingPaths:oe,newTypingNames:te,filesToWatch:V};return r&&r(`Result: ${JSON.stringify(de)}`),de;function ue(pt){O.has(pt)||O.set(pt,void 0)}function Ne(pt,Le){r&&r(`${Le}: ${JSON.stringify(pt)}`),Ot(pt,ue)}function Be(pt,Le,ht,ke){const _t=tf(pt,Le);let Dt,Ft;t.fileExists(_t)&&(ke.push(_t),Dt=rQ(_t,lt=>t.readFile(lt)).config,Ft=ea([Dt.dependencies,Dt.devDependencies,Dt.optionalDependencies,Dt.peerDependencies],ET),Ne(Ft,`Typing names in '${_t}' dependencies`));const it=tf(pt,ht);if(ke.push(it),!t.directoryExists(it))return;const Ye=[],ut=Ft?Ft.map(lt=>tf(it,lt,Le)):t.readDirectory(it,[".json"],void 0,void 0,3).filter(lt=>{if(Iy(lt)!==Le)return!1;const zt=g0(Fd(lt)),Wt=zt[zt.length-3][0]==="@";return Wt&&Q0(zt[zt.length-4])===ht||!Wt&&Q0(zt[zt.length-3])===ht});r&&r(`Searching for typing names in ${it}; all files: ${JSON.stringify(ut)}`);for(const lt of ut){const zt=Fd(lt),tt=rQ(zt,kn=>t.readFile(kn)).config;if(!tt.name)continue;const Mn=tt.types||tt.typings;if(Mn){const kn=Su(Mn,qc(zt));t.fileExists(kn)?(r&&r(` Package '${tt.name}' provides its own types.`),O.set(tt.name,kn)):r&&r(` Package '${tt.name}' provides its own types but they are missing.`)}else Ye.push(tt.name)}Ne(Ye," Found package names")}function Ve(pt){const Le=Qo(pt,ke=>{if(!eD(ke))return;const _t=wg(Q0(Iy(ke))),Dt=AL(_t);return m.get(Dt)});Le.length&&Ne(Le,"Inferred typings from file names"),gt(pt,ke=>Pg(ke,".jsx"))&&(r&&r("Inferred 'react' typings due to presence of '.jsx' extension"),ue("react"))}}function uAe(t){return v8e(t,!0)}function v8e(t,r){if(!t)return 1;if(t.length>dZ)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(r){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const l=v8e(s[1],!1);if(l!==0)return{name:s[1],isScopeName:!0,result:l};const m=v8e(s[2],!1);return m!==0?{name:s[2],isScopeName:!1,result:m}:0}}return encodeURIComponent(t)!==t?5:0}function md(t,r){return typeof t=="object"?b8e(r,t.result,t.name,t.isScopeName):b8e(r,t,r,!1)}function b8e(t,r,s,l){const m=l?"Scope":"Package";switch(r){case 1:return`'${t}':: ${m} name '${s}' cannot be empty`;case 2:return`'${t}':: ${m} name '${s}' should be less than ${dZ} characters`;case 3:return`'${t}':: ${m} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${m} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${m} name '${s}' contains non URI safe characters`;case 0:return ce.fail();default:ce.assertNever(r)}}var fAe,_Ae,Ej,qW,_Z,dZ,T8e=G({"src/jsTyping/jsTyping.ts"(){Dge(),fAe=["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"],_Ae=fAe.map(t=>`node:${t}`),Ej=[...fAe,..._Ae],qW=new Set(Ej),_Z=(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))(_Z||{}),dZ=214}}),EF={};Oe(EF,{NameValidationResult:()=>_Z,discoverTypings:()=>LJe,isTypingUpToDate:()=>y8e,loadSafeList:()=>lAe,loadTypesMap:()=>MJe,nodeCoreModuleList:()=>Ej,nodeCoreModules:()=>qW,nonRelativeModuleNameForTypingCache:()=>RJe,prefixedNodeCoreModuleList:()=>_Ae,renderPackageNameValidationFailure:()=>md,validatePackageName:()=>uAe});var dAe=G({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){T8e()}});function pAe(t){return m0.args.indexOf(t)>=0}function S8e(t){const r=m0.args.indexOf(t);return r>=0&&r{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(A8e||(A8e={}))}}),jct=G({"src/jsTyping/types.ts"(){}}),gAe={};Oe(gAe,{ActionInvalidate:()=>mAe,ActionPackageInstalled:()=>OJe,ActionSet:()=>Cge,ActionWatchTypingLocations:()=>WJe,Arguments:()=>A8e,EventBeginInstallTypes:()=>kse,EventEndInstallTypes:()=>E8e,EventInitializationFailed:()=>x8e,EventTypesRegistry:()=>FJe,findArgument:()=>S8e,hasArgument:()=>pAe,nowString:()=>Ise});var Vct=G({"src/jsTyping/_namespaces/ts.server.ts"(){Gct(),jct()}}),Dge=G({"src/jsTyping/_namespaces/ts.ts"(){Ad(),dAe(),Vct()}});function hAe(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` +`}),O}function Gxe(t){return!!t.getState}function jxe(t,r){const s=t.getCompilerOptions();s.explainFiles?pse(Gxe(t)?t.getProgram():t,r):(s.listFiles||s.listFilesOnly)&&Ot(t.getSourceFiles(),l=>{r(l.fileName)})}function pse(t,r){var s,l;const m=t.getFileIncludeReasons(),y=T=>r7(T,t.getCurrentDirectory(),t.getCanonicalFileName);for(const T of t.getSourceFiles())r(`${R$(T,y)}`),(s=m.get(T.path))==null||s.forEach(D=>r(` ${uge(t,D,y).messageText}`)),(l=aZ(T,y))==null||l.forEach(D=>r(` ${D.messageText}`))}function aZ(t,r){var s;let l;if(t.path!==t.resolvedPath&&(l??(l=[])).push(Es(void 0,w.File_is_output_of_project_reference_source_0,R$(t.originalFileName,r))),t.redirectInfo&&(l??(l=[])).push(Es(void 0,w.File_redirects_to_file_0,R$(t.redirectInfo.redirectTarget,r))),h1(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(l??(l=[])).push(Es(void 0,w.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,R$(yl(t.packageJsonLocations),r)));break;case 1:t.packageJsonScope?(l??(l=[])).push(Es(void 0,t.packageJsonScope.contents.packageJsonContent.type?w.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:w.File_is_CommonJS_module_because_0_does_not_have_field_type,R$(yl(t.packageJsonLocations),r))):(s=t.packageJsonLocations)!=null&&s.length&&(l??(l=[])).push(Es(void 0,w.File_is_CommonJS_module_because_package_json_was_not_found));break}return l}function mse(t,r){var s;const l=t.getCompilerOptions().configFile;if(!((s=l==null?void 0:l.configFileSpecs)!=null&&s.validatedFilesSpec))return;const m=t.getCanonicalFileName(r),y=qc(Su(l.fileName,t.getCurrentDirectory()));return lr(l.configFileSpecs.validatedFilesSpec,T=>t.getCanonicalFileName(Su(T,y))===m)}function Vxe(t,r){var s,l;const m=t.getCompilerOptions().configFile;if(!((s=m==null?void 0:m.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(m.configFileSpecs.isDefaultIncludeSpec)return!0;const y=Pg(r,".json"),T=qc(Su(m.fileName,t.getCurrentDirectory())),D=t.useCaseSensitiveFileNames();return lr((l=m==null?void 0:m.configFileSpecs)==null?void 0:l.validatedIncludeSpecs,I=>{if(y&&!h_(I,".json"))return!1;const W=roe(I,T,"files");return!!W&&Y2(`(${W})$`,D).test(r)})}function uge(t,r,s){var l,m;const y=t.getCompilerOptions();if(k6(r)){const T=VW(W=>t.getSourceFileByPath(W),r),D=yF(T)?T.file.text.substring(T.pos,T.end):`"${T.text}"`;let I;switch(ce.assert(yF(T)||r.kind===3,"Only synthetic references are imports"),r.kind){case 3:yF(T)?I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2:w.Imported_via_0_from_file_1:T.text===_6?I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:w.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:I=T.packageId?w.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:w.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:ce.assert(!T.packageId),I=w.Referenced_via_0_from_file_1;break;case 5:I=T.packageId?w.Type_library_referenced_via_0_from_file_1_with_packageId_2:w.Type_library_referenced_via_0_from_file_1;break;case 7:ce.assert(!T.packageId),I=w.Library_referenced_via_0_from_file_1;break;default:ce.assertNever(r)}return Es(void 0,I,D,R$(T.file,s),T.packageId&&pP(T.packageId))}switch(r.kind){case 0:if(!((l=y.configFile)!=null&&l.configFileSpecs))return Es(void 0,w.Root_file_specified_for_compilation);const T=Su(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(mse(t,T))return Es(void 0,w.Part_of_files_list_in_tsconfig_json);const I=Vxe(t,T);return As(I)?Es(void 0,w.Matched_by_include_pattern_0_in_1,I,R$(y.configFile,s)):Es(void 0,I?w.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:w.Root_file_specified_for_compilation);case 1:case 2:const W=r.kind===2,O=ce.checkDefined((m=t.getResolvedProjectReferences())==null?void 0:m[r.index]);return Es(void 0,Kg(y)?W?w.Output_from_referenced_project_0_included_because_1_specified:w.Source_from_referenced_project_0_included_because_1_specified:W?w.Output_from_referenced_project_0_included_because_module_is_specified_as_none:w.Source_from_referenced_project_0_included_because_module_is_specified_as_none,R$(O.sourceFile.fileName,s),y.outFile?"--outFile":"--out");case 8:{const V=y.types?r.packageId?[w.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,r.typeReference,pP(r.packageId)]:[w.Entry_point_of_type_library_0_specified_in_compilerOptions,r.typeReference]:r.packageId?[w.Entry_point_for_implicit_type_library_0_with_packageId_1,r.typeReference,pP(r.packageId)]:[w.Entry_point_for_implicit_type_library_0,r.typeReference];return Es(void 0,...V)}case 6:{if(r.index!==void 0)return Es(void 0,w.Library_0_specified_in_compilerOptions,y.lib[r.index]);const V=wT(cQ.type,(te,oe)=>te===iu(y)?oe:void 0),ee=V?[w.Default_library_for_target_0,V]:[w.Default_library];return Es(void 0,...ee)}default:ce.assertNever(r)}}function R$(t,r){const s=As(t)?t:t.fileName;return r?r(s):s}function gse(t,r,s,l,m,y,T,D){const I=!!t.getCompilerOptions().listFilesOnly,W=t.getConfigFileParsingDiagnostics().slice(),O=W.length;Oi(W,t.getSyntacticDiagnostics(void 0,y)),W.length===O&&(Oi(W,t.getOptionsDiagnostics(y)),I||(Oi(W,t.getGlobalDiagnostics(y)),W.length===O&&Oi(W,t.getSemanticDiagnostics(void 0,y))));const V=I?{emitSkipped:!0,diagnostics:Zn}:t.emit(void 0,m,y,T,D),{emittedFiles:ee,diagnostics:te}=V;Oi(W,te);const oe=P8(W);if(oe.forEach(r),s){const de=t.getCurrentDirectory();Ot(ee,ue=>{const Ne=Su(ue,de);s(`TSFILE: ${Ne}`)}),jxe(t,s)}return l&&l(Bxe(oe),zxe(oe)),{emitResult:V,diagnostics:oe}}function fge(t,r,s,l,m,y,T,D){const{emitResult:I,diagnostics:W}=gse(t,r,s,l,m,y,T,D);return I.emitSkipped&&W.length>0?1:W.length>0?2:0}function hse(t=m0,r){return{onWatchStatusChange:r||hJe(t),watchFile:wc(t,t.watchFile)||Tse,watchDirectory:wc(t,t.watchDirectory)||Tse,setTimeout:wc(t,t.setTimeout)||ku,clearTimeout:wc(t,t.clearTimeout)||ku}}function yse(t,r){const s=t.trace?r.extendedDiagnostics?2:r.diagnostics?1:0:0,l=s!==0?y=>t.trace(y):ku,m=jme(t,s,l);return m.writeLog=l,m}function vse(t,r,s=t){const l=t.useCaseSensitiveFileNames(),m={getSourceFile:R4e((y,T)=>T?t.readFile(y,T):m.readFile(y),r,void 0),getDefaultLibLocation:wc(t,t.getDefaultLibLocation),getDefaultLibFileName:y=>t.getDefaultLibFileName(y),writeFile:Jme((y,T,D)=>t.writeFile(y,T,D),y=>t.createDirectory(y),y=>t.directoryExists(y)),getCurrentDirectory:Pd(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>l,getCanonicalFileName:_v(l),getNewLine:()=>JE(r()),fileExists:y=>t.fileExists(y),readFile:y=>t.readFile(y),trace:wc(t,t.trace),directoryExists:wc(s,s.directoryExists),getDirectories:wc(s,s.getDirectories),realpath:wc(t,t.realpath),getEnvironmentVariable:wc(t,t.getEnvironmentVariable)||(()=>""),createHash:wc(t,t.createHash),readDirectory:wc(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return m}function sZ(t,r){if(r.match(YLe)){let s=r.length,l=s;for(let m=s-1;m>=0;m--){const y=r.charCodeAt(m);switch(y){case 10:m&&r.charCodeAt(m-1)===13&&m--;case 13:break;default:if(y<127||!Ff(y)){l=m;continue}break}const T=r.substring(l,s);if(T.match(V2e)){r=r.substring(0,l);break}else if(!T.match(U2e))break;s=l}}return(t.createHash||G_e)(r)}function cZ(t){const r=t.getSourceFile;t.getSourceFile=(...s)=>{const l=r.call(t,...s);return l&&(l.version=sZ(t,l.text)),l}}function JW(t,r){const s=Pd(()=>qc(Fd(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Pd(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:l=>tf(s(),qre(l)),fileExists:l=>t.fileExists(l),readFile:(l,m)=>t.readFile(l,m),directoryExists:l=>t.directoryExists(l),getDirectories:l=>t.getDirectories(l),readDirectory:(l,m,y,T,D)=>t.readDirectory(l,m,y,T,D),realpath:wc(t,t.realpath),getEnvironmentVariable:wc(t,t.getEnvironmentVariable),trace:l=>t.write(l+t.newLine),createDirectory:l=>t.createDirectory(l),writeFile:(l,m,y)=>t.writeFile(l,m,y),createHash:wc(t,t.createHash),createProgram:r||fse,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:wc(t,t.now)}}function bse(t=m0,r,s,l){const m=T=>t.write(T+t.newLine),y=JW(t,r);return E8(y,hse(t,l)),y.afterProgramCreate=T=>{const D=T.getCompilerOptions(),I=JE(D);gse(T,s,m,W=>y.onWatchStatusChange(W_(w$(W),W),I,D,W))},y}function Uxe(t,r,s){r(s),t.exit(1)}function _ge({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:l,system:m,createProgram:y,reportDiagnostic:T,reportWatchStatus:D}){const I=T||iZ(m),W=bse(m,y,I,D);return W.onUnRecoverableConfigFileDiagnostic=O=>Uxe(m,I,O),W.configFileName=t,W.optionsToExtend=r,W.watchOptionsToExtend=s,W.extraFileExtensions=l,W}function dge({rootFiles:t,options:r,watchOptions:s,projectReferences:l,system:m,createProgram:y,reportDiagnostic:T,reportWatchStatus:D}){const I=bse(m,y,T||iZ(m),D);return I.rootFiles=t,I.options=r,I.watchOptions=s,I.projectReferences=l,I}function Hxe(t){const r=t.system||m0,s=t.host||(t.host=Jxe(t.options,r)),l=$xe(t),m=fge(l,t.reportDiagnostic||iZ(r),y=>s.trace&&s.trace(y),t.reportErrorSummary||t.options.pretty?(y,T)=>r.write(yJe(y,T,r.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(l),m}var lZ,M$,SF,Tse,pC,Z4e=G({"src/compiler/watch.ts"(){Ad(),lZ=m0?{getCurrentDirectory:()=>m0.getCurrentDirectory(),getNewLine:()=>m0.newLine,getCanonicalFileName:_v(m0.useCaseSensitiveFileNames)}:void 0,M$=[w.Starting_compilation_in_watch_mode.code,w.File_change_detected_Starting_incremental_compilation.code],SF={close:ku},Tse=()=>SF,pC={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 Sse(t,r){const s=ZN(t);if(!s)return;let l;if(r.getBuildInfo)l=r.getBuildInfo(s,t.configFilePath);else{const m=r.readFile(s);if(!m)return;l=Ome(s,m)}if(!(!l||l.version!==At||!l.program))return rge(l,s,r)}function Jxe(t,r=m0){const s=HQ(t,void 0,r);return s.createHash=wc(r,r.createHash),s.storeFilesChangingSignatureDuringEmit=r.storeFilesChangingSignatureDuringEmit,cZ(s),JQ(s,l=>_h(l,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function $xe({rootNames:t,options:r,configFileParsingDiagnostics:s,projectReferences:l,host:m,createProgram:y}){m=m||Jxe(r),y=y||fse;const T=Sse(r,m);return y(t,r,m,T,s,l)}function pge(t,r,s,l,m,y,T,D){return ls(t)?dge({rootFiles:t,options:r,watchOptions:D,projectReferences:T,system:s,createProgram:l,reportDiagnostic:m,reportWatchStatus:y}):_ge({configFileName:t,optionsToExtend:r,watchOptionsToExtend:T,extraFileExtensions:D,system:s,createProgram:l,reportDiagnostic:m,reportWatchStatus:y})}function L$(t){let r,s,l,m,y,T,D,I,W=t.extendedConfigCache,O=!1;const V=new Map;let ee,te=!1;const oe=t.useCaseSensitiveFileNames(),de=t.getCurrentDirectory(),{configFileName:ue,optionsToExtend:Ne={},watchOptionsToExtend:Be,extraFileExtensions:Ve,createProgram:pt}=t;let{rootFiles:Le,options:ht,watchOptions:ke,projectReferences:_t}=t,Dt,Ft,it=!1,Ye=!1;const ut=ue===void 0?void 0:Bme(t,de,oe),lt=ut||t,zt=Sxe(t,lt);let Wt=ho();ue&&t.configFileParsingResult&&(sl(t.configFileParsingResult),Wt=ho()),al(w.Starting_compilation_in_watch_mode),ue&&!t.configFileParsingResult&&(Wt=JE(Ne),ce.assert(!Le),Aa(),Wt=ho()),ce.assert(ht),ce.assert(Le);const{watchFile:tt,watchDirectory:Mn,writeLog:kn}=yse(t,ht),cr=_v(oe);kn(`Current directory: ${de} CaseSensitiveFileNames: ${oe}`);let un;ue&&(un=tt(ue,$a,2e3,ke,pC.ConfigFile));const on=vse(t,()=>ht,lt);cZ(on);const pn=on.getSourceFile;on.getSourceFile=(Cn,...oi)=>Gs(Cn,di(Cn),...oi),on.getSourceFileByPath=Gs,on.getNewLine=()=>Wt,on.fileExists=ro,on.onReleaseOldSourceFile=Ku,on.onReleaseParsedCommandLine=Jr,on.toPath=di,on.getCompilationSettings=()=>ht,on.useSourceOfProjectReferenceRedirect=wc(t,t.useSourceOfProjectReferenceRedirect),on.watchDirectoryOfFailedLookupLocation=(Cn,oi,Qr)=>Mn(Cn,oi,Qr,ke,pC.FailedLookupLocations),on.watchAffectingFileLocation=(Cn,oi)=>tt(Cn,oi,2e3,ke,pC.AffectingFileLocation),on.watchTypeRootsDirectory=(Cn,oi,Qr)=>Mn(Cn,oi,Qr,ke,pC.TypeRoots),on.getCachedDirectoryStructureHost=()=>ut,on.scheduleInvalidateResolutionsOfFailedLookupLocations=Ea,on.onInvalidatedResolution=ta,on.onChangedAutomaticTypeDirectiveNames=ta,on.fileIsOpen=bg,on.getCurrentProgram=ei,on.writeLog=kn,on.getParsedCommandLine=vc;const Or=q4e(on,ue?qc(Su(ue,de)):de,!1);on.resolveModuleNameLiterals=wc(t,t.resolveModuleNameLiterals),on.resolveModuleNames=wc(t,t.resolveModuleNames),!on.resolveModuleNameLiterals&&!on.resolveModuleNames&&(on.resolveModuleNameLiterals=Or.resolveModuleNameLiterals.bind(Or)),on.resolveTypeReferenceDirectiveReferences=wc(t,t.resolveTypeReferenceDirectiveReferences),on.resolveTypeReferenceDirectives=wc(t,t.resolveTypeReferenceDirectives),!on.resolveTypeReferenceDirectiveReferences&&!on.resolveTypeReferenceDirectives&&(on.resolveTypeReferenceDirectiveReferences=Or.resolveTypeReferenceDirectiveReferences.bind(Or)),on.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Or.resolveLibrary.bind(Or),on.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?wc(t,t.getModuleResolutionCache):()=>Or.getModuleResolutionCache();const Ut=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?wc(t,t.hasInvalidatedResolutions)||xT:bg,In=t.resolveLibrary?wc(t,t.hasInvalidatedLibResolutions)||xT:bg;return r=Sse(ht,on),Gn(),gn(),ue&&mt(di(ue),ht,ke,pC.ExtendedConfigFile),ue?{getCurrentProgram:Cr,getProgram:Xu,close:gr}:{getCurrentProgram:Cr,getProgram:Xu,updateRootFileNames:so,close:gr};function gr(){mc(),Or.clear(),Mh(V,Cn=>{Cn&&Cn.fileWatcher&&(Cn.fileWatcher.close(),Cn.fileWatcher=void 0)}),un&&(un.close(),un=void 0),W==null||W.clear(),W=void 0,I&&(Mh(I,dC),I=void 0),m&&(Mh(m,dC),m=void 0),l&&(Mh(l,Ib),l=void 0),D&&(Mh(D,Cn=>{var oi;(oi=Cn.watcher)==null||oi.close(),Cn.watcher=void 0,Cn.watchedDirectories&&Mh(Cn.watchedDirectories,dC),Cn.watchedDirectories=void 0}),D=void 0)}function Cr(){return r}function ei(){return r&&r.getProgramOrUndefined()}function Gn(){kn("Synchronizing program"),ce.assert(ht),ce.assert(Le),mc();const Cn=Cr();te&&(Wt=ho(),Cn&&g9(Cn.getCompilerOptions(),ht)&&Or.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:oi,hasInvalidatedLibResolutions:Qr}=Or.createHasInvalidatedResolutions(Ut,In),{originalReadFile:co,originalFileExists:es,originalDirectoryExists:Ui,originalCreateDirectory:xu,originalWriteFile:We,readFileWithCache:Re}=JQ(on,di);return Qae(ei(),Le,ht,wt=>_u(wt,Re),wt=>on.fileExists(wt),oi,Qr,Rr,vc,_t)?Ye&&(O&&al(w.File_change_detected_Starting_incremental_compilation),r=pt(void 0,void 0,on,r,Ft,_t),Ye=!1):(O&&al(w.File_change_detected_Starting_incremental_compilation),Ur(oi,Qr)),O=!1,t.afterProgramCreate&&Cn!==r&&t.afterProgramCreate(r),on.readFile=co,on.fileExists=es,on.directoryExists=Ui,on.createDirectory=xu,on.writeFile=We,r}function Ur(Cn,oi){kn("CreatingProgramWith::"),kn(` roots: ${JSON.stringify(Le)}`),kn(` options: ${JSON.stringify(ht)}`),_t&&kn(` projectReferences: ${JSON.stringify(_t)}`);const Qr=te||!ei();te=!1,Ye=!1,Or.startCachingPerDirectoryResolution(),on.hasInvalidatedResolutions=Cn,on.hasInvalidatedLibResolutions=oi,on.hasChangedAutomaticTypeDirectiveNames=Rr;const co=ei();if(r=pt(Le,ht,on,r,Ft,_t),Or.finishCachingPerDirectoryResolution(r.getProgram(),co),Jae(r.getProgram(),l||(l=new Map),xt),Qr&&Or.updateTypeRootsWatch(),ee){for(const es of ee)l.has(es)||V.delete(es);ee=void 0}}function so(Cn){ce.assert(!ue,"Cannot update root file names with config file watch mode"),Le=Cn,ta()}function ho(){return JE(ht||Ne)}function di(Cn){return _h(Cn,de,cr)}function Nc(Cn){return typeof Cn=="boolean"}function ha(Cn){return typeof Cn.version=="boolean"}function ro(Cn){const oi=di(Cn);return Nc(V.get(oi))?!1:lt.fileExists(Cn)}function Gs(Cn,oi,Qr,co,es){const Ui=V.get(oi);if(Nc(Ui))return;const xu=typeof Qr=="object"?Qr.impliedNodeFormat:void 0;if(Ui===void 0||es||ha(Ui)||Ui.sourceFile.impliedNodeFormat!==xu){const We=pn(Cn,Qr,co);if(Ui)We?(Ui.sourceFile=We,Ui.version=We.version,Ui.fileWatcher||(Ui.fileWatcher=li(oi,Cn,Ir,250,ke,pC.SourceFile))):(Ui.fileWatcher&&Ui.fileWatcher.close(),V.set(oi,!1));else if(We){const Re=li(oi,Cn,Ir,250,ke,pC.SourceFile);V.set(oi,{sourceFile:We,version:We.version,fileWatcher:Re})}else V.set(oi,!1);return We}return Ui.sourceFile}function Oc(Cn){const oi=V.get(Cn);oi!==void 0&&(Nc(oi)?V.set(Cn,{version:!1}):oi.version=!1)}function _u(Cn,oi){const Qr=V.get(Cn);if(!Qr)return;if(Qr.version)return Qr.version;const co=oi(Cn);return co!==void 0?sZ(on,co):void 0}function Ku(Cn,oi,Qr){const co=V.get(Cn.resolvedPath);co!==void 0&&(Nc(co)?(ee||(ee=[])).push(Cn.path):co.sourceFile===Cn&&(co.fileWatcher&&co.fileWatcher.close(),V.delete(Cn.resolvedPath),Qr||Or.removeResolutionsOfFile(Cn.path)))}function al(Cn){t.onWatchStatusChange&&t.onWatchStatusChange(W_(Cn),Wt,ht||Ne)}function Rr(){return Or.hasChangedAutomaticTypeDirectiveNames()}function mc(){return T?(t.clearTimeout(T),T=void 0,!0):!1}function Ea(){if(!t.setTimeout||!t.clearTimeout)return Or.invalidateResolutionsOfFailedLookupLocations();const Cn=mc();kn(`Scheduling invalidateFailedLookup${Cn?", Cancelled earlier one":""}`),T=t.setTimeout(Fi,250,"timerToInvalidateFailedLookupResolutions")}function Fi(){T=void 0,Or.invalidateResolutionsOfFailedLookupLocations()&&ta()}function ta(){!t.setTimeout||!t.clearTimeout||(y&&t.clearTimeout(y),kn("Scheduling update"),y=t.setTimeout(jc,250,"timerToUpdateProgram"))}function $a(){ce.assert(!!ue),s=2,ta()}function jc(){y=void 0,O=!0,Xu()}function Xu(){var Cn,oi,Qr,co;switch(s){case 1:(Cn=jD)==null||Cn.logStartUpdateProgram("PartialConfigReload"),Lo();break;case 2:(oi=jD)==null||oi.logStartUpdateProgram("FullConfigReload"),To();break;default:(Qr=jD)==null||Qr.logStartUpdateProgram("SynchronizeProgram"),Gn();break}return(co=jD)==null||co.logStopUpdateProgram("Done"),Cr()}function Lo(){kn("Reloading new file names and options"),ce.assert(ht),ce.assert(ue),s=0,Le=x6(ht.configFile.configFileSpecs,Su(qc(ue),de),ht,zt,Ve),l2e(Le,Su(ue,de),ht.configFile.configFileSpecs,Ft,it)&&(Ye=!0),Gn()}function To(){ce.assert(ue),kn(`Reloading config file: ${ue}`),s=0,ut&&ut.clearCache(),Aa(),te=!0,Gn(),gn(),mt(di(ue),ht,ke,pC.ExtendedConfigFile)}function Aa(){ce.assert(ue),sl(QJ(ue,Ne,zt,W||(W=new Map),Be,Ve))}function sl(Cn){Le=Cn.fileNames,ht=Cn.options,ke=Cn.watchOptions,_t=Cn.projectReferences,Dt=Cn.wildcardDirectories,Ft=UW(Cn).slice(),it=eae(Cn.raw),Ye=!0}function vc(Cn){const oi=di(Cn);let Qr=D==null?void 0:D.get(oi);if(Qr){if(!Qr.reloadLevel)return Qr.parsedCommandLine;if(Qr.parsedCommandLine&&Qr.reloadLevel===1&&!t.getParsedCommandLine){kn("Reloading new file names and options"),ce.assert(ht);const es=x6(Qr.parsedCommandLine.options.configFile.configFileSpecs,Su(qc(Cn),de),ht,zt);return Qr.parsedCommandLine={...Qr.parsedCommandLine,fileNames:es},Qr.reloadLevel=void 0,Qr.parsedCommandLine}}kn(`Loading config file: ${Cn}`);const co=t.getParsedCommandLine?t.getParsedCommandLine(Cn):er(Cn);return Qr?(Qr.parsedCommandLine=co,Qr.reloadLevel=void 0):(D||(D=new Map)).set(oi,Qr={parsedCommandLine:co}),_r(Cn,oi,Qr),co}function er(Cn){const oi=zt.onUnRecoverableConfigFileDiagnostic;zt.onUnRecoverableConfigFileDiagnostic=ku;const Qr=QJ(Cn,void 0,zt,W||(W=new Map),Be);return zt.onUnRecoverableConfigFileDiagnostic=oi,Qr}function Jr(Cn){var oi;const Qr=di(Cn),co=D==null?void 0:D.get(Qr);co&&(D.delete(Qr),co.watchedDirectories&&Mh(co.watchedDirectories,dC),(oi=co.watcher)==null||oi.close(),zme(Qr,I))}function li(Cn,oi,Qr,co,es,Ui){return tt(oi,(xu,We)=>Qr(xu,We,Cn),co,es,Ui)}function Ir(Cn,oi,Qr){_o(Cn,Qr,oi),oi===2&&V.has(Qr)&&Or.invalidateResolutionOfFile(Qr),Oc(Qr),ta()}function _o(Cn,oi,Qr){ut&&ut.addOrDeleteFile(Cn,oi,Qr)}function xt(Cn){return D!=null&&D.has(Cn)?SF:li(Cn,Cn,Kn,500,ke,pC.MissingFile)}function Kn(Cn,oi,Qr){_o(Cn,Qr,oi),oi===0&&l.has(Qr)&&(l.get(Qr).close(),l.delete(Qr),Oc(Qr),ta())}function gn(){Dt?D$(m||(m=new Map),new Map(Object.entries(Dt)),qr):m&&Mh(m,dC)}function qr(Cn,oi){return Mn(Cn,Qr=>{ce.assert(ue),ce.assert(ht);const co=di(Qr);ut&&ut.addOrDeleteFileOrDirectory(Qr,co),Oc(co),!VQ({watchedDirPath:di(Cn),fileOrDirectory:Qr,fileOrDirectoryPath:co,configFileName:ue,extraFileExtensions:Ve,options:ht,program:Cr()||Le,currentDirectory:de,useCaseSensitiveFileNames:oe,writeLog:kn,toPath:di})&&s!==2&&(s=1,ta())},oi,ke,pC.WildcardDirectory)}function mt(Cn,oi,Qr,co){_4(Cn,oi,I||(I=new Map),(es,Ui)=>tt(es,(xu,We)=>{var Re;_o(es,Ui,We),W&&C$(W,Ui,di);const wt=(Re=I.get(Ui))==null?void 0:Re.projects;wt!=null&&wt.size&&wt.forEach($e=>{if(ue&&di(ue)===$e)s=2;else{const Zt=D==null?void 0:D.get($e);Zt&&(Zt.reloadLevel=2),Or.removeResolutionsFromProjectReferenceRedirects($e)}ta()})},2e3,Qr,co),di)}function _r(Cn,oi,Qr){var co,es,Ui,xu,We;Qr.watcher||(Qr.watcher=tt(Cn,(Re,wt)=>{_o(Cn,oi,wt);const $e=D==null?void 0:D.get(oi);$e&&($e.reloadLevel=2),Or.removeResolutionsFromProjectReferenceRedirects(oi),ta()},2e3,((co=Qr.parsedCommandLine)==null?void 0:co.watchOptions)||ke,pC.ConfigFileOfReferencedProject)),(es=Qr.parsedCommandLine)!=null&&es.wildcardDirectories?D$(Qr.watchedDirectories||(Qr.watchedDirectories=new Map),new Map(Object.entries((Ui=Qr.parsedCommandLine)==null?void 0:Ui.wildcardDirectories)),(Re,wt)=>{var $e;return Mn(Re,Zt=>{const xe=di(Zt);ut&&ut.addOrDeleteFileOrDirectory(Zt,xe),Oc(xe);const an=D==null?void 0:D.get(oi);an!=null&&an.parsedCommandLine&&(VQ({watchedDirPath:di(Re),fileOrDirectory:Zt,fileOrDirectoryPath:xe,configFileName:Cn,options:an.parsedCommandLine.options,program:an.parsedCommandLine.fileNames,currentDirectory:de,useCaseSensitiveFileNames:oe,writeLog:kn,toPath:di})||an.reloadLevel!==2&&(an.reloadLevel=1,ta()))},wt,(($e=Qr.parsedCommandLine)==null?void 0:$e.watchOptions)||ke,pC.WildcardDirectoryOfReferencedProject)}):Qr.watchedDirectories&&(Mh(Qr.watchedDirectories,dC),Qr.watchedDirectories=void 0),mt(oi,(xu=Qr.parsedCommandLine)==null?void 0:xu.options,((We=Qr.parsedCommandLine)==null?void 0:We.watchOptions)||ke,pC.ExtendedConfigOfReferencedProject)}}var O$=G({"src/compiler/watchPublic.ts"(){Ad()}});function r0(t){return Pg(t,".json")?t:tf(t,"tsconfig.json")}var e8e,mge=G({"src/compiler/tsbuild.ts"(){Ad(),e8e=(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))(e8e||{})}});function qxe(t,r,s){const l=t.get(r);let m;return l||(m=s(),t.set(r,m)),l||m}function gge(t,r){return qxe(t,r,()=>new Map)}function Ese(t){return t.now?t.now():new Date}function hj(t){return!!t&&!!t.buildOrder}function Kxe(t){return hj(t)?t.buildOrder:t}function hge(t,r){return s=>{let l=r?`[${NR(oZ(t),"\x1B[90m")}] `:`${oZ(t)} - `;l+=`${d4(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(l)}}function yge(t,r,s,l){const m=JW(t,r);return m.getModifiedTime=t.getModifiedTime?y=>t.getModifiedTime(y):eE,m.setModifiedTime=t.setModifiedTime?(y,T)=>t.setModifiedTime(y,T):ku,m.deleteFile=t.deleteFile?y=>t.deleteFile(y):ku,m.reportDiagnostic=s||iZ(t),m.reportSolutionBuilderStatus=l||hge(t),m.now=wc(t,t.now),m}function Lct(t=m0,r,s,l,m){const y=yge(t,r,s,l);return y.reportErrorSummary=m,y}function Oct(t=m0,r,s,l,m){const y=yge(t,r,s,l),T=hse(t,m);return E8(y,T),y}function t8e(t){const r={};return uF.forEach(s=>{ef(t,s.name)&&(r[s.name]=t[s.name])}),r}function xse(t,r,s){return kJe(!1,t,r,s)}function yj(t,r,s,l){return kJe(!0,t,r,s,l)}function vge(t,r,s,l,m){const y=r,T=r,D=t8e(l),I=vse(y,()=>de.projectCompilerOptions);cZ(I),I.getParsedCommandLine=ue=>vj(de,ue,vI(de,ue)),I.resolveModuleNameLiterals=wc(y,y.resolveModuleNameLiterals),I.resolveTypeReferenceDirectiveReferences=wc(y,y.resolveTypeReferenceDirectiveReferences),I.resolveLibrary=wc(y,y.resolveLibrary),I.resolveModuleNames=wc(y,y.resolveModuleNames),I.resolveTypeReferenceDirectives=wc(y,y.resolveTypeReferenceDirectives),I.getModuleResolutionCache=wc(y,y.getModuleResolutionCache);let W,O;!I.resolveModuleNameLiterals&&!I.resolveModuleNames&&(W=IR(I.getCurrentDirectory(),I.getCanonicalFileName),I.resolveModuleNameLiterals=(ue,Ne,Be,Ve,pt)=>W3(ue,Ne,Be,Ve,pt,y,W,Kae),I.getModuleResolutionCache=()=>W),!I.resolveTypeReferenceDirectiveReferences&&!I.resolveTypeReferenceDirectives&&(O=T2e(I.getCurrentDirectory(),I.getCanonicalFileName,void 0,W==null?void 0:W.getPackageJsonInfoCache()),I.resolveTypeReferenceDirectiveReferences=(ue,Ne,Be,Ve,pt)=>W3(ue,Ne,Be,Ve,pt,y,O,PA));let V;I.resolveLibrary||(V=IR(I.getCurrentDirectory(),I.getCanonicalFileName,void 0,W==null?void 0:W.getPackageJsonInfoCache()),I.resolveLibrary=(ue,Ne,Be)=>S2e(ue,Ne,Be,y,V)),I.getBuildInfo=(ue,Ne)=>tAe(de,ue,vI(de,Ne),void 0);const{watchFile:ee,watchDirectory:te,writeLog:oe}=yse(T,l),de={host:y,hostWithWatch:T,parseConfigFileHost:Sxe(y),write:wc(y,y.trace),options:l,baseCompilerOptions:D,rootNames:s,baseWatchOptions:m,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:I,moduleResolutionCache:W,typeReferenceDirectiveResolutionCache:O,libraryResolutionCache:V,buildOrder:void 0,readFileWithCache:ue=>y.readFile(ue),projectCompilerOptions:D,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:ee,watchDirectory:te,writeLog:oe};return de}function QE(t,r){return _h(r,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function vI(t,r){const{resolvedConfigFilePaths:s}=t,l=s.get(r);if(l!==void 0)return l;const m=QE(t,r);return s.set(r,m),m}function n8e(t){return!!t.options}function vJe(t,r){const s=t.configFileCache.get(r);return s&&n8e(s)?s:void 0}function vj(t,r,s){const{configFileCache:l}=t,m=l.get(s);if(m)return n8e(m)?m:void 0;jf("SolutionBuilder::beforeConfigFileParsing");let y;const{parseConfigFileHost:T,baseCompilerOptions:D,baseWatchOptions:I,extendedConfigCache:W,host:O}=t;let V;return O.getParsedCommandLine?(V=O.getParsedCommandLine(r),V||(y=W_(w.File_0_not_found,r))):(T.onUnRecoverableConfigFileDiagnostic=ee=>y=ee,V=QJ(r,D,T,W,I),T.onUnRecoverableConfigFileDiagnostic=ku),l.set(s,V||y),jf("SolutionBuilder::afterConfigFileParsing"),dd("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),V}function F$(t,r){return r0(gm(t.compilerHost.getCurrentDirectory(),r))}function r8e(t,r){const s=new Map,l=new Map,m=[];let y,T;for(const I of r)D(I);return T?{buildOrder:y||Zn,circularDiagnostics:T}:y||Zn;function D(I,W){const O=vI(t,I);if(l.has(O))return;if(s.has(O)){W||(T||(T=[])).push(W_(w.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,m.join(`\r +`)));return}s.set(O,!0),m.push(I);const V=vj(t,I,O);if(V&&V.projectReferences)for(const ee of V.projectReferences){const te=F$(t,ee.path);D(te,W||ee.circular)}m.pop(),l.set(O,!0),(y||(y=[])).push(I)}}function bge(t){return t.buildOrder||cx(t)}function cx(t){const r=r8e(t,t.rootNames.map(m=>F$(t,m)));t.resolvedConfigFilePaths.clear();const s=new Map(Kxe(r).map(m=>[vI(t,m),!0])),l={onDeleteValue:ku};return wS(t.configFileCache,s,l),wS(t.projectStatus,s,l),wS(t.builderPrograms,s,l),wS(t.diagnostics,s,l),wS(t.projectPendingBuild,s,l),wS(t.projectErrorsReported,s,l),wS(t.buildInfoCache,s,l),wS(t.outputTimeStamps,s,l),t.watch&&(wS(t.allWatchedConfigFiles,s,{onDeleteValue:Ib}),t.allWatchedExtendedConfigFiles.forEach(m=>{m.projects.forEach(y=>{s.has(y)||m.projects.delete(y)}),m.close()}),wS(t.allWatchedWildcardDirectories,s,{onDeleteValue:m=>m.forEach(dC)}),wS(t.allWatchedInputFiles,s,{onDeleteValue:m=>m.forEach(Ib)}),wS(t.allWatchedPackageJsonFiles,s,{onDeleteValue:m=>m.forEach(Ib)})),t.buildOrder=r}function bI(t,r,s){const l=r&&F$(t,r),m=bge(t);if(hj(m))return m;if(l){const T=vI(t,l);if(Ho(m,I=>vI(t,I)===T)===-1)return}const y=l?r8e(t,[l]):m;return ce.assert(!hj(y)),ce.assert(!s||l!==void 0),ce.assert(!s||y[y.length-1]===l),s?y.slice(0,y.length-1):y}function i8e(t){t.cache&&o8e(t);const{compilerHost:r,host:s}=t,l=t.readFileWithCache,m=r.getSourceFile,{originalReadFile:y,originalFileExists:T,originalDirectoryExists:D,originalCreateDirectory:I,originalWriteFile:W,getSourceFileWithCache:O,readFileWithCache:V}=JQ(s,ee=>QE(t,ee),(...ee)=>m.call(r,...ee));t.readFileWithCache=V,r.getSourceFile=O,t.cache={originalReadFile:y,originalFileExists:T,originalDirectoryExists:D,originalCreateDirectory:I,originalWriteFile:W,originalReadFileWithCache:l,originalGetSourceFile:m}}function o8e(t){if(!t.cache)return;const{cache:r,host:s,compilerHost:l,extendedConfigCache:m,moduleResolutionCache:y,typeReferenceDirectiveResolutionCache:T,libraryResolutionCache:D}=t;s.readFile=r.originalReadFile,s.fileExists=r.originalFileExists,s.directoryExists=r.originalDirectoryExists,s.createDirectory=r.originalCreateDirectory,s.writeFile=r.originalWriteFile,l.getSourceFile=r.originalGetSourceFile,t.readFileWithCache=r.originalReadFileWithCache,m.clear(),y==null||y.clear(),T==null||T.clear(),D==null||D.clear(),t.cache=void 0}function $W(t,r){t.projectStatus.delete(r),t.diagnostics.delete(r)}function W$({projectPendingBuild:t},r,s){const l=t.get(r);(l===void 0||lt.projectPendingBuild.set(vI(t,l),0)),r&&r.throwIfCancellationRequested()}function Ase(t,r){return t.projectPendingBuild.delete(r),t.diagnostics.has(r)?1:0}function Fct(t,r,s,l,m){let y=!0;return{kind:2,project:r,projectPath:s,buildOrder:m,getCompilerOptions:()=>l.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{iAe(t,l,s),y=!1},done:()=>(y&&iAe(t,l,s),jf("SolutionBuilder::Timestamps only updates"),Ase(t,s))}}function s8e(t,r,s,l,m,y,T){let D=t===0?0:4,I,W,O;return t===0?{kind:t,project:s,projectPath:l,buildOrder:T,getCompilerOptions:()=>y.options,getCurrentDirectory:()=>r.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>ee(Of),getProgram:()=>ee(ke=>ke.getProgramOrUndefined()),getSourceFile:ke=>ee(_t=>_t.getSourceFile(ke)),getSourceFiles:()=>te(ke=>ke.getSourceFiles()),getOptionsDiagnostics:ke=>te(_t=>_t.getOptionsDiagnostics(ke)),getGlobalDiagnostics:ke=>te(_t=>_t.getGlobalDiagnostics(ke)),getConfigFileParsingDiagnostics:()=>te(ke=>ke.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ke,_t)=>te(Dt=>Dt.getSyntacticDiagnostics(ke,_t)),getAllDependencies:ke=>te(_t=>_t.getAllDependencies(ke)),getSemanticDiagnostics:(ke,_t)=>te(Dt=>Dt.getSemanticDiagnostics(ke,_t)),getSemanticDiagnosticsOfNextAffectedFile:(ke,_t)=>ee(Dt=>Dt.getSemanticDiagnosticsOfNextAffectedFile&&Dt.getSemanticDiagnosticsOfNextAffectedFile(ke,_t)),emit:(ke,_t,Dt,Ft,it)=>{if(ke||Ft)return ee(Ye=>{var ut,lt;return Ye.emit(ke,_t,Dt,Ft,it||((lt=(ut=r.host).getCustomTransformers)==null?void 0:lt.call(ut,s)))});if(ht(2,Dt),D===5)return Ve(_t,Dt);if(D===3)return Be(_t,Dt,it)},done:V}:{kind:t,project:s,projectPath:l,buildOrder:T,getCompilerOptions:()=>y.options,getCurrentDirectory:()=>r.compilerHost.getCurrentDirectory(),emit:(ke,_t)=>D!==4?O:Le(ke,_t),done:V};function V(ke,_t,Dt){return ht(8,ke,_t,Dt),jf(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Ase(r,l)}function ee(ke){return ht(0),I&&ke(I)}function te(ke){return ee(ke)||Zn}function oe(){var ke,_t;if(ce.assert(I===void 0),r.options.dry){aS(r,w.A_non_dry_build_would_build_project_0,s),W=1,D=7;return}if(r.options.verbose&&aS(r,w.Building_project_0,s),y.fileNames.length===0){bj(r,l,UW(y)),W=0,D=7;return}const{host:Dt,compilerHost:Ft}=r;r.projectCompilerOptions=y.options,(ke=r.moduleResolutionCache)==null||ke.update(y.options),(_t=r.typeReferenceDirectiveResolutionCache)==null||_t.update(y.options),I=Dt.createProgram(y.fileNames,y.options,Ft,TJe(r,l,y),UW(y),y.projectReferences),r.watch&&(r.lastCachedPackageJsonLookups.set(l,r.moduleResolutionCache&&Vn(r.moduleResolutionCache.getPackageJsonInfoCache().entries(),([it,Ye])=>[r.host.realpath&&Ye?QE(r,r.host.realpath(it)):it,Ye])),r.builderPrograms.set(l,I)),D++}function de(ke,_t,Dt){ke.length?{buildResult:W,step:D}=Qxe(r,l,I,y,ke,_t,Dt):D++}function ue(ke){ce.assertIsDefined(I),de([...I.getConfigFileParsingDiagnostics(),...I.getOptionsDiagnostics(ke),...I.getGlobalDiagnostics(ke),...I.getSyntacticDiagnostics(void 0,ke)],8,"Syntactic")}function Ne(ke){de(ce.checkDefined(I).getSemanticDiagnostics(void 0,ke),16,"Semantic")}function Be(ke,_t,Dt){var Ft,it,Ye;ce.assertIsDefined(I),ce.assert(D===3);const ut=I.saveEmitState();let lt;const zt=In=>(lt||(lt=[])).push(In),Wt=[],{emitResult:tt}=gse(I,zt,void 0,void 0,(In,gr,Cr,ei,Gn,Ur)=>Wt.push({name:In,text:gr,writeByteOrderMark:Cr,data:Ur}),_t,!1,Dt||((it=(Ft=r.host).getCustomTransformers)==null?void 0:it.call(Ft,s)));if(lt)return I.restoreEmitState(ut),{buildResult:W,step:D}=Qxe(r,l,I,y,lt,32,"Declaration file"),{emitSkipped:!0,diagnostics:tt.diagnostics};const{host:Mn,compilerHost:kn}=r,cr=(Ye=I.hasChangedEmitSignature)!=null&&Ye.call(I)?0:2,un=vY(),on=new Map,pn=I.getCompilerOptions(),Or=K9(pn);let Xr,Ut;return Wt.forEach(({name:In,text:gr,writeByteOrderMark:Cr,data:ei})=>{const Gn=QE(r,In);on.set(QE(r,In),In),ei!=null&&ei.buildInfo&&eAe(r,ei.buildInfo,l,pn,cr);const Ur=ei!=null&&ei.differsOnlyInMap?PU(r.host,In):void 0;sC(ke?{writeFile:ke}:kn,un,In,gr,Cr),ei!=null&&ei.differsOnlyInMap?r.host.setModifiedTime(In,Ur):!Or&&r.watch&&(Xr||(Xr=Sge(r,l))).set(Gn,Ut||(Ut=Ese(r.host)))}),pt(un,on,Wt.length?Wt[0].name:_xe(y,!Mn.useCaseSensitiveFileNames()),cr),tt}function Ve(ke,_t){ce.assertIsDefined(I),ce.assert(D===5);const Dt=I.emitBuildInfo((Ft,it,Ye,ut,lt,zt)=>{zt!=null&&zt.buildInfo&&eAe(r,zt.buildInfo,l,I.getCompilerOptions(),2),ke?ke(Ft,it,Ye,ut,lt,zt):r.compilerHost.writeFile(Ft,it,Ye,ut,lt,zt)},_t);return Dt.diagnostics.length&&(fZ(r,Dt.diagnostics),r.diagnostics.set(l,[...r.diagnostics.get(l),...Dt.diagnostics]),W=64&W),Dt.emittedFiles&&r.write&&Dt.emittedFiles.forEach(Ft=>l8e(r,y,Ft)),u8e(r,I,y),D=7,Dt}function pt(ke,_t,Dt,Ft){const it=ke.getDiagnostics();return it.length?({buildResult:W,step:D}=Qxe(r,l,I,y,it,64,"Emit"),it):(r.write&&_t.forEach(Ye=>l8e(r,y,Ye)),rAe(r,y,l,w.Updating_unchanged_output_timestamps_of_project_0,_t),r.diagnostics.delete(l),r.projectStatus.set(l,{type:1,oldestOutputFileName:Dt}),u8e(r,I,y),D=7,W=Ft,it)}function Le(ke,_t){var Dt,Ft,it,Ye;if(ce.assert(t===1),r.options.dry){aS(r,w.A_non_dry_build_would_update_output_of_project_0,s),W=1,D=7;return}r.options.verbose&&aS(r,w.Updating_output_of_project_0,s);const{compilerHost:ut}=r;r.projectCompilerOptions=y.options,(Ft=(Dt=r.host).beforeEmitBundle)==null||Ft.call(Dt,y);const lt=Uae(y,ut,cr=>{const un=F$(r,cr.path);return vj(r,un,vI(r,un))},_t||((Ye=(it=r.host).getCustomTransformers)==null?void 0:Ye.call(it,s)));if(As(lt))return aS(r,w.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,wb(r,lt)),D=6,O=s8e(0,r,s,l,m,y,T);ce.assert(!!lt.length);const zt=vY(),Wt=new Map;let tt=2;const Mn=r.buildInfoCache.get(l).buildInfo||void 0;return lt.forEach(({name:cr,text:un,writeByteOrderMark:on,data:pn})=>{var Or,Xr;Wt.set(QE(r,cr),cr),pn!=null&&pn.buildInfo&&(((Or=pn.buildInfo.program)==null?void 0:Or.outSignature)!==((Xr=Mn==null?void 0:Mn.program)==null?void 0:Xr.outSignature)&&(tt&=-3),eAe(r,pn.buildInfo,l,y.options,tt)),sC(ke?{writeFile:ke}:ut,zt,cr,un,on)}),{emitSkipped:!1,diagnostics:pt(zt,Wt,lt[0].name,tt)}}function ht(ke,_t,Dt,Ft){for(;D<=ke&&D<8;){const it=D;switch(D){case 0:oe();break;case 1:ue(_t);break;case 2:Ne(_t);break;case 3:Be(Dt,_t,Ft);break;case 5:Ve(Dt,_t);break;case 4:Le(Dt,Ft);break;case 6:ce.checkDefined(O).done(_t,Dt,Ft),D=8;break;case 7:EJe(r,s,l,m,y,T,ce.checkDefined(W)),D++;break}ce.assert(D>it)}}}function bJe({options:t},r,s){return r.type!==3||t.force?!0:s.fileNames.length===0||!!UW(s).length||!K9(s.options)}function Xxe(t,r,s){if(!t.projectPendingBuild.size||hj(r))return;const{options:l,projectPendingBuild:m}=t;for(let y=0;y{const te=ce.checkDefined(t.filesWatched.get(D));ce.assert(Zxe(te)),te.modifiedTime=ee,te.callbacks.forEach(oe=>oe(O,V,ee))},l,m,y,T);t.filesWatched.set(D,{callbacks:[s],watcher:W,modifiedTime:I})}return{close:()=>{const W=ce.checkDefined(t.filesWatched.get(D));ce.assert(Zxe(W)),W.callbacks.length===1?(t.filesWatched.delete(D),dC(W)):IM(W.callbacks,s)}}}function Sge(t,r){if(!t.watch)return;let s=t.outputTimeStamps.get(r);return s||t.outputTimeStamps.set(r,s=new Map),s}function eAe(t,r,s,l,m){const y=ZN(l),T=_8e(t,y,s),D=Ese(t.host);T?(T.buildInfo=r,T.modifiedTime=D,m&2||(T.latestChangedDtsTime=D)):t.buildInfoCache.set(s,{path:QE(t,y),buildInfo:r,modifiedTime:D,latestChangedDtsTime:m&2?void 0:D})}function _8e(t,r,s){const l=QE(t,r),m=t.buildInfoCache.get(s);return(m==null?void 0:m.path)===l?m:void 0}function tAe(t,r,s,l){const m=QE(t,r),y=t.buildInfoCache.get(s);if(y!==void 0&&y.path===m)return y.buildInfo||void 0;const T=t.readFileWithCache(r),D=T?Ome(r,T):void 0;return t.buildInfoCache.set(s,{path:m,buildInfo:D||!1,modifiedTime:l||aP}),D}function Ege(t,r,s,l){const m=f8e(t,r);if(sde&&(oe=Dt,de=Ft),ee&&Ne.add(QE(t,Dt))}if(ee){te||(te=ige(ee,I,D));for(const Dt of te.roots)if(!Ne.has(Dt))return{type:10,buildInfoFile:I,inputFile:Dt}}if(!I){const Dt=Lme(r,!D.useCaseSensitiveFileNames()),Ft=Sge(t,s);for(const it of Dt){const Ye=QE(t,it);let ut=Ft==null?void 0:Ft.get(Ye);if(ut||(ut=PU(t.host,it),Ft==null||Ft.set(Ye,ut)),ut===aP)return{type:4,missingOutputFileName:it};if(utEge(t,Dt,O,W));if(ke)return ke;const _t=Ot(t.lastCachedPackageJsonLookups.get(s)||Zn,([Dt])=>Ege(t,Dt,O,W));return _t||(pt&&Ve?{type:3,outOfDateOutputFileName:W,newerProjectName:Le}:{type:Ve?2:ue?15:1,newestInputFileTime:de,newestInputFileName:oe,oldestOutputFileName:W})}function SJe(t,r,s){return t.buildInfoCache.get(s).path===r.path}function Cse(t,r,s){if(r===void 0)return{type:0,reason:"File deleted mid-build"};const l=t.projectStatus.get(s);if(l!==void 0)return l;jf("SolutionBuilder::beforeUpToDateCheck");const m=nAe(t,r,s);return jf("SolutionBuilder::afterUpToDateCheck"),dd("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,m),m}function rAe(t,r,s,l,m){if(r.options.noEmit)return;let y;const T=ZN(r.options);if(T){m!=null&&m.has(QE(t,T))||(t.options.verbose&&aS(t,l,r.options.configFilePath),t.host.setModifiedTime(T,y=Ese(t.host)),_8e(t,T,s).modifiedTime=y),t.outputTimeStamps.delete(s);return}const{host:D}=t,I=Lme(r,!D.useCaseSensitiveFileNames()),W=Sge(t,s),O=W?new Set:void 0;if(!m||I.length!==m.size){let V=!!t.options.verbose;for(const ee of I){const te=QE(t,ee);m!=null&&m.has(te)||(V&&(V=!1,aS(t,l,r.options.configFilePath)),D.setModifiedTime(ee,y||(y=Ese(t.host))),W&&(W.set(te,y),O.add(te)))}}W==null||W.forEach((V,ee)=>{!(m!=null&&m.has(ee))&&!O.has(ee)&&W.delete(ee)})}function d8e(t,r,s){if(!r.composite)return;const l=ce.checkDefined(t.buildInfoCache.get(s));if(l.latestChangedDtsTime!==void 0)return l.latestChangedDtsTime||void 0;const m=l.buildInfo&&l.buildInfo.program&&l.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime(Su(l.buildInfo.program.latestChangedDtsFile,qc(l.path))):void 0;return l.latestChangedDtsTime=m||!1,m}function iAe(t,r,s){if(t.options.dry)return aS(t,w.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);rAe(t,r,s,w.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:_xe(r,!t.host.useCaseSensitiveFileNames())})}function EJe(t,r,s,l,m,y,T){if(!(T&124)&&m.options.composite)for(let D=l+1;Dt.diagnostics.has(vI(t,W)))?I?2:1:0}function xJe(t,r,s){jf("SolutionBuilder::beforeClean");const l=p8e(t,r,s);return jf("SolutionBuilder::afterClean"),dd("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),l}function p8e(t,r,s){const l=bI(t,r,s);if(!l)return 3;if(hj(l))return fZ(t,l.circularDiagnostics),4;const{options:m,host:y}=t,T=m.dry?[]:void 0;for(const D of l){const I=vI(t,D),W=vj(t,D,I);if(W===void 0){PJe(t,I);continue}const O=Lme(W,!y.useCaseSensitiveFileNames());if(!O.length)continue;const V=new Set(W.fileNames.map(ee=>QE(t,ee)));for(const ee of O)V.has(QE(t,ee))||y.fileExists(ee)&&(T?T.push(ee):(y.deleteFile(ee),aAe(t,I,0)))}return T&&aS(t,w.A_non_dry_build_would_delete_the_following_files_Colon_0,T.map(D=>`\r + * ${D}`).join("")),0}function aAe(t,r,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,$W(t,r),W$(t,r,s),i8e(t)}function xge(t,r,s){t.reportFileChangeDetected=!0,aAe(t,r,s),m8e(t,250,!0)}function m8e(t,r,s){const{hostWithWatch:l}=t;!l.setTimeout||!l.clearTimeout||(t.timerToBuildInvalidatedProject&&l.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=l.setTimeout(Bct,r,"timerToBuildInvalidatedProject",t,s))}function Bct(t,r,s){jf("SolutionBuilder::beforeBuild");const l=AJe(r,s);jf("SolutionBuilder::afterBuild"),dd("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l&&NJe(r,l)}function AJe(t,r){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),sAe(t,w.File_change_detected_Starting_incremental_compilation));let s=0;const l=bge(t),m=Yxe(t,l,!1);if(m)for(m.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const y=Xxe(t,l,!1);if(!y)break;if(y.kind!==2&&(r||s===5)){m8e(t,100,!1);return}c8e(t,y,l).done(),y.kind!==2&&s++}return o8e(t),l}function CJe(t,r,s,l){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,Tge(t,r,()=>xge(t,s,2),2e3,l==null?void 0:l.watchOptions,pC.ConfigFile,r))}function g8e(t,r,s){_4(r,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(l,m)=>Tge(t,l,()=>{var y;return(y=t.allWatchedExtendedConfigFiles.get(m))==null?void 0:y.projects.forEach(T=>xge(t,T,2))},2e3,s==null?void 0:s.watchOptions,pC.ExtendedConfigFile),l=>QE(t,l))}function DJe(t,r,s,l){t.watch&&D$(gge(t.allWatchedWildcardDirectories,s),new Map(Object.entries(l.wildcardDirectories)),(m,y)=>t.watchDirectory(m,T=>{var D;VQ({watchedDirPath:QE(t,m),fileOrDirectory:T,fileOrDirectoryPath:QE(t,T),configFileName:r,currentDirectory:t.compilerHost.getCurrentDirectory(),options:l.options,program:t.builderPrograms.get(s)||((D=vJe(t,s))==null?void 0:D.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:I=>t.writeLog(I),toPath:I=>QE(t,I)})||xge(t,s,1)},y,l==null?void 0:l.watchOptions,pC.WildcardDirectory,r))}function Age(t,r,s,l){t.watch&&a6(gge(t.allWatchedInputFiles,s),QT(l.fileNames,m=>QE(t,m)),{createNewValue:(m,y)=>Tge(t,y,()=>xge(t,s,0),250,l==null?void 0:l.watchOptions,pC.SourceFile,r),onDeleteValue:Ib})}function uZ(t,r,s,l){!t.watch||!t.lastCachedPackageJsonLookups||a6(gge(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(m,y)=>Tge(t,m,()=>xge(t,s,0),2e3,l==null?void 0:l.watchOptions,pC.PackageJson,r),onDeleteValue:Ib})}function IJe(t,r){if(t.watchAllProjectsPending){jf("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of Kxe(r)){const l=vI(t,s),m=vj(t,s,l);CJe(t,s,l,m),g8e(t,l,m),m&&(DJe(t,s,l,m),Age(t,s,l,m),uZ(t,s,l,m))}jf("SolutionBuilder::afterWatcherCreation"),dd("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function zct(t){Mh(t.allWatchedConfigFiles,Ib),Mh(t.allWatchedExtendedConfigFiles,dC),Mh(t.allWatchedWildcardDirectories,r=>Mh(r,dC)),Mh(t.allWatchedInputFiles,r=>Mh(r,Ib)),Mh(t.allWatchedPackageJsonFiles,r=>Mh(r,Ib))}function kJe(t,r,s,l,m){const y=vge(t,r,s,l,m);return{build:(T,D,I,W)=>oAe(y,T,D,I,W),clean:T=>xJe(y,T),buildReferences:(T,D,I,W)=>oAe(y,T,D,I,W,!0),cleanReferences:T=>xJe(y,T,!0),getNextInvalidatedProject:T=>(a8e(y,T),Yxe(y,bge(y),!1)),getBuildOrder:()=>bge(y),getUpToDateStatusOfProject:T=>{const D=F$(y,T),I=vI(y,D);return Cse(y,vj(y,D,I),I)},invalidateProject:(T,D)=>aAe(y,T,D||0),close:()=>zct(y)}}function wb(t,r){return r7(r,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function aS(t,r,...s){t.host.reportSolutionBuilderStatus(W_(r,...s))}function sAe(t,r,...s){var l,m;(m=(l=t.hostWithWatch).onWatchStatusChange)==null||m.call(l,W_(r,...s),t.host.getNewLine(),t.baseCompilerOptions)}function fZ({host:t},r){r.forEach(s=>t.reportDiagnostic(s))}function bj(t,r,s){fZ(t,s),t.projectErrorsReported.set(r,!0),s.length&&t.diagnostics.set(r,s)}function PJe(t,r){bj(t,r,[t.configFileCache.get(r)])}function NJe(t,r){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:l}=t;let m=0,y=[];hj(r)?(h8e(t,r.buildOrder),fZ(t,r.circularDiagnostics),s&&(m+=Bxe(r.circularDiagnostics)),s&&(y=[...y,...zxe(r.circularDiagnostics)])):(r.forEach(T=>{const D=vI(t,T);t.projectErrorsReported.has(D)||fZ(t,l.get(D)||Zn)}),s&&l.forEach(T=>m+=Bxe(T)),s&&l.forEach(T=>[...y,...zxe(T)])),t.watch?sAe(t,w$(m),m):t.host.reportErrorSummary&&t.host.reportErrorSummary(m,y)}function h8e(t,r){t.options.verbose&&aS(t,w.Projects_in_this_build_Colon_0,r.map(s=>`\r + * `+wb(t,s)).join(""))}function t1(t,r,s){switch(s.type){case 6:return aS(t,w.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,wb(t,r),wb(t,s.outOfDateOutputFileName),wb(t,s.newerInputFileName));case 7:return aS(t,w.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,wb(t,r),wb(t,s.outOfDateOutputFileName),wb(t,s.newerProjectName));case 4:return aS(t,w.Project_0_is_out_of_date_because_output_file_1_does_not_exist,wb(t,r),wb(t,s.missingOutputFileName));case 5:return aS(t,w.Project_0_is_out_of_date_because_there_was_error_reading_file_1,wb(t,r),wb(t,s.fileName));case 8:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,wb(t,r),wb(t,s.buildInfoFile));case 9:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,wb(t,r),wb(t,s.buildInfoFile));case 10:return aS(t,w.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,wb(t,r),wb(t,s.buildInfoFile),wb(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return aS(t,w.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,wb(t,r),wb(t,s.newestInputFileName||""),wb(t,s.oldestOutputFileName||""));break;case 3:return aS(t,w.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,wb(t,r),wb(t,s.newerProjectName));case 2:return aS(t,w.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,wb(t,r));case 15:return aS(t,w.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,wb(t,r));case 11:return aS(t,w.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,wb(t,r),wb(t,s.upstreamProjectName));case 12:return aS(t,s.upstreamProjectBlocked?w.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:w.Project_0_can_t_be_built_because_its_dependency_1_has_errors,wb(t,r),wb(t,s.upstreamProjectName));case 0:return aS(t,w.Failed_to_parse_file_0_Colon_1,wb(t,r),s.reason);case 14:return aS(t,w.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,wb(t,r),s.version,At);case 17:return aS(t,w.Project_0_is_being_forcibly_rebuilt,wb(t,r))}}function aT(t,r,s){t.options.verbose&&t1(t,r,s)}var cAe,Dse,Tj,wJe=G({"src/compiler/tsbuildPublic.ts"(){Ad(),NM(),cAe=new Date(-864e13),Dse=new Date(864e13),Tj=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(Tj||{})}}),Ad=G({"src/compiler/_namespaces/ts.ts"(){tr(),fMe(),J1(),H_(),Tb(),dMe(),W_e(),mMe(),V2(),Hre(),Rat(),PMe(),zd(),_Ee(),Xde(),lst(),ust(),lUe(),uUe(),fUe(),I6e(),xpe(),bUe(),P3(),vLe(),NLe(),R2e(),M2e(),CHe(),LS(),QLe(),K2e(),Yst(),Qst(),nct(),rct(),l4e(),sct(),cct(),FQ(),_4e(),lct(),uct(),Cme(),d4e(),p4e(),h4e(),rxe(),_ct(),dct(),pct(),mct(),gct(),hct(),QHe(),v4e(),b4e(),E4e(),WQ(),Wme(),mxe(),use(),Xme(),Yme(),U4e(),Nxe(),X4e(),Z4e(),O$(),mge(),wJe(),bae(),NM()}});function y8e(t,r){return new en(T8(r,`ts${ot}`)||T8(r,"latest")).compareTo(t.version)<=0}function RJe(t){return qW.has(t)?"node":t}function lAe(t,r){const s=rQ(r,l=>t.readFile(l));return new Map(Object.entries(s.config))}function MJe(t,r){var s;const l=rQ(r,m=>t.readFile(m));if((s=l.config)!=null&&s.simpleMap)return new Map(Object.entries(l.config.simpleMap))}function LJe(t,r,s,l,m,y,T,D,I,W){if(!T||!T.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const O=new Map;s=Qo(s,pt=>{const Le=Fd(pt);if(eD(Le))return Le});const V=[];T.include&&Ne(T.include,"Explicitly included types");const ee=T.exclude||[];if(!W.types){const pt=new Set(s.map(qc));pt.add(l),pt.forEach(Le=>{Be(Le,"bower.json","bower_components",V),Be(Le,"package.json","node_modules",V)})}if(T.disableFilenameBasedTypeAcquisition||Ve(s),D){const pt=th(D.map(RJe),ZA,Fp);Ne(pt,"Inferred typings from unresolved imports")}y.forEach((pt,Le)=>{const ht=I.get(Le);O.has(Le)&&O.get(Le)===void 0&&ht!==void 0&&y8e(pt,ht)&&O.set(Le,pt.typingLocation)});for(const pt of ee)O.delete(pt)&&r&&r(`Typing for ${pt} is in exclude list, will be ignored.`);const te=[],oe=[];O.forEach((pt,Le)=>{pt!==void 0?oe.push(pt):te.push(Le)});const de={cachedTypingPaths:oe,newTypingNames:te,filesToWatch:V};return r&&r(`Result: ${JSON.stringify(de)}`),de;function ue(pt){O.has(pt)||O.set(pt,void 0)}function Ne(pt,Le){r&&r(`${Le}: ${JSON.stringify(pt)}`),Ot(pt,ue)}function Be(pt,Le,ht,ke){const _t=tf(pt,Le);let Dt,Ft;t.fileExists(_t)&&(ke.push(_t),Dt=rQ(_t,lt=>t.readFile(lt)).config,Ft=ea([Dt.dependencies,Dt.devDependencies,Dt.optionalDependencies,Dt.peerDependencies],ET),Ne(Ft,`Typing names in '${_t}' dependencies`));const it=tf(pt,ht);if(ke.push(it),!t.directoryExists(it))return;const Ye=[],ut=Ft?Ft.map(lt=>tf(it,lt,Le)):t.readDirectory(it,[".json"],void 0,void 0,3).filter(lt=>{if(Iy(lt)!==Le)return!1;const zt=g0(Fd(lt)),Wt=zt[zt.length-3][0]==="@";return Wt&&Q0(zt[zt.length-4])===ht||!Wt&&Q0(zt[zt.length-3])===ht});r&&r(`Searching for typing names in ${it}; all files: ${JSON.stringify(ut)}`);for(const lt of ut){const zt=Fd(lt),tt=rQ(zt,kn=>t.readFile(kn)).config;if(!tt.name)continue;const Mn=tt.types||tt.typings;if(Mn){const kn=Su(Mn,qc(zt));t.fileExists(kn)?(r&&r(` Package '${tt.name}' provides its own types.`),O.set(tt.name,kn)):r&&r(` Package '${tt.name}' provides its own types but they are missing.`)}else Ye.push(tt.name)}Ne(Ye," Found package names")}function Ve(pt){const Le=Qo(pt,ke=>{if(!eD(ke))return;const _t=wg(Q0(Iy(ke))),Dt=xL(_t);return m.get(Dt)});Le.length&&Ne(Le,"Inferred typings from file names"),gt(pt,ke=>Pg(ke,".jsx"))&&(r&&r("Inferred 'react' typings due to presence of '.jsx' extension"),ue("react"))}}function uAe(t){return v8e(t,!0)}function v8e(t,r){if(!t)return 1;if(t.length>dZ)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(r){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const l=v8e(s[1],!1);if(l!==0)return{name:s[1],isScopeName:!0,result:l};const m=v8e(s[2],!1);return m!==0?{name:s[2],isScopeName:!1,result:m}:0}}return encodeURIComponent(t)!==t?5:0}function md(t,r){return typeof t=="object"?b8e(r,t.result,t.name,t.isScopeName):b8e(r,t,r,!1)}function b8e(t,r,s,l){const m=l?"Scope":"Package";switch(r){case 1:return`'${t}':: ${m} name '${s}' cannot be empty`;case 2:return`'${t}':: ${m} name '${s}' should be less than ${dZ} characters`;case 3:return`'${t}':: ${m} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${m} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${m} name '${s}' contains non URI safe characters`;case 0:return ce.fail();default:ce.assertNever(r)}}var fAe,_Ae,Sj,qW,_Z,dZ,T8e=G({"src/jsTyping/jsTyping.ts"(){Dge(),fAe=["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"],_Ae=fAe.map(t=>`node:${t}`),Sj=[...fAe,..._Ae],qW=new Set(Sj),_Z=(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))(_Z||{}),dZ=214}}),EF={};Oe(EF,{NameValidationResult:()=>_Z,discoverTypings:()=>LJe,isTypingUpToDate:()=>y8e,loadSafeList:()=>lAe,loadTypesMap:()=>MJe,nodeCoreModuleList:()=>Sj,nodeCoreModules:()=>qW,nonRelativeModuleNameForTypingCache:()=>RJe,prefixedNodeCoreModuleList:()=>_Ae,renderPackageNameValidationFailure:()=>md,validatePackageName:()=>uAe});var dAe=G({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){T8e()}});function pAe(t){return m0.args.indexOf(t)>=0}function S8e(t){const r=m0.args.indexOf(t);return r>=0&&r{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(A8e||(A8e={}))}}),jct=G({"src/jsTyping/types.ts"(){}}),gAe={};Oe(gAe,{ActionInvalidate:()=>mAe,ActionPackageInstalled:()=>OJe,ActionSet:()=>Cge,ActionWatchTypingLocations:()=>WJe,Arguments:()=>A8e,EventBeginInstallTypes:()=>kse,EventEndInstallTypes:()=>E8e,EventInitializationFailed:()=>x8e,EventTypesRegistry:()=>FJe,findArgument:()=>S8e,hasArgument:()=>pAe,nowString:()=>Ise});var Vct=G({"src/jsTyping/_namespaces/ts.server.ts"(){Gct(),jct()}}),Dge=G({"src/jsTyping/_namespaces/ts.ts"(){Ad(),dAe(),Vct()}});function hAe(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 Ige,kge,Pge,Nge,NA,C8e,kk,D8e,B$,pZ,mZ,Pse,wge,z$,lx,Nse,wse,Rse,Mse,Lse,Ose,Fse,Rge,Wse=G({"src/services/types.ts"(){(t=>{class r{constructor(m){this.text=m}getText(m,y){return m===0&&y===this.text.length?this.text:this.text.substring(m,y)}getLength(){return this.text.length}getChangeRange(){}}function s(l){return new r(l)}t.fromString=s})(Ige||(Ige={})),kge=(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))(kge||{}),Pge=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(Pge||{}),Nge=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(Nge||{}),NA={},C8e=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(C8e||{}),kk=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(kk||{}),D8e=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(D8e||{}),B$=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(B$||{}),pZ=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(pZ||{}),mZ=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(mZ||{}),Pse=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(Pse||{}),wge=hAe(` -`),z$=(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))(z$||{}),lx=(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))(lx||{}),Nse=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(Nse||{}),wse=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(wse||{}),Rse=(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))(Rse||{}),Mse=(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))(Mse||{}),Lse=(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))(Lse||{}),Ose=(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))(Ose||{}),Fse=(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))(Fse||{}),Rge=(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))(Rge||{})}});function G$(t){switch(t.kind){case 260:return Rs(t)&&FM(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 Ov(t)||kR(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 z3(t){t=k8e(t);const r=t.parent;return t.kind===312?1:Ly(r)||Oy(r)||j0(r)||oS(r)||lC(r)||kh(r)&&t===r.name?7:gZ(t)?yAe(t):vP(t)?G$(r):Vd(t)&&Kr(t,dA(OJ,FL,Nu))?7:SAe(t)?2:vAe(t)?4:Hh(r)?(ce.assert(jx(r.parent)),2):_I(r)?3:1}function yAe(t){const r=t.kind===166?t:nT(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&r.parent.kind===271?7:4}function gZ(t){for(;t.parent.kind===166;)t=t.parent;return y1(t.parent)&&t.parent.moduleReference===t}function vAe(t){return bAe(t)||TAe(t)}function bAe(t){let r=t,s=!0;if(r.parent.kind===166){for(;r.parent&&r.parent.kind===166;)r=r.parent;s=r.right===t}return r.parent.kind===183&&!s}function TAe(t){let r=t,s=!0;if(r.parent.kind===211){for(;r.parent&&r.parent.kind===211;)r=r.parent;s=r.name===t}if(!s&&r.parent.kind===233&&r.parent.parent.kind===298){const l=r.parent.parent.parent;return l.kind===263&&r.parent.parent.token===119||l.kind===264&&r.parent.parent.token===96}return!1}function SAe(t){switch(kH(t)&&(t=t.parent),t.kind){case 110:return!Gy(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return rC(t.parent)}return!1}function Bse(t,r=!1,s=!1){return jse(t,el,EAe,r,s)}function zse(t,r=!1,s=!1){return jse(t,Ac,EAe,r,s)}function j$(t,r=!1,s=!1){return jse(t,IN,EAe,r,s)}function xF(t,r=!1,s=!1){return jse(t,Hm,Uct,r,s)}function BJe(t,r=!1,s=!1){return jse(t,Qf,EAe,r,s)}function Gse(t,r=!1,s=!1){return jse(t,Y1,Hct,r,s)}function EAe(t){return t.expression}function Uct(t){return t.tag}function Hct(t){return t.tagName}function jse(t,r,s,l,m){let y=l?V$(t):hZ(t);return m&&(y=rv(y)),!!y&&!!y.parent&&r(y.parent)&&s(y.parent)===y}function hZ(t){return G3(t)?t.parent:t}function V$(t){return G3(t)||TZ(t)?t.parent:t}function yZ(t,r){for(;t;){if(t.kind===256&&t.label.escapedText===r)return t.label;t=t.parent}}function vZ(t,r){return sa(t.expression)?t.expression.name.text===r:!1}function bZ(t){var r;return An(t)&&((r=to(t.parent,VX))==null?void 0:r.label)===t}function Mge(t){var r;return An(t)&&((r=to(t.parent,iS))==null?void 0:r.label)===t}function Vse(t){return Mge(t)||bZ(t)}function I8e(t){var r;return((r=to(t.parent,NT))==null?void 0:r.tagName)===t}function zJe(t){var r;return((r=to(t.parent,nT))==null?void 0:r.right)===t}function G3(t){var r;return((r=to(t.parent,sa))==null?void 0:r.name)===t}function TZ(t){var r;return((r=to(t.parent,Ed))==null?void 0:r.argumentExpression)===t}function Lge(t){var r;return((r=to(t.parent,xp))==null?void 0:r.name)===t}function SZ(t){var r;return An(t)&&((r=to(t.parent,S_))==null?void 0:r.name)===t}function xj(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return o_(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 EZ(t){return qM(t.parent.parent)&&S7(t.parent.parent)===t}function j3(t){for(T2(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 g4(t){switch(t.kind){case 312:return Wv(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 r(t);case 208:return r(rI(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 S_(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 il(t,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const l=Qy(t),{right:m}=t;switch(l){case 7:case 8:case 9:case 0:return"";case 1:case 2:const T=g4(m);return T===""?"const":T;case 3:return Dm(m)?"method":"property";case 4:return"property";case 5:return Dm(m)?"method":"property";case 6:return"local class";default:return""}case 80:return lC(t.parent)?"alias":"";case 277:const y=g4(t.expression);return y===""?"const":y;default:return""}function r(s){return h7(s)?"const":eSe(s)?"let":"var"}}function KW(t){switch(t.kind){case 110:return!0;case 80:return SY(t)&&t.parent.kind===169;default:return!1}}function wA(t,r){const s=q1(r),l=r.getLineAndCharacterOfPosition(t).line;return s[l]}function sS(t,r){return xZ(t.pos,t.end,r)}function Oge(t,r){return H$(t,r.pos)&&H$(t,r.end)}function U$(t,r){return t.pos<=r&&r<=t.end}function H$(t,r){return t.pos=s.end}function AZ(t,r,s){return t.pos<=r&&t.end>=s}function RR(t,r,s){return AF(t.pos,t.end,r,s)}function h4(t,r,s,l){return AF(t.getStart(r),t.end,s,l)}function AF(t,r,s,l){const m=Math.max(t,s),y=Math.min(r,l);return ml.kind===r)}function Aj(t){const r=lr(t.parent.getChildren(),s=>GJ(s)&&sS(s,t));return ce.assert(!r||ni(r.getChildren(),t)),r}function J$(t){return t.kind===90}function Fge(t){return t.kind===86}function Wge(t){return t.kind===100}function xAe(t){if(Xv(t))return t.name;if(Kc(t)){const r=t.modifiers&&lr(t.modifiers,J$);if(r)return r}if(B0(t)){const r=lr(t.getChildren(),Fge);if(r)return r}}function TI(t){if(Xv(t))return t.name;if(b0(t)){const r=lr(t.modifiers,J$);if(r)return r}if(Dm(t)){const r=lr(t.getChildren(),Wge);if(r)return r}}function AAe(t){let r;return Kr(t,s=>(Uu(s)&&(r=s),!nT(s.parent)&&!Uu(s.parent)&&!l7(s.parent))),r}function Hse(t,r){if(t.flags&16777216)return;const s=lce(t,r);if(s)return s;const l=AAe(t);return l&&r.getTypeAtLocation(l)}function Jse(t,r){if(!r)switch(t.kind){case 263:case 231:return xAe(t);case 262:case 218:return TI(t);case 176:return t}if(Xv(t))return t.name}function qm(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(y6(t.importClause.namedBindings)){const s=Vb(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(QL(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function $se(t,r){if(t.exportClause){if(G0(t.exportClause))return Vb(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(AP(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function GJe(t){if(t.types.length===1)return t.types[0].expression}function jJe(t,r){const{parent:s}=t;if(bd(t)&&(r||t.kind!==90)?nx(s)&&ni(s.modifiers,t):t.kind===86?Kc(s)||B0(t):t.kind===100?b0(s)||Dm(t):t.kind===120?Kp(s):t.kind===94?Ih(s):t.kind===156?mg(s):t.kind===145||t.kind===144?xp(s):t.kind===102?kh(s):t.kind===139?tm(s):t.kind===153&&Ep(s)){const l=Jse(s,r);if(l)return l}if((t.kind===115||t.kind===87||t.kind===121)&&My(s)&&s.declarations.length===1){const l=s.declarations[0];if(An(l.name))return l.name}if(t.kind===156){if(lC(s)&&s.isTypeOnly){const l=qm(s.parent,r);if(l)return l}if(mh(s)&&s.isTypeOnly){const l=$se(s,r);if(l)return l}}if(t.kind===130){if(oS(s)&&s.propertyName||Oy(s)&&s.propertyName||QL(s)||AP(s))return s.name;if(mh(s)&&s.exportClause&&AP(s.exportClause))return s.exportClause.name}if(t.kind===102&&Fv(s)){const l=qm(s,r);if(l)return l}if(t.kind===95){if(mh(s)){const l=$se(s,r);if(l)return l}if(Ly(s))return rv(s.expression)}if(t.kind===149&&j0(s))return s.expression;if(t.kind===161&&(Fv(s)||mh(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&rT(s)&&s.token===t.kind){const l=GJe(s);if(l)return l}if(t.kind===96){if(Hh(s)&&s.constraint&&x2(s.constraint))return s.constraint.typeName;if(hW(s)&&x2(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&fI(s))return s.typeParameter.name;if(t.kind===103&&Hh(s)&&yW(s.parent))return s.name;if(t.kind===143&&KN(s)&&s.operator===143&&x2(s.type))return s.type.typeName;if(t.kind===148&&KN(s)&&s.operator===148&&MG(s.type)&&x2(s.type.elementType))return s.type.elementType.typeName;if(!r){if((t.kind===105&&Ac(s)||t.kind===116&&$m(s)||t.kind===114&&Jm(s)||t.kind===135&&h6(s)||t.kind===127&&Ds(s)||t.kind===91&&fE(s))&&s.expression)return rv(s.expression);if((t.kind===103||t.kind===104)&&ys(s)&&s.operatorToken===t)return rv(s.right);if(t.kind===130&&v0(s)&&x2(s.type))return s.type.typeName;if(t.kind===103&&cpe(s)||t.kind===165&&Moe(s))return rv(s.expression)}return t}function k8e(t){return jJe(t,!1)}function CAe(t){return jJe(t,!0)}function Hx(t,r){return qse(t,r,s=>yA(s)||sE(s.kind)||Gu(s))}function qse(t,r,s){return VJe(t,r,!1,s,!1)}function bf(t,r){return VJe(t,r,!0,void 0,!1)}function VJe(t,r,s,l,m){let y=t,T;e:for(;;){const I=y.getChildren(t),W=WD(I,r,(O,V)=>V,(O,V)=>{const ee=I[O].getEnd();if(eer?1:D(I[O],te,ee)?I[O-1]&&D(I[O-1])?1:0:l&&te===r&&I[O-1]&&I[O-1].getEnd()===r&&D(I[O-1])?1:-1});if(T)return T;if(W>=0&&I[W]){y=I[W];continue e}return y}function D(I,W,O){if(O??(O=I.getEnd()),Or))return!1;if(rs.getStart(t)&&r(y.pos<=t.pos&&y.end>t.end||y.pos===t.end)&&Qse(y,s)?l(y):void 0)}}function T0(t,r,s,l){const m=y(s||r);return ce.assert(!(m&&Kse(m))),m;function y(T){if(zge(T)&&T.kind!==1)return T;const D=T.getChildren(r),I=WD(D,t,(O,V)=>V,(O,V)=>t=D[O-1].end?0:1:-1);if(I>=0&&D[I]){const O=D[I];if(t=t||!Qse(O,r)||Kse(O)){const te=cS(D,I,r,T.kind);return te?!l&&PN(te)&&te.getChildren(r).length?y(te):DZ(te,r):void 0}else return y(O)}ce.assert(s!==void 0||T.kind===312||T.kind===1||PN(T));const W=cS(D,D.length,r,T.kind);return W&&DZ(W,r)}}function zge(t){return VC(t)&&!Kse(t)}function DZ(t,r){if(zge(t))return t;const s=t.getChildren(r);if(s.length===0)return t;const l=cS(s,s.length,r,t.kind);return l&&DZ(l,r)}function cS(t,r,s,l){for(let m=r-1;m>=0;m--){const y=t[m];if(Kse(y))m===0&&(l===12||l===285)&&ce.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Qse(t[m],s))return t[m]}}function MR(t,r,s=T0(r,t)){if(s&&u9(s)){const l=s.getStart(t),m=s.getEnd();if(ls.getStart(t)}function Xse(t,r){const s=bf(t,r);return!!(S1(s)||s.kind===19&&v6(s.parent)&&gy(s.parent.parent)||s.kind===30&&Y1(s.parent)&&gy(s.parent.parent))}function N6(t,r){function s(l){for(;l;)if(l.kind>=285&&l.kind<=294||l.kind===12||l.kind===30||l.kind===32||l.kind===80||l.kind===20||l.kind===19||l.kind===44)l=l.parent;else if(l.kind===284){if(r>l.getStart(t))return!0;l=l.parent}else return!1;return!1}return s(bf(t,r))}function bv(t,r,s){const l=Nd(t.kind),m=Nd(r),y=t.getFullStart(),T=s.text.lastIndexOf(m,y);if(T===-1)return;if(s.text.lastIndexOf(l,y-1)!!y.typeParameters&&y.typeParameters.length>=r)}function V3(t,r){if(r.text.lastIndexOf("<",t?t.pos:r.text.length)===-1)return;let s=t,l=0,m=0;for(;s;){switch(s.kind){case 30:if(s=T0(s.getFullStart(),r),s&&s.kind===29&&(s=T0(s.getFullStart(),r)),!s||!An(s))return;if(!l)return vP(s)?void 0:{called:s,nTypeArguments:m};l--;break;case 50:l=3;break;case 49:l=2;break;case 32:l++;break;case 20:if(s=bv(s,19,r),!s)return;break;case 22:if(s=bv(s,21,r),!s)return;break;case 24:if(s=bv(s,23,r),!s)return;break;case 28:m++;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(Uu(s))break;return}s=T0(s.getFullStart(),r)}}function LR(t,r,s){return Rb.getRangeOfEnclosingComment(t,r,void 0,s)}function Yse(t,r){const s=bf(t,r);return!!Kr(s,Gx)}function Qse(t,r){return t.kind===1?!!t.jsDoc:t.getWidth(r)!==0}function $$(t,r=0){const s=[],l=dl(t)?Ua(t)&~r:0;return l&8&&s.push("private"),l&16&&s.push("protected"),l&4&&s.push("public"),(l&32||nu(t))&&s.push("static"),l&256&&s.push("abstract"),l&1&&s.push("export"),l&8192&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function Zse(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(S_(t)||t.kind===263||t.kind===264)return t.typeParameters}function q$(t){return t===2||t===3}function Vge(t){return!!(t===11||t===14||zM(t))}function kZ(t,r,s){return!!(r.flags&4)&&t.isEmptyAnonymousObjectType(s)}function Uge(t){if(!t.isIntersection())return!1;const{types:r,checker:s}=t;return r.length===2&&(kZ(s,r[0],r[1])||kZ(s,r[1],r[0]))}function K$(t,r,s){return zM(t.kind)&&t.getStart(s){const s=Im(r);return!t[s]&&(t[s]=!0)}}function RZ(t){return t.getText(0,t.getLength())}function PP(t,r){let s="";for(let l=0;l!r.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(r)&&!!(r.externalModuleIndicator||r.commonJsModuleIndicator))}function Z$(t){return t.getSourceFiles().some(r=>!r.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(r)&&!!r.externalModuleIndicator)}function nce(t){return!!t.module||iu(t)>=2||!!t.noEmit}function y4(t,r){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>r.getCurrentDirectory(),readFile:wc(r,r.readFile),useCaseSensitiveFileNames:wc(r,r.useCaseSensitiveFileNames),getSymlinkCache:wc(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:wc(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wc(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:wc(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function eq(t,r){return{...y4(t,r),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function U3(t){return t===2||t>=3&&t<=99||t===100}function Ij(t,r,s,l){return t||r&&r.length?Pk(t,r,s,l):void 0}function Pk(t,r,s,l,m){return be.createImportDeclaration(void 0,t||r?be.createImportClause(!!m,t,r&&r.length?be.createNamedImports(r):void 0):void 0,typeof s=="string"?DF(s,l):s,void 0)}function DF(t,r){return be.createStringLiteral(t,r===0)}function tq(t,r){return Aie(t,r)?1:0}function Jx(t,r){if(r.quotePreference&&r.quotePreference!=="auto")return r.quotePreference==="single"?0:1;{const s=t.imports&&lr(t.imports,l=>Wp(l)&&!rh(l.parent));return s?tq(s,t):1}}function Jge(t){switch(t){case 0:return"'";case 1:return'"';default:return ce.assertNever(t)}}function OZ(t){const r=v4(t);return r===void 0?void 0:lf(r)}function v4(t){return t.escapedName!=="default"?t.escapedName:Yr(t.declarations,r=>{const s=o_(r);return s&&s.kind===80?s.escapedText:void 0})}function FZ(t){return sp(t)&&(j0(t.parent)||Fv(t.parent)||eT(t.parent,!1)&&t.parent.arguments[0]===t||WE(t.parent)&&t.parent.arguments[0]===t)}function kj(t){return ym(t)&&E1(t.parent)&&An(t.name)&&!t.propertyName}function rce(t,r){const s=t.getTypeAtLocation(r.parent);return s&&t.getPropertyOfType(s,r.name.text)}function Nk(t,r,s){if(t)for(;t.parent;){if(tl(t.parent)||!Pj(s,t.parent,r))return t;t=t.parent}}function Pj(t,r,s){return kTe(t,r.getStart(s))&&r.getEnd()<=K1(t)}function YW(t,r){return nx(t)?lr(t.modifiers,s=>s.kind===r):void 0}function OS(t,r,s,l,m){const T=(ls(s)?s[0]:s).kind===243?KM:hm,D=gi(r.statements,T);let I=ls(s)?CI.detectImportDeclarationSorting(s,m):3;const W=CI.getOrganizeImportsComparer(m,I===2),O=ls(s)?nh(s,(V,ee)=>CI.compareImportsOrRequireStatements(V,ee,W)):[s];if(!D.length)t.insertNodesAtTopOfFile(r,O,l);else if(D&&(I=CI.detectImportDeclarationSorting(D,m))){const V=CI.getOrganizeImportsComparer(m,I===2);for(const ee of O){const te=CI.getImportDeclarationInsertionIndex(D,ee,V);if(te===0){const oe=D[0]===r.statements[0]?{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,D[0],ee,!1,oe)}else{const oe=D[te-1];t.insertNodeAfter(r,oe,ee)}}}else{const V=Yf(D);V?t.insertNodesAfter(r,V,O):t.insertNodesAtTopOfFile(r,O,l)}}function ice(t,r){return ce.assert(t.isTypeOnly),uc(t.getChildAt(0,r),kAe)}function IF(t,r){return!!t&&!!r&&t.start===r.start&&t.length===r.length}function $ge(t,r){return t.fileName===r.fileName&&IF(t.textSpan,r.textSpan)}function WZ(t,r){if(t){for(let s=0;sPu(s)?!0:ym(s)||E1(s)||vW(s)?!1:"quit")}function zZ(){const t=vG*10;let r,s,l,m;O();const y=V=>D(V,17);return{displayParts:()=>{const V=r.length&&r[r.length-1].text;return m>t&&V&&V!=="..."&&(UD(V.charCodeAt(V.length-1))||r.push(C1(" ",16)),r.push(C1("...",15))),r},writeKeyword:V=>D(V,5),writeOperator:V=>D(V,12),writePunctuation:V=>D(V,15),writeTrailingSemicolon:V=>D(V,15),writeSpace:V=>D(V,16),writeStringLiteral:V=>D(V,8),writeParameter:V=>D(V,13),writeProperty:V=>D(V,14),writeLiteral:V=>D(V,8),writeSymbol:I,writeLine:W,write:y,writeComment:y,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Na,getIndent:()=>l,increaseIndent:()=>{l++},decreaseIndent:()=>{l--},clear:O};function T(){if(!(m>t)&&s){const V=pG(l);V&&(m+=V.length,r.push(C1(V,16))),s=!1}}function D(V,ee){m>t||(T(),m+=V.length,r.push(C1(V,ee)))}function I(V,ee){m>t||(T(),m+=V.length,r.push(qge(V,ee)))}function W(){m>t||(m+=1,r.push(lS()),s=!0)}function O(){r=[],s=!0,l=0,m=0}}function qge(t,r){return C1(t,s(r));function s(l){const m=l.flags;return m&3?QW(l)?13:9:m&4||m&32768||m&65536?14:m&8?19:m&16?20:m&32?1:m&64?4:m&384?2:m&1536?11:m&8192?10:m&262144?18:m&524288||m&2097152?0:17}}function C1(t,r){return{text:t,kind:z$[r]}}function $h(){return C1(" ",16)}function hE(t){return C1(Nd(t),5)}function cT(t){return C1(Nd(t),15)}function H3(t){return C1(Nd(t),12)}function oce(t){return C1(t,13)}function Kge(t){return C1(t,14)}function ace(t){const r=TN(t);return r===void 0?RA(t):hE(r)}function RA(t){return C1(t,17)}function PAe(t){return C1(t,0)}function yE(t){return C1(t,18)}function qh(t){return C1(t,24)}function ZE(t,r){return{text:t,kind:z$[23],target:{fileName:ns(r).fileName,textSpan:gE(r)}}}function D1(t){return C1(t,22)}function rq(t,r){var s;const l=fpe(t)?"link":rF(t)?"linkcode":"linkplain",m=[D1(`{@${l} `)];if(!t.name)t.text&&m.push(qh(t.text));else{const y=r==null?void 0:r.getSymbolAtLocation(t.name),T=R8e(t.text),D=Yv(t.name)+t.text.slice(0,T),I=w8e(t.text.slice(T)),W=(y==null?void 0:y.valueDeclaration)||((s=y==null?void 0:y.declarations)==null?void 0:s[0]);W?(m.push(ZE(D,W)),I&&m.push(qh(I))):m.push(qh(D+(T?"":" ")+I))}return m.push(D1("}")),m}function w8e(t){let r=0;if(t.charCodeAt(r++)===124){for(;r"&&s--,l++,!s)return l}return 0}function NP(t,r){var s;return(r==null?void 0:r.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||uhe}function lS(){return C1(` -`,6)}function w6(t){try{return t(uq),uq.displayParts()}finally{uq.clear()}}function GZ(t,r,s,l=0){return w6(m=>{t.writeType(r,s,l|1024|16384,m)})}function ZW(t,r,s,l,m=0){return w6(y=>{t.writeSymbol(r,s,l,m|8,y)})}function Xge(t,r,s,l=0){return l|=25632,w6(m=>{t.writeSignature(r,s,l,void 0,m)})}function NAe(t,r){const s=r.getSourceFile();return w6(l=>{jQ().writeNode(4,t,s,l)})}function wAe(t){return!!t.parent&&l9(t.parent)&&t.parent.propertyName===t}function M8e(t,r){return $H(t,r.getScriptKind&&r.getScriptKind(t))}function HJe(t,r){let s=t;for(;R6(s)||uk(s)&&s.links.target;)uk(s)&&s.links.target?s=s.links.target:s=dg(s,r);return s}function R6(t){return(t.flags&2097152)!==0}function wj(t,r){return Bp(dg(t,r))}function M6(t,r){for(;UD(t.charCodeAt(r));)r+=1;return r}function Rj(t,r){for(;r>-1&&HD(t.charCodeAt(r));)r-=1;return r+1}function Rg(t,r=!0){const s=t&&L8e(t);return s&&!r&&e2(s),s}function iq(t,r,s){let l=s(t);return l?tc(l,t):l=L8e(t,s),l&&!r&&e2(l),l}function L8e(t,r){const s=r?y=>iq(y,!0,r):Rg,m=ia(t,s,I6,r?y=>y&&sce(y,!0,r):y=>y&&J3(y),s);if(m===t){const y=Wp(t)?tc(be.createStringLiteralFromNode(t),t):nS(t)?tc(be.createNumericLiteral(t.text,t.numericLiteralFlags),t):be.cloneNode(t);return vr(y,t)}return m.parent=void 0,m}function J3(t,r=!0){if(t){const s=be.createNodeArray(t.map(l=>Rg(l,r)),t.hasTrailingComma);return vr(s,t),s}return t}function sce(t,r,s){return be.createNodeArray(t.map(l=>iq(l,r,s)),t.hasTrailingComma)}function e2(t){O8e(t),RAe(t)}function O8e(t){ih(t,1024,cce)}function RAe(t){ih(t,2048,Kie)}function kF(t,r){const s=t.getSourceFile(),l=s.text;Yge(t,l)?tB(t,r,s):oq(t,r,s),zT(t,r,s)}function Yge(t,r){const s=t.getFullStart(),l=t.getStart();for(let m=s;mr)}function eB(t,r){let s=t;for(let l=1;!fde(r,s);l++)s=`${t}_${l}`;return s}function WR(t,r,s,l){let m=0,y=-1;for(const{fileName:T,textChanges:D}of t){ce.assert(T===r);for(const I of D){const{span:W,newText:O}=I,V=nB(O,M7(s));if(V!==-1&&(y=W.start+m+V,!l))return y;m+=O.length-W.length}}return ce.assert(l),ce.assert(y>=0),y}function tB(t,r,s,l,m){SN(s.text,t.pos,Qge(r,s,l,m,dy))}function zT(t,r,s,l,m){Bz(s.text,t.end,Qge(r,s,l,m,sW))}function oq(t,r,s,l,m){Bz(s.text,t.pos,Qge(r,s,l,m,dy))}function Qge(t,r,s,l,m){return(y,T,D,I)=>{D===3?(y+=2,T-=2):y+=2,m(t,s||D,r.text.slice(y,T),l!==void 0?l:I)}}function nB(t,r){if(xf(t,r))return 0;let s=t.indexOf(" "+r);return s===-1&&(s=t.indexOf("."+r)),s===-1&&(s=t.indexOf('"'+r)),s===-1?-1:s+1}function MAe(t){return ys(t)&&t.operatorToken.kind===28||Wd(t)||v0(t)&&Wd(t.expression)}function lce(t,r,s){const l=Lx(t.parent);switch(l.kind){case 214:return r.getContextualType(l,s);case 226:{const{left:m,operatorToken:y,right:T}=l;return b4(y.kind)?r.getTypeAtLocation(t===T?m:T):r.getContextualType(t,s)}case 296:return Mj(l,r);default:return r.getContextualType(t,s)}}function uce(t,r,s){const l=Jx(t,r),m=JSON.stringify(s);return l===0?`'${HE(m).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:m}function b4(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function jZ(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function rB(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function Mj(t,r){return r.getTypeAtLocation(t.parent.parent.expression)}function PF(t,r,s,l){const m=s.getTypeChecker();let y=!0;const T=()=>y=!1,D=m.typeToTypeNode(t,r,1,{trackSymbol:(I,W,O)=>(y=y&&m.isSymbolAccessible(I,W,O,!1).accessibility===0,!y),reportInaccessibleThisError:T,reportPrivateInBaseOfClassExpression:T,reportInaccessibleUniqueSymbolError:T,moduleResolverHost:eq(s,l)});return y?D:void 0}function Zge(t){return t===179||t===180||t===181||t===171||t===173}function JJe(t){return t===262||t===176||t===174||t===177||t===178}function fce(t){return t===267}function aq(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 VZ(t,r){const s=t.getLastToken(r);if(s&&s.kind===27)return!1;if(Zge(t.kind)){if(s&&s.kind===28)return!1}else if(fce(t.kind)){const D=yl(t.getChildren(r));if(D&&z0(D))return!1}else if(JJe(t.kind)){const D=yl(t.getChildren(r));if(D&&JM(D))return!1}else if(!aq(t.kind))return!1;if(t.kind===246)return!0;const l=Kr(t,D=>!D.parent),m=Cj(t,l,r);if(!m||m.kind===20)return!0;const y=r.getLineAndCharacterOfPosition(t.getEnd()).line,T=r.getLineAndCharacterOfPosition(m.getStart(r)).line;return y!==T}function sq(t,r,s){const l=Kr(r,m=>m.end!==t?"quit":ZZ(m.kind));return!!l&&VZ(l,s)}function UZ(t){let r=0,s=0;const l=5;return B_(t,function m(y){if(aq(y.kind)){const T=y.getLastToken(t);(T==null?void 0:T.kind)===27?r++:s++}else if(Zge(y.kind)){const T=y.getLastToken(t);if((T==null?void 0:T.kind)===27)r++;else if(T&&T.kind!==28){const D=Ah(t,T.getStart(t)).line,I=Ah(t,nC(t,T.end).start).line;D!==I&&s++}}return r+s>=l?!0:B_(y,m)}),r===0&&s<=1?!0:r/s>1/l}function HZ(t,r){return the(t,t.getDirectories,r)||[]}function _ce(t,r,s,l,m){return the(t,t.readDirectory,r,s,l,m)||Zn}function iB(t,r){return the(t,t.fileExists,r)}function dce(t,r){return ehe(()=>O0(r,t))||!1}function ehe(t){try{return t()}catch{return}}function the(t,r,...s){return ehe(()=>r&&r.apply(t,s))}function JZ(t,r,s){const l=[];return ok(t,m=>{if(m===s)return!0;const y=tf(m,"package.json");iB(r,y)&&l.push(y)}),l}function $Je(t,r){let s;return ok(t,l=>{if(l==="node_modules"||(s=UQ(l,m=>iB(r,m),"package.json"),s))return!0}),s}function pce(t,r){if(!r.fileExists)return[];const s=[];return ok(qc(t),l=>{const m=tf(l,"package.json");if(r.fileExists(m)){const y=$Z(m,r);y&&s.push(y)}}),s}function $Z(t,r){if(!r.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],l=r.readFile(t)||"",m=LAe(l),y={};if(m)for(const I of s){const W=m[I];if(!W)continue;const O=new Map;for(const V in W)O.set(V,W[V]);y[I]=O}const T=[[1,y.dependencies],[2,y.devDependencies],[8,y.optionalDependencies],[4,y.peerDependencies]];return{...y,parseable:!!m,fileName:t,get:D,has(I,W){return!!D(I,W)}};function D(I,W=15){for(const[O,V]of T)if(V&&W&O){const ee=V.get(I);if(ee!==void 0)return ee}}}function oB(t,r,s){const l=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||pce(t.fileName,s)).filter(oe=>oe.parseable);let m,y,T;return{allowsImportingAmbientModule:I,allowsImportingSourceFile:W,allowsImportingSpecifier:O};function D(oe){const de=te(oe);for(const ue of l)if(ue.has(de)||ue.has(tme(de)))return!0;return!1}function I(oe,de){if(!l.length||!oe.valueDeclaration)return!0;if(!y)y=new Map;else{const pt=y.get(oe);if(pt!==void 0)return pt}const ue=HE(oe.getName());if(V(ue))return y.set(oe,!0),!0;const Ne=oe.valueDeclaration.getSourceFile(),Be=ee(Ne.fileName,de);if(typeof Be>"u")return y.set(oe,!0),!0;const Ve=D(Be)||D(ue);return y.set(oe,Ve),Ve}function W(oe,de){if(!l.length)return!0;if(!T)T=new Map;else{const Be=T.get(oe);if(Be!==void 0)return Be}const ue=ee(oe.fileName,de);if(!ue)return T.set(oe,!0),!0;const Ne=D(ue);return T.set(oe,Ne),Ne}function O(oe){return!l.length||V(oe)||U2(oe)||mm(oe)?!0:D(oe)}function V(oe){return!!(v1(t)&&EF.nodeCoreModules.has(oe)&&(m===void 0&&(m=Lj(t)),m))}function ee(oe,de){if(!Ub(oe,"node_modules"))return;const ue=M3.getNodeModulesPackageName(s.getCompilationSettings(),t,oe,de,r);if(ue&&!U2(ue)&&!mm(ue))return te(ue)}function te(oe){const de=g0(_ae(oe)).slice(1);return xf(de[0],"@")?`${de[0]}/${de[1]}`:de[0]}}function LAe(t){try{return JSON.parse(t)}catch{return}}function Lj(t){return gt(t.imports,({text:r})=>EF.nodeCoreModules.has(r))}function mce(t){return ni(g0(t),"node_modules")}function qZ(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function gce(t,r){const s=gE(t),l=WD(r,s,Of,pU);if(l>=0){const m=r[l];return ce.assertEqual(m.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),uc(m,qZ)}}function nhe(t,r){var s;let l=WD(r,t.start,T=>T.start,pf);for(l<0&&(l=~l);((s=r[l-1])==null?void 0:s.start)===t.start;)l--;const m=[],y=K1(t);for(;;){const T=to(r[l],qZ);if(!T||T.start>y)break;FX(t,T)&&m.push(T),l++}return m}function aB({startPosition:t,endPosition:r}){return R0(t,r===void 0?t:r)}function rhe(t,r){const s=bf(t,r.start);return Kr(s,m=>m.getStart(t)K1(r)?"quit":Nr(m)&&IF(r,gE(m,t)))}function ihe(t,r,s=Of){return t?ls(t)?s(Vn(t,r)):r(t,0):void 0}function Oj(t){return ls(t)?Dl(t):t}function qJe(t,r){if(KZ(t)){const s=ohe(t);if(s)return s;const l=If.moduleSymbolToValidIdentifier(ahe(t),r,!1),m=If.moduleSymbolToValidIdentifier(ahe(t),r,!0);return l===m?l:[l,m]}return t.name}function cq(t,r,s){return KZ(t)?ohe(t)||If.moduleSymbolToValidIdentifier(ahe(t),r,!!s):t.name}function KZ(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function ohe(t){return Yr(t.declarations,r=>{var s,l,m;return Ly(r)?(s=to(rv(r.expression),An))==null?void 0:s.text:Oy(r)&&r.symbol.flags===2097152?(l=to(r.propertyName,An))==null?void 0:l.text:(m=to(o_(r),An))==null?void 0:m.text})}function ahe(t){var r;return ce.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${ce.formatSymbolFlags(t.flags)}. Declarations: ${(r=t.declarations)==null?void 0:r.map(s=>{const l=ce.formatSyntaxKind(s.kind),m=Rs(s),{expression:y}=s;return(m?"[JS]":"")+l+(y?` (expression: ${ce.formatSyntaxKind(y.kind)})`:"")}).join(", ")}.`)}function OAe(t,r,s){const l=r.length;if(l+s>t.length)return!1;for(let m=0;mxp(s)&&$C(s))}function XZ(t){return!!(Ua(t)&8192)}function hce(t,r){return Yr(t.imports,l=>{if(EF.nodeCoreModules.has(l.text))return xf(l.text,"node:")})??r.usesUriStyleNodeCoreModules}function Fj(t){return t===` -`?1:0}function sB(t){return ls(t)?LT(fs(t[0]),t.slice(1)):fs(t)}function che({options:t},r){const s=!t.semicolons||t.semicolons==="ignore",l=t.semicolons==="remove"||s&&!UZ(r);return{...t,semicolons:l?"remove":"ignore"}}function lhe(t){return t===2||t===3}function lq(t,r){return t.isSourceFileFromExternalLibrary(r)||t.isSourceFileDefaultLibrary(r)}function YZ(t,r){const s=new Set,l=new Set,m=new Set;for(const D of r)if(!CR(D)){const I=_g(D.expression);if(fP(I))switch(I.kind){case 15:case 11:s.add(I.text);break;case 9:l.add(parseInt(I.text));break;case 10:const W=qSe(h_(I.text,"n")?I.text.slice(0,-1):I.text);W&&m.add(tD(W));break}else{const W=t.getSymbolAtLocation(D.expression);if(W&&W.valueDeclaration&&Qb(W.valueDeclaration)){const O=t.getConstantValue(W.valueDeclaration);O!==void 0&&y(O)}}}return{addValue:y,hasValue:T};function y(D){switch(typeof D){case"string":s.add(D);break;case"number":l.add(D)}}function T(D){switch(typeof D){case"string":return s.has(D);case"number":return l.has(D);case"object":return m.has(tD(D))}}}function WAe(t,r,s,l){var m;const y=typeof t=="string"?t:t.fileName;if(!eD(y))return!1;const T=r.getCompilerOptions(),D=Zp(T),I=typeof t=="string"?ew(_h(t,s.getCurrentDirectory(),hR(s)),(m=r.getPackageJsonInfoCache)==null?void 0:m.call(r),s,T):t.impliedNodeFormat;if(I===99)return!1;if(I===1||T.verbatimModuleSyntax&&D===1)return!0;if(T.verbatimModuleSyntax&&WH(D))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return l}var lT,QZ,yce,Wj,$3,uq,uhe,cB,ZZ,BAe=G({"src/services/utilities.ts"(){El(),lT=MM(99,!0),QZ=(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))(QZ||{}),yce=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))($3||{}),uq=zZ(),uhe=` -`,cB="anonymous function",ZZ=dA(Zge,JJe,fce,aq)}});function uT(t){let r=1;const s=zg(),l=new Map,m=new Map;let y;const T={isUsableByFile:te=>te===y,isEmpty:()=>!s.size,clear:()=>{s.clear(),l.clear(),y=void 0},add:(te,oe,de,ue,Ne,Be,Ve,pt)=>{te!==y&&(T.clear(),y=te);let Le;if(Ne){const Wt=AY(Ne.fileName);if(Wt){const{topLevelNodeModulesIndex:tt,topLevelPackageNameIndex:Mn,packageRootIndex:kn}=Wt;if(Le=dae(_ae(Ne.fileName.substring(Mn+1,kn))),xf(te,Ne.path.substring(0,tt))){const cr=m.get(Le),un=Ne.fileName.substring(0,Mn+1);if(cr){const on=cr.indexOf(ix);tt>on&&m.set(Le,un)}else m.set(Le,un)}}}const ke=Be===1&&i6(oe)||oe,_t=Be===0||sT(ke)?lf(de):qJe(ke,void 0),Dt=typeof _t=="string"?_t:_t[0],Ft=typeof _t=="string"?void 0:_t[1],it=HE(ue.name),Ye=r++,ut=dg(oe,pt),lt=oe.flags&33554432?void 0:oe,zt=ue.flags&33554432?void 0:ue;(!lt||!zt)&&l.set(Ye,[oe,ue]),s.add(I(Dt,oe,tb(it)?void 0:it,pt),{id:Ye,symbolTableKey:de,symbolName:Dt,capitalizedSymbolName:Ft,moduleName:it,moduleFile:Ne,moduleFileName:Ne==null?void 0:Ne.fileName,packageName:Le,exportKind:Be,targetFlags:ut.flags,isFromPackageJson:Ve,symbol:lt,moduleSymbol:zt})},get:(te,oe)=>{if(te!==y)return;const de=s.get(oe);return de==null?void 0:de.map(D)},search:(te,oe,de,ue)=>{if(te===y)return wT(s,(Ne,Be)=>{const{symbolName:Ve,ambientModuleName:pt}=W(Be),Le=oe&&Ne[0].capitalizedSymbolName||Ve;if(de(Le,Ne[0].targetFlags)){const ke=Ne.map(D).filter((_t,Dt)=>ee(_t,Ne[Dt].packageName));if(ke.length){const _t=ue(ke,Le,!!pt,Be);if(_t!==void 0)return _t}}})},releaseSymbols:()=>{l.clear()},onFileChanged:(te,oe,de)=>O(te)&&O(oe)?!1:y&&y!==oe.path||de&&Lj(te)!==Lj(oe)||!fv(te.moduleAugmentations,oe.moduleAugmentations)||!V(te,oe)?(T.clear(),!0):(y=oe.path,!1)};return ce.isDebugging&&Object.defineProperty(T,"__cache",{get:()=>s}),T;function D(te){if(te.symbol&&te.moduleSymbol)return te;const{id:oe,exportKind:de,targetFlags:ue,isFromPackageJson:Ne,moduleFileName:Be}=te,[Ve,pt]=l.get(oe)||Zn;if(Ve&&pt)return{symbol:Ve,moduleSymbol:pt,moduleFileName:Be,exportKind:de,targetFlags:ue,isFromPackageJson:Ne};const Le=(Ne?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),ht=te.moduleSymbol||pt||ce.checkDefined(te.moduleFile?Le.getMergedSymbol(te.moduleFile.symbol):Le.tryFindAmbientModule(te.moduleName)),ke=te.symbol||Ve||ce.checkDefined(de===2?Le.resolveExternalModuleSymbol(ht):Le.tryGetMemberInModuleExportsAndProperties(lf(te.symbolTableKey),ht),`Could not find symbol '${te.symbolName}' by key '${te.symbolTableKey}' in module ${ht.name}`);return l.set(oe,[ke,ht]),{symbol:ke,moduleSymbol:ht,moduleFileName:Be,exportKind:de,targetFlags:ue,isFromPackageJson:Ne}}function I(te,oe,de,ue){const Ne=de||"";return`${te}|${Bp(dg(oe,ue))}|${Ne}`}function W(te){const oe=te.substring(0,te.indexOf("|")),de=te.substring(te.lastIndexOf("|")+1);return{symbolName:oe,ambientModuleName:de===""?void 0:de}}function O(te){return!te.commonJsModuleIndicator&&!te.externalModuleIndicator&&!te.moduleAugmentations&&!te.ambientModuleNames}function V(te,oe){if(!fv(te.ambientModuleNames,oe.ambientModuleNames))return!1;let de=-1,ue=-1;for(const Ne of oe.ambientModuleNames){const Be=Ve=>pie(Ve)&&Ve.name.text===Ne;if(de=Ho(te.statements,Be,de+1),ue=Ho(oe.statements,Be,ue+1),te.statements[de]!==oe.statements[ue])return!1}return!0}function ee(te,oe){if(!oe||!te.moduleFileName)return!0;const de=t.getGlobalTypingsCacheLocation();if(de&&xf(te.moduleFileName,de))return!0;const ue=m.get(oe);return!ue||xf(te.moduleFileName,ue)}}function vce(t,r,s,l,m,y,T){var D;if(r===s)return!1;const I=T==null?void 0:T.get(r.path,s.path,l,{});if((I==null?void 0:I.isBlockedByPackageJsonDependencies)!==void 0)return!I.isBlockedByPackageJsonDependencies;const W=hR(y),O=(D=y.getGlobalTypingsCacheLocation)==null?void 0:D.call(y),V=!!M3.forEachFileNameOfModule(r.fileName,s.fileName,y,!1,ee=>{const te=t.getSourceFile(ee);return(te===s||!te)&&KJe(r.fileName,ee,W,O)});if(m){const ee=V&&m.allowsImportingSourceFile(s,y);return T==null||T.setBlockedByPackageJsonDependencies(r.path,s.path,l,{},!ee),ee}return V}function KJe(t,r,s,l){const m=ok(r,T=>Iy(T)==="node_modules"?T:void 0),y=m&&qc(s(m));return y===void 0||xf(s(t),y)||!!l&&xf(s(l),y)}function eee(t,r,s,l,m){var y,T;const D=xH(r),I=s.autoImportFileExcludePatterns&&Qo(s.autoImportFileExcludePatterns,O=>{const V=roe(O,"","exclude");return V?Y2(V,D):void 0});fhe(t.getTypeChecker(),t.getSourceFiles(),I,(O,V)=>m(O,V,t,!1));const W=l&&((y=r.getPackageJsonAutoImportProvider)==null?void 0:y.call(r));if(W){const O=cf(),V=t.getTypeChecker();fhe(W.getTypeChecker(),W.getSourceFiles(),I,(ee,te)=>{(te&&!t.getSourceFile(te.fileName)||!te&&!V.resolveName(ee.name,void 0,1536,!1))&&m(ee,te,W,!0)}),(T=r.log)==null||T.call(r,`forEachExternalModuleToImportFrom autoImportProvider: ${cf()-O}`)}}function fhe(t,r,s,l){var m;const y=s&&(T=>s.some(D=>D.test(T)));for(const T of t.getAmbientModules())!Ub(T.name,"*")&&!(s&&((m=T.declarations)!=null&&m.every(D=>y(D.getSourceFile().fileName))))&&l(T,void 0);for(const T of r)h1(T)&&!(y!=null&&y(T.fileName))&&l(t.getMergedSymbol(T.symbol),T)}function fq(t,r,s,l,m){var y,T,D,I,W;const O=cf();(y=r.getPackageJsonAutoImportProvider)==null||y.call(r);const V=((T=r.getCachedExportInfoMap)==null?void 0:T.call(r))||uT({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var oe;return(oe=r.getPackageJsonAutoImportProvider)==null?void 0:oe.call(r)},getGlobalTypingsCacheLocation:()=>{var oe;return(oe=r.getGlobalTypingsCacheLocation)==null?void 0:oe.call(r)}});if(V.isUsableByFile(t.path))return(D=r.log)==null||D.call(r,"getExportInfoMap: cache hit"),V;(I=r.log)==null||I.call(r,"getExportInfoMap: cache miss or empty; calculating new results");const ee=s.getCompilerOptions();let te=0;try{eee(s,r,l,!0,(oe,de,ue,Ne)=>{++te%100===0&&(m==null||m.throwIfCancellationRequested());const Be=new Map,Ve=ue.getTypeChecker(),pt=_he(oe,Ve,ee);pt&&bce(pt.symbol,Ve)&&V.add(t.path,pt.symbol,pt.exportKind===1?"default":"export=",oe,de,pt.exportKind,Ne,Ve),Ve.forEachExportAndPropertyOfModule(oe,(Le,ht)=>{Le!==(pt==null?void 0:pt.symbol)&&bce(Le,Ve)&&y0(Be,ht)&&V.add(t.path,Le,ht,oe,de,0,Ne,Ve)})})}catch(oe){throw V.clear(),oe}return(W=r.log)==null||W.call(r,`getExportInfoMap: done in ${cf()-O} ms`),V}function _he(t,r,s){const l=zAe(t,r);if(!l)return;const{symbol:m,exportKind:y}=l,T=GAe(m,r,s);return T&&{symbol:m,exportKind:y,...T}}function bce(t,r){return!r.isUndefinedSymbol(t)&&!r.isUnknownSymbol(t)&&!vH(t)&&!UE(t)}function zAe(t,r){const s=r.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const l=r.tryGetMemberInModuleExports("default",t);if(l)return{symbol:l,exportKind:1}}function GAe(t,r,s){const l=i6(t);if(l)return{resolvedSymbol:l,name:l.name};const m=jAe(t);if(m!==void 0)return{resolvedSymbol:t,name:m};if(t.flags&2097152){const y=r.getImmediateAliasedSymbol(t);if(y&&y.parent)return GAe(y,r,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:cq(t,s.target)}}function jAe(t){return t.declarations&&Yr(t.declarations,r=>{var s;if(Ly(r))return(s=to(rv(r.expression),An))==null?void 0:s.text;if(Oy(r))return ce.assert(r.name.text==="default","Expected the specifier to be a default export"),r.propertyName&&r.propertyName.text})}var Tce,F8e,VAe=G({"src/services/exportInfoMap.ts"(){El(),Tce=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(Tce||{}),F8e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(F8e||{})}});function W8e(){const t=MM(99,!1);function r(l,m,y){return XJe(s(l,m,y),l)}function s(l,m,y){let T=0,D=0;const I=[],{prefix:W,pushTemplate:O}=$ct(m);l=W+l;const V=W.length;O&&I.push(16),t.setText(l);let ee=0;const te=[];let oe=0;do{T=t.scan(),tI(T)||(de(),D=T);const ue=t.getTokenEnd();if(dhe(t.getTokenStart(),ue,V,qct(T),te),ue>=l.length){const Ne=Sce(t,T,Yf(I));Ne!==void 0&&(ee=Ne)}}while(T!==1);function de(){switch(T){case 44:case 69:!t$e[D]&&t.reScanSlashToken()===14&&(T=14);break;case 30:D===80&&oe++;break;case 32:oe>0&&oe--;break;case 133:case 154:case 150:case 136:case 155:oe>0&&!y&&(T=80);break;case 16:I.push(T);break;case 19:I.length>0&&I.push(T);break;case 20:if(I.length>0){const ue=Yf(I);ue===16?(T=t.reScanTemplateToken(!1),T===18?I.pop():ce.assertEqual(T,17,"Should have been a template middle.")):(ce.assertEqual(ue,19,"Should have been an open brace"),I.pop())}break;default:if(!sE(T))break;(D===25||sE(D)&&sE(T)&&!phe(D,T))&&(T=80)}}return{endOfLineState:ee,spans:te}}return{getClassificationsForLine:r,getEncodedLexicalClassifications:s}}function Sce(t,r,s){switch(r){case 11:{if(!t.isUnterminated())return;const l=t.getTokenText(),m=l.length-1;let y=0;for(;l.charCodeAt(m-y)===92;)y++;return y&1?l.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(zM(r)){if(!t.isUnterminated())return;switch(r){case 18:return 5;case 15:return 4;default:return ce.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return s===16?6:void 0}}function dhe(t,r,s,l,m){if(l===8)return;t===0&&s>0&&(t+=s);const y=r-t;y>0&&m.push(t-s,y,l)}function XJe(t,r){const s=[],l=t.spans;let m=0;for(let T=0;T=0){const O=D-m;O>0&&s.push({length:O,classification:4})}s.push({length:I,classification:Jct(W)}),m=D+I}const y=r.length-m;return y>0&&s.push({length:y,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function Jct(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 phe(t,r){if(!tw(t))return!0;switch(r){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function $ct(t){switch(t){case 3:return{prefix:`"\\ +`),z$=(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))(z$||{}),lx=(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))(lx||{}),Nse=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(Nse||{}),wse=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(wse||{}),Rse=(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))(Rse||{}),Mse=(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))(Mse||{}),Lse=(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))(Lse||{}),Ose=(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))(Ose||{}),Fse=(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))(Fse||{}),Rge=(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))(Rge||{})}});function G$(t){switch(t.kind){case 260:return Rs(t)&&FM(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 Ov(t)||kR(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 z3(t){t=k8e(t);const r=t.parent;return t.kind===312?1:Ly(r)||Oy(r)||j0(r)||oS(r)||lC(r)||kh(r)&&t===r.name?7:gZ(t)?yAe(t):vP(t)?G$(r):Vd(t)&&Kr(t,dA(OJ,OL,Nu))?7:SAe(t)?2:vAe(t)?4:Hh(r)?(ce.assert(jx(r.parent)),2):_I(r)?3:1}function yAe(t){const r=t.kind===166?t:nT(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&r.parent.kind===271?7:4}function gZ(t){for(;t.parent.kind===166;)t=t.parent;return y1(t.parent)&&t.parent.moduleReference===t}function vAe(t){return bAe(t)||TAe(t)}function bAe(t){let r=t,s=!0;if(r.parent.kind===166){for(;r.parent&&r.parent.kind===166;)r=r.parent;s=r.right===t}return r.parent.kind===183&&!s}function TAe(t){let r=t,s=!0;if(r.parent.kind===211){for(;r.parent&&r.parent.kind===211;)r=r.parent;s=r.name===t}if(!s&&r.parent.kind===233&&r.parent.parent.kind===298){const l=r.parent.parent.parent;return l.kind===263&&r.parent.parent.token===119||l.kind===264&&r.parent.parent.token===96}return!1}function SAe(t){switch(kH(t)&&(t=t.parent),t.kind){case 110:return!Gy(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return rC(t.parent)}return!1}function Bse(t,r=!1,s=!1){return jse(t,el,EAe,r,s)}function zse(t,r=!1,s=!1){return jse(t,Ac,EAe,r,s)}function j$(t,r=!1,s=!1){return jse(t,IN,EAe,r,s)}function xF(t,r=!1,s=!1){return jse(t,Hm,Uct,r,s)}function BJe(t,r=!1,s=!1){return jse(t,Qf,EAe,r,s)}function Gse(t,r=!1,s=!1){return jse(t,Y1,Hct,r,s)}function EAe(t){return t.expression}function Uct(t){return t.tag}function Hct(t){return t.tagName}function jse(t,r,s,l,m){let y=l?V$(t):hZ(t);return m&&(y=rv(y)),!!y&&!!y.parent&&r(y.parent)&&s(y.parent)===y}function hZ(t){return G3(t)?t.parent:t}function V$(t){return G3(t)||TZ(t)?t.parent:t}function yZ(t,r){for(;t;){if(t.kind===256&&t.label.escapedText===r)return t.label;t=t.parent}}function vZ(t,r){return sa(t.expression)?t.expression.name.text===r:!1}function bZ(t){var r;return An(t)&&((r=to(t.parent,VX))==null?void 0:r.label)===t}function Mge(t){var r;return An(t)&&((r=to(t.parent,iS))==null?void 0:r.label)===t}function Vse(t){return Mge(t)||bZ(t)}function I8e(t){var r;return((r=to(t.parent,NT))==null?void 0:r.tagName)===t}function zJe(t){var r;return((r=to(t.parent,nT))==null?void 0:r.right)===t}function G3(t){var r;return((r=to(t.parent,sa))==null?void 0:r.name)===t}function TZ(t){var r;return((r=to(t.parent,Ed))==null?void 0:r.argumentExpression)===t}function Lge(t){var r;return((r=to(t.parent,xp))==null?void 0:r.name)===t}function SZ(t){var r;return An(t)&&((r=to(t.parent,S_))==null?void 0:r.name)===t}function Ej(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return o_(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 EZ(t){return qM(t.parent.parent)&&S7(t.parent.parent)===t}function j3(t){for(T2(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 m4(t){switch(t.kind){case 312:return Wv(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 r(t);case 208:return r(rI(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 S_(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 il(t,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const l=Qy(t),{right:m}=t;switch(l){case 7:case 8:case 9:case 0:return"";case 1:case 2:const T=m4(m);return T===""?"const":T;case 3:return Dm(m)?"method":"property";case 4:return"property";case 5:return Dm(m)?"method":"property";case 6:return"local class";default:return""}case 80:return lC(t.parent)?"alias":"";case 277:const y=m4(t.expression);return y===""?"const":y;default:return""}function r(s){return h7(s)?"const":eSe(s)?"let":"var"}}function KW(t){switch(t.kind){case 110:return!0;case 80:return SY(t)&&t.parent.kind===169;default:return!1}}function wA(t,r){const s=q1(r),l=r.getLineAndCharacterOfPosition(t).line;return s[l]}function sS(t,r){return xZ(t.pos,t.end,r)}function Oge(t,r){return H$(t,r.pos)&&H$(t,r.end)}function U$(t,r){return t.pos<=r&&r<=t.end}function H$(t,r){return t.pos=s.end}function AZ(t,r,s){return t.pos<=r&&t.end>=s}function RR(t,r,s){return AF(t.pos,t.end,r,s)}function g4(t,r,s,l){return AF(t.getStart(r),t.end,s,l)}function AF(t,r,s,l){const m=Math.max(t,s),y=Math.min(r,l);return ml.kind===r)}function xj(t){const r=lr(t.parent.getChildren(),s=>GJ(s)&&sS(s,t));return ce.assert(!r||ni(r.getChildren(),t)),r}function J$(t){return t.kind===90}function Fge(t){return t.kind===86}function Wge(t){return t.kind===100}function xAe(t){if(Xv(t))return t.name;if(Kc(t)){const r=t.modifiers&&lr(t.modifiers,J$);if(r)return r}if(B0(t)){const r=lr(t.getChildren(),Fge);if(r)return r}}function TI(t){if(Xv(t))return t.name;if(b0(t)){const r=lr(t.modifiers,J$);if(r)return r}if(Dm(t)){const r=lr(t.getChildren(),Wge);if(r)return r}}function AAe(t){let r;return Kr(t,s=>(Uu(s)&&(r=s),!nT(s.parent)&&!Uu(s.parent)&&!l7(s.parent))),r}function Hse(t,r){if(t.flags&16777216)return;const s=lce(t,r);if(s)return s;const l=AAe(t);return l&&r.getTypeAtLocation(l)}function Jse(t,r){if(!r)switch(t.kind){case 263:case 231:return xAe(t);case 262:case 218:return TI(t);case 176:return t}if(Xv(t))return t.name}function qm(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(y6(t.importClause.namedBindings)){const s=Vb(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(YL(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function $se(t,r){if(t.exportClause){if(G0(t.exportClause))return Vb(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(AP(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function GJe(t){if(t.types.length===1)return t.types[0].expression}function jJe(t,r){const{parent:s}=t;if(bd(t)&&(r||t.kind!==90)?nx(s)&&ni(s.modifiers,t):t.kind===86?Kc(s)||B0(t):t.kind===100?b0(s)||Dm(t):t.kind===120?Kp(s):t.kind===94?Ih(s):t.kind===156?mg(s):t.kind===145||t.kind===144?xp(s):t.kind===102?kh(s):t.kind===139?tm(s):t.kind===153&&Ep(s)){const l=Jse(s,r);if(l)return l}if((t.kind===115||t.kind===87||t.kind===121)&&My(s)&&s.declarations.length===1){const l=s.declarations[0];if(An(l.name))return l.name}if(t.kind===156){if(lC(s)&&s.isTypeOnly){const l=qm(s.parent,r);if(l)return l}if(mh(s)&&s.isTypeOnly){const l=$se(s,r);if(l)return l}}if(t.kind===130){if(oS(s)&&s.propertyName||Oy(s)&&s.propertyName||YL(s)||AP(s))return s.name;if(mh(s)&&s.exportClause&&AP(s.exportClause))return s.exportClause.name}if(t.kind===102&&Fv(s)){const l=qm(s,r);if(l)return l}if(t.kind===95){if(mh(s)){const l=$se(s,r);if(l)return l}if(Ly(s))return rv(s.expression)}if(t.kind===149&&j0(s))return s.expression;if(t.kind===161&&(Fv(s)||mh(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&rT(s)&&s.token===t.kind){const l=GJe(s);if(l)return l}if(t.kind===96){if(Hh(s)&&s.constraint&&x2(s.constraint))return s.constraint.typeName;if(hW(s)&&x2(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&fI(s))return s.typeParameter.name;if(t.kind===103&&Hh(s)&&yW(s.parent))return s.name;if(t.kind===143&&KN(s)&&s.operator===143&&x2(s.type))return s.type.typeName;if(t.kind===148&&KN(s)&&s.operator===148&&RG(s.type)&&x2(s.type.elementType))return s.type.elementType.typeName;if(!r){if((t.kind===105&&Ac(s)||t.kind===116&&$m(s)||t.kind===114&&Jm(s)||t.kind===135&&h6(s)||t.kind===127&&Ds(s)||t.kind===91&&fE(s))&&s.expression)return rv(s.expression);if((t.kind===103||t.kind===104)&&ys(s)&&s.operatorToken===t)return rv(s.right);if(t.kind===130&&v0(s)&&x2(s.type))return s.type.typeName;if(t.kind===103&&cpe(s)||t.kind===165&&Moe(s))return rv(s.expression)}return t}function k8e(t){return jJe(t,!1)}function CAe(t){return jJe(t,!0)}function Hx(t,r){return qse(t,r,s=>yA(s)||sE(s.kind)||Gu(s))}function qse(t,r,s){return VJe(t,r,!1,s,!1)}function bf(t,r){return VJe(t,r,!0,void 0,!1)}function VJe(t,r,s,l,m){let y=t,T;e:for(;;){const I=y.getChildren(t),W=WD(I,r,(O,V)=>V,(O,V)=>{const ee=I[O].getEnd();if(eer?1:D(I[O],te,ee)?I[O-1]&&D(I[O-1])?1:0:l&&te===r&&I[O-1]&&I[O-1].getEnd()===r&&D(I[O-1])?1:-1});if(T)return T;if(W>=0&&I[W]){y=I[W];continue e}return y}function D(I,W,O){if(O??(O=I.getEnd()),Or))return!1;if(rs.getStart(t)&&r(y.pos<=t.pos&&y.end>t.end||y.pos===t.end)&&Qse(y,s)?l(y):void 0)}}function T0(t,r,s,l){const m=y(s||r);return ce.assert(!(m&&Kse(m))),m;function y(T){if(zge(T)&&T.kind!==1)return T;const D=T.getChildren(r),I=WD(D,t,(O,V)=>V,(O,V)=>t=D[O-1].end?0:1:-1);if(I>=0&&D[I]){const O=D[I];if(t=t||!Qse(O,r)||Kse(O)){const te=cS(D,I,r,T.kind);return te?!l&&PN(te)&&te.getChildren(r).length?y(te):DZ(te,r):void 0}else return y(O)}ce.assert(s!==void 0||T.kind===312||T.kind===1||PN(T));const W=cS(D,D.length,r,T.kind);return W&&DZ(W,r)}}function zge(t){return VC(t)&&!Kse(t)}function DZ(t,r){if(zge(t))return t;const s=t.getChildren(r);if(s.length===0)return t;const l=cS(s,s.length,r,t.kind);return l&&DZ(l,r)}function cS(t,r,s,l){for(let m=r-1;m>=0;m--){const y=t[m];if(Kse(y))m===0&&(l===12||l===285)&&ce.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Qse(t[m],s))return t[m]}}function MR(t,r,s=T0(r,t)){if(s&&u9(s)){const l=s.getStart(t),m=s.getEnd();if(ls.getStart(t)}function Xse(t,r){const s=bf(t,r);return!!(S1(s)||s.kind===19&&v6(s.parent)&&my(s.parent.parent)||s.kind===30&&Y1(s.parent)&&my(s.parent.parent))}function N6(t,r){function s(l){for(;l;)if(l.kind>=285&&l.kind<=294||l.kind===12||l.kind===30||l.kind===32||l.kind===80||l.kind===20||l.kind===19||l.kind===44)l=l.parent;else if(l.kind===284){if(r>l.getStart(t))return!0;l=l.parent}else return!1;return!1}return s(bf(t,r))}function bv(t,r,s){const l=Nd(t.kind),m=Nd(r),y=t.getFullStart(),T=s.text.lastIndexOf(m,y);if(T===-1)return;if(s.text.lastIndexOf(l,y-1)!!y.typeParameters&&y.typeParameters.length>=r)}function V3(t,r){if(r.text.lastIndexOf("<",t?t.pos:r.text.length)===-1)return;let s=t,l=0,m=0;for(;s;){switch(s.kind){case 30:if(s=T0(s.getFullStart(),r),s&&s.kind===29&&(s=T0(s.getFullStart(),r)),!s||!An(s))return;if(!l)return vP(s)?void 0:{called:s,nTypeArguments:m};l--;break;case 50:l=3;break;case 49:l=2;break;case 32:l++;break;case 20:if(s=bv(s,19,r),!s)return;break;case 22:if(s=bv(s,21,r),!s)return;break;case 24:if(s=bv(s,23,r),!s)return;break;case 28:m++;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(Uu(s))break;return}s=T0(s.getFullStart(),r)}}function LR(t,r,s){return Rb.getRangeOfEnclosingComment(t,r,void 0,s)}function Yse(t,r){const s=bf(t,r);return!!Kr(s,Gx)}function Qse(t,r){return t.kind===1?!!t.jsDoc:t.getWidth(r)!==0}function $$(t,r=0){const s=[],l=dl(t)?Ua(t)&~r:0;return l&8&&s.push("private"),l&16&&s.push("protected"),l&4&&s.push("public"),(l&32||nu(t))&&s.push("static"),l&256&&s.push("abstract"),l&1&&s.push("export"),l&8192&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function Zse(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(S_(t)||t.kind===263||t.kind===264)return t.typeParameters}function q$(t){return t===2||t===3}function Vge(t){return!!(t===11||t===14||zM(t))}function kZ(t,r,s){return!!(r.flags&4)&&t.isEmptyAnonymousObjectType(s)}function Uge(t){if(!t.isIntersection())return!1;const{types:r,checker:s}=t;return r.length===2&&(kZ(s,r[0],r[1])||kZ(s,r[1],r[0]))}function K$(t,r,s){return zM(t.kind)&&t.getStart(s){const s=Im(r);return!t[s]&&(t[s]=!0)}}function RZ(t){return t.getText(0,t.getLength())}function PP(t,r){let s="";for(let l=0;l!r.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(r)&&!!(r.externalModuleIndicator||r.commonJsModuleIndicator))}function Z$(t){return t.getSourceFiles().some(r=>!r.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(r)&&!!r.externalModuleIndicator)}function nce(t){return!!t.module||iu(t)>=2||!!t.noEmit}function h4(t,r){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>r.getCurrentDirectory(),readFile:wc(r,r.readFile),useCaseSensitiveFileNames:wc(r,r.useCaseSensitiveFileNames),getSymlinkCache:wc(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:wc(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wc(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:wc(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function eq(t,r){return{...h4(t,r),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function U3(t){return t===2||t>=3&&t<=99||t===100}function Dj(t,r,s,l){return t||r&&r.length?Pk(t,r,s,l):void 0}function Pk(t,r,s,l,m){return be.createImportDeclaration(void 0,t||r?be.createImportClause(!!m,t,r&&r.length?be.createNamedImports(r):void 0):void 0,typeof s=="string"?DF(s,l):s,void 0)}function DF(t,r){return be.createStringLiteral(t,r===0)}function tq(t,r){return Aie(t,r)?1:0}function Jx(t,r){if(r.quotePreference&&r.quotePreference!=="auto")return r.quotePreference==="single"?0:1;{const s=t.imports&&lr(t.imports,l=>Wp(l)&&!rh(l.parent));return s?tq(s,t):1}}function Jge(t){switch(t){case 0:return"'";case 1:return'"';default:return ce.assertNever(t)}}function OZ(t){const r=y4(t);return r===void 0?void 0:lf(r)}function y4(t){return t.escapedName!=="default"?t.escapedName:Yr(t.declarations,r=>{const s=o_(r);return s&&s.kind===80?s.escapedText:void 0})}function FZ(t){return sp(t)&&(j0(t.parent)||Fv(t.parent)||eT(t.parent,!1)&&t.parent.arguments[0]===t||WE(t.parent)&&t.parent.arguments[0]===t)}function Ij(t){return ym(t)&&E1(t.parent)&&An(t.name)&&!t.propertyName}function rce(t,r){const s=t.getTypeAtLocation(r.parent);return s&&t.getPropertyOfType(s,r.name.text)}function Nk(t,r,s){if(t)for(;t.parent;){if(tl(t.parent)||!kj(s,t.parent,r))return t;t=t.parent}}function kj(t,r,s){return kTe(t,r.getStart(s))&&r.getEnd()<=K1(t)}function YW(t,r){return nx(t)?lr(t.modifiers,s=>s.kind===r):void 0}function OS(t,r,s,l,m){const T=(ls(s)?s[0]:s).kind===243?KM:hm,D=gi(r.statements,T);let I=ls(s)?CI.detectImportDeclarationSorting(s,m):3;const W=CI.getOrganizeImportsComparer(m,I===2),O=ls(s)?nh(s,(V,ee)=>CI.compareImportsOrRequireStatements(V,ee,W)):[s];if(!D.length)t.insertNodesAtTopOfFile(r,O,l);else if(D&&(I=CI.detectImportDeclarationSorting(D,m))){const V=CI.getOrganizeImportsComparer(m,I===2);for(const ee of O){const te=CI.getImportDeclarationInsertionIndex(D,ee,V);if(te===0){const oe=D[0]===r.statements[0]?{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,D[0],ee,!1,oe)}else{const oe=D[te-1];t.insertNodeAfter(r,oe,ee)}}}else{const V=Yf(D);V?t.insertNodesAfter(r,V,O):t.insertNodesAtTopOfFile(r,O,l)}}function ice(t,r){return ce.assert(t.isTypeOnly),uc(t.getChildAt(0,r),kAe)}function IF(t,r){return!!t&&!!r&&t.start===r.start&&t.length===r.length}function $ge(t,r){return t.fileName===r.fileName&&IF(t.textSpan,r.textSpan)}function WZ(t,r){if(t){for(let s=0;sPu(s)?!0:ym(s)||E1(s)||vW(s)?!1:"quit")}function zZ(){const t=yG*10;let r,s,l,m;O();const y=V=>D(V,17);return{displayParts:()=>{const V=r.length&&r[r.length-1].text;return m>t&&V&&V!=="..."&&(UD(V.charCodeAt(V.length-1))||r.push(C1(" ",16)),r.push(C1("...",15))),r},writeKeyword:V=>D(V,5),writeOperator:V=>D(V,12),writePunctuation:V=>D(V,15),writeTrailingSemicolon:V=>D(V,15),writeSpace:V=>D(V,16),writeStringLiteral:V=>D(V,8),writeParameter:V=>D(V,13),writeProperty:V=>D(V,14),writeLiteral:V=>D(V,8),writeSymbol:I,writeLine:W,write:y,writeComment:y,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Na,getIndent:()=>l,increaseIndent:()=>{l++},decreaseIndent:()=>{l--},clear:O};function T(){if(!(m>t)&&s){const V=dG(l);V&&(m+=V.length,r.push(C1(V,16))),s=!1}}function D(V,ee){m>t||(T(),m+=V.length,r.push(C1(V,ee)))}function I(V,ee){m>t||(T(),m+=V.length,r.push(qge(V,ee)))}function W(){m>t||(m+=1,r.push(lS()),s=!0)}function O(){r=[],s=!0,l=0,m=0}}function qge(t,r){return C1(t,s(r));function s(l){const m=l.flags;return m&3?QW(l)?13:9:m&4||m&32768||m&65536?14:m&8?19:m&16?20:m&32?1:m&64?4:m&384?2:m&1536?11:m&8192?10:m&262144?18:m&524288||m&2097152?0:17}}function C1(t,r){return{text:t,kind:z$[r]}}function $h(){return C1(" ",16)}function hE(t){return C1(Nd(t),5)}function cT(t){return C1(Nd(t),15)}function H3(t){return C1(Nd(t),12)}function oce(t){return C1(t,13)}function Kge(t){return C1(t,14)}function ace(t){const r=TN(t);return r===void 0?RA(t):hE(r)}function RA(t){return C1(t,17)}function PAe(t){return C1(t,0)}function yE(t){return C1(t,18)}function qh(t){return C1(t,24)}function ZE(t,r){return{text:t,kind:z$[23],target:{fileName:ns(r).fileName,textSpan:gE(r)}}}function D1(t){return C1(t,22)}function rq(t,r){var s;const l=fpe(t)?"link":rF(t)?"linkcode":"linkplain",m=[D1(`{@${l} `)];if(!t.name)t.text&&m.push(qh(t.text));else{const y=r==null?void 0:r.getSymbolAtLocation(t.name),T=R8e(t.text),D=Yv(t.name)+t.text.slice(0,T),I=w8e(t.text.slice(T)),W=(y==null?void 0:y.valueDeclaration)||((s=y==null?void 0:y.declarations)==null?void 0:s[0]);W?(m.push(ZE(D,W)),I&&m.push(qh(I))):m.push(qh(D+(T?"":" ")+I))}return m.push(D1("}")),m}function w8e(t){let r=0;if(t.charCodeAt(r++)===124){for(;r"&&s--,l++,!s)return l}return 0}function NP(t,r){var s;return(r==null?void 0:r.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||uhe}function lS(){return C1(` +`,6)}function w6(t){try{return t(uq),uq.displayParts()}finally{uq.clear()}}function GZ(t,r,s,l=0){return w6(m=>{t.writeType(r,s,l|1024|16384,m)})}function ZW(t,r,s,l,m=0){return w6(y=>{t.writeSymbol(r,s,l,m|8,y)})}function Xge(t,r,s,l=0){return l|=25632,w6(m=>{t.writeSignature(r,s,l,void 0,m)})}function NAe(t,r){const s=r.getSourceFile();return w6(l=>{jQ().writeNode(4,t,s,l)})}function wAe(t){return!!t.parent&&l9(t.parent)&&t.parent.propertyName===t}function M8e(t,r){return $H(t,r.getScriptKind&&r.getScriptKind(t))}function HJe(t,r){let s=t;for(;R6(s)||uk(s)&&s.links.target;)uk(s)&&s.links.target?s=s.links.target:s=dg(s,r);return s}function R6(t){return(t.flags&2097152)!==0}function Nj(t,r){return Bp(dg(t,r))}function M6(t,r){for(;UD(t.charCodeAt(r));)r+=1;return r}function wj(t,r){for(;r>-1&&HD(t.charCodeAt(r));)r-=1;return r+1}function Rg(t,r=!0){const s=t&&L8e(t);return s&&!r&&e2(s),s}function iq(t,r,s){let l=s(t);return l?tc(l,t):l=L8e(t,s),l&&!r&&e2(l),l}function L8e(t,r){const s=r?y=>iq(y,!0,r):Rg,m=ia(t,s,I6,r?y=>y&&sce(y,!0,r):y=>y&&J3(y),s);if(m===t){const y=Wp(t)?tc(be.createStringLiteralFromNode(t),t):nS(t)?tc(be.createNumericLiteral(t.text,t.numericLiteralFlags),t):be.cloneNode(t);return vr(y,t)}return m.parent=void 0,m}function J3(t,r=!0){if(t){const s=be.createNodeArray(t.map(l=>Rg(l,r)),t.hasTrailingComma);return vr(s,t),s}return t}function sce(t,r,s){return be.createNodeArray(t.map(l=>iq(l,r,s)),t.hasTrailingComma)}function e2(t){O8e(t),RAe(t)}function O8e(t){ih(t,1024,cce)}function RAe(t){ih(t,2048,Kie)}function kF(t,r){const s=t.getSourceFile(),l=s.text;Yge(t,l)?tB(t,r,s):oq(t,r,s),zT(t,r,s)}function Yge(t,r){const s=t.getFullStart(),l=t.getStart();for(let m=s;mr)}function eB(t,r){let s=t;for(let l=1;!fde(r,s);l++)s=`${t}_${l}`;return s}function WR(t,r,s,l){let m=0,y=-1;for(const{fileName:T,textChanges:D}of t){ce.assert(T===r);for(const I of D){const{span:W,newText:O}=I,V=nB(O,M7(s));if(V!==-1&&(y=W.start+m+V,!l))return y;m+=O.length-W.length}}return ce.assert(l),ce.assert(y>=0),y}function tB(t,r,s,l,m){SN(s.text,t.pos,Qge(r,s,l,m,_y))}function zT(t,r,s,l,m){Wz(s.text,t.end,Qge(r,s,l,m,sW))}function oq(t,r,s,l,m){Wz(s.text,t.pos,Qge(r,s,l,m,_y))}function Qge(t,r,s,l,m){return(y,T,D,I)=>{D===3?(y+=2,T-=2):y+=2,m(t,s||D,r.text.slice(y,T),l!==void 0?l:I)}}function nB(t,r){if(xf(t,r))return 0;let s=t.indexOf(" "+r);return s===-1&&(s=t.indexOf("."+r)),s===-1&&(s=t.indexOf('"'+r)),s===-1?-1:s+1}function MAe(t){return ys(t)&&t.operatorToken.kind===28||Wd(t)||v0(t)&&Wd(t.expression)}function lce(t,r,s){const l=Lx(t.parent);switch(l.kind){case 214:return r.getContextualType(l,s);case 226:{const{left:m,operatorToken:y,right:T}=l;return v4(y.kind)?r.getTypeAtLocation(t===T?m:T):r.getContextualType(t,s)}case 296:return Rj(l,r);default:return r.getContextualType(t,s)}}function uce(t,r,s){const l=Jx(t,r),m=JSON.stringify(s);return l===0?`'${HE(m).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:m}function v4(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function jZ(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function rB(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function Rj(t,r){return r.getTypeAtLocation(t.parent.parent.expression)}function PF(t,r,s,l){const m=s.getTypeChecker();let y=!0;const T=()=>y=!1,D=m.typeToTypeNode(t,r,1,{trackSymbol:(I,W,O)=>(y=y&&m.isSymbolAccessible(I,W,O,!1).accessibility===0,!y),reportInaccessibleThisError:T,reportPrivateInBaseOfClassExpression:T,reportInaccessibleUniqueSymbolError:T,moduleResolverHost:eq(s,l)});return y?D:void 0}function Zge(t){return t===179||t===180||t===181||t===171||t===173}function JJe(t){return t===262||t===176||t===174||t===177||t===178}function fce(t){return t===267}function aq(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 VZ(t,r){const s=t.getLastToken(r);if(s&&s.kind===27)return!1;if(Zge(t.kind)){if(s&&s.kind===28)return!1}else if(fce(t.kind)){const D=yl(t.getChildren(r));if(D&&z0(D))return!1}else if(JJe(t.kind)){const D=yl(t.getChildren(r));if(D&&JM(D))return!1}else if(!aq(t.kind))return!1;if(t.kind===246)return!0;const l=Kr(t,D=>!D.parent),m=Aj(t,l,r);if(!m||m.kind===20)return!0;const y=r.getLineAndCharacterOfPosition(t.getEnd()).line,T=r.getLineAndCharacterOfPosition(m.getStart(r)).line;return y!==T}function sq(t,r,s){const l=Kr(r,m=>m.end!==t?"quit":ZZ(m.kind));return!!l&&VZ(l,s)}function UZ(t){let r=0,s=0;const l=5;return B_(t,function m(y){if(aq(y.kind)){const T=y.getLastToken(t);(T==null?void 0:T.kind)===27?r++:s++}else if(Zge(y.kind)){const T=y.getLastToken(t);if((T==null?void 0:T.kind)===27)r++;else if(T&&T.kind!==28){const D=Ah(t,T.getStart(t)).line,I=Ah(t,nC(t,T.end).start).line;D!==I&&s++}}return r+s>=l?!0:B_(y,m)}),r===0&&s<=1?!0:r/s>1/l}function HZ(t,r){return the(t,t.getDirectories,r)||[]}function _ce(t,r,s,l,m){return the(t,t.readDirectory,r,s,l,m)||Zn}function iB(t,r){return the(t,t.fileExists,r)}function dce(t,r){return ehe(()=>O0(r,t))||!1}function ehe(t){try{return t()}catch{return}}function the(t,r,...s){return ehe(()=>r&&r.apply(t,s))}function JZ(t,r,s){const l=[];return ok(t,m=>{if(m===s)return!0;const y=tf(m,"package.json");iB(r,y)&&l.push(y)}),l}function $Je(t,r){let s;return ok(t,l=>{if(l==="node_modules"||(s=UQ(l,m=>iB(r,m),"package.json"),s))return!0}),s}function pce(t,r){if(!r.fileExists)return[];const s=[];return ok(qc(t),l=>{const m=tf(l,"package.json");if(r.fileExists(m)){const y=$Z(m,r);y&&s.push(y)}}),s}function $Z(t,r){if(!r.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],l=r.readFile(t)||"",m=LAe(l),y={};if(m)for(const I of s){const W=m[I];if(!W)continue;const O=new Map;for(const V in W)O.set(V,W[V]);y[I]=O}const T=[[1,y.dependencies],[2,y.devDependencies],[8,y.optionalDependencies],[4,y.peerDependencies]];return{...y,parseable:!!m,fileName:t,get:D,has(I,W){return!!D(I,W)}};function D(I,W=15){for(const[O,V]of T)if(V&&W&O){const ee=V.get(I);if(ee!==void 0)return ee}}}function oB(t,r,s){const l=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||pce(t.fileName,s)).filter(oe=>oe.parseable);let m,y,T;return{allowsImportingAmbientModule:I,allowsImportingSourceFile:W,allowsImportingSpecifier:O};function D(oe){const de=te(oe);for(const ue of l)if(ue.has(de)||ue.has(tme(de)))return!0;return!1}function I(oe,de){if(!l.length||!oe.valueDeclaration)return!0;if(!y)y=new Map;else{const pt=y.get(oe);if(pt!==void 0)return pt}const ue=HE(oe.getName());if(V(ue))return y.set(oe,!0),!0;const Ne=oe.valueDeclaration.getSourceFile(),Be=ee(Ne.fileName,de);if(typeof Be>"u")return y.set(oe,!0),!0;const Ve=D(Be)||D(ue);return y.set(oe,Ve),Ve}function W(oe,de){if(!l.length)return!0;if(!T)T=new Map;else{const Be=T.get(oe);if(Be!==void 0)return Be}const ue=ee(oe.fileName,de);if(!ue)return T.set(oe,!0),!0;const Ne=D(ue);return T.set(oe,Ne),Ne}function O(oe){return!l.length||V(oe)||U2(oe)||mm(oe)?!0:D(oe)}function V(oe){return!!(v1(t)&&EF.nodeCoreModules.has(oe)&&(m===void 0&&(m=Mj(t)),m))}function ee(oe,de){if(!Ub(oe,"node_modules"))return;const ue=M3.getNodeModulesPackageName(s.getCompilationSettings(),t,oe,de,r);if(ue&&!U2(ue)&&!mm(ue))return te(ue)}function te(oe){const de=g0(_ae(oe)).slice(1);return xf(de[0],"@")?`${de[0]}/${de[1]}`:de[0]}}function LAe(t){try{return JSON.parse(t)}catch{return}}function Mj(t){return gt(t.imports,({text:r})=>EF.nodeCoreModules.has(r))}function mce(t){return ni(g0(t),"node_modules")}function qZ(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function gce(t,r){const s=gE(t),l=WD(r,s,Of,pU);if(l>=0){const m=r[l];return ce.assertEqual(m.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),uc(m,qZ)}}function nhe(t,r){var s;let l=WD(r,t.start,T=>T.start,pf);for(l<0&&(l=~l);((s=r[l-1])==null?void 0:s.start)===t.start;)l--;const m=[],y=K1(t);for(;;){const T=to(r[l],qZ);if(!T||T.start>y)break;FX(t,T)&&m.push(T),l++}return m}function aB({startPosition:t,endPosition:r}){return R0(t,r===void 0?t:r)}function rhe(t,r){const s=bf(t,r.start);return Kr(s,m=>m.getStart(t)K1(r)?"quit":Nr(m)&&IF(r,gE(m,t)))}function ihe(t,r,s=Of){return t?ls(t)?s(Vn(t,r)):r(t,0):void 0}function Lj(t){return ls(t)?Dl(t):t}function qJe(t,r){if(KZ(t)){const s=ohe(t);if(s)return s;const l=If.moduleSymbolToValidIdentifier(ahe(t),r,!1),m=If.moduleSymbolToValidIdentifier(ahe(t),r,!0);return l===m?l:[l,m]}return t.name}function cq(t,r,s){return KZ(t)?ohe(t)||If.moduleSymbolToValidIdentifier(ahe(t),r,!!s):t.name}function KZ(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function ohe(t){return Yr(t.declarations,r=>{var s,l,m;return Ly(r)?(s=to(rv(r.expression),An))==null?void 0:s.text:Oy(r)&&r.symbol.flags===2097152?(l=to(r.propertyName,An))==null?void 0:l.text:(m=to(o_(r),An))==null?void 0:m.text})}function ahe(t){var r;return ce.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${ce.formatSymbolFlags(t.flags)}. Declarations: ${(r=t.declarations)==null?void 0:r.map(s=>{const l=ce.formatSyntaxKind(s.kind),m=Rs(s),{expression:y}=s;return(m?"[JS]":"")+l+(y?` (expression: ${ce.formatSyntaxKind(y.kind)})`:"")}).join(", ")}.`)}function OAe(t,r,s){const l=r.length;if(l+s>t.length)return!1;for(let m=0;mxp(s)&&$C(s))}function XZ(t){return!!(Ua(t)&8192)}function hce(t,r){return Yr(t.imports,l=>{if(EF.nodeCoreModules.has(l.text))return xf(l.text,"node:")})??r.usesUriStyleNodeCoreModules}function Oj(t){return t===` +`?1:0}function sB(t){return ls(t)?LT(fs(t[0]),t.slice(1)):fs(t)}function che({options:t},r){const s=!t.semicolons||t.semicolons==="ignore",l=t.semicolons==="remove"||s&&!UZ(r);return{...t,semicolons:l?"remove":"ignore"}}function lhe(t){return t===2||t===3}function lq(t,r){return t.isSourceFileFromExternalLibrary(r)||t.isSourceFileDefaultLibrary(r)}function YZ(t,r){const s=new Set,l=new Set,m=new Set;for(const D of r)if(!CR(D)){const I=_g(D.expression);if(fP(I))switch(I.kind){case 15:case 11:s.add(I.text);break;case 9:l.add(parseInt(I.text));break;case 10:const W=qSe(h_(I.text,"n")?I.text.slice(0,-1):I.text);W&&m.add(tD(W));break}else{const W=t.getSymbolAtLocation(D.expression);if(W&&W.valueDeclaration&&Qb(W.valueDeclaration)){const O=t.getConstantValue(W.valueDeclaration);O!==void 0&&y(O)}}}return{addValue:y,hasValue:T};function y(D){switch(typeof D){case"string":s.add(D);break;case"number":l.add(D)}}function T(D){switch(typeof D){case"string":return s.has(D);case"number":return l.has(D);case"object":return m.has(tD(D))}}}function WAe(t,r,s,l){var m;const y=typeof t=="string"?t:t.fileName;if(!eD(y))return!1;const T=r.getCompilerOptions(),D=Zp(T),I=typeof t=="string"?ew(_h(t,s.getCurrentDirectory(),hR(s)),(m=r.getPackageJsonInfoCache)==null?void 0:m.call(r),s,T):t.impliedNodeFormat;if(I===99)return!1;if(I===1||T.verbatimModuleSyntax&&D===1)return!0;if(T.verbatimModuleSyntax&&WH(D))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return l}var lT,QZ,yce,Fj,$3,uq,uhe,cB,ZZ,BAe=G({"src/services/utilities.ts"(){El(),lT=MM(99,!0),QZ=(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))(QZ||{}),yce=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))($3||{}),uq=zZ(),uhe=` +`,cB="anonymous function",ZZ=dA(Zge,JJe,fce,aq)}});function uT(t){let r=1;const s=zg(),l=new Map,m=new Map;let y;const T={isUsableByFile:te=>te===y,isEmpty:()=>!s.size,clear:()=>{s.clear(),l.clear(),y=void 0},add:(te,oe,de,ue,Ne,Be,Ve,pt)=>{te!==y&&(T.clear(),y=te);let Le;if(Ne){const Wt=AY(Ne.fileName);if(Wt){const{topLevelNodeModulesIndex:tt,topLevelPackageNameIndex:Mn,packageRootIndex:kn}=Wt;if(Le=dae(_ae(Ne.fileName.substring(Mn+1,kn))),xf(te,Ne.path.substring(0,tt))){const cr=m.get(Le),un=Ne.fileName.substring(0,Mn+1);if(cr){const on=cr.indexOf(ix);tt>on&&m.set(Le,un)}else m.set(Le,un)}}}const ke=Be===1&&i6(oe)||oe,_t=Be===0||sT(ke)?lf(de):qJe(ke,void 0),Dt=typeof _t=="string"?_t:_t[0],Ft=typeof _t=="string"?void 0:_t[1],it=HE(ue.name),Ye=r++,ut=dg(oe,pt),lt=oe.flags&33554432?void 0:oe,zt=ue.flags&33554432?void 0:ue;(!lt||!zt)&&l.set(Ye,[oe,ue]),s.add(I(Dt,oe,tb(it)?void 0:it,pt),{id:Ye,symbolTableKey:de,symbolName:Dt,capitalizedSymbolName:Ft,moduleName:it,moduleFile:Ne,moduleFileName:Ne==null?void 0:Ne.fileName,packageName:Le,exportKind:Be,targetFlags:ut.flags,isFromPackageJson:Ve,symbol:lt,moduleSymbol:zt})},get:(te,oe)=>{if(te!==y)return;const de=s.get(oe);return de==null?void 0:de.map(D)},search:(te,oe,de,ue)=>{if(te===y)return wT(s,(Ne,Be)=>{const{symbolName:Ve,ambientModuleName:pt}=W(Be),Le=oe&&Ne[0].capitalizedSymbolName||Ve;if(de(Le,Ne[0].targetFlags)){const ke=Ne.map(D).filter((_t,Dt)=>ee(_t,Ne[Dt].packageName));if(ke.length){const _t=ue(ke,Le,!!pt,Be);if(_t!==void 0)return _t}}})},releaseSymbols:()=>{l.clear()},onFileChanged:(te,oe,de)=>O(te)&&O(oe)?!1:y&&y!==oe.path||de&&Mj(te)!==Mj(oe)||!fv(te.moduleAugmentations,oe.moduleAugmentations)||!V(te,oe)?(T.clear(),!0):(y=oe.path,!1)};return ce.isDebugging&&Object.defineProperty(T,"__cache",{get:()=>s}),T;function D(te){if(te.symbol&&te.moduleSymbol)return te;const{id:oe,exportKind:de,targetFlags:ue,isFromPackageJson:Ne,moduleFileName:Be}=te,[Ve,pt]=l.get(oe)||Zn;if(Ve&&pt)return{symbol:Ve,moduleSymbol:pt,moduleFileName:Be,exportKind:de,targetFlags:ue,isFromPackageJson:Ne};const Le=(Ne?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),ht=te.moduleSymbol||pt||ce.checkDefined(te.moduleFile?Le.getMergedSymbol(te.moduleFile.symbol):Le.tryFindAmbientModule(te.moduleName)),ke=te.symbol||Ve||ce.checkDefined(de===2?Le.resolveExternalModuleSymbol(ht):Le.tryGetMemberInModuleExportsAndProperties(lf(te.symbolTableKey),ht),`Could not find symbol '${te.symbolName}' by key '${te.symbolTableKey}' in module ${ht.name}`);return l.set(oe,[ke,ht]),{symbol:ke,moduleSymbol:ht,moduleFileName:Be,exportKind:de,targetFlags:ue,isFromPackageJson:Ne}}function I(te,oe,de,ue){const Ne=de||"";return`${te}|${Bp(dg(oe,ue))}|${Ne}`}function W(te){const oe=te.substring(0,te.indexOf("|")),de=te.substring(te.lastIndexOf("|")+1);return{symbolName:oe,ambientModuleName:de===""?void 0:de}}function O(te){return!te.commonJsModuleIndicator&&!te.externalModuleIndicator&&!te.moduleAugmentations&&!te.ambientModuleNames}function V(te,oe){if(!fv(te.ambientModuleNames,oe.ambientModuleNames))return!1;let de=-1,ue=-1;for(const Ne of oe.ambientModuleNames){const Be=Ve=>pie(Ve)&&Ve.name.text===Ne;if(de=Ho(te.statements,Be,de+1),ue=Ho(oe.statements,Be,ue+1),te.statements[de]!==oe.statements[ue])return!1}return!0}function ee(te,oe){if(!oe||!te.moduleFileName)return!0;const de=t.getGlobalTypingsCacheLocation();if(de&&xf(te.moduleFileName,de))return!0;const ue=m.get(oe);return!ue||xf(te.moduleFileName,ue)}}function vce(t,r,s,l,m,y,T){var D;if(r===s)return!1;const I=T==null?void 0:T.get(r.path,s.path,l,{});if((I==null?void 0:I.isBlockedByPackageJsonDependencies)!==void 0)return!I.isBlockedByPackageJsonDependencies;const W=hR(y),O=(D=y.getGlobalTypingsCacheLocation)==null?void 0:D.call(y),V=!!M3.forEachFileNameOfModule(r.fileName,s.fileName,y,!1,ee=>{const te=t.getSourceFile(ee);return(te===s||!te)&&KJe(r.fileName,ee,W,O)});if(m){const ee=V&&m.allowsImportingSourceFile(s,y);return T==null||T.setBlockedByPackageJsonDependencies(r.path,s.path,l,{},!ee),ee}return V}function KJe(t,r,s,l){const m=ok(r,T=>Iy(T)==="node_modules"?T:void 0),y=m&&qc(s(m));return y===void 0||xf(s(t),y)||!!l&&xf(s(l),y)}function eee(t,r,s,l,m){var y,T;const D=xH(r),I=s.autoImportFileExcludePatterns&&Qo(s.autoImportFileExcludePatterns,O=>{const V=roe(O,"","exclude");return V?Y2(V,D):void 0});fhe(t.getTypeChecker(),t.getSourceFiles(),I,(O,V)=>m(O,V,t,!1));const W=l&&((y=r.getPackageJsonAutoImportProvider)==null?void 0:y.call(r));if(W){const O=cf(),V=t.getTypeChecker();fhe(W.getTypeChecker(),W.getSourceFiles(),I,(ee,te)=>{(te&&!t.getSourceFile(te.fileName)||!te&&!V.resolveName(ee.name,void 0,1536,!1))&&m(ee,te,W,!0)}),(T=r.log)==null||T.call(r,`forEachExternalModuleToImportFrom autoImportProvider: ${cf()-O}`)}}function fhe(t,r,s,l){var m;const y=s&&(T=>s.some(D=>D.test(T)));for(const T of t.getAmbientModules())!Ub(T.name,"*")&&!(s&&((m=T.declarations)!=null&&m.every(D=>y(D.getSourceFile().fileName))))&&l(T,void 0);for(const T of r)h1(T)&&!(y!=null&&y(T.fileName))&&l(t.getMergedSymbol(T.symbol),T)}function fq(t,r,s,l,m){var y,T,D,I,W;const O=cf();(y=r.getPackageJsonAutoImportProvider)==null||y.call(r);const V=((T=r.getCachedExportInfoMap)==null?void 0:T.call(r))||uT({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var oe;return(oe=r.getPackageJsonAutoImportProvider)==null?void 0:oe.call(r)},getGlobalTypingsCacheLocation:()=>{var oe;return(oe=r.getGlobalTypingsCacheLocation)==null?void 0:oe.call(r)}});if(V.isUsableByFile(t.path))return(D=r.log)==null||D.call(r,"getExportInfoMap: cache hit"),V;(I=r.log)==null||I.call(r,"getExportInfoMap: cache miss or empty; calculating new results");const ee=s.getCompilerOptions();let te=0;try{eee(s,r,l,!0,(oe,de,ue,Ne)=>{++te%100===0&&(m==null||m.throwIfCancellationRequested());const Be=new Map,Ve=ue.getTypeChecker(),pt=_he(oe,Ve,ee);pt&&bce(pt.symbol,Ve)&&V.add(t.path,pt.symbol,pt.exportKind===1?"default":"export=",oe,de,pt.exportKind,Ne,Ve),Ve.forEachExportAndPropertyOfModule(oe,(Le,ht)=>{Le!==(pt==null?void 0:pt.symbol)&&bce(Le,Ve)&&y0(Be,ht)&&V.add(t.path,Le,ht,oe,de,0,Ne,Ve)})})}catch(oe){throw V.clear(),oe}return(W=r.log)==null||W.call(r,`getExportInfoMap: done in ${cf()-O} ms`),V}function _he(t,r,s){const l=zAe(t,r);if(!l)return;const{symbol:m,exportKind:y}=l,T=GAe(m,r,s);return T&&{symbol:m,exportKind:y,...T}}function bce(t,r){return!r.isUndefinedSymbol(t)&&!r.isUnknownSymbol(t)&&!vH(t)&&!UE(t)}function zAe(t,r){const s=r.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const l=r.tryGetMemberInModuleExports("default",t);if(l)return{symbol:l,exportKind:1}}function GAe(t,r,s){const l=i6(t);if(l)return{resolvedSymbol:l,name:l.name};const m=jAe(t);if(m!==void 0)return{resolvedSymbol:t,name:m};if(t.flags&2097152){const y=r.getImmediateAliasedSymbol(t);if(y&&y.parent)return GAe(y,r,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:cq(t,s.target)}}function jAe(t){return t.declarations&&Yr(t.declarations,r=>{var s;if(Ly(r))return(s=to(rv(r.expression),An))==null?void 0:s.text;if(Oy(r))return ce.assert(r.name.text==="default","Expected the specifier to be a default export"),r.propertyName&&r.propertyName.text})}var Tce,F8e,VAe=G({"src/services/exportInfoMap.ts"(){El(),Tce=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(Tce||{}),F8e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(F8e||{})}});function W8e(){const t=MM(99,!1);function r(l,m,y){return XJe(s(l,m,y),l)}function s(l,m,y){let T=0,D=0;const I=[],{prefix:W,pushTemplate:O}=$ct(m);l=W+l;const V=W.length;O&&I.push(16),t.setText(l);let ee=0;const te=[];let oe=0;do{T=t.scan(),tI(T)||(de(),D=T);const ue=t.getTokenEnd();if(dhe(t.getTokenStart(),ue,V,qct(T),te),ue>=l.length){const Ne=Sce(t,T,Yf(I));Ne!==void 0&&(ee=Ne)}}while(T!==1);function de(){switch(T){case 44:case 69:!t$e[D]&&t.reScanSlashToken()===14&&(T=14);break;case 30:D===80&&oe++;break;case 32:oe>0&&oe--;break;case 133:case 154:case 150:case 136:case 155:oe>0&&!y&&(T=80);break;case 16:I.push(T);break;case 19:I.length>0&&I.push(T);break;case 20:if(I.length>0){const ue=Yf(I);ue===16?(T=t.reScanTemplateToken(!1),T===18?I.pop():ce.assertEqual(T,17,"Should have been a template middle.")):(ce.assertEqual(ue,19,"Should have been an open brace"),I.pop())}break;default:if(!sE(T))break;(D===25||sE(D)&&sE(T)&&!phe(D,T))&&(T=80)}}return{endOfLineState:ee,spans:te}}return{getClassificationsForLine:r,getEncodedLexicalClassifications:s}}function Sce(t,r,s){switch(r){case 11:{if(!t.isUnterminated())return;const l=t.getTokenText(),m=l.length-1;let y=0;for(;l.charCodeAt(m-y)===92;)y++;return y&1?l.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(zM(r)){if(!t.isUnterminated())return;switch(r){case 18:return 5;case 15:return 4;default:return ce.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return s===16?6:void 0}}function dhe(t,r,s,l,m){if(l===8)return;t===0&&s>0&&(t+=s);const y=r-t;y>0&&m.push(t-s,y,l)}function XJe(t,r){const s=[],l=t.spans;let m=0;for(let T=0;T=0){const O=D-m;O>0&&s.push({length:O,classification:4})}s.push({length:I,classification:Jct(W)}),m=D+I}const y=r.length-m;return y>0&&s.push({length:y,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function Jct(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 phe(t,r){if(!tw(t))return!0;switch(r){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function $ct(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 ce.assertNever(t)}}function UAe(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 HAe(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function qct(t){if(sE(t))return 3;if(UAe(t)||HAe(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 zM(t)?6:2}}function B8e(t,r,s,l,m){return ZJe(z8e(t,r,s,l,m))}function YJe(t,r){switch(r){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function z8e(t,r,s,l,m){const y=[];return s.forEachChild(function D(I){if(!(!I||!Yy(m,I.pos,I.getFullWidth()))){if(YJe(r,I.kind),An(I)&&!Um(I)&&l.has(I.escapedText)){const W=t.getSymbolAtLocation(I),O=W&&QJe(W,z3(I),t);O&&T(I.getStart(s),I.getEnd(),O)}I.forEachChild(D)}}),{spans:y,endOfLineState:0};function T(D,I,W){const O=I-D;ce.assert(O>0,`Classification had non-positive length of ${O}`),y.push(D),y.push(O),y.push(W)}}function QJe(t,r,s){const l=t.getFlags();if(l&2885600)return l&32?11:l&384?12:l&524288?16:l&1536?r&4||r&1&&Kct(t)?14:void 0:l&2097152?QJe(s.getAliasedSymbol(t),r,s):r&2?l&64?13:l&262144?15:void 0:void 0}function Kct(t){return gt(t.declarations,r=>xp(r)&&kR(r)===1)}function Xct(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 ZJe(t){ce.assert(t.spans.length%3===0);const r=t.spans,s=[];for(let l=0;l])*)(\/>)?)?/im,_t=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Dt=r.text.substr(Le,ht),Ft=ke.exec(Dt);if(!Ft||!Ft[3]||!(Ft[3]in z_e))return!1;let it=Le;V(it,Ft[1].length),it+=Ft[1].length,I(it,Ft[2].length,10),it+=Ft[2].length,I(it,Ft[3].length,21),it+=Ft[3].length;const Ye=Ft[4];let ut=it;for(;;){const zt=_t.exec(Ye);if(!zt)break;const Wt=it+zt.index+zt[1].length;Wt>ut&&(V(ut,Wt-ut),ut=Wt),I(ut,zt[2].length,22),ut+=zt[2].length,zt[3].length&&(V(ut,zt[3].length),ut+=zt[3].length),I(ut,zt[4].length,5),ut+=zt[4].length,zt[5].length&&(V(ut,zt[5].length),ut+=zt[5].length),I(ut,zt[6].length,24),ut+=zt[6].length}it+=Ft[4].length,it>ut&&V(ut,it-ut),Ft[5]&&(I(it,Ft[5].length,10),it+=Ft[5].length);const lt=Le+ht;return it=0),_t>0){const Dt=ht||Ve(Le.kind,Le);Dt&&I(ke,_t,Dt)}return!0}function Be(Le){switch(Le.parent&&Le.parent.kind){case 286:if(Le.parent.tagName===Le)return 19;break;case 287:if(Le.parent.tagName===Le)return 20;break;case 285:if(Le.parent.tagName===Le)return 21;break;case 291:if(Le.parent.name===Le)return 22;break}}function Ve(Le,ht){if(sE(Le))return 3;if((Le===30||Le===32)&&ht&&Zse(ht.parent))return 10;if(w7(Le)){if(ht){const ke=ht.parent;if(Le===64&&(ke.kind===260||ke.kind===172||ke.kind===169||ke.kind===291)||ke.kind===226||ke.kind===224||ke.kind===225||ke.kind===227)return 5}return 10}else{if(Le===9)return 4;if(Le===10)return 25;if(Le===11)return ht&&ht.parent.kind===291?24:6;if(Le===14)return 6;if(zM(Le))return 6;if(Le===12)return 23;if(Le===80){if(ht){switch(ht.parent.kind){case 263:return ht.parent.name===ht?11:void 0;case 168:return ht.parent.name===ht?15:void 0;case 264:return ht.parent.name===ht?13:void 0;case 266:return ht.parent.name===ht?12:void 0;case 267:return ht.parent.name===ht?14:void 0;case 169:return ht.parent.name===ht?Zy(ht)?3:17:void 0}if(CN(ht.parent))return 3}return 2}}}function pt(Le){if(Le&&o9(l,m,Le.pos,Le.getFullWidth())){YJe(t,Le.kind);for(const ht of Le.getChildren(r))Ne(ht)||pt(ht)}}}var t$e,JAe=G({"src/services/classifier.ts"(){El(),t$e=Tz([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),mhe,$Ae=G({"src/services/documentHighlights.ts"(){El(),(t=>{function r(it,Ye,ut,lt,zt){const Wt=Hx(ut,lt);if(Wt.parent&&(rD(Wt.parent)&&Wt.parent.tagName===Wt||Sk(Wt.parent))){const{openingElement:tt,closingElement:Mn}=Wt.parent.parent,kn=[tt,Mn].map(({tagName:cr})=>s(cr,ut));return[{fileName:ut.fileName,highlightSpans:kn}]}return l(lt,Wt,it,Ye,zt)||m(Wt,ut)}t.getDocumentHighlights=r;function s(it,Ye){return{fileName:Ye.fileName,textSpan:gE(it,Ye),kind:"none"}}function l(it,Ye,ut,lt,zt){const Wt=new Set(zt.map(cr=>cr.fileName)),tt=Wf.getReferenceEntriesForNode(it,Ye,ut,zt,lt,void 0,Wt);if(!tt)return;const Mn=_N(tt.map(Wf.toHighlightSpan),cr=>cr.fileName,cr=>cr.span),kn=_v(ut.useCaseSensitiveFileNames());return oc(p2(Mn.entries(),([cr,un])=>{if(!Wt.has(cr)){if(!ut.redirectTargetsMap.has(_h(cr,ut.getCurrentDirectory(),kn)))return;const on=ut.getSourceFile(cr);cr=lr(zt,Or=>!!Or.redirectInfo&&Or.redirectInfo.redirectTarget===on).fileName,ce.assert(Wt.has(cr))}return{fileName:cr,highlightSpans:un}}))}function m(it,Ye){const ut=y(it,Ye);return ut&&[{fileName:Ye.fileName,highlightSpans:ut}]}function y(it,Ye){switch(it.kind){case 101:case 93:return Xg(it.parent)?_t(it.parent,Ye):void 0;case 107:return lt(it.parent,Bx,pt);case 111:return lt(it.parent,upe,Ve);case 113:case 85:case 98:const Wt=it.kind===85?it.parent.parent:it.parent;return lt(Wt,AR,Be);case 109:return lt(it.parent,Loe,Ne);case 84:case 90:return CR(it.parent)||tx(it.parent)?lt(it.parent.parent.parent,Loe,Ne):void 0;case 83:case 88:return lt(it.parent,VX,ue);case 99:case 117:case 92:return lt(it.parent,tt=>kN(tt,!0),de);case 137:return ut(pg,[137]);case 139:case 153:return ut(Am,[139,153]);case 135:return lt(it.parent,h6,Le);case 134:return zt(Le(it));case 127:return zt(ht(it));case 103:return;default:return qg(it.kind)&&(dl(it.parent)||Dh(it.parent))?zt(ee(it.kind,it.parent)):void 0}function ut(Wt,tt){return lt(it.parent,Wt,Mn=>{var kn;return Qo((kn=to(Mn,YD))==null?void 0:kn.symbol.declarations,cr=>Wt(cr)?lr(cr.getChildren(Ye),un=>ni(tt,un.kind)):void 0)})}function lt(Wt,tt,Mn){return tt(Wt)?zt(Mn(Wt,Ye)):void 0}function zt(Wt){return Wt&&Wt.map(tt=>s(tt,Ye))}}function T(it){return upe(it)?[it]:AR(it)?Hi(it.catchClause?T(it.catchClause):it.tryBlock&&T(it.tryBlock),it.finallyBlock&&T(it.finallyBlock)):S_(it)?void 0:W(it,T)}function D(it){let Ye=it;for(;Ye.parent;){const ut=Ye.parent;if(JM(ut)||ut.kind===312)return ut;if(AR(ut)&&ut.tryBlock===Ye&&ut.catchClause)return Ye;Ye=ut}}function I(it){return VX(it)?[it]:S_(it)?void 0:W(it,I)}function W(it,Ye){const ut=[];return it.forEachChild(lt=>{const zt=Ye(lt);zt!==void 0&&ut.push(...BC(zt))}),ut}function O(it,Ye){const ut=V(Ye);return!!ut&&ut===it}function V(it){return Kr(it,Ye=>{switch(Ye.kind){case 255:if(it.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!it.label||Ft(Ye,it.label.escapedText);default:return S_(Ye)&&"quit"}})}function ee(it,Ye){return Qo(te(Ye,U9(it)),ut=>YW(ut,it))}function te(it,Ye){const ut=it.parent;switch(ut.kind){case 268:case 312:case 241:case 296:case 297:return Ye&256&&Kc(it)?[...it.members,it]:ut.statements;case 176:case 174:case 262:return[...ut.parameters,...Jl(ut.parent)?ut.parent.members:[]];case 263:case 231:case 264:case 187:const lt=ut.members;if(Ye&92){const zt=lr(ut.members,pg);if(zt)return[...lt,...zt.parameters]}else if(Ye&256)return[...lt,ut];return lt;case 210:return;default:ce.assertNever(ut,"Invalid container kind.")}}function oe(it,Ye,...ut){return Ye&&ni(ut,Ye.kind)?(it.push(Ye),!0):!1}function de(it){const Ye=[];if(oe(Ye,it.getFirstToken(),99,117,92)&&it.kind===246){const ut=it.getChildren();for(let lt=ut.length-1;lt>=0&&!oe(Ye,ut[lt],117);lt--);}return Ot(I(it.statement),ut=>{O(it,ut)&&oe(Ye,ut.getFirstToken(),83,88)}),Ye}function ue(it){const Ye=V(it);if(Ye)switch(Ye.kind){case 248:case 249:case 250:case 246:case 247:return de(Ye);case 255:return Ne(Ye)}}function Ne(it){const Ye=[];return oe(Ye,it.getFirstToken(),109),Ot(it.caseBlock.clauses,ut=>{oe(Ye,ut.getFirstToken(),84,90),Ot(I(ut),lt=>{O(it,lt)&&oe(Ye,lt.getFirstToken(),83)})}),Ye}function Be(it,Ye){const ut=[];if(oe(ut,it.getFirstToken(),113),it.catchClause&&oe(ut,it.catchClause.getFirstToken(),85),it.finallyBlock){const lt=Wm(it,98,Ye);oe(ut,lt,98)}return ut}function Ve(it,Ye){const ut=D(it);if(!ut)return;const lt=[];return Ot(T(ut),zt=>{lt.push(Wm(zt,111,Ye))}),JM(ut)&&HM(ut,zt=>{lt.push(Wm(zt,107,Ye))}),lt}function pt(it,Ye){const ut=GE(it);if(!ut)return;const lt=[];return HM(uc(ut.body,E_),zt=>{lt.push(Wm(zt,107,Ye))}),Ot(T(ut.body),zt=>{lt.push(Wm(zt,111,Ye))}),lt}function Le(it){const Ye=GE(it);if(!Ye)return;const ut=[];return Ye.modifiers&&Ye.modifiers.forEach(lt=>{oe(ut,lt,134)}),B_(Ye,lt=>{ke(lt,zt=>{h6(zt)&&oe(ut,zt.getFirstToken(),135)})}),ut}function ht(it){const Ye=GE(it);if(!Ye)return;const ut=[];return B_(Ye,lt=>{ke(lt,zt=>{Ds(zt)&&oe(ut,zt.getFirstToken(),127)})}),ut}function ke(it,Ye){Ye(it),!S_(it)&&!Jl(it)&&!Kp(it)&&!xp(it)&&!mg(it)&&!Uu(it)&&B_(it,ut=>ke(ut,Ye))}function _t(it,Ye){const ut=Dt(it,Ye),lt=[];for(let zt=0;zt=Wt.end;kn--)if(!HD(Ye.text.charCodeAt(kn))){Mn=!1;break}if(Mn){lt.push({fileName:Ye.fileName,textSpan:R0(Wt.getStart(),tt.end),kind:"reference"}),zt++;continue}}lt.push(s(ut[zt],Ye))}return lt}function Dt(it,Ye){const ut=[];for(;Xg(it.parent)&&it.parent.elseStatement===it;)it=it.parent;for(;;){const lt=it.getChildren(Ye);oe(ut,lt[0],101);for(let zt=lt.length-1;zt>=0&&!oe(ut,lt[zt],93);zt--);if(!it.elseStatement||!Xg(it.elseStatement))break;it=it.elseStatement}return ut}function Ft(it,Ye){return!!Kr(it.parent,ut=>iS(ut)?ut.label.escapedText===Ye:"quit")}})(mhe||(mhe={}))}});function Ece(t){return!!t.sourceFile}function j8e(t,r){return n$e(t,r)}function n$e(t,r="",s){const l=new Map,m=_v(!!t);function y(){const de=oc(l.keys()).filter(ue=>ue&&ue.charAt(0)==="_").map(ue=>{const Ne=l.get(ue),Be=[];return Ne.forEach((Ve,pt)=>{Ece(Ve)?Be.push({name:pt,scriptKind:Ve.sourceFile.scriptKind,refCount:Ve.languageServiceRefCount}):Ve.forEach((Le,ht)=>Be.push({name:pt,scriptKind:ht,refCount:Le.languageServiceRefCount}))}),Be.sort((Ve,pt)=>pt.refCount-Ve.refCount),{bucket:ue,sourceFiles:Be}});return JSON.stringify(de,void 0,2)}function T(de){return typeof de.getCompilationSettings=="function"?de.getCompilationSettings():de}function D(de,ue,Ne,Be,Ve,pt){const Le=_h(de,r,m),ht=ghe(T(ue));return I(de,Le,ue,ht,Ne,Be,Ve,pt)}function I(de,ue,Ne,Be,Ve,pt,Le,ht){return ee(de,ue,Ne,Be,Ve,pt,!0,Le,ht)}function W(de,ue,Ne,Be,Ve,pt){const Le=_h(de,r,m),ht=ghe(T(ue));return O(de,Le,ue,ht,Ne,Be,Ve,pt)}function O(de,ue,Ne,Be,Ve,pt,Le,ht){return ee(de,ue,T(Ne),Be,Ve,pt,!1,Le,ht)}function V(de,ue){const Ne=Ece(de)?de:de.get(ce.checkDefined(ue,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return ce.assert(ue===void 0||!Ne||Ne.sourceFile.scriptKind===ue,`Script kind should match provided ScriptKind:${ue} and sourceFile.scriptKind: ${Ne==null?void 0:Ne.sourceFile.scriptKind}, !entry: ${!Ne}`),Ne}function ee(de,ue,Ne,Be,Ve,pt,Le,ht,ke){var _t,Dt,Ft,it;ht=$H(de,ht);const Ye=T(Ne),ut=Ne===Ye?void 0:Ne,lt=ht===6?100:iu(Ye),zt=typeof ke=="object"?ke:{languageVersion:lt,impliedNodeFormat:ut&&ew(ue,(it=(Ft=(Dt=(_t=ut.getCompilerHost)==null?void 0:_t.call(ut))==null?void 0:Dt.getModuleResolutionCache)==null?void 0:Ft.call(Dt))==null?void 0:it.getPackageJsonInfoCache(),ut,Ye),setExternalModuleIndicator:q9(Ye)};zt.languageVersion=lt;const Wt=l.size,tt=hhe(Be,zt.impliedNodeFormat),Mn=Jw(l,tt,()=>new Map);if(tu){l.size>Wt&&tu.instant(tu.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:Ye.configFilePath,key:tt});const on=!iT(ue)&&wT(l,(pn,Or)=>Or!==tt&&pn.has(ue)&&Or);on&&tu.instant(tu.Phase.Session,"documentRegistryBucketOverlap",{path:ue,key1:on,key2:tt})}const kn=Mn.get(ue);let cr=kn&&V(kn,ht);if(!cr&&s){const on=s.getDocument(tt,ue);on&&(ce.assert(Le),cr={sourceFile:on,languageServiceRefCount:0},un())}if(cr)cr.sourceFile.version!==pt&&(cr.sourceFile=Eee(cr.sourceFile,Ve,pt,Ve.getChangeRange(cr.sourceFile.scriptSnapshot)),s&&s.setDocument(tt,ue,cr.sourceFile)),Le&&cr.languageServiceRefCount++;else{const on=uDe(de,Ve,zt,pt,!1,ht);s&&s.setDocument(tt,ue,on),cr={sourceFile:on,languageServiceRefCount:1},un()}return ce.assert(cr.languageServiceRefCount!==0),cr.sourceFile;function un(){if(!kn)Mn.set(ue,cr);else if(Ece(kn)){const on=new Map;on.set(kn.sourceFile.scriptKind,kn),on.set(ht,cr),Mn.set(ue,on)}else kn.set(ht,cr)}}function te(de,ue,Ne,Be){const Ve=_h(de,r,m),pt=ghe(ue);return oe(Ve,pt,Ne,Be)}function oe(de,ue,Ne,Be){const Ve=ce.checkDefined(l.get(hhe(ue,Be))),pt=Ve.get(de),Le=V(pt,Ne);Le.languageServiceRefCount--,ce.assert(Le.languageServiceRefCount>=0),Le.languageServiceRefCount===0&&(Ece(pt)?Ve.delete(de):(pt.delete(Ne),pt.size===1&&Ve.set(de,Ns(pt.values(),Of))))}return{acquireDocument:D,acquireDocumentWithKey:I,updateDocument:W,updateDocumentWithKey:O,releaseDocument:te,releaseDocumentWithKey:oe,getKeyForCompilationSettings:ghe,getDocumentRegistryBucketKeyWithMode:hhe,reportStats:y,getBuckets:()=>l}}function ghe(t){return Kpe(t,hI)}function hhe(t,r){return r?`${t}|${r}`:t}var qAe=G({"src/services/documentRegistry.ts"(){El()}});function V8e(t,r,s,l,m,y,T){const D=xH(l),I=_v(D),W=KAe(r,s,I,T),O=KAe(s,r,I,T);return Hs.ChangeTracker.with({host:l,formatContext:m,preferences:y},V=>{Yct(t,V,W,r,s,l.getCurrentDirectory(),D),xce(t,V,W,O,l,I)})}function KAe(t,r,s,l){const m=s(t);return T=>{const D=l&&l.tryGetSourcePosition({fileName:T,pos:0}),I=y(D?D.fileName:T);return D?I===void 0?void 0:yhe(D.fileName,I,T,s):I};function y(T){if(s(T)===m)return r;const D=toe(T,m,s);return D===void 0?void 0:r+"/"+D}}function yhe(t,r,s,l){const m=wX(t,r,l);return Ace(qc(s),m)}function Yct(t,r,s,l,m,y,T){const{configFile:D}=t.getCompilerOptions();if(!D)return;const I=qc(D.fileName),W=A9(D);if(!W)return;Cce(W,(te,oe)=>{switch(oe){case"files":case"include":case"exclude":{if(O(te)||oe!=="include"||!Ch(te.initializer))return;const ue=Qo(te.initializer.elements,Be=>Wp(Be)?Be.text:void 0);if(ue.length===0)return;const Ne=Y9(I,[],ue,T,y);Y2(ce.checkDefined(Ne.includeFilePattern),T).test(l)&&!Y2(ce.checkDefined(Ne.includeFilePattern),T).test(m)&&r.insertNodeAfter(D,yl(te.initializer.elements),be.createStringLiteral(ee(m)));return}case"compilerOptions":Cce(te.initializer,(de,ue)=>{const Ne=t2e(ue);ce.assert((Ne==null?void 0:Ne.type)!=="listOrElement"),Ne&&(Ne.isFilePath||Ne.type==="list"&&Ne.element.isFilePath)?O(de):ue==="paths"&&Cce(de.initializer,Be=>{if(Ch(Be.initializer))for(const Ve of Be.initializer.elements)V(Ve)})});return}});function O(te){const oe=Ch(te.initializer)?te.initializer.elements:[te.initializer];let de=!1;for(const ue of oe)de=V(ue)||de;return de}function V(te){if(!Wp(te))return!1;const oe=Ace(I,te.text),de=s(oe);return de!==void 0?(r.replaceRangeWithText(D,QAe(te,D),ee(de)),!0):!1}function ee(te){return qp(I,te,!T)}}function xce(t,r,s,l,m,y){const T=t.getSourceFiles();for(const D of T){const I=s(D.fileName),W=I??D.fileName,O=qc(W),V=l(D.fileName),ee=V||D.fileName,te=qc(ee),oe=I!==void 0||V!==void 0;Qct(D,r,de=>{if(!U2(de))return;const ue=Ace(te,de),Ne=s(ue);return Ne===void 0?void 0:OE(qp(O,Ne,y))},de=>{const ue=t.getTypeChecker().getSymbolAtLocation(de);if(ue!=null&&ue.declarations&&ue.declarations.some(Be=>Ov(Be)))return;const Ne=V!==void 0?YAe(de,s4(de.text,ee,t.getCompilerOptions(),m),s,T):XAe(ue,de,D,t,m,s);return Ne!==void 0&&(Ne.updated||oe&&U2(de.text))?M3.updateModuleSpecifier(t.getCompilerOptions(),D,y(W),Ne.newFileName,y4(t,m),de.text):void 0})}}function U8e(t,r){return Fd(tf(t,r))}function Ace(t,r){return OE(U8e(t,r))}function XAe(t,r,s,l,m,y){var T;if(t){const D=lr(t.declarations,tl).fileName,I=y(D);return I===void 0?{newFileName:D,updated:!1}:{newFileName:I,updated:!0}}else{const D=kA(s,r),I=m.resolveModuleNameLiterals||!m.resolveModuleNames?(T=s.resolvedModules)==null?void 0:T.get(r.text,D):m.getResolvedModuleWithFailedLookupLocationsFromCache&&m.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,s.fileName,D);return YAe(r,I,y,l.getSourceFiles())}}function YAe(t,r,s,l){if(!r)return;if(r.resolvedModule){const I=D(r.resolvedModule.resolvedFileName);if(I)return I}const m=Ot(r.failedLookupLocations,y)||U2(t.text)&&Ot(r.failedLookupLocations,T);if(m)return m;return r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1};function y(I){const W=s(I);return W&&lr(l,O=>O.fileName===W)?T(I):void 0}function T(I){return h_(I,"/package.json")?void 0:D(I)}function D(I){const W=s(I);return W&&{newFileName:W,updated:!0}}}function Qct(t,r,s,l){for(const m of t.referencedFiles||Zn){const y=s(m.fileName);y!==void 0&&y!==t.text.slice(m.pos,m.end)&&r.replaceRangeWithText(t,m,y)}for(const m of t.imports){const y=l(m);y!==void 0&&y!==m.text&&r.replaceRangeWithText(t,QAe(m,t),y)}}function QAe(t,r){return tv(t.getStart(r)+1,t.end-1)}function Cce(t,r){if(Wd(t))for(const s of t.properties)Fm(s)&&Wp(s.name)&&r(s,s.name.text)}var Zct=G({"src/services/getEditsForFileRename.ts"(){El()}});function vhe(t,r){return{kind:t,isCaseSensitive:r}}function r$e(t){const r=new Map,s=t.trim().split(".").map(l=>H8e(l.trim()));if(!s.some(l=>!l.subWordTextChunks.length))return{getFullMatch:(l,m)=>elt(l,m,s,r),getMatchForLastSegmentOfPattern:l=>eCe(l,yl(s),r),patternContainsDots:s.length>1}}function elt(t,r,s,l){if(!eCe(r,yl(s),l)||s.length-1>t.length)return;let y;for(let T=s.length-2,D=t.length-1;T>=0;T-=1,D-=1)y=o$e(y,eCe(t[D],s[T],l));return y}function ZAe(t,r){let s=r.get(t);return s||r.set(t,s=c$e(t)),s}function i$e(t,r,s){const l=s$e(t,r.textLowerCase);if(l===0)return vhe(r.text.length===t.length?0:1,xf(t,r.text));if(r.isLowerCase){if(l===-1)return;const m=ZAe(t,s);for(const y of m)if(bhe(t,y,r.text,!0))return vhe(2,bhe(t,y,r.text,!1));if(r.text.length0)return vhe(2,!0);if(r.characterSpans.length>0){const m=ZAe(t,s),y=_q(t,m,r,!1)?!0:_q(t,m,r,!0)?!1:void 0;if(y!==void 0)return vhe(3,y)}}}function eCe(t,r,s){if(rCe(r.totalTextChunk.text,y=>y!==32&&y!==42)){const y=i$e(t,r.totalTextChunk,s);if(y)return y}const l=r.subWordTextChunks;let m;for(const y of l)m=o$e(m,i$e(t,y,s));return m}function o$e(t,r){return qw([t,r],a$e)}function a$e(t,r){return t===void 0?1:r===void 0?-1:pf(t.kind,r.kind)||Z0(!t.isCaseSensitive,!r.isCaseSensitive)}function bhe(t,r,s,l,m={start:0,length:s.length}){return m.length<=r.length&&u$e(0,m.length,y=>tlt(s.charCodeAt(m.start+y),t.charCodeAt(r.start+y),l))}function tlt(t,r,s){return s?The(t)===The(r):t===r}function _q(t,r,s,l){const m=s.characterSpans;let y=0,T=0;for(;;){if(T===m.length)return!0;if(y===r.length)return!1;let D=r[y],I=!1;for(;T=65&&t<=90)return!0;if(t<127||!Wz(t,99))return!1;const r=String.fromCharCode(t);return r===r.toUpperCase()}function J8e(t){if(t>=97&&t<=122)return!0;if(t<127||!Wz(t,99))return!1;const r=String.fromCharCode(t);return r===r.toLowerCase()}function s$e(t,r){const s=t.length-r.length;for(let l=0;l<=s;l++)if(rCe(r,(m,y)=>The(t.charCodeAt(y+l))===m))return l;return-1}function The(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function tCe(t){return t>=48&&t<=57}function nlt(t){return dq(t)||J8e(t)||tCe(t)||t===95||t===36}function $8e(t){const r=[];let s=0,l=0;for(let m=0;m0&&(r.push(q8e(t.substr(s,l))),l=0)}return l>0&&r.push(q8e(t.substr(s,l))),r}function q8e(t){const r=t.toLowerCase();return{text:t,textLowerCase:r,isLowerCase:t===r,characterSpans:K8e(t)}}function K8e(t){return Bj(t,!1)}function c$e(t){return Bj(t,!0)}function Bj(t,r){const s=[];let l=0;for(let m=1;mnCe(l)&&l!==95,r,s)}function X8e(t,r,s){return r!==s&&r+1r(t.charCodeAt(m),m))}var Dce,Q8e=G({"src/services/patternMatcher.ts"(){El(),Dce=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(Dce||{})}});function iCe(t,r=!0,s=!1){const l={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},m=[];let y,T,D,I=0,W=!1;function O(){return T=D,D=lT.scan(),D===19?I++:D===20&&I--,D}function V(){const Le=lT.getTokenValue(),ht=lT.getTokenStart();return{fileName:Le,pos:ht,end:ht+Le.length}}function ee(){y||(y=[]),y.push({ref:V(),depth:I})}function te(){m.push(V()),oe()}function oe(){I===0&&(W=!0)}function de(){let Le=lT.getToken();return Le===138?(Le=O(),Le===144&&(Le=O(),Le===11&&ee()),!0):!1}function ue(){if(T===25)return!1;let Le=lT.getToken();if(Le===102){if(Le=O(),Le===21){if(Le=O(),Le===11||Le===15)return te(),!0}else{if(Le===11)return te(),!0;if(Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke!==161&&(ke===42||ke===19||ke===80||sE(ke))})&&(Le=O()),Le===80||sE(Le))if(Le=O(),Le===161){if(Le=O(),Le===11)return te(),!0}else if(Le===64){if(Be(!0))return!0}else if(Le===28)Le=O();else return!0;if(Le===19){for(Le=O();Le!==20&&Le!==1;)Le=O();Le===20&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))}else Le===42&&(Le=O(),Le===130&&(Le=O(),(Le===80||sE(Le))&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))))}return!0}return!1}function Ne(){let Le=lT.getToken();if(Le===95){if(oe(),Le=O(),Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke===42||ke===19})&&(Le=O()),Le===19){for(Le=O();Le!==20&&Le!==1;)Le=O();Le===20&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))}else if(Le===42)Le=O(),Le===161&&(Le=O(),Le===11&&te());else if(Le===102&&(Le=O(),Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke===80||sE(ke)})&&(Le=O()),(Le===80||sE(Le))&&(Le=O(),Le===64&&Be(!0))))return!0;return!0}return!1}function Be(Le,ht=!1){let ke=Le?O():lT.getToken();return ke===149?(ke=O(),ke===21&&(ke=O(),(ke===11||ht&&ke===15)&&te()),!0):!1}function Ve(){let Le=lT.getToken();if(Le===80&&lT.getTokenValue()==="define"){if(Le=O(),Le!==21)return!0;if(Le=O(),Le===11||Le===15)if(Le=O(),Le===28)Le=O();else return!0;if(Le!==23)return!0;for(Le=O();Le!==24&&Le!==1;)(Le===11||Le===15)&&te(),Le=O();return!0}return!1}function pt(){for(lT.setText(t),O();lT.getToken()!==1;){if(lT.getToken()===16){const Le=[lT.getToken()];e:for(;Nt(Le);){const ht=lT.scan();switch(ht){case 1:break e;case 102:ue();break;case 16:Le.push(ht);break;case 19:Nt(Le)&&Le.push(ht);break;case 20:Nt(Le)&&(Yf(Le)===16?lT.reScanTemplateToken(!1)===18&&Le.pop():Le.pop());break}}O()}de()||ue()||Ne()||s&&(Be(!1,!0)||Ve())||O()}lT.setText(void 0)}if(r&&pt(),Hoe(l,t),Cpe(l,ku),W){if(y)for(const Le of y)m.push(Le.ref);return{referencedFiles:l.referencedFiles,typeReferenceDirectives:l.typeReferenceDirectives,libReferenceDirectives:l.libReferenceDirectives,importedFiles:m,isLibFile:!!l.hasNoDefaultLib,ambientExternalModules:void 0}}else{let Le;if(y)for(const ht of y)ht.depth===0?(Le||(Le=[]),Le.push(ht.ref.fileName)):m.push(ht.ref);return{referencedFiles:l.referencedFiles,typeReferenceDirectives:l.typeReferenceDirectives,libReferenceDirectives:l.libReferenceDirectives,importedFiles:m,isLibFile:!!l.hasNoDefaultLib,ambientExternalModules:Le}}}var f$e=G({"src/services/preProcess.ts"(){El()}});function oCe(t){const r=_v(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),l=new Map,m=new Map;return{tryGetSourcePosition:D,tryGetGeneratedPosition:I,toLineColumnOffset:ee,clearCache:te};function y(oe){return _h(oe,s,r)}function T(oe,de){const ue=y(oe),Ne=m.get(ue);if(Ne)return Ne;let Be;if(t.getDocumentPositionMapper)Be=t.getDocumentPositionMapper(oe,de);else if(t.readFile){const Ve=V(oe);Be=Ve&&Z8e({getSourceFileLike:V,getCanonicalFileName:r,log:pt=>t.log(pt)},oe,Xo(Ve.text,q1(Ve)),pt=>!t.fileExists||t.fileExists(pt)?t.readFile(pt):void 0)}return m.set(ue,Be||H2e),Be||H2e}function D(oe){if(!iT(oe.fileName)||!W(oe.fileName))return;const ue=T(oe.fileName).getSourcePosition(oe);return!ue||ue===oe?void 0:D(ue)||ue}function I(oe){if(iT(oe.fileName))return;const de=W(oe.fileName);if(!de)return;const ue=t.getProgram();if(ue.isSourceOfProjectReferenceRedirect(de.fileName))return;const Ne=ue.getCompilerOptions(),Be=Kg(Ne),Ve=Be?wg(Be)+".d.ts":Oie(oe.fileName,ue.getCompilerOptions(),s,ue.getCommonSourceDirectory(),r);if(Ve===void 0)return;const pt=T(Ve,oe.fileName).getGeneratedPosition(oe);return pt===oe?void 0:pt}function W(oe){const de=t.getProgram();if(!de)return;const ue=y(oe),Ne=de.getSourceFileByPath(ue);return Ne&&Ne.resolvedPath===ue?Ne:void 0}function O(oe){const de=y(oe),ue=l.get(de);if(ue!==void 0)return ue||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(de)){l.set(de,!1);return}const Ne=t.readFile(de),Be=Ne?rlt(Ne):!1;return l.set(de,Be),Be||void 0}function V(oe){return t.getSourceFileLike?t.getSourceFileLike(oe):W(oe)||O(oe)}function ee(oe,de){return V(oe).getLineAndCharacterOfPosition(de)}function te(){l.clear(),m.clear()}}function Z8e(t,r,s,l){let m=IHe(s);if(m){const D=e3e.exec(m);if(D){if(D[1]){const I=D[1];return _$e(t,SSe(m0,I),r)}m=void 0}}const y=[];m&&y.push(m),y.push(r+".map");const T=m&&Su(m,qc(r));for(const D of y){const I=Su(D,qc(r)),W=l(I,T);if(As(W))return _$e(t,W,I);if(W!==void 0)return W||void 0}}function _$e(t,r,s){const l=_me(r);if(!(!l||!l.sources||!l.file||!l.mappings)&&!(l.sourcesContent&&l.sourcesContent.some(As)))return XLe(t,l,s)}function rlt(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition(s){return Sb(q1(this),s)}}}var e3e,aCe=G({"src/services/sourcemaps.ts"(){El(),e3e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function tee(t,r,s){r.getSemanticDiagnostics(t,s);const l=[],m=r.getTypeChecker();!(t.impliedNodeFormat===1||ws(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(Z$(r)||nce(r.getCompilerOptions()))&&ilt(t)&&l.push(kc(alt(t.commonJsModuleIndicator),w.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const T=v1(t);if(uCe.clear(),D(t),VN(r.getCompilerOptions()))for(const I of t.imports){const W=b2(I),O=olt(W);if(!O)continue;const V=XU(t,I.text,kA(t,I)),ee=V&&r.getSourceFile(V.resolvedFileName);ee&&ee.externalModuleIndicator&&ee.externalModuleIndicator!==!0&&Ly(ee.externalModuleIndicator)&&ee.externalModuleIndicator.isExportEquals&&l.push(kc(O,w.Import_may_be_converted_to_a_default_import))}return Oi(l,t.bindSuggestionDiagnostics),Oi(l,r.getSuggestionDiagnostics(t,s)),l.sort((I,W)=>I.start-W.start);function D(I){if(T)slt(I,m)&&l.push(kc(ff(I.parent)?I.parent.name:I,w.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Dh(I)&&I.parent===t&&I.declarationList.flags&2&&I.declarationList.declarations.length===1){const O=I.declarationList.declarations[0].initializer;O&&eT(O,!0)&&l.push(kc(O,w.require_call_may_be_converted_to_an_import))}const W=If.getJSDocTypedefNodes(I);for(const O of W)l.push(kc(O,w.JSDoc_typedef_may_be_converted_to_TypeScript_type));If.parameterShouldGetTypeFromJSDoc(I)&&l.push(kc(I.name||I,w.JSDoc_types_may_be_moved_to_TypeScript_types))}kce(I)&&n3e(I,m,l),I.forEachChild(D)}}function ilt(t){return t.statements.some(r=>{switch(r.kind){case 243:return r.declarationList.declarations.some(s=>!!s.initializer&&eT(t3e(s.initializer),!0));case 244:{const{expression:s}=r;if(!ys(s))return eT(s,!0);const l=Qy(s);return l===1||l===2}default:return!1}})}function t3e(t){return sa(t)?t3e(t.expression):t}function olt(t){switch(t.kind){case 272:const{importClause:r,moduleSpecifier:s}=t;return r&&!r.name&&r.namedBindings&&r.namedBindings.kind===274&&Wp(s)?r.namedBindings.name:void 0;case 271:return t.name;default:return}}function n3e(t,r,s){sCe(t,r)&&!uCe.has(g$e(t))&&s.push(kc(!t.name&&ff(t.parent)&&An(t.parent.name)?t.parent.name:t,w.This_may_be_converted_to_an_async_function))}function sCe(t,r){return!FN(t)&&t.body&&E_(t.body)&&d$e(t.body,r)&&cCe(t,r)}function cCe(t,r){const s=r.getSignatureFromDeclaration(t),l=s?r.getReturnTypeOfSignature(s):void 0;return!!l&&!!r.getPromisedTypeOfPromise(l)}function alt(t){return ys(t)?t.left:t}function d$e(t,r){return!!HM(t,s=>lCe(s,r))}function lCe(t,r){return Bx(t)&&!!t.expression&&Ice(t.expression,r)}function Ice(t,r){if(!p$e(t)||!r3e(t)||!t.arguments.every(l=>m$e(l,r)))return!1;let s=t.expression.expression;for(;p$e(s)||sa(s);)if(el(s)){if(!r3e(s)||!s.arguments.every(l=>m$e(l,r)))return!1;s=s.expression.expression}else s=s.expression;return!0}function p$e(t){return el(t)&&(vZ(t,"then")||vZ(t,"catch")||vZ(t,"finally"))}function r3e(t){const r=t.expression.name.text,s=r==="then"?2:r==="catch"||r==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthl.kind===106||An(l)&&l.text==="undefined")}function m$e(t,r){switch(t.kind){case 262:case 218:if(L0(t)&1)return!1;case 219:uCe.set(g$e(t),!0);case 106:return!0;case 80:case 211:{const l=r.getSymbolAtLocation(t);return l?r.isUndefinedSymbol(l)||gt(dg(l,r).declarations,m=>S_(m)||NN(m)&&!!m.initializer&&S_(m.initializer)):!1}default:return!1}}function g$e(t){return`${t.pos.toString()}:${t.end.toString()}`}function slt(t,r){var s,l,m,y;if(Dm(t)){if(ff(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const T=r.getSymbolOfExpando(t,!1);return!!(T&&((l=T.exports)!=null&&l.size||(m=T.members)!=null&&m.size))}return b0(t)?!!((y=t.symbol.members)!=null&&y.size):!1}function kce(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var uCe,clt=G({"src/services/suggestionDiagnostics.ts"(){El(),uCe=new Map}});function Pce(t,r){const s=[],l=r.compilerOptions?_Ce(r.compilerOptions,s):{},m=sle();for(const ee in m)ef(m,ee)&&l[ee]===void 0&&(l[ee]=m[ee]);for(const ee of rae)l.verbatimModuleSyntax&&i3e.has(ee.name)||(l[ee.name]=ee.transpileOptionValue);l.suppressOutputPathCheck=!0,l.allowNonTsExtensions=!0;const y=JE(l),T={getSourceFile:ee=>ee===Fd(D)?I:void 0,writeFile:(ee,te)=>{Pg(ee,".map")?(ce.assertEqual(O,void 0,"Unexpected multiple source map outputs, file:",ee),O=te):(ce.assertEqual(W,void 0,"Unexpected multiple outputs, file:",ee),W=te)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:ee=>ee,getCurrentDirectory:()=>"",getNewLine:()=>y,fileExists:ee=>ee===D,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},D=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),I=Ape(D,t,{languageVersion:iu(l),impliedNodeFormat:ew(_h(D,"",T.getCanonicalFileName),void 0,T,l),setExternalModuleIndicator:q9(l)});r.moduleName&&(I.moduleName=r.moduleName),r.renamedDependencies&&(I.renamedDependencies=new Map(Object.entries(r.renamedDependencies)));let W,O;const V=m4([D],l,T);return r.reportDiagnostics&&(Oi(s,V.getSyntacticDiagnostics(I)),Oi(s,V.getOptionsDiagnostics())),V.emit(void 0,void 0,void 0,void 0,r.transformers),W===void 0?ce.fail("Output generation failed"):{outputText:W,diagnostics:s,sourceMapText:O}}function fCe(t,r,s,l,m){const y=Pce(t,{compilerOptions:r,fileName:s,reportDiagnostics:!!l,moduleName:m});return Oi(l,y.diagnostics),y.outputText}function _Ce(t,r){dCe=dCe||gi(fC,s=>typeof s.type=="object"&&!wT(s.type,l=>typeof l!="number")),t=DAe(t);for(const s of dCe){if(!ef(t,s.name))continue;const l=t[s.name];As(l)?t[s.name]=ZEe(s,l,r):wT(s.type,m=>m===l)||r.push(Q6e(s))}return t}var i3e,dCe,h$e=G({"src/services/transpile.ts"(){El(),i3e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function y$e(t,r,s,l,m,y){const T=r$e(l);if(!T)return Zn;const D=[];for(const I of t)s.throwIfCancellationRequested(),!(y&&I.isDeclarationFile)&&I.getNamedDeclarations().forEach((W,O)=>{pCe(T,O,W,r,I.fileName,D)});return D.sort(v$e),(m===void 0?D:D.slice(0,m)).map(a3e)}function pCe(t,r,s,l,m,y){const T=t.getMatchForLastSegmentOfPattern(r);if(T){for(const D of s)if(mCe(D,l))if(t.patternContainsDots){const I=t.getFullMatch(gCe(D),r);I&&y.push({name:r,fileName:m,matchKind:I.kind,isCaseSensitive:I.isCaseSensitive,declaration:D})}else y.push({name:r,fileName:m,matchKind:T.kind,isCaseSensitive:T.isCaseSensitive,declaration:D})}}function mCe(t,r){switch(t.kind){case 273:case 276:case 271:const s=r.getSymbolAtLocation(t.name),l=r.getAliasedSymbol(s);return s.escapedName!==l.escapedName;default:return!0}}function llt(t,r){const s=o_(t);return!!s&&(o3e(s,r)||s.kind===167&&She(s.expression,r))}function She(t,r){return o3e(t,r)||sa(t)&&(r.push(t.name.text),!0)&&She(t.expression,r)}function o3e(t,r){return yA(t)&&(r.push(aC(t)),!0)}function gCe(t){const r=[],s=o_(t);if(s&&s.kind===167&&!She(s.expression,r))return Zn;r.shift();let l=j3(t);for(;l;){if(!llt(l,r))return Zn;l=j3(l)}return r.reverse()}function v$e(t,r){return pf(t.matchKind,r.matchKind)||q5(t.name,r.name)}function a3e(t){const r=t.declaration,s=j3(r),l=s&&o_(s);return{name:t.name,kind:g4(r),kindModifiers:$$(r),matchKind:Dce[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:gE(r),containerName:l?l.text:"",containerKind:l?g4(s):""}}var ult=G({"src/services/navigateTo.ts"(){El()}}),s3e={};Oe(s3e,{getNavigateToItems:()=>y$e});var c3e=G({"src/services/_namespaces/ts.NavigateTo.ts"(){ult()}});function b$e(t,r){wce=r,iee=t;try{return Vn(flt(x$e(t)),_lt)}finally{S$e()}}function T$e(t,r){wce=r,iee=t;try{return m3e(x$e(t))}finally{S$e()}}function S$e(){iee=void 0,wce=void 0,Rce=[],rw=void 0,Dhe=[]}function nee(t){return ree(t.getText(iee))}function Ehe(t){return t.node.kind}function E$e(t,r){t.children?t.children.push(r):t.children=[r]}function x$e(t){ce.assert(!Rce.length);const r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};rw=r;for(const s of t.statements)lB(s);return T4(),ce.assert(!rw&&!Rce.length),r}function wF(t,r){E$e(rw,l3e(t,r))}function l3e(t,r){return{node:t,name:r||(dl(t)||Nr(t)?o_(t):void 0),additionalNodes:void 0,parent:rw,children:void 0,indent:rw.indent+1}}function hCe(t){zj||(zj=new Map),zj.set(t,!0)}function u3e(t){for(let r=0;r0;l--){const m=s[l];q3(t,m)}return[s.length-1,s[0]]}function q3(t,r){const s=l3e(t,r);E$e(rw,s),Rce.push(rw),xCe.push(zj),zj=void 0,rw=s}function T4(){rw.children&&(L6(rw.children,rw),bCe(rw.children)),rw=Rce.pop(),zj=xCe.pop()}function nw(t,r,s){q3(t,s),lB(r),T4()}function xhe(t){t.initializer&&I$e(t.initializer)?(q3(t),B_(t.initializer,lB),T4()):nw(t,t.initializer)}function yCe(t){return!nI(t)||t.kind!==226&&sa(t.name.expression)&&An(t.name.expression.expression)&&ec(t.name.expression.expression)==="Symbol"}function lB(t){if(wce.throwIfCancellationRequested(),!(!t||VC(t)))switch(t.kind){case 176:const r=t;nw(r,r.body);for(const T of r.parameters)Eb(T,r)&&wF(T);break;case 174:case 177:case 178:case 173:yCe(t)&&nw(t,t.body);break;case 172:yCe(t)&&xhe(t);break;case 171:yCe(t)&&wF(t);break;case 273:const s=t;s.name&&wF(s.name);const{namedBindings:l}=s;if(l)if(l.kind===274)wF(l);else for(const T of l.elements)wF(T);break;case 304:nw(t,t.name);break;case 305:const{expression:m}=t;An(m)?wF(t,m):wF(t);break;case 208:case 303:case 260:{const T=t;ld(T.name)?lB(T.name):xhe(T);break}case 262:const y=t.name;y&&An(y)&&hCe(y.text),nw(t,t.body);break;case 219:case 218:nw(t,t.body);break;case 266:q3(t);for(const T of t.members)h3e(T)||wF(T);T4();break;case 263:case 231:case 264:q3(t);for(const T of t.members)lB(T);T4();break;case 267:nw(t,C$e(t).body);break;case 277:{const T=t.expression,D=Wd(T)||el(T)?T:ph(T)||Dm(T)?T.body:void 0;D?(q3(t),lB(D),T4()):wF(t);break}case 281:case 271:case 181:case 179:case 180:case 265:wF(t);break;case 213:case 226:{const T=Qy(t);switch(T){case 1:case 2:nw(t,t.right);return;case 6:case 3:{const D=t,I=D.left,W=T===3?I.expression:I;let O=0,V;An(W.expression)?(hCe(W.expression.text),V=W.expression):[O,V]=f3e(D,W.expression),T===6?Wd(D.right)&&D.right.properties.length>0&&(q3(D,V),B_(D.right,lB),T4()):Dm(D.right)||ph(D.right)?nw(t,D.right,V):(q3(D,V),nw(t,D.right,I.name),T4()),u3e(O);return}case 7:case 9:{const D=t,I=T===7?D.arguments[0]:D.arguments[0].expression,W=D.arguments[1],[O,V]=f3e(t,I);q3(t,V),q3(t,vr(be.createIdentifier(W.text),W)),lB(t.arguments[2]),T4(),T4(),u3e(O);return}case 5:{const D=t,I=D.left,W=I.expression;if(An(W)&&XC(I)!=="prototype"&&zj&&zj.has(W.text)){Dm(D.right)||ph(D.right)?nw(t,D.right,W):XM(I)&&(q3(D,W),nw(D.left,D.right,dY(I)),T4());return}break}case 4:case 0:case 8:break;default:ce.assertNever(T)}}default:g1(t)&&Ot(t.jsDoc,T=>{Ot(T.tags,D=>{T2(D)&&wF(D)})}),B_(t,lB)}}function L6(t,r){const s=new Map;vd(t,(l,m)=>{const y=l.name||o_(l.node),T=y&&nee(y);if(!T)return!0;const D=s.get(T);if(!D)return s.set(T,l),!0;if(D instanceof Array){for(const I of D)if(d3e(I,l,m,r))return!1;return D.push(l),!0}else{const I=D;return d3e(I,l,m,r)?!1:(s.set(T,[I,l]),!0)}})}function _3e(t,r,s,l){function m(D){return Dm(D)||b0(D)||ff(D)}const y=ys(r.node)||el(r.node)?Qy(r.node):0,T=ys(t.node)||el(t.node)?Qy(t.node):0;if(oee[y]&&oee[T]||m(t.node)&&oee[y]||m(r.node)&&oee[T]||Kc(t.node)&&vCe(t.node)&&oee[y]||Kc(r.node)&&oee[T]||Kc(t.node)&&vCe(t.node)&&m(r.node)||Kc(r.node)&&m(t.node)&&vCe(t.node)){let D=t.additionalNodes&&Yf(t.additionalNodes)||t.node;if(!Kc(t.node)&&!Kc(r.node)||m(t.node)||m(r.node)){const W=m(t.node)?t.node:m(r.node)?r.node:void 0;if(W!==void 0){const O=vr(be.createConstructorDeclaration(void 0,[],void 0),W),V=l3e(O);V.indent=t.indent+1,V.children=t.node===W?t.children:r.children,t.children=t.node===W?Hi([V],r.children||[r]):Hi(t.children||[{...t}],[V])}else(t.children||r.children)&&(t.children=Hi(t.children||[{...t}],r.children||[r]),t.children&&(L6(t.children,t),bCe(t.children)));D=t.node=vr(be.createClassDeclaration(void 0,t.name||be.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=Hi(t.children,r.children),t.children&&L6(t.children,t);const I=r.node;return l.children[s-1].node.end===D.end?vr(D,{pos:D.pos,end:I.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(vr(be.createClassDeclaration(void 0,t.name||be.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return y!==0}function d3e(t,r,s,l){return _3e(t,r,s,l)?!0:A$e(t.node,r.node,l)?(X3(t,r),!0):!1}function A$e(t,r,s){if(t.kind!==r.kind||t.parent!==r.parent&&!(K3(t,s)&&K3(r,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return e_(t)===e_(r);case 267:return S4(t,r)&&TCe(t)===TCe(r);default:return!0}}function vCe(t){return!!(t.flags&16)}function K3(t,r){const s=z0(t.parent)?t.parent.parent:t.parent;return s===r.node||ni(r.additionalNodes,s)}function S4(t,r){return!t.body||!r.body?t.body===r.body:t.body.kind===r.body.kind&&(t.body.kind!==267||S4(t.body,r.body))}function X3(t,r){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&t.additionalNodes.push(...r.additionalNodes),t.children=Hi(t.children,r.children),t.children&&(L6(t.children,t),bCe(t.children))}function bCe(t){t.sort(p3e)}function p3e(t,r){return q5(uB(t.node),uB(r.node))||pf(Ehe(t),Ehe(r))}function uB(t){if(t.kind===267)return g3e(t);const r=o_(t);if(r&&_y(r)){const s=WN(r);return s&&lf(s)}switch(t.kind){case 218:case 219:case 231:return SCe(t);default:return}}function Nce(t,r){if(t.kind===267)return ree(g3e(t));if(r){const s=An(r)?r.text:Ed(r)?`[${nee(r.argumentExpression)}]`:nee(r);if(s.length>0)return ree(s)}switch(t.kind){case 312:const s=t;return Wv(s)?`"${M7(Iy(wg(Fd(s.fileName))))}"`:"";case 277:return Ly(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return n6(t)&1024?"default":SCe(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function flt(t){const r=[];function s(m){if(l(m)&&(r.push(m),m.children))for(const y of m.children)s(y)}return s(t),r;function l(m){if(m.children)return!0;switch(Ehe(m)){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 y(m);default:return!1}function y(T){if(!T.node.body)return!1;switch(Ehe(T.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function m3e(t){return{text:Nce(t.node,t.name),kind:g4(t.node),kindModifiers:v3e(t.node),spans:Ahe(t),nameSpan:t.name&&y3e(t.name),childItems:Vn(t.children,m3e)}}function _lt(t){return{text:Nce(t.node,t.name),kind:g4(t.node),kindModifiers:v3e(t.node),spans:Ahe(t),childItems:Vn(t.children,r)||Dhe,indent:t.indent,bolded:!1,grayed:!1};function r(s){return{text:Nce(s.node,s.name),kind:g4(s.node),kindModifiers:$$(s.node),spans:Ahe(s),childItems:Dhe,indent:0,bolded:!1,grayed:!1}}}function Ahe(t){const r=[y3e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)r.push(y3e(s));return r}function g3e(t){return Ov(t)?Yv(t.name):TCe(t)}function TCe(t){const r=[aC(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,r.push(aC(t.name));return r.join(".")}function C$e(t){return t.body&&xp(t.body)?C$e(t.body):t}function h3e(t){return!t.name||t.name.kind===167}function y3e(t){return t.kind===312?FR(t):gE(t,iee)}function v3e(t){return t.parent&&t.parent.kind===260&&(t=t.parent),$$(t)}function SCe(t){const{parent:r}=t;if(t.name&&KU(t.name)>0)return ree(Ud(t.name));if(ff(r))return ree(Ud(r.name));if(ys(r)&&r.operatorToken.kind===64)return nee(r.left).replace(ECe,"");if(Fm(r))return nee(r.name);if(n6(t)&1024)return"default";if(Jl(t))return"";if(el(r)){let s=D$e(r.expression);if(s!==void 0){if(s=ree(s),s.length>Che)return`${s} callback`;const l=ree(Qo(r.arguments,m=>sp(m)?m.getText(iee):void 0).join(", "));return`${s}(${l}) callback`}}return""}function D$e(t){if(An(t))return t.text;if(sa(t)){const r=D$e(t.expression),s=t.name.text;return r===void 0?s:`${r}.${s}`}else return}function I$e(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function ree(t){return t=t.length>Che?t.substring(0,Che)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var ECe,Che,wce,iee,Rce,rw,xCe,zj,Dhe,oee,aee=G({"src/services/navigationBar.ts"(){El(),ECe=/\s+/g,Che=150,Rce=[],xCe=[],Dhe=[],oee={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),b3e={};Oe(b3e,{getNavigationBarItems:()=>b$e,getNavigationTree:()=>T$e});var Ihe=G({"src/services/_namespaces/ts.NavigationBar.ts"(){aee()}});function SI(t,r){wP.set(t,r)}function Mce(t,r){return oc(Ky(wP.values(),s=>{var l;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((l=s.kinds)!=null&&l.some(m=>Y3(m,t.kind)))?void 0:s.getAvailableActions(t,r)}))}function Lce(t,r,s,l){const m=wP.get(r);return m&&m.getEditsForAction(t,s,l)}var wP,ACe=G({"src/services/refactorProvider.ts"(){El(),MP(),wP=new Map}});function Gj(t,r=!0){const{file:s,program:l}=t,m=aB(t),y=bf(s,m.start),T=y.parent&&n6(y.parent)&1&&r?y.parent:Nk(y,s,m);if(!T||!tl(T.parent)&&!(z0(T.parent)&&Ov(T.parent.parent)))return{error:fs(w.Could_not_find_export_statement)};const D=l.getTypeChecker(),I=plt(T.parent,D),W=n6(T)||(Ly(T)&&!T.isExportEquals?1025:0),O=!!(W&1024);if(!(W&1)||!O&&I.exports.has("default"))return{error:fs(w.This_file_already_has_a_default_export)};const V=ee=>An(ee)&&D.getSymbolAtLocation(ee)?void 0:{error:fs(w.Can_only_convert_named_export)};switch(T.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const ee=T;return ee.name?V(ee.name)||{exportNode:ee,exportName:ee.name,wasDefault:O,exportingModuleSymbol:I}:void 0}case 243:{const ee=T;if(!(ee.declarationList.flags&2)||ee.declarationList.declarations.length!==1)return;const te=Dl(ee.declarationList.declarations);return te.initializer?(ce.assert(!O,"Can't have a default flag here"),V(te.name)||{exportNode:ee,exportName:te.name,wasDefault:O,exportingModuleSymbol:I}):void 0}case 277:{const ee=T;return ee.isExportEquals?void 0:V(ee.expression)||{exportNode:ee,exportName:ee.expression,wasDefault:O,exportingModuleSymbol:I}}default:return}}function CCe(t,r,s,l,m){see(t,s,l,r.getTypeChecker()),dlt(r,s,l,m)}function see(t,{wasDefault:r,exportNode:s,exportName:l},m,y){if(r)if(Ly(s)&&!s.isExportEquals){const T=s.expression,D=P$e(T.text,T.text);m.replaceNode(t,s,be.createExportDeclaration(void 0,!1,be.createNamedExports([D])))}else m.delete(t,ce.checkDefined(YW(s,90),"Should find a default keyword in modifier list"));else{const T=ce.checkDefined(YW(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:m.insertNodeAfter(t,T,be.createToken(90));break;case 243:const D=Dl(s.declarationList.declarations);if(!Wf.Core.isSymbolReferencedInFile(l,y,t)&&!D.type){m.replaceNode(t,s,be.createExportDefault(ce.checkDefined(D.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:m.deleteModifier(t,T),m.insertNodeAfter(t,s,be.createExportDefault(be.createIdentifier(l.text)));break;default:ce.fail(`Unexpected exportNode kind ${s.kind}`)}}}function dlt(t,{wasDefault:r,exportName:s,exportingModuleSymbol:l},m,y){const T=t.getTypeChecker(),D=ce.checkDefined(T.getSymbolAtLocation(s),"Export name should resolve to a symbol");Wf.Core.eachExportReference(t.getSourceFiles(),T,y,D,l,s.text,r,I=>{if(s===I)return;const W=I.getSourceFile();r?T3e(W,I,m,s.text):k$e(W,I,m)})}function T3e(t,r,s,l){const{parent:m}=r;switch(m.kind){case 211:s.replaceNode(t,r,be.createIdentifier(l));break;case 276:case 281:{const T=m;s.replaceNode(t,T,wk(l,T.name.text));break}case 273:{const T=m;ce.assert(T.name===r,"Import clause name should match provided ref");const D=wk(l,r.text),{namedBindings:I}=T;if(!I)s.replaceNode(t,r,be.createNamedImports([D]));else if(I.kind===274){s.deleteRange(t,{pos:r.getStart(t),end:I.getStart(t)});const W=Wp(T.parent.moduleSpecifier)?tq(T.parent.moduleSpecifier,t):1,O=Pk(void 0,[wk(l,r.text)],T.parent.moduleSpecifier,W);s.insertNodeAfter(t,T.parent,O)}else s.delete(t,r),s.insertNodeAtEndOfList(t,I.elements,D);break}case 205:const y=m;s.replaceNode(t,m,be.createImportTypeNode(y.argument,y.assertions,be.createIdentifier(l),y.typeArguments,y.isTypeOf));break;default:ce.failBadSyntaxKind(m)}}function k$e(t,r,s){const l=r.parent;switch(l.kind){case 211:s.replaceNode(t,r,be.createIdentifier("default"));break;case 276:{const m=be.createIdentifier(l.name.text);l.parent.elements.length===1?s.replaceNode(t,l.parent,m):(s.delete(t,l),s.insertNodeBefore(t,l.parent,m));break}case 281:{s.replaceNode(t,l,P$e("default",l.name.text));break}default:ce.assertNever(l,`Unexpected parent kind ${l.kind}`)}}function wk(t,r){return be.createImportSpecifier(!1,t===r?void 0:be.createIdentifier(t),be.createIdentifier(r))}function P$e(t,r){return be.createExportSpecifier(!1,t===r?void 0:be.createIdentifier(t),be.createIdentifier(r))}function plt(t,r){if(tl(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&BL(s.valueDeclaration)?r.getMergedSymbol(s):s}var cee,Oce,Fce,mlt=G({"src/services/refactors/convertExport.ts"(){El(),MP(),cee="Convert export",Oce={name:"Convert default export to named export",description:fs(w.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Fce={name:"Convert named export to default export",description:fs(w.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},SI(cee,{kinds:[Oce.kind,Fce.kind],getAvailableActions:function(r){const s=Gj(r,r.triggerReason==="invoked");if(!s)return Zn;if(!I2(s)){const l=s.wasDefault?Oce:Fce;return[{name:cee,description:l.description,actions:[l]}]}return r.preferences.provideRefactorNotApplicableReason?[{name:cee,description:fs(w.Convert_default_export_to_named_export),actions:[{...Oce,notApplicableReason:s.error},{...Fce,notApplicableReason:s.error}]}]:Zn},getEditsForAction:function(r,s){ce.assert(s===Oce.name||s===Fce.name,"Unexpected action name");const l=Gj(r);return ce.assert(l&&!I2(l),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(r,y=>CCe(r.file,r.program,l,y,r.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function N$e(t,r=!0){const{file:s}=t,l=aB(t),m=bf(s,l.start),y=r?Kr(m,Fv):Nk(m,s,l);if(!y||!Fv(y))return{error:"Selection is not an import declaration."};const T=l.start+l.length,D=Cj(y,y.parent,s);if(D&&T>D.getStart())return;const{importClause:I}=y;return I?I.namedBindings?I.namedBindings.kind===274?{convertTo:0,import:I.namedBindings}:w$e(t.program,I)?{convertTo:1,import:I.namedBindings}:{convertTo:2,import:I.namedBindings}:{error:fs(w.Could_not_find_namespace_import_or_named_imports)}:{error:fs(w.Could_not_find_import_clause)}}function w$e(t,r){return VN(t.getCompilerOptions())&&ICe(r.parent.moduleSpecifier,t.getTypeChecker())}function glt(t,r,s,l){const m=r.getTypeChecker();l.convertTo===0?hlt(t,m,s,l.import,VN(r.getCompilerOptions())):M$e(t,r,s,l.import,l.convertTo===1)}function hlt(t,r,s,l,m){let y=!1;const T=[],D=new Map;Wf.Core.eachSymbolReferenceInFile(l.name,r,t,V=>{if(!Hz(V.parent))y=!0;else{const ee=DCe(V.parent).text;r.resolveName(ee,V,67108863,!0)&&D.set(ee,!0),ce.assert(R$e(V.parent)===V,"Parent expression should match id"),T.push(V.parent)}});const I=new Map;for(const V of T){const ee=DCe(V).text;let te=I.get(ee);te===void 0&&I.set(ee,te=D.has(ee)?eB(ee,t):ee),s.replaceNode(t,V,be.createIdentifier(te))}const W=[];I.forEach((V,ee)=>{W.push(be.createImportSpecifier(!1,V===ee?void 0:be.createIdentifier(ee),be.createIdentifier(V)))});const O=l.parent.parent;y&&!m?s.insertNodeAfter(t,O,lee(O,void 0,W)):s.replaceNode(t,O,lee(O,y?be.createIdentifier(l.name.text):void 0,W))}function DCe(t){return sa(t)?t.name:t.right}function R$e(t){return sa(t)?t.expression:t.left}function M$e(t,r,s,l,m=w$e(r,l.parent)){const y=r.getTypeChecker(),T=l.parent.parent,{moduleSpecifier:D}=T,I=new Set;l.elements.forEach(oe=>{const de=y.getSymbolAtLocation(oe.name);de&&I.add(de)});const W=D&&Wp(D)?If.moduleSpecifierToValidIdentifier(D.text,99):"module";function O(oe){return!!Wf.Core.eachSymbolReferenceInFile(oe.name,y,t,de=>{const ue=y.resolveName(W,de,67108863,!0);return ue?I.has(ue)?Oy(de.parent):!0:!1})}const ee=l.elements.some(O)?eB(W,t):W,te=new Set;for(const oe of l.elements){const de=(oe.propertyName||oe.name).text;Wf.Core.eachSymbolReferenceInFile(oe.name,y,t,ue=>{const Ne=be.createPropertyAccessExpression(be.createIdentifier(ee),de);BT(ue.parent)?s.replaceNode(t,ue.parent,be.createPropertyAssignment(ue.text,Ne)):Oy(ue.parent)?te.add(oe):s.replaceNode(t,ue,Ne)})}if(s.replaceNode(t,l,m?be.createIdentifier(ee):be.createNamespaceImport(be.createIdentifier(ee))),te.size){const oe=oc(te.values(),de=>be.createImportSpecifier(de.isTypeOnly,de.propertyName&&be.createIdentifier(de.propertyName.text),be.createIdentifier(de.name.text)));s.insertNodeAfter(t,l.parent.parent,lee(T,void 0,oe))}}function ICe(t,r){const s=r.resolveExternalModuleName(t);if(!s)return!1;const l=r.resolveExternalModuleSymbol(s);return s!==l}function lee(t,r,s){return be.createImportDeclaration(void 0,be.createImportClause(!1,r,s&&s.length?be.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var pq,khe,L$e=G({"src/services/refactors/convertImport.ts"(){El(),MP(),pq="Convert import",khe={0:{name:"Convert namespace import to named imports",description:fs(w.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:fs(w.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:fs(w.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},SI(pq,{kinds:ik(khe).map(t=>t.kind),getAvailableActions:function(r){const s=N$e(r,r.triggerReason==="invoked");if(!s)return Zn;if(!I2(s)){const l=khe[s.convertTo];return[{name:pq,description:l.description,actions:[l]}]}return r.preferences.provideRefactorNotApplicableReason?ik(khe).map(l=>({name:pq,description:l.description,actions:[{...l,notApplicableReason:s.error}]})):Zn},getEditsForAction:function(r,s){ce.assert(gt(ik(khe),y=>y.name===s),"Unexpected action name");const l=N$e(r);return ce.assert(l&&!I2(l),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(r,y=>glt(r.file,r.program,y,l)),renameFilename:void 0,renameLocation:void 0}}})}});function S3e(t,r=!0){const{file:s,startPosition:l}=t,m=v1(s),y=bf(s,l),T=PZ(aB(t)),D=T.pos===T.end&&r,I=Kr(y,te=>te.parent&&Uu(te)&&!RF(T,te.parent,s)&&(D||h4(y,s,T.pos,T.end)));if(!I||!Uu(I))return{error:fs(w.Selection_is_not_a_valid_type_node)};const W=t.program.getTypeChecker(),O=x3e(I,m);if(O===void 0)return{error:fs(w.No_type_could_be_extracted_from_this_type_node)};const V=O$e(W,I,O,s);if(!V)return{error:fs(w.No_type_could_be_extracted_from_this_type_node)};const ee=E3e(W,I);return{isJS:m,selection:I,enclosingNode:O,typeParameters:V,typeElements:ee}}function E3e(t,r){if(r)if(MJ(r)){const s=[],l=new Map;for(const m of r.types){const y=E3e(t,m);if(!y||!y.every(T=>T.name&&y0(l,Dj(T.name))))return;Oi(s,y)}return s}else{if(xR(r))return E3e(t,r.type);if(e0(r))return r.members}}function RF(t,r,s){return AZ(t,ep(s.text,r.pos),r.end)}function O$e(t,r,s,l){const m=[];return y(r)?void 0:m;function y(T){if(x2(T)){if(An(T.typeName)){const D=T.typeName,I=t.resolveName(D.text,D,262144,!0);for(const W of(I==null?void 0:I.declarations)||Zn)if(Hh(W)&&W.getSourceFile()===l){if(W.name.escapedText===D.escapedText&&RF(W,r,l))return!0;if(RF(s,W,l)&&!RF(r,W,l)){Dy(m,W);break}}}}else if(fI(T)){const D=Kr(T,I=>hW(I)&&RF(I.extendsType,T,l));if(!D||!RF(r,D,l))return!0}else if(Y7(T)||Q7(T)){const D=Kr(T.parent,S_);if(D&&D.type&&RF(D.type,T,l)&&!RF(r,D,l))return!0}else if(uE(T)){if(An(T.exprName)){const D=t.resolveName(T.exprName.text,T.exprName,111551,!1);if(D!=null&&D.valueDeclaration&&RF(s,D.valueDeclaration,l)&&!RF(r,D.valueDeclaration,l))return!0}else if(Zy(T.exprName.left)&&!RF(r,T.parent,l))return!0}return l&&m6(T)&&Ah(l,T.pos).line===Ah(l,T.end).line&&Sa(T,1),B_(T,y)}}function ylt(t,r,s,l){const{enclosingNode:m,selection:y,typeParameters:T}=l,D=be.createTypeAliasDeclaration(void 0,s,T.map(I=>be.updateTypeParameterDeclaration(I,I.modifiers,I.name,I.constraint,void 0)),y);t.insertNodeBefore(r,m,tpe(D),!0),t.replaceNode(r,y,be.createTypeReferenceNode(s,T.map(I=>be.createTypeReferenceNode(I.name,void 0))),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.ExcludeWhitespace})}function F$e(t,r,s,l){var m;const{enclosingNode:y,selection:T,typeParameters:D,typeElements:I}=l,W=be.createInterfaceDeclaration(void 0,s,D,void 0,I);vr(W,(m=I[0])==null?void 0:m.parent),t.insertNodeBefore(r,y,tpe(W),!0),t.replaceNode(r,T,be.createTypeReferenceNode(s,D.map(O=>be.createTypeReferenceNode(O.name,void 0))),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.ExcludeWhitespace})}function vlt(t,r,s,l,m){var y;const{enclosingNode:T,selection:D,typeParameters:I}=m;Sa(D,7168);const W=be.createJSDocTypedefTag(be.createIdentifier("typedef"),be.createJSDocTypeExpression(D),be.createIdentifier(l)),O=[];Ot(I,ee=>{const te=AN(ee),oe=be.createTypeParameterDeclaration(void 0,ee.name),de=be.createJSDocTemplateTag(be.createIdentifier("template"),te&&uc(te,pI),[oe]);O.push(de)});const V=be.createJSDocComment(void 0,be.createNodeArray(Hi(O,[W])));if(Gx(T)){const ee=T.getStart(s),te=NP(r.host,(y=r.formatContext)==null?void 0:y.options);t.insertNodeAt(s,T.getStart(s),V,{suffix:te+te+s.text.slice(Rj(s.text,ee-1),ee)})}else t.insertNodeBefore(s,T,V,!0);t.replaceNode(s,D,be.createTypeReferenceNode(l,I.map(ee=>be.createTypeReferenceNode(ee.name,void 0))))}function x3e(t,r){return Kr(t,uf)||(r?Kr(t,Gx):void 0)}var uee,jj,Phe,Wce,kCe=G({"src/services/refactors/extractType.ts"(){El(),MP(),uee="Extract type",jj={name:"Extract to type alias",description:fs(w.Extract_to_type_alias),kind:"refactor.extract.type"},Phe={name:"Extract to interface",description:fs(w.Extract_to_interface),kind:"refactor.extract.interface"},Wce={name:"Extract to typedef",description:fs(w.Extract_to_typedef),kind:"refactor.extract.typedef"},SI(uee,{kinds:[jj.kind,Phe.kind,Wce.kind],getAvailableActions:function(r){const s=S3e(r,r.triggerReason==="invoked");return s?I2(s)?r.preferences.provideRefactorNotApplicableReason?[{name:uee,description:fs(w.Extract_type),actions:[{...Wce,notApplicableReason:s.error},{...jj,notApplicableReason:s.error},{...Phe,notApplicableReason:s.error}]}]:Zn:[{name:uee,description:fs(w.Extract_type),actions:s.isJS?[Wce]:ur([jj],s.typeElements&&Phe)}]:Zn},getEditsForAction:function(r,s){const{file:l}=r,m=S3e(r);ce.assert(m&&!I2(m),"Expected to find a range to extract");const y=eB("NewType",l),T=Hs.ChangeTracker.with(r,W=>{switch(s){case jj.name:return ce.assert(!m.isJS,"Invalid actionName/JS combo"),ylt(W,l,y,m);case Wce.name:return ce.assert(m.isJS,"Invalid actionName/JS combo"),vlt(W,r,l,y,m);case Phe.name:return ce.assert(!m.isJS&&!!m.typeElements,"Invalid actionName/JS combo"),F$e(W,l,y,m);default:ce.fail("Unexpected action name")}}),D=l.fileName,I=WR(T,D,y,!1);return{edits:T,renameFilename:D,renameLocation:I}}})}});function I2(t){return t.error!==void 0}function Y3(t,r){return r?t.substr(0,r.length)===r:!0}var blt=G({"src/services/refactors/helpers.ts"(){}});function W$e(t,r,s,l){var m,y;const T=l.getTypeChecker(),D=Hx(t,r),I=D.parent;if(An(D)){if(J9(I)&&x9(I)&&An(I.name)){if(((m=T.getMergedSymbol(I.symbol).declarations)==null?void 0:m.length)!==1)return{error:fs(w.Variables_with_multiple_declarations_cannot_be_inlined)};if(B$e(I))return;const W=PCe(I,T,t);return W&&{references:W,declaration:I,replacement:I.initializer}}if(s){let W=T.resolveName(D.text,D,111551,!1);if(W=W&&T.getMergedSymbol(W),((y=W==null?void 0:W.declarations)==null?void 0:y.length)!==1)return{error:fs(w.Variables_with_multiple_declarations_cannot_be_inlined)};const O=W.declarations[0];if(!J9(O)||!x9(O)||!An(O.name)||B$e(O))return;const V=PCe(O,T,t);return V&&{references:V,declaration:O,replacement:O.initializer}}return{error:fs(w.Could_not_find_variable_to_inline)}}}function B$e(t){const r=uc(t.parent.parent,Dh);return gt(r.modifiers,fW)}function PCe(t,r,s){const l=[],m=Wf.Core.eachSymbolReferenceInFile(t.name,r,s,y=>{if(Wf.isWriteAccessForReference(y)||Oy(y.parent)||Ly(y.parent)||uE(y.parent)||zz(t,y.pos))return!0;l.push(y)});return l.length===0||m?void 0:l}function Tlt(t,r){r=Rg(r);const{parent:s}=t;return Nr(s)&&(HL(r){for(const V of T)O.replaceNode(s,V,Tlt(V,I));O.delete(s,D)})}}})}});function whe(t,r,s,l,m,y,T){const D=r.getTypeChecker(),I=Whe(t,s.all,D),W=R3e(t,r,T,m);l.createNewFile(t,W,Slt(t,I,l,s,r,m,W,y)),zce(r,l,t.fileName,W,hR(m))}function Slt(t,r,s,l,m,y,T,D){const I=m.getTypeChecker(),W=Yn(t.statements,qC);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0)return Mhe(t,l.ranges,s),[...W,...l.all];const O=!WAe(T,m,y,!!t.commonJsModuleIndicator),V=Jx(t,D),ee=I3e(t,r.oldFileImportsFromTargetFile,T,m,y,O,V);ee&&OS(s,t,ee,!0,D),C3e(t,l.all,s,r.unusedImportsFromOldFile,I),Mhe(t,l.ranges,s),D3e(s,m,y,t,r.movedSymbols,T,V);const te=BR(t,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,s,I,m,y,O,V),oe=Lhe(t,l.all,r.oldFileImportsFromTargetFile,O);return te.length&&oe.length?[...W,...te,4,...oe]:[...W,...te,...oe]}function BR(t,r,s,l,m,y,T,D,I){const W=[];for(const te of t.statements)dee(te,oe=>{ur(W,fB(oe,Vce(oe),de=>r.has(m.getSymbolAtLocation(de))))});let O;const V=[],ee=CF();return s.forEach(te=>{if(te.declarations)for(const oe of te.declarations){if(!mee(oe))continue;const de=MCe(oe);if(!de)continue;const ue=$ce(oe);ee(ue)&&w3e(t,ue,de,l,D),il(oe,1024)?O=de:V.push(de.text)}}),ur(W,Uce(t,O,V,Iy(t.fileName),y,T,D,I)),W}var RP,NCe,Rhe,z$e=G({"src/services/refactors/moveToNewFile.ts"(){El(),MP(),RP="Move to a new file",NCe=fs(w.Move_to_a_new_file),Rhe={name:RP,description:NCe,kind:"refactor.move.newFile"},SI(RP,{kinds:[Rhe.kind],getAvailableActions:function(r){const s=qce(r);return r.preferences.allowTextChangesInNewFiles&&s?[{name:RP,description:NCe,actions:[Rhe]}]:r.preferences.provideRefactorNotApplicableReason?[{name:RP,description:NCe,actions:[{...Rhe,notApplicableReason:fs(w.Selection_is_not_a_valid_statement_or_statements)}]}]:Zn},getEditsForAction:function(r,s){ce.assert(s===RP,"Wrong refactor invoked");const l=ce.checkDefined(qce(r));return{edits:Hs.ChangeTracker.with(r,y=>whe(r.file,r.program,l,y,r.host,r.preferences,r)),renameFilename:void 0,renameLocation:void 0}}})}});function A3e(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function Elt(t,r,s,l,m,y,T,D){const I=l.getTypeChecker(),W=Whe(r,m.all,I);if(!T.fileExists(s))y.createNewFile(r,s,_ee(r,s,W,y,m,l,T,D)),zce(l,y,r.fileName,s,hR(T));else{const O=ce.checkDefined(l.getSourceFile(s)),V=If.createImportAdder(O,t.program,t.preferences,t.host);_ee(r,O,W,y,m,l,T,D,V)}}function _ee(t,r,s,l,m,y,T,D,I){const W=y.getTypeChecker(),O=Yn(t.statements,qC);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof r=="string")return Mhe(t,m.ranges,l),[...O,...m.all];const V=typeof r=="string"?r:r.fileName,ee=!WAe(V,y,T,!!t.commonJsModuleIndicator),te=Jx(t,D),oe=I3e(t,s.oldFileImportsFromTargetFile,V,y,T,ee,te);oe&&OS(l,t,oe,!0,D),C3e(t,m.all,l,s.unusedImportsFromOldFile,W),Mhe(t,m.ranges,l),D3e(l,y,T,t,s.movedSymbols,V,te);const de=wCe(t,V,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,l,W,y,T,ee,te,I),ue=Lhe(t,m.all,s.oldFileImportsFromTargetFile,ee);return typeof r!="string"&&(r.statements.length>0?klt(l,y,ue,r,m):l.insertNodesAtEndOfFile(r,ue,!1),de.length>0&&OS(l,r,de,!0,D)),I&&I.writeFixes(l,te),de.length&&ue.length?[...O,...de,4,...ue]:[...O,...de,...ue]}function wCe(t,r,s,l,m,y,T,D,I,W,O){const V=[];if(O)s.forEach((ue,Ne)=>{try{O.addImportFromExportedSymbol(dg(Ne,y),ue)}catch{for(const Be of t.statements)dee(Be,Ve=>{ur(V,fB(Ve,be.createStringLiteral(Vce(Ve).text),pt=>s.has(y.getSymbolAtLocation(pt))))})}});else{const ue=T.getSourceFile(r);for(const Ne of t.statements)dee(Ne,Be=>{var Ve,pt;const Le=Vce(Be),ht=(Ve=t.resolvedModules)==null?void 0:Ve.get(Le.text,kA(t,Le)),ke=(pt=ht==null?void 0:ht.resolvedModule)==null?void 0:pt.resolvedFileName;if(ke&&ue){const _t=ime(T.getCompilerOptions(),ue,ue.path,ke,y4(T,D));ur(V,fB(Be,DF(_t,W),Dt=>s.has(y.getSymbolAtLocation(Dt))))}else ur(V,fB(Be,be.createStringLiteral(Vce(Be).text),_t=>s.has(y.getSymbolAtLocation(_t))))})}const ee=T.getSourceFile(r);let te;const oe=[],de=CF();return l.forEach(ue=>{if(ue.declarations)for(const Ne of ue.declarations){if(!mee(Ne))continue;const Be=MCe(Ne);if(!Be)continue;const Ve=$ce(Ne);de(Ve)&&w3e(t,Ve,Be,m,I),O&&y.isUnknownSymbol(ue)?O.addImportFromExportedSymbol(dg(ue,y)):il(Ne,1024)?te=Be:oe.push(Be.text)}}),ee?ur(V,Uce(ee,te,oe,t.fileName,T,D,I,W)):ur(V,Uce(t,te,oe,t.fileName,T,D,I,W))}function zce(t,r,s,l,m){const y=t.getCompilerOptions().configFile;if(!y)return;const T=Fd(tf(s,"..",l)),D=wX(y.fileName,T,m),I=y.statements[0]&&to(y.statements[0].expression,Wd),W=I&&lr(I.properties,O=>Fm(O)&&Wp(O.name)&&O.name.text==="files");W&&Ch(W.initializer)&&r.insertNodeInListAfter(y,yl(W.initializer.elements),be.createStringLiteral(D),W.initializer.elements)}function Mhe(t,r,s){for(const{first:l,afterLast:m}of r)s.deleteNodeRangeExcludingEnd(t,l,m)}function C3e(t,r,s,l,m){for(const y of t.statements)ni(r,y)||dee(y,T=>Ohe(t,T,s,D=>l.has(m.getSymbolAtLocation(D))))}function D3e(t,r,s,l,m,y,T){const D=r.getTypeChecker();for(const I of r.getSourceFiles())if(I!==l)for(const W of I.statements)dee(W,O=>{if(D.getSymbolAtLocation(Vce(O))!==l.symbol)return;const V=ue=>{const Ne=ym(ue.parent)?rce(D,ue.parent):dg(D.getSymbolAtLocation(ue),D);return!!Ne&&m.has(Ne)};Ohe(I,O,t,V);const ee=gm(qc(l.path),y),te=ime(r.getCompilerOptions(),I,I.path,ee,y4(r,s)),oe=fB(O,DF(te,T),V);oe&&t.insertNodeAfter(I,W,oe);const de=xlt(O);de&&Gce(t,I,D,m,te,de,O,T)})}function xlt(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 to(t.name,An);default:return ce.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Gce(t,r,s,l,m,y,T,D){const I=If.moduleSpecifierToValidIdentifier(m,99);let W=!1;const O=[];if(Wf.Core.eachSymbolReferenceInFile(y,s,r,V=>{sa(V.parent)&&(W=W||!!s.resolveName(I,V,67108863,!0),l.has(s.getSymbolAtLocation(V.parent.name))&&O.push(V))}),O.length){const V=W?eB(I,r):I;for(const ee of O)t.replaceNode(r,ee,be.createIdentifier(V));t.insertNodeAfter(r,T,RCe(T,I,m,D))}}function RCe(t,r,s,l){const m=be.createIdentifier(r),y=DF(s,l);switch(t.kind){case 272:return be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamespaceImport(m)),y,void 0);case 271:return be.createImportEqualsDeclaration(void 0,!1,m,be.createExternalModuleReference(y));case 260:return be.createVariableDeclaration(m,void 0,void 0,jce(y));default:return ce.assertNever(t,`Unexpected node kind ${t.kind}`)}}function jce(t){return be.createCallExpression(be.createIdentifier("require"),void 0,[t])}function Vce(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function dee(t,r){if(Fv(t))Wp(t.moduleSpecifier)&&r(t);else if(kh(t))j0(t.moduleReference)&&sp(t.moduleReference.expression)&&r(t);else if(Dh(t))for(const s of t.declarationList.declarations)s.initializer&&eT(s.initializer,!0)&&r(s)}function I3e(t,r,s,l,m,y,T){let D;const I=[];return r.forEach(W=>{W.escapedName==="default"?D=be.createIdentifier(OZ(W)):I.push(W.name)}),Uce(t,D,I,s,l,m,y,T)}function Uce(t,r,s,l,m,y,T,D){const I=gm(qc(t.path),l),W=ime(m.getCompilerOptions(),t,t.path,I,y4(m,y));if(T){const O=s.map(V=>be.createImportSpecifier(!1,void 0,be.createIdentifier(V)));return Ij(r,O,W,D)}else{ce.assert(!r,"No default import should exist");const O=s.map(V=>be.createBindingElement(void 0,void 0,V));return O.length?G$e(be.createObjectBindingPattern(O),void 0,jce(DF(W,D))):void 0}}function G$e(t,r,s,l=2){return be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(t,void 0,r,s)],l))}function Lhe(t,r,s,l){return ea(r,m=>{if(j$e(m)&&!Hce(t,m,l)&&L3e(m,y=>{var T;return s.has(ce.checkDefined((T=to(y,YD))==null?void 0:T.symbol))})){const y=Clt(Rg(m),l);if(y)return y}return Rg(m)})}function Hce(t,r,s,l){var m;return s?!Ou(r)&&il(r,1)||!!(l&&t.symbol&&((m=t.symbol.exports)!=null&&m.has(l.escapedText))):!!t.symbol&&!!t.symbol.exports&&Fhe(r).some(y=>t.symbol.exports.has(ty(y)))}function Ohe(t,r,s,l){switch(r.kind){case 272:k3e(t,r,s,l);break;case 271:l(r.name)&&s.delete(t,r);break;case 260:Alt(t,r,s,l);break;default:ce.assertNever(r,`Unexpected import decl kind ${r.kind}`)}}function k3e(t,r,s,l){if(!r.importClause)return;const{name:m,namedBindings:y}=r.importClause,T=!m||l(m),D=!y||(y.kind===274?l(y.name):y.elements.length!==0&&y.elements.every(I=>l(I.name)));if(T&&D)s.delete(t,r);else if(m&&T&&s.delete(t,m),y){if(D)s.replaceNode(t,r.importClause,be.updateImportClause(r.importClause,r.importClause.isTypeOnly,m,void 0));else if(y.kind===275)for(const I of y.elements)l(I.name)&&s.delete(t,I)}}function Alt(t,r,s,l){const{name:m}=r;switch(m.kind){case 80:l(m)&&(r.initializer&&eT(r.initializer,!0)?s.delete(t,My(r.parent)&&Nt(r.parent.declarations)===1?r.parent.parent:r):s.delete(t,m));break;case 207:break;case 206:if(m.elements.every(y=>An(y.name)&&l(y.name)))s.delete(t,My(r.parent)&&r.parent.declarations.length===1?r.parent.parent:r);else for(const y of m.elements)An(y.name)&&l(y.name)&&s.delete(t,y.name);break}}function j$e(t){return ce.assert(tl(t.parent),"Node parent should be a SourceFile"),gee(t)||Dh(t)}function Clt(t,r){return r?[P3e(t)]:Jce(t)}function P3e(t){const r=nx(t)?Hi([be.createModifier(95)],N8(t)):void 0;switch(t.kind){case 262:return be.updateFunctionDeclaration(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=I3(t)?LL(t):void 0;return be.updateClassDeclaration(t,Hi(s,r),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return be.updateVariableStatement(t,r,t.declarationList);case 267:return be.updateModuleDeclaration(t,r,t.name,t.body);case 266:return be.updateEnumDeclaration(t,r,t.name,t.members);case 265:return be.updateTypeAliasDeclaration(t,r,t.name,t.typeParameters,t.type);case 264:return be.updateInterfaceDeclaration(t,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return be.updateImportEqualsDeclaration(t,r,t.isTypeOnly,t.name,t.moduleReference);case 244:return ce.fail();default:return ce.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function Jce(t){return[t,...Fhe(t).map(pee)]}function pee(t){return be.createExpressionStatement(be.createBinaryExpression(be.createPropertyAccessExpression(be.createIdentifier("exports"),be.createIdentifier(t)),64,be.createIdentifier(t)))}function Fhe(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return Qo(t.declarationList.declarations,r=>An(r.name)?r.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Zn;case 244:return ce.fail("Can't export an ExpressionStatement");default:return ce.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function fB(t,r,s){switch(t.kind){case 272:{const l=t.importClause;if(!l)return;const m=l.name&&s(l.name)?l.name:void 0,y=l.namedBindings&&V$e(l.namedBindings,s);return m||y?be.createImportDeclaration(void 0,be.createImportClause(l.isTypeOnly,m,y),Rg(r),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const l=N3e(t.name,s);return l?G$e(l,t.type,jce(r),t.parent.flags):void 0}default:return ce.assertNever(t,`Unexpected import kind ${t.kind}`)}}function V$e(t,r){if(t.kind===274)return r(t.name)?t:void 0;{const s=t.elements.filter(l=>r(l.name));return s.length?be.createNamedImports(s):void 0}}function N3e(t,r){switch(t.kind){case 80:return r(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(l=>l.propertyName||!An(l.name)||r(l.name));return s.length?be.createObjectBindingPattern(s):void 0}}}function MCe(t){return Ou(t)?to(t.expression.left.name,An):to(t.name,An)}function $ce(t){switch(t.kind){case 260:return t.parent.parent;case 208:return $ce(uc(t.parent.parent,r=>ff(r)||ym(r)));default:return t}}function w3e(t,r,s,l,m){if(!Hce(t,r,m,s))if(m)Ou(r)||l.insertExportModifier(t,r);else{const y=Fhe(r);y.length!==0&&l.insertNodesAfter(t,r,y.map(pee))}}function R3e(t,r,s,l){const m=r.getTypeChecker(),y=qce(s);let T;if(y){T=Whe(t,y.all,m);const D=qc(t.fileName),I=SP(t.fileName);return tf(D,M3e(Kce(T.oldFileImportsFromTargetFile,T.movedSymbols),I,D,l))+I}return""}function U$e(t){const{file:r}=t,s=PZ(aB(t)),{statements:l}=r;let m=Ho(l,W=>W.end>s.pos);if(m===-1)return;const y=l[m],T=$$e(r,y);T&&(m=T.start);let D=Ho(l,W=>W.end>=s.end,m);D!==-1&&s.end<=l[D].getStart()&&D--;const I=$$e(r,l[D]);return I&&(D=I.end),{toMove:l.slice(m,D===-1?l.length:D+1),afterLast:D===-1?void 0:l[D+1]}}function qce(t){const r=U$e(t);if(r===void 0)return;const s=[],l=[],{toMove:m,afterLast:y}=r;return eu(m,Dlt,(T,D)=>{for(let I=T;I!!r.initializer&&eT(r.initializer,!0));default:return!1}}function Whe(t,r,s){const l=new Set,m=new Map,y=new Set,T=lr(r,V=>!!(V.transformFlags&2)),D=O(T);D&&m.set(D,!1);for(const V of r)L3e(V,ee=>{l.add(ce.checkDefined(Ou(ee)?s.getSymbolAtLocation(ee.expression.left):ee.symbol,"Need a symbol here"))});for(const V of r)H$e(V,s,(ee,te)=>{if(ee.declarations)for(const oe of ee.declarations)if(LCe(oe)){const de=m.get(ee);m.set(ee,(de===void 0||de)&&te)}else mee(oe)&&O3e(oe)===t&&!l.has(ee)&&y.add(ee)});const I=new Set(m.keys()),W=new Set;for(const V of t.statements)ni(r,V)||(D&&V.transformFlags&2&&I.delete(D),H$e(V,s,ee=>{l.has(ee)&&W.add(ee),I.delete(ee)}));return{movedSymbols:l,targetFileImportsFromOldFile:y,oldFileImportsFromTargetFile:W,oldImportsNeededByTargetFile:m,unusedImportsFromOldFile:I};function O(V){if(V===void 0)return;const ee=s.getJsxNamespace(V),te=s.resolveName(ee,V,1920,!0);return te&>(te.declarations,LCe)?te:void 0}}function M3e(t,r,s,l){let m=t;for(let y=1;;y++){const T=tf(s,m+r);if(!l.fileExists(T))return m;m=`${t}.${y}`}}function Kce(t,r){return WL(t,OZ)||WL(r,OZ)||"newFile"}function H$e(t,r,s){t.forEachChild(function l(m){if(An(m)&&!vP(m)){const y=r.getSymbolAtLocation(m);y&&s(y,EA(m))}else m.forEachChild(l)})}function L3e(t,r){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return r(t);case 243:return Yr(t.declarationList.declarations,s=>J$e(s.name,r));case 244:{const{expression:s}=t;return ys(s)&&Qy(s)===1?r(t):void 0}}}function LCe(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return Bhe(t);case 208:return ff(t.parent.parent)&&Bhe(t.parent.parent);default:return!1}}function Bhe(t){return tl(t.parent.parent.parent)&&!!t.initializer&&eT(t.initializer,!0)}function mee(t){return gee(t)&&tl(t.parent)||ff(t)&&tl(t.parent.parent.parent)}function O3e(t){return ff(t)?t.parent.parent.parent:t.parent}function J$e(t,r){switch(t.kind){case 80:return r(uc(t.parent,s=>ff(s)||ym(s)));case 207:case 206:return Yr(t.elements,s=>t0(s)?void 0:J$e(s.name,r));default:return ce.assertNever(t,`Unexpected name kind ${t.kind}`)}}function gee(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function klt(t,r,s,l,m){var y;const T=new Set,D=(y=l.symbol)==null?void 0:y.exports;if(D){const W=r.getTypeChecker(),O=new Map;for(const V of m.all)j$e(V)&&il(V,1)&&L3e(V,ee=>{var te;const oe=YD(ee)?(te=D.get(ee.symbol.escapedName))==null?void 0:te.declarations:void 0,de=Yr(oe,ue=>mh(ue)?ue:Oy(ue)?to(ue.parent.parent,mh):void 0);de&&de.moduleSpecifier&&O.set(de,(O.get(de)||new Set).add(ee))});for(const[V,ee]of oc(O))if(V.exportClause&&G0(V.exportClause)&&Nt(V.exportClause.elements)){const te=V.exportClause.elements,oe=gi(te,de=>lr(dg(de.symbol,W).declarations,ue=>mee(ue)&&ee.has(ue))===void 0);if(Nt(oe)===0){t.deleteNode(l,V),T.add(V);continue}Nt(oe)mh(W)&&!!W.moduleSpecifier&&!T.has(W));I?t.insertNodesBefore(l,I,s,!0):t.insertNodesAfter(l,l.statements[l.statements.length-1],s)}function $$e(t,r){if(J_(r)){const s=r.symbol.declarations;if(s===void 0||Nt(s)<=1||!ni(s,r))return;const l=s[0],m=s[Nt(s)-1],y=Qo(s,I=>ns(I)===t&&uf(I)?I:void 0),T=Ho(t.statements,I=>I.end>=m.end),D=Ho(t.statements,I=>I.end>=l.end);return{toMove:y,start:D,end:T}}}var Vj,OCe,FCe,q$e=G({"src/services/refactors/moveToFile.ts"(){VLe(),El(),ACe(),Vj="Move to file",OCe=fs(w.Move_to_file),FCe={name:"Move to file",description:OCe,kind:"refactor.move.file"},SI(Vj,{kinds:[FCe.kind],getAvailableActions:function(r,s){const l=qce(r);return s?r.preferences.allowTextChangesInNewFiles&&l?[{name:Vj,description:OCe,actions:[FCe]}]:r.preferences.provideRefactorNotApplicableReason?[{name:Vj,description:OCe,actions:[{...FCe,notApplicableReason:fs(w.Selection_is_not_a_valid_statement_or_statements)}]}]:Zn:Zn},getEditsForAction:function(r,s,l){ce.assert(s===Vj,"Wrong refactor invoked");const m=ce.checkDefined(qce(r)),{host:y,program:T}=r;ce.assert(l,"No interactive refactor arguments available");const D=l.targetFile;return eD(D)||vR(D)?y.fileExists(D)&&T.getSourceFile(D)===void 0?A3e(fs(w.Cannot_move_statements_to_the_selected_file)):{edits:Hs.ChangeTracker.with(r,W=>Elt(r,r.file,l.targetFile,r.program,m,W,r.host,r.preferences)),renameFilename:void 0,renameLocation:void 0}:A3e(fs(w.Cannot_move_to_file_selected_file_is_invalid))}})}});function F3e(t){const{file:r,startPosition:s,program:l}=t;return Xce(r,s,l)?[{name:WCe,description:BCe,actions:[zCe]}]:Zn}function K$e(t){const{file:r,startPosition:s,program:l}=t,m=Xce(r,s,l);if(!m)return;const y=l.getTypeChecker(),T=m[m.length-1];let D=T;switch(T.kind){case 173:{D=be.updateMethodSignature(T,T.modifiers,T.name,T.questionToken,T.typeParameters,W(m),T.type);break}case 174:{D=be.updateMethodDeclaration(T,T.modifiers,T.asteriskToken,T.name,T.questionToken,T.typeParameters,W(m),T.type,T.body);break}case 179:{D=be.updateCallSignature(T,T.typeParameters,W(m),T.type);break}case 176:{D=be.updateConstructorDeclaration(T,T.modifiers,W(m),T.body);break}case 180:{D=be.updateConstructSignature(T,T.typeParameters,W(m),T.type);break}case 262:{D=be.updateFunctionDeclaration(T,T.modifiers,T.asteriskToken,T.name,T.typeParameters,W(m),T.type,T.body);break}default:return ce.failBadSyntaxKind(T,"Unhandled signature kind in overload list conversion refactoring")}if(D===T)return;return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,ee=>{ee.replaceNodeRange(r,m[0],m[m.length-1],D)})};function W(ee){const te=ee[ee.length-1];return J_(te)&&te.body&&(ee=ee.slice(0,ee.length-1)),be.createNodeArray([be.createParameterDeclaration(void 0,be.createToken(26),"args",void 0,be.createUnionTypeNode(Vn(ee,O)))])}function O(ee){const te=Vn(ee.parameters,V);return Sa(be.createTupleTypeNode(te),gt(te,oe=>!!Nt(U7(oe)))?0:1)}function V(ee){ce.assert(An(ee.name));const te=vr(be.createNamedTupleMember(ee.dotDotDotToken,ee.name,ee.questionToken,ee.type||be.createKeywordTypeNode(133)),ee),oe=ee.symbol&&ee.symbol.getDocumentationComment(y);if(oe){const de=lDe(oe);de.length&&MS(te,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return ce.assertNever(t)}}function UAe(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 HAe(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function qct(t){if(sE(t))return 3;if(UAe(t)||HAe(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 zM(t)?6:2}}function B8e(t,r,s,l,m){return ZJe(z8e(t,r,s,l,m))}function YJe(t,r){switch(r){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function z8e(t,r,s,l,m){const y=[];return s.forEachChild(function D(I){if(!(!I||!Yy(m,I.pos,I.getFullWidth()))){if(YJe(r,I.kind),An(I)&&!Um(I)&&l.has(I.escapedText)){const W=t.getSymbolAtLocation(I),O=W&&QJe(W,z3(I),t);O&&T(I.getStart(s),I.getEnd(),O)}I.forEachChild(D)}}),{spans:y,endOfLineState:0};function T(D,I,W){const O=I-D;ce.assert(O>0,`Classification had non-positive length of ${O}`),y.push(D),y.push(O),y.push(W)}}function QJe(t,r,s){const l=t.getFlags();if(l&2885600)return l&32?11:l&384?12:l&524288?16:l&1536?r&4||r&1&&Kct(t)?14:void 0:l&2097152?QJe(s.getAliasedSymbol(t),r,s):r&2?l&64?13:l&262144?15:void 0:void 0}function Kct(t){return gt(t.declarations,r=>xp(r)&&kR(r)===1)}function Xct(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 ZJe(t){ce.assert(t.spans.length%3===0);const r=t.spans,s=[];for(let l=0;l])*)(\/>)?)?/im,_t=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Dt=r.text.substr(Le,ht),Ft=ke.exec(Dt);if(!Ft||!Ft[3]||!(Ft[3]in z_e))return!1;let it=Le;V(it,Ft[1].length),it+=Ft[1].length,I(it,Ft[2].length,10),it+=Ft[2].length,I(it,Ft[3].length,21),it+=Ft[3].length;const Ye=Ft[4];let ut=it;for(;;){const zt=_t.exec(Ye);if(!zt)break;const Wt=it+zt.index+zt[1].length;Wt>ut&&(V(ut,Wt-ut),ut=Wt),I(ut,zt[2].length,22),ut+=zt[2].length,zt[3].length&&(V(ut,zt[3].length),ut+=zt[3].length),I(ut,zt[4].length,5),ut+=zt[4].length,zt[5].length&&(V(ut,zt[5].length),ut+=zt[5].length),I(ut,zt[6].length,24),ut+=zt[6].length}it+=Ft[4].length,it>ut&&V(ut,it-ut),Ft[5]&&(I(it,Ft[5].length,10),it+=Ft[5].length);const lt=Le+ht;return it=0),_t>0){const Dt=ht||Ve(Le.kind,Le);Dt&&I(ke,_t,Dt)}return!0}function Be(Le){switch(Le.parent&&Le.parent.kind){case 286:if(Le.parent.tagName===Le)return 19;break;case 287:if(Le.parent.tagName===Le)return 20;break;case 285:if(Le.parent.tagName===Le)return 21;break;case 291:if(Le.parent.name===Le)return 22;break}}function Ve(Le,ht){if(sE(Le))return 3;if((Le===30||Le===32)&&ht&&Zse(ht.parent))return 10;if(w7(Le)){if(ht){const ke=ht.parent;if(Le===64&&(ke.kind===260||ke.kind===172||ke.kind===169||ke.kind===291)||ke.kind===226||ke.kind===224||ke.kind===225||ke.kind===227)return 5}return 10}else{if(Le===9)return 4;if(Le===10)return 25;if(Le===11)return ht&&ht.parent.kind===291?24:6;if(Le===14)return 6;if(zM(Le))return 6;if(Le===12)return 23;if(Le===80){if(ht){switch(ht.parent.kind){case 263:return ht.parent.name===ht?11:void 0;case 168:return ht.parent.name===ht?15:void 0;case 264:return ht.parent.name===ht?13:void 0;case 266:return ht.parent.name===ht?12:void 0;case 267:return ht.parent.name===ht?14:void 0;case 169:return ht.parent.name===ht?Zy(ht)?3:17:void 0}if(CN(ht.parent))return 3}return 2}}}function pt(Le){if(Le&&o9(l,m,Le.pos,Le.getFullWidth())){YJe(t,Le.kind);for(const ht of Le.getChildren(r))Ne(ht)||pt(ht)}}}var t$e,JAe=G({"src/services/classifier.ts"(){El(),t$e=bz([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),mhe,$Ae=G({"src/services/documentHighlights.ts"(){El(),(t=>{function r(it,Ye,ut,lt,zt){const Wt=Hx(ut,lt);if(Wt.parent&&(rD(Wt.parent)&&Wt.parent.tagName===Wt||Sk(Wt.parent))){const{openingElement:tt,closingElement:Mn}=Wt.parent.parent,kn=[tt,Mn].map(({tagName:cr})=>s(cr,ut));return[{fileName:ut.fileName,highlightSpans:kn}]}return l(lt,Wt,it,Ye,zt)||m(Wt,ut)}t.getDocumentHighlights=r;function s(it,Ye){return{fileName:Ye.fileName,textSpan:gE(it,Ye),kind:"none"}}function l(it,Ye,ut,lt,zt){const Wt=new Set(zt.map(cr=>cr.fileName)),tt=Wf.getReferenceEntriesForNode(it,Ye,ut,zt,lt,void 0,Wt);if(!tt)return;const Mn=_N(tt.map(Wf.toHighlightSpan),cr=>cr.fileName,cr=>cr.span),kn=_v(ut.useCaseSensitiveFileNames());return oc(p2(Mn.entries(),([cr,un])=>{if(!Wt.has(cr)){if(!ut.redirectTargetsMap.has(_h(cr,ut.getCurrentDirectory(),kn)))return;const on=ut.getSourceFile(cr);cr=lr(zt,Or=>!!Or.redirectInfo&&Or.redirectInfo.redirectTarget===on).fileName,ce.assert(Wt.has(cr))}return{fileName:cr,highlightSpans:un}}))}function m(it,Ye){const ut=y(it,Ye);return ut&&[{fileName:Ye.fileName,highlightSpans:ut}]}function y(it,Ye){switch(it.kind){case 101:case 93:return Xg(it.parent)?_t(it.parent,Ye):void 0;case 107:return lt(it.parent,Bx,pt);case 111:return lt(it.parent,upe,Ve);case 113:case 85:case 98:const Wt=it.kind===85?it.parent.parent:it.parent;return lt(Wt,AR,Be);case 109:return lt(it.parent,Loe,Ne);case 84:case 90:return CR(it.parent)||tx(it.parent)?lt(it.parent.parent.parent,Loe,Ne):void 0;case 83:case 88:return lt(it.parent,VX,ue);case 99:case 117:case 92:return lt(it.parent,tt=>kN(tt,!0),de);case 137:return ut(pg,[137]);case 139:case 153:return ut(Am,[139,153]);case 135:return lt(it.parent,h6,Le);case 134:return zt(Le(it));case 127:return zt(ht(it));case 103:return;default:return qg(it.kind)&&(dl(it.parent)||Dh(it.parent))?zt(ee(it.kind,it.parent)):void 0}function ut(Wt,tt){return lt(it.parent,Wt,Mn=>{var kn;return Qo((kn=to(Mn,YD))==null?void 0:kn.symbol.declarations,cr=>Wt(cr)?lr(cr.getChildren(Ye),un=>ni(tt,un.kind)):void 0)})}function lt(Wt,tt,Mn){return tt(Wt)?zt(Mn(Wt,Ye)):void 0}function zt(Wt){return Wt&&Wt.map(tt=>s(tt,Ye))}}function T(it){return upe(it)?[it]:AR(it)?Hi(it.catchClause?T(it.catchClause):it.tryBlock&&T(it.tryBlock),it.finallyBlock&&T(it.finallyBlock)):S_(it)?void 0:W(it,T)}function D(it){let Ye=it;for(;Ye.parent;){const ut=Ye.parent;if(JM(ut)||ut.kind===312)return ut;if(AR(ut)&&ut.tryBlock===Ye&&ut.catchClause)return Ye;Ye=ut}}function I(it){return VX(it)?[it]:S_(it)?void 0:W(it,I)}function W(it,Ye){const ut=[];return it.forEachChild(lt=>{const zt=Ye(lt);zt!==void 0&&ut.push(...BC(zt))}),ut}function O(it,Ye){const ut=V(Ye);return!!ut&&ut===it}function V(it){return Kr(it,Ye=>{switch(Ye.kind){case 255:if(it.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!it.label||Ft(Ye,it.label.escapedText);default:return S_(Ye)&&"quit"}})}function ee(it,Ye){return Qo(te(Ye,U9(it)),ut=>YW(ut,it))}function te(it,Ye){const ut=it.parent;switch(ut.kind){case 268:case 312:case 241:case 296:case 297:return Ye&256&&Kc(it)?[...it.members,it]:ut.statements;case 176:case 174:case 262:return[...ut.parameters,...Jl(ut.parent)?ut.parent.members:[]];case 263:case 231:case 264:case 187:const lt=ut.members;if(Ye&92){const zt=lr(ut.members,pg);if(zt)return[...lt,...zt.parameters]}else if(Ye&256)return[...lt,ut];return lt;case 210:return;default:ce.assertNever(ut,"Invalid container kind.")}}function oe(it,Ye,...ut){return Ye&&ni(ut,Ye.kind)?(it.push(Ye),!0):!1}function de(it){const Ye=[];if(oe(Ye,it.getFirstToken(),99,117,92)&&it.kind===246){const ut=it.getChildren();for(let lt=ut.length-1;lt>=0&&!oe(Ye,ut[lt],117);lt--);}return Ot(I(it.statement),ut=>{O(it,ut)&&oe(Ye,ut.getFirstToken(),83,88)}),Ye}function ue(it){const Ye=V(it);if(Ye)switch(Ye.kind){case 248:case 249:case 250:case 246:case 247:return de(Ye);case 255:return Ne(Ye)}}function Ne(it){const Ye=[];return oe(Ye,it.getFirstToken(),109),Ot(it.caseBlock.clauses,ut=>{oe(Ye,ut.getFirstToken(),84,90),Ot(I(ut),lt=>{O(it,lt)&&oe(Ye,lt.getFirstToken(),83)})}),Ye}function Be(it,Ye){const ut=[];if(oe(ut,it.getFirstToken(),113),it.catchClause&&oe(ut,it.catchClause.getFirstToken(),85),it.finallyBlock){const lt=Wm(it,98,Ye);oe(ut,lt,98)}return ut}function Ve(it,Ye){const ut=D(it);if(!ut)return;const lt=[];return Ot(T(ut),zt=>{lt.push(Wm(zt,111,Ye))}),JM(ut)&&HM(ut,zt=>{lt.push(Wm(zt,107,Ye))}),lt}function pt(it,Ye){const ut=GE(it);if(!ut)return;const lt=[];return HM(uc(ut.body,E_),zt=>{lt.push(Wm(zt,107,Ye))}),Ot(T(ut.body),zt=>{lt.push(Wm(zt,111,Ye))}),lt}function Le(it){const Ye=GE(it);if(!Ye)return;const ut=[];return Ye.modifiers&&Ye.modifiers.forEach(lt=>{oe(ut,lt,134)}),B_(Ye,lt=>{ke(lt,zt=>{h6(zt)&&oe(ut,zt.getFirstToken(),135)})}),ut}function ht(it){const Ye=GE(it);if(!Ye)return;const ut=[];return B_(Ye,lt=>{ke(lt,zt=>{Ds(zt)&&oe(ut,zt.getFirstToken(),127)})}),ut}function ke(it,Ye){Ye(it),!S_(it)&&!Jl(it)&&!Kp(it)&&!xp(it)&&!mg(it)&&!Uu(it)&&B_(it,ut=>ke(ut,Ye))}function _t(it,Ye){const ut=Dt(it,Ye),lt=[];for(let zt=0;zt=Wt.end;kn--)if(!HD(Ye.text.charCodeAt(kn))){Mn=!1;break}if(Mn){lt.push({fileName:Ye.fileName,textSpan:R0(Wt.getStart(),tt.end),kind:"reference"}),zt++;continue}}lt.push(s(ut[zt],Ye))}return lt}function Dt(it,Ye){const ut=[];for(;Xg(it.parent)&&it.parent.elseStatement===it;)it=it.parent;for(;;){const lt=it.getChildren(Ye);oe(ut,lt[0],101);for(let zt=lt.length-1;zt>=0&&!oe(ut,lt[zt],93);zt--);if(!it.elseStatement||!Xg(it.elseStatement))break;it=it.elseStatement}return ut}function Ft(it,Ye){return!!Kr(it.parent,ut=>iS(ut)?ut.label.escapedText===Ye:"quit")}})(mhe||(mhe={}))}});function Ece(t){return!!t.sourceFile}function j8e(t,r){return n$e(t,r)}function n$e(t,r="",s){const l=new Map,m=_v(!!t);function y(){const de=oc(l.keys()).filter(ue=>ue&&ue.charAt(0)==="_").map(ue=>{const Ne=l.get(ue),Be=[];return Ne.forEach((Ve,pt)=>{Ece(Ve)?Be.push({name:pt,scriptKind:Ve.sourceFile.scriptKind,refCount:Ve.languageServiceRefCount}):Ve.forEach((Le,ht)=>Be.push({name:pt,scriptKind:ht,refCount:Le.languageServiceRefCount}))}),Be.sort((Ve,pt)=>pt.refCount-Ve.refCount),{bucket:ue,sourceFiles:Be}});return JSON.stringify(de,void 0,2)}function T(de){return typeof de.getCompilationSettings=="function"?de.getCompilationSettings():de}function D(de,ue,Ne,Be,Ve,pt){const Le=_h(de,r,m),ht=ghe(T(ue));return I(de,Le,ue,ht,Ne,Be,Ve,pt)}function I(de,ue,Ne,Be,Ve,pt,Le,ht){return ee(de,ue,Ne,Be,Ve,pt,!0,Le,ht)}function W(de,ue,Ne,Be,Ve,pt){const Le=_h(de,r,m),ht=ghe(T(ue));return O(de,Le,ue,ht,Ne,Be,Ve,pt)}function O(de,ue,Ne,Be,Ve,pt,Le,ht){return ee(de,ue,T(Ne),Be,Ve,pt,!1,Le,ht)}function V(de,ue){const Ne=Ece(de)?de:de.get(ce.checkDefined(ue,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return ce.assert(ue===void 0||!Ne||Ne.sourceFile.scriptKind===ue,`Script kind should match provided ScriptKind:${ue} and sourceFile.scriptKind: ${Ne==null?void 0:Ne.sourceFile.scriptKind}, !entry: ${!Ne}`),Ne}function ee(de,ue,Ne,Be,Ve,pt,Le,ht,ke){var _t,Dt,Ft,it;ht=$H(de,ht);const Ye=T(Ne),ut=Ne===Ye?void 0:Ne,lt=ht===6?100:iu(Ye),zt=typeof ke=="object"?ke:{languageVersion:lt,impliedNodeFormat:ut&&ew(ue,(it=(Ft=(Dt=(_t=ut.getCompilerHost)==null?void 0:_t.call(ut))==null?void 0:Dt.getModuleResolutionCache)==null?void 0:Ft.call(Dt))==null?void 0:it.getPackageJsonInfoCache(),ut,Ye),setExternalModuleIndicator:q9(Ye)};zt.languageVersion=lt;const Wt=l.size,tt=hhe(Be,zt.impliedNodeFormat),Mn=Jw(l,tt,()=>new Map);if(tu){l.size>Wt&&tu.instant(tu.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:Ye.configFilePath,key:tt});const on=!iT(ue)&&wT(l,(pn,Or)=>Or!==tt&&pn.has(ue)&&Or);on&&tu.instant(tu.Phase.Session,"documentRegistryBucketOverlap",{path:ue,key1:on,key2:tt})}const kn=Mn.get(ue);let cr=kn&&V(kn,ht);if(!cr&&s){const on=s.getDocument(tt,ue);on&&(ce.assert(Le),cr={sourceFile:on,languageServiceRefCount:0},un())}if(cr)cr.sourceFile.version!==pt&&(cr.sourceFile=Eee(cr.sourceFile,Ve,pt,Ve.getChangeRange(cr.sourceFile.scriptSnapshot)),s&&s.setDocument(tt,ue,cr.sourceFile)),Le&&cr.languageServiceRefCount++;else{const on=uDe(de,Ve,zt,pt,!1,ht);s&&s.setDocument(tt,ue,on),cr={sourceFile:on,languageServiceRefCount:1},un()}return ce.assert(cr.languageServiceRefCount!==0),cr.sourceFile;function un(){if(!kn)Mn.set(ue,cr);else if(Ece(kn)){const on=new Map;on.set(kn.sourceFile.scriptKind,kn),on.set(ht,cr),Mn.set(ue,on)}else kn.set(ht,cr)}}function te(de,ue,Ne,Be){const Ve=_h(de,r,m),pt=ghe(ue);return oe(Ve,pt,Ne,Be)}function oe(de,ue,Ne,Be){const Ve=ce.checkDefined(l.get(hhe(ue,Be))),pt=Ve.get(de),Le=V(pt,Ne);Le.languageServiceRefCount--,ce.assert(Le.languageServiceRefCount>=0),Le.languageServiceRefCount===0&&(Ece(pt)?Ve.delete(de):(pt.delete(Ne),pt.size===1&&Ve.set(de,Ns(pt.values(),Of))))}return{acquireDocument:D,acquireDocumentWithKey:I,updateDocument:W,updateDocumentWithKey:O,releaseDocument:te,releaseDocumentWithKey:oe,getKeyForCompilationSettings:ghe,getDocumentRegistryBucketKeyWithMode:hhe,reportStats:y,getBuckets:()=>l}}function ghe(t){return Kpe(t,hI)}function hhe(t,r){return r?`${t}|${r}`:t}var qAe=G({"src/services/documentRegistry.ts"(){El()}});function V8e(t,r,s,l,m,y,T){const D=xH(l),I=_v(D),W=KAe(r,s,I,T),O=KAe(s,r,I,T);return Hs.ChangeTracker.with({host:l,formatContext:m,preferences:y},V=>{Yct(t,V,W,r,s,l.getCurrentDirectory(),D),xce(t,V,W,O,l,I)})}function KAe(t,r,s,l){const m=s(t);return T=>{const D=l&&l.tryGetSourcePosition({fileName:T,pos:0}),I=y(D?D.fileName:T);return D?I===void 0?void 0:yhe(D.fileName,I,T,s):I};function y(T){if(s(T)===m)return r;const D=toe(T,m,s);return D===void 0?void 0:r+"/"+D}}function yhe(t,r,s,l){const m=wX(t,r,l);return Ace(qc(s),m)}function Yct(t,r,s,l,m,y,T){const{configFile:D}=t.getCompilerOptions();if(!D)return;const I=qc(D.fileName),W=A9(D);if(!W)return;Cce(W,(te,oe)=>{switch(oe){case"files":case"include":case"exclude":{if(O(te)||oe!=="include"||!Ch(te.initializer))return;const ue=Qo(te.initializer.elements,Be=>Wp(Be)?Be.text:void 0);if(ue.length===0)return;const Ne=Y9(I,[],ue,T,y);Y2(ce.checkDefined(Ne.includeFilePattern),T).test(l)&&!Y2(ce.checkDefined(Ne.includeFilePattern),T).test(m)&&r.insertNodeAfter(D,yl(te.initializer.elements),be.createStringLiteral(ee(m)));return}case"compilerOptions":Cce(te.initializer,(de,ue)=>{const Ne=t2e(ue);ce.assert((Ne==null?void 0:Ne.type)!=="listOrElement"),Ne&&(Ne.isFilePath||Ne.type==="list"&&Ne.element.isFilePath)?O(de):ue==="paths"&&Cce(de.initializer,Be=>{if(Ch(Be.initializer))for(const Ve of Be.initializer.elements)V(Ve)})});return}});function O(te){const oe=Ch(te.initializer)?te.initializer.elements:[te.initializer];let de=!1;for(const ue of oe)de=V(ue)||de;return de}function V(te){if(!Wp(te))return!1;const oe=Ace(I,te.text),de=s(oe);return de!==void 0?(r.replaceRangeWithText(D,QAe(te,D),ee(de)),!0):!1}function ee(te){return qp(I,te,!T)}}function xce(t,r,s,l,m,y){const T=t.getSourceFiles();for(const D of T){const I=s(D.fileName),W=I??D.fileName,O=qc(W),V=l(D.fileName),ee=V||D.fileName,te=qc(ee),oe=I!==void 0||V!==void 0;Qct(D,r,de=>{if(!U2(de))return;const ue=Ace(te,de),Ne=s(ue);return Ne===void 0?void 0:OE(qp(O,Ne,y))},de=>{const ue=t.getTypeChecker().getSymbolAtLocation(de);if(ue!=null&&ue.declarations&&ue.declarations.some(Be=>Ov(Be)))return;const Ne=V!==void 0?YAe(de,a4(de.text,ee,t.getCompilerOptions(),m),s,T):XAe(ue,de,D,t,m,s);return Ne!==void 0&&(Ne.updated||oe&&U2(de.text))?M3.updateModuleSpecifier(t.getCompilerOptions(),D,y(W),Ne.newFileName,h4(t,m),de.text):void 0})}}function U8e(t,r){return Fd(tf(t,r))}function Ace(t,r){return OE(U8e(t,r))}function XAe(t,r,s,l,m,y){var T;if(t){const D=lr(t.declarations,tl).fileName,I=y(D);return I===void 0?{newFileName:D,updated:!1}:{newFileName:I,updated:!0}}else{const D=kA(s,r),I=m.resolveModuleNameLiterals||!m.resolveModuleNames?(T=s.resolvedModules)==null?void 0:T.get(r.text,D):m.getResolvedModuleWithFailedLookupLocationsFromCache&&m.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,s.fileName,D);return YAe(r,I,y,l.getSourceFiles())}}function YAe(t,r,s,l){if(!r)return;if(r.resolvedModule){const I=D(r.resolvedModule.resolvedFileName);if(I)return I}const m=Ot(r.failedLookupLocations,y)||U2(t.text)&&Ot(r.failedLookupLocations,T);if(m)return m;return r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1};function y(I){const W=s(I);return W&&lr(l,O=>O.fileName===W)?T(I):void 0}function T(I){return h_(I,"/package.json")?void 0:D(I)}function D(I){const W=s(I);return W&&{newFileName:W,updated:!0}}}function Qct(t,r,s,l){for(const m of t.referencedFiles||Zn){const y=s(m.fileName);y!==void 0&&y!==t.text.slice(m.pos,m.end)&&r.replaceRangeWithText(t,m,y)}for(const m of t.imports){const y=l(m);y!==void 0&&y!==m.text&&r.replaceRangeWithText(t,QAe(m,t),y)}}function QAe(t,r){return tv(t.getStart(r)+1,t.end-1)}function Cce(t,r){if(Wd(t))for(const s of t.properties)Fm(s)&&Wp(s.name)&&r(s,s.name.text)}var Zct=G({"src/services/getEditsForFileRename.ts"(){El()}});function vhe(t,r){return{kind:t,isCaseSensitive:r}}function r$e(t){const r=new Map,s=t.trim().split(".").map(l=>H8e(l.trim()));if(!s.some(l=>!l.subWordTextChunks.length))return{getFullMatch:(l,m)=>elt(l,m,s,r),getMatchForLastSegmentOfPattern:l=>eCe(l,yl(s),r),patternContainsDots:s.length>1}}function elt(t,r,s,l){if(!eCe(r,yl(s),l)||s.length-1>t.length)return;let y;for(let T=s.length-2,D=t.length-1;T>=0;T-=1,D-=1)y=o$e(y,eCe(t[D],s[T],l));return y}function ZAe(t,r){let s=r.get(t);return s||r.set(t,s=c$e(t)),s}function i$e(t,r,s){const l=s$e(t,r.textLowerCase);if(l===0)return vhe(r.text.length===t.length?0:1,xf(t,r.text));if(r.isLowerCase){if(l===-1)return;const m=ZAe(t,s);for(const y of m)if(bhe(t,y,r.text,!0))return vhe(2,bhe(t,y,r.text,!1));if(r.text.length0)return vhe(2,!0);if(r.characterSpans.length>0){const m=ZAe(t,s),y=_q(t,m,r,!1)?!0:_q(t,m,r,!0)?!1:void 0;if(y!==void 0)return vhe(3,y)}}}function eCe(t,r,s){if(rCe(r.totalTextChunk.text,y=>y!==32&&y!==42)){const y=i$e(t,r.totalTextChunk,s);if(y)return y}const l=r.subWordTextChunks;let m;for(const y of l)m=o$e(m,i$e(t,y,s));return m}function o$e(t,r){return qw([t,r],a$e)}function a$e(t,r){return t===void 0?1:r===void 0?-1:pf(t.kind,r.kind)||Z0(!t.isCaseSensitive,!r.isCaseSensitive)}function bhe(t,r,s,l,m={start:0,length:s.length}){return m.length<=r.length&&u$e(0,m.length,y=>tlt(s.charCodeAt(m.start+y),t.charCodeAt(r.start+y),l))}function tlt(t,r,s){return s?The(t)===The(r):t===r}function _q(t,r,s,l){const m=s.characterSpans;let y=0,T=0;for(;;){if(T===m.length)return!0;if(y===r.length)return!1;let D=r[y],I=!1;for(;T=65&&t<=90)return!0;if(t<127||!Fz(t,99))return!1;const r=String.fromCharCode(t);return r===r.toUpperCase()}function J8e(t){if(t>=97&&t<=122)return!0;if(t<127||!Fz(t,99))return!1;const r=String.fromCharCode(t);return r===r.toLowerCase()}function s$e(t,r){const s=t.length-r.length;for(let l=0;l<=s;l++)if(rCe(r,(m,y)=>The(t.charCodeAt(y+l))===m))return l;return-1}function The(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function tCe(t){return t>=48&&t<=57}function nlt(t){return dq(t)||J8e(t)||tCe(t)||t===95||t===36}function $8e(t){const r=[];let s=0,l=0;for(let m=0;m0&&(r.push(q8e(t.substr(s,l))),l=0)}return l>0&&r.push(q8e(t.substr(s,l))),r}function q8e(t){const r=t.toLowerCase();return{text:t,textLowerCase:r,isLowerCase:t===r,characterSpans:K8e(t)}}function K8e(t){return Wj(t,!1)}function c$e(t){return Wj(t,!0)}function Wj(t,r){const s=[];let l=0;for(let m=1;mnCe(l)&&l!==95,r,s)}function X8e(t,r,s){return r!==s&&r+1r(t.charCodeAt(m),m))}var Dce,Q8e=G({"src/services/patternMatcher.ts"(){El(),Dce=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(Dce||{})}});function iCe(t,r=!0,s=!1){const l={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},m=[];let y,T,D,I=0,W=!1;function O(){return T=D,D=lT.scan(),D===19?I++:D===20&&I--,D}function V(){const Le=lT.getTokenValue(),ht=lT.getTokenStart();return{fileName:Le,pos:ht,end:ht+Le.length}}function ee(){y||(y=[]),y.push({ref:V(),depth:I})}function te(){m.push(V()),oe()}function oe(){I===0&&(W=!0)}function de(){let Le=lT.getToken();return Le===138?(Le=O(),Le===144&&(Le=O(),Le===11&&ee()),!0):!1}function ue(){if(T===25)return!1;let Le=lT.getToken();if(Le===102){if(Le=O(),Le===21){if(Le=O(),Le===11||Le===15)return te(),!0}else{if(Le===11)return te(),!0;if(Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke!==161&&(ke===42||ke===19||ke===80||sE(ke))})&&(Le=O()),Le===80||sE(Le))if(Le=O(),Le===161){if(Le=O(),Le===11)return te(),!0}else if(Le===64){if(Be(!0))return!0}else if(Le===28)Le=O();else return!0;if(Le===19){for(Le=O();Le!==20&&Le!==1;)Le=O();Le===20&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))}else Le===42&&(Le=O(),Le===130&&(Le=O(),(Le===80||sE(Le))&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))))}return!0}return!1}function Ne(){let Le=lT.getToken();if(Le===95){if(oe(),Le=O(),Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke===42||ke===19})&&(Le=O()),Le===19){for(Le=O();Le!==20&&Le!==1;)Le=O();Le===20&&(Le=O(),Le===161&&(Le=O(),Le===11&&te()))}else if(Le===42)Le=O(),Le===161&&(Le=O(),Le===11&&te());else if(Le===102&&(Le=O(),Le===156&&lT.lookAhead(()=>{const ke=lT.scan();return ke===80||sE(ke)})&&(Le=O()),(Le===80||sE(Le))&&(Le=O(),Le===64&&Be(!0))))return!0;return!0}return!1}function Be(Le,ht=!1){let ke=Le?O():lT.getToken();return ke===149?(ke=O(),ke===21&&(ke=O(),(ke===11||ht&&ke===15)&&te()),!0):!1}function Ve(){let Le=lT.getToken();if(Le===80&&lT.getTokenValue()==="define"){if(Le=O(),Le!==21)return!0;if(Le=O(),Le===11||Le===15)if(Le=O(),Le===28)Le=O();else return!0;if(Le!==23)return!0;for(Le=O();Le!==24&&Le!==1;)(Le===11||Le===15)&&te(),Le=O();return!0}return!1}function pt(){for(lT.setText(t),O();lT.getToken()!==1;){if(lT.getToken()===16){const Le=[lT.getToken()];e:for(;Nt(Le);){const ht=lT.scan();switch(ht){case 1:break e;case 102:ue();break;case 16:Le.push(ht);break;case 19:Nt(Le)&&Le.push(ht);break;case 20:Nt(Le)&&(Yf(Le)===16?lT.reScanTemplateToken(!1)===18&&Le.pop():Le.pop());break}}O()}de()||ue()||Ne()||s&&(Be(!1,!0)||Ve())||O()}lT.setText(void 0)}if(r&&pt(),Hoe(l,t),Cpe(l,ku),W){if(y)for(const Le of y)m.push(Le.ref);return{referencedFiles:l.referencedFiles,typeReferenceDirectives:l.typeReferenceDirectives,libReferenceDirectives:l.libReferenceDirectives,importedFiles:m,isLibFile:!!l.hasNoDefaultLib,ambientExternalModules:void 0}}else{let Le;if(y)for(const ht of y)ht.depth===0?(Le||(Le=[]),Le.push(ht.ref.fileName)):m.push(ht.ref);return{referencedFiles:l.referencedFiles,typeReferenceDirectives:l.typeReferenceDirectives,libReferenceDirectives:l.libReferenceDirectives,importedFiles:m,isLibFile:!!l.hasNoDefaultLib,ambientExternalModules:Le}}}var f$e=G({"src/services/preProcess.ts"(){El()}});function oCe(t){const r=_v(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),l=new Map,m=new Map;return{tryGetSourcePosition:D,tryGetGeneratedPosition:I,toLineColumnOffset:ee,clearCache:te};function y(oe){return _h(oe,s,r)}function T(oe,de){const ue=y(oe),Ne=m.get(ue);if(Ne)return Ne;let Be;if(t.getDocumentPositionMapper)Be=t.getDocumentPositionMapper(oe,de);else if(t.readFile){const Ve=V(oe);Be=Ve&&Z8e({getSourceFileLike:V,getCanonicalFileName:r,log:pt=>t.log(pt)},oe,Xo(Ve.text,q1(Ve)),pt=>!t.fileExists||t.fileExists(pt)?t.readFile(pt):void 0)}return m.set(ue,Be||H2e),Be||H2e}function D(oe){if(!iT(oe.fileName)||!W(oe.fileName))return;const ue=T(oe.fileName).getSourcePosition(oe);return!ue||ue===oe?void 0:D(ue)||ue}function I(oe){if(iT(oe.fileName))return;const de=W(oe.fileName);if(!de)return;const ue=t.getProgram();if(ue.isSourceOfProjectReferenceRedirect(de.fileName))return;const Ne=ue.getCompilerOptions(),Be=Kg(Ne),Ve=Be?wg(Be)+".d.ts":Oie(oe.fileName,ue.getCompilerOptions(),s,ue.getCommonSourceDirectory(),r);if(Ve===void 0)return;const pt=T(Ve,oe.fileName).getGeneratedPosition(oe);return pt===oe?void 0:pt}function W(oe){const de=t.getProgram();if(!de)return;const ue=y(oe),Ne=de.getSourceFileByPath(ue);return Ne&&Ne.resolvedPath===ue?Ne:void 0}function O(oe){const de=y(oe),ue=l.get(de);if(ue!==void 0)return ue||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(de)){l.set(de,!1);return}const Ne=t.readFile(de),Be=Ne?rlt(Ne):!1;return l.set(de,Be),Be||void 0}function V(oe){return t.getSourceFileLike?t.getSourceFileLike(oe):W(oe)||O(oe)}function ee(oe,de){return V(oe).getLineAndCharacterOfPosition(de)}function te(){l.clear(),m.clear()}}function Z8e(t,r,s,l){let m=IHe(s);if(m){const D=e3e.exec(m);if(D){if(D[1]){const I=D[1];return _$e(t,SSe(m0,I),r)}m=void 0}}const y=[];m&&y.push(m),y.push(r+".map");const T=m&&Su(m,qc(r));for(const D of y){const I=Su(D,qc(r)),W=l(I,T);if(As(W))return _$e(t,W,I);if(W!==void 0)return W||void 0}}function _$e(t,r,s){const l=_me(r);if(!(!l||!l.sources||!l.file||!l.mappings)&&!(l.sourcesContent&&l.sourcesContent.some(As)))return XLe(t,l,s)}function rlt(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition(s){return Sb(q1(this),s)}}}var e3e,aCe=G({"src/services/sourcemaps.ts"(){El(),e3e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function tee(t,r,s){r.getSemanticDiagnostics(t,s);const l=[],m=r.getTypeChecker();!(t.impliedNodeFormat===1||ws(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(Z$(r)||nce(r.getCompilerOptions()))&&ilt(t)&&l.push(kc(alt(t.commonJsModuleIndicator),w.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const T=v1(t);if(uCe.clear(),D(t),VN(r.getCompilerOptions()))for(const I of t.imports){const W=b2(I),O=olt(W);if(!O)continue;const V=XU(t,I.text,kA(t,I)),ee=V&&r.getSourceFile(V.resolvedFileName);ee&&ee.externalModuleIndicator&&ee.externalModuleIndicator!==!0&&Ly(ee.externalModuleIndicator)&&ee.externalModuleIndicator.isExportEquals&&l.push(kc(O,w.Import_may_be_converted_to_a_default_import))}return Oi(l,t.bindSuggestionDiagnostics),Oi(l,r.getSuggestionDiagnostics(t,s)),l.sort((I,W)=>I.start-W.start);function D(I){if(T)slt(I,m)&&l.push(kc(ff(I.parent)?I.parent.name:I,w.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Dh(I)&&I.parent===t&&I.declarationList.flags&2&&I.declarationList.declarations.length===1){const O=I.declarationList.declarations[0].initializer;O&&eT(O,!0)&&l.push(kc(O,w.require_call_may_be_converted_to_an_import))}const W=If.getJSDocTypedefNodes(I);for(const O of W)l.push(kc(O,w.JSDoc_typedef_may_be_converted_to_TypeScript_type));If.parameterShouldGetTypeFromJSDoc(I)&&l.push(kc(I.name||I,w.JSDoc_types_may_be_moved_to_TypeScript_types))}kce(I)&&n3e(I,m,l),I.forEachChild(D)}}function ilt(t){return t.statements.some(r=>{switch(r.kind){case 243:return r.declarationList.declarations.some(s=>!!s.initializer&&eT(t3e(s.initializer),!0));case 244:{const{expression:s}=r;if(!ys(s))return eT(s,!0);const l=Qy(s);return l===1||l===2}default:return!1}})}function t3e(t){return sa(t)?t3e(t.expression):t}function olt(t){switch(t.kind){case 272:const{importClause:r,moduleSpecifier:s}=t;return r&&!r.name&&r.namedBindings&&r.namedBindings.kind===274&&Wp(s)?r.namedBindings.name:void 0;case 271:return t.name;default:return}}function n3e(t,r,s){sCe(t,r)&&!uCe.has(g$e(t))&&s.push(kc(!t.name&&ff(t.parent)&&An(t.parent.name)?t.parent.name:t,w.This_may_be_converted_to_an_async_function))}function sCe(t,r){return!FN(t)&&t.body&&E_(t.body)&&d$e(t.body,r)&&cCe(t,r)}function cCe(t,r){const s=r.getSignatureFromDeclaration(t),l=s?r.getReturnTypeOfSignature(s):void 0;return!!l&&!!r.getPromisedTypeOfPromise(l)}function alt(t){return ys(t)?t.left:t}function d$e(t,r){return!!HM(t,s=>lCe(s,r))}function lCe(t,r){return Bx(t)&&!!t.expression&&Ice(t.expression,r)}function Ice(t,r){if(!p$e(t)||!r3e(t)||!t.arguments.every(l=>m$e(l,r)))return!1;let s=t.expression.expression;for(;p$e(s)||sa(s);)if(el(s)){if(!r3e(s)||!s.arguments.every(l=>m$e(l,r)))return!1;s=s.expression.expression}else s=s.expression;return!0}function p$e(t){return el(t)&&(vZ(t,"then")||vZ(t,"catch")||vZ(t,"finally"))}function r3e(t){const r=t.expression.name.text,s=r==="then"?2:r==="catch"||r==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthl.kind===106||An(l)&&l.text==="undefined")}function m$e(t,r){switch(t.kind){case 262:case 218:if(L0(t)&1)return!1;case 219:uCe.set(g$e(t),!0);case 106:return!0;case 80:case 211:{const l=r.getSymbolAtLocation(t);return l?r.isUndefinedSymbol(l)||gt(dg(l,r).declarations,m=>S_(m)||NN(m)&&!!m.initializer&&S_(m.initializer)):!1}default:return!1}}function g$e(t){return`${t.pos.toString()}:${t.end.toString()}`}function slt(t,r){var s,l,m,y;if(Dm(t)){if(ff(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const T=r.getSymbolOfExpando(t,!1);return!!(T&&((l=T.exports)!=null&&l.size||(m=T.members)!=null&&m.size))}return b0(t)?!!((y=t.symbol.members)!=null&&y.size):!1}function kce(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var uCe,clt=G({"src/services/suggestionDiagnostics.ts"(){El(),uCe=new Map}});function Pce(t,r){const s=[],l=r.compilerOptions?_Ce(r.compilerOptions,s):{},m=sle();for(const ee in m)ef(m,ee)&&l[ee]===void 0&&(l[ee]=m[ee]);for(const ee of rae)l.verbatimModuleSyntax&&i3e.has(ee.name)||(l[ee.name]=ee.transpileOptionValue);l.suppressOutputPathCheck=!0,l.allowNonTsExtensions=!0;const y=JE(l),T={getSourceFile:ee=>ee===Fd(D)?I:void 0,writeFile:(ee,te)=>{Pg(ee,".map")?(ce.assertEqual(O,void 0,"Unexpected multiple source map outputs, file:",ee),O=te):(ce.assertEqual(W,void 0,"Unexpected multiple outputs, file:",ee),W=te)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:ee=>ee,getCurrentDirectory:()=>"",getNewLine:()=>y,fileExists:ee=>ee===D,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},D=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),I=Ape(D,t,{languageVersion:iu(l),impliedNodeFormat:ew(_h(D,"",T.getCanonicalFileName),void 0,T,l),setExternalModuleIndicator:q9(l)});r.moduleName&&(I.moduleName=r.moduleName),r.renamedDependencies&&(I.renamedDependencies=new Map(Object.entries(r.renamedDependencies)));let W,O;const V=p4([D],l,T);return r.reportDiagnostics&&(Oi(s,V.getSyntacticDiagnostics(I)),Oi(s,V.getOptionsDiagnostics())),V.emit(void 0,void 0,void 0,void 0,r.transformers),W===void 0?ce.fail("Output generation failed"):{outputText:W,diagnostics:s,sourceMapText:O}}function fCe(t,r,s,l,m){const y=Pce(t,{compilerOptions:r,fileName:s,reportDiagnostics:!!l,moduleName:m});return Oi(l,y.diagnostics),y.outputText}function _Ce(t,r){dCe=dCe||gi(fC,s=>typeof s.type=="object"&&!wT(s.type,l=>typeof l!="number")),t=DAe(t);for(const s of dCe){if(!ef(t,s.name))continue;const l=t[s.name];As(l)?t[s.name]=ZEe(s,l,r):wT(s.type,m=>m===l)||r.push(Q6e(s))}return t}var i3e,dCe,h$e=G({"src/services/transpile.ts"(){El(),i3e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function y$e(t,r,s,l,m,y){const T=r$e(l);if(!T)return Zn;const D=[];for(const I of t)s.throwIfCancellationRequested(),!(y&&I.isDeclarationFile)&&I.getNamedDeclarations().forEach((W,O)=>{pCe(T,O,W,r,I.fileName,D)});return D.sort(v$e),(m===void 0?D:D.slice(0,m)).map(a3e)}function pCe(t,r,s,l,m,y){const T=t.getMatchForLastSegmentOfPattern(r);if(T){for(const D of s)if(mCe(D,l))if(t.patternContainsDots){const I=t.getFullMatch(gCe(D),r);I&&y.push({name:r,fileName:m,matchKind:I.kind,isCaseSensitive:I.isCaseSensitive,declaration:D})}else y.push({name:r,fileName:m,matchKind:T.kind,isCaseSensitive:T.isCaseSensitive,declaration:D})}}function mCe(t,r){switch(t.kind){case 273:case 276:case 271:const s=r.getSymbolAtLocation(t.name),l=r.getAliasedSymbol(s);return s.escapedName!==l.escapedName;default:return!0}}function llt(t,r){const s=o_(t);return!!s&&(o3e(s,r)||s.kind===167&&She(s.expression,r))}function She(t,r){return o3e(t,r)||sa(t)&&(r.push(t.name.text),!0)&&She(t.expression,r)}function o3e(t,r){return yA(t)&&(r.push(aC(t)),!0)}function gCe(t){const r=[],s=o_(t);if(s&&s.kind===167&&!She(s.expression,r))return Zn;r.shift();let l=j3(t);for(;l;){if(!llt(l,r))return Zn;l=j3(l)}return r.reverse()}function v$e(t,r){return pf(t.matchKind,r.matchKind)||q5(t.name,r.name)}function a3e(t){const r=t.declaration,s=j3(r),l=s&&o_(s);return{name:t.name,kind:m4(r),kindModifiers:$$(r),matchKind:Dce[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:gE(r),containerName:l?l.text:"",containerKind:l?m4(s):""}}var ult=G({"src/services/navigateTo.ts"(){El()}}),s3e={};Oe(s3e,{getNavigateToItems:()=>y$e});var c3e=G({"src/services/_namespaces/ts.NavigateTo.ts"(){ult()}});function b$e(t,r){wce=r,iee=t;try{return Vn(flt(x$e(t)),_lt)}finally{S$e()}}function T$e(t,r){wce=r,iee=t;try{return m3e(x$e(t))}finally{S$e()}}function S$e(){iee=void 0,wce=void 0,Rce=[],rw=void 0,Dhe=[]}function nee(t){return ree(t.getText(iee))}function Ehe(t){return t.node.kind}function E$e(t,r){t.children?t.children.push(r):t.children=[r]}function x$e(t){ce.assert(!Rce.length);const r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};rw=r;for(const s of t.statements)lB(s);return b4(),ce.assert(!rw&&!Rce.length),r}function wF(t,r){E$e(rw,l3e(t,r))}function l3e(t,r){return{node:t,name:r||(dl(t)||Nr(t)?o_(t):void 0),additionalNodes:void 0,parent:rw,children:void 0,indent:rw.indent+1}}function hCe(t){Bj||(Bj=new Map),Bj.set(t,!0)}function u3e(t){for(let r=0;r0;l--){const m=s[l];q3(t,m)}return[s.length-1,s[0]]}function q3(t,r){const s=l3e(t,r);E$e(rw,s),Rce.push(rw),xCe.push(Bj),Bj=void 0,rw=s}function b4(){rw.children&&(L6(rw.children,rw),bCe(rw.children)),rw=Rce.pop(),Bj=xCe.pop()}function nw(t,r,s){q3(t,s),lB(r),b4()}function xhe(t){t.initializer&&I$e(t.initializer)?(q3(t),B_(t.initializer,lB),b4()):nw(t,t.initializer)}function yCe(t){return!nI(t)||t.kind!==226&&sa(t.name.expression)&&An(t.name.expression.expression)&&ec(t.name.expression.expression)==="Symbol"}function lB(t){if(wce.throwIfCancellationRequested(),!(!t||VC(t)))switch(t.kind){case 176:const r=t;nw(r,r.body);for(const T of r.parameters)Eb(T,r)&&wF(T);break;case 174:case 177:case 178:case 173:yCe(t)&&nw(t,t.body);break;case 172:yCe(t)&&xhe(t);break;case 171:yCe(t)&&wF(t);break;case 273:const s=t;s.name&&wF(s.name);const{namedBindings:l}=s;if(l)if(l.kind===274)wF(l);else for(const T of l.elements)wF(T);break;case 304:nw(t,t.name);break;case 305:const{expression:m}=t;An(m)?wF(t,m):wF(t);break;case 208:case 303:case 260:{const T=t;ld(T.name)?lB(T.name):xhe(T);break}case 262:const y=t.name;y&&An(y)&&hCe(y.text),nw(t,t.body);break;case 219:case 218:nw(t,t.body);break;case 266:q3(t);for(const T of t.members)h3e(T)||wF(T);b4();break;case 263:case 231:case 264:q3(t);for(const T of t.members)lB(T);b4();break;case 267:nw(t,C$e(t).body);break;case 277:{const T=t.expression,D=Wd(T)||el(T)?T:ph(T)||Dm(T)?T.body:void 0;D?(q3(t),lB(D),b4()):wF(t);break}case 281:case 271:case 181:case 179:case 180:case 265:wF(t);break;case 213:case 226:{const T=Qy(t);switch(T){case 1:case 2:nw(t,t.right);return;case 6:case 3:{const D=t,I=D.left,W=T===3?I.expression:I;let O=0,V;An(W.expression)?(hCe(W.expression.text),V=W.expression):[O,V]=f3e(D,W.expression),T===6?Wd(D.right)&&D.right.properties.length>0&&(q3(D,V),B_(D.right,lB),b4()):Dm(D.right)||ph(D.right)?nw(t,D.right,V):(q3(D,V),nw(t,D.right,I.name),b4()),u3e(O);return}case 7:case 9:{const D=t,I=T===7?D.arguments[0]:D.arguments[0].expression,W=D.arguments[1],[O,V]=f3e(t,I);q3(t,V),q3(t,vr(be.createIdentifier(W.text),W)),lB(t.arguments[2]),b4(),b4(),u3e(O);return}case 5:{const D=t,I=D.left,W=I.expression;if(An(W)&&XC(I)!=="prototype"&&Bj&&Bj.has(W.text)){Dm(D.right)||ph(D.right)?nw(t,D.right,W):XM(I)&&(q3(D,W),nw(D.left,D.right,dY(I)),b4());return}break}case 4:case 0:case 8:break;default:ce.assertNever(T)}}default:g1(t)&&Ot(t.jsDoc,T=>{Ot(T.tags,D=>{T2(D)&&wF(D)})}),B_(t,lB)}}function L6(t,r){const s=new Map;vd(t,(l,m)=>{const y=l.name||o_(l.node),T=y&&nee(y);if(!T)return!0;const D=s.get(T);if(!D)return s.set(T,l),!0;if(D instanceof Array){for(const I of D)if(d3e(I,l,m,r))return!1;return D.push(l),!0}else{const I=D;return d3e(I,l,m,r)?!1:(s.set(T,[I,l]),!0)}})}function _3e(t,r,s,l){function m(D){return Dm(D)||b0(D)||ff(D)}const y=ys(r.node)||el(r.node)?Qy(r.node):0,T=ys(t.node)||el(t.node)?Qy(t.node):0;if(oee[y]&&oee[T]||m(t.node)&&oee[y]||m(r.node)&&oee[T]||Kc(t.node)&&vCe(t.node)&&oee[y]||Kc(r.node)&&oee[T]||Kc(t.node)&&vCe(t.node)&&m(r.node)||Kc(r.node)&&m(t.node)&&vCe(t.node)){let D=t.additionalNodes&&Yf(t.additionalNodes)||t.node;if(!Kc(t.node)&&!Kc(r.node)||m(t.node)||m(r.node)){const W=m(t.node)?t.node:m(r.node)?r.node:void 0;if(W!==void 0){const O=vr(be.createConstructorDeclaration(void 0,[],void 0),W),V=l3e(O);V.indent=t.indent+1,V.children=t.node===W?t.children:r.children,t.children=t.node===W?Hi([V],r.children||[r]):Hi(t.children||[{...t}],[V])}else(t.children||r.children)&&(t.children=Hi(t.children||[{...t}],r.children||[r]),t.children&&(L6(t.children,t),bCe(t.children)));D=t.node=vr(be.createClassDeclaration(void 0,t.name||be.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=Hi(t.children,r.children),t.children&&L6(t.children,t);const I=r.node;return l.children[s-1].node.end===D.end?vr(D,{pos:D.pos,end:I.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(vr(be.createClassDeclaration(void 0,t.name||be.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return y!==0}function d3e(t,r,s,l){return _3e(t,r,s,l)?!0:A$e(t.node,r.node,l)?(X3(t,r),!0):!1}function A$e(t,r,s){if(t.kind!==r.kind||t.parent!==r.parent&&!(K3(t,s)&&K3(r,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return e_(t)===e_(r);case 267:return T4(t,r)&&TCe(t)===TCe(r);default:return!0}}function vCe(t){return!!(t.flags&16)}function K3(t,r){const s=z0(t.parent)?t.parent.parent:t.parent;return s===r.node||ni(r.additionalNodes,s)}function T4(t,r){return!t.body||!r.body?t.body===r.body:t.body.kind===r.body.kind&&(t.body.kind!==267||T4(t.body,r.body))}function X3(t,r){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&t.additionalNodes.push(...r.additionalNodes),t.children=Hi(t.children,r.children),t.children&&(L6(t.children,t),bCe(t.children))}function bCe(t){t.sort(p3e)}function p3e(t,r){return q5(uB(t.node),uB(r.node))||pf(Ehe(t),Ehe(r))}function uB(t){if(t.kind===267)return g3e(t);const r=o_(t);if(r&&fy(r)){const s=WN(r);return s&&lf(s)}switch(t.kind){case 218:case 219:case 231:return SCe(t);default:return}}function Nce(t,r){if(t.kind===267)return ree(g3e(t));if(r){const s=An(r)?r.text:Ed(r)?`[${nee(r.argumentExpression)}]`:nee(r);if(s.length>0)return ree(s)}switch(t.kind){case 312:const s=t;return Wv(s)?`"${M7(Iy(wg(Fd(s.fileName))))}"`:"";case 277:return Ly(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return n6(t)&1024?"default":SCe(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function flt(t){const r=[];function s(m){if(l(m)&&(r.push(m),m.children))for(const y of m.children)s(y)}return s(t),r;function l(m){if(m.children)return!0;switch(Ehe(m)){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 y(m);default:return!1}function y(T){if(!T.node.body)return!1;switch(Ehe(T.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function m3e(t){return{text:Nce(t.node,t.name),kind:m4(t.node),kindModifiers:v3e(t.node),spans:Ahe(t),nameSpan:t.name&&y3e(t.name),childItems:Vn(t.children,m3e)}}function _lt(t){return{text:Nce(t.node,t.name),kind:m4(t.node),kindModifiers:v3e(t.node),spans:Ahe(t),childItems:Vn(t.children,r)||Dhe,indent:t.indent,bolded:!1,grayed:!1};function r(s){return{text:Nce(s.node,s.name),kind:m4(s.node),kindModifiers:$$(s.node),spans:Ahe(s),childItems:Dhe,indent:0,bolded:!1,grayed:!1}}}function Ahe(t){const r=[y3e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)r.push(y3e(s));return r}function g3e(t){return Ov(t)?Yv(t.name):TCe(t)}function TCe(t){const r=[aC(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,r.push(aC(t.name));return r.join(".")}function C$e(t){return t.body&&xp(t.body)?C$e(t.body):t}function h3e(t){return!t.name||t.name.kind===167}function y3e(t){return t.kind===312?FR(t):gE(t,iee)}function v3e(t){return t.parent&&t.parent.kind===260&&(t=t.parent),$$(t)}function SCe(t){const{parent:r}=t;if(t.name&&KU(t.name)>0)return ree(Ud(t.name));if(ff(r))return ree(Ud(r.name));if(ys(r)&&r.operatorToken.kind===64)return nee(r.left).replace(ECe,"");if(Fm(r))return nee(r.name);if(n6(t)&1024)return"default";if(Jl(t))return"";if(el(r)){let s=D$e(r.expression);if(s!==void 0){if(s=ree(s),s.length>Che)return`${s} callback`;const l=ree(Qo(r.arguments,m=>sp(m)?m.getText(iee):void 0).join(", "));return`${s}(${l}) callback`}}return""}function D$e(t){if(An(t))return t.text;if(sa(t)){const r=D$e(t.expression),s=t.name.text;return r===void 0?s:`${r}.${s}`}else return}function I$e(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function ree(t){return t=t.length>Che?t.substring(0,Che)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var ECe,Che,wce,iee,Rce,rw,xCe,Bj,Dhe,oee,aee=G({"src/services/navigationBar.ts"(){El(),ECe=/\s+/g,Che=150,Rce=[],xCe=[],Dhe=[],oee={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),b3e={};Oe(b3e,{getNavigationBarItems:()=>b$e,getNavigationTree:()=>T$e});var Ihe=G({"src/services/_namespaces/ts.NavigationBar.ts"(){aee()}});function SI(t,r){wP.set(t,r)}function Mce(t,r){return oc(Ky(wP.values(),s=>{var l;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((l=s.kinds)!=null&&l.some(m=>Y3(m,t.kind)))?void 0:s.getAvailableActions(t,r)}))}function Lce(t,r,s,l){const m=wP.get(r);return m&&m.getEditsForAction(t,s,l)}var wP,ACe=G({"src/services/refactorProvider.ts"(){El(),MP(),wP=new Map}});function zj(t,r=!0){const{file:s,program:l}=t,m=aB(t),y=bf(s,m.start),T=y.parent&&n6(y.parent)&1&&r?y.parent:Nk(y,s,m);if(!T||!tl(T.parent)&&!(z0(T.parent)&&Ov(T.parent.parent)))return{error:fs(w.Could_not_find_export_statement)};const D=l.getTypeChecker(),I=plt(T.parent,D),W=n6(T)||(Ly(T)&&!T.isExportEquals?1025:0),O=!!(W&1024);if(!(W&1)||!O&&I.exports.has("default"))return{error:fs(w.This_file_already_has_a_default_export)};const V=ee=>An(ee)&&D.getSymbolAtLocation(ee)?void 0:{error:fs(w.Can_only_convert_named_export)};switch(T.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const ee=T;return ee.name?V(ee.name)||{exportNode:ee,exportName:ee.name,wasDefault:O,exportingModuleSymbol:I}:void 0}case 243:{const ee=T;if(!(ee.declarationList.flags&2)||ee.declarationList.declarations.length!==1)return;const te=Dl(ee.declarationList.declarations);return te.initializer?(ce.assert(!O,"Can't have a default flag here"),V(te.name)||{exportNode:ee,exportName:te.name,wasDefault:O,exportingModuleSymbol:I}):void 0}case 277:{const ee=T;return ee.isExportEquals?void 0:V(ee.expression)||{exportNode:ee,exportName:ee.expression,wasDefault:O,exportingModuleSymbol:I}}default:return}}function CCe(t,r,s,l,m){see(t,s,l,r.getTypeChecker()),dlt(r,s,l,m)}function see(t,{wasDefault:r,exportNode:s,exportName:l},m,y){if(r)if(Ly(s)&&!s.isExportEquals){const T=s.expression,D=P$e(T.text,T.text);m.replaceNode(t,s,be.createExportDeclaration(void 0,!1,be.createNamedExports([D])))}else m.delete(t,ce.checkDefined(YW(s,90),"Should find a default keyword in modifier list"));else{const T=ce.checkDefined(YW(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:m.insertNodeAfter(t,T,be.createToken(90));break;case 243:const D=Dl(s.declarationList.declarations);if(!Wf.Core.isSymbolReferencedInFile(l,y,t)&&!D.type){m.replaceNode(t,s,be.createExportDefault(ce.checkDefined(D.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:m.deleteModifier(t,T),m.insertNodeAfter(t,s,be.createExportDefault(be.createIdentifier(l.text)));break;default:ce.fail(`Unexpected exportNode kind ${s.kind}`)}}}function dlt(t,{wasDefault:r,exportName:s,exportingModuleSymbol:l},m,y){const T=t.getTypeChecker(),D=ce.checkDefined(T.getSymbolAtLocation(s),"Export name should resolve to a symbol");Wf.Core.eachExportReference(t.getSourceFiles(),T,y,D,l,s.text,r,I=>{if(s===I)return;const W=I.getSourceFile();r?T3e(W,I,m,s.text):k$e(W,I,m)})}function T3e(t,r,s,l){const{parent:m}=r;switch(m.kind){case 211:s.replaceNode(t,r,be.createIdentifier(l));break;case 276:case 281:{const T=m;s.replaceNode(t,T,wk(l,T.name.text));break}case 273:{const T=m;ce.assert(T.name===r,"Import clause name should match provided ref");const D=wk(l,r.text),{namedBindings:I}=T;if(!I)s.replaceNode(t,r,be.createNamedImports([D]));else if(I.kind===274){s.deleteRange(t,{pos:r.getStart(t),end:I.getStart(t)});const W=Wp(T.parent.moduleSpecifier)?tq(T.parent.moduleSpecifier,t):1,O=Pk(void 0,[wk(l,r.text)],T.parent.moduleSpecifier,W);s.insertNodeAfter(t,T.parent,O)}else s.delete(t,r),s.insertNodeAtEndOfList(t,I.elements,D);break}case 205:const y=m;s.replaceNode(t,m,be.createImportTypeNode(y.argument,y.assertions,be.createIdentifier(l),y.typeArguments,y.isTypeOf));break;default:ce.failBadSyntaxKind(m)}}function k$e(t,r,s){const l=r.parent;switch(l.kind){case 211:s.replaceNode(t,r,be.createIdentifier("default"));break;case 276:{const m=be.createIdentifier(l.name.text);l.parent.elements.length===1?s.replaceNode(t,l.parent,m):(s.delete(t,l),s.insertNodeBefore(t,l.parent,m));break}case 281:{s.replaceNode(t,l,P$e("default",l.name.text));break}default:ce.assertNever(l,`Unexpected parent kind ${l.kind}`)}}function wk(t,r){return be.createImportSpecifier(!1,t===r?void 0:be.createIdentifier(t),be.createIdentifier(r))}function P$e(t,r){return be.createExportSpecifier(!1,t===r?void 0:be.createIdentifier(t),be.createIdentifier(r))}function plt(t,r){if(tl(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&WL(s.valueDeclaration)?r.getMergedSymbol(s):s}var cee,Oce,Fce,mlt=G({"src/services/refactors/convertExport.ts"(){El(),MP(),cee="Convert export",Oce={name:"Convert default export to named export",description:fs(w.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Fce={name:"Convert named export to default export",description:fs(w.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},SI(cee,{kinds:[Oce.kind,Fce.kind],getAvailableActions:function(r){const s=zj(r,r.triggerReason==="invoked");if(!s)return Zn;if(!I2(s)){const l=s.wasDefault?Oce:Fce;return[{name:cee,description:l.description,actions:[l]}]}return r.preferences.provideRefactorNotApplicableReason?[{name:cee,description:fs(w.Convert_default_export_to_named_export),actions:[{...Oce,notApplicableReason:s.error},{...Fce,notApplicableReason:s.error}]}]:Zn},getEditsForAction:function(r,s){ce.assert(s===Oce.name||s===Fce.name,"Unexpected action name");const l=zj(r);return ce.assert(l&&!I2(l),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(r,y=>CCe(r.file,r.program,l,y,r.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function N$e(t,r=!0){const{file:s}=t,l=aB(t),m=bf(s,l.start),y=r?Kr(m,Fv):Nk(m,s,l);if(!y||!Fv(y))return{error:"Selection is not an import declaration."};const T=l.start+l.length,D=Aj(y,y.parent,s);if(D&&T>D.getStart())return;const{importClause:I}=y;return I?I.namedBindings?I.namedBindings.kind===274?{convertTo:0,import:I.namedBindings}:w$e(t.program,I)?{convertTo:1,import:I.namedBindings}:{convertTo:2,import:I.namedBindings}:{error:fs(w.Could_not_find_namespace_import_or_named_imports)}:{error:fs(w.Could_not_find_import_clause)}}function w$e(t,r){return VN(t.getCompilerOptions())&&ICe(r.parent.moduleSpecifier,t.getTypeChecker())}function glt(t,r,s,l){const m=r.getTypeChecker();l.convertTo===0?hlt(t,m,s,l.import,VN(r.getCompilerOptions())):M$e(t,r,s,l.import,l.convertTo===1)}function hlt(t,r,s,l,m){let y=!1;const T=[],D=new Map;Wf.Core.eachSymbolReferenceInFile(l.name,r,t,V=>{if(!Uz(V.parent))y=!0;else{const ee=DCe(V.parent).text;r.resolveName(ee,V,67108863,!0)&&D.set(ee,!0),ce.assert(R$e(V.parent)===V,"Parent expression should match id"),T.push(V.parent)}});const I=new Map;for(const V of T){const ee=DCe(V).text;let te=I.get(ee);te===void 0&&I.set(ee,te=D.has(ee)?eB(ee,t):ee),s.replaceNode(t,V,be.createIdentifier(te))}const W=[];I.forEach((V,ee)=>{W.push(be.createImportSpecifier(!1,V===ee?void 0:be.createIdentifier(ee),be.createIdentifier(V)))});const O=l.parent.parent;y&&!m?s.insertNodeAfter(t,O,lee(O,void 0,W)):s.replaceNode(t,O,lee(O,y?be.createIdentifier(l.name.text):void 0,W))}function DCe(t){return sa(t)?t.name:t.right}function R$e(t){return sa(t)?t.expression:t.left}function M$e(t,r,s,l,m=w$e(r,l.parent)){const y=r.getTypeChecker(),T=l.parent.parent,{moduleSpecifier:D}=T,I=new Set;l.elements.forEach(oe=>{const de=y.getSymbolAtLocation(oe.name);de&&I.add(de)});const W=D&&Wp(D)?If.moduleSpecifierToValidIdentifier(D.text,99):"module";function O(oe){return!!Wf.Core.eachSymbolReferenceInFile(oe.name,y,t,de=>{const ue=y.resolveName(W,de,67108863,!0);return ue?I.has(ue)?Oy(de.parent):!0:!1})}const ee=l.elements.some(O)?eB(W,t):W,te=new Set;for(const oe of l.elements){const de=(oe.propertyName||oe.name).text;Wf.Core.eachSymbolReferenceInFile(oe.name,y,t,ue=>{const Ne=be.createPropertyAccessExpression(be.createIdentifier(ee),de);BT(ue.parent)?s.replaceNode(t,ue.parent,be.createPropertyAssignment(ue.text,Ne)):Oy(ue.parent)?te.add(oe):s.replaceNode(t,ue,Ne)})}if(s.replaceNode(t,l,m?be.createIdentifier(ee):be.createNamespaceImport(be.createIdentifier(ee))),te.size){const oe=oc(te.values(),de=>be.createImportSpecifier(de.isTypeOnly,de.propertyName&&be.createIdentifier(de.propertyName.text),be.createIdentifier(de.name.text)));s.insertNodeAfter(t,l.parent.parent,lee(T,void 0,oe))}}function ICe(t,r){const s=r.resolveExternalModuleName(t);if(!s)return!1;const l=r.resolveExternalModuleSymbol(s);return s!==l}function lee(t,r,s){return be.createImportDeclaration(void 0,be.createImportClause(!1,r,s&&s.length?be.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var pq,khe,L$e=G({"src/services/refactors/convertImport.ts"(){El(),MP(),pq="Convert import",khe={0:{name:"Convert namespace import to named imports",description:fs(w.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:fs(w.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:fs(w.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},SI(pq,{kinds:ik(khe).map(t=>t.kind),getAvailableActions:function(r){const s=N$e(r,r.triggerReason==="invoked");if(!s)return Zn;if(!I2(s)){const l=khe[s.convertTo];return[{name:pq,description:l.description,actions:[l]}]}return r.preferences.provideRefactorNotApplicableReason?ik(khe).map(l=>({name:pq,description:l.description,actions:[{...l,notApplicableReason:s.error}]})):Zn},getEditsForAction:function(r,s){ce.assert(gt(ik(khe),y=>y.name===s),"Unexpected action name");const l=N$e(r);return ce.assert(l&&!I2(l),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(r,y=>glt(r.file,r.program,y,l)),renameFilename:void 0,renameLocation:void 0}}})}});function S3e(t,r=!0){const{file:s,startPosition:l}=t,m=v1(s),y=bf(s,l),T=PZ(aB(t)),D=T.pos===T.end&&r,I=Kr(y,te=>te.parent&&Uu(te)&&!RF(T,te.parent,s)&&(D||g4(y,s,T.pos,T.end)));if(!I||!Uu(I))return{error:fs(w.Selection_is_not_a_valid_type_node)};const W=t.program.getTypeChecker(),O=x3e(I,m);if(O===void 0)return{error:fs(w.No_type_could_be_extracted_from_this_type_node)};const V=O$e(W,I,O,s);if(!V)return{error:fs(w.No_type_could_be_extracted_from_this_type_node)};const ee=E3e(W,I);return{isJS:m,selection:I,enclosingNode:O,typeParameters:V,typeElements:ee}}function E3e(t,r){if(r)if(MJ(r)){const s=[],l=new Map;for(const m of r.types){const y=E3e(t,m);if(!y||!y.every(T=>T.name&&y0(l,Cj(T.name))))return;Oi(s,y)}return s}else{if(xR(r))return E3e(t,r.type);if(e0(r))return r.members}}function RF(t,r,s){return AZ(t,ep(s.text,r.pos),r.end)}function O$e(t,r,s,l){const m=[];return y(r)?void 0:m;function y(T){if(x2(T)){if(An(T.typeName)){const D=T.typeName,I=t.resolveName(D.text,D,262144,!0);for(const W of(I==null?void 0:I.declarations)||Zn)if(Hh(W)&&W.getSourceFile()===l){if(W.name.escapedText===D.escapedText&&RF(W,r,l))return!0;if(RF(s,W,l)&&!RF(r,W,l)){Dy(m,W);break}}}}else if(fI(T)){const D=Kr(T,I=>hW(I)&&RF(I.extendsType,T,l));if(!D||!RF(r,D,l))return!0}else if(Y7(T)||Q7(T)){const D=Kr(T.parent,S_);if(D&&D.type&&RF(D.type,T,l)&&!RF(r,D,l))return!0}else if(uE(T)){if(An(T.exprName)){const D=t.resolveName(T.exprName.text,T.exprName,111551,!1);if(D!=null&&D.valueDeclaration&&RF(s,D.valueDeclaration,l)&&!RF(r,D.valueDeclaration,l))return!0}else if(Zy(T.exprName.left)&&!RF(r,T.parent,l))return!0}return l&&m6(T)&&Ah(l,T.pos).line===Ah(l,T.end).line&&Sa(T,1),B_(T,y)}}function ylt(t,r,s,l){const{enclosingNode:m,selection:y,typeParameters:T}=l,D=be.createTypeAliasDeclaration(void 0,s,T.map(I=>be.updateTypeParameterDeclaration(I,I.modifiers,I.name,I.constraint,void 0)),y);t.insertNodeBefore(r,m,tpe(D),!0),t.replaceNode(r,y,be.createTypeReferenceNode(s,T.map(I=>be.createTypeReferenceNode(I.name,void 0))),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.ExcludeWhitespace})}function F$e(t,r,s,l){var m;const{enclosingNode:y,selection:T,typeParameters:D,typeElements:I}=l,W=be.createInterfaceDeclaration(void 0,s,D,void 0,I);vr(W,(m=I[0])==null?void 0:m.parent),t.insertNodeBefore(r,y,tpe(W),!0),t.replaceNode(r,T,be.createTypeReferenceNode(s,D.map(O=>be.createTypeReferenceNode(O.name,void 0))),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.ExcludeWhitespace})}function vlt(t,r,s,l,m){var y;const{enclosingNode:T,selection:D,typeParameters:I}=m;Sa(D,7168);const W=be.createJSDocTypedefTag(be.createIdentifier("typedef"),be.createJSDocTypeExpression(D),be.createIdentifier(l)),O=[];Ot(I,ee=>{const te=AN(ee),oe=be.createTypeParameterDeclaration(void 0,ee.name),de=be.createJSDocTemplateTag(be.createIdentifier("template"),te&&uc(te,pI),[oe]);O.push(de)});const V=be.createJSDocComment(void 0,be.createNodeArray(Hi(O,[W])));if(Gx(T)){const ee=T.getStart(s),te=NP(r.host,(y=r.formatContext)==null?void 0:y.options);t.insertNodeAt(s,T.getStart(s),V,{suffix:te+te+s.text.slice(wj(s.text,ee-1),ee)})}else t.insertNodeBefore(s,T,V,!0);t.replaceNode(s,D,be.createTypeReferenceNode(l,I.map(ee=>be.createTypeReferenceNode(ee.name,void 0))))}function x3e(t,r){return Kr(t,uf)||(r?Kr(t,Gx):void 0)}var uee,Gj,Phe,Wce,kCe=G({"src/services/refactors/extractType.ts"(){El(),MP(),uee="Extract type",Gj={name:"Extract to type alias",description:fs(w.Extract_to_type_alias),kind:"refactor.extract.type"},Phe={name:"Extract to interface",description:fs(w.Extract_to_interface),kind:"refactor.extract.interface"},Wce={name:"Extract to typedef",description:fs(w.Extract_to_typedef),kind:"refactor.extract.typedef"},SI(uee,{kinds:[Gj.kind,Phe.kind,Wce.kind],getAvailableActions:function(r){const s=S3e(r,r.triggerReason==="invoked");return s?I2(s)?r.preferences.provideRefactorNotApplicableReason?[{name:uee,description:fs(w.Extract_type),actions:[{...Wce,notApplicableReason:s.error},{...Gj,notApplicableReason:s.error},{...Phe,notApplicableReason:s.error}]}]:Zn:[{name:uee,description:fs(w.Extract_type),actions:s.isJS?[Wce]:ur([Gj],s.typeElements&&Phe)}]:Zn},getEditsForAction:function(r,s){const{file:l}=r,m=S3e(r);ce.assert(m&&!I2(m),"Expected to find a range to extract");const y=eB("NewType",l),T=Hs.ChangeTracker.with(r,W=>{switch(s){case Gj.name:return ce.assert(!m.isJS,"Invalid actionName/JS combo"),ylt(W,l,y,m);case Wce.name:return ce.assert(m.isJS,"Invalid actionName/JS combo"),vlt(W,r,l,y,m);case Phe.name:return ce.assert(!m.isJS&&!!m.typeElements,"Invalid actionName/JS combo"),F$e(W,l,y,m);default:ce.fail("Unexpected action name")}}),D=l.fileName,I=WR(T,D,y,!1);return{edits:T,renameFilename:D,renameLocation:I}}})}});function I2(t){return t.error!==void 0}function Y3(t,r){return r?t.substr(0,r.length)===r:!0}var blt=G({"src/services/refactors/helpers.ts"(){}});function W$e(t,r,s,l){var m,y;const T=l.getTypeChecker(),D=Hx(t,r),I=D.parent;if(An(D)){if(J9(I)&&x9(I)&&An(I.name)){if(((m=T.getMergedSymbol(I.symbol).declarations)==null?void 0:m.length)!==1)return{error:fs(w.Variables_with_multiple_declarations_cannot_be_inlined)};if(B$e(I))return;const W=PCe(I,T,t);return W&&{references:W,declaration:I,replacement:I.initializer}}if(s){let W=T.resolveName(D.text,D,111551,!1);if(W=W&&T.getMergedSymbol(W),((y=W==null?void 0:W.declarations)==null?void 0:y.length)!==1)return{error:fs(w.Variables_with_multiple_declarations_cannot_be_inlined)};const O=W.declarations[0];if(!J9(O)||!x9(O)||!An(O.name)||B$e(O))return;const V=PCe(O,T,t);return V&&{references:V,declaration:O,replacement:O.initializer}}return{error:fs(w.Could_not_find_variable_to_inline)}}}function B$e(t){const r=uc(t.parent.parent,Dh);return gt(r.modifiers,fW)}function PCe(t,r,s){const l=[],m=Wf.Core.eachSymbolReferenceInFile(t.name,r,s,y=>{if(Wf.isWriteAccessForReference(y)||Oy(y.parent)||Ly(y.parent)||uE(y.parent)||Bz(t,y.pos))return!0;l.push(y)});return l.length===0||m?void 0:l}function Tlt(t,r){r=Rg(r);const{parent:s}=t;return Nr(s)&&(UL(r){for(const V of T)O.replaceNode(s,V,Tlt(V,I));O.delete(s,D)})}}})}});function whe(t,r,s,l,m,y,T){const D=r.getTypeChecker(),I=Whe(t,s.all,D),W=R3e(t,r,T,m);l.createNewFile(t,W,Slt(t,I,l,s,r,m,W,y)),zce(r,l,t.fileName,W,hR(m))}function Slt(t,r,s,l,m,y,T,D){const I=m.getTypeChecker(),W=Yn(t.statements,qC);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0)return Mhe(t,l.ranges,s),[...W,...l.all];const O=!WAe(T,m,y,!!t.commonJsModuleIndicator),V=Jx(t,D),ee=I3e(t,r.oldFileImportsFromTargetFile,T,m,y,O,V);ee&&OS(s,t,ee,!0,D),C3e(t,l.all,s,r.unusedImportsFromOldFile,I),Mhe(t,l.ranges,s),D3e(s,m,y,t,r.movedSymbols,T,V);const te=BR(t,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,s,I,m,y,O,V),oe=Lhe(t,l.all,r.oldFileImportsFromTargetFile,O);return te.length&&oe.length?[...W,...te,4,...oe]:[...W,...te,...oe]}function BR(t,r,s,l,m,y,T,D,I){const W=[];for(const te of t.statements)dee(te,oe=>{ur(W,fB(oe,Vce(oe),de=>r.has(m.getSymbolAtLocation(de))))});let O;const V=[],ee=CF();return s.forEach(te=>{if(te.declarations)for(const oe of te.declarations){if(!mee(oe))continue;const de=MCe(oe);if(!de)continue;const ue=$ce(oe);ee(ue)&&w3e(t,ue,de,l,D),il(oe,1024)?O=de:V.push(de.text)}}),ur(W,Uce(t,O,V,Iy(t.fileName),y,T,D,I)),W}var RP,NCe,Rhe,z$e=G({"src/services/refactors/moveToNewFile.ts"(){El(),MP(),RP="Move to a new file",NCe=fs(w.Move_to_a_new_file),Rhe={name:RP,description:NCe,kind:"refactor.move.newFile"},SI(RP,{kinds:[Rhe.kind],getAvailableActions:function(r){const s=qce(r);return r.preferences.allowTextChangesInNewFiles&&s?[{name:RP,description:NCe,actions:[Rhe]}]:r.preferences.provideRefactorNotApplicableReason?[{name:RP,description:NCe,actions:[{...Rhe,notApplicableReason:fs(w.Selection_is_not_a_valid_statement_or_statements)}]}]:Zn},getEditsForAction:function(r,s){ce.assert(s===RP,"Wrong refactor invoked");const l=ce.checkDefined(qce(r));return{edits:Hs.ChangeTracker.with(r,y=>whe(r.file,r.program,l,y,r.host,r.preferences,r)),renameFilename:void 0,renameLocation:void 0}}})}});function A3e(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function Elt(t,r,s,l,m,y,T,D){const I=l.getTypeChecker(),W=Whe(r,m.all,I);if(!T.fileExists(s))y.createNewFile(r,s,_ee(r,s,W,y,m,l,T,D)),zce(l,y,r.fileName,s,hR(T));else{const O=ce.checkDefined(l.getSourceFile(s)),V=If.createImportAdder(O,t.program,t.preferences,t.host);_ee(r,O,W,y,m,l,T,D,V)}}function _ee(t,r,s,l,m,y,T,D,I){const W=y.getTypeChecker(),O=Yn(t.statements,qC);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof r=="string")return Mhe(t,m.ranges,l),[...O,...m.all];const V=typeof r=="string"?r:r.fileName,ee=!WAe(V,y,T,!!t.commonJsModuleIndicator),te=Jx(t,D),oe=I3e(t,s.oldFileImportsFromTargetFile,V,y,T,ee,te);oe&&OS(l,t,oe,!0,D),C3e(t,m.all,l,s.unusedImportsFromOldFile,W),Mhe(t,m.ranges,l),D3e(l,y,T,t,s.movedSymbols,V,te);const de=wCe(t,V,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,l,W,y,T,ee,te,I),ue=Lhe(t,m.all,s.oldFileImportsFromTargetFile,ee);return typeof r!="string"&&(r.statements.length>0?klt(l,y,ue,r,m):l.insertNodesAtEndOfFile(r,ue,!1),de.length>0&&OS(l,r,de,!0,D)),I&&I.writeFixes(l,te),de.length&&ue.length?[...O,...de,4,...ue]:[...O,...de,...ue]}function wCe(t,r,s,l,m,y,T,D,I,W,O){const V=[];if(O)s.forEach((ue,Ne)=>{try{O.addImportFromExportedSymbol(dg(Ne,y),ue)}catch{for(const Be of t.statements)dee(Be,Ve=>{ur(V,fB(Ve,be.createStringLiteral(Vce(Ve).text),pt=>s.has(y.getSymbolAtLocation(pt))))})}});else{const ue=T.getSourceFile(r);for(const Ne of t.statements)dee(Ne,Be=>{var Ve,pt;const Le=Vce(Be),ht=(Ve=t.resolvedModules)==null?void 0:Ve.get(Le.text,kA(t,Le)),ke=(pt=ht==null?void 0:ht.resolvedModule)==null?void 0:pt.resolvedFileName;if(ke&&ue){const _t=ime(T.getCompilerOptions(),ue,ue.path,ke,h4(T,D));ur(V,fB(Be,DF(_t,W),Dt=>s.has(y.getSymbolAtLocation(Dt))))}else ur(V,fB(Be,be.createStringLiteral(Vce(Be).text),_t=>s.has(y.getSymbolAtLocation(_t))))})}const ee=T.getSourceFile(r);let te;const oe=[],de=CF();return l.forEach(ue=>{if(ue.declarations)for(const Ne of ue.declarations){if(!mee(Ne))continue;const Be=MCe(Ne);if(!Be)continue;const Ve=$ce(Ne);de(Ve)&&w3e(t,Ve,Be,m,I),O&&y.isUnknownSymbol(ue)?O.addImportFromExportedSymbol(dg(ue,y)):il(Ne,1024)?te=Be:oe.push(Be.text)}}),ee?ur(V,Uce(ee,te,oe,t.fileName,T,D,I,W)):ur(V,Uce(t,te,oe,t.fileName,T,D,I,W))}function zce(t,r,s,l,m){const y=t.getCompilerOptions().configFile;if(!y)return;const T=Fd(tf(s,"..",l)),D=wX(y.fileName,T,m),I=y.statements[0]&&to(y.statements[0].expression,Wd),W=I&&lr(I.properties,O=>Fm(O)&&Wp(O.name)&&O.name.text==="files");W&&Ch(W.initializer)&&r.insertNodeInListAfter(y,yl(W.initializer.elements),be.createStringLiteral(D),W.initializer.elements)}function Mhe(t,r,s){for(const{first:l,afterLast:m}of r)s.deleteNodeRangeExcludingEnd(t,l,m)}function C3e(t,r,s,l,m){for(const y of t.statements)ni(r,y)||dee(y,T=>Ohe(t,T,s,D=>l.has(m.getSymbolAtLocation(D))))}function D3e(t,r,s,l,m,y,T){const D=r.getTypeChecker();for(const I of r.getSourceFiles())if(I!==l)for(const W of I.statements)dee(W,O=>{if(D.getSymbolAtLocation(Vce(O))!==l.symbol)return;const V=ue=>{const Ne=ym(ue.parent)?rce(D,ue.parent):dg(D.getSymbolAtLocation(ue),D);return!!Ne&&m.has(Ne)};Ohe(I,O,t,V);const ee=gm(qc(l.path),y),te=ime(r.getCompilerOptions(),I,I.path,ee,h4(r,s)),oe=fB(O,DF(te,T),V);oe&&t.insertNodeAfter(I,W,oe);const de=xlt(O);de&&Gce(t,I,D,m,te,de,O,T)})}function xlt(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 to(t.name,An);default:return ce.assertNever(t,`Unexpected node kind ${t.kind}`)}}function Gce(t,r,s,l,m,y,T,D){const I=If.moduleSpecifierToValidIdentifier(m,99);let W=!1;const O=[];if(Wf.Core.eachSymbolReferenceInFile(y,s,r,V=>{sa(V.parent)&&(W=W||!!s.resolveName(I,V,67108863,!0),l.has(s.getSymbolAtLocation(V.parent.name))&&O.push(V))}),O.length){const V=W?eB(I,r):I;for(const ee of O)t.replaceNode(r,ee,be.createIdentifier(V));t.insertNodeAfter(r,T,RCe(T,I,m,D))}}function RCe(t,r,s,l){const m=be.createIdentifier(r),y=DF(s,l);switch(t.kind){case 272:return be.createImportDeclaration(void 0,be.createImportClause(!1,void 0,be.createNamespaceImport(m)),y,void 0);case 271:return be.createImportEqualsDeclaration(void 0,!1,m,be.createExternalModuleReference(y));case 260:return be.createVariableDeclaration(m,void 0,void 0,jce(y));default:return ce.assertNever(t,`Unexpected node kind ${t.kind}`)}}function jce(t){return be.createCallExpression(be.createIdentifier("require"),void 0,[t])}function Vce(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function dee(t,r){if(Fv(t))Wp(t.moduleSpecifier)&&r(t);else if(kh(t))j0(t.moduleReference)&&sp(t.moduleReference.expression)&&r(t);else if(Dh(t))for(const s of t.declarationList.declarations)s.initializer&&eT(s.initializer,!0)&&r(s)}function I3e(t,r,s,l,m,y,T){let D;const I=[];return r.forEach(W=>{W.escapedName==="default"?D=be.createIdentifier(OZ(W)):I.push(W.name)}),Uce(t,D,I,s,l,m,y,T)}function Uce(t,r,s,l,m,y,T,D){const I=gm(qc(t.path),l),W=ime(m.getCompilerOptions(),t,t.path,I,h4(m,y));if(T){const O=s.map(V=>be.createImportSpecifier(!1,void 0,be.createIdentifier(V)));return Dj(r,O,W,D)}else{ce.assert(!r,"No default import should exist");const O=s.map(V=>be.createBindingElement(void 0,void 0,V));return O.length?G$e(be.createObjectBindingPattern(O),void 0,jce(DF(W,D))):void 0}}function G$e(t,r,s,l=2){return be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(t,void 0,r,s)],l))}function Lhe(t,r,s,l){return ea(r,m=>{if(j$e(m)&&!Hce(t,m,l)&&L3e(m,y=>{var T;return s.has(ce.checkDefined((T=to(y,YD))==null?void 0:T.symbol))})){const y=Clt(Rg(m),l);if(y)return y}return Rg(m)})}function Hce(t,r,s,l){var m;return s?!Ou(r)&&il(r,1)||!!(l&&t.symbol&&((m=t.symbol.exports)!=null&&m.has(l.escapedText))):!!t.symbol&&!!t.symbol.exports&&Fhe(r).some(y=>t.symbol.exports.has(ty(y)))}function Ohe(t,r,s,l){switch(r.kind){case 272:k3e(t,r,s,l);break;case 271:l(r.name)&&s.delete(t,r);break;case 260:Alt(t,r,s,l);break;default:ce.assertNever(r,`Unexpected import decl kind ${r.kind}`)}}function k3e(t,r,s,l){if(!r.importClause)return;const{name:m,namedBindings:y}=r.importClause,T=!m||l(m),D=!y||(y.kind===274?l(y.name):y.elements.length!==0&&y.elements.every(I=>l(I.name)));if(T&&D)s.delete(t,r);else if(m&&T&&s.delete(t,m),y){if(D)s.replaceNode(t,r.importClause,be.updateImportClause(r.importClause,r.importClause.isTypeOnly,m,void 0));else if(y.kind===275)for(const I of y.elements)l(I.name)&&s.delete(t,I)}}function Alt(t,r,s,l){const{name:m}=r;switch(m.kind){case 80:l(m)&&(r.initializer&&eT(r.initializer,!0)?s.delete(t,My(r.parent)&&Nt(r.parent.declarations)===1?r.parent.parent:r):s.delete(t,m));break;case 207:break;case 206:if(m.elements.every(y=>An(y.name)&&l(y.name)))s.delete(t,My(r.parent)&&r.parent.declarations.length===1?r.parent.parent:r);else for(const y of m.elements)An(y.name)&&l(y.name)&&s.delete(t,y.name);break}}function j$e(t){return ce.assert(tl(t.parent),"Node parent should be a SourceFile"),gee(t)||Dh(t)}function Clt(t,r){return r?[P3e(t)]:Jce(t)}function P3e(t){const r=nx(t)?Hi([be.createModifier(95)],N8(t)):void 0;switch(t.kind){case 262:return be.updateFunctionDeclaration(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=I3(t)?ML(t):void 0;return be.updateClassDeclaration(t,Hi(s,r),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return be.updateVariableStatement(t,r,t.declarationList);case 267:return be.updateModuleDeclaration(t,r,t.name,t.body);case 266:return be.updateEnumDeclaration(t,r,t.name,t.members);case 265:return be.updateTypeAliasDeclaration(t,r,t.name,t.typeParameters,t.type);case 264:return be.updateInterfaceDeclaration(t,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return be.updateImportEqualsDeclaration(t,r,t.isTypeOnly,t.name,t.moduleReference);case 244:return ce.fail();default:return ce.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function Jce(t){return[t,...Fhe(t).map(pee)]}function pee(t){return be.createExpressionStatement(be.createBinaryExpression(be.createPropertyAccessExpression(be.createIdentifier("exports"),be.createIdentifier(t)),64,be.createIdentifier(t)))}function Fhe(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return Qo(t.declarationList.declarations,r=>An(r.name)?r.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Zn;case 244:return ce.fail("Can't export an ExpressionStatement");default:return ce.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function fB(t,r,s){switch(t.kind){case 272:{const l=t.importClause;if(!l)return;const m=l.name&&s(l.name)?l.name:void 0,y=l.namedBindings&&V$e(l.namedBindings,s);return m||y?be.createImportDeclaration(void 0,be.createImportClause(l.isTypeOnly,m,y),Rg(r),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const l=N3e(t.name,s);return l?G$e(l,t.type,jce(r),t.parent.flags):void 0}default:return ce.assertNever(t,`Unexpected import kind ${t.kind}`)}}function V$e(t,r){if(t.kind===274)return r(t.name)?t:void 0;{const s=t.elements.filter(l=>r(l.name));return s.length?be.createNamedImports(s):void 0}}function N3e(t,r){switch(t.kind){case 80:return r(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(l=>l.propertyName||!An(l.name)||r(l.name));return s.length?be.createObjectBindingPattern(s):void 0}}}function MCe(t){return Ou(t)?to(t.expression.left.name,An):to(t.name,An)}function $ce(t){switch(t.kind){case 260:return t.parent.parent;case 208:return $ce(uc(t.parent.parent,r=>ff(r)||ym(r)));default:return t}}function w3e(t,r,s,l,m){if(!Hce(t,r,m,s))if(m)Ou(r)||l.insertExportModifier(t,r);else{const y=Fhe(r);y.length!==0&&l.insertNodesAfter(t,r,y.map(pee))}}function R3e(t,r,s,l){const m=r.getTypeChecker(),y=qce(s);let T;if(y){T=Whe(t,y.all,m);const D=qc(t.fileName),I=SP(t.fileName);return tf(D,M3e(Kce(T.oldFileImportsFromTargetFile,T.movedSymbols),I,D,l))+I}return""}function U$e(t){const{file:r}=t,s=PZ(aB(t)),{statements:l}=r;let m=Ho(l,W=>W.end>s.pos);if(m===-1)return;const y=l[m],T=$$e(r,y);T&&(m=T.start);let D=Ho(l,W=>W.end>=s.end,m);D!==-1&&s.end<=l[D].getStart()&&D--;const I=$$e(r,l[D]);return I&&(D=I.end),{toMove:l.slice(m,D===-1?l.length:D+1),afterLast:D===-1?void 0:l[D+1]}}function qce(t){const r=U$e(t);if(r===void 0)return;const s=[],l=[],{toMove:m,afterLast:y}=r;return eu(m,Dlt,(T,D)=>{for(let I=T;I!!r.initializer&&eT(r.initializer,!0));default:return!1}}function Whe(t,r,s){const l=new Set,m=new Map,y=new Set,T=lr(r,V=>!!(V.transformFlags&2)),D=O(T);D&&m.set(D,!1);for(const V of r)L3e(V,ee=>{l.add(ce.checkDefined(Ou(ee)?s.getSymbolAtLocation(ee.expression.left):ee.symbol,"Need a symbol here"))});for(const V of r)H$e(V,s,(ee,te)=>{if(ee.declarations)for(const oe of ee.declarations)if(LCe(oe)){const de=m.get(ee);m.set(ee,(de===void 0||de)&&te)}else mee(oe)&&O3e(oe)===t&&!l.has(ee)&&y.add(ee)});const I=new Set(m.keys()),W=new Set;for(const V of t.statements)ni(r,V)||(D&&V.transformFlags&2&&I.delete(D),H$e(V,s,ee=>{l.has(ee)&&W.add(ee),I.delete(ee)}));return{movedSymbols:l,targetFileImportsFromOldFile:y,oldFileImportsFromTargetFile:W,oldImportsNeededByTargetFile:m,unusedImportsFromOldFile:I};function O(V){if(V===void 0)return;const ee=s.getJsxNamespace(V),te=s.resolveName(ee,V,1920,!0);return te&>(te.declarations,LCe)?te:void 0}}function M3e(t,r,s,l){let m=t;for(let y=1;;y++){const T=tf(s,m+r);if(!l.fileExists(T))return m;m=`${t}.${y}`}}function Kce(t,r){return FL(t,OZ)||FL(r,OZ)||"newFile"}function H$e(t,r,s){t.forEachChild(function l(m){if(An(m)&&!vP(m)){const y=r.getSymbolAtLocation(m);y&&s(y,EA(m))}else m.forEachChild(l)})}function L3e(t,r){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return r(t);case 243:return Yr(t.declarationList.declarations,s=>J$e(s.name,r));case 244:{const{expression:s}=t;return ys(s)&&Qy(s)===1?r(t):void 0}}}function LCe(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return Bhe(t);case 208:return ff(t.parent.parent)&&Bhe(t.parent.parent);default:return!1}}function Bhe(t){return tl(t.parent.parent.parent)&&!!t.initializer&&eT(t.initializer,!0)}function mee(t){return gee(t)&&tl(t.parent)||ff(t)&&tl(t.parent.parent.parent)}function O3e(t){return ff(t)?t.parent.parent.parent:t.parent}function J$e(t,r){switch(t.kind){case 80:return r(uc(t.parent,s=>ff(s)||ym(s)));case 207:case 206:return Yr(t.elements,s=>t0(s)?void 0:J$e(s.name,r));default:return ce.assertNever(t,`Unexpected name kind ${t.kind}`)}}function gee(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function klt(t,r,s,l,m){var y;const T=new Set,D=(y=l.symbol)==null?void 0:y.exports;if(D){const W=r.getTypeChecker(),O=new Map;for(const V of m.all)j$e(V)&&il(V,1)&&L3e(V,ee=>{var te;const oe=YD(ee)?(te=D.get(ee.symbol.escapedName))==null?void 0:te.declarations:void 0,de=Yr(oe,ue=>mh(ue)?ue:Oy(ue)?to(ue.parent.parent,mh):void 0);de&&de.moduleSpecifier&&O.set(de,(O.get(de)||new Set).add(ee))});for(const[V,ee]of oc(O))if(V.exportClause&&G0(V.exportClause)&&Nt(V.exportClause.elements)){const te=V.exportClause.elements,oe=gi(te,de=>lr(dg(de.symbol,W).declarations,ue=>mee(ue)&&ee.has(ue))===void 0);if(Nt(oe)===0){t.deleteNode(l,V),T.add(V);continue}Nt(oe)mh(W)&&!!W.moduleSpecifier&&!T.has(W));I?t.insertNodesBefore(l,I,s,!0):t.insertNodesAfter(l,l.statements[l.statements.length-1],s)}function $$e(t,r){if(J_(r)){const s=r.symbol.declarations;if(s===void 0||Nt(s)<=1||!ni(s,r))return;const l=s[0],m=s[Nt(s)-1],y=Qo(s,I=>ns(I)===t&&uf(I)?I:void 0),T=Ho(t.statements,I=>I.end>=m.end),D=Ho(t.statements,I=>I.end>=l.end);return{toMove:y,start:D,end:T}}}var jj,OCe,FCe,q$e=G({"src/services/refactors/moveToFile.ts"(){VLe(),El(),ACe(),jj="Move to file",OCe=fs(w.Move_to_file),FCe={name:"Move to file",description:OCe,kind:"refactor.move.file"},SI(jj,{kinds:[FCe.kind],getAvailableActions:function(r,s){const l=qce(r);return s?r.preferences.allowTextChangesInNewFiles&&l?[{name:jj,description:OCe,actions:[FCe]}]:r.preferences.provideRefactorNotApplicableReason?[{name:jj,description:OCe,actions:[{...FCe,notApplicableReason:fs(w.Selection_is_not_a_valid_statement_or_statements)}]}]:Zn:Zn},getEditsForAction:function(r,s,l){ce.assert(s===jj,"Wrong refactor invoked");const m=ce.checkDefined(qce(r)),{host:y,program:T}=r;ce.assert(l,"No interactive refactor arguments available");const D=l.targetFile;return eD(D)||vR(D)?y.fileExists(D)&&T.getSourceFile(D)===void 0?A3e(fs(w.Cannot_move_statements_to_the_selected_file)):{edits:Hs.ChangeTracker.with(r,W=>Elt(r,r.file,l.targetFile,r.program,m,W,r.host,r.preferences)),renameFilename:void 0,renameLocation:void 0}:A3e(fs(w.Cannot_move_to_file_selected_file_is_invalid))}})}});function F3e(t){const{file:r,startPosition:s,program:l}=t;return Xce(r,s,l)?[{name:WCe,description:BCe,actions:[zCe]}]:Zn}function K$e(t){const{file:r,startPosition:s,program:l}=t,m=Xce(r,s,l);if(!m)return;const y=l.getTypeChecker(),T=m[m.length-1];let D=T;switch(T.kind){case 173:{D=be.updateMethodSignature(T,T.modifiers,T.name,T.questionToken,T.typeParameters,W(m),T.type);break}case 174:{D=be.updateMethodDeclaration(T,T.modifiers,T.asteriskToken,T.name,T.questionToken,T.typeParameters,W(m),T.type,T.body);break}case 179:{D=be.updateCallSignature(T,T.typeParameters,W(m),T.type);break}case 176:{D=be.updateConstructorDeclaration(T,T.modifiers,W(m),T.body);break}case 180:{D=be.updateConstructSignature(T,T.typeParameters,W(m),T.type);break}case 262:{D=be.updateFunctionDeclaration(T,T.modifiers,T.asteriskToken,T.name,T.typeParameters,W(m),T.type,T.body);break}default:return ce.failBadSyntaxKind(T,"Unhandled signature kind in overload list conversion refactoring")}if(D===T)return;return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,ee=>{ee.replaceNodeRange(r,m[0],m[m.length-1],D)})};function W(ee){const te=ee[ee.length-1];return J_(te)&&te.body&&(ee=ee.slice(0,ee.length-1)),be.createNodeArray([be.createParameterDeclaration(void 0,be.createToken(26),"args",void 0,be.createUnionTypeNode(Vn(ee,O)))])}function O(ee){const te=Vn(ee.parameters,V);return Sa(be.createTupleTypeNode(te),gt(te,oe=>!!Nt(U7(oe)))?0:1)}function V(ee){ce.assert(An(ee.name));const te=vr(be.createNamedTupleMember(ee.dotDotDotToken,ee.name,ee.questionToken,ee.type||be.createKeywordTypeNode(133)),ee),oe=ee.symbol&&ee.symbol.getDocumentationComment(y);if(oe){const de=lDe(oe);de.length&&MS(te,[{text:`* ${de.split(` `).map(ue=>` * ${ue}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return te}}function W3e(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Xce(t,r,s){const l=bf(t,r),m=Kr(l,W3e);if(!m||J_(m)&&m.body&&U$(m.body,r))return;const y=s.getTypeChecker(),T=m.symbol;if(!T)return;const D=T.declarations;if(Nt(D)<=1||!jr(D,ee=>ns(ee)===t)||!W3e(D[0]))return;const I=D[0].kind;if(!jr(D,ee=>ee.kind===I))return;const W=D;if(gt(W,ee=>!!ee.typeParameters||gt(ee.parameters,te=>!!te.modifiers||!An(te.name))))return;const O=Qo(W,ee=>y.getSignatureFromDeclaration(ee));if(Nt(O)!==Nt(D))return;const V=y.getReturnTypeOfSignature(O[0]);if(jr(O,ee=>y.getReturnTypeOfSignature(ee)===V))return W}var WCe,BCe,zCe,Plt=G({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){El(),MP(),WCe="Convert overload list to single signature",BCe=fs(w.Convert_overload_list_to_single_signature),zCe={name:WCe,description:BCe,kind:"refactor.rewrite.function.overloadList"},SI(WCe,{kinds:[zCe.kind],getEditsForAction:K$e,getAvailableActions:F3e})}});function X$e(t){const{file:r,startPosition:s,triggerReason:l}=t,m=Yce(r,s,l==="invoked");return m?I2(m)?t.preferences.provideRefactorNotApplicableReason?[{name:hee,description:Qce,actions:[{...zhe,notApplicableReason:m.error},{...Zce,notApplicableReason:m.error}]}]:Zn:[{name:hee,description:Qce,actions:[m.addBraces?zhe:Zce]}]:Zn}function Nlt(t,r){const{file:s,startPosition:l}=t,m=Yce(s,l);ce.assert(m&&!I2(m),"Expected applicable refactor info");const{expression:y,returnStatement:T,func:D}=m;let I;if(r===zhe.name){const O=be.createReturnStatement(y);I=be.createBlock([O],!0),tB(y,O,s,3,!0)}else if(r===Zce.name&&T){const O=y||be.createVoidZero();I=MAe(O)?be.createParenthesizedExpression(O):O,oq(T,I,s,3,!1),tB(T,I,s,3,!1),zT(T,I,s,3,!1)}else ce.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,O=>{O.replaceNode(s,D.body,I)})}}function Yce(t,r,s=!0,l){const m=bf(t,r),y=GE(m);if(!y)return{error:fs(w.Could_not_find_a_containing_arrow_function)};if(!ph(y))return{error:fs(w.Containing_function_is_not_an_arrow_function)};if(!(!sS(y,m)||sS(y.body,m)&&!s)){if(Y3(zhe.kind,l)&&Nr(y.body))return{func:y,addBraces:!0,expression:y.body};if(Y3(Zce.kind,l)&&E_(y.body)&&y.body.statements.length===1){const T=Dl(y.body.statements);if(Bx(T))return{func:y,addBraces:!1,expression:T.expression,returnStatement:T}}}}var hee,Qce,zhe,Zce,wlt=G({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){El(),MP(),hee="Add or remove braces in an arrow function",Qce=fs(w.Add_or_remove_braces_in_an_arrow_function),zhe={name:"Add braces to arrow function",description:fs(w.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},Zce={name:"Remove braces from arrow function",description:fs(w.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},SI(hee,{kinds:[Zce.kind],getEditsForAction:Nlt,getAvailableActions:X$e})}}),Y$e={},Q$e=G({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){Plt(),wlt()}});function GCe(t){const{file:r,startPosition:s,program:l,kind:m}=t,y=Z$e(r,s,l);if(!y)return Zn;const{selectedVariableDeclaration:T,func:D}=y,I=[],W=[];if(Y3(yee.kind,m)){const O=T||ph(D)&&ff(D.parent)?void 0:fs(w.Could_not_convert_to_named_function);O?W.push({...yee,notApplicableReason:O}):I.push(yee)}if(Y3(tle.kind,m)){const O=!T&&ph(D)?void 0:fs(w.Could_not_convert_to_anonymous_function);O?W.push({...tle,notApplicableReason:O}):I.push(tle)}if(Y3(vee.kind,m)){const O=Dm(D)?void 0:fs(w.Could_not_convert_to_arrow_function);O?W.push({...vee,notApplicableReason:O}):I.push(vee)}return[{name:j3e,description:tqe,actions:I.length===0&&t.preferences.provideRefactorNotApplicableReason?W:I}]}function B3e(t,r){const{file:s,startPosition:l,program:m}=t,y=Z$e(s,l,m);if(!y)return;const{func:T}=y,D=[];switch(r){case tle.name:D.push(...G3e(t,T));break;case yee.name:const I=VCe(T);if(!I)return;D.push(...Ghe(t,T,I));break;case vee.name:if(!Dm(T))return;D.push(...ele(t,T));break;default:return ce.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:D}}function jCe(t){let r=!1;return t.forEachChild(function s(l){if(KW(l)){r=!0;return}!Jl(l)&&!b0(l)&&!Dm(l)&&B_(l,s)}),r}function Z$e(t,r,s){const l=bf(t,r),m=s.getTypeChecker(),y=Mlt(t,m,l.parent);if(y&&!jCe(y.body)&&!m.containsArgumentsReference(y))return{selectedVariableDeclaration:!0,func:y};const T=GE(l);if(T&&(Dm(T)||ph(T))&&!sS(T.body,l)&&!jCe(T.body)&&!m.containsArgumentsReference(T))return Dm(T)&&eqe(t,m,T)?void 0:{selectedVariableDeclaration:!1,func:T}}function Rlt(t){return ff(t)||My(t)&&t.declarations.length===1}function Mlt(t,r,s){if(!Rlt(s))return;const m=(ff(s)?s:Dl(s.declarations)).initializer;if(m&&(ph(m)||Dm(m)&&!eqe(t,r,m)))return m}function z3e(t){if(Nr(t)){const r=be.createReturnStatement(t),s=t.getSourceFile();return vr(r,t),e2(r),oq(t,r,s,void 0,!0),be.createBlock([r],!0)}else return t}function VCe(t){const r=t.parent;if(!ff(r)||!x9(r))return;const s=r.parent,l=s.parent;if(!(!My(s)||!Dh(l)||!An(r.name)))return{variableDeclaration:r,variableDeclarationList:s,statement:l,name:r.name}}function G3e(t,r){const{file:s}=t,l=z3e(r.body),m=be.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,l);return Hs.ChangeTracker.with(t,y=>y.replaceNode(s,r,m))}function Ghe(t,r,s){const{file:l}=t,m=z3e(r.body),{variableDeclaration:y,variableDeclarationList:T,statement:D,name:I}=s;O8e(D);const W=Gg(y)&1|tS(r),O=be.createModifiersFromModifierFlags(W),V=be.createFunctionDeclaration(Nt(O)?O:void 0,r.asteriskToken,I,r.typeParameters,r.parameters,r.type,m);return T.declarations.length===1?Hs.ChangeTracker.with(t,ee=>ee.replaceNode(l,D,V)):Hs.ChangeTracker.with(t,ee=>{ee.delete(l,y),ee.insertNodeAfter(l,D,V)})}function ele(t,r){const{file:s}=t,m=r.body.statements[0];let y;Llt(r.body,m)?(y=m.expression,e2(y),kF(m,y)):y=r.body;const T=be.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,be.createToken(39),y);return Hs.ChangeTracker.with(t,D=>D.replaceNode(s,r,T))}function Llt(t,r){return t.statements.length===1&&Bx(r)&&!!r.expression}function eqe(t,r,s){return!!s.name&&Wf.Core.isSymbolReferencedInFile(s.name,r,t)}var j3e,tqe,tle,yee,vee,Olt=G({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){El(),MP(),j3e="Convert arrow function or function expression",tqe=fs(w.Convert_arrow_function_or_function_expression),tle={name:"Convert to anonymous function",description:fs(w.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},yee={name:"Convert to named function",description:fs(w.Convert_to_named_function),kind:"refactor.rewrite.function.named"},vee={name:"Convert to arrow function",description:fs(w.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},SI(j3e,{kinds:[tle.kind,yee.kind,vee.kind],getEditsForAction:B3e,getAvailableActions:GCe})}}),Flt={},nqe=G({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){Olt()}});function Wlt(t){const{file:r,startPosition:s}=t;return v1(r)||!bee(r,s,t.program.getTypeChecker())?Zn:[{name:Uj,description:X3e,actions:[Y3e]}]}function Blt(t,r){ce.assert(r===Uj,"Unexpected action name");const{file:s,startPosition:l,program:m,cancellationToken:y,host:T}=t,D=bee(s,l,m.getTypeChecker());if(!D||!y)return;const I=Glt(D,m,y);return I.valid?{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,O=>zlt(s,m,T,O,D,I))}:{edits:[]}}function zlt(t,r,s,l,m,y){const T=y.signature,D=Vn(q3e(m,r,s),O=>Rg(O));if(T){const O=Vn(q3e(T,r,s),V=>Rg(V));W(T,O)}W(m,D);const I=OD(y.functionCalls,(O,V)=>pf(O.pos,V.pos));for(const O of I)if(O.arguments&&O.arguments.length){const V=Rg(qlt(m,O.arguments),!0);l.replaceNodeRange(ns(O),Dl(O.arguments),yl(O.arguments),V,{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Include})}function W(O,V){l.replaceNodeRangeWithNodes(t,Dl(O.parameters),yl(O.parameters),V,{joiner:", ",indentation:0,leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Include})}}function Glt(t,r,s){const l=Xlt(t),m=pg(t)?Klt(t):[],y=th([...l,...m],_1),T=r.getTypeChecker(),D=ea(y,V=>Wf.getReferenceEntriesForNode(-1,V,r,r.getSourceFiles(),s)),I=W(D);return jr(I.declarations,V=>ni(y,V))||(I.valid=!1),I;function W(V){const ee={accessExpressions:[],typeUsages:[]},te={functionCalls:[],declarations:[],classReferences:ee,valid:!0},oe=Vn(l,O),de=Vn(m,O),ue=pg(t),Ne=Vn(l,Be=>V3e(Be,T));for(const Be of V){if(Be.kind===Wf.EntryKind.Span){te.valid=!1;continue}if(ni(Ne,O(Be.node))){if(Vlt(Be.node.parent)){te.signature=Be.node.parent;continue}const pt=H3e(Be);if(pt){te.functionCalls.push(pt);continue}}const Ve=V3e(Be.node,T);if(Ve&&ni(Ne,Ve)){const pt=jhe(Be);if(pt){te.declarations.push(pt);continue}}if(ni(oe,O(Be.node))||zse(Be.node)){if(U3e(Be))continue;const Le=jhe(Be);if(Le){te.declarations.push(Le);continue}const ht=H3e(Be);if(ht){te.functionCalls.push(ht);continue}}if(ue&&ni(de,O(Be.node))){if(U3e(Be))continue;const Le=jhe(Be);if(Le){te.declarations.push(Le);continue}const ht=nle(Be);if(ht){ee.accessExpressions.push(ht);continue}if(Kc(t.parent)){const ke=rle(Be);if(ke){ee.typeUsages.push(ke);continue}}}te.valid=!1}return te}function O(V){const ee=T.getSymbolAtLocation(V);return ee&&HJe(ee,T)}}function V3e(t,r){const s=cle(t);if(s){const l=r.getContextualTypeForObjectLiteralElement(s),m=l==null?void 0:l.getSymbol();if(m&&!(I_(m)&6))return m}}function U3e(t){const r=t.node;if(oS(r.parent)||lC(r.parent)||kh(r.parent)||QL(r.parent)||Oy(r.parent)||Ly(r.parent))return r}function jhe(t){if(dl(t.node.parent))return t.node}function H3e(t){if(t.node.parent){const r=t.node,s=r.parent;switch(s.kind){case 213:case 214:const l=to(s,IN);if(l&&l.expression===r)return l;break;case 211:const m=to(s,sa);if(m&&m.parent&&m.name===r){const T=to(m.parent,IN);if(T&&T.expression===m)return T}break;case 212:const y=to(s,Ed);if(y&&y.parent&&y.argumentExpression===r){const T=to(y.parent,IN);if(T&&T.expression===y)return T}break}}}function nle(t){if(t.node.parent){const r=t.node,s=r.parent;switch(s.kind){case 211:const l=to(s,sa);if(l&&l.expression===r)return l;break;case 212:const m=to(s,Ed);if(m&&m.expression===r)return m;break}}}function rle(t){const r=t.node;if(z3(r)===2||PS(r.parent))return r}function bee(t,r,s){const l=qse(t,r),m=aSe(l);if(!jlt(l)&&m&&Ult(m,s)&&sS(m,l)&&!(m.body&&sS(m.body,l)))return m}function jlt(t){const r=Kr(t,UC);if(r){const s=Kr(r,l=>!UC(l));return!!s&&J_(s)}return!1}function Vlt(t){return Jh(t)&&(Kp(t.parent)||e0(t.parent))}function Ult(t,r){var s;if(!Hlt(t.parameters,r))return!1;switch(t.kind){case 262:return rqe(t)&&Vhe(t,r);case 174:if(Wd(t.parent)){const l=V3e(t.name,r);return((s=l==null?void 0:l.declarations)==null?void 0:s.length)===1&&Vhe(t,r)}return Vhe(t,r);case 176:return Kc(t.parent)?rqe(t.parent)&&Vhe(t,r):UCe(t.parent.parent)&&Vhe(t,r);case 218:case 219:return UCe(t.parent)}return!1}function Vhe(t,r){return!!t.body&&!r.isImplementationOfOverload(t)}function rqe(t){return t.name?!0:!!YW(t,90)}function Hlt(t,r){return J3e(t)>=K3e&&jr(t,s=>Jlt(s,r))}function Jlt(t,r){if(dP(t)){const s=r.getTypeAtLocation(t);if(!r.isArrayType(s)&&!r.isTupleType(s))return!1}return!t.modifiers&&An(t.name)}function UCe(t){return ff(t)&&h7(t)&&An(t.name)&&!t.type}function HCe(t){return t.length>0&&KW(t[0].name)}function J3e(t){return HCe(t)?t.length-1:t.length}function $3e(t){return HCe(t)&&(t=be.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function $lt(t,r){return An(r)&&aC(r)===t?be.createShorthandPropertyAssignment(t):be.createPropertyAssignment(t,r)}function qlt(t,r){const s=$3e(t.parameters),l=dP(yl(s)),m=l?r.slice(0,s.length-1):r,y=Vn(m,(D,I)=>{const W=JCe(s[I]),O=$lt(W,D);return e2(O.name),Fm(O)&&e2(O.initializer),kF(D,O),O});if(l&&r.length>=s.length){const D=r.slice(s.length-1),I=be.createPropertyAssignment(JCe(yl(s)),be.createArrayLiteralExpression(D));y.push(I)}return be.createObjectLiteralExpression(y,!1)}function q3e(t,r,s){const l=r.getTypeChecker(),m=$3e(t.parameters),y=Vn(m,O),T=be.createObjectBindingPattern(y),D=V(m);let I;jr(m,oe)&&(I=be.createObjectLiteralExpression());const W=be.createParameterDeclaration(void 0,void 0,T,void 0,D,I);if(HCe(t.parameters)){const de=t.parameters[0],ue=be.createParameterDeclaration(void 0,void 0,de.name,void 0,de.type);return e2(ue.name),kF(de.name,ue.name),de.type&&(e2(ue.type),kF(de.type,ue.type)),be.createNodeArray([ue,W])}return be.createNodeArray([W]);function O(de){const ue=be.createBindingElement(void 0,void 0,JCe(de),dP(de)&&oe(de)?be.createArrayLiteralExpression():de.initializer);return e2(ue),de.initializer&&ue.initializer&&kF(de.initializer,ue.initializer),ue}function V(de){const ue=Vn(de,ee);return cI(be.createTypeLiteralNode(ue),1)}function ee(de){let ue=de.type;!ue&&(de.initializer||dP(de))&&(ue=te(de));const Ne=be.createPropertySignature(void 0,JCe(de),oe(de)?be.createToken(58):de.questionToken,ue);return e2(Ne),kF(de.name,Ne.name),de.type&&Ne.type&&kF(de.type,Ne.type),Ne}function te(de){const ue=l.getTypeAtLocation(de);return PF(ue,de,r,s)}function oe(de){if(dP(de)){const ue=l.getTypeAtLocation(de);return!l.isTupleType(ue)}return l.isOptionalParameter(de)}}function JCe(t){return aC(t.name)}function Klt(t){switch(t.parent.kind){case 263:const r=t.parent;return r.name?[r.name]:[ce.checkDefined(YW(r,90),"Nameless class declaration should be a default export")];case 231:const l=t.parent,m=t.parent.parent,y=l.name;return y?[y,m.name]:[m.name]}}function Xlt(t){switch(t.kind){case 262:return t.name?[t.name]:[ce.checkDefined(YW(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=ce.checkDefined(Wm(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 ce.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var Uj,K3e,X3e,Y3e,iqe=G({"src/services/refactors/convertParamsToDestructuredObject.ts"(){El(),MP(),Uj="Convert parameters to destructured object",K3e=1,X3e=fs(w.Convert_parameters_to_destructured_object),Y3e={name:Uj,description:X3e,kind:"refactor.rewrite.parameters.toDestructured"},SI(Uj,{kinds:[Y3e.kind],getEditsForAction:Blt,getAvailableActions:Wlt})}}),Q3e={},Ylt=G({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){iqe()}});function oqe(t){const{file:r,startPosition:s}=t,l=aqe(r,s),m=Z3e(l),y={name:KCe,description:XCe,actions:[]};return ys(m)&&eOe(m).isValidConcatenation?(y.actions.push(Hhe),[y]):t.preferences.provideRefactorNotApplicableReason?(y.actions.push({...Hhe,notApplicableReason:fs(w.Can_only_convert_string_concatenation)}),[y]):Zn}function aqe(t,r){const s=bf(t,r),l=Z3e(s);return!eOe(l).isValidConcatenation&&sb(l.parent)&&ys(l.parent.parent)?l.parent.parent:s}function Qlt(t,r){const{file:s,startPosition:l}=t,m=aqe(s,l);switch(r){case XCe:return{edits:sqe(t,m)};default:return ce.fail("invalid action")}}function sqe(t,r){const s=Z3e(r),l=t.file,m=nOe(eOe(s),l),y=Nx(l.text,s.end);if(y){const T=y[y.length-1],D={pos:y[0].pos,end:T.end};return Hs.ChangeTracker.with(t,I=>{I.deleteRange(l,D),I.replaceNode(l,s,m)})}else return Hs.ChangeTracker.with(t,T=>T.replaceNode(l,s,m))}function $Ce(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function Z3e(t){return Kr(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(ys(s.parent)&&$Ce(s.parent));default:return"quit"}})||t}function eOe(t){const r=T=>{if(!ys(T))return{nodes:[T],operators:[],validOperators:!0,hasString:Wp(T)||Sd(T)};const{nodes:D,operators:I,hasString:W,validOperators:O}=r(T.left);if(!(W||Wp(T.right)||jY(T.right)))return{nodes:[T],operators:[],hasString:!1,validOperators:!0};const V=T.operatorToken.kind===40,ee=O&&V;return D.push(T.right),I.push(T.operatorToken),{nodes:D,operators:I,hasString:!0,validOperators:ee}},{nodes:s,operators:l,validOperators:m,hasString:y}=r(t);return{nodes:s,operators:l,isValidConcatenation:m&&y}}function Uhe(t){return t.replace(/\\.|[$`]/g,r=>r[0]==="\\"?r:"\\"+r)}function tOe(t){const r=SR(t)||ope(t)?-2:-1;return Yv(t).slice(1,r)}function qCe(t,r){const s=[];let l="",m="";for(;t{cqe(Ve);const Le=pt===ee.templateSpans.length-1,ht=Ve.literal.text+(Le?oe:""),ke=tOe(Ve.literal)+(Le?de:"");return be.createTemplateSpan(Ve.expression,Ne&&Le?be.createTemplateTail(ht,ke):be.createTemplateMiddle(ht,ke))});W.push(...Be)}else{const Be=Ne?be.createTemplateTail(oe,de):be.createTemplateMiddle(oe,de);m(ue,Be),W.push(be.createTemplateSpan(ee,Be))}}return be.createTemplateExpression(O,W)}function cqe(t){const r=t.getSourceFile();zT(t,t.expression,r,3,!1),oq(t.expression,t.expression,r,3,!1)}function Zlt(t){return sb(t)&&(cqe(t),t=t.expression),t}var KCe,XCe,Hhe,lqe,uqe,eut=G({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){El(),MP(),KCe="Convert to template string",XCe=fs(w.Convert_to_template_string),Hhe={name:KCe,description:XCe,kind:"refactor.rewrite.string"},SI(KCe,{kinds:[Hhe.kind],getEditsForAction:Qlt,getAvailableActions:oqe}),lqe=(t,r)=>(s,l)=>{s(l,m)=>{for(;l.length>0;){const y=l.shift();zT(t[y],m,r,3,!1),s(y,m)}}}}),rOe={},iOe=G({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){eut()}});function tut(t){const r=_qe(t,t.triggerReason==="invoked");return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:gq,description:Xhe,actions:[{...eDe,notApplicableReason:r.error}]}]:Zn:[{name:gq,description:Xhe,actions:[eDe]}]:Zn}function fqe(t,r){const s=_qe(t);return ce.assert(s&&!I2(s),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(t,m=>aut(t.file,t.program.getTypeChecker(),m,s)),renameFilename:void 0,renameLocation:void 0}}function Jhe(t){return ys(t)||vk(t)}function nut(t){return Ou(t)||Bx(t)||Dh(t)}function $he(t){return Jhe(t)||nut(t)}function _qe(t,r=!0){const{file:s,program:l}=t,m=aB(t),y=m.length===0;if(y&&!r)return;const T=bf(s,m.start),D=Bge(s,m.start+m.length),I=R0(T.pos,D&&D.end>=T.pos?D.getEnd():T.getEnd()),W=y?iut(T):rut(T,I),O=W&&$he(W)?out(W):void 0;if(!O)return{error:fs(w.Could_not_find_convertible_access_expression)};const V=l.getTypeChecker();return vk(O)?YCe(O,V):QCe(O)}function YCe(t,r){const s=t.condition,l=oOe(t.whenTrue);if(!l||r.isNullableType(r.getTypeAtLocation(l)))return{error:fs(w.Could_not_find_convertible_access_expression)};if((sa(s)||An(s))&&ZCe(s,l.expression))return{finalExpression:l,occurrences:[s],expression:t};if(ys(s)){const m=qhe(l.expression,s);return m?{finalExpression:l,occurrences:m,expression:t}:{error:fs(w.Could_not_find_matching_access_expressions)}}}function QCe(t){if(t.operatorToken.kind!==56)return{error:fs(w.Can_only_convert_logical_AND_access_chains)};const r=oOe(t.right);if(!r)return{error:fs(w.Could_not_find_convertible_access_expression)};const s=qhe(r.expression,t.left);return s?{finalExpression:r,occurrences:s,expression:t}:{error:fs(w.Could_not_find_matching_access_expressions)}}function qhe(t,r){const s=[];for(;ys(r)&&r.operatorToken.kind===56;){const m=ZCe(_g(t),_g(r.right));if(!m)break;s.push(m),t=m,r=r.left}const l=ZCe(t,r);return l&&s.push(l),s.length>0?s:void 0}function ZCe(t,r){if(!(!An(r)&&!sa(r)&&!Ed(r)))return dqe(t,r)?r:void 0}function dqe(t,r){for(;(el(t)||sa(t)||Ed(t))&&ile(t)!==ile(r);)t=t.expression;for(;sa(t)&&sa(r)||Ed(t)&&Ed(r);){if(ile(t)!==ile(r))return!1;t=t.expression,r=r.expression}return An(t)&&An(r)&&t.getText()===r.getText()}function ile(t){if(An(t)||Qv(t))return t.getText();if(sa(t))return ile(t.name);if(Ed(t))return ile(t.argumentExpression)}function rut(t,r){for(;t.parent;){if($he(t)&&r.length!==0&&t.end>=r.start+r.length)return t;t=t.parent}}function iut(t){for(;t.parent;){if($he(t)&&!$he(t.parent))return t;t=t.parent}}function out(t){if(Jhe(t))return t;if(Dh(t)){const r=$8(t),s=r==null?void 0:r.initializer;return s&&Jhe(s)?s:void 0}return t.expression&&Jhe(t.expression)?t.expression:void 0}function oOe(t){if(t=_g(t),ys(t))return oOe(t.left);if((sa(t)||Ed(t)||el(t))&&!ky(t))return t}function Khe(t,r,s){if(sa(r)||Ed(r)||el(r)){const l=Khe(t,r.expression,s),m=s.length>0?s[s.length-1]:void 0,y=(m==null?void 0:m.getText())===r.expression.getText();if(y&&s.pop(),el(r))return y?be.createCallChain(l,be.createToken(29),r.typeArguments,r.arguments):be.createCallChain(l,r.questionDotToken,r.typeArguments,r.arguments);if(sa(r))return y?be.createPropertyAccessChain(l,be.createToken(29),r.name):be.createPropertyAccessChain(l,r.questionDotToken,r.name);if(Ed(r))return y?be.createElementAccessChain(l,be.createToken(29),r.argumentExpression):be.createElementAccessChain(l,r.questionDotToken,r.argumentExpression)}return r}function aut(t,r,s,l,m){const{finalExpression:y,occurrences:T,expression:D}=l,I=T[T.length-1],W=Khe(r,y,T);W&&(sa(W)||Ed(W)||el(W))&&(ys(D)?s.replaceNodeRange(t,I,y,W):vk(D)&&s.replaceNode(t,D,be.createBinaryExpression(W,be.createToken(61),D.whenFalse)))}var gq,Xhe,eDe,sut=G({"src/services/refactors/convertToOptionalChainExpression.ts"(){El(),MP(),gq="Convert to optional chain expression",Xhe=fs(w.Convert_to_optional_chain_expression),eDe={name:gq,description:Xhe,kind:"refactor.rewrite.expression.optionalChain"},SI(gq,{kinds:[eDe.kind],getEditsForAction:fqe,getAvailableActions:tut})}}),pqe={},aOe=G({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){sut()}});function mqe(t){const r=t.kind,s=sOe(t.file,aB(t),t.triggerReason==="invoked"),l=s.targetRange;if(l===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return Zn;const oe=[];return Y3(vq.kind,r)&&oe.push({name:hq,description:vq.description,actions:[{...vq,notApplicableReason:te(s.errors)}]}),Y3(yq.kind,r)&&oe.push({name:hq,description:yq.description,actions:[{...yq,notApplicableReason:te(s.errors)}]}),oe}const m=tDe(l,t);if(m===void 0)return Zn;const y=[],T=new Map;let D;const I=[],W=new Map;let O,V=0;for(const{functionExtraction:oe,constantExtraction:de}of m){if(Y3(vq.kind,r)){const ue=oe.description;oe.errors.length===0?T.has(ue)||(T.set(ue,!0),y.push({description:ue,name:`function_scope_${V}`,kind:vq.kind})):D||(D={description:ue,name:`function_scope_${V}`,notApplicableReason:te(oe.errors),kind:vq.kind})}if(Y3(yq.kind,r)){const ue=de.description;de.errors.length===0?W.has(ue)||(W.set(ue,!0),I.push({description:ue,name:`constant_scope_${V}`,kind:yq.kind})):O||(O={description:ue,name:`constant_scope_${V}`,notApplicableReason:te(de.errors),kind:yq.kind})}V++}const ee=[];return y.length?ee.push({name:hq,description:fs(w.Extract_function),actions:y}):t.preferences.provideRefactorNotApplicableReason&&D&&ee.push({name:hq,description:fs(w.Extract_function),actions:[D]}),I.length?ee.push({name:hq,description:fs(w.Extract_constant),actions:I}):t.preferences.provideRefactorNotApplicableReason&&O&&ee.push({name:hq,description:fs(w.Extract_constant),actions:[O]}),ee.length?ee:Zn;function te(oe){let de=oe[0].messageText;return typeof de!="string"&&(de=de.messageText),de}}function Tee(t,r){const l=sOe(t.file,aB(t)).targetRange,m=/^function_scope_(\d+)$/.exec(r);if(m){const T=+m[1];return ce.assert(isFinite(T),"Expected to parse a finite number from the function scope index"),uut(l,t,T)}const y=/^constant_scope_(\d+)$/.exec(r);if(y){const T=+y[1];return ce.assert(isFinite(T),"Expected to parse a finite number from the constant scope index"),Qhe(l,t,T)}ce.fail("Unrecognized action name")}function sOe(t,r,s=!0){const{length:l}=r;if(l===0&&!s)return{errors:[Pp(t,r.start,l,I1.cannotExtractEmpty)]};const m=l===0&&s,y=P8e(t,r.start),T=Bge(t,K1(r)),D=y&&T&&s?cut(y,T,t):r,I=m?Aut(y):Nk(y,t,D),W=m?I:Nk(T,t,D);let O=0,V;if(!I||!W)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};if(I.flags&16777216)return{errors:[Pp(t,r.start,l,I1.cannotExtractJSDoc)]};if(I.parent!==W.parent)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};if(I!==W){if(!bqe(I.parent))return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};const Be=[];for(const Ve of I.parent.statements){if(Ve===I||Be.length){const pt=Ne(Ve);if(pt)return{errors:pt};Be.push(Ve)}if(Ve===W)break}return Be.length?{targetRange:{range:Be,facts:O,thisNode:V}}:{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]}}if(Bx(I)&&!I.expression)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};const ee=oe(I),te=de(ee)||Ne(ee);if(te)return{errors:te};return{targetRange:{range:lut(ee),facts:O,thisNode:V}};function oe(Be){if(Bx(Be)){if(Be.expression)return Be.expression}else if(Dh(Be)||My(Be)){const Ve=Dh(Be)?Be.declarationList.declarations:Be.declarations;let pt=0,Le;for(const ht of Ve)ht.initializer&&(pt++,Le=ht.initializer);if(pt===1)return Le}else if(ff(Be)&&Be.initializer)return Be.initializer;return Be}function de(Be){if(An(Ou(Be)?Be.expression:Be))return[kc(Be,I1.cannotExtractIdentifier)]}function ue(Be,Ve){let pt=Be;for(;pt!==Ve;){if(pt.kind===172){e_(pt)&&(O|=32);break}else if(pt.kind===169){GE(pt).kind===176&&(O|=32);break}else pt.kind===174&&e_(pt)&&(O|=32);pt=pt.parent}}function Ne(Be){let Ve;if((Dt=>{Dt[Dt.None=0]="None",Dt[Dt.Break=1]="Break",Dt[Dt.Continue=2]="Continue",Dt[Dt.Return=4]="Return"})(Ve||(Ve={})),ce.assert(Be.pos<=Be.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),ce.assert(!ab(Be.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!uf(Be)&&!(Gy(Be)&&vqe(Be))&&!dOe(Be))return[kc(Be,I1.statementOrExpressionExpected)];if(Be.flags&33554432)return[kc(Be,I1.cannotExtractAmbientBlock)];const pt=h0(Be);pt&&ue(Be,pt);let Le,ht=4,ke;if(_t(Be),O&8){const Dt=Q1(Be,!1,!1);(Dt.kind===262||Dt.kind===174&&Dt.parent.kind===210||Dt.kind===218)&&(O|=16)}return Le;function _t(Dt){if(Le)return!0;if(dl(Dt)){const it=Dt.kind===260?Dt.parent.parent:Dt;if(il(it,1))return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractExportedEntity)),!0}switch(Dt.kind){case 272:return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractImport)),!0;case 277:return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractExportedEntity)),!0;case 108:if(Dt.parent.kind===213){const it=h0(Dt);if(it===void 0||it.pos=r.start+r.length)return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractSuper)),!0}else O|=8,V=Dt;break;case 219:B_(Dt,function it(Ye){if(KW(Ye))O|=8,V=Dt;else{if(Jl(Ye)||S_(Ye)&&!ph(Ye))return!1;B_(Ye,it)}});case 263:case 262:tl(Dt.parent)&&Dt.parent.externalModuleIndicator===void 0&&(Le||(Le=[])).push(kc(Dt,I1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ft=ht;switch(Dt.kind){case 245:ht&=-5;break;case 258:ht=0;break;case 241:Dt.parent&&Dt.parent.kind===258&&Dt.parent.finallyBlock===Dt&&(ht=4);break;case 297:case 296:ht|=1;break;default:kN(Dt,!1)&&(ht|=3);break}switch(Dt.kind){case 197:case 110:O|=8,V=Dt;break;case 256:{const it=Dt.label;(ke||(ke=[])).push(it.escapedText),B_(Dt,_t),ke.pop();break}case 252:case 251:{const it=Dt.label;it?ni(ke,it.escapedText)||(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ht&(Dt.kind===252?1:2)||(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:O|=4;break;case 229:O|=2;break;case 253:ht&4?O|=1:(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingConditionalReturnStatement));break;default:B_(Dt,_t);break}ht=Ft}}}function cut(t,r,s){const l=t.getStart(s);let m=r.getEnd();return s.text.charCodeAt(m)===59&&m++,{start:l,length:m-l}}function lut(t){if(uf(t))return[t];if(Gy(t))return Ou(t.parent)?[t.parent]:t;if(dOe(t))return t}function Yhe(t){return ph(t)?$Te(t.body):J_(t)||tl(t)||z0(t)||Jl(t)}function gqe(t){let r=O6(t.range)?Dl(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const l=h0(r);if(l){const m=Kr(r,J_);return m?[m,l]:[l]}}const s=[];for(;;)if(r=r.parent,r.kind===169&&(r=Kr(r,l=>J_(l)).parent),Yhe(r)&&(s.push(r),r.kind===312))return s}function uut(t,r,s){const{scopes:l,readsAndWrites:{target:m,usagesPerScope:y,functionErrorsPerScope:T,exposedVariableDeclarations:D}}=ole(t,r);return ce.assert(!T[s].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),cOe(m,l[s],y[s],D,t,r)}function Qhe(t,r,s){const{scopes:l,readsAndWrites:{target:m,usagesPerScope:y,constantErrorsPerScope:T,exposedVariableDeclarations:D}}=ole(t,r);ce.assert(!T[s].length,"The extraction went missing? How?"),ce.assert(D.length===0,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested();const I=Nr(m)?m:m.statements[0].expression;return put(I,l[s],y[s],t.facts,r)}function tDe(t,r){const{scopes:s,readsAndWrites:{functionErrorsPerScope:l,constantErrorsPerScope:m}}=ole(t,r);return s.map((T,D)=>{const I=fut(T),W=_ut(T),O=J_(T)?dut(T):Jl(T)?hqe(T):yqe(T);let V,ee;return O===1?(V=LT(fs(w.Extract_to_0_in_1_scope),[I,"global"]),ee=LT(fs(w.Extract_to_0_in_1_scope),[W,"global"])):O===0?(V=LT(fs(w.Extract_to_0_in_1_scope),[I,"module"]),ee=LT(fs(w.Extract_to_0_in_1_scope),[W,"module"])):(V=LT(fs(w.Extract_to_0_in_1),[I,O]),ee=LT(fs(w.Extract_to_0_in_1),[W,O])),D===0&&!Jl(T)&&(ee=LT(fs(w.Extract_to_0_in_enclosing_scope),[W])),{functionExtraction:{description:V,errors:l[D]},constantExtraction:{description:ee,errors:m[D]}}})}function ole(t,r){const{file:s}=r,l=gqe(t),m=Eut(t,s),y=xut(t,l,m,s,r.program.getTypeChecker(),r.cancellationToken);return{scopes:l,readsAndWrites:y}}function fut(t){return J_(t)?"inner function":Jl(t)?"method":"function"}function _ut(t){return Jl(t)?"readonly field":"constant"}function dut(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:cB;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:ce.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function hqe(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 yqe(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function cOe(t,r,{usages:s,typeParameterUsages:l,substitutions:m},y,T,D){const I=D.program.getTypeChecker(),W=iu(D.program.getCompilerOptions()),O=If.createImportAdder(D.file,D.program,D.preferences,D.host),V=r.getSourceFile(),ee=eB(Jl(r)?"newMethod":"newFunction",V),te=Rs(r),oe=be.createIdentifier(ee);let de;const ue=[],Ne=[];let Be;s.forEach((on,pn)=>{let Or;if(!te){let Ut=I.getTypeOfSymbolAtLocation(on.symbol,on.node);Ut=I.getBaseTypeOfLiteralType(Ut),Or=If.typeToAutoImportableTypeNode(I,O,Ut,r,W,1)}const Xr=be.createParameterDeclaration(void 0,void 0,pn,void 0,Or);ue.push(Xr),on.usage===2&&(Be||(Be=[])).push(on),Ne.push(be.createIdentifier(pn))});const pt=oc(l.values(),on=>({type:on,declaration:lOe(on,D.startPosition)})).sort(gut),Le=pt.length===0?void 0:Qo(pt,({declaration:on})=>on),ht=Le!==void 0?Le.map(on=>be.createTypeReferenceNode(on.name,void 0)):void 0;if(Nr(t)&&!te){const on=I.getContextualType(t);de=I.typeToTypeNode(on,r,1)}const{body:ke,returnValueProperty:_t}=yut(t,y,Be,m,!!(T.facts&1));e2(ke);let Dt;const Ft=!!(T.facts&16);if(Jl(r)){const on=te?[]:[be.createModifier(123)];T.facts&32&&on.push(be.createModifier(126)),T.facts&4&&on.push(be.createModifier(134)),Dt=be.createMethodDeclaration(on.length?on:void 0,T.facts&2?be.createToken(42):void 0,oe,void 0,Le,ue,de,ke)}else Ft&&ue.unshift(be.createParameterDeclaration(void 0,void 0,"this",void 0,I.typeToTypeNode(I.getTypeAtLocation(T.thisNode),r,1),void 0)),Dt=be.createFunctionDeclaration(T.facts&4?[be.createToken(134)]:void 0,T.facts&2?be.createToken(42):void 0,oe,Le,ue,de,ke);const it=Hs.ChangeTracker.fromContext(D),Ye=(O6(T.range)?yl(T.range):T.range).end,ut=but(Ye,r);ut?it.insertNodeBefore(D.file,ut,Dt,!0):it.insertNodeAtEndOfScope(D.file,r,Dt),O.writeFixes(it);const lt=[],zt=hut(r,T,ee);Ft&&Ne.unshift(be.createIdentifier("this"));let Wt=be.createCallExpression(Ft?be.createPropertyAccessExpression(zt,"call"):zt,ht,Ne);if(T.facts&2&&(Wt=be.createYieldExpression(be.createToken(42),Wt)),T.facts&4&&(Wt=be.createAwaitExpression(Wt)),_Oe(t)&&(Wt=be.createJsxExpression(void 0,Wt)),y.length&&!Be)if(ce.assert(!_t,"Expected no returnValueProperty"),ce.assert(!(T.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),y.length===1){const on=y[0];lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(on.name),void 0,Rg(on.type),Wt)],on.parent.flags)))}else{const on=[],pn=[];let Or=y[0].parent.flags,Xr=!1;for(const In of y){on.push(be.createBindingElement(void 0,void 0,Rg(In.name)));const gr=I.typeToTypeNode(I.getBaseTypeOfLiteralType(I.getTypeAtLocation(In)),r,1);pn.push(be.createPropertySignature(void 0,In.symbol.name,void 0,gr)),Xr=Xr||In.type!==void 0,Or=Or&In.parent.flags}const Ut=Xr?be.createTypeLiteralNode(pn):void 0;Ut&&Sa(Ut,1),lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(be.createObjectBindingPattern(on),void 0,Ut,Wt)],Or)))}else if(y.length||Be){if(y.length)for(const pn of y){let Or=pn.parent.flags;Or&2&&(Or=Or&-3|1),lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(pn.symbol.name,void 0,un(pn.type))],Or)))}_t&<.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(_t,void 0,un(de))],1)));const on=fOe(y,Be);_t&&on.unshift(be.createShorthandPropertyAssignment(_t)),on.length===1?(ce.assert(!_t,"Shouldn't have returnValueProperty here"),lt.push(be.createExpressionStatement(be.createAssignment(on[0].name,Wt))),T.facts&1&<.push(be.createReturnStatement())):(lt.push(be.createExpressionStatement(be.createAssignment(be.createObjectLiteralExpression(on),Wt))),_t&<.push(be.createReturnStatement(be.createIdentifier(_t))))}else T.facts&1?lt.push(be.createReturnStatement(Wt)):O6(T.range)?lt.push(be.createExpressionStatement(Wt)):lt.push(Wt);O6(T.range)?it.replaceNodeRangeWithNodes(D.file,Dl(T.range),yl(T.range),lt):it.replaceNodeWithNodes(D.file,T.range,lt);const tt=it.getChanges(),kn=(O6(T.range)?Dl(T.range):T.range).getSourceFile().fileName,cr=WR(tt,kn,ee,!1);return{renameFilename:kn,renameLocation:cr,edits:tt};function un(on){if(on===void 0)return;const pn=Rg(on);let Or=pn;for(;xR(Or);)Or=Or.type;return g6(Or)&&lr(Or.types,Xr=>Xr.kind===157)?pn:be.createUnionTypeNode([pn,be.createKeywordTypeNode(157)])}}function put(t,r,{substitutions:s},l,m){const y=m.program.getTypeChecker(),T=r.getSourceFile(),D=sa(t)&&!Jl(r)&&!y.resolveName(t.name.text,t,111551,!1)&&!Gu(t.name)&&!ML(t.name)?t.name.text:eB(Jl(r)?"newProperty":"newLocal",T),I=Rs(r);let W=I||!y.isContextSensitive(t)?void 0:y.typeToTypeNode(y.getContextualType(t),r,1),O=vut(_g(t),s);({variableType:W,initializer:O}=de(W,O)),e2(O);const V=Hs.ChangeTracker.fromContext(m);if(Jl(r)){ce.assert(!I,"Cannot extract to a JS class");const ue=[];ue.push(be.createModifier(123)),l&32&&ue.push(be.createModifier(126)),ue.push(be.createModifier(148));const Ne=be.createPropertyDeclaration(ue,D,void 0,W,O);let Be=be.createPropertyAccessExpression(l&32?be.createIdentifier(r.name.getText()):be.createThis(),be.createIdentifier(D));_Oe(t)&&(Be=be.createJsxExpression(void 0,Be));const Ve=t.pos,pt=Tut(Ve,r);V.insertNodeBefore(m.file,pt,Ne,!0),V.replaceNode(m.file,t,Be)}else{const ue=be.createVariableDeclaration(D,void 0,W,O),Ne=mut(t,r);if(Ne){V.insertNodeBefore(m.file,Ne,ue);const Be=be.createIdentifier(D);V.replaceNode(m.file,t,Be)}else if(t.parent.kind===244&&r===Kr(t,Yhe)){const Be=be.createVariableStatement(void 0,be.createVariableDeclarationList([ue],2));V.replaceNode(m.file,t.parent,Be)}else{const Be=be.createVariableStatement(void 0,be.createVariableDeclarationList([ue],2)),Ve=Sut(t,r);if(Ve.pos===0?V.insertNodeAtTopOfFile(m.file,Be,!1):V.insertNodeBefore(m.file,Ve,Be,!1),t.parent.kind===244)V.delete(m.file,t.parent);else{let pt=be.createIdentifier(D);_Oe(t)&&(pt=be.createJsxExpression(void 0,pt)),V.replaceNode(m.file,t,pt)}}}const ee=V.getChanges(),te=t.getSourceFile().fileName,oe=WR(ee,te,D,!0);return{renameFilename:te,renameLocation:oe,edits:ee};function de(ue,Ne){if(ue===void 0)return{variableType:ue,initializer:Ne};if(!Dm(Ne)&&!ph(Ne)||Ne.typeParameters)return{variableType:ue,initializer:Ne};const Be=y.getTypeAtLocation(t),Ve=Vb(y.getSignaturesOfType(Be,0));if(!Ve)return{variableType:ue,initializer:Ne};if(Ve.getTypeParameters())return{variableType:ue,initializer:Ne};const pt=[];let Le=!1;for(const ht of Ne.parameters)if(ht.type)pt.push(ht);else{const ke=y.getTypeAtLocation(ht);ke===y.getAnyType()&&(Le=!0),pt.push(be.updateParameterDeclaration(ht,ht.modifiers,ht.dotDotDotToken,ht.name,ht.questionToken,ht.type||y.typeToTypeNode(ke,r,1),ht.initializer))}if(Le)return{variableType:ue,initializer:Ne};if(ue=void 0,ph(Ne))Ne=be.updateArrowFunction(Ne,nx(t)?N8(t):void 0,Ne.typeParameters,pt,Ne.type||y.typeToTypeNode(Ve.getReturnType(),r,1),Ne.equalsGreaterThanToken,Ne.body);else{if(Ve&&Ve.thisParameter){const ht=pp(pt);if(!ht||An(ht.name)&&ht.name.escapedText!=="this"){const ke=y.getTypeOfSymbolAtLocation(Ve.thisParameter,t);pt.splice(0,0,be.createParameterDeclaration(void 0,void 0,"this",void 0,y.typeToTypeNode(ke,r,1)))}}Ne=be.updateFunctionExpression(Ne,nx(t)?N8(t):void 0,Ne.asteriskToken,Ne.name,Ne.typeParameters,pt,Ne.type||y.typeToTypeNode(Ve.getReturnType(),r,1),Ne.body)}return{variableType:ue,initializer:Ne}}}function mut(t,r){let s;for(;t!==void 0&&t!==r;){if(ff(t)&&t.initializer===s&&My(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function lOe(t,r){let s;const l=t.symbol;if(l&&l.declarations)for(const m of l.declarations)(s===void 0||m.pos0;if(E_(t)&&!y&&l.size===0)return{body:be.createBlock(t.statements,!0),returnValueProperty:void 0};let T,D=!1;const I=be.createNodeArray(E_(t)?t.statements.slice(0):[uf(t)?t:be.createReturnStatement(_g(t))]);if(y||l.size){const O=Fa(I,W,uf).slice();if(y&&!m&&uf(t)){const V=fOe(r,s);V.length===1?O.push(be.createReturnStatement(V[0].name)):O.push(be.createReturnStatement(be.createObjectLiteralExpression(V)))}return{body:be.createBlock(O,!0),returnValueProperty:T}}else return{body:be.createBlock(I,!0),returnValueProperty:void 0};function W(O){if(!D&&Bx(O)&&y){const V=fOe(r,s);return O.expression&&(T||(T="__return"),V.unshift(be.createPropertyAssignment(T,nr(O.expression,W,Nr)))),V.length===1?be.createReturnStatement(V[0].name):be.createReturnStatement(be.createObjectLiteralExpression(V))}else{const V=D;D=D||J_(O)||Jl(O);const ee=l.get(Im(O).toString()),te=ee?Rg(ee):ia(O,W,I6);return D=V,te}}}function vut(t,r){return r.size?s(t):t;function s(l){const m=r.get(Im(l).toString());return m?Rg(m):ia(l,s,I6)}}function uOe(t){if(J_(t)){const r=t.body;if(E_(r))return r.statements}else{if(z0(t)||tl(t))return t.statements;if(Jl(t))return t.members}return Zn}function but(t,r){return lr(uOe(r),s=>s.pos>=t&&J_(s)&&!pg(s))}function Tut(t,r){const s=r.members;ce.assert(s.length>0,"Found no members");let l,m=!0;for(const y of s){if(y.pos>t)return l||s[0];if(m&&!Os(y)){if(l!==void 0)return y;m=!1}l=y}return l===void 0?ce.fail():l}function Sut(t,r){ce.assert(!Jl(r));let s;for(let l=t;l!==r;l=l.parent)Yhe(l)&&(s=l);for(let l=(s||t).parent;;l=l.parent){if(bqe(l)){let m;for(const y of l.statements){if(y.pos>t.pos)break;m=y}return!m&&tx(l)?(ce.assert(Loe(l.parent.parent),"Grandparent isn't a switch statement"),l.parent.parent):ce.checkDefined(m,"prevStatement failed to get set")}ce.assert(l!==r,"Didn't encounter a block-like before encountering scope")}}function fOe(t,r){const s=Vn(t,m=>be.createShorthandPropertyAssignment(m.symbol.name)),l=Vn(r,m=>be.createShorthandPropertyAssignment(m.symbol.name));return s===void 0?l:l===void 0?s:s.concat(l)}function O6(t){return ls(t)}function Eut(t,r){return O6(t.range)?{pos:Dl(t.range).getStart(r),end:yl(t.range).getEnd()}:t.range}function xut(t,r,s,l,m,y){const T=new Map,D=[],I=[],W=[],O=[],V=[],ee=new Map,te=[];let oe;const de=O6(t.range)?t.range.length===1&&Ou(t.range[0])?t.range[0].expression:void 0:t.range;let ue;if(de===void 0){const ut=t.range,lt=Dl(ut).getStart(),zt=yl(ut).end;ue=Pp(l,lt,zt-lt,I1.expressionExpected)}else m.getTypeAtLocation(de).flags&147456&&(ue=kc(de,I1.uselessConstantType));for(const ut of r){D.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),I.push(new Map),W.push([]);const lt=[];ue&<.push(ue),Jl(ut)&&Rs(ut)&<.push(kc(ut,I1.cannotExtractToJSClass)),ph(ut)&&!E_(ut.body)&<.push(kc(ut,I1.cannotExtractToExpressionArrowFunction)),O.push(lt)}const Ne=new Map,Be=O6(t.range)?be.createBlock(t.range):t.range,Ve=O6(t.range)?Dl(t.range):t.range,pt=Le(Ve);if(ke(Be),pt&&!O6(t.range)&&!Pb(t.range)){const ut=m.getContextualType(t.range);ht(ut)}if(T.size>0){const ut=new Map;let lt=0;for(let zt=Ve;zt!==void 0&<{D[lt].typeParameterUsages.set(tt,Wt)}),lt++),QD(zt))for(const Wt of oR(zt)){const tt=m.getTypeAtLocation(Wt);T.has(tt.id.toString())&&ut.set(tt.id.toString(),tt)}ce.assert(lt===r.length,"Should have iterated all scopes")}if(V.length){const ut=gie(r[0],r[0].parent)?r[0]:Bs(r[0]);B_(ut,Ft)}for(let ut=0;ut0&&(lt.usages.size>0||lt.typeParameterUsages.size>0)){const tt=O6(t.range)?t.range[0]:t.range;O[ut].push(kc(tt,I1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&Jl(r[ut])&&W[ut].push(kc(t.thisNode,I1.cannotExtractFunctionsContainingThisToMethod));let zt=!1,Wt;if(D[ut].usages.forEach(tt=>{tt.usage===2&&(zt=!0,tt.symbol.flags&106500&&tt.symbol.valueDeclaration&&Ab(tt.symbol.valueDeclaration,64)&&(Wt=tt.symbol.valueDeclaration))}),ce.assert(O6(t.range)||te.length===0,"No variable declarations expected if something was extracted"),zt&&!O6(t.range)){const tt=kc(t.range,I1.cannotWriteInExpression);W[ut].push(tt),O[ut].push(tt)}else if(Wt&&ut>0){const tt=kc(Wt,I1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);W[ut].push(tt),O[ut].push(tt)}else if(oe){const tt=kc(oe,I1.cannotExtractExportedEntity);W[ut].push(tt),O[ut].push(tt)}}return{target:Be,usagesPerScope:D,functionErrorsPerScope:W,constantErrorsPerScope:O,exposedVariableDeclarations:te};function Le(ut){return!!Kr(ut,lt=>QD(lt)&&oR(lt).length!==0)}function ht(ut){const lt=m.getSymbolWalker(()=>(y.throwIfCancellationRequested(),!0)),{visitedTypes:zt}=lt.walkType(ut);for(const Wt of zt)Wt.isTypeParameter()&&T.set(Wt.id.toString(),Wt)}function ke(ut,lt=1){if(pt){const zt=m.getTypeAtLocation(ut);ht(zt)}if(dl(ut)&&ut.symbol&&V.push(ut),wy(ut))ke(ut.left,2),ke(ut.right);else if(WVe(ut))ke(ut.operand,2);else if(sa(ut)||Ed(ut))B_(ut,ke);else if(An(ut)){if(!ut.parent||nT(ut.parent)&&ut!==ut.parent.left||sa(ut.parent)&&ut!==ut.parent.expression)return;_t(ut,lt,rC(ut))}else B_(ut,ke)}function _t(ut,lt,zt){const Wt=Dt(ut,lt,zt);if(Wt)for(let tt=0;tt=lt)return tt;if(Ne.set(tt,lt),Mn){for(const un of D)un.usages.get(ut.text)&&un.usages.set(ut.text,{usage:lt,symbol:Wt,node:ut});return tt}const kn=Wt.getDeclarations(),cr=kn&&lr(kn,un=>un.getSourceFile()===l);if(cr&&!AZ(s,cr.getStart(),cr.end)){if(t.facts&2&<===2){const un=kc(ut,I1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const on of W)on.push(un);for(const on of O)on.push(un)}for(let un=0;un=0)return;const lt=An(ut)?it(ut):m.getSymbolAtLocation(ut);if(lt){const zt=lr(V,Wt=>Wt.symbol===lt);if(zt)if(ff(zt)){const Wt=zt.symbol.id.toString();ee.has(Wt)||(te.push(zt),ee.set(Wt,!0))}else oe=oe||zt}B_(ut,Ft)}function it(ut){return ut.parent&&BT(ut.parent)&&ut.parent.name===ut?m.getShorthandAssignmentValueSymbol(ut.parent):m.getSymbolAtLocation(ut)}function Ye(ut,lt,zt){if(!ut)return;const Wt=ut.getDeclarations();if(Wt&&Wt.some(Mn=>Mn.parent===lt))return be.createIdentifier(ut.name);const tt=Ye(ut.parent,lt,zt);if(tt!==void 0)return zt?be.createQualifiedName(tt,be.createIdentifier(ut.name)):be.createPropertyAccessExpression(tt,ut.name)}}function Aut(t){return Kr(t,r=>r.parent&&vqe(r)&&!ys(r.parent))}function vqe(t){const{parent:r}=t;switch(r.kind){case 306:return!1}switch(t.kind){case 11:return r.kind!==272&&r.kind!==276;case 230:case 206:case 208:return!1;case 80:return r.kind!==208&&r.kind!==276&&r.kind!==281}return!0}function bqe(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function _Oe(t){return dOe(t)||(gy(t)||TW(t)||KE(t))&&(gy(t.parent)||KE(t.parent))}function dOe(t){return Wp(t)&&t.parent&&Pb(t.parent)}var hq,yq,vq,I1,pOe,mOe=G({"src/services/refactors/extractSymbol.ts"(){El(),MP(),hq="Extract Symbol",yq={name:"Extract Constant",description:fs(w.Extract_constant),kind:"refactor.extract.constant"},vq={name:"Extract Function",description:fs(w.Extract_function),kind:"refactor.extract.function"},SI(hq,{kinds:[yq.kind,vq.kind],getEditsForAction:Tee,getAvailableActions:mqe}),(t=>{function r(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=r("Cannot extract functions containing this to method")})(I1||(I1={})),pOe=(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))(pOe||{})}}),zR={};Oe(zR,{Messages:()=>I1,RangeFacts:()=>pOe,getRangeToExtract:()=>sOe,getRefactorActionsToExtractSymbol:()=>mqe,getRefactorEditsToExtractSymbol:()=>Tee});var Cut=G({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){mOe()}}),Zhe,nDe,eye,Tqe=G({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){El(),MP(),Zhe="Generate 'get' and 'set' accessors",nDe=fs(w.Generate_get_and_set_accessors),eye={name:Zhe,description:nDe,kind:"refactor.rewrite.property.generateAccessors"},SI(Zhe,{kinds:[eye.kind],getEditsForAction:function(r,s){if(!r.endPosition)return;const l=If.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);ce.assert(l&&!I2(l),"Expected applicable refactor info");const m=If.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,s);if(!m)return;const y=r.file.fileName,T=l.renameAccessor?l.accessorName:l.fieldName,I=(An(T)?0:-1)+WR(m,y,T.text,Pu(l.declaration));return{renameFilename:y,renameLocation:I,edits:m}},getAvailableActions(t){if(!t.endPosition)return Zn;const r=If.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:Zhe,description:nDe,actions:[{...eye,notApplicableReason:r.error}]}]:Zn:[{name:Zhe,description:nDe,actions:[eye]}]:Zn}})}}),gOe={},hOe=G({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){Tqe()}});function bq(t){const r=n1(t);if(r&&!I2(r))return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,l=>Sq(t.file,l,r.declaration,r.returnTypeNode))}}function Tq(t){const r=n1(t);return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:ale,description:rDe,actions:[{...Hj,notApplicableReason:r.error}]}]:Zn:[{name:ale,description:rDe,actions:[Hj]}]:Zn}function Sq(t,r,s,l){const m=Wm(s,22,t),y=ph(s)&&m===void 0,T=y?Dl(s.parameters):m;T&&(y&&(r.insertNodeBefore(t,T,be.createToken(21)),r.insertNodeAfter(t,T,be.createToken(22))),r.insertNodeAt(t,T.end,l,{prefix:": "}))}function n1(t){if(Rs(t.file)||!Y3(Hj.kind,t.kind))return;const r=bf(t.file,t.startPosition),s=Kr(r,T=>E_(T)||T.parent&&ph(T.parent)&&(T.kind===39||T.parent.body===T)?"quit":yOe(T));if(!s||!s.body||s.type)return{error:fs(w.Return_type_must_be_inferred_from_a_function)};const l=t.program.getTypeChecker(),m=Dut(l,s);if(!m)return{error:fs(w.Could_not_determine_function_return_type)};const y=l.typeToTypeNode(m,s,1);if(y)return{declaration:s,returnTypeNode:y}}function yOe(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function Dut(t,r){if(t.isImplementationOfOverload(r)){const l=t.getTypeAtLocation(r).getCallSignatures();if(l.length>1)return t.getUnionType(Qo(l,m=>m.getReturnType()))}const s=t.getSignatureFromDeclaration(r);if(s)return t.getReturnTypeOfSignature(s)}var ale,rDe,Hj,iDe=G({"src/services/refactors/inferFunctionReturnType.ts"(){El(),MP(),ale="Infer function return type",rDe=fs(w.Infer_function_return_type),Hj={name:ale,description:rDe,kind:"refactor.rewrite.function.returnType"},SI(ale,{kinds:[Hj.kind],getEditsForAction:bq,getAvailableActions:Tq})}}),oDe={},Iut=G({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){iDe()}}),Eq={};Oe(Eq,{addExportToChanges:()=>w3e,addExports:()=>Lhe,addNewFileToTsconfig:()=>zce,addOrRemoveBracesToArrowFunction:()=>Y$e,convertArrowFunctionOrFunctionExpression:()=>Flt,convertParamsToDestructuredObject:()=>Q3e,convertStringOrTemplateLiteral:()=>rOe,convertToOptionalChainExpression:()=>pqe,createNewFileName:()=>R3e,createOldFileImportsFromTargetFile:()=>I3e,deleteMovedStatements:()=>Mhe,deleteUnusedImports:()=>Ohe,deleteUnusedOldImports:()=>C3e,doChangeNamedToNamespaceOrDefault:()=>M$e,extractSymbol:()=>zR,filterImport:()=>fB,forEachImportInStatement:()=>dee,generateGetAccessorAndSetAccessor:()=>gOe,getApplicableRefactors:()=>Mce,getEditsForRefactor:()=>Lce,getStatementsToMove:()=>qce,getTopLevelDeclarationStatement:()=>$ce,getUsageInfo:()=>Whe,inferFunctionReturnType:()=>oDe,isRefactorErrorInfo:()=>I2,isTopLevelDeclaration:()=>mee,makeImportOrRequire:()=>Uce,moduleSpecifierFromImport:()=>Vce,nameOfTopLevelDeclaration:()=>MCe,refactorKindBeginsWith:()=>Y3,registerRefactor:()=>SI,updateImportsInOtherFiles:()=>D3e});var MP=G({"src/services/_namespaces/ts.refactor.ts"(){ACe(),mlt(),L$e(),kCe(),blt(),Nhe(),z$e(),q$e(),Q$e(),nqe(),Ylt(),iOe(),aOe(),Cut(),hOe(),Iut()}});function Sqe(t,r,s,l){const m=vOe(t,r,s,l);ce.assert(m.spans.length%3===0);const y=m.spans,T=[];for(let D=0;D{m.push(T.getStart(r),T.getWidth(r),(D+1<<8)+I)},l),m}function Eqe(t,r,s,l,m){const y=t.getTypeChecker();let T=!1;function D(I){switch(I.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:m.throwIfCancellationRequested()}if(!I||!Yy(s,I.pos,I.getFullWidth())||I.getFullWidth()===0)return;const W=T;if((gy(I)||TW(I))&&(T=!0),v6(I)&&(T=!1),An(I)&&!T&&!rye(I)&&!d3(I.escapedText)){let O=y.getSymbolAtLocation(I);if(O){O.flags&2097152&&(O=y.getAliasedSymbol(O));let V=Put(O,z3(I));if(V!==void 0){let ee=0;I.parent&&(ym(I.parent)||aDe.get(I.parent.kind)===V)&&I.parent.name===I&&(ee=1),V===6&&xqe(I)&&(V=9),V=Nut(y,I,V);const te=O.valueDeclaration;if(te){const oe=Gg(te),de=qD(te);oe&32&&(ee|=2),oe&512&&(ee|=4),V!==0&&V!==2&&(oe&64||de&2||O.getFlags()&8)&&(ee|=8),(V===7||V===10)&&tye(te,r)&&(ee|=32),t.isSourceFileDefaultLibrary(te.getSourceFile())&&(ee|=16)}else O.declarations&&O.declarations.some(oe=>t.isSourceFileDefaultLibrary(oe.getSourceFile()))&&(ee|=16);l(I,V,ee)}}}B_(I,D),T=W}D(r)}function Put(t,r){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(r&2)return 2}else if(s&262144)return 4;let l=t.valueDeclaration||t.declarations&&t.declarations[0];return l&&ym(l)&&(l=nye(l)),l&&aDe.get(l.kind)}function Nut(t,r,s){if(s===7||s===9||s===6){const l=t.getTypeAtLocation(r);if(l){const m=y=>y(l)||l.isUnion()&&l.types.some(y);if(s!==6&&m(y=>y.getConstructSignatures().length>0))return 0;if(m(y=>y.getCallSignatures().length>0)&&!m(y=>y.getProperties().length>0)||wut(r))return s===9?11:10}}return s}function tye(t,r){return ym(t)&&(t=nye(t)),ff(t)?(!tl(t.parent.parent.parent)||CP(t.parent))&&t.getSourceFile()===r:b0(t)?!tl(t.parent)&&t.getSourceFile()===r:!1}function nye(t){for(;;)if(ym(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function rye(t){const r=t.parent;return r&&(lC(r)||oS(r)||QL(r))}function wut(t){for(;xqe(t);)t=t.parent;return el(t.parent)&&t.parent.expression===t}function xqe(t){return nT(t.parent)&&t.parent.right===t||sa(t.parent)&&t.parent.name===t}var bOe,MF,EI,aDe,sDe=G({"src/services/classifier2020.ts"(){El(),bOe=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(bOe||{}),MF=(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))(MF||{}),EI=(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))(EI||{}),aDe=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 Aqe(t,r,s,l){const m=aR(t)?new uye(t,r,s):t===80?new xee(80,r,s):t===81?new dDe(81,r,s):new _ye(t,r,s);return m.parent=l,m.flags=l.flags&101441536,m}function Rut(t,r){if(!aR(t.kind))return Zn;const s=[];if(PN(t))return t.forEachChild(T=>{s.push(T)}),s;lT.setText((r||t.getSourceFile()).text);let l=t.pos;const m=T=>{iye(s,l,T.pos,t),s.push(T),l=T.end},y=T=>{iye(s,l,T.pos,t),s.push(Mut(T,t)),l=T.end};return Ot(t.jsDoc,m),l=t.pos,t.forEachChild(m,y),iye(s,l,t.end,t),lT.setText(void 0),s}function iye(t,r,s,l){for(lT.resetTokenState(r);rr.tagName.text==="inheritDoc"||r.tagName.text==="inheritdoc")}function oye(t,r){if(!t)return Zn;let s=VF.getJsDocTagsFromDeclarations(t,r);if(r&&(s.length===0||t.some(Cqe))){const l=new Set;for(const m of t){const y=Dqe(r,m,T=>{var D;if(!l.has(T))return l.add(T),m.kind===177||m.kind===178?T.getContextualJsDocTags(m,r):((D=T.declarations)==null?void 0:D.length)===1?T.getJsDocTags():void 0});y&&(s=[...y,...s])}}return s}function aye(t,r){if(!t)return Zn;let s=VF.getJsDocCommentsFromDeclarations(t,r);if(r&&(s.length===0||t.some(Cqe))){const l=new Set;for(const m of t){const y=Dqe(r,m,T=>{if(!l.has(T))return l.add(T),m.kind===177||m.kind===178?T.getContextualDocumentationComment(m,r):T.getDocumentationComment(r)});y&&(s=s.length===0?y.slice():y.concat(lS(),s))}}return s}function Dqe(t,r,s){var l;const m=((l=r.parent)==null?void 0:l.kind)===176?r.parent.parent:r.parent;if(!m)return;const y=Ny(r);return Yr(fG(m),T=>{const D=t.getTypeAtLocation(T),I=y&&D.symbol?t.getTypeOfSymbol(D.symbol):D,W=t.getPropertyOfType(I,r.symbol.name);return W?s(W):void 0})}function Iqe(){return{getNodeConstructor:()=>uye,getTokenConstructor:()=>_ye,getIdentifierConstructor:()=>xee,getPrivateIdentifierConstructor:()=>dDe,getSourceFileConstructor:()=>Nqe,getSymbolConstructor:()=>fye,getTypeConstructor:()=>Pqe,getSignatureConstructor:()=>Aee,getSourceMapSourceConstructor:()=>wqe}}function See(t){let r=!0;for(const l in t)if(ef(t,l)&&!cDe(l)){r=!1;break}if(r)return t;const s={};for(const l in t)if(ef(t,l)){const m=cDe(l)?l:l.charAt(0).toLowerCase()+l.substr(1);s[m]=t[l]}return s}function cDe(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function lDe(t){return t?Vn(t,r=>r.text).join(""):""}function sle(){return{target:1,jsx:1}}function TOe(){return If.getSupportedErrorCodes()}function SOe(t,r,s){t.version=s,t.scriptSnapshot=r}function uDe(t,r,s,l,m,y){const T=Ape(t,RZ(r),s,m,y);return SOe(T,r,l),T}function Eee(t,r,s,l,m){if(l&&s!==t.version){let T;const D=l.span.start!==0?t.text.substr(0,l.span.start):"",I=K1(l.span)!==t.text.length?t.text.substr(K1(l.span)):"";if(l.newLength===0)T=D&&I?D+I:D||I;else{const O=r.getText(l.span.start,l.span.start+l.newLength);T=D&&I?D+O+I:D?D+O:O+I}const W=XEe(t,T,l,m);return SOe(W,r,s),W.nameTable=void 0,t!==W&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),W}const y={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return uDe(t.fileName,r,y,s,!0,t.scriptKind)}function kqe(t,r=j8e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var l;let m;s===void 0?m=0:typeof s=="boolean"?m=s?2:0:m=s;const y=new _le(t);let T,D,I=0;const W=t.getCancellationToken?new pDe(t.getCancellationToken()):Rqe,O=t.getCurrentDirectory();LSe((l=t.getLocalizedDiagnosticMessages)==null?void 0:l.bind(t));function V(wt){t.log&&t.log(wt)}const ee=xH(t),te=_v(ee),oe=oCe({useCaseSensitiveFileNames:()=>ee,getCurrentDirectory:()=>O,getProgram:Ne,fileExists:wc(t,t.fileExists),readFile:wc(t,t.readFile),getDocumentPositionMapper:wc(t,t.getDocumentPositionMapper),getSourceFileLike:wc(t,t.getSourceFileLike),log:V});function de(wt){const $e=T.getSourceFile(wt);if(!$e){const Zt=new Error(`Could not find source file: '${wt}'.`);throw Zt.ProgramFiles=T.getSourceFiles().map(xe=>xe.fileName),Zt}return $e}function ue(){var wt,$e,Zt;if(ce.assert(m!==2),t.getProjectVersion){const c_=t.getProjectVersion();if(c_){if(D===c_&&!((wt=t.hasChangedAutomaticTypeDirectiveNames)!=null&&wt.call(t)))return;D=c_}}const xe=t.getTypeRootsVersion?t.getTypeRootsVersion():0;I!==xe&&(V("TypeRoots version has changed; provide new program"),T=void 0,I=xe);const an=t.getScriptFileNames().slice(),Un=t.getCompilationSettings()||sle(),rr=t.hasInvalidatedResolutions||bg,mi=wc(t,t.hasInvalidatedLibResolutions)||bg,Ji=wc(t,t.hasChangedAutomaticTypeDirectiveNames),zo=($e=t.getProjectReferences)==null?void 0:$e.call(t);let Ca,Qa={getSourceFile:Ma,getSourceFileByPath:U0,getCancellationToken:()=>W,getCanonicalFileName:te,useCaseSensitiveFileNames:()=>ee,getNewLine:()=>JE(Un),getDefaultLibFileName:c_=>t.getDefaultLibFileName(c_),writeFile:ku,getCurrentDirectory:()=>O,fileExists:c_=>t.fileExists(c_),readFile:c_=>t.readFile&&t.readFile(c_),getSymlinkCache:wc(t,t.getSymlinkCache),realpath:wc(t,t.realpath),directoryExists:c_=>O0(c_,t),getDirectories:c_=>t.getDirectories?t.getDirectories(c_):[],readDirectory:(c_,Kd,iy,Oh,jg)=>(ce.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(c_,Kd,iy,Oh,jg)),onReleaseOldSourceFile:q_,onReleaseParsedCommandLine:x_,hasInvalidatedResolutions:rr,hasInvalidatedLibResolutions:mi,hasChangedAutomaticTypeDirectiveNames:Ji,trace:wc(t,t.trace),resolveModuleNames:wc(t,t.resolveModuleNames),getModuleResolutionCache:wc(t,t.getModuleResolutionCache),createHash:wc(t,t.createHash),resolveTypeReferenceDirectives:wc(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wc(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wc(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:wc(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:wc(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ha};const Ks=Qa.getSourceFile,{getSourceFileWithCache:vs}=JQ(Qa,c_=>_h(c_,O,te),(...c_)=>Ks.call(Qa,...c_));Qa.getSourceFile=vs,(Zt=t.setCompilerHost)==null||Zt.call(t,Qa);const ou={useCaseSensitiveFileNames:ee,fileExists:c_=>Qa.fileExists(c_),readFile:c_=>Qa.readFile(c_),directoryExists:c_=>Qa.directoryExists(c_),getDirectories:c_=>Qa.getDirectories(c_),realpath:Qa.realpath,readDirectory:(...c_)=>Qa.readDirectory(...c_),trace:Qa.trace,getCurrentDirectory:Qa.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ku},qd=r.getKeyForCompilationSettings(Un);let z_=new Set;if(Qae(T,an,Un,(c_,Kd)=>t.getScriptVersion(Kd),c_=>Qa.fileExists(c_),rr,mi,Ji,Ha,zo)){Qa=void 0,Ca=void 0,z_=void 0;return}T=m4({rootNames:an,options:Un,host:Qa,oldProgram:T,projectReferences:zo}),Qa=void 0,Ca=void 0,z_=void 0,oe.clearCache(),T.getTypeChecker();return;function Ha(c_){const Kd=_h(c_,O,te),iy=Ca==null?void 0:Ca.get(Kd);if(iy!==void 0)return iy||void 0;const Oh=t.getParsedCommandLine?t.getParsedCommandLine(c_):mu(c_);return(Ca||(Ca=new Map)).set(Kd,Oh||!1),Oh}function mu(c_){const Kd=Ma(c_,100);if(Kd)return Kd.path=_h(c_,O,te),Kd.resolvedPath=Kd.path,Kd.originalFileName=Kd.fileName,Qoe(Kd,ou,Su(qc(c_),O),void 0,Su(c_,O))}function x_(c_,Kd,iy){var Oh;t.getParsedCommandLine?(Oh=t.onReleaseParsedCommandLine)==null||Oh.call(t,c_,Kd,iy):Kd&&q_(Kd.sourceFile,iy)}function q_(c_,Kd){const iy=r.getKeyForCompilationSettings(Kd);r.releaseDocumentWithKey(c_.resolvedPath,iy,c_.scriptKind,c_.impliedNodeFormat)}function Ma(c_,Kd,iy,Oh){return U0(c_,_h(c_,O,te),Kd,iy,Oh)}function U0(c_,Kd,iy,Oh,jg){ce.assert(Qa,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const zv=t.getScriptSnapshot(c_);if(!zv)return;const m_=M8e(c_,t),Yu=t.getScriptVersion(c_);if(!jg){const Tv=T&&T.getSourceFileByPath(Kd);if(Tv){if(m_===Tv.scriptKind||z_.has(Tv.resolvedPath))return r.updateDocumentWithKey(c_,Kd,t,qd,zv,Yu,m_,iy);r.releaseDocumentWithKey(Tv.resolvedPath,r.getKeyForCompilationSettings(T.getCompilerOptions()),Tv.scriptKind,Tv.impliedNodeFormat),z_.add(Tv.resolvedPath)}}return r.acquireDocumentWithKey(c_,Kd,t,qd,zv,Yu,m_,iy)}}function Ne(){if(m===2){ce.assert(T===void 0);return}return ue(),T}function Be(){var wt;return(wt=t.getPackageJsonAutoImportProvider)==null?void 0:wt.call(t)}function Ve(wt,$e){const Zt=T.getTypeChecker(),xe=an();if(!xe)return!1;for(const rr of wt)for(const mi of rr.references){const Ji=Un(mi);if(ce.assertIsDefined(Ji),$e.has(mi)||Wf.isDeclarationOfSymbol(Ji,xe)){$e.add(mi),mi.isDefinition=!0;const zo=nq(mi,oe,wc(t,t.fileExists));zo&&$e.add(zo)}else mi.isDefinition=!1}return!0;function an(){for(const rr of wt)for(const mi of rr.references){if($e.has(mi)){const zo=Un(mi);return ce.assertIsDefined(zo),Zt.getSymbolAtLocation(zo)}const Ji=nq(mi,oe,wc(t,t.fileExists));if(Ji&&$e.has(Ji)){const zo=Un(Ji);if(zo)return Zt.getSymbolAtLocation(zo)}}}function Un(rr){const mi=T.getSourceFile(rr.fileName);if(!mi)return;const Ji=Hx(mi,rr.textSpan.start);return Wf.Core.getAdjustedNode(Ji,{use:Wf.FindReferencesUse.References})}}function pt(){if(T){const wt=r.getKeyForCompilationSettings(T.getCompilerOptions());Ot(T.getSourceFiles(),$e=>r.releaseDocumentWithKey($e.resolvedPath,wt,$e.scriptKind,$e.impliedNodeFormat)),T=void 0}}function Le(){pt(),t=void 0}function ht(wt){return ue(),T.getSyntacticDiagnostics(de(wt),W).slice()}function ke(wt){ue();const $e=de(wt),Zt=T.getSemanticDiagnostics($e,W);if(!gv(T.getCompilerOptions()))return Zt.slice();const xe=T.getDeclarationDiagnostics($e,W);return[...Zt,...xe]}function _t(wt){return ue(),tee(de(wt),T,W)}function Dt(){return ue(),[...T.getOptionsDiagnostics(W),...T.getGlobalDiagnostics(W)]}function Ft(wt,$e,Zt=NA,xe){const an={...Zt,includeCompletionsForModuleExports:Zt.includeCompletionsForModuleExports||Zt.includeExternalModuleExports,includeCompletionsWithInsertText:Zt.includeCompletionsWithInsertText||Zt.includeInsertTextCompletions};return ue(),ow.getCompletionsAtPosition(t,T,V,de(wt),$e,an,Zt.triggerCharacter,Zt.triggerKind,W,xe&&Rb.getFormatContext(xe,t),Zt.includeSymbol)}function it(wt,$e,Zt,xe,an,Un=NA,rr){return ue(),ow.getCompletionEntryDetails(T,V,de(wt),$e,{name:Zt,source:an,data:rr},t,xe&&Rb.getFormatContext(xe,t),Un,W)}function Ye(wt,$e,Zt,xe,an=NA){return ue(),ow.getCompletionEntrySymbol(T,V,de(wt),$e,{name:Zt,source:xe},t,an)}function ut(wt,$e){ue();const Zt=de(wt),xe=Hx(Zt,$e);if(xe===Zt)return;const an=T.getTypeChecker(),Un=lt(xe),rr=lle(Un,an);if(!rr||an.isUnknownSymbol(rr)){const Qa=zt(Zt,Un,$e)?an.getTypeAtLocation(Un):void 0;return Qa&&{kind:"",kindModifiers:"",textSpan:gE(Un,Zt),displayParts:an.runWithCancellationToken(W,Ks=>GZ(Ks,Qa,j3(Un))),documentation:Qa.symbol?Qa.symbol.getDocumentationComment(an):void 0,tags:Qa.symbol?Qa.symbol.getJsDocTags(an):void 0}}const{symbolKind:mi,displayParts:Ji,documentation:zo,tags:Ca}=an.runWithCancellationToken(W,Qa=>I4.getSymbolDisplayPartsDocumentationAndSymbolKind(Qa,rr,Zt,j3(Un),Un));return{kind:mi,kindModifiers:I4.getSymbolModifiers(an,rr),textSpan:gE(Un,Zt),displayParts:Ji,documentation:zo,tags:Ca}}function lt(wt){return Ac(wt.parent)&&wt.pos===wt.parent.pos?wt.parent.expression:rS(wt.parent)&&wt.pos===wt.parent.pos||S9(wt.parent)&&wt.parent.name===wt||dI(wt.parent)?wt.parent:wt}function zt(wt,$e,Zt){switch($e.kind){case 80:return!Vse($e)&&!I8e($e)&&!CN($e.parent);case 211:case 166:return!LR(wt,Zt);case 110:case 197:case 108:case 202:return!0;case 236:return S9($e);default:return!1}}function Wt(wt,$e,Zt,xe){return ue(),D4.getDefinitionAtPosition(T,de(wt),$e,Zt,xe)}function tt(wt,$e){return ue(),D4.getDefinitionAndBoundSpan(T,de(wt),$e)}function Mn(wt,$e){return ue(),D4.getTypeDefinitionAtPosition(T.getTypeChecker(),de(wt),$e)}function kn(wt,$e){return ue(),Wf.getImplementationsAtPosition(T,W,T.getSourceFiles(),de(wt),$e)}function cr(wt,$e,Zt){const xe=Fd(wt);ce.assert(Zt.some(rr=>Fd(rr)===xe)),ue();const an=Qo(Zt,rr=>T.getSourceFile(rr)),Un=de(wt);return mhe.getDocumentHighlights(T,W,Un,$e,an)}function un(wt,$e,Zt,xe,an){ue();const Un=de(wt),rr=CAe(Hx(Un,$e));if(wke.nodeIsEligibleForRename(rr))if(An(rr)&&(rD(rr.parent)||Sk(rr.parent))&&z9(rr.escapedText)){const{openingElement:mi,closingElement:Ji}=rr.parent.parent;return[mi,Ji].map(zo=>{const Ca=gE(zo.tagName,Un);return{fileName:Un.fileName,textSpan:Ca,...Wf.toContextSpan(Ca,Un,zo.parent)}})}else{const mi=Jx(Un,an??NA),Ji=typeof an=="boolean"?an:an==null?void 0:an.providePrefixAndSuffixTextForRename;return pn(rr,$e,{findInStrings:Zt,findInComments:xe,providePrefixAndSuffixTextForRename:Ji,use:Wf.FindReferencesUse.Rename},(zo,Ca,Qa)=>Wf.toRenameLocation(zo,Ca,Qa,Ji||!1,mi))}}function on(wt,$e){return ue(),pn(Hx(de(wt),$e),$e,{use:Wf.FindReferencesUse.References},Wf.toReferenceEntry)}function pn(wt,$e,Zt,xe){ue();const an=Zt&&Zt.use===Wf.FindReferencesUse.Rename?T.getSourceFiles().filter(Un=>!T.isSourceFileDefaultLibrary(Un)):T.getSourceFiles();return Wf.findReferenceOrRenameEntries(T,W,an,wt,$e,Zt,xe)}function Or(wt,$e){return ue(),Wf.findReferencedSymbols(T,W,T.getSourceFiles(),de(wt),$e)}function Xr(wt){return ue(),Wf.Core.getReferencesForFileName(wt,T,T.getSourceFiles()).map(Wf.toReferenceEntry)}function Ut(wt,$e,Zt,xe=!1){ue();const an=Zt?[de(Zt)]:T.getSourceFiles();return y$e(an,T.getTypeChecker(),W,wt,$e,xe)}function In(wt,$e,Zt){ue();const xe=de(wt),an=t.getCustomTransformers&&t.getCustomTransformers();return hj(T,xe,!!$e,W,an,Zt)}function gr(wt,$e,{triggerReason:Zt}=NA){ue();const xe=de(wt);return b0e.getSignatureHelpItems(T,xe,$e,Zt,W)}function Cr(wt){return y.getCurrentSourceFile(wt)}function ei(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=Hx(xe,$e);if(an===xe)return;switch(an.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 Un=an;for(;;)if(G3(Un)||zJe(Un))Un=Un.parent;else if(Lge(Un))if(Un.parent.parent.kind===267&&Un.parent.parent.body===Un.parent)Un=Un.parent.parent.name;else break;else break;return R0(Un.getStart(),an.getEnd())}function Gn(wt,$e){const Zt=y.getCurrentSourceFile(wt);return Aq.spanInSourceFileAtLocation(Zt,$e)}function Ur(wt){return b$e(y.getCurrentSourceFile(wt),W)}function so(wt){return T$e(y.getCurrentSourceFile(wt),W)}function ho(wt,$e,Zt){return ue(),(Zt||"original")==="2020"?Sqe(T,W,de(wt),$e):B8e(T.getTypeChecker(),W,de(wt),T.getClassifiableNames(),$e)}function di(wt,$e,Zt){return ue(),(Zt||"original")==="original"?z8e(T.getTypeChecker(),W,de(wt),T.getClassifiableNames(),$e):vOe(T,W,de(wt),$e)}function Nc(wt,$e){return e$e(W,y.getCurrentSourceFile(wt),$e)}function ha(wt,$e){return G8e(W,y.getCurrentSourceFile(wt),$e)}function ro(wt){const $e=y.getCurrentSourceFile(wt);return D9e.collectElements($e,W)}const Gs=new Map(Object.entries({19:20,21:22,23:24,32:30}));Gs.forEach((wt,$e)=>Gs.set(wt.toString(),Number($e)));function Oc(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=qse(Zt,$e),an=xe.getStart(Zt)===$e?Gs.get(xe.kind.toString()):void 0,Un=an&&Wm(xe.parent,an,Zt);return Un?[gE(xe,Zt),gE(Un,Zt)].sort((rr,mi)=>rr.start-mi.start):Zn}function _u(wt,$e,Zt){let xe=cf();const an=See(Zt),Un=y.getCurrentSourceFile(wt);V("getIndentationAtPosition: getCurrentSourceFile: "+(cf()-xe)),xe=cf();const rr=Rb.SmartIndenter.getIndentation($e,Un,an);return V("getIndentationAtPosition: computeIndentation : "+(cf()-xe)),rr}function Ku(wt,$e,Zt,xe){const an=y.getCurrentSourceFile(wt);return Rb.formatSelection($e,Zt,an,Rb.getFormatContext(See(xe),t))}function al(wt,$e){return Rb.formatDocument(y.getCurrentSourceFile(wt),Rb.getFormatContext(See($e),t))}function Rr(wt,$e,Zt,xe){const an=y.getCurrentSourceFile(wt),Un=Rb.getFormatContext(See(xe),t);if(!LR(an,$e))switch(Zt){case"{":return Rb.formatOnOpeningCurly($e,an,Un);case"}":return Rb.formatOnClosingCurly($e,an,Un);case";":return Rb.formatOnSemicolon($e,an,Un);case` -`:return Rb.formatOnEnter($e,an,Un)}return[]}function mc(wt,$e,Zt,xe,an,Un=NA){ue();const rr=de(wt),mi=R0($e,Zt),Ji=Rb.getFormatContext(an,t);return ea(th(xe,_1,pf),zo=>(W.throwIfCancellationRequested(),If.getFixes({errorCode:zo,sourceFile:rr,span:mi,program:T,host:t,cancellationToken:W,formatContext:Ji,preferences:Un})))}function Ea(wt,$e,Zt,xe=NA){ue(),ce.assert(wt.type==="file");const an=de(wt.fileName),Un=Rb.getFormatContext(Zt,t);return If.getAllFixes({fixId:$e,sourceFile:an,program:T,host:t,cancellationToken:W,formatContext:Un,preferences:xe})}function Fi(wt,$e,Zt=NA){ue(),ce.assert(wt.type==="file");const xe=de(wt.fileName),an=Rb.getFormatContext($e,t),Un=wt.mode??(wt.skipDestructiveCodeActions?"SortAndCombine":"All");return CI.organizeImports(xe,an,t,T,Zt,Un)}function ta(wt,$e,Zt,xe=NA){return V8e(Ne(),wt,$e,t,Rb.getFormatContext(Zt,t),xe,oe)}function $a(wt,$e){const Zt=typeof wt=="string"?$e:wt;return ls(Zt)?Promise.all(Zt.map(xe=>jc(xe))):jc(Zt)}function jc(wt){const $e=Zt=>_h(Zt,O,te);return ce.assertEqual(wt.type,"install package"),t.installPackage?t.installPackage({fileName:$e(wt.file),packageName:wt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Xu(wt,$e,Zt,xe){const an=xe?Rb.getFormatContext(xe,t).options:void 0;return VF.getDocCommentTemplateAtPosition(NP(t,an),y.getCurrentSourceFile(wt),$e,Zt)}function Lo(wt,$e,Zt){if(Zt===60)return!1;const xe=y.getCurrentSourceFile(wt);if(MR(xe,$e))return!1;if(Lf(xe,$e))return Zt===123;if(Gge(xe,$e))return!1;switch(Zt){case 39:case 34:case 96:return!LR(xe,$e)}return!0}function To(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=T0($e,Zt);if(!xe)return;const an=xe.kind===32&&rD(xe.parent)?xe.parent.parent:S1(xe)&&gy(xe.parent)?xe.parent:void 0;if(an&&Ir(an))return{newText:``};const Un=xe.kind===32&&zx(xe.parent)?xe.parent.parent:S1(xe)&&KE(xe.parent)?xe.parent:void 0;if(Un&&_o(Un))return{newText:""}}function Aa(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=T0($e,Zt);if(!xe||xe.parent.kind===312)return;const an="[a-zA-Z0-9:\\-\\._$]*";if(KE(xe.parent.parent)){const Un=xe.parent.parent.openingFragment,rr=xe.parent.parent.closingFragment;if(QU(Un)||QU(rr))return;const mi=Un.getStart(Zt)+1,Ji=rr.getStart(Zt)+2;return $e!==mi&&$e!==Ji?void 0:{ranges:[{start:mi,length:0},{start:Ji,length:0}],wordPattern:an}}else{const Un=Kr(xe.parent,vs=>!!(rD(vs)||Sk(vs)));if(!Un)return;ce.assert(rD(Un)||Sk(Un),"tag should be opening or closing element");const rr=Un.parent.openingElement,mi=Un.parent.closingElement,Ji=rr.tagName.getStart(Zt),zo=rr.tagName.end,Ca=mi.tagName.getStart(Zt),Qa=mi.tagName.end;return!(Ji<=$e&&$e<=zo||Ca<=$e&&$e<=Qa)||rr.tagName.getText(Zt)!==mi.tagName.getText(Zt)?void 0:{ranges:[{start:Ji,length:zo-Ji},{start:Ca,length:Qa-Ca}],wordPattern:an}}}function sl(wt,$e){return{lineStarts:wt.getLineStarts(),firstLine:wt.getLineAndCharacterOfPosition($e.pos).line,lastLine:wt.getLineAndCharacterOfPosition($e.end).line}}function vc(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=[],{lineStarts:Un,firstLine:rr,lastLine:mi}=sl(xe,$e);let Ji=Zt||!1,zo=Number.MAX_VALUE;const Ca=new Map,Qa=new RegExp(/\S/),Ks=N6(xe,Un[rr]),vs=Ks?"{/*":"//";for(let ou=rr;ou<=mi;ou++){const qd=xe.text.substring(Un[ou],xe.getLineEndOfPosition(Un[ou])),z_=Qa.exec(qd);z_&&(zo=Math.min(zo,z_.index),Ca.set(ou.toString(),z_.index),qd.substr(z_.index,vs.length)!==vs&&(Ji=Zt===void 0||Zt))}for(let ou=rr;ou<=mi;ou++){if(rr!==mi&&Un[ou]===$e.end)continue;const qd=Ca.get(ou.toString());qd!==void 0&&(Ks?an.push.apply(an,er(wt,{pos:Un[ou]+zo,end:xe.getLineEndOfPosition(Un[ou])},Ji,Ks)):Ji?an.push({newText:vs,span:{length:0,start:Un[ou]+zo}}):xe.text.substr(Un[ou]+qd,vs.length)===vs&&an.push({newText:"",span:{length:vs.length,start:Un[ou]+qd}}))}return an}function er(wt,$e,Zt,xe){var an;const Un=y.getCurrentSourceFile(wt),rr=[],{text:mi}=Un;let Ji=!1,zo=Zt||!1;const Ca=[];let{pos:Qa}=$e;const Ks=xe!==void 0?xe:N6(Un,Qa),vs=Ks?"{/*":"/*",ou=Ks?"*/}":"*/",qd=Ks?"\\{\\/\\*":"\\/\\*",z_=Ks?"\\*\\/\\}":"\\*\\/";for(;Qa<=$e.end;){const fp=mi.substr(Qa,vs.length)===vs?vs.length:0,Ha=LR(Un,Qa+fp);if(Ha)Ks&&(Ha.pos--,Ha.end++),Ca.push(Ha.pos),Ha.kind===3&&Ca.push(Ha.end),Ji=!0,Qa=Ha.end+1;else{const mu=mi.substring(Qa,$e.end).search(`(${qd})|(${z_})`);zo=Zt!==void 0?Zt:zo||!BZ(mi,Qa,mu===-1?$e.end:Qa+mu),Qa=mu===-1?$e.end+1:Qa+mu+ou.length}}if(zo||!Ji){((an=LR(Un,$e.pos))==null?void 0:an.kind)!==2&&d0(Ca,$e.pos,pf),d0(Ca,$e.end,pf);const fp=Ca[0];mi.substr(fp,vs.length)!==vs&&rr.push({newText:vs,span:{length:0,start:fp}});for(let Ha=1;Ha0?fp-ou.length:0,mu=mi.substr(Ha,ou.length)===ou?ou.length:0;rr.push({newText:"",span:{length:vs.length,start:fp-mu}})}return rr}function Jr(wt,$e){const Zt=y.getCurrentSourceFile(wt),{firstLine:xe,lastLine:an}=sl(Zt,$e);return xe===an&&$e.pos!==$e.end?er(wt,$e,!0):vc(wt,$e,!0)}function li(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=[],{pos:an}=$e;let{end:Un}=$e;an===Un&&(Un+=N6(Zt,an)?2:1);for(let rr=an;rr<=Un;rr++){const mi=LR(Zt,rr);if(mi){switch(mi.kind){case 2:xe.push.apply(xe,vc(wt,{end:mi.end,pos:mi.pos+1},!1));break;case 3:xe.push.apply(xe,er(wt,{end:mi.end,pos:mi.pos+1},!1))}rr=mi.end+1}}return xe}function Ir({openingElement:wt,closingElement:$e,parent:Zt}){return!E6(wt.tagName,$e.tagName)||gy(Zt)&&E6(wt.tagName,Zt.openingElement.tagName)&&Ir(Zt)}function _o({closingFragment:wt,parent:$e}){return!!(wt.flags&262144)||KE($e)&&_o($e)}function xt(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=Rb.getRangeOfEnclosingComment(xe,$e);return an&&(!Zt||an.kind===3)?FR(an):void 0}function Kn(wt,$e){ue();const Zt=de(wt);W.throwIfCancellationRequested();const xe=Zt.text,an=[];if($e.length>0&&!Ji(Zt.fileName)){const zo=rr();let Ca;for(;Ca=zo.exec(xe);){W.throwIfCancellationRequested();const Qa=3;ce.assert(Ca.length===$e.length+Qa);const Ks=Ca[1],vs=Ca.index+Ks.length;if(!LR(Zt,vs))continue;let ou;for(let z_=0;z_<$e.length;z_++)Ca[z_+Qa]&&(ou=$e[z_]);if(ou===void 0)return ce.fail();if(mi(xe.charCodeAt(vs+ou.text.length)))continue;const qd=Ca[2];an.push({descriptor:ou,message:qd,position:vs})}}return an;function Un(zo){return zo.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function rr(){const zo=/(?:\/\/+\s*)/.source,Ca=/(?:\/\*+\s*)/.source,Ks="("+/(?:^(?:\s|\*)*)/.source+"|"+zo+"|"+Ca+")",vs="(?:"+Vn($e,Ha=>"("+Un(Ha.text)+")").join("|")+")",ou=/(?:$|\*\/)/.source,qd=/(?:.*?)/.source,z_="("+vs+qd+")",fp=Ks+z_+ou;return new RegExp(fp,"gim")}function mi(zo){return zo>=97&&zo<=122||zo>=65&&zo<=90||zo>=48&&zo<=57}function Ji(zo){return Ub(zo,"/node_modules/")}}function gn(wt,$e,Zt){return ue(),wke.getRenameInfo(T,de(wt),$e,Zt||{})}function qr(wt,$e,Zt,xe,an,Un){const[rr,mi]=typeof $e=="number"?[$e,void 0]:[$e.pos,$e.end];return{file:wt,startPosition:rr,endPosition:mi,program:Ne(),host:t,formatContext:Rb.getFormatContext(xe,t),cancellationToken:W,preferences:Zt,triggerReason:an,kind:Un}}function mt(wt,$e,Zt){return{file:wt,program:Ne(),host:t,span:$e,preferences:Zt,cancellationToken:W}}function _r(wt,$e){return L9e.getSmartSelectionRange($e,y.getCurrentSourceFile(wt))}function Cn(wt,$e,Zt=NA,xe,an,Un){ue();const rr=de(wt);return Eq.getApplicableRefactors(qr(rr,$e,Zt,NA,xe,an),Un)}function oi(wt,$e,Zt=NA){ue();const xe=de(wt),an=ce.checkDefined(T.getSourceFiles()),Un=SP(wt),rr=Qo(an,Ji=>!(T!=null&&T.isSourceFileFromExternalLibrary(xe))&&!(xe===de(Ji.fileName)||Un===".ts"&&SP(Ji.fileName)===".d.ts"||Un===".d.ts"&&xf(Iy(Ji.fileName),"lib.")&&SP(Ji.fileName)===".d.ts")&&Un===SP(Ji.fileName)?Ji.fileName:void 0);return{newFileName:R3e(xe,T,qr(xe,$e,Zt,NA),t),files:rr}}function Qr(wt,$e,Zt,xe,an,Un=NA,rr){ue();const mi=de(wt);return Eq.getEditsForRefactor(qr(mi,Zt,Un,$e),xe,an,rr)}function co(wt,$e){return $e===0?{line:0,character:0}:oe.toLineColumnOffset(wt,$e)}function es(wt,$e){ue();const Zt=Dq.resolveCallHierarchyDeclaration(T,Hx(de(wt),$e));return Zt&&ihe(Zt,xe=>Dq.createCallHierarchyItem(T,xe))}function Ui(wt,$e){ue();const Zt=de(wt),xe=Oj(Dq.resolveCallHierarchyDeclaration(T,$e===0?Zt:Hx(Zt,$e)));return xe?Dq.getIncomingCalls(T,xe,W):[]}function xu(wt,$e){ue();const Zt=de(wt),xe=Oj(Dq.resolveCallHierarchyDeclaration(T,$e===0?Zt:Hx(Zt,$e)));return xe?Dq.getOutgoingCalls(T,xe):[]}function We(wt,$e,Zt=NA){ue();const xe=de(wt);return m9e.provideInlayHints(mt(xe,$e,Zt))}const Re={dispose:Le,cleanupSemanticCache:pt,getSyntacticDiagnostics:ht,getSemanticDiagnostics:ke,getSuggestionDiagnostics:_t,getCompilerOptionsDiagnostics:Dt,getSyntacticClassifications:Nc,getSemanticClassifications:ho,getEncodedSyntacticClassifications:ha,getEncodedSemanticClassifications:di,getCompletionsAtPosition:Ft,getCompletionEntryDetails:it,getCompletionEntrySymbol:Ye,getSignatureHelpItems:gr,getQuickInfoAtPosition:ut,getDefinitionAtPosition:Wt,getDefinitionAndBoundSpan:tt,getImplementationAtPosition:kn,getTypeDefinitionAtPosition:Mn,getReferencesAtPosition:on,findReferences:Or,getFileReferences:Xr,getDocumentHighlights:cr,getNameOrDottedNameSpan:ei,getBreakpointStatementAtPosition:Gn,getNavigateToItems:Ut,getRenameInfo:gn,getSmartSelectionRange:_r,findRenameLocations:un,getNavigationBarItems:Ur,getNavigationTree:so,getOutliningSpans:ro,getTodoComments:Kn,getBraceMatchingAtPosition:Oc,getIndentationAtPosition:_u,getFormattingEditsForRange:Ku,getFormattingEditsForDocument:al,getFormattingEditsAfterKeystroke:Rr,getDocCommentTemplateAtPosition:Xu,isValidBraceCompletionAtPosition:Lo,getJsxClosingTagAtPosition:To,getLinkedEditingRangeAtPosition:Aa,getSpanOfEnclosingComment:xt,getCodeFixesAtPosition:mc,getCombinedCodeFix:Ea,applyCodeActionCommand:$a,organizeImports:Fi,getEditsForFileRename:ta,getEmitOutput:In,getNonBoundSourceFile:Cr,getProgram:Ne,getCurrentProgram:()=>T,getAutoImportProvider:Be,updateIsDefinitionOfReferencedSymbols:Ve,getApplicableRefactors:Cn,getEditsForRefactor:Qr,getMoveToRefactoringFileSuggestions:oi,toLineColumnOffset:co,getSourceMapper:()=>oe,clearSourceMapperCache:()=>oe.clearCache(),prepareCallHierarchy:es,provideCallHierarchyIncomingCalls:Ui,provideCallHierarchyOutgoingCalls:xu,toggleLineComment:vc,toggleMultilineComment:er,commentSelection:Jr,uncommentSelection:li,provideInlayHints:We,getSupportedCodeFixes:TOe};switch(m){case 0:break;case 1:dle.forEach(wt=>Re[wt]=()=>{throw new Error(`LanguageService Operation: ${wt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:pye.forEach(wt=>Re[wt]=()=>{throw new Error(`LanguageService Operation: ${wt} not allowed in LanguageServiceMode.Syntactic`)});break;default:ce.assertNever(m)}return Re}function fDe(t){return t.nameTable||_De(t),t.nameTable}function _De(t){const r=t.nameTable=new Map;t.forEachChild(function s(l){if(An(l)&&!I8e(l)&&l.escapedText||Qv(l)&&sye(l)){const m=gY(l);r.set(m,r.get(m)===void 0?l.pos:-1)}else if(Gu(l)){const m=l.escapedText;r.set(m,r.get(m)===void 0?l.pos:-1)}if(B_(l,s),g1(l))for(const m of l.jsDoc)B_(m,s)})}function sye(t){return vP(t)||t.parent.kind===283||ule(t)||K8(t)}function cle(t){const r=Lut(t);return r&&(Wd(r.parent)||iD(r.parent))?r:void 0}function Lut(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return Cm(t.parent.parent)?t.parent.parent:void 0;case 80:return Cm(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function lle(t,r){const s=cle(t);if(s){const l=r.getContextualType(s.parent),m=l&&cye(s,r,l,!1);if(m&&m.length===1)return Dl(m)}return r.getSymbolAtLocation(t)}function cye(t,r,s,l){const m=Dj(t.name);if(!m)return Zn;if(!s.isUnion()){const T=s.getProperty(m);return T?[T]:Zn}const y=Qo(s.types,T=>(Wd(t.parent)||iD(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(T,t.parent)?void 0:T.getProperty(m));if(l&&(y.length===0||y.length===s.types.length)){const T=s.getProperty(m);if(T)return[T]}return y.length===0?Qo(s.types,T=>T.getProperty(m)):y}function ule(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function lye(t){if(m0)return tf(qc(Fd(m0.getExecutingFilePath())),qre(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var fle,uye,xq,fye,_ye,xee,dDe,Pqe,Aee,Nqe,wqe,_le,Rqe,pDe,dye,dle,pye,Mqe=G({"src/services/services.ts"(){El(),c3e(),Ihe(),MP(),JAe(),sDe(),fle="0.8",uye=class{constructor(t,r,s){this.pos=r,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){ce.assert(!ab(this.pos)&&!ab(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return ns(this)}getStart(t,r){return this.assertHasRealPosition(),Xz(this,t,r)}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,r){return this.getChildren(r)[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=Rut(this,t))}getFirstToken(t){this.assertHasRealPosition();const r=this.getChildren(t);if(!r.length)return;const s=lr(r,l=>l.kind<316||l.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const r=this.getChildren(t),s=Yf(r);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,r){return B_(this,t,r)}},xq=class{constructor(t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ns(this)}getStart(t,r){return Xz(this,t,r)}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||Zn}getFirstToken(){}getLastToken(){}forEachChild(){}},fye=class{constructor(t,r){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=r}getFlags(){return this.flags}get name(){return mp(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=Zn,!this.declarations&&uk(this)&&this.links.target&&uk(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const r=this.links.target.links.tupleLabelDeclaration;this.documentationComment=aye([r],t)}else this.documentationComment=aye(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,r){if(t){if(J2(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=aye(gi(this.declarations,J2),r)),Nt(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(_P(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=aye(gi(this.declarations,_P),r)),Nt(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(r)}getJsDocTags(t){return this.tags===void 0&&(this.tags=oye(this.declarations,t)),this.tags}getContextualJsDocTags(t,r){if(t){if(J2(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=oye(gi(this.declarations,J2),r)),Nt(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(_P(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=oye(gi(this.declarations,_P),r)),Nt(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(r)}},_ye=class extends xq{constructor(t,r,s){super(r,s),this.kind=t}},xee=class extends xq{constructor(t,r,s){super(r,s),this.kind=80}get text(){return ec(this)}},xee.prototype.kind=80,dDe=class extends xq{constructor(t,r,s){super(r,s),this.kind=81}get text(){return ec(this)}},dDe.prototype.kind=81,Pqe=class{constructor(t,r){this.checker=t,this.flags=r}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!!(ji(this)&3)}isClass(){return!!(ji(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ji(this)&4)return this.checker.getTypeArguments(this)}},Aee=class{constructor(t,r){this.checker=t,this.flags=r}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const r=this.checker.getParameterType(this,t);if(r.isIndexType()&&p3(r.type)){const s=r.type.getConstraint();if(s)return this.checker.getIndexType(s)}return r}getDocumentationComment(){return this.documentationComment||(this.documentationComment=aye(zD(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=oye(zD(this.declaration),this.checker))}},Nqe=class extends uye{constructor(t,r,s){super(t,r,s),this.kind=312}update(t,r){return XEe(this,t,r)}getLineAndCharacterOfPosition(t){return Ah(this,t)}getLineStarts(){return q1(this)}getPositionOfLineAndCharacter(t,r,s){return cP(q1(this),t,r,this.text,s)}getLineEndOfPosition(t){const{line:r}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let l;r+1>=s.length&&(l=this.getEnd()),l||(l=s[r+1]-1);const m=this.getFullText();return m[l]===` -`&&m[l-1]==="\r"?l-1:l}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=zg();return this.forEachChild(m),t;function r(y){const T=l(y);T&&t.add(T,y)}function s(y){let T=t.get(y);return T||t.set(y,T=[]),T}function l(y){const T=X_e(y);return T&&(am(T)&&sa(T.expression)?T.expression.name.text:_y(T)?Dj(T):void 0)}function m(y){switch(y.kind){case 262:case 218:case 174:case 173:const T=y,D=l(T);if(D){const O=s(D),V=Yf(O);V&&T.parent===V.parent&&T.symbol===V.symbol?T.body&&!V.body&&(O[O.length-1]=T):O.push(T)}B_(y,m);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:r(y),B_(y,m);break;case 169:if(!il(y,16476))break;case 260:case 208:{const O=y;if(ld(O.name)){B_(O.name,m);break}O.initializer&&m(O.initializer)}case 306:case 172:case 171:r(y);break;case 278:const I=y;I.exportClause&&(G0(I.exportClause)?Ot(I.exportClause.elements,m):m(I.exportClause.name));break;case 272:const W=y.importClause;W&&(W.name&&r(W.name),W.namedBindings&&(W.namedBindings.kind===274?r(W.namedBindings):Ot(W.namedBindings.elements,m)));break;case 226:Qy(y)!==0&&r(y);default:B_(y,m)}}}},wqe=class{constructor(t,r,s){this.fileName=t,this.text=r,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return Ah(this,t)}},_le=class{constructor(t){this.host=t}getCurrentSourceFile(t){var r,s,l,m,y,T,D,I;const W=this.host.getScriptSnapshot(t);if(!W)throw new Error("Could not find file: '"+t+"'.");const O=M8e(t,this.host),V=this.host.getScriptVersion(t);let ee;if(this.currentFileName!==t){const te={languageVersion:99,impliedNodeFormat:ew(_h(t,this.host.getCurrentDirectory(),((l=(s=(r=this.host).getCompilerHost)==null?void 0:s.call(r))==null?void 0:l.getCanonicalFileName)||hR(this.host)),(I=(D=(T=(y=(m=this.host).getCompilerHost)==null?void 0:y.call(m))==null?void 0:T.getModuleResolutionCache)==null?void 0:D.call(T))==null?void 0:I.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:q9(this.host.getCompilationSettings())};ee=uDe(t,W,te,V,!0,O)}else if(this.currentFileVersion!==V){const te=W.getChangeRange(this.currentFileScriptSnapshot);ee=Eee(this.currentSourceFile,W,V,te)}return ee&&(this.currentFileVersion=V,this.currentFileName=t,this.currentFileScriptSnapshot=W,this.currentSourceFile=ee),this.currentSourceFile}},Rqe={isCancellationRequested:bg,throwIfCancellationRequested:ku},pDe=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=tu)==null||t.instant(tu.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Nz}},dye=class{constructor(t,r=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=r,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=cf();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=tu)==null||t.instant(tu.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Nz}},dle=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],pye=[...dle,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],RSe(Iqe())}});function EOe(t,r,s){const l=[];s=_Ce(s,l);const m=ls(t)?t:[t],y=zae(void 0,void 0,be,s,m,r,!0);return y.diagnostics=Hi(y.diagnostics,l),y}var mDe=G({"src/services/transform.ts"(){El()}});function Cee(t,r){t&&t.log("*INTERNAL ERROR* - Exception in typescript services: "+r.message)}function Lqe(t,r,s,l){let m;l&&(t.log(r),m=cf());const y=s();if(l){const T=cf();if(t.log(`${r} completed in ${T-m} msec`),As(y)){let D=y;D.length>128&&(D=D.substring(0,128)+"..."),t.log(` result.length=${D.length}, result='${JSON.stringify(D)}'`)}}return y}function gDe(t,r,s,l){return xOe(t,r,!0,s,l)}function xOe(t,r,s,l,m){try{const y=Lqe(t,r,l,m);return s?JSON.stringify({result:y}):y}catch(y){return y instanceof Nz?JSON.stringify({canceled:!0}):(Cee(t,y),y.description=r,JSON.stringify({error:y}))}}function hDe(t,r){return t.map(s=>Oqe(s,r))}function Oqe(t,r){return{message:p4(t.messageText,r),start:t.start,length:t.length,category:fX(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function yDe(t){return{spans:t.spans.join(","),endOfLineState:t.endOfLineState}}var mye,gye,hye,vDe,bDe,AOe,Fqe,Wqe,Bqe,TDe=G({"src/services/shims.ts"(){El(),mye=function(){return this}(),gye=class{constructor(t){this.scriptSnapshotShim=t}getText(t,r){return this.scriptSnapshotShim.getText(t,r)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(t){const r=t,s=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(s===null)return null;const l=JSON.parse(s);return BX(nb(l.span.start,l.span.length),l.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},hye=class{constructor(t){this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(r,s)=>{const l=JSON.parse(this.shimHost.getModuleResolutionsForFile(s));return Vn(r,m=>{const y=T8(l,m);return y?{resolvedFileName:y,extension:SP(y),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=r=>this.shimHost.directoryExists(r)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(r,s)=>{const l=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(s));return Vn(r,m=>T8(l,As(m)?m:Q0(m.fileName)))})}log(t){this.loggingEnabled&&this.shimHost.log(t)}trace(t){this.tracingEnabled&&this.shimHost.trace(t)}error(t){this.shimHost.error(t)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const t=this.shimHost.getCompilationSettings();if(t===null||t==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const r=JSON.parse(t);return r.allowNonTsExtensions=!0,r}getScriptFileNames(){const t=this.shimHost.getScriptFileNames();return JSON.parse(t)}getScriptSnapshot(t){const r=this.shimHost.getScriptSnapshot(t);return r&&new gye(r)}getScriptKind(t){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(t):0}getScriptVersion(t){return this.shimHost.getScriptVersion(t)}getLocalizedDiagnosticMessages(){const t=this.shimHost.getLocalizedDiagnosticMessages();if(t===null||t==="")return null;try{return JSON.parse(t)}catch(r){return this.log(r.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const t=this.shimHost.getCancellationToken();return new dye(t)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(t){return JSON.parse(this.shimHost.getDirectories(t))}getDefaultLibFileName(t){return this.shimHost.getDefaultLibFileName(JSON.stringify(t))}readDirectory(t,r,s,l,m){const y=Y9(t,s,l,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(y.basePaths),y.excludePattern,y.includeFilePattern,y.includeDirectoryPattern,m))}readFile(t,r){return this.shimHost.readFile(t,r)}fileExists(t){return this.shimHost.fileExists(t)}},vDe=class{constructor(t){this.shimHost=t,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=r=>this.shimHost.directoryExists(r):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=r=>this.shimHost.realpath(r):this.realpath=void 0}readDirectory(t,r,s,l,m){const y=Y9(t,s,l,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(y.basePaths),y.excludePattern,y.includeFilePattern,y.includeDirectoryPattern,m))}fileExists(t){return this.shimHost.fileExists(t)}readFile(t){return this.shimHost.readFile(t)}getDirectories(t){return JSON.parse(this.shimHost.getDirectories(t))}},bDe=class{constructor(t){this.factory=t,t.registerShim(this)}dispose(t){this.factory.unregisterShim(this)}},AOe=class extends bDe{constructor(t,r,s){super(t),this.host=r,this.languageService=s,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(t,r){return gDe(this.logger,t,r,this.logPerformance)}dispose(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,mye&&mye.CollectGarbage&&(mye.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(t)}refresh(t){this.forwardJSONCall(`refresh(${t})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(t){const r=NP(this.host,void 0);return hDe(t,r)}getSyntacticClassifications(t,r,s){return this.forwardJSONCall(`getSyntacticClassifications('${t}', ${r}, ${s})`,()=>this.languageService.getSyntacticClassifications(t,nb(r,s)))}getSemanticClassifications(t,r,s){return this.forwardJSONCall(`getSemanticClassifications('${t}', ${r}, ${s})`,()=>this.languageService.getSemanticClassifications(t,nb(r,s)))}getEncodedSyntacticClassifications(t,r,s){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${t}', ${r}, ${s})`,()=>yDe(this.languageService.getEncodedSyntacticClassifications(t,nb(r,s))))}getEncodedSemanticClassifications(t,r,s){return this.forwardJSONCall(`getEncodedSemanticClassifications('${t}', ${r}, ${s})`,()=>yDe(this.languageService.getEncodedSemanticClassifications(t,nb(r,s))))}getSyntacticDiagnostics(t){return this.forwardJSONCall(`getSyntacticDiagnostics('${t}')`,()=>{const r=this.languageService.getSyntacticDiagnostics(t);return this.realizeDiagnostics(r)})}getSemanticDiagnostics(t){return this.forwardJSONCall(`getSemanticDiagnostics('${t}')`,()=>{const r=this.languageService.getSemanticDiagnostics(t);return this.realizeDiagnostics(r)})}getSuggestionDiagnostics(t){return this.forwardJSONCall(`getSuggestionDiagnostics('${t}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(t)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const t=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(t)})}getQuickInfoAtPosition(t,r){return this.forwardJSONCall(`getQuickInfoAtPosition('${t}', ${r})`,()=>this.languageService.getQuickInfoAtPosition(t,r))}getNameOrDottedNameSpan(t,r,s){return this.forwardJSONCall(`getNameOrDottedNameSpan('${t}', ${r}, ${s})`,()=>this.languageService.getNameOrDottedNameSpan(t,r,s))}getBreakpointStatementAtPosition(t,r){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${t}', ${r})`,()=>this.languageService.getBreakpointStatementAtPosition(t,r))}getSignatureHelpItems(t,r,s){return this.forwardJSONCall(`getSignatureHelpItems('${t}', ${r})`,()=>this.languageService.getSignatureHelpItems(t,r,s))}getDefinitionAtPosition(t,r){return this.forwardJSONCall(`getDefinitionAtPosition('${t}', ${r})`,()=>this.languageService.getDefinitionAtPosition(t,r))}getDefinitionAndBoundSpan(t,r){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${t}', ${r})`,()=>this.languageService.getDefinitionAndBoundSpan(t,r))}getTypeDefinitionAtPosition(t,r){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${t}', ${r})`,()=>this.languageService.getTypeDefinitionAtPosition(t,r))}getImplementationAtPosition(t,r){return this.forwardJSONCall(`getImplementationAtPosition('${t}', ${r})`,()=>this.languageService.getImplementationAtPosition(t,r))}getRenameInfo(t,r,s){return this.forwardJSONCall(`getRenameInfo('${t}', ${r})`,()=>this.languageService.getRenameInfo(t,r,s))}getSmartSelectionRange(t,r){return this.forwardJSONCall(`getSmartSelectionRange('${t}', ${r})`,()=>this.languageService.getSmartSelectionRange(t,r))}findRenameLocations(t,r,s,l,m){return this.forwardJSONCall(`findRenameLocations('${t}', ${r}, ${s}, ${l})`,()=>this.languageService.findRenameLocations(t,r,s,l,m))}getBraceMatchingAtPosition(t,r){return this.forwardJSONCall(`getBraceMatchingAtPosition('${t}', ${r})`,()=>this.languageService.getBraceMatchingAtPosition(t,r))}isValidBraceCompletionAtPosition(t,r,s){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${t}', ${r}, ${s})`,()=>this.languageService.isValidBraceCompletionAtPosition(t,r,s))}getSpanOfEnclosingComment(t,r,s){return this.forwardJSONCall(`getSpanOfEnclosingComment('${t}', ${r})`,()=>this.languageService.getSpanOfEnclosingComment(t,r,s))}getIndentationAtPosition(t,r,s){return this.forwardJSONCall(`getIndentationAtPosition('${t}', ${r})`,()=>{const l=JSON.parse(s);return this.languageService.getIndentationAtPosition(t,r,l)})}getReferencesAtPosition(t,r){return this.forwardJSONCall(`getReferencesAtPosition('${t}', ${r})`,()=>this.languageService.getReferencesAtPosition(t,r))}findReferences(t,r){return this.forwardJSONCall(`findReferences('${t}', ${r})`,()=>this.languageService.findReferences(t,r))}getFileReferences(t){return this.forwardJSONCall(`getFileReferences('${t})`,()=>this.languageService.getFileReferences(t))}getDocumentHighlights(t,r,s){return this.forwardJSONCall(`getDocumentHighlights('${t}', ${r})`,()=>{const l=this.languageService.getDocumentHighlights(t,r,JSON.parse(s)),m=Q0(hf(t));return gi(l,y=>Q0(hf(y.fileName))===m)})}getCompletionsAtPosition(t,r,s,l){return this.forwardJSONCall(`getCompletionsAtPosition('${t}', ${r}, ${s}, ${l})`,()=>this.languageService.getCompletionsAtPosition(t,r,s,l))}getCompletionEntryDetails(t,r,s,l,m,y,T){return this.forwardJSONCall(`getCompletionEntryDetails('${t}', ${r}, '${s}')`,()=>{const D=l===void 0?void 0:JSON.parse(l);return this.languageService.getCompletionEntryDetails(t,r,s,D,m,y,T)})}getFormattingEditsForRange(t,r,s,l){return this.forwardJSONCall(`getFormattingEditsForRange('${t}', ${r}, ${s})`,()=>{const m=JSON.parse(l);return this.languageService.getFormattingEditsForRange(t,r,s,m)})}getFormattingEditsForDocument(t,r){return this.forwardJSONCall(`getFormattingEditsForDocument('${t}')`,()=>{const s=JSON.parse(r);return this.languageService.getFormattingEditsForDocument(t,s)})}getFormattingEditsAfterKeystroke(t,r,s,l){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${t}', ${r}, '${s}')`,()=>{const m=JSON.parse(l);return this.languageService.getFormattingEditsAfterKeystroke(t,r,s,m)})}getDocCommentTemplateAtPosition(t,r,s,l){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${t}', ${r})`,()=>this.languageService.getDocCommentTemplateAtPosition(t,r,s,l))}getNavigateToItems(t,r,s){return this.forwardJSONCall(`getNavigateToItems('${t}', ${r}, ${s})`,()=>this.languageService.getNavigateToItems(t,r,s))}getNavigationBarItems(t){return this.forwardJSONCall(`getNavigationBarItems('${t}')`,()=>this.languageService.getNavigationBarItems(t))}getNavigationTree(t){return this.forwardJSONCall(`getNavigationTree('${t}')`,()=>this.languageService.getNavigationTree(t))}getOutliningSpans(t){return this.forwardJSONCall(`getOutliningSpans('${t}')`,()=>this.languageService.getOutliningSpans(t))}getTodoComments(t,r){return this.forwardJSONCall(`getTodoComments('${t}')`,()=>this.languageService.getTodoComments(t,JSON.parse(r)))}prepareCallHierarchy(t,r){return this.forwardJSONCall(`prepareCallHierarchy('${t}', ${r})`,()=>this.languageService.prepareCallHierarchy(t,r))}provideCallHierarchyIncomingCalls(t,r){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${t}', ${r})`,()=>this.languageService.provideCallHierarchyIncomingCalls(t,r))}provideCallHierarchyOutgoingCalls(t,r){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${t}', ${r})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(t,r))}provideInlayHints(t,r,s){return this.forwardJSONCall(`provideInlayHints('${t}', '${JSON.stringify(r)}', ${JSON.stringify(s)})`,()=>this.languageService.provideInlayHints(t,r,s))}getEmitOutput(t){return this.forwardJSONCall(`getEmitOutput('${t}')`,()=>{const{diagnostics:r,...s}=this.languageService.getEmitOutput(t);return{...s,diagnostics:this.realizeDiagnostics(r)}})}getEmitOutputObject(t){return xOe(this.logger,`getEmitOutput('${t}')`,!1,()=>this.languageService.getEmitOutput(t),this.logPerformance)}toggleLineComment(t,r){return this.forwardJSONCall(`toggleLineComment('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.toggleLineComment(t,r))}toggleMultilineComment(t,r){return this.forwardJSONCall(`toggleMultilineComment('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.toggleMultilineComment(t,r))}commentSelection(t,r){return this.forwardJSONCall(`commentSelection('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.commentSelection(t,r))}uncommentSelection(t,r){return this.forwardJSONCall(`uncommentSelection('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.uncommentSelection(t,r))}},Fqe=class extends bDe{constructor(t,r){super(t),this.logger=r,this.logPerformance=!1,this.classifier=W8e()}getEncodedLexicalClassifications(t,r,s=!1){return gDe(this.logger,"getEncodedLexicalClassifications",()=>yDe(this.classifier.getEncodedLexicalClassifications(t,r,s)),this.logPerformance)}getClassificationsForLine(t,r,s=!1){const l=this.classifier.getClassificationsForLine(t,r,s);let m="";for(const y of l.entries)m+=y.length+` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return te}}function W3e(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function Xce(t,r,s){const l=bf(t,r),m=Kr(l,W3e);if(!m||J_(m)&&m.body&&U$(m.body,r))return;const y=s.getTypeChecker(),T=m.symbol;if(!T)return;const D=T.declarations;if(Nt(D)<=1||!jr(D,ee=>ns(ee)===t)||!W3e(D[0]))return;const I=D[0].kind;if(!jr(D,ee=>ee.kind===I))return;const W=D;if(gt(W,ee=>!!ee.typeParameters||gt(ee.parameters,te=>!!te.modifiers||!An(te.name))))return;const O=Qo(W,ee=>y.getSignatureFromDeclaration(ee));if(Nt(O)!==Nt(D))return;const V=y.getReturnTypeOfSignature(O[0]);if(jr(O,ee=>y.getReturnTypeOfSignature(ee)===V))return W}var WCe,BCe,zCe,Plt=G({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){El(),MP(),WCe="Convert overload list to single signature",BCe=fs(w.Convert_overload_list_to_single_signature),zCe={name:WCe,description:BCe,kind:"refactor.rewrite.function.overloadList"},SI(WCe,{kinds:[zCe.kind],getEditsForAction:K$e,getAvailableActions:F3e})}});function X$e(t){const{file:r,startPosition:s,triggerReason:l}=t,m=Yce(r,s,l==="invoked");return m?I2(m)?t.preferences.provideRefactorNotApplicableReason?[{name:hee,description:Qce,actions:[{...zhe,notApplicableReason:m.error},{...Zce,notApplicableReason:m.error}]}]:Zn:[{name:hee,description:Qce,actions:[m.addBraces?zhe:Zce]}]:Zn}function Nlt(t,r){const{file:s,startPosition:l}=t,m=Yce(s,l);ce.assert(m&&!I2(m),"Expected applicable refactor info");const{expression:y,returnStatement:T,func:D}=m;let I;if(r===zhe.name){const O=be.createReturnStatement(y);I=be.createBlock([O],!0),tB(y,O,s,3,!0)}else if(r===Zce.name&&T){const O=y||be.createVoidZero();I=MAe(O)?be.createParenthesizedExpression(O):O,oq(T,I,s,3,!1),tB(T,I,s,3,!1),zT(T,I,s,3,!1)}else ce.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,O=>{O.replaceNode(s,D.body,I)})}}function Yce(t,r,s=!0,l){const m=bf(t,r),y=GE(m);if(!y)return{error:fs(w.Could_not_find_a_containing_arrow_function)};if(!ph(y))return{error:fs(w.Containing_function_is_not_an_arrow_function)};if(!(!sS(y,m)||sS(y.body,m)&&!s)){if(Y3(zhe.kind,l)&&Nr(y.body))return{func:y,addBraces:!0,expression:y.body};if(Y3(Zce.kind,l)&&E_(y.body)&&y.body.statements.length===1){const T=Dl(y.body.statements);if(Bx(T))return{func:y,addBraces:!1,expression:T.expression,returnStatement:T}}}}var hee,Qce,zhe,Zce,wlt=G({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){El(),MP(),hee="Add or remove braces in an arrow function",Qce=fs(w.Add_or_remove_braces_in_an_arrow_function),zhe={name:"Add braces to arrow function",description:fs(w.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},Zce={name:"Remove braces from arrow function",description:fs(w.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},SI(hee,{kinds:[Zce.kind],getEditsForAction:Nlt,getAvailableActions:X$e})}}),Y$e={},Q$e=G({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){Plt(),wlt()}});function GCe(t){const{file:r,startPosition:s,program:l,kind:m}=t,y=Z$e(r,s,l);if(!y)return Zn;const{selectedVariableDeclaration:T,func:D}=y,I=[],W=[];if(Y3(yee.kind,m)){const O=T||ph(D)&&ff(D.parent)?void 0:fs(w.Could_not_convert_to_named_function);O?W.push({...yee,notApplicableReason:O}):I.push(yee)}if(Y3(tle.kind,m)){const O=!T&&ph(D)?void 0:fs(w.Could_not_convert_to_anonymous_function);O?W.push({...tle,notApplicableReason:O}):I.push(tle)}if(Y3(vee.kind,m)){const O=Dm(D)?void 0:fs(w.Could_not_convert_to_arrow_function);O?W.push({...vee,notApplicableReason:O}):I.push(vee)}return[{name:j3e,description:tqe,actions:I.length===0&&t.preferences.provideRefactorNotApplicableReason?W:I}]}function B3e(t,r){const{file:s,startPosition:l,program:m}=t,y=Z$e(s,l,m);if(!y)return;const{func:T}=y,D=[];switch(r){case tle.name:D.push(...G3e(t,T));break;case yee.name:const I=VCe(T);if(!I)return;D.push(...Ghe(t,T,I));break;case vee.name:if(!Dm(T))return;D.push(...ele(t,T));break;default:return ce.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:D}}function jCe(t){let r=!1;return t.forEachChild(function s(l){if(KW(l)){r=!0;return}!Jl(l)&&!b0(l)&&!Dm(l)&&B_(l,s)}),r}function Z$e(t,r,s){const l=bf(t,r),m=s.getTypeChecker(),y=Mlt(t,m,l.parent);if(y&&!jCe(y.body)&&!m.containsArgumentsReference(y))return{selectedVariableDeclaration:!0,func:y};const T=GE(l);if(T&&(Dm(T)||ph(T))&&!sS(T.body,l)&&!jCe(T.body)&&!m.containsArgumentsReference(T))return Dm(T)&&eqe(t,m,T)?void 0:{selectedVariableDeclaration:!1,func:T}}function Rlt(t){return ff(t)||My(t)&&t.declarations.length===1}function Mlt(t,r,s){if(!Rlt(s))return;const m=(ff(s)?s:Dl(s.declarations)).initializer;if(m&&(ph(m)||Dm(m)&&!eqe(t,r,m)))return m}function z3e(t){if(Nr(t)){const r=be.createReturnStatement(t),s=t.getSourceFile();return vr(r,t),e2(r),oq(t,r,s,void 0,!0),be.createBlock([r],!0)}else return t}function VCe(t){const r=t.parent;if(!ff(r)||!x9(r))return;const s=r.parent,l=s.parent;if(!(!My(s)||!Dh(l)||!An(r.name)))return{variableDeclaration:r,variableDeclarationList:s,statement:l,name:r.name}}function G3e(t,r){const{file:s}=t,l=z3e(r.body),m=be.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,l);return Hs.ChangeTracker.with(t,y=>y.replaceNode(s,r,m))}function Ghe(t,r,s){const{file:l}=t,m=z3e(r.body),{variableDeclaration:y,variableDeclarationList:T,statement:D,name:I}=s;O8e(D);const W=Gg(y)&1|tS(r),O=be.createModifiersFromModifierFlags(W),V=be.createFunctionDeclaration(Nt(O)?O:void 0,r.asteriskToken,I,r.typeParameters,r.parameters,r.type,m);return T.declarations.length===1?Hs.ChangeTracker.with(t,ee=>ee.replaceNode(l,D,V)):Hs.ChangeTracker.with(t,ee=>{ee.delete(l,y),ee.insertNodeAfter(l,D,V)})}function ele(t,r){const{file:s}=t,m=r.body.statements[0];let y;Llt(r.body,m)?(y=m.expression,e2(y),kF(m,y)):y=r.body;const T=be.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,be.createToken(39),y);return Hs.ChangeTracker.with(t,D=>D.replaceNode(s,r,T))}function Llt(t,r){return t.statements.length===1&&Bx(r)&&!!r.expression}function eqe(t,r,s){return!!s.name&&Wf.Core.isSymbolReferencedInFile(s.name,r,t)}var j3e,tqe,tle,yee,vee,Olt=G({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){El(),MP(),j3e="Convert arrow function or function expression",tqe=fs(w.Convert_arrow_function_or_function_expression),tle={name:"Convert to anonymous function",description:fs(w.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},yee={name:"Convert to named function",description:fs(w.Convert_to_named_function),kind:"refactor.rewrite.function.named"},vee={name:"Convert to arrow function",description:fs(w.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},SI(j3e,{kinds:[tle.kind,yee.kind,vee.kind],getEditsForAction:B3e,getAvailableActions:GCe})}}),Flt={},nqe=G({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){Olt()}});function Wlt(t){const{file:r,startPosition:s}=t;return v1(r)||!bee(r,s,t.program.getTypeChecker())?Zn:[{name:Vj,description:X3e,actions:[Y3e]}]}function Blt(t,r){ce.assert(r===Vj,"Unexpected action name");const{file:s,startPosition:l,program:m,cancellationToken:y,host:T}=t,D=bee(s,l,m.getTypeChecker());if(!D||!y)return;const I=Glt(D,m,y);return I.valid?{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,O=>zlt(s,m,T,O,D,I))}:{edits:[]}}function zlt(t,r,s,l,m,y){const T=y.signature,D=Vn(q3e(m,r,s),O=>Rg(O));if(T){const O=Vn(q3e(T,r,s),V=>Rg(V));W(T,O)}W(m,D);const I=OD(y.functionCalls,(O,V)=>pf(O.pos,V.pos));for(const O of I)if(O.arguments&&O.arguments.length){const V=Rg(qlt(m,O.arguments),!0);l.replaceNodeRange(ns(O),Dl(O.arguments),yl(O.arguments),V,{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Include})}function W(O,V){l.replaceNodeRangeWithNodes(t,Dl(O.parameters),yl(O.parameters),V,{joiner:", ",indentation:0,leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Include})}}function Glt(t,r,s){const l=Xlt(t),m=pg(t)?Klt(t):[],y=th([...l,...m],_1),T=r.getTypeChecker(),D=ea(y,V=>Wf.getReferenceEntriesForNode(-1,V,r,r.getSourceFiles(),s)),I=W(D);return jr(I.declarations,V=>ni(y,V))||(I.valid=!1),I;function W(V){const ee={accessExpressions:[],typeUsages:[]},te={functionCalls:[],declarations:[],classReferences:ee,valid:!0},oe=Vn(l,O),de=Vn(m,O),ue=pg(t),Ne=Vn(l,Be=>V3e(Be,T));for(const Be of V){if(Be.kind===Wf.EntryKind.Span){te.valid=!1;continue}if(ni(Ne,O(Be.node))){if(Vlt(Be.node.parent)){te.signature=Be.node.parent;continue}const pt=H3e(Be);if(pt){te.functionCalls.push(pt);continue}}const Ve=V3e(Be.node,T);if(Ve&&ni(Ne,Ve)){const pt=jhe(Be);if(pt){te.declarations.push(pt);continue}}if(ni(oe,O(Be.node))||zse(Be.node)){if(U3e(Be))continue;const Le=jhe(Be);if(Le){te.declarations.push(Le);continue}const ht=H3e(Be);if(ht){te.functionCalls.push(ht);continue}}if(ue&&ni(de,O(Be.node))){if(U3e(Be))continue;const Le=jhe(Be);if(Le){te.declarations.push(Le);continue}const ht=nle(Be);if(ht){ee.accessExpressions.push(ht);continue}if(Kc(t.parent)){const ke=rle(Be);if(ke){ee.typeUsages.push(ke);continue}}}te.valid=!1}return te}function O(V){const ee=T.getSymbolAtLocation(V);return ee&&HJe(ee,T)}}function V3e(t,r){const s=cle(t);if(s){const l=r.getContextualTypeForObjectLiteralElement(s),m=l==null?void 0:l.getSymbol();if(m&&!(I_(m)&6))return m}}function U3e(t){const r=t.node;if(oS(r.parent)||lC(r.parent)||kh(r.parent)||YL(r.parent)||Oy(r.parent)||Ly(r.parent))return r}function jhe(t){if(dl(t.node.parent))return t.node}function H3e(t){if(t.node.parent){const r=t.node,s=r.parent;switch(s.kind){case 213:case 214:const l=to(s,IN);if(l&&l.expression===r)return l;break;case 211:const m=to(s,sa);if(m&&m.parent&&m.name===r){const T=to(m.parent,IN);if(T&&T.expression===m)return T}break;case 212:const y=to(s,Ed);if(y&&y.parent&&y.argumentExpression===r){const T=to(y.parent,IN);if(T&&T.expression===y)return T}break}}}function nle(t){if(t.node.parent){const r=t.node,s=r.parent;switch(s.kind){case 211:const l=to(s,sa);if(l&&l.expression===r)return l;break;case 212:const m=to(s,Ed);if(m&&m.expression===r)return m;break}}}function rle(t){const r=t.node;if(z3(r)===2||PS(r.parent))return r}function bee(t,r,s){const l=qse(t,r),m=aSe(l);if(!jlt(l)&&m&&Ult(m,s)&&sS(m,l)&&!(m.body&&sS(m.body,l)))return m}function jlt(t){const r=Kr(t,UC);if(r){const s=Kr(r,l=>!UC(l));return!!s&&J_(s)}return!1}function Vlt(t){return Jh(t)&&(Kp(t.parent)||e0(t.parent))}function Ult(t,r){var s;if(!Hlt(t.parameters,r))return!1;switch(t.kind){case 262:return rqe(t)&&Vhe(t,r);case 174:if(Wd(t.parent)){const l=V3e(t.name,r);return((s=l==null?void 0:l.declarations)==null?void 0:s.length)===1&&Vhe(t,r)}return Vhe(t,r);case 176:return Kc(t.parent)?rqe(t.parent)&&Vhe(t,r):UCe(t.parent.parent)&&Vhe(t,r);case 218:case 219:return UCe(t.parent)}return!1}function Vhe(t,r){return!!t.body&&!r.isImplementationOfOverload(t)}function rqe(t){return t.name?!0:!!YW(t,90)}function Hlt(t,r){return J3e(t)>=K3e&&jr(t,s=>Jlt(s,r))}function Jlt(t,r){if(dP(t)){const s=r.getTypeAtLocation(t);if(!r.isArrayType(s)&&!r.isTupleType(s))return!1}return!t.modifiers&&An(t.name)}function UCe(t){return ff(t)&&h7(t)&&An(t.name)&&!t.type}function HCe(t){return t.length>0&&KW(t[0].name)}function J3e(t){return HCe(t)?t.length-1:t.length}function $3e(t){return HCe(t)&&(t=be.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function $lt(t,r){return An(r)&&aC(r)===t?be.createShorthandPropertyAssignment(t):be.createPropertyAssignment(t,r)}function qlt(t,r){const s=$3e(t.parameters),l=dP(yl(s)),m=l?r.slice(0,s.length-1):r,y=Vn(m,(D,I)=>{const W=JCe(s[I]),O=$lt(W,D);return e2(O.name),Fm(O)&&e2(O.initializer),kF(D,O),O});if(l&&r.length>=s.length){const D=r.slice(s.length-1),I=be.createPropertyAssignment(JCe(yl(s)),be.createArrayLiteralExpression(D));y.push(I)}return be.createObjectLiteralExpression(y,!1)}function q3e(t,r,s){const l=r.getTypeChecker(),m=$3e(t.parameters),y=Vn(m,O),T=be.createObjectBindingPattern(y),D=V(m);let I;jr(m,oe)&&(I=be.createObjectLiteralExpression());const W=be.createParameterDeclaration(void 0,void 0,T,void 0,D,I);if(HCe(t.parameters)){const de=t.parameters[0],ue=be.createParameterDeclaration(void 0,void 0,de.name,void 0,de.type);return e2(ue.name),kF(de.name,ue.name),de.type&&(e2(ue.type),kF(de.type,ue.type)),be.createNodeArray([ue,W])}return be.createNodeArray([W]);function O(de){const ue=be.createBindingElement(void 0,void 0,JCe(de),dP(de)&&oe(de)?be.createArrayLiteralExpression():de.initializer);return e2(ue),de.initializer&&ue.initializer&&kF(de.initializer,ue.initializer),ue}function V(de){const ue=Vn(de,ee);return cI(be.createTypeLiteralNode(ue),1)}function ee(de){let ue=de.type;!ue&&(de.initializer||dP(de))&&(ue=te(de));const Ne=be.createPropertySignature(void 0,JCe(de),oe(de)?be.createToken(58):de.questionToken,ue);return e2(Ne),kF(de.name,Ne.name),de.type&&Ne.type&&kF(de.type,Ne.type),Ne}function te(de){const ue=l.getTypeAtLocation(de);return PF(ue,de,r,s)}function oe(de){if(dP(de)){const ue=l.getTypeAtLocation(de);return!l.isTupleType(ue)}return l.isOptionalParameter(de)}}function JCe(t){return aC(t.name)}function Klt(t){switch(t.parent.kind){case 263:const r=t.parent;return r.name?[r.name]:[ce.checkDefined(YW(r,90),"Nameless class declaration should be a default export")];case 231:const l=t.parent,m=t.parent.parent,y=l.name;return y?[y,m.name]:[m.name]}}function Xlt(t){switch(t.kind){case 262:return t.name?[t.name]:[ce.checkDefined(YW(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=ce.checkDefined(Wm(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 ce.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var Vj,K3e,X3e,Y3e,iqe=G({"src/services/refactors/convertParamsToDestructuredObject.ts"(){El(),MP(),Vj="Convert parameters to destructured object",K3e=1,X3e=fs(w.Convert_parameters_to_destructured_object),Y3e={name:Vj,description:X3e,kind:"refactor.rewrite.parameters.toDestructured"},SI(Vj,{kinds:[Y3e.kind],getEditsForAction:Blt,getAvailableActions:Wlt})}}),Q3e={},Ylt=G({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){iqe()}});function oqe(t){const{file:r,startPosition:s}=t,l=aqe(r,s),m=Z3e(l),y={name:KCe,description:XCe,actions:[]};return ys(m)&&eOe(m).isValidConcatenation?(y.actions.push(Hhe),[y]):t.preferences.provideRefactorNotApplicableReason?(y.actions.push({...Hhe,notApplicableReason:fs(w.Can_only_convert_string_concatenation)}),[y]):Zn}function aqe(t,r){const s=bf(t,r),l=Z3e(s);return!eOe(l).isValidConcatenation&&sb(l.parent)&&ys(l.parent.parent)?l.parent.parent:s}function Qlt(t,r){const{file:s,startPosition:l}=t,m=aqe(s,l);switch(r){case XCe:return{edits:sqe(t,m)};default:return ce.fail("invalid action")}}function sqe(t,r){const s=Z3e(r),l=t.file,m=nOe(eOe(s),l),y=Nx(l.text,s.end);if(y){const T=y[y.length-1],D={pos:y[0].pos,end:T.end};return Hs.ChangeTracker.with(t,I=>{I.deleteRange(l,D),I.replaceNode(l,s,m)})}else return Hs.ChangeTracker.with(t,T=>T.replaceNode(l,s,m))}function $Ce(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function Z3e(t){return Kr(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(ys(s.parent)&&$Ce(s.parent));default:return"quit"}})||t}function eOe(t){const r=T=>{if(!ys(T))return{nodes:[T],operators:[],validOperators:!0,hasString:Wp(T)||Sd(T)};const{nodes:D,operators:I,hasString:W,validOperators:O}=r(T.left);if(!(W||Wp(T.right)||jY(T.right)))return{nodes:[T],operators:[],hasString:!1,validOperators:!0};const V=T.operatorToken.kind===40,ee=O&&V;return D.push(T.right),I.push(T.operatorToken),{nodes:D,operators:I,hasString:!0,validOperators:ee}},{nodes:s,operators:l,validOperators:m,hasString:y}=r(t);return{nodes:s,operators:l,isValidConcatenation:m&&y}}function Uhe(t){return t.replace(/\\.|[$`]/g,r=>r[0]==="\\"?r:"\\"+r)}function tOe(t){const r=SR(t)||ope(t)?-2:-1;return Yv(t).slice(1,r)}function qCe(t,r){const s=[];let l="",m="";for(;t{cqe(Ve);const Le=pt===ee.templateSpans.length-1,ht=Ve.literal.text+(Le?oe:""),ke=tOe(Ve.literal)+(Le?de:"");return be.createTemplateSpan(Ve.expression,Ne&&Le?be.createTemplateTail(ht,ke):be.createTemplateMiddle(ht,ke))});W.push(...Be)}else{const Be=Ne?be.createTemplateTail(oe,de):be.createTemplateMiddle(oe,de);m(ue,Be),W.push(be.createTemplateSpan(ee,Be))}}return be.createTemplateExpression(O,W)}function cqe(t){const r=t.getSourceFile();zT(t,t.expression,r,3,!1),oq(t.expression,t.expression,r,3,!1)}function Zlt(t){return sb(t)&&(cqe(t),t=t.expression),t}var KCe,XCe,Hhe,lqe,uqe,eut=G({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){El(),MP(),KCe="Convert to template string",XCe=fs(w.Convert_to_template_string),Hhe={name:KCe,description:XCe,kind:"refactor.rewrite.string"},SI(KCe,{kinds:[Hhe.kind],getEditsForAction:Qlt,getAvailableActions:oqe}),lqe=(t,r)=>(s,l)=>{s(l,m)=>{for(;l.length>0;){const y=l.shift();zT(t[y],m,r,3,!1),s(y,m)}}}}),rOe={},iOe=G({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){eut()}});function tut(t){const r=_qe(t,t.triggerReason==="invoked");return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:gq,description:Xhe,actions:[{...eDe,notApplicableReason:r.error}]}]:Zn:[{name:gq,description:Xhe,actions:[eDe]}]:Zn}function fqe(t,r){const s=_qe(t);return ce.assert(s&&!I2(s),"Expected applicable refactor info"),{edits:Hs.ChangeTracker.with(t,m=>aut(t.file,t.program.getTypeChecker(),m,s)),renameFilename:void 0,renameLocation:void 0}}function Jhe(t){return ys(t)||vk(t)}function nut(t){return Ou(t)||Bx(t)||Dh(t)}function $he(t){return Jhe(t)||nut(t)}function _qe(t,r=!0){const{file:s,program:l}=t,m=aB(t),y=m.length===0;if(y&&!r)return;const T=bf(s,m.start),D=Bge(s,m.start+m.length),I=R0(T.pos,D&&D.end>=T.pos?D.getEnd():T.getEnd()),W=y?iut(T):rut(T,I),O=W&&$he(W)?out(W):void 0;if(!O)return{error:fs(w.Could_not_find_convertible_access_expression)};const V=l.getTypeChecker();return vk(O)?YCe(O,V):QCe(O)}function YCe(t,r){const s=t.condition,l=oOe(t.whenTrue);if(!l||r.isNullableType(r.getTypeAtLocation(l)))return{error:fs(w.Could_not_find_convertible_access_expression)};if((sa(s)||An(s))&&ZCe(s,l.expression))return{finalExpression:l,occurrences:[s],expression:t};if(ys(s)){const m=qhe(l.expression,s);return m?{finalExpression:l,occurrences:m,expression:t}:{error:fs(w.Could_not_find_matching_access_expressions)}}}function QCe(t){if(t.operatorToken.kind!==56)return{error:fs(w.Can_only_convert_logical_AND_access_chains)};const r=oOe(t.right);if(!r)return{error:fs(w.Could_not_find_convertible_access_expression)};const s=qhe(r.expression,t.left);return s?{finalExpression:r,occurrences:s,expression:t}:{error:fs(w.Could_not_find_matching_access_expressions)}}function qhe(t,r){const s=[];for(;ys(r)&&r.operatorToken.kind===56;){const m=ZCe(_g(t),_g(r.right));if(!m)break;s.push(m),t=m,r=r.left}const l=ZCe(t,r);return l&&s.push(l),s.length>0?s:void 0}function ZCe(t,r){if(!(!An(r)&&!sa(r)&&!Ed(r)))return dqe(t,r)?r:void 0}function dqe(t,r){for(;(el(t)||sa(t)||Ed(t))&&ile(t)!==ile(r);)t=t.expression;for(;sa(t)&&sa(r)||Ed(t)&&Ed(r);){if(ile(t)!==ile(r))return!1;t=t.expression,r=r.expression}return An(t)&&An(r)&&t.getText()===r.getText()}function ile(t){if(An(t)||Qv(t))return t.getText();if(sa(t))return ile(t.name);if(Ed(t))return ile(t.argumentExpression)}function rut(t,r){for(;t.parent;){if($he(t)&&r.length!==0&&t.end>=r.start+r.length)return t;t=t.parent}}function iut(t){for(;t.parent;){if($he(t)&&!$he(t.parent))return t;t=t.parent}}function out(t){if(Jhe(t))return t;if(Dh(t)){const r=$8(t),s=r==null?void 0:r.initializer;return s&&Jhe(s)?s:void 0}return t.expression&&Jhe(t.expression)?t.expression:void 0}function oOe(t){if(t=_g(t),ys(t))return oOe(t.left);if((sa(t)||Ed(t)||el(t))&&!ky(t))return t}function Khe(t,r,s){if(sa(r)||Ed(r)||el(r)){const l=Khe(t,r.expression,s),m=s.length>0?s[s.length-1]:void 0,y=(m==null?void 0:m.getText())===r.expression.getText();if(y&&s.pop(),el(r))return y?be.createCallChain(l,be.createToken(29),r.typeArguments,r.arguments):be.createCallChain(l,r.questionDotToken,r.typeArguments,r.arguments);if(sa(r))return y?be.createPropertyAccessChain(l,be.createToken(29),r.name):be.createPropertyAccessChain(l,r.questionDotToken,r.name);if(Ed(r))return y?be.createElementAccessChain(l,be.createToken(29),r.argumentExpression):be.createElementAccessChain(l,r.questionDotToken,r.argumentExpression)}return r}function aut(t,r,s,l,m){const{finalExpression:y,occurrences:T,expression:D}=l,I=T[T.length-1],W=Khe(r,y,T);W&&(sa(W)||Ed(W)||el(W))&&(ys(D)?s.replaceNodeRange(t,I,y,W):vk(D)&&s.replaceNode(t,D,be.createBinaryExpression(W,be.createToken(61),D.whenFalse)))}var gq,Xhe,eDe,sut=G({"src/services/refactors/convertToOptionalChainExpression.ts"(){El(),MP(),gq="Convert to optional chain expression",Xhe=fs(w.Convert_to_optional_chain_expression),eDe={name:gq,description:Xhe,kind:"refactor.rewrite.expression.optionalChain"},SI(gq,{kinds:[eDe.kind],getEditsForAction:fqe,getAvailableActions:tut})}}),pqe={},aOe=G({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){sut()}});function mqe(t){const r=t.kind,s=sOe(t.file,aB(t),t.triggerReason==="invoked"),l=s.targetRange;if(l===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return Zn;const oe=[];return Y3(vq.kind,r)&&oe.push({name:hq,description:vq.description,actions:[{...vq,notApplicableReason:te(s.errors)}]}),Y3(yq.kind,r)&&oe.push({name:hq,description:yq.description,actions:[{...yq,notApplicableReason:te(s.errors)}]}),oe}const m=tDe(l,t);if(m===void 0)return Zn;const y=[],T=new Map;let D;const I=[],W=new Map;let O,V=0;for(const{functionExtraction:oe,constantExtraction:de}of m){if(Y3(vq.kind,r)){const ue=oe.description;oe.errors.length===0?T.has(ue)||(T.set(ue,!0),y.push({description:ue,name:`function_scope_${V}`,kind:vq.kind})):D||(D={description:ue,name:`function_scope_${V}`,notApplicableReason:te(oe.errors),kind:vq.kind})}if(Y3(yq.kind,r)){const ue=de.description;de.errors.length===0?W.has(ue)||(W.set(ue,!0),I.push({description:ue,name:`constant_scope_${V}`,kind:yq.kind})):O||(O={description:ue,name:`constant_scope_${V}`,notApplicableReason:te(de.errors),kind:yq.kind})}V++}const ee=[];return y.length?ee.push({name:hq,description:fs(w.Extract_function),actions:y}):t.preferences.provideRefactorNotApplicableReason&&D&&ee.push({name:hq,description:fs(w.Extract_function),actions:[D]}),I.length?ee.push({name:hq,description:fs(w.Extract_constant),actions:I}):t.preferences.provideRefactorNotApplicableReason&&O&&ee.push({name:hq,description:fs(w.Extract_constant),actions:[O]}),ee.length?ee:Zn;function te(oe){let de=oe[0].messageText;return typeof de!="string"&&(de=de.messageText),de}}function Tee(t,r){const l=sOe(t.file,aB(t)).targetRange,m=/^function_scope_(\d+)$/.exec(r);if(m){const T=+m[1];return ce.assert(isFinite(T),"Expected to parse a finite number from the function scope index"),uut(l,t,T)}const y=/^constant_scope_(\d+)$/.exec(r);if(y){const T=+y[1];return ce.assert(isFinite(T),"Expected to parse a finite number from the constant scope index"),Qhe(l,t,T)}ce.fail("Unrecognized action name")}function sOe(t,r,s=!0){const{length:l}=r;if(l===0&&!s)return{errors:[Pp(t,r.start,l,I1.cannotExtractEmpty)]};const m=l===0&&s,y=P8e(t,r.start),T=Bge(t,K1(r)),D=y&&T&&s?cut(y,T,t):r,I=m?Aut(y):Nk(y,t,D),W=m?I:Nk(T,t,D);let O=0,V;if(!I||!W)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};if(I.flags&16777216)return{errors:[Pp(t,r.start,l,I1.cannotExtractJSDoc)]};if(I.parent!==W.parent)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};if(I!==W){if(!bqe(I.parent))return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};const Be=[];for(const Ve of I.parent.statements){if(Ve===I||Be.length){const pt=Ne(Ve);if(pt)return{errors:pt};Be.push(Ve)}if(Ve===W)break}return Be.length?{targetRange:{range:Be,facts:O,thisNode:V}}:{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]}}if(Bx(I)&&!I.expression)return{errors:[Pp(t,r.start,l,I1.cannotExtractRange)]};const ee=oe(I),te=de(ee)||Ne(ee);if(te)return{errors:te};return{targetRange:{range:lut(ee),facts:O,thisNode:V}};function oe(Be){if(Bx(Be)){if(Be.expression)return Be.expression}else if(Dh(Be)||My(Be)){const Ve=Dh(Be)?Be.declarationList.declarations:Be.declarations;let pt=0,Le;for(const ht of Ve)ht.initializer&&(pt++,Le=ht.initializer);if(pt===1)return Le}else if(ff(Be)&&Be.initializer)return Be.initializer;return Be}function de(Be){if(An(Ou(Be)?Be.expression:Be))return[kc(Be,I1.cannotExtractIdentifier)]}function ue(Be,Ve){let pt=Be;for(;pt!==Ve;){if(pt.kind===172){e_(pt)&&(O|=32);break}else if(pt.kind===169){GE(pt).kind===176&&(O|=32);break}else pt.kind===174&&e_(pt)&&(O|=32);pt=pt.parent}}function Ne(Be){let Ve;if((Dt=>{Dt[Dt.None=0]="None",Dt[Dt.Break=1]="Break",Dt[Dt.Continue=2]="Continue",Dt[Dt.Return=4]="Return"})(Ve||(Ve={})),ce.assert(Be.pos<=Be.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),ce.assert(!ab(Be.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!uf(Be)&&!(Gy(Be)&&vqe(Be))&&!dOe(Be))return[kc(Be,I1.statementOrExpressionExpected)];if(Be.flags&33554432)return[kc(Be,I1.cannotExtractAmbientBlock)];const pt=h0(Be);pt&&ue(Be,pt);let Le,ht=4,ke;if(_t(Be),O&8){const Dt=Q1(Be,!1,!1);(Dt.kind===262||Dt.kind===174&&Dt.parent.kind===210||Dt.kind===218)&&(O|=16)}return Le;function _t(Dt){if(Le)return!0;if(dl(Dt)){const it=Dt.kind===260?Dt.parent.parent:Dt;if(il(it,1))return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractExportedEntity)),!0}switch(Dt.kind){case 272:return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractImport)),!0;case 277:return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractExportedEntity)),!0;case 108:if(Dt.parent.kind===213){const it=h0(Dt);if(it===void 0||it.pos=r.start+r.length)return(Le||(Le=[])).push(kc(Dt,I1.cannotExtractSuper)),!0}else O|=8,V=Dt;break;case 219:B_(Dt,function it(Ye){if(KW(Ye))O|=8,V=Dt;else{if(Jl(Ye)||S_(Ye)&&!ph(Ye))return!1;B_(Ye,it)}});case 263:case 262:tl(Dt.parent)&&Dt.parent.externalModuleIndicator===void 0&&(Le||(Le=[])).push(kc(Dt,I1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ft=ht;switch(Dt.kind){case 245:ht&=-5;break;case 258:ht=0;break;case 241:Dt.parent&&Dt.parent.kind===258&&Dt.parent.finallyBlock===Dt&&(ht=4);break;case 297:case 296:ht|=1;break;default:kN(Dt,!1)&&(ht|=3);break}switch(Dt.kind){case 197:case 110:O|=8,V=Dt;break;case 256:{const it=Dt.label;(ke||(ke=[])).push(it.escapedText),B_(Dt,_t),ke.pop();break}case 252:case 251:{const it=Dt.label;it?ni(ke,it.escapedText)||(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ht&(Dt.kind===252?1:2)||(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:O|=4;break;case 229:O|=2;break;case 253:ht&4?O|=1:(Le||(Le=[])).push(kc(Dt,I1.cannotExtractRangeContainingConditionalReturnStatement));break;default:B_(Dt,_t);break}ht=Ft}}}function cut(t,r,s){const l=t.getStart(s);let m=r.getEnd();return s.text.charCodeAt(m)===59&&m++,{start:l,length:m-l}}function lut(t){if(uf(t))return[t];if(Gy(t))return Ou(t.parent)?[t.parent]:t;if(dOe(t))return t}function Yhe(t){return ph(t)?$Te(t.body):J_(t)||tl(t)||z0(t)||Jl(t)}function gqe(t){let r=O6(t.range)?Dl(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const l=h0(r);if(l){const m=Kr(r,J_);return m?[m,l]:[l]}}const s=[];for(;;)if(r=r.parent,r.kind===169&&(r=Kr(r,l=>J_(l)).parent),Yhe(r)&&(s.push(r),r.kind===312))return s}function uut(t,r,s){const{scopes:l,readsAndWrites:{target:m,usagesPerScope:y,functionErrorsPerScope:T,exposedVariableDeclarations:D}}=ole(t,r);return ce.assert(!T[s].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),cOe(m,l[s],y[s],D,t,r)}function Qhe(t,r,s){const{scopes:l,readsAndWrites:{target:m,usagesPerScope:y,constantErrorsPerScope:T,exposedVariableDeclarations:D}}=ole(t,r);ce.assert(!T[s].length,"The extraction went missing? How?"),ce.assert(D.length===0,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested();const I=Nr(m)?m:m.statements[0].expression;return put(I,l[s],y[s],t.facts,r)}function tDe(t,r){const{scopes:s,readsAndWrites:{functionErrorsPerScope:l,constantErrorsPerScope:m}}=ole(t,r);return s.map((T,D)=>{const I=fut(T),W=_ut(T),O=J_(T)?dut(T):Jl(T)?hqe(T):yqe(T);let V,ee;return O===1?(V=LT(fs(w.Extract_to_0_in_1_scope),[I,"global"]),ee=LT(fs(w.Extract_to_0_in_1_scope),[W,"global"])):O===0?(V=LT(fs(w.Extract_to_0_in_1_scope),[I,"module"]),ee=LT(fs(w.Extract_to_0_in_1_scope),[W,"module"])):(V=LT(fs(w.Extract_to_0_in_1),[I,O]),ee=LT(fs(w.Extract_to_0_in_1),[W,O])),D===0&&!Jl(T)&&(ee=LT(fs(w.Extract_to_0_in_enclosing_scope),[W])),{functionExtraction:{description:V,errors:l[D]},constantExtraction:{description:ee,errors:m[D]}}})}function ole(t,r){const{file:s}=r,l=gqe(t),m=Eut(t,s),y=xut(t,l,m,s,r.program.getTypeChecker(),r.cancellationToken);return{scopes:l,readsAndWrites:y}}function fut(t){return J_(t)?"inner function":Jl(t)?"method":"function"}function _ut(t){return Jl(t)?"readonly field":"constant"}function dut(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:cB;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:ce.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function hqe(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 yqe(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function cOe(t,r,{usages:s,typeParameterUsages:l,substitutions:m},y,T,D){const I=D.program.getTypeChecker(),W=iu(D.program.getCompilerOptions()),O=If.createImportAdder(D.file,D.program,D.preferences,D.host),V=r.getSourceFile(),ee=eB(Jl(r)?"newMethod":"newFunction",V),te=Rs(r),oe=be.createIdentifier(ee);let de;const ue=[],Ne=[];let Be;s.forEach((on,pn)=>{let Or;if(!te){let Ut=I.getTypeOfSymbolAtLocation(on.symbol,on.node);Ut=I.getBaseTypeOfLiteralType(Ut),Or=If.typeToAutoImportableTypeNode(I,O,Ut,r,W,1)}const Xr=be.createParameterDeclaration(void 0,void 0,pn,void 0,Or);ue.push(Xr),on.usage===2&&(Be||(Be=[])).push(on),Ne.push(be.createIdentifier(pn))});const pt=oc(l.values(),on=>({type:on,declaration:lOe(on,D.startPosition)})).sort(gut),Le=pt.length===0?void 0:Qo(pt,({declaration:on})=>on),ht=Le!==void 0?Le.map(on=>be.createTypeReferenceNode(on.name,void 0)):void 0;if(Nr(t)&&!te){const on=I.getContextualType(t);de=I.typeToTypeNode(on,r,1)}const{body:ke,returnValueProperty:_t}=yut(t,y,Be,m,!!(T.facts&1));e2(ke);let Dt;const Ft=!!(T.facts&16);if(Jl(r)){const on=te?[]:[be.createModifier(123)];T.facts&32&&on.push(be.createModifier(126)),T.facts&4&&on.push(be.createModifier(134)),Dt=be.createMethodDeclaration(on.length?on:void 0,T.facts&2?be.createToken(42):void 0,oe,void 0,Le,ue,de,ke)}else Ft&&ue.unshift(be.createParameterDeclaration(void 0,void 0,"this",void 0,I.typeToTypeNode(I.getTypeAtLocation(T.thisNode),r,1),void 0)),Dt=be.createFunctionDeclaration(T.facts&4?[be.createToken(134)]:void 0,T.facts&2?be.createToken(42):void 0,oe,Le,ue,de,ke);const it=Hs.ChangeTracker.fromContext(D),Ye=(O6(T.range)?yl(T.range):T.range).end,ut=but(Ye,r);ut?it.insertNodeBefore(D.file,ut,Dt,!0):it.insertNodeAtEndOfScope(D.file,r,Dt),O.writeFixes(it);const lt=[],zt=hut(r,T,ee);Ft&&Ne.unshift(be.createIdentifier("this"));let Wt=be.createCallExpression(Ft?be.createPropertyAccessExpression(zt,"call"):zt,ht,Ne);if(T.facts&2&&(Wt=be.createYieldExpression(be.createToken(42),Wt)),T.facts&4&&(Wt=be.createAwaitExpression(Wt)),_Oe(t)&&(Wt=be.createJsxExpression(void 0,Wt)),y.length&&!Be)if(ce.assert(!_t,"Expected no returnValueProperty"),ce.assert(!(T.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),y.length===1){const on=y[0];lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(on.name),void 0,Rg(on.type),Wt)],on.parent.flags)))}else{const on=[],pn=[];let Or=y[0].parent.flags,Xr=!1;for(const In of y){on.push(be.createBindingElement(void 0,void 0,Rg(In.name)));const gr=I.typeToTypeNode(I.getBaseTypeOfLiteralType(I.getTypeAtLocation(In)),r,1);pn.push(be.createPropertySignature(void 0,In.symbol.name,void 0,gr)),Xr=Xr||In.type!==void 0,Or=Or&In.parent.flags}const Ut=Xr?be.createTypeLiteralNode(pn):void 0;Ut&&Sa(Ut,1),lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(be.createObjectBindingPattern(on),void 0,Ut,Wt)],Or)))}else if(y.length||Be){if(y.length)for(const pn of y){let Or=pn.parent.flags;Or&2&&(Or=Or&-3|1),lt.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(pn.symbol.name,void 0,un(pn.type))],Or)))}_t&<.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(_t,void 0,un(de))],1)));const on=fOe(y,Be);_t&&on.unshift(be.createShorthandPropertyAssignment(_t)),on.length===1?(ce.assert(!_t,"Shouldn't have returnValueProperty here"),lt.push(be.createExpressionStatement(be.createAssignment(on[0].name,Wt))),T.facts&1&<.push(be.createReturnStatement())):(lt.push(be.createExpressionStatement(be.createAssignment(be.createObjectLiteralExpression(on),Wt))),_t&<.push(be.createReturnStatement(be.createIdentifier(_t))))}else T.facts&1?lt.push(be.createReturnStatement(Wt)):O6(T.range)?lt.push(be.createExpressionStatement(Wt)):lt.push(Wt);O6(T.range)?it.replaceNodeRangeWithNodes(D.file,Dl(T.range),yl(T.range),lt):it.replaceNodeWithNodes(D.file,T.range,lt);const tt=it.getChanges(),kn=(O6(T.range)?Dl(T.range):T.range).getSourceFile().fileName,cr=WR(tt,kn,ee,!1);return{renameFilename:kn,renameLocation:cr,edits:tt};function un(on){if(on===void 0)return;const pn=Rg(on);let Or=pn;for(;xR(Or);)Or=Or.type;return g6(Or)&&lr(Or.types,Xr=>Xr.kind===157)?pn:be.createUnionTypeNode([pn,be.createKeywordTypeNode(157)])}}function put(t,r,{substitutions:s},l,m){const y=m.program.getTypeChecker(),T=r.getSourceFile(),D=sa(t)&&!Jl(r)&&!y.resolveName(t.name.text,t,111551,!1)&&!Gu(t.name)&&!RL(t.name)?t.name.text:eB(Jl(r)?"newProperty":"newLocal",T),I=Rs(r);let W=I||!y.isContextSensitive(t)?void 0:y.typeToTypeNode(y.getContextualType(t),r,1),O=vut(_g(t),s);({variableType:W,initializer:O}=de(W,O)),e2(O);const V=Hs.ChangeTracker.fromContext(m);if(Jl(r)){ce.assert(!I,"Cannot extract to a JS class");const ue=[];ue.push(be.createModifier(123)),l&32&&ue.push(be.createModifier(126)),ue.push(be.createModifier(148));const Ne=be.createPropertyDeclaration(ue,D,void 0,W,O);let Be=be.createPropertyAccessExpression(l&32?be.createIdentifier(r.name.getText()):be.createThis(),be.createIdentifier(D));_Oe(t)&&(Be=be.createJsxExpression(void 0,Be));const Ve=t.pos,pt=Tut(Ve,r);V.insertNodeBefore(m.file,pt,Ne,!0),V.replaceNode(m.file,t,Be)}else{const ue=be.createVariableDeclaration(D,void 0,W,O),Ne=mut(t,r);if(Ne){V.insertNodeBefore(m.file,Ne,ue);const Be=be.createIdentifier(D);V.replaceNode(m.file,t,Be)}else if(t.parent.kind===244&&r===Kr(t,Yhe)){const Be=be.createVariableStatement(void 0,be.createVariableDeclarationList([ue],2));V.replaceNode(m.file,t.parent,Be)}else{const Be=be.createVariableStatement(void 0,be.createVariableDeclarationList([ue],2)),Ve=Sut(t,r);if(Ve.pos===0?V.insertNodeAtTopOfFile(m.file,Be,!1):V.insertNodeBefore(m.file,Ve,Be,!1),t.parent.kind===244)V.delete(m.file,t.parent);else{let pt=be.createIdentifier(D);_Oe(t)&&(pt=be.createJsxExpression(void 0,pt)),V.replaceNode(m.file,t,pt)}}}const ee=V.getChanges(),te=t.getSourceFile().fileName,oe=WR(ee,te,D,!0);return{renameFilename:te,renameLocation:oe,edits:ee};function de(ue,Ne){if(ue===void 0)return{variableType:ue,initializer:Ne};if(!Dm(Ne)&&!ph(Ne)||Ne.typeParameters)return{variableType:ue,initializer:Ne};const Be=y.getTypeAtLocation(t),Ve=Vb(y.getSignaturesOfType(Be,0));if(!Ve)return{variableType:ue,initializer:Ne};if(Ve.getTypeParameters())return{variableType:ue,initializer:Ne};const pt=[];let Le=!1;for(const ht of Ne.parameters)if(ht.type)pt.push(ht);else{const ke=y.getTypeAtLocation(ht);ke===y.getAnyType()&&(Le=!0),pt.push(be.updateParameterDeclaration(ht,ht.modifiers,ht.dotDotDotToken,ht.name,ht.questionToken,ht.type||y.typeToTypeNode(ke,r,1),ht.initializer))}if(Le)return{variableType:ue,initializer:Ne};if(ue=void 0,ph(Ne))Ne=be.updateArrowFunction(Ne,nx(t)?N8(t):void 0,Ne.typeParameters,pt,Ne.type||y.typeToTypeNode(Ve.getReturnType(),r,1),Ne.equalsGreaterThanToken,Ne.body);else{if(Ve&&Ve.thisParameter){const ht=pp(pt);if(!ht||An(ht.name)&&ht.name.escapedText!=="this"){const ke=y.getTypeOfSymbolAtLocation(Ve.thisParameter,t);pt.splice(0,0,be.createParameterDeclaration(void 0,void 0,"this",void 0,y.typeToTypeNode(ke,r,1)))}}Ne=be.updateFunctionExpression(Ne,nx(t)?N8(t):void 0,Ne.asteriskToken,Ne.name,Ne.typeParameters,pt,Ne.type||y.typeToTypeNode(Ve.getReturnType(),r,1),Ne.body)}return{variableType:ue,initializer:Ne}}}function mut(t,r){let s;for(;t!==void 0&&t!==r;){if(ff(t)&&t.initializer===s&&My(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function lOe(t,r){let s;const l=t.symbol;if(l&&l.declarations)for(const m of l.declarations)(s===void 0||m.pos0;if(E_(t)&&!y&&l.size===0)return{body:be.createBlock(t.statements,!0),returnValueProperty:void 0};let T,D=!1;const I=be.createNodeArray(E_(t)?t.statements.slice(0):[uf(t)?t:be.createReturnStatement(_g(t))]);if(y||l.size){const O=Fa(I,W,uf).slice();if(y&&!m&&uf(t)){const V=fOe(r,s);V.length===1?O.push(be.createReturnStatement(V[0].name)):O.push(be.createReturnStatement(be.createObjectLiteralExpression(V)))}return{body:be.createBlock(O,!0),returnValueProperty:T}}else return{body:be.createBlock(I,!0),returnValueProperty:void 0};function W(O){if(!D&&Bx(O)&&y){const V=fOe(r,s);return O.expression&&(T||(T="__return"),V.unshift(be.createPropertyAssignment(T,nr(O.expression,W,Nr)))),V.length===1?be.createReturnStatement(V[0].name):be.createReturnStatement(be.createObjectLiteralExpression(V))}else{const V=D;D=D||J_(O)||Jl(O);const ee=l.get(Im(O).toString()),te=ee?Rg(ee):ia(O,W,I6);return D=V,te}}}function vut(t,r){return r.size?s(t):t;function s(l){const m=r.get(Im(l).toString());return m?Rg(m):ia(l,s,I6)}}function uOe(t){if(J_(t)){const r=t.body;if(E_(r))return r.statements}else{if(z0(t)||tl(t))return t.statements;if(Jl(t))return t.members}return Zn}function but(t,r){return lr(uOe(r),s=>s.pos>=t&&J_(s)&&!pg(s))}function Tut(t,r){const s=r.members;ce.assert(s.length>0,"Found no members");let l,m=!0;for(const y of s){if(y.pos>t)return l||s[0];if(m&&!Os(y)){if(l!==void 0)return y;m=!1}l=y}return l===void 0?ce.fail():l}function Sut(t,r){ce.assert(!Jl(r));let s;for(let l=t;l!==r;l=l.parent)Yhe(l)&&(s=l);for(let l=(s||t).parent;;l=l.parent){if(bqe(l)){let m;for(const y of l.statements){if(y.pos>t.pos)break;m=y}return!m&&tx(l)?(ce.assert(Loe(l.parent.parent),"Grandparent isn't a switch statement"),l.parent.parent):ce.checkDefined(m,"prevStatement failed to get set")}ce.assert(l!==r,"Didn't encounter a block-like before encountering scope")}}function fOe(t,r){const s=Vn(t,m=>be.createShorthandPropertyAssignment(m.symbol.name)),l=Vn(r,m=>be.createShorthandPropertyAssignment(m.symbol.name));return s===void 0?l:l===void 0?s:s.concat(l)}function O6(t){return ls(t)}function Eut(t,r){return O6(t.range)?{pos:Dl(t.range).getStart(r),end:yl(t.range).getEnd()}:t.range}function xut(t,r,s,l,m,y){const T=new Map,D=[],I=[],W=[],O=[],V=[],ee=new Map,te=[];let oe;const de=O6(t.range)?t.range.length===1&&Ou(t.range[0])?t.range[0].expression:void 0:t.range;let ue;if(de===void 0){const ut=t.range,lt=Dl(ut).getStart(),zt=yl(ut).end;ue=Pp(l,lt,zt-lt,I1.expressionExpected)}else m.getTypeAtLocation(de).flags&147456&&(ue=kc(de,I1.uselessConstantType));for(const ut of r){D.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),I.push(new Map),W.push([]);const lt=[];ue&<.push(ue),Jl(ut)&&Rs(ut)&<.push(kc(ut,I1.cannotExtractToJSClass)),ph(ut)&&!E_(ut.body)&<.push(kc(ut,I1.cannotExtractToExpressionArrowFunction)),O.push(lt)}const Ne=new Map,Be=O6(t.range)?be.createBlock(t.range):t.range,Ve=O6(t.range)?Dl(t.range):t.range,pt=Le(Ve);if(ke(Be),pt&&!O6(t.range)&&!Pb(t.range)){const ut=m.getContextualType(t.range);ht(ut)}if(T.size>0){const ut=new Map;let lt=0;for(let zt=Ve;zt!==void 0&<{D[lt].typeParameterUsages.set(tt,Wt)}),lt++),QD(zt))for(const Wt of oR(zt)){const tt=m.getTypeAtLocation(Wt);T.has(tt.id.toString())&&ut.set(tt.id.toString(),tt)}ce.assert(lt===r.length,"Should have iterated all scopes")}if(V.length){const ut=gie(r[0],r[0].parent)?r[0]:Bs(r[0]);B_(ut,Ft)}for(let ut=0;ut0&&(lt.usages.size>0||lt.typeParameterUsages.size>0)){const tt=O6(t.range)?t.range[0]:t.range;O[ut].push(kc(tt,I1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&Jl(r[ut])&&W[ut].push(kc(t.thisNode,I1.cannotExtractFunctionsContainingThisToMethod));let zt=!1,Wt;if(D[ut].usages.forEach(tt=>{tt.usage===2&&(zt=!0,tt.symbol.flags&106500&&tt.symbol.valueDeclaration&&Ab(tt.symbol.valueDeclaration,64)&&(Wt=tt.symbol.valueDeclaration))}),ce.assert(O6(t.range)||te.length===0,"No variable declarations expected if something was extracted"),zt&&!O6(t.range)){const tt=kc(t.range,I1.cannotWriteInExpression);W[ut].push(tt),O[ut].push(tt)}else if(Wt&&ut>0){const tt=kc(Wt,I1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);W[ut].push(tt),O[ut].push(tt)}else if(oe){const tt=kc(oe,I1.cannotExtractExportedEntity);W[ut].push(tt),O[ut].push(tt)}}return{target:Be,usagesPerScope:D,functionErrorsPerScope:W,constantErrorsPerScope:O,exposedVariableDeclarations:te};function Le(ut){return!!Kr(ut,lt=>QD(lt)&&oR(lt).length!==0)}function ht(ut){const lt=m.getSymbolWalker(()=>(y.throwIfCancellationRequested(),!0)),{visitedTypes:zt}=lt.walkType(ut);for(const Wt of zt)Wt.isTypeParameter()&&T.set(Wt.id.toString(),Wt)}function ke(ut,lt=1){if(pt){const zt=m.getTypeAtLocation(ut);ht(zt)}if(dl(ut)&&ut.symbol&&V.push(ut),wy(ut))ke(ut.left,2),ke(ut.right);else if(WVe(ut))ke(ut.operand,2);else if(sa(ut)||Ed(ut))B_(ut,ke);else if(An(ut)){if(!ut.parent||nT(ut.parent)&&ut!==ut.parent.left||sa(ut.parent)&&ut!==ut.parent.expression)return;_t(ut,lt,rC(ut))}else B_(ut,ke)}function _t(ut,lt,zt){const Wt=Dt(ut,lt,zt);if(Wt)for(let tt=0;tt=lt)return tt;if(Ne.set(tt,lt),Mn){for(const un of D)un.usages.get(ut.text)&&un.usages.set(ut.text,{usage:lt,symbol:Wt,node:ut});return tt}const kn=Wt.getDeclarations(),cr=kn&&lr(kn,un=>un.getSourceFile()===l);if(cr&&!AZ(s,cr.getStart(),cr.end)){if(t.facts&2&<===2){const un=kc(ut,I1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const on of W)on.push(un);for(const on of O)on.push(un)}for(let un=0;un=0)return;const lt=An(ut)?it(ut):m.getSymbolAtLocation(ut);if(lt){const zt=lr(V,Wt=>Wt.symbol===lt);if(zt)if(ff(zt)){const Wt=zt.symbol.id.toString();ee.has(Wt)||(te.push(zt),ee.set(Wt,!0))}else oe=oe||zt}B_(ut,Ft)}function it(ut){return ut.parent&&BT(ut.parent)&&ut.parent.name===ut?m.getShorthandAssignmentValueSymbol(ut.parent):m.getSymbolAtLocation(ut)}function Ye(ut,lt,zt){if(!ut)return;const Wt=ut.getDeclarations();if(Wt&&Wt.some(Mn=>Mn.parent===lt))return be.createIdentifier(ut.name);const tt=Ye(ut.parent,lt,zt);if(tt!==void 0)return zt?be.createQualifiedName(tt,be.createIdentifier(ut.name)):be.createPropertyAccessExpression(tt,ut.name)}}function Aut(t){return Kr(t,r=>r.parent&&vqe(r)&&!ys(r.parent))}function vqe(t){const{parent:r}=t;switch(r.kind){case 306:return!1}switch(t.kind){case 11:return r.kind!==272&&r.kind!==276;case 230:case 206:case 208:return!1;case 80:return r.kind!==208&&r.kind!==276&&r.kind!==281}return!0}function bqe(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function _Oe(t){return dOe(t)||(my(t)||TW(t)||KE(t))&&(my(t.parent)||KE(t.parent))}function dOe(t){return Wp(t)&&t.parent&&Pb(t.parent)}var hq,yq,vq,I1,pOe,mOe=G({"src/services/refactors/extractSymbol.ts"(){El(),MP(),hq="Extract Symbol",yq={name:"Extract Constant",description:fs(w.Extract_constant),kind:"refactor.extract.constant"},vq={name:"Extract Function",description:fs(w.Extract_function),kind:"refactor.extract.function"},SI(hq,{kinds:[yq.kind,vq.kind],getEditsForAction:Tee,getAvailableActions:mqe}),(t=>{function r(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=r("Cannot extract functions containing this to method")})(I1||(I1={})),pOe=(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))(pOe||{})}}),zR={};Oe(zR,{Messages:()=>I1,RangeFacts:()=>pOe,getRangeToExtract:()=>sOe,getRefactorActionsToExtractSymbol:()=>mqe,getRefactorEditsToExtractSymbol:()=>Tee});var Cut=G({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){mOe()}}),Zhe,nDe,eye,Tqe=G({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){El(),MP(),Zhe="Generate 'get' and 'set' accessors",nDe=fs(w.Generate_get_and_set_accessors),eye={name:Zhe,description:nDe,kind:"refactor.rewrite.property.generateAccessors"},SI(Zhe,{kinds:[eye.kind],getEditsForAction:function(r,s){if(!r.endPosition)return;const l=If.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);ce.assert(l&&!I2(l),"Expected applicable refactor info");const m=If.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,s);if(!m)return;const y=r.file.fileName,T=l.renameAccessor?l.accessorName:l.fieldName,I=(An(T)?0:-1)+WR(m,y,T.text,Pu(l.declaration));return{renameFilename:y,renameLocation:I,edits:m}},getAvailableActions(t){if(!t.endPosition)return Zn;const r=If.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:Zhe,description:nDe,actions:[{...eye,notApplicableReason:r.error}]}]:Zn:[{name:Zhe,description:nDe,actions:[eye]}]:Zn}})}}),gOe={},hOe=G({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){Tqe()}});function bq(t){const r=n1(t);if(r&&!I2(r))return{renameFilename:void 0,renameLocation:void 0,edits:Hs.ChangeTracker.with(t,l=>Sq(t.file,l,r.declaration,r.returnTypeNode))}}function Tq(t){const r=n1(t);return r?I2(r)?t.preferences.provideRefactorNotApplicableReason?[{name:ale,description:rDe,actions:[{...Uj,notApplicableReason:r.error}]}]:Zn:[{name:ale,description:rDe,actions:[Uj]}]:Zn}function Sq(t,r,s,l){const m=Wm(s,22,t),y=ph(s)&&m===void 0,T=y?Dl(s.parameters):m;T&&(y&&(r.insertNodeBefore(t,T,be.createToken(21)),r.insertNodeAfter(t,T,be.createToken(22))),r.insertNodeAt(t,T.end,l,{prefix:": "}))}function n1(t){if(Rs(t.file)||!Y3(Uj.kind,t.kind))return;const r=bf(t.file,t.startPosition),s=Kr(r,T=>E_(T)||T.parent&&ph(T.parent)&&(T.kind===39||T.parent.body===T)?"quit":yOe(T));if(!s||!s.body||s.type)return{error:fs(w.Return_type_must_be_inferred_from_a_function)};const l=t.program.getTypeChecker(),m=Dut(l,s);if(!m)return{error:fs(w.Could_not_determine_function_return_type)};const y=l.typeToTypeNode(m,s,1);if(y)return{declaration:s,returnTypeNode:y}}function yOe(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function Dut(t,r){if(t.isImplementationOfOverload(r)){const l=t.getTypeAtLocation(r).getCallSignatures();if(l.length>1)return t.getUnionType(Qo(l,m=>m.getReturnType()))}const s=t.getSignatureFromDeclaration(r);if(s)return t.getReturnTypeOfSignature(s)}var ale,rDe,Uj,iDe=G({"src/services/refactors/inferFunctionReturnType.ts"(){El(),MP(),ale="Infer function return type",rDe=fs(w.Infer_function_return_type),Uj={name:ale,description:rDe,kind:"refactor.rewrite.function.returnType"},SI(ale,{kinds:[Uj.kind],getEditsForAction:bq,getAvailableActions:Tq})}}),oDe={},Iut=G({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){iDe()}}),Eq={};Oe(Eq,{addExportToChanges:()=>w3e,addExports:()=>Lhe,addNewFileToTsconfig:()=>zce,addOrRemoveBracesToArrowFunction:()=>Y$e,convertArrowFunctionOrFunctionExpression:()=>Flt,convertParamsToDestructuredObject:()=>Q3e,convertStringOrTemplateLiteral:()=>rOe,convertToOptionalChainExpression:()=>pqe,createNewFileName:()=>R3e,createOldFileImportsFromTargetFile:()=>I3e,deleteMovedStatements:()=>Mhe,deleteUnusedImports:()=>Ohe,deleteUnusedOldImports:()=>C3e,doChangeNamedToNamespaceOrDefault:()=>M$e,extractSymbol:()=>zR,filterImport:()=>fB,forEachImportInStatement:()=>dee,generateGetAccessorAndSetAccessor:()=>gOe,getApplicableRefactors:()=>Mce,getEditsForRefactor:()=>Lce,getStatementsToMove:()=>qce,getTopLevelDeclarationStatement:()=>$ce,getUsageInfo:()=>Whe,inferFunctionReturnType:()=>oDe,isRefactorErrorInfo:()=>I2,isTopLevelDeclaration:()=>mee,makeImportOrRequire:()=>Uce,moduleSpecifierFromImport:()=>Vce,nameOfTopLevelDeclaration:()=>MCe,refactorKindBeginsWith:()=>Y3,registerRefactor:()=>SI,updateImportsInOtherFiles:()=>D3e});var MP=G({"src/services/_namespaces/ts.refactor.ts"(){ACe(),mlt(),L$e(),kCe(),blt(),Nhe(),z$e(),q$e(),Q$e(),nqe(),Ylt(),iOe(),aOe(),Cut(),hOe(),Iut()}});function Sqe(t,r,s,l){const m=vOe(t,r,s,l);ce.assert(m.spans.length%3===0);const y=m.spans,T=[];for(let D=0;D{m.push(T.getStart(r),T.getWidth(r),(D+1<<8)+I)},l),m}function Eqe(t,r,s,l,m){const y=t.getTypeChecker();let T=!1;function D(I){switch(I.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:m.throwIfCancellationRequested()}if(!I||!Yy(s,I.pos,I.getFullWidth())||I.getFullWidth()===0)return;const W=T;if((my(I)||TW(I))&&(T=!0),v6(I)&&(T=!1),An(I)&&!T&&!rye(I)&&!d3(I.escapedText)){let O=y.getSymbolAtLocation(I);if(O){O.flags&2097152&&(O=y.getAliasedSymbol(O));let V=Put(O,z3(I));if(V!==void 0){let ee=0;I.parent&&(ym(I.parent)||aDe.get(I.parent.kind)===V)&&I.parent.name===I&&(ee=1),V===6&&xqe(I)&&(V=9),V=Nut(y,I,V);const te=O.valueDeclaration;if(te){const oe=Gg(te),de=qD(te);oe&32&&(ee|=2),oe&512&&(ee|=4),V!==0&&V!==2&&(oe&64||de&2||O.getFlags()&8)&&(ee|=8),(V===7||V===10)&&tye(te,r)&&(ee|=32),t.isSourceFileDefaultLibrary(te.getSourceFile())&&(ee|=16)}else O.declarations&&O.declarations.some(oe=>t.isSourceFileDefaultLibrary(oe.getSourceFile()))&&(ee|=16);l(I,V,ee)}}}B_(I,D),T=W}D(r)}function Put(t,r){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(r&2)return 2}else if(s&262144)return 4;let l=t.valueDeclaration||t.declarations&&t.declarations[0];return l&&ym(l)&&(l=nye(l)),l&&aDe.get(l.kind)}function Nut(t,r,s){if(s===7||s===9||s===6){const l=t.getTypeAtLocation(r);if(l){const m=y=>y(l)||l.isUnion()&&l.types.some(y);if(s!==6&&m(y=>y.getConstructSignatures().length>0))return 0;if(m(y=>y.getCallSignatures().length>0)&&!m(y=>y.getProperties().length>0)||wut(r))return s===9?11:10}}return s}function tye(t,r){return ym(t)&&(t=nye(t)),ff(t)?(!tl(t.parent.parent.parent)||CP(t.parent))&&t.getSourceFile()===r:b0(t)?!tl(t.parent)&&t.getSourceFile()===r:!1}function nye(t){for(;;)if(ym(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function rye(t){const r=t.parent;return r&&(lC(r)||oS(r)||YL(r))}function wut(t){for(;xqe(t);)t=t.parent;return el(t.parent)&&t.parent.expression===t}function xqe(t){return nT(t.parent)&&t.parent.right===t||sa(t.parent)&&t.parent.name===t}var bOe,MF,EI,aDe,sDe=G({"src/services/classifier2020.ts"(){El(),bOe=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(bOe||{}),MF=(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))(MF||{}),EI=(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))(EI||{}),aDe=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 Aqe(t,r,s,l){const m=aR(t)?new uye(t,r,s):t===80?new xee(80,r,s):t===81?new dDe(81,r,s):new _ye(t,r,s);return m.parent=l,m.flags=l.flags&101441536,m}function Rut(t,r){if(!aR(t.kind))return Zn;const s=[];if(PN(t))return t.forEachChild(T=>{s.push(T)}),s;lT.setText((r||t.getSourceFile()).text);let l=t.pos;const m=T=>{iye(s,l,T.pos,t),s.push(T),l=T.end},y=T=>{iye(s,l,T.pos,t),s.push(Mut(T,t)),l=T.end};return Ot(t.jsDoc,m),l=t.pos,t.forEachChild(m,y),iye(s,l,t.end,t),lT.setText(void 0),s}function iye(t,r,s,l){for(lT.resetTokenState(r);rr.tagName.text==="inheritDoc"||r.tagName.text==="inheritdoc")}function oye(t,r){if(!t)return Zn;let s=VF.getJsDocTagsFromDeclarations(t,r);if(r&&(s.length===0||t.some(Cqe))){const l=new Set;for(const m of t){const y=Dqe(r,m,T=>{var D;if(!l.has(T))return l.add(T),m.kind===177||m.kind===178?T.getContextualJsDocTags(m,r):((D=T.declarations)==null?void 0:D.length)===1?T.getJsDocTags():void 0});y&&(s=[...y,...s])}}return s}function aye(t,r){if(!t)return Zn;let s=VF.getJsDocCommentsFromDeclarations(t,r);if(r&&(s.length===0||t.some(Cqe))){const l=new Set;for(const m of t){const y=Dqe(r,m,T=>{if(!l.has(T))return l.add(T),m.kind===177||m.kind===178?T.getContextualDocumentationComment(m,r):T.getDocumentationComment(r)});y&&(s=s.length===0?y.slice():y.concat(lS(),s))}}return s}function Dqe(t,r,s){var l;const m=((l=r.parent)==null?void 0:l.kind)===176?r.parent.parent:r.parent;if(!m)return;const y=Ny(r);return Yr(uG(m),T=>{const D=t.getTypeAtLocation(T),I=y&&D.symbol?t.getTypeOfSymbol(D.symbol):D,W=t.getPropertyOfType(I,r.symbol.name);return W?s(W):void 0})}function Iqe(){return{getNodeConstructor:()=>uye,getTokenConstructor:()=>_ye,getIdentifierConstructor:()=>xee,getPrivateIdentifierConstructor:()=>dDe,getSourceFileConstructor:()=>Nqe,getSymbolConstructor:()=>fye,getTypeConstructor:()=>Pqe,getSignatureConstructor:()=>Aee,getSourceMapSourceConstructor:()=>wqe}}function See(t){let r=!0;for(const l in t)if(ef(t,l)&&!cDe(l)){r=!1;break}if(r)return t;const s={};for(const l in t)if(ef(t,l)){const m=cDe(l)?l:l.charAt(0).toLowerCase()+l.substr(1);s[m]=t[l]}return s}function cDe(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function lDe(t){return t?Vn(t,r=>r.text).join(""):""}function sle(){return{target:1,jsx:1}}function TOe(){return If.getSupportedErrorCodes()}function SOe(t,r,s){t.version=s,t.scriptSnapshot=r}function uDe(t,r,s,l,m,y){const T=Ape(t,RZ(r),s,m,y);return SOe(T,r,l),T}function Eee(t,r,s,l,m){if(l&&s!==t.version){let T;const D=l.span.start!==0?t.text.substr(0,l.span.start):"",I=K1(l.span)!==t.text.length?t.text.substr(K1(l.span)):"";if(l.newLength===0)T=D&&I?D+I:D||I;else{const O=r.getText(l.span.start,l.span.start+l.newLength);T=D&&I?D+O+I:D?D+O:O+I}const W=XEe(t,T,l,m);return SOe(W,r,s),W.nameTable=void 0,t!==W&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),W}const y={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return uDe(t.fileName,r,y,s,!0,t.scriptKind)}function kqe(t,r=j8e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var l;let m;s===void 0?m=0:typeof s=="boolean"?m=s?2:0:m=s;const y=new _le(t);let T,D,I=0;const W=t.getCancellationToken?new pDe(t.getCancellationToken()):Rqe,O=t.getCurrentDirectory();LSe((l=t.getLocalizedDiagnosticMessages)==null?void 0:l.bind(t));function V(wt){t.log&&t.log(wt)}const ee=xH(t),te=_v(ee),oe=oCe({useCaseSensitiveFileNames:()=>ee,getCurrentDirectory:()=>O,getProgram:Ne,fileExists:wc(t,t.fileExists),readFile:wc(t,t.readFile),getDocumentPositionMapper:wc(t,t.getDocumentPositionMapper),getSourceFileLike:wc(t,t.getSourceFileLike),log:V});function de(wt){const $e=T.getSourceFile(wt);if(!$e){const Zt=new Error(`Could not find source file: '${wt}'.`);throw Zt.ProgramFiles=T.getSourceFiles().map(xe=>xe.fileName),Zt}return $e}function ue(){var wt,$e,Zt;if(ce.assert(m!==2),t.getProjectVersion){const c_=t.getProjectVersion();if(c_){if(D===c_&&!((wt=t.hasChangedAutomaticTypeDirectiveNames)!=null&&wt.call(t)))return;D=c_}}const xe=t.getTypeRootsVersion?t.getTypeRootsVersion():0;I!==xe&&(V("TypeRoots version has changed; provide new program"),T=void 0,I=xe);const an=t.getScriptFileNames().slice(),Un=t.getCompilationSettings()||sle(),rr=t.hasInvalidatedResolutions||bg,mi=wc(t,t.hasInvalidatedLibResolutions)||bg,Ji=wc(t,t.hasChangedAutomaticTypeDirectiveNames),zo=($e=t.getProjectReferences)==null?void 0:$e.call(t);let Ca,Qa={getSourceFile:Ma,getSourceFileByPath:U0,getCancellationToken:()=>W,getCanonicalFileName:te,useCaseSensitiveFileNames:()=>ee,getNewLine:()=>JE(Un),getDefaultLibFileName:c_=>t.getDefaultLibFileName(c_),writeFile:ku,getCurrentDirectory:()=>O,fileExists:c_=>t.fileExists(c_),readFile:c_=>t.readFile&&t.readFile(c_),getSymlinkCache:wc(t,t.getSymlinkCache),realpath:wc(t,t.realpath),directoryExists:c_=>O0(c_,t),getDirectories:c_=>t.getDirectories?t.getDirectories(c_):[],readDirectory:(c_,Kd,iy,Oh,jg)=>(ce.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(c_,Kd,iy,Oh,jg)),onReleaseOldSourceFile:q_,onReleaseParsedCommandLine:x_,hasInvalidatedResolutions:rr,hasInvalidatedLibResolutions:mi,hasChangedAutomaticTypeDirectiveNames:Ji,trace:wc(t,t.trace),resolveModuleNames:wc(t,t.resolveModuleNames),getModuleResolutionCache:wc(t,t.getModuleResolutionCache),createHash:wc(t,t.createHash),resolveTypeReferenceDirectives:wc(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wc(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wc(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:wc(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:wc(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ha};const Ks=Qa.getSourceFile,{getSourceFileWithCache:vs}=JQ(Qa,c_=>_h(c_,O,te),(...c_)=>Ks.call(Qa,...c_));Qa.getSourceFile=vs,(Zt=t.setCompilerHost)==null||Zt.call(t,Qa);const ou={useCaseSensitiveFileNames:ee,fileExists:c_=>Qa.fileExists(c_),readFile:c_=>Qa.readFile(c_),directoryExists:c_=>Qa.directoryExists(c_),getDirectories:c_=>Qa.getDirectories(c_),realpath:Qa.realpath,readDirectory:(...c_)=>Qa.readDirectory(...c_),trace:Qa.trace,getCurrentDirectory:Qa.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ku},qd=r.getKeyForCompilationSettings(Un);let z_=new Set;if(Qae(T,an,Un,(c_,Kd)=>t.getScriptVersion(Kd),c_=>Qa.fileExists(c_),rr,mi,Ji,Ha,zo)){Qa=void 0,Ca=void 0,z_=void 0;return}T=p4({rootNames:an,options:Un,host:Qa,oldProgram:T,projectReferences:zo}),Qa=void 0,Ca=void 0,z_=void 0,oe.clearCache(),T.getTypeChecker();return;function Ha(c_){const Kd=_h(c_,O,te),iy=Ca==null?void 0:Ca.get(Kd);if(iy!==void 0)return iy||void 0;const Oh=t.getParsedCommandLine?t.getParsedCommandLine(c_):mu(c_);return(Ca||(Ca=new Map)).set(Kd,Oh||!1),Oh}function mu(c_){const Kd=Ma(c_,100);if(Kd)return Kd.path=_h(c_,O,te),Kd.resolvedPath=Kd.path,Kd.originalFileName=Kd.fileName,Qoe(Kd,ou,Su(qc(c_),O),void 0,Su(c_,O))}function x_(c_,Kd,iy){var Oh;t.getParsedCommandLine?(Oh=t.onReleaseParsedCommandLine)==null||Oh.call(t,c_,Kd,iy):Kd&&q_(Kd.sourceFile,iy)}function q_(c_,Kd){const iy=r.getKeyForCompilationSettings(Kd);r.releaseDocumentWithKey(c_.resolvedPath,iy,c_.scriptKind,c_.impliedNodeFormat)}function Ma(c_,Kd,iy,Oh){return U0(c_,_h(c_,O,te),Kd,iy,Oh)}function U0(c_,Kd,iy,Oh,jg){ce.assert(Qa,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const zv=t.getScriptSnapshot(c_);if(!zv)return;const m_=M8e(c_,t),Yu=t.getScriptVersion(c_);if(!jg){const Tv=T&&T.getSourceFileByPath(Kd);if(Tv){if(m_===Tv.scriptKind||z_.has(Tv.resolvedPath))return r.updateDocumentWithKey(c_,Kd,t,qd,zv,Yu,m_,iy);r.releaseDocumentWithKey(Tv.resolvedPath,r.getKeyForCompilationSettings(T.getCompilerOptions()),Tv.scriptKind,Tv.impliedNodeFormat),z_.add(Tv.resolvedPath)}}return r.acquireDocumentWithKey(c_,Kd,t,qd,zv,Yu,m_,iy)}}function Ne(){if(m===2){ce.assert(T===void 0);return}return ue(),T}function Be(){var wt;return(wt=t.getPackageJsonAutoImportProvider)==null?void 0:wt.call(t)}function Ve(wt,$e){const Zt=T.getTypeChecker(),xe=an();if(!xe)return!1;for(const rr of wt)for(const mi of rr.references){const Ji=Un(mi);if(ce.assertIsDefined(Ji),$e.has(mi)||Wf.isDeclarationOfSymbol(Ji,xe)){$e.add(mi),mi.isDefinition=!0;const zo=nq(mi,oe,wc(t,t.fileExists));zo&&$e.add(zo)}else mi.isDefinition=!1}return!0;function an(){for(const rr of wt)for(const mi of rr.references){if($e.has(mi)){const zo=Un(mi);return ce.assertIsDefined(zo),Zt.getSymbolAtLocation(zo)}const Ji=nq(mi,oe,wc(t,t.fileExists));if(Ji&&$e.has(Ji)){const zo=Un(Ji);if(zo)return Zt.getSymbolAtLocation(zo)}}}function Un(rr){const mi=T.getSourceFile(rr.fileName);if(!mi)return;const Ji=Hx(mi,rr.textSpan.start);return Wf.Core.getAdjustedNode(Ji,{use:Wf.FindReferencesUse.References})}}function pt(){if(T){const wt=r.getKeyForCompilationSettings(T.getCompilerOptions());Ot(T.getSourceFiles(),$e=>r.releaseDocumentWithKey($e.resolvedPath,wt,$e.scriptKind,$e.impliedNodeFormat)),T=void 0}}function Le(){pt(),t=void 0}function ht(wt){return ue(),T.getSyntacticDiagnostics(de(wt),W).slice()}function ke(wt){ue();const $e=de(wt),Zt=T.getSemanticDiagnostics($e,W);if(!gv(T.getCompilerOptions()))return Zt.slice();const xe=T.getDeclarationDiagnostics($e,W);return[...Zt,...xe]}function _t(wt){return ue(),tee(de(wt),T,W)}function Dt(){return ue(),[...T.getOptionsDiagnostics(W),...T.getGlobalDiagnostics(W)]}function Ft(wt,$e,Zt=NA,xe){const an={...Zt,includeCompletionsForModuleExports:Zt.includeCompletionsForModuleExports||Zt.includeExternalModuleExports,includeCompletionsWithInsertText:Zt.includeCompletionsWithInsertText||Zt.includeInsertTextCompletions};return ue(),ow.getCompletionsAtPosition(t,T,V,de(wt),$e,an,Zt.triggerCharacter,Zt.triggerKind,W,xe&&Rb.getFormatContext(xe,t),Zt.includeSymbol)}function it(wt,$e,Zt,xe,an,Un=NA,rr){return ue(),ow.getCompletionEntryDetails(T,V,de(wt),$e,{name:Zt,source:an,data:rr},t,xe&&Rb.getFormatContext(xe,t),Un,W)}function Ye(wt,$e,Zt,xe,an=NA){return ue(),ow.getCompletionEntrySymbol(T,V,de(wt),$e,{name:Zt,source:xe},t,an)}function ut(wt,$e){ue();const Zt=de(wt),xe=Hx(Zt,$e);if(xe===Zt)return;const an=T.getTypeChecker(),Un=lt(xe),rr=lle(Un,an);if(!rr||an.isUnknownSymbol(rr)){const Qa=zt(Zt,Un,$e)?an.getTypeAtLocation(Un):void 0;return Qa&&{kind:"",kindModifiers:"",textSpan:gE(Un,Zt),displayParts:an.runWithCancellationToken(W,Ks=>GZ(Ks,Qa,j3(Un))),documentation:Qa.symbol?Qa.symbol.getDocumentationComment(an):void 0,tags:Qa.symbol?Qa.symbol.getJsDocTags(an):void 0}}const{symbolKind:mi,displayParts:Ji,documentation:zo,tags:Ca}=an.runWithCancellationToken(W,Qa=>D4.getSymbolDisplayPartsDocumentationAndSymbolKind(Qa,rr,Zt,j3(Un),Un));return{kind:mi,kindModifiers:D4.getSymbolModifiers(an,rr),textSpan:gE(Un,Zt),displayParts:Ji,documentation:zo,tags:Ca}}function lt(wt){return Ac(wt.parent)&&wt.pos===wt.parent.pos?wt.parent.expression:rS(wt.parent)&&wt.pos===wt.parent.pos||S9(wt.parent)&&wt.parent.name===wt||dI(wt.parent)?wt.parent:wt}function zt(wt,$e,Zt){switch($e.kind){case 80:return!Vse($e)&&!I8e($e)&&!CN($e.parent);case 211:case 166:return!LR(wt,Zt);case 110:case 197:case 108:case 202:return!0;case 236:return S9($e);default:return!1}}function Wt(wt,$e,Zt,xe){return ue(),C4.getDefinitionAtPosition(T,de(wt),$e,Zt,xe)}function tt(wt,$e){return ue(),C4.getDefinitionAndBoundSpan(T,de(wt),$e)}function Mn(wt,$e){return ue(),C4.getTypeDefinitionAtPosition(T.getTypeChecker(),de(wt),$e)}function kn(wt,$e){return ue(),Wf.getImplementationsAtPosition(T,W,T.getSourceFiles(),de(wt),$e)}function cr(wt,$e,Zt){const xe=Fd(wt);ce.assert(Zt.some(rr=>Fd(rr)===xe)),ue();const an=Qo(Zt,rr=>T.getSourceFile(rr)),Un=de(wt);return mhe.getDocumentHighlights(T,W,Un,$e,an)}function un(wt,$e,Zt,xe,an){ue();const Un=de(wt),rr=CAe(Hx(Un,$e));if(wke.nodeIsEligibleForRename(rr))if(An(rr)&&(rD(rr.parent)||Sk(rr.parent))&&z9(rr.escapedText)){const{openingElement:mi,closingElement:Ji}=rr.parent.parent;return[mi,Ji].map(zo=>{const Ca=gE(zo.tagName,Un);return{fileName:Un.fileName,textSpan:Ca,...Wf.toContextSpan(Ca,Un,zo.parent)}})}else{const mi=Jx(Un,an??NA),Ji=typeof an=="boolean"?an:an==null?void 0:an.providePrefixAndSuffixTextForRename;return pn(rr,$e,{findInStrings:Zt,findInComments:xe,providePrefixAndSuffixTextForRename:Ji,use:Wf.FindReferencesUse.Rename},(zo,Ca,Qa)=>Wf.toRenameLocation(zo,Ca,Qa,Ji||!1,mi))}}function on(wt,$e){return ue(),pn(Hx(de(wt),$e),$e,{use:Wf.FindReferencesUse.References},Wf.toReferenceEntry)}function pn(wt,$e,Zt,xe){ue();const an=Zt&&Zt.use===Wf.FindReferencesUse.Rename?T.getSourceFiles().filter(Un=>!T.isSourceFileDefaultLibrary(Un)):T.getSourceFiles();return Wf.findReferenceOrRenameEntries(T,W,an,wt,$e,Zt,xe)}function Or(wt,$e){return ue(),Wf.findReferencedSymbols(T,W,T.getSourceFiles(),de(wt),$e)}function Xr(wt){return ue(),Wf.Core.getReferencesForFileName(wt,T,T.getSourceFiles()).map(Wf.toReferenceEntry)}function Ut(wt,$e,Zt,xe=!1){ue();const an=Zt?[de(Zt)]:T.getSourceFiles();return y$e(an,T.getTypeChecker(),W,wt,$e,xe)}function In(wt,$e,Zt){ue();const xe=de(wt),an=t.getCustomTransformers&&t.getCustomTransformers();return gj(T,xe,!!$e,W,an,Zt)}function gr(wt,$e,{triggerReason:Zt}=NA){ue();const xe=de(wt);return b0e.getSignatureHelpItems(T,xe,$e,Zt,W)}function Cr(wt){return y.getCurrentSourceFile(wt)}function ei(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=Hx(xe,$e);if(an===xe)return;switch(an.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 Un=an;for(;;)if(G3(Un)||zJe(Un))Un=Un.parent;else if(Lge(Un))if(Un.parent.parent.kind===267&&Un.parent.parent.body===Un.parent)Un=Un.parent.parent.name;else break;else break;return R0(Un.getStart(),an.getEnd())}function Gn(wt,$e){const Zt=y.getCurrentSourceFile(wt);return Aq.spanInSourceFileAtLocation(Zt,$e)}function Ur(wt){return b$e(y.getCurrentSourceFile(wt),W)}function so(wt){return T$e(y.getCurrentSourceFile(wt),W)}function ho(wt,$e,Zt){return ue(),(Zt||"original")==="2020"?Sqe(T,W,de(wt),$e):B8e(T.getTypeChecker(),W,de(wt),T.getClassifiableNames(),$e)}function di(wt,$e,Zt){return ue(),(Zt||"original")==="original"?z8e(T.getTypeChecker(),W,de(wt),T.getClassifiableNames(),$e):vOe(T,W,de(wt),$e)}function Nc(wt,$e){return e$e(W,y.getCurrentSourceFile(wt),$e)}function ha(wt,$e){return G8e(W,y.getCurrentSourceFile(wt),$e)}function ro(wt){const $e=y.getCurrentSourceFile(wt);return D9e.collectElements($e,W)}const Gs=new Map(Object.entries({19:20,21:22,23:24,32:30}));Gs.forEach((wt,$e)=>Gs.set(wt.toString(),Number($e)));function Oc(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=qse(Zt,$e),an=xe.getStart(Zt)===$e?Gs.get(xe.kind.toString()):void 0,Un=an&&Wm(xe.parent,an,Zt);return Un?[gE(xe,Zt),gE(Un,Zt)].sort((rr,mi)=>rr.start-mi.start):Zn}function _u(wt,$e,Zt){let xe=cf();const an=See(Zt),Un=y.getCurrentSourceFile(wt);V("getIndentationAtPosition: getCurrentSourceFile: "+(cf()-xe)),xe=cf();const rr=Rb.SmartIndenter.getIndentation($e,Un,an);return V("getIndentationAtPosition: computeIndentation : "+(cf()-xe)),rr}function Ku(wt,$e,Zt,xe){const an=y.getCurrentSourceFile(wt);return Rb.formatSelection($e,Zt,an,Rb.getFormatContext(See(xe),t))}function al(wt,$e){return Rb.formatDocument(y.getCurrentSourceFile(wt),Rb.getFormatContext(See($e),t))}function Rr(wt,$e,Zt,xe){const an=y.getCurrentSourceFile(wt),Un=Rb.getFormatContext(See(xe),t);if(!LR(an,$e))switch(Zt){case"{":return Rb.formatOnOpeningCurly($e,an,Un);case"}":return Rb.formatOnClosingCurly($e,an,Un);case";":return Rb.formatOnSemicolon($e,an,Un);case` +`:return Rb.formatOnEnter($e,an,Un)}return[]}function mc(wt,$e,Zt,xe,an,Un=NA){ue();const rr=de(wt),mi=R0($e,Zt),Ji=Rb.getFormatContext(an,t);return ea(th(xe,_1,pf),zo=>(W.throwIfCancellationRequested(),If.getFixes({errorCode:zo,sourceFile:rr,span:mi,program:T,host:t,cancellationToken:W,formatContext:Ji,preferences:Un})))}function Ea(wt,$e,Zt,xe=NA){ue(),ce.assert(wt.type==="file");const an=de(wt.fileName),Un=Rb.getFormatContext(Zt,t);return If.getAllFixes({fixId:$e,sourceFile:an,program:T,host:t,cancellationToken:W,formatContext:Un,preferences:xe})}function Fi(wt,$e,Zt=NA){ue(),ce.assert(wt.type==="file");const xe=de(wt.fileName),an=Rb.getFormatContext($e,t),Un=wt.mode??(wt.skipDestructiveCodeActions?"SortAndCombine":"All");return CI.organizeImports(xe,an,t,T,Zt,Un)}function ta(wt,$e,Zt,xe=NA){return V8e(Ne(),wt,$e,t,Rb.getFormatContext(Zt,t),xe,oe)}function $a(wt,$e){const Zt=typeof wt=="string"?$e:wt;return ls(Zt)?Promise.all(Zt.map(xe=>jc(xe))):jc(Zt)}function jc(wt){const $e=Zt=>_h(Zt,O,te);return ce.assertEqual(wt.type,"install package"),t.installPackage?t.installPackage({fileName:$e(wt.file),packageName:wt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Xu(wt,$e,Zt,xe){const an=xe?Rb.getFormatContext(xe,t).options:void 0;return VF.getDocCommentTemplateAtPosition(NP(t,an),y.getCurrentSourceFile(wt),$e,Zt)}function Lo(wt,$e,Zt){if(Zt===60)return!1;const xe=y.getCurrentSourceFile(wt);if(MR(xe,$e))return!1;if(Lf(xe,$e))return Zt===123;if(Gge(xe,$e))return!1;switch(Zt){case 39:case 34:case 96:return!LR(xe,$e)}return!0}function To(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=T0($e,Zt);if(!xe)return;const an=xe.kind===32&&rD(xe.parent)?xe.parent.parent:S1(xe)&&my(xe.parent)?xe.parent:void 0;if(an&&Ir(an))return{newText:``};const Un=xe.kind===32&&zx(xe.parent)?xe.parent.parent:S1(xe)&&KE(xe.parent)?xe.parent:void 0;if(Un&&_o(Un))return{newText:""}}function Aa(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=T0($e,Zt);if(!xe||xe.parent.kind===312)return;const an="[a-zA-Z0-9:\\-\\._$]*";if(KE(xe.parent.parent)){const Un=xe.parent.parent.openingFragment,rr=xe.parent.parent.closingFragment;if(QU(Un)||QU(rr))return;const mi=Un.getStart(Zt)+1,Ji=rr.getStart(Zt)+2;return $e!==mi&&$e!==Ji?void 0:{ranges:[{start:mi,length:0},{start:Ji,length:0}],wordPattern:an}}else{const Un=Kr(xe.parent,vs=>!!(rD(vs)||Sk(vs)));if(!Un)return;ce.assert(rD(Un)||Sk(Un),"tag should be opening or closing element");const rr=Un.parent.openingElement,mi=Un.parent.closingElement,Ji=rr.tagName.getStart(Zt),zo=rr.tagName.end,Ca=mi.tagName.getStart(Zt),Qa=mi.tagName.end;return!(Ji<=$e&&$e<=zo||Ca<=$e&&$e<=Qa)||rr.tagName.getText(Zt)!==mi.tagName.getText(Zt)?void 0:{ranges:[{start:Ji,length:zo-Ji},{start:Ca,length:Qa-Ca}],wordPattern:an}}}function sl(wt,$e){return{lineStarts:wt.getLineStarts(),firstLine:wt.getLineAndCharacterOfPosition($e.pos).line,lastLine:wt.getLineAndCharacterOfPosition($e.end).line}}function vc(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=[],{lineStarts:Un,firstLine:rr,lastLine:mi}=sl(xe,$e);let Ji=Zt||!1,zo=Number.MAX_VALUE;const Ca=new Map,Qa=new RegExp(/\S/),Ks=N6(xe,Un[rr]),vs=Ks?"{/*":"//";for(let ou=rr;ou<=mi;ou++){const qd=xe.text.substring(Un[ou],xe.getLineEndOfPosition(Un[ou])),z_=Qa.exec(qd);z_&&(zo=Math.min(zo,z_.index),Ca.set(ou.toString(),z_.index),qd.substr(z_.index,vs.length)!==vs&&(Ji=Zt===void 0||Zt))}for(let ou=rr;ou<=mi;ou++){if(rr!==mi&&Un[ou]===$e.end)continue;const qd=Ca.get(ou.toString());qd!==void 0&&(Ks?an.push.apply(an,er(wt,{pos:Un[ou]+zo,end:xe.getLineEndOfPosition(Un[ou])},Ji,Ks)):Ji?an.push({newText:vs,span:{length:0,start:Un[ou]+zo}}):xe.text.substr(Un[ou]+qd,vs.length)===vs&&an.push({newText:"",span:{length:vs.length,start:Un[ou]+qd}}))}return an}function er(wt,$e,Zt,xe){var an;const Un=y.getCurrentSourceFile(wt),rr=[],{text:mi}=Un;let Ji=!1,zo=Zt||!1;const Ca=[];let{pos:Qa}=$e;const Ks=xe!==void 0?xe:N6(Un,Qa),vs=Ks?"{/*":"/*",ou=Ks?"*/}":"*/",qd=Ks?"\\{\\/\\*":"\\/\\*",z_=Ks?"\\*\\/\\}":"\\*\\/";for(;Qa<=$e.end;){const fp=mi.substr(Qa,vs.length)===vs?vs.length:0,Ha=LR(Un,Qa+fp);if(Ha)Ks&&(Ha.pos--,Ha.end++),Ca.push(Ha.pos),Ha.kind===3&&Ca.push(Ha.end),Ji=!0,Qa=Ha.end+1;else{const mu=mi.substring(Qa,$e.end).search(`(${qd})|(${z_})`);zo=Zt!==void 0?Zt:zo||!BZ(mi,Qa,mu===-1?$e.end:Qa+mu),Qa=mu===-1?$e.end+1:Qa+mu+ou.length}}if(zo||!Ji){((an=LR(Un,$e.pos))==null?void 0:an.kind)!==2&&d0(Ca,$e.pos,pf),d0(Ca,$e.end,pf);const fp=Ca[0];mi.substr(fp,vs.length)!==vs&&rr.push({newText:vs,span:{length:0,start:fp}});for(let Ha=1;Ha0?fp-ou.length:0,mu=mi.substr(Ha,ou.length)===ou?ou.length:0;rr.push({newText:"",span:{length:vs.length,start:fp-mu}})}return rr}function Jr(wt,$e){const Zt=y.getCurrentSourceFile(wt),{firstLine:xe,lastLine:an}=sl(Zt,$e);return xe===an&&$e.pos!==$e.end?er(wt,$e,!0):vc(wt,$e,!0)}function li(wt,$e){const Zt=y.getCurrentSourceFile(wt),xe=[],{pos:an}=$e;let{end:Un}=$e;an===Un&&(Un+=N6(Zt,an)?2:1);for(let rr=an;rr<=Un;rr++){const mi=LR(Zt,rr);if(mi){switch(mi.kind){case 2:xe.push.apply(xe,vc(wt,{end:mi.end,pos:mi.pos+1},!1));break;case 3:xe.push.apply(xe,er(wt,{end:mi.end,pos:mi.pos+1},!1))}rr=mi.end+1}}return xe}function Ir({openingElement:wt,closingElement:$e,parent:Zt}){return!E6(wt.tagName,$e.tagName)||my(Zt)&&E6(wt.tagName,Zt.openingElement.tagName)&&Ir(Zt)}function _o({closingFragment:wt,parent:$e}){return!!(wt.flags&262144)||KE($e)&&_o($e)}function xt(wt,$e,Zt){const xe=y.getCurrentSourceFile(wt),an=Rb.getRangeOfEnclosingComment(xe,$e);return an&&(!Zt||an.kind===3)?FR(an):void 0}function Kn(wt,$e){ue();const Zt=de(wt);W.throwIfCancellationRequested();const xe=Zt.text,an=[];if($e.length>0&&!Ji(Zt.fileName)){const zo=rr();let Ca;for(;Ca=zo.exec(xe);){W.throwIfCancellationRequested();const Qa=3;ce.assert(Ca.length===$e.length+Qa);const Ks=Ca[1],vs=Ca.index+Ks.length;if(!LR(Zt,vs))continue;let ou;for(let z_=0;z_<$e.length;z_++)Ca[z_+Qa]&&(ou=$e[z_]);if(ou===void 0)return ce.fail();if(mi(xe.charCodeAt(vs+ou.text.length)))continue;const qd=Ca[2];an.push({descriptor:ou,message:qd,position:vs})}}return an;function Un(zo){return zo.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function rr(){const zo=/(?:\/\/+\s*)/.source,Ca=/(?:\/\*+\s*)/.source,Ks="("+/(?:^(?:\s|\*)*)/.source+"|"+zo+"|"+Ca+")",vs="(?:"+Vn($e,Ha=>"("+Un(Ha.text)+")").join("|")+")",ou=/(?:$|\*\/)/.source,qd=/(?:.*?)/.source,z_="("+vs+qd+")",fp=Ks+z_+ou;return new RegExp(fp,"gim")}function mi(zo){return zo>=97&&zo<=122||zo>=65&&zo<=90||zo>=48&&zo<=57}function Ji(zo){return Ub(zo,"/node_modules/")}}function gn(wt,$e,Zt){return ue(),wke.getRenameInfo(T,de(wt),$e,Zt||{})}function qr(wt,$e,Zt,xe,an,Un){const[rr,mi]=typeof $e=="number"?[$e,void 0]:[$e.pos,$e.end];return{file:wt,startPosition:rr,endPosition:mi,program:Ne(),host:t,formatContext:Rb.getFormatContext(xe,t),cancellationToken:W,preferences:Zt,triggerReason:an,kind:Un}}function mt(wt,$e,Zt){return{file:wt,program:Ne(),host:t,span:$e,preferences:Zt,cancellationToken:W}}function _r(wt,$e){return L9e.getSmartSelectionRange($e,y.getCurrentSourceFile(wt))}function Cn(wt,$e,Zt=NA,xe,an,Un){ue();const rr=de(wt);return Eq.getApplicableRefactors(qr(rr,$e,Zt,NA,xe,an),Un)}function oi(wt,$e,Zt=NA){ue();const xe=de(wt),an=ce.checkDefined(T.getSourceFiles()),Un=SP(wt),rr=Qo(an,Ji=>!(T!=null&&T.isSourceFileFromExternalLibrary(xe))&&!(xe===de(Ji.fileName)||Un===".ts"&&SP(Ji.fileName)===".d.ts"||Un===".d.ts"&&xf(Iy(Ji.fileName),"lib.")&&SP(Ji.fileName)===".d.ts")&&Un===SP(Ji.fileName)?Ji.fileName:void 0);return{newFileName:R3e(xe,T,qr(xe,$e,Zt,NA),t),files:rr}}function Qr(wt,$e,Zt,xe,an,Un=NA,rr){ue();const mi=de(wt);return Eq.getEditsForRefactor(qr(mi,Zt,Un,$e),xe,an,rr)}function co(wt,$e){return $e===0?{line:0,character:0}:oe.toLineColumnOffset(wt,$e)}function es(wt,$e){ue();const Zt=Dq.resolveCallHierarchyDeclaration(T,Hx(de(wt),$e));return Zt&&ihe(Zt,xe=>Dq.createCallHierarchyItem(T,xe))}function Ui(wt,$e){ue();const Zt=de(wt),xe=Lj(Dq.resolveCallHierarchyDeclaration(T,$e===0?Zt:Hx(Zt,$e)));return xe?Dq.getIncomingCalls(T,xe,W):[]}function xu(wt,$e){ue();const Zt=de(wt),xe=Lj(Dq.resolveCallHierarchyDeclaration(T,$e===0?Zt:Hx(Zt,$e)));return xe?Dq.getOutgoingCalls(T,xe):[]}function We(wt,$e,Zt=NA){ue();const xe=de(wt);return m9e.provideInlayHints(mt(xe,$e,Zt))}const Re={dispose:Le,cleanupSemanticCache:pt,getSyntacticDiagnostics:ht,getSemanticDiagnostics:ke,getSuggestionDiagnostics:_t,getCompilerOptionsDiagnostics:Dt,getSyntacticClassifications:Nc,getSemanticClassifications:ho,getEncodedSyntacticClassifications:ha,getEncodedSemanticClassifications:di,getCompletionsAtPosition:Ft,getCompletionEntryDetails:it,getCompletionEntrySymbol:Ye,getSignatureHelpItems:gr,getQuickInfoAtPosition:ut,getDefinitionAtPosition:Wt,getDefinitionAndBoundSpan:tt,getImplementationAtPosition:kn,getTypeDefinitionAtPosition:Mn,getReferencesAtPosition:on,findReferences:Or,getFileReferences:Xr,getDocumentHighlights:cr,getNameOrDottedNameSpan:ei,getBreakpointStatementAtPosition:Gn,getNavigateToItems:Ut,getRenameInfo:gn,getSmartSelectionRange:_r,findRenameLocations:un,getNavigationBarItems:Ur,getNavigationTree:so,getOutliningSpans:ro,getTodoComments:Kn,getBraceMatchingAtPosition:Oc,getIndentationAtPosition:_u,getFormattingEditsForRange:Ku,getFormattingEditsForDocument:al,getFormattingEditsAfterKeystroke:Rr,getDocCommentTemplateAtPosition:Xu,isValidBraceCompletionAtPosition:Lo,getJsxClosingTagAtPosition:To,getLinkedEditingRangeAtPosition:Aa,getSpanOfEnclosingComment:xt,getCodeFixesAtPosition:mc,getCombinedCodeFix:Ea,applyCodeActionCommand:$a,organizeImports:Fi,getEditsForFileRename:ta,getEmitOutput:In,getNonBoundSourceFile:Cr,getProgram:Ne,getCurrentProgram:()=>T,getAutoImportProvider:Be,updateIsDefinitionOfReferencedSymbols:Ve,getApplicableRefactors:Cn,getEditsForRefactor:Qr,getMoveToRefactoringFileSuggestions:oi,toLineColumnOffset:co,getSourceMapper:()=>oe,clearSourceMapperCache:()=>oe.clearCache(),prepareCallHierarchy:es,provideCallHierarchyIncomingCalls:Ui,provideCallHierarchyOutgoingCalls:xu,toggleLineComment:vc,toggleMultilineComment:er,commentSelection:Jr,uncommentSelection:li,provideInlayHints:We,getSupportedCodeFixes:TOe};switch(m){case 0:break;case 1:dle.forEach(wt=>Re[wt]=()=>{throw new Error(`LanguageService Operation: ${wt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:pye.forEach(wt=>Re[wt]=()=>{throw new Error(`LanguageService Operation: ${wt} not allowed in LanguageServiceMode.Syntactic`)});break;default:ce.assertNever(m)}return Re}function fDe(t){return t.nameTable||_De(t),t.nameTable}function _De(t){const r=t.nameTable=new Map;t.forEachChild(function s(l){if(An(l)&&!I8e(l)&&l.escapedText||Qv(l)&&sye(l)){const m=gY(l);r.set(m,r.get(m)===void 0?l.pos:-1)}else if(Gu(l)){const m=l.escapedText;r.set(m,r.get(m)===void 0?l.pos:-1)}if(B_(l,s),g1(l))for(const m of l.jsDoc)B_(m,s)})}function sye(t){return vP(t)||t.parent.kind===283||ule(t)||K8(t)}function cle(t){const r=Lut(t);return r&&(Wd(r.parent)||iD(r.parent))?r:void 0}function Lut(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return Cm(t.parent.parent)?t.parent.parent:void 0;case 80:return Cm(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function lle(t,r){const s=cle(t);if(s){const l=r.getContextualType(s.parent),m=l&&cye(s,r,l,!1);if(m&&m.length===1)return Dl(m)}return r.getSymbolAtLocation(t)}function cye(t,r,s,l){const m=Cj(t.name);if(!m)return Zn;if(!s.isUnion()){const T=s.getProperty(m);return T?[T]:Zn}const y=Qo(s.types,T=>(Wd(t.parent)||iD(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(T,t.parent)?void 0:T.getProperty(m));if(l&&(y.length===0||y.length===s.types.length)){const T=s.getProperty(m);if(T)return[T]}return y.length===0?Qo(s.types,T=>T.getProperty(m)):y}function ule(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function lye(t){if(m0)return tf(qc(Fd(m0.getExecutingFilePath())),qre(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var fle,uye,xq,fye,_ye,xee,dDe,Pqe,Aee,Nqe,wqe,_le,Rqe,pDe,dye,dle,pye,Mqe=G({"src/services/services.ts"(){El(),c3e(),Ihe(),MP(),JAe(),sDe(),fle="0.8",uye=class{constructor(t,r,s){this.pos=r,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){ce.assert(!ab(this.pos)&&!ab(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return ns(this)}getStart(t,r){return this.assertHasRealPosition(),Kz(this,t,r)}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,r){return this.getChildren(r)[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=Rut(this,t))}getFirstToken(t){this.assertHasRealPosition();const r=this.getChildren(t);if(!r.length)return;const s=lr(r,l=>l.kind<316||l.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const r=this.getChildren(t),s=Yf(r);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,r){return B_(this,t,r)}},xq=class{constructor(t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return ns(this)}getStart(t,r){return Kz(this,t,r)}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||Zn}getFirstToken(){}getLastToken(){}forEachChild(){}},fye=class{constructor(t,r){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=r}getFlags(){return this.flags}get name(){return mp(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=Zn,!this.declarations&&uk(this)&&this.links.target&&uk(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const r=this.links.target.links.tupleLabelDeclaration;this.documentationComment=aye([r],t)}else this.documentationComment=aye(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,r){if(t){if(J2(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=aye(gi(this.declarations,J2),r)),Nt(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(_P(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=aye(gi(this.declarations,_P),r)),Nt(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(r)}getJsDocTags(t){return this.tags===void 0&&(this.tags=oye(this.declarations,t)),this.tags}getContextualJsDocTags(t,r){if(t){if(J2(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=oye(gi(this.declarations,J2),r)),Nt(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(_P(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=oye(gi(this.declarations,_P),r)),Nt(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(r)}},_ye=class extends xq{constructor(t,r,s){super(r,s),this.kind=t}},xee=class extends xq{constructor(t,r,s){super(r,s),this.kind=80}get text(){return ec(this)}},xee.prototype.kind=80,dDe=class extends xq{constructor(t,r,s){super(r,s),this.kind=81}get text(){return ec(this)}},dDe.prototype.kind=81,Pqe=class{constructor(t,r){this.checker=t,this.flags=r}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!!(ji(this)&3)}isClass(){return!!(ji(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ji(this)&4)return this.checker.getTypeArguments(this)}},Aee=class{constructor(t,r){this.checker=t,this.flags=r}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const r=this.checker.getParameterType(this,t);if(r.isIndexType()&&p3(r.type)){const s=r.type.getConstraint();if(s)return this.checker.getIndexType(s)}return r}getDocumentationComment(){return this.documentationComment||(this.documentationComment=aye(zD(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=oye(zD(this.declaration),this.checker))}},Nqe=class extends uye{constructor(t,r,s){super(t,r,s),this.kind=312}update(t,r){return XEe(this,t,r)}getLineAndCharacterOfPosition(t){return Ah(this,t)}getLineStarts(){return q1(this)}getPositionOfLineAndCharacter(t,r,s){return cP(q1(this),t,r,this.text,s)}getLineEndOfPosition(t){const{line:r}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let l;r+1>=s.length&&(l=this.getEnd()),l||(l=s[r+1]-1);const m=this.getFullText();return m[l]===` +`&&m[l-1]==="\r"?l-1:l}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=zg();return this.forEachChild(m),t;function r(y){const T=l(y);T&&t.add(T,y)}function s(y){let T=t.get(y);return T||t.set(y,T=[]),T}function l(y){const T=X_e(y);return T&&(am(T)&&sa(T.expression)?T.expression.name.text:fy(T)?Cj(T):void 0)}function m(y){switch(y.kind){case 262:case 218:case 174:case 173:const T=y,D=l(T);if(D){const O=s(D),V=Yf(O);V&&T.parent===V.parent&&T.symbol===V.symbol?T.body&&!V.body&&(O[O.length-1]=T):O.push(T)}B_(y,m);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:r(y),B_(y,m);break;case 169:if(!il(y,16476))break;case 260:case 208:{const O=y;if(ld(O.name)){B_(O.name,m);break}O.initializer&&m(O.initializer)}case 306:case 172:case 171:r(y);break;case 278:const I=y;I.exportClause&&(G0(I.exportClause)?Ot(I.exportClause.elements,m):m(I.exportClause.name));break;case 272:const W=y.importClause;W&&(W.name&&r(W.name),W.namedBindings&&(W.namedBindings.kind===274?r(W.namedBindings):Ot(W.namedBindings.elements,m)));break;case 226:Qy(y)!==0&&r(y);default:B_(y,m)}}}},wqe=class{constructor(t,r,s){this.fileName=t,this.text=r,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return Ah(this,t)}},_le=class{constructor(t){this.host=t}getCurrentSourceFile(t){var r,s,l,m,y,T,D,I;const W=this.host.getScriptSnapshot(t);if(!W)throw new Error("Could not find file: '"+t+"'.");const O=M8e(t,this.host),V=this.host.getScriptVersion(t);let ee;if(this.currentFileName!==t){const te={languageVersion:99,impliedNodeFormat:ew(_h(t,this.host.getCurrentDirectory(),((l=(s=(r=this.host).getCompilerHost)==null?void 0:s.call(r))==null?void 0:l.getCanonicalFileName)||hR(this.host)),(I=(D=(T=(y=(m=this.host).getCompilerHost)==null?void 0:y.call(m))==null?void 0:T.getModuleResolutionCache)==null?void 0:D.call(T))==null?void 0:I.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:q9(this.host.getCompilationSettings())};ee=uDe(t,W,te,V,!0,O)}else if(this.currentFileVersion!==V){const te=W.getChangeRange(this.currentFileScriptSnapshot);ee=Eee(this.currentSourceFile,W,V,te)}return ee&&(this.currentFileVersion=V,this.currentFileName=t,this.currentFileScriptSnapshot=W,this.currentSourceFile=ee),this.currentSourceFile}},Rqe={isCancellationRequested:bg,throwIfCancellationRequested:ku},pDe=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=tu)==null||t.instant(tu.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Pz}},dye=class{constructor(t,r=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=r,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=cf();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=tu)==null||t.instant(tu.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Pz}},dle=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],pye=[...dle,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],RSe(Iqe())}});function EOe(t,r,s){const l=[];s=_Ce(s,l);const m=ls(t)?t:[t],y=zae(void 0,void 0,be,s,m,r,!0);return y.diagnostics=Hi(y.diagnostics,l),y}var mDe=G({"src/services/transform.ts"(){El()}});function Cee(t,r){t&&t.log("*INTERNAL ERROR* - Exception in typescript services: "+r.message)}function Lqe(t,r,s,l){let m;l&&(t.log(r),m=cf());const y=s();if(l){const T=cf();if(t.log(`${r} completed in ${T-m} msec`),As(y)){let D=y;D.length>128&&(D=D.substring(0,128)+"..."),t.log(` result.length=${D.length}, result='${JSON.stringify(D)}'`)}}return y}function gDe(t,r,s,l){return xOe(t,r,!0,s,l)}function xOe(t,r,s,l,m){try{const y=Lqe(t,r,l,m);return s?JSON.stringify({result:y}):y}catch(y){return y instanceof Pz?JSON.stringify({canceled:!0}):(Cee(t,y),y.description=r,JSON.stringify({error:y}))}}function hDe(t,r){return t.map(s=>Oqe(s,r))}function Oqe(t,r){return{message:d4(t.messageText,r),start:t.start,length:t.length,category:fX(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function yDe(t){return{spans:t.spans.join(","),endOfLineState:t.endOfLineState}}var mye,gye,hye,vDe,bDe,AOe,Fqe,Wqe,Bqe,TDe=G({"src/services/shims.ts"(){El(),mye=function(){return this}(),gye=class{constructor(t){this.scriptSnapshotShim=t}getText(t,r){return this.scriptSnapshotShim.getText(t,r)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(t){const r=t,s=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(s===null)return null;const l=JSON.parse(s);return BX(nb(l.span.start,l.span.length),l.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},hye=class{constructor(t){this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(r,s)=>{const l=JSON.parse(this.shimHost.getModuleResolutionsForFile(s));return Vn(r,m=>{const y=T8(l,m);return y?{resolvedFileName:y,extension:SP(y),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=r=>this.shimHost.directoryExists(r)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(r,s)=>{const l=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(s));return Vn(r,m=>T8(l,As(m)?m:Q0(m.fileName)))})}log(t){this.loggingEnabled&&this.shimHost.log(t)}trace(t){this.tracingEnabled&&this.shimHost.trace(t)}error(t){this.shimHost.error(t)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const t=this.shimHost.getCompilationSettings();if(t===null||t==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const r=JSON.parse(t);return r.allowNonTsExtensions=!0,r}getScriptFileNames(){const t=this.shimHost.getScriptFileNames();return JSON.parse(t)}getScriptSnapshot(t){const r=this.shimHost.getScriptSnapshot(t);return r&&new gye(r)}getScriptKind(t){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(t):0}getScriptVersion(t){return this.shimHost.getScriptVersion(t)}getLocalizedDiagnosticMessages(){const t=this.shimHost.getLocalizedDiagnosticMessages();if(t===null||t==="")return null;try{return JSON.parse(t)}catch(r){return this.log(r.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const t=this.shimHost.getCancellationToken();return new dye(t)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(t){return JSON.parse(this.shimHost.getDirectories(t))}getDefaultLibFileName(t){return this.shimHost.getDefaultLibFileName(JSON.stringify(t))}readDirectory(t,r,s,l,m){const y=Y9(t,s,l,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(y.basePaths),y.excludePattern,y.includeFilePattern,y.includeDirectoryPattern,m))}readFile(t,r){return this.shimHost.readFile(t,r)}fileExists(t){return this.shimHost.fileExists(t)}},vDe=class{constructor(t){this.shimHost=t,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=r=>this.shimHost.directoryExists(r):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=r=>this.shimHost.realpath(r):this.realpath=void 0}readDirectory(t,r,s,l,m){const y=Y9(t,s,l,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(y.basePaths),y.excludePattern,y.includeFilePattern,y.includeDirectoryPattern,m))}fileExists(t){return this.shimHost.fileExists(t)}readFile(t){return this.shimHost.readFile(t)}getDirectories(t){return JSON.parse(this.shimHost.getDirectories(t))}},bDe=class{constructor(t){this.factory=t,t.registerShim(this)}dispose(t){this.factory.unregisterShim(this)}},AOe=class extends bDe{constructor(t,r,s){super(t),this.host=r,this.languageService=s,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(t,r){return gDe(this.logger,t,r,this.logPerformance)}dispose(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,mye&&mye.CollectGarbage&&(mye.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(t)}refresh(t){this.forwardJSONCall(`refresh(${t})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(t){const r=NP(this.host,void 0);return hDe(t,r)}getSyntacticClassifications(t,r,s){return this.forwardJSONCall(`getSyntacticClassifications('${t}', ${r}, ${s})`,()=>this.languageService.getSyntacticClassifications(t,nb(r,s)))}getSemanticClassifications(t,r,s){return this.forwardJSONCall(`getSemanticClassifications('${t}', ${r}, ${s})`,()=>this.languageService.getSemanticClassifications(t,nb(r,s)))}getEncodedSyntacticClassifications(t,r,s){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${t}', ${r}, ${s})`,()=>yDe(this.languageService.getEncodedSyntacticClassifications(t,nb(r,s))))}getEncodedSemanticClassifications(t,r,s){return this.forwardJSONCall(`getEncodedSemanticClassifications('${t}', ${r}, ${s})`,()=>yDe(this.languageService.getEncodedSemanticClassifications(t,nb(r,s))))}getSyntacticDiagnostics(t){return this.forwardJSONCall(`getSyntacticDiagnostics('${t}')`,()=>{const r=this.languageService.getSyntacticDiagnostics(t);return this.realizeDiagnostics(r)})}getSemanticDiagnostics(t){return this.forwardJSONCall(`getSemanticDiagnostics('${t}')`,()=>{const r=this.languageService.getSemanticDiagnostics(t);return this.realizeDiagnostics(r)})}getSuggestionDiagnostics(t){return this.forwardJSONCall(`getSuggestionDiagnostics('${t}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(t)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const t=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(t)})}getQuickInfoAtPosition(t,r){return this.forwardJSONCall(`getQuickInfoAtPosition('${t}', ${r})`,()=>this.languageService.getQuickInfoAtPosition(t,r))}getNameOrDottedNameSpan(t,r,s){return this.forwardJSONCall(`getNameOrDottedNameSpan('${t}', ${r}, ${s})`,()=>this.languageService.getNameOrDottedNameSpan(t,r,s))}getBreakpointStatementAtPosition(t,r){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${t}', ${r})`,()=>this.languageService.getBreakpointStatementAtPosition(t,r))}getSignatureHelpItems(t,r,s){return this.forwardJSONCall(`getSignatureHelpItems('${t}', ${r})`,()=>this.languageService.getSignatureHelpItems(t,r,s))}getDefinitionAtPosition(t,r){return this.forwardJSONCall(`getDefinitionAtPosition('${t}', ${r})`,()=>this.languageService.getDefinitionAtPosition(t,r))}getDefinitionAndBoundSpan(t,r){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${t}', ${r})`,()=>this.languageService.getDefinitionAndBoundSpan(t,r))}getTypeDefinitionAtPosition(t,r){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${t}', ${r})`,()=>this.languageService.getTypeDefinitionAtPosition(t,r))}getImplementationAtPosition(t,r){return this.forwardJSONCall(`getImplementationAtPosition('${t}', ${r})`,()=>this.languageService.getImplementationAtPosition(t,r))}getRenameInfo(t,r,s){return this.forwardJSONCall(`getRenameInfo('${t}', ${r})`,()=>this.languageService.getRenameInfo(t,r,s))}getSmartSelectionRange(t,r){return this.forwardJSONCall(`getSmartSelectionRange('${t}', ${r})`,()=>this.languageService.getSmartSelectionRange(t,r))}findRenameLocations(t,r,s,l,m){return this.forwardJSONCall(`findRenameLocations('${t}', ${r}, ${s}, ${l})`,()=>this.languageService.findRenameLocations(t,r,s,l,m))}getBraceMatchingAtPosition(t,r){return this.forwardJSONCall(`getBraceMatchingAtPosition('${t}', ${r})`,()=>this.languageService.getBraceMatchingAtPosition(t,r))}isValidBraceCompletionAtPosition(t,r,s){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${t}', ${r}, ${s})`,()=>this.languageService.isValidBraceCompletionAtPosition(t,r,s))}getSpanOfEnclosingComment(t,r,s){return this.forwardJSONCall(`getSpanOfEnclosingComment('${t}', ${r})`,()=>this.languageService.getSpanOfEnclosingComment(t,r,s))}getIndentationAtPosition(t,r,s){return this.forwardJSONCall(`getIndentationAtPosition('${t}', ${r})`,()=>{const l=JSON.parse(s);return this.languageService.getIndentationAtPosition(t,r,l)})}getReferencesAtPosition(t,r){return this.forwardJSONCall(`getReferencesAtPosition('${t}', ${r})`,()=>this.languageService.getReferencesAtPosition(t,r))}findReferences(t,r){return this.forwardJSONCall(`findReferences('${t}', ${r})`,()=>this.languageService.findReferences(t,r))}getFileReferences(t){return this.forwardJSONCall(`getFileReferences('${t})`,()=>this.languageService.getFileReferences(t))}getDocumentHighlights(t,r,s){return this.forwardJSONCall(`getDocumentHighlights('${t}', ${r})`,()=>{const l=this.languageService.getDocumentHighlights(t,r,JSON.parse(s)),m=Q0(hf(t));return gi(l,y=>Q0(hf(y.fileName))===m)})}getCompletionsAtPosition(t,r,s,l){return this.forwardJSONCall(`getCompletionsAtPosition('${t}', ${r}, ${s}, ${l})`,()=>this.languageService.getCompletionsAtPosition(t,r,s,l))}getCompletionEntryDetails(t,r,s,l,m,y,T){return this.forwardJSONCall(`getCompletionEntryDetails('${t}', ${r}, '${s}')`,()=>{const D=l===void 0?void 0:JSON.parse(l);return this.languageService.getCompletionEntryDetails(t,r,s,D,m,y,T)})}getFormattingEditsForRange(t,r,s,l){return this.forwardJSONCall(`getFormattingEditsForRange('${t}', ${r}, ${s})`,()=>{const m=JSON.parse(l);return this.languageService.getFormattingEditsForRange(t,r,s,m)})}getFormattingEditsForDocument(t,r){return this.forwardJSONCall(`getFormattingEditsForDocument('${t}')`,()=>{const s=JSON.parse(r);return this.languageService.getFormattingEditsForDocument(t,s)})}getFormattingEditsAfterKeystroke(t,r,s,l){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${t}', ${r}, '${s}')`,()=>{const m=JSON.parse(l);return this.languageService.getFormattingEditsAfterKeystroke(t,r,s,m)})}getDocCommentTemplateAtPosition(t,r,s,l){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${t}', ${r})`,()=>this.languageService.getDocCommentTemplateAtPosition(t,r,s,l))}getNavigateToItems(t,r,s){return this.forwardJSONCall(`getNavigateToItems('${t}', ${r}, ${s})`,()=>this.languageService.getNavigateToItems(t,r,s))}getNavigationBarItems(t){return this.forwardJSONCall(`getNavigationBarItems('${t}')`,()=>this.languageService.getNavigationBarItems(t))}getNavigationTree(t){return this.forwardJSONCall(`getNavigationTree('${t}')`,()=>this.languageService.getNavigationTree(t))}getOutliningSpans(t){return this.forwardJSONCall(`getOutliningSpans('${t}')`,()=>this.languageService.getOutliningSpans(t))}getTodoComments(t,r){return this.forwardJSONCall(`getTodoComments('${t}')`,()=>this.languageService.getTodoComments(t,JSON.parse(r)))}prepareCallHierarchy(t,r){return this.forwardJSONCall(`prepareCallHierarchy('${t}', ${r})`,()=>this.languageService.prepareCallHierarchy(t,r))}provideCallHierarchyIncomingCalls(t,r){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${t}', ${r})`,()=>this.languageService.provideCallHierarchyIncomingCalls(t,r))}provideCallHierarchyOutgoingCalls(t,r){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${t}', ${r})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(t,r))}provideInlayHints(t,r,s){return this.forwardJSONCall(`provideInlayHints('${t}', '${JSON.stringify(r)}', ${JSON.stringify(s)})`,()=>this.languageService.provideInlayHints(t,r,s))}getEmitOutput(t){return this.forwardJSONCall(`getEmitOutput('${t}')`,()=>{const{diagnostics:r,...s}=this.languageService.getEmitOutput(t);return{...s,diagnostics:this.realizeDiagnostics(r)}})}getEmitOutputObject(t){return xOe(this.logger,`getEmitOutput('${t}')`,!1,()=>this.languageService.getEmitOutput(t),this.logPerformance)}toggleLineComment(t,r){return this.forwardJSONCall(`toggleLineComment('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.toggleLineComment(t,r))}toggleMultilineComment(t,r){return this.forwardJSONCall(`toggleMultilineComment('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.toggleMultilineComment(t,r))}commentSelection(t,r){return this.forwardJSONCall(`commentSelection('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.commentSelection(t,r))}uncommentSelection(t,r){return this.forwardJSONCall(`uncommentSelection('${t}', '${JSON.stringify(r)}')`,()=>this.languageService.uncommentSelection(t,r))}},Fqe=class extends bDe{constructor(t,r){super(t),this.logger=r,this.logPerformance=!1,this.classifier=W8e()}getEncodedLexicalClassifications(t,r,s=!1){return gDe(this.logger,"getEncodedLexicalClassifications",()=>yDe(this.classifier.getEncodedLexicalClassifications(t,r,s)),this.logPerformance)}getClassificationsForLine(t,r,s=!1){const l=this.classifier.getClassificationsForLine(t,r,s);let m="";for(const y of l.entries)m+=y.length+` `,m+=y.classification+` -`;return m+=l.finalLexState,m}},Wqe=class extends bDe{constructor(t,r,s){super(t),this.logger=r,this.host=s,this.logPerformance=!1}forwardJSONCall(t,r){return gDe(this.logger,t,r,this.logPerformance)}resolveModuleName(t,r,s){return this.forwardJSONCall(`resolveModuleName('${t}')`,()=>{const l=JSON.parse(s),m=s4(r,hf(t),l,this.host);let y=m.resolvedModule?m.resolvedModule.resolvedFileName:void 0;return m.resolvedModule&&m.resolvedModule.extension!==".ts"&&m.resolvedModule.extension!==".tsx"&&m.resolvedModule.extension!==".d.ts"&&(y=void 0),{resolvedFileName:y,failedLookupLocations:m.failedLookupLocations,affectingLocations:m.affectingLocations}})}resolveTypeReferenceDirective(t,r,s){return this.forwardJSONCall(`resolveTypeReferenceDirective(${t})`,()=>{const l=JSON.parse(s),m=vQ(r,hf(t),l,this.host);return{resolvedFileName:m.resolvedTypeReferenceDirective?m.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:m.resolvedTypeReferenceDirective?m.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:m.failedLookupLocations}})}getPreProcessedFileInfo(t,r){return this.forwardJSONCall(`getPreProcessedFileInfo('${t}')`,()=>{const s=iCe(RZ(r),!0,!0);return{referencedFiles:this.convertFileReferences(s.referencedFiles),importedFiles:this.convertFileReferences(s.importedFiles),ambientExternalModules:s.ambientExternalModules,isLibFile:s.isLibFile,typeReferenceDirectives:this.convertFileReferences(s.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(s.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(t){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${t}')`,()=>{const r=JSON.parse(t);return qpe(r,this.host)})}convertFileReferences(t){if(!t)return;const r=[];for(const s of t)r.push({path:hf(s.fileName),position:s.pos,length:s.end-s.pos});return r}getTSConfigFileInfo(t,r){return this.forwardJSONCall(`getTSConfigFileInfo('${t}')`,()=>{const s=cF(t,RZ(r)),l=hf(t),m=Qoe(s,this.host,qc(l),{},l);return{options:m.options,typeAcquisition:m.typeAcquisition,files:m.fileNames,raw:m.raw,errors:hDe([...s.parseDiagnostics,...m.errors],`\r -`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>sle())}discoverTypings(t){const r=_v(!1);return this.forwardJSONCall("discoverTypings()",()=>{const s=JSON.parse(t);return this.safeList===void 0&&(this.safeList=EF.loadSafeList(this.host,_h(s.safeListPath,s.safeListPath,r))),EF.discoverTypings(this.host,l=>this.logger.log(l),s.fileNames,_h(s.projectRootPath,s.projectRootPath,r),this.safeList,s.packageNameToTypingLocation,s.typeAcquisition,s.unresolvedImports,s.typesRegistry,NA)})}},Bqe=class{constructor(){this._shims=[]}getServicesVersion(){return fle}createLanguageServiceShim(t){try{this.documentRegistry===void 0&&(this.documentRegistry=j8e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));const r=new hye(t),s=kqe(r,this.documentRegistry,!1);return new AOe(this,t,s)}catch(r){throw Cee(t,r),r}}createClassifierShim(t){try{return new Fqe(this,t)}catch(r){throw Cee(t,r),r}}createCoreServicesShim(t){try{const r=new vDe(t);return new Wqe(this,t,r)}catch(r){throw Cee(t,r),r}}close(){g_(this._shims),this.documentRegistry=void 0}registerShim(t){this._shims.push(t)}unregisterShim(t){for(let r=0;rl){const V=T0(s.pos,t);if(!V||t.getLineAndCharacterOfPosition(V.getEnd()).line!==l)return;s=V}if(s.flags&33554432)return;return O(s);function m(V,ee){const te=I3(V)?ra(V.modifiers,Qf):void 0,oe=te?ep(t.text,te.end):V.getStart(t);return R0(oe,(ee||V).getEnd())}function y(V,ee){return m(V,Cj(ee,ee.parent,t))}function T(V,ee){return V&&l===t.getLineAndCharacterOfPosition(V.getStart(t)).line?O(V):O(ee)}function D(V,ee,te){if(V){const oe=V.indexOf(ee);if(oe>=0){let de=oe,ue=oe+1;for(;de>0&&te(V[de-1]);)de--;for(;ue0)return O(Mn.declarations[0])}else return O(tt.initializer)}function Le(tt){if(tt.initializer)return pt(tt);if(tt.condition)return m(tt.condition);if(tt.incrementor)return m(tt.incrementor)}function ht(tt){const Mn=Ot(tt.elements,kn=>kn.kind!==232?kn:void 0);return Mn?O(Mn):tt.parent.kind===208?m(tt.parent):ee(tt.parent)}function ke(tt){ce.assert(tt.kind!==207&&tt.kind!==206);const Mn=tt.kind===209?tt.elements:tt.properties,kn=Ot(Mn,cr=>cr.kind!==232?cr:void 0);return kn?O(kn):m(tt.parent.kind===226?tt.parent:tt)}function _t(tt){switch(tt.parent.kind){case 266:const Mn=tt.parent;return T(T0(tt.pos,t,tt.parent),Mn.members.length?Mn.members[0]:Mn.getLastToken(t));case 263:const kn=tt.parent;return T(T0(tt.pos,t,tt.parent),kn.members.length?kn.members[0]:kn.getLastToken(t));case 269:return T(tt.parent.parent,tt.parent.clauses[0])}return O(tt.parent)}function Dt(tt){switch(tt.parent.kind){case 268:if(kR(tt.parent.parent)!==1)return;case 266:case 263:return m(tt);case 241:if(JM(tt.parent))return m(tt);case 299:return O(Yf(tt.parent.statements));case 269:const Mn=tt.parent,kn=Yf(Mn.clauses);return kn?O(Yf(kn.statements)):void 0;case 206:const cr=tt.parent;return O(Yf(cr.elements)||cr);default:if(OR(tt.parent)){const un=tt.parent;return m(Yf(un.properties)||un)}return O(tt.parent)}}function Ft(tt){switch(tt.parent.kind){case 207:const Mn=tt.parent;return m(Yf(Mn.elements)||Mn);default:if(OR(tt.parent)){const kn=tt.parent;return m(Yf(kn.elements)||kn)}return O(tt.parent)}}function it(tt){return tt.parent.kind===246||tt.parent.kind===213||tt.parent.kind===214?I(tt):tt.parent.kind===217?W(tt):O(tt.parent)}function Ye(tt){switch(tt.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 I(tt);default:return O(tt.parent)}}function ut(tt){return S_(tt.parent)||tt.parent.kind===303||tt.parent.kind===169?I(tt):O(tt.parent)}function lt(tt){return tt.parent.kind===216?W(tt):O(tt.parent)}function zt(tt){return tt.parent.kind===246?y(tt,tt.parent.expression):O(tt.parent)}function Wt(tt){return tt.parent.kind===250?W(tt):O(tt.parent)}}}var Fut=G({"src/services/breakpoints.ts"(){El()}}),Aq={};Oe(Aq,{spanInSourceFileAtLocation:()=>Out});var zqe=G({"src/services/_namespaces/ts.BreakpointResolver.ts"(){Fut()}});function Cq(t){return(Dm(t)||B0(t))&&Xv(t)}function Dee(t){return(Dm(t)||ph(t)||B0(t))&&ff(t.parent)&&t===t.parent.initializer&&An(t.parent.name)&&!!(qD(t.parent)&2)}function COe(t){return tl(t)||xp(t)||b0(t)||Dm(t)||Kc(t)||B0(t)||nu(t)||em(t)||Jh(t)||tm(t)||Ep(t)}function Jj(t){return tl(t)||xp(t)&&An(t.name)||b0(t)||Kc(t)||nu(t)||em(t)||Jh(t)||tm(t)||Ep(t)||Cq(t)||Dee(t)}function Gqe(t){return tl(t)?t:Xv(t)?t.name:Dee(t)?t.parent.name:ce.checkDefined(t.modifiers&&lr(t.modifiers,jqe))}function jqe(t){return t.kind===90}function DOe(t,r){const s=Gqe(r);return s&&t.getSymbolAtLocation(s)}function Vqe(t,r){if(tl(r))return{text:r.fileName,pos:0,end:0};if((b0(r)||Kc(r))&&!Xv(r)){const m=r.modifiers&&lr(r.modifiers,jqe);if(m)return{text:"default",pos:m.getStart(),end:m.getEnd()}}if(nu(r)){const m=r.getSourceFile(),y=ep(m.text,Db(r).pos),T=y+6,D=t.getTypeChecker(),I=D.getSymbolAtLocation(r.parent);return{text:`${I?`${D.symbolToString(I,r.parent)} `:""}static {}`,pos:y,end:T}}const s=Dee(r)?r.parent.name:ce.checkDefined(o_(r),"Expected call hierarchy item to have a name");let l=An(s)?ec(s):Qv(s)?s.text:am(s)&&Qv(s.expression)?s.expression.text:void 0;if(l===void 0){const m=t.getTypeChecker(),y=m.getSymbolAtLocation(s);y&&(l=m.symbolToString(y,r))}if(l===void 0){const m=jQ();l=qU(y=>m.writeNode(4,r,r.getSourceFile(),y))}return{text:l,pos:s.getStart(),end:s.getEnd()}}function SDe(t){var r,s;if(Dee(t))return z0(t.parent.parent.parent.parent)&&An(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?(r=Y_e(t.parent))==null?void 0:r.getText():(s=o_(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(z0(t.parent)&&An(t.parent.parent.name))return t.parent.parent.name.getText()}}function IOe(t,r){if(r.body)return r;if(pg(r))return E2(r.parent);if(b0(r)||em(r)){const s=DOe(t,r);return s&&s.valueDeclaration&&J_(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return r}function EDe(t,r){const s=DOe(t,r);let l;if(s&&s.declarations){const m=Cy(s.declarations),y=Vn(s.declarations,I=>({file:I.getSourceFile().fileName,pos:I.pos}));m.sort((I,W)=>Fp(y[I].file,y[W].file)||y[I].pos-y[W].pos);const T=Vn(m,I=>s.declarations[I]);let D;for(const I of T)Jj(I)&&((!D||D.parent!==I.parent||D.end!==I.pos)&&(l=ur(l,I)),D=I)}return l}function xDe(t,r){return nu(r)?r:J_(r)?IOe(t,r)??EDe(t,r)??r:EDe(t,r)??r}function Uqe(t,r){const s=t.getTypeChecker();let l=!1;for(;;){if(Jj(r))return xDe(s,r);if(COe(r)){const m=Kr(r,Jj);return m&&xDe(s,m)}if(vP(r)){if(Jj(r.parent))return xDe(s,r.parent);if(COe(r.parent)){const m=Kr(r.parent,Jj);return m&&xDe(s,m)}return ff(r.parent)&&r.parent.initializer&&Dee(r.parent.initializer)?r.parent.initializer:void 0}if(pg(r))return Jj(r.parent)?r.parent:void 0;if(r.kind===126&&nu(r.parent)){r=r.parent;continue}if(ff(r)&&r.initializer&&Dee(r.initializer))return r.initializer;if(!l){let m=s.getSymbolAtLocation(r);if(m&&(m.flags&2097152&&(m=s.getAliasedSymbol(m)),m.valueDeclaration)){l=!0,r=m.valueDeclaration;continue}}return}}function ADe(t,r){const s=r.getSourceFile(),l=Vqe(t,r),m=SDe(r),y=g4(r),T=$$(r),D=R0(ep(s.text,r.getFullStart(),!1,!0),r.getEnd()),I=R0(l.pos,l.end);return{file:s.fileName,kind:y,kindModifiers:T,name:l.text,containerName:m,span:D,selectionSpan:I}}function Wut(t){return t!==void 0}function But(t){if(t.kind===Wf.EntryKind.Node){const{node:r}=t;if(j$(r,!0,!0)||xF(r,!0,!0)||BJe(r,!0,!0)||Gse(r,!0,!0)||G3(r)||TZ(r)){const s=r.getSourceFile();return{declaration:Kr(r,Jj)||s,range:Y$(r,s)}}}}function Hqe(t){return Im(t.declaration)}function zut(t,r){return{from:t,fromSpans:r}}function Gut(t,r){return zut(ADe(t,r[0].declaration),Vn(r,s=>FR(s.range)))}function jut(t,r,s){if(tl(r)||xp(r)||nu(r))return[];const l=Gqe(r),m=gi(Wf.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),l,0,{use:Wf.FindReferencesUse.References},But),Wut);return m?BD(m,Hqe,y=>Gut(t,y)):[]}function Vut(t,r){function s(m){const y=Hm(m)?m.tag:Y1(m)?m.tagName:Kf(m)||nu(m)?m:m.expression,T=Uqe(t,y);if(T){const D=Y$(y,m.getSourceFile());if(ls(T))for(const I of T)r.push({declaration:I,range:D});else r.push({declaration:T,range:D})}}function l(m){if(m&&!(m.flags&33554432)){if(Jj(m)){if(Jl(m))for(const y of m.members)y.name&&am(y.name)&&l(y.name.expression);return}switch(m.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(m);return;case 216:case 234:l(m.expression);return;case 260:case 169:l(m.name),l(m.initializer);return;case 213:s(m),l(m.expression),Ot(m.arguments,l);return;case 214:s(m),l(m.expression),Ot(m.arguments,l);return;case 215:s(m),l(m.tag),l(m.template);return;case 286:case 285:s(m),l(m.tagName),l(m.attributes);return;case 170:s(m),l(m.expression);return;case 211:case 212:s(m),B_(m,l);break;case 238:l(m.expression);return}rC(m)||B_(m,l)}}return l}function Uut(t,r){Ot(t.statements,r)}function Hut(t,r){!il(t,2)&&t.body&&z0(t.body)&&Ot(t.body.statements,r)}function Jut(t,r,s){const l=IOe(t,r);l&&(Ot(l.parameters,s),s(l.body))}function $ut(t,r){r(t.body)}function qut(t,r){Ot(t.modifiers,r);const s=oC(t);s&&r(s.expression);for(const l of t.members)nx(l)&&Ot(l.modifiers,r),Os(l)?r(l.initializer):pg(l)&&l.body?(Ot(l.parameters,r),r(l.body)):nu(l)&&r(l)}function Kut(t,r){const s=[],l=Vut(t,s);switch(r.kind){case 312:Uut(r,l);break;case 267:Hut(r,l);break;case 262:case 218:case 219:case 174:case 177:case 178:Jut(t.getTypeChecker(),r,l);break;case 263:case 231:qut(r,l);break;case 175:$ut(r,l);break;default:ce.assertNever(r)}return s}function Xut(t,r){return{to:t,fromSpans:r}}function $j(t,r){return Xut(ADe(t,r[0].declaration),Vn(r,s=>FR(s.range)))}function Yut(t,r){return r.flags&33554432||Jh(r)?[]:BD(Kut(t,r),Hqe,s=>$j(t,s))}var Jqe=G({"src/services/callHierarchy.ts"(){El()}}),Dq={};Oe(Dq,{createCallHierarchyItem:()=>ADe,getIncomingCalls:()=>jut,getOutgoingCalls:()=>Yut,resolveCallHierarchyDeclaration:()=>Uqe});var kOe=G({"src/services/_namespaces/ts.CallHierarchy.ts"(){Jqe()}}),$qe={};Oe($qe,{TokenEncodingConsts:()=>bOe,TokenModifier:()=>EI,TokenType:()=>MF,getEncodedSemanticClassifications:()=>vOe,getSemanticClassifications:()=>Sqe});var xI=G({"src/services/_namespaces/ts.classifier.v2020.ts"(){sDe()}}),Rd={};Oe(Rd,{v2020:()=>$qe});var POe=G({"src/services/_namespaces/ts.classifier.ts"(){xI()}});function mC(t,r,s){return wOe(t,sB(s),r,void 0,void 0)}function Hc(t,r,s,l,m,y){return wOe(t,sB(s),r,l,sB(m),y)}function NOe(t,r,s,l,m,y){return wOe(t,sB(s),r,l,m&&sB(m),y)}function wOe(t,r,s,l,m,y){return{fixName:t,description:r,changes:s,fixId:l,fixAllDescription:m,commands:y?[y]:void 0}}function up(t){for(const r of t.errorCodes)IDe=void 0,DDe.add(String(r),t);if(t.fixIds)for(const r of t.fixIds)ce.assert(!yye.has(r)),yye.set(r,t)}function Qut(){return IDe??(IDe=oc(DDe.keys()))}function Iq(t,r){const{errorCodes:s}=t;let l=0;for(const y of r)if(ni(s,y.code)&&l++,l>1)break;const m=l<2;return({fixId:y,fixAllDescription:T,...D})=>m?D:{...D,fixId:y,fixAllDescription:T}}function qqe(t){const r=CDe(t),s=DDe.get(String(t.errorCode));return ea(s,l=>Vn(l.getCodeActions(t),Iq(l,r)))}function Sg(t){return yye.get(uc(t.fixId,As)).getAllCodeActions(t)}function GR(t,r){return{changes:t,commands:r}}function ROe(t,r){return{fileName:t,textChanges:r}}function Km(t,r,s){const l=[],m=Hs.ChangeTracker.with(t,y=>LF(t,r,T=>s(y,T,l)));return GR(m,l.length===0?void 0:l)}function LF(t,r,s){for(const l of CDe(t))ni(r,l.code)&&s(l)}function CDe({program:t,sourceFile:r,cancellationToken:s}){return[...t.getSemanticDiagnostics(r,s),...t.getSyntacticDiagnostics(r,s),...tee(r,t,s)]}var DDe,yye,IDe,kDe=G({"src/services/codeFixProvider.ts"(){El(),DDe=zg(),yye=new Map}});function PDe(t,r,s){const l=v0(s)?be.createAsExpression(s.expression,be.createKeywordTypeNode(159)):be.createTypeAssertion(be.createKeywordTypeNode(159),s.expression);t.replaceNode(r,s.expression,l)}function Kqe(t,r){if(!Rs(t))return Kr(bf(t,r),s=>v0(s)||xd(s))}var NDe,wDe,Zut=G({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){El(),hp(),NDe="addConvertToUnknownForNonOverlappingTypes",wDe=[w.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],up({errorCodes:wDe,getCodeActions:function(r){const s=Kqe(r.sourceFile,r.span.start);if(s===void 0)return;const l=Hs.ChangeTracker.with(r,m=>PDe(m,r.sourceFile,s));return[Hc(NDe,l,w.Add_unknown_conversion_for_non_overlapping_types,NDe,w.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[NDe],getAllCodeActions:t=>Km(t,wDe,(r,s)=>{const l=Kqe(s.file,s.start);l&&PDe(r,s.file,l)})})}}),Xqe=G({"src/services/codefixes/addEmptyExportDeclaration.ts"(){El(),hp(),up({errorCodes:[w.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,w.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,w.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(r){const{sourceFile:s}=r,l=Hs.ChangeTracker.with(r,m=>{const y=be.createExportDeclaration(void 0,!1,be.createNamedExports([]),void 0);m.insertNodeAtEndOfScope(s,s,y)});return[mC("addEmptyExportDeclaration",l,w.Add_export_to_make_this_file_into_a_module)]}})}});function Yqe(t,r,s,l){const m=s(y=>RDe(y,t.sourceFile,r,l));return Hc(vye,m,w.Add_async_modifier_to_containing_function,vye,w.Add_all_missing_async_modifiers)}function RDe(t,r,s,l){if(l&&l.has(Im(s)))return;l==null||l.add(Im(s));const m=be.updateModifiers(Rg(s,!0),be.createNodeArray(be.createModifiersFromModifierFlags(n6(s)|512)));t.replaceNode(r,s,m)}function MDe(t,r){if(!r)return;const s=bf(t,r.start);return Kr(s,m=>m.getStart(t)K1(r)?"quit":(ph(m)||em(m)||Dm(m)||b0(m))&&IF(r,gE(m,t)))}function eft(t,r){return({start:s,length:l,relatedInformation:m,code:y})=>U1(s)&&U1(l)&&IF({start:s,length:l},t)&&y===r&&!!m&>(m,T=>T.code===w.Did_you_mean_to_mark_this_function_as_async.code)}var vye,LDe,Qqe=G({"src/services/codefixes/addMissingAsync.ts"(){El(),hp(),vye="addMissingAsync",LDe=[w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Type_0_is_not_assignable_to_type_1.code,w.Type_0_is_not_comparable_to_type_1.code],up({fixIds:[vye],errorCodes:LDe,getCodeActions:function(r){const{sourceFile:s,errorCode:l,cancellationToken:m,program:y,span:T}=r,D=lr(y.getTypeChecker().getDiagnostics(s,m),eft(T,l)),I=D&&D.relatedInformation&&lr(D.relatedInformation,V=>V.code===w.Did_you_mean_to_mark_this_function_as_async.code),W=MDe(s,I);return W?[Yqe(r,W,V=>Hs.ChangeTracker.with(r,V))]:void 0},getAllCodeActions:t=>{const{sourceFile:r}=t,s=new Set;return Km(t,LDe,(l,m)=>{const y=m.relatedInformation&&lr(m.relatedInformation,I=>I.code===w.Did_you_mean_to_mark_this_function_as_async.code),T=MDe(r,y);return T?Yqe(t,T,I=>(I(l),[]),s):void 0})}})}});function Zqe(t,r,s,l,m){const y=rhe(t,s);return y&&tft(t,r,s,l,m)&&bye(y)?y:void 0}function eKe(t,r,s,l,m,y){const{sourceFile:T,program:D,cancellationToken:I}=t,W=nKe(r,T,I,D,l);if(W){const O=m(V=>{Ot(W.initializers,({expression:ee})=>Tye(V,s,T,l,ee,y)),y&&W.needsSecondPassForFixAll&&Tye(V,s,T,l,r,y)});return mC("addMissingAwaitToInitializer",O,W.initializers.length===1?[w.Add_await_to_initializer_for_0,W.initializers[0].declarationSymbol.name]:w.Add_await_to_initializers)}}function tKe(t,r,s,l,m,y){const T=m(D=>Tye(D,s,t.sourceFile,l,r,y));return Hc(Iee,T,w.Add_await,Iee,w.Fix_all_expressions_possibly_missing_await)}function tft(t,r,s,l,m){const T=m.getTypeChecker().getDiagnostics(t,l);return gt(T,({start:D,length:I,relatedInformation:W,code:O})=>U1(D)&&U1(I)&&IF({start:D,length:I},s)&&O===r&&!!W&>(W,V=>V.code===w.Did_you_forget_to_use_await.code))}function nKe(t,r,s,l,m){const y=MOe(t,m);if(!y)return;let T=y.isCompleteFix,D;for(const I of y.identifiers){const W=m.getSymbolAtLocation(I);if(!W)continue;const O=to(W.valueDeclaration,ff),V=O&&to(O.name,An),ee=e6(O,243);if(!O||!ee||O.type||!O.initializer||ee.getSourceFile()!==r||il(ee,1)||!V||!bye(O.initializer)){T=!1;continue}const te=l.getSemanticDiagnostics(r,s);if(Wf.Core.eachSymbolReferenceInFile(V,m,r,de=>I!==de&&!rKe(de,te,r,m))){T=!1;continue}(D||(D=[])).push({expression:O.initializer,declarationSymbol:W})}return D&&{initializers:D,needsSecondPassForFixAll:!T}}function MOe(t,r){if(sa(t.parent)&&An(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(An(t))return{identifiers:[t],isCompleteFix:!0};if(ys(t)){let s,l=!0;for(const m of[t.left,t.right]){const y=r.getTypeAtLocation(m);if(r.getPromisedTypeOfPromise(y)){if(!An(m)){l=!1;continue}(s||(s=[])).push(m)}}return s&&{identifiers:s,isCompleteFix:l}}}function rKe(t,r,s,l){const m=sa(t.parent)?t.parent.name:ys(t.parent)?t.parent:t,y=lr(r,T=>T.start===m.getStart(s)&&T.start+T.length===m.getEnd());return y&&ni(kee,y.code)||l.getTypeAtLocation(m).flags&1}function bye(t){return t.kind&65536||!!Kr(t,r=>r.parent&&ph(r.parent)&&r.parent.body===r||E_(r)&&(r.parent.kind===262||r.parent.kind===218||r.parent.kind===219||r.parent.kind===174))}function Tye(t,r,s,l,m,y){if(Moe(m.parent)&&!m.parent.awaitModifier){const T=l.getTypeAtLocation(m),D=l.getAsyncIterableType();if(D&&l.isTypeAssignableTo(T,D)){const I=m.parent;t.replaceNode(s,I,be.updateForOfStatement(I,be.createToken(135),I.initializer,I.expression,I.statement));return}}if(ys(m))for(const T of[m.left,m.right]){if(y&&An(T)){const W=l.getSymbolAtLocation(T);if(W&&y.has(Bp(W)))continue}const D=l.getTypeAtLocation(T),I=l.getPromisedTypeOfPromise(D)?be.createAwaitExpression(T):T;t.replaceNode(s,T,I)}else if(r===LOe&&sa(m.parent)){if(y&&An(m.parent.expression)){const T=l.getSymbolAtLocation(m.parent.expression);if(T&&y.has(Bp(T)))return}t.replaceNode(s,m.parent.expression,be.createParenthesizedExpression(be.createAwaitExpression(m.parent.expression))),ODe(t,m.parent.expression,s)}else if(ni(FDe,r)&&IN(m.parent)){if(y&&An(m)){const T=l.getSymbolAtLocation(m);if(T&&y.has(Bp(T)))return}t.replaceNode(s,m,be.createParenthesizedExpression(be.createAwaitExpression(m))),ODe(t,m,s)}else{if(y&&ff(m.parent)&&An(m.parent.name)){const T=l.getSymbolAtLocation(m.parent.name);if(T&&!m2(y,Bp(T)))return}t.replaceNode(s,m,be.createAwaitExpression(m))}}function ODe(t,r,s){const l=T0(r.pos,s);l&&sq(l.end,l.parent,s)&&t.insertText(s,r.getStart(s),";")}var Iee,LOe,FDe,kee,nft=G({"src/services/codefixes/addMissingAwait.ts"(){El(),hp(),Iee="addMissingAwait",LOe=w.Property_0_does_not_exist_on_type_1.code,FDe=[w.This_expression_is_not_callable.code,w.This_expression_is_not_constructable.code],kee=[w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.Operator_0_cannot_be_applied_to_type_1.code,w.Operator_0_cannot_be_applied_to_types_1_and_2.code,w.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,w.This_condition_will_always_return_true_since_this_0_is_always_defined.code,w.Type_0_is_not_an_array_type.code,w.Type_0_is_not_an_array_type_or_a_string_type.code,w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,w.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,LOe,...FDe],up({fixIds:[Iee],errorCodes:kee,getCodeActions:function(r){const{sourceFile:s,errorCode:l,span:m,cancellationToken:y,program:T}=r,D=Zqe(s,l,m,y,T);if(!D)return;const I=r.program.getTypeChecker(),W=O=>Hs.ChangeTracker.with(r,O);return uN([eKe(r,D,l,I,W),tKe(r,D,l,I,W)])},getAllCodeActions:t=>{const{sourceFile:r,program:s,cancellationToken:l}=t,m=t.program.getTypeChecker(),y=new Set;return Km(t,kee,(T,D)=>{const I=Zqe(r,D.code,D,l,s);if(!I)return;const W=O=>(O(T),[]);return eKe(t,I,D.code,m,W,y)||tKe(t,I,D.code,m,W,y)})}})}});function iKe(t,r,s,l,m){const y=bf(r,s),T=Kr(y,W=>DS(W.parent)?W.parent.initializer===W:oKe(W)?!1:"quit");if(T)return WDe(t,T,r,m);const D=y.parent;if(ys(D)&&D.operatorToken.kind===64&&Ou(D.parent))return WDe(t,y,r,m);if(Ch(D)){const W=l.getTypeChecker();return jr(D.elements,O=>BDe(O,W))?WDe(t,D,r,m):void 0}const I=Kr(y,W=>Ou(W.parent)?!0:OOe(W)?!1:"quit");if(I){const W=l.getTypeChecker();return aKe(I,W)?WDe(t,I,r,m):void 0}}function WDe(t,r,s,l){(!l||m2(l,r))&&t.insertModifierBefore(s,87,r)}function oKe(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function BDe(t,r){const s=An(t)?t:wy(t,!0)&&An(t.left)?t.left:void 0;return!!s&&!r.getSymbolAtLocation(s)}function OOe(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function aKe(t,r){return ys(t)?t.operatorToken.kind===28?jr([t.left,t.right],s=>aKe(s,r)):t.operatorToken.kind===64&&An(t.left)&&!r.getSymbolAtLocation(t.left):!1}var Sye,ple,FOe=G({"src/services/codefixes/addMissingConst.ts"(){El(),hp(),Sye="addMissingConst",ple=[w.Cannot_find_name_0.code,w.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],up({errorCodes:ple,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>iKe(l,r.sourceFile,r.span.start,r.program));if(s.length>0)return[Hc(Sye,s,w.Add_const_to_unresolved_variable,Sye,w.Add_const_to_all_unresolved_variables)]},fixIds:[Sye],getAllCodeActions:t=>{const r=new Set;return Km(t,ple,(s,l)=>iKe(s,l.file,l.start,t.program,r))}})}});function sKe(t,r,s,l){const m=bf(r,s);if(!An(m))return;const y=m.parent;y.kind===172&&(!l||m2(l,y))&&t.insertModifierBefore(r,138,y)}var Eye,mle,WOe=G({"src/services/codefixes/addMissingDeclareProperty.ts"(){El(),hp(),Eye="addMissingDeclareProperty",mle=[w.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],up({errorCodes:mle,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>sKe(l,r.sourceFile,r.span.start));if(s.length>0)return[Hc(Eye,s,w.Prefix_with_declare,Eye,w.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[Eye],getAllCodeActions:t=>{const r=new Set;return Km(t,mle,(s,l)=>sKe(s,l.file,l.start,r))}})}});function cKe(t,r,s){const l=bf(r,s),m=Kr(l,Qf);ce.assert(!!m,"Expected position to be owned by a decorator.");const y=be.createCallExpression(m.expression,void 0,void 0);t.replaceNode(r,m.expression,y)}var xye,zDe,GDe=G({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){El(),hp(),xye="addMissingInvocationForDecorator",zDe=[w._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],up({errorCodes:zDe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>cKe(l,r.sourceFile,r.span.start));return[Hc(xye,s,w.Call_decorator_expression,xye,w.Add_to_all_uncalled_decorators)]},fixIds:[xye],getAllCodeActions:t=>Km(t,zDe,(r,s)=>cKe(r,s.file,s.start))})}});function jDe(t,r,s){const l=bf(r,s),m=l.parent;if(!Pu(m))return ce.fail("Tried to add a parameter name to a non-parameter: "+ce.formatSyntaxKind(l.kind));const y=m.parent.parameters.indexOf(m);ce.assert(!m.type,"Tried to add a parameter name to a parameter that already had one."),ce.assert(y>-1,"Parameter not found in parent parameter list.");const T=be.createTypeReferenceNode(m.name,void 0),D=be.createParameterDeclaration(m.modifiers,m.dotDotDotToken,"arg"+y,m.questionToken,m.dotDotDotToken?be.createArrayTypeNode(T):T,m.initializer);t.replaceNode(r,m,D)}var VDe,BOe,rft=G({"src/services/codefixes/addNameToNamelessParameter.ts"(){El(),hp(),VDe="addNameToNamelessParameter",BOe=[w.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],up({errorCodes:BOe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>jDe(l,r.sourceFile,r.span.start));return[Hc(VDe,s,w.Add_parameter_name,VDe,w.Add_names_to_all_parameters_without_names)]},fixIds:[VDe],getAllCodeActions:t=>Km(t,BOe,(r,s)=>jDe(r,s.file,s.start))})}});function lKe(t,r,s){var l,m;const y=UDe(rhe(t,r),s);if(!y)return Zn;const{source:T,target:D}=y,I=ift(T,D,s)?s.getTypeAtLocation(D.expression):s.getTypeAtLocation(D);return(m=(l=I.symbol)==null?void 0:l.declarations)!=null&&m.some(W=>ns(W).fileName.match(/\.d\.ts$/))?Zn:s.getExactOptionalProperties(I)}function ift(t,r,s){return sa(r)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(r.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function UDe(t,r){var s;if(t){if(ys(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(ff(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(el(t.parent)){const l=r.getSymbolAtLocation(t.parent.expression);if(!(l!=null&&l.valueDeclaration)||!xb(l.valueDeclaration.kind)||!Nr(t))return;const m=t.parent.arguments.indexOf(t);if(m===-1)return;const y=l.valueDeclaration.parameters[m].name;if(An(y))return{source:t,target:y}}else if(Fm(t.parent)&&An(t.parent.name)||BT(t.parent)){const l=UDe(t.parent.parent,r);if(!l)return;const m=r.getPropertyOfType(r.getTypeAtLocation(l.target),t.parent.name.text),y=(s=m==null?void 0:m.declarations)==null?void 0:s[0];return y?{source:Fm(t.parent)?t.parent.initializer:t.parent.name,target:y}:void 0}}else return}function uKe(t,r){for(const s of r){const l=s.valueDeclaration;if(l&&(Np(l)||Os(l))&&l.type){const m=be.createUnionTypeNode([...l.type.kind===192?l.type.types:[l.type],be.createTypeReferenceNode("undefined")]);t.replaceNode(l.getSourceFile(),l.type,m)}}}var zOe,GOe,fKe=G({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){El(),hp(),zOe="addOptionalPropertyUndefined",GOe=[w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,w.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],up({errorCodes:GOe,getCodeActions(t){const r=t.program.getTypeChecker(),s=lKe(t.sourceFile,t.span,r);if(!s.length)return;const l=Hs.ChangeTracker.with(t,m=>uKe(m,s));return[mC(zOe,l,w.Add_undefined_to_optional_property_type)]},fixIds:[zOe]})}});function jOe(t,r){const s=bf(t,r);return to(Pu(s.parent)?s.parent.parent:s.parent,VOe)}function VOe(t){return oft(t)&&_Ke(t)}function _Ke(t){return J_(t)?t.parameters.some(_Ke)||!t.type&&!!WU(t):!t.type&&!!X1(t)}function Q3(t,r,s){if(J_(s)&&(WU(s)||s.parameters.some(l=>!!X1(l)))){if(!s.typeParameters){const m=Wie(s);m.length&&t.insertTypeParameters(r,s,m)}const l=ph(s)&&!Wm(s,21,r);l&&t.insertNodeBefore(r,Dl(s.parameters),be.createToken(21));for(const m of s.parameters)if(!m.type){const y=X1(m);y&&t.tryInsertTypeAnnotation(r,m,nr(y,OF,Uu))}if(l&&t.insertNodeAfter(r,yl(s.parameters),be.createToken(22)),!s.type){const m=WU(s);m&&t.tryInsertTypeAnnotation(r,s,nr(m,OF,Uu))}}else{const l=ce.checkDefined(X1(s),"A JSDocType for this declaration should exist");ce.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,s,nr(l,OF,Uu))}}function oft(t){return J_(t)||t.kind===260||t.kind===171||t.kind===172}function OF(t){switch(t.kind){case 319:case 320:return be.createTypeReferenceNode("any",Zn);case 323:return sft(t);case 322:return OF(t.type);case 321:return cft(t);case 325:return lft(t);case 324:return uft(t);case 183:return HDe(t);case 329:return aft(t);default:const r=ia(t,OF,I6);return Sa(r,1),r}}function aft(t){const r=be.createTypeLiteralNode(Vn(t.jsDocPropertyTags,s=>be.createPropertySignature(void 0,An(s.name)?s.name:s.name.right,rW(s)?be.createToken(58):void 0,s.typeExpression&&nr(s.typeExpression.type,OF,Uu)||be.createKeywordTypeNode(133))));return Sa(r,1),r}function sft(t){return be.createUnionTypeNode([nr(t.type,OF,Uu),be.createTypeReferenceNode("undefined",Zn)])}function cft(t){return be.createUnionTypeNode([nr(t.type,OF,Uu),be.createTypeReferenceNode("null",Zn)])}function lft(t){return be.createArrayTypeNode(nr(t.type,OF,Uu))}function uft(t){return be.createFunctionTypeNode(Zn,t.parameters.map(fft),t.type??be.createKeywordTypeNode(133))}function fft(t){const r=t.parent.parameters.indexOf(t),s=t.type.kind===325&&r===t.parent.parameters.length-1,l=t.name||(s?"rest":"arg"+r),m=s?be.createToken(26):t.dotDotDotToken;return be.createParameterDeclaration(t.modifiers,m,l,t.questionToken,nr(t.type,OF,Uu),t.initializer)}function HDe(t){let r=t.typeName,s=t.typeArguments;if(An(t.typeName)){if(aH(t))return UOe(t);let l=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":l=l.toLowerCase();break;case"array":case"date":case"promise":l=l[0].toUpperCase()+l.slice(1);break}r=be.createIdentifier(l),(l==="Array"||l==="Promise")&&!t.typeArguments?s=be.createNodeArray([be.createTypeReferenceNode("any",Zn)]):s=Fa(t.typeArguments,OF,Uu)}return be.createTypeReferenceNode(r,s)}function UOe(t){const r=be.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,be.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=be.createTypeLiteralNode([be.createIndexSignature(void 0,[r],t.typeArguments[1])]);return Sa(s,1),s}var JDe,$De,qDe=G({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){El(),hp(),JDe="annotateWithTypeFromJSDoc",$De=[w.JSDoc_types_may_be_moved_to_TypeScript_types.code],up({errorCodes:$De,getCodeActions(t){const r=jOe(t.sourceFile,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>Q3(l,t.sourceFile,r));return[Hc(JDe,s,w.Annotate_with_type_from_JSDoc,JDe,w.Annotate_everything_with_types_from_JSDoc)]},fixIds:[JDe],getAllCodeActions:t=>Km(t,$De,(r,s)=>{const l=jOe(s.file,s.start);l&&Q3(r,s.file,l)})})}});function Aye(t,r,s,l,m,y){const T=l.getSymbolAtLocation(bf(r,s));if(!T||!T.valueDeclaration||!(T.flags&19))return;const D=T.valueDeclaration;if(b0(D)||Dm(D))t.replaceNode(r,D,O(D));else if(ff(D)){const V=W(D);if(!V)return;const ee=D.parent.parent;My(D.parent)&&D.parent.declarations.length>1?(t.delete(r,D),t.insertNodeAfter(r,ee,V)):t.replaceNode(r,ee,V)}function I(V){const ee=[];return V.exports&&V.exports.forEach(de=>{if(de.name==="prototype"&&de.declarations){const ue=de.declarations[0];if(de.declarations.length===1&&sa(ue)&&ys(ue.parent)&&ue.parent.operatorToken.kind===64&&Wd(ue.parent.right)){const Ne=ue.parent.right;oe(Ne.symbol,void 0,ee)}}else oe(de,[be.createToken(126)],ee)}),V.members&&V.members.forEach((de,ue)=>{var Ne,Be,Ve,pt;if(ue==="constructor"&&de.valueDeclaration){const Le=(pt=(Ve=(Be=(Ne=V.exports)==null?void 0:Ne.get("prototype"))==null?void 0:Be.declarations)==null?void 0:Ve[0])==null?void 0:pt.parent;Le&&ys(Le)&&Wd(Le.right)&>(Le.right.properties,Pee)||t.delete(r,de.valueDeclaration.parent);return}oe(de,void 0,ee)}),ee;function te(de,ue){return Kf(de)?sa(de)&&Pee(de)?!0:S_(ue):jr(de.properties,Ne=>!!(em(Ne)||s9(Ne)||Fm(Ne)&&Dm(Ne.initializer)&&Ne.name||Pee(Ne)))}function oe(de,ue,Ne){if(!(de.flags&8192)&&!(de.flags&4096))return;const Be=de.valueDeclaration,Ve=Be.parent,pt=Ve.right;if(!te(Be,pt)||gt(Ne,Dt=>{const Ft=o_(Dt);return!!(Ft&&An(Ft)&&ec(Ft)===mp(de))}))return;const Le=Ve.parent&&Ve.parent.kind===244?Ve.parent:Ve;if(t.delete(r,Le),!pt){Ne.push(be.createPropertyDeclaration(ue,de.name,void 0,void 0,void 0));return}if(Kf(Be)&&(Dm(pt)||ph(pt))){const Dt=Jx(r,m),Ft=HOe(Be,y,Dt);Ft&&ht(Ne,pt,Ft);return}else if(Wd(pt)){Ot(pt.properties,Dt=>{(em(Dt)||s9(Dt))&&Ne.push(Dt),Fm(Dt)&&Dm(Dt.initializer)&&ht(Ne,Dt.initializer,Dt.name),Pee(Dt)});return}else{if(v1(r)||!sa(Be))return;const Dt=be.createPropertyDeclaration(ue,Be.name,void 0,void 0,pt);tB(Ve.parent,Dt,r),Ne.push(Dt);return}function ht(Dt,Ft,it){return Dm(Ft)?ke(Dt,Ft,it):_t(Dt,Ft,it)}function ke(Dt,Ft,it){const Ye=Hi(ue,KDe(Ft,134)),ut=be.createMethodDeclaration(Ye,void 0,it,void 0,void 0,Ft.parameters,void 0,Ft.body);tB(Ve,ut,r),Dt.push(ut)}function _t(Dt,Ft,it){const Ye=Ft.body;let ut;Ye.kind===241?ut=Ye:ut=be.createBlock([be.createReturnStatement(Ye)]);const lt=Hi(ue,KDe(Ft,134)),zt=be.createMethodDeclaration(lt,void 0,it,void 0,void 0,Ft.parameters,void 0,ut);tB(Ve,zt,r),Dt.push(zt)}}}function W(V){const ee=V.initializer;if(!ee||!Dm(ee)||!An(V.name))return;const te=I(V.symbol);ee.body&&te.unshift(be.createConstructorDeclaration(void 0,ee.parameters,ee.body));const oe=KDe(V.parent.parent,95);return be.createClassDeclaration(oe,V.name,void 0,void 0,te)}function O(V){const ee=I(T);V.body&&ee.unshift(be.createConstructorDeclaration(void 0,V.parameters,V.body));const te=KDe(V,95);return be.createClassDeclaration(te,V.name,void 0,void 0,ee)}}function KDe(t,r){return nx(t)?gi(t.modifiers,s=>s.kind===r):void 0}function Pee(t){return t.name?!!(An(t.name)&&t.name.text==="constructor"):!1}function HOe(t,r,s){if(sa(t))return t.name;const l=t.argumentExpression;if(nS(l))return l;if(sp(l))return rE(l.text,iu(r))?be.createIdentifier(l.text):Sd(l)?be.createStringLiteral(l.text,s===0):l}var XDe,YDe,_ft=G({"src/services/codefixes/convertFunctionToEs6Class.ts"(){El(),hp(),XDe="convertFunctionToEs6Class",YDe=[w.This_constructor_function_may_be_converted_to_a_class_declaration.code],up({errorCodes:YDe,getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>Aye(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Hc(XDe,r,w.Convert_function_to_an_ES2015_class,XDe,w.Convert_all_constructor_functions_to_classes)]},fixIds:[XDe],getAllCodeActions:t=>Km(t,YDe,(r,s)=>Aye(r,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function dKe(t,r,s,l){const m=bf(r,s);let y;if(An(m)&&ff(m.parent)&&m.parent.initializer&&J_(m.parent.initializer)?y=m.parent.initializer:y=to(GE(bf(r,s)),kce),!y)return;const T=new Map,D=Rs(y),I=pKe(y,l),W=Kj(y,l,T);if(!cCe(W,l))return;const O=W.body&&E_(W.body)?gle(W.body,l):Zn,V={checker:l,synthNamesMap:T,setOfExpressionsToReturn:I,isInJSFile:D};if(!O.length)return;const ee=ep(r.text,Db(y).pos);t.insertModifierAt(r,ee,134,{suffix:" "});for(const te of O)if(B_(te,function oe(de){if(el(de)){const ue=kq(de,de,V,!1);if(iw())return!0;t.replaceNodeWithNodes(r,te,ue)}else if(!S_(de)&&(B_(de,oe),iw()))return!0}),iw())return}function gle(t,r){const s=[];return HM(t,l=>{lCe(l,r)&&s.push(l)}),s}function pKe(t,r){if(!t.body)return new Set;const s=new Set;return B_(t.body,function l(m){qj(m,r,"then")?(s.add(Im(m)),Ot(m.arguments,l)):qj(m,r,"catch")||qj(m,r,"finally")?(s.add(Im(m)),B_(m,l)):$Oe(m,r)?s.add(Im(m)):B_(m,l)}),s}function qj(t,r,s){if(!el(t))return!1;const m=vZ(t,s)&&r.getTypeAtLocation(t);return!!(m&&r.getPromisedTypeOfPromise(m))}function JOe(t,r){return(ji(t)&4)!==0&&t.target===r}function QDe(t,r,s){if(t.expression.name.escapedText==="finally")return;const l=s.getTypeAtLocation(t.expression.expression);if(JOe(l,s.getPromiseType())||JOe(l,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(r===PM(t.arguments,0))return PM(t.typeArguments,0);if(r===PM(t.arguments,1))return PM(t.typeArguments,1)}else return PM(t.typeArguments,0)}function $Oe(t,r){return Nr(t)?!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t)):!1}function Kj(t,r,s){const l=new Map,m=zg();return B_(t,function y(T){if(!An(T)){B_(T,y);return}const D=r.getSymbolAtLocation(T);if(D){const I=r.getTypeAtLocation(T),W=XOe(I,r),O=Bp(D).toString();if(W&&!Pu(T.parent)&&!J_(T.parent)&&!s.has(O)){const V=pp(W.parameters),ee=(V==null?void 0:V.valueDeclaration)&&Pu(V.valueDeclaration)&&to(V.valueDeclaration.name,An)||be.createUniqueName("result",16),te=E4(ee,m);s.set(O,te),m.add(ee.text,D)}else if(T.parent&&(Pu(T.parent)||ff(T.parent)||ym(T.parent))){const V=T.text,ee=m.get(V);if(ee&&ee.some(te=>te!==D)){const te=E4(T,m);l.set(O,te.identifier),s.set(O,te),m.add(V,D)}else{const te=Rg(T);s.set(O,Xj(te)),m.add(V,D)}}}}),iq(t,!0,y=>{if(ym(y)&&An(y.name)&&E1(y.parent)){const T=r.getSymbolAtLocation(y.name),D=T&&l.get(String(Bp(T)));if(D&&D.text!==(y.name||y.propertyName).getText())return be.createBindingElement(y.dotDotDotToken,y.propertyName||y.name,D,y.initializer)}else if(An(y)){const T=r.getSymbolAtLocation(y),D=T&&l.get(String(Bp(T)));if(D)return be.createIdentifier(D.text)}})}function E4(t,r){const s=(r.get(t.text)||Zn).length,l=s===0?t:be.createIdentifier(t.text+"_"+s);return Xj(l)}function iw(){return!Iye}function jR(){return Iye=!1,Zn}function kq(t,r,s,l,m){if(qj(r,s.checker,"then"))return ZDe(r,PM(r.arguments,0),PM(r.arguments,1),s,l,m);if(qj(r,s.checker,"catch"))return hKe(r,PM(r.arguments,0),s,l,m);if(qj(r,s.checker,"finally"))return dft(r,PM(r.arguments,0),s,l,m);if(sa(r))return kq(t,r.expression,s,l,m);const y=s.checker.getTypeAtLocation(r);return y&&s.checker.getPromisedTypeOfPromise(y)?(ce.assertNode(Ic(r).parent,sa),KOe(t,r,s,l,m)):jR()}function Cye({checker:t},r){if(r.kind===106)return!0;if(An(r)&&!Om(r)&&ec(r)==="undefined"){const s=t.getSymbolAtLocation(r);return!s||t.isUndefinedSymbol(s)}return!1}function mKe(t){const r=be.createUniqueName(t.identifier.text,16);return Xj(r)}function gKe(t,r,s){let l;return s&&!Nq(t,r)&&(FF(s)?(l=s,r.synthNamesMap.forEach((m,y)=>{if(m.identifier.text===s.identifier.text){const T=mKe(s);r.synthNamesMap.set(y,T)}})):l=Xj(be.createUniqueName("result",16),s.types),QOe(l)),l}function qOe(t,r,s,l,m){const y=[];let T;if(l&&!Nq(t,r)){T=Rg(QOe(l));const D=l.types,I=r.checker.getUnionType(D,2),W=r.isInJSFile?void 0:r.checker.typeToTypeNode(I,void 0,void 0),O=[be.createVariableDeclaration(T,void 0,W)],V=be.createVariableStatement(void 0,be.createVariableDeclarationList(O,1));y.push(V)}return y.push(s),m&&T&&rIe(m)&&y.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(wee(m)),void 0,void 0,T)],2))),y}function dft(t,r,s,l,m){if(!r||Cye(s,r))return kq(t,t.expression.expression,s,l,m);const y=gKe(t,s,m),T=kq(t,t.expression.expression,s,!0,y);if(iw())return jR();const D=tIe(r,l,void 0,void 0,t,s);if(iw())return jR();const I=be.createBlock(T),W=be.createBlock(D),O=be.createTryStatement(I,void 0,W);return qOe(t,s,O,y,m)}function hKe(t,r,s,l,m){if(!r||Cye(s,r))return kq(t,t.expression.expression,s,l,m);const y=Pq(r,s),T=gKe(t,s,m),D=kq(t,t.expression.expression,s,!0,T);if(iw())return jR();const I=tIe(r,l,T,y,t,s);if(iw())return jR();const W=be.createBlock(D),O=be.createCatchClause(y&&Rg(Nee(y)),be.createBlock(I)),V=be.createTryStatement(W,O,void 0);return qOe(t,s,V,T,m)}function ZDe(t,r,s,l,m,y){if(!r||Cye(l,r))return hKe(t,s,l,m,y);if(s&&!Cye(l,s))return jR();const T=Pq(r,l),D=kq(t.expression.expression,t.expression.expression,l,!0,T);if(iw())return jR();const I=tIe(r,m,y,T,t,l);return iw()?jR():Hi(D,I)}function KOe(t,r,s,l,m){if(Nq(t,s)){let y=Rg(r);return l&&(y=be.createAwaitExpression(y)),[be.createReturnStatement(y)]}return hle(m,be.createAwaitExpression(r),void 0)}function hle(t,r,s){return!t||bKe(t)?[be.createExpressionStatement(r)]:FF(t)&&t.hasBeenDeclared?[be.createExpressionStatement(be.createAssignment(Rg(nIe(t)),r))]:[be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(Nee(t)),void 0,s,r)],2))]}function eIe(t,r){if(r&&t){const s=be.createUniqueName("result",16);return[...hle(Xj(s),t,r),be.createReturnStatement(s)]}return[be.createReturnStatement(t)]}function tIe(t,r,s,l,m,y){var T;switch(t.kind){case 106:break;case 211:case 80:if(!l)break;const D=be.createCallExpression(Rg(t),void 0,FF(l)?[nIe(l)]:[]);if(Nq(m,y))return eIe(D,QDe(m,t,y.checker));const I=y.checker.getTypeAtLocation(t),W=y.checker.getSignaturesOfType(I,0);if(!W.length)return jR();const O=W[0].getReturnType(),V=hle(s,be.createAwaitExpression(D),QDe(m,t,y.checker));return s&&s.types.push(y.checker.getAwaitedType(O)||O),V;case 218:case 219:{const ee=t.body,te=(T=XOe(y.checker.getTypeAtLocation(t),y.checker))==null?void 0:T.getReturnType();if(E_(ee)){let oe=[],de=!1;for(const ue of ee.statements)if(Bx(ue))if(de=!0,lCe(ue,y.checker))oe=oe.concat(YOe(y,ue,r,s));else{const Ne=te&&ue.expression?yKe(y.checker,te,ue.expression):ue.expression;oe.push(...eIe(Ne,QDe(m,t,y.checker)))}else{if(r&&HM(ue,xT))return jR();oe.push(ue)}return Nq(m,y)?oe.map(ue=>Rg(ue)):vKe(oe,s,y,de)}else{const oe=Ice(ee,y.checker)?YOe(y,be.createReturnStatement(ee),r,s):Zn;if(oe.length>0)return oe;if(te){const de=yKe(y.checker,te,ee);if(Nq(m,y))return eIe(de,QDe(m,t,y.checker));{const ue=hle(s,de,void 0);return s&&s.types.push(y.checker.getAwaitedType(te)||te),ue}}else return jR()}}default:return jR()}return Zn}function yKe(t,r,s){const l=Rg(s);return t.getPromisedTypeOfPromise(r)?be.createAwaitExpression(l):l}function XOe(t,r){const s=r.getSignaturesOfType(t,0);return Yf(s)}function vKe(t,r,s,l){const m=[];for(const y of t)if(Bx(y)){if(y.expression){const T=$Oe(y.expression,s.checker)?be.createAwaitExpression(y.expression):y.expression;r===void 0?m.push(be.createExpressionStatement(T)):FF(r)&&r.hasBeenDeclared?m.push(be.createExpressionStatement(be.createAssignment(nIe(r),T))):m.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Nee(r),void 0,void 0,T)],2)))}}else m.push(Rg(y));return!l&&r!==void 0&&m.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Nee(r),void 0,void 0,be.createIdentifier("undefined"))],2))),m}function YOe(t,r,s,l){let m=[];return B_(r,function y(T){if(el(T)){const D=kq(T,T,t,s,l);if(m=m.concat(D),m.length>0)return}else S_(T)||B_(T,y)}),m}function Pq(t,r){const s=[];let l;if(J_(t)){if(t.parameters.length>0){const I=t.parameters[0].name;l=m(I)}}else An(t)?l=y(t):sa(t)&&An(t.name)&&(l=y(t.name));if(!l||"identifier"in l&&l.identifier.text==="undefined")return;return l;function m(I){if(An(I))return y(I);const W=ea(I.elements,O=>t0(O)?[]:[m(O.name)]);return Dye(I,W)}function y(I){const W=D(I),O=T(W);return O&&r.synthNamesMap.get(Bp(O).toString())||Xj(I,s)}function T(I){var W;return((W=to(I,YD))==null?void 0:W.symbol)??r.checker.getSymbolAtLocation(I)}function D(I){return I.original?I.original:I}}function bKe(t){return t?FF(t)?!t.identifier.text:jr(t.elements,bKe):!0}function Xj(t,r=[]){return{kind:0,identifier:t,types:r,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Dye(t,r=Zn,s=[]){return{kind:1,bindingPattern:t,elements:r,types:s}}function nIe(t){return t.hasBeenReferenced=!0,t.identifier}function Nee(t){return FF(t)?QOe(t):wee(t)}function wee(t){for(const r of t.elements)Nee(r);return t.bindingPattern}function QOe(t){return t.hasBeenDeclared=!0,t.identifier}function FF(t){return t.kind===0}function rIe(t){return t.kind===1}function Nq(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(Im(t.original))}var wq,ZOe,Iye,pft=G({"src/services/codefixes/convertToAsyncFunction.ts"(){El(),hp(),wq="convertToAsyncFunction",ZOe=[w.This_may_be_converted_to_an_async_function.code],Iye=!0,up({errorCodes:ZOe,getCodeActions(t){Iye=!0;const r=Hs.ChangeTracker.with(t,s=>dKe(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return Iye?[Hc(wq,r,w.Convert_to_async_function,wq,w.Convert_all_to_async_functions)]:[]},fixIds:[wq],getAllCodeActions:t=>Km(t,ZOe,(r,s)=>dKe(r,s.file,s.start,t.program.getTypeChecker()))})}});function mft(t,r,s,l){for(const m of t.imports){const y=XU(t,m.text,kA(t,m));if(!y||y.resolvedFileName!==r.fileName)continue;const T=b2(m);switch(T.kind){case 271:s.replaceNode(t,T,Pk(T.name,void 0,m,l));break;case 213:eT(T,!1)&&s.replaceNode(t,T,be.createPropertyAccessExpression(Rg(T),"default"));break}}}function gft(t,r,s,l,m){const y={original:xft(t),additional:new Set},T=TKe(t,r,y);hft(t,T,s);let D=!1,I;for(const W of gi(t.statements,Dh)){const O=SKe(t,W,s,r,y,l,m);O&&tY(O,I??(I=new Map))}for(const W of gi(t.statements,O=>!Dh(O))){const O=yft(t,W,r,s,y,l,T,I,m);D=D||O}return I==null||I.forEach((W,O)=>{s.replaceNode(t,O,W)}),D}function TKe(t,r,s){const l=new Map;return e7e(t,m=>{const{text:y}=m.name;!l.has(y)&&(yH(m.name)||r.resolveName(y,m,111551,!0))&&l.set(y,kye(`_${y}`,s))}),l}function hft(t,r,s){e7e(t,(l,m)=>{if(m)return;const{text:y}=l.name;s.replaceNode(t,l,be.createIdentifier(r.get(y)||y))})}function e7e(t,r){t.forEachChild(function s(l){if(sa(l)&&w3(t,l.expression)&&An(l.name)){const{parent:m}=l;r(l,ys(m)&&m.left===l&&m.operatorToken.kind===64)}l.forEachChild(s)})}function yft(t,r,s,l,m,y,T,D,I){switch(r.kind){case 243:return SKe(t,r,l,s,m,y,I),!1;case 244:{const{expression:W}=r;switch(W.kind){case 213:return eT(W,!0)&&l.replaceNode(t,r,Pk(void 0,void 0,W.arguments[0],I)),!1;case 226:{const{operatorToken:O}=W;return O.kind===64&&bft(t,s,W,l,T,D)}}}default:return!1}}function SKe(t,r,s,l,m,y,T){const{declarationList:D}=r;let I=!1;const W=Vn(D.declarations,O=>{const{name:V,initializer:ee}=O;if(ee){if(w3(t,ee))return I=!0,Rq([]);if(eT(ee,!0))return I=!0,iIe(V,ee.arguments[0],l,m,y,T);if(sa(ee)&&eT(ee.expression,!0))return I=!0,vft(V,ee.name.text,ee.expression.arguments[0],m,T)}return Rq([be.createVariableStatement(void 0,be.createVariableDeclarationList([O],D.flags))])});if(I){s.replaceNodeWithNodes(t,r,ea(W,V=>V.newImports));let O;return Ot(W,V=>{V.useSitesToUnqualify&&tY(V.useSitesToUnqualify,O??(O=new Map))}),O}}function vft(t,r,s,l,m){switch(t.kind){case 206:case 207:{const y=kye(r,l);return Rq([Pye(y,r,s,m),_B(void 0,t,be.createIdentifier(y))])}case 80:return Rq([Pye(t.text,r,s,m)]);default:return ce.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function bft(t,r,s,l,m,y){const{left:T,right:D}=s;if(!sa(T))return!1;if(w3(t,T))if(w3(t,D))l.delete(t,s.parent);else{const I=Wd(D)?Tft(D,y):eT(D,!0)?t7e(D.arguments[0],r):void 0;return I?(l.replaceNodeWithNodes(t,s.parent,I[0]),I[1]):(l.replaceRangeWithText(t,tv(T.getStart(t),D.pos),"export default"),!0)}else w3(t,T.expression)&&EKe(t,s,l,m);return!1}function Tft(t,r){const s=fA(t.properties,l=>{switch(l.kind){case 177:case 178:case 304:case 305:return;case 303:return An(l.name)?Sft(l.name.text,l.initializer,r):void 0;case 174:return An(l.name)?a7e(l.name.text,[be.createToken(95)],l,r):void 0;default:ce.assertNever(l,`Convert to ES6 got invalid prop kind ${l.kind}`)}});return s&&[s,!1]}function EKe(t,r,s,l){const{text:m}=r.left.name,y=l.get(m);if(y!==void 0){const T=[_B(void 0,y,r.right),s7e([be.createExportSpecifier(!1,y,m)])];s.replaceNodeWithNodes(t,r.parent,T)}else r7e(r,t,s)}function t7e(t,r){const s=t.text,l=r.getSymbolAtLocation(t),m=l?l.exports:zy;return m.has("export=")?[[n7e(s)],!0]:m.has("default")?m.size>1?[[xKe(s),n7e(s)],!0]:[[n7e(s)],!0]:[[xKe(s)],!1]}function xKe(t){return s7e(void 0,t)}function n7e(t){return s7e([be.createExportSpecifier(!1,void 0,"default")],t)}function r7e({left:t,right:r,parent:s},l,m){const y=t.name.text;if((Dm(r)||ph(r)||B0(r))&&(!r.name||r.name.text===y)){m.replaceRange(l,{pos:t.getStart(l),end:r.getStart(l)},be.createToken(95),{suffix:" "}),r.name||m.insertName(l,r,y);const T=Wm(s,27,l);T&&m.delete(l,T)}else m.replaceNodeRangeWithNodes(l,t.expression,Wm(t,25,l),[be.createToken(95),be.createToken(87)],{joiner:" ",suffix:" "})}function Sft(t,r,s){const l=[be.createToken(95)];switch(r.kind){case 218:{const{name:y}=r;if(y&&y.text!==t)return m()}case 219:return a7e(t,l,r,s);case 231:return AKe(t,l,r,s);default:return m()}function m(){return _B(l,be.createIdentifier(t),i7e(r,s))}}function i7e(t,r){if(!r||!gt(oc(r.keys()),l=>sS(t,l)))return t;return ls(t)?sce(t,!0,s):iq(t,!0,s);function s(l){if(l.kind===211){const m=r.get(l);return r.delete(l),m}}}function iIe(t,r,s,l,m,y){switch(t.kind){case 206:{const T=fA(t.elements,D=>D.dotDotDotToken||D.initializer||D.propertyName&&!An(D.propertyName)||!An(D.name)?void 0:oIe(D.propertyName&&D.propertyName.text,D.name.text));if(T)return Rq([Pk(void 0,T,r,y)])}case 207:{const T=kye(Wye(r.text,m),l);return Rq([Pk(be.createIdentifier(T),void 0,r,y),_B(void 0,Rg(t),be.createIdentifier(T))])}case 80:return Eft(t,r,s,l,y);default:return ce.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function Eft(t,r,s,l,m){const y=s.getSymbolAtLocation(t),T=new Map;let D=!1,I;for(const O of l.original.get(t.text)){if(s.getSymbolAtLocation(O)!==y||O===t)continue;const{parent:V}=O;if(sa(V)){const{name:{text:ee}}=V;if(ee==="default"){D=!0;const te=O.getText();(I??(I=new Map)).set(V,be.createIdentifier(te))}else{ce.assert(V.expression===O,"Didn't expect expression === use");let te=T.get(ee);te===void 0&&(te=kye(ee,l),T.set(ee,te)),(I??(I=new Map)).set(V,be.createIdentifier(te))}}else D=!0}const W=T.size===0?void 0:oc(p_(T.entries(),([O,V])=>be.createImportSpecifier(!1,O===V?void 0:be.createIdentifier(O),be.createIdentifier(V))));return W||(D=!0),Rq([Pk(D?Rg(t):void 0,W,r,m)],I)}function kye(t,r){for(;r.original.has(t)||r.additional.has(t);)t=`_${t}`;return r.additional.add(t),t}function xft(t){const r=zg();return o7e(t,s=>r.add(s.text,s)),r}function o7e(t,r){An(t)&&Aft(t)&&r(t),t.forEachChild(s=>o7e(s,r))}function Aft(t){const{parent:r}=t;switch(r.kind){case 211:return r.name!==t;case 208:return r.propertyName!==t;case 276:return r.propertyName!==t;default:return!0}}function a7e(t,r,s,l){return be.createFunctionDeclaration(Hi(r,J3(s.modifiers)),Rg(s.asteriskToken),t,J3(s.typeParameters),J3(s.parameters),Rg(s.type),be.converters.convertToFunctionBlock(i7e(s.body,l)))}function AKe(t,r,s,l){return be.createClassDeclaration(Hi(r,J3(s.modifiers)),t,J3(s.typeParameters),J3(s.heritageClauses),i7e(s.members,l))}function Pye(t,r,s,l){return r==="default"?Pk(be.createIdentifier(t),void 0,s,l):Pk(void 0,[oIe(r,t)],s,l)}function oIe(t,r){return be.createImportSpecifier(!1,t!==void 0&&t!==r?be.createIdentifier(t):void 0,be.createIdentifier(r))}function _B(t,r,s){return be.createVariableStatement(t,be.createVariableDeclarationList([be.createVariableDeclaration(r,void 0,void 0,s)],2))}function s7e(t,r){return be.createExportDeclaration(void 0,!1,t&&be.createNamedExports(t),r===void 0?void 0:be.createStringLiteral(r))}function Rq(t,r){return{newImports:t,useSitesToUnqualify:r}}var CKe=G({"src/services/codefixes/convertToEsModule.ts"(){El(),hp(),up({errorCodes:[w.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:r,program:s,preferences:l}=t,m=Hs.ChangeTracker.with(t,y=>{if(gft(r,s.getTypeChecker(),y,iu(s.getCompilerOptions()),Jx(r,l)))for(const D of s.getSourceFiles())mft(D,r,y,Jx(D,l))});return[mC("convertToEsModule",m,w.Convert_to_ES_module)]}})}});function Nye(t,r){const s=Kr(bf(t,r),nT);return ce.assert(!!s,"Expected position to be owned by a qualified name."),An(s.left)?s:void 0}function aIe(t,r,s){const l=s.right.text,m=be.createIndexedAccessTypeNode(be.createTypeReferenceNode(s.left,void 0),be.createLiteralTypeNode(be.createStringLiteral(l)));t.replaceNode(r,s,m)}var sIe,cIe,DKe=G({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){El(),hp(),sIe="correctQualifiedNameToIndexedAccessType",cIe=[w.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],up({errorCodes:cIe,getCodeActions(t){const r=Nye(t.sourceFile,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,m=>aIe(m,t.sourceFile,r)),l=`${r.left.text}["${r.right.text}"]`;return[Hc(sIe,s,[w.Rewrite_as_the_indexed_access_type_0,l],sIe,w.Rewrite_all_as_indexed_access_types)]},fixIds:[sIe],getAllCodeActions:t=>Km(t,cIe,(r,s)=>{const l=Nye(s.file,s.start);l&&aIe(r,s.file,l)})})}});function IKe(t,r){return to(bf(r,t.start).parent,Oy)}function wye(t,r,s){if(!r)return;const l=r.parent,m=l.parent,y=lIe(r,s);if(y.length===l.elements.length)t.insertModifierBefore(s.sourceFile,156,l);else{const T=be.updateExportDeclaration(m,m.modifiers,!1,be.updateNamedExports(l,gi(l.elements,I=>!ni(y,I))),m.moduleSpecifier,void 0),D=be.createExportDeclaration(void 0,!0,be.createNamedExports(y),m.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,m,T,{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,m,D)}}function lIe(t,r){const s=t.parent;if(s.elements.length===1)return s.elements;const l=nhe(gE(s),r.program.getSemanticDiagnostics(r.sourceFile,r.cancellationToken));return gi(s.elements,m=>{var y;return m===t||((y=gce(m,l))==null?void 0:y.code)===uIe[0]})}var uIe,Rye,kKe=G({"src/services/codefixes/convertToTypeOnlyExport.ts"(){El(),hp(),uIe=[w.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Rye="convertToTypeOnlyExport",up({errorCodes:uIe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>wye(l,IKe(r.span,r.sourceFile),r));if(s.length)return[Hc(Rye,s,w.Convert_to_type_only_export,Rye,w.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Rye],getAllCodeActions:function(r){const s=new Map;return Km(r,uIe,(l,m)=>{const y=IKe(m,r.sourceFile);y&&y0(s,Im(y.parent.parent))&&wye(l,y,r)})}})}});function yle(t,r){const{parent:s}=bf(t,r);return oS(s)||Fv(s)&&s.importClause?s:void 0}function fIe(t,r,s){if(t.parent.parent.name)return!1;const l=t.parent.elements.filter(y=>!y.isTypeOnly);if(l.length===1)return!0;const m=s.getTypeChecker();for(const y of l)if(Wf.Core.eachSymbolReferenceInFile(y.name,m,r,D=>!EA(D)))return!1;return!0}function Yj(t,r,s){var l;if(oS(s))t.replaceNode(r,s,be.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const m=s.importClause;if(m.name&&m.namedBindings)t.replaceNodeWithNodes(r,s,[be.createImportDeclaration(J3(s.modifiers,!0),be.createImportClause(!0,Rg(m.name,!0),void 0),Rg(s.moduleSpecifier,!0),Rg(s.assertClause,!0)),be.createImportDeclaration(J3(s.modifiers,!0),be.createImportClause(!0,void 0,Rg(m.namedBindings,!0)),Rg(s.moduleSpecifier,!0),Rg(s.assertClause,!0))]);else{const y=((l=m.namedBindings)==null?void 0:l.kind)===275?be.updateNamedImports(m.namedBindings,Ol(m.namedBindings.elements,D=>be.updateImportSpecifier(D,!1,D.propertyName,D.name))):m.namedBindings,T=be.updateImportDeclaration(s,s.modifiers,be.updateImportClause(m,!0,m.name,y),s.moduleSpecifier,s.assertClause);t.replaceNode(r,s,T)}}}var c7e,vle,Cft=G({"src/services/codefixes/convertToTypeOnlyImport.ts"(){El(),hp(),c7e=[w.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],vle="convertToTypeOnlyImport",up({errorCodes:c7e,getCodeActions:function(r){var s;const l=yle(r.sourceFile,r.span.start);if(l){const m=Hs.ChangeTracker.with(r,D=>Yj(D,r.sourceFile,l)),y=l.kind===276&&fIe(l,r.sourceFile,r.program)?Hs.ChangeTracker.with(r,D=>Yj(D,r.sourceFile,l.parent.parent.parent)):void 0,T=Hc(vle,m,l.kind===276?[w.Use_type_0,((s=l.propertyName)==null?void 0:s.text)??l.name.text]:w.Use_import_type,vle,w.Fix_all_with_type_only_imports);return gt(y)?[mC(vle,y,w.Use_import_type),T]:[T]}},fixIds:[vle],getAllCodeActions:function(r){const s=new Set;return Km(r,c7e,(l,m)=>{const y=yle(m.file,m.start);(y==null?void 0:y.kind)===272&&!s.has(y)?(Yj(l,m.file,y),s.add(y)):(y==null?void 0:y.kind)===276&&!s.has(y.parent.parent.parent)&&fIe(y,m.file,r.program)?(Yj(l,m.file,y.parent.parent.parent),s.add(y.parent.parent.parent)):(y==null?void 0:y.kind)===276&&Yj(l,m.file,y)})}})}});function l7e(t,r,s,l,m=!1){if(!A2(r))return;const y=Ift(r);if(!y)return;const T=r.parent,{leftSibling:D,rightSibling:I}=Dft(r);let W=T.getStart(),O="";!D&&T.comment&&(W=PKe(T,T.getStart(),r.getStart()),O=`${l} */${l}`),D&&(m&&A2(D)?(W=r.getStart(),O=""):(W=PKe(T,D.getStart(),r.getStart()),O=`${l} */${l}`));let V=T.getEnd(),ee="";I&&(m&&A2(I)?(V=I.getStart(),ee=`${l}${l}`):(V=I.getStart(),ee=`${l}/**${l} * `)),t.replaceRange(s,{pos:W,end:V},y,{prefix:O,suffix:ee})}function Dft(t){const r=t.parent,s=r.getChildCount()-1,l=r.getChildren().findIndex(T=>T.getStart()===t.getStart()&&T.getEnd()===t.getEnd()),m=l>0?r.getChildAt(l-1):void 0,y=l0;m--)if(!/[*/\s]/g.test(l.substring(m-1,m)))return r+m;return s}function Ift(t){var r;const{typeExpression:s}=t;if(!s)return;const l=(r=t.name)==null?void 0:r.getText();if(l){if(s.kind===329)return NKe(l,s);if(s.kind===316)return kft(l,s)}}function NKe(t,r){const s=wKe(r);if(gt(s))return be.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function kft(t,r){const s=Rg(r.type);if(s)return be.createTypeAliasDeclaration(void 0,be.createIdentifier(t),void 0,s)}function wKe(t){const r=t.jsDocPropertyTags;return gt(r)?Qo(r,l=>{var m;const y=_Ie(l),T=(m=l.typeExpression)==null?void 0:m.type,D=l.isBracketed;let I;if(T&&EW(T)){const W=wKe(T);I=be.createTypeLiteralNode(W)}else T&&(I=Rg(T));if(I&&y){const W=D?be.createToken(58):void 0;return be.createPropertySignature(void 0,y,W,I)}}):void 0}function _Ie(t){return t.name.kind===80?t.name.text:t.name.right.text}function u7e(t){return g1(t)?ea(t.jsDoc,r=>{var s;return(s=r.tags)==null?void 0:s.filter(l=>A2(l))}):[]}var dIe,pIe,RKe=G({"src/services/codefixes/convertTypedefToType.ts"(){El(),hp(),dIe="convertTypedefToType",pIe=[w.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],up({fixIds:[dIe],errorCodes:pIe,getCodeActions(t){const r=NP(t.host,t.formatContext.options),s=bf(t.sourceFile,t.span.start);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>l7e(m,s,t.sourceFile,r));if(l.length>0)return[Hc(dIe,l,w.Convert_typedef_to_TypeScript_type,dIe,w.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>Km(t,pIe,(r,s)=>{const l=NP(t.host,t.formatContext.options),m=bf(s.file,s.start);m&&l7e(r,m,s.file,l,!0)})})}});function Mye(t,r){const s=bf(t,r);if(An(s)){const l=uc(s.parent.parent,Np),m=s.getText(t);return{container:uc(l.parent,e0),typeNode:l.type,constraint:m,name:m==="K"?"P":"K"}}}function mIe(t,r,{container:s,typeNode:l,constraint:m,name:y}){t.replaceNode(r,s,be.createMappedTypeNode(void 0,be.createTypeParameterDeclaration(void 0,y,be.createTypeReferenceNode(m)),void 0,void 0,l,void 0))}var gIe,hIe,MKe=G({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){El(),hp(),gIe="convertLiteralTypeToMappedType",hIe=[w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],up({errorCodes:hIe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Mye(s,l.start);if(!m)return;const{name:y,constraint:T}=m,D=Hs.ChangeTracker.with(r,I=>mIe(I,s,m));return[Hc(gIe,D,[w.Convert_0_to_1_in_0,T,y],gIe,w.Convert_all_type_literals_to_mapped_type)]},fixIds:[gIe],getAllCodeActions:t=>Km(t,hIe,(r,s)=>{const l=Mye(s.file,s.start);l&&mIe(r,s.file,l)})})}});function f7e(t,r){return ce.checkDefined(h0(bf(t,r)),"There should be a containing class")}function LKe(t){return!t.valueDeclaration||!(tS(t.valueDeclaration)&8)}function yIe(t,r,s,l,m,y){const T=t.program.getTypeChecker(),D=vIe(l,T),I=T.getTypeAtLocation(r),O=T.getPropertiesOfType(I).filter(bb(LKe,ue=>!D.has(ue.escapedName))),V=T.getTypeAtLocation(l),ee=lr(l.members,ue=>pg(ue));V.getNumberIndexType()||oe(I,1),V.getStringIndexType()||oe(I,0);const te=Qj(s,t.program,y,t.host);dB(l,O,s,t,y,te,ue=>de(s,l,ue)),te.writeFixes(m);function oe(ue,Ne){const Be=T.getIndexInfoOfType(ue,Ne);Be&&de(s,l,T.indexInfoToIndexSignatureDeclaration(Be,l,void 0,iV(t)))}function de(ue,Ne,Be){ee?m.insertNodeAfter(ue,ee,Be):m.insertMemberAtStart(ue,Ne,Be)}}function vIe(t,r){const s=hA(t);if(!s)return Td();const l=r.getTypeAtLocation(s),m=r.getPropertiesOfType(l);return Td(m.filter(LKe))}var _7e,Z3,OKe=G({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){El(),hp(),_7e=[w.Class_0_incorrectly_implements_interface_1.code,w.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Z3="fixClassIncorrectlyImplementsInterface",up({errorCodes:_7e,getCodeActions(t){const{sourceFile:r,span:s}=t,l=f7e(r,s.start);return Qo(qb(l),m=>{const y=Hs.ChangeTracker.with(t,T=>yIe(t,m,r,l,T,t.preferences));return y.length===0?void 0:Hc(Z3,y,[w.Implement_interface_0,m.getText(r)],Z3,w.Implement_all_unimplemented_interfaces)})},fixIds:[Z3],getAllCodeActions(t){const r=new Map;return Km(t,_7e,(s,l)=>{const m=f7e(l.file,l.start);if(y0(r,Im(m)))for(const y of qb(m))yIe(t,y,l.file,m,s,t.preferences)})}})}});function Qj(t,r,s,l,m){return FKe(t,r,!1,s,l,m)}function FKe(t,r,s,l,m,y){const T=r.getCompilerOptions(),D=[],I=[],W=new Map,O=new Map;return{addImportFromDiagnostic:V,addImportFromExportedSymbol:ee,writeFixes:oe,hasFixes:de};function V(ue,Ne){const Be=g7e(Ne,ue.code,ue.start,s);!Be||!Be.length||te(Dl(Be))}function ee(ue,Ne){const Be=ce.checkDefined(ue.parent),Ve=cq(ue,iu(T)),pt=r.getTypeChecker(),Le=pt.getMergedSymbol(dg(ue,pt)),ht=Lye(t,Le,Ve,Be,!1,r,m,l,y),ke=EIe(t,r),_t=d7e(t,ce.checkDefined(ht),r,void 0,!!Ne,ke,m,l);_t&&te({fix:_t,symbolName:Ve,errorIdentifierText:void 0})}function te(ue){var Ne,Be;const{fix:Ve,symbolName:pt}=ue;switch(Ve.kind){case 0:D.push(Ve);break;case 1:I.push(Ve);break;case 2:{const{importClauseOrBindingPattern:_t,importKind:Dt,addAsTypeOnly:Ft}=Ve,it=String(Im(_t));let Ye=W.get(it);if(Ye||W.set(it,Ye={importClauseOrBindingPattern:_t,defaultImport:void 0,namedImports:new Map}),Dt===0){const ut=Ye==null?void 0:Ye.namedImports.get(pt);Ye.namedImports.set(pt,Le(ut,Ft))}else ce.assert(Ye.defaultImport===void 0||Ye.defaultImport.name===pt,"(Add to Existing) Default import should be missing or match symbolName"),Ye.defaultImport={name:pt,addAsTypeOnly:Le((Ne=Ye.defaultImport)==null?void 0:Ne.addAsTypeOnly,Ft)};break}case 3:{const{moduleSpecifier:_t,importKind:Dt,useRequire:Ft,addAsTypeOnly:it}=Ve,Ye=ht(_t,Dt,Ft,it);switch(ce.assert(Ye.useRequire===Ft,"(Add new) Tried to add an `import` and a `require` for the same module"),Dt){case 1:ce.assert(Ye.defaultImport===void 0||Ye.defaultImport.name===pt,"(Add new) Default import should be missing or match symbolName"),Ye.defaultImport={name:pt,addAsTypeOnly:Le((Be=Ye.defaultImport)==null?void 0:Be.addAsTypeOnly,it)};break;case 0:const ut=(Ye.namedImports||(Ye.namedImports=new Map)).get(pt);Ye.namedImports.set(pt,Le(ut,it));break;case 3:case 2:ce.assert(Ye.namespaceLikeImport===void 0||Ye.namespaceLikeImport.name===pt,"Namespacelike import shoudl be missing or match symbolName"),Ye.namespaceLikeImport={importKind:Dt,name:pt,addAsTypeOnly:it};break}break}case 4:break;default:ce.assertNever(Ve,`fix wasn't never - got kind ${Ve.kind}`)}function Le(_t,Dt){return Math.max(_t??0,Dt)}function ht(_t,Dt,Ft,it){const Ye=ke(_t,!0),ut=ke(_t,!1),lt=O.get(Ye),zt=O.get(ut),Wt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ft};return Dt===1&&it===2?lt||(O.set(Ye,Wt),Wt):it===1&&(lt||zt)?lt||zt:zt||(O.set(ut,Wt),Wt)}function ke(_t,Dt){return`${Dt?1:0}|${_t}`}}function oe(ue,Ne){let Be;t.imports.length===0&&Ne!==void 0?Be=Ne:Be=Jx(t,l);for(const pt of D)AIe(ue,t,pt);for(const pt of I)CIe(ue,t,pt,Be);W.forEach(({importClauseOrBindingPattern:pt,defaultImport:Le,namedImports:ht})=>{A7e(ue,t,pt,Le,oc(ht.entries(),([ke,_t])=>({addAsTypeOnly:_t,name:ke})),l)});let Ve;O.forEach(({useRequire:pt,defaultImport:Le,namedImports:ht,namespaceLikeImport:ke},_t)=>{const Dt=_t.slice(2),it=(pt?D7e:C7e)(Dt,Be,Le,ht&&oc(ht.entries(),([Ye,ut])=>({addAsTypeOnly:ut,name:Ye})),ke,T);Ve=FD(Ve,it)}),Ve&&OS(ue,t,Ve,!0,l)}function de(){return D.length>0||I.length>0||W.size>0||O.size>0}}function Pft(t,r,s,l){const m=oB(t,l,s),y=m7e(r.getTypeChecker(),t,r.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:T};function T(D,I,W,O){const{fixes:V,computedWithoutCacheCount:ee}=bIe(D,I,W,!1,r,t,s,l,y,O),te=h7e(V,t,r,m,s);return te&&{...te,computedWithoutCacheCount:ee}}}function WKe(t,r,s,l,m,y,T,D,I,W,O,V){const ee=D.getCompilerOptions();let te;s?(te=fq(l,T,D,O,V).get(l.path,s),ce.assertIsDefined(te,"Some exportInfo should match the specified exportMapKey")):(te=vMe(HE(r.name))?[Nft(t,m,r,D,T)]:Lye(l,t,m,r,y,D,T,O,V),ce.assertIsDefined(te,"Some exportInfo should match the specified symbol / moduleSymbol"));const oe=EIe(l,D),de=EA(bf(l,W)),ue=ce.checkDefined(d7e(l,te,D,W,de,oe,T,O));return{moduleSpecifier:ue.moduleSpecifier,codeAction:zKe(xIe({host:T,formatContext:I,preferences:O},l,m,ue,!1,ee,O))}}function BKe(t,r,s,l,m,y){const T=s.getCompilerOptions(),D=_U(T7e(t,s.getTypeChecker(),r,T)),I=$Ke(t,r,D,s),W=D!==r.text;return I&&zKe(xIe({host:l,formatContext:m,preferences:y},t,D,I,W,T,y))}function d7e(t,r,s,l,m,y,T,D){const I=oB(t,D,T);return h7e(bIe(r,l,m,y,s,t,T,D).fixes,t,s,I,T)}function zKe({description:t,changes:r,commands:s}){return{description:t,changes:r,commands:s}}function Lye(t,r,s,l,m,y,T,D,I){const W=GKe(y,T);return fq(t,T,y,D,I).search(t.path,m,O=>O===s,O=>{if(dg(O[0].symbol,W(O[0].isFromPackageJson))===r&&O.some(V=>V.moduleSymbol===l||V.symbol.parent===l))return O})}function Nft(t,r,s,l,m){var y,T;const D=l.getCompilerOptions(),I=O(l.getTypeChecker(),!1);if(I)return I;const W=(T=(y=m.getPackageJsonAutoImportProvider)==null?void 0:y.call(m))==null?void 0:T.getTypeChecker();return ce.checkDefined(W&&O(W,!0),"Could not find symbol in specified module for code actions");function O(V,ee){const te=_he(s,V,D);if(te&&dg(te.symbol,V)===t)return{symbol:te.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:te.exportKind,targetFlags:dg(t,V).flags,isFromPackageJson:ee};const oe=V.tryGetMemberInModuleExportsAndProperties(r,s);if(oe&&dg(oe,V)===t)return{symbol:oe,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:dg(t,V).flags,isFromPackageJson:ee}}}function bIe(t,r,s,l,m,y,T,D,I=m7e(m.getTypeChecker(),y,m.getCompilerOptions()),W){const O=m.getTypeChecker(),V=ea(t,I.getImportsForExportInfo),ee=r!==void 0&&p7e(V,r),te=SIe(V,s,O,m.getCompilerOptions());if(te)return{computedWithoutCacheCount:0,fixes:[...ee?[ee]:Zn,te]};const{fixes:oe,computedWithoutCacheCount:de=0}=jKe(t,V,m,y,r,s,l,T,D,W);return{computedWithoutCacheCount:de,fixes:[...ee?[ee]:Zn,...oe]}}function p7e(t,r){return Yr(t,({declaration:s,importKind:l})=>{var m;if(l!==0)return;const y=wft(s),T=y&&((m=UL(s))==null?void 0:m.text);if(T)return{kind:0,namespacePrefix:y,usagePosition:r,moduleSpecifier:T}})}function wft(t){var r,s,l;switch(t.kind){case 260:return(r=to(t.name,An))==null?void 0:r.text;case 271:return t.name.text;case 272:return(l=to((s=t.importClause)==null?void 0:s.namedBindings,QL))==null?void 0:l.name.text;default:return ce.assertNever(t)}}function TIe(t,r,s,l,m,y){return t?r&&y.importsNotUsedAsValues===2||Qie(y)&&(!(l&111551)||m.getTypeOnlyAliasDeclaration(s))?2:1:4}function SIe(t,r,s,l){let m;for(const T of t){const D=y(T);if(!D)continue;const I=$g(D.importClauseOrBindingPattern);if(D.addAsTypeOnly!==4&&I||D.addAsTypeOnly===4&&!I)return D;m??(m=D)}return m;function y({declaration:T,importKind:D,symbol:I,targetFlags:W}){if(D===3||D===2||T.kind===271)return;if(T.kind===260)return(D===0||D===1)&&T.name.kind===206?{kind:2,importClauseOrBindingPattern:T.name,importKind:D,moduleSpecifier:T.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:O}=T;if(!O||!sp(T.moduleSpecifier))return;const{name:V,namedBindings:ee}=O;if(O.isTypeOnly&&!(D===0&&ee))return;const te=TIe(r,!1,I,W,s,l);if(!(D===1&&(V||te===2&&ee))&&!(D===0&&(ee==null?void 0:ee.kind)===274))return{kind:2,importClauseOrBindingPattern:O,importKind:D,moduleSpecifier:T.moduleSpecifier.text,addAsTypeOnly:te}}}function m7e(t,r,s){let l;for(const m of r.imports){const y=b2(m);if(sH(y.parent)){const T=t.resolveExternalModuleName(m);T&&(l||(l=zg())).add(Bp(T),y.parent)}else if(y.kind===272||y.kind===271){const T=t.getSymbolAtLocation(m);T&&(l||(l=zg())).add(Bp(T),y)}}return{getImportsForExportInfo:({moduleSymbol:m,exportKind:y,targetFlags:T,symbol:D})=>{if(!(T&111551)&&v1(r))return Zn;const I=l==null?void 0:l.get(Bp(m));if(!I)return Zn;const W=v7e(r,y,s);return I.map(O=>({declaration:O,importKind:W,symbol:D,targetFlags:T}))}}}function EIe(t,r){if(!v1(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=r.getCompilerOptions();if(s.configFile)return Zp(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const l of r.getSourceFiles())if(!(l===t||!v1(l)||r.isSourceFileFromExternalLibrary(l))){if(l.commonJsModuleIndicator&&!l.externalModuleIndicator)return!0;if(l.externalModuleIndicator&&!l.commonJsModuleIndicator)return!1}return!0}function GKe(t,r){return p0(s=>s?r.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function Rft(t,r,s,l,m,y,T,D,I){const W=v1(r),O=t.getCompilerOptions(),V=y4(t,T),ee=GKe(t,T),te=Jd(O),oe=U3(te),de=I?Be=>({moduleSpecifiers:M3.tryGetModuleSpecifiersFromCache(Be,r,V,D),computedWithoutCache:!1}):(Be,Ve)=>M3.getModuleSpecifiersWithCacheInfo(Be,Ve,O,r,V,D);let ue=0;const Ne=ea(y,(Be,Ve)=>{const pt=ee(Be.isFromPackageJson),{computedWithoutCache:Le,moduleSpecifiers:ht}=de(Be.moduleSymbol,pt),ke=!!(Be.targetFlags&111551),_t=TIe(l,!0,Be.symbol,Be.targetFlags,pt,O);return ue+=Le?1:0,Qo(ht,Dt=>{var Ft;if(oe&&NW(Dt))return;if(!ke&&W&&s!==void 0)return{kind:1,moduleSpecifier:Dt,usagePosition:s,exportInfo:Be,isReExport:Ve>0};const it=v7e(r,Be.exportKind,O);let Ye;if(s!==void 0&&it===3&&Be.exportKind===0){const ut=pt.resolveExternalModuleSymbol(Be.moduleSymbol);let lt;ut!==Be.moduleSymbol&&(lt=(Ft=GAe(ut,pt,O))==null?void 0:Ft.name),lt||(lt=Fye(Be.moduleSymbol,iu(O),!1)),Ye={namespacePrefix:lt,usagePosition:s}}return{kind:3,moduleSpecifier:Dt,importKind:it,useRequire:m,addAsTypeOnly:_t,exportInfo:Be,isReExport:Ve>0,qualification:Ye}})});return{computedWithoutCacheCount:ue,fixes:Ne}}function jKe(t,r,s,l,m,y,T,D,I,W){const O=Yr(r,V=>Mft(V,y,T,s.getTypeChecker(),s.getCompilerOptions()));return O?{fixes:[O]}:Rft(s,l,m,y,T,t,D,I,W)}function Mft({declaration:t,importKind:r,symbol:s,targetFlags:l},m,y,T,D){var I;const W=(I=UL(t))==null?void 0:I.text;if(W){const O=y?4:TIe(m,!0,s,l,T,D);return{kind:3,moduleSpecifier:W,importKind:r,addAsTypeOnly:O,useRequire:y}}}function g7e(t,r,s,l){const m=bf(t.sourceFile,s);let y;if(r===w._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)y=y7e(t,m);else if(An(m))if(r===w._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const D=_U(T7e(t.sourceFile,t.program.getTypeChecker(),m,t.program.getCompilerOptions())),I=$Ke(t.sourceFile,m,D,t.program);return I&&[{fix:I,symbolName:D,errorIdentifierText:m.text}]}else y=b7e(t,m,l);else return;const T=oB(t.sourceFile,t.preferences,t.host);return y&&VKe(y,t.sourceFile,t.program,T,t.host)}function VKe(t,r,s,l,m){const y=T=>_h(T,m.getCurrentDirectory(),hR(m));return fN(t,(T,D)=>Z0(!!T.isJsxNamespaceFix,!!D.isJsxNamespaceFix)||pf(T.fix.kind,D.fix.kind)||UKe(T.fix,D.fix,r,s,l.allowsImportingSpecifier,y))}function h7e(t,r,s,l,m){if(gt(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((y,T)=>UKe(T,y,r,s,l.allowsImportingSpecifier,D=>_h(D,m.getCurrentDirectory(),hR(m)))===-1?T:y)}function UKe(t,r,s,l,m,y){return t.kind!==0&&r.kind!==0?Z0(m(r.moduleSpecifier),m(t.moduleSpecifier))||Oft(t.moduleSpecifier,r.moduleSpecifier,s,l)||Z0(HKe(t,s,l.getCompilerOptions(),y),HKe(r,s,l.getCompilerOptions(),y))||Z9(t.moduleSpecifier,r.moduleSpecifier):0}function HKe(t,r,s,l){var m;if(t.isReExport&&((m=t.exportInfo)!=null&&m.moduleFileName)&&Jd(s)===2&&Lft(t.exportInfo.moduleFileName)){const y=l(qc(t.exportInfo.moduleFileName));return xf(r.path,y)}return!1}function Lft(t){return Iy(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Oft(t,r,s,l){return xf(t,"node:")&&!xf(r,"node:")?hce(s,l)?-1:1:xf(r,"node:")&&!xf(t,"node:")?hce(s,l)?1:-1:0}function y7e({sourceFile:t,program:r,host:s,preferences:l},m){const y=r.getTypeChecker(),T=Fft(m,y);if(!T)return;const D=y.getAliasedSymbol(T),I=T.name,W=[{symbol:T,moduleSymbol:D,moduleFileName:void 0,exportKind:3,targetFlags:D.flags,isFromPackageJson:!1}],O=EIe(t,r);return bIe(W,void 0,!1,O,r,t,s,l).fixes.map(ee=>{var te;return{fix:ee,symbolName:I,errorIdentifierText:(te=to(m,An))==null?void 0:te.text}})}function Fft(t,r){const s=An(t)?r.getSymbolAtLocation(t):void 0;if(MH(s))return s;const{parent:l}=t;if(Y1(l)&&l.tagName===t||zx(l)){const m=r.resolveName(r.getJsxNamespace(l),Y1(l)?t:l,111551,!1);if(MH(m))return m}}function v7e(t,r,s,l){if(s.verbatimModuleSyntax&&(Zp(s)===1||t.impliedNodeFormat===1))return 3;switch(r){case 0:return 0;case 1:return 1;case 2:return Bft(t,s,!!l);case 3:return JKe(t,s,!!l);default:return ce.assertNever(r)}}function JKe(t,r,s){if(VN(r))return 1;const l=Zp(r);switch(l){case 2:case 1:case 3:return Rs(t)&&(Wv(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 ce.assertNever(l,`Unexpected moduleKind ${l}`)}}function b7e({sourceFile:t,program:r,cancellationToken:s,host:l,preferences:m},y,T){const D=r.getTypeChecker(),I=r.getCompilerOptions();return ea(T7e(t,D,y,I),W=>{if(W==="default")return;const O=EA(y),V=EIe(t,r),ee=S7e(W,$M(y),z3(y),s,t,r,T,l,m);return oc(Ky(ee.values(),te=>bIe(te,y.getStart(t),O,V,r,t,l,m).fixes),te=>({fix:te,symbolName:W,errorIdentifierText:y.text,isJsxNamespaceFix:W!==y.text}))})}function $Ke(t,r,s,l){const m=l.getTypeChecker(),y=m.resolveName(s,r,111551,!0);if(!y)return;const T=m.getTypeOnlyAliasDeclaration(y);if(!(!T||ns(T)!==t))return{kind:4,typeOnlyAliasDeclaration:T}}function T7e(t,r,s,l){const m=s.parent;if((Y1(m)||Sk(m))&&m.tagName===s&&lhe(l.jsx)){const y=r.getJsxNamespace(t);if(Wft(y,s,r))return!z9(s.text)&&!r.resolveName(s.text,s,111551,!1)?[s.text,y]:[y]}return[s.text]}function Wft(t,r,s){if(z9(r.text))return!0;const l=s.resolveName(t,r,111551,!0);return!l||gt(l.declarations,sR)&&!(l.flags&111551)}function S7e(t,r,s,l,m,y,T,D,I){var W;const O=zg(),V=oB(m,I,D),ee=(W=D.getModuleSpecifierCache)==null?void 0:W.call(D),te=p0(de=>y4(de?D.getPackageJsonAutoImportProvider():y,D));function oe(de,ue,Ne,Be,Ve,pt){const Le=te(pt);if(ue&&vce(Ve,m,ue,I,V,Le,ee)||!ue&&V.allowsImportingAmbientModule(de,Le)){const ht=Ve.getTypeChecker();O.add(wj(Ne,ht).toString(),{symbol:Ne,moduleSymbol:de,moduleFileName:ue==null?void 0:ue.fileName,exportKind:Be,targetFlags:dg(Ne,ht).flags,isFromPackageJson:pt})}}return eee(y,D,I,T,(de,ue,Ne,Be)=>{const Ve=Ne.getTypeChecker();l.throwIfCancellationRequested();const pt=Ne.getCompilerOptions(),Le=_he(de,Ve,pt);Le&&(Le.name===t||Fye(de,iu(pt),r)===t)&&DIe(Le.resolvedSymbol,s)&&oe(de,ue,Le.symbol,Le.exportKind,Ne,Be);const ht=Ve.tryGetMemberInModuleExportsAndProperties(t,de);ht&&DIe(ht,s)&&oe(de,ue,ht,0,Ne,Be)}),O}function Bft(t,r,s){const l=VN(r),m=Rs(t);if(!m&&Zp(r)>=5)return l?1:2;if(m)return Wv(t)||s?l?1:2:3;for(const y of t.statements)if(kh(y)&&!Um(y.moduleReference))return 3;return l?1:3}function xIe(t,r,s,l,m,y,T){let D;const I=Hs.ChangeTracker.with(t,W=>{D=zft(W,r,s,l,m,y,T)});return Hc(Bye,I,D,zye,w.Add_all_missing_imports)}function zft(t,r,s,l,m,y,T){const D=Jx(r,T);switch(l.kind){case 0:return AIe(t,r,l),[w.Change_0_to_1,s,`${l.namespacePrefix}.${s}`];case 1:return CIe(t,r,l,D),[w.Change_0_to_1,s,Oye(l.moduleSpecifier,D)+s];case 2:{const{importClauseOrBindingPattern:I,importKind:W,addAsTypeOnly:O,moduleSpecifier:V}=l;A7e(t,r,I,W===1?{name:s,addAsTypeOnly:O}:void 0,W===0?[{name:s,addAsTypeOnly:O}]:Zn,T);const ee=HE(V);return m?[w.Import_0_from_1,s,ee]:[w.Update_import_from_0,ee]}case 3:{const{importKind:I,moduleSpecifier:W,addAsTypeOnly:O,useRequire:V,qualification:ee}=l,te=V?D7e:C7e,oe=I===1?{name:s,addAsTypeOnly:O}:void 0,de=I===0?[{name:s,addAsTypeOnly:O}]:void 0,ue=I===2||I===3?{importKind:I,name:(ee==null?void 0:ee.namespacePrefix)||s,addAsTypeOnly:O}:void 0;return OS(t,r,te(W,D,oe,de,ue,y),!0,T),ee&&AIe(t,r,ee),m?[w.Import_0_from_1,s,W]:[w.Add_import_from_0,W]}case 4:{const{typeOnlyAliasDeclaration:I}=l,W=x7e(t,I,y,r,T);return W.kind===276?[w.Remove_type_from_import_of_0_from_1,s,E7e(W.parent.parent)]:[w.Remove_type_from_import_declaration_from_0,E7e(W)]}default:return ce.assertNever(l,`Unexpected fix kind ${l.kind}`)}}function E7e(t){var r,s;return t.kind===271?((s=to((r=to(t.moduleReference,j0))==null?void 0:r.expression,sp))==null?void 0:s.text)||t.moduleReference.getText():uc(t.parent.moduleSpecifier,Wp).text}function x7e(t,r,s,l,m){const y=Qie(s);switch(r.kind){case 276:if(r.isTypeOnly){const D=CI.detectImportSpecifierSorting(r.parent.elements,m);if(r.parent.elements.length>1&&D){t.delete(l,r);const I=be.updateImportSpecifier(r,!1,r.propertyName,r.name),W=CI.getOrganizeImportsComparer(m,D===2),O=CI.getImportSpecifierInsertionIndex(r.parent.elements,I,W);t.insertImportSpecifierAtIndex(l,I,r.parent,O)}else t.deleteRange(l,r.getFirstToken());return r}else return ce.assert(r.parent.parent.isTypeOnly),T(r.parent.parent),r.parent.parent;case 273:return T(r),r;case 274:return T(r.parent),r.parent;case 271:return t.deleteRange(l,r.getChildAt(1)),r;default:ce.failBadSyntaxKind(r)}function T(D){if(t.delete(l,ice(D,l)),!s.allowImportingTsExtensions){const I=UL(D.parent),W=I&&XU(l,I.text,kA(l,I));if(W!=null&&W.resolvedUsingTsExtension){const O=RU(I.text,zQ(I.text,s));t.replaceNode(l,I,be.createStringLiteral(O))}}if(y){const I=to(D.namedBindings,y6);if(I&&I.elements.length>1){CI.detectImportSpecifierSorting(I.elements,m)&&r.kind===276&&I.elements.indexOf(r)!==0&&(t.delete(l,r),t.insertImportSpecifierAtIndex(l,r,I,0));for(const W of I.elements)W!==r&&!W.isTypeOnly&&t.insertModifierBefore(l,156,W)}}}}function A7e(t,r,s,l,m,y){var T;if(s.kind===206){l&&W(s,l.name,"default");for(const O of m)W(s,O.name,void 0);return}const D=s.isTypeOnly&>([l,...m],O=>(O==null?void 0:O.addAsTypeOnly)===4),I=s.namedBindings&&((T=to(s.namedBindings,y6))==null?void 0:T.elements);if(l&&(ce.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,s.getStart(r),be.createIdentifier(l.name),{suffix:", "})),m.length){let O;if(typeof y.organizeImportsIgnoreCase=="boolean")O=y.organizeImportsIgnoreCase;else if(I){const oe=CI.detectImportSpecifierSorting(I,y);oe!==3&&(O=oe===2)}O===void 0&&(O=CI.detectSorting(r,y)===2);const V=CI.getOrganizeImportsComparer(y,O),ee=nh(m.map(oe=>be.createImportSpecifier((!s.isTypeOnly||D)&&ble(oe),void 0,be.createIdentifier(oe.name))),(oe,de)=>CI.compareImportOrExportSpecifiers(oe,de,V)),te=(I==null?void 0:I.length)&&CI.detectImportSpecifierSorting(I,y);if(te&&!(O&&te===1))for(const oe of ee){const de=D&&!oe.isTypeOnly?0:CI.getImportSpecifierInsertionIndex(I,oe,V);t.insertImportSpecifierAtIndex(r,oe,s.namedBindings,de)}else if(I!=null&&I.length)for(const oe of ee)t.insertNodeInListAfter(r,yl(I),oe,I);else if(ee.length){const oe=be.createNamedImports(ee);s.namedBindings?t.replaceNode(r,s.namedBindings,oe):t.insertNodeAfter(r,ce.checkDefined(s.name,"Import clause must have either named imports or a default import"),oe)}}if(D&&(t.delete(r,ice(s,r)),I))for(const O of I)t.insertModifierBefore(r,156,O);function W(O,V,ee){const te=be.createBindingElement(void 0,ee,V);O.elements.length?t.insertNodeInListAfter(r,yl(O.elements),te):t.replaceNode(r,O,be.createObjectBindingPattern([te]))}}function AIe(t,r,{namespacePrefix:s,usagePosition:l}){t.insertText(r,l,s+".")}function CIe(t,r,{moduleSpecifier:s,usagePosition:l},m){t.insertText(r,l,Oye(s,m))}function Oye(t,r){const s=Jge(r);return`import(${s}${t}${s}).`}function ble({addAsTypeOnly:t}){return t===2}function C7e(t,r,s,l,m,y){const T=DF(t,r);let D;if(s!==void 0||l!=null&&l.length){const I=(!s||ble(s))&&jr(l,ble)||y.verbatimModuleSyntax&&(s==null?void 0:s.addAsTypeOnly)!==4&&!gt(l,W=>W.addAsTypeOnly===4);D=FD(D,Pk(s&&be.createIdentifier(s.name),l==null?void 0:l.map(({addAsTypeOnly:W,name:O})=>be.createImportSpecifier(!I&&W===2,void 0,be.createIdentifier(O))),t,r,I))}if(m){const I=m.importKind===3?be.createImportEqualsDeclaration(void 0,ble(m),be.createIdentifier(m.name),be.createExternalModuleReference(T)):be.createImportDeclaration(void 0,be.createImportClause(ble(m),void 0,be.createNamespaceImport(be.createIdentifier(m.name))),T,void 0);D=FD(D,I)}return ce.checkDefined(D)}function D7e(t,r,s,l,m){const y=DF(t,r);let T;if(s||l!=null&&l.length){const D=(l==null?void 0:l.map(({name:W})=>be.createBindingElement(void 0,void 0,W)))||[];s&&D.unshift(be.createBindingElement(void 0,"default",s.name));const I=I7e(be.createObjectBindingPattern(D),y);T=FD(T,I)}if(m){const D=I7e(m.name,y);T=FD(T,D)}return ce.checkDefined(T)}function I7e(t,r){return be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(typeof t=="string"?be.createIdentifier(t):t,void 0,void 0,be.createCallExpression(be.createIdentifier("require"),void 0,[r]))],2))}function DIe({declarations:t},r){return gt(t,s=>!!(G$(s)&r))}function Fye(t,r,s){return Wye(wg(HE(t.name)),r,s)}function Wye(t,r,s){const l=Iy(DM(t,"/index"));let m="",y=!0;const T=l.charCodeAt(0);nR(T,r)?(m+=String.fromCharCode(T),s&&(m=m.toUpperCase())):y=!1;for(let D=1;DxIe(t,l,I,D,I!==W,y.getCompilerOptions(),s))},fixIds:[zye],getAllCodeActions:t=>{const{sourceFile:r,program:s,preferences:l,host:m,cancellationToken:y}=t,T=FKe(r,s,!0,l,m,y);return LF(t,k7e,D=>T.addImportFromDiagnostic(D,t)),GR(Hs.ChangeTracker.with(t,T.writeFixes))}})}});function P7e(t,r,s){const l=lr(t.getSemanticDiagnostics(r),T=>T.start===s.start&&T.length===s.length);if(l===void 0||l.relatedInformation===void 0)return;const m=lr(l.relatedInformation,T=>T.code===w.This_type_parameter_might_need_an_extends_0_constraint.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;let y=yve(m.file,nb(m.start,m.length));if(y!==void 0&&(An(y)&&Hh(y.parent)&&(y=y.parent),Hh(y))){if(yW(y.parent))return;const T=bf(r,s.start),D=t.getTypeChecker();return{constraint:IIe(D,T)||Gft(m.messageText),declaration:y,token:T}}}function KKe(t,r,s,l,m,y){const{declaration:T,constraint:D}=y,I=r.getTypeChecker();if(As(D))t.insertText(m,T.name.end,` extends ${D}`);else{const W=iu(r.getCompilerOptions()),O=iV({program:r,host:l}),V=Qj(m,r,s,l),ee=gve(I,V,D,void 0,W,void 0,O);ee&&(t.replaceNode(m,T,be.updateTypeParameterDeclaration(T,void 0,T.name,ee,T.default)),V.writeFixes(t))}}function Gft(t){const[r,s]=p4(t,` -`,0).match(/`extends (.*)`/)||[];return s}function IIe(t,r){return Uu(r.parent)?t.getTypeArgumentConstraint(r.parent):(Nr(r)?t.getContextualType(r):void 0)||t.getTypeAtLocation(r)}var Tle,N7e,XKe=G({"src/services/codefixes/fixAddMissingConstraint.ts"(){El(),hp(),Tle="addMissingConstraint",N7e=[w.Type_0_is_not_comparable_to_type_1.code,w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,w.Type_0_is_not_assignable_to_type_1.code,w.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,w.Property_0_is_incompatible_with_index_signature.code,w.Property_0_in_type_1_is_not_assignable_to_type_2.code,w.Type_0_does_not_satisfy_the_constraint_1.code],up({errorCodes:N7e,getCodeActions(t){const{sourceFile:r,span:s,program:l,preferences:m,host:y}=t,T=P7e(l,r,s);if(T===void 0)return;const D=Hs.ChangeTracker.with(t,I=>KKe(I,l,m,y,r,T));return[Hc(Tle,D,w.Add_extends_constraint,Tle,w.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Tle],getAllCodeActions:t=>{const{program:r,preferences:s,host:l}=t,m=new Map;return GR(Hs.ChangeTracker.with(t,y=>{LF(t,N7e,T=>{const D=P7e(r,T.file,nb(T.start,T.length));if(D&&y0(m,Im(D.declaration)))return KKe(y,r,s,l,T.file,D)})}))}})}});function YKe(t,r,s,l){switch(s){case w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return jft(t,r.sourceFile,l);case w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return QKe(t,r.sourceFile,l);default:ce.fail("Unexpected error code: "+s)}}function jft(t,r,s){const l=kIe(r,s);if(v1(r)){t.addJSDocTags(r,l,[be.createJSDocOverrideTag(be.createIdentifier("override"))]);return}const m=l.modifiers||Zn,y=lr(m,dW),T=lr(m,ape),D=lr(m,V=>tw(V.kind)),I=ra(m,Qf),W=T?T.end:y?y.end:D?D.end:I?ep(r.text,I.end):l.getStart(r),O=D||y||T?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,W,164,O)}function QKe(t,r,s){const l=kIe(r,s);if(v1(r)){t.filterJSDocTags(r,l,gN(UY));return}const m=lr(l.modifiers,SEe);ce.assertIsDefined(m),t.deleteModifier(r,m)}function w7e(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Eb(t,t.parent);default:return!1}}function kIe(t,r){const s=bf(t,r),l=Kr(s,m=>Jl(m)?"quit":w7e(m));return ce.assert(l&&w7e(l)),l}var Zj,eO,Mq,Gye,R7e,ZKe=G({"src/services/codefixes/fixOverrideModifier.ts"(){El(),hp(),Zj="fixOverrideModifier",eO="fixAddOverrideModifier",Mq="fixRemoveOverrideModifier",Gye=[w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],R7e={[w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_override_modifier},[w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers}},up({errorCodes:Gye,getCodeActions:function(r){const{errorCode:s,span:l}=r,m=R7e[s];if(!m)return Zn;const{descriptions:y,fixId:T,fixAllDescriptions:D}=m,I=Hs.ChangeTracker.with(r,W=>YKe(W,r,s,l.start));return[NOe(Zj,I,y,T,D)]},fixIds:[Zj,eO,Mq],getAllCodeActions:t=>Km(t,Gye,(r,s)=>{const{code:l,start:m}=s,y=R7e[l];!y||y.fixId!==t.fixId||YKe(r,t,l,m)})})}});function M7e(t,r,s,l){const m=Jx(r,l),y=be.createStringLiteral(s.name.text,m===0);t.replaceNode(r,s,BU(s)?be.createElementAccessChain(s.expression,s.questionDotToken,y):be.createElementAccessExpression(s.expression,y))}function jye(t,r){return uc(bf(t,r).parent,sa)}var Sle,L7e,eXe=G({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){El(),hp(),Sle="fixNoPropertyAccessFromIndexSignature",L7e=[w.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],up({errorCodes:L7e,fixIds:[Sle],getCodeActions(t){const{sourceFile:r,span:s,preferences:l}=t,m=jye(r,s.start),y=Hs.ChangeTracker.with(t,T=>M7e(T,t.sourceFile,m,l));return[Hc(Sle,y,[w.Use_element_access_for_0,m.name.text],Sle,w.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>Km(t,L7e,(r,s)=>M7e(r,s.file,jye(s.file,s.start),t.preferences))})}});function Vye(t,r,s,l){const m=bf(r,s);if(!KW(m))return;const y=Q1(m,!1,!1);if(!(!b0(y)&&!Dm(y))&&!tl(Q1(y,!1,!1))){const T=ce.checkDefined(Wm(y,100,r)),{name:D}=y,I=ce.checkDefined(y.body);return Dm(y)?D&&Wf.Core.isSymbolReferencedInFile(D,l,r,I)?void 0:(t.delete(r,T),D&&t.delete(r,D),t.insertText(r,I.pos," =>"),[w.Convert_function_expression_0_to_arrow_function,D?D.text:cB]):(t.replaceNode(r,T,be.createToken(87)),t.insertText(r,D.end," = "),t.insertText(r,I.pos," =>"),[w.Convert_function_declaration_0_to_arrow_function,D.text])}}var Ele,O7e,tXe=G({"src/services/codefixes/fixImplicitThis.ts"(){El(),hp(),Ele="fixImplicitThis",O7e=[w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],up({errorCodes:O7e,getCodeActions:function(r){const{sourceFile:s,program:l,span:m}=r;let y;const T=Hs.ChangeTracker.with(r,D=>{y=Vye(D,s,m.start,l.getTypeChecker())});return y?[Hc(Ele,T,y,Ele,w.Fix_all_implicit_this_errors)]:Zn},fixIds:[Ele],getAllCodeActions:t=>Km(t,O7e,(r,s)=>{Vye(r,s.file,s.start,t.program.getTypeChecker())})})}});function nXe(t,r,s){var l;const m=bf(t,r);if(An(m)){const y=Kr(m,Fv);if(y===void 0)return;const T=Wp(y.moduleSpecifier)?y.moduleSpecifier.text:void 0;if(T===void 0)return;const D=XU(t,T,void 0);if(D===void 0)return;const I=s.getSourceFile(D.resolvedFileName);if(I===void 0||lq(s,I))return;const W=I.symbol,O=(l=to(W.valueDeclaration,lk))==null?void 0:l.locals;if(O===void 0)return;const V=O.get(m.escapedText);if(V===void 0)return;const ee=PIe(V);return ee===void 0?void 0:{exportName:{node:m,isTypeOnly:f6(ee)},node:ee,moduleSourceFile:I,moduleSpecifier:T}}}function F7e(t,r,{exportName:s,node:l,moduleSourceFile:m}){const y=Uye(m,s.isTypeOnly);y?W7e(t,r,m,y,[s]):nW(l)?t.insertExportModifier(m,l):B7e(t,r,m,[s])}function xle(t,r,s,l,m){Nt(l)&&(m?W7e(t,r,s,m,l):B7e(t,r,s,l))}function Uye(t,r){const s=l=>mh(l)&&(r&&l.isTypeOnly||!l.isTypeOnly);return ra(t.statements,s)}function W7e(t,r,s,l,m){const y=l.exportClause&&G0(l.exportClause)?l.exportClause.elements:be.createNodeArray([]),T=!l.isTypeOnly&&!!(F0(r.getCompilerOptions())||lr(y,D=>D.isTypeOnly));t.replaceNode(s,l,be.updateExportDeclaration(l,l.modifiers,l.isTypeOnly,be.createNamedExports(be.createNodeArray([...y,...rXe(m,T)],y.hasTrailingComma)),l.moduleSpecifier,l.assertClause))}function B7e(t,r,s,l){t.insertNodeAtEndOfScope(s,s,be.createExportDeclaration(void 0,!1,be.createNamedExports(rXe(l,F0(r.getCompilerOptions()))),void 0,void 0))}function rXe(t,r){return be.createNodeArray(Vn(t,s=>be.createExportSpecifier(r&&s.isTypeOnly,void 0,s.node)))}function PIe(t){if(t.valueDeclaration===void 0)return pp(t.declarations);const r=t.valueDeclaration,s=ff(r)?to(r.parent.parent,Dh):void 0;return s&&Nt(s.declarationList.declarations)===1?s:r}var Ale,z7e,Vft=G({"src/services/codefixes/fixImportNonExportedMember.ts"(){El(),hp(),Ale="fixImportNonExportedMember",z7e=[w.Module_0_declares_1_locally_but_it_is_not_exported.code],up({errorCodes:z7e,fixIds:[Ale],getCodeActions(t){const{sourceFile:r,span:s,program:l}=t,m=nXe(r,s.start,l);if(m===void 0)return;const y=Hs.ChangeTracker.with(t,T=>F7e(T,l,m));return[Hc(Ale,y,[w.Export_0_from_module_1,m.exportName.node.text,m.moduleSpecifier],Ale,w.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:r}=t;return GR(Hs.ChangeTracker.with(t,s=>{const l=new Map;LF(t,z7e,m=>{const y=nXe(m.file,m.start,r);if(y===void 0)return;const{exportName:T,node:D,moduleSourceFile:I}=y;if(Uye(I,T.isTypeOnly)===void 0&&nW(D))s.insertExportModifier(I,D);else{const W=l.get(I)||{typeOnlyExports:[],exports:[]};T.isTypeOnly?W.typeOnlyExports.push(T):W.exports.push(T),l.set(I,W)}}),l.forEach((m,y)=>{const T=Uye(y,!0);T&&T.isTypeOnly?(xle(s,r,y,m.typeOnlyExports,T),xle(s,r,y,m.exports,Uye(y,!1))):xle(s,r,y,[...m.exports,...m.typeOnlyExports],T)})}))}})}});function Uft(t,r){const s=bf(t,r);return Kr(s,l=>l.kind===202)}function NIe(t,r,s){if(!s)return;let l=s.type,m=!1,y=!1;for(;l.kind===190||l.kind===191||l.kind===196;)l.kind===190?m=!0:l.kind===191&&(y=!0),l=l.type;const T=be.updateNamedTupleMember(s,s.dotDotDotToken||(y?be.createToken(26):void 0),s.name,s.questionToken||(m?be.createToken(58):void 0),l);T!==s&&t.replaceNode(r,s,T)}var Hye,iXe,oXe=G({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){El(),hp(),Hye="fixIncorrectNamedTupleSyntax",iXe=[w.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,w.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],up({errorCodes:iXe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Uft(s,l.start),y=Hs.ChangeTracker.with(r,T=>NIe(T,s,m));return[Hc(Hye,y,w.Move_labeled_tuple_element_modifiers_to_labels,Hye,w.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Hye]})}});function G7e(t,r,s,l){const m=bf(t,r),y=m.parent;if((l===w.No_overload_matches_this_call.code||l===w.Type_0_is_not_assignable_to_type_1.code)&&!Pb(y))return;const T=s.program.getTypeChecker();let D;if(sa(y)&&y.name===m){ce.assert(fy(m),"Expected an identifier for spelling (property access)");let I=T.getTypeAtLocation(y.expression);y.flags&64&&(I=T.getNonNullableType(I)),D=T.getSuggestedSymbolForNonexistentProperty(m,I)}else if(ys(y)&&y.operatorToken.kind===103&&y.left===m&&Gu(m)){const I=T.getTypeAtLocation(y.right);D=T.getSuggestedSymbolForNonexistentProperty(m,I)}else if(nT(y)&&y.right===m){const I=T.getSymbolAtLocation(y.left);I&&I.flags&1536&&(D=T.getSuggestedSymbolForNonexistentModule(y.right,I))}else if(oS(y)&&y.name===m){ce.assertNode(m,An,"Expected an identifier for spelling (import)");const I=Kr(m,Fv),W=j7e(t,s,I);W&&W.symbol&&(D=T.getSuggestedSymbolForNonexistentModule(m,W.symbol))}else if(Pb(y)&&y.name===m){ce.assertNode(m,An,"Expected an identifier for JSX attribute");const I=Kr(m,Y1),W=T.getContextualTypeForArgumentAtIndex(I,0);D=T.getSuggestedSymbolForNonexistentJSXAttribute(m,W)}else if(il(y,16384)&&Mv(y)&&y.name===m){const I=Kr(m,Jl),W=I?hA(I):void 0,O=W?T.getTypeAtLocation(W):void 0;O&&(D=T.getSuggestedSymbolForNonexistentClassMember(Yv(m),O))}else{const I=z3(m),W=Yv(m);ce.assert(W!==void 0,"name should be defined"),D=T.getSuggestedSymbolForNonexistentSymbol(m,W,Hft(I))}return D===void 0?void 0:{node:m,suggestedSymbol:D}}function aXe(t,r,s,l,m){const y=mp(l);if(!rE(y,m)&&sa(s.parent)){const T=l.valueDeclaration;T&&Xv(T)&&Gu(T.name)?t.replaceNode(r,s,be.createIdentifier(y)):t.replaceNode(r,s.parent,be.createElementAccessExpression(s.parent.expression,be.createStringLiteral(y)))}else t.replaceNode(r,s,be.createIdentifier(y))}function Hft(t){let r=0;return t&4&&(r|=1920),t&2&&(r|=788968),t&1&&(r|=111551),r}function j7e(t,r,s){if(!s||!sp(s.moduleSpecifier))return;const l=XU(t,s.moduleSpecifier.text,kA(t,s.moduleSpecifier));if(l)return r.program.getSourceFile(l.resolvedFileName)}var Jye,V7e,sXe=G({"src/services/codefixes/fixSpelling.ts"(){El(),hp(),Jye="fixSpelling",V7e=[w.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,w.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w.Cannot_find_name_0_Did_you_mean_1.code,w.Could_not_find_name_0_Did_you_mean_1.code,w.Cannot_find_namespace_0_Did_you_mean_1.code,w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,w._0_has_no_exported_member_named_1_Did_you_mean_2.code,w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,w.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,w.No_overload_matches_this_call.code,w.Type_0_is_not_assignable_to_type_1.code],up({errorCodes:V7e,getCodeActions(t){const{sourceFile:r,errorCode:s}=t,l=G7e(r,t.span.start,t,s);if(!l)return;const{node:m,suggestedSymbol:y}=l,T=iu(t.host.getCompilationSettings()),D=Hs.ChangeTracker.with(t,I=>aXe(I,r,m,y,T));return[Hc("spelling",D,[w.Change_spelling_to_0,mp(y)],Jye,w.Fix_all_detected_spelling_errors)]},fixIds:[Jye],getAllCodeActions:t=>Km(t,V7e,(r,s)=>{const l=G7e(s.file,s.start,t,s.code),m=iu(t.host.getCompilationSettings());l&&aXe(r,t.sourceFile,l.node,l.suggestedSymbol,m)})})}});function wIe(t,r,s){const l=t.createSymbol(4,r.escapedText);l.links.type=t.getTypeAtLocation(s);const m=Td([l]);return t.createAnonymousType(void 0,m,[],[],[])}function $ye(t,r,s,l){if(!r.body||!E_(r.body)||Nt(r.body.statements)!==1)return;const m=Dl(r.body.statements);if(Ou(m)&&RIe(t,r,t.getTypeAtLocation(m.expression),s,l))return{declaration:r,kind:0,expression:m.expression,statement:m,commentSource:m.expression};if(iS(m)&&Ou(m.statement)){const y=be.createObjectLiteralExpression([be.createPropertyAssignment(m.label,m.statement.expression)]),T=wIe(t,m.label,m.statement.expression);if(RIe(t,r,T,s,l))return ph(r)?{declaration:r,kind:1,expression:y,statement:m,commentSource:m.statement.expression}:{declaration:r,kind:0,expression:y,statement:m,commentSource:m.statement.expression}}else if(E_(m)&&Nt(m.statements)===1){const y=Dl(m.statements);if(iS(y)&&Ou(y.statement)){const T=be.createObjectLiteralExpression([be.createPropertyAssignment(y.label,y.statement.expression)]),D=wIe(t,y.label,y.statement.expression);if(RIe(t,r,D,s,l))return{declaration:r,kind:0,expression:T,statement:m,commentSource:y}}}}function RIe(t,r,s,l,m){if(m){const y=t.getSignatureFromDeclaration(r);if(y){il(r,512)&&(s=t.createPromiseType(s));const T=t.createSignature(r,y.typeParameters,y.thisParameter,y.parameters,s,void 0,y.minArgumentCount,y.flags);s=t.createAnonymousType(void 0,Td(),[T],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,l)}function cXe(t,r,s,l){const m=bf(r,s);if(!m.parent)return;const y=Kr(m.parent,J_);switch(l){case w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!y||!y.body||!y.type||!sS(y.type,m)?void 0:$ye(t,y,t.getTypeFromTypeNode(y.type),!1);case w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!y||!el(y.parent)||!y.body)return;const T=y.parent.arguments.indexOf(y);if(T===-1)return;const D=t.getContextualTypeForArgumentAtIndex(y.parent,T);return D?$ye(t,y,D,!0):void 0;case w.Type_0_is_not_assignable_to_type_1.code:if(!vP(m)||!hP(m.parent)&&!Pb(m.parent))return;const I=lXe(m.parent);return!I||!J_(I)||!I.body?void 0:$ye(t,I,t.getTypeAtLocation(m.parent),!0)}}function lXe(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(v6(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function U7e(t,r,s,l){e2(s);const m=UZ(r);t.replaceNode(r,l,be.createReturnStatement(s),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude,suffix:m?";":void 0})}function H7e(t,r,s,l,m,y){const T=y||MAe(l)?be.createParenthesizedExpression(l):l;e2(m),kF(m,T),t.replaceNode(r,s.body,T)}function uXe(t,r,s,l){t.replaceNode(r,s.body,be.createParenthesizedExpression(l))}function Jft(t,r,s){const l=Hs.ChangeTracker.with(t,m=>U7e(m,t.sourceFile,r,s));return Hc(Ree,l,w.Add_a_return_statement,Mee,w.Add_all_missing_return_statement)}function $ft(t,r,s,l){const m=Hs.ChangeTracker.with(t,y=>H7e(y,t.sourceFile,r,s,l,!1));return Hc(Ree,m,w.Remove_braces_from_arrow_function_body,Lee,w.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function MIe(t,r,s){const l=Hs.ChangeTracker.with(t,m=>uXe(m,t.sourceFile,r,s));return Hc(Ree,l,w.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Cle,w.Wrap_all_object_literal_with_parentheses)}var Ree,Mee,Lee,Cle,J7e,fXe=G({"src/services/codefixes/returnValueCorrect.ts"(){El(),hp(),Ree="returnValueCorrect",Mee="fixAddReturnStatement",Lee="fixRemoveBracesFromArrowFunctionBody",Cle="fixWrapTheBlockWithParen",J7e=[w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,w.Type_0_is_not_assignable_to_type_1.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],up({errorCodes:J7e,fixIds:[Mee,Lee,Cle],getCodeActions:function(r){const{program:s,sourceFile:l,span:{start:m},errorCode:y}=r,T=cXe(s.getTypeChecker(),l,m,y);if(T)return T.kind===0?ur([Jft(r,T.expression,T.statement)],ph(T.declaration)?$ft(r,T.declaration,T.expression,T.commentSource):void 0):[MIe(r,T.declaration,T.expression)]},getAllCodeActions:t=>Km(t,J7e,(r,s)=>{const l=cXe(t.program.getTypeChecker(),s.file,s.start,s.code);if(l)switch(t.fixId){case Mee:U7e(r,s.file,l.expression,l.statement);break;case Lee:if(!ph(l.declaration))return;H7e(r,s.file,l.declaration,l.expression,l.commentSource,!1);break;case Cle:if(!ph(l.declaration))return;uXe(r,s.file,l.declaration,l.expression);break;default:ce.fail(JSON.stringify(t.fixId))}})})}});function _Xe(t,r,s,l,m){var y;const T=bf(t,r),D=T.parent;if(s===w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(T.kind===19&&Wd(D)&&el(D.parent)))return;const te=Ho(D.parent.arguments,Ne=>Ne===D);if(te<0)return;const oe=l.getResolvedSignature(D.parent);if(!(oe&&oe.declaration&&oe.parameters[te]))return;const de=oe.parameters[te].valueDeclaration;if(!(de&&Pu(de)&&An(de.name)))return;const ue=oc(l.getUnmatchedProperties(l.getTypeAtLocation(D),l.getParameterType(oe,te),!1,!1));return Nt(ue)?{kind:3,token:de.name,properties:ue,parentDeclaration:D}:void 0}if(!fy(T))return;if(An(T)&&NN(D)&&D.initializer&&Wd(D.initializer)){const te=l.getContextualType(T)||l.getTypeAtLocation(T),oe=oc(l.getUnmatchedProperties(l.getTypeAtLocation(D.initializer),te,!1,!1));return Nt(oe)?{kind:3,token:T,properties:oe,parentDeclaration:D.initializer}:void 0}if(An(T)&&Y1(T.parent)){const te=iu(m.getCompilerOptions()),oe=Yft(l,te,T.parent);return Nt(oe)?{kind:4,token:T,attributes:oe,parentDeclaration:T.parent}:void 0}if(An(T)){const te=(y=l.getContextualType(T))==null?void 0:y.getNonNullableType();if(te&&ji(te)&16){const oe=pp(l.getSignaturesOfType(te,0));return oe===void 0?void 0:{kind:5,token:T,signature:oe,sourceFile:t,parentDeclaration:F6(T)}}if(el(D)&&D.expression===T)return{kind:2,token:T,call:D,sourceFile:t,modifierFlags:0,parentDeclaration:F6(T)}}if(!sa(D))return;const I=MZ(l.getTypeAtLocation(D.expression)),W=I.symbol;if(!W||!W.declarations)return;if(An(T)&&el(D.parent)){const te=lr(W.declarations,xp),oe=te==null?void 0:te.getSourceFile();if(te&&oe&&!lq(m,oe))return{kind:2,token:T,call:D.parent,sourceFile:t,modifierFlags:1,parentDeclaration:te};const de=lr(W.declarations,tl);if(t.commonJsModuleIndicator)return;if(de&&!lq(m,de))return{kind:2,token:T,call:D.parent,sourceFile:de,modifierFlags:1,parentDeclaration:de}}const O=lr(W.declarations,Jl);if(!O&&Gu(T))return;const V=O||lr(W.declarations,te=>Kp(te)||e0(te));if(V&&!lq(m,V.getSourceFile())){const te=!e0(V)&&(I.target||I)!==l.getDeclaredTypeOfSymbol(W);if(te&&(Gu(T)||Kp(V)))return;const oe=V.getSourceFile(),de=e0(V)?0:(te?32:0)|(NF(T.text)?8:0),ue=v1(oe),Ne=to(D.parent,el);return{kind:0,token:T,call:Ne,modifierFlags:de,parentDeclaration:V,declSourceFile:oe,isJSFile:ue}}const ee=lr(W.declarations,Ih);if(ee&&!(I.flags&1056)&&!Gu(T)&&!lq(m,ee.getSourceFile()))return{kind:1,token:T,parentDeclaration:ee}}function qft(t,r){return r.isJSFile?zD(dXe(t,r)):mXe(t,r)}function dXe(t,{parentDeclaration:r,declSourceFile:s,modifierFlags:l,token:m}){if(Kp(r)||e0(r))return;const y=Hs.ChangeTracker.with(t,D=>$7e(D,s,r,m,!!(l&32)));if(y.length===0)return;const T=l&32?w.Initialize_static_property_0:Gu(m)?w.Declare_a_private_field_named_0:w.Initialize_property_0_in_the_constructor;return Hc(LP,y,[T,m.text],LP,w.Add_all_missing_members)}function $7e(t,r,s,l,m){const y=l.text;if(m){if(s.kind===231)return;const T=s.name.getText(),D=pXe(be.createIdentifier(T),y);t.insertNodeAfter(r,s,D)}else if(Gu(l)){const T=be.createPropertyDeclaration(void 0,y,void 0,void 0,void 0),D=gXe(s);D?t.insertNodeAfter(r,D,T):t.insertMemberAtStart(r,s,T)}else{const T=E2(s);if(!T)return;const D=pXe(be.createThis(),y);t.insertNodeAtConstructorEnd(r,T,D)}}function pXe(t,r){return be.createExpressionStatement(be.createAssignment(be.createPropertyAccessExpression(t,r),eV()))}function mXe(t,{parentDeclaration:r,declSourceFile:s,modifierFlags:l,token:m}){const y=m.text,T=l&32,D=q7e(t.program.getTypeChecker(),r,m),I=O=>Hs.ChangeTracker.with(t,V=>K7e(V,s,r,y,D,O)),W=[Hc(LP,I(l&32),[T?w.Declare_static_property_0:w.Declare_property_0,y],LP,w.Add_all_missing_members)];return T||Gu(m)||(l&8&&W.unshift(mC(LP,I(8),[w.Declare_private_property_0,y])),W.push(Kft(t,s,r,m.text,D))),W}function q7e(t,r,s){let l;if(s.parent.parent.kind===226){const m=s.parent.parent,y=s.parent===m.left?m.right:m.left,T=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(y)));l=t.typeToTypeNode(T,r,1)}else{const m=t.getContextualType(s.parent);l=m?t.typeToTypeNode(m,void 0,1):void 0}return l||be.createKeywordTypeNode(133)}function K7e(t,r,s,l,m,y){const T=y?be.createNodeArray(be.createModifiersFromModifierFlags(y)):void 0,D=Jl(s)?be.createPropertyDeclaration(T,l,void 0,m,void 0):be.createPropertySignature(void 0,l,void 0,m),I=gXe(s);I?t.insertNodeAfter(r,I,D):t.insertMemberAtStart(r,s,D)}function gXe(t){let r;for(const s of t.members){if(!Os(s))break;r=s}return r}function Kft(t,r,s,l,m){const y=be.createKeywordTypeNode(154),T=be.createParameterDeclaration(void 0,void 0,"x",void 0,y,void 0),D=be.createIndexSignature(void 0,[T],m),I=Hs.ChangeTracker.with(t,W=>W.insertMemberAtStart(r,s,D));return mC(LP,I,[w.Add_index_signature_for_property_0,l])}function hXe(t,r){const{parentDeclaration:s,declSourceFile:l,modifierFlags:m,token:y,call:T}=r;if(T===void 0)return;const D=y.text,I=O=>Hs.ChangeTracker.with(t,V=>X7e(t,V,T,y,O,s,l)),W=[Hc(LP,I(m&32),[m&32?w.Declare_static_method_0:w.Declare_method_0,D],LP,w.Add_all_missing_members)];return m&8&&W.unshift(mC(LP,I(8),[w.Declare_private_method_0,D])),W}function X7e(t,r,s,l,m,y,T){const D=Qj(T,t.program,t.preferences,t.host),I=Jl(y)?174:173,W=VFe(I,t,D,s,l,m,y),O=Qft(y,s);O?r.insertNodeAfter(T,O,W):r.insertMemberAtStart(T,y,W),D.writeFixes(r)}function Y7e(t,r,{token:s,parentDeclaration:l}){const m=gt(l.members,T=>{const D=r.getTypeAtLocation(T);return!!(D&&D.flags&402653316)}),y=be.createEnumMember(s,m?be.createStringLiteral(s.text):void 0);t.replaceNode(l.getSourceFile(),l,be.updateEnumDeclaration(l,l.modifiers,l.name,Hi(l.members,zD(y))),{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude})}function Q7e(t,r,s){const l=Jx(r.sourceFile,r.preferences),m=Qj(r.sourceFile,r.program,r.preferences,r.host),y=s.kind===2?VFe(262,r,m,s.call,ec(s.token),s.modifierFlags,s.parentDeclaration):Yle(262,r,l,s.signature,Vee(w.Function_not_implemented.message,l),s.token,void 0,void 0,void 0,m);y===void 0&&ce.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Bx(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,y,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,y),m.writeFixes(t)}function Z7e(t,r,s){const l=Qj(r.sourceFile,r.program,r.preferences,r.host),m=Jx(r.sourceFile,r.preferences),y=r.program.getTypeChecker(),T=s.parentDeclaration.attributes,D=gt(T.properties,Ek),I=Vn(s.attributes,V=>{const ee=tO(r,y,l,m,y.getTypeOfSymbol(V),s.parentDeclaration),te=be.createIdentifier(V.name),oe=be.createJsxAttribute(te,be.createJsxExpression(void 0,ee));return kl(te,oe),oe}),W=be.createJsxAttributes(D?[...I,...T.properties]:[...T.properties,...I]),O={prefix:T.pos===T.end?" ":void 0};t.replaceNode(r.sourceFile,T,W,O),l.writeFixes(t)}function qye(t,r,s){const l=Qj(r.sourceFile,r.program,r.preferences,r.host),m=Jx(r.sourceFile,r.preferences),y=iu(r.program.getCompilerOptions()),T=r.program.getTypeChecker(),D=Vn(s.properties,W=>{const O=tO(r,T,l,m,T.getTypeOfSymbol(W),s.parentDeclaration);return be.createPropertyAssignment(yXe(W,y,m,T),O)}),I={leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(r.sourceFile,s.parentDeclaration,be.createObjectLiteralExpression([...s.parentDeclaration.properties,...D],!0),I),l.writeFixes(t)}function tO(t,r,s,l,m,y){if(m.flags&3)return eV();if(m.flags&134217732)return be.createStringLiteral("",l===0);if(m.flags&8)return be.createNumericLiteral(0);if(m.flags&64)return be.createBigIntLiteral("0n");if(m.flags&16)return be.createFalse();if(m.flags&1056){const T=m.symbol.exports?V5(m.symbol.exports.values()):m.symbol,D=r.symbolToExpression(m.symbol.parent?m.symbol.parent:m.symbol,111551,void 0,void 0);return T===void 0||D===void 0?be.createNumericLiteral(0):be.createPropertyAccessExpression(D,r.symbolToString(T))}if(m.flags&256)return be.createNumericLiteral(m.value);if(m.flags&2048)return be.createBigIntLiteral(m.value);if(m.flags&128)return be.createStringLiteral(m.value,l===0);if(m.flags&512)return m===r.getFalseType()||m===r.getFalseType(!0)?be.createFalse():be.createTrue();if(m.flags&65536)return be.createNull();if(m.flags&1048576)return Yr(m.types,D=>tO(t,r,s,l,D,y))??eV();if(r.isArrayLikeType(m))return be.createArrayLiteralExpression();if(Xft(m)){const T=Vn(r.getPropertiesOfType(m),D=>{const I=tO(t,r,s,l,r.getTypeOfSymbol(D),y);return be.createPropertyAssignment(D.name,I)});return be.createObjectLiteralExpression(T,!0)}if(ji(m)&16){if(lr(m.symbol.declarations||Zn,dA(Z2,Jh,em))===void 0)return eV();const D=r.getSignaturesOfType(m,0);return D===void 0?eV():Yle(218,t,l,D[0],Vee(w.Function_not_implemented.message,l),void 0,void 0,void 0,y,s)??eV()}if(ji(m)&1){const T=RS(m.symbol);if(T===void 0||fk(T))return eV();const D=E2(T);return D&&Nt(D.parameters)?eV():be.createNewExpression(be.createIdentifier(m.symbol.name),void 0,void 0)}return eV()}function eV(){return be.createIdentifier("undefined")}function Xft(t){return t.flags&524288&&(ji(t)&128||t.symbol&&to(Vb(t.symbol.declarations),e0))}function Yft(t,r,s){const l=t.getContextualType(s.attributes);if(l===void 0)return Zn;const m=l.getProperties();if(!Nt(m))return Zn;const y=new Set;for(const T of s.attributes.properties)if(Pb(T)&&y.add(m3(T.name)),Ek(T)){const D=t.getTypeAtLocation(T.expression);for(const I of D.getProperties())y.add(I.escapedName)}return gi(m,T=>rE(T.name,r,1)&&!(T.flags&16777216||I_(T)&48||y.has(T.escapedName)))}function Qft(t,r){if(e0(t))return;const s=Kr(r,l=>em(l)||pg(l));return s&&s.parent===t?s:void 0}function yXe(t,r,s,l){if(uk(t)){const m=l.symbolToNode(t,111551,void 0,1073741824);if(m&&am(m))return m}return QH(t.name,r,s===0)}function F6(t){if(Kr(t,v6)){const r=Kr(t.parent,Bx);if(r)return r}return ns(t)}var LP,tV,nV,Oee,eFe,vXe=G({"src/services/codefixes/fixAddMissingMember.ts"(){El(),hp(),LP="fixMissingMember",tV="fixMissingProperties",nV="fixMissingAttributes",Oee="fixMissingFunctionDeclaration",eFe=[w.Property_0_does_not_exist_on_type_1.code,w.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,w.Property_0_is_missing_in_type_1_but_required_in_type_2.code,w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Cannot_find_name_0.code],up({errorCodes:eFe,getCodeActions(t){const r=t.program.getTypeChecker(),s=_Xe(t.sourceFile,t.span.start,t.errorCode,r,t.program);if(s){if(s.kind===3){const l=Hs.ChangeTracker.with(t,m=>qye(m,t,s));return[Hc(tV,l,w.Add_missing_properties,tV,w.Add_all_missing_properties)]}if(s.kind===4){const l=Hs.ChangeTracker.with(t,m=>Z7e(m,t,s));return[Hc(nV,l,w.Add_missing_attributes,nV,w.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const l=Hs.ChangeTracker.with(t,m=>Q7e(m,t,s));return[Hc(Oee,l,[w.Add_missing_function_declaration_0,s.token.text],Oee,w.Add_all_missing_function_declarations)]}if(s.kind===1){const l=Hs.ChangeTracker.with(t,m=>Y7e(m,t.program.getTypeChecker(),s));return[Hc(LP,l,[w.Add_missing_enum_member_0,s.token.text],LP,w.Add_all_missing_members)]}return Hi(hXe(t,s),qft(t,s))}},fixIds:[LP,Oee,tV,nV],getAllCodeActions:t=>{const{program:r,fixId:s}=t,l=r.getTypeChecker(),m=new Map,y=new Map;return GR(Hs.ChangeTracker.with(t,T=>{LF(t,eFe,D=>{const I=_Xe(D.file,D.start,D.code,l,t.program);if(!(!I||!y0(m,Im(I.parentDeclaration)+"#"+I.token.text))){if(s===Oee&&(I.kind===2||I.kind===5))Q7e(T,t,I);else if(s===tV&&I.kind===3)qye(T,t,I);else if(s===nV&&I.kind===4)Z7e(T,t,I);else if(I.kind===1&&Y7e(T,l,I),I.kind===0){const{parentDeclaration:W,token:O}=I,V=Jw(y,W,()=>[]);V.some(ee=>ee.token.text===O.text)||V.push(I)}}}),y.forEach((D,I)=>{const W=e0(I)?void 0:XFe(I,l);for(const O of D){if(W!=null&&W.some(Ne=>{const Be=y.get(Ne);return!!Be&&Be.some(({token:Ve})=>Ve.text===O.token.text)}))continue;const{parentDeclaration:V,declSourceFile:ee,modifierFlags:te,token:oe,call:de,isJSFile:ue}=O;if(de&&!Gu(oe))X7e(t,T,de,oe,te&32,V,ee);else if(ue&&!Kp(V)&&!e0(V))$7e(T,ee,V,oe,!!(te&32));else{const Ne=q7e(l,V,oe);K7e(T,ee,V,oe.text,Ne,te&32)}}})}))}})}});function bXe(t,r,s){const l=uc(LIe(r,s),el),m=be.createNewExpression(l.expression,l.typeArguments,l.arguments);t.replaceNode(r,l,m)}function LIe(t,r){let s=bf(t,r.start);const l=K1(r);for(;s.endbXe(m,r,s));return[Hc(Dle,l,w.Add_missing_new_operator_to_call,Dle,w.Add_missing_new_operator_to_all_calls)]},fixIds:[Dle],getAllCodeActions:t=>Km(t,tFe,(r,s)=>bXe(r,t.sourceFile,s))})}});function nFe(t,r){return{type:"install package",file:t,packageName:r}}function rFe(t,r){const s=to(bf(t,r),Wp);if(!s)return;const l=s.text,{packageName:m}=EQ(l);return tb(m)?void 0:m}function iFe(t,r,s){var l;return s===Xye?EF.nodeCoreModules.has(t)?"@types/node":void 0:(l=r.isKnownTypesPackageName)!=null&&l.call(r,t)?tme(t):void 0}var Kye,Ile,Xye,oFe,SXe=G({"src/services/codefixes/fixCannotFindModule.ts"(){El(),hp(),Kye="fixCannotFindModule",Ile="installTypesPackage",Xye=w.Cannot_find_module_0_or_its_corresponding_type_declarations.code,oFe=[Xye,w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],up({errorCodes:oFe,getCodeActions:function(r){const{host:s,sourceFile:l,span:{start:m}}=r,y=rFe(l,m);if(y===void 0)return;const T=iFe(y,s,r.errorCode);return T===void 0?[]:[Hc(Kye,[],[w.Install_0,T],Ile,w.Install_all_missing_types_packages,nFe(l.fileName,T))]},fixIds:[Ile],getAllCodeActions:t=>Km(t,oFe,(r,s,l)=>{const m=rFe(s.file,s.start);if(m!==void 0)switch(t.fixId){case Ile:{const y=iFe(m,t.host,s.code);y&&l.push(nFe(s.file.fileName,y));break}default:ce.fail(`Bad fixId: ${t.fixId}`)}})})}});function aFe(t,r){const s=bf(t,r);return uc(s.parent,Jl)}function EXe(t,r,s,l,m){const y=hA(t),T=s.program.getTypeChecker(),D=T.getTypeAtLocation(y),I=T.getPropertiesOfType(D).filter(sFe),W=Qj(r,s.program,m,s.host);dB(t,I,r,s,m,W,O=>l.insertMemberAtStart(r,t,O)),W.writeFixes(l)}function sFe(t){const r=n6(Dl(t.getDeclarations()));return!(r&8)&&!!(r&256)}var kle,OIe,xXe=G({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){El(),hp(),kle=[w.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],OIe="fixClassDoesntImplementInheritedAbstractMember",up({errorCodes:kle,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Hs.ChangeTracker.with(r,y=>EXe(aFe(s,l.start),s,r,y,r.preferences));return m.length===0?void 0:[Hc(OIe,m,w.Implement_inherited_abstract_class,OIe,w.Implement_all_inherited_abstract_classes)]},fixIds:[OIe],getAllCodeActions:function(r){const s=new Map;return Km(r,kle,(l,m)=>{const y=aFe(m.file,m.start);y0(s,Im(y))&&EXe(y,r.sourceFile,r,l,r.preferences)})}})}});function cFe(t,r,s,l){t.insertNodeAtConstructorStart(r,s,l),t.delete(r,l)}function lFe(t,r){const s=bf(t,r);if(s.kind!==110)return;const l=GE(s),m=Yye(l.body);return m&&!m.expression.arguments.some(y=>sa(y)&&y.expression===s)?{constructor:l,superCall:m}:void 0}function Yye(t){return Ou(t)&&y7(t.expression)?t:S_(t)?void 0:B_(t,Yye)}var Ple,uFe,AXe=G({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){El(),hp(),Ple="classSuperMustPrecedeThisAccess",uFe=[w.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],up({errorCodes:uFe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=lFe(r,s.start);if(!l)return;const{constructor:m,superCall:y}=l,T=Hs.ChangeTracker.with(t,D=>cFe(D,r,m,y));return[Hc(Ple,T,w.Make_super_call_the_first_statement_in_the_constructor,Ple,w.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ple],getAllCodeActions(t){const{sourceFile:r}=t,s=new Map;return Km(t,uFe,(l,m)=>{const y=lFe(m.file,m.start);if(!y)return;const{constructor:T,superCall:D}=y;y0(s,Im(T.parent))&&cFe(l,r,T,D)})}})}});function fFe(t,r){const s=bf(t,r);return ce.assert(pg(s.parent),"token should be at the constructor declaration"),s.parent}function Qye(t,r,s){const l=be.createExpressionStatement(be.createCallExpression(be.createSuper(),void 0,Zn));t.insertNodeAtConstructorStart(r,s,l)}var Nle,_Fe,CXe=G({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){El(),hp(),Nle="constructorForDerivedNeedSuperCall",_Fe=[w.Constructors_for_derived_classes_must_contain_a_super_call.code],up({errorCodes:_Fe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=fFe(r,s.start),m=Hs.ChangeTracker.with(t,y=>Qye(y,r,l));return[Hc(Nle,m,w.Add_missing_super_call,Nle,w.Add_all_missing_super_calls)]},fixIds:[Nle],getAllCodeActions:t=>Km(t,_Fe,(r,s)=>Qye(r,t.sourceFile,fFe(s.file,s.start)))})}});function FIe(t,r){Qle(t,r,"jsx",be.createStringLiteral("react"))}var Zye,dFe,DXe=G({"src/services/codefixes/fixEnableJsxFlag.ts"(){El(),hp(),Zye="fixEnableJsxFlag",dFe=[w.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],up({errorCodes:dFe,getCodeActions:function(r){const{configFile:s}=r.program.getCompilerOptions();if(s===void 0)return;const l=Hs.ChangeTracker.with(r,m=>FIe(m,s));return[mC(Zye,l,w.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Zye],getAllCodeActions:t=>Km(t,dFe,r=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&FIe(r,s)})})}});function pFe(t,r,s){const l=lr(t.getSemanticDiagnostics(r),T=>T.start===s.start&&T.length===s.length);if(l===void 0||l.relatedInformation===void 0)return;const m=lr(l.relatedInformation,T=>T.code===w.Did_you_mean_0.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;const y=yve(m.file,nb(m.start,m.length));if(y!==void 0&&Nr(y)&&ys(y.parent))return{suggestion:WIe(m.messageText),expression:y.parent,arg:y}}function IXe(t,r,s,l){const m=be.createCallExpression(be.createPropertyAccessExpression(be.createIdentifier("Number"),be.createIdentifier("isNaN")),void 0,[s]),y=l.operatorToken.kind;t.replaceNode(r,l,y===38||y===36?be.createPrefixUnaryExpression(54,m):m)}function WIe(t){const[r,s]=p4(t,` -`,0).match(/'(.*)'/)||[];return s}var wle,mFe,Zft=G({"src/services/codefixes/fixNaNEquality.ts"(){El(),hp(),wle="fixNaNEquality",mFe=[w.This_condition_will_always_return_0.code],up({errorCodes:mFe,getCodeActions(t){const{sourceFile:r,span:s,program:l}=t,m=pFe(l,r,s);if(m===void 0)return;const{suggestion:y,expression:T,arg:D}=m,I=Hs.ChangeTracker.with(t,W=>IXe(W,r,D,T));return[Hc(wle,I,[w.Use_0,y],wle,w.Use_Number_isNaN_in_all_conditions)]},fixIds:[wle],getAllCodeActions:t=>Km(t,mFe,(r,s)=>{const l=pFe(t.program,s.file,nb(s.start,s.length));l&&IXe(r,s.file,l.arg,l.expression)})})}}),kXe=G({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){El(),hp(),up({errorCodes:[w.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,w.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,w.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(r){const s=r.program.getCompilerOptions(),{configFile:l}=s;if(l===void 0)return;const m=[],y=Zp(s);if(y>=5&&y<99){const W=Hs.ChangeTracker.with(r,O=>{Qle(O,l,"module",be.createStringLiteral("esnext"))});m.push(mC("fixModuleOption",W,[w.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const D=iu(s);if(D<4||D>99){const W=Hs.ChangeTracker.with(r,O=>{if(!A9(l))return;const ee=[["target",be.createStringLiteral("es2017")]];y===1&&ee.push(["module",be.createStringLiteral("commonjs")]),hve(O,l,ee)});m.push(mC("fixTargetOption",W,[w.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return m.length?m:void 0}})}});function gFe(t,r,s){t.replaceNode(r,s,be.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function eve(t,r){return uc(bf(t,r).parent,BT)}var Rle,hFe,PXe=G({"src/services/codefixes/fixPropertyAssignment.ts"(){El(),hp(),Rle="fixPropertyAssignment",hFe=[w.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],up({errorCodes:hFe,fixIds:[Rle],getCodeActions(t){const{sourceFile:r,span:s}=t,l=eve(r,s.start),m=Hs.ChangeTracker.with(t,y=>gFe(y,t.sourceFile,l));return[Hc(Rle,m,[w.Change_0_to_1,"=",":"],Rle,[w.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>Km(t,hFe,(r,s)=>gFe(r,s.file,eve(s.file,s.start)))})}});function yFe(t,r){const s=bf(t,r),l=h0(s).heritageClauses,m=l[0].getFirstToken();return m.kind===96?{extendsToken:m,heritageClauses:l}:void 0}function tve(t,r,s,l){if(t.replaceNode(r,s,be.createToken(119)),l.length===2&&l[0].token===96&&l[1].token===119){const m=l[1].getFirstToken(),y=m.getFullStart();t.replaceRange(r,{pos:y,end:y},be.createToken(28));const T=r.text;let D=m.end;for(;Dtve(T,r,l,m));return[Hc(Mle,y,w.Change_extends_to_implements,Mle,w.Change_all_extended_interfaces_to_implements)]},fixIds:[Mle],getAllCodeActions:t=>Km(t,vFe,(r,s)=>{const l=yFe(s.file,s.start);l&&tve(r,s.file,l.extendsToken,l.heritageClauses)})})}});function bFe(t,r,s){const l=bf(t,r);if(An(l)||Gu(l))return{node:l,className:s===rve?h0(l).name.text:void 0}}function nve(t,r,{node:s,className:l}){e2(s),t.replaceNode(r,s,be.createPropertyAccessExpression(l?be.createIdentifier(l):be.createThis(),s))}var Lle,rve,TFe,e_t=G({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){El(),hp(),Lle="forgottenThisPropertyAccess",rve=w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,TFe=[w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,w.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,rve],up({errorCodes:TFe,getCodeActions(t){const{sourceFile:r}=t,s=bFe(r,t.span.start,t.errorCode);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>nve(m,r,s));return[Hc(Lle,l,[w.Add_0_to_unresolved_variable,s.className||"this"],Lle,w.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Lle],getAllCodeActions:t=>Km(t,TFe,(r,s)=>{const l=bFe(s.file,s.start,s.code);l&&nve(r,t.sourceFile,l)})})}});function SFe(t){return ef(EFe,t)}function Ole(t,r,s,l,m){const y=s.getText()[l];if(!SFe(y))return;const T=m?EFe[y]:`{${uce(s,r,y)}}`;t.replaceRangeWithText(s,{pos:l,end:l+1},T)}var Lq,Fee,ive,EFe,t_t=G({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){El(),hp(),Lq="fixInvalidJsxCharacters_expression",Fee="fixInvalidJsxCharacters_htmlEntity",ive=[w.Unexpected_token_Did_you_mean_or_gt.code,w.Unexpected_token_Did_you_mean_or_rbrace.code],up({errorCodes:ive,fixIds:[Lq,Fee],getCodeActions(t){const{sourceFile:r,preferences:s,span:l}=t,m=Hs.ChangeTracker.with(t,T=>Ole(T,s,r,l.start,!1)),y=Hs.ChangeTracker.with(t,T=>Ole(T,s,r,l.start,!0));return[Hc(Lq,m,w.Wrap_invalid_character_in_an_expression_container,Lq,w.Wrap_all_invalid_characters_in_an_expression_container),Hc(Fee,y,w.Convert_invalid_character_to_its_html_entity_code,Fee,w.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return Km(t,ive,(r,s)=>Ole(r,t.preferences,s.file,s.start,t.fixId===Fee))}}),EFe={">":">","}":"}"}}});function n_t(t,{name:r,jsDocHost:s,jsDocParameterTag:l}){const m=Hs.ChangeTracker.with(t,y=>y.filterJSDocTags(t.sourceFile,s,T=>T!==l));return Hc(Wee,m,[w.Delete_unused_param_tag_0,r.getText(t.sourceFile)],Wee,w.Delete_all_unused_param_tags)}function wXe(t,{name:r,jsDocHost:s,signature:l,jsDocParameterTag:m}){if(!Nt(l.parameters))return;const y=t.sourceFile,T=EN(l),D=new Set;for(const V of T)AA(V)&&An(V.name)&&D.add(V.name.escapedText);const I=Yr(l.parameters,V=>An(V.name)&&!D.has(V.name.escapedText)?V.name.getText(y):void 0);if(I===void 0)return;const W=be.updateJSDocParameterTag(m,m.tagName,be.createIdentifier(I),m.isBracketed,m.typeExpression,m.isNameFirst,m.comment),O=Hs.ChangeTracker.with(t,V=>V.replaceJSDocComment(y,s,Vn(T,ee=>ee===m?W:ee)));return mC(ove,O,[w.Rename_param_tag_name_0_to_1,r.getText(y),I])}function Fle(t,r){const s=bf(t,r);if(s.parent&&AA(s.parent)&&An(s.parent.name)){const l=s.parent,m=P7(l),y=VE(l);if(m&&y)return{jsDocHost:m,signature:y,name:s.parent.name,jsDocParameterTag:l}}}var Wee,ove,xFe,r_t=G({"src/services/codefixes/fixUnmatchedParameter.ts"(){El(),hp(),Wee="deleteUnmatchedParameter",ove="renameUnmatchedParameter",xFe=[w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],up({fixIds:[Wee,ove],errorCodes:xFe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=[],y=Fle(s,l.start);if(y)return ur(m,n_t(r,y)),ur(m,wXe(r,y)),m},getAllCodeActions:function(r){const s=new Map;return GR(Hs.ChangeTracker.with(r,l=>{LF(r,xFe,({file:m,start:y})=>{const T=Fle(m,y);T&&s.set(T.signature,ur(s.get(T.signature),T.jsDocParameterTag))}),s.forEach((m,y)=>{if(r.fixId===Wee){const T=new Set(m);l.filterJSDocTags(y.getSourceFile(),y,D=>!T.has(D))}})}))}})}});function i_t(t,r,s){const l=to(bf(t,s),An);if(!l||l.parent.kind!==183)return;const y=r.getTypeChecker().getSymbolAtLocation(l);return lr((y==null?void 0:y.declarations)||Zn,dA(lC,oS,kh))}function o_t(t,r,s,l){if(s.kind===271){t.insertModifierBefore(r,156,s.name);return}const m=s.kind===273?s:s.parent.parent;if(m.name&&m.namedBindings)return;const y=l.getTypeChecker();I7(m,D=>{if(dg(D.symbol,y).flags&111551)return!0})||t.insertModifierBefore(r,156,m)}function BIe(t,r,s,l){Eq.doChangeNamedToNamespaceOrDefault(r,l,t,s.parent)}var ave,RXe,MXe=G({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){El(),hp(),ave="fixUnreferenceableDecoratorMetadata",RXe=[w.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],up({errorCodes:RXe,getCodeActions:t=>{const r=i_t(t.sourceFile,t.program,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,y=>r.kind===276&&BIe(y,t.sourceFile,r,t.program)),l=Hs.ChangeTracker.with(t,y=>o_t(y,t.sourceFile,r,t.program));let m;return s.length&&(m=ur(m,mC(ave,s,w.Convert_named_imports_to_namespace_import))),l.length&&(m=ur(m,mC(ave,l,w.Use_import_type))),m},fixIds:[ave]})}});function Bee(t,r,s){t.replaceNode(r,s.parent,be.createKeywordTypeNode(159))}function zee(t,r){return Hc(rV,t,r,Oq,w.Delete_all_unused_declarations)}function zIe(t,r,s){t.delete(r,ce.checkDefined(uc(s.parent,hde).typeParameters,"The type parameter to delete should exist"))}function GIe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function AFe(t){return t.kind===102?to(t.parent,Fv):void 0}function CFe(t,r){return My(r.parent)&&Dl(r.parent.getChildren(t))===r}function LXe(t,r,s){t.delete(r,s.parent.kind===243?s.parent:s)}function a_t(t,r,s){Ot(s.elements,l=>t.delete(r,l))}function OXe(t,r,s,{parent:l}){if(ff(l)&&l.initializer&&ib(l.initializer))if(My(l.parent)&&Nt(l.parent.declarations)>1){const m=l.parent.parent,y=m.getStart(s),T=m.end;r.delete(s,l),r.insertNodeAt(s,T,l.initializer,{prefix:NP(t.host,t.formatContext.options)+s.text.slice(Rj(s.text,y-1),y),suffix:UZ(s)?";":""})}else r.replaceNode(s,l.parent,l.initializer);else r.delete(s,l)}function FXe(t,r,s,l){r!==w.Property_0_is_declared_but_its_value_is_never_read.code&&(l.kind===140&&(l=uc(l.parent,fI).typeParameter.name),An(l)&&jIe(l)&&(t.replaceNode(s,l,be.createIdentifier(`_${l.text}`)),Pu(l.parent)&&Gz(l.parent).forEach(m=>{An(m.name)&&t.replaceNode(s,m.name,be.createIdentifier(`_${m.name.text}`))})))}function jIe(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 VIe(t,r,s,l,m,y,T,D){s_t(r,s,t,l,m,y,T,D),An(r)&&Wf.Core.eachSymbolReferenceInFile(r,l,t,I=>{sa(I.parent)&&I.parent.name===I&&(I=I.parent),!D&&Wle(I)&&s.delete(t,I.parent.parent)})}function s_t(t,r,s,l,m,y,T,D){const{parent:I}=t;if(Pu(I))WXe(r,s,I,l,m,y,T,D);else if(!(D&&An(t)&&Wf.Core.isSymbolReferencedInFile(t,l,s))){const W=lC(I)?t:am(I)?I.parent:I;ce.assert(W!==s,"should not delete whole source file"),r.delete(s,W)}}function WXe(t,r,s,l,m,y,T,D=!1){if(c_t(l,r,s,m,y,T,D))if(s.modifiers&&s.modifiers.length>0&&(!An(s.name)||Wf.Core.isSymbolReferencedInFile(s.name,l,r)))for(const I of s.modifiers)bd(I)&&t.deleteModifier(r,I);else!s.initializer&&BXe(s,l,m)&&t.delete(r,s)}function BXe(t,r,s){const l=t.parent.parameters.indexOf(t);return!Wf.Core.someSignatureUsage(t.parent,s,r,(m,y)=>!y||y.arguments.length>l)}function c_t(t,r,s,l,m,y,T){const{parent:D}=s;switch(D.kind){case 174:case 176:const I=D.parameters.indexOf(s),W=em(D)?D.name:D,O=Wf.Core.getReferencedSymbolsForNode(D.pos,W,m,l,y);if(O){for(const V of O)for(const ee of V.references)if(ee.kind===Wf.EntryKind.Node){const te=wJ(ee.node)&&el(ee.node.parent)&&ee.node.parent.arguments.length>I,oe=sa(ee.node.parent)&&wJ(ee.node.parent.expression)&&el(ee.node.parent.parent)&&ee.node.parent.parent.arguments.length>I,de=(em(ee.node.parent)||Jh(ee.node.parent))&&ee.node.parent!==s.parent&&ee.node.parent.parameters.length>I;if(te||oe||de)return!1}}return!0;case 262:return D.name&&zXe(t,r,D.name)?GXe(D,s,T):!0;case 218:case 219:return GXe(D,s,T);case 178:return!1;case 177:return!0;default:return ce.failBadSyntaxKind(D)}}function zXe(t,r,s){return!!Wf.Core.eachSymbolReferenceInFile(s,t,r,l=>An(l)&&el(l.parent)&&l.parent.arguments.indexOf(l)>=0)}function GXe(t,r,s){const l=t.parameters,m=l.indexOf(r);return ce.assert(m!==-1,"The parameter should already be in the list"),s?l.slice(m+1).every(y=>An(y.name)&&!y.symbol.isReferenced):m===l.length-1}function Wle(t){return(ys(t.parent)&&t.parent.left===t||(Z7(t.parent)||yk(t.parent))&&t.parent.operand===t)&&Ou(t.parent.parent)}var rV,Gee,Oq,Fq,Ble,DFe,jXe=G({"src/services/codefixes/fixUnusedIdentifier.ts"(){El(),hp(),rV="unusedIdentifier",Gee="unusedIdentifier_prefix",Oq="unusedIdentifier_delete",Fq="unusedIdentifier_deleteImports",Ble="unusedIdentifier_infer",DFe=[w._0_is_declared_but_its_value_is_never_read.code,w._0_is_declared_but_never_used.code,w.Property_0_is_declared_but_its_value_is_never_read.code,w.All_imports_in_import_declaration_are_unused.code,w.All_destructured_elements_are_unused.code,w.All_variables_are_unused.code,w.All_type_parameters_are_unused.code],up({errorCodes:DFe,getCodeActions(t){const{errorCode:r,sourceFile:s,program:l,cancellationToken:m}=t,y=l.getTypeChecker(),T=l.getSourceFiles(),D=bf(s,t.span.start);if(jx(D))return[zee(Hs.ChangeTracker.with(t,V=>V.delete(s,D)),w.Remove_template_tag)];if(D.kind===30){const V=Hs.ChangeTracker.with(t,ee=>zIe(ee,s,D));return[zee(V,w.Remove_type_parameters)]}const I=AFe(D);if(I){const V=Hs.ChangeTracker.with(t,ee=>ee.delete(s,I));return[Hc(rV,V,[w.Remove_import_from_0,kSe(I)],Fq,w.Delete_all_unused_imports)]}else if(GIe(D)){const V=Hs.ChangeTracker.with(t,ee=>VIe(s,D,ee,y,T,l,m,!1));if(V.length)return[Hc(rV,V,[w.Remove_unused_declaration_for_Colon_0,D.getText(s)],Fq,w.Delete_all_unused_imports)]}if(E1(D.parent)||vW(D.parent)){if(Pu(D.parent.parent)){const V=D.parent.elements,ee=[V.length>1?w.Remove_unused_declarations_for_Colon_0:w.Remove_unused_declaration_for_Colon_0,Vn(V,te=>te.getText(s)).join(", ")];return[zee(Hs.ChangeTracker.with(t,te=>a_t(te,s,D.parent)),ee)]}return[zee(Hs.ChangeTracker.with(t,V=>OXe(t,V,s,D.parent)),w.Remove_unused_destructuring_declaration)]}if(CFe(s,D))return[zee(Hs.ChangeTracker.with(t,V=>LXe(V,s,D.parent)),w.Remove_variable_statement)];const W=[];if(D.kind===140){const V=Hs.ChangeTracker.with(t,te=>Bee(te,s,D)),ee=uc(D.parent,fI).typeParameter.name.text;W.push(Hc(rV,V,[w.Replace_infer_0_with_unknown,ee],Ble,w.Replace_all_unused_infer_with_unknown))}else{const V=Hs.ChangeTracker.with(t,ee=>VIe(s,D,ee,y,T,l,m,!1));if(V.length){const ee=am(D.parent)?D.parent:D;W.push(zee(V,[w.Remove_unused_declaration_for_Colon_0,ee.getText(s)]))}}const O=Hs.ChangeTracker.with(t,V=>FXe(V,r,s,D));return O.length&&W.push(Hc(rV,O,[w.Prefix_0_with_an_underscore,D.getText(s)],Gee,w.Prefix_all_unused_declarations_with_where_possible)),W},fixIds:[Gee,Oq,Fq,Ble],getAllCodeActions:t=>{const{sourceFile:r,program:s,cancellationToken:l}=t,m=s.getTypeChecker(),y=s.getSourceFiles();return Km(t,DFe,(T,D)=>{const I=bf(r,D.start);switch(t.fixId){case Gee:FXe(T,D.code,r,I);break;case Fq:{const W=AFe(I);W?T.delete(r,W):GIe(I)&&VIe(r,I,T,m,y,s,l,!0);break}case Oq:{if(I.kind===140||GIe(I))break;if(jx(I))T.delete(r,I);else if(I.kind===30)zIe(T,r,I);else if(E1(I.parent)){if(I.parent.parent.initializer)break;(!Pu(I.parent.parent)||BXe(I.parent.parent,m,y))&&T.delete(r,I.parent.parent)}else{if(vW(I.parent.parent)&&I.parent.parent.parent.initializer)break;CFe(r,I)?LXe(T,r,I.parent):VIe(r,I,T,m,y,s,l,!0)}break}case Ble:I.kind===140&&Bee(T,r,I);break;default:ce.fail(JSON.stringify(t.fixId))}})}})}});function VXe(t,r,s,l,m){const y=bf(r,s),T=Kr(y,uf);if(T.getStart(r)!==y.getStart(r)){const I=JSON.stringify({statementKind:ce.formatSyntaxKind(T.kind),tokenKind:ce.formatSyntaxKind(y.kind),errorCode:m,start:s,length:l});ce.fail("Token and statement should start at the same point. "+I)}const D=(E_(T.parent)?T.parent:T).parent;if(!E_(T.parent)||T===Dl(T.parent.statements))switch(D.kind){case 245:if(D.elseStatement){if(E_(T.parent))break;t.replaceNode(r,T,be.createBlock(Zn));return}case 247:case 248:t.delete(r,D);return}if(E_(T.parent)){const I=s+l,W=ce.checkDefined(UIe(soe(T.parent.statements,T),O=>O.posVXe(l,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Hc(zle,s,w.Remove_unreachable_code,zle,w.Remove_all_unreachable_code)]},fixIds:[zle],getAllCodeActions:t=>Km(t,IFe,(r,s)=>VXe(r,s.file,s.start,s.length,s.code))})}});function sve(t,r,s){const l=bf(r,s),m=uc(l.parent,iS),y=l.getStart(r),T=m.statement.getStart(r),D=mv(y,T,r)?T:ep(r.text,Wm(m,59,r).end,!0);t.deleteRange(r,{pos:y,end:D})}var Gle,kFe,HXe=G({"src/services/codefixes/fixUnusedLabel.ts"(){El(),hp(),Gle="fixUnusedLabel",kFe=[w.Unused_label.code],up({errorCodes:kFe,getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>sve(s,t.sourceFile,t.span.start));return[Hc(Gle,r,w.Remove_unused_label,Gle,w.Remove_all_unused_labels)]},fixIds:[Gle],getAllCodeActions:t=>Km(t,kFe,(r,s)=>sve(r,s.file,s.start))})}});function PFe(t,r,s,l,m){t.replaceNode(r,s,m.typeToTypeNode(l,s,void 0))}function JXe(t,r,s){const l=Kr(bf(t,r),l_t),m=l&&l.type;return m&&{typeNode:m,type:NFe(s,m)}}function l_t(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 NFe(t,r){if(LG(r)){const s=t.getTypeFromTypeNode(r.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(ur([s,t.getUndefinedType()],r.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(r)}var jle,Vle,wFe,$Xe=G({"src/services/codefixes/fixJSDocTypes.ts"(){El(),hp(),jle="fixJSDocTypes_plain",Vle="fixJSDocTypes_nullable",wFe=[w.JSDoc_types_can_only_be_used_inside_documentation_comments.code,w._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,w._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],up({errorCodes:wFe,getCodeActions(t){const{sourceFile:r}=t,s=t.program.getTypeChecker(),l=JXe(r,t.span.start,s);if(!l)return;const{typeNode:m,type:y}=l,T=m.getText(r),D=[I(y,jle,w.Change_all_jsdoc_style_types_to_TypeScript)];return m.kind===321&&D.push(I(y,Vle,w.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),D;function I(W,O,V){const ee=Hs.ChangeTracker.with(t,te=>PFe(te,r,m,W,s));return Hc("jdocTypes",ee,[w.Change_0_to_1,T,s.typeToString(W)],O,V)}},fixIds:[jle,Vle],getAllCodeActions(t){const{fixId:r,program:s,sourceFile:l}=t,m=s.getTypeChecker();return Km(t,wFe,(y,T)=>{const D=JXe(T.file,T.start,m);if(!D)return;const{typeNode:I,type:W}=D,O=I.kind===321&&r===Vle?m.getNullableType(W,32768):W;PFe(y,l,I,O,m)})}})}});function RFe(t,r,s){t.replaceNodeWithText(r,s,`${s.text}()`)}function cve(t,r){const s=bf(t,r);if(sa(s.parent)){let l=s.parent;for(;sa(l.parent);)l=l.parent;return l.name}if(An(s))return s}var Ule,MFe,u_t=G({"src/services/codefixes/fixMissingCallParentheses.ts"(){El(),hp(),Ule="fixMissingCallParentheses",MFe=[w.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],up({errorCodes:MFe,fixIds:[Ule],getCodeActions(t){const{sourceFile:r,span:s}=t,l=cve(r,s.start);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>RFe(y,t.sourceFile,l));return[Hc(Ule,m,w.Add_missing_call_parentheses,Ule,w.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>Km(t,MFe,(r,s)=>{const l=cve(s.file,s.start);l&&RFe(r,s.file,l)})})}});function qXe(t){if(t.type)return t.type;if(ff(t.parent)&&t.parent.type&&Z2(t.parent.type))return t.parent.type.type}function LFe(t,r){const s=bf(t,r),l=GE(s);if(!l)return;let m;switch(l.kind){case 174:m=l.name;break;case 262:case 218:m=Wm(l,100,t);break;case 219:const y=l.typeParameters?30:21;m=Wm(l,y,t)||Dl(l.parameters);break;default:return}return m&&{insertBefore:m,returnType:qXe(l)}}function lve(t,r,{insertBefore:s,returnType:l}){if(l){const m=iH(l);(!m||m.kind!==80||m.text!=="Promise")&&t.replaceNode(r,l,be.createTypeReferenceNode("Promise",be.createNodeArray([l])))}t.insertModifierBefore(r,134,s)}var Hle,OFe,KXe=G({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){El(),hp(),Hle="fixAwaitInSyncFunction",OFe=[w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],up({errorCodes:OFe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=LFe(r,s.start);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>lve(y,r,l));return[Hc(Hle,m,w.Add_async_modifier_to_containing_function,Hle,w.Add_all_missing_async_modifiers)]},fixIds:[Hle],getAllCodeActions:function(r){const s=new Map;return Km(r,OFe,(l,m)=>{const y=LFe(m.file,m.start);!y||!y0(s,Im(y.insertBefore))||lve(l,r.sourceFile,y)})}})}});function HIe(t,r,s,l,m){let y,T;if(l===w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)y=r,T=r+s;else if(l===w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const D=m.program.getTypeChecker(),I=bf(t,r).parent;ce.assert(Am(I),"error span of fixPropertyOverrideAccessor should only be on an accessor");const W=I.parent;ce.assert(Jl(W),"erroneous accessors should only be inside classes");const O=Vb(XFe(W,D));if(!O)return[];const V=lf(g7(I.name)),ee=D.getPropertyOfType(D.getTypeAtLocation(O),V);if(!ee||!ee.valueDeclaration)return[];y=ee.valueDeclaration.pos,T=ee.valueDeclaration.end,t=ns(ee.valueDeclaration)}else ce.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+l);return sYe(t,m.program,y,T,m,w.Generate_get_and_set_accessors.message)}var Jle,JIe,f_t=G({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){El(),hp(),Jle=[w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],JIe="fixPropertyOverrideAccessor",up({errorCodes:Jle,getCodeActions(t){const r=HIe(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(r)return[Hc(JIe,r,w.Generate_get_and_set_accessors,JIe,w.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[JIe],getAllCodeActions:t=>Km(t,Jle,(r,s)=>{const l=HIe(s.file,s.start,s.length,s.code,t);if(l)for(const m of l)r.pushRaw(t.sourceFile,m)})})}});function __t(t,r){switch(t){case w.Parameter_0_implicitly_has_an_1_type.code:case w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ep(GE(r))?w.Infer_type_of_0_from_usage:w.Infer_parameter_types_from_usage;case w.Rest_parameter_0_implicitly_has_an_any_type.code:case w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Infer_parameter_types_from_usage;case w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return w.Infer_this_type_of_0_from_usage;default:return w.Infer_type_of_0_from_usage}}function XXe(t){switch(t){case w.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Variable_0_implicitly_has_an_1_type.code;case w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Parameter_0_implicitly_has_an_1_type.code;case w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Rest_parameter_0_implicitly_has_an_any_type.code;case w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Member_0_implicitly_has_an_1_type.code}return t}function FFe(t,r,s,l,m,y,T,D,I){if(!lR(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:W}=s,O=Qj(r,m,I,D);switch(l=XXe(l),l){case w.Member_0_implicitly_has_an_1_type.code:case w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ff(W)&&T(W)||Os(W)||Np(W))return YXe(t,O,r,W,m,D,y),O.writeFixes(t),W;if(sa(W)){const te=$le(W.name,m,y),oe=PF(te,W,m,D);if(oe){const de=be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(oe),void 0);t.addJSDocTags(r,uc(W.parent.parent,Ou),[de])}return O.writeFixes(t),W}return;case w.Variable_0_implicitly_has_an_1_type.code:{const te=m.getTypeChecker().getSymbolAtLocation(s);return te&&te.valueDeclaration&&ff(te.valueDeclaration)&&T(te.valueDeclaration)?(YXe(t,O,ns(te.valueDeclaration),te.valueDeclaration,m,D,y),O.writeFixes(t),te.valueDeclaration):void 0}}const V=GE(s);if(V===void 0)return;let ee;switch(l){case w.Parameter_0_implicitly_has_an_1_type.code:if(Ep(V)){uve(t,O,r,V,m,D,y),ee=V;break}case w.Rest_parameter_0_implicitly_has_an_any_type.code:if(T(V)){const te=uc(W,Pu);d_t(t,O,r,te,V,m,D,y),ee=te}break;case w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:tm(V)&&An(V.name)&&($Ie(t,O,r,V,$le(V.name,m,y),m,D),ee=V);break;case w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Ep(V)&&(uve(t,O,r,V,m,D,y),ee=V);break;case w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Hs.isThisTypeAnnotatable(V)&&T(V)&&(p_t(t,r,V,m,D,y),ee=V);break;default:return ce.fail(String(l))}return O.writeFixes(t),ee}function YXe(t,r,s,l,m,y,T){An(l.name)&&$Ie(t,r,s,l,$le(l.name,m,T),m,y)}function d_t(t,r,s,l,m,y,T,D){if(!An(l.name))return;const I=eYe(m,s,y,D);if(ce.assert(m.parameters.length===I.length,"Parameter count and inference count should match"),Rs(m))qIe(t,s,I,y,T);else{const W=ph(m)&&!Wm(m,21,s);W&&t.insertNodeBefore(s,Dl(m.parameters),be.createToken(21));for(const{declaration:O,type:V}of I)O&&!O.type&&!O.initializer&&$Ie(t,r,s,O,V,y,T);W&&t.insertNodeAfter(s,yl(m.parameters),be.createToken(22))}}function p_t(t,r,s,l,m,y){const T=KIe(s,r,l,y);if(!T||!T.length)return;const D=qle(l,T,y).thisParameter(),I=PF(D,s,l,m);I&&(Rs(s)?QXe(t,r,s,I):t.tryInsertThisTypeAnnotation(r,s,I))}function QXe(t,r,s,l){t.addJSDocTags(r,s,[be.createJSDocThisTag(void 0,be.createJSDocTypeExpression(l))])}function uve(t,r,s,l,m,y,T){const D=pp(l.parameters);if(D&&An(l.name)&&An(D.name)){let I=$le(l.name,m,T);I===m.getTypeChecker().getAnyType()&&(I=$le(D.name,m,T)),Rs(l)?qIe(t,s,[{declaration:D,type:I}],m,y):$Ie(t,r,s,D,I,m,y)}}function $Ie(t,r,s,l,m,y,T){const D=PF(m,l,y,T);if(D)if(Rs(s)&&l.kind!==171){const I=ff(l)?to(l.parent.parent,Dh):l;if(!I)return;const W=be.createJSDocTypeExpression(D),O=tm(l)?be.createJSDocReturnTag(void 0,W,void 0):be.createJSDocTypeTag(void 0,W,void 0);t.addJSDocTags(s,I,[O])}else ZXe(D,l,s,t,r,iu(y.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,l,D)}function ZXe(t,r,s,l,m,y){const T=pB(t,y);return T&&l.tryInsertTypeAnnotation(s,r,T.typeNode)?(Ot(T.symbols,D=>m.addImportFromExportedSymbol(D,!0)),!0):!1}function qIe(t,r,s,l,m){const y=s.length&&s[0].declaration.parent;if(!y)return;const T=Qo(s,D=>{const I=D.declaration;if(I.initializer||X1(I)||!An(I.name))return;const W=D.type&&PF(D.type,I,l,m);if(W){const O=be.cloneNode(I.name);return Sa(O,7168),{name:be.cloneNode(I.name),param:I,isOptional:!!D.isOptional,typeNode:W}}});if(T.length)if(ph(y)||Dm(y)){const D=ph(y)&&!Wm(y,21,r);D&&t.insertNodeBefore(r,Dl(y.parameters),be.createToken(21)),Ot(T,({typeNode:I,param:W})=>{const O=be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(I)),V=be.createJSDocComment(void 0,[O]);t.insertNodeAt(r,W.getStart(r),V,{suffix:" "})}),D&&t.insertNodeAfter(r,yl(y.parameters),be.createToken(22))}else{const D=Vn(T,({name:I,typeNode:W,isOptional:O})=>be.createJSDocParameterTag(void 0,I,!!O,be.createJSDocTypeExpression(W),!1,void 0));t.addJSDocTags(r,y,D)}}function Wq(t,r,s){return Qo(Wf.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),s),l=>l.kind!==Wf.EntryKind.Span?to(l.node,An):void 0)}function $le(t,r,s){const l=Wq(t,r,s);return qle(r,l,s).single()}function eYe(t,r,s,l){const m=KIe(t,r,s,l);return m&&qle(s,m,l).parameters(t)||t.parameters.map(y=>({declaration:y,type:An(y.name)?$le(y.name,s,l):s.getTypeChecker().getAnyType()}))}function KIe(t,r,s,l){let m;switch(t.kind){case 176:m=Wm(t,137,r);break;case 219:case 218:const y=t.parent;m=(ff(y)||Os(y))&&An(y.name)?y.name:t.name;break;case 262:case 174:case 173:m=t.name;break}if(m)return Wq(m,s,l)}function qle(t,r,s){const l=t.getTypeChecker(),m={string:()=>l.getStringType(),number:()=>l.getNumberType(),Array:on=>l.createArrayType(on),Promise:on=>l.createPromiseType(on)},y=[l.getStringType(),l.getNumberType(),l.createArrayType(l.getAnyType()),l.createPromiseType(l.getAnyType())];return{single:I,parameters:W,thisParameter:O};function T(){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 D(on){const pn=new Map;for(const Xr of on)Xr.properties&&Xr.properties.forEach((Ut,In)=>{pn.has(In)||pn.set(In,[]),pn.get(In).push(Ut)});const Or=new Map;return pn.forEach((Xr,Ut)=>{Or.set(Ut,D(Xr))}),{isNumber:on.some(Xr=>Xr.isNumber),isString:on.some(Xr=>Xr.isString),isNumberOrString:on.some(Xr=>Xr.isNumberOrString),candidateTypes:ea(on,Xr=>Xr.candidateTypes),properties:Or,calls:ea(on,Xr=>Xr.calls),constructs:ea(on,Xr=>Xr.constructs),numberIndex:Ot(on,Xr=>Xr.numberIndex),stringIndex:Ot(on,Xr=>Xr.stringIndex),candidateThisTypes:ea(on,Xr=>Xr.candidateThisTypes),inferredTypes:void 0}}function I(){return Dt(V(r))}function W(on){if(r.length===0||!on.parameters)return;const pn=T();for(const Xr of r)s.throwIfCancellationRequested(),ee(Xr,pn);const Or=[...pn.constructs||[],...pn.calls||[]];return on.parameters.map((Xr,Ut)=>{const In=[],gr=dP(Xr);let Cr=!1;for(const Gn of Or)if(Gn.argumentTypes.length<=Ut)Cr=Rs(on),In.push(l.getUndefinedType());else if(gr)for(let Ur=Ut;UrOr.every(Ut=>!Ut(Xr)))}function _t(on){return Dt(it(on))}function Dt(on){if(!on.length)return l.getAnyType();const pn=l.getUnionType([l.getStringType(),l.getNumberType()]);let Xr=ke(on,[{high:In=>In===l.getStringType()||In===l.getNumberType(),low:In=>In===pn},{high:In=>!(In.flags&16385),low:In=>!!(In.flags&16385)},{high:In=>!(In.flags&114689)&&!(ji(In)&16),low:In=>!!(ji(In)&16)}]);const Ut=Xr.filter(In=>ji(In)&16);return Ut.length&&(Xr=Xr.filter(In=>!(ji(In)&16)),Xr.push(Ft(Ut))),l.getWidenedType(l.getUnionType(Xr.map(l.getBaseTypeOfLiteralType),2))}function Ft(on){if(on.length===1)return on[0];const pn=[],Or=[],Xr=[],Ut=[];let In=!1,gr=!1;const Cr=zg();for(const Ur of on){for(const di of l.getPropertiesOfType(Ur))Cr.add(di.escapedName,di.valueDeclaration?l.getTypeOfSymbolAtLocation(di,di.valueDeclaration):l.getAnyType());pn.push(...l.getSignaturesOfType(Ur,0)),Or.push(...l.getSignaturesOfType(Ur,1));const so=l.getIndexInfoOfType(Ur,0);so&&(Xr.push(so.type),In=In||so.isReadonly);const ho=l.getIndexInfoOfType(Ur,1);ho&&(Ut.push(ho.type),gr=gr||ho.isReadonly)}const ei=Gc(Cr,(Ur,so)=>{const ho=so.lengthl.getBaseTypeOfLiteralType(Cr)),gr=(Xr=on.calls)!=null&&Xr.length?Ye(on):void 0;return gr&&In?Ut.push(l.getUnionType([gr,...In],2)):(gr&&Ut.push(gr),Nt(In)&&Ut.push(...In)),Ut.push(...ut(on)),Ut}function Ye(on){const pn=new Map;on.properties&&on.properties.forEach((In,gr)=>{const Cr=l.createSymbol(4,gr);Cr.links.type=_t(In),pn.set(gr,Cr)});const Or=on.calls?[kn(on.calls)]:[],Xr=on.constructs?[kn(on.constructs)]:[],Ut=on.stringIndex?[l.createIndexInfo(l.getStringType(),_t(on.stringIndex),!1)]:[];return l.createAnonymousType(void 0,pn,Or,Xr,Ut)}function ut(on){if(!on.properties||!on.properties.size)return[];const pn=y.filter(Or=>lt(Or,on));return 0zt(Or,on)):[]}function lt(on,pn){return pn.properties?!wT(pn.properties,(Or,Xr)=>{const Ut=l.getTypeOfPropertyOfType(on,Xr);return Ut?Or.calls?!l.getSignaturesOfType(Ut,0).length||!l.isTypeAssignableTo(Ut,Mn(Or.calls)):!l.isTypeAssignableTo(Ut,_t(Or)):!0}):!1}function zt(on,pn){if(!(ji(on)&4)||!pn.properties)return on;const Or=on.target,Xr=Vb(Or.typeParameters);if(!Xr)return on;const Ut=[];return pn.properties.forEach((In,gr)=>{const Cr=l.getTypeOfPropertyOfType(Or,gr);ce.assert(!!Cr,"generic should have all the properties of its reference."),Ut.push(...Wt(Cr,_t(In),Xr))}),m[on.symbol.escapedName](Dt(Ut))}function Wt(on,pn,Or){if(on===Or)return[pn];if(on.flags&3145728)return ea(on.types,In=>Wt(In,pn,Or));if(ji(on)&4&&ji(pn)&4){const In=l.getTypeArguments(on),gr=l.getTypeArguments(pn),Cr=[];if(In&&gr)for(let ei=0;eiUt.argumentTypes.length));for(let Ut=0;Utgr.argumentTypes[Ut]||l.getUndefinedType())),on.some(gr=>gr.argumentTypes[Ut]===void 0)&&(In.flags|=16777216),pn.push(In)}const Xr=_t(D(on.map(Ut=>Ut.return_)));return l.createSignature(void 0,void 0,void 0,pn,Xr,void 0,Or,0)}function cr(on,pn){pn&&!(pn.flags&1)&&!(pn.flags&131072)&&(on.candidateTypes||(on.candidateTypes=[])).push(pn)}function un(on,pn){pn&&!(pn.flags&1)&&!(pn.flags&131072)&&(on.candidateThisTypes||(on.candidateThisTypes=[])).push(pn)}}var Kle,WFe,tYe=G({"src/services/codefixes/inferFromUsage.ts"(){El(),hp(),Kle="inferFromUsage",WFe=[w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,w.Variable_0_implicitly_has_an_1_type.code,w.Parameter_0_implicitly_has_an_1_type.code,w.Rest_parameter_0_implicitly_has_an_any_type.code,w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,w.Member_0_implicitly_has_an_1_type.code,w.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],up({errorCodes:WFe,getCodeActions(t){const{sourceFile:r,program:s,span:{start:l},errorCode:m,cancellationToken:y,host:T,preferences:D}=t,I=bf(r,l);let W;const O=Hs.ChangeTracker.with(t,ee=>{W=FFe(ee,r,I,m,s,y,xT,T,D)}),V=W&&o_(W);return!V||O.length===0?void 0:[Hc(Kle,O,[__t(m,I),Yv(V)],Kle,w.Infer_all_types_from_usage)]},fixIds:[Kle],getAllCodeActions(t){const{sourceFile:r,program:s,cancellationToken:l,host:m,preferences:y}=t,T=CF();return Km(t,WFe,(D,I)=>{FFe(D,r,bf(I.file,I.start),I.code,s,l,T,m,y)})}})}});function BFe(t,r,s){if(Rs(t))return;const l=bf(t,s),m=Kr(l,J_),y=m==null?void 0:m.type;if(!y)return;const T=r.getTypeFromTypeNode(y),D=r.getAwaitedType(T)||r.getVoidType(),I=r.typeToTypeNode(D,y,void 0);if(I)return{returnTypeNode:y,returnType:T,promisedTypeNode:I,promisedType:D}}function fve(t,r,s,l){t.replaceNode(r,s,be.createTypeReferenceNode("Promise",[l]))}var Xle,zFe,nYe=G({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){El(),hp(),Xle="fixReturnTypeInAsyncFunction",zFe=[w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],up({errorCodes:zFe,fixIds:[Xle],getCodeActions:function(r){const{sourceFile:s,program:l,span:m}=r,y=l.getTypeChecker(),T=BFe(s,l.getTypeChecker(),m.start);if(!T)return;const{returnTypeNode:D,returnType:I,promisedTypeNode:W,promisedType:O}=T,V=Hs.ChangeTracker.with(r,ee=>fve(ee,s,D,W));return[Hc(Xle,V,[w.Replace_0_with_Promise_1,y.typeToString(I),y.typeToString(O)],Xle,w.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>Km(t,zFe,(r,s)=>{const l=BFe(s.file,t.program.getTypeChecker(),s.start);l&&fve(r,s.file,l.returnTypeNode,l.promisedTypeNode)})})}});function XIe(t,r,s,l){const{line:m}=Ah(r,s);(!l||m2(l,m))&&t.insertCommentBeforeLine(r,m,s," @ts-ignore")}var _ve,dve,GFe,jFe=G({"src/services/codefixes/disableJsDiagnostics.ts"(){El(),hp(),_ve="disableJsDiagnostics",dve="disableJsDiagnostics",GFe=Qo(Object.keys(w),t=>{const r=w[t];return r.category===1?r.code:void 0}),up({errorCodes:GFe,getCodeActions:function(r){const{sourceFile:s,program:l,span:m,host:y,formatContext:T}=r;if(!Rs(s)||!tW(s,l.getCompilerOptions()))return;const D=s.checkJsDirective?"":NP(y,T.options),I=[mC(_ve,[ROe(s.fileName,[NZ(s.checkJsDirective?R0(s.checkJsDirective.pos,s.checkJsDirective.end):nb(0,0),`// @ts-nocheck${D}`)])],w.Disable_checking_for_this_file)];return Hs.isValidLocationToAddComment(s,m.start)&&I.unshift(Hc(_ve,Hs.ChangeTracker.with(r,W=>XIe(W,s,m.start)),w.Ignore_this_error_message,dve,w.Add_ts_ignore_to_all_error_messages)),I},fixIds:[dve],getAllCodeActions:t=>{const r=new Set;return Km(t,GFe,(s,l)=>{Hs.isValidLocationToAddComment(l.file,l.start)&&XIe(s,l.file,l.start,r)})}})}});function dB(t,r,s,l,m,y,T){const D=t.symbol.members;for(const I of r)D.has(I.escapedName)||pve(I,t,s,l,m,y,T,void 0)}function iV(t){return{trackSymbol:()=>!1,moduleResolverHost:eq(t.program,t.host)}}function pve(t,r,s,l,m,y,T,D,I=3,W=!1){const O=t.getDeclarations(),V=pp(O),ee=l.program.getTypeChecker(),te=iu(l.program.getCompilerOptions()),oe=(V==null?void 0:V.kind)??171,de=ut(t,V),ue=V?tS(V):0;let Ne=ue&32;Ne|=ue&4?4:ue&16?16:0,V&&rb(V)&&(Ne|=128);const Be=_t(),Ve=ee.getWidenedType(ee.getTypeOfSymbolAtLocation(t,r)),pt=!!(t.flags&16777216),Le=!!(r.flags&33554432)||W,ht=Jx(s,m);switch(oe){case 171:case 172:const lt=ht===0?268435456:void 0;let zt=ee.typeToTypeNode(Ve,r,lt,iV(l));if(y){const tt=pB(zt,te);tt&&(zt=tt.typeNode,mB(y,tt.symbols))}T(be.createPropertyDeclaration(Be,V?Ft(de):t.getName(),pt&&I&2?be.createToken(58):void 0,zt,void 0));break;case 177:case 178:{ce.assertIsDefined(O);let tt=ee.typeToTypeNode(Ve,r,void 0,iV(l));const Mn=gG(O,V),kn=Mn.secondAccessor?[Mn.firstAccessor,Mn.secondAccessor]:[Mn.firstAccessor];if(y){const cr=pB(tt,te);cr&&(tt=cr.typeNode,mB(y,cr.symbols))}for(const cr of kn)if(tm(cr))T(be.createGetAccessorDeclaration(Be,Ft(de),Zn,Ye(tt),it(D,ht,Le)));else{ce.assertNode(cr,Ep,"The counterpart to a getter should be a setter");const un=yR(cr),on=un&&An(un.name)?ec(un.name):void 0;T(be.createSetAccessorDeclaration(Be,Ft(de),HFe(1,[on],[Ye(tt)],1,!1),it(D,ht,Le)))}break}case 173:case 174:ce.assertIsDefined(O);const Wt=Ve.isUnion()?ea(Ve.types,tt=>tt.getCallSignatures()):Ve.getCallSignatures();if(!gt(Wt))break;if(O.length===1){ce.assert(Wt.length===1,"One declaration implies one signature");const tt=Wt[0];ke(ht,tt,Be,Ft(de),it(D,ht,Le));break}for(const tt of Wt)ke(ht,tt,Be,Ft(de));if(!Le)if(O.length>Wt.length){const tt=ee.getSignatureFromDeclaration(O[O.length-1]);ke(ht,tt,Be,Ft(de),it(D,ht))}else ce.assert(O.length===Wt.length,"Declarations and signatures should match count"),T(m_t(ee,l,r,Wt,Ft(de),pt&&!!(I&1),Be,ht,D));break}function ke(lt,zt,Wt,tt,Mn){const kn=Yle(174,l,lt,zt,Mn,tt,Wt,pt&&!!(I&1),r,y);kn&&T(kn)}function _t(){let lt;return Ne&&(lt=FD(lt,be.createModifiersFromModifierFlags(Ne))),Dt()&&(lt=ur(lt,be.createToken(164))),lt&&be.createNodeArray(lt)}function Dt(){return!!(l.program.getCompilerOptions().noImplicitOverride&&V&&fk(V))}function Ft(lt){return An(lt)&<.escapedText==="constructor"?be.createComputedPropertyName(be.createStringLiteral(ec(lt),ht===0)):Rg(lt,!1)}function it(lt,zt,Wt){return Wt?void 0:Rg(lt,!1)||jee(zt)}function Ye(lt){return Rg(lt,!1)}function ut(lt,zt){if(I_(lt)&262144){const Wt=lt.links.nameType;if(Wt&&yv(Wt))return be.createIdentifier(lf(vv(Wt)))}return Rg(o_(zt),!1)}}function Yle(t,r,s,l,m,y,T,D,I,W){const O=r.program,V=O.getTypeChecker(),ee=iu(O.getCompilerOptions()),te=Rs(I),oe=524545|(s===0?268435456:0),de=V.signatureToSignatureDeclaration(l,t,I,oe,iV(r));if(!de)return;let ue=te?void 0:de.typeParameters,Ne=de.parameters,Be=te?void 0:de.type;if(W){if(ue){const ht=Ol(ue,ke=>{let _t=ke.constraint,Dt=ke.default;if(_t){const Ft=pB(_t,ee);Ft&&(_t=Ft.typeNode,mB(W,Ft.symbols))}if(Dt){const Ft=pB(Dt,ee);Ft&&(Dt=Ft.typeNode,mB(W,Ft.symbols))}return be.updateTypeParameterDeclaration(ke,ke.modifiers,ke.name,_t,Dt)});ue!==ht&&(ue=vr(be.createNodeArray(ht,ue.hasTrailingComma),ue))}const Le=Ol(Ne,ht=>{let ke=te?void 0:ht.type;if(ke){const _t=pB(ke,ee);_t&&(ke=_t.typeNode,mB(W,_t.symbols))}return be.updateParameterDeclaration(ht,ht.modifiers,ht.dotDotDotToken,ht.name,te?void 0:ht.questionToken,ke,ht.initializer)});if(Ne!==Le&&(Ne=vr(be.createNodeArray(Le,Ne.hasTrailingComma),Ne)),Be){const ht=pB(Be,ee);ht&&(Be=ht.typeNode,mB(W,ht.symbols))}}const Ve=D?be.createToken(58):void 0,pt=de.asteriskToken;if(Dm(de))return be.updateFunctionExpression(de,T,de.asteriskToken,to(y,An),ue,Ne,Be,m??de.body);if(ph(de))return be.updateArrowFunction(de,T,ue,Ne,Be,de.equalsGreaterThanToken,m??de.body);if(em(de))return be.updateMethodDeclaration(de,T,pt,y??be.createIdentifier(""),Ve,ue,Ne,Be,m);if(b0(de))return be.updateFunctionDeclaration(de,T,de.asteriskToken,to(y,An),ue,Ne,Be,m??de.body)}function VFe(t,r,s,l,m,y,T){const D=Jx(r.sourceFile,r.preferences),I=iu(r.program.getCompilerOptions()),W=iV(r),O=r.program.getTypeChecker(),V=Rs(T),{typeArguments:ee,arguments:te,parent:oe}=l,de=V?void 0:O.getContextualType(l),ue=Vn(te,Dt=>An(Dt)?Dt.text:sa(Dt)&&An(Dt.name)?Dt.name.text:void 0),Ne=V?[]:Vn(te,Dt=>O.getTypeAtLocation(Dt)),{argumentTypeNodes:Be,argumentTypeParameters:Ve}=iYe(O,s,Ne,T,I,1,W),pt=y?be.createNodeArray(be.createModifiersFromModifierFlags(y)):void 0,Le=Ds(oe)?be.createToken(42):void 0,ht=V?void 0:rYe(O,Ve,ee),ke=HFe(te.length,ue,Be,void 0,V),_t=V||de===void 0?void 0:O.typeToTypeNode(de,T,void 0,W);switch(t){case 174:return be.createMethodDeclaration(pt,Le,m,void 0,ht,ke,_t,jee(D));case 173:return be.createMethodSignature(pt,m,void 0,ht,ke,_t===void 0?be.createKeywordTypeNode(159):_t);case 262:return ce.assert(typeof m=="string"||An(m),"Unexpected name"),be.createFunctionDeclaration(pt,Le,m,ht,ke,_t,Vee(w.Function_not_implemented.message,D));default:ce.fail("Unexpected kind")}}function rYe(t,r,s){const l=new Set(r.map(y=>y[0])),m=new Map(r);if(s){const y=s.filter(D=>!r.some(I=>{var W;return t.getTypeAtLocation(D)===((W=I[1])==null?void 0:W.argumentType)})),T=l.size+y.length;for(let D=0;l.size{var T;return be.createTypeParameterDeclaration(void 0,y,(T=m.get(y))==null?void 0:T.constraint)})}function mve(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function gve(t,r,s,l,m,y,T){let D=t.typeToTypeNode(s,l,y,T);if(D&&Wx(D)){const I=pB(D,m);I&&(mB(r,I.symbols),D=I.typeNode)}return Rg(D)}function UFe(t){return t.isUnionOrIntersection()?t.types.some(UFe):t.flags&262144}function iYe(t,r,s,l,m,y,T){const D=[],I=new Map;for(let W=0;W=l?be.createToken(58):void 0,m?void 0:(s==null?void 0:s[D])||be.createKeywordTypeNode(159),void 0);y.push(O)}return y}function m_t(t,r,s,l,m,y,T,D,I){let W=l[0],O=l[0].minArgumentCount,V=!1;for(const de of l)O=Math.min(de.minArgumentCount,O),oT(de)&&(V=!0),de.parameters.length>=W.parameters.length&&(!oT(de)||oT(W))&&(W=de);const ee=W.parameters.length-(oT(W)?1:0),te=W.parameters.map(de=>de.name),oe=HFe(ee,te,void 0,O,!1);if(V){const de=be.createParameterDeclaration(void 0,be.createToken(26),te[ee]||"rest",ee>=O?be.createToken(58):void 0,be.createArrayTypeNode(be.createKeywordTypeNode(159)),void 0);oe.push(de)}return JFe(T,m,y,void 0,oe,g_t(l,t,r,s),D,I)}function g_t(t,r,s,l){if(Nt(t)){const m=r.getUnionType(Vn(t,r.getReturnTypeOfSignature));return r.typeToTypeNode(m,l,1,iV(s))}}function JFe(t,r,s,l,m,y,T,D){return be.createMethodDeclaration(t,void 0,r,s?be.createToken(58):void 0,l,m,y,D||jee(T))}function jee(t){return Vee(w.Method_not_implemented.message,t)}function Vee(t,r){return be.createBlock([be.createThrowStatement(be.createNewExpression(be.createIdentifier("Error"),void 0,[be.createStringLiteral(t,r===0)]))],!0)}function hve(t,r,s){const l=A9(r);if(!l)return;const m=WF(l,"compilerOptions");if(m===void 0){t.insertNodeAtObjectStart(r,l,Zle("compilerOptions",be.createObjectLiteralExpression(s.map(([T,D])=>Zle(T,D)),!0)));return}const y=m.initializer;if(Wd(y))for(const[T,D]of s){const I=WF(y,T);I===void 0?t.insertNodeAtObjectStart(r,y,Zle(T,D)):t.replaceNode(r,I.initializer,D)}}function Qle(t,r,s,l){hve(t,r,[[s,l]])}function Zle(t,r){return be.createPropertyAssignment(be.createStringLiteral(t),r)}function WF(t,r){return lr(t.properties,s=>Fm(s)&&!!s.name&&Wp(s.name)&&s.name.text===r)}function pB(t,r){let s;const l=nr(t,m,Uu);if(s&&l)return{typeNode:l,symbols:s};function m(y){if(BE(y)&&y.qualifier){const T=NS(y.qualifier),D=cq(T.symbol,r),I=D!==T.text?oV(y.qualifier,be.createIdentifier(D)):y.qualifier;s=ur(s,T.symbol);const W=Fa(y.typeArguments,m,Uu);return be.createTypeReferenceNode(I,W)}return ia(y,m,I6)}}function oV(t,r){return t.kind===80?r:be.createQualifiedName(oV(t.left,r),t.right)}function mB(t,r){r.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function yve(t,r){const s=K1(r);let l=bf(t,r.start);for(;l.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))($Fe||{})}});function sYe(t,r,s,l,m,y){const T=fYe(t,r,s,l);if(!T||Eq.isRefactorErrorInfo(T))return;const D=Hs.ChangeTracker.fromContext(m),{isStatic:I,isReadonly:W,fieldName:O,accessorName:V,originalName:ee,type:te,container:oe,declaration:de}=T;e2(O),e2(V),e2(de),e2(oe);let ue,Ne;if(Jl(oe)){const Ve=tS(de);if(v1(t)){const pt=be.createModifiersFromModifierFlags(Ve);ue=pt,Ne=pt}else ue=be.createModifiersFromModifierFlags(y_t(Ve)),Ne=be.createModifiersFromModifierFlags(uYe(Ve));I3(de)&&(Ne=Hi(LL(de),Ne))}_Ye(D,t,de,te,O,Ne);const Be=v_t(O,V,te,ue,I,oe);if(e2(Be),dYe(D,t,Be,de,oe),W){const Ve=E2(oe);Ve&&E_t(D,t,Ve,O.text,ee)}else{const Ve=b_t(O,V,te,ue,I,oe);e2(Ve),dYe(D,t,Ve,de,oe)}return D.getChanges()}function h_t(t){return An(t)||Wp(t)}function cYe(t){return Eb(t,t.parent)||Os(t)||Fm(t)}function qFe(t,r){return An(r)?be.createIdentifier(t):be.createStringLiteral(t)}function lYe(t,r,s){const l=r?s.name:be.createThis();return An(t)?be.createPropertyAccessExpression(l,t):be.createElementAccessExpression(l,be.createStringLiteralFromNode(t))}function y_t(t){return t&=-65,t&=-9,t&16||(t|=4),t}function uYe(t){return t&=-5,t&=-17,t|=8,t}function fYe(t,r,s,l,m=!0){const y=bf(t,s),T=s===l&&m,D=Kr(y.parent,cYe),I=124;if(!D||!(h4(D.name,t,s,l)||T))return{error:fs(w.Could_not_find_property_for_which_to_generate_accessor)};if(!h_t(D.name))return{error:fs(w.Name_is_not_valid)};if((tS(D)&126975|I)!==I)return{error:fs(w.Can_only_convert_property_with_modifier)};const W=D.name.text,O=NF(W),V=qFe(O?W:eB(`_${W}`,t),D.name),ee=qFe(O?eB(W.substring(1),t):W,D.name);return{isStatic:Ny(D),isReadonly:Cb(D),type:KFe(D,r),container:D.kind===169?D.parent.parent:D.parent,originalName:D.name.text,declaration:D,fieldName:V,accessorName:ee,renameAccessor:O}}function v_t(t,r,s,l,m,y){return be.createGetAccessorDeclaration(l,r,[],s,be.createBlock([be.createReturnStatement(lYe(t,m,y))],!0))}function b_t(t,r,s,l,m,y){return be.createSetAccessorDeclaration(l,r,[be.createParameterDeclaration(void 0,void 0,be.createIdentifier("value"),void 0,s)],be.createBlock([be.createExpressionStatement(be.createAssignment(lYe(t,m,y),be.createIdentifier("value")))],!0))}function T_t(t,r,s,l,m,y){const T=be.updatePropertyDeclaration(s,y,m,s.questionToken||s.exclamationToken,l,s.initializer);t.replaceNode(r,s,T)}function S_t(t,r,s,l){let m=be.updatePropertyAssignment(s,l,s.initializer);(m.modifiers||m.questionToken||m.exclamationToken)&&(m===s&&(m=be.cloneNode(m)),m.modifiers=void 0,m.questionToken=void 0,m.exclamationToken=void 0),t.replacePropertyAssignment(r,s,m)}function _Ye(t,r,s,l,m,y){Os(s)?T_t(t,r,s,l,m,y):Fm(s)?S_t(t,r,s,m):t.replaceNode(r,s,be.updateParameterDeclaration(s,y,s.dotDotDotToken,uc(m,An),s.questionToken,s.type,s.initializer))}function dYe(t,r,s,l,m){Eb(l,l.parent)?t.insertMemberAtStart(r,m,s):Fm(l)?t.insertNodeAfterComma(r,l,s):t.insertNodeAfter(r,l,s)}function E_t(t,r,s,l,m){s.body&&s.body.forEachChild(function y(T){Ed(T)&&T.expression.kind===110&&Wp(T.argumentExpression)&&T.argumentExpression.text===m&&o6(T)&&t.replaceNode(r,T.argumentExpression,be.createStringLiteral(l)),sa(T)&&T.expression.kind===110&&T.name.text===m&&o6(T)&&t.replaceNode(r,T.name,be.createIdentifier(l)),!S_(T)&&!Jl(T)&&T.forEachChild(y)})}function KFe(t,r){const s=pSe(t);if(Os(t)&&s&&t.questionToken){const l=r.getTypeChecker(),m=l.getTypeFromTypeNode(s);if(!l.isTypeAssignableTo(l.getUndefinedType(),m)){const y=g6(s)?s.types:[s];return be.createUnionTypeNode([...y,be.createKeywordTypeNode(157)])}}return s}function XFe(t,r){const s=[];for(;t;){const l=oC(t),m=l&&r.getSymbolAtLocation(l.expression);if(!m)break;const y=m.flags&2097152?r.getAliasedSymbol(m):m,T=y.declarations&&lr(y.declarations,Jl);if(!T)break;s.push(T),t=T}return s}var x_t=G({"src/services/codefixes/generateAccessors.ts"(){El()}});function pYe(t,r){const s=ns(r),l=uH(r),m=t.program.getCompilerOptions(),y=[];return y.push(mYe(t,s,r,Pk(l.name,void 0,r.moduleSpecifier,Jx(s,t.preferences)))),Zp(m)===1&&y.push(mYe(t,s,r,be.createImportEqualsDeclaration(void 0,!1,l.name,be.createExternalModuleReference(r.moduleSpecifier)))),y}function mYe(t,r,s,l){const m=Hs.ChangeTracker.with(t,y=>y.replaceNode(r,s,l));return mC(YFe,m,[w.Replace_import_with_0,m[0].textChanges[0].newText])}function A_t(t){const r=t.sourceFile,s=w.This_expression_is_not_callable.code===t.errorCode?213:214,l=Kr(bf(r,t.span.start),y=>y.kind===s);if(!l)return[];const m=l.expression;return QIe(t,m)}function gYe(t){const r=t.sourceFile,s=Kr(bf(r,t.span.start),l=>l.getStart()===t.span.start&&l.getEnd()===t.span.start+t.span.length);return s?QIe(t,s):[]}function QIe(t,r){const s=t.program.getTypeChecker().getTypeAtLocation(r);if(!(s.symbol&&uk(s.symbol)&&s.symbol.links.originatingImport))return[];const l=[],m=s.symbol.links.originatingImport;if(WE(m)||Oi(l,pYe(t,m)),Nr(r)&&!(Xv(r.parent)&&r.parent.name===r)){const y=t.sourceFile,T=Hs.ChangeTracker.with(t,D=>D.replaceNode(y,r,be.createPropertyAccessExpression(r,"default"),{}));l.push(mC(YFe,T,w.Use_synthetic_default_member))}return l}var YFe,hYe=G({"src/services/codefixes/fixInvalidImportSyntax.ts"(){El(),hp(),YFe="invalidImportSyntax",up({errorCodes:[w.This_expression_is_not_callable.code,w.This_expression_is_not_constructable.code],getCodeActions:A_t}),up({errorCodes:[w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Type_0_does_not_satisfy_the_constraint_1.code,w.Type_0_is_not_assignable_to_type_1.code,w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,w.Type_predicate_0_is_not_assignable_to_1.code,w.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,w._0_index_type_1_is_not_assignable_to_2_index_type_3.code,w.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,w.Property_0_in_type_1_is_not_assignable_to_type_2.code,w.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:gYe})}});function yYe(t,r){const s=bf(t,r);if(An(s)&&Os(s.parent)){const l=Kb(s.parent);if(l)return{type:l,prop:s.parent,isJs:Rs(s.parent)}}}function vYe(t,r){if(r.isJs)return;const s=Hs.ChangeTracker.with(t,l=>bYe(l,t.sourceFile,r.prop));return Hc(Uee,s,[w.Add_definite_assignment_assertion_to_property_0,r.prop.getText()],Hee,w.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function bYe(t,r,s){e2(s);const l=be.updatePropertyDeclaration(s,s.modifiers,s.name,be.createToken(54),s.type,s.initializer);t.replaceNode(r,s,l)}function TYe(t,r){const s=Hs.ChangeTracker.with(t,l=>SYe(l,t.sourceFile,r));return Hc(Uee,s,[w.Add_undefined_type_to_property_0,r.prop.name.getText()],Jee,w.Add_undefined_type_to_all_uninitialized_properties)}function SYe(t,r,s){const l=be.createKeywordTypeNode(157),m=g6(s.type)?s.type.types.concat(l):[s.type,l],y=be.createUnionTypeNode(m);s.isJs?t.addJSDocTags(r,s.prop,[be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(y))]):t.replaceNode(r,s.type,y)}function EYe(t,r){if(r.isJs)return;const s=t.program.getTypeChecker(),l=ZFe(s,r.prop);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>QFe(y,t.sourceFile,r.prop,l));return Hc(Uee,m,[w.Add_initializer_to_property_0,r.prop.name.getText()],eue,w.Add_initializers_to_all_uninitialized_properties)}function QFe(t,r,s,l){e2(s);const m=be.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,l);t.replaceNode(r,s,m)}function ZFe(t,r){return vve(t,t.getTypeFromTypeNode(r.type))}function vve(t,r){if(r.flags&512)return r===t.getFalseType()||r===t.getFalseType(!0)?be.createFalse():be.createTrue();if(r.isStringLiteral())return be.createStringLiteral(r.value);if(r.isNumberLiteral())return be.createNumericLiteral(r.value);if(r.flags&2048)return be.createBigIntLiteral(r.value);if(r.isUnion())return Yr(r.types,s=>vve(t,s));if(r.isClass()){const s=RS(r.symbol);if(!s||il(s,256))return;const l=E2(s);return l&&l.parameters.length?void 0:be.createNewExpression(be.createIdentifier(r.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(r))return be.createArrayLiteralExpression()}var Uee,Hee,Jee,eue,e5e,xYe=G({"src/services/codefixes/fixStrictClassInitialization.ts"(){El(),hp(),Uee="strictClassInitialization",Hee="addMissingPropertyDefiniteAssignmentAssertions",Jee="addMissingPropertyUndefinedType",eue="addMissingPropertyInitializer",e5e=[w.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],up({errorCodes:e5e,getCodeActions:function(r){const s=yYe(r.sourceFile,r.span.start);if(!s)return;const l=[];return ur(l,TYe(r,s)),ur(l,vYe(r,s)),ur(l,EYe(r,s)),l},fixIds:[Hee,Jee,eue],getAllCodeActions:t=>Km(t,e5e,(r,s)=>{const l=yYe(s.file,s.start);if(l)switch(t.fixId){case Hee:bYe(r,s.file,l.prop);break;case Jee:SYe(r,s.file,l);break;case eue:const m=t.program.getTypeChecker(),y=ZFe(m,l.prop);if(!y)return;QFe(r,s.file,l.prop,y);break;default:ce.fail(JSON.stringify(t.fixId))}})})}});function t5e(t,r,s){const{allowSyntheticDefaults:l,defaultImportName:m,namedImports:y,statement:T,required:D}=s;t.replaceNode(r,T,m&&!l?be.createImportEqualsDeclaration(void 0,!1,m,be.createExternalModuleReference(D)):be.createImportDeclaration(void 0,be.createImportClause(!1,m,y),D,void 0))}function AYe(t,r,s){const{parent:l}=bf(t,s);eT(l,!0)||ce.failBadSyntaxKind(l);const m=uc(l.parent,ff),y=to(m.name,An),T=E1(m.name)?ZIe(m.name):void 0;if(y||T)return{allowSyntheticDefaults:VN(r.getCompilerOptions()),defaultImportName:y,namedImports:T,statement:uc(m.parent.parent,Dh),required:Dl(l.arguments)}}function ZIe(t){const r=[];for(const s of t.elements){if(!An(s.name)||s.initializer)return;r.push(be.createImportSpecifier(!1,to(s.propertyName,An),s.name))}if(r.length)return be.createNamedImports(r)}var tue,n5e,CYe=G({"src/services/codefixes/requireInTs.ts"(){El(),hp(),tue="requireInTs",n5e=[w.require_call_may_be_converted_to_an_import.code],up({errorCodes:n5e,getCodeActions(t){const r=AYe(t.sourceFile,t.program,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>t5e(l,t.sourceFile,r));return[Hc(tue,s,w.Convert_require_to_import,tue,w.Convert_all_require_to_import)]},fixIds:[tue],getAllCodeActions:t=>Km(t,n5e,(r,s)=>{const l=AYe(s.file,t.program,s.start);l&&t5e(r,t.sourceFile,l)})})}});function r5e(t,r){const s=bf(t,r);if(!An(s))return;const{parent:l}=s;if(kh(l)&&j0(l.moduleReference))return{importNode:l,name:s,moduleSpecifier:l.moduleReference.expression};if(QL(l)){const m=l.parent.parent;return{importNode:m,name:s,moduleSpecifier:m.moduleSpecifier}}}function bve(t,r,s,l){t.replaceNode(r,s.importNode,Pk(s.name,void 0,s.moduleSpecifier,Jx(r,l)))}var nue,i5e,DYe=G({"src/services/codefixes/useDefaultImport.ts"(){El(),hp(),nue="useDefaultImport",i5e=[w.Import_may_be_converted_to_a_default_import.code],up({errorCodes:i5e,getCodeActions(t){const{sourceFile:r,span:{start:s}}=t,l=r5e(r,s);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>bve(y,r,l,t.preferences));return[Hc(nue,m,w.Convert_to_default_import,nue,w.Convert_all_to_default_imports)]},fixIds:[nue],getAllCodeActions:t=>Km(t,i5e,(r,s)=>{const l=r5e(s.file,s.start);l&&bve(r,s.file,l,t.preferences)})})}});function Tve(t,r,s){const l=to(bf(r,s.start),nS);if(!l)return;const m=l.getText(r)+"n";t.replaceNode(r,l,be.createBigIntLiteral(m))}var rue,o5e,IYe=G({"src/services/codefixes/useBigintLiteral.ts"(){El(),hp(),rue="useBigintLiteral",o5e=[w.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],up({errorCodes:o5e,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>Tve(l,r.sourceFile,r.span));if(s.length>0)return[Hc(rue,s,w.Convert_to_a_bigint_numeric_literal,rue,w.Convert_all_to_bigint_numeric_literals)]},fixIds:[rue],getAllCodeActions:t=>Km(t,o5e,(r,s)=>Tve(r,s.file,s))})}});function a5e(t,r){const s=bf(t,r);return ce.assert(s.kind===102,"This token should be an ImportKeyword"),ce.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function s5e(t,r,s){const l=be.updateImportTypeNode(s,s.argument,s.assertions,s.qualifier,s.typeArguments,!0);t.replaceNode(r,s,l)}var Sve,iue,c5e,kYe=G({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){El(),hp(),Sve="fixAddModuleReferTypeMissingTypeof",iue=Sve,c5e=[w.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],up({errorCodes:c5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=a5e(s,l.start),y=Hs.ChangeTracker.with(r,T=>s5e(T,s,m));return[Hc(iue,y,w.Add_missing_typeof,iue,w.Add_missing_typeof)]},fixIds:[iue],getAllCodeActions:t=>Km(t,c5e,(r,s)=>s5e(r,t.sourceFile,a5e(s.file,s.start)))})}});function l5e(t,r){let m=bf(t,r).parent.parent;if(!(!ys(m)&&(m=m.parent,!ys(m)))&&Um(m.operatorToken))return m}function PYe(t,r,s){const l=eke(s);l&&t.replaceNode(r,s,be.createJsxFragment(be.createJsxOpeningFragment(),l,be.createJsxJsxClosingFragment()))}function eke(t){const r=[];let s=t;for(;;)if(ys(s)&&Um(s.operatorToken)&&s.operatorToken.kind===28){if(r.push(s.left),m1(s.right))return r.push(s.right),r;if(ys(s.right)){s=s.right;continue}else return}else return}var oue,u5e,NYe=G({"src/services/codefixes/wrapJsxInFragment.ts"(){El(),hp(),oue="wrapJsxInFragment",u5e=[w.JSX_expressions_must_have_one_parent_element.code],up({errorCodes:u5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=l5e(s,l.start);if(!m)return;const y=Hs.ChangeTracker.with(r,T=>PYe(T,s,m));return[Hc(oue,y,w.Wrap_in_JSX_fragment,oue,w.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[oue],getAllCodeActions:t=>Km(t,u5e,(r,s)=>{const l=l5e(t.sourceFile,s.start);l&&PYe(r,t.sourceFile,l)})})}});function wYe(t,r){const s=bf(t,r),l=to(s.parent.parent,Xb);if(!l)return;const m=Kp(l.parent)?l.parent:to(l.parent.parent,mg);if(m)return{indexSignature:l,container:m}}function RYe(t,r){return be.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,r)}function Eve(t,r,{indexSignature:s,container:l}){const y=(Kp(l)?l.members:l.type.members).filter(O=>!Xb(O)),T=Dl(s.parameters),D=be.createTypeParameterDeclaration(void 0,uc(T.name,An),T.type),I=be.createMappedTypeNode(Cb(s)?be.createModifier(148):void 0,D,void 0,s.questionToken,s.type,void 0),W=be.createIntersectionTypeNode([...fG(l),I,...y.length?[be.createTypeLiteralNode(y)]:Zn]);t.replaceNode(r,l,RYe(l,W))}var aue,f5e,_5e=G({"src/services/codefixes/convertToMappedObjectType.ts"(){El(),hp(),aue="fixConvertToMappedObjectType",f5e=[w.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],up({errorCodes:f5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=wYe(s,l.start);if(!m)return;const y=Hs.ChangeTracker.with(r,D=>Eve(D,s,m)),T=ec(m.container.name);return[Hc(aue,y,[w.Convert_0_to_mapped_object_type,T],aue,[w.Convert_0_to_mapped_object_type,T])]},fixIds:[aue],getAllCodeActions:t=>Km(t,f5e,(r,s)=>{const l=wYe(s.file,s.start);l&&Eve(r,s.file,l)})})}}),tke,MYe,LYe=G({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){El(),hp(),tke="removeAccidentalCallParentheses",MYe=[w.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],up({errorCodes:MYe,getCodeActions(t){const r=Kr(bf(t.sourceFile,t.span.start),el);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>{l.deleteRange(t.sourceFile,{pos:r.expression.end,end:r.end})});return[mC(tke,s,w.Remove_parentheses)]},fixIds:[tke]})}});function xve(t,r,s){const l=to(bf(r,s.start),D=>D.kind===135),m=l&&to(l.parent,h6);if(!m)return;let y=m;if(sb(m.parent)){const D=KL(m.expression,!1);if(An(D)){const I=T0(m.parent.pos,r);I&&I.kind!==105&&(y=m.parent)}}t.replaceNode(r,y,m.expression)}var sue,d5e,OYe=G({"src/services/codefixes/removeUnnecessaryAwait.ts"(){El(),hp(),sue="removeUnnecessaryAwait",d5e=[w.await_has_no_effect_on_the_type_of_this_expression.code],up({errorCodes:d5e,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>xve(l,r.sourceFile,r.span));if(s.length>0)return[Hc(sue,s,w.Remove_unnecessary_await,sue,w.Remove_all_unnecessary_uses_of_await)]},fixIds:[sue],getAllCodeActions:t=>Km(t,d5e,(r,s)=>xve(r,s.file,s))})}});function p5e(t,r){return Kr(bf(t,r.start),Fv)}function nke(t,r,s){if(!r)return;const l=ce.checkDefined(r.importClause);t.replaceNode(s.sourceFile,r,be.updateImportDeclaration(r,r.modifiers,be.updateImportClause(l,l.isTypeOnly,l.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(s.sourceFile,r,be.createImportDeclaration(void 0,be.updateImportClause(l,l.isTypeOnly,void 0,l.namedBindings),r.moduleSpecifier,r.assertClause))}var cue,rke,FYe=G({"src/services/codefixes/splitTypeOnlyImport.ts"(){El(),hp(),cue=[w.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],rke="splitTypeOnlyImport",up({errorCodes:cue,fixIds:[rke],getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>nke(l,p5e(r.sourceFile,r.span),r));if(s.length)return[Hc(rke,s,w.Split_into_two_separate_import_declarations,rke,w.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>Km(t,cue,(r,s)=>{nke(r,p5e(t.sourceFile,s),t)})})}});function m5e(t,r,s){var l;const y=s.getTypeChecker().getSymbolAtLocation(bf(t,r));if(y===void 0)return;const T=to((l=y==null?void 0:y.valueDeclaration)==null?void 0:l.parent,My);if(T===void 0)return;const D=Wm(T,87,t);if(D!==void 0)return{symbol:y,token:D}}function Ave(t,r,s){t.replaceNode(r,s,be.createToken(121))}var lue,g5e,WYe=G({"src/services/codefixes/convertConstToLet.ts"(){El(),hp(),lue="fixConvertConstToLet",g5e=[w.Cannot_assign_to_0_because_it_is_a_constant.code],up({errorCodes:g5e,getCodeActions:function(r){const{sourceFile:s,span:l,program:m}=r,y=m5e(s,l.start,m);if(y===void 0)return;const T=Hs.ChangeTracker.with(r,D=>Ave(D,s,y.token));return[NOe(lue,T,w.Convert_const_to_let,lue,w.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:r}=t,s=new Map;return GR(Hs.ChangeTracker.with(t,l=>{LF(t,g5e,m=>{const y=m5e(m.file,m.start,r);if(y&&y0(s,Bp(y.symbol)))return Ave(l,m.file,y.token)})}))},fixIds:[lue]})}});function h5e(t,r,s){const l=bf(t,r);return l.kind===27&&l.parent&&(Wd(l.parent)||Ch(l.parent))?{node:l}:void 0}function Cve(t,r,{node:s}){const l=be.createToken(28);t.replaceNode(r,s,l)}var Dve,ike,y5e,BYe=G({"src/services/codefixes/fixExpectedComma.ts"(){El(),hp(),Dve="fixExpectedComma",ike=w._0_expected.code,y5e=[ike],up({errorCodes:y5e,getCodeActions(t){const{sourceFile:r}=t,s=h5e(r,t.span.start,t.errorCode);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>Cve(m,r,s));return[Hc(Dve,l,[w.Change_0_to_1,";",","],Dve,[w.Change_0_to_1,";",","])]},fixIds:[Dve],getAllCodeActions:t=>Km(t,y5e,(r,s)=>{const l=h5e(s.file,s.start,s.code);l&&Cve(r,t.sourceFile,l)})})}});function zYe(t,r,s,l,m){const y=bf(r,s.start);if(!An(y)||!el(y.parent)||y.parent.expression!==y||y.parent.arguments.length!==0)return;const T=l.getTypeChecker(),D=T.getSymbolAtLocation(y),I=D==null?void 0:D.valueDeclaration;if(!I||!Pu(I)||!Ac(I.parent.parent)||m!=null&&m.has(I))return;m==null||m.add(I);const W=GYe(I.parent.parent);if(gt(W)){const O=W[0],V=!g6(O)&&!xR(O)&&xR(be.createUnionTypeNode([O,be.createKeywordTypeNode(116)]).types[0]);V&&t.insertText(r,O.pos,"("),t.insertText(r,O.end,V?") | void":" | void")}else{const O=T.getResolvedSignature(y.parent),V=O==null?void 0:O.parameters[0],ee=V&&T.getTypeOfSymbolAtLocation(V,I.parent.parent);Rs(I)?(!ee||ee.flags&3)&&(t.insertText(r,I.parent.parent.end,")"),t.insertText(r,ep(r.text,I.parent.parent.pos),"/** @type {Promise} */(")):(!ee||ee.flags&2)&&t.insertText(r,I.parent.parent.expression.end,"")}}function GYe(t){var r;if(Rs(t)){if(sb(t.parent)){const s=(r=w8(t.parent))==null?void 0:r.typeExpression.type;if(s&&x2(s)&&An(s.typeName)&&ec(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var oke,Ive,v5e,fT=G({"src/services/codefixes/fixAddVoidToPromise.ts"(){El(),hp(),oke="addVoidToPromise",Ive="addVoidToPromise",v5e=[w.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,w.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],up({errorCodes:v5e,fixIds:[Ive],getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>zYe(s,t.sourceFile,t.span,t.program));if(r.length>0)return[Hc(oke,r,w.Add_void_to_Promise_resolved_without_a_value,Ive,w.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return Km(t,v5e,(r,s)=>zYe(r,s.file,s,t.program,new Set))}})}}),If={};Oe(If,{PreserveOptionalFlags:()=>$Fe,addNewNodeForMemberSymbol:()=>pve,codeFixAll:()=>Km,createCodeFixAction:()=>Hc,createCodeFixActionMaybeFixAll:()=>NOe,createCodeFixActionWithoutFixAll:()=>mC,createCombinedCodeActions:()=>GR,createFileTextChanges:()=>ROe,createImportAdder:()=>Qj,createImportSpecifierResolver:()=>Pft,createJsonPropertyAssignment:()=>Zle,createMissingMemberNodes:()=>dB,createSignatureDeclarationFromCallExpression:()=>VFe,createSignatureDeclarationFromSignature:()=>Yle,createStubbedBody:()=>Vee,eachDiagnostic:()=>LF,findAncestorMatchingSpan:()=>yve,findJsonProperty:()=>WF,generateAccessorFromProperty:()=>sYe,getAccessorConvertiblePropertyAtPosition:()=>fYe,getAllFixes:()=>Sg,getAllSupers:()=>XFe,getArgumentTypesAndTypeParameters:()=>iYe,getFixes:()=>qqe,getImportCompletionAction:()=>WKe,getImportKind:()=>v7e,getJSDocTypedefNodes:()=>u7e,getNoopSymbolTrackerWithResolver:()=>iV,getPromoteTypeOnlyCompletionAction:()=>BKe,getSupportedErrorCodes:()=>Qut,importFixName:()=>Bye,importSymbols:()=>mB,moduleSpecifierToValidIdentifier:()=>Wye,moduleSymbolToValidIdentifier:()=>Fye,parameterShouldGetTypeFromJSDoc:()=>VOe,registerCodeFix:()=>up,setJsonCompilerOptionValue:()=>Qle,setJsonCompilerOptionValues:()=>hve,tryGetAutoImportableReferenceFromTypeNode:()=>pB,typeToAutoImportableTypeNode:()=>gve});var hp=G({"src/services/_namespaces/ts.codefix.ts"(){kDe(),Zut(),Xqe(),Qqe(),nft(),FOe(),WOe(),GDe(),rft(),fKe(),qDe(),_ft(),pft(),CKe(),DKe(),kKe(),Cft(),RKe(),MKe(),OKe(),qKe(),XKe(),ZKe(),eXe(),tXe(),Vft(),oXe(),sXe(),fXe(),vXe(),TXe(),SXe(),xXe(),AXe(),CXe(),DXe(),Zft(),kXe(),PXe(),NXe(),e_t(),t_t(),r_t(),MXe(),jXe(),UXe(),HXe(),$Xe(),u_t(),KXe(),f_t(),tYe(),nYe(),jFe(),aYe(),x_t(),hYe(),xYe(),CYe(),DYe(),IYe(),kYe(),NYe(),_5e(),LYe(),OYe(),FYe(),WYe(),BYe(),fT()}});function C_t(t){return!!(t.kind&1)}function kve(t){return!!(t.kind&2)}function BF(t){return!!(t&&t.kind&4)}function $ee(t){return!!(t&&t.kind===32)}function D_t(t){return BF(t)||$ee(t)||ake(t)}function I_t(t){return(BF(t)||$ee(t))&&!!t.isFromPackageJson}function k_t(t){return!!(t.kind&8)}function jYe(t){return!!(t.kind&16)}function b5e(t){return!!(t&&t.kind&64)}function VYe(t){return!!(t&&t.kind&128)}function T5e(t){return!!(t&&t.kind&256)}function ake(t){return!!(t&&t.kind&512)}function UYe(t,r,s,l,m,y,T,D,I){var W,O,V;const ee=cf(),te=T||UN(Jd(l.getCompilerOptions()));let oe=!1,de=0,ue=0,Ne=0,Be=0;const Ve=I({tryResolve:Le,skippedAny:()=>oe,resolvedAny:()=>ue>0,resolvedBeyondLimit:()=>ue>Yee}),pt=Be?` (${(Ne/Be*100).toFixed(1)}% hit rate)`:"";return(W=r.log)==null||W.call(r,`${t}: resolved ${ue} module specifiers, plus ${de} ambient and ${Ne} from cache${pt}`),(O=r.log)==null||O.call(r,`${t}: response is ${oe?"incomplete":"complete"}`),(V=r.log)==null||V.call(r,`${t}: ${cf()-ee}`),Ve;function Le(ht,ke){if(ke){const it=s.getModuleSpecifierForBestExportInfo(ht,m,D);return it&&de++,it||"failed"}const _t=te||y.allowIncompleteCompletions&&ue{const oe=Qo(I.entries,de=>{var ue;if(!de.hasAction||!de.source||!de.data||HYe(de.data))return de;if(!hQe(de.name,O))return;const{origin:Ne}=ce.checkDefined(Fve(de.name,de.data,l,m)),Be=V.get(r.path,de.data.exportMapKey),Ve=Be&&te.tryResolve(Be,!tb(HE(Ne.moduleSymbol.name)));if(Ve==="skipped")return de;if(!Ve||Ve==="failed"){(ue=m.log)==null||ue.call(m,`Unexpected failure resolving auto import for '${de.name}' from '${de.source}'`);return}const pt={...Ne,kind:32,moduleSpecifier:Ve.moduleSpecifier};return de.data=ZYe(pt),de.source=Rve(pt),de.sourceDisplay=[RA(pt.moduleSpecifier)],de});return te.skippedAny()||(I.isIncomplete=void 0),oe});return I.entries=ee,I.flags=(I.flags||0)|4,I.optionalReplacementSpan=KYe(W),I}function ske(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function E5e(t,r,s,l,m,y){const T=bf(t,r);if(!NT(T)&&!Gx(T))return[];const D=Gx(T)?T:T.parent;if(!Gx(D))return[];const I=D.parent;if(!S_(I))return[];const W=v1(t),O=m.includeCompletionsWithSnippetText||void 0,V=dp(D.tags,ee=>AA(ee)&&ee.getEnd()<=r);return Qo(I.parameters,ee=>{if(!Gz(ee).length){if(An(ee.name)){const te={tabstop:1},oe=ee.name.text;let de=fue(oe,ee.initializer,ee.dotDotDotToken,W,!1,!1,s,l,m),ue=O?fue(oe,ee.initializer,ee.dotDotDotToken,W,!1,!0,s,l,m,te):void 0;return y&&(de=de.slice(1),ue&&(ue=ue.slice(1))),{name:de,kind:"parameter",sortText:cm.LocationPriority,insertText:O?ue:void 0,isSnippet:O}}else if(ee.parent.parameters.indexOf(ee)===V){const te=`param${V}`,oe=qee(te,ee.name,ee.initializer,ee.dotDotDotToken,W,!1,s,l,m),de=O?qee(te,ee.name,ee.initializer,ee.dotDotDotToken,W,!0,s,l,m):void 0;let ue=oe.join(JE(l)+"* "),Ne=de==null?void 0:de.join(JE(l)+"* ");return y&&(ue=ue.slice(1),Ne&&(Ne=Ne.slice(1))),{name:ue,kind:"parameter",sortText:cm.LocationPriority,insertText:O?Ne:void 0,isSnippet:O}}}})}function qee(t,r,s,l,m,y,T,D,I){if(!m)return[fue(t,s,l,m,!1,y,T,D,I,{tabstop:1})];return W(t,r,s,l,{tabstop:1});function W(V,ee,te,oe,de){if(E1(ee)&&!oe){const Ne={tabstop:de.tabstop},Be=fue(V,te,oe,m,!0,y,T,D,I,Ne);let Ve=[];for(const pt of ee.elements){const Le=O(V,pt,Ne);if(Le)Ve.push(...Le);else{Ve=void 0;break}}if(Ve)return de.tabstop=Ne.tabstop,[Be,...Ve]}return[fue(V,te,oe,m,!1,y,T,D,I,de)]}function O(V,ee,te){if(!ee.propertyName&&An(ee.name)||An(ee.name)){const oe=ee.propertyName?nH(ee.propertyName):ee.name.text;if(!oe)return;const de=`${V}.${oe}`;return[fue(de,ee.initializer,ee.dotDotDotToken,m,!1,y,T,D,I,te)]}else if(ee.propertyName){const oe=nH(ee.propertyName);return oe&&W(`${V}.${oe}`,ee.name,ee.initializer,ee.dotDotDotToken,te)}}}function fue(t,r,s,l,m,y,T,D,I,W){if(y&&ce.assertIsDefined(W),r&&(t=P_t(t,r)),y&&(t=nD(t)),l){let O="*";if(m)ce.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),O="Object";else{if(r){const te=T.getTypeAtLocation(r.parent);if(!(te.flags&16385)){const oe=r.getSourceFile(),ue=Jx(oe,I)===0?268435456:0,Ne=T.typeToTypeNode(te,Kr(r,S_),ue);if(Ne){const Be=y?wve({removeComments:!0,module:D.module,target:D.target}):_4({removeComments:!0,module:D.module,target:D.target});Sa(Ne,1),O=Be.printNode(4,Ne,oe)}}}y&&O==="*"&&(O=`\${${W.tabstop++}:${O}}`)}const V=!m&&s?"...":"",ee=y?`\${${W.tabstop++}}`:"";return`@param {${V}${O}} ${t} ${ee}`}else{const O=y?`\${${W.tabstop++}}`:"";return`@param ${t} ${O}`}}function P_t(t,r){const s=r.getText().trim();return s.includes(` -`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function N_t(t){return{name:Nd(t),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords}}function JYe(t,r){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r,entries:t.slice()}}function $Ye(t,r,s){return{kind:4,keywordCompletions:w5e(t,r),isNewIdentifierLocation:s}}function qYe(t){switch(t){case 156:return 8;default:ce.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function KYe(t){return(t==null?void 0:t.kind)===80?gE(t):void 0}function XYe(t,r,s,l,m,y,T,D,I,W){const{symbols:O,contextToken:V,completionKind:ee,isInSnippetScope:te,isNewIdentifierLocation:oe,location:de,propertyAccessToConvert:ue,keywordFilters:Ne,symbolToOriginInfoMap:Be,recommendedCompletion:Ve,isJsxInitializer:pt,isTypeOnlyLocation:Le,isJsxIdentifierExpected:ht,isRightOfOpenTag:ke,isRightOfDotOrQuestionDot:_t,importStatementCompletion:Dt,insideJsDocTagTypeExpression:Ft,symbolToSortTextMap:it,hasUnresolvedAutoImports:Ye}=y;let ut=y.literals;const lt=s.getTypeChecker();if($9(t.scriptKind)===1){const cr=R_t(de,t);if(cr)return cr}const zt=Kr(V,tx);if(zt&&(EEe(V)||N7(V,zt.expression))){const cr=YZ(lt,zt.parent.clauses);ut=ut.filter(un=>!cr.hasValue(un)),O.forEach((un,on)=>{if(un.valueDeclaration&&Qb(un.valueDeclaration)){const pn=lt.getConstantValue(un.valueDeclaration);pn!==void 0&&cr.hasValue(pn)&&(Be[on]={kind:256})}})}const Wt=g2(),tt=x5e(t,l);if(tt&&!oe&&(!O||O.length===0)&&Ne===0)return;const Mn=I5e(O,Wt,void 0,V,de,I,t,r,s,iu(l),m,ee,T,l,D,Le,ue,ht,pt,Dt,Ve,Be,it,ht,ke,W);if(Ne!==0)for(const cr of w5e(Ne,!Ft&&v1(t)))(Le&&Q$(TN(cr.name))||!Mn.has(cr.name))&&(Mn.add(cr.name),d0(Wt,cr,uue,!0));for(const cr of U_t(V,I))Mn.has(cr.name)||(Mn.add(cr.name),d0(Wt,cr,uue,!0));for(const cr of ut){const un=M_t(t,T,cr);Mn.add(un.name),d0(Wt,un,uue,!0)}tt||A5e(t,de.pos,Mn,iu(l),Wt);let kn;if(T.includeCompletionsWithInsertText&&V&&!ke&&!_t&&(kn=Kr(V,xP))){const cr=Nve(kn,t,T,l,r,s,D);cr&&Wt.push(cr.entry)}return{flags:y.flags,isGlobalCompletion:te,isIncomplete:T.allowIncompleteCompletions&&Ye?!0:void 0,isMemberCompletion:w_t(ee),isNewIdentifierLocation:oe,optionalReplacementSpan:KYe(de),entries:Wt}}function x5e(t,r){return!v1(t)||!!tW(t,r)}function Nve(t,r,s,l,m,y,T){const D=t.clauses,I=y.getTypeChecker(),W=I.getTypeAtLocation(t.parent.expression);if(W&&W.isUnion()&&jr(W.types,O=>O.isLiteral())){const O=YZ(I,D),V=iu(l),ee=Jx(r,s),te=If.createImportAdder(r,y,s,m),oe=[];for(const Le of W.types)if(Le.flags&1024){ce.assert(Le.symbol,"An enum member type should have a symbol"),ce.assert(Le.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ht=Le.symbol.valueDeclaration&&I.getConstantValue(Le.symbol.valueDeclaration);if(ht!==void 0){if(O.hasValue(ht))continue;O.addValue(ht)}const ke=If.typeToAutoImportableTypeNode(I,te,Le,t,V);if(!ke)return;const _t=Kee(ke,V,ee);if(!_t)return;oe.push(_t)}else if(!O.hasValue(Le.value))switch(typeof Le.value){case"object":oe.push(Le.value.negative?be.createPrefixUnaryExpression(41,be.createBigIntLiteral({negative:!1,base10Value:Le.value.base10Value})):be.createBigIntLiteral(Le.value));break;case"number":oe.push(Le.value<0?be.createPrefixUnaryExpression(41,be.createNumericLiteral(-Le.value)):be.createNumericLiteral(Le.value));break;case"string":oe.push(be.createStringLiteral(Le.value,ee===0));break}if(oe.length===0)return;const de=Vn(oe,Le=>be.createCaseClause(Le,[])),ue=NP(m,T==null?void 0:T.options),Ne=wve({removeComments:!0,module:l.module,target:l.target,newLine:Fj(ue)}),Be=T?Le=>Ne.printAndFormatNode(4,Le,r,T):Le=>Ne.printNode(4,Le,r),Ve=Vn(de,(Le,ht)=>s.includeCompletionsWithSnippetText?`${Be(Le)}$${ht+1}`:`${Be(Le)}`).join(ue);return{entry:{name:`${Ne.printNode(4,de[0],r)} ...`,kind:"",sortText:cm.GlobalsOrKeywords,insertText:Ve,hasAction:te.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:te}}}function Kee(t,r,s){switch(t.kind){case 183:const l=t.typeName;return cke(l,r,s);case 199:const m=Kee(t.objectType,r,s),y=Kee(t.indexType,r,s);return m&&y&&be.createElementAccessExpression(m,y);case 201:const T=t.literal;switch(T.kind){case 11:return be.createStringLiteral(T.text,s===0);case 9:return be.createNumericLiteral(T.text,T.numericLiteralFlags)}return;case 196:const D=Kee(t.type,r,s);return D&&(An(D)?D:be.createParenthesizedExpression(D));case 186:return cke(t.exprName,r,s);case 205:ce.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function cke(t,r,s){if(An(t))return t;const l=lf(t.right.escapedText);return doe(l,r)?be.createPropertyAccessExpression(cke(t.left,r,s),l):be.createElementAccessExpression(cke(t.left,r,s),be.createStringLiteral(l,s===0))}function w_t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function R_t(t,r){const s=Kr(t,l=>{switch(l.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const l=!!Wm(s,32,r),T=s.parent.openingElement.tagName.getText(r)+(l?"":">"),D=gE(s.tagName),I={name:T,kind:"class",kindModifiers:void 0,sortText:cm.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:D,entries:[I]}}}function A5e(t,r,s,l,m){fDe(t).forEach((y,T)=>{if(y===r)return;const D=lf(T);!s.has(D)&&rE(D,l)&&(s.add(D),d0(m,{name:D,kind:"warning",kindModifiers:"",sortText:cm.JavascriptIdentifiers,isFromUncheckedFile:!0},uue))})}function C5e(t,r,s){return typeof s=="object"?tD(s)+"n":As(s)?uce(t,r,s):JSON.stringify(s)}function M_t(t,r,s){return{name:C5e(t,r,s),kind:"string",kindModifiers:"",sortText:cm.LocationPriority}}function L_t(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht,ke){var _t,Dt;let Ft,it,Ye=tce(s),ut,lt,zt=Rve(V),Wt,tt,Mn;const kn=I.getTypeChecker(),cr=V&&jYe(V),un=V&&kve(V)||O;if(V&&C_t(V))Ft=O?`this${cr?"?.":""}[${tQe(T,Be,W)}]`:`this${cr?"?.":"."}${W}`;else if((un||cr)&&te){Ft=un?O?`[${tQe(T,Be,W)}]`:`[${W}]`:W,(cr||te.questionDotToken)&&(Ft=`?.${Ft}`);const pn=Wm(te,25,T)||Wm(te,29,T);if(!pn)return;const Or=xf(W,te.name.text)?te.name.end:pn.end;Ye=R0(pn.getStart(T),Or)}if(oe&&(Ft===void 0&&(Ft=W),Ft=`{${Ft}}`,typeof oe!="boolean"&&(Ye=gE(oe,T))),V&&k_t(V)&&te){Ft===void 0&&(Ft=W);const pn=T0(te.pos,T);let Or="";pn&&sq(pn.end,pn.parent,T)&&(Or=";"),Or+=`(await ${te.expression.getText()})`,Ft=O?`${Or}${Ft}`:`${Or}${cr?"?.":"."}${Ft}`;const Ut=to(te.parent,h6)?te.parent:te.expression;Ye=R0(Ut.getStart(T),te.end)}if($ee(V)&&(Wt=[RA(V.moduleSpecifier)],de&&({insertText:Ft,replacementSpan:Ye}=eQe(W,de,V,ue,T,Ne,Be),lt=Be.includeCompletionsWithSnippetText?!0:void 0)),(V==null?void 0:V.kind)===64&&(tt=!0),Ve===0&&l&&((_t=T0(l.pos,T,l))==null?void 0:_t.kind)!==28&&(em(l.parent.parent)||tm(l.parent.parent)||Ep(l.parent.parent)||xk(l.parent)||((Dt=Kr(l.parent,Fm))==null?void 0:Dt.getLastToken(T))===l||BT(l.parent)&&Ah(T,l.getEnd()).line!==Ah(T,y).line)&&(zt="ObjectLiteralMemberWithComma/",tt=!0),Be.includeCompletionsWithClassMemberSnippets&&Be.includeCompletionsWithInsertText&&Ve===3&&YYe(t,m,T)){let pn;const Or=QYe(D,I,Ne,Be,W,t,m,y,l,pt);if(Or)({insertText:Ft,filterText:it,isSnippet:lt,importAdder:pn}=Or),pn!=null&&pn.hasFixes()&&(tt=!0,zt="ClassMemberSnippet/");else return}if(V&&VYe(V)&&({insertText:Ft,isSnippet:lt,labelDetails:Mn}=V,Be.useLabelDetailsInCompletionEntries||(W=W+Mn.detail,Mn=void 0),zt="ObjectLiteralMethodSnippet/",r=cm.SortBelow(r)),Le&&!ht&&Be.includeCompletionsWithSnippetText&&Be.jsxAttributeCompletionStyle&&Be.jsxAttributeCompletionStyle!=="none"&&!(Pb(m.parent)&&m.parent.initializer)){let pn=Be.jsxAttributeCompletionStyle==="braces";const Or=kn.getTypeOfSymbolAtLocation(t,m);Be.jsxAttributeCompletionStyle==="auto"&&!(Or.flags&528)&&!(Or.flags&1048576&&lr(Or.types,Xr=>!!(Xr.flags&528)))&&(Or.flags&402653316||Or.flags&1048576&&jr(Or.types,Xr=>!!(Xr.flags&402686084||Uge(Xr)))?(Ft=`${nD(W)}=${uce(T,Be,"$1")}`,lt=!0):pn=!0),pn&&(Ft=`${nD(W)}={$1}`,lt=!0)}if(Ft!==void 0&&!Be.includeCompletionsWithInsertText)return;(BF(V)||$ee(V))&&(ut=ZYe(V),tt=!de);const on=Kr(m,LH);if((on==null?void 0:on.kind)===275){const pn=TN(W);on&&pn&&(pn===135||W9(pn))&&(Ft=`${W} as ${W}_`)}return{name:W,kind:I4.getSymbolKind(kn,t,m),kindModifiers:I4.getSymbolModifiers(kn,t),sortText:r,source:zt,hasAction:tt?!0:void 0,isRecommended:D5e(t,ee,kn)||void 0,insertText:Ft,filterText:it,replacementSpan:Ye,sourceDisplay:Wt,labelDetails:Mn,isSnippet:lt,isPackageJsonImport:I_t(V)||void 0,isImportStatementCompletion:!!de||void 0,data:ut,...ke?{symbol:t}:void 0}}function YYe(t,r,s){return Rs(r)?!1:!!(t.flags&106500)&&(Jl(r)||r.parent&&r.parent.parent&&Mv(r.parent)&&r===r.parent.name&&r.parent.getLastToken(s)===r.parent.name&&Jl(r.parent.parent)||r.parent&&GJ(r)&&Jl(r.parent))}function QYe(t,r,s,l,m,y,T,D,I,W){const O=Kr(T,Jl);if(!O)return;let V,ee=m;const te=m,oe=r.getTypeChecker(),de=T.getSourceFile(),ue=wve({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:Fj(NP(t,W==null?void 0:W.options))}),Ne=If.createImportAdder(de,r,l,t);let Be;if(l.includeCompletionsWithSnippetText){V=!0;const Dt=be.createEmptyStatement();Be=be.createBlock([Dt],!0),NY(Dt,{kind:0,order:0})}else Be=be.createBlock([],!0);let Ve=0;const{modifiers:pt,range:Le,decorators:ht}=O_t(I,de,D),ke=pt&256&&O.modifierFlagsCache&256;let _t=[];if(If.addNewNodeForMemberSymbol(y,O,de,{program:r,host:t},l,Ne,Dt=>{let Ft=0;ke&&(Ft|=256),Mv(Dt)&&oe.getMemberOverrideModifierStatus(O,Dt,y)===1&&(Ft|=16384),_t.length||(Ve=Dt.modifierFlagsCache|Ft),Dt=be.updateModifiers(Dt,Ve),_t.push(Dt)},Be,If.PreserveOptionalFlags.Property,!!ke),_t.length){const Dt=y.flags&8192;let Ft=Ve|16384|4;Dt?Ft|=512:Ft|=66;const it=pt&Ft;if(pt&~Ft)return;if(Ve&16&&it&4&&(Ve&=-17),it!==0&&!(it&4)&&(Ve&=-5),Ve|=it,_t=_t.map(ut=>be.updateModifiers(ut,Ve)),ht!=null&&ht.length){const ut=_t[_t.length-1];I3(ut)&&(_t[_t.length-1]=be.updateModifierLike(ut,ht.concat(N8(ut)||[])))}const Ye=131073;W?ee=ue.printAndFormatSnippetList(Ye,be.createNodeArray(_t),de,W):ee=ue.printSnippetList(Ye,be.createNodeArray(_t),de)}return{insertText:ee,filterText:te,isSnippet:V,importAdder:Ne,eraseRange:Le}}function O_t(t,r,s){if(!t||Ah(r,s).line>Ah(r,t.getEnd()).line)return{modifiers:0};let l=0,m,y;const T={pos:s,end:s};if(Os(t.parent)&&t.parent.modifiers&&(l|=dk(t.parent.modifiers)&126975,m=t.parent.modifiers.filter(Qf)||[],T.pos=Math.min(T.pos,t.parent.modifiers.pos)),y=F_t(t)){const D=U9(y);l&D||(l|=D,T.pos=Math.min(T.pos,t.pos))}return{modifiers:l,decorators:m,range:T.pos!==s?T:void 0}}function F_t(t){if(bd(t))return t.kind;if(An(t)){const r=ML(t);if(r&&qg(r))return r}}function W_t(t,r,s,l,m,y,T,D){const I=T.includeCompletionsWithSnippetText||void 0;let W=r;const O=s.getSourceFile(),V=lke(t,s,O,l,m,T);if(!V)return;const ee=wve({removeComments:!0,module:y.module,target:y.target,omitTrailingSemicolon:!1,newLine:Fj(NP(m,D==null?void 0:D.options))});D?W=ee.printAndFormatSnippetList(80,be.createNodeArray([V],!0),O,D):W=ee.printSnippetList(80,be.createNodeArray([V],!0),O);const te=_4({removeComments:!0,module:y.module,target:y.target,omitTrailingSemicolon:!0}),oe=be.createMethodSignature(void 0,"",V.questionToken,V.typeParameters,V.parameters,V.type),de={detail:te.printNode(4,oe,O)};return{isSnippet:I,insertText:W,labelDetails:de}}function lke(t,r,s,l,m,y){const T=t.getDeclarations();if(!(T&&T.length))return;const D=l.getTypeChecker(),I=T[0],W=Rg(o_(I),!1),O=D.getWidenedType(D.getTypeOfSymbolAtLocation(t,r)),ee=33554432|(Jx(s,y)===0?268435456:0);switch(I.kind){case 171:case 172:case 173:case 174:{let te=O.flags&1048576&&O.types.length<10?D.getUnionType(O.types,2):O;if(te.flags&1048576){const Be=gi(te.types,Ve=>D.getSignaturesOfType(Ve,0).length>0);if(Be.length===1)te=Be[0];else return}if(D.getSignaturesOfType(te,0).length!==1)return;const de=D.typeToTypeNode(te,r,ee,If.getNoopSymbolTrackerWithResolver({program:l,host:m}));if(!de||!Z2(de))return;let ue;if(y.includeCompletionsWithSnippetText){const Be=be.createEmptyStatement();ue=be.createBlock([Be],!0),NY(Be,{kind:0,order:0})}else ue=be.createBlock([],!0);const Ne=de.parameters.map(Be=>be.createParameterDeclaration(void 0,Be.dotDotDotToken,Be.name,void 0,void 0,Be.initializer));return be.createMethodDeclaration(void 0,void 0,W,void 0,void 0,Ne,void 0,ue)}default:return}}function wve(t){let r;const s=Hs.createWriter(JE(t)),l=_4(t,s),m={...s,write:ee=>y(ee,()=>s.write(ee)),nonEscapingWrite:s.write,writeLiteral:ee=>y(ee,()=>s.writeLiteral(ee)),writeStringLiteral:ee=>y(ee,()=>s.writeStringLiteral(ee)),writeSymbol:(ee,te)=>y(ee,()=>s.writeSymbol(ee,te)),writeParameter:ee=>y(ee,()=>s.writeParameter(ee)),writeComment:ee=>y(ee,()=>s.writeComment(ee)),writeProperty:ee=>y(ee,()=>s.writeProperty(ee))};return{printSnippetList:T,printAndFormatSnippetList:I,printNode:W,printAndFormatNode:V};function y(ee,te){const oe=nD(ee);if(oe!==ee){const de=s.getTextPos();te();const ue=s.getTextPos();r=ur(r||(r=[]),{newText:oe,span:{start:de,length:ue-de}})}else te()}function T(ee,te,oe){const de=D(ee,te,oe);return r?Hs.applyChanges(de,r):de}function D(ee,te,oe){return r=void 0,m.clear(),l.writeList(ee,te,oe,m),m.getText()}function I(ee,te,oe,de){const ue={text:D(ee,te,oe),getLineAndCharacterOfPosition(pt){return Ah(this,pt)}},Ne=che(de,oe),Be=ea(te,pt=>{const Le=Hs.assignPositionsToNode(pt);return Rb.formatNodeGivenIndentation(Le,ue,oe.languageVariant,0,0,{...de,options:Ne})}),Ve=r?nh(Hi(Be,r),(pt,Le)=>pU(pt.span,Le.span)):Be;return Hs.applyChanges(ue.text,Ve)}function W(ee,te,oe){const de=O(ee,te,oe);return r?Hs.applyChanges(de,r):de}function O(ee,te,oe){return r=void 0,m.clear(),l.writeNode(ee,te,oe,m),m.getText()}function V(ee,te,oe,de){const ue={text:O(ee,te,oe),getLineAndCharacterOfPosition(Le){return Ah(this,Le)}},Ne=che(de,oe),Be=Hs.assignPositionsToNode(te),Ve=Rb.formatNodeGivenIndentation(Be,ue,oe.languageVariant,0,0,{...de,options:Ne}),pt=r?nh(Hi(Ve,r),(Le,ht)=>pU(Le.span,ht.span)):Ve;return Hs.applyChanges(ue.text,pt)}}function ZYe(t){const r=t.fileName?void 0:HE(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return $ee(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:HE(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function B_t(t,r,s){const l=t.exportName==="default",m=!!t.isPackageJsonImport;return HYe(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:r,fileName:t.fileName,moduleSymbol:s,isDefaultExport:l,isFromPackageJson:m}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:r,fileName:t.fileName,moduleSymbol:s,isDefaultExport:l,isFromPackageJson:m}}function eQe(t,r,s,l,m,y,T){const D=r.replacementSpan,I=nD(uce(m,T,s.moduleSpecifier)),W=s.isDefaultExport?1:s.exportName==="export="?2:0,O=T.includeCompletionsWithSnippetText?"$1":"",V=If.getImportKind(m,W,y,!0),ee=r.couldBeTypeOnlyImportSpecifier,te=r.isTopLevelTypeOnly?` ${Nd(156)} `:" ",oe=ee?`${Nd(156)} `:"",de=l?";":"";switch(V){case 3:return{replacementSpan:D,insertText:`import${te}${nD(t)}${O} = require(${I})${de}`};case 1:return{replacementSpan:D,insertText:`import${te}${nD(t)}${O} from ${I}${de}`};case 2:return{replacementSpan:D,insertText:`import${te}* as ${nD(t)} from ${I}${de}`};case 0:return{replacementSpan:D,insertText:`import${te}{ ${oe}${nD(t)}${O} } from ${I}${de}`}}}function tQe(t,r,s){return/^\d+$/.test(s)?s:uce(t,r,s)}function D5e(t,r,s){return t===r||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===r}function Rve(t){if(BF(t))return HE(t.moduleSymbol.name);if($ee(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 I5e(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht,ke,_t,Dt=!1){const Ft=cf(),it=mQe(l,m),Ye=UZ(T),ut=I.getTypeChecker(),lt=new Map;for(let Wt=0;WtUt.getSourceFile()===m.getSourceFile()));lt.set(cr,Xr),d0(r,Or,uue,!0)}return O("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(cf()-Ft)),{has:Wt=>lt.has(Wt),add:Wt=>lt.set(Wt,!0)};function zt(Wt,tt){var Mn;let kn=Wt.flags;if(!tl(m)){if(Ly(m.parent))return!0;if(to(it,ff)&&Wt.valueDeclaration===it)return!1;const cr=Wt.valueDeclaration??((Mn=Wt.declarations)==null?void 0:Mn[0]);if(it&&cr&&(Hh(it)&&Hh(cr)||Pu(it)&&Pu(cr))){const on=cr.pos,pn=Pu(it)?it.parent.parameters:fI(it.parent)?void 0:it.parent.typeParameters;if(on>=it.pos&&pn&&onC5e(s,T,Ve)===m.name);return Be!==void 0?{type:"literal",literal:Be}:Yr(W,(Ve,pt)=>{const Le=te[pt],ht=Wve(Ve,iu(D),Le,ee,I.isJsxIdentifierExpected);return ht&&ht.name===m.name&&(m.source==="ClassMemberSnippet/"&&Ve.flags&106500||m.source==="ObjectLiteralMethodSnippet/"&&Ve.flags&8196||Rve(Le)===m.source||m.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Ve,location:V,origin:Le,contextToken:oe,previousToken:de,isJsxInitializer:ue,isTypeOnlyLocation:Ne}:void 0})||{type:"none"}}function k5e(t,r,s,l,m,y,T,D,I){const W=t.getTypeChecker(),O=t.getCompilerOptions(),{name:V,source:ee,data:te}=m,{previousToken:oe,contextToken:de}=Ove(l,s);if(MR(s,l,oe))return Zee.getStringLiteralCompletionDetails(V,s,l,oe,W,O,y,I,D);const ue=rQe(t,r,s,l,m,y,D);switch(ue.type){case"request":{const{request:Ne}=ue;switch(Ne.kind){case 1:return VF.getJSDocTagNameCompletionDetails(V);case 2:return VF.getJSDocTagCompletionDetails(V);case 3:return VF.getJSDocParameterNameCompletionDetails(V);case 4:return gt(Ne.keywordCompletions,Be=>Be.name===V)?Mve(V,"keyword",5):void 0;default:return ce.assertNever(Ne)}}case"symbol":{const{symbol:Ne,location:Be,contextToken:Ve,origin:pt,previousToken:Le}=ue,{codeActions:ht,sourceDisplay:ke}=G_t(V,Be,Ve,pt,Ne,t,y,O,s,l,Le,T,D,te,ee,I),_t=ake(pt)?pt.symbolName:Ne.name;return Xee(Ne,_t,W,s,Be,I,ht,ke)}case"literal":{const{literal:Ne}=ue;return Mve(C5e(s,D,Ne),"string",typeof Ne=="string"?8:7)}case"cases":{const{entry:Ne,importAdder:Be}=Nve(de.parent,s,D,t.getCompilerOptions(),y,t,void 0);if(Be.hasFixes()){const Ve=Hs.ChangeTracker.with({host:y,formatContext:T,preferences:D},Be.writeFixes);return{name:Ne.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Ve,description:sB([w.Includes_imports_of_types_referenced_by_0,V])}]}}return{name:Ne.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Jve().some(Ne=>Ne.name===V)?Mve(V,"keyword",5):void 0;default:ce.assertNever(ue)}}function Mve(t,r,s){return Lve(t,"",r,[C1(t,s)])}function Xee(t,r,s,l,m,y,T,D){const{displayParts:I,documentation:W,symbolKind:O,tags:V}=s.runWithCancellationToken(y,ee=>I4.getSymbolDisplayPartsDocumentationAndSymbolKind(ee,t,l,m,m,7));return Lve(r,I4.getSymbolModifiers(s,t),O,I,W,V,T,D)}function Lve(t,r,s,l,m,y,T,D){return{name:t,kindModifiers:r,kind:s,displayParts:l,documentation:m,tags:y,codeActions:T,source:D,sourceDisplay:D}}function G_t(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de){if(te!=null&&te.moduleSpecifier&&O&&dQe(s||O,I).replacementSpan)return{codeActions:void 0,sourceDisplay:[RA(te.moduleSpecifier)]};if(oe==="ClassMemberSnippet/"){const{importAdder:ht,eraseRange:ke}=QYe(T,y,D,ee,t,m,r,W,s,V);if(ht||ke)return{sourceDisplay:void 0,codeActions:[{changes:Hs.ChangeTracker.with({host:T,formatContext:V,preferences:ee},Dt=>{ht&&ht.writeFixes(Dt),ke&&Dt.deleteRange(I,ke)}),description:sB([w.Includes_imports_of_types_referenced_by_0,t])}]}}if(b5e(l)){const ht=If.getPromoteTypeOnlyCompletionAction(I,l.declaration.name,y,T,V,ee);return ce.assertIsDefined(ht,"Expected to have a code action for promoting type-only alias"),{codeActions:[ht],sourceDisplay:void 0}}if(oe==="ObjectLiteralMemberWithComma/"&&s){const ht=Hs.ChangeTracker.with({host:T,formatContext:V,preferences:ee},ke=>ke.insertText(I,s.end,","));if(ht)return{sourceDisplay:void 0,codeActions:[{changes:ht,description:sB([w.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!l||!(BF(l)||$ee(l)))return{codeActions:void 0,sourceDisplay:void 0};const ue=l.isFromPackageJson?T.getPackageJsonAutoImportProvider().getTypeChecker():y.getTypeChecker(),{moduleSymbol:Ne}=l,Be=ue.getMergedSymbol(dg(m.exportSymbol||m,ue)),Ve=(s==null?void 0:s.kind)===30&&Y1(s.parent),{moduleSpecifier:pt,codeAction:Le}=If.getImportCompletionAction(Be,Ne,te==null?void 0:te.exportMapKey,I,t,Ve,T,y,V,O&&An(O)?O.getStart(I):W,ee,de);return ce.assert(!(te!=null&&te.moduleSpecifier)||pt===te.moduleSpecifier),{sourceDisplay:[RA(pt)],codeActions:[Le]}}function j_t(t,r,s,l,m,y,T){const D=rQe(t,r,s,l,m,y,T);return D.type==="symbol"?D.symbol:void 0}function V_t(t,r,s){return Yr(r&&(r.isUnion()?r.types:[r]),l=>{const m=l&&l.symbol;return m&&m.flags&424&&!ISe(m)?N5e(m,t,s):void 0})}function P5e(t,r,s,l){const{parent:m}=t;switch(t.kind){case 80:return lce(t,l);case 64:switch(m.kind){case 260:return l.getContextualType(m.initializer);case 226:return l.getTypeAtLocation(m.left);case 291:return l.getContextualTypeForJsxAttribute(m);default:return}case 105:return l.getContextualType(m);case 84:const y=to(m,tx);return y?Mj(y,l):void 0;case 19:return v6(m)&&!gy(m.parent)&&!KE(m.parent)?l.getContextualTypeForJsxAttribute(m.parent):void 0;default:const T=b0e.getArgumentInfoForCompletions(t,r,s);return T?l.getContextualTypeForArgumentAtIndex(T.invocation,T.argumentIndex+(t.kind===28?1:0)):b4(t.kind)&&ys(m)&&b4(m.operatorToken.kind)?l.getTypeAtLocation(m.left):l.getContextualType(t,4)||l.getContextualType(t)}}function N5e(t,r,s){const l=s.getAccessibleSymbolChain(t,r,67108863,!1);return l?Dl(l):t.parent&&(iQe(t.parent)?t:N5e(t.parent,r,s))}function iQe(t){var r;return!!((r=t.declarations)!=null&&r.some(s=>s.kind===312))}function oQe(t,r,s,l,m,y,T,D,I,W){const O=t.getTypeChecker(),V=x5e(s,l);let ee=cf(),te=bf(s,m);r("getCompletionData: Get current token: "+(cf()-ee)),ee=cf();const oe=LR(s,m,te);r("getCompletionData: Is inside comment: "+(cf()-ee));let de=!1,ue=!1;if(oe){if(Yse(s,m)){if(s.text.charCodeAt(m-1)===64)return{kind:1};{const an=wA(m,s);if(!/[^*|\s(/)]/.test(s.text.substring(an,m)))return{kind:2}}}const xe=_ke(te,m);if(xe){if(xe.tagName.pos<=m&&m<=xe.tagName.end)return{kind:1};const an=ho(xe);if(an&&(te=bf(s,m),(!te||!vP(te)&&(te.parent.kind!==355||te.parent.name!==te))&&(de=Zt(an))),!de&&AA(xe)&&(Um(xe.name)||xe.name.pos<=m&&m<=xe.name.end))return{kind:3,tag:xe}}if(!de){r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}ee=cf();const Ne=!de&&v1(s),Be=Ove(m,s),Ve=Be.previousToken;let pt=Be.contextToken;r("getCompletionData: Get previous token: "+(cf()-ee));let Le=te,ht,ke=!1,_t=!1,Dt=!1,Ft=!1,it=!1,Ye=!1,ut,lt=Hx(s,m),zt=0,Wt=!1,tt=0;if(pt){const xe=dQe(pt,s);if(xe.keywordCompletion){if(xe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[N_t(xe.keywordCompletion)],isNewIdentifierLocation:xe.isNewIdentifierLocation};zt=qYe(xe.keywordCompletion)}if(xe.replacementSpan&&y.includeCompletionsForImportStatements&&y.includeCompletionsWithInsertText&&(tt|=2,ut=xe,Wt=xe.isNewIdentifierLocation),!xe.replacementSpan&&Aa(pt))return r("Returning an empty list because completion was requested in an invalid position."),zt?$Ye(zt,Ne,vc()):void 0;let an=pt.parent;if(pt.kind===25||pt.kind===29)switch(ke=pt.kind===25,_t=pt.kind===29,an.kind){case 211:ht=an,Le=ht.expression;const Un=i3(ht);if(Um(Un)||(el(Le)||S_(Le))&&Le.end===pt.pos&&Le.getChildCount(s)&&yl(Le.getChildren(s)).kind!==22)return;break;case 166:Le=an.left;break;case 267:Le=an.name;break;case 205:Le=an;break;case 236:Le=an.getFirstToken(s),ce.assert(Le.kind===102||Le.kind===105);break;default:return}else if(!ut){if(an&&an.kind===211&&(pt=an,an=an.parent),te.parent===lt)switch(te.kind){case 32:(te.parent.kind===284||te.parent.kind===286)&&(lt=te);break;case 44:te.parent.kind===285&&(lt=te);break}switch(an.kind){case 287:pt.kind===44&&(Ft=!0,lt=pt);break;case 226:if(!fQe(an))break;case 285:case 284:case 286:Ye=!0,pt.kind===30&&(Dt=!0,lt=pt);break;case 294:case 293:(Ve.kind===20||Ve.kind===80&&Ve.parent.kind===291)&&(Ye=!0);break;case 291:if(an.initializer===Ve&&Ve.endy4(xe?D.getPackageJsonAutoImportProvider():t,D));if(ke||_t)di();else if(Dt)on=O.getJsxIntrinsicTagNamesAt(lt),ce.assertEachIsDefined(on,"getJsxIntrinsicTagNames() should all be defined"),Gs(),kn=1,zt=0;else if(Ft){const xe=pt.parent.parent.openingElement.tagName,an=O.getSymbolAtLocation(xe);an&&(on=[an]),kn=1,zt=0}else if(!Gs())return zt?$Ye(zt,Ne,Wt):void 0;r("getCompletionData: Semantic work: "+(cf()-Mn));const Cr=Ve&&P5e(Ve,m,s,O),Gn=!to(Ve,sp)&&!Ye?Qo(Cr&&(Cr.isUnion()?Cr.types:[Cr]),xe=>xe.isLiteral()&&!(xe.flags&1024)?xe.value:void 0):[],Ur=Ve&&Cr&&V_t(Ve,Cr,O);return{kind:0,symbols:on,completionKind:kn,isInSnippetScope:ue,propertyAccessToConvert:ht,isNewIdentifierLocation:Wt,location:lt,keywordFilters:zt,literals:Gn,symbolToOriginInfoMap:Or,recommendedCompletion:Ur,previousToken:Ve,contextToken:pt,isJsxInitializer:it,insideJsDocTagTypeExpression:de,symbolToSortTextMap:Xr,isTypeOnlyLocation:In,isJsxIdentifierExpected:Ye,isRightOfOpenTag:Dt,isRightOfDotOrQuestionDot:ke||_t,importStatementCompletion:ut,hasUnresolvedAutoImports:un,flags:tt};function so(xe){switch(xe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!xe.constraint;default:return!1}}function ho(xe){if(so(xe)){const an=jx(xe)?xe.constraint:xe.typeExpression;return an&&an.kind===316?an:void 0}if(iF(xe)||WG(xe))return xe.class}function di(){kn=2;const xe=BE(Le),an=xe&&!Le.isTypeOf||rC(Le.parent)||IZ(pt,s,O),Un=gZ(Le);if(Vd(Le)||xe||sa(Le)){const rr=xp(Le.parent);rr&&(Wt=!0);let mi=O.getSymbolAtLocation(Le);if(mi&&(mi=dg(mi,O),mi.flags&1920)){const Ji=O.getExportsOfModule(mi);ce.assertEachIsDefined(Ji,"getExportsOfModule() should all be defined");const zo=Ks=>O.isValidPropertyAccess(xe?Le:Le.parent,Ks.name),Ca=Ks=>O5e(Ks,O),Qa=rr?Ks=>{var vs;return!!(Ks.flags&1920)&&!((vs=Ks.declarations)!=null&&vs.every(ou=>ou.parent===Le.parent))}:Un?Ks=>Ca(Ks)||zo(Ks):an||de?Ca:zo;for(const Ks of Ji)Qa(Ks)&&on.push(Ks);if(!an&&!de&&mi.declarations&&mi.declarations.some(Ks=>Ks.kind!==312&&Ks.kind!==267&&Ks.kind!==266)){let Ks=O.getTypeOfSymbolAtLocation(mi,Le).getNonOptionalType(),vs=!1;if(Ks.isNullableType()){const ou=ke&&!_t&&y.includeAutomaticOptionalChainCompletions!==!1;(ou||_t)&&(Ks=Ks.getNonNullableType(),ou&&(vs=!0))}Nc(Ks,!!(Le.flags&65536),vs)}return}}if(!an||O7(Le)){O.tryGetThisTypeAt(Le,!1);let rr=O.getTypeAtLocation(Le).getNonOptionalType();if(an)Nc(rr.getNonNullableType(),!1,!1);else{let mi=!1;if(rr.isNullableType()){const Ji=ke&&!_t&&y.includeAutomaticOptionalChainCompletions!==!1;(Ji||_t)&&(rr=rr.getNonNullableType(),Ji&&(mi=!0))}Nc(rr,!!(Le.flags&65536),mi)}}}function Nc(xe,an,Un){Wt=!!xe.getStringIndexType(),_t&>(xe.getCallSignatures())&&(Wt=!0);const rr=Le.kind===205?Le:Le.parent;if(V)for(const mi of xe.getApparentProperties())O.isValidPropertyAccessForCompletions(rr,xe,mi)&&ha(mi,!1,Un);else on.push(...gi(pke(xe,O),mi=>O.isValidPropertyAccessForCompletions(rr,xe,mi)));if(an&&y.includeCompletionsWithInsertText){const mi=O.getPromisedTypeOfPromise(xe);if(mi)for(const Ji of mi.getApparentProperties())O.isValidPropertyAccessForCompletions(rr,mi,Ji)&&ha(Ji,!0,Un)}}function ha(xe,an,Un){var rr;const mi=Yr(xe.declarations,Qa=>to(o_(Qa),am));if(mi){const Qa=ro(mi.expression),Ks=Qa&&O.getSymbolAtLocation(Qa),vs=Ks&&N5e(Ks,pt,O),ou=vs&&Bp(vs);if(ou&&y0(Ut,ou)){const qd=on.length;on.push(vs);const z_=vs.parent;if(!z_||!sT(z_)||O.tryGetMemberInModuleExportsAndProperties(vs.name,z_)!==vs)Or[qd]={kind:Ca(2)};else{const fp=tb(HE(z_.name))?(rr=ny(z_))==null?void 0:rr.fileName:void 0,{moduleSpecifier:Ha}=(pn||(pn=If.createImportSpecifierResolver(s,t,D,y))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:fp,isFromPackageJson:!1,moduleSymbol:z_,symbol:vs,targetFlags:dg(vs,O).flags}],m,EA(lt))||{};if(Ha){const mu={kind:Ca(6),moduleSymbol:z_,isDefaultExport:!1,symbolName:vs.name,exportName:vs.name,fileName:fp,moduleSpecifier:Ha};Or[qd]=mu}}}else if(y.includeCompletionsWithInsertText){if(ou&&Ut.has(ou))return;zo(xe),Ji(xe),on.push(xe)}}else zo(xe),Ji(xe),on.push(xe);function Ji(Qa){$_t(Qa)&&(Xr[Bp(Qa)]=cm.LocalDeclarationPriority)}function zo(Qa){y.includeCompletionsWithInsertText&&(an&&y0(Ut,Bp(Qa))?Or[on.length]={kind:Ca(8)}:Un&&(Or[on.length]={kind:16}))}function Ca(Qa){return Un?Qa|16:Qa}}function ro(xe){return An(xe)?xe:sa(xe)?ro(xe.expression):void 0}function Gs(){return(Jr()||li()||Ku()||Ir()||_o()||Oc()||xt()||_u()||(al(),1))===1}function Oc(){return gn(pt)?(kn=5,Wt=!0,zt=4,1):0}function _u(){const xe=mt(pt),an=xe&&O.getContextualType(xe.attributes);if(!an)return 0;const Un=xe&&O.getContextualType(xe.attributes,4);return on=Hi(on,$e(dke(an,Un,xe.attributes,O),xe.attributes.properties)),xu(),kn=3,Wt=!1,1}function Ku(){return ut?(Wt=!0,$a(),1):0}function al(){zt=qr(pt)?5:1,kn=1,Wt=vc(),Ve!==pt&&ce.assert(!!Ve,"Expected 'contextToken' to be defined when different from 'previousToken'.");const xe=Ve!==pt?Ve.getStart():m,an=To(pt,xe,s)||s;ue=mc(an);const Un=(In?0:111551)|788968|1920|2097152,rr=Ve&&!EA(Ve);on=Hi(on,O.getSymbolsInScope(an,Un)),ce.assertEachIsDefined(on,"getSymbolsInScope() should all be defined");for(let mi=0;mizo.getSourceFile()===s)&&(Xr[Bp(Ji)]=cm.GlobalsOrKeywords),rr&&!(Ji.flags&111551)){const zo=Ji.declarations&&lr(Ji.declarations,$g);if(zo){const Ca={kind:64,declaration:zo};Or[mi]=Ca}}}if(y.includeCompletionsWithInsertText&&an.kind!==312){const mi=O.tryGetThisTypeAt(an,!1,Jl(an.parent)?an:void 0);if(mi&&!J_t(mi,s,O))for(const Ji of pke(mi,O))Or[on.length]={kind:1},on.push(Ji),Xr[Bp(Ji)]=cm.SuggestedClassMembers}$a(),In&&(zt=pt&&_7(pt.parent)?6:7)}function Rr(){return ut?!0:cr||!y.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||nce(t.getCompilerOptions())?!0:LZ(t)}function mc(xe){switch(xe.kind){case 312:case 228:case 294:case 241:return!0;default:return uf(xe)}}function Ea(){return de||!!ut&&sR(lt.parent)||!Fi(pt)&&(IZ(pt,s,O)||rC(lt)||ta(pt))}function Fi(xe){return xe&&(xe.kind===114&&(xe.parent.kind===186||Jm(xe.parent))||xe.kind===131&&xe.parent.kind===182)}function ta(xe){if(xe){const an=xe.parent.kind;switch(xe.kind){case 59:return an===172||an===171||an===169||an===260||xb(an);case 64:return an===265;case 130:return an===234;case 30:return an===183||an===216;case 96:return an===168;case 152:return an===238}}return!1}function $a(){var xe,an;if(!Rr()||(ce.assert(!(T!=null&&T.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),T&&!T.source))return;tt|=1;const rr=Ve===pt&&ut?"":Ve&&An(Ve)?Ve.text.toLowerCase():"",mi=(xe=D.getModuleSpecifierCache)==null?void 0:xe.call(D),Ji=fq(s,D,t,y,W),zo=(an=D.getPackageJsonAutoImportProvider)==null?void 0:an.call(D),Ca=T?void 0:oB(s,y,D);UYe("collectAutoImports",D,pn||(pn=If.createImportSpecifierResolver(s,t,D,y)),t,m,y,!!ut,EA(lt),Ks=>{Ji.search(s.path,Dt,(vs,ou)=>{if(!rE(vs,iu(D.getCompilationSettings()))||!T&&t6(vs)||!In&&!ut&&!(ou&111551)||In&&!(ou&790504))return!1;const qd=vs.charCodeAt(0);return Dt&&(qd<65||qd>90)?!1:T?!0:hQe(vs,rr)},(vs,ou,qd,z_)=>{if(T&&!gt(vs,Ma=>T.source===HE(Ma.moduleSymbol.name))||(vs=gi(vs,Qa),!vs.length))return;const fp=Ks.tryResolve(vs,qd)||{};if(fp==="failed")return;let Ha=vs[0],mu;fp!=="skipped"&&({exportInfo:Ha=vs[0],moduleSpecifier:mu}=fp);const x_=Ha.exportKind===1,q_=x_&&i6(Ha.symbol)||Ha.symbol;jc(q_,{kind:mu?32:4,moduleSpecifier:mu,symbolName:ou,exportMapKey:z_,exportName:Ha.exportKind===2?"export=":Ha.symbol.name,fileName:Ha.moduleFileName,isDefaultExport:x_,moduleSymbol:Ha.moduleSymbol,isFromPackageJson:Ha.isFromPackageJson})}),un=Ks.skippedAny(),tt|=Ks.resolvedAny()?8:0,tt|=Ks.resolvedBeyondLimit()?16:0});function Qa(Ks){const vs=to(Ks.moduleSymbol.valueDeclaration,tl);if(!vs){const ou=HE(Ks.moduleSymbol.name);return EF.nodeCoreModules.has(ou)&&xf(ou,"node:")!==hce(s,t)?!1:Ca?Ca.allowsImportingAmbientModule(Ks.moduleSymbol,gr(Ks.isFromPackageJson)):!0}return vce(Ks.isFromPackageJson?zo:t,s,vs,y,Ca,gr(Ks.isFromPackageJson),mi)}}function jc(xe,an){const Un=Bp(xe);Xr[Un]!==cm.GlobalsOrKeywords&&(Or[on.length]=an,Xr[Un]=ut?cm.LocationPriority:cm.AutoImportSuggestions,on.push(xe))}function Xu(xe,an){Rs(lt)||xe.forEach(Un=>{if(!Lo(Un))return;const rr=Wve(Un,iu(l),void 0,0,!1);if(!rr)return;const{name:mi}=rr,Ji=W_t(Un,mi,an,t,D,l,y,I);if(!Ji)return;const zo={kind:128,...Ji};tt|=32,Or[on.length]=zo,on.push(Un)})}function Lo(xe){return!!(xe.flags&8196)}function To(xe,an,Un){let rr=xe;for(;rr&&!Ux(rr,an,Un);)rr=rr.parent;return rr}function Aa(xe){const an=cf(),Un=er(xe)||_r(xe)||Qr(xe)||sl(xe)||wG(xe);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(cf()-an)),Un}function sl(xe){if(xe.kind===12)return!0;if(xe.kind===32&&xe.parent){if(lt===xe.parent&&(lt.kind===286||lt.kind===285))return!1;if(xe.parent.kind===286)return lt.parent.kind!==286;if(xe.parent.kind===287||xe.parent.kind===285)return!!xe.parent.parent&&xe.parent.parent.kind===284}return!1}function vc(){if(pt){const xe=pt.parent.kind,an=fke(pt);switch(an){case 28:return xe===213||xe===176||xe===214||xe===209||xe===226||xe===184||xe===210;case 21:return xe===213||xe===176||xe===214||xe===217||xe===196;case 23:return xe===209||xe===181||xe===167;case 144:case 145:case 102:return!0;case 25:return xe===267;case 19:return xe===263||xe===210;case 64:return xe===260||xe===226;case 16:return xe===228;case 17:return xe===239;case 134:return xe===174||xe===304;case 42:return xe===174}if(due(an))return!0}return!1}function er(xe){return(OY(xe)||u9(xe))&&(H$(xe,m)||m===xe.end&&(!!xe.isUnterminated||OY(xe)))}function Jr(){const xe=lQe(pt);if(!xe)return 0;const Un=(MJ(xe.parent)?xe.parent:void 0)||xe,rr=Gve(Un,O);if(!rr)return 0;const mi=O.getTypeFromTypeNode(Un),Ji=pke(rr,O),zo=pke(mi,O),Ca=new Set;return zo.forEach(Qa=>Ca.add(Qa.escapedName)),on=Hi(on,gi(Ji,Qa=>!Ca.has(Qa.escapedName))),kn=0,Wt=!0,1}function li(){const xe=on.length,an=uke(pt,m,s);if(!an)return 0;kn=0;let Un,rr;if(an.kind===210){const mi=_Qe(an,O);if(mi===void 0)return an.flags&67108864?2:(cr=!0,0);const Ji=O.getContextualType(an,4),zo=(Ji||mi).getStringIndexType(),Ca=(Ji||mi).getNumberIndexType();if(Wt=!!zo||!!Ca,Un=dke(mi,Ji,an,O),rr=an.properties,Un.length===0&&!Ca)return cr=!0,0}else{ce.assert(an.kind===206),Wt=!1;const mi=rI(an.parent);if(!hP(mi))return ce.fail("Root declaration is not variable-like.");let Ji=NN(mi)||!!Kb(mi)||mi.parent.parent.kind===250;if(!Ji&&mi.kind===169&&(Nr(mi.parent)?Ji=!!O.getContextualType(mi.parent):(mi.parent.kind===174||mi.parent.kind===178)&&(Ji=Nr(mi.parent.parent)&&!!O.getContextualType(mi.parent.parent))),Ji){const zo=O.getTypeAtLocation(an);if(!zo)return 2;Un=O.getPropertiesOfType(zo).filter(Ca=>O.isPropertyAccessible(an,!1,!1,zo,Ca)),rr=an.elements}}if(Un&&Un.length>0){const mi=es(Un,ce.checkDefined(rr));on=Hi(on,mi),xu(),an.kind===210&&y.includeCompletionsWithObjectLiteralMethodSnippets&&y.includeCompletionsWithInsertText&&(Re(xe),Xu(mi,an))}return 1}function Ir(){if(!pt)return 0;const xe=pt.kind===19||pt.kind===28?to(pt.parent,LH):wZ(pt)?to(pt.parent.parent,LH):void 0;if(!xe)return 0;wZ(pt)||(zt=8);const{moduleSpecifier:an}=xe.kind===275?xe.parent.parent:xe.parent;if(!an)return Wt=!0,xe.kind===275?2:0;const Un=O.getSymbolAtLocation(an);if(!Un)return Wt=!0,2;kn=3,Wt=!1;const rr=O.getExportsAndPropertiesOfModule(Un),mi=new Set(xe.elements.filter(zo=>!Zt(zo)).map(zo=>(zo.propertyName||zo.name).escapedText)),Ji=rr.filter(zo=>zo.escapedName!=="default"&&!mi.has(zo.escapedName));return on=Hi(on,Ji),Ji.length||(zt=0),1}function _o(){var xe;const an=pt&&(pt.kind===19||pt.kind===28)?to(pt.parent,G0):void 0;if(!an)return 0;const Un=Kr(an,dA(tl,xp));return kn=5,Wt=!1,(xe=Un.locals)==null||xe.forEach((rr,mi)=>{var Ji,zo;on.push(rr),(zo=(Ji=Un.symbol)==null?void 0:Ji.exports)!=null&&zo.has(mi)&&(Xr[Bp(rr)]=cm.OptionalMember)}),1}function xt(){const xe=H_t(s,pt,lt,m);if(!xe)return 0;if(kn=3,Wt=!0,zt=pt.kind===42?0:Jl(xe)?2:3,!Jl(xe))return 1;const an=pt.kind===27?pt.parent.parent:pt.parent;let Un=Mv(an)?tS(an):0;if(pt.kind===80&&!Zt(pt))switch(pt.getText()){case"private":Un=Un|8;break;case"static":Un=Un|32;break;case"override":Un=Un|16384;break}if(nu(an)&&(Un|=32),!(Un&8)){const rr=Jl(xe)&&Un&16384?zD(hA(xe)):fG(xe),mi=ea(rr,Ji=>{const zo=O.getTypeAtLocation(Ji);return Un&32?(zo==null?void 0:zo.symbol)&&O.getPropertiesOfType(O.getTypeOfSymbolAtLocation(zo.symbol,xe)):zo&&O.getPropertiesOfType(zo)});on=Hi(on,wt(mi,xe.members,Un)),Ot(on,(Ji,zo)=>{const Ca=Ji==null?void 0:Ji.valueDeclaration;if(Ca&&Mv(Ca)&&Ca.name&&am(Ca.name)){const Qa={kind:512,symbolName:O.symbolToString(Ji)};Or[zo]=Qa}})}return 1}function Kn(xe){return!!xe.parent&&Pu(xe.parent)&&pg(xe.parent.parent)&&(lR(xe.kind)||vP(xe))}function gn(xe){if(xe){const an=xe.parent;switch(xe.kind){case 21:case 28:return pg(xe.parent)?xe.parent:void 0;default:if(Kn(xe))return an.parent}}}function qr(xe){if(xe){let an;const Un=Kr(xe.parent,rr=>Jl(rr)?"quit":J_(rr)&&an===rr.body?!0:(an=rr,!1));return Un&&Un}}function mt(xe){if(xe){const an=xe.parent;switch(xe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(an&&(an.kind===285||an.kind===286)){if(xe.kind===32){const Un=T0(xe.pos,s,void 0);if(!an.typeArguments||Un&&Un.kind===44)break}return an}else if(an.kind===291)return an.parent.parent;break;case 11:if(an&&(an.kind===291||an.kind===293))return an.parent.parent;break;case 20:if(an&&an.kind===294&&an.parent&&an.parent.kind===291)return an.parent.parent.parent;if(an&&an.kind===293)return an.parent.parent;break}}}function _r(xe){const an=xe.parent,Un=an.kind;switch(xe.kind){case 28:return Un===260||co(xe)||Un===243||Un===266||oi(Un)||Un===264||Un===207||Un===265||Jl(an)&&!!an.typeParameters&&an.typeParameters.end>=xe.pos;case 25:return Un===207;case 59:return Un===208;case 23:return Un===207;case 21:return Un===299||oi(Un);case 19:return Un===266;case 30:return Un===263||Un===231||Un===264||Un===265||xb(Un);case 126:return Un===172&&!Jl(an.parent);case 26:return Un===169||!!an.parent&&an.parent.kind===207;case 125:case 123:case 124:return Un===169&&!pg(an.parent);case 130:return Un===276||Un===281||Un===274;case 139:case 153:return!mke(xe);case 80:if(Un===276&&xe===an.name&&xe.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 Un!==276;case 42:return S_(xe.parent)&&!em(xe.parent)}if(due(fke(xe))&&mke(xe)||Kn(xe)&&(!An(xe)||lR(fke(xe))||Zt(xe)))return!1;switch(fke(xe)){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 Os(xe.parent)}if(Kr(xe.parent,Jl)&&xe===Ve&&Cn(xe,m))return!1;const mi=e6(xe.parent,172);if(mi&&xe!==Ve&&Jl(Ve.parent.parent)&&m<=Ve.end){if(Cn(xe,Ve.end))return!1;if(xe.kind!==64&&(b$(mi)||eY(mi)))return!0}return vP(xe)&&!BT(xe.parent)&&!Pb(xe.parent)&&!((Jl(xe.parent)||Kp(xe.parent)||Hh(xe.parent))&&(xe!==Ve||m>Ve.end))}function Cn(xe,an){return xe.kind!==64&&(xe.kind===27||!mv(xe.end,an,s))}function oi(xe){return xb(xe)&&xe!==176}function Qr(xe){if(xe.kind===9){const an=xe.getFullText();return an.charAt(an.length-1)==="."}return!1}function co(xe){return xe.parent.kind===261&&!IZ(xe,s,O)}function es(xe,an){if(an.length===0)return xe;const Un=new Set,rr=new Set;for(const Ji of an){if(Ji.kind!==303&&Ji.kind!==304&&Ji.kind!==208&&Ji.kind!==174&&Ji.kind!==177&&Ji.kind!==178&&Ji.kind!==305||Zt(Ji))continue;let zo;if(xk(Ji))Ui(Ji,Un);else if(ym(Ji)&&Ji.propertyName)Ji.propertyName.kind===80&&(zo=Ji.propertyName.escapedText);else{const Ca=o_(Ji);zo=Ca&&yA(Ca)?gY(Ca):void 0}zo!==void 0&&rr.add(zo)}const mi=xe.filter(Ji=>!rr.has(Ji.escapedName));return We(Un,mi),mi}function Ui(xe,an){const Un=xe.expression,rr=O.getSymbolAtLocation(Un),mi=rr&&O.getTypeOfSymbolAtLocation(rr,Un),Ji=mi&&mi.properties;Ji&&Ji.forEach(zo=>{an.add(zo.name)})}function xu(){on.forEach(xe=>{if(xe.flags&16777216){const an=Bp(xe);Xr[an]=Xr[an]??cm.OptionalMember}})}function We(xe,an){if(xe.size!==0)for(const Un of an)xe.has(Un.name)&&(Xr[Bp(Un)]=cm.MemberDeclaredBySpreadAssignment)}function Re(xe){for(let an=xe;an!rr.has(mi.escapedName)&&!!mi.declarations&&!(Vy(mi)&8)&&!(mi.valueDeclaration&&Mf(mi.valueDeclaration)))}function $e(xe,an){const Un=new Set,rr=new Set;for(const Ji of an)Zt(Ji)||(Ji.kind===291?Un.add(m3(Ji.name)):Ek(Ji)&&Ui(Ji,rr));const mi=xe.filter(Ji=>!Un.has(Ji.escapedName));return We(rr,mi),mi}function Zt(xe){return xe.getStart(s)<=m&&m<=xe.getEnd()}}function uke(t,r,s){var l;if(t){const{parent:m}=t;switch(t.kind){case 19:case 28:if(Wd(m)||E1(m))return m;break;case 42:return em(m)?to(m.parent,Wd):void 0;case 134:return to(m.parent,Wd);case 80:if(t.text==="async"&&BT(t.parent))return t.parent.parent;{if(Wd(t.parent.parent)&&(xk(t.parent)||BT(t.parent)&&Ah(s,t.getEnd()).line!==Ah(s,r).line))return t.parent.parent;const T=Kr(m,Fm);if((T==null?void 0:T.getLastToken(s))===t&&Wd(T.parent))return T.parent}break;default:if((l=m.parent)!=null&&l.parent&&(em(m.parent)||tm(m.parent)||Ep(m.parent))&&Wd(m.parent.parent))return m.parent.parent;if(xk(m)&&Wd(m.parent))return m.parent;const y=Kr(m,Fm);if(t.kind!==59&&(y==null?void 0:y.getLastToken(s))===t&&Wd(y.parent))return y.parent}}}function Ove(t,r){const s=T0(t,r);return s&&t<=s.end&&(fy(s)||sE(s.kind))?{contextToken:T0(s.getFullStart(),r,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function Fve(t,r,s,l){const m=r.isPackageJsonImport?l.getPackageJsonAutoImportProvider():s,y=m.getTypeChecker(),T=r.ambientModuleName?y.tryFindAmbientModule(r.ambientModuleName):r.fileName?y.getMergedSymbol(ce.checkDefined(m.getSourceFile(r.fileName)).symbol):void 0;if(!T)return;let D=r.exportName==="export="?y.resolveExternalModuleSymbol(T):y.tryGetMemberInModuleExportsAndProperties(r.exportName,T);return D?(D=r.exportName==="default"&&i6(D)||D,{symbol:D,origin:B_t(r,t,T)}):void 0}function Wve(t,r,s,l,m){if(T5e(s))return;const y=D_t(s)?s.symbolName:t.name;if(y===void 0||t.flags&1536&&Dde(y.charCodeAt(0))||vH(t))return;const T={name:y,needsConvertPropertyAccess:!1};if(rE(y,r,m?1:0)||t.valueDeclaration&&Mf(t.valueDeclaration))return T;switch(l){case 3:return ake(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(y),needsConvertPropertyAccess:!1};case 2:case 1:return y.charCodeAt(0)===32?void 0:{name:y,needsConvertPropertyAccess:!0};case 5:case 4:return T;default:ce.assertNever(l)}}function w5e(t,r){if(!r)return aQe(t);const s=t+8+1;return aV[s]||(aV[s]=aQe(t).filter(l=>!sQe(TN(l.name))))}function aQe(t){return aV[t]||(aV[t]=Jve().filter(r=>{const s=TN(r.name);switch(t){case 0:return!1;case 1:return Bve(s)||s===138||s===144||s===156||s===145||s===128||Q$(s)&&s!==157;case 5:return Bve(s);case 2:return due(s);case 3:return _ue(s);case 4:return lR(s);case 6:return Q$(s)||s===87;case 7:return Q$(s);case 8:return s===156;default:return ce.assertNever(t)}}))}function sQe(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 _ue(t){return t===148}function due(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return F_(t)}}function Bve(t){return t===134||t===135||t===130||t===152||t===156||!hH(t)&&!due(t)}function fke(t){return An(t)?ML(t)??0:t.kind}function U_t(t,r){const s=[];if(t){const l=t.getSourceFile(),m=t.parent,y=l.getLineAndCharacterOfPosition(t.end).line,T=l.getLineAndCharacterOfPosition(r).line;(Fv(m)||mh(m)&&m.moduleSpecifier)&&t===m.moduleSpecifier&&y===T&&s.push({name:Nd(132),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords})}return s}function _ke(t,r){return Kr(t,s=>NT(s)&&U$(s,r)?!0:Gx(s)?"quit":!1)}function dke(t,r,s,l){const m=r&&r!==t,y=m&&!(r.flags&3)?l.getUnionType([t,r]):t,T=cQe(y,s,l);return y.isClass()&&zve(T)?[]:m?gi(T,D):T;function D(I){return Nt(I.declarations)?gt(I.declarations,W=>W.parent!==s):!0}}function cQe(t,r,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(gi(t.types,l=>!(l.flags&402784252||s.isArrayLikeType(l)||s.isTypeInvalidDueToUnionDiscriminant(l,r)||s.typeHasCallOrConstructSignatures(l)||l.isClass()&&zve(l.getApparentProperties())))):t.getApparentProperties()}function zve(t){return gt(t,r=>!!(Vy(r)&24))}function pke(t,r){return t.isUnion()?ce.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):ce.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function H_t(t,r,s,l){switch(s.kind){case 358:return to(s.parent,GN);case 1:const m=to(Yf(uc(s.parent,tl).statements),GN);if(m&&!Wm(m,20,t))return m;break;case 81:if(to(s.parent,Os))return Kr(s,Jl);break;case 80:{if(ML(s)||Os(s.parent)&&s.parent.initializer===s)return;if(mke(s))return Kr(s,GN)}}if(r){if(s.kind===137||An(r)&&Os(r.parent)&&Jl(s))return Kr(r,Jl);switch(r.kind){case 64:return;case 27:case 20:return mke(s)&&s.parent.name===s?s.parent.parent:to(s,GN);case 19:case 28:return to(r.parent,GN);default:if(GN(s)){if(Ah(t,r.getEnd()).line!==Ah(t,l).line)return s;const m=Jl(r.parent.parent)?due:_ue;return m(r.kind)||r.kind===42||An(r)&&m(ML(r)??0)?r.parent.parent:void 0}return}}}function lQe(t){if(!t)return;const r=t.parent;switch(t.kind){case 19:if(e0(r))return r;break;case 27:case 28:case 80:if(r.kind===171&&e0(r.parent))return r.parent;break}}function Gve(t,r){if(!t)return;if(Uu(t)&&F8(t.parent))return r.getTypeArgumentConstraint(t);const s=Gve(t.parent,r);if(s)switch(t.kind){case 171:return r.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function mke(t){return t.parent&&$_(t.parent)&&GN(t.parent.parent)}function uQe(t,r,s,l){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&jZ(s)&&l===s.getStart(t)+1;case"#":return!!s&&Gu(s)&&!!h0(s);case"<":return!!s&&s.kind===30&&(!ys(s.parent)||fQe(s.parent));case"/":return!!s&&(sp(s)?!!L9(s):s.kind===44&&Sk(s.parent));case" ":return!!s&&RJ(s)&&s.parent.kind===312;default:return ce.assertNever(r)}}function fQe({left:t}){return Um(t)}function J_t(t,r,s){const l=s.resolveName("self",void 0,111551,!1);if(l&&s.getTypeOfSymbolAtLocation(l,r)===t)return!0;const m=s.resolveName("global",void 0,111551,!1);if(m&&s.getTypeOfSymbolAtLocation(m,r)===t)return!0;const y=s.resolveName("globalThis",void 0,111551,!1);return!!(y&&s.getTypeOfSymbolAtLocation(y,r)===t)}function $_t(t){return!!(t.valueDeclaration&&tS(t.valueDeclaration)&32&&Jl(t.valueDeclaration.parent))}function _Qe(t,r){const s=r.getContextualType(t);if(s)return s;const l=Lx(t.parent);if(ys(l)&&l.operatorToken.kind===64&&t===l.left)return r.getTypeAtLocation(l);if(Nr(l))return r.getContextualType(l)}function dQe(t,r){var s,l,m;let y,T=!1;const D=I();return{isKeywordOnlyCompletion:T,keywordCompletion:y,isNewIdentifierLocation:!!(D||y===156),isTopLevelTypeOnly:!!((l=(s=to(D,Fv))==null?void 0:s.importClause)!=null&&l.isTypeOnly)||!!((m=to(D,kh))!=null&&m.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!D&&M5e(D,t),replacementSpan:pQe(D)};function I(){const W=t.parent;if(kh(W)){const O=W.getLastToken(r);if(An(t)&&O!==t){y=161,T=!0;return}return y=t.kind===156?void 0:156,L5e(W.moduleReference)?W:void 0}if(M5e(W,t)&&gke(W.parent))return W;if(y6(W)||QL(W)){if(!W.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(y=156),gke(W))if(t.kind===20||t.kind===80)T=!0,y=161;else return W.parent.parent;return}if(RJ(t)&&tl(W))return y=156,t;if(RJ(t)&&Fv(W))return y=156,L5e(W.moduleSpecifier)?W:void 0}}function pQe(t){var r;if(!t)return;const s=Kr(t,dA(Fv,kh))??t,l=s.getSourceFile();if(mk(s,l))return gE(s,l);ce.assert(s.kind!==102&&s.kind!==276);const m=s.kind===272?R5e((r=s.importClause)==null?void 0:r.namedBindings)??s.moduleSpecifier:s.moduleReference,y={pos:s.getFirstToken().getStart(),end:m.pos};if(mk(y,l))return FR(y)}function R5e(t){var r;return lr((r=to(t,y6))==null?void 0:r.elements,s=>{var l;return!s.propertyName&&t6(s.name.text)&&((l=T0(s.name.pos,t.getSourceFile(),t))==null?void 0:l.kind)!==28})}function M5e(t,r){return oS(t)&&(t.isTypeOnly||r===t.name&&wZ(r))}function gke(t){if(!L5e(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(y6(t)){const r=R5e(t);return(r?t.elements.indexOf(r):t.elements.length)<2}return!0}function L5e(t){var r;return Um(t)?!0:!((r=to(j0(t)?t.expression:t,sp))!=null&&r.text)}function mQe(t,r){if(!t)return;const s=Kr(t,m=>JM(m)||hke(m)||ld(m)?"quit":(Pu(m)||Hh(m))&&!Xb(m.parent)),l=Kr(r,m=>JM(m)||hke(m)||ld(m)?"quit":ff(m));return s||l}function hke(t){return t.parent&&ph(t.parent)&&(t.parent.body===t||t.kind===39)}function O5e(t,r,s=new Map){return l(t)||l(dg(t.exportSymbol||t,r));function l(m){return!!(m.flags&788968)||r.isUnknownSymbol(m)||!!(m.flags&1536)&&y0(s,Bp(m))&&r.getExportsOfModule(m).some(y=>O5e(y,r,s))}}function gQe(t,r){const s=dg(t,r).declarations;return!!Nt(s)&&jr(s,XZ)}function hQe(t,r){if(r.length===0)return!0;let s=!1,l,m=0;const y=t.length;for(let T=0;T(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(Vve||{}),Uve=(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))(Uve||{}),Hve=(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))(Hve||{}),aV=[],Jve=Pd(()=>{const t=[];for(let r=83;r<=165;r++)t.push({name:Nd(r),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords});return t})}});function $ve(){const t=new Map;function r(s){const l=t.get(s.name);(!l||Qve[l.kind]({name:ee.value,kindModifiers:"",kind:"string",sortText:cm.LocationPriority,replacementSpan:tce(r)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:O,entries:V}}default:return ce.assertNever(t)}}function Q_t(t,r,s,l,m,y,T,D,I){if(!l||!sp(l))return;const W=B5e(r,l,s,m,y,T,I);return W&&Z_t(t,l,W,r,m,D)}function Z_t(t,r,s,l,m,y){switch(s.kind){case 0:{const T=lr(s.paths,D=>D.name===t);return T&&Lve(t,W5e(T.extension),T.kind,[RA(t)])}case 1:{const T=lr(s.symbols,D=>D.name===t);return T&&Xee(T,T.name,m,l,r,y)}case 2:return lr(s.types,T=>T.value===t)?Lve(t,"","string",[RA(t)]):void 0;default:return ce.assertNever(s)}}function F5e(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:m,kind:y,span:T,extension:D})=>({name:m,kind:y,kindModifiers:W5e(D),sortText:cm.LocationPriority,replacementSpan:T}))}}function W5e(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 ce.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return ce.assertNever(t)}}function B5e(t,r,s,l,m,y,T){const D=qve(r.parent);switch(D.kind){case 201:{const te=qve(D.parent);return te.kind===205?{kind:0,paths:j5e(t,r,m,y,l,T)}:I(te)}case 303:return Wd(D.parent)&&D.name===r?tdt(l,D.parent):W()||W(0);case 212:{const{expression:te,argumentExpression:oe}=D;return r===_g(oe)?z5e(l.getTypeAtLocation(te)):void 0}case 213:case 214:case 291:if(!mdt(r)&&!WE(D)){const te=b0e.getArgumentInfoForCompletions(D.kind===291?D.parent:r,s,t);return te&&(yQe(te.invocation,r,te,l)||yQe(te.invocation,r,te,l,0))||W(0)}case 272:case 278:case 283:return{kind:0,paths:j5e(t,r,m,y,l,T)};case 296:const O=YZ(l,D.parent.clauses),V=W();return V?{kind:2,types:V.types.filter(te=>!O.hasValue(te.value)),isNewIdentifier:!1}:void 0;default:return W()||W(0)}function I(O){switch(O.kind){case 233:case 183:{const te=Kr(D,oe=>oe.parent===O);return te?{kind:2,types:Qee(l.getTypeArgumentConstraint(te)),isNewIdentifier:!1}:void 0}case 199:const{indexType:V,objectType:ee}=O;return U$(V,s)?z5e(l.getTypeFromTypeNode(ee)):void 0;case 192:{const te=I(qve(O.parent));if(!te)return;const oe=edt(O,D);return te.kind===1?{kind:1,symbols:te.symbols.filter(de=>!ni(oe,de.name)),hasIndexSignature:te.hasIndexSignature}:{kind:2,types:te.types.filter(de=>!ni(oe,de.value)),isNewIdentifier:!1}}default:return}}function W(O=4){const V=Qee(lce(r,l,O));if(V.length)return{kind:2,types:V,isNewIdentifier:!1}}}function qve(t){switch(t.kind){case 196:return mH(t);case 217:return Lx(t);default:return t}}function edt(t,r){return Qo(t.types,s=>s!==r&&_I(s)&&Wp(s.literal)?s.literal.text:void 0)}function yQe(t,r,s,l,m=32){let y=!1;const T=new Map,D=[],I=Y1(t)?ce.checkDefined(Kr(r.parent,Pb)):r;l.getResolvedSignatureForStringLiteralCompletions(t,I,D,m);const W=ea(D,O=>{if(!oT(O)&&s.argumentCount>O.parameters.length)return;let V=O.getTypeParameterAtPosition(s.argumentIndex);if(Y1(t)){const ee=l.getTypeOfPropertyOfType(V,oW(I.name));ee&&(V=ee)}return y=y||!!(V.flags&4),Qee(V,T)});return Nt(W)?{kind:2,types:W,isNewIdentifier:y}:void 0}function z5e(t){return t&&{kind:1,symbols:gi(t.getApparentProperties(),r=>!(r.valueDeclaration&&Mf(r.valueDeclaration))),hasIndexSignature:rB(t)}}function tdt(t,r){const s=t.getContextualType(r);if(!s)return;const l=t.getContextualType(r,4);return{kind:1,symbols:dke(s,l,r,t),hasIndexSignature:rB(s)}}function Qee(t,r=new Map){return t?(t=MZ(t),t.isUnion()?ea(t.types,s=>Qee(s,r)):t.isStringLiteral()&&!(t.flags&1024)&&y0(r,t.value)?[t]:Zn):Zn}function x4(t,r,s){return{name:t,kind:r,extension:s}}function Kve(t){return x4(t,"directory",void 0)}function G5e(t,r,s){const l=ddt(t,r),m=t.length===0?void 0:nb(r,t.length);return s.map(({name:y,kind:T,extension:D})=>Math.max(y.indexOf(q),y.indexOf(N))!==-1?{name:y,kind:T,extension:D,span:m}:{name:y,kind:T,extension:D,span:l})}function j5e(t,r,s,l,m,y){return G5e(r.text,r.getStart(t)+1,ndt(t,r,s,l,m,y))}function ndt(t,r,s,l,m,y){const T=hf(r.text),D=sp(r)?kA(t,r):void 0,I=t.path,W=qc(I),O=Xve(s,1,t,m,y,D);return pdt(T)||!s.baseUrl&&!s.paths&&(mm(T)||r9(T))?rdt(T,W,s,l,I,O):sdt(T,W,D,s,l,O,m)}function Xve(t,r,s,l,m,y){return{extensionsToSearch:Gf(idt(t,l)),referenceKind:r,importingSourceFile:s,endingPreference:m==null?void 0:m.importModuleSpecifierEnding,resolutionMode:y}}function rdt(t,r,s,l,m,y){return s.rootDirs?adt(s.rootDirs,t,r,y,s,l,m):oc(zF(t,r,y,l,!0,m).values())}function idt(t,r){const s=r?Qo(r.getAmbientModules(),y=>{const T=y.name.slice(1,-1);if(!(!T.startsWith("*.")||T.includes("/")))return T.slice(1)}):[],l=[...s3(t),s],m=Jd(t);return U3(m)?Q9(t,l):l}function odt(t,r,s,l){t=t.map(y=>Fd(mm(y)?y:tf(r,y)));const m=Yr(t,y=>GC(y,s,r,l)?s.substr(y.length):void 0);return th([...t.map(y=>tf(y,m)),s],ZA,Fp)}function adt(t,r,s,l,m,y,T){const D=m.project||y.getCurrentDirectory(),I=!(y.useCaseSensitiveFileNames&&y.useCaseSensitiveFileNames()),W=odt(t,D,s,I);return ea(W,O=>oc(zF(r,O,l,y,!0,T).values()))}function zF(t,r,s,l,m,y,T=$ve()){var D;t===void 0&&(t=""),t=hf(t),Jg(t)||(t=qc(t)),t===""&&(t="."+q),t=Rv(t);const I=gm(r,t),W=Jg(I)?I:qc(I);if(!m){const te=$Je(W,l);if(te){const de=e3(te,l).typesVersions;if(typeof de=="object"){const ue=(D=yQ(de))==null?void 0:D.paths;if(ue){const Ne=qc(te),Be=I.slice(Rv(Ne).length);if(U5e(T,Be,Ne,s,l,ue))return T}}}}const O=!(l.useCaseSensitiveFileNames&&l.useCaseSensitiveFileNames());if(!dce(l,W))return T;const V=_ce(l,W,s.extensionsToSearch,void 0,["./*"]);if(V)for(let te of V){if(te=Fd(te),y&&wM(te,y,r,O)===0)continue;const{name:oe,extension:de}=V5e(Iy(te),l.getCompilationSettings(),s);T.add(x4(oe,"script",de))}const ee=HZ(l,W);if(ee)for(const te of ee){const oe=Iy(Fd(te));oe!=="@types"&&T.add(Kve(oe))}return T}function V5e(t,r,s){const l=M3.tryGetRealFileNameForNonJsDeclarationFileName(t);if(l)return{name:l,extension:OT(l)};if(s.referenceKind===0)return{name:t,extension:OT(t)};const m=ooe(s.endingPreference,s.resolutionMode,r,s.importingSourceFile);if(m===3){if(ws(t,SG))return{name:t,extension:OT(t)};const T=M3.tryGetJSExtensionForFile(t,r);return T?{name:SA(t,T),extension:T}:{name:t,extension:OT(t)}}if((m===0||m===1)&&ws(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:wg(t),extension:OT(t)};const y=M3.tryGetJSExtensionForFile(t,r);return y?{name:SA(t,y),extension:y}:{name:t,extension:OT(t)}}function U5e(t,r,s,l,m,y){const T=I=>y[I],D=(I,W)=>{const O=c6(I),V=c6(W),ee=typeof O=="object"?O.prefix.length:I.length,te=typeof V=="object"?V.prefix.length:W.length;return pf(te,ee)};return H5e(t,r,s,l,m,ET(y),T,D)}function H5e(t,r,s,l,m,y,T,D){let I=[],W;for(const O of y){if(O===".")continue;const V=O.replace(/^\.\//,""),ee=T(O);if(ee){const te=c6(V);if(!te)continue;const oe=typeof te=="object"&&mU(te,r);oe&&(W===void 0||D(O,W)===-1)&&(W=O,I=I.filter(ue=>!ue.matchedPattern)),(typeof te=="string"||W===void 0||D(O,W)!==1)&&I.push({matchedPattern:oe,results:cdt(V,ee,r,s,l,m).map(({name:ue,kind:Ne,extension:Be})=>x4(ue,Ne,Be))})}}return I.forEach(O=>O.results.forEach(V=>t.add(V))),W!==void 0}function sdt(t,r,s,l,m,y,T){const{baseUrl:D,paths:I}=l,W=$ve(),O=Jd(l);if(D){const ee=Fd(tf(m.getCurrentDirectory(),D));zF(t,ee,y,m,!1,void 0,W)}if(I){const ee=G9(l,m);U5e(W,t,ee,y,m,I)}const V=$5e(t);for(const ee of udt(t,V,T))W.add(x4(ee,"external module name",void 0));if(X5e(m,l,r,V,y,W),U3(O)){let ee=!1;if(V===void 0)for(const te of _dt(m,r)){const oe=x4(te,"external module name",void 0);W.has(oe.name)||(ee=!0,W.add(oe))}if(!ee){let te=oe=>{const de=tf(oe,"node_modules");dce(m,de)&&zF(t,de,y,m,!1,void 0,W)};if(V&&Zie(l)){const oe=te;te=de=>{const ue=g0(t);ue.shift();let Ne=ue.shift();if(!Ne)return oe(de);if(xf(Ne,"@")){const pt=ue.shift();if(!pt)return oe(de);Ne=tf(Ne,pt)}const Be=tf(de,"node_modules",Ne),Ve=tf(Be,"package.json");if(iB(m,Ve)){const Le=e3(Ve,m).exports;if(Le){if(typeof Le!="object"||Le===null)return;const ht=ET(Le),ke=ue.join("/")+(ue.length&&Jg(t)?"/":""),_t=u$(l,s===99);H5e(W,ke,Be,y,m,ht,Dt=>zD(J5e(Le[Dt],_t)),xQ);return}}return oe(de)}}ok(r,te)}}return oc(W.values())}function J5e(t,r){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!ls(t)){for(const s in t)if(s==="default"||r.indexOf(s)>-1||g$(r,s)){const l=t[s];return J5e(l,r)}}}function $5e(t){return Yve(t)?Jg(t)?t:qc(t):void 0}function cdt(t,r,s,l,m,y){if(!h_(t,"*"))return Ub(t,"*")?Zn:I(t,"script");const T=t.slice(0,t.length-1),D=C8(s,T);if(D===void 0)return t[t.length-2]==="/"?I(T,"directory"):ea(r,O=>{var V;return(V=q5e("",l,O,m,y))==null?void 0:V.map(({name:ee,...te})=>({name:T+ee,...te}))});return ea(r,W=>q5e(D,l,W,m,y));function I(W,O){return xf(W,s)?[{name:n7(W),kind:O,extension:void 0}]:Zn}}function q5e(t,r,s,l,m){if(!m.readDirectory)return;const y=c6(s);if(y===void 0||As(y))return;const T=gm(y.prefix),D=Jg(y.prefix)?T:qc(T),I=Jg(y.prefix)?"":Iy(T),W=Yve(t),O=W?Jg(t)?t:qc(t):void 0,V=W?tf(D,I+O):D,ee=Fd(y.suffix),te=ee&&JL("_"+ee),oe=te?[SA(ee,te),ee]:[ee],de=Fd(tf(r,V)),ue=W?de:Rv(de)+I,Ne=ee?oe.map(Le=>"**/*"+Le):["./*"],Be=Qo(_ce(m,de,l.extensionsToSearch,void 0,Ne),Le=>{const ht=pt(Le);if(ht){if(Yve(ht))return Kve(g0(K5e(ht))[1]);const{name:ke,extension:_t}=V5e(ht,m.getCompilationSettings(),l);return x4(ke,"script",_t)}}),Ve=ee?Zn:Qo(HZ(m,de),Le=>Le==="node_modules"?void 0:Kve(Le));return[...Be,...Ve];function pt(Le){return Yr(oe,ht=>{const ke=ldt(Fd(Le),ue,ht);return ke===void 0?void 0:K5e(ke)})}}function ldt(t,r,s){return xf(t,r)&&h_(t,s)?t.slice(r.length,t.length-s.length):void 0}function K5e(t){return t[0]===q?t.slice(1):t}function udt(t,r,s){const m=s.getAmbientModules().map(y=>HE(y.name)).filter(y=>xf(y,t)&&y.indexOf("*")<0);if(r!==void 0){const y=Rv(r);return m.map(T=>Ez(T,y))}return m}function fdt(t,r,s,l){const m=bf(t,r),y=CS(t.text,m.pos),T=y&&lr(y,oe=>r>=oe.pos&&r<=oe.end);if(!T)return;const D=t.text.slice(T.pos,r),I=Y5e.exec(D);if(!I)return;const[,W,O,V]=I,ee=qc(t.path),te=O==="path"?zF(V,ee,Xve(s,0,t),l,!0,t.path):O==="types"?X5e(l,s,ee,$5e(V),Xve(s,1,t)):ce.fail();return G5e(V,T.pos+W.length,oc(te.values()))}function X5e(t,r,s,l,m,y=$ve()){const T=new Map,D=ehe(()=>$pe(r,t))||Zn;for(const W of D)I(W);for(const W of JZ(s,t)){const O=tf(qc(W),"node_modules/@types");I(O)}return y;function I(W){if(dce(t,W))for(const O of HZ(t,W)){const V=dae(O);if(!(r.types&&!ni(r.types,V)))if(l===void 0)T.has(V)||(y.add(x4(V,"external module name",void 0)),T.set(V,!0));else{const ee=tf(W,O),te=toe(l,V,hR(t));te!==void 0&&zF(te,ee,m,t,!1,void 0,y)}}}}function _dt(t,r){if(!t.readFile||!t.fileExists)return Zn;const s=[];for(const l of JZ(r,t)){const m=e3(l,t);for(const y of Q5e){const T=m[y];if(T)for(const D in T)ef(T,D)&&!xf(D,"@types/")&&s.push(D)}}return s}function ddt(t,r){const s=Math.max(t.lastIndexOf(q),t.lastIndexOf(N)),l=s!==-1?s+1:0,m=t.length-l;return m===0||rE(t.substr(l,m),99)?void 0:nb(r+l,m)}function pdt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const r=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(r);return s===47||s===92}return!1}function Yve(t){return Ub(t,q)}function mdt(t){return el(t.parent)&&pp(t.parent.arguments)===t&&An(t.parent.expression)&&t.parent.expression.escapedText==="require"}var Qve,Y5e,Q5e,gdt=G({"src/services/stringCompletions.ts"(){El(),Zve(),Qve={directory:0,script:1,"external module name":2},Y5e=/^(\/\/\/\s*Q_t,getStringLiteralCompletions:()=>X_t});var hdt=G({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){gdt()}}),ow={};Oe(ow,{CompletionKind:()=>Hve,CompletionSource:()=>Vve,SortText:()=>cm,StringCompletions:()=>Zee,SymbolOriginInfoKind:()=>Uve,createCompletionDetails:()=>Lve,createCompletionDetailsForSymbol:()=>Xee,getCompletionEntriesFromSymbols:()=>I5e,getCompletionEntryDetails:()=>k5e,getCompletionEntrySymbol:()=>j_t,getCompletionsAtPosition:()=>Pve,getPropertiesForObjectExpression:()=>dke,moduleSpecifierResolutionCacheAttemptLimit:()=>jve,moduleSpecifierResolutionLimit:()=>Yee});var Zve=G({"src/services/_namespaces/ts.Completions.ts"(){K_t(),hdt()}});function e0e(t,r,s,l){const m=Tdt(t,s,l);return(y,T,D)=>{const{directImports:I,indirectUsers:W}=ydt(t,r,m,T,s,l);return{indirectUsers:W,...vdt(I,y,T.exportKind,s,D)}}}function ydt(t,r,s,{exportingModuleSymbol:l,exportKind:m},y,T){const D=CF(),I=CF(),W=[],O=!!l.globalExports,V=O?void 0:[];return te(l),{directImports:W,indirectUsers:ee()};function ee(){if(O)return t;if(l.declarations)for(const Ve of l.declarations)BL(Ve)&&r.has(Ve.getSourceFile().fileName)&&Ne(Ve);return V.map(ns)}function te(Ve){const pt=Be(Ve);if(pt){for(const Le of pt)if(D(Le))switch(T&&T.throwIfCancellationRequested(),Le.kind){case 213:if(WE(Le)){oe(Le);break}if(!O){const ke=Le.parent;if(m===2&&ke.kind===260){const{name:_t}=ke;if(_t.kind===80){W.push(_t);break}}}break;case 80:break;case 271:ue(Le,Le.name,il(Le,1),!1);break;case 272:W.push(Le);const ht=Le.importClause&&Le.importClause.namedBindings;ht&&ht.kind===274?ue(Le,ht.name,!1,!0):!O&&D7(Le)&&Ne(sV(Le));break;case 278:Le.exportClause?Le.exportClause.kind===280?Ne(sV(Le),!0):W.push(Le):te(Cdt(Le,y));break;case 205:!O&&Le.isTypeOf&&!Le.qualifier&&de(Le)&&Ne(Le.getSourceFile(),!0),W.push(Le);break;default:ce.failBadSyntaxKind(Le,"Unexpected import kind.")}}}function oe(Ve){const pt=Kr(Ve,ete)||Ve.getSourceFile();Ne(pt,!!de(Ve,!0))}function de(Ve,pt=!1){return Kr(Ve,Le=>pt&&ete(Le)?"quit":nx(Le)&>(Le.modifiers,fW))}function ue(Ve,pt,Le,ht){if(m===2)ht||W.push(Ve);else if(!O){const ke=sV(Ve);ce.assert(ke.kind===312||ke.kind===267),Le||bdt(ke,pt,y)?Ne(ke,!0):Ne(ke)}}function Ne(Ve,pt=!1){if(ce.assert(!O),!I(Ve)||(V.push(Ve),!pt))return;const ht=y.getMergedSymbol(Ve.symbol);if(!ht)return;ce.assert(!!(ht.flags&1536));const ke=Be(ht);if(ke)for(const _t of ke)Wx(_t)||Ne(sV(_t),!0)}function Be(Ve){return s.get(Bp(Ve).toString())}}function vdt(t,r,s,l,m){const y=[],T=[];function D(ee,te){y.push([ee,te])}if(t)for(const ee of t)I(ee);return{importSearches:y,singleReferences:T};function I(ee){if(ee.kind===271){n0e(ee)&&W(ee.name);return}if(ee.kind===80){W(ee);return}if(ee.kind===205){if(ee.qualifier){const de=NS(ee.qualifier);de.escapedText===mp(r)&&T.push(de)}else s===2&&T.push(ee.argument.literal);return}if(ee.moduleSpecifier.kind!==11)return;if(ee.kind===278){ee.exportClause&&G0(ee.exportClause)&&O(ee.exportClause);return}const{name:te,namedBindings:oe}=ee.importClause||{name:void 0,namedBindings:void 0};if(oe)switch(oe.kind){case 274:W(oe.name);break;case 275:(s===0||s===1)&&O(oe);break;default:ce.assertNever(oe)}if(te&&(s===1||s===2)&&(!m||te.escapedText===v4(r))){const de=l.getSymbolAtLocation(te);D(te,de)}}function W(ee){s===2&&(!m||V(ee.escapedText))&&D(ee,l.getSymbolAtLocation(ee))}function O(ee){if(ee)for(const te of ee.elements){const{name:oe,propertyName:de}=te;if(V((de||oe).escapedText))if(de)T.push(de),(!m||oe.escapedText===r.escapedName)&&D(oe,l.getSymbolAtLocation(oe));else{const ue=te.kind===281&&te.propertyName?l.getExportSpecifierLocalTargetSymbol(te):l.getSymbolAtLocation(oe);D(oe,ue)}}}function V(ee){return ee===r.escapedName||s!==0&&ee==="default"}}function bdt(t,r,s){const l=s.getSymbolAtLocation(r);return!!e9e(t,m=>{if(!mh(m))return;const{exportClause:y,moduleSpecifier:T}=m;return!T&&y&&G0(y)&&y.elements.some(D=>s.getExportSpecifierLocalTargetSymbol(D)===l)})}function Z5e(t,r,s){var l;const m=[],y=t.getTypeChecker();for(const T of r){const D=s.valueDeclaration;if((D==null?void 0:D.kind)===312){for(const I of T.referencedFiles)t.getSourceFileFromReference(T,I)===D&&m.push({kind:"reference",referencingFile:T,ref:I});for(const I of T.typeReferenceDirectives){const W=(l=t.getResolvedTypeReferenceDirectives().get(I.fileName,I.resolutionMode||T.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective;W!==void 0&&W.resolvedFileName===D.fileName&&m.push({kind:"reference",referencingFile:T,ref:I})}}t9e(T,(I,W)=>{y.getSymbolAtLocation(W)===s&&m.push(rh(I)?{kind:"implicit",literal:W,referencingFile:T}:{kind:"import",literal:W})})}return m}function Tdt(t,r,s){const l=new Map;for(const m of t)s&&s.throwIfCancellationRequested(),t9e(m,(y,T)=>{const D=r.getSymbolAtLocation(T);if(D){const I=Bp(D).toString();let W=l.get(I);W||l.set(I,W=[]),W.push(y)}});return l}function e9e(t,r){return Ot(t.kind===312?t.statements:t.body.statements,s=>r(s)||ete(s)&&Ot(s.body&&s.body.statements,r))}function t9e(t,r){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)r(b2(s),s);else e9e(t,s=>{switch(s.kind){case 278:case 272:{const l=s;l.moduleSpecifier&&Wp(l.moduleSpecifier)&&r(l,l.moduleSpecifier);break}case 271:{const l=s;n0e(l)&&r(l,l.moduleReference.expression);break}}})}function n9e(t,r,s,l){return l?m():m()||y();function m(){var I;const{parent:W}=t,O=W.parent;if(r.exportSymbol)return W.kind===211?(I=r.declarations)!=null&&I.some(te=>te===W)&&ys(O)?ee(O,!1):void 0:T(r.exportSymbol,D(W));{const te=Edt(W,t);if(te&&il(te,1))return kh(te)&&te.moduleReference===t?l?void 0:{kind:0,symbol:s.getSymbolAtLocation(te.name)}:T(r,D(te));if(AP(W))return T(r,0);if(Ly(W))return V(W);if(Ly(O))return V(O);if(ys(W))return ee(W,!0);if(ys(O))return ee(O,!0);if(A2(W)||oF(W))return T(r,0)}function V(te){if(!te.symbol.parent)return;const oe=te.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:te.symbol.parent,exportKind:oe}}}function ee(te,oe){let de;switch(Qy(te)){case 1:de=0;break;case 2:de=2;break;default:return}const ue=oe?s.getSymbolAtLocation(PSe(uc(te.left,Kf))):r;return ue&&T(ue,de)}}function y(){if(!xdt(t))return;let W=s.getImmediateAliasedSymbol(r);if(!W||(W=Adt(W,s),W.escapedName==="export="&&(W=Sdt(W,s),W===void 0)))return;const O=v4(W);if(O===void 0||O==="default"||O===r.escapedName)return{kind:0,symbol:W}}function T(I,W){const O=t0e(I,W,s);return O&&{kind:1,symbol:I,exportInfo:O}}function D(I){return il(I,1024)?1:0}}function Sdt(t,r){var s,l;if(t.flags&2097152)return r.getImmediateAliasedSymbol(t);const m=ce.checkDefined(t.valueDeclaration);if(Ly(m))return(s=to(m.expression,YD))==null?void 0:s.symbol;if(ys(m))return(l=to(m.right,YD))==null?void 0:l.symbol;if(tl(m))return m.symbol}function Edt(t,r){const s=ff(t)?t:ym(t)?zX(t):void 0;return s?t.name!==r||CP(s.parent)?void 0:Dh(s.parent.parent)?s.parent.parent:void 0:t}function xdt(t){const{parent:r}=t;switch(r.kind){case 271:return r.name===t&&n0e(r);case 276:return!r.propertyName;case 273:case 274:return ce.assert(r.name===t),!0;case 208:return Rs(t)&&pR(r.parent.parent);default:return!1}}function t0e(t,r,s){const l=t.parent;if(!l)return;const m=s.getMergedSymbol(l);return sT(m)?{exportingModuleSymbol:m,exportKind:r}:void 0}function Adt(t,r){if(t.declarations)for(const s of t.declarations){if(Oy(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(s)||t;if(sa(s)&&KC(s.expression)&&!Gu(s.name))return r.getSymbolAtLocation(s);if(BT(s)&&ys(s.parent.parent)&&Qy(s.parent.parent)===2)return r.getExportSpecifierLocalTargetSymbol(s.name)}return t}function Cdt(t,r){return r.getMergedSymbol(sV(t).symbol)}function sV(t){if(t.kind===213)return t.getSourceFile();const{parent:r}=t;return r.kind===312?r:(ce.assert(r.kind===268),uc(r.parent,ete))}function ete(t){return t.kind===267&&t.name.kind===11}function n0e(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var r0e,i0e,Ddt=G({"src/services/importTracker.ts"(){El(),r0e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(r0e||{}),i0e=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(i0e||{})}});function _T(t,r=1){return{kind:r,node:t.name||t,context:Idt(t)}}function r9e(t){return t&&t.kind===void 0}function Idt(t){if(dl(t))return AI(t);if(t.parent){if(!dl(t.parent)&&!Ly(t.parent)){if(Rs(t)){const s=ys(t.parent)?t.parent:Kf(t.parent)&&ys(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&Qy(s)!==0)return AI(s)}if(rD(t.parent)||Sk(t.parent))return t.parent.parent;if(TW(t.parent)||iS(t.parent)||VX(t.parent))return t.parent;if(sp(t)){const s=L9(t);if(s){const l=Kr(s,m=>dl(m)||uf(m)||NT(m));return dl(l)?AI(l):l}}const r=Kr(t,am);return r?AI(r.parent):void 0}if(t.parent.name===t||pg(t.parent)||Ly(t.parent)||(l9(t.parent)||ym(t.parent))&&t.parent.propertyName===t||t.kind===90&&il(t.parent,1025))return AI(t.parent)}}function AI(t){if(t)switch(t.kind){case 260:return!My(t.parent)||t.parent.declarations.length!==1?t:Dh(t.parent.parent)?t.parent.parent:DS(t.parent.parent)?AI(t.parent.parent):t.parent;case 208:return AI(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 Ou(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return OR(t.parent)?AI(Kr(t.parent,r=>ys(r)||DS(r))):t;default:return t}}function o0e(t,r,s){if(!s)return;const l=r9e(s)?lV(s.start,r,s.end):lV(s,r);return l.start!==t.start||l.length!==t.length?{contextSpan:l}:void 0}function kdt(t,r,s,l,m){const y=Hx(l,m),T={use:1},D=OP.getReferencedSymbolsForNode(m,y,t,s,r,T),I=t.getTypeChecker(),W=OP.getAdjustedNode(y,T),O=Pdt(W)?I.getSymbolAtLocation(W):void 0;return!D||!D.length?void 0:Qo(D,({definition:V,references:ee})=>V&&{definition:I.runWithCancellationToken(r,te=>Rdt(V,te,y)),references:ee.map(te=>Ldt(te,O))})}function Pdt(t){return t.kind===90||!!O9(t)||K8(t)||t.kind===137&&pg(t.parent)}function Ndt(t,r,s,l,m){const y=Hx(l,m);let T;const D=i9e(t,r,s,y,m);if(y.parent.kind===211||y.parent.kind===208||y.parent.kind===212||y.kind===108)T=D&&[...D];else if(D){const W=$w(D),O=new Map;for(;!W.isEmpty();){const V=W.dequeue();if(!y0(O,Im(V.node)))continue;T=ur(T,V);const ee=i9e(t,r,s,V.node,V.node.pos);ee&&W.enqueue(...ee)}}const I=t.getTypeChecker();return Vn(T,W=>Fdt(W,I))}function i9e(t,r,s,l,m){if(l.kind===312)return;const y=t.getTypeChecker();if(l.parent.kind===304){const T=[];return OP.getReferenceEntriesForShorthandPropertyAssignment(l,y,D=>T.push(_T(D))),T}else if(l.kind===108||Z1(l.parent)){const T=y.getSymbolAtLocation(l);return T.valueDeclaration&&[_T(T.valueDeclaration)]}else return o9e(m,l,t,s,r,{implementations:!0,use:1})}function wdt(t,r,s,l,m,y,T){return Vn(a9e(OP.getReferencedSymbolsForNode(m,l,t,s,r,y)),D=>T(D,l,t.getTypeChecker()))}function o9e(t,r,s,l,m,y={},T=new Set(l.map(D=>D.fileName))){return a9e(OP.getReferencedSymbolsForNode(t,r,s,l,m,y,T))}function a9e(t){return t&&ea(t,r=>r.references)}function Rdt(t,r,s){const l=(()=>{switch(t.type){case 0:{const{symbol:O}=t,{displayParts:V,kind:ee}=s9e(O,r,s),te=V.map(ue=>ue.text).join(""),oe=O.declarations&&pp(O.declarations),de=oe?o_(oe)||oe:s;return{...cV(de),name:te,kind:ee,displayParts:V,context:AI(oe)}}case 1:{const{node:O}=t;return{...cV(O),name:O.text,kind:"label",displayParts:[C1(O.text,17)]}}case 2:{const{node:O}=t,V=Nd(O.kind);return{...cV(O),name:V,kind:"keyword",displayParts:[{text:V,kind:"keyword"}]}}case 3:{const{node:O}=t,V=r.getSymbolAtLocation(O),ee=V&&I4.getSymbolDisplayPartsDocumentationAndSymbolKind(r,V,O.getSourceFile(),j3(O),O).displayParts||[RA("this")];return{...cV(O),name:"this",kind:"var",displayParts:ee}}case 4:{const{node:O}=t;return{...cV(O),name:O.text,kind:"var",displayParts:[C1(Yv(O),8)]}}case 5:return{textSpan:FR(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[C1(`"${t.reference.fileName}"`,8)]};default:return ce.assertNever(t)}})(),{sourceFile:m,textSpan:y,name:T,kind:D,displayParts:I,context:W}=l;return{containerKind:"",containerName:"",fileName:m.fileName,kind:D,name:T,textSpan:y,displayParts:I,...o0e(y,m,W)}}function cV(t){const r=t.getSourceFile();return{sourceFile:r,textSpan:lV(am(t)?t.expression:t,r)}}function s9e(t,r,s){const l=OP.getIntersectingMeaningFromDeclarations(s,t),m=t.declarations&&pp(t.declarations)||s,{displayParts:y,symbolKind:T}=I4.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,m.getSourceFile(),m,m,l);return{displayParts:y,kind:T}}function Mdt(t,r,s,l,m){return{...tte(t),...l&&Odt(t,r,s,m)}}function Ldt(t,r){const s=c9e(t);return r?{...s,isDefinition:t.kind!==0&&l9e(t.node,r)}:s}function c9e(t){const r=tte(t);if(t.kind===0)return{...r,isWriteAccess:!1};const{kind:s,node:l}=t;return{...r,isWriteAccess:s0e(l),isInString:s===2?!0:void 0}}function tte(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const r=t.node.getSourceFile(),s=lV(t.node,r);return{textSpan:s,fileName:r.fileName,...o0e(s,r,t.context)}}}function Odt(t,r,s,l){if(t.kind!==0&&An(r)){const{node:m,kind:y}=t,T=m.parent,D=r.text,I=BT(T);if(I||kj(T)&&T.name===m&&T.dotDotDotToken===void 0){const W={prefixText:D+": "},O={suffixText:": "+D};if(y===3)return W;if(y===4)return O;if(I){const V=T.parent;return Wd(V)&&ys(V.parent)&&KC(V.parent.left)?W:O}else return W}else if(oS(T)&&!T.propertyName){const W=Oy(r.parent)?s.getExportSpecifierLocalTargetSymbol(r.parent):s.getSymbolAtLocation(r);return ni(W.declarations,T)?{prefixText:D+" as "}:NA}else if(Oy(T)&&!T.propertyName)return r===t.node||s.getSymbolAtLocation(r)===s.getSymbolAtLocation(t.node)?{prefixText:D+" as "}:{suffixText:" as "+D}}if(t.kind!==0&&nS(t.node)&&Kf(t.node.parent)){const m=Jge(l);return{prefixText:m,suffixText:m}}return NA}function Fdt(t,r){const s=tte(t);if(t.kind!==0){const{node:l}=t;return{...s,...Wdt(l,r)}}else return{...s,kind:"",displayParts:[]}}function Wdt(t,r){const s=r.getSymbolAtLocation(dl(t)&&t.name?t.name:t);return s?s9e(s,r,t):t.kind===210?{kind:"interface",displayParts:[cT(21),RA("object literal"),cT(22)]}:t.kind===231?{kind:"local class",displayParts:[cT(21),RA("anonymous local class"),cT(22)]}:{kind:g4(t),displayParts:[]}}function Bdt(t){const r=tte(t);if(t.kind===0)return{fileName:r.fileName,span:{textSpan:r.textSpan,kind:"reference"}};const s=s0e(t.node),l={textSpan:r.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...r.contextSpan&&{contextSpan:r.contextSpan}};return{fileName:r.fileName,span:l}}function lV(t,r,s){let l=t.getStart(r),m=(s||t).getEnd();return sp(t)&&m-l>2&&(ce.assert(s===void 0),l+=1,m-=1),R0(l,m)}function a0e(t){return t.kind===0?t.textSpan:lV(t.node,t.node.getSourceFile())}function s0e(t){const r=O9(t);return!!r&&zdt(r)||t.kind===90||o6(t)}function l9e(t,r){var s;if(!r)return!1;const l=O9(t)||(t.kind===90?t.parent:K8(t)||t.kind===137&&pg(t.parent)?t.parent.parent:void 0),m=l&&ys(l)?l.left:void 0;return!!(l&&((s=r.declarations)!=null&&s.some(y=>y===l||y===m)))}function zdt(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!OR(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||CP(t.parent);case 173:case 171:case 355:case 348:return!1;default:return ce.failBadSyntaxKind(t)}}var c0e,l0e,u0e,OP,Gdt=G({"src/services/findAllReferences.ts"(){El(),u9e(),c0e=(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))(c0e||{}),l0e=(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))(l0e||{}),u0e=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(u0e||{}),(t=>{function r(er,Jr,li,Ir,_o,xt={},Kn=new Set(Ir.map(gn=>gn.fileName))){var gn,qr,mt;if(Jr=s(Jr,xt),tl(Jr)){const Ui=D4.getReferenceAtPosition(Jr,er,li);if(!(Ui!=null&&Ui.file))return;const xu=li.getTypeChecker().getMergedSymbol(Ui.file.symbol);if(xu)return W(li,xu,!1,Ir,Kn);const We=li.getFileIncludeReasons();return We?[{definition:{type:5,reference:Ui.reference,file:Jr},references:m(Ui.file,We,li)||Zn}]:void 0}if(!xt.implementations){const Ui=V(Jr,Ir,_o);if(Ui)return Ui}const _r=li.getTypeChecker(),Cn=_r.getSymbolAtLocation(pg(Jr)&&Jr.parent.name||Jr);if(!Cn){if(!xt.implementations&&sp(Jr)){if(FZ(Jr)){const Ui=li.getFileIncludeReasons(),xu=(mt=(qr=(gn=Jr.getSourceFile().resolvedModules)==null?void 0:gn.get(Jr.text,kA(Jr.getSourceFile(),Jr)))==null?void 0:qr.resolvedModule)==null?void 0:mt.resolvedFileName,We=xu?li.getSourceFile(xu):void 0;if(We)return[{definition:{type:4,node:Jr},references:m(We,Ui,li)||Zn}]}return Rr(Jr,Ir,_r,_o)}return}if(Cn.escapedName==="export=")return W(li,Cn.parent,!1,Ir,Kn);const oi=T(Cn,li,Ir,_o,xt,Kn);if(oi&&!(Cn.flags&33554432))return oi;const Qr=y(Jr,Cn,_r),co=Qr&&T(Qr,li,Ir,_o,xt,Kn),es=ee(Cn,Jr,Ir,Kn,_r,_o,xt);return D(li,oi,es,co)}t.getReferencedSymbolsForNode=r;function s(er,Jr){return Jr.use===1?er=k8e(er):Jr.use===2&&(er=CAe(er)),er}t.getAdjustedNode=s;function l(er,Jr,li,Ir=new Set(li.map(_o=>_o.fileName))){var _o,xt;const Kn=(_o=Jr.getSourceFile(er))==null?void 0:_o.symbol;if(Kn)return((xt=W(Jr,Kn,!1,li,Ir)[0])==null?void 0:xt.references)||Zn;const gn=Jr.getFileIncludeReasons(),qr=Jr.getSourceFile(er);return qr&&gn&&m(qr,gn,Jr)||Zn}t.getReferencesForFileName=l;function m(er,Jr,li){let Ir;const _o=Jr.get(er.path)||Zn;for(const xt of _o)if(k6(xt)){const Kn=li.getSourceFileByPath(xt.file),gn=VW(li.getSourceFileByPath,xt);yF(gn)&&(Ir=ur(Ir,{kind:0,fileName:Kn.fileName,textSpan:FR(gn)}))}return Ir}function y(er,Jr,li){if(er.parent&&py(er.parent)){const Ir=li.getAliasedSymbol(Jr),_o=li.getMergedSymbol(Ir);if(Ir!==_o)return _o}}function T(er,Jr,li,Ir,_o,xt){const Kn=er.flags&1536&&er.declarations&&lr(er.declarations,tl);if(!Kn)return;const gn=er.exports.get("export="),qr=W(Jr,er,!!gn,li,xt);if(!gn||!xt.has(Kn.fileName))return qr;const mt=Jr.getTypeChecker();return er=dg(gn,mt),D(Jr,qr,ee(er,void 0,li,xt,mt,Ir,_o))}function D(er,...Jr){let li;for(const Ir of Jr)if(!(!Ir||!Ir.length)){if(!li){li=Ir;continue}for(const _o of Ir){if(!_o.definition||_o.definition.type!==0){li.push(_o);continue}const xt=_o.definition.symbol,Kn=Ho(li,qr=>!!qr.definition&&qr.definition.type===0&&qr.definition.symbol===xt);if(Kn===-1){li.push(_o);continue}const gn=li[Kn];li[Kn]={definition:gn.definition,references:gn.references.concat(_o.references).sort((qr,mt)=>{const _r=I(er,qr),Cn=I(er,mt);if(_r!==Cn)return pf(_r,Cn);const oi=a0e(qr),Qr=a0e(mt);return oi.start!==Qr.start?pf(oi.start,Qr.start):pf(oi.length,Qr.length)})}}}return li}function I(er,Jr){const li=Jr.kind===0?er.getSourceFile(Jr.fileName):Jr.node.getSourceFile();return er.getSourceFiles().indexOf(li)}function W(er,Jr,li,Ir,_o){ce.assert(!!Jr.valueDeclaration);const xt=Qo(Z5e(er,Ir,Jr),gn=>{if(gn.kind==="import"){const qr=gn.literal.parent;if(_I(qr)){const mt=uc(qr.parent,Wx);if(li&&!mt.qualifier)return}return _T(gn.literal)}else if(gn.kind==="implicit"){const qr=gn.literal.text!==_6&&k3(gn.referencingFile,mt=>mt.transformFlags&2?gy(mt)||TW(mt)||KE(mt)?mt:void 0:"skip")||gn.referencingFile.statements[0]||gn.referencingFile;return _T(qr)}else return{kind:0,fileName:gn.referencingFile.fileName,textSpan:FR(gn.ref)}});if(Jr.declarations)for(const gn of Jr.declarations)switch(gn.kind){case 312:break;case 267:_o.has(gn.getSourceFile().fileName)&&xt.push(_T(gn.name));break;default:ce.assert(!!(Jr.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const Kn=Jr.exports.get("export=");if(Kn!=null&&Kn.declarations)for(const gn of Kn.declarations){const qr=gn.getSourceFile();if(_o.has(qr.fileName)){const mt=ys(gn)&&sa(gn.left)?gn.left.expression:Ly(gn)?ce.checkDefined(Wm(gn,95,qr)):o_(gn)||gn;xt.push(_T(mt))}}return xt.length?[{definition:{type:0,symbol:Jr},references:xt}]:Zn}function O(er){return er.kind===148&&KN(er.parent)&&er.parent.operator===148}function V(er,Jr,li){if(Q$(er.kind))return er.kind===116&&$m(er.parent)||er.kind===148&&!O(er)?void 0:kn(Jr,er.kind,li,er.kind===148?O:void 0);if(S9(er.parent)&&er.parent.name===er)return Mn(Jr,li);if(dW(er)&&nu(er.parent))return[{definition:{type:2,node:er},references:[_T(er)]}];if(bZ(er)){const Ir=yZ(er.parent,er.text);return Ir&&Wt(Ir.parent,Ir)}else if(Mge(er))return Wt(er.parent,er);if(KW(er))return al(er,Jr,li);if(er.kind===108)return _u(er)}function ee(er,Jr,li,Ir,_o,xt,Kn){const gn=Jr&&de(er,Jr,_o,!vc(Kn))||er,qr=Jr?jc(Jr,gn):7,mt=[],_r=new Be(li,Ir,Jr?oe(Jr):0,_o,xt,qr,Kn,mt),Cn=!vc(Kn)||!gn.declarations?void 0:lr(gn.declarations,Oy);if(Cn)Or(Cn.name,gn,Cn,_r.createSearch(Jr,er,void 0),_r,!0,!0);else if(Jr&&Jr.kind===90&&gn.escapedName==="default"&&gn.parent)Cr(Jr,gn,_r),Ve(Jr,gn,{exportingModuleSymbol:gn.parent,exportKind:1},_r);else{const oi=_r.createSearch(Jr,gn,void 0,{allSearchSymbols:Jr?mc(gn,Jr,_o,Kn.use===2,!!Kn.providePrefixAndSuffixTextForRename,!!Kn.implementations):[gn]});te(gn,_r,oi)}return mt}function te(er,Jr,li){const Ir=Dt(er);if(Ir)un(Ir,Ir.getSourceFile(),li,Jr,!(tl(Ir)&&!ni(Jr.sourceFiles,Ir)));else for(const _o of Jr.sourceFiles)Jr.cancellationToken.throwIfCancellationRequested(),ke(_o,li,Jr)}function oe(er){switch(er.kind){case 176:case 137:return 1;case 80:if(Jl(er.parent))return ce.assert(er.parent.name===er),2;default:return 0}}function de(er,Jr,li,Ir){const{parent:_o}=Jr;return Oy(_o)&&Ir?Xr(Jr,er,_o,li):Yr(er.declarations,xt=>{if(!xt.parent){if(er.flags&33554432)return;ce.fail(`Unexpected symbol at ${ce.formatSyntaxKind(Jr.kind)}: ${ce.formatSymbol(er)}`)}return e0(xt.parent)&&g6(xt.parent.parent)?li.getPropertyOfType(li.getTypeFromTypeNode(xt.parent.parent),er.name):void 0})}let ue;(er=>{er[er.None=0]="None",er[er.Constructor=1]="Constructor",er[er.Class=2]="Class"})(ue||(ue={}));function Ne(er){if(!(er.flags&33555968))return;const Jr=er.declarations&&lr(er.declarations,li=>!tl(li)&&!xp(li));return Jr&&Jr.symbol}class Be{constructor(Jr,li,Ir,_o,xt,Kn,gn,qr){this.sourceFiles=Jr,this.sourceFilesSet=li,this.specialSearchKind=Ir,this.checker=_o,this.cancellationToken=xt,this.searchMeaning=Kn,this.options=gn,this.result=qr,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=CF(),this.markSeenReExportRHS=CF(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Jr){return this.sourceFilesSet.has(Jr.fileName)}getImportSearches(Jr,li){return this.importTracker||(this.importTracker=e0e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Jr,li,this.options.use===2)}createSearch(Jr,li,Ir,_o={}){const{text:xt=HE(mp(i6(li)||Ne(li)||li)),allSearchSymbols:Kn=[li]}=_o,gn=ty(xt),qr=this.options.implementations&&Jr?sl(Jr,li,this.checker):void 0;return{symbol:li,comingFrom:Ir,text:xt,escapedText:gn,parents:qr,allSearchSymbols:Kn,includes:mt=>ni(Kn,mt)}}referenceAdder(Jr){const li=Bp(Jr);let Ir=this.symbolIdToReferences[li];return Ir||(Ir=this.symbolIdToReferences[li]=[],this.result.push({definition:{type:0,symbol:Jr},references:Ir})),(_o,xt)=>Ir.push(_T(_o,xt))}addStringOrCommentReference(Jr,li){this.result.push({definition:void 0,references:[{kind:0,fileName:Jr,textSpan:li}]})}markSearchedSymbols(Jr,li){const Ir=Im(Jr),_o=this.sourceFileToSeenSymbols[Ir]||(this.sourceFileToSeenSymbols[Ir]=new Set);let xt=!1;for(const Kn of li)xt=m2(_o,Bp(Kn))||xt;return xt}}function Ve(er,Jr,li,Ir){const{importSearches:_o,singleReferences:xt,indirectUsers:Kn}=Ir.getImportSearches(Jr,li);if(xt.length){const gn=Ir.referenceAdder(Jr);for(const qr of xt)Le(qr,Ir)&&gn(qr)}for(const[gn,qr]of _o)cr(gn.getSourceFile(),Ir.createSearch(gn,qr,1),Ir);if(Kn.length){let gn;switch(li.exportKind){case 0:gn=Ir.createSearch(er,Jr,1);break;case 1:gn=Ir.options.use===2?void 0:Ir.createSearch(er,Jr,1,{text:"default"});break}if(gn)for(const qr of Kn)ke(qr,gn,Ir)}}function pt(er,Jr,li,Ir,_o,xt,Kn,gn){const qr=e0e(er,new Set(er.map(oi=>oi.fileName)),Jr,li),{importSearches:mt,indirectUsers:_r,singleReferences:Cn}=qr(Ir,{exportKind:Kn?1:0,exportingModuleSymbol:_o},!1);for(const[oi]of mt)gn(oi);for(const oi of Cn)An(oi)&&Wx(oi.parent)&&gn(oi);for(const oi of _r)for(const Qr of lt(oi,Kn?"default":xt)){const co=Jr.getSymbolAtLocation(Qr),es=gt(co==null?void 0:co.declarations,Ui=>!!to(Ui,Ly));An(Qr)&&!l9(Qr.parent)&&(co===Ir||es)&&gn(Qr)}}t.eachExportReference=pt;function Le(er,Jr){return on(er,Jr)?Jr.options.use!==2?!0:An(er)?!(l9(er.parent)&&er.escapedText==="default"):!1:!1}function ht(er,Jr){if(er.declarations)for(const li of er.declarations){const Ir=li.getSourceFile();cr(Ir,Jr.createSearch(li,er,0),Jr,Jr.includesSourceFile(Ir))}}function ke(er,Jr,li){fDe(er).get(Jr.escapedText)!==void 0&&cr(er,Jr,li)}function _t(er,Jr){return OR(er.parent.parent)?Jr.getPropertySymbolOfDestructuringAssignment(er):void 0}function Dt(er){const{declarations:Jr,flags:li,parent:Ir,valueDeclaration:_o}=er;if(_o&&(_o.kind===218||_o.kind===231))return _o;if(!Jr)return;if(li&8196){const gn=lr(Jr,qr=>Ab(qr,8)||Mf(qr));return gn?e6(gn,263):void 0}if(Jr.some(kj))return;const xt=Ir&&!(er.flags&262144);if(xt&&!(sT(Ir)&&!Ir.globalExports))return;let Kn;for(const gn of Jr){const qr=j3(gn);if(Kn&&Kn!==qr||!qr||qr.kind===312&&!h1(qr))return;if(Kn=qr,Dm(Kn)){let mt;for(;mt=cSe(Kn);)Kn=mt}}return xt?Kn.getSourceFile():Kn}function Ft(er,Jr,li,Ir=li){return it(er,Jr,li,()=>!0,Ir)||!1}t.isSymbolReferencedInFile=Ft;function it(er,Jr,li,Ir,_o=li){const xt=Eb(er.parent,er.parent.parent)?Dl(Jr.getSymbolsOfParameterPropertyDeclaration(er.parent,er.text)):Jr.getSymbolAtLocation(er);if(xt)for(const Kn of lt(li,xt.name,_o)){if(!An(Kn)||Kn===er||Kn.escapedText!==er.escapedText)continue;const gn=Jr.getSymbolAtLocation(Kn);if(gn===xt||Jr.getShorthandAssignmentValueSymbol(Kn.parent)===xt||Oy(Kn.parent)&&Xr(Kn,gn,Kn.parent,Jr)===xt){const qr=Ir(Kn);if(qr)return qr}}}t.eachSymbolReferenceInFile=it;function Ye(er,Jr){return gi(lt(Jr,er),_o=>!!O9(_o)).reduce((_o,xt)=>{const Kn=Ir(xt);return!gt(_o.declarationNames)||Kn===_o.depth?(_o.declarationNames.push(xt),_o.depth=Kn):Kn<_o.depth&&(_o.declarationNames=[xt],_o.depth=Kn),_o},{depth:1/0,declarationNames:[]}).declarationNames;function Ir(_o){let xt=0;for(;_o;)_o=j3(_o),xt++;return xt}}t.getTopMostDeclarationNamesInFile=Ye;function ut(er,Jr,li,Ir){if(!er.name||!An(er.name))return!1;const _o=ce.checkDefined(li.getSymbolAtLocation(er.name));for(const xt of Jr)for(const Kn of lt(xt,_o.name)){if(!An(Kn)||Kn===er.name||Kn.escapedText!==er.name.escapedText)continue;const gn=hZ(Kn),qr=el(gn.parent)&&gn.parent.expression===gn?gn.parent:void 0,mt=li.getSymbolAtLocation(Kn);if(mt&&li.getRootSymbols(mt).some(_r=>_r===_o)&&Ir(Kn,qr))return!0}return!1}t.someSignatureUsage=ut;function lt(er,Jr,li=er){return Qo(zt(er,Jr,li),Ir=>{const _o=Hx(er,Ir);return _o===er?void 0:_o})}function zt(er,Jr,li=er){const Ir=[];if(!Jr||!Jr.length)return Ir;const _o=er.text,xt=_o.length,Kn=Jr.length;let gn=_o.indexOf(Jr,li.pos);for(;gn>=0&&!(gn>li.end);){const qr=gn+Kn;(gn===0||!ak(_o.charCodeAt(gn-1),99))&&(qr===xt||!ak(_o.charCodeAt(qr),99))&&Ir.push(gn),gn=_o.indexOf(Jr,gn+Kn+1)}return Ir}function Wt(er,Jr){const li=er.getSourceFile(),Ir=Jr.text,_o=Qo(lt(li,Ir,er),xt=>xt===Jr||bZ(xt)&&yZ(xt,Ir)===Jr?_T(xt):void 0);return[{definition:{type:1,node:Jr},references:_o}]}function tt(er,Jr){switch(er.kind){case 81:if(Nu(er.parent))return!0;case 80:return er.text.length===Jr.length;case 15:case 11:{const li=er;return(xj(li)||Lge(er)||EZ(er)||el(er.parent)&&cH(er.parent)&&er.parent.arguments[1]===er)&&li.text.length===Jr.length}case 9:return xj(er)&&er.text.length===Jr.length;case 90:return Jr.length===7;default:return!1}}function Mn(er,Jr){const li=ea(er,Ir=>(Jr.throwIfCancellationRequested(),Qo(lt(Ir,"meta",Ir),_o=>{const xt=_o.parent;if(S9(xt))return _T(xt)})));return li.length?[{definition:{type:2,node:li[0].node},references:li}]:void 0}function kn(er,Jr,li,Ir){const _o=ea(er,xt=>(li.throwIfCancellationRequested(),Qo(lt(xt,Nd(Jr),xt),Kn=>{if(Kn.kind===Jr&&(!Ir||Ir(Kn)))return _T(Kn)})));return _o.length?[{definition:{type:2,node:_o[0].node},references:_o}]:void 0}function cr(er,Jr,li,Ir=!0){return li.cancellationToken.throwIfCancellationRequested(),un(er,er,Jr,li,Ir)}function un(er,Jr,li,Ir,_o){if(Ir.markSearchedSymbols(Jr,li.allSearchSymbols))for(const xt of zt(Jr,li.text,er))pn(Jr,xt,li,Ir,_o)}function on(er,Jr){return!!(z3(er)&Jr.searchMeaning)}function pn(er,Jr,li,Ir,_o){const xt=Hx(er,Jr);if(!tt(xt,li.text)){!Ir.options.implementations&&(Ir.options.findInStrings&&MR(er,Jr)||Ir.options.findInComments&&IAe(er,Jr))&&Ir.addStringOrCommentReference(er.fileName,nb(Jr,li.text.length));return}if(!on(xt,Ir))return;let Kn=Ir.checker.getSymbolAtLocation(xt);if(!Kn)return;const gn=xt.parent;if(oS(gn)&&gn.propertyName===xt)return;if(Oy(gn)){ce.assert(xt.kind===80),Or(xt,Kn,gn,li,Ir,_o);return}const qr=$a(li,Kn,xt,Ir);if(!qr){gr(Kn,li,Ir);return}switch(Ir.specialSearchKind){case 0:_o&&Cr(xt,qr,Ir);break;case 1:ei(xt,er,li,Ir);break;case 2:Gn(xt,li,Ir);break;default:ce.assertNever(Ir.specialSearchKind)}Rs(xt)&&ym(xt.parent)&&pR(xt.parent.parent.parent)&&(Kn=xt.parent.symbol,!Kn)||In(xt,Kn,li,Ir)}function Or(er,Jr,li,Ir,_o,xt,Kn){ce.assert(!Kn||!!_o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:gn,propertyName:qr,name:mt}=li,_r=gn.parent,Cn=Xr(er,Jr,li,_o.checker);if(!Kn&&!Ir.includes(Cn))return;if(qr?er===qr?(_r.moduleSpecifier||oi(),xt&&_o.options.use!==2&&_o.markSeenReExportRHS(mt)&&Cr(mt,ce.checkDefined(li.symbol),_o)):_o.markSeenReExportRHS(er)&&oi():_o.options.use===2&&mt.escapedText==="default"||oi(),!vc(_o.options)||Kn){const co=er.escapedText==="default"||li.name.escapedText==="default"?1:0,es=ce.checkDefined(li.symbol),Ui=t0e(es,co,_o.checker);Ui&&Ve(er,es,Ui,_o)}if(Ir.comingFrom!==1&&_r.moduleSpecifier&&!qr&&!vc(_o.options)){const Qr=_o.checker.getExportSpecifierLocalTargetSymbol(li);Qr&&ht(Qr,_o)}function oi(){xt&&Cr(er,Cn,_o)}}function Xr(er,Jr,li,Ir){return Ut(er,li)&&Ir.getExportSpecifierLocalTargetSymbol(li)||Jr}function Ut(er,Jr){const{parent:li,propertyName:Ir,name:_o}=Jr;return ce.assert(Ir===er||_o===er),Ir?Ir===er:!li.parent.moduleSpecifier}function In(er,Jr,li,Ir){const _o=n9e(er,Jr,Ir.checker,li.comingFrom===1);if(!_o)return;const{symbol:xt}=_o;_o.kind===0?vc(Ir.options)||ht(xt,Ir):Ve(er,xt,_o.exportInfo,Ir)}function gr({flags:er,valueDeclaration:Jr},li,Ir){const _o=Ir.checker.getShorthandAssignmentValueSymbol(Jr),xt=Jr&&o_(Jr);!(er&33554432)&&xt&&li.includes(_o)&&Cr(xt,_o,Ir)}function Cr(er,Jr,li){const{kind:Ir,symbol:_o}="kind"in Jr?Jr:{kind:void 0,symbol:Jr};if(li.options.use===2&&er.kind===90)return;const xt=li.referenceAdder(_o);li.options.implementations?ha(er,xt,li):xt(er,Ir)}function ei(er,Jr,li,Ir){zse(er)&&Cr(er,li.symbol,Ir);const _o=()=>Ir.referenceAdder(li.symbol);if(Jl(er.parent))ce.assert(er.kind===90||er.parent.name===er),Ur(li.symbol,Jr,_o());else{const xt=Aa(er);xt&&(ho(xt,_o()),Nc(xt,Ir))}}function Gn(er,Jr,li){Cr(er,Jr.symbol,li);const Ir=er.parent;if(li.options.use===2||!Jl(Ir))return;ce.assert(Ir.name===er);const _o=li.referenceAdder(Jr.symbol);for(const xt of Ir.members)c7(xt)&&e_(xt)&&xt.body&&xt.body.forEachChild(function Kn(gn){gn.kind===110?_o(gn):!S_(gn)&&!Jl(gn)&&gn.forEachChild(Kn)})}function Ur(er,Jr,li){const Ir=so(er);if(Ir&&Ir.declarations)for(const _o of Ir.declarations){const xt=Wm(_o,137,Jr);ce.assert(_o.kind===176&&!!xt),li(xt)}er.exports&&er.exports.forEach(_o=>{const xt=_o.valueDeclaration;if(xt&&xt.kind===174){const Kn=xt.body;Kn&&To(Kn,110,gn=>{zse(gn)&&li(gn)})}})}function so(er){return er.members&&er.members.get("__constructor")}function ho(er,Jr){const li=so(er.symbol);if(li&&li.declarations)for(const Ir of li.declarations){ce.assert(Ir.kind===176);const _o=Ir.body;_o&&To(_o,108,xt=>{Bse(xt)&&Jr(xt)})}}function di(er){return!!so(er.symbol)}function Nc(er,Jr){if(di(er))return;const li=er.symbol,Ir=Jr.createSearch(void 0,li,void 0);te(li,Jr,Ir)}function ha(er,Jr,li){if(vP(er)&&Xu(er.parent)){Jr(er);return}if(er.kind!==80)return;er.parent.kind===304&&Lo(er,li.checker,Jr);const Ir=ro(er);if(Ir){Jr(Ir);return}const _o=Kr(er,gn=>!nT(gn.parent)&&!Uu(gn.parent)&&!l7(gn.parent)),xt=_o.parent;if(eY(xt)&&xt.type===_o&&li.markSeenContainingTypeReference(xt))if(NN(xt))Kn(xt.initializer);else if(S_(xt)&&xt.body){const gn=xt.body;gn.kind===241?HM(gn,qr=>{qr.expression&&Kn(qr.expression)}):Kn(gn)}else _7(xt)&&Kn(xt.expression);function Kn(gn){Gs(gn)&&Jr(gn)}}function ro(er){return An(er)||sa(er)?ro(er.parent):WT(er)?to(er.parent.parent,dA(Jl,Kp)):void 0}function Gs(er){switch(er.kind){case 217:return Gs(er.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Oc(er,Jr,li,Ir){if(er===Jr)return!0;const _o=Bp(er)+","+Bp(Jr),xt=li.get(_o);if(xt!==void 0)return xt;li.set(_o,!1);const Kn=!!er.declarations&&er.declarations.some(gn=>fG(gn).some(qr=>{const mt=Ir.getTypeAtLocation(qr);return!!mt&&!!mt.symbol&&Oc(mt.symbol,Jr,li,Ir)}));return li.set(_o,Kn),Kn}function _u(er){let Jr=rG(er,!1);if(!Jr)return;let li=32;switch(Jr.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:li&=n6(Jr),Jr=Jr.parent;break;default:return}const Ir=Jr.getSourceFile(),_o=Qo(lt(Ir,"super",Jr),xt=>{if(xt.kind!==108)return;const Kn=rG(xt,!1);return Kn&&e_(Kn)===!!li&&Kn.parent.symbol===Jr.symbol?_T(xt):void 0});return[{definition:{type:0,symbol:Jr.symbol},references:_o}]}function Ku(er){return er.kind===80&&er.parent.kind===169&&er.parent.name===er}function al(er,Jr,li){let Ir=Q1(er,!1,!1),_o=32;switch(Ir.kind){case 174:case 173:if(q2(Ir)){_o&=n6(Ir),Ir=Ir.parent;break}case 172:case 171:case 176:case 177:case 178:_o&=n6(Ir),Ir=Ir.parent;break;case 312:if(Wv(Ir)||Ku(er))return;case 262:case 218:break;default:return}const xt=ea(Ir.kind===312?Jr:[Ir.getSourceFile()],gn=>(li.throwIfCancellationRequested(),lt(gn,"this",tl(Ir)?gn:Ir).filter(qr=>{if(!KW(qr))return!1;const mt=Q1(qr,!1,!1);if(!YD(mt))return!1;switch(Ir.kind){case 218:case 262:return Ir.symbol===mt.symbol;case 174:case 173:return q2(Ir)&&Ir.symbol===mt.symbol;case 231:case 263:case 210:return mt.parent&&YD(mt.parent)&&Ir.symbol===mt.parent.symbol&&e_(mt)===!!_o;case 312:return mt.kind===312&&!Wv(mt)&&!Ku(qr)}}))).map(gn=>_T(gn));return[{definition:{type:3,node:Yr(xt,gn=>Pu(gn.node.parent)?gn.node:void 0)||er},references:xt}]}function Rr(er,Jr,li,Ir){const _o=Hse(er,li),xt=ea(Jr,Kn=>(Ir.throwIfCancellationRequested(),Qo(lt(Kn,er.text),gn=>{if(sp(gn)&&gn.text===er.text)if(_o){const qr=Hse(gn,li);if(_o!==li.getStringType()&&_o===qr)return _T(gn,2)}else return Sd(gn)&&!mk(gn,Kn)?void 0:_T(gn,2)})));return[{definition:{type:4,node:er},references:xt}]}function mc(er,Jr,li,Ir,_o,xt){const Kn=[];return Ea(er,Jr,li,Ir,!(Ir&&_o),(gn,qr,mt)=>{mt&&ta(er)!==ta(mt)&&(mt=void 0),Kn.push(mt||qr||gn)},()=>!xt),Kn}function Ea(er,Jr,li,Ir,_o,xt,Kn){const gn=cle(Jr);if(gn){const co=li.getShorthandAssignmentValueSymbol(Jr.parent);if(co&&Ir)return xt(co,void 0,void 0,3);const es=li.getContextualType(gn.parent),Ui=es&&Yr(cye(gn,li,es,!0),wt=>oi(wt,4));if(Ui)return Ui;const xu=_t(Jr,li),We=xu&&xt(xu,void 0,void 0,4);if(We)return We;const Re=co&&xt(co,void 0,void 0,3);if(Re)return Re}const qr=y(Jr,er,li);if(qr){const co=xt(qr,void 0,void 0,1);if(co)return co}const mt=oi(er);if(mt)return mt;if(er.valueDeclaration&&Eb(er.valueDeclaration,er.valueDeclaration.parent)){const co=li.getSymbolsOfParameterPropertyDeclaration(uc(er.valueDeclaration,Pu),er.name);return ce.assert(co.length===2&&!!(co[0].flags&1)&&!!(co[1].flags&4)),oi(er.flags&1?co[1]:co[0])}const _r=Vm(er,281);if(!Ir||_r&&!_r.propertyName){const co=_r&&li.getExportSpecifierLocalTargetSymbol(_r);if(co){const es=xt(co,void 0,void 0,1);if(es)return es}}if(!Ir){let co;return _o?co=kj(Jr.parent)?rce(li,Jr.parent):void 0:co=Qr(er,li),co&&oi(co,4)}if(ce.assert(Ir),_o){const co=Qr(er,li);return co&&oi(co,4)}function oi(co,es){return Yr(li.getRootSymbols(co),Ui=>xt(co,Ui,void 0,es)||(Ui.parent&&Ui.parent.flags&96&&Kn(Ui)?Fi(Ui.parent,Ui.name,li,xu=>xt(co,Ui,xu,es)):void 0))}function Qr(co,es){const Ui=Vm(co,208);if(Ui&&kj(Ui))return rce(es,Ui)}}function Fi(er,Jr,li,Ir){const _o=new Map;return xt(er);function xt(Kn){if(!(!(Kn.flags&96)||!y0(_o,Bp(Kn))))return Yr(Kn.declarations,gn=>Yr(fG(gn),qr=>{const mt=li.getTypeAtLocation(qr),_r=mt&&mt.symbol&&li.getPropertyOfType(mt,Jr);return mt&&_r&&(Yr(li.getRootSymbols(_r),Ir)||xt(mt.symbol))}))}}function ta(er){return er.valueDeclaration?!!(tS(er.valueDeclaration)&32):!1}function $a(er,Jr,li,Ir){const{checker:_o}=Ir;return Ea(Jr,li,_o,!1,Ir.options.use!==2||!!Ir.options.providePrefixAndSuffixTextForRename,(xt,Kn,gn,qr)=>(gn&&ta(Jr)!==ta(gn)&&(gn=void 0),er.includes(gn||Kn||xt)?{symbol:Kn&&!(I_(xt)&6)?Kn:xt,kind:qr}:void 0),xt=>!(er.parents&&!er.parents.some(Kn=>Oc(xt.parent,Kn,Ir.inheritsFromCache,_o))))}function jc(er,Jr){let li=z3(er);const{declarations:Ir}=Jr;if(Ir){let _o;do{_o=li;for(const xt of Ir){const Kn=G$(xt);Kn&li&&(li|=Kn)}}while(li!==_o)}return li}t.getIntersectingMeaningFromDeclarations=jc;function Xu(er){return er.flags&33554432?!(Kp(er)||mg(er)):hP(er)?NN(er):J_(er)?!!er.body:Jl(er)||sde(er)}function Lo(er,Jr,li){const Ir=Jr.getSymbolAtLocation(er),_o=Jr.getShorthandAssignmentValueSymbol(Ir.valueDeclaration);if(_o)for(const xt of _o.getDeclarations())G$(xt)&1&&li(xt)}t.getReferenceEntriesForShorthandPropertyAssignment=Lo;function To(er,Jr,li){B_(er,Ir=>{Ir.kind===Jr&&li(Ir),To(Ir,Jr,li)})}function Aa(er){return Zv(hZ(er).parent)}function sl(er,Jr,li){const Ir=G3(er)?er.parent:void 0,_o=Ir&&li.getTypeAtLocation(Ir.expression),xt=Qo(_o&&(_o.isUnionOrIntersection()?_o.types:_o.symbol===Jr.parent?void 0:[_o]),Kn=>Kn.symbol&&Kn.symbol.flags&96?Kn.symbol:void 0);return xt.length===0?void 0:xt}function vc(er){return er.use===2&&er.providePrefixAndSuffixTextForRename}})(OP||(OP={}))}}),Wf={};Oe(Wf,{Core:()=>OP,DefinitionKind:()=>c0e,EntryKind:()=>l0e,ExportKind:()=>r0e,FindReferencesUse:()=>u0e,ImportExport:()=>i0e,createImportTracker:()=>e0e,findModuleReferences:()=>Z5e,findReferenceOrRenameEntries:()=>wdt,findReferencedSymbols:()=>kdt,getContextNode:()=>AI,getExportInfo:()=>t0e,getImplementationsAtPosition:()=>Ndt,getImportOrExportSymbol:()=>n9e,getReferenceEntriesForNode:()=>o9e,getTextSpanOfEntry:()=>a0e,isContextWithStartAndEndNode:()=>r9e,isDeclarationOfSymbol:()=>l9e,isWriteAccessForReference:()=>s0e,nodeEntry:()=>_T,toContextSpan:()=>o0e,toHighlightSpan:()=>Bdt,toReferenceEntry:()=>c9e,toRenameLocation:()=>Mdt});var u9e=G({"src/services/_namespaces/ts.FindAllReferences.ts"(){Ddt(),Gdt()}});function f9e(t,r,s,l,m){var y,T;const D=d9e(r,s,t),I=D&&[Qdt(D.reference.fileName,D.fileName,D.unverified)]||Zn;if(D!=null&&D.file)return I;const W=Hx(r,s);if(W===r)return;const{parent:O}=W,V=t.getTypeChecker();if(W.kind===164||An(W)&&UY(O)&&O.tagName===W)return Vdt(V,W)||Zn;if(bZ(W)){const Ne=yZ(W.parent,W.text);return Ne?[f0e(V,Ne,"label",W.text,void 0)]:void 0}if(W.kind===107){const Ne=Kr(W.parent,Be=>nu(Be)?"quit":J_(Be));return Ne?[uV(V,Ne)]:void 0}if(W.kind===135){const Ne=Kr(W,Ve=>J_(Ve));return Ne&>(Ne.modifiers,Ve=>Ve.kind===134)?[uV(V,Ne)]:void 0}if(W.kind===127){const Ne=Kr(W,Ve=>J_(Ve));return Ne&&Ne.asteriskToken?[uV(V,Ne)]:void 0}if(dW(W)&&nu(W.parent)){const Ne=W.parent.parent,{symbol:Be,failedAliasResolution:Ve}=nte(Ne,V,m),pt=gi(Ne.members,nu),Le=Be?V.symbolToString(Be,Ne):"",ht=W.getSourceFile();return Vn(pt,ke=>{let{pos:_t}=Db(ke);return _t=ep(ht.text,_t),f0e(V,ke,"constructor","static {}",Le,!1,Ve,{start:_t,length:6})})}let{symbol:ee,failedAliasResolution:te}=nte(W,V,m),oe=W;if(l&&te){const Ne=Ot([W,...(ee==null?void 0:ee.declarations)||Zn],Ve=>Kr(Ve,ZTe)),Be=Ne&&UL(Ne);Be&&({symbol:ee,failedAliasResolution:te}=nte(Be,V,m),oe=Be)}if(!ee&&FZ(oe)){const Ne=(T=(y=r.resolvedModules)==null?void 0:y.get(oe.text,kA(r,oe)))==null?void 0:T.resolvedModule;if(Ne)return[{name:oe.text,fileName:Ne.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:nb(0,0),failedAliasResolution:te,isAmbient:iT(Ne.resolvedFileName),unverified:oe!==W}]}if(!ee)return Hi(I,Kdt(W,V));if(l&&jr(ee.declarations,Ne=>Ne.getSourceFile().fileName===r.fileName))return;const de=ept(V,W);if(de&&!(Y1(W.parent)&&tpt(de))){const Ne=uV(V,de,te);if(V.getRootSymbols(ee).some(Be=>jdt(Be,de)))return[Ne];{const Be=A4(V,ee,W,te,de)||Zn;return W.kind===108?[Ne,...Be]:[...Be,Ne]}}if(W.parent.kind===304){const Ne=V.getShorthandAssignmentValueSymbol(ee.valueDeclaration),Be=Ne!=null&&Ne.declarations?Ne.declarations.map(Ve=>jF(Ve,V,Ne,W,!1,te)):Zn;return Hi(Be,_9e(V,W))}if(_y(W)&&ym(O)&&E1(O.parent)&&W===(O.propertyName||O.name)){const Ne=Dj(W),Be=V.getTypeAtLocation(O.parent);return Ne===void 0?Zn:ea(Be.isUnion()?Be.types:[Be],Ve=>{const pt=Ve.getProperty(Ne);return pt&&A4(V,pt,W)})}const ue=_9e(V,W);return Hi(I,ue.length?ue:A4(V,ee,W,te))}function jdt(t,r){var s;return t===r.symbol||t===r.symbol.parent||wy(r.parent)||!ib(r.parent)&&t===((s=to(r.parent,YD))==null?void 0:s.symbol)}function _9e(t,r){const s=cle(r);if(s){const l=s&&t.getContextualType(s.parent);if(l)return ea(cye(s,t,l,!1),m=>A4(t,m,r))}return Zn}function Vdt(t,r){const s=Kr(r,Mv);if(!(s&&s.name))return;const l=Kr(s,Jl);if(!l)return;const m=hA(l);if(!m)return;const y=_g(m.expression),T=B0(y)?y.symbol:t.getSymbolAtLocation(y);if(!T)return;const D=lf(g7(s.name)),I=Ny(s)?t.getPropertyOfType(t.getTypeOfSymbol(T),D):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(T),D);if(I)return A4(t,I,r)}function d9e(t,r,s){var l,m,y,T;const D=C4(t.referencedFiles,r);if(D){const O=s.getSourceFileFromReference(t,D);return O&&{reference:D,fileName:O.fileName,file:O,unverified:!1}}const I=C4(t.typeReferenceDirectives,r);if(I){const O=(l=s.getResolvedTypeReferenceDirectives().get(I.fileName,I.resolutionMode||t.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective,V=O&&s.getSourceFile(O.resolvedFileName);return V&&{reference:I,fileName:V.fileName,file:V,unverified:!1}}const W=C4(t.libReferenceDirectives,r);if(W){const O=s.getLibFileFromReference(W);return O&&{reference:W,fileName:O.fileName,file:O,unverified:!1}}if((m=t.resolvedModules)!=null&&m.size()){const O=qse(t,r);if(FZ(O)&&tb(O.text)&&t.resolvedModules.has(O.text,kA(t,O))){const V=(T=(y=t.resolvedModules.get(O.text,kA(t,O)))==null?void 0:y.resolvedModule)==null?void 0:T.resolvedFileName,ee=V||gm(qc(t.fileName),O.text);return{file:s.getSourceFile(ee),fileName:ee,reference:{pos:O.getStart(),end:O.getEnd(),fileName:O.text},unverified:!V}}}}function Udt(t,r){const s=r.symbol.name;if(!d0e.has(s))return!1;const l=t.resolveName(s,void 0,788968,!1);return!!l&&l===r.target.symbol}function p9e(t,r){if(!r.aliasSymbol)return!1;const s=r.aliasSymbol.name;if(!d0e.has(s))return!1;const l=t.resolveName(s,void 0,788968,!1);return!!l&&l===r.aliasSymbol}function Hdt(t,r,s,l){var m,y;if(ji(r)&4&&Udt(t,r))return GF(t.getTypeArguments(r)[0],t,s,l);if(p9e(t,r)&&r.aliasTypeArguments)return GF(r.aliasTypeArguments[0],t,s,l);if(ji(r)&32&&r.target&&p9e(t,r.target)){const T=(y=(m=r.aliasSymbol)==null?void 0:m.declarations)==null?void 0:y[0];if(T&&mg(T)&&x2(T.type)&&T.type.typeArguments)return GF(t.getTypeAtLocation(T.type.typeArguments[0]),t,s,l)}return[]}function Jdt(t,r,s){const l=Hx(r,s);if(l===r)return;if(S9(l.parent)&&l.parent.name===l)return GF(t.getTypeAtLocation(l.parent),t,l.parent,!1);const{symbol:m,failedAliasResolution:y}=nte(l,t,!1);if(!m)return;const T=t.getTypeOfSymbolAtLocation(m,l),D=$dt(m,T,t),I=D&&GF(D,t,l,y),[W,O]=I&&I.length!==0?[D,I]:[T,GF(T,t,l,y)];return O.length?[...Hdt(t,W,l,y),...O]:!(m.flags&111551)&&m.flags&788968?A4(t,dg(m,t),l,y):void 0}function GF(t,r,s,l){return ea(t.isUnion()&&!(t.flags&32)?t.types:[t],m=>m.symbol&&A4(r,m.symbol,s,l))}function $dt(t,r,s){if(r.symbol===t||t.valueDeclaration&&r.symbol&&ff(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){const l=r.getCallSignatures();if(l.length===1)return s.getReturnTypeOfSignature(Dl(l))}}function qdt(t,r,s){const l=f9e(t,r,s);if(!l||l.length===0)return;const m=C4(r.referencedFiles,s)||C4(r.typeReferenceDirectives,s)||C4(r.libReferenceDirectives,s);if(m)return{definitions:l,textSpan:FR(m)};const y=Hx(r,s),T=nb(y.getStart(),y.getWidth());return{definitions:l,textSpan:T}}function Kdt(t,r){return Qo(r.getIndexInfosAtLocation(t),s=>s.declaration&&uV(r,s.declaration))}function nte(t,r,s){const l=r.getSymbolAtLocation(t);let m=!1;if(l!=null&&l.declarations&&l.flags&2097152&&!s&&Xdt(t,l.declarations[0])){const y=r.getAliasedSymbol(l);if(y.declarations)return{symbol:y};m=!0}return{symbol:l,failedAliasResolution:m}}function Xdt(t,r){return t.kind!==80?!1:t.parent===r?!0:r.kind!==274}function Ydt(t){if(!aG(t))return!1;const r=Kr(t,s=>wy(s)?!0:aG(s)?!1:"quit");return!!r&&Qy(r)===5}function A4(t,r,s,l,m){const y=gi(r.declarations,V=>V!==m),T=gi(y,V=>!Ydt(V)),D=gt(T)?T:y;return I()||W()||Vn(D,V=>jF(V,t,r,s,!1,l));function I(){if(r.flags&32&&!(r.flags&19)&&(zse(s)||s.kind===137)){const V=lr(y,Jl)||ce.fail("Expected declaration to have at least one class-like declaration");return O(V.members,!0)}}function W(){return j$(s)||SZ(s)?O(y,!1):void 0}function O(V,ee){if(!V)return;const te=V.filter(ee?pg:S_),oe=te.filter(de=>!!de.body);return te.length?oe.length!==0?oe.map(de=>jF(de,t,r,s)):[jF(yl(te),t,r,s,!1,l)]:void 0}}function jF(t,r,s,l,m,y){const T=r.symbolToString(s),D=I4.getSymbolKind(r,s,l),I=s.parent?r.symbolToString(s.parent,l):"";return f0e(r,t,D,T,I,m,y)}function f0e(t,r,s,l,m,y,T,D){const I=r.getSourceFile();if(!D){const W=o_(r)||r;D=gE(W,I)}return{fileName:I.fileName,textSpan:D,kind:s,name:l,containerKind:void 0,containerName:m,...Wf.toContextSpan(D,I,Wf.getContextNode(r)),isLocal:!_0e(t,r),isAmbient:!!(r.flags&33554432),unverified:y,failedAliasResolution:T}}function _0e(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(NN(r.parent)&&r.parent.initializer===r)return _0e(t,r.parent);switch(r.kind){case 172:case 177:case 178:case 174:if(Ab(r,8))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return _0e(t,r.parent);default:return!1}}function uV(t,r,s){return jF(r,t,r.symbol,r,!1,s)}function C4(t,r){return lr(t,s=>zz(s,r))}function Qdt(t,r,s){return{fileName:r,textSpan:R0(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function Zdt(t){const r=Kr(t,l=>!G3(l)),s=r==null?void 0:r.parent;return s&&ib(s)&&T7(s)===r?s:void 0}function ept(t,r){const s=Zdt(r),l=s&&t.getResolvedSignature(s);return to(l&&l.declaration,m=>S_(m)&&!Z2(m))}function tpt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var d0e,npt=G({"src/services/goToDefinition.ts"(){El(),d0e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),D4={};Oe(D4,{createDefinitionInfo:()=>jF,findReferenceInPosition:()=>C4,getDefinitionAndBoundSpan:()=>qdt,getDefinitionAtPosition:()=>f9e,getReferenceAtPosition:()=>d9e,getTypeDefinitionAtPosition:()=>Jdt});var rpt=G({"src/services/_namespaces/ts.GoToDefinition.ts"(){npt()}});function ipt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function opt(t){return t.includeInlayParameterNameHints==="literals"}function vQe(t){return t.interactiveInlayHints===!0}function apt(t){const{file:r,program:s,span:l,cancellationToken:m,preferences:y}=t,T=r.text,D=s.getCompilerOptions(),I=s.getTypeChecker(),W=[];return O(r),W;function O(lt){if(!(!lt||lt.getFullWidth()===0)){switch(lt.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:m.throwIfCancellationRequested()}if(Yy(l,lt.pos,lt.getFullWidth())&&!(Uu(lt)&&!WT(lt)))return y.includeInlayVariableTypeHints&&ff(lt)||y.includeInlayPropertyDeclarationTypeHints&&Os(lt)?Ne(lt):y.includeInlayEnumMemberValueHints&&Qb(lt)?de(lt):ipt(y)&&(el(lt)||Ac(lt))?Be(lt):(y.includeInlayFunctionParameterTypeHints&&J_(lt)&&YH(lt)&&_t(lt),y.includeInlayFunctionLikeReturnTypeHints&&V(lt)&&ht(lt)),B_(lt,O)}}function V(lt){return ph(lt)||Dm(lt)||b0(lt)||em(lt)||tm(lt)}function ee(lt,zt,Wt,tt){let Mn=`${tt?"...":""}${lt}`,kn;vQe(y)?(kn=[ut(Mn,zt),{text:":"}],Mn=""):Mn+=":",W.push({text:Mn,position:Wt,kind:"Parameter",whitespaceAfter:!0,displayParts:kn})}function te(lt,zt){W.push({text:`: ${lt.length>yke?lt.substr(0,yke-3)+"...":lt}`,position:zt,kind:"Type",whitespaceBefore:!0})}function oe(lt,zt){W.push({text:`= ${lt}`,position:zt,kind:"Enum",whitespaceBefore:!0})}function de(lt){if(lt.initializer)return;const zt=I.getConstantValue(lt);zt!==void 0&&oe(zt.toString(),lt.end)}function ue(lt){return lt.symbol&<.symbol.flags&1536}function Ne(lt){if(!lt.initializer||ld(lt.name)||ff(lt)&&!Ye(lt)||Kb(lt))return;const Wt=I.getTypeAtLocation(lt);if(ue(Wt))return;const tt=Ft(Wt);if(tt){if(y.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pN(lt.name.getText(),tt))return;te(tt,lt.name.end)}}function Be(lt){const zt=lt.arguments;if(!zt||!zt.length)return;const Wt=[],tt=I.getResolvedSignatureForSignatureHelp(lt,Wt);if(!tt||!Wt.length)return;let Mn=0;for(const kn of zt){const cr=_g(kn);if(opt(y)&&!Le(cr))continue;let un=0;if(ex(cr)){const pn=I.getTypeAtLocation(cr.expression);if(I.isTupleType(pn)){const{elementFlags:Or,fixedLength:Xr}=pn.target;if(Xr===0)continue;const Ut=Ho(Or,gr=>!(gr&1));(Ut<0?Xr:Ut)>0&&(un=Ut<0?Xr:Ut)}}const on=I.getParameterIdentifierInfoAtPosition(tt,Mn);if(Mn=Mn+(un||1),on){const{parameter:pn,parameterName:Or,isRestParameter:Xr}=on;if(!(y.includeInlayParameterNameHintsWhenArgumentMatchesName||!Ve(cr,Or))&&!Xr)continue;const In=lf(Or);if(pt(cr,In))continue;ee(In,pn,kn.getStart(),Xr)}}}function Ve(lt,zt){return An(lt)?lt.text===zt:sa(lt)?lt.name.text===zt:!1}function pt(lt,zt){if(!rE(zt,D.target,$9(r.scriptKind)))return!1;const Wt=CS(T,lt.pos);if(!(Wt!=null&&Wt.length))return!1;const tt=bQe(zt);return gt(Wt,Mn=>tt.test(T.substring(Mn.pos,Mn.end)))}function Le(lt){switch(lt.kind){case 224:{const zt=lt.operand;return fP(zt)||An(zt)&&d3(zt.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const zt=lt.escapedText;return it(zt)||d3(zt)}}return fP(lt)}function ht(lt){if(ph(lt)&&!Wm(lt,21,r)||bA(lt)||!lt.body)return;const Wt=I.getSignatureFromDeclaration(lt);if(!Wt)return;const tt=I.getReturnTypeOfSignature(Wt);if(ue(tt))return;const Mn=Ft(tt);Mn&&te(Mn,ke(lt))}function ke(lt){const zt=Wm(lt,22,r);return zt?zt.end:lt.parameters.end}function _t(lt){const zt=I.getSignatureFromDeclaration(lt);if(zt)for(let Wt=0;Wt{const Mn=I.typeToTypeNode(lt,void 0,71286784);ce.assertIsDefined(Mn,"should always get typenode"),Wt.writeNode(4,Mn,r,tt)})}function it(lt){return lt==="undefined"}function Ye(lt){if((Y8(lt)||ff(lt)&&h7(lt))&<.initializer){const zt=_g(lt.initializer);return!(Le(zt)||Ac(zt)||Wd(zt)||_7(zt))}return!0}function ut(lt,zt){const Wt=zt.getSourceFile();return{text:lt,span:gE(zt,Wt),file:Wt.fileName}}}var yke,bQe,vke=G({"src/services/inlayHints.ts"(){El(),yke=30,bQe=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),m9e={};Oe(m9e,{provideInlayHints:()=>apt});var spt=G({"src/services/_namespaces/ts.InlayHints.ts"(){vke()}});function cpt(t,r){const s=[];return WZ(t,l=>{for(const m of upt(l)){const y=Gx(m)&&m.tags&&lr(m.tags,D=>D.kind===334&&(D.tagName.escapedText==="inheritDoc"||D.tagName.escapedText==="inheritdoc"));if(m.comment===void 0&&!y||Gx(m)&&l.kind!==353&&l.kind!==345&&m.tags&&m.tags.some(D=>D.kind===353||D.kind===345)&&!m.tags.some(D=>D.kind===348||D.kind===349))continue;let T=m.comment?fV(m.comment,r):[];y&&y.comment&&(T=T.concat(fV(y.comment,r))),ni(s,T,lpt)||s.push(T)}}),Gf(Zi(s,[lS()]))}function lpt(t,r){return sf(t,r,(s,l)=>s.kind===l.kind&&s.text===l.text)}function upt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];default:return k7(t)}}function Bq(t,r){const s=[];return WZ(t,l=>{const m=EN(l);if(!(m.some(y=>y.kind===353||y.kind===345)&&!m.some(y=>y.kind===348||y.kind===349)))for(const y of m)s.push({name:y.tagName.text,text:fpt(y,r)})}),s}function fV(t,r){return typeof t=="string"?[RA(t)]:ea(t,s=>s.kind===328?[RA(s.text)]:rq(s,r))}function fpt(t,r){const{comment:s,kind:l}=t,m=_pt(l);switch(l){case 356:const D=t.typeExpression;return D?y(D):s===void 0?void 0:fV(s,r);case 336:return y(t.class);case 335:return y(t.class);case 352:const I=t,W=[];if(I.constraint&&W.push(RA(I.constraint.getText())),Nt(I.typeParameters)){Nt(W)&&W.push($h());const V=I.typeParameters[I.typeParameters.length-1];Ot(I.typeParameters,ee=>{W.push(m(ee.getText())),V!==ee&&W.push(cT(28),$h())})}return s&&W.push($h(),...fV(s,r)),W;case 351:case 357:return y(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:O}=t;return O?y(O):s===void 0?void 0:fV(s,r);default:return s===void 0?void 0:fV(s,r)}function y(D){return T(D.getText())}function T(D){return s?D.match(/^https?$/)?[RA(D),...fV(s,r)]:[m(D),$h(),...fV(s,r)]:[RA(D)]}}function _pt(t){switch(t){case 348:return oce;case 355:return Kge;case 352:return yE;case 353:case 345:return PAe;default:return RA}}function dpt(){return y9e||(y9e=Vn(bke,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function TQe(){return v9e||(v9e=Vn(bke,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function SQe(t){return{name:t,kind:"",kindModifiers:"",displayParts:[RA(t)],documentation:Zn,tags:void 0,codeActions:void 0}}function ppt(t){if(!An(t.name))return Zn;const r=t.name.text,s=t.parent,l=s.parent;return S_(l)?Qo(l.parameters,m=>{if(!An(m.name))return;const y=m.name.text;if(!(s.tags.some(T=>T!==t&&AA(T)&&An(T.name)&&T.name.escapedText===y)||r!==void 0&&!xf(y,r)))return{name:y,kind:"parameter",kindModifiers:"",sortText:ow.SortText.LocationPriority}}):[]}function mpt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[RA(t)],documentation:Zn,tags:void 0,codeActions:void 0}}function gpt(t,r,s,l){const m=bf(r,s),y=Kr(m,Gx);if(y&&(y.comment!==void 0||Nt(y.tags)))return;const T=m.getStart(r);if(!y&&T0;if(de&&!Be){const Ve=ue+t+te+" * ",pt=T===s?t+te:"";return{newText:Ve+t+de+te+Ne+pt,caretOffset:Ve.length}}return{newText:ue+Ne,caretOffset:3}}function hpt(t,r){const{text:s}=t,l=wA(r,t);let m=l;for(;m<=r&&HD(s.charCodeAt(m));m++);return s.slice(l,m)}function ypt(t,r,s,l){return t.map(({name:m,dotDotDotToken:y},T)=>{const D=m.kind===80?m.text:"param"+T;return`${s} * @param ${r?y?"{...any} ":"{any} ":""}${D}${l}`}).join("")}function vpt(t,r){return`${t} * @returns${r}`}function g9e(t,r){return oie(t,s=>rte(s,r))}function rte(t,r){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:p0e(s,r)};case 303:return rte(t.initializer,r);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const m=t;return m.type&&Z2(m.type)?{commentOwner:t,parameters:m.type.parameters,hasReturn:p0e(m.type,r)}:{commentOwner:t}}case 243:{const y=t.declarationList.declarations,T=y.length===1&&y[0].initializer?h9e(y[0].initializer):void 0;return T?{commentOwner:t,parameters:T.parameters,hasReturn:p0e(T,r)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return rte(t.expression,r);case 226:{const m=t;return Qy(m)===0?"quit":S_(m.right)?{commentOwner:t,parameters:m.right.parameters,hasReturn:p0e(m.right,r)}:{commentOwner:t}}case 172:const l=t.initializer;if(l&&(Dm(l)||ph(l)))return{commentOwner:t,parameters:l.parameters,hasReturn:p0e(l,r)}}}function p0e(t,r){return!!(r!=null&&r.generateReturnInDocTemplate)&&(Z2(t)||ph(t)&&Nr(t.body)||J_(t)&&t.body&&E_(t.body)&&!!HM(t.body,s=>s))}function h9e(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return lr(t.members,pg)}}var bke,y9e,v9e,EQe,nO=G({"src/services/jsDoc.ts"(){El(),bke=["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"],EQe=SQe}}),VF={};Oe(VF,{getDocCommentTemplateAtPosition:()=>gpt,getJSDocParameterNameCompletionDetails:()=>mpt,getJSDocParameterNameCompletions:()=>ppt,getJSDocTagCompletionDetails:()=>SQe,getJSDocTagCompletions:()=>TQe,getJSDocTagNameCompletionDetails:()=>EQe,getJSDocTagNameCompletions:()=>dpt,getJsDocCommentsFromDeclarations:()=>cpt,getJsDocTagsFromDeclarations:()=>Bq});var bpt=G({"src/services/_namespaces/ts.JsDoc.ts"(){nO()}});function Tke(t,r,s,l,m,y){const T=Hs.ChangeTracker.fromContext({host:s,formatContext:r,preferences:m}),D=y==="SortAndCombine"||y==="All",I=D,W=y==="RemoveUnused"||y==="All",O=Ske(t,t.statements.filter(Fv)),V=Ipt(m,D?()=>DQe(O,m)===2:void 0),ee=oe=>(W&&(oe=Spt(oe,t,l)),I&&(oe=AQe(oe,V,t)),D&&(oe=nh(oe,(de,ue)=>A9e(de,ue,V))),oe);O.forEach(oe=>te(oe,ee)),y!=="RemoveUnused"&&PQe(t).forEach(oe=>te(oe,de=>zq(de,V)));for(const oe of t.statements.filter(Ov)){if(!oe.body)continue;if(Ske(t,oe.body.statements.filter(Fv)).forEach(ue=>te(ue,ee)),y!=="RemoveUnused"){const ue=oe.body.statements.filter(mh);te(ue,Ne=>zq(Ne,V))}}return T.getChanges();function te(oe,de){if(Nt(oe)===0)return;Sa(oe[0],1024);const ue=I?BD(oe,Ve=>g0e(Ve.moduleSpecifier)):[oe],Ne=D?nh(ue,(Ve,pt)=>h0e(Ve[0].moduleSpecifier,pt[0].moduleSpecifier,V)):ue,Be=ea(Ne,Ve=>g0e(Ve[0].moduleSpecifier)||Ve[0].moduleSpecifier===void 0?de(Ve):Ve);if(Be.length===0)T.deleteNodes(t,oe,{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Include},!0);else{const Ve={leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Include,suffix:NP(s,r.options)};T.replaceNodeWithNodes(t,oe[0],Be,Ve);const pt=T.nodeHasTrailingComment(t,oe[0],Ve);T.deleteNodes(t,oe.slice(1),{trailingTriviaOption:Hs.TrailingTriviaOption.Include},pt)}}}function Ske(t,r){const s=MM(t.languageVersion,!1,t.languageVariant),l=[];let m=0;for(const y of r)l[m]&&Tpt(t,y,s)&&m++,l[m]||(l[m]=[]),l[m].push(y);return l}function Tpt(t,r,s){const l=r.getFullStart(),m=r.getStart();s.setText(t.text,l,m-l);let y=0;for(;s.getTokenStart()=2))return!0;return!1}function Spt(t,r,s){const l=s.getTypeChecker(),m=s.getCompilerOptions(),y=l.getJsxNamespace(r),T=l.getJsxFragmentFactory(r),D=!!(r.transformFlags&2),I=[];for(const O of t){const{importClause:V,moduleSpecifier:ee}=O;if(!V){I.push(O);continue}let{name:te,namedBindings:oe}=V;if(te&&!W(te)&&(te=void 0),oe)if(QL(oe))W(oe.name)||(oe=void 0);else{const de=oe.elements.filter(ue=>W(ue.name));de.lengthWp(l)&&l.text===s)}function g0e(t){return t!==void 0&&sp(t)?t.text:void 0}function xQe(t,r,s){const l=Ake(r);return AQe(t,l,s)}function AQe(t,r,s){if(t.length===0)return t;const{importWithoutClause:l,typeOnlyImports:m,regularImports:y}=Ept(t),T=[];l&&T.push(l);for(const D of[y,m]){const I=D===m,{defaultImports:W,namespaceImports:O,namedImports:V}=D;if(!I&&W.length===1&&O.length===1&&V.length===0){const pt=W[0];T.push(ite(pt,pt.importClause.name,O[0].importClause.namedBindings));continue}const ee=nh(O,(pt,Le)=>r(pt.importClause.namedBindings.name.text,Le.importClause.namedBindings.name.text));for(const pt of ee)T.push(ite(pt,void 0,pt.importClause.namedBindings));const te=pp(W),oe=pp(V),de=te??oe;if(!de)continue;let ue;const Ne=[];if(W.length===1)ue=W[0].importClause.name;else for(const pt of W)Ne.push(be.createImportSpecifier(!1,be.createIdentifier("default"),pt.importClause.name));Ne.push(...Cpt(V));const Be=be.createNodeArray(Eke(Ne,r),oe==null?void 0:oe.importClause.namedBindings.elements.hasTrailingComma),Ve=Be.length===0?ue?void 0:be.createNamedImports(Zn):oe?be.updateNamedImports(oe.importClause.namedBindings,Be):be.createNamedImports(Be);s&&Ve&&(oe!=null&&oe.importClause.namedBindings)&&!mk(oe.importClause.namedBindings,s)&&Sa(Ve,2),I&&ue&&Ve?(T.push(ite(de,ue,void 0)),T.push(ite(oe??de,void 0,Ve))):T.push(ite(de,ue,Ve))}return T}function Ept(t){let r;const s={defaultImports:[],namespaceImports:[],namedImports:[]},l={defaultImports:[],namespaceImports:[],namedImports:[]};for(const m of t){if(m.importClause===void 0){r=r||m;continue}const y=m.importClause.isTypeOnly?s:l,{name:T,namedBindings:D}=m.importClause;T&&y.defaultImports.push(m),D&&(QL(D)?y.namespaceImports.push(m):y.namedImports.push(m))}return{importWithoutClause:r,typeOnlyImports:s,regularImports:l}}function b9e(t,r){const s=Ake(r);return zq(t,s)}function zq(t,r){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:l,typeOnlyExports:m}=T(t),y=[];s&&y.push(s);for(const D of[l,m]){if(D.length===0)continue;const I=[];I.push(...ea(D,V=>V.exportClause&&G0(V.exportClause)?V.exportClause.elements:Zn));const W=Eke(I,r),O=D[0];y.push(be.updateExportDeclaration(O,O.modifiers,O.isTypeOnly,O.exportClause&&(G0(O.exportClause)?be.updateNamedExports(O.exportClause,W):be.updateNamespaceExport(O.exportClause,O.exportClause.name)),O.moduleSpecifier,O.assertClause))}return y;function T(D){let I;const W=[],O=[];for(const V of D)V.exportClause===void 0?I=I||V:V.isTypeOnly?O.push(V):W.push(V);return{exportWithoutClause:I,namedExports:W,typeOnlyExports:O}}}function ite(t,r,s){return be.updateImportDeclaration(t,t.modifiers,be.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,s),t.moduleSpecifier,t.assertClause)}function Eke(t,r){return nh(t,(s,l)=>T9e(s,l,r))}function T9e(t,r,s){return Z0(t.isTypeOnly,r.isTypeOnly)||s(t.name.text,r.name.text)}function S9e(t,r,s){const l=Ake(!!s);return h0e(t,r,l)}function h0e(t,r,s){const l=t===void 0?void 0:g0e(t),m=r===void 0?void 0:g0e(r);return Z0(l===void 0,m===void 0)||Z0(tb(l),tb(m))||s(l,m)}function E9e(t){var r;switch(t.kind){case 271:return(r=to(t.moduleReference,j0))==null?void 0:r.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function CQe(t,r){return DQe(Ske(t,t.statements.filter(Fv)),r)}function DQe(t,r){const s=jq(r,!1),l=jq(r,!0);let m=3,y=!1;for(const T of t){if(T.length>1){const I=Qp(T,W=>{var O;return((O=to(W.moduleSpecifier,Wp))==null?void 0:O.text)??""},s,l);if(I&&(m&=I,y=!0),!m)return m}const D=lr(T,I=>{var W,O;return((O=to((W=I.importClause)==null?void 0:W.namedBindings,y6))==null?void 0:O.elements.length)>1});if(D){const I=C9e(D.importClause.namedBindings.elements,r);if(I&&(m&=I,y=!0),!m)return m}if(m!==3)return m}return y?0:m}function xpt(t,r){const s=jq(r,!1),l=jq(r,!0);return Qp(t,m=>g0e(E9e(m))||"",s,l)}function Apt(t,r,s){const l=ZS(t,r,Of,(m,y)=>A9e(m,y,s));return l<0?~l:l}function x9e(t,r,s){const l=ZS(t,r,Of,(m,y)=>T9e(m,y,s));return l<0?~l:l}function A9e(t,r,s){return h0e(E9e(t),E9e(r),s)||IQe(t,r)}function IQe(t,r){return pf(kQe(t),kQe(r))}function kQe(t){var r;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((r=t.importClause.namedBindings)==null?void 0:r.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Cpt(t){return ea(t,r=>Vn(xke(r),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?be.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function xke(t){var r;return(r=t.importClause)!=null&&r.namedBindings&&y6(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function Ake(t){return t?rP:Fp}function Dpt(t,r){const s=Gq(r),l=r.organizeImportsCaseFirst??!1,m=r.organizeImportsNumericCollation??!1,y=r.organizeImportsAccentCollation??!0,T=t?y?"accent":"base":y?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:l||"false",sensitivity:T,numeric:m}).compare}function Gq(t){let r=t.organizeImportsLocale;r==="auto"&&(r=dTe()),r===void 0&&(r="en");const s=Intl.Collator.supportedLocalesOf(r);return s.length?s[0]:"en"}function jq(t,r){return(t.organizeImportsCollation??"ordinal")==="unicode"?Dpt(r,t):Ake(r)}function Ipt(t,r){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(r==null?void 0:r())??!1;return jq(t,s)}function PQe(t){const r=[],s=t.statements,l=Nt(s);let m=0,y=0;for(;mSke(t,T))}var Cke,C9e,lD=G({"src/services/organizeImports.ts"(){El(),Cke=class{has([t,r]){return this._lastPreferences!==r||!this._cache?!1:this._cache.has(t)}get([t,r]){if(!(this._lastPreferences!==r||!this._cache))return this._cache.get(t)}set([t,r],s){this._lastPreferences!==r&&(this._lastPreferences=r,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},C9e=JO((t,r)=>{if(!_A(t,(m,y)=>Z0(m.isTypeOnly,y.isTypeOnly)))return 0;const s=jq(r,!1),l=jq(r,!0);return Qp(t,m=>m.name.text,s,l)},new Cke)}}),CI={};Oe(CI,{coalesceExports:()=>b9e,coalesceImports:()=>xQe,compareImportOrExportSpecifiers:()=>T9e,compareImportsOrRequireStatements:()=>A9e,compareModuleSpecifiers:()=>S9e,detectImportDeclarationSorting:()=>xpt,detectImportSpecifierSorting:()=>C9e,detectSorting:()=>CQe,getImportDeclarationInsertionIndex:()=>Apt,getImportSpecifierInsertionIndex:()=>x9e,getOrganizeImportsComparer:()=>jq,organizeImports:()=>Tke});var kpt=G({"src/services/_namespaces/ts.OrganizeImports.ts"(){lD()}});function Ppt(t,r){const s=[];return Npt(t,r,s),NQe(t,s),s.sort((l,m)=>l.textSpan.start-m.textSpan.start)}function Npt(t,r,s){let l=40,m=0;const y=[...t.statements,t.endOfFileToken],T=y.length;for(;m1&&l.push(y0e(y,T,"comment"))}}function pue(t,r,s,l){S1(t)||Ike(t.pos,r,s,l)}function y0e(t,r,s){return _V(R0(t,r),s)}function wpt(t,r){switch(t.kind){case 241:if(S_(t.parent))return kke(t.parent,t,r);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return O(t.parent);case 258:const te=t.parent;if(te.tryBlock===t)return O(t.parent);if(te.finallyBlock===t){const oe=Wm(te,98,r);if(oe)return O(oe)}default:return _V(gE(t,r),"code")}case 268:return O(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return O(t);case 189:return O(t,!1,!m6(t.parent),23);case 296:case 297:return V(t.statements);case 210:return W(t);case 209:return W(t,23);case 284:return y(t);case 288:return T(t);case 285:case 286:return D(t.attributes);case 228:case 15:return I(t);case 207:return O(t,!1,!ym(t.parent),23);case 219:return m(t);case 213:return l(t);case 217:return ee(t);case 275:case 279:case 300:return s(t)}function s(te){if(!te.elements.length)return;const oe=Wm(te,19,r),de=Wm(te,20,r);if(!(!oe||!de||mv(oe.pos,de.pos,r)))return rO(oe,de,te,r,!1,!1)}function l(te){if(!te.arguments.length)return;const oe=Wm(te,21,r),de=Wm(te,22,r);if(!(!oe||!de||mv(oe.pos,de.pos,r)))return rO(oe,de,te,r,!1,!0)}function m(te){if(E_(te.body)||sb(te.body)||mv(te.body.getFullStart(),te.body.getEnd(),r))return;const oe=R0(te.body.getFullStart(),te.body.getEnd());return _V(oe,"code",gE(te))}function y(te){const oe=R0(te.openingElement.getStart(r),te.closingElement.getEnd()),de=te.openingElement.tagName.getText(r),ue="<"+de+">...";return _V(oe,"code",oe,!1,ue)}function T(te){const oe=R0(te.openingFragment.getStart(r),te.closingFragment.getEnd());return _V(oe,"code",oe,!1,"<>...")}function D(te){if(te.properties.length!==0)return y0e(te.getStart(r),te.getEnd(),"code")}function I(te){if(!(te.kind===15&&te.text.length===0))return y0e(te.getStart(r),te.getEnd(),"code")}function W(te,oe=19){return O(te,!1,!Ch(te.parent)&&!el(te.parent),oe)}function O(te,oe=!1,de=!0,ue=19,Ne=ue===19?20:24){const Be=Wm(t,ue,r),Ve=Wm(t,Ne,r);return Be&&Ve&&rO(Be,Ve,te,r,oe,de)}function V(te){return te.length?_V(FR(te),"code"):void 0}function ee(te){if(mv(te.getStart(),te.getEnd(),r))return;const oe=R0(te.getStart(),te.getEnd());return _V(oe,"code",gE(te))}}function kke(t,r,s){const l=wQe(t,r,s),m=Wm(r,20,s);return l&&m&&rO(l,m,t,s,t.kind!==219)}function rO(t,r,s,l,m=!1,y=!0){const T=R0(y?t.getFullStart():t.getStart(l),r.getEnd());return _V(T,"code",gE(s,l),m)}function _V(t,r,s=t,l=!1,m="..."){return{textSpan:t,kind:r,hintSpan:s,bannerText:m,autoCollapse:l}}function wQe(t,r,s){if(ASe(t.parameters,s)){const l=Wm(t,21,s);if(l)return l}return Wm(r,19,s)}var RQe,Pke=G({"src/services/outliningElementsCollector.ts"(){El(),RQe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),D9e={};Oe(D9e,{collectElements:()=>Ppt});var Rpt=G({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Pke()}});function Mpt(t,r,s,l){const m=CAe(Hx(r,s));if(FQe(m)){const y=Lpt(m,t.getTypeChecker(),r,t,l);if(y)return y}return Nke(w.You_cannot_rename_this_element)}function Lpt(t,r,s,l,m){const y=r.getSymbolAtLocation(t);if(!y){if(sp(t)){const ee=Hse(t,r);if(ee&&(ee.flags&128||ee.flags&1048576&&jr(ee.types,te=>!!(te.flags&128))))return mue(t.text,t.text,"string","",t,s)}else if(Vse(t)){const ee=Yv(t);return mue(ee,ee,"label","",t,s)}return}const{declarations:T}=y;if(!T||T.length===0)return;if(T.some(ee=>Opt(l,ee)))return Nke(w.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(An(t)&&t.escapedText==="default"&&y.parent&&y.parent.flags&1536)return;if(sp(t)&&L9(t))return m.allowRenameOfImportPath?I9e(t,s,y):void 0;const D=MQe(s,y,r,m);if(D)return Nke(D);const I=I4.getSymbolKind(r,y,t),W=wAe(t)||Qv(t)&&t.parent.kind===167?HE(aC(t)):void 0,O=W||r.symbolToString(y),V=W||r.getFullyQualifiedName(y);return mue(O,V,I,I4.getSymbolModifiers(r,y),t,s)}function Opt(t,r){const s=r.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Pg(s.fileName,".d.ts")}function MQe(t,r,s,l){if(!l.providePrefixAndSuffixTextForRename&&r.flags&2097152){const T=r.declarations&&lr(r.declarations,D=>oS(D));T&&!T.propertyName&&(r=s.getAliasedSymbol(r))}const{declarations:m}=r;if(!m)return;const y=LQe(t.path);if(y===void 0)return gt(m,T=>mce(T.getSourceFile().path))?w.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const T of m){const D=LQe(T.getSourceFile().path);if(D){const I=Math.min(y.length,D.length);for(let W=0;W<=I;W++)if(Fp(y[W],D[W])!==0)return w.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function LQe(t){const r=g0(t),s=r.lastIndexOf("node_modules");if(s!==-1)return r.slice(0,s+2)}function I9e(t,r,s){if(!tb(t.text))return Nke(w.You_cannot_rename_a_module_via_a_global_import);const l=s.declarations&&lr(s.declarations,tl);if(!l)return;const m=h_(t.text,"/index")||h_(t.text,"/index.js")?void 0:K5(wg(l.fileName),"/index"),y=m===void 0?l.fileName:m,T=m===void 0?"module":"directory",D=t.text.lastIndexOf("/")+1,I=nb(t.getStart(r)+1+D,t.text.length-D);return{canRename:!0,fileToRename:y,kind:T,displayName:y,fullDisplayName:y,kindModifiers:"",triggerSpan:I}}function mue(t,r,s,l,m,y){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:r,kindModifiers:l,triggerSpan:OQe(m,y)}}function Nke(t){return{canRename:!1,localizedErrorMessage:fs(t)}}function OQe(t,r){let s=t.getStart(r),l=t.getWidth(r);return sp(t)&&(s+=1,l-=2),nb(s,l)}function FQe(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return xj(t);default:return!1}}var v0e=G({"src/services/rename.ts"(){El()}}),wke={};Oe(wke,{getRenameInfo:()=>Mpt,nodeIsEligibleForRename:()=>FQe});var Fpt=G({"src/services/_namespaces/ts.Rename.ts"(){v0e()}});function Wpt(t,r,s,l,m){const y=t.getTypeChecker(),T=Bge(r,s);if(!T)return;const D=!!l&&l.kind==="characterTyped";if(D&&(MR(r,s,T)||LR(r,s)))return;const I=!!l&&l.kind==="invoked",W=Kpt(T,s,r,y,I);if(!W)return;m.throwIfCancellationRequested();const O=Bpt(W,y,r,T,D);return m.throwIfCancellationRequested(),O?y.runWithCancellationToken(m,V=>O.kind===0?JQe(O.candidates,O.resolvedSignature,W,r,V):Xpt(O.symbol,W,r,V)):v1(r)?WQe(W,t,m):void 0}function Bpt({invocation:t,argumentCount:r},s,l,m,y){switch(t.kind){case 0:{if(y&&!zpt(m,t.node,l))return;const T=[],D=s.getResolvedSignatureForSignatureHelp(t.node,T,r);return T.length===0?void 0:{kind:0,candidates:T,resolvedSignature:D}}case 1:{const{called:T}=t;if(y&&!BQe(m,l,An(T)?T.parent:T))return;const D=jge(T,r,s);if(D.length!==0)return{kind:0,candidates:D,resolvedSignature:Dl(D)};const I=s.getSymbolAtLocation(T);return I&&{kind:1,symbol:I}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return ce.assertNever(t)}}function zpt(t,r,s){if(!IN(r))return!1;const l=r.getChildren(s);switch(t.kind){case 21:return ni(l,t);case 28:{const m=Aj(t);return!!m&&ni(l,m)}case 30:return BQe(t,s,r.expression);default:return!1}}function WQe(t,r,s){if(t.invocation.kind===2)return;const l=w9e(t.invocation),m=sa(l)?l.name.text:void 0,y=r.getTypeChecker();return m===void 0?void 0:Yr(r.getSourceFiles(),T=>Yr(T.getNamedDeclarations().get(m),D=>{const I=D.symbol&&y.getTypeOfSymbolAtLocation(D.symbol,D),W=I&&I.getCallSignatures();if(W&&W.length)return y.runWithCancellationToken(s,O=>JQe(W,W[0],t,T,O,!0))}))}function BQe(t,r,s){const l=t.getFullStart();let m=t.parent;for(;m;){const y=T0(l,r,m,!0);if(y)return sS(s,y);m=m.parent}return ce.fail("Could not find preceding token")}function zQe(t,r,s){const l=VQe(t,r,s);return!l||l.isTypeParameterList||l.invocation.kind!==0?void 0:{invocation:l.invocation.node,argumentCount:l.argumentCount,argumentIndex:l.argumentIndex}}function GQe(t,r,s){const l=jQe(t,s);if(!l)return;const{list:m,argumentIndex:y}=l,T=Jpt(m,MR(s,r,t));y!==0&&ce.assertLessThan(y,T);const D=$pt(m,s);return{list:m,argumentIndex:y,argumentCount:T,argumentsSpan:D}}function jQe(t,r){if(t.kind===30||t.kind===21)return{list:HQe(t.parent,t,r),argumentIndex:0};{const s=Aj(t);return s&&{list:s,argumentIndex:Hpt(s,t)}}}function VQe(t,r,s){const{parent:l}=t;if(IN(l)){const m=l,y=GQe(t,r,s);if(!y)return;const{list:T,argumentIndex:D,argumentCount:I,argumentsSpan:W}=y;return{isTypeParameterList:!!l.typeArguments&&l.typeArguments.pos===T.pos,invocation:{kind:0,node:m},argumentsSpan:W,argumentIndex:D,argumentCount:I}}else{if(Sd(t)&&Hm(l))return K$(t,r,s)?N9e(l,0,s):void 0;if(SR(t)&&l.parent.kind===215){const m=l,y=m.parent;ce.assert(m.kind===228);const T=K$(t,r,s)?0:1;return N9e(y,T,s)}else if(VY(l)&&Hm(l.parent.parent)){const m=l,y=l.parent.parent;if(K7(t)&&!K$(t,r,s))return;const T=m.parent.templateSpans.indexOf(m),D=P9e(T,t,r,s);return N9e(y,D,s)}else if(Y1(l)){const m=l.attributes.pos,y=ep(s.text,l.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:l},argumentsSpan:nb(m,y-m),argumentIndex:0,argumentCount:1}}else{const m=V3(t,s);if(m){const{called:y,nTypeArguments:T}=m,D={kind:1,called:y},I=R0(y.getStart(s),t.end);return{isTypeParameterList:!0,invocation:D,argumentsSpan:I,argumentIndex:T,argumentCount:T+1}}return}}}function UQe(t,r,s,l){return Gpt(t,r,s,l)||VQe(t,r,s)}function Rke(t){return ys(t.parent)?Rke(t.parent):t}function k9e(t){return ys(t.left)?k9e(t.left)+1:2}function Gpt(t,r,s,l){const m=jpt(t);if(m===void 0)return;const y=Vpt(m,s,r,l);if(y===void 0)return;const{contextualType:T,argumentIndex:D,argumentCount:I,argumentsSpan:W}=y,O=T.getNonNullableType(),V=O.symbol;if(V===void 0)return;const ee=Yf(O.getCallSignatures());return ee===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:ee,node:t,symbol:Upt(V)},argumentsSpan:W,argumentIndex:D,argumentCount:I}}function jpt(t){switch(t.kind){case 21:case 28:return t;default:return Kr(t.parent,r=>Pu(r)?!0:ym(r)||E1(r)||vW(r)?!1:"quit")}}function Vpt(t,r,s,l){const{parent:m}=t;switch(m.kind){case 217:case 174:case 218:case 219:const y=GQe(t,s,r);if(!y)return;const{argumentIndex:T,argumentCount:D,argumentsSpan:I}=y,W=em(m)?l.getContextualTypeForObjectLiteralElement(m):l.getContextualType(m);return W&&{contextualType:W,argumentIndex:T,argumentCount:D,argumentsSpan:I};case 226:{const O=Rke(m),V=l.getContextualType(O),ee=t.kind===21?0:k9e(m)-1,te=k9e(O);return V&&{contextualType:V,argumentIndex:ee,argumentCount:te,argumentsSpan:gE(m)}}default:return}}function Upt(t){return t.name==="__type"&&Yr(t.declarations,r=>{var s;return Z2(r)?(s=to(r.parent,YD))==null?void 0:s.symbol:void 0})||t}function Hpt(t,r){let s=0;for(const l of t.getChildren()){if(l===r)break;l.kind!==28&&s++}return s}function Jpt(t,r){const s=t.getChildren();let l=dp(s,m=>m.kind!==28);return!r&&s.length>0&&yl(s).kind===28&&l++,l}function P9e(t,r,s,l){return ce.assert(s>=r.getStart(),"Assumed 'position' could not occur before node."),O8(r)?K$(r,s,l)?0:t+2:t+1}function N9e(t,r,s){const l=Sd(t.template)?1:t.template.templateSpans.length+1;return r!==0&&ce.assertLessThan(r,l),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:qpt(t,s),argumentIndex:r,argumentCount:l}}function $pt(t,r){const s=t.getFullStart(),l=ep(r.text,t.getEnd(),!1);return nb(s,l-s)}function qpt(t,r){const s=t.template,l=s.getStart();let m=s.getEnd();return s.kind===228&&yl(s.templateSpans).literal.getFullWidth()===0&&(m=ep(r.text,m,!1)),nb(l,m-l)}function Kpt(t,r,s,l,m){for(let y=t;!tl(y)&&(m||!E_(y));y=y.parent){ce.assert(sS(y.parent,y),"Not a subspan",()=>`Child: ${ce.formatSyntaxKind(y.kind)}, parent: ${ce.formatSyntaxKind(y.parent.kind)}`);const T=UQe(y,r,s,l);if(T)return T}}function HQe(t,r,s){const l=t.getChildren(s),m=l.indexOf(r);return ce.assert(m>=0&&l.length>m+1),l[m+1]}function w9e(t){return t.kind===0?T7(t.node):t.called}function R9e(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function JQe(t,r,{isTypeParameterList:s,argumentCount:l,argumentsSpan:m,invocation:y,argumentIndex:T},D,I,W){var O;const V=R9e(y),ee=y.kind===2?y.symbol:I.getSymbolAtLocation(w9e(y))||W&&((O=r.declaration)==null?void 0:O.symbol),te=ee?ZW(I,ee,W?D:void 0,void 0):Zn,oe=Vn(t,Ve=>Qpt(Ve,te,s,I,V,D));T!==0&&ce.assertLessThan(T,l);let de=0,ue=0;for(let Ve=0;Ve1)){let Le=0;for(const ht of pt){if(ht.isVariadic||ht.parameters.length>=l){de=ue+Le;break}Le++}}ue+=pt.length}ce.assert(de!==-1);const Ne={items:Lm(oe,Of),applicableSpan:m,selectedItemIndex:de,argumentIndex:T,argumentCount:l},Be=Ne.items[de];if(Be.isVariadic){const Ve=Ho(Be.parameters,pt=>!!pt.isRest);-1ote(V,s,l,m,T)),I=t.getDocumentationComment(s),W=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...y,cT(30)],suffixDisplayParts:[cT(32)],separatorDisplayParts:M9e,parameters:D,documentation:I,tags:W}}function Qpt(t,r,s,l,m,y){const T=(s?emt:tmt)(t,l,m,y);return Vn(T,({isVariadic:D,parameters:I,prefix:W,suffix:O})=>{const V=[...r,...W],ee=[...O,...Zpt(t,m,l)],te=t.getDocumentationComment(l),oe=t.getJsDocTags();return{isVariadic:D,prefixDisplayParts:V,suffixDisplayParts:ee,separatorDisplayParts:M9e,parameters:I,documentation:te,tags:oe}})}function Zpt(t,r,s){return w6(l=>{l.writePunctuation(":"),l.writeSpace(" ");const m=s.getTypePredicateOfSignature(t);m?s.writeTypePredicate(m,r,void 0,l):s.writeType(s.getReturnTypeOfSignature(t),r,void 0,l)})}function emt(t,r,s,l){const m=(t.target||t).typeParameters,y=GW(),T=(m||Zn).map(I=>ote(I,r,s,l,y)),D=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,s,Vq)]:[];return r.getExpandedParameters(t).map(I=>{const W=be.createNodeArray([...D,...Vn(I,V=>r.symbolToParameterDeclaration(V,s,Vq))]),O=w6(V=>{y.writeList(2576,W,l,V)});return{isVariadic:!1,parameters:T,prefix:[cT(30)],suffix:[cT(32),...O]}})}function tmt(t,r,s,l){const m=GW(),y=w6(I=>{if(t.typeParameters&&t.typeParameters.length){const W=be.createNodeArray(t.typeParameters.map(O=>r.typeParameterToDeclaration(O,s,Vq)));m.writeList(53776,W,l,I)}}),T=r.getExpandedParameters(t),D=r.hasEffectiveRestParameter(t)?T.length===1?I=>!0:I=>{var W;return!!(I.length&&((W=to(I[I.length-1],uk))==null?void 0:W.links.checkFlags)&32768)}:I=>!1;return T.map(I=>({isVariadic:D(I),parameters:I.map(W=>$Qe(W,r,s,l,m)),prefix:[...y,cT(21)],suffix:[cT(22)]}))}function $Qe(t,r,s,l,m){const y=w6(I=>{const W=r.symbolToParameterDeclaration(t,s,Vq);m.writeNode(4,W,l,I)}),T=r.isOptionalParameter(t.valueDeclaration),D=uk(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:y,isOptional:T,isRest:D}}function ote(t,r,s,l,m){const y=w6(T=>{const D=r.typeParameterToDeclaration(t,s,Vq);m.writeNode(4,D,l,T)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:y,isOptional:!1,isRest:!1}}var Vq,M9e,gue=G({"src/services/signatureHelp.ts"(){El(),Vq=70246400,M9e=[cT(28),$h()]}}),b0e={};Oe(b0e,{getArgumentInfoForCompletions:()=>zQe,getSignatureHelpItems:()=>Wpt});var nmt=G({"src/services/_namespaces/ts.SignatureHelp.ts"(){gue()}});function rmt(t,r){var s,l;let m={textSpan:R0(r.getFullStart(),r.getEnd())},y=r;e:for(;;){const I=hue(y);if(!I.length)break;for(let W=0;Wt)break e;const te=Vb(Nx(r.text,V.end));if(te&&te.kind===2&&D(te.pos,te.end),imt(r,t,V)){if($Te(V)&&J_(y)&&!mv(V.getStart(r),V.getEnd(),r)&&T(V.getStart(r),V.getEnd()),E_(V)||VY(V)||SR(V)||K7(V)||O&&SR(O)||My(V)&&Dh(y)||GJ(V)&&My(y)||ff(V)&&GJ(y)&&I.length===1||pI(V)||Ak(V)||EW(V)){y=V;break}if(VY(y)&&ee&&JX(ee)){const Ne=V.getFullStart()-2,Be=ee.getStart()+1;T(Ne,Be)}const oe=GJ(V)&&omt(O)&&amt(ee)&&!mv(O.getStart(),ee.getStart(),r);let de=oe?O.getEnd():V.getStart();const ue=oe?ee.getStart():qQe(r,V);if(g1(V)&&((s=V.jsDoc)!=null&&s.length)&&T(Dl(V.jsDoc).getStart(),ue),GJ(V)){const Ne=V.getChildren()[0];Ne&&g1(Ne)&&((l=Ne.jsDoc)!=null&&l.length)&&Ne.getStart()!==V.pos&&(de=Math.min(de,Dl(Ne.jsDoc).getStart()))}T(de,ue),(Wp(V)||m9(V))&&T(de+1,ue-1),y=V;break}if(W===I.length-1)break e}}return m;function T(I,W){if(I!==W){const O=R0(I,W);(!m||!IF(O,m.textSpan)&&NTe(O,t))&&(m={textSpan:O,...m&&{parent:m}})}}function D(I,W){T(I,W);let O=I;for(;r.text.charCodeAt(O)===47;)O++;T(O,W)}}function imt(t,r,s){return ce.assert(s.pos<=r),rD===t.readonlyToken||D.kind===148||D===t.questionToken||D.kind===58),T=dV(y,({kind:D})=>D===23||D===168||D===24);return[s,yue(pV(T,({kind:D})=>D===59)),m]}if(Np(t)){const s=dV(t.getChildren(),T=>T===t.name||ni(t.modifiers,T)),l=((r=s[0])==null?void 0:r.kind)===327?s[0]:void 0,m=l?s.slice(1):s,y=pV(m,({kind:T})=>T===59);return l?[l,yue(y)]:y}if(Pu(t)){const s=dV(t.getChildren(),m=>m===t.dotDotDotToken||m===t.name),l=dV(s,m=>m===s[0]||m===t.questionToken);return pV(l,({kind:m})=>m===64)}return ym(t)?pV(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function dV(t,r){const s=[];let l;for(const m of t)r(m)?(l=l||[],l.push(m)):(l&&(s.push(yue(l)),l=void 0),s.push(m));return l&&s.push(yue(l)),s}function pV(t,r,s=!0){if(t.length<2)return t;const l=Ho(t,r);if(l===-1)return t;const m=t.slice(0,l),y=t[l],T=yl(t),D=s&&T.kind===27,I=t.slice(l+1,D?t.length-1:void 0),W=uN([m.length?yue(m):void 0,y,I.length?yue(I):void 0]);return D?W.concat(T):W}function yue(t){return ce.assertGreaterThanOrEqual(t.length,1),T1(DP.createSyntaxList(t),t[0].pos,yl(t).end)}function omt(t){const r=t&&t.kind;return r===19||r===23||r===21||r===286}function amt(t){const r=t&&t.kind;return r===20||r===24||r===22||r===287}function qQe(t,r){switch(r.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(r.getStart());default:return r.getEnd()}}var KQe,Mke=G({"src/services/smartSelection.ts"(){El(),KQe=dA(Fv,kh)}}),L9e={};Oe(L9e,{getSmartSelectionRange:()=>rmt});var XQe=G({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Mke()}});function O9e(t,r,s){const l=F9e(t,r,s);if(l!=="")return l;const m=r3(r);return m&32?Vm(r,231)?"local class":"class":m&384?"enum":m&524288?"type":m&64?"interface":m&262144?"type parameter":m&8?"enum member":m&2097152?"alias":m&1536?"module":l}function F9e(t,r,s){const l=t.getRootSymbols(r);if(l.length===1&&Dl(l).flags&8192&&t.getTypeOfSymbolAtLocation(r,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(s.kind===110&&Nr(s)||kS(s))return"parameter";const m=r3(r);if(m&3)return QW(r)?"parameter":r.valueDeclaration&&h7(r.valueDeclaration)?"const":r.valueDeclaration&&T9(r.valueDeclaration)?"using":r.valueDeclaration&&$2(r.valueDeclaration)?"await using":Ot(r.declarations,eSe)?"let":Lke(r)?"local var":"var";if(m&16)return Lke(r)?"local function":"function";if(m&32768)return"getter";if(m&65536)return"setter";if(m&8192)return"method";if(m&16384)return"constructor";if(m&131072)return"index";if(m&4){if(m&33554432&&r.links.checkFlags&6){const y=Ot(t.getRootSymbols(r),T=>{if(T.getFlags()&98311)return"property"});return y||(t.getTypeOfSymbolAtLocation(r,s).getCallSignatures().length?"method":"property")}return"property"}return""}function YQe(t){if(t.declarations&&t.declarations.length){const[r,...s]=t.declarations,l=Nt(s)&&XZ(r)&>(s,y=>!XZ(y))?8192:0,m=$$(r,l);if(m)return m.split(",")}return[]}function QQe(t,r){if(!r)return"";const s=new Set(YQe(r));if(r.flags&2097152){const l=t.getAliasedSymbol(r);l!==r&&Ot(YQe(l),m=>{s.add(m)})}return r.flags&16777216&&s.add("optional"),s.size>0?oc(s.values()).join(","):""}function ZQe(t,r,s,l,m,y,T,D){var I;const W=[];let O=[],V=[];const ee=r3(r);let te=T&1?F9e(t,r,m):"",oe=!1;const de=m.kind===110&&Ade(m)||kS(m);let ue,Ne,Be=!1;if(m.kind===110&&!de)return{displayParts:[hE(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(te!==""||ee&32||ee&2097152){if(te==="getter"||te==="setter"){const lt=lr(r.declarations,zt=>zt.name===m);if(lt)switch(lt.kind){case 177:te="getter";break;case 178:te="setter";break;case 172:te="accessor";break;default:ce.assertNever(lt)}else te="property"}let Ye;if(y??(y=de?t.getTypeAtLocation(m):t.getTypeOfSymbolAtLocation(r,m)),m.parent&&m.parent.kind===211){const lt=m.parent.name;(lt===m||lt&<.getFullWidth()===0)&&(m=m.parent)}let ut;if(IN(m)?ut=m:(Bse(m)||zse(m)||m.parent&&(Y1(m.parent)||Hm(m.parent))&&S_(r.valueDeclaration))&&(ut=m.parent),ut){Ye=t.getResolvedSignature(ut);const lt=ut.kind===214||el(ut)&&ut.expression.kind===108,zt=lt?y.getConstructSignatures():y.getCallSignatures();if(Ye&&!ni(zt,Ye.target)&&!ni(zt,Ye)&&(Ye=zt.length?zt[0]:void 0),Ye){switch(lt&&ee&32?(te="constructor",_t(y.symbol,te)):ee&2097152?(te="alias",Dt(te),W.push($h()),lt&&(Ye.flags&4&&(W.push(hE(128)),W.push($h())),W.push(hE(105)),W.push($h())),ke(r)):_t(r,te),te){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":W.push(cT(59)),W.push($h()),!(ji(y)&16)&&y.symbol&&(Oi(W,ZW(t,y.symbol,l,void 0,5)),W.push(lS())),lt&&(Ye.flags&4&&(W.push(hE(128)),W.push($h())),W.push(hE(105)),W.push($h())),Ft(Ye,zt,262144);break;default:Ft(Ye,zt)}oe=!0,Be=zt.length>1}}else if(SZ(m)&&!(ee&98304)||m.kind===137&&m.parent.kind===176){const lt=m.parent;if(r.declarations&&lr(r.declarations,Wt=>Wt===(m.kind===137?lt.parent:lt))){const Wt=lt.kind===176?y.getNonNullableType().getConstructSignatures():y.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(lt)?Ye=Wt[0]:Ye=t.getSignatureFromDeclaration(lt),lt.kind===176?(te="constructor",_t(y.symbol,te)):_t(lt.kind===179&&!(y.symbol.flags&2048||y.symbol.flags&4096)?y.symbol:r,te),Ye&&Ft(Ye,Wt),oe=!0,Be=Wt.length>1}}}if(ee&32&&!oe&&!de&&(Le(),Vm(r,231)?Dt("local class"):W.push(hE(86)),W.push($h()),ke(r),it(r,s)),ee&64&&T&2&&(pt(),W.push(hE(120)),W.push($h()),ke(r),it(r,s)),ee&524288&&T&2&&(pt(),W.push(hE(156)),W.push($h()),ke(r),it(r,s),W.push($h()),W.push(H3(64)),W.push($h()),Oi(W,GZ(t,m.parent&&CN(m.parent)?t.getTypeAtLocation(m.parent):t.getDeclaredTypeOfSymbol(r),l,8388608))),ee&384&&(pt(),gt(r.declarations,Ye=>Ih(Ye)&&gP(Ye))&&(W.push(hE(87)),W.push($h())),W.push(hE(94)),W.push($h()),ke(r)),ee&1536&&!de){pt();const Ye=Vm(r,267),ut=Ye&&Ye.name&&Ye.name.kind===80;W.push(hE(ut?145:144)),W.push($h()),ke(r)}if(ee&262144&&T&2)if(pt(),W.push(cT(21)),W.push(RA("type parameter")),W.push(cT(22)),W.push($h()),ke(r),r.parent)ht(),ke(r.parent,l),it(r.parent,l);else{const Ye=Vm(r,168);if(Ye===void 0)return ce.fail();const ut=Ye.parent;if(ut)if(S_(ut)){ht();const lt=t.getSignatureFromDeclaration(ut);ut.kind===180?(W.push(hE(105)),W.push($h())):ut.kind!==179&&ut.name&&ke(ut.symbol),Oi(W,Xge(t,lt,s,32))}else mg(ut)&&(ht(),W.push(hE(156)),W.push($h()),ke(ut.symbol),it(ut.symbol,s))}if(ee&8){te="enum member",_t(r,"enum member");const Ye=(I=r.declarations)==null?void 0:I[0];if((Ye==null?void 0:Ye.kind)===306){const ut=t.getConstantValue(Ye);ut!==void 0&&(W.push($h()),W.push(H3(64)),W.push($h()),W.push(C1(ZU(ut),typeof ut=="number"?7:8)))}}if(r.flags&2097152){if(pt(),!oe||O.length===0&&V.length===0){const Ye=t.getAliasedSymbol(r);if(Ye!==r&&Ye.declarations&&Ye.declarations.length>0){const ut=Ye.declarations[0],lt=o_(ut);if(lt&&!oe){const zt=iY(ut)&&il(ut,2),Wt=r.name!=="default"&&!zt,tt=ZQe(t,Ye,ns(ut),ut,lt,y,T,Wt?r:Ye);W.push(...tt.displayParts),W.push(lS()),ue=tt.documentation,Ne=tt.tags}else ue=Ye.getContextualDocumentationComment(ut,t),Ne=Ye.getJsDocTags(t)}}if(r.declarations)switch(r.declarations[0].kind){case 270:W.push(hE(95)),W.push($h()),W.push(hE(145));break;case 277:W.push(hE(95)),W.push($h()),W.push(hE(r.declarations[0].isExportEquals?64:90));break;case 281:W.push(hE(95));break;default:W.push(hE(102))}W.push($h()),ke(r),Ot(r.declarations,Ye=>{if(Ye.kind===271){const ut=Ye;if(qM(ut))W.push($h()),W.push(H3(64)),W.push($h()),W.push(hE(149)),W.push(cT(21)),W.push(C1(Yv(S7(ut)),8)),W.push(cT(22));else{const lt=t.getSymbolAtLocation(ut.moduleReference);lt&&(W.push($h()),W.push(H3(64)),W.push($h()),ke(lt,l))}return!0}})}if(!oe)if(te!==""){if(y){if(de?(pt(),W.push(hE(110))):_t(r,te),te==="property"||te==="accessor"||te==="getter"||te==="setter"||te==="JSX attribute"||ee&3||te==="local var"||te==="index"||te==="using"||te==="await using"||de){if(W.push(cT(59)),W.push($h()),y.symbol&&y.symbol.flags&262144&&te!=="index"){const Ye=w6(ut=>{const lt=t.typeParameterToDeclaration(y,l,W9e);Ve().writeNode(4,lt,ns(Il(l)),ut)});Oi(W,Ye)}else Oi(W,GZ(t,y,l));if(uk(r)&&r.links.target&&uk(r.links.target)&&r.links.target.links.tupleLabelDeclaration){const Ye=r.links.target.links.tupleLabelDeclaration;ce.assertNode(Ye.name,An),W.push($h()),W.push(cT(21)),W.push(RA(ec(Ye.name))),W.push(cT(22))}}else if(ee&16||ee&8192||ee&16384||ee&131072||ee&98304||te==="method"){const Ye=y.getNonNullableType().getCallSignatures();Ye.length&&(Ft(Ye[0],Ye),Be=Ye.length>1)}}}else te=O9e(t,r,m);if(O.length===0&&!Be&&(O=r.getContextualDocumentationComment(l,t)),O.length===0&&ee&4&&r.parent&&r.declarations&&Ot(r.parent.declarations,Ye=>Ye.kind===312))for(const Ye of r.declarations){if(!Ye.parent||Ye.parent.kind!==226)continue;const ut=t.getSymbolAtLocation(Ye.parent.right);if(ut&&(O=ut.getDocumentationComment(t),V=ut.getJsDocTags(t),O.length>0))break}if(O.length===0&&An(m)&&r.valueDeclaration&&ym(r.valueDeclaration)){const Ye=r.valueDeclaration,ut=Ye.parent;if(An(Ye.name)&&E1(ut)){const lt=aC(Ye.name),zt=t.getTypeAtLocation(ut);O=Yr(zt.isUnion()?zt.types:[zt],Wt=>{const tt=Wt.getProperty(lt);return tt?tt.getDocumentationComment(t):void 0})||Zn}}return V.length===0&&!Be&&(V=r.getContextualJsDocTags(l,t)),O.length===0&&ue&&(O=ue),V.length===0&&Ne&&(V=Ne),{displayParts:W,documentation:O,symbolKind:te,tags:V.length===0?void 0:V};function Ve(){return GW()}function pt(){W.length&&W.push(lS()),Le()}function Le(){D&&(Dt("alias"),W.push($h()))}function ht(){W.push($h()),W.push(hE(103)),W.push($h())}function ke(Ye,ut){let lt;D&&Ye===r&&(Ye=D),te==="index"&&(lt=t.getIndexInfosOfIndexSymbol(Ye));let zt=[];Ye.flags&131072&<?(Ye.parent&&(zt=ZW(t,Ye.parent)),zt.push(cT(23)),lt.forEach((Wt,tt)=>{zt.push(...GZ(t,Wt.keyType)),tt!==lt.length-1&&(zt.push($h()),zt.push(cT(52)),zt.push($h()))}),zt.push(cT(24))):zt=ZW(t,Ye,ut||s,void 0,7),Oi(W,zt),r.flags&16777216&&W.push(cT(58))}function _t(Ye,ut){pt(),ut&&(Dt(ut),Ye&&!gt(Ye.declarations,lt=>ph(lt)||(Dm(lt)||B0(lt))&&!lt.name)&&(W.push($h()),ke(Ye)))}function Dt(Ye){switch(Ye){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":W.push(ace(Ye));return;default:W.push(cT(21)),W.push(ace(Ye)),W.push(cT(22));return}}function Ft(Ye,ut,lt=0){Oi(W,Xge(t,Ye,l,lt|32)),ut.length>1&&(W.push($h()),W.push(cT(21)),W.push(H3(40)),W.push(C1((ut.length-1).toString(),7)),W.push($h()),W.push(RA(ut.length===2?"overload":"overloads")),W.push(cT(22))),O=Ye.getDocumentationComment(t),V=Ye.getJsDocTags(),ut.length>1&&O.length===0&&V.length===0&&(O=ut[0].getDocumentationComment(t),V=ut[0].getJsDocTags().filter(zt=>zt.name!=="deprecated"))}function it(Ye,ut){const lt=w6(zt=>{const Wt=t.symbolToTypeParameterDeclarations(Ye,ut,W9e);Ve().writeList(53776,Wt,ns(Il(ut)),zt)});Oi(W,lt)}}function eZe(t,r,s,l,m,y=z3(m),T){return ZQe(t,r,s,l,m,void 0,y,T)}function Lke(t){return t.parent?!1:Ot(t.declarations,r=>{if(r.kind===218)return!0;if(r.kind!==260&&r.kind!==262)return!1;for(let s=r.parent;!JM(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var W9e,W6=G({"src/services/symbolDisplay.ts"(){El(),W9e=70246400}}),I4={};Oe(I4,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>eZe,getSymbolKind:()=>O9e,getSymbolModifiers:()=>QQe});var tZe=G({"src/services/_namespaces/ts.SymbolDisplay.ts"(){W6()}});function Oke(t){const r=t.__pos;return ce.assert(typeof r=="number"),r}function Fke(t,r){ce.assert(typeof r=="number"),t.__pos=r}function Wke(t){const r=t.__end;return ce.assert(typeof r=="number"),r}function Bke(t,r){ce.assert(typeof r=="number"),t.__end=r}function nZe(t,r){return ep(t,r,!1,!0)}function vue(t,r){let s=r;for(;s0?1:0;let ee=mP(BN(t,W)+V,t);return ee=nZe(t.text,ee),mP(BN(t,ee),t)}function gB(t,r,s){const{end:l}=r,{trailingTriviaOption:m}=s;if(m===2){const y=Nx(t.text,l);if(y){const T=BN(t,r.end);for(const D of y){if(D.kind===2||BN(t,D.pos)>T)break;if(BN(t,D.end)>T)return ep(t.text,D.end,!0,!0)}}}}function UF(t,r,s){var l;const{end:m}=r,{trailingTriviaOption:y}=s;if(y===0)return m;if(y===1){const I=Hi(Nx(t.text,m),CS(t.text,m)),W=(l=I==null?void 0:I[I.length-1])==null?void 0:l.end;return W||m}const T=gB(t,r,s);if(T)return T;const D=ep(t.text,m,!0);return D!==m&&(y===2||Ff(t.text.charCodeAt(D-1)))?D:m}function zke(t,r){return!!r&&!!t.parent&&(r.kind===28||r.kind===27&&t.parent.kind===210)}function smt(t){return Dm(t)||b0(t)}function cmt(t){if(t.kind!==219)return t;const r=t.parent.kind===172?t.parent:t.parent.parent;return r.jsDoc=t.jsDoc,r}function B9e(t,r){if(t.kind===r.kind)switch(t.kind){case 348:{const s=t,l=r;return An(s.name)&&An(l.name)&&s.name.escapedText===l.name.escapedText?be.createJSDocParameterTag(void 0,l.name,!1,l.typeExpression,l.isNameFirst,s.comment):void 0}case 349:return be.createJSDocReturnTag(void 0,r.typeExpression,t.comment);case 351:return be.createJSDocTypeTag(void 0,r.typeExpression,t.comment)}}function z9e(t,r){return ep(t.text,iO(t,r,{leadingTriviaOption:1}),!1,!0)}function lmt(t,r,s,l){const m=z9e(t,l);if(s===void 0||mv(UF(t,r,{}),m,t))return m;const y=T0(l.getStart(t),t);if(zke(r,y)){const T=T0(r.getStart(t),t);if(zke(s,T)){const D=ep(t.text,y.getEnd(),!0,!0);if(mv(T.getStart(t),y.getStart(t),t))return Ff(t.text.charCodeAt(D-1))?D-1:D;if(Ff(t.text.charCodeAt(D)))return D}}return m}function Gke(t,r){const s=Wm(t,19,r),l=Wm(t,20,r);return[s==null?void 0:s.end,l==null?void 0:l.end]}function bue(t){return Wd(t)?t.properties:t.members}function G9e(t,r){for(let s=r.length-1;s>=0;s--){const{span:l,newText:m}=r[s];t=`${t.substring(0,l.start)}${m}${t.substring(K1(l))}`}return t}function jke(t){return ep(t,0)===t.length}function Vke(t){const r=ia(t,Vke,Uke,rZe,Vke),s=rh(r)?r:Object.create(r);return T1(s,Oke(t),Wke(t)),s}function rZe(t,r,s,l,m){const y=Fa(t,r,s,l,m);if(!y)return y;ce.assert(t);const T=y===t?be.createNodeArray(y.slice(0)):y;return T1(T,Oke(t),Wke(t)),T}function iZe(t){let r=0;const s=wie(t),l=tt=>{tt&&Fke(tt,r)},m=tt=>{tt&&Bke(tt,r)},y=tt=>{tt&&Fke(tt,r)},T=tt=>{tt&&Bke(tt,r)},D=tt=>{tt&&Fke(tt,r)},I=tt=>{tt&&Bke(tt,r)};function W(tt,Mn){if(Mn||!jke(tt)){r=s.getTextPos();let kn=0;for(;UD(tt.charCodeAt(tt.length-kn-1));)kn++;r-=kn}}function O(tt){s.write(tt),W(tt,!1)}function V(tt){s.writeComment(tt)}function ee(tt){s.writeKeyword(tt),W(tt,!1)}function te(tt){s.writeOperator(tt),W(tt,!1)}function oe(tt){s.writePunctuation(tt),W(tt,!1)}function de(tt){s.writeTrailingSemicolon(tt),W(tt,!1)}function ue(tt){s.writeParameter(tt),W(tt,!1)}function Ne(tt){s.writeProperty(tt),W(tt,!1)}function Be(tt){s.writeSpace(tt),W(tt,!1)}function Ve(tt){s.writeStringLiteral(tt),W(tt,!1)}function pt(tt,Mn){s.writeSymbol(tt,Mn),W(tt,!1)}function Le(tt){s.writeLine(tt)}function ht(){s.increaseIndent()}function ke(){s.decreaseIndent()}function _t(){return s.getText()}function Dt(tt){s.rawWrite(tt),W(tt,!1)}function Ft(tt){s.writeLiteral(tt),W(tt,!0)}function it(){return s.getTextPos()}function Ye(){return s.getLine()}function ut(){return s.getColumn()}function lt(){return s.getIndent()}function zt(){return s.isAtStartOfLine()}function Wt(){s.clear(),r=0}return{onBeforeEmitNode:l,onAfterEmitNode:m,onBeforeEmitNodeArray:y,onAfterEmitNodeArray:T,onBeforeEmitToken:D,onAfterEmitToken:I,write:O,writeComment:V,writeKeyword:ee,writeOperator:te,writePunctuation:oe,writeTrailingSemicolon:de,writeParameter:ue,writeProperty:Ne,writeSpace:Be,writeStringLiteral:Ve,writeSymbol:pt,writeLine:Le,increaseIndent:ht,decreaseIndent:ke,getText:_t,rawWrite:Dt,writeLiteral:Ft,getTextPos:it,getLine:Ye,getColumn:ut,getIndent:lt,isAtStartOfLine:zt,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Wt}}function oZe(t){let r;for(const W of t.statements)if(qC(W))r=W;else break;let s=0;const l=t.text;if(r)return s=r.end,I(),s;const m=tR(l);m!==void 0&&(s=m.length,I());const y=CS(l,s);if(!y)return s;let T,D;for(const W of y){if(W.kind===3){if(h9(l,W.pos)){T={range:W,pinnedOrTripleSlash:!0};continue}}else if(nY(l,W.pos,W.end)){T={range:W,pinnedOrTripleSlash:!0};continue}if(T){if(T.pinnedOrTripleSlash)break;const O=t.getLineAndCharacterOfPosition(W.pos).line,V=t.getLineAndCharacterOfPosition(T.range.end).line;if(O>=V+2)break}if(t.statements.length){D===void 0&&(D=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const O=t.getLineAndCharacterOfPosition(W.end).line;if(D(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(T0e||{}),mV=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(mV||{}),Hq={leadingTriviaOption:0,trailingTriviaOption:0},S0e=class H1t{constructor(r,s){this.newLineCharacter=r,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(r){return new H1t(NP(r.host,r.formatContext.options),r.formatContext)}static with(r,s){const l=H1t.fromContext(r);return s(l),l.getChanges()}pushRaw(r,s){ce.assertEqual(r.fileName,s.fileName);for(const l of s.textChanges)this.changes.push({kind:3,sourceFile:r,text:l.newText,range:PZ(l.span)})}deleteRange(r,s){this.changes.push({kind:0,sourceFile:r,range:s})}delete(r,s){this.deletedNodes.push({sourceFile:r,node:s})}deleteNode(r,s,l={leadingTriviaOption:1}){this.deleteRange(r,VR(r,s,s,l))}deleteNodes(r,s,l={leadingTriviaOption:1},m){for(const y of s){const T=iO(r,y,l,m),D=UF(r,y,l);this.deleteRange(r,{pos:T,end:D}),m=!!gB(r,y,l)}}deleteModifier(r,s){this.deleteRange(r,{pos:s.getStart(r),end:ep(r.text,s.end,!0)})}deleteNodeRange(r,s,l,m={leadingTriviaOption:1}){const y=iO(r,s,m),T=UF(r,l,m);this.deleteRange(r,{pos:y,end:T})}deleteNodeRangeExcludingEnd(r,s,l,m={leadingTriviaOption:1}){const y=iO(r,s,m),T=l===void 0?r.text.length:iO(r,l,m);this.deleteRange(r,{pos:y,end:T})}replaceRange(r,s,l,m={}){this.changes.push({kind:1,sourceFile:r,range:s,options:m,node:l})}replaceNode(r,s,l,m=Hq){this.replaceRange(r,VR(r,s,s,m),l,m)}replaceNodeRange(r,s,l,m,y=Hq){this.replaceRange(r,VR(r,s,l,y),m,y)}replaceRangeWithNodes(r,s,l,m={}){this.changes.push({kind:2,sourceFile:r,range:s,options:m,nodes:l})}replaceNodeWithNodes(r,s,l,m=Hq){this.replaceRangeWithNodes(r,VR(r,s,s,m),l,m)}replaceNodeWithText(r,s,l){this.replaceRangeWithText(r,VR(r,s,s,Hq),l)}replaceNodeRangeWithNodes(r,s,l,m,y=Hq){this.replaceRangeWithNodes(r,VR(r,s,l,y),m,y)}nodeHasTrailingComment(r,s,l=Hq){return!!gB(r,s,l)}nextCommaToken(r,s){const l=Cj(s,s.parent,r);return l&&l.kind===28?l:void 0}replacePropertyAssignment(r,s,l){const m=this.nextCommaToken(r,s)?"":","+this.newLineCharacter;this.replaceNode(r,s,l,{suffix:m})}insertNodeAt(r,s,l,m={}){this.replaceRange(r,tv(s),l,m)}insertNodesAt(r,s,l,m={}){this.replaceRangeWithNodes(r,tv(s),l,m)}insertNodeAtTopOfFile(r,s,l){this.insertAtTopOfFile(r,s,l)}insertNodesAtTopOfFile(r,s,l){this.insertAtTopOfFile(r,s,l)}insertAtTopOfFile(r,s,l){const m=oZe(r),y={prefix:m===0?void 0:this.newLineCharacter,suffix:(Ff(r.text.charCodeAt(m))?"":this.newLineCharacter)+(l?this.newLineCharacter:"")};ls(s)?this.insertNodesAt(r,m,s,y):this.insertNodeAt(r,m,s,y)}insertNodesAtEndOfFile(r,s,l){this.insertAtEndOfFile(r,s,l)}insertAtEndOfFile(r,s,l){const m=r.end+1,y={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(l?this.newLineCharacter:"")};this.insertNodesAt(r,m,s,y)}insertStatementsInNewFile(r,s,l){this.newFileChanges||(this.newFileChanges=zg()),this.newFileChanges.add(r,{oldFile:l,statements:s})}insertFirstParameter(r,s,l){const m=pp(s);m?this.insertNodeBefore(r,m,l):this.insertNodeAt(r,s.pos,l)}insertNodeBefore(r,s,l,m=!1,y={}){this.insertNodeAt(r,iO(r,s,y),l,this.getOptionsForInsertNodeBefore(s,l,m))}insertNodesBefore(r,s,l,m=!1,y={}){this.insertNodesAt(r,iO(r,s,y),l,this.getOptionsForInsertNodeBefore(s,Dl(l),m))}insertModifierAt(r,s,l,m={}){this.insertNodeAt(r,s,be.createToken(l),m)}insertModifierBefore(r,s,l){return this.insertModifierAt(r,l.getStart(r),s,{suffix:" "})}insertCommentBeforeLine(r,s,l,m){const y=mP(s,r),T=M6(r.text,y),D=aZe(r,T),I=qse(r,D?T:l),W=r.text.slice(y,T),O=`${D?"":this.newLineCharacter}//${m}${this.newLineCharacter}${W}`;this.insertText(r,I.getStart(r),O)}insertJsdocCommentBefore(r,s,l){const m=s.getStart(r);if(s.jsDoc)for(const D of s.jsDoc)this.deleteRange(r,{pos:wA(D.getStart(r),r),end:UF(r,D,{})});const y=Rj(r.text,m-1),T=r.text.slice(y,m);this.insertNodeAt(r,m,l,{suffix:this.newLineCharacter+T})}createJSDocText(r,s){const l=ea(s.jsDoc,y=>As(y.comment)?be.createJSDocText(y.comment):y.comment),m=Vb(s.jsDoc);return m&&mv(m.pos,m.end,r)&&Nt(l)===0?void 0:be.createNodeArray(Zi(l,be.createJSDocText(` +`;return m+=l.finalLexState,m}},Wqe=class extends bDe{constructor(t,r,s){super(t),this.logger=r,this.host=s,this.logPerformance=!1}forwardJSONCall(t,r){return gDe(this.logger,t,r,this.logPerformance)}resolveModuleName(t,r,s){return this.forwardJSONCall(`resolveModuleName('${t}')`,()=>{const l=JSON.parse(s),m=a4(r,hf(t),l,this.host);let y=m.resolvedModule?m.resolvedModule.resolvedFileName:void 0;return m.resolvedModule&&m.resolvedModule.extension!==".ts"&&m.resolvedModule.extension!==".tsx"&&m.resolvedModule.extension!==".d.ts"&&(y=void 0),{resolvedFileName:y,failedLookupLocations:m.failedLookupLocations,affectingLocations:m.affectingLocations}})}resolveTypeReferenceDirective(t,r,s){return this.forwardJSONCall(`resolveTypeReferenceDirective(${t})`,()=>{const l=JSON.parse(s),m=vQ(r,hf(t),l,this.host);return{resolvedFileName:m.resolvedTypeReferenceDirective?m.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:m.resolvedTypeReferenceDirective?m.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:m.failedLookupLocations}})}getPreProcessedFileInfo(t,r){return this.forwardJSONCall(`getPreProcessedFileInfo('${t}')`,()=>{const s=iCe(RZ(r),!0,!0);return{referencedFiles:this.convertFileReferences(s.referencedFiles),importedFiles:this.convertFileReferences(s.importedFiles),ambientExternalModules:s.ambientExternalModules,isLibFile:s.isLibFile,typeReferenceDirectives:this.convertFileReferences(s.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(s.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(t){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${t}')`,()=>{const r=JSON.parse(t);return qpe(r,this.host)})}convertFileReferences(t){if(!t)return;const r=[];for(const s of t)r.push({path:hf(s.fileName),position:s.pos,length:s.end-s.pos});return r}getTSConfigFileInfo(t,r){return this.forwardJSONCall(`getTSConfigFileInfo('${t}')`,()=>{const s=cF(t,RZ(r)),l=hf(t),m=Qoe(s,this.host,qc(l),{},l);return{options:m.options,typeAcquisition:m.typeAcquisition,files:m.fileNames,raw:m.raw,errors:hDe([...s.parseDiagnostics,...m.errors],`\r +`)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>sle())}discoverTypings(t){const r=_v(!1);return this.forwardJSONCall("discoverTypings()",()=>{const s=JSON.parse(t);return this.safeList===void 0&&(this.safeList=EF.loadSafeList(this.host,_h(s.safeListPath,s.safeListPath,r))),EF.discoverTypings(this.host,l=>this.logger.log(l),s.fileNames,_h(s.projectRootPath,s.projectRootPath,r),this.safeList,s.packageNameToTypingLocation,s.typeAcquisition,s.unresolvedImports,s.typesRegistry,NA)})}},Bqe=class{constructor(){this._shims=[]}getServicesVersion(){return fle}createLanguageServiceShim(t){try{this.documentRegistry===void 0&&(this.documentRegistry=j8e(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));const r=new hye(t),s=kqe(r,this.documentRegistry,!1);return new AOe(this,t,s)}catch(r){throw Cee(t,r),r}}createClassifierShim(t){try{return new Fqe(this,t)}catch(r){throw Cee(t,r),r}}createCoreServicesShim(t){try{const r=new vDe(t);return new Wqe(this,t,r)}catch(r){throw Cee(t,r),r}}close(){g_(this._shims),this.documentRegistry=void 0}registerShim(t){this._shims.push(t)}unregisterShim(t){for(let r=0;rl){const V=T0(s.pos,t);if(!V||t.getLineAndCharacterOfPosition(V.getEnd()).line!==l)return;s=V}if(s.flags&33554432)return;return O(s);function m(V,ee){const te=I3(V)?ra(V.modifiers,Qf):void 0,oe=te?ep(t.text,te.end):V.getStart(t);return R0(oe,(ee||V).getEnd())}function y(V,ee){return m(V,Aj(ee,ee.parent,t))}function T(V,ee){return V&&l===t.getLineAndCharacterOfPosition(V.getStart(t)).line?O(V):O(ee)}function D(V,ee,te){if(V){const oe=V.indexOf(ee);if(oe>=0){let de=oe,ue=oe+1;for(;de>0&&te(V[de-1]);)de--;for(;ue0)return O(Mn.declarations[0])}else return O(tt.initializer)}function Le(tt){if(tt.initializer)return pt(tt);if(tt.condition)return m(tt.condition);if(tt.incrementor)return m(tt.incrementor)}function ht(tt){const Mn=Ot(tt.elements,kn=>kn.kind!==232?kn:void 0);return Mn?O(Mn):tt.parent.kind===208?m(tt.parent):ee(tt.parent)}function ke(tt){ce.assert(tt.kind!==207&&tt.kind!==206);const Mn=tt.kind===209?tt.elements:tt.properties,kn=Ot(Mn,cr=>cr.kind!==232?cr:void 0);return kn?O(kn):m(tt.parent.kind===226?tt.parent:tt)}function _t(tt){switch(tt.parent.kind){case 266:const Mn=tt.parent;return T(T0(tt.pos,t,tt.parent),Mn.members.length?Mn.members[0]:Mn.getLastToken(t));case 263:const kn=tt.parent;return T(T0(tt.pos,t,tt.parent),kn.members.length?kn.members[0]:kn.getLastToken(t));case 269:return T(tt.parent.parent,tt.parent.clauses[0])}return O(tt.parent)}function Dt(tt){switch(tt.parent.kind){case 268:if(kR(tt.parent.parent)!==1)return;case 266:case 263:return m(tt);case 241:if(JM(tt.parent))return m(tt);case 299:return O(Yf(tt.parent.statements));case 269:const Mn=tt.parent,kn=Yf(Mn.clauses);return kn?O(Yf(kn.statements)):void 0;case 206:const cr=tt.parent;return O(Yf(cr.elements)||cr);default:if(OR(tt.parent)){const un=tt.parent;return m(Yf(un.properties)||un)}return O(tt.parent)}}function Ft(tt){switch(tt.parent.kind){case 207:const Mn=tt.parent;return m(Yf(Mn.elements)||Mn);default:if(OR(tt.parent)){const kn=tt.parent;return m(Yf(kn.elements)||kn)}return O(tt.parent)}}function it(tt){return tt.parent.kind===246||tt.parent.kind===213||tt.parent.kind===214?I(tt):tt.parent.kind===217?W(tt):O(tt.parent)}function Ye(tt){switch(tt.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 I(tt);default:return O(tt.parent)}}function ut(tt){return S_(tt.parent)||tt.parent.kind===303||tt.parent.kind===169?I(tt):O(tt.parent)}function lt(tt){return tt.parent.kind===216?W(tt):O(tt.parent)}function zt(tt){return tt.parent.kind===246?y(tt,tt.parent.expression):O(tt.parent)}function Wt(tt){return tt.parent.kind===250?W(tt):O(tt.parent)}}}var Fut=G({"src/services/breakpoints.ts"(){El()}}),Aq={};Oe(Aq,{spanInSourceFileAtLocation:()=>Out});var zqe=G({"src/services/_namespaces/ts.BreakpointResolver.ts"(){Fut()}});function Cq(t){return(Dm(t)||B0(t))&&Xv(t)}function Dee(t){return(Dm(t)||ph(t)||B0(t))&&ff(t.parent)&&t===t.parent.initializer&&An(t.parent.name)&&!!(qD(t.parent)&2)}function COe(t){return tl(t)||xp(t)||b0(t)||Dm(t)||Kc(t)||B0(t)||nu(t)||em(t)||Jh(t)||tm(t)||Ep(t)}function Hj(t){return tl(t)||xp(t)&&An(t.name)||b0(t)||Kc(t)||nu(t)||em(t)||Jh(t)||tm(t)||Ep(t)||Cq(t)||Dee(t)}function Gqe(t){return tl(t)?t:Xv(t)?t.name:Dee(t)?t.parent.name:ce.checkDefined(t.modifiers&&lr(t.modifiers,jqe))}function jqe(t){return t.kind===90}function DOe(t,r){const s=Gqe(r);return s&&t.getSymbolAtLocation(s)}function Vqe(t,r){if(tl(r))return{text:r.fileName,pos:0,end:0};if((b0(r)||Kc(r))&&!Xv(r)){const m=r.modifiers&&lr(r.modifiers,jqe);if(m)return{text:"default",pos:m.getStart(),end:m.getEnd()}}if(nu(r)){const m=r.getSourceFile(),y=ep(m.text,Db(r).pos),T=y+6,D=t.getTypeChecker(),I=D.getSymbolAtLocation(r.parent);return{text:`${I?`${D.symbolToString(I,r.parent)} `:""}static {}`,pos:y,end:T}}const s=Dee(r)?r.parent.name:ce.checkDefined(o_(r),"Expected call hierarchy item to have a name");let l=An(s)?ec(s):Qv(s)?s.text:am(s)&&Qv(s.expression)?s.expression.text:void 0;if(l===void 0){const m=t.getTypeChecker(),y=m.getSymbolAtLocation(s);y&&(l=m.symbolToString(y,r))}if(l===void 0){const m=jQ();l=qU(y=>m.writeNode(4,r,r.getSourceFile(),y))}return{text:l,pos:s.getStart(),end:s.getEnd()}}function SDe(t){var r,s;if(Dee(t))return z0(t.parent.parent.parent.parent)&&An(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?(r=Y_e(t.parent))==null?void 0:r.getText():(s=o_(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(z0(t.parent)&&An(t.parent.parent.name))return t.parent.parent.name.getText()}}function IOe(t,r){if(r.body)return r;if(pg(r))return E2(r.parent);if(b0(r)||em(r)){const s=DOe(t,r);return s&&s.valueDeclaration&&J_(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return r}function EDe(t,r){const s=DOe(t,r);let l;if(s&&s.declarations){const m=Cy(s.declarations),y=Vn(s.declarations,I=>({file:I.getSourceFile().fileName,pos:I.pos}));m.sort((I,W)=>Fp(y[I].file,y[W].file)||y[I].pos-y[W].pos);const T=Vn(m,I=>s.declarations[I]);let D;for(const I of T)Hj(I)&&((!D||D.parent!==I.parent||D.end!==I.pos)&&(l=ur(l,I)),D=I)}return l}function xDe(t,r){return nu(r)?r:J_(r)?IOe(t,r)??EDe(t,r)??r:EDe(t,r)??r}function Uqe(t,r){const s=t.getTypeChecker();let l=!1;for(;;){if(Hj(r))return xDe(s,r);if(COe(r)){const m=Kr(r,Hj);return m&&xDe(s,m)}if(vP(r)){if(Hj(r.parent))return xDe(s,r.parent);if(COe(r.parent)){const m=Kr(r.parent,Hj);return m&&xDe(s,m)}return ff(r.parent)&&r.parent.initializer&&Dee(r.parent.initializer)?r.parent.initializer:void 0}if(pg(r))return Hj(r.parent)?r.parent:void 0;if(r.kind===126&&nu(r.parent)){r=r.parent;continue}if(ff(r)&&r.initializer&&Dee(r.initializer))return r.initializer;if(!l){let m=s.getSymbolAtLocation(r);if(m&&(m.flags&2097152&&(m=s.getAliasedSymbol(m)),m.valueDeclaration)){l=!0,r=m.valueDeclaration;continue}}return}}function ADe(t,r){const s=r.getSourceFile(),l=Vqe(t,r),m=SDe(r),y=m4(r),T=$$(r),D=R0(ep(s.text,r.getFullStart(),!1,!0),r.getEnd()),I=R0(l.pos,l.end);return{file:s.fileName,kind:y,kindModifiers:T,name:l.text,containerName:m,span:D,selectionSpan:I}}function Wut(t){return t!==void 0}function But(t){if(t.kind===Wf.EntryKind.Node){const{node:r}=t;if(j$(r,!0,!0)||xF(r,!0,!0)||BJe(r,!0,!0)||Gse(r,!0,!0)||G3(r)||TZ(r)){const s=r.getSourceFile();return{declaration:Kr(r,Hj)||s,range:Y$(r,s)}}}}function Hqe(t){return Im(t.declaration)}function zut(t,r){return{from:t,fromSpans:r}}function Gut(t,r){return zut(ADe(t,r[0].declaration),Vn(r,s=>FR(s.range)))}function jut(t,r,s){if(tl(r)||xp(r)||nu(r))return[];const l=Gqe(r),m=gi(Wf.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),l,0,{use:Wf.FindReferencesUse.References},But),Wut);return m?BD(m,Hqe,y=>Gut(t,y)):[]}function Vut(t,r){function s(m){const y=Hm(m)?m.tag:Y1(m)?m.tagName:Kf(m)||nu(m)?m:m.expression,T=Uqe(t,y);if(T){const D=Y$(y,m.getSourceFile());if(ls(T))for(const I of T)r.push({declaration:I,range:D});else r.push({declaration:T,range:D})}}function l(m){if(m&&!(m.flags&33554432)){if(Hj(m)){if(Jl(m))for(const y of m.members)y.name&&am(y.name)&&l(y.name.expression);return}switch(m.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(m);return;case 216:case 234:l(m.expression);return;case 260:case 169:l(m.name),l(m.initializer);return;case 213:s(m),l(m.expression),Ot(m.arguments,l);return;case 214:s(m),l(m.expression),Ot(m.arguments,l);return;case 215:s(m),l(m.tag),l(m.template);return;case 286:case 285:s(m),l(m.tagName),l(m.attributes);return;case 170:s(m),l(m.expression);return;case 211:case 212:s(m),B_(m,l);break;case 238:l(m.expression);return}rC(m)||B_(m,l)}}return l}function Uut(t,r){Ot(t.statements,r)}function Hut(t,r){!il(t,2)&&t.body&&z0(t.body)&&Ot(t.body.statements,r)}function Jut(t,r,s){const l=IOe(t,r);l&&(Ot(l.parameters,s),s(l.body))}function $ut(t,r){r(t.body)}function qut(t,r){Ot(t.modifiers,r);const s=oC(t);s&&r(s.expression);for(const l of t.members)nx(l)&&Ot(l.modifiers,r),Os(l)?r(l.initializer):pg(l)&&l.body?(Ot(l.parameters,r),r(l.body)):nu(l)&&r(l)}function Kut(t,r){const s=[],l=Vut(t,s);switch(r.kind){case 312:Uut(r,l);break;case 267:Hut(r,l);break;case 262:case 218:case 219:case 174:case 177:case 178:Jut(t.getTypeChecker(),r,l);break;case 263:case 231:qut(r,l);break;case 175:$ut(r,l);break;default:ce.assertNever(r)}return s}function Xut(t,r){return{to:t,fromSpans:r}}function Jj(t,r){return Xut(ADe(t,r[0].declaration),Vn(r,s=>FR(s.range)))}function Yut(t,r){return r.flags&33554432||Jh(r)?[]:BD(Kut(t,r),Hqe,s=>Jj(t,s))}var Jqe=G({"src/services/callHierarchy.ts"(){El()}}),Dq={};Oe(Dq,{createCallHierarchyItem:()=>ADe,getIncomingCalls:()=>jut,getOutgoingCalls:()=>Yut,resolveCallHierarchyDeclaration:()=>Uqe});var kOe=G({"src/services/_namespaces/ts.CallHierarchy.ts"(){Jqe()}}),$qe={};Oe($qe,{TokenEncodingConsts:()=>bOe,TokenModifier:()=>EI,TokenType:()=>MF,getEncodedSemanticClassifications:()=>vOe,getSemanticClassifications:()=>Sqe});var xI=G({"src/services/_namespaces/ts.classifier.v2020.ts"(){sDe()}}),Rd={};Oe(Rd,{v2020:()=>$qe});var POe=G({"src/services/_namespaces/ts.classifier.ts"(){xI()}});function mC(t,r,s){return wOe(t,sB(s),r,void 0,void 0)}function Hc(t,r,s,l,m,y){return wOe(t,sB(s),r,l,sB(m),y)}function NOe(t,r,s,l,m,y){return wOe(t,sB(s),r,l,m&&sB(m),y)}function wOe(t,r,s,l,m,y){return{fixName:t,description:r,changes:s,fixId:l,fixAllDescription:m,commands:y?[y]:void 0}}function up(t){for(const r of t.errorCodes)IDe=void 0,DDe.add(String(r),t);if(t.fixIds)for(const r of t.fixIds)ce.assert(!yye.has(r)),yye.set(r,t)}function Qut(){return IDe??(IDe=oc(DDe.keys()))}function Iq(t,r){const{errorCodes:s}=t;let l=0;for(const y of r)if(ni(s,y.code)&&l++,l>1)break;const m=l<2;return({fixId:y,fixAllDescription:T,...D})=>m?D:{...D,fixId:y,fixAllDescription:T}}function qqe(t){const r=CDe(t),s=DDe.get(String(t.errorCode));return ea(s,l=>Vn(l.getCodeActions(t),Iq(l,r)))}function Sg(t){return yye.get(uc(t.fixId,As)).getAllCodeActions(t)}function GR(t,r){return{changes:t,commands:r}}function ROe(t,r){return{fileName:t,textChanges:r}}function Km(t,r,s){const l=[],m=Hs.ChangeTracker.with(t,y=>LF(t,r,T=>s(y,T,l)));return GR(m,l.length===0?void 0:l)}function LF(t,r,s){for(const l of CDe(t))ni(r,l.code)&&s(l)}function CDe({program:t,sourceFile:r,cancellationToken:s}){return[...t.getSemanticDiagnostics(r,s),...t.getSyntacticDiagnostics(r,s),...tee(r,t,s)]}var DDe,yye,IDe,kDe=G({"src/services/codeFixProvider.ts"(){El(),DDe=zg(),yye=new Map}});function PDe(t,r,s){const l=v0(s)?be.createAsExpression(s.expression,be.createKeywordTypeNode(159)):be.createTypeAssertion(be.createKeywordTypeNode(159),s.expression);t.replaceNode(r,s.expression,l)}function Kqe(t,r){if(!Rs(t))return Kr(bf(t,r),s=>v0(s)||xd(s))}var NDe,wDe,Zut=G({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){El(),hp(),NDe="addConvertToUnknownForNonOverlappingTypes",wDe=[w.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],up({errorCodes:wDe,getCodeActions:function(r){const s=Kqe(r.sourceFile,r.span.start);if(s===void 0)return;const l=Hs.ChangeTracker.with(r,m=>PDe(m,r.sourceFile,s));return[Hc(NDe,l,w.Add_unknown_conversion_for_non_overlapping_types,NDe,w.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[NDe],getAllCodeActions:t=>Km(t,wDe,(r,s)=>{const l=Kqe(s.file,s.start);l&&PDe(r,s.file,l)})})}}),Xqe=G({"src/services/codefixes/addEmptyExportDeclaration.ts"(){El(),hp(),up({errorCodes:[w.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,w.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,w.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(r){const{sourceFile:s}=r,l=Hs.ChangeTracker.with(r,m=>{const y=be.createExportDeclaration(void 0,!1,be.createNamedExports([]),void 0);m.insertNodeAtEndOfScope(s,s,y)});return[mC("addEmptyExportDeclaration",l,w.Add_export_to_make_this_file_into_a_module)]}})}});function Yqe(t,r,s,l){const m=s(y=>RDe(y,t.sourceFile,r,l));return Hc(vye,m,w.Add_async_modifier_to_containing_function,vye,w.Add_all_missing_async_modifiers)}function RDe(t,r,s,l){if(l&&l.has(Im(s)))return;l==null||l.add(Im(s));const m=be.updateModifiers(Rg(s,!0),be.createNodeArray(be.createModifiersFromModifierFlags(n6(s)|512)));t.replaceNode(r,s,m)}function MDe(t,r){if(!r)return;const s=bf(t,r.start);return Kr(s,m=>m.getStart(t)K1(r)?"quit":(ph(m)||em(m)||Dm(m)||b0(m))&&IF(r,gE(m,t)))}function eft(t,r){return({start:s,length:l,relatedInformation:m,code:y})=>U1(s)&&U1(l)&&IF({start:s,length:l},t)&&y===r&&!!m&>(m,T=>T.code===w.Did_you_mean_to_mark_this_function_as_async.code)}var vye,LDe,Qqe=G({"src/services/codefixes/addMissingAsync.ts"(){El(),hp(),vye="addMissingAsync",LDe=[w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Type_0_is_not_assignable_to_type_1.code,w.Type_0_is_not_comparable_to_type_1.code],up({fixIds:[vye],errorCodes:LDe,getCodeActions:function(r){const{sourceFile:s,errorCode:l,cancellationToken:m,program:y,span:T}=r,D=lr(y.getTypeChecker().getDiagnostics(s,m),eft(T,l)),I=D&&D.relatedInformation&&lr(D.relatedInformation,V=>V.code===w.Did_you_mean_to_mark_this_function_as_async.code),W=MDe(s,I);return W?[Yqe(r,W,V=>Hs.ChangeTracker.with(r,V))]:void 0},getAllCodeActions:t=>{const{sourceFile:r}=t,s=new Set;return Km(t,LDe,(l,m)=>{const y=m.relatedInformation&&lr(m.relatedInformation,I=>I.code===w.Did_you_mean_to_mark_this_function_as_async.code),T=MDe(r,y);return T?Yqe(t,T,I=>(I(l),[]),s):void 0})}})}});function Zqe(t,r,s,l,m){const y=rhe(t,s);return y&&tft(t,r,s,l,m)&&bye(y)?y:void 0}function eKe(t,r,s,l,m,y){const{sourceFile:T,program:D,cancellationToken:I}=t,W=nKe(r,T,I,D,l);if(W){const O=m(V=>{Ot(W.initializers,({expression:ee})=>Tye(V,s,T,l,ee,y)),y&&W.needsSecondPassForFixAll&&Tye(V,s,T,l,r,y)});return mC("addMissingAwaitToInitializer",O,W.initializers.length===1?[w.Add_await_to_initializer_for_0,W.initializers[0].declarationSymbol.name]:w.Add_await_to_initializers)}}function tKe(t,r,s,l,m,y){const T=m(D=>Tye(D,s,t.sourceFile,l,r,y));return Hc(Iee,T,w.Add_await,Iee,w.Fix_all_expressions_possibly_missing_await)}function tft(t,r,s,l,m){const T=m.getTypeChecker().getDiagnostics(t,l);return gt(T,({start:D,length:I,relatedInformation:W,code:O})=>U1(D)&&U1(I)&&IF({start:D,length:I},s)&&O===r&&!!W&>(W,V=>V.code===w.Did_you_forget_to_use_await.code))}function nKe(t,r,s,l,m){const y=MOe(t,m);if(!y)return;let T=y.isCompleteFix,D;for(const I of y.identifiers){const W=m.getSymbolAtLocation(I);if(!W)continue;const O=to(W.valueDeclaration,ff),V=O&&to(O.name,An),ee=e6(O,243);if(!O||!ee||O.type||!O.initializer||ee.getSourceFile()!==r||il(ee,1)||!V||!bye(O.initializer)){T=!1;continue}const te=l.getSemanticDiagnostics(r,s);if(Wf.Core.eachSymbolReferenceInFile(V,m,r,de=>I!==de&&!rKe(de,te,r,m))){T=!1;continue}(D||(D=[])).push({expression:O.initializer,declarationSymbol:W})}return D&&{initializers:D,needsSecondPassForFixAll:!T}}function MOe(t,r){if(sa(t.parent)&&An(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(An(t))return{identifiers:[t],isCompleteFix:!0};if(ys(t)){let s,l=!0;for(const m of[t.left,t.right]){const y=r.getTypeAtLocation(m);if(r.getPromisedTypeOfPromise(y)){if(!An(m)){l=!1;continue}(s||(s=[])).push(m)}}return s&&{identifiers:s,isCompleteFix:l}}}function rKe(t,r,s,l){const m=sa(t.parent)?t.parent.name:ys(t.parent)?t.parent:t,y=lr(r,T=>T.start===m.getStart(s)&&T.start+T.length===m.getEnd());return y&&ni(kee,y.code)||l.getTypeAtLocation(m).flags&1}function bye(t){return t.kind&65536||!!Kr(t,r=>r.parent&&ph(r.parent)&&r.parent.body===r||E_(r)&&(r.parent.kind===262||r.parent.kind===218||r.parent.kind===219||r.parent.kind===174))}function Tye(t,r,s,l,m,y){if(Moe(m.parent)&&!m.parent.awaitModifier){const T=l.getTypeAtLocation(m),D=l.getAsyncIterableType();if(D&&l.isTypeAssignableTo(T,D)){const I=m.parent;t.replaceNode(s,I,be.updateForOfStatement(I,be.createToken(135),I.initializer,I.expression,I.statement));return}}if(ys(m))for(const T of[m.left,m.right]){if(y&&An(T)){const W=l.getSymbolAtLocation(T);if(W&&y.has(Bp(W)))continue}const D=l.getTypeAtLocation(T),I=l.getPromisedTypeOfPromise(D)?be.createAwaitExpression(T):T;t.replaceNode(s,T,I)}else if(r===LOe&&sa(m.parent)){if(y&&An(m.parent.expression)){const T=l.getSymbolAtLocation(m.parent.expression);if(T&&y.has(Bp(T)))return}t.replaceNode(s,m.parent.expression,be.createParenthesizedExpression(be.createAwaitExpression(m.parent.expression))),ODe(t,m.parent.expression,s)}else if(ni(FDe,r)&&IN(m.parent)){if(y&&An(m)){const T=l.getSymbolAtLocation(m);if(T&&y.has(Bp(T)))return}t.replaceNode(s,m,be.createParenthesizedExpression(be.createAwaitExpression(m))),ODe(t,m,s)}else{if(y&&ff(m.parent)&&An(m.parent.name)){const T=l.getSymbolAtLocation(m.parent.name);if(T&&!m2(y,Bp(T)))return}t.replaceNode(s,m,be.createAwaitExpression(m))}}function ODe(t,r,s){const l=T0(r.pos,s);l&&sq(l.end,l.parent,s)&&t.insertText(s,r.getStart(s),";")}var Iee,LOe,FDe,kee,nft=G({"src/services/codefixes/addMissingAwait.ts"(){El(),hp(),Iee="addMissingAwait",LOe=w.Property_0_does_not_exist_on_type_1.code,FDe=[w.This_expression_is_not_callable.code,w.This_expression_is_not_constructable.code],kee=[w.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,w.Operator_0_cannot_be_applied_to_type_1.code,w.Operator_0_cannot_be_applied_to_types_1_and_2.code,w.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,w.This_condition_will_always_return_true_since_this_0_is_always_defined.code,w.Type_0_is_not_an_array_type.code,w.Type_0_is_not_an_array_type_or_a_string_type.code,w.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,w.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,w.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,LOe,...FDe],up({fixIds:[Iee],errorCodes:kee,getCodeActions:function(r){const{sourceFile:s,errorCode:l,span:m,cancellationToken:y,program:T}=r,D=Zqe(s,l,m,y,T);if(!D)return;const I=r.program.getTypeChecker(),W=O=>Hs.ChangeTracker.with(r,O);return uN([eKe(r,D,l,I,W),tKe(r,D,l,I,W)])},getAllCodeActions:t=>{const{sourceFile:r,program:s,cancellationToken:l}=t,m=t.program.getTypeChecker(),y=new Set;return Km(t,kee,(T,D)=>{const I=Zqe(r,D.code,D,l,s);if(!I)return;const W=O=>(O(T),[]);return eKe(t,I,D.code,m,W,y)||tKe(t,I,D.code,m,W,y)})}})}});function iKe(t,r,s,l,m){const y=bf(r,s),T=Kr(y,W=>DS(W.parent)?W.parent.initializer===W:oKe(W)?!1:"quit");if(T)return WDe(t,T,r,m);const D=y.parent;if(ys(D)&&D.operatorToken.kind===64&&Ou(D.parent))return WDe(t,y,r,m);if(Ch(D)){const W=l.getTypeChecker();return jr(D.elements,O=>BDe(O,W))?WDe(t,D,r,m):void 0}const I=Kr(y,W=>Ou(W.parent)?!0:OOe(W)?!1:"quit");if(I){const W=l.getTypeChecker();return aKe(I,W)?WDe(t,I,r,m):void 0}}function WDe(t,r,s,l){(!l||m2(l,r))&&t.insertModifierBefore(s,87,r)}function oKe(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function BDe(t,r){const s=An(t)?t:wy(t,!0)&&An(t.left)?t.left:void 0;return!!s&&!r.getSymbolAtLocation(s)}function OOe(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function aKe(t,r){return ys(t)?t.operatorToken.kind===28?jr([t.left,t.right],s=>aKe(s,r)):t.operatorToken.kind===64&&An(t.left)&&!r.getSymbolAtLocation(t.left):!1}var Sye,ple,FOe=G({"src/services/codefixes/addMissingConst.ts"(){El(),hp(),Sye="addMissingConst",ple=[w.Cannot_find_name_0.code,w.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],up({errorCodes:ple,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>iKe(l,r.sourceFile,r.span.start,r.program));if(s.length>0)return[Hc(Sye,s,w.Add_const_to_unresolved_variable,Sye,w.Add_const_to_all_unresolved_variables)]},fixIds:[Sye],getAllCodeActions:t=>{const r=new Set;return Km(t,ple,(s,l)=>iKe(s,l.file,l.start,t.program,r))}})}});function sKe(t,r,s,l){const m=bf(r,s);if(!An(m))return;const y=m.parent;y.kind===172&&(!l||m2(l,y))&&t.insertModifierBefore(r,138,y)}var Eye,mle,WOe=G({"src/services/codefixes/addMissingDeclareProperty.ts"(){El(),hp(),Eye="addMissingDeclareProperty",mle=[w.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],up({errorCodes:mle,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>sKe(l,r.sourceFile,r.span.start));if(s.length>0)return[Hc(Eye,s,w.Prefix_with_declare,Eye,w.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[Eye],getAllCodeActions:t=>{const r=new Set;return Km(t,mle,(s,l)=>sKe(s,l.file,l.start,r))}})}});function cKe(t,r,s){const l=bf(r,s),m=Kr(l,Qf);ce.assert(!!m,"Expected position to be owned by a decorator.");const y=be.createCallExpression(m.expression,void 0,void 0);t.replaceNode(r,m.expression,y)}var xye,zDe,GDe=G({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){El(),hp(),xye="addMissingInvocationForDecorator",zDe=[w._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],up({errorCodes:zDe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>cKe(l,r.sourceFile,r.span.start));return[Hc(xye,s,w.Call_decorator_expression,xye,w.Add_to_all_uncalled_decorators)]},fixIds:[xye],getAllCodeActions:t=>Km(t,zDe,(r,s)=>cKe(r,s.file,s.start))})}});function jDe(t,r,s){const l=bf(r,s),m=l.parent;if(!Pu(m))return ce.fail("Tried to add a parameter name to a non-parameter: "+ce.formatSyntaxKind(l.kind));const y=m.parent.parameters.indexOf(m);ce.assert(!m.type,"Tried to add a parameter name to a parameter that already had one."),ce.assert(y>-1,"Parameter not found in parent parameter list.");const T=be.createTypeReferenceNode(m.name,void 0),D=be.createParameterDeclaration(m.modifiers,m.dotDotDotToken,"arg"+y,m.questionToken,m.dotDotDotToken?be.createArrayTypeNode(T):T,m.initializer);t.replaceNode(r,m,D)}var VDe,BOe,rft=G({"src/services/codefixes/addNameToNamelessParameter.ts"(){El(),hp(),VDe="addNameToNamelessParameter",BOe=[w.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],up({errorCodes:BOe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>jDe(l,r.sourceFile,r.span.start));return[Hc(VDe,s,w.Add_parameter_name,VDe,w.Add_names_to_all_parameters_without_names)]},fixIds:[VDe],getAllCodeActions:t=>Km(t,BOe,(r,s)=>jDe(r,s.file,s.start))})}});function lKe(t,r,s){var l,m;const y=UDe(rhe(t,r),s);if(!y)return Zn;const{source:T,target:D}=y,I=ift(T,D,s)?s.getTypeAtLocation(D.expression):s.getTypeAtLocation(D);return(m=(l=I.symbol)==null?void 0:l.declarations)!=null&&m.some(W=>ns(W).fileName.match(/\.d\.ts$/))?Zn:s.getExactOptionalProperties(I)}function ift(t,r,s){return sa(r)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(r.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function UDe(t,r){var s;if(t){if(ys(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(ff(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(el(t.parent)){const l=r.getSymbolAtLocation(t.parent.expression);if(!(l!=null&&l.valueDeclaration)||!xb(l.valueDeclaration.kind)||!Nr(t))return;const m=t.parent.arguments.indexOf(t);if(m===-1)return;const y=l.valueDeclaration.parameters[m].name;if(An(y))return{source:t,target:y}}else if(Fm(t.parent)&&An(t.parent.name)||BT(t.parent)){const l=UDe(t.parent.parent,r);if(!l)return;const m=r.getPropertyOfType(r.getTypeAtLocation(l.target),t.parent.name.text),y=(s=m==null?void 0:m.declarations)==null?void 0:s[0];return y?{source:Fm(t.parent)?t.parent.initializer:t.parent.name,target:y}:void 0}}else return}function uKe(t,r){for(const s of r){const l=s.valueDeclaration;if(l&&(Np(l)||Os(l))&&l.type){const m=be.createUnionTypeNode([...l.type.kind===192?l.type.types:[l.type],be.createTypeReferenceNode("undefined")]);t.replaceNode(l.getSourceFile(),l.type,m)}}}var zOe,GOe,fKe=G({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){El(),hp(),zOe="addOptionalPropertyUndefined",GOe=[w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,w.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],up({errorCodes:GOe,getCodeActions(t){const r=t.program.getTypeChecker(),s=lKe(t.sourceFile,t.span,r);if(!s.length)return;const l=Hs.ChangeTracker.with(t,m=>uKe(m,s));return[mC(zOe,l,w.Add_undefined_to_optional_property_type)]},fixIds:[zOe]})}});function jOe(t,r){const s=bf(t,r);return to(Pu(s.parent)?s.parent.parent:s.parent,VOe)}function VOe(t){return oft(t)&&_Ke(t)}function _Ke(t){return J_(t)?t.parameters.some(_Ke)||!t.type&&!!WU(t):!t.type&&!!X1(t)}function Q3(t,r,s){if(J_(s)&&(WU(s)||s.parameters.some(l=>!!X1(l)))){if(!s.typeParameters){const m=Wie(s);m.length&&t.insertTypeParameters(r,s,m)}const l=ph(s)&&!Wm(s,21,r);l&&t.insertNodeBefore(r,Dl(s.parameters),be.createToken(21));for(const m of s.parameters)if(!m.type){const y=X1(m);y&&t.tryInsertTypeAnnotation(r,m,nr(y,OF,Uu))}if(l&&t.insertNodeAfter(r,yl(s.parameters),be.createToken(22)),!s.type){const m=WU(s);m&&t.tryInsertTypeAnnotation(r,s,nr(m,OF,Uu))}}else{const l=ce.checkDefined(X1(s),"A JSDocType for this declaration should exist");ce.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,s,nr(l,OF,Uu))}}function oft(t){return J_(t)||t.kind===260||t.kind===171||t.kind===172}function OF(t){switch(t.kind){case 319:case 320:return be.createTypeReferenceNode("any",Zn);case 323:return sft(t);case 322:return OF(t.type);case 321:return cft(t);case 325:return lft(t);case 324:return uft(t);case 183:return HDe(t);case 329:return aft(t);default:const r=ia(t,OF,I6);return Sa(r,1),r}}function aft(t){const r=be.createTypeLiteralNode(Vn(t.jsDocPropertyTags,s=>be.createPropertySignature(void 0,An(s.name)?s.name:s.name.right,rW(s)?be.createToken(58):void 0,s.typeExpression&&nr(s.typeExpression.type,OF,Uu)||be.createKeywordTypeNode(133))));return Sa(r,1),r}function sft(t){return be.createUnionTypeNode([nr(t.type,OF,Uu),be.createTypeReferenceNode("undefined",Zn)])}function cft(t){return be.createUnionTypeNode([nr(t.type,OF,Uu),be.createTypeReferenceNode("null",Zn)])}function lft(t){return be.createArrayTypeNode(nr(t.type,OF,Uu))}function uft(t){return be.createFunctionTypeNode(Zn,t.parameters.map(fft),t.type??be.createKeywordTypeNode(133))}function fft(t){const r=t.parent.parameters.indexOf(t),s=t.type.kind===325&&r===t.parent.parameters.length-1,l=t.name||(s?"rest":"arg"+r),m=s?be.createToken(26):t.dotDotDotToken;return be.createParameterDeclaration(t.modifiers,m,l,t.questionToken,nr(t.type,OF,Uu),t.initializer)}function HDe(t){let r=t.typeName,s=t.typeArguments;if(An(t.typeName)){if(aH(t))return UOe(t);let l=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":l=l.toLowerCase();break;case"array":case"date":case"promise":l=l[0].toUpperCase()+l.slice(1);break}r=be.createIdentifier(l),(l==="Array"||l==="Promise")&&!t.typeArguments?s=be.createNodeArray([be.createTypeReferenceNode("any",Zn)]):s=Fa(t.typeArguments,OF,Uu)}return be.createTypeReferenceNode(r,s)}function UOe(t){const r=be.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,be.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=be.createTypeLiteralNode([be.createIndexSignature(void 0,[r],t.typeArguments[1])]);return Sa(s,1),s}var JDe,$De,qDe=G({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){El(),hp(),JDe="annotateWithTypeFromJSDoc",$De=[w.JSDoc_types_may_be_moved_to_TypeScript_types.code],up({errorCodes:$De,getCodeActions(t){const r=jOe(t.sourceFile,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>Q3(l,t.sourceFile,r));return[Hc(JDe,s,w.Annotate_with_type_from_JSDoc,JDe,w.Annotate_everything_with_types_from_JSDoc)]},fixIds:[JDe],getAllCodeActions:t=>Km(t,$De,(r,s)=>{const l=jOe(s.file,s.start);l&&Q3(r,s.file,l)})})}});function Aye(t,r,s,l,m,y){const T=l.getSymbolAtLocation(bf(r,s));if(!T||!T.valueDeclaration||!(T.flags&19))return;const D=T.valueDeclaration;if(b0(D)||Dm(D))t.replaceNode(r,D,O(D));else if(ff(D)){const V=W(D);if(!V)return;const ee=D.parent.parent;My(D.parent)&&D.parent.declarations.length>1?(t.delete(r,D),t.insertNodeAfter(r,ee,V)):t.replaceNode(r,ee,V)}function I(V){const ee=[];return V.exports&&V.exports.forEach(de=>{if(de.name==="prototype"&&de.declarations){const ue=de.declarations[0];if(de.declarations.length===1&&sa(ue)&&ys(ue.parent)&&ue.parent.operatorToken.kind===64&&Wd(ue.parent.right)){const Ne=ue.parent.right;oe(Ne.symbol,void 0,ee)}}else oe(de,[be.createToken(126)],ee)}),V.members&&V.members.forEach((de,ue)=>{var Ne,Be,Ve,pt;if(ue==="constructor"&&de.valueDeclaration){const Le=(pt=(Ve=(Be=(Ne=V.exports)==null?void 0:Ne.get("prototype"))==null?void 0:Be.declarations)==null?void 0:Ve[0])==null?void 0:pt.parent;Le&&ys(Le)&&Wd(Le.right)&>(Le.right.properties,Pee)||t.delete(r,de.valueDeclaration.parent);return}oe(de,void 0,ee)}),ee;function te(de,ue){return Kf(de)?sa(de)&&Pee(de)?!0:S_(ue):jr(de.properties,Ne=>!!(em(Ne)||s9(Ne)||Fm(Ne)&&Dm(Ne.initializer)&&Ne.name||Pee(Ne)))}function oe(de,ue,Ne){if(!(de.flags&8192)&&!(de.flags&4096))return;const Be=de.valueDeclaration,Ve=Be.parent,pt=Ve.right;if(!te(Be,pt)||gt(Ne,Dt=>{const Ft=o_(Dt);return!!(Ft&&An(Ft)&&ec(Ft)===mp(de))}))return;const Le=Ve.parent&&Ve.parent.kind===244?Ve.parent:Ve;if(t.delete(r,Le),!pt){Ne.push(be.createPropertyDeclaration(ue,de.name,void 0,void 0,void 0));return}if(Kf(Be)&&(Dm(pt)||ph(pt))){const Dt=Jx(r,m),Ft=HOe(Be,y,Dt);Ft&&ht(Ne,pt,Ft);return}else if(Wd(pt)){Ot(pt.properties,Dt=>{(em(Dt)||s9(Dt))&&Ne.push(Dt),Fm(Dt)&&Dm(Dt.initializer)&&ht(Ne,Dt.initializer,Dt.name),Pee(Dt)});return}else{if(v1(r)||!sa(Be))return;const Dt=be.createPropertyDeclaration(ue,Be.name,void 0,void 0,pt);tB(Ve.parent,Dt,r),Ne.push(Dt);return}function ht(Dt,Ft,it){return Dm(Ft)?ke(Dt,Ft,it):_t(Dt,Ft,it)}function ke(Dt,Ft,it){const Ye=Hi(ue,KDe(Ft,134)),ut=be.createMethodDeclaration(Ye,void 0,it,void 0,void 0,Ft.parameters,void 0,Ft.body);tB(Ve,ut,r),Dt.push(ut)}function _t(Dt,Ft,it){const Ye=Ft.body;let ut;Ye.kind===241?ut=Ye:ut=be.createBlock([be.createReturnStatement(Ye)]);const lt=Hi(ue,KDe(Ft,134)),zt=be.createMethodDeclaration(lt,void 0,it,void 0,void 0,Ft.parameters,void 0,ut);tB(Ve,zt,r),Dt.push(zt)}}}function W(V){const ee=V.initializer;if(!ee||!Dm(ee)||!An(V.name))return;const te=I(V.symbol);ee.body&&te.unshift(be.createConstructorDeclaration(void 0,ee.parameters,ee.body));const oe=KDe(V.parent.parent,95);return be.createClassDeclaration(oe,V.name,void 0,void 0,te)}function O(V){const ee=I(T);V.body&&ee.unshift(be.createConstructorDeclaration(void 0,V.parameters,V.body));const te=KDe(V,95);return be.createClassDeclaration(te,V.name,void 0,void 0,ee)}}function KDe(t,r){return nx(t)?gi(t.modifiers,s=>s.kind===r):void 0}function Pee(t){return t.name?!!(An(t.name)&&t.name.text==="constructor"):!1}function HOe(t,r,s){if(sa(t))return t.name;const l=t.argumentExpression;if(nS(l))return l;if(sp(l))return rE(l.text,iu(r))?be.createIdentifier(l.text):Sd(l)?be.createStringLiteral(l.text,s===0):l}var XDe,YDe,_ft=G({"src/services/codefixes/convertFunctionToEs6Class.ts"(){El(),hp(),XDe="convertFunctionToEs6Class",YDe=[w.This_constructor_function_may_be_converted_to_a_class_declaration.code],up({errorCodes:YDe,getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>Aye(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Hc(XDe,r,w.Convert_function_to_an_ES2015_class,XDe,w.Convert_all_constructor_functions_to_classes)]},fixIds:[XDe],getAllCodeActions:t=>Km(t,YDe,(r,s)=>Aye(r,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function dKe(t,r,s,l){const m=bf(r,s);let y;if(An(m)&&ff(m.parent)&&m.parent.initializer&&J_(m.parent.initializer)?y=m.parent.initializer:y=to(GE(bf(r,s)),kce),!y)return;const T=new Map,D=Rs(y),I=pKe(y,l),W=qj(y,l,T);if(!cCe(W,l))return;const O=W.body&&E_(W.body)?gle(W.body,l):Zn,V={checker:l,synthNamesMap:T,setOfExpressionsToReturn:I,isInJSFile:D};if(!O.length)return;const ee=ep(r.text,Db(y).pos);t.insertModifierAt(r,ee,134,{suffix:" "});for(const te of O)if(B_(te,function oe(de){if(el(de)){const ue=kq(de,de,V,!1);if(iw())return!0;t.replaceNodeWithNodes(r,te,ue)}else if(!S_(de)&&(B_(de,oe),iw()))return!0}),iw())return}function gle(t,r){const s=[];return HM(t,l=>{lCe(l,r)&&s.push(l)}),s}function pKe(t,r){if(!t.body)return new Set;const s=new Set;return B_(t.body,function l(m){$j(m,r,"then")?(s.add(Im(m)),Ot(m.arguments,l)):$j(m,r,"catch")||$j(m,r,"finally")?(s.add(Im(m)),B_(m,l)):$Oe(m,r)?s.add(Im(m)):B_(m,l)}),s}function $j(t,r,s){if(!el(t))return!1;const m=vZ(t,s)&&r.getTypeAtLocation(t);return!!(m&&r.getPromisedTypeOfPromise(m))}function JOe(t,r){return(ji(t)&4)!==0&&t.target===r}function QDe(t,r,s){if(t.expression.name.escapedText==="finally")return;const l=s.getTypeAtLocation(t.expression.expression);if(JOe(l,s.getPromiseType())||JOe(l,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(r===PM(t.arguments,0))return PM(t.typeArguments,0);if(r===PM(t.arguments,1))return PM(t.typeArguments,1)}else return PM(t.typeArguments,0)}function $Oe(t,r){return Nr(t)?!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t)):!1}function qj(t,r,s){const l=new Map,m=zg();return B_(t,function y(T){if(!An(T)){B_(T,y);return}const D=r.getSymbolAtLocation(T);if(D){const I=r.getTypeAtLocation(T),W=XOe(I,r),O=Bp(D).toString();if(W&&!Pu(T.parent)&&!J_(T.parent)&&!s.has(O)){const V=pp(W.parameters),ee=(V==null?void 0:V.valueDeclaration)&&Pu(V.valueDeclaration)&&to(V.valueDeclaration.name,An)||be.createUniqueName("result",16),te=S4(ee,m);s.set(O,te),m.add(ee.text,D)}else if(T.parent&&(Pu(T.parent)||ff(T.parent)||ym(T.parent))){const V=T.text,ee=m.get(V);if(ee&&ee.some(te=>te!==D)){const te=S4(T,m);l.set(O,te.identifier),s.set(O,te),m.add(V,D)}else{const te=Rg(T);s.set(O,Kj(te)),m.add(V,D)}}}}),iq(t,!0,y=>{if(ym(y)&&An(y.name)&&E1(y.parent)){const T=r.getSymbolAtLocation(y.name),D=T&&l.get(String(Bp(T)));if(D&&D.text!==(y.name||y.propertyName).getText())return be.createBindingElement(y.dotDotDotToken,y.propertyName||y.name,D,y.initializer)}else if(An(y)){const T=r.getSymbolAtLocation(y),D=T&&l.get(String(Bp(T)));if(D)return be.createIdentifier(D.text)}})}function S4(t,r){const s=(r.get(t.text)||Zn).length,l=s===0?t:be.createIdentifier(t.text+"_"+s);return Kj(l)}function iw(){return!Iye}function jR(){return Iye=!1,Zn}function kq(t,r,s,l,m){if($j(r,s.checker,"then"))return ZDe(r,PM(r.arguments,0),PM(r.arguments,1),s,l,m);if($j(r,s.checker,"catch"))return hKe(r,PM(r.arguments,0),s,l,m);if($j(r,s.checker,"finally"))return dft(r,PM(r.arguments,0),s,l,m);if(sa(r))return kq(t,r.expression,s,l,m);const y=s.checker.getTypeAtLocation(r);return y&&s.checker.getPromisedTypeOfPromise(y)?(ce.assertNode(Ic(r).parent,sa),KOe(t,r,s,l,m)):jR()}function Cye({checker:t},r){if(r.kind===106)return!0;if(An(r)&&!Om(r)&&ec(r)==="undefined"){const s=t.getSymbolAtLocation(r);return!s||t.isUndefinedSymbol(s)}return!1}function mKe(t){const r=be.createUniqueName(t.identifier.text,16);return Kj(r)}function gKe(t,r,s){let l;return s&&!Nq(t,r)&&(FF(s)?(l=s,r.synthNamesMap.forEach((m,y)=>{if(m.identifier.text===s.identifier.text){const T=mKe(s);r.synthNamesMap.set(y,T)}})):l=Kj(be.createUniqueName("result",16),s.types),QOe(l)),l}function qOe(t,r,s,l,m){const y=[];let T;if(l&&!Nq(t,r)){T=Rg(QOe(l));const D=l.types,I=r.checker.getUnionType(D,2),W=r.isInJSFile?void 0:r.checker.typeToTypeNode(I,void 0,void 0),O=[be.createVariableDeclaration(T,void 0,W)],V=be.createVariableStatement(void 0,be.createVariableDeclarationList(O,1));y.push(V)}return y.push(s),m&&T&&rIe(m)&&y.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(wee(m)),void 0,void 0,T)],2))),y}function dft(t,r,s,l,m){if(!r||Cye(s,r))return kq(t,t.expression.expression,s,l,m);const y=gKe(t,s,m),T=kq(t,t.expression.expression,s,!0,y);if(iw())return jR();const D=tIe(r,l,void 0,void 0,t,s);if(iw())return jR();const I=be.createBlock(T),W=be.createBlock(D),O=be.createTryStatement(I,void 0,W);return qOe(t,s,O,y,m)}function hKe(t,r,s,l,m){if(!r||Cye(s,r))return kq(t,t.expression.expression,s,l,m);const y=Pq(r,s),T=gKe(t,s,m),D=kq(t,t.expression.expression,s,!0,T);if(iw())return jR();const I=tIe(r,l,T,y,t,s);if(iw())return jR();const W=be.createBlock(D),O=be.createCatchClause(y&&Rg(Nee(y)),be.createBlock(I)),V=be.createTryStatement(W,O,void 0);return qOe(t,s,V,T,m)}function ZDe(t,r,s,l,m,y){if(!r||Cye(l,r))return hKe(t,s,l,m,y);if(s&&!Cye(l,s))return jR();const T=Pq(r,l),D=kq(t.expression.expression,t.expression.expression,l,!0,T);if(iw())return jR();const I=tIe(r,m,y,T,t,l);return iw()?jR():Hi(D,I)}function KOe(t,r,s,l,m){if(Nq(t,s)){let y=Rg(r);return l&&(y=be.createAwaitExpression(y)),[be.createReturnStatement(y)]}return hle(m,be.createAwaitExpression(r),void 0)}function hle(t,r,s){return!t||bKe(t)?[be.createExpressionStatement(r)]:FF(t)&&t.hasBeenDeclared?[be.createExpressionStatement(be.createAssignment(Rg(nIe(t)),r))]:[be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Rg(Nee(t)),void 0,s,r)],2))]}function eIe(t,r){if(r&&t){const s=be.createUniqueName("result",16);return[...hle(Kj(s),t,r),be.createReturnStatement(s)]}return[be.createReturnStatement(t)]}function tIe(t,r,s,l,m,y){var T;switch(t.kind){case 106:break;case 211:case 80:if(!l)break;const D=be.createCallExpression(Rg(t),void 0,FF(l)?[nIe(l)]:[]);if(Nq(m,y))return eIe(D,QDe(m,t,y.checker));const I=y.checker.getTypeAtLocation(t),W=y.checker.getSignaturesOfType(I,0);if(!W.length)return jR();const O=W[0].getReturnType(),V=hle(s,be.createAwaitExpression(D),QDe(m,t,y.checker));return s&&s.types.push(y.checker.getAwaitedType(O)||O),V;case 218:case 219:{const ee=t.body,te=(T=XOe(y.checker.getTypeAtLocation(t),y.checker))==null?void 0:T.getReturnType();if(E_(ee)){let oe=[],de=!1;for(const ue of ee.statements)if(Bx(ue))if(de=!0,lCe(ue,y.checker))oe=oe.concat(YOe(y,ue,r,s));else{const Ne=te&&ue.expression?yKe(y.checker,te,ue.expression):ue.expression;oe.push(...eIe(Ne,QDe(m,t,y.checker)))}else{if(r&&HM(ue,xT))return jR();oe.push(ue)}return Nq(m,y)?oe.map(ue=>Rg(ue)):vKe(oe,s,y,de)}else{const oe=Ice(ee,y.checker)?YOe(y,be.createReturnStatement(ee),r,s):Zn;if(oe.length>0)return oe;if(te){const de=yKe(y.checker,te,ee);if(Nq(m,y))return eIe(de,QDe(m,t,y.checker));{const ue=hle(s,de,void 0);return s&&s.types.push(y.checker.getAwaitedType(te)||te),ue}}else return jR()}}default:return jR()}return Zn}function yKe(t,r,s){const l=Rg(s);return t.getPromisedTypeOfPromise(r)?be.createAwaitExpression(l):l}function XOe(t,r){const s=r.getSignaturesOfType(t,0);return Yf(s)}function vKe(t,r,s,l){const m=[];for(const y of t)if(Bx(y)){if(y.expression){const T=$Oe(y.expression,s.checker)?be.createAwaitExpression(y.expression):y.expression;r===void 0?m.push(be.createExpressionStatement(T)):FF(r)&&r.hasBeenDeclared?m.push(be.createExpressionStatement(be.createAssignment(nIe(r),T))):m.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Nee(r),void 0,void 0,T)],2)))}}else m.push(Rg(y));return!l&&r!==void 0&&m.push(be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(Nee(r),void 0,void 0,be.createIdentifier("undefined"))],2))),m}function YOe(t,r,s,l){let m=[];return B_(r,function y(T){if(el(T)){const D=kq(T,T,t,s,l);if(m=m.concat(D),m.length>0)return}else S_(T)||B_(T,y)}),m}function Pq(t,r){const s=[];let l;if(J_(t)){if(t.parameters.length>0){const I=t.parameters[0].name;l=m(I)}}else An(t)?l=y(t):sa(t)&&An(t.name)&&(l=y(t.name));if(!l||"identifier"in l&&l.identifier.text==="undefined")return;return l;function m(I){if(An(I))return y(I);const W=ea(I.elements,O=>t0(O)?[]:[m(O.name)]);return Dye(I,W)}function y(I){const W=D(I),O=T(W);return O&&r.synthNamesMap.get(Bp(O).toString())||Kj(I,s)}function T(I){var W;return((W=to(I,YD))==null?void 0:W.symbol)??r.checker.getSymbolAtLocation(I)}function D(I){return I.original?I.original:I}}function bKe(t){return t?FF(t)?!t.identifier.text:jr(t.elements,bKe):!0}function Kj(t,r=[]){return{kind:0,identifier:t,types:r,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Dye(t,r=Zn,s=[]){return{kind:1,bindingPattern:t,elements:r,types:s}}function nIe(t){return t.hasBeenReferenced=!0,t.identifier}function Nee(t){return FF(t)?QOe(t):wee(t)}function wee(t){for(const r of t.elements)Nee(r);return t.bindingPattern}function QOe(t){return t.hasBeenDeclared=!0,t.identifier}function FF(t){return t.kind===0}function rIe(t){return t.kind===1}function Nq(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(Im(t.original))}var wq,ZOe,Iye,pft=G({"src/services/codefixes/convertToAsyncFunction.ts"(){El(),hp(),wq="convertToAsyncFunction",ZOe=[w.This_may_be_converted_to_an_async_function.code],Iye=!0,up({errorCodes:ZOe,getCodeActions(t){Iye=!0;const r=Hs.ChangeTracker.with(t,s=>dKe(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return Iye?[Hc(wq,r,w.Convert_to_async_function,wq,w.Convert_all_to_async_functions)]:[]},fixIds:[wq],getAllCodeActions:t=>Km(t,ZOe,(r,s)=>dKe(r,s.file,s.start,t.program.getTypeChecker()))})}});function mft(t,r,s,l){for(const m of t.imports){const y=XU(t,m.text,kA(t,m));if(!y||y.resolvedFileName!==r.fileName)continue;const T=b2(m);switch(T.kind){case 271:s.replaceNode(t,T,Pk(T.name,void 0,m,l));break;case 213:eT(T,!1)&&s.replaceNode(t,T,be.createPropertyAccessExpression(Rg(T),"default"));break}}}function gft(t,r,s,l,m){const y={original:xft(t),additional:new Set},T=TKe(t,r,y);hft(t,T,s);let D=!1,I;for(const W of gi(t.statements,Dh)){const O=SKe(t,W,s,r,y,l,m);O&&tY(O,I??(I=new Map))}for(const W of gi(t.statements,O=>!Dh(O))){const O=yft(t,W,r,s,y,l,T,I,m);D=D||O}return I==null||I.forEach((W,O)=>{s.replaceNode(t,O,W)}),D}function TKe(t,r,s){const l=new Map;return e7e(t,m=>{const{text:y}=m.name;!l.has(y)&&(yH(m.name)||r.resolveName(y,m,111551,!0))&&l.set(y,kye(`_${y}`,s))}),l}function hft(t,r,s){e7e(t,(l,m)=>{if(m)return;const{text:y}=l.name;s.replaceNode(t,l,be.createIdentifier(r.get(y)||y))})}function e7e(t,r){t.forEachChild(function s(l){if(sa(l)&&w3(t,l.expression)&&An(l.name)){const{parent:m}=l;r(l,ys(m)&&m.left===l&&m.operatorToken.kind===64)}l.forEachChild(s)})}function yft(t,r,s,l,m,y,T,D,I){switch(r.kind){case 243:return SKe(t,r,l,s,m,y,I),!1;case 244:{const{expression:W}=r;switch(W.kind){case 213:return eT(W,!0)&&l.replaceNode(t,r,Pk(void 0,void 0,W.arguments[0],I)),!1;case 226:{const{operatorToken:O}=W;return O.kind===64&&bft(t,s,W,l,T,D)}}}default:return!1}}function SKe(t,r,s,l,m,y,T){const{declarationList:D}=r;let I=!1;const W=Vn(D.declarations,O=>{const{name:V,initializer:ee}=O;if(ee){if(w3(t,ee))return I=!0,Rq([]);if(eT(ee,!0))return I=!0,iIe(V,ee.arguments[0],l,m,y,T);if(sa(ee)&&eT(ee.expression,!0))return I=!0,vft(V,ee.name.text,ee.expression.arguments[0],m,T)}return Rq([be.createVariableStatement(void 0,be.createVariableDeclarationList([O],D.flags))])});if(I){s.replaceNodeWithNodes(t,r,ea(W,V=>V.newImports));let O;return Ot(W,V=>{V.useSitesToUnqualify&&tY(V.useSitesToUnqualify,O??(O=new Map))}),O}}function vft(t,r,s,l,m){switch(t.kind){case 206:case 207:{const y=kye(r,l);return Rq([Pye(y,r,s,m),_B(void 0,t,be.createIdentifier(y))])}case 80:return Rq([Pye(t.text,r,s,m)]);default:return ce.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function bft(t,r,s,l,m,y){const{left:T,right:D}=s;if(!sa(T))return!1;if(w3(t,T))if(w3(t,D))l.delete(t,s.parent);else{const I=Wd(D)?Tft(D,y):eT(D,!0)?t7e(D.arguments[0],r):void 0;return I?(l.replaceNodeWithNodes(t,s.parent,I[0]),I[1]):(l.replaceRangeWithText(t,tv(T.getStart(t),D.pos),"export default"),!0)}else w3(t,T.expression)&&EKe(t,s,l,m);return!1}function Tft(t,r){const s=fA(t.properties,l=>{switch(l.kind){case 177:case 178:case 304:case 305:return;case 303:return An(l.name)?Sft(l.name.text,l.initializer,r):void 0;case 174:return An(l.name)?a7e(l.name.text,[be.createToken(95)],l,r):void 0;default:ce.assertNever(l,`Convert to ES6 got invalid prop kind ${l.kind}`)}});return s&&[s,!1]}function EKe(t,r,s,l){const{text:m}=r.left.name,y=l.get(m);if(y!==void 0){const T=[_B(void 0,y,r.right),s7e([be.createExportSpecifier(!1,y,m)])];s.replaceNodeWithNodes(t,r.parent,T)}else r7e(r,t,s)}function t7e(t,r){const s=t.text,l=r.getSymbolAtLocation(t),m=l?l.exports:zy;return m.has("export=")?[[n7e(s)],!0]:m.has("default")?m.size>1?[[xKe(s),n7e(s)],!0]:[[n7e(s)],!0]:[[xKe(s)],!1]}function xKe(t){return s7e(void 0,t)}function n7e(t){return s7e([be.createExportSpecifier(!1,void 0,"default")],t)}function r7e({left:t,right:r,parent:s},l,m){const y=t.name.text;if((Dm(r)||ph(r)||B0(r))&&(!r.name||r.name.text===y)){m.replaceRange(l,{pos:t.getStart(l),end:r.getStart(l)},be.createToken(95),{suffix:" "}),r.name||m.insertName(l,r,y);const T=Wm(s,27,l);T&&m.delete(l,T)}else m.replaceNodeRangeWithNodes(l,t.expression,Wm(t,25,l),[be.createToken(95),be.createToken(87)],{joiner:" ",suffix:" "})}function Sft(t,r,s){const l=[be.createToken(95)];switch(r.kind){case 218:{const{name:y}=r;if(y&&y.text!==t)return m()}case 219:return a7e(t,l,r,s);case 231:return AKe(t,l,r,s);default:return m()}function m(){return _B(l,be.createIdentifier(t),i7e(r,s))}}function i7e(t,r){if(!r||!gt(oc(r.keys()),l=>sS(t,l)))return t;return ls(t)?sce(t,!0,s):iq(t,!0,s);function s(l){if(l.kind===211){const m=r.get(l);return r.delete(l),m}}}function iIe(t,r,s,l,m,y){switch(t.kind){case 206:{const T=fA(t.elements,D=>D.dotDotDotToken||D.initializer||D.propertyName&&!An(D.propertyName)||!An(D.name)?void 0:oIe(D.propertyName&&D.propertyName.text,D.name.text));if(T)return Rq([Pk(void 0,T,r,y)])}case 207:{const T=kye(Wye(r.text,m),l);return Rq([Pk(be.createIdentifier(T),void 0,r,y),_B(void 0,Rg(t),be.createIdentifier(T))])}case 80:return Eft(t,r,s,l,y);default:return ce.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function Eft(t,r,s,l,m){const y=s.getSymbolAtLocation(t),T=new Map;let D=!1,I;for(const O of l.original.get(t.text)){if(s.getSymbolAtLocation(O)!==y||O===t)continue;const{parent:V}=O;if(sa(V)){const{name:{text:ee}}=V;if(ee==="default"){D=!0;const te=O.getText();(I??(I=new Map)).set(V,be.createIdentifier(te))}else{ce.assert(V.expression===O,"Didn't expect expression === use");let te=T.get(ee);te===void 0&&(te=kye(ee,l),T.set(ee,te)),(I??(I=new Map)).set(V,be.createIdentifier(te))}}else D=!0}const W=T.size===0?void 0:oc(p_(T.entries(),([O,V])=>be.createImportSpecifier(!1,O===V?void 0:be.createIdentifier(O),be.createIdentifier(V))));return W||(D=!0),Rq([Pk(D?Rg(t):void 0,W,r,m)],I)}function kye(t,r){for(;r.original.has(t)||r.additional.has(t);)t=`_${t}`;return r.additional.add(t),t}function xft(t){const r=zg();return o7e(t,s=>r.add(s.text,s)),r}function o7e(t,r){An(t)&&Aft(t)&&r(t),t.forEachChild(s=>o7e(s,r))}function Aft(t){const{parent:r}=t;switch(r.kind){case 211:return r.name!==t;case 208:return r.propertyName!==t;case 276:return r.propertyName!==t;default:return!0}}function a7e(t,r,s,l){return be.createFunctionDeclaration(Hi(r,J3(s.modifiers)),Rg(s.asteriskToken),t,J3(s.typeParameters),J3(s.parameters),Rg(s.type),be.converters.convertToFunctionBlock(i7e(s.body,l)))}function AKe(t,r,s,l){return be.createClassDeclaration(Hi(r,J3(s.modifiers)),t,J3(s.typeParameters),J3(s.heritageClauses),i7e(s.members,l))}function Pye(t,r,s,l){return r==="default"?Pk(be.createIdentifier(t),void 0,s,l):Pk(void 0,[oIe(r,t)],s,l)}function oIe(t,r){return be.createImportSpecifier(!1,t!==void 0&&t!==r?be.createIdentifier(t):void 0,be.createIdentifier(r))}function _B(t,r,s){return be.createVariableStatement(t,be.createVariableDeclarationList([be.createVariableDeclaration(r,void 0,void 0,s)],2))}function s7e(t,r){return be.createExportDeclaration(void 0,!1,t&&be.createNamedExports(t),r===void 0?void 0:be.createStringLiteral(r))}function Rq(t,r){return{newImports:t,useSitesToUnqualify:r}}var CKe=G({"src/services/codefixes/convertToEsModule.ts"(){El(),hp(),up({errorCodes:[w.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:r,program:s,preferences:l}=t,m=Hs.ChangeTracker.with(t,y=>{if(gft(r,s.getTypeChecker(),y,iu(s.getCompilerOptions()),Jx(r,l)))for(const D of s.getSourceFiles())mft(D,r,y,Jx(D,l))});return[mC("convertToEsModule",m,w.Convert_to_ES_module)]}})}});function Nye(t,r){const s=Kr(bf(t,r),nT);return ce.assert(!!s,"Expected position to be owned by a qualified name."),An(s.left)?s:void 0}function aIe(t,r,s){const l=s.right.text,m=be.createIndexedAccessTypeNode(be.createTypeReferenceNode(s.left,void 0),be.createLiteralTypeNode(be.createStringLiteral(l)));t.replaceNode(r,s,m)}var sIe,cIe,DKe=G({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){El(),hp(),sIe="correctQualifiedNameToIndexedAccessType",cIe=[w.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],up({errorCodes:cIe,getCodeActions(t){const r=Nye(t.sourceFile,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,m=>aIe(m,t.sourceFile,r)),l=`${r.left.text}["${r.right.text}"]`;return[Hc(sIe,s,[w.Rewrite_as_the_indexed_access_type_0,l],sIe,w.Rewrite_all_as_indexed_access_types)]},fixIds:[sIe],getAllCodeActions:t=>Km(t,cIe,(r,s)=>{const l=Nye(s.file,s.start);l&&aIe(r,s.file,l)})})}});function IKe(t,r){return to(bf(r,t.start).parent,Oy)}function wye(t,r,s){if(!r)return;const l=r.parent,m=l.parent,y=lIe(r,s);if(y.length===l.elements.length)t.insertModifierBefore(s.sourceFile,156,l);else{const T=be.updateExportDeclaration(m,m.modifiers,!1,be.updateNamedExports(l,gi(l.elements,I=>!ni(y,I))),m.moduleSpecifier,void 0),D=be.createExportDeclaration(void 0,!0,be.createNamedExports(y),m.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,m,T,{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,m,D)}}function lIe(t,r){const s=t.parent;if(s.elements.length===1)return s.elements;const l=nhe(gE(s),r.program.getSemanticDiagnostics(r.sourceFile,r.cancellationToken));return gi(s.elements,m=>{var y;return m===t||((y=gce(m,l))==null?void 0:y.code)===uIe[0]})}var uIe,Rye,kKe=G({"src/services/codefixes/convertToTypeOnlyExport.ts"(){El(),hp(),uIe=[w.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Rye="convertToTypeOnlyExport",up({errorCodes:uIe,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>wye(l,IKe(r.span,r.sourceFile),r));if(s.length)return[Hc(Rye,s,w.Convert_to_type_only_export,Rye,w.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Rye],getAllCodeActions:function(r){const s=new Map;return Km(r,uIe,(l,m)=>{const y=IKe(m,r.sourceFile);y&&y0(s,Im(y.parent.parent))&&wye(l,y,r)})}})}});function yle(t,r){const{parent:s}=bf(t,r);return oS(s)||Fv(s)&&s.importClause?s:void 0}function fIe(t,r,s){if(t.parent.parent.name)return!1;const l=t.parent.elements.filter(y=>!y.isTypeOnly);if(l.length===1)return!0;const m=s.getTypeChecker();for(const y of l)if(Wf.Core.eachSymbolReferenceInFile(y.name,m,r,D=>!EA(D)))return!1;return!0}function Xj(t,r,s){var l;if(oS(s))t.replaceNode(r,s,be.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const m=s.importClause;if(m.name&&m.namedBindings)t.replaceNodeWithNodes(r,s,[be.createImportDeclaration(J3(s.modifiers,!0),be.createImportClause(!0,Rg(m.name,!0),void 0),Rg(s.moduleSpecifier,!0),Rg(s.assertClause,!0)),be.createImportDeclaration(J3(s.modifiers,!0),be.createImportClause(!0,void 0,Rg(m.namedBindings,!0)),Rg(s.moduleSpecifier,!0),Rg(s.assertClause,!0))]);else{const y=((l=m.namedBindings)==null?void 0:l.kind)===275?be.updateNamedImports(m.namedBindings,Ol(m.namedBindings.elements,D=>be.updateImportSpecifier(D,!1,D.propertyName,D.name))):m.namedBindings,T=be.updateImportDeclaration(s,s.modifiers,be.updateImportClause(m,!0,m.name,y),s.moduleSpecifier,s.assertClause);t.replaceNode(r,s,T)}}}var c7e,vle,Cft=G({"src/services/codefixes/convertToTypeOnlyImport.ts"(){El(),hp(),c7e=[w.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,w._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],vle="convertToTypeOnlyImport",up({errorCodes:c7e,getCodeActions:function(r){var s;const l=yle(r.sourceFile,r.span.start);if(l){const m=Hs.ChangeTracker.with(r,D=>Xj(D,r.sourceFile,l)),y=l.kind===276&&fIe(l,r.sourceFile,r.program)?Hs.ChangeTracker.with(r,D=>Xj(D,r.sourceFile,l.parent.parent.parent)):void 0,T=Hc(vle,m,l.kind===276?[w.Use_type_0,((s=l.propertyName)==null?void 0:s.text)??l.name.text]:w.Use_import_type,vle,w.Fix_all_with_type_only_imports);return gt(y)?[mC(vle,y,w.Use_import_type),T]:[T]}},fixIds:[vle],getAllCodeActions:function(r){const s=new Set;return Km(r,c7e,(l,m)=>{const y=yle(m.file,m.start);(y==null?void 0:y.kind)===272&&!s.has(y)?(Xj(l,m.file,y),s.add(y)):(y==null?void 0:y.kind)===276&&!s.has(y.parent.parent.parent)&&fIe(y,m.file,r.program)?(Xj(l,m.file,y.parent.parent.parent),s.add(y.parent.parent.parent)):(y==null?void 0:y.kind)===276&&Xj(l,m.file,y)})}})}});function l7e(t,r,s,l,m=!1){if(!A2(r))return;const y=Ift(r);if(!y)return;const T=r.parent,{leftSibling:D,rightSibling:I}=Dft(r);let W=T.getStart(),O="";!D&&T.comment&&(W=PKe(T,T.getStart(),r.getStart()),O=`${l} */${l}`),D&&(m&&A2(D)?(W=r.getStart(),O=""):(W=PKe(T,D.getStart(),r.getStart()),O=`${l} */${l}`));let V=T.getEnd(),ee="";I&&(m&&A2(I)?(V=I.getStart(),ee=`${l}${l}`):(V=I.getStart(),ee=`${l}/**${l} * `)),t.replaceRange(s,{pos:W,end:V},y,{prefix:O,suffix:ee})}function Dft(t){const r=t.parent,s=r.getChildCount()-1,l=r.getChildren().findIndex(T=>T.getStart()===t.getStart()&&T.getEnd()===t.getEnd()),m=l>0?r.getChildAt(l-1):void 0,y=l0;m--)if(!/[*/\s]/g.test(l.substring(m-1,m)))return r+m;return s}function Ift(t){var r;const{typeExpression:s}=t;if(!s)return;const l=(r=t.name)==null?void 0:r.getText();if(l){if(s.kind===329)return NKe(l,s);if(s.kind===316)return kft(l,s)}}function NKe(t,r){const s=wKe(r);if(gt(s))return be.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function kft(t,r){const s=Rg(r.type);if(s)return be.createTypeAliasDeclaration(void 0,be.createIdentifier(t),void 0,s)}function wKe(t){const r=t.jsDocPropertyTags;return gt(r)?Qo(r,l=>{var m;const y=_Ie(l),T=(m=l.typeExpression)==null?void 0:m.type,D=l.isBracketed;let I;if(T&&EW(T)){const W=wKe(T);I=be.createTypeLiteralNode(W)}else T&&(I=Rg(T));if(I&&y){const W=D?be.createToken(58):void 0;return be.createPropertySignature(void 0,y,W,I)}}):void 0}function _Ie(t){return t.name.kind===80?t.name.text:t.name.right.text}function u7e(t){return g1(t)?ea(t.jsDoc,r=>{var s;return(s=r.tags)==null?void 0:s.filter(l=>A2(l))}):[]}var dIe,pIe,RKe=G({"src/services/codefixes/convertTypedefToType.ts"(){El(),hp(),dIe="convertTypedefToType",pIe=[w.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],up({fixIds:[dIe],errorCodes:pIe,getCodeActions(t){const r=NP(t.host,t.formatContext.options),s=bf(t.sourceFile,t.span.start);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>l7e(m,s,t.sourceFile,r));if(l.length>0)return[Hc(dIe,l,w.Convert_typedef_to_TypeScript_type,dIe,w.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>Km(t,pIe,(r,s)=>{const l=NP(t.host,t.formatContext.options),m=bf(s.file,s.start);m&&l7e(r,m,s.file,l,!0)})})}});function Mye(t,r){const s=bf(t,r);if(An(s)){const l=uc(s.parent.parent,Np),m=s.getText(t);return{container:uc(l.parent,e0),typeNode:l.type,constraint:m,name:m==="K"?"P":"K"}}}function mIe(t,r,{container:s,typeNode:l,constraint:m,name:y}){t.replaceNode(r,s,be.createMappedTypeNode(void 0,be.createTypeParameterDeclaration(void 0,y,be.createTypeReferenceNode(m)),void 0,void 0,l,void 0))}var gIe,hIe,MKe=G({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){El(),hp(),gIe="convertLiteralTypeToMappedType",hIe=[w._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],up({errorCodes:hIe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Mye(s,l.start);if(!m)return;const{name:y,constraint:T}=m,D=Hs.ChangeTracker.with(r,I=>mIe(I,s,m));return[Hc(gIe,D,[w.Convert_0_to_1_in_0,T,y],gIe,w.Convert_all_type_literals_to_mapped_type)]},fixIds:[gIe],getAllCodeActions:t=>Km(t,hIe,(r,s)=>{const l=Mye(s.file,s.start);l&&mIe(r,s.file,l)})})}});function f7e(t,r){return ce.checkDefined(h0(bf(t,r)),"There should be a containing class")}function LKe(t){return!t.valueDeclaration||!(tS(t.valueDeclaration)&8)}function yIe(t,r,s,l,m,y){const T=t.program.getTypeChecker(),D=vIe(l,T),I=T.getTypeAtLocation(r),O=T.getPropertiesOfType(I).filter(bb(LKe,ue=>!D.has(ue.escapedName))),V=T.getTypeAtLocation(l),ee=lr(l.members,ue=>pg(ue));V.getNumberIndexType()||oe(I,1),V.getStringIndexType()||oe(I,0);const te=Yj(s,t.program,y,t.host);dB(l,O,s,t,y,te,ue=>de(s,l,ue)),te.writeFixes(m);function oe(ue,Ne){const Be=T.getIndexInfoOfType(ue,Ne);Be&&de(s,l,T.indexInfoToIndexSignatureDeclaration(Be,l,void 0,rV(t)))}function de(ue,Ne,Be){ee?m.insertNodeAfter(ue,ee,Be):m.insertMemberAtStart(ue,Ne,Be)}}function vIe(t,r){const s=hA(t);if(!s)return Td();const l=r.getTypeAtLocation(s),m=r.getPropertiesOfType(l);return Td(m.filter(LKe))}var _7e,Z3,OKe=G({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){El(),hp(),_7e=[w.Class_0_incorrectly_implements_interface_1.code,w.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Z3="fixClassIncorrectlyImplementsInterface",up({errorCodes:_7e,getCodeActions(t){const{sourceFile:r,span:s}=t,l=f7e(r,s.start);return Qo(qb(l),m=>{const y=Hs.ChangeTracker.with(t,T=>yIe(t,m,r,l,T,t.preferences));return y.length===0?void 0:Hc(Z3,y,[w.Implement_interface_0,m.getText(r)],Z3,w.Implement_all_unimplemented_interfaces)})},fixIds:[Z3],getAllCodeActions(t){const r=new Map;return Km(t,_7e,(s,l)=>{const m=f7e(l.file,l.start);if(y0(r,Im(m)))for(const y of qb(m))yIe(t,y,l.file,m,s,t.preferences)})}})}});function Yj(t,r,s,l,m){return FKe(t,r,!1,s,l,m)}function FKe(t,r,s,l,m,y){const T=r.getCompilerOptions(),D=[],I=[],W=new Map,O=new Map;return{addImportFromDiagnostic:V,addImportFromExportedSymbol:ee,writeFixes:oe,hasFixes:de};function V(ue,Ne){const Be=g7e(Ne,ue.code,ue.start,s);!Be||!Be.length||te(Dl(Be))}function ee(ue,Ne){const Be=ce.checkDefined(ue.parent),Ve=cq(ue,iu(T)),pt=r.getTypeChecker(),Le=pt.getMergedSymbol(dg(ue,pt)),ht=Lye(t,Le,Ve,Be,!1,r,m,l,y),ke=EIe(t,r),_t=d7e(t,ce.checkDefined(ht),r,void 0,!!Ne,ke,m,l);_t&&te({fix:_t,symbolName:Ve,errorIdentifierText:void 0})}function te(ue){var Ne,Be;const{fix:Ve,symbolName:pt}=ue;switch(Ve.kind){case 0:D.push(Ve);break;case 1:I.push(Ve);break;case 2:{const{importClauseOrBindingPattern:_t,importKind:Dt,addAsTypeOnly:Ft}=Ve,it=String(Im(_t));let Ye=W.get(it);if(Ye||W.set(it,Ye={importClauseOrBindingPattern:_t,defaultImport:void 0,namedImports:new Map}),Dt===0){const ut=Ye==null?void 0:Ye.namedImports.get(pt);Ye.namedImports.set(pt,Le(ut,Ft))}else ce.assert(Ye.defaultImport===void 0||Ye.defaultImport.name===pt,"(Add to Existing) Default import should be missing or match symbolName"),Ye.defaultImport={name:pt,addAsTypeOnly:Le((Ne=Ye.defaultImport)==null?void 0:Ne.addAsTypeOnly,Ft)};break}case 3:{const{moduleSpecifier:_t,importKind:Dt,useRequire:Ft,addAsTypeOnly:it}=Ve,Ye=ht(_t,Dt,Ft,it);switch(ce.assert(Ye.useRequire===Ft,"(Add new) Tried to add an `import` and a `require` for the same module"),Dt){case 1:ce.assert(Ye.defaultImport===void 0||Ye.defaultImport.name===pt,"(Add new) Default import should be missing or match symbolName"),Ye.defaultImport={name:pt,addAsTypeOnly:Le((Be=Ye.defaultImport)==null?void 0:Be.addAsTypeOnly,it)};break;case 0:const ut=(Ye.namedImports||(Ye.namedImports=new Map)).get(pt);Ye.namedImports.set(pt,Le(ut,it));break;case 3:case 2:ce.assert(Ye.namespaceLikeImport===void 0||Ye.namespaceLikeImport.name===pt,"Namespacelike import shoudl be missing or match symbolName"),Ye.namespaceLikeImport={importKind:Dt,name:pt,addAsTypeOnly:it};break}break}case 4:break;default:ce.assertNever(Ve,`fix wasn't never - got kind ${Ve.kind}`)}function Le(_t,Dt){return Math.max(_t??0,Dt)}function ht(_t,Dt,Ft,it){const Ye=ke(_t,!0),ut=ke(_t,!1),lt=O.get(Ye),zt=O.get(ut),Wt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ft};return Dt===1&&it===2?lt||(O.set(Ye,Wt),Wt):it===1&&(lt||zt)?lt||zt:zt||(O.set(ut,Wt),Wt)}function ke(_t,Dt){return`${Dt?1:0}|${_t}`}}function oe(ue,Ne){let Be;t.imports.length===0&&Ne!==void 0?Be=Ne:Be=Jx(t,l);for(const pt of D)AIe(ue,t,pt);for(const pt of I)CIe(ue,t,pt,Be);W.forEach(({importClauseOrBindingPattern:pt,defaultImport:Le,namedImports:ht})=>{A7e(ue,t,pt,Le,oc(ht.entries(),([ke,_t])=>({addAsTypeOnly:_t,name:ke})),l)});let Ve;O.forEach(({useRequire:pt,defaultImport:Le,namedImports:ht,namespaceLikeImport:ke},_t)=>{const Dt=_t.slice(2),it=(pt?D7e:C7e)(Dt,Be,Le,ht&&oc(ht.entries(),([Ye,ut])=>({addAsTypeOnly:ut,name:Ye})),ke,T);Ve=FD(Ve,it)}),Ve&&OS(ue,t,Ve,!0,l)}function de(){return D.length>0||I.length>0||W.size>0||O.size>0}}function Pft(t,r,s,l){const m=oB(t,l,s),y=m7e(r.getTypeChecker(),t,r.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:T};function T(D,I,W,O){const{fixes:V,computedWithoutCacheCount:ee}=bIe(D,I,W,!1,r,t,s,l,y,O),te=h7e(V,t,r,m,s);return te&&{...te,computedWithoutCacheCount:ee}}}function WKe(t,r,s,l,m,y,T,D,I,W,O,V){const ee=D.getCompilerOptions();let te;s?(te=fq(l,T,D,O,V).get(l.path,s),ce.assertIsDefined(te,"Some exportInfo should match the specified exportMapKey")):(te=vMe(HE(r.name))?[Nft(t,m,r,D,T)]:Lye(l,t,m,r,y,D,T,O,V),ce.assertIsDefined(te,"Some exportInfo should match the specified symbol / moduleSymbol"));const oe=EIe(l,D),de=EA(bf(l,W)),ue=ce.checkDefined(d7e(l,te,D,W,de,oe,T,O));return{moduleSpecifier:ue.moduleSpecifier,codeAction:zKe(xIe({host:T,formatContext:I,preferences:O},l,m,ue,!1,ee,O))}}function BKe(t,r,s,l,m,y){const T=s.getCompilerOptions(),D=_U(T7e(t,s.getTypeChecker(),r,T)),I=$Ke(t,r,D,s),W=D!==r.text;return I&&zKe(xIe({host:l,formatContext:m,preferences:y},t,D,I,W,T,y))}function d7e(t,r,s,l,m,y,T,D){const I=oB(t,D,T);return h7e(bIe(r,l,m,y,s,t,T,D).fixes,t,s,I,T)}function zKe({description:t,changes:r,commands:s}){return{description:t,changes:r,commands:s}}function Lye(t,r,s,l,m,y,T,D,I){const W=GKe(y,T);return fq(t,T,y,D,I).search(t.path,m,O=>O===s,O=>{if(dg(O[0].symbol,W(O[0].isFromPackageJson))===r&&O.some(V=>V.moduleSymbol===l||V.symbol.parent===l))return O})}function Nft(t,r,s,l,m){var y,T;const D=l.getCompilerOptions(),I=O(l.getTypeChecker(),!1);if(I)return I;const W=(T=(y=m.getPackageJsonAutoImportProvider)==null?void 0:y.call(m))==null?void 0:T.getTypeChecker();return ce.checkDefined(W&&O(W,!0),"Could not find symbol in specified module for code actions");function O(V,ee){const te=_he(s,V,D);if(te&&dg(te.symbol,V)===t)return{symbol:te.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:te.exportKind,targetFlags:dg(t,V).flags,isFromPackageJson:ee};const oe=V.tryGetMemberInModuleExportsAndProperties(r,s);if(oe&&dg(oe,V)===t)return{symbol:oe,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:dg(t,V).flags,isFromPackageJson:ee}}}function bIe(t,r,s,l,m,y,T,D,I=m7e(m.getTypeChecker(),y,m.getCompilerOptions()),W){const O=m.getTypeChecker(),V=ea(t,I.getImportsForExportInfo),ee=r!==void 0&&p7e(V,r),te=SIe(V,s,O,m.getCompilerOptions());if(te)return{computedWithoutCacheCount:0,fixes:[...ee?[ee]:Zn,te]};const{fixes:oe,computedWithoutCacheCount:de=0}=jKe(t,V,m,y,r,s,l,T,D,W);return{computedWithoutCacheCount:de,fixes:[...ee?[ee]:Zn,...oe]}}function p7e(t,r){return Yr(t,({declaration:s,importKind:l})=>{var m;if(l!==0)return;const y=wft(s),T=y&&((m=VL(s))==null?void 0:m.text);if(T)return{kind:0,namespacePrefix:y,usagePosition:r,moduleSpecifier:T}})}function wft(t){var r,s,l;switch(t.kind){case 260:return(r=to(t.name,An))==null?void 0:r.text;case 271:return t.name.text;case 272:return(l=to((s=t.importClause)==null?void 0:s.namedBindings,YL))==null?void 0:l.name.text;default:return ce.assertNever(t)}}function TIe(t,r,s,l,m,y){return t?r&&y.importsNotUsedAsValues===2||Qie(y)&&(!(l&111551)||m.getTypeOnlyAliasDeclaration(s))?2:1:4}function SIe(t,r,s,l){let m;for(const T of t){const D=y(T);if(!D)continue;const I=$g(D.importClauseOrBindingPattern);if(D.addAsTypeOnly!==4&&I||D.addAsTypeOnly===4&&!I)return D;m??(m=D)}return m;function y({declaration:T,importKind:D,symbol:I,targetFlags:W}){if(D===3||D===2||T.kind===271)return;if(T.kind===260)return(D===0||D===1)&&T.name.kind===206?{kind:2,importClauseOrBindingPattern:T.name,importKind:D,moduleSpecifier:T.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:O}=T;if(!O||!sp(T.moduleSpecifier))return;const{name:V,namedBindings:ee}=O;if(O.isTypeOnly&&!(D===0&&ee))return;const te=TIe(r,!1,I,W,s,l);if(!(D===1&&(V||te===2&&ee))&&!(D===0&&(ee==null?void 0:ee.kind)===274))return{kind:2,importClauseOrBindingPattern:O,importKind:D,moduleSpecifier:T.moduleSpecifier.text,addAsTypeOnly:te}}}function m7e(t,r,s){let l;for(const m of r.imports){const y=b2(m);if(sH(y.parent)){const T=t.resolveExternalModuleName(m);T&&(l||(l=zg())).add(Bp(T),y.parent)}else if(y.kind===272||y.kind===271){const T=t.getSymbolAtLocation(m);T&&(l||(l=zg())).add(Bp(T),y)}}return{getImportsForExportInfo:({moduleSymbol:m,exportKind:y,targetFlags:T,symbol:D})=>{if(!(T&111551)&&v1(r))return Zn;const I=l==null?void 0:l.get(Bp(m));if(!I)return Zn;const W=v7e(r,y,s);return I.map(O=>({declaration:O,importKind:W,symbol:D,targetFlags:T}))}}}function EIe(t,r){if(!v1(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=r.getCompilerOptions();if(s.configFile)return Zp(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const l of r.getSourceFiles())if(!(l===t||!v1(l)||r.isSourceFileFromExternalLibrary(l))){if(l.commonJsModuleIndicator&&!l.externalModuleIndicator)return!0;if(l.externalModuleIndicator&&!l.commonJsModuleIndicator)return!1}return!0}function GKe(t,r){return p0(s=>s?r.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function Rft(t,r,s,l,m,y,T,D,I){const W=v1(r),O=t.getCompilerOptions(),V=h4(t,T),ee=GKe(t,T),te=Jd(O),oe=U3(te),de=I?Be=>({moduleSpecifiers:M3.tryGetModuleSpecifiersFromCache(Be,r,V,D),computedWithoutCache:!1}):(Be,Ve)=>M3.getModuleSpecifiersWithCacheInfo(Be,Ve,O,r,V,D);let ue=0;const Ne=ea(y,(Be,Ve)=>{const pt=ee(Be.isFromPackageJson),{computedWithoutCache:Le,moduleSpecifiers:ht}=de(Be.moduleSymbol,pt),ke=!!(Be.targetFlags&111551),_t=TIe(l,!0,Be.symbol,Be.targetFlags,pt,O);return ue+=Le?1:0,Qo(ht,Dt=>{var Ft;if(oe&&NW(Dt))return;if(!ke&&W&&s!==void 0)return{kind:1,moduleSpecifier:Dt,usagePosition:s,exportInfo:Be,isReExport:Ve>0};const it=v7e(r,Be.exportKind,O);let Ye;if(s!==void 0&&it===3&&Be.exportKind===0){const ut=pt.resolveExternalModuleSymbol(Be.moduleSymbol);let lt;ut!==Be.moduleSymbol&&(lt=(Ft=GAe(ut,pt,O))==null?void 0:Ft.name),lt||(lt=Fye(Be.moduleSymbol,iu(O),!1)),Ye={namespacePrefix:lt,usagePosition:s}}return{kind:3,moduleSpecifier:Dt,importKind:it,useRequire:m,addAsTypeOnly:_t,exportInfo:Be,isReExport:Ve>0,qualification:Ye}})});return{computedWithoutCacheCount:ue,fixes:Ne}}function jKe(t,r,s,l,m,y,T,D,I,W){const O=Yr(r,V=>Mft(V,y,T,s.getTypeChecker(),s.getCompilerOptions()));return O?{fixes:[O]}:Rft(s,l,m,y,T,t,D,I,W)}function Mft({declaration:t,importKind:r,symbol:s,targetFlags:l},m,y,T,D){var I;const W=(I=VL(t))==null?void 0:I.text;if(W){const O=y?4:TIe(m,!0,s,l,T,D);return{kind:3,moduleSpecifier:W,importKind:r,addAsTypeOnly:O,useRequire:y}}}function g7e(t,r,s,l){const m=bf(t.sourceFile,s);let y;if(r===w._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)y=y7e(t,m);else if(An(m))if(r===w._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const D=_U(T7e(t.sourceFile,t.program.getTypeChecker(),m,t.program.getCompilerOptions())),I=$Ke(t.sourceFile,m,D,t.program);return I&&[{fix:I,symbolName:D,errorIdentifierText:m.text}]}else y=b7e(t,m,l);else return;const T=oB(t.sourceFile,t.preferences,t.host);return y&&VKe(y,t.sourceFile,t.program,T,t.host)}function VKe(t,r,s,l,m){const y=T=>_h(T,m.getCurrentDirectory(),hR(m));return fN(t,(T,D)=>Z0(!!T.isJsxNamespaceFix,!!D.isJsxNamespaceFix)||pf(T.fix.kind,D.fix.kind)||UKe(T.fix,D.fix,r,s,l.allowsImportingSpecifier,y))}function h7e(t,r,s,l,m){if(gt(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((y,T)=>UKe(T,y,r,s,l.allowsImportingSpecifier,D=>_h(D,m.getCurrentDirectory(),hR(m)))===-1?T:y)}function UKe(t,r,s,l,m,y){return t.kind!==0&&r.kind!==0?Z0(m(r.moduleSpecifier),m(t.moduleSpecifier))||Oft(t.moduleSpecifier,r.moduleSpecifier,s,l)||Z0(HKe(t,s,l.getCompilerOptions(),y),HKe(r,s,l.getCompilerOptions(),y))||Z9(t.moduleSpecifier,r.moduleSpecifier):0}function HKe(t,r,s,l){var m;if(t.isReExport&&((m=t.exportInfo)!=null&&m.moduleFileName)&&Jd(s)===2&&Lft(t.exportInfo.moduleFileName)){const y=l(qc(t.exportInfo.moduleFileName));return xf(r.path,y)}return!1}function Lft(t){return Iy(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Oft(t,r,s,l){return xf(t,"node:")&&!xf(r,"node:")?hce(s,l)?-1:1:xf(r,"node:")&&!xf(t,"node:")?hce(s,l)?1:-1:0}function y7e({sourceFile:t,program:r,host:s,preferences:l},m){const y=r.getTypeChecker(),T=Fft(m,y);if(!T)return;const D=y.getAliasedSymbol(T),I=T.name,W=[{symbol:T,moduleSymbol:D,moduleFileName:void 0,exportKind:3,targetFlags:D.flags,isFromPackageJson:!1}],O=EIe(t,r);return bIe(W,void 0,!1,O,r,t,s,l).fixes.map(ee=>{var te;return{fix:ee,symbolName:I,errorIdentifierText:(te=to(m,An))==null?void 0:te.text}})}function Fft(t,r){const s=An(t)?r.getSymbolAtLocation(t):void 0;if(MH(s))return s;const{parent:l}=t;if(Y1(l)&&l.tagName===t||zx(l)){const m=r.resolveName(r.getJsxNamespace(l),Y1(l)?t:l,111551,!1);if(MH(m))return m}}function v7e(t,r,s,l){if(s.verbatimModuleSyntax&&(Zp(s)===1||t.impliedNodeFormat===1))return 3;switch(r){case 0:return 0;case 1:return 1;case 2:return Bft(t,s,!!l);case 3:return JKe(t,s,!!l);default:return ce.assertNever(r)}}function JKe(t,r,s){if(VN(r))return 1;const l=Zp(r);switch(l){case 2:case 1:case 3:return Rs(t)&&(Wv(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 ce.assertNever(l,`Unexpected moduleKind ${l}`)}}function b7e({sourceFile:t,program:r,cancellationToken:s,host:l,preferences:m},y,T){const D=r.getTypeChecker(),I=r.getCompilerOptions();return ea(T7e(t,D,y,I),W=>{if(W==="default")return;const O=EA(y),V=EIe(t,r),ee=S7e(W,$M(y),z3(y),s,t,r,T,l,m);return oc(Ky(ee.values(),te=>bIe(te,y.getStart(t),O,V,r,t,l,m).fixes),te=>({fix:te,symbolName:W,errorIdentifierText:y.text,isJsxNamespaceFix:W!==y.text}))})}function $Ke(t,r,s,l){const m=l.getTypeChecker(),y=m.resolveName(s,r,111551,!0);if(!y)return;const T=m.getTypeOnlyAliasDeclaration(y);if(!(!T||ns(T)!==t))return{kind:4,typeOnlyAliasDeclaration:T}}function T7e(t,r,s,l){const m=s.parent;if((Y1(m)||Sk(m))&&m.tagName===s&&lhe(l.jsx)){const y=r.getJsxNamespace(t);if(Wft(y,s,r))return!z9(s.text)&&!r.resolveName(s.text,s,111551,!1)?[s.text,y]:[y]}return[s.text]}function Wft(t,r,s){if(z9(r.text))return!0;const l=s.resolveName(t,r,111551,!0);return!l||gt(l.declarations,sR)&&!(l.flags&111551)}function S7e(t,r,s,l,m,y,T,D,I){var W;const O=zg(),V=oB(m,I,D),ee=(W=D.getModuleSpecifierCache)==null?void 0:W.call(D),te=p0(de=>h4(de?D.getPackageJsonAutoImportProvider():y,D));function oe(de,ue,Ne,Be,Ve,pt){const Le=te(pt);if(ue&&vce(Ve,m,ue,I,V,Le,ee)||!ue&&V.allowsImportingAmbientModule(de,Le)){const ht=Ve.getTypeChecker();O.add(Nj(Ne,ht).toString(),{symbol:Ne,moduleSymbol:de,moduleFileName:ue==null?void 0:ue.fileName,exportKind:Be,targetFlags:dg(Ne,ht).flags,isFromPackageJson:pt})}}return eee(y,D,I,T,(de,ue,Ne,Be)=>{const Ve=Ne.getTypeChecker();l.throwIfCancellationRequested();const pt=Ne.getCompilerOptions(),Le=_he(de,Ve,pt);Le&&(Le.name===t||Fye(de,iu(pt),r)===t)&&DIe(Le.resolvedSymbol,s)&&oe(de,ue,Le.symbol,Le.exportKind,Ne,Be);const ht=Ve.tryGetMemberInModuleExportsAndProperties(t,de);ht&&DIe(ht,s)&&oe(de,ue,ht,0,Ne,Be)}),O}function Bft(t,r,s){const l=VN(r),m=Rs(t);if(!m&&Zp(r)>=5)return l?1:2;if(m)return Wv(t)||s?l?1:2:3;for(const y of t.statements)if(kh(y)&&!Um(y.moduleReference))return 3;return l?1:3}function xIe(t,r,s,l,m,y,T){let D;const I=Hs.ChangeTracker.with(t,W=>{D=zft(W,r,s,l,m,y,T)});return Hc(Bye,I,D,zye,w.Add_all_missing_imports)}function zft(t,r,s,l,m,y,T){const D=Jx(r,T);switch(l.kind){case 0:return AIe(t,r,l),[w.Change_0_to_1,s,`${l.namespacePrefix}.${s}`];case 1:return CIe(t,r,l,D),[w.Change_0_to_1,s,Oye(l.moduleSpecifier,D)+s];case 2:{const{importClauseOrBindingPattern:I,importKind:W,addAsTypeOnly:O,moduleSpecifier:V}=l;A7e(t,r,I,W===1?{name:s,addAsTypeOnly:O}:void 0,W===0?[{name:s,addAsTypeOnly:O}]:Zn,T);const ee=HE(V);return m?[w.Import_0_from_1,s,ee]:[w.Update_import_from_0,ee]}case 3:{const{importKind:I,moduleSpecifier:W,addAsTypeOnly:O,useRequire:V,qualification:ee}=l,te=V?D7e:C7e,oe=I===1?{name:s,addAsTypeOnly:O}:void 0,de=I===0?[{name:s,addAsTypeOnly:O}]:void 0,ue=I===2||I===3?{importKind:I,name:(ee==null?void 0:ee.namespacePrefix)||s,addAsTypeOnly:O}:void 0;return OS(t,r,te(W,D,oe,de,ue,y),!0,T),ee&&AIe(t,r,ee),m?[w.Import_0_from_1,s,W]:[w.Add_import_from_0,W]}case 4:{const{typeOnlyAliasDeclaration:I}=l,W=x7e(t,I,y,r,T);return W.kind===276?[w.Remove_type_from_import_of_0_from_1,s,E7e(W.parent.parent)]:[w.Remove_type_from_import_declaration_from_0,E7e(W)]}default:return ce.assertNever(l,`Unexpected fix kind ${l.kind}`)}}function E7e(t){var r,s;return t.kind===271?((s=to((r=to(t.moduleReference,j0))==null?void 0:r.expression,sp))==null?void 0:s.text)||t.moduleReference.getText():uc(t.parent.moduleSpecifier,Wp).text}function x7e(t,r,s,l,m){const y=Qie(s);switch(r.kind){case 276:if(r.isTypeOnly){const D=CI.detectImportSpecifierSorting(r.parent.elements,m);if(r.parent.elements.length>1&&D){t.delete(l,r);const I=be.updateImportSpecifier(r,!1,r.propertyName,r.name),W=CI.getOrganizeImportsComparer(m,D===2),O=CI.getImportSpecifierInsertionIndex(r.parent.elements,I,W);t.insertImportSpecifierAtIndex(l,I,r.parent,O)}else t.deleteRange(l,r.getFirstToken());return r}else return ce.assert(r.parent.parent.isTypeOnly),T(r.parent.parent),r.parent.parent;case 273:return T(r),r;case 274:return T(r.parent),r.parent;case 271:return t.deleteRange(l,r.getChildAt(1)),r;default:ce.failBadSyntaxKind(r)}function T(D){if(t.delete(l,ice(D,l)),!s.allowImportingTsExtensions){const I=VL(D.parent),W=I&&XU(l,I.text,kA(l,I));if(W!=null&&W.resolvedUsingTsExtension){const O=RU(I.text,zQ(I.text,s));t.replaceNode(l,I,be.createStringLiteral(O))}}if(y){const I=to(D.namedBindings,y6);if(I&&I.elements.length>1){CI.detectImportSpecifierSorting(I.elements,m)&&r.kind===276&&I.elements.indexOf(r)!==0&&(t.delete(l,r),t.insertImportSpecifierAtIndex(l,r,I,0));for(const W of I.elements)W!==r&&!W.isTypeOnly&&t.insertModifierBefore(l,156,W)}}}}function A7e(t,r,s,l,m,y){var T;if(s.kind===206){l&&W(s,l.name,"default");for(const O of m)W(s,O.name,void 0);return}const D=s.isTypeOnly&>([l,...m],O=>(O==null?void 0:O.addAsTypeOnly)===4),I=s.namedBindings&&((T=to(s.namedBindings,y6))==null?void 0:T.elements);if(l&&(ce.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,s.getStart(r),be.createIdentifier(l.name),{suffix:", "})),m.length){let O;if(typeof y.organizeImportsIgnoreCase=="boolean")O=y.organizeImportsIgnoreCase;else if(I){const oe=CI.detectImportSpecifierSorting(I,y);oe!==3&&(O=oe===2)}O===void 0&&(O=CI.detectSorting(r,y)===2);const V=CI.getOrganizeImportsComparer(y,O),ee=nh(m.map(oe=>be.createImportSpecifier((!s.isTypeOnly||D)&&ble(oe),void 0,be.createIdentifier(oe.name))),(oe,de)=>CI.compareImportOrExportSpecifiers(oe,de,V)),te=(I==null?void 0:I.length)&&CI.detectImportSpecifierSorting(I,y);if(te&&!(O&&te===1))for(const oe of ee){const de=D&&!oe.isTypeOnly?0:CI.getImportSpecifierInsertionIndex(I,oe,V);t.insertImportSpecifierAtIndex(r,oe,s.namedBindings,de)}else if(I!=null&&I.length)for(const oe of ee)t.insertNodeInListAfter(r,yl(I),oe,I);else if(ee.length){const oe=be.createNamedImports(ee);s.namedBindings?t.replaceNode(r,s.namedBindings,oe):t.insertNodeAfter(r,ce.checkDefined(s.name,"Import clause must have either named imports or a default import"),oe)}}if(D&&(t.delete(r,ice(s,r)),I))for(const O of I)t.insertModifierBefore(r,156,O);function W(O,V,ee){const te=be.createBindingElement(void 0,ee,V);O.elements.length?t.insertNodeInListAfter(r,yl(O.elements),te):t.replaceNode(r,O,be.createObjectBindingPattern([te]))}}function AIe(t,r,{namespacePrefix:s,usagePosition:l}){t.insertText(r,l,s+".")}function CIe(t,r,{moduleSpecifier:s,usagePosition:l},m){t.insertText(r,l,Oye(s,m))}function Oye(t,r){const s=Jge(r);return`import(${s}${t}${s}).`}function ble({addAsTypeOnly:t}){return t===2}function C7e(t,r,s,l,m,y){const T=DF(t,r);let D;if(s!==void 0||l!=null&&l.length){const I=(!s||ble(s))&&jr(l,ble)||y.verbatimModuleSyntax&&(s==null?void 0:s.addAsTypeOnly)!==4&&!gt(l,W=>W.addAsTypeOnly===4);D=FD(D,Pk(s&&be.createIdentifier(s.name),l==null?void 0:l.map(({addAsTypeOnly:W,name:O})=>be.createImportSpecifier(!I&&W===2,void 0,be.createIdentifier(O))),t,r,I))}if(m){const I=m.importKind===3?be.createImportEqualsDeclaration(void 0,ble(m),be.createIdentifier(m.name),be.createExternalModuleReference(T)):be.createImportDeclaration(void 0,be.createImportClause(ble(m),void 0,be.createNamespaceImport(be.createIdentifier(m.name))),T,void 0);D=FD(D,I)}return ce.checkDefined(D)}function D7e(t,r,s,l,m){const y=DF(t,r);let T;if(s||l!=null&&l.length){const D=(l==null?void 0:l.map(({name:W})=>be.createBindingElement(void 0,void 0,W)))||[];s&&D.unshift(be.createBindingElement(void 0,"default",s.name));const I=I7e(be.createObjectBindingPattern(D),y);T=FD(T,I)}if(m){const D=I7e(m.name,y);T=FD(T,D)}return ce.checkDefined(T)}function I7e(t,r){return be.createVariableStatement(void 0,be.createVariableDeclarationList([be.createVariableDeclaration(typeof t=="string"?be.createIdentifier(t):t,void 0,void 0,be.createCallExpression(be.createIdentifier("require"),void 0,[r]))],2))}function DIe({declarations:t},r){return gt(t,s=>!!(G$(s)&r))}function Fye(t,r,s){return Wye(wg(HE(t.name)),r,s)}function Wye(t,r,s){const l=Iy(DM(t,"/index"));let m="",y=!0;const T=l.charCodeAt(0);nR(T,r)?(m+=String.fromCharCode(T),s&&(m=m.toUpperCase())):y=!1;for(let D=1;DxIe(t,l,I,D,I!==W,y.getCompilerOptions(),s))},fixIds:[zye],getAllCodeActions:t=>{const{sourceFile:r,program:s,preferences:l,host:m,cancellationToken:y}=t,T=FKe(r,s,!0,l,m,y);return LF(t,k7e,D=>T.addImportFromDiagnostic(D,t)),GR(Hs.ChangeTracker.with(t,T.writeFixes))}})}});function P7e(t,r,s){const l=lr(t.getSemanticDiagnostics(r),T=>T.start===s.start&&T.length===s.length);if(l===void 0||l.relatedInformation===void 0)return;const m=lr(l.relatedInformation,T=>T.code===w.This_type_parameter_might_need_an_extends_0_constraint.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;let y=yve(m.file,nb(m.start,m.length));if(y!==void 0&&(An(y)&&Hh(y.parent)&&(y=y.parent),Hh(y))){if(yW(y.parent))return;const T=bf(r,s.start),D=t.getTypeChecker();return{constraint:IIe(D,T)||Gft(m.messageText),declaration:y,token:T}}}function KKe(t,r,s,l,m,y){const{declaration:T,constraint:D}=y,I=r.getTypeChecker();if(As(D))t.insertText(m,T.name.end,` extends ${D}`);else{const W=iu(r.getCompilerOptions()),O=rV({program:r,host:l}),V=Yj(m,r,s,l),ee=gve(I,V,D,void 0,W,void 0,O);ee&&(t.replaceNode(m,T,be.updateTypeParameterDeclaration(T,void 0,T.name,ee,T.default)),V.writeFixes(t))}}function Gft(t){const[r,s]=d4(t,` +`,0).match(/`extends (.*)`/)||[];return s}function IIe(t,r){return Uu(r.parent)?t.getTypeArgumentConstraint(r.parent):(Nr(r)?t.getContextualType(r):void 0)||t.getTypeAtLocation(r)}var Tle,N7e,XKe=G({"src/services/codefixes/fixAddMissingConstraint.ts"(){El(),hp(),Tle="addMissingConstraint",N7e=[w.Type_0_is_not_comparable_to_type_1.code,w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,w.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,w.Type_0_is_not_assignable_to_type_1.code,w.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,w.Property_0_is_incompatible_with_index_signature.code,w.Property_0_in_type_1_is_not_assignable_to_type_2.code,w.Type_0_does_not_satisfy_the_constraint_1.code],up({errorCodes:N7e,getCodeActions(t){const{sourceFile:r,span:s,program:l,preferences:m,host:y}=t,T=P7e(l,r,s);if(T===void 0)return;const D=Hs.ChangeTracker.with(t,I=>KKe(I,l,m,y,r,T));return[Hc(Tle,D,w.Add_extends_constraint,Tle,w.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Tle],getAllCodeActions:t=>{const{program:r,preferences:s,host:l}=t,m=new Map;return GR(Hs.ChangeTracker.with(t,y=>{LF(t,N7e,T=>{const D=P7e(r,T.file,nb(T.start,T.length));if(D&&y0(m,Im(D.declaration)))return KKe(y,r,s,l,T.file,D)})}))}})}});function YKe(t,r,s,l){switch(s){case w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return jft(t,r.sourceFile,l);case w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return QKe(t,r.sourceFile,l);default:ce.fail("Unexpected error code: "+s)}}function jft(t,r,s){const l=kIe(r,s);if(v1(r)){t.addJSDocTags(r,l,[be.createJSDocOverrideTag(be.createIdentifier("override"))]);return}const m=l.modifiers||Zn,y=lr(m,dW),T=lr(m,ape),D=lr(m,V=>tw(V.kind)),I=ra(m,Qf),W=T?T.end:y?y.end:D?D.end:I?ep(r.text,I.end):l.getStart(r),O=D||y||T?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,W,164,O)}function QKe(t,r,s){const l=kIe(r,s);if(v1(r)){t.filterJSDocTags(r,l,gN(UY));return}const m=lr(l.modifiers,SEe);ce.assertIsDefined(m),t.deleteModifier(r,m)}function w7e(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Eb(t,t.parent);default:return!1}}function kIe(t,r){const s=bf(t,r),l=Kr(s,m=>Jl(m)?"quit":w7e(m));return ce.assert(l&&w7e(l)),l}var Qj,eO,Mq,Gye,R7e,ZKe=G({"src/services/codefixes/fixOverrideModifier.ts"(){El(),hp(),Qj="fixOverrideModifier",eO="fixAddOverrideModifier",Mq="fixRemoveOverrideModifier",Gye=[w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],R7e={[w.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_override_modifier},[w.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Add_all_missing_override_modifiers},[w.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:w.Add_override_modifier,fixId:eO,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers},[w.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:w.Remove_override_modifier,fixId:Mq,fixAllDescriptions:w.Remove_all_unnecessary_override_modifiers}},up({errorCodes:Gye,getCodeActions:function(r){const{errorCode:s,span:l}=r,m=R7e[s];if(!m)return Zn;const{descriptions:y,fixId:T,fixAllDescriptions:D}=m,I=Hs.ChangeTracker.with(r,W=>YKe(W,r,s,l.start));return[NOe(Qj,I,y,T,D)]},fixIds:[Qj,eO,Mq],getAllCodeActions:t=>Km(t,Gye,(r,s)=>{const{code:l,start:m}=s,y=R7e[l];!y||y.fixId!==t.fixId||YKe(r,t,l,m)})})}});function M7e(t,r,s,l){const m=Jx(r,l),y=be.createStringLiteral(s.name.text,m===0);t.replaceNode(r,s,BU(s)?be.createElementAccessChain(s.expression,s.questionDotToken,y):be.createElementAccessExpression(s.expression,y))}function jye(t,r){return uc(bf(t,r).parent,sa)}var Sle,L7e,eXe=G({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){El(),hp(),Sle="fixNoPropertyAccessFromIndexSignature",L7e=[w.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],up({errorCodes:L7e,fixIds:[Sle],getCodeActions(t){const{sourceFile:r,span:s,preferences:l}=t,m=jye(r,s.start),y=Hs.ChangeTracker.with(t,T=>M7e(T,t.sourceFile,m,l));return[Hc(Sle,y,[w.Use_element_access_for_0,m.name.text],Sle,w.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>Km(t,L7e,(r,s)=>M7e(r,s.file,jye(s.file,s.start),t.preferences))})}});function Vye(t,r,s,l){const m=bf(r,s);if(!KW(m))return;const y=Q1(m,!1,!1);if(!(!b0(y)&&!Dm(y))&&!tl(Q1(y,!1,!1))){const T=ce.checkDefined(Wm(y,100,r)),{name:D}=y,I=ce.checkDefined(y.body);return Dm(y)?D&&Wf.Core.isSymbolReferencedInFile(D,l,r,I)?void 0:(t.delete(r,T),D&&t.delete(r,D),t.insertText(r,I.pos," =>"),[w.Convert_function_expression_0_to_arrow_function,D?D.text:cB]):(t.replaceNode(r,T,be.createToken(87)),t.insertText(r,D.end," = "),t.insertText(r,I.pos," =>"),[w.Convert_function_declaration_0_to_arrow_function,D.text])}}var Ele,O7e,tXe=G({"src/services/codefixes/fixImplicitThis.ts"(){El(),hp(),Ele="fixImplicitThis",O7e=[w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],up({errorCodes:O7e,getCodeActions:function(r){const{sourceFile:s,program:l,span:m}=r;let y;const T=Hs.ChangeTracker.with(r,D=>{y=Vye(D,s,m.start,l.getTypeChecker())});return y?[Hc(Ele,T,y,Ele,w.Fix_all_implicit_this_errors)]:Zn},fixIds:[Ele],getAllCodeActions:t=>Km(t,O7e,(r,s)=>{Vye(r,s.file,s.start,t.program.getTypeChecker())})})}});function nXe(t,r,s){var l;const m=bf(t,r);if(An(m)){const y=Kr(m,Fv);if(y===void 0)return;const T=Wp(y.moduleSpecifier)?y.moduleSpecifier.text:void 0;if(T===void 0)return;const D=XU(t,T,void 0);if(D===void 0)return;const I=s.getSourceFile(D.resolvedFileName);if(I===void 0||lq(s,I))return;const W=I.symbol,O=(l=to(W.valueDeclaration,lk))==null?void 0:l.locals;if(O===void 0)return;const V=O.get(m.escapedText);if(V===void 0)return;const ee=PIe(V);return ee===void 0?void 0:{exportName:{node:m,isTypeOnly:f6(ee)},node:ee,moduleSourceFile:I,moduleSpecifier:T}}}function F7e(t,r,{exportName:s,node:l,moduleSourceFile:m}){const y=Uye(m,s.isTypeOnly);y?W7e(t,r,m,y,[s]):nW(l)?t.insertExportModifier(m,l):B7e(t,r,m,[s])}function xle(t,r,s,l,m){Nt(l)&&(m?W7e(t,r,s,m,l):B7e(t,r,s,l))}function Uye(t,r){const s=l=>mh(l)&&(r&&l.isTypeOnly||!l.isTypeOnly);return ra(t.statements,s)}function W7e(t,r,s,l,m){const y=l.exportClause&&G0(l.exportClause)?l.exportClause.elements:be.createNodeArray([]),T=!l.isTypeOnly&&!!(F0(r.getCompilerOptions())||lr(y,D=>D.isTypeOnly));t.replaceNode(s,l,be.updateExportDeclaration(l,l.modifiers,l.isTypeOnly,be.createNamedExports(be.createNodeArray([...y,...rXe(m,T)],y.hasTrailingComma)),l.moduleSpecifier,l.assertClause))}function B7e(t,r,s,l){t.insertNodeAtEndOfScope(s,s,be.createExportDeclaration(void 0,!1,be.createNamedExports(rXe(l,F0(r.getCompilerOptions()))),void 0,void 0))}function rXe(t,r){return be.createNodeArray(Vn(t,s=>be.createExportSpecifier(r&&s.isTypeOnly,void 0,s.node)))}function PIe(t){if(t.valueDeclaration===void 0)return pp(t.declarations);const r=t.valueDeclaration,s=ff(r)?to(r.parent.parent,Dh):void 0;return s&&Nt(s.declarationList.declarations)===1?s:r}var Ale,z7e,Vft=G({"src/services/codefixes/fixImportNonExportedMember.ts"(){El(),hp(),Ale="fixImportNonExportedMember",z7e=[w.Module_0_declares_1_locally_but_it_is_not_exported.code],up({errorCodes:z7e,fixIds:[Ale],getCodeActions(t){const{sourceFile:r,span:s,program:l}=t,m=nXe(r,s.start,l);if(m===void 0)return;const y=Hs.ChangeTracker.with(t,T=>F7e(T,l,m));return[Hc(Ale,y,[w.Export_0_from_module_1,m.exportName.node.text,m.moduleSpecifier],Ale,w.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:r}=t;return GR(Hs.ChangeTracker.with(t,s=>{const l=new Map;LF(t,z7e,m=>{const y=nXe(m.file,m.start,r);if(y===void 0)return;const{exportName:T,node:D,moduleSourceFile:I}=y;if(Uye(I,T.isTypeOnly)===void 0&&nW(D))s.insertExportModifier(I,D);else{const W=l.get(I)||{typeOnlyExports:[],exports:[]};T.isTypeOnly?W.typeOnlyExports.push(T):W.exports.push(T),l.set(I,W)}}),l.forEach((m,y)=>{const T=Uye(y,!0);T&&T.isTypeOnly?(xle(s,r,y,m.typeOnlyExports,T),xle(s,r,y,m.exports,Uye(y,!1))):xle(s,r,y,[...m.exports,...m.typeOnlyExports],T)})}))}})}});function Uft(t,r){const s=bf(t,r);return Kr(s,l=>l.kind===202)}function NIe(t,r,s){if(!s)return;let l=s.type,m=!1,y=!1;for(;l.kind===190||l.kind===191||l.kind===196;)l.kind===190?m=!0:l.kind===191&&(y=!0),l=l.type;const T=be.updateNamedTupleMember(s,s.dotDotDotToken||(y?be.createToken(26):void 0),s.name,s.questionToken||(m?be.createToken(58):void 0),l);T!==s&&t.replaceNode(r,s,T)}var Hye,iXe,oXe=G({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){El(),hp(),Hye="fixIncorrectNamedTupleSyntax",iXe=[w.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,w.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],up({errorCodes:iXe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Uft(s,l.start),y=Hs.ChangeTracker.with(r,T=>NIe(T,s,m));return[Hc(Hye,y,w.Move_labeled_tuple_element_modifiers_to_labels,Hye,w.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Hye]})}});function G7e(t,r,s,l){const m=bf(t,r),y=m.parent;if((l===w.No_overload_matches_this_call.code||l===w.Type_0_is_not_assignable_to_type_1.code)&&!Pb(y))return;const T=s.program.getTypeChecker();let D;if(sa(y)&&y.name===m){ce.assert(uy(m),"Expected an identifier for spelling (property access)");let I=T.getTypeAtLocation(y.expression);y.flags&64&&(I=T.getNonNullableType(I)),D=T.getSuggestedSymbolForNonexistentProperty(m,I)}else if(ys(y)&&y.operatorToken.kind===103&&y.left===m&&Gu(m)){const I=T.getTypeAtLocation(y.right);D=T.getSuggestedSymbolForNonexistentProperty(m,I)}else if(nT(y)&&y.right===m){const I=T.getSymbolAtLocation(y.left);I&&I.flags&1536&&(D=T.getSuggestedSymbolForNonexistentModule(y.right,I))}else if(oS(y)&&y.name===m){ce.assertNode(m,An,"Expected an identifier for spelling (import)");const I=Kr(m,Fv),W=j7e(t,s,I);W&&W.symbol&&(D=T.getSuggestedSymbolForNonexistentModule(m,W.symbol))}else if(Pb(y)&&y.name===m){ce.assertNode(m,An,"Expected an identifier for JSX attribute");const I=Kr(m,Y1),W=T.getContextualTypeForArgumentAtIndex(I,0);D=T.getSuggestedSymbolForNonexistentJSXAttribute(m,W)}else if(il(y,16384)&&Mv(y)&&y.name===m){const I=Kr(m,Jl),W=I?hA(I):void 0,O=W?T.getTypeAtLocation(W):void 0;O&&(D=T.getSuggestedSymbolForNonexistentClassMember(Yv(m),O))}else{const I=z3(m),W=Yv(m);ce.assert(W!==void 0,"name should be defined"),D=T.getSuggestedSymbolForNonexistentSymbol(m,W,Hft(I))}return D===void 0?void 0:{node:m,suggestedSymbol:D}}function aXe(t,r,s,l,m){const y=mp(l);if(!rE(y,m)&&sa(s.parent)){const T=l.valueDeclaration;T&&Xv(T)&&Gu(T.name)?t.replaceNode(r,s,be.createIdentifier(y)):t.replaceNode(r,s.parent,be.createElementAccessExpression(s.parent.expression,be.createStringLiteral(y)))}else t.replaceNode(r,s,be.createIdentifier(y))}function Hft(t){let r=0;return t&4&&(r|=1920),t&2&&(r|=788968),t&1&&(r|=111551),r}function j7e(t,r,s){if(!s||!sp(s.moduleSpecifier))return;const l=XU(t,s.moduleSpecifier.text,kA(t,s.moduleSpecifier));if(l)return r.program.getSourceFile(l.resolvedFileName)}var Jye,V7e,sXe=G({"src/services/codefixes/fixSpelling.ts"(){El(),hp(),Jye="fixSpelling",V7e=[w.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,w.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w.Cannot_find_name_0_Did_you_mean_1.code,w.Could_not_find_name_0_Did_you_mean_1.code,w.Cannot_find_namespace_0_Did_you_mean_1.code,w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,w._0_has_no_exported_member_named_1_Did_you_mean_2.code,w.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,w.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,w.No_overload_matches_this_call.code,w.Type_0_is_not_assignable_to_type_1.code],up({errorCodes:V7e,getCodeActions(t){const{sourceFile:r,errorCode:s}=t,l=G7e(r,t.span.start,t,s);if(!l)return;const{node:m,suggestedSymbol:y}=l,T=iu(t.host.getCompilationSettings()),D=Hs.ChangeTracker.with(t,I=>aXe(I,r,m,y,T));return[Hc("spelling",D,[w.Change_spelling_to_0,mp(y)],Jye,w.Fix_all_detected_spelling_errors)]},fixIds:[Jye],getAllCodeActions:t=>Km(t,V7e,(r,s)=>{const l=G7e(s.file,s.start,t,s.code),m=iu(t.host.getCompilationSettings());l&&aXe(r,t.sourceFile,l.node,l.suggestedSymbol,m)})})}});function wIe(t,r,s){const l=t.createSymbol(4,r.escapedText);l.links.type=t.getTypeAtLocation(s);const m=Td([l]);return t.createAnonymousType(void 0,m,[],[],[])}function $ye(t,r,s,l){if(!r.body||!E_(r.body)||Nt(r.body.statements)!==1)return;const m=Dl(r.body.statements);if(Ou(m)&&RIe(t,r,t.getTypeAtLocation(m.expression),s,l))return{declaration:r,kind:0,expression:m.expression,statement:m,commentSource:m.expression};if(iS(m)&&Ou(m.statement)){const y=be.createObjectLiteralExpression([be.createPropertyAssignment(m.label,m.statement.expression)]),T=wIe(t,m.label,m.statement.expression);if(RIe(t,r,T,s,l))return ph(r)?{declaration:r,kind:1,expression:y,statement:m,commentSource:m.statement.expression}:{declaration:r,kind:0,expression:y,statement:m,commentSource:m.statement.expression}}else if(E_(m)&&Nt(m.statements)===1){const y=Dl(m.statements);if(iS(y)&&Ou(y.statement)){const T=be.createObjectLiteralExpression([be.createPropertyAssignment(y.label,y.statement.expression)]),D=wIe(t,y.label,y.statement.expression);if(RIe(t,r,D,s,l))return{declaration:r,kind:0,expression:T,statement:m,commentSource:y}}}}function RIe(t,r,s,l,m){if(m){const y=t.getSignatureFromDeclaration(r);if(y){il(r,512)&&(s=t.createPromiseType(s));const T=t.createSignature(r,y.typeParameters,y.thisParameter,y.parameters,s,void 0,y.minArgumentCount,y.flags);s=t.createAnonymousType(void 0,Td(),[T],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,l)}function cXe(t,r,s,l){const m=bf(r,s);if(!m.parent)return;const y=Kr(m.parent,J_);switch(l){case w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!y||!y.body||!y.type||!sS(y.type,m)?void 0:$ye(t,y,t.getTypeFromTypeNode(y.type),!1);case w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!y||!el(y.parent)||!y.body)return;const T=y.parent.arguments.indexOf(y);if(T===-1)return;const D=t.getContextualTypeForArgumentAtIndex(y.parent,T);return D?$ye(t,y,D,!0):void 0;case w.Type_0_is_not_assignable_to_type_1.code:if(!vP(m)||!hP(m.parent)&&!Pb(m.parent))return;const I=lXe(m.parent);return!I||!J_(I)||!I.body?void 0:$ye(t,I,t.getTypeAtLocation(m.parent),!0)}}function lXe(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(v6(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function U7e(t,r,s,l){e2(s);const m=UZ(r);t.replaceNode(r,l,be.createReturnStatement(s),{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude,suffix:m?";":void 0})}function H7e(t,r,s,l,m,y){const T=y||MAe(l)?be.createParenthesizedExpression(l):l;e2(m),kF(m,T),t.replaceNode(r,s.body,T)}function uXe(t,r,s,l){t.replaceNode(r,s.body,be.createParenthesizedExpression(l))}function Jft(t,r,s){const l=Hs.ChangeTracker.with(t,m=>U7e(m,t.sourceFile,r,s));return Hc(Ree,l,w.Add_a_return_statement,Mee,w.Add_all_missing_return_statement)}function $ft(t,r,s,l){const m=Hs.ChangeTracker.with(t,y=>H7e(y,t.sourceFile,r,s,l,!1));return Hc(Ree,m,w.Remove_braces_from_arrow_function_body,Lee,w.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function MIe(t,r,s){const l=Hs.ChangeTracker.with(t,m=>uXe(m,t.sourceFile,r,s));return Hc(Ree,l,w.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Cle,w.Wrap_all_object_literal_with_parentheses)}var Ree,Mee,Lee,Cle,J7e,fXe=G({"src/services/codefixes/returnValueCorrect.ts"(){El(),hp(),Ree="returnValueCorrect",Mee="fixAddReturnStatement",Lee="fixRemoveBracesFromArrowFunctionBody",Cle="fixWrapTheBlockWithParen",J7e=[w.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,w.Type_0_is_not_assignable_to_type_1.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],up({errorCodes:J7e,fixIds:[Mee,Lee,Cle],getCodeActions:function(r){const{program:s,sourceFile:l,span:{start:m},errorCode:y}=r,T=cXe(s.getTypeChecker(),l,m,y);if(T)return T.kind===0?ur([Jft(r,T.expression,T.statement)],ph(T.declaration)?$ft(r,T.declaration,T.expression,T.commentSource):void 0):[MIe(r,T.declaration,T.expression)]},getAllCodeActions:t=>Km(t,J7e,(r,s)=>{const l=cXe(t.program.getTypeChecker(),s.file,s.start,s.code);if(l)switch(t.fixId){case Mee:U7e(r,s.file,l.expression,l.statement);break;case Lee:if(!ph(l.declaration))return;H7e(r,s.file,l.declaration,l.expression,l.commentSource,!1);break;case Cle:if(!ph(l.declaration))return;uXe(r,s.file,l.declaration,l.expression);break;default:ce.fail(JSON.stringify(t.fixId))}})})}});function _Xe(t,r,s,l,m){var y;const T=bf(t,r),D=T.parent;if(s===w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(T.kind===19&&Wd(D)&&el(D.parent)))return;const te=Ho(D.parent.arguments,Ne=>Ne===D);if(te<0)return;const oe=l.getResolvedSignature(D.parent);if(!(oe&&oe.declaration&&oe.parameters[te]))return;const de=oe.parameters[te].valueDeclaration;if(!(de&&Pu(de)&&An(de.name)))return;const ue=oc(l.getUnmatchedProperties(l.getTypeAtLocation(D),l.getParameterType(oe,te),!1,!1));return Nt(ue)?{kind:3,token:de.name,properties:ue,parentDeclaration:D}:void 0}if(!uy(T))return;if(An(T)&&NN(D)&&D.initializer&&Wd(D.initializer)){const te=l.getContextualType(T)||l.getTypeAtLocation(T),oe=oc(l.getUnmatchedProperties(l.getTypeAtLocation(D.initializer),te,!1,!1));return Nt(oe)?{kind:3,token:T,properties:oe,parentDeclaration:D.initializer}:void 0}if(An(T)&&Y1(T.parent)){const te=iu(m.getCompilerOptions()),oe=Yft(l,te,T.parent);return Nt(oe)?{kind:4,token:T,attributes:oe,parentDeclaration:T.parent}:void 0}if(An(T)){const te=(y=l.getContextualType(T))==null?void 0:y.getNonNullableType();if(te&&ji(te)&16){const oe=pp(l.getSignaturesOfType(te,0));return oe===void 0?void 0:{kind:5,token:T,signature:oe,sourceFile:t,parentDeclaration:F6(T)}}if(el(D)&&D.expression===T)return{kind:2,token:T,call:D,sourceFile:t,modifierFlags:0,parentDeclaration:F6(T)}}if(!sa(D))return;const I=MZ(l.getTypeAtLocation(D.expression)),W=I.symbol;if(!W||!W.declarations)return;if(An(T)&&el(D.parent)){const te=lr(W.declarations,xp),oe=te==null?void 0:te.getSourceFile();if(te&&oe&&!lq(m,oe))return{kind:2,token:T,call:D.parent,sourceFile:t,modifierFlags:1,parentDeclaration:te};const de=lr(W.declarations,tl);if(t.commonJsModuleIndicator)return;if(de&&!lq(m,de))return{kind:2,token:T,call:D.parent,sourceFile:de,modifierFlags:1,parentDeclaration:de}}const O=lr(W.declarations,Jl);if(!O&&Gu(T))return;const V=O||lr(W.declarations,te=>Kp(te)||e0(te));if(V&&!lq(m,V.getSourceFile())){const te=!e0(V)&&(I.target||I)!==l.getDeclaredTypeOfSymbol(W);if(te&&(Gu(T)||Kp(V)))return;const oe=V.getSourceFile(),de=e0(V)?0:(te?32:0)|(NF(T.text)?8:0),ue=v1(oe),Ne=to(D.parent,el);return{kind:0,token:T,call:Ne,modifierFlags:de,parentDeclaration:V,declSourceFile:oe,isJSFile:ue}}const ee=lr(W.declarations,Ih);if(ee&&!(I.flags&1056)&&!Gu(T)&&!lq(m,ee.getSourceFile()))return{kind:1,token:T,parentDeclaration:ee}}function qft(t,r){return r.isJSFile?zD(dXe(t,r)):mXe(t,r)}function dXe(t,{parentDeclaration:r,declSourceFile:s,modifierFlags:l,token:m}){if(Kp(r)||e0(r))return;const y=Hs.ChangeTracker.with(t,D=>$7e(D,s,r,m,!!(l&32)));if(y.length===0)return;const T=l&32?w.Initialize_static_property_0:Gu(m)?w.Declare_a_private_field_named_0:w.Initialize_property_0_in_the_constructor;return Hc(LP,y,[T,m.text],LP,w.Add_all_missing_members)}function $7e(t,r,s,l,m){const y=l.text;if(m){if(s.kind===231)return;const T=s.name.getText(),D=pXe(be.createIdentifier(T),y);t.insertNodeAfter(r,s,D)}else if(Gu(l)){const T=be.createPropertyDeclaration(void 0,y,void 0,void 0,void 0),D=gXe(s);D?t.insertNodeAfter(r,D,T):t.insertMemberAtStart(r,s,T)}else{const T=E2(s);if(!T)return;const D=pXe(be.createThis(),y);t.insertNodeAtConstructorEnd(r,T,D)}}function pXe(t,r){return be.createExpressionStatement(be.createAssignment(be.createPropertyAccessExpression(t,r),Zj()))}function mXe(t,{parentDeclaration:r,declSourceFile:s,modifierFlags:l,token:m}){const y=m.text,T=l&32,D=q7e(t.program.getTypeChecker(),r,m),I=O=>Hs.ChangeTracker.with(t,V=>K7e(V,s,r,y,D,O)),W=[Hc(LP,I(l&32),[T?w.Declare_static_property_0:w.Declare_property_0,y],LP,w.Add_all_missing_members)];return T||Gu(m)||(l&8&&W.unshift(mC(LP,I(8),[w.Declare_private_property_0,y])),W.push(Kft(t,s,r,m.text,D))),W}function q7e(t,r,s){let l;if(s.parent.parent.kind===226){const m=s.parent.parent,y=s.parent===m.left?m.right:m.left,T=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(y)));l=t.typeToTypeNode(T,r,1)}else{const m=t.getContextualType(s.parent);l=m?t.typeToTypeNode(m,void 0,1):void 0}return l||be.createKeywordTypeNode(133)}function K7e(t,r,s,l,m,y){const T=y?be.createNodeArray(be.createModifiersFromModifierFlags(y)):void 0,D=Jl(s)?be.createPropertyDeclaration(T,l,void 0,m,void 0):be.createPropertySignature(void 0,l,void 0,m),I=gXe(s);I?t.insertNodeAfter(r,I,D):t.insertMemberAtStart(r,s,D)}function gXe(t){let r;for(const s of t.members){if(!Os(s))break;r=s}return r}function Kft(t,r,s,l,m){const y=be.createKeywordTypeNode(154),T=be.createParameterDeclaration(void 0,void 0,"x",void 0,y,void 0),D=be.createIndexSignature(void 0,[T],m),I=Hs.ChangeTracker.with(t,W=>W.insertMemberAtStart(r,s,D));return mC(LP,I,[w.Add_index_signature_for_property_0,l])}function hXe(t,r){const{parentDeclaration:s,declSourceFile:l,modifierFlags:m,token:y,call:T}=r;if(T===void 0)return;const D=y.text,I=O=>Hs.ChangeTracker.with(t,V=>X7e(t,V,T,y,O,s,l)),W=[Hc(LP,I(m&32),[m&32?w.Declare_static_method_0:w.Declare_method_0,D],LP,w.Add_all_missing_members)];return m&8&&W.unshift(mC(LP,I(8),[w.Declare_private_method_0,D])),W}function X7e(t,r,s,l,m,y,T){const D=Yj(T,t.program,t.preferences,t.host),I=Jl(y)?174:173,W=VFe(I,t,D,s,l,m,y),O=Qft(y,s);O?r.insertNodeAfter(T,O,W):r.insertMemberAtStart(T,y,W),D.writeFixes(r)}function Y7e(t,r,{token:s,parentDeclaration:l}){const m=gt(l.members,T=>{const D=r.getTypeAtLocation(T);return!!(D&&D.flags&402653316)}),y=be.createEnumMember(s,m?be.createStringLiteral(s.text):void 0);t.replaceNode(l.getSourceFile(),l,be.updateEnumDeclaration(l,l.modifiers,l.name,Hi(l.members,zD(y))),{leadingTriviaOption:Hs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude})}function Q7e(t,r,s){const l=Jx(r.sourceFile,r.preferences),m=Yj(r.sourceFile,r.program,r.preferences,r.host),y=s.kind===2?VFe(262,r,m,s.call,ec(s.token),s.modifierFlags,s.parentDeclaration):Yle(262,r,l,s.signature,Vee(w.Function_not_implemented.message,l),s.token,void 0,void 0,void 0,m);y===void 0&&ce.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Bx(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,y,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,y),m.writeFixes(t)}function Z7e(t,r,s){const l=Yj(r.sourceFile,r.program,r.preferences,r.host),m=Jx(r.sourceFile,r.preferences),y=r.program.getTypeChecker(),T=s.parentDeclaration.attributes,D=gt(T.properties,Ek),I=Vn(s.attributes,V=>{const ee=tO(r,y,l,m,y.getTypeOfSymbol(V),s.parentDeclaration),te=be.createIdentifier(V.name),oe=be.createJsxAttribute(te,be.createJsxExpression(void 0,ee));return kl(te,oe),oe}),W=be.createJsxAttributes(D?[...I,...T.properties]:[...T.properties,...I]),O={prefix:T.pos===T.end?" ":void 0};t.replaceNode(r.sourceFile,T,W,O),l.writeFixes(t)}function qye(t,r,s){const l=Yj(r.sourceFile,r.program,r.preferences,r.host),m=Jx(r.sourceFile,r.preferences),y=iu(r.program.getCompilerOptions()),T=r.program.getTypeChecker(),D=Vn(s.properties,W=>{const O=tO(r,T,l,m,T.getTypeOfSymbol(W),s.parentDeclaration);return be.createPropertyAssignment(yXe(W,y,m,T),O)}),I={leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(r.sourceFile,s.parentDeclaration,be.createObjectLiteralExpression([...s.parentDeclaration.properties,...D],!0),I),l.writeFixes(t)}function tO(t,r,s,l,m,y){if(m.flags&3)return Zj();if(m.flags&134217732)return be.createStringLiteral("",l===0);if(m.flags&8)return be.createNumericLiteral(0);if(m.flags&64)return be.createBigIntLiteral("0n");if(m.flags&16)return be.createFalse();if(m.flags&1056){const T=m.symbol.exports?V5(m.symbol.exports.values()):m.symbol,D=r.symbolToExpression(m.symbol.parent?m.symbol.parent:m.symbol,111551,void 0,void 0);return T===void 0||D===void 0?be.createNumericLiteral(0):be.createPropertyAccessExpression(D,r.symbolToString(T))}if(m.flags&256)return be.createNumericLiteral(m.value);if(m.flags&2048)return be.createBigIntLiteral(m.value);if(m.flags&128)return be.createStringLiteral(m.value,l===0);if(m.flags&512)return m===r.getFalseType()||m===r.getFalseType(!0)?be.createFalse():be.createTrue();if(m.flags&65536)return be.createNull();if(m.flags&1048576)return Yr(m.types,D=>tO(t,r,s,l,D,y))??Zj();if(r.isArrayLikeType(m))return be.createArrayLiteralExpression();if(Xft(m)){const T=Vn(r.getPropertiesOfType(m),D=>{const I=tO(t,r,s,l,r.getTypeOfSymbol(D),y);return be.createPropertyAssignment(D.name,I)});return be.createObjectLiteralExpression(T,!0)}if(ji(m)&16){if(lr(m.symbol.declarations||Zn,dA(Z2,Jh,em))===void 0)return Zj();const D=r.getSignaturesOfType(m,0);return D===void 0?Zj():Yle(218,t,l,D[0],Vee(w.Function_not_implemented.message,l),void 0,void 0,void 0,y,s)??Zj()}if(ji(m)&1){const T=RS(m.symbol);if(T===void 0||fk(T))return Zj();const D=E2(T);return D&&Nt(D.parameters)?Zj():be.createNewExpression(be.createIdentifier(m.symbol.name),void 0,void 0)}return Zj()}function Zj(){return be.createIdentifier("undefined")}function Xft(t){return t.flags&524288&&(ji(t)&128||t.symbol&&to(Vb(t.symbol.declarations),e0))}function Yft(t,r,s){const l=t.getContextualType(s.attributes);if(l===void 0)return Zn;const m=l.getProperties();if(!Nt(m))return Zn;const y=new Set;for(const T of s.attributes.properties)if(Pb(T)&&y.add(m3(T.name)),Ek(T)){const D=t.getTypeAtLocation(T.expression);for(const I of D.getProperties())y.add(I.escapedName)}return gi(m,T=>rE(T.name,r,1)&&!(T.flags&16777216||I_(T)&48||y.has(T.escapedName)))}function Qft(t,r){if(e0(t))return;const s=Kr(r,l=>em(l)||pg(l));return s&&s.parent===t?s:void 0}function yXe(t,r,s,l){if(uk(t)){const m=l.symbolToNode(t,111551,void 0,1073741824);if(m&&am(m))return m}return QH(t.name,r,s===0)}function F6(t){if(Kr(t,v6)){const r=Kr(t.parent,Bx);if(r)return r}return ns(t)}var LP,eV,tV,Oee,eFe,vXe=G({"src/services/codefixes/fixAddMissingMember.ts"(){El(),hp(),LP="fixMissingMember",eV="fixMissingProperties",tV="fixMissingAttributes",Oee="fixMissingFunctionDeclaration",eFe=[w.Property_0_does_not_exist_on_type_1.code,w.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,w.Property_0_is_missing_in_type_1_but_required_in_type_2.code,w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,w.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Cannot_find_name_0.code],up({errorCodes:eFe,getCodeActions(t){const r=t.program.getTypeChecker(),s=_Xe(t.sourceFile,t.span.start,t.errorCode,r,t.program);if(s){if(s.kind===3){const l=Hs.ChangeTracker.with(t,m=>qye(m,t,s));return[Hc(eV,l,w.Add_missing_properties,eV,w.Add_all_missing_properties)]}if(s.kind===4){const l=Hs.ChangeTracker.with(t,m=>Z7e(m,t,s));return[Hc(tV,l,w.Add_missing_attributes,tV,w.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const l=Hs.ChangeTracker.with(t,m=>Q7e(m,t,s));return[Hc(Oee,l,[w.Add_missing_function_declaration_0,s.token.text],Oee,w.Add_all_missing_function_declarations)]}if(s.kind===1){const l=Hs.ChangeTracker.with(t,m=>Y7e(m,t.program.getTypeChecker(),s));return[Hc(LP,l,[w.Add_missing_enum_member_0,s.token.text],LP,w.Add_all_missing_members)]}return Hi(hXe(t,s),qft(t,s))}},fixIds:[LP,Oee,eV,tV],getAllCodeActions:t=>{const{program:r,fixId:s}=t,l=r.getTypeChecker(),m=new Map,y=new Map;return GR(Hs.ChangeTracker.with(t,T=>{LF(t,eFe,D=>{const I=_Xe(D.file,D.start,D.code,l,t.program);if(!(!I||!y0(m,Im(I.parentDeclaration)+"#"+I.token.text))){if(s===Oee&&(I.kind===2||I.kind===5))Q7e(T,t,I);else if(s===eV&&I.kind===3)qye(T,t,I);else if(s===tV&&I.kind===4)Z7e(T,t,I);else if(I.kind===1&&Y7e(T,l,I),I.kind===0){const{parentDeclaration:W,token:O}=I,V=Jw(y,W,()=>[]);V.some(ee=>ee.token.text===O.text)||V.push(I)}}}),y.forEach((D,I)=>{const W=e0(I)?void 0:XFe(I,l);for(const O of D){if(W!=null&&W.some(Ne=>{const Be=y.get(Ne);return!!Be&&Be.some(({token:Ve})=>Ve.text===O.token.text)}))continue;const{parentDeclaration:V,declSourceFile:ee,modifierFlags:te,token:oe,call:de,isJSFile:ue}=O;if(de&&!Gu(oe))X7e(t,T,de,oe,te&32,V,ee);else if(ue&&!Kp(V)&&!e0(V))$7e(T,ee,V,oe,!!(te&32));else{const Ne=q7e(l,V,oe);K7e(T,ee,V,oe.text,Ne,te&32)}}})}))}})}});function bXe(t,r,s){const l=uc(LIe(r,s),el),m=be.createNewExpression(l.expression,l.typeArguments,l.arguments);t.replaceNode(r,l,m)}function LIe(t,r){let s=bf(t,r.start);const l=K1(r);for(;s.endbXe(m,r,s));return[Hc(Dle,l,w.Add_missing_new_operator_to_call,Dle,w.Add_missing_new_operator_to_all_calls)]},fixIds:[Dle],getAllCodeActions:t=>Km(t,tFe,(r,s)=>bXe(r,t.sourceFile,s))})}});function nFe(t,r){return{type:"install package",file:t,packageName:r}}function rFe(t,r){const s=to(bf(t,r),Wp);if(!s)return;const l=s.text,{packageName:m}=EQ(l);return tb(m)?void 0:m}function iFe(t,r,s){var l;return s===Xye?EF.nodeCoreModules.has(t)?"@types/node":void 0:(l=r.isKnownTypesPackageName)!=null&&l.call(r,t)?tme(t):void 0}var Kye,Ile,Xye,oFe,SXe=G({"src/services/codefixes/fixCannotFindModule.ts"(){El(),hp(),Kye="fixCannotFindModule",Ile="installTypesPackage",Xye=w.Cannot_find_module_0_or_its_corresponding_type_declarations.code,oFe=[Xye,w.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],up({errorCodes:oFe,getCodeActions:function(r){const{host:s,sourceFile:l,span:{start:m}}=r,y=rFe(l,m);if(y===void 0)return;const T=iFe(y,s,r.errorCode);return T===void 0?[]:[Hc(Kye,[],[w.Install_0,T],Ile,w.Install_all_missing_types_packages,nFe(l.fileName,T))]},fixIds:[Ile],getAllCodeActions:t=>Km(t,oFe,(r,s,l)=>{const m=rFe(s.file,s.start);if(m!==void 0)switch(t.fixId){case Ile:{const y=iFe(m,t.host,s.code);y&&l.push(nFe(s.file.fileName,y));break}default:ce.fail(`Bad fixId: ${t.fixId}`)}})})}});function aFe(t,r){const s=bf(t,r);return uc(s.parent,Jl)}function EXe(t,r,s,l,m){const y=hA(t),T=s.program.getTypeChecker(),D=T.getTypeAtLocation(y),I=T.getPropertiesOfType(D).filter(sFe),W=Yj(r,s.program,m,s.host);dB(t,I,r,s,m,W,O=>l.insertMemberAtStart(r,t,O)),W.writeFixes(l)}function sFe(t){const r=n6(Dl(t.getDeclarations()));return!(r&8)&&!!(r&256)}var kle,OIe,xXe=G({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){El(),hp(),kle=[w.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],OIe="fixClassDoesntImplementInheritedAbstractMember",up({errorCodes:kle,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=Hs.ChangeTracker.with(r,y=>EXe(aFe(s,l.start),s,r,y,r.preferences));return m.length===0?void 0:[Hc(OIe,m,w.Implement_inherited_abstract_class,OIe,w.Implement_all_inherited_abstract_classes)]},fixIds:[OIe],getAllCodeActions:function(r){const s=new Map;return Km(r,kle,(l,m)=>{const y=aFe(m.file,m.start);y0(s,Im(y))&&EXe(y,r.sourceFile,r,l,r.preferences)})}})}});function cFe(t,r,s,l){t.insertNodeAtConstructorStart(r,s,l),t.delete(r,l)}function lFe(t,r){const s=bf(t,r);if(s.kind!==110)return;const l=GE(s),m=Yye(l.body);return m&&!m.expression.arguments.some(y=>sa(y)&&y.expression===s)?{constructor:l,superCall:m}:void 0}function Yye(t){return Ou(t)&&y7(t.expression)?t:S_(t)?void 0:B_(t,Yye)}var Ple,uFe,AXe=G({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){El(),hp(),Ple="classSuperMustPrecedeThisAccess",uFe=[w.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],up({errorCodes:uFe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=lFe(r,s.start);if(!l)return;const{constructor:m,superCall:y}=l,T=Hs.ChangeTracker.with(t,D=>cFe(D,r,m,y));return[Hc(Ple,T,w.Make_super_call_the_first_statement_in_the_constructor,Ple,w.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ple],getAllCodeActions(t){const{sourceFile:r}=t,s=new Map;return Km(t,uFe,(l,m)=>{const y=lFe(m.file,m.start);if(!y)return;const{constructor:T,superCall:D}=y;y0(s,Im(T.parent))&&cFe(l,r,T,D)})}})}});function fFe(t,r){const s=bf(t,r);return ce.assert(pg(s.parent),"token should be at the constructor declaration"),s.parent}function Qye(t,r,s){const l=be.createExpressionStatement(be.createCallExpression(be.createSuper(),void 0,Zn));t.insertNodeAtConstructorStart(r,s,l)}var Nle,_Fe,CXe=G({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){El(),hp(),Nle="constructorForDerivedNeedSuperCall",_Fe=[w.Constructors_for_derived_classes_must_contain_a_super_call.code],up({errorCodes:_Fe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=fFe(r,s.start),m=Hs.ChangeTracker.with(t,y=>Qye(y,r,l));return[Hc(Nle,m,w.Add_missing_super_call,Nle,w.Add_all_missing_super_calls)]},fixIds:[Nle],getAllCodeActions:t=>Km(t,_Fe,(r,s)=>Qye(r,t.sourceFile,fFe(s.file,s.start)))})}});function FIe(t,r){Qle(t,r,"jsx",be.createStringLiteral("react"))}var Zye,dFe,DXe=G({"src/services/codefixes/fixEnableJsxFlag.ts"(){El(),hp(),Zye="fixEnableJsxFlag",dFe=[w.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],up({errorCodes:dFe,getCodeActions:function(r){const{configFile:s}=r.program.getCompilerOptions();if(s===void 0)return;const l=Hs.ChangeTracker.with(r,m=>FIe(m,s));return[mC(Zye,l,w.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Zye],getAllCodeActions:t=>Km(t,dFe,r=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&FIe(r,s)})})}});function pFe(t,r,s){const l=lr(t.getSemanticDiagnostics(r),T=>T.start===s.start&&T.length===s.length);if(l===void 0||l.relatedInformation===void 0)return;const m=lr(l.relatedInformation,T=>T.code===w.Did_you_mean_0.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;const y=yve(m.file,nb(m.start,m.length));if(y!==void 0&&Nr(y)&&ys(y.parent))return{suggestion:WIe(m.messageText),expression:y.parent,arg:y}}function IXe(t,r,s,l){const m=be.createCallExpression(be.createPropertyAccessExpression(be.createIdentifier("Number"),be.createIdentifier("isNaN")),void 0,[s]),y=l.operatorToken.kind;t.replaceNode(r,l,y===38||y===36?be.createPrefixUnaryExpression(54,m):m)}function WIe(t){const[r,s]=d4(t,` +`,0).match(/'(.*)'/)||[];return s}var wle,mFe,Zft=G({"src/services/codefixes/fixNaNEquality.ts"(){El(),hp(),wle="fixNaNEquality",mFe=[w.This_condition_will_always_return_0.code],up({errorCodes:mFe,getCodeActions(t){const{sourceFile:r,span:s,program:l}=t,m=pFe(l,r,s);if(m===void 0)return;const{suggestion:y,expression:T,arg:D}=m,I=Hs.ChangeTracker.with(t,W=>IXe(W,r,D,T));return[Hc(wle,I,[w.Use_0,y],wle,w.Use_Number_isNaN_in_all_conditions)]},fixIds:[wle],getAllCodeActions:t=>Km(t,mFe,(r,s)=>{const l=pFe(t.program,s.file,nb(s.start,s.length));l&&IXe(r,s.file,l.arg,l.expression)})})}}),kXe=G({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){El(),hp(),up({errorCodes:[w.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,w.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,w.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(r){const s=r.program.getCompilerOptions(),{configFile:l}=s;if(l===void 0)return;const m=[],y=Zp(s);if(y>=5&&y<99){const W=Hs.ChangeTracker.with(r,O=>{Qle(O,l,"module",be.createStringLiteral("esnext"))});m.push(mC("fixModuleOption",W,[w.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const D=iu(s);if(D<4||D>99){const W=Hs.ChangeTracker.with(r,O=>{if(!A9(l))return;const ee=[["target",be.createStringLiteral("es2017")]];y===1&&ee.push(["module",be.createStringLiteral("commonjs")]),hve(O,l,ee)});m.push(mC("fixTargetOption",W,[w.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return m.length?m:void 0}})}});function gFe(t,r,s){t.replaceNode(r,s,be.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function eve(t,r){return uc(bf(t,r).parent,BT)}var Rle,hFe,PXe=G({"src/services/codefixes/fixPropertyAssignment.ts"(){El(),hp(),Rle="fixPropertyAssignment",hFe=[w.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],up({errorCodes:hFe,fixIds:[Rle],getCodeActions(t){const{sourceFile:r,span:s}=t,l=eve(r,s.start),m=Hs.ChangeTracker.with(t,y=>gFe(y,t.sourceFile,l));return[Hc(Rle,m,[w.Change_0_to_1,"=",":"],Rle,[w.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>Km(t,hFe,(r,s)=>gFe(r,s.file,eve(s.file,s.start)))})}});function yFe(t,r){const s=bf(t,r),l=h0(s).heritageClauses,m=l[0].getFirstToken();return m.kind===96?{extendsToken:m,heritageClauses:l}:void 0}function tve(t,r,s,l){if(t.replaceNode(r,s,be.createToken(119)),l.length===2&&l[0].token===96&&l[1].token===119){const m=l[1].getFirstToken(),y=m.getFullStart();t.replaceRange(r,{pos:y,end:y},be.createToken(28));const T=r.text;let D=m.end;for(;Dtve(T,r,l,m));return[Hc(Mle,y,w.Change_extends_to_implements,Mle,w.Change_all_extended_interfaces_to_implements)]},fixIds:[Mle],getAllCodeActions:t=>Km(t,vFe,(r,s)=>{const l=yFe(s.file,s.start);l&&tve(r,s.file,l.extendsToken,l.heritageClauses)})})}});function bFe(t,r,s){const l=bf(t,r);if(An(l)||Gu(l))return{node:l,className:s===rve?h0(l).name.text:void 0}}function nve(t,r,{node:s,className:l}){e2(s),t.replaceNode(r,s,be.createPropertyAccessExpression(l?be.createIdentifier(l):be.createThis(),s))}var Lle,rve,TFe,e_t=G({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){El(),hp(),Lle="forgottenThisPropertyAccess",rve=w.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,TFe=[w.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,w.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,rve],up({errorCodes:TFe,getCodeActions(t){const{sourceFile:r}=t,s=bFe(r,t.span.start,t.errorCode);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>nve(m,r,s));return[Hc(Lle,l,[w.Add_0_to_unresolved_variable,s.className||"this"],Lle,w.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Lle],getAllCodeActions:t=>Km(t,TFe,(r,s)=>{const l=bFe(s.file,s.start,s.code);l&&nve(r,t.sourceFile,l)})})}});function SFe(t){return ef(EFe,t)}function Ole(t,r,s,l,m){const y=s.getText()[l];if(!SFe(y))return;const T=m?EFe[y]:`{${uce(s,r,y)}}`;t.replaceRangeWithText(s,{pos:l,end:l+1},T)}var Lq,Fee,ive,EFe,t_t=G({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){El(),hp(),Lq="fixInvalidJsxCharacters_expression",Fee="fixInvalidJsxCharacters_htmlEntity",ive=[w.Unexpected_token_Did_you_mean_or_gt.code,w.Unexpected_token_Did_you_mean_or_rbrace.code],up({errorCodes:ive,fixIds:[Lq,Fee],getCodeActions(t){const{sourceFile:r,preferences:s,span:l}=t,m=Hs.ChangeTracker.with(t,T=>Ole(T,s,r,l.start,!1)),y=Hs.ChangeTracker.with(t,T=>Ole(T,s,r,l.start,!0));return[Hc(Lq,m,w.Wrap_invalid_character_in_an_expression_container,Lq,w.Wrap_all_invalid_characters_in_an_expression_container),Hc(Fee,y,w.Convert_invalid_character_to_its_html_entity_code,Fee,w.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return Km(t,ive,(r,s)=>Ole(r,t.preferences,s.file,s.start,t.fixId===Fee))}}),EFe={">":">","}":"}"}}});function n_t(t,{name:r,jsDocHost:s,jsDocParameterTag:l}){const m=Hs.ChangeTracker.with(t,y=>y.filterJSDocTags(t.sourceFile,s,T=>T!==l));return Hc(Wee,m,[w.Delete_unused_param_tag_0,r.getText(t.sourceFile)],Wee,w.Delete_all_unused_param_tags)}function wXe(t,{name:r,jsDocHost:s,signature:l,jsDocParameterTag:m}){if(!Nt(l.parameters))return;const y=t.sourceFile,T=EN(l),D=new Set;for(const V of T)AA(V)&&An(V.name)&&D.add(V.name.escapedText);const I=Yr(l.parameters,V=>An(V.name)&&!D.has(V.name.escapedText)?V.name.getText(y):void 0);if(I===void 0)return;const W=be.updateJSDocParameterTag(m,m.tagName,be.createIdentifier(I),m.isBracketed,m.typeExpression,m.isNameFirst,m.comment),O=Hs.ChangeTracker.with(t,V=>V.replaceJSDocComment(y,s,Vn(T,ee=>ee===m?W:ee)));return mC(ove,O,[w.Rename_param_tag_name_0_to_1,r.getText(y),I])}function Fle(t,r){const s=bf(t,r);if(s.parent&&AA(s.parent)&&An(s.parent.name)){const l=s.parent,m=P7(l),y=VE(l);if(m&&y)return{jsDocHost:m,signature:y,name:s.parent.name,jsDocParameterTag:l}}}var Wee,ove,xFe,r_t=G({"src/services/codefixes/fixUnmatchedParameter.ts"(){El(),hp(),Wee="deleteUnmatchedParameter",ove="renameUnmatchedParameter",xFe=[w.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],up({fixIds:[Wee,ove],errorCodes:xFe,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=[],y=Fle(s,l.start);if(y)return ur(m,n_t(r,y)),ur(m,wXe(r,y)),m},getAllCodeActions:function(r){const s=new Map;return GR(Hs.ChangeTracker.with(r,l=>{LF(r,xFe,({file:m,start:y})=>{const T=Fle(m,y);T&&s.set(T.signature,ur(s.get(T.signature),T.jsDocParameterTag))}),s.forEach((m,y)=>{if(r.fixId===Wee){const T=new Set(m);l.filterJSDocTags(y.getSourceFile(),y,D=>!T.has(D))}})}))}})}});function i_t(t,r,s){const l=to(bf(t,s),An);if(!l||l.parent.kind!==183)return;const y=r.getTypeChecker().getSymbolAtLocation(l);return lr((y==null?void 0:y.declarations)||Zn,dA(lC,oS,kh))}function o_t(t,r,s,l){if(s.kind===271){t.insertModifierBefore(r,156,s.name);return}const m=s.kind===273?s:s.parent.parent;if(m.name&&m.namedBindings)return;const y=l.getTypeChecker();I7(m,D=>{if(dg(D.symbol,y).flags&111551)return!0})||t.insertModifierBefore(r,156,m)}function BIe(t,r,s,l){Eq.doChangeNamedToNamespaceOrDefault(r,l,t,s.parent)}var ave,RXe,MXe=G({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){El(),hp(),ave="fixUnreferenceableDecoratorMetadata",RXe=[w.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],up({errorCodes:RXe,getCodeActions:t=>{const r=i_t(t.sourceFile,t.program,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,y=>r.kind===276&&BIe(y,t.sourceFile,r,t.program)),l=Hs.ChangeTracker.with(t,y=>o_t(y,t.sourceFile,r,t.program));let m;return s.length&&(m=ur(m,mC(ave,s,w.Convert_named_imports_to_namespace_import))),l.length&&(m=ur(m,mC(ave,l,w.Use_import_type))),m},fixIds:[ave]})}});function Bee(t,r,s){t.replaceNode(r,s.parent,be.createKeywordTypeNode(159))}function zee(t,r){return Hc(nV,t,r,Oq,w.Delete_all_unused_declarations)}function zIe(t,r,s){t.delete(r,ce.checkDefined(uc(s.parent,hde).typeParameters,"The type parameter to delete should exist"))}function GIe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function AFe(t){return t.kind===102?to(t.parent,Fv):void 0}function CFe(t,r){return My(r.parent)&&Dl(r.parent.getChildren(t))===r}function LXe(t,r,s){t.delete(r,s.parent.kind===243?s.parent:s)}function a_t(t,r,s){Ot(s.elements,l=>t.delete(r,l))}function OXe(t,r,s,{parent:l}){if(ff(l)&&l.initializer&&ib(l.initializer))if(My(l.parent)&&Nt(l.parent.declarations)>1){const m=l.parent.parent,y=m.getStart(s),T=m.end;r.delete(s,l),r.insertNodeAt(s,T,l.initializer,{prefix:NP(t.host,t.formatContext.options)+s.text.slice(wj(s.text,y-1),y),suffix:UZ(s)?";":""})}else r.replaceNode(s,l.parent,l.initializer);else r.delete(s,l)}function FXe(t,r,s,l){r!==w.Property_0_is_declared_but_its_value_is_never_read.code&&(l.kind===140&&(l=uc(l.parent,fI).typeParameter.name),An(l)&&jIe(l)&&(t.replaceNode(s,l,be.createIdentifier(`_${l.text}`)),Pu(l.parent)&&zz(l.parent).forEach(m=>{An(m.name)&&t.replaceNode(s,m.name,be.createIdentifier(`_${m.name.text}`))})))}function jIe(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 VIe(t,r,s,l,m,y,T,D){s_t(r,s,t,l,m,y,T,D),An(r)&&Wf.Core.eachSymbolReferenceInFile(r,l,t,I=>{sa(I.parent)&&I.parent.name===I&&(I=I.parent),!D&&Wle(I)&&s.delete(t,I.parent.parent)})}function s_t(t,r,s,l,m,y,T,D){const{parent:I}=t;if(Pu(I))WXe(r,s,I,l,m,y,T,D);else if(!(D&&An(t)&&Wf.Core.isSymbolReferencedInFile(t,l,s))){const W=lC(I)?t:am(I)?I.parent:I;ce.assert(W!==s,"should not delete whole source file"),r.delete(s,W)}}function WXe(t,r,s,l,m,y,T,D=!1){if(c_t(l,r,s,m,y,T,D))if(s.modifiers&&s.modifiers.length>0&&(!An(s.name)||Wf.Core.isSymbolReferencedInFile(s.name,l,r)))for(const I of s.modifiers)bd(I)&&t.deleteModifier(r,I);else!s.initializer&&BXe(s,l,m)&&t.delete(r,s)}function BXe(t,r,s){const l=t.parent.parameters.indexOf(t);return!Wf.Core.someSignatureUsage(t.parent,s,r,(m,y)=>!y||y.arguments.length>l)}function c_t(t,r,s,l,m,y,T){const{parent:D}=s;switch(D.kind){case 174:case 176:const I=D.parameters.indexOf(s),W=em(D)?D.name:D,O=Wf.Core.getReferencedSymbolsForNode(D.pos,W,m,l,y);if(O){for(const V of O)for(const ee of V.references)if(ee.kind===Wf.EntryKind.Node){const te=wJ(ee.node)&&el(ee.node.parent)&&ee.node.parent.arguments.length>I,oe=sa(ee.node.parent)&&wJ(ee.node.parent.expression)&&el(ee.node.parent.parent)&&ee.node.parent.parent.arguments.length>I,de=(em(ee.node.parent)||Jh(ee.node.parent))&&ee.node.parent!==s.parent&&ee.node.parent.parameters.length>I;if(te||oe||de)return!1}}return!0;case 262:return D.name&&zXe(t,r,D.name)?GXe(D,s,T):!0;case 218:case 219:return GXe(D,s,T);case 178:return!1;case 177:return!0;default:return ce.failBadSyntaxKind(D)}}function zXe(t,r,s){return!!Wf.Core.eachSymbolReferenceInFile(s,t,r,l=>An(l)&&el(l.parent)&&l.parent.arguments.indexOf(l)>=0)}function GXe(t,r,s){const l=t.parameters,m=l.indexOf(r);return ce.assert(m!==-1,"The parameter should already be in the list"),s?l.slice(m+1).every(y=>An(y.name)&&!y.symbol.isReferenced):m===l.length-1}function Wle(t){return(ys(t.parent)&&t.parent.left===t||(Z7(t.parent)||yk(t.parent))&&t.parent.operand===t)&&Ou(t.parent.parent)}var nV,Gee,Oq,Fq,Ble,DFe,jXe=G({"src/services/codefixes/fixUnusedIdentifier.ts"(){El(),hp(),nV="unusedIdentifier",Gee="unusedIdentifier_prefix",Oq="unusedIdentifier_delete",Fq="unusedIdentifier_deleteImports",Ble="unusedIdentifier_infer",DFe=[w._0_is_declared_but_its_value_is_never_read.code,w._0_is_declared_but_never_used.code,w.Property_0_is_declared_but_its_value_is_never_read.code,w.All_imports_in_import_declaration_are_unused.code,w.All_destructured_elements_are_unused.code,w.All_variables_are_unused.code,w.All_type_parameters_are_unused.code],up({errorCodes:DFe,getCodeActions(t){const{errorCode:r,sourceFile:s,program:l,cancellationToken:m}=t,y=l.getTypeChecker(),T=l.getSourceFiles(),D=bf(s,t.span.start);if(jx(D))return[zee(Hs.ChangeTracker.with(t,V=>V.delete(s,D)),w.Remove_template_tag)];if(D.kind===30){const V=Hs.ChangeTracker.with(t,ee=>zIe(ee,s,D));return[zee(V,w.Remove_type_parameters)]}const I=AFe(D);if(I){const V=Hs.ChangeTracker.with(t,ee=>ee.delete(s,I));return[Hc(nV,V,[w.Remove_import_from_0,kSe(I)],Fq,w.Delete_all_unused_imports)]}else if(GIe(D)){const V=Hs.ChangeTracker.with(t,ee=>VIe(s,D,ee,y,T,l,m,!1));if(V.length)return[Hc(nV,V,[w.Remove_unused_declaration_for_Colon_0,D.getText(s)],Fq,w.Delete_all_unused_imports)]}if(E1(D.parent)||vW(D.parent)){if(Pu(D.parent.parent)){const V=D.parent.elements,ee=[V.length>1?w.Remove_unused_declarations_for_Colon_0:w.Remove_unused_declaration_for_Colon_0,Vn(V,te=>te.getText(s)).join(", ")];return[zee(Hs.ChangeTracker.with(t,te=>a_t(te,s,D.parent)),ee)]}return[zee(Hs.ChangeTracker.with(t,V=>OXe(t,V,s,D.parent)),w.Remove_unused_destructuring_declaration)]}if(CFe(s,D))return[zee(Hs.ChangeTracker.with(t,V=>LXe(V,s,D.parent)),w.Remove_variable_statement)];const W=[];if(D.kind===140){const V=Hs.ChangeTracker.with(t,te=>Bee(te,s,D)),ee=uc(D.parent,fI).typeParameter.name.text;W.push(Hc(nV,V,[w.Replace_infer_0_with_unknown,ee],Ble,w.Replace_all_unused_infer_with_unknown))}else{const V=Hs.ChangeTracker.with(t,ee=>VIe(s,D,ee,y,T,l,m,!1));if(V.length){const ee=am(D.parent)?D.parent:D;W.push(zee(V,[w.Remove_unused_declaration_for_Colon_0,ee.getText(s)]))}}const O=Hs.ChangeTracker.with(t,V=>FXe(V,r,s,D));return O.length&&W.push(Hc(nV,O,[w.Prefix_0_with_an_underscore,D.getText(s)],Gee,w.Prefix_all_unused_declarations_with_where_possible)),W},fixIds:[Gee,Oq,Fq,Ble],getAllCodeActions:t=>{const{sourceFile:r,program:s,cancellationToken:l}=t,m=s.getTypeChecker(),y=s.getSourceFiles();return Km(t,DFe,(T,D)=>{const I=bf(r,D.start);switch(t.fixId){case Gee:FXe(T,D.code,r,I);break;case Fq:{const W=AFe(I);W?T.delete(r,W):GIe(I)&&VIe(r,I,T,m,y,s,l,!0);break}case Oq:{if(I.kind===140||GIe(I))break;if(jx(I))T.delete(r,I);else if(I.kind===30)zIe(T,r,I);else if(E1(I.parent)){if(I.parent.parent.initializer)break;(!Pu(I.parent.parent)||BXe(I.parent.parent,m,y))&&T.delete(r,I.parent.parent)}else{if(vW(I.parent.parent)&&I.parent.parent.parent.initializer)break;CFe(r,I)?LXe(T,r,I.parent):VIe(r,I,T,m,y,s,l,!0)}break}case Ble:I.kind===140&&Bee(T,r,I);break;default:ce.fail(JSON.stringify(t.fixId))}})}})}});function VXe(t,r,s,l,m){const y=bf(r,s),T=Kr(y,uf);if(T.getStart(r)!==y.getStart(r)){const I=JSON.stringify({statementKind:ce.formatSyntaxKind(T.kind),tokenKind:ce.formatSyntaxKind(y.kind),errorCode:m,start:s,length:l});ce.fail("Token and statement should start at the same point. "+I)}const D=(E_(T.parent)?T.parent:T).parent;if(!E_(T.parent)||T===Dl(T.parent.statements))switch(D.kind){case 245:if(D.elseStatement){if(E_(T.parent))break;t.replaceNode(r,T,be.createBlock(Zn));return}case 247:case 248:t.delete(r,D);return}if(E_(T.parent)){const I=s+l,W=ce.checkDefined(UIe(soe(T.parent.statements,T),O=>O.posVXe(l,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Hc(zle,s,w.Remove_unreachable_code,zle,w.Remove_all_unreachable_code)]},fixIds:[zle],getAllCodeActions:t=>Km(t,IFe,(r,s)=>VXe(r,s.file,s.start,s.length,s.code))})}});function sve(t,r,s){const l=bf(r,s),m=uc(l.parent,iS),y=l.getStart(r),T=m.statement.getStart(r),D=mv(y,T,r)?T:ep(r.text,Wm(m,59,r).end,!0);t.deleteRange(r,{pos:y,end:D})}var Gle,kFe,HXe=G({"src/services/codefixes/fixUnusedLabel.ts"(){El(),hp(),Gle="fixUnusedLabel",kFe=[w.Unused_label.code],up({errorCodes:kFe,getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>sve(s,t.sourceFile,t.span.start));return[Hc(Gle,r,w.Remove_unused_label,Gle,w.Remove_all_unused_labels)]},fixIds:[Gle],getAllCodeActions:t=>Km(t,kFe,(r,s)=>sve(r,s.file,s.start))})}});function PFe(t,r,s,l,m){t.replaceNode(r,s,m.typeToTypeNode(l,s,void 0))}function JXe(t,r,s){const l=Kr(bf(t,r),l_t),m=l&&l.type;return m&&{typeNode:m,type:NFe(s,m)}}function l_t(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 NFe(t,r){if(MG(r)){const s=t.getTypeFromTypeNode(r.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(ur([s,t.getUndefinedType()],r.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(r)}var jle,Vle,wFe,$Xe=G({"src/services/codefixes/fixJSDocTypes.ts"(){El(),hp(),jle="fixJSDocTypes_plain",Vle="fixJSDocTypes_nullable",wFe=[w.JSDoc_types_can_only_be_used_inside_documentation_comments.code,w._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,w._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],up({errorCodes:wFe,getCodeActions(t){const{sourceFile:r}=t,s=t.program.getTypeChecker(),l=JXe(r,t.span.start,s);if(!l)return;const{typeNode:m,type:y}=l,T=m.getText(r),D=[I(y,jle,w.Change_all_jsdoc_style_types_to_TypeScript)];return m.kind===321&&D.push(I(y,Vle,w.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),D;function I(W,O,V){const ee=Hs.ChangeTracker.with(t,te=>PFe(te,r,m,W,s));return Hc("jdocTypes",ee,[w.Change_0_to_1,T,s.typeToString(W)],O,V)}},fixIds:[jle,Vle],getAllCodeActions(t){const{fixId:r,program:s,sourceFile:l}=t,m=s.getTypeChecker();return Km(t,wFe,(y,T)=>{const D=JXe(T.file,T.start,m);if(!D)return;const{typeNode:I,type:W}=D,O=I.kind===321&&r===Vle?m.getNullableType(W,32768):W;PFe(y,l,I,O,m)})}})}});function RFe(t,r,s){t.replaceNodeWithText(r,s,`${s.text}()`)}function cve(t,r){const s=bf(t,r);if(sa(s.parent)){let l=s.parent;for(;sa(l.parent);)l=l.parent;return l.name}if(An(s))return s}var Ule,MFe,u_t=G({"src/services/codefixes/fixMissingCallParentheses.ts"(){El(),hp(),Ule="fixMissingCallParentheses",MFe=[w.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],up({errorCodes:MFe,fixIds:[Ule],getCodeActions(t){const{sourceFile:r,span:s}=t,l=cve(r,s.start);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>RFe(y,t.sourceFile,l));return[Hc(Ule,m,w.Add_missing_call_parentheses,Ule,w.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>Km(t,MFe,(r,s)=>{const l=cve(s.file,s.start);l&&RFe(r,s.file,l)})})}});function qXe(t){if(t.type)return t.type;if(ff(t.parent)&&t.parent.type&&Z2(t.parent.type))return t.parent.type.type}function LFe(t,r){const s=bf(t,r),l=GE(s);if(!l)return;let m;switch(l.kind){case 174:m=l.name;break;case 262:case 218:m=Wm(l,100,t);break;case 219:const y=l.typeParameters?30:21;m=Wm(l,y,t)||Dl(l.parameters);break;default:return}return m&&{insertBefore:m,returnType:qXe(l)}}function lve(t,r,{insertBefore:s,returnType:l}){if(l){const m=iH(l);(!m||m.kind!==80||m.text!=="Promise")&&t.replaceNode(r,l,be.createTypeReferenceNode("Promise",be.createNodeArray([l])))}t.insertModifierBefore(r,134,s)}var Hle,OFe,KXe=G({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){El(),hp(),Hle="fixAwaitInSyncFunction",OFe=[w.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,w.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],up({errorCodes:OFe,getCodeActions(t){const{sourceFile:r,span:s}=t,l=LFe(r,s.start);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>lve(y,r,l));return[Hc(Hle,m,w.Add_async_modifier_to_containing_function,Hle,w.Add_all_missing_async_modifiers)]},fixIds:[Hle],getAllCodeActions:function(r){const s=new Map;return Km(r,OFe,(l,m)=>{const y=LFe(m.file,m.start);!y||!y0(s,Im(y.insertBefore))||lve(l,r.sourceFile,y)})}})}});function HIe(t,r,s,l,m){let y,T;if(l===w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)y=r,T=r+s;else if(l===w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const D=m.program.getTypeChecker(),I=bf(t,r).parent;ce.assert(Am(I),"error span of fixPropertyOverrideAccessor should only be on an accessor");const W=I.parent;ce.assert(Jl(W),"erroneous accessors should only be inside classes");const O=Vb(XFe(W,D));if(!O)return[];const V=lf(g7(I.name)),ee=D.getPropertyOfType(D.getTypeAtLocation(O),V);if(!ee||!ee.valueDeclaration)return[];y=ee.valueDeclaration.pos,T=ee.valueDeclaration.end,t=ns(ee.valueDeclaration)}else ce.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+l);return sYe(t,m.program,y,T,m,w.Generate_get_and_set_accessors.message)}var Jle,JIe,f_t=G({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){El(),hp(),Jle=[w._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,w._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],JIe="fixPropertyOverrideAccessor",up({errorCodes:Jle,getCodeActions(t){const r=HIe(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(r)return[Hc(JIe,r,w.Generate_get_and_set_accessors,JIe,w.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[JIe],getAllCodeActions:t=>Km(t,Jle,(r,s)=>{const l=HIe(s.file,s.start,s.length,s.code,t);if(l)for(const m of l)r.pushRaw(t.sourceFile,m)})})}});function __t(t,r){switch(t){case w.Parameter_0_implicitly_has_an_1_type.code:case w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ep(GE(r))?w.Infer_type_of_0_from_usage:w.Infer_parameter_types_from_usage;case w.Rest_parameter_0_implicitly_has_an_any_type.code:case w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Infer_parameter_types_from_usage;case w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return w.Infer_this_type_of_0_from_usage;default:return w.Infer_type_of_0_from_usage}}function XXe(t){switch(t){case w.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Variable_0_implicitly_has_an_1_type.code;case w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Parameter_0_implicitly_has_an_1_type.code;case w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Rest_parameter_0_implicitly_has_an_any_type.code;case w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return w.Member_0_implicitly_has_an_1_type.code}return t}function FFe(t,r,s,l,m,y,T,D,I){if(!lR(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:W}=s,O=Yj(r,m,I,D);switch(l=XXe(l),l){case w.Member_0_implicitly_has_an_1_type.code:case w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ff(W)&&T(W)||Os(W)||Np(W))return YXe(t,O,r,W,m,D,y),O.writeFixes(t),W;if(sa(W)){const te=$le(W.name,m,y),oe=PF(te,W,m,D);if(oe){const de=be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(oe),void 0);t.addJSDocTags(r,uc(W.parent.parent,Ou),[de])}return O.writeFixes(t),W}return;case w.Variable_0_implicitly_has_an_1_type.code:{const te=m.getTypeChecker().getSymbolAtLocation(s);return te&&te.valueDeclaration&&ff(te.valueDeclaration)&&T(te.valueDeclaration)?(YXe(t,O,ns(te.valueDeclaration),te.valueDeclaration,m,D,y),O.writeFixes(t),te.valueDeclaration):void 0}}const V=GE(s);if(V===void 0)return;let ee;switch(l){case w.Parameter_0_implicitly_has_an_1_type.code:if(Ep(V)){uve(t,O,r,V,m,D,y),ee=V;break}case w.Rest_parameter_0_implicitly_has_an_any_type.code:if(T(V)){const te=uc(W,Pu);d_t(t,O,r,te,V,m,D,y),ee=te}break;case w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:tm(V)&&An(V.name)&&($Ie(t,O,r,V,$le(V.name,m,y),m,D),ee=V);break;case w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Ep(V)&&(uve(t,O,r,V,m,D,y),ee=V);break;case w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Hs.isThisTypeAnnotatable(V)&&T(V)&&(p_t(t,r,V,m,D,y),ee=V);break;default:return ce.fail(String(l))}return O.writeFixes(t),ee}function YXe(t,r,s,l,m,y,T){An(l.name)&&$Ie(t,r,s,l,$le(l.name,m,T),m,y)}function d_t(t,r,s,l,m,y,T,D){if(!An(l.name))return;const I=eYe(m,s,y,D);if(ce.assert(m.parameters.length===I.length,"Parameter count and inference count should match"),Rs(m))qIe(t,s,I,y,T);else{const W=ph(m)&&!Wm(m,21,s);W&&t.insertNodeBefore(s,Dl(m.parameters),be.createToken(21));for(const{declaration:O,type:V}of I)O&&!O.type&&!O.initializer&&$Ie(t,r,s,O,V,y,T);W&&t.insertNodeAfter(s,yl(m.parameters),be.createToken(22))}}function p_t(t,r,s,l,m,y){const T=KIe(s,r,l,y);if(!T||!T.length)return;const D=qle(l,T,y).thisParameter(),I=PF(D,s,l,m);I&&(Rs(s)?QXe(t,r,s,I):t.tryInsertThisTypeAnnotation(r,s,I))}function QXe(t,r,s,l){t.addJSDocTags(r,s,[be.createJSDocThisTag(void 0,be.createJSDocTypeExpression(l))])}function uve(t,r,s,l,m,y,T){const D=pp(l.parameters);if(D&&An(l.name)&&An(D.name)){let I=$le(l.name,m,T);I===m.getTypeChecker().getAnyType()&&(I=$le(D.name,m,T)),Rs(l)?qIe(t,s,[{declaration:D,type:I}],m,y):$Ie(t,r,s,D,I,m,y)}}function $Ie(t,r,s,l,m,y,T){const D=PF(m,l,y,T);if(D)if(Rs(s)&&l.kind!==171){const I=ff(l)?to(l.parent.parent,Dh):l;if(!I)return;const W=be.createJSDocTypeExpression(D),O=tm(l)?be.createJSDocReturnTag(void 0,W,void 0):be.createJSDocTypeTag(void 0,W,void 0);t.addJSDocTags(s,I,[O])}else ZXe(D,l,s,t,r,iu(y.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,l,D)}function ZXe(t,r,s,l,m,y){const T=pB(t,y);return T&&l.tryInsertTypeAnnotation(s,r,T.typeNode)?(Ot(T.symbols,D=>m.addImportFromExportedSymbol(D,!0)),!0):!1}function qIe(t,r,s,l,m){const y=s.length&&s[0].declaration.parent;if(!y)return;const T=Qo(s,D=>{const I=D.declaration;if(I.initializer||X1(I)||!An(I.name))return;const W=D.type&&PF(D.type,I,l,m);if(W){const O=be.cloneNode(I.name);return Sa(O,7168),{name:be.cloneNode(I.name),param:I,isOptional:!!D.isOptional,typeNode:W}}});if(T.length)if(ph(y)||Dm(y)){const D=ph(y)&&!Wm(y,21,r);D&&t.insertNodeBefore(r,Dl(y.parameters),be.createToken(21)),Ot(T,({typeNode:I,param:W})=>{const O=be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(I)),V=be.createJSDocComment(void 0,[O]);t.insertNodeAt(r,W.getStart(r),V,{suffix:" "})}),D&&t.insertNodeAfter(r,yl(y.parameters),be.createToken(22))}else{const D=Vn(T,({name:I,typeNode:W,isOptional:O})=>be.createJSDocParameterTag(void 0,I,!!O,be.createJSDocTypeExpression(W),!1,void 0));t.addJSDocTags(r,y,D)}}function Wq(t,r,s){return Qo(Wf.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),s),l=>l.kind!==Wf.EntryKind.Span?to(l.node,An):void 0)}function $le(t,r,s){const l=Wq(t,r,s);return qle(r,l,s).single()}function eYe(t,r,s,l){const m=KIe(t,r,s,l);return m&&qle(s,m,l).parameters(t)||t.parameters.map(y=>({declaration:y,type:An(y.name)?$le(y.name,s,l):s.getTypeChecker().getAnyType()}))}function KIe(t,r,s,l){let m;switch(t.kind){case 176:m=Wm(t,137,r);break;case 219:case 218:const y=t.parent;m=(ff(y)||Os(y))&&An(y.name)?y.name:t.name;break;case 262:case 174:case 173:m=t.name;break}if(m)return Wq(m,s,l)}function qle(t,r,s){const l=t.getTypeChecker(),m={string:()=>l.getStringType(),number:()=>l.getNumberType(),Array:on=>l.createArrayType(on),Promise:on=>l.createPromiseType(on)},y=[l.getStringType(),l.getNumberType(),l.createArrayType(l.getAnyType()),l.createPromiseType(l.getAnyType())];return{single:I,parameters:W,thisParameter:O};function T(){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 D(on){const pn=new Map;for(const Xr of on)Xr.properties&&Xr.properties.forEach((Ut,In)=>{pn.has(In)||pn.set(In,[]),pn.get(In).push(Ut)});const Or=new Map;return pn.forEach((Xr,Ut)=>{Or.set(Ut,D(Xr))}),{isNumber:on.some(Xr=>Xr.isNumber),isString:on.some(Xr=>Xr.isString),isNumberOrString:on.some(Xr=>Xr.isNumberOrString),candidateTypes:ea(on,Xr=>Xr.candidateTypes),properties:Or,calls:ea(on,Xr=>Xr.calls),constructs:ea(on,Xr=>Xr.constructs),numberIndex:Ot(on,Xr=>Xr.numberIndex),stringIndex:Ot(on,Xr=>Xr.stringIndex),candidateThisTypes:ea(on,Xr=>Xr.candidateThisTypes),inferredTypes:void 0}}function I(){return Dt(V(r))}function W(on){if(r.length===0||!on.parameters)return;const pn=T();for(const Xr of r)s.throwIfCancellationRequested(),ee(Xr,pn);const Or=[...pn.constructs||[],...pn.calls||[]];return on.parameters.map((Xr,Ut)=>{const In=[],gr=dP(Xr);let Cr=!1;for(const Gn of Or)if(Gn.argumentTypes.length<=Ut)Cr=Rs(on),In.push(l.getUndefinedType());else if(gr)for(let Ur=Ut;UrOr.every(Ut=>!Ut(Xr)))}function _t(on){return Dt(it(on))}function Dt(on){if(!on.length)return l.getAnyType();const pn=l.getUnionType([l.getStringType(),l.getNumberType()]);let Xr=ke(on,[{high:In=>In===l.getStringType()||In===l.getNumberType(),low:In=>In===pn},{high:In=>!(In.flags&16385),low:In=>!!(In.flags&16385)},{high:In=>!(In.flags&114689)&&!(ji(In)&16),low:In=>!!(ji(In)&16)}]);const Ut=Xr.filter(In=>ji(In)&16);return Ut.length&&(Xr=Xr.filter(In=>!(ji(In)&16)),Xr.push(Ft(Ut))),l.getWidenedType(l.getUnionType(Xr.map(l.getBaseTypeOfLiteralType),2))}function Ft(on){if(on.length===1)return on[0];const pn=[],Or=[],Xr=[],Ut=[];let In=!1,gr=!1;const Cr=zg();for(const Ur of on){for(const di of l.getPropertiesOfType(Ur))Cr.add(di.escapedName,di.valueDeclaration?l.getTypeOfSymbolAtLocation(di,di.valueDeclaration):l.getAnyType());pn.push(...l.getSignaturesOfType(Ur,0)),Or.push(...l.getSignaturesOfType(Ur,1));const so=l.getIndexInfoOfType(Ur,0);so&&(Xr.push(so.type),In=In||so.isReadonly);const ho=l.getIndexInfoOfType(Ur,1);ho&&(Ut.push(ho.type),gr=gr||ho.isReadonly)}const ei=Gc(Cr,(Ur,so)=>{const ho=so.lengthl.getBaseTypeOfLiteralType(Cr)),gr=(Xr=on.calls)!=null&&Xr.length?Ye(on):void 0;return gr&&In?Ut.push(l.getUnionType([gr,...In],2)):(gr&&Ut.push(gr),Nt(In)&&Ut.push(...In)),Ut.push(...ut(on)),Ut}function Ye(on){const pn=new Map;on.properties&&on.properties.forEach((In,gr)=>{const Cr=l.createSymbol(4,gr);Cr.links.type=_t(In),pn.set(gr,Cr)});const Or=on.calls?[kn(on.calls)]:[],Xr=on.constructs?[kn(on.constructs)]:[],Ut=on.stringIndex?[l.createIndexInfo(l.getStringType(),_t(on.stringIndex),!1)]:[];return l.createAnonymousType(void 0,pn,Or,Xr,Ut)}function ut(on){if(!on.properties||!on.properties.size)return[];const pn=y.filter(Or=>lt(Or,on));return 0zt(Or,on)):[]}function lt(on,pn){return pn.properties?!wT(pn.properties,(Or,Xr)=>{const Ut=l.getTypeOfPropertyOfType(on,Xr);return Ut?Or.calls?!l.getSignaturesOfType(Ut,0).length||!l.isTypeAssignableTo(Ut,Mn(Or.calls)):!l.isTypeAssignableTo(Ut,_t(Or)):!0}):!1}function zt(on,pn){if(!(ji(on)&4)||!pn.properties)return on;const Or=on.target,Xr=Vb(Or.typeParameters);if(!Xr)return on;const Ut=[];return pn.properties.forEach((In,gr)=>{const Cr=l.getTypeOfPropertyOfType(Or,gr);ce.assert(!!Cr,"generic should have all the properties of its reference."),Ut.push(...Wt(Cr,_t(In),Xr))}),m[on.symbol.escapedName](Dt(Ut))}function Wt(on,pn,Or){if(on===Or)return[pn];if(on.flags&3145728)return ea(on.types,In=>Wt(In,pn,Or));if(ji(on)&4&&ji(pn)&4){const In=l.getTypeArguments(on),gr=l.getTypeArguments(pn),Cr=[];if(In&&gr)for(let ei=0;eiUt.argumentTypes.length));for(let Ut=0;Utgr.argumentTypes[Ut]||l.getUndefinedType())),on.some(gr=>gr.argumentTypes[Ut]===void 0)&&(In.flags|=16777216),pn.push(In)}const Xr=_t(D(on.map(Ut=>Ut.return_)));return l.createSignature(void 0,void 0,void 0,pn,Xr,void 0,Or,0)}function cr(on,pn){pn&&!(pn.flags&1)&&!(pn.flags&131072)&&(on.candidateTypes||(on.candidateTypes=[])).push(pn)}function un(on,pn){pn&&!(pn.flags&1)&&!(pn.flags&131072)&&(on.candidateThisTypes||(on.candidateThisTypes=[])).push(pn)}}var Kle,WFe,tYe=G({"src/services/codefixes/inferFromUsage.ts"(){El(),hp(),Kle="inferFromUsage",WFe=[w.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,w.Variable_0_implicitly_has_an_1_type.code,w.Parameter_0_implicitly_has_an_1_type.code,w.Rest_parameter_0_implicitly_has_an_any_type.code,w.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,w._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,w.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,w.Member_0_implicitly_has_an_1_type.code,w.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,w.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,w._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,w.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,w.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,w.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],up({errorCodes:WFe,getCodeActions(t){const{sourceFile:r,program:s,span:{start:l},errorCode:m,cancellationToken:y,host:T,preferences:D}=t,I=bf(r,l);let W;const O=Hs.ChangeTracker.with(t,ee=>{W=FFe(ee,r,I,m,s,y,xT,T,D)}),V=W&&o_(W);return!V||O.length===0?void 0:[Hc(Kle,O,[__t(m,I),Yv(V)],Kle,w.Infer_all_types_from_usage)]},fixIds:[Kle],getAllCodeActions(t){const{sourceFile:r,program:s,cancellationToken:l,host:m,preferences:y}=t,T=CF();return Km(t,WFe,(D,I)=>{FFe(D,r,bf(I.file,I.start),I.code,s,l,T,m,y)})}})}});function BFe(t,r,s){if(Rs(t))return;const l=bf(t,s),m=Kr(l,J_),y=m==null?void 0:m.type;if(!y)return;const T=r.getTypeFromTypeNode(y),D=r.getAwaitedType(T)||r.getVoidType(),I=r.typeToTypeNode(D,y,void 0);if(I)return{returnTypeNode:y,returnType:T,promisedTypeNode:I,promisedType:D}}function fve(t,r,s,l){t.replaceNode(r,s,be.createTypeReferenceNode("Promise",[l]))}var Xle,zFe,nYe=G({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){El(),hp(),Xle="fixReturnTypeInAsyncFunction",zFe=[w.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],up({errorCodes:zFe,fixIds:[Xle],getCodeActions:function(r){const{sourceFile:s,program:l,span:m}=r,y=l.getTypeChecker(),T=BFe(s,l.getTypeChecker(),m.start);if(!T)return;const{returnTypeNode:D,returnType:I,promisedTypeNode:W,promisedType:O}=T,V=Hs.ChangeTracker.with(r,ee=>fve(ee,s,D,W));return[Hc(Xle,V,[w.Replace_0_with_Promise_1,y.typeToString(I),y.typeToString(O)],Xle,w.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>Km(t,zFe,(r,s)=>{const l=BFe(s.file,t.program.getTypeChecker(),s.start);l&&fve(r,s.file,l.returnTypeNode,l.promisedTypeNode)})})}});function XIe(t,r,s,l){const{line:m}=Ah(r,s);(!l||m2(l,m))&&t.insertCommentBeforeLine(r,m,s," @ts-ignore")}var _ve,dve,GFe,jFe=G({"src/services/codefixes/disableJsDiagnostics.ts"(){El(),hp(),_ve="disableJsDiagnostics",dve="disableJsDiagnostics",GFe=Qo(Object.keys(w),t=>{const r=w[t];return r.category===1?r.code:void 0}),up({errorCodes:GFe,getCodeActions:function(r){const{sourceFile:s,program:l,span:m,host:y,formatContext:T}=r;if(!Rs(s)||!tW(s,l.getCompilerOptions()))return;const D=s.checkJsDirective?"":NP(y,T.options),I=[mC(_ve,[ROe(s.fileName,[NZ(s.checkJsDirective?R0(s.checkJsDirective.pos,s.checkJsDirective.end):nb(0,0),`// @ts-nocheck${D}`)])],w.Disable_checking_for_this_file)];return Hs.isValidLocationToAddComment(s,m.start)&&I.unshift(Hc(_ve,Hs.ChangeTracker.with(r,W=>XIe(W,s,m.start)),w.Ignore_this_error_message,dve,w.Add_ts_ignore_to_all_error_messages)),I},fixIds:[dve],getAllCodeActions:t=>{const r=new Set;return Km(t,GFe,(s,l)=>{Hs.isValidLocationToAddComment(l.file,l.start)&&XIe(s,l.file,l.start,r)})}})}});function dB(t,r,s,l,m,y,T){const D=t.symbol.members;for(const I of r)D.has(I.escapedName)||pve(I,t,s,l,m,y,T,void 0)}function rV(t){return{trackSymbol:()=>!1,moduleResolverHost:eq(t.program,t.host)}}function pve(t,r,s,l,m,y,T,D,I=3,W=!1){const O=t.getDeclarations(),V=pp(O),ee=l.program.getTypeChecker(),te=iu(l.program.getCompilerOptions()),oe=(V==null?void 0:V.kind)??171,de=ut(t,V),ue=V?tS(V):0;let Ne=ue&32;Ne|=ue&4?4:ue&16?16:0,V&&rb(V)&&(Ne|=128);const Be=_t(),Ve=ee.getWidenedType(ee.getTypeOfSymbolAtLocation(t,r)),pt=!!(t.flags&16777216),Le=!!(r.flags&33554432)||W,ht=Jx(s,m);switch(oe){case 171:case 172:const lt=ht===0?268435456:void 0;let zt=ee.typeToTypeNode(Ve,r,lt,rV(l));if(y){const tt=pB(zt,te);tt&&(zt=tt.typeNode,mB(y,tt.symbols))}T(be.createPropertyDeclaration(Be,V?Ft(de):t.getName(),pt&&I&2?be.createToken(58):void 0,zt,void 0));break;case 177:case 178:{ce.assertIsDefined(O);let tt=ee.typeToTypeNode(Ve,r,void 0,rV(l));const Mn=mG(O,V),kn=Mn.secondAccessor?[Mn.firstAccessor,Mn.secondAccessor]:[Mn.firstAccessor];if(y){const cr=pB(tt,te);cr&&(tt=cr.typeNode,mB(y,cr.symbols))}for(const cr of kn)if(tm(cr))T(be.createGetAccessorDeclaration(Be,Ft(de),Zn,Ye(tt),it(D,ht,Le)));else{ce.assertNode(cr,Ep,"The counterpart to a getter should be a setter");const un=yR(cr),on=un&&An(un.name)?ec(un.name):void 0;T(be.createSetAccessorDeclaration(Be,Ft(de),HFe(1,[on],[Ye(tt)],1,!1),it(D,ht,Le)))}break}case 173:case 174:ce.assertIsDefined(O);const Wt=Ve.isUnion()?ea(Ve.types,tt=>tt.getCallSignatures()):Ve.getCallSignatures();if(!gt(Wt))break;if(O.length===1){ce.assert(Wt.length===1,"One declaration implies one signature");const tt=Wt[0];ke(ht,tt,Be,Ft(de),it(D,ht,Le));break}for(const tt of Wt)ke(ht,tt,Be,Ft(de));if(!Le)if(O.length>Wt.length){const tt=ee.getSignatureFromDeclaration(O[O.length-1]);ke(ht,tt,Be,Ft(de),it(D,ht))}else ce.assert(O.length===Wt.length,"Declarations and signatures should match count"),T(m_t(ee,l,r,Wt,Ft(de),pt&&!!(I&1),Be,ht,D));break}function ke(lt,zt,Wt,tt,Mn){const kn=Yle(174,l,lt,zt,Mn,tt,Wt,pt&&!!(I&1),r,y);kn&&T(kn)}function _t(){let lt;return Ne&&(lt=FD(lt,be.createModifiersFromModifierFlags(Ne))),Dt()&&(lt=ur(lt,be.createToken(164))),lt&&be.createNodeArray(lt)}function Dt(){return!!(l.program.getCompilerOptions().noImplicitOverride&&V&&fk(V))}function Ft(lt){return An(lt)&<.escapedText==="constructor"?be.createComputedPropertyName(be.createStringLiteral(ec(lt),ht===0)):Rg(lt,!1)}function it(lt,zt,Wt){return Wt?void 0:Rg(lt,!1)||jee(zt)}function Ye(lt){return Rg(lt,!1)}function ut(lt,zt){if(I_(lt)&262144){const Wt=lt.links.nameType;if(Wt&&yv(Wt))return be.createIdentifier(lf(vv(Wt)))}return Rg(o_(zt),!1)}}function Yle(t,r,s,l,m,y,T,D,I,W){const O=r.program,V=O.getTypeChecker(),ee=iu(O.getCompilerOptions()),te=Rs(I),oe=524545|(s===0?268435456:0),de=V.signatureToSignatureDeclaration(l,t,I,oe,rV(r));if(!de)return;let ue=te?void 0:de.typeParameters,Ne=de.parameters,Be=te?void 0:de.type;if(W){if(ue){const ht=Ol(ue,ke=>{let _t=ke.constraint,Dt=ke.default;if(_t){const Ft=pB(_t,ee);Ft&&(_t=Ft.typeNode,mB(W,Ft.symbols))}if(Dt){const Ft=pB(Dt,ee);Ft&&(Dt=Ft.typeNode,mB(W,Ft.symbols))}return be.updateTypeParameterDeclaration(ke,ke.modifiers,ke.name,_t,Dt)});ue!==ht&&(ue=vr(be.createNodeArray(ht,ue.hasTrailingComma),ue))}const Le=Ol(Ne,ht=>{let ke=te?void 0:ht.type;if(ke){const _t=pB(ke,ee);_t&&(ke=_t.typeNode,mB(W,_t.symbols))}return be.updateParameterDeclaration(ht,ht.modifiers,ht.dotDotDotToken,ht.name,te?void 0:ht.questionToken,ke,ht.initializer)});if(Ne!==Le&&(Ne=vr(be.createNodeArray(Le,Ne.hasTrailingComma),Ne)),Be){const ht=pB(Be,ee);ht&&(Be=ht.typeNode,mB(W,ht.symbols))}}const Ve=D?be.createToken(58):void 0,pt=de.asteriskToken;if(Dm(de))return be.updateFunctionExpression(de,T,de.asteriskToken,to(y,An),ue,Ne,Be,m??de.body);if(ph(de))return be.updateArrowFunction(de,T,ue,Ne,Be,de.equalsGreaterThanToken,m??de.body);if(em(de))return be.updateMethodDeclaration(de,T,pt,y??be.createIdentifier(""),Ve,ue,Ne,Be,m);if(b0(de))return be.updateFunctionDeclaration(de,T,de.asteriskToken,to(y,An),ue,Ne,Be,m??de.body)}function VFe(t,r,s,l,m,y,T){const D=Jx(r.sourceFile,r.preferences),I=iu(r.program.getCompilerOptions()),W=rV(r),O=r.program.getTypeChecker(),V=Rs(T),{typeArguments:ee,arguments:te,parent:oe}=l,de=V?void 0:O.getContextualType(l),ue=Vn(te,Dt=>An(Dt)?Dt.text:sa(Dt)&&An(Dt.name)?Dt.name.text:void 0),Ne=V?[]:Vn(te,Dt=>O.getTypeAtLocation(Dt)),{argumentTypeNodes:Be,argumentTypeParameters:Ve}=iYe(O,s,Ne,T,I,1,W),pt=y?be.createNodeArray(be.createModifiersFromModifierFlags(y)):void 0,Le=Ds(oe)?be.createToken(42):void 0,ht=V?void 0:rYe(O,Ve,ee),ke=HFe(te.length,ue,Be,void 0,V),_t=V||de===void 0?void 0:O.typeToTypeNode(de,T,void 0,W);switch(t){case 174:return be.createMethodDeclaration(pt,Le,m,void 0,ht,ke,_t,jee(D));case 173:return be.createMethodSignature(pt,m,void 0,ht,ke,_t===void 0?be.createKeywordTypeNode(159):_t);case 262:return ce.assert(typeof m=="string"||An(m),"Unexpected name"),be.createFunctionDeclaration(pt,Le,m,ht,ke,_t,Vee(w.Function_not_implemented.message,D));default:ce.fail("Unexpected kind")}}function rYe(t,r,s){const l=new Set(r.map(y=>y[0])),m=new Map(r);if(s){const y=s.filter(D=>!r.some(I=>{var W;return t.getTypeAtLocation(D)===((W=I[1])==null?void 0:W.argumentType)})),T=l.size+y.length;for(let D=0;l.size{var T;return be.createTypeParameterDeclaration(void 0,y,(T=m.get(y))==null?void 0:T.constraint)})}function mve(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function gve(t,r,s,l,m,y,T){let D=t.typeToTypeNode(s,l,y,T);if(D&&Wx(D)){const I=pB(D,m);I&&(mB(r,I.symbols),D=I.typeNode)}return Rg(D)}function UFe(t){return t.isUnionOrIntersection()?t.types.some(UFe):t.flags&262144}function iYe(t,r,s,l,m,y,T){const D=[],I=new Map;for(let W=0;W=l?be.createToken(58):void 0,m?void 0:(s==null?void 0:s[D])||be.createKeywordTypeNode(159),void 0);y.push(O)}return y}function m_t(t,r,s,l,m,y,T,D,I){let W=l[0],O=l[0].minArgumentCount,V=!1;for(const de of l)O=Math.min(de.minArgumentCount,O),oT(de)&&(V=!0),de.parameters.length>=W.parameters.length&&(!oT(de)||oT(W))&&(W=de);const ee=W.parameters.length-(oT(W)?1:0),te=W.parameters.map(de=>de.name),oe=HFe(ee,te,void 0,O,!1);if(V){const de=be.createParameterDeclaration(void 0,be.createToken(26),te[ee]||"rest",ee>=O?be.createToken(58):void 0,be.createArrayTypeNode(be.createKeywordTypeNode(159)),void 0);oe.push(de)}return JFe(T,m,y,void 0,oe,g_t(l,t,r,s),D,I)}function g_t(t,r,s,l){if(Nt(t)){const m=r.getUnionType(Vn(t,r.getReturnTypeOfSignature));return r.typeToTypeNode(m,l,1,rV(s))}}function JFe(t,r,s,l,m,y,T,D){return be.createMethodDeclaration(t,void 0,r,s?be.createToken(58):void 0,l,m,y,D||jee(T))}function jee(t){return Vee(w.Method_not_implemented.message,t)}function Vee(t,r){return be.createBlock([be.createThrowStatement(be.createNewExpression(be.createIdentifier("Error"),void 0,[be.createStringLiteral(t,r===0)]))],!0)}function hve(t,r,s){const l=A9(r);if(!l)return;const m=WF(l,"compilerOptions");if(m===void 0){t.insertNodeAtObjectStart(r,l,Zle("compilerOptions",be.createObjectLiteralExpression(s.map(([T,D])=>Zle(T,D)),!0)));return}const y=m.initializer;if(Wd(y))for(const[T,D]of s){const I=WF(y,T);I===void 0?t.insertNodeAtObjectStart(r,y,Zle(T,D)):t.replaceNode(r,I.initializer,D)}}function Qle(t,r,s,l){hve(t,r,[[s,l]])}function Zle(t,r){return be.createPropertyAssignment(be.createStringLiteral(t),r)}function WF(t,r){return lr(t.properties,s=>Fm(s)&&!!s.name&&Wp(s.name)&&s.name.text===r)}function pB(t,r){let s;const l=nr(t,m,Uu);if(s&&l)return{typeNode:l,symbols:s};function m(y){if(BE(y)&&y.qualifier){const T=NS(y.qualifier),D=cq(T.symbol,r),I=D!==T.text?iV(y.qualifier,be.createIdentifier(D)):y.qualifier;s=ur(s,T.symbol);const W=Fa(y.typeArguments,m,Uu);return be.createTypeReferenceNode(I,W)}return ia(y,m,I6)}}function iV(t,r){return t.kind===80?r:be.createQualifiedName(iV(t.left,r),t.right)}function mB(t,r){r.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function yve(t,r){const s=K1(r);let l=bf(t,r.start);for(;l.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))($Fe||{})}});function sYe(t,r,s,l,m,y){const T=fYe(t,r,s,l);if(!T||Eq.isRefactorErrorInfo(T))return;const D=Hs.ChangeTracker.fromContext(m),{isStatic:I,isReadonly:W,fieldName:O,accessorName:V,originalName:ee,type:te,container:oe,declaration:de}=T;e2(O),e2(V),e2(de),e2(oe);let ue,Ne;if(Jl(oe)){const Ve=tS(de);if(v1(t)){const pt=be.createModifiersFromModifierFlags(Ve);ue=pt,Ne=pt}else ue=be.createModifiersFromModifierFlags(y_t(Ve)),Ne=be.createModifiersFromModifierFlags(uYe(Ve));I3(de)&&(Ne=Hi(ML(de),Ne))}_Ye(D,t,de,te,O,Ne);const Be=v_t(O,V,te,ue,I,oe);if(e2(Be),dYe(D,t,Be,de,oe),W){const Ve=E2(oe);Ve&&E_t(D,t,Ve,O.text,ee)}else{const Ve=b_t(O,V,te,ue,I,oe);e2(Ve),dYe(D,t,Ve,de,oe)}return D.getChanges()}function h_t(t){return An(t)||Wp(t)}function cYe(t){return Eb(t,t.parent)||Os(t)||Fm(t)}function qFe(t,r){return An(r)?be.createIdentifier(t):be.createStringLiteral(t)}function lYe(t,r,s){const l=r?s.name:be.createThis();return An(t)?be.createPropertyAccessExpression(l,t):be.createElementAccessExpression(l,be.createStringLiteralFromNode(t))}function y_t(t){return t&=-65,t&=-9,t&16||(t|=4),t}function uYe(t){return t&=-5,t&=-17,t|=8,t}function fYe(t,r,s,l,m=!0){const y=bf(t,s),T=s===l&&m,D=Kr(y.parent,cYe),I=124;if(!D||!(g4(D.name,t,s,l)||T))return{error:fs(w.Could_not_find_property_for_which_to_generate_accessor)};if(!h_t(D.name))return{error:fs(w.Name_is_not_valid)};if((tS(D)&126975|I)!==I)return{error:fs(w.Can_only_convert_property_with_modifier)};const W=D.name.text,O=NF(W),V=qFe(O?W:eB(`_${W}`,t),D.name),ee=qFe(O?eB(W.substring(1),t):W,D.name);return{isStatic:Ny(D),isReadonly:Cb(D),type:KFe(D,r),container:D.kind===169?D.parent.parent:D.parent,originalName:D.name.text,declaration:D,fieldName:V,accessorName:ee,renameAccessor:O}}function v_t(t,r,s,l,m,y){return be.createGetAccessorDeclaration(l,r,[],s,be.createBlock([be.createReturnStatement(lYe(t,m,y))],!0))}function b_t(t,r,s,l,m,y){return be.createSetAccessorDeclaration(l,r,[be.createParameterDeclaration(void 0,void 0,be.createIdentifier("value"),void 0,s)],be.createBlock([be.createExpressionStatement(be.createAssignment(lYe(t,m,y),be.createIdentifier("value")))],!0))}function T_t(t,r,s,l,m,y){const T=be.updatePropertyDeclaration(s,y,m,s.questionToken||s.exclamationToken,l,s.initializer);t.replaceNode(r,s,T)}function S_t(t,r,s,l){let m=be.updatePropertyAssignment(s,l,s.initializer);(m.modifiers||m.questionToken||m.exclamationToken)&&(m===s&&(m=be.cloneNode(m)),m.modifiers=void 0,m.questionToken=void 0,m.exclamationToken=void 0),t.replacePropertyAssignment(r,s,m)}function _Ye(t,r,s,l,m,y){Os(s)?T_t(t,r,s,l,m,y):Fm(s)?S_t(t,r,s,m):t.replaceNode(r,s,be.updateParameterDeclaration(s,y,s.dotDotDotToken,uc(m,An),s.questionToken,s.type,s.initializer))}function dYe(t,r,s,l,m){Eb(l,l.parent)?t.insertMemberAtStart(r,m,s):Fm(l)?t.insertNodeAfterComma(r,l,s):t.insertNodeAfter(r,l,s)}function E_t(t,r,s,l,m){s.body&&s.body.forEachChild(function y(T){Ed(T)&&T.expression.kind===110&&Wp(T.argumentExpression)&&T.argumentExpression.text===m&&o6(T)&&t.replaceNode(r,T.argumentExpression,be.createStringLiteral(l)),sa(T)&&T.expression.kind===110&&T.name.text===m&&o6(T)&&t.replaceNode(r,T.name,be.createIdentifier(l)),!S_(T)&&!Jl(T)&&T.forEachChild(y)})}function KFe(t,r){const s=pSe(t);if(Os(t)&&s&&t.questionToken){const l=r.getTypeChecker(),m=l.getTypeFromTypeNode(s);if(!l.isTypeAssignableTo(l.getUndefinedType(),m)){const y=g6(s)?s.types:[s];return be.createUnionTypeNode([...y,be.createKeywordTypeNode(157)])}}return s}function XFe(t,r){const s=[];for(;t;){const l=oC(t),m=l&&r.getSymbolAtLocation(l.expression);if(!m)break;const y=m.flags&2097152?r.getAliasedSymbol(m):m,T=y.declarations&&lr(y.declarations,Jl);if(!T)break;s.push(T),t=T}return s}var x_t=G({"src/services/codefixes/generateAccessors.ts"(){El()}});function pYe(t,r){const s=ns(r),l=uH(r),m=t.program.getCompilerOptions(),y=[];return y.push(mYe(t,s,r,Pk(l.name,void 0,r.moduleSpecifier,Jx(s,t.preferences)))),Zp(m)===1&&y.push(mYe(t,s,r,be.createImportEqualsDeclaration(void 0,!1,l.name,be.createExternalModuleReference(r.moduleSpecifier)))),y}function mYe(t,r,s,l){const m=Hs.ChangeTracker.with(t,y=>y.replaceNode(r,s,l));return mC(YFe,m,[w.Replace_import_with_0,m[0].textChanges[0].newText])}function A_t(t){const r=t.sourceFile,s=w.This_expression_is_not_callable.code===t.errorCode?213:214,l=Kr(bf(r,t.span.start),y=>y.kind===s);if(!l)return[];const m=l.expression;return QIe(t,m)}function gYe(t){const r=t.sourceFile,s=Kr(bf(r,t.span.start),l=>l.getStart()===t.span.start&&l.getEnd()===t.span.start+t.span.length);return s?QIe(t,s):[]}function QIe(t,r){const s=t.program.getTypeChecker().getTypeAtLocation(r);if(!(s.symbol&&uk(s.symbol)&&s.symbol.links.originatingImport))return[];const l=[],m=s.symbol.links.originatingImport;if(WE(m)||Oi(l,pYe(t,m)),Nr(r)&&!(Xv(r.parent)&&r.parent.name===r)){const y=t.sourceFile,T=Hs.ChangeTracker.with(t,D=>D.replaceNode(y,r,be.createPropertyAccessExpression(r,"default"),{}));l.push(mC(YFe,T,w.Use_synthetic_default_member))}return l}var YFe,hYe=G({"src/services/codefixes/fixInvalidImportSyntax.ts"(){El(),hp(),YFe="invalidImportSyntax",up({errorCodes:[w.This_expression_is_not_callable.code,w.This_expression_is_not_constructable.code],getCodeActions:A_t}),up({errorCodes:[w.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,w.Type_0_does_not_satisfy_the_constraint_1.code,w.Type_0_is_not_assignable_to_type_1.code,w.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,w.Type_predicate_0_is_not_assignable_to_1.code,w.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,w._0_index_type_1_is_not_assignable_to_2_index_type_3.code,w.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,w.Property_0_in_type_1_is_not_assignable_to_type_2.code,w.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,w.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:gYe})}});function yYe(t,r){const s=bf(t,r);if(An(s)&&Os(s.parent)){const l=Kb(s.parent);if(l)return{type:l,prop:s.parent,isJs:Rs(s.parent)}}}function vYe(t,r){if(r.isJs)return;const s=Hs.ChangeTracker.with(t,l=>bYe(l,t.sourceFile,r.prop));return Hc(Uee,s,[w.Add_definite_assignment_assertion_to_property_0,r.prop.getText()],Hee,w.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function bYe(t,r,s){e2(s);const l=be.updatePropertyDeclaration(s,s.modifiers,s.name,be.createToken(54),s.type,s.initializer);t.replaceNode(r,s,l)}function TYe(t,r){const s=Hs.ChangeTracker.with(t,l=>SYe(l,t.sourceFile,r));return Hc(Uee,s,[w.Add_undefined_type_to_property_0,r.prop.name.getText()],Jee,w.Add_undefined_type_to_all_uninitialized_properties)}function SYe(t,r,s){const l=be.createKeywordTypeNode(157),m=g6(s.type)?s.type.types.concat(l):[s.type,l],y=be.createUnionTypeNode(m);s.isJs?t.addJSDocTags(r,s.prop,[be.createJSDocTypeTag(void 0,be.createJSDocTypeExpression(y))]):t.replaceNode(r,s.type,y)}function EYe(t,r){if(r.isJs)return;const s=t.program.getTypeChecker(),l=ZFe(s,r.prop);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>QFe(y,t.sourceFile,r.prop,l));return Hc(Uee,m,[w.Add_initializer_to_property_0,r.prop.name.getText()],eue,w.Add_initializers_to_all_uninitialized_properties)}function QFe(t,r,s,l){e2(s);const m=be.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,l);t.replaceNode(r,s,m)}function ZFe(t,r){return vve(t,t.getTypeFromTypeNode(r.type))}function vve(t,r){if(r.flags&512)return r===t.getFalseType()||r===t.getFalseType(!0)?be.createFalse():be.createTrue();if(r.isStringLiteral())return be.createStringLiteral(r.value);if(r.isNumberLiteral())return be.createNumericLiteral(r.value);if(r.flags&2048)return be.createBigIntLiteral(r.value);if(r.isUnion())return Yr(r.types,s=>vve(t,s));if(r.isClass()){const s=RS(r.symbol);if(!s||il(s,256))return;const l=E2(s);return l&&l.parameters.length?void 0:be.createNewExpression(be.createIdentifier(r.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(r))return be.createArrayLiteralExpression()}var Uee,Hee,Jee,eue,e5e,xYe=G({"src/services/codefixes/fixStrictClassInitialization.ts"(){El(),hp(),Uee="strictClassInitialization",Hee="addMissingPropertyDefiniteAssignmentAssertions",Jee="addMissingPropertyUndefinedType",eue="addMissingPropertyInitializer",e5e=[w.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],up({errorCodes:e5e,getCodeActions:function(r){const s=yYe(r.sourceFile,r.span.start);if(!s)return;const l=[];return ur(l,TYe(r,s)),ur(l,vYe(r,s)),ur(l,EYe(r,s)),l},fixIds:[Hee,Jee,eue],getAllCodeActions:t=>Km(t,e5e,(r,s)=>{const l=yYe(s.file,s.start);if(l)switch(t.fixId){case Hee:bYe(r,s.file,l.prop);break;case Jee:SYe(r,s.file,l);break;case eue:const m=t.program.getTypeChecker(),y=ZFe(m,l.prop);if(!y)return;QFe(r,s.file,l.prop,y);break;default:ce.fail(JSON.stringify(t.fixId))}})})}});function t5e(t,r,s){const{allowSyntheticDefaults:l,defaultImportName:m,namedImports:y,statement:T,required:D}=s;t.replaceNode(r,T,m&&!l?be.createImportEqualsDeclaration(void 0,!1,m,be.createExternalModuleReference(D)):be.createImportDeclaration(void 0,be.createImportClause(!1,m,y),D,void 0))}function AYe(t,r,s){const{parent:l}=bf(t,s);eT(l,!0)||ce.failBadSyntaxKind(l);const m=uc(l.parent,ff),y=to(m.name,An),T=E1(m.name)?ZIe(m.name):void 0;if(y||T)return{allowSyntheticDefaults:VN(r.getCompilerOptions()),defaultImportName:y,namedImports:T,statement:uc(m.parent.parent,Dh),required:Dl(l.arguments)}}function ZIe(t){const r=[];for(const s of t.elements){if(!An(s.name)||s.initializer)return;r.push(be.createImportSpecifier(!1,to(s.propertyName,An),s.name))}if(r.length)return be.createNamedImports(r)}var tue,n5e,CYe=G({"src/services/codefixes/requireInTs.ts"(){El(),hp(),tue="requireInTs",n5e=[w.require_call_may_be_converted_to_an_import.code],up({errorCodes:n5e,getCodeActions(t){const r=AYe(t.sourceFile,t.program,t.span.start);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>t5e(l,t.sourceFile,r));return[Hc(tue,s,w.Convert_require_to_import,tue,w.Convert_all_require_to_import)]},fixIds:[tue],getAllCodeActions:t=>Km(t,n5e,(r,s)=>{const l=AYe(s.file,t.program,s.start);l&&t5e(r,t.sourceFile,l)})})}});function r5e(t,r){const s=bf(t,r);if(!An(s))return;const{parent:l}=s;if(kh(l)&&j0(l.moduleReference))return{importNode:l,name:s,moduleSpecifier:l.moduleReference.expression};if(YL(l)){const m=l.parent.parent;return{importNode:m,name:s,moduleSpecifier:m.moduleSpecifier}}}function bve(t,r,s,l){t.replaceNode(r,s.importNode,Pk(s.name,void 0,s.moduleSpecifier,Jx(r,l)))}var nue,i5e,DYe=G({"src/services/codefixes/useDefaultImport.ts"(){El(),hp(),nue="useDefaultImport",i5e=[w.Import_may_be_converted_to_a_default_import.code],up({errorCodes:i5e,getCodeActions(t){const{sourceFile:r,span:{start:s}}=t,l=r5e(r,s);if(!l)return;const m=Hs.ChangeTracker.with(t,y=>bve(y,r,l,t.preferences));return[Hc(nue,m,w.Convert_to_default_import,nue,w.Convert_all_to_default_imports)]},fixIds:[nue],getAllCodeActions:t=>Km(t,i5e,(r,s)=>{const l=r5e(s.file,s.start);l&&bve(r,s.file,l,t.preferences)})})}});function Tve(t,r,s){const l=to(bf(r,s.start),nS);if(!l)return;const m=l.getText(r)+"n";t.replaceNode(r,l,be.createBigIntLiteral(m))}var rue,o5e,IYe=G({"src/services/codefixes/useBigintLiteral.ts"(){El(),hp(),rue="useBigintLiteral",o5e=[w.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],up({errorCodes:o5e,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>Tve(l,r.sourceFile,r.span));if(s.length>0)return[Hc(rue,s,w.Convert_to_a_bigint_numeric_literal,rue,w.Convert_all_to_bigint_numeric_literals)]},fixIds:[rue],getAllCodeActions:t=>Km(t,o5e,(r,s)=>Tve(r,s.file,s))})}});function a5e(t,r){const s=bf(t,r);return ce.assert(s.kind===102,"This token should be an ImportKeyword"),ce.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function s5e(t,r,s){const l=be.updateImportTypeNode(s,s.argument,s.assertions,s.qualifier,s.typeArguments,!0);t.replaceNode(r,s,l)}var Sve,iue,c5e,kYe=G({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){El(),hp(),Sve="fixAddModuleReferTypeMissingTypeof",iue=Sve,c5e=[w.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],up({errorCodes:c5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=a5e(s,l.start),y=Hs.ChangeTracker.with(r,T=>s5e(T,s,m));return[Hc(iue,y,w.Add_missing_typeof,iue,w.Add_missing_typeof)]},fixIds:[iue],getAllCodeActions:t=>Km(t,c5e,(r,s)=>s5e(r,t.sourceFile,a5e(s.file,s.start)))})}});function l5e(t,r){let m=bf(t,r).parent.parent;if(!(!ys(m)&&(m=m.parent,!ys(m)))&&Um(m.operatorToken))return m}function PYe(t,r,s){const l=eke(s);l&&t.replaceNode(r,s,be.createJsxFragment(be.createJsxOpeningFragment(),l,be.createJsxJsxClosingFragment()))}function eke(t){const r=[];let s=t;for(;;)if(ys(s)&&Um(s.operatorToken)&&s.operatorToken.kind===28){if(r.push(s.left),m1(s.right))return r.push(s.right),r;if(ys(s.right)){s=s.right;continue}else return}else return}var oue,u5e,NYe=G({"src/services/codefixes/wrapJsxInFragment.ts"(){El(),hp(),oue="wrapJsxInFragment",u5e=[w.JSX_expressions_must_have_one_parent_element.code],up({errorCodes:u5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=l5e(s,l.start);if(!m)return;const y=Hs.ChangeTracker.with(r,T=>PYe(T,s,m));return[Hc(oue,y,w.Wrap_in_JSX_fragment,oue,w.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[oue],getAllCodeActions:t=>Km(t,u5e,(r,s)=>{const l=l5e(t.sourceFile,s.start);l&&PYe(r,t.sourceFile,l)})})}});function wYe(t,r){const s=bf(t,r),l=to(s.parent.parent,Xb);if(!l)return;const m=Kp(l.parent)?l.parent:to(l.parent.parent,mg);if(m)return{indexSignature:l,container:m}}function RYe(t,r){return be.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,r)}function Eve(t,r,{indexSignature:s,container:l}){const y=(Kp(l)?l.members:l.type.members).filter(O=>!Xb(O)),T=Dl(s.parameters),D=be.createTypeParameterDeclaration(void 0,uc(T.name,An),T.type),I=be.createMappedTypeNode(Cb(s)?be.createModifier(148):void 0,D,void 0,s.questionToken,s.type,void 0),W=be.createIntersectionTypeNode([...uG(l),I,...y.length?[be.createTypeLiteralNode(y)]:Zn]);t.replaceNode(r,l,RYe(l,W))}var aue,f5e,_5e=G({"src/services/codefixes/convertToMappedObjectType.ts"(){El(),hp(),aue="fixConvertToMappedObjectType",f5e=[w.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],up({errorCodes:f5e,getCodeActions:function(r){const{sourceFile:s,span:l}=r,m=wYe(s,l.start);if(!m)return;const y=Hs.ChangeTracker.with(r,D=>Eve(D,s,m)),T=ec(m.container.name);return[Hc(aue,y,[w.Convert_0_to_mapped_object_type,T],aue,[w.Convert_0_to_mapped_object_type,T])]},fixIds:[aue],getAllCodeActions:t=>Km(t,f5e,(r,s)=>{const l=wYe(s.file,s.start);l&&Eve(r,s.file,l)})})}}),tke,MYe,LYe=G({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){El(),hp(),tke="removeAccidentalCallParentheses",MYe=[w.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],up({errorCodes:MYe,getCodeActions(t){const r=Kr(bf(t.sourceFile,t.span.start),el);if(!r)return;const s=Hs.ChangeTracker.with(t,l=>{l.deleteRange(t.sourceFile,{pos:r.expression.end,end:r.end})});return[mC(tke,s,w.Remove_parentheses)]},fixIds:[tke]})}});function xve(t,r,s){const l=to(bf(r,s.start),D=>D.kind===135),m=l&&to(l.parent,h6);if(!m)return;let y=m;if(sb(m.parent)){const D=qL(m.expression,!1);if(An(D)){const I=T0(m.parent.pos,r);I&&I.kind!==105&&(y=m.parent)}}t.replaceNode(r,y,m.expression)}var sue,d5e,OYe=G({"src/services/codefixes/removeUnnecessaryAwait.ts"(){El(),hp(),sue="removeUnnecessaryAwait",d5e=[w.await_has_no_effect_on_the_type_of_this_expression.code],up({errorCodes:d5e,getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>xve(l,r.sourceFile,r.span));if(s.length>0)return[Hc(sue,s,w.Remove_unnecessary_await,sue,w.Remove_all_unnecessary_uses_of_await)]},fixIds:[sue],getAllCodeActions:t=>Km(t,d5e,(r,s)=>xve(r,s.file,s))})}});function p5e(t,r){return Kr(bf(t,r.start),Fv)}function nke(t,r,s){if(!r)return;const l=ce.checkDefined(r.importClause);t.replaceNode(s.sourceFile,r,be.updateImportDeclaration(r,r.modifiers,be.updateImportClause(l,l.isTypeOnly,l.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(s.sourceFile,r,be.createImportDeclaration(void 0,be.updateImportClause(l,l.isTypeOnly,void 0,l.namedBindings),r.moduleSpecifier,r.assertClause))}var cue,rke,FYe=G({"src/services/codefixes/splitTypeOnlyImport.ts"(){El(),hp(),cue=[w.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],rke="splitTypeOnlyImport",up({errorCodes:cue,fixIds:[rke],getCodeActions:function(r){const s=Hs.ChangeTracker.with(r,l=>nke(l,p5e(r.sourceFile,r.span),r));if(s.length)return[Hc(rke,s,w.Split_into_two_separate_import_declarations,rke,w.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>Km(t,cue,(r,s)=>{nke(r,p5e(t.sourceFile,s),t)})})}});function m5e(t,r,s){var l;const y=s.getTypeChecker().getSymbolAtLocation(bf(t,r));if(y===void 0)return;const T=to((l=y==null?void 0:y.valueDeclaration)==null?void 0:l.parent,My);if(T===void 0)return;const D=Wm(T,87,t);if(D!==void 0)return{symbol:y,token:D}}function Ave(t,r,s){t.replaceNode(r,s,be.createToken(121))}var lue,g5e,WYe=G({"src/services/codefixes/convertConstToLet.ts"(){El(),hp(),lue="fixConvertConstToLet",g5e=[w.Cannot_assign_to_0_because_it_is_a_constant.code],up({errorCodes:g5e,getCodeActions:function(r){const{sourceFile:s,span:l,program:m}=r,y=m5e(s,l.start,m);if(y===void 0)return;const T=Hs.ChangeTracker.with(r,D=>Ave(D,s,y.token));return[NOe(lue,T,w.Convert_const_to_let,lue,w.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:r}=t,s=new Map;return GR(Hs.ChangeTracker.with(t,l=>{LF(t,g5e,m=>{const y=m5e(m.file,m.start,r);if(y&&y0(s,Bp(y.symbol)))return Ave(l,m.file,y.token)})}))},fixIds:[lue]})}});function h5e(t,r,s){const l=bf(t,r);return l.kind===27&&l.parent&&(Wd(l.parent)||Ch(l.parent))?{node:l}:void 0}function Cve(t,r,{node:s}){const l=be.createToken(28);t.replaceNode(r,s,l)}var Dve,ike,y5e,BYe=G({"src/services/codefixes/fixExpectedComma.ts"(){El(),hp(),Dve="fixExpectedComma",ike=w._0_expected.code,y5e=[ike],up({errorCodes:y5e,getCodeActions(t){const{sourceFile:r}=t,s=h5e(r,t.span.start,t.errorCode);if(!s)return;const l=Hs.ChangeTracker.with(t,m=>Cve(m,r,s));return[Hc(Dve,l,[w.Change_0_to_1,";",","],Dve,[w.Change_0_to_1,";",","])]},fixIds:[Dve],getAllCodeActions:t=>Km(t,y5e,(r,s)=>{const l=h5e(s.file,s.start,s.code);l&&Cve(r,t.sourceFile,l)})})}});function zYe(t,r,s,l,m){const y=bf(r,s.start);if(!An(y)||!el(y.parent)||y.parent.expression!==y||y.parent.arguments.length!==0)return;const T=l.getTypeChecker(),D=T.getSymbolAtLocation(y),I=D==null?void 0:D.valueDeclaration;if(!I||!Pu(I)||!Ac(I.parent.parent)||m!=null&&m.has(I))return;m==null||m.add(I);const W=GYe(I.parent.parent);if(gt(W)){const O=W[0],V=!g6(O)&&!xR(O)&&xR(be.createUnionTypeNode([O,be.createKeywordTypeNode(116)]).types[0]);V&&t.insertText(r,O.pos,"("),t.insertText(r,O.end,V?") | void":" | void")}else{const O=T.getResolvedSignature(y.parent),V=O==null?void 0:O.parameters[0],ee=V&&T.getTypeOfSymbolAtLocation(V,I.parent.parent);Rs(I)?(!ee||ee.flags&3)&&(t.insertText(r,I.parent.parent.end,")"),t.insertText(r,ep(r.text,I.parent.parent.pos),"/** @type {Promise} */(")):(!ee||ee.flags&2)&&t.insertText(r,I.parent.parent.expression.end,"")}}function GYe(t){var r;if(Rs(t)){if(sb(t.parent)){const s=(r=w8(t.parent))==null?void 0:r.typeExpression.type;if(s&&x2(s)&&An(s.typeName)&&ec(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var oke,Ive,v5e,fT=G({"src/services/codefixes/fixAddVoidToPromise.ts"(){El(),hp(),oke="addVoidToPromise",Ive="addVoidToPromise",v5e=[w.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,w.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],up({errorCodes:v5e,fixIds:[Ive],getCodeActions(t){const r=Hs.ChangeTracker.with(t,s=>zYe(s,t.sourceFile,t.span,t.program));if(r.length>0)return[Hc(oke,r,w.Add_void_to_Promise_resolved_without_a_value,Ive,w.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return Km(t,v5e,(r,s)=>zYe(r,s.file,s,t.program,new Set))}})}}),If={};Oe(If,{PreserveOptionalFlags:()=>$Fe,addNewNodeForMemberSymbol:()=>pve,codeFixAll:()=>Km,createCodeFixAction:()=>Hc,createCodeFixActionMaybeFixAll:()=>NOe,createCodeFixActionWithoutFixAll:()=>mC,createCombinedCodeActions:()=>GR,createFileTextChanges:()=>ROe,createImportAdder:()=>Yj,createImportSpecifierResolver:()=>Pft,createJsonPropertyAssignment:()=>Zle,createMissingMemberNodes:()=>dB,createSignatureDeclarationFromCallExpression:()=>VFe,createSignatureDeclarationFromSignature:()=>Yle,createStubbedBody:()=>Vee,eachDiagnostic:()=>LF,findAncestorMatchingSpan:()=>yve,findJsonProperty:()=>WF,generateAccessorFromProperty:()=>sYe,getAccessorConvertiblePropertyAtPosition:()=>fYe,getAllFixes:()=>Sg,getAllSupers:()=>XFe,getArgumentTypesAndTypeParameters:()=>iYe,getFixes:()=>qqe,getImportCompletionAction:()=>WKe,getImportKind:()=>v7e,getJSDocTypedefNodes:()=>u7e,getNoopSymbolTrackerWithResolver:()=>rV,getPromoteTypeOnlyCompletionAction:()=>BKe,getSupportedErrorCodes:()=>Qut,importFixName:()=>Bye,importSymbols:()=>mB,moduleSpecifierToValidIdentifier:()=>Wye,moduleSymbolToValidIdentifier:()=>Fye,parameterShouldGetTypeFromJSDoc:()=>VOe,registerCodeFix:()=>up,setJsonCompilerOptionValue:()=>Qle,setJsonCompilerOptionValues:()=>hve,tryGetAutoImportableReferenceFromTypeNode:()=>pB,typeToAutoImportableTypeNode:()=>gve});var hp=G({"src/services/_namespaces/ts.codefix.ts"(){kDe(),Zut(),Xqe(),Qqe(),nft(),FOe(),WOe(),GDe(),rft(),fKe(),qDe(),_ft(),pft(),CKe(),DKe(),kKe(),Cft(),RKe(),MKe(),OKe(),qKe(),XKe(),ZKe(),eXe(),tXe(),Vft(),oXe(),sXe(),fXe(),vXe(),TXe(),SXe(),xXe(),AXe(),CXe(),DXe(),Zft(),kXe(),PXe(),NXe(),e_t(),t_t(),r_t(),MXe(),jXe(),UXe(),HXe(),$Xe(),u_t(),KXe(),f_t(),tYe(),nYe(),jFe(),aYe(),x_t(),hYe(),xYe(),CYe(),DYe(),IYe(),kYe(),NYe(),_5e(),LYe(),OYe(),FYe(),WYe(),BYe(),fT()}});function C_t(t){return!!(t.kind&1)}function kve(t){return!!(t.kind&2)}function BF(t){return!!(t&&t.kind&4)}function $ee(t){return!!(t&&t.kind===32)}function D_t(t){return BF(t)||$ee(t)||ake(t)}function I_t(t){return(BF(t)||$ee(t))&&!!t.isFromPackageJson}function k_t(t){return!!(t.kind&8)}function jYe(t){return!!(t.kind&16)}function b5e(t){return!!(t&&t.kind&64)}function VYe(t){return!!(t&&t.kind&128)}function T5e(t){return!!(t&&t.kind&256)}function ake(t){return!!(t&&t.kind&512)}function UYe(t,r,s,l,m,y,T,D,I){var W,O,V;const ee=cf(),te=T||UN(Jd(l.getCompilerOptions()));let oe=!1,de=0,ue=0,Ne=0,Be=0;const Ve=I({tryResolve:Le,skippedAny:()=>oe,resolvedAny:()=>ue>0,resolvedBeyondLimit:()=>ue>Yee}),pt=Be?` (${(Ne/Be*100).toFixed(1)}% hit rate)`:"";return(W=r.log)==null||W.call(r,`${t}: resolved ${ue} module specifiers, plus ${de} ambient and ${Ne} from cache${pt}`),(O=r.log)==null||O.call(r,`${t}: response is ${oe?"incomplete":"complete"}`),(V=r.log)==null||V.call(r,`${t}: ${cf()-ee}`),Ve;function Le(ht,ke){if(ke){const it=s.getModuleSpecifierForBestExportInfo(ht,m,D);return it&&de++,it||"failed"}const _t=te||y.allowIncompleteCompletions&&ue{const oe=Qo(I.entries,de=>{var ue;if(!de.hasAction||!de.source||!de.data||HYe(de.data))return de;if(!hQe(de.name,O))return;const{origin:Ne}=ce.checkDefined(Fve(de.name,de.data,l,m)),Be=V.get(r.path,de.data.exportMapKey),Ve=Be&&te.tryResolve(Be,!tb(HE(Ne.moduleSymbol.name)));if(Ve==="skipped")return de;if(!Ve||Ve==="failed"){(ue=m.log)==null||ue.call(m,`Unexpected failure resolving auto import for '${de.name}' from '${de.source}'`);return}const pt={...Ne,kind:32,moduleSpecifier:Ve.moduleSpecifier};return de.data=ZYe(pt),de.source=Rve(pt),de.sourceDisplay=[RA(pt.moduleSpecifier)],de});return te.skippedAny()||(I.isIncomplete=void 0),oe});return I.entries=ee,I.flags=(I.flags||0)|4,I.optionalReplacementSpan=KYe(W),I}function ske(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function E5e(t,r,s,l,m,y){const T=bf(t,r);if(!NT(T)&&!Gx(T))return[];const D=Gx(T)?T:T.parent;if(!Gx(D))return[];const I=D.parent;if(!S_(I))return[];const W=v1(t),O=m.includeCompletionsWithSnippetText||void 0,V=dp(D.tags,ee=>AA(ee)&&ee.getEnd()<=r);return Qo(I.parameters,ee=>{if(!zz(ee).length){if(An(ee.name)){const te={tabstop:1},oe=ee.name.text;let de=fue(oe,ee.initializer,ee.dotDotDotToken,W,!1,!1,s,l,m),ue=O?fue(oe,ee.initializer,ee.dotDotDotToken,W,!1,!0,s,l,m,te):void 0;return y&&(de=de.slice(1),ue&&(ue=ue.slice(1))),{name:de,kind:"parameter",sortText:cm.LocationPriority,insertText:O?ue:void 0,isSnippet:O}}else if(ee.parent.parameters.indexOf(ee)===V){const te=`param${V}`,oe=qee(te,ee.name,ee.initializer,ee.dotDotDotToken,W,!1,s,l,m),de=O?qee(te,ee.name,ee.initializer,ee.dotDotDotToken,W,!0,s,l,m):void 0;let ue=oe.join(JE(l)+"* "),Ne=de==null?void 0:de.join(JE(l)+"* ");return y&&(ue=ue.slice(1),Ne&&(Ne=Ne.slice(1))),{name:ue,kind:"parameter",sortText:cm.LocationPriority,insertText:O?Ne:void 0,isSnippet:O}}}})}function qee(t,r,s,l,m,y,T,D,I){if(!m)return[fue(t,s,l,m,!1,y,T,D,I,{tabstop:1})];return W(t,r,s,l,{tabstop:1});function W(V,ee,te,oe,de){if(E1(ee)&&!oe){const Ne={tabstop:de.tabstop},Be=fue(V,te,oe,m,!0,y,T,D,I,Ne);let Ve=[];for(const pt of ee.elements){const Le=O(V,pt,Ne);if(Le)Ve.push(...Le);else{Ve=void 0;break}}if(Ve)return de.tabstop=Ne.tabstop,[Be,...Ve]}return[fue(V,te,oe,m,!1,y,T,D,I,de)]}function O(V,ee,te){if(!ee.propertyName&&An(ee.name)||An(ee.name)){const oe=ee.propertyName?nH(ee.propertyName):ee.name.text;if(!oe)return;const de=`${V}.${oe}`;return[fue(de,ee.initializer,ee.dotDotDotToken,m,!1,y,T,D,I,te)]}else if(ee.propertyName){const oe=nH(ee.propertyName);return oe&&W(`${V}.${oe}`,ee.name,ee.initializer,ee.dotDotDotToken,te)}}}function fue(t,r,s,l,m,y,T,D,I,W){if(y&&ce.assertIsDefined(W),r&&(t=P_t(t,r)),y&&(t=nD(t)),l){let O="*";if(m)ce.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),O="Object";else{if(r){const te=T.getTypeAtLocation(r.parent);if(!(te.flags&16385)){const oe=r.getSourceFile(),ue=Jx(oe,I)===0?268435456:0,Ne=T.typeToTypeNode(te,Kr(r,S_),ue);if(Ne){const Be=y?wve({removeComments:!0,module:D.module,target:D.target}):f4({removeComments:!0,module:D.module,target:D.target});Sa(Ne,1),O=Be.printNode(4,Ne,oe)}}}y&&O==="*"&&(O=`\${${W.tabstop++}:${O}}`)}const V=!m&&s?"...":"",ee=y?`\${${W.tabstop++}}`:"";return`@param {${V}${O}} ${t} ${ee}`}else{const O=y?`\${${W.tabstop++}}`:"";return`@param ${t} ${O}`}}function P_t(t,r){const s=r.getText().trim();return s.includes(` +`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function N_t(t){return{name:Nd(t),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords}}function JYe(t,r){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r,entries:t.slice()}}function $Ye(t,r,s){return{kind:4,keywordCompletions:w5e(t,r),isNewIdentifierLocation:s}}function qYe(t){switch(t){case 156:return 8;default:ce.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function KYe(t){return(t==null?void 0:t.kind)===80?gE(t):void 0}function XYe(t,r,s,l,m,y,T,D,I,W){const{symbols:O,contextToken:V,completionKind:ee,isInSnippetScope:te,isNewIdentifierLocation:oe,location:de,propertyAccessToConvert:ue,keywordFilters:Ne,symbolToOriginInfoMap:Be,recommendedCompletion:Ve,isJsxInitializer:pt,isTypeOnlyLocation:Le,isJsxIdentifierExpected:ht,isRightOfOpenTag:ke,isRightOfDotOrQuestionDot:_t,importStatementCompletion:Dt,insideJsDocTagTypeExpression:Ft,symbolToSortTextMap:it,hasUnresolvedAutoImports:Ye}=y;let ut=y.literals;const lt=s.getTypeChecker();if($9(t.scriptKind)===1){const cr=R_t(de,t);if(cr)return cr}const zt=Kr(V,tx);if(zt&&(EEe(V)||N7(V,zt.expression))){const cr=YZ(lt,zt.parent.clauses);ut=ut.filter(un=>!cr.hasValue(un)),O.forEach((un,on)=>{if(un.valueDeclaration&&Qb(un.valueDeclaration)){const pn=lt.getConstantValue(un.valueDeclaration);pn!==void 0&&cr.hasValue(pn)&&(Be[on]={kind:256})}})}const Wt=g2(),tt=x5e(t,l);if(tt&&!oe&&(!O||O.length===0)&&Ne===0)return;const Mn=I5e(O,Wt,void 0,V,de,I,t,r,s,iu(l),m,ee,T,l,D,Le,ue,ht,pt,Dt,Ve,Be,it,ht,ke,W);if(Ne!==0)for(const cr of w5e(Ne,!Ft&&v1(t)))(Le&&Q$(TN(cr.name))||!Mn.has(cr.name))&&(Mn.add(cr.name),d0(Wt,cr,uue,!0));for(const cr of U_t(V,I))Mn.has(cr.name)||(Mn.add(cr.name),d0(Wt,cr,uue,!0));for(const cr of ut){const un=M_t(t,T,cr);Mn.add(un.name),d0(Wt,un,uue,!0)}tt||A5e(t,de.pos,Mn,iu(l),Wt);let kn;if(T.includeCompletionsWithInsertText&&V&&!ke&&!_t&&(kn=Kr(V,xP))){const cr=Nve(kn,t,T,l,r,s,D);cr&&Wt.push(cr.entry)}return{flags:y.flags,isGlobalCompletion:te,isIncomplete:T.allowIncompleteCompletions&&Ye?!0:void 0,isMemberCompletion:w_t(ee),isNewIdentifierLocation:oe,optionalReplacementSpan:KYe(de),entries:Wt}}function x5e(t,r){return!v1(t)||!!tW(t,r)}function Nve(t,r,s,l,m,y,T){const D=t.clauses,I=y.getTypeChecker(),W=I.getTypeAtLocation(t.parent.expression);if(W&&W.isUnion()&&jr(W.types,O=>O.isLiteral())){const O=YZ(I,D),V=iu(l),ee=Jx(r,s),te=If.createImportAdder(r,y,s,m),oe=[];for(const Le of W.types)if(Le.flags&1024){ce.assert(Le.symbol,"An enum member type should have a symbol"),ce.assert(Le.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ht=Le.symbol.valueDeclaration&&I.getConstantValue(Le.symbol.valueDeclaration);if(ht!==void 0){if(O.hasValue(ht))continue;O.addValue(ht)}const ke=If.typeToAutoImportableTypeNode(I,te,Le,t,V);if(!ke)return;const _t=Kee(ke,V,ee);if(!_t)return;oe.push(_t)}else if(!O.hasValue(Le.value))switch(typeof Le.value){case"object":oe.push(Le.value.negative?be.createPrefixUnaryExpression(41,be.createBigIntLiteral({negative:!1,base10Value:Le.value.base10Value})):be.createBigIntLiteral(Le.value));break;case"number":oe.push(Le.value<0?be.createPrefixUnaryExpression(41,be.createNumericLiteral(-Le.value)):be.createNumericLiteral(Le.value));break;case"string":oe.push(be.createStringLiteral(Le.value,ee===0));break}if(oe.length===0)return;const de=Vn(oe,Le=>be.createCaseClause(Le,[])),ue=NP(m,T==null?void 0:T.options),Ne=wve({removeComments:!0,module:l.module,target:l.target,newLine:Oj(ue)}),Be=T?Le=>Ne.printAndFormatNode(4,Le,r,T):Le=>Ne.printNode(4,Le,r),Ve=Vn(de,(Le,ht)=>s.includeCompletionsWithSnippetText?`${Be(Le)}$${ht+1}`:`${Be(Le)}`).join(ue);return{entry:{name:`${Ne.printNode(4,de[0],r)} ...`,kind:"",sortText:cm.GlobalsOrKeywords,insertText:Ve,hasAction:te.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:te}}}function Kee(t,r,s){switch(t.kind){case 183:const l=t.typeName;return cke(l,r,s);case 199:const m=Kee(t.objectType,r,s),y=Kee(t.indexType,r,s);return m&&y&&be.createElementAccessExpression(m,y);case 201:const T=t.literal;switch(T.kind){case 11:return be.createStringLiteral(T.text,s===0);case 9:return be.createNumericLiteral(T.text,T.numericLiteralFlags)}return;case 196:const D=Kee(t.type,r,s);return D&&(An(D)?D:be.createParenthesizedExpression(D));case 186:return cke(t.exprName,r,s);case 205:ce.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function cke(t,r,s){if(An(t))return t;const l=lf(t.right.escapedText);return doe(l,r)?be.createPropertyAccessExpression(cke(t.left,r,s),l):be.createElementAccessExpression(cke(t.left,r,s),be.createStringLiteral(l,s===0))}function w_t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function R_t(t,r){const s=Kr(t,l=>{switch(l.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const l=!!Wm(s,32,r),T=s.parent.openingElement.tagName.getText(r)+(l?"":">"),D=gE(s.tagName),I={name:T,kind:"class",kindModifiers:void 0,sortText:cm.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:D,entries:[I]}}}function A5e(t,r,s,l,m){fDe(t).forEach((y,T)=>{if(y===r)return;const D=lf(T);!s.has(D)&&rE(D,l)&&(s.add(D),d0(m,{name:D,kind:"warning",kindModifiers:"",sortText:cm.JavascriptIdentifiers,isFromUncheckedFile:!0},uue))})}function C5e(t,r,s){return typeof s=="object"?tD(s)+"n":As(s)?uce(t,r,s):JSON.stringify(s)}function M_t(t,r,s){return{name:C5e(t,r,s),kind:"string",kindModifiers:"",sortText:cm.LocationPriority}}function L_t(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht,ke){var _t,Dt;let Ft,it,Ye=tce(s),ut,lt,zt=Rve(V),Wt,tt,Mn;const kn=I.getTypeChecker(),cr=V&&jYe(V),un=V&&kve(V)||O;if(V&&C_t(V))Ft=O?`this${cr?"?.":""}[${tQe(T,Be,W)}]`:`this${cr?"?.":"."}${W}`;else if((un||cr)&&te){Ft=un?O?`[${tQe(T,Be,W)}]`:`[${W}]`:W,(cr||te.questionDotToken)&&(Ft=`?.${Ft}`);const pn=Wm(te,25,T)||Wm(te,29,T);if(!pn)return;const Or=xf(W,te.name.text)?te.name.end:pn.end;Ye=R0(pn.getStart(T),Or)}if(oe&&(Ft===void 0&&(Ft=W),Ft=`{${Ft}}`,typeof oe!="boolean"&&(Ye=gE(oe,T))),V&&k_t(V)&&te){Ft===void 0&&(Ft=W);const pn=T0(te.pos,T);let Or="";pn&&sq(pn.end,pn.parent,T)&&(Or=";"),Or+=`(await ${te.expression.getText()})`,Ft=O?`${Or}${Ft}`:`${Or}${cr?"?.":"."}${Ft}`;const Ut=to(te.parent,h6)?te.parent:te.expression;Ye=R0(Ut.getStart(T),te.end)}if($ee(V)&&(Wt=[RA(V.moduleSpecifier)],de&&({insertText:Ft,replacementSpan:Ye}=eQe(W,de,V,ue,T,Ne,Be),lt=Be.includeCompletionsWithSnippetText?!0:void 0)),(V==null?void 0:V.kind)===64&&(tt=!0),Ve===0&&l&&((_t=T0(l.pos,T,l))==null?void 0:_t.kind)!==28&&(em(l.parent.parent)||tm(l.parent.parent)||Ep(l.parent.parent)||xk(l.parent)||((Dt=Kr(l.parent,Fm))==null?void 0:Dt.getLastToken(T))===l||BT(l.parent)&&Ah(T,l.getEnd()).line!==Ah(T,y).line)&&(zt="ObjectLiteralMemberWithComma/",tt=!0),Be.includeCompletionsWithClassMemberSnippets&&Be.includeCompletionsWithInsertText&&Ve===3&&YYe(t,m,T)){let pn;const Or=QYe(D,I,Ne,Be,W,t,m,y,l,pt);if(Or)({insertText:Ft,filterText:it,isSnippet:lt,importAdder:pn}=Or),pn!=null&&pn.hasFixes()&&(tt=!0,zt="ClassMemberSnippet/");else return}if(V&&VYe(V)&&({insertText:Ft,isSnippet:lt,labelDetails:Mn}=V,Be.useLabelDetailsInCompletionEntries||(W=W+Mn.detail,Mn=void 0),zt="ObjectLiteralMethodSnippet/",r=cm.SortBelow(r)),Le&&!ht&&Be.includeCompletionsWithSnippetText&&Be.jsxAttributeCompletionStyle&&Be.jsxAttributeCompletionStyle!=="none"&&!(Pb(m.parent)&&m.parent.initializer)){let pn=Be.jsxAttributeCompletionStyle==="braces";const Or=kn.getTypeOfSymbolAtLocation(t,m);Be.jsxAttributeCompletionStyle==="auto"&&!(Or.flags&528)&&!(Or.flags&1048576&&lr(Or.types,Xr=>!!(Xr.flags&528)))&&(Or.flags&402653316||Or.flags&1048576&&jr(Or.types,Xr=>!!(Xr.flags&402686084||Uge(Xr)))?(Ft=`${nD(W)}=${uce(T,Be,"$1")}`,lt=!0):pn=!0),pn&&(Ft=`${nD(W)}={$1}`,lt=!0)}if(Ft!==void 0&&!Be.includeCompletionsWithInsertText)return;(BF(V)||$ee(V))&&(ut=ZYe(V),tt=!de);const on=Kr(m,LH);if((on==null?void 0:on.kind)===275){const pn=TN(W);on&&pn&&(pn===135||W9(pn))&&(Ft=`${W} as ${W}_`)}return{name:W,kind:D4.getSymbolKind(kn,t,m),kindModifiers:D4.getSymbolModifiers(kn,t),sortText:r,source:zt,hasAction:tt?!0:void 0,isRecommended:D5e(t,ee,kn)||void 0,insertText:Ft,filterText:it,replacementSpan:Ye,sourceDisplay:Wt,labelDetails:Mn,isSnippet:lt,isPackageJsonImport:I_t(V)||void 0,isImportStatementCompletion:!!de||void 0,data:ut,...ke?{symbol:t}:void 0}}function YYe(t,r,s){return Rs(r)?!1:!!(t.flags&106500)&&(Jl(r)||r.parent&&r.parent.parent&&Mv(r.parent)&&r===r.parent.name&&r.parent.getLastToken(s)===r.parent.name&&Jl(r.parent.parent)||r.parent&&GJ(r)&&Jl(r.parent))}function QYe(t,r,s,l,m,y,T,D,I,W){const O=Kr(T,Jl);if(!O)return;let V,ee=m;const te=m,oe=r.getTypeChecker(),de=T.getSourceFile(),ue=wve({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:Oj(NP(t,W==null?void 0:W.options))}),Ne=If.createImportAdder(de,r,l,t);let Be;if(l.includeCompletionsWithSnippetText){V=!0;const Dt=be.createEmptyStatement();Be=be.createBlock([Dt],!0),NY(Dt,{kind:0,order:0})}else Be=be.createBlock([],!0);let Ve=0;const{modifiers:pt,range:Le,decorators:ht}=O_t(I,de,D),ke=pt&256&&O.modifierFlagsCache&256;let _t=[];if(If.addNewNodeForMemberSymbol(y,O,de,{program:r,host:t},l,Ne,Dt=>{let Ft=0;ke&&(Ft|=256),Mv(Dt)&&oe.getMemberOverrideModifierStatus(O,Dt,y)===1&&(Ft|=16384),_t.length||(Ve=Dt.modifierFlagsCache|Ft),Dt=be.updateModifiers(Dt,Ve),_t.push(Dt)},Be,If.PreserveOptionalFlags.Property,!!ke),_t.length){const Dt=y.flags&8192;let Ft=Ve|16384|4;Dt?Ft|=512:Ft|=66;const it=pt&Ft;if(pt&~Ft)return;if(Ve&16&&it&4&&(Ve&=-17),it!==0&&!(it&4)&&(Ve&=-5),Ve|=it,_t=_t.map(ut=>be.updateModifiers(ut,Ve)),ht!=null&&ht.length){const ut=_t[_t.length-1];I3(ut)&&(_t[_t.length-1]=be.updateModifierLike(ut,ht.concat(N8(ut)||[])))}const Ye=131073;W?ee=ue.printAndFormatSnippetList(Ye,be.createNodeArray(_t),de,W):ee=ue.printSnippetList(Ye,be.createNodeArray(_t),de)}return{insertText:ee,filterText:te,isSnippet:V,importAdder:Ne,eraseRange:Le}}function O_t(t,r,s){if(!t||Ah(r,s).line>Ah(r,t.getEnd()).line)return{modifiers:0};let l=0,m,y;const T={pos:s,end:s};if(Os(t.parent)&&t.parent.modifiers&&(l|=dk(t.parent.modifiers)&126975,m=t.parent.modifiers.filter(Qf)||[],T.pos=Math.min(T.pos,t.parent.modifiers.pos)),y=F_t(t)){const D=U9(y);l&D||(l|=D,T.pos=Math.min(T.pos,t.pos))}return{modifiers:l,decorators:m,range:T.pos!==s?T:void 0}}function F_t(t){if(bd(t))return t.kind;if(An(t)){const r=RL(t);if(r&&qg(r))return r}}function W_t(t,r,s,l,m,y,T,D){const I=T.includeCompletionsWithSnippetText||void 0;let W=r;const O=s.getSourceFile(),V=lke(t,s,O,l,m,T);if(!V)return;const ee=wve({removeComments:!0,module:y.module,target:y.target,omitTrailingSemicolon:!1,newLine:Oj(NP(m,D==null?void 0:D.options))});D?W=ee.printAndFormatSnippetList(80,be.createNodeArray([V],!0),O,D):W=ee.printSnippetList(80,be.createNodeArray([V],!0),O);const te=f4({removeComments:!0,module:y.module,target:y.target,omitTrailingSemicolon:!0}),oe=be.createMethodSignature(void 0,"",V.questionToken,V.typeParameters,V.parameters,V.type),de={detail:te.printNode(4,oe,O)};return{isSnippet:I,insertText:W,labelDetails:de}}function lke(t,r,s,l,m,y){const T=t.getDeclarations();if(!(T&&T.length))return;const D=l.getTypeChecker(),I=T[0],W=Rg(o_(I),!1),O=D.getWidenedType(D.getTypeOfSymbolAtLocation(t,r)),ee=33554432|(Jx(s,y)===0?268435456:0);switch(I.kind){case 171:case 172:case 173:case 174:{let te=O.flags&1048576&&O.types.length<10?D.getUnionType(O.types,2):O;if(te.flags&1048576){const Be=gi(te.types,Ve=>D.getSignaturesOfType(Ve,0).length>0);if(Be.length===1)te=Be[0];else return}if(D.getSignaturesOfType(te,0).length!==1)return;const de=D.typeToTypeNode(te,r,ee,If.getNoopSymbolTrackerWithResolver({program:l,host:m}));if(!de||!Z2(de))return;let ue;if(y.includeCompletionsWithSnippetText){const Be=be.createEmptyStatement();ue=be.createBlock([Be],!0),NY(Be,{kind:0,order:0})}else ue=be.createBlock([],!0);const Ne=de.parameters.map(Be=>be.createParameterDeclaration(void 0,Be.dotDotDotToken,Be.name,void 0,void 0,Be.initializer));return be.createMethodDeclaration(void 0,void 0,W,void 0,void 0,Ne,void 0,ue)}default:return}}function wve(t){let r;const s=Hs.createWriter(JE(t)),l=f4(t,s),m={...s,write:ee=>y(ee,()=>s.write(ee)),nonEscapingWrite:s.write,writeLiteral:ee=>y(ee,()=>s.writeLiteral(ee)),writeStringLiteral:ee=>y(ee,()=>s.writeStringLiteral(ee)),writeSymbol:(ee,te)=>y(ee,()=>s.writeSymbol(ee,te)),writeParameter:ee=>y(ee,()=>s.writeParameter(ee)),writeComment:ee=>y(ee,()=>s.writeComment(ee)),writeProperty:ee=>y(ee,()=>s.writeProperty(ee))};return{printSnippetList:T,printAndFormatSnippetList:I,printNode:W,printAndFormatNode:V};function y(ee,te){const oe=nD(ee);if(oe!==ee){const de=s.getTextPos();te();const ue=s.getTextPos();r=ur(r||(r=[]),{newText:oe,span:{start:de,length:ue-de}})}else te()}function T(ee,te,oe){const de=D(ee,te,oe);return r?Hs.applyChanges(de,r):de}function D(ee,te,oe){return r=void 0,m.clear(),l.writeList(ee,te,oe,m),m.getText()}function I(ee,te,oe,de){const ue={text:D(ee,te,oe),getLineAndCharacterOfPosition(pt){return Ah(this,pt)}},Ne=che(de,oe),Be=ea(te,pt=>{const Le=Hs.assignPositionsToNode(pt);return Rb.formatNodeGivenIndentation(Le,ue,oe.languageVariant,0,0,{...de,options:Ne})}),Ve=r?nh(Hi(Be,r),(pt,Le)=>pU(pt.span,Le.span)):Be;return Hs.applyChanges(ue.text,Ve)}function W(ee,te,oe){const de=O(ee,te,oe);return r?Hs.applyChanges(de,r):de}function O(ee,te,oe){return r=void 0,m.clear(),l.writeNode(ee,te,oe,m),m.getText()}function V(ee,te,oe,de){const ue={text:O(ee,te,oe),getLineAndCharacterOfPosition(Le){return Ah(this,Le)}},Ne=che(de,oe),Be=Hs.assignPositionsToNode(te),Ve=Rb.formatNodeGivenIndentation(Be,ue,oe.languageVariant,0,0,{...de,options:Ne}),pt=r?nh(Hi(Ve,r),(Le,ht)=>pU(Le.span,ht.span)):Ve;return Hs.applyChanges(ue.text,pt)}}function ZYe(t){const r=t.fileName?void 0:HE(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return $ee(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:HE(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function B_t(t,r,s){const l=t.exportName==="default",m=!!t.isPackageJsonImport;return HYe(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:r,fileName:t.fileName,moduleSymbol:s,isDefaultExport:l,isFromPackageJson:m}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:r,fileName:t.fileName,moduleSymbol:s,isDefaultExport:l,isFromPackageJson:m}}function eQe(t,r,s,l,m,y,T){const D=r.replacementSpan,I=nD(uce(m,T,s.moduleSpecifier)),W=s.isDefaultExport?1:s.exportName==="export="?2:0,O=T.includeCompletionsWithSnippetText?"$1":"",V=If.getImportKind(m,W,y,!0),ee=r.couldBeTypeOnlyImportSpecifier,te=r.isTopLevelTypeOnly?` ${Nd(156)} `:" ",oe=ee?`${Nd(156)} `:"",de=l?";":"";switch(V){case 3:return{replacementSpan:D,insertText:`import${te}${nD(t)}${O} = require(${I})${de}`};case 1:return{replacementSpan:D,insertText:`import${te}${nD(t)}${O} from ${I}${de}`};case 2:return{replacementSpan:D,insertText:`import${te}* as ${nD(t)} from ${I}${de}`};case 0:return{replacementSpan:D,insertText:`import${te}{ ${oe}${nD(t)}${O} } from ${I}${de}`}}}function tQe(t,r,s){return/^\d+$/.test(s)?s:uce(t,r,s)}function D5e(t,r,s){return t===r||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===r}function Rve(t){if(BF(t))return HE(t.moduleSymbol.name);if($ee(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 I5e(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de,ue,Ne,Be,Ve,pt,Le,ht,ke,_t,Dt=!1){const Ft=cf(),it=mQe(l,m),Ye=UZ(T),ut=I.getTypeChecker(),lt=new Map;for(let Wt=0;WtUt.getSourceFile()===m.getSourceFile()));lt.set(cr,Xr),d0(r,Or,uue,!0)}return O("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(cf()-Ft)),{has:Wt=>lt.has(Wt),add:Wt=>lt.set(Wt,!0)};function zt(Wt,tt){var Mn;let kn=Wt.flags;if(!tl(m)){if(Ly(m.parent))return!0;if(to(it,ff)&&Wt.valueDeclaration===it)return!1;const cr=Wt.valueDeclaration??((Mn=Wt.declarations)==null?void 0:Mn[0]);if(it&&cr&&(Hh(it)&&Hh(cr)||Pu(it)&&Pu(cr))){const on=cr.pos,pn=Pu(it)?it.parent.parameters:fI(it.parent)?void 0:it.parent.typeParameters;if(on>=it.pos&&pn&&onC5e(s,T,Ve)===m.name);return Be!==void 0?{type:"literal",literal:Be}:Yr(W,(Ve,pt)=>{const Le=te[pt],ht=Wve(Ve,iu(D),Le,ee,I.isJsxIdentifierExpected);return ht&&ht.name===m.name&&(m.source==="ClassMemberSnippet/"&&Ve.flags&106500||m.source==="ObjectLiteralMethodSnippet/"&&Ve.flags&8196||Rve(Le)===m.source||m.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:Ve,location:V,origin:Le,contextToken:oe,previousToken:de,isJsxInitializer:ue,isTypeOnlyLocation:Ne}:void 0})||{type:"none"}}function k5e(t,r,s,l,m,y,T,D,I){const W=t.getTypeChecker(),O=t.getCompilerOptions(),{name:V,source:ee,data:te}=m,{previousToken:oe,contextToken:de}=Ove(l,s);if(MR(s,l,oe))return Zee.getStringLiteralCompletionDetails(V,s,l,oe,W,O,y,I,D);const ue=rQe(t,r,s,l,m,y,D);switch(ue.type){case"request":{const{request:Ne}=ue;switch(Ne.kind){case 1:return VF.getJSDocTagNameCompletionDetails(V);case 2:return VF.getJSDocTagCompletionDetails(V);case 3:return VF.getJSDocParameterNameCompletionDetails(V);case 4:return gt(Ne.keywordCompletions,Be=>Be.name===V)?Mve(V,"keyword",5):void 0;default:return ce.assertNever(Ne)}}case"symbol":{const{symbol:Ne,location:Be,contextToken:Ve,origin:pt,previousToken:Le}=ue,{codeActions:ht,sourceDisplay:ke}=G_t(V,Be,Ve,pt,Ne,t,y,O,s,l,Le,T,D,te,ee,I),_t=ake(pt)?pt.symbolName:Ne.name;return Xee(Ne,_t,W,s,Be,I,ht,ke)}case"literal":{const{literal:Ne}=ue;return Mve(C5e(s,D,Ne),"string",typeof Ne=="string"?8:7)}case"cases":{const{entry:Ne,importAdder:Be}=Nve(de.parent,s,D,t.getCompilerOptions(),y,t,void 0);if(Be.hasFixes()){const Ve=Hs.ChangeTracker.with({host:y,formatContext:T,preferences:D},Be.writeFixes);return{name:Ne.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Ve,description:sB([w.Includes_imports_of_types_referenced_by_0,V])}]}}return{name:Ne.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Jve().some(Ne=>Ne.name===V)?Mve(V,"keyword",5):void 0;default:ce.assertNever(ue)}}function Mve(t,r,s){return Lve(t,"",r,[C1(t,s)])}function Xee(t,r,s,l,m,y,T,D){const{displayParts:I,documentation:W,symbolKind:O,tags:V}=s.runWithCancellationToken(y,ee=>D4.getSymbolDisplayPartsDocumentationAndSymbolKind(ee,t,l,m,m,7));return Lve(r,D4.getSymbolModifiers(s,t),O,I,W,V,T,D)}function Lve(t,r,s,l,m,y,T,D){return{name:t,kindModifiers:r,kind:s,displayParts:l,documentation:m,tags:y,codeActions:T,source:D,sourceDisplay:D}}function G_t(t,r,s,l,m,y,T,D,I,W,O,V,ee,te,oe,de){if(te!=null&&te.moduleSpecifier&&O&&dQe(s||O,I).replacementSpan)return{codeActions:void 0,sourceDisplay:[RA(te.moduleSpecifier)]};if(oe==="ClassMemberSnippet/"){const{importAdder:ht,eraseRange:ke}=QYe(T,y,D,ee,t,m,r,W,s,V);if(ht||ke)return{sourceDisplay:void 0,codeActions:[{changes:Hs.ChangeTracker.with({host:T,formatContext:V,preferences:ee},Dt=>{ht&&ht.writeFixes(Dt),ke&&Dt.deleteRange(I,ke)}),description:sB([w.Includes_imports_of_types_referenced_by_0,t])}]}}if(b5e(l)){const ht=If.getPromoteTypeOnlyCompletionAction(I,l.declaration.name,y,T,V,ee);return ce.assertIsDefined(ht,"Expected to have a code action for promoting type-only alias"),{codeActions:[ht],sourceDisplay:void 0}}if(oe==="ObjectLiteralMemberWithComma/"&&s){const ht=Hs.ChangeTracker.with({host:T,formatContext:V,preferences:ee},ke=>ke.insertText(I,s.end,","));if(ht)return{sourceDisplay:void 0,codeActions:[{changes:ht,description:sB([w.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!l||!(BF(l)||$ee(l)))return{codeActions:void 0,sourceDisplay:void 0};const ue=l.isFromPackageJson?T.getPackageJsonAutoImportProvider().getTypeChecker():y.getTypeChecker(),{moduleSymbol:Ne}=l,Be=ue.getMergedSymbol(dg(m.exportSymbol||m,ue)),Ve=(s==null?void 0:s.kind)===30&&Y1(s.parent),{moduleSpecifier:pt,codeAction:Le}=If.getImportCompletionAction(Be,Ne,te==null?void 0:te.exportMapKey,I,t,Ve,T,y,V,O&&An(O)?O.getStart(I):W,ee,de);return ce.assert(!(te!=null&&te.moduleSpecifier)||pt===te.moduleSpecifier),{sourceDisplay:[RA(pt)],codeActions:[Le]}}function j_t(t,r,s,l,m,y,T){const D=rQe(t,r,s,l,m,y,T);return D.type==="symbol"?D.symbol:void 0}function V_t(t,r,s){return Yr(r&&(r.isUnion()?r.types:[r]),l=>{const m=l&&l.symbol;return m&&m.flags&424&&!ISe(m)?N5e(m,t,s):void 0})}function P5e(t,r,s,l){const{parent:m}=t;switch(t.kind){case 80:return lce(t,l);case 64:switch(m.kind){case 260:return l.getContextualType(m.initializer);case 226:return l.getTypeAtLocation(m.left);case 291:return l.getContextualTypeForJsxAttribute(m);default:return}case 105:return l.getContextualType(m);case 84:const y=to(m,tx);return y?Rj(y,l):void 0;case 19:return v6(m)&&!my(m.parent)&&!KE(m.parent)?l.getContextualTypeForJsxAttribute(m.parent):void 0;default:const T=b0e.getArgumentInfoForCompletions(t,r,s);return T?l.getContextualTypeForArgumentAtIndex(T.invocation,T.argumentIndex+(t.kind===28?1:0)):v4(t.kind)&&ys(m)&&v4(m.operatorToken.kind)?l.getTypeAtLocation(m.left):l.getContextualType(t,4)||l.getContextualType(t)}}function N5e(t,r,s){const l=s.getAccessibleSymbolChain(t,r,67108863,!1);return l?Dl(l):t.parent&&(iQe(t.parent)?t:N5e(t.parent,r,s))}function iQe(t){var r;return!!((r=t.declarations)!=null&&r.some(s=>s.kind===312))}function oQe(t,r,s,l,m,y,T,D,I,W){const O=t.getTypeChecker(),V=x5e(s,l);let ee=cf(),te=bf(s,m);r("getCompletionData: Get current token: "+(cf()-ee)),ee=cf();const oe=LR(s,m,te);r("getCompletionData: Is inside comment: "+(cf()-ee));let de=!1,ue=!1;if(oe){if(Yse(s,m)){if(s.text.charCodeAt(m-1)===64)return{kind:1};{const an=wA(m,s);if(!/[^*|\s(/)]/.test(s.text.substring(an,m)))return{kind:2}}}const xe=_ke(te,m);if(xe){if(xe.tagName.pos<=m&&m<=xe.tagName.end)return{kind:1};const an=ho(xe);if(an&&(te=bf(s,m),(!te||!vP(te)&&(te.parent.kind!==355||te.parent.name!==te))&&(de=Zt(an))),!de&&AA(xe)&&(Um(xe.name)||xe.name.pos<=m&&m<=xe.name.end))return{kind:3,tag:xe}}if(!de){r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}ee=cf();const Ne=!de&&v1(s),Be=Ove(m,s),Ve=Be.previousToken;let pt=Be.contextToken;r("getCompletionData: Get previous token: "+(cf()-ee));let Le=te,ht,ke=!1,_t=!1,Dt=!1,Ft=!1,it=!1,Ye=!1,ut,lt=Hx(s,m),zt=0,Wt=!1,tt=0;if(pt){const xe=dQe(pt,s);if(xe.keywordCompletion){if(xe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[N_t(xe.keywordCompletion)],isNewIdentifierLocation:xe.isNewIdentifierLocation};zt=qYe(xe.keywordCompletion)}if(xe.replacementSpan&&y.includeCompletionsForImportStatements&&y.includeCompletionsWithInsertText&&(tt|=2,ut=xe,Wt=xe.isNewIdentifierLocation),!xe.replacementSpan&&Aa(pt))return r("Returning an empty list because completion was requested in an invalid position."),zt?$Ye(zt,Ne,vc()):void 0;let an=pt.parent;if(pt.kind===25||pt.kind===29)switch(ke=pt.kind===25,_t=pt.kind===29,an.kind){case 211:ht=an,Le=ht.expression;const Un=i3(ht);if(Um(Un)||(el(Le)||S_(Le))&&Le.end===pt.pos&&Le.getChildCount(s)&&yl(Le.getChildren(s)).kind!==22)return;break;case 166:Le=an.left;break;case 267:Le=an.name;break;case 205:Le=an;break;case 236:Le=an.getFirstToken(s),ce.assert(Le.kind===102||Le.kind===105);break;default:return}else if(!ut){if(an&&an.kind===211&&(pt=an,an=an.parent),te.parent===lt)switch(te.kind){case 32:(te.parent.kind===284||te.parent.kind===286)&&(lt=te);break;case 44:te.parent.kind===285&&(lt=te);break}switch(an.kind){case 287:pt.kind===44&&(Ft=!0,lt=pt);break;case 226:if(!fQe(an))break;case 285:case 284:case 286:Ye=!0,pt.kind===30&&(Dt=!0,lt=pt);break;case 294:case 293:(Ve.kind===20||Ve.kind===80&&Ve.parent.kind===291)&&(Ye=!0);break;case 291:if(an.initializer===Ve&&Ve.endh4(xe?D.getPackageJsonAutoImportProvider():t,D));if(ke||_t)di();else if(Dt)on=O.getJsxIntrinsicTagNamesAt(lt),ce.assertEachIsDefined(on,"getJsxIntrinsicTagNames() should all be defined"),Gs(),kn=1,zt=0;else if(Ft){const xe=pt.parent.parent.openingElement.tagName,an=O.getSymbolAtLocation(xe);an&&(on=[an]),kn=1,zt=0}else if(!Gs())return zt?$Ye(zt,Ne,Wt):void 0;r("getCompletionData: Semantic work: "+(cf()-Mn));const Cr=Ve&&P5e(Ve,m,s,O),Gn=!to(Ve,sp)&&!Ye?Qo(Cr&&(Cr.isUnion()?Cr.types:[Cr]),xe=>xe.isLiteral()&&!(xe.flags&1024)?xe.value:void 0):[],Ur=Ve&&Cr&&V_t(Ve,Cr,O);return{kind:0,symbols:on,completionKind:kn,isInSnippetScope:ue,propertyAccessToConvert:ht,isNewIdentifierLocation:Wt,location:lt,keywordFilters:zt,literals:Gn,symbolToOriginInfoMap:Or,recommendedCompletion:Ur,previousToken:Ve,contextToken:pt,isJsxInitializer:it,insideJsDocTagTypeExpression:de,symbolToSortTextMap:Xr,isTypeOnlyLocation:In,isJsxIdentifierExpected:Ye,isRightOfOpenTag:Dt,isRightOfDotOrQuestionDot:ke||_t,importStatementCompletion:ut,hasUnresolvedAutoImports:un,flags:tt};function so(xe){switch(xe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!xe.constraint;default:return!1}}function ho(xe){if(so(xe)){const an=jx(xe)?xe.constraint:xe.typeExpression;return an&&an.kind===316?an:void 0}if(iF(xe)||FG(xe))return xe.class}function di(){kn=2;const xe=BE(Le),an=xe&&!Le.isTypeOf||rC(Le.parent)||IZ(pt,s,O),Un=gZ(Le);if(Vd(Le)||xe||sa(Le)){const rr=xp(Le.parent);rr&&(Wt=!0);let mi=O.getSymbolAtLocation(Le);if(mi&&(mi=dg(mi,O),mi.flags&1920)){const Ji=O.getExportsOfModule(mi);ce.assertEachIsDefined(Ji,"getExportsOfModule() should all be defined");const zo=Ks=>O.isValidPropertyAccess(xe?Le:Le.parent,Ks.name),Ca=Ks=>O5e(Ks,O),Qa=rr?Ks=>{var vs;return!!(Ks.flags&1920)&&!((vs=Ks.declarations)!=null&&vs.every(ou=>ou.parent===Le.parent))}:Un?Ks=>Ca(Ks)||zo(Ks):an||de?Ca:zo;for(const Ks of Ji)Qa(Ks)&&on.push(Ks);if(!an&&!de&&mi.declarations&&mi.declarations.some(Ks=>Ks.kind!==312&&Ks.kind!==267&&Ks.kind!==266)){let Ks=O.getTypeOfSymbolAtLocation(mi,Le).getNonOptionalType(),vs=!1;if(Ks.isNullableType()){const ou=ke&&!_t&&y.includeAutomaticOptionalChainCompletions!==!1;(ou||_t)&&(Ks=Ks.getNonNullableType(),ou&&(vs=!0))}Nc(Ks,!!(Le.flags&65536),vs)}return}}if(!an||O7(Le)){O.tryGetThisTypeAt(Le,!1);let rr=O.getTypeAtLocation(Le).getNonOptionalType();if(an)Nc(rr.getNonNullableType(),!1,!1);else{let mi=!1;if(rr.isNullableType()){const Ji=ke&&!_t&&y.includeAutomaticOptionalChainCompletions!==!1;(Ji||_t)&&(rr=rr.getNonNullableType(),Ji&&(mi=!0))}Nc(rr,!!(Le.flags&65536),mi)}}}function Nc(xe,an,Un){Wt=!!xe.getStringIndexType(),_t&>(xe.getCallSignatures())&&(Wt=!0);const rr=Le.kind===205?Le:Le.parent;if(V)for(const mi of xe.getApparentProperties())O.isValidPropertyAccessForCompletions(rr,xe,mi)&&ha(mi,!1,Un);else on.push(...gi(pke(xe,O),mi=>O.isValidPropertyAccessForCompletions(rr,xe,mi)));if(an&&y.includeCompletionsWithInsertText){const mi=O.getPromisedTypeOfPromise(xe);if(mi)for(const Ji of mi.getApparentProperties())O.isValidPropertyAccessForCompletions(rr,mi,Ji)&&ha(Ji,!0,Un)}}function ha(xe,an,Un){var rr;const mi=Yr(xe.declarations,Qa=>to(o_(Qa),am));if(mi){const Qa=ro(mi.expression),Ks=Qa&&O.getSymbolAtLocation(Qa),vs=Ks&&N5e(Ks,pt,O),ou=vs&&Bp(vs);if(ou&&y0(Ut,ou)){const qd=on.length;on.push(vs);const z_=vs.parent;if(!z_||!sT(z_)||O.tryGetMemberInModuleExportsAndProperties(vs.name,z_)!==vs)Or[qd]={kind:Ca(2)};else{const fp=tb(HE(z_.name))?(rr=ny(z_))==null?void 0:rr.fileName:void 0,{moduleSpecifier:Ha}=(pn||(pn=If.createImportSpecifierResolver(s,t,D,y))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:fp,isFromPackageJson:!1,moduleSymbol:z_,symbol:vs,targetFlags:dg(vs,O).flags}],m,EA(lt))||{};if(Ha){const mu={kind:Ca(6),moduleSymbol:z_,isDefaultExport:!1,symbolName:vs.name,exportName:vs.name,fileName:fp,moduleSpecifier:Ha};Or[qd]=mu}}}else if(y.includeCompletionsWithInsertText){if(ou&&Ut.has(ou))return;zo(xe),Ji(xe),on.push(xe)}}else zo(xe),Ji(xe),on.push(xe);function Ji(Qa){$_t(Qa)&&(Xr[Bp(Qa)]=cm.LocalDeclarationPriority)}function zo(Qa){y.includeCompletionsWithInsertText&&(an&&y0(Ut,Bp(Qa))?Or[on.length]={kind:Ca(8)}:Un&&(Or[on.length]={kind:16}))}function Ca(Qa){return Un?Qa|16:Qa}}function ro(xe){return An(xe)?xe:sa(xe)?ro(xe.expression):void 0}function Gs(){return(Jr()||li()||Ku()||Ir()||_o()||Oc()||xt()||_u()||(al(),1))===1}function Oc(){return gn(pt)?(kn=5,Wt=!0,zt=4,1):0}function _u(){const xe=mt(pt),an=xe&&O.getContextualType(xe.attributes);if(!an)return 0;const Un=xe&&O.getContextualType(xe.attributes,4);return on=Hi(on,$e(dke(an,Un,xe.attributes,O),xe.attributes.properties)),xu(),kn=3,Wt=!1,1}function Ku(){return ut?(Wt=!0,$a(),1):0}function al(){zt=qr(pt)?5:1,kn=1,Wt=vc(),Ve!==pt&&ce.assert(!!Ve,"Expected 'contextToken' to be defined when different from 'previousToken'.");const xe=Ve!==pt?Ve.getStart():m,an=To(pt,xe,s)||s;ue=mc(an);const Un=(In?0:111551)|788968|1920|2097152,rr=Ve&&!EA(Ve);on=Hi(on,O.getSymbolsInScope(an,Un)),ce.assertEachIsDefined(on,"getSymbolsInScope() should all be defined");for(let mi=0;mizo.getSourceFile()===s)&&(Xr[Bp(Ji)]=cm.GlobalsOrKeywords),rr&&!(Ji.flags&111551)){const zo=Ji.declarations&&lr(Ji.declarations,$g);if(zo){const Ca={kind:64,declaration:zo};Or[mi]=Ca}}}if(y.includeCompletionsWithInsertText&&an.kind!==312){const mi=O.tryGetThisTypeAt(an,!1,Jl(an.parent)?an:void 0);if(mi&&!J_t(mi,s,O))for(const Ji of pke(mi,O))Or[on.length]={kind:1},on.push(Ji),Xr[Bp(Ji)]=cm.SuggestedClassMembers}$a(),In&&(zt=pt&&_7(pt.parent)?6:7)}function Rr(){return ut?!0:cr||!y.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||nce(t.getCompilerOptions())?!0:LZ(t)}function mc(xe){switch(xe.kind){case 312:case 228:case 294:case 241:return!0;default:return uf(xe)}}function Ea(){return de||!!ut&&sR(lt.parent)||!Fi(pt)&&(IZ(pt,s,O)||rC(lt)||ta(pt))}function Fi(xe){return xe&&(xe.kind===114&&(xe.parent.kind===186||Jm(xe.parent))||xe.kind===131&&xe.parent.kind===182)}function ta(xe){if(xe){const an=xe.parent.kind;switch(xe.kind){case 59:return an===172||an===171||an===169||an===260||xb(an);case 64:return an===265;case 130:return an===234;case 30:return an===183||an===216;case 96:return an===168;case 152:return an===238}}return!1}function $a(){var xe,an;if(!Rr()||(ce.assert(!(T!=null&&T.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),T&&!T.source))return;tt|=1;const rr=Ve===pt&&ut?"":Ve&&An(Ve)?Ve.text.toLowerCase():"",mi=(xe=D.getModuleSpecifierCache)==null?void 0:xe.call(D),Ji=fq(s,D,t,y,W),zo=(an=D.getPackageJsonAutoImportProvider)==null?void 0:an.call(D),Ca=T?void 0:oB(s,y,D);UYe("collectAutoImports",D,pn||(pn=If.createImportSpecifierResolver(s,t,D,y)),t,m,y,!!ut,EA(lt),Ks=>{Ji.search(s.path,Dt,(vs,ou)=>{if(!rE(vs,iu(D.getCompilationSettings()))||!T&&t6(vs)||!In&&!ut&&!(ou&111551)||In&&!(ou&790504))return!1;const qd=vs.charCodeAt(0);return Dt&&(qd<65||qd>90)?!1:T?!0:hQe(vs,rr)},(vs,ou,qd,z_)=>{if(T&&!gt(vs,Ma=>T.source===HE(Ma.moduleSymbol.name))||(vs=gi(vs,Qa),!vs.length))return;const fp=Ks.tryResolve(vs,qd)||{};if(fp==="failed")return;let Ha=vs[0],mu;fp!=="skipped"&&({exportInfo:Ha=vs[0],moduleSpecifier:mu}=fp);const x_=Ha.exportKind===1,q_=x_&&i6(Ha.symbol)||Ha.symbol;jc(q_,{kind:mu?32:4,moduleSpecifier:mu,symbolName:ou,exportMapKey:z_,exportName:Ha.exportKind===2?"export=":Ha.symbol.name,fileName:Ha.moduleFileName,isDefaultExport:x_,moduleSymbol:Ha.moduleSymbol,isFromPackageJson:Ha.isFromPackageJson})}),un=Ks.skippedAny(),tt|=Ks.resolvedAny()?8:0,tt|=Ks.resolvedBeyondLimit()?16:0});function Qa(Ks){const vs=to(Ks.moduleSymbol.valueDeclaration,tl);if(!vs){const ou=HE(Ks.moduleSymbol.name);return EF.nodeCoreModules.has(ou)&&xf(ou,"node:")!==hce(s,t)?!1:Ca?Ca.allowsImportingAmbientModule(Ks.moduleSymbol,gr(Ks.isFromPackageJson)):!0}return vce(Ks.isFromPackageJson?zo:t,s,vs,y,Ca,gr(Ks.isFromPackageJson),mi)}}function jc(xe,an){const Un=Bp(xe);Xr[Un]!==cm.GlobalsOrKeywords&&(Or[on.length]=an,Xr[Un]=ut?cm.LocationPriority:cm.AutoImportSuggestions,on.push(xe))}function Xu(xe,an){Rs(lt)||xe.forEach(Un=>{if(!Lo(Un))return;const rr=Wve(Un,iu(l),void 0,0,!1);if(!rr)return;const{name:mi}=rr,Ji=W_t(Un,mi,an,t,D,l,y,I);if(!Ji)return;const zo={kind:128,...Ji};tt|=32,Or[on.length]=zo,on.push(Un)})}function Lo(xe){return!!(xe.flags&8196)}function To(xe,an,Un){let rr=xe;for(;rr&&!Ux(rr,an,Un);)rr=rr.parent;return rr}function Aa(xe){const an=cf(),Un=er(xe)||_r(xe)||Qr(xe)||sl(xe)||NG(xe);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(cf()-an)),Un}function sl(xe){if(xe.kind===12)return!0;if(xe.kind===32&&xe.parent){if(lt===xe.parent&&(lt.kind===286||lt.kind===285))return!1;if(xe.parent.kind===286)return lt.parent.kind!==286;if(xe.parent.kind===287||xe.parent.kind===285)return!!xe.parent.parent&&xe.parent.parent.kind===284}return!1}function vc(){if(pt){const xe=pt.parent.kind,an=fke(pt);switch(an){case 28:return xe===213||xe===176||xe===214||xe===209||xe===226||xe===184||xe===210;case 21:return xe===213||xe===176||xe===214||xe===217||xe===196;case 23:return xe===209||xe===181||xe===167;case 144:case 145:case 102:return!0;case 25:return xe===267;case 19:return xe===263||xe===210;case 64:return xe===260||xe===226;case 16:return xe===228;case 17:return xe===239;case 134:return xe===174||xe===304;case 42:return xe===174}if(due(an))return!0}return!1}function er(xe){return(OY(xe)||u9(xe))&&(H$(xe,m)||m===xe.end&&(!!xe.isUnterminated||OY(xe)))}function Jr(){const xe=lQe(pt);if(!xe)return 0;const Un=(MJ(xe.parent)?xe.parent:void 0)||xe,rr=Gve(Un,O);if(!rr)return 0;const mi=O.getTypeFromTypeNode(Un),Ji=pke(rr,O),zo=pke(mi,O),Ca=new Set;return zo.forEach(Qa=>Ca.add(Qa.escapedName)),on=Hi(on,gi(Ji,Qa=>!Ca.has(Qa.escapedName))),kn=0,Wt=!0,1}function li(){const xe=on.length,an=uke(pt,m,s);if(!an)return 0;kn=0;let Un,rr;if(an.kind===210){const mi=_Qe(an,O);if(mi===void 0)return an.flags&67108864?2:(cr=!0,0);const Ji=O.getContextualType(an,4),zo=(Ji||mi).getStringIndexType(),Ca=(Ji||mi).getNumberIndexType();if(Wt=!!zo||!!Ca,Un=dke(mi,Ji,an,O),rr=an.properties,Un.length===0&&!Ca)return cr=!0,0}else{ce.assert(an.kind===206),Wt=!1;const mi=rI(an.parent);if(!hP(mi))return ce.fail("Root declaration is not variable-like.");let Ji=NN(mi)||!!Kb(mi)||mi.parent.parent.kind===250;if(!Ji&&mi.kind===169&&(Nr(mi.parent)?Ji=!!O.getContextualType(mi.parent):(mi.parent.kind===174||mi.parent.kind===178)&&(Ji=Nr(mi.parent.parent)&&!!O.getContextualType(mi.parent.parent))),Ji){const zo=O.getTypeAtLocation(an);if(!zo)return 2;Un=O.getPropertiesOfType(zo).filter(Ca=>O.isPropertyAccessible(an,!1,!1,zo,Ca)),rr=an.elements}}if(Un&&Un.length>0){const mi=es(Un,ce.checkDefined(rr));on=Hi(on,mi),xu(),an.kind===210&&y.includeCompletionsWithObjectLiteralMethodSnippets&&y.includeCompletionsWithInsertText&&(Re(xe),Xu(mi,an))}return 1}function Ir(){if(!pt)return 0;const xe=pt.kind===19||pt.kind===28?to(pt.parent,LH):wZ(pt)?to(pt.parent.parent,LH):void 0;if(!xe)return 0;wZ(pt)||(zt=8);const{moduleSpecifier:an}=xe.kind===275?xe.parent.parent:xe.parent;if(!an)return Wt=!0,xe.kind===275?2:0;const Un=O.getSymbolAtLocation(an);if(!Un)return Wt=!0,2;kn=3,Wt=!1;const rr=O.getExportsAndPropertiesOfModule(Un),mi=new Set(xe.elements.filter(zo=>!Zt(zo)).map(zo=>(zo.propertyName||zo.name).escapedText)),Ji=rr.filter(zo=>zo.escapedName!=="default"&&!mi.has(zo.escapedName));return on=Hi(on,Ji),Ji.length||(zt=0),1}function _o(){var xe;const an=pt&&(pt.kind===19||pt.kind===28)?to(pt.parent,G0):void 0;if(!an)return 0;const Un=Kr(an,dA(tl,xp));return kn=5,Wt=!1,(xe=Un.locals)==null||xe.forEach((rr,mi)=>{var Ji,zo;on.push(rr),(zo=(Ji=Un.symbol)==null?void 0:Ji.exports)!=null&&zo.has(mi)&&(Xr[Bp(rr)]=cm.OptionalMember)}),1}function xt(){const xe=H_t(s,pt,lt,m);if(!xe)return 0;if(kn=3,Wt=!0,zt=pt.kind===42?0:Jl(xe)?2:3,!Jl(xe))return 1;const an=pt.kind===27?pt.parent.parent:pt.parent;let Un=Mv(an)?tS(an):0;if(pt.kind===80&&!Zt(pt))switch(pt.getText()){case"private":Un=Un|8;break;case"static":Un=Un|32;break;case"override":Un=Un|16384;break}if(nu(an)&&(Un|=32),!(Un&8)){const rr=Jl(xe)&&Un&16384?zD(hA(xe)):uG(xe),mi=ea(rr,Ji=>{const zo=O.getTypeAtLocation(Ji);return Un&32?(zo==null?void 0:zo.symbol)&&O.getPropertiesOfType(O.getTypeOfSymbolAtLocation(zo.symbol,xe)):zo&&O.getPropertiesOfType(zo)});on=Hi(on,wt(mi,xe.members,Un)),Ot(on,(Ji,zo)=>{const Ca=Ji==null?void 0:Ji.valueDeclaration;if(Ca&&Mv(Ca)&&Ca.name&&am(Ca.name)){const Qa={kind:512,symbolName:O.symbolToString(Ji)};Or[zo]=Qa}})}return 1}function Kn(xe){return!!xe.parent&&Pu(xe.parent)&&pg(xe.parent.parent)&&(lR(xe.kind)||vP(xe))}function gn(xe){if(xe){const an=xe.parent;switch(xe.kind){case 21:case 28:return pg(xe.parent)?xe.parent:void 0;default:if(Kn(xe))return an.parent}}}function qr(xe){if(xe){let an;const Un=Kr(xe.parent,rr=>Jl(rr)?"quit":J_(rr)&&an===rr.body?!0:(an=rr,!1));return Un&&Un}}function mt(xe){if(xe){const an=xe.parent;switch(xe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(an&&(an.kind===285||an.kind===286)){if(xe.kind===32){const Un=T0(xe.pos,s,void 0);if(!an.typeArguments||Un&&Un.kind===44)break}return an}else if(an.kind===291)return an.parent.parent;break;case 11:if(an&&(an.kind===291||an.kind===293))return an.parent.parent;break;case 20:if(an&&an.kind===294&&an.parent&&an.parent.kind===291)return an.parent.parent.parent;if(an&&an.kind===293)return an.parent.parent;break}}}function _r(xe){const an=xe.parent,Un=an.kind;switch(xe.kind){case 28:return Un===260||co(xe)||Un===243||Un===266||oi(Un)||Un===264||Un===207||Un===265||Jl(an)&&!!an.typeParameters&&an.typeParameters.end>=xe.pos;case 25:return Un===207;case 59:return Un===208;case 23:return Un===207;case 21:return Un===299||oi(Un);case 19:return Un===266;case 30:return Un===263||Un===231||Un===264||Un===265||xb(Un);case 126:return Un===172&&!Jl(an.parent);case 26:return Un===169||!!an.parent&&an.parent.kind===207;case 125:case 123:case 124:return Un===169&&!pg(an.parent);case 130:return Un===276||Un===281||Un===274;case 139:case 153:return!mke(xe);case 80:if(Un===276&&xe===an.name&&xe.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 Un!==276;case 42:return S_(xe.parent)&&!em(xe.parent)}if(due(fke(xe))&&mke(xe)||Kn(xe)&&(!An(xe)||lR(fke(xe))||Zt(xe)))return!1;switch(fke(xe)){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 Os(xe.parent)}if(Kr(xe.parent,Jl)&&xe===Ve&&Cn(xe,m))return!1;const mi=e6(xe.parent,172);if(mi&&xe!==Ve&&Jl(Ve.parent.parent)&&m<=Ve.end){if(Cn(xe,Ve.end))return!1;if(xe.kind!==64&&(b$(mi)||eY(mi)))return!0}return vP(xe)&&!BT(xe.parent)&&!Pb(xe.parent)&&!((Jl(xe.parent)||Kp(xe.parent)||Hh(xe.parent))&&(xe!==Ve||m>Ve.end))}function Cn(xe,an){return xe.kind!==64&&(xe.kind===27||!mv(xe.end,an,s))}function oi(xe){return xb(xe)&&xe!==176}function Qr(xe){if(xe.kind===9){const an=xe.getFullText();return an.charAt(an.length-1)==="."}return!1}function co(xe){return xe.parent.kind===261&&!IZ(xe,s,O)}function es(xe,an){if(an.length===0)return xe;const Un=new Set,rr=new Set;for(const Ji of an){if(Ji.kind!==303&&Ji.kind!==304&&Ji.kind!==208&&Ji.kind!==174&&Ji.kind!==177&&Ji.kind!==178&&Ji.kind!==305||Zt(Ji))continue;let zo;if(xk(Ji))Ui(Ji,Un);else if(ym(Ji)&&Ji.propertyName)Ji.propertyName.kind===80&&(zo=Ji.propertyName.escapedText);else{const Ca=o_(Ji);zo=Ca&&yA(Ca)?gY(Ca):void 0}zo!==void 0&&rr.add(zo)}const mi=xe.filter(Ji=>!rr.has(Ji.escapedName));return We(Un,mi),mi}function Ui(xe,an){const Un=xe.expression,rr=O.getSymbolAtLocation(Un),mi=rr&&O.getTypeOfSymbolAtLocation(rr,Un),Ji=mi&&mi.properties;Ji&&Ji.forEach(zo=>{an.add(zo.name)})}function xu(){on.forEach(xe=>{if(xe.flags&16777216){const an=Bp(xe);Xr[an]=Xr[an]??cm.OptionalMember}})}function We(xe,an){if(xe.size!==0)for(const Un of an)xe.has(Un.name)&&(Xr[Bp(Un)]=cm.MemberDeclaredBySpreadAssignment)}function Re(xe){for(let an=xe;an!rr.has(mi.escapedName)&&!!mi.declarations&&!(Vy(mi)&8)&&!(mi.valueDeclaration&&Mf(mi.valueDeclaration)))}function $e(xe,an){const Un=new Set,rr=new Set;for(const Ji of an)Zt(Ji)||(Ji.kind===291?Un.add(m3(Ji.name)):Ek(Ji)&&Ui(Ji,rr));const mi=xe.filter(Ji=>!Un.has(Ji.escapedName));return We(rr,mi),mi}function Zt(xe){return xe.getStart(s)<=m&&m<=xe.getEnd()}}function uke(t,r,s){var l;if(t){const{parent:m}=t;switch(t.kind){case 19:case 28:if(Wd(m)||E1(m))return m;break;case 42:return em(m)?to(m.parent,Wd):void 0;case 134:return to(m.parent,Wd);case 80:if(t.text==="async"&&BT(t.parent))return t.parent.parent;{if(Wd(t.parent.parent)&&(xk(t.parent)||BT(t.parent)&&Ah(s,t.getEnd()).line!==Ah(s,r).line))return t.parent.parent;const T=Kr(m,Fm);if((T==null?void 0:T.getLastToken(s))===t&&Wd(T.parent))return T.parent}break;default:if((l=m.parent)!=null&&l.parent&&(em(m.parent)||tm(m.parent)||Ep(m.parent))&&Wd(m.parent.parent))return m.parent.parent;if(xk(m)&&Wd(m.parent))return m.parent;const y=Kr(m,Fm);if(t.kind!==59&&(y==null?void 0:y.getLastToken(s))===t&&Wd(y.parent))return y.parent}}}function Ove(t,r){const s=T0(t,r);return s&&t<=s.end&&(uy(s)||sE(s.kind))?{contextToken:T0(s.getFullStart(),r,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function Fve(t,r,s,l){const m=r.isPackageJsonImport?l.getPackageJsonAutoImportProvider():s,y=m.getTypeChecker(),T=r.ambientModuleName?y.tryFindAmbientModule(r.ambientModuleName):r.fileName?y.getMergedSymbol(ce.checkDefined(m.getSourceFile(r.fileName)).symbol):void 0;if(!T)return;let D=r.exportName==="export="?y.resolveExternalModuleSymbol(T):y.tryGetMemberInModuleExportsAndProperties(r.exportName,T);return D?(D=r.exportName==="default"&&i6(D)||D,{symbol:D,origin:B_t(r,t,T)}):void 0}function Wve(t,r,s,l,m){if(T5e(s))return;const y=D_t(s)?s.symbolName:t.name;if(y===void 0||t.flags&1536&&Dde(y.charCodeAt(0))||vH(t))return;const T={name:y,needsConvertPropertyAccess:!1};if(rE(y,r,m?1:0)||t.valueDeclaration&&Mf(t.valueDeclaration))return T;switch(l){case 3:return ake(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(y),needsConvertPropertyAccess:!1};case 2:case 1:return y.charCodeAt(0)===32?void 0:{name:y,needsConvertPropertyAccess:!0};case 5:case 4:return T;default:ce.assertNever(l)}}function w5e(t,r){if(!r)return aQe(t);const s=t+8+1;return oV[s]||(oV[s]=aQe(t).filter(l=>!sQe(TN(l.name))))}function aQe(t){return oV[t]||(oV[t]=Jve().filter(r=>{const s=TN(r.name);switch(t){case 0:return!1;case 1:return Bve(s)||s===138||s===144||s===156||s===145||s===128||Q$(s)&&s!==157;case 5:return Bve(s);case 2:return due(s);case 3:return _ue(s);case 4:return lR(s);case 6:return Q$(s)||s===87;case 7:return Q$(s);case 8:return s===156;default:return ce.assertNever(t)}}))}function sQe(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 _ue(t){return t===148}function due(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return F_(t)}}function Bve(t){return t===134||t===135||t===130||t===152||t===156||!hH(t)&&!due(t)}function fke(t){return An(t)?RL(t)??0:t.kind}function U_t(t,r){const s=[];if(t){const l=t.getSourceFile(),m=t.parent,y=l.getLineAndCharacterOfPosition(t.end).line,T=l.getLineAndCharacterOfPosition(r).line;(Fv(m)||mh(m)&&m.moduleSpecifier)&&t===m.moduleSpecifier&&y===T&&s.push({name:Nd(132),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords})}return s}function _ke(t,r){return Kr(t,s=>NT(s)&&U$(s,r)?!0:Gx(s)?"quit":!1)}function dke(t,r,s,l){const m=r&&r!==t,y=m&&!(r.flags&3)?l.getUnionType([t,r]):t,T=cQe(y,s,l);return y.isClass()&&zve(T)?[]:m?gi(T,D):T;function D(I){return Nt(I.declarations)?gt(I.declarations,W=>W.parent!==s):!0}}function cQe(t,r,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(gi(t.types,l=>!(l.flags&402784252||s.isArrayLikeType(l)||s.isTypeInvalidDueToUnionDiscriminant(l,r)||s.typeHasCallOrConstructSignatures(l)||l.isClass()&&zve(l.getApparentProperties())))):t.getApparentProperties()}function zve(t){return gt(t,r=>!!(Vy(r)&24))}function pke(t,r){return t.isUnion()?ce.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):ce.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function H_t(t,r,s,l){switch(s.kind){case 358:return to(s.parent,GN);case 1:const m=to(Yf(uc(s.parent,tl).statements),GN);if(m&&!Wm(m,20,t))return m;break;case 81:if(to(s.parent,Os))return Kr(s,Jl);break;case 80:{if(RL(s)||Os(s.parent)&&s.parent.initializer===s)return;if(mke(s))return Kr(s,GN)}}if(r){if(s.kind===137||An(r)&&Os(r.parent)&&Jl(s))return Kr(r,Jl);switch(r.kind){case 64:return;case 27:case 20:return mke(s)&&s.parent.name===s?s.parent.parent:to(s,GN);case 19:case 28:return to(r.parent,GN);default:if(GN(s)){if(Ah(t,r.getEnd()).line!==Ah(t,l).line)return s;const m=Jl(r.parent.parent)?due:_ue;return m(r.kind)||r.kind===42||An(r)&&m(RL(r)??0)?r.parent.parent:void 0}return}}}function lQe(t){if(!t)return;const r=t.parent;switch(t.kind){case 19:if(e0(r))return r;break;case 27:case 28:case 80:if(r.kind===171&&e0(r.parent))return r.parent;break}}function Gve(t,r){if(!t)return;if(Uu(t)&&F8(t.parent))return r.getTypeArgumentConstraint(t);const s=Gve(t.parent,r);if(s)switch(t.kind){case 171:return r.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function mke(t){return t.parent&&$_(t.parent)&&GN(t.parent.parent)}function uQe(t,r,s,l){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&jZ(s)&&l===s.getStart(t)+1;case"#":return!!s&&Gu(s)&&!!h0(s);case"<":return!!s&&s.kind===30&&(!ys(s.parent)||fQe(s.parent));case"/":return!!s&&(sp(s)?!!L9(s):s.kind===44&&Sk(s.parent));case" ":return!!s&&RJ(s)&&s.parent.kind===312;default:return ce.assertNever(r)}}function fQe({left:t}){return Um(t)}function J_t(t,r,s){const l=s.resolveName("self",void 0,111551,!1);if(l&&s.getTypeOfSymbolAtLocation(l,r)===t)return!0;const m=s.resolveName("global",void 0,111551,!1);if(m&&s.getTypeOfSymbolAtLocation(m,r)===t)return!0;const y=s.resolveName("globalThis",void 0,111551,!1);return!!(y&&s.getTypeOfSymbolAtLocation(y,r)===t)}function $_t(t){return!!(t.valueDeclaration&&tS(t.valueDeclaration)&32&&Jl(t.valueDeclaration.parent))}function _Qe(t,r){const s=r.getContextualType(t);if(s)return s;const l=Lx(t.parent);if(ys(l)&&l.operatorToken.kind===64&&t===l.left)return r.getTypeAtLocation(l);if(Nr(l))return r.getContextualType(l)}function dQe(t,r){var s,l,m;let y,T=!1;const D=I();return{isKeywordOnlyCompletion:T,keywordCompletion:y,isNewIdentifierLocation:!!(D||y===156),isTopLevelTypeOnly:!!((l=(s=to(D,Fv))==null?void 0:s.importClause)!=null&&l.isTypeOnly)||!!((m=to(D,kh))!=null&&m.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!D&&M5e(D,t),replacementSpan:pQe(D)};function I(){const W=t.parent;if(kh(W)){const O=W.getLastToken(r);if(An(t)&&O!==t){y=161,T=!0;return}return y=t.kind===156?void 0:156,L5e(W.moduleReference)?W:void 0}if(M5e(W,t)&&gke(W.parent))return W;if(y6(W)||YL(W)){if(!W.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(y=156),gke(W))if(t.kind===20||t.kind===80)T=!0,y=161;else return W.parent.parent;return}if(RJ(t)&&tl(W))return y=156,t;if(RJ(t)&&Fv(W))return y=156,L5e(W.moduleSpecifier)?W:void 0}}function pQe(t){var r;if(!t)return;const s=Kr(t,dA(Fv,kh))??t,l=s.getSourceFile();if(mk(s,l))return gE(s,l);ce.assert(s.kind!==102&&s.kind!==276);const m=s.kind===272?R5e((r=s.importClause)==null?void 0:r.namedBindings)??s.moduleSpecifier:s.moduleReference,y={pos:s.getFirstToken().getStart(),end:m.pos};if(mk(y,l))return FR(y)}function R5e(t){var r;return lr((r=to(t,y6))==null?void 0:r.elements,s=>{var l;return!s.propertyName&&t6(s.name.text)&&((l=T0(s.name.pos,t.getSourceFile(),t))==null?void 0:l.kind)!==28})}function M5e(t,r){return oS(t)&&(t.isTypeOnly||r===t.name&&wZ(r))}function gke(t){if(!L5e(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(y6(t)){const r=R5e(t);return(r?t.elements.indexOf(r):t.elements.length)<2}return!0}function L5e(t){var r;return Um(t)?!0:!((r=to(j0(t)?t.expression:t,sp))!=null&&r.text)}function mQe(t,r){if(!t)return;const s=Kr(t,m=>JM(m)||hke(m)||ld(m)?"quit":(Pu(m)||Hh(m))&&!Xb(m.parent)),l=Kr(r,m=>JM(m)||hke(m)||ld(m)?"quit":ff(m));return s||l}function hke(t){return t.parent&&ph(t.parent)&&(t.parent.body===t||t.kind===39)}function O5e(t,r,s=new Map){return l(t)||l(dg(t.exportSymbol||t,r));function l(m){return!!(m.flags&788968)||r.isUnknownSymbol(m)||!!(m.flags&1536)&&y0(s,Bp(m))&&r.getExportsOfModule(m).some(y=>O5e(y,r,s))}}function gQe(t,r){const s=dg(t,r).declarations;return!!Nt(s)&&jr(s,XZ)}function hQe(t,r){if(r.length===0)return!0;let s=!1,l,m=0;const y=t.length;for(let T=0;T(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(Vve||{}),Uve=(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))(Uve||{}),Hve=(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))(Hve||{}),oV=[],Jve=Pd(()=>{const t=[];for(let r=83;r<=165;r++)t.push({name:Nd(r),kind:"keyword",kindModifiers:"",sortText:cm.GlobalsOrKeywords});return t})}});function $ve(){const t=new Map;function r(s){const l=t.get(s.name);(!l||Qve[l.kind]({name:ee.value,kindModifiers:"",kind:"string",sortText:cm.LocationPriority,replacementSpan:tce(r)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:O,entries:V}}default:return ce.assertNever(t)}}function Q_t(t,r,s,l,m,y,T,D,I){if(!l||!sp(l))return;const W=B5e(r,l,s,m,y,T,I);return W&&Z_t(t,l,W,r,m,D)}function Z_t(t,r,s,l,m,y){switch(s.kind){case 0:{const T=lr(s.paths,D=>D.name===t);return T&&Lve(t,W5e(T.extension),T.kind,[RA(t)])}case 1:{const T=lr(s.symbols,D=>D.name===t);return T&&Xee(T,T.name,m,l,r,y)}case 2:return lr(s.types,T=>T.value===t)?Lve(t,"","string",[RA(t)]):void 0;default:return ce.assertNever(s)}}function F5e(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:m,kind:y,span:T,extension:D})=>({name:m,kind:y,kindModifiers:W5e(D),sortText:cm.LocationPriority,replacementSpan:T}))}}function W5e(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 ce.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return ce.assertNever(t)}}function B5e(t,r,s,l,m,y,T){const D=qve(r.parent);switch(D.kind){case 201:{const te=qve(D.parent);return te.kind===205?{kind:0,paths:j5e(t,r,m,y,l,T)}:I(te)}case 303:return Wd(D.parent)&&D.name===r?tdt(l,D.parent):W()||W(0);case 212:{const{expression:te,argumentExpression:oe}=D;return r===_g(oe)?z5e(l.getTypeAtLocation(te)):void 0}case 213:case 214:case 291:if(!mdt(r)&&!WE(D)){const te=b0e.getArgumentInfoForCompletions(D.kind===291?D.parent:r,s,t);return te&&(yQe(te.invocation,r,te,l)||yQe(te.invocation,r,te,l,0))||W(0)}case 272:case 278:case 283:return{kind:0,paths:j5e(t,r,m,y,l,T)};case 296:const O=YZ(l,D.parent.clauses),V=W();return V?{kind:2,types:V.types.filter(te=>!O.hasValue(te.value)),isNewIdentifier:!1}:void 0;default:return W()||W(0)}function I(O){switch(O.kind){case 233:case 183:{const te=Kr(D,oe=>oe.parent===O);return te?{kind:2,types:Qee(l.getTypeArgumentConstraint(te)),isNewIdentifier:!1}:void 0}case 199:const{indexType:V,objectType:ee}=O;return U$(V,s)?z5e(l.getTypeFromTypeNode(ee)):void 0;case 192:{const te=I(qve(O.parent));if(!te)return;const oe=edt(O,D);return te.kind===1?{kind:1,symbols:te.symbols.filter(de=>!ni(oe,de.name)),hasIndexSignature:te.hasIndexSignature}:{kind:2,types:te.types.filter(de=>!ni(oe,de.value)),isNewIdentifier:!1}}default:return}}function W(O=4){const V=Qee(lce(r,l,O));if(V.length)return{kind:2,types:V,isNewIdentifier:!1}}}function qve(t){switch(t.kind){case 196:return mH(t);case 217:return Lx(t);default:return t}}function edt(t,r){return Qo(t.types,s=>s!==r&&_I(s)&&Wp(s.literal)?s.literal.text:void 0)}function yQe(t,r,s,l,m=32){let y=!1;const T=new Map,D=[],I=Y1(t)?ce.checkDefined(Kr(r.parent,Pb)):r;l.getResolvedSignatureForStringLiteralCompletions(t,I,D,m);const W=ea(D,O=>{if(!oT(O)&&s.argumentCount>O.parameters.length)return;let V=O.getTypeParameterAtPosition(s.argumentIndex);if(Y1(t)){const ee=l.getTypeOfPropertyOfType(V,oW(I.name));ee&&(V=ee)}return y=y||!!(V.flags&4),Qee(V,T)});return Nt(W)?{kind:2,types:W,isNewIdentifier:y}:void 0}function z5e(t){return t&&{kind:1,symbols:gi(t.getApparentProperties(),r=>!(r.valueDeclaration&&Mf(r.valueDeclaration))),hasIndexSignature:rB(t)}}function tdt(t,r){const s=t.getContextualType(r);if(!s)return;const l=t.getContextualType(r,4);return{kind:1,symbols:dke(s,l,r,t),hasIndexSignature:rB(s)}}function Qee(t,r=new Map){return t?(t=MZ(t),t.isUnion()?ea(t.types,s=>Qee(s,r)):t.isStringLiteral()&&!(t.flags&1024)&&y0(r,t.value)?[t]:Zn):Zn}function E4(t,r,s){return{name:t,kind:r,extension:s}}function Kve(t){return E4(t,"directory",void 0)}function G5e(t,r,s){const l=ddt(t,r),m=t.length===0?void 0:nb(r,t.length);return s.map(({name:y,kind:T,extension:D})=>Math.max(y.indexOf(q),y.indexOf(N))!==-1?{name:y,kind:T,extension:D,span:m}:{name:y,kind:T,extension:D,span:l})}function j5e(t,r,s,l,m,y){return G5e(r.text,r.getStart(t)+1,ndt(t,r,s,l,m,y))}function ndt(t,r,s,l,m,y){const T=hf(r.text),D=sp(r)?kA(t,r):void 0,I=t.path,W=qc(I),O=Xve(s,1,t,m,y,D);return pdt(T)||!s.baseUrl&&!s.paths&&(mm(T)||r9(T))?rdt(T,W,s,l,I,O):sdt(T,W,D,s,l,O,m)}function Xve(t,r,s,l,m,y){return{extensionsToSearch:Gf(idt(t,l)),referenceKind:r,importingSourceFile:s,endingPreference:m==null?void 0:m.importModuleSpecifierEnding,resolutionMode:y}}function rdt(t,r,s,l,m,y){return s.rootDirs?adt(s.rootDirs,t,r,y,s,l,m):oc(zF(t,r,y,l,!0,m).values())}function idt(t,r){const s=r?Qo(r.getAmbientModules(),y=>{const T=y.name.slice(1,-1);if(!(!T.startsWith("*.")||T.includes("/")))return T.slice(1)}):[],l=[...s3(t),s],m=Jd(t);return U3(m)?Q9(t,l):l}function odt(t,r,s,l){t=t.map(y=>Fd(mm(y)?y:tf(r,y)));const m=Yr(t,y=>GC(y,s,r,l)?s.substr(y.length):void 0);return th([...t.map(y=>tf(y,m)),s],ZA,Fp)}function adt(t,r,s,l,m,y,T){const D=m.project||y.getCurrentDirectory(),I=!(y.useCaseSensitiveFileNames&&y.useCaseSensitiveFileNames()),W=odt(t,D,s,I);return ea(W,O=>oc(zF(r,O,l,y,!0,T).values()))}function zF(t,r,s,l,m,y,T=$ve()){var D;t===void 0&&(t=""),t=hf(t),Jg(t)||(t=qc(t)),t===""&&(t="."+q),t=Rv(t);const I=gm(r,t),W=Jg(I)?I:qc(I);if(!m){const te=$Je(W,l);if(te){const de=e3(te,l).typesVersions;if(typeof de=="object"){const ue=(D=yQ(de))==null?void 0:D.paths;if(ue){const Ne=qc(te),Be=I.slice(Rv(Ne).length);if(U5e(T,Be,Ne,s,l,ue))return T}}}}const O=!(l.useCaseSensitiveFileNames&&l.useCaseSensitiveFileNames());if(!dce(l,W))return T;const V=_ce(l,W,s.extensionsToSearch,void 0,["./*"]);if(V)for(let te of V){if(te=Fd(te),y&&wM(te,y,r,O)===0)continue;const{name:oe,extension:de}=V5e(Iy(te),l.getCompilationSettings(),s);T.add(E4(oe,"script",de))}const ee=HZ(l,W);if(ee)for(const te of ee){const oe=Iy(Fd(te));oe!=="@types"&&T.add(Kve(oe))}return T}function V5e(t,r,s){const l=M3.tryGetRealFileNameForNonJsDeclarationFileName(t);if(l)return{name:l,extension:OT(l)};if(s.referenceKind===0)return{name:t,extension:OT(t)};const m=ooe(s.endingPreference,s.resolutionMode,r,s.importingSourceFile);if(m===3){if(ws(t,TG))return{name:t,extension:OT(t)};const T=M3.tryGetJSExtensionForFile(t,r);return T?{name:SA(t,T),extension:T}:{name:t,extension:OT(t)}}if((m===0||m===1)&&ws(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:wg(t),extension:OT(t)};const y=M3.tryGetJSExtensionForFile(t,r);return y?{name:SA(t,y),extension:y}:{name:t,extension:OT(t)}}function U5e(t,r,s,l,m,y){const T=I=>y[I],D=(I,W)=>{const O=c6(I),V=c6(W),ee=typeof O=="object"?O.prefix.length:I.length,te=typeof V=="object"?V.prefix.length:W.length;return pf(te,ee)};return H5e(t,r,s,l,m,ET(y),T,D)}function H5e(t,r,s,l,m,y,T,D){let I=[],W;for(const O of y){if(O===".")continue;const V=O.replace(/^\.\//,""),ee=T(O);if(ee){const te=c6(V);if(!te)continue;const oe=typeof te=="object"&&mU(te,r);oe&&(W===void 0||D(O,W)===-1)&&(W=O,I=I.filter(ue=>!ue.matchedPattern)),(typeof te=="string"||W===void 0||D(O,W)!==1)&&I.push({matchedPattern:oe,results:cdt(V,ee,r,s,l,m).map(({name:ue,kind:Ne,extension:Be})=>E4(ue,Ne,Be))})}}return I.forEach(O=>O.results.forEach(V=>t.add(V))),W!==void 0}function sdt(t,r,s,l,m,y,T){const{baseUrl:D,paths:I}=l,W=$ve(),O=Jd(l);if(D){const ee=Fd(tf(m.getCurrentDirectory(),D));zF(t,ee,y,m,!1,void 0,W)}if(I){const ee=G9(l,m);U5e(W,t,ee,y,m,I)}const V=$5e(t);for(const ee of udt(t,V,T))W.add(E4(ee,"external module name",void 0));if(X5e(m,l,r,V,y,W),U3(O)){let ee=!1;if(V===void 0)for(const te of _dt(m,r)){const oe=E4(te,"external module name",void 0);W.has(oe.name)||(ee=!0,W.add(oe))}if(!ee){let te=oe=>{const de=tf(oe,"node_modules");dce(m,de)&&zF(t,de,y,m,!1,void 0,W)};if(V&&Zie(l)){const oe=te;te=de=>{const ue=g0(t);ue.shift();let Ne=ue.shift();if(!Ne)return oe(de);if(xf(Ne,"@")){const pt=ue.shift();if(!pt)return oe(de);Ne=tf(Ne,pt)}const Be=tf(de,"node_modules",Ne),Ve=tf(Be,"package.json");if(iB(m,Ve)){const Le=e3(Ve,m).exports;if(Le){if(typeof Le!="object"||Le===null)return;const ht=ET(Le),ke=ue.join("/")+(ue.length&&Jg(t)?"/":""),_t=u$(l,s===99);H5e(W,ke,Be,y,m,ht,Dt=>zD(J5e(Le[Dt],_t)),xQ);return}}return oe(de)}}ok(r,te)}}return oc(W.values())}function J5e(t,r){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!ls(t)){for(const s in t)if(s==="default"||r.indexOf(s)>-1||g$(r,s)){const l=t[s];return J5e(l,r)}}}function $5e(t){return Yve(t)?Jg(t)?t:qc(t):void 0}function cdt(t,r,s,l,m,y){if(!h_(t,"*"))return Ub(t,"*")?Zn:I(t,"script");const T=t.slice(0,t.length-1),D=C8(s,T);if(D===void 0)return t[t.length-2]==="/"?I(T,"directory"):ea(r,O=>{var V;return(V=q5e("",l,O,m,y))==null?void 0:V.map(({name:ee,...te})=>({name:T+ee,...te}))});return ea(r,W=>q5e(D,l,W,m,y));function I(W,O){return xf(W,s)?[{name:n7(W),kind:O,extension:void 0}]:Zn}}function q5e(t,r,s,l,m){if(!m.readDirectory)return;const y=c6(s);if(y===void 0||As(y))return;const T=gm(y.prefix),D=Jg(y.prefix)?T:qc(T),I=Jg(y.prefix)?"":Iy(T),W=Yve(t),O=W?Jg(t)?t:qc(t):void 0,V=W?tf(D,I+O):D,ee=Fd(y.suffix),te=ee&&HL("_"+ee),oe=te?[SA(ee,te),ee]:[ee],de=Fd(tf(r,V)),ue=W?de:Rv(de)+I,Ne=ee?oe.map(Le=>"**/*"+Le):["./*"],Be=Qo(_ce(m,de,l.extensionsToSearch,void 0,Ne),Le=>{const ht=pt(Le);if(ht){if(Yve(ht))return Kve(g0(K5e(ht))[1]);const{name:ke,extension:_t}=V5e(ht,m.getCompilationSettings(),l);return E4(ke,"script",_t)}}),Ve=ee?Zn:Qo(HZ(m,de),Le=>Le==="node_modules"?void 0:Kve(Le));return[...Be,...Ve];function pt(Le){return Yr(oe,ht=>{const ke=ldt(Fd(Le),ue,ht);return ke===void 0?void 0:K5e(ke)})}}function ldt(t,r,s){return xf(t,r)&&h_(t,s)?t.slice(r.length,t.length-s.length):void 0}function K5e(t){return t[0]===q?t.slice(1):t}function udt(t,r,s){const m=s.getAmbientModules().map(y=>HE(y.name)).filter(y=>xf(y,t)&&y.indexOf("*")<0);if(r!==void 0){const y=Rv(r);return m.map(T=>Sz(T,y))}return m}function fdt(t,r,s,l){const m=bf(t,r),y=CS(t.text,m.pos),T=y&&lr(y,oe=>r>=oe.pos&&r<=oe.end);if(!T)return;const D=t.text.slice(T.pos,r),I=Y5e.exec(D);if(!I)return;const[,W,O,V]=I,ee=qc(t.path),te=O==="path"?zF(V,ee,Xve(s,0,t),l,!0,t.path):O==="types"?X5e(l,s,ee,$5e(V),Xve(s,1,t)):ce.fail();return G5e(V,T.pos+W.length,oc(te.values()))}function X5e(t,r,s,l,m,y=$ve()){const T=new Map,D=ehe(()=>$pe(r,t))||Zn;for(const W of D)I(W);for(const W of JZ(s,t)){const O=tf(qc(W),"node_modules/@types");I(O)}return y;function I(W){if(dce(t,W))for(const O of HZ(t,W)){const V=dae(O);if(!(r.types&&!ni(r.types,V)))if(l===void 0)T.has(V)||(y.add(E4(V,"external module name",void 0)),T.set(V,!0));else{const ee=tf(W,O),te=toe(l,V,hR(t));te!==void 0&&zF(te,ee,m,t,!1,void 0,y)}}}}function _dt(t,r){if(!t.readFile||!t.fileExists)return Zn;const s=[];for(const l of JZ(r,t)){const m=e3(l,t);for(const y of Q5e){const T=m[y];if(T)for(const D in T)ef(T,D)&&!xf(D,"@types/")&&s.push(D)}}return s}function ddt(t,r){const s=Math.max(t.lastIndexOf(q),t.lastIndexOf(N)),l=s!==-1?s+1:0,m=t.length-l;return m===0||rE(t.substr(l,m),99)?void 0:nb(r+l,m)}function pdt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const r=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(r);return s===47||s===92}return!1}function Yve(t){return Ub(t,q)}function mdt(t){return el(t.parent)&&pp(t.parent.arguments)===t&&An(t.parent.expression)&&t.parent.expression.escapedText==="require"}var Qve,Y5e,Q5e,gdt=G({"src/services/stringCompletions.ts"(){El(),Zve(),Qve={directory:0,script:1,"external module name":2},Y5e=/^(\/\/\/\s*Q_t,getStringLiteralCompletions:()=>X_t});var hdt=G({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){gdt()}}),ow={};Oe(ow,{CompletionKind:()=>Hve,CompletionSource:()=>Vve,SortText:()=>cm,StringCompletions:()=>Zee,SymbolOriginInfoKind:()=>Uve,createCompletionDetails:()=>Lve,createCompletionDetailsForSymbol:()=>Xee,getCompletionEntriesFromSymbols:()=>I5e,getCompletionEntryDetails:()=>k5e,getCompletionEntrySymbol:()=>j_t,getCompletionsAtPosition:()=>Pve,getPropertiesForObjectExpression:()=>dke,moduleSpecifierResolutionCacheAttemptLimit:()=>jve,moduleSpecifierResolutionLimit:()=>Yee});var Zve=G({"src/services/_namespaces/ts.Completions.ts"(){K_t(),hdt()}});function e0e(t,r,s,l){const m=Tdt(t,s,l);return(y,T,D)=>{const{directImports:I,indirectUsers:W}=ydt(t,r,m,T,s,l);return{indirectUsers:W,...vdt(I,y,T.exportKind,s,D)}}}function ydt(t,r,s,{exportingModuleSymbol:l,exportKind:m},y,T){const D=CF(),I=CF(),W=[],O=!!l.globalExports,V=O?void 0:[];return te(l),{directImports:W,indirectUsers:ee()};function ee(){if(O)return t;if(l.declarations)for(const Ve of l.declarations)WL(Ve)&&r.has(Ve.getSourceFile().fileName)&&Ne(Ve);return V.map(ns)}function te(Ve){const pt=Be(Ve);if(pt){for(const Le of pt)if(D(Le))switch(T&&T.throwIfCancellationRequested(),Le.kind){case 213:if(WE(Le)){oe(Le);break}if(!O){const ke=Le.parent;if(m===2&&ke.kind===260){const{name:_t}=ke;if(_t.kind===80){W.push(_t);break}}}break;case 80:break;case 271:ue(Le,Le.name,il(Le,1),!1);break;case 272:W.push(Le);const ht=Le.importClause&&Le.importClause.namedBindings;ht&&ht.kind===274?ue(Le,ht.name,!1,!0):!O&&D7(Le)&&Ne(aV(Le));break;case 278:Le.exportClause?Le.exportClause.kind===280?Ne(aV(Le),!0):W.push(Le):te(Cdt(Le,y));break;case 205:!O&&Le.isTypeOf&&!Le.qualifier&&de(Le)&&Ne(Le.getSourceFile(),!0),W.push(Le);break;default:ce.failBadSyntaxKind(Le,"Unexpected import kind.")}}}function oe(Ve){const pt=Kr(Ve,ete)||Ve.getSourceFile();Ne(pt,!!de(Ve,!0))}function de(Ve,pt=!1){return Kr(Ve,Le=>pt&&ete(Le)?"quit":nx(Le)&>(Le.modifiers,fW))}function ue(Ve,pt,Le,ht){if(m===2)ht||W.push(Ve);else if(!O){const ke=aV(Ve);ce.assert(ke.kind===312||ke.kind===267),Le||bdt(ke,pt,y)?Ne(ke,!0):Ne(ke)}}function Ne(Ve,pt=!1){if(ce.assert(!O),!I(Ve)||(V.push(Ve),!pt))return;const ht=y.getMergedSymbol(Ve.symbol);if(!ht)return;ce.assert(!!(ht.flags&1536));const ke=Be(ht);if(ke)for(const _t of ke)Wx(_t)||Ne(aV(_t),!0)}function Be(Ve){return s.get(Bp(Ve).toString())}}function vdt(t,r,s,l,m){const y=[],T=[];function D(ee,te){y.push([ee,te])}if(t)for(const ee of t)I(ee);return{importSearches:y,singleReferences:T};function I(ee){if(ee.kind===271){n0e(ee)&&W(ee.name);return}if(ee.kind===80){W(ee);return}if(ee.kind===205){if(ee.qualifier){const de=NS(ee.qualifier);de.escapedText===mp(r)&&T.push(de)}else s===2&&T.push(ee.argument.literal);return}if(ee.moduleSpecifier.kind!==11)return;if(ee.kind===278){ee.exportClause&&G0(ee.exportClause)&&O(ee.exportClause);return}const{name:te,namedBindings:oe}=ee.importClause||{name:void 0,namedBindings:void 0};if(oe)switch(oe.kind){case 274:W(oe.name);break;case 275:(s===0||s===1)&&O(oe);break;default:ce.assertNever(oe)}if(te&&(s===1||s===2)&&(!m||te.escapedText===y4(r))){const de=l.getSymbolAtLocation(te);D(te,de)}}function W(ee){s===2&&(!m||V(ee.escapedText))&&D(ee,l.getSymbolAtLocation(ee))}function O(ee){if(ee)for(const te of ee.elements){const{name:oe,propertyName:de}=te;if(V((de||oe).escapedText))if(de)T.push(de),(!m||oe.escapedText===r.escapedName)&&D(oe,l.getSymbolAtLocation(oe));else{const ue=te.kind===281&&te.propertyName?l.getExportSpecifierLocalTargetSymbol(te):l.getSymbolAtLocation(oe);D(oe,ue)}}}function V(ee){return ee===r.escapedName||s!==0&&ee==="default"}}function bdt(t,r,s){const l=s.getSymbolAtLocation(r);return!!e9e(t,m=>{if(!mh(m))return;const{exportClause:y,moduleSpecifier:T}=m;return!T&&y&&G0(y)&&y.elements.some(D=>s.getExportSpecifierLocalTargetSymbol(D)===l)})}function Z5e(t,r,s){var l;const m=[],y=t.getTypeChecker();for(const T of r){const D=s.valueDeclaration;if((D==null?void 0:D.kind)===312){for(const I of T.referencedFiles)t.getSourceFileFromReference(T,I)===D&&m.push({kind:"reference",referencingFile:T,ref:I});for(const I of T.typeReferenceDirectives){const W=(l=t.getResolvedTypeReferenceDirectives().get(I.fileName,I.resolutionMode||T.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective;W!==void 0&&W.resolvedFileName===D.fileName&&m.push({kind:"reference",referencingFile:T,ref:I})}}t9e(T,(I,W)=>{y.getSymbolAtLocation(W)===s&&m.push(rh(I)?{kind:"implicit",literal:W,referencingFile:T}:{kind:"import",literal:W})})}return m}function Tdt(t,r,s){const l=new Map;for(const m of t)s&&s.throwIfCancellationRequested(),t9e(m,(y,T)=>{const D=r.getSymbolAtLocation(T);if(D){const I=Bp(D).toString();let W=l.get(I);W||l.set(I,W=[]),W.push(y)}});return l}function e9e(t,r){return Ot(t.kind===312?t.statements:t.body.statements,s=>r(s)||ete(s)&&Ot(s.body&&s.body.statements,r))}function t9e(t,r){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)r(b2(s),s);else e9e(t,s=>{switch(s.kind){case 278:case 272:{const l=s;l.moduleSpecifier&&Wp(l.moduleSpecifier)&&r(l,l.moduleSpecifier);break}case 271:{const l=s;n0e(l)&&r(l,l.moduleReference.expression);break}}})}function n9e(t,r,s,l){return l?m():m()||y();function m(){var I;const{parent:W}=t,O=W.parent;if(r.exportSymbol)return W.kind===211?(I=r.declarations)!=null&&I.some(te=>te===W)&&ys(O)?ee(O,!1):void 0:T(r.exportSymbol,D(W));{const te=Edt(W,t);if(te&&il(te,1))return kh(te)&&te.moduleReference===t?l?void 0:{kind:0,symbol:s.getSymbolAtLocation(te.name)}:T(r,D(te));if(AP(W))return T(r,0);if(Ly(W))return V(W);if(Ly(O))return V(O);if(ys(W))return ee(W,!0);if(ys(O))return ee(O,!0);if(A2(W)||oF(W))return T(r,0)}function V(te){if(!te.symbol.parent)return;const oe=te.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:te.symbol.parent,exportKind:oe}}}function ee(te,oe){let de;switch(Qy(te)){case 1:de=0;break;case 2:de=2;break;default:return}const ue=oe?s.getSymbolAtLocation(PSe(uc(te.left,Kf))):r;return ue&&T(ue,de)}}function y(){if(!xdt(t))return;let W=s.getImmediateAliasedSymbol(r);if(!W||(W=Adt(W,s),W.escapedName==="export="&&(W=Sdt(W,s),W===void 0)))return;const O=y4(W);if(O===void 0||O==="default"||O===r.escapedName)return{kind:0,symbol:W}}function T(I,W){const O=t0e(I,W,s);return O&&{kind:1,symbol:I,exportInfo:O}}function D(I){return il(I,1024)?1:0}}function Sdt(t,r){var s,l;if(t.flags&2097152)return r.getImmediateAliasedSymbol(t);const m=ce.checkDefined(t.valueDeclaration);if(Ly(m))return(s=to(m.expression,YD))==null?void 0:s.symbol;if(ys(m))return(l=to(m.right,YD))==null?void 0:l.symbol;if(tl(m))return m.symbol}function Edt(t,r){const s=ff(t)?t:ym(t)?zX(t):void 0;return s?t.name!==r||CP(s.parent)?void 0:Dh(s.parent.parent)?s.parent.parent:void 0:t}function xdt(t){const{parent:r}=t;switch(r.kind){case 271:return r.name===t&&n0e(r);case 276:return!r.propertyName;case 273:case 274:return ce.assert(r.name===t),!0;case 208:return Rs(t)&&pR(r.parent.parent);default:return!1}}function t0e(t,r,s){const l=t.parent;if(!l)return;const m=s.getMergedSymbol(l);return sT(m)?{exportingModuleSymbol:m,exportKind:r}:void 0}function Adt(t,r){if(t.declarations)for(const s of t.declarations){if(Oy(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(s)||t;if(sa(s)&&KC(s.expression)&&!Gu(s.name))return r.getSymbolAtLocation(s);if(BT(s)&&ys(s.parent.parent)&&Qy(s.parent.parent)===2)return r.getExportSpecifierLocalTargetSymbol(s.name)}return t}function Cdt(t,r){return r.getMergedSymbol(aV(t).symbol)}function aV(t){if(t.kind===213)return t.getSourceFile();const{parent:r}=t;return r.kind===312?r:(ce.assert(r.kind===268),uc(r.parent,ete))}function ete(t){return t.kind===267&&t.name.kind===11}function n0e(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var r0e,i0e,Ddt=G({"src/services/importTracker.ts"(){El(),r0e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(r0e||{}),i0e=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(i0e||{})}});function _T(t,r=1){return{kind:r,node:t.name||t,context:Idt(t)}}function r9e(t){return t&&t.kind===void 0}function Idt(t){if(dl(t))return AI(t);if(t.parent){if(!dl(t.parent)&&!Ly(t.parent)){if(Rs(t)){const s=ys(t.parent)?t.parent:Kf(t.parent)&&ys(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&Qy(s)!==0)return AI(s)}if(rD(t.parent)||Sk(t.parent))return t.parent.parent;if(TW(t.parent)||iS(t.parent)||VX(t.parent))return t.parent;if(sp(t)){const s=L9(t);if(s){const l=Kr(s,m=>dl(m)||uf(m)||NT(m));return dl(l)?AI(l):l}}const r=Kr(t,am);return r?AI(r.parent):void 0}if(t.parent.name===t||pg(t.parent)||Ly(t.parent)||(l9(t.parent)||ym(t.parent))&&t.parent.propertyName===t||t.kind===90&&il(t.parent,1025))return AI(t.parent)}}function AI(t){if(t)switch(t.kind){case 260:return!My(t.parent)||t.parent.declarations.length!==1?t:Dh(t.parent.parent)?t.parent.parent:DS(t.parent.parent)?AI(t.parent.parent):t.parent;case 208:return AI(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 Ou(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return OR(t.parent)?AI(Kr(t.parent,r=>ys(r)||DS(r))):t;default:return t}}function o0e(t,r,s){if(!s)return;const l=r9e(s)?cV(s.start,r,s.end):cV(s,r);return l.start!==t.start||l.length!==t.length?{contextSpan:l}:void 0}function kdt(t,r,s,l,m){const y=Hx(l,m),T={use:1},D=OP.getReferencedSymbolsForNode(m,y,t,s,r,T),I=t.getTypeChecker(),W=OP.getAdjustedNode(y,T),O=Pdt(W)?I.getSymbolAtLocation(W):void 0;return!D||!D.length?void 0:Qo(D,({definition:V,references:ee})=>V&&{definition:I.runWithCancellationToken(r,te=>Rdt(V,te,y)),references:ee.map(te=>Ldt(te,O))})}function Pdt(t){return t.kind===90||!!O9(t)||K8(t)||t.kind===137&&pg(t.parent)}function Ndt(t,r,s,l,m){const y=Hx(l,m);let T;const D=i9e(t,r,s,y,m);if(y.parent.kind===211||y.parent.kind===208||y.parent.kind===212||y.kind===108)T=D&&[...D];else if(D){const W=$w(D),O=new Map;for(;!W.isEmpty();){const V=W.dequeue();if(!y0(O,Im(V.node)))continue;T=ur(T,V);const ee=i9e(t,r,s,V.node,V.node.pos);ee&&W.enqueue(...ee)}}const I=t.getTypeChecker();return Vn(T,W=>Fdt(W,I))}function i9e(t,r,s,l,m){if(l.kind===312)return;const y=t.getTypeChecker();if(l.parent.kind===304){const T=[];return OP.getReferenceEntriesForShorthandPropertyAssignment(l,y,D=>T.push(_T(D))),T}else if(l.kind===108||Z1(l.parent)){const T=y.getSymbolAtLocation(l);return T.valueDeclaration&&[_T(T.valueDeclaration)]}else return o9e(m,l,t,s,r,{implementations:!0,use:1})}function wdt(t,r,s,l,m,y,T){return Vn(a9e(OP.getReferencedSymbolsForNode(m,l,t,s,r,y)),D=>T(D,l,t.getTypeChecker()))}function o9e(t,r,s,l,m,y={},T=new Set(l.map(D=>D.fileName))){return a9e(OP.getReferencedSymbolsForNode(t,r,s,l,m,y,T))}function a9e(t){return t&&ea(t,r=>r.references)}function Rdt(t,r,s){const l=(()=>{switch(t.type){case 0:{const{symbol:O}=t,{displayParts:V,kind:ee}=s9e(O,r,s),te=V.map(ue=>ue.text).join(""),oe=O.declarations&&pp(O.declarations),de=oe?o_(oe)||oe:s;return{...sV(de),name:te,kind:ee,displayParts:V,context:AI(oe)}}case 1:{const{node:O}=t;return{...sV(O),name:O.text,kind:"label",displayParts:[C1(O.text,17)]}}case 2:{const{node:O}=t,V=Nd(O.kind);return{...sV(O),name:V,kind:"keyword",displayParts:[{text:V,kind:"keyword"}]}}case 3:{const{node:O}=t,V=r.getSymbolAtLocation(O),ee=V&&D4.getSymbolDisplayPartsDocumentationAndSymbolKind(r,V,O.getSourceFile(),j3(O),O).displayParts||[RA("this")];return{...sV(O),name:"this",kind:"var",displayParts:ee}}case 4:{const{node:O}=t;return{...sV(O),name:O.text,kind:"var",displayParts:[C1(Yv(O),8)]}}case 5:return{textSpan:FR(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[C1(`"${t.reference.fileName}"`,8)]};default:return ce.assertNever(t)}})(),{sourceFile:m,textSpan:y,name:T,kind:D,displayParts:I,context:W}=l;return{containerKind:"",containerName:"",fileName:m.fileName,kind:D,name:T,textSpan:y,displayParts:I,...o0e(y,m,W)}}function sV(t){const r=t.getSourceFile();return{sourceFile:r,textSpan:cV(am(t)?t.expression:t,r)}}function s9e(t,r,s){const l=OP.getIntersectingMeaningFromDeclarations(s,t),m=t.declarations&&pp(t.declarations)||s,{displayParts:y,symbolKind:T}=D4.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,m.getSourceFile(),m,m,l);return{displayParts:y,kind:T}}function Mdt(t,r,s,l,m){return{...tte(t),...l&&Odt(t,r,s,m)}}function Ldt(t,r){const s=c9e(t);return r?{...s,isDefinition:t.kind!==0&&l9e(t.node,r)}:s}function c9e(t){const r=tte(t);if(t.kind===0)return{...r,isWriteAccess:!1};const{kind:s,node:l}=t;return{...r,isWriteAccess:s0e(l),isInString:s===2?!0:void 0}}function tte(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const r=t.node.getSourceFile(),s=cV(t.node,r);return{textSpan:s,fileName:r.fileName,...o0e(s,r,t.context)}}}function Odt(t,r,s,l){if(t.kind!==0&&An(r)){const{node:m,kind:y}=t,T=m.parent,D=r.text,I=BT(T);if(I||Ij(T)&&T.name===m&&T.dotDotDotToken===void 0){const W={prefixText:D+": "},O={suffixText:": "+D};if(y===3)return W;if(y===4)return O;if(I){const V=T.parent;return Wd(V)&&ys(V.parent)&&KC(V.parent.left)?W:O}else return W}else if(oS(T)&&!T.propertyName){const W=Oy(r.parent)?s.getExportSpecifierLocalTargetSymbol(r.parent):s.getSymbolAtLocation(r);return ni(W.declarations,T)?{prefixText:D+" as "}:NA}else if(Oy(T)&&!T.propertyName)return r===t.node||s.getSymbolAtLocation(r)===s.getSymbolAtLocation(t.node)?{prefixText:D+" as "}:{suffixText:" as "+D}}if(t.kind!==0&&nS(t.node)&&Kf(t.node.parent)){const m=Jge(l);return{prefixText:m,suffixText:m}}return NA}function Fdt(t,r){const s=tte(t);if(t.kind!==0){const{node:l}=t;return{...s,...Wdt(l,r)}}else return{...s,kind:"",displayParts:[]}}function Wdt(t,r){const s=r.getSymbolAtLocation(dl(t)&&t.name?t.name:t);return s?s9e(s,r,t):t.kind===210?{kind:"interface",displayParts:[cT(21),RA("object literal"),cT(22)]}:t.kind===231?{kind:"local class",displayParts:[cT(21),RA("anonymous local class"),cT(22)]}:{kind:m4(t),displayParts:[]}}function Bdt(t){const r=tte(t);if(t.kind===0)return{fileName:r.fileName,span:{textSpan:r.textSpan,kind:"reference"}};const s=s0e(t.node),l={textSpan:r.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...r.contextSpan&&{contextSpan:r.contextSpan}};return{fileName:r.fileName,span:l}}function cV(t,r,s){let l=t.getStart(r),m=(s||t).getEnd();return sp(t)&&m-l>2&&(ce.assert(s===void 0),l+=1,m-=1),R0(l,m)}function a0e(t){return t.kind===0?t.textSpan:cV(t.node,t.node.getSourceFile())}function s0e(t){const r=O9(t);return!!r&&zdt(r)||t.kind===90||o6(t)}function l9e(t,r){var s;if(!r)return!1;const l=O9(t)||(t.kind===90?t.parent:K8(t)||t.kind===137&&pg(t.parent)?t.parent.parent:void 0),m=l&&ys(l)?l.left:void 0;return!!(l&&((s=r.declarations)!=null&&s.some(y=>y===l||y===m)))}function zdt(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!OR(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||CP(t.parent);case 173:case 171:case 355:case 348:return!1;default:return ce.failBadSyntaxKind(t)}}var c0e,l0e,u0e,OP,Gdt=G({"src/services/findAllReferences.ts"(){El(),u9e(),c0e=(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))(c0e||{}),l0e=(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))(l0e||{}),u0e=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(u0e||{}),(t=>{function r(er,Jr,li,Ir,_o,xt={},Kn=new Set(Ir.map(gn=>gn.fileName))){var gn,qr,mt;if(Jr=s(Jr,xt),tl(Jr)){const Ui=C4.getReferenceAtPosition(Jr,er,li);if(!(Ui!=null&&Ui.file))return;const xu=li.getTypeChecker().getMergedSymbol(Ui.file.symbol);if(xu)return W(li,xu,!1,Ir,Kn);const We=li.getFileIncludeReasons();return We?[{definition:{type:5,reference:Ui.reference,file:Jr},references:m(Ui.file,We,li)||Zn}]:void 0}if(!xt.implementations){const Ui=V(Jr,Ir,_o);if(Ui)return Ui}const _r=li.getTypeChecker(),Cn=_r.getSymbolAtLocation(pg(Jr)&&Jr.parent.name||Jr);if(!Cn){if(!xt.implementations&&sp(Jr)){if(FZ(Jr)){const Ui=li.getFileIncludeReasons(),xu=(mt=(qr=(gn=Jr.getSourceFile().resolvedModules)==null?void 0:gn.get(Jr.text,kA(Jr.getSourceFile(),Jr)))==null?void 0:qr.resolvedModule)==null?void 0:mt.resolvedFileName,We=xu?li.getSourceFile(xu):void 0;if(We)return[{definition:{type:4,node:Jr},references:m(We,Ui,li)||Zn}]}return Rr(Jr,Ir,_r,_o)}return}if(Cn.escapedName==="export=")return W(li,Cn.parent,!1,Ir,Kn);const oi=T(Cn,li,Ir,_o,xt,Kn);if(oi&&!(Cn.flags&33554432))return oi;const Qr=y(Jr,Cn,_r),co=Qr&&T(Qr,li,Ir,_o,xt,Kn),es=ee(Cn,Jr,Ir,Kn,_r,_o,xt);return D(li,oi,es,co)}t.getReferencedSymbolsForNode=r;function s(er,Jr){return Jr.use===1?er=k8e(er):Jr.use===2&&(er=CAe(er)),er}t.getAdjustedNode=s;function l(er,Jr,li,Ir=new Set(li.map(_o=>_o.fileName))){var _o,xt;const Kn=(_o=Jr.getSourceFile(er))==null?void 0:_o.symbol;if(Kn)return((xt=W(Jr,Kn,!1,li,Ir)[0])==null?void 0:xt.references)||Zn;const gn=Jr.getFileIncludeReasons(),qr=Jr.getSourceFile(er);return qr&&gn&&m(qr,gn,Jr)||Zn}t.getReferencesForFileName=l;function m(er,Jr,li){let Ir;const _o=Jr.get(er.path)||Zn;for(const xt of _o)if(k6(xt)){const Kn=li.getSourceFileByPath(xt.file),gn=VW(li.getSourceFileByPath,xt);yF(gn)&&(Ir=ur(Ir,{kind:0,fileName:Kn.fileName,textSpan:FR(gn)}))}return Ir}function y(er,Jr,li){if(er.parent&&dy(er.parent)){const Ir=li.getAliasedSymbol(Jr),_o=li.getMergedSymbol(Ir);if(Ir!==_o)return _o}}function T(er,Jr,li,Ir,_o,xt){const Kn=er.flags&1536&&er.declarations&&lr(er.declarations,tl);if(!Kn)return;const gn=er.exports.get("export="),qr=W(Jr,er,!!gn,li,xt);if(!gn||!xt.has(Kn.fileName))return qr;const mt=Jr.getTypeChecker();return er=dg(gn,mt),D(Jr,qr,ee(er,void 0,li,xt,mt,Ir,_o))}function D(er,...Jr){let li;for(const Ir of Jr)if(!(!Ir||!Ir.length)){if(!li){li=Ir;continue}for(const _o of Ir){if(!_o.definition||_o.definition.type!==0){li.push(_o);continue}const xt=_o.definition.symbol,Kn=Ho(li,qr=>!!qr.definition&&qr.definition.type===0&&qr.definition.symbol===xt);if(Kn===-1){li.push(_o);continue}const gn=li[Kn];li[Kn]={definition:gn.definition,references:gn.references.concat(_o.references).sort((qr,mt)=>{const _r=I(er,qr),Cn=I(er,mt);if(_r!==Cn)return pf(_r,Cn);const oi=a0e(qr),Qr=a0e(mt);return oi.start!==Qr.start?pf(oi.start,Qr.start):pf(oi.length,Qr.length)})}}}return li}function I(er,Jr){const li=Jr.kind===0?er.getSourceFile(Jr.fileName):Jr.node.getSourceFile();return er.getSourceFiles().indexOf(li)}function W(er,Jr,li,Ir,_o){ce.assert(!!Jr.valueDeclaration);const xt=Qo(Z5e(er,Ir,Jr),gn=>{if(gn.kind==="import"){const qr=gn.literal.parent;if(_I(qr)){const mt=uc(qr.parent,Wx);if(li&&!mt.qualifier)return}return _T(gn.literal)}else if(gn.kind==="implicit"){const qr=gn.literal.text!==_6&&k3(gn.referencingFile,mt=>mt.transformFlags&2?my(mt)||TW(mt)||KE(mt)?mt:void 0:"skip")||gn.referencingFile.statements[0]||gn.referencingFile;return _T(qr)}else return{kind:0,fileName:gn.referencingFile.fileName,textSpan:FR(gn.ref)}});if(Jr.declarations)for(const gn of Jr.declarations)switch(gn.kind){case 312:break;case 267:_o.has(gn.getSourceFile().fileName)&&xt.push(_T(gn.name));break;default:ce.assert(!!(Jr.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const Kn=Jr.exports.get("export=");if(Kn!=null&&Kn.declarations)for(const gn of Kn.declarations){const qr=gn.getSourceFile();if(_o.has(qr.fileName)){const mt=ys(gn)&&sa(gn.left)?gn.left.expression:Ly(gn)?ce.checkDefined(Wm(gn,95,qr)):o_(gn)||gn;xt.push(_T(mt))}}return xt.length?[{definition:{type:0,symbol:Jr},references:xt}]:Zn}function O(er){return er.kind===148&&KN(er.parent)&&er.parent.operator===148}function V(er,Jr,li){if(Q$(er.kind))return er.kind===116&&$m(er.parent)||er.kind===148&&!O(er)?void 0:kn(Jr,er.kind,li,er.kind===148?O:void 0);if(S9(er.parent)&&er.parent.name===er)return Mn(Jr,li);if(dW(er)&&nu(er.parent))return[{definition:{type:2,node:er},references:[_T(er)]}];if(bZ(er)){const Ir=yZ(er.parent,er.text);return Ir&&Wt(Ir.parent,Ir)}else if(Mge(er))return Wt(er.parent,er);if(KW(er))return al(er,Jr,li);if(er.kind===108)return _u(er)}function ee(er,Jr,li,Ir,_o,xt,Kn){const gn=Jr&&de(er,Jr,_o,!vc(Kn))||er,qr=Jr?jc(Jr,gn):7,mt=[],_r=new Be(li,Ir,Jr?oe(Jr):0,_o,xt,qr,Kn,mt),Cn=!vc(Kn)||!gn.declarations?void 0:lr(gn.declarations,Oy);if(Cn)Or(Cn.name,gn,Cn,_r.createSearch(Jr,er,void 0),_r,!0,!0);else if(Jr&&Jr.kind===90&&gn.escapedName==="default"&&gn.parent)Cr(Jr,gn,_r),Ve(Jr,gn,{exportingModuleSymbol:gn.parent,exportKind:1},_r);else{const oi=_r.createSearch(Jr,gn,void 0,{allSearchSymbols:Jr?mc(gn,Jr,_o,Kn.use===2,!!Kn.providePrefixAndSuffixTextForRename,!!Kn.implementations):[gn]});te(gn,_r,oi)}return mt}function te(er,Jr,li){const Ir=Dt(er);if(Ir)un(Ir,Ir.getSourceFile(),li,Jr,!(tl(Ir)&&!ni(Jr.sourceFiles,Ir)));else for(const _o of Jr.sourceFiles)Jr.cancellationToken.throwIfCancellationRequested(),ke(_o,li,Jr)}function oe(er){switch(er.kind){case 176:case 137:return 1;case 80:if(Jl(er.parent))return ce.assert(er.parent.name===er),2;default:return 0}}function de(er,Jr,li,Ir){const{parent:_o}=Jr;return Oy(_o)&&Ir?Xr(Jr,er,_o,li):Yr(er.declarations,xt=>{if(!xt.parent){if(er.flags&33554432)return;ce.fail(`Unexpected symbol at ${ce.formatSyntaxKind(Jr.kind)}: ${ce.formatSymbol(er)}`)}return e0(xt.parent)&&g6(xt.parent.parent)?li.getPropertyOfType(li.getTypeFromTypeNode(xt.parent.parent),er.name):void 0})}let ue;(er=>{er[er.None=0]="None",er[er.Constructor=1]="Constructor",er[er.Class=2]="Class"})(ue||(ue={}));function Ne(er){if(!(er.flags&33555968))return;const Jr=er.declarations&&lr(er.declarations,li=>!tl(li)&&!xp(li));return Jr&&Jr.symbol}class Be{constructor(Jr,li,Ir,_o,xt,Kn,gn,qr){this.sourceFiles=Jr,this.sourceFilesSet=li,this.specialSearchKind=Ir,this.checker=_o,this.cancellationToken=xt,this.searchMeaning=Kn,this.options=gn,this.result=qr,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=CF(),this.markSeenReExportRHS=CF(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Jr){return this.sourceFilesSet.has(Jr.fileName)}getImportSearches(Jr,li){return this.importTracker||(this.importTracker=e0e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Jr,li,this.options.use===2)}createSearch(Jr,li,Ir,_o={}){const{text:xt=HE(mp(i6(li)||Ne(li)||li)),allSearchSymbols:Kn=[li]}=_o,gn=ty(xt),qr=this.options.implementations&&Jr?sl(Jr,li,this.checker):void 0;return{symbol:li,comingFrom:Ir,text:xt,escapedText:gn,parents:qr,allSearchSymbols:Kn,includes:mt=>ni(Kn,mt)}}referenceAdder(Jr){const li=Bp(Jr);let Ir=this.symbolIdToReferences[li];return Ir||(Ir=this.symbolIdToReferences[li]=[],this.result.push({definition:{type:0,symbol:Jr},references:Ir})),(_o,xt)=>Ir.push(_T(_o,xt))}addStringOrCommentReference(Jr,li){this.result.push({definition:void 0,references:[{kind:0,fileName:Jr,textSpan:li}]})}markSearchedSymbols(Jr,li){const Ir=Im(Jr),_o=this.sourceFileToSeenSymbols[Ir]||(this.sourceFileToSeenSymbols[Ir]=new Set);let xt=!1;for(const Kn of li)xt=m2(_o,Bp(Kn))||xt;return xt}}function Ve(er,Jr,li,Ir){const{importSearches:_o,singleReferences:xt,indirectUsers:Kn}=Ir.getImportSearches(Jr,li);if(xt.length){const gn=Ir.referenceAdder(Jr);for(const qr of xt)Le(qr,Ir)&&gn(qr)}for(const[gn,qr]of _o)cr(gn.getSourceFile(),Ir.createSearch(gn,qr,1),Ir);if(Kn.length){let gn;switch(li.exportKind){case 0:gn=Ir.createSearch(er,Jr,1);break;case 1:gn=Ir.options.use===2?void 0:Ir.createSearch(er,Jr,1,{text:"default"});break}if(gn)for(const qr of Kn)ke(qr,gn,Ir)}}function pt(er,Jr,li,Ir,_o,xt,Kn,gn){const qr=e0e(er,new Set(er.map(oi=>oi.fileName)),Jr,li),{importSearches:mt,indirectUsers:_r,singleReferences:Cn}=qr(Ir,{exportKind:Kn?1:0,exportingModuleSymbol:_o},!1);for(const[oi]of mt)gn(oi);for(const oi of Cn)An(oi)&&Wx(oi.parent)&&gn(oi);for(const oi of _r)for(const Qr of lt(oi,Kn?"default":xt)){const co=Jr.getSymbolAtLocation(Qr),es=gt(co==null?void 0:co.declarations,Ui=>!!to(Ui,Ly));An(Qr)&&!l9(Qr.parent)&&(co===Ir||es)&&gn(Qr)}}t.eachExportReference=pt;function Le(er,Jr){return on(er,Jr)?Jr.options.use!==2?!0:An(er)?!(l9(er.parent)&&er.escapedText==="default"):!1:!1}function ht(er,Jr){if(er.declarations)for(const li of er.declarations){const Ir=li.getSourceFile();cr(Ir,Jr.createSearch(li,er,0),Jr,Jr.includesSourceFile(Ir))}}function ke(er,Jr,li){fDe(er).get(Jr.escapedText)!==void 0&&cr(er,Jr,li)}function _t(er,Jr){return OR(er.parent.parent)?Jr.getPropertySymbolOfDestructuringAssignment(er):void 0}function Dt(er){const{declarations:Jr,flags:li,parent:Ir,valueDeclaration:_o}=er;if(_o&&(_o.kind===218||_o.kind===231))return _o;if(!Jr)return;if(li&8196){const gn=lr(Jr,qr=>Ab(qr,8)||Mf(qr));return gn?e6(gn,263):void 0}if(Jr.some(Ij))return;const xt=Ir&&!(er.flags&262144);if(xt&&!(sT(Ir)&&!Ir.globalExports))return;let Kn;for(const gn of Jr){const qr=j3(gn);if(Kn&&Kn!==qr||!qr||qr.kind===312&&!h1(qr))return;if(Kn=qr,Dm(Kn)){let mt;for(;mt=cSe(Kn);)Kn=mt}}return xt?Kn.getSourceFile():Kn}function Ft(er,Jr,li,Ir=li){return it(er,Jr,li,()=>!0,Ir)||!1}t.isSymbolReferencedInFile=Ft;function it(er,Jr,li,Ir,_o=li){const xt=Eb(er.parent,er.parent.parent)?Dl(Jr.getSymbolsOfParameterPropertyDeclaration(er.parent,er.text)):Jr.getSymbolAtLocation(er);if(xt)for(const Kn of lt(li,xt.name,_o)){if(!An(Kn)||Kn===er||Kn.escapedText!==er.escapedText)continue;const gn=Jr.getSymbolAtLocation(Kn);if(gn===xt||Jr.getShorthandAssignmentValueSymbol(Kn.parent)===xt||Oy(Kn.parent)&&Xr(Kn,gn,Kn.parent,Jr)===xt){const qr=Ir(Kn);if(qr)return qr}}}t.eachSymbolReferenceInFile=it;function Ye(er,Jr){return gi(lt(Jr,er),_o=>!!O9(_o)).reduce((_o,xt)=>{const Kn=Ir(xt);return!gt(_o.declarationNames)||Kn===_o.depth?(_o.declarationNames.push(xt),_o.depth=Kn):Kn<_o.depth&&(_o.declarationNames=[xt],_o.depth=Kn),_o},{depth:1/0,declarationNames:[]}).declarationNames;function Ir(_o){let xt=0;for(;_o;)_o=j3(_o),xt++;return xt}}t.getTopMostDeclarationNamesInFile=Ye;function ut(er,Jr,li,Ir){if(!er.name||!An(er.name))return!1;const _o=ce.checkDefined(li.getSymbolAtLocation(er.name));for(const xt of Jr)for(const Kn of lt(xt,_o.name)){if(!An(Kn)||Kn===er.name||Kn.escapedText!==er.name.escapedText)continue;const gn=hZ(Kn),qr=el(gn.parent)&&gn.parent.expression===gn?gn.parent:void 0,mt=li.getSymbolAtLocation(Kn);if(mt&&li.getRootSymbols(mt).some(_r=>_r===_o)&&Ir(Kn,qr))return!0}return!1}t.someSignatureUsage=ut;function lt(er,Jr,li=er){return Qo(zt(er,Jr,li),Ir=>{const _o=Hx(er,Ir);return _o===er?void 0:_o})}function zt(er,Jr,li=er){const Ir=[];if(!Jr||!Jr.length)return Ir;const _o=er.text,xt=_o.length,Kn=Jr.length;let gn=_o.indexOf(Jr,li.pos);for(;gn>=0&&!(gn>li.end);){const qr=gn+Kn;(gn===0||!ak(_o.charCodeAt(gn-1),99))&&(qr===xt||!ak(_o.charCodeAt(qr),99))&&Ir.push(gn),gn=_o.indexOf(Jr,gn+Kn+1)}return Ir}function Wt(er,Jr){const li=er.getSourceFile(),Ir=Jr.text,_o=Qo(lt(li,Ir,er),xt=>xt===Jr||bZ(xt)&&yZ(xt,Ir)===Jr?_T(xt):void 0);return[{definition:{type:1,node:Jr},references:_o}]}function tt(er,Jr){switch(er.kind){case 81:if(Nu(er.parent))return!0;case 80:return er.text.length===Jr.length;case 15:case 11:{const li=er;return(Ej(li)||Lge(er)||EZ(er)||el(er.parent)&&cH(er.parent)&&er.parent.arguments[1]===er)&&li.text.length===Jr.length}case 9:return Ej(er)&&er.text.length===Jr.length;case 90:return Jr.length===7;default:return!1}}function Mn(er,Jr){const li=ea(er,Ir=>(Jr.throwIfCancellationRequested(),Qo(lt(Ir,"meta",Ir),_o=>{const xt=_o.parent;if(S9(xt))return _T(xt)})));return li.length?[{definition:{type:2,node:li[0].node},references:li}]:void 0}function kn(er,Jr,li,Ir){const _o=ea(er,xt=>(li.throwIfCancellationRequested(),Qo(lt(xt,Nd(Jr),xt),Kn=>{if(Kn.kind===Jr&&(!Ir||Ir(Kn)))return _T(Kn)})));return _o.length?[{definition:{type:2,node:_o[0].node},references:_o}]:void 0}function cr(er,Jr,li,Ir=!0){return li.cancellationToken.throwIfCancellationRequested(),un(er,er,Jr,li,Ir)}function un(er,Jr,li,Ir,_o){if(Ir.markSearchedSymbols(Jr,li.allSearchSymbols))for(const xt of zt(Jr,li.text,er))pn(Jr,xt,li,Ir,_o)}function on(er,Jr){return!!(z3(er)&Jr.searchMeaning)}function pn(er,Jr,li,Ir,_o){const xt=Hx(er,Jr);if(!tt(xt,li.text)){!Ir.options.implementations&&(Ir.options.findInStrings&&MR(er,Jr)||Ir.options.findInComments&&IAe(er,Jr))&&Ir.addStringOrCommentReference(er.fileName,nb(Jr,li.text.length));return}if(!on(xt,Ir))return;let Kn=Ir.checker.getSymbolAtLocation(xt);if(!Kn)return;const gn=xt.parent;if(oS(gn)&&gn.propertyName===xt)return;if(Oy(gn)){ce.assert(xt.kind===80),Or(xt,Kn,gn,li,Ir,_o);return}const qr=$a(li,Kn,xt,Ir);if(!qr){gr(Kn,li,Ir);return}switch(Ir.specialSearchKind){case 0:_o&&Cr(xt,qr,Ir);break;case 1:ei(xt,er,li,Ir);break;case 2:Gn(xt,li,Ir);break;default:ce.assertNever(Ir.specialSearchKind)}Rs(xt)&&ym(xt.parent)&&pR(xt.parent.parent.parent)&&(Kn=xt.parent.symbol,!Kn)||In(xt,Kn,li,Ir)}function Or(er,Jr,li,Ir,_o,xt,Kn){ce.assert(!Kn||!!_o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:gn,propertyName:qr,name:mt}=li,_r=gn.parent,Cn=Xr(er,Jr,li,_o.checker);if(!Kn&&!Ir.includes(Cn))return;if(qr?er===qr?(_r.moduleSpecifier||oi(),xt&&_o.options.use!==2&&_o.markSeenReExportRHS(mt)&&Cr(mt,ce.checkDefined(li.symbol),_o)):_o.markSeenReExportRHS(er)&&oi():_o.options.use===2&&mt.escapedText==="default"||oi(),!vc(_o.options)||Kn){const co=er.escapedText==="default"||li.name.escapedText==="default"?1:0,es=ce.checkDefined(li.symbol),Ui=t0e(es,co,_o.checker);Ui&&Ve(er,es,Ui,_o)}if(Ir.comingFrom!==1&&_r.moduleSpecifier&&!qr&&!vc(_o.options)){const Qr=_o.checker.getExportSpecifierLocalTargetSymbol(li);Qr&&ht(Qr,_o)}function oi(){xt&&Cr(er,Cn,_o)}}function Xr(er,Jr,li,Ir){return Ut(er,li)&&Ir.getExportSpecifierLocalTargetSymbol(li)||Jr}function Ut(er,Jr){const{parent:li,propertyName:Ir,name:_o}=Jr;return ce.assert(Ir===er||_o===er),Ir?Ir===er:!li.parent.moduleSpecifier}function In(er,Jr,li,Ir){const _o=n9e(er,Jr,Ir.checker,li.comingFrom===1);if(!_o)return;const{symbol:xt}=_o;_o.kind===0?vc(Ir.options)||ht(xt,Ir):Ve(er,xt,_o.exportInfo,Ir)}function gr({flags:er,valueDeclaration:Jr},li,Ir){const _o=Ir.checker.getShorthandAssignmentValueSymbol(Jr),xt=Jr&&o_(Jr);!(er&33554432)&&xt&&li.includes(_o)&&Cr(xt,_o,Ir)}function Cr(er,Jr,li){const{kind:Ir,symbol:_o}="kind"in Jr?Jr:{kind:void 0,symbol:Jr};if(li.options.use===2&&er.kind===90)return;const xt=li.referenceAdder(_o);li.options.implementations?ha(er,xt,li):xt(er,Ir)}function ei(er,Jr,li,Ir){zse(er)&&Cr(er,li.symbol,Ir);const _o=()=>Ir.referenceAdder(li.symbol);if(Jl(er.parent))ce.assert(er.kind===90||er.parent.name===er),Ur(li.symbol,Jr,_o());else{const xt=Aa(er);xt&&(ho(xt,_o()),Nc(xt,Ir))}}function Gn(er,Jr,li){Cr(er,Jr.symbol,li);const Ir=er.parent;if(li.options.use===2||!Jl(Ir))return;ce.assert(Ir.name===er);const _o=li.referenceAdder(Jr.symbol);for(const xt of Ir.members)c7(xt)&&e_(xt)&&xt.body&&xt.body.forEachChild(function Kn(gn){gn.kind===110?_o(gn):!S_(gn)&&!Jl(gn)&&gn.forEachChild(Kn)})}function Ur(er,Jr,li){const Ir=so(er);if(Ir&&Ir.declarations)for(const _o of Ir.declarations){const xt=Wm(_o,137,Jr);ce.assert(_o.kind===176&&!!xt),li(xt)}er.exports&&er.exports.forEach(_o=>{const xt=_o.valueDeclaration;if(xt&&xt.kind===174){const Kn=xt.body;Kn&&To(Kn,110,gn=>{zse(gn)&&li(gn)})}})}function so(er){return er.members&&er.members.get("__constructor")}function ho(er,Jr){const li=so(er.symbol);if(li&&li.declarations)for(const Ir of li.declarations){ce.assert(Ir.kind===176);const _o=Ir.body;_o&&To(_o,108,xt=>{Bse(xt)&&Jr(xt)})}}function di(er){return!!so(er.symbol)}function Nc(er,Jr){if(di(er))return;const li=er.symbol,Ir=Jr.createSearch(void 0,li,void 0);te(li,Jr,Ir)}function ha(er,Jr,li){if(vP(er)&&Xu(er.parent)){Jr(er);return}if(er.kind!==80)return;er.parent.kind===304&&Lo(er,li.checker,Jr);const Ir=ro(er);if(Ir){Jr(Ir);return}const _o=Kr(er,gn=>!nT(gn.parent)&&!Uu(gn.parent)&&!l7(gn.parent)),xt=_o.parent;if(eY(xt)&&xt.type===_o&&li.markSeenContainingTypeReference(xt))if(NN(xt))Kn(xt.initializer);else if(S_(xt)&&xt.body){const gn=xt.body;gn.kind===241?HM(gn,qr=>{qr.expression&&Kn(qr.expression)}):Kn(gn)}else _7(xt)&&Kn(xt.expression);function Kn(gn){Gs(gn)&&Jr(gn)}}function ro(er){return An(er)||sa(er)?ro(er.parent):WT(er)?to(er.parent.parent,dA(Jl,Kp)):void 0}function Gs(er){switch(er.kind){case 217:return Gs(er.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Oc(er,Jr,li,Ir){if(er===Jr)return!0;const _o=Bp(er)+","+Bp(Jr),xt=li.get(_o);if(xt!==void 0)return xt;li.set(_o,!1);const Kn=!!er.declarations&&er.declarations.some(gn=>uG(gn).some(qr=>{const mt=Ir.getTypeAtLocation(qr);return!!mt&&!!mt.symbol&&Oc(mt.symbol,Jr,li,Ir)}));return li.set(_o,Kn),Kn}function _u(er){let Jr=nG(er,!1);if(!Jr)return;let li=32;switch(Jr.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:li&=n6(Jr),Jr=Jr.parent;break;default:return}const Ir=Jr.getSourceFile(),_o=Qo(lt(Ir,"super",Jr),xt=>{if(xt.kind!==108)return;const Kn=nG(xt,!1);return Kn&&e_(Kn)===!!li&&Kn.parent.symbol===Jr.symbol?_T(xt):void 0});return[{definition:{type:0,symbol:Jr.symbol},references:_o}]}function Ku(er){return er.kind===80&&er.parent.kind===169&&er.parent.name===er}function al(er,Jr,li){let Ir=Q1(er,!1,!1),_o=32;switch(Ir.kind){case 174:case 173:if(q2(Ir)){_o&=n6(Ir),Ir=Ir.parent;break}case 172:case 171:case 176:case 177:case 178:_o&=n6(Ir),Ir=Ir.parent;break;case 312:if(Wv(Ir)||Ku(er))return;case 262:case 218:break;default:return}const xt=ea(Ir.kind===312?Jr:[Ir.getSourceFile()],gn=>(li.throwIfCancellationRequested(),lt(gn,"this",tl(Ir)?gn:Ir).filter(qr=>{if(!KW(qr))return!1;const mt=Q1(qr,!1,!1);if(!YD(mt))return!1;switch(Ir.kind){case 218:case 262:return Ir.symbol===mt.symbol;case 174:case 173:return q2(Ir)&&Ir.symbol===mt.symbol;case 231:case 263:case 210:return mt.parent&&YD(mt.parent)&&Ir.symbol===mt.parent.symbol&&e_(mt)===!!_o;case 312:return mt.kind===312&&!Wv(mt)&&!Ku(qr)}}))).map(gn=>_T(gn));return[{definition:{type:3,node:Yr(xt,gn=>Pu(gn.node.parent)?gn.node:void 0)||er},references:xt}]}function Rr(er,Jr,li,Ir){const _o=Hse(er,li),xt=ea(Jr,Kn=>(Ir.throwIfCancellationRequested(),Qo(lt(Kn,er.text),gn=>{if(sp(gn)&&gn.text===er.text)if(_o){const qr=Hse(gn,li);if(_o!==li.getStringType()&&_o===qr)return _T(gn,2)}else return Sd(gn)&&!mk(gn,Kn)?void 0:_T(gn,2)})));return[{definition:{type:4,node:er},references:xt}]}function mc(er,Jr,li,Ir,_o,xt){const Kn=[];return Ea(er,Jr,li,Ir,!(Ir&&_o),(gn,qr,mt)=>{mt&&ta(er)!==ta(mt)&&(mt=void 0),Kn.push(mt||qr||gn)},()=>!xt),Kn}function Ea(er,Jr,li,Ir,_o,xt,Kn){const gn=cle(Jr);if(gn){const co=li.getShorthandAssignmentValueSymbol(Jr.parent);if(co&&Ir)return xt(co,void 0,void 0,3);const es=li.getContextualType(gn.parent),Ui=es&&Yr(cye(gn,li,es,!0),wt=>oi(wt,4));if(Ui)return Ui;const xu=_t(Jr,li),We=xu&&xt(xu,void 0,void 0,4);if(We)return We;const Re=co&&xt(co,void 0,void 0,3);if(Re)return Re}const qr=y(Jr,er,li);if(qr){const co=xt(qr,void 0,void 0,1);if(co)return co}const mt=oi(er);if(mt)return mt;if(er.valueDeclaration&&Eb(er.valueDeclaration,er.valueDeclaration.parent)){const co=li.getSymbolsOfParameterPropertyDeclaration(uc(er.valueDeclaration,Pu),er.name);return ce.assert(co.length===2&&!!(co[0].flags&1)&&!!(co[1].flags&4)),oi(er.flags&1?co[1]:co[0])}const _r=Vm(er,281);if(!Ir||_r&&!_r.propertyName){const co=_r&&li.getExportSpecifierLocalTargetSymbol(_r);if(co){const es=xt(co,void 0,void 0,1);if(es)return es}}if(!Ir){let co;return _o?co=Ij(Jr.parent)?rce(li,Jr.parent):void 0:co=Qr(er,li),co&&oi(co,4)}if(ce.assert(Ir),_o){const co=Qr(er,li);return co&&oi(co,4)}function oi(co,es){return Yr(li.getRootSymbols(co),Ui=>xt(co,Ui,void 0,es)||(Ui.parent&&Ui.parent.flags&96&&Kn(Ui)?Fi(Ui.parent,Ui.name,li,xu=>xt(co,Ui,xu,es)):void 0))}function Qr(co,es){const Ui=Vm(co,208);if(Ui&&Ij(Ui))return rce(es,Ui)}}function Fi(er,Jr,li,Ir){const _o=new Map;return xt(er);function xt(Kn){if(!(!(Kn.flags&96)||!y0(_o,Bp(Kn))))return Yr(Kn.declarations,gn=>Yr(uG(gn),qr=>{const mt=li.getTypeAtLocation(qr),_r=mt&&mt.symbol&&li.getPropertyOfType(mt,Jr);return mt&&_r&&(Yr(li.getRootSymbols(_r),Ir)||xt(mt.symbol))}))}}function ta(er){return er.valueDeclaration?!!(tS(er.valueDeclaration)&32):!1}function $a(er,Jr,li,Ir){const{checker:_o}=Ir;return Ea(Jr,li,_o,!1,Ir.options.use!==2||!!Ir.options.providePrefixAndSuffixTextForRename,(xt,Kn,gn,qr)=>(gn&&ta(Jr)!==ta(gn)&&(gn=void 0),er.includes(gn||Kn||xt)?{symbol:Kn&&!(I_(xt)&6)?Kn:xt,kind:qr}:void 0),xt=>!(er.parents&&!er.parents.some(Kn=>Oc(xt.parent,Kn,Ir.inheritsFromCache,_o))))}function jc(er,Jr){let li=z3(er);const{declarations:Ir}=Jr;if(Ir){let _o;do{_o=li;for(const xt of Ir){const Kn=G$(xt);Kn&li&&(li|=Kn)}}while(li!==_o)}return li}t.getIntersectingMeaningFromDeclarations=jc;function Xu(er){return er.flags&33554432?!(Kp(er)||mg(er)):hP(er)?NN(er):J_(er)?!!er.body:Jl(er)||sde(er)}function Lo(er,Jr,li){const Ir=Jr.getSymbolAtLocation(er),_o=Jr.getShorthandAssignmentValueSymbol(Ir.valueDeclaration);if(_o)for(const xt of _o.getDeclarations())G$(xt)&1&&li(xt)}t.getReferenceEntriesForShorthandPropertyAssignment=Lo;function To(er,Jr,li){B_(er,Ir=>{Ir.kind===Jr&&li(Ir),To(Ir,Jr,li)})}function Aa(er){return Zv(hZ(er).parent)}function sl(er,Jr,li){const Ir=G3(er)?er.parent:void 0,_o=Ir&&li.getTypeAtLocation(Ir.expression),xt=Qo(_o&&(_o.isUnionOrIntersection()?_o.types:_o.symbol===Jr.parent?void 0:[_o]),Kn=>Kn.symbol&&Kn.symbol.flags&96?Kn.symbol:void 0);return xt.length===0?void 0:xt}function vc(er){return er.use===2&&er.providePrefixAndSuffixTextForRename}})(OP||(OP={}))}}),Wf={};Oe(Wf,{Core:()=>OP,DefinitionKind:()=>c0e,EntryKind:()=>l0e,ExportKind:()=>r0e,FindReferencesUse:()=>u0e,ImportExport:()=>i0e,createImportTracker:()=>e0e,findModuleReferences:()=>Z5e,findReferenceOrRenameEntries:()=>wdt,findReferencedSymbols:()=>kdt,getContextNode:()=>AI,getExportInfo:()=>t0e,getImplementationsAtPosition:()=>Ndt,getImportOrExportSymbol:()=>n9e,getReferenceEntriesForNode:()=>o9e,getTextSpanOfEntry:()=>a0e,isContextWithStartAndEndNode:()=>r9e,isDeclarationOfSymbol:()=>l9e,isWriteAccessForReference:()=>s0e,nodeEntry:()=>_T,toContextSpan:()=>o0e,toHighlightSpan:()=>Bdt,toReferenceEntry:()=>c9e,toRenameLocation:()=>Mdt});var u9e=G({"src/services/_namespaces/ts.FindAllReferences.ts"(){Ddt(),Gdt()}});function f9e(t,r,s,l,m){var y,T;const D=d9e(r,s,t),I=D&&[Qdt(D.reference.fileName,D.fileName,D.unverified)]||Zn;if(D!=null&&D.file)return I;const W=Hx(r,s);if(W===r)return;const{parent:O}=W,V=t.getTypeChecker();if(W.kind===164||An(W)&&UY(O)&&O.tagName===W)return Vdt(V,W)||Zn;if(bZ(W)){const Ne=yZ(W.parent,W.text);return Ne?[f0e(V,Ne,"label",W.text,void 0)]:void 0}if(W.kind===107){const Ne=Kr(W.parent,Be=>nu(Be)?"quit":J_(Be));return Ne?[lV(V,Ne)]:void 0}if(W.kind===135){const Ne=Kr(W,Ve=>J_(Ve));return Ne&>(Ne.modifiers,Ve=>Ve.kind===134)?[lV(V,Ne)]:void 0}if(W.kind===127){const Ne=Kr(W,Ve=>J_(Ve));return Ne&&Ne.asteriskToken?[lV(V,Ne)]:void 0}if(dW(W)&&nu(W.parent)){const Ne=W.parent.parent,{symbol:Be,failedAliasResolution:Ve}=nte(Ne,V,m),pt=gi(Ne.members,nu),Le=Be?V.symbolToString(Be,Ne):"",ht=W.getSourceFile();return Vn(pt,ke=>{let{pos:_t}=Db(ke);return _t=ep(ht.text,_t),f0e(V,ke,"constructor","static {}",Le,!1,Ve,{start:_t,length:6})})}let{symbol:ee,failedAliasResolution:te}=nte(W,V,m),oe=W;if(l&&te){const Ne=Ot([W,...(ee==null?void 0:ee.declarations)||Zn],Ve=>Kr(Ve,ZTe)),Be=Ne&&VL(Ne);Be&&({symbol:ee,failedAliasResolution:te}=nte(Be,V,m),oe=Be)}if(!ee&&FZ(oe)){const Ne=(T=(y=r.resolvedModules)==null?void 0:y.get(oe.text,kA(r,oe)))==null?void 0:T.resolvedModule;if(Ne)return[{name:oe.text,fileName:Ne.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:nb(0,0),failedAliasResolution:te,isAmbient:iT(Ne.resolvedFileName),unverified:oe!==W}]}if(!ee)return Hi(I,Kdt(W,V));if(l&&jr(ee.declarations,Ne=>Ne.getSourceFile().fileName===r.fileName))return;const de=ept(V,W);if(de&&!(Y1(W.parent)&&tpt(de))){const Ne=lV(V,de,te);if(V.getRootSymbols(ee).some(Be=>jdt(Be,de)))return[Ne];{const Be=x4(V,ee,W,te,de)||Zn;return W.kind===108?[Ne,...Be]:[...Be,Ne]}}if(W.parent.kind===304){const Ne=V.getShorthandAssignmentValueSymbol(ee.valueDeclaration),Be=Ne!=null&&Ne.declarations?Ne.declarations.map(Ve=>jF(Ve,V,Ne,W,!1,te)):Zn;return Hi(Be,_9e(V,W))}if(fy(W)&&ym(O)&&E1(O.parent)&&W===(O.propertyName||O.name)){const Ne=Cj(W),Be=V.getTypeAtLocation(O.parent);return Ne===void 0?Zn:ea(Be.isUnion()?Be.types:[Be],Ve=>{const pt=Ve.getProperty(Ne);return pt&&x4(V,pt,W)})}const ue=_9e(V,W);return Hi(I,ue.length?ue:x4(V,ee,W,te))}function jdt(t,r){var s;return t===r.symbol||t===r.symbol.parent||wy(r.parent)||!ib(r.parent)&&t===((s=to(r.parent,YD))==null?void 0:s.symbol)}function _9e(t,r){const s=cle(r);if(s){const l=s&&t.getContextualType(s.parent);if(l)return ea(cye(s,t,l,!1),m=>x4(t,m,r))}return Zn}function Vdt(t,r){const s=Kr(r,Mv);if(!(s&&s.name))return;const l=Kr(s,Jl);if(!l)return;const m=hA(l);if(!m)return;const y=_g(m.expression),T=B0(y)?y.symbol:t.getSymbolAtLocation(y);if(!T)return;const D=lf(g7(s.name)),I=Ny(s)?t.getPropertyOfType(t.getTypeOfSymbol(T),D):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(T),D);if(I)return x4(t,I,r)}function d9e(t,r,s){var l,m,y,T;const D=A4(t.referencedFiles,r);if(D){const O=s.getSourceFileFromReference(t,D);return O&&{reference:D,fileName:O.fileName,file:O,unverified:!1}}const I=A4(t.typeReferenceDirectives,r);if(I){const O=(l=s.getResolvedTypeReferenceDirectives().get(I.fileName,I.resolutionMode||t.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective,V=O&&s.getSourceFile(O.resolvedFileName);return V&&{reference:I,fileName:V.fileName,file:V,unverified:!1}}const W=A4(t.libReferenceDirectives,r);if(W){const O=s.getLibFileFromReference(W);return O&&{reference:W,fileName:O.fileName,file:O,unverified:!1}}if((m=t.resolvedModules)!=null&&m.size()){const O=qse(t,r);if(FZ(O)&&tb(O.text)&&t.resolvedModules.has(O.text,kA(t,O))){const V=(T=(y=t.resolvedModules.get(O.text,kA(t,O)))==null?void 0:y.resolvedModule)==null?void 0:T.resolvedFileName,ee=V||gm(qc(t.fileName),O.text);return{file:s.getSourceFile(ee),fileName:ee,reference:{pos:O.getStart(),end:O.getEnd(),fileName:O.text},unverified:!V}}}}function Udt(t,r){const s=r.symbol.name;if(!d0e.has(s))return!1;const l=t.resolveName(s,void 0,788968,!1);return!!l&&l===r.target.symbol}function p9e(t,r){if(!r.aliasSymbol)return!1;const s=r.aliasSymbol.name;if(!d0e.has(s))return!1;const l=t.resolveName(s,void 0,788968,!1);return!!l&&l===r.aliasSymbol}function Hdt(t,r,s,l){var m,y;if(ji(r)&4&&Udt(t,r))return GF(t.getTypeArguments(r)[0],t,s,l);if(p9e(t,r)&&r.aliasTypeArguments)return GF(r.aliasTypeArguments[0],t,s,l);if(ji(r)&32&&r.target&&p9e(t,r.target)){const T=(y=(m=r.aliasSymbol)==null?void 0:m.declarations)==null?void 0:y[0];if(T&&mg(T)&&x2(T.type)&&T.type.typeArguments)return GF(t.getTypeAtLocation(T.type.typeArguments[0]),t,s,l)}return[]}function Jdt(t,r,s){const l=Hx(r,s);if(l===r)return;if(S9(l.parent)&&l.parent.name===l)return GF(t.getTypeAtLocation(l.parent),t,l.parent,!1);const{symbol:m,failedAliasResolution:y}=nte(l,t,!1);if(!m)return;const T=t.getTypeOfSymbolAtLocation(m,l),D=$dt(m,T,t),I=D&&GF(D,t,l,y),[W,O]=I&&I.length!==0?[D,I]:[T,GF(T,t,l,y)];return O.length?[...Hdt(t,W,l,y),...O]:!(m.flags&111551)&&m.flags&788968?x4(t,dg(m,t),l,y):void 0}function GF(t,r,s,l){return ea(t.isUnion()&&!(t.flags&32)?t.types:[t],m=>m.symbol&&x4(r,m.symbol,s,l))}function $dt(t,r,s){if(r.symbol===t||t.valueDeclaration&&r.symbol&&ff(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){const l=r.getCallSignatures();if(l.length===1)return s.getReturnTypeOfSignature(Dl(l))}}function qdt(t,r,s){const l=f9e(t,r,s);if(!l||l.length===0)return;const m=A4(r.referencedFiles,s)||A4(r.typeReferenceDirectives,s)||A4(r.libReferenceDirectives,s);if(m)return{definitions:l,textSpan:FR(m)};const y=Hx(r,s),T=nb(y.getStart(),y.getWidth());return{definitions:l,textSpan:T}}function Kdt(t,r){return Qo(r.getIndexInfosAtLocation(t),s=>s.declaration&&lV(r,s.declaration))}function nte(t,r,s){const l=r.getSymbolAtLocation(t);let m=!1;if(l!=null&&l.declarations&&l.flags&2097152&&!s&&Xdt(t,l.declarations[0])){const y=r.getAliasedSymbol(l);if(y.declarations)return{symbol:y};m=!0}return{symbol:l,failedAliasResolution:m}}function Xdt(t,r){return t.kind!==80?!1:t.parent===r?!0:r.kind!==274}function Ydt(t){if(!oG(t))return!1;const r=Kr(t,s=>wy(s)?!0:oG(s)?!1:"quit");return!!r&&Qy(r)===5}function x4(t,r,s,l,m){const y=gi(r.declarations,V=>V!==m),T=gi(y,V=>!Ydt(V)),D=gt(T)?T:y;return I()||W()||Vn(D,V=>jF(V,t,r,s,!1,l));function I(){if(r.flags&32&&!(r.flags&19)&&(zse(s)||s.kind===137)){const V=lr(y,Jl)||ce.fail("Expected declaration to have at least one class-like declaration");return O(V.members,!0)}}function W(){return j$(s)||SZ(s)?O(y,!1):void 0}function O(V,ee){if(!V)return;const te=V.filter(ee?pg:S_),oe=te.filter(de=>!!de.body);return te.length?oe.length!==0?oe.map(de=>jF(de,t,r,s)):[jF(yl(te),t,r,s,!1,l)]:void 0}}function jF(t,r,s,l,m,y){const T=r.symbolToString(s),D=D4.getSymbolKind(r,s,l),I=s.parent?r.symbolToString(s.parent,l):"";return f0e(r,t,D,T,I,m,y)}function f0e(t,r,s,l,m,y,T,D){const I=r.getSourceFile();if(!D){const W=o_(r)||r;D=gE(W,I)}return{fileName:I.fileName,textSpan:D,kind:s,name:l,containerKind:void 0,containerName:m,...Wf.toContextSpan(D,I,Wf.getContextNode(r)),isLocal:!_0e(t,r),isAmbient:!!(r.flags&33554432),unverified:y,failedAliasResolution:T}}function _0e(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(NN(r.parent)&&r.parent.initializer===r)return _0e(t,r.parent);switch(r.kind){case 172:case 177:case 178:case 174:if(Ab(r,8))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return _0e(t,r.parent);default:return!1}}function lV(t,r,s){return jF(r,t,r.symbol,r,!1,s)}function A4(t,r){return lr(t,s=>Bz(s,r))}function Qdt(t,r,s){return{fileName:r,textSpan:R0(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function Zdt(t){const r=Kr(t,l=>!G3(l)),s=r==null?void 0:r.parent;return s&&ib(s)&&T7(s)===r?s:void 0}function ept(t,r){const s=Zdt(r),l=s&&t.getResolvedSignature(s);return to(l&&l.declaration,m=>S_(m)&&!Z2(m))}function tpt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var d0e,npt=G({"src/services/goToDefinition.ts"(){El(),d0e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),C4={};Oe(C4,{createDefinitionInfo:()=>jF,findReferenceInPosition:()=>A4,getDefinitionAndBoundSpan:()=>qdt,getDefinitionAtPosition:()=>f9e,getReferenceAtPosition:()=>d9e,getTypeDefinitionAtPosition:()=>Jdt});var rpt=G({"src/services/_namespaces/ts.GoToDefinition.ts"(){npt()}});function ipt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function opt(t){return t.includeInlayParameterNameHints==="literals"}function vQe(t){return t.interactiveInlayHints===!0}function apt(t){const{file:r,program:s,span:l,cancellationToken:m,preferences:y}=t,T=r.text,D=s.getCompilerOptions(),I=s.getTypeChecker(),W=[];return O(r),W;function O(lt){if(!(!lt||lt.getFullWidth()===0)){switch(lt.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:m.throwIfCancellationRequested()}if(Yy(l,lt.pos,lt.getFullWidth())&&!(Uu(lt)&&!WT(lt)))return y.includeInlayVariableTypeHints&&ff(lt)||y.includeInlayPropertyDeclarationTypeHints&&Os(lt)?Ne(lt):y.includeInlayEnumMemberValueHints&&Qb(lt)?de(lt):ipt(y)&&(el(lt)||Ac(lt))?Be(lt):(y.includeInlayFunctionParameterTypeHints&&J_(lt)&&YH(lt)&&_t(lt),y.includeInlayFunctionLikeReturnTypeHints&&V(lt)&&ht(lt)),B_(lt,O)}}function V(lt){return ph(lt)||Dm(lt)||b0(lt)||em(lt)||tm(lt)}function ee(lt,zt,Wt,tt){let Mn=`${tt?"...":""}${lt}`,kn;vQe(y)?(kn=[ut(Mn,zt),{text:":"}],Mn=""):Mn+=":",W.push({text:Mn,position:Wt,kind:"Parameter",whitespaceAfter:!0,displayParts:kn})}function te(lt,zt){W.push({text:`: ${lt.length>yke?lt.substr(0,yke-3)+"...":lt}`,position:zt,kind:"Type",whitespaceBefore:!0})}function oe(lt,zt){W.push({text:`= ${lt}`,position:zt,kind:"Enum",whitespaceBefore:!0})}function de(lt){if(lt.initializer)return;const zt=I.getConstantValue(lt);zt!==void 0&&oe(zt.toString(),lt.end)}function ue(lt){return lt.symbol&<.symbol.flags&1536}function Ne(lt){if(!lt.initializer||ld(lt.name)||ff(lt)&&!Ye(lt)||Kb(lt))return;const Wt=I.getTypeAtLocation(lt);if(ue(Wt))return;const tt=Ft(Wt);if(tt){if(y.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pN(lt.name.getText(),tt))return;te(tt,lt.name.end)}}function Be(lt){const zt=lt.arguments;if(!zt||!zt.length)return;const Wt=[],tt=I.getResolvedSignatureForSignatureHelp(lt,Wt);if(!tt||!Wt.length)return;let Mn=0;for(const kn of zt){const cr=_g(kn);if(opt(y)&&!Le(cr))continue;let un=0;if(ex(cr)){const pn=I.getTypeAtLocation(cr.expression);if(I.isTupleType(pn)){const{elementFlags:Or,fixedLength:Xr}=pn.target;if(Xr===0)continue;const Ut=Ho(Or,gr=>!(gr&1));(Ut<0?Xr:Ut)>0&&(un=Ut<0?Xr:Ut)}}const on=I.getParameterIdentifierInfoAtPosition(tt,Mn);if(Mn=Mn+(un||1),on){const{parameter:pn,parameterName:Or,isRestParameter:Xr}=on;if(!(y.includeInlayParameterNameHintsWhenArgumentMatchesName||!Ve(cr,Or))&&!Xr)continue;const In=lf(Or);if(pt(cr,In))continue;ee(In,pn,kn.getStart(),Xr)}}}function Ve(lt,zt){return An(lt)?lt.text===zt:sa(lt)?lt.name.text===zt:!1}function pt(lt,zt){if(!rE(zt,D.target,$9(r.scriptKind)))return!1;const Wt=CS(T,lt.pos);if(!(Wt!=null&&Wt.length))return!1;const tt=bQe(zt);return gt(Wt,Mn=>tt.test(T.substring(Mn.pos,Mn.end)))}function Le(lt){switch(lt.kind){case 224:{const zt=lt.operand;return fP(zt)||An(zt)&&d3(zt.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const zt=lt.escapedText;return it(zt)||d3(zt)}}return fP(lt)}function ht(lt){if(ph(lt)&&!Wm(lt,21,r)||bA(lt)||!lt.body)return;const Wt=I.getSignatureFromDeclaration(lt);if(!Wt)return;const tt=I.getReturnTypeOfSignature(Wt);if(ue(tt))return;const Mn=Ft(tt);Mn&&te(Mn,ke(lt))}function ke(lt){const zt=Wm(lt,22,r);return zt?zt.end:lt.parameters.end}function _t(lt){const zt=I.getSignatureFromDeclaration(lt);if(zt)for(let Wt=0;Wt{const Mn=I.typeToTypeNode(lt,void 0,71286784);ce.assertIsDefined(Mn,"should always get typenode"),Wt.writeNode(4,Mn,r,tt)})}function it(lt){return lt==="undefined"}function Ye(lt){if((Y8(lt)||ff(lt)&&h7(lt))&<.initializer){const zt=_g(lt.initializer);return!(Le(zt)||Ac(zt)||Wd(zt)||_7(zt))}return!0}function ut(lt,zt){const Wt=zt.getSourceFile();return{text:lt,span:gE(zt,Wt),file:Wt.fileName}}}var yke,bQe,vke=G({"src/services/inlayHints.ts"(){El(),yke=30,bQe=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),m9e={};Oe(m9e,{provideInlayHints:()=>apt});var spt=G({"src/services/_namespaces/ts.InlayHints.ts"(){vke()}});function cpt(t,r){const s=[];return WZ(t,l=>{for(const m of upt(l)){const y=Gx(m)&&m.tags&&lr(m.tags,D=>D.kind===334&&(D.tagName.escapedText==="inheritDoc"||D.tagName.escapedText==="inheritdoc"));if(m.comment===void 0&&!y||Gx(m)&&l.kind!==353&&l.kind!==345&&m.tags&&m.tags.some(D=>D.kind===353||D.kind===345)&&!m.tags.some(D=>D.kind===348||D.kind===349))continue;let T=m.comment?uV(m.comment,r):[];y&&y.comment&&(T=T.concat(uV(y.comment,r))),ni(s,T,lpt)||s.push(T)}}),Gf(Zi(s,[lS()]))}function lpt(t,r){return sf(t,r,(s,l)=>s.kind===l.kind&&s.text===l.text)}function upt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];default:return k7(t)}}function Bq(t,r){const s=[];return WZ(t,l=>{const m=EN(l);if(!(m.some(y=>y.kind===353||y.kind===345)&&!m.some(y=>y.kind===348||y.kind===349)))for(const y of m)s.push({name:y.tagName.text,text:fpt(y,r)})}),s}function uV(t,r){return typeof t=="string"?[RA(t)]:ea(t,s=>s.kind===328?[RA(s.text)]:rq(s,r))}function fpt(t,r){const{comment:s,kind:l}=t,m=_pt(l);switch(l){case 356:const D=t.typeExpression;return D?y(D):s===void 0?void 0:uV(s,r);case 336:return y(t.class);case 335:return y(t.class);case 352:const I=t,W=[];if(I.constraint&&W.push(RA(I.constraint.getText())),Nt(I.typeParameters)){Nt(W)&&W.push($h());const V=I.typeParameters[I.typeParameters.length-1];Ot(I.typeParameters,ee=>{W.push(m(ee.getText())),V!==ee&&W.push(cT(28),$h())})}return s&&W.push($h(),...uV(s,r)),W;case 351:case 357:return y(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:O}=t;return O?y(O):s===void 0?void 0:uV(s,r);default:return s===void 0?void 0:uV(s,r)}function y(D){return T(D.getText())}function T(D){return s?D.match(/^https?$/)?[RA(D),...uV(s,r)]:[m(D),$h(),...uV(s,r)]:[RA(D)]}}function _pt(t){switch(t){case 348:return oce;case 355:return Kge;case 352:return yE;case 353:case 345:return PAe;default:return RA}}function dpt(){return y9e||(y9e=Vn(bke,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function TQe(){return v9e||(v9e=Vn(bke,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:ow.SortText.LocationPriority})))}function SQe(t){return{name:t,kind:"",kindModifiers:"",displayParts:[RA(t)],documentation:Zn,tags:void 0,codeActions:void 0}}function ppt(t){if(!An(t.name))return Zn;const r=t.name.text,s=t.parent,l=s.parent;return S_(l)?Qo(l.parameters,m=>{if(!An(m.name))return;const y=m.name.text;if(!(s.tags.some(T=>T!==t&&AA(T)&&An(T.name)&&T.name.escapedText===y)||r!==void 0&&!xf(y,r)))return{name:y,kind:"parameter",kindModifiers:"",sortText:ow.SortText.LocationPriority}}):[]}function mpt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[RA(t)],documentation:Zn,tags:void 0,codeActions:void 0}}function gpt(t,r,s,l){const m=bf(r,s),y=Kr(m,Gx);if(y&&(y.comment!==void 0||Nt(y.tags)))return;const T=m.getStart(r);if(!y&&T0;if(de&&!Be){const Ve=ue+t+te+" * ",pt=T===s?t+te:"";return{newText:Ve+t+de+te+Ne+pt,caretOffset:Ve.length}}return{newText:ue+Ne,caretOffset:3}}function hpt(t,r){const{text:s}=t,l=wA(r,t);let m=l;for(;m<=r&&HD(s.charCodeAt(m));m++);return s.slice(l,m)}function ypt(t,r,s,l){return t.map(({name:m,dotDotDotToken:y},T)=>{const D=m.kind===80?m.text:"param"+T;return`${s} * @param ${r?y?"{...any} ":"{any} ":""}${D}${l}`}).join("")}function vpt(t,r){return`${t} * @returns${r}`}function g9e(t,r){return oie(t,s=>rte(s,r))}function rte(t,r){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:p0e(s,r)};case 303:return rte(t.initializer,r);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const m=t;return m.type&&Z2(m.type)?{commentOwner:t,parameters:m.type.parameters,hasReturn:p0e(m.type,r)}:{commentOwner:t}}case 243:{const y=t.declarationList.declarations,T=y.length===1&&y[0].initializer?h9e(y[0].initializer):void 0;return T?{commentOwner:t,parameters:T.parameters,hasReturn:p0e(T,r)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return rte(t.expression,r);case 226:{const m=t;return Qy(m)===0?"quit":S_(m.right)?{commentOwner:t,parameters:m.right.parameters,hasReturn:p0e(m.right,r)}:{commentOwner:t}}case 172:const l=t.initializer;if(l&&(Dm(l)||ph(l)))return{commentOwner:t,parameters:l.parameters,hasReturn:p0e(l,r)}}}function p0e(t,r){return!!(r!=null&&r.generateReturnInDocTemplate)&&(Z2(t)||ph(t)&&Nr(t.body)||J_(t)&&t.body&&E_(t.body)&&!!HM(t.body,s=>s))}function h9e(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return lr(t.members,pg)}}var bke,y9e,v9e,EQe,nO=G({"src/services/jsDoc.ts"(){El(),bke=["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"],EQe=SQe}}),VF={};Oe(VF,{getDocCommentTemplateAtPosition:()=>gpt,getJSDocParameterNameCompletionDetails:()=>mpt,getJSDocParameterNameCompletions:()=>ppt,getJSDocTagCompletionDetails:()=>SQe,getJSDocTagCompletions:()=>TQe,getJSDocTagNameCompletionDetails:()=>EQe,getJSDocTagNameCompletions:()=>dpt,getJsDocCommentsFromDeclarations:()=>cpt,getJsDocTagsFromDeclarations:()=>Bq});var bpt=G({"src/services/_namespaces/ts.JsDoc.ts"(){nO()}});function Tke(t,r,s,l,m,y){const T=Hs.ChangeTracker.fromContext({host:s,formatContext:r,preferences:m}),D=y==="SortAndCombine"||y==="All",I=D,W=y==="RemoveUnused"||y==="All",O=Ske(t,t.statements.filter(Fv)),V=Ipt(m,D?()=>DQe(O,m)===2:void 0),ee=oe=>(W&&(oe=Spt(oe,t,l)),I&&(oe=AQe(oe,V,t)),D&&(oe=nh(oe,(de,ue)=>A9e(de,ue,V))),oe);O.forEach(oe=>te(oe,ee)),y!=="RemoveUnused"&&PQe(t).forEach(oe=>te(oe,de=>zq(de,V)));for(const oe of t.statements.filter(Ov)){if(!oe.body)continue;if(Ske(t,oe.body.statements.filter(Fv)).forEach(ue=>te(ue,ee)),y!=="RemoveUnused"){const ue=oe.body.statements.filter(mh);te(ue,Ne=>zq(Ne,V))}}return T.getChanges();function te(oe,de){if(Nt(oe)===0)return;Sa(oe[0],1024);const ue=I?BD(oe,Ve=>g0e(Ve.moduleSpecifier)):[oe],Ne=D?nh(ue,(Ve,pt)=>h0e(Ve[0].moduleSpecifier,pt[0].moduleSpecifier,V)):ue,Be=ea(Ne,Ve=>g0e(Ve[0].moduleSpecifier)||Ve[0].moduleSpecifier===void 0?de(Ve):Ve);if(Be.length===0)T.deleteNodes(t,oe,{leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Include},!0);else{const Ve={leadingTriviaOption:Hs.LeadingTriviaOption.Exclude,trailingTriviaOption:Hs.TrailingTriviaOption.Include,suffix:NP(s,r.options)};T.replaceNodeWithNodes(t,oe[0],Be,Ve);const pt=T.nodeHasTrailingComment(t,oe[0],Ve);T.deleteNodes(t,oe.slice(1),{trailingTriviaOption:Hs.TrailingTriviaOption.Include},pt)}}}function Ske(t,r){const s=MM(t.languageVersion,!1,t.languageVariant),l=[];let m=0;for(const y of r)l[m]&&Tpt(t,y,s)&&m++,l[m]||(l[m]=[]),l[m].push(y);return l}function Tpt(t,r,s){const l=r.getFullStart(),m=r.getStart();s.setText(t.text,l,m-l);let y=0;for(;s.getTokenStart()=2))return!0;return!1}function Spt(t,r,s){const l=s.getTypeChecker(),m=s.getCompilerOptions(),y=l.getJsxNamespace(r),T=l.getJsxFragmentFactory(r),D=!!(r.transformFlags&2),I=[];for(const O of t){const{importClause:V,moduleSpecifier:ee}=O;if(!V){I.push(O);continue}let{name:te,namedBindings:oe}=V;if(te&&!W(te)&&(te=void 0),oe)if(YL(oe))W(oe.name)||(oe=void 0);else{const de=oe.elements.filter(ue=>W(ue.name));de.lengthWp(l)&&l.text===s)}function g0e(t){return t!==void 0&&sp(t)?t.text:void 0}function xQe(t,r,s){const l=Ake(r);return AQe(t,l,s)}function AQe(t,r,s){if(t.length===0)return t;const{importWithoutClause:l,typeOnlyImports:m,regularImports:y}=Ept(t),T=[];l&&T.push(l);for(const D of[y,m]){const I=D===m,{defaultImports:W,namespaceImports:O,namedImports:V}=D;if(!I&&W.length===1&&O.length===1&&V.length===0){const pt=W[0];T.push(ite(pt,pt.importClause.name,O[0].importClause.namedBindings));continue}const ee=nh(O,(pt,Le)=>r(pt.importClause.namedBindings.name.text,Le.importClause.namedBindings.name.text));for(const pt of ee)T.push(ite(pt,void 0,pt.importClause.namedBindings));const te=pp(W),oe=pp(V),de=te??oe;if(!de)continue;let ue;const Ne=[];if(W.length===1)ue=W[0].importClause.name;else for(const pt of W)Ne.push(be.createImportSpecifier(!1,be.createIdentifier("default"),pt.importClause.name));Ne.push(...Cpt(V));const Be=be.createNodeArray(Eke(Ne,r),oe==null?void 0:oe.importClause.namedBindings.elements.hasTrailingComma),Ve=Be.length===0?ue?void 0:be.createNamedImports(Zn):oe?be.updateNamedImports(oe.importClause.namedBindings,Be):be.createNamedImports(Be);s&&Ve&&(oe!=null&&oe.importClause.namedBindings)&&!mk(oe.importClause.namedBindings,s)&&Sa(Ve,2),I&&ue&&Ve?(T.push(ite(de,ue,void 0)),T.push(ite(oe??de,void 0,Ve))):T.push(ite(de,ue,Ve))}return T}function Ept(t){let r;const s={defaultImports:[],namespaceImports:[],namedImports:[]},l={defaultImports:[],namespaceImports:[],namedImports:[]};for(const m of t){if(m.importClause===void 0){r=r||m;continue}const y=m.importClause.isTypeOnly?s:l,{name:T,namedBindings:D}=m.importClause;T&&y.defaultImports.push(m),D&&(YL(D)?y.namespaceImports.push(m):y.namedImports.push(m))}return{importWithoutClause:r,typeOnlyImports:s,regularImports:l}}function b9e(t,r){const s=Ake(r);return zq(t,s)}function zq(t,r){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:l,typeOnlyExports:m}=T(t),y=[];s&&y.push(s);for(const D of[l,m]){if(D.length===0)continue;const I=[];I.push(...ea(D,V=>V.exportClause&&G0(V.exportClause)?V.exportClause.elements:Zn));const W=Eke(I,r),O=D[0];y.push(be.updateExportDeclaration(O,O.modifiers,O.isTypeOnly,O.exportClause&&(G0(O.exportClause)?be.updateNamedExports(O.exportClause,W):be.updateNamespaceExport(O.exportClause,O.exportClause.name)),O.moduleSpecifier,O.assertClause))}return y;function T(D){let I;const W=[],O=[];for(const V of D)V.exportClause===void 0?I=I||V:V.isTypeOnly?O.push(V):W.push(V);return{exportWithoutClause:I,namedExports:W,typeOnlyExports:O}}}function ite(t,r,s){return be.updateImportDeclaration(t,t.modifiers,be.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,s),t.moduleSpecifier,t.assertClause)}function Eke(t,r){return nh(t,(s,l)=>T9e(s,l,r))}function T9e(t,r,s){return Z0(t.isTypeOnly,r.isTypeOnly)||s(t.name.text,r.name.text)}function S9e(t,r,s){const l=Ake(!!s);return h0e(t,r,l)}function h0e(t,r,s){const l=t===void 0?void 0:g0e(t),m=r===void 0?void 0:g0e(r);return Z0(l===void 0,m===void 0)||Z0(tb(l),tb(m))||s(l,m)}function E9e(t){var r;switch(t.kind){case 271:return(r=to(t.moduleReference,j0))==null?void 0:r.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function CQe(t,r){return DQe(Ske(t,t.statements.filter(Fv)),r)}function DQe(t,r){const s=jq(r,!1),l=jq(r,!0);let m=3,y=!1;for(const T of t){if(T.length>1){const I=Qp(T,W=>{var O;return((O=to(W.moduleSpecifier,Wp))==null?void 0:O.text)??""},s,l);if(I&&(m&=I,y=!0),!m)return m}const D=lr(T,I=>{var W,O;return((O=to((W=I.importClause)==null?void 0:W.namedBindings,y6))==null?void 0:O.elements.length)>1});if(D){const I=C9e(D.importClause.namedBindings.elements,r);if(I&&(m&=I,y=!0),!m)return m}if(m!==3)return m}return y?0:m}function xpt(t,r){const s=jq(r,!1),l=jq(r,!0);return Qp(t,m=>g0e(E9e(m))||"",s,l)}function Apt(t,r,s){const l=ZS(t,r,Of,(m,y)=>A9e(m,y,s));return l<0?~l:l}function x9e(t,r,s){const l=ZS(t,r,Of,(m,y)=>T9e(m,y,s));return l<0?~l:l}function A9e(t,r,s){return h0e(E9e(t),E9e(r),s)||IQe(t,r)}function IQe(t,r){return pf(kQe(t),kQe(r))}function kQe(t){var r;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((r=t.importClause.namedBindings)==null?void 0:r.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Cpt(t){return ea(t,r=>Vn(xke(r),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?be.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function xke(t){var r;return(r=t.importClause)!=null&&r.namedBindings&&y6(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function Ake(t){return t?rP:Fp}function Dpt(t,r){const s=Gq(r),l=r.organizeImportsCaseFirst??!1,m=r.organizeImportsNumericCollation??!1,y=r.organizeImportsAccentCollation??!0,T=t?y?"accent":"base":y?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:l||"false",sensitivity:T,numeric:m}).compare}function Gq(t){let r=t.organizeImportsLocale;r==="auto"&&(r=dTe()),r===void 0&&(r="en");const s=Intl.Collator.supportedLocalesOf(r);return s.length?s[0]:"en"}function jq(t,r){return(t.organizeImportsCollation??"ordinal")==="unicode"?Dpt(r,t):Ake(r)}function Ipt(t,r){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(r==null?void 0:r())??!1;return jq(t,s)}function PQe(t){const r=[],s=t.statements,l=Nt(s);let m=0,y=0;for(;mSke(t,T))}var Cke,C9e,lD=G({"src/services/organizeImports.ts"(){El(),Cke=class{has([t,r]){return this._lastPreferences!==r||!this._cache?!1:this._cache.has(t)}get([t,r]){if(!(this._lastPreferences!==r||!this._cache))return this._cache.get(t)}set([t,r],s){this._lastPreferences!==r&&(this._lastPreferences=r,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},C9e=JO((t,r)=>{if(!_A(t,(m,y)=>Z0(m.isTypeOnly,y.isTypeOnly)))return 0;const s=jq(r,!1),l=jq(r,!0);return Qp(t,m=>m.name.text,s,l)},new Cke)}}),CI={};Oe(CI,{coalesceExports:()=>b9e,coalesceImports:()=>xQe,compareImportOrExportSpecifiers:()=>T9e,compareImportsOrRequireStatements:()=>A9e,compareModuleSpecifiers:()=>S9e,detectImportDeclarationSorting:()=>xpt,detectImportSpecifierSorting:()=>C9e,detectSorting:()=>CQe,getImportDeclarationInsertionIndex:()=>Apt,getImportSpecifierInsertionIndex:()=>x9e,getOrganizeImportsComparer:()=>jq,organizeImports:()=>Tke});var kpt=G({"src/services/_namespaces/ts.OrganizeImports.ts"(){lD()}});function Ppt(t,r){const s=[];return Npt(t,r,s),NQe(t,s),s.sort((l,m)=>l.textSpan.start-m.textSpan.start)}function Npt(t,r,s){let l=40,m=0;const y=[...t.statements,t.endOfFileToken],T=y.length;for(;m1&&l.push(y0e(y,T,"comment"))}}function pue(t,r,s,l){S1(t)||Ike(t.pos,r,s,l)}function y0e(t,r,s){return fV(R0(t,r),s)}function wpt(t,r){switch(t.kind){case 241:if(S_(t.parent))return kke(t.parent,t,r);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return O(t.parent);case 258:const te=t.parent;if(te.tryBlock===t)return O(t.parent);if(te.finallyBlock===t){const oe=Wm(te,98,r);if(oe)return O(oe)}default:return fV(gE(t,r),"code")}case 268:return O(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return O(t);case 189:return O(t,!1,!m6(t.parent),23);case 296:case 297:return V(t.statements);case 210:return W(t);case 209:return W(t,23);case 284:return y(t);case 288:return T(t);case 285:case 286:return D(t.attributes);case 228:case 15:return I(t);case 207:return O(t,!1,!ym(t.parent),23);case 219:return m(t);case 213:return l(t);case 217:return ee(t);case 275:case 279:case 300:return s(t)}function s(te){if(!te.elements.length)return;const oe=Wm(te,19,r),de=Wm(te,20,r);if(!(!oe||!de||mv(oe.pos,de.pos,r)))return rO(oe,de,te,r,!1,!1)}function l(te){if(!te.arguments.length)return;const oe=Wm(te,21,r),de=Wm(te,22,r);if(!(!oe||!de||mv(oe.pos,de.pos,r)))return rO(oe,de,te,r,!1,!0)}function m(te){if(E_(te.body)||sb(te.body)||mv(te.body.getFullStart(),te.body.getEnd(),r))return;const oe=R0(te.body.getFullStart(),te.body.getEnd());return fV(oe,"code",gE(te))}function y(te){const oe=R0(te.openingElement.getStart(r),te.closingElement.getEnd()),de=te.openingElement.tagName.getText(r),ue="<"+de+">...";return fV(oe,"code",oe,!1,ue)}function T(te){const oe=R0(te.openingFragment.getStart(r),te.closingFragment.getEnd());return fV(oe,"code",oe,!1,"<>...")}function D(te){if(te.properties.length!==0)return y0e(te.getStart(r),te.getEnd(),"code")}function I(te){if(!(te.kind===15&&te.text.length===0))return y0e(te.getStart(r),te.getEnd(),"code")}function W(te,oe=19){return O(te,!1,!Ch(te.parent)&&!el(te.parent),oe)}function O(te,oe=!1,de=!0,ue=19,Ne=ue===19?20:24){const Be=Wm(t,ue,r),Ve=Wm(t,Ne,r);return Be&&Ve&&rO(Be,Ve,te,r,oe,de)}function V(te){return te.length?fV(FR(te),"code"):void 0}function ee(te){if(mv(te.getStart(),te.getEnd(),r))return;const oe=R0(te.getStart(),te.getEnd());return fV(oe,"code",gE(te))}}function kke(t,r,s){const l=wQe(t,r,s),m=Wm(r,20,s);return l&&m&&rO(l,m,t,s,t.kind!==219)}function rO(t,r,s,l,m=!1,y=!0){const T=R0(y?t.getFullStart():t.getStart(l),r.getEnd());return fV(T,"code",gE(s,l),m)}function fV(t,r,s=t,l=!1,m="..."){return{textSpan:t,kind:r,hintSpan:s,bannerText:m,autoCollapse:l}}function wQe(t,r,s){if(ASe(t.parameters,s)){const l=Wm(t,21,s);if(l)return l}return Wm(r,19,s)}var RQe,Pke=G({"src/services/outliningElementsCollector.ts"(){El(),RQe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),D9e={};Oe(D9e,{collectElements:()=>Ppt});var Rpt=G({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Pke()}});function Mpt(t,r,s,l){const m=CAe(Hx(r,s));if(FQe(m)){const y=Lpt(m,t.getTypeChecker(),r,t,l);if(y)return y}return Nke(w.You_cannot_rename_this_element)}function Lpt(t,r,s,l,m){const y=r.getSymbolAtLocation(t);if(!y){if(sp(t)){const ee=Hse(t,r);if(ee&&(ee.flags&128||ee.flags&1048576&&jr(ee.types,te=>!!(te.flags&128))))return mue(t.text,t.text,"string","",t,s)}else if(Vse(t)){const ee=Yv(t);return mue(ee,ee,"label","",t,s)}return}const{declarations:T}=y;if(!T||T.length===0)return;if(T.some(ee=>Opt(l,ee)))return Nke(w.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(An(t)&&t.escapedText==="default"&&y.parent&&y.parent.flags&1536)return;if(sp(t)&&L9(t))return m.allowRenameOfImportPath?I9e(t,s,y):void 0;const D=MQe(s,y,r,m);if(D)return Nke(D);const I=D4.getSymbolKind(r,y,t),W=wAe(t)||Qv(t)&&t.parent.kind===167?HE(aC(t)):void 0,O=W||r.symbolToString(y),V=W||r.getFullyQualifiedName(y);return mue(O,V,I,D4.getSymbolModifiers(r,y),t,s)}function Opt(t,r){const s=r.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Pg(s.fileName,".d.ts")}function MQe(t,r,s,l){if(!l.providePrefixAndSuffixTextForRename&&r.flags&2097152){const T=r.declarations&&lr(r.declarations,D=>oS(D));T&&!T.propertyName&&(r=s.getAliasedSymbol(r))}const{declarations:m}=r;if(!m)return;const y=LQe(t.path);if(y===void 0)return gt(m,T=>mce(T.getSourceFile().path))?w.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const T of m){const D=LQe(T.getSourceFile().path);if(D){const I=Math.min(y.length,D.length);for(let W=0;W<=I;W++)if(Fp(y[W],D[W])!==0)return w.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function LQe(t){const r=g0(t),s=r.lastIndexOf("node_modules");if(s!==-1)return r.slice(0,s+2)}function I9e(t,r,s){if(!tb(t.text))return Nke(w.You_cannot_rename_a_module_via_a_global_import);const l=s.declarations&&lr(s.declarations,tl);if(!l)return;const m=h_(t.text,"/index")||h_(t.text,"/index.js")?void 0:K5(wg(l.fileName),"/index"),y=m===void 0?l.fileName:m,T=m===void 0?"module":"directory",D=t.text.lastIndexOf("/")+1,I=nb(t.getStart(r)+1+D,t.text.length-D);return{canRename:!0,fileToRename:y,kind:T,displayName:y,fullDisplayName:y,kindModifiers:"",triggerSpan:I}}function mue(t,r,s,l,m,y){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:r,kindModifiers:l,triggerSpan:OQe(m,y)}}function Nke(t){return{canRename:!1,localizedErrorMessage:fs(t)}}function OQe(t,r){let s=t.getStart(r),l=t.getWidth(r);return sp(t)&&(s+=1,l-=2),nb(s,l)}function FQe(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Ej(t);default:return!1}}var v0e=G({"src/services/rename.ts"(){El()}}),wke={};Oe(wke,{getRenameInfo:()=>Mpt,nodeIsEligibleForRename:()=>FQe});var Fpt=G({"src/services/_namespaces/ts.Rename.ts"(){v0e()}});function Wpt(t,r,s,l,m){const y=t.getTypeChecker(),T=Bge(r,s);if(!T)return;const D=!!l&&l.kind==="characterTyped";if(D&&(MR(r,s,T)||LR(r,s)))return;const I=!!l&&l.kind==="invoked",W=Kpt(T,s,r,y,I);if(!W)return;m.throwIfCancellationRequested();const O=Bpt(W,y,r,T,D);return m.throwIfCancellationRequested(),O?y.runWithCancellationToken(m,V=>O.kind===0?JQe(O.candidates,O.resolvedSignature,W,r,V):Xpt(O.symbol,W,r,V)):v1(r)?WQe(W,t,m):void 0}function Bpt({invocation:t,argumentCount:r},s,l,m,y){switch(t.kind){case 0:{if(y&&!zpt(m,t.node,l))return;const T=[],D=s.getResolvedSignatureForSignatureHelp(t.node,T,r);return T.length===0?void 0:{kind:0,candidates:T,resolvedSignature:D}}case 1:{const{called:T}=t;if(y&&!BQe(m,l,An(T)?T.parent:T))return;const D=jge(T,r,s);if(D.length!==0)return{kind:0,candidates:D,resolvedSignature:Dl(D)};const I=s.getSymbolAtLocation(T);return I&&{kind:1,symbol:I}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return ce.assertNever(t)}}function zpt(t,r,s){if(!IN(r))return!1;const l=r.getChildren(s);switch(t.kind){case 21:return ni(l,t);case 28:{const m=xj(t);return!!m&&ni(l,m)}case 30:return BQe(t,s,r.expression);default:return!1}}function WQe(t,r,s){if(t.invocation.kind===2)return;const l=w9e(t.invocation),m=sa(l)?l.name.text:void 0,y=r.getTypeChecker();return m===void 0?void 0:Yr(r.getSourceFiles(),T=>Yr(T.getNamedDeclarations().get(m),D=>{const I=D.symbol&&y.getTypeOfSymbolAtLocation(D.symbol,D),W=I&&I.getCallSignatures();if(W&&W.length)return y.runWithCancellationToken(s,O=>JQe(W,W[0],t,T,O,!0))}))}function BQe(t,r,s){const l=t.getFullStart();let m=t.parent;for(;m;){const y=T0(l,r,m,!0);if(y)return sS(s,y);m=m.parent}return ce.fail("Could not find preceding token")}function zQe(t,r,s){const l=VQe(t,r,s);return!l||l.isTypeParameterList||l.invocation.kind!==0?void 0:{invocation:l.invocation.node,argumentCount:l.argumentCount,argumentIndex:l.argumentIndex}}function GQe(t,r,s){const l=jQe(t,s);if(!l)return;const{list:m,argumentIndex:y}=l,T=Jpt(m,MR(s,r,t));y!==0&&ce.assertLessThan(y,T);const D=$pt(m,s);return{list:m,argumentIndex:y,argumentCount:T,argumentsSpan:D}}function jQe(t,r){if(t.kind===30||t.kind===21)return{list:HQe(t.parent,t,r),argumentIndex:0};{const s=xj(t);return s&&{list:s,argumentIndex:Hpt(s,t)}}}function VQe(t,r,s){const{parent:l}=t;if(IN(l)){const m=l,y=GQe(t,r,s);if(!y)return;const{list:T,argumentIndex:D,argumentCount:I,argumentsSpan:W}=y;return{isTypeParameterList:!!l.typeArguments&&l.typeArguments.pos===T.pos,invocation:{kind:0,node:m},argumentsSpan:W,argumentIndex:D,argumentCount:I}}else{if(Sd(t)&&Hm(l))return K$(t,r,s)?N9e(l,0,s):void 0;if(SR(t)&&l.parent.kind===215){const m=l,y=m.parent;ce.assert(m.kind===228);const T=K$(t,r,s)?0:1;return N9e(y,T,s)}else if(VY(l)&&Hm(l.parent.parent)){const m=l,y=l.parent.parent;if(K7(t)&&!K$(t,r,s))return;const T=m.parent.templateSpans.indexOf(m),D=P9e(T,t,r,s);return N9e(y,D,s)}else if(Y1(l)){const m=l.attributes.pos,y=ep(s.text,l.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:l},argumentsSpan:nb(m,y-m),argumentIndex:0,argumentCount:1}}else{const m=V3(t,s);if(m){const{called:y,nTypeArguments:T}=m,D={kind:1,called:y},I=R0(y.getStart(s),t.end);return{isTypeParameterList:!0,invocation:D,argumentsSpan:I,argumentIndex:T,argumentCount:T+1}}return}}}function UQe(t,r,s,l){return Gpt(t,r,s,l)||VQe(t,r,s)}function Rke(t){return ys(t.parent)?Rke(t.parent):t}function k9e(t){return ys(t.left)?k9e(t.left)+1:2}function Gpt(t,r,s,l){const m=jpt(t);if(m===void 0)return;const y=Vpt(m,s,r,l);if(y===void 0)return;const{contextualType:T,argumentIndex:D,argumentCount:I,argumentsSpan:W}=y,O=T.getNonNullableType(),V=O.symbol;if(V===void 0)return;const ee=Yf(O.getCallSignatures());return ee===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:ee,node:t,symbol:Upt(V)},argumentsSpan:W,argumentIndex:D,argumentCount:I}}function jpt(t){switch(t.kind){case 21:case 28:return t;default:return Kr(t.parent,r=>Pu(r)?!0:ym(r)||E1(r)||vW(r)?!1:"quit")}}function Vpt(t,r,s,l){const{parent:m}=t;switch(m.kind){case 217:case 174:case 218:case 219:const y=GQe(t,s,r);if(!y)return;const{argumentIndex:T,argumentCount:D,argumentsSpan:I}=y,W=em(m)?l.getContextualTypeForObjectLiteralElement(m):l.getContextualType(m);return W&&{contextualType:W,argumentIndex:T,argumentCount:D,argumentsSpan:I};case 226:{const O=Rke(m),V=l.getContextualType(O),ee=t.kind===21?0:k9e(m)-1,te=k9e(O);return V&&{contextualType:V,argumentIndex:ee,argumentCount:te,argumentsSpan:gE(m)}}default:return}}function Upt(t){return t.name==="__type"&&Yr(t.declarations,r=>{var s;return Z2(r)?(s=to(r.parent,YD))==null?void 0:s.symbol:void 0})||t}function Hpt(t,r){let s=0;for(const l of t.getChildren()){if(l===r)break;l.kind!==28&&s++}return s}function Jpt(t,r){const s=t.getChildren();let l=dp(s,m=>m.kind!==28);return!r&&s.length>0&&yl(s).kind===28&&l++,l}function P9e(t,r,s,l){return ce.assert(s>=r.getStart(),"Assumed 'position' could not occur before node."),O8(r)?K$(r,s,l)?0:t+2:t+1}function N9e(t,r,s){const l=Sd(t.template)?1:t.template.templateSpans.length+1;return r!==0&&ce.assertLessThan(r,l),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:qpt(t,s),argumentIndex:r,argumentCount:l}}function $pt(t,r){const s=t.getFullStart(),l=ep(r.text,t.getEnd(),!1);return nb(s,l-s)}function qpt(t,r){const s=t.template,l=s.getStart();let m=s.getEnd();return s.kind===228&&yl(s.templateSpans).literal.getFullWidth()===0&&(m=ep(r.text,m,!1)),nb(l,m-l)}function Kpt(t,r,s,l,m){for(let y=t;!tl(y)&&(m||!E_(y));y=y.parent){ce.assert(sS(y.parent,y),"Not a subspan",()=>`Child: ${ce.formatSyntaxKind(y.kind)}, parent: ${ce.formatSyntaxKind(y.parent.kind)}`);const T=UQe(y,r,s,l);if(T)return T}}function HQe(t,r,s){const l=t.getChildren(s),m=l.indexOf(r);return ce.assert(m>=0&&l.length>m+1),l[m+1]}function w9e(t){return t.kind===0?T7(t.node):t.called}function R9e(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function JQe(t,r,{isTypeParameterList:s,argumentCount:l,argumentsSpan:m,invocation:y,argumentIndex:T},D,I,W){var O;const V=R9e(y),ee=y.kind===2?y.symbol:I.getSymbolAtLocation(w9e(y))||W&&((O=r.declaration)==null?void 0:O.symbol),te=ee?ZW(I,ee,W?D:void 0,void 0):Zn,oe=Vn(t,Ve=>Qpt(Ve,te,s,I,V,D));T!==0&&ce.assertLessThan(T,l);let de=0,ue=0;for(let Ve=0;Ve1)){let Le=0;for(const ht of pt){if(ht.isVariadic||ht.parameters.length>=l){de=ue+Le;break}Le++}}ue+=pt.length}ce.assert(de!==-1);const Ne={items:Lm(oe,Of),applicableSpan:m,selectedItemIndex:de,argumentIndex:T,argumentCount:l},Be=Ne.items[de];if(Be.isVariadic){const Ve=Ho(Be.parameters,pt=>!!pt.isRest);-1ote(V,s,l,m,T)),I=t.getDocumentationComment(s),W=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...y,cT(30)],suffixDisplayParts:[cT(32)],separatorDisplayParts:M9e,parameters:D,documentation:I,tags:W}}function Qpt(t,r,s,l,m,y){const T=(s?emt:tmt)(t,l,m,y);return Vn(T,({isVariadic:D,parameters:I,prefix:W,suffix:O})=>{const V=[...r,...W],ee=[...O,...Zpt(t,m,l)],te=t.getDocumentationComment(l),oe=t.getJsDocTags();return{isVariadic:D,prefixDisplayParts:V,suffixDisplayParts:ee,separatorDisplayParts:M9e,parameters:I,documentation:te,tags:oe}})}function Zpt(t,r,s){return w6(l=>{l.writePunctuation(":"),l.writeSpace(" ");const m=s.getTypePredicateOfSignature(t);m?s.writeTypePredicate(m,r,void 0,l):s.writeType(s.getReturnTypeOfSignature(t),r,void 0,l)})}function emt(t,r,s,l){const m=(t.target||t).typeParameters,y=GW(),T=(m||Zn).map(I=>ote(I,r,s,l,y)),D=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,s,Vq)]:[];return r.getExpandedParameters(t).map(I=>{const W=be.createNodeArray([...D,...Vn(I,V=>r.symbolToParameterDeclaration(V,s,Vq))]),O=w6(V=>{y.writeList(2576,W,l,V)});return{isVariadic:!1,parameters:T,prefix:[cT(30)],suffix:[cT(32),...O]}})}function tmt(t,r,s,l){const m=GW(),y=w6(I=>{if(t.typeParameters&&t.typeParameters.length){const W=be.createNodeArray(t.typeParameters.map(O=>r.typeParameterToDeclaration(O,s,Vq)));m.writeList(53776,W,l,I)}}),T=r.getExpandedParameters(t),D=r.hasEffectiveRestParameter(t)?T.length===1?I=>!0:I=>{var W;return!!(I.length&&((W=to(I[I.length-1],uk))==null?void 0:W.links.checkFlags)&32768)}:I=>!1;return T.map(I=>({isVariadic:D(I),parameters:I.map(W=>$Qe(W,r,s,l,m)),prefix:[...y,cT(21)],suffix:[cT(22)]}))}function $Qe(t,r,s,l,m){const y=w6(I=>{const W=r.symbolToParameterDeclaration(t,s,Vq);m.writeNode(4,W,l,I)}),T=r.isOptionalParameter(t.valueDeclaration),D=uk(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:y,isOptional:T,isRest:D}}function ote(t,r,s,l,m){const y=w6(T=>{const D=r.typeParameterToDeclaration(t,s,Vq);m.writeNode(4,D,l,T)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:y,isOptional:!1,isRest:!1}}var Vq,M9e,gue=G({"src/services/signatureHelp.ts"(){El(),Vq=70246400,M9e=[cT(28),$h()]}}),b0e={};Oe(b0e,{getArgumentInfoForCompletions:()=>zQe,getSignatureHelpItems:()=>Wpt});var nmt=G({"src/services/_namespaces/ts.SignatureHelp.ts"(){gue()}});function rmt(t,r){var s,l;let m={textSpan:R0(r.getFullStart(),r.getEnd())},y=r;e:for(;;){const I=hue(y);if(!I.length)break;for(let W=0;Wt)break e;const te=Vb(Nx(r.text,V.end));if(te&&te.kind===2&&D(te.pos,te.end),imt(r,t,V)){if($Te(V)&&J_(y)&&!mv(V.getStart(r),V.getEnd(),r)&&T(V.getStart(r),V.getEnd()),E_(V)||VY(V)||SR(V)||K7(V)||O&&SR(O)||My(V)&&Dh(y)||GJ(V)&&My(y)||ff(V)&&GJ(y)&&I.length===1||pI(V)||Ak(V)||EW(V)){y=V;break}if(VY(y)&&ee&&JX(ee)){const Ne=V.getFullStart()-2,Be=ee.getStart()+1;T(Ne,Be)}const oe=GJ(V)&&omt(O)&&amt(ee)&&!mv(O.getStart(),ee.getStart(),r);let de=oe?O.getEnd():V.getStart();const ue=oe?ee.getStart():qQe(r,V);if(g1(V)&&((s=V.jsDoc)!=null&&s.length)&&T(Dl(V.jsDoc).getStart(),ue),GJ(V)){const Ne=V.getChildren()[0];Ne&&g1(Ne)&&((l=Ne.jsDoc)!=null&&l.length)&&Ne.getStart()!==V.pos&&(de=Math.min(de,Dl(Ne.jsDoc).getStart()))}T(de,ue),(Wp(V)||m9(V))&&T(de+1,ue-1),y=V;break}if(W===I.length-1)break e}}return m;function T(I,W){if(I!==W){const O=R0(I,W);(!m||!IF(O,m.textSpan)&&NTe(O,t))&&(m={textSpan:O,...m&&{parent:m}})}}function D(I,W){T(I,W);let O=I;for(;r.text.charCodeAt(O)===47;)O++;T(O,W)}}function imt(t,r,s){return ce.assert(s.pos<=r),rD===t.readonlyToken||D.kind===148||D===t.questionToken||D.kind===58),T=_V(y,({kind:D})=>D===23||D===168||D===24);return[s,yue(dV(T,({kind:D})=>D===59)),m]}if(Np(t)){const s=_V(t.getChildren(),T=>T===t.name||ni(t.modifiers,T)),l=((r=s[0])==null?void 0:r.kind)===327?s[0]:void 0,m=l?s.slice(1):s,y=dV(m,({kind:T})=>T===59);return l?[l,yue(y)]:y}if(Pu(t)){const s=_V(t.getChildren(),m=>m===t.dotDotDotToken||m===t.name),l=_V(s,m=>m===s[0]||m===t.questionToken);return dV(l,({kind:m})=>m===64)}return ym(t)?dV(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function _V(t,r){const s=[];let l;for(const m of t)r(m)?(l=l||[],l.push(m)):(l&&(s.push(yue(l)),l=void 0),s.push(m));return l&&s.push(yue(l)),s}function dV(t,r,s=!0){if(t.length<2)return t;const l=Ho(t,r);if(l===-1)return t;const m=t.slice(0,l),y=t[l],T=yl(t),D=s&&T.kind===27,I=t.slice(l+1,D?t.length-1:void 0),W=uN([m.length?yue(m):void 0,y,I.length?yue(I):void 0]);return D?W.concat(T):W}function yue(t){return ce.assertGreaterThanOrEqual(t.length,1),T1(DP.createSyntaxList(t),t[0].pos,yl(t).end)}function omt(t){const r=t&&t.kind;return r===19||r===23||r===21||r===286}function amt(t){const r=t&&t.kind;return r===20||r===24||r===22||r===287}function qQe(t,r){switch(r.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(r.getStart());default:return r.getEnd()}}var KQe,Mke=G({"src/services/smartSelection.ts"(){El(),KQe=dA(Fv,kh)}}),L9e={};Oe(L9e,{getSmartSelectionRange:()=>rmt});var XQe=G({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Mke()}});function O9e(t,r,s){const l=F9e(t,r,s);if(l!=="")return l;const m=r3(r);return m&32?Vm(r,231)?"local class":"class":m&384?"enum":m&524288?"type":m&64?"interface":m&262144?"type parameter":m&8?"enum member":m&2097152?"alias":m&1536?"module":l}function F9e(t,r,s){const l=t.getRootSymbols(r);if(l.length===1&&Dl(l).flags&8192&&t.getTypeOfSymbolAtLocation(r,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(s.kind===110&&Nr(s)||kS(s))return"parameter";const m=r3(r);if(m&3)return QW(r)?"parameter":r.valueDeclaration&&h7(r.valueDeclaration)?"const":r.valueDeclaration&&T9(r.valueDeclaration)?"using":r.valueDeclaration&&$2(r.valueDeclaration)?"await using":Ot(r.declarations,eSe)?"let":Lke(r)?"local var":"var";if(m&16)return Lke(r)?"local function":"function";if(m&32768)return"getter";if(m&65536)return"setter";if(m&8192)return"method";if(m&16384)return"constructor";if(m&131072)return"index";if(m&4){if(m&33554432&&r.links.checkFlags&6){const y=Ot(t.getRootSymbols(r),T=>{if(T.getFlags()&98311)return"property"});return y||(t.getTypeOfSymbolAtLocation(r,s).getCallSignatures().length?"method":"property")}return"property"}return""}function YQe(t){if(t.declarations&&t.declarations.length){const[r,...s]=t.declarations,l=Nt(s)&&XZ(r)&>(s,y=>!XZ(y))?8192:0,m=$$(r,l);if(m)return m.split(",")}return[]}function QQe(t,r){if(!r)return"";const s=new Set(YQe(r));if(r.flags&2097152){const l=t.getAliasedSymbol(r);l!==r&&Ot(YQe(l),m=>{s.add(m)})}return r.flags&16777216&&s.add("optional"),s.size>0?oc(s.values()).join(","):""}function ZQe(t,r,s,l,m,y,T,D){var I;const W=[];let O=[],V=[];const ee=r3(r);let te=T&1?F9e(t,r,m):"",oe=!1;const de=m.kind===110&&Ade(m)||kS(m);let ue,Ne,Be=!1;if(m.kind===110&&!de)return{displayParts:[hE(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(te!==""||ee&32||ee&2097152){if(te==="getter"||te==="setter"){const lt=lr(r.declarations,zt=>zt.name===m);if(lt)switch(lt.kind){case 177:te="getter";break;case 178:te="setter";break;case 172:te="accessor";break;default:ce.assertNever(lt)}else te="property"}let Ye;if(y??(y=de?t.getTypeAtLocation(m):t.getTypeOfSymbolAtLocation(r,m)),m.parent&&m.parent.kind===211){const lt=m.parent.name;(lt===m||lt&<.getFullWidth()===0)&&(m=m.parent)}let ut;if(IN(m)?ut=m:(Bse(m)||zse(m)||m.parent&&(Y1(m.parent)||Hm(m.parent))&&S_(r.valueDeclaration))&&(ut=m.parent),ut){Ye=t.getResolvedSignature(ut);const lt=ut.kind===214||el(ut)&&ut.expression.kind===108,zt=lt?y.getConstructSignatures():y.getCallSignatures();if(Ye&&!ni(zt,Ye.target)&&!ni(zt,Ye)&&(Ye=zt.length?zt[0]:void 0),Ye){switch(lt&&ee&32?(te="constructor",_t(y.symbol,te)):ee&2097152?(te="alias",Dt(te),W.push($h()),lt&&(Ye.flags&4&&(W.push(hE(128)),W.push($h())),W.push(hE(105)),W.push($h())),ke(r)):_t(r,te),te){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":W.push(cT(59)),W.push($h()),!(ji(y)&16)&&y.symbol&&(Oi(W,ZW(t,y.symbol,l,void 0,5)),W.push(lS())),lt&&(Ye.flags&4&&(W.push(hE(128)),W.push($h())),W.push(hE(105)),W.push($h())),Ft(Ye,zt,262144);break;default:Ft(Ye,zt)}oe=!0,Be=zt.length>1}}else if(SZ(m)&&!(ee&98304)||m.kind===137&&m.parent.kind===176){const lt=m.parent;if(r.declarations&&lr(r.declarations,Wt=>Wt===(m.kind===137?lt.parent:lt))){const Wt=lt.kind===176?y.getNonNullableType().getConstructSignatures():y.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(lt)?Ye=Wt[0]:Ye=t.getSignatureFromDeclaration(lt),lt.kind===176?(te="constructor",_t(y.symbol,te)):_t(lt.kind===179&&!(y.symbol.flags&2048||y.symbol.flags&4096)?y.symbol:r,te),Ye&&Ft(Ye,Wt),oe=!0,Be=Wt.length>1}}}if(ee&32&&!oe&&!de&&(Le(),Vm(r,231)?Dt("local class"):W.push(hE(86)),W.push($h()),ke(r),it(r,s)),ee&64&&T&2&&(pt(),W.push(hE(120)),W.push($h()),ke(r),it(r,s)),ee&524288&&T&2&&(pt(),W.push(hE(156)),W.push($h()),ke(r),it(r,s),W.push($h()),W.push(H3(64)),W.push($h()),Oi(W,GZ(t,m.parent&&CN(m.parent)?t.getTypeAtLocation(m.parent):t.getDeclaredTypeOfSymbol(r),l,8388608))),ee&384&&(pt(),gt(r.declarations,Ye=>Ih(Ye)&&gP(Ye))&&(W.push(hE(87)),W.push($h())),W.push(hE(94)),W.push($h()),ke(r)),ee&1536&&!de){pt();const Ye=Vm(r,267),ut=Ye&&Ye.name&&Ye.name.kind===80;W.push(hE(ut?145:144)),W.push($h()),ke(r)}if(ee&262144&&T&2)if(pt(),W.push(cT(21)),W.push(RA("type parameter")),W.push(cT(22)),W.push($h()),ke(r),r.parent)ht(),ke(r.parent,l),it(r.parent,l);else{const Ye=Vm(r,168);if(Ye===void 0)return ce.fail();const ut=Ye.parent;if(ut)if(S_(ut)){ht();const lt=t.getSignatureFromDeclaration(ut);ut.kind===180?(W.push(hE(105)),W.push($h())):ut.kind!==179&&ut.name&&ke(ut.symbol),Oi(W,Xge(t,lt,s,32))}else mg(ut)&&(ht(),W.push(hE(156)),W.push($h()),ke(ut.symbol),it(ut.symbol,s))}if(ee&8){te="enum member",_t(r,"enum member");const Ye=(I=r.declarations)==null?void 0:I[0];if((Ye==null?void 0:Ye.kind)===306){const ut=t.getConstantValue(Ye);ut!==void 0&&(W.push($h()),W.push(H3(64)),W.push($h()),W.push(C1(ZU(ut),typeof ut=="number"?7:8)))}}if(r.flags&2097152){if(pt(),!oe||O.length===0&&V.length===0){const Ye=t.getAliasedSymbol(r);if(Ye!==r&&Ye.declarations&&Ye.declarations.length>0){const ut=Ye.declarations[0],lt=o_(ut);if(lt&&!oe){const zt=iY(ut)&&il(ut,2),Wt=r.name!=="default"&&!zt,tt=ZQe(t,Ye,ns(ut),ut,lt,y,T,Wt?r:Ye);W.push(...tt.displayParts),W.push(lS()),ue=tt.documentation,Ne=tt.tags}else ue=Ye.getContextualDocumentationComment(ut,t),Ne=Ye.getJsDocTags(t)}}if(r.declarations)switch(r.declarations[0].kind){case 270:W.push(hE(95)),W.push($h()),W.push(hE(145));break;case 277:W.push(hE(95)),W.push($h()),W.push(hE(r.declarations[0].isExportEquals?64:90));break;case 281:W.push(hE(95));break;default:W.push(hE(102))}W.push($h()),ke(r),Ot(r.declarations,Ye=>{if(Ye.kind===271){const ut=Ye;if(qM(ut))W.push($h()),W.push(H3(64)),W.push($h()),W.push(hE(149)),W.push(cT(21)),W.push(C1(Yv(S7(ut)),8)),W.push(cT(22));else{const lt=t.getSymbolAtLocation(ut.moduleReference);lt&&(W.push($h()),W.push(H3(64)),W.push($h()),ke(lt,l))}return!0}})}if(!oe)if(te!==""){if(y){if(de?(pt(),W.push(hE(110))):_t(r,te),te==="property"||te==="accessor"||te==="getter"||te==="setter"||te==="JSX attribute"||ee&3||te==="local var"||te==="index"||te==="using"||te==="await using"||de){if(W.push(cT(59)),W.push($h()),y.symbol&&y.symbol.flags&262144&&te!=="index"){const Ye=w6(ut=>{const lt=t.typeParameterToDeclaration(y,l,W9e);Ve().writeNode(4,lt,ns(Il(l)),ut)});Oi(W,Ye)}else Oi(W,GZ(t,y,l));if(uk(r)&&r.links.target&&uk(r.links.target)&&r.links.target.links.tupleLabelDeclaration){const Ye=r.links.target.links.tupleLabelDeclaration;ce.assertNode(Ye.name,An),W.push($h()),W.push(cT(21)),W.push(RA(ec(Ye.name))),W.push(cT(22))}}else if(ee&16||ee&8192||ee&16384||ee&131072||ee&98304||te==="method"){const Ye=y.getNonNullableType().getCallSignatures();Ye.length&&(Ft(Ye[0],Ye),Be=Ye.length>1)}}}else te=O9e(t,r,m);if(O.length===0&&!Be&&(O=r.getContextualDocumentationComment(l,t)),O.length===0&&ee&4&&r.parent&&r.declarations&&Ot(r.parent.declarations,Ye=>Ye.kind===312))for(const Ye of r.declarations){if(!Ye.parent||Ye.parent.kind!==226)continue;const ut=t.getSymbolAtLocation(Ye.parent.right);if(ut&&(O=ut.getDocumentationComment(t),V=ut.getJsDocTags(t),O.length>0))break}if(O.length===0&&An(m)&&r.valueDeclaration&&ym(r.valueDeclaration)){const Ye=r.valueDeclaration,ut=Ye.parent;if(An(Ye.name)&&E1(ut)){const lt=aC(Ye.name),zt=t.getTypeAtLocation(ut);O=Yr(zt.isUnion()?zt.types:[zt],Wt=>{const tt=Wt.getProperty(lt);return tt?tt.getDocumentationComment(t):void 0})||Zn}}return V.length===0&&!Be&&(V=r.getContextualJsDocTags(l,t)),O.length===0&&ue&&(O=ue),V.length===0&&Ne&&(V=Ne),{displayParts:W,documentation:O,symbolKind:te,tags:V.length===0?void 0:V};function Ve(){return GW()}function pt(){W.length&&W.push(lS()),Le()}function Le(){D&&(Dt("alias"),W.push($h()))}function ht(){W.push($h()),W.push(hE(103)),W.push($h())}function ke(Ye,ut){let lt;D&&Ye===r&&(Ye=D),te==="index"&&(lt=t.getIndexInfosOfIndexSymbol(Ye));let zt=[];Ye.flags&131072&<?(Ye.parent&&(zt=ZW(t,Ye.parent)),zt.push(cT(23)),lt.forEach((Wt,tt)=>{zt.push(...GZ(t,Wt.keyType)),tt!==lt.length-1&&(zt.push($h()),zt.push(cT(52)),zt.push($h()))}),zt.push(cT(24))):zt=ZW(t,Ye,ut||s,void 0,7),Oi(W,zt),r.flags&16777216&&W.push(cT(58))}function _t(Ye,ut){pt(),ut&&(Dt(ut),Ye&&!gt(Ye.declarations,lt=>ph(lt)||(Dm(lt)||B0(lt))&&!lt.name)&&(W.push($h()),ke(Ye)))}function Dt(Ye){switch(Ye){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":W.push(ace(Ye));return;default:W.push(cT(21)),W.push(ace(Ye)),W.push(cT(22));return}}function Ft(Ye,ut,lt=0){Oi(W,Xge(t,Ye,l,lt|32)),ut.length>1&&(W.push($h()),W.push(cT(21)),W.push(H3(40)),W.push(C1((ut.length-1).toString(),7)),W.push($h()),W.push(RA(ut.length===2?"overload":"overloads")),W.push(cT(22))),O=Ye.getDocumentationComment(t),V=Ye.getJsDocTags(),ut.length>1&&O.length===0&&V.length===0&&(O=ut[0].getDocumentationComment(t),V=ut[0].getJsDocTags().filter(zt=>zt.name!=="deprecated"))}function it(Ye,ut){const lt=w6(zt=>{const Wt=t.symbolToTypeParameterDeclarations(Ye,ut,W9e);Ve().writeList(53776,Wt,ns(Il(ut)),zt)});Oi(W,lt)}}function eZe(t,r,s,l,m,y=z3(m),T){return ZQe(t,r,s,l,m,void 0,y,T)}function Lke(t){return t.parent?!1:Ot(t.declarations,r=>{if(r.kind===218)return!0;if(r.kind!==260&&r.kind!==262)return!1;for(let s=r.parent;!JM(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var W9e,W6=G({"src/services/symbolDisplay.ts"(){El(),W9e=70246400}}),D4={};Oe(D4,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>eZe,getSymbolKind:()=>O9e,getSymbolModifiers:()=>QQe});var tZe=G({"src/services/_namespaces/ts.SymbolDisplay.ts"(){W6()}});function Oke(t){const r=t.__pos;return ce.assert(typeof r=="number"),r}function Fke(t,r){ce.assert(typeof r=="number"),t.__pos=r}function Wke(t){const r=t.__end;return ce.assert(typeof r=="number"),r}function Bke(t,r){ce.assert(typeof r=="number"),t.__end=r}function nZe(t,r){return ep(t,r,!1,!0)}function vue(t,r){let s=r;for(;s0?1:0;let ee=mP(BN(t,W)+V,t);return ee=nZe(t.text,ee),mP(BN(t,ee),t)}function gB(t,r,s){const{end:l}=r,{trailingTriviaOption:m}=s;if(m===2){const y=Nx(t.text,l);if(y){const T=BN(t,r.end);for(const D of y){if(D.kind===2||BN(t,D.pos)>T)break;if(BN(t,D.end)>T)return ep(t.text,D.end,!0,!0)}}}}function UF(t,r,s){var l;const{end:m}=r,{trailingTriviaOption:y}=s;if(y===0)return m;if(y===1){const I=Hi(Nx(t.text,m),CS(t.text,m)),W=(l=I==null?void 0:I[I.length-1])==null?void 0:l.end;return W||m}const T=gB(t,r,s);if(T)return T;const D=ep(t.text,m,!0);return D!==m&&(y===2||Ff(t.text.charCodeAt(D-1)))?D:m}function zke(t,r){return!!r&&!!t.parent&&(r.kind===28||r.kind===27&&t.parent.kind===210)}function smt(t){return Dm(t)||b0(t)}function cmt(t){if(t.kind!==219)return t;const r=t.parent.kind===172?t.parent:t.parent.parent;return r.jsDoc=t.jsDoc,r}function B9e(t,r){if(t.kind===r.kind)switch(t.kind){case 348:{const s=t,l=r;return An(s.name)&&An(l.name)&&s.name.escapedText===l.name.escapedText?be.createJSDocParameterTag(void 0,l.name,!1,l.typeExpression,l.isNameFirst,s.comment):void 0}case 349:return be.createJSDocReturnTag(void 0,r.typeExpression,t.comment);case 351:return be.createJSDocTypeTag(void 0,r.typeExpression,t.comment)}}function z9e(t,r){return ep(t.text,iO(t,r,{leadingTriviaOption:1}),!1,!0)}function lmt(t,r,s,l){const m=z9e(t,l);if(s===void 0||mv(UF(t,r,{}),m,t))return m;const y=T0(l.getStart(t),t);if(zke(r,y)){const T=T0(r.getStart(t),t);if(zke(s,T)){const D=ep(t.text,y.getEnd(),!0,!0);if(mv(T.getStart(t),y.getStart(t),t))return Ff(t.text.charCodeAt(D-1))?D-1:D;if(Ff(t.text.charCodeAt(D)))return D}}return m}function Gke(t,r){const s=Wm(t,19,r),l=Wm(t,20,r);return[s==null?void 0:s.end,l==null?void 0:l.end]}function bue(t){return Wd(t)?t.properties:t.members}function G9e(t,r){for(let s=r.length-1;s>=0;s--){const{span:l,newText:m}=r[s];t=`${t.substring(0,l.start)}${m}${t.substring(K1(l))}`}return t}function jke(t){return ep(t,0)===t.length}function Vke(t){const r=ia(t,Vke,Uke,rZe,Vke),s=rh(r)?r:Object.create(r);return T1(s,Oke(t),Wke(t)),s}function rZe(t,r,s,l,m){const y=Fa(t,r,s,l,m);if(!y)return y;ce.assert(t);const T=y===t?be.createNodeArray(y.slice(0)):y;return T1(T,Oke(t),Wke(t)),T}function iZe(t){let r=0;const s=wie(t),l=tt=>{tt&&Fke(tt,r)},m=tt=>{tt&&Bke(tt,r)},y=tt=>{tt&&Fke(tt,r)},T=tt=>{tt&&Bke(tt,r)},D=tt=>{tt&&Fke(tt,r)},I=tt=>{tt&&Bke(tt,r)};function W(tt,Mn){if(Mn||!jke(tt)){r=s.getTextPos();let kn=0;for(;UD(tt.charCodeAt(tt.length-kn-1));)kn++;r-=kn}}function O(tt){s.write(tt),W(tt,!1)}function V(tt){s.writeComment(tt)}function ee(tt){s.writeKeyword(tt),W(tt,!1)}function te(tt){s.writeOperator(tt),W(tt,!1)}function oe(tt){s.writePunctuation(tt),W(tt,!1)}function de(tt){s.writeTrailingSemicolon(tt),W(tt,!1)}function ue(tt){s.writeParameter(tt),W(tt,!1)}function Ne(tt){s.writeProperty(tt),W(tt,!1)}function Be(tt){s.writeSpace(tt),W(tt,!1)}function Ve(tt){s.writeStringLiteral(tt),W(tt,!1)}function pt(tt,Mn){s.writeSymbol(tt,Mn),W(tt,!1)}function Le(tt){s.writeLine(tt)}function ht(){s.increaseIndent()}function ke(){s.decreaseIndent()}function _t(){return s.getText()}function Dt(tt){s.rawWrite(tt),W(tt,!1)}function Ft(tt){s.writeLiteral(tt),W(tt,!0)}function it(){return s.getTextPos()}function Ye(){return s.getLine()}function ut(){return s.getColumn()}function lt(){return s.getIndent()}function zt(){return s.isAtStartOfLine()}function Wt(){s.clear(),r=0}return{onBeforeEmitNode:l,onAfterEmitNode:m,onBeforeEmitNodeArray:y,onAfterEmitNodeArray:T,onBeforeEmitToken:D,onAfterEmitToken:I,write:O,writeComment:V,writeKeyword:ee,writeOperator:te,writePunctuation:oe,writeTrailingSemicolon:de,writeParameter:ue,writeProperty:Ne,writeSpace:Be,writeStringLiteral:Ve,writeSymbol:pt,writeLine:Le,increaseIndent:ht,decreaseIndent:ke,getText:_t,rawWrite:Dt,writeLiteral:Ft,getTextPos:it,getLine:Ye,getColumn:ut,getIndent:lt,isAtStartOfLine:zt,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Wt}}function oZe(t){let r;for(const W of t.statements)if(qC(W))r=W;else break;let s=0;const l=t.text;if(r)return s=r.end,I(),s;const m=tR(l);m!==void 0&&(s=m.length,I());const y=CS(l,s);if(!y)return s;let T,D;for(const W of y){if(W.kind===3){if(h9(l,W.pos)){T={range:W,pinnedOrTripleSlash:!0};continue}}else if(nY(l,W.pos,W.end)){T={range:W,pinnedOrTripleSlash:!0};continue}if(T){if(T.pinnedOrTripleSlash)break;const O=t.getLineAndCharacterOfPosition(W.pos).line,V=t.getLineAndCharacterOfPosition(T.range.end).line;if(O>=V+2)break}if(t.statements.length){D===void 0&&(D=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const O=t.getLineAndCharacterOfPosition(W.end).line;if(D(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(T0e||{}),pV=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(pV||{}),Hq={leadingTriviaOption:0,trailingTriviaOption:0},S0e=class U1t{constructor(r,s){this.newLineCharacter=r,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(r){return new U1t(NP(r.host,r.formatContext.options),r.formatContext)}static with(r,s){const l=U1t.fromContext(r);return s(l),l.getChanges()}pushRaw(r,s){ce.assertEqual(r.fileName,s.fileName);for(const l of s.textChanges)this.changes.push({kind:3,sourceFile:r,text:l.newText,range:PZ(l.span)})}deleteRange(r,s){this.changes.push({kind:0,sourceFile:r,range:s})}delete(r,s){this.deletedNodes.push({sourceFile:r,node:s})}deleteNode(r,s,l={leadingTriviaOption:1}){this.deleteRange(r,VR(r,s,s,l))}deleteNodes(r,s,l={leadingTriviaOption:1},m){for(const y of s){const T=iO(r,y,l,m),D=UF(r,y,l);this.deleteRange(r,{pos:T,end:D}),m=!!gB(r,y,l)}}deleteModifier(r,s){this.deleteRange(r,{pos:s.getStart(r),end:ep(r.text,s.end,!0)})}deleteNodeRange(r,s,l,m={leadingTriviaOption:1}){const y=iO(r,s,m),T=UF(r,l,m);this.deleteRange(r,{pos:y,end:T})}deleteNodeRangeExcludingEnd(r,s,l,m={leadingTriviaOption:1}){const y=iO(r,s,m),T=l===void 0?r.text.length:iO(r,l,m);this.deleteRange(r,{pos:y,end:T})}replaceRange(r,s,l,m={}){this.changes.push({kind:1,sourceFile:r,range:s,options:m,node:l})}replaceNode(r,s,l,m=Hq){this.replaceRange(r,VR(r,s,s,m),l,m)}replaceNodeRange(r,s,l,m,y=Hq){this.replaceRange(r,VR(r,s,l,y),m,y)}replaceRangeWithNodes(r,s,l,m={}){this.changes.push({kind:2,sourceFile:r,range:s,options:m,nodes:l})}replaceNodeWithNodes(r,s,l,m=Hq){this.replaceRangeWithNodes(r,VR(r,s,s,m),l,m)}replaceNodeWithText(r,s,l){this.replaceRangeWithText(r,VR(r,s,s,Hq),l)}replaceNodeRangeWithNodes(r,s,l,m,y=Hq){this.replaceRangeWithNodes(r,VR(r,s,l,y),m,y)}nodeHasTrailingComment(r,s,l=Hq){return!!gB(r,s,l)}nextCommaToken(r,s){const l=Aj(s,s.parent,r);return l&&l.kind===28?l:void 0}replacePropertyAssignment(r,s,l){const m=this.nextCommaToken(r,s)?"":","+this.newLineCharacter;this.replaceNode(r,s,l,{suffix:m})}insertNodeAt(r,s,l,m={}){this.replaceRange(r,tv(s),l,m)}insertNodesAt(r,s,l,m={}){this.replaceRangeWithNodes(r,tv(s),l,m)}insertNodeAtTopOfFile(r,s,l){this.insertAtTopOfFile(r,s,l)}insertNodesAtTopOfFile(r,s,l){this.insertAtTopOfFile(r,s,l)}insertAtTopOfFile(r,s,l){const m=oZe(r),y={prefix:m===0?void 0:this.newLineCharacter,suffix:(Ff(r.text.charCodeAt(m))?"":this.newLineCharacter)+(l?this.newLineCharacter:"")};ls(s)?this.insertNodesAt(r,m,s,y):this.insertNodeAt(r,m,s,y)}insertNodesAtEndOfFile(r,s,l){this.insertAtEndOfFile(r,s,l)}insertAtEndOfFile(r,s,l){const m=r.end+1,y={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(l?this.newLineCharacter:"")};this.insertNodesAt(r,m,s,y)}insertStatementsInNewFile(r,s,l){this.newFileChanges||(this.newFileChanges=zg()),this.newFileChanges.add(r,{oldFile:l,statements:s})}insertFirstParameter(r,s,l){const m=pp(s);m?this.insertNodeBefore(r,m,l):this.insertNodeAt(r,s.pos,l)}insertNodeBefore(r,s,l,m=!1,y={}){this.insertNodeAt(r,iO(r,s,y),l,this.getOptionsForInsertNodeBefore(s,l,m))}insertNodesBefore(r,s,l,m=!1,y={}){this.insertNodesAt(r,iO(r,s,y),l,this.getOptionsForInsertNodeBefore(s,Dl(l),m))}insertModifierAt(r,s,l,m={}){this.insertNodeAt(r,s,be.createToken(l),m)}insertModifierBefore(r,s,l){return this.insertModifierAt(r,l.getStart(r),s,{suffix:" "})}insertCommentBeforeLine(r,s,l,m){const y=mP(s,r),T=M6(r.text,y),D=aZe(r,T),I=qse(r,D?T:l),W=r.text.slice(y,T),O=`${D?"":this.newLineCharacter}//${m}${this.newLineCharacter}${W}`;this.insertText(r,I.getStart(r),O)}insertJsdocCommentBefore(r,s,l){const m=s.getStart(r);if(s.jsDoc)for(const D of s.jsDoc)this.deleteRange(r,{pos:wA(D.getStart(r),r),end:UF(r,D,{})});const y=wj(r.text,m-1),T=r.text.slice(y,m);this.insertNodeAt(r,m,l,{suffix:this.newLineCharacter+T})}createJSDocText(r,s){const l=ea(s.jsDoc,y=>As(y.comment)?be.createJSDocText(y.comment):y.comment),m=Vb(s.jsDoc);return m&&mv(m.pos,m.end,r)&&Nt(l)===0?void 0:be.createNodeArray(Zi(l,be.createJSDocText(` `)))}replaceJSDocComment(r,s,l){this.insertJsdocCommentBefore(r,cmt(s),be.createJSDocComment(this.createJSDocText(r,s),be.createNodeArray(l)))}addJSDocTags(r,s,l){const m=Lm(s.jsDoc,T=>T.tags),y=l.filter(T=>!m.some((D,I)=>{const W=B9e(D,T);return W&&(m[I]=W),!!W}));this.replaceJSDocComment(r,s,[...m,...y])}filterJSDocTags(r,s,l){this.replaceJSDocComment(r,s,gi(Lm(s.jsDoc,m=>m.tags),l))}replaceRangeWithText(r,s,l){this.changes.push({kind:3,sourceFile:r,range:s,text:l})}insertText(r,s,l){this.replaceRangeWithText(r,tv(s),l)}tryInsertTypeAnnotation(r,s,l){let m;if(S_(s)){if(m=Wm(s,22,r),!m){if(!ph(s))return!1;m=Dl(s.parameters)}}else m=(s.kind===260?s.exclamationToken:s.questionToken)??s.name;return this.insertNodeAt(r,m.end,l,{prefix:": "}),!0}tryInsertThisTypeAnnotation(r,s,l){const m=Wm(s,21,r).getStart(r)+1,y=s.parameters.length?", ":"";this.insertNodeAt(r,m,l,{prefix:"this: ",suffix:y})}insertTypeParameters(r,s,l){const m=(Wm(s,21,r)||Dl(s.parameters)).getStart(r);this.insertNodesAt(r,m,l,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(r,s,l){return uf(r)||Mv(r)?{suffix:l?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ff(r)?{suffix:", "}:Pu(r)?Pu(s)?{suffix:", "}:{}:Wp(r)&&Fv(r.parent)||y6(r)?{suffix:", "}:oS(r)?{suffix:","+(l?this.newLineCharacter:" ")}:ce.failBadSyntaxKind(r)}insertNodeAtConstructorStart(r,s,l){const m=pp(s.body.statements);!m||!s.body.multiLine?this.replaceConstructorBody(r,s,[l,...s.body.statements]):this.insertNodeBefore(r,m,l)}insertNodeAtConstructorStartAfterSuperCall(r,s,l){const m=lr(s.body.statements,y=>Ou(y)&&y7(y.expression));!m||!s.body.multiLine?this.replaceConstructorBody(r,s,[...s.body.statements,l]):this.insertNodeAfter(r,m,l)}insertNodeAtConstructorEnd(r,s,l){const m=Yf(s.body.statements);!m||!s.body.multiLine?this.replaceConstructorBody(r,s,[...s.body.statements,l]):this.insertNodeAfter(r,m,l)}replaceConstructorBody(r,s,l){this.replaceNode(r,s.body,be.createBlock(l,!0))}insertNodeAtEndOfScope(r,s,l){const m=iO(r,s.getLastToken(),{});this.insertNodeAt(r,m,l,{prefix:Ff(r.text.charCodeAt(s.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(r,s,l){this.insertNodeAtStartWorker(r,s,l)}insertNodeAtObjectStart(r,s,l){this.insertNodeAtStartWorker(r,s,l)}insertNodeAtStartWorker(r,s,l){const m=this.guessIndentationFromExistingMembers(r,s)??this.computeIndentationForNewMember(r,s);this.insertNodeAt(r,bue(s).pos,l,this.getInsertNodeAtStartInsertOptions(r,s,m))}guessIndentationFromExistingMembers(r,s){let l,m=s;for(const y of bue(s)){if(wH(m,y,r))return;const T=y.getStart(r),D=Rb.SmartIndenter.findFirstNonWhitespaceColumn(wA(T,r),T,r,this.formatContext.options);if(l===void 0)l=D;else if(D!==l)return;m=y}return l}computeIndentationForNewMember(r,s){const l=s.getStart(r);return Rb.SmartIndenter.findFirstNonWhitespaceColumn(wA(l,r),l,r,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(r,s,l){const y=bue(s).length===0,T=y0(this.classesWithNodesInsertedAtStart,Im(s),{node:s,sourceFile:r}),D=Wd(s)&&(!Py(r)||!y),I=Wd(s)&&Py(r)&&y&&!T;return{indentation:l,prefix:(I?",":"")+this.newLineCharacter,suffix:D?",":Kp(s)&&y?";":""}}insertNodeAfterComma(r,s,l){const m=this.insertNodeAfterWorker(r,this.nextCommaToken(r,s)||s,l);this.insertNodeAt(r,m,l,this.getInsertNodeAfterOptions(r,s))}insertNodeAfter(r,s,l){const m=this.insertNodeAfterWorker(r,s,l);this.insertNodeAt(r,m,l,this.getInsertNodeAfterOptions(r,s))}insertNodeAtEndOfList(r,s,l){this.insertNodeAt(r,s.end,l,{prefix:", "})}insertNodesAfter(r,s,l){const m=this.insertNodeAfterWorker(r,s,Dl(l));this.insertNodesAt(r,m,l,this.getInsertNodeAfterOptions(r,s))}insertNodeAfterWorker(r,s,l){return UR(s,l)&&r.text.charCodeAt(s.end-1)!==59&&this.replaceRange(r,tv(s.end),be.createToken(27)),UF(r,s,{})}getInsertNodeAfterOptions(r,s){const l=this.getInsertNodeAfterOptionsWorker(s);return{...l,prefix:s.end===r.end&&uf(s)?l.prefix?` ${l.prefix}`:` -`:l.prefix}}getInsertNodeAfterOptionsWorker(r){switch(r.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 ce.assert(uf(r)||$_(r)),{suffix:this.newLineCharacter}}}insertName(r,s,l){if(ce.assert(!s.name),s.kind===219){const m=Wm(s,39,r),y=Wm(s,21,r);y?(this.insertNodesAt(r,y.getStart(r),[be.createToken(100),be.createIdentifier(l)],{joiner:" "}),uD(this,r,m)):(this.insertText(r,Dl(s.parameters).getStart(r),`function ${l}(`),this.replaceRange(r,m,be.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(r,s.body.getStart(r),[be.createToken(19),be.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(r,s.body.end,[be.createToken(27),be.createToken(20)],{joiner:" "}))}else{const m=Wm(s,s.kind===218?100:86,r).end;this.insertNodeAt(r,m,be.createIdentifier(l),{prefix:" "})}}insertExportModifier(r,s){this.insertText(r,s.getStart(r),"export ")}insertImportSpecifierAtIndex(r,s,l,m){const y=l.elements[m-1];y?this.insertNodeInListAfter(r,y,s):this.insertNodeBefore(r,l.elements[0],s,!mv(l.elements[0].getStart(),l.parent.parent.getStart(),r))}insertNodeInListAfter(r,s,l,m=Rb.SmartIndenter.getContainingList(s,r)){if(!m){ce.fail("node is not a list element");return}const y=v9(m,s);if(y<0)return;const T=s.getEnd();if(y!==m.length-1){const D=bf(r,s.end);if(D&&zke(s,D)){const I=m[y+1],W=nZe(r.text,I.getFullStart()),O=`${Nd(D.kind)}${r.text.substring(D.end,W)}`;this.insertNodesAt(r,W,[l],{suffix:O})}}else{const D=s.getStart(r),I=wA(D,r);let W,O=!1;if(m.length===1)W=28;else{const V=T0(s.pos,r);W=zke(s,V)?V.kind:28,O=wA(m[y-1].getStart(r),r)!==I}if(vue(r.text,s.end)&&(O=!0),O){this.replaceRange(r,tv(T),be.createToken(W));const V=Rb.SmartIndenter.findFirstNonWhitespaceColumn(I,D,r,this.formatContext.options);let ee=ep(r.text,T,!0,!1);for(;ee!==T&&Ff(r.text.charCodeAt(ee-1));)ee--;this.replaceRange(r,tv(ee),l,{indentation:V,prefix:this.newLineCharacter})}else this.replaceRange(r,tv(T),l,{prefix:`${Nd(W)} `})}}parenthesizeExpression(r,s){this.replaceRange(r,coe(s),be.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:r,sourceFile:s})=>{const[l,m]=Gke(r,s);if(l!==void 0&&m!==void 0){const y=bue(r).length===0,T=mv(l,m,s);y&&T&&l!==m-1&&this.deleteRange(s,tv(l,m-1)),T&&this.insertText(s,m-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const r=new Set;for(const{sourceFile:s,node:l}of this.deletedNodes)this.deletedNodes.some(m=>m.sourceFile===s&&Oge(m.node,l))||(ls(l)?this.deleteRange(s,loe(s,l)):j9e.deleteDeclaration(this,r,s,l));r.forEach(s=>{const l=s.getSourceFile(),m=Rb.SmartIndenter.getContainingList(s,l);if(s!==yl(m))return;const y=Ms(m,T=>!r.has(T),m.length-2);y!==-1&&this.deleteRange(l,{pos:m[y].end,end:z9e(l,m[y+1])})})}getChanges(r){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=E0e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,r);return this.newFileChanges&&this.newFileChanges.forEach((l,m)=>{s.push(E0e.newFileChanges(m,l,this.newLineCharacter,this.formatContext))}),s}createNewFile(r,s,l){this.insertStatementsInNewFile(s,l,r)}},(t=>{function r(D,I,W,O){return Qo(BD(D,V=>V.sourceFile.path),V=>{const ee=V[0].sourceFile,te=nh(V,(de,ue)=>de.range.pos-ue.range.pos||de.range.end-ue.range.end);for(let de=0;de`${JSON.stringify(te[de].range)} and ${JSON.stringify(te[de+1].range)}`);const oe=Qo(te,de=>{const ue=FR(de.range),Ne=de.kind===1?ns(Ic(de.node))??de.sourceFile:de.kind===2?ns(Ic(de.nodes[0]))??de.sourceFile:de.sourceFile,Be=m(de,Ne,ee,I,W,O);if(!(ue.length===Be.length&&OAe(Ne.text,Be,ue.start)))return NZ(ue,Be)});return oe.length>0?{fileName:ee.fileName,textChanges:oe}:void 0})}t.getTextChangesFromChanges=r;function s(D,I,W,O){const V=l(EY(D),I,W,O);return{fileName:D,textChanges:[NZ(nb(0,0),V)],isNewFile:!0}}t.newFileChanges=s;function l(D,I,W,O){const V=ea(I,oe=>oe.statements.map(de=>de===4?"":T(de,oe.oldFile,W).text)).join(W),ee=Ape("any file name",V,99,!0,D),te=Rb.formatDocument(ee,O);return G9e(V,te)+W}t.newFileChangesWorker=l;function m(D,I,W,O,V,ee){var te;if(D.kind===0)return"";if(D.kind===3)return D.text;const{options:oe={},range:{pos:de}}=D,ue=Ve=>y(Ve,I,W,de,oe,O,V,ee),Ne=D.kind===2?D.nodes.map(Ve=>DM(ue(Ve),O)).join(((te=D.options)==null?void 0:te.joiner)||O):ue(D.node),Be=oe.indentation!==void 0||wA(de,I)===de?Ne:Ne.replace(/^\s+/,"");return(oe.prefix||"")+Be+(!oe.suffix||h_(Be,oe.suffix)?"":oe.suffix)}function y(D,I,W,O,{indentation:V,prefix:ee,delta:te},oe,de,ue){const{node:Ne,text:Be}=T(D,I,oe);ue&&ue(Ne,Be);const Ve=che(de,I),pt=V!==void 0?V:Rb.SmartIndenter.getIndentation(O,W,Ve,ee===oe||wA(O,I)===O);te===void 0&&(te=Rb.SmartIndenter.shouldIndentChildNode(Ve,D)&&Ve.indentSize||0);const Le={text:Be,getLineAndCharacterOfPosition(ke){return Ah(this,ke)}},ht=Rb.formatNodeGivenIndentation(Ne,Le,I.languageVariant,pt,te,{...de,options:Ve});return G9e(Be,ht)}function T(D,I,W){const O=iZe(W),V=Fj(W);return _4({newLine:V,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},O).writeNode(4,D,I,O),{text:O.getText(),node:Vke(D)}}t.getNonformattedText=T})(E0e||(E0e={})),Uke={...I6,factory:aJ(I6.factory.flags|1,I6.factory.baseFactory)},(t=>{function r(y,T,D,I){switch(I.kind){case 169:{const te=I.parent;ph(te)&&te.parameters.length===1&&!Wm(te,21,D)?y.replaceNodeWithText(D,I,"()"):Uq(y,T,D,I);break}case 272:case 271:const W=D.imports.length&&I===Dl(D.imports).parent||I===lr(D.statements,hm);uD(y,D,I,{leadingTriviaOption:W?0:g1(I)?2:3});break;case 208:const O=I.parent;O.kind===207&&I!==yl(O.elements)?uD(y,D,I):Uq(y,T,D,I);break;case 260:m(y,T,D,I);break;case 168:Uq(y,T,D,I);break;case 276:const ee=I.parent;ee.elements.length===1?l(y,D,ee):Uq(y,T,D,I);break;case 274:l(y,D,I);break;case 27:uD(y,D,I,{trailingTriviaOption:0});break;case 100:uD(y,D,I,{leadingTriviaOption:0});break;case 263:case 262:uD(y,D,I,{leadingTriviaOption:g1(I)?2:3});break;default:I.parent?lC(I.parent)&&I.parent.name===I?s(y,D,I.parent):el(I.parent)&&ni(I.parent.arguments,I)?Uq(y,T,D,I):uD(y,D,I):uD(y,D,I)}}t.deleteDeclaration=r;function s(y,T,D){if(!D.namedBindings)uD(y,T,D.parent);else{const I=D.name.getStart(T),W=bf(T,D.name.end);if(W&&W.kind===28){const O=ep(T.text,W.end,!1,!0);y.deleteRange(T,{pos:I,end:O})}else uD(y,T,D.name)}}function l(y,T,D){if(D.parent.name){const I=ce.checkDefined(bf(T,D.pos-1));y.deleteRange(T,{pos:I.getStart(T),end:D.end})}else{const I=e6(D,272);uD(y,T,I)}}function m(y,T,D,I){const{parent:W}=I;if(W.kind===299){y.deleteNodeRange(D,Wm(W,21,D),Wm(W,22,D));return}if(W.declarations.length!==1){Uq(y,T,D,I);return}const O=W.parent;switch(O.kind){case 250:case 249:y.replaceNode(D,I,be.createObjectLiteralExpression());break;case 248:uD(y,D,W);break;case 243:uD(y,D,O,{leadingTriviaOption:g1(O)?2:3});break;default:ce.assertNever(O)}}})(j9e||(j9e={}))}}),Hs={};Oe(Hs,{ChangeTracker:()=>S0e,LeadingTriviaOption:()=>T0e,TrailingTriviaOption:()=>mV,applyChanges:()=>G9e,assignPositionsToNode:()=>Vke,createWriter:()=>iZe,deleteNode:()=>uD,isThisTypeAnnotatable:()=>smt,isValidLocationToAddComment:()=>aZe});var V9e=G({"src/services/_namespaces/ts.textChanges.ts"(){zs()}}),x0e,U9e,H9e=G({"src/services/formatting/formattingContext.ts"(){El(),x0e=(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))(x0e||{}),U9e=class{constructor(t,r,s){this.sourceFile=t,this.formattingRequestKind=r,this.options=s}updateContext(t,r,s,l,m){this.currentTokenSpan=ce.checkDefined(t),this.currentTokenParent=ce.checkDefined(r),this.nextTokenSpan=ce.checkDefined(s),this.nextTokenParent=ce.checkDefined(l),this.contextNode=ce.checkDefined(m),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,r=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===r}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 r=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return r===s}BlockIsOnOneLine(t){const r=Wm(t,19,this.sourceFile),s=Wm(t,20,this.sourceFile);if(r&&s){const l=this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line,m=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return l===m}return!1}}}});function Hke(t,r,s,l,m){const y=r===1?sZe:J9e;y.setText(t),y.resetTokenState(s);let T=!0,D,I,W,O,V;const ee=m({advance:te,readTokenInfo:Le,readEOFTokenRange:ke,isOnToken:_t,isOnEOF:Dt,getCurrentLeadingTrivia:()=>D,lastTrailingTriviaWasNewLine:()=>T,skipToEndOf:it,skipToStartOf:Ye,getTokenFullStart:()=>(V==null?void 0:V.token.pos)??y.getTokenStart(),getStartPos:()=>(V==null?void 0:V.token.pos)??y.getTokenStart()});return V=void 0,y.setText(void 0),ee;function te(){V=void 0,y.getTokenFullStart()!==s?T=!!I&&yl(I).kind===4:y.scan(),D=void 0,I=void 0;let lt=y.getTokenFullStart();for(;lt(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))(C0e||{}),$9e=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))($9e||{})}});function ol(){const t=[];for(let ht=0;ht<=165;ht++)ht!==1&&t.push(ht);function r(...ht){return{tokens:t.filter(ke=>!ht.some(_t=>_t===ke)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},l=Jq([...t,3]),m=Jq([...t,1]),y=K9e(83,165),T=K9e(30,79),D=[103,104,165,130,142,152],I=[46,47,55,54],W=[9,10,80,21,23,19,110,105],O=[80,21,110,105],V=[80,22,24,105],ee=[80,21,110,105],te=[80,22,24,105],oe=[2,3],de=[80,...Wj],ue=l,Ne=Jq([80,3,86,95,102]),Be=Jq([22,3,92,113,98,93]),Ve=[Yc("IgnoreBeforeComment",s,oe,ate,1),Yc("IgnoreAfterLineComment",2,s,ate,1),Yc("NotSpaceBeforeColon",s,59,[nf,Tue,qke],16),Yc("SpaceAfterColon",59,s,[nf,Tue],4),Yc("NoSpaceBeforeQuestionMark",s,58,[nf,Tue,qke],16),Yc("SpaceAfterQuestionMarkInConditionalOperator",58,s,[nf,umt],4),Yc("NoSpaceAfterQuestionMark",58,s,[nf],16),Yc("NoSpaceBeforeDot",s,[25,29],[nf,Emt],16),Yc("NoSpaceAfterDot",[25,29],s,[nf],16),Yc("NoSpaceBetweenImportParenInImportType",102,21,[nf,hmt],16),Yc("NoSpaceAfterUnaryPrefixOperator",I,W,[nf,Tue],16),Yc("NoSpaceAfterUnaryPreincrementOperator",46,O,[nf],16),Yc("NoSpaceAfterUnaryPredecrementOperator",47,ee,[nf],16),Yc("NoSpaceBeforeUnaryPostincrementOperator",V,46,[nf,vZe],16),Yc("NoSpaceBeforeUnaryPostdecrementOperator",te,47,[nf,vZe],16),Yc("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[nf,FP],4),Yc("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[nf,FP],4),Yc("SpaceAfterAddWhenFollowedByPreincrement",40,46,[nf,FP],4),Yc("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[nf,FP],4),Yc("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[nf,FP],4),Yc("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[nf,FP],4),Yc("NoSpaceAfterCloseBrace",20,[28,27],[nf],16),Yc("NewLineBeforeCloseBraceInBlockContext",l,20,[Yke],8),Yc("SpaceAfterCloseBrace",20,r(22),[nf,_Ze],4),Yc("SpaceBetweenCloseBraceAndElse",20,93,[nf],4),Yc("SpaceBetweenCloseBraceAndWhile",20,117,[nf],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[nf,Sue],16),Yc("SpaceAfterConditionalClosingParen",22,23,[k0e],4),Yc("NoSpaceBetweenFunctionKeywordAndStar",100,42,[fZe],16),Yc("SpaceAfterStarInGeneratorDeclaration",42,80,[fZe],4),Yc("SpaceAfterFunctionInFuncDecl",100,s,[HF],4),Yc("NewLineAfterOpenBraceInBlockContext",19,s,[Yke],8),Yc("SpaceAfterGetSetInMember",[139,153],80,[HF],4),Yc("NoSpaceBetweenYieldKeywordAndStar",127,42,[nf,ePe],16),Yc("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[nf,ePe],4),Yc("NoSpaceBetweenReturnAndSemicolon",107,27,[nf],16),Yc("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[nf],4),Yc("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[nf,vmt],4),Yc("NoSpaceBeforeOpenParenInFuncCall",s,21,[nf,_mt,dmt],16),Yc("SpaceBeforeBinaryKeywordOperator",s,D,[nf,FP],4),Yc("SpaceAfterBinaryKeywordOperator",D,s,[nf,FP],4),Yc("SpaceAfterVoidOperator",116,s,[nf,N0e],4),Yc("SpaceBetweenAsyncAndOpenParen",134,21,[gmt,nf],4),Yc("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[nf],4),Yc("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[nf],16),Yc("SpaceBeforeJsxAttribute",s,80,[Zke,nf],4),Yc("SpaceBeforeSlashInJsxOpeningElement",s,44,[tWe,nf],4),Yc("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[tWe,nf],16),Yc("NoSpaceBeforeEqualInJsxAttribute",s,64,[pZe,nf],16),Yc("NoSpaceAfterEqualInJsxAttribute",64,s,[pZe,nf],16),Yc("NoSpaceAfterModuleImport",[144,149],21,[nf],16),Yc("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,[nf],4),Yc("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[nf],4),Yc("SpaceAfterModuleName",11,19,[gZe],4),Yc("SpaceBeforeArrow",s,39,[nf],4),Yc("SpaceAfterArrow",39,s,[nf],4),Yc("NoSpaceAfterEllipsis",26,80,[nf],16),Yc("NoSpaceAfterOptionalParameters",58,[22,28],[nf,Tue],16),Yc("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[nf,bmt],16),Yc("NoSpaceBeforeOpenAngularBracket",de,30,[nf,P0e],16),Yc("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[nf,P0e],16),Yc("NoSpaceAfterOpenAngularBracket",30,s,[nf,P0e],16),Yc("NoSpaceBeforeCloseAngularBracket",s,32,[nf,P0e],16),Yc("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[nf,P0e,hB,yZe],16),Yc("SpaceBeforeAt",[22,80],60,[nf],4),Yc("NoSpaceAfterAt",60,s,[nf],16),Yc("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[mZe],4),Yc("NoSpaceBeforeNonNullAssertionOperator",s,54,[nf,Tmt],16),Yc("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[nf,iWe],16),Yc("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[nf],4)],pt=[Yc("SpaceAfterConstructor",137,21,[k2("insertSpaceAfterConstructor"),nf],4),Yc("NoSpaceAfterConstructor",137,21,[_D("insertSpaceAfterConstructor"),nf],16),Yc("SpaceAfterComma",28,s,[k2("insertSpaceAfterCommaDelimiter"),nf,Qke,pmt,mmt],4),Yc("NoSpaceAfterComma",28,s,[_D("insertSpaceAfterCommaDelimiter"),nf,Qke],16),Yc("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[k2("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),HF],4),Yc("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[_D("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),HF],16),Yc("SpaceAfterKeywordInControl",y,21,[k2("insertSpaceAfterKeywordsInControlFlowStatements"),k0e],4),Yc("NoSpaceAfterKeywordInControl",y,21,[_D("insertSpaceAfterKeywordsInControlFlowStatements"),k0e],16),Yc("SpaceAfterOpenParen",21,s,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("SpaceBeforeCloseParen",s,22,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("SpaceBetweenOpenParens",21,21,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("NoSpaceBetweenParens",21,22,[nf],16),Yc("NoSpaceAfterOpenParen",21,s,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],16),Yc("NoSpaceBeforeCloseParen",s,22,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],16),Yc("SpaceAfterOpenBracket",23,s,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],4),Yc("SpaceBeforeCloseBracket",s,24,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],4),Yc("NoSpaceBetweenBrackets",23,24,[nf],16),Yc("NoSpaceAfterOpenBracket",23,s,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],16),Yc("NoSpaceBeforeCloseBracket",s,24,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],16),Yc("SpaceAfterOpenBrace",19,s,[$ke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Kke],4),Yc("SpaceBeforeCloseBrace",s,20,[$ke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Kke],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[nf,Sue],16),Yc("NoSpaceAfterOpenBrace",19,s,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nf],16),Yc("NoSpaceBeforeCloseBrace",s,20,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nf],16),Yc("SpaceBetweenEmptyBraceBrackets",19,20,[k2("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[fD("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),nf],16),Yc("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[k2("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],4,1),Yc("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[k2("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nf],4),Yc("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[_D("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],16,1),Yc("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[_D("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nf],16),Yc("SpaceAfterOpenBraceInJsxExpression",19,s,[k2("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],4),Yc("SpaceBeforeCloseBraceInJsxExpression",s,20,[k2("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],4),Yc("NoSpaceAfterOpenBraceInJsxExpression",19,s,[_D("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],16),Yc("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[_D("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],16),Yc("SpaceAfterSemicolonInFor",27,s,[k2("insertSpaceAfterSemicolonInForStatements"),nf,X9e],4),Yc("NoSpaceAfterSemicolonInFor",27,s,[_D("insertSpaceAfterSemicolonInForStatements"),nf,X9e],16),Yc("SpaceBeforeBinaryOperator",s,T,[k2("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],4),Yc("SpaceAfterBinaryOperator",T,s,[k2("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],4),Yc("NoSpaceBeforeBinaryOperator",s,T,[_D("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],16),Yc("NoSpaceAfterBinaryOperator",T,s,[_D("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],16),Yc("SpaceBeforeOpenParenInFuncDecl",s,21,[k2("insertSpaceBeforeFunctionParenthesis"),nf,HF],4),Yc("NoSpaceBeforeOpenParenInFuncDecl",s,21,[_D("insertSpaceBeforeFunctionParenthesis"),nf,HF],16),Yc("NewLineBeforeOpenBraceInControl",Be,19,[k2("placeOpenBraceOnNewLineForControlBlocks"),k0e,Xke],8,1),Yc("NewLineBeforeOpenBraceInFunction",ue,19,[k2("placeOpenBraceOnNewLineForFunctions"),HF,Xke],8,1),Yc("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Ne,19,[k2("placeOpenBraceOnNewLineForFunctions"),Z9e,Xke],8,1),Yc("SpaceAfterTypeAssertion",32,s,[k2("insertSpaceAfterTypeAssertion"),nf,oWe],4),Yc("NoSpaceAfterTypeAssertion",32,s,[_D("insertSpaceAfterTypeAssertion"),nf,oWe],16),Yc("SpaceBeforeTypeAnnotation",s,[58,59],[k2("insertSpaceBeforeTypeAnnotation"),nf,Y9e],4),Yc("NoSpaceBeforeTypeAnnotation",s,[58,59],[_D("insertSpaceBeforeTypeAnnotation"),nf,Y9e],16),Yc("NoOptionalSemicolon",27,m,[ux("semicolons","remove"),Smt],32),Yc("OptionalSemicolon",s,m,[ux("semicolons","insert"),TZe],64)],Le=[Yc("NoSpaceBeforeSemicolon",s,27,[nf],16),Yc("SpaceBeforeOpenBraceInControl",Be,19,[Jke("placeOpenBraceOnNewLineForControlBlocks"),k0e,rWe,Q9e],4,1),Yc("SpaceBeforeOpenBraceInFunction",ue,19,[Jke("placeOpenBraceOnNewLineForFunctions"),HF,D0e,rWe,Q9e],4,1),Yc("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Ne,19,[Jke("placeOpenBraceOnNewLineForFunctions"),Z9e,rWe,Q9e],4,1),Yc("NoSpaceBeforeComma",s,28,[nf],16),Yc("NoSpaceBeforeOpenBracket",r(134,84),23,[nf],16),Yc("NoSpaceAfterCloseBracket",24,s,[nf,ymt],16),Yc("SpaceAfterSemicolon",27,s,[nf],4),Yc("SpaceBetweenForAndAwaitKeyword",99,135,[nf],4),Yc("SpaceBetweenStatements",[22,92,93,84],s,[nf,Qke,k4],4),Yc("SpaceAfterTryCatchFinally",[113,85,98],19,[nf],4)];return[...Ve,...pt,...Le]}function Yc(t,r,s,l,m,y=0){return{leftTokenRange:q9e(r),rightTokenRange:q9e(s),rule:{debugName:t,context:l,action:m,flags:y}}}function Jq(t){return{tokens:t,isSpecific:!0}}function q9e(t){return typeof t=="number"?Jq([t]):ls(t)?Jq(t):t}function K9e(t,r,s=[]){const l=[];for(let m=t;m<=r;m++)ni(s,m)||l.push(m);return Jq(l)}function ux(t,r){return s=>s.options&&s.options[t]===r}function k2(t){return r=>r.options&&ef(r.options,t)&&!!r.options[t]}function fD(t){return r=>r.options&&ef(r.options,t)&&!r.options[t]}function _D(t){return r=>!r.options||!ef(r.options,t)||!r.options[t]}function Jke(t){return r=>!r.options||!ef(r.options,t)||!r.options[t]||r.TokensAreOnSameLine()}function $ke(t){return r=>!r.options||!ef(r.options,t)||!!r.options[t]}function X9e(t){return t.contextNode.kind===248}function k4(t){return!X9e(t)}function FP(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 Tue(t){return!FP(t)}function qke(t){return!Y9e(t)}function Y9e(t){const r=t.contextNode.kind;return r===172||r===171||r===169||r===260||xb(r)}function umt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function Q9e(t){return t.TokensAreOnSameLine()||D0e(t)}function Kke(t){return t.contextNode.kind===206||t.contextNode.kind===200||lZe(t)}function Xke(t){return D0e(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function Yke(t){return uZe(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function lZe(t){return uZe(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function uZe(t){return I0e(t.contextNode)}function D0e(t){return I0e(t.nextTokenParent)}function I0e(t){if(eWe(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function HF(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 hB(t){return!HF(t)}function fZe(t){return t.contextNode.kind===262||t.contextNode.kind===218}function Z9e(t){return eWe(t.contextNode)}function eWe(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 _Ze(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const r=t.currentTokenParent.parent;if(!r||r.kind!==219&&r.kind!==218)return!0}}return!1}function k0e(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 Sue(t){return t.contextNode.kind===210}function dZe(t){return t.contextNode.kind===213}function fmt(t){return t.contextNode.kind===214}function _mt(t){return dZe(t)||fmt(t)}function dmt(t){return t.currentTokenSpan.kind!==28}function pmt(t){return t.nextTokenSpan.kind!==24}function mmt(t){return t.nextTokenSpan.kind!==22}function gmt(t){return t.contextNode.kind===219}function hmt(t){return t.contextNode.kind===205}function nf(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function qu(t){return t.contextNode.kind!==12}function Qke(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function Eue(t){return t.contextNode.kind===294||t.contextNode.kind===293}function Zke(t){return t.nextTokenParent.kind===291}function pZe(t){return t.contextNode.kind===291}function tWe(t){return t.contextNode.kind===285}function ymt(t){return!HF(t)&&!D0e(t)}function mZe(t){return t.TokensAreOnSameLine()&&Fx(t.contextNode)&&nWe(t.currentTokenParent)&&!nWe(t.nextTokenParent)}function nWe(t){for(;t&&Nr(t);)t=t.parent;return t&&t.kind===170}function vmt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function rWe(t){return t.formattingRequestKind!==2}function gZe(t){return t.contextNode.kind===267}function bmt(t){return t.contextNode.kind===187}function iWe(t){return t.contextNode.kind===180}function hZe(t,r){if(t.kind!==30&&t.kind!==32)return!1;switch(r.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 P0e(t){return hZe(t.currentTokenSpan,t.currentTokenParent)||hZe(t.nextTokenSpan,t.nextTokenParent)}function oWe(t){return t.contextNode.kind===216}function yZe(t){return!oWe(t)}function N0e(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function ePe(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function Tmt(t){return t.contextNode.kind===235}function vZe(t){return!bZe(t)}function bZe(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Smt(t){let r=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(tI(r)){const y=t.nextTokenParent===t.currentTokenParent?Cj(t.currentTokenParent,Kr(t.currentTokenParent,T=>!T.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!y)return!0;r=y.kind,s=y.getStart(t.sourceFile)}const l=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,m=t.sourceFile.getLineAndCharacterOfPosition(s).line;return l===m?r===20||r===1:r===240||r===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!Np(t.currentTokenParent)||!!t.currentTokenParent.type||r!==21:Os(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&r!==23&&r!==21&&r!==40&&r!==41&&r!==44&&r!==14&&r!==28&&r!==228&&r!==16&&r!==15&&r!==25}function TZe(t){return sq(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function Emt(t){return!sa(t.contextNode)||!nS(t.contextNode.expression)||t.contextNode.expression.getText().indexOf(".")!==-1}var xmt=G({"src/services/formatting/rules.ts"(){El(),qx()}});function Amt(t,r){return{options:t,getRules:Cmt(),host:r}}function Cmt(){return aWe===void 0&&(aWe=Imt(ol())),aWe}function Dmt(t){let r=0;return t&1&&(r|=28),t&2&&(r|=96),t&28&&(r|=28),t&96&&(r|=96),r}function Imt(t){const r=kmt(t);return s=>{const l=r[SZe(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(l){const m=[];let y=0;for(const T of l){const D=~Dmt(y);T.action&D&&jr(T.context,I=>I(s))&&(m.push(T),y|=T.action)}if(m.length)return m}}}function kmt(t){const r=new Array(xue*xue),s=new Array(r.length);for(const l of t){const m=l.leftTokenRange.isSpecific&&l.rightTokenRange.isSpecific;for(const y of l.leftTokenRange.tokens)for(const T of l.rightTokenRange.tokens){const D=SZe(y,T);let I=r[D];I===void 0&&(I=r[D]=[]),Pmt(I,l.rule,m,s,D)}}return r}function SZe(t,r){return ce.assert(t<=165&&r<=165,"Must compute formatting context from tokens"),t*xue+r}function Pmt(t,r,s,l,m){const y=r.action&3?s?0:B6.StopRulesAny:r.context!==ate?s?B6.ContextRulesSpecific:B6.ContextRulesAny:s?B6.NoContextRulesSpecific:B6.NoContextRulesAny,T=l[m]||0;t.splice(Nmt(T,y),0,r),l[m]=EZe(T,y)}function Nmt(t,r){let s=0;for(let l=0;l<=r;l+=$q)s+=t&w0e,t>>=$q;return s}function EZe(t,r){const s=(t>>r&w0e)+1;return ce.assert((s&w0e)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(w0e<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=$q*1]="StopRulesAny",t[t.ContextRulesSpecific=$q*2]="ContextRulesSpecific",t[t.ContextRulesAny=$q*3]="ContextRulesAny",t[t.NoContextRulesSpecific=$q*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=$q*5]="NoContextRulesAny",t))(B6||{})}});function ste(t,r,s){const l={pos:t,end:r,kind:s};return ce.isDebugging&&Object.defineProperty(l,"__debugKind",{get:()=>ce.formatSyntaxKind(s)}),l}function cte(t,r,s){const l=r.getLineAndCharacterOfPosition(t).line;if(l===0)return[];let m=lie(l,r);for(;HD(r.text.charCodeAt(m));)m--;Ff(r.text.charCodeAt(m))&&m--;const y={pos:mP(l-1,r),end:m+1};return M0e(y,r,s,2)}function wmt(t,r,s){const l=sWe(t,27,r);return xZe(cWe(l),r,s,3)}function tPe(t,r,s){const l=sWe(t,19,r);if(!l)return[];const m=l.parent,y=cWe(m),T={pos:wA(y.getStart(r),r),end:t};return M0e(T,r,s,4)}function Rmt(t,r,s){const l=sWe(t,20,r);return xZe(cWe(l),r,s,5)}function Mmt(t,r){const s={pos:0,end:t.text.length};return M0e(s,t,r,0)}function Lmt(t,r,s,l){const m={pos:wA(t,s),end:r};return M0e(m,s,l,1)}function sWe(t,r,s){const l=T0(t,s);return l&&l.kind===r&&t===l.getEnd()?l:void 0}function cWe(t){let r=t;for(;r&&r.parent&&r.parent.end===t.end&&!Omt(r.parent,r);)r=r.parent;return r}function Omt(t,r){switch(t.kind){case 263:case 264:return sS(t.members,r);case 267:const s=t.body;return!!s&&s.kind===268&&sS(s.statements,r);case 312:case 241:case 268:return sS(t.statements,r);case 299:return sS(t.block.statements,r)}return!1}function lWe(t,r){return s(r);function s(l){const m=B_(l,y=>xZ(y.getStart(r),y.end,t)&&y);if(m){const y=s(m);if(y)return y}return l}}function uWe(t,r){if(!t.length)return m;const s=t.filter(y=>RR(r,y.start,y.start+y.length)).sort((y,T)=>y.start-T.start);if(!s.length)return m;let l=0;return y=>{for(;;){if(l>=s.length)return!1;const T=s[l];if(y.end<=T.start)return!1;if(AF(y.pos,y.end,T.start,T.start+T.length))return!0;l++}};function m(){return!1}}function Fmt(t,r,s){const l=t.getStart(s);if(l===r.pos&&t.end===r.end)return l;const m=T0(r.pos,s);return!m||m.end>=r.pos?t.pos:m.end}function Wmt(t,r,s){let l=-1,m;for(;t;){const y=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(l!==-1&&y!==l)break;if($x.shouldIndentChildNode(r,t,m,s))return r.indentSize;l=y,m=t,t=t.parent}return 0}function Bmt(t,r,s,l,m,y){const T={pos:t.pos,end:t.end};return Hke(r.text,s,T.pos,T.end,D=>AZe(T,t,l,m,D,y,1,I=>!1,r))}function xZe(t,r,s,l){if(!t)return[];const m={pos:wA(t.getStart(r),r),end:t.end};return M0e(m,r,s,l)}function M0e(t,r,s,l){const m=lWe(t,r);return Hke(r.text,r.languageVariant,Fmt(m,t,r),t.end,y=>AZe(t,m,$x.getIndentationForNode(m,t,r,s.options),Wmt(m,s.options,r),y,s,l,uWe(r.parseDiagnostics,t),r))}function AZe(t,r,s,l,m,{options:y,getRules:T,host:D},I,W,O){var V;const ee=new U9e(O,I,y);let te,oe,de,ue,Ne,Be=-1;const Ve=[];if(m.advance(),m.isOnToken()){const Ut=O.getLineAndCharacterOfPosition(r.getStart(O)).line;let In=Ut;Fx(r)&&(In=O.getLineAndCharacterOfPosition(y9(r,O)).line),Dt(r,r,Ut,In,s,l)}const pt=m.getCurrentLeadingTrivia();if(pt){const Ut=$x.nodeWillIndentChild(y,r,void 0,O,!1)?s+y.indentSize:s;Ft(pt,Ut,!0,In=>{Ye(In,O.getLineAndCharacterOfPosition(In.pos),r,r,void 0),lt(In.pos,Ut,!1)}),y.trimTrailingWhitespace!==!1&&cr(pt)}if(oe&&m.getTokenFullStart()>=t.end){const Ut=m.isOnEOF()?m.readEOFTokenRange():m.isOnToken()?m.readTokenInfo(r).token:void 0;if(Ut&&Ut.pos===te){const In=((V=T0(Ut.end,O,r))==null?void 0:V.parent)||de;ut(Ut,O.getLineAndCharacterOfPosition(Ut.pos).line,In,oe,ue,de,In,void 0)}}return Ve;function Le(Ut,In,gr,Cr,ei){if(RR(Cr,Ut,In)||AZ(Cr,Ut,In)){if(ei!==-1)return ei}else{const Gn=O.getLineAndCharacterOfPosition(Ut).line,Ur=wA(Ut,O),so=$x.findFirstNonWhitespaceColumn(Ur,Ut,O,y);if(Gn!==gr||Ut===so){const ho=$x.getBaseIndentation(y);return ho>so?ho:so}}return-1}function ht(Ut,In,gr,Cr,ei,Gn){const Ur=$x.shouldIndentChildNode(y,Ut)?y.indentSize:0;return Gn===In?{indentation:In===Ne?Be:ei.getIndentation(),delta:Math.min(y.indentSize,ei.getDelta(Ut)+Ur)}:gr===-1?Ut.kind===21&&In===Ne?{indentation:Be,delta:ei.getDelta(Ut)}:$x.childStartsOnTheSameLineWithElseInIfStatement(Cr,Ut,In,O)||$x.childIsUnindentedBranchOfConditionalExpression(Cr,Ut,In,O)||$x.argumentStartsOnSameLineAsPreviousArgument(Cr,Ut,In,O)?{indentation:ei.getIndentation(),delta:Ur}:{indentation:ei.getIndentation()+ei.getDelta(Ut),delta:Ur}:{indentation:gr,delta:Ur}}function ke(Ut){if(nx(Ut)){const In=lr(Ut.modifiers,bd,Ho(Ut.modifiers,Qf));if(In)return In.kind}switch(Ut.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(Ut.asteriskToken)return 42;case 172:case 169:const In=o_(Ut);if(In)return In.kind}}function _t(Ut,In,gr,Cr){return{getIndentationForComment:(Ur,so,ho)=>{switch(Ur){case 20:case 24:case 22:return gr+Gn(ho)}return so!==-1?so:gr},getIndentationForToken:(Ur,so,ho,di)=>!di&&ei(Ur,so,ho)?gr+Gn(ho):gr,getIndentation:()=>gr,getDelta:Gn,recomputeIndentation:(Ur,so)=>{$x.shouldIndentChildNode(y,so,Ut,O)&&(gr+=Ur?y.indentSize:-y.indentSize,Cr=$x.shouldIndentChildNode(y,Ut)?y.indentSize:0)}};function ei(Ur,so,ho){switch(so){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ho.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ho.kind!==200)return!1;break}return In!==Ur&&!(Fx(Ut)&&so===ke(Ut))}function Gn(Ur){return $x.nodeWillIndentChild(y,Ut,Ur,O,!0)?Cr:0}}function Dt(Ut,In,gr,Cr,ei,Gn){if(!RR(t,Ut.getStart(O),Ut.getEnd()))return;const Ur=_t(Ut,gr,ei,Gn);let so=In;for(B_(Ut,ha=>{ho(ha,-1,Ut,Ur,gr,Cr,!1)},ha=>{di(ha,Ut,gr,Ur)});m.isOnToken()&&m.getTokenFullStart()Math.min(Ut.end,t.end))break;Nc(ha,Ut,Ur,Ut)}function ho(ha,ro,Gs,Oc,_u,Ku,al,Rr){if(ce.assert(!rh(ha)),Um(ha)||VMe(Gs,ha))return ro;const mc=ha.getStart(O),Ea=O.getLineAndCharacterOfPosition(mc).line;let Fi=Ea;Fx(ha)&&(Fi=O.getLineAndCharacterOfPosition(y9(ha,O)).line);let ta=-1;if(al&&sS(t,Gs)&&(ta=Le(mc,ha.end,_u,t,ro),ta!==-1&&(ro=ta)),!RR(t,ha.pos,ha.end))return ha.endt.end)return ro;if(Xu.token.end>mc){Xu.token.pos>mc&&m.skipToStartOf(ha);break}Nc(Xu,Ut,Oc,Ut)}if(!m.isOnToken()||m.getTokenFullStart()>=t.end)return ro;if(VC(ha)){const Xu=m.readTokenInfo(ha);if(ha.kind!==12)return ce.assert(Xu.token.end===ha.end,"Token end is child end"),Nc(Xu,Ut,Oc,ha),ro}const $a=ha.kind===170?Ea:Ku,jc=ht(ha,Ea,ta,Ut,Oc,$a);return Dt(ha,so,Ea,Fi,jc.indentation,jc.delta),so=Ut,Rr&&Gs.kind===209&&ro===-1&&(ro=jc.indentation),ro}function di(ha,ro,Gs,Oc){ce.assert(L8(ha)),ce.assert(!rh(ha));const _u=L0e(ro,ha);let Ku=Oc,al=Gs;if(!RR(t,ha.pos,ha.end)){ha.endha.pos)break;if(Ea.token.kind===_u){al=O.getLineAndCharacterOfPosition(Ea.token.pos).line,Nc(Ea,ro,Oc,ro);let Fi;if(Be!==-1)Fi=Be;else{const ta=wA(Ea.token.pos,O);Fi=$x.findFirstNonWhitespaceColumn(ta,Ea.token.pos,O,y)}Ku=_t(ro,Gs,Fi,y.indentSize)}else Nc(Ea,ro,Oc,ro)}let Rr=-1;for(let Ea=0;Ealt(jc.pos,$a,!1))}Fi!==-1&&ta&&(lt(ha.token.pos,Fi,Rr===1),Ne=Ea.line,Be=Fi)}m.advance(),so=ro}}function Ft(Ut,In,gr,Cr){for(const ei of Ut){const Gn=sS(t,ei);switch(ei.kind){case 3:Gn&&tt(ei,In,!gr),gr=!1;break;case 2:gr&&Gn&&Cr(ei),gr=!1;break;case 4:gr=!0;break}}return gr}function it(Ut,In,gr,Cr){for(const ei of Ut)if(q$(ei.kind)&&sS(t,ei)){const Gn=O.getLineAndCharacterOfPosition(ei.pos);Ye(ei,Gn,In,gr,Cr)}}function Ye(Ut,In,gr,Cr,ei){const Gn=W(Ut);let Ur=0;if(!Gn)if(oe)Ur=ut(Ut,In.line,gr,oe,ue,de,Cr,ei);else{const so=O.getLineAndCharacterOfPosition(t.pos);Mn(so.line,In.line)}return oe=Ut,te=Ut.end,de=gr,ue=In.line,Ur}function ut(Ut,In,gr,Cr,ei,Gn,Ur,so){ee.updateContext(Cr,Gn,Ut,gr,Ur);const ho=T(ee);let di=ee.options.trimTrailingWhitespace!==!1,Nc=0;return ho?bo(ho,ha=>{if(Nc=Xr(ha,Cr,ei,Ut,In),so)switch(Nc){case 2:gr.getStart(O)===Ut.pos&&so.recomputeIndentation(!1,Ur);break;case 1:gr.getStart(O)===Ut.pos&&so.recomputeIndentation(!0,Ur);break;default:ce.assert(Nc===0)}di=di&&!(ha.action&16)&&ha.flags!==1}):di=di&&Ut.kind!==1,In!==ei&&di&&Mn(ei,In,Cr),Nc}function lt(Ut,In,gr){const Cr=nPe(In,y);if(gr)pn(Ut,0,Cr);else{const ei=O.getLineAndCharacterOfPosition(Ut),Gn=mP(ei.line,O);(In!==zt(Gn,ei.character)||Wt(Cr,Gn))&&pn(Gn,ei.character,Cr)}}function zt(Ut,In){let gr=0;for(let Cr=0;Cr0){const Ku=nPe(_u,y);pn(Gs,Oc.character,Ku)}else on(Gs,Oc.character)}}function Mn(Ut,In,gr){for(let Cr=Ut;CrGn)continue;const Ur=kn(ei,Gn);Ur!==-1&&(ce.assert(Ur===ei||!HD(O.text.charCodeAt(Ur-1))),on(Ur,Gn+1-Ur))}}function kn(Ut,In){let gr=In;for(;gr>=Ut&&HD(O.text.charCodeAt(gr));)gr--;return gr!==In?gr+1:-1}function cr(Ut){let In=oe?oe.end:t.pos;for(const gr of Ut)q$(gr.kind)&&(InH$(W,r)||r===W.end&&(W.kind===2||r===t.getFullWidth()))}function L0e(t,r){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===r)return 30;if(t.parameters===r)return 21;break;case 213:case 214:if(t.typeArguments===r)return 30;if(t.arguments===r)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===r)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===r)return 30;break;case 187:return 19}return 0}function CZe(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function nPe(t,r){if((!rPe||rPe.tabSize!==r.tabSize||rPe.indentSize!==r.indentSize)&&(rPe={tabSize:r.tabSize,indentSize:r.indentSize},Aue=qq=void 0),r.convertTabsToSpaces){let l;const m=Math.floor(t/r.indentSize),y=t%r.indentSize;return qq||(qq=[]),qq[m]===void 0?(l=PP(" ",r.indentSize*m),qq[m]=l):l=qq[m],y?l+PP(" ",y):l}else{const l=Math.floor(t/r.tabSize),m=t-l*r.tabSize;let y;return Aue||(Aue=[]),Aue[l]===void 0?Aue[l]=y=PP(" ",l):y=Aue[l],m?y+PP(" ",m):y}}var rPe,Aue,qq,iPe=G({"src/services/formatting/formatting.ts"(){El(),qx()}}),$x,Cue=G({"src/services/formatting/smartIndenter.ts"(){El(),qx(),(t=>{let r;(tt=>{tt[tt.Unknown=-1]="Unknown"})(r||(r={}));function s(tt,Mn,kn,cr=!1){if(tt>Mn.text.length)return D(kn);if(kn.indentStyle===0)return 0;const un=T0(tt,Mn,void 0,!0),on=fWe(Mn,tt,un||null);if(on&&on.kind===3)return l(Mn,tt,kn,on);if(!un)return D(kn);if(Vge(un.kind)&&un.getStart(Mn)<=tt&&tt=0),un<=on)return Ye(mP(on,tt),Mn,tt,kn);const pn=mP(un,tt),{column:Or,character:Xr}=it(pn,Mn,tt,kn);return Or===0?Or:tt.text.charCodeAt(pn+Xr)===42?Or-1:Or}function m(tt,Mn,kn){let cr=Mn;for(;cr>0;){const on=tt.text.charCodeAt(cr);if(!UD(on))break;cr--}const un=wA(cr,tt);return Ye(un,cr,tt,kn)}function y(tt,Mn,kn,cr,un,on){let pn,Or=kn;for(;Or;){if(Ux(Or,Mn,tt)&&zt(on,Or,pn,tt,!0)){const Ut=oe(Or,tt),In=te(kn,Or,cr,tt),gr=In!==0?un&&In===2?on.indentSize:0:cr!==Ut.line?on.indentSize:0;return I(Or,Ut,void 0,gr,tt,!0,on)}const Xr=_t(Or,tt,on,!0);if(Xr!==-1)return Xr;pn=Or,Or=Or.parent}return D(on)}function T(tt,Mn,kn,cr){const un=kn.getLineAndCharacterOfPosition(tt.getStart(kn));return I(tt,un,Mn,0,kn,!1,cr)}t.getIndentationForNode=T;function D(tt){return tt.baseIndentSize||0}t.getBaseIndentation=D;function I(tt,Mn,kn,cr,un,on,pn){var Or;let Xr=tt.parent;for(;Xr;){let Ut=!0;if(kn){const ei=tt.getStart(un);Ut=eikn.end}const In=W(Xr,tt,un),gr=In.line===Mn.line||ue(Xr,tt,Mn.line,un);if(Ut){const ei=(Or=Ve(tt,un))==null?void 0:Or[0],Gn=!!ei&&oe(ei,un).line>In.line;let Ur=_t(tt,un,pn,Gn);if(Ur!==-1||(Ur=V(tt,Xr,Mn,gr,un,pn),Ur!==-1))return Ur+cr}zt(pn,Xr,tt,un,on)&&!gr&&(cr+=pn.indentSize);const Cr=de(Xr,tt,Mn.line,un);tt=Xr,Xr=tt.parent,Mn=Cr?un.getLineAndCharacterOfPosition(tt.getStart(un)):In}return cr+D(pn)}function W(tt,Mn,kn){const cr=Ve(Mn,kn),un=cr?cr.pos:tt.getStart(kn);return kn.getLineAndCharacterOfPosition(un)}function O(tt,Mn,kn){const cr=CZ(tt);return cr&&cr.listItemIndex>0?Dt(cr.list.getChildren(),cr.listItemIndex-1,Mn,kn):-1}function V(tt,Mn,kn,cr,un,on){return(dl(tt)||YX(tt))&&(Mn.kind===312||!cr)?Ft(kn,un,on):-1}let ee;(tt=>{tt[tt.Unknown=0]="Unknown",tt[tt.OpenBrace=1]="OpenBrace",tt[tt.CloseBrace=2]="CloseBrace"})(ee||(ee={}));function te(tt,Mn,kn,cr){const un=Cj(tt,Mn,cr);if(!un)return 0;if(un.kind===19)return 1;if(un.kind===20){const on=oe(un,cr).line;return kn===on?2:0}return 0}function oe(tt,Mn){return Mn.getLineAndCharacterOfPosition(tt.getStart(Mn))}function de(tt,Mn,kn,cr){if(!(el(tt)&&ni(tt.arguments,Mn)))return!1;const un=tt.expression.getEnd();return Ah(cr,un).line===kn}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=de;function ue(tt,Mn,kn,cr){if(tt.kind===245&&tt.elseStatement===Mn){const un=Wm(tt,93,cr);return ce.assert(un!==void 0),oe(un,cr).line===kn}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=ue;function Ne(tt,Mn,kn,cr){if(vk(tt)&&(Mn===tt.whenTrue||Mn===tt.whenFalse)){const un=Ah(cr,tt.condition.end).line;if(Mn===tt.whenTrue)return kn===un;{const on=oe(tt.whenTrue,cr).line,pn=Ah(cr,tt.whenTrue.end).line;return un===on&&pn===kn}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Ne;function Be(tt,Mn,kn,cr){if(IN(tt)){if(!tt.arguments)return!1;const un=lr(tt.arguments,Xr=>Xr.pos===Mn.pos);if(!un)return!1;const on=tt.arguments.indexOf(un);if(on===0)return!1;const pn=tt.arguments[on-1],Or=Ah(cr,pn.getEnd()).line;if(kn===Or)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=Be;function Ve(tt,Mn){return tt.parent&&Le(tt.getStart(Mn),tt.getEnd(),tt.parent,Mn)}t.getContainingList=Ve;function pt(tt,Mn,kn){return Mn&&Le(tt,tt,Mn,kn)}function Le(tt,Mn,kn,cr){switch(kn.kind){case 183:return un(kn.typeArguments);case 210:return un(kn.properties);case 209:return un(kn.elements);case 187:return un(kn.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return un(kn.typeParameters)||un(kn.parameters);case 177:return un(kn.parameters);case 263:case 231:case 264:case 265:case 352:return un(kn.typeParameters);case 214:case 213:return un(kn.typeArguments)||un(kn.arguments);case 261:return un(kn.declarations);case 275:case 279:return un(kn.elements);case 206:case 207:return un(kn.elements)}function un(on){return on&&AZ(ht(kn,on,cr),tt,Mn)?on:void 0}}function ht(tt,Mn,kn){const cr=tt.getChildren(kn);for(let un=1;un=0&&Mn=0;pn--){if(tt[pn].kind===28)continue;if(kn.getLineAndCharacterOfPosition(tt[pn].end).line!==on.line)return Ft(on,kn,cr);on=oe(tt[pn],kn)}return-1}function Ft(tt,Mn,kn){const cr=Mn.getPositionOfLineAndCharacter(tt.line,0);return Ye(cr,cr+tt.character,Mn,kn)}function it(tt,Mn,kn,cr){let un=0,on=0;for(let pn=tt;pnU9e,FormattingRequestKind:()=>x0e,RuleAction:()=>C0e,RuleFlags:()=>$9e,SmartIndenter:()=>$x,anyContext:()=>ate,createTextRangeWithKind:()=>ste,formatDocument:()=>Mmt,formatNodeGivenIndentation:()=>Bmt,formatOnClosingCurly:()=>Rmt,formatOnEnter:()=>cte,formatOnOpeningCurly:()=>tPe,formatOnSemicolon:()=>wmt,formatSelection:()=>Lmt,getAllRules:()=>ol,getFormatContext:()=>Amt,getFormattingScanner:()=>Hke,getIndentationString:()=>nPe,getRangeOfEnclosingComment:()=>fWe});var qx=G({"src/services/_namespaces/ts.formatting.ts"(){H9e(),A0e(),cZe(),xmt(),R0e(),iPe(),Cue()}}),El=G({"src/services/_namespaces/ts.ts"(){Ad(),Dge(),Wse(),BAe(),VAe(),JAe(),$Ae(),qAe(),Zct(),Q8e(),f$e(),aCe(),clt(),h$e(),Mqe(),mDe(),TDe(),zqe(),kOe(),POe(),hp(),Zve(),u9e(),rpt(),spt(),bpt(),c3e(),Ihe(),kpt(),Rpt(),MP(),Fpt(),nmt(),XQe(),tZe(),V9e(),qx()}});function V0(){return kZe??(kZe=new en(At))}function lte(t,r,s,l,m){let y=r?"DeprecationError: ":"DeprecationWarning: ";return y+=`'${t}' `,y+=l?`has been deprecated since v${l}`:"is deprecated",y+=r?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",y+=m?` ${LT(m,[t],0)}`:"",y}function xl(t,r,s,l){const m=lte(t,!0,r,s,l);return()=>{throw new TypeError(m)}}function zmt(t,r,s,l){let m=!1;return()=>{IZe&&!m&&(ce.log.warn(lte(t,!1,r,s,l)),m=!0)}}function DZe(t,r={}){const s=typeof r.typeScriptVersion=="string"?new en(r.typeScriptVersion):r.typeScriptVersion??V0(),l=typeof r.errorAfter=="string"?new en(r.errorAfter):r.errorAfter,m=typeof r.warnAfter=="string"?new en(r.warnAfter):r.warnAfter,y=typeof r.since=="string"?new en(r.since):r.since??m,T=r.error||l&&s.compareTo(l)>=0,D=!m||s.compareTo(m)>=0;return T?xl(t,l,y,r.message):D?zmt(t,l,y,r.message):ku}function Gmt(t,r){return function(){return t(),r.apply(this,arguments)}}function _We(t,r){const s=DZe((r==null?void 0:r.name)??ce.getFunctionName(t),r);return Gmt(s,t)}var IZe,kZe,oPe=G({"src/deprecatedCompat/deprecate.ts"(){O0e(),IZe=!0}});function aPe(t,r,s,l){if(Object.defineProperty(y,"name",{...Object.getOwnPropertyDescriptor(y,"name"),value:t}),l)for(const T of Object.keys(l)){const D=+T;!isNaN(D)&&ef(r,`${D}`)&&(r[D]=_We(r[D],{...l[D],name:t}))}const m=PZe(r,s);return y;function y(...T){const D=m(T),I=D!==void 0?r[D]:void 0;if(typeof I=="function")return I(...T);throw new TypeError("Invalid arguments")}}function PZe(t,r){return s=>{for(let l=0;ef(t,`${l}`)&&ef(r,`${l}`);l++){const m=r[l];if(m(s))return l}}}function NZe(t){return{overload:r=>({bind:s=>({finish:()=>aPe(t,r,s),deprecate:l=>({finish:()=>aPe(t,r,s,l)})})})}}var sPe=G({"src/deprecatedCompat/deprecations.ts"(){O0e(),oPe()}}),jmt=G({"src/deprecatedCompat/5.0/identifierProperties.ts"(){O0e(),oPe(),wSe(t=>{const r=t.getIdentifierConstructor();ef(r.prototype,"originalKeywordKind")||Object.defineProperty(r.prototype,"originalKeywordKind",{get:_We(function(){return ML(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ef(r.prototype,"isInJSDocNamespace")||Object.defineProperty(r.prototype,"isInJSDocNamespace",{get:_We(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."})})})}}),O0e=G({"src/deprecatedCompat/_namespaces/ts.ts"(){Ad(),sPe(),jmt()}}),wZe={};Oe(wZe,{ANONYMOUS:()=>cB,AccessFlags:()=>mre,AssertionLevel:()=>xz,AssignmentDeclarationKind:()=>Rz,AssignmentKind:()=>voe,Associativity:()=>oEe,BreakpointResolver:()=>Aq,BuilderFileEmit:()=>age,BuilderProgramKind:()=>sge,BuilderState:()=>sD,BundleFileSectionKind:()=>TTe,CallHierarchy:()=>Dq,CharacterCodes:()=>Pre,CheckFlags:()=>ure,CheckMode:()=>Aae,ClassificationType:()=>Rge,ClassificationTypeNames:()=>Fse,CommentDirectiveType:()=>Yne,Comparison:()=>sn,CompletionInfoFlags:()=>lx,CompletionTriggerKind:()=>D8e,Completions:()=>ow,ConfigFileProgramReloadLevel:()=>w4e,ContainerFlags:()=>MLe,ContextFlags:()=>ire,CoreServicesShimHostAdapter:()=>vDe,Debug:()=>ce,DiagnosticCategory:()=>DU,Diagnostics:()=>w,DocumentHighlights:()=>mhe,ElementFlags:()=>pre,EmitFlags:()=>IX,EmitHint:()=>Rre,EmitOnly:()=>Zne,EndOfLineState:()=>Rse,EnumKind:()=>lre,ExitStatus:()=>tre,ExportKind:()=>F8e,Extension:()=>Nre,ExternalEmitHelpers:()=>kU,FileIncludeKind:()=>hX,FilePreprocessingDiagnosticsKind:()=>Qne,FileSystemEntryKind:()=>Gre,FileWatcherEventKind:()=>NU,FindAllReferences:()=>Wf,FlattenLevel:()=>i4e,FlowFlags:()=>AU,ForegroundColorEscapeSequences:()=>ise,FunctionFlags:()=>iEe,GeneratedIdentifierFlags:()=>mX,GetLiteralTextFlags:()=>CY,GoToDefinition:()=>D4,HighlightSpanKind:()=>pZ,IdentifierNameMap:()=>OW,IdentifierNameMultiMap:()=>hme,ImportKind:()=>Tce,ImportsNotUsedAsValues:()=>Dre,IndentStyle:()=>mZ,IndexFlags:()=>gre,IndexKind:()=>t9,InferenceFlags:()=>Tre,InferencePriority:()=>bre,InlayHintKind:()=>B$,InlayHints:()=>m9e,InternalEmitFlags:()=>wre,InternalSymbolName:()=>fre,InvalidatedProjectKind:()=>Sj,JsDoc:()=>VF,JsTyping:()=>EF,JsxEmit:()=>Cre,JsxFlags:()=>dX,JsxReferenceKind:()=>hre,LanguageServiceMode:()=>Nge,LanguageServiceShimHostAdapter:()=>hye,LanguageVariant:()=>Ire,LexicalEnvironmentFlags:()=>Lz,ListFormat:()=>ZO,LogLevel:()=>hN,MemberOverrideStatus:()=>nre,ModifierFlags:()=>QO,ModuleDetectionKind:()=>Ere,ModuleInstanceState:()=>w2e,ModuleKind:()=>Mz,ModuleResolutionKind:()=>n9,ModuleSpecifierEnding:()=>oJ,NavigateTo:()=>s3e,NavigationBar:()=>b3e,NewLineKind:()=>xX,NodeBuilderFlags:()=>yX,NodeCheckFlags:()=>_re,NodeFactoryFlags:()=>S6e,NodeFlags:()=>_X,NodeResolutionFeatures:()=>C2,ObjectFlags:()=>CU,OperationCanceledException:()=>Nz,OperatorPrecedence:()=>boe,OrganizeImports:()=>CI,OrganizeImportsMode:()=>kk,OuterExpressionKinds:()=>bTe,OutliningElementsCollector:()=>D9e,OutliningSpanKind:()=>Nse,OutputFileType:()=>wse,PackageJsonAutoImportPreference:()=>Pge,PackageJsonDependencyGroup:()=>kge,PatternMatchKind:()=>Dce,PollingInterval:()=>zre,PollingWatchKind:()=>Are,PragmaKindFlags:()=>B_e,PrivateIdentifierKind:()=>Poe,ProcessLevel:()=>mE,QuotePreference:()=>$3,RelationComparisonResult:()=>pX,Rename:()=>wke,ScriptElementKind:()=>Lse,ScriptElementKindModifier:()=>Ose,ScriptKind:()=>IU,ScriptSnapshot:()=>Ige,ScriptTarget:()=>AX,SemanticClassificationFormat:()=>C8e,SemanticMeaning:()=>QZ,SemicolonPreference:()=>Pse,SignatureCheckMode:()=>Cae,SignatureFlags:()=>wz,SignatureHelp:()=>b0e,SignatureKind:()=>yre,SmartSelectionRange:()=>L9e,SnippetKind:()=>DX,SortKind:()=>AT,StructureIsReused:()=>ere,SymbolAccessibility:()=>sre,SymbolDisplay:()=>I4,SymbolDisplayPartKind:()=>z$,SymbolFlags:()=>TX,SymbolFormatFlags:()=>are,SyntaxKind:()=>Pz,SyntheticSymbolKind:()=>cre,Ternary:()=>Sre,ThrottledCancellationToken:()=>dye,TokenClass:()=>Mse,TokenFlags:()=>gX,TransformFlags:()=>CX,TypeFacts:()=>h$,TypeFlags:()=>SX,TypeFormatFlags:()=>ore,TypeMapKind:()=>vre,TypePredicateKind:()=>vX,TypeReferenceSerializationKind:()=>bX,TypeScriptServicesFactory:()=>Bqe,UnionReduction:()=>rre,UpToDateStatusType:()=>e8e,VarianceFlags:()=>dre,Version:()=>en,VersionRange:()=>Ar,WatchDirectoryFlags:()=>kre,WatchDirectoryKind:()=>xre,WatchFileKind:()=>EX,WatchLogLevel:()=>Vme,WatchType:()=>pC,accessPrivateIdentifier:()=>OHe,addDisposableResourceHelper:()=>IJ,addEmitFlags:()=>cI,addEmitHelper:()=>lW,addEmitHelpers:()=>JN,addInternalEmitFlags:()=>_s,addNodeFactoryPatcher:()=>y6e,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>dy,addSyntheticTrailingComment:()=>sW,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>NG,affectsDeclarationPathOptionDeclarations:()=>tae,affectsEmitOptionDeclarations:()=>a$,allKeysStartWithDot:()=>A6,altDirectorySeparator:()=>N,and:()=>bb,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>bz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>Tz,arraysEqual:()=>sf,assertType:()=>X5,assign:()=>AS,assignHelper:()=>fJ,asyncDelegator:()=>dJ,asyncGeneratorHelper:()=>_J,asyncSuperHelper:()=>PG,asyncValues:()=>T3,attachFileToDiagnostics:()=>jN,awaitHelper:()=>b3,awaiterHelper:()=>mJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>YN,breakIntoCharacterSpans:()=>K8e,breakIntoWordSpans:()=>c$e,buildLinkParts:()=>rq,buildOpts:()=>s$,buildOverload:()=>NZe,bundlerModuleNameResolver:()=>x2e,canBeConvertedToAsync:()=>kce,canHaveDecorators:()=>I3,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>LN,canHaveIllegalDecorators:()=>BEe,canHaveIllegalModifiers:()=>zG,canHaveIllegalType:()=>WEe,canHaveIllegalTypeParameters:()=>joe,canHaveJSDoc:()=>YM,canHaveLocals:()=>lk,canHaveModifiers:()=>nx,canHaveSymbol:()=>YD,canJsonReportNoInputFiles:()=>eae,canProduceDiagnostics:()=>cxe,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Rxe,canWatchAtTypes:()=>J4e,canWatchDirectoryOrFile:()=>cge,cartesianProduct:()=>gU,cast:()=>uc,chainBundle:()=>Vx,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>RU,changeCompilerHostLikeToUseCache:()=>JQ,changeExtension:()=>SA,changesAffectModuleResolution:()=>g9,changesAffectingProgramStructure:()=>Jb,childIsDecorated:()=>oH,classElementOrClassElementParameterIsDecorated:()=>oG,classHasClassThisAssignment:()=>o4e,classHasDeclaredOrExplicitlyAssignedName:()=>mj,classHasExplicitlyAssignedName:()=>X2e,classOrConstructorParameterIsDecorated:()=>Mx,classPrivateFieldGetHelper:()=>kG,classPrivateFieldInHelper:()=>DJ,classPrivateFieldSetHelper:()=>CJ,classicNameResolver:()=>pae,classifier:()=>Rd,cleanExtendedConfigCache:()=>C$,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>zme,climbPastPropertyAccess:()=>hZ,climbPastPropertyOrElementAccess:()=>V$,clone:()=>S8,cloneCompilerOptions:()=>DAe,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>dC,codefix:()=>If,collapseTextChangeRangesAcrossMultipleVersions:()=>OU,collectExternalModuleInfo:()=>J2e,combine:()=>FD,combinePaths:()=>tf,commentPragmas:()=>z_e,commonOptionsWithBuild:()=>uF,commonPackageFolders:()=>DY,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>bEe,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>wM,comparePathsCaseInsensitive:()=>PX,comparePathsCaseSensitive:()=>sP,comparePatternKeys:()=>xQ,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>zpe,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>YG,compilerOptionsIndicateEsModules:()=>nce,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>Ume,computeLineAndCharacterOfPosition:()=>Sb,computeLineOfPosition:()=>I8,computeLineStarts:()=>i7,computePositionOfLineAndCharacter:()=>cP,computeSignature:()=>bF,computeSignatureWithDiagnostics:()=>Dxe,computeSuggestionDiagnostics:()=>tee,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>Lj,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>QY,containsParseError:()=>QU,containsPath:()=>GC,convertCompilerOptionsForTelemetry:()=>fLe,convertCompilerOptionsFromJson:()=>jUe,convertJsonOption:()=>lF,convertToBase64:()=>bSe,convertToJson:()=>Koe,convertToObject:()=>rLe,convertToOptionsWithAbsolutePaths:()=>oLe,convertToRelativePath:()=>r7,convertToTSConfig:()=>RUe,convertTypeAcquisitionFromJson:()=>Pst,copyComments:()=>kF,copyEntries:()=>tY,copyLeadingComments:()=>tB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>oq,copyTrailingComments:()=>zT,couldStartTrivia:()=>J_e,countWhere:()=>dp,createAbstractBuilder:()=>Pxe,createAccessorPropertyBackingField:()=>$J,createAccessorPropertyGetRedirector:()=>jG,createAccessorPropertySetRedirector:()=>yUe,createBaseNodeFactory:()=>Kde,createBinaryExpressionTrampoline:()=>VEe,createBindingHelper:()=>$7,createBuildInfo:()=>hF,createBuilderProgram:()=>Ixe,createBuilderProgramUsingProgramBuildInfo:()=>rge,createBuilderStatusReporter:()=>hge,createCacheWithRedirects:()=>Xpe,createCacheableExportInfoMap:()=>uT,createCachedDirectoryStructureHost:()=>Bme,createClassNamedEvaluationHelperBlock:()=>bme,createClassThisAssignmentBlock:()=>BHe,createClassifier:()=>W8e,createCommentDirectivesMap:()=>Lv,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Q6e,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>Hme,createCompilerHostFromProgramHost:()=>vse,createCompilerHostWorker:()=>HQ,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>vY,createDiagnosticForFileFromMessageChain:()=>Rx,createDiagnosticForNode:()=>kc,createDiagnosticForNodeArray:()=>Zz,createDiagnosticForNodeArrayFromMessageChain:()=>yde,createDiagnosticForNodeFromMessageChain:()=>RN,createDiagnosticForNodeInSourceFile:()=>M0,createDiagnosticForRange:()=>oY,createDiagnosticMessageChainFromDiagnostic:()=>G8,createDiagnosticReporter:()=>iZ,createDocumentPositionMapper:()=>XLe,createDocumentRegistry:()=>j8e,createDocumentRegistryInternal:()=>n$e,createEmitAndSemanticDiagnosticsBuilderProgram:()=>fse,createEmitHelperFactory:()=>vEe,createEmptyExports:()=>jJ,createExpressionForJsxElement:()=>sF,createExpressionForJsxFragment:()=>PEe,createExpressionForObjectLiteralElementLike:()=>ype,createExpressionForPropertyName:()=>hpe,createExpressionFromEntityName:()=>gpe,createExternalHelpersImportDeclarationIfNeeded:()=>bpe,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>aE,createForOfBindingStatement:()=>mpe,createGetCanonicalFileName:()=>_v,createGetSourceFile:()=>R4e,createGetSymbolAccessibilityDiagnosticForNode:()=>f4,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Nme,createGetSymbolWalker:()=>gae,createIncrementalCompilerHost:()=>Jxe,createIncrementalProgram:()=>$xe,createInputFiles:()=>mEe,createInputFilesWithFilePaths:()=>b6e,createInputFilesWithFileTexts:()=>T6e,createJsxFactoryExpression:()=>k6e,createLanguageService:()=>kqe,createLanguageServiceSourceFile:()=>uDe,createMemberAccessForPropertyName:()=>e4,createModeAwareCache:()=>N3,createModeAwareCacheKey:()=>f$,createModuleNotFoundChain:()=>jMe,createModuleResolutionCache:()=>IR,createModuleResolutionLoader:()=>Kae,createModuleSpecifierResolutionHost:()=>y4,createMultiMap:()=>zg,createNodeConverters:()=>dEe,createNodeFactory:()=>aJ,createOptionNameMap:()=>nQ,createOverload:()=>aPe,createPackageJsonImportFilter:()=>oB,createPackageJsonInfo:()=>$Z,createParenthesizerRules:()=>iUe,createPatternMatcher:()=>r$e,createPrependNodes:()=>YQ,createPrinter:()=>_4,createPrinterWithDefaults:()=>k4e,createPrinterWithRemoveComments:()=>GW,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>P4e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>jQ,createProgram:()=>m4,createProgramHost:()=>JW,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>oge,createResolutionCache:()=>q4e,createRuntimeTypeSerializer:()=>GHe,createScanner:()=>MM,createSemanticDiagnosticsBuilderProgram:()=>kxe,createSet:()=>J5,createSolutionBuilder:()=>xse,createSolutionBuilderHost:()=>Lct,createSolutionBuilderWithWatch:()=>vj,createSolutionBuilderWithWatchHost:()=>Oct,createSortedArray:()=>g2,createSourceFile:()=>Ape,createSourceMapGenerator:()=>NQ,createSourceMapSource:()=>sUe,createSuperAccessVariableStatement:()=>Lae,createSymbolTable:()=>Td,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>Fre,createTextChange:()=>NZ,createTextChangeFromStartLength:()=>kP,createTextChangeRange:()=>BX,createTextRangeFromNode:()=>Y$,createTextRangeFromSpan:()=>PZ,createTextSpan:()=>nb,createTextSpanFromBounds:()=>R0,createTextSpanFromNode:()=>gE,createTextSpanFromRange:()=>FR,createTextSpanFromStringLiteralLikeContent:()=>Hge,createTextWriter:()=>wie,createTokenRange:()=>Hie,createTypeChecker:()=>B2e,createTypeReferenceDirectiveResolutionCache:()=>T2e,createTypeReferenceResolutionLoader:()=>PA,createUnparsedSourceFile:()=>pEe,createWatchCompilerHost:()=>pge,createWatchCompilerHostOfConfigFile:()=>_ge,createWatchCompilerHostOfFilesAndCompilerOptions:()=>dge,createWatchFactory:()=>yse,createWatchHost:()=>hse,createWatchProgram:()=>L$,createWatchStatusReporter:()=>hJe,createWriteFileMeasuringIO:()=>Jme,declarationNameToString:()=>Ud,decodeMappings:()=>kae,decodedTextSpanIntersectsWith:()=>o9,decorateHelper:()=>MY,deduplicate:()=>th,defaultIncludeSpec:()=>QG,defaultInitCompilerOptions:()=>uQ,defaultMaximumTruncationLength:()=>vG,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>fX,diagnosticToString:()=>sB,directoryProbablyExists:()=>O0,directorySeparator:()=>q,displayPart:()=>C1,displayPartsToString:()=>lDe,disposeEmitNodes:()=>hEe,disposeResourcesHelper:()=>kJ,documentSpansEqual:()=>$ge,dumpTracingLegend:()=>Xne,elementAt:()=>PM,elideNodes:()=>UEe,emitComments:()=>Bie,emitDetachedComments:()=>gSe,emitFiles:()=>zW,emitFilesAndReportErrors:()=>gse,emitFilesAndReportErrorsAndGetExitStatus:()=>fge,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>e6e,emitNewLineBeforeLeadingComments:()=>hG,emitNewLineBeforeLeadingCommentsOfPosition:()=>qVe,emitSkippedWithNoDiagnostics:()=>lse,emitUsingBuildInfo:()=>Uae,emptyArray:()=>Zn,emptyFileSystemEntries:()=>xG,emptyMap:()=>zy,emptyOptions:()=>NA,emptySet:()=>gTe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>OE,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Rv,entityNameToString:()=>oE,enumerateInsertsAndDeletes:()=>mTe,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>lJ,escapeJsxAttributeString:()=>bY,escapeLeadingUnderscores:()=>ty,escapeNonAsciiString:()=>S2,escapeSnippetText:()=>nD,escapeString:()=>M7,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>REe,explainFiles:()=>pse,explainIfFileIsRedirectAndImpliedFormat:()=>aZ,exportAssignmentIsAlias:()=>ZM,exportStarHelper:()=>AJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>gJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>Coe,externalHelpersModuleNameText:()=>_6,factory:()=>be,fileExtensionIs:()=>Pg,fileExtensionIsOneOf:()=>ws,fileIncludeReasonToDiagnostics:()=>uge,fileShouldUseJavaScriptRequire:()=>WAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>Txe,find:()=>lr,findAncestor:()=>Kr,findBestPatternMatch:()=>qf,findChildOfKind:()=>Wm,findComputedPropertyNameCacheAssignment:()=>HEe,findConfigFile:()=>UQ,findContainingList:()=>Aj,findDiagnosticForNode:()=>gce,findFirstNonJsxWhitespaceToken:()=>P8e,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>CZ,findMap:()=>cs,findModifier:()=>YW,findNextToken:()=>Cj,findPackageJson:()=>$Je,findPackageJsons:()=>JZ,findPrecedingMatchingToken:()=>bv,findPrecedingToken:()=>T0,findSuperStatementIndexPath:()=>IA,findTokenOnLeftOfPosition:()=>Bge,findUseStrictPrologue:()=>JY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>Oj,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>_Ce,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>JEe,flattenDestructuringAssignment:()=>Ik,flattenDestructuringBinding:()=>yI,flattenDiagnosticMessageText:()=>p4,forEach:()=>Ot,forEachAncestor:()=>oie,forEachAncestorDirectory:()=>ok,forEachChild:()=>B_,forEachChildRecursively:()=>k3,forEachEmittedFile:()=>x$,forEachEnclosingBlockScopeContainer:()=>Qz,forEachEntry:()=>wT,forEachExternalModuleToImportFrom:()=>eee,forEachImportClauseDeclaration:()=>I7,forEachKey:()=>WL,forEachLeadingCommentRange:()=>SN,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>nG,forEachResolvedProjectReference:()=>vxe,forEachReturnStatement:()=>HM,forEachRight:()=>bo,forEachTrailingCommentRange:()=>Bz,forEachTsConfigPropArray:()=>sY,forEachUnique:()=>WZ,forEachYieldExpression:()=>nSe,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>NR,formatDiagnostic:()=>$ae,formatDiagnostics:()=>gxe,formatDiagnosticsWithColorAndContext:()=>qme,formatGeneratedName:()=>n4,formatGeneratedNamePart:()=>JJ,formatLocation:()=>hxe,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>Rb,fullTripleSlashAMDReferencePathRegEx:()=>yoe,fullTripleSlashReferencePathRegEx:()=>tJ,generateDjb2Hash:()=>G_e,generateTSConfig:()=>s2e,generatorHelper:()=>EJ,getAdjustedReferenceLocation:()=>k8e,getAdjustedRenameLocation:()=>CAe,getAliasDeclarationFromName:()=>YC,getAllAccessorDeclarations:()=>gG,getAllDecoratorsOfClass:()=>e4e,getAllDecoratorsOfClassElement:()=>$2e,getAllJSDocTags:()=>a9,getAllJSDocTagsOfKind:()=>xN,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Lme,getAllSuperTypeNodes:()=>fG,getAllUnscopedEmitHelpers:()=>ipe,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>e6,getAnyExtensionFromPath:()=>vl,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>x7,getAssignedName:()=>Y_e,getAssignedNameOfIdentifier:()=>T$,getAssignmentDeclarationKind:()=>Qy,getAssignmentDeclarationPropertyAccessKind:()=>N9,getAssignmentTargetKind:()=>QM,getAutomaticTypeDirectiveNames:()=>qpe,getBaseFileName:()=>Iy,getBinaryOperatorPrecedence:()=>TH,getBuildInfo:()=>Ome,getBuildInfoFileVersionMap:()=>ige,getBuildInfoText:()=>Vae,getBuildOrderFromAnyBuildOrder:()=>Kxe,getBuilderCreationParameters:()=>Cxe,getBuilderFileEmit:()=>B3,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>oC,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Gg,getCombinedNodeFlags:()=>qD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Ua,getCommentRange:()=>lI,getCommonSourceDirectory:()=>gF,getCommonSourceDirectoryOfConfig:()=>GQ,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>LUe,getConditions:()=>u$,getConfigFileParsingDiagnostics:()=>UW,getConstantValue:()=>cW,getContainerFlags:()=>RLe,getContainerNode:()=>j3,getContainingClass:()=>h0,getContainingClassExcludingClassDecorators:()=>MT,getContainingClassStaticBlock:()=>v7,getContainingFunction:()=>GE,getContainingFunctionDeclaration:()=>aSe,getContainingFunctionOrClassStaticBlock:()=>Ede,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>cle,getContextualTypeFromParent:()=>lce,getContextualTypeFromParentOrAncestorTypeNode:()=>Hse,getCurrentTime:()=>Ese,getDeclarationDiagnostics:()=>eJe,getDeclarationEmitExtensionForPath:()=>JL,getDeclarationEmitOutputFilePath:()=>Lie,getDeclarationEmitOutputFilePathWorker:()=>Oie,getDeclarationFromName:()=>O9,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Vm,getDeclarationsOfKind:()=>zVe,getDeclaredExpandoInitializer:()=>k9,getDecorators:()=>LL,getDefaultCompilerOptions:()=>sle,getDefaultExportInfoWorker:()=>GAe,getDefaultFormatCodeSettings:()=>hAe,getDefaultLibFileName:()=>qre,getDefaultLibFilePath:()=>lye,getDefaultLikeExportInfo:()=>_he,getDiagnosticText:()=>NUe,getDiagnosticsWithinSpan:()=>nhe,getDirectoryPath:()=>qc,getDirectoryToWatchFailedLookupLocation:()=>rZ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>$4e,getDocumentPositionMapper:()=>Z8e,getESModuleInterop:()=>b1,getEditsForFileRename:()=>V8e,getEffectiveBaseTypeNode:()=>hA,getEffectiveConstraintOfTypeParameter:()=>AN,getEffectiveContainerForJSDocTemplateTag:()=>q8,getEffectiveImplementsTypeNodes:()=>qb,getEffectiveInitializer:()=>j8,getEffectiveJSDocHost:()=>dH,getEffectiveModifierFlags:()=>tS,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>KVe,getEffectiveModifierFlagsNoCache:()=>aI,getEffectiveReturnTypeNode:()=>bA,getEffectiveSetAccessorTypeAnnotationNode:()=>mSe,getEffectiveTypeAnnotationNode:()=>Kb,getEffectiveTypeParameterDeclarations:()=>oR,getEffectiveTypeRoots:()=>$pe,getElementOrPropertyAccessArgumentExpressionOrName:()=>C7,getElementOrPropertyAccessName:()=>XC,getElementsOfBindingOrAssignmentPattern:()=>gI,getEmitDeclarations:()=>gv,getEmitFlags:()=>Tp,getEmitHelpers:()=>v3,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>Bs,getEnclosingContainer:()=>iE,getEncodedSemanticClassifications:()=>z8e,getEncodedSyntacticClassifications:()=>G8e,getEndLinePosition:()=>lie,getEntityNameFromTypeNode:()=>iH,getEntrypointsFromPackageJsonInfo:()=>DLe,getErrorCountForSummary:()=>Bxe,getErrorSpanForNode:()=>UM,getErrorSummaryText:()=>yJe,getEscapedTextOfIdentifierOrLiteral:()=>gY,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>jE,getExportAssignmentExpression:()=>uG,getExportInfoMap:()=>fq,getExportNeedsImportStarHelper:()=>RHe,getExpressionAssociativity:()=>bH,getExpressionPrecedence:()=>HL,getExternalHelpersModuleName:()=>BG,getExternalModuleImportEqualsDeclarationExpression:()=>S7,getExternalModuleName:()=>pY,getExternalModuleNameFromDeclaration:()=>TY,getExternalModuleNameFromPath:()=>Mde,getExternalModuleNameLiteral:()=>t4,getExternalModuleRequireArgument:()=>uY,getFallbackOptions:()=>jW,getFileEmitOutput:()=>hj,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>x6,getFileWatcherEventKind:()=>hMe,getFilesInErrorForSummary:()=>zxe,getFirstConstructorWithBody:()=>E2,getFirstIdentifier:()=>NS,getFirstNonSpaceCharacterPosition:()=>M6,getFirstProjectOutput:()=>_xe,getFixableErrorSpanExpression:()=>rhe,getFormatCodeSettingsForWriting:()=>che,getFullWidth:()=>KU,getFunctionFlags:()=>L0,getHeritageClause:()=>_G,getHostSignatureFromJSDoc:()=>VE,getIdentifierAutoGenerate:()=>d6,getIdentifierGeneratedImportReference:()=>RY,getIdentifierTypeArguments:()=>H7,getImmediatelyInvokedFunctionExpression:()=>GL,getImpliedNodeFormatForFile:()=>ew,getImpliedNodeFormatForFileWorker:()=>HW,getImportNeedsImportDefaultHelper:()=>ZLe,getImportNeedsImportStarHelper:()=>Nb,getIndentSize:()=>QC,getIndentString:()=>pG,getInferredLibraryNameResolveFrom:()=>Xae,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>w9,getInitializerOfBindingOrAssignmentElement:()=>C3,getInterfaceBaseTypeNodes:()=>F9,getInternalEmitFlags:()=>dh,getInvokedExpression:()=>T7,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>MMe,getJSDocClassTag:()=>BTe,getJSDocCommentRanges:()=>vde,getJSDocCommentsAndTags:()=>k7,getJSDocDeprecatedTag:()=>HTe,getJSDocDeprecatedTagNoCache:()=>Z_e,getJSDocEnumTag:()=>FM,getJSDocHost:()=>P7,getJSDocImplementsTags:()=>WTe,getJSDocOverrideTagNoCache:()=>UTe,getJSDocParameterTags:()=>Gz,getJSDocParameterTagsNoCache:()=>LTe,getJSDocPrivateTag:()=>FMe,getJSDocPrivateTagNoCache:()=>zTe,getJSDocProtectedTag:()=>GTe,getJSDocProtectedTagNoCache:()=>jTe,getJSDocPublicTag:()=>LMe,getJSDocPublicTagNoCache:()=>OMe,getJSDocReadonlyTag:()=>VTe,getJSDocReadonlyTagNoCache:()=>Xre,getJSDocReturnTag:()=>GX,getJSDocReturnType:()=>WU,getJSDocRoot:()=>pH,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>WM,getJSDocTags:()=>EN,getJSDocTagsNoCache:()=>Mat,getJSDocTemplateTag:()=>Yre,getJSDocThisTag:()=>iR,getJSDocType:()=>X1,getJSDocTypeAliasName:()=>YY,getJSDocTypeAssertionType:()=>qY,getJSDocTypeParameterDeclarations:()=>Wie,getJSDocTypeParameterTags:()=>Q_e,getJSDocTypeParameterTagsNoCache:()=>RMe,getJSDocTypeTag:()=>w8,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>Kpe,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>CS,getLeadingCommentRangesOfNode:()=>E9,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>KL,getLineAndCharacterOfPosition:()=>Ah,getLineInfo:()=>Xo,getLineOfLocalPosition:()=>BN,getLineOfLocalPositionFromLineMap:()=>iI,getLineStartPositionForPosition:()=>wA,getLineStarts:()=>q1,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>MX,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>dde,getLocalNameForExternalImport:()=>lb,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>oZ,getMappedContextSpan:()=>UJe,getMappedDocumentSpan:()=>nq,getMappedLocation:()=>Nj,getMatchedFileSpec:()=>mse,getMatchedIncludeSpec:()=>Vxe,getMeaningFromDeclaration:()=>G$,getMeaningFromLocation:()=>z3,getMembersOfDeclaration:()=>Tde,getModeForFileReference:()=>wR,getModeForResolutionAtIndex:()=>yxe,getModeForUsageLocation:()=>kA,getModifiedTime:()=>PU,getModifiers:()=>N8,getModuleInstanceState:()=>kR,getModuleNameStringLiteralAt:()=>k$,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>eq,getNameForExportedSymbol:()=>cq,getNameFromIndexInfo:()=>wN,getNameFromPropertyName:()=>Dj,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>a2e,getNameOfDeclaration:()=>o_,getNameOfExpando:()=>fY,getNameOfJSDocTypedef:()=>OM,getNameOrArgument:()=>dY,getNameTable:()=>fDe,getNamesForExportedSymbol:()=>qJe,getNamespaceDeclarationNode:()=>uH,getNewLineCharacter:()=>JE,getNewLineKind:()=>Fj,getNewLineOrDefaultFromHost:()=>NP,getNewTargetContainer:()=>cY,getNextJSDocCommentLocation:()=>cSe,getNodeForGeneratedName:()=>GG,getNodeId:()=>Im,getNodeKind:()=>g4,getNodeModifiers:()=>$$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>X_e,getNonAssignmentOperatorForCompoundAssignment:()=>wQ,getNonAugmentationDeclaration:()=>W8,getNonDecoratorTokenPosOfNode:()=>y9,getNormalizedAbsolutePath:()=>Su,getNormalizedAbsolutePathWithoutRoot:()=>U_e,getNormalizedPathComponents:()=>bN,getObjectFlags:()=>ji,getOperator:()=>QMe,getOperatorAssociativity:()=>B9,getOperatorPrecedence:()=>hY,getOptionFromName:()=>t2e,getOptionsForLibraryResolution:()=>SLe,getOptionsNameMap:()=>DW,getOrCreateEmitNode:()=>he,getOrCreateExternalHelpersModuleNameIfNeeded:()=>w6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Ic,getOriginalNodeId:()=>e1,getOriginalSourceFile:()=>Pie,getOutputDeclarationFileName:()=>O3,getOutputExtension:()=>zQ,getOutputFileNames:()=>nJe,getOutputPathsFor:()=>Gae,getOutputPathsForBundle:()=>sx,getOwnEmitOutputFilePath:()=>Ng,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>c4,getPackageJsonTypesVersionsPaths:()=>yQ,getPackageJsonsVisibleToFile:()=>pce,getPackageNameFromTypesPackageName:()=>_ae,getPackageScopeForPath:()=>eme,getParameterSymbolFromJSDoc:()=>mY,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>Nk,getParseTreeNode:()=>Il,getParsedCommandLineOfConfigFile:()=>QJ,getPathComponents:()=>g0,getPathComponentsRelativeTo:()=>NX,getPathFromPathComponents:()=>vf,getPathUpdater:()=>KAe,getPathsBasePath:()=>G9,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>tZ,getPositionOfLineAndCharacter:()=>xm,getPossibleGenericSignatures:()=>jge,getPossibleOriginalInputExtensionForExtension:()=>Fie,getPossibleTypeArgumentsInfo:()=>V3,getPreEmitDiagnostics:()=>M4e,getPrecedingNonSpaceCharacterPosition:()=>Rj,getPrivateIdentifier:()=>n4e,getProperties:()=>uj,getProperty:()=>T8,getPropertyArrayElementValue:()=>vie,getPropertyAssignmentAliasLikeExpression:()=>gH,getPropertyNameForPropertyNameNode:()=>WN,getPropertyNameForUniqueESSymbol:()=>YMe,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>HJ,getPropertySymbolFromBindingElement:()=>rce,getPropertySymbolsFromContextualType:()=>cye,getQuoteFromPreference:()=>Jge,getQuotePreference:()=>Jx,getRangesWhere:()=>eu,getRefactorContextSpan:()=>aB,getReferencedFileLocation:()=>VW,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>qp,getRelativePathFromFile:()=>wX,getRelativePathToDirectoryOrUrl:()=>Fz,getRenameLocation:()=>WR,getReplacementSpanForContextToken:()=>tce,getResolutionDiagnostic:()=>nse,getResolutionModeOverrideForClause:()=>D2,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>Rie,getResolvedModule:()=>XU,getResolvedTypeReferenceDirective:()=>GMe,getRestIndicatorOfBindingOrAssignmentElement:()=>OEe,getRestParameterElementType:()=>bde,getRightMostAssignedExpression:()=>mR,getRootDeclaration:()=>rI,getRootDirectoryOfResolutionCache:()=>Oxe,getRootLength:()=>vN,getRootPathSplitLength:()=>Fxe,getScriptKind:()=>M8e,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>rY,getSelectedEffectiveModifierFlags:()=>ZC,getSelectedSyntacticModifierFlags:()=>t6e,getSemanticClassifications:()=>B8e,getSemanticJsxChildren:()=>yY,getSetAccessorTypeAnnotationNode:()=>V9,getSetAccessorValueParameter:()=>yR,getSetExternalModuleIndicator:()=>q9,getShebang:()=>tR,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Die,getSingleVariableOfVariableStatement:()=>$8,getSnapshotText:()=>RZ,getSnippetElement:()=>yEe,getSourceFileOfModule:()=>ny,getSourceFileOfNode:()=>ns,getSourceFilePathInNewDir:()=>j9,getSourceFilePathInNewDirWorker:()=>Z8,getSourceFileVersionAsHashFromText:()=>sZ,getSourceFilesToEmit:()=>dSe,getSourceMapRange:()=>cE,getSourceMapper:()=>oCe,getSourceTextOfNodeFromSourceFile:()=>wd,getSpanOfTokenAtPosition:()=>nC,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>mP,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>lp,getStaticPropertiesAndClassStaticBlock:()=>v$,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>lj,getSuperContainer:()=>rG,getSupportedCodeFixes:()=>TOe,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>Mj,getSymbolId:()=>Bp,getSymbolNameForPrivateIdentifier:()=>R7,getSymbolTarget:()=>HJe,getSyntacticClassifications:()=>e$e,getSyntacticModifierFlags:()=>n6,getSyntacticModifierFlagsNoCache:()=>F7,getSynthesizedDeepClone:()=>Rg,getSynthesizedDeepCloneWithReplacements:()=>iq,getSynthesizedDeepClones:()=>J3,getSynthesizedDeepClonesWithReplacements:()=>sce,getSyntheticLeadingComments:()=>U7,getSyntheticTrailingComments:()=>y3,getTargetLabel:()=>yZ,getTargetOfBindingOrAssignmentElement:()=>oD,getTemporaryModuleResolutionState:()=>p$,getTextOfConstantValue:()=>ZU,getTextOfIdentifierOrLiteral:()=>aC,getTextOfJSDocComment:()=>jz,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Yv,getTextOfNodeFromSourceText:()=>die,getTextOfPropertyName:()=>g7,getThisContainer:()=>Q1,getThisParameter:()=>$L,getTokenAtPosition:()=>bf,getTokenPosOfNode:()=>Xz,getTokenSourceMapRange:()=>DG,getTouchingPropertyName:()=>Hx,getTouchingToken:()=>qse,getTrailingCommentRanges:()=>Nx,getTrailingSemicolonDeferringWriter:()=>Rde,getTransformFlagsSubtreeExclusions:()=>qs,getTransformers:()=>x4e,getTsBuildInfoEmitOutputFilePath:()=>ZN,getTsConfigObjectLiteralExpression:()=>A9,getTsConfigPropArrayElementValue:()=>RT,getTypeAnnotationNode:()=>pSe,getTypeArgumentOrTypeParameterList:()=>Zse,getTypeKeywordOfTypeOnlyImport:()=>ice,getTypeNode:()=>rpe,getTypeNodeIfAccessible:()=>PF,getTypeParameterFromJsDoc:()=>lSe,getTypeParameterOwner:()=>wMe,getTypesPackageName:()=>tme,getUILocale:()=>dTe,getUniqueName:()=>eB,getUniqueSymbolId:()=>wj,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>w$,getWatchFactory:()=>jme,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>lde,handleNoEmitOptions:()=>ese,hasAbstractModifier:()=>fk,hasAccessorModifier:()=>_k,hasAmbientModifier:()=>Ode,hasChangesInResolutions:()=>fR,hasChildOfKind:()=>XW,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>Fx,hasDocComment:()=>Yse,hasDynamicName:()=>nI,hasEffectiveModifier:()=>Ab,hasEffectiveModifiers:()=>ev,hasEffectiveReadonlyModifier:()=>Cb,hasExtension:()=>e7,hasIndexSignature:()=>rB,hasInitializer:()=>NN,hasInvalidEscape:()=>SH,hasJSDocNodes:()=>g1,hasJSDocParameterTags:()=>FTe,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>p7,hasOverrideModifier:()=>X2,hasPossibleExternalModuleReference:()=>tH,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>vZ,hasQuestionToken:()=>cG,hasRecordedExternalHelpers:()=>iv,hasRestParameter:()=>iie,hasScopeMarker:()=>Jz,hasStaticModifier:()=>Ny,hasSyntacticModifier:()=>il,hasSyntacticModifiers:()=>zie,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>Jg,hasType:()=>eY,hasTypeArguments:()=>JVe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>A6e,hostGetCanonicalFileName:()=>hR,hostUsesCaseSensitiveFileNames:()=>xH,idText:()=>ec,identifierIsThisKeyword:()=>SY,identifierToKeywordKind:()=>ML,identity:()=>Of,identitySourceMapConsumer:()=>H2e,ignoreSourceNewlines:()=>tpe,ignoredPaths:()=>kX,importDefaultHelper:()=>q7,importFromModuleSpecifier:()=>b2,importNameElisionDisabled:()=>Qie,importStarHelper:()=>IG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>v9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>sse,injectClassNamedEvaluationHelperBlockIfMissing:()=>Tme,injectClassThisAssignmentIfMissing:()=>vme,insertImports:()=>OS,insertLeadingStatement:()=>NEe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>Kz,insertStatementAfterStandardPrologue:()=>m7,insertStatementsAfterCustomPrologue:()=>fie,insertStatementsAfterStandardPrologue:()=>v2,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>iSe,inverseJsxOptionMap:()=>n$,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>ape,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>tw,isAccessor:()=>Am,isAccessorModifier:()=>pW,isAliasSymbolDeclaration:()=>XMe,isAliasableExpression:()=>gR,isAmbientModule:()=>Ov,isAmbientPropertyDeclaration:()=>eH,isAnonymousFunctionDefinition:()=>vA,isAnyDirectorySeparator:()=>jre,isAnyImportOrBareOrAccessedRequire:()=>ZTe,isAnyImportOrReExport:()=>z8,isAnyImportSyntax:()=>hm,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>g$,isArgumentExpressionOfElementAccess:()=>TZ,isArray:()=>ls,isArrayBindingElement:()=>qX,isArrayBindingOrAssignmentElement:()=>uR,isArrayBindingOrAssignmentPattern:()=>eie,isArrayBindingPattern:()=>vW,isArrayLiteralExpression:()=>Ch,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>OR,isArrayTypeNode:()=>MG,isArrowFunction:()=>ph,isAsExpression:()=>v0,isAssertClause:()=>n0,isAssertEntry:()=>Tk,isAssertionExpression:()=>_7,isAssertionKey:()=>IT,isAssertsKeyword:()=>_W,isAssignmentDeclaration:()=>aG,isAssignmentExpression:()=>wy,isAssignmentOperator:()=>zN,isAssignmentPattern:()=>u7,isAssignmentTarget:()=>IS,isAsteriskToken:()=>WY,isAsyncFunction:()=>FN,isAsyncModifier:()=>Lu,isAutoAccessorPropertyDeclaration:()=>rb,isAwaitExpression:()=>h6,isAwaitKeyword:()=>zY,isBigIntLiteral:()=>wG,isBinaryExpression:()=>ys,isBinaryOperatorToken:()=>mUe,isBindableObjectDefinePropertyCall:()=>cH,isBindableStaticAccessExpression:()=>XM,isBindableStaticElementAccessExpression:()=>_Y,isBindableStaticNameExpression:()=>VL,isBindingElement:()=>ym,isBindingElementOfBareOrAccessedRequire:()=>UVe,isBindingName:()=>f9,isBindingOrAssignmentElement:()=>rde,isBindingOrAssignmentPattern:()=>p9,isBindingPattern:()=>ld,isBlock:()=>E_,isBlockOrCatchScoped:()=>pde,isBlockScope:()=>gie,isBlockScopedContainerTopLevel:()=>mde,isBooleanLiteral:()=>Fl,isBreakOrContinueStatement:()=>VX,isBreakStatement:()=>lpe,isBuildInfoFile:()=>BQ,isBuilderProgram:()=>Gxe,isBundle:()=>XE,isBundleFileTextLike:()=>NSe,isCallChain:()=>R8,isCallExpression:()=>el,isCallExpressionTarget:()=>Bse,isCallLikeExpression:()=>ib,isCallOrNewExpression:()=>IN,isCallOrNewExpressionTarget:()=>j$,isCallSignatureDeclaration:()=>Lh,isCallToHelper:()=>cJ,isCaseBlock:()=>xP,isCaseClause:()=>tx,isCaseKeyword:()=>EEe,isCaseOrDefaultClause:()=>d7,isCatchClause:()=>CP,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>JC,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>$Me,isCircularBuildOrder:()=>yj,isClassDeclaration:()=>Kc,isClassElement:()=>Mv,isClassExpression:()=>B0,isClassLike:()=>Jl,isClassMemberModifier:()=>F_,isClassNamedEvaluationHelperBlock:()=>FW,isClassOrTypeElement:()=>$_,isClassStaticBlockDeclaration:()=>nu,isClassThisAssignmentBlock:()=>Mae,isCollapsedRange:()=>XVe,isColonToken:()=>BY,isCommaExpression:()=>mI,isCommaListExpression:()=>x3,isCommaSequence:()=>CW,isCommaToken:()=>TEe,isComment:()=>q$,isCommonJsExportPropertyAssignment:()=>Sde,isCommonJsExportedExpression:()=>rSe,isCompoundAssignment:()=>cj,isComputedNonLiteralName:()=>b9,isComputedPropertyName:()=>am,isConciseBody:()=>tie,isConditionalExpression:()=>vk,isConditionalTypeNode:()=>hW,isConstTypeReference:()=>CN,isConstructSignatureDeclaration:()=>lE,isConstructorDeclaration:()=>pg,isConstructorTypeNode:()=>mW,isContextualKeyword:()=>hH,isContinueStatement:()=>bW,isCustomPrologue:()=>dR,isDebuggerStatement:()=>tF,isDeclaration:()=>dl,isDeclarationBindingElement:()=>d9,isDeclarationFileName:()=>iT,isDeclarationName:()=>vP,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>MN,isDeclarationStatement:()=>BVe,isDeclarationWithTypeParameterChildren:()=>hde,isDeclarationWithTypeParameters:()=>QD,isDecorator:()=>Qf,isDecoratorTarget:()=>BJe,isDefaultClause:()=>CR,isDefaultImport:()=>D7,isDefaultModifier:()=>xn,isDefaultedExpandoInitializer:()=>A7,isDeleteExpression:()=>fE,isDeleteTarget:()=>kde,isDeprecatedDeclaration:()=>XZ,isDestructuringAssignment:()=>Tg,isDiagnosticWithLocation:()=>qZ,isDiskPathRoot:()=>pv,isDoStatement:()=>xEe,isDocumentRegistryEntry:()=>Ece,isDotDotDotToken:()=>X7,isDottedName:()=>B7,isDynamicName:()=>wde,isESSymbolIdentifier:()=>fSe,isEffectiveExternalModule:()=>B8,isEffectiveModuleDeclaration:()=>VVe,isEffectiveStrictModeSourceFile:()=>gde,isElementAccessChain:()=>Vz,isElementAccessExpression:()=>Ed,isEmittedFileOfProgram:()=>N4e,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>rR,isEmptyBindingPattern:()=>K_e,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>spe,isEmptyStringLiteral:()=>Sie,isEntityName:()=>Vd,isEntityNameExpression:()=>Uh,isEnumConst:()=>gP,isEnumDeclaration:()=>Ih,isEnumMember:()=>Qb,isEqualityOperatorKind:()=>b4,isEqualsGreaterThanToken:()=>p6,isExclamationToken:()=>PJ,isExcludedFile:()=>JUe,isExclusivelyTypeOnlyImportOrExport:()=>qae,isExportAssignment:()=>Ly,isExportDeclaration:()=>mh,isExportModifier:()=>fW,isExportName:()=>MEe,isExportNamespaceAsDefaultDeclaration:()=>_ie,isExportOrDefaultModifier:()=>Epe,isExportSpecifier:()=>Oy,isExportsIdentifier:()=>jL,isExportsOrModuleExportsOrAlias:()=>w3,isExpression:()=>Nr,isExpressionNode:()=>Gy,isExpressionOfExternalModuleImportEqualsDeclaration:()=>EZ,isExpressionOfOptionalChainRoot:()=>zU,isExpressionStatement:()=>Ou,isExpressionWithTypeArguments:()=>WT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>PS,isExternalModule:()=>Wv,isExternalModuleAugmentation:()=>BL,isExternalModuleImportEqualsDeclaration:()=>qM,isExternalModuleIndicator:()=>UU,isExternalModuleNameRelative:()=>tb,isExternalModuleReference:()=>j0,isExternalModuleSymbol:()=>sT,isExternalOrCommonJsModule:()=>h1,isFileLevelReservedGeneratedIdentifier:()=>jU,isFileLevelUniqueName:()=>fde,isFileProbablyExternalModule:()=>S6,isFirstDeclarationOfSymbolParameter:()=>QW,isFixablePromiseHandler:()=>Ice,isForInOrOfStatement:()=>DS,isForInStatement:()=>cpe,isForInitializer:()=>mA,isForOfStatement:()=>Moe,isForStatement:()=>bk,isFunctionBlock:()=>JM,isFunctionBody:()=>$Te,isFunctionDeclaration:()=>b0,isFunctionExpression:()=>Dm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>S_,isFunctionLikeDeclaration:()=>J_,isFunctionLikeKind:()=>xb,isFunctionLikeOrClassStaticBlockDeclaration:()=>_9,isFunctionOrConstructorTypeNode:()=>$X,isFunctionOrModuleBlock:()=>nde,isFunctionSymbol:()=>M9,isFunctionTypeNode:()=>Z2,isFutureReservedKeyword:()=>ob,isGeneratedIdentifier:()=>Om,isGeneratedPrivateIdentifier:()=>cR,isGetAccessor:()=>J2,isGetAccessorDeclaration:()=>tm,isGetOrSetAccessorDeclaration:()=>s9,isGlobalDeclaration:()=>FAe,isGlobalScopeAugmentation:()=>$C,isGrammarError:()=>VMe,isHeritageClause:()=>rT,isHoistedFunction:()=>hie,isHoistedVariableStatement:()=>yie,isIdentifier:()=>An,isIdentifierANonContextualKeyword:()=>yH,isIdentifierName:()=>Pde,isIdentifierOrThisTypeNode:()=>L6e,isIdentifierPart:()=>ak,isIdentifierStart:()=>nR,isIdentifierText:()=>rE,isIdentifierTypePredicate:()=>oSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>Xg,isIgnoredFileFromWildCardWatching:()=>VQ,isImplicitGlob:()=>noe,isImportCall:()=>WE,isImportClause:()=>lC,isImportDeclaration:()=>Fv,isImportEqualsDeclaration:()=>kh,isImportKeyword:()=>RJ,isImportMeta:()=>S9,isImportOrExportSpecifier:()=>l9,isImportOrExportSpecifierName:()=>wAe,isImportSpecifier:()=>oS,isImportTypeAssertionContainer:()=>Yb,isImportTypeNode:()=>Wx,isImportableFile:()=>vce,isInComment:()=>LR,isInExpressionContext:()=>Ade,isInJSDoc:()=>D9,isInJSFile:()=>Rs,isInJSXText:()=>Xse,isInJsonFile:()=>Cde,isInNonReferenceComment:()=>IAe,isInReferenceComment:()=>X$,isInRightSideOfInternalImportEqualsDeclaration:()=>gZ,isInString:()=>MR,isInTemplateString:()=>Gge,isInTopLevelContext:()=>Tie,isInTypeQuery:()=>O7,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Xb,isIndexedAccessTypeNode:()=>XN,isInferTypeNode:()=>fI,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>b$,isInitializedVariable:()=>J9,isInsideJsxElement:()=>N6,isInsideJsxElementOrAttribute:()=>Lf,isInsideNodeModules:()=>mce,isInsideTemplateLiteral:()=>K$,isInstantiatedModule:()=>u4,isInterfaceDeclaration:()=>Kp,isInternalDeclaration:()=>wme,isInternalModuleImportEqualsDeclaration:()=>y1,isInternalName:()=>N6e,isIntersectionTypeNode:()=>MJ,isIntrinsicJsxName:()=>z9,isIterationStatement:()=>kN,isJSDoc:()=>Gx,isJSDocAllType:()=>FJ,isJSDocAugmentsTag:()=>iF,isJSDocAuthorTag:()=>_Ue,isJSDocCallbackTag:()=>oF,isJSDocClassTag:()=>uC,isJSDocCommentContainingNode:()=>PN,isJSDocConstructSignature:()=>J8,isJSDocDeprecatedTag:()=>Woe,isJSDocEnumTag:()=>BJ,isJSDocFunctionType:()=>OG,isJSDocImplementsTag:()=>WG,isJSDocIndexSignature:()=>aH,isJSDocLikeText:()=>DA,isJSDocLink:()=>fpe,isJSDocLinkCode:()=>rF,isJSDocLinkLike:()=>FL,isJSDocLinkPlain:()=>SW,isJSDocMemberName:()=>Nu,isJSDocNameReference:()=>OJ,isJSDocNamepathType:()=>WJ,isJSDocNamespaceBody:()=>ck,isJSDocNode:()=>UC,isJSDocNonNullableType:()=>Ooe,isJSDocNullableType:()=>LG,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>AEe,isJSDocOverloadTag:()=>FG,isJSDocOverrideTag:()=>UY,isJSDocParameterTag:()=>AA,isJSDocPrivateTag:()=>xW,isJSDocPropertyLikeTag:()=>BM,isJSDocPropertyTag:()=>IEe,isJSDocProtectedTag:()=>CEe,isJSDocPublicTag:()=>b6,isJSDocReadonlyTag:()=>_pe,isJSDocReturnTag:()=>aF,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>CA,isJSDocSeeTag:()=>DEe,isJSDocSignature:()=>Ak,isJSDocTag:()=>NT,isJSDocTemplateTag:()=>jx,isJSDocThisTag:()=>dpe,isJSDocThrowsTag:()=>zJ,isJSDocTypeAlias:()=>T2,isJSDocTypeAssertion:()=>$Y,isJSDocTypeExpression:()=>pI,isJSDocTypeLiteral:()=>EW,isJSDocTypeTag:()=>HY,isJSDocTypedefTag:()=>A2,isJSDocUnknownTag:()=>ppe,isJSDocUnknownType:()=>ZL,isJSDocVariadicType:()=>Foe,isJSXTagName:()=>$M,isJsonEqual:()=>xY,isJsonSourceFile:()=>Py,isJsxAttribute:()=>Pb,isJsxAttributeLike:()=>$U,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>iD,isJsxChild:()=>m1,isJsxClosingElement:()=>Sk,isJsxClosingFragment:()=>nF,isJsxElement:()=>gy,isJsxExpression:()=>v6,isJsxFragment:()=>KE,isJsxNamespacedName:()=>dI,isJsxOpeningElement:()=>rD,isJsxOpeningFragment:()=>zx,isJsxOpeningLikeElement:()=>Y1,isJsxOpeningLikeElementTagName:()=>Gse,isJsxSelfClosingElement:()=>TW,isJsxSpreadAttribute:()=>Ek,isJsxTagNameExpression:()=>JU,isJsxText:()=>S1,isJumpStatementTarget:()=>bZ,isKeyword:()=>sE,isKeywordOrPunctuation:()=>Nde,isKnownSymbol:()=>vH,isLabelName:()=>Vse,isLabelOfLabeledStatement:()=>Mge,isLabeledStatement:()=>iS,isLateVisibilityPaintedStatement:()=>Yz,isLeftHandSideExpression:()=>FE,isLeftHandSideOfAssignment:()=>Gie,isLet:()=>eSe,isLineBreak:()=>Ff,isLiteralComputedPropertyDeclarationName:()=>K8,isLiteralExpression:()=>fP,isLiteralExpressionOfObject:()=>HX,isLiteralImportTypeNode:()=>BE,isLiteralKind:()=>c9,isLiteralLikeAccess:()=>lH,isLiteralLikeElementAccess:()=>eI,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>xj,isLiteralTypeLikeExpression:()=>O6e,isLiteralTypeLiteral:()=>f7,isLiteralTypeNode:()=>_I,isLocalName:()=>T6,isLogicalOperator:()=>Wde,isLogicalOrCoalescingAssignmentExpression:()=>DH,isLogicalOrCoalescingAssignmentOperator:()=>W7,isLogicalOrCoalescingBinaryExpression:()=>IH,isLogicalOrCoalescingBinaryOperator:()=>pk,isMappedTypeNode:()=>yW,isMemberName:()=>fy,isMetaProperty:()=>eF,isMethodDeclaration:()=>em,isMethodOrAccessor:()=>c7,isMethodSignature:()=>Jh,isMinusToken:()=>FY,isMissingDeclaration:()=>qE,isModifier:()=>bd,isModifierKind:()=>qg,isModifierLike:()=>pc,isModuleAugmentationExternal:()=>mie,isModuleBlock:()=>z0,isModuleBody:()=>ade,isModuleDeclaration:()=>xp,isModuleExportsAccessExpression:()=>KC,isModuleIdentifier:()=>U8,isModuleName:()=>GEe,isModuleOrEnumDeclaration:()=>sde,isModuleReference:()=>rie,isModuleSpecifierLike:()=>FZ,isModuleWithStringLiteralName:()=>iY,isNameOfFunctionDeclaration:()=>SZ,isNameOfModuleDeclaration:()=>Lge,isNamedClassElement:()=>DN,isNamedDeclaration:()=>Xv,isNamedEvaluation:()=>Hd,isNamedEvaluationSource:()=>kie,isNamedExportBindings:()=>GU,isNamedExports:()=>G0,isNamedImportBindings:()=>XD,isNamedImports:()=>y6,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>rS,isNamespaceBody:()=>nie,isNamespaceExport:()=>AP,isNamespaceExportDeclaration:()=>py,isNamespaceImport:()=>QL,isNamespaceReexportDeclaration:()=>Eie,isNewExpression:()=>Ac,isNewExpressionTarget:()=>zse,isNightly:()=>mG,isNoSubstitutionTemplateLiteral:()=>Sd,isNode:()=>UX,isNodeArray:()=>L8,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>N7,isNodeKind:()=>aR,isNodeLikeSystem:()=>kM,isNodeModulesDirectory:()=>TMe,isNodeWithPossibleHoistedDeclaration:()=>uSe,isNonContextualKeyword:()=>W9,isNonExportDefaultModifier:()=>Ast,isNonGlobalAmbientModule:()=>pie,isNonGlobalDeclaration:()=>she,isNonNullAccess:()=>nEe,isNonNullChain:()=>Uz,isNonNullExpression:()=>cC,isNonStaticMethodOrAccessorWithPrivateName:()=>LHe,isNotEmittedOrPartiallyEmittedNode:()=>WMe,isNotEmittedStatement:()=>my,isNullishCoalesce:()=>Qre,isNumber:()=>U1,isNumericLiteral:()=>nS,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>kj,isObjectBindingOrAssignmentElement:()=>KX,isObjectBindingOrAssignmentPattern:()=>ide,isObjectBindingPattern:()=>E1,isObjectLiteralElement:()=>Cm,isObjectLiteralElementLike:()=>KD,isObjectLiteralExpression:()=>Wd,isObjectLiteralMethod:()=>q2,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zE,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>OX,isOmittedExpression:()=>t0,isOptionalChain:()=>ky,isOptionalChainRoot:()=>h2,isOptionalDeclaration:()=>yG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>GY,isOuterExpression:()=>Goe,isOutermostOptionalChain:()=>M8,isOverrideModifier:()=>SEe,isPackedArrayLiteral:()=>foe,isParameter:()=>Pu,isParameterDeclaration:()=>Y8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>Eb,isParameterPropertyModifier:()=>lR,isParenthesizedExpression:()=>sb,isParenthesizedTypeNode:()=>xR,isParseTreeNode:()=>uP,isPartOfTypeNode:()=>rC,isPartOfTypeQuery:()=>Cs,isPartiallyEmittedExpression:()=>E3,isPatternMatch:()=>mU,isPinnedComment:()=>h9,isPlainJsFile:()=>y2,isPlusToken:()=>woe,isPossiblyTypeArgumentPosition:()=>IZ,isPostfixUnaryExpression:()=>Z7,isPrefixUnaryExpression:()=>yk,isPrivateIdentifier:()=>Gu,isPrivateIdentifierClassElementDeclaration:()=>Mf,isPrivateIdentifierPropertyAccessExpression:()=>kT,isPrivateIdentifierSymbol:()=>UE,isProgramBundleEmitBuildInfo:()=>Axe,isProgramUptoDate:()=>Qae,isPrologueDirective:()=>qC,isPropertyAccessChain:()=>BU,isPropertyAccessEntityNameExpression:()=>bP,isPropertyAccessExpression:()=>sa,isPropertyAccessOrQualifiedName:()=>Hz,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>sk,isPropertyAssignment:()=>Fm,isPropertyDeclaration:()=>Os,isPropertyName:()=>_y,isPropertyNameLiteral:()=>yA,isPropertySignature:()=>Np,isProtoSetter:()=>X8,isPrototypeAccess:()=>r6,isPrototypePropertyAssignment:()=>H8,isPunctuation:()=>w7,isPushOrUnshiftIdentifier:()=>_Se,isQualifiedName:()=>nT,isQuestionDotToken:()=>RG,isQuestionOrExclamationToken:()=>Tpe,isQuestionOrPlusOrMinusToken:()=>Spe,isQuestionToken:()=>ER,isRawSourceMap:()=>PHe,isReadonlyKeyword:()=>NJ,isReadonlyKeywordOrPlusOrMinusToken:()=>zEe,isRecognizedTripleSlashComment:()=>nY,isReferenceFileLocation:()=>yF,isReferencedFile:()=>k6,isRegularExpressionLiteral:()=>OY,isRequireCall:()=>eT,isRequireVariableStatement:()=>KM,isRestParameter:()=>dP,isRestTypeNode:()=>gW,isReturnStatement:()=>Bx,isReturnStatementWithFixablePromiseHandler:()=>lCe,isRightSideOfAccessExpression:()=>jie,isRightSideOfPropertyAccess:()=>G3,isRightSideOfQualifiedName:()=>zJe,isRightSideOfQualifiedNameOrPropertyAccess:()=>kH,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>ySe,isRootedDiskPath:()=>mm,isSameEntityName:()=>V8,isSatisfiesExpression:()=>cb,isScopeMarker:()=>XX,isSemicolonClassElement:()=>Roe,isSetAccessor:()=>_P,isSetAccessorDeclaration:()=>Ep,isShebangTrivia:()=>$_e,isShorthandAmbientModuleSymbol:()=>VM,isShorthandPropertyAssignment:()=>BT,isSignedNumericLiteral:()=>K2,isSimpleCopiableExpression:()=>D6,isSimpleInlineableExpression:()=>aD,isSingleOrDoubleQuote:()=>Dde,isSourceFile:()=>tl,isSourceFileFromLibrary:()=>lq,isSourceFileJS:()=>v1,isSourceFileNotJS:()=>E7,isSourceFileNotJson:()=>xie,isSourceMapping:()=>NHe,isSpecialPropertyDeclaration:()=>R9,isSpreadAssignment:()=>xk,isSpreadElement:()=>ex,isStatement:()=>uf,isStatementButNotDeclaration:()=>YX,isStatementOrBlock:()=>ZX,isStatementWithLocals:()=>XTe,isStatic:()=>e_,isStaticModifier:()=>dW,isString:()=>As,isStringAKeyword:()=>Ox,isStringANonContextualKeyword:()=>t6,isStringAndEmptyAnonymousObjectIntersection:()=>Uge,isStringDoubleQuoted:()=>Aie,isStringLiteral:()=>Wp,isStringLiteralLike:()=>sp,isStringLiteralOrJsxExpression:()=>$z,isStringLiteralOrTemplate:()=>jZ,isStringOrNumericLiteralLike:()=>Qv,isStringOrRegularExpressionOrTemplateLiteral:()=>Vge,isStringTextContainingNode:()=>u9,isSuperCall:()=>y7,isSuperKeyword:()=>wJ,isSuperOrSuperProperty:()=>lY,isSuperProperty:()=>Z1,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>Loe,isSyntaxList:()=>GJ,isSyntheticExpression:()=>C6e,isSyntheticReference:()=>ry,isTagName:()=>I8e,isTaggedTemplateExpression:()=>Hm,isTaggedTemplateTag:()=>xF,isTemplateExpression:()=>jY,isTemplateHead:()=>SR,isTemplateLiteral:()=>m9,isTemplateLiteralKind:()=>zM,isTemplateLiteralToken:()=>O8,isTemplateLiteralTypeNode:()=>S3,isTemplateLiteralTypeSpan:()=>LJ,isTemplateMiddle:()=>ope,isTemplateMiddleOrTemplateTail:()=>JX,isTemplateSpan:()=>VY,isTemplateTail:()=>K7,isTextWhiteSpaceLike:()=>BZ,isThis:()=>KW,isThisContainerOrFunctionBlock:()=>bie,isThisIdentifier:()=>Zy,isThisInTypeQuery:()=>kS,isThisInitializedDeclaration:()=>yP,isThisInitializedObjectBindingExpression:()=>xde,isThisProperty:()=>b7,isThisTypeNode:()=>Q7,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>$b,isThrowStatement:()=>upe,isToken:()=>VC,isTokenKind:()=>Zre,isTraceEnabled:()=>Dk,isTransientSymbol:()=>uk,isTrivia:()=>tI,isTryStatement:()=>AR,isTupleTypeNode:()=>m6,isTypeAlias:()=>fH,isTypeAliasDeclaration:()=>mg,isTypeAssertionExpression:()=>xd,isTypeDeclaration:()=>f6,isTypeElement:()=>l7,isTypeKeyword:()=>Q$,isTypeKeywordToken:()=>kAe,isTypeKeywordTokenOrIdentifier:()=>wZ,isTypeLiteralNode:()=>e0,isTypeNode:()=>Uu,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>Jm,isTypeOnlyExportDeclaration:()=>s7,isTypeOnlyImportDeclaration:()=>$g,isTypeOnlyImportOrExportDeclaration:()=>sR,isTypeOperatorNode:()=>KN,isTypeParameterDeclaration:()=>Hh,isTypePredicateNode:()=>Y7,isTypeQueryNode:()=>uE,isTypeReferenceNode:()=>x2,isTypeReferenceType:()=>F8,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>ode,isUnaryExpressionWithWrite:()=>WVe,isUnicodeIdentifierStart:()=>Wz,isUnionTypeNode:()=>g6,isUnparsedNode:()=>a7,isUnparsedPrepend:()=>A3,isUnparsedSource:()=>xA,isUnparsedTextLike:()=>tde,isUrl:()=>r9,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>eG,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>Ide,isVarAwaitUsing:()=>$2,isVarConst:()=>h7,isVarUsing:()=>T9,isVariableDeclaration:()=>ff,isVariableDeclarationInVariableStatement:()=>x9,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>pR,isVariableDeclarationInitializedToRequire:()=>sH,isVariableDeclarationList:()=>My,isVariableLike:()=>hP,isVariableLikeOrAccessor:()=>iC,isVariableStatement:()=>Dh,isVoidExpression:()=>$m,isWatchSet:()=>QVe,isWhileStatement:()=>kb,isWhiteSpaceLike:()=>UD,isWhiteSpaceSingleLine:()=>HD,isWithStatement:()=>D6e,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>Ds,jsxModeNeedsExplicitImport:()=>lhe,keywordPart:()=>hE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>XG,libs:()=>aQ,lineBreakPart:()=>lS,linkNamePart:()=>ZE,linkPart:()=>D1,linkTextPart:()=>qh,listFiles:()=>jxe,loadModuleFromGlobalCache:()=>DQ,loadWithModeAwareCache:()=>W3,makeIdentifierFromModuleName:()=>jVe,makeImport:()=>Pk,makeImportIfNecessary:()=>Ij,makeStringLiteral:()=>DF,mangleScopedPackageName:()=>CQ,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>ihe,mapToDisplayParts:()=>w6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>CL,matchesExclude:()=>Fpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uW,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>aP,modifierToFlag:()=>U9,modifiersToFlags:()=>dk,moduleOptionDeclaration:()=>r$,moduleResolutionIsEqualTo:()=>qz,moduleResolutionNameAndModeGetter:()=>P$,moduleResolutionOptionDeclarations:()=>lQ,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>U3,moduleSpecifiers:()=>M3,moveEmitHelpers:()=>$N,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>PY,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>MAe,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>YZ,newPrivateEnvironment:()=>wae,noEmitNotification:()=>Mme,noEmitSubstitution:()=>Bae,noTransformers:()=>uxe,noTruncationMaximumTruncationLength:()=>HN,nodeCanBeDecorated:()=>ZD,nodeHasName:()=>FU,nodeIsDecorated:()=>C9,nodeIsMissing:()=>Um,nodeIsPresent:()=>wx,nodeIsSynthesized:()=>rh,nodeModuleNameResolver:()=>aHe,nodeModulesPathPart:()=>ix,nodeNextJsonConfigResolver:()=>sHe,nodeOrChildIsDecorated:()=>iG,nodeOverlapsWithStartEnd:()=>h4,nodePosToString:()=>GVe,nodeSeenTracker:()=>CF,nodeStartsNewLexicalEnvironment:()=>dG,nodeToDisplayParts:()=>NAe,noop:()=>ku,noopFileWatcher:()=>SF,normalizePath:()=>Fd,normalizeSlashes:()=>hf,not:()=>gN,notImplemented:()=>Na,notImplementedResolver:()=>pxe,nullNodeConverters:()=>Doe,nullParenthesizerRules:()=>Yde,nullTransformationContext:()=>I6,objectAllocator:()=>nv,operatorPart:()=>H3,optionDeclarations:()=>fC,optionMapToObject:()=>Rpe,optionsAffectingProgramStructure:()=>nae,optionsForBuild:()=>iae,optionsForWatch:()=>sQ,optionsHaveChanges:()=>gA,optionsHaveModuleResolutionChanges:()=>qTe,or:()=>dA,orderedRemoveItem:()=>Yw,orderedRemoveItemAt:()=>zC,outFile:()=>Kg,packageIdToPackageName:()=>YU,packageIdToString:()=>pP,padLeft:()=>qO,padRight:()=>Y5,paramHelper:()=>LY,parameterIsThisKeyword:()=>oI,parameterNamePart:()=>oce,parseBaseNodeFactory:()=>QEe,parseBigInt:()=>qSe,parseBuildCommand:()=>PUe,parseCommandLine:()=>eLe,parseCommandLineWorker:()=>e2e,parseConfigFileTextToJson:()=>n2e,parseConfigFileWithSystem:()=>Wxe,parseConfigHostFromCompilerHostLike:()=>Sxe,parseCustomTypeOption:()=>ZEe,parseIsolatedEntityName:()=>s_,parseIsolatedJSDocComment:()=>eQ,parseJSDocTypeExpressionForTests:()=>HG,parseJsonConfigFileContent:()=>FUe,parseJsonSourceFileConfigFileContent:()=>Qoe,parseJsonText:()=>cF,parseListTypeOption:()=>Joe,parseNodeFactory:()=>DP,parseNodeModuleFromPath:()=>wW,parsePackageName:()=>EQ,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>Wre,pathContainsNodeModules:()=>NW,pathIsAbsolute:()=>VD,pathIsBareSpecifier:()=>vMe,pathIsRelative:()=>U2,patternText:()=>pTe,perfLogger:()=>jD,performIncrementalCompilation:()=>Hxe,performance:()=>YO,plainJSErrors:()=>cse,positionBelongsToNode:()=>Ux,positionIsASICandidate:()=>sq,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>iCe,probablyUsesSemicolons:()=>UZ,processCommentPragmas:()=>Hoe,processPragmasIntoFields:()=>Cpe,processTaggedTemplateExpression:()=>a4e,programContainsEsModules:()=>Z$,programContainsModules:()=>LZ,projectReferenceIsEqualTo:()=>sie,propKeyHelper:()=>bJ,propertyNamePart:()=>Kge,pseudoBigIntToString:()=>tD,punctuationPart:()=>cT,pushIfUnique:()=>Dy,quote:()=>uce,quotePreferenceFromString:()=>tq,rangeContainsPosition:()=>U$,rangeContainsPositionExclusive:()=>H$,rangeContainsRange:()=>sS,rangeContainsRangeExclusive:()=>Oge,rangeContainsStartEnd:()=>AZ,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>yz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>RR,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>Sse,readConfigFile:()=>rQ,readHelper:()=>yJ,readJson:()=>e3,readJsonConfigFile:()=>tLe,readJsonOrUndefined:()=>Uie,realizeDiagnostics:()=>hDe,reduceEachLeadingCommentRange:()=>lP,reduceEachTrailingCommentRange:()=>RL,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>Oz,refactor:()=>Eq,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>Zde,removeEmitHelper:()=>x6e,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>H4e,removeMinAndVersionNumbers:()=>AL,removeOptionality:()=>N8e,removePrefix:()=>Ez,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>n7,repeatString:()=>PP,replaceElement:()=>vz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>r0,resolveJSModule:()=>ej,resolveLibrary:()=>S2e,resolveModuleName:()=>s4,resolveModuleNameFromCache:()=>nHe,resolvePackageNameToPackageJson:()=>Rst,resolvePath:()=>gm,resolveProjectReferencePath:()=>tse,resolveTripleslashReference:()=>YE,resolveTypeReferenceDirective:()=>vQ,resolvingEmptyArray:()=>eJ,restHelper:()=>pJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>Tse,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>cCe,runInitializersHelper:()=>uJ,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>JLe,scanShebangTrivia:()=>CTe,scanTokenAtPosition:()=>aY,scanner:()=>lT,screenStartingMessageCodes:()=>M$,semanticDiagnosticsOptionDeclarations:()=>o$,serializeCompilerOptions:()=>Yoe,server:()=>gAe,servicesVersion:()=>fle,setCommentRange:()=>Ry,setConfigFileInOptions:()=>c2e,setConstantValue:()=>koe,setEachParent:()=>u6,setEmitFlags:()=>Sa,setFunctionNameHelper:()=>TJ,setGetSourceFileAsHashVersioned:()=>cZ,setIdentifierAutoGenerate:()=>wY,setIdentifierGeneratedImportReference:()=>J7,setIdentifierTypeArguments:()=>qN,setInternalEmitFlags:()=>aW,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>xJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>tc,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>LW,setResolvedModule:()=>aie,setResolvedTypeReferenceDirective:()=>jM,setSnippetElement:()=>NY,setSourceMapRange:()=>Sp,setStackTraceLimit:()=>Iat,setStartsOnNewLine:()=>epe,setSyntheticLeadingComments:()=>MS,setSyntheticTrailingComments:()=>uI,setSys:()=>Bre,setSysLog:()=>ETe,setTextRange:()=>vr,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>YL,setTypeNode:()=>npe,setUILocale:()=>$5,setValueDeclaration:()=>sG,shouldAllowImportingTsExtension:()=>l4,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>hce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>ULe,signatureHasRestParameter:()=>oT,signatureToDisplayParts:()=>Xge,single:()=>_U,singleElementArray:()=>zD,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>KY,skipConstraint:()=>MZ,skipOuterExpressions:()=>rv,skipParentheses:()=>_g,skipPartiallyEmittedExpressions:()=>pA,skipTrivia:()=>ep,skipTypeChecking:()=>c3,skipTypeParentheses:()=>lG,skipWhile:()=>ME,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>P8,sourceFileAffectingCompilerOptions:()=>hI,sourceFileMayBeEmitted:()=>L7,sourceMapCommentRegExp:()=>V2e,sourceMapCommentRegExpDontCareLineStart:()=>YLe,spacePart:()=>$h,spanMap:()=>fa,spreadArrayHelper:()=>vJ,stableSort:()=>nh,startEndContainsRange:()=>xZ,startEndOverlapsWithStartEnd:()=>AF,startOnNewLine:()=>x1,startTracing:()=>F_e,startsWith:()=>xf,startsWithDirectory:()=>jC,startsWithUnderscore:()=>NF,startsWithUseStrict:()=>vpe,stringContains:()=>Ub,stringContainsAt:()=>OAe,stringToToken:()=>TN,stripQuotes:()=>HE,supportedDeclarationExtensions:()=>h3,supportedJSExtensions:()=>xoe,supportedJSExtensionsFlat:()=>iJ,supportedLocaleDirectories:()=>Rh,supportedTSExtensions:()=>bG,supportedTSExtensionsFlat:()=>$de,supportedTSImplementationExtensions:()=>SG,suppressLeadingAndTrailingTrivia:()=>e2,suppressLeadingTrivia:()=>O8e,suppressTrailingTrivia:()=>RAe,symbolEscapedNameNoDefault:()=>v4,symbolName:()=>mp,symbolNameNoDefault:()=>OZ,symbolPart:()=>qge,symbolToDisplayParts:()=>ZW,syntaxMayBeASICandidate:()=>ZZ,syntaxRequiresTrailingSemicolonOrASI:()=>aq,sys:()=>m0,sysLog:()=>Lre,tagNamesAreEquivalent:()=>E6,takeWhile:()=>Yn,targetOptionDeclaration:()=>cQ,templateObjectHelper:()=>hJ,testFormatSettings:()=>wge,textChangeRangeIsUnchanged:()=>wTe,textChangeRangeNewSpan:()=>DT,textChanges:()=>Hs,textOrKeywordPart:()=>ace,textPart:()=>RA,textRangeContainsPositionInclusive:()=>zz,textSpanContainsPosition:()=>kTe,textSpanContainsTextSpan:()=>FX,textSpanEnd:()=>K1,textSpanIntersection:()=>WX,textSpanIntersectsWith:()=>Yy,textSpanIntersectsWithPosition:()=>NTe,textSpanIntersectsWithTextSpan:()=>p1,textSpanIsEmpty:()=>ITe,textSpanOverlap:()=>PTe,textSpanOverlapsWith:()=>NMe,textSpansEqual:()=>IF,textToKeywordObj:()=>Jre,timestamp:()=>cf,toArray:()=>BC,toBuilderFileEmit:()=>nge,toBuilderStateFileInfoForMultiEmit:()=>V4e,toEditorSettings:()=>See,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>_h,toProgramEmitPending:()=>TF,tokenIsIdentifierOrKeyword:()=>Cf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>D8,tokenToString:()=>Nd,trace:()=>Vf,tracing:()=>tu,tracingEnabled:()=>kz,transform:()=>EOe,transformClassFields:()=>Ame,transformDeclarations:()=>QN,transformECMAScriptModule:()=>Oae,transformES2015:()=>y4e,transformES2016:()=>KHe,transformES2017:()=>UHe,transformES2018:()=>Z2e,transformES2019:()=>exe,transformES2020:()=>HHe,transformES2021:()=>JHe,transformES5:()=>oxe,transformESDecorators:()=>VHe,transformESNext:()=>$He,transformGenerators:()=>axe,transformJsx:()=>qHe,transformLegacyDecorators:()=>jHe,transformModule:()=>Pme,transformNamedEvaluation:()=>ax,transformNodeModule:()=>ZHe,transformNodes:()=>zae,transformSystemModule:()=>sxe,transformTypeScript:()=>xme,transpile:()=>fCe,transpileModule:()=>Pce,transpileOptionValueCompilerOptions:()=>rae,trimString:()=>GD,trimStringEnd:()=>hU,trimStringStart:()=>Zw,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>ehe,tryCast:()=>to,tryDirectoryExists:()=>dce,tryExtractTSExtension:()=>PH,tryFileExists:()=>iB,tryGetClassExtendingExpressionWithTypeArguments:()=>Zv,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>hSe,tryGetDirectories:()=>HZ,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>L9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>UJ,tryGetModuleSpecifierFromDeclaration:()=>UL,tryGetNativePerformanceHooks:()=>$p,tryGetPropertyAccessOrIdentifierToString:()=>z7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>FEe,tryGetSourceMappingURL:()=>IHe,tryGetTextOfPropertyName:()=>nH,tryIOAndConsumeErrors:()=>the,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>_me,tryReadDirectory:()=>_ce,tryReadFile:()=>qoe,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>C8,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>c$,typeAliasNamePart:()=>PAe,typeDirectiveIsEqualTo:()=>KTe,typeKeywords:()=>Wj,typeParameterNamePart:()=>yE,typeReferenceResolutionNameAndModeGetter:()=>eZ,typeToDisplayParts:()=>GZ,unchangedPollThresholds:()=>wU,unchangedTextChangeRange:()=>BMe,unescapeLeadingUnderscores:()=>lf,unmangleScopedPackageName:()=>dae,unorderedRemoveItem:()=>IM,unorderedRemoveItemAt:()=>A8,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>tG,updateErrorForNoInputFiles:()=>l2e,updateLanguageServiceSourceFile:()=>Eee,updateMissingFilePathsWatch:()=>Jae,updatePackageJsonWatch:()=>kct,updateResolutionField:()=>gQ,updateSharedExtendedConfigFileWatcher:()=>d4,updateSourceFile:()=>XEe,updateWatchingWildcardDirectories:()=>D$,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>qU,utf16EncodeAsString:()=>LU,validateLocaleAndSetLanguage:()=>ey,valuesHelper:()=>SJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>dE,visitCommaListElements:()=>fme,visitEachChild:()=>ia,visitFunctionBody:()=>sm,visitIterationBody:()=>pE,visitLexicalEnvironment:()=>G2e,visitNode:()=>nr,visitNodes:()=>Fa,visitParameterList:()=>Bn,walkUpBindingElementsAndPatterns:()=>zX,walkUpLexicalEnvironments:()=>gme,walkUpOuterExpressions:()=>VJ,walkUpParenthesizedExpressions:()=>Lx,walkUpParenthesizedTypes:()=>mH,walkUpParenthesizedTypesAndGetParentAndChild:()=>ON,whitespaceOrMapCommentRegExp:()=>U2e,writeCommentRange:()=>tT,writeFile:()=>sC,writeFileEnsuringDirectories:()=>Lde,zipToModeAwareCache:()=>aae,zipWith:()=>Zr});var RZe=G({"src/typescript/_namespaces/ts.ts"(){Ad(),Dge(),El(),O0e()}}),cPe=ye({"src/typescript/typescript.ts"(t,r){RZe(),RZe(),typeof console<"u"&&(ce.loggingHost={log(s,l){switch(s){case 1:return console.error(l);case 2:return console.warn(l);case 3:return console.log(l);case 4:return console.log(l)}}}),r.exports=wZe}});return cPe()})();p.exports&&(p.exports=x)})(RIt);var B8t=RIt.exports;const TM=yxt(B8t);function OIt(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L=H=>{e:for(;;){const G=H;if(TM.isParenthesizedTypeNode(G)){H=G.type;continue e}else return G}};return new bSt(nTe(EL(H=>{if(TM.isLiteralTypeNode(H)){const ye=H.literal;if(TM.isStringLiteral(ye)||TM.isNumericLiteral(ye))return _l(new Wu(8,[rEt(TSt(ye),()=>{throw new Error("Expected a NumericLiteral")})]));switch(ye.kind|0){case 106:case 157:return _l(new Wu(3,[new Nv(7,[])]));default:return}}else if(TM.isTypeReferenceNode(H)){const G=H,ye=x.getSymbolAtLocation(G.typeName),Oe=rEt(ye,()=>{throw new Error(Y0("union type cases","Missing symbol",G,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/UnionTypeNode.fs",58))}),ot=Oe.declarations;if(ot==null){const sn=x.getTypeOfSymbol(Oe).flags|0;if(YS(1,sn)!=null)return _l(new Wu(3,[new Nv(6,[])]));throw new Error(Y0("union type cases","Unsupported type reference reach a point where it was expected to have flags like Any",G,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/UnionTypeNode.fs",93))}else{const At=ot;if(At.length===0)return;if(V1t(ye))return _l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G));{const sn=At[0];return sn.kind===265?_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](sn)):_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G))}}}else return H.kind===192?OIt(p,H).fields[0]:_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H))},zf(L,Zd(g.types)))))}function z8t(p,g){return new Wu(7,[OIt(p,g)])}function G8t(p,g){switch(g.operator|0){case 143:switch(g.type.kind|0){case 183:{const H=g.type,G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(H.typeName);if(G!=null){const Oe=G.declarations;if(Oe==null)throw new Error(Y0("type operator (keyof)","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",39));{const ot=Oe;if(ot.length!==1)throw new Error(Y0("type operator (keyof)","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",28));return new Wu(9,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](ot[0])])}}else throw new Error(Y0("type operator (keyof)","Missing symbol",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",21))}case 186:return new Wu(9,[wIt(p,g.type)]);default:throw new Error(Y0("type operator (keyof)",`Was expecting a type reference instead got a Node of type ${oX(g.type.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",48))}case 148:return new Wu(29,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type)]);default:{const L=Y0("type operator",`Unsupported operator ${oX(g.operator)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",58);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(L),new Wu(3,[new Nv(6,[])])}}}function j8t(p,g){let x,L,H,G,ye,Oe,ot,At,sn;return new Wu(10,[new _8t((x=g.indexType,L=x.kind|0,L===150?(H=g.indexType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)):L===198?(G=g.indexType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](G)):(ye=Y0("readIndexedAccessType",`Unsupported node kind ${oX(L)}`,x,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/IndexedAccessType.fs",27),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ye),new Wu(0,[]))),(Oe=g.objectType,ot=Oe.kind|0,ot===196?(At=g.objectType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](At)):(sn=Y0("readIndexedAccessType",`Unsupported node kind ${oX(ot)}`,Oe,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/IndexedAccessType.fs",47),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(sn),new Wu(0,[]))))])}function V8t(p,g){return g!=null?zf(x=>new K4t(x.name.getText(),gz(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](L),x.constraint),void 0),Zd(g)):lc()}function U8t(p,g){const x=g.symbol;if(x==null)return new Wu(0,[]);if(x.name==="default")if(g.expression.kind===80){const H=g.expression;let G;const ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeAtLocation(g.expression),Oe=ye.flags|0;if(YS(524288,Oe)!=null){const ot=ye.symbol.declarations;if(ot==null)G=new Wu(3,[new Nv(6,[])]);else{const At=ot;G=At.length===1?p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](At[0]):new Wu(3,[new Nv(6,[])])}}else G=YS(4,Oe)!=null?new Wu(3,[new Nv(0,[])]):YS(8,Oe)!=null?new Wu(3,[new Nv(5,[])]):YS(16,Oe)!=null?new Wu(3,[new Nv(3,[])]):YS(1,Oe)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,Oe)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])]);return new Wu(24,[new Wu(2,[new AIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),H.getText(),G)])])}else return new Wu(0,[]);else return new Wu(0,[])}function J1t(p,g,x){let L;const H=hIt(TM.displayPartsToString(g));L=y_e(tMe,H)?void 0:new UK(0,[H]);const G=Zd(oMe(ye=>{switch(ye.kind|0){case 334:switch(ye.tagName.getText()){case"remarks":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(4,[bL(TM.getTextOfJSDocComment(sn),"")])}}case"defaultValue":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(5,[bL(TM.getTextOfJSDocComment(sn),"")])}}case"example":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(6,[bL(TM.getTextOfJSDocComment(sn),"")])}}case"typeParam":{const At=ye.comment;if(At==null)return;{const sn=At,tr=TM.getTextOfJSDocComment(sn);if(tr==null)return;{const Nt=tr,Ot=fNt(/\s*(?[^-\s]*)\s*-\s*(?.*)/gus,Nt);if(Ot!=null)return new UK(7,[new $4t(Ot.groups&&Ot.groups.type||"",(Ot.groups&&Ot.groups.description)!=null?Ot.groups&&Ot.groups.description||"":void 0)]);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(`Invalid typeParam tag format: ${Nt}`);return}}}default:return}case 338:{const ot=ye.comment;if(ot==null)return new UK(3,[void 0]);{const At=ot;return new UK(3,[TM.getTextOfJSDocComment(At)])}}case 348:{const ot=ye,At=ot.name;let sn;const tr=ot.comment;if(tr==null)sn=void 0;else{const Nt=tr;sn=TM.getTextOfJSDocComment(Nt)}return new UK(2,[new J4t(At.getText(),sn)])}case 349:{const ot=ye.comment;if(ot==null)return;{const At=ot;return new UK(1,[bL(TM.getTextOfJSDocComment(At),"")])}}case 356:{const ot=ye.comment;if(ot==null)return;{const At=ot;return new UK(8,[bL(TM.getTextOfJSDocComment(At),"")])}}default:return}},x));return Zd(cd(()=>{let ye;return V1((ye=L,ye==null?Uw():fg(ye)),cd(()=>G))}))}function H8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSignatureFromDeclaration(g);return x==null?lc():J1t(p,x.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g))}function J8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(g);if(x==null){const L=g.symbol;if(L==null)return lc();{const H=df(L);return J1t(p,H.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g))}}else return J1t(p,x.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g.parent))}function $8t(p,g){return new Wu(19,[new l8t(g.name.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type))])}function q8t(p,g){let x,L,H,G;const ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"]([g.typeParameter]);let Oe,ot;switch(yd(ye)?Oe=1:yd(Ay(ye))?(Oe=0,ot=Hp(ye)):Oe=1,Oe){case 0:{G=new ZI(0,[ot]);break}default:G=new ZI(1,[Y0("readMappedTypeNode",`Expected exactly one type parameter but was ${_z(ye)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/MappedTypeNode.fs",18)])}return H=G.tag===1?new ZI(1,[G.fields[0]]):new ZI(0,[new Wu(27,[new f8t(G.fields[0],(x=g.type,x==null?void 0:(L=x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](L))))])]),H.tag===1?(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(H.fields[0]),new Wu(0,[])):H.fields[0]}class K8t{constructor(g){this["checker@26"]=g,this.warnings=[],this.typeMemory=[]}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"(){return this["checker@26"]}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"(){return this.warnings}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"(){return this.typeMemory}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"(g){return b8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"(g){const x=this;return new Wu(4,[S8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"(g){const x=this;return new Wu(6,[E8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"(g){const x=this;return new Wu(1,[x8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"(g){const x=this;return new Wu(11,[A8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"(g){const x=this,L=C8t(x,g);return x.typeMemory.push(L),L}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"(g){return D8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"(g){return this["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"(g){const x=this;return g==null?new Wu(3,[new Nv(4,[])]):L8t(x,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"(g){return O8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"(g){return F8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"(g){return W8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"(g){return z8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"(g){return G8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"(g){return j8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"(g){return V8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"(g){return U8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"(g){return H8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"(g){return J8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNamedTupleMemberZ6E17C942"(g){return $8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadMappedTypeNode28272C00"(g){return q8t(this,g)}}function X8t(p){return new K8t(p)}function ESt(p,g){const x=X8t(p),L=zf(G=>x["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](G),tTe(df(g).statements)),H=x["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();return{GlueAST:L,TypeMemory:tTe(x["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"]()),Warnings:H}}const Y8t=bAt(fu(["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","false","finally","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","null","of","open","or","override","private","public","rec","return","sig","static","struct","then","to","true","try","type","upcast","use","val","void","when","while","with","yield","atomic","break","checked","component","const","constraint","constructor","continue","eager","fixed","fori","functor","include","measure","method","mixin","object","parallel","params","process","protected","pure","recursive","sealed","tailcall","trait","virtual","volatile"]),{Compare:lU});function Q8t(p){return p.length>0?u4t(p[0]):!1}function Z8t(p){return p.indexOf("-")>=0||p.indexOf("$")>=0||p.indexOf("#")>=0||p.indexOf("<")>=0||p.indexOf(">")>=0||p.indexOf(" ")>=0||Q8t(p)||fTt(Y8t,p)?`\`\`${p}\`\``:p}function kVe(p){if(jje(p))return"";if(p.length<1)return p;{const g=p[0],x=p[p.length-1];let L;switch(g){case'"':{x==='"'?L=0:L=1;break}case"'":{x==="'"?L=0:L=1;break}default:L=1}switch(L){case 0:return ARe(p,1,p.length-2);default:return p}}}function e3t(p){return Fne(p,".","_")}function t3t(p){return Fne(p,"@","_AT_")}class n3t extends ap{constructor(g,x){super(),this.Name=g,this.IsDifferent=x}}function xSt(p){const g=kVe(t3t(e3t(p))),x=p!==g;return new n3t(Z8t(g),x)}function F5(p){return xSt(p).Name}function $1t(p){const g=new Map([]),x=[],L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();if(H.tag===5){const G=H.fields[0];if(g.has(G.Name)){const ye=rat(g,G.Name)|0,Oe=x[ye];if(Oe.tag===5){const ot=Oe.fields[0],At=new tP(ot.Attributes,ot.Name,ot.OriginalName,ot.TypeParameters,oU(ot.Members,G.Members),oU(ot.Inheritance,G.Inheritance));Wne(x,ye,new Ef(5,[At]))}else throw new Error("Invalid state")}else _At(g,G.Name,x.length),x.push(H)}else x.push(H)}}finally{d2(L)}return tTe(x)}function q1t(p){const g=new Map([]),x=[],L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();if(H.tag===4){const G=H.fields[0],ye=new Bot(G.Name,G.IsRecursive,q1t($1t(G.Types)));if(g.has(G.Name)){const Oe=rat(g,G.Name)|0,ot=x[Oe];if(ot.tag===4){const At=ot.fields[0],sn=new Bot(At.Name,At.IsRecursive,q1t($1t(oU(At.Types,ye.Types))));Wne(x,Oe,new Ef(4,[sn]))}else throw new Error("Invalid state")}else _At(g,ye.Name,x.length),x.push(new Ef(4,[ye]))}else x.push(H)}}finally{d2(L)}return tTe(x)}function r3t(p){return q1t($1t(p))}class i3t{constructor(){this["Warnings@"]=[],this["Errors@"]=[],this["HasRegEpx@"]=!1,this["HasReadonlyArray@"]=!1,this["HasIterable@"]=!1}}function o3t(){return new i3t}class a3t{constructor(g,x,L,H){let G;this.reporter=g,this.currentScopeName=x,this.typeMemory=L,this.parent=H,this.types=[],this.modules=[],this["FullName@"]=(G=this.parent,G!=null?Nit(gL(G)+"."+this.currentScopeName,"."):""),this["CurrentScopeName@"]=this.currentScopeName,this["TypeMemory@"]=this.typeMemory,this["_types@"]=this.types,this["_Reporter@"]=this.reporter}}function FIt(p,g,x,L){return new a3t(p,g,x,L)}class s3t extends ap{constructor(g,x){super(),this.ObsoleteAttributes=g,this.XmlDoc=x}}class c3t extends ap{constructor(g,x,L,H,G,ye){super(),this.FSharpAST=g,this.Warnings=x,this.Errors=L,this.IncludeRegExpAlias=H,this.IncludeReadonlyArrayAlias=G,this.IncludeIterableAlias=ye}}function WIt(p){return p["Warnings@"]}function BIt(p){return p["Errors@"]}function l3t(p){return p["HasRegEpx@"]}function u3t(p,g){p["HasRegEpx@"]=g}function f3t(p){return p["HasReadonlyArray@"]}function _3t(p,g){p["HasReadonlyArray@"]=g}function d3t(p){return p["HasIterable@"]}function p3t(p,g){p["HasIterable@"]=g}function gL(p){return p["FullName@"]}function d8(p){return p["CurrentScopeName@"]}function ASt(p){return p["TypeMemory@"]}function m3t(p){return p["_types@"]}function g3t(p){return p["_Reporter@"]}function h3t(p){u3t(p.reporter,!0)}function zIt(p){_3t(p.reporter,!0)}function GIt(p){p3t(p.reporter,!0)}function tz(p,g){const x=p.parent;x!=null?m3t(x).push(g):p.types.push(g)}function I_e(p,g){const x=FIt(p.reporter,F5(g),p.typeMemory,p);return p.modules.push(x),x}function K1t(p){if(p.parent!=null){const g=Zd(cd(()=>V1(Zd(p.types),cd(()=>sot(K1t,p.modules)))));return yd(g)?lc():_l(new Ef(4,[new Bot(p.currentScopeName,!1,g)]))}else return Zd(cd(()=>V1(Zd(p.types),cd(()=>sot(K1t,p.modules)))))}function jIt(p,g){WIt(p.reporter).push(g)}function Xit(p,g){BIt(p.reporter).push(g)}function VIt(p,g){switch(g){case"RegExp":{h3t(p);break}case"ReadonlyArray":{zIt(p);break}case"Iterable":{GIt(p);break}}}function X1t(p,g){if(g.tag===13){const x=g.fields[0];return x.IsStandardLibrary&&VIt(p,x.Name),g}else return g}function UIt(p,g){let x;if(g.IsStandardLibrary){const L=g.Name;x=L==="Date"?"JS.Date":L==="Promise"?"JS.Promise":L==="Uint8Array"?"JS.Uint8Array":L==="Array"?"ResizeArray":L==="Boolean"?"bool":L==="Function"?"Action":L==="Error"?"Exception":L}else x=g.Name;return VIt(p,x),x}function HIt(p,g,x){const L=ly(p,g);return x&&L.tag===3?L.fields[0]:L}function j2(p,g){const x=F5(p);return[x,I_e(g,x)]}function h_e(p){const x=((ye,Oe)=>{e:for(;;){const ot=ye,At=Oe;if(yd(At))return ot;{const sn=Ay(At),tr=Hp(At);switch(tr.tag){case 3:{ye={Deprecated:oU(ot.Deprecated,_l(tr.fields[0])),Others:ot.Others,Remarks:ot.Remarks,Throws:ot.Throws},Oe=sn;continue e}case 8:{ye={Deprecated:ot.Deprecated,Others:ot.Others,Remarks:ot.Remarks,Throws:oU(ot.Throws,_l(tr.fields[0]))},Oe=sn;continue e}case 4:{ye={Deprecated:ot.Deprecated,Others:ot.Others,Remarks:oU(ot.Remarks,_l(tr.fields[0])),Throws:ot.Throws},Oe=sn;continue e}default:{ye={Deprecated:ot.Deprecated,Others:oU(ot.Others,_l(tr)),Remarks:ot.Remarks,Throws:ot.Throws},Oe=sn;continue e}}}}})({Deprecated:lc(),Others:lc(),Remarks:lc(),Throws:lc()},p),L=zf(ye=>new Sm(9,[ye]),x.Deprecated),H=!yd(x.Remarks)||!yd(x.Throws)?new M1e(3,[lA(` -`,Zd(cd(()=>V1(x.Remarks,cd(()=>V1(yd(x.Throws)?Uw():V1(yd(x.Remarks)?Uw():fg(""),cd(()=>V1(fg("Throws:"),cd(()=>fg("-------"))))),cd(()=>sot(ye=>V1(fg(""),cd(()=>fg(ye))),x.Throws))))))))]):void 0,G=zf(ye=>{switch(ye.tag){case 0:return new M1e(0,[ye.fields[0]]);case 1:return new M1e(2,[ye.fields[0]]);case 2:{const Oe=ye.fields[0];return new M1e(1,[new h4t(Oe.Name,bL(gz(ot=>Nit(Nit(Nit(ot),"-")),Oe.Content),""))])}case 5:return new M1e(4,[ye.fields[0]]);case 6:return new M1e(5,[ye.fields[0]]);case 7:{const Oe=ye.fields[0];return new M1e(6,[new y4t(Oe.TypeName,bL(Oe.Content,""))])}default:throw new Error("Should not happen")}},x.Others);return new s3t(L,Yxt(ye=>{switch(ye.tag){case 4:return 1;case 3:return 2;case 5:return 3;case 1:return 4;case 6:return 5;case 2:return 999;default:return 0}},Zd(cd(()=>V1(G,cd(()=>H!=null?fg(df(H)):Uw())))),{Compare:lU}))}function y3t(p){switch(p.tag){case 1:return new oRe(1,[p.fields[0]]);case 2:return new oRe(2,[p.fields[0]]);case 3:return new oRe(3,[p.fields[0]]);case 4:return new oRe(4,[]);default:return new oRe(0,[p.fields[0]])}}function JIt(p){switch(p.tag){case 1:return new RC(1,[]);case 2:return new RC(2,[]);case 3:return new RC(3,[]);case 4:return new RC(4,[]);case 5:return new RC(5,[]);case 6:return new RC(6,[]);case 7:return new RC(6,[]);case 8:return new RC(6,[]);case 9:return new RC(6,[]);case 10:return new RC(6,[]);case 11:return new RC(6,[]);default:return new RC(0,[])}}function $It(p,g){return new Ef(12,[zf(x=>ly(p,x),g)])}function qIt(p,g){const x=H=>new Ef(7,[new g_e("Iterable",_l(H))]),L=()=>x(new xje(0,[new Ef(18,[])]));return gz(H=>{const G=H.Type;switch(G.tag){case 13:{const ye=G.fields[0];return ye.Name==="IterableIterator"?x(new xje(0,[ly(p,Hp(ye.TypeArguments))])):L()}case 21:{let ye=new xje(0,[new Ef(18,[])]);const Oe=Ix(G.fields[0].Members);try{for(;Oe["System.Collections.IEnumerator.MoveNext"]();){const ot=Oe["System.Collections.Generic.IEnumerator`1.get_Current"]();let At,sn;switch(ot.tag===6&&ot.fields[0].Name==="next"?(At=0,sn=ot.fields[0]):At=1,At){case 0:{const tr=sn.Type;tr.tag===21&&SL(Nt=>{let Ot,bo;switch(Nt.tag===1&&Nt.fields[0].Name==="value"?(Ot=0,bo=Nt.fields[0]):Ot=1,Ot){case 0:{ye=new xje(0,[ly(p,bo.Type)]);break}case 1:break}},tr.fields[0].Members);break}}}}finally{d2(Oe)}return x(ye)}default:return L()}},wNt(EL(H=>{if(H.tag===6){const G=H.fields[0];return G.Name==="[Symbol.iterator]"?(GIt(p),G):void 0}else return},g.Members)))}function KIt(p,g,x){if(g.tag===1){const L=g.fields[0],H=j2(`U${_z(L)}`,p),G=new Ef(1,[new cMe(lc(),H[0],zf(ye=>{const Oe=I_e(H[1],`ReadOnly${ye.Name}`),ot=QRe(Oe,ye),At=new tP(ot.Attributes,ot.Name,ot.OriginalName,ot.TypeParameters,Z2t(ot.Members),ot.Inheritance);return tz(Oe,new Ef(5,[new tP(At.Attributes,d8(Oe),At.OriginalName,At.TypeParameters,At.Members,At.Inheritance)])),new lTe(1,[new Ef(5,[new tP(At.Attributes,gL(Oe),At.OriginalName,At.TypeParameters,At.Members,At.Inheritance)])])},L),!1)]);return x==null?G:x(G)}else{const L=new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),d8(p),d8(p),lc(),Z2t(cz(p,g.fields[0])),lc())]);return x==null?(tz(p,L),new Ef(7,[new g_e(gL(p),lc())])):L}}function ly(p,g){let x;e:for(;;){const L=p,H=g;switch(H.tag){case 3:return new Ef(8,[JIt(H.fields[0])]);case 25:return new Ef(8,[new RC(0,[])]);case 22:return new Ef(3,[ly(L,H.fields[0])]);case 17:{const G=H.fields[0];return new Ef(15,[new A4t(G.Name,BO(L,G.TypeParameters))])}case 18:return $It(L,H.fields[0]);case 29:return ekt(L,H.fields[0]);case 7:{const G=rMe(ot=>{if(ot.tag===3)switch(ot.fields[0].tag){case 7:case 8:return!0;default:return!1}else return!1},H.fields[0].fields[0]),ye=G[1],Oe=!yd(G[0]);if(Oe&&_z(ye)===1)return new Ef(3,[ly(L,Hp(ye))]);if(_z(ye)===1){p=L,g=Hp(ye);continue e}else{const ot=ZIt(L,d8(L),ye);if(ot==null){const At=j2(`U${_z(ye)}`,L);return new Ef(1,[new cMe(lc(),At[0],nMe((sn,tr)=>new lTe(1,[ly(I_e(At[1],`Case${sn+1}`),tr)]),ye),Oe)])}else return tz(L,ot),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))])}}case 13:{const G=H.fields[0];return new Ef(11,[new F1e(UIt(L,G),G.FullName,zf(ye=>ly(L,ye),G.TypeArguments),bL(gz(ye=>ly(L,ye),Sbt(ye=>ye.tag===1?ye.fields[0].FullName===G.FullName:!1,ASt(L))),new Ef(10,[])))])}case 14:return new Ef(14,[ly(L,H.fields[0])]);case 12:{const G=H.fields[0];return new Ef(11,[new F1e(G.Name,G.Name,lc(),new Ef(10,[]))])}case 16:return new Ef(13,[H.fields[0]]);case 15:{const G=H.fields[0],ye=FO(ot=>ot.Name!=="this",G.Parameters);let Oe;switch(yd(ye)||yd(Ay(ye))?Oe=0:Oe=1,Oe){case 0:return new Ef(16,[new q2t(zf(ot=>az(L,ot),ye),ly(L,G.Type))]);default:{const ot=BO(L,FO(At=>eat(sn=>At.Name===KK(sn.Type),ye),G.TypeParameters));return tz(L,new Ef(20,[new D4t(d8(L),ot,zf(At=>az(L,At),ye),ly(L,G.Type))])),new Ef(9,[new zot(lc(),gL(L),lc(),new Ef(10,[]),ot)])}}}case 1:return new Ef(5,[QRe(L,H.fields[0])]);case 21:{const G=H.fields[0];if(y_e(ye=>{switch(ye.tag){case 6:case 1:case 2:case 3:case 4:case 0:case 7:return!0;default:return!1}},G.Members)){const ye=Yxt(ot=>ot.IsOptional,zf(ot=>{const At=ot.Type;return At.tag===3?new tU(ot.Attributes,ot.Name,!0,At.fields[0]):ot},T3t(L,G.Members)),{Compare:lU}),Oe=zf(ot=>new b4t(ot.Name,ot.IsOptional?new Ef(3,[ot.Type]):ot.Type),ye);tz(L,new Ef(17,[new S4t(fu([new Sm(17,[]),new Sm(8,[])]),d8(L),lc(),new T4t(ye,fu([new Sm(18,[]),new Sm(2,[])]),new Bw(0,[])),lc(),Oe)]))}else tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),d8(L),"",lc(),cz(L,G.Members),Zd(cd(()=>{const ye=qIt(L,G);return ye==null?Uw():fg(ye)})))]));return new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))])}case 24:{p=L,g=H.fields[0];continue e}case 2:{p=L,g=H.fields[0].Type;continue e}case 9:{const G=XIt(d8(L),H.fields[0]);return G==null?new Ef(18,[]):(tz(L,G),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))]))}case 19:{p=L,g=H.fields[0].Type;continue e}case 0:return new Ef(18,[]);case 8:switch(H.fields[0].tag){case 1:return new Ef(8,[new RC(1,[])]);case 2:return new Ef(8,[new RC(2,[])]);case 3:return new Ef(8,[new RC(3,[])]);case 4:return new Ef(8,[new RC(6,[])]);default:return new Ef(8,[new RC(0,[])])}case 6:{const G=H.fields[0];return new Ef(16,[new q2t(zf(ye=>az(L,ye),G.Parameters),ly(L,G.Type))])}case 20:{const G=H.fields[0];return yd(G)?new Ef(18,[]):(tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),d8(L),d8(L),lc(),cz(L,G),lc())])),new Ef(7,[new g_e(gL(L),lc())]))}case 26:{const G=H.fields[0];let ye,Oe;switch(G.tag){case 1:{ye=1;break}case 2:{ye=2,Oe=G.fields[0];break}case 3:{ye=2,Oe=G.fields[0];break}case 4:{ye=3;break}case 5:{ye=4;break}default:ye=0}switch(ye){case 0:return tz(L,new Ef(5,[(x=QRe(L,G.fields[0]),CSt(d8(L),x))])),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))]);case 1:return tz(L,YIt(L,d8(L),lc(),G.fields[0])),new Ef(7,[new g_e(gL(L),lc())]);case 2:{p=L,g=Oe;continue e}case 3:return tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),d8(L),d8(L),lc(),cz(L,G.fields[0]),lc())])),new Ef(7,[new g_e(gL(L),lc())]);default:return KIt(L,G.fields[0],void 0)}}case 5:return new Ef(7,[new g_e(H.fields[0].Name,lc())]);case 27:case 11:case 10:case 4:return Xit(L,Rne(K1e("Could not transform type: %A%P()",[H]))),new Ef(10,[]);default:return new Ef(18,[])}break}}function v3t(p,g,x){const L=I_e(p,"Exports");return new Ef(5,[new tP(fu([new Sm(7,[]),new Sm(6,[])]),"Exports","Exports",lc(),rz(H=>{let G,ye,Oe,ot,At,sn,tr,Nt,Ot;switch(H.tag){case 2:{Oe=0,ot=H.fields[0];break}case 6:{Oe=1,At=H.fields[0];break}case 12:{Oe=2,sn=H.fields[0];break}case 24:{H.fields[0].tag===12?(Oe=2,sn=H.fields[0].fields[0]):(Oe=4,Nt=H.fields[0]);break}case 11:{Oe=3,tr=H.fields[0];break}default:Oe=5,Ot=H}switch(Oe){case 0:{const bo=j2(ot.Name,L),Yr=h_e(ot.Documentation);return _l(new zw(1,[new SM(Zd(cd(()=>V1(fg(new Sm(3,[ot.Name,"REPLACE_ME_WITH_MODULE_NAME"])),cd(()=>Yr.ObsoleteAttributes)))),bo[0],ot.Name,lc(),lc(),ly(bo[1],ot.Type),!1,!0,void 0,new Bw(0,[]),Yr.XmlDoc,new m8(0,[]))]))}case 1:{const bo=j2(At.Name,L),Yr=bo[1],Ns=h_e(At.Documentation);return _l(new zw(0,[(G=Zd(cd(()=>V1(fg(g?new Sm(3,[At.Name,"REPLACE_ME_WITH_MODULE_NAME"]):new Sm(15,[At.Name])),cd(()=>Ns.ObsoleteAttributes)))),ye=zf(ui=>az(Yr,ui),At.Parameters),new SM(G,bo[0],At.Name,BO(Yr,At.TypeParameters),ye,ly(Yr,At.Type),!1,g,void 0,new Bw(0,[]),Ns.XmlDoc,new m8(0,[])))]))}case 2:{const bo=j2(sn.Name,L),Yr=bo[1];return zf(Ns=>{let ui,Zr;const Zi=h_e(Ns.Documentation);return new zw(0,[(ui=Zd(cd(()=>V1(g?V1(fg(new Sm(3,[sn.Name,"REPLACE_ME_WITH_MODULE_NAME"])),cd(()=>fg(new Sm(13,[])))):fg(new Sm(14,[sn.Name])),cd(()=>Zi.ObsoleteAttributes)))),Zr=zf(jr=>az(Yr,jr),Ns.Parameters),new SM(ui,bo[0],sn.Name,BO(Yr,sn.TypeParameters),Zr,new Ef(7,[new g_e(F5(sn.Name),BO(Yr,sn.TypeParameters))]),!1,g,void 0,new Bw(0,[]),Zi.XmlDoc,new m8(0,[])))])},yd(sn.Constructors)?_l(new CIt(lc(),lc())):sn.Constructors)}case 3:{const bo=F5(tr.Name);return _l(new zw(1,[new SM(fu([new Sm(4,["REPLACE_ME_WITH_MODULE_NAME"]),new Sm(0,[`Emit("$0.${kVe(tr.Name)}")`])]),bo+"_",`${tr.Name}.Exports`,lc(),lc(),new Ef(7,[new g_e(`${bo}.Exports`,lc())]),!1,g,new QK(0,[]),new Bw(0,[]),lc(),new m8(0,[]))]))}case 4:{const bo=j2(KK(Nt),L);return _l(new zw(1,[new SM(_l(new Sm(5,["REPLACE_ME_WITH_MODULE_NAME"])),bo[0],KK(Nt),lc(),lc(),ly(bo[1],Nt),!1,!0,void 0,new Bw(0,[]),lc(),new m8(0,[]))]))}default:return dNt(bbt("Could not generate exportMembers for: %A"))(Ot)}},x),lc())])}function az(p,g){let x;const L=HIt(I_e(p,g.Name),g.Type,g.IsOptional);return x=g.IsSpread&&L.tag===14?L.fields[0]:L,new tU(Zd(cd(()=>g.IsSpread?fg(new Sm(19,[])):Uw())),F5(g.Name),g.IsOptional,x)}function b3t(p){switch(p.tag){case 1:return new QK(1,[]);case 2:return new QK(2,[]);default:return new QK(0,[])}}function cz(p,g){return EL(x=>{switch(x.tag){case 4:{const L=x.fields[0],H=j2("Invoke",p),G=H[1];return new zw(0,[new SM(_l(new Sm(1,[])),H[0],"Invoke",lc(),zf(ye=>az(G,ye),L.Parameters),ly(G,L.Type),!1,!1,void 0,new Bw(0,[]),lc(),new m8(0,[]))])}case 1:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return L.IsPrivate&&!L.IsStatic?void 0:new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),HIt(H[1],L.Type,L.IsOptional),L.IsOptional,L.IsStatic,b3t(L.Accessor),L.IsPrivate?new Bw(1,[]):new Bw(0,[]),G.XmlDoc,new m8(1,[]))])}case 2:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),ly(H[1],L.Type),!1,L.IsStatic,new QK(0,[]),new Bw(0,[]),G.XmlDoc,new m8(0,[]))])}case 3:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),ly(H[1],L.ArgumentType),!1,L.IsStatic,new QK(1,[]),new Bw(0,[]),G.XmlDoc,new m8(0,[]))])}case 5:{const L=x.fields[0],H=j2("Item",p),G=H[1];return new zw(1,[new SM(_l(new Sm(16,[])),H[0],"Item",lc(),zf(ye=>az(G,ye),L.Parameters),ly(G,L.Type),!1,!1,L.IsReadOnly?new QK(0,[]):new QK(2,[]),new Bw(0,[]),lc(),new m8(0,[]))])}case 6:{const L=x.fields[0],H=j2(L.Name,p),G=H[1],ye=h_e(L.Documentation);return new zw(0,[new SM(Zd(cd(()=>ye.ObsoleteAttributes)),H[0],L.Name,lc(),zf(Oe=>az(G,Oe),L.Parameters),ly(G,L.Type),!1,!1,void 0,new Bw(0,[]),ye.XmlDoc,new m8(0,[]))])}case 7:{const L=x.fields[0],H=j2("Create",p),G=H[1];return new zw(0,[new SM(_l(new Sm(13,[])),H[0],"Create",lc(),zf(ye=>az(G,ye),L.Parameters),ly(G,L.Type),!1,!1,void 0,new Bw(0,[]),lc(),new m8(0,[]))])}default:{const L=x.fields[0],H=j2(L.Name,p),G=H[0],ye=H[1];return L.IsStatic?new zw(2,[new v4t(lc(),G,L.Name,lc(),zf(Oe=>az(ye,Oe),L.Parameters),ly(ye,L.Type),L.IsOptional,void 0,new Bw(0,[]))]):new zw(0,[new SM(lc(),G,L.Name,lc(),zf(Oe=>az(ye,Oe),L.Parameters),ly(ye,L.Type),L.IsOptional,L.IsStatic,void 0,new Bw(0,[]),lc(),new m8(0,[]))])}}},EL(x=>{switch(x.tag){case 3:return Sbt(H=>H.tag===2?x.fields[0].Name===H.fields[0].Name:!1,g)==null?x:void 0;case 4:return x;case 0:return x;case 1:return x;case 5:return x;case 6:return x;case 7:return x;default:{const L=x.fields[0];return Sbt(G=>G.tag===3?L.Name===G.fields[0].Name:!1,g)==null?x:new ZV(1,[new Uot(L.Name,L.Documentation,L.Type,L.IsStatic,!1,new Fje(2,[]),L.IsPrivate)])}}},FO(x=>{let L,H;switch(x.tag){case 2:case 3:case 1:case 4:case 7:case 5:{L=1;break}case 6:{L=0,H=x.fields[0].Name;break}default:L=0,H=x.fields[0].Name}switch(L){case 0:return H!=="[Symbol.iterator]";default:return!0}},g)))}function Z2t(p){return zf(g=>{if(g.tag===1){const x=g.fields[0];return new zw(1,[new SM(x.Attributes,x.Name,x.OriginalName,x.TypeParameters,x.Parameters,x.Type,x.IsOptional,x.IsStatic,new QK(0,[]),x.Accessibility,x.XmlDoc,x.Body)])}else return g},p)}function T3t(p,g){return zf(x=>{switch(x.tag){case 1:{const L=x.fields[0],H=j2(L.Name,p);return new tU(lc(),H[0],L.IsOptional,ly(H[1],L.Type))}case 2:{const L=x.fields[0],H=j2(L.Name,p);return new tU(lc(),H[0],!1,ly(H[1],L.Type))}case 3:{const L=x.fields[0],H=j2(L.Name,p);return new tU(lc(),H[0],!1,ly(H[1],L.ArgumentType))}case 5:{const L=j2("Item",p);return new tU(lc(),L[0],!1,ly(L[1],x.fields[0].Type))}case 6:{const L=x.fields[0],H=j2(L.Name,p);return new tU(lc(),H[0],!1,ly(H[1],L.Type))}case 4:{const L=j2("Invoke",p);return new tU(lc(),L[0],!1,ly(L[1],x.fields[0].Type))}case 7:{const L=j2("Create",p);return new tU(lc(),L[0],!1,ly(L[1],x.fields[0].Type))}default:{const L=x.fields[0],H=j2(L.Name,p);return new tU(lc(),H[0],L.IsOptional,ly(H[1],L.Type))}}},g)}function QRe(p,g){const x=j2(g.Name,p),L=x[1],H=nTe(zf(ot=>nTe(EL(At=>{if(At.tag===1){const sn=At.fields[0];return sn.FullName===ot?CSt("FakeName",QRe(L,sn)).Members:void 0}else return},ASt(L))),EL(ot=>{if(ot.tag===13){const At=ot.fields[0];if(At.IsStandardLibrary&&At.Name==="Partial")if(_z(At.TypeArguments)===1){const sn=Ebt(0,At.TypeArguments);return sn.tag===13?sn.fields[0].FullName:void 0}else return;else return}else return},zf(ot=>X1t(L,ot),g.HeritageClauses)))),G=cz(L,g.Members),ye=FO(ot=>{if(ot.tag===13){const At=ot.fields[0];return!(At.IsStandardLibrary&&At.Name==="Partial")}else return!0},zf(ot=>X1t(L,ot),g.HeritageClauses)),Oe=oU(G,H);return new tP(fu([new Sm(8,[]),new Sm(20,[])]),x[0],g.Name,BO(L,g.TypeParameters),Oe,zf(ot=>ly(L,ot),ye))}function CSt(p,g){return new tP(g.Attributes,p,g.OriginalName,g.TypeParameters,zf(x=>{if(x.tag===1){const L=x.fields[0];return L.Type.tag===3?x:new zw(1,[new SM(L.Attributes,L.Name,L.OriginalName,L.TypeParameters,L.Parameters,L.Type,!0,L.IsStatic,L.Accessor,L.Accessibility,L.XmlDoc,L.Body)])}else return x},g.Members),g.Inheritance)}function S3t(p){const g=rMe(H=>H.Value.tag===1,FO(H=>{switch(H.Value.tag){case 1:case 0:return!0;default:return!1}},p.Members)),x=g[1],L=g[0];if(yd(L)){if(yd(x))throw new Error(`Empty enum: ${p.Name}`);return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),F5(p.Name),YRe(zf(H=>{let G;const ye=H.Value;if(ye.tag===0)G=ye.fields[0];else throw new Error("Should not happen");const Oe=F5(H.Name);return new lTe(0,[new fVe(Zd(cd(()=>Oe!==G?fg(new Sm(11,[kVe(G)])):Uw())),Oe)])},x),{Equals:g8,GetHashCode:FRe}),!1)])}else{if(yd(x))return new Ef(0,[new vIt(F5(p.Name),YRe(zf(H=>new yIt(F5(H.Name),y3t(H.Value)),L),{Equals:g8,GetHashCode:FRe}))]);throw new Error(`Mix enums are not supported in F# +`:l.prefix}}getInsertNodeAfterOptionsWorker(r){switch(r.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 ce.assert(uf(r)||$_(r)),{suffix:this.newLineCharacter}}}insertName(r,s,l){if(ce.assert(!s.name),s.kind===219){const m=Wm(s,39,r),y=Wm(s,21,r);y?(this.insertNodesAt(r,y.getStart(r),[be.createToken(100),be.createIdentifier(l)],{joiner:" "}),uD(this,r,m)):(this.insertText(r,Dl(s.parameters).getStart(r),`function ${l}(`),this.replaceRange(r,m,be.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(r,s.body.getStart(r),[be.createToken(19),be.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(r,s.body.end,[be.createToken(27),be.createToken(20)],{joiner:" "}))}else{const m=Wm(s,s.kind===218?100:86,r).end;this.insertNodeAt(r,m,be.createIdentifier(l),{prefix:" "})}}insertExportModifier(r,s){this.insertText(r,s.getStart(r),"export ")}insertImportSpecifierAtIndex(r,s,l,m){const y=l.elements[m-1];y?this.insertNodeInListAfter(r,y,s):this.insertNodeBefore(r,l.elements[0],s,!mv(l.elements[0].getStart(),l.parent.parent.getStart(),r))}insertNodeInListAfter(r,s,l,m=Rb.SmartIndenter.getContainingList(s,r)){if(!m){ce.fail("node is not a list element");return}const y=v9(m,s);if(y<0)return;const T=s.getEnd();if(y!==m.length-1){const D=bf(r,s.end);if(D&&zke(s,D)){const I=m[y+1],W=nZe(r.text,I.getFullStart()),O=`${Nd(D.kind)}${r.text.substring(D.end,W)}`;this.insertNodesAt(r,W,[l],{suffix:O})}}else{const D=s.getStart(r),I=wA(D,r);let W,O=!1;if(m.length===1)W=28;else{const V=T0(s.pos,r);W=zke(s,V)?V.kind:28,O=wA(m[y-1].getStart(r),r)!==I}if(vue(r.text,s.end)&&(O=!0),O){this.replaceRange(r,tv(T),be.createToken(W));const V=Rb.SmartIndenter.findFirstNonWhitespaceColumn(I,D,r,this.formatContext.options);let ee=ep(r.text,T,!0,!1);for(;ee!==T&&Ff(r.text.charCodeAt(ee-1));)ee--;this.replaceRange(r,tv(ee),l,{indentation:V,prefix:this.newLineCharacter})}else this.replaceRange(r,tv(T),l,{prefix:`${Nd(W)} `})}}parenthesizeExpression(r,s){this.replaceRange(r,coe(s),be.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:r,sourceFile:s})=>{const[l,m]=Gke(r,s);if(l!==void 0&&m!==void 0){const y=bue(r).length===0,T=mv(l,m,s);y&&T&&l!==m-1&&this.deleteRange(s,tv(l,m-1)),T&&this.insertText(s,m-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const r=new Set;for(const{sourceFile:s,node:l}of this.deletedNodes)this.deletedNodes.some(m=>m.sourceFile===s&&Oge(m.node,l))||(ls(l)?this.deleteRange(s,loe(s,l)):j9e.deleteDeclaration(this,r,s,l));r.forEach(s=>{const l=s.getSourceFile(),m=Rb.SmartIndenter.getContainingList(s,l);if(s!==yl(m))return;const y=Ms(m,T=>!r.has(T),m.length-2);y!==-1&&this.deleteRange(l,{pos:m[y].end,end:z9e(l,m[y+1])})})}getChanges(r){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=E0e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,r);return this.newFileChanges&&this.newFileChanges.forEach((l,m)=>{s.push(E0e.newFileChanges(m,l,this.newLineCharacter,this.formatContext))}),s}createNewFile(r,s,l){this.insertStatementsInNewFile(s,l,r)}},(t=>{function r(D,I,W,O){return Qo(BD(D,V=>V.sourceFile.path),V=>{const ee=V[0].sourceFile,te=nh(V,(de,ue)=>de.range.pos-ue.range.pos||de.range.end-ue.range.end);for(let de=0;de`${JSON.stringify(te[de].range)} and ${JSON.stringify(te[de+1].range)}`);const oe=Qo(te,de=>{const ue=FR(de.range),Ne=de.kind===1?ns(Ic(de.node))??de.sourceFile:de.kind===2?ns(Ic(de.nodes[0]))??de.sourceFile:de.sourceFile,Be=m(de,Ne,ee,I,W,O);if(!(ue.length===Be.length&&OAe(Ne.text,Be,ue.start)))return NZ(ue,Be)});return oe.length>0?{fileName:ee.fileName,textChanges:oe}:void 0})}t.getTextChangesFromChanges=r;function s(D,I,W,O){const V=l(EY(D),I,W,O);return{fileName:D,textChanges:[NZ(nb(0,0),V)],isNewFile:!0}}t.newFileChanges=s;function l(D,I,W,O){const V=ea(I,oe=>oe.statements.map(de=>de===4?"":T(de,oe.oldFile,W).text)).join(W),ee=Ape("any file name",V,99,!0,D),te=Rb.formatDocument(ee,O);return G9e(V,te)+W}t.newFileChangesWorker=l;function m(D,I,W,O,V,ee){var te;if(D.kind===0)return"";if(D.kind===3)return D.text;const{options:oe={},range:{pos:de}}=D,ue=Ve=>y(Ve,I,W,de,oe,O,V,ee),Ne=D.kind===2?D.nodes.map(Ve=>DM(ue(Ve),O)).join(((te=D.options)==null?void 0:te.joiner)||O):ue(D.node),Be=oe.indentation!==void 0||wA(de,I)===de?Ne:Ne.replace(/^\s+/,"");return(oe.prefix||"")+Be+(!oe.suffix||h_(Be,oe.suffix)?"":oe.suffix)}function y(D,I,W,O,{indentation:V,prefix:ee,delta:te},oe,de,ue){const{node:Ne,text:Be}=T(D,I,oe);ue&&ue(Ne,Be);const Ve=che(de,I),pt=V!==void 0?V:Rb.SmartIndenter.getIndentation(O,W,Ve,ee===oe||wA(O,I)===O);te===void 0&&(te=Rb.SmartIndenter.shouldIndentChildNode(Ve,D)&&Ve.indentSize||0);const Le={text:Be,getLineAndCharacterOfPosition(ke){return Ah(this,ke)}},ht=Rb.formatNodeGivenIndentation(Ne,Le,I.languageVariant,pt,te,{...de,options:Ve});return G9e(Be,ht)}function T(D,I,W){const O=iZe(W),V=Oj(W);return f4({newLine:V,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},O).writeNode(4,D,I,O),{text:O.getText(),node:Vke(D)}}t.getNonformattedText=T})(E0e||(E0e={})),Uke={...I6,factory:aJ(I6.factory.flags|1,I6.factory.baseFactory)},(t=>{function r(y,T,D,I){switch(I.kind){case 169:{const te=I.parent;ph(te)&&te.parameters.length===1&&!Wm(te,21,D)?y.replaceNodeWithText(D,I,"()"):Uq(y,T,D,I);break}case 272:case 271:const W=D.imports.length&&I===Dl(D.imports).parent||I===lr(D.statements,hm);uD(y,D,I,{leadingTriviaOption:W?0:g1(I)?2:3});break;case 208:const O=I.parent;O.kind===207&&I!==yl(O.elements)?uD(y,D,I):Uq(y,T,D,I);break;case 260:m(y,T,D,I);break;case 168:Uq(y,T,D,I);break;case 276:const ee=I.parent;ee.elements.length===1?l(y,D,ee):Uq(y,T,D,I);break;case 274:l(y,D,I);break;case 27:uD(y,D,I,{trailingTriviaOption:0});break;case 100:uD(y,D,I,{leadingTriviaOption:0});break;case 263:case 262:uD(y,D,I,{leadingTriviaOption:g1(I)?2:3});break;default:I.parent?lC(I.parent)&&I.parent.name===I?s(y,D,I.parent):el(I.parent)&&ni(I.parent.arguments,I)?Uq(y,T,D,I):uD(y,D,I):uD(y,D,I)}}t.deleteDeclaration=r;function s(y,T,D){if(!D.namedBindings)uD(y,T,D.parent);else{const I=D.name.getStart(T),W=bf(T,D.name.end);if(W&&W.kind===28){const O=ep(T.text,W.end,!1,!0);y.deleteRange(T,{pos:I,end:O})}else uD(y,T,D.name)}}function l(y,T,D){if(D.parent.name){const I=ce.checkDefined(bf(T,D.pos-1));y.deleteRange(T,{pos:I.getStart(T),end:D.end})}else{const I=e6(D,272);uD(y,T,I)}}function m(y,T,D,I){const{parent:W}=I;if(W.kind===299){y.deleteNodeRange(D,Wm(W,21,D),Wm(W,22,D));return}if(W.declarations.length!==1){Uq(y,T,D,I);return}const O=W.parent;switch(O.kind){case 250:case 249:y.replaceNode(D,I,be.createObjectLiteralExpression());break;case 248:uD(y,D,W);break;case 243:uD(y,D,O,{leadingTriviaOption:g1(O)?2:3});break;default:ce.assertNever(O)}}})(j9e||(j9e={}))}}),Hs={};Oe(Hs,{ChangeTracker:()=>S0e,LeadingTriviaOption:()=>T0e,TrailingTriviaOption:()=>pV,applyChanges:()=>G9e,assignPositionsToNode:()=>Vke,createWriter:()=>iZe,deleteNode:()=>uD,isThisTypeAnnotatable:()=>smt,isValidLocationToAddComment:()=>aZe});var V9e=G({"src/services/_namespaces/ts.textChanges.ts"(){zs()}}),x0e,U9e,H9e=G({"src/services/formatting/formattingContext.ts"(){El(),x0e=(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))(x0e||{}),U9e=class{constructor(t,r,s){this.sourceFile=t,this.formattingRequestKind=r,this.options=s}updateContext(t,r,s,l,m){this.currentTokenSpan=ce.checkDefined(t),this.currentTokenParent=ce.checkDefined(r),this.nextTokenSpan=ce.checkDefined(s),this.nextTokenParent=ce.checkDefined(l),this.contextNode=ce.checkDefined(m),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,r=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===r}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 r=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return r===s}BlockIsOnOneLine(t){const r=Wm(t,19,this.sourceFile),s=Wm(t,20,this.sourceFile);if(r&&s){const l=this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line,m=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return l===m}return!1}}}});function Hke(t,r,s,l,m){const y=r===1?sZe:J9e;y.setText(t),y.resetTokenState(s);let T=!0,D,I,W,O,V;const ee=m({advance:te,readTokenInfo:Le,readEOFTokenRange:ke,isOnToken:_t,isOnEOF:Dt,getCurrentLeadingTrivia:()=>D,lastTrailingTriviaWasNewLine:()=>T,skipToEndOf:it,skipToStartOf:Ye,getTokenFullStart:()=>(V==null?void 0:V.token.pos)??y.getTokenStart(),getStartPos:()=>(V==null?void 0:V.token.pos)??y.getTokenStart()});return V=void 0,y.setText(void 0),ee;function te(){V=void 0,y.getTokenFullStart()!==s?T=!!I&&yl(I).kind===4:y.scan(),D=void 0,I=void 0;let lt=y.getTokenFullStart();for(;lt(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))(C0e||{}),$9e=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))($9e||{})}});function ol(){const t=[];for(let ht=0;ht<=165;ht++)ht!==1&&t.push(ht);function r(...ht){return{tokens:t.filter(ke=>!ht.some(_t=>_t===ke)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},l=Jq([...t,3]),m=Jq([...t,1]),y=K9e(83,165),T=K9e(30,79),D=[103,104,165,130,142,152],I=[46,47,55,54],W=[9,10,80,21,23,19,110,105],O=[80,21,110,105],V=[80,22,24,105],ee=[80,21,110,105],te=[80,22,24,105],oe=[2,3],de=[80,...Fj],ue=l,Ne=Jq([80,3,86,95,102]),Be=Jq([22,3,92,113,98,93]),Ve=[Yc("IgnoreBeforeComment",s,oe,ate,1),Yc("IgnoreAfterLineComment",2,s,ate,1),Yc("NotSpaceBeforeColon",s,59,[nf,Tue,qke],16),Yc("SpaceAfterColon",59,s,[nf,Tue],4),Yc("NoSpaceBeforeQuestionMark",s,58,[nf,Tue,qke],16),Yc("SpaceAfterQuestionMarkInConditionalOperator",58,s,[nf,umt],4),Yc("NoSpaceAfterQuestionMark",58,s,[nf],16),Yc("NoSpaceBeforeDot",s,[25,29],[nf,Emt],16),Yc("NoSpaceAfterDot",[25,29],s,[nf],16),Yc("NoSpaceBetweenImportParenInImportType",102,21,[nf,hmt],16),Yc("NoSpaceAfterUnaryPrefixOperator",I,W,[nf,Tue],16),Yc("NoSpaceAfterUnaryPreincrementOperator",46,O,[nf],16),Yc("NoSpaceAfterUnaryPredecrementOperator",47,ee,[nf],16),Yc("NoSpaceBeforeUnaryPostincrementOperator",V,46,[nf,vZe],16),Yc("NoSpaceBeforeUnaryPostdecrementOperator",te,47,[nf,vZe],16),Yc("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[nf,FP],4),Yc("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[nf,FP],4),Yc("SpaceAfterAddWhenFollowedByPreincrement",40,46,[nf,FP],4),Yc("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[nf,FP],4),Yc("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[nf,FP],4),Yc("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[nf,FP],4),Yc("NoSpaceAfterCloseBrace",20,[28,27],[nf],16),Yc("NewLineBeforeCloseBraceInBlockContext",l,20,[Yke],8),Yc("SpaceAfterCloseBrace",20,r(22),[nf,_Ze],4),Yc("SpaceBetweenCloseBraceAndElse",20,93,[nf],4),Yc("SpaceBetweenCloseBraceAndWhile",20,117,[nf],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[nf,Sue],16),Yc("SpaceAfterConditionalClosingParen",22,23,[k0e],4),Yc("NoSpaceBetweenFunctionKeywordAndStar",100,42,[fZe],16),Yc("SpaceAfterStarInGeneratorDeclaration",42,80,[fZe],4),Yc("SpaceAfterFunctionInFuncDecl",100,s,[HF],4),Yc("NewLineAfterOpenBraceInBlockContext",19,s,[Yke],8),Yc("SpaceAfterGetSetInMember",[139,153],80,[HF],4),Yc("NoSpaceBetweenYieldKeywordAndStar",127,42,[nf,ePe],16),Yc("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[nf,ePe],4),Yc("NoSpaceBetweenReturnAndSemicolon",107,27,[nf],16),Yc("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[nf],4),Yc("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[nf,vmt],4),Yc("NoSpaceBeforeOpenParenInFuncCall",s,21,[nf,_mt,dmt],16),Yc("SpaceBeforeBinaryKeywordOperator",s,D,[nf,FP],4),Yc("SpaceAfterBinaryKeywordOperator",D,s,[nf,FP],4),Yc("SpaceAfterVoidOperator",116,s,[nf,N0e],4),Yc("SpaceBetweenAsyncAndOpenParen",134,21,[gmt,nf],4),Yc("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[nf],4),Yc("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[nf],16),Yc("SpaceBeforeJsxAttribute",s,80,[Zke,nf],4),Yc("SpaceBeforeSlashInJsxOpeningElement",s,44,[tWe,nf],4),Yc("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[tWe,nf],16),Yc("NoSpaceBeforeEqualInJsxAttribute",s,64,[pZe,nf],16),Yc("NoSpaceAfterEqualInJsxAttribute",64,s,[pZe,nf],16),Yc("NoSpaceAfterModuleImport",[144,149],21,[nf],16),Yc("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,[nf],4),Yc("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[nf],4),Yc("SpaceAfterModuleName",11,19,[gZe],4),Yc("SpaceBeforeArrow",s,39,[nf],4),Yc("SpaceAfterArrow",39,s,[nf],4),Yc("NoSpaceAfterEllipsis",26,80,[nf],16),Yc("NoSpaceAfterOptionalParameters",58,[22,28],[nf,Tue],16),Yc("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[nf,bmt],16),Yc("NoSpaceBeforeOpenAngularBracket",de,30,[nf,P0e],16),Yc("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[nf,P0e],16),Yc("NoSpaceAfterOpenAngularBracket",30,s,[nf,P0e],16),Yc("NoSpaceBeforeCloseAngularBracket",s,32,[nf,P0e],16),Yc("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[nf,P0e,hB,yZe],16),Yc("SpaceBeforeAt",[22,80],60,[nf],4),Yc("NoSpaceAfterAt",60,s,[nf],16),Yc("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[mZe],4),Yc("NoSpaceBeforeNonNullAssertionOperator",s,54,[nf,Tmt],16),Yc("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[nf,iWe],16),Yc("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[nf],4)],pt=[Yc("SpaceAfterConstructor",137,21,[k2("insertSpaceAfterConstructor"),nf],4),Yc("NoSpaceAfterConstructor",137,21,[_D("insertSpaceAfterConstructor"),nf],16),Yc("SpaceAfterComma",28,s,[k2("insertSpaceAfterCommaDelimiter"),nf,Qke,pmt,mmt],4),Yc("NoSpaceAfterComma",28,s,[_D("insertSpaceAfterCommaDelimiter"),nf,Qke],16),Yc("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[k2("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),HF],4),Yc("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[_D("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),HF],16),Yc("SpaceAfterKeywordInControl",y,21,[k2("insertSpaceAfterKeywordsInControlFlowStatements"),k0e],4),Yc("NoSpaceAfterKeywordInControl",y,21,[_D("insertSpaceAfterKeywordsInControlFlowStatements"),k0e],16),Yc("SpaceAfterOpenParen",21,s,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("SpaceBeforeCloseParen",s,22,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("SpaceBetweenOpenParens",21,21,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],4),Yc("NoSpaceBetweenParens",21,22,[nf],16),Yc("NoSpaceAfterOpenParen",21,s,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],16),Yc("NoSpaceBeforeCloseParen",s,22,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),nf],16),Yc("SpaceAfterOpenBracket",23,s,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],4),Yc("SpaceBeforeCloseBracket",s,24,[k2("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],4),Yc("NoSpaceBetweenBrackets",23,24,[nf],16),Yc("NoSpaceAfterOpenBracket",23,s,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],16),Yc("NoSpaceBeforeCloseBracket",s,24,[_D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),nf],16),Yc("SpaceAfterOpenBrace",19,s,[$ke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Kke],4),Yc("SpaceBeforeCloseBrace",s,20,[$ke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Kke],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[nf,Sue],16),Yc("NoSpaceAfterOpenBrace",19,s,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nf],16),Yc("NoSpaceBeforeCloseBrace",s,20,[fD("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nf],16),Yc("SpaceBetweenEmptyBraceBrackets",19,20,[k2("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[fD("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),nf],16),Yc("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[k2("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],4,1),Yc("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[k2("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nf],4),Yc("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[_D("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qu],16,1),Yc("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[_D("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nf],16),Yc("SpaceAfterOpenBraceInJsxExpression",19,s,[k2("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],4),Yc("SpaceBeforeCloseBraceInJsxExpression",s,20,[k2("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],4),Yc("NoSpaceAfterOpenBraceInJsxExpression",19,s,[_D("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],16),Yc("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[_D("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),nf,Eue],16),Yc("SpaceAfterSemicolonInFor",27,s,[k2("insertSpaceAfterSemicolonInForStatements"),nf,X9e],4),Yc("NoSpaceAfterSemicolonInFor",27,s,[_D("insertSpaceAfterSemicolonInForStatements"),nf,X9e],16),Yc("SpaceBeforeBinaryOperator",s,T,[k2("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],4),Yc("SpaceAfterBinaryOperator",T,s,[k2("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],4),Yc("NoSpaceBeforeBinaryOperator",s,T,[_D("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],16),Yc("NoSpaceAfterBinaryOperator",T,s,[_D("insertSpaceBeforeAndAfterBinaryOperators"),nf,FP],16),Yc("SpaceBeforeOpenParenInFuncDecl",s,21,[k2("insertSpaceBeforeFunctionParenthesis"),nf,HF],4),Yc("NoSpaceBeforeOpenParenInFuncDecl",s,21,[_D("insertSpaceBeforeFunctionParenthesis"),nf,HF],16),Yc("NewLineBeforeOpenBraceInControl",Be,19,[k2("placeOpenBraceOnNewLineForControlBlocks"),k0e,Xke],8,1),Yc("NewLineBeforeOpenBraceInFunction",ue,19,[k2("placeOpenBraceOnNewLineForFunctions"),HF,Xke],8,1),Yc("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Ne,19,[k2("placeOpenBraceOnNewLineForFunctions"),Z9e,Xke],8,1),Yc("SpaceAfterTypeAssertion",32,s,[k2("insertSpaceAfterTypeAssertion"),nf,oWe],4),Yc("NoSpaceAfterTypeAssertion",32,s,[_D("insertSpaceAfterTypeAssertion"),nf,oWe],16),Yc("SpaceBeforeTypeAnnotation",s,[58,59],[k2("insertSpaceBeforeTypeAnnotation"),nf,Y9e],4),Yc("NoSpaceBeforeTypeAnnotation",s,[58,59],[_D("insertSpaceBeforeTypeAnnotation"),nf,Y9e],16),Yc("NoOptionalSemicolon",27,m,[ux("semicolons","remove"),Smt],32),Yc("OptionalSemicolon",s,m,[ux("semicolons","insert"),TZe],64)],Le=[Yc("NoSpaceBeforeSemicolon",s,27,[nf],16),Yc("SpaceBeforeOpenBraceInControl",Be,19,[Jke("placeOpenBraceOnNewLineForControlBlocks"),k0e,rWe,Q9e],4,1),Yc("SpaceBeforeOpenBraceInFunction",ue,19,[Jke("placeOpenBraceOnNewLineForFunctions"),HF,D0e,rWe,Q9e],4,1),Yc("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Ne,19,[Jke("placeOpenBraceOnNewLineForFunctions"),Z9e,rWe,Q9e],4,1),Yc("NoSpaceBeforeComma",s,28,[nf],16),Yc("NoSpaceBeforeOpenBracket",r(134,84),23,[nf],16),Yc("NoSpaceAfterCloseBracket",24,s,[nf,ymt],16),Yc("SpaceAfterSemicolon",27,s,[nf],4),Yc("SpaceBetweenForAndAwaitKeyword",99,135,[nf],4),Yc("SpaceBetweenStatements",[22,92,93,84],s,[nf,Qke,I4],4),Yc("SpaceAfterTryCatchFinally",[113,85,98],19,[nf],4)];return[...Ve,...pt,...Le]}function Yc(t,r,s,l,m,y=0){return{leftTokenRange:q9e(r),rightTokenRange:q9e(s),rule:{debugName:t,context:l,action:m,flags:y}}}function Jq(t){return{tokens:t,isSpecific:!0}}function q9e(t){return typeof t=="number"?Jq([t]):ls(t)?Jq(t):t}function K9e(t,r,s=[]){const l=[];for(let m=t;m<=r;m++)ni(s,m)||l.push(m);return Jq(l)}function ux(t,r){return s=>s.options&&s.options[t]===r}function k2(t){return r=>r.options&&ef(r.options,t)&&!!r.options[t]}function fD(t){return r=>r.options&&ef(r.options,t)&&!r.options[t]}function _D(t){return r=>!r.options||!ef(r.options,t)||!r.options[t]}function Jke(t){return r=>!r.options||!ef(r.options,t)||!r.options[t]||r.TokensAreOnSameLine()}function $ke(t){return r=>!r.options||!ef(r.options,t)||!!r.options[t]}function X9e(t){return t.contextNode.kind===248}function I4(t){return!X9e(t)}function FP(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 Tue(t){return!FP(t)}function qke(t){return!Y9e(t)}function Y9e(t){const r=t.contextNode.kind;return r===172||r===171||r===169||r===260||xb(r)}function umt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function Q9e(t){return t.TokensAreOnSameLine()||D0e(t)}function Kke(t){return t.contextNode.kind===206||t.contextNode.kind===200||lZe(t)}function Xke(t){return D0e(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function Yke(t){return uZe(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function lZe(t){return uZe(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function uZe(t){return I0e(t.contextNode)}function D0e(t){return I0e(t.nextTokenParent)}function I0e(t){if(eWe(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function HF(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 hB(t){return!HF(t)}function fZe(t){return t.contextNode.kind===262||t.contextNode.kind===218}function Z9e(t){return eWe(t.contextNode)}function eWe(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 _Ze(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const r=t.currentTokenParent.parent;if(!r||r.kind!==219&&r.kind!==218)return!0}}return!1}function k0e(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 Sue(t){return t.contextNode.kind===210}function dZe(t){return t.contextNode.kind===213}function fmt(t){return t.contextNode.kind===214}function _mt(t){return dZe(t)||fmt(t)}function dmt(t){return t.currentTokenSpan.kind!==28}function pmt(t){return t.nextTokenSpan.kind!==24}function mmt(t){return t.nextTokenSpan.kind!==22}function gmt(t){return t.contextNode.kind===219}function hmt(t){return t.contextNode.kind===205}function nf(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function qu(t){return t.contextNode.kind!==12}function Qke(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function Eue(t){return t.contextNode.kind===294||t.contextNode.kind===293}function Zke(t){return t.nextTokenParent.kind===291}function pZe(t){return t.contextNode.kind===291}function tWe(t){return t.contextNode.kind===285}function ymt(t){return!HF(t)&&!D0e(t)}function mZe(t){return t.TokensAreOnSameLine()&&Fx(t.contextNode)&&nWe(t.currentTokenParent)&&!nWe(t.nextTokenParent)}function nWe(t){for(;t&&Nr(t);)t=t.parent;return t&&t.kind===170}function vmt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function rWe(t){return t.formattingRequestKind!==2}function gZe(t){return t.contextNode.kind===267}function bmt(t){return t.contextNode.kind===187}function iWe(t){return t.contextNode.kind===180}function hZe(t,r){if(t.kind!==30&&t.kind!==32)return!1;switch(r.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 P0e(t){return hZe(t.currentTokenSpan,t.currentTokenParent)||hZe(t.nextTokenSpan,t.nextTokenParent)}function oWe(t){return t.contextNode.kind===216}function yZe(t){return!oWe(t)}function N0e(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function ePe(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function Tmt(t){return t.contextNode.kind===235}function vZe(t){return!bZe(t)}function bZe(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Smt(t){let r=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(tI(r)){const y=t.nextTokenParent===t.currentTokenParent?Aj(t.currentTokenParent,Kr(t.currentTokenParent,T=>!T.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!y)return!0;r=y.kind,s=y.getStart(t.sourceFile)}const l=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,m=t.sourceFile.getLineAndCharacterOfPosition(s).line;return l===m?r===20||r===1:r===240||r===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!Np(t.currentTokenParent)||!!t.currentTokenParent.type||r!==21:Os(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&r!==23&&r!==21&&r!==40&&r!==41&&r!==44&&r!==14&&r!==28&&r!==228&&r!==16&&r!==15&&r!==25}function TZe(t){return sq(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function Emt(t){return!sa(t.contextNode)||!nS(t.contextNode.expression)||t.contextNode.expression.getText().indexOf(".")!==-1}var xmt=G({"src/services/formatting/rules.ts"(){El(),qx()}});function Amt(t,r){return{options:t,getRules:Cmt(),host:r}}function Cmt(){return aWe===void 0&&(aWe=Imt(ol())),aWe}function Dmt(t){let r=0;return t&1&&(r|=28),t&2&&(r|=96),t&28&&(r|=28),t&96&&(r|=96),r}function Imt(t){const r=kmt(t);return s=>{const l=r[SZe(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(l){const m=[];let y=0;for(const T of l){const D=~Dmt(y);T.action&D&&jr(T.context,I=>I(s))&&(m.push(T),y|=T.action)}if(m.length)return m}}}function kmt(t){const r=new Array(xue*xue),s=new Array(r.length);for(const l of t){const m=l.leftTokenRange.isSpecific&&l.rightTokenRange.isSpecific;for(const y of l.leftTokenRange.tokens)for(const T of l.rightTokenRange.tokens){const D=SZe(y,T);let I=r[D];I===void 0&&(I=r[D]=[]),Pmt(I,l.rule,m,s,D)}}return r}function SZe(t,r){return ce.assert(t<=165&&r<=165,"Must compute formatting context from tokens"),t*xue+r}function Pmt(t,r,s,l,m){const y=r.action&3?s?0:B6.StopRulesAny:r.context!==ate?s?B6.ContextRulesSpecific:B6.ContextRulesAny:s?B6.NoContextRulesSpecific:B6.NoContextRulesAny,T=l[m]||0;t.splice(Nmt(T,y),0,r),l[m]=EZe(T,y)}function Nmt(t,r){let s=0;for(let l=0;l<=r;l+=$q)s+=t&w0e,t>>=$q;return s}function EZe(t,r){const s=(t>>r&w0e)+1;return ce.assert((s&w0e)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(w0e<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=$q*1]="StopRulesAny",t[t.ContextRulesSpecific=$q*2]="ContextRulesSpecific",t[t.ContextRulesAny=$q*3]="ContextRulesAny",t[t.NoContextRulesSpecific=$q*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=$q*5]="NoContextRulesAny",t))(B6||{})}});function ste(t,r,s){const l={pos:t,end:r,kind:s};return ce.isDebugging&&Object.defineProperty(l,"__debugKind",{get:()=>ce.formatSyntaxKind(s)}),l}function cte(t,r,s){const l=r.getLineAndCharacterOfPosition(t).line;if(l===0)return[];let m=lie(l,r);for(;HD(r.text.charCodeAt(m));)m--;Ff(r.text.charCodeAt(m))&&m--;const y={pos:mP(l-1,r),end:m+1};return M0e(y,r,s,2)}function wmt(t,r,s){const l=sWe(t,27,r);return xZe(cWe(l),r,s,3)}function tPe(t,r,s){const l=sWe(t,19,r);if(!l)return[];const m=l.parent,y=cWe(m),T={pos:wA(y.getStart(r),r),end:t};return M0e(T,r,s,4)}function Rmt(t,r,s){const l=sWe(t,20,r);return xZe(cWe(l),r,s,5)}function Mmt(t,r){const s={pos:0,end:t.text.length};return M0e(s,t,r,0)}function Lmt(t,r,s,l){const m={pos:wA(t,s),end:r};return M0e(m,s,l,1)}function sWe(t,r,s){const l=T0(t,s);return l&&l.kind===r&&t===l.getEnd()?l:void 0}function cWe(t){let r=t;for(;r&&r.parent&&r.parent.end===t.end&&!Omt(r.parent,r);)r=r.parent;return r}function Omt(t,r){switch(t.kind){case 263:case 264:return sS(t.members,r);case 267:const s=t.body;return!!s&&s.kind===268&&sS(s.statements,r);case 312:case 241:case 268:return sS(t.statements,r);case 299:return sS(t.block.statements,r)}return!1}function lWe(t,r){return s(r);function s(l){const m=B_(l,y=>xZ(y.getStart(r),y.end,t)&&y);if(m){const y=s(m);if(y)return y}return l}}function uWe(t,r){if(!t.length)return m;const s=t.filter(y=>RR(r,y.start,y.start+y.length)).sort((y,T)=>y.start-T.start);if(!s.length)return m;let l=0;return y=>{for(;;){if(l>=s.length)return!1;const T=s[l];if(y.end<=T.start)return!1;if(AF(y.pos,y.end,T.start,T.start+T.length))return!0;l++}};function m(){return!1}}function Fmt(t,r,s){const l=t.getStart(s);if(l===r.pos&&t.end===r.end)return l;const m=T0(r.pos,s);return!m||m.end>=r.pos?t.pos:m.end}function Wmt(t,r,s){let l=-1,m;for(;t;){const y=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(l!==-1&&y!==l)break;if($x.shouldIndentChildNode(r,t,m,s))return r.indentSize;l=y,m=t,t=t.parent}return 0}function Bmt(t,r,s,l,m,y){const T={pos:t.pos,end:t.end};return Hke(r.text,s,T.pos,T.end,D=>AZe(T,t,l,m,D,y,1,I=>!1,r))}function xZe(t,r,s,l){if(!t)return[];const m={pos:wA(t.getStart(r),r),end:t.end};return M0e(m,r,s,l)}function M0e(t,r,s,l){const m=lWe(t,r);return Hke(r.text,r.languageVariant,Fmt(m,t,r),t.end,y=>AZe(t,m,$x.getIndentationForNode(m,t,r,s.options),Wmt(m,s.options,r),y,s,l,uWe(r.parseDiagnostics,t),r))}function AZe(t,r,s,l,m,{options:y,getRules:T,host:D},I,W,O){var V;const ee=new U9e(O,I,y);let te,oe,de,ue,Ne,Be=-1;const Ve=[];if(m.advance(),m.isOnToken()){const Ut=O.getLineAndCharacterOfPosition(r.getStart(O)).line;let In=Ut;Fx(r)&&(In=O.getLineAndCharacterOfPosition(y9(r,O)).line),Dt(r,r,Ut,In,s,l)}const pt=m.getCurrentLeadingTrivia();if(pt){const Ut=$x.nodeWillIndentChild(y,r,void 0,O,!1)?s+y.indentSize:s;Ft(pt,Ut,!0,In=>{Ye(In,O.getLineAndCharacterOfPosition(In.pos),r,r,void 0),lt(In.pos,Ut,!1)}),y.trimTrailingWhitespace!==!1&&cr(pt)}if(oe&&m.getTokenFullStart()>=t.end){const Ut=m.isOnEOF()?m.readEOFTokenRange():m.isOnToken()?m.readTokenInfo(r).token:void 0;if(Ut&&Ut.pos===te){const In=((V=T0(Ut.end,O,r))==null?void 0:V.parent)||de;ut(Ut,O.getLineAndCharacterOfPosition(Ut.pos).line,In,oe,ue,de,In,void 0)}}return Ve;function Le(Ut,In,gr,Cr,ei){if(RR(Cr,Ut,In)||AZ(Cr,Ut,In)){if(ei!==-1)return ei}else{const Gn=O.getLineAndCharacterOfPosition(Ut).line,Ur=wA(Ut,O),so=$x.findFirstNonWhitespaceColumn(Ur,Ut,O,y);if(Gn!==gr||Ut===so){const ho=$x.getBaseIndentation(y);return ho>so?ho:so}}return-1}function ht(Ut,In,gr,Cr,ei,Gn){const Ur=$x.shouldIndentChildNode(y,Ut)?y.indentSize:0;return Gn===In?{indentation:In===Ne?Be:ei.getIndentation(),delta:Math.min(y.indentSize,ei.getDelta(Ut)+Ur)}:gr===-1?Ut.kind===21&&In===Ne?{indentation:Be,delta:ei.getDelta(Ut)}:$x.childStartsOnTheSameLineWithElseInIfStatement(Cr,Ut,In,O)||$x.childIsUnindentedBranchOfConditionalExpression(Cr,Ut,In,O)||$x.argumentStartsOnSameLineAsPreviousArgument(Cr,Ut,In,O)?{indentation:ei.getIndentation(),delta:Ur}:{indentation:ei.getIndentation()+ei.getDelta(Ut),delta:Ur}:{indentation:gr,delta:Ur}}function ke(Ut){if(nx(Ut)){const In=lr(Ut.modifiers,bd,Ho(Ut.modifiers,Qf));if(In)return In.kind}switch(Ut.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(Ut.asteriskToken)return 42;case 172:case 169:const In=o_(Ut);if(In)return In.kind}}function _t(Ut,In,gr,Cr){return{getIndentationForComment:(Ur,so,ho)=>{switch(Ur){case 20:case 24:case 22:return gr+Gn(ho)}return so!==-1?so:gr},getIndentationForToken:(Ur,so,ho,di)=>!di&&ei(Ur,so,ho)?gr+Gn(ho):gr,getIndentation:()=>gr,getDelta:Gn,recomputeIndentation:(Ur,so)=>{$x.shouldIndentChildNode(y,so,Ut,O)&&(gr+=Ur?y.indentSize:-y.indentSize,Cr=$x.shouldIndentChildNode(y,Ut)?y.indentSize:0)}};function ei(Ur,so,ho){switch(so){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ho.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ho.kind!==200)return!1;break}return In!==Ur&&!(Fx(Ut)&&so===ke(Ut))}function Gn(Ur){return $x.nodeWillIndentChild(y,Ut,Ur,O,!0)?Cr:0}}function Dt(Ut,In,gr,Cr,ei,Gn){if(!RR(t,Ut.getStart(O),Ut.getEnd()))return;const Ur=_t(Ut,gr,ei,Gn);let so=In;for(B_(Ut,ha=>{ho(ha,-1,Ut,Ur,gr,Cr,!1)},ha=>{di(ha,Ut,gr,Ur)});m.isOnToken()&&m.getTokenFullStart()Math.min(Ut.end,t.end))break;Nc(ha,Ut,Ur,Ut)}function ho(ha,ro,Gs,Oc,_u,Ku,al,Rr){if(ce.assert(!rh(ha)),Um(ha)||VMe(Gs,ha))return ro;const mc=ha.getStart(O),Ea=O.getLineAndCharacterOfPosition(mc).line;let Fi=Ea;Fx(ha)&&(Fi=O.getLineAndCharacterOfPosition(y9(ha,O)).line);let ta=-1;if(al&&sS(t,Gs)&&(ta=Le(mc,ha.end,_u,t,ro),ta!==-1&&(ro=ta)),!RR(t,ha.pos,ha.end))return ha.endt.end)return ro;if(Xu.token.end>mc){Xu.token.pos>mc&&m.skipToStartOf(ha);break}Nc(Xu,Ut,Oc,Ut)}if(!m.isOnToken()||m.getTokenFullStart()>=t.end)return ro;if(VC(ha)){const Xu=m.readTokenInfo(ha);if(ha.kind!==12)return ce.assert(Xu.token.end===ha.end,"Token end is child end"),Nc(Xu,Ut,Oc,ha),ro}const $a=ha.kind===170?Ea:Ku,jc=ht(ha,Ea,ta,Ut,Oc,$a);return Dt(ha,so,Ea,Fi,jc.indentation,jc.delta),so=Ut,Rr&&Gs.kind===209&&ro===-1&&(ro=jc.indentation),ro}function di(ha,ro,Gs,Oc){ce.assert(L8(ha)),ce.assert(!rh(ha));const _u=L0e(ro,ha);let Ku=Oc,al=Gs;if(!RR(t,ha.pos,ha.end)){ha.endha.pos)break;if(Ea.token.kind===_u){al=O.getLineAndCharacterOfPosition(Ea.token.pos).line,Nc(Ea,ro,Oc,ro);let Fi;if(Be!==-1)Fi=Be;else{const ta=wA(Ea.token.pos,O);Fi=$x.findFirstNonWhitespaceColumn(ta,Ea.token.pos,O,y)}Ku=_t(ro,Gs,Fi,y.indentSize)}else Nc(Ea,ro,Oc,ro)}let Rr=-1;for(let Ea=0;Ealt(jc.pos,$a,!1))}Fi!==-1&&ta&&(lt(ha.token.pos,Fi,Rr===1),Ne=Ea.line,Be=Fi)}m.advance(),so=ro}}function Ft(Ut,In,gr,Cr){for(const ei of Ut){const Gn=sS(t,ei);switch(ei.kind){case 3:Gn&&tt(ei,In,!gr),gr=!1;break;case 2:gr&&Gn&&Cr(ei),gr=!1;break;case 4:gr=!0;break}}return gr}function it(Ut,In,gr,Cr){for(const ei of Ut)if(q$(ei.kind)&&sS(t,ei)){const Gn=O.getLineAndCharacterOfPosition(ei.pos);Ye(ei,Gn,In,gr,Cr)}}function Ye(Ut,In,gr,Cr,ei){const Gn=W(Ut);let Ur=0;if(!Gn)if(oe)Ur=ut(Ut,In.line,gr,oe,ue,de,Cr,ei);else{const so=O.getLineAndCharacterOfPosition(t.pos);Mn(so.line,In.line)}return oe=Ut,te=Ut.end,de=gr,ue=In.line,Ur}function ut(Ut,In,gr,Cr,ei,Gn,Ur,so){ee.updateContext(Cr,Gn,Ut,gr,Ur);const ho=T(ee);let di=ee.options.trimTrailingWhitespace!==!1,Nc=0;return ho?bo(ho,ha=>{if(Nc=Xr(ha,Cr,ei,Ut,In),so)switch(Nc){case 2:gr.getStart(O)===Ut.pos&&so.recomputeIndentation(!1,Ur);break;case 1:gr.getStart(O)===Ut.pos&&so.recomputeIndentation(!0,Ur);break;default:ce.assert(Nc===0)}di=di&&!(ha.action&16)&&ha.flags!==1}):di=di&&Ut.kind!==1,In!==ei&&di&&Mn(ei,In,Cr),Nc}function lt(Ut,In,gr){const Cr=nPe(In,y);if(gr)pn(Ut,0,Cr);else{const ei=O.getLineAndCharacterOfPosition(Ut),Gn=mP(ei.line,O);(In!==zt(Gn,ei.character)||Wt(Cr,Gn))&&pn(Gn,ei.character,Cr)}}function zt(Ut,In){let gr=0;for(let Cr=0;Cr0){const Ku=nPe(_u,y);pn(Gs,Oc.character,Ku)}else on(Gs,Oc.character)}}function Mn(Ut,In,gr){for(let Cr=Ut;CrGn)continue;const Ur=kn(ei,Gn);Ur!==-1&&(ce.assert(Ur===ei||!HD(O.text.charCodeAt(Ur-1))),on(Ur,Gn+1-Ur))}}function kn(Ut,In){let gr=In;for(;gr>=Ut&&HD(O.text.charCodeAt(gr));)gr--;return gr!==In?gr+1:-1}function cr(Ut){let In=oe?oe.end:t.pos;for(const gr of Ut)q$(gr.kind)&&(InH$(W,r)||r===W.end&&(W.kind===2||r===t.getFullWidth()))}function L0e(t,r){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===r)return 30;if(t.parameters===r)return 21;break;case 213:case 214:if(t.typeArguments===r)return 30;if(t.arguments===r)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===r)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===r)return 30;break;case 187:return 19}return 0}function CZe(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function nPe(t,r){if((!rPe||rPe.tabSize!==r.tabSize||rPe.indentSize!==r.indentSize)&&(rPe={tabSize:r.tabSize,indentSize:r.indentSize},Aue=qq=void 0),r.convertTabsToSpaces){let l;const m=Math.floor(t/r.indentSize),y=t%r.indentSize;return qq||(qq=[]),qq[m]===void 0?(l=PP(" ",r.indentSize*m),qq[m]=l):l=qq[m],y?l+PP(" ",y):l}else{const l=Math.floor(t/r.tabSize),m=t-l*r.tabSize;let y;return Aue||(Aue=[]),Aue[l]===void 0?Aue[l]=y=PP(" ",l):y=Aue[l],m?y+PP(" ",m):y}}var rPe,Aue,qq,iPe=G({"src/services/formatting/formatting.ts"(){El(),qx()}}),$x,Cue=G({"src/services/formatting/smartIndenter.ts"(){El(),qx(),(t=>{let r;(tt=>{tt[tt.Unknown=-1]="Unknown"})(r||(r={}));function s(tt,Mn,kn,cr=!1){if(tt>Mn.text.length)return D(kn);if(kn.indentStyle===0)return 0;const un=T0(tt,Mn,void 0,!0),on=fWe(Mn,tt,un||null);if(on&&on.kind===3)return l(Mn,tt,kn,on);if(!un)return D(kn);if(Vge(un.kind)&&un.getStart(Mn)<=tt&&tt=0),un<=on)return Ye(mP(on,tt),Mn,tt,kn);const pn=mP(un,tt),{column:Or,character:Xr}=it(pn,Mn,tt,kn);return Or===0?Or:tt.text.charCodeAt(pn+Xr)===42?Or-1:Or}function m(tt,Mn,kn){let cr=Mn;for(;cr>0;){const on=tt.text.charCodeAt(cr);if(!UD(on))break;cr--}const un=wA(cr,tt);return Ye(un,cr,tt,kn)}function y(tt,Mn,kn,cr,un,on){let pn,Or=kn;for(;Or;){if(Ux(Or,Mn,tt)&&zt(on,Or,pn,tt,!0)){const Ut=oe(Or,tt),In=te(kn,Or,cr,tt),gr=In!==0?un&&In===2?on.indentSize:0:cr!==Ut.line?on.indentSize:0;return I(Or,Ut,void 0,gr,tt,!0,on)}const Xr=_t(Or,tt,on,!0);if(Xr!==-1)return Xr;pn=Or,Or=Or.parent}return D(on)}function T(tt,Mn,kn,cr){const un=kn.getLineAndCharacterOfPosition(tt.getStart(kn));return I(tt,un,Mn,0,kn,!1,cr)}t.getIndentationForNode=T;function D(tt){return tt.baseIndentSize||0}t.getBaseIndentation=D;function I(tt,Mn,kn,cr,un,on,pn){var Or;let Xr=tt.parent;for(;Xr;){let Ut=!0;if(kn){const ei=tt.getStart(un);Ut=eikn.end}const In=W(Xr,tt,un),gr=In.line===Mn.line||ue(Xr,tt,Mn.line,un);if(Ut){const ei=(Or=Ve(tt,un))==null?void 0:Or[0],Gn=!!ei&&oe(ei,un).line>In.line;let Ur=_t(tt,un,pn,Gn);if(Ur!==-1||(Ur=V(tt,Xr,Mn,gr,un,pn),Ur!==-1))return Ur+cr}zt(pn,Xr,tt,un,on)&&!gr&&(cr+=pn.indentSize);const Cr=de(Xr,tt,Mn.line,un);tt=Xr,Xr=tt.parent,Mn=Cr?un.getLineAndCharacterOfPosition(tt.getStart(un)):In}return cr+D(pn)}function W(tt,Mn,kn){const cr=Ve(Mn,kn),un=cr?cr.pos:tt.getStart(kn);return kn.getLineAndCharacterOfPosition(un)}function O(tt,Mn,kn){const cr=CZ(tt);return cr&&cr.listItemIndex>0?Dt(cr.list.getChildren(),cr.listItemIndex-1,Mn,kn):-1}function V(tt,Mn,kn,cr,un,on){return(dl(tt)||YX(tt))&&(Mn.kind===312||!cr)?Ft(kn,un,on):-1}let ee;(tt=>{tt[tt.Unknown=0]="Unknown",tt[tt.OpenBrace=1]="OpenBrace",tt[tt.CloseBrace=2]="CloseBrace"})(ee||(ee={}));function te(tt,Mn,kn,cr){const un=Aj(tt,Mn,cr);if(!un)return 0;if(un.kind===19)return 1;if(un.kind===20){const on=oe(un,cr).line;return kn===on?2:0}return 0}function oe(tt,Mn){return Mn.getLineAndCharacterOfPosition(tt.getStart(Mn))}function de(tt,Mn,kn,cr){if(!(el(tt)&&ni(tt.arguments,Mn)))return!1;const un=tt.expression.getEnd();return Ah(cr,un).line===kn}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=de;function ue(tt,Mn,kn,cr){if(tt.kind===245&&tt.elseStatement===Mn){const un=Wm(tt,93,cr);return ce.assert(un!==void 0),oe(un,cr).line===kn}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=ue;function Ne(tt,Mn,kn,cr){if(vk(tt)&&(Mn===tt.whenTrue||Mn===tt.whenFalse)){const un=Ah(cr,tt.condition.end).line;if(Mn===tt.whenTrue)return kn===un;{const on=oe(tt.whenTrue,cr).line,pn=Ah(cr,tt.whenTrue.end).line;return un===on&&pn===kn}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Ne;function Be(tt,Mn,kn,cr){if(IN(tt)){if(!tt.arguments)return!1;const un=lr(tt.arguments,Xr=>Xr.pos===Mn.pos);if(!un)return!1;const on=tt.arguments.indexOf(un);if(on===0)return!1;const pn=tt.arguments[on-1],Or=Ah(cr,pn.getEnd()).line;if(kn===Or)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=Be;function Ve(tt,Mn){return tt.parent&&Le(tt.getStart(Mn),tt.getEnd(),tt.parent,Mn)}t.getContainingList=Ve;function pt(tt,Mn,kn){return Mn&&Le(tt,tt,Mn,kn)}function Le(tt,Mn,kn,cr){switch(kn.kind){case 183:return un(kn.typeArguments);case 210:return un(kn.properties);case 209:return un(kn.elements);case 187:return un(kn.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return un(kn.typeParameters)||un(kn.parameters);case 177:return un(kn.parameters);case 263:case 231:case 264:case 265:case 352:return un(kn.typeParameters);case 214:case 213:return un(kn.typeArguments)||un(kn.arguments);case 261:return un(kn.declarations);case 275:case 279:return un(kn.elements);case 206:case 207:return un(kn.elements)}function un(on){return on&&AZ(ht(kn,on,cr),tt,Mn)?on:void 0}}function ht(tt,Mn,kn){const cr=tt.getChildren(kn);for(let un=1;un=0&&Mn=0;pn--){if(tt[pn].kind===28)continue;if(kn.getLineAndCharacterOfPosition(tt[pn].end).line!==on.line)return Ft(on,kn,cr);on=oe(tt[pn],kn)}return-1}function Ft(tt,Mn,kn){const cr=Mn.getPositionOfLineAndCharacter(tt.line,0);return Ye(cr,cr+tt.character,Mn,kn)}function it(tt,Mn,kn,cr){let un=0,on=0;for(let pn=tt;pnU9e,FormattingRequestKind:()=>x0e,RuleAction:()=>C0e,RuleFlags:()=>$9e,SmartIndenter:()=>$x,anyContext:()=>ate,createTextRangeWithKind:()=>ste,formatDocument:()=>Mmt,formatNodeGivenIndentation:()=>Bmt,formatOnClosingCurly:()=>Rmt,formatOnEnter:()=>cte,formatOnOpeningCurly:()=>tPe,formatOnSemicolon:()=>wmt,formatSelection:()=>Lmt,getAllRules:()=>ol,getFormatContext:()=>Amt,getFormattingScanner:()=>Hke,getIndentationString:()=>nPe,getRangeOfEnclosingComment:()=>fWe});var qx=G({"src/services/_namespaces/ts.formatting.ts"(){H9e(),A0e(),cZe(),xmt(),R0e(),iPe(),Cue()}}),El=G({"src/services/_namespaces/ts.ts"(){Ad(),Dge(),Wse(),BAe(),VAe(),JAe(),$Ae(),qAe(),Zct(),Q8e(),f$e(),aCe(),clt(),h$e(),Mqe(),mDe(),TDe(),zqe(),kOe(),POe(),hp(),Zve(),u9e(),rpt(),spt(),bpt(),c3e(),Ihe(),kpt(),Rpt(),MP(),Fpt(),nmt(),XQe(),tZe(),V9e(),qx()}});function V0(){return kZe??(kZe=new en(At))}function lte(t,r,s,l,m){let y=r?"DeprecationError: ":"DeprecationWarning: ";return y+=`'${t}' `,y+=l?`has been deprecated since v${l}`:"is deprecated",y+=r?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",y+=m?` ${LT(m,[t],0)}`:"",y}function xl(t,r,s,l){const m=lte(t,!0,r,s,l);return()=>{throw new TypeError(m)}}function zmt(t,r,s,l){let m=!1;return()=>{IZe&&!m&&(ce.log.warn(lte(t,!1,r,s,l)),m=!0)}}function DZe(t,r={}){const s=typeof r.typeScriptVersion=="string"?new en(r.typeScriptVersion):r.typeScriptVersion??V0(),l=typeof r.errorAfter=="string"?new en(r.errorAfter):r.errorAfter,m=typeof r.warnAfter=="string"?new en(r.warnAfter):r.warnAfter,y=typeof r.since=="string"?new en(r.since):r.since??m,T=r.error||l&&s.compareTo(l)>=0,D=!m||s.compareTo(m)>=0;return T?xl(t,l,y,r.message):D?zmt(t,l,y,r.message):ku}function Gmt(t,r){return function(){return t(),r.apply(this,arguments)}}function _We(t,r){const s=DZe((r==null?void 0:r.name)??ce.getFunctionName(t),r);return Gmt(s,t)}var IZe,kZe,oPe=G({"src/deprecatedCompat/deprecate.ts"(){O0e(),IZe=!0}});function aPe(t,r,s,l){if(Object.defineProperty(y,"name",{...Object.getOwnPropertyDescriptor(y,"name"),value:t}),l)for(const T of Object.keys(l)){const D=+T;!isNaN(D)&&ef(r,`${D}`)&&(r[D]=_We(r[D],{...l[D],name:t}))}const m=PZe(r,s);return y;function y(...T){const D=m(T),I=D!==void 0?r[D]:void 0;if(typeof I=="function")return I(...T);throw new TypeError("Invalid arguments")}}function PZe(t,r){return s=>{for(let l=0;ef(t,`${l}`)&&ef(r,`${l}`);l++){const m=r[l];if(m(s))return l}}}function NZe(t){return{overload:r=>({bind:s=>({finish:()=>aPe(t,r,s),deprecate:l=>({finish:()=>aPe(t,r,s,l)})})})}}var sPe=G({"src/deprecatedCompat/deprecations.ts"(){O0e(),oPe()}}),jmt=G({"src/deprecatedCompat/5.0/identifierProperties.ts"(){O0e(),oPe(),wSe(t=>{const r=t.getIdentifierConstructor();ef(r.prototype,"originalKeywordKind")||Object.defineProperty(r.prototype,"originalKeywordKind",{get:_We(function(){return RL(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ef(r.prototype,"isInJSDocNamespace")||Object.defineProperty(r.prototype,"isInJSDocNamespace",{get:_We(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."})})})}}),O0e=G({"src/deprecatedCompat/_namespaces/ts.ts"(){Ad(),sPe(),jmt()}}),wZe={};Oe(wZe,{ANONYMOUS:()=>cB,AccessFlags:()=>mre,AssertionLevel:()=>Ez,AssignmentDeclarationKind:()=>wz,AssignmentKind:()=>voe,Associativity:()=>oEe,BreakpointResolver:()=>Aq,BuilderFileEmit:()=>age,BuilderProgramKind:()=>sge,BuilderState:()=>sD,BundleFileSectionKind:()=>TTe,CallHierarchy:()=>Dq,CharacterCodes:()=>Pre,CheckFlags:()=>ure,CheckMode:()=>Aae,ClassificationType:()=>Rge,ClassificationTypeNames:()=>Fse,CommentDirectiveType:()=>Yne,Comparison:()=>sn,CompletionInfoFlags:()=>lx,CompletionTriggerKind:()=>D8e,Completions:()=>ow,ConfigFileProgramReloadLevel:()=>w4e,ContainerFlags:()=>MLe,ContextFlags:()=>ire,CoreServicesShimHostAdapter:()=>vDe,Debug:()=>ce,DiagnosticCategory:()=>DU,Diagnostics:()=>w,DocumentHighlights:()=>mhe,ElementFlags:()=>pre,EmitFlags:()=>IX,EmitHint:()=>Rre,EmitOnly:()=>Zne,EndOfLineState:()=>Rse,EnumKind:()=>lre,ExitStatus:()=>tre,ExportKind:()=>F8e,Extension:()=>Nre,ExternalEmitHelpers:()=>kU,FileIncludeKind:()=>hX,FilePreprocessingDiagnosticsKind:()=>Qne,FileSystemEntryKind:()=>Gre,FileWatcherEventKind:()=>NU,FindAllReferences:()=>Wf,FlattenLevel:()=>i4e,FlowFlags:()=>AU,ForegroundColorEscapeSequences:()=>ise,FunctionFlags:()=>iEe,GeneratedIdentifierFlags:()=>mX,GetLiteralTextFlags:()=>CY,GoToDefinition:()=>C4,HighlightSpanKind:()=>pZ,IdentifierNameMap:()=>OW,IdentifierNameMultiMap:()=>hme,ImportKind:()=>Tce,ImportsNotUsedAsValues:()=>Dre,IndentStyle:()=>mZ,IndexFlags:()=>gre,IndexKind:()=>t9,InferenceFlags:()=>Tre,InferencePriority:()=>bre,InlayHintKind:()=>B$,InlayHints:()=>m9e,InternalEmitFlags:()=>wre,InternalSymbolName:()=>fre,InvalidatedProjectKind:()=>Tj,JsDoc:()=>VF,JsTyping:()=>EF,JsxEmit:()=>Cre,JsxFlags:()=>dX,JsxReferenceKind:()=>hre,LanguageServiceMode:()=>Nge,LanguageServiceShimHostAdapter:()=>hye,LanguageVariant:()=>Ire,LexicalEnvironmentFlags:()=>Mz,ListFormat:()=>ZO,LogLevel:()=>hN,MemberOverrideStatus:()=>nre,ModifierFlags:()=>QO,ModuleDetectionKind:()=>Ere,ModuleInstanceState:()=>w2e,ModuleKind:()=>Rz,ModuleResolutionKind:()=>n9,ModuleSpecifierEnding:()=>oJ,NavigateTo:()=>s3e,NavigationBar:()=>b3e,NewLineKind:()=>xX,NodeBuilderFlags:()=>yX,NodeCheckFlags:()=>_re,NodeFactoryFlags:()=>S6e,NodeFlags:()=>_X,NodeResolutionFeatures:()=>C2,ObjectFlags:()=>CU,OperationCanceledException:()=>Pz,OperatorPrecedence:()=>boe,OrganizeImports:()=>CI,OrganizeImportsMode:()=>kk,OuterExpressionKinds:()=>bTe,OutliningElementsCollector:()=>D9e,OutliningSpanKind:()=>Nse,OutputFileType:()=>wse,PackageJsonAutoImportPreference:()=>Pge,PackageJsonDependencyGroup:()=>kge,PatternMatchKind:()=>Dce,PollingInterval:()=>zre,PollingWatchKind:()=>Are,PragmaKindFlags:()=>B_e,PrivateIdentifierKind:()=>Poe,ProcessLevel:()=>mE,QuotePreference:()=>$3,RelationComparisonResult:()=>pX,Rename:()=>wke,ScriptElementKind:()=>Lse,ScriptElementKindModifier:()=>Ose,ScriptKind:()=>IU,ScriptSnapshot:()=>Ige,ScriptTarget:()=>AX,SemanticClassificationFormat:()=>C8e,SemanticMeaning:()=>QZ,SemicolonPreference:()=>Pse,SignatureCheckMode:()=>Cae,SignatureFlags:()=>Nz,SignatureHelp:()=>b0e,SignatureKind:()=>yre,SmartSelectionRange:()=>L9e,SnippetKind:()=>DX,SortKind:()=>AT,StructureIsReused:()=>ere,SymbolAccessibility:()=>sre,SymbolDisplay:()=>D4,SymbolDisplayPartKind:()=>z$,SymbolFlags:()=>TX,SymbolFormatFlags:()=>are,SyntaxKind:()=>kz,SyntheticSymbolKind:()=>cre,Ternary:()=>Sre,ThrottledCancellationToken:()=>dye,TokenClass:()=>Mse,TokenFlags:()=>gX,TransformFlags:()=>CX,TypeFacts:()=>h$,TypeFlags:()=>SX,TypeFormatFlags:()=>ore,TypeMapKind:()=>vre,TypePredicateKind:()=>vX,TypeReferenceSerializationKind:()=>bX,TypeScriptServicesFactory:()=>Bqe,UnionReduction:()=>rre,UpToDateStatusType:()=>e8e,VarianceFlags:()=>dre,Version:()=>en,VersionRange:()=>Ar,WatchDirectoryFlags:()=>kre,WatchDirectoryKind:()=>xre,WatchFileKind:()=>EX,WatchLogLevel:()=>Vme,WatchType:()=>pC,accessPrivateIdentifier:()=>OHe,addDisposableResourceHelper:()=>IJ,addEmitFlags:()=>cI,addEmitHelper:()=>lW,addEmitHelpers:()=>JN,addInternalEmitFlags:()=>_s,addNodeFactoryPatcher:()=>y6e,addObjectAllocatorPatcher:()=>wSe,addRange:()=>Oi,addRelatedInfo:()=>ml,addSyntheticLeadingComment:()=>_y,addSyntheticTrailingComment:()=>sW,addToSeen:()=>y0,advancedAsyncSuperHelper:()=>PG,affectsDeclarationPathOptionDeclarations:()=>tae,affectsEmitOptionDeclarations:()=>a$,allKeysStartWithDot:()=>A6,altDirectorySeparator:()=>N,and:()=>bb,append:()=>ur,appendIfUnique:()=>ST,arrayFrom:()=>oc,arrayIsEqualTo:()=>fv,arrayIsHomogeneous:()=>XSe,arrayIsSorted:()=>_A,arrayOf:()=>vz,arrayReverseIterator:()=>fU,arrayToMap:()=>QT,arrayToMultiMap:()=>_N,arrayToNumericMap:()=>bz,arraysEqual:()=>sf,assertType:()=>X5,assign:()=>AS,assignHelper:()=>fJ,asyncDelegator:()=>dJ,asyncGeneratorHelper:()=>_J,asyncSuperHelper:()=>kG,asyncValues:()=>T3,attachFileToDiagnostics:()=>jN,awaitHelper:()=>b3,awaiterHelper:()=>mJ,base64decode:()=>SSe,base64encode:()=>TSe,binarySearch:()=>ZS,binarySearchKey:()=>WD,bindSourceFile:()=>YN,breakIntoCharacterSpans:()=>K8e,breakIntoWordSpans:()=>c$e,buildLinkParts:()=>rq,buildOpts:()=>s$,buildOverload:()=>NZe,bundlerModuleNameResolver:()=>x2e,canBeConvertedToAsync:()=>kce,canHaveDecorators:()=>I3,canHaveExportModifier:()=>nW,canHaveFlowNode:()=>LN,canHaveIllegalDecorators:()=>BEe,canHaveIllegalModifiers:()=>BG,canHaveIllegalType:()=>WEe,canHaveIllegalTypeParameters:()=>joe,canHaveJSDoc:()=>YM,canHaveLocals:()=>lk,canHaveModifiers:()=>nx,canHaveSymbol:()=>YD,canJsonReportNoInputFiles:()=>eae,canProduceDiagnostics:()=>cxe,canUsePropertyAccess:()=>doe,canWatchAffectingLocation:()=>Rxe,canWatchAtTypes:()=>J4e,canWatchDirectoryOrFile:()=>cge,cartesianProduct:()=>gU,cast:()=>uc,chainBundle:()=>Vx,chainDiagnosticMessages:()=>Es,changeAnyExtension:()=>RU,changeCompilerHostLikeToUseCache:()=>JQ,changeExtension:()=>SA,changesAffectModuleResolution:()=>g9,changesAffectingProgramStructure:()=>Jb,childIsDecorated:()=>oH,classElementOrClassElementParameterIsDecorated:()=>iG,classHasClassThisAssignment:()=>o4e,classHasDeclaredOrExplicitlyAssignedName:()=>pj,classHasExplicitlyAssignedName:()=>X2e,classOrConstructorParameterIsDecorated:()=>Mx,classPrivateFieldGetHelper:()=>IG,classPrivateFieldInHelper:()=>DJ,classPrivateFieldSetHelper:()=>CJ,classicNameResolver:()=>pae,classifier:()=>Rd,cleanExtendedConfigCache:()=>C$,clear:()=>g_,clearMap:()=>Mh,clearSharedExtendedConfigFileWatcher:()=>zme,climbPastPropertyAccess:()=>hZ,climbPastPropertyOrElementAccess:()=>V$,clone:()=>S8,cloneCompilerOptions:()=>DAe,closeFileWatcher:()=>Ib,closeFileWatcherOf:()=>dC,codefix:()=>If,collapseTextChangeRangesAcrossMultipleVersions:()=>OU,collectExternalModuleInfo:()=>J2e,combine:()=>FD,combinePaths:()=>tf,commentPragmas:()=>z_e,commonOptionsWithBuild:()=>uF,commonPackageFolders:()=>DY,compact:()=>uN,compareBooleans:()=>Z0,compareDataObjects:()=>qie,compareDiagnostics:()=>o3,compareDiagnosticsSkipRelatedInformation:()=>FH,compareEmitHelpers:()=>bEe,compareNumberOfDirectorySeparators:()=>Z9,comparePaths:()=>wM,comparePathsCaseInsensitive:()=>PX,comparePathsCaseSensitive:()=>sP,comparePatternKeys:()=>xQ,compareProperties:()=>mN,compareStringsCaseInsensitive:()=>Kw,compareStringsCaseInsensitiveEslintCompatible:()=>rP,compareStringsCaseSensitive:()=>Fp,compareStringsCaseSensitiveUI:()=>q5,compareTextSpans:()=>pU,compareValues:()=>pf,compileOnSaveCommandLineOption:()=>zpe,compilerOptionsAffectDeclarationPath:()=>VSe,compilerOptionsAffectEmit:()=>jSe,compilerOptionsAffectSemanticDiagnostics:()=>GSe,compilerOptionsDidYouMeanDiagnostics:()=>XG,compilerOptionsIndicateEsModules:()=>nce,compose:()=>wVe,computeCommonSourceDirectoryOfFilenames:()=>Ume,computeLineAndCharacterOfPosition:()=>Sb,computeLineOfPosition:()=>I8,computeLineStarts:()=>i7,computePositionOfLineAndCharacter:()=>cP,computeSignature:()=>bF,computeSignatureWithDiagnostics:()=>Dxe,computeSuggestionDiagnostics:()=>tee,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>OSe,consumesNodeCoreModules:()=>Mj,contains:()=>ni,containsIgnoredPath:()=>_3,containsObjectRestOrSpread:()=>QY,containsParseError:()=>QU,containsPath:()=>GC,convertCompilerOptionsForTelemetry:()=>fLe,convertCompilerOptionsFromJson:()=>jUe,convertJsonOption:()=>lF,convertToBase64:()=>bSe,convertToJson:()=>Koe,convertToObject:()=>rLe,convertToOptionsWithAbsolutePaths:()=>oLe,convertToRelativePath:()=>r7,convertToTSConfig:()=>RUe,convertTypeAcquisitionFromJson:()=>Pst,copyComments:()=>kF,copyEntries:()=>tY,copyLeadingComments:()=>tB,copyProperties:()=>E8,copyTrailingAsLeadingComments:()=>oq,copyTrailingComments:()=>zT,couldStartTrivia:()=>J_e,countWhere:()=>dp,createAbstractBuilder:()=>Pxe,createAccessorPropertyBackingField:()=>$J,createAccessorPropertyGetRedirector:()=>GG,createAccessorPropertySetRedirector:()=>yUe,createBaseNodeFactory:()=>Kde,createBinaryExpressionTrampoline:()=>VEe,createBindingHelper:()=>$7,createBuildInfo:()=>hF,createBuilderProgram:()=>Ixe,createBuilderProgramUsingProgramBuildInfo:()=>rge,createBuilderStatusReporter:()=>hge,createCacheWithRedirects:()=>Xpe,createCacheableExportInfoMap:()=>uT,createCachedDirectoryStructureHost:()=>Bme,createClassNamedEvaluationHelperBlock:()=>bme,createClassThisAssignmentBlock:()=>BHe,createClassifier:()=>W8e,createCommentDirectivesMap:()=>Lv,createCompilerDiagnostic:()=>W_,createCompilerDiagnosticForInvalidCustomType:()=>Q6e,createCompilerDiagnosticFromMessageChain:()=>OH,createCompilerHost:()=>Hme,createCompilerHostFromProgramHost:()=>vse,createCompilerHostWorker:()=>HQ,createDetachedDiagnostic:()=>s6,createDiagnosticCollection:()=>vY,createDiagnosticForFileFromMessageChain:()=>Rx,createDiagnosticForNode:()=>kc,createDiagnosticForNodeArray:()=>Qz,createDiagnosticForNodeArrayFromMessageChain:()=>yde,createDiagnosticForNodeFromMessageChain:()=>RN,createDiagnosticForNodeInSourceFile:()=>M0,createDiagnosticForRange:()=>oY,createDiagnosticMessageChainFromDiagnostic:()=>G8,createDiagnosticReporter:()=>iZ,createDocumentPositionMapper:()=>XLe,createDocumentRegistry:()=>j8e,createDocumentRegistryInternal:()=>n$e,createEmitAndSemanticDiagnosticsBuilderProgram:()=>fse,createEmitHelperFactory:()=>vEe,createEmptyExports:()=>jJ,createExpressionForJsxElement:()=>sF,createExpressionForJsxFragment:()=>PEe,createExpressionForObjectLiteralElementLike:()=>ype,createExpressionForPropertyName:()=>hpe,createExpressionFromEntityName:()=>gpe,createExternalHelpersImportDeclarationIfNeeded:()=>bpe,createFileDiagnostic:()=>Pp,createFileDiagnosticFromMessageChain:()=>aE,createForOfBindingStatement:()=>mpe,createGetCanonicalFileName:()=>_v,createGetSourceFile:()=>R4e,createGetSymbolAccessibilityDiagnosticForNode:()=>u4,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Nme,createGetSymbolWalker:()=>gae,createIncrementalCompilerHost:()=>Jxe,createIncrementalProgram:()=>$xe,createInputFiles:()=>mEe,createInputFilesWithFilePaths:()=>b6e,createInputFilesWithFileTexts:()=>T6e,createJsxFactoryExpression:()=>k6e,createLanguageService:()=>kqe,createLanguageServiceSourceFile:()=>uDe,createMemberAccessForPropertyName:()=>ZL,createModeAwareCache:()=>N3,createModeAwareCacheKey:()=>f$,createModuleNotFoundChain:()=>jMe,createModuleResolutionCache:()=>IR,createModuleResolutionLoader:()=>Kae,createModuleSpecifierResolutionHost:()=>h4,createMultiMap:()=>zg,createNodeConverters:()=>dEe,createNodeFactory:()=>aJ,createOptionNameMap:()=>nQ,createOverload:()=>aPe,createPackageJsonImportFilter:()=>oB,createPackageJsonInfo:()=>$Z,createParenthesizerRules:()=>iUe,createPatternMatcher:()=>r$e,createPrependNodes:()=>YQ,createPrinter:()=>f4,createPrinterWithDefaults:()=>k4e,createPrinterWithRemoveComments:()=>GW,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>P4e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>jQ,createProgram:()=>p4,createProgramHost:()=>JW,createPropertyNameNodeForIdentifierOrLiteral:()=>QH,createQueue:()=>$w,createRange:()=>tv,createRedirectedBuilderProgram:()=>oge,createResolutionCache:()=>q4e,createRuntimeTypeSerializer:()=>GHe,createScanner:()=>MM,createSemanticDiagnosticsBuilderProgram:()=>kxe,createSet:()=>J5,createSolutionBuilder:()=>xse,createSolutionBuilderHost:()=>Lct,createSolutionBuilderWithWatch:()=>yj,createSolutionBuilderWithWatchHost:()=>Oct,createSortedArray:()=>g2,createSourceFile:()=>Ape,createSourceMapGenerator:()=>NQ,createSourceMapSource:()=>sUe,createSuperAccessVariableStatement:()=>Lae,createSymbolTable:()=>Td,createSymlinkCache:()=>zde,createSystemWatchFunctions:()=>Fre,createTextChange:()=>NZ,createTextChangeFromStartLength:()=>kP,createTextChangeRange:()=>BX,createTextRangeFromNode:()=>Y$,createTextRangeFromSpan:()=>PZ,createTextSpan:()=>nb,createTextSpanFromBounds:()=>R0,createTextSpanFromNode:()=>gE,createTextSpanFromRange:()=>FR,createTextSpanFromStringLiteralLikeContent:()=>Hge,createTextWriter:()=>wie,createTokenRange:()=>Hie,createTypeChecker:()=>B2e,createTypeReferenceDirectiveResolutionCache:()=>T2e,createTypeReferenceResolutionLoader:()=>PA,createUnparsedSourceFile:()=>pEe,createWatchCompilerHost:()=>pge,createWatchCompilerHostOfConfigFile:()=>_ge,createWatchCompilerHostOfFilesAndCompilerOptions:()=>dge,createWatchFactory:()=>yse,createWatchHost:()=>hse,createWatchProgram:()=>L$,createWatchStatusReporter:()=>hJe,createWriteFileMeasuringIO:()=>Jme,declarationNameToString:()=>Ud,decodeMappings:()=>kae,decodedTextSpanIntersectsWith:()=>o9,decorateHelper:()=>MY,deduplicate:()=>th,defaultIncludeSpec:()=>YG,defaultInitCompilerOptions:()=>uQ,defaultMaximumTruncationLength:()=>yG,detectSortCaseSensitivity:()=>Qp,diagnosticCategoryName:()=>fX,diagnosticToString:()=>sB,directoryProbablyExists:()=>O0,directorySeparator:()=>q,displayPart:()=>C1,displayPartsToString:()=>lDe,disposeEmitNodes:()=>hEe,disposeResourcesHelper:()=>kJ,documentSpansEqual:()=>$ge,dumpTracingLegend:()=>Xne,elementAt:()=>PM,elideNodes:()=>UEe,emitComments:()=>Bie,emitDetachedComments:()=>gSe,emitFiles:()=>zW,emitFilesAndReportErrors:()=>gse,emitFilesAndReportErrorsAndGetExitStatus:()=>fge,emitModuleKindIsNonNodeESM:()=>WH,emitNewLineBeforeLeadingCommentOfPosition:()=>e6e,emitNewLineBeforeLeadingComments:()=>gG,emitNewLineBeforeLeadingCommentsOfPosition:()=>qVe,emitSkippedWithNoDiagnostics:()=>lse,emitUsingBuildInfo:()=>Uae,emptyArray:()=>Zn,emptyFileSystemEntries:()=>EG,emptyMap:()=>zy,emptyOptions:()=>NA,emptySet:()=>gTe,endsWith:()=>h_,ensurePathIsNonModuleName:()=>OE,ensureScriptKind:()=>$H,ensureTrailingDirectorySeparator:()=>Rv,entityNameToString:()=>oE,enumerateInsertsAndDeletes:()=>mTe,equalOwnProperties:()=>U5,equateStringsCaseInsensitive:()=>pN,equateStringsCaseSensitive:()=>ZA,equateValues:()=>_1,esDecorateHelper:()=>lJ,escapeJsxAttributeString:()=>bY,escapeLeadingUnderscores:()=>ty,escapeNonAsciiString:()=>S2,escapeSnippetText:()=>nD,escapeString:()=>M7,every:()=>jr,expandPreOrPostfixIncrementOrDecrementExpression:()=>REe,explainFiles:()=>pse,explainIfFileIsRedirectAndImpliedFormat:()=>aZ,exportAssignmentIsAlias:()=>ZM,exportStarHelper:()=>AJ,expressionResultIsUnused:()=>QSe,extend:()=>dN,extendsHelper:()=>gJ,extensionFromPath:()=>SP,extensionIsTS:()=>KH,extensionsNotSupportingExtensionlessResolution:()=>Coe,externalHelpersModuleNameText:()=>_6,factory:()=>be,fileExtensionIs:()=>Pg,fileExtensionIsOneOf:()=>ws,fileIncludeReasonToDiagnostics:()=>uge,fileShouldUseJavaScriptRequire:()=>WAe,filter:()=>gi,filterMutate:()=>vd,filterSemanticDiagnostics:()=>Txe,find:()=>lr,findAncestor:()=>Kr,findBestPatternMatch:()=>qf,findChildOfKind:()=>Wm,findComputedPropertyNameCacheAssignment:()=>HEe,findConfigFile:()=>UQ,findContainingList:()=>xj,findDiagnosticForNode:()=>gce,findFirstNonJsxWhitespaceToken:()=>P8e,findIndex:()=>Ho,findLast:()=>ra,findLastIndex:()=>Ms,findListItemInfo:()=>CZ,findMap:()=>cs,findModifier:()=>YW,findNextToken:()=>Aj,findPackageJson:()=>$Je,findPackageJsons:()=>JZ,findPrecedingMatchingToken:()=>bv,findPrecedingToken:()=>T0,findSuperStatementIndexPath:()=>IA,findTokenOnLeftOfPosition:()=>Bge,findUseStrictPrologue:()=>JY,first:()=>Dl,firstDefined:()=>Yr,firstDefinedIterator:()=>Ns,firstIterator:()=>sX,firstOrOnly:()=>Lj,firstOrUndefined:()=>pp,firstOrUndefinedIterator:()=>V5,fixupCompilerOptions:()=>_Ce,flatMap:()=>ea,flatMapIterator:()=>Ky,flatMapToMutable:()=>Lm,flatten:()=>Gf,flattenCommaList:()=>JEe,flattenDestructuringAssignment:()=>Ik,flattenDestructuringBinding:()=>yI,flattenDiagnosticMessageText:()=>d4,forEach:()=>Ot,forEachAncestor:()=>oie,forEachAncestorDirectory:()=>ok,forEachChild:()=>B_,forEachChildRecursively:()=>k3,forEachEmittedFile:()=>x$,forEachEnclosingBlockScopeContainer:()=>Yz,forEachEntry:()=>wT,forEachExternalModuleToImportFrom:()=>eee,forEachImportClauseDeclaration:()=>I7,forEachKey:()=>FL,forEachLeadingCommentRange:()=>SN,forEachNameInAccessChainWalkingLeft:()=>r6e,forEachPropertyAssignment:()=>tG,forEachResolvedProjectReference:()=>vxe,forEachReturnStatement:()=>HM,forEachRight:()=>bo,forEachTrailingCommentRange:()=>Wz,forEachTsConfigPropArray:()=>sY,forEachUnique:()=>WZ,forEachYieldExpression:()=>nSe,forSomeAncestorDirectory:()=>ZVe,formatColorAndReset:()=>NR,formatDiagnostic:()=>$ae,formatDiagnostics:()=>gxe,formatDiagnosticsWithColorAndContext:()=>qme,formatGeneratedName:()=>t4,formatGeneratedNamePart:()=>JJ,formatLocation:()=>hxe,formatMessage:()=>Yie,formatStringFromArgs:()=>LT,formatting:()=>Rb,fullTripleSlashAMDReferencePathRegEx:()=>yoe,fullTripleSlashReferencePathRegEx:()=>tJ,generateDjb2Hash:()=>G_e,generateTSConfig:()=>s2e,generatorHelper:()=>EJ,getAdjustedReferenceLocation:()=>k8e,getAdjustedRenameLocation:()=>CAe,getAliasDeclarationFromName:()=>YC,getAllAccessorDeclarations:()=>mG,getAllDecoratorsOfClass:()=>e4e,getAllDecoratorsOfClassElement:()=>$2e,getAllJSDocTags:()=>a9,getAllJSDocTagsOfKind:()=>xN,getAllKeys:()=>_Te,getAllProjectOutputs:()=>Lme,getAllSuperTypeNodes:()=>uG,getAllUnscopedEmitHelpers:()=>ipe,getAllowJSCompilerOption:()=>TP,getAllowSyntheticDefaultImports:()=>VN,getAncestor:()=>e6,getAnyExtensionFromPath:()=>vl,getAreDeclarationMapsEnabled:()=>zH,getAssignedExpandoInitializer:()=>x7,getAssignedName:()=>Y_e,getAssignedNameOfIdentifier:()=>T$,getAssignmentDeclarationKind:()=>Qy,getAssignmentDeclarationPropertyAccessKind:()=>N9,getAssignmentTargetKind:()=>QM,getAutomaticTypeDirectiveNames:()=>qpe,getBaseFileName:()=>Iy,getBinaryOperatorPrecedence:()=>TH,getBuildInfo:()=>Ome,getBuildInfoFileVersionMap:()=>ige,getBuildInfoText:()=>Vae,getBuildOrderFromAnyBuildOrder:()=>Kxe,getBuilderCreationParameters:()=>Cxe,getBuilderFileEmit:()=>B3,getCheckFlags:()=>I_,getClassExtendsHeritageElement:()=>oC,getClassLikeDeclarationOfSymbol:()=>RS,getCombinedLocalAndExportSymbolFlags:()=>r3,getCombinedModifierFlags:()=>Gg,getCombinedNodeFlags:()=>qD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Ua,getCommentRange:()=>lI,getCommonSourceDirectory:()=>gF,getCommonSourceDirectoryOfConfig:()=>GQ,getCompilerOptionValue:()=>jH,getCompilerOptionsDiffValue:()=>LUe,getConditions:()=>u$,getConfigFileParsingDiagnostics:()=>UW,getConstantValue:()=>cW,getContainerFlags:()=>RLe,getContainerNode:()=>j3,getContainingClass:()=>h0,getContainingClassExcludingClassDecorators:()=>MT,getContainingClassStaticBlock:()=>v7,getContainingFunction:()=>GE,getContainingFunctionDeclaration:()=>aSe,getContainingFunctionOrClassStaticBlock:()=>Ede,getContainingNodeArray:()=>ZSe,getContainingObjectLiteralElement:()=>cle,getContextualTypeFromParent:()=>lce,getContextualTypeFromParentOrAncestorTypeNode:()=>Hse,getCurrentTime:()=>Ese,getDeclarationDiagnostics:()=>eJe,getDeclarationEmitExtensionForPath:()=>HL,getDeclarationEmitOutputFilePath:()=>Lie,getDeclarationEmitOutputFilePathWorker:()=>Oie,getDeclarationFromName:()=>O9,getDeclarationModifierFlagsFromSymbol:()=>Vy,getDeclarationOfKind:()=>Vm,getDeclarationsOfKind:()=>zVe,getDeclaredExpandoInitializer:()=>k9,getDecorators:()=>ML,getDefaultCompilerOptions:()=>sle,getDefaultExportInfoWorker:()=>GAe,getDefaultFormatCodeSettings:()=>hAe,getDefaultLibFileName:()=>qre,getDefaultLibFilePath:()=>lye,getDefaultLikeExportInfo:()=>_he,getDiagnosticText:()=>NUe,getDiagnosticsWithinSpan:()=>nhe,getDirectoryPath:()=>qc,getDirectoryToWatchFailedLookupLocation:()=>rZ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>$4e,getDocumentPositionMapper:()=>Z8e,getESModuleInterop:()=>b1,getEditsForFileRename:()=>V8e,getEffectiveBaseTypeNode:()=>hA,getEffectiveConstraintOfTypeParameter:()=>AN,getEffectiveContainerForJSDocTemplateTag:()=>q8,getEffectiveImplementsTypeNodes:()=>qb,getEffectiveInitializer:()=>j8,getEffectiveJSDocHost:()=>dH,getEffectiveModifierFlags:()=>tS,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>KVe,getEffectiveModifierFlagsNoCache:()=>aI,getEffectiveReturnTypeNode:()=>bA,getEffectiveSetAccessorTypeAnnotationNode:()=>mSe,getEffectiveTypeAnnotationNode:()=>Kb,getEffectiveTypeParameterDeclarations:()=>oR,getEffectiveTypeRoots:()=>$pe,getElementOrPropertyAccessArgumentExpressionOrName:()=>C7,getElementOrPropertyAccessName:()=>XC,getElementsOfBindingOrAssignmentPattern:()=>gI,getEmitDeclarations:()=>gv,getEmitFlags:()=>Tp,getEmitHelpers:()=>v3,getEmitModuleDetectionKind:()=>FSe,getEmitModuleKind:()=>Zp,getEmitModuleResolutionKind:()=>Jd,getEmitScriptTarget:()=>iu,getEmitStandardClassFields:()=>zSe,getEnclosingBlockScopeContainer:()=>Bs,getEnclosingContainer:()=>iE,getEncodedSemanticClassifications:()=>z8e,getEncodedSyntacticClassifications:()=>G8e,getEndLinePosition:()=>lie,getEntityNameFromTypeNode:()=>iH,getEntrypointsFromPackageJsonInfo:()=>DLe,getErrorCountForSummary:()=>Bxe,getErrorSpanForNode:()=>UM,getErrorSummaryText:()=>yJe,getEscapedTextOfIdentifierOrLiteral:()=>gY,getEscapedTextOfJsxAttributeName:()=>m3,getEscapedTextOfJsxNamespacedName:()=>bR,getExpandoInitializer:()=>jE,getExportAssignmentExpression:()=>lG,getExportInfoMap:()=>fq,getExportNeedsImportStarHelper:()=>RHe,getExpressionAssociativity:()=>bH,getExpressionPrecedence:()=>UL,getExternalHelpersModuleName:()=>WG,getExternalModuleImportEqualsDeclarationExpression:()=>S7,getExternalModuleName:()=>pY,getExternalModuleNameFromDeclaration:()=>TY,getExternalModuleNameFromPath:()=>Mde,getExternalModuleNameLiteral:()=>e4,getExternalModuleRequireArgument:()=>uY,getFallbackOptions:()=>jW,getFileEmitOutput:()=>gj,getFileMatcherPatterns:()=>Y9,getFileNamesFromConfigSpecs:()=>x6,getFileWatcherEventKind:()=>hMe,getFilesInErrorForSummary:()=>zxe,getFirstConstructorWithBody:()=>E2,getFirstIdentifier:()=>NS,getFirstNonSpaceCharacterPosition:()=>M6,getFirstProjectOutput:()=>_xe,getFixableErrorSpanExpression:()=>rhe,getFormatCodeSettingsForWriting:()=>che,getFullWidth:()=>KU,getFunctionFlags:()=>L0,getHeritageClause:()=>fG,getHostSignatureFromJSDoc:()=>VE,getIdentifierAutoGenerate:()=>d6,getIdentifierGeneratedImportReference:()=>RY,getIdentifierTypeArguments:()=>H7,getImmediatelyInvokedFunctionExpression:()=>zL,getImpliedNodeFormatForFile:()=>ew,getImpliedNodeFormatForFileWorker:()=>HW,getImportNeedsImportDefaultHelper:()=>ZLe,getImportNeedsImportStarHelper:()=>Nb,getIndentSize:()=>QC,getIndentString:()=>dG,getInferredLibraryNameResolveFrom:()=>Xae,getInitializedVariables:()=>n3,getInitializerOfBinaryExpression:()=>w9,getInitializerOfBindingOrAssignmentElement:()=>C3,getInterfaceBaseTypeNodes:()=>F9,getInternalEmitFlags:()=>dh,getInvokedExpression:()=>T7,getIsolatedModules:()=>F0,getJSDocAugmentsTag:()=>MMe,getJSDocClassTag:()=>BTe,getJSDocCommentRanges:()=>vde,getJSDocCommentsAndTags:()=>k7,getJSDocDeprecatedTag:()=>HTe,getJSDocDeprecatedTagNoCache:()=>Z_e,getJSDocEnumTag:()=>FM,getJSDocHost:()=>P7,getJSDocImplementsTags:()=>WTe,getJSDocOverrideTagNoCache:()=>UTe,getJSDocParameterTags:()=>zz,getJSDocParameterTagsNoCache:()=>LTe,getJSDocPrivateTag:()=>FMe,getJSDocPrivateTagNoCache:()=>zTe,getJSDocProtectedTag:()=>GTe,getJSDocProtectedTagNoCache:()=>jTe,getJSDocPublicTag:()=>LMe,getJSDocPublicTagNoCache:()=>OMe,getJSDocReadonlyTag:()=>VTe,getJSDocReadonlyTagNoCache:()=>Xre,getJSDocReturnTag:()=>GX,getJSDocReturnType:()=>WU,getJSDocRoot:()=>pH,getJSDocSatisfiesExpressionType:()=>moe,getJSDocSatisfiesTag:()=>WM,getJSDocTags:()=>EN,getJSDocTagsNoCache:()=>Mat,getJSDocTemplateTag:()=>Yre,getJSDocThisTag:()=>iR,getJSDocType:()=>X1,getJSDocTypeAliasName:()=>YY,getJSDocTypeAssertionType:()=>qY,getJSDocTypeParameterDeclarations:()=>Wie,getJSDocTypeParameterTags:()=>Q_e,getJSDocTypeParameterTagsNoCache:()=>RMe,getJSDocTypeTag:()=>w8,getJSXImplicitImportBase:()=>UH,getJSXRuntimeImport:()=>HH,getJSXTransformEnabled:()=>VH,getKeyForCompilerOptions:()=>Kpe,getLanguageVariant:()=>$9,getLastChild:()=>Kie,getLeadingCommentRanges:()=>CS,getLeadingCommentRangesOfNode:()=>E9,getLeftmostAccessExpression:()=>i3,getLeftmostExpression:()=>qL,getLineAndCharacterOfPosition:()=>Ah,getLineInfo:()=>Xo,getLineOfLocalPosition:()=>BN,getLineOfLocalPositionFromLineMap:()=>iI,getLineStartPositionForPosition:()=>wA,getLineStarts:()=>q1,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>DSe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>CSe,getLinesBetweenPositions:()=>MX,getLinesBetweenRangeEndAndRangeStart:()=>Jie,getLinesBetweenRangeEndPositions:()=>YVe,getLiteralText:()=>dde,getLocalNameForExternalImport:()=>lb,getLocalSymbolForExportDefault:()=>i6,getLocaleSpecificMessage:()=>fs,getLocaleTimeString:()=>oZ,getMappedContextSpan:()=>UJe,getMappedDocumentSpan:()=>nq,getMappedLocation:()=>Pj,getMatchedFileSpec:()=>mse,getMatchedIncludeSpec:()=>Vxe,getMeaningFromDeclaration:()=>G$,getMeaningFromLocation:()=>z3,getMembersOfDeclaration:()=>Tde,getModeForFileReference:()=>wR,getModeForResolutionAtIndex:()=>yxe,getModeForUsageLocation:()=>kA,getModifiedTime:()=>PU,getModifiers:()=>N8,getModuleInstanceState:()=>kR,getModuleNameStringLiteralAt:()=>k$,getModuleSpecifierEndingPreference:()=>ooe,getModuleSpecifierResolverHost:()=>eq,getNameForExportedSymbol:()=>cq,getNameFromIndexInfo:()=>wN,getNameFromPropertyName:()=>Cj,getNameOfAccessExpression:()=>PSe,getNameOfCompilerOptionValue:()=>a2e,getNameOfDeclaration:()=>o_,getNameOfExpando:()=>fY,getNameOfJSDocTypedef:()=>OM,getNameOrArgument:()=>dY,getNameTable:()=>fDe,getNamesForExportedSymbol:()=>qJe,getNamespaceDeclarationNode:()=>uH,getNewLineCharacter:()=>JE,getNewLineKind:()=>Oj,getNewLineOrDefaultFromHost:()=>NP,getNewTargetContainer:()=>cY,getNextJSDocCommentLocation:()=>cSe,getNodeForGeneratedName:()=>zG,getNodeId:()=>Im,getNodeKind:()=>m4,getNodeModifiers:()=>$$,getNodeModulePathParts:()=>AY,getNonAssignedNameOfDeclaration:()=>X_e,getNonAssignmentOperatorForCompoundAssignment:()=>wQ,getNonAugmentationDeclaration:()=>W8,getNonDecoratorTokenPosOfNode:()=>y9,getNormalizedAbsolutePath:()=>Su,getNormalizedAbsolutePathWithoutRoot:()=>U_e,getNormalizedPathComponents:()=>bN,getObjectFlags:()=>ji,getOperator:()=>QMe,getOperatorAssociativity:()=>B9,getOperatorPrecedence:()=>hY,getOptionFromName:()=>t2e,getOptionsForLibraryResolution:()=>SLe,getOptionsNameMap:()=>DW,getOrCreateEmitNode:()=>he,getOrCreateExternalHelpersModuleNameIfNeeded:()=>w6e,getOrUpdate:()=>Jw,getOriginalNode:()=>Ic,getOriginalNodeId:()=>e1,getOriginalSourceFile:()=>Pie,getOutputDeclarationFileName:()=>O3,getOutputExtension:()=>zQ,getOutputFileNames:()=>nJe,getOutputPathsFor:()=>Gae,getOutputPathsForBundle:()=>sx,getOwnEmitOutputFilePath:()=>Ng,getOwnKeys:()=>ET,getOwnValues:()=>ik,getPackageJsonInfo:()=>s4,getPackageJsonTypesVersionsPaths:()=>yQ,getPackageJsonsVisibleToFile:()=>pce,getPackageNameFromTypesPackageName:()=>_ae,getPackageScopeForPath:()=>eme,getParameterSymbolFromJSDoc:()=>mY,getParameterTypeNode:()=>rUe,getParentNodeInSpan:()=>Nk,getParseTreeNode:()=>Il,getParsedCommandLineOfConfigFile:()=>QJ,getPathComponents:()=>g0,getPathComponentsRelativeTo:()=>NX,getPathFromPathComponents:()=>vf,getPathUpdater:()=>KAe,getPathsBasePath:()=>G9,getPatternFromSpec:()=>roe,getPendingEmitKind:()=>tZ,getPositionOfLineAndCharacter:()=>xm,getPossibleGenericSignatures:()=>jge,getPossibleOriginalInputExtensionForExtension:()=>Fie,getPossibleTypeArgumentsInfo:()=>V3,getPreEmitDiagnostics:()=>M4e,getPrecedingNonSpaceCharacterPosition:()=>wj,getPrivateIdentifier:()=>n4e,getProperties:()=>lj,getProperty:()=>T8,getPropertyArrayElementValue:()=>vie,getPropertyAssignmentAliasLikeExpression:()=>gH,getPropertyNameForPropertyNameNode:()=>WN,getPropertyNameForUniqueESSymbol:()=>YMe,getPropertyNameFromType:()=>vv,getPropertyNameOfBindingOrAssignmentElement:()=>HJ,getPropertySymbolFromBindingElement:()=>rce,getPropertySymbolsFromContextualType:()=>cye,getQuoteFromPreference:()=>Jge,getQuotePreference:()=>Jx,getRangesWhere:()=>eu,getRefactorContextSpan:()=>aB,getReferencedFileLocation:()=>VW,getRegexFromPattern:()=>Y2,getRegularExpressionForWildcard:()=>a3,getRegularExpressionsForWildcards:()=>JH,getRelativePathFromDirectory:()=>qp,getRelativePathFromFile:()=>wX,getRelativePathToDirectoryOrUrl:()=>Oz,getRenameLocation:()=>WR,getReplacementSpanForContextToken:()=>tce,getResolutionDiagnostic:()=>nse,getResolutionModeOverrideForClause:()=>D2,getResolveJsonModule:()=>sI,getResolvePackageJsonExports:()=>Zie,getResolvePackageJsonImports:()=>eUe,getResolvedExternalModuleName:()=>Rie,getResolvedModule:()=>XU,getResolvedTypeReferenceDirective:()=>GMe,getRestIndicatorOfBindingOrAssignmentElement:()=>OEe,getRestParameterElementType:()=>bde,getRightMostAssignedExpression:()=>mR,getRootDeclaration:()=>rI,getRootDirectoryOfResolutionCache:()=>Oxe,getRootLength:()=>vN,getRootPathSplitLength:()=>Fxe,getScriptKind:()=>M8e,getScriptKindFromFileName:()=>EY,getScriptTargetFeatures:()=>rY,getSelectedEffectiveModifierFlags:()=>ZC,getSelectedSyntacticModifierFlags:()=>t6e,getSemanticClassifications:()=>B8e,getSemanticJsxChildren:()=>yY,getSetAccessorTypeAnnotationNode:()=>V9,getSetAccessorValueParameter:()=>yR,getSetExternalModuleIndicator:()=>q9,getShebang:()=>tR,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Die,getSingleVariableOfVariableStatement:()=>$8,getSnapshotText:()=>RZ,getSnippetElement:()=>yEe,getSourceFileOfModule:()=>ny,getSourceFileOfNode:()=>ns,getSourceFilePathInNewDir:()=>j9,getSourceFilePathInNewDirWorker:()=>Z8,getSourceFileVersionAsHashFromText:()=>sZ,getSourceFilesToEmit:()=>dSe,getSourceMapRange:()=>cE,getSourceMapper:()=>oCe,getSourceTextOfNodeFromSourceFile:()=>wd,getSpanOfTokenAtPosition:()=>nC,getSpellingSuggestion:()=>fh,getStartPositionOfLine:()=>mP,getStartPositionOfRange:()=>t3,getStartsOnNewLine:()=>lp,getStaticPropertiesAndClassStaticBlock:()=>v$,getStrictOptionValue:()=>hv,getStringComparer:()=>Xw,getSuperCallFromStatement:()=>cj,getSuperContainer:()=>nG,getSupportedCodeFixes:()=>TOe,getSupportedExtensions:()=>s3,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Q9,getSwitchedType:()=>Rj,getSymbolId:()=>Bp,getSymbolNameForPrivateIdentifier:()=>R7,getSymbolTarget:()=>HJe,getSyntacticClassifications:()=>e$e,getSyntacticModifierFlags:()=>n6,getSyntacticModifierFlagsNoCache:()=>F7,getSynthesizedDeepClone:()=>Rg,getSynthesizedDeepCloneWithReplacements:()=>iq,getSynthesizedDeepClones:()=>J3,getSynthesizedDeepClonesWithReplacements:()=>sce,getSyntheticLeadingComments:()=>U7,getSyntheticTrailingComments:()=>y3,getTargetLabel:()=>yZ,getTargetOfBindingOrAssignmentElement:()=>oD,getTemporaryModuleResolutionState:()=>p$,getTextOfConstantValue:()=>ZU,getTextOfIdentifierOrLiteral:()=>aC,getTextOfJSDocComment:()=>Gz,getTextOfJsxAttributeName:()=>oW,getTextOfJsxNamespacedName:()=>g3,getTextOfNode:()=>Yv,getTextOfNodeFromSourceText:()=>die,getTextOfPropertyName:()=>g7,getThisContainer:()=>Q1,getThisParameter:()=>JL,getTokenAtPosition:()=>bf,getTokenPosOfNode:()=>Kz,getTokenSourceMapRange:()=>CG,getTouchingPropertyName:()=>Hx,getTouchingToken:()=>qse,getTrailingCommentRanges:()=>Nx,getTrailingSemicolonDeferringWriter:()=>Rde,getTransformFlagsSubtreeExclusions:()=>qs,getTransformers:()=>x4e,getTsBuildInfoEmitOutputFilePath:()=>ZN,getTsConfigObjectLiteralExpression:()=>A9,getTsConfigPropArrayElementValue:()=>RT,getTypeAnnotationNode:()=>pSe,getTypeArgumentOrTypeParameterList:()=>Zse,getTypeKeywordOfTypeOnlyImport:()=>ice,getTypeNode:()=>rpe,getTypeNodeIfAccessible:()=>PF,getTypeParameterFromJsDoc:()=>lSe,getTypeParameterOwner:()=>wMe,getTypesPackageName:()=>tme,getUILocale:()=>dTe,getUniqueName:()=>eB,getUniqueSymbolId:()=>Nj,getUseDefineForClassFields:()=>X9,getWatchErrorSummaryDiagnosticMessage:()=>w$,getWatchFactory:()=>jme,group:()=>BD,groupBy:()=>H5,guessIndentation:()=>lde,handleNoEmitOptions:()=>ese,hasAbstractModifier:()=>fk,hasAccessorModifier:()=>_k,hasAmbientModifier:()=>Ode,hasChangesInResolutions:()=>fR,hasChildOfKind:()=>XW,hasContextSensitiveParameters:()=>YH,hasDecorators:()=>Fx,hasDocComment:()=>Yse,hasDynamicName:()=>nI,hasEffectiveModifier:()=>Ab,hasEffectiveModifiers:()=>ev,hasEffectiveReadonlyModifier:()=>Cb,hasExtension:()=>e7,hasIndexSignature:()=>rB,hasInitializer:()=>NN,hasInvalidEscape:()=>SH,hasJSDocNodes:()=>g1,hasJSDocParameterTags:()=>FTe,hasJSFileExtension:()=>eD,hasJsonModuleEmitEnabled:()=>BH,hasOnlyExpressionInitializer:()=>p7,hasOverrideModifier:()=>X2,hasPossibleExternalModuleReference:()=>tH,hasProperty:()=>ef,hasPropertyAccessExpressionWithName:()=>vZ,hasQuestionToken:()=>sG,hasRecordedExternalHelpers:()=>iv,hasRestParameter:()=>iie,hasScopeMarker:()=>Hz,hasStaticModifier:()=>Ny,hasSyntacticModifier:()=>il,hasSyntacticModifiers:()=>zie,hasTSFileExtension:()=>vR,hasTabstop:()=>tEe,hasTrailingDirectorySeparator:()=>Jg,hasType:()=>eY,hasTypeArguments:()=>JVe,hasZeroOrOneAsteriskCharacter:()=>eoe,helperString:()=>A6e,hostGetCanonicalFileName:()=>hR,hostUsesCaseSensitiveFileNames:()=>xH,idText:()=>ec,identifierIsThisKeyword:()=>SY,identifierToKeywordKind:()=>RL,identity:()=>Of,identitySourceMapConsumer:()=>H2e,ignoreSourceNewlines:()=>tpe,ignoredPaths:()=>kX,importDefaultHelper:()=>q7,importFromModuleSpecifier:()=>b2,importNameElisionDisabled:()=>Qie,importStarHelper:()=>DG,indexOfAnyCharCode:()=>Hg,indexOfNode:()=>v9,indicesOf:()=>Cy,inferredTypesContainingFile:()=>sse,injectClassNamedEvaluationHelperBlockIfMissing:()=>Tme,injectClassThisAssignmentIfMissing:()=>vme,insertImports:()=>OS,insertLeadingStatement:()=>NEe,insertSorted:()=>d0,insertStatementAfterCustomPrologue:()=>qz,insertStatementAfterStandardPrologue:()=>m7,insertStatementsAfterCustomPrologue:()=>fie,insertStatementsAfterStandardPrologue:()=>v2,intersperse:()=>Zi,intrinsicTagNameToString:()=>goe,introducesArgumentsExoticObject:()=>iSe,inverseJsxOptionMap:()=>n$,isAbstractConstructorSymbol:()=>ISe,isAbstractModifier:()=>ape,isAccessExpression:()=>Kf,isAccessibilityModifier:()=>tw,isAccessor:()=>Am,isAccessorModifier:()=>pW,isAliasSymbolDeclaration:()=>XMe,isAliasableExpression:()=>gR,isAmbientModule:()=>Ov,isAmbientPropertyDeclaration:()=>eH,isAnonymousFunctionDefinition:()=>vA,isAnyDirectorySeparator:()=>jre,isAnyImportOrBareOrAccessedRequire:()=>ZTe,isAnyImportOrReExport:()=>z8,isAnyImportSyntax:()=>hm,isAnySupportedFileExtension:()=>nUe,isApplicableVersionedTypesKey:()=>g$,isArgumentExpressionOfElementAccess:()=>TZ,isArray:()=>ls,isArrayBindingElement:()=>qX,isArrayBindingOrAssignmentElement:()=>uR,isArrayBindingOrAssignmentPattern:()=>eie,isArrayBindingPattern:()=>vW,isArrayLiteralExpression:()=>Ch,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>OR,isArrayTypeNode:()=>RG,isArrowFunction:()=>ph,isAsExpression:()=>v0,isAssertClause:()=>n0,isAssertEntry:()=>Tk,isAssertionExpression:()=>_7,isAssertionKey:()=>IT,isAssertsKeyword:()=>_W,isAssignmentDeclaration:()=>oG,isAssignmentExpression:()=>wy,isAssignmentOperator:()=>zN,isAssignmentPattern:()=>u7,isAssignmentTarget:()=>IS,isAsteriskToken:()=>WY,isAsyncFunction:()=>FN,isAsyncModifier:()=>Lu,isAutoAccessorPropertyDeclaration:()=>rb,isAwaitExpression:()=>h6,isAwaitKeyword:()=>zY,isBigIntLiteral:()=>NG,isBinaryExpression:()=>ys,isBinaryOperatorToken:()=>mUe,isBindableObjectDefinePropertyCall:()=>cH,isBindableStaticAccessExpression:()=>XM,isBindableStaticElementAccessExpression:()=>_Y,isBindableStaticNameExpression:()=>jL,isBindingElement:()=>ym,isBindingElementOfBareOrAccessedRequire:()=>UVe,isBindingName:()=>f9,isBindingOrAssignmentElement:()=>rde,isBindingOrAssignmentPattern:()=>p9,isBindingPattern:()=>ld,isBlock:()=>E_,isBlockOrCatchScoped:()=>pde,isBlockScope:()=>gie,isBlockScopedContainerTopLevel:()=>mde,isBooleanLiteral:()=>Fl,isBreakOrContinueStatement:()=>VX,isBreakStatement:()=>lpe,isBuildInfoFile:()=>BQ,isBuilderProgram:()=>Gxe,isBundle:()=>XE,isBundleFileTextLike:()=>NSe,isCallChain:()=>R8,isCallExpression:()=>el,isCallExpressionTarget:()=>Bse,isCallLikeExpression:()=>ib,isCallOrNewExpression:()=>IN,isCallOrNewExpressionTarget:()=>j$,isCallSignatureDeclaration:()=>Lh,isCallToHelper:()=>cJ,isCaseBlock:()=>xP,isCaseClause:()=>tx,isCaseKeyword:()=>EEe,isCaseOrDefaultClause:()=>d7,isCatchClause:()=>CP,isCatchClauseVariableDeclaration:()=>eEe,isCatchClauseVariableDeclarationOrBindingElement:()=>JC,isCheckJsEnabledForFile:()=>tW,isChildOfNodeWithKind:()=>$Me,isCircularBuildOrder:()=>hj,isClassDeclaration:()=>Kc,isClassElement:()=>Mv,isClassExpression:()=>B0,isClassLike:()=>Jl,isClassMemberModifier:()=>F_,isClassNamedEvaluationHelperBlock:()=>FW,isClassOrTypeElement:()=>$_,isClassStaticBlockDeclaration:()=>nu,isClassThisAssignmentBlock:()=>Mae,isCollapsedRange:()=>XVe,isColonToken:()=>BY,isCommaExpression:()=>mI,isCommaListExpression:()=>x3,isCommaSequence:()=>CW,isCommaToken:()=>TEe,isComment:()=>q$,isCommonJsExportPropertyAssignment:()=>Sde,isCommonJsExportedExpression:()=>rSe,isCompoundAssignment:()=>sj,isComputedNonLiteralName:()=>b9,isComputedPropertyName:()=>am,isConciseBody:()=>tie,isConditionalExpression:()=>vk,isConditionalTypeNode:()=>hW,isConstTypeReference:()=>CN,isConstructSignatureDeclaration:()=>lE,isConstructorDeclaration:()=>pg,isConstructorTypeNode:()=>mW,isContextualKeyword:()=>hH,isContinueStatement:()=>bW,isCustomPrologue:()=>dR,isDebuggerStatement:()=>tF,isDeclaration:()=>dl,isDeclarationBindingElement:()=>d9,isDeclarationFileName:()=>iT,isDeclarationName:()=>vP,isDeclarationNameOfEnumOrNamespace:()=>$ie,isDeclarationReadonly:()=>MN,isDeclarationStatement:()=>BVe,isDeclarationWithTypeParameterChildren:()=>hde,isDeclarationWithTypeParameters:()=>QD,isDecorator:()=>Qf,isDecoratorTarget:()=>BJe,isDefaultClause:()=>CR,isDefaultImport:()=>D7,isDefaultModifier:()=>xn,isDefaultedExpandoInitializer:()=>A7,isDeleteExpression:()=>fE,isDeleteTarget:()=>kde,isDeprecatedDeclaration:()=>XZ,isDestructuringAssignment:()=>Tg,isDiagnosticWithLocation:()=>qZ,isDiskPathRoot:()=>pv,isDoStatement:()=>xEe,isDocumentRegistryEntry:()=>Ece,isDotDotDotToken:()=>X7,isDottedName:()=>B7,isDynamicName:()=>wde,isESSymbolIdentifier:()=>fSe,isEffectiveExternalModule:()=>B8,isEffectiveModuleDeclaration:()=>VVe,isEffectiveStrictModeSourceFile:()=>gde,isElementAccessChain:()=>jz,isElementAccessExpression:()=>Ed,isEmittedFileOfProgram:()=>N4e,isEmptyArrayLiteral:()=>vSe,isEmptyBindingElement:()=>rR,isEmptyBindingPattern:()=>K_e,isEmptyObjectLiteral:()=>Vie,isEmptyStatement:()=>spe,isEmptyStringLiteral:()=>Sie,isEntityName:()=>Vd,isEntityNameExpression:()=>Uh,isEnumConst:()=>gP,isEnumDeclaration:()=>Ih,isEnumMember:()=>Qb,isEqualityOperatorKind:()=>v4,isEqualsGreaterThanToken:()=>p6,isExclamationToken:()=>PJ,isExcludedFile:()=>JUe,isExclusivelyTypeOnlyImportOrExport:()=>qae,isExportAssignment:()=>Ly,isExportDeclaration:()=>mh,isExportModifier:()=>fW,isExportName:()=>MEe,isExportNamespaceAsDefaultDeclaration:()=>_ie,isExportOrDefaultModifier:()=>Epe,isExportSpecifier:()=>Oy,isExportsIdentifier:()=>GL,isExportsOrModuleExportsOrAlias:()=>w3,isExpression:()=>Nr,isExpressionNode:()=>Gy,isExpressionOfExternalModuleImportEqualsDeclaration:()=>EZ,isExpressionOfOptionalChainRoot:()=>zU,isExpressionStatement:()=>Ou,isExpressionWithTypeArguments:()=>WT,isExpressionWithTypeArgumentsInClassExtendsClause:()=>PS,isExternalModule:()=>Wv,isExternalModuleAugmentation:()=>WL,isExternalModuleImportEqualsDeclaration:()=>qM,isExternalModuleIndicator:()=>UU,isExternalModuleNameRelative:()=>tb,isExternalModuleReference:()=>j0,isExternalModuleSymbol:()=>sT,isExternalOrCommonJsModule:()=>h1,isFileLevelReservedGeneratedIdentifier:()=>jU,isFileLevelUniqueName:()=>fde,isFileProbablyExternalModule:()=>S6,isFirstDeclarationOfSymbolParameter:()=>QW,isFixablePromiseHandler:()=>Ice,isForInOrOfStatement:()=>DS,isForInStatement:()=>cpe,isForInitializer:()=>mA,isForOfStatement:()=>Moe,isForStatement:()=>bk,isFunctionBlock:()=>JM,isFunctionBody:()=>$Te,isFunctionDeclaration:()=>b0,isFunctionExpression:()=>Dm,isFunctionExpressionOrArrowFunction:()=>EP,isFunctionLike:()=>S_,isFunctionLikeDeclaration:()=>J_,isFunctionLikeKind:()=>xb,isFunctionLikeOrClassStaticBlockDeclaration:()=>_9,isFunctionOrConstructorTypeNode:()=>$X,isFunctionOrModuleBlock:()=>nde,isFunctionSymbol:()=>M9,isFunctionTypeNode:()=>Z2,isFutureReservedKeyword:()=>ob,isGeneratedIdentifier:()=>Om,isGeneratedPrivateIdentifier:()=>cR,isGetAccessor:()=>J2,isGetAccessorDeclaration:()=>tm,isGetOrSetAccessorDeclaration:()=>s9,isGlobalDeclaration:()=>FAe,isGlobalScopeAugmentation:()=>$C,isGrammarError:()=>VMe,isHeritageClause:()=>rT,isHoistedFunction:()=>hie,isHoistedVariableStatement:()=>yie,isIdentifier:()=>An,isIdentifierANonContextualKeyword:()=>yH,isIdentifierName:()=>Pde,isIdentifierOrThisTypeNode:()=>L6e,isIdentifierPart:()=>ak,isIdentifierStart:()=>nR,isIdentifierText:()=>rE,isIdentifierTypePredicate:()=>oSe,isIdentifierTypeReference:()=>KSe,isIfStatement:()=>Xg,isIgnoredFileFromWildCardWatching:()=>VQ,isImplicitGlob:()=>noe,isImportCall:()=>WE,isImportClause:()=>lC,isImportDeclaration:()=>Fv,isImportEqualsDeclaration:()=>kh,isImportKeyword:()=>RJ,isImportMeta:()=>S9,isImportOrExportSpecifier:()=>l9,isImportOrExportSpecifierName:()=>wAe,isImportSpecifier:()=>oS,isImportTypeAssertionContainer:()=>Yb,isImportTypeNode:()=>Wx,isImportableFile:()=>vce,isInComment:()=>LR,isInExpressionContext:()=>Ade,isInJSDoc:()=>D9,isInJSFile:()=>Rs,isInJSXText:()=>Xse,isInJsonFile:()=>Cde,isInNonReferenceComment:()=>IAe,isInReferenceComment:()=>X$,isInRightSideOfInternalImportEqualsDeclaration:()=>gZ,isInString:()=>MR,isInTemplateString:()=>Gge,isInTopLevelContext:()=>Tie,isInTypeQuery:()=>O7,isIncrementalCompilation:()=>K9,isIndexSignatureDeclaration:()=>Xb,isIndexedAccessTypeNode:()=>XN,isInferTypeNode:()=>fI,isInfinityOrNaNString:()=>d3,isInitializedProperty:()=>b$,isInitializedVariable:()=>J9,isInsideJsxElement:()=>N6,isInsideJsxElementOrAttribute:()=>Lf,isInsideNodeModules:()=>mce,isInsideTemplateLiteral:()=>K$,isInstantiatedModule:()=>l4,isInterfaceDeclaration:()=>Kp,isInternalDeclaration:()=>wme,isInternalModuleImportEqualsDeclaration:()=>y1,isInternalName:()=>N6e,isIntersectionTypeNode:()=>MJ,isIntrinsicJsxName:()=>z9,isIterationStatement:()=>kN,isJSDoc:()=>Gx,isJSDocAllType:()=>FJ,isJSDocAugmentsTag:()=>iF,isJSDocAuthorTag:()=>_Ue,isJSDocCallbackTag:()=>oF,isJSDocClassTag:()=>uC,isJSDocCommentContainingNode:()=>PN,isJSDocConstructSignature:()=>J8,isJSDocDeprecatedTag:()=>Woe,isJSDocEnumTag:()=>BJ,isJSDocFunctionType:()=>LG,isJSDocImplementsTag:()=>FG,isJSDocIndexSignature:()=>aH,isJSDocLikeText:()=>DA,isJSDocLink:()=>fpe,isJSDocLinkCode:()=>rF,isJSDocLinkLike:()=>OL,isJSDocLinkPlain:()=>SW,isJSDocMemberName:()=>Nu,isJSDocNameReference:()=>OJ,isJSDocNamepathType:()=>WJ,isJSDocNamespaceBody:()=>ck,isJSDocNode:()=>UC,isJSDocNonNullableType:()=>Ooe,isJSDocNullableType:()=>MG,isJSDocOptionalParameter:()=>iW,isJSDocOptionalType:()=>AEe,isJSDocOverloadTag:()=>OG,isJSDocOverrideTag:()=>UY,isJSDocParameterTag:()=>AA,isJSDocPrivateTag:()=>xW,isJSDocPropertyLikeTag:()=>BM,isJSDocPropertyTag:()=>IEe,isJSDocProtectedTag:()=>CEe,isJSDocPublicTag:()=>b6,isJSDocReadonlyTag:()=>_pe,isJSDocReturnTag:()=>aF,isJSDocSatisfiesExpression:()=>poe,isJSDocSatisfiesTag:()=>CA,isJSDocSeeTag:()=>DEe,isJSDocSignature:()=>Ak,isJSDocTag:()=>NT,isJSDocTemplateTag:()=>jx,isJSDocThisTag:()=>dpe,isJSDocThrowsTag:()=>zJ,isJSDocTypeAlias:()=>T2,isJSDocTypeAssertion:()=>$Y,isJSDocTypeExpression:()=>pI,isJSDocTypeLiteral:()=>EW,isJSDocTypeTag:()=>HY,isJSDocTypedefTag:()=>A2,isJSDocUnknownTag:()=>ppe,isJSDocUnknownType:()=>QL,isJSDocVariadicType:()=>Foe,isJSXTagName:()=>$M,isJsonEqual:()=>xY,isJsonSourceFile:()=>Py,isJsxAttribute:()=>Pb,isJsxAttributeLike:()=>$U,isJsxAttributeName:()=>rEe,isJsxAttributes:()=>iD,isJsxChild:()=>m1,isJsxClosingElement:()=>Sk,isJsxClosingFragment:()=>nF,isJsxElement:()=>my,isJsxExpression:()=>v6,isJsxFragment:()=>KE,isJsxNamespacedName:()=>dI,isJsxOpeningElement:()=>rD,isJsxOpeningFragment:()=>zx,isJsxOpeningLikeElement:()=>Y1,isJsxOpeningLikeElementTagName:()=>Gse,isJsxSelfClosingElement:()=>TW,isJsxSpreadAttribute:()=>Ek,isJsxTagNameExpression:()=>JU,isJsxText:()=>S1,isJumpStatementTarget:()=>bZ,isKeyword:()=>sE,isKeywordOrPunctuation:()=>Nde,isKnownSymbol:()=>vH,isLabelName:()=>Vse,isLabelOfLabeledStatement:()=>Mge,isLabeledStatement:()=>iS,isLateVisibilityPaintedStatement:()=>Xz,isLeftHandSideExpression:()=>FE,isLeftHandSideOfAssignment:()=>Gie,isLet:()=>eSe,isLineBreak:()=>Ff,isLiteralComputedPropertyDeclarationName:()=>K8,isLiteralExpression:()=>fP,isLiteralExpressionOfObject:()=>HX,isLiteralImportTypeNode:()=>BE,isLiteralKind:()=>c9,isLiteralLikeAccess:()=>lH,isLiteralLikeElementAccess:()=>eI,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Ej,isLiteralTypeLikeExpression:()=>O6e,isLiteralTypeLiteral:()=>f7,isLiteralTypeNode:()=>_I,isLocalName:()=>T6,isLogicalOperator:()=>Wde,isLogicalOrCoalescingAssignmentExpression:()=>DH,isLogicalOrCoalescingAssignmentOperator:()=>W7,isLogicalOrCoalescingBinaryExpression:()=>IH,isLogicalOrCoalescingBinaryOperator:()=>pk,isMappedTypeNode:()=>yW,isMemberName:()=>uy,isMetaProperty:()=>eF,isMethodDeclaration:()=>em,isMethodOrAccessor:()=>c7,isMethodSignature:()=>Jh,isMinusToken:()=>FY,isMissingDeclaration:()=>qE,isModifier:()=>bd,isModifierKind:()=>qg,isModifierLike:()=>pc,isModuleAugmentationExternal:()=>mie,isModuleBlock:()=>z0,isModuleBody:()=>ade,isModuleDeclaration:()=>xp,isModuleExportsAccessExpression:()=>KC,isModuleIdentifier:()=>U8,isModuleName:()=>GEe,isModuleOrEnumDeclaration:()=>sde,isModuleReference:()=>rie,isModuleSpecifierLike:()=>FZ,isModuleWithStringLiteralName:()=>iY,isNameOfFunctionDeclaration:()=>SZ,isNameOfModuleDeclaration:()=>Lge,isNamedClassElement:()=>DN,isNamedDeclaration:()=>Xv,isNamedEvaluation:()=>Hd,isNamedEvaluationSource:()=>kie,isNamedExportBindings:()=>GU,isNamedExports:()=>G0,isNamedImportBindings:()=>XD,isNamedImports:()=>y6,isNamedImportsOrExports:()=>LH,isNamedTupleMember:()=>rS,isNamespaceBody:()=>nie,isNamespaceExport:()=>AP,isNamespaceExportDeclaration:()=>dy,isNamespaceImport:()=>YL,isNamespaceReexportDeclaration:()=>Eie,isNewExpression:()=>Ac,isNewExpressionTarget:()=>zse,isNightly:()=>pG,isNoSubstitutionTemplateLiteral:()=>Sd,isNode:()=>UX,isNodeArray:()=>L8,isNodeArrayMultiLine:()=>ASe,isNodeDescendantOf:()=>N7,isNodeKind:()=>aR,isNodeLikeSystem:()=>kM,isNodeModulesDirectory:()=>TMe,isNodeWithPossibleHoistedDeclaration:()=>uSe,isNonContextualKeyword:()=>W9,isNonExportDefaultModifier:()=>Ast,isNonGlobalAmbientModule:()=>pie,isNonGlobalDeclaration:()=>she,isNonNullAccess:()=>nEe,isNonNullChain:()=>Vz,isNonNullExpression:()=>cC,isNonStaticMethodOrAccessorWithPrivateName:()=>LHe,isNotEmittedOrPartiallyEmittedNode:()=>WMe,isNotEmittedStatement:()=>py,isNullishCoalesce:()=>Qre,isNumber:()=>U1,isNumericLiteral:()=>nS,isNumericLiteralName:()=>FT,isObjectBindingElementWithoutPropertyName:()=>Ij,isObjectBindingOrAssignmentElement:()=>KX,isObjectBindingOrAssignmentPattern:()=>ide,isObjectBindingPattern:()=>E1,isObjectLiteralElement:()=>Cm,isObjectLiteralElementLike:()=>KD,isObjectLiteralExpression:()=>Wd,isObjectLiteralMethod:()=>q2,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zE,isObjectTypeDeclaration:()=>GN,isOctalDigit:()=>OX,isOmittedExpression:()=>t0,isOptionalChain:()=>ky,isOptionalChainRoot:()=>h2,isOptionalDeclaration:()=>hG,isOptionalJSDocPropertyLikeTag:()=>rW,isOptionalTypeNode:()=>GY,isOuterExpression:()=>Goe,isOutermostOptionalChain:()=>M8,isOverrideModifier:()=>SEe,isPackedArrayLiteral:()=>foe,isParameter:()=>Pu,isParameterDeclaration:()=>Y8,isParameterOrCatchClauseVariable:()=>_oe,isParameterPropertyDeclaration:()=>Eb,isParameterPropertyModifier:()=>lR,isParenthesizedExpression:()=>sb,isParenthesizedTypeNode:()=>xR,isParseTreeNode:()=>uP,isPartOfTypeNode:()=>rC,isPartOfTypeQuery:()=>Cs,isPartiallyEmittedExpression:()=>E3,isPatternMatch:()=>mU,isPinnedComment:()=>h9,isPlainJsFile:()=>y2,isPlusToken:()=>woe,isPossiblyTypeArgumentPosition:()=>IZ,isPostfixUnaryExpression:()=>Z7,isPrefixUnaryExpression:()=>yk,isPrivateIdentifier:()=>Gu,isPrivateIdentifierClassElementDeclaration:()=>Mf,isPrivateIdentifierPropertyAccessExpression:()=>kT,isPrivateIdentifierSymbol:()=>UE,isProgramBundleEmitBuildInfo:()=>Axe,isProgramUptoDate:()=>Qae,isPrologueDirective:()=>qC,isPropertyAccessChain:()=>BU,isPropertyAccessEntityNameExpression:()=>bP,isPropertyAccessExpression:()=>sa,isPropertyAccessOrQualifiedName:()=>Uz,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>sk,isPropertyAssignment:()=>Fm,isPropertyDeclaration:()=>Os,isPropertyName:()=>fy,isPropertyNameLiteral:()=>yA,isPropertySignature:()=>Np,isProtoSetter:()=>X8,isPrototypeAccess:()=>r6,isPrototypePropertyAssignment:()=>H8,isPunctuation:()=>w7,isPushOrUnshiftIdentifier:()=>_Se,isQualifiedName:()=>nT,isQuestionDotToken:()=>wG,isQuestionOrExclamationToken:()=>Tpe,isQuestionOrPlusOrMinusToken:()=>Spe,isQuestionToken:()=>ER,isRawSourceMap:()=>PHe,isReadonlyKeyword:()=>NJ,isReadonlyKeywordOrPlusOrMinusToken:()=>zEe,isRecognizedTripleSlashComment:()=>nY,isReferenceFileLocation:()=>yF,isReferencedFile:()=>k6,isRegularExpressionLiteral:()=>OY,isRequireCall:()=>eT,isRequireVariableStatement:()=>KM,isRestParameter:()=>dP,isRestTypeNode:()=>gW,isReturnStatement:()=>Bx,isReturnStatementWithFixablePromiseHandler:()=>lCe,isRightSideOfAccessExpression:()=>jie,isRightSideOfPropertyAccess:()=>G3,isRightSideOfQualifiedName:()=>zJe,isRightSideOfQualifiedNameOrPropertyAccess:()=>kH,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>ySe,isRootedDiskPath:()=>mm,isSameEntityName:()=>V8,isSatisfiesExpression:()=>cb,isScopeMarker:()=>XX,isSemicolonClassElement:()=>Roe,isSetAccessor:()=>_P,isSetAccessorDeclaration:()=>Ep,isShebangTrivia:()=>$_e,isShorthandAmbientModuleSymbol:()=>VM,isShorthandPropertyAssignment:()=>BT,isSignedNumericLiteral:()=>K2,isSimpleCopiableExpression:()=>D6,isSimpleInlineableExpression:()=>aD,isSingleOrDoubleQuote:()=>Dde,isSourceFile:()=>tl,isSourceFileFromLibrary:()=>lq,isSourceFileJS:()=>v1,isSourceFileNotJS:()=>E7,isSourceFileNotJson:()=>xie,isSourceMapping:()=>NHe,isSpecialPropertyDeclaration:()=>R9,isSpreadAssignment:()=>xk,isSpreadElement:()=>ex,isStatement:()=>uf,isStatementButNotDeclaration:()=>YX,isStatementOrBlock:()=>ZX,isStatementWithLocals:()=>XTe,isStatic:()=>e_,isStaticModifier:()=>dW,isString:()=>As,isStringAKeyword:()=>Ox,isStringANonContextualKeyword:()=>t6,isStringAndEmptyAnonymousObjectIntersection:()=>Uge,isStringDoubleQuoted:()=>Aie,isStringLiteral:()=>Wp,isStringLiteralLike:()=>sp,isStringLiteralOrJsxExpression:()=>Jz,isStringLiteralOrTemplate:()=>jZ,isStringOrNumericLiteralLike:()=>Qv,isStringOrRegularExpressionOrTemplateLiteral:()=>Vge,isStringTextContainingNode:()=>u9,isSuperCall:()=>y7,isSuperKeyword:()=>wJ,isSuperOrSuperProperty:()=>lY,isSuperProperty:()=>Z1,isSupportedSourceFileName:()=>HSe,isSwitchStatement:()=>Loe,isSyntaxList:()=>GJ,isSyntheticExpression:()=>C6e,isSyntheticReference:()=>ry,isTagName:()=>I8e,isTaggedTemplateExpression:()=>Hm,isTaggedTemplateTag:()=>xF,isTemplateExpression:()=>jY,isTemplateHead:()=>SR,isTemplateLiteral:()=>m9,isTemplateLiteralKind:()=>zM,isTemplateLiteralToken:()=>O8,isTemplateLiteralTypeNode:()=>S3,isTemplateLiteralTypeSpan:()=>LJ,isTemplateMiddle:()=>ope,isTemplateMiddleOrTemplateTail:()=>JX,isTemplateSpan:()=>VY,isTemplateTail:()=>K7,isTextWhiteSpaceLike:()=>BZ,isThis:()=>KW,isThisContainerOrFunctionBlock:()=>bie,isThisIdentifier:()=>Zy,isThisInTypeQuery:()=>kS,isThisInitializedDeclaration:()=>yP,isThisInitializedObjectBindingExpression:()=>xde,isThisProperty:()=>b7,isThisTypeNode:()=>Q7,isThisTypeParameter:()=>p3,isThisTypePredicate:()=>$b,isThrowStatement:()=>upe,isToken:()=>VC,isTokenKind:()=>Zre,isTraceEnabled:()=>Dk,isTransientSymbol:()=>uk,isTrivia:()=>tI,isTryStatement:()=>AR,isTupleTypeNode:()=>m6,isTypeAlias:()=>fH,isTypeAliasDeclaration:()=>mg,isTypeAssertionExpression:()=>xd,isTypeDeclaration:()=>f6,isTypeElement:()=>l7,isTypeKeyword:()=>Q$,isTypeKeywordToken:()=>kAe,isTypeKeywordTokenOrIdentifier:()=>wZ,isTypeLiteralNode:()=>e0,isTypeNode:()=>Uu,isTypeNodeKind:()=>Xie,isTypeOfExpression:()=>Jm,isTypeOnlyExportDeclaration:()=>s7,isTypeOnlyImportDeclaration:()=>$g,isTypeOnlyImportOrExportDeclaration:()=>sR,isTypeOperatorNode:()=>KN,isTypeParameterDeclaration:()=>Hh,isTypePredicateNode:()=>Y7,isTypeQueryNode:()=>uE,isTypeReferenceNode:()=>x2,isTypeReferenceType:()=>F8,isTypeUsableAsPropertyName:()=>yv,isUMDExportSymbol:()=>MH,isUnaryExpression:()=>ode,isUnaryExpressionWithWrite:()=>WVe,isUnicodeIdentifierStart:()=>Fz,isUnionTypeNode:()=>g6,isUnparsedNode:()=>a7,isUnparsedPrepend:()=>A3,isUnparsedSource:()=>xA,isUnparsedTextLike:()=>tde,isUrl:()=>r9,isValidBigIntString:()=>XH,isValidESSymbolDeclaration:()=>Zz,isValidTypeOnlyAliasUseSite:()=>EA,isValueSignatureDeclaration:()=>Ide,isVarAwaitUsing:()=>$2,isVarConst:()=>h7,isVarUsing:()=>T9,isVariableDeclaration:()=>ff,isVariableDeclarationInVariableStatement:()=>x9,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>pR,isVariableDeclarationInitializedToRequire:()=>sH,isVariableDeclarationList:()=>My,isVariableLike:()=>hP,isVariableLikeOrAccessor:()=>iC,isVariableStatement:()=>Dh,isVoidExpression:()=>$m,isWatchSet:()=>QVe,isWhileStatement:()=>kb,isWhiteSpaceLike:()=>UD,isWhiteSpaceSingleLine:()=>HD,isWithStatement:()=>D6e,isWriteAccess:()=>o6,isWriteOnlyAccess:()=>RH,isYieldExpression:()=>Ds,jsxModeNeedsExplicitImport:()=>lhe,keywordPart:()=>hE,last:()=>yl,lastOrUndefined:()=>Yf,length:()=>Nt,libMap:()=>KG,libs:()=>aQ,lineBreakPart:()=>lS,linkNamePart:()=>ZE,linkPart:()=>D1,linkTextPart:()=>qh,listFiles:()=>jxe,loadModuleFromGlobalCache:()=>DQ,loadWithModeAwareCache:()=>W3,makeIdentifierFromModuleName:()=>jVe,makeImport:()=>Pk,makeImportIfNecessary:()=>Dj,makeStringLiteral:()=>DF,mangleScopedPackageName:()=>CQ,map:()=>Vn,mapAllOrFail:()=>fA,mapDefined:()=>Qo,mapDefinedEntries:()=>aX,mapDefinedIterator:()=>p2,mapEntries:()=>Gc,mapIterator:()=>p_,mapOneOrMany:()=>ihe,mapToDisplayParts:()=>w6,matchFiles:()=>ioe,matchPatternOrExact:()=>aoe,matchedText:()=>AL,matchesExclude:()=>Fpe,maybeBind:()=>wc,maybeSetLocalizedDiagnosticMessages:()=>LSe,memoize:()=>Pd,memoizeCached:()=>JO,memoizeOne:()=>p0,memoizeWeak:()=>NVe,metadataHelper:()=>uW,min:()=>qw,minAndMax:()=>$Se,missingFileModifiedTime:()=>aP,modifierToFlag:()=>U9,modifiersToFlags:()=>dk,moduleOptionDeclaration:()=>r$,moduleResolutionIsEqualTo:()=>$z,moduleResolutionNameAndModeGetter:()=>P$,moduleResolutionOptionDeclarations:()=>lQ,moduleResolutionSupportsPackageJsonExportsAndImports:()=>UN,moduleResolutionUsesNodeModules:()=>U3,moduleSpecifiers:()=>M3,moveEmitHelpers:()=>$N,moveRangeEnd:()=>NH,moveRangePastDecorators:()=>$E,moveRangePastModifiers:()=>Db,moveRangePos:()=>TA,moveSyntheticComments:()=>PY,mutateMap:()=>a6,mutateMapSkippingNewValues:()=>wS,needsParentheses:()=>MAe,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>YZ,newPrivateEnvironment:()=>wae,noEmitNotification:()=>Mme,noEmitSubstitution:()=>Bae,noTransformers:()=>uxe,noTruncationMaximumTruncationLength:()=>HN,nodeCanBeDecorated:()=>ZD,nodeHasName:()=>FU,nodeIsDecorated:()=>C9,nodeIsMissing:()=>Um,nodeIsPresent:()=>wx,nodeIsSynthesized:()=>rh,nodeModuleNameResolver:()=>aHe,nodeModulesPathPart:()=>ix,nodeNextJsonConfigResolver:()=>sHe,nodeOrChildIsDecorated:()=>rG,nodeOverlapsWithStartEnd:()=>g4,nodePosToString:()=>GVe,nodeSeenTracker:()=>CF,nodeStartsNewLexicalEnvironment:()=>_G,nodeToDisplayParts:()=>NAe,noop:()=>ku,noopFileWatcher:()=>SF,normalizePath:()=>Fd,normalizeSlashes:()=>hf,not:()=>gN,notImplemented:()=>Na,notImplementedResolver:()=>pxe,nullNodeConverters:()=>Doe,nullParenthesizerRules:()=>Yde,nullTransformationContext:()=>I6,objectAllocator:()=>nv,operatorPart:()=>H3,optionDeclarations:()=>fC,optionMapToObject:()=>Rpe,optionsAffectingProgramStructure:()=>nae,optionsForBuild:()=>iae,optionsForWatch:()=>sQ,optionsHaveChanges:()=>gA,optionsHaveModuleResolutionChanges:()=>qTe,or:()=>dA,orderedRemoveItem:()=>Yw,orderedRemoveItemAt:()=>zC,outFile:()=>Kg,packageIdToPackageName:()=>YU,packageIdToString:()=>pP,padLeft:()=>qO,padRight:()=>Y5,paramHelper:()=>LY,parameterIsThisKeyword:()=>oI,parameterNamePart:()=>oce,parseBaseNodeFactory:()=>QEe,parseBigInt:()=>qSe,parseBuildCommand:()=>PUe,parseCommandLine:()=>eLe,parseCommandLineWorker:()=>e2e,parseConfigFileTextToJson:()=>n2e,parseConfigFileWithSystem:()=>Wxe,parseConfigHostFromCompilerHostLike:()=>Sxe,parseCustomTypeOption:()=>ZEe,parseIsolatedEntityName:()=>s_,parseIsolatedJSDocComment:()=>eQ,parseJSDocTypeExpressionForTests:()=>UG,parseJsonConfigFileContent:()=>FUe,parseJsonSourceFileConfigFileContent:()=>Qoe,parseJsonText:()=>cF,parseListTypeOption:()=>Joe,parseNodeFactory:()=>DP,parseNodeModuleFromPath:()=>wW,parsePackageName:()=>EQ,parsePseudoBigInt:()=>l3,parseValidBigInt:()=>uoe,patchWriteFileEnsuringDirectory:()=>Wre,pathContainsNodeModules:()=>NW,pathIsAbsolute:()=>VD,pathIsBareSpecifier:()=>vMe,pathIsRelative:()=>U2,patternText:()=>pTe,perfLogger:()=>jD,performIncrementalCompilation:()=>Hxe,performance:()=>YO,plainJSErrors:()=>cse,positionBelongsToNode:()=>Ux,positionIsASICandidate:()=>sq,positionIsSynthesized:()=>ab,positionsAreOnSameLine:()=>mv,preProcessFile:()=>iCe,probablyUsesSemicolons:()=>UZ,processCommentPragmas:()=>Hoe,processPragmasIntoFields:()=>Cpe,processTaggedTemplateExpression:()=>a4e,programContainsEsModules:()=>Z$,programContainsModules:()=>LZ,projectReferenceIsEqualTo:()=>sie,propKeyHelper:()=>bJ,propertyNamePart:()=>Kge,pseudoBigIntToString:()=>tD,punctuationPart:()=>cT,pushIfUnique:()=>Dy,quote:()=>uce,quotePreferenceFromString:()=>tq,rangeContainsPosition:()=>U$,rangeContainsPositionExclusive:()=>H$,rangeContainsRange:()=>sS,rangeContainsRangeExclusive:()=>Oge,rangeContainsStartEnd:()=>AZ,rangeEndIsOnSameLineAsRangeStart:()=>H9,rangeEndPositionsAreOnSameLine:()=>ESe,rangeEquals:()=>hz,rangeIsOnSingleLine:()=>mk,rangeOfNode:()=>coe,rangeOfTypeParameters:()=>loe,rangeOverlapsWithStartEnd:()=>RR,rangeStartIsOnSameLineAsRangeEnd:()=>xSe,rangeStartPositionsAreOnSameLine:()=>wH,readBuilderProgram:()=>Sse,readConfigFile:()=>rQ,readHelper:()=>yJ,readJson:()=>e3,readJsonConfigFile:()=>tLe,readJsonOrUndefined:()=>Uie,realizeDiagnostics:()=>hDe,reduceEachLeadingCommentRange:()=>lP,reduceEachTrailingCommentRange:()=>wL,reduceLeft:()=>Em,reduceLeftIterator:()=>ui,reducePathComponents:()=>Lz,refactor:()=>Eq,regExpEscape:()=>tUe,relativeComplement:()=>b8,removeAllComments:()=>Zde,removeEmitHelper:()=>x6e,removeExtension:()=>eW,removeFileExtension:()=>wg,removeIgnoredPath:()=>H4e,removeMinAndVersionNumbers:()=>xL,removeOptionality:()=>N8e,removePrefix:()=>Sz,removeSuffix:()=>DM,removeTrailingDirectorySeparator:()=>n7,repeatString:()=>PP,replaceElement:()=>yz,resolutionExtensionIsTSOrJson:()=>G7,resolveConfigFileProjectName:()=>r0,resolveJSModule:()=>ZG,resolveLibrary:()=>S2e,resolveModuleName:()=>a4,resolveModuleNameFromCache:()=>nHe,resolvePackageNameToPackageJson:()=>Rst,resolvePath:()=>gm,resolveProjectReferencePath:()=>tse,resolveTripleslashReference:()=>YE,resolveTypeReferenceDirective:()=>vQ,resolvingEmptyArray:()=>eJ,restHelper:()=>pJ,returnFalse:()=>bg,returnNoopFileWatcher:()=>Tse,returnTrue:()=>xT,returnUndefined:()=>eE,returnsPromise:()=>cCe,runInitializersHelper:()=>uJ,sameFlatMap:()=>kx,sameMap:()=>Ol,sameMapping:()=>JLe,scanShebangTrivia:()=>CTe,scanTokenAtPosition:()=>aY,scanner:()=>lT,screenStartingMessageCodes:()=>M$,semanticDiagnosticsOptionDeclarations:()=>o$,serializeCompilerOptions:()=>Yoe,server:()=>gAe,servicesVersion:()=>fle,setCommentRange:()=>Ry,setConfigFileInOptions:()=>c2e,setConstantValue:()=>koe,setEachParent:()=>u6,setEmitFlags:()=>Sa,setFunctionNameHelper:()=>TJ,setGetSourceFileAsHashVersioned:()=>cZ,setIdentifierAutoGenerate:()=>wY,setIdentifierGeneratedImportReference:()=>J7,setIdentifierTypeArguments:()=>qN,setInternalEmitFlags:()=>aW,setLocalizedDiagnosticMessages:()=>MSe,setModuleDefaultHelper:()=>xJ,setNodeFlags:()=>YSe,setObjectAllocator:()=>RSe,setOriginalNode:()=>tc,setParent:()=>kl,setParentRecursive:()=>Q2,setPrivateIdentifier:()=>LW,setResolvedModule:()=>aie,setResolvedTypeReferenceDirective:()=>jM,setSnippetElement:()=>NY,setSourceMapRange:()=>Sp,setStackTraceLimit:()=>Iat,setStartsOnNewLine:()=>epe,setSyntheticLeadingComments:()=>MS,setSyntheticTrailingComments:()=>uI,setSys:()=>Bre,setSysLog:()=>ETe,setTextRange:()=>vr,setTextRangeEnd:()=>l6,setTextRangePos:()=>u3,setTextRangePosEnd:()=>T1,setTextRangePosWidth:()=>f3,setTokenSourceMapRange:()=>XL,setTypeNode:()=>npe,setUILocale:()=>$5,setValueDeclaration:()=>aG,shouldAllowImportingTsExtension:()=>c4,shouldPreserveConstEnums:()=>gk,shouldResolveJsRequire:()=>GH,shouldUseUriStyleNodeCoreModules:()=>hce,showModuleSpecifier:()=>kSe,signatureHasLiteralTypes:()=>ULe,signatureHasRestParameter:()=>oT,signatureToDisplayParts:()=>Xge,single:()=>_U,singleElementArray:()=>zD,singleIterator:()=>Zf,singleOrMany:()=>N0,singleOrUndefined:()=>Vb,skipAlias:()=>dg,skipAssertions:()=>KY,skipConstraint:()=>MZ,skipOuterExpressions:()=>rv,skipParentheses:()=>_g,skipPartiallyEmittedExpressions:()=>pA,skipTrivia:()=>ep,skipTypeChecking:()=>c3,skipTypeParentheses:()=>cG,skipWhile:()=>ME,sliceAfter:()=>soe,some:()=>gt,sort:()=>fN,sortAndDeduplicate:()=>OD,sortAndDeduplicateDiagnostics:()=>P8,sourceFileAffectingCompilerOptions:()=>hI,sourceFileMayBeEmitted:()=>L7,sourceMapCommentRegExp:()=>V2e,sourceMapCommentRegExpDontCareLineStart:()=>YLe,spacePart:()=>$h,spanMap:()=>fa,spreadArrayHelper:()=>vJ,stableSort:()=>nh,startEndContainsRange:()=>xZ,startEndOverlapsWithStartEnd:()=>AF,startOnNewLine:()=>x1,startTracing:()=>F_e,startsWith:()=>xf,startsWithDirectory:()=>jC,startsWithUnderscore:()=>NF,startsWithUseStrict:()=>vpe,stringContains:()=>Ub,stringContainsAt:()=>OAe,stringToToken:()=>TN,stripQuotes:()=>HE,supportedDeclarationExtensions:()=>h3,supportedJSExtensions:()=>xoe,supportedJSExtensionsFlat:()=>iJ,supportedLocaleDirectories:()=>Rh,supportedTSExtensions:()=>vG,supportedTSExtensionsFlat:()=>$de,supportedTSImplementationExtensions:()=>TG,suppressLeadingAndTrailingTrivia:()=>e2,suppressLeadingTrivia:()=>O8e,suppressTrailingTrivia:()=>RAe,symbolEscapedNameNoDefault:()=>y4,symbolName:()=>mp,symbolNameNoDefault:()=>OZ,symbolPart:()=>qge,symbolToDisplayParts:()=>ZW,syntaxMayBeASICandidate:()=>ZZ,syntaxRequiresTrailingSemicolonOrASI:()=>aq,sys:()=>m0,sysLog:()=>Lre,tagNamesAreEquivalent:()=>E6,takeWhile:()=>Yn,targetOptionDeclaration:()=>cQ,templateObjectHelper:()=>hJ,testFormatSettings:()=>wge,textChangeRangeIsUnchanged:()=>wTe,textChangeRangeNewSpan:()=>DT,textChanges:()=>Hs,textOrKeywordPart:()=>ace,textPart:()=>RA,textRangeContainsPositionInclusive:()=>Bz,textSpanContainsPosition:()=>kTe,textSpanContainsTextSpan:()=>FX,textSpanEnd:()=>K1,textSpanIntersection:()=>WX,textSpanIntersectsWith:()=>Yy,textSpanIntersectsWithPosition:()=>NTe,textSpanIntersectsWithTextSpan:()=>p1,textSpanIsEmpty:()=>ITe,textSpanOverlap:()=>PTe,textSpanOverlapsWith:()=>NMe,textSpansEqual:()=>IF,textToKeywordObj:()=>Jre,timestamp:()=>cf,toArray:()=>BC,toBuilderFileEmit:()=>nge,toBuilderStateFileInfoForMultiEmit:()=>V4e,toEditorSettings:()=>See,toFileNameLowerCase:()=>Q0,toLowerCase:()=>x8,toPath:()=>_h,toProgramEmitPending:()=>TF,tokenIsIdentifierOrKeyword:()=>Cf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>D8,tokenToString:()=>Nd,trace:()=>Vf,tracing:()=>tu,tracingEnabled:()=>Iz,transform:()=>EOe,transformClassFields:()=>Ame,transformDeclarations:()=>QN,transformECMAScriptModule:()=>Oae,transformES2015:()=>y4e,transformES2016:()=>KHe,transformES2017:()=>UHe,transformES2018:()=>Z2e,transformES2019:()=>exe,transformES2020:()=>HHe,transformES2021:()=>JHe,transformES5:()=>oxe,transformESDecorators:()=>VHe,transformESNext:()=>$He,transformGenerators:()=>axe,transformJsx:()=>qHe,transformLegacyDecorators:()=>jHe,transformModule:()=>Pme,transformNamedEvaluation:()=>ax,transformNodeModule:()=>ZHe,transformNodes:()=>zae,transformSystemModule:()=>sxe,transformTypeScript:()=>xme,transpile:()=>fCe,transpileModule:()=>Pce,transpileOptionValueCompilerOptions:()=>rae,trimString:()=>GD,trimStringEnd:()=>hU,trimStringStart:()=>Zw,tryAddToSet:()=>m2,tryAndIgnoreErrors:()=>ehe,tryCast:()=>to,tryDirectoryExists:()=>dce,tryExtractTSExtension:()=>PH,tryFileExists:()=>iB,tryGetClassExtendingExpressionWithTypeArguments:()=>Zv,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>hSe,tryGetDirectories:()=>HZ,tryGetExtensionFromPath:()=>OT,tryGetImportFromModuleSpecifier:()=>L9,tryGetJSDocSatisfiesTypeNode:()=>ZH,tryGetModuleNameFromFile:()=>UJ,tryGetModuleSpecifierFromDeclaration:()=>VL,tryGetNativePerformanceHooks:()=>$p,tryGetPropertyAccessOrIdentifierToString:()=>z7,tryGetPropertyNameOfBindingOrAssignmentElement:()=>FEe,tryGetSourceMappingURL:()=>IHe,tryGetTextOfPropertyName:()=>nH,tryIOAndConsumeErrors:()=>the,tryParsePattern:()=>c6,tryParsePatterns:()=>qH,tryParseRawSourceMap:()=>_me,tryReadDirectory:()=>_ce,tryReadFile:()=>qoe,tryRemoveDirectoryPrefix:()=>toe,tryRemoveExtension:()=>JSe,tryRemovePrefix:()=>C8,tryRemoveSuffix:()=>K5,typeAcquisitionDeclarations:()=>c$,typeAliasNamePart:()=>PAe,typeDirectiveIsEqualTo:()=>KTe,typeKeywords:()=>Fj,typeParameterNamePart:()=>yE,typeReferenceResolutionNameAndModeGetter:()=>eZ,typeToDisplayParts:()=>GZ,unchangedPollThresholds:()=>wU,unchangedTextChangeRange:()=>BMe,unescapeLeadingUnderscores:()=>lf,unmangleScopedPackageName:()=>dae,unorderedRemoveItem:()=>IM,unorderedRemoveItemAt:()=>A8,unreachableCodeIsError:()=>WSe,unusedLabelIsError:()=>BSe,unwrapInnermostStatementOfLabel:()=>eG,updateErrorForNoInputFiles:()=>l2e,updateLanguageServiceSourceFile:()=>Eee,updateMissingFilePathsWatch:()=>Jae,updatePackageJsonWatch:()=>kct,updateResolutionField:()=>gQ,updateSharedExtendedConfigFileWatcher:()=>_4,updateSourceFile:()=>XEe,updateWatchingWildcardDirectories:()=>D$,usesExtensionsOnImports:()=>USe,usingSingleLineStringWriter:()=>qU,utf16EncodeAsString:()=>LU,validateLocaleAndSetLanguage:()=>ey,valuesHelper:()=>SJ,version:()=>At,versionMajorMinor:()=>ot,visitArray:()=>dE,visitCommaListElements:()=>fme,visitEachChild:()=>ia,visitFunctionBody:()=>sm,visitIterationBody:()=>pE,visitLexicalEnvironment:()=>G2e,visitNode:()=>nr,visitNodes:()=>Fa,visitParameterList:()=>Bn,walkUpBindingElementsAndPatterns:()=>zX,walkUpLexicalEnvironments:()=>gme,walkUpOuterExpressions:()=>VJ,walkUpParenthesizedExpressions:()=>Lx,walkUpParenthesizedTypes:()=>mH,walkUpParenthesizedTypesAndGetParentAndChild:()=>ON,whitespaceOrMapCommentRegExp:()=>U2e,writeCommentRange:()=>tT,writeFile:()=>sC,writeFileEnsuringDirectories:()=>Lde,zipToModeAwareCache:()=>aae,zipWith:()=>Zr});var RZe=G({"src/typescript/_namespaces/ts.ts"(){Ad(),Dge(),El(),O0e()}}),cPe=ye({"src/typescript/typescript.ts"(t,r){RZe(),RZe(),typeof console<"u"&&(ce.loggingHost={log(s,l){switch(s){case 1:return console.error(l);case 2:return console.warn(l);case 3:return console.log(l);case 4:return console.log(l)}}}),r.exports=wZe}});return cPe()})();p.exports&&(p.exports=x)})(wIt);var B8t=wIt.exports;const TM=hxt(B8t);function LIt(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"](),L=H=>{e:for(;;){const G=H;if(TM.isParenthesizedTypeNode(G)){H=G.type;continue e}else return G}};return new vSt(nTe(SL(H=>{if(TM.isLiteralTypeNode(H)){const ye=H.literal;if(TM.isStringLiteral(ye)||TM.isNumericLiteral(ye))return _l(new Wu(8,[tEt(bSt(ye),()=>{throw new Error("Expected a NumericLiteral")})]));switch(ye.kind|0){case 106:case 157:return _l(new Wu(3,[new Nv(7,[])]));default:return}}else if(TM.isTypeReferenceNode(H)){const G=H,ye=x.getSymbolAtLocation(G.typeName),Oe=tEt(ye,()=>{throw new Error(Y0("union type cases","Missing symbol",G,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/UnionTypeNode.fs",58))}),ot=Oe.declarations;if(ot==null){const sn=x.getTypeOfSymbol(Oe).flags|0;if(YS(1,sn)!=null)return _l(new Wu(3,[new Nv(6,[])]));throw new Error(Y0("union type cases","Unsupported type reference reach a point where it was expected to have flags like Any",G,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/UnionTypeNode.fs",93))}else{const At=ot;if(At.length===0)return;if(j1t(ye))return _l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G));{const sn=At[0];return sn.kind===265?_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](sn)):_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](G))}}}else return H.kind===192?LIt(p,H).fields[0]:_l(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H))},zf(L,Zd(g.types)))))}function z8t(p,g){return new Wu(7,[LIt(p,g)])}function G8t(p,g){switch(g.operator|0){case 143:switch(g.type.kind|0){case 183:{const H=g.type,G=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(H.typeName);if(G!=null){const Oe=G.declarations;if(Oe==null)throw new Error(Y0("type operator (keyof)","Missing declarations",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",39));{const ot=Oe;if(ot.length!==1)throw new Error(Y0("type operator (keyof)","Expected exactly one declaration",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",28));return new Wu(9,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](ot[0])])}}else throw new Error(Y0("type operator (keyof)","Missing symbol",g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",21))}case 186:return new Wu(9,[NIt(p,g.type)]);default:throw new Error(Y0("type operator (keyof)",`Was expecting a type reference instead got a Node of type ${oX(g.type.kind)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",48))}case 148:return new Wu(29,[p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type)]);default:{const L=Y0("type operator",`Unsupported operator ${oX(g.operator)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/TypeOperatorNode.fs",58);return p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(L),new Wu(3,[new Nv(6,[])])}}}function j8t(p,g){let x,L,H,G,ye,Oe,ot,At,sn;return new Wu(10,[new _8t((x=g.indexType,L=x.kind|0,L===150?(H=g.indexType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](H)):L===198?(G=g.indexType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"](G)):(ye=Y0("readIndexedAccessType",`Unsupported node kind ${oX(L)}`,x,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/IndexedAccessType.fs",27),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(ye),new Wu(0,[]))),(Oe=g.objectType,ot=Oe.kind|0,ot===196?(At=g.objectType,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](At)):(sn=Y0("readIndexedAccessType",`Unsupported node kind ${oX(ot)}`,Oe,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/IndexedAccessType.fs",47),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(sn),new Wu(0,[]))))])}function V8t(p,g){return g!=null?zf(x=>new K4t(x.name.getText(),uU(L=>p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](L),x.constraint),void 0),Zd(g)):lc()}function U8t(p,g){const x=g.symbol;if(x==null)return new Wu(0,[]);if(x.name==="default")if(g.expression.kind===80){const H=g.expression;let G;const ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getTypeAtLocation(g.expression),Oe=ye.flags|0;if(YS(524288,Oe)!=null){const ot=ye.symbol.declarations;if(ot==null)G=new Wu(3,[new Nv(6,[])]);else{const At=ot;G=At.length===1?p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](At[0]):new Wu(3,[new Nv(6,[])])}}else G=YS(4,Oe)!=null?new Wu(3,[new Nv(0,[])]):YS(8,Oe)!=null?new Wu(3,[new Nv(5,[])]):YS(16,Oe)!=null?new Wu(3,[new Nv(3,[])]):YS(1,Oe)!=null?new Wu(3,[new Nv(6,[])]):YS(16384,Oe)!=null?new Wu(3,[new Nv(4,[])]):new Wu(3,[new Nv(6,[])]);return new Wu(24,[new Wu(2,[new xIt(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"](g),H.getText(),G)])])}else return new Wu(0,[]);else return new Wu(0,[])}function H1t(p,g,x){let L;const H=gIt(TM.displayPartsToString(g));L=y_e(tMe,H)?void 0:new UK(0,[H]);const G=Zd(oMe(ye=>{switch(ye.kind|0){case 334:switch(ye.tagName.getText()){case"remarks":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(4,[m8(TM.getTextOfJSDocComment(sn),"")])}}case"defaultValue":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(5,[m8(TM.getTextOfJSDocComment(sn),"")])}}case"example":{const At=ye.comment;if(At==null)return;{const sn=At;return new UK(6,[m8(TM.getTextOfJSDocComment(sn),"")])}}case"typeParam":{const At=ye.comment;if(At==null)return;{const sn=At,tr=TM.getTextOfJSDocComment(sn);if(tr==null)return;{const Nt=tr,Ot=fNt(/\s*(?[^-\s]*)\s*-\s*(?.*)/gus,Nt);if(Ot!=null)return new UK(7,[new $4t(Ot.groups&&Ot.groups.type||"",(Ot.groups&&Ot.groups.description)!=null?Ot.groups&&Ot.groups.description||"":void 0)]);p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(`Invalid typeParam tag format: ${Nt}`);return}}}default:return}case 338:{const ot=ye.comment;if(ot==null)return new UK(3,[void 0]);{const At=ot;return new UK(3,[TM.getTextOfJSDocComment(At)])}}case 348:{const ot=ye,At=ot.name;let sn;const tr=ot.comment;if(tr==null)sn=void 0;else{const Nt=tr;sn=TM.getTextOfJSDocComment(Nt)}return new UK(2,[new J4t(At.getText(),sn)])}case 349:{const ot=ye.comment;if(ot==null)return;{const At=ot;return new UK(1,[m8(TM.getTextOfJSDocComment(At),"")])}}case 356:{const ot=ye.comment;if(ot==null)return;{const At=ot;return new UK(8,[m8(TM.getTextOfJSDocComment(At),"")])}}default:return}},x));return Zd(cd(()=>{let ye;return V1((ye=L,ye==null?Uw():fg(ye)),cd(()=>G))}))}function H8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSignatureFromDeclaration(g);return x==null?lc():H1t(p,x.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g))}function J8t(p,g){const x=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]().getSymbolAtLocation(g);if(x==null){const L=g.symbol;if(L==null)return lc();{const H=df(L);return H1t(p,H.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g))}}else return H1t(p,x.getDocumentationComment(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"]()),TM.getJSDocTags(g.parent))}function $8t(p,g){return new Wu(19,[new l8t(g.name.getText(),p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"](g.type))])}function q8t(p,g){let x,L,H,G;const ye=p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"]([g.typeParameter]);let Oe,ot;switch(yd(ye)?Oe=1:yd(xy(ye))?(Oe=0,ot=Hp(ye)):Oe=1,Oe){case 0:{G=new ZI(0,[ot]);break}default:G=new ZI(1,[Y0("readMappedTypeNode",`Expected exactly one type parameter but was ${_z(ye)}`,g,"/home/runner/work/cli/cli/src/Glutinum.Converter/Reader/MappedTypeNode.fs",18)])}return H=G.tag===1?new ZI(1,[G.fields[0]]):new ZI(0,[new Wu(27,[new f8t(G.fields[0],(x=g.type,x==null?void 0:(L=x,p["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](L))))])]),H.tag===1?(p["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]().push(H.fields[0]),new Wu(0,[])):H.fields[0]}class K8t{constructor(g){this["checker@26"]=g,this.warnings=[],this.typeMemory=[]}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_checker"(){return this["checker@26"]}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"(){return this.warnings}"Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"(){return this.typeMemory}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadClassDeclarationZ4558F325"(g){return b8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadEnumDeclaration49F76106"(g){const x=this;return new Wu(4,[S8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadFunctionDeclarationZ72EBD329"(g){const x=this;return new Wu(6,[E8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadInterfaceDeclaration1CB6FA10"(g){const x=this;return new Wu(1,[x8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadModuleDeclarationC29C54F"(g){const x=this;return new Wu(11,[A8t(x,g)])}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"(g){const x=this,L=C8t(x,g);return x.typeMemory.push(L),L}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeAliasDeclarationZ7FA16745"(g){return D8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNode24A678AD"(g){return this["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"](g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeNodeZ64B23DD2"(g){const x=this;return g==null?new Wu(3,[new Nv(4,[])]):L8t(x,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadVariableStatementZ66C4BA0A"(g){return O8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDeclaration61B89E55"(g){return F8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadParametersZ17143B5B"(g){return W8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadUnionTypeNodeZ5A082EC2"(g){return z8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeOperatorNodeZ6830FC33"(g){return G8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadIndexedAccessTypeZ5577BC0A"(g){return j8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadTypeParameters4088FB9E"(g){return V8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadExportAssignmentZ3497D0FE"(g){return U8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromSignature61B89E55"(g){return H8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadDocumentationFromNode6C0FD055"(g){return J8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNamedTupleMemberZ6E17C942"(g){return $8t(this,g)}"Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadMappedTypeNode28272C00"(g){return q8t(this,g)}}function X8t(p){return new K8t(p)}function SSt(p,g){const x=X8t(p),L=zf(G=>x["Glutinum.Converter.Reader.Types.ITypeScriptReader.ReadNode6C0FD055"](G),tTe(df(g).statements)),H=x["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_Warnings"]();return{GlueAST:L,TypeMemory:tTe(x["Glutinum.Converter.Reader.Types.ITypeScriptReader.get_TypeMemory"]()),Warnings:H}}const Y8t=vAt(fu(["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","false","finally","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","null","of","open","or","override","private","public","rec","return","sig","static","struct","then","to","true","try","type","upcast","use","val","void","when","while","with","yield","atomic","break","checked","component","const","constraint","constructor","continue","eager","fixed","fori","functor","include","measure","method","mixin","object","parallel","params","process","protected","pure","recursive","sealed","tailcall","trait","virtual","volatile"]),{Compare:cU});function Q8t(p){return p.length>0?u4t(p[0]):!1}function Z8t(p){return p.indexOf("-")>=0||p.indexOf("$")>=0||p.indexOf("#")>=0||p.indexOf("<")>=0||p.indexOf(">")>=0||p.indexOf(" ")>=0||Q8t(p)||uTt(Y8t,p)?`\`\`${p}\`\``:p}function kVe(p){if(jje(p))return"";if(p.length<1)return p;{const g=p[0],x=p[p.length-1];let L;switch(g){case'"':{x==='"'?L=0:L=1;break}case"'":{x==="'"?L=0:L=1;break}default:L=1}switch(L){case 0:return ARe(p,1,p.length-2);default:return p}}}function e3t(p){return Fne(p,".","_")}function t3t(p){return Fne(p,"@","_AT_")}class n3t extends ap{constructor(g,x){super(),this.Name=g,this.IsDifferent=x}}function ESt(p){const g=kVe(t3t(e3t(p))),x=p!==g;return new n3t(Z8t(g),x)}function F5(p){return ESt(p).Name}function J1t(p){const g=new Map([]),x=[],L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();if(H.tag===5){const G=H.fields[0];if(g.has(G.Name)){const ye=rat(g,G.Name)|0,Oe=x[ye];if(Oe.tag===5){const ot=Oe.fields[0],At=new tP(ot.Attributes,ot.Name,ot.OriginalName,ot.TypeParameters,iU(ot.Members,G.Members),iU(ot.Inheritance,G.Inheritance));Wne(x,ye,new Ef(5,[At]))}else throw new Error("Invalid state")}else fAt(g,G.Name,x.length),x.push(H)}else x.push(H)}}finally{d2(L)}return tTe(x)}function $1t(p){const g=new Map([]),x=[],L=Ix(p);try{for(;L["System.Collections.IEnumerator.MoveNext"]();){const H=L["System.Collections.Generic.IEnumerator`1.get_Current"]();if(H.tag===4){const G=H.fields[0],ye=new Bot(G.Name,G.IsRecursive,$1t(J1t(G.Types)));if(g.has(G.Name)){const Oe=rat(g,G.Name)|0,ot=x[Oe];if(ot.tag===4){const At=ot.fields[0],sn=new Bot(At.Name,At.IsRecursive,$1t(J1t(iU(At.Types,ye.Types))));Wne(x,Oe,new Ef(4,[sn]))}else throw new Error("Invalid state")}else fAt(g,ye.Name,x.length),x.push(new Ef(4,[ye]))}else x.push(H)}}finally{d2(L)}return tTe(x)}function r3t(p){return $1t(J1t(p))}class i3t{constructor(){this["Warnings@"]=[],this["Errors@"]=[],this["HasRegEpx@"]=!1,this["HasReadonlyArray@"]=!1,this["HasIterable@"]=!1}}function o3t(){return new i3t}class a3t{constructor(g,x,L,H){let G;this.reporter=g,this.currentScopeName=x,this.typeMemory=L,this.parent=H,this.types=[],this.modules=[],this["FullName@"]=(G=this.parent,G!=null?Nit(gL(G)+"."+this.currentScopeName,"."):""),this["CurrentScopeName@"]=this.currentScopeName,this["TypeMemory@"]=this.typeMemory,this["_types@"]=this.types,this["_Reporter@"]=this.reporter}}function OIt(p,g,x,L){return new a3t(p,g,x,L)}class s3t extends ap{constructor(g,x){super(),this.ObsoleteAttributes=g,this.XmlDoc=x}}class c3t extends ap{constructor(g,x,L,H,G,ye){super(),this.FSharpAST=g,this.Warnings=x,this.Errors=L,this.IncludeRegExpAlias=H,this.IncludeReadonlyArrayAlias=G,this.IncludeIterableAlias=ye}}function FIt(p){return p["Warnings@"]}function WIt(p){return p["Errors@"]}function l3t(p){return p["HasRegEpx@"]}function u3t(p,g){p["HasRegEpx@"]=g}function f3t(p){return p["HasReadonlyArray@"]}function _3t(p,g){p["HasReadonlyArray@"]=g}function d3t(p){return p["HasIterable@"]}function p3t(p,g){p["HasIterable@"]=g}function gL(p){return p["FullName@"]}function _8(p){return p["CurrentScopeName@"]}function BIt(p){return p["TypeMemory@"]}function m3t(p){return p["_types@"]}function g3t(p){return p["_Reporter@"]}function h3t(p){u3t(p.reporter,!0)}function zIt(p){_3t(p.reporter,!0)}function GIt(p){p3t(p.reporter,!0)}function tz(p,g){const x=p.parent;x!=null?m3t(x).push(g):p.types.push(g)}function I_e(p,g){const x=OIt(p.reporter,F5(g),p.typeMemory,p);return p.modules.push(x),x}function q1t(p){if(p.parent!=null){const g=Zd(cd(()=>V1(Zd(p.types),cd(()=>sot(q1t,p.modules)))));return yd(g)?lc():_l(new Ef(4,[new Bot(p.currentScopeName,!1,g)]))}else return Zd(cd(()=>V1(Zd(p.types),cd(()=>sot(q1t,p.modules)))))}function jIt(p,g){FIt(p.reporter).push(g)}function Xit(p,g){WIt(p.reporter).push(g)}function VIt(p,g){switch(g){case"RegExp":{h3t(p);break}case"ReadonlyArray":{zIt(p);break}case"Iterable":{GIt(p);break}}}function K1t(p,g){if(g.tag===13){const x=g.fields[0];return x.IsStandardLibrary&&VIt(p,x.Name),g}else return g}function UIt(p,g){let x;if(g.IsStandardLibrary){const L=g.Name;x=L==="Date"?"JS.Date":L==="Promise"?"JS.Promise":L==="Uint8Array"?"JS.Uint8Array":L==="Array"?"ResizeArray":L==="Boolean"?"bool":L==="Function"?"Action":L==="Error"?"Exception":L}else x=g.Name;return VIt(p,x),x}function HIt(p,g,x){const L=Ay(p,g);return x&&L.tag===3?L.fields[0]:L}function j2(p,g){const x=F5(p);return[x,I_e(g,x)]}function h_e(p){const x=((ye,Oe)=>{e:for(;;){const ot=ye,At=Oe;if(yd(At))return ot;{const sn=xy(At),tr=Hp(At);switch(tr.tag){case 3:{ye={Deprecated:iU(ot.Deprecated,_l(tr.fields[0])),Others:ot.Others,Remarks:ot.Remarks,Throws:ot.Throws},Oe=sn;continue e}case 8:{ye={Deprecated:ot.Deprecated,Others:ot.Others,Remarks:ot.Remarks,Throws:iU(ot.Throws,_l(tr.fields[0]))},Oe=sn;continue e}case 4:{ye={Deprecated:ot.Deprecated,Others:ot.Others,Remarks:iU(ot.Remarks,_l(tr.fields[0])),Throws:ot.Throws},Oe=sn;continue e}default:{ye={Deprecated:ot.Deprecated,Others:iU(ot.Others,_l(tr)),Remarks:ot.Remarks,Throws:ot.Throws},Oe=sn;continue e}}}}})({Deprecated:lc(),Others:lc(),Remarks:lc(),Throws:lc()},p),L=zf(ye=>new Sm(9,[ye]),x.Deprecated),H=!yd(x.Remarks)||!yd(x.Throws)?new M1e(3,[lA(` +`,Zd(cd(()=>V1(x.Remarks,cd(()=>V1(yd(x.Throws)?Uw():V1(yd(x.Remarks)?Uw():fg(""),cd(()=>V1(fg("Throws:"),cd(()=>fg("-------"))))),cd(()=>sot(ye=>V1(fg(""),cd(()=>fg(ye))),x.Throws))))))))]):void 0,G=zf(ye=>{switch(ye.tag){case 0:return new M1e(0,[ye.fields[0]]);case 1:return new M1e(2,[ye.fields[0]]);case 2:{const Oe=ye.fields[0];return new M1e(1,[new h4t(Oe.Name,m8(uU(ot=>Nit(Nit(Nit(ot),"-")),Oe.Content),""))])}case 5:return new M1e(4,[ye.fields[0]]);case 6:return new M1e(5,[ye.fields[0]]);case 7:{const Oe=ye.fields[0];return new M1e(6,[new y4t(Oe.TypeName,m8(Oe.Content,""))])}default:throw new Error("Should not happen")}},x.Others);return new s3t(L,Xxt(ye=>{switch(ye.tag){case 4:return 1;case 3:return 2;case 5:return 3;case 1:return 4;case 6:return 5;case 2:return 999;default:return 0}},Zd(cd(()=>V1(G,cd(()=>H!=null?fg(df(H)):Uw())))),{Compare:cU}))}function y3t(p){switch(p.tag){case 1:return new oRe(1,[p.fields[0]]);case 2:return new oRe(2,[p.fields[0]]);case 3:return new oRe(3,[p.fields[0]]);case 4:return new oRe(4,[]);default:return new oRe(0,[p.fields[0]])}}function JIt(p){switch(p.tag){case 1:return new RC(1,[]);case 2:return new RC(2,[]);case 3:return new RC(3,[]);case 4:return new RC(4,[]);case 5:return new RC(5,[]);case 6:return new RC(6,[]);case 7:return new RC(6,[]);case 8:return new RC(6,[]);case 9:return new RC(6,[]);case 10:return new RC(6,[]);case 11:return new RC(6,[]);default:return new RC(0,[])}}function $It(p,g){return new Ef(12,[zf(x=>Ay(p,x),g)])}function qIt(p,g){const x=H=>new Ef(7,[new g_e("Iterable",_l(H))]),L=()=>x(new xje(0,[new Ef(18,[])]));return uU(H=>{const G=H.Type;switch(G.tag){case 13:{const ye=G.fields[0];return ye.Name==="IterableIterator"?x(new xje(0,[Ay(p,Hp(ye.TypeArguments))])):L()}case 21:{let ye=new xje(0,[new Ef(18,[])]);const Oe=Ix(G.fields[0].Members);try{for(;Oe["System.Collections.IEnumerator.MoveNext"]();){const ot=Oe["System.Collections.Generic.IEnumerator`1.get_Current"]();let At,sn;switch(ot.tag===6&&ot.fields[0].Name==="next"?(At=0,sn=ot.fields[0]):At=1,At){case 0:{const tr=sn.Type;tr.tag===21&&TL(Nt=>{let Ot,bo;switch(Nt.tag===1&&Nt.fields[0].Name==="value"?(Ot=0,bo=Nt.fields[0]):Ot=1,Ot){case 0:{ye=new xje(0,[Ay(p,bo.Type)]);break}case 1:break}},tr.fields[0].Members);break}}}}finally{d2(Oe)}return x(ye)}default:return L()}},wNt(SL(H=>{if(H.tag===6){const G=H.fields[0];return G.Name==="[Symbol.iterator]"?(GIt(p),G):void 0}else return},g.Members)))}function KIt(p,g,x){if(g.tag===1){const L=g.fields[0],H=j2(`U${_z(L)}`,p),G=new Ef(1,[new cMe(lc(),H[0],zf(ye=>{const Oe=I_e(H[1],`ReadOnly${ye.Name}`),ot=QRe(Oe,ye),At=new tP(ot.Attributes,ot.Name,ot.OriginalName,ot.TypeParameters,Q2t(ot.Members),ot.Inheritance);return tz(Oe,new Ef(5,[new tP(At.Attributes,_8(Oe),At.OriginalName,At.TypeParameters,At.Members,At.Inheritance)])),new lTe(1,[new Ef(5,[new tP(At.Attributes,gL(Oe),At.OriginalName,At.TypeParameters,At.Members,At.Inheritance)])])},L),!1)]);return x==null?G:x(G)}else{const L=new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),_8(p),_8(p),lc(),Q2t(cz(p,g.fields[0])),lc())]);return x==null?(tz(p,L),new Ef(7,[new g_e(gL(p),lc())])):L}}function Ay(p,g){let x;e:for(;;){const L=p,H=g;switch(H.tag){case 3:return new Ef(8,[JIt(H.fields[0])]);case 25:return new Ef(8,[new RC(0,[])]);case 22:return new Ef(3,[Ay(L,H.fields[0])]);case 17:{const G=H.fields[0];return new Ef(15,[new A4t(G.Name,BO(L,G.TypeParameters))])}case 18:return $It(L,H.fields[0]);case 29:return ekt(L,H.fields[0]);case 7:{const G=rMe(ot=>{if(ot.tag===3)switch(ot.fields[0].tag){case 7:case 8:return!0;default:return!1}else return!1},H.fields[0].fields[0]),ye=G[1],Oe=!yd(G[0]);if(Oe&&_z(ye)===1)return new Ef(3,[Ay(L,Hp(ye))]);if(_z(ye)===1){p=L,g=Hp(ye);continue e}else{const ot=ZIt(L,_8(L),ye);if(ot==null){const At=j2(`U${_z(ye)}`,L);return new Ef(1,[new cMe(lc(),At[0],nMe((sn,tr)=>new lTe(1,[Ay(I_e(At[1],`Case${sn+1}`),tr)]),ye),Oe)])}else return tz(L,ot),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))])}}case 13:{const G=H.fields[0];return new Ef(11,[new F1e(UIt(L,G),G.FullName,zf(ye=>Ay(L,ye),G.TypeArguments),new Ef(10,[]))])}case 14:return new Ef(14,[Ay(L,H.fields[0])]);case 12:{const G=H.fields[0];return new Ef(11,[new F1e(G.Name,G.Name,lc(),new Ef(10,[]))])}case 16:return new Ef(13,[H.fields[0]]);case 15:{const G=H.fields[0],ye=FO(ot=>ot.Name!=="this",G.Parameters);let Oe;switch(yd(ye)||yd(xy(ye))?Oe=0:Oe=1,Oe){case 0:return new Ef(16,[new $2t(zf(ot=>az(L,ot),ye),Ay(L,G.Type))]);default:{const ot=BO(L,FO(At=>eat(sn=>At.Name===KK(sn.Type),ye),G.TypeParameters));return tz(L,new Ef(20,[new D4t(_8(L),ot,zf(At=>az(L,At),ye),Ay(L,G.Type))])),new Ef(9,[new zot(lc(),gL(L),lc(),new Ef(10,[]),ot)])}}}case 1:return new Ef(5,[QRe(L,H.fields[0])]);case 21:{const G=H.fields[0];if(y_e(ye=>{switch(ye.tag){case 6:case 1:case 2:case 3:case 4:case 0:case 7:return!0;default:return!1}},G.Members)){const ye=Xxt(ot=>ot.IsOptional,zf(ot=>{const At=ot.Type;return At.tag===3?new eU(ot.Attributes,ot.Name,!0,At.fields[0]):ot},T3t(L,G.Members)),{Compare:cU}),Oe=zf(ot=>new b4t(ot.Name,ot.IsOptional?new Ef(3,[ot.Type]):ot.Type),ye);tz(L,new Ef(17,[new S4t(fu([new Sm(17,[]),new Sm(8,[])]),_8(L),lc(),new T4t(ye,fu([new Sm(18,[]),new Sm(2,[])]),new Bw(0,[])),lc(),Oe)]))}else tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),_8(L),"",lc(),cz(L,G.Members),Zd(cd(()=>{const ye=qIt(L,G);return ye==null?Uw():fg(ye)})))]));return new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))])}case 24:{p=L,g=H.fields[0];continue e}case 2:{p=L,g=H.fields[0].Type;continue e}case 9:{const G=XIt(_8(L),H.fields[0]);return G==null?new Ef(18,[]):(tz(L,G),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))]))}case 19:{p=L,g=H.fields[0].Type;continue e}case 0:return new Ef(18,[]);case 8:switch(H.fields[0].tag){case 1:return new Ef(8,[new RC(1,[])]);case 2:return new Ef(8,[new RC(2,[])]);case 3:return new Ef(8,[new RC(3,[])]);case 4:return new Ef(8,[new RC(6,[])]);default:return new Ef(8,[new RC(0,[])])}case 6:{const G=H.fields[0];return new Ef(16,[new $2t(zf(ye=>az(L,ye),G.Parameters),Ay(L,G.Type))])}case 20:{const G=H.fields[0];return yd(G)?new Ef(18,[]):(tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),_8(L),_8(L),lc(),cz(L,G),lc())])),new Ef(7,[new g_e(gL(L),lc())]))}case 26:{const G=H.fields[0];let ye,Oe;switch(G.tag){case 1:{ye=1;break}case 2:{ye=2,Oe=G.fields[0];break}case 3:{ye=2,Oe=G.fields[0];break}case 4:{ye=3;break}case 5:{ye=4;break}default:ye=0}switch(ye){case 0:return tz(L,new Ef(5,[(x=QRe(L,G.fields[0]),xSt(_8(L),x))])),new Ef(11,[new F1e(gL(L),gL(L),lc(),new Ef(10,[]))]);case 1:return tz(L,YIt(L,_8(L),lc(),G.fields[0])),new Ef(7,[new g_e(gL(L),lc())]);case 2:{p=L,g=Oe;continue e}case 3:return tz(L,new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),_8(L),_8(L),lc(),cz(L,G.fields[0]),lc())])),new Ef(7,[new g_e(gL(L),lc())]);default:return KIt(L,G.fields[0],void 0)}}case 5:return new Ef(7,[new g_e(H.fields[0].Name,lc())]);case 27:case 11:case 10:case 4:return Xit(L,Rne(K1e("Could not transform type: %A%P()",[H]))),new Ef(10,[]);default:return new Ef(18,[])}break}}function v3t(p,g,x){const L=I_e(p,"Exports");return new Ef(5,[new tP(fu([new Sm(7,[]),new Sm(6,[])]),"Exports","Exports",lc(),rz(H=>{let G,ye,Oe,ot,At,sn,tr,Nt,Ot;switch(H.tag){case 2:{Oe=0,ot=H.fields[0];break}case 6:{Oe=1,At=H.fields[0];break}case 12:{Oe=2,sn=H.fields[0];break}case 24:{H.fields[0].tag===12?(Oe=2,sn=H.fields[0].fields[0]):(Oe=4,Nt=H.fields[0]);break}case 11:{Oe=3,tr=H.fields[0];break}default:Oe=5,Ot=H}switch(Oe){case 0:{const bo=j2(ot.Name,L),Yr=h_e(ot.Documentation);return _l(new zw(1,[new SM(Zd(cd(()=>V1(fg(new Sm(3,[ot.Name,"REPLACE_ME_WITH_MODULE_NAME"])),cd(()=>Yr.ObsoleteAttributes)))),bo[0],ot.Name,lc(),lc(),Ay(bo[1],ot.Type),!1,!0,void 0,new Bw(0,[]),Yr.XmlDoc,new p8(0,[]))]))}case 1:{const bo=j2(At.Name,L),Yr=bo[1],Ns=h_e(At.Documentation);return _l(new zw(0,[(G=Zd(cd(()=>V1(fg(g?new Sm(3,[At.Name,"REPLACE_ME_WITH_MODULE_NAME"]):new Sm(15,[At.Name])),cd(()=>Ns.ObsoleteAttributes)))),ye=zf(ui=>az(Yr,ui),At.Parameters),new SM(G,bo[0],At.Name,BO(Yr,At.TypeParameters),ye,Ay(Yr,At.Type),!1,g,void 0,new Bw(0,[]),Ns.XmlDoc,new p8(0,[])))]))}case 2:{const bo=j2(sn.Name,L),Yr=bo[1];return zf(Ns=>{let ui,Zr;const Zi=h_e(Ns.Documentation);return new zw(0,[(ui=Zd(cd(()=>V1(g?V1(fg(new Sm(3,[sn.Name,"REPLACE_ME_WITH_MODULE_NAME"])),cd(()=>fg(new Sm(13,[])))):fg(new Sm(14,[sn.Name])),cd(()=>Zi.ObsoleteAttributes)))),Zr=zf(jr=>az(Yr,jr),Ns.Parameters),new SM(ui,bo[0],sn.Name,BO(Yr,sn.TypeParameters),Zr,new Ef(7,[new g_e(F5(sn.Name),BO(Yr,sn.TypeParameters))]),!1,g,void 0,new Bw(0,[]),Zi.XmlDoc,new p8(0,[])))])},yd(sn.Constructors)?_l(new AIt(lc(),lc())):sn.Constructors)}case 3:{const bo=F5(tr.Name);return _l(new zw(1,[new SM(fu([new Sm(4,["REPLACE_ME_WITH_MODULE_NAME"]),new Sm(0,[`Emit("$0.${kVe(tr.Name)}")`])]),bo+"_",`${tr.Name}.Exports`,lc(),lc(),new Ef(7,[new g_e(`${bo}.Exports`,lc())]),!1,g,new QK(0,[]),new Bw(0,[]),lc(),new p8(0,[]))]))}case 4:{const bo=j2(KK(Nt),L);return _l(new zw(1,[new SM(_l(new Sm(5,["REPLACE_ME_WITH_MODULE_NAME"])),bo[0],KK(Nt),lc(),lc(),Ay(bo[1],Nt),!1,!0,void 0,new Bw(0,[]),lc(),new p8(0,[]))]))}default:return dNt(bbt("Could not generate exportMembers for: %A"))(Ot)}},x),lc())])}function az(p,g){let x;const L=HIt(I_e(p,g.Name),g.Type,g.IsOptional);return x=g.IsSpread&&L.tag===14?L.fields[0]:L,new eU(Zd(cd(()=>g.IsSpread?fg(new Sm(19,[])):Uw())),F5(g.Name),g.IsOptional,x)}function b3t(p){switch(p.tag){case 1:return new QK(1,[]);case 2:return new QK(2,[]);default:return new QK(0,[])}}function cz(p,g){return SL(x=>{switch(x.tag){case 4:{const L=x.fields[0],H=j2("Invoke",p),G=H[1];return new zw(0,[new SM(_l(new Sm(1,[])),H[0],"Invoke",lc(),zf(ye=>az(G,ye),L.Parameters),Ay(G,L.Type),!1,!1,void 0,new Bw(0,[]),lc(),new p8(0,[]))])}case 1:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return L.IsPrivate&&!L.IsStatic?void 0:new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),HIt(H[1],L.Type,L.IsOptional),L.IsOptional,L.IsStatic,b3t(L.Accessor),L.IsPrivate?new Bw(1,[]):new Bw(0,[]),G.XmlDoc,new p8(1,[]))])}case 2:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),Ay(H[1],L.Type),!1,L.IsStatic,new QK(0,[]),new Bw(0,[]),G.XmlDoc,new p8(0,[]))])}case 3:{const L=x.fields[0],H=j2(L.Name,p),G=h_e(L.Documentation);return new zw(1,[new SM(Zd(cd(()=>G.ObsoleteAttributes)),H[0],L.Name,lc(),lc(),Ay(H[1],L.ArgumentType),!1,L.IsStatic,new QK(1,[]),new Bw(0,[]),G.XmlDoc,new p8(0,[]))])}case 5:{const L=x.fields[0],H=j2("Item",p),G=H[1];return new zw(1,[new SM(_l(new Sm(16,[])),H[0],"Item",lc(),zf(ye=>az(G,ye),L.Parameters),Ay(G,L.Type),!1,!1,L.IsReadOnly?new QK(0,[]):new QK(2,[]),new Bw(0,[]),lc(),new p8(0,[]))])}case 6:{const L=x.fields[0],H=j2(L.Name,p),G=H[1],ye=h_e(L.Documentation);return new zw(0,[new SM(Zd(cd(()=>ye.ObsoleteAttributes)),H[0],L.Name,lc(),zf(Oe=>az(G,Oe),L.Parameters),Ay(G,L.Type),!1,!1,void 0,new Bw(0,[]),ye.XmlDoc,new p8(0,[]))])}case 7:{const L=x.fields[0],H=j2("Create",p),G=H[1];return new zw(0,[new SM(_l(new Sm(13,[])),H[0],"Create",lc(),zf(ye=>az(G,ye),L.Parameters),Ay(G,L.Type),!1,!1,void 0,new Bw(0,[]),lc(),new p8(0,[]))])}default:{const L=x.fields[0],H=j2(L.Name,p),G=H[0],ye=H[1];return L.IsStatic?new zw(2,[new v4t(lc(),G,L.Name,lc(),zf(Oe=>az(ye,Oe),L.Parameters),Ay(ye,L.Type),L.IsOptional,void 0,new Bw(0,[]))]):new zw(0,[new SM(lc(),G,L.Name,lc(),zf(Oe=>az(ye,Oe),L.Parameters),Ay(ye,L.Type),L.IsOptional,L.IsStatic,void 0,new Bw(0,[]),lc(),new p8(0,[]))])}}},SL(x=>{switch(x.tag){case 3:return rEt(H=>H.tag===2?x.fields[0].Name===H.fields[0].Name:!1,g)==null?x:void 0;case 4:return x;case 0:return x;case 1:return x;case 5:return x;case 6:return x;case 7:return x;default:{const L=x.fields[0];return rEt(G=>G.tag===3?L.Name===G.fields[0].Name:!1,g)==null?x:new QV(1,[new Uot(L.Name,L.Documentation,L.Type,L.IsStatic,!1,new Fje(2,[]),L.IsPrivate)])}}},FO(x=>{let L,H;switch(x.tag){case 2:case 3:case 1:case 4:case 7:case 5:{L=1;break}case 6:{L=0,H=x.fields[0].Name;break}default:L=0,H=x.fields[0].Name}switch(L){case 0:return H!=="[Symbol.iterator]";default:return!0}},g)))}function Q2t(p){return zf(g=>{if(g.tag===1){const x=g.fields[0];return new zw(1,[new SM(x.Attributes,x.Name,x.OriginalName,x.TypeParameters,x.Parameters,x.Type,x.IsOptional,x.IsStatic,new QK(0,[]),x.Accessibility,x.XmlDoc,x.Body)])}else return g},p)}function T3t(p,g){return zf(x=>{switch(x.tag){case 1:{const L=x.fields[0],H=j2(L.Name,p);return new eU(lc(),H[0],L.IsOptional,Ay(H[1],L.Type))}case 2:{const L=x.fields[0],H=j2(L.Name,p);return new eU(lc(),H[0],!1,Ay(H[1],L.Type))}case 3:{const L=x.fields[0],H=j2(L.Name,p);return new eU(lc(),H[0],!1,Ay(H[1],L.ArgumentType))}case 5:{const L=j2("Item",p);return new eU(lc(),L[0],!1,Ay(L[1],x.fields[0].Type))}case 6:{const L=x.fields[0],H=j2(L.Name,p);return new eU(lc(),H[0],!1,Ay(H[1],L.Type))}case 4:{const L=j2("Invoke",p);return new eU(lc(),L[0],!1,Ay(L[1],x.fields[0].Type))}case 7:{const L=j2("Create",p);return new eU(lc(),L[0],!1,Ay(L[1],x.fields[0].Type))}default:{const L=x.fields[0],H=j2(L.Name,p);return new eU(lc(),H[0],L.IsOptional,Ay(H[1],L.Type))}}},g)}function QRe(p,g){const x=j2(g.Name,p),L=x[1],H=nTe(zf(ot=>nTe(SL(At=>{if(At.tag===1){const sn=At.fields[0];return sn.FullName===ot?xSt("FakeName",QRe(L,sn)).Members:void 0}else return},BIt(L))),SL(ot=>{if(ot.tag===13){const At=ot.fields[0];if(At.IsStandardLibrary&&At.Name==="Partial")if(_z(At.TypeArguments)===1){const sn=Sbt(0,At.TypeArguments);return sn.tag===13?sn.fields[0].FullName:void 0}else return;else return}else return},zf(ot=>K1t(L,ot),g.HeritageClauses)))),G=cz(L,g.Members),ye=FO(ot=>{if(ot.tag===13){const At=ot.fields[0];return!(At.IsStandardLibrary&&At.Name==="Partial")}else return!0},zf(ot=>K1t(L,ot),g.HeritageClauses)),Oe=iU(G,H);return new tP(fu([new Sm(8,[]),new Sm(20,[])]),x[0],g.Name,BO(L,g.TypeParameters),Oe,zf(ot=>Ay(L,ot),ye))}function xSt(p,g){return new tP(g.Attributes,p,g.OriginalName,g.TypeParameters,zf(x=>{if(x.tag===1){const L=x.fields[0];return L.Type.tag===3?x:new zw(1,[new SM(L.Attributes,L.Name,L.OriginalName,L.TypeParameters,L.Parameters,L.Type,!0,L.IsStatic,L.Accessor,L.Accessibility,L.XmlDoc,L.Body)])}else return x},g.Members),g.Inheritance)}function S3t(p){const g=rMe(H=>H.Value.tag===1,FO(H=>{switch(H.Value.tag){case 1:case 0:return!0;default:return!1}},p.Members)),x=g[1],L=g[0];if(yd(L)){if(yd(x))throw new Error(`Empty enum: ${p.Name}`);return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),F5(p.Name),YRe(zf(H=>{let G;const ye=H.Value;if(ye.tag===0)G=ye.fields[0];else throw new Error("Should not happen");const Oe=F5(H.Name);return new lTe(0,[new fVe(Zd(cd(()=>Oe!==G?fg(new Sm(11,[kVe(G)])):Uw())),Oe)])},x),{Equals:g8,GetHashCode:FRe}),!1)])}else{if(yd(x))return new Ef(0,[new yIt(F5(p.Name),YRe(zf(H=>new hIt(F5(H.Name),y3t(H.Value)),L),{Equals:g8,GetHashCode:FRe}))]);throw new Error(`Mix enums are not supported in F# Errored enum: ${p.Name} -`)}}function XIt(p,g){const x=g.tag===1?EL(L=>{let H,G;switch(L.tag){case 4:case 7:case 5:{H=1;break}case 6:{H=0,G=L.fields[0].Name;break}case 1:{H=0,G=L.fields[0].Name;break}case 2:{H=0,G=L.fields[0].Name;break}case 3:{H=0,G=L.fields[0].Name;break}default:H=0,G=L.fields[0].Name}switch(H){case 0:{const ye=xSt(G);return new lTe(0,[new fVe(Zd(cd(()=>ye.IsDifferent?fg(new Sm(11,[kVe(G)])):Uw())),ye.Name)])}default:return}},g.fields[0].Members):g.tag===4?zf(L=>new lTe(0,[new fVe(lc(),F5(L.Name))]),g.fields[0].Members):lc();if(!yd(x))return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),F5(p),x,!1)])}function E3t(p,g,x){const L=XIt(g,x);return L??(jIt(p,`Could not transform KeyOf: ${g}`),new Ef(10,[]))}function x3t(p,g,x){const L=H=>new Ef(9,[new zot(Zd(cd(()=>p.ObsoleteAttributes)),g,p.XmlDoc,new Ef(8,[H]),lc())]);switch(x.tag){case 1:return L(new RC(1,[]));case 2:return L(new RC(2,[]));case 3:return L(new RC(3,[]));case 4:return L(new RC(6,[]));default:return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),g,_l(new lTe(0,[new fVe(lc(),F5(x.fields[0]))])),!1)])}}function YIt(p,g,x,L){const H=j2(g,p),G=H[0],ye=H[1];let Oe;const ot=j2("key",ye);return Oe=_l(new tU(lc(),ot[0],!1,ly(ot[1],L.KeyType))),new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,G,BO(ye,x),_l(new zw(1,[new SM(_l(new Sm(16,[])),"Item","Item",lc(),Oe,ly(ye,L.ValueType),!1,!1,new QK(2,[]),new Bw(0,[]),lc(),new m8(0,[]))])),lc())])}function QIt(p,g){return new xje(1,[P4t(g.Name,nEt(SNt(x=>{const L=ly(p,x);if(L.tag!==16)return L},g.Constraint)),nEt(gz(x=>ly(p,x),g.Default)))])}function BO(p,g){return zf(x=>QIt(p,x),g)}function ZIt(p,g,x){const L=Oe=>rz(ot=>{switch(ot.tag){case 8:return _l(ot);case 7:return L(ot.fields[0].fields[0]);case 5:{const At=ot.fields[0].Type;return At.tag===7?L(At.fields[0].fields[0]):lc()}default:return lc()}},Oe),H=L(x),G=!yd(H)&&y_e(Oe=>{let ot;switch(Oe.tag===8&&Oe.fields[0].tag===0?ot=0:ot=1,ot){case 0:return!0;default:return!1}},H),ye=!yd(H)&&y_e(Oe=>{let ot;switch(Oe.tag===8&&Oe.fields[0].tag===1?ot=0:ot=1,ot){case 0:return!0;default:return!1}},H);if(G)return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),g,YRe(zf(Oe=>{let ot,At;switch(Oe.tag===8&&Oe.fields[0].tag===0?(ot=0,At=Oe.fields[0].fields[0]):ot=1,ot){case 0:{const sn=xSt(At);return new lTe(0,[new fVe(Zd(cd(()=>sn.IsDifferent?fg(new Sm(11,[kVe(At)])):Uw())),sn.Name)])}default:throw new Error("Should not happen")}},H),{Equals:g8,GetHashCode:FRe}),!1)]);if(ye)return new Ef(0,[new vIt(g,YRe(zf(Oe=>{let ot,At;switch(Oe.tag===8&&Oe.fields[0].tag===1?(ot=0,At=Oe.fields[0].fields[0]):ot=1,ot){case 0:return new yIt(bVe(At),new oRe(1,[At]));default:throw new Error("Should not happen")}},H),{Equals:g8,GetHashCode:FRe}))]);if(y_e(Oe=>Oe.tag===21,x)){const Oe=rz(ot=>ot.tag===21?cz(p,ot.fields[0].Members):lc(),x);return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),g,d8(p),lc(),Oe,lc())])}else return}function A3t(p,g){const x=g.TypeParameter.Constraint;let L,H,G;switch(x!=null&&x.tag===10?(L=0,H=x.fields[0]):(L=1,G=x),L){case 0:{const ye=H.ObjectType;let Oe,ot,At;switch(ye.tag){case 29:{ye.fields[0].tag===18?(Oe=0,ot=ye.fields[0].fields[0]):(Oe=1,At=ye);break}case 18:{Oe=0,ot=ye.fields[0];break}default:Oe=1,At=ye}switch(Oe){case 0:return EL(sn=>{if(sn.tag===8)return new ZV(1,[new Uot(DIt(sn.fields[0]),lc(),bL(g.Type,new Wu(23,[])),!1,!1,new Fje(2,[]),!1)]);Xit(p,Rne(K1e("MappedType: Unexpected type for member %A%P()",[sn])))},ot);default:return Xit(p,Rne(K1e("MappedType: Unexpected type for members %A%P()",[At]))),lc()}}default:return Xit(p,Rne(K1e("MappedType: Unexpected type for members %A%P()",[G]))),lc()}}function ekt(p,g){return g.tag===14?(zIt(p),new Ef(19,[new C4t(ly(p,g.fields[0]))])):ly(p,g)}function C3t(p,g){let x,L;const H=j2(g.Name,p),G=H[0],ye=H[1],Oe=h_e(g.Documentation),ot=sn=>new Ef(9,[new zot(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,sn,BO(ye,g.TypeParameters))]),At=g.Type;switch(At.tag){case 9:return E3t(ye,g.Name,At.fields[0]);case 10:return ot((x=At.fields[0].IndexType,x.tag===9?(L=x.fields[0],L.tag===1?ly(ye,new Wu(7,[new bSt(YRe(rz(sn=>{let tr;switch(sn.tag){case 1:{tr=sn.fields[0].Type;break}case 2:{tr=sn.fields[0].Type;break}case 3:{tr=sn.fields[0].ArgumentType;break}case 4:{tr=sn.fields[0].Type;break}case 7:{tr=sn.fields[0].Type;break}case 6:{tr=sn.fields[0].Type;break}case 5:{tr=sn.fields[0].Type;break}default:tr=sn.fields[0].Type}return tr.tag===7?tr.fields[0].fields[0]:_l(tr)},L.fields[0].Members),{Equals:g8,GetHashCode:FRe}))])):new Ef(10,[])):new Ef(10,[])));case 8:return x3t(Oe,G,At.fields[0]);case 3:return ot(new Ef(8,[JIt(At.fields[0])]));case 25:return ot(new Ef(8,[new RC(0,[])]));case 13:{const sn=At.fields[0],tr=UIt(ye,sn),Nt=I_e(ye,tr),Ot=()=>ot(ly(Nt,new Wu(13,[sn]))),bo=sn.TypeArguments;let Yr,Ns;switch(yd(bo)?Yr=1:yd(Ay(bo))?(Yr=0,Ns=Hp(bo)):Yr=1,Yr){case 0:if(Ns.tag===20){const ui=jr=>new tP(fu([new Sm(8,[]),new Sm(20,[])]),jr,g.Name,lc(),cz(Nt,Ns.fields[0]),lc()),Zr=ui("ReturnType"),Zi=ui(gL(Nt)+".ReturnType");return tz(I_e(Nt,sn.Name),new Ef(5,[Zr])),new Ef(9,[new zot(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,new Ef(11,[new F1e(tr,sn.FullName,_l(new Ef(5,[Zi])),new Ef(10,[]))]),lc())])}else return Ot();default:return Ot()}}case 14:return ot(ly(ye,new Wu(14,[At.fields[0]])));case 26:{const sn=At.fields[0];switch(sn.tag){case 1:return YIt(ye,G,g.TypeParameters,sn.fields[0]);case 2:return ot(ly(I_e(ye,"ReturnType"),sn.fields[0]));case 3:return ot(ly(ye,sn.fields[0]));case 4:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,sn.fields[0]),lc())]);case 5:return KIt(ye,sn.fields[0],ot);default:return new Ef(5,[CSt(G,QRe(ye,sn.fields[0]))])}}case 15:{const sn=At.fields[0];return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),_l(new zw(0,[new SM(_l(new Sm(1,[])),"Invoke","Invoke",lc(),zf(tr=>az(ye,tr),sn.Parameters),ly(ye,sn.Type),!1,!1,void 0,new Bw(0,[]),lc(),new m8(0,[]))])),lc())])}case 18:return ot($It(ye,At.fields[0]));case 20:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,At.fields[0]),lc())]);case 21:{const sn=At.fields[0];return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,sn.Members),Zd(cd(()=>{const tr=qIt(ye,sn);return tr==null?Uw():fg(tr)})))])}case 23:return ot(new Ef(18,[]));case 16:return ot(new Ef(13,[At.fields[0]]));case 27:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,A3t(ye,At.fields[0])),lc())]);case 28:{const sn=g.TypeParameters;return yd(sn)?ot(new Ef(18,[])):yd(Ay(sn))?new Ef(2,[new x4t(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,QIt(ye,Hp(sn)))]):(jIt(ye,`${g.Name} contains a ConstructorType with multiple type parameters, please open an issue at https://github.com/glutinum-org/cli/issues`),ot(new Ef(18,[])))}case 29:return ot(ekt(ye,At.fields[0]));case 12:case 4:case 1:case 11:case 5:case 0:case 6:case 17:case 2:case 24:case 19:case 22:return ot(new Ef(18,[]));default:{const sn=ZIt(ye,G,At.fields[0].fields[0]);return sn??ot(ly(ye,At))}}}function D3t(p,g,x){return new Ef(4,[new Bot(F5(x.Name),x.IsRecursive,tkt(p,g,!1,x.Types))])}function ext(p,g){let x;const L=j2(g.Name,p),H=L[1];return new Ef(5,[(x=cz(H,g.Members),new tP(fu([new Sm(8,[]),new Sm(20,[])]),L[0],g.Name,BO(H,g.TypeParameters),x,zf(G=>ly(H,X1t(H,G)),g.HeritageClauses)))])}function I3t(p,g){return zf(x=>{switch(x.tag){case 4:return S3t(x.fields[0]);case 5:return C3t(p,x.fields[0]);case 11:return D3t(ASt(p),g3t(p),x.fields[0]);case 12:return ext(p,x.fields[0]);case 24:{const L=x.fields[0];return L.tag===12?ext(p,L.fields[0]):new Ef(10,[])}case 28:case 27:case 15:case 16:case 14:case 13:case 6:case 10:case 7:case 8:case 2:case 3:case 23:case 9:case 0:case 18:case 20:case 21:case 22:case 19:case 25:case 26:case 29:case 17:return new Ef(10,[]);default:return new Ef(5,[QRe(p,x.fields[0])])}},g)}function tkt(p,g,x,L){const H=rMe(At=>{switch(At.tag){case 2:case 6:return!0;case 24:return At.fields[0].tag===2;default:return!1}},L),G=H[1],ye=oU(H[0],FO(At=>{switch(At.tag){case 12:return!0;case 11:return eat(sn=>{switch(sn.tag){case 12:case 6:return!0;default:return!1}},At.fields[0].Types);case 24:return At.fields[0].tag===12;default:return!1}},G)),Oe=FIt(g,"",p),ot=I3t(Oe,G);return Zd(cd(()=>V1(yd(ye)?Uw():fg(v3t(Oe,x,ye)),cd(()=>V1(ot,cd(()=>K1t(Oe)))))))}function nkt(p,g){const x=o3t();return new c3t(r3t(tkt(p,x,!0,g)),WIt(x),BIt(x),l3t(x),f3t(x),d3t(x))}const k3t="https://github.com/glutinum-org/cli/issues/new";class txt extends ap{constructor(g,x){super(),this.TypeScriptCode=g,this.CompilationResult=x}}function P3t(p){if(p.tag===1)return`**Error** +`)}}function XIt(p,g){const x=g.tag===1?SL(L=>{let H,G;switch(L.tag){case 4:case 7:case 5:{H=1;break}case 6:{H=0,G=L.fields[0].Name;break}case 1:{H=0,G=L.fields[0].Name;break}case 2:{H=0,G=L.fields[0].Name;break}case 3:{H=0,G=L.fields[0].Name;break}default:H=0,G=L.fields[0].Name}switch(H){case 0:{const ye=ESt(G);return new lTe(0,[new fVe(Zd(cd(()=>ye.IsDifferent?fg(new Sm(11,[kVe(G)])):Uw())),ye.Name)])}default:return}},g.fields[0].Members):g.tag===4?zf(L=>new lTe(0,[new fVe(lc(),F5(L.Name))]),g.fields[0].Members):lc();if(!yd(x))return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),F5(p),x,!1)])}function E3t(p,g,x){const L=XIt(g,x);return L??(jIt(p,`Could not transform KeyOf: ${g}`),new Ef(10,[]))}function x3t(p,g,x){const L=H=>new Ef(9,[new zot(Zd(cd(()=>p.ObsoleteAttributes)),g,p.XmlDoc,new Ef(8,[H]),lc())]);switch(x.tag){case 1:return L(new RC(1,[]));case 2:return L(new RC(2,[]));case 3:return L(new RC(3,[]));case 4:return L(new RC(6,[]));default:return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),g,_l(new lTe(0,[new fVe(lc(),F5(x.fields[0]))])),!1)])}}function YIt(p,g,x,L){const H=j2(g,p),G=H[0],ye=H[1];let Oe;const ot=j2("key",ye);return Oe=_l(new eU(lc(),ot[0],!1,Ay(ot[1],L.KeyType))),new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,G,BO(ye,x),_l(new zw(1,[new SM(_l(new Sm(16,[])),"Item","Item",lc(),Oe,Ay(ye,L.ValueType),!1,!1,new QK(2,[]),new Bw(0,[]),lc(),new p8(0,[]))])),lc())])}function QIt(p,g){return new xje(1,[P4t(g.Name,eEt(SNt(x=>{const L=Ay(p,x);if(L.tag!==16)return L},g.Constraint)),eEt(uU(x=>Ay(p,x),g.Default)))])}function BO(p,g){return zf(x=>QIt(p,x),g)}function ZIt(p,g,x){const L=Oe=>rz(ot=>{switch(ot.tag){case 8:return _l(ot);case 7:return L(ot.fields[0].fields[0]);case 5:{const At=ot.fields[0].Type;return At.tag===7?L(At.fields[0].fields[0]):lc()}default:return lc()}},Oe),H=L(x),G=!yd(H)&&y_e(Oe=>{let ot;switch(Oe.tag===8&&Oe.fields[0].tag===0?ot=0:ot=1,ot){case 0:return!0;default:return!1}},H),ye=!yd(H)&&y_e(Oe=>{let ot;switch(Oe.tag===8&&Oe.fields[0].tag===1?ot=0:ot=1,ot){case 0:return!0;default:return!1}},H);if(G)return new Ef(1,[new cMe(fu([new Sm(12,[]),new Sm(10,[0])]),g,YRe(zf(Oe=>{let ot,At;switch(Oe.tag===8&&Oe.fields[0].tag===0?(ot=0,At=Oe.fields[0].fields[0]):ot=1,ot){case 0:{const sn=ESt(At);return new lTe(0,[new fVe(Zd(cd(()=>sn.IsDifferent?fg(new Sm(11,[kVe(At)])):Uw())),sn.Name)])}default:throw new Error("Should not happen")}},H),{Equals:g8,GetHashCode:FRe}),!1)]);if(ye)return new Ef(0,[new yIt(g,YRe(zf(Oe=>{let ot,At;switch(Oe.tag===8&&Oe.fields[0].tag===1?(ot=0,At=Oe.fields[0].fields[0]):ot=1,ot){case 0:return new hIt(bVe(At),new oRe(1,[At]));default:throw new Error("Should not happen")}},H),{Equals:g8,GetHashCode:FRe}))]);if(y_e(Oe=>Oe.tag===21,x)){const Oe=rz(ot=>ot.tag===21?cz(p,ot.fields[0].Members):lc(),x);return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),g,_8(p),lc(),Oe,lc())])}else return}function A3t(p,g){const x=g.TypeParameter.Constraint;let L,H,G;switch(x!=null&&x.tag===10?(L=0,H=x.fields[0]):(L=1,G=x),L){case 0:{const ye=H.ObjectType;let Oe,ot,At;switch(ye.tag){case 29:{ye.fields[0].tag===18?(Oe=0,ot=ye.fields[0].fields[0]):(Oe=1,At=ye);break}case 18:{Oe=0,ot=ye.fields[0];break}default:Oe=1,At=ye}switch(Oe){case 0:return SL(sn=>{if(sn.tag===8)return new QV(1,[new Uot(CIt(sn.fields[0]),lc(),m8(g.Type,new Wu(23,[])),!1,!1,new Fje(2,[]),!1)]);Xit(p,Rne(K1e("MappedType: Unexpected type for member %A%P()",[sn])))},ot);default:return Xit(p,Rne(K1e("MappedType: Unexpected type for members %A%P()",[At]))),lc()}}default:return Xit(p,Rne(K1e("MappedType: Unexpected type for members %A%P()",[G]))),lc()}}function ekt(p,g){return g.tag===14?(zIt(p),new Ef(19,[new C4t(Ay(p,g.fields[0]))])):Ay(p,g)}function C3t(p,g){let x,L;const H=j2(g.Name,p),G=H[0],ye=H[1],Oe=h_e(g.Documentation),ot=sn=>new Ef(9,[new zot(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,sn,BO(ye,g.TypeParameters))]),At=g.Type;switch(At.tag){case 9:return E3t(ye,g.Name,At.fields[0]);case 10:return ot((x=At.fields[0].IndexType,x.tag===9?(L=x.fields[0],L.tag===1?Ay(ye,new Wu(7,[new vSt(YRe(rz(sn=>{let tr;switch(sn.tag){case 1:{tr=sn.fields[0].Type;break}case 2:{tr=sn.fields[0].Type;break}case 3:{tr=sn.fields[0].ArgumentType;break}case 4:{tr=sn.fields[0].Type;break}case 7:{tr=sn.fields[0].Type;break}case 6:{tr=sn.fields[0].Type;break}case 5:{tr=sn.fields[0].Type;break}default:tr=sn.fields[0].Type}return tr.tag===7?tr.fields[0].fields[0]:_l(tr)},L.fields[0].Members),{Equals:g8,GetHashCode:FRe}))])):new Ef(10,[])):new Ef(10,[])));case 8:return x3t(Oe,G,At.fields[0]);case 3:return ot(new Ef(8,[JIt(At.fields[0])]));case 25:return ot(new Ef(8,[new RC(0,[])]));case 13:{const sn=At.fields[0],tr=UIt(ye,sn),Nt=I_e(ye,tr),Ot=()=>ot(Ay(Nt,new Wu(13,[sn]))),bo=sn.TypeArguments;let Yr,Ns;switch(yd(bo)?Yr=1:yd(xy(bo))?(Yr=0,Ns=Hp(bo)):Yr=1,Yr){case 0:if(Ns.tag===20){const ui=jr=>new tP(fu([new Sm(8,[]),new Sm(20,[])]),jr,g.Name,lc(),cz(Nt,Ns.fields[0]),lc()),Zr=ui("ReturnType"),Zi=ui(gL(Nt)+".ReturnType");return tz(I_e(Nt,sn.Name),new Ef(5,[Zr])),new Ef(9,[new zot(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,new Ef(11,[new F1e(tr,sn.FullName,_l(new Ef(5,[Zi])),new Ef(10,[]))]),lc())])}else return Ot();default:return Ot()}}case 14:return ot(Ay(ye,new Wu(14,[At.fields[0]])));case 26:{const sn=At.fields[0];switch(sn.tag){case 1:return YIt(ye,G,g.TypeParameters,sn.fields[0]);case 2:return ot(Ay(I_e(ye,"ReturnType"),sn.fields[0]));case 3:return ot(Ay(ye,sn.fields[0]));case 4:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,sn.fields[0]),lc())]);case 5:return KIt(ye,sn.fields[0],ot);default:return new Ef(5,[xSt(G,QRe(ye,sn.fields[0]))])}}case 15:{const sn=At.fields[0];return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),_l(new zw(0,[new SM(_l(new Sm(1,[])),"Invoke","Invoke",lc(),zf(tr=>az(ye,tr),sn.Parameters),Ay(ye,sn.Type),!1,!1,void 0,new Bw(0,[]),lc(),new p8(0,[]))])),lc())])}case 18:return ot($It(ye,At.fields[0]));case 20:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,At.fields[0]),lc())]);case 21:{const sn=At.fields[0];return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,sn.Members),Zd(cd(()=>{const tr=qIt(ye,sn);return tr==null?Uw():fg(tr)})))])}case 23:return ot(new Ef(18,[]));case 16:return ot(new Ef(13,[At.fields[0]]));case 27:return new Ef(5,[new tP(fu([new Sm(8,[]),new Sm(20,[])]),G,g.Name,BO(ye,g.TypeParameters),cz(ye,A3t(ye,At.fields[0])),lc())]);case 28:{const sn=g.TypeParameters;return yd(sn)?ot(new Ef(18,[])):yd(xy(sn))?new Ef(2,[new x4t(Zd(cd(()=>Oe.ObsoleteAttributes)),G,Oe.XmlDoc,QIt(ye,Hp(sn)))]):(jIt(ye,`${g.Name} contains a ConstructorType with multiple type parameters, please open an issue at https://github.com/glutinum-org/cli/issues`),ot(new Ef(18,[])))}case 29:return ot(ekt(ye,At.fields[0]));case 12:case 4:case 1:case 11:case 5:case 0:case 6:case 17:case 2:case 24:case 19:case 22:return ot(new Ef(18,[]));default:{const sn=ZIt(ye,G,At.fields[0].fields[0]);return sn??ot(Ay(ye,At))}}}function D3t(p,g,x){return new Ef(4,[new Bot(F5(x.Name),x.IsRecursive,tkt(p,g,!1,x.Types))])}function Z2t(p,g){let x;const L=j2(g.Name,p),H=L[1];return new Ef(5,[(x=cz(H,g.Members),new tP(fu([new Sm(8,[]),new Sm(20,[])]),L[0],g.Name,BO(H,g.TypeParameters),x,zf(G=>Ay(H,K1t(H,G)),g.HeritageClauses)))])}function I3t(p,g){return zf(x=>{switch(x.tag){case 4:return S3t(x.fields[0]);case 5:return C3t(p,x.fields[0]);case 11:return D3t(BIt(p),g3t(p),x.fields[0]);case 12:return Z2t(p,x.fields[0]);case 24:{const L=x.fields[0];return L.tag===12?Z2t(p,L.fields[0]):new Ef(10,[])}case 28:case 27:case 15:case 16:case 14:case 13:case 6:case 10:case 7:case 8:case 2:case 3:case 23:case 9:case 0:case 18:case 20:case 21:case 22:case 19:case 25:case 26:case 29:case 17:return new Ef(10,[]);default:return new Ef(5,[QRe(p,x.fields[0])])}},g)}function tkt(p,g,x,L){const H=rMe(At=>{switch(At.tag){case 2:case 6:return!0;case 24:return At.fields[0].tag===2;default:return!1}},L),G=H[1],ye=iU(H[0],FO(At=>{switch(At.tag){case 12:return!0;case 11:return eat(sn=>{switch(sn.tag){case 12:case 6:return!0;default:return!1}},At.fields[0].Types);case 24:return At.fields[0].tag===12;default:return!1}},G)),Oe=OIt(g,"",p),ot=I3t(Oe,G);return Zd(cd(()=>V1(yd(ye)?Uw():fg(v3t(Oe,x,ye)),cd(()=>V1(ot,cd(()=>q1t(Oe)))))))}function nkt(p,g){const x=o3t();return new c3t(r3t(tkt(p,x,!0,g)),FIt(x),WIt(x),l3t(x),f3t(x),d3t(x))}const k3t="https://github.com/glutinum-org/cli/issues/new";class ext extends ap{constructor(g,x){super(),this.TypeScriptCode=g,this.CompilationResult=x}}function P3t(p){if(p.tag===1)return`**Error** \`\`\` ${p.fields[0]} @@ -30923,7 +30923,7 @@ ${yd(g)?"":` `,` > `),L))} > \`\`\` -`}`}}function N3t(p){let g,x;const L=_St(new J1e(new H1e(0,[p.TypeScriptCode])));return`${k3t}?body=${g=(x=`